From 3c554f366d2297c48ce7d62dc0ccd30f989bd613 Mon Sep 17 00:00:00 2001 From: youknowriad <youknowriad@git.wordpress.org> Date: Tue, 27 Oct 2020 09:34:46 +0000 Subject: [PATCH] Block Editor: Update the WordPress packages for 5.6 beta 2 It contains: - Fix drop zone indicators for non blocks. - Fix archives block render function. - Code block: preserve indentation on paste. - Turn off autocomplete for token input. - Fix parent post selector: ensure initial value available, search performed, all results shown. - Fix gallery block undo issue. Props isabel_brison. Fixes #51640. Built from https://develop.svn.wordpress.org/trunk@49324 git-svn-id: http://core.svn.wordpress.org/trunk@49085 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/assets/script-loader-packages.php | 2 +- wp-includes/blocks/archives.php | 9 +++--- wp-includes/js/dist/block-editor.js | 23 +++++++-------- wp-includes/js/dist/block-editor.min.js | 4 +-- wp-includes/js/dist/block-library.js | 8 ++++- wp-includes/js/dist/block-library.min.js | 2 +- wp-includes/js/dist/blocks.js | 19 ++++++++---- wp-includes/js/dist/blocks.min.js | 2 +- wp-includes/js/dist/components.js | 8 ++++- wp-includes/js/dist/components.min.js | 2 +- wp-includes/js/dist/editor.js | 29 +++++++++++++++---- wp-includes/js/dist/editor.min.js | 2 +- wp-includes/version.php | 2 +- 13 files changed, 74 insertions(+), 38 deletions(-) diff --git a/wp-includes/assets/script-loader-packages.php b/wp-includes/assets/script-loader-packages.php index c9acc6700e..9e657e97e4 100644 --- a/wp-includes/assets/script-loader-packages.php +++ b/wp-includes/assets/script-loader-packages.php @@ -1 +1 @@ -<?php return array('a11y.js' => array('dependencies' => array('wp-dom-ready', 'wp-i18n', 'wp-polyfill'), 'version' => 'a7dc4c94ca05d79fe1926acd3be57f4f'), 'annotations.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => '35785b35bbbf3c4a5e979ba733e4043c'), 'api-fetch.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => 'c6d9f25f1de157546a0f81062ea2ac93'), 'autop.js' => array('dependencies' => array('wp-polyfill'), 'version' => '7e5ea82c279cc0758ca567a01e229432'), 'blob.js' => array('dependencies' => array('wp-polyfill'), 'version' => '9ee6dca7fc448e120c3452ade58163b5'), 'block-directory.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-edit-post', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives'), 'version' => 'b98e73240099ffe30081af3ac4d55534'), 'block-editor.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-a11y', 'wp-blob', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-shortcode', 'wp-token-list', 'wp-url', 'wp-viewport', 'wp-warning', 'wp-wordcount'), 'version' => '77ad7098c5c1fadffab1e25fd092c188'), 'block-library.js' => array('dependencies' => array('lodash', 'moment', 'react', 'wp-api-fetch', 'wp-autop', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport'), 'version' => '0ad76e3e460ed7ea8748a9dd3d220501'), 'block-serialization-default-parser.js' => array('dependencies' => array('wp-polyfill'), 'version' => '7b92d77a790023414a5002a1622853fb'), 'blocks.js' => array('dependencies' => array('lodash', 'wp-autop', 'wp-blob', 'wp-block-serialization-default-parser', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-primitives', 'wp-shortcode'), 'version' => 'a9d91a848c8d7ecfbf9763af14e96e7c'), 'components.js' => array('dependencies' => array('lodash', 'moment', 'react', 'wp-a11y', 'wp-compose', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-warning'), 'version' => 'c18e6ad614a17e689215751a7890020a'), 'compose.js' => array('dependencies' => array('lodash', 'react', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-priority-queue'), 'version' => 'cfe93f0de5c7d6a661ec04f38fa041e5'), 'core-data.js' => array('dependencies' => array('lodash', 'wp-blocks', 'wp-data', 'wp-data-controls', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-url'), 'version' => 'f184b156c783f1137f65064a60bef9bf'), 'data.js' => array('dependencies' => array('lodash', 'react', 'wp-compose', 'wp-deprecated', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-priority-queue', 'wp-redux-routine'), 'version' => 'a2473f40010c4d566eb3a42192f647a0'), 'data-controls.js' => array('dependencies' => array('wp-api-fetch', 'wp-data', 'wp-polyfill'), 'version' => '71c8a675e946cb9ba2a5d5b7d6a2c993'), 'date.js' => array('dependencies' => array('moment', 'wp-polyfill'), 'version' => '236d956f797e6baf94e5bb412df1620e'), 'deprecated.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '5480dd7574d6b15f781387ca82f38c98'), 'dom.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '658b42390dd73c64306c372f824bb538'), 'dom-ready.js' => array('dependencies' => array('wp-polyfill'), 'version' => '0673a12cd64681bf831177bdbbc8c17c'), 'edit-post.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-url', 'wp-viewport', 'wp-warning'), 'version' => '49211272938d4db22529c44039c9dae5'), 'editor.js' => array('dependencies' => array('lodash', 'react', 'wp-api-fetch', 'wp-autop', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-date', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport', 'wp-wordcount'), 'version' => '6b08d8c160639cf8f02bf71e08fb2f7d'), 'element.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-escape-html', 'wp-polyfill'), 'version' => 'ac1269eb3eb7c6c8191705bfc2031910'), 'escape-html.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'b8bd7b8863ae9d136fdd9ee31e2e7402'), 'format-library.js' => array('dependencies' => array('lodash', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-dom', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-url'), 'version' => 'fe3749d9d581ac84e5a1d510c55ed959'), 'hooks.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'b4d5f3ad41c327f5896429baf9266da9'), 'html-entities.js' => array('dependencies' => array('wp-polyfill'), 'version' => '8e8652a4cc634a7a5b32f2d664c0e0cc'), 'i18n.js' => array('dependencies' => array('wp-polyfill'), 'version' => '74259306f29940dfc0d175b259792d2c'), 'is-shallow-equal.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'e7be680b2f3d7a7149e5b8686fd3949b'), 'keyboard-shortcuts.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-keycodes', 'wp-polyfill'), 'version' => '1e85c18d6ef4e27b12213145e9e9679f'), 'keycodes.js' => array('dependencies' => array('lodash', 'wp-i18n', 'wp-polyfill'), 'version' => 'e886991b733ab6256b674d45b18e43ef'), 'list-reusable-blocks.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '13150f9453afa9c4d4e4380f65be0de2'), 'media-utils.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blob', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '98fccf5949d023c28f3bd71045621f60'), 'notices.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-polyfill'), 'version' => '7cae25e674c0dc3d1c4e8d42f89bd2e2'), 'nux.js' => array('dependencies' => array('lodash', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => '107217d4c19489a0d1f21e08526331c6'), 'plugins.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-polyfill', 'wp-primitives'), 'version' => '8f249a8adc2954966031702a8b29f498'), 'primitives.js' => array('dependencies' => array('wp-element', 'wp-polyfill'), 'version' => '4dba7bfcd17579030d4b93ea97a24db4'), 'priority-queue.js' => array('dependencies' => array('wp-polyfill'), 'version' => '59111ff6019a7401dba22121e795e543'), 'redux-routine.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '9441cdf8abe5a0f364cc6a8345068058'), 'reusable-blocks.js' => array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-polyfill', 'wp-primitives'), 'version' => '7675569cdeea817fb322bd60bb0532a2'), 'rich-text.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-escape-html', 'wp-keycodes', 'wp-polyfill'), 'version' => '4b38b5f9c11b52d85670239acb3fa0fc'), 'server-side-render.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => 'd78510caa4ce58473139a15b782b67e9'), 'shortcode.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '760ef1dc15a1da975ce384ac38245584'), 'token-list.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '9c3b2205ac79cc76094def2dd76a5cfa'), 'url.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '76613c4e7c046883554d789ee1af3c7a'), 'viewport.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-element', 'wp-polyfill'), 'version' => '2046fe168e829732d56285e317e158dd'), 'warning.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'e93e31a3954c2b1e23e96280b27d3715'), 'wordcount.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '5808f9da0ba314c3e34b085ac6194a69')); \ No newline at end of file +<?php return array('a11y.js' => array('dependencies' => array('wp-dom-ready', 'wp-i18n', 'wp-polyfill'), 'version' => 'a7dc4c94ca05d79fe1926acd3be57f4f'), 'annotations.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => '35785b35bbbf3c4a5e979ba733e4043c'), 'api-fetch.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => 'c6d9f25f1de157546a0f81062ea2ac93'), 'autop.js' => array('dependencies' => array('wp-polyfill'), 'version' => '7e5ea82c279cc0758ca567a01e229432'), 'blob.js' => array('dependencies' => array('wp-polyfill'), 'version' => '9ee6dca7fc448e120c3452ade58163b5'), 'block-directory.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-edit-post', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives'), 'version' => 'b98e73240099ffe30081af3ac4d55534'), 'block-editor.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-a11y', 'wp-blob', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-shortcode', 'wp-token-list', 'wp-url', 'wp-viewport', 'wp-warning', 'wp-wordcount'), 'version' => '209d9d615996705d1751b859520387af'), 'block-library.js' => array('dependencies' => array('lodash', 'moment', 'react', 'wp-api-fetch', 'wp-autop', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport'), 'version' => 'd41162d57e3e232c3c6595d06926d743'), 'block-serialization-default-parser.js' => array('dependencies' => array('wp-polyfill'), 'version' => '7b92d77a790023414a5002a1622853fb'), 'blocks.js' => array('dependencies' => array('lodash', 'wp-autop', 'wp-blob', 'wp-block-serialization-default-parser', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-primitives', 'wp-shortcode'), 'version' => '2411d847313dd6c2f6641985b38264f4'), 'components.js' => array('dependencies' => array('lodash', 'moment', 'react', 'wp-a11y', 'wp-compose', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-warning'), 'version' => 'fe70f8e2fa5da119ee45970eef3b89c4'), 'compose.js' => array('dependencies' => array('lodash', 'react', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-priority-queue'), 'version' => 'cfe93f0de5c7d6a661ec04f38fa041e5'), 'core-data.js' => array('dependencies' => array('lodash', 'wp-blocks', 'wp-data', 'wp-data-controls', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-url'), 'version' => 'f184b156c783f1137f65064a60bef9bf'), 'data.js' => array('dependencies' => array('lodash', 'react', 'wp-compose', 'wp-deprecated', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-priority-queue', 'wp-redux-routine'), 'version' => 'a2473f40010c4d566eb3a42192f647a0'), 'data-controls.js' => array('dependencies' => array('wp-api-fetch', 'wp-data', 'wp-polyfill'), 'version' => '71c8a675e946cb9ba2a5d5b7d6a2c993'), 'date.js' => array('dependencies' => array('moment', 'wp-polyfill'), 'version' => '236d956f797e6baf94e5bb412df1620e'), 'deprecated.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '5480dd7574d6b15f781387ca82f38c98'), 'dom.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '658b42390dd73c64306c372f824bb538'), 'dom-ready.js' => array('dependencies' => array('wp-polyfill'), 'version' => '0673a12cd64681bf831177bdbbc8c17c'), 'edit-post.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-url', 'wp-viewport', 'wp-warning'), 'version' => '49211272938d4db22529c44039c9dae5'), 'editor.js' => array('dependencies' => array('lodash', 'react', 'wp-api-fetch', 'wp-autop', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-date', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport', 'wp-wordcount'), 'version' => '38653467df8399a94691da31bf80e700'), 'element.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-escape-html', 'wp-polyfill'), 'version' => 'ac1269eb3eb7c6c8191705bfc2031910'), 'escape-html.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'b8bd7b8863ae9d136fdd9ee31e2e7402'), 'format-library.js' => array('dependencies' => array('lodash', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-dom', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-url'), 'version' => 'fe3749d9d581ac84e5a1d510c55ed959'), 'hooks.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'b4d5f3ad41c327f5896429baf9266da9'), 'html-entities.js' => array('dependencies' => array('wp-polyfill'), 'version' => '8e8652a4cc634a7a5b32f2d664c0e0cc'), 'i18n.js' => array('dependencies' => array('wp-polyfill'), 'version' => '74259306f29940dfc0d175b259792d2c'), 'is-shallow-equal.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'e7be680b2f3d7a7149e5b8686fd3949b'), 'keyboard-shortcuts.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-keycodes', 'wp-polyfill'), 'version' => '1e85c18d6ef4e27b12213145e9e9679f'), 'keycodes.js' => array('dependencies' => array('lodash', 'wp-i18n', 'wp-polyfill'), 'version' => 'e886991b733ab6256b674d45b18e43ef'), 'list-reusable-blocks.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '13150f9453afa9c4d4e4380f65be0de2'), 'media-utils.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blob', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '98fccf5949d023c28f3bd71045621f60'), 'notices.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-polyfill'), 'version' => '7cae25e674c0dc3d1c4e8d42f89bd2e2'), 'nux.js' => array('dependencies' => array('lodash', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => '107217d4c19489a0d1f21e08526331c6'), 'plugins.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-polyfill', 'wp-primitives'), 'version' => '8f249a8adc2954966031702a8b29f498'), 'primitives.js' => array('dependencies' => array('wp-element', 'wp-polyfill'), 'version' => '4dba7bfcd17579030d4b93ea97a24db4'), 'priority-queue.js' => array('dependencies' => array('wp-polyfill'), 'version' => '59111ff6019a7401dba22121e795e543'), 'redux-routine.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '9441cdf8abe5a0f364cc6a8345068058'), 'reusable-blocks.js' => array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-polyfill', 'wp-primitives'), 'version' => '7675569cdeea817fb322bd60bb0532a2'), 'rich-text.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-escape-html', 'wp-keycodes', 'wp-polyfill'), 'version' => '4b38b5f9c11b52d85670239acb3fa0fc'), 'server-side-render.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => 'd78510caa4ce58473139a15b782b67e9'), 'shortcode.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '760ef1dc15a1da975ce384ac38245584'), 'token-list.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '9c3b2205ac79cc76094def2dd76a5cfa'), 'url.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '76613c4e7c046883554d789ee1af3c7a'), 'viewport.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-element', 'wp-polyfill'), 'version' => '2046fe168e829732d56285e317e158dd'), 'warning.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'e93e31a3954c2b1e23e96280b27d3715'), 'wordcount.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '5808f9da0ba314c3e34b085ac6194a69')); \ No newline at end of file diff --git a/wp-includes/blocks/archives.php b/wp-includes/blocks/archives.php index 04e7e4957c..7b51169e21 100644 --- a/wp-includes/blocks/archives.php +++ b/wp-includes/blocks/archives.php @@ -88,17 +88,16 @@ function render_block_core_archives( $attributes ) { $classnames = esc_attr( $class ); - if ( empty( $archives ) ) { + $wrapper_attributes = get_block_wrapper_attributes( array( 'class' => $classnames ) ); + if ( empty( $archives ) ) { return sprintf( - '<div class="%1$s">%2$s</div>', - $classnames, + '<div %1$s>%2$s</div>', + $wrapper_attributes, __( 'No archives to show.' ) ); } - $wrapper_attributes = get_block_wrapper_attributes( array( 'class' => $classnames ) ); - return sprintf( '<ul %1$s>%2$s</ul>', $wrapper_attributes, diff --git a/wp-includes/js/dist/block-editor.js b/wp-includes/js/dist/block-editor.js index 79ad14bda8..45442af614 100644 --- a/wp-includes/js/dist/block-editor.js +++ b/wp-includes/js/dist/block-editor.js @@ -13928,7 +13928,7 @@ __webpack_require__.d(selectors_namespaceObject, "isMultiSelecting", function() __webpack_require__.d(selectors_namespaceObject, "isSelectionEnabled", function() { return selectors_isSelectionEnabled; }); __webpack_require__.d(selectors_namespaceObject, "getBlockMode", function() { return selectors_getBlockMode; }); __webpack_require__.d(selectors_namespaceObject, "isTyping", function() { return selectors_isTyping; }); -__webpack_require__.d(selectors_namespaceObject, "isDraggingBlocks", function() { return selectors_isDraggingBlocks; }); +__webpack_require__.d(selectors_namespaceObject, "isDraggingBlocks", function() { return isDraggingBlocks; }); __webpack_require__.d(selectors_namespaceObject, "getDraggedBlockClientIds", function() { return selectors_getDraggedBlockClientIds; }); __webpack_require__.d(selectors_namespaceObject, "isBlockBeingDragged", function() { return isBlockBeingDragged; }); __webpack_require__.d(selectors_namespaceObject, "isAncestorBeingDragged", function() { return isAncestorBeingDragged; }); @@ -23190,7 +23190,7 @@ function __unstableSaveReusableBlock(id, updatedId) { }; } /** - * Returns an action object used in signalling that the last block change should be marked explicitely as persistent. + * Returns an action object used in signalling that the last block change should be marked explicitly as persistent. * * @return {Object} Action object. */ @@ -24592,7 +24592,7 @@ function selectors_isTyping(state) { * @return {boolean} Whether user is dragging blocks. */ -function selectors_isDraggingBlocks(state) { +function isDraggingBlocks(state) { return !!state.draggedBlocks.length; } /** @@ -24636,7 +24636,7 @@ function isBlockBeingDragged(state, clientId) { function isAncestorBeingDragged(state, clientId) { // Return early if no blocks are being dragged rather than // the more expensive check for parents. - if (!selectors_isDraggingBlocks(state)) { + if (!isDraggingBlocks(state)) { return false; } @@ -26696,7 +26696,6 @@ function Items(_ref2) { hasMultiSelection = _select.hasMultiSelection, getGlobalBlockCount = _select.getGlobalBlockCount, isTyping = _select.isTyping, - isDraggingBlocks = _select.isDraggingBlocks, __experimentalGetActiveBlockIdByBlockNames = _select.__experimentalGetActiveBlockIdByBlockNames; // Determine if there is an active entity area to spotlight. @@ -26709,7 +26708,6 @@ function Items(_ref2) { orientation: (_getBlockListSettings = getBlockListSettings(rootClientId)) === null || _getBlockListSettings === void 0 ? void 0 : _getBlockListSettings.orientation, hasMultiSelection: hasMultiSelection(), enableAnimation: !isTyping() && getGlobalBlockCount() <= BLOCK_ANIMATION_THRESHOLD, - isDraggingBlocks: isDraggingBlocks(), activeEntityBlockId: activeEntityBlockId }; } @@ -26721,17 +26719,16 @@ function Items(_ref2) { orientation = _useSelect.orientation, hasMultiSelection = _useSelect.hasMultiSelection, enableAnimation = _useSelect.enableAnimation, - isDraggingBlocks = _useSelect.isDraggingBlocks, activeEntityBlockId = _useSelect.activeEntityBlockId; var dropTargetIndex = useBlockDropZone({ element: wrapperRef, rootClientId: rootClientId }); - var isAppenderDropTarget = dropTargetIndex === blockClientIds.length && isDraggingBlocks; + var isAppenderDropTarget = dropTargetIndex === blockClientIds.length; return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, blockClientIds.map(function (clientId, index) { var isBlockInSelection = hasMultiSelection ? multiSelectedBlockClientIds.includes(clientId) : selectedBlockClientId === clientId; - var isDropTarget = dropTargetIndex === index && isDraggingBlocks; + var isDropTarget = dropTargetIndex === index; return Object(external_this_wp_element_["createElement"])(external_this_wp_data_["AsyncModeProvider"], { key: clientId, value: !isBlockInSelection @@ -34782,7 +34779,8 @@ function RichTextWrapper(_ref2, forwardedRef) { var _content = Object(external_this_wp_blocks_["pasteHandler"])({ HTML: filePasteHandler(files), mode: 'BLOCKS', - tagName: tagName + tagName: tagName, + preserveWhiteSpace: preserveWhiteSpace }); // Allows us to ask for this information when we get a report. // eslint-disable-next-line no-console @@ -34815,7 +34813,8 @@ function RichTextWrapper(_ref2, forwardedRef) { HTML: html, plainText: plainText, mode: mode, - tagName: tagName + tagName: tagName, + preserveWhiteSpace: preserveWhiteSpace }); if (typeof content === 'string') { @@ -34845,7 +34844,7 @@ function RichTextWrapper(_ref2, forwardedRef) { splitValue(value, content); } } - }, [tagName, onReplace, onSplit, splitValue, __unstableEmbedURLOnPaste, multiline]); + }, [tagName, onReplace, onSplit, splitValue, __unstableEmbedURLOnPaste, multiline, preserveWhiteSpace]); var inputRule = Object(external_this_wp_element_["useCallback"])(function (value, valueToFormat) { if (!onReplace) { return; diff --git a/wp-includes/js/dist/block-editor.min.js b/wp-includes/js/dist/block-editor.min.js index 24a3c8e752..2a4fff1fea 100644 --- a/wp-includes/js/dist/block-editor.min.js +++ b/wp-includes/js/dist/block-editor.min.js @@ -4,9 +4,9 @@ this.wp=this.wp||{},this.wp.blockEditor=function(e){var t={};function n(r){if(t[ Copyright (c) 2017 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var c=typeof r;if("string"===c||"number"===c)e.push(r);else if(Array.isArray(r)&&r.length){var i=o.apply(null,r);i&&e.push(i)}else if("object"===c)for(var a in r)n.call(r,a)&&r[a]&&e.push(a)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t){!function(){e.exports=this.wp.compose}()},function(e,t){!function(){e.exports=this.wp.blocks}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(38);var o=n(30),c=n(39);function i(e,t){return Object(r.a)(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,c=void 0;try{for(var i,a=e[Symbol.iterator]();!(r=(i=a.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,c=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw c}}return n}}(e,t)||Object(o.a)(e,t)||Object(c.a)()}},function(e,t){!function(){e.exports=this.React}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(43);function o(e,t){if(null==e)return{};var n,o,c=Object(r.a)(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(c[n]=e[n])}return c}},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}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t){if(null==e)return{};var n,r,o={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return l}))},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 i}));var r=n(27);var o=n(37),c=n(30);function i(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(o.a)(e)||Object(c.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t){!function(){e.exports=this.wp.keycodes}()},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}))},function(e,t){!function(){e.exports=this.regeneratorRuntime}()},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}))},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(40),o=n(16);function c(e,t){return!t||"object"!==Object(r.a)(t)&&"function"!=typeof t?Object(o.a)(e):t}},function(e,t){!function(){e.exports=this.wp.richText}()},,function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return r}))},function(e,t,n){e.exports=n(142)()},function(e,t){!function(){e.exports=this.wp.dom}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(27);function o(e,t){if(e){if("string"==typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},function(e,t){!function(){e.exports=this.wp.url}()},,function(e,t){!function(){e.exports=this.wp.hooks}()},,,function(e,t){!function(){e.exports=this.wp.deprecated}()},function(e,t,n){"use strict";function r(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}n.d(t,"a",(function(){return r}))},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.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}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)}n.d(t,"a",(function(){return r}))},function(e,t){!function(){e.exports=this.wp.blob}()},function(e,t,n){"use strict";var r,o;function c(e){return[e]}function i(){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<e.length;r++)if(e[r]!==t[r])return!1;return!0}r={},o="undefined"!=typeof WeakMap,t.a=function(e,t){var n,l;function s(){n=o?new WeakMap:i()}function u(){var n,r,o,c,i,s=arguments.length;for(c=new Array(s),o=0;o<s;o++)c[o]=arguments[o];for(i=t.apply(null,c),(n=l(i)).isUniqueByDependants||(n.lastDependants&&!a(i,n.lastDependants,0)&&n.clear(),n.lastDependants=i),r=n.head;r;){if(a(r.args,c,1))return r!==n.head&&(r.prev.next=r.next,r.next&&(r.next.prev=r.prev),r.next=n.head,r.prev=null,n.head.prev=r,n.head=r),r.val;r=r.next}return r={val:e.apply(null,c)},c[0]=null,r.args=c,n.head&&(n.head.prev=r,r.next=n.head),n.head=r,r.val}return t||(t=c),l=o?function(e){var t,o,c,a,l,s=n,u=!0;for(t=0;t<e.length;t++){if(o=e[t],!(l=o)||"object"!=typeof l){u=!1;break}s.has(o)?s=s.get(o):(c=new WeakMap,s.set(o,c),s=c)}return s.has(r)||((a=i()).isUniqueByDependants=u,s.set(r,a)),s.get(r)}:function(){return n},u.getDependants=t,u.clear=s,s(),u}},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";function r(e,t,n,r,o,c,i){try{var a=e[c](i),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,c){var i=e.apply(t,n);function a(e){r(i,o,c,a,l,"next",e)}function l(e){r(i,o,c,a,l,"throw",e)}a(void 0)}))}}n.d(t,"a",(function(){return o}))},function(e,t){!function(){e.exports=this.wp.a11y}()},,function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(13),o=n(59);function c(e){var t=Object(r.useRef)(e);return Object(o.a)((function(){t.current=e})),t}},function(e,t,n){"use strict";function r(e){return e?e.ownerDocument||e:window.document}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(13),o=n(76);function c(e,t){Object(r.useDebugValue)(e);var n=Object(r.useContext)(o.a);return null!=n[e]?n[e]:t}var i=n(55);var a=n(56);function l(e){var t,n,o,l=(o=e.compose,Array.isArray(o)?o:void 0!==o?[o]:[]),s=function(t,n){if(e.useOptions&&(t=e.useOptions(t,n)),e.name&&(t=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var o="use"+e+"Options";Object(r.useDebugValue)(o);var a=c(o);return a?Object(i.a)(Object(i.a)({},t),a(t,n)):t}(e.name,t,n)),e.compose)for(var o,a=Object(i.c)(l);!(o=a()).done;){t=o.value.__useOptions(t,n)}return t},u=function(t,n,o){if(void 0===t&&(t={}),void 0===n&&(n={}),void 0===o&&(o=!1),o||(t=s(t,n)),e.useProps&&(n=e.useProps(t,n)),e.name&&(n=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var o="use"+e+"Props";Object(r.useDebugValue)(o);var i=c(o);return i?i(t,n):n}(e.name,t,n)),e.compose)if(e.useComposeOptions&&(t=e.useComposeOptions(t,n)),e.useComposeProps)n=e.useComposeProps(t,n);else for(var a,u=Object(i.c)(l);!(a=u()).done;){n=(0,a.value)(t,n,!0)}var d={},b=n||{};for(var f in b)void 0!==b[f]&&(d[f]=b[f]);return d};u.__useOptions=s;var d=l.reduce((function(e,t){return e.push.apply(e,t.__keys||[]),e}),[]);return u.__keys=[].concat(d,(null===(t=e.useState)||void 0===t?void 0:t.__keys)||[],e.keys||[]),u.unstable_propsAreEqual=e.propsAreEqual||(null===(n=l[0])||void 0===n?void 0:n.unstable_propsAreEqual)||a.a,u}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(13),o=n(55),c=n(79);function i(e,t){for(var n={},r={},o=0,c=Object.keys(e);o<c.length;o++){var i=c[o];t.indexOf(i)>=0?n[i]=e[i]:r[i]=e[i]}return[n,r]}var a=n(56);function l(e){var t,n=e.as,l=e.useHook,s=e.memo,u=e.propsAreEqual,d=void 0===u?null==l?void 0:l.unstable_propsAreEqual:u,b=e.keys,f=void 0===b?(null==l?void 0:l.__keys)||[]:b,p=e.useCreateElement,m=void 0===p?c.a:p,v=function(e,t){var r=e.as,c=void 0===r?n:r,a=Object(o.b)(e,["as"]);if(l){var s,u=i(a,f),d=u[0],b=u[1],p=l(d,Object(o.a)({ref:t},b)),v=p.wrapElement,O=Object(o.b)(p,["wrapElement"]),g=(null===(s=c.render)||void 0===s?void 0:s.__keys)||c.__keys,h=g&&i(a,g)[0],j=h?Object(o.a)(Object(o.a)({},O),h):O,k=m(c,j);return v?v(k):k}return m(c,Object(o.a)({ref:t},a))};return t=v,v=Object(r.forwardRef)(t),s&&(v=function(e,t){return Object(r.memo)(e,t)}(v,d)),v.__keys=f,v.unstable_propsAreEqual=d||a.a,v}},function(e,t,n){"use strict";n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return O})),n.d(t,"c",(function(){return p})),n.d(t,"d",(function(){return f})),n.d(t,"e",(function(){return h})),n.d(t,"f",(function(){return s})),n.d(t,"g",(function(){return S}));var r=n(15),o=n(13),c=n(59),i=n(62),a=n(61),l=n(65);function s(e){return e.slice().reverse()}function u(e,t){return Boolean(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function d(e,t){return e.findIndex((function(e){return!(!e.ref.current||!t.ref.current)&&u(t.ref.current,e.ref.current)}))}function b(e,t){return t?e.find((function(e){return!e.disabled&&e.id!==t})):e.find((function(e){return!e.disabled}))}function f(e,t){if(t)return null==e?void 0:e.find((function(e){return e.id===t&&!e.disabled}))}function p(e){for(var t,n=[[]],o=function(){var e=t.value,r=n.find((function(t){return!t[0]||t[0].groupId===e.groupId}));r?r.push(e):n.push([e])},c=Object(r.c)(e);!(t=c()).done;)o();return n}function m(e){for(var t,n=0,o=Object(r.c)(e);!(t=o()).done;){var c=t.value.length;c>n&&(n=c)}return n}function v(e){for(var t=p(e),n=m(t),o=[],c=0;c<n;c+=1)for(var i,a=Object(r.c)(t);!(i=a()).done;){var l=i.value;l[c]&&o.push(Object(r.b)(Object(r.b)({},l[c]),{},{groupId:l[c].groupId?""+c:void 0}))}return o}function O(e){for(var t,n=[],o=Object(r.c)(e);!(t=o()).done;){var c=t.value;n.push.apply(n,c)}return n}function g(e){for(var t,n=m(e),o=Object(r.c)(e);!(t=o()).done;){var c=t.value;if(c.length<n)for(var i=0;i<n;i+=1)c[i]||(c[i]={id:"__EMPTY_ITEM__",disabled:!0,ref:{current:null},groupId:c[i-1].groupId})}return e}function h(e,t){var n;return t||null===t?t:e.currentId||null===e.currentId?e.currentId:null===(n=b(e.items||[]))||void 0===n?void 0:n.id}var j={id:null,ref:{current:null}};function k(e,t){return e.filter((function(e){return e.groupId===t}))}var y={horizontal:"vertical",vertical:"horizontal"};function _(e,t,n){return n in e?[].concat(e.slice(0,n),[t],e.slice(n)):[].concat(e,[t])}function E(e){var t=e.slice(),n=!1;return t.sort((function(e,t){var r=e.ref.current,o=t.ref.current;return r&&o&&u(r,o)?(n=!0,-1):0})),n?t:e}function C(e,t){var n=e.unstable_virtual,o=e.rtl,c=e.orientation,i=e.items,l=e.groups,u=e.currentId,m=e.loop,w=e.wrap,S=e.pastIds,I=e.unstable_moves,B=e.initialVirtual,x=e.initialRTL,P=e.initialOrientation,T=e.initialCurrentId,N=e.initialLoop,D=e.initialWrap,R=e.hasSetCurrentId;switch(t.type){case"registerGroup":var A=t.group;if(0===l.length)return Object(r.b)(Object(r.b)({},e),{},{groups:[A]});var M=d(l,A);return Object(r.b)(Object(r.b)({},e),{},{groups:_(l,A,M)});case"unregisterGroup":var L=t.id,F=l.filter((function(e){return e.id!==L}));return F.length===l.length?e:Object(r.b)(Object(r.b)({},e),{},{groups:F});case"registerItem":var V,H=t.item,z=l.find((function(e){var t;return null===(t=e.ref.current)||void 0===t?void 0:t.contains(H.ref.current)})),U=Object(r.b)({groupId:null==z?void 0:z.id},H),G=d(i,U),K=Object(r.b)(Object(r.b)({},e),{},{items:_(i,U,G)});return R||I||void 0!==T?K:Object(r.b)(Object(r.b)({},K),{},{currentId:null===(V=b(K.items))||void 0===V?void 0:V.id});case"unregisterItem":var W=t.id,q=i.filter((function(e){return e.id!==W}));if(q.length===i.length)return e;var $=S.filter((function(e){return e!==W})),Y=Object(r.b)(Object(r.b)({},e),{},{pastIds:$,items:q});if(u&&u===W){var X=h(Object(r.b)(Object(r.b)({},Y),{},{currentId:$[0]}));return Object(r.b)(Object(r.b)({},Y),{},{currentId:X})}return Y;case"move":var Q=t.id;if(void 0===Q)return e;var Z=S.filter((function(e){return e!==u&&e!==Q})),J=u?[u].concat(Z):Z,ee=Object(r.b)(Object(r.b)({},e),{},{pastIds:J});if(null===Q)return Object(r.b)(Object(r.b)({},ee),{},{unstable_moves:I+1,currentId:h(ee,Q)});var te=f(i,Q);return Object(r.b)(Object(r.b)({},ee),{},{unstable_moves:te?I+1:I,currentId:h(ee,null==te?void 0:te.id)});case"next":if(null==u)return C(e,Object(r.b)(Object(r.b)({},t),{},{type:"first"}));var ne=o&&"vertical"!==c,re=ne?s(i):i,oe=re.find((function(e){return e.id===u}));if(!oe)return C(e,Object(r.b)(Object(r.b)({},t),{},{type:"first"}));var ce=!!oe.groupId,ie=re.indexOf(oe),ae=re.slice(ie+1),le=k(ae,oe.groupId);if(t.allTheWay){var se=b(ne?k(re,oe.groupId):s(le));return C(e,Object(r.b)(Object(r.b)({},t),{},{type:"move",id:null==se?void 0:se.id}))}var ue=function(e){return e&&y[e]}(ce?c||"horizontal":c),de=m&&m!==ue,be=ce&&w&&w!==ue,fe=t.hasNullItem||!ce&&de&&null===T;if(de){var pe=b(function(e,t,n){var r=e.findIndex((function(e){return e.id===t}));return[].concat(e.slice(r+1),n?[j]:[],e.slice(0,r))}(be&&!fe?re:k(re,oe.groupId),u,fe),u);return C(e,Object(r.b)(Object(r.b)({},t),{},{type:"move",id:null==pe?void 0:pe.id}))}if(be){var me=b(fe?le:ae,u),ve=fe?(null==me?void 0:me.id)||null:null==me?void 0:me.id;return C(e,Object(r.b)(Object(r.b)({},t),{},{type:"move",id:ve}))}var Oe=b(le,u);return C(e,!Oe&&fe?Object(r.b)(Object(r.b)({},t),{},{type:"move",id:null}):Object(r.b)(Object(r.b)({},t),{},{type:"move",id:null==Oe?void 0:Oe.id}));case"previous":var ge=!!!l.length&&null===T,he=C(Object(r.b)(Object(r.b)({},e),{},{items:s(i)}),Object(r.b)(Object(r.b)({},t),{},{type:"next",hasNullItem:ge}));return Object(r.b)(Object(r.b)({},he),{},{items:i});case"down":var je=v(O(g(p(i)))),ke=m&&"horizontal"!==m&&null===T,ye=C(Object(r.b)(Object(r.b)({},e),{},{orientation:"vertical",items:je}),Object(r.b)(Object(r.b)({},t),{},{type:"next",hasNullItem:ke}));return Object(r.b)(Object(r.b)({},ye),{},{orientation:c,items:i});case"up":var _e=v(s(O(g(p(i))))),Ee=null===T,Ce=C(Object(r.b)(Object(r.b)({},e),{},{orientation:"vertical",items:_e}),Object(r.b)(Object(r.b)({},t),{},{type:"next",hasNullItem:Ee}));return Object(r.b)(Object(r.b)({},Ce),{},{orientation:c,items:i});case"first":var we=b(i);return C(e,Object(r.b)(Object(r.b)({},t),{},{type:"move",id:null==we?void 0:we.id}));case"last":var Se=C(Object(r.b)(Object(r.b)({},e),{},{items:s(i)}),Object(r.b)(Object(r.b)({},t),{},{type:"first"}));return Object(r.b)(Object(r.b)({},Se),{},{items:i});case"sort":return Object(r.b)(Object(r.b)({},e),{},{items:E(i),groups:E(l)});case"setVirtual":return Object(r.b)(Object(r.b)({},e),{},{unstable_virtual:Object(a.a)(t.virtual,n)});case"setRTL":return Object(r.b)(Object(r.b)({},e),{},{rtl:Object(a.a)(t.rtl,o)});case"setOrientation":return Object(r.b)(Object(r.b)({},e),{},{orientation:Object(a.a)(t.orientation,c)});case"setCurrentId":var Ie=h(Object(r.b)(Object(r.b)({},e),{},{currentId:Object(a.a)(t.currentId,u)}));return Object(r.b)(Object(r.b)({},e),{},{currentId:Ie,hasSetCurrentId:!0});case"setLoop":return Object(r.b)(Object(r.b)({},e),{},{loop:Object(a.a)(t.loop,m)});case"setWrap":return Object(r.b)(Object(r.b)({},e),{},{wrap:Object(a.a)(t.wrap,w)});case"reset":return Object(r.b)(Object(r.b)({},e),{},{unstable_virtual:B,rtl:x,orientation:P,currentId:h(Object(r.b)(Object(r.b)({},e),{},{currentId:T})),loop:N,wrap:D,unstable_moves:0,pastIds:[]});default:throw new Error}}function w(e){return Object(o.useCallback)(e,[])}function S(e){void 0===e&&(e={});var t=Object(i.a)(e),n=t.unstable_virtual,a=void 0!==n&&n,s=t.rtl,u=void 0!==s&&s,d=t.orientation,b=t.currentId,f=t.loop,p=void 0!==f&&f,m=t.wrap,v=void 0!==m&&m,O=Object(r.a)(t,["unstable_virtual","rtl","orientation","currentId","loop","wrap"]),g=Object(o.useReducer)(C,{unstable_virtual:a,rtl:u,orientation:d,items:[],groups:[],currentId:b,loop:p,wrap:v,unstable_moves:0,pastIds:[],initialVirtual:a,initialRTL:u,initialOrientation:d,initialCurrentId:b,initialLoop:p,initialWrap:v}),h=g[0],j=(h.pastIds,h.initialVirtual,h.initialRTL,h.initialOrientation,h.initialCurrentId,h.initialLoop,h.initialWrap,h.hasSetCurrentId,Object(r.a)(h,["pastIds","initialVirtual","initialRTL","initialOrientation","initialCurrentId","initialLoop","initialWrap","hasSetCurrentId"])),k=g[1],y=Object(o.useState)(!1),_=y[0],E=y[1],S=Object(l.a)(O),I=function(){var e=Object(o.useRef)(!1);return Object(c.a)((function(){return function(){e.current=!0}}),[]),e}();return Object(r.b)(Object(r.b)(Object(r.b)({},S),j),{},{unstable_hasActiveWidget:_,unstable_setHasActiveWidget:E,registerItem:w((function(e){I.current||k({type:"registerItem",item:e})})),unregisterItem:w((function(e){I.current||k({type:"unregisterItem",id:e})})),registerGroup:w((function(e){I.current||k({type:"registerGroup",group:e})})),unregisterGroup:w((function(e){I.current||k({type:"unregisterGroup",id:e})})),move:w((function(e){return k({type:"move",id:e})})),next:w((function(e){return k({type:"next",allTheWay:e})})),previous:w((function(e){return k({type:"previous",allTheWay:e})})),up:w((function(e){return k({type:"up",allTheWay:e})})),down:w((function(e){return k({type:"down",allTheWay:e})})),first:w((function(){return k({type:"first"})})),last:w((function(){return k({type:"last"})})),unstable_sort:w((function(){return k({type:"sort"})})),unstable_setVirtual:w((function(e){return k({type:"setVirtual",virtual:e})})),setRTL:w((function(e){return k({type:"setRTL",rtl:e})})),setOrientation:w((function(e){return k({type:"setOrientation",orientation:e})})),setCurrentId:w((function(e){return k({type:"setCurrentId",currentId:e})})),setLoop:w((function(e){return k({type:"setLoop",loop:e})})),setWrap:w((function(e){return k({type:"setWrap",wrap:e})})),reset:w((function(){return k({type:"reset"})}))})}var I=[].concat(l.a.__keys,["unstable_virtual","rtl","orientation","items","groups","currentId","loop","wrap","unstable_moves","unstable_hasActiveWidget","registerItem","unregisterItem","registerGroup","unregisterGroup","move","next","previous","up","down","first","last","unstable_sort","unstable_setVirtual","setRTL","setOrientation","setCurrentId","setLoop","setWrap","reset","unstable_setHasActiveWidget"]);S.__keys=I},function(e,t){!function(){e.exports=this.wp.keyboardShortcuts}()},function(e,t,n){"use strict";function r(e){return e.target===e.currentTarget}n.d(t,"a",(function(){return r}))},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}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t){if(null==e)return{};var n,r,o={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return l}))},function(e,t,n){"use strict";function r(e,t){if(e===t)return!0;if(!e)return!1;if(!t)return!1;if("object"!=typeof e)return!1;if("object"!=typeof t)return!1;var n=Object.keys(e),r=Object.keys(t),o=n.length;if(r.length!==o)return!1;for(var c=0,i=n;c<i.length;c++){var a=i[c];if(e[a]!==t[a])return!1}return!0}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(49);function o(e){return Object(r.a)(e).activeElement}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(13),o="undefined"==typeof window?r.useEffect:r.useLayoutEffect},function(e,t,n){e.exports=function(e,t){var n,r,o=0;function c(){var c,i,a=n,l=arguments.length;e:for(;a;){if(a.args.length===arguments.length){for(i=0;i<l;i++)if(a.args[i]!==arguments[i]){a=a.next;continue e}return a!==n&&(a===r&&(r=a.prev),a.prev.next=a.next,a.next&&(a.next.prev=a.prev),a.next=n,a.prev=null,n.prev=a,n=a),a.val}a=a.next}for(c=new Array(l),i=0;i<l;i++)c[i]=arguments[i];return a={args:c,val:e.apply(null,c)},n?(n.prev=a,a.next=n):r=a,o===t.maxSize?(r=r.prev).next=null:o++,n=a,a.val}return t=t||{},c.clear=function(){n=null,r=null,o=0},c}},function(e,t,n){"use strict";function r(e,t){return function(e){return"function"==typeof e}(e)?e(t):e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(13);function o(e){return Object(r.useState)(e)[0]}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(13);function o(e,t){void 0===t&&(t=null),e&&("function"==typeof e?e(t):e.current=t)}function c(e,t){return Object(r.useMemo)((function(){return null==e&&null==t?null:function(n){o(e,n),o(t,n)}}),[e,t])}},function(e,t){!function(){e.exports=this.wp.isShallowEqual}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(13),o=n(62),c=n(68);function i(e){void 0===e&&(e={});var t=Object(o.a)(e).baseId,n=Object(r.useContext)(c.a),i=Object(r.useRef)(0),a=Object(r.useState)((function(){return t||n()}));return{baseId:a[0],unstable_setBaseId:a[1],unstable_idCountRef:i}}i.__keys=["baseId","unstable_setBaseId","unstable_idCountRef"]},function(e,t,n){var r;!function(o){var c=/^\s+/,i=/\s+$/,a=0,l=o.round,s=o.min,u=o.max,d=o.random;function b(e,t){if(t=t||{},(e=e||"")instanceof b)return e;if(!(this instanceof b))return new b(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,r=null,a=null,l=null,d=!1,b=!1;"string"==typeof e&&(e=function(e){e=e.replace(c,"").replace(i,"").toLowerCase();var t,n=!1;if(x[e])e=x[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=U.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=U.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=U.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=U.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=U.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=U.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=U.hex8.exec(e))return{r:R(t[1]),g:R(t[2]),b:R(t[3]),a:F(t[4]),format:n?"name":"hex8"};if(t=U.hex6.exec(e))return{r:R(t[1]),g:R(t[2]),b:R(t[3]),format:n?"name":"hex"};if(t=U.hex4.exec(e))return{r:R(t[1]+""+t[1]),g:R(t[2]+""+t[2]),b:R(t[3]+""+t[3]),a:F(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=U.hex3.exec(e))return{r:R(t[1]+""+t[1]),g:R(t[2]+""+t[2]),b:R(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==typeof e&&(G(e.r)&&G(e.g)&&G(e.b)?(f=e.r,p=e.g,m=e.b,t={r:255*N(f,255),g:255*N(p,255),b:255*N(m,255)},d=!0,b="%"===String(e.r).substr(-1)?"prgb":"rgb"):G(e.h)&&G(e.s)&&G(e.v)?(r=M(e.s),a=M(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),c=e-r,i=n*(1-t),a=n*(1-c*t),l=n*(1-(1-c)*t),s=r%6;return{r:255*[n,a,i,i,l,n][s],g:255*[l,n,n,a,i,i][s],b:255*[i,i,l,n,n,a][s]}}(e.h,r,a),d=!0,b="hsv"):G(e.h)&&G(e.s)&&G(e.l)&&(r=M(e.s),l=M(e.l),t=function(e,t,n){var r,o,c;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=N(e,360),t=N(t,100),n=N(n,100),0===t)r=o=c=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=i(l,a,e+1/3),o=i(l,a,e),c=i(l,a,e-1/3)}return{r:255*r,g:255*o,b:255*c}}(e.h,r,l),d=!0,b="hsl"),e.hasOwnProperty("a")&&(n=e.a));var f,p,m;return n=T(n),{ok:d,format:e.format||b,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 f(e,t,n){e=N(e,255),t=N(t,255),n=N(n,255);var r,o,c=u(e,t,n),i=s(e,t,n),a=(c+i)/2;if(c==i)r=o=0;else{var l=c-i;switch(o=a>.5?l/(2-c-i):l/(c+i),c){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4}r/=6}return{h:r,s:o,l:a}}function p(e,t,n){e=N(e,255),t=N(t,255),n=N(n,255);var r,o,c=u(e,t,n),i=s(e,t,n),a=c,l=c-i;if(o=0===c?0:l/c,c==i)r=0;else{switch(c){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4}r/=6}return{h:r,s:o,v:a}}function m(e,t,n,r){var o=[A(l(e).toString(16)),A(l(t).toString(16)),A(l(n).toString(16))];return r&&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[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function v(e,t,n,r){return[A(L(r)),A(l(e).toString(16)),A(l(t).toString(16)),A(l(n).toString(16))].join("")}function O(e,t){t=0===t?0:t||10;var n=b(e).toHsl();return n.s-=t/100,n.s=D(n.s),b(n)}function g(e,t){t=0===t?0:t||10;var n=b(e).toHsl();return n.s+=t/100,n.s=D(n.s),b(n)}function h(e){return b(e).desaturate(100)}function j(e,t){t=0===t?0:t||10;var n=b(e).toHsl();return n.l+=t/100,n.l=D(n.l),b(n)}function k(e,t){t=0===t?0:t||10;var n=b(e).toRgb();return n.r=u(0,s(255,n.r-l(-t/100*255))),n.g=u(0,s(255,n.g-l(-t/100*255))),n.b=u(0,s(255,n.b-l(-t/100*255))),b(n)}function y(e,t){t=0===t?0:t||10;var n=b(e).toHsl();return n.l-=t/100,n.l=D(n.l),b(n)}function _(e,t){var n=b(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,b(n)}function E(e){var t=b(e).toHsl();return t.h=(t.h+180)%360,b(t)}function C(e){var t=b(e).toHsl(),n=t.h;return[b(e),b({h:(n+120)%360,s:t.s,l:t.l}),b({h:(n+240)%360,s:t.s,l:t.l})]}function w(e){var t=b(e).toHsl(),n=t.h;return[b(e),b({h:(n+90)%360,s:t.s,l:t.l}),b({h:(n+180)%360,s:t.s,l:t.l}),b({h:(n+270)%360,s:t.s,l:t.l})]}function S(e){var t=b(e).toHsl(),n=t.h;return[b(e),b({h:(n+72)%360,s:t.s,l:t.l}),b({h:(n+216)%360,s:t.s,l:t.l})]}function I(e,t,n){t=t||6,n=n||30;var r=b(e).toHsl(),o=360/n,c=[b(e)];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,c.push(b(r));return c}function B(e,t){t=t||6;for(var n=b(e).toHsv(),r=n.h,o=n.s,c=n.v,i=[],a=1/t;t--;)i.push(b({h:r,s:o,v:c})),c=(c+a)%1;return i}b.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=l(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=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=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=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 m(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 c=[A(l(e).toString(16)),A(l(t).toString(16)),A(l(n).toString(16)),A(L(r))];if(o&&c[0].charAt(0)==c[0].charAt(1)&&c[1].charAt(0)==c[1].charAt(1)&&c[2].charAt(0)==c[2].charAt(1)&&c[3].charAt(0)==c[3].charAt(1))return c[0].charAt(0)+c[1].charAt(0)+c[2].charAt(0)+c[3].charAt(0);return c.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)&&(P[m(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+v(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=b(e);n="#"+v(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 b(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(k,arguments)},darken:function(){return this._applyModification(y,arguments)},desaturate:function(){return this._applyModification(O,arguments)},saturate:function(){return this._applyModification(g,arguments)},greyscale:function(){return this._applyModification(h,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(E,arguments)},monochromatic:function(){return this._applyCombination(B,arguments)},splitcomplement:function(){return this._applyCombination(S,arguments)},triad:function(){return this._applyCombination(C,arguments)},tetrad:function(){return this._applyCombination(w,arguments)}},b.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:M(e[r]));e=n}return b(e,t)},b.equals=function(e,t){return!(!e||!t)&&b(e).toRgbString()==b(t).toRgbString()},b.random=function(){return b.fromRatio({r:d(),g:d(),b:d()})},b.mix=function(e,t,n){n=0===n?0:n||50;var r=b(e).toRgb(),o=b(t).toRgb(),c=n/100;return b({r:(o.r-r.r)*c+r.r,g:(o.g-r.g)*c+r.g,b:(o.b-r.b)*c+r.b,a:(o.a-r.a)*c+r.a})},b.readability=function(e,t){var n=b(e),r=b(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},b.isReadable=function(e,t,n){var r,o,c=b.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=c>=4.5;break;case"AAlarge":o=c>=3;break;case"AAAsmall":o=c>=7}return o},b.mostReadable=function(e,t,n){var r,o,c,i,a=null,l=0;o=(n=n||{}).includeFallbackColors,c=n.level,i=n.size;for(var s=0;s<t.length;s++)(r=b.readability(e,t[s]))>l&&(l=r,a=b(t[s]));return b.isReadable(e,a,{level:c,size:i})||!o?a:(n.includeFallbackColors=!1,b.mostReadable(e,["#fff","#000"],n))};var x=b.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=b.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(x);function T(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 D(e){return s(1,u(0,e))}function R(e){return parseInt(e,16)}function A(e){return 1==e.length?"0"+e:""+e}function M(e){return e<=1&&(e=100*e+"%"),e}function L(e){return o.round(255*parseFloat(e)).toString(16)}function F(e){return R(e)/255}var V,H,z,U=(H="[\\s|\\(]+("+(V="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",z="[\\s|\\(]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",{CSS_UNIT:new RegExp(V),rgb:new RegExp("rgb"+H),rgba:new RegExp("rgba"+z),hsl:new RegExp("hsl"+H),hsla:new RegExp("hsla"+z),hsv:new RegExp("hsv"+H),hsva:new RegExp("hsva"+z),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 G(e){return!!U.CSS_UNIT.exec(e)}e.exports?e.exports=b:void 0===(r=function(){return b}.call(t,n,t,e))||(e.exports=r)}(Math)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(15),o=n(51),c=n(50),i=n(56),a=Object(c.a)({name:"Box",keys:["unstable_system"],propsAreEqual:function(e,t){var n=e.unstable_system,o=Object(r.a)(e,["unstable_system"]),c=t.unstable_system,a=Object(r.a)(t,["unstable_system"]);return!(n!==c&&!Object(i.a)(n,c))&&Object(i.a)(o,a)}});Object(o.a)({as:"div",useHook:a})},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(13);var o=Object(r.createContext)((function(e){return void 0===e&&(e="id"),(e?e+"-":"")+Math.random().toString(32).substr(2,6)}))},function(e,t){!function(){e.exports=this.wp.htmlEntities}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(57);function o(e){var t=Object(r.a)(e);if(!t)return!1;if(e.contains(t))return!0;var n=t.getAttribute("aria-activedescendant");return!!n&&(n===e.id||!!e.querySelector("#"+n))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=["button","color","file","image","reset","submit"];function o(e){if("BUTTON"===e.tagName)return!0;if("INPUT"===e.tagName){var t=e;return-1!==r.indexOf(t.type)}return!1}},function(e,t,n){"use strict";function r(e,t){return"matches"in e?e.matches(t):"msMatchesSelector"in e?e.msMatchesSelector(t):e.webkitMatchesSelector(t)}function o(e,t){if("closest"in e)return e.closest(t);do{if(r(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return l}));var c=n(57),i="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])";function a(e){return r(e,i)&&function(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0}(e)}function l(e){for(;e&&!a(e);)e=o(e,i);return e}function s(e){return Object(c.a)(e)===e}function u(e,t){var n=void 0===t?{}:t,r=n.isActive,o=void 0===r?s:r,c=n.preventScroll;return o(e)?-1:(e.focus({preventScroll:c}),o(e)?-1:requestAnimationFrame((function(){e.focus({preventScroll:c})})))}},function(e,t,n){"use strict";function r(e){return t=e.currentTarget,n=e.target,!(t===n||t.contains(n));var t,n}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(15),o=n(51),c=n(50),i=n(67),a=n(13),l=n(63),s=n(71),u=(n(81),n(48)),d=n(59),b=n(70),f=n(73),p=n(57),m=n(72);function v(e){return"undefined"!=typeof window&&-1!==window.navigator.userAgent.indexOf(e)}var O=v("Mac")&&!v("Chrome")&&(v("Safari")||v("Firefox"));function g(e){Object(b.a)(e)||e.focus()}var h=Object(c.a)({name:"Tabbable",compose:i.a,keys:["disabled","focusable"],useOptions:function(e,t){var n=t.disabled;return Object(r.b)({disabled:n},e)},useProps:function(e,t){var n=t.ref,o=t.tabIndex,c=t.onClick,i=t.onMouseDown,b=t.style,v=Object(r.a)(t,["ref","tabIndex","onClick","onMouseDown","style"]),h=Object(a.useRef)(null),j=Object(u.a)(c),k=Object(u.a)(i),y=e.disabled&&!e.focusable,_=Object(a.useState)(!0),E=_[0],C=_[1],w=E?o:o||0,S=e.disabled?Object(r.b)({pointerEvents:"none"},b):b,I=function(){if(O){var e=Object(a.useState)(null),t=e[0],n=e[1];return Object(a.useEffect)((function(){t&&(g(t),n(null))}),[t]),Object(a.useCallback)((function(e){var t=e.currentTarget;if(!Object(f.a)(e)&&Object(s.a)(t)){var r=Object(p.a)(t);if(r){var o="BODY"===r.tagName,c=Object(m.b)(t.parentElement);if(r===c||o&&!c)n(t);else if(c){c.addEventListener("focusin",(function(){return n(t)}),{once:!0})}else{r.addEventListener("blur",(function(){return g(t)}),{once:!0})}}}}),[])}}();Object(d.a)((function(){var e,t=h.current;t&&("BUTTON"!==(e=t).tagName&&"INPUT"!==e.tagName&&"SELECT"!==e.tagName&&"TEXTAREA"!==e.tagName&&"A"!==e.tagName&&"AUDIO"!==e.tagName&&"VIDEO"!==e.tagName&&C(!1))}),[]);var B=Object(a.useCallback)((function(t){var n;if(e.disabled)return t.stopPropagation(),void t.preventDefault();null===(n=j.current)||void 0===n||n.call(j,t)}),[e.disabled]),x=Object(a.useCallback)((function(t){var n;if(e.disabled)return t.stopPropagation(),void t.preventDefault();null===(n=k.current)||void 0===n||n.call(k,t),t.defaultPrevented||null==I||I(t)}),[e.disabled,I]);return Object(r.b)({ref:Object(l.a)(h,n),style:S,tabIndex:y?void 0:w,disabled:!(!y||!E)||void 0,"aria-disabled":!!e.disabled||void 0,onClick:B,onMouseDown:x},v)}});Object(o.a)({as:"div",useHook:h})},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(13),o=Object(r.createContext)({})},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(13),o=n(76),c=n(55);var i=function(e,t,n){void 0===n&&(n=t.children);var i=Object(r.useContext)(o.a);if(i.useCreateElement)return i.useCreateElement(e,t,n);if("string"==typeof e&&function(e){return"function"==typeof e}(n)){t.children;return n(Object(c.b)(t,["children"]))}return Object(r.createElement)(e,t,n)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));var r=n(2),o=n(0),c=Object(o.createContext)({name:"",isSelected:!1,focusedElement:null,setFocusedElement:r.noop,clientId:null}),i=c.Provider;function a(){return Object(o.useContext)(c)}},function(e,t,n){"use strict";n(108),n(13)},function(e,t,n){"use strict";function r(e){var t=void 0===e?{}:e,n=t.keyMap,r=t.onKey,o=t.stopPropagation,c=t.onKeyDown,i=t.shouldKeyDown,a=void 0===i?function(){return!0}:i,l=t.preventDefault,s=void 0===l||l;return function(e){if(n){var t,i="function"==typeof n?n(e):n,l="function"==typeof s?s(e):s,u="function"==typeof o?o(e):o;if(e.key in i){var d=i[e.key];if("function"==typeof d&&a(e))return l&&e.preventDefault(),u&&e.stopPropagation(),r&&r(e),void d(e)}if(c&&"current"in c)null===(t=c.current)||void 0===t||t.call(c,e);else null==c||c(e)}}}n.d(t,"a",(function(){return r}))},,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(15),o=n(51),c=n(50),i=n(13),a=n(71),l=(n(81),n(48)),s=n(54),u=n(74);var d=Object(c.a)({name:"Clickable",compose:u.a,keys:["unstable_clickOnEnter","unstable_clickOnSpace"],useOptions:function(e){var t=e.unstable_clickOnEnter,n=void 0===t||t,o=e.unstable_clickOnSpace,c=void 0===o||o,i=Object(r.a)(e,["unstable_clickOnEnter","unstable_clickOnSpace"]);return Object(r.b)({unstable_clickOnEnter:n,unstable_clickOnSpace:c},i)},useProps:function(e,t){var n=t.onKeyDown,o=t.onKeyUp,c=Object(r.a)(t,["onKeyDown","onKeyUp"]),u=Object(i.useState)(!1),d=u[0],b=u[1],f=Object(l.a)(n),p=Object(l.a)(o),m=Object(i.useCallback)((function(t){var n;if(null===(n=f.current)||void 0===n||n.call(f,t),!t.defaultPrevented&&!e.disabled&&!t.metaKey&&Object(s.a)(t)){var r=e.unstable_clickOnEnter&&"Enter"===t.key,o=e.unstable_clickOnSpace&&" "===t.key;if(r||o){if(function(e){var t=e.currentTarget;return!!e.isTrusted&&(Object(a.a)(t)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||"A"===t.tagName||"SELECT"===t.tagName)}(t))return;t.preventDefault(),r?t.currentTarget.click():o&&b(!0)}}}),[e.disabled,e.unstable_clickOnEnter,e.unstable_clickOnSpace]),v=Object(i.useCallback)((function(t){var n;if(null===(n=p.current)||void 0===n||n.call(p,t),!t.defaultPrevented&&!e.disabled&&!t.metaKey){var r=e.unstable_clickOnSpace&&" "===t.key;d&&r&&(b(!1),t.currentTarget.click())}}),[e.disabled,e.unstable_clickOnSpace,d]);return Object(r.b)({"data-active":d||void 0,onKeyDown:m,onKeyUp:v},c)}});Object(o.a)({as:"button",memo:!0,useHook:d})},,function(e,t){!function(){e.exports=this.wp.warning}()},,function(e,t){!function(){e.exports=this.wp.notices}()},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(15),o=n(51),c=n(50),i=n(13),a=n(68),l=n(65),s=Object(c.a)({useState:l.a,keys:["id"],useOptions:function(e,t){var n=Object(i.useContext)(a.a),o=Object(i.useState)((function(){return e.unstable_idCountRef?(e.unstable_idCountRef.current+=1,"-"+e.unstable_idCountRef.current):e.baseId?"-"+n(""):""}))[0],c=Object(i.useMemo)((function(){return e.baseId||n()}),[e.baseId,n]),l=t.id||e.id||""+c+o;return Object(r.b)(Object(r.b)({},e),{},{id:l})},useProps:function(e,t){return Object(r.b)({id:e.id},t)}});Object(o.a)({as:"div",useHook:s})},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(126);function o(e,t,n){return e.dispatchEvent(Object(r.a)(e,t,n))}},function(e,t,n){"use strict";function r(e){try{var t=e instanceof HTMLInputElement&&null!==e.selectionStart,n="TEXTAREA"===e.tagName,r="true"===e.contentEditable;return t||n||r||!1}catch(e){return!1}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){e.value=t}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";t.__esModule=!0;var r=n(180);t.default=r.default},function(e,t){!function(){e.exports=this.wp.viewport}()},function(e,t){var n,r,o=e.exports={};function c(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===c||!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:c}catch(e){n=c}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var l,s=[],u=!1,d=-1;function b(){u&&l&&(u=!1,l.length?s=l.concat(s):d=-1,s.length&&f())}function f(){if(!u){var e=a(b);u=!0;for(var t=s.length;t;){for(l=s,s=[];++d<t;)l&&l[d].run();d=-1,t=s.length}l=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function m(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new p(e,t)),1!==s.length||u||a(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(49);function o(e,t,n){if(void 0===n&&(n={}),"function"==typeof KeyboardEvent)return new KeyboardEvent(t,n);var o=Object(r.a)(e).createEvent("KeyboardEvent");return o.initKeyboardEvent(t,n.bubbles,n.cancelable,function(e){return Object(r.a)(e).defaultView||window}(e),n.key,n.location,n.ctrlKey,n.altKey,n.shiftKey,n.metaKey),o}function c(e,t,n){return e.dispatchEvent(o(e,t,n))}},,,,function(e,t,n){"use strict"},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(177)),c=r(n(178)),i=n(13),a=r(i),l=r(n(148)),s=r(n(179)),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 b(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<t;r++)n[r-1]=arguments[r];return u.fun(e)?e.apply(void 0,n):e}function m(e){var t=function(e){return e.to,e.from,e.config,e.onStart,e.onRest,e.onFrame,e.children,e.reset,e.reverse,e.force,e.immediate,e.delay,e.attach,e.destroyed,e.interpolateTo,e.ref,e.lazy,c(e,["to","from","config","onStart","onRest","onFrame","children","reset","reverse","force","immediate","delay","attach","destroyed","interpolateTo","ref","lazy"])}(e);if(u.und(t))return o({to:t},e);var n=Object.keys(e).reduce((function(n,r){var c;return u.und(t[r])?o({},n,((c={})[r]=e[r],c)):n}),{});return o({to:t},n)}var v,O,g=function(){function e(){this.payload=void 0,this.children=[]}var t=e.prototype;return t.getAnimatedValue=function(){return this.getValue()},t.getPayload=function(){return this.payload||this},t.attach=function(){},t.detach=function(){},t.getChildren=function(){return this.children},t.addChild=function(e){0===this.children.length&&this.attach(),this.children.push(e)},t.removeChild=function(e){var t=this.children.indexOf(e);this.children.splice(t,1),0===this.children.length&&this.detach()},e}(),h=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).payload=[],t.attach=function(){return t.payload.forEach((function(e){return e instanceof g&&e.addChild(s(t))}))},t.detach=function(){return t.payload.forEach((function(e){return e instanceof g&&e.removeChild(s(t))}))},t}return l(t,e),t}(g),j=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).payload={},t.attach=function(){return Object.values(t.payload).forEach((function(e){return e instanceof g&&e.addChild(s(t))}))},t.detach=function(){return Object.values(t.payload).forEach((function(e){return e instanceof g&&e.removeChild(s(t))}))},t}l(t,e);var n=t.prototype;return n.getValue=function(e){void 0===e&&(e=!1);var t={};for(var n in this.payload){var r=this.payload[n];(!e||r instanceof g)&&(t[n]=r instanceof g?r[e?"getAnimatedValue":"getValue"]():r)}return t},n.getAnimatedValue=function(){return this.getValue(!0)},t}(g);function k(e,t){v={fn:e,transform:t}}function y(e){O=e}var _,E=function(e){return"undefined"!=typeof window?window.requestAnimationFrame(e):-1},C=function(e){"undefined"!=typeof window&&window.cancelAnimationFrame(e)};function w(e){_=e}var S,I=function(){return Date.now()};function B(e){S=e}var x,P,T=function(e){return e.current};function N(e){x=e}var D=Object.freeze({get applyAnimatedValues(){return v},injectApplyAnimatedValues:k,get colorNames(){return O},injectColorNames:y,get requestFrame(){return E},get cancelFrame(){return C},injectFrame:function(e,t){E=e,C=t},get interpolation(){return _},injectStringInterpolator:w,get now(){return I},injectNow:function(e){I=e},get defaultElement(){return S},injectDefaultElement:B,get animatedApi(){return T},injectAnimatedApi:function(e){T=e},get createAnimatedStyle(){return x},injectCreateAnimatedStyle:N,get manualFrameloop(){return P},injectManualFrameloop:function(e){P=e}}),R=function(e){function t(t,n){var r;return(r=e.call(this)||this).update=void 0,r.payload=t.style?o({},t,{style:x(t.style)}):t,r.update=n,r.attach(),r}return l(t,e),t}(j),A=!1,M=new Set,L=function e(){if(!A)return!1;var t=I(),n=M,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var c;if(r){if(o>=n.length)break;c=n[o++]}else{if((o=n.next()).done)break;c=o.value}for(var i=c,a=!1,l=0;l<i.configs.length;l++){for(var s=i.configs[l],u=void 0,d=void 0,b=0;b<s.animatedValues.length;b++){var f=s.animatedValues[b];if(!f.done){var p=s.fromValues[b],m=s.toValues[b],v=f.lastPosition,O=m instanceof g,h=Array.isArray(s.initialVelocity)?s.initialVelocity[b]:s.initialVelocity;if(O&&(m=m.getValue()),s.immediate)f.setValue(m),f.done=!0;else if("string"!=typeof p&&"string"!=typeof m){if(void 0!==s.duration)v=p+s.easing((t-f.startTime)/s.duration)*(m-p),u=t>=f.startTime+s.duration;else if(s.decay)v=p+h/(1-.998)*(1-Math.exp(-(1-.998)*(t-f.startTime))),(u=Math.abs(f.lastPosition-v)<.1)&&(m=v);else{d=void 0!==f.lastTime?f.lastTime:t,h=void 0!==f.lastVelocity?f.lastVelocity:s.initialVelocity,t>d+64&&(d=t);for(var j=Math.floor(t-d),k=0;k<j;++k){v+=1*(h+=1*((-s.tension*(v-m)+-s.friction*h)/s.mass)/1e3)/1e3}var y=!(!s.clamp||0===s.tension)&&(p<m?v>m:v<m),_=Math.abs(h)<=s.precision,C=0===s.tension||Math.abs(m-v)<=s.precision;u=y||_&&C,f.lastVelocity=h,f.lastTime=t}O&&!s.toValues[b].done&&(u=!1),u?(f.value!==m&&(v=m),f.done=!0):a=!0,f.setValue(v),f.lastPosition=v}else f.setValue(m),f.done=!0}}i.props.onFrame&&(i.values[s.name]=s.interpolation.getValue())}i.props.onFrame&&i.props.onFrame(i.values),a||(M.delete(i),i.stop(!0))}return M.size?P?P():E(e):A=!1,A};function F(e,t,n){if("function"==typeof e)return e;if(Array.isArray(e))return F({range:e,output:t,extrapolate:n});if(_&&"string"==typeof e.output[0])return _(e);var r=e,o=r.output,c=r.range||[0,1],i=r.extrapolateLeft||r.extrapolate||"extend",a=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||function(e){return e};return function(e){var t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,c);return function(e,t,n,r,o,c,i,a,l){var s=l?l(e):e;if(s<t){if("identity"===i)return s;"clamp"===i&&(s=t)}if(s>n){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=c(s),r===-1/0?s=-s:o===1/0?s+=r:s=s*(o-r)+r;return s}(e,c[t],c[t+1],o[t],o[t+1],l,i,a,r.map)}}var V=function(e){function t(n,r,o,c){var i;return(i=e.call(this)||this).calc=void 0,i.payload=n instanceof h&&!(n instanceof t)?n.getPayload():Array.isArray(n)?n:[n],i.calc=F(r,o,c),i}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}(h);var H=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 V(this,e,t,n)},t}(g),z=function(e){function t(t){var n;return(n=e.call(this)||this).payload=t.map((function(e){return new H(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 V(this,e,t)},t}(h),U=0,G=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=U++}var t=e.prototype;return t.update=function(e){if(!e)return this;var t=m(e),n=t.delay,r=void 0===n?0:n,i=t.to,a=c(t,["delay","to"]);if(u.arr(i)||u.fun(i))this.queue.push(o({},a,{delay:r,to:i}));else if(i){var l={};Object.entries(i).forEach((function(e){var t,n=e[0],c=e[1],i=o({to:(t={},t[n]=c,t),delay:p(r,n)},a),s=l[i.delay]&&l[i.delay].to;l[i.delay]=o({},l[i.delay],i,{to:o({},s,i.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,c=e.to,i=void 0===c?{}:c;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 a=t.delay,l=c(t,["delay"]),s=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(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,M.has(t)||M.add(t),A||(A=!0,E(P||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,M.has(t)&&M.delete(t)),this},t.runAsync=function(e,t){var n=this,r=(e.delay,c(e,["delay"])),i=this.local,a=Promise.resolve(void 0);if(u.arr(r.to))for(var l=function(e){var t=e,c=o({},r,m(r.to[t]));u.arr(c.config)&&(c.config=c.config[t]),a=a.then((function(){if(i===n.guid)return new Promise((function(e){return n.diff(c).start(e)}))}))},s=0;s<r.to.length;s++)l(s);else if(u.fun(r.to)){var d,b=0;a=a.then((function(){return r.to((function(e){var t=o({},r,m(e));if(u.arr(t.config)&&(t.config=t.config[b]),b++,i===n.guid)return d=new Promise((function(e){return n.diff(t).start(e)}))}),(function(e){return void 0===e&&(e=!0),n.stop(e)})).then((function(){return d}))}))}a.then(t)},t.diff=function(e){var t=this;this.props=o({},this.props,e);var n=this.props,r=n.from,c=void 0===r?{}:r,i=n.to,a=void 0===i?{}:i,l=n.config,s=void 0===l?{}:l,d=n.reverse,m=n.attach,v=n.reset,g=n.immediate;if(d){var h=[a,c];c=h[0],a=h[1]}this.merged=o({},c,this.merged,a),this.hasChanged=!1;var j=m&&m(this);if(this.animations=Object.entries(this.merged).reduce((function(e,n){var r=n[0],i=n[1],a=e[r]||{},l=u.num(i),d=u.str(i)&&!i.startsWith("#")&&!/\d/.test(i)&&!O[i],m=u.arr(i),h=!l&&!m&&!d,k=u.und(c[r])?i:c[r],y=l||m||d?i:1,E=p(s,r);j&&(y=j.animations[r].parent);var C,w=a.parent,S=a.interpolation,B=f(j?y.getPayload():y),x=i;h&&(x=_({range:[0,1],output:[i,i]})(1));var P,T=S&&S.getValue(),N=!u.und(w)&&a.animatedValues.some((function(e){return!e.done})),D=!u.equ(x,T),R=!u.equ(x,a.previous),A=!u.equ(E,a.config);if(v||R&&D||A){var M;if(l||d)w=S=a.parent||new H(k);else if(m)w=S=a.parent||new z(k);else if(h){var L=a.interpolation&&a.interpolation.calc(a.parent.value);L=void 0===L||v?k:L,a.parent?(w=a.parent).setValue(0,!1):w=new H(0);var F={output:[L,i]};a.interpolation?(S=a.interpolation,a.interpolation.updateConfig(F)):S=w.interpolate(F)}return B=f(j?y.getPayload():y),C=f(w.getPayload()),v&&!h&&w.setValue(k,!1),t.hasChanged=!0,C.forEach((function(e){e.startPosition=e.value,e.lastPosition=e.value,e.lastVelocity=N?e.lastVelocity:void 0,e.lastTime=N?e.lastTime:void 0,e.startTime=I(),e.done=!1,e.animatedStyles.clear()})),p(g,r)&&w.setValue(h?y:i,!1),o({},e,((M={})[r]=o({},a,{name:r,parent:w,interpolation:S,animatedValues:C,toValues:B,previous:x,config:E,fromValues:f(w.getValue()),immediate:p(g,r),initialVelocity:b(E.velocity,0),clamp:b(E.clamp,!1),precision:b(E.precision,.01),tension:b(E.tension,170),friction:b(E.friction,26),mass:b(E.mass,1),duration:E.duration,easing:b(E.easing,(function(e){return e})),decay:E.decay}),M))}return D?e:(h&&(w.setValue(1,!1),S.updateConfig({output:[x,x]})),w.done=!0,t.hasChanged=!0,o({},e,((P={})[r]=o({},e[r],{previous:x}),P)))}),this.animations),this.hasChanged)for(var k in this.configs=Object.values(this.animations),this.values={},this.interpolations={},this.animations)this.interpolations[k]=this.animations[k].interpolation,this.values[k]=this.animations[k].interpolation.getValue();return this},t.destroy=function(){this.stop(),this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.local=0},e}(),K=function(e,t){var n=i.useRef(!1),r=i.useRef(),o=u.fun(t),c=i.useMemo((function(){var n;return r.current&&(r.current.map((function(e){return e.destroy()})),r.current=void 0),[new Array(e).fill().map((function(e,r){var c=new G,i=o?p(t,r,c):t[r];return 0===r&&(n=i.ref),c.update(i),n||c.start(),c})),n]}),[e]),a=c[0],l=c[1];r.current=a;i.useImperativeHandle(l,(function(){return{start:function(){return Promise.all(r.current.map((function(e){return new Promise((function(t){return e.start(t)}))})))},stop:function(e){return r.current.forEach((function(t){return t.stop(e)}))},get controllers(){return r.current}}}));var s=i.useMemo((function(){return function(e){return r.current.map((function(t,n){t.update(o?p(e,n,t):e[n]),l||t.start()}))}}),[e]);i.useEffect((function(){n.current?o||s(t):l||r.current.forEach((function(e){return e.start()}))})),i.useEffect((function(){return n.current=!0,function(){return r.current.forEach((function(e){return e.destroy()}))}}),[]);var d=r.current.map((function(e){return e.getValues()}));return o?[d,s,function(e){return r.current.forEach((function(t){return t.pause(e)}))}]:d},W=0,q=function(e,t){return("function"==typeof t?e.map(t):f(t)).map(String)},$=function(e){var t=e.items,n=e.keys,r=void 0===n?function(e){return e}:n,i=c(e,["items","keys"]);return t=f(void 0!==t?t:null),o({items:t,keys:q(t,r)},i)};function Y(e,t){var n=function(){if(o){if(c>=r.length)return"break";i=r[c++]}else{if((c=r.next()).done)return"break";i=c.value}var n=i.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),c=0;for(r=o?r:r[Symbol.iterator]();;){var i;if("break"===n())break}e.current.forceUpdate()}var X=function(e){function t(t){var n;return void 0===t&&(t={}),n=e.call(this)||this,!t.transform||t.transform instanceof g||(t=v.transform(t)),n.payload=t,n}return l(t,e),t}(j),Q={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},Z="[-+]?\\d*\\.?\\d+";function J(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}var ee=new RegExp("rgb"+J(Z,Z,Z)),te=new RegExp("rgba"+J(Z,Z,Z,Z)),ne=new RegExp("hsl"+J(Z,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),re=new RegExp("hsla"+J(Z,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",Z)),oe=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ce=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ie=/^#([0-9a-fA-F]{6})$/,ae=/^#([0-9a-fA-F]{8})$/;function le(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}function se(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,c=le(o,r,e+1/3),i=le(o,r,e),a=le(o,r,e-1/3);return Math.round(255*c)<<24|Math.round(255*i)<<16|Math.round(255*a)<<8}function ue(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function de(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 fe(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function pe(e){var t,n,r="number"==typeof(t=e)?t>>>0===t&&t>=0&&t<=4294967295?t:null:(n=ie.exec(t))?parseInt(n[1]+"ff",16)>>>0:Q.hasOwnProperty(t)?Q[t]:(n=ee.exec(t))?(ue(n[1])<<24|ue(n[2])<<16|ue(n[3])<<8|255)>>>0:(n=te.exec(t))?(ue(n[1])<<24|ue(n[2])<<16|ue(n[3])<<8|be(n[4]))>>>0:(n=oe.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+"ff",16)>>>0:(n=ae.exec(t))?parseInt(n[1],16)>>>0:(n=ce.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+n[4]+n[4],16)>>>0:(n=ne.exec(t))?(255|se(de(n[1]),fe(n[2]),fe(n[3])))>>>0:(n=re.exec(t))?(se(de(n[1]),fe(n[2]),fe(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 me=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ve=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Oe=new RegExp("("+Object.keys(Q).join("|")+")","g"),ge={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},he=["Webkit","Ms","Moz","O"];function je(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ge.hasOwnProperty(e)&&ge[e]?(""+t).trim():t+"px"}ge=Object.keys(ge).reduce((function(e,t){return he.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),ge);var ke={};N((function(e){return new X(e)})),B("div"),w((function(e){var t=e.output.map((function(e){return e.replace(ve,pe)})).map((function(e){return e.replace(Oe,pe)})),n=t[0].match(me).map((function(){return[]}));t.forEach((function(e){e.match(me).forEach((function(e,t){return n[t].push(+e)}))}));var r=t[0].match(me).map((function(t,r){return F(o({},e,{output:n[r]}))}));return function(e){var n=0;return t[0].replace(me,(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+")"}))}})),y(Q),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,a=c(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!==i&&(e.scrollLeft=i),void 0!==r&&(e.textContent=r),n)if(n.hasOwnProperty(s)){var u=0===s.indexOf("--"),d=je(s,n[s],u);"float"===s&&(s="cssFloat"),u?e.style.setProperty(s,d):e.style[s]=d}for(var b in a){var f=l?b:ke[b]||(ke[b]=b.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(f)&&e.setAttribute(f,a[b])}}),(function(e){return e}));var ye,_e,Ee=(ye=function(e){return i.forwardRef((function(t,n){var r=d(),l=i.useRef(!0),s=i.useRef(null),b=i.useRef(null),f=i.useCallback((function(e){var t=s.current;s.current=new R(e,(function(){var e=!1;b.current&&(e=v.fn(b.current,s.current.getAnimatedValue())),b.current&&!1!==e||r()})),t&&t.detach()}),[]);i.useEffect((function(){return function(){l.current=!1,s.current&&s.current.detach()}}),[]),i.useImperativeHandle(n,(function(){return T(b,l,r)})),f(t);var p,m=s.current.getValue(),O=(m.scrollTop,m.scrollLeft,c(m,["scrollTop","scrollLeft"])),g=(p=e,!u.fun(p)||p.prototype instanceof a.Component?function(e){return b.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({},O,{ref:g}))}))},void 0===(_e=!1)&&(_e=!0),function(e){return(u.arr(e)?e:Object.keys(e)).reduce((function(e,t){var n=_e?t[0].toLowerCase()+t.substring(1):t;return e[n]=ye(n),e}),ye)}),Ce=Ee(["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=Ee,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=Ce,t.a=Ce,t.interpolate=function(e,t,n){return e&&new V(e,t,n)},t.Globals=D,t.useSpring=function(e){var t=u.fun(e),n=K(1,t?e:[e]),r=n[0],o=n[1],c=n[2];return t?[r[0],o,c]:r},t.useTrail=function(e,t){var n=i.useRef(!1),r=u.fun(t),c=p(t),a=i.useRef(),l=K(e,(function(e,t){return 0===e&&(a.current=[]),a.current.push(t),o({},c,{config:p(c.config,e),attach:e>0&&function(){return a.current[e-1]}})})),s=l[0],d=l[1],b=l[2],f=i.useMemo((function(){return function(e){return d((function(t,n){e.reverse;var r=e.reverse?t+1:t-1,i=a.current[r];return o({},e,{config:p(e.config||c.config,t),attach:i&&function(){return i}})}))}}),[e,c.reverse]);return i.useEffect((function(){n.current&&!r&&f(t)})),i.useEffect((function(){n.current=!0}),[]),r?[s,f,b]:s},t.useTransition=function(e,t,n){var r=o({items:e,keys:t||function(e){return e}},n),a=$(r),l=a.lazy,s=void 0!==l&&l,u=(a.unique,a.reset),b=void 0!==u&&u,f=(a.enter,a.leave,a.update,a.onDestroyed),m=(a.keys,a.items,a.onFrame),v=a.onRest,O=a.onStart,g=a.ref,h=c(a,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),j=d(),k=i.useRef(!1),y=i.useRef({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!r.ref,instances:!k.current&&new Map,forceUpdate:j});return i.useImperativeHandle(r.ref,(function(){return{start:function(){return Promise.all(Array.from(y.current.instances).map((function(e){var t=e[1];return new Promise((function(e){return t.start(e)}))})))},stop:function(e){return Array.from(y.current.instances).forEach((function(t){return t[1].stop(e)}))},get controllers(){return Array.from(y.current.instances).map((function(e){return e[1]}))}}})),y.current=function(e,t){var n=e.first,r=e.prevProps,i=c(e,["first","prevProps"]),a=$(t),l=a.items,s=a.keys,u=a.initial,d=a.from,b=a.enter,f=a.leave,m=a.update,v=a.trail,O=void 0===v?0:v,g=a.unique,h=a.config,j=a.order,k=void 0===j?["enter","leave","update"]:j,y=$(r),_=y.keys,E=y.items,C=o({},i.current),w=[].concat(i.deleted),S=Object.keys(C),I=new Set(S),B=new Set(s),x=s.filter((function(e){return!I.has(e)})),P=i.transitions.filter((function(e){return!e.destroyed&&!B.has(e.originalKey)})).map((function(e){return e.originalKey})),T=s.filter((function(e){return I.has(e)})),N=-O;for(;k.length;){switch(k.shift()){case"enter":x.forEach((function(e,t){g&&w.find((function(t){return t.originalKey===e}))&&(w=w.filter((function(t){return t.originalKey!==e})));var r=s.indexOf(e),o=l[r],c=n&&void 0!==u?"initial":"enter";C[e]={slot:c,originalKey:e,key:g?String(e):W++,item:o,trail:N+=O,config:p(h,o,c),from:p(n&&void 0!==u?u||{}:d,o),to:p(b,o)}}));break;case"leave":P.forEach((function(e){var t=_.indexOf(e),n=E[t];w.unshift(o({},C[e],{slot:"leave",destroyed:!0,left:_[Math.max(0,t-1)],right:_[Math.min(_.length,t+1)],trail:N+=O,config:p(h,n,"leave"),to:p(f,n)})),delete C[e]}));break;case"update":T.forEach((function(e){var t=s.indexOf(e),n=l[t];C[e]=o({},C[e],{item:n,slot:"update",trail:N+=O,config:p(h,n,"update"),to:p(m,n)})}))}}var D=s.map((function(e){return C[e]}));return w.forEach((function(e){var t,n=e.left,r=(e.right,c(e,["left","right"]));-1!==(t=D.findIndex((function(e){return e.originalKey===n})))&&(t+=1),t=Math.max(0,t),D=[].concat(D.slice(0,t),[r],D.slice(t))})),o({},i,{changed:x.length||P.length||T.length,first:n&&0===x.length,transitions:D,current:C,deleted:w,prevProps:t})}(y.current,r),y.current.changed&&y.current.transitions.forEach((function(e){var t=e.slot,n=e.from,r=e.to,c=e.config,i=e.trail,a=e.key,l=e.item;y.current.instances.has(a)||y.current.instances.set(a,new G);var u=y.current.instances.get(a),d=o({},h,{to:r,from:n,config:c,ref:g,onRest:function(n){y.current.mounted&&(e.destroyed&&(g||s||Y(y,a),f&&f(l)),!Array.from(y.current.instances).some((function(e){return!e[1].idle}))&&(g||s)&&y.current.deleted.length>0&&Y(y),v&&v(l,t,n))},onStart:O&&function(){return O(l,t)},onFrame:m&&function(e){return m(l,t,e)},delay:i,reset:b&&"enter"===t});u.update(d),y.current.paused||u.start()})),i.useEffect((function(){return y.current.mounted=k.current=!0,function(){y.current.mounted=k.current=!1,Array.from(y.current.instances).map((function(e){return e[1].destroy()})),y.current.instances.clear()}}),[]),y.current.transitions.map((function(e){var t=e.item,n=e.slot,r=e.key;return{item:t,key:r,state:n,props:y.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 c=e.current;if(c){var i=c.controllers;if(i.length){var a=n*t[r];i.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=K},,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return E})),n.d(t,"b",(function(){return _}));var r=n(15),o=n(51),c=n(50),i=n(67),a=n(13),l=n(63),s=(n(81),n(48)),u=n(54),d=n(57),b=n(74),f=n(79),p=n(82),m=n(49),v=n(97),O=n(104),g=n(52),h="undefined"!=typeof window&&"msCrypto"in window;var j="undefined"!=typeof window&&"msCrypto"in window;function k(e,t,n){var r=Object(s.a)(n);return Object(a.useCallback)((function(n){var o;if(e&&function(e){return!!Object(u.a)(e)&&(!e.metaKey&&"Tab"!==e.key)}(n)){var c=null==t?void 0:t.ref.current;if(c&&(Object(O.a)(c,n.type,n),n.currentTarget.contains(c)))return n.stopPropagation(),void n.preventDefault()}null===(o=r.current)||void 0===o||o.call(r,n)}),[e,t])}function y(e,t){return null==e?void 0:e.some((function(e){return!!t&&e.ref.current===t}))}var _=Object(c.a)({name:"Composite",compose:[b.a],useState:g.g,useOptions:function(e){return Object(r.b)(Object(r.b)({},e),{},{currentId:Object(g.e)(e)})},useProps:function(e,t){var n=t.ref,o=t.onFocus,c=t.onBlur,i=t.onKeyDown,b=t.onKeyUp,f=Object(r.a)(t,["ref","onFocus","onBlur","onKeyDown","onKeyUp"]),O=Object(a.useRef)(null),_=Object(g.d)(e.items,e.currentId),E=Object(a.useRef)(void 0),C=Object(s.a)(o),w=Object(s.a)(c),S=j?function(e){var t=Object(a.useRef)(null);return Object(a.useEffect)((function(){var n=Object(m.a)(e.current),r=function(e){var n=e.target;t.current=n};return n.addEventListener("focus",r,!0),function(){n.removeEventListener("focus",r,!0)}}),[]),t}(O):void 0;Object(a.useEffect)((function(){var t=O.current;t&&e.unstable_moves&&!_&&t.focus()}),[e.unstable_moves,_]);var I=k(e.unstable_virtual,_,i),B=k(e.unstable_virtual,_,b),x=Object(a.useCallback)((function(t){var n;if(e.unstable_virtual){var r,o,c=(null==S?void 0:S.current)||t.relatedTarget,i=y(e.items,c);if(Object(u.a)(t)&&!i)return null===(r=C.current)||void 0===r||r.call(C,t),void(null==_||null===(o=_.ref.current)||void 0===o||o.focus());if(i)return void t.stopPropagation()}else if(Object(u.a)(t)){var a;null===(a=e.setCurrentId)||void 0===a||a.call(e,null)}null===(n=C.current)||void 0===n||n.call(C,t)}),[e.unstable_virtual,e.items,_,e.setCurrentId]),P=Object(a.useCallback)((function(t){var n;if(e.unstable_virtual){var r,o=y(e.items,t.target),c=function(e){return h?Object(d.a)(e.target):e.relatedTarget}(t),i=y(e.items,c);if(Object(u.a)(t)&&i)return(null===(r=E.current)||void 0===r?void 0:r.ref.current)&&Object(v.a)(E.current.ref.current,"blur",t),E.current=_,void t.stopPropagation();o?E.current=_:((null==_?void 0:_.ref.current)&&Object(v.a)(_.ref.current,"blur",t),E.current=void 0)}null===(n=w.current)||void 0===n||n.call(w,t)}),[e.unstable_virtual,e.items,_]),T=Object(a.useMemo)((function(){return Object(p.a)({onKeyDown:I,stopPropagation:!0,shouldKeyDown:function(t){return Object(u.a)(t)&&null===e.currentId},keyMap:function(){var t,n="horizontal"!==e.orientation,r="vertical"!==e.orientation,o=!!(null===(t=e.groups)||void 0===t?void 0:t.length),c=e.first&&function(){return e.first()},i=e.last&&function(){return e.last()};return{ArrowUp:(o||n)&&function(){if(o){var t,n=(c=e.items,Object(g.a)(Object(g.b)(Object(g.f)(Object(g.c)(c)))));if(null==n?void 0:n.id)null===(t=e.move)||void 0===t||t.call(e,n.id)}else{var r;null===(r=e.last)||void 0===r||r.call(e)}var c},ArrowRight:(o||r)&&c,ArrowDown:(o||n)&&c,ArrowLeft:(o||r)&&i,Home:c,End:i,PageUp:c,PageDown:i}}})}),[I,e.currentId,e.orientation,e.groups,e.items,e.move,e.last,e.first]);return Object(r.b)({ref:Object(l.a)(O,n),id:e.baseId,onFocus:x,onBlur:P,onKeyDown:T,onKeyUp:B,"aria-activedescendant":e.unstable_virtual&&(null==_?void 0:_.id)||void 0},f)},useComposeProps:function(e,t){t=Object(i.a)(e,t,!0);var n=Object(b.a)(e,t,!0);return e.unstable_virtual||null===e.currentId?n:Object(r.b)(Object(r.b)({},t),{},{ref:n.ref})}}),E=Object(o.a)({as:"div",useHook:_,useCreateElement:function(e,t,n){return Object(f.a)(e,t,n)}})},function(e,t,n){"use strict";n.d(t,"a",(function(){return y})),n.d(t,"b",(function(){return k}));var r=n(15),o=n(51),c=n(50),i=n(13),a=n(63),l=(n(81),n(48)),s=n(54),u=n(70),d=n(73),b=n(72),f=n(88),p=n(82),m=n(49),v=n(52),O=n(96),g=n(98),h=n(99);function j(e){return e.querySelector("[data-composite-item-widget]")}var k=Object(c.a)({name:"CompositeItem",compose:[f.a,O.a],useState:v.g,propsAreEqual:function(e,t){if(!t.id||e.id!==t.id)return f.a.unstable_propsAreEqual(e,t);var n=e.currentId,o=e.unstable_moves,c=Object(r.a)(e,["currentId","unstable_moves"]),i=t.currentId,a=t.unstable_moves,l=Object(r.a)(t,["currentId","unstable_moves"]);if(i!==n){if(t.id===i||t.id===n)return!1}else if(o!==a)return!1;return f.a.unstable_propsAreEqual(c,l)},useOptions:function(e){return Object(r.b)(Object(r.b)({},e),{},{id:e.id,currentId:Object(v.e)(e),unstable_clickOnSpace:!e.unstable_hasActiveWidget&&e.unstable_clickOnSpace})},useProps:function(e,t){var n,o=t.ref,c=t.tabIndex,f=void 0===c?0:c,v=t.onFocus,O=t.onBlur,k=t.onKeyDown,y=t.onClick,_=Object(r.a)(t,["ref","tabIndex","onFocus","onBlur","onKeyDown","onClick"]),E=Object(i.useRef)(null),C=e.id,w=e.disabled&&!e.focusable,S=e.currentId===C,I=Object(l.a)(S),B=Object(i.useRef)(!1),x=function(e){return Object(i.useMemo)((function(){var t;return null===(t=e.items)||void 0===t?void 0:t.find((function(t){return e.id&&t.id===e.id}))}),[e.items,e.id])}(e),P=Object(l.a)(v),T=Object(l.a)(O),N=Object(l.a)(k),D=Object(l.a)(y),R=!e.unstable_virtual&&!e.unstable_hasActiveWidget&&S||!(null===(n=e.items)||void 0===n?void 0:n.length);Object(i.useEffect)((function(){var t;if(C)return null===(t=e.registerItem)||void 0===t||t.call(e,{id:C,ref:E,disabled:!!w}),function(){var t;null===(t=e.unregisterItem)||void 0===t||t.call(e,C)}}),[C,w,e.registerItem,e.unregisterItem]),Object(i.useEffect)((function(){var t=E.current;t&&e.unstable_moves&&I.current&&t.focus()}),[e.unstable_moves]);var A=Object(i.useCallback)((function(t){var n,o;if(null===(n=P.current)||void 0===n||n.call(P,t),!t.defaultPrevented&&!Object(d.a)(t)&&C&&!function(e,t){if(Object(s.a)(e))return!1;for(var n,o=Object(r.c)(t);!(n=o()).done;){if(n.value.ref.current===e.target)return!0}return!1}(t,e.items)&&(null===(o=e.setCurrentId)||void 0===o||o.call(e,C),e.unstable_virtual&&e.baseId&&Object(s.a)(t))){var c=t.target,i=Object(m.a)(c).getElementById(e.baseId);i&&(B.current=!0,Object(b.a)(i))}}),[C,e.items,e.setCurrentId,e.unstable_virtual,e.baseId]),M=Object(i.useCallback)((function(t){var n;if(e.unstable_virtual&&B.current)return B.current=!1,t.preventDefault(),void t.stopPropagation();null===(n=T.current)||void 0===n||n.call(T,t)}),[e.unstable_virtual]),L=Object(i.useCallback)((function(e){var t;if(null===(t=N.current)||void 0===t||t.call(N,e),Object(s.a)(e)&&1===e.key.length&&" "!==e.key){var n=j(e.currentTarget);if(n&&Object(g.a)(n)){n.focus();var r=e.key;window.requestAnimationFrame((function(){Object(h.a)(n,r)}))}}}),[]),F=Object(i.useMemo)((function(){return Object(p.a)({onKeyDown:L,stopPropagation:!0,shouldKeyDown:s.a,keyMap:function(){var t="horizontal"!==e.orientation,n="vertical"!==e.orientation,r=!!(null==x?void 0:x.groupId),o=function(e){var t=j(e.currentTarget);t&&Object(g.a)(t)&&Object(h.a)(t,"")},c=e.up&&function(){return e.up()},i=e.next&&function(){return e.next()},a=e.down&&function(){return e.down()},l=e.previous&&function(){return e.previous()};return{Delete:o,Backspace:o,ArrowUp:(r||t)&&c,ArrowRight:(r||n)&&i,ArrowDown:(r||t)&&a,ArrowLeft:(r||n)&&l,Home:function(t){var n,o;!r||t.ctrlKey?null===(n=e.first)||void 0===n||n.call(e):null===(o=e.previous)||void 0===o||o.call(e,!0)},End:function(t){var n,o;!r||t.ctrlKey?null===(n=e.last)||void 0===n||n.call(e):null===(o=e.next)||void 0===o||o.call(e,!0)},PageUp:function(){var t,n;r?null===(t=e.up)||void 0===t||t.call(e,!0):null===(n=e.first)||void 0===n||n.call(e)},PageDown:function(){var t,n;r?null===(t=e.down)||void 0===t||t.call(e,!0):null===(n=e.last)||void 0===n||n.call(e)}}}})}),[L,e.orientation,x,e.up,e.next,e.down,e.previous,e.first,e.last]),V=Object(i.useCallback)((function(e){var t;if(null===(t=D.current)||void 0===t||t.call(D,e),!e.defaultPrevented){var n=j(e.currentTarget);n&&!Object(u.a)(n)&&n.focus()}}),[]);return Object(r.b)({ref:Object(a.a)(E,o),id:C,tabIndex:R?f:-1,"aria-selected":!(!e.unstable_virtual||!S)||void 0,onFocus:A,onBlur:M,onKeyDown:F,onClick:V},_)}}),y=Object(o.a)({as:"button",memo:!0,useHook:k})},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(49);function o(e,t,n){var o,c;if(void 0===n&&(n={}),"function"==typeof Event)return new Event(t,n);var i=Object(r.a)(e).createEvent("Event");return i.initEvent(t,null===(o=n)||void 0===o?void 0:o.bubbles,null===(c=n)||void 0===c?void 0:c.cancelable),i}},function(e,t,n){"use strict";e.exports=n(184)},function(e,t){!function(){e.exports=this.wp.wordcount}()},,function(e,t){!function(){e.exports=this.wp.shortcode}()},,,function(e,t,n){"use strict";var r=n(8),o=n(14),c=n(0),i=n(2),a=n(3),l=n(170),s=Object(a.createSlotFill)("BlockControls"),u=s.Fill,d=s.Slot;var b=function(e){return"BlockControls".concat(e?"-expanded":"")},f=function(e){var t=e.controls,n=e.__experimentalIsExpanded,r=e.children;return Object(l.a)()?Object(c.createElement)(u,{name:b(n)},(function(e){var n=Object(i.isEmpty)(e)?null:e;return Object(c.createElement)(a.__experimentalToolbarContext.Provider,{value:n},Object(c.createElement)(a.ToolbarGroup,{controls:t}),r)})):null};f.Slot=function(e){var t=e.__experimentalIsExpanded,n=void 0!==t&&t,i=Object(o.a)(e,["__experimentalIsExpanded"]),l=Object(c.useContext)(a.__experimentalToolbarContext);return Object(c.createElement)(d,Object(r.a)({name:b(n)},i,{fillProps:l}))},t.a=f},,,,,,,,function(e,t,n){"use strict";var r=n(5),o=n(14),c=n(0);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.a=function(e){var t=e.icon,n=e.size,a=void 0===n?24:n,l=Object(o.a)(e,["icon","size"]);return Object(c.cloneElement)(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({width:a,height:a},l))}},function(e,t,n){"use strict";var r=n(143);function o(){}function c(){}c.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,c,i){if(i!==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:c,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},,,,,function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(38),o=n(37),c=n(30),i=n(39);function a(e){return Object(r.a)(e)||Object(o.a)(e)||Object(c.a)(e)||Object(i.a)()}},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<n.length;r++)e(t,n[r]);else for(r in n)t[r]=(t[r]||[]).concat(n[r])}(n,e),(t=function(e){return function(t){return function(r){var o,c,i=n[r.type],a=t(r);if(i)for(o=0;o<i.length;o++)(c=i[o](r,e))&&e.dispatch(c);return a}}}).effects=n,t}},,,,,,,function(e,t){!function(){e.exports=this.wp.tokenList}()},,function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M13 11.9l3.3-3.4-1.1-1-3.2 3.3-3.2-3.3-1.1 1 3.3 3.4-3.5 3.6 1 1L12 13l3.5 3.5 1-1z"}));t.a=c},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));t.a=c},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18.3 5.6L9.9 16.9l-4.6-3.4-.9 1.2 5.8 4.3 9.3-12.6z"}));t.a=c},,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(4),o=n(80);function c(){var e=Object(o.b)(),t=e.isSelected,n=e.clientId,c=e.name,i=Object(r.useSelect)((function(e){if(!t){var r=e("core/block-editor"),o=r.getBlockName,i=r.isFirstMultiSelectedBlock,a=r.getMultiSelectedBlockClientIds;return!!i(n)&&a().every((function(e){return o(e)===c}))}}),[n,t,c]);return t||i}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},,,function(e,t,n){"use strict";var r=a(n(307)),o=a(n(312)),c=a(n(213)),i=a(n(210));function a(e){return e&&e.__esModule?e:{default:e}}e.exports={Transition:i.default,TransitionGroup:c.default,ReplaceTransition:o.default,CSSTransition:r.default}},,,function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,o={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}},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,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};t.__esModule=!0;var a=n(13),l=n(28),s=n(181),u=n(182),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={lineHeight:null},t.dispatchEvent=function(e){var n=document.createEvent("Event");n.initEvent(e,!0,!1),t.textarea.dispatchEvent(n)},t.updateLineHeight=function(){t.setState({lineHeight:u(t.textarea)})},t.onChange=function(e){var n=t.props.onChange;t.currentValue=e.currentTarget.value,n&&n(e)},t.saveDOMNodeRef=function(e){var n=t.props.innerRef;n&&n(e),t.textarea=e},t.getLocals=function(){var e=t,n=e.props,r=(n.onResize,n.maxRows),o=(n.onChange,n.style),a=(n.innerRef,i(n,["onResize","maxRows","onChange","style","innerRef"])),l=e.state.lineHeight,s=e.saveDOMNodeRef,u=r&&l?l*r:null;return c({},a,{saveDOMNodeRef:s,style:u?c({},o,{maxHeight:u}):o,onChange:t.onChange})},t}return o(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.onResize;"number"==typeof t.maxRows&&this.updateLineHeight(),setTimeout((function(){return s(e.textarea)})),n&&this.textarea.addEventListener("autosize:resized",n)},t.prototype.componentWillUnmount=function(){var e=this.props.onResize;e&&this.textarea.removeEventListener("autosize:resized",e),this.dispatchEvent("autosize:destroy")},t.prototype.render=function(){var e=this.getLocals(),t=e.children,n=e.saveDOMNodeRef,r=i(e,["children","saveDOMNodeRef"]);return a.createElement("textarea",c({},r,{ref:n}),t)},t.prototype.componentDidUpdate=function(e){this.props.value===this.currentValue&&this.props.rows===e.rows||this.dispatchEvent("autosize:update")},t.defaultProps={rows:1},t.propTypes={rows:l.number,maxRows:l.number,onResize:l.func,innerRef:l.func},t}(a.Component);t.default=d},function(e,t,n){var r,o,c; +*/!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var c=typeof r;if("string"===c||"number"===c)e.push(r);else if(Array.isArray(r)&&r.length){var i=o.apply(null,r);i&&e.push(i)}else if("object"===c)for(var a in r)n.call(r,a)&&r[a]&&e.push(a)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t){!function(){e.exports=this.wp.compose}()},function(e,t){!function(){e.exports=this.wp.blocks}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(38);var o=n(30),c=n(39);function i(e,t){return Object(r.a)(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,c=void 0;try{for(var i,a=e[Symbol.iterator]();!(r=(i=a.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,c=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw c}}return n}}(e,t)||Object(o.a)(e,t)||Object(c.a)()}},function(e,t){!function(){e.exports=this.React}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(43);function o(e,t){if(null==e)return{};var n,o,c=Object(r.a)(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(c[n]=e[n])}return c}},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}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t){if(null==e)return{};var n,r,o={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return l}))},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 i}));var r=n(27);var o=n(37),c=n(30);function i(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(o.a)(e)||Object(c.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t){!function(){e.exports=this.wp.keycodes}()},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}))},function(e,t){!function(){e.exports=this.regeneratorRuntime}()},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}))},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(40),o=n(16);function c(e,t){return!t||"object"!==Object(r.a)(t)&&"function"!=typeof t?Object(o.a)(e):t}},function(e,t){!function(){e.exports=this.wp.richText}()},,function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return r}))},function(e,t,n){e.exports=n(142)()},function(e,t){!function(){e.exports=this.wp.dom}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(27);function o(e,t){if(e){if("string"==typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},function(e,t){!function(){e.exports=this.wp.url}()},,function(e,t){!function(){e.exports=this.wp.hooks}()},,,function(e,t){!function(){e.exports=this.wp.deprecated}()},function(e,t,n){"use strict";function r(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}n.d(t,"a",(function(){return r}))},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.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}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)}n.d(t,"a",(function(){return r}))},function(e,t){!function(){e.exports=this.wp.blob}()},function(e,t,n){"use strict";var r,o;function c(e){return[e]}function i(){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<e.length;r++)if(e[r]!==t[r])return!1;return!0}r={},o="undefined"!=typeof WeakMap,t.a=function(e,t){var n,l;function s(){n=o?new WeakMap:i()}function u(){var n,r,o,c,i,s=arguments.length;for(c=new Array(s),o=0;o<s;o++)c[o]=arguments[o];for(i=t.apply(null,c),(n=l(i)).isUniqueByDependants||(n.lastDependants&&!a(i,n.lastDependants,0)&&n.clear(),n.lastDependants=i),r=n.head;r;){if(a(r.args,c,1))return r!==n.head&&(r.prev.next=r.next,r.next&&(r.next.prev=r.prev),r.next=n.head,r.prev=null,n.head.prev=r,n.head=r),r.val;r=r.next}return r={val:e.apply(null,c)},c[0]=null,r.args=c,n.head&&(n.head.prev=r,r.next=n.head),n.head=r,r.val}return t||(t=c),l=o?function(e){var t,o,c,a,l,s=n,u=!0;for(t=0;t<e.length;t++){if(o=e[t],!(l=o)||"object"!=typeof l){u=!1;break}s.has(o)?s=s.get(o):(c=new WeakMap,s.set(o,c),s=c)}return s.has(r)||((a=i()).isUniqueByDependants=u,s.set(r,a)),s.get(r)}:function(){return n},u.getDependants=t,u.clear=s,s(),u}},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";function r(e,t,n,r,o,c,i){try{var a=e[c](i),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,c){var i=e.apply(t,n);function a(e){r(i,o,c,a,l,"next",e)}function l(e){r(i,o,c,a,l,"throw",e)}a(void 0)}))}}n.d(t,"a",(function(){return o}))},function(e,t){!function(){e.exports=this.wp.a11y}()},,function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(13),o=n(59);function c(e){var t=Object(r.useRef)(e);return Object(o.a)((function(){t.current=e})),t}},function(e,t,n){"use strict";function r(e){return e?e.ownerDocument||e:window.document}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(13),o=n(76);function c(e,t){Object(r.useDebugValue)(e);var n=Object(r.useContext)(o.a);return null!=n[e]?n[e]:t}var i=n(55);var a=n(56);function l(e){var t,n,o,l=(o=e.compose,Array.isArray(o)?o:void 0!==o?[o]:[]),s=function(t,n){if(e.useOptions&&(t=e.useOptions(t,n)),e.name&&(t=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var o="use"+e+"Options";Object(r.useDebugValue)(o);var a=c(o);return a?Object(i.a)(Object(i.a)({},t),a(t,n)):t}(e.name,t,n)),e.compose)for(var o,a=Object(i.c)(l);!(o=a()).done;){t=o.value.__useOptions(t,n)}return t},u=function(t,n,o){if(void 0===t&&(t={}),void 0===n&&(n={}),void 0===o&&(o=!1),o||(t=s(t,n)),e.useProps&&(n=e.useProps(t,n)),e.name&&(n=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var o="use"+e+"Props";Object(r.useDebugValue)(o);var i=c(o);return i?i(t,n):n}(e.name,t,n)),e.compose)if(e.useComposeOptions&&(t=e.useComposeOptions(t,n)),e.useComposeProps)n=e.useComposeProps(t,n);else for(var a,u=Object(i.c)(l);!(a=u()).done;){n=(0,a.value)(t,n,!0)}var d={},b=n||{};for(var f in b)void 0!==b[f]&&(d[f]=b[f]);return d};u.__useOptions=s;var d=l.reduce((function(e,t){return e.push.apply(e,t.__keys||[]),e}),[]);return u.__keys=[].concat(d,(null===(t=e.useState)||void 0===t?void 0:t.__keys)||[],e.keys||[]),u.unstable_propsAreEqual=e.propsAreEqual||(null===(n=l[0])||void 0===n?void 0:n.unstable_propsAreEqual)||a.a,u}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(13),o=n(55),c=n(79);function i(e,t){for(var n={},r={},o=0,c=Object.keys(e);o<c.length;o++){var i=c[o];t.indexOf(i)>=0?n[i]=e[i]:r[i]=e[i]}return[n,r]}var a=n(56);function l(e){var t,n=e.as,l=e.useHook,s=e.memo,u=e.propsAreEqual,d=void 0===u?null==l?void 0:l.unstable_propsAreEqual:u,b=e.keys,f=void 0===b?(null==l?void 0:l.__keys)||[]:b,p=e.useCreateElement,m=void 0===p?c.a:p,v=function(e,t){var r=e.as,c=void 0===r?n:r,a=Object(o.b)(e,["as"]);if(l){var s,u=i(a,f),d=u[0],b=u[1],p=l(d,Object(o.a)({ref:t},b)),v=p.wrapElement,O=Object(o.b)(p,["wrapElement"]),g=(null===(s=c.render)||void 0===s?void 0:s.__keys)||c.__keys,h=g&&i(a,g)[0],j=h?Object(o.a)(Object(o.a)({},O),h):O,k=m(c,j);return v?v(k):k}return m(c,Object(o.a)({ref:t},a))};return t=v,v=Object(r.forwardRef)(t),s&&(v=function(e,t){return Object(r.memo)(e,t)}(v,d)),v.__keys=f,v.unstable_propsAreEqual=d||a.a,v}},function(e,t,n){"use strict";n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return O})),n.d(t,"c",(function(){return p})),n.d(t,"d",(function(){return f})),n.d(t,"e",(function(){return h})),n.d(t,"f",(function(){return s})),n.d(t,"g",(function(){return S}));var r=n(15),o=n(13),c=n(59),i=n(62),a=n(61),l=n(65);function s(e){return e.slice().reverse()}function u(e,t){return Boolean(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function d(e,t){return e.findIndex((function(e){return!(!e.ref.current||!t.ref.current)&&u(t.ref.current,e.ref.current)}))}function b(e,t){return t?e.find((function(e){return!e.disabled&&e.id!==t})):e.find((function(e){return!e.disabled}))}function f(e,t){if(t)return null==e?void 0:e.find((function(e){return e.id===t&&!e.disabled}))}function p(e){for(var t,n=[[]],o=function(){var e=t.value,r=n.find((function(t){return!t[0]||t[0].groupId===e.groupId}));r?r.push(e):n.push([e])},c=Object(r.c)(e);!(t=c()).done;)o();return n}function m(e){for(var t,n=0,o=Object(r.c)(e);!(t=o()).done;){var c=t.value.length;c>n&&(n=c)}return n}function v(e){for(var t=p(e),n=m(t),o=[],c=0;c<n;c+=1)for(var i,a=Object(r.c)(t);!(i=a()).done;){var l=i.value;l[c]&&o.push(Object(r.b)(Object(r.b)({},l[c]),{},{groupId:l[c].groupId?""+c:void 0}))}return o}function O(e){for(var t,n=[],o=Object(r.c)(e);!(t=o()).done;){var c=t.value;n.push.apply(n,c)}return n}function g(e){for(var t,n=m(e),o=Object(r.c)(e);!(t=o()).done;){var c=t.value;if(c.length<n)for(var i=0;i<n;i+=1)c[i]||(c[i]={id:"__EMPTY_ITEM__",disabled:!0,ref:{current:null},groupId:c[i-1].groupId})}return e}function h(e,t){var n;return t||null===t?t:e.currentId||null===e.currentId?e.currentId:null===(n=b(e.items||[]))||void 0===n?void 0:n.id}var j={id:null,ref:{current:null}};function k(e,t){return e.filter((function(e){return e.groupId===t}))}var y={horizontal:"vertical",vertical:"horizontal"};function _(e,t,n){return n in e?[].concat(e.slice(0,n),[t],e.slice(n)):[].concat(e,[t])}function E(e){var t=e.slice(),n=!1;return t.sort((function(e,t){var r=e.ref.current,o=t.ref.current;return r&&o&&u(r,o)?(n=!0,-1):0})),n?t:e}function C(e,t){var n=e.unstable_virtual,o=e.rtl,c=e.orientation,i=e.items,l=e.groups,u=e.currentId,m=e.loop,w=e.wrap,S=e.pastIds,I=e.unstable_moves,B=e.initialVirtual,x=e.initialRTL,P=e.initialOrientation,T=e.initialCurrentId,N=e.initialLoop,D=e.initialWrap,R=e.hasSetCurrentId;switch(t.type){case"registerGroup":var A=t.group;if(0===l.length)return Object(r.b)(Object(r.b)({},e),{},{groups:[A]});var M=d(l,A);return Object(r.b)(Object(r.b)({},e),{},{groups:_(l,A,M)});case"unregisterGroup":var L=t.id,F=l.filter((function(e){return e.id!==L}));return F.length===l.length?e:Object(r.b)(Object(r.b)({},e),{},{groups:F});case"registerItem":var V,H=t.item,z=l.find((function(e){var t;return null===(t=e.ref.current)||void 0===t?void 0:t.contains(H.ref.current)})),U=Object(r.b)({groupId:null==z?void 0:z.id},H),G=d(i,U),W=Object(r.b)(Object(r.b)({},e),{},{items:_(i,U,G)});return R||I||void 0!==T?W:Object(r.b)(Object(r.b)({},W),{},{currentId:null===(V=b(W.items))||void 0===V?void 0:V.id});case"unregisterItem":var K=t.id,q=i.filter((function(e){return e.id!==K}));if(q.length===i.length)return e;var $=S.filter((function(e){return e!==K})),Y=Object(r.b)(Object(r.b)({},e),{},{pastIds:$,items:q});if(u&&u===K){var X=h(Object(r.b)(Object(r.b)({},Y),{},{currentId:$[0]}));return Object(r.b)(Object(r.b)({},Y),{},{currentId:X})}return Y;case"move":var Q=t.id;if(void 0===Q)return e;var Z=S.filter((function(e){return e!==u&&e!==Q})),J=u?[u].concat(Z):Z,ee=Object(r.b)(Object(r.b)({},e),{},{pastIds:J});if(null===Q)return Object(r.b)(Object(r.b)({},ee),{},{unstable_moves:I+1,currentId:h(ee,Q)});var te=f(i,Q);return Object(r.b)(Object(r.b)({},ee),{},{unstable_moves:te?I+1:I,currentId:h(ee,null==te?void 0:te.id)});case"next":if(null==u)return C(e,Object(r.b)(Object(r.b)({},t),{},{type:"first"}));var ne=o&&"vertical"!==c,re=ne?s(i):i,oe=re.find((function(e){return e.id===u}));if(!oe)return C(e,Object(r.b)(Object(r.b)({},t),{},{type:"first"}));var ce=!!oe.groupId,ie=re.indexOf(oe),ae=re.slice(ie+1),le=k(ae,oe.groupId);if(t.allTheWay){var se=b(ne?k(re,oe.groupId):s(le));return C(e,Object(r.b)(Object(r.b)({},t),{},{type:"move",id:null==se?void 0:se.id}))}var ue=function(e){return e&&y[e]}(ce?c||"horizontal":c),de=m&&m!==ue,be=ce&&w&&w!==ue,fe=t.hasNullItem||!ce&&de&&null===T;if(de){var pe=b(function(e,t,n){var r=e.findIndex((function(e){return e.id===t}));return[].concat(e.slice(r+1),n?[j]:[],e.slice(0,r))}(be&&!fe?re:k(re,oe.groupId),u,fe),u);return C(e,Object(r.b)(Object(r.b)({},t),{},{type:"move",id:null==pe?void 0:pe.id}))}if(be){var me=b(fe?le:ae,u),ve=fe?(null==me?void 0:me.id)||null:null==me?void 0:me.id;return C(e,Object(r.b)(Object(r.b)({},t),{},{type:"move",id:ve}))}var Oe=b(le,u);return C(e,!Oe&&fe?Object(r.b)(Object(r.b)({},t),{},{type:"move",id:null}):Object(r.b)(Object(r.b)({},t),{},{type:"move",id:null==Oe?void 0:Oe.id}));case"previous":var ge=!!!l.length&&null===T,he=C(Object(r.b)(Object(r.b)({},e),{},{items:s(i)}),Object(r.b)(Object(r.b)({},t),{},{type:"next",hasNullItem:ge}));return Object(r.b)(Object(r.b)({},he),{},{items:i});case"down":var je=v(O(g(p(i)))),ke=m&&"horizontal"!==m&&null===T,ye=C(Object(r.b)(Object(r.b)({},e),{},{orientation:"vertical",items:je}),Object(r.b)(Object(r.b)({},t),{},{type:"next",hasNullItem:ke}));return Object(r.b)(Object(r.b)({},ye),{},{orientation:c,items:i});case"up":var _e=v(s(O(g(p(i))))),Ee=null===T,Ce=C(Object(r.b)(Object(r.b)({},e),{},{orientation:"vertical",items:_e}),Object(r.b)(Object(r.b)({},t),{},{type:"next",hasNullItem:Ee}));return Object(r.b)(Object(r.b)({},Ce),{},{orientation:c,items:i});case"first":var we=b(i);return C(e,Object(r.b)(Object(r.b)({},t),{},{type:"move",id:null==we?void 0:we.id}));case"last":var Se=C(Object(r.b)(Object(r.b)({},e),{},{items:s(i)}),Object(r.b)(Object(r.b)({},t),{},{type:"first"}));return Object(r.b)(Object(r.b)({},Se),{},{items:i});case"sort":return Object(r.b)(Object(r.b)({},e),{},{items:E(i),groups:E(l)});case"setVirtual":return Object(r.b)(Object(r.b)({},e),{},{unstable_virtual:Object(a.a)(t.virtual,n)});case"setRTL":return Object(r.b)(Object(r.b)({},e),{},{rtl:Object(a.a)(t.rtl,o)});case"setOrientation":return Object(r.b)(Object(r.b)({},e),{},{orientation:Object(a.a)(t.orientation,c)});case"setCurrentId":var Ie=h(Object(r.b)(Object(r.b)({},e),{},{currentId:Object(a.a)(t.currentId,u)}));return Object(r.b)(Object(r.b)({},e),{},{currentId:Ie,hasSetCurrentId:!0});case"setLoop":return Object(r.b)(Object(r.b)({},e),{},{loop:Object(a.a)(t.loop,m)});case"setWrap":return Object(r.b)(Object(r.b)({},e),{},{wrap:Object(a.a)(t.wrap,w)});case"reset":return Object(r.b)(Object(r.b)({},e),{},{unstable_virtual:B,rtl:x,orientation:P,currentId:h(Object(r.b)(Object(r.b)({},e),{},{currentId:T})),loop:N,wrap:D,unstable_moves:0,pastIds:[]});default:throw new Error}}function w(e){return Object(o.useCallback)(e,[])}function S(e){void 0===e&&(e={});var t=Object(i.a)(e),n=t.unstable_virtual,a=void 0!==n&&n,s=t.rtl,u=void 0!==s&&s,d=t.orientation,b=t.currentId,f=t.loop,p=void 0!==f&&f,m=t.wrap,v=void 0!==m&&m,O=Object(r.a)(t,["unstable_virtual","rtl","orientation","currentId","loop","wrap"]),g=Object(o.useReducer)(C,{unstable_virtual:a,rtl:u,orientation:d,items:[],groups:[],currentId:b,loop:p,wrap:v,unstable_moves:0,pastIds:[],initialVirtual:a,initialRTL:u,initialOrientation:d,initialCurrentId:b,initialLoop:p,initialWrap:v}),h=g[0],j=(h.pastIds,h.initialVirtual,h.initialRTL,h.initialOrientation,h.initialCurrentId,h.initialLoop,h.initialWrap,h.hasSetCurrentId,Object(r.a)(h,["pastIds","initialVirtual","initialRTL","initialOrientation","initialCurrentId","initialLoop","initialWrap","hasSetCurrentId"])),k=g[1],y=Object(o.useState)(!1),_=y[0],E=y[1],S=Object(l.a)(O),I=function(){var e=Object(o.useRef)(!1);return Object(c.a)((function(){return function(){e.current=!0}}),[]),e}();return Object(r.b)(Object(r.b)(Object(r.b)({},S),j),{},{unstable_hasActiveWidget:_,unstable_setHasActiveWidget:E,registerItem:w((function(e){I.current||k({type:"registerItem",item:e})})),unregisterItem:w((function(e){I.current||k({type:"unregisterItem",id:e})})),registerGroup:w((function(e){I.current||k({type:"registerGroup",group:e})})),unregisterGroup:w((function(e){I.current||k({type:"unregisterGroup",id:e})})),move:w((function(e){return k({type:"move",id:e})})),next:w((function(e){return k({type:"next",allTheWay:e})})),previous:w((function(e){return k({type:"previous",allTheWay:e})})),up:w((function(e){return k({type:"up",allTheWay:e})})),down:w((function(e){return k({type:"down",allTheWay:e})})),first:w((function(){return k({type:"first"})})),last:w((function(){return k({type:"last"})})),unstable_sort:w((function(){return k({type:"sort"})})),unstable_setVirtual:w((function(e){return k({type:"setVirtual",virtual:e})})),setRTL:w((function(e){return k({type:"setRTL",rtl:e})})),setOrientation:w((function(e){return k({type:"setOrientation",orientation:e})})),setCurrentId:w((function(e){return k({type:"setCurrentId",currentId:e})})),setLoop:w((function(e){return k({type:"setLoop",loop:e})})),setWrap:w((function(e){return k({type:"setWrap",wrap:e})})),reset:w((function(){return k({type:"reset"})}))})}var I=[].concat(l.a.__keys,["unstable_virtual","rtl","orientation","items","groups","currentId","loop","wrap","unstable_moves","unstable_hasActiveWidget","registerItem","unregisterItem","registerGroup","unregisterGroup","move","next","previous","up","down","first","last","unstable_sort","unstable_setVirtual","setRTL","setOrientation","setCurrentId","setLoop","setWrap","reset","unstable_setHasActiveWidget"]);S.__keys=I},function(e,t){!function(){e.exports=this.wp.keyboardShortcuts}()},function(e,t,n){"use strict";function r(e){return e.target===e.currentTarget}n.d(t,"a",(function(){return r}))},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}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t){if(null==e)return{};var n,r,o={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return l}))},function(e,t,n){"use strict";function r(e,t){if(e===t)return!0;if(!e)return!1;if(!t)return!1;if("object"!=typeof e)return!1;if("object"!=typeof t)return!1;var n=Object.keys(e),r=Object.keys(t),o=n.length;if(r.length!==o)return!1;for(var c=0,i=n;c<i.length;c++){var a=i[c];if(e[a]!==t[a])return!1}return!0}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(49);function o(e){return Object(r.a)(e).activeElement}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(13),o="undefined"==typeof window?r.useEffect:r.useLayoutEffect},function(e,t,n){e.exports=function(e,t){var n,r,o=0;function c(){var c,i,a=n,l=arguments.length;e:for(;a;){if(a.args.length===arguments.length){for(i=0;i<l;i++)if(a.args[i]!==arguments[i]){a=a.next;continue e}return a!==n&&(a===r&&(r=a.prev),a.prev.next=a.next,a.next&&(a.next.prev=a.prev),a.next=n,a.prev=null,n.prev=a,n=a),a.val}a=a.next}for(c=new Array(l),i=0;i<l;i++)c[i]=arguments[i];return a={args:c,val:e.apply(null,c)},n?(n.prev=a,a.next=n):r=a,o===t.maxSize?(r=r.prev).next=null:o++,n=a,a.val}return t=t||{},c.clear=function(){n=null,r=null,o=0},c}},function(e,t,n){"use strict";function r(e,t){return function(e){return"function"==typeof e}(e)?e(t):e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(13);function o(e){return Object(r.useState)(e)[0]}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(13);function o(e,t){void 0===t&&(t=null),e&&("function"==typeof e?e(t):e.current=t)}function c(e,t){return Object(r.useMemo)((function(){return null==e&&null==t?null:function(n){o(e,n),o(t,n)}}),[e,t])}},function(e,t){!function(){e.exports=this.wp.isShallowEqual}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(13),o=n(62),c=n(68);function i(e){void 0===e&&(e={});var t=Object(o.a)(e).baseId,n=Object(r.useContext)(c.a),i=Object(r.useRef)(0),a=Object(r.useState)((function(){return t||n()}));return{baseId:a[0],unstable_setBaseId:a[1],unstable_idCountRef:i}}i.__keys=["baseId","unstable_setBaseId","unstable_idCountRef"]},function(e,t,n){var r;!function(o){var c=/^\s+/,i=/\s+$/,a=0,l=o.round,s=o.min,u=o.max,d=o.random;function b(e,t){if(t=t||{},(e=e||"")instanceof b)return e;if(!(this instanceof b))return new b(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,r=null,a=null,l=null,d=!1,b=!1;"string"==typeof e&&(e=function(e){e=e.replace(c,"").replace(i,"").toLowerCase();var t,n=!1;if(x[e])e=x[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=U.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=U.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=U.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=U.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=U.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=U.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=U.hex8.exec(e))return{r:R(t[1]),g:R(t[2]),b:R(t[3]),a:F(t[4]),format:n?"name":"hex8"};if(t=U.hex6.exec(e))return{r:R(t[1]),g:R(t[2]),b:R(t[3]),format:n?"name":"hex"};if(t=U.hex4.exec(e))return{r:R(t[1]+""+t[1]),g:R(t[2]+""+t[2]),b:R(t[3]+""+t[3]),a:F(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=U.hex3.exec(e))return{r:R(t[1]+""+t[1]),g:R(t[2]+""+t[2]),b:R(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==typeof e&&(G(e.r)&&G(e.g)&&G(e.b)?(f=e.r,p=e.g,m=e.b,t={r:255*N(f,255),g:255*N(p,255),b:255*N(m,255)},d=!0,b="%"===String(e.r).substr(-1)?"prgb":"rgb"):G(e.h)&&G(e.s)&&G(e.v)?(r=M(e.s),a=M(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),c=e-r,i=n*(1-t),a=n*(1-c*t),l=n*(1-(1-c)*t),s=r%6;return{r:255*[n,a,i,i,l,n][s],g:255*[l,n,n,a,i,i][s],b:255*[i,i,l,n,n,a][s]}}(e.h,r,a),d=!0,b="hsv"):G(e.h)&&G(e.s)&&G(e.l)&&(r=M(e.s),l=M(e.l),t=function(e,t,n){var r,o,c;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=N(e,360),t=N(t,100),n=N(n,100),0===t)r=o=c=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=i(l,a,e+1/3),o=i(l,a,e),c=i(l,a,e-1/3)}return{r:255*r,g:255*o,b:255*c}}(e.h,r,l),d=!0,b="hsl"),e.hasOwnProperty("a")&&(n=e.a));var f,p,m;return n=T(n),{ok:d,format:e.format||b,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 f(e,t,n){e=N(e,255),t=N(t,255),n=N(n,255);var r,o,c=u(e,t,n),i=s(e,t,n),a=(c+i)/2;if(c==i)r=o=0;else{var l=c-i;switch(o=a>.5?l/(2-c-i):l/(c+i),c){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4}r/=6}return{h:r,s:o,l:a}}function p(e,t,n){e=N(e,255),t=N(t,255),n=N(n,255);var r,o,c=u(e,t,n),i=s(e,t,n),a=c,l=c-i;if(o=0===c?0:l/c,c==i)r=0;else{switch(c){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4}r/=6}return{h:r,s:o,v:a}}function m(e,t,n,r){var o=[A(l(e).toString(16)),A(l(t).toString(16)),A(l(n).toString(16))];return r&&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[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function v(e,t,n,r){return[A(L(r)),A(l(e).toString(16)),A(l(t).toString(16)),A(l(n).toString(16))].join("")}function O(e,t){t=0===t?0:t||10;var n=b(e).toHsl();return n.s-=t/100,n.s=D(n.s),b(n)}function g(e,t){t=0===t?0:t||10;var n=b(e).toHsl();return n.s+=t/100,n.s=D(n.s),b(n)}function h(e){return b(e).desaturate(100)}function j(e,t){t=0===t?0:t||10;var n=b(e).toHsl();return n.l+=t/100,n.l=D(n.l),b(n)}function k(e,t){t=0===t?0:t||10;var n=b(e).toRgb();return n.r=u(0,s(255,n.r-l(-t/100*255))),n.g=u(0,s(255,n.g-l(-t/100*255))),n.b=u(0,s(255,n.b-l(-t/100*255))),b(n)}function y(e,t){t=0===t?0:t||10;var n=b(e).toHsl();return n.l-=t/100,n.l=D(n.l),b(n)}function _(e,t){var n=b(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,b(n)}function E(e){var t=b(e).toHsl();return t.h=(t.h+180)%360,b(t)}function C(e){var t=b(e).toHsl(),n=t.h;return[b(e),b({h:(n+120)%360,s:t.s,l:t.l}),b({h:(n+240)%360,s:t.s,l:t.l})]}function w(e){var t=b(e).toHsl(),n=t.h;return[b(e),b({h:(n+90)%360,s:t.s,l:t.l}),b({h:(n+180)%360,s:t.s,l:t.l}),b({h:(n+270)%360,s:t.s,l:t.l})]}function S(e){var t=b(e).toHsl(),n=t.h;return[b(e),b({h:(n+72)%360,s:t.s,l:t.l}),b({h:(n+216)%360,s:t.s,l:t.l})]}function I(e,t,n){t=t||6,n=n||30;var r=b(e).toHsl(),o=360/n,c=[b(e)];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,c.push(b(r));return c}function B(e,t){t=t||6;for(var n=b(e).toHsv(),r=n.h,o=n.s,c=n.v,i=[],a=1/t;t--;)i.push(b({h:r,s:o,v:c})),c=(c+a)%1;return i}b.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=l(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=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=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=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 m(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 c=[A(l(e).toString(16)),A(l(t).toString(16)),A(l(n).toString(16)),A(L(r))];if(o&&c[0].charAt(0)==c[0].charAt(1)&&c[1].charAt(0)==c[1].charAt(1)&&c[2].charAt(0)==c[2].charAt(1)&&c[3].charAt(0)==c[3].charAt(1))return c[0].charAt(0)+c[1].charAt(0)+c[2].charAt(0)+c[3].charAt(0);return c.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)&&(P[m(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+v(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=b(e);n="#"+v(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 b(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(k,arguments)},darken:function(){return this._applyModification(y,arguments)},desaturate:function(){return this._applyModification(O,arguments)},saturate:function(){return this._applyModification(g,arguments)},greyscale:function(){return this._applyModification(h,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(E,arguments)},monochromatic:function(){return this._applyCombination(B,arguments)},splitcomplement:function(){return this._applyCombination(S,arguments)},triad:function(){return this._applyCombination(C,arguments)},tetrad:function(){return this._applyCombination(w,arguments)}},b.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:M(e[r]));e=n}return b(e,t)},b.equals=function(e,t){return!(!e||!t)&&b(e).toRgbString()==b(t).toRgbString()},b.random=function(){return b.fromRatio({r:d(),g:d(),b:d()})},b.mix=function(e,t,n){n=0===n?0:n||50;var r=b(e).toRgb(),o=b(t).toRgb(),c=n/100;return b({r:(o.r-r.r)*c+r.r,g:(o.g-r.g)*c+r.g,b:(o.b-r.b)*c+r.b,a:(o.a-r.a)*c+r.a})},b.readability=function(e,t){var n=b(e),r=b(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},b.isReadable=function(e,t,n){var r,o,c=b.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=c>=4.5;break;case"AAlarge":o=c>=3;break;case"AAAsmall":o=c>=7}return o},b.mostReadable=function(e,t,n){var r,o,c,i,a=null,l=0;o=(n=n||{}).includeFallbackColors,c=n.level,i=n.size;for(var s=0;s<t.length;s++)(r=b.readability(e,t[s]))>l&&(l=r,a=b(t[s]));return b.isReadable(e,a,{level:c,size:i})||!o?a:(n.includeFallbackColors=!1,b.mostReadable(e,["#fff","#000"],n))};var x=b.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=b.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(x);function T(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 D(e){return s(1,u(0,e))}function R(e){return parseInt(e,16)}function A(e){return 1==e.length?"0"+e:""+e}function M(e){return e<=1&&(e=100*e+"%"),e}function L(e){return o.round(255*parseFloat(e)).toString(16)}function F(e){return R(e)/255}var V,H,z,U=(H="[\\s|\\(]+("+(V="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",z="[\\s|\\(]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",{CSS_UNIT:new RegExp(V),rgb:new RegExp("rgb"+H),rgba:new RegExp("rgba"+z),hsl:new RegExp("hsl"+H),hsla:new RegExp("hsla"+z),hsv:new RegExp("hsv"+H),hsva:new RegExp("hsva"+z),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 G(e){return!!U.CSS_UNIT.exec(e)}e.exports?e.exports=b:void 0===(r=function(){return b}.call(t,n,t,e))||(e.exports=r)}(Math)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(15),o=n(51),c=n(50),i=n(56),a=Object(c.a)({name:"Box",keys:["unstable_system"],propsAreEqual:function(e,t){var n=e.unstable_system,o=Object(r.a)(e,["unstable_system"]),c=t.unstable_system,a=Object(r.a)(t,["unstable_system"]);return!(n!==c&&!Object(i.a)(n,c))&&Object(i.a)(o,a)}});Object(o.a)({as:"div",useHook:a})},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(13);var o=Object(r.createContext)((function(e){return void 0===e&&(e="id"),(e?e+"-":"")+Math.random().toString(32).substr(2,6)}))},function(e,t){!function(){e.exports=this.wp.htmlEntities}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(57);function o(e){var t=Object(r.a)(e);if(!t)return!1;if(e.contains(t))return!0;var n=t.getAttribute("aria-activedescendant");return!!n&&(n===e.id||!!e.querySelector("#"+n))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=["button","color","file","image","reset","submit"];function o(e){if("BUTTON"===e.tagName)return!0;if("INPUT"===e.tagName){var t=e;return-1!==r.indexOf(t.type)}return!1}},function(e,t,n){"use strict";function r(e,t){return"matches"in e?e.matches(t):"msMatchesSelector"in e?e.msMatchesSelector(t):e.webkitMatchesSelector(t)}function o(e,t){if("closest"in e)return e.closest(t);do{if(r(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return l}));var c=n(57),i="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])";function a(e){return r(e,i)&&function(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0}(e)}function l(e){for(;e&&!a(e);)e=o(e,i);return e}function s(e){return Object(c.a)(e)===e}function u(e,t){var n=void 0===t?{}:t,r=n.isActive,o=void 0===r?s:r,c=n.preventScroll;return o(e)?-1:(e.focus({preventScroll:c}),o(e)?-1:requestAnimationFrame((function(){e.focus({preventScroll:c})})))}},function(e,t,n){"use strict";function r(e){return t=e.currentTarget,n=e.target,!(t===n||t.contains(n));var t,n}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(15),o=n(51),c=n(50),i=n(67),a=n(13),l=n(63),s=n(71),u=(n(81),n(48)),d=n(59),b=n(70),f=n(73),p=n(57),m=n(72);function v(e){return"undefined"!=typeof window&&-1!==window.navigator.userAgent.indexOf(e)}var O=v("Mac")&&!v("Chrome")&&(v("Safari")||v("Firefox"));function g(e){Object(b.a)(e)||e.focus()}var h=Object(c.a)({name:"Tabbable",compose:i.a,keys:["disabled","focusable"],useOptions:function(e,t){var n=t.disabled;return Object(r.b)({disabled:n},e)},useProps:function(e,t){var n=t.ref,o=t.tabIndex,c=t.onClick,i=t.onMouseDown,b=t.style,v=Object(r.a)(t,["ref","tabIndex","onClick","onMouseDown","style"]),h=Object(a.useRef)(null),j=Object(u.a)(c),k=Object(u.a)(i),y=e.disabled&&!e.focusable,_=Object(a.useState)(!0),E=_[0],C=_[1],w=E?o:o||0,S=e.disabled?Object(r.b)({pointerEvents:"none"},b):b,I=function(){if(O){var e=Object(a.useState)(null),t=e[0],n=e[1];return Object(a.useEffect)((function(){t&&(g(t),n(null))}),[t]),Object(a.useCallback)((function(e){var t=e.currentTarget;if(!Object(f.a)(e)&&Object(s.a)(t)){var r=Object(p.a)(t);if(r){var o="BODY"===r.tagName,c=Object(m.b)(t.parentElement);if(r===c||o&&!c)n(t);else if(c){c.addEventListener("focusin",(function(){return n(t)}),{once:!0})}else{r.addEventListener("blur",(function(){return g(t)}),{once:!0})}}}}),[])}}();Object(d.a)((function(){var e,t=h.current;t&&("BUTTON"!==(e=t).tagName&&"INPUT"!==e.tagName&&"SELECT"!==e.tagName&&"TEXTAREA"!==e.tagName&&"A"!==e.tagName&&"AUDIO"!==e.tagName&&"VIDEO"!==e.tagName&&C(!1))}),[]);var B=Object(a.useCallback)((function(t){var n;if(e.disabled)return t.stopPropagation(),void t.preventDefault();null===(n=j.current)||void 0===n||n.call(j,t)}),[e.disabled]),x=Object(a.useCallback)((function(t){var n;if(e.disabled)return t.stopPropagation(),void t.preventDefault();null===(n=k.current)||void 0===n||n.call(k,t),t.defaultPrevented||null==I||I(t)}),[e.disabled,I]);return Object(r.b)({ref:Object(l.a)(h,n),style:S,tabIndex:y?void 0:w,disabled:!(!y||!E)||void 0,"aria-disabled":!!e.disabled||void 0,onClick:B,onMouseDown:x},v)}});Object(o.a)({as:"div",useHook:h})},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(13),o=Object(r.createContext)({})},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(13),o=n(76),c=n(55);var i=function(e,t,n){void 0===n&&(n=t.children);var i=Object(r.useContext)(o.a);if(i.useCreateElement)return i.useCreateElement(e,t,n);if("string"==typeof e&&function(e){return"function"==typeof e}(n)){t.children;return n(Object(c.b)(t,["children"]))}return Object(r.createElement)(e,t,n)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));var r=n(2),o=n(0),c=Object(o.createContext)({name:"",isSelected:!1,focusedElement:null,setFocusedElement:r.noop,clientId:null}),i=c.Provider;function a(){return Object(o.useContext)(c)}},function(e,t,n){"use strict";n(108),n(13)},function(e,t,n){"use strict";function r(e){var t=void 0===e?{}:e,n=t.keyMap,r=t.onKey,o=t.stopPropagation,c=t.onKeyDown,i=t.shouldKeyDown,a=void 0===i?function(){return!0}:i,l=t.preventDefault,s=void 0===l||l;return function(e){if(n){var t,i="function"==typeof n?n(e):n,l="function"==typeof s?s(e):s,u="function"==typeof o?o(e):o;if(e.key in i){var d=i[e.key];if("function"==typeof d&&a(e))return l&&e.preventDefault(),u&&e.stopPropagation(),r&&r(e),void d(e)}if(c&&"current"in c)null===(t=c.current)||void 0===t||t.call(c,e);else null==c||c(e)}}}n.d(t,"a",(function(){return r}))},,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(15),o=n(51),c=n(50),i=n(13),a=n(71),l=(n(81),n(48)),s=n(54),u=n(74);var d=Object(c.a)({name:"Clickable",compose:u.a,keys:["unstable_clickOnEnter","unstable_clickOnSpace"],useOptions:function(e){var t=e.unstable_clickOnEnter,n=void 0===t||t,o=e.unstable_clickOnSpace,c=void 0===o||o,i=Object(r.a)(e,["unstable_clickOnEnter","unstable_clickOnSpace"]);return Object(r.b)({unstable_clickOnEnter:n,unstable_clickOnSpace:c},i)},useProps:function(e,t){var n=t.onKeyDown,o=t.onKeyUp,c=Object(r.a)(t,["onKeyDown","onKeyUp"]),u=Object(i.useState)(!1),d=u[0],b=u[1],f=Object(l.a)(n),p=Object(l.a)(o),m=Object(i.useCallback)((function(t){var n;if(null===(n=f.current)||void 0===n||n.call(f,t),!t.defaultPrevented&&!e.disabled&&!t.metaKey&&Object(s.a)(t)){var r=e.unstable_clickOnEnter&&"Enter"===t.key,o=e.unstable_clickOnSpace&&" "===t.key;if(r||o){if(function(e){var t=e.currentTarget;return!!e.isTrusted&&(Object(a.a)(t)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||"A"===t.tagName||"SELECT"===t.tagName)}(t))return;t.preventDefault(),r?t.currentTarget.click():o&&b(!0)}}}),[e.disabled,e.unstable_clickOnEnter,e.unstable_clickOnSpace]),v=Object(i.useCallback)((function(t){var n;if(null===(n=p.current)||void 0===n||n.call(p,t),!t.defaultPrevented&&!e.disabled&&!t.metaKey){var r=e.unstable_clickOnSpace&&" "===t.key;d&&r&&(b(!1),t.currentTarget.click())}}),[e.disabled,e.unstable_clickOnSpace,d]);return Object(r.b)({"data-active":d||void 0,onKeyDown:m,onKeyUp:v},c)}});Object(o.a)({as:"button",memo:!0,useHook:d})},,function(e,t){!function(){e.exports=this.wp.warning}()},,function(e,t){!function(){e.exports=this.wp.notices}()},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(15),o=n(51),c=n(50),i=n(13),a=n(68),l=n(65),s=Object(c.a)({useState:l.a,keys:["id"],useOptions:function(e,t){var n=Object(i.useContext)(a.a),o=Object(i.useState)((function(){return e.unstable_idCountRef?(e.unstable_idCountRef.current+=1,"-"+e.unstable_idCountRef.current):e.baseId?"-"+n(""):""}))[0],c=Object(i.useMemo)((function(){return e.baseId||n()}),[e.baseId,n]),l=t.id||e.id||""+c+o;return Object(r.b)(Object(r.b)({},e),{},{id:l})},useProps:function(e,t){return Object(r.b)({id:e.id},t)}});Object(o.a)({as:"div",useHook:s})},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(126);function o(e,t,n){return e.dispatchEvent(Object(r.a)(e,t,n))}},function(e,t,n){"use strict";function r(e){try{var t=e instanceof HTMLInputElement&&null!==e.selectionStart,n="TEXTAREA"===e.tagName,r="true"===e.contentEditable;return t||n||r||!1}catch(e){return!1}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){e.value=t}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";t.__esModule=!0;var r=n(180);t.default=r.default},function(e,t){!function(){e.exports=this.wp.viewport}()},function(e,t){var n,r,o=e.exports={};function c(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===c||!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:c}catch(e){n=c}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var l,s=[],u=!1,d=-1;function b(){u&&l&&(u=!1,l.length?s=l.concat(s):d=-1,s.length&&f())}function f(){if(!u){var e=a(b);u=!0;for(var t=s.length;t;){for(l=s,s=[];++d<t;)l&&l[d].run();d=-1,t=s.length}l=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function m(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new p(e,t)),1!==s.length||u||a(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(49);function o(e,t,n){if(void 0===n&&(n={}),"function"==typeof KeyboardEvent)return new KeyboardEvent(t,n);var o=Object(r.a)(e).createEvent("KeyboardEvent");return o.initKeyboardEvent(t,n.bubbles,n.cancelable,function(e){return Object(r.a)(e).defaultView||window}(e),n.key,n.location,n.ctrlKey,n.altKey,n.shiftKey,n.metaKey),o}function c(e,t,n){return e.dispatchEvent(o(e,t,n))}},,,,function(e,t,n){"use strict"},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(177)),c=r(n(178)),i=n(13),a=r(i),l=r(n(148)),s=r(n(179)),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 b(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<t;r++)n[r-1]=arguments[r];return u.fun(e)?e.apply(void 0,n):e}function m(e){var t=function(e){return e.to,e.from,e.config,e.onStart,e.onRest,e.onFrame,e.children,e.reset,e.reverse,e.force,e.immediate,e.delay,e.attach,e.destroyed,e.interpolateTo,e.ref,e.lazy,c(e,["to","from","config","onStart","onRest","onFrame","children","reset","reverse","force","immediate","delay","attach","destroyed","interpolateTo","ref","lazy"])}(e);if(u.und(t))return o({to:t},e);var n=Object.keys(e).reduce((function(n,r){var c;return u.und(t[r])?o({},n,((c={})[r]=e[r],c)):n}),{});return o({to:t},n)}var v,O,g=function(){function e(){this.payload=void 0,this.children=[]}var t=e.prototype;return t.getAnimatedValue=function(){return this.getValue()},t.getPayload=function(){return this.payload||this},t.attach=function(){},t.detach=function(){},t.getChildren=function(){return this.children},t.addChild=function(e){0===this.children.length&&this.attach(),this.children.push(e)},t.removeChild=function(e){var t=this.children.indexOf(e);this.children.splice(t,1),0===this.children.length&&this.detach()},e}(),h=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).payload=[],t.attach=function(){return t.payload.forEach((function(e){return e instanceof g&&e.addChild(s(t))}))},t.detach=function(){return t.payload.forEach((function(e){return e instanceof g&&e.removeChild(s(t))}))},t}return l(t,e),t}(g),j=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).payload={},t.attach=function(){return Object.values(t.payload).forEach((function(e){return e instanceof g&&e.addChild(s(t))}))},t.detach=function(){return Object.values(t.payload).forEach((function(e){return e instanceof g&&e.removeChild(s(t))}))},t}l(t,e);var n=t.prototype;return n.getValue=function(e){void 0===e&&(e=!1);var t={};for(var n in this.payload){var r=this.payload[n];(!e||r instanceof g)&&(t[n]=r instanceof g?r[e?"getAnimatedValue":"getValue"]():r)}return t},n.getAnimatedValue=function(){return this.getValue(!0)},t}(g);function k(e,t){v={fn:e,transform:t}}function y(e){O=e}var _,E=function(e){return"undefined"!=typeof window?window.requestAnimationFrame(e):-1},C=function(e){"undefined"!=typeof window&&window.cancelAnimationFrame(e)};function w(e){_=e}var S,I=function(){return Date.now()};function B(e){S=e}var x,P,T=function(e){return e.current};function N(e){x=e}var D=Object.freeze({get applyAnimatedValues(){return v},injectApplyAnimatedValues:k,get colorNames(){return O},injectColorNames:y,get requestFrame(){return E},get cancelFrame(){return C},injectFrame:function(e,t){E=e,C=t},get interpolation(){return _},injectStringInterpolator:w,get now(){return I},injectNow:function(e){I=e},get defaultElement(){return S},injectDefaultElement:B,get animatedApi(){return T},injectAnimatedApi:function(e){T=e},get createAnimatedStyle(){return x},injectCreateAnimatedStyle:N,get manualFrameloop(){return P},injectManualFrameloop:function(e){P=e}}),R=function(e){function t(t,n){var r;return(r=e.call(this)||this).update=void 0,r.payload=t.style?o({},t,{style:x(t.style)}):t,r.update=n,r.attach(),r}return l(t,e),t}(j),A=!1,M=new Set,L=function e(){if(!A)return!1;var t=I(),n=M,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var c;if(r){if(o>=n.length)break;c=n[o++]}else{if((o=n.next()).done)break;c=o.value}for(var i=c,a=!1,l=0;l<i.configs.length;l++){for(var s=i.configs[l],u=void 0,d=void 0,b=0;b<s.animatedValues.length;b++){var f=s.animatedValues[b];if(!f.done){var p=s.fromValues[b],m=s.toValues[b],v=f.lastPosition,O=m instanceof g,h=Array.isArray(s.initialVelocity)?s.initialVelocity[b]:s.initialVelocity;if(O&&(m=m.getValue()),s.immediate)f.setValue(m),f.done=!0;else if("string"!=typeof p&&"string"!=typeof m){if(void 0!==s.duration)v=p+s.easing((t-f.startTime)/s.duration)*(m-p),u=t>=f.startTime+s.duration;else if(s.decay)v=p+h/(1-.998)*(1-Math.exp(-(1-.998)*(t-f.startTime))),(u=Math.abs(f.lastPosition-v)<.1)&&(m=v);else{d=void 0!==f.lastTime?f.lastTime:t,h=void 0!==f.lastVelocity?f.lastVelocity:s.initialVelocity,t>d+64&&(d=t);for(var j=Math.floor(t-d),k=0;k<j;++k){v+=1*(h+=1*((-s.tension*(v-m)+-s.friction*h)/s.mass)/1e3)/1e3}var y=!(!s.clamp||0===s.tension)&&(p<m?v>m:v<m),_=Math.abs(h)<=s.precision,C=0===s.tension||Math.abs(m-v)<=s.precision;u=y||_&&C,f.lastVelocity=h,f.lastTime=t}O&&!s.toValues[b].done&&(u=!1),u?(f.value!==m&&(v=m),f.done=!0):a=!0,f.setValue(v),f.lastPosition=v}else f.setValue(m),f.done=!0}}i.props.onFrame&&(i.values[s.name]=s.interpolation.getValue())}i.props.onFrame&&i.props.onFrame(i.values),a||(M.delete(i),i.stop(!0))}return M.size?P?P():E(e):A=!1,A};function F(e,t,n){if("function"==typeof e)return e;if(Array.isArray(e))return F({range:e,output:t,extrapolate:n});if(_&&"string"==typeof e.output[0])return _(e);var r=e,o=r.output,c=r.range||[0,1],i=r.extrapolateLeft||r.extrapolate||"extend",a=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||function(e){return e};return function(e){var t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,c);return function(e,t,n,r,o,c,i,a,l){var s=l?l(e):e;if(s<t){if("identity"===i)return s;"clamp"===i&&(s=t)}if(s>n){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=c(s),r===-1/0?s=-s:o===1/0?s+=r:s=s*(o-r)+r;return s}(e,c[t],c[t+1],o[t],o[t+1],l,i,a,r.map)}}var V=function(e){function t(n,r,o,c){var i;return(i=e.call(this)||this).calc=void 0,i.payload=n instanceof h&&!(n instanceof t)?n.getPayload():Array.isArray(n)?n:[n],i.calc=F(r,o,c),i}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}(h);var H=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 V(this,e,t,n)},t}(g),z=function(e){function t(t){var n;return(n=e.call(this)||this).payload=t.map((function(e){return new H(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 V(this,e,t)},t}(h),U=0,G=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=U++}var t=e.prototype;return t.update=function(e){if(!e)return this;var t=m(e),n=t.delay,r=void 0===n?0:n,i=t.to,a=c(t,["delay","to"]);if(u.arr(i)||u.fun(i))this.queue.push(o({},a,{delay:r,to:i}));else if(i){var l={};Object.entries(i).forEach((function(e){var t,n=e[0],c=e[1],i=o({to:(t={},t[n]=c,t),delay:p(r,n)},a),s=l[i.delay]&&l[i.delay].to;l[i.delay]=o({},l[i.delay],i,{to:o({},s,i.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,c=e.to,i=void 0===c?{}:c;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 a=t.delay,l=c(t,["delay"]),s=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(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,M.has(t)||M.add(t),A||(A=!0,E(P||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,M.has(t)&&M.delete(t)),this},t.runAsync=function(e,t){var n=this,r=(e.delay,c(e,["delay"])),i=this.local,a=Promise.resolve(void 0);if(u.arr(r.to))for(var l=function(e){var t=e,c=o({},r,m(r.to[t]));u.arr(c.config)&&(c.config=c.config[t]),a=a.then((function(){if(i===n.guid)return new Promise((function(e){return n.diff(c).start(e)}))}))},s=0;s<r.to.length;s++)l(s);else if(u.fun(r.to)){var d,b=0;a=a.then((function(){return r.to((function(e){var t=o({},r,m(e));if(u.arr(t.config)&&(t.config=t.config[b]),b++,i===n.guid)return d=new Promise((function(e){return n.diff(t).start(e)}))}),(function(e){return void 0===e&&(e=!0),n.stop(e)})).then((function(){return d}))}))}a.then(t)},t.diff=function(e){var t=this;this.props=o({},this.props,e);var n=this.props,r=n.from,c=void 0===r?{}:r,i=n.to,a=void 0===i?{}:i,l=n.config,s=void 0===l?{}:l,d=n.reverse,m=n.attach,v=n.reset,g=n.immediate;if(d){var h=[a,c];c=h[0],a=h[1]}this.merged=o({},c,this.merged,a),this.hasChanged=!1;var j=m&&m(this);if(this.animations=Object.entries(this.merged).reduce((function(e,n){var r=n[0],i=n[1],a=e[r]||{},l=u.num(i),d=u.str(i)&&!i.startsWith("#")&&!/\d/.test(i)&&!O[i],m=u.arr(i),h=!l&&!m&&!d,k=u.und(c[r])?i:c[r],y=l||m||d?i:1,E=p(s,r);j&&(y=j.animations[r].parent);var C,w=a.parent,S=a.interpolation,B=f(j?y.getPayload():y),x=i;h&&(x=_({range:[0,1],output:[i,i]})(1));var P,T=S&&S.getValue(),N=!u.und(w)&&a.animatedValues.some((function(e){return!e.done})),D=!u.equ(x,T),R=!u.equ(x,a.previous),A=!u.equ(E,a.config);if(v||R&&D||A){var M;if(l||d)w=S=a.parent||new H(k);else if(m)w=S=a.parent||new z(k);else if(h){var L=a.interpolation&&a.interpolation.calc(a.parent.value);L=void 0===L||v?k:L,a.parent?(w=a.parent).setValue(0,!1):w=new H(0);var F={output:[L,i]};a.interpolation?(S=a.interpolation,a.interpolation.updateConfig(F)):S=w.interpolate(F)}return B=f(j?y.getPayload():y),C=f(w.getPayload()),v&&!h&&w.setValue(k,!1),t.hasChanged=!0,C.forEach((function(e){e.startPosition=e.value,e.lastPosition=e.value,e.lastVelocity=N?e.lastVelocity:void 0,e.lastTime=N?e.lastTime:void 0,e.startTime=I(),e.done=!1,e.animatedStyles.clear()})),p(g,r)&&w.setValue(h?y:i,!1),o({},e,((M={})[r]=o({},a,{name:r,parent:w,interpolation:S,animatedValues:C,toValues:B,previous:x,config:E,fromValues:f(w.getValue()),immediate:p(g,r),initialVelocity:b(E.velocity,0),clamp:b(E.clamp,!1),precision:b(E.precision,.01),tension:b(E.tension,170),friction:b(E.friction,26),mass:b(E.mass,1),duration:E.duration,easing:b(E.easing,(function(e){return e})),decay:E.decay}),M))}return D?e:(h&&(w.setValue(1,!1),S.updateConfig({output:[x,x]})),w.done=!0,t.hasChanged=!0,o({},e,((P={})[r]=o({},e[r],{previous:x}),P)))}),this.animations),this.hasChanged)for(var k in this.configs=Object.values(this.animations),this.values={},this.interpolations={},this.animations)this.interpolations[k]=this.animations[k].interpolation,this.values[k]=this.animations[k].interpolation.getValue();return this},t.destroy=function(){this.stop(),this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.local=0},e}(),W=function(e,t){var n=i.useRef(!1),r=i.useRef(),o=u.fun(t),c=i.useMemo((function(){var n;return r.current&&(r.current.map((function(e){return e.destroy()})),r.current=void 0),[new Array(e).fill().map((function(e,r){var c=new G,i=o?p(t,r,c):t[r];return 0===r&&(n=i.ref),c.update(i),n||c.start(),c})),n]}),[e]),a=c[0],l=c[1];r.current=a;i.useImperativeHandle(l,(function(){return{start:function(){return Promise.all(r.current.map((function(e){return new Promise((function(t){return e.start(t)}))})))},stop:function(e){return r.current.forEach((function(t){return t.stop(e)}))},get controllers(){return r.current}}}));var s=i.useMemo((function(){return function(e){return r.current.map((function(t,n){t.update(o?p(e,n,t):e[n]),l||t.start()}))}}),[e]);i.useEffect((function(){n.current?o||s(t):l||r.current.forEach((function(e){return e.start()}))})),i.useEffect((function(){return n.current=!0,function(){return r.current.forEach((function(e){return e.destroy()}))}}),[]);var d=r.current.map((function(e){return e.getValues()}));return o?[d,s,function(e){return r.current.forEach((function(t){return t.pause(e)}))}]:d},K=0,q=function(e,t){return("function"==typeof t?e.map(t):f(t)).map(String)},$=function(e){var t=e.items,n=e.keys,r=void 0===n?function(e){return e}:n,i=c(e,["items","keys"]);return t=f(void 0!==t?t:null),o({items:t,keys:q(t,r)},i)};function Y(e,t){var n=function(){if(o){if(c>=r.length)return"break";i=r[c++]}else{if((c=r.next()).done)return"break";i=c.value}var n=i.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),c=0;for(r=o?r:r[Symbol.iterator]();;){var i;if("break"===n())break}e.current.forceUpdate()}var X=function(e){function t(t){var n;return void 0===t&&(t={}),n=e.call(this)||this,!t.transform||t.transform instanceof g||(t=v.transform(t)),n.payload=t,n}return l(t,e),t}(j),Q={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},Z="[-+]?\\d*\\.?\\d+";function J(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}var ee=new RegExp("rgb"+J(Z,Z,Z)),te=new RegExp("rgba"+J(Z,Z,Z,Z)),ne=new RegExp("hsl"+J(Z,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),re=new RegExp("hsla"+J(Z,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",Z)),oe=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ce=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ie=/^#([0-9a-fA-F]{6})$/,ae=/^#([0-9a-fA-F]{8})$/;function le(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}function se(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,c=le(o,r,e+1/3),i=le(o,r,e),a=le(o,r,e-1/3);return Math.round(255*c)<<24|Math.round(255*i)<<16|Math.round(255*a)<<8}function ue(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function de(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 fe(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function pe(e){var t,n,r="number"==typeof(t=e)?t>>>0===t&&t>=0&&t<=4294967295?t:null:(n=ie.exec(t))?parseInt(n[1]+"ff",16)>>>0:Q.hasOwnProperty(t)?Q[t]:(n=ee.exec(t))?(ue(n[1])<<24|ue(n[2])<<16|ue(n[3])<<8|255)>>>0:(n=te.exec(t))?(ue(n[1])<<24|ue(n[2])<<16|ue(n[3])<<8|be(n[4]))>>>0:(n=oe.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+"ff",16)>>>0:(n=ae.exec(t))?parseInt(n[1],16)>>>0:(n=ce.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+n[4]+n[4],16)>>>0:(n=ne.exec(t))?(255|se(de(n[1]),fe(n[2]),fe(n[3])))>>>0:(n=re.exec(t))?(se(de(n[1]),fe(n[2]),fe(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 me=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ve=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Oe=new RegExp("("+Object.keys(Q).join("|")+")","g"),ge={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},he=["Webkit","Ms","Moz","O"];function je(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ge.hasOwnProperty(e)&&ge[e]?(""+t).trim():t+"px"}ge=Object.keys(ge).reduce((function(e,t){return he.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),ge);var ke={};N((function(e){return new X(e)})),B("div"),w((function(e){var t=e.output.map((function(e){return e.replace(ve,pe)})).map((function(e){return e.replace(Oe,pe)})),n=t[0].match(me).map((function(){return[]}));t.forEach((function(e){e.match(me).forEach((function(e,t){return n[t].push(+e)}))}));var r=t[0].match(me).map((function(t,r){return F(o({},e,{output:n[r]}))}));return function(e){var n=0;return t[0].replace(me,(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+")"}))}})),y(Q),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,a=c(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!==i&&(e.scrollLeft=i),void 0!==r&&(e.textContent=r),n)if(n.hasOwnProperty(s)){var u=0===s.indexOf("--"),d=je(s,n[s],u);"float"===s&&(s="cssFloat"),u?e.style.setProperty(s,d):e.style[s]=d}for(var b in a){var f=l?b:ke[b]||(ke[b]=b.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(f)&&e.setAttribute(f,a[b])}}),(function(e){return e}));var ye,_e,Ee=(ye=function(e){return i.forwardRef((function(t,n){var r=d(),l=i.useRef(!0),s=i.useRef(null),b=i.useRef(null),f=i.useCallback((function(e){var t=s.current;s.current=new R(e,(function(){var e=!1;b.current&&(e=v.fn(b.current,s.current.getAnimatedValue())),b.current&&!1!==e||r()})),t&&t.detach()}),[]);i.useEffect((function(){return function(){l.current=!1,s.current&&s.current.detach()}}),[]),i.useImperativeHandle(n,(function(){return T(b,l,r)})),f(t);var p,m=s.current.getValue(),O=(m.scrollTop,m.scrollLeft,c(m,["scrollTop","scrollLeft"])),g=(p=e,!u.fun(p)||p.prototype instanceof a.Component?function(e){return b.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({},O,{ref:g}))}))},void 0===(_e=!1)&&(_e=!0),function(e){return(u.arr(e)?e:Object.keys(e)).reduce((function(e,t){var n=_e?t[0].toLowerCase()+t.substring(1):t;return e[n]=ye(n),e}),ye)}),Ce=Ee(["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=Ee,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=Ce,t.a=Ce,t.interpolate=function(e,t,n){return e&&new V(e,t,n)},t.Globals=D,t.useSpring=function(e){var t=u.fun(e),n=W(1,t?e:[e]),r=n[0],o=n[1],c=n[2];return t?[r[0],o,c]:r},t.useTrail=function(e,t){var n=i.useRef(!1),r=u.fun(t),c=p(t),a=i.useRef(),l=W(e,(function(e,t){return 0===e&&(a.current=[]),a.current.push(t),o({},c,{config:p(c.config,e),attach:e>0&&function(){return a.current[e-1]}})})),s=l[0],d=l[1],b=l[2],f=i.useMemo((function(){return function(e){return d((function(t,n){e.reverse;var r=e.reverse?t+1:t-1,i=a.current[r];return o({},e,{config:p(e.config||c.config,t),attach:i&&function(){return i}})}))}}),[e,c.reverse]);return i.useEffect((function(){n.current&&!r&&f(t)})),i.useEffect((function(){n.current=!0}),[]),r?[s,f,b]:s},t.useTransition=function(e,t,n){var r=o({items:e,keys:t||function(e){return e}},n),a=$(r),l=a.lazy,s=void 0!==l&&l,u=(a.unique,a.reset),b=void 0!==u&&u,f=(a.enter,a.leave,a.update,a.onDestroyed),m=(a.keys,a.items,a.onFrame),v=a.onRest,O=a.onStart,g=a.ref,h=c(a,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),j=d(),k=i.useRef(!1),y=i.useRef({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!r.ref,instances:!k.current&&new Map,forceUpdate:j});return i.useImperativeHandle(r.ref,(function(){return{start:function(){return Promise.all(Array.from(y.current.instances).map((function(e){var t=e[1];return new Promise((function(e){return t.start(e)}))})))},stop:function(e){return Array.from(y.current.instances).forEach((function(t){return t[1].stop(e)}))},get controllers(){return Array.from(y.current.instances).map((function(e){return e[1]}))}}})),y.current=function(e,t){var n=e.first,r=e.prevProps,i=c(e,["first","prevProps"]),a=$(t),l=a.items,s=a.keys,u=a.initial,d=a.from,b=a.enter,f=a.leave,m=a.update,v=a.trail,O=void 0===v?0:v,g=a.unique,h=a.config,j=a.order,k=void 0===j?["enter","leave","update"]:j,y=$(r),_=y.keys,E=y.items,C=o({},i.current),w=[].concat(i.deleted),S=Object.keys(C),I=new Set(S),B=new Set(s),x=s.filter((function(e){return!I.has(e)})),P=i.transitions.filter((function(e){return!e.destroyed&&!B.has(e.originalKey)})).map((function(e){return e.originalKey})),T=s.filter((function(e){return I.has(e)})),N=-O;for(;k.length;){switch(k.shift()){case"enter":x.forEach((function(e,t){g&&w.find((function(t){return t.originalKey===e}))&&(w=w.filter((function(t){return t.originalKey!==e})));var r=s.indexOf(e),o=l[r],c=n&&void 0!==u?"initial":"enter";C[e]={slot:c,originalKey:e,key:g?String(e):K++,item:o,trail:N+=O,config:p(h,o,c),from:p(n&&void 0!==u?u||{}:d,o),to:p(b,o)}}));break;case"leave":P.forEach((function(e){var t=_.indexOf(e),n=E[t];w.unshift(o({},C[e],{slot:"leave",destroyed:!0,left:_[Math.max(0,t-1)],right:_[Math.min(_.length,t+1)],trail:N+=O,config:p(h,n,"leave"),to:p(f,n)})),delete C[e]}));break;case"update":T.forEach((function(e){var t=s.indexOf(e),n=l[t];C[e]=o({},C[e],{item:n,slot:"update",trail:N+=O,config:p(h,n,"update"),to:p(m,n)})}))}}var D=s.map((function(e){return C[e]}));return w.forEach((function(e){var t,n=e.left,r=(e.right,c(e,["left","right"]));-1!==(t=D.findIndex((function(e){return e.originalKey===n})))&&(t+=1),t=Math.max(0,t),D=[].concat(D.slice(0,t),[r],D.slice(t))})),o({},i,{changed:x.length||P.length||T.length,first:n&&0===x.length,transitions:D,current:C,deleted:w,prevProps:t})}(y.current,r),y.current.changed&&y.current.transitions.forEach((function(e){var t=e.slot,n=e.from,r=e.to,c=e.config,i=e.trail,a=e.key,l=e.item;y.current.instances.has(a)||y.current.instances.set(a,new G);var u=y.current.instances.get(a),d=o({},h,{to:r,from:n,config:c,ref:g,onRest:function(n){y.current.mounted&&(e.destroyed&&(g||s||Y(y,a),f&&f(l)),!Array.from(y.current.instances).some((function(e){return!e[1].idle}))&&(g||s)&&y.current.deleted.length>0&&Y(y),v&&v(l,t,n))},onStart:O&&function(){return O(l,t)},onFrame:m&&function(e){return m(l,t,e)},delay:i,reset:b&&"enter"===t});u.update(d),y.current.paused||u.start()})),i.useEffect((function(){return y.current.mounted=k.current=!0,function(){y.current.mounted=k.current=!1,Array.from(y.current.instances).map((function(e){return e[1].destroy()})),y.current.instances.clear()}}),[]),y.current.transitions.map((function(e){var t=e.item,n=e.slot,r=e.key;return{item:t,key:r,state:n,props:y.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 c=e.current;if(c){var i=c.controllers;if(i.length){var a=n*t[r];i.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},,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return E})),n.d(t,"b",(function(){return _}));var r=n(15),o=n(51),c=n(50),i=n(67),a=n(13),l=n(63),s=(n(81),n(48)),u=n(54),d=n(57),b=n(74),f=n(79),p=n(82),m=n(49),v=n(97),O=n(104),g=n(52),h="undefined"!=typeof window&&"msCrypto"in window;var j="undefined"!=typeof window&&"msCrypto"in window;function k(e,t,n){var r=Object(s.a)(n);return Object(a.useCallback)((function(n){var o;if(e&&function(e){return!!Object(u.a)(e)&&(!e.metaKey&&"Tab"!==e.key)}(n)){var c=null==t?void 0:t.ref.current;if(c&&(Object(O.a)(c,n.type,n),n.currentTarget.contains(c)))return n.stopPropagation(),void n.preventDefault()}null===(o=r.current)||void 0===o||o.call(r,n)}),[e,t])}function y(e,t){return null==e?void 0:e.some((function(e){return!!t&&e.ref.current===t}))}var _=Object(c.a)({name:"Composite",compose:[b.a],useState:g.g,useOptions:function(e){return Object(r.b)(Object(r.b)({},e),{},{currentId:Object(g.e)(e)})},useProps:function(e,t){var n=t.ref,o=t.onFocus,c=t.onBlur,i=t.onKeyDown,b=t.onKeyUp,f=Object(r.a)(t,["ref","onFocus","onBlur","onKeyDown","onKeyUp"]),O=Object(a.useRef)(null),_=Object(g.d)(e.items,e.currentId),E=Object(a.useRef)(void 0),C=Object(s.a)(o),w=Object(s.a)(c),S=j?function(e){var t=Object(a.useRef)(null);return Object(a.useEffect)((function(){var n=Object(m.a)(e.current),r=function(e){var n=e.target;t.current=n};return n.addEventListener("focus",r,!0),function(){n.removeEventListener("focus",r,!0)}}),[]),t}(O):void 0;Object(a.useEffect)((function(){var t=O.current;t&&e.unstable_moves&&!_&&t.focus()}),[e.unstable_moves,_]);var I=k(e.unstable_virtual,_,i),B=k(e.unstable_virtual,_,b),x=Object(a.useCallback)((function(t){var n;if(e.unstable_virtual){var r,o,c=(null==S?void 0:S.current)||t.relatedTarget,i=y(e.items,c);if(Object(u.a)(t)&&!i)return null===(r=C.current)||void 0===r||r.call(C,t),void(null==_||null===(o=_.ref.current)||void 0===o||o.focus());if(i)return void t.stopPropagation()}else if(Object(u.a)(t)){var a;null===(a=e.setCurrentId)||void 0===a||a.call(e,null)}null===(n=C.current)||void 0===n||n.call(C,t)}),[e.unstable_virtual,e.items,_,e.setCurrentId]),P=Object(a.useCallback)((function(t){var n;if(e.unstable_virtual){var r,o=y(e.items,t.target),c=function(e){return h?Object(d.a)(e.target):e.relatedTarget}(t),i=y(e.items,c);if(Object(u.a)(t)&&i)return(null===(r=E.current)||void 0===r?void 0:r.ref.current)&&Object(v.a)(E.current.ref.current,"blur",t),E.current=_,void t.stopPropagation();o?E.current=_:((null==_?void 0:_.ref.current)&&Object(v.a)(_.ref.current,"blur",t),E.current=void 0)}null===(n=w.current)||void 0===n||n.call(w,t)}),[e.unstable_virtual,e.items,_]),T=Object(a.useMemo)((function(){return Object(p.a)({onKeyDown:I,stopPropagation:!0,shouldKeyDown:function(t){return Object(u.a)(t)&&null===e.currentId},keyMap:function(){var t,n="horizontal"!==e.orientation,r="vertical"!==e.orientation,o=!!(null===(t=e.groups)||void 0===t?void 0:t.length),c=e.first&&function(){return e.first()},i=e.last&&function(){return e.last()};return{ArrowUp:(o||n)&&function(){if(o){var t,n=(c=e.items,Object(g.a)(Object(g.b)(Object(g.f)(Object(g.c)(c)))));if(null==n?void 0:n.id)null===(t=e.move)||void 0===t||t.call(e,n.id)}else{var r;null===(r=e.last)||void 0===r||r.call(e)}var c},ArrowRight:(o||r)&&c,ArrowDown:(o||n)&&c,ArrowLeft:(o||r)&&i,Home:c,End:i,PageUp:c,PageDown:i}}})}),[I,e.currentId,e.orientation,e.groups,e.items,e.move,e.last,e.first]);return Object(r.b)({ref:Object(l.a)(O,n),id:e.baseId,onFocus:x,onBlur:P,onKeyDown:T,onKeyUp:B,"aria-activedescendant":e.unstable_virtual&&(null==_?void 0:_.id)||void 0},f)},useComposeProps:function(e,t){t=Object(i.a)(e,t,!0);var n=Object(b.a)(e,t,!0);return e.unstable_virtual||null===e.currentId?n:Object(r.b)(Object(r.b)({},t),{},{ref:n.ref})}}),E=Object(o.a)({as:"div",useHook:_,useCreateElement:function(e,t,n){return Object(f.a)(e,t,n)}})},function(e,t,n){"use strict";n.d(t,"a",(function(){return y})),n.d(t,"b",(function(){return k}));var r=n(15),o=n(51),c=n(50),i=n(13),a=n(63),l=(n(81),n(48)),s=n(54),u=n(70),d=n(73),b=n(72),f=n(88),p=n(82),m=n(49),v=n(52),O=n(96),g=n(98),h=n(99);function j(e){return e.querySelector("[data-composite-item-widget]")}var k=Object(c.a)({name:"CompositeItem",compose:[f.a,O.a],useState:v.g,propsAreEqual:function(e,t){if(!t.id||e.id!==t.id)return f.a.unstable_propsAreEqual(e,t);var n=e.currentId,o=e.unstable_moves,c=Object(r.a)(e,["currentId","unstable_moves"]),i=t.currentId,a=t.unstable_moves,l=Object(r.a)(t,["currentId","unstable_moves"]);if(i!==n){if(t.id===i||t.id===n)return!1}else if(o!==a)return!1;return f.a.unstable_propsAreEqual(c,l)},useOptions:function(e){return Object(r.b)(Object(r.b)({},e),{},{id:e.id,currentId:Object(v.e)(e),unstable_clickOnSpace:!e.unstable_hasActiveWidget&&e.unstable_clickOnSpace})},useProps:function(e,t){var n,o=t.ref,c=t.tabIndex,f=void 0===c?0:c,v=t.onFocus,O=t.onBlur,k=t.onKeyDown,y=t.onClick,_=Object(r.a)(t,["ref","tabIndex","onFocus","onBlur","onKeyDown","onClick"]),E=Object(i.useRef)(null),C=e.id,w=e.disabled&&!e.focusable,S=e.currentId===C,I=Object(l.a)(S),B=Object(i.useRef)(!1),x=function(e){return Object(i.useMemo)((function(){var t;return null===(t=e.items)||void 0===t?void 0:t.find((function(t){return e.id&&t.id===e.id}))}),[e.items,e.id])}(e),P=Object(l.a)(v),T=Object(l.a)(O),N=Object(l.a)(k),D=Object(l.a)(y),R=!e.unstable_virtual&&!e.unstable_hasActiveWidget&&S||!(null===(n=e.items)||void 0===n?void 0:n.length);Object(i.useEffect)((function(){var t;if(C)return null===(t=e.registerItem)||void 0===t||t.call(e,{id:C,ref:E,disabled:!!w}),function(){var t;null===(t=e.unregisterItem)||void 0===t||t.call(e,C)}}),[C,w,e.registerItem,e.unregisterItem]),Object(i.useEffect)((function(){var t=E.current;t&&e.unstable_moves&&I.current&&t.focus()}),[e.unstable_moves]);var A=Object(i.useCallback)((function(t){var n,o;if(null===(n=P.current)||void 0===n||n.call(P,t),!t.defaultPrevented&&!Object(d.a)(t)&&C&&!function(e,t){if(Object(s.a)(e))return!1;for(var n,o=Object(r.c)(t);!(n=o()).done;){if(n.value.ref.current===e.target)return!0}return!1}(t,e.items)&&(null===(o=e.setCurrentId)||void 0===o||o.call(e,C),e.unstable_virtual&&e.baseId&&Object(s.a)(t))){var c=t.target,i=Object(m.a)(c).getElementById(e.baseId);i&&(B.current=!0,Object(b.a)(i))}}),[C,e.items,e.setCurrentId,e.unstable_virtual,e.baseId]),M=Object(i.useCallback)((function(t){var n;if(e.unstable_virtual&&B.current)return B.current=!1,t.preventDefault(),void t.stopPropagation();null===(n=T.current)||void 0===n||n.call(T,t)}),[e.unstable_virtual]),L=Object(i.useCallback)((function(e){var t;if(null===(t=N.current)||void 0===t||t.call(N,e),Object(s.a)(e)&&1===e.key.length&&" "!==e.key){var n=j(e.currentTarget);if(n&&Object(g.a)(n)){n.focus();var r=e.key;window.requestAnimationFrame((function(){Object(h.a)(n,r)}))}}}),[]),F=Object(i.useMemo)((function(){return Object(p.a)({onKeyDown:L,stopPropagation:!0,shouldKeyDown:s.a,keyMap:function(){var t="horizontal"!==e.orientation,n="vertical"!==e.orientation,r=!!(null==x?void 0:x.groupId),o=function(e){var t=j(e.currentTarget);t&&Object(g.a)(t)&&Object(h.a)(t,"")},c=e.up&&function(){return e.up()},i=e.next&&function(){return e.next()},a=e.down&&function(){return e.down()},l=e.previous&&function(){return e.previous()};return{Delete:o,Backspace:o,ArrowUp:(r||t)&&c,ArrowRight:(r||n)&&i,ArrowDown:(r||t)&&a,ArrowLeft:(r||n)&&l,Home:function(t){var n,o;!r||t.ctrlKey?null===(n=e.first)||void 0===n||n.call(e):null===(o=e.previous)||void 0===o||o.call(e,!0)},End:function(t){var n,o;!r||t.ctrlKey?null===(n=e.last)||void 0===n||n.call(e):null===(o=e.next)||void 0===o||o.call(e,!0)},PageUp:function(){var t,n;r?null===(t=e.up)||void 0===t||t.call(e,!0):null===(n=e.first)||void 0===n||n.call(e)},PageDown:function(){var t,n;r?null===(t=e.down)||void 0===t||t.call(e,!0):null===(n=e.last)||void 0===n||n.call(e)}}}})}),[L,e.orientation,x,e.up,e.next,e.down,e.previous,e.first,e.last]),V=Object(i.useCallback)((function(e){var t;if(null===(t=D.current)||void 0===t||t.call(D,e),!e.defaultPrevented){var n=j(e.currentTarget);n&&!Object(u.a)(n)&&n.focus()}}),[]);return Object(r.b)({ref:Object(a.a)(E,o),id:C,tabIndex:R?f:-1,"aria-selected":!(!e.unstable_virtual||!S)||void 0,onFocus:A,onBlur:M,onKeyDown:F,onClick:V},_)}}),y=Object(o.a)({as:"button",memo:!0,useHook:k})},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(49);function o(e,t,n){var o,c;if(void 0===n&&(n={}),"function"==typeof Event)return new Event(t,n);var i=Object(r.a)(e).createEvent("Event");return i.initEvent(t,null===(o=n)||void 0===o?void 0:o.bubbles,null===(c=n)||void 0===c?void 0:c.cancelable),i}},function(e,t,n){"use strict";e.exports=n(184)},function(e,t){!function(){e.exports=this.wp.wordcount}()},,function(e,t){!function(){e.exports=this.wp.shortcode}()},,,function(e,t,n){"use strict";var r=n(8),o=n(14),c=n(0),i=n(2),a=n(3),l=n(170),s=Object(a.createSlotFill)("BlockControls"),u=s.Fill,d=s.Slot;var b=function(e){return"BlockControls".concat(e?"-expanded":"")},f=function(e){var t=e.controls,n=e.__experimentalIsExpanded,r=e.children;return Object(l.a)()?Object(c.createElement)(u,{name:b(n)},(function(e){var n=Object(i.isEmpty)(e)?null:e;return Object(c.createElement)(a.__experimentalToolbarContext.Provider,{value:n},Object(c.createElement)(a.ToolbarGroup,{controls:t}),r)})):null};f.Slot=function(e){var t=e.__experimentalIsExpanded,n=void 0!==t&&t,i=Object(o.a)(e,["__experimentalIsExpanded"]),l=Object(c.useContext)(a.__experimentalToolbarContext);return Object(c.createElement)(d,Object(r.a)({name:b(n)},i,{fillProps:l}))},t.a=f},,,,,,,,function(e,t,n){"use strict";var r=n(5),o=n(14),c=n(0);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.a=function(e){var t=e.icon,n=e.size,a=void 0===n?24:n,l=Object(o.a)(e,["icon","size"]);return Object(c.cloneElement)(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({width:a,height:a},l))}},function(e,t,n){"use strict";var r=n(143);function o(){}function c(){}c.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,c,i){if(i!==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:c,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},,,,,function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(38),o=n(37),c=n(30),i=n(39);function a(e){return Object(r.a)(e)||Object(o.a)(e)||Object(c.a)(e)||Object(i.a)()}},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<n.length;r++)e(t,n[r]);else for(r in n)t[r]=(t[r]||[]).concat(n[r])}(n,e),(t=function(e){return function(t){return function(r){var o,c,i=n[r.type],a=t(r);if(i)for(o=0;o<i.length;o++)(c=i[o](r,e))&&e.dispatch(c);return a}}}).effects=n,t}},,,,,,,function(e,t){!function(){e.exports=this.wp.tokenList}()},,function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M13 11.9l3.3-3.4-1.1-1-3.2 3.3-3.2-3.3-1.1 1 3.3 3.4-3.5 3.6 1 1L12 13l3.5 3.5 1-1z"}));t.a=c},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));t.a=c},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18.3 5.6L9.9 16.9l-4.6-3.4-.9 1.2 5.8 4.3 9.3-12.6z"}));t.a=c},,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(4),o=n(80);function c(){var e=Object(o.b)(),t=e.isSelected,n=e.clientId,c=e.name,i=Object(r.useSelect)((function(e){if(!t){var r=e("core/block-editor"),o=r.getBlockName,i=r.isFirstMultiSelectedBlock,a=r.getMultiSelectedBlockClientIds;return!!i(n)&&a().every((function(e){return o(e)===c}))}}),[n,t,c]);return t||i}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},,,function(e,t,n){"use strict";var r=a(n(307)),o=a(n(312)),c=a(n(213)),i=a(n(210));function a(e){return e&&e.__esModule?e:{default:e}}e.exports={Transition:i.default,TransitionGroup:c.default,ReplaceTransition:o.default,CSSTransition:r.default}},,,function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,o={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}},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,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};t.__esModule=!0;var a=n(13),l=n(28),s=n(181),u=n(182),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={lineHeight:null},t.dispatchEvent=function(e){var n=document.createEvent("Event");n.initEvent(e,!0,!1),t.textarea.dispatchEvent(n)},t.updateLineHeight=function(){t.setState({lineHeight:u(t.textarea)})},t.onChange=function(e){var n=t.props.onChange;t.currentValue=e.currentTarget.value,n&&n(e)},t.saveDOMNodeRef=function(e){var n=t.props.innerRef;n&&n(e),t.textarea=e},t.getLocals=function(){var e=t,n=e.props,r=(n.onResize,n.maxRows),o=(n.onChange,n.style),a=(n.innerRef,i(n,["onResize","maxRows","onChange","style","innerRef"])),l=e.state.lineHeight,s=e.saveDOMNodeRef,u=r&&l?l*r:null;return c({},a,{saveDOMNodeRef:s,style:u?c({},o,{maxHeight:u}):o,onChange:t.onChange})},t}return o(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.onResize;"number"==typeof t.maxRows&&this.updateLineHeight(),setTimeout((function(){return s(e.textarea)})),n&&this.textarea.addEventListener("autosize:resized",n)},t.prototype.componentWillUnmount=function(){var e=this.props.onResize;e&&this.textarea.removeEventListener("autosize:resized",e),this.dispatchEvent("autosize:destroy")},t.prototype.render=function(){var e=this.getLocals(),t=e.children,n=e.saveDOMNodeRef,r=i(e,["children","saveDOMNodeRef"]);return a.createElement("textarea",c({},r,{ref:n}),t)},t.prototype.componentDidUpdate=function(e){this.props.value===this.currentValue&&this.props.rows===e.rows||this.dispatchEvent("autosize:update")},t.defaultProps={rows:1},t.propTypes={rows:l.number,maxRows:l.number,onResize:l.func,innerRef:l.func},t}(a.Component);t.default=d},function(e,t,n){var r,o,c; /*! autosize 4.0.2 license: MIT http://www.jacklmoore.com/autosize -*/o=[e,t],void 0===(c="function"==typeof(r=function(e,t){"use strict";var n,r,o="function"==typeof Map?new Map:(n=[],r=[],{has:function(e){return n.indexOf(e)>-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))}}),c=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){c=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function i(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!o.has(e)){var t,n=null,r=null,i=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<t?"hidden"===n.overflowY&&(s("scroll"),u(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(s("hidden"),u(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),i!==r){i=r;var o=c("autosize:resized");try{e.dispatchEvent(o)}catch(e){}}}}function a(e){var t=o.get(e);t&&t.destroy()}function l(e){var t=o.get(e);t&&t.update()}var s=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((s=function(e){return e}).destroy=function(e){return e},s.update=function(e){return e}):((s=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return i(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],a),e},s.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],l),e}),t.default=s,e.exports=t.default})?r.apply(t,o):r)||(e.exports=c)},function(e,t,n){var r=n(183);e.exports=function(e){var t=r(e,"line-height"),n=parseFloat(t,10);if(t===n+""){var o=e.style.lineHeight;e.style.lineHeight=t+"em",t=r(e,"line-height"),n=parseFloat(t,10),o?e.style.lineHeight=o:delete e.style.lineHeight}if(-1!==t.indexOf("pt")?(n*=4,n/=3):-1!==t.indexOf("mm")?(n*=96,n/=25.4):-1!==t.indexOf("cm")?(n*=96,n/=2.54):-1!==t.indexOf("in")?n*=96:-1!==t.indexOf("pc")&&(n*=16),n=Math.round(n),"normal"===t){var c=e.nodeName,i=document.createElement(c);i.innerHTML=" ","TEXTAREA"===c.toUpperCase()&&i.setAttribute("rows","1");var a=r(e,"font-size");i.style.fontSize=a,i.style.padding="0px",i.style.border="0px";var l=document.body;l.appendChild(i),n=i.offsetHeight,l.removeChild(i)}return n}},function(e,t){e.exports=function(e,t,n){return((n=window.getComputedStyle)?n(e):e.currentStyle)[t.replace(/-(\w)/gi,(function(e,t){return t.toUpperCase()}))]}},function(e,t,n){"use strict";var r=n(185);e.exports=function(e,t,n){n=n||{},9===t.nodeType&&(t=r.getWindow(t));var o=n.allowHorizontalScroll,c=n.onlyScrollIfNeeded,i=n.alignWithTop,a=n.alignWithLeft,l=n.offsetTop||0,s=n.offsetLeft||0,u=n.offsetBottom||0,d=n.offsetRight||0;o=void 0===o||o;var b=r.isWindow(t),f=r.offset(e),p=r.outerHeight(e),m=r.outerWidth(e),v=void 0,O=void 0,g=void 0,h=void 0,j=void 0,k=void 0,y=void 0,_=void 0,E=void 0,C=void 0;b?(y=t,C=r.height(y),E=r.width(y),_={left:r.scrollLeft(y),top:r.scrollTop(y)},j={left:f.left-_.left-s,top:f.top-_.top-l},k={left:f.left+m-(_.left+E)+d,top:f.top+p-(_.top+C)+u},h=_):(v=r.offset(t),O=t.clientHeight,g=t.clientWidth,h={left:t.scrollLeft,top:t.scrollTop},j={left:f.left-(v.left+(parseFloat(r.css(t,"borderLeftWidth"))||0))-s,top:f.top-(v.top+(parseFloat(r.css(t,"borderTopWidth"))||0))-l},k={left:f.left+m-(v.left+g+(parseFloat(r.css(t,"borderRightWidth"))||0))+d,top:f.top+p-(v.top+O+(parseFloat(r.css(t,"borderBottomWidth"))||0))+u}),j.top<0||k.top>0?!0===i?r.scrollTop(t,h.top+j.top):!1===i?r.scrollTop(t,h.top+k.top):j.top<0?r.scrollTop(t,h.top+j.top):r.scrollTop(t,h.top+k.top):c||((i=void 0===i||!!i)?r.scrollTop(t,h.top+j.top):r.scrollTop(t,h.top+k.top)),o&&(j.left<0||k.left>0?!0===a?r.scrollLeft(t,h.left+j.left):!1===a?r.scrollLeft(t,h.left+k.left):j.left<0?r.scrollLeft(t,h.left+j.left):r.scrollLeft(t,h.left+k.left):c||((a=void 0===a||!!a)?r.scrollLeft(t,h.left+j.left):r.scrollLeft(t,h.left+k.left)))}},function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function c(e,t){var n=e["page"+(t?"Y":"X")+"Offset"],r="scroll"+(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}function i(e){return c(e)}function a(e){return c(e,!0)}function l(e){var t=function(e){var t,n=void 0,r=void 0,o=e.ownerDocument,c=o.body,i=o&&o.documentElement;return n=(t=e.getBoundingClientRect()).left,r=t.top,{left:n-=i.clientLeft||c.clientLeft||0,top:r-=i.clientTop||c.clientTop||0}}(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=i(r),t.top+=a(r),t}var s=new RegExp("^("+/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source+")(?!px)[a-z%]+$","i"),u=/^(top|right|bottom|left)$/,d="left";var b=void 0;function f(e,t){for(var n=0;n<e.length;n++)t(e[n])}function p(e){return"border-box"===b(e,"boxSizing")}"undefined"!=typeof window&&(b=window.getComputedStyle?function(e,t,n){var r="",o=e.ownerDocument,c=n||o.defaultView.getComputedStyle(e,null);return c&&(r=c.getPropertyValue(t)||c[t]),r}:function(e,t){var n=e.currentStyle&&e.currentStyle[t];if(s.test(n)&&!u.test(t)){var r=e.style,o=r[d],c=e.runtimeStyle[d];e.runtimeStyle[d]=e.currentStyle[d],r[d]="fontSize"===t?"1em":n||0,n=r.pixelLeft+"px",r[d]=o,e.runtimeStyle[d]=c}return""===n?"auto":n});var m=["margin","border","padding"];function v(e,t,n){var r={},o=e.style,c=void 0;for(c in t)t.hasOwnProperty(c)&&(r[c]=o[c],o[c]=t[c]);for(c in n.call(e),t)t.hasOwnProperty(c)&&(o[c]=r[c])}function O(e,t,n){var r=0,o=void 0,c=void 0,i=void 0;for(c=0;c<t.length;c++)if(o=t[c])for(i=0;i<n.length;i++){var a=void 0;a="border"===o?o+n[i]+"Width":o+n[i],r+=parseFloat(b(e,a))||0}return r}function g(e){return null!=e&&e==e.window}var h={};function j(e,t,n){if(g(e))return"width"===t?h.viewportWidth(e):h.viewportHeight(e);if(9===e.nodeType)return"width"===t?h.docWidth(e):h.docHeight(e);var r="width"===t?["Left","Right"]:["Top","Bottom"],o="width"===t?e.offsetWidth:e.offsetHeight,c=(b(e),p(e)),i=0;(null==o||o<=0)&&(o=void 0,(null==(i=b(e,t))||Number(i)<0)&&(i=e.style[t]||0),i=parseFloat(i)||0),void 0===n&&(n=c?1:-1);var a=void 0!==o||c,l=o||i;if(-1===n)return a?l-O(e,["border","padding"],r):i;if(a){var s=2===n?-O(e,["border"],r):O(e,["margin"],r);return l+(1===n?0:s)}return i+O(e,m.slice(n),r)}f(["Width","Height"],(function(e){h["doc"+e]=function(t){var n=t.document;return Math.max(n.documentElement["scroll"+e],n.body["scroll"+e],h["viewport"+e](n))},h["viewport"+e]=function(t){var n="client"+e,r=t.document,o=r.body,c=r.documentElement[n];return"CSS1Compat"===r.compatMode&&c||o&&o[n]||c}}));var k={position:"absolute",visibility:"hidden",display:"block"};function y(e){var t=void 0,n=arguments;return 0!==e.offsetWidth?t=j.apply(void 0,n):v(e,k,(function(){t=j.apply(void 0,n)})),t}function _(e,t,n){var r=n;if("object"!==(void 0===t?"undefined":o(t)))return void 0!==r?("number"==typeof r&&(r+="px"),void(e.style[t]=r)):b(e,t);for(var c in t)t.hasOwnProperty(c)&&_(e,c,t[c])}f(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);h["outer"+t]=function(t,n){return t&&y(t,e,n?0:1)};var n="width"===e?["Left","Right"]:["Top","Bottom"];h[e]=function(t,r){if(void 0===r)return t&&y(t,e,-1);if(t){b(t);return p(t)&&(r+=O(t,["padding","border"],n)),_(t,e,r)}}})),e.exports=r({getWindow:function(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},offset:function(e,t){if(void 0===t)return l(e);!function(e,t){"static"===_(e,"position")&&(e.style.position="relative");var n=l(e),r={},o=void 0,c=void 0;for(c in t)t.hasOwnProperty(c)&&(o=parseFloat(_(e,c))||0,r[c]=o+t[c]-n[c]);_(e,r)}(e,t)},isWindow:g,each:f,css:_,clone:function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);if(e.overflow)for(var n in e)e.hasOwnProperty(n)&&(t.overflow[n]=e.overflow[n]);return t},scrollLeft:function(e,t){if(g(e)){if(void 0===t)return i(e);window.scrollTo(t,a(e))}else{if(void 0===t)return e.scrollLeft;e.scrollLeft=t}},scrollTop:function(e,t){if(g(e)){if(void 0===t)return a(e);window.scrollTo(i(e),t)}else{if(void 0===t)return e.scrollTop;e.scrollTop=t}},viewportWidth:0,viewportHeight:0},h)},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"}));t.a=c},,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"}));t.a=c},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));t.a=c},function(e,t,n){"use strict";t.__esModule=!0,t.default=t.EXITING=t.ENTERED=t.ENTERING=t.EXITED=t.UNMOUNTED=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(28)),o=a(n(13)),c=a(n(109)),i=n(211);n(212);function a(e){return e&&e.__esModule?e:{default:e}}t.UNMOUNTED="unmounted";t.EXITED="exited";t.ENTERING="entering";t.ENTERED="entered";t.EXITING="exiting";var l=function(e){var t,n;function r(t,n){var r;r=e.call(this,t,n)||this;var o,c=n.transitionGroup,i=c&&!c.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o="exited",r.appearStatus="entering"):o="entered":o=t.unmountOnExit||t.mountOnEnter?"unmounted":"exited",r.state={status:o},r.nextCallback=null,r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.getChildContext=function(){return{transitionGroup:null}},r.getDerivedStateFromProps=function(e,t){return e.in&&"unmounted"===t.status?{status:"exited"}:null},i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?"entering"!==n&&"entered"!==n&&(t="entering"):"entering"!==n&&"entered"!==n||(t="exiting")}this.updateStatus(!1,t)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},i.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var n=c.default.findDOMNode(this);"entering"===t?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},i.performEnter=function(e,t){var n=this,r=this.props.enter,o=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,c=this.getTimeouts(),i=o?c.appear:c.enter;t||r?(this.props.onEnter(e,o),this.safeSetState({status:"entering"},(function(){n.props.onEntering(e,o),n.onTransitionEnd(e,i,(function(){n.safeSetState({status:"entered"},(function(){n.props.onEntered(e,o)}))}))}))):this.safeSetState({status:"entered"},(function(){n.props.onEntered(e)}))},i.performExit=function(e){var t=this,n=this.props.exit,r=this.getTimeouts();n?(this.props.onExit(e),this.safeSetState({status:"exiting"},(function(){t.props.onExiting(e),t.onTransitionEnd(e,r.exit,(function(){t.safeSetState({status:"exited"},(function(){t.props.onExited(e)}))}))}))):this.safeSetState({status:"exited"},(function(){t.props.onExited(e)}))},i.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},i.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},i.onTransitionEnd=function(e,t,n){this.setNextCallback(n);var r=null==t&&!this.props.addEndListener;e&&!r?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},i.render=function(){var e=this.state.status;if("unmounted"===e)return null;var t=this.props,n=t.children,r=function(e,t){if(null==e)return{};var n,r,o={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"==typeof n)return n(e,r);var c=o.default.Children.only(n);return o.default.cloneElement(c,r)},r}(o.default.Component);function s(){}l.contextTypes={transitionGroup:r.object},l.childContextTypes={transitionGroup:function(){}},l.propTypes={},l.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:s,onEntering:s,onEntered:s,onExit:s,onExiting:s,onExited:s},l.UNMOUNTED=0,l.EXITED=1,l.ENTERING=2,l.ENTERED=3,l.EXITING=4;var u=(0,i.polyfill)(l);t.default=u},function(e,t,n){"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function o(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function c(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function i(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,i=null,a=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?i="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(i="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?a="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(a="UNSAFE_componentWillUpdate"),null!==n||null!==i||null!==a){var l=e.displayName||e.name,s="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+l+" uses "+s+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==i?"\n "+i:"")+(null!==a?"\n "+a:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=o),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=c;var u=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;u.call(this,e,t,r)}}return e}n.r(t),n.d(t,"polyfill",(function(){return i})),r.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,c.__suppressDeprecationWarning=!0},function(e,t,n){"use strict";t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0;var r;(r=n(28))&&r.__esModule;t.timeoutsShape=null;t.classNamesShape=null},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=a(n(28)),o=a(n(13)),c=n(211),i=n(313);function a(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var u=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},d=function(e){var t,n;function r(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(s(s(r)));return r.state={handleExited:o,firstRender:!0},r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var c=r.prototype;return c.getChildContext=function(){return{transitionGroup:{isMounting:!this.appeared}}},c.componentDidMount=function(){this.appeared=!0,this.mounted=!0},c.componentWillUnmount=function(){this.mounted=!1},r.getDerivedStateFromProps=function(e,t){var n=t.children,r=t.handleExited;return{children:t.firstRender?(0,i.getInitialChildMapping)(e,r):(0,i.getNextChildMapping)(e,n,r),firstRender:!1}},c.handleExited=function(e,t){var n=(0,i.getChildMapping)(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=l({},t.children);return delete n[e.key],{children:n}})))},c.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=function(e,t){if(null==e)return{};var n,r,o={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["component","childFactory"]),c=u(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?c:o.default.createElement(t,r,c)},r}(o.default.Component);d.childContextTypes={transitionGroup:r.default.object.isRequired},d.propTypes={},d.defaultProps={component:"div",childFactory:function(e){return e}};var b=(0,c.polyfill)(d);t.default=b,e.exports=t.default},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));t.a=c},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));t.a=c},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(o.Path,{d:"M16 4h2v9H7v3l-5-4 5-4v3h9V4z"}));t.a=c},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"}));t.a=c},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M20.1 5.1L16.9 2 6.2 12.7l-1.3 4.4 4.5-1.3L20.1 5.1zM4 20.8h8v-1.5H4v1.5z"}));t.a=c},,,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)}}}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l}));var r=n(12),o=n(0),c=n(174),i=n(2),a=(n(90),n(133));function l(e){var t=e.children,n=e.className;return Object(o.createElement)(a.a.Slot,{__experimentalIsExpanded:!0},(function(e){return Object(o.createElement)(s,{className:n,fills:e},t)}))}function s(t){var n=t.fills,a=t.className,l=void 0===a?"":a,s=t.children,u=Object(o.useRef)(),d=Object(o.useRef)(),b=Object(o.useRef)(),f=Object(o.useState)({}),p=Object(r.a)(f,2),m=p[0],v=p[1],O=Object(o.useRef)();O.current=n;var g=Object(o.useCallback)(Object(i.throttle)((function(){var e=O.current.length?d.current:b.current;if(e){e.style.position="absolute",e.style.width="auto";var t,n=(t=e).ownerDocument.defaultView.getComputedStyle(t);v({width:n.getPropertyValue("width"),height:n.getPropertyValue("height")}),e.style.position="",e.style.width=""}}),100),[]);Object(o.useEffect)((function(){var e=new window.MutationObserver((function(e){e.find((function(e){return"childList"===e.type}))&&g()}));return e.observe(u.current,{childList:!0,subtree:!0}),function(){return e.disconnect()}}),[]),Object(o.useEffect)((function(){n.length>1&&void 0!==e&&e.env}),[n.length]);var h=n[0];return Object(o.createElement)("div",{className:"block-editor-block-toolbar-animated-width-container",ref:u,style:m},Object(o.createElement)(c.TransitionGroup,null,h?Object(o.createElement)(c.CSSTransition,{key:"fills",timeout:300,classNames:"block-editor-block-toolbar-content"},Object(o.createElement)("div",{className:l,ref:d},h)):Object(o.createElement)(c.CSSTransition,{key:"default",timeout:300,classNames:"block-editor-block-toolbar-content"},Object(o.createElement)("div",{className:l,ref:b},s))))}}).call(this,n(102))},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.diffChars=function(e,t,n){return o.diff(e,t,n)},t.characterDiff=void 0;var o=new(((r=n(317))&&r.__esModule?r:{default:r}).default);t.characterDiff=o},function(e,t,n){"use strict";t.match=function(e,t){return l(e).some((function(e){var n=e.inverse,r="all"===e.type||t.type===e.type;if(r&&n||!r&&!n)return!1;var o=e.expressions.every((function(e){var n=e.feature,r=e.modifier,o=e.value,c=t[n];if(!c)return!1;switch(n){case"orientation":case"scan":return c.toLowerCase()===o.toLowerCase();case"width":case"height":case"device-width":case"device-height":o=d(o),c=d(c);break;case"resolution":o=u(o),c=u(c);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":o=s(o),c=s(c);break;case"grid":case"color":case"color-index":case"monochrome":o=parseInt(o,10)||1,c=parseInt(c,10)||0}switch(r){case"min":return c>=o;case"max":return c<=o;default:return c===o}}));return o&&!n||!o&&n}))},t.parse=l;var r=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,o=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,c=/^(?:(min|max)-)?(.+)/,i=/(em|rem|px|cm|mm|in|pt|pc)?$/,a=/(dpi|dpcm|dppx)?$/;function l(e){return e.split(",").map((function(e){var t=(e=e.trim()).match(r),n=t[1],i=t[2],a=t[3]||"",l={};return l.inverse=!!n&&"not"===n.toLowerCase(),l.type=i?i.toLowerCase():"all",a=a.match(/\([^\)]+\)/g)||[],l.expressions=a.map((function(e){var t=e.match(o),n=t[1].toLowerCase().match(c);return{modifier:n[1],feature:n[2],value:t[2]}})),l}))}function s(e){var t,n=Number(e);return n||(n=(t=e.match(/^(\d+)\s*\/\s*(\d+)$/))[1]/t[2]),n}function u(e){var t=parseFloat(e);switch(String(e).match(a)[1]){case"dpcm":return t/2.54;case"dppx":return 96*t;default:return t}}function d(e){var t=parseFloat(e);switch(String(e).match(i)[1]){case"em":case"rem":return 16*t;case"cm":return 96*t/2.54;case"mm":return 96*t/2.54/10;case"in":return 96*t;case"pt":return 72*t;case"pc":return 72*t/12;default:return t}}},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 b=n?c(d):d,f={},p=!0,m={node:b,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){m.isRoot||(m.parent.node[m.key]=e),m.node=e,t&&(p=!1)},delete:function(e){delete m.parent.node[m.key],e&&(p=!1)},remove:function(e){l(m.parent.node)?m.parent.node.splice(m.key,1):delete m.parent.node[m.key],e&&(p=!1)},keys:null,before:function(e){f.before=e},after:function(e){f.after=e},pre:function(e){f.pre=e},post:function(e){f.post=e},stop:function(){a=!1},block:function(){p=!1}};if(!a)return m;function v(){if("object"==typeof m.node&&null!==m.node){m.keys&&m.node_===m.node||(m.keys=i(m.node)),m.isLeaf=0==m.keys.length;for(var e=0;e<o.length;e++)if(o[e].node_===d){m.circular=o[e];break}}else m.isLeaf=!0,m.keys=null;m.notLeaf=!m.isLeaf,m.notRoot=!m.isRoot}v();var O=t.call(m,m.node);return void 0!==O&&m.update&&m.update(O),f.before&&f.before.call(m,m.node),p?("object"!=typeof m.node||null===m.node||m.circular||(o.push(m),v(),s(m.keys,(function(t,o){r.push(t),f.pre&&f.pre.call(m,m.node[t],t);var c=e(m.node[t]);n&&u.call(m.node,t)&&(m.node[t]=c.node),c.isLast=o==m.keys.length-1,c.isFirst=0==o,f.post&&f.post.call(m,c),r.pop()})),o.pop()),f.after&&f.after.call(m,m.node),m):m}(e).node}function c(e){if("object"==typeof e&&null!==e){var t;if(l(e))t=[];else if("[object Date]"===a(e))t=new Date(e.getTime?e.getTime():e);else if(function(e){return"[object RegExp]"===a(e)}(e))t=new RegExp(e);else if(function(e){return"[object Error]"===a(e)}(e))t={message:e.message};else if(function(e){return"[object Boolean]"===a(e)}(e))t=new Boolean(e);else if(function(e){return"[object Number]"===a(e)}(e))t=new Number(e);else if(function(e){return"[object String]"===a(e)}(e))t=new String(e);else if(Object.create&&Object.getPrototypeOf)t=Object.create(Object.getPrototypeOf(e));else if(e.constructor===Object)t={};else{var n=e.constructor&&e.constructor.prototype||e.__proto__||{},r=function(){};r.prototype=n,t=new r}return s(i(e),(function(n){t[n]=e[n]})),t}return e}r.prototype.get=function(e){for(var t=this.value,n=0;n<e.length;n++){var r=e[n];if(!t||!u.call(t,r)){t=void 0;break}t=t[r]}return t},r.prototype.has=function(e){for(var t=this.value,n=0;n<e.length;n++){var r=e[n];if(!t||!u.call(t,r))return!1;t=t[r]}return!0},r.prototype.set=function(e,t){for(var n=this.value,r=0;r<e.length-1;r++){var o=e[r];u.call(n,o)||(n[o]={}),n=n[o]}return n[e[r]]=t,t},r.prototype.map=function(e){return o(this.value,e,!0)},r.prototype.forEach=function(e){return this.value=o(this.value,e,!1),this.value},r.prototype.reduce=function(e,t){var n=1===arguments.length,r=n?this.value:t;return this.forEach((function(t){this.isRoot&&n||(r=e.call(this,r,t))})),r},r.prototype.paths=function(){var e=[];return this.forEach((function(t){e.push(this.path)})),e},r.prototype.nodes=function(){var e=[];return this.forEach((function(t){e.push(this.node)})),e},r.prototype.clone=function(){var e=[],t=[];return function n(r){for(var o=0;o<e.length;o++)if(e[o]===r)return t[o];if("object"==typeof r&&null!==r){var a=c(r);return e.push(r),t.push(a),s(i(r),(function(e){a[e]=n(r[e])})),e.pop(),t.pop(),a}return r}(this.value)};var i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};function a(e){return Object.prototype.toString.call(e)}var l=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},s=function(e,t){if(e.forEach)return e.forEach(t);for(var n=0;n<e.length;n++)t(e[n],n,e)};s(i(r.prototype),(function(e){n[e]=function(t){var n=[].slice.call(arguments,1),o=new r(t);return o[e].apply(o,n)}}));var u=Object.hasOwnProperty||function(e,t){return t in e}},,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M4 19.8h8.9v-1.5H4v1.5zm8.9-15.6H4v1.5h8.9V4.2zm-8.9 7v1.5h16v-1.5H4z"}));t.a=c},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M16.4 4.2H7.6v1.5h8.9V4.2zM4 11.2v1.5h16v-1.5H4zm3.6 8.6h8.9v-1.5H7.6v1.5z"}));t.a=c},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M11.1 19.8H20v-1.5h-8.9v1.5zm0-15.6v1.5H20V4.2h-8.9zM4 12.8h16v-1.5H4v1.5z"}));t.a=c},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"}));t.a=c},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;!function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}t.default=e}(n(28));var r=a(n(308)),o=a(n(311)),c=a(n(13)),i=a(n(210));n(212);function a(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var s=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return(0,r.default)(e,t)}))},u=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return(0,o.default)(e,t)}))},d=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).onEnter=function(e,n){var r=t.getClassNames(n?"appear":"enter").className;t.removeClasses(e,"exit"),s(e,r),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.getClassNames(n?"appear":"enter").activeClassName;t.reflowAndAddClass(e,r),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.getClassNames("appear").doneClassName,o=t.getClassNames("enter").doneClassName,c=n?r+" "+o:o;t.removeClasses(e,n?"appear":"enter"),s(e,c),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.getClassNames("exit").className;t.removeClasses(e,"appear"),t.removeClasses(e,"enter"),s(e,n),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.getClassNames("exit").activeClassName;t.reflowAndAddClass(e,n),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.getClassNames("exit").doneClassName;t.removeClasses(e,"exit"),s(e,n),t.props.onExited&&t.props.onExited(e)},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,o=r?(r&&n?n+"-":"")+e:n[e];return{className:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.removeClasses=function(e,t){var n=this.getClassNames(t),r=n.className,o=n.activeClassName,c=n.doneClassName;r&&u(e,r),o&&u(e,o),c&&u(e,c)},o.reflowAndAddClass=function(e,t){t&&(e&&e.scrollTop,s(e,t))},o.render=function(){var e=l({},this.props);return delete e.classNames,c.default.createElement(i.default,l({},e,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},r}(c.default.Component);d.defaultProps={classNames:""},d.propTypes={};var b=d;t.default=b,e.exports=t.default},function(e,t,n){"use strict";var r=n(309);t.__esModule=!0,t.default=function(e,t){e.classList?e.classList.add(t):(0,o.default)(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))};var o=r(n(310));e.exports=t.default},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")},e.exports=t.default},function(e,t,n){"use strict";function r(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e.exports=function(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=r(e.className,t):e.setAttribute("class",r(e.className&&e.className.baseVal||"",t))}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;i(n(28));var r=i(n(13)),o=n(109),c=i(n(213));function i(e){return e&&e.__esModule?e:{default:e}}var a=function(e){var t,n;function i(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=i.prototype;return a.handleLifecycle=function(e,t,n){var c,i=this.props.children,a=r.default.Children.toArray(i)[t];a.props[e]&&(c=a.props)[e].apply(c,n),this.props[e]&&this.props[e]((0,o.findDOMNode)(this))},a.render=function(){var e=this.props,t=e.children,n=e.in,o=function(e,t){if(null==e)return{};var n,r,o={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["children","in"]),i=r.default.Children.toArray(t),a=i[0],l=i[1];return delete o.onEnter,delete o.onEntering,delete o.onEntered,delete o.onExit,delete o.onExiting,delete o.onExited,r.default.createElement(c.default,o,n?r.default.cloneElement(a,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):r.default.cloneElement(l,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},i}(r.default.Component);a.propTypes={};var l=a;t.default=l,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.getChildMapping=o,t.mergeChildMappings=c,t.getInitialChildMapping=function(e,t){return o(e.children,(function(n){return(0,r.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:i(n,"appear",e),enter:i(n,"enter",e),exit:i(n,"exit",e)})}))},t.getNextChildMapping=function(e,t,n){var a=o(e.children),l=c(t,a);return Object.keys(l).forEach((function(o){var c=l[o];if((0,r.isValidElement)(c)){var s=o in t,u=o in a,d=t[o],b=(0,r.isValidElement)(d)&&!d.props.in;!u||s&&!b?u||!s||b?u&&s&&(0,r.isValidElement)(d)&&(l[o]=(0,r.cloneElement)(c,{onExited:n.bind(null,c),in:d.props.in,exit:i(c,"exit",e),enter:i(c,"enter",e)})):l[o]=(0,r.cloneElement)(c,{in:!1}):l[o]=(0,r.cloneElement)(c,{onExited:n.bind(null,c),in:!0,exit:i(c,"exit",e),enter:i(c,"enter",e)})}})),l};var r=n(13);function o(e,t){var n=Object.create(null);return e&&r.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,r.isValidElement)(e)?t(e):e}(e)})),n}function c(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),c=[];for(var i in e)i in t?c.length&&(o[i]=c,c=[]):c.push(i);var a={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var s=o[l][r];a[o[l][r]]=n(s)}a[l]=n(l)}for(r=0;r<c.length;r++)a[c[r]]=n(c[r]);return a}function i(e,t,n){return null!=n[t]?n[t]:e.props[t]}},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"}));t.a=c},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));t.a=c},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));t.a=c},function(e,t,n){"use strict";function r(){}function o(e,t,n,r,o){for(var c=0,i=t.length,a=0,l=0;c<i;c++){var s=t[c];if(s.removed){if(s.value=e.join(r.slice(l,l+s.count)),l+=s.count,c&&t[c-1].added){var u=t[c-1];t[c-1]=t[c],t[c]=u}}else{if(!s.added&&o){var d=n.slice(a,a+s.count);d=d.map((function(e,t){var n=r[l+t];return n.length>e.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 b=t[i-1];return i>1&&"string"==typeof b.value&&(b.added||b.removed)&&e.equals("",b.value)&&(t[i-2].value+=b.value,t.pop()),t}function c(e){return{newPos:e.newPos,components:e.components.slice(0)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,r.prototype={diff:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.callback;"function"==typeof n&&(r=n,n={}),this.options=n;var i=this;function a(e){return r?(setTimeout((function(){r(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,b=[{newPos:-1,components:[]}],f=this.extractCommon(b[0],t,e,0);if(b[0].newPos+1>=l&&f+1>=s)return a([{value:this.join(t),count:t.length}]);function p(){for(var n=-1*u;n<=u;n+=2){var r=void 0,d=b[n-1],f=b[n+1],p=(f?f.newPos:0)-n;d&&(b[n-1]=void 0);var m=d&&d.newPos+1<l,v=f&&0<=p&&p<s;if(m||v){if(!m||v&&d.newPos<f.newPos?(r=c(f),i.pushComponent(r.components,void 0,!0)):((r=d).newPos++,i.pushComponent(r.components,!0,void 0)),p=i.extractCommon(r,t,e,n),r.newPos+1>=l&&p+1>=s)return a(o(i,r.components,t,e,i.useLongestToken));b[n]=r}else b[n]=void 0}u++}if(r)!function e(){setTimeout((function(){if(u>d)return r();p()||e()}),0)}();else for(;u<=d;){var m=p();if(m)return m}},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,c=n.length,i=e.newPos,a=i-r,l=0;i+1<o&&a+1<c&&this.equals(t[i+1],n[a+1]);)i++,a++,l++;return l&&e.components.push({count:l}),e.newPos=i,a},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}}},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(o.Path,{d:"M2 2h5v11H2V2zm6 0h5v5H8V2zm6 0h4v16h-4V2zM8 8h5v5H8V8zm-6 6h11v4H2v-4z"}));t.a=c},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h13.4c.4 0 .8.4.8.8v13.4zM10 15l5-3-5-3v6z"}));t.a=c},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t),n.d(t,"__experimentalAlignmentHookSettingsProvider",(function(){return F})),n.d(t,"getColorClassName",(function(){return se})),n.d(t,"getColorObjectByAttributeValues",(function(){return ae})),n.d(t,"getColorObjectByColorValue",(function(){return le})),n.d(t,"createCustomColorsHOC",(function(){return nn})),n.d(t,"withColors",(function(){return rn})),n.d(t,"__experimentalUseColors",(function(){return jn})),n.d(t,"__experimentalGetGradientClass",(function(){return fe})),n.d(t,"getGradientValueBySlug",(function(){return pe})),n.d(t,"__experimentalGetGradientObjectByGradientValue",(function(){return me})),n.d(t,"getGradientSlugByValue",(function(){return ve})),n.d(t,"__experimentalUseGradient",(function(){return Oe})),n.d(t,"getFontSize",(function(){return Ot})),n.d(t,"getFontSizeClass",(function(){return ht})),n.d(t,"getFontSizeObjectByValue",(function(){return gt})),n.d(t,"FontSizePicker",(function(){return jt})),n.d(t,"withFontSizes",(function(){return Cn})),n.d(t,"AlignmentToolbar",(function(){return Nn})),n.d(t,"Autocomplete",(function(){return Xn})),n.d(t,"BlockAlignmentToolbar",(function(){return T})),n.d(t,"__experimentalBlockAlignmentMatrixToolbar",(function(){return Qn})),n.d(t,"BlockBreadcrumb",(function(){return Jn})),n.d(t,"BlockContextProvider",(function(){return rr})),n.d(t,"BlockControls",(function(){return O.a})),n.d(t,"BlockColorsStyleSelector",(function(){return ar})),n.d(t,"BlockEdit",(function(){return ur})),n.d(t,"useBlockEditContext",(function(){return z.b})),n.d(t,"BlockFormatControls",(function(){return mr})),n.d(t,"BlockIcon",(function(){return qn})),n.d(t,"BlockNavigationDropdown",(function(){return Qu})),n.d(t,"__experimentalBlockNavigationBlockFill",(function(){return Au})),n.d(t,"__experimentalBlockNavigationEditor",(function(){return bd})),n.d(t,"__experimentalBlockNavigationTree",(function(){return qu})),n.d(t,"__experimentalBlockVariationPicker",(function(){return pd})),n.d(t,"BlockVerticalAlignmentToolbar",(function(){return yd})),n.d(t,"ButtonBlockerAppender",(function(){return Ya})),n.d(t,"ColorPalette",(function(){return wd})),n.d(t,"ColorPaletteControl",(function(){return Sd})),n.d(t,"ContrastChecker",(function(){return Ve})),n.d(t,"__experimentalGradientPicker",(function(){return xd})),n.d(t,"__experimentalGradientPickerControl",(function(){return Pd})),n.d(t,"__experimentalGradientPickerPanel",(function(){return Td})),n.d(t,"__experimentalColorGradientControl",(function(){return Ie})),n.d(t,"__experimentalPanelColorGradientSettings",(function(){return Me})),n.d(t,"__experimentalImageSizeControl",(function(){return Dd})),n.d(t,"InnerBlocks",(function(){return qd})),n.d(t,"__experimentalUseInnerBlocksProps",(function(){return Wd})),n.d(t,"InspectorAdvancedControls",(function(){return q})),n.d(t,"InspectorControls",(function(){return We})),n.d(t,"__experimentalLinkControl",(function(){return Sb})),n.d(t,"__experimentalLinkControlSearchInput",(function(){return jb})),n.d(t,"__experimentalLinkControlSearchResults",(function(){return sb})),n.d(t,"__experimentalLinkControlSearchItem",(function(){return lb})),n.d(t,"LineHeightControl",(function(){return ut})),n.d(t,"MediaReplaceFlow",(function(){return Tb})),n.d(t,"MediaPlaceholder",(function(){return Lb})),n.d(t,"MediaUpload",(function(){return xb})),n.d(t,"MediaUploadCheck",(function(){return Pb})),n.d(t,"PanelColorSettings",(function(){return sn})),n.d(t,"PlainText",(function(){return Hb})),n.d(t,"__experimentalResponsiveBlockControl",(function(){return Ub})),n.d(t,"RichText",(function(){return dd})),n.d(t,"RichTextShortcut",(function(){return Gb})),n.d(t,"RichTextToolbarButton",(function(){return Kb})),n.d(t,"__unstableRichTextInputEvent",(function(){return qb})),n.d(t,"ToolSelector",(function(){return Yb})),n.d(t,"__experimentalUnitControl",(function(){return xt})),n.d(t,"URLInput",(function(){return ob})),n.d(t,"URLInputButton",(function(){return Jb})),n.d(t,"URLPopover",(function(){return Ab})),n.d(t,"__experimentalImageURLInputUI",(function(){return rf})),n.d(t,"withColorContext",(function(){return Cd})),n.d(t,"__experimentalBlockSettingsMenuFirstItem",(function(){return Gs})),n.d(t,"__experimentalInserterMenuExtension",(function(){return Sl})),n.d(t,"__experimentalPreviewOptions",(function(){return cf})),n.d(t,"__experimentalUseResizeCanvas",(function(){return ff})),n.d(t,"BlockInspector",(function(){return hf})),n.d(t,"BlockList",(function(){return dl})),n.d(t,"__experimentalBlock",(function(){return yu})),n.d(t,"useBlockProps",(function(){return ju})),n.d(t,"BlockMover",(function(){return hs})),n.d(t,"BlockPreview",(function(){return pl})),n.d(t,"BlockSelectionClearer",(function(){return jf})),n.d(t,"BlockSettingsMenu",(function(){return Js})),n.d(t,"BlockSettingsMenuControls",(function(){return Xs})),n.d(t,"BlockTitle",(function(){return Zn})),n.d(t,"BlockToolbar",(function(){return cu})),n.d(t,"CopyHandler",(function(){return Ms})),n.d(t,"DefaultBlockAppender",(function(){return $a})),n.d(t,"__unstableEditorStyles",(function(){return Kf})),n.d(t,"Inserter",(function(){return os})),n.d(t,"__experimentalLibrary",(function(){return Wf})),n.d(t,"__experimentalSearchForm",(function(){return bo})),n.d(t,"BlockEditorKeyboardShortcuts",(function(){return $f})),n.d(t,"MultiSelectScrollIntoView",(function(){return Yf})),n.d(t,"NavigableToolbar",(function(){return ms})),n.d(t,"ObserveTyping",(function(){return Qf})),n.d(t,"PreserveScrollInReorder",(function(){return Zf})),n.d(t,"SkipToSelectedBlock",(function(){return pf})),n.d(t,"Typewriter",(function(){return rp})),n.d(t,"Warning",(function(){return Hr})),n.d(t,"WritingFlow",(function(){return ss})),n.d(t,"BlockEditorProvider",(function(){return Wa})),n.d(t,"__experimentalUseSimulatedMediaQuery",(function(){return bf})),n.d(t,"__experimentalUseEditorFeature",(function(){return de})),n.d(t,"transformStyles",(function(){return Gf})),n.d(t,"validateThemeColors",(function(){return op})),n.d(t,"validateThemeGradients",(function(){return cp})),n.d(t,"storeConfig",(function(){return Ua})),n.d(t,"SETTINGS_DEFAULTS",(function(){return mo}));var r={};n.r(r),n.d(r,"resetBlocks",(function(){return tc})),n.d(r,"resetSelection",(function(){return nc})),n.d(r,"receiveBlocks",(function(){return rc})),n.d(r,"updateBlockAttributes",(function(){return oc})),n.d(r,"updateBlock",(function(){return cc})),n.d(r,"selectBlock",(function(){return ic})),n.d(r,"selectPreviousBlock",(function(){return ac})),n.d(r,"selectNextBlock",(function(){return lc})),n.d(r,"startMultiSelect",(function(){return sc})),n.d(r,"stopMultiSelect",(function(){return uc})),n.d(r,"multiSelect",(function(){return dc})),n.d(r,"clearSelectedBlock",(function(){return bc})),n.d(r,"toggleSelection",(function(){return fc})),n.d(r,"replaceBlocks",(function(){return mc})),n.d(r,"replaceBlock",(function(){return vc})),n.d(r,"moveBlocksDown",(function(){return gc})),n.d(r,"moveBlocksUp",(function(){return hc})),n.d(r,"moveBlocksToPosition",(function(){return jc})),n.d(r,"moveBlockToPosition",(function(){return kc})),n.d(r,"insertBlock",(function(){return yc})),n.d(r,"insertBlocks",(function(){return _c})),n.d(r,"showInsertionPoint",(function(){return Ec})),n.d(r,"hideInsertionPoint",(function(){return Cc})),n.d(r,"setTemplateValidity",(function(){return wc})),n.d(r,"synchronizeTemplate",(function(){return Sc})),n.d(r,"mergeBlocks",(function(){return Ic})),n.d(r,"removeBlocks",(function(){return Bc})),n.d(r,"removeBlock",(function(){return xc})),n.d(r,"replaceInnerBlocks",(function(){return Pc})),n.d(r,"toggleBlockMode",(function(){return Tc})),n.d(r,"startTyping",(function(){return Nc})),n.d(r,"stopTyping",(function(){return Dc})),n.d(r,"startDraggingBlocks",(function(){return Rc})),n.d(r,"stopDraggingBlocks",(function(){return Ac})),n.d(r,"enterFormattedText",(function(){return Mc})),n.d(r,"exitFormattedText",(function(){return Lc})),n.d(r,"selectionChange",(function(){return Fc})),n.d(r,"insertDefaultBlock",(function(){return Vc})),n.d(r,"updateBlockListSettings",(function(){return Hc})),n.d(r,"updateSettings",(function(){return zc})),n.d(r,"__unstableSaveReusableBlock",(function(){return Uc})),n.d(r,"__unstableMarkLastChangeAsPersistent",(function(){return Gc})),n.d(r,"__unstableMarkNextChangeAsNotPersistent",(function(){return Kc})),n.d(r,"__unstableMarkAutomaticChange",(function(){return Wc})),n.d(r,"setNavigationMode",(function(){return qc})),n.d(r,"setBlockMovingClientId",(function(){return $c})),n.d(r,"duplicateBlocks",(function(){return Yc})),n.d(r,"insertBeforeBlock",(function(){return Xc})),n.d(r,"insertAfterBlock",(function(){return Qc})),n.d(r,"toggleBlockHighlight",(function(){return Zc})),n.d(r,"flashBlock",(function(){return Jc})),n.d(r,"setHasControlledInnerBlocks",(function(){return ei}));var o={};n.r(o),n.d(o,"getBlockName",(function(){return li})),n.d(o,"isBlockValid",(function(){return si})),n.d(o,"getBlockAttributes",(function(){return ui})),n.d(o,"getBlock",(function(){return di})),n.d(o,"__unstableGetBlockWithoutInnerBlocks",(function(){return bi})),n.d(o,"getBlocks",(function(){return fi})),n.d(o,"__unstableGetBlockWithBlockTree",(function(){return pi})),n.d(o,"__unstableGetBlockTree",(function(){return mi})),n.d(o,"getClientIdsOfDescendants",(function(){return vi})),n.d(o,"getClientIdsWithDescendants",(function(){return Oi})),n.d(o,"getGlobalBlockCount",(function(){return gi})),n.d(o,"getBlocksByClientId",(function(){return hi})),n.d(o,"getBlockCount",(function(){return ji})),n.d(o,"getSelectionStart",(function(){return ki})),n.d(o,"getSelectionEnd",(function(){return yi})),n.d(o,"getBlockSelectionStart",(function(){return _i})),n.d(o,"getBlockSelectionEnd",(function(){return Ei})),n.d(o,"getSelectedBlockCount",(function(){return Ci})),n.d(o,"hasSelectedBlock",(function(){return wi})),n.d(o,"getSelectedBlockClientId",(function(){return Si})),n.d(o,"getSelectedBlock",(function(){return Ii})),n.d(o,"getBlockRootClientId",(function(){return Bi})),n.d(o,"getBlockParents",(function(){return xi})),n.d(o,"getBlockParentsByBlockName",(function(){return Pi})),n.d(o,"getBlockHierarchyRootClientId",(function(){return Ti})),n.d(o,"getLowestCommonAncestorWithSelectedBlock",(function(){return Ni})),n.d(o,"getAdjacentBlockClientId",(function(){return Di})),n.d(o,"getPreviousBlockClientId",(function(){return Ri})),n.d(o,"getNextBlockClientId",(function(){return Ai})),n.d(o,"getSelectedBlocksInitialCaretPosition",(function(){return Mi})),n.d(o,"getSelectedBlockClientIds",(function(){return Li})),n.d(o,"getMultiSelectedBlockClientIds",(function(){return Fi})),n.d(o,"getMultiSelectedBlocks",(function(){return Vi})),n.d(o,"getFirstMultiSelectedBlockClientId",(function(){return Hi})),n.d(o,"getLastMultiSelectedBlockClientId",(function(){return zi})),n.d(o,"isFirstMultiSelectedBlock",(function(){return Ui})),n.d(o,"isBlockMultiSelected",(function(){return Gi})),n.d(o,"isAncestorMultiSelected",(function(){return Ki})),n.d(o,"getMultiSelectedBlocksStartClientId",(function(){return Wi})),n.d(o,"getMultiSelectedBlocksEndClientId",(function(){return qi})),n.d(o,"getBlockOrder",(function(){return $i})),n.d(o,"getBlockIndex",(function(){return Yi})),n.d(o,"isBlockSelected",(function(){return Xi})),n.d(o,"hasSelectedInnerBlock",(function(){return Qi})),n.d(o,"isBlockWithinSelection",(function(){return Zi})),n.d(o,"hasMultiSelection",(function(){return Ji})),n.d(o,"isMultiSelecting",(function(){return ea})),n.d(o,"isSelectionEnabled",(function(){return ta})),n.d(o,"getBlockMode",(function(){return na})),n.d(o,"isTyping",(function(){return ra})),n.d(o,"isDraggingBlocks",(function(){return oa})),n.d(o,"getDraggedBlockClientIds",(function(){return ca})),n.d(o,"isBlockBeingDragged",(function(){return ia})),n.d(o,"isAncestorBeingDragged",(function(){return aa})),n.d(o,"isCaretWithinFormattedText",(function(){return la})),n.d(o,"getBlockInsertionPoint",(function(){return sa})),n.d(o,"isBlockInsertionPointVisible",(function(){return ua})),n.d(o,"isValidTemplate",(function(){return da})),n.d(o,"getTemplate",(function(){return ba})),n.d(o,"getTemplateLock",(function(){return fa})),n.d(o,"canInsertBlockType",(function(){return ma})),n.d(o,"canInsertBlocks",(function(){return va})),n.d(o,"getInserterItems",(function(){return ja})),n.d(o,"hasInserterItems",(function(){return ka})),n.d(o,"__experimentalGetAllowedBlocks",(function(){return ya})),n.d(o,"getBlockListSettings",(function(){return _a})),n.d(o,"getSettings",(function(){return Ea})),n.d(o,"isLastBlockChangePersistent",(function(){return Ca})),n.d(o,"__experimentalGetBlockListSettingsForBlocks",(function(){return wa})),n.d(o,"__experimentalGetParsedReusableBlock",(function(){return Sa})),n.d(o,"__unstableIsLastBlockChangeIgnored",(function(){return Ia})),n.d(o,"__experimentalGetLastBlockAttributeChanges",(function(){return Ba})),n.d(o,"isNavigationMode",(function(){return Pa})),n.d(o,"hasBlockMovingClientId",(function(){return Ta})),n.d(o,"didAutomaticChange",(function(){return Na})),n.d(o,"isBlockHighlighted",(function(){return Da})),n.d(o,"areInnerBlocksControlled",(function(){return Ra})),n.d(o,"__experimentalGetActiveBlockIdByBlockNames",(function(){return Aa}));var c=n(11),i=n(25),a=(n(101),n(53)),l=(n(92),n(8)),s=n(5),u=n(0),d=n(9),b=n.n(d),f=n(2),p=n(10),m=n(33),v=n(4),O=n(133),g=n(1),h=n(3),j=n(7),k=Object(u.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(j.Path,{d:"M4 9v6h14V9H4zm8-4.8H4v1.5h8V4.2zM4 19.8h8v-1.5H4v1.5z"})),y=Object(u.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(j.Path,{d:"M5 15h14V9H5v6zm0 4.8h14v-1.5H5v1.5zM5 4.2v1.5h14V4.2H5z"})),_=Object(u.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(j.Path,{d:"M6 15h14V9H6v6zm6-10.8v1.5h8V4.2h-8zm0 15.6h8v-1.5h-8v1.5z"})),E=Object(u.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(j.Path,{d:"M5 9v6h14V9H5zm11-4.8H8v1.5h8V4.2zM8 19.8h8v-1.5H8v1.5z"})),C=Object(u.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(j.Path,{d:"M5 4v11h14V4H5zm3 15.8h8v-1.5H8v1.5z"}));function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var I={left:{icon:k,title:Object(g.__)("Align left")},center:{icon:y,title:Object(g.__)("Align center")},right:{icon:_,title:Object(g.__)("Align right")},wide:{icon:E,title:Object(g.__)("Wide width")},full:{icon:C,title:Object(g.__)("Full width")}},B=["left","center","right","wide","full"],x=["wide","full"],P={isAlternate:!0};var T=Object(p.compose)(Object(v.withSelect)((function(e){return{wideControlsEnabled:(0,e("core/block-editor").getSettings)().alignWide}})))((function(e){var t=e.value,n=e.onChange,r=e.controls,o=void 0===r?B:r,c=e.isCollapsed,i=void 0===c||c,a=e.wideControlsEnabled,l=void 0!==a&&a?o:o.filter((function(e){return-1===x.indexOf(e)})),s=I[t],d=I.center;return Object(u.createElement)(h.ToolbarGroup,{popoverProps:P,isCollapsed:i,icon:s?s.icon:d.icon,label:Object(g.__)("Change alignment"),controls:l.map((function(e){return S(S({},I[e]),{},{isActive:t===e,role:i?"menuitemradio":void 0,onClick:(r=e,function(){return n(t===r?void 0:r)})});var r}))})}));function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?N(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var R=["left","center","right","wide","full"],A=["wide","full"];function M(e){var t,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t=Array.isArray(e)?e:!0===e?R:[],!r||!0===e&&!n?f.without.apply(void 0,[t].concat(A)):t}var L=Object(u.createContext)({}),F=L.Provider,V=Object(p.createHigherOrderComponent)((function(e){return function(t){var n=Object(u.useContext)(L).isEmbedButton,r=t.name,o=n?[]:M(Object(c.getBlockSupport)(r,"align"),Object(c.hasBlockSupport)(r,"alignWide",!0));return[o.length>0&&t.isSelected&&Object(u.createElement)(O.a,{key:"align-controls"},Object(u.createElement)(T,{value:t.attributes.align,onChange:function(e){var n,r;e||(null===(n=Object(c.getBlockType)(t.name).attributes)||void 0===n||null===(r=n.align)||void 0===r?void 0:r.default)&&(e="");t.setAttributes({align:e})},controls:o})),Object(u.createElement)(e,Object(l.a)({key:"edit"},t))]}}),"withToolbarControls"),H=Object(p.createHigherOrderComponent)((function(e){return function(t){var n=t.name,r=t.attributes.align,o=Object(v.useSelect)((function(e){return!!e("core/block-editor").getSettings().alignWide}),[]);if(void 0===r)return Object(u.createElement)(e,t);var i=M(Object(c.getBlockSupport)(n,"align"),Object(c.hasBlockSupport)(n,"alignWide",!0),o),a=t.wrapperProps;return i.includes(r)&&(a=D(D({},a),{},{"data-align":r})),Object(u.createElement)(e,Object(l.a)({},t,{wrapperProps:a}))}}));Object(m.addFilter)("blocks.registerBlockType","core/align/addAttribute",(function(e){return Object(f.has)(e.attributes,["align","type"])||Object(c.hasBlockSupport)(e,"align")&&(e.attributes=D(D({},e.attributes),{},{align:{type:"string",enum:[].concat(R,[""])}})),e})),Object(m.addFilter)("editor.BlockListBlock","core/editor/align/with-data-align",H),Object(m.addFilter)("editor.BlockEdit","core/editor/align/with-toolbar-controls",V),Object(m.addFilter)("blocks.getSaveContent.extraProps","core/align/addAssignedAlign",(function(e,t,n){var r=n.align;return M(Object(c.getBlockSupport)(t,"align"),Object(c.hasBlockSupport)(t,"alignWide",!0)).includes(r)&&(e.className=b()("align".concat(r),e.className)),e}));var z=n(80),U=Object(h.createSlotFill)("InspectorAdvancedControls"),G=U.Fill,K=U.Slot;function W(e){var t=e.children;return Object(z.b)().isSelected?Object(u.createElement)(G,null,t):null}W.slotName="InspectorAdvancedControls",W.Slot=K;var q=W;function $(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var X=/[\s#]/g;var Q=Object(p.createHigherOrderComponent)((function(e){return function(t){return Object(c.hasBlockSupport)(t.name,"anchor")&&t.isSelected?Object(u.createElement)(u.Fragment,null,Object(u.createElement)(e,t),Object(u.createElement)(q,null,Object(u.createElement)(h.TextControl,{className:"html-anchor-control",label:Object(g.__)("HTML anchor"),help:Object(u.createElement)(u.Fragment,null,Object(g.__)("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)(h.ExternalLink,{href:"https://wordpress.org/support/article/page-jumps/"},Object(g.__)("Learn more about anchors"))),value:t.attributes.anchor||"",onChange:function(e){e=e.replace(X,"-"),t.setAttributes({anchor:e})},autoComplete:"off"}))):Object(u.createElement)(e,t)}}),"withInspectorControl");function Z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function J(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Object(m.addFilter)("blocks.registerBlockType","core/anchor/attribute",(function(e){return Object(f.has)(e.attributes,["anchor","type"])||Object(c.hasBlockSupport)(e,"anchor")&&(e.attributes=Y(Y({},e.attributes),{},{anchor:{type:"string",source:"attribute",attribute:"id",selector:"*"}})),e})),Object(m.addFilter)("editor.BlockEdit","core/editor/anchor/with-inspector-control",Q),Object(m.addFilter)("blocks.getSaveContent.extraProps","core/anchor/save-props",(function(e,t,n){return Object(c.hasBlockSupport)(t,"anchor")&&(e.id=""===n.anchor?null:n.anchor),e}));var ee=Object(p.createHigherOrderComponent)((function(e){return function(t){return Object(c.hasBlockSupport)(t.name,"customClassName",!0)&&t.isSelected?Object(u.createElement)(u.Fragment,null,Object(u.createElement)(e,t),Object(u.createElement)(q,null,Object(u.createElement)(h.TextControl,{autoComplete:"off",label:Object(g.__)("Additional CSS class(es)"),value:t.attributes.className||"",onChange:function(e){t.setAttributes({className:""!==e?e:void 0})},help:Object(g.__)("Separate multiple classes with spaces.")}))):Object(u.createElement)(e,t)}}),"withInspectorControl");function te(e){e="<div data-custom-class-name>".concat(e,"</div>");var t=Object(c.parseWithAttributeSchema)(e,{type:"string",source:"attribute",selector:"[data-custom-class-name] > *",attribute:"class"});return t?t.trim().split(/\s+/):[]}Object(m.addFilter)("blocks.registerBlockType","core/custom-class-name/attribute",(function(e){return Object(c.hasBlockSupport)(e,"customClassName",!0)&&(e.attributes=J(J({},e.attributes),{},{className:{type:"string"}})),e})),Object(m.addFilter)("editor.BlockEdit","core/editor/custom-class-name/with-inspector-control",ee),Object(m.addFilter)("blocks.getSaveContent.extraProps","core/custom-class-name/save-props",(function(e,t,n){return Object(c.hasBlockSupport)(t,"customClassName",!0)&&n.className&&(e.className=b()(e.className,n.className)),e})),Object(m.addFilter)("blocks.getBlockAttributes","core/custom-class-name/addParsedDifference",(function(e,t,n){if(Object(c.hasBlockSupport)(t,"customClassName",!0)){var r=Object(f.omit)(e,["className"]),o=Object(c.getSaveContent)(t,r),i=te(o),a=te(n),l=Object(f.difference)(a,i);l.length?e.className=l.join(" "):o&&delete e.className}return e}));var ne=n(17);Object(m.addFilter)("blocks.getSaveContent.extraProps","core/generated-class-name/save-props",(function(e,t){return Object(c.hasBlockSupport)(t,"className",!0)&&("string"==typeof e.className?e.className=Object(f.uniq)([Object(c.getBlockDefaultClassName)(t.name)].concat(Object(ne.a)(e.className.split(" ")))).join(" ").trim():e.className=Object(c.getBlockDefaultClassName)(t.name)),e}));var re=n(12),oe=n(149),ce=n(66),ie=n.n(ce),ae=function(e,t,n){if(t){var r=Object(f.find)(e,{slug:t});if(r)return r}return{color:n}},le=function(e,t){return Object(f.find)(e,{color:t})};function se(e,t){if(e&&t)return"has-".concat(Object(f.kebabCase)(t),"-").concat(e)}var ue={"color.palette":function(e){return void 0===e.colors?void 0:e.colors},"color.gradients":function(e){return void 0===e.gradients?void 0:e.gradients},"color.custom":function(e){return void 0===e.disableCustomColors?void 0:!e.disableCustomColors},"color.customGradient":function(e){return void 0===e.disableCustomGradients?void 0:!e.disableCustomGradients},"typography.fontSizes":function(e){return void 0===e.fontSizes?void 0:e.fontSizes},"typography.customFontSize":function(e){return void 0===e.disableCustomFontSizes?void 0:!e.disableCustomFontSizes},"typography.customLineHeight":function(e){return e.enableCustomLineHeight},"spacing.units":function(e){if(void 0!==e.enableCustomUnits)return!0===e.enableCustomUnits?["px","em","rem","vh","vw"]:e.enableCustomUnits}};function de(e){var t=Object(z.b)().name;return Object(v.useSelect)((function(n){var r,o=n("core/block-editor").getSettings(),c="__experimentalFeatures.global.".concat(e),i="__experimentalFeatures.".concat(t,".").concat(e),a=null!==(r=Object(f.get)(o,i))&&void 0!==r?r:Object(f.get)(o,c);if(void 0!==a)return a;var l=ue[e]?ue[e](o):void 0;return void 0!==l?l:"typography.dropCap"===e||void 0}),[t,e])}var be=[];function fe(e){if(e)return"has-".concat(e,"-gradient-background")}function pe(e,t){var n=Object(f.find)(e,["slug",t]);return n&&n.gradient}function me(e,t){return Object(f.find)(e,["gradient",t])}function ve(e,t){var n=me(e,t);return n&&n.slug}function Oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.gradientAttribute,n=void 0===t?"gradient":t,r=e.customGradientAttribute,o=void 0===r?"customGradient":r,c=Object(z.b)(),i=c.clientId,a=de("color.gradients")||be,l=Object(v.useSelect)((function(e){var t=(0,e("core/block-editor").getBlockAttributes)(i);return{customGradient:t[o],gradient:t[n]}}),[i,n,o]),d=l.gradient,b=l.customGradient,f=Object(v.useDispatch)("core/block-editor"),p=f.updateBlockAttributes,m=Object(u.useCallback)((function(e){var t,r,c=ve(a,e);c?p(i,(r={},Object(s.a)(r,n,c),Object(s.a)(r,o,void 0),r)):p(i,(t={},Object(s.a)(t,n,void 0),Object(s.a)(t,o,e),t))}),[a,i,p]),O=fe(d);return{gradientClass:O,gradientValue:d?pe(a,d):b,setGradient:m}}var ge=function e(t){if(!Object(f.isObject)(t))return t;var n=Object(f.pickBy)(Object(f.mapValues)(t,e),f.identity);return Object(f.isEqual)(n,{})?void 0:n},he=n(14);function je(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ke(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?je(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):je(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ye=Object(g.__)("(Color: %s)"),_e=Object(g.__)("(Gradient: %s)"),Ee=["colors","disableCustomColors","gradients","disableCustomGradients"];function Ce(e){var t,n,r=e.colors,o=e.gradients,c=e.label,i=e.currentTab,a=e.colorValue,l=e.gradientValue;if("color"===i){if(a){var s=le(r,t=a),d=s&&s.name;n=Object(g.sprintf)(ye,d||t)}}else if("gradient"===i&&l){var b=me(o,t=l),f=b&&b.name;n=Object(g.sprintf)(_e,f||t)}return Object(u.createElement)(u.Fragment,null,c,!!t&&Object(u.createElement)(h.ColorIndicator,{colorValue:t,"aria-label":n}))}function we(e){var t=e.colors,n=e.gradients,r=e.disableCustomColors,o=e.disableCustomGradients,c=e.className,i=e.label,a=e.onColorChange,s=e.onGradientChange,d=e.colorValue,p=e.gradientValue,m=a&&(!Object(f.isEmpty)(t)||!r),v=s&&(!Object(f.isEmpty)(n)||!o),O=Object(u.useState)(p?"gradient":!!m&&"color"),j=Object(re.a)(O,2),k=j[0],y=j[1];return m||v?Object(u.createElement)(h.BaseControl,{className:b()("block-editor-color-gradient-control",c)},Object(u.createElement)("fieldset",null,Object(u.createElement)("legend",null,Object(u.createElement)("div",{className:"block-editor-color-gradient-control__color-indicator"},Object(u.createElement)(h.BaseControl.VisualLabel,null,Object(u.createElement)(Ce,{currentTab:k,label:i,colorValue:d,gradientValue:p})))),m&&v&&Object(u.createElement)(h.ButtonGroup,{className:"block-editor-color-gradient-control__button-tabs"},Object(u.createElement)(h.Button,{isSmall:!0,isPressed:"color"===k,onClick:function(){return y("color")}},Object(g.__)("Solid")),Object(u.createElement)(h.Button,{isSmall:!0,isPressed:"gradient"===k,onClick:function(){return y("gradient")}},Object(g.__)("Gradient"))),("color"===k||!v)&&Object(u.createElement)(h.ColorPalette,Object(l.a)({value:d,onChange:v?function(e){a(e),s()}:a},{colors:t,disableCustomColors:r})),("gradient"===k||!m)&&Object(u.createElement)(h.__experimentalGradientPicker,Object(l.a)({value:p,onChange:m?function(e){s(e),a()}:s},{gradients:n,disableCustomGradients:o})))):null}function Se(e){var t={};return t.colors=de("color.palette"),t.gradients=de("color.gradients"),t.disableCustomColors=!de("color.custom"),t.disableCustomGradients=!de("color.customGradient"),Object(u.createElement)(we,ke(ke({},t),e))}var Ie=function(e){return Object(f.every)(Ee,(function(t){return e.hasOwnProperty(t)}))?Object(u.createElement)(we,e):Object(u.createElement)(Se,e)};function Be(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Be(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Be(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Pe=Object(g.__)("(%s: color %s)"),Te=Object(g.__)("(%s: gradient %s)"),Ne=["colors","disableCustomColors","gradients","disableCustomGradients"],De=function(e){var t=e.colors,n=e.gradients;return e.settings.map((function(e,r){var o,c=e.colorValue,i=e.gradientValue,a=e.label,l=e.colors,s=e.gradients;if(!c&&!i)return null;if(c){var d=le(l||t,c);o=Object(g.sprintf)(Pe,a.toLowerCase(),d&&d.name||c)}else{var b=me(s||n,c);o=Object(g.sprintf)(Te,a.toLowerCase(),b&&b.name||i)}return Object(u.createElement)(h.ColorIndicator,{key:r,colorValue:c||i,"aria-label":o})}))},Re=function(e){var t=e.className,n=e.colors,r=e.gradients,o=e.disableCustomColors,c=e.disableCustomGradients,i=e.children,a=e.settings,s=e.title,d=Object(he.a)(e,["className","colors","gradients","disableCustomColors","disableCustomGradients","children","settings","title"]);if(Object(f.isEmpty)(n)&&Object(f.isEmpty)(r)&&o&&c&&Object(f.every)(a,(function(e){return Object(f.isEmpty)(e.colors)&&Object(f.isEmpty)(e.gradients)&&(void 0===e.disableCustomColors||e.disableCustomColors)&&(void 0===e.disableCustomGradients||e.disableCustomGradients)})))return null;var p=Object(u.createElement)("span",{className:"block-editor-panel-color-gradient-settings__panel-title"},s,Object(u.createElement)(De,{colors:n,gradients:r,settings:a}));return Object(u.createElement)(h.PanelBody,Object(l.a)({className:b()("block-editor-panel-color-gradient-settings",t),title:p},d),a.map((function(e,t){return Object(u.createElement)(Ie,Object(l.a)({key:t},xe({colors:n,gradients:r,disableCustomColors:o,disableCustomGradients:c},e)))})),i)},Ae=function(e){var t={};return t.colors=de("color.palette"),t.gradients=de("color.gradients"),t.disableCustomColors=!de("color.custom"),t.disableCustomGradients=!de("color.customGradient"),Object(u.createElement)(Re,xe(xe({},t),e))},Me=function(e){return Object(f.every)(Ne,(function(t){return e.hasOwnProperty(t)}))?Object(u.createElement)(Re,e):Object(u.createElement)(Ae,e)},Le=n(46);function Fe(e){var t=e.tinyBackgroundColor,n=e.tinyTextColor,r=e.backgroundColor,o=e.textColor,c=t.getBrightness()<n.getBrightness()?Object(g.__)("This color combination may be hard for people to read. Try using a darker background color and/or a brighter text color."):Object(g.__)("This color combination may be hard for people to read. Try using a brighter background color and/or a darker text color.");return Object(u.useEffect)((function(){Object(Le.speak)(Object(g.__)("This color combination may be hard for people to read."))}),[r,o]),Object(u.createElement)("div",{className:"block-editor-contrast-checker"},Object(u.createElement)(h.Notice,{spokenMessage:null,status:"warning",isDismissible:!1},c))}var Ve=function(e){var t=e.backgroundColor,n=e.fallbackBackgroundColor,r=e.fallbackTextColor,o=e.fontSize,c=e.isLargeText,i=e.textColor;if(!t&&!n||!i&&!r)return null;var a=ie()(t||n),l=ie()(i||r);return 1!==a.getAlpha()||1!==l.getAlpha()||ie.a.isReadable(a,l,{level:"AA",size:c||!1!==c&&o>=24?"large":"small"})?null:Object(u.createElement)(Fe,{backgroundColor:t,textColor:i,tinyBackgroundColor:a,tinyTextColor:l})},He=n(170),ze=Object(h.createSlotFill)("InspectorControls"),Ue=ze.Fill,Ge=ze.Slot;function Ke(e){var t=e.children;return Object(He.a)()?Object(u.createElement)(Ue,null,t):null}Ke.Slot=Ge;var We=Ke;function qe(e){return document.getElementById("block-"+e)}function $e(e,t){return t.closest(".block-editor-block-list__block")===e}function Ye(e){for(;e&&e.nodeType!==e.ELEMENT_NODE;)e=e.parentNode;if(e){var t=e.closest(".block-editor-block-list__block");if(t)return t.id.slice("block-".length)}}function Xe(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function Qe(e){var t=e.settings,n=e.clientId,r=e.enableContrastChecking,o=void 0===r||r,c=Object(u.useState)(),i=Object(re.a)(c,2),a=i[0],l=i[1],s=Object(u.useState)(),d=Object(re.a)(s,2),b=d[0],f=d[1];return Object(u.useEffect)((function(){if(o){var e=qe(n);if(e){f(Xe(e).color);for(var t=e,r=Xe(t).backgroundColor;"rgba(0, 0, 0, 0)"===r&&t.parentNode&&t.parentNode.nodeType===t.parentNode.ELEMENT_NODE;)r=Xe(t=t.parentNode).backgroundColor;l(r)}}})),Object(u.createElement)(We,null,Object(u.createElement)(Me,{title:Object(g.__)("Color settings"),initialOpen:!1,settings:t},o&&Object(u.createElement)(Ve,{backgroundColor:a,textColor:b})))}function Ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Je(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ze(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ze(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var et=[],tt=function(e){if("web"!==u.Platform.OS)return!1;var t=Object(c.getBlockSupport)(e,"color");return t&&(!0===t.link||!0===t.gradient||!1!==t.background||!1!==t.text)},nt=function(e){if("web"!==u.Platform.OS)return!1;var t=Object(c.getBlockSupport)(e,"color");return Object(f.isObject)(t)&&!!t.link},rt=function(e){if("web"!==u.Platform.OS)return!1;var t=Object(c.getBlockSupport)(e,"color");return Object(f.isObject)(t)&&!!t.gradients},ot=function(e){if("web"!==u.Platform.OS)return!1;var t=Object(c.getBlockSupport)(e,"color");return t&&!1!==t.text};function ct(e,t,n){var r,o,c,i,a,l;if(!tt(t))return e;var u=rt(t),d=n.backgroundColor,f=n.textColor,p=n.gradient,m=n.style,v=se("background-color",d),O=fe(p),g=se("color",f),h=b()(e.className,g,O,(l={},Object(s.a)(l,v,!(u&&(null==m||null===(r=m.color)||void 0===r?void 0:r.gradient)||!v)),Object(s.a)(l,"has-text-color",f||(null==m||null===(o=m.color)||void 0===o?void 0:o.text)),Object(s.a)(l,"has-background",d||(null==m||null===(c=m.color)||void 0===c?void 0:c.background)||u&&(p||(null==m||null===(i=m.color)||void 0===i?void 0:i.gradient))),Object(s.a)(l,"has-link-color",null==m||null===(a=m.color)||void 0===a?void 0:a.link),l));return e.className=h||void 0,e}var it=function(e,t){var n=/var:preset\|color\|(.+)/.exec(t);return n&&n[1]?ae(e,n[1]).color:t};function at(e){var t,n,r,o,i,a,l=e.name,d=e.attributes,b=de("color.link"),f=de("color.palette")||et,p=de("color.gradients")||et,m=Object(u.useRef)(d);if(Object(u.useEffect)((function(){m.current=d}),[d]),!tt(l))return null;var v,O=function(e){if("web"!==u.Platform.OS)return!1;var t=Object(c.getBlockSupport)(e,"color");return t&&!1!==t.background}(l),h=rt(l),j=d.style,k=d.textColor,y=d.backgroundColor,_=d.gradient;if(h&&_)v=pe(p,_);else if(h){var E;v=null==j||null===(E=j.color)||void 0===E?void 0:E.gradient}var C=function(t){return function(n){var r,o,c=le(f,n),i=t+"Color",a=Je(Je({},m.current.style),{},{color:Je(Je({},null===(r=m.current)||void 0===r||null===(o=r.style)||void 0===o?void 0:o.color),{},Object(s.a)({},t,(null==c?void 0:c.slug)?void 0:n))}),l=(null==c?void 0:c.slug)?c.slug:void 0,u=Object(s.a)({style:ge(a)},i,l);e.setAttributes(u),m.current=Je(Je({},m.current),u)}};return Object(u.createElement)(Qe,{enableContrastChecking:"web"===u.Platform.OS&&!_&&!(null==j||null===(t=j.color)||void 0===t?void 0:t.gradient),clientId:e.clientId,settings:[].concat(Object(ne.a)(ot(l)?[{label:Object(g.__)("Text Color"),onColorChange:C("text"),colorValue:ae(f,k,null==j||null===(n=j.color)||void 0===n?void 0:n.text).color}]:[]),Object(ne.a)(O||h?[{label:Object(g.__)("Background Color"),onColorChange:O?C("background"):void 0,colorValue:ae(f,y,null==j||null===(r=j.color)||void 0===r?void 0:r.background).color,gradientValue:v,onGradientChange:h?function(t){var n,r=ve(p,t);if(r){var o,c,i,a=Je(Je({},null===(o=m.current)||void 0===o?void 0:o.style),{},{color:Je(Je({},null===(c=m.current)||void 0===c||null===(i=c.style)||void 0===i?void 0:i.color),{},{gradient:void 0})});n={style:ge(a),gradient:r}}else{var l,s,u,d=Je(Je({},null===(l=m.current)||void 0===l?void 0:l.style),{},{color:Je(Je({},null===(s=m.current)||void 0===s||null===(u=s.style)||void 0===u?void 0:u.color),{},{gradient:t})});n={style:ge(d),gradient:void 0}}e.setAttributes(n),m.current=Je(Je({},m.current),n)}:void 0}]:[]),Object(ne.a)(b&&nt(l)?[{label:Object(g.__)("Link Color"),onColorChange:function(t){var n,r=le(f,t);e.setAttributes({style:Je(Je({},e.attributes.style),{},{color:Je(Je({},null===(n=e.attributes.style)||void 0===n?void 0:n.color),{},{link:(null==r?void 0:r.slug)?"var:preset|color|".concat(r.slug):t})})})},colorValue:it(f,null==j||null===(o=j.color)||void 0===o?void 0:o.link),clearable:!!(null===(i=e.attributes.style)||void 0===i||null===(a=i.color)||void 0===a?void 0:a.link)}]:[]))})}var lt=Object(p.createHigherOrderComponent)((function(e){return function(t){var n,r,o,c=t.name,i=t.attributes,a=i.backgroundColor,s=i.textColor,d=de("color.palette")||et;if(!tt(c))return Object(u.createElement)(e,t);var b={color:s?null===(n=ae(d,s))||void 0===n?void 0:n.color:void 0,backgroundColor:a?null===(r=ae(d,a))||void 0===r?void 0:r.color:void 0},f=t.wrapperProps;return f=Je(Je({},t.wrapperProps),{},{style:Je(Je({},b),null===(o=t.wrapperProps)||void 0===o?void 0:o.style)}),Object(u.createElement)(e,Object(l.a)({},t,{wrapperProps:f}))}}));Object(m.addFilter)("blocks.registerBlockType","core/color/addAttribute",(function(e){return tt(e)?(e.attributes.backgroundColor||Object.assign(e.attributes,{backgroundColor:{type:"string"}}),e.attributes.textColor||Object.assign(e.attributes,{textColor:{type:"string"}}),rt(e)&&!e.attributes.gradient&&Object.assign(e.attributes,{gradient:{type:"string"}}),e):e})),Object(m.addFilter)("blocks.getSaveContent.extraProps","core/color/addSaveProps",ct),Object(m.addFilter)("blocks.registerBlockType","core/color/addEditProps",(function(e){if(!tt(e))return e;var t=e.getEditWrapperProps;return e.getEditWrapperProps=function(n){var r={};return t&&(r=t(n)),ct(r,e,n)},e})),Object(m.addFilter)("editor.BlockListBlock","core/color/with-color-palette-styles",lt);var st=n(18);function ut(e){var t=e.value,n=e.onChange,r=function(e){return void 0!==e&&""!==e}(t),o=r?t:"";return Object(u.createElement)("div",{className:"block-editor-line-height-control"},Object(u.createElement)(h.TextControl,{autoComplete:"off",onKeyDown:function(e){e.keyCode!==st.ZERO||r||(e.preventDefault(),n("0"))},onChange:function(e){if(r)n(e);else{var t=e;switch(e){case"".concat(.1):t=1.6;break;case"0":t=1.4}n(t)}},label:Object(g.__)("Line height"),placeholder:1.5,step:.1,type:"number",value:o,min:0}))}function dt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dt(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ft(e){var t,n=e.attributes.style;if(pt(e))return null;return Object(u.createElement)(ut,{value:null==n||null===(t=n.typography)||void 0===t?void 0:t.lineHeight,onChange:function(t){var r=bt(bt({},n),{},{typography:bt(bt({},null==n?void 0:n.typography),{},{lineHeight:t})});e.setAttributes({style:ge(r)})}})}function pt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=!de("typography.customLineHeight");return!Object(c.hasBlockSupport)(t,"lineHeight")||n}var mt=n(157),vt=n.n(mt),Ot=function(e,t,n){if(t){var r=Object(f.find)(e,{slug:t});if(r)return r}return{size:n}};function gt(e,t){var n=Object(f.find)(e,{size:t});return n||{size:t}}function ht(e){if(e)return"has-".concat(Object(f.kebabCase)(e),"-font-size")}var jt=function(e){var t=de("typography.fontSizes"),n=!de("typography.customFontSize");return Object(u.createElement)(h.FontSizePicker,Object(l.a)({},e,{fontSizes:t,disableCustomFontSizes:n}))};function kt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kt(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _t(e,t,n){if(!Object(c.hasBlockSupport)(t,"fontSize"))return e;var r=new vt.a(e.className);r.add(ht(n.fontSize));var o=r.value;return e.className=o||void 0,e}function Et(e){var t,n=e.attributes,r=n.fontSize,o=n.style,c=e.setAttributes,i=Ct(e),a=de("typography.fontSizes");if(i)return null;var l=Ot(a,r,null==o||null===(t=o.typography)||void 0===t?void 0:t.fontSize);return Object(u.createElement)(jt,{value:l.size,onChange:function(e){var t=gt(a,e).slug;c({style:ge(yt(yt({},o),{},{typography:yt(yt({},null==o?void 0:o.typography),{},{fontSize:t?void 0:e})})),fontSize:t})}})}function Ct(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=de("typography.fontSizes"),r=!!(null==n?void 0:n.length);return!Object(c.hasBlockSupport)(t,"fontSize")||!r}var wt=Object(p.createHigherOrderComponent)((function(e){return function(t){var n,r=de("typography.fontSizes"),o=t.name,i=t.attributes,a=i.fontSize,l=i.style,s=t.wrapperProps,d=yt({},t);if(Object(c.hasBlockSupport)(o,"fontSize")&&a&&!(null==l||null===(n=l.typography)||void 0===n?void 0:n.fontSize)){var b,f=Ot(r,a,null==l||null===(b=l.typography)||void 0===b?void 0:b.fontSize).size;d.wrapperProps=yt(yt({},s),{},{style:yt({fontSize:f},null==s?void 0:s.style)})}return Object(u.createElement)(e,d)}}),"withFontSizeInlineStyles");Object(m.addFilter)("blocks.registerBlockType","core/font/addAttribute",(function(e){return Object(c.hasBlockSupport)(e,"fontSize")?(e.attributes.fontSize||Object.assign(e.attributes,{fontSize:{type:"string"}}),e):e})),Object(m.addFilter)("blocks.getSaveContent.extraProps","core/font/addSaveProps",_t),Object(m.addFilter)("blocks.registerBlockType","core/font/addEditProps",(function(e){if(!Object(c.hasBlockSupport)(e,"fontSize"))return e;var t=e.getEditWrapperProps;return e.getEditWrapperProps=function(n){var r={};return t&&(r=t(n)),_t(r,e,n)},e})),Object(m.addFilter)("editor.BlockListBlock","core/font-size/with-font-size-inline-styles",wt);var St=["lineHeight","fontSize"];function It(e){var t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=[Ct(e),pt(e)];return t.filter(Boolean).length===t.length}(e),n=Bt(e.name);return t||!n?null:Object(u.createElement)(We,null,Object(u.createElement)(h.PanelBody,{title:Object(g.__)("Typography")},Object(u.createElement)(Et,e),Object(u.createElement)(ft,e)))}var Bt=function(e){return"web"===u.Platform.OS&&St.some((function(t){return Object(c.hasBlockSupport)(e,t)}))};function xt(e){var t=e.units,n=Object(he.a)(e,["units"]),r=Pt(t);return Object(u.createElement)(h.__experimentalUnitControl,Object(l.a)({units:r},n))}function Pt(e){var t=de("spacing.units"),n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.filter((function(t){return e.includes(t.value)}))}(t||[],e);return 0!==n.length&&n}function Tt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tt(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Dt(e){var t,n=e.name,r=e.attributes.style,o=e.setAttributes,i=Pt();if(!function(e){var t=Object(c.getBlockSupport)(e,"spacing");return t&&!1!==t.padding}(n))return null;return u.Platform.select({web:Object(u.createElement)(u.Fragment,null,Object(u.createElement)(h.__experimentalBoxControl,{values:null==r||null===(t=r.spacing)||void 0===t?void 0:t.padding,onChange:function(e){var t=Nt(Nt({},r),{},{spacing:{padding:e}});o({style:ge(t)})},onChangeShowVisualizer:function(e){var t=Nt(Nt({},r),{},{visualizers:{padding:e}});o({style:ge(t)})},label:Object(g.__)("Padding"),units:i})),native:null})}function Rt(e){var t=e.children,n=Object(he.a)(e,["children"]);return de("spacing.customPadding")?Object(u.createElement)(We,n,Object(u.createElement)(h.PanelBody,{title:Object(g.__)("Spacing")},t)):null}function At(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?At(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):At(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Lt=[].concat(Object(ne.a)(St),["color","spacing"]),Ft=function(e){return Lt.some((function(t){return Object(c.hasBlockSupport)(e,t)}))};function Vt(e){if(Object(f.startsWith)(e,"var:")){var t=e.slice("var:".length).split("|").join("--");return"var(--wp--".concat(t,")")}return e}function Ht(e,t,n){if(!Ft(t))return e;var r=n.style;return e.style=Mt(Mt({},function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={};return Object.entries(c.__EXPERIMENTAL_STYLE_PROPERTY).forEach((function(n){var r=Object(oe.a)(n),o=r[0],c=r.slice(1),i=Object(re.a)(c,1)[0];Object(f.has)(e,i)&&(t[o]=Vt(Object(f.get)(e,i)))})),t}(r)),e.style),e}var zt=Object(p.createHigherOrderComponent)((function(e){return function(t){var n=t.name,r=Object(c.hasBlockSupport)(n,"spacing");return[Object(u.createElement)(It,Object(l.a)({key:"typography"},t)),Object(u.createElement)(at,Object(l.a)({key:"colors"},t)),Object(u.createElement)(e,Object(l.a)({key:"edit"},t)),r&&Object(u.createElement)(Rt,{key:"spacing"},Object(u.createElement)(Dt,t))]}}),"withToolbarControls");Object(m.addFilter)("blocks.registerBlockType","core/style/addAttribute",(function(e){return Ft(e)?(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e):e})),Object(m.addFilter)("blocks.getSaveContent.extraProps","core/style/addSaveProps",Ht),Object(m.addFilter)("blocks.registerBlockType","core/style/addEditProps",(function(e){if(!Ft(e))return e;var t=e.getEditWrapperProps;return e.getEditWrapperProps=function(n){var r={};return t&&(r=t(n)),Ht(r,e,n)},e})),Object(m.addFilter)("editor.BlockEdit","core/style/with-block-controls",zt);var Ut=n(21),Gt=n(22),Kt=n(16),Wt=n(23),qt=n(24),$t=n(19);function Yt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object($t.a)(e);if(t){var o=Object($t.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(qt.a)(this,n)}}function Xt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xt(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Zt=[],Jt=function(e){return Object(p.createHigherOrderComponent)((function(t){return function(n){return Object(u.createElement)(t,Object(l.a)({},n,{colors:e}))}}),"withCustomColorPalette")},en=function(){return Object(p.createHigherOrderComponent)((function(e){return function(t){var n=de("color.palette")||Zt;return Object(u.createElement)(e,Object(l.a)({},t,{colors:n}))}}),"withEditorColorPalette")};function tn(e,t){var n=Object(f.reduce)(e,(function(e,t){return Qt(Qt({},e),Object(f.isString)(t)?Object(s.a)({},t,Object(f.kebabCase)(t)):t)}),{});return Object(p.compose)([t,function(e){return function(t){Object(Wt.a)(o,t);var r=Yt(o);function o(e){var t;return Object(Ut.a)(this,o),(t=r.call(this,e)).setters=t.createSetters(),t.colorUtils={getMostReadableColor:t.getMostReadableColor.bind(Object(Kt.a)(t))},t.state={},t}return Object(Gt.a)(o,[{key:"getMostReadableColor",value:function(e){return function(e,t){return ie.a.mostReadable(t,Object(f.map)(e,"color")).toHexString()}(this.props.colors,e)}},{key:"createSetters",value:function(){var e=this;return Object(f.reduce)(n,(function(t,n,r){var o=Object(f.upperFirst)(r),c="custom".concat(o);return t["set".concat(o)]=e.createSetColor(r,c),t}),{})}},{key:"createSetColor",value:function(e,t){var n=this;return function(r){var o,c=le(n.props.colors,r);n.props.setAttributes((o={},Object(s.a)(o,e,c&&c.slug?c.slug:void 0),Object(s.a)(o,t,c&&c.slug?void 0:r),o))}}},{key:"render",value:function(){return Object(u.createElement)(e,Qt(Qt(Qt(Qt({},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(f.reduce)(n,(function(e,n,c){var i=ae(o,r[c],r["custom".concat(Object(f.upperFirst)(c))]),a=t[c];return(null==a?void 0:a.color)===i.color&&a?e[c]=a:e[c]=Qt(Qt({},i),{},{class:se(n,i.slug)}),e}),{})}}]),o}(u.Component)}])}function nn(e){return function(){for(var t=Jt(e),n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Object(p.createHigherOrderComponent)(tn(r,t),"withCustomColors")}}function rn(){for(var e=en(),t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Object(p.createHigherOrderComponent)(tn(n,e),"withColors")}var on=n(60),cn=n.n(on);function an(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ln(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?an(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):an(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var sn=function(e){var t=e.colorSettings,n=Object(he.a)(e,["colorSettings"]),r=t.map((function(e){var t=e.value,n=e.onChange;return ln(ln({},Object(he.a)(e,["value","onChange"])),{},{colorValue:t,onColorChange:n})}));return Object(u.createElement)(Me,Object(l.a)({settings:r,gradients:[],disableCustomGradients:!0},n))},un=function(e,t,n){return"function"==typeof e?e(t):!0===e?n:e};function dn(e){var t=e.title,n=e.colorSettings,r=e.colorPanelProps,o=e.contrastCheckers,c=e.detectedBackgroundColor,i=e.detectedColor,a=e.panelChildren,s=e.initialOpen;return Object(u.createElement)(sn,Object(l.a)({title:t,initialOpen:s,colorSettings:Object.values(n)},r),o&&(Array.isArray(o)?o.map((function(e){var t=e.backgroundColor,r=e.textColor,o=Object(he.a)(e,["backgroundColor","textColor"]);return t=un(t,n,c),r=un(r,n,i),Object(u.createElement)(Ve,Object(l.a)({key:"".concat(t,"-").concat(r),backgroundColor:t,textColor:r},o))})):Object(f.map)(n,(function(e){var t=e.value,r=o.backgroundColor,a=o.textColor;return r=un(r||t,n,c),a=un(a||t,n,i),Object(u.createElement)(Ve,Object(l.a)({},o,{key:"".concat(r,"-").concat(a),backgroundColor:r,textColor:a}))}))),"function"==typeof a?a(n):a)}function bn(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return fn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fn(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}function fn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function pn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pn(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vn(e){return e.ownerDocument.defaultView.getComputedStyle(e)}var On=[],gn={textColor:Object(g.__)("Text Color"),backgroundColor:Object(g.__)("Background Color")},hn=function(e){return Object(u.createElement)(We,null,Object(u.createElement)(dn,e))};function jn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{panelTitle:Object(g.__)("Color settings")},n=t.panelTitle,r=void 0===n?Object(g.__)("Color settings"):n,o=t.colorPanelProps,c=t.contrastCheckers,i=t.panelChildren,a=t.colorDetector,l=(a=void 0===a?{}:a).targetRef,d=a.backgroundColorTargetRef,p=void 0===d?l:d,m=a.textColorTargetRef,O=void 0===m?l:m,h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],j=Object(z.b)(),k=j.clientId,y=de("color.palette")||On,_=Object(v.useSelect)((function(e){return{attributes:(0,e("core/block-editor").getBlockAttributes)(k)}}),[k]),E=_.attributes,C=Object(v.useDispatch)("core/block-editor"),w=C.updateBlockAttributes,S=Object(u.useCallback)((function(e){return w(k,e)}),[w,k]),I=Object(u.useMemo)((function(){return cn()((function(e,t,n,r,o,c){return function(i){var a,l=i.children,d=i.className,p=void 0===d?"":d,m=i.style,v=void 0===m?{}:m,O={};r?O=Object(s.a)({},t,o):c&&(O=Object(s.a)({},t,c));var g={className:b()(p,(a={},Object(s.a)(a,"has-".concat(Object(f.kebabCase)(r),"-").concat(Object(f.kebabCase)(t)),r),Object(s.a)(a,n||"has-".concat(Object(f.kebabCase)(e)),r||c),a)),style:mn(mn({},O),v)};return Object(f.isFunction)(l)?l(g):u.Children.map(l,(function(e){return Object(u.cloneElement)(e,{className:b()(e.props.className,g.className),style:mn(mn({},g.style),e.props.style||{})})}))}}),{maxSize:e.length})}),[e.length]),B=Object(u.useMemo)((function(){return cn()((function(e,t){return function(n){var r=t.find((function(e){return e.color===n}));S(Object(s.a)({},r?Object(f.camelCase)("custom ".concat(e)):e,void 0)),S(Object(s.a)({},r?e:Object(f.camelCase)("custom ".concat(e)),r?r.slug:n))}}),{maxSize:e.length})}),[S,e.length]),x=Object(u.useState)(),P=Object(re.a)(x,2),T=P[0],N=P[1],D=Object(u.useState)(),R=Object(re.a)(D,2),A=R[0],M=R[1];return Object(u.useEffect)((function(){if(c){var e,t=!1,n=!1,r=bn(Object(f.castArray)(c));try{for(r.s();!(e=r.n()).done;){var o=e.value,i=o.backgroundColor,a=o.textColor;if(t||(t=!0===i),n||(n=!0===a),t&&n)break}}catch(e){r.e(e)}finally{r.f()}if(n&&M(vn(O.current).color),t){for(var l=p.current,s=vn(l).backgroundColor;"rgba(0, 0, 0, 0)"===s&&l.parentNode&&l.parentNode.nodeType===l.parentNode.ELEMENT_NODE;)s=vn(l=l.parentNode).backgroundColor;N(s)}}}),[e.reduce((function(e,t){return"".concat(e," | ").concat(E[t.name]," | ").concat(E[Object(f.camelCase)("custom ".concat(t.name))])}),"")].concat(Object(ne.a)(h))),Object(u.useMemo)((function(){var t={},n=e.reduce((function(e,n){"string"==typeof n&&(n={name:n});var r=mn(mn({},n),{},{color:E[n.name]}),o=r.name,c=r.property,i=void 0===c?o:c,a=r.className,l=r.panelLabel,s=void 0===l?n.label||gn[o]||Object(f.startCase)(o):l,u=r.componentName,d=void 0===u?Object(f.startCase)(o).replace(/\s/g,""):u,b=r.color,p=void 0===b?n.color:b,m=r.colors,v=void 0===m?y:m,O=E[Object(f.camelCase)("custom ".concat(o))],g=O?void 0:v.find((function(e){return e.slug===p}));return e[d]=I(o,i,a,p,g&&g.color,O),e[d].displayName=d,e[d].color=O||g&&g.color,e[d].slug=p,e[d].setColor=B(o,v),t[d]={value:g?g.color:E[Object(f.camelCase)("custom ".concat(o))],onChange:e[d].setColor,label:s,colors:v},v||delete t[d].colors,e}),{}),a={title:r,initialOpen:!1,colorSettings:t,colorPanelProps:o,contrastCheckers:c,detectedBackgroundColor:T,detectedColor:A,panelChildren:i};return mn(mn({},n),{},{ColorPanel:Object(u.createElement)(dn,a),InspectorControlsColorPanel:Object(u.createElement)(hn,a)})}),[E,S,A,T].concat(Object(ne.a)(h)))}function kn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kn(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _n(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object($t.a)(e);if(t){var o=Object($t.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(qt.a)(this,n)}}var En=[],Cn=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Object(f.reduce)(t,(function(e,t){return e[t]="custom".concat(Object(f.upperFirst)(t)),e}),{});return Object(p.createHigherOrderComponent)(Object(p.compose)([Object(p.createHigherOrderComponent)((function(e){return function(t){var n=de("typography.fontSizes")||En;return Object(u.createElement)(e,Object(l.a)({},t,{fontSizes:n}))}}),"withFontSizes"),function(e){return function(t){Object(Wt.a)(o,t);var n=_n(o);function o(e){var t;return Object(Ut.a)(this,o),(t=n.call(this,e)).setters=t.createSetters(),t.state={},t}return Object(Gt.a)(o,[{key:"createSetters",value:function(){var e=this;return Object(f.reduce)(r,(function(t,n,r){var o=Object(f.upperFirst)(r);return t["set".concat(o)]=e.createSetFontSize(r,n),t}),{})}},{key:"createSetFontSize",value:function(e,t){var n=this;return function(r){var o,c=Object(f.find)(n.props.fontSizes,{size:Number(r)});n.props.setAttributes((o={},Object(s.a)(o,e,c&&c.slug?c.slug:void 0),Object(s.a)(o,t,c&&c.slug?void 0:r),o))}}},{key:"render",value:function(){return Object(u.createElement)(e,yn(yn(yn({},this.props),{},{fontSizes:void 0},this.state),this.setters))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.attributes,o=e.fontSizes,c=function(e,r){return!t[r]||(n[r]?n[r]!==t[r].slug:t[r].size!==n[e])};if(!Object(f.some)(r,c))return null;var i=Object(f.reduce)(Object(f.pickBy)(r,c),(function(e,t,r){var c=n[r],i=Ot(o,c,n[t]);return e[r]=yn(yn({},i),{},{class:ht(c)}),e}),{});return yn(yn({},t),i)}}]),o}(u.Component)}]),"withFontSizes")},wn=n(303),Sn=n(304),In=n(305);function Bn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bn(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Pn=[{icon:wn.a,title:Object(g.__)("Align text left"),align:"left"},{icon:Sn.a,title:Object(g.__)("Align text center"),align:"center"},{icon:In.a,title:Object(g.__)("Align text right"),align:"right"}],Tn={position:"bottom right",isAlternate:!0};var Nn=function(e){var t=e.value,n=e.onChange,r=e.alignmentControls,o=void 0===r?Pn:r,c=e.label,i=void 0===c?Object(g.__)("Change text alignment"):c,a=e.isCollapsed,l=void 0===a||a,s=e.isRTL;function d(e){return function(){return n(t===e?void 0:e)}}var b=Object(f.find)(o,(function(e){return e.align===t}));return Object(u.createElement)(h.ToolbarGroup,{isCollapsed:l,icon:b?b.icon:s?In.a:wn.a,label:i,popoverProps:Tn,controls:o.map((function(e){var n=e.align,r=t===n;return xn(xn({},e),{},{isActive:r,role:l?"menuitemradio":void 0,onClick:d(n)})}))})},Dn=function(e){return e.name||""},Rn=function(e){return e.title},An=function(e){return e.keywords||[]},Mn=function(e){return e.category},Ln=function(){return null};function Fn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e=(e=(e=Object(f.deburr)(e)).replace(/^\//,"")).toLowerCase()}var Vn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Object(f.words)(Fn(e))},Hn=function(e,t){return Object(f.differenceWith)(e,Vn(t),(function(e,t){return t.includes(e)}))},zn=function(e,t,n,r){return 0===Vn(r).length?e:Un(e,r,{getCategory:function(e){var n;return null===(n=Object(f.find)(t,{slug:e.category}))||void 0===n?void 0:n.title},getCollection:function(e){var t;return null===(t=n[e.name.split("/")[0]])||void 0===t?void 0:t.title},getVariations:function(e){var t=e.variations,n=void 0===t?[]:t;return Array.from(n.reduce((function(e,t){var n=t.title,r=t.keywords,o=void 0===r?[]:r;return e.add(n),o.forEach((function(t){return e.add(t)})),e}),new Set))}})},Un=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Vn(t);if(0===r.length)return e;var o=e.map((function(e){return[e,Gn(e,t,n)]})).filter((function(e){return Object(re.a)(e,2)[1]>0}));return o.sort((function(e,t){var n=Object(re.a)(e,2)[1];return Object(re.a)(t,2)[1]-n})),o.map((function(e){return Object(re.a)(e,1)[0]}))};function Gn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.getName,o=void 0===r?Dn:r,c=n.getTitle,i=void 0===c?Rn:c,a=n.getKeywords,l=void 0===a?An:a,s=n.getCategory,u=void 0===s?Mn:s,d=n.getCollection,b=void 0===d?Ln:d,p=o(e),m=i(e),v=l(e),O=u(e),g=b(e),h=Fn(t),j=Fn(m),k=0;if(h===j)k+=30;else if(j.startsWith(h))k+=20;else{var y=[p,m].concat(Object(ne.a)(v),[O,g]).join(" "),_=Object(f.words)(h),E=Hn(_,y);0===E.length&&(k+=10)}return 0!==k&&p.startsWith("core/")&&k++,k}var Kn=function(e,t){var n=Object(v.useSelect)((function(t){var n=t("core/block-editor").getInserterItems,r=t("core/blocks"),o=r.getCategories,c=r.getCollections;return{categories:o(),collections:c(),items:n(e)}}),[e]),r=n.categories,o=n.collections;return[n.items,r,o,function(e){var n=e.name,r=e.initialAttributes,o=e.innerBlocks,i=Object(c.createBlock)(n,r,Object(c.createBlocksFromInnerBlocksTemplate)(o));t(i)}]},Wn=n(208);function qn(e){var t,n=e.icon,r=e.showColors,o=void 0!==r&&r,c=e.className;"block-default"===(null===(t=n)||void 0===t?void 0:t.src)&&(n={src:Wn.a});var i=Object(u.createElement)(h.Icon,{icon:n&&n.src?n.src:n}),a=o?{backgroundColor:n&&n.background,color:n&&n.foreground}:{};return Object(u.createElement)("span",{style:a,className:b()("block-editor-block-icon",c,{"has-colors":o})},i)}var $n={name:"blocks",className:"block-editor-autocompleters__block",triggerPrefix:"/",useItems:function(e){var t=Object(v.useSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getBlockName,o=t.getBlockInsertionPoint,c=n();return{selectedBlockName:c?r(c):null,rootClientId:o().rootClientId}}),[]),n=t.rootClientId,r=t.selectedBlockName,o=Kn(n,f.noop),c=Object(re.a)(o,3),i=c[0],a=c[1],l=c[2],s=Object(u.useMemo)((function(){return(e.trim()?zn(i,a,l,e):Object(f.orderBy)(i,["frecency"],["desc"])).filter((function(e){return e.name!==r})).slice(0,9)}),[e,r,i,a,l]);return[Object(u.useMemo)((function(){return s.map((function(e){var t=e.title,n=e.icon,r=e.isDisabled;return{key:"block-".concat(e.id),value:e,label:Object(u.createElement)(u.Fragment,null,Object(u.createElement)(qn,{key:"icon",icon:n,showColors:!0}),t),isDisabled:r}}))}),[s])]},allowContext:function(e,t){return!(/\S/.test(e)||/\S/.test(t))},getOptionCompletion:function(e){var t=e.name,n=e.initialAttributes,r=e.innerBlocks;return{action:"replace",value:Object(c.createBlock)(t,n,Object(c.createBlocksFromInnerBlocksTemplate)(r))}}},Yn=[];var Xn=function(e){var t=Object(z.b)().name,n=e.completers,r=void 0===n?Yn:n;return r=Object(u.useMemo)((function(){var e=r;return t===Object(c.getDefaultBlockName)()&&(e=e.concat([$n])),Object(m.hasFilter)("editor.Autocomplete.completers")&&(e===r&&(e=e.map(f.clone)),e=Object(m.applyFilters)("editor.Autocomplete.completers",e,t)),e}),[r,t]),Object(u.createElement)(h.Autocomplete,Object(l.a)({},e,{completers:r}))};var Qn=function(e){var t=e.label,n=void 0===t?Object(g.__)("Change matrix alignment"):t,r=e.onChange,o=void 0===r?f.noop:r,c=e.value,i=void 0===c?"center":c,a=Object(u.createElement)(h.__experimentalAlignmentMatrixControl.Icon,{value:i}),l="block-editor-block-alignment-matrix-toolbar",s="".concat(l,"__popover");return Object(u.createElement)(h.Dropdown,{position:"bottom right",className:l,popoverProps:{className:s,isAlternate:!0},renderToggle:function(e){var t=e.onToggle,r=e.isOpen;return Object(u.createElement)(h.ToolbarGroup,null,Object(u.createElement)(h.ToolbarButton,{onClick:t,"aria-haspopup":"true","aria-expanded":r,onKeyDown:function(e){r||e.keyCode!==st.DOWN||(e.preventDefault(),e.stopPropagation(),t())},label:n,icon:a,showTooltip:!0}))},renderContent:function(){return Object(u.createElement)(h.__experimentalAlignmentMatrixControl,{hasFocusBorder:!1,onChange:o,value:i})}})};function Zn(e){var t=e.clientId,n=Object(v.useSelect)((function(e){if(!t)return{};var n=e("core/block-editor"),r=n.getBlockName;return{attributes:(0,n.getBlockAttributes)(t),name:r(t)}}),[t]),r=n.attributes,o=n.name;if(!o)return null;var i=Object(c.getBlockType)(o);if(!i)return null;var a=i.title,l=Object(c.__experimentalGetBlockLabel)(i,r);return l!==a?"".concat(a,": ").concat(Object(f.truncate)(l,{length:15})):a}var Jn=function(){var e=Object(v.useDispatch)("core/block-editor"),t=e.selectBlock,n=e.clearSelectedBlock,r=Object(v.useSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectionStart,r=t.getSelectedBlockClientId,o=t.getBlockParents,c=r();return{parents:o(c),clientId:c,hasSelection:!!n().clientId}}),[]),o=r.clientId,c=r.parents,i=r.hasSelection;return Object(u.createElement)("ul",{className:"block-editor-block-breadcrumb",role:"list","aria-label":Object(g.__)("Block breadcrumb")},Object(u.createElement)("li",{className:i?void 0:"block-editor-block-breadcrumb__current","aria-current":i?void 0:"true"},i&&Object(u.createElement)(h.Button,{className:"block-editor-block-breadcrumb__button",isTertiary:!0,onClick:n},Object(g.__)("Document")),!i&&Object(g.__)("Document")),c.map((function(e){return Object(u.createElement)("li",{key:e},Object(u.createElement)(h.Button,{className:"block-editor-block-breadcrumb__button",isTertiary:!0,onClick:function(){return t(e)}},Object(u.createElement)(Zn,{clientId:e})))})),!!o&&Object(u.createElement)("li",{className:"block-editor-block-breadcrumb__current","aria-current":"true"},Object(u.createElement)(Zn,{clientId:o})))};function er(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?er(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):er(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var nr=Object(u.createContext)({});function rr(e){var t=e.value,n=e.children,r=Object(u.useContext)(nr),o=Object(u.useMemo)((function(){return tr(tr({},r),t)}),[r,t]);return Object(u.createElement)(nr.Provider,{value:o,children:n})}var or=nr,cr=function(){return Object(u.createElement)(h.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 20 20"},Object(u.createElement)(h.Path,{d:"M7.434 5l3.18 9.16H8.538l-.692-2.184H4.628l-.705 2.184H2L5.18 5h2.254zm-1.13 1.904h-.115l-1.148 3.593H7.44L6.304 6.904zM14.348 7.006c1.853 0 2.9.876 2.9 2.374v4.78h-1.79v-.914h-.114c-.362.64-1.123 1.022-2.031 1.022-1.346 0-2.292-.826-2.292-2.108 0-1.27.972-2.006 2.71-2.107l1.696-.102V9.38c0-.584-.42-.914-1.18-.914-.667 0-1.112.228-1.264.647h-1.701c.12-1.295 1.307-2.107 3.066-2.107zm1.079 4.1l-1.416.09c-.793.056-1.18.342-1.18.844 0 .52.45.837 1.091.837.857 0 1.505-.545 1.505-1.256v-.515z"}))},ir=function(e){var t=e.style,n=e.className;return Object(u.createElement)("div",{className:"block-library-colors-selector__icon-container"},Object(u.createElement)("div",{className:"".concat(n," block-library-colors-selector__state-selection"),style:t},Object(u.createElement)(cr,null)))},ar=function(e){var t,n,r,o=e.children,c=Object(he.a)(e,["children"]);return Object(u.createElement)(h.Dropdown,{position:"bottom right",className:"block-library-colors-selector",contentClassName:"block-library-colors-selector__popover",renderToggle:(t=c,n=t.TextColor,r=t.BackgroundColor,function(e){var t=e.onToggle,o=e.isOpen;return Object(u.createElement)(h.ToolbarGroup,null,Object(u.createElement)(h.ToolbarButton,{className:"components-toolbar__control block-library-colors-selector__toggle",label:Object(g.__)("Open Colors Selector"),onClick:t,onKeyDown:function(e){o||e.keyCode!==st.DOWN||(e.preventDefault(),e.stopPropagation(),t())},icon:Object(u.createElement)(r,null,Object(u.createElement)(n,null,Object(u.createElement)(ir,null)))}))}),renderContent:function(){return o}})},lr={},sr=Object(h.withFilters)("editor.BlockEdit")((function(e){var t=e.attributes,n=void 0===t?{}:t,r=e.name,o=Object(c.getBlockType)(r),i=Object(u.useContext)(or),a=Object(u.useMemo)((function(){return o&&o.usesContext?Object(f.pick)(i,o.usesContext):lr}),[o,i]);if(!o)return null;var s=o.edit||o.save;if(o.apiVersion>1||Object(c.hasBlockSupport)(o,"lightBlockWrapper",!1))return Object(u.createElement)(s,Object(l.a)({},e,{context:a}));var d=Object(c.hasBlockSupport)(o,"className",!0)?Object(c.getBlockDefaultClassName)(r):null,p=b()(d,n.className);return Object(u.createElement)(s,Object(l.a)({},e,{context:a,className:p}))}));function ur(e){var t={name:e.name,isSelected:e.isSelected,clientId:e.clientId,onFocus:e.onFocus,onCaretVerticalPositionChange:e.onCaretVerticalPositionChange};return Object(u.createElement)(z.a,{value:Object(u.useMemo)((function(){return t}),Object.values(t))},Object(u.createElement)(sr,e))}var dr=Object(h.createSlotFill)("BlockFormatControls"),br=dr.Fill,fr=dr.Slot;var pr=function(e){return Object(z.b)().isSelected?Object(u.createElement)(br,null,(function(t){var n=Object(f.isEmpty)(t)?null:t;return Object(u.createElement)(h.__experimentalToolbarContext.Provider,{value:n},e.children)})):null};pr.Slot=function(e){var t=Object(u.useContext)(h.__experimentalToolbarContext);return Object(u.createElement)(fr,Object(l.a)({},e,{fillProps:t}))};var mr=pr,vr=n(20),Or=n.n(vr),gr=n(45),hr=n(316),jr=n(115),kr=n(29),yr=function(e){return e+1},_r=function(e){return{top:e.offsetTop,left:e.offsetLeft}};var Er=function(e,t,n,r,o){var c=Object(p.useReducedMotion)()||!r,i=Object(u.useReducer)(yr,0),a=Object(re.a)(i,2),l=a[0],s=a[1],d=Object(u.useReducer)(yr,0),b=Object(re.a)(d,2),f=b[0],m=b[1],v=Object(u.useState)({x:0,y:0}),O=Object(re.a)(v,2),g=O[0],h=O[1],j=Object(u.useMemo)((function(){return e.current?_r(e.current):null}),[o]),k=Object(u.useMemo)((function(){if(!n||!e.current)return function(){};var t=Object(kr.getScrollContainer)(e.current);if(!t)return function(){};var r=e.current.getBoundingClientRect();return function(){var n=e.current.getBoundingClientRect().top-r.top;n&&(t.scrollTop+=n)}}),[o,n]);function y(n){var r=n.x,o=n.y;r=Math.round(r),o=Math.round(o),r===y.x&&o===y.y||(!function(n){var r=n.x,o=n.y;if(e.current){var c=0===r&&0===o;e.current.style.transformOrigin=c?"":"center",e.current.style.transform=c?"":"translate3d(".concat(r,"px,").concat(o,"px,0)"),e.current.style.zIndex=!t||c?"":"1",k()}}({x:r,y:o}),y.x=r,y.y=o)}Object(u.useLayoutEffect)((function(){l&&m()}),[l]),Object(u.useLayoutEffect)((function(){if(j)if(c)k();else{e.current.style.transform="";var t=_r(e.current);s(),h({x:Math.round(j.left-t.left),y:Math.round(j.top-t.top)})}}),[o]),y.x=0,y.y=0,Object(jr.useSpring)({from:{x:g.x,y:g.y},to:{x:0,y:0},reset:l!==f,config:{mass:5,tension:2e3,friction:200},immediate:c,onFrame:y})},Cr=Object(jr.animated)(h.__experimentalTreeGridRow);function wr(e){var t=e.isSelected,n=e.position,r=e.level,o=e.rowCount,c=e.children,i=e.className,a=e.path,s=Object(he.a)(e,["isSelected","position","level","rowCount","children","className","path"]),d=Object(u.useRef)(null),f=a.join("_"),p=Er(d,t,!1,!0,f);return Object(u.createElement)(Cr,Object(l.a)({ref:d,style:p,className:b()("block-editor-block-navigation-leaf",i),level:r,positionInSet:n,setSize:o},s),c)}var Sr=n(214),Ir=n(215),Br=n(314),xr=n(315);function Pr(e,t,n,r,o,c,i,a){var l=n+1,s=function(e){return"up"===e?"horizontal"===i?a?"right":"left":"up":"down"===e?"horizontal"===i?a?"left":"right":"down":null};if(e>1)return function(e,t,n,r,o){var c=t+1;if(o<0&&n)return Object(g.__)("Blocks cannot be moved up as they are already at the top");if(o>0&&r)return Object(g.__)("Blocks cannot be moved down as they are already at the bottom");if(o<0&&!n)return Object(g.sprintf)(Object(g._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,c);if(o>0&&!r)return Object(g.sprintf)(Object(g._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,c)}(e,n,r,o,c);if(r&&o)return Object(g.sprintf)(Object(g.__)("Block %s is the only block, and cannot be moved"),t);if(c>0&&!o){var u=s("down");if("down"===u)return Object(g.sprintf)(Object(g.__)("Move %1$s block from position %2$d down to position %3$d"),t,l,l+1);if("left"===u)return Object(g.sprintf)(Object(g.__)("Move %1$s block from position %2$d left to position %3$d"),t,l,l+1);if("right"===u)return Object(g.sprintf)(Object(g.__)("Move %1$s block from position %2$d right to position %3$d"),t,l,l+1)}if(c>0&&o){var d=s("down");if("down"===d)return Object(g.sprintf)(Object(g.__)("Block %1$s is at the end of the content and can’t be moved down"),t);if("left"===d)return Object(g.sprintf)(Object(g.__)("Block %1$s is at the end of the content and can’t be moved left"),t);if("right"===d)return Object(g.sprintf)(Object(g.__)("Block %1$s is at the end of the content and can’t be moved right"),t)}if(c<0&&!r){var b=s("up");if("up"===b)return Object(g.sprintf)(Object(g.__)("Move %1$s block from position %2$d up to position %3$d"),t,l,l-1);if("left"===b)return Object(g.sprintf)(Object(g.__)("Move %1$s block from position %2$d left to position %3$d"),t,l,l-1);if("right"===b)return Object(g.sprintf)(Object(g.__)("Move %1$s block from position %2$d right to position %3$d"),t,l,l-1)}if(c<0&&r){var f=s("up");if("up"===f)return Object(g.sprintf)(Object(g.__)("Block %1$s is at the beginning of the content and can’t be moved up"),t);if("left"===f)return Object(g.sprintf)(Object(g.__)("Block %1$s is at the beginning of the content and can’t be moved left"),t);if("right"===f)return Object(g.sprintf)(Object(g.__)("Block %1$s is at the beginning of the content and can’t be moved right"),t)}}var Tr=function(e,t,n){return"up"===e?"horizontal"===t?n?Sr.a:Ir.a:Br.a:"down"===e?"horizontal"===t?n?Ir.a:Sr.a:xr.a:null},Nr=function(e,t,n){return"up"===e?"horizontal"===t?n?Object(g.__)("Move right"):Object(g.__)("Move left"):Object(g.__)("Move up"):"down"===e?"horizontal"===t?n?Object(g.__)("Move left"):Object(g.__)("Move right"):Object(g.__)("Move down"):null},Dr=Object(u.forwardRef)((function(e,t){var n=e.clientIds,r=e.direction,o=e.orientation,i=Object(he.a)(e,["clientIds","direction","orientation"]),a=Object(p.useInstanceId)(Dr),s=Object(f.castArray)(n).length,d=Object(v.useSelect)((function(e){var t=e("core/block-editor"),i=t.getBlockIndex,a=t.getBlockRootClientId,l=t.getBlockOrder,s=t.getBlock,u=t.getSettings,d=t.getBlockListSettings,b=Object(f.castArray)(n),p=Object(f.first)(b),m=a(p),v=i(p,m),O=i(Object(f.last)(b),m),g=l(m),h=s(p),j=0===v,k=O===g.length-1,y=(d(m)||{}).orientation;return{blockType:h?Object(c.getBlockType)(h.name):null,isDisabled:"up"===r?j:k,rootClientId:m,firstIndex:v,isFirst:j,isLast:k,isRTL:u().isRTL,orientation:o||y}}),[n,r]),m=d.blockType,O=d.isDisabled,g=d.rootClientId,j=d.isFirst,k=d.isLast,y=d.firstIndex,_=d.isRTL,E=d.orientation,C=void 0===E?"vertical":E,w=Object(v.useDispatch)("core/block-editor"),S=w.moveBlocksDown,I=w.moveBlocksUp,B="up"===r?I:S,x="block-editor-block-mover-button__description-".concat(a);return Object(u.createElement)(u.Fragment,null,Object(u.createElement)(h.Button,Object(l.a)({ref:t,className:b()("block-editor-block-mover-button","is-".concat(r,"-button")),icon:Tr(r,C,_),label:Nr(r,C,_),"aria-describedby":x},i,{onClick:O?null:function(e){B(n,g),i.onClick&&i.onClick(e)},"aria-disabled":O})),Object(u.createElement)("span",{id:x,className:"block-editor-block-mover-button__description"},Pr(s,m&&m.title,y,j,k,"up"===r?-1:1,C,_)))})),Rr=Object(u.forwardRef)((function(e,t){return Object(u.createElement)(Dr,Object(l.a)({direction:"up",ref:t},e))})),Ar=Object(u.forwardRef)((function(e,t){return Object(u.createElement)(Dr,Object(l.a)({direction:"down",ref:t},e))}));function Mr(e){var t=e.level,n=e.isLastRow,r=e.terminatedLevels;return Object(f.times)(t-1,(function(e){var o=e+2,c=o===t;return Object(u.createElement)("div",{key:e,"aria-hidden":"true",className:b()("block-editor-block-navigator-descender-line",{"has-item":c,"is-last-row":n,"is-terminated":r.includes(o)})})}))}var Lr=Object(u.createContext)({__experimentalFeatures:!1}),Fr=function(){return Object(u.useContext)(Lr)},Vr=Object(u.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(j.Path,{d:"M11 13h2v-2h-2v2zm-6 0h2v-2H5v2zm12-2v2h2v-2h-2z"}));var Hr=function(e){var t=e.className,n=e.actions,r=e.children,o=e.secondaryActions;return Object(u.createElement)("div",{className:b()(t,"block-editor-warning")},Object(u.createElement)("div",{className:"block-editor-warning__contents"},Object(u.createElement)("p",{className:"block-editor-warning__message"},r),(u.Children.count(n)>0||o)&&Object(u.createElement)("div",{className:"block-editor-warning__actions"},u.Children.count(n)>0&&u.Children.map(n,(function(e,t){return Object(u.createElement)("span",{key:t,className:"block-editor-warning__action"},e)})),o&&Object(u.createElement)(h.DropdownMenu,{className:"block-editor-warning__secondary",icon:Vr,label:Object(g.__)("More options"),popoverProps:{position:"bottom left",className:"block-editor-warning__dropdown"},noIcons:!0},(function(){return Object(u.createElement)(h.MenuGroup,null,o.map((function(e,t){return Object(u.createElement)(h.MenuItem,{onClick:e.onClick,key:t},e.title)})))})))))},zr=n(279),Ur=function(e){var t=e.title,n=e.rawContent,r=e.renderedContent,o=e.action,c=e.actionText,i=e.className;return Object(u.createElement)("div",{className:i},Object(u.createElement)("div",{className:"block-editor-block-compare__content"},Object(u.createElement)("h2",{className:"block-editor-block-compare__heading"},t),Object(u.createElement)("div",{className:"block-editor-block-compare__html"},n),Object(u.createElement)("div",{className:"block-editor-block-compare__preview edit-post-visual-editor"},r)),Object(u.createElement)("div",{className:"block-editor-block-compare__action"},Object(u.createElement)(h.Button,{isSecondary:!0,tabIndex:"0",onClick:o},c)))};var Gr=function(e){var t,n,r,o,i=e.block,a=e.onKeep,l=e.onConvert,s=e.convertor,d=e.convertButtonText,p={rawContent:i.originalContent,renderedContent:Object(c.getSaveElement)(i.name,i.attributes)},m=(t=s(i),n=Object(f.castArray)(t),r=n.map((function(e){return Object(c.getSaveContent)(e.name,e.attributes,e.innerBlocks)})),o=n.map((function(e){return Object(c.getSaveElement)(e.name,e.attributes,e.innerBlocks)})),{rawContent:r.join(""),renderedContent:o}),v=function(e,t){return Object(zr.diffChars)(e,t).map((function(e,t){var n=b()({"block-editor-block-compare__added":e.added,"block-editor-block-compare__removed":e.removed});return Object(u.createElement)("span",{key:t,className:n},e.value)}))}(p.rawContent,m.rawContent);return Object(u.createElement)("div",{className:"block-editor-block-compare__wrapper"},Object(u.createElement)(Ur,{title:Object(g.__)("Current"),className:"block-editor-block-compare__current",action:a,actionText:Object(g.__)("Convert to HTML"),rawContent:p.rawContent,renderedContent:p.renderedContent}),Object(u.createElement)(Ur,{title:Object(g.__)("After Conversion"),className:"block-editor-block-compare__converted",action:l,actionText:d,rawContent:v,renderedContent:m.renderedContent}))};var Kr=function(e){return Object(c.rawHandler)({HTML:e.originalContent})},Wr=Object(p.compose)([Object(v.withSelect)((function(e,t){var n=t.clientId;return{block:e("core/block-editor").getBlock(n)}})),Object(v.withDispatch)((function(e,t){var n=t.block,r=e("core/block-editor").replaceBlock;return{convertToClassic:function(){r(n.clientId,function(e){return Object(c.createBlock)("core/freeform",{content:e.originalContent})}(n))},convertToHTML:function(){r(n.clientId,function(e){return Object(c.createBlock)("core/html",{content:e.originalContent})}(n))},convertToBlocks:function(){r(n.clientId,Kr(n))},attemptBlockRecovery:function(){var e,t,o,i;r(n.clientId,(t=(e=n).name,o=e.attributes,i=e.innerBlocks,Object(c.createBlock)(t,o,i)))}}}))])((function(e){var t=e.convertToHTML,n=e.convertToBlocks,r=e.convertToClassic,o=e.attemptBlockRecovery,i=e.block,a=!!Object(c.getBlockType)("core/html"),l=Object(u.useState)(!1),s=Object(re.a)(l,2),d=s[0],b=s[1],f=Object(u.useCallback)((function(){return b(!0)}),[]),p=Object(u.useCallback)((function(){return b(!1)}),[]),m=Object(u.useMemo)((function(){return[{title:Object(g._x)("Resolve","imperative verb"),onClick:f},a&&{title:Object(g.__)("Convert to HTML"),onClick:t},{title:Object(g.__)("Convert to Classic Block"),onClick:r}].filter(Boolean)}),[f,t,r]);return Object(u.createElement)(u.Fragment,null,Object(u.createElement)(Hr,{actions:[Object(u.createElement)(h.Button,{key:"recover",onClick:o,isPrimary:!0},Object(g.__)("Attempt Block Recovery"))],secondaryActions:m},Object(g.__)("This block contains unexpected or invalid content.")),d&&Object(u.createElement)(h.Modal,{title:Object(g.__)("Resolve Block"),onRequestClose:p,className:"block-editor-block-compare"},Object(u.createElement)(Gr,{block:i,onKeep:t,onConvert:n,convertor:Kr,convertButtonText:Object(g.__)("Convert to Blocks")})))})),qr=Object(u.createElement)(Hr,{className:"block-editor-block-list__block-crash-warning"},Object(g.__)("This block has encountered an error and cannot be previewed.")),$r=function(){return qr};function Yr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object($t.a)(e);if(t){var o=Object($t.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(qt.a)(this,n)}}var Xr=function(e){Object(Wt.a)(n,e);var t=Yr(n);function n(){var e;return Object(Ut.a)(this,n),(e=t.apply(this,arguments)).state={hasError:!1},e}return Object(Gt.a)(n,[{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}}]),n}(u.Component),Qr=n(100),Zr=n.n(Qr);var Jr=function(e){var t=e.clientId,n=Object(u.useState)(""),r=Object(re.a)(n,2),o=r[0],i=r[1],a=Object(v.useSelect)((function(e){return e("core/block-editor").getBlock(t)}),[t]),l=Object(v.useDispatch)("core/block-editor").updateBlock;return Object(u.useEffect)((function(){i(Object(c.getBlockContent)(a))}),[a]),Object(u.createElement)(Zr.a,{className:"block-editor-block-list__block-html-textarea",value:o,onBlur:function(){var e=Object(c.getBlockType)(a.name),n=Object(c.getBlockAttributes)(e,o,a.attributes),r=o||Object(c.getSaveContent)(e,n),s=!o||Object(c.isValidBlockContent)(e,n,r);l(t,{attributes:n,originalContent:r,isValid:s}),o||i({content:r})},onChange:function(e){return i(e.target.value)}})},eo=n(36),to=n.n(eo);function no(e,t){for(var n="start"===t?"firstChild":"lastChild",r="start"===t?"nextSibling":"previousSibling";e[n];)for(e=e[n];e.nodeType===e.TEXT_NODE&&/^[ \t\n]*$/.test(e.data)&&e[r];)e=e[r];return e}function ro(e){var t=e("core/block-editor"),n=t.isSelectionEnabled,r=t.isMultiSelecting,o=t.getMultiSelectedBlockClientIds,c=t.hasMultiSelection,i=t.getBlockParents,a=t.getSelectedBlockClientId;return{isSelectionEnabled:n(),isMultiSelecting:r(),multiSelectedBlockClientIds:o(),hasMultiSelection:c(),getBlockParents:i,selectedBlockClientId:a()}}function oo(e,t){Array.from(e.querySelectorAll(".rich-text")).forEach((function(e){t?e.setAttribute("contenteditable",!0):e.removeAttribute("contenteditable")}))}var co=n(209),io=[Object(u.createInterpolateElement)(Object(g.__)("While writing, you can press <kbd>/</kbd> to quickly insert new blocks."),{kbd:Object(u.createElement)("kbd",null)}),Object(u.createInterpolateElement)(Object(g.__)("Indent a list by pressing <kbd>space</kbd> at the beginning of a line."),{kbd:Object(u.createElement)("kbd",null)}),Object(u.createInterpolateElement)(Object(g.__)("Outdent a list by pressing <kbd>backspace</kbd> at the beginning of a line."),{kbd:Object(u.createElement)("kbd",null)}),Object(g.__)("Drag files into the editor to automatically insert media blocks."),Object(g.__)("Change a block's type by pressing the block icon on the toolbar.")];var ao=function(){var e=Object(u.useState)(Math.floor(Math.random()*io.length)),t=Object(re.a)(e,1)[0];return Object(u.createElement)(h.Tip,null,io[t])},lo=n(159),so=n(141),uo=n(306);var bo=function e(t){var n=t.className,r=t.onChange,o=t.value,c=t.placeholder,i=Object(p.useInstanceId)(e),a=Object(u.useRef)();return Object(u.createElement)("div",{className:b()("block-editor-inserter__search",n)},Object(u.createElement)(h.VisuallyHidden,{as:"label",htmlFor:"block-editor-inserter__search-".concat(i)},c),Object(u.createElement)("input",{ref:a,className:"block-editor-inserter__search-input",id:"block-editor-inserter__search-".concat(i),type:"search",placeholder:c,autoFocus:!0,onChange:function(e){return r(e.target.value)},autoComplete:"off",value:o||""}),Object(u.createElement)("div",{className:"block-editor-inserter__search-icon"},!!o&&Object(u.createElement)(h.Button,{icon:lo.a,label:Object(g.__)("Reset search"),onClick:function(){r(""),a.current.focus()}}),!o&&Object(u.createElement)(so.a,{icon:uo.a})))};var fo=function(e){var t=e.blockType;return Object(u.createElement)("div",{className:"block-editor-block-card"},Object(u.createElement)(qn,{icon:t.icon,showColors:!0}),Object(u.createElement)("div",{className:"block-editor-block-card__content"},Object(u.createElement)("h2",{className:"block-editor-block-card__title"},t.title),Object(u.createElement)("span",{className:"block-editor-block-card__description"},t.description)))},po={insertUsage:{}},mo={alignWide:!1,colors:[{name:Object(g.__)("Black"),slug:"black",color:"#000000"},{name:Object(g.__)("Cyan bluish gray"),slug:"cyan-bluish-gray",color:"#abb8c3"},{name:Object(g.__)("White"),slug:"white",color:"#ffffff"},{name:Object(g.__)("Pale pink"),slug:"pale-pink",color:"#f78da7"},{name:Object(g.__)("Vivid red"),slug:"vivid-red",color:"#cf2e2e"},{name:Object(g.__)("Luminous vivid orange"),slug:"luminous-vivid-orange",color:"#ff6900"},{name:Object(g.__)("Luminous vivid amber"),slug:"luminous-vivid-amber",color:"#fcb900"},{name:Object(g.__)("Light green cyan"),slug:"light-green-cyan",color:"#7bdcb5"},{name:Object(g.__)("Vivid green cyan"),slug:"vivid-green-cyan",color:"#00d084"},{name:Object(g.__)("Pale cyan blue"),slug:"pale-cyan-blue",color:"#8ed1fc"},{name:Object(g.__)("Vivid cyan blue"),slug:"vivid-cyan-blue",color:"#0693e3"},{name:Object(g.__)("Vivid purple"),slug:"vivid-purple",color:"#9b51e0"}],fontSizes:[{name:Object(g._x)("Small","font size name"),size:13,slug:"small"},{name:Object(g._x)("Normal","font size name"),size:16,slug:"normal"},{name:Object(g._x)("Medium","font size name"),size:20,slug:"medium"},{name:Object(g._x)("Large","font size name"),size:36,slug:"large"},{name:Object(g._x)("Huge","font size name"),size:42,slug:"huge"}],imageSizes:[{slug:"thumbnail",name:Object(g.__)("Thumbnail")},{slug:"medium",name:Object(g.__)("Medium")},{slug:"large",name:Object(g.__)("Large")},{slug:"full",name:Object(g.__)("Full Size")}],imageEditing:!0,maxWidth:580,allowedBlockTypes:!0,maxUploadFileSize:0,allowedMimeTypes:null,availableLegacyWidgets:{},__experimentalCanUserUseUnfilteredHTML:!1,__experimentalBlockDirectory:!1,__experimentalEnableFullSiteEditing:!1,__experimentalEnableFullSiteEditingDemo:!1,__mobileEnablePageTemplates:!1,__experimentalBlockPatterns:[],__experimentalBlockPatternCategories:[],__experimentalSpotlightEntityBlocks:[],gradients:[{name:Object(g.__)("Vivid cyan blue to vivid purple"),gradient:"linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)",slug:"vivid-cyan-blue-to-vivid-purple"},{name:Object(g.__)("Light green cyan to vivid green cyan"),gradient:"linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%)",slug:"light-green-cyan-to-vivid-green-cyan"},{name:Object(g.__)("Luminous vivid amber to luminous vivid orange"),gradient:"linear-gradient(135deg,rgba(252,185,0,1) 0%,rgba(255,105,0,1) 100%)",slug:"luminous-vivid-amber-to-luminous-vivid-orange"},{name:Object(g.__)("Luminous vivid orange to vivid red"),gradient:"linear-gradient(135deg,rgba(255,105,0,1) 0%,rgb(207,46,46) 100%)",slug:"luminous-vivid-orange-to-vivid-red"},{name:Object(g.__)("Very light gray to cyan bluish gray"),gradient:"linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)",slug:"very-light-gray-to-cyan-bluish-gray"},{name:Object(g.__)("Cool to warm spectrum"),gradient:"linear-gradient(135deg,rgb(74,234,220) 0%,rgb(151,120,209) 20%,rgb(207,42,186) 40%,rgb(238,44,130) 60%,rgb(251,105,98) 80%,rgb(254,248,76) 100%)",slug:"cool-to-warm-spectrum"},{name:Object(g.__)("Blush light purple"),gradient:"linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%)",slug:"blush-light-purple"},{name:Object(g.__)("Blush bordeaux"),gradient:"linear-gradient(135deg,rgb(254,205,165) 0%,rgb(254,45,45) 50%,rgb(107,0,62) 100%)",slug:"blush-bordeaux"},{name:Object(g.__)("Luminous dusk"),gradient:"linear-gradient(135deg,rgb(255,203,112) 0%,rgb(199,81,192) 50%,rgb(65,88,208) 100%)",slug:"luminous-dusk"},{name:Object(g.__)("Pale ocean"),gradient:"linear-gradient(135deg,rgb(255,245,203) 0%,rgb(182,227,212) 50%,rgb(51,167,181) 100%)",slug:"pale-ocean"},{name:Object(g.__)("Electric grass"),gradient:"linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%)",slug:"electric-grass"},{name:Object(g.__)("Midnight"),gradient:"linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%)",slug:"midnight"}]};function vo(e,t,n){return[].concat(Object(ne.a)(e.slice(0,n)),Object(ne.a)(Object(f.castArray)(t)),Object(ne.a)(e.slice(n)))}function Oo(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=Object(ne.a)(e);return o.splice(t,r),vo(o,e.slice(t,t+r),n)}function go(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ho(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?go(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):go(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Object(s.a)({},t,[]);return e.forEach((function(e){var r=e.clientId,o=e.innerBlocks;n[t].push(r),Object.assign(n,jo(o,r))})),n}function ko(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.reduce((function(e,n){return Object.assign(e,Object(s.a)({},n.clientId,t),ko(n.innerBlocks,n.clientId))}),{})}function yo(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.identity,n={},r=Object(ne.a)(e);r.length;){var o=r.shift(),c=o.innerBlocks,i=Object(he.a)(o,["innerBlocks"]);r.push.apply(r,Object(ne.a)(c)),n[i.clientId]=t(i)}return n}function _o(e){return yo(e,(function(e){return Object(f.omit)(e,"attributes")}))}function Eo(e){return yo(e,(function(e){return e.attributes}))}function Co(e,t){return e===t?ho({},e):t}function wo(e,t){return"UPDATE_BLOCK_ATTRIBUTES"===e.type&&void 0!==t&&"UPDATE_BLOCK_ATTRIBUTES"===t.type&&Object(f.isEqual)(e.clientIds,t.clientIds)&&(n=e.attributes,r=t.attributes,Object(f.isEqual)(Object(f.keys)(n),Object(f.keys)(r)));var n,r}var So=function(e){return e.reduce((function(e,t){return e[t]={},e}),{})};var Io=Object(f.flow)(v.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=ho({},t)).attributes=Object(f.mapValues)(t.attributes,(function(e,n){return"core/block"===t.byClientId[n].name&&e.ref===r?ho(ho({},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&&!t.controlledInnerBlocks[r]);return e}),[])};switch(n.type){case"RESET_BLOCKS":r.cache=Object(f.mapValues)(yo(n.blocks),(function(){return{}}));break;case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":var c=Object(f.keys)(yo(n.blocks));n.rootClientId&&!t.controlledInnerBlocks[n.rootClientId]&&c.push(n.rootClientId),r.cache=ho(ho({},r.cache),So(o(c)));break;case"UPDATE_BLOCK":r.cache=ho(ho({},r.cache),So(o([n.clientId])));break;case"UPDATE_BLOCK_ATTRIBUTES":r.cache=ho(ho({},r.cache),So(o(n.clientIds)));break;case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":var i=So(o(n.replacedClientIds));r.cache=ho(ho(ho({},Object(f.omit)(r.cache,n.replacedClientIds)),Object(f.omit)(i,n.replacedClientIds)),So(Object(f.keys)(yo(n.blocks))));break;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":r.cache=ho(ho({},Object(f.omit)(r.cache,n.removedClientIds)),So(Object(f.difference)(o(n.clientIds),n.clientIds)));break;case"MOVE_BLOCKS_TO_POSITION":var a=Object(ne.a)(n.clientIds);n.fromRootClientId&&a.push(n.fromRootClientId),n.toRootClientId&&a.push(n.toRootClientId),r.cache=ho(ho({},r.cache),So(o(a)));break;case"MOVE_BLOCKS_UP":case"MOVE_BLOCKS_DOWN":var l=[];n.rootClientId&&l.push(n.rootClientId),r.cache=ho(ho({},r.cache),So(o(l)));break;case"SAVE_REUSABLE_BLOCK_SUCCESS":var s=Object(f.keys)(Object(f.omitBy)(r.attributes,(function(e,t){return"core/block"!==r.byClientId[t].name||e.ref!==n.updatedId})));r.cache=ho(ho({},r.cache),So(o(s)))}return r}}),(function(e){return function(t,n){var r=function(e){for(var r=e,o=0;o<r.length;o++){var c;!t.order[r[o]]||n.keepControlledInnerBlocks&&n.keepControlledInnerBlocks[r[o]]||(r===e&&(r=Object(ne.a)(r)),(c=r).push.apply(c,Object(ne.a)(t.order[r[o]])))}return r};if(t)switch(n.type){case"REMOVE_BLOCKS":n=ho(ho({},n),{},{type:"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN",removedClientIds:r(n.clientIds)});break;case"REPLACE_BLOCKS":n=ho(ho({},n),{},{type:"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN",replacedClientIds:r(n.clientIds)})}return e(t,n)}}),(function(e){return function(t,n){if("REPLACE_INNER_BLOCKS"!==n.type)return e(t,n);var r={};if(Object.keys(t.controlledInnerBlocks).length)for(var o=Object(ne.a)(n.blocks);o.length;){var c=o.shift(),i=c.innerBlocks,a=Object(he.a)(c,["innerBlocks"]);o.push.apply(o,Object(ne.a)(i)),t.controlledInnerBlocks[a.clientId]&&(r[a.clientId]=!0)}var l=t;t.order[n.rootClientId]&&(l=e(l,{type:"REMOVE_BLOCKS",keepControlledInnerBlocks:r,clientIds:t.order[n.rootClientId]}));var s=l;return n.blocks.length&&((s=e(s,ho(ho({},n),{},{type:"INSERT_BLOCKS",index:0}))).order=ho(ho({},s.order),Object(f.reduce)(r,(function(e,n,r){return t.order[r]&&(e[r]=t.order[r]),e}),{}))),s}}),(function(e){return function(t,n){if(t&&"RESET_BLOCKS"===n.type){var r=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object(f.reduce)(t[n],(function(n,o){return r[o]?n:[].concat(Object(ne.a)(n),[o],Object(ne.a)(e(t,o)))}),[])}(t.order,"",t.controlledInnerBlocks),o=Object.keys(Object(f.pickBy)(t.controlledInnerBlocks));return ho(ho({},t),{},{byClientId:ho(ho({},Object(f.omit)(t.byClientId,r)),_o(n.blocks)),attributes:ho(ho({},Object(f.omit)(t.attributes,r)),Eo(n.blocks)),order:ho(ho({},Object(f.omit)(t.order,r)),Object(f.omit)(jo(n.blocks),o)),parents:ho(ho({},Object(f.omit)(t.parents,r)),ko(n.blocks)),cache:ho(ho({},Object(f.omit)(t.cache,r)),Object(f.omit)(Object(f.mapValues)(yo(n.blocks),(function(){return{}})),o))})}return e(t,n)}}),(function(e){var t,n=!1;return function(r,o){var c=e(r,o),i="MARK_LAST_CHANGE_AS_PERSISTENT"===o.type||n;if(r===c&&!i){var a;n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===o.type;var l=null===(a=null==r?void 0:r.isPersistentChange)||void 0===a||a;return r.isPersistentChange===l?r:ho(ho({},c),{},{isPersistentChange:l})}return c=ho(ho({},c),{},{isPersistentChange:i?!n:!wo(o,t)}),t=o,n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===o.type,c}}),(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 _o(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return ho(ho({},e),_o(t.blocks));case"UPDATE_BLOCK":if(!e[t.clientId])return e;var n=Object(f.omit)(t.updates,"attributes");return Object(f.isEmpty)(n)?e:ho(ho({},e),{},Object(s.a)({},t.clientId,ho(ho({},e[t.clientId]),n)));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?ho(ho({},Object(f.omit)(e,t.replacedClientIds)),_o(t.blocks)):e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(f.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 Eo(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return ho(ho({},e),Eo(t.blocks));case"UPDATE_BLOCK":return e[t.clientId]&&t.updates.attributes?ho(ho({},e),{},Object(s.a)({},t.clientId,ho(ho({},e[t.clientId]),t.updates.attributes))):e;case"UPDATE_BLOCK_ATTRIBUTES":if(t.clientIds.every((function(t){return!e[t]})))return e;var n=t.clientIds.reduce((function(n,r){return ho(ho({},n),{},Object(s.a)({},r,Object(f.reduce)(t.attributes,(function(t,n,o){return n!==t[o]&&((t=Co(e[r],t))[o]=n),t}),e[r])))}),{});return t.clientIds.every((function(t){return n[t]===e[t]}))?e:ho(ho({},e),n);case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?ho(ho({},Object(f.omit)(e,t.replacedClientIds)),Eo(t.blocks)):e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(f.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 jo(t.blocks);case"RECEIVE_BLOCKS":return ho(ho({},e),Object(f.omit)(jo(t.blocks),""));case"INSERT_BLOCKS":var n=t.rootClientId,r=void 0===n?"":n,o=e[r]||[],c=jo(t.blocks,r),i=t.index,a=void 0===i?o.length:i;return ho(ho(ho({},e),c),{},Object(s.a)({},r,vo(o,c[r],a)));case"MOVE_BLOCKS_TO_POSITION":var l,u=t.fromRootClientId,d=void 0===u?"":u,b=t.toRootClientId,p=void 0===b?"":b,m=t.clientIds,v=t.index,O=void 0===v?e[p].length:v;if(d===p){var g=e[p],h=g.indexOf(m[0]);return ho(ho({},e),{},Object(s.a)({},p,Oo(e[p],h,O,m.length)))}return ho(ho({},e),{},(l={},Object(s.a)(l,d,f.without.apply(void 0,[e[d]].concat(Object(ne.a)(m)))),Object(s.a)(l,p,vo(e[p],m,O)),l));case"MOVE_BLOCKS_UP":var j=t.clientIds,k=t.rootClientId,y=void 0===k?"":k,_=Object(f.first)(j),E=e[y];if(!E.length||_===Object(f.first)(E))return e;var C=E.indexOf(_);return ho(ho({},e),{},Object(s.a)({},y,Oo(E,C,C-1,j.length)));case"MOVE_BLOCKS_DOWN":var w=t.clientIds,S=t.rootClientId,I=void 0===S?"":S,B=Object(f.first)(w),x=Object(f.last)(w),P=e[I];if(!P.length||x===Object(f.last)(P))return e;var T=P.indexOf(B);return ho(ho({},e),{},Object(s.a)({},I,Oo(P,T,T+1,w.length)));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":var N=t.clientIds;if(!t.blocks)return e;var D=jo(t.blocks);return Object(f.flow)([function(e){return Object(f.omit)(e,t.replacedClientIds)},function(e){return ho(ho({},e),Object(f.omit)(D,""))},function(e){return Object(f.mapValues)(e,(function(e){return Object(f.reduce)(e,(function(e,t){return t===N[0]?[].concat(Object(ne.a)(e),Object(ne.a)(D[""])):(-1===N.indexOf(t)&&e.push(t),e)}),[])}))}])(e);case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(f.flow)([function(e){return Object(f.omit)(e,t.removedClientIds)},function(e){return Object(f.mapValues)(e,(function(e){return f.without.apply(void 0,[e].concat(Object(ne.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 ko(t.blocks);case"RECEIVE_BLOCKS":return ho(ho({},e),ko(t.blocks));case"INSERT_BLOCKS":return ho(ho({},e),ko(t.blocks,t.rootClientId||""));case"MOVE_BLOCKS_TO_POSITION":return ho(ho({},e),t.clientIds.reduce((function(e,n){return e[n]=t.toRootClientId||"",e}),{}));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return ho(ho({},Object(f.omit)(e,t.replacedClientIds)),ko(t.blocks,e[t.clientIds[0]]));case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(f.omit)(e,t.removedClientIds)}return e},controlledInnerBlocks:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.clientId,o=t.hasControlledInnerBlocks;return"SET_HAS_CONTROLLED_INNER_BLOCKS"===n?ho(ho({},e),{},Object(s.a)({},r,o)):e}});function Bo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"CLEAR_SELECTED_BLOCK":return e.clientId?{}:e;case"SELECT_BLOCK":return t.clientId===e.clientId?e:{clientId:t.clientId};case"REPLACE_INNER_BLOCKS":case"INSERT_BLOCKS":return t.updateSelection&&t.blocks.length?{clientId:t.blocks[0].clientId}:e;case"REMOVE_BLOCKS":return t.clientIds&&t.clientIds.length&&-1!==t.clientIds.indexOf(e.clientId)?{}:e;case"REPLACE_BLOCKS":if(-1===t.clientIds.indexOf(e.clientId))return e;var n=t.indexToSelect||t.blocks.length-1,r=t.blocks[n];if(!r)return{};if(r.clientId===e.clientId)return e;var o={clientId:r.clientId};return"number"==typeof t.initialPosition&&(o.initialPosition=t.initialPosition),o}return e}var xo=Object(v.combineReducers)({blocks:Io,isTyping:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_TYPING":return!0;case"STOP_TYPING":return!1}return e},draggedBlocks:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_DRAGGING_BLOCKS":return t.clientIds;case"STOP_DRAGGING_BLOCKS":return[]}return e},isCaretWithinFormattedText:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ENTER_FORMATTED_TEXT":return!0;case"EXIT_FORMATTED_TEXT":return!1}return e},selectionStart:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SELECTION_CHANGE":return{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.startOffset};case"RESET_SELECTION":return t.selectionStart;case"MULTI_SELECT":return{clientId:t.start}}return Bo(e,t)},selectionEnd:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SELECTION_CHANGE":return{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.endOffset};case"RESET_SELECTION":return t.selectionEnd;case"MULTI_SELECT":return{clientId:t.end}}return Bo(e,t)},isMultiSelecting:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_MULTI_SELECT":return!0;case"STOP_MULTI_SELECT":return!1}return e},isSelectionEnabled:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"TOGGLE_SELECTION":return t.isSelectionEnabled}return e},initialPosition:function(e,t){return"REPLACE_BLOCKS"===t.type&&"number"==typeof t.initialPosition||"SELECT_BLOCK"===t.type?t.initialPosition:"REMOVE_BLOCKS"===t.type||"START_TYPING"===t.type?e:void 0},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 ho(ho({},e),{},Object(s.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(f.omit)(e,t.clientIds);case"UPDATE_BLOCK_LIST_SETTINGS":var n=t.clientId;return t.settings?Object(f.isEqual)(e[n],t.settings)?e:ho(ho({},e),{},Object(s.a)({},n,t.settings)):e.hasOwnProperty(n)?Object(f.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":var n=t.rootClientId,r=t.index;return{rootClientId:n,index:r};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 ho(ho({},e),{},{isValid:t.isValid})}return e},settings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:mo,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_SETTINGS":return ho(ho({},e),t.settings)}return e},preferences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:po,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(c.isReusableBlock)(n)&&(o.ref=n.attributes.ref,r+="/"+n.attributes.ref),ho(ho({},e),{},{insertUsage:ho(ho({},e.insertUsage),{},Object(s.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(s.a)({},t.clientId,t.updates.attributes);case"UPDATE_BLOCK_ATTRIBUTES":return t.clientIds.reduce((function(e,n){return ho(ho({},e),{},Object(s.a)({},n,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"INSERT_BLOCKS"!==t.type&&("SET_NAVIGATION_MODE"===t.type?t.isNavigationMode:e)},hasBlockMovingClientId:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return"SET_BLOCK_MOVING_MODE"===t.type?t.hasBlockMovingClientId:e},automaticChangeStatus:function(e,t){switch(t.type){case"MARK_AUTOMATIC_CHANGE":return"pending";case"MARK_AUTOMATIC_CHANGE_FINAL":return"pending"===e?"final":void 0;case"SELECTION_CHANGE":return"final"!==e?e:void 0;case"STOP_TYPING":return e}},highlightedBlock:function(e,t){switch(t.type){case"TOGGLE_BLOCK_HIGHLIGHT":var n=t.clientId;return t.isHighlighted?n:e===n?null:e;case"SELECT_BLOCK":if(t.clientId!==e)return null}return e}}),Po=n(150),To=n.n(Po),No=n(277),Do=n.n(No),Ro=n(40);function Ao(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Mo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Mo(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}function Mo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Lo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lo(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Vo=Or.a.mark(ec),Ho=Or.a.mark(ac),zo=Or.a.mark(lc),Uo=Or.a.mark(mc),Go=Or.a.mark(jc),Ko=Or.a.mark(kc),Wo=Or.a.mark(_c),qo=Or.a.mark(Bc),$o=Or.a.mark(qc),Yo=Or.a.mark($c),Xo=Or.a.mark(Yc),Qo=Or.a.mark(Xc),Zo=Or.a.mark(Qc),Jo=Or.a.mark(Jc);function ec(){return Or.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,v.controls.select("core/block-editor","getBlockCount");case 2:if(0!==e.sent){e.next=7;break}return e.next=6,Vc();case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}}),Vo)}function tc(e){return{type:"RESET_BLOCKS",blocks:e}}function nc(e,t){return{type:"RESET_SELECTION",selectionStart:e,selectionEnd:t}}function rc(e){return{type:"RECEIVE_BLOCKS",blocks:e}}function oc(e,t){return{type:"UPDATE_BLOCK_ATTRIBUTES",clientIds:Object(f.castArray)(e),attributes:t}}function cc(e,t){return{type:"UPDATE_BLOCK",clientId:e,updates:t}}function ic(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:"SELECT_BLOCK",initialPosition:t,clientId:e}}function ac(e){var t;return Or.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,v.controls.select("core/block-editor","getPreviousBlockClientId",e);case 2:if(!(t=n.sent)){n.next=7;break}return n.next=6,ic(t,-1);case 6:return n.abrupt("return",[t]);case 7:case"end":return n.stop()}}),Ho)}function lc(e){var t;return Or.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,v.controls.select("core/block-editor","getNextBlockClientId",e);case 2:if(!(t=n.sent)){n.next=7;break}return n.next=6,ic(t);case 6:return n.abrupt("return",[t]);case 7:case"end":return n.stop()}}),zo)}function sc(){return{type:"START_MULTI_SELECT"}}function uc(){return{type:"STOP_MULTI_SELECT"}}function dc(e,t){return{type:"MULTI_SELECT",start:e,end:t}}function bc(){return{type:"CLEAR_SELECTED_BLOCK"}}function fc(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return{type:"TOGGLE_SELECTION",isSelectionEnabled:e}}function pc(e,t){var n,r,o=null!==(n=null==t||null===(r=t.__experimentalPreferredStyleVariations)||void 0===r?void 0:r.value)&&void 0!==n?n:{};return e.map((function(e){var t,n=e.name;if(!Object(c.hasBlockSupport)(n,"defaultStylePicker",!0))return e;if(!o[n])return e;var r=null===(t=e.attributes)||void 0===t?void 0:t.className;if(null==r?void 0:r.includes("is-style-"))return e;var i=e.attributes,a=void 0===i?{}:i,l=o[n];return Fo(Fo({},e),{},{attributes:Fo(Fo({},a),{},{className:"".concat(r||""," is-style-").concat(l).trim()})})}))}function mc(e,t,n,r,o){var c,i,a;return Or.a.wrap((function(l){for(;;)switch(l.prev=l.next){case 0:return e=Object(f.castArray)(e),l.t0=pc,l.t1=Object(f.castArray)(t),l.next=5,v.controls.select("core/block-editor","getSettings");case 5:return l.t2=l.sent,t=(0,l.t0)(l.t1,l.t2),l.next=9,v.controls.select("core/block-editor","getBlockRootClientId",Object(f.first)(e));case 9:c=l.sent,i=0;case 11:if(!(i<t.length)){l.next=21;break}return a=t[i],l.next=15,v.controls.select("core/block-editor","canInsertBlockType",a.name,c);case 15:if(l.sent){l.next=18;break}return l.abrupt("return");case 18:i++,l.next=11;break;case 21:return l.next=23,{type:"REPLACE_BLOCKS",clientIds:e,blocks:t,time:Date.now(),indexToSelect:n,initialPosition:r,meta:o};case 23:return l.delegateYield(ec(),"t3",24);case 24:case"end":return l.stop()}}),Uo)}function vc(e,t){return mc(e,t)}function Oc(e){return function(t,n){return{clientIds:Object(f.castArray)(t),type:e,rootClientId:n}}}var gc=Oc("MOVE_BLOCKS_DOWN"),hc=Oc("MOVE_BLOCKS_UP");function jc(e){var t,n,r,o,c,i=arguments;return Or.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=i.length>1&&void 0!==i[1]?i[1]:"",n=i.length>2&&void 0!==i[2]?i[2]:"",r=i.length>3?i[3]:void 0,a.next=5,v.controls.select("core/block-editor","getTemplateLock",t);case 5:if("all"!==(o=a.sent)){a.next=8;break}return a.abrupt("return");case 8:if(c={type:"MOVE_BLOCKS_TO_POSITION",fromRootClientId:t,toRootClientId:n,clientIds:e,index:r},t!==n){a.next=13;break}return a.next=12,c;case 12:return a.abrupt("return");case 13:if("insert"!==o){a.next=15;break}return a.abrupt("return");case 15:return a.next=17,v.controls.select("core/block-editor","canInsertBlocks",e,n);case 17:if(!a.sent){a.next=21;break}return a.next=21,c;case 21:case"end":return a.stop()}}),Go)}function kc(e){var t,n,r,o=arguments;return Or.a.wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return t=o.length>1&&void 0!==o[1]?o[1]:"",n=o.length>2&&void 0!==o[2]?o[2]:"",r=o.length>3?o[3]:void 0,c.next=5,jc([e],t,n,r);case 5:case"end":return c.stop()}}),Ko)}function yc(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return _c([e],t,n,r)}function _c(e,t,n){var r,o,c,i,a,l,s=arguments;return Or.a.wrap((function(u){for(;;)switch(u.prev=u.next){case 0:return r=!(s.length>3&&void 0!==s[3])||s[3],o=s.length>4?s[4]:void 0,u.t0=pc,u.t1=Object(f.castArray)(e),u.next=6,v.controls.select("core/block-editor","getSettings");case 6:u.t2=u.sent,e=(0,u.t0)(u.t1,u.t2),c=[],i=Ao(e),u.prev=10,i.s();case 12:if((a=i.n()).done){u.next=20;break}return l=a.value,u.next=16,v.controls.select("core/block-editor","canInsertBlockType",l.name,n);case 16:u.sent&&c.push(l);case 18:u.next=12;break;case 20:u.next=25;break;case 22:u.prev=22,u.t3=u.catch(10),i.e(u.t3);case 25:return u.prev=25,i.f(),u.finish(25);case 28:if(!c.length){u.next=30;break}return u.abrupt("return",{type:"INSERT_BLOCKS",blocks:c,index:t,rootClientId:n,time:Date.now(),updateSelection:r,meta:o});case 30:case"end":return u.stop()}}),Wo,null,[[10,22,25,28]])}function Ec(e,t){return{type:"SHOW_INSERTION_POINT",rootClientId:e,index:t}}function Cc(){return{type:"HIDE_INSERTION_POINT"}}function wc(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}function Sc(){return{type:"SYNCHRONIZE_TEMPLATE"}}function Ic(e,t){return{type:"MERGE_BLOCKS",blocks:[e,t]}}function Bc(e){var t,n,r,o,c=arguments;return Or.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(t=!(c.length>1&&void 0!==c[1])||c[1],e&&e.length){i.next=3;break}return i.abrupt("return");case 3:return e=Object(f.castArray)(e),i.next=6,v.controls.select("core/block-editor","getBlockRootClientId",e[0]);case 6:return n=i.sent,i.next=9,v.controls.select("core/block-editor","getTemplateLock",n);case 9:if(!i.sent){i.next=12;break}return i.abrupt("return");case 12:if(!t){i.next=18;break}return i.next=15,ac(e[0]);case 15:r=i.sent,i.next=21;break;case 18:return i.next=20,v.controls.select("core/block-editor","getPreviousBlockClientId",e[0]);case 20:r=i.sent;case 21:return i.next=23,{type:"REMOVE_BLOCKS",clientIds:e};case 23:return i.delegateYield(ec(),"t0",24);case 24:return o=i.t0,i.abrupt("return",[r||o]);case 26:case"end":return i.stop()}}),qo)}function xc(e,t){return Bc([e],t)}function Pc(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return{type:"REPLACE_INNER_BLOCKS",rootClientId:e,blocks:t,updateSelection:n,time:Date.now()}}function Tc(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function Nc(){return{type:"START_TYPING"}}function Dc(){return{type:"STOP_TYPING"}}function Rc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{type:"START_DRAGGING_BLOCKS",clientIds:e}}function Ac(){return{type:"STOP_DRAGGING_BLOCKS"}}function Mc(){return{type:"ENTER_FORMATTED_TEXT"}}function Lc(){return{type:"EXIT_FORMATTED_TEXT"}}function Fc(e,t,n,r){return{type:"SELECTION_CHANGE",clientId:e,attributeKey:t,startOffset:n,endOffset:r}}function Vc(e,t,n){var r=Object(c.getDefaultBlockName)();if(r)return yc(Object(c.createBlock)(r,e),n,t)}function Hc(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function zc(e){return{type:"UPDATE_SETTINGS",settings:e}}function Uc(e,t){return{type:"SAVE_REUSABLE_BLOCK_SUCCESS",id:e,updatedId:t}}function Gc(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}function Kc(){return{type:"MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"}}function Wc(){return{type:"MARK_AUTOMATIC_CHANGE"}}function qc(){var e,t=arguments;return Or.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e=!(t.length>0&&void 0!==t[0])||t[0],n.next=3,{type:"SET_NAVIGATION_MODE",isNavigationMode:e};case 3:e?Object(Le.speak)(Object(g.__)("You are currently in navigation mode. Navigate blocks using the Tab key and Arrow keys. Use Left and Right Arrow keys to move between nesting levels. To exit navigation mode and edit the selected block, press Enter.")):Object(Le.speak)(Object(g.__)("You are currently in edit mode. To return to the navigation mode, press Escape."));case 4:case"end":return n.stop()}}),$o)}function $c(){var e,t=arguments;return Or.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e=t.length>0&&void 0!==t[0]?t[0]:null,n.next=3,{type:"SET_BLOCK_MOVING_MODE",hasBlockMovingClientId:e};case 3:e&&Object(Le.speak)(Object(g.__)("Use the Tab key and Arrow keys to choose new block location. Use Left and Right Arrow keys to move between nesting levels. Once location is selected press Enter or Space to move the block."));case 4:case"end":return n.stop()}}),Yo)}function Yc(e){var t,n,r,o,i,a,l=arguments;return Or.a.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:if(t=!(l.length>1&&void 0!==l[1])||l[1],e||e.length){s.next=3;break}return s.abrupt("return");case 3:return s.next=5,v.controls.select("core/block-editor","getBlocksByClientId",e);case 5:return n=s.sent,s.next=8,v.controls.select("core/block-editor","getBlockRootClientId",e[0]);case 8:if(r=s.sent,!Object(f.some)(n,(function(e){return!e}))){s.next=11;break}return s.abrupt("return");case 11:if(o=n.map((function(e){return e.name})),!Object(f.some)(o,(function(e){return!Object(c.hasBlockSupport)(e,"multiple",!0)}))){s.next=14;break}return s.abrupt("return");case 14:return s.next=16,v.controls.select("core/block-editor","getBlockIndex",Object(f.last)(Object(f.castArray)(e)),r);case 16:return i=s.sent,a=n.map((function(e){return Object(c.cloneBlock)(e)})),s.next=20,_c(a,i+1,r,t);case 20:if(!(a.length>1&&t)){s.next=23;break}return s.next=23,dc(Object(f.first)(a).clientId,Object(f.last)(a).clientId);case 23:return s.abrupt("return",a.map((function(e){return e.clientId})));case 24:case"end":return s.stop()}}),Xo)}function Xc(e){var t,n;return Or.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e){r.next=2;break}return r.abrupt("return");case 2:return r.next=4,v.controls.select("core/block-editor","getBlockRootClientId",e);case 4:return t=r.sent,r.next=7,v.controls.select("core/block-editor","getTemplateLock",t);case 7:if(!r.sent){r.next=10;break}return r.abrupt("return");case 10:return r.next=12,v.controls.select("core/block-editor","getBlockIndex",e,t);case 12:return n=r.sent,r.next=15,Vc({},t,n);case 15:return r.abrupt("return",r.sent);case 16:case"end":return r.stop()}}),Qo)}function Qc(e){var t,n;return Or.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e){r.next=2;break}return r.abrupt("return");case 2:return r.next=4,v.controls.select("core/block-editor","getBlockRootClientId",e);case 4:return t=r.sent,r.next=7,v.controls.select("core/block-editor","getTemplateLock",t);case 7:if(!r.sent){r.next=10;break}return r.abrupt("return");case 10:return r.next=12,v.controls.select("core/block-editor","getBlockIndex",e,t);case 12:return n=r.sent,r.next=15,Vc({},t,n+1);case 15:return r.abrupt("return",r.sent);case 16:case"end":return r.stop()}}),Zo)}function Zc(e,t){return{type:"TOGGLE_BLOCK_HIGHLIGHT",clientId:e,isHighlighted:t}}function Jc(e){return Or.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Zc(e,!0);case 2:return t.next=4,{type:"SLEEP",duration:150};case 4:return t.next=6,Zc(e,!1);case 6:case"end":return t.stop()}}),Jo)}function ei(e,t){return{type:"SET_HAS_CONTROLLED_INNER_BLOCKS",hasControlledInnerBlocks:t,clientId:e}}var ti=n(42);function ni(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return ri(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ri(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}function ri(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function oi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ci(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oi(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ii=Object(u.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(h.Rect,{x:"0",fill:"none",width:"24",height:"24"}),Object(u.createElement)(h.G,null,Object(u.createElement)(h.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"}))),ai=[];function li(e,t){var n=e.blocks.byClientId[t];if("web"!==u.Platform.OS&&"core/social-link"===(null==n?void 0:n.name)){var r=e.blocks.attributes[t].service;return r?"".concat("core/social-link","-").concat(r):"core/social-link"}return n?n.name:null}function si(e,t){var n=e.blocks.byClientId[t];return!!n&&n.isValid}function ui(e,t){return e.blocks.byClientId[t]?e.blocks.attributes[t]:null}var di=Object(ti.a)((function(e,t){var n=e.blocks.byClientId[t];return n?ci(ci({},n),{},{attributes:ui(e,t),innerBlocks:Ra(e,t)?ai:fi(e,t)}):null}),(function(e,t){return[e.blocks.cache[t]]})),bi=Object(ti.a)((function(e,t){var n=e.blocks.byClientId[t];return n?ci(ci({},n),{},{attributes:ui(e,t)}):null}),(function(e,t){return[e.blocks.byClientId[t],e.blocks.attributes[t]]})),fi=Object(ti.a)((function(e,t){return Object(f.map)($i(e,t),(function(t){return di(e,t)}))}),(function(e,t){return Object(f.map)(e.blocks.order[t||""],(function(t){return e.blocks.cache[t]}))})),pi=Object(ti.a)((function(e,t){var n=e.blocks.byClientId[t];return n?ci(ci({},n),{},{attributes:ui(e,t),innerBlocks:mi(e,t)}):null}),(function(e){return[e.blocks.byClientId,e.blocks.order,e.blocks.attributes]})),mi=Object(ti.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object(f.map)($i(e,t),(function(t){return pi(e,t)}))}),(function(e){return[e.blocks.byClientId,e.blocks.order,e.blocks.attributes]})),vi=function e(t,n){return Object(f.flatMap)(n,(function(n){var r=$i(t,n);return[].concat(Object(ne.a)(r),Object(ne.a)(e(t,r)))}))},Oi=Object(ti.a)((function(e){var t=$i(e);return[].concat(Object(ne.a)(t),Object(ne.a)(vi(e,t)))}),(function(e){return[e.blocks.order]})),gi=Object(ti.a)((function(e,t){var n=Oi(e);return t?Object(f.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]})),hi=Object(ti.a)((function(e,t){return Object(f.map)(Object(f.castArray)(t),(function(t){return di(e,t)}))}),(function(e){return[e.blocks.byClientId,e.blocks.order,e.blocks.attributes]}));function ji(e,t){return $i(e,t).length}function ki(e){return e.selectionStart}function yi(e){return e.selectionEnd}function _i(e){return e.selectionStart.clientId}function Ei(e){return e.selectionEnd.clientId}function Ci(e){var t=Fi(e).length;return t||(e.selectionStart.clientId?1:0)}function wi(e){var t=e.selectionStart,n=e.selectionEnd;return!!t.clientId&&t.clientId===n.clientId}function Si(e){var t=e.selectionStart,n=e.selectionEnd,r=t.clientId;return r&&r===n.clientId?r:null}function Ii(e){var t=Si(e);return t?di(e,t):null}function Bi(e,t){return void 0!==e.blocks.parents[t]?e.blocks.parents[t]:null}var xi=Object(ti.a)((function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=[],o=t;e.blocks.parents[o];)o=e.blocks.parents[o],r.push(o);return n?r:r.reverse()}),(function(e){return[e.blocks.parents]})),Pi=Object(ti.a)((function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=xi(e,t,r);return Object(f.map)(Object(f.filter)(Object(f.map)(o,(function(t){return{id:t,name:li(e,t)}})),(function(e){var t=e.name;return Array.isArray(n)?n.includes(t):t===n})),(function(e){return e.id}))}),(function(e){return[e.blocks.parents]}));function Ti(e,t){var n,r=t;do{n=r,r=e.blocks.parents[r]}while(r);return n}function Ni(e,t){for(var n,r=Si(e),o=[].concat(Object(ne.a)(xi(e,t)),[t]),c=[].concat(Object(ne.a)(xi(e,r)),[r]),i=Math.min(o.length,c.length),a=0;a<i&&o[a]===c[a];a++)n=o[a];return n}function Di(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(void 0===t&&(t=Si(e)),void 0===t&&(t=n<0?Hi(e):zi(e)),!t)return null;var r=Bi(e,t);if(null===r)return null;var o=e.blocks.order,c=o[r],i=c.indexOf(t),a=i+1*n;return a<0||a===c.length?null:c[a]}function Ri(e,t){return Di(e,t,-1)}function Ai(e,t){return Di(e,t,1)}function Mi(e){return e.initialPosition}var Li=Object(ti.a)((function(e){var t=e.selectionStart,n=e.selectionEnd;if(void 0===t.clientId||void 0===n.clientId)return ai;if(t.clientId===n.clientId)return[t.clientId];var r=Bi(e,t.clientId);if(null===r)return ai;var o=$i(e,r),c=o.indexOf(t.clientId),i=o.indexOf(n.clientId);return c>i?o.slice(i,c+1):o.slice(c,i+1)}),(function(e){return[e.blocks.order,e.selectionStart.clientId,e.selectionEnd.clientId]}));function Fi(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId===n.clientId?ai:Li(e)}var Vi=Object(ti.a)((function(e){var t=Fi(e);return t.length?t.map((function(t){return di(e,t)})):ai}),(function(e){return[].concat(Object(ne.a)(Li.getDependants(e)),[e.blocks.byClientId,e.blocks.order,e.blocks.attributes])}));function Hi(e){return Object(f.first)(Fi(e))||null}function zi(e){return Object(f.last)(Fi(e))||null}function Ui(e,t){return Hi(e)===t}function Gi(e,t){return-1!==Fi(e).indexOf(t)}var Ki=Object(ti.a)((function(e,t){for(var n=t,r=!1;n&&!r;)r=Gi(e,n=Bi(e,n));return r}),(function(e){return[e.blocks.order,e.selectionStart.clientId,e.selectionEnd.clientId]}));function Wi(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId===n.clientId?null:t.clientId||null}function qi(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId===n.clientId?null:n.clientId||null}function $i(e,t){return e.blocks.order[t||""]||ai}function Yi(e,t,n){return $i(e,n).indexOf(t)}function Xi(e,t){var n=e.selectionStart,r=e.selectionEnd;return n.clientId===r.clientId&&n.clientId===t}function Qi(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Object(f.some)($i(e,t),(function(t){return Xi(e,t)||Gi(e,t)||n&&Qi(e,t,n)}))}function Zi(e,t){if(!t)return!1;var n=Fi(e),r=n.indexOf(t);return r>-1&&r<n.length-1}function Ji(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId!==n.clientId}function ea(e){return e.isMultiSelecting}function ta(e){return e.isSelectionEnabled}function na(e,t){return e.blocksMode[t]||"visual"}function ra(e){return e.isTyping}function oa(e){return!!e.draggedBlocks.length}function ca(e){return e.draggedBlocks}function ia(e,t){return e.draggedBlocks.includes(t)}function aa(e,t){if(!oa(e))return!1;var n=xi(e,t);return Object(f.some)(n,(function(t){return ia(e,t)}))}function la(e){return e.isCaretWithinFormattedText}function sa(e){var t,n,r=e.insertionPoint,o=e.selectionEnd;if(null!==r)return r;var c=o.clientId;return c?(t=Bi(e,c)||void 0,n=Yi(e,o.clientId,t)+1):n=$i(e).length,{rootClientId:t,index:n}}function ua(e){return null!==e.insertionPoint}function da(e){return e.template.isValid}function ba(e){return e.settings.template}function fa(e,t){if(!t)return e.settings.templateLock;var n=_a(e,t);return n?n.templateLock:null}var pa=function(e,t){var n=arguments.length>2&&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(f.isBoolean)(e)?e:Object(f.isArray)(e)?!(!e.includes("core/post-content")||null!==t)||e.includes(t):n},o=Object(c.getBlockType)(t);if(!o)return!1;var i=Ea(e),a=i.allowedBlockTypes,l=r(a,t,!0);if(!l)return!1;var s=!!fa(e,n);if(s)return!1;var u=_a(e,n);if(n&&void 0===u)return!1;var d=null==u?void 0:u.allowedBlocks,b=r(d,t),p=o.parent,m=li(e,n),v=r(p,m);return null!==b&&null!==v?b||v:null!==b?b:null===v||v},ma=Object(ti.a)(pa,(function(e,t,n){return[e.blockListSettings[n],e.blocks.byClientId[n],e.settings.allowedBlockTypes,e.settings.templateLock]}));function va(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return t.every((function(t){return ma(e,li(e,t),n)}))}function Oa(e,t){var n,r;return null!==(n=null===(r=e.preferences.insertUsage)||void 0===r?void 0:r[t])&&void 0!==n?n:null}var ga=function(e,t,n){return!!Object(c.hasBlockSupport)(t,"inserter",!0)&&pa(e,t.name,n)},ha=function(e){return function(t){return ci(ci({},e),{},{id:"".concat(e.id,"-").concat(t.name),icon:t.icon||e.icon,title:t.title||e.title,description:t.description||e.description,example:t.hasOwnProperty("example")?t.example:e.example,initialAttributes:ci(ci({},e.initialAttributes),t.attributes),innerBlocks:t.innerBlocks,keywords:t.keywords||e.keywords})}},ja=Object(ti.a)((function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,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 n=t.name,o=!1;Object(c.hasBlockSupport)(t.name,"multiple",!0)||(o=Object(f.some)(hi(e,Oi(e)),{name:t.name}));var i=Oa(e,n)||{},a=i.time,l=i.count,s=void 0===l?0:l,u=t.variations.filter((function(e){var t=e.scope;return!t||t.includes("inserter")}));return{id:n,name:t.name,initialAttributes:{},title:t.title,description:t.description,icon:t.icon,category:t.category,keywords:t.keywords,variations:u,example:t.example,isDisabled:o,utility:1,frecency:r(a,s)}},i=function(t){var n,o="core/block/".concat(t.id),i=Sa(e,t.id);1===i.length&&(n=Object(c.getBlockType)(i[0].name));var a=Oa(e,o)||{},l=a.time,s=a.count,u=r(l,void 0===s?0:s);return{id:o,name:"core/block",initialAttributes:{ref:t.id},title:t.title.raw,icon:n?n.icon:ii,category:"reusable",keywords:[],isDisabled:!1,utility:1,frecency:u}},a=Object(c.getBlockTypes)().filter((function(t){return ga(e,t,n)})).map(o),l=pa(e,"core/block",n)?xa(e).map(i):[],s=a.filter((function(e){var t=e.variations;return!(void 0===t?[]:t).some((function(e){return e.isDefault}))})),u=[],d=ni(a);try{for(d.s();!(t=d.n()).done;){var b=t.value,p=b.variations,m=void 0===p?[]:p;if(m.length){var v=ha(b);u.push.apply(u,Object(ne.a)(m.map(v)))}}}catch(e){d.e(e)}finally{d.f()}return[].concat(Object(ne.a)(s),u,Object(ne.a)(l))}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.blocks.order,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,xa(e),Object(c.getBlockTypes)()]})),ka=Object(ti.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=Object(f.some)(Object(c.getBlockTypes)(),(function(n){return ga(e,n,t)}));if(n)return!0;var r=pa(e,"core/block",t)&&xa(e).length>0;return r}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,xa(e),Object(c.getBlockTypes)()]})),ya=Object(ti.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t)return Object(f.filter)(Object(c.getBlockTypes)(),(function(n){return ga(e,n,t)}))}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,Object(c.getBlockTypes)()]}));function _a(e,t){return e.blockListSettings[t]}function Ea(e){return e.settings}function Ca(e){return e.blocks.isPersistentChange}var wa=Object(ti.a)((function(e,t){return Object(f.filter)(e.blockListSettings,(function(e,n){return t.includes(n)}))}),(function(e){return[e.blockListSettings]})),Sa=Object(ti.a)((function(e,t){var n=Object(f.find)(xa(e),(function(e){return e.id===t}));return n?Object(c.parse)(n.content.raw||n.content):null}),(function(e){return[xa(e)]}));function Ia(e){return e.blocks.isIgnoredChange}function Ba(e){return e.lastBlockAttributesChange}function xa(e){var t,n;return null!==(t=null==e||null===(n=e.settings)||void 0===n?void 0:n.__experimentalReusableBlocks)&&void 0!==t?t:ai}function Pa(e){return e.isNavigationMode}function Ta(e){return e.hasBlockMovingClientId}function Na(e){return!!e.automaticChangeStatus}function Da(e,t){return e.highlightedBlock===t}function Ra(e,t){return!!e.blocks.controlledInnerBlocks[t]}var Aa=Object(ti.a)((function(e,t){if(!t.length)return null;var n=Si(e);if(t.includes(li(e,n)))return n;var r=Fi(e),o=Pi(e,n||r[0],t);return o?Object(f.last)(o):null}),(function(e,t){return[e.selectionStart.clientId,e.selectionEnd.clientId,t]}));function Ma(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function La(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ma(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ma(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Fa={MERGE_BLOCKS:function(e,t){var n=t.dispatch,r=t.getState(),o=Object(re.a)(e.blocks,2),a=o[0],l=o[1],s=di(r,a),u=Object(c.getBlockType)(s.name);if(u.merge){var d=di(r,l),b=Object(c.getBlockType)(d.name),p=ki(r),m=p.clientId,v=p.attributeKey,O=p.offset,g=(m===a?u:b).attributes[v],h=(m===a||m===l)&&void 0!==v&&void 0!==O&&!!g;g||("number"==typeof v?window.console.error("RichText needs an identifier prop that is the block attribute key of the attribute it controls. Its type is expected to be a string, but was ".concat(Object(Ro.a)(v))):window.console.error("The RichText identifier prop does not match any attributes defined by the block."));var j=Object(c.cloneBlock)(s),k=Object(c.cloneBlock)(d);if(h){var y=m===a?j:k,_=y.attributes[v],E=g.multiline,C=g.__unstableMultilineWrapperTags,w=g.__unstablePreserveWhiteSpace,S=Object(i.insert)(Object(i.create)({html:_,multilineTag:E,multilineWrapperTags:C,preserveWhiteSpace:w}),"",O,O);y.attributes[v]=Object(i.toHTMLString)({value:S,multilineTag:E,preserveWhiteSpace:w})}var I=s.name===d.name?[k]:Object(c.switchToBlockType)(k,s.name);if(I&&I.length){var B=u.merge(j.attributes,I[0].attributes);if(h){var x=Object(f.findKey)(B,(function(e){return"string"==typeof e&&-1!==e.indexOf("")})),P=B[x],T=u.attributes[x],N=T.multiline,D=T.__unstableMultilineWrapperTags,R=T.__unstablePreserveWhiteSpace,A=Object(i.create)({html:P,multilineTag:N,multilineWrapperTags:D,preserveWhiteSpace:R}),M=A.text.indexOf(""),L=Object(i.remove)(A,M,M+1),F=Object(i.toHTMLString)({value:L,multilineTag:N,preserveWhiteSpace:R});B[x]=F,n(Fc(s.clientId,x,M,M))}n(mc([s.clientId,d.clientId],[La(La({},s),{},{attributes:La(La({},s.attributes),B)})].concat(Object(ne.a)(I.slice(1)))))}}else n(ic(s.clientId))},RESET_BLOCKS:[function(e,t){var n=t.getState(),r=ba(n),o=fa(n),i=!r||"all"!==o||Object(c.doBlocksMatchTemplate)(e.blocks,r);if(i!==da(n))return wc(i)}],MULTI_SELECT:function(e,t){var n=Ci((0,t.getState)());Object(Le.speak)(Object(g.sprintf)(Object(g._n)("%s block selected.","%s blocks selected.",n),n),"assertive")},SYNCHRONIZE_TEMPLATE:function(e,t){var n=(0,t.getState)(),r=fi(n),o=ba(n);return tc(Object(c.synchronizeBlocksWithTemplate)(r,o))},MARK_AUTOMATIC_CHANGE:function(e,t){var n=window,r=n.setTimeout,o=n.requestIdleCallback;(void 0===o?function(e){return r(e,100)}:o)((function(){t.dispatch({type:"MARK_AUTOMATIC_CHANGE_FINAL"})}))}};var Va=function(e){var t,n=[To()(Fa),Do.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=f.flowRight.apply(void 0,Object(ne.a)(t))(e.dispatch),e.dispatch=r,e};function Ha(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function za(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ha(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ha(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ua={reducer:xo,selectors:o,actions:r,controls:{SLEEP:function(e){var t=e.duration;return new Promise((function(e){setTimeout(e,t)}))}}},Ga=Object(v.registerStore)("core/block-editor",za(za({},Ua),{},{persist:["preferences"]}));Va(Ga);function Ka(e){var t=e.clientId,n=void 0===t?null:t,r=e.value,o=e.selectionStart,c=e.selectionEnd,i=e.onChange,a=void 0===i?f.noop:i,l=e.onInput,s=void 0===l?f.noop:l,d=Object(v.useRegistry)(),b=d.dispatch("core/block-editor"),p=b.resetBlocks,m=b.resetSelection,O=b.replaceInnerBlocks,g=b.setHasControlledInnerBlocks,h=b.__unstableMarkNextChangeAsNotPersistent,j=d.select("core/block-editor"),k=j.getBlockName,y=j.getBlocks,_=Object(u.useRef)({incoming:null,outgoing:[]}),E=Object(u.useRef)(s),C=Object(u.useRef)(a);Object(u.useEffect)((function(){E.current=s,C.current=a}),[s,a]),Object(u.useEffect)((function(){var e,t=d.select("core/block-editor"),r=t.getSelectionStart,o=t.getSelectionEnd,c=t.isLastBlockChangePersistent,i=t.__unstableIsLastBlockChangeIgnored,a=c(),l=!1,s=d.subscribe((function(){if(null===n||null!==k(n)){var t=c(),s=y(n),u=s!==e;if(e=s,u&&(_.current.incoming||i()))return _.current.incoming=null,void(a=t);if(u||l&&!u&&t&&!a)a=t,_.current.outgoing.push(e),(a?C.current:E.current)(e,{selectionStart:r(),selectionEnd:o()});l=u}}));return function(){return s()}}),[d,n]),Object(u.useEffect)((function(){_.current.outgoing.includes(r)?Object(f.last)(_.current.outgoing)===r&&(_.current.outgoing=[]):y(n)!==r&&(_.current.outgoing=[],_.current.incoming=r,r&&(h(),n?(g(n,!0),h(),O(n,r,!1)):p(r)),o&&c&&m(o,c))}),[r,n])}var Wa=Object(p.createHigherOrderComponent)((function(e){return Object(v.withRegistry)((function(t){var n=t.useSubRegistry,r=void 0===n||n,o=t.registry,c=Object(he.a)(t,["useSubRegistry","registry"]);if(!r)return Object(u.createElement)(e,Object(l.a)({registry:o},c));var i=Object(u.useState)(null),a=Object(re.a)(i,2),s=a[0],d=a[1];return Object(u.useEffect)((function(){var e=Object(v.createRegistry)({},o),t=e.registerStore("core/block-editor",Ua);Va(t),d(e)}),[o]),s?Object(u.createElement)(v.RegistryProvider,{value:s},Object(u.createElement)(e,Object(l.a)({registry:s},c))):null}))}),"withRegistryProvider")((function(e){var t=e.children,n=e.settings,r=Object(v.useDispatch)("core/block-editor").updateSettings;return Object(u.useEffect)((function(){r(n)}),[n]),Ka(e),t})),qa=n(69);var $a=Object(p.compose)(Object(v.withSelect)((function(e,t){var n=e("core/block-editor"),r=n.getBlockCount,o=n.getBlockName,i=n.isBlockValid,a=n.getSettings,l=n.getTemplateLock,s=!r(t.rootClientId),u=o(t.lastBlockClientId)===Object(c.getDefaultBlockName)(),d=i(t.lastBlockClientId),b=a().bodyPlaceholder;return{isVisible:s||!u||!d,showPrompt:s,isLocked:!!l(t.rootClientId),placeholder:b}})),Object(v.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,c=e.placeholder,i=e.rootClientId;if(t||!n)return null;var a=Object(qa.decodeEntities)(c)||Object(g.__)("Start writing or type / to choose a block");return Object(u.createElement)("div",{"data-root-client-id":i||"",className:"wp-block block-editor-default-block-appender"},Object(u.createElement)(Zr.a,{role:"button","aria-label":Object(g.__)("Add block"),className:"block-editor-default-block-appender__content",readOnly:!0,onFocus:r,value:o?a:""}),Object(u.createElement)(os,{rootClientId:i,position:"bottom right",isAppender:!0,__experimentalIsQuick:!0}))}));var Ya=Object(u.forwardRef)((function(e,t){var n=e.rootClientId,r=e.className,o=e.__experimentalSelectBlockOnInsert,c=e.onFocus,i=e.tabIndex;return Object(u.createElement)(os,{position:"bottom center",rootClientId:n,__experimentalSelectBlockOnInsert:o,__experimentalIsQuick:!0,renderToggle:function(e){var n,o=e.onToggle,a=e.disabled,l=e.isOpen,s=e.blockTitle,d=e.hasSingleBlockType;n=d?Object(g.sprintf)(Object(g._x)("Add %s","directly add the only allowed block"),s):Object(g._x)("Add block","Generic label for block inserter button");var f=!d,p=Object(u.createElement)(h.Button,{ref:t,onFocus:c,tabIndex:i,className:b()(r,"block-editor-button-block-appender"),onClick:o,"aria-haspopup":f?"true":void 0,"aria-expanded":f?l:void 0,disabled:a,label:n},!d&&Object(u.createElement)(h.VisuallyHidden,{as:"span"},n),Object(u.createElement)(so.a,{icon:co.a}));return(f||d)&&(p=Object(u.createElement)(h.Tooltip,{text:n},p)),p},isAppender:!0})})),Xa=Object(u.createContext)();function Qa(e){e.stopPropagation()}var Za=Object(v.withSelect)((function(e,t){var n=t.rootClientId,r=e("core/block-editor"),o=r.getBlockOrder,i=r.canInsertBlockType,a=r.getTemplateLock,l=r.getSelectedBlockClientId;return{isLocked:!!a(n),blockClientIds:o(n),canInsertDefaultBlock:i(Object(c.getDefaultBlockName)(),n),selectedBlockClientId:l()}}))((function(e){var t,n=e.blockClientIds,r=e.rootClientId,o=e.canInsertDefaultBlock,c=e.isLocked,i=e.renderAppender,a=e.className,l=e.selectedBlockClientId,s=e.tagName,d=void 0===s?"div":s,p=Object(u.useContext)(Xa);if(c||!1===i)return null;if(i)t=Object(u.createElement)(i,null);else{var m=!r,v=l===r,O=l&&!n.includes(l);if(!m&&!v&&(!l||O))return null;t=o?Object(u.createElement)($a,{rootClientId:r,lastBlockClientId:Object(f.last)(n)}):Object(u.createElement)(Ya,{rootClientId:r,className:"block-list-appender__toggle"})}return Object(u.createElement)(d,{tabIndex:-1,onFocus:Qa,className:b()("block-list-appender","wp-block",a),ref:function(e){e?p.set(r||"",e):p.delete(r||"")}},t)}));function Ja(e,t,n,r,o){return function(c){var i=function(e){var t={srcRootClientId:null,srcClientIds:null,srcIndex:null,type:null};if(!e.dataTransfer)return t;try{t=Object.assign(t,JSON.parse(e.dataTransfer.getData("text")))}catch(e){return t}return t}(c),a=i.srcRootClientId,l=i.srcClientIds;if("block"===i.type){var s=n(l[0],a);if(!(a===e&&s===t||l.includes(e)||r(l).some((function(t){return t===e})))){var u=a===e,d=l.length;o(l,a,e,u&&s<t?t-d:t)}}}}function el(e,t,n,r,o){return function(i){if(n){var a=Object(c.findTransform)(Object(c.getBlockTransforms)("from"),(function(e){return"files"===e.type&&e.isMatch(i)}));if(a){var l=a.transform(i,r);o(l,t,e)}}}}function tl(e,t,n){return function(r){var o=Object(c.pasteHandler)({HTML:r,mode:"BLOCKS"});o.length&&n(o,t,e)}}function nl(e,t){var n=Object(v.useSelect)((function(e){var t=e("core/block-editor");return{getBlockIndex:t.getBlockIndex,getClientIdsOfDescendants:t.getClientIdsOfDescendants,hasUploadPermissions:(0,t.getSettings)().mediaUpload}}),[]),r=n.getBlockIndex,o=n.getClientIdsOfDescendants,c=n.hasUploadPermissions,i=Object(v.useDispatch)("core/block-editor"),a=i.insertBlocks,l=i.moveBlocksToPosition,s=i.updateBlockAttributes;return{onDrop:Ja(e,t,r,o,l),onFilesDrop:el(e,t,c,s,a),onHTMLDrop:tl(e,t,a)}}function rl(e,t,n){var r,o="top"===n||"bottom"===n,c=e.x,i=e.y,a=o?c:i,l=o?i:c,s=o?t.left:t.top,u=o?t.right:t.bottom,d=t[n];return r=a>=s&&a<=u?a:a<u?s:u,Math.sqrt(Math.pow(a-r,2)+Math.pow(l-d,2))}function ol(e,t){var n,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["top","bottom","left","right"];return o.forEach((function(o){var c=rl(e,t,o);(void 0===n||c<n)&&(n=c,r=o)})),[n,r]}function cl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function il(e){var t=e.element,n=e.rootClientId,r=void 0===n?"":n,o=Object(u.useState)(null),c=Object(re.a)(o,2),i=c[0],a=c[1],l=Object(v.useSelect)((function(e){var t,n=e("core/block-editor"),o=n.getBlockListSettings;return{isLockedAll:"all"===(0,n.getTemplateLock)(r),orientation:null===(t=o(r))||void 0===t?void 0:t.orientation}}),[r]),d=l.isLockedAll,b=l.orientation,f=nl(r,i),p=Object(h.__unstableUseDropZone)(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cl(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({element:t,isDisabled:d,withPosition:!0},f)).position;if(Object(u.useEffect)((function(){if(p){var e=function(e,t,n){var r,o,c="horizontal"===n?["left","right"]:["top","bottom"];return e.forEach((function(n,i){if(n.classList.contains("wp-block")){var a=n.getBoundingClientRect(),l=ol(t,a,c),s=Object(re.a)(l,2),u=s[0],d=s[1];if(void 0===o||u<o){var b="bottom"===d||"right"===d,f=b?1:0,p=b&&e[i+1]&&e[i+1].classList.contains("is-dragging");o=u,r=i+(f+=p?1:0)}}})),r}(Array.from(t.current.children),p,b);a(void 0===e?0:e)}}),[p]),p)return i}var al=new Map;function ll(e){var t=e.placeholder,n=e.rootClientId,r=e.renderAppender,o=e.__experimentalAppenderTagName,c=e.wrapperRef;var i=Object(v.useSelect)((function(e){var t,r=e("core/block-editor"),o=r.getBlockOrder,c=r.getBlockListSettings,i=r.getSettings,a=r.getSelectedBlockClientId,l=r.getMultiSelectedBlockClientIds,s=r.hasMultiSelection,u=r.getGlobalBlockCount,d=r.isTyping,b=r.isDraggingBlocks,f=(0,r.__experimentalGetActiveBlockIdByBlockNames)(i().__experimentalSpotlightEntityBlocks);return{blockClientIds:o(n),selectedBlockClientId:a(),multiSelectedBlockClientIds:l(),orientation:null===(t=c(n))||void 0===t?void 0:t.orientation,hasMultiSelection:s(),enableAnimation:!d()&&u()<=200,isDraggingBlocks:b(),activeEntityBlockId:f}}),[n]),a=i.blockClientIds,l=i.selectedBlockClientId,s=i.multiSelectedBlockClientIds,d=i.orientation,f=i.hasMultiSelection,p=i.enableAnimation,m=i.isDraggingBlocks,O=i.activeEntityBlockId,g=il({element:c,rootClientId:n}),h=g===a.length&&m;return Object(u.createElement)(u.Fragment,null,a.map((function(e,t){var r=f?s.includes(e):l===e,o=g===t&&m;return Object(u.createElement)(v.AsyncModeProvider,{key:e,value:!r},Object(u.createElement)(Bu,{rootClientId:n,clientId:e,index:t,enableAnimation:p,className:b()({"is-drop-target":o,"is-dropping-horizontally":o&&"horizontal"===d,"has-active-entity":O}),activeEntityBlockId:O}))})),a.length<1&&t,Object(u.createElement)(Za,{tagName:o,rootClientId:n,renderAppender:r,className:b()({"is-drop-target":h,"is-dropping-horizontally":h&&"horizontal"===d})}))}function sl(e){return Object(u.createElement)(v.AsyncModeProvider,{value:!1},Object(u.createElement)(ll,e))}var ul,dl=Object(u.forwardRef)((function(e,t){var n=e.className,r=e.placeholder,o=e.rootClientId,c=e.renderAppender,i=o?"div":vu,a=Object(u.useRef)(),l=t||a;return Object(u.createElement)(Xa.Provider,{value:al},Object(u.createElement)(i,{ref:l,className:b()("block-editor-block-list__layout",n)},Object(u.createElement)(sl,{placeholder:r,rootClientId:o,renderAppender:c,wrapperRef:l})))}));function bl(e){var t=e.onClick;return Object(u.createElement)("div",{tabIndex:0,role:"button",onClick:t,onKeyPress:t},Object(u.createElement)(h.Disabled,null,Object(u.createElement)(dl,null)))}var fl=function(e){var t=e.viewportWidth,n=e.__experimentalPadding,r=Object(p.useResizeObserver)(),o=Object(re.a)(r,2),c=o[0],i=o[1].width,a=Object(p.useResizeObserver)(),l=Object(re.a)(a,2),s=l[0],d=l[1].height;ul=ul||Object(p.pure)(dl);var b=(i-2*n)/t;return Object(u.createElement)("div",{className:"block-editor-block-preview__container editor-styles-wrapper","aria-hidden":!0,style:{height:d*b+2*n}},c,Object(u.createElement)(h.Disabled,{style:{transform:"scale(".concat(b,")"),width:t,left:n,right:n,top:n},className:"block-editor-block-preview__content"},s,Object(u.createElement)(ul,null)))};var pl=Object(u.memo)((function(e){var t=e.blocks,n=e.__experimentalPadding,r=void 0===n?0:n,o=e.viewportWidth,c=void 0===o?700:o,i=e.__experimentalLive,a=void 0!==i&&i,l=e.__experimentalOnClick,s=Object(v.useSelect)((function(e){return e("core/block-editor").getSettings()}),[]),d=Object(u.useMemo)((function(){return Object(f.castArray)(t)}),[t]);return t&&0!==t.length?Object(u.createElement)(Wa,{value:d,settings:s},a?Object(u.createElement)(bl,{onClick:l}):Object(u.createElement)(fl,{viewportWidth:c,__experimentalPadding:r})):null}));function ml(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ml(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ml(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ol=function(e){var t=e.item,n=Object(c.getBlockType)(t.name);return Object(u.createElement)("div",{className:"block-editor-inserter__preview-container"},Object(u.createElement)("div",{className:"block-editor-inserter__preview"},Object(c.isReusableBlock)(t)||n.example?Object(u.createElement)("div",{className:"block-editor-inserter__preview-content"},Object(u.createElement)(pl,{__experimentalPadding:16,viewportWidth:500,blocks:n.example?Object(c.getBlockFromExample)(t.name,{attributes:vl(vl({},n.example.attributes),t.initialAttributes),innerBlocks:n.example.innerBlocks}):Object(c.createBlock)(t.name,t.initialAttributes)})):Object(u.createElement)("div",{className:"block-editor-inserter__preview-content-missing"},Object(g.__)("No Preview Available."))),!Object(c.isReusableBlock)(t)&&Object(u.createElement)(fo,{blockType:t}))},gl=n(52),hl=n(122),jl=n(123);var kl=function(e){var t=e.icon,n=e.onClick,r=e.isDisabled,o=e.title,c=e.className,i=e.composite,a=Object(he.a)(e,["icon","onClick","isDisabled","title","className","composite"]),s=t?{backgroundColor:t.background,color:t.foreground}:{};return Object(u.createElement)("div",{className:"block-editor-block-types-list__list-item"},Object(u.createElement)(jl.a,Object(l.a)({role:"option",as:h.Button},i,{className:b()("block-editor-block-types-list__item",c),onClick:function(e){e.preventDefault(),n()},disabled:r},a),Object(u.createElement)("span",{className:"block-editor-block-types-list__item-icon",style:s},Object(u.createElement)(qn,{icon:t,showColors:!0})),Object(u.createElement)("span",{className:"block-editor-block-types-list__item-title"},o)))};var yl=function(e){var t=e.items,n=void 0===t?[]:t,r=e.onSelect,o=e.onHover,i=void 0===o?function(){}:o,a=e.children,s=e.label,d=Object(gl.g)(),b=n.reduce((function(e,t){return e+"--"+t.id}),"");return Object(u.useEffect)((function(){d.unstable_sort()}),[d.unstable_sort,b]),Object(u.createElement)(hl.a,Object(l.a)({},d,{role:"listbox",className:"block-editor-block-types-list","aria-label":s}),n.map((function(e){return Object(u.createElement)(kl,{key:e.id,className:Object(c.getBlockMenuDefaultClassName)(e.id),icon:e.icon,onClick:function(){r(e),i(null)},onFocus:function(){return i(e)},onMouseEnter:function(){return i(e)},onMouseLeave:function(){return i(null)},onBlur:function(){return i(null)},isDisabled:e.isDisabled,title:e.title,composite:d})})),a)};function _l(e){var t=e.rootClientId,n=e.children,r=Object(v.useSelect)((function(e){var n=(0,e("core/blocks").getBlockType)((0,e("core/block-editor").getBlockName)(t));return{rootBlockTitle:n&&n.title,rootBlockIcon:n&&n.icon}})),o=r.rootBlockTitle,c=r.rootBlockIcon;return Object(u.createElement)("div",{className:"block-editor-inserter__child-blocks"},(c||o)&&Object(u.createElement)("div",{className:"block-editor-inserter__parent-block-header"},Object(u.createElement)(qn,{icon:c,showColors:!0}),o&&Object(u.createElement)("h2",null,o)),n)}var El=Object(h.createSlotFill)("__experimentalInserterMenuExtension"),Cl=El.Fill,wl=El.Slot;Cl.Slot=wl;var Sl=Cl;var Il=function(e){var t=e.title,n=e.icon,r=e.children;return Object(u.createElement)(u.Fragment,null,Object(u.createElement)("div",{className:"block-editor-inserter__panel-header"},Object(u.createElement)("h2",{className:"block-editor-inserter__panel-title"},t),Object(u.createElement)(h.Icon,{icon:n})),Object(u.createElement)("div",{className:"block-editor-inserter__panel-content"},r))};var Bl=function(){return Object(u.createElement)("div",{className:"block-editor-inserter__no-results"},Object(u.createElement)(so.a,{className:"block-editor-inserter__no-results-icon",icon:Wn.a}),Object(u.createElement)("p",null,Object(g.__)("No results found.")))};function xl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Pl=Object(h.withSpokenMessages)((function(e){var t=e.rootClientId,n=e.onInsert,r=e.onHover,o=e.filterValue,c=e.debouncedSpeak,i=e.showMostUsedBlocks,a=Kn(t,n),l=Object(re.a)(a,4),d=l[0],b=l[1],p=l[2],m=l[3],O=Object(v.useSelect)((function(e){var n=e("core/block-editor").getBlockName;return!!(0,e("core/blocks").getChildBlockNames)(n(t)).length}),[t]),h=Object(u.useMemo)((function(){return zn(d,b,p,o)}),[o,d,b,p]),j=Object(u.useMemo)((function(){return Object(f.orderBy)(d,["frecency"],["desc"]).slice(0,6)}),[d]),k=Object(u.useMemo)((function(){return h.filter((function(e){return!e.category}))}),[h]),y=Object(u.useMemo)((function(){var e=function(e){return Object(f.findIndex)(b,(function(t){return t.slug===e.category}))};return Object(f.flow)((function(e){return e.filter((function(e){return e.category&&"reusable"!==e.category}))}),(function(t){return Object(f.sortBy)(t,e)}),(function(e){return Object(f.groupBy)(e,"category")}))(h)}),[h,b]),_=Object(u.useMemo)((function(){var e=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xl(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},p);return Object.keys(p).forEach((function(t){e[t]=h.filter((function(e){return function(e){return e.name.split("/")[0]}(e)===t})),0===e[t].length&&delete e[t]})),e}),[h,p]);Object(u.useEffect)((function(){return function(){return r(null)}}),[]),Object(u.useEffect)((function(){var e=Object(g.sprintf)(Object(g._n)("%d result found.","%d results found.",h.length),h.length);c(e)}),[o,c]);var E=!Object(f.isEmpty)(h);return Object(u.createElement)("div",null,O&&Object(u.createElement)(_l,{rootClientId:t},Object(u.createElement)(yl,{items:h,onSelect:m,onHover:r,label:Object(g.__)("Child Blocks")})),i&&!O&&!!j.length&&!o&&Object(u.createElement)(Il,{title:Object(g._x)("Most used","blocks")},Object(u.createElement)(yl,{items:j,onSelect:m,onHover:r,label:Object(g._x)("Most used","blocks")})),!O&&Object(f.map)(b,(function(e){var t=y[e.slug];return t&&t.length?Object(u.createElement)(Il,{key:e.slug,title:e.title,icon:e.icon},Object(u.createElement)(yl,{items:t,onSelect:m,onHover:r,label:e.title})):null})),!O&&!!k.length&&Object(u.createElement)(Il,{className:"block-editor-inserter__uncategorized-blocks-panel",title:Object(g.__)("Uncategorized")},Object(u.createElement)(yl,{items:k,onSelect:m,onHover:r,label:Object(g.__)("Uncategorized")})),!O&&Object(f.map)(p,(function(e,t){var n=_[t];return n&&n.length?Object(u.createElement)(Il,{key:t,title:e.title,icon:e.icon},Object(u.createElement)(yl,{items:n,onSelect:m,onHover:r,label:e.title})):null})),Object(u.createElement)(Sl.Slot,{fillProps:{onSelect:m,onHover:r,filterValue:o,hasItems:E}},(function(e){return e.length?e:E?null:Object(u.createElement)(Bl,null)})))}));var Tl=function(e){var t,n=e.selectedCategory,r=e.patternCategories,o=e.onClickCategory,c=e.children;return Object(u.createElement)(u.Fragment,null,Object(u.createElement)("div",{className:b()("block-editor-inserter__panel-header","block-editor-inserter__panel-header-patterns")},Object(u.createElement)(h.SelectControl,{className:"block-editor-inserter__panel-dropdown",label:Object(g.__)("Filter patterns"),hideLabelFromVision:!0,value:n.name,onChange:function(e){o(r.find((function(t){return e===t.name})))},options:(t=[],r.map((function(e){return t.push({value:e.name,label:e.label})})),t)})),Object(u.createElement)("div",{className:"block-editor-inserter__panel-content"},c))},Nl=function(e){var t=Object(v.useSelect)((function(e){var t=e("core/block-editor").getSettings();return{patterns:t.__experimentalBlockPatterns,patternCategories:t.__experimentalBlockPatternCategories}}),[]),n=t.patternCategories,r=t.patterns,o=Object(v.useDispatch)("core/notices").createSuccessNotice;return[r,n,Object(u.useCallback)((function(t,n){e(Object(f.map)(n,(function(e){return Object(c.cloneBlock)(e)})),t.name),o(Object(g.sprintf)(Object(g.__)('Block pattern "%s" inserted.'),t.title),{type:"snackbar"})}),[])]};function Dl(e){var t=e.pattern,n=e.onClick,r=t.content,o=t.viewportWidth,i=Object(u.useMemo)((function(){return Object(c.parse)(r)}),[r]),a=Object(p.useInstanceId)(Dl),l="block-editor-block-patterns-list__item-description-".concat(a);return Object(u.createElement)("div",{className:"block-editor-block-patterns-list__item",role:"button",onClick:function(){return n(t,i)},onKeyDown:function(e){st.ENTER!==e.keyCode&&st.SPACE!==e.keyCode||n(t,i)},tabIndex:0,"aria-label":t.title,"aria-describedby":t.description?l:void 0},Object(u.createElement)(pl,{blocks:i,viewportWidth:o}),Object(u.createElement)("div",{className:"block-editor-block-patterns-list__item-title"},t.title),!!t.description&&Object(u.createElement)(h.VisuallyHidden,{id:l},t.description))}function Rl(){return Object(u.createElement)("div",{className:"block-editor-block-patterns-list__item is-placeholder"})}var Al=function(e){var t=e.blockPatterns,n=e.shownPatterns,r=e.onClickPattern;return t.map((function(e){return n.includes(e)?Object(u.createElement)(Dl,{key:e.name,pattern:e,onClick:r}):Object(u.createElement)(Rl,{key:e.name})}))};function Ml(e){var t=e.filterValue,n=e.onInsert,r=Nl(n),o=Object(re.a)(r,3),c=o[0],i=o[2],a=Object(u.useMemo)((function(){return Un(c,t)}),[t,c]),l=Object(p.useAsyncList)(a);if(t)return a.length?Object(u.createElement)(Il,{title:Object(g.__)("Search Results")},Object(u.createElement)(Al,{shownPatterns:l,blockPatterns:a,onClickPattern:i})):Object(u.createElement)(Bl,null)}function Ll(e){var t=e.onInsert,n=e.selectedCategory,r=e.onClickCategory,o=Nl(t),c=Object(re.a)(o,3),i=c[0],a=c[1],l=c[2],s=Object(u.useMemo)((function(){return a.filter((function(e){return i.some((function(t){return t.categories.includes(e.name)}))}))}),[i,a]),d=n||s[0];Object(u.useEffect)((function(){i.some((function(e){return b(e)===1/0}))&&!s.find((function(e){return"uncategorized"===e.name}))&&s.push({name:"uncategorized",label:Object(g._x)("Uncategorized")})}),[s,i]);var b=Object(u.useCallback)((function(e){if(!e.categories||!e.categories.length)return 1/0;var t=Object(f.fromPairs)(s.map((function(e,t){return[e.name,t]})));return Math.min.apply(Math,Object(ne.a)(e.categories.map((function(e){return void 0!==t[e]?t[e]:1/0}))))}),[s]),m=Object(u.useMemo)((function(){return i.filter((function(e){return"uncategorized"===d.name?b(e)===1/0:e.categories&&e.categories.includes(d.name)}))}),[i,d]),v=Object(u.useMemo)((function(){return m.sort((function(e,t){return b(e)-b(t)}))}),[m,b]),O=Object(p.useAsyncList)(v);return Object(u.createElement)(u.Fragment,null,!!m.length&&Object(u.createElement)(Tl,{key:d.name,title:d.title,selectedCategory:d,patternCategories:s,onClickCategory:r},Object(u.createElement)(Al,{shownPatterns:O,blockPatterns:m,onClickPattern:l})))}var Fl=function(e){var t=e.onInsert,n=e.onClickCategory,r=e.filterValue,o=e.selectedCategory;return r?Object(u.createElement)(Ml,{onInsert:t,filterValue:r}):Object(u.createElement)(Ll,{selectedCategory:o,onInsert:t,onClickCategory:n})},Vl=n(31);function Hl(e){var t=e.debouncedSpeak,n=e.filterValue,r=e.onHover,o=e.onInsert,c=e.rootClientId,i=Kn(c,o),a=Object(re.a)(i,4),l=a[0],s=a[1],d=a[2],b=a[3],f=Object(u.useMemo)((function(){var e=l.filter((function(e){return"reusable"===e.category}));return n?zn(e,s,d,n):e}),[n,l,s,d]);return Object(u.useEffect)((function(){var e=Object(g.sprintf)(Object(g._n)("%d result found.","%d results found.",f.length),f.length);t(e)}),[n,t]),0===f.length?Object(u.createElement)(Bl,null):Object(u.createElement)(Il,{title:n?Object(g.__)("Search Results"):Object(g.__)("Reusable blocks")},Object(u.createElement)(yl,{items:f,onSelect:b,onHover:r,label:n?Object(g.__)("Search Results"):Object(g.__)("Reusable blocks")}))}var zl=Object(h.withSpokenMessages)((function(e){var t=e.rootClientId,n=e.onInsert,r=e.onHover,o=e.filterValue,c=e.debouncedSpeak;return Object(u.createElement)(u.Fragment,null,Object(u.createElement)(Hl,{debouncedSpeak:c,filterValue:o,onHover:r,onInsert:n,rootClientId:t}),Object(u.createElement)("div",{className:"block-editor-inserter__manage-reusable-blocks-container"},Object(u.createElement)("a",{className:"block-editor-inserter__manage-reusable-blocks",href:Object(Vl.addQueryArgs)("edit.php",{post_type:"wp_block"})},Object(g.__)("Manage all reusable blocks"))))}));function Ul(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Gl=function(e){var t=e.onSelect,n=e.rootClientId,r=e.clientId,o=e.isAppender,i=e.selectBlockOnInsert,a=e.insertionIndex,l=Object(v.useSelect)((function(e){var t,c=e("core/block-editor"),i=c.getSettings,a=c.getBlockRootClientId,l=c.getBlockSelectionEnd,u=n;if(!u&&!r&&!o){var d=l();d&&(u=a(d))}return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ul(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ul(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({hasPatterns:!!(null===(t=i().__experimentalBlockPatterns)||void 0===t?void 0:t.length),destinationRootClientId:u},Object(f.pick)(e("core/block-editor"),["getSelectedBlock","getBlockIndex","getBlockSelectionEnd","getBlockOrder"]))}),[o,r,n]),u=l.destinationRootClientId,d=l.getSelectedBlock,b=l.getBlockIndex,p=l.getBlockSelectionEnd,m=l.getBlockOrder,O=Object(v.useDispatch)("core/block-editor"),h=O.replaceBlocks,j=O.insertBlocks,k=O.showInsertionPoint,y=O.hideInsertionPoint;function _(){if(void 0!==a)return a;if(r)return b(r,u);var e=p();return!o&&e?b(e,u)+1:m(u).length}return[u,function(e,n){var r=d();if(!o&&r&&Object(c.isUnmodifiedDefaultBlock)(r)?h(r.clientId,e,null,null,n):j(e,_(),u,i,n),!i){var a=Object(g._n)("%d block added.","%d blocks added.",e.length);Object(Le.speak)(a)}t&&t()},function(e){if(e){var t=_();k(u,t)}else y()}]},Kl={name:"blocks",title:Object(g.__)("Blocks")},Wl={name:"patterns",title:Object(g.__)("Patterns")},ql={name:"reusable",title:Object(g.__)("Reusable")};var $l=function(e){var t=e.children,n=e.showPatterns,r=void 0!==n&&n,o=e.showReusableBlocks,c=void 0!==o&&o,i=e.onSelect,a=[Kl];return r&&a.push(Wl),c&&a.push(ql),Object(u.createElement)(h.TabPanel,{className:"block-editor-inserter__tabs",tabs:a,onSelect:i},t)},Yl=function(e){return e.stopPropagation()};var Xl=function(e){var t=e.rootClientId,n=e.clientId,r=e.isAppender,o=e.__experimentalSelectBlockOnInsert,c=e.__experimentalInsertionIndex,i=e.onSelect,a=e.showInserterHelpPanel,l=e.showMostUsedBlocks,s=Object(u.useState)("blocks"),d=Object(re.a)(s,2),b=d[0],f=d[1],p=Object(u.useState)(""),m=Object(re.a)(p,2),O=m[0],j=m[1],k=Object(u.useState)(null),y=Object(re.a)(k,2),_=y[0],E=y[1],C=Object(u.useState)(null),w=Object(re.a)(C,2),S=w[0],I=w[1],B=Gl({rootClientId:t,clientId:n,isAppender:r,selectBlockOnInsert:o,insertionIndex:c}),x=Object(re.a)(B,3),P=x[0],T=x[1],N=x[2],D=Object(v.useSelect)((function(e){var t=e("core/block-editor").getSettings(),n=t.__experimentalBlockPatterns,r=t.__experimentalReusableBlocks;return{hasPatterns:!!(null==n?void 0:n.length),hasReusableBlocks:!!(null==r?void 0:r.length)}}),[]),R=D.hasPatterns,A=D.hasReusableBlocks,M=!P&&R,L=function(e){T(e),i()},F=function(e){N(!!e),E(e)},V=Object(u.createElement)(u.Fragment,null,Object(u.createElement)("div",{className:"block-editor-inserter__block-list"},Object(u.createElement)(Pl,{rootClientId:P,onInsert:L,onHover:F,filterValue:O,showMostUsedBlocks:l})),a&&Object(u.createElement)("div",{className:"block-editor-inserter__tips"},Object(u.createElement)(h.VisuallyHidden,{as:"h2"},Object(g.__)("A tip for using the block editor")),Object(u.createElement)(ao,null))),H=Object(u.createElement)(Fl,{onInsert:function(e,t){T(e,{patternName:t}),i()},filterValue:O,onClickCategory:function(e){I(e)},selectedCategory:S}),z=Object(u.createElement)(zl,{rootClientId:P,onInsert:L,onHover:F,filterValue:O});return Object(u.createElement)("div",{className:"block-editor-inserter__menu",onKeyPress:Yl,onKeyDown:function(e){[st.LEFT,st.DOWN,st.RIGHT,st.UP,st.BACKSPACE,st.ENTER].includes(e.keyCode)&&e.stopPropagation()}},Object(u.createElement)("div",{className:"block-editor-inserter__main-area"},Object(u.createElement)("div",{className:"block-editor-inserter__content"},Object(u.createElement)(bo,{onChange:function(e){_&&E(null),j(e)},value:O,placeholder:"reusable"===b?Object(g.__)("Search for a reusable block"):"patterns"===b?Object(g.__)("Search for a pattern"):Object(g.__)("Search for a block")}),(M||A)&&Object(u.createElement)($l,{showPatterns:M,showReusableBlocks:A,onSelect:f},(function(e){return"blocks"===e.name?V:"patterns"===e.name?H:z})),!M&&!A&&V)),a&&_&&Object(u.createElement)(Ol,{item:_}))},Ql=function(e){[st.LEFT,st.DOWN,st.RIGHT,st.UP,st.BACKSPACE,st.ENTER].includes(e.keyCode)&&e.stopPropagation()},Zl=function(e){return e.stopPropagation()};function Jl(e){var t=e.blockTypes,n=e.blockPatterns,r=e.onSelectBlockType,o=e.onSelectBlockPattern,c=e.onHover,i=Object(u.useMemo)((function(){return Object(f.orderBy)(t,["frecency"],["desc"]).slice(0,6)}),[t]),a=Object(u.useMemo)((function(){return n.slice(0,2)}),[t]);return Object(u.createElement)("div",{className:"block-editor-inserter__quick-inserter-results"},!i.length&&!a.length&&Object(u.createElement)(Bl,null),!!i.length&&Object(u.createElement)(Il,{title:Object(u.createElement)(h.VisuallyHidden,null,Object(g.__)("Blocks"))},Object(u.createElement)(yl,{items:i,onSelect:r,onHover:c,label:Object(g.__)("Blocks")})),!!i.length&&!!a.length&&Object(u.createElement)("div",{className:"block-editor-inserter__quick-inserter-separator"}),!!a.length&&Object(u.createElement)(Il,{title:Object(u.createElement)(h.VisuallyHidden,null,Object(g.__)("Blocks"))},Object(u.createElement)("div",{className:"block-editor-inserter__quick-inserter-patterns"},Object(u.createElement)(Al,{shownPatterns:a,blockPatterns:a,onClickPattern:o}))))}function es(e){var t=e.onSelect,n=e.rootClientId,r=e.clientId,o=e.isAppender,c=e.selectBlockOnInsert,i=Object(p.useDebounce)(Le.speak,500),a=Object(u.useState)(""),l=Object(re.a)(a,2),s=l[0],d=l[1],f=Gl({onSelect:t,rootClientId:n,clientId:r,isAppender:o,selectBlockOnInsert:c}),m=Object(re.a)(f,3),O=m[0],j=m[1],k=m[2],y=Kn(O,j),_=Object(re.a)(y,4),E=_[0],C=_[1],w=_[2],S=_[3],I=Nl(j),B=Object(re.a)(I,3),x=B[0],P=B[2],T=!O&&x.length&&!!s,N=T&&x.length>6||E.length>6,D=Object(u.useMemo)((function(){return zn(E,C,w,s)}),[s,E,C,w]),R=Object(u.useMemo)((function(){return Un(x,s)}),[s,x]),A=Object(v.useSelect)((function(e){return e("core/block-editor").getSettings().__experimentalSetIsInserterOpened}),[]),M=Object(v.useSelect)((function(e){return e("core/block-editor").getPreviousBlockClientId(r)}),[r]);Object(u.useEffect)((function(){A&&A(!1)}),[A]);var L=Object(v.useDispatch)("core/block-editor").selectBlock;Object(u.useEffect)((function(){if(s){var e=D.length+R.length,t=Object(g.sprintf)(Object(g._n)("%d result found.","%d results found.",e),e);i(t)}}),[s,i]);return Object(u.createElement)("div",{className:b()("block-editor-inserter__quick-inserter",{"has-search":N,"has-expand":A}),onKeyPress:Zl,onKeyDown:Ql},N&&Object(u.createElement)(bo,{value:s,onChange:function(e){d(e)},placeholder:Object(g.__)("Search for a block")}),Object(u.createElement)(Jl,{blockTypes:D,blockPatterns:T?R:[],onSelectBlockPattern:P,onSelectBlockType:S,onHover:k}),A&&Object(u.createElement)(h.Button,{className:"block-editor-inserter__quick-inserter-expand",onClick:function(){L(M),setTimeout((function(){A(!0)}))},"aria-label":Object(g.__)("Browse all. This will open the main inserter panel in the editor toolbar.")},Object(g.__)("Browse all")))}function ts(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object($t.a)(e);if(t){var o=Object($t.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(qt.a)(this,n)}}var ns=function(e){var t,n=e.onToggle,r=e.disabled,o=e.isOpen,c=e.blockTitle,i=e.hasSingleBlockType,a=e.toggleProps,s=void 0===a?{}:a;t=i?Object(g.sprintf)(Object(g._x)("Add %s","directly add the only allowed block"),c):Object(g._x)("Add block","Generic label for block inserter button");var d=s.onClick,b=Object(he.a)(s,["onClick"]);return Object(u.createElement)(h.Button,Object(l.a)({icon:co.a,label:t,tooltipPosition:"bottom",onClick:function(e){n&&n(e),d&&d(e)},className:"block-editor-inserter__toggle","aria-haspopup":!i&&"true","aria-expanded":!i&&o,disabled:r},b))},rs=function(e){Object(Wt.a)(n,e);var t=ts(n);function n(){var e;return Object(Ut.a)(this,n),(e=t.apply(this,arguments)).onToggle=e.onToggle.bind(Object(Kt.a)(e)),e.renderToggle=e.renderToggle.bind(Object(Kt.a)(e)),e.renderContent=e.renderContent.bind(Object(Kt.a)(e)),e}return Object(Gt.a)(n,[{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,c=r.blockTitle,i=r.hasSingleBlockType,a=r.toggleProps,l=r.hasItems,s=r.renderToggle,u=void 0===s?ns:s;return u({onToggle:t,isOpen:n,disabled:o||!l,blockTitle:c,hasSingleBlockType:i,toggleProps:a})}},{key:"renderContent",value:function(e){var t=e.onClose,n=this.props,r=n.rootClientId,o=n.clientId,c=n.isAppender,i=n.showInserterHelpPanel,a=n.__experimentalSelectBlockOnInsert;return n.__experimentalIsQuick?Object(u.createElement)(es,{onSelect:t,rootClientId:r,clientId:o,isAppender:c,selectBlockOnInsert:a}):Object(u.createElement)(Xl,{onSelect:t,rootClientId:r,clientId:o,isAppender:c,showInserterHelpPanel:i,__experimentalSelectBlockOnInsert:a})}},{key:"render",value:function(){var e=this.props,t=e.position,n=e.hasSingleBlockType,r=e.insertOnlyAllowedBlock,o=e.__experimentalIsQuick;return n?this.renderToggle({onToggle:r}):Object(u.createElement)(h.Dropdown,{className:"block-editor-inserter",contentClassName:b()("block-editor-inserter__popover",{"is-quick":o}),position:t,onToggle:this.onToggle,expandOnMobile:!0,headerTitle:Object(g.__)("Add a block"),renderToggle:this.renderToggle,renderContent:this.renderContent})}}]),n}(u.Component),os=Object(p.compose)([Object(v.withSelect)((function(e,t){var n=t.clientId,r=t.rootClientId,o=e("core/block-editor"),c=o.getBlockRootClientId,i=o.hasInserterItems,a=o.__experimentalGetAllowedBlocks,l=e("core/blocks").getBlockVariations,s=a(r=r||c(n)||void 0),u=1===Object(f.size)(s)&&0===Object(f.size)(l(s[0].name,"inserter")),d=!1;return u&&(d=s[0]),{hasItems:i(r),hasSingleBlockType:u,blockTitle:d?d.title:"",allowedBlockType:d,rootClientId:r}})),Object(v.withDispatch)((function(e,t,n){var r=n.select;return{insertOnlyAllowedBlock:function(){var n=t.rootClientId,o=t.clientId,i=t.isAppender,a=t.hasSingleBlockType,l=t.allowedBlockType,s=t.__experimentalSelectBlockOnInsert;if(a&&((0,e("core/block-editor").insertBlock)(Object(c.createBlock)(l.name),function(){var e=r("core/block-editor"),t=e.getBlockIndex,c=e.getBlockSelectionEnd,a=e.getBlockOrder;if(o)return t(o,n);var l=c();return!i&&l?t(l,n)+1:a(n).length}(),n,s),!s)){var u=Object(g.sprintf)(Object(g.__)("%s block added"),l.title);Object(Le.speak)(u)}}}})),Object(p.ifCondition)((function(e){var t=e.hasItems,n=e.isAppender,r=e.rootClientId,o=e.clientId;return t||!n&&!r&&!o}))])(rs),cs=Object(u.forwardRef)((function(e,t){var n=e.selectedClientId,r=e.isReverse,o=e.containerRef,c=e.noCapture,i=e.hasMultiSelection,a=e.multiSelectionContainer,l=Object(v.useSelect)((function(e){return e("core/block-editor").isNavigationMode()})),s=Object(v.useDispatch)("core/block-editor").setNavigationMode;return Object(u.createElement)("div",{ref:t,tabIndex:l?void 0:"0",onFocus:function(){if(c.current)c.current=null;else if(n){var e=qe(n);if(r){var t=kr.focus.tabbable.find(e);(Object(f.last)(t)||e).focus()}else e.focus()}else{if(i)return void a.current.focus();s(!0);var l=kr.focus.tabbable.find(o.current);l.length&&(r?Object(f.last)(l).focus():Object(f.first)(l).focus())}},style:{position:"fixed"}})}));var is=Object(f.overEvery)([kr.isTextField,kr.focus.tabbable.isTabbableIndex]);function as(e,t,n,r){var o,c=kr.focus.focusable.find(n);return t&&(c=Object(f.reverse)(c)),c=c.slice(c.indexOf(e)+1),r&&(o=e.getBoundingClientRect()),Object(f.find)(c,(function t(n,c,i){if(!kr.focus.tabbable.isTabbableIndex(n))return!1;if(r){var a=n.getBoundingClientRect();if(a.left>=o.right||a.right<=o.left)return!1}if(Object(kr.isTextField)(n))return!0;if(!n.classList.contains("block-editor-block-list__block"))return!1;if(function(e){return e.classList.contains("block-editor-block-list__layout")||!!e.querySelector(".block-editor-block-list__layout")}(n))return!0;if(n.contains(e))return!1;for(var l,s=1;(l=i[c+s])&&n.contains(l);s++)if(t(l,c+s,i))return!1;return!0}))}function ls(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getMultiSelectedBlocksStartClientId,o=t.getMultiSelectedBlocksEndClientId,c=t.getPreviousBlockClientId,i=t.getNextBlockClientId,a=t.getFirstMultiSelectedBlockClientId,l=t.getLastMultiSelectedBlockClientId,s=t.hasMultiSelection,u=t.getBlockOrder,d=t.isNavigationMode,b=t.hasBlockMovingClientId,f=t.getBlockIndex,p=t.getBlockRootClientId,m=t.getClientIdsOfDescendants,v=t.canInsertBlockType,O=t.getBlockName,g=t.isSelectionEnabled,h=t.getBlockSelectionStart,j=t.isMultiSelecting,k=t.getSettings,y=n(),_=r(),E=o();return{selectedBlockClientId:y,selectionStartClientId:_,selectionBeforeEndClientId:c(E||y),selectionAfterEndClientId:i(E||y),selectedFirstClientId:a(),selectedLastClientId:l(),hasMultiSelection:s(),blocks:u(),isNavigationMode:d(),hasBlockMovingClientId:b,getBlockIndex:f,getBlockRootClientId:p,getClientIdsOfDescendants:m,canInsertBlockType:v,getBlockName:O,isSelectionEnabled:g(),blockSelectionStart:h(),isMultiSelecting:j(),keepCaretInsideBlock:k().keepCaretInsideBlock}}function ss(e){var t=e.children,n=Object(u.useRef)(),r=Object(u.useRef)(),o=Object(u.useRef)(),c=Object(u.useRef)(),i=Object(u.useRef)(),a=Object(u.useRef)(),l=Object(u.useRef)(),s=Object(v.useSelect)(ls,[]),d=s.selectedBlockClientId,p=s.selectionStartClientId,m=s.selectionBeforeEndClientId,O=s.selectionAfterEndClientId,h=s.selectedFirstClientId,j=s.selectedLastClientId,k=s.hasMultiSelection,y=s.blocks,_=s.isNavigationMode,E=s.hasBlockMovingClientId,C=s.isSelectionEnabled,w=s.blockSelectionStart,S=s.isMultiSelecting,I=s.getBlockIndex,B=s.getBlockRootClientId,x=s.getClientIdsOfDescendants,P=s.canInsertBlockType,T=s.getBlockName,N=s.keepCaretInsideBlock,D=Object(v.useDispatch)("core/block-editor"),R=D.multiSelect,A=D.selectBlock,M=D.clearSelectedBlock,L=D.setNavigationMode,F=D.setBlockMovingClientId,V=D.moveBlockToPosition,H=Object(u.useState)(!1),z=Object(re.a)(H,2),U=z[0],G=z[1];Object(u.useEffect)((function(){k&&!S&&c.current.focus()}),[k,S]);var K=b()("block-editor-writing-flow",{"is-navigate-mode":_,"is-block-moving-mode":!!E(),"can-insert-moving-block":U});return Object(u.createElement)("div",{className:K},Object(u.createElement)(cs,{ref:r,selectedClientId:d,containerRef:n,noCapture:a,hasMultiSelection:k,multiSelectionContainer:c}),Object(u.createElement)("div",{ref:n,onKeyDown:function(e){var t=e.keyCode,s=e.target,u=t===st.UP,b=t===st.DOWN,v=t===st.LEFT,g=t===st.RIGHT,C=t===st.TAB,w=t===st.ESCAPE,S=t===st.ENTER,D=t===st.SPACE,H=u||v,z=v||g,U=u||b,K=z||U,W=e.shiftKey,q=W||e.ctrlKey||e.altKey||e.metaKey,$=U?kr.isVerticalEdge:kr.isHorizontalEdge;if(_){var Y,X=C&&W||u,Q=C&&!W||b,Z=v,J=g;if(X)Y=m;else if(Q)Y=O;else if(Z){var ee;Y=null!==(ee=B(d))&&void 0!==ee?ee:d}else if(J){var te;Y=null!==(te=x([d])[0])&&void 0!==te?te:d}var ne=E();if(ne&&Y&&G(P(T(ne),B(Y))),w&&ne&&(F(null),G(!1)),(S||D)&&ne){var re=B(ne),oe=B(d),ce=I(ne,re),ie=I(d,oe);ce<ie&&re===oe&&(ie-=1),V(ne,re,oe,ie),A(ne),F(null)}if(Q||X||Z||J)if(Y)e.preventDefault(),A(Y);else if(C&&d){var ae,le=qe(d);(ae=Q?kr.focus.tabbable.findNext(le):kr.focus.tabbable.findPrevious(le))&&(e.preventDefault(),ae.focus(),M())}}else{if(d)if(C){var se=qe(d);if(W){if(s===se)return a.current=!0,void r.current.focus()}else{var ue=kr.focus.tabbable.find(se);if(s===(Object(f.last)(ue)||se))return a.current=!0,void o.current.focus()}}else w&&L(!0);else if(k&&C&&s===c.current)return a.current=!0,void(W?r.current.focus():o.current.focus());var de=n.current.ownerDocument.defaultView;if(U?l.current||(l.current=Object(kr.computeCaretRect)(de)):l.current=null,!K)return st.isKeyboardEvent.primary(e)&&(i.current=Object(kr.isEntirelySelected)(s)),void(st.isKeyboardEvent.primary(e,"a")&&((s.isContentEditable?i.current:Object(kr.isEntirelySelected)(s))&&(R(Object(f.first)(y),Object(f.last)(y)),e.preventDefault()),i.current=!0));if(!e.nativeEvent.defaultPrevented&&function(e,t,n){if((t===st.UP||t===st.DOWN)&&!n)return!0;var r=e.tagName;return"INPUT"!==r&&"TEXTAREA"!==r}(s,t,q)){var be,fe="rtl"===(be=s).ownerDocument.defaultView.getComputedStyle(be).direction?!H:H;if(W)(H&&m||!H&&O)&&(k||function(e,t){var r,o,c=as(e,t,n.current);return!(c&&(r=e,o=c,r.closest(".block-editor-block-list__block")===o.closest(".block-editor-block-list__block")))}(s,H)&&$(s,H))&&(!function(e){var t=e?m:O;t&&R(p||d,t)}(H),e.preventDefault());else if(k)!function(e){var t=e?h:j;t&&A(t)}(H),e.preventDefault();else if(U&&Object(kr.isVerticalEdge)(s,H)&&!N){var pe=as(s,H,n.current,!0);pe&&(Object(kr.placeCaretAtVerticalEdge)(pe,H,l.current),e.preventDefault())}else if(z&&de.getSelection().isCollapsed&&Object(kr.isHorizontalEdge)(s,fe)&&!N){var me=as(s,fe,n.current);Object(kr.placeCaretAtHorizontalEdge)(me,fe),e.preventDefault()}}}},onMouseDown:function(e){if(l.current=null,_&&d&&$e(qe(d),e.target)?(L(!1),F(null)):_&&E()&&Ye(e.target)&&G(P(T(E()),B(Ye(e.target)))),C&&0===e.button){var t=Ye(e.target);t&&(e.shiftKey?w!==t&&(R(w,t),e.preventDefault()):k&&A(t))}}},Object(u.createElement)("div",{ref:c,tabIndex:k?"0":void 0,"aria-label":k?Object(g.__)("Multiple selected blocks"):void 0,style:{position:"fixed"}}),t),Object(u.createElement)(cs,{ref:o,selectedClientId:d,containerRef:n,noCapture:a,hasMultiSelection:k,multiSelectionContainer:c,isReverse:!0}),Object(u.createElement)("div",{"aria-hidden":!0,tabIndex:-1,onClick:function(){var e=kr.focus.focusable.find(n.current),t=Object(f.findLast)(e,is);t&&Object(kr.placeCaretAtHorizontalEdge)(t,!0)},className:"block-editor-writing-flow__click-redirect"}))}function us(e){var t=e.clientId,n=e.setIsInserterForced,r=e.containerRef,o=Object(u.useRef)(),c=Object(v.useSelect)((function(e){var n=e("core/block-editor"),r=n.getMultiSelectedBlockClientIds,o=n.getSelectedBlockClientId,c=n.hasMultiSelection;if((0,n.getSettings)().hasReducedUI)return!0;var i=r(),a=o();return c()?i.includes(t):t===a}),[t]);return Object(u.createElement)("div",{ref:o,onFocus:function(){return n(!0)},onBlur:function(){return n(!1)},onClick:function(e){var n=e.clientX,c=e.clientY,i=e.target;if(i===o.current){var a=i.getBoundingClientRect(),l=c<a.top+a.height/2,s=qe(t),u=as(s,!0,l?r.current:s)||s,d=new window.DOMRect(n,c,0,16);Object(kr.placeCaretAtVerticalEdge)(u,l,d,!1)}},tabIndex:-1,className:b()("block-editor-block-list__insertion-point-inserter",{"is-inserter-hidden":c})},Object(u.createElement)(os,{position:"bottom center",clientId:t,__experimentalIsQuick:!0}))}function ds(e){var t=e.clientId,n=e.rootClientId,r=e.isInserterShown,o=e.isInserterForced,c=e.setIsInserterForced,i=e.containerRef,a=e.showInsertionPoint,l=Object(u.useContext)(Xa),s=Object(u.useMemo)((function(){return t?qe(t):l.get(n||"")}),[t,n,l]);return Object(u.createElement)(h.Popover,{noArrow:!0,animate:!1,anchorRef:s,position:"top right left",focusOnMount:!1,className:"block-editor-block-list__insertion-point-popover",__unstableSlotName:"block-toolbar"},Object(u.createElement)("div",{className:"block-editor-block-list__insertion-point",style:{width:null==s?void 0:s.offsetWidth}},a&&Object(u.createElement)("div",{className:"block-editor-block-list__insertion-point-indicator"}),(r||o)&&Object(u.createElement)(us,{clientId:t,setIsInserterForced:c,containerRef:i})))}function bs(e){var t=e.children,n=e.containerRef,r=Object(u.useState)(!1),o=Object(re.a)(r,2),c=o[0],i=o[1],a=Object(u.useState)(!1),l=Object(re.a)(a,2),s=l[0],d=l[1],b=Object(u.useState)(null),f=Object(re.a)(b,2),p=f[0],m=f[1],O=Object(v.useSelect)((function(e){var t=e("core/block-editor"),n=t.isMultiSelecting,r=t.isBlockInsertionPointVisible,o=t.getBlockInsertionPoint,c=t.getBlockOrder,i=o(),a=c(i.rootClientId);return{isMultiSelecting:n(),isInserterVisible:r(),selectedClientId:a[i.index],selectedRootClientId:i.rootClientId}}),[]),g=O.isMultiSelecting,h=O.isInserterVisible,j=O.selectedClientId,k=O.selectedRootClientId;var y=c||s||h;return Object(u.createElement)(u.Fragment,null,!g&&y&&Object(u.createElement)(ds,{clientId:h?j:p,rootClientId:k,isInserterShown:c,isInserterForced:s,setIsInserterForced:d,containerRef:n,showInsertionPoint:h}),Object(u.createElement)("div",{onMouseMove:s||g?void 0:function(e){if(e.target.classList.contains("block-editor-block-list__layout")){var t=e.target.getBoundingClientRect(),n=e.clientY-t.top,r=Array.from(e.target.children).find((function(e){return e.offsetTop>n}));if(r&&(r.id||(r=r.firstElementChild))){var o=r.id.slice("block-".length);if(o){var a=r.getBoundingClientRect();e.clientX>a.right||e.clientX<a.left?c&&i(!1):(i(!0),m(o))}}}else c&&i(!1)}},t))}var fs=function(e){var t=e.clientId,n=e.rootClientId,r=Object(he.a)(e,["clientId","rootClientId"]),o=Object(v.useSelect)((function(e){var r,o=e("core/block-editor"),c=o.__unstableGetBlockWithoutInnerBlocks,i=o.getBlockIndex,a=o.hasBlockMovingClientId,l=o.getBlockListSettings,s=i(t,n),u=c(t);return{index:s,name:u.name,attributes:u.attributes,blockMovingMode:a(),orientation:null===(r=l(n))||void 0===r?void 0:r.orientation}}),[t,n]),i=o.index,a=o.name,s=o.attributes,d=o.blockMovingMode,f=o.orientation,p=Object(v.useDispatch)("core/block-editor"),m=p.setNavigationMode,O=p.removeBlock,g=Object(u.useRef)();Object(u.useEffect)((function(){g.current.focus(),window.navigator.platform.indexOf("Win")>-1&&Object(Le.speak)(k)}),[]);var j=Object(c.getBlockType)(a),k=Object(c.__experimentalGetAccessibleBlockLabel)(j,s,i+1,f),y=b()("block-editor-block-list__block-selection-button",{"is-block-moving-mode":!!d});return Object(u.createElement)("div",Object(l.a)({className:y},r),Object(u.createElement)(h.Button,{ref:g,onClick:function(){return m(!1)},onKeyDown:function(e){var n=e.keyCode;n!==st.BACKSPACE&&n!==st.DELETE||(O(t),e.preventDefault())},label:k},Object(u.createElement)(Zn,{clientId:t})))};function ps(e,t,n){var r=Object(u.useState)(t),o=Object(re.a)(r,1)[0],c=Object(u.useCallback)((function(){var t,n,r;t=e.current,n=kr.focus.tabbable.find(t),(r=Object(re.a)(n,1)[0])&&r.focus()}),[]);Object(a.useShortcut)("core/block-editor/focus-toolbar",c,{bindGlobal:!0,eventName:"keydown"}),Object(u.useEffect)((function(){o&&c()}),[n,o,c])}var ms=function(e){var t=e.children,n=e.focusOnMount,r=Object(he.a)(e,["children","focusOnMount"]),o=Object(u.useRef)(),c=function(e){var t=Object(u.useState)(!0),n=Object(re.a)(t,2),r=n[0],o=n[1],c=Object(u.useCallback)((function(){var t=kr.focus.tabbable.find(e.current),n=!t.some((function(e){return!("toolbarItem"in e.dataset)}));n||to()("Using custom components as toolbar controls",{alternative:"ToolbarItem or ToolbarButton components",link:"https://developer.wordpress.org/block-editor/components/toolbar-button/#inside-blockcontrols"}),o(n)}),[]);return Object(u.useLayoutEffect)((function(){var t=new window.MutationObserver(c);return t.observe(e.current,{childList:!0,subtree:!0}),function(){return t.disconnect()}}),[r]),r}(o);return ps(o,n,c),c?Object(u.createElement)(h.Toolbar,Object(l.a)({label:r["aria-label"],ref:o},r),t):Object(u.createElement)(h.NavigableMenu,Object(l.a)({orientation:"horizontal",role:"toolbar",ref:o},r),t)},vs=Object(u.createElement)(j.SVG,{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},Object(u.createElement)(j.Path,{d:"M5 4h2V2H5v2zm6-2v2h2V2h-2zm-6 8h2V8H5v2zm6 0h2V8h-2v2zm-6 6h2v-2H5v2zm6 0h2v-2h-2v2z"}));function Os(e){var t=e.clientIds,n=Object(v.useSelect)((function(e){var n;if(1===t.length){var r=(0,e("core/block-editor").getBlockName)(Object(re.a)(t,1)[0]);return null===(n=Object(c.getBlockType)(r))||void 0===n?void 0:n.icon}}),[t]);return Object(u.createElement)("div",{className:"block-editor-block-draggable-chip-wrapper"},Object(u.createElement)("div",{className:"block-editor-block-draggable-chip"},Object(u.createElement)(h.Flex,{justify:"center",className:"block-editor-block-draggable-chip__content"},Object(u.createElement)(h.FlexItem,null,n?Object(u.createElement)(qn,{icon:n}):Object(g.sprintf)(Object(g._n)("%d block","%d blocks",t.length),t.length)),Object(u.createElement)(h.FlexItem,null,Object(u.createElement)(qn,{icon:vs})))))}var gs=function(e){var t,n,r,o,c=e.children,i=e.clientIds,a=e.cloneClassname,l=e.onDragStart,s=e.onDragEnd,d=e.elementId,b=Object(v.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockRootClientId,r=t.getTemplateLock,o=n(i[0]);return{srcRootClientId:o,isDraggable:"all"!==(o?r(o):null)}}),[i]),f=b.srcRootClientId,p=b.isDraggable,m=Object(u.useRef)(!1),O=(t=Object(u.useRef)(null),n=Object(u.useRef)(null),r=Object(u.useRef)(null),o=Object(u.useRef)(null),Object(u.useEffect)((function(){return function(){o.current&&(clearInterval(o.current),o.current=null)}}),[]),[Object(u.useCallback)((function(e){t.current=e.clientY,r.current=Object(kr.getScrollContainer)(e.target),o.current=setInterval((function(){if(r.current&&n.current){var e=r.current.scrollTop+n.current;r.current.scroll({top:e})}}),25)}),[]),Object(u.useCallback)((function(e){if(r.current){var o=r.current.offsetHeight,c=t.current-r.current.offsetTop,i=e.clientY-r.current.offsetTop;if(e.clientY>c){var a=Math.max(o-c-50,0),l=Math.max(i-c-50,0)/a;n.current=25*l}else if(e.clientY<c){var s=Math.max(c-50,0),u=Math.max(c-i-50,0)/s;n.current=-25*u}else n.current=0}}),[]),function(){t.current=null,r.current=null,o.current&&(clearInterval(o.current),o.current=null)}]),g=Object(re.a)(O,3),j=g[0],k=g[1],y=g[2],_=Object(v.useDispatch)("core/block-editor"),E=_.startDraggingBlocks,C=_.stopDraggingBlocks;if(Object(u.useEffect)((function(){return function(){m.current&&C()}}),[]),!p)return c({isDraggable:!1});var w={type:"block",srcClientIds:i,srcRootClientId:f};return Object(u.createElement)(h.Draggable,{cloneClassname:a,elementId:d||"block-".concat(i[0]),transferData:w,onDragStart:function(e){E(i),m.current=!0,j(e),l&&l()},onDragOver:k,onDragEnd:function(){C(),m.current=!1,y(),s&&s()},__experimentalDragComponent:Object(u.createElement)(Os,{clientIds:i})},(function(e){var t=e.onDraggableStart,n=e.onDraggableEnd;return c({isDraggable:!0,onDraggableStart:t,onDraggableEnd:n})}))};var hs=Object(v.withSelect)((function(e,t){var n,r=t.clientIds,o=e("core/block-editor"),i=o.getBlock,a=o.getBlockIndex,l=o.getBlockListSettings,s=o.getTemplateLock,u=o.getBlockOrder,d=o.getBlockRootClientId,b=Object(f.castArray)(r),p=Object(f.first)(b),m=i(p),v=d(Object(f.first)(b)),O=a(p,v),g=0===O,h=a(Object(f.last)(b),v)===u(v).length-1;return{blockType:m?Object(c.getBlockType)(m.name):null,isLocked:"all"===s(v),rootClientId:v,firstIndex:O,isFirst:g,isLast:h,orientation:null===(n=l(v))||void 0===n?void 0:n.orientation}}))((function(e){var t=e.isFirst,n=e.isLast,r=e.clientIds,o=e.isLocked,c=e.isHidden,i=e.rootClientId,a=e.orientation,s=e.hideDragHandle,d=Object(u.useState)(!1),f=Object(re.a)(d,2),p=f[0],m=f[1],v=function(){return m(!0)},O=function(){return m(!1)};return o||t&&n&&!i?null:Object(u.createElement)("div",{className:b()("block-editor-block-mover",{"is-visible":p||!c,"is-horizontal":"horizontal"===a})},!s&&Object(u.createElement)(gs,{clientIds:r,cloneClassname:"block-editor-block-mover__drag-clone"},(function(e){var t=e.isDraggable,n=e.onDraggableStart,o=e.onDraggableEnd;return Object(u.createElement)(h.Button,{icon:vs,className:"block-editor-block-mover__drag-handle","aria-hidden":"true",label:Object(g._n)("Drag block","Drag blocks",r.length),tabIndex:"-1",onDragStart:n,onDragEnd:o,draggable:t})})),Object(u.createElement)(h.ToolbarGroup,{className:"block-editor-block-mover__move-button-container"},Object(u.createElement)(h.ToolbarItem,{onFocus:v,onBlur:O},(function(e){return Object(u.createElement)(Rr,Object(l.a)({clientIds:r},e))})),Object(u.createElement)(h.ToolbarItem,{onFocus:v,onBlur:O},(function(e){return Object(u.createElement)(Ar,Object(l.a)({clientIds:r},e))}))))}));function js(){var e=Object(v.useDispatch)("core/block-editor").selectBlock,t=Object(v.useSelect)((function(e){var t=e("core/block-editor"),r=t.getBlockName,o=t.getBlockParents,i=t.getSelectedBlockClientId,a=e("core/blocks").hasBlockSupport,l=o(i()),s=l[l.length-1],u=r(s);return{parentBlockType:Object(c.getBlockType)(u),firstParentClientId:s,shouldHide:!a(n,"__experimentalParentSelector",!0)}}),[]),n=t.parentBlockType,r=t.firstParentClientId;return t.shouldHide?null:void 0!==r?Object(u.createElement)("div",{className:"block-editor-block-parent-selector",key:r},Object(u.createElement)(h.ToolbarButton,{className:"block-editor-block-parent-selector__button",onClick:function(){return e(r)},label:Object(g.sprintf)(Object(g.__)("Select parent (%s)"),n.title),showTooltip:!0,icon:Object(u.createElement)(qn,{icon:n.icon})})):null}var ks=Object(u.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(j.Path,{d:"M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zm-13.5 0V4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1v11.8c0 .1-.1.1-.1.1H4.6l-.1-.1z"}));function ys(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return _s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _s(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}function _s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Es(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Cs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Es(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Es(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ws(e){var t=e.genericPreviewBlock,n=e.style,r=e.isActive,o=e.onBlur,c=e.onHover,i=e.onSelect,a=e.styleClassName,l=e.itemRole,s=Object(u.useMemo)((function(){return Cs(Cs({},t),{},{attributes:Cs(Cs({},t.attributes),{},{className:a})})}),[t,a]);return Object(u.createElement)("div",{key:n.name,className:b()("block-editor-block-styles__item",{"is-active":r}),onClick:function(){return i()},onKeyDown:function(e){st.ENTER!==e.keyCode&&st.SPACE!==e.keyCode||(e.preventDefault(),i())},onMouseEnter:c,onMouseLeave:o,role:l||"button",tabIndex:"0","aria-label":n.label||n.name},Object(u.createElement)("div",{className:"block-editor-block-styles__item-preview"},Object(u.createElement)(pl,{viewportWidth:500,blocks:s})),Object(u.createElement)("div",{className:"block-editor-block-styles__item-label"},n.label||n.name))}var Ss=function(e){var t=e.clientId,n=e.onSwitch,r=void 0===n?f.noop:n,o=e.onHoverClassName,i=void 0===o?f.noop:o,a=e.itemRole,l=Object(v.useSelect)((function(e){var n=e("core/block-editor").getBlock,r=e("core/blocks").getBlockStyles,o=n(t);return{block:o,type:Object(c.getBlockType)(o.name),styles:r(o.name),className:o.attributes.className||""}}),[t]),s=l.styles,d=l.block,b=l.type,p=l.className,m=Object(v.useDispatch)("core/block-editor").updateBlockAttributes,O=function(e,t){return Object(u.useMemo)((function(){return t.example?Object(c.getBlockFromExample)(e.name,{attributes:t.example.attributes,innerBlocks:t.example.innerBlocks}):Object(c.cloneBlock)(e)}),[t.example?e.name:e,t])}(d,b);if(!s||0===s.length)return null;var h=Object(f.find)(s,"isDefault")?s:[{name:"default",label:Object(g._x)("Default","block style"),isDefault:!0}].concat(Object(ne.a)(s)),j=function(e,t){var n,r=ys(new vt.a(t).values());try{for(r.s();!(n=r.n()).done;){var o=n.value;if(-1!==o.indexOf("is-style-")){var c=o.substring(9),i=Object(f.find)(e,{name:c});if(i)return i}}}catch(e){r.e(e)}finally{r.f()}return Object(f.find)(e,"isDefault")}(h,p);return Object(u.createElement)("div",{className:"block-editor-block-styles"},h.map((function(e){var n=function(e,t,n){var r=new vt.a(e);return t&&r.remove("is-style-"+t.name),r.add("is-style-"+n.name),r.value}(p,j,e);return Object(u.createElement)(ws,{genericPreviewBlock:O,className:p,isActive:j===e,key:e.name,onSelect:function(){m(t,{className:n}),i(null),r()},onBlur:function(){return i(null)},onHover:function(){return i(n)},style:e,styleClassName:n,itemRole:a})})))},Is=function(e){var t=e.className,n=e.possibleBlockTransformations,r=e.onSelect;return Object(u.createElement)(h.MenuGroup,{label:Object(g.__)("Transform to"),className:t},n.map((function(e){var t=e.name,n=e.icon,o=e.title;return Object(u.createElement)(h.MenuItem,{key:t,className:Object(c.getBlockMenuDefaultClassName)(t),onClick:function(e){e.preventDefault(),r(t)}},Object(u.createElement)(qn,{icon:n,showColors:!0}),o)})))};function Bs(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object($t.a)(e);if(t){var o=Object($t.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(qt.a)(this,n)}}function xs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ps(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xs(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ts(e){var t=e.hoveredBlock,n=e.hoveredClassName,r=Object(c.getBlockType)(t.name);return Object(u.createElement)("div",{className:"block-editor-block-switcher__popover__preview__parent"},Object(u.createElement)("div",{className:"block-editor-block-switcher__popover__preview__container"},Object(u.createElement)(h.Popover,{className:"block-editor-block-switcher__preview__popover",position:"bottom right",focusOnMount:!1},Object(u.createElement)("div",{className:"block-editor-block-switcher__preview"},Object(u.createElement)("div",{className:"block-editor-block-switcher__preview-title"},Object(g.__)("Preview")),Object(u.createElement)(pl,{viewportWidth:500,blocks:r.example?Object(c.getBlockFromExample)(t.name,{attributes:Ps(Ps({},r.example.attributes),{},{className:n}),innerBlocks:r.example.innerBlocks}):Object(c.cloneBlock)(t,{className:n})})))))}var Ns=function(e){Object(Wt.a)(n,e);var t=Bs(n);function n(){var e;return Object(Ut.a)(this,n),(e=t.apply(this,arguments)).state={hoveredClassName:null},e.onHoverClassName=e.onHoverClassName.bind(Object(Kt.a)(e)),e}return Object(Gt.a)(n,[{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,i=t.hasBlockStyles,a=this.state.hoveredClassName;if(!Array.isArray(n)||!n.length)return null;var l,s=Object(re.a)(n,1)[0],d=Object(f.mapKeys)(o,(function(e){return e.name})),b=Object(f.orderBy)(Object(f.filter)(Object(c.getPossibleBlockTransformations)(n),(function(e){return e&&!!d[e.name]})),(function(e){return d[e.name].frecency}),"desc");if(1===Object(f.uniq)(Object(f.map)(n,"name")).length){var p=s.name,m=Object(c.getBlockType)(p);l=m.icon}else l=ks;var v=!!b.length;if(!i&&!v)return Object(u.createElement)(h.ToolbarGroup,null,Object(u.createElement)(h.ToolbarButton,{disabled:!0,className:"block-editor-block-switcher__no-switcher-icon",title:Object(g.__)("Block icon"),icon:Object(u.createElement)(qn,{icon:l,showColors:!0})}));var O=1===n.length?Object(g.__)("Change block type or style"):Object(g.sprintf)(Object(g._n)("Change type of %d block","Change type of %d blocks",n.length),n.length);return Object(u.createElement)(h.ToolbarGroup,null,Object(u.createElement)(h.ToolbarItem,null,(function(t){return Object(u.createElement)(h.DropdownMenu,{className:"block-editor-block-switcher",label:O,popoverProps:{position:"bottom right",isAlternate:!0,className:"block-editor-block-switcher__popover"},icon:Object(u.createElement)(qn,{icon:l,className:"block-editor-block-switcher__toggle",showColors:!0}),toggleProps:t,menuProps:{orientation:"both"}},(function(t){var o=t.onClose;return(i||v)&&Object(u.createElement)("div",{className:"block-editor-block-switcher__container"},v&&Object(u.createElement)(Is,{className:"block-editor-block-switcher__transforms__menugroup",possibleBlockTransformations:b,onSelect:function(e){r(n,e),o()}}),i&&Object(u.createElement)(h.MenuGroup,{label:Object(g.__)("Styles"),className:"block-editor-block-switcher__styles__menugroup"},null!==a&&Object(u.createElement)(Ts,{hoveredBlock:s,hoveredClassName:a}),Object(u.createElement)(Ss,{clientId:s.clientId,onSwitch:o,onHoverClassName:e.onHoverClassName,itemRole:"menuitem"})))}))})))}}]),n}(u.Component),Ds=Object(p.compose)(Object(v.withSelect)((function(e,t){var n=t.clientIds,r=e("core/block-editor"),o=r.getBlocksByClientId,c=r.getBlockRootClientId,i=r.getInserterItems,a=e("core/blocks").getBlockStyles,l=c(Object(f.castArray)(n)[0]),s=o(n),u=s&&1===s.length?s[0]:null,d=u&&a(u.name);return{blocks:s,inserterItems:i(l),hasBlockStyles:d&&d.length>0}})),Object(v.withDispatch)((function(e,t){return{onTransform:function(n,r){e("core/block-editor").replaceBlocks(t.clientIds,Object(c.switchToBlockType)(n,r))}}})))(Ns),Rs=n(41);function As(){var e=Object(v.useSelect)((function(e){return e("core/block-editor")}),[]).getBlockName,t=Object(v.useSelect)((function(e){return e("core/blocks")}),[]).getBlockType,n=Object(v.useDispatch)("core/notices").createSuccessNotice;return Object(u.useCallback)((function(r,o){var c="";if(1===o.length){var i=o[0],a=t(e(i)).title;c="copy"===r?Object(g.sprintf)(Object(g.__)('Copied "%s" to clipboard.'),a):Object(g.sprintf)(Object(g.__)('Moved "%s" to clipboard.'),a)}else c="copy"===r?Object(g.sprintf)(Object(g._n)("Copied %d block to clipboard.","Copied %d blocks to clipboard.",o.length),o.length):Object(g.sprintf)(Object(g._n)("Moved %d block to clipboard.","Moved %d blocks to clipboard.",o.length),o.length);n(c,{type:"snackbar"})}),[])}var Ms=function(e){var t=e.children,n=Object(u.useRef)(),r=Object(v.useSelect)((function(e){return e("core/block-editor")}),[]),o=r.getBlocksByClientId,i=r.getSelectedBlockClientIds,a=r.hasMultiSelection,l=r.getSettings,s=Object(v.useDispatch)("core/block-editor"),d=s.flashBlock,b=s.removeBlocks,p=s.replaceBlocks,m=As(),O=l().__experimentalCanUserUseUnfilteredHTML,g=function(e){var t=i();if(0!==t.length){if(!a()){var r=e.target.ownerDocument;if("copy"===e.type||"cut"===e.type?Object(kr.documentHasUncollapsedSelection)(r):Object(kr.documentHasSelection)(r))return}if(n.current.contains(e.target)){if(e.preventDefault(),"copy"===e.type||"cut"===e.type){1===t.length&&d(t[0]),m(e.type,t);var l=o(t),s=Object(c.serialize)(l);e.clipboardData.setData("text/plain",s),e.clipboardData.setData("text/html",s)}if("cut"===e.type)b(t);else if("paste"===e.type){var u=function(e){var t=e.clipboardData,n=t.items,r=t.files;n=Object(f.isNil)(n)?[]:n,r=Object(f.isNil)(r)?[]:r;var o="",c="";try{o=t.getData("text/plain"),c=t.getData("text/html")}catch(e){try{c=t.getData("Text")}catch(e){return}}return r=Array.from(r),Array.from(n).forEach((function(e){if(e.getAsFile){var t=e.getAsFile();if(t){var n=t.name,o=t.type,c=t.size;Object(f.find)(r,{name:n,type:o,size:c})||r.push(t)}}})),(r=r.filter((function(e){var t=e.type;return/^image\/(?:jpe?g|png|gif)$/.test(t)}))).length&&!c&&(c=r.map((function(e){return'<img src="'.concat(Object(Rs.createBlobURL)(e),'">')})).join(""),o=""),{html:c,plainText:o}}(e),v=u.plainText,g=u.html,h=Object(c.pasteHandler)({HTML:g,plainText:v,mode:"BLOCKS",canUserUseUnfilteredHTML:O});p(t,h,h.length-1,-1)}}}};return Object(u.createElement)("div",{ref:n,onCopy:g,onCut:g,onPaste:g},t)};function Ls(e){var t=e.clientIds,n=e.children,r=e.__experimentalUpdateSelection,o=Object(v.useSelect)((function(e){return e("core/block-editor")}),[]),i=o.canInsertBlockType,a=o.getBlockRootClientId,l=o.getBlocksByClientId,s=o.getTemplateLock,u=Object(v.useSelect)((function(e){return e("core/blocks")}),[]),d=u.getDefaultBlockName,b=u.getGroupingBlockName,p=l(t),m=a(t[0]),O=Object(f.every)(p,(function(e){return!!e&&Object(c.hasBlockSupport)(e.name,"multiple",!0)&&i(e.name,m)})),g=i(d(),m),h=Object(v.useDispatch)("core/block-editor"),j=h.removeBlocks,k=h.replaceBlocks,y=h.duplicateBlocks,_=h.insertAfterBlock,E=h.insertBeforeBlock,C=h.flashBlock,w=h.setBlockMovingClientId,S=h.setNavigationMode,I=h.selectBlock,B=As();return n({canDuplicate:O,canInsertDefaultBlock:g,isLocked:!!s(m),rootClientId:m,blocks:p,onDuplicate:function(){return y(t,r)},onRemove:function(){return j(t,r)},onInsertBefore:function(){E(Object(f.first)(Object(f.castArray)(t)))},onInsertAfter:function(){_(Object(f.last)(Object(f.castArray)(t)))},onMoveTo:function(){S(!0),I(t[0]),w(t[0])},onGroup:function(){if(p.length){var e=b(),n=Object(c.switchToBlockType)(p,e);n&&k(t,n)}},onUngroup:function(){if(p.length){var e=p[0].innerBlocks;e.length&&k(t,e)}},onCopy:function(){var e=p.map((function(e){return e.clientId}));1===p.length&&C(e[0]),B("copy",e)}})}var Fs=Object(p.compose)([Object(v.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor"),o=r.getBlock,i=r.getBlockMode,a=r.getSettings,l=o(n),s=a().codeEditingEnabled;return{mode:i(n),blockType:l?Object(c.getBlockType)(l.name):null,isCodeEditingEnabled:s}})),Object(v.withDispatch)((function(e,t){var n=t.onToggle,r=void 0===n?f.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,i=void 0!==o&&o,a=e.isCodeEditingEnabled,l=void 0===a||a;if(!Object(c.hasBlockSupport)(t,"html",!0)||!l)return null;var s="visual"===n?Object(g.__)("Edit as HTML"):Object(g.__)("Edit visually");return Object(u.createElement)(h.MenuItem,{onClick:r},!i&&s)}));var Vs=Object(p.compose)(Object(v.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(v.withDispatch)((function(e,t){var n=t.block;return{onClick:function(){return e("core/block-editor").replaceBlocks(n.clientId,Object(c.rawHandler)({HTML:Object(c.getBlockContent)(n)}))}}})))((function(e){var t=e.shouldRender,n=e.onClick,r=e.small;if(!t)return null;var o=Object(g.__)("Convert to Blocks");return Object(u.createElement)(h.MenuItem,{onClick:n},!r&&o)})),Hs=Object(h.createSlotFill)("__experimentalBlockSettingsMenuFirstItem"),zs=Hs.Fill,Us=Hs.Slot;zs.Slot=Us;var Gs=zs;function Ks(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ws(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ks(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ks(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var qs=Object(h.createSlotFill)("BlockSettingsMenuControls"),$s=qs.Fill,Ys=qs.Slot;$s.Slot=function(e){var t=e.fillProps,n=e.clientIds,r=void 0===n?null:n,o=Object(v.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlocksByClientId,o=t.getSelectedBlockClientIds,c=null!==r?r:o();return Object(f.map)(Object(f.compact)(n(c)),(function(e){return e.name}))}),[r]);return Object(u.createElement)(Ys,{fillProps:Ws(Ws({},t),{},{selectedBlocks:o})},(function(e){return!Object(f.isEmpty)(e)&&Object(u.createElement)(h.MenuGroup,null,e)}))};var Xs=$s,Qs={className:"block-editor-block-settings-menu__popover",position:"bottom right",isAlternate:!0};var Zs=function(e){var t=e.clientIds,n=e.__experimentalSelectBlock,r=e.children,o=Object(he.a)(e,["clientIds","__experimentalSelectBlock","children"]),i=Object(f.castArray)(t),a=i.length,s=i[0],d=Object(v.useSelect)((function(e){var t=e("core/keyboard-shortcuts").getShortcutRepresentation;return{duplicate:t("core/block-editor/duplicate"),remove:t("core/block-editor/remove"),insertAfter:t("core/block-editor/insert-after"),insertBefore:t("core/block-editor/insert-before")}}),[]),b=Object(u.useCallback)(n?function(){var e=Object(gr.a)(Or.a.mark((function e(t){var r;return Or.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t;case 2:(r=e.sent)&&r[0]&&n(r[0]);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}():f.noop,[n]);return Object(u.createElement)(Ls,{clientIds:t,__experimentalUpdateSelection:!n},(function(e){var n=e.canDuplicate,i=e.canInsertDefaultBlock,p=e.isLocked,m=e.onDuplicate,v=e.onInsertAfter,O=e.onInsertBefore,j=e.onRemove,k=e.onCopy,y=e.onMoveTo,_=e.blocks;return Object(u.createElement)(h.DropdownMenu,Object(l.a)({icon:hr.a,label:Object(g.__)("More options"),className:"block-editor-block-settings-menu",popoverProps:Qs,noIcons:!0},o),(function(e){var o=e.onClose;return Object(u.createElement)(u.Fragment,null,Object(u.createElement)(h.MenuGroup,null,Object(u.createElement)(Gs.Slot,{fillProps:{onClose:o}}),1===a&&Object(u.createElement)(Vs,{clientId:s}),Object(u.createElement)(h.ClipboardButton,{text:function(){return Object(c.serialize)(_)},role:"menuitem",className:"components-menu-item__button",onCopy:k},Object(g.__)("Copy")),n&&Object(u.createElement)(h.MenuItem,{onClick:Object(f.flow)(o,m,b),shortcut:d.duplicate},Object(g.__)("Duplicate")),i&&Object(u.createElement)(u.Fragment,null,Object(u.createElement)(h.MenuItem,{onClick:Object(f.flow)(o,O),shortcut:d.insertBefore},Object(g.__)("Insert Before")),Object(u.createElement)(h.MenuItem,{onClick:Object(f.flow)(o,v),shortcut:d.insertAfter},Object(g.__)("Insert After"))),!p&&Object(u.createElement)(h.MenuItem,{onClick:Object(f.flow)(o,y)},Object(g.__)("Move To")),1===a&&Object(u.createElement)(Fs,{clientId:s,onToggle:o})),Object(u.createElement)(Xs.Slot,{fillProps:{onClose:o},clientIds:t}),"function"==typeof r?r({onClose:o}):u.Children.map((function(e){return Object(u.cloneElement)(e,{onClose:o})})),Object(u.createElement)(h.MenuGroup,null,!p&&Object(u.createElement)(h.MenuItem,{onClick:Object(f.flow)(o,j,b),shortcut:d.remove},Object(g._n)("Remove block","Remove blocks",a))))}))}))};var Js=function(e){var t=e.clientIds,n=Object(he.a)(e,["clientIds"]);return Object(u.createElement)(h.ToolbarGroup,null,Object(u.createElement)(h.ToolbarItem,null,(function(e){return Object(u.createElement)(Zs,Object(l.a)({clientIds:t,toggleProps:e},n))})))},eu=window,tu=eu.clearTimeout,nu=eu.setTimeout;function ru(e){var t=e.ref,n=e.isFocused,r=e.debounceTimeout,o=void 0===r?200:r,c=e.onChange,i=void 0===c?f.noop:c,a=Object(u.useState)(!1),l=Object(re.a)(a,2),s=l[0],d=l[1],b=Object(u.useRef)(),p=function(e){(null==t?void 0:t.current)&&d(e),i(e)},m=function(){var e=(null==t?void 0:t.current)&&t.current.matches(":hover");return!n&&!e},v=function(){var e=b.current;e&&tu&&tu(e)};return Object(u.useEffect)((function(){return function(){return v()}}),[]),{showMovers:s,debouncedShowMovers:function(e){e&&e.stopPropagation(),v(),s||p(!0)},debouncedHideMovers:function(e){e&&e.stopPropagation(),v(),b.current=nu((function(){m()&&p(!1)}),o)}}}var ou=n(278);function cu(e){var t=e.hideDragHandle,n=e.__experimentalExpandedControl,r=void 0!==n&&n,o=Object(v.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockName,r=t.getBlockMode,o=t.getSelectedBlockClientIds,i=t.isBlockValid,a=t.getBlockRootClientId,l=t.getSettings,s=o(),u=s[0],d=a(u),b=l();return{blockClientIds:s,blockClientId:u,blockType:u&&Object(c.getBlockType)(n(u)),hasFixedToolbar:b.hasFixedToolbar,hasReducedUI:b.hasReducedUI,rootClientId:d,isValid:s.every((function(e){return i(e)})),isVisual:s.every((function(e){return"visual"===r(e)}))}}),[]),i=o.blockClientIds,a=o.blockClientId,s=o.blockType,d=o.hasFixedToolbar,m=o.hasReducedUI,g=o.isValid,j=o.isVisual,k=Object(v.useDispatch)("core/block-editor").toggleBlockHighlight,y=Object(u.useRef)(),_=function(e){var t=e.ref,n=e.debounceTimeout,r=void 0===n?200:n,o=e.onChange,c=void 0===o?f.noop:o,i=Object(u.useState)(!1),a=Object(re.a)(i,2),l=a[0],s=a[1],d=ru({ref:t,debounceTimeout:r,isFocused:l,onChange:c}),b=d.showMovers,p=d.debouncedShowMovers,m=d.debouncedHideMovers,v=Object(u.useRef)(!1),O=function(){return(null==t?void 0:t.current)&&t.current.contains(t.current.ownerDocument.activeElement)};return Object(u.useEffect)((function(){var e=t.current,n=function(){O()&&(s(!0),p())},r=function(){O()||(s(!1),m())};return e&&!v.current&&(e.addEventListener("focus",n,!0),e.addEventListener("blur",r,!0),v.current=!0),function(){e&&(e.removeEventListener("focus",n),e.removeEventListener("blur",r))}}),[t,v,s,p,m]),{showMovers:b,gestures:{onMouseMove:p,onMouseLeave:m}}}({ref:y,onChange:function(e){e&&m||k(a,e)}}),E=_.showMovers,C=_.gestures,w=Object(p.useViewportMatch)("medium","<")||d;if(s&&!Object(c.hasBlockSupport)(s,"__experimentalToolbar",!0))return null;var S=w||E;if(0===i.length)return null;var I=g&&j,B=i.length>1,x=b()("block-editor-block-toolbar",S&&"is-showing-movers"),P=r?ou.a:"div";return Object(u.createElement)(P,{className:x},Object(u.createElement)("div",Object(l.a)({ref:y},C),!B&&Object(u.createElement)("div",{className:"block-editor-block-toolbar__block-parent-selector-wrapper"},Object(u.createElement)(js,{clientIds:i})),(I||B)&&Object(u.createElement)(h.ToolbarGroup,{className:"block-editor-block-toolbar__block-controls"},Object(u.createElement)(Ds,{clientIds:i}),Object(u.createElement)(hs,{clientIds:i,hideDragHandle:t||m}))),I&&Object(u.createElement)(u.Fragment,null,Object(u.createElement)(O.a.Slot,{bubblesVirtually:!0,className:"block-editor-block-toolbar__slot"}),Object(u.createElement)(mr.Slot,{bubblesVirtually:!0,className:"block-editor-block-toolbar__slot"})),Object(u.createElement)(Js,{clientIds:i}))}var iu=function(e){var t=e.focusOnMount,n=Object(he.a)(e,["focusOnMount"]),r=Object(v.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockName,r=t.getSelectedBlockClientIds,o=e("core/blocks").getBlockType,c=r()[0];return{blockType:c&&o(n(c))}}),[]).blockType;return r&&!Object(c.hasBlockSupport)(r,"__experimentalToolbar",!0)?null:Object(u.createElement)("div",{className:"block-editor-block-contextual-toolbar-wrapper"},Object(u.createElement)(ms,Object(l.a)({focusOnMount:t,className:"block-editor-block-contextual-toolbar","aria-label":Object(g.__)("Block tools")},n),Object(u.createElement)(cu,null)))};function au(e){var t=e("core/block-editor"),n=t.isNavigationMode,r=t.isMultiSelecting,o=t.hasMultiSelection,c=t.isTyping,i=t.isCaretWithinFormattedText,a=t.getSettings,l=t.getLastMultiSelectedBlockClientId;return{isNavigationMode:n(),isMultiSelecting:r(),isTyping:c(),isCaretWithinFormattedText:i(),hasMultiSelection:o(),hasFixedToolbar:a().hasFixedToolbar,lastClientId:l()}}function lu(e){var t=e.clientId,n=e.rootClientId,r=e.isValid,o=e.isEmptyDefaultBlock,c=e.capturingClientId,i=Object(v.useSelect)(au,[]),l=i.isNavigationMode,s=i.isMultiSelecting,d=i.isTyping,f=i.isCaretWithinFormattedText,m=i.hasMultiSelection,O=i.hasFixedToolbar,g=i.lastClientId,j=Object(p.useViewportMatch)("medium"),k=Object(u.useState)(!1),y=Object(re.a)(k,2),_=y[0],E=y[1],C=Object(u.useState)(!1),w=Object(re.a)(C,2),S=w[0],I=w[1],B=Object(u.useContext)(bu),x=!d&&!l&&o&&r,P=l,T=!l&&!O&&j&&!x&&!s&&(!d||f),N=!(l||T||O||o);if(Object(a.useShortcut)("core/block-editor/focus-toolbar",Object(u.useCallback)((function(){return E(!0)}),[]),{bindGlobal:!0,eventName:"keydown",isDisabled:!N}),!(P||T||_||x))return null;var D=B[t];if(c&&(D=document.getElementById("block-"+c)),!D)return null;var R=D;if(m){var A=B[g];if(!A)return null;R={top:D,bottom:A}}var M=x?"top left right":"top right left";return Object(u.createElement)(h.Popover,{noArrow:!0,animate:!1,position:M,focusOnMount:!1,anchorRef:R,className:"block-editor-block-list__block-popover",__unstableSticky:!x,__unstableSlotName:"block-toolbar",__unstableBoundaryParent:!0,__unstableObserveElement:D,onBlur:function(){return E(!1)},shouldAnchorIncludePadding:!0},(T||_)&&Object(u.createElement)("div",{onFocus:function(){I(!0)},onBlur:function(){I(!1)},tabIndex:-1,className:b()("block-editor-block-list__block-popover-inserter",{"is-visible":S})},Object(u.createElement)(os,{clientId:t,rootClientId:n,__experimentalIsQuick:!0})),(T||_)&&Object(u.createElement)(iu,{focusOnMount:_}),P&&Object(u.createElement)(fs,{clientId:t,rootClientId:n}),x&&Object(u.createElement)("div",{className:"block-editor-block-list__empty-block-inserter"},Object(u.createElement)(os,{position:"bottom right",rootClientId:n,clientId:t,__experimentalIsQuick:!0})))}function su(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getFirstMultiSelectedBlockClientId,o=t.getBlockRootClientId,i=t.__unstableGetBlockWithoutInnerBlocks,a=t.getBlockParents,l=t.__experimentalGetBlockListSettingsForBlocks,s=n()||r();if(s){var u,d=i(s)||{},b=d.name,p=d.attributes,m=void 0===p?{}:p,v=d.isValid,O=a(s),g=l(O),h=Object(f.findIndex)(g,["__experimentalCaptureToolbars",!0]);return-1!==h&&(u=O[h]),{clientId:s,rootClientId:o(s),name:b,isValid:v,isEmptyDefaultBlock:b&&Object(c.isUnmodifiedDefaultBlock)({name:b,attributes:m}),capturingClientId:u}}}function uu(){var e=Object(v.useSelect)(su,[]);if(!e)return null;var t=e.clientId,n=e.rootClientId,r=e.name,o=e.isValid,c=e.isEmptyDefaultBlock,i=e.capturingClientId;return r?Object(u.createElement)(lu,{clientId:t,rootClientId:n,isValid:o,isEmptyDefaultBlock:c,capturingClientId:i}):null}var du=Object(u.createContext)(),bu=Object(u.createContext)(),fu=Object(u.createContext)();function pu(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.hasMultiSelection;return{selectedBlockClientId:n(),hasMultiSelection:r()}}function mu(e){Ye(e.target)&&e.preventDefault()}var vu=Object(u.forwardRef)((function(e,t){var n=e.children,r=e.className,o=Object(v.useSelect)(pu,[]),c=o.selectedBlockClientId,i=o.hasMultiSelection,a=Object(v.useDispatch)("core/block-editor").selectBlock,l=function(e){var t=Object(v.useSelect)(ro,[]),n=t.isSelectionEnabled,r=t.isMultiSelecting,o=t.multiSelectedBlockClientIds,c=t.hasMultiSelection,i=t.getBlockParents,a=t.selectedBlockClientId,l=Object(v.useDispatch)("core/block-editor"),s=l.startMultiSelect,d=l.stopMultiSelect,b=l.multiSelect,f=l.selectBlock,p=Object(u.useRef)(),m=Object(u.useRef)(),O=Object(u.useRef)();Object(u.useEffect)((function(){var t=e.current.ownerDocument,n=t.defaultView;if(c&&!r){var i=o.length;if(!(i<2)){var l=o[0],s=o[i-1],u=qe(l),d=qe(s),b=n.getSelection(),f=t.createRange();u=no(u,"start"),d=no(d,"end"),f.setStartBefore(u),f.setEndAfter(d),b.removeAllRanges(),b.addRange(f)}}else{if(!a||r)return;var p=n.getSelection();if(p.rangeCount&&!p.isCollapsed){var m=qe(a),v=p.getRangeAt(0),O=v.startContainer,g=v.endContainer;!m||m.contains(O)&&m.contains(g)||p.removeAllRanges()}}}),[c,r,o,f,a]);var g=Object(u.useCallback)((function(t){var n=t.isSelectionEnd,r=e.current.ownerDocument.defaultView.getSelection();if(r.rangeCount&&!r.isCollapsed){var o=Ye(r.focusNode);if(m.current===o){if(f(o),n&&(oo(e.current,!0),r.rangeCount)){var c=r.getRangeAt(0).commonAncestorContainer;O.current.contains(c)&&O.current.focus()}}else{var a=[].concat(Object(ne.a)(i(m.current)),[m.current]),l=[].concat(Object(ne.a)(i(o)),[o]),s=Math.min(a.length,l.length)-1;b(a[s],l[s])}}else oo(e.current,!0)}),[f,i,b]),h=Object(u.useCallback)((function(){var t=e.current.ownerDocument,n=t.defaultView;t.removeEventListener("selectionchange",g),n.removeEventListener("mouseup",h),p.current=n.requestAnimationFrame((function(){g({isSelectionEnd:!0}),d()}))}),[g,d]);return Object(u.useEffect)((function(){var t=e.current.ownerDocument,n=t.defaultView;return function(){t.removeEventListener("selectionchange",g),n.removeEventListener("mouseup",h),n.cancelAnimationFrame(p.current)}}),[g,h]),Object(u.useCallback)((function(t){if(n){var r=e.current.ownerDocument,o=r.defaultView;m.current=t,O.current=r.activeElement,s(),r.addEventListener("selectionchange",g),o.addEventListener("mouseup",h),oo(e.current,!1)}}),[n,s,h])}(t),s=Object(u.useState)({}),d=Object(re.a)(s,2),f=d[0],p=d[1];return Object(u.createElement)(bs,{containerRef:t},Object(u.createElement)(bu.Provider,{value:f},Object(u.createElement)(uu,null),Object(u.createElement)("div",{ref:t,className:b()(r,"is-root-container"),onFocus:function(e){if(!i){var t=Ye(e.target);t&&t!==c&&a(t)}},onDragStart:mu},Object(u.createElement)(fu.Provider,{value:p},Object(u.createElement)(du.Provider,{value:l},n)))))})),Ou=["p","div","h1","h2","h3","h4","h5","h6","ol","ul","li","figure","nav","pre","header","section","aside","footer","main"];function gu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gu(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ju(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.__unstableIsHtml,r=Object(u.useRef)(),o=e.ref||r,c=Object(u.useContext)(du),i=Object(u.useContext)(fu),a=Object(u.useContext)(Cu),l=a.clientId,d=a.rootClientId,p=a.isSelected,m=a.isFirstMultiSelected,O=a.isLastMultiSelected,h=a.isPartOfMultiSelection,j=a.enableAnimation,k=a.index,y=a.className,_=a.name,E=a.mode,C=a.blockTitle,w=a.wrapperProps,S=void 0===w?{}:w,I=Object(v.useSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlocksInitialCaretPosition,r=t.isMultiSelecting,o=t.isNavigationMode;return{shouldFocusFirstElement:p&&!r()&&!o(),initialPosition:p?n():void 0,isNavigationMode:o}}),[p]),B=I.initialPosition,x=I.shouldFocusFirstElement,P=I.isNavigationMode,T=Object(v.useDispatch)("core/block-editor"),N=T.insertDefaultBlock,D=T.removeBlock,R=Object(u.useState)(!1),A=Object(re.a)(R,2),M=A[0],L=A[1];Object(u.useEffect)((function(){if(p||m||O){var e=o.current;return i((function(t){return hu(hu({},t),{},Object(s.a)({},l,e))})),function(){i((function(e){return Object(f.omit)(e,l)}))}}}),[p,m,O]),Object(u.useEffect)((function(){var e=o.current;i((function(t){return t[l]&&t[l]!==e?hu(hu({},t),{},Object(s.a)({},l,e)):t}))}));var F=Object(g.sprintf)(Object(g.__)("Block: %s"),C),V=function(){var e=o.current.ownerDocument;if(!e.activeElement||!$e(o.current,e.activeElement)){var t=kr.focus.tabbable.find(o.current).filter((function(e){return Object(kr.isTextField)(e)&&$e(o.current,e)&&!e.closest(".block-list-appender")})),n=-1===B,r=(n?f.last:f.first)(t)||o.current;Object(kr.placeCaretAtHorizontalEdge)(r,n)}};Object(u.useEffect)((function(){x&&V()}),[x]),Er(o,p||h,p||m,j,k),Object(u.useEffect)((function(){if(p)return o.current.addEventListener("keydown",e),o.current.addEventListener("mouseleave",t),function(){o.current.removeEventListener("mouseleave",t),o.current.removeEventListener("keydown",e)};function e(e){var t=e.keyCode,n=e.target;t!==st.ENTER&&t!==st.BACKSPACE&&t!==st.DELETE||n!==o.current||Object(kr.isTextField)(n)||(e.preventDefault(),t===st.ENTER?N({},d,k+1):D(l))}function t(e){1===e.buttons&&c(l)}}),[p,c,N,D]),Object(u.useEffect)((function(){if(P)return o.current.addEventListener("mouseover",e),o.current.addEventListener("mouseout",t),function(){o.current.removeEventListener("mouseover",e),o.current.removeEventListener("mouseout",t)};function e(e){e.defaultPrevented||(e.preventDefault(),M||L(!0))}function t(e){e.defaultPrevented||(e.preventDefault(),M&&L(!1))}}),[P,M,L]);var H="html"!==E||n?"":"-visual";return hu(hu(hu({},S),e),{},{ref:o,id:"block-".concat(l).concat(H),tabIndex:0,role:"group","aria-label":F,"data-block":l,"data-type":_,"data-title":C,className:b()(y,e.className,S.className,{"is-hovered":M}),style:hu(hu({},S.style),e.style)})}ju.save=c.__unstableGetBlockProps;var ku=Object(u.forwardRef)((function(e,t){var n=e.children,r=e.tagName,o=void 0===r?"div":r,c=Object(he.a)(e,["children","tagName"]);to()("wp.blockEditor.__experimentalBlock",{alternative:"wp.blockEditor.useBlockProps"});var i=ju(hu(hu({},c),{},{ref:t}));return Object(u.createElement)(o,i,n)})),yu=Ou.reduce((function(e,t){return e[t]=Object(u.forwardRef)((function(e,n){return Object(u.createElement)(ku,Object(l.a)({},e,{ref:n,tagName:t}))})),e}),ku);function _u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Eu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_u(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Cu=Object(u.createContext)();function wu(e){var t=e.children,n=e.isHtml,r=Object(he.a)(e,["children","isHtml"]);return Object(u.createElement)("div",ju(r,{__unstableIsHtml:n}),t)}var Su=Object(v.withSelect)((function(e,t){var n=t.clientId,r=t.rootClientId,o=e("core/block-editor"),c=o.isBlockSelected,i=o.isAncestorMultiSelected,a=o.isBlockMultiSelected,l=o.isFirstMultiSelectedBlock,s=o.getLastMultiSelectedBlockClientId,u=o.isTyping,d=o.getBlockMode,b=o.isSelectionEnabled,f=o.hasSelectedInnerBlock,p=o.getTemplateLock,m=o.__unstableGetBlockWithoutInnerBlocks,v=o.getMultiSelectedBlockClientIds,O=m(n),g=c(n),h=p(r),j=f(n,!0),k=O||{},y=k.name,_=k.attributes,E=k.isValid,C=l(n);return{isMultiSelected:a(n),isPartOfMultiSelection:a(n)||i(n),isFirstMultiSelected:C,isLastMultiSelected:s()===n,multiSelectedClientIds:C?v():void 0,isTypingWithinBlock:(g||j)&&u(),mode:d(n),isSelectionEnabled:b(),isLocked:!!h,block:O,name:y,attributes:_,isValid:E,isSelected:g,isAncestorOfSelectedBlock:j}})),Iu=Object(v.withDispatch)((function(e,t,n){var r=n.select,o=e("core/block-editor"),i=o.updateBlockAttributes,a=o.insertBlocks,l=o.mergeBlocks,s=o.replaceBlocks,u=o.toggleSelection,d=o.__unstableMarkLastChangeAsPersistent;return{setAttributes:function(e){var n=t.clientId,r=t.isFirstMultiSelected,o=t.multiSelectedClientIds;i(r?o:[n],e)},onInsertBlocks:function(e,n){var r=t.rootClientId;a(e,n,r)},onInsertBlocksAfter:function(e){var n=t.clientId,o=t.rootClientId,c=(0,r("core/block-editor").getBlockIndex)(n,o);a(e,c+1,o)},onMerge:function(e){var n=t.clientId,o=r("core/block-editor"),c=o.getPreviousBlockClientId,i=o.getNextBlockClientId;if(e){var a=i(n);a&&l(n,a)}else{var s=c(n);s&&l(s,n)}},onReplace:function(e,n,r){e.length&&!Object(c.isUnmodifiedDefaultBlock)(e[e.length-1])&&d(),s([t.clientId],e,n,r)},toggleSelection:function(e){u(e)}}})),Bu=Object(p.compose)(p.pure,Su,Iu,Object(p.ifCondition)((function(e){return!!e.block})),Object(h.withFilters)("editor.BlockListBlock"))((function(e){var t,n,r,o=e.mode,i=e.isLocked,a=e.clientId,s=e.rootClientId,d=e.isSelected,m=e.isMultiSelected,O=e.isPartOfMultiSelection,g=e.isFirstMultiSelected,h=e.isLastMultiSelected,j=e.isTypingWithinBlock,k=e.isAncestorOfSelectedBlock,y=e.isSelectionEnabled,_=e.className,E=e.name,C=e.isValid,w=e.attributes,S=e.wrapperProps,I=e.setAttributes,B=e.onReplace,x=e.onInsertBlocksAfter,P=e.onMerge,T=e.toggleSelection,N=e.index,D=e.enableAnimation,R=e.activeEntityBlockId,A=Object(p.useViewportMatch)("medium"),M=Object(v.useSelect)((function(e){var t=e("core/block-editor"),n=t.isBlockBeingDragged,r=t.isBlockHighlighted,o=t.getSettings;return{isDragging:n(a),isHighlighted:r(a),isFocusMode:o().focusMode}}),[a]),L=M.isDragging,F=M.isHighlighted,V=M.isFocusMode,H=Object(v.useDispatch)("core/block-editor").removeBlock,z=Object(u.useCallback)((function(){return H(a)}),[a]),U=Object(u.useState)(!1),G=Object(re.a)(U,2),K=G[0],W=G[1],q=Object(c.getBlockType)(E),$=q.apiVersion>1||Object(c.hasBlockSupport)(q,"lightBlockWrapper",!1),Y=E===Object(c.getUnregisteredTypeHandlerName)();q.getEditWrapperProps&&(t=S,n=q.getEditWrapperProps(w),r=Eu(Eu({},t),n),t&&n&&t.className&&n.className&&(r.className=b()(t.className,n.className)),t&&n&&t.style&&n.style&&(r.style=Eu(Eu({},t.style),n.style)),S=r);var X=$&&Object(c.hasBlockSupport)(q,"className",!0)?Object(c.getBlockDefaultClassName)(E):null,Q=$?w.className:null,Z=S&&!!S["data-align"],J=b()(X,Q,"block-editor-block-list__block",{"wp-block":!Z,"has-warning":!C||!!K||Y,"is-selected":d&&!L,"is-highlighted":F,"is-multi-selected":m,"is-reusable":Object(c.isReusableBlock)(q),"is-dragging":L,"is-typing":j,"is-focused":V&&A&&(d||k),"is-focus-mode":V&&A,"has-child-selected":k&&!L,"is-active-entity":R===a},_),ee=Object(u.createElement)(ur,{name:E,isSelected:d,attributes:w,setAttributes:I,insertBlocksAfter:i?void 0:x,onReplace:i?void 0:B,onRemove:i?void 0:z,mergeBlocks:i?void 0:P,clientId:a,isSelectionEnabled:y,toggleSelection:T});if(Z){var te={"data-align":S["data-align"]};ee=Object(u.createElement)("div",Object(l.a)({className:"wp-block"},te),ee)}var ne,oe={clientId:a,rootClientId:s,isSelected:d,isFirstMultiSelected:g,isLastMultiSelected:h,isPartOfMultiSelection:O,enableAnimation:D,index:N,className:J,isLocked:i,name:E,mode:o,blockTitle:q.title,wrapperProps:Object(f.omit)(S,["data-align"])},ce=Object(u.useMemo)((function(){return oe}),Object.values(oe));return ne=C?"html"===o?Object(u.createElement)(u.Fragment,null,Object(u.createElement)("div",{style:{display:"none"}},ee),Object(u.createElement)(wu,{isHtml:!0},Object(u.createElement)(Jr,{clientId:a}))):$?ee:Object(u.createElement)(wu,S,ee):Object(u.createElement)(wu,null,Object(u.createElement)(Wr,{clientId:a}),Object(u.createElement)("div",null,Object(c.getSaveElement)(q,w))),Object(u.createElement)(Cu.Provider,{value:ce},Object(u.createElement)(Xr,{onError:function(){return W(!0)}},ne),!!K&&Object(u.createElement)(wu,null,Object(u.createElement)($r,null)))})),xu=function(e,t,n){return Object(g.sprintf)(Object(g.__)("Block %1$d of %2$d, Level %3$d"),e,t,n)};var Pu=Object(u.forwardRef)((function e(t,n){var r=t.className,o=t.block,i=t.isSelected,a=t.onClick,l=t.position,s=t.siblingBlockCount,d=t.level,f=t.tabIndex,m=t.onFocus,v=t.onDragStart,O=t.onDragEnd,j=t.draggable,k=o.name,y=o.attributes,_=Object(c.getBlockType)(k),E=Object(c.__experimentalGetBlockLabel)(_,y),C=Object(p.useInstanceId)(e),w="block-navigation-block-select-button__".concat(C),S=xu(l,s,d);return Object(u.createElement)(u.Fragment,null,Object(u.createElement)(h.Button,{className:b()("block-editor-block-navigation-block-select-button",r),onClick:a,"aria-describedby":w,ref:n,tabIndex:f,onFocus:m,onDragStart:v,onDragEnd:O,draggable:j},Object(u.createElement)(qn,{icon:_.icon,showColors:!0}),E,i&&Object(u.createElement)(h.VisuallyHidden,null,Object(g.__)("(selected block)"))),Object(u.createElement)("div",{className:"block-editor-block-navigation-block-select-button__description",id:w},S))}));function Tu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tu(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Du=function(e){return"BlockNavigationBlock-".concat(e)};var Ru=Object(u.forwardRef)((function e(t,n){var r=Object(p.useInstanceId)(e),o=t.block.clientId;return Object(u.createElement)(h.Slot,{name:Du(o)},(function(e){if(!e.length)return Object(u.createElement)(Pu,Object(l.a)({ref:n},t));var o=t.className,i=t.block,a=t.isSelected,s=t.position,d=t.siblingBlockCount,f=t.level,p=t.tabIndex,m=t.onFocus,v=i.name,O=Object(c.getBlockType)(v),j="block-navigation-block-slot__".concat(r),k=xu(s,d,f),y={tabIndex:p,onFocus:m,ref:n,"aria-describedby":j};return Object(u.createElement)(u.Fragment,null,Object(u.createElement)("div",{className:b()("block-editor-block-navigation-block-slot",o)},Object(u.createElement)(qn,{icon:O.icon,showColors:!0}),u.Children.map(e,(function(e){return Object(u.cloneElement)(e,Nu(Nu({},e.props),y))})),a&&Object(u.createElement)(h.VisuallyHidden,null,Object(g.__)("(selected block)")),Object(u.createElement)("div",{className:"block-editor-block-navigation-block-slot__description",id:j},k)))}))})),Au=function(e){var t=Object(u.useContext)(Cu).clientId;return Object(u.createElement)(h.Fill,Object(l.a)({},e,{name:Du(t)}))},Mu=Object(u.forwardRef)((function(e,t){var n=e.onClick,r=e.block,o=e.isSelected,c=e.position,i=e.siblingBlockCount,a=e.level,s=Object(he.a)(e,["onClick","block","isSelected","position","siblingBlockCount","level"]),d=Fr(),f=d.__experimentalFeatures,p=d.blockDropTarget,m=void 0===p?{}:p,O=r.clientId,g=Object(v.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockRootClientId,r=t.hasBlockMovingClientId,o=t.getSelectedBlockClientId;return{rootClientId:n(O)||"",blockMovingClientId:r(),selectedBlockInBlockEditor:o()}}),[O]),h=g.rootClientId,j=g.blockMovingClientId,k=g.selectedBlockInBlockEditor,y=j&&k===O,_=m.rootClientId,E=m.clientId,C=m.dropPosition,w=_===h&&E===O&&"top"===C,S=_===h&&E===O&&"bottom"===C,I=_===O&&"inside"===C,B=b()("block-editor-block-navigation-block-contents",{"is-dropping-before":w||y,"is-dropping-after":S,"is-dropping-to-inner-blocks":I});return Object(u.createElement)(gs,{clientIds:[r.clientId],elementId:"block-navigation-block-".concat(r.clientId)},(function(e){var d=e.isDraggable,b=e.onDraggableStart,p=e.onDraggableEnd;return f?Object(u.createElement)(Ru,Object(l.a)({ref:t,className:B,block:r,onClick:n,isSelected:o,position:c,siblingBlockCount:i,level:a,draggable:d&&f,onDragStart:b,onDragEnd:p},s)):Object(u.createElement)(Pu,Object(l.a)({ref:t,className:B,block:r,onClick:n,isSelected:o,position:c,siblingBlockCount:i,level:a,draggable:d&&f,onDragStart:b,onDragEnd:p},s))}))}));function Lu(e){var t=e.block,n=e.isSelected,r=e.onClick,o=e.position,c=e.level,i=e.rowCount,a=e.siblingBlockCount,l=e.showBlockMovers,s=e.terminatedLevels,d=e.path,f=Object(u.useRef)(null),p=Object(u.useState)(!1),m=Object(re.a)(p,2),O=m[0],j=m[1],k=Object(u.useState)(!1),y=Object(re.a)(k,2),_=y[0],E=y[1],C=t.clientId,w=Object(v.useSelect)((function(e){var t=e("core/block-editor"),n=t.isBlockBeingDragged,r=t.isAncestorBeingDragged;return n(C)||r(C)}),[C]),S=Object(v.useDispatch)("core/block-editor").selectBlock,I=l&&a>0,B=O||_,x=b()("block-editor-block-navigation-block__mover-cell",{"is-visible":B}),P=Fr().__experimentalFeatures,T=b()("block-editor-block-navigation-block__menu-cell",{"is-visible":B});return Object(u.useEffect)((function(){P&&n&&f.current.focus()}),[P,n]),Object(u.createElement)(wr,{className:b()({"is-selected":n,"is-dragging":w}),onMouseEnter:function(){return j(!0)},onMouseLeave:function(){return j(!1)},onFocus:function(){return E(!0)},onBlur:function(){return E(!1)},level:c,position:o,rowCount:i,path:d,id:"block-navigation-block-".concat(C),"data-block":C},Object(u.createElement)(h.__experimentalTreeGridCell,{className:"block-editor-block-navigation-block__contents-cell",colSpan:I?void 0:2,ref:f},(function(e){var l=e.ref,d=e.tabIndex,b=e.onFocus;return Object(u.createElement)("div",{className:"block-editor-block-navigation-block__contents-container"},Object(u.createElement)(Mr,{level:c,isLastRow:o===i,terminatedLevels:s}),Object(u.createElement)(Mu,{block:t,onClick:function(){return r(t.clientId)},isSelected:n,position:o,siblingBlockCount:a,level:c,ref:l,tabIndex:d,onFocus:b}))})),I&&Object(u.createElement)(u.Fragment,null,Object(u.createElement)(h.__experimentalTreeGridCell,{className:x,withoutGridItem:!0},Object(u.createElement)(h.__experimentalTreeGridItem,null,(function(e){var t=e.ref,n=e.tabIndex,r=e.onFocus;return Object(u.createElement)(Rr,{orientation:"vertical",clientIds:[C],ref:t,tabIndex:n,onFocus:r})})),Object(u.createElement)(h.__experimentalTreeGridItem,null,(function(e){var t=e.ref,n=e.tabIndex,r=e.onFocus;return Object(u.createElement)(Ar,{orientation:"vertical",clientIds:[C],ref:t,tabIndex:n,onFocus:r})})))),P&&Object(u.createElement)(h.__experimentalTreeGridCell,{className:T},(function(e){var t=e.ref,n=e.tabIndex,o=e.onFocus;return Object(u.createElement)(Zs,{clientIds:[C],icon:hr.a,toggleProps:{ref:t,tabIndex:n,onFocus:o},disableOpenOnArrowDown:!0,__experimentalSelectBlock:r},(function(e){var t=e.onClose;return Object(u.createElement)(h.MenuGroup,null,Object(u.createElement)(h.MenuItem,{onClick:Object(gr.a)(Or.a.mark((function e(){return Or.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,S(null);case 2:return e.next=4,S(C);case 4:t();case 5:case"end":return e.stop()}}),e)})))},Object(g.__)("Go to block")))}))})))}function Fu(e){var t=e.parentBlockClientId,n=e.position,r=e.level,o=e.rowCount,c=e.terminatedLevels,i=e.path,a=Object(v.useSelect)((function(e){var n=e("core/block-editor"),r=n.isBlockBeingDragged,o=n.isAncestorBeingDragged;return r(t)||o(t)}),[t]),l=Object(p.useInstanceId)(Fu),s="block-navigation-appender-row__description_".concat(l),d=Object(g.sprintf)(Object(g.__)("Add block at position %1$d, Level %2$d"),n,r);return Object(u.createElement)(wr,{className:b()({"is-dragging":a}),level:r,position:n,rowCount:o,path:i},Object(u.createElement)(h.__experimentalTreeGridCell,{className:"block-editor-block-navigation-appender__cell",colSpan:"3"},(function(e){var i=e.ref,a=e.tabIndex,l=e.onFocus;return Object(u.createElement)("div",{className:"block-editor-block-navigation-appender__container"},Object(u.createElement)(Mr,{level:r,isLastRow:n===o,terminatedLevels:c}),Object(u.createElement)(os,{rootClientId:t,__experimentalIsQuick:!0,__experimentalSelectBlockOnInsert:!1,"aria-describedby":s,toggleProps:{ref:i,tabIndex:a,onFocus:l}}),Object(u.createElement)("div",{className:"block-editor-block-navigation-appender__description",id:s},d))})))}function Vu(e){var t=e.blocks,n=e.selectBlock,r=e.selectedBlockClientId,o=e.showAppender,c=e.showBlockMovers,i=e.showNestedBlocks,a=e.parentBlockClientId,l=e.level,s=void 0===l?1:l,d=e.terminatedLevels,b=void 0===d?[]:d,p=e.path,m=void 0===p?[]:p,v=!a,O=Object(f.compact)(t),g=function(e){return o&&!v&&r===e},h=g(a),j=O.length,k=h?j+1:j,y=k;return Object(u.createElement)(u.Fragment,null,Object(f.map)(O,(function(e,t){var a=e.clientId,l=e.innerBlocks,d=t+1,f=k===d?[].concat(Object(ne.a)(b),[s]):b,p=[].concat(Object(ne.a)(m),[d]),v=i&&!!l&&!!l.length,O=g(a);return Object(u.createElement)(u.Fragment,{key:a},Object(u.createElement)(Lu,{block:e,onClick:n,isSelected:r===a,level:s,position:d,rowCount:k,siblingBlockCount:j,showBlockMovers:c,terminatedLevels:b,path:p}),(v||O)&&Object(u.createElement)(Vu,{blocks:l,selectedBlockClientId:r,selectBlock:n,showAppender:o,showBlockMovers:c,showNestedBlocks:i,parentBlockClientId:a,level:s+1,terminatedLevels:f,path:p}))})),h&&Object(u.createElement)(Fu,{parentBlockClientId:a,position:k,rowCount:y,level:s,terminatedLevels:b,path:[].concat(Object(ne.a)(m),[y])}))}function Hu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zu(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Uu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Uu(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}function Uu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Gu(e,t){return t.left<=e.x&&t.right>=e.x&&t.top<=e.y&&t.bottom>=e.y}Vu.defaultProps={selectBlock:function(){}};var Ku=["top","bottom"];function Wu(e){var t=Object(u.useState)(),n=Object(re.a)(t,2),r=n[0],o=void 0===r?{}:r,c=n[1],i=nl(o.rootClientId,o.blockIndex),a=Object(h.__unstableUseDropZone)(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hu(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({element:e,withPosition:!0},i)),l=a.position,d=a.type,b=function(e,t,n){var r=Object(v.useSelect)((function(e){var t=e("core/block-editor");return{canInsertBlocks:t.canInsertBlocks,getBlockRootClientId:t.getBlockRootClientId,getBlockIndex:t.getBlockIndex,getBlockCount:t.getBlockCount,getDraggedBlockClientIds:t.getDraggedBlockClientIds}}),[]),o=r.getBlockRootClientId,c=r.getBlockIndex,i=r.getBlockCount,a=r.getDraggedBlockClientIds,l=r.canInsertBlocks,s=Object(u.useRef)(),d=!!t;return Object(u.useEffect)((function(){if(e.current&&d){var t="default"===n,r=t?a():void 0,u=Array.from(e.current.querySelectorAll("[data-block]"));s.current=u.map((function(e){var n=e.dataset.block,a=o(n);return{clientId:n,rootClientId:a,blockIndex:c(n,a),element:e,isDraggedBlock:!!t&&r.includes(n),innerBlockCount:i(n),canInsertDraggedBlocksAsSibling:!t||l(r,a),canInsertDraggedBlocksAsChild:!t||l(r,n)}}))}}),[e,d,n,l,i,c,o,a]),s}(e,l,d);if(Object(u.useEffect)((function(){if(l){var e=function(e,t){var n,r,o,c,i,a=zu(e);try{for(a.s();!(i=a.n()).done;){var l=i.value;if(!l.isDraggedBlock){var s=l.element.getBoundingClientRect(),u=ol(t,s,Ku),d=Object(re.a)(u,2),b=d[0],f=d[1],p=Gu(t,s);if(void 0===o||b<o||p){o=b;var m=e.indexOf(l),v=e[m-1];if("top"===f&&v&&v.rootClientId===l.rootClientId&&!v.isDraggedBlock?(r=v,n="bottom",c=v.element.getBoundingClientRect()):(r=l,n=f,c=s),p)break}}}}catch(e){a.e(e)}finally{a.f()}if(r){var O="bottom"===n;if(O&&r.canInsertDraggedBlocksAsChild&&(r.innerBlockCount>0||function(e,t){var n=t.left+t.width/2;return e.x>n}(t,c)))return{rootClientId:r.clientId,blockIndex:0,dropPosition:"inside"};if(r.canInsertDraggedBlocksAsSibling){var g=O?1:0;return{rootClientId:r.rootClientId,clientId:r.clientId,blockIndex:r.blockIndex+g,dropPosition:n}}}}(b.current,l);e&&c(e)}}),[b,l]),l)return o}function qu(e){var t=e.__experimentalFeatures,n=Object(he.a)(e,["__experimentalFeatures"]),r=Object(u.useRef)(),o=Wu(r);t||(o=void 0);var c=Object(u.useMemo)((function(){return{__experimentalFeatures:t,blockDropTarget:o}}),[t,o]);return Object(u.createElement)(h.__experimentalTreeGrid,{className:"block-editor-block-navigation-tree","aria-label":Object(g.__)("Block navigation structure"),ref:r},Object(u.createElement)(Lr.Provider,{value:c},Object(u.createElement)(Vu,n)))}var $u=Object(p.compose)(Object(v.withSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getBlockHierarchyRootClientId,o=t.__unstableGetBlockWithBlockTree,c=t.__unstableGetBlockTree,i=n();return{rootBlocks:c(),rootBlock:i?o(r(i)):null,selectedBlockClientId:i}})),Object(v.withDispatch)((function(e,t){var n=t.onSelect,r=void 0===n?f.noop:n;return{selectBlock:function(t){e("core/block-editor").selectBlock(t),r(t)}}})))((function(e){var t=e.rootBlock,n=e.rootBlocks,r=e.selectedBlockClientId,o=e.selectBlock,c=e.__experimentalFeatures;if(!n||0===n.length)return null;var i=t&&(t.clientId!==r||t.innerBlocks&&0!==t.innerBlocks.length);return Object(u.createElement)("div",{className:"block-editor-block-navigation__container"},Object(u.createElement)("p",{className:"block-editor-block-navigation__label"},Object(g.__)("List view")),i&&Object(u.createElement)(qu,{blocks:[t],selectedBlockClientId:r,selectBlock:o,__experimentalFeatures:c,showNestedBlocks:!0}),!i&&Object(u.createElement)(qu,{blocks:n,selectedBlockClientId:r,selectBlock:o,__experimentalFeatures:c}))})),Yu=Object(u.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},Object(u.createElement)(h.Path,{d:"M13.8 5.2H3v1.5h10.8V5.2zm-3.6 12v1.5H21v-1.5H10.2zm7.2-6H6.6v1.5h10.8v-1.5z"}));function Xu(e){var t=e.isEnabled,n=e.onToggle,r=e.isOpen,o=e.innerRef,c=Object(he.a)(e,["isEnabled","onToggle","isOpen","innerRef"]);Object(a.useShortcut)("core/edit-post/toggle-block-navigation",Object(u.useCallback)(n,[n]),{bindGlobal:!0,isDisabled:!t});var i=Object(v.useSelect)((function(e){return e("core/keyboard-shortcuts").getShortcutRepresentation("core/edit-post/toggle-block-navigation")}),[]);return Object(u.createElement)(h.Button,Object(l.a)({},c,{ref:o,icon:Yu,"aria-expanded":r,"aria-haspopup":"true",onClick:t?n:void 0,label:Object(g.__)("Outline"),className:"block-editor-block-navigation",shortcut:i,"aria-disabled":!t}))}var Qu=Object(u.forwardRef)((function(e,t){var n=e.isDisabled,r=e.__experimentalFeatures,o=Object(he.a)(e,["isDisabled","__experimentalFeatures"]),c=Object(v.useSelect)((function(e){return!!e("core/block-editor").getBlockCount()}),[])&&!n;return Object(u.createElement)(h.Dropdown,{contentClassName:"block-editor-block-navigation__popover",position:"bottom right",renderToggle:function(e){var n=e.isOpen,r=e.onToggle;return Object(u.createElement)(Xu,Object(l.a)({},o,{innerRef:t,isOpen:n,onToggle:r,isEnabled:c}))},renderContent:function(e){var t=e.onClose;return Object(u.createElement)($u,{onSelect:t,__experimentalFeatures:r})}})})),Zu=n(130),Ju=[st.rawShortcut.primary("z"),st.rawShortcut.primaryShift("z"),st.rawShortcut.primary("y")],ed=Object(u.createElement)(h.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(f.fromPairs)(Ju.map((function(e){return[e,function(e){return e.preventDefault()}]})))}),td=function(){return ed};function nd(e){return e.filter((function(e){var t=e.type;return/^image\/(?:jpe?g|png|gif)$/.test(t)})).map((function(e){return'<img src="'.concat(Object(Rs.createBlobURL)(e),'">')})).join("")}var rd={position:"bottom right",isAlternate:!0},od=function(){return Object(u.createElement)("div",{className:"block-editor-format-toolbar"},Object(u.createElement)(h.ToolbarGroup,null,["bold","italic","link","text-color"].map((function(e){return Object(u.createElement)(h.Slot,{name:"RichText.ToolbarControls.".concat(e),key:e})})),Object(u.createElement)(h.Slot,{name:"RichText.ToolbarControls"},(function(e){return 0!==e.length&&Object(u.createElement)(h.ToolbarItem,null,(function(t){return Object(u.createElement)(h.DropdownMenu,{icon:xr.a,label:Object(g.__)("More rich text controls"),toggleProps:t,controls:Object(f.orderBy)(e.map((function(e){return Object(re.a)(e,1)[0].props})),"title"),popoverProps:rd})}))}))))},cd=function(e){var t=e.inline,n=e.anchorRef;return t?Object(u.createElement)(h.Popover,{noArrow:!0,position:"top center",focusOnMount:!1,anchorRef:n,className:"block-editor-rich-text__inline-format-toolbar"},Object(u.createElement)(od,null)):Object(u.createElement)(mr,null,Object(u.createElement)(od,null))};function id(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ad(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?id(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):id(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ld(e){if(!0===e||"p"===e||"li"===e)return!0===e?"p":e}function sd(e){var t=e.allowedFormats,n=e.formattingControls;return e.disableFormats?sd.EMPTY_ARRAY:t||n?t||(to()("wp.blockEditor.RichText formattingControls prop",{alternative:"allowedFormats"}),n.map((function(e){return"core/".concat(e)}))):void 0}sd.EMPTY_ARRAY=[];var ud=Object(u.forwardRef)((function e(t,n){var r=t.children,o=t.tagName,a=t.value,s=t.onChange,d=t.isSelected,f=t.multiline,m=t.inlineToolbar,O=t.wrapperClassName,g=t.autocompleters,h=t.onReplace,j=t.placeholder,k=t.keepPlaceholderOnFocus,y=t.allowedFormats,_=t.formattingControls,E=t.withoutInteractiveFormatting,C=t.onRemove,w=t.onMerge,S=t.onSplit,I=t.__unstableOnSplitAtEnd,B=t.__unstableOnSplitMiddle,x=t.identifier,P=t.preserveWhiteSpace,T=t.__unstableEmbedURLOnPaste,N=t.__unstableDisableFormats,D=t.disableLineBreaks,R=t.unstableOnFocus,A=t.__unstableAllowPrefixTransformations,M=t.__unstableMultilineRootTag,L=t.__unstableMobileNoFocusOnMount,F=t.deleteEnter,V=t.placeholderTextColor,H=t.textAlign,U=t.selectionColor,G=t.tagsToEliminate,K=t.rootTagsToEliminate,W=t.disableEditingMenu,q=t.fontSize,$=t.fontFamily,Y=t.fontWeight,X=t.fontStyle,Q=t.minWidth,Z=t.maxWidth,J=t.onBlur,ee=t.setRef,te=Object(he.a)(t,["children","tagName","value","onChange","isSelected","multiline","inlineToolbar","wrapperClassName","autocompleters","onReplace","placeholder","keepPlaceholderOnFocus","allowedFormats","formattingControls","withoutInteractiveFormatting","onRemove","onMerge","onSplit","__unstableOnSplitAtEnd","__unstableOnSplitMiddle","identifier","preserveWhiteSpace","__unstableEmbedURLOnPaste","__unstableDisableFormats","disableLineBreaks","unstableOnFocus","__unstableAllowPrefixTransformations","__unstableMultilineRootTag","__unstableMobileNoFocusOnMount","deleteEnter","placeholderTextColor","textAlign","selectionColor","tagsToEliminate","rootTagsToEliminate","disableEditingMenu","fontSize","fontFamily","fontWeight","fontStyle","minWidth","maxWidth","onBlur","setRef"]),oe=Object(p.useInstanceId)(e);x=x||oe;var ce=Object(u.useRef)(),ie=n||ce,ae=Object(z.b)(),le=ae.clientId,se=ae.onCaretVerticalPositionChange,ue=ae.isSelected,de=Object(v.useSelect)((function(e){var t,n=e("core/block-editor"),r=n.isCaretWithinFormattedText,o=n.getSelectionStart,i=n.getSelectionEnd,a=n.getSettings,l=n.didAutomaticChange,s=n.__unstableGetBlockWithoutInnerBlocks,b=n.isMultiSelecting,f=n.hasMultiSelection,p=o(),m=i(),v=a().__experimentalUndo;void 0===d?t=p.clientId===le&&p.attributeKey===x:d&&(t=p.clientId===le);var O={};if("native"===u.Platform.OS){var g=le&&s(le);O={shouldBlurOnUnmount:g&&t&&Object(c.isUnmodifiedDefaultBlock)(g)}}return ad({isCaretWithinFormattedText:r(),selectionStart:t?p.offset:void 0,selectionEnd:t?m.offset:void 0,isSelected:t,didAutomaticChange:l(),disabled:b()||f(),undo:v},O)})),be=de.isCaretWithinFormattedText,fe=de.selectionStart,pe=de.selectionEnd,me=de.isSelected,ve=de.didAutomaticChange,Oe=de.disabled,ge=de.undo,je=de.shouldBlurOnUnmount,ke=Object(v.useDispatch)("core/block-editor"),ye=ke.__unstableMarkLastChangeAsPersistent,_e=ke.enterFormattedText,Ee=ke.exitFormattedText,Ce=ke.selectionChange,we=ke.__unstableMarkAutomaticChange,Se=ld(f),Ie=sd({allowedFormats:y,formattingControls:_,disableFormats:N}),Be=!Ie||Ie.length>0,xe=a,Pe=s;Array.isArray(a)&&(xe=c.children.toHTML(a),Pe=function(e){return s(c.children.fromDOM(Object(i.__unstableCreateElement)(document,e).childNodes))});var Te=Object(u.useCallback)((function(e,t){Ce(le,x,e,t)}),[le,x]),Ne=Object(u.useCallback)((function(e){var t=e.value,n=e.isReverse;w&&w(!n),C&&Object(i.isEmpty)(t)&&n&&C(!n)}),[w,C]),De=Object(u.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(h&&S){var n=[],r=Object(i.split)(e),o=Object(re.a)(r,2),c=o[0],a=o[1],l=t.length>0,s=-1;l&&Object(i.isEmpty)(c)||(n.push(S(Object(i.toHTMLString)({value:c,multilineTag:Se}))),s+=1),l?(n.push.apply(n,Object(ne.a)(t)),s+=t.length):B&&n.push(B()),(l||B)&&Object(i.isEmpty)(a)||n.push(S(Object(i.toHTMLString)({value:a,multilineTag:Se})));var u=l?s:1,d=l?-1:null;h(n,u,d)}}),[h,S,Se,B]),Re=Object(u.useCallback)((function(e){var t=e.value,n=e.onChange,r=e.shiftKey,o=h&&S;if(h){var a=Object(c.getBlockTransforms)("from").filter((function(e){return"enter"===e.type})),l=Object(c.findTransform)(a,(function(e){return e.regExp.test(t.text)}));l&&(h([l.transform({content:t.text})]),we())}if(f)r?D||n(Object(i.insert)(t,"\n")):o&&Object(i.__unstableIsEmptyLine)(t)?De(t):n(Object(i.__unstableInsertLineSeparator)(t));else{var s=t.text,u=t.start,d=t.end,b=I&&u===d&&d===s.length;r||!o&&!b?D||n(Object(i.insert)(t,"\n")):!o&&b?I():o&&De(t)}}),[h,S,we,f,De,I]),Ae=Object(u.useCallback)((function(e){var t=e.value,n=e.onChange,r=e.html,a=e.plainText,l=e.files,s=e.activeFormats;if(l&&l.length&&!r){var u=Object(c.pasteHandler)({HTML:nd(l),mode:"BLOCKS",tagName:o});return window.console.log("Received items:\n\n",l),void(h&&Object(i.isEmpty)(t)?h(u):De(t,u))}var d,b=h&&S?"AUTO":"INLINE";"AUTO"===b&&Object(i.isEmpty)(t)&&(d=a,Object(Zu.regexp)(".*").test(d))&&(b="BLOCKS"),T&&Object(i.isEmpty)(t)&&Object(Vl.isURL)(a.trim())&&(b="BLOCKS");var p=Object(c.pasteHandler)({HTML:r,plainText:a,mode:b,tagName:o});if("string"==typeof p){var m=Object(i.create)({html:p});if(s.length)for(var v=m.formats.length;v--;)m.formats[v]=[].concat(Object(ne.a)(s),Object(ne.a)(m.formats[v]||[]));f&&(m=Object(i.replace)(m,/\n+/g,i.__UNSTABLE_LINE_SEPARATOR)),n(Object(i.insert)(t,m))}else p.length>0&&(h&&Object(i.isEmpty)(t)?h(p,p.length-1,-1):De(t,p))}),[o,h,S,De,T,f]),Me=Object(u.useCallback)((function(e,t){if(h){var n=e.start,r=e.text;if(" "===r.slice(n-1,n)){var o=r.slice(0,n).trim(),a=Object(c.getBlockTransforms)("from").filter((function(e){return"prefix"===e.type})),l=Object(c.findTransform)(a,(function(e){var t=e.prefix;return o===t}));if(l){var s=t(Object(i.slice)(e,n,r.length)),u=l.transform(s);h([u]),we()}}}}),[h,we]),Le=Object(u.createElement)(i.__experimentalRichText,{clientId:le,identifier:x,ref:ie,value:xe,onChange:Pe,selectionStart:fe,selectionEnd:pe,onSelectionChange:Te,tagName:o,placeholder:j,allowedFormats:Ie,withoutInteractiveFormatting:E,onEnter:Re,onDelete:Ne,onPaste:Ae,__unstableIsSelected:me,__unstableInputRule:Me,__unstableMultilineTag:Se,__unstableIsCaretWithinFormattedText:be,__unstableOnEnterFormattedText:_e,__unstableOnExitFormattedText:Ee,__unstableOnCreateUndoLevel:ye,__unstableMarkAutomaticChange:we,__unstableDidAutomaticChange:ve,__unstableUndo:ge,__unstableDisableFormats:N,preserveWhiteSpace:P,disabled:Oe,unstableOnFocus:R,__unstableAllowPrefixTransformations:A,__unstableMultilineRootTag:M,onCaretVerticalPositionChange:se,blockIsSelected:void 0!==d?d:ue,shouldBlurOnUnmount:je,__unstableMobileNoFocusOnMount:L,deleteEnter:F,placeholderTextColor:V,textAlign:H,selectionColor:U,tagsToEliminate:G,rootTagsToEliminate:K,disableEditingMenu:W,fontSize:q,fontFamily:$,fontWeight:Y,fontStyle:X,minWidth:Q,maxWidth:Z,onBlur:J,setRef:ee,id:te.id,style:te.style},(function(e){var t=e.isSelected,n=e.value,o=e.onChange,c=e.onFocus,i=e.editableProps,a=e.editableTagName;return Object(u.createElement)(u.Fragment,null,r&&r({value:n,onChange:o,onFocus:c}),t&&Be&&Object(u.createElement)(cd,{inline:m,anchorRef:ie.current}),t&&Object(u.createElement)(td,null),Object(u.createElement)(Xn,{onReplace:h,completers:g,record:n,onChange:o,isSelected:t},(function(e){var t=e.listBoxId,n=e.activeId,r=e.onKeyDown;return Object(u.createElement)(a,Object(l.a)({},i,te,{style:te.style?ad(ad({},te.style),i.style):i.style,className:b()("block-editor-rich-text__editable",te.className,i.className,{"keep-placeholder-on-focus":k}),"aria-autocomplete":t?"list":void 0,"aria-owns":t,"aria-activedescendant":n,onKeyDown:function(e){r(e),i.onKeyDown(e)}}))})))}));return O?(to()("wp.blockEditor.RichText wrapperClassName prop",{alternative:"className prop or create your own wrapper div"}),Object(u.createElement)("div",{className:b()("block-editor-rich-text",O)},Le)):Le}));ud.Content=function(e){var t=e.value,n=e.tagName,r=e.multiline,o=Object(he.a)(e,["value","tagName","multiline"]);Array.isArray(t)&&(t=c.children.toHTML(t));var i=ld(r);!t&&i&&(t="<".concat(i,"></").concat(i,">"));var a=Object(u.createElement)(u.RawHTML,null,t);return n?Object(u.createElement)(n,Object(f.omit)(o,["format"]),a):a},ud.isEmpty=function(e){return!e||0===e.length},ud.Content.defaultProps={format:"string",value:""};var dd=ud;function bd(e){var t=e.value,n=e.onChange;return Object(u.createElement)(Au,null,Object(u.createElement)(dd,{value:t,onChange:n,placeholder:Object(g.__)("Navigation item"),keepPlaceholderOnFocus:!0,withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic","core/image","core/strikethrough"]}))}var fd=n(318);var pd=function(e){var t=e.icon,n=void 0===t?fd.a:t,r=e.label,o=void 0===r?Object(g.__)("Choose variation"):r,c=e.instructions,i=void 0===c?Object(g.__)("Select a variation to start with."):c,a=e.variations,l=e.onSelect,s=e.allowSkip,d=b()("block-editor-block-variation-picker",{"has-many-variations":a.length>4});return Object(u.createElement)(h.Placeholder,{icon:n,label:o,instructions:i,className:d},Object(u.createElement)("ul",{className:"block-editor-block-variation-picker__variations",role:"list","aria-label":Object(g.__)("Block variations")},a.map((function(e){return Object(u.createElement)("li",{key:e.name},Object(u.createElement)(h.Button,{isSecondary:!0,icon:e.icon,iconSize:48,onClick:function(){return l(e)},className:"block-editor-block-variation-picker__variation",label:e.description||e.title}),Object(u.createElement)("span",{className:"block-editor-block-variation-picker__variation-label",role:"presentation"},e.title))}))),s&&Object(u.createElement)("div",{className:"block-editor-block-variation-picker__skip"},Object(u.createElement)(h.Button,{isLink:!0,onClick:function(){return l()}},Object(g.__)("Skip"))))},md=Object(u.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(h.Path,{d:"M15 4H9v11h6V4zM4 18.5V20h16v-1.5H4z"})),vd=Object(u.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(h.Path,{d:"M20 11h-5V4H9v7H4v1.5h5V20h6v-7.5h5z"}));function Od(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Od(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Od(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var hd={top:{icon:Object(u.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(h.Path,{d:"M9 20h6V9H9v11zM4 4v1.5h16V4H4z"})),title:Object(g._x)("Vertically Align Top","Block vertical alignment setting")},center:{icon:vd,title:Object(g._x)("Vertically Align Middle","Block vertical alignment setting")},bottom:{icon:md,title:Object(g._x)("Vertically Align Bottom","Block vertical alignment setting")}},jd=["top","center","bottom"],kd={isAlternate:!0};var yd=function(e){var t=e.value,n=e.onChange,r=e.controls,o=void 0===r?jd:r,c=e.isCollapsed,i=void 0===c||c,a=hd[t],l=hd.top;return Object(u.createElement)(h.ToolbarGroup,{popoverProps:kd,isCollapsed:i,icon:a?a.icon:l.icon,label:Object(g._x)("Change vertical alignment","Block vertical alignment setting label"),controls:o.map((function(e){return gd(gd({},hd[e]),{},{isActive:t===e,role:i?"menuitemradio":void 0,onClick:(r=e,function(){return n(t===r?void 0:r)})});var r}))})};function _d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ed(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_d(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Cd=Object(p.createHigherOrderComponent)((function(e){return function(t){var n=de("color.palette"),r=!de("color.custom"),o=void 0===t.colors?n:t.colors,c=void 0===t.disableCustomColors?r:t.disableCustomColors,i=!Object(f.isEmpty)(o)||!c;return Object(u.createElement)(e,Ed(Ed({},t),{},{colors:o,disableCustomColors:c,hasColorsToChoose:i}))}}),"withColorContext"),wd=Cd(h.ColorPalette);function Sd(e){var t=e.onChange,n=e.value,r=Object(he.a)(e,["onChange","value"]);return Object(u.createElement)(Ie,Object(l.a)({},r,{onColorChange:t,colorValue:n,gradients:[],disableCustomGradients:!0}))}var Id=[];function Bd(e){var t=de("color.gradients")||Id,n=!de("color.customGradient");return Object(u.createElement)(h.__experimentalGradientPicker,Object(l.a)({gradients:void 0!==e.gradients?e.gradient:t,disableCustomGradients:void 0!==e.disableCustomGradients?e.disableCustomGradients:n},e))}var xd=function(e){var t=void 0!==e.gradients&&void 0!==e.disableCustomGradients?h.__experimentalGradientPicker:Bd;return Object(u.createElement)(t,e)};function Pd(e){var t=e.className,n=e.value,r=e.onChange,o=e.label,c=void 0===o?Object(g.__)("Gradient Presets"):o,i=Object(he.a)(e,["className","value","onChange","label"]),a=de("color.gradients"),s=!de("color.customGradient");return Object(f.isEmpty)(a)&&s?null:Object(u.createElement)(h.BaseControl,{className:b()("block-editor-gradient-picker-control",t)},Object(u.createElement)(h.BaseControl.VisualLabel,null,c),Object(u.createElement)(xd,Object(l.a)({value:n,onChange:r,className:"block-editor-gradient-picker-control__gradient-picker-presets",gradients:a,disableCustomGradients:s},i)))}function Td(e){var t=de("color.gradients");return Object(f.isEmpty)(t)?null:Object(u.createElement)(h.PanelBody,{title:Object(g.__)("Gradient")},Object(u.createElement)(Pd,e))}var Nd=[25,50,75,100];function Dd(e){var t,n,r=e.imageWidth,o=e.imageHeight,c=e.imageSizeOptions,i=void 0===c?[]:c,a=e.isResizable,l=void 0===a||a,s=e.slug,d=e.width,b=e.height,p=e.onChange,m=e.onChangeImage,v=void 0===m?f.noop:m;function O(e,t){return function(){p({width:e,height:t})}}return Object(u.createElement)(u.Fragment,null,!Object(f.isEmpty)(i)&&Object(u.createElement)(h.SelectControl,{label:Object(g.__)("Image size"),value:s,options:i,onChange:v}),l&&Object(u.createElement)("div",{className:"block-editor-image-size-control"},Object(u.createElement)("p",{className:"block-editor-image-size-control__row"},Object(g.__)("Image dimensions")),Object(u.createElement)("div",{className:"block-editor-image-size-control__row"},Object(u.createElement)(h.TextControl,{type:"number",className:"block-editor-image-size-control__width",label:Object(g.__)("Width"),value:null!==(t=null!=d?d:r)&&void 0!==t?t:"",min:1,onChange:function(e){return p({width:parseInt(e,10)})}}),Object(u.createElement)(h.TextControl,{type:"number",className:"block-editor-image-size-control__height",label:Object(g.__)("Height"),value:null!==(n=null!=b?b:o)&&void 0!==n?n:"",min:1,onChange:function(e){return p({height:parseInt(e,10)})}})),Object(u.createElement)("div",{className:"block-editor-image-size-control__row"},Object(u.createElement)(h.ButtonGroup,{"aria-label":Object(g.__)("Image size presets")},Nd.map((function(e){var t=Math.round(r*(e/100)),n=Math.round(o*(e/100)),c=d===t&&b===n;return Object(u.createElement)(h.Button,{key:e,isSmall:!0,isPrimary:c,isPressed:c,onClick:O(t,n)},e,"%")}))),Object(u.createElement)(h.Button,{isSmall:!0,onClick:O()},Object(g.__)("Reset")))))}var Rd=Object(p.createHigherOrderComponent)((function(e){return function(t){var n=Object(z.b)().clientId;return Object(u.createElement)(e,Object(l.a)({},t,{clientId:n}))}}),"withClientId"),Ad=Rd((function(e){var t=e.clientId,n=e.showSeparator,r=e.isFloating,o=e.onAddBlock;return Object(u.createElement)(Ya,{rootClientId:t,showSeparator:n,isFloating:r,onAddBlock:o})})),Md=Object(p.compose)([Rd,Object(v.withSelect)((function(e,t){var n=t.clientId,r=(0,e("core/block-editor").getBlockOrder)(n);return{lastBlockClientId:Object(f.last)(r)}}))])((function(e){var t=e.clientId,n=e.lastBlockClientId;return Object(u.createElement)($a,{rootClientId:t,lastBlockClientId:n})})),Ld=n(64),Fd=n.n(Ld);var Vd=new WeakMap;function Hd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hd(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ud(e){var t=e.clientId,n=e.allowedBlocks,r=e.template,o=e.templateLock,i=e.wrapperRef,a=e.templateInsertUpdatesSelection,l=e.__experimentalCaptureToolbars,s=e.__experimentalAppenderTagName,d=e.renderAppender,b=e.orientation,p=e.placeholder;!function(e,t,n,r,o){var c=Object(v.useDispatch)("core/block-editor").updateBlockListSettings,i=Object(v.useSelect)((function(t){var n=t("core/block-editor").getBlockRootClientId(e);return{blockListSettings:t("core/block-editor").getBlockListSettings(e),parentLock:t("core/block-editor").getTemplateLock(n)}}),[e]),a=i.blockListSettings,l=i.parentLock;Object(u.useLayoutEffect)((function(){var i={allowedBlocks:t,templateLock:void 0===n?l:n};void 0!==r&&(i.__experimentalCaptureToolbars=r),void 0!==o&&(i.orientation=o),Fd()(a,i)||c(e,i)}),[e,a,t,n,l,r,o,c])}(t,n,o,l,b),function(e,t,n,r){var o=Object(v.useDispatch)("core/block-editor").replaceInnerBlocks,i=Object(v.useSelect)((function(t){return t("core/block-editor").getBlocks(e)}),[e]),a=Object(u.useRef)(null);Object(u.useLayoutEffect)((function(){if((0===i.length||"all"===n)&&!Object(f.isEqual)(t,a.current)){a.current=t;var l=Object(c.synchronizeBlocksWithTemplate)(i,t);Object(f.isEqual)(l,i)||o(e,l,0===i.length&&r&&0!==l.length)}}),[i,n,e])}(t,r,o,a);var m=Object(v.useSelect)((function(e){var n=e("core/block-editor").getBlock(t),r=Object(c.getBlockType)(n.name);if(r&&r.providesContext)return function(e,t){Vd.has(t)||Vd.set(t,new WeakMap);var n=Vd.get(t);if(!n.has(e)){var r=Object(f.mapValues)(t.providesContext,(function(t){return e[t]}));n.set(e,r)}return n.get(e)}(n.attributes,r)}),[t]);return Object(u.createElement)(rr,{value:m},Object(u.createElement)(sl,{rootClientId:t,renderAppender:d,__experimentalAppenderTagName:s,wrapperRef:i,placeholder:p}))}function Gd(e){return Ka(e),Object(u.createElement)(Ud,e)}var Kd=Object(u.forwardRef)((function(e,t){var n=Wd({ref:t},e);return Object(u.createElement)("div",{className:"block-editor-inner-blocks"},Object(u.createElement)("div",n))}));function Wd(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object(u.useRef)(),r=Object(z.b)(),o=r.clientId,c=Object(p.useViewportMatch)("medium","<"),i=Object(v.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockName,r=t.isBlockSelected,i=t.hasSelectedInnerBlock,a=(0,t.isNavigationMode)()||c;return"core/template"!==n(o)&&!r(o)&&!i(o,!0)&&a}),[o,c]),a=e.ref||n,s=t.value&&t.onChange?Gd:Ud;return zd(zd({},e),{},{ref:a,className:b()(e.className,"block-editor-block-list__layout",{"has-overlay":i}),children:Object(u.createElement)(s,Object(l.a)({},t,{clientId:o,wrapperRef:a}))})}Kd.DefaultBlockAppender=Md,Kd.ButtonBlockAppender=Ad,Kd.Content=Object(c.withBlockContentContext)((function(e){var t=e.BlockContent;return Object(u.createElement)(t,null)}));var qd=Kd,$d=n(216);function Yd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yd(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Qd=[{id:"opensInNewTab",title:Object(g.__)("Open in new tab")}],Zd=function(e){var t=e.value,n=e.onChange,r=void 0===n?f.noop:n,o=e.settings,c=void 0===o?Qd:o;if(!c||!c.length)return null;var i=function(e){return function(n){r(Xd(Xd({},t),{},Object(s.a)({},e.id,n)))}},a=c.map((function(e){return Object(u.createElement)(h.ToggleControl,{className:"block-editor-link-control__setting",key:e.id,label:e.title,onChange:i(e),checked:!!t&&!!t[e.id]})}));return Object(u.createElement)("fieldset",{className:"block-editor-link-control__settings"},Object(u.createElement)(h.VisuallyHidden,{as:"legend"},Object(g.__)("Currently selected link settings")),a)},Jd=n(127),eb=n.n(Jd);function tb(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object($t.a)(e);if(t){var o=Object($t.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(qt.a)(this,n)}}var nb=function(e){return e.stopPropagation()},rb=function(e){Object(Wt.a)(n,e);var t=tb(n);function n(e){var r;return Object(Ut.a)(this,n),(r=t.call(this,e)).onChange=r.onChange.bind(Object(Kt.a)(r)),r.onFocus=r.onFocus.bind(Object(Kt.a)(r)),r.onKeyDown=r.onKeyDown.bind(Object(Kt.a)(r)),r.selectLink=r.selectLink.bind(Object(Kt.a)(r)),r.handleOnClick=r.handleOnClick.bind(Object(Kt.a)(r)),r.bindSuggestionNode=r.bindSuggestionNode.bind(Object(Kt.a)(r)),r.autocompleteRef=e.autocompleteRef||Object(u.createRef)(),r.inputRef=Object(u.createRef)(),r.updateSuggestions=Object(f.throttle)(r.updateSuggestions.bind(Object(Kt.a)(r)),200),r.suggestionNodes=[],r.isUpdatingSuggestions=!1,r.state={suggestions:[],showSuggestions:!1,selectedSuggestion:null,suggestionsListboxId:"",suggestionOptionIdPrefix:""},r}return Object(Gt.a)(n,[{key:"componentDidUpdate",value:function(e){var t=this,n=this.state,r=n.showSuggestions,o=n.selectedSuggestion,c=this.props.value;r&&null!==o&&this.suggestionNodes[o]&&!this.scrollingIntoView&&(this.scrollingIntoView=!0,eb()(this.suggestionNodes[o],this.autocompleteRef.current,{onlyScrollIfNeeded:!0}),this.props.setTimeout((function(){t.scrollingIntoView=!1}),100)),e.value!==c&&this.shouldShowInitialSuggestions()&&this.updateSuggestions()}},{key:"componentDidMount",value:function(){this.shouldShowInitialSuggestions()&&this.updateSuggestions()}},{key:"componentWillUnmount",value:function(){delete this.suggestionsRequest}},{key:"bindSuggestionNode",value:function(e){var t=this;return function(n){t.suggestionNodes[e]=n}}},{key:"shouldShowInitialSuggestions",value:function(){var e=this.state.suggestions,t=this.props,n=t.__experimentalShowInitialSuggestions,r=void 0!==n&&n,o=t.value;return!this.isUpdatingSuggestions&&r&&!(o&&o.length)&&!(e&&e.length)}},{key:"updateSuggestions",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=this.props,r=n.__experimentalFetchLinkSuggestions,o=n.__experimentalHandleURLSuggestions;if(r){var c=!(t&&t.length);if(c||!(t.length<2||!o&&Object(Vl.isURL)(t))){this.isUpdatingSuggestions=!0,this.setState({selectedSuggestion:null,loading:!0});var i=r(t,{isInitialSuggestions:c});i.then((function(t){e.suggestionsRequest===i&&(e.setState({suggestions:t,loading:!1,showSuggestions:!!t.length}),t.length?e.props.debouncedSpeak(Object(g.sprintf)(Object(g._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",t.length),t.length),"assertive"):e.props.debouncedSpeak(Object(g.__)("No results."),"assertive"),e.isUpdatingSuggestions=!1)})).catch((function(){e.suggestionsRequest===i&&(e.setState({loading:!1}),e.isUpdatingSuggestions=!1)})),this.suggestionsRequest=i}else this.setState({showSuggestions:!1,selectedSuggestion:null,loading:!1})}}},{key:"onChange",value:function(e){var t=e.target.value;this.props.onChange(t),this.props.disableSuggestions||this.updateSuggestions(t.trim())}},{key:"onFocus",value:function(){var e=this.state.suggestions,t=this.props,n=t.disableSuggestions,r=t.value;!r||n||this.isUpdatingSuggestions||e&&e.length||this.updateSuggestions(r.trim())}},{key:"onKeyDown",value:function(e){var t=this.state,n=t.showSuggestions,r=t.selectedSuggestion,o=t.suggestions,c=t.loading;if(n&&o.length&&!c){var i=this.state.suggestions[this.state.selectedSuggestion];switch(e.keyCode){case st.UP:e.stopPropagation(),e.preventDefault();var a=r?r-1:o.length-1;this.setState({selectedSuggestion:a});break;case st.DOWN:e.stopPropagation(),e.preventDefault();var l=null===r||r===o.length-1?0:r+1;this.setState({selectedSuggestion:l});break;case st.TAB:null!==this.state.selectedSuggestion&&(this.selectLink(i),this.props.speak(Object(g.__)("Link selected.")));break;case st.ENTER:null!==this.state.selectedSuggestion&&(e.stopPropagation(),this.selectLink(i))}}else switch(e.keyCode){case st.UP:0!==e.target.selectionStart&&(e.stopPropagation(),e.preventDefault(),e.target.setSelectionRange(0,0));break;case st.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(){return Object(u.createElement)(u.Fragment,null,this.renderControl(),this.renderSuggestions())}},{key:"renderControl",value:function(){var e=this.props,t=e.label,n=e.className,r=e.isFullWidth,o=e.instanceId,c=e.placeholder,i=void 0===c?Object(g.__)("Paste URL or type to search"):c,a=e.__experimentalRenderControl,l=e.value,s=void 0===l?"":l,d=e.autoFocus,f=void 0===d||d,p=this.state,m=p.loading,v=p.showSuggestions,O=p.selectedSuggestion,j=p.suggestionsListboxId,k=p.suggestionOptionIdPrefix,y={id:"url-input-control-".concat(o),label:t,className:b()("block-editor-url-input",n,{"is-full-width":r})},_={value:s,required:!0,autoFocus:f,className:"block-editor-url-input__input",type:"text",onChange:this.onChange,onFocus:this.onFocus,onInput:nb,placeholder:i,onKeyDown:this.onKeyDown,role:"combobox","aria-label":Object(g.__)("URL"),"aria-expanded":v,"aria-autocomplete":"list","aria-owns":j,"aria-activedescendant":null!==O?"".concat(k,"-").concat(O):void 0,ref:this.inputRef};return a?a(y,_,m):Object(u.createElement)(h.BaseControl,y,Object(u.createElement)("input",_),m&&Object(u.createElement)(h.Spinner,null))}},{key:"renderSuggestions",value:function(){var e=this,t=this.props,n=t.className,r=t.__experimentalRenderSuggestions,o=t.value,c=void 0===o?"":o,i=t.__experimentalShowInitialSuggestions,a=void 0!==i&&i,s=this.state,d=s.showSuggestions,p=s.suggestions,m=s.selectedSuggestion,v=s.suggestionsListboxId,O=s.suggestionOptionIdPrefix,g=s.loading,j={id:v,ref:this.autocompleteRef,role:"listbox"},k=function(t,n){return{role:"option",tabIndex:"-1",id:"".concat(O,"-").concat(n),ref:e.bindSuggestionNode(n),"aria-selected":n===m}};return Object(f.isFunction)(r)&&d&&p.length?r({suggestions:p,selectedSuggestion:m,suggestionsListProps:j,buildSuggestionItemProps:k,isLoading:g,handleSuggestionClick:this.handleOnClick,isInitialSuggestions:a&&!(c&&c.length)}):!Object(f.isFunction)(r)&&d&&p.length?Object(u.createElement)(h.Popover,{position:"bottom",noArrow:!0,focusOnMount:!1},Object(u.createElement)("div",Object(l.a)({},j,{className:b()("block-editor-url-input__suggestions","".concat(n,"__suggestions"))}),p.map((function(t,n){return Object(u.createElement)(h.Button,Object(l.a)({},k(0,n),{key:t.id,className:b()("block-editor-url-input__suggestion",{"is-selected":n===m}),onClick:function(){return e.handleOnClick(t)}}),t.title)})))):null}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.value,r=e.instanceId,o=e.disableSuggestions,c=e.__experimentalShowInitialSuggestions,i=void 0!==c&&c,a=t.showSuggestions,l=n&&n.length;return i||l||(a=!1),!0===o&&(a=!1),{showSuggestions:a,suggestionsListboxId:"block-editor-url-input-suggestions-".concat(r),suggestionOptionIdPrefix:"block-editor-url-input-suggestion-".concat(r)}}}]),n}(u.Component),ob=Object(p.compose)(p.withSafeTimeout,h.withSpokenMessages,p.withInstanceId,Object(v.withSelect)((function(e,t){if(!Object(f.isFunction)(t.__experimentalFetchLinkSuggestions))return{__experimentalFetchLinkSuggestions:(0,e("core/block-editor").getSettings)().__experimentalFetchLinkSuggestions}})))(rb),cb=Object(u.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(u.createElement)(j.Path,{d:"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-3V6zM10 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"})),ib=function(e){var t,n=e.searchTerm,r=e.onClick,o=e.itemProps,c=e.isSelected,i=e.buttonText;return n?(t=i?Object(f.isFunction)(i)?i(n):i:Object(u.createInterpolateElement)(Object(g.sprintf)(Object(g.__)("Create: <mark>%s</mark>"),n),{mark:Object(u.createElement)("mark",null)}),Object(u.createElement)(h.Button,Object(l.a)({},o,{className:b()("block-editor-link-control__search-create block-editor-link-control__search-item",{"is-selected":c}),onClick:r}),Object(u.createElement)(so.a,{className:"block-editor-link-control__search-item-icon",icon:cb}),Object(u.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(u.createElement)("span",{className:"block-editor-link-control__search-item-title"},t)))):null},ab=Object(u.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(u.createElement)(j.Path,{d:"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"})),lb=function(e){var t=e.itemProps,n=e.suggestion,r=e.isSelected,o=void 0!==r&&r,c=e.onClick,i=e.isURL,a=void 0!==i&&i,s=e.searchTerm,d=void 0===s?"":s,f=e.shouldShowType,p=void 0!==f&&f;return Object(u.createElement)(h.Button,Object(l.a)({},t,{onClick:c,className:b()("block-editor-link-control__search-item",{"is-selected":o,"is-url":a,"is-entity":!a})}),a&&Object(u.createElement)(so.a,{className:"block-editor-link-control__search-item-icon",icon:ab}),Object(u.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(u.createElement)("span",{className:"block-editor-link-control__search-item-title"},Object(u.createElement)(h.TextHighlight,{text:n.title,highlight:d})),Object(u.createElement)("span",{"aria-hidden":!a,className:"block-editor-link-control__search-item-info"},!a&&(Object(Vl.filterURLForDisplay)(Object(Vl.safeDecodeURI)(n.url))||""),a&&Object(g.__)("Press ENTER to add this link"))),p&&n.type&&Object(u.createElement)("span",{className:"block-editor-link-control__search-item-type"},"post_tag"===n.type?"tag":n.type))};function sb(e){var t=e.instanceId,n=e.withCreateSuggestion,r=e.currentInputValue,o=e.handleSuggestionClick,c=e.suggestionsListProps,i=e.buildSuggestionItemProps,a=e.suggestions,s=e.selectedSuggestion,d=e.isLoading,f=e.isInitialSuggestions,p=e.createSuggestionButtonText,m=e.suggestionsQuery,v=b()("block-editor-link-control__search-results",{"is-loading":d}),O=["url","mailto","tel","internal"],j=1===a.length&&O.includes(a[0].type.toLowerCase()),k=n&&!j&&!f,y=!(null==m?void 0:m.type),_="block-editor-link-control-search-results-label-".concat(t),E=f?Object(g.__)("Recently updated"):Object(g.sprintf)(Object(g.__)('Search results for "%s"'),r),C=Object(u.createElement)(f?u.Fragment:h.VisuallyHidden,{},Object(u.createElement)("span",{className:"block-editor-link-control__search-results-label",id:_},E));return Object(u.createElement)("div",{className:"block-editor-link-control__search-results-wrapper"},C,Object(u.createElement)("div",Object(l.a)({},c,{className:v,"aria-labelledby":_}),a.map((function(e,t){return k&&"__CREATE__"===e.type?Object(u.createElement)(ib,{searchTerm:r,buttonText:p,onClick:function(){return o(e)},key:e.type,itemProps:i(e,t),isSelected:t===s}):"__CREATE__"===e.type?null:Object(u.createElement)(lb,{key:"".concat(e.id,"-").concat(e.type),itemProps:i(e,t),suggestion:e,index:t,onClick:function(){o(e)},isSelected:t===s,isURL:O.includes(e.type.toLowerCase()),searchTerm:r,shouldShowType:y})}))))}function ub(e){var t=Object(f.startsWith)(e,"#");return Object(Vl.isURL)(e)||e&&e.includes("www.")||t}function db(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?db(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):db(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var fb=function(){return Promise.resolve([])},pb=function(e){var t="URL",n=Object(Vl.getProtocol)(e)||"";return n.includes("mailto")&&(t="mailto"),n.includes("tel")&&(t="tel"),Object(f.startsWith)(e,"#")&&(t="internal"),Promise.resolve([{id:e,title:e,url:"URL"===t?Object(Vl.prependHTTP)(e):e,type:t}])},mb=function(){var e=Object(gr.a)(Or.a.mark((function e(t,n,r,o,c,i){var a,l,s;return Or.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=n.isInitialSuggestions,e.next=3,Promise.all([r(t,n),o(t)]);case 3:if(l=e.sent,s=!t.includes(" "),l=s&&i&&!a?l[0].concat(l[1]):l[0],!a){e.next=8;break}return e.abrupt("return",l);case 8:return e.abrupt("return",ub(t)||!c?l:l.concat({title:t,url:t,type:"__CREATE__"}));case 9:case"end":return e.stop()}}),e)})));return function(t,n,r,o,c,i){return e.apply(this,arguments)}}();function vb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ob(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vb(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var gb=Promise.resolve([]),hb=Object(u.forwardRef)((function(e,t){var n=e.value,r=e.children,o=e.currentLink,c=void 0===o?{}:o,i=e.className,a=void 0===i?null:i,l=e.placeholder,s=void 0===l?null:l,d=e.withCreateSuggestion,b=void 0!==d&&d,m=e.onCreateSuggestion,O=void 0===m?f.noop:m,h=e.onChange,j=void 0===h?f.noop:h,k=e.onSelect,y=void 0===k?f.noop:k,_=e.showSuggestions,E=void 0===_||_,C=e.renderSuggestions,w=void 0===C?function(e){return Object(u.createElement)(sb,e)}:C,S=e.fetchSuggestions,I=void 0===S?null:S,B=e.allowDirectEntry,x=void 0===B||B,P=e.showInitialSuggestions,T=void 0!==P&&P,N=e.suggestionsQuery,D=void 0===N?{}:N,R=e.withURLSuggestion,A=void 0===R||R,M=e.createSuggestionButtonText,L=function(e,t,n,r){var o=Object(v.useSelect)((function(e){return{fetchSearchSuggestions:(0,e("core/block-editor").getSettings)().__experimentalFetchLinkSuggestions}}),[]).fetchSearchSuggestions,c=t?pb:fb;return Object(u.useCallback)((function(t,i){var a=i.isInitialSuggestions;return ub(t)?c(t,{isInitialSuggestions:a}):mb(t,bb(bb({},e),{},{isInitialSuggestions:a}),o,c,n,r)}),[c,o,n])}(D,x,b,A),F=E?I||L:gb,V=Object(p.useInstanceId)(hb),H=Object(u.useState)(),z=Object(re.a)(H,2),U=z[0],G=z[1],K=function(){var e=Object(gr.a)(Or.a.mark((function e(t){var n,r;return Or.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t,"__CREATE__"!==t.type){e.next=12;break}return e.prev=2,e.next=5,O(t.title);case 5:n=e.sent,(null===(r=n)||void 0===r?void 0:r.url)&&y(n),e.next=11;break;case 9:e.prev=9,e.t0=e.catch(2);case 11:return e.abrupt("return");case 12:(x||n&&Object.keys(n).length>=1)&&y(Ob(Ob({},Object(f.omit)(c,"id","url")),n),n);case 13:case"end":return e.stop()}}),e,null,[[2,9]])})));return function(t){return e.apply(this,arguments)}}();return Object(u.createElement)("form",{onSubmit:function(e){e.preventDefault(),K(U||{url:n})}},Object(u.createElement)(ob,{className:a,value:n,onChange:function(e,t){j(e),G(t)},placeholder:null!=s?s:Object(g.__)("Search or type url"),__experimentalRenderSuggestions:E?function(e){return w(Ob(Ob({},e),{},{instanceId:V,withCreateSuggestion:b,currentInputValue:n,createSuggestionButtonText:M,suggestionsQuery:D,handleSuggestionClick:function(t){e.handleSuggestionClick&&e.handleSuggestionClick(t),K(t)}}))}:null,__experimentalFetchLinkSuggestions:F,__experimentalHandleURLSuggestions:!0,__experimentalShowInitialSuggestions:T,ref:t}),r)})),jb=hb,kb=Object(h.createSlotFill)("BlockEditorLinkControlViewer"),yb=kb.Slot,_b=kb.Fill;function Eb(e){var t=e.value,n=e.onEditClick,r=t&&Object(Vl.filterURLForDisplay)(Object(Vl.safeDecodeURI)(t.url))||"";return Object(u.createElement)("div",{"aria-label":Object(g.__)("Currently selected"),"aria-selected":"true",className:b()("block-editor-link-control__search-item",{"is-current":!0})},Object(u.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(u.createElement)(h.ExternalLink,{className:"block-editor-link-control__search-item-title",href:t.url},t&&t.title||r),t&&t.title&&Object(u.createElement)("span",{className:"block-editor-link-control__search-item-info"},r)),Object(u.createElement)(h.Button,{isSecondary:!0,onClick:function(){return n()},className:"block-editor-link-control__search-item-action"},Object(g.__)("Edit")),Object(u.createElement)(yb,{fillProps:t}))}var Cb=function(e){var t=!1;return{promise:new Promise((function(n,r){e.then((function(e){return t?r({isCanceled:!0}):n(e)}),(function(e){return r(t?{isCanceled:!0}:e)}))})),cancel:function(){t=!0}}};function wb(e){var t=e.searchInputPlaceholder,n=e.value,r=e.settings,o=e.onChange,c=void 0===o?f.noop:o,i=e.noDirectEntry,a=void 0!==i&&i,l=e.showSuggestions,s=void 0===l||l,d=e.showInitialSuggestions,b=e.forceIsEditingLink,p=e.createSuggestion,m=e.withCreateSuggestion,v=e.inputValue,O=void 0===v?"":v,j=e.suggestionsQuery,k=void 0===j?{}:j,y=e.noURLSuggestion,_=void 0!==y&&y,E=e.createSuggestionButtonText;void 0===m&&p&&(m=!0);var C=Object(u.useRef)(),w=Object(u.useState)(n&&n.url||""),S=Object(re.a)(w,2),I=S[0],B=S[1],x=O||I,P=Object(u.useState)(void 0!==b?b:!n||!n.url),T=Object(re.a)(P,2),N=T[0],D=T[1],R=Object(u.useRef)(!1);Object(u.useEffect)((function(){void 0!==b&&b!==N&&D(b)}),[b]),Object(u.useEffect)((function(){R.current&&C.current&&!C.current.contains(C.current.ownerDocument.activeElement)&&(kr.focus.focusable.find(C.current)[0]||C.current).focus();R.current=!1}),[N]);var A=function(e){var t=Object(u.useRef)(),n=Object(u.useState)(!1),r=Object(re.a)(n,2),o=r[0],c=r[1],i=Object(u.useState)(null),a=Object(re.a)(i,2),l=a[0],s=a[1],d=function(){var n=Object(gr.a)(Or.a.mark((function n(r){return Or.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return c(!0),s(null),n.prev=2,t.current=Cb(Promise.resolve(e(r))),n.next=6,t.current.promise;case 6:return n.abrupt("return",n.sent);case 9:if(n.prev=9,n.t0=n.catch(2),!n.t0||!n.t0.isCanceled){n.next=13;break}return n.abrupt("return");case 13:throw s(n.t0.message||Object(g.__)("An unknown error occurred during creation. Please try again.")),n.t0;case 15:return n.prev=15,c(!1),n.finish(15);case 18:case"end":return n.stop()}}),n,null,[[2,9,15,18]])})));return function(e){return n.apply(this,arguments)}}();return Object(u.useEffect)((function(){return function(){t.current&&t.current.cancel()}}),[]),{createPage:d,isCreatingPage:o,errorMessage:l}}(p),M=A.createPage,L=A.isCreatingPage,F=A.errorMessage;return Object(u.createElement)("div",{tabIndex:-1,ref:C,className:"block-editor-link-control"},L&&Object(u.createElement)("div",{className:"block-editor-link-control__loading"},Object(u.createElement)(h.Spinner,null)," ",Object(g.__)("Creating"),"…"),(N||!n)&&!L&&Object(u.createElement)(u.Fragment,null,Object(u.createElement)("div",{className:"block-editor-link-control__search-input-wrapper"},Object(u.createElement)(jb,{currentLink:n,className:"block-editor-link-control__search-input",placeholder:t,value:x,withCreateSuggestion:m,onCreateSuggestion:M,onChange:B,onSelect:function(e){var t;c(e),R.current=!!(null===(t=C.current)||void 0===t?void 0:t.contains(C.current.ownerDocument.activeElement)),D(!1)},showInitialSuggestions:d,allowDirectEntry:!a,showSuggestions:s,suggestionsQuery:k,withURLSuggestion:!_,createSuggestionButtonText:E},Object(u.createElement)("div",{className:"block-editor-link-control__search-actions"},Object(u.createElement)(h.Button,{type:"submit",label:Object(g.__)("Submit"),icon:$d.a,className:"block-editor-link-control__search-submit"})))),F&&Object(u.createElement)(h.Notice,{className:"block-editor-link-control__search-error",status:"error",isDismissible:!1},F)),n&&!N&&!L&&Object(u.createElement)(Eb,{value:n,onEditClick:function(){return D(!0)}}),Object(u.createElement)(Zd,{value:n,settings:r,onChange:c}))}wb.ViewerFill=_b;var Sb=wb,Ib=n(319),Bb=n(217),xb=Object(h.withFilters)("editor.MediaUpload")((function(){return null}));var Pb=function(e){var t=e.fallback,n=void 0===t?null:t,r=e.children;return Object(v.useSelect)((function(e){return!!(0,e("core/block-editor").getSettings)().mediaUpload}),[])?r:n},Tb=Object(p.compose)([Object(v.withDispatch)((function(e){var t=e("core/notices");return{createNotice:t.createNotice,removeNotice:t.removeNotice}})),Object(h.withFilters)("editor.MediaReplaceFlow")])((function(e){var t=e.mediaURL,n=e.mediaId,r=e.allowedTypes,o=e.accept,c=e.onSelect,i=e.onSelectURL,a=e.onFilesUpload,l=void 0===a?f.noop:a,s=e.name,d=void 0===s?Object(g.__)("Replace"):s,b=e.createNotice,p=e.removeNotice,m=Object(u.useState)(t),O=Object(re.a)(m,2),j=O[0],k=O[1],y=Object(v.useSelect)((function(e){return e("core/block-editor").getSettings().mediaUpload}),[]),_=Object(u.createRef)(),E=Object(f.uniqueId)("block-editor/media-replace-flow/error-notice/"),C=function(e){var t=document.createElement("div");t.innerHTML=Object(u.renderToString)(e);var n=t.textContent||t.innerText||"";setTimeout((function(){b("error",n,{speak:!0,id:E,isDismissible:!0})}),1e3)},w=function(e){c(e),k(e.url),Object(Le.speak)(Object(g.__)("The media file has been replaced")),p(E)},S=function(e){e.keyCode===st.DOWN&&(e.preventDefault(),e.stopPropagation(),e.target.click())};return Object(u.createElement)(h.Dropdown,{popoverProps:{isAlternate:!0},contentClassName:"block-editor-media-replace-flow__options",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(u.createElement)(h.ToolbarGroup,{className:"media-replace-flow"},Object(u.createElement)(h.ToolbarButton,{ref:_,"aria-expanded":t,"aria-haspopup":"true",onClick:n,onKeyDown:S},d))},renderContent:function(e){e.onClose;return Object(u.createElement)(u.Fragment,null,Object(u.createElement)(h.NavigableMenu,{className:"block-editor-media-replace-flow__media-upload-menu"},Object(u.createElement)(xb,{value:n,onSelect:function(e){return w(e)},allowedTypes:r,render:function(e){var t=e.open;return Object(u.createElement)(h.MenuItem,{icon:Ib.a,onClick:t},Object(g.__)("Open Media Library"))}}),Object(u.createElement)(Pb,null,Object(u.createElement)(h.FormFileUpload,{onChange:function(e){!function(e){var t=e.target.files;l(t);y({allowedTypes:r,filesList:t,onFileChange:function(e){var t=Object(re.a)(e,1)[0];w(t)},onError:C})}(e)},accept:o,render:function(e){var t=e.openFileDialog;return Object(u.createElement)(h.MenuItem,{icon:Bb.a,onClick:function(){t()}},Object(g.__)("Upload"))}}))),i&&Object(u.createElement)("form",{className:"block-editor-media-flow__url-input",onKeyDown:function(e){e.stopPropagation()},onKeyPress:function(e){e.stopPropagation()}},Object(u.createElement)("span",{className:"block-editor-media-replace-flow__image-url-label"},Object(g.__)("Current media URL:")),Object(u.createElement)(Sb,{value:{url:j},settings:[],showSuggestions:!1,onChange:function(e){var t=e.url;k(t),i(t),_.current.focus()}})))}})})),Nb=n(274);function Db(e){var t=e.url,n=e.urlLabel,r=e.className,o=b()(r,"block-editor-url-popover__link-viewer-url");return t?Object(u.createElement)(h.ExternalLink,{className:o,href:t},n||Object(Vl.filterURLForDisplay)(Object(Vl.safeDecodeURI)(t))):Object(u.createElement)("span",{className:o})}function Rb(e){var t=e.additionalControls,n=e.children,r=e.renderSettings,o=e.position,c=void 0===o?"bottom center":o,i=e.focusOnMount,a=void 0===i?"firstElement":i,s=Object(he.a)(e,["additionalControls","children","renderSettings","position","focusOnMount"]),d=Object(u.useState)(!1),b=Object(re.a)(d,2),f=b[0],p=b[1],m=!!r&&f;return Object(u.createElement)(h.Popover,Object(l.a)({className:"block-editor-url-popover",focusOnMount:a,position:c},s),Object(u.createElement)("div",{className:"block-editor-url-popover__input-container"},Object(u.createElement)("div",{className:"block-editor-url-popover__row"},n,!!r&&Object(u.createElement)(h.Button,{className:"block-editor-url-popover__settings-toggle",icon:xr.a,label:Object(g.__)("Link settings"),onClick:function(){p(!f)},"aria-expanded":f})),m&&Object(u.createElement)("div",{className:"block-editor-url-popover__row block-editor-url-popover__settings"},r())),t&&!m&&Object(u.createElement)("div",{className:"block-editor-url-popover__additional-controls"},t))}Rb.LinkEditor=function(e){var t=e.autocompleteRef,n=e.className,r=e.onChangeInputValue,o=e.value,c=Object(he.a)(e,["autocompleteRef","className","onChangeInputValue","value"]);return Object(u.createElement)("form",Object(l.a)({className:b()("block-editor-url-popover__link-editor",n)},c),Object(u.createElement)(ob,{value:o,onChange:r,autocompleteRef:t}),Object(u.createElement)(h.Button,{icon:$d.a,label:Object(g.__)("Apply"),type:"submit"}))},Rb.LinkViewer=function(e){var t=e.className,n=e.linkClassName,r=e.onEditLinkClick,o=e.url,c=e.urlLabel,i=Object(he.a)(e,["className","linkClassName","onEditLinkClick","url","urlLabel"]);return Object(u.createElement)("div",Object(l.a)({className:b()("block-editor-url-popover__link-viewer",t)},i),Object(u.createElement)(Db,{url:o,urlLabel:c,className:n}),r&&Object(u.createElement)(h.Button,{icon:Nb.a,label:Object(g.__)("Edit"),onClick:r}))};var Ab=Rb,Mb=function(e){var t=e.src,n=e.onChange,r=e.onSubmit,o=e.onClose;return Object(u.createElement)(Ab,{onClose:o},Object(u.createElement)("form",{className:"block-editor-media-placeholder__url-input-form",onSubmit:r},Object(u.createElement)("input",{className:"block-editor-media-placeholder__url-input-field",type:"url","aria-label":Object(g.__)("URL"),placeholder:Object(g.__)("Paste or type URL"),onChange:n,value:t}),Object(u.createElement)(h.Button,{className:"block-editor-media-placeholder__url-input-submit-button",icon:$d.a,label:Object(g.__)("Apply"),type:"submit"})))};var Lb=Object(h.withFilters)("editor.MediaPlaceholder")((function(e){var t=e.value,n=void 0===t?{}:t,r=e.allowedTypes,o=e.className,c=e.icon,i=e.labels,a=void 0===i?{}:i,l=e.mediaPreview,s=e.notices,d=e.isAppender,p=e.accept,m=e.addToGallery,O=e.multiple,j=void 0!==O&&O,k=e.dropZoneUIOnly,y=e.disableDropZone,_=e.disableMediaButtons,E=e.onError,C=e.onSelect,w=e.onCancel,S=e.onSelectURL,I=e.onDoubleClick,B=e.onFilesPreUpload,x=void 0===B?f.noop:B,P=e.onHTMLDrop,T=void 0===P?f.noop:P,N=e.children,D=Object(v.useSelect)((function(e){return(0,e("core/block-editor").getSettings)().mediaUpload}),[]),R=Object(u.useState)(""),A=Object(re.a)(R,2),M=A[0],L=A[1],F=Object(u.useState)(!1),V=Object(re.a)(F,2),H=V[0],z=V[1];Object(u.useEffect)((function(){var e;L(null!==(e=null==n?void 0:n.src)&&void 0!==e?e:"")}),[null==n?void 0:n.src]);var U=function(e){L(e.target.value)},G=function(){z(!0)},K=function(){z(!1)},W=function(e){e.preventDefault(),M&&S&&(S(M),K())},q=function(e){var t;if(x(e),j)if(m){var o=[];t=function(e){var t=(null!=n?n:[]).filter((function(e){return e.id?!o.some((function(t){var n=t.id;return Number(n)===Number(e.id)})):!o.some((function(t){var n=t.urlSlug;return e.url.includes(n)}))}));C(t.concat(e)),o=e.map((function(e){var t=e.url.lastIndexOf("."),n=e.url.slice(0,t);return{id:e.id,urlSlug:n}}))}}else t=C;else t=function(e){var t=Object(re.a)(e,1)[0];return C(t)};D({allowedTypes:r,filesList:e,onFileChange:t,onError:E})},$=function(e){q(e.target.files)},Y=function(e,t){var n=a.instructions,i=a.title;if(D||S||(n=Object(g.__)("To edit this block, you need permission to upload media.")),void 0===n||void 0===i){var f=null!=r?r:[],p=Object(re.a)(f,1)[0],m=1===f.length,v=m&&"audio"===p,O=m&&"image"===p,j=m&&"video"===p;void 0===n&&D&&(n=Object(g.__)("Upload a media file or pick one from your media library."),v?n=Object(g.__)("Upload an audio file, pick one from your media library, or add one with a URL."):O?n=Object(g.__)("Upload an image file, pick one from your media library, or add one with a URL."):j&&(n=Object(g.__)("Upload a video file, pick one from your media library, or add one with a URL."))),void 0===i&&(i=Object(g.__)("Media"),v?i=Object(g.__)("Audio"):O?i=Object(g.__)("Image"):j&&(i=Object(g.__)("Video")))}var k=b()("block-editor-media-placeholder",o,{"is-appender":d});return Object(u.createElement)(h.Placeholder,{icon:c,label:i,instructions:n,className:k,notices:s,onClick:t,onDoubleClick:I,preview:l},e,N)},X=function(){return y?null:Object(u.createElement)(h.DropZone,{onFilesDrop:q,onHTMLDrop:T})},Q=function(){return w&&Object(u.createElement)(h.Button,{className:"block-editor-media-placeholder__cancel-button",title:Object(g.__)("Cancel"),isLink:!0,onClick:w},Object(g.__)("Cancel"))},Z=function(){return S&&Object(u.createElement)("div",{className:"block-editor-media-placeholder__url-input-container"},Object(u.createElement)(h.Button,{className:"block-editor-media-placeholder__button",onClick:G,isPressed:H,isTertiary:!0},Object(g.__)("Insert from URL")),H&&Object(u.createElement)(Mb,{src:M,onChange:U,onSubmit:W,onClose:K}))};return k||_?(k&&to()("wp.blockEditor.MediaPlaceholder dropZoneUIOnly prop",{alternative:"disableMediaButtons"}),Object(u.createElement)(Pb,null,X())):Object(u.createElement)(Pb,{fallback:Y(Z())},function(){var e=Object(u.createElement)(xb,{addToGallery:m,gallery:j&&!(!r||0===r.length)&&r.every((function(e){return"image"===e||e.startsWith("image/")})),multiple:j,onSelect:C,allowedTypes:r,value:Array.isArray(n)?n.map((function(e){return e.id})):n.id,render:function(e){var t=e.open;return Object(u.createElement)(h.Button,{isTertiary:!0,onClick:function(e){e.stopPropagation(),t()}},Object(g.__)("Media Library"))}});if(D&&d)return Object(u.createElement)(u.Fragment,null,X(),Object(u.createElement)(h.FormFileUpload,{onChange:$,accept:p,multiple:j,render:function(t){var n=t.openFileDialog,r=Object(u.createElement)(u.Fragment,null,Object(u.createElement)(h.Button,{isPrimary:!0,className:b()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button")},Object(g.__)("Upload")),e,Z(),Q());return Y(r,n)}}));if(D){var t=Object(u.createElement)(u.Fragment,null,X(),Object(u.createElement)(h.FormFileUpload,{isPrimary:!0,className:b()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),onChange:$,accept:p,multiple:j},Object(g.__)("Upload")),e,Z(),Q());return Y(t)}return Y(e)}())})),Fb=Object(u.forwardRef)((function(e,t){return Object(u.createElement)(dd,Object(l.a)({ref:t},e,{__unstableDisableFormats:!0,preserveWhiteSpace:!0}))}));Fb.Content=function(e){var t=e.value,n=void 0===t?"":t,r=e.tagName,o=void 0===r?"div":r,c=Object(he.a)(e,["value","tagName"]);return Object(u.createElement)(o,c,n)};var Vb=Fb,Hb=Object(u.forwardRef)((function(e,t){var n=e.__experimentalVersion,r=Object(he.a)(e,["__experimentalVersion"]);if(2===n)return Object(u.createElement)(Vb,Object(l.a)({ref:t},r));var o=r.className,c=r.onChange,i=Object(he.a)(r,["className","onChange"]);return Object(u.createElement)(Zr.a,Object(l.a)({ref:t,className:b()("block-editor-plain-text",o),onChange:function(e){return c(e.target.value)}},i))}));function zb(e){var t=e.property,n=e.viewport,r=e.desc,o=Object(p.useInstanceId)(zb),c=r||Object(g.sprintf)(Object(g._x)("Controls the %1$s property for %2$s viewports.","Text labelling a interface as controlling a given layout property (eg: margin) for a given screen size."),t,n.label);return Object(u.createElement)(u.Fragment,null,Object(u.createElement)("span",{"aria-describedby":"rbc-desc-".concat(o)},n.label),Object(u.createElement)(h.VisuallyHidden,{as:"span",id:"rbc-desc-".concat(o)},c))}var Ub=function(e){var t=e.title,n=e.property,r=e.toggleLabel,o=e.onIsResponsiveChange,c=e.renderDefaultControl,i=e.renderResponsiveControls,a=e.isResponsive,l=void 0!==a&&a,s=e.defaultLabel,d=void 0===s?{id:"all",label:Object(g.__)("All")}:s,f=e.viewports,p=void 0===f?[{id:"small",label:Object(g.__)("Small screens")},{id:"medium",label:Object(g.__)("Medium screens")},{id:"large",label:Object(g.__)("Large screens")}]:f;if(!t||!n||!c)return null;var m=r||Object(g.sprintf)(Object(g.__)("Use the same %s on all screensizes."),n),v=Object(g.__)("Toggle between using the same value for all screen sizes or using a unique value per screen size."),O=c(Object(u.createElement)(zb,{property:n,viewport:d}),d);return Object(u.createElement)("fieldset",{className:"block-editor-responsive-block-control"},Object(u.createElement)("legend",{className:"block-editor-responsive-block-control__title"},t),Object(u.createElement)("div",{className:"block-editor-responsive-block-control__inner"},Object(u.createElement)(h.ToggleControl,{className:"block-editor-responsive-block-control__toggle",label:m,checked:!l,onChange:o,help:v}),Object(u.createElement)("div",{className:b()("block-editor-responsive-block-control__group",{"is-responsive":l})},!l&&O,l&&(i?i(p):p.map((function(e){return Object(u.createElement)(u.Fragment,{key:e.id},c(Object(u.createElement)(zb,{property:n,viewport:e}),e))}))))))};function Gb(e){var t=e.character,n=e.type,r=e.onUse;return Object(p.useKeyboardShortcut)(st.rawShortcut[n](t),(function(){return r(),!1}),{bindGlobal:!0}),null}function Kb(e){var t,n=e.name,r=e.shortcutType,o=e.shortcutCharacter,c=Object(he.a)(e,["name","shortcutType","shortcutCharacter"]),i="RichText.ToolbarControls";return n&&(i+=".".concat(n)),r&&o&&(t=st.displayShortcut[r](o)),Object(u.createElement)(h.Fill,{name:i},Object(u.createElement)(h.ToolbarButton,Object(l.a)({},c,{shortcut:t})))}function Wb(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object($t.a)(e);if(t){var o=Object($t.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(qt.a)(this,n)}}var qb=function(e){Object(Wt.a)(n,e);var t=Wb(n);function n(){var e;return Object(Ut.a)(this,n),(e=t.apply(this,arguments)).onInput=e.onInput.bind(Object(Kt.a)(e)),e}return Object(Gt.a)(n,[{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}}]),n}(u.Component),$b=Object(u.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(u.createElement)(h.Path,{d:"M9.4 20.5L5.2 3.8l14.6 9-2 .3c-.2 0-.4.1-.7.1-.9.2-1.6.3-2.2.5-.8.3-1.4.5-1.8.8-.4.3-.8.8-1.3 1.5-.4.5-.8 1.2-1.2 2l-.3.6-.9 1.9zM7.6 7.1l2.4 9.3c.2-.4.5-.8.7-1.1.6-.8 1.1-1.4 1.6-1.8.5-.4 1.3-.8 2.2-1.1l1.2-.3-8.1-5z"}));var Yb=Object(u.forwardRef)((function(e,t){var n=Object(v.useSelect)((function(e){return e("core/block-editor").isNavigationMode()}),[]),r=Object(v.useDispatch)("core/block-editor").setNavigationMode,o=function(e){r("edit"!==e)};return Object(u.createElement)(h.Dropdown,{renderToggle:function(r){var o=r.isOpen,c=r.onToggle;return Object(u.createElement)(h.Button,Object(l.a)({},e,{ref:t,icon:n?$b:Nb.a,"aria-expanded":o,"aria-haspopup":"true",onClick:c,label:Object(g.__)("Modes")}))},position:"bottom right",renderContent:function(){return Object(u.createElement)(u.Fragment,null,Object(u.createElement)(h.NavigableMenu,{role:"menu","aria-label":Object(g.__)("Modes")},Object(u.createElement)(h.MenuItemsChoice,{value:n?"select":"edit",onSelect:o,choices:[{value:"edit",label:Object(u.createElement)(u.Fragment,null,Object(u.createElement)(so.a,{icon:Nb.a}),Object(g.__)("Edit"))},{value:"select",label:Object(u.createElement)(u.Fragment,null,$b,Object(g.__)("Select"))}]})),Object(u.createElement)("div",{className:"block-editor-tool-selector__help"},Object(g.__)("Tools offer different interactions for block selection & editing. To select, press Escape, to go back to editing, press Enter.")))}})})),Xb=n(186),Qb=Object(u.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(j.Path,{d:"M9.737 18.011L3.98 12.255l5.734-6.28 1.107 1.012-4.103 4.494h13.3v1.5H6.828l3.97 3.97-1.06 1.06z"}));function Zb(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object($t.a)(e);if(t){var o=Object($t.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(qt.a)(this,n)}}var Jb=function(e){Object(Wt.a)(n,e);var t=Zb(n);function n(){var e;return Object(Ut.a)(this,n),(e=t.apply(this,arguments)).toggle=e.toggle.bind(Object(Kt.a)(e)),e.submitLink=e.submitLink.bind(Object(Kt.a)(e)),e.state={expanded:!1},e}return Object(Gt.a)(n,[{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(g.__)("Edit link"):Object(g.__)("Insert link");return Object(u.createElement)("div",{className:"block-editor-url-input__button"},Object(u.createElement)(h.Button,{icon:Xb.a,label:o,onClick:this.toggle,className:"components-toolbar__control",isPressed:!!t}),r&&Object(u.createElement)("form",{className:"block-editor-url-input__button-modal",onSubmit:this.submitLink},Object(u.createElement)("div",{className:"block-editor-url-input__button-modal-line"},Object(u.createElement)(h.Button,{className:"block-editor-url-input__back",icon:Qb,label:Object(g.__)("Close"),onClick:this.toggle}),Object(u.createElement)(ob,{value:t||"",onChange:n}),Object(u.createElement)(h.Button,{icon:$d.a,label:Object(g.__)("Submit"),type:"submit"}))))}}]),n}(u.Component),ef=n(160),tf=["noreferrer","noopener"],nf=Object(u.createElement)(h.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(u.createElement)(h.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(u.createElement)(h.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(u.createElement)(h.Path,{d:"m14.14 11.86l-3 3.87-2.14-2.59-3 3.86h12l-3.86-5.14z"})),rf=function(e){var t=e.linkDestination,n=e.onChangeUrl,r=e.url,o=e.mediaType,c=void 0===o?"image":o,i=e.mediaUrl,a=e.mediaLink,l=e.linkTarget,s=e.linkClass,d=e.rel,b=Object(u.useState)(!1),p=Object(re.a)(b,2),m=p[0],v=p[1],O=Object(u.useCallback)((function(){v(!0)})),j=Object(u.useState)(!1),k=Object(re.a)(j,2),y=k[0],_=k[1],E=Object(u.useState)(null),C=Object(re.a)(E,2),w=C[0],S=C[1],I=Object(u.useRef)(null),B=function(e){e.stopPropagation()},x=function(e){[st.LEFT,st.DOWN,st.RIGHT,st.UP,st.BACKSPACE,st.ENTER].indexOf(e.keyCode)>-1&&e.stopPropagation()},P=Object(u.useCallback)((function(){"media"!==t&&"attachment"!==t||S(""),_(!0)})),T=Object(u.useCallback)((function(){_(!1)})),N=Object(u.useCallback)((function(){S(null),T(),v(!1)})),D=function(e){var t=e;return void 0===e||Object(f.isEmpty)(t)||Object(f.isEmpty)(t)||(Object(f.each)(tf,(function(e){var n=new RegExp("\\b"+e+"\\b","gi");t=t.replace(n,"")})),t!==e&&(t=t.trim()),Object(f.isEmpty)(t)&&(t=void 0)),t},R=Object(u.useCallback)((function(){return function(e){var t=I.current;t&&t.contains(e.target)||(v(!1),S(null),T())}})),A=Object(u.useCallback)((function(){return function(e){w&&n({href:w}),T(),S(null),e.preventDefault()}})),M=Object(u.useCallback)((function(){n({linkDestination:"none",href:""})})),L=function(){var e=[{linkDestination:"media",title:Object(g.__)("Media File"),url:"image"===c?i:void 0,icon:nf}];return"image"===c&&a&&e.push({linkDestination:"attachment",title:Object(g.__)("Attachment Page"),url:"image"===c?a:void 0,icon:Object(u.createElement)(h.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(u.createElement)(h.Path,{d:"M0 0h24v24H0V0z",fill:"none"}),Object(u.createElement)(h.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"}))}),e},F=Object(u.createElement)(u.Fragment,null,Object(u.createElement)(h.ToggleControl,{label:Object(g.__)("Open in new tab"),onChange:function(e){var t=function(e){var t=e?"_blank":void 0;return{linkTarget:t,rel:t||d?D(d):void 0}}(e);n(t)},checked:"_blank"===l}),Object(u.createElement)(h.TextControl,{label:Object(g.__)("Link Rel"),value:D(d)||"",onChange:function(e){n({rel:e})},onKeyPress:B,onKeyDown:x}),Object(u.createElement)(h.TextControl,{label:Object(g.__)("Link CSS Class"),value:s||"",onKeyPress:B,onKeyDown:x,onChange:function(e){n({linkClass:e})}})),V=null!==w?w:r,H=(Object(f.find)(L(),["linkDestination",t])||{}).title;return Object(u.createElement)(u.Fragment,null,Object(u.createElement)(h.ToolbarButton,{icon:Xb.a,className:"components-toolbar__control",label:r?Object(g.__)("Edit link"):Object(g.__)("Insert link"),"aria-expanded":m,onClick:O}),m&&Object(u.createElement)(Ab,{onFocusOutside:R(),onClose:N,renderSettings:function(){return F},additionalControls:!V&&Object(u.createElement)(h.NavigableMenu,null,Object(f.map)(L(),(function(e){return Object(u.createElement)(h.MenuItem,{key:e.linkDestination,icon:e.icon,onClick:function(){var t,r,o;S(null),t=e.url,o=L(),r=t?(Object(f.find)(o,(function(e){return e.url===t}))||{linkDestination:"custom"}).linkDestination:"none",n({linkDestination:r,href:t}),T()}},e.title)})))},(!r||y)&&Object(u.createElement)(Ab.LinkEditor,{className:"block-editor-format-toolbar__link-container-content",value:V,onChangeInputValue:S,onKeyDown:x,onKeyPress:B,onSubmit:A(),autocompleteRef:I}),r&&!y&&Object(u.createElement)(u.Fragment,null,Object(u.createElement)(Ab.LinkViewer,{className:"block-editor-format-toolbar__link-container-content",onKeyPress:B,url:r,onEditLinkClick:P,urlLabel:H}),Object(u.createElement)(h.Button,{icon:ef.a,label:Object(g.__)("Remove link"),onClick:M}))))},of=n(161);function cf(e){var t=e.children,n=e.className,r=e.isEnabled,o=void 0===r||r,c=e.deviceType,i=e.setDeviceType;if(Object(p.useViewportMatch)("small","<"))return null;var a={className:b()(n,"block-editor-post-preview__dropdown-content"),position:"bottom left"},l={isTertiary:!0,className:"block-editor-post-preview__button-toggle",disabled:!o,children:Object(g.__)("Preview")};return Object(u.createElement)(h.DropdownMenu,{className:"block-editor-post-preview__dropdown",popoverProps:a,toggleProps:l,icon:null},(function(){return Object(u.createElement)(u.Fragment,null,Object(u.createElement)(h.MenuGroup,null,Object(u.createElement)(h.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:function(){return i("Desktop")},icon:"Desktop"===c&&of.a},Object(g.__)("Desktop")),Object(u.createElement)(h.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:function(){return i("Tablet")},icon:"Tablet"===c&&of.a},Object(g.__)("Tablet")),Object(u.createElement)(h.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:function(){return i("Mobile")},icon:"Mobile"===c&&of.a},Object(g.__)("Mobile"))),t)}))}var af=n(280),lf=/\((min|max)-width:[^\(]*?\)/g;function sf(e){return!!e.media&&!!e.media.mediaText.match(lf)}function uf(e,t,n){e.deleteRule(n),e.insertRule(t,n)}function df(e,t){return e.replace(lf,(function(e){return Object(af.match)(e,{type:"screen",width:t})?"(min-width:0px)":"(min-width:999999px)"}))}function bf(e,t){Object(u.useEffect)((function(){if(t){var n,r,o,c="undefined"==typeof window?[]:Object(f.filter)(null!==(n=null===(r=window)||void 0===r||null===(o=r.document)||void 0===o?void 0:o.styleSheets)&&void 0!==n?n:[],(function(e){return!!e.href&&Object(Vl.getProtocol)(e.href)===window.location.protocol&&Object(Vl.getAuthority)(e.href)===window.location.host})),i=[];return c.forEach((function(n,r){for(var o=!1,c=0;c<n.cssRules.length;++c){var a=n.cssRules[c];if((a.type===window.CSSRule.STYLE_RULE||a.type===window.CSSRule.MEDIA_RULE)&&(!o&&a.cssText.match(new RegExp("#start-".concat(e)))&&(o=!0),o&&a.cssText.match(new RegExp("#end-".concat(e)))&&(o=!1),o&&sf(a))){var l=a.cssText;i[r]||(i[r]=[]),i[r][c]=l,uf(n,df(l,t),c)}}})),function(){i.forEach((function(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];r&&uf(c[t],r,n)}}))}}}),[t])}function ff(e){var t=Object(u.useState)(window.innerWidth),n=Object(re.a)(t,2),r=n[0],o=n[1];Object(u.useEffect)((function(){if("Desktop"!==e){var t=function(){return o(window.innerWidth)};return window.addEventListener("resize",t),function(){window.removeEventListener("resize",t)}}}),[e]);var c=function(e){var t;switch(e){case"Tablet":t=780;break;case"Mobile":t=360;break;default:return null}return t<r?t:r};return bf("resizable-editor-section",c(e)),function(e){var t="Mobile"===e?"768px":"1024px";switch(e){case"Tablet":case"Mobile":return{width:c(e),margin:(window.innerHeight<800?36:72)+"px auto",flexGrow:0,height:t,minHeight:t,maxHeight:t,overflowY:"auto"};default:return null}}(e)}var pf=Object(v.withSelect)((function(e){return{selectedBlockClientId:e("core/block-editor").getBlockSelectionStart()}}))((function(e){var t=e.selectedBlockClientId;return t&&Object(u.createElement)(h.Button,{isSecondary:!0,className:"block-editor-skip-to-selected-block",onClick:function(){qe(t).focus()}},Object(g.__)("Skip to the selected block"))})),mf=n(128);var vf=Object(v.withSelect)((function(e){return{blocks:(0,e("core/block-editor").getMultiSelectedBlocks)()}}))((function(e){var t=e.blocks,n=Object(mf.count)(Object(c.serialize)(t),"words");return Object(u.createElement)("div",{className:"block-editor-multi-selection-inspector__card"},Object(u.createElement)(qn,{icon:ks,showColors:!0}),Object(u.createElement)("div",{className:"block-editor-multi-selection-inspector__card-content"},Object(u.createElement)("div",{className:"block-editor-multi-selection-inspector__card-title"},Object(g.sprintf)(Object(g._n)("%d block","%d blocks",t.length),t.length)),Object(u.createElement)("div",{className:"block-editor-multi-selection-inspector__card-description"},Object(g.sprintf)(Object(g._n)("%d word","%d words",n),n))))}));function Of(e){var t=e.blockName,n=Object(v.useSelect)((function(e){var n,r,o=e("core/block-editor").getSettings().__experimentalPreferredStyleVariations;return{preferredStyle:null==o||null===(n=o.value)||void 0===n?void 0:n[t],onUpdatePreferredStyleVariations:null!==(r=null==o?void 0:o.onChange)&&void 0!==r?r:null,styles:e("core/blocks").getBlockStyles(t)}}),[t]),r=n.preferredStyle,o=n.onUpdatePreferredStyleVariations,c=n.styles,i=Object(u.useMemo)((function(){return[{label:Object(g.__)("Not set"),value:""}].concat(Object(ne.a)(c.map((function(e){return{label:e.label,value:e.name}}))))}),[c]),a=Object(u.useCallback)((function(e){o(t,e)}),[t,o]);return o&&Object(u.createElement)(h.SelectControl,{options:i,value:r||"",label:Object(g.__)("Default Style"),onChange:a})}var gf=function(e){var t=e.slotName,n=e.bubblesVirtually,r=Object(h.__experimentalUseSlot)(t);return Boolean(r.fills&&r.fills.length)?Object(u.createElement)(h.PanelBody,{className:"block-editor-block-inspector__advanced",title:Object(g.__)("Advanced"),initialOpen:!1},Object(u.createElement)(q.Slot,{bubblesVirtually:n})):null},hf=Object(v.withSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getSelectedBlockCount,o=t.getBlockName,i=e("core/blocks").getBlockStyles,a=n(),l=a&&o(a),s=a&&Object(c.getBlockType)(l),u=a&&i(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,i=e.selectedBlockName,a=e.showNoBlockSelectedMessage,l=void 0===a||a,s=e.bubblesVirtually,d=void 0===s||s;if(n>1)return Object(u.createElement)("div",{className:"block-editor-block-inspector"},Object(u.createElement)(vf,null),Object(u.createElement)(We.Slot,{bubblesVirtually:d}));var b=i===Object(c.getUnregisteredTypeHandlerName)();return t&&o&&!b?Object(u.createElement)("div",{className:"block-editor-block-inspector"},Object(u.createElement)(fo,{blockType:t}),r&&Object(u.createElement)("div",null,Object(u.createElement)(h.PanelBody,{title:Object(g.__)("Styles")},Object(u.createElement)(Ss,{clientId:o}),Object(c.hasBlockSupport)(t.name,"defaultStylePicker",!0)&&Object(u.createElement)(Of,{blockName:t.name}))),Object(u.createElement)(We.Slot,{bubblesVirtually:d}),Object(u.createElement)("div",null,Object(u.createElement)(gf,{slotName:q.slotName,bubblesVirtually:d})),Object(u.createElement)(pf,{key:"back"})):l?Object(u.createElement)("span",{className:"block-editor-block-inspector__no-blocks"},Object(g.__)("No block selected.")):null}));function jf(e){var t,n,r=(t=Object(v.useSelect)((function(e){var t=e("core/block-editor"),n=t.hasSelectedBlock,r=t.hasMultiSelection;return n()||r()})),n=Object(v.useDispatch)("core/block-editor").clearSelectedBlock,function(e){e.target===e.currentTarget&&t&&n()});return Object(u.createElement)("div",Object(l.a)({tabIndex:-1,onFocus:r},e))}var kf=n(281),yf=n.n(kf),_f=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Ef=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 c(){var e={line:n,column:r};return function(t){return t.position=new i(e),f(),t}}function i(e){this.start=e,this.end={line:n,column:r},this.source=t.source}i.prototype.content=e;var a=[];function l(o){var c=new Error(t.source+":"+n+":"+r+": "+o);if(c.reason=o,c.filename=t.source,c.line=n,c.column=r,c.source=e,!t.silent)throw c;a.push(c)}function s(){return b(/^{\s*/)}function u(){return b(/^}/)}function d(){var t,n=[];for(f(),p(n);e.length&&"}"!==e.charAt(0)&&(t=C()||w());)!1!==t&&(n.push(t),p(n));return n}function b(t){var n=t.exec(e);if(n){var r=n[0];return o(r),e=e.slice(r.length),n}}function f(){b(/^\s*/)}function p(e){var t;for(e=e||[];t=m();)!1!==t&&e.push(t);return e}function m(){var t=c();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 i=e.slice(2,n-2);return r+=2,o(i),e=e.slice(n),r+=2,t({type:"comment",comment:i})}}function v(){var e=b(/^([^{]+)/);if(e)return Cf(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 O(){var e=c(),t=b(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(t){if(t=Cf(t[0]),!b(/^:\s*/))return l("property missing ':'");var n=b(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),r=e({type:"declaration",property:t.replace(_f,""),value:n?Cf(n[0]).replace(_f,""):""});return b(/^[;\s]*/),r}}function g(){var e,t=[];if(!s())return l("missing '{'");for(p(t);e=O();)!1!==e&&(t.push(e),p(t));return u()?t:l("missing '}'")}function h(){for(var e,t=[],n=c();e=b(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),b(/^,\s*/);if(t.length)return n({type:"keyframe",values:t,declarations:g()})}var j,k=E("import"),y=E("charset"),_=E("namespace");function E(e){var t=new RegExp("^@"+e+"\\s*([^;]+);");return function(){var n=c(),r=b(t);if(r){var o={type:e};return o[e]=r[1].trim(),n(o)}}}function C(){if("@"===e[0])return function(){var e=c(),t=b(/^@([-\w]+)?keyframes\s*/);if(t){var n=t[1];if(!(t=b(/^([-\w]+)\s*/)))return l("@keyframes missing name");var r,o=t[1];if(!s())return l("@keyframes missing '{'");for(var i=p();r=h();)i.push(r),i=i.concat(p());return u()?e({type:"keyframes",name:o,vendor:n,keyframes:i}):l("@keyframes missing '}'")}}()||function(){var e=c(),t=b(/^@media *([^{]+)/);if(t){var n=Cf(t[1]);if(!s())return l("@media missing '{'");var r=p().concat(d());return u()?e({type:"media",media:n,rules:r}):l("@media missing '}'")}}()||function(){var e=c(),t=b(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(t)return e({type:"custom-media",name:Cf(t[1]),media:Cf(t[2])})}()||function(){var e=c(),t=b(/^@supports *([^{]+)/);if(t){var n=Cf(t[1]);if(!s())return l("@supports missing '{'");var r=p().concat(d());return u()?e({type:"supports",supports:n,rules:r}):l("@supports missing '}'")}}()||k()||y()||_()||function(){var e=c(),t=b(/^@([-\w]+)?document *([^{]+)/);if(t){var n=Cf(t[1]),r=Cf(t[2]);if(!s())return l("@document missing '{'");var o=p().concat(d());return u()?e({type:"document",document:r,vendor:n,rules:o}):l("@document missing '}'")}}()||function(){var e=c();if(b(/^@page */)){var t=v()||[];if(!s())return l("@page missing '{'");for(var n,r=p();n=O();)r.push(n),r=r.concat(p());return u()?e({type:"page",selectors:t,declarations:r}):l("@page missing '}'")}}()||function(){var e=c();if(b(/^@host\s*/)){if(!s())return l("@host missing '{'");var t=p().concat(d());return u()?e({type:"host",rules:t}):l("@host missing '}'")}}()||function(){var e=c();if(b(/^@font-face\s*/)){if(!s())return l("@font-face missing '{'");for(var t,n=p();t=O();)n.push(t),n=n.concat(p());return u()?e({type:"font-face",declarations:n}):l("@font-face missing '}'")}}()}function w(){var e=c(),t=v();return t?(p(),e({type:"rule",selectors:t,declarations:g()})):l("selector missing")}return function e(t,n){var r=t&&"string"==typeof t.type,o=r?t:n;for(var c in t){var i=t[c];Array.isArray(i)?i.forEach((function(t){e(t,o)})):i&&"object"===Object(Ro.a)(i)&&e(i,o)}r&&Object.defineProperty(t,"parent",{configurable:!0,writable:!0,enumerable:!1,value:n||null});return t}((j=d(),{type:"stylesheet",stylesheet:{source:t.source,rules:j,parsingErrors:a}}))};function Cf(e){return e?e.replace(/^\s+|\s+$/g,""):""}var wf=n(171),Sf=n.n(wf),If=Bf;function Bf(e){this.options=e||{}}Bf.prototype.emit=function(e){return e},Bf.prototype.visit=function(e){return this[e.type](e)},Bf.prototype.mapVisit=function(e,t){var n="";t=t||"";for(var r=0,o=e.length;r<o;r++)n+=this.visit(e[r]),t&&r<o-1&&(n+=this.emit(t));return n};var xf=Pf;function Pf(e){If.call(this,e)}Sf()(Pf,If),Pf.prototype.compile=function(e){return e.stylesheet.rules.map(this.visit,this).join("")},Pf.prototype.comment=function(e){return this.emit("",e.position)},Pf.prototype.import=function(e){return this.emit("@import "+e.import+";",e.position)},Pf.prototype.media=function(e){return this.emit("@media "+e.media,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},Pf.prototype.document=function(e){var t="@"+(e.vendor||"")+"document "+e.document;return this.emit(t,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},Pf.prototype.charset=function(e){return this.emit("@charset "+e.charset+";",e.position)},Pf.prototype.namespace=function(e){return this.emit("@namespace "+e.namespace+";",e.position)},Pf.prototype.supports=function(e){return this.emit("@supports "+e.supports,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},Pf.prototype.keyframes=function(e){return this.emit("@"+(e.vendor||"")+"keyframes "+e.name,e.position)+this.emit("{")+this.mapVisit(e.keyframes)+this.emit("}")},Pf.prototype.keyframe=function(e){var t=e.declarations;return this.emit(e.values.join(","),e.position)+this.emit("{")+this.mapVisit(t)+this.emit("}")},Pf.prototype.page=function(e){var t=e.selectors.length?e.selectors.join(", "):"";return this.emit("@page "+t,e.position)+this.emit("{")+this.mapVisit(e.declarations)+this.emit("}")},Pf.prototype["font-face"]=function(e){return this.emit("@font-face",e.position)+this.emit("{")+this.mapVisit(e.declarations)+this.emit("}")},Pf.prototype.host=function(e){return this.emit("@host",e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},Pf.prototype["custom-media"]=function(e){return this.emit("@custom-media "+e.name+" "+e.media+";",e.position)},Pf.prototype.rule=function(e){var t=e.declarations;return t.length?this.emit(e.selectors.join(","),e.position)+this.emit("{")+this.mapVisit(t)+this.emit("}"):""},Pf.prototype.declaration=function(e){return this.emit(e.property+":"+e.value,e.position)+this.emit(";")};var Tf=Nf;function Nf(e){e=e||{},If.call(this,e),this.indentation=e.indent}Sf()(Nf,If),Nf.prototype.compile=function(e){return this.stylesheet(e)},Nf.prototype.stylesheet=function(e){return this.mapVisit(e.stylesheet.rules,"\n\n")},Nf.prototype.comment=function(e){return this.emit(this.indent()+"/*"+e.comment+"*/",e.position)},Nf.prototype.import=function(e){return this.emit("@import "+e.import+";",e.position)},Nf.prototype.media=function(e){return this.emit("@media "+e.media,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},Nf.prototype.document=function(e){var t="@"+(e.vendor||"")+"document "+e.document;return this.emit(t,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},Nf.prototype.charset=function(e){return this.emit("@charset "+e.charset+";",e.position)},Nf.prototype.namespace=function(e){return this.emit("@namespace "+e.namespace+";",e.position)},Nf.prototype.supports=function(e){return this.emit("@supports "+e.supports,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},Nf.prototype.keyframes=function(e){return this.emit("@"+(e.vendor||"")+"keyframes "+e.name,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.keyframes,"\n")+this.emit(this.indent(-1)+"}")},Nf.prototype.keyframe=function(e){var t=e.declarations;return this.emit(this.indent())+this.emit(e.values.join(", "),e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(t,"\n")+this.emit(this.indent(-1)+"\n"+this.indent()+"}\n")},Nf.prototype.page=function(e){var t=e.selectors.length?e.selectors.join(", ")+" ":"";return this.emit("@page "+t,e.position)+this.emit("{\n")+this.emit(this.indent(1))+this.mapVisit(e.declarations,"\n")+this.emit(this.indent(-1))+this.emit("\n}")},Nf.prototype["font-face"]=function(e){return this.emit("@font-face ",e.position)+this.emit("{\n")+this.emit(this.indent(1))+this.mapVisit(e.declarations,"\n")+this.emit(this.indent(-1))+this.emit("\n}")},Nf.prototype.host=function(e){return this.emit("@host",e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},Nf.prototype["custom-media"]=function(e){return this.emit("@custom-media "+e.name+" "+e.media+";",e.position)},Nf.prototype.rule=function(e){var t=this.indent(),n=e.declarations;return n.length?this.emit(e.selectors.map((function(e){return t+e})).join(",\n"),e.position)+this.emit(" {\n")+this.emit(this.indent(1))+this.mapVisit(n,"\n")+this.emit(this.indent(-1))+this.emit("\n"+this.indent()+"}"):""},Nf.prototype.declaration=function(e){return this.emit(this.indent())+this.emit(e.property+": "+e.value,e.position)+this.emit(";")},Nf.prototype.indent=function(e){return this.level=this.level||1,null!==e?(this.level+=e,""):Array(this.level).join(this.indentation||" ")};var Df=function(e,t){try{var n=Ef(e),r=yf.a.map(n,(function(e){if(!e)return e;var n=t(e);return this.update(n)}));return o=r,((c=c||{}).compress?new xf(c):new Tf(c)).compile(o)}catch(e){return console.warn("Error while traversing the CSS: "+e),null}var o,c};function Rf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Af(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rf(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Mf(e){return 0!==e.value.indexOf("data:")&&0!==e.value.indexOf("#")&&(t=e.value,!/^\/(?!\/)/.test(t)&&!function(e){return/^(?:https?:)?\/\//.test(e)}(e.value));var t}function Lf(e,t){return new URL(e,t).toString()}var Ff=function(e){return function(t){if("declaration"===t.type){var n=function(e){for(var t,n=/url\((\s*)(['"]?)(.+?)\2(\s*)\)/g,r=[];null!==(t=n.exec(e));){var o={source:t[0],before:t[1],quote:t[2],value:t[3],after:t[4]};Mf(o)&&r.push(o)}return r}(t.value).map((c=e,function(e){return Af(Af({},e),{},{newUrl:"url("+e.before+e.quote+Lf(e.value,c)+e.quote+e.after+")"})}));return Af(Af({},t),{},{value:(r=t.value,o=n,o.forEach((function(e){r=r.replace(e.source,e.newUrl)})),r)})}var r,o,c;return t}};function Vf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Hf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vf(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var zf=/^(body|html|:root).*$/,Uf=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(n){return"rule"===n.type?Hf(Hf({},n),{},{selectors:n.selectors.map((function(n){return t.includes(n.trim())?n:n.match(zf)?n.replace(/^(body|html|:root)/,e):e+" "+n}))}):n}},Gf=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object(f.map)(e,(function(e){var n=e.css,r=e.baseURL,o=[];return t&&o.push(Uf(t)),r&&o.push(Ff(r)),o.length?Df(n,Object(p.compose)(o)):n}))};var Kf=function(e){var t=e.styles;return Object(u.useEffect)((function(){var e=Gf(t,".editor-styles-wrapper"),n=Object(f.map)(Object(f.compact)(e),(function(e){var t=document.createElement("style");return t.innerHTML=e,document.body.appendChild(t),t}));return function(){return n.forEach((function(e){return document.body.removeChild(e)}))}}),[t]),null};var Wf=function(e){var t=e.rootClientId,n=e.clientId,r=e.isAppender,o=e.showInserterHelpPanel,c=e.showMostUsedBlocks,i=void 0!==c&&c,a=e.__experimentalSelectBlockOnInsert,l=e.__experimentalInsertionIndex,s=e.onSelect,d=void 0===s?f.noop:s,b=Object(v.useSelect)((function(e){var r=e("core/block-editor").getBlockRootClientId;return t||r(n)||void 0}),[n,t]);return Object(u.createElement)(Xl,{onSelect:d,rootClientId:b,clientId:n,isAppender:r,showInserterHelpPanel:o,showMostUsedBlocks:i,__experimentalSelectBlockOnInsert:a,__experimentalInsertionIndex:l})};function qf(){var e=Object(v.useSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientIds,r=t.getBlockOrder,o=t.getBlockRootClientId,c=n(),i=Object(re.a)(c,1)[0];return{clientIds:c,rootBlocksClientIds:r(),rootClientId:o(i)}}),[]),t=e.clientIds,n=e.rootBlocksClientIds,r=e.rootClientId,o=Object(v.useDispatch)("core/block-editor"),c=o.duplicateBlocks,i=o.removeBlocks,l=o.insertAfterBlock,s=o.insertBeforeBlock,d=o.multiSelect,b=o.clearSelectedBlock,p=o.moveBlocksUp,m=o.moveBlocksDown;return Object(a.useShortcut)("core/block-editor/move-up",Object(u.useCallback)((function(e){e.preventDefault(),p(t,r)}),[t,p]),{bindGlobal:!0,isDisabled:0===t.length}),Object(a.useShortcut)("core/block-editor/move-down",Object(u.useCallback)((function(e){e.preventDefault(),m(t,r)}),[t,m]),{bindGlobal:!0,isDisabled:0===t.length}),Object(a.useShortcut)("core/block-editor/duplicate",Object(u.useCallback)((function(e){e.preventDefault(),c(t)}),[t,c]),{bindGlobal:!0,isDisabled:0===t.length}),Object(a.useShortcut)("core/block-editor/remove",Object(u.useCallback)((function(e){e.preventDefault(),i(t)}),[t,i]),{bindGlobal:!0,isDisabled:0===t.length}),Object(a.useShortcut)("core/block-editor/insert-after",Object(u.useCallback)((function(e){e.preventDefault(),l(Object(f.last)(t))}),[t,l]),{bindGlobal:!0,isDisabled:0===t.length}),Object(a.useShortcut)("core/block-editor/insert-before",Object(u.useCallback)((function(e){e.preventDefault(),s(Object(f.first)(t))}),[t,s]),{bindGlobal:!0,isDisabled:0===t.length}),Object(a.useShortcut)("core/block-editor/delete-multi-selection",Object(u.useCallback)((function(e){e.preventDefault(),i(t)}),[t,i]),{isDisabled:t.length<2}),Object(a.useShortcut)("core/block-editor/select-all",Object(u.useCallback)((function(e){e.preventDefault(),d(Object(f.first)(n),Object(f.last)(n))}),[n,d])),Object(a.useShortcut)("core/block-editor/unselect",Object(u.useCallback)((function(e){e.preventDefault(),b(),e.target.ownerDocument.defaultView.getSelection().removeAllRanges()}),[t,b]),{isDisabled:t.length<2}),null}qf.Register=function(){var e=Object(v.useDispatch)("core/keyboard-shortcuts").registerShortcut;return Object(u.useEffect)((function(){e({name:"core/block-editor/duplicate",category:"block",description:Object(g.__)("Duplicate the selected block(s)."),keyCombination:{modifier:"primaryShift",character:"d"}}),e({name:"core/block-editor/remove",category:"block",description:Object(g.__)("Remove the selected block(s)."),keyCombination:{modifier:"access",character:"z"}}),e({name:"core/block-editor/insert-before",category:"block",description:Object(g.__)("Insert a new block before the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"t"}}),e({name:"core/block-editor/insert-after",category:"block",description:Object(g.__)("Insert a new block after the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"y"}}),e({name:"core/block-editor/delete-multi-selection",category:"block",description:Object(g.__)("Remove multiple selected blocks."),keyCombination:{character:"del"},aliases:[{character:"backspace"}]}),e({name:"core/block-editor/select-all",category:"selection",description:Object(g.__)("Select all text when typing. Press again to select all blocks."),keyCombination:{modifier:"primary",character:"a"}}),e({name:"core/block-editor/unselect",category:"selection",description:Object(g.__)("Clear selection."),keyCombination:{character:"escape"}}),e({name:"core/block-editor/focus-toolbar",category:"global",description:Object(g.__)("Navigate to the nearest toolbar."),keyCombination:{modifier:"alt",character:"F10"}}),e({name:"core/block-editor/move-up",category:"block",description:Object(g.__)("Move the selected block(s) up."),keyCombination:{modifier:"secondary",character:"t"}}),e({name:"core/block-editor/move-down",category:"block",description:Object(g.__)("Move the selected block(s) down."),keyCombination:{modifier:"secondary",character:"y"}})}),[e]),null};var $f=qf;function Yf(){var e=Object(v.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockSelectionEnd,r=t.hasMultiSelection,o=t.isMultiSelecting;return{selectionEnd:n(),isMultiSelection:r(),isMultiSelecting:o()}}),[]),t=e.isMultiSelection,n=e.selectionEnd,r=e.isMultiSelecting;return Object(u.useEffect)((function(){if(n&&!r&&t){var e=qe(n);if(e){var o=Object(kr.getScrollContainer)(e);o&&eb()(e,o,{onlyScrollIfNeeded:!0})}}}),[t,n,r]),null}var Xf=[st.UP,st.RIGHT,st.DOWN,st.LEFT,st.ENTER,st.BACKSPACE];var Qf=Object(p.withSafeTimeout)((function(e){var t=e.children,n=e.setTimeout,r=Object(u.useRef)(),o=Object(u.useRef)(),c=Object(v.useSelect)((function(e){return e("core/block-editor").isTyping()})),i=Object(v.useDispatch)("core/block-editor"),a=i.startTyping,l=i.stopTyping;function s(e){var t=e?"addEventListener":"removeEventListener";r.current.ownerDocument[t]("selectionchange",b),r.current.ownerDocument[t]("mousemove",d),document[t]("mousemove",d)}function d(e){var t=e.clientX,n=e.clientY;if(o.current){var r=o.current,c=r.clientX,i=r.clientY;c===t&&i===n||l()}o.current={clientX:t,clientY:n}}function b(e){var t=e.target.defaultView.getSelection();t.rangeCount>0&&t.getRangeAt(0).collapsed||l()}function p(e){var t=e.type,n=e.target;!c&&Object(kr.isTextField)(n)&&r.current.contains(n)&&("keydown"!==t||function(e){var t=e.keyCode;return!e.shiftKey&&Xf.includes(t)}(e))&&a()}return Object(u.useEffect)((function(){return s(c),function(){return s(!1)}}),[c]),Object(u.createElement)("div",{ref:r,onFocus:function(e){var t=e.target;n((function(){c&&!Object(kr.isTextField)(t)&&l()}))},onKeyPress:p,onKeyDown:Object(f.over)([p,function(e){!c||e.keyCode!==st.ESCAPE&&e.keyCode!==st.TAB||l()}])},t)}));function Zf(){return to()("PreserveScrollInReorder component",{hint:"This behavior is now built-in the block list"}),null}function Jf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object($t.a)(e);if(t){var o=Object($t.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(qt.a)(this,n)}}var ep=-1!==window.navigator.userAgent.indexOf("Trident"),tp=new Set([st.UP,st.DOWN,st.LEFT,st.RIGHT]),np=function(e){Object(Wt.a)(n,e);var t=Jf(n);function n(){var e;return Object(Ut.a)(this,n),(e=t.apply(this,arguments)).ref=Object(u.createRef)(),e.onKeyDown=e.onKeyDown.bind(Object(Kt.a)(e)),e.addSelectionChangeListener=e.addSelectionChangeListener.bind(Object(Kt.a)(e)),e.computeCaretRectOnSelectionChange=e.computeCaretRectOnSelectionChange.bind(Object(Kt.a)(e)),e.maintainCaretPosition=e.maintainCaretPosition.bind(Object(Kt.a)(e)),e.computeCaretRect=e.computeCaretRect.bind(Object(Kt.a)(e)),e.onScrollResize=e.onScrollResize.bind(Object(Kt.a)(e)),e.isSelectionEligibleForScroll=e.isSelectionEligibleForScroll.bind(Object(Kt.a)(e)),e.getDocument=e.getDocument.bind(Object(Kt.a)(e)),e.getWindow=e.getWindow.bind(Object(Kt.a)(e)),e}return Object(Gt.a)(n,[{key:"componentDidMount",value:function(){this.getWindow().addEventListener("scroll",this.onScrollResize,!0),this.getWindow().addEventListener("resize",this.onScrollResize,!0)}},{key:"componentWillUnmount",value:function(){this.getWindow().removeEventListener("scroll",this.onScrollResize,!0),this.getWindow().removeEventListener("resize",this.onScrollResize,!0),this.getDocument().removeEventListener("selectionchange",this.computeCaretRectOnSelectionChange),this.onScrollResize.rafId&&this.getWindow().cancelAnimationFrame(this.onScrollResize.rafId),this.onKeyDown.rafId&&this.getWindow().cancelAnimationFrame(this.onKeyDown.rafId)}},{key:"getDocument",value:function(){return this.ref.current.ownerDocument}},{key:"getWindow",value:function(){return this.getDocument().defaultView}},{key:"computeCaretRect",value:function(){this.isSelectionEligibleForScroll()&&(this.caretRect=Object(kr.computeCaretRect)(this.getWindow()))}},{key:"computeCaretRectOnSelectionChange",value:function(){this.getDocument().removeEventListener("selectionchange",this.computeCaretRectOnSelectionChange),this.computeCaretRect()}},{key:"onScrollResize",value:function(){var e=this;this.onScrollResize.rafId||(this.onScrollResize.rafId=this.getWindow().requestAnimationFrame((function(){e.computeCaretRect(),delete e.onScrollResize.rafId})))}},{key:"isSelectionEligibleForScroll",value:function(){return this.props.selectedBlockClientId&&this.ref.current.contains(this.getDocument().activeElement)&&this.getDocument().activeElement.isContentEditable}},{key:"isLastEditableNode",value:function(){var e=this.ref.current.querySelectorAll('[contenteditable="true"]');return e[e.length-1]===this.getDocument().activeElement}},{key:"maintainCaretPosition",value:function(e){var t=e.keyCode;if(this.isSelectionEligibleForScroll()){var n=Object(kr.computeCaretRect)(this.getWindow());if(n)if(this.caretRect)if(tp.has(t))this.caretRect=n;else{var r=n.top-this.caretRect.top;if(0!==r){var o=Object(kr.getScrollContainer)(this.ref.current);if(o){var c=o===this.getDocument().body,i=c?this.getWindow().scrollY:o.scrollTop,a=c?0:o.getBoundingClientRect().top,l=c?this.caretRect.top/this.getWindow().innerHeight:(this.caretRect.top-a)/(this.getWindow().innerHeight-a);if(0===i&&l<.75&&this.isLastEditableNode())this.caretRect=n;else{var s=c?this.getWindow().innerHeight:o.clientHeight;this.caretRect.top+this.caretRect.height>a+s||this.caretRect.top<a?this.caretRect=n:c?this.getWindow().scrollBy(0,r):o.scrollTop+=r}}}}else this.caretRect=n}}},{key:"addSelectionChangeListener",value:function(){this.getDocument().addEventListener("selectionchange",this.computeCaretRectOnSelectionChange)}},{key:"onKeyDown",value:function(e){var t=this;e.persist(),this.onKeyDown.rafId&&this.getWindow().cancelAnimationFrame(this.onKeyDown.rafId),this.onKeyDown.rafId=this.getWindow().requestAnimationFrame((function(){t.maintainCaretPosition(e),delete t.onKeyDown.rafId}))}},{key:"render",value:function(){return Object(u.createElement)("div",{ref:this.ref,onKeyDown:this.onKeyDown,onKeyUp:this.maintainCaretPosition,onMouseDown:this.addSelectionChangeListener,onTouchStart:this.addSelectionChangeListener,className:"block-editor__typewriter"},this.props.children)}}]),n}(u.Component),rp=ep?function(e){return e.children}:Object(v.withSelect)((function(e){return{selectedBlockClientId:(0,e("core/block-editor").getSelectedBlockClientId)()}}))(np);function op(e){if(void 0===e)e=mo.colors;else{var t=e.filter((function(e){return e.color}));0===t.length?e=mo.colors:t.length<e.length&&(e=t)}return e}function cp(e){if(void 0===e)e=mo.gradients;else{var t=e.filter((function(e){return e.gradient}));0===t.length?e=mo.gradients:t.length<e.length&&(e=t)}return e}}]); \ No newline at end of file +*/o=[e,t],void 0===(c="function"==typeof(r=function(e,t){"use strict";var n,r,o="function"==typeof Map?new Map:(n=[],r=[],{has:function(e){return n.indexOf(e)>-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))}}),c=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){c=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function i(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!o.has(e)){var t,n=null,r=null,i=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<t?"hidden"===n.overflowY&&(s("scroll"),u(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(s("hidden"),u(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),i!==r){i=r;var o=c("autosize:resized");try{e.dispatchEvent(o)}catch(e){}}}}function a(e){var t=o.get(e);t&&t.destroy()}function l(e){var t=o.get(e);t&&t.update()}var s=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((s=function(e){return e}).destroy=function(e){return e},s.update=function(e){return e}):((s=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return i(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],a),e},s.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],l),e}),t.default=s,e.exports=t.default})?r.apply(t,o):r)||(e.exports=c)},function(e,t,n){var r=n(183);e.exports=function(e){var t=r(e,"line-height"),n=parseFloat(t,10);if(t===n+""){var o=e.style.lineHeight;e.style.lineHeight=t+"em",t=r(e,"line-height"),n=parseFloat(t,10),o?e.style.lineHeight=o:delete e.style.lineHeight}if(-1!==t.indexOf("pt")?(n*=4,n/=3):-1!==t.indexOf("mm")?(n*=96,n/=25.4):-1!==t.indexOf("cm")?(n*=96,n/=2.54):-1!==t.indexOf("in")?n*=96:-1!==t.indexOf("pc")&&(n*=16),n=Math.round(n),"normal"===t){var c=e.nodeName,i=document.createElement(c);i.innerHTML=" ","TEXTAREA"===c.toUpperCase()&&i.setAttribute("rows","1");var a=r(e,"font-size");i.style.fontSize=a,i.style.padding="0px",i.style.border="0px";var l=document.body;l.appendChild(i),n=i.offsetHeight,l.removeChild(i)}return n}},function(e,t){e.exports=function(e,t,n){return((n=window.getComputedStyle)?n(e):e.currentStyle)[t.replace(/-(\w)/gi,(function(e,t){return t.toUpperCase()}))]}},function(e,t,n){"use strict";var r=n(185);e.exports=function(e,t,n){n=n||{},9===t.nodeType&&(t=r.getWindow(t));var o=n.allowHorizontalScroll,c=n.onlyScrollIfNeeded,i=n.alignWithTop,a=n.alignWithLeft,l=n.offsetTop||0,s=n.offsetLeft||0,u=n.offsetBottom||0,d=n.offsetRight||0;o=void 0===o||o;var b=r.isWindow(t),f=r.offset(e),p=r.outerHeight(e),m=r.outerWidth(e),v=void 0,O=void 0,g=void 0,h=void 0,j=void 0,k=void 0,y=void 0,_=void 0,E=void 0,C=void 0;b?(y=t,C=r.height(y),E=r.width(y),_={left:r.scrollLeft(y),top:r.scrollTop(y)},j={left:f.left-_.left-s,top:f.top-_.top-l},k={left:f.left+m-(_.left+E)+d,top:f.top+p-(_.top+C)+u},h=_):(v=r.offset(t),O=t.clientHeight,g=t.clientWidth,h={left:t.scrollLeft,top:t.scrollTop},j={left:f.left-(v.left+(parseFloat(r.css(t,"borderLeftWidth"))||0))-s,top:f.top-(v.top+(parseFloat(r.css(t,"borderTopWidth"))||0))-l},k={left:f.left+m-(v.left+g+(parseFloat(r.css(t,"borderRightWidth"))||0))+d,top:f.top+p-(v.top+O+(parseFloat(r.css(t,"borderBottomWidth"))||0))+u}),j.top<0||k.top>0?!0===i?r.scrollTop(t,h.top+j.top):!1===i?r.scrollTop(t,h.top+k.top):j.top<0?r.scrollTop(t,h.top+j.top):r.scrollTop(t,h.top+k.top):c||((i=void 0===i||!!i)?r.scrollTop(t,h.top+j.top):r.scrollTop(t,h.top+k.top)),o&&(j.left<0||k.left>0?!0===a?r.scrollLeft(t,h.left+j.left):!1===a?r.scrollLeft(t,h.left+k.left):j.left<0?r.scrollLeft(t,h.left+j.left):r.scrollLeft(t,h.left+k.left):c||((a=void 0===a||!!a)?r.scrollLeft(t,h.left+j.left):r.scrollLeft(t,h.left+k.left)))}},function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function c(e,t){var n=e["page"+(t?"Y":"X")+"Offset"],r="scroll"+(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}function i(e){return c(e)}function a(e){return c(e,!0)}function l(e){var t=function(e){var t,n=void 0,r=void 0,o=e.ownerDocument,c=o.body,i=o&&o.documentElement;return n=(t=e.getBoundingClientRect()).left,r=t.top,{left:n-=i.clientLeft||c.clientLeft||0,top:r-=i.clientTop||c.clientTop||0}}(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=i(r),t.top+=a(r),t}var s=new RegExp("^("+/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source+")(?!px)[a-z%]+$","i"),u=/^(top|right|bottom|left)$/,d="left";var b=void 0;function f(e,t){for(var n=0;n<e.length;n++)t(e[n])}function p(e){return"border-box"===b(e,"boxSizing")}"undefined"!=typeof window&&(b=window.getComputedStyle?function(e,t,n){var r="",o=e.ownerDocument,c=n||o.defaultView.getComputedStyle(e,null);return c&&(r=c.getPropertyValue(t)||c[t]),r}:function(e,t){var n=e.currentStyle&&e.currentStyle[t];if(s.test(n)&&!u.test(t)){var r=e.style,o=r[d],c=e.runtimeStyle[d];e.runtimeStyle[d]=e.currentStyle[d],r[d]="fontSize"===t?"1em":n||0,n=r.pixelLeft+"px",r[d]=o,e.runtimeStyle[d]=c}return""===n?"auto":n});var m=["margin","border","padding"];function v(e,t,n){var r={},o=e.style,c=void 0;for(c in t)t.hasOwnProperty(c)&&(r[c]=o[c],o[c]=t[c]);for(c in n.call(e),t)t.hasOwnProperty(c)&&(o[c]=r[c])}function O(e,t,n){var r=0,o=void 0,c=void 0,i=void 0;for(c=0;c<t.length;c++)if(o=t[c])for(i=0;i<n.length;i++){var a=void 0;a="border"===o?o+n[i]+"Width":o+n[i],r+=parseFloat(b(e,a))||0}return r}function g(e){return null!=e&&e==e.window}var h={};function j(e,t,n){if(g(e))return"width"===t?h.viewportWidth(e):h.viewportHeight(e);if(9===e.nodeType)return"width"===t?h.docWidth(e):h.docHeight(e);var r="width"===t?["Left","Right"]:["Top","Bottom"],o="width"===t?e.offsetWidth:e.offsetHeight,c=(b(e),p(e)),i=0;(null==o||o<=0)&&(o=void 0,(null==(i=b(e,t))||Number(i)<0)&&(i=e.style[t]||0),i=parseFloat(i)||0),void 0===n&&(n=c?1:-1);var a=void 0!==o||c,l=o||i;if(-1===n)return a?l-O(e,["border","padding"],r):i;if(a){var s=2===n?-O(e,["border"],r):O(e,["margin"],r);return l+(1===n?0:s)}return i+O(e,m.slice(n),r)}f(["Width","Height"],(function(e){h["doc"+e]=function(t){var n=t.document;return Math.max(n.documentElement["scroll"+e],n.body["scroll"+e],h["viewport"+e](n))},h["viewport"+e]=function(t){var n="client"+e,r=t.document,o=r.body,c=r.documentElement[n];return"CSS1Compat"===r.compatMode&&c||o&&o[n]||c}}));var k={position:"absolute",visibility:"hidden",display:"block"};function y(e){var t=void 0,n=arguments;return 0!==e.offsetWidth?t=j.apply(void 0,n):v(e,k,(function(){t=j.apply(void 0,n)})),t}function _(e,t,n){var r=n;if("object"!==(void 0===t?"undefined":o(t)))return void 0!==r?("number"==typeof r&&(r+="px"),void(e.style[t]=r)):b(e,t);for(var c in t)t.hasOwnProperty(c)&&_(e,c,t[c])}f(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);h["outer"+t]=function(t,n){return t&&y(t,e,n?0:1)};var n="width"===e?["Left","Right"]:["Top","Bottom"];h[e]=function(t,r){if(void 0===r)return t&&y(t,e,-1);if(t){b(t);return p(t)&&(r+=O(t,["padding","border"],n)),_(t,e,r)}}})),e.exports=r({getWindow:function(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},offset:function(e,t){if(void 0===t)return l(e);!function(e,t){"static"===_(e,"position")&&(e.style.position="relative");var n=l(e),r={},o=void 0,c=void 0;for(c in t)t.hasOwnProperty(c)&&(o=parseFloat(_(e,c))||0,r[c]=o+t[c]-n[c]);_(e,r)}(e,t)},isWindow:g,each:f,css:_,clone:function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);if(e.overflow)for(var n in e)e.hasOwnProperty(n)&&(t.overflow[n]=e.overflow[n]);return t},scrollLeft:function(e,t){if(g(e)){if(void 0===t)return i(e);window.scrollTo(t,a(e))}else{if(void 0===t)return e.scrollLeft;e.scrollLeft=t}},scrollTop:function(e,t){if(g(e)){if(void 0===t)return a(e);window.scrollTo(i(e),t)}else{if(void 0===t)return e.scrollTop;e.scrollTop=t}},viewportWidth:0,viewportHeight:0},h)},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"}));t.a=c},,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"}));t.a=c},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));t.a=c},function(e,t,n){"use strict";t.__esModule=!0,t.default=t.EXITING=t.ENTERED=t.ENTERING=t.EXITED=t.UNMOUNTED=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(28)),o=a(n(13)),c=a(n(109)),i=n(211);n(212);function a(e){return e&&e.__esModule?e:{default:e}}t.UNMOUNTED="unmounted";t.EXITED="exited";t.ENTERING="entering";t.ENTERED="entered";t.EXITING="exiting";var l=function(e){var t,n;function r(t,n){var r;r=e.call(this,t,n)||this;var o,c=n.transitionGroup,i=c&&!c.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o="exited",r.appearStatus="entering"):o="entered":o=t.unmountOnExit||t.mountOnEnter?"unmounted":"exited",r.state={status:o},r.nextCallback=null,r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.getChildContext=function(){return{transitionGroup:null}},r.getDerivedStateFromProps=function(e,t){return e.in&&"unmounted"===t.status?{status:"exited"}:null},i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?"entering"!==n&&"entered"!==n&&(t="entering"):"entering"!==n&&"entered"!==n||(t="exiting")}this.updateStatus(!1,t)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},i.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var n=c.default.findDOMNode(this);"entering"===t?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},i.performEnter=function(e,t){var n=this,r=this.props.enter,o=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,c=this.getTimeouts(),i=o?c.appear:c.enter;t||r?(this.props.onEnter(e,o),this.safeSetState({status:"entering"},(function(){n.props.onEntering(e,o),n.onTransitionEnd(e,i,(function(){n.safeSetState({status:"entered"},(function(){n.props.onEntered(e,o)}))}))}))):this.safeSetState({status:"entered"},(function(){n.props.onEntered(e)}))},i.performExit=function(e){var t=this,n=this.props.exit,r=this.getTimeouts();n?(this.props.onExit(e),this.safeSetState({status:"exiting"},(function(){t.props.onExiting(e),t.onTransitionEnd(e,r.exit,(function(){t.safeSetState({status:"exited"},(function(){t.props.onExited(e)}))}))}))):this.safeSetState({status:"exited"},(function(){t.props.onExited(e)}))},i.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},i.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},i.onTransitionEnd=function(e,t,n){this.setNextCallback(n);var r=null==t&&!this.props.addEndListener;e&&!r?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},i.render=function(){var e=this.state.status;if("unmounted"===e)return null;var t=this.props,n=t.children,r=function(e,t){if(null==e)return{};var n,r,o={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"==typeof n)return n(e,r);var c=o.default.Children.only(n);return o.default.cloneElement(c,r)},r}(o.default.Component);function s(){}l.contextTypes={transitionGroup:r.object},l.childContextTypes={transitionGroup:function(){}},l.propTypes={},l.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:s,onEntering:s,onEntered:s,onExit:s,onExiting:s,onExited:s},l.UNMOUNTED=0,l.EXITED=1,l.ENTERING=2,l.ENTERED=3,l.EXITING=4;var u=(0,i.polyfill)(l);t.default=u},function(e,t,n){"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function o(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function c(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function i(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,i=null,a=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?i="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(i="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?a="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(a="UNSAFE_componentWillUpdate"),null!==n||null!==i||null!==a){var l=e.displayName||e.name,s="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+l+" uses "+s+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==i?"\n "+i:"")+(null!==a?"\n "+a:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=o),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=c;var u=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;u.call(this,e,t,r)}}return e}n.r(t),n.d(t,"polyfill",(function(){return i})),r.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,c.__suppressDeprecationWarning=!0},function(e,t,n){"use strict";t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0;var r;(r=n(28))&&r.__esModule;t.timeoutsShape=null;t.classNamesShape=null},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=a(n(28)),o=a(n(13)),c=n(211),i=n(313);function a(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var u=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},d=function(e){var t,n;function r(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(s(s(r)));return r.state={handleExited:o,firstRender:!0},r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var c=r.prototype;return c.getChildContext=function(){return{transitionGroup:{isMounting:!this.appeared}}},c.componentDidMount=function(){this.appeared=!0,this.mounted=!0},c.componentWillUnmount=function(){this.mounted=!1},r.getDerivedStateFromProps=function(e,t){var n=t.children,r=t.handleExited;return{children:t.firstRender?(0,i.getInitialChildMapping)(e,r):(0,i.getNextChildMapping)(e,n,r),firstRender:!1}},c.handleExited=function(e,t){var n=(0,i.getChildMapping)(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=l({},t.children);return delete n[e.key],{children:n}})))},c.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=function(e,t){if(null==e)return{};var n,r,o={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["component","childFactory"]),c=u(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?c:o.default.createElement(t,r,c)},r}(o.default.Component);d.childContextTypes={transitionGroup:r.default.object.isRequired},d.propTypes={},d.defaultProps={component:"div",childFactory:function(e){return e}};var b=(0,c.polyfill)(d);t.default=b,e.exports=t.default},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));t.a=c},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));t.a=c},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(o.Path,{d:"M16 4h2v9H7v3l-5-4 5-4v3h9V4z"}));t.a=c},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"}));t.a=c},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M20.1 5.1L16.9 2 6.2 12.7l-1.3 4.4 4.5-1.3L20.1 5.1zM4 20.8h8v-1.5H4v1.5z"}));t.a=c},,,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)}}}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l}));var r=n(12),o=n(0),c=n(174),i=n(2),a=(n(90),n(133));function l(e){var t=e.children,n=e.className;return Object(o.createElement)(a.a.Slot,{__experimentalIsExpanded:!0},(function(e){return Object(o.createElement)(s,{className:n,fills:e},t)}))}function s(t){var n=t.fills,a=t.className,l=void 0===a?"":a,s=t.children,u=Object(o.useRef)(),d=Object(o.useRef)(),b=Object(o.useRef)(),f=Object(o.useState)({}),p=Object(r.a)(f,2),m=p[0],v=p[1],O=Object(o.useRef)();O.current=n;var g=Object(o.useCallback)(Object(i.throttle)((function(){var e=O.current.length?d.current:b.current;if(e){e.style.position="absolute",e.style.width="auto";var t,n=(t=e).ownerDocument.defaultView.getComputedStyle(t);v({width:n.getPropertyValue("width"),height:n.getPropertyValue("height")}),e.style.position="",e.style.width=""}}),100),[]);Object(o.useEffect)((function(){var e=new window.MutationObserver((function(e){e.find((function(e){return"childList"===e.type}))&&g()}));return e.observe(u.current,{childList:!0,subtree:!0}),function(){return e.disconnect()}}),[]),Object(o.useEffect)((function(){n.length>1&&void 0!==e&&e.env}),[n.length]);var h=n[0];return Object(o.createElement)("div",{className:"block-editor-block-toolbar-animated-width-container",ref:u,style:m},Object(o.createElement)(c.TransitionGroup,null,h?Object(o.createElement)(c.CSSTransition,{key:"fills",timeout:300,classNames:"block-editor-block-toolbar-content"},Object(o.createElement)("div",{className:l,ref:d},h)):Object(o.createElement)(c.CSSTransition,{key:"default",timeout:300,classNames:"block-editor-block-toolbar-content"},Object(o.createElement)("div",{className:l,ref:b},s))))}}).call(this,n(102))},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.diffChars=function(e,t,n){return o.diff(e,t,n)},t.characterDiff=void 0;var o=new(((r=n(317))&&r.__esModule?r:{default:r}).default);t.characterDiff=o},function(e,t,n){"use strict";t.match=function(e,t){return l(e).some((function(e){var n=e.inverse,r="all"===e.type||t.type===e.type;if(r&&n||!r&&!n)return!1;var o=e.expressions.every((function(e){var n=e.feature,r=e.modifier,o=e.value,c=t[n];if(!c)return!1;switch(n){case"orientation":case"scan":return c.toLowerCase()===o.toLowerCase();case"width":case"height":case"device-width":case"device-height":o=d(o),c=d(c);break;case"resolution":o=u(o),c=u(c);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":o=s(o),c=s(c);break;case"grid":case"color":case"color-index":case"monochrome":o=parseInt(o,10)||1,c=parseInt(c,10)||0}switch(r){case"min":return c>=o;case"max":return c<=o;default:return c===o}}));return o&&!n||!o&&n}))},t.parse=l;var r=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,o=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,c=/^(?:(min|max)-)?(.+)/,i=/(em|rem|px|cm|mm|in|pt|pc)?$/,a=/(dpi|dpcm|dppx)?$/;function l(e){return e.split(",").map((function(e){var t=(e=e.trim()).match(r),n=t[1],i=t[2],a=t[3]||"",l={};return l.inverse=!!n&&"not"===n.toLowerCase(),l.type=i?i.toLowerCase():"all",a=a.match(/\([^\)]+\)/g)||[],l.expressions=a.map((function(e){var t=e.match(o),n=t[1].toLowerCase().match(c);return{modifier:n[1],feature:n[2],value:t[2]}})),l}))}function s(e){var t,n=Number(e);return n||(n=(t=e.match(/^(\d+)\s*\/\s*(\d+)$/))[1]/t[2]),n}function u(e){var t=parseFloat(e);switch(String(e).match(a)[1]){case"dpcm":return t/2.54;case"dppx":return 96*t;default:return t}}function d(e){var t=parseFloat(e);switch(String(e).match(i)[1]){case"em":case"rem":return 16*t;case"cm":return 96*t/2.54;case"mm":return 96*t/2.54/10;case"in":return 96*t;case"pt":return 72*t;case"pc":return 72*t/12;default:return t}}},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 b=n?c(d):d,f={},p=!0,m={node:b,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){m.isRoot||(m.parent.node[m.key]=e),m.node=e,t&&(p=!1)},delete:function(e){delete m.parent.node[m.key],e&&(p=!1)},remove:function(e){l(m.parent.node)?m.parent.node.splice(m.key,1):delete m.parent.node[m.key],e&&(p=!1)},keys:null,before:function(e){f.before=e},after:function(e){f.after=e},pre:function(e){f.pre=e},post:function(e){f.post=e},stop:function(){a=!1},block:function(){p=!1}};if(!a)return m;function v(){if("object"==typeof m.node&&null!==m.node){m.keys&&m.node_===m.node||(m.keys=i(m.node)),m.isLeaf=0==m.keys.length;for(var e=0;e<o.length;e++)if(o[e].node_===d){m.circular=o[e];break}}else m.isLeaf=!0,m.keys=null;m.notLeaf=!m.isLeaf,m.notRoot=!m.isRoot}v();var O=t.call(m,m.node);return void 0!==O&&m.update&&m.update(O),f.before&&f.before.call(m,m.node),p?("object"!=typeof m.node||null===m.node||m.circular||(o.push(m),v(),s(m.keys,(function(t,o){r.push(t),f.pre&&f.pre.call(m,m.node[t],t);var c=e(m.node[t]);n&&u.call(m.node,t)&&(m.node[t]=c.node),c.isLast=o==m.keys.length-1,c.isFirst=0==o,f.post&&f.post.call(m,c),r.pop()})),o.pop()),f.after&&f.after.call(m,m.node),m):m}(e).node}function c(e){if("object"==typeof e&&null!==e){var t;if(l(e))t=[];else if("[object Date]"===a(e))t=new Date(e.getTime?e.getTime():e);else if(function(e){return"[object RegExp]"===a(e)}(e))t=new RegExp(e);else if(function(e){return"[object Error]"===a(e)}(e))t={message:e.message};else if(function(e){return"[object Boolean]"===a(e)}(e))t=new Boolean(e);else if(function(e){return"[object Number]"===a(e)}(e))t=new Number(e);else if(function(e){return"[object String]"===a(e)}(e))t=new String(e);else if(Object.create&&Object.getPrototypeOf)t=Object.create(Object.getPrototypeOf(e));else if(e.constructor===Object)t={};else{var n=e.constructor&&e.constructor.prototype||e.__proto__||{},r=function(){};r.prototype=n,t=new r}return s(i(e),(function(n){t[n]=e[n]})),t}return e}r.prototype.get=function(e){for(var t=this.value,n=0;n<e.length;n++){var r=e[n];if(!t||!u.call(t,r)){t=void 0;break}t=t[r]}return t},r.prototype.has=function(e){for(var t=this.value,n=0;n<e.length;n++){var r=e[n];if(!t||!u.call(t,r))return!1;t=t[r]}return!0},r.prototype.set=function(e,t){for(var n=this.value,r=0;r<e.length-1;r++){var o=e[r];u.call(n,o)||(n[o]={}),n=n[o]}return n[e[r]]=t,t},r.prototype.map=function(e){return o(this.value,e,!0)},r.prototype.forEach=function(e){return this.value=o(this.value,e,!1),this.value},r.prototype.reduce=function(e,t){var n=1===arguments.length,r=n?this.value:t;return this.forEach((function(t){this.isRoot&&n||(r=e.call(this,r,t))})),r},r.prototype.paths=function(){var e=[];return this.forEach((function(t){e.push(this.path)})),e},r.prototype.nodes=function(){var e=[];return this.forEach((function(t){e.push(this.node)})),e},r.prototype.clone=function(){var e=[],t=[];return function n(r){for(var o=0;o<e.length;o++)if(e[o]===r)return t[o];if("object"==typeof r&&null!==r){var a=c(r);return e.push(r),t.push(a),s(i(r),(function(e){a[e]=n(r[e])})),e.pop(),t.pop(),a}return r}(this.value)};var i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};function a(e){return Object.prototype.toString.call(e)}var l=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},s=function(e,t){if(e.forEach)return e.forEach(t);for(var n=0;n<e.length;n++)t(e[n],n,e)};s(i(r.prototype),(function(e){n[e]=function(t){var n=[].slice.call(arguments,1),o=new r(t);return o[e].apply(o,n)}}));var u=Object.hasOwnProperty||function(e,t){return t in e}},,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M4 19.8h8.9v-1.5H4v1.5zm8.9-15.6H4v1.5h8.9V4.2zm-8.9 7v1.5h16v-1.5H4z"}));t.a=c},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M16.4 4.2H7.6v1.5h8.9V4.2zM4 11.2v1.5h16v-1.5H4zm3.6 8.6h8.9v-1.5H7.6v1.5z"}));t.a=c},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M11.1 19.8H20v-1.5h-8.9v1.5zm0-15.6v1.5H20V4.2h-8.9zM4 12.8h16v-1.5H4v1.5z"}));t.a=c},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"}));t.a=c},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;!function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}t.default=e}(n(28));var r=a(n(308)),o=a(n(311)),c=a(n(13)),i=a(n(210));n(212);function a(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var s=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return(0,r.default)(e,t)}))},u=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return(0,o.default)(e,t)}))},d=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).onEnter=function(e,n){var r=t.getClassNames(n?"appear":"enter").className;t.removeClasses(e,"exit"),s(e,r),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.getClassNames(n?"appear":"enter").activeClassName;t.reflowAndAddClass(e,r),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.getClassNames("appear").doneClassName,o=t.getClassNames("enter").doneClassName,c=n?r+" "+o:o;t.removeClasses(e,n?"appear":"enter"),s(e,c),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.getClassNames("exit").className;t.removeClasses(e,"appear"),t.removeClasses(e,"enter"),s(e,n),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.getClassNames("exit").activeClassName;t.reflowAndAddClass(e,n),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.getClassNames("exit").doneClassName;t.removeClasses(e,"exit"),s(e,n),t.props.onExited&&t.props.onExited(e)},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,o=r?(r&&n?n+"-":"")+e:n[e];return{className:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.removeClasses=function(e,t){var n=this.getClassNames(t),r=n.className,o=n.activeClassName,c=n.doneClassName;r&&u(e,r),o&&u(e,o),c&&u(e,c)},o.reflowAndAddClass=function(e,t){t&&(e&&e.scrollTop,s(e,t))},o.render=function(){var e=l({},this.props);return delete e.classNames,c.default.createElement(i.default,l({},e,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},r}(c.default.Component);d.defaultProps={classNames:""},d.propTypes={};var b=d;t.default=b,e.exports=t.default},function(e,t,n){"use strict";var r=n(309);t.__esModule=!0,t.default=function(e,t){e.classList?e.classList.add(t):(0,o.default)(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))};var o=r(n(310));e.exports=t.default},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")},e.exports=t.default},function(e,t,n){"use strict";function r(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e.exports=function(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=r(e.className,t):e.setAttribute("class",r(e.className&&e.className.baseVal||"",t))}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;i(n(28));var r=i(n(13)),o=n(109),c=i(n(213));function i(e){return e&&e.__esModule?e:{default:e}}var a=function(e){var t,n;function i(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=i.prototype;return a.handleLifecycle=function(e,t,n){var c,i=this.props.children,a=r.default.Children.toArray(i)[t];a.props[e]&&(c=a.props)[e].apply(c,n),this.props[e]&&this.props[e]((0,o.findDOMNode)(this))},a.render=function(){var e=this.props,t=e.children,n=e.in,o=function(e,t){if(null==e)return{};var n,r,o={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["children","in"]),i=r.default.Children.toArray(t),a=i[0],l=i[1];return delete o.onEnter,delete o.onEntering,delete o.onEntered,delete o.onExit,delete o.onExiting,delete o.onExited,r.default.createElement(c.default,o,n?r.default.cloneElement(a,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):r.default.cloneElement(l,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},i}(r.default.Component);a.propTypes={};var l=a;t.default=l,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.getChildMapping=o,t.mergeChildMappings=c,t.getInitialChildMapping=function(e,t){return o(e.children,(function(n){return(0,r.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:i(n,"appear",e),enter:i(n,"enter",e),exit:i(n,"exit",e)})}))},t.getNextChildMapping=function(e,t,n){var a=o(e.children),l=c(t,a);return Object.keys(l).forEach((function(o){var c=l[o];if((0,r.isValidElement)(c)){var s=o in t,u=o in a,d=t[o],b=(0,r.isValidElement)(d)&&!d.props.in;!u||s&&!b?u||!s||b?u&&s&&(0,r.isValidElement)(d)&&(l[o]=(0,r.cloneElement)(c,{onExited:n.bind(null,c),in:d.props.in,exit:i(c,"exit",e),enter:i(c,"enter",e)})):l[o]=(0,r.cloneElement)(c,{in:!1}):l[o]=(0,r.cloneElement)(c,{onExited:n.bind(null,c),in:!0,exit:i(c,"exit",e),enter:i(c,"enter",e)})}})),l};var r=n(13);function o(e,t){var n=Object.create(null);return e&&r.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,r.isValidElement)(e)?t(e):e}(e)})),n}function c(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),c=[];for(var i in e)i in t?c.length&&(o[i]=c,c=[]):c.push(i);var a={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var s=o[l][r];a[o[l][r]]=n(s)}a[l]=n(l)}for(r=0;r<c.length;r++)a[c[r]]=n(c[r]);return a}function i(e,t,n){return null!=n[t]?n[t]:e.props[t]}},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"}));t.a=c},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));t.a=c},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));t.a=c},function(e,t,n){"use strict";function r(){}function o(e,t,n,r,o){for(var c=0,i=t.length,a=0,l=0;c<i;c++){var s=t[c];if(s.removed){if(s.value=e.join(r.slice(l,l+s.count)),l+=s.count,c&&t[c-1].added){var u=t[c-1];t[c-1]=t[c],t[c]=u}}else{if(!s.added&&o){var d=n.slice(a,a+s.count);d=d.map((function(e,t){var n=r[l+t];return n.length>e.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 b=t[i-1];return i>1&&"string"==typeof b.value&&(b.added||b.removed)&&e.equals("",b.value)&&(t[i-2].value+=b.value,t.pop()),t}function c(e){return{newPos:e.newPos,components:e.components.slice(0)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,r.prototype={diff:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.callback;"function"==typeof n&&(r=n,n={}),this.options=n;var i=this;function a(e){return r?(setTimeout((function(){r(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,b=[{newPos:-1,components:[]}],f=this.extractCommon(b[0],t,e,0);if(b[0].newPos+1>=l&&f+1>=s)return a([{value:this.join(t),count:t.length}]);function p(){for(var n=-1*u;n<=u;n+=2){var r=void 0,d=b[n-1],f=b[n+1],p=(f?f.newPos:0)-n;d&&(b[n-1]=void 0);var m=d&&d.newPos+1<l,v=f&&0<=p&&p<s;if(m||v){if(!m||v&&d.newPos<f.newPos?(r=c(f),i.pushComponent(r.components,void 0,!0)):((r=d).newPos++,i.pushComponent(r.components,!0,void 0)),p=i.extractCommon(r,t,e,n),r.newPos+1>=l&&p+1>=s)return a(o(i,r.components,t,e,i.useLongestToken));b[n]=r}else b[n]=void 0}u++}if(r)!function e(){setTimeout((function(){if(u>d)return r();p()||e()}),0)}();else for(;u<=d;){var m=p();if(m)return m}},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,c=n.length,i=e.newPos,a=i-r,l=0;i+1<o&&a+1<c&&this.equals(t[i+1],n[a+1]);)i++,a++,l++;return l&&e.components.push({count:l}),e.newPos=i,a},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}}},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(o.Path,{d:"M2 2h5v11H2V2zm6 0h5v5H8V2zm6 0h4v16h-4V2zM8 8h5v5H8V8zm-6 6h11v4H2v-4z"}));t.a=c},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h13.4c.4 0 .8.4.8.8v13.4zM10 15l5-3-5-3v6z"}));t.a=c},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t),n.d(t,"__experimentalAlignmentHookSettingsProvider",(function(){return F})),n.d(t,"getColorClassName",(function(){return se})),n.d(t,"getColorObjectByAttributeValues",(function(){return ae})),n.d(t,"getColorObjectByColorValue",(function(){return le})),n.d(t,"createCustomColorsHOC",(function(){return nn})),n.d(t,"withColors",(function(){return rn})),n.d(t,"__experimentalUseColors",(function(){return jn})),n.d(t,"__experimentalGetGradientClass",(function(){return fe})),n.d(t,"getGradientValueBySlug",(function(){return pe})),n.d(t,"__experimentalGetGradientObjectByGradientValue",(function(){return me})),n.d(t,"getGradientSlugByValue",(function(){return ve})),n.d(t,"__experimentalUseGradient",(function(){return Oe})),n.d(t,"getFontSize",(function(){return Ot})),n.d(t,"getFontSizeClass",(function(){return ht})),n.d(t,"getFontSizeObjectByValue",(function(){return gt})),n.d(t,"FontSizePicker",(function(){return jt})),n.d(t,"withFontSizes",(function(){return Cn})),n.d(t,"AlignmentToolbar",(function(){return Nn})),n.d(t,"Autocomplete",(function(){return Xn})),n.d(t,"BlockAlignmentToolbar",(function(){return T})),n.d(t,"__experimentalBlockAlignmentMatrixToolbar",(function(){return Qn})),n.d(t,"BlockBreadcrumb",(function(){return Jn})),n.d(t,"BlockContextProvider",(function(){return rr})),n.d(t,"BlockControls",(function(){return O.a})),n.d(t,"BlockColorsStyleSelector",(function(){return ar})),n.d(t,"BlockEdit",(function(){return ur})),n.d(t,"useBlockEditContext",(function(){return z.b})),n.d(t,"BlockFormatControls",(function(){return mr})),n.d(t,"BlockIcon",(function(){return qn})),n.d(t,"BlockNavigationDropdown",(function(){return Qu})),n.d(t,"__experimentalBlockNavigationBlockFill",(function(){return Au})),n.d(t,"__experimentalBlockNavigationEditor",(function(){return bd})),n.d(t,"__experimentalBlockNavigationTree",(function(){return qu})),n.d(t,"__experimentalBlockVariationPicker",(function(){return pd})),n.d(t,"BlockVerticalAlignmentToolbar",(function(){return yd})),n.d(t,"ButtonBlockerAppender",(function(){return Ya})),n.d(t,"ColorPalette",(function(){return wd})),n.d(t,"ColorPaletteControl",(function(){return Sd})),n.d(t,"ContrastChecker",(function(){return Ve})),n.d(t,"__experimentalGradientPicker",(function(){return xd})),n.d(t,"__experimentalGradientPickerControl",(function(){return Pd})),n.d(t,"__experimentalGradientPickerPanel",(function(){return Td})),n.d(t,"__experimentalColorGradientControl",(function(){return Ie})),n.d(t,"__experimentalPanelColorGradientSettings",(function(){return Me})),n.d(t,"__experimentalImageSizeControl",(function(){return Dd})),n.d(t,"InnerBlocks",(function(){return qd})),n.d(t,"__experimentalUseInnerBlocksProps",(function(){return Kd})),n.d(t,"InspectorAdvancedControls",(function(){return q})),n.d(t,"InspectorControls",(function(){return Ke})),n.d(t,"__experimentalLinkControl",(function(){return Sb})),n.d(t,"__experimentalLinkControlSearchInput",(function(){return jb})),n.d(t,"__experimentalLinkControlSearchResults",(function(){return sb})),n.d(t,"__experimentalLinkControlSearchItem",(function(){return lb})),n.d(t,"LineHeightControl",(function(){return ut})),n.d(t,"MediaReplaceFlow",(function(){return Tb})),n.d(t,"MediaPlaceholder",(function(){return Lb})),n.d(t,"MediaUpload",(function(){return xb})),n.d(t,"MediaUploadCheck",(function(){return Pb})),n.d(t,"PanelColorSettings",(function(){return sn})),n.d(t,"PlainText",(function(){return Hb})),n.d(t,"__experimentalResponsiveBlockControl",(function(){return Ub})),n.d(t,"RichText",(function(){return dd})),n.d(t,"RichTextShortcut",(function(){return Gb})),n.d(t,"RichTextToolbarButton",(function(){return Wb})),n.d(t,"__unstableRichTextInputEvent",(function(){return qb})),n.d(t,"ToolSelector",(function(){return Yb})),n.d(t,"__experimentalUnitControl",(function(){return xt})),n.d(t,"URLInput",(function(){return ob})),n.d(t,"URLInputButton",(function(){return Jb})),n.d(t,"URLPopover",(function(){return Ab})),n.d(t,"__experimentalImageURLInputUI",(function(){return rf})),n.d(t,"withColorContext",(function(){return Cd})),n.d(t,"__experimentalBlockSettingsMenuFirstItem",(function(){return Gs})),n.d(t,"__experimentalInserterMenuExtension",(function(){return Sl})),n.d(t,"__experimentalPreviewOptions",(function(){return cf})),n.d(t,"__experimentalUseResizeCanvas",(function(){return ff})),n.d(t,"BlockInspector",(function(){return hf})),n.d(t,"BlockList",(function(){return dl})),n.d(t,"__experimentalBlock",(function(){return yu})),n.d(t,"useBlockProps",(function(){return ju})),n.d(t,"BlockMover",(function(){return hs})),n.d(t,"BlockPreview",(function(){return pl})),n.d(t,"BlockSelectionClearer",(function(){return jf})),n.d(t,"BlockSettingsMenu",(function(){return Js})),n.d(t,"BlockSettingsMenuControls",(function(){return Xs})),n.d(t,"BlockTitle",(function(){return Zn})),n.d(t,"BlockToolbar",(function(){return cu})),n.d(t,"CopyHandler",(function(){return Ms})),n.d(t,"DefaultBlockAppender",(function(){return $a})),n.d(t,"__unstableEditorStyles",(function(){return Wf})),n.d(t,"Inserter",(function(){return os})),n.d(t,"__experimentalLibrary",(function(){return Kf})),n.d(t,"__experimentalSearchForm",(function(){return bo})),n.d(t,"BlockEditorKeyboardShortcuts",(function(){return $f})),n.d(t,"MultiSelectScrollIntoView",(function(){return Yf})),n.d(t,"NavigableToolbar",(function(){return ms})),n.d(t,"ObserveTyping",(function(){return Qf})),n.d(t,"PreserveScrollInReorder",(function(){return Zf})),n.d(t,"SkipToSelectedBlock",(function(){return pf})),n.d(t,"Typewriter",(function(){return rp})),n.d(t,"Warning",(function(){return Hr})),n.d(t,"WritingFlow",(function(){return ss})),n.d(t,"BlockEditorProvider",(function(){return Ka})),n.d(t,"__experimentalUseSimulatedMediaQuery",(function(){return bf})),n.d(t,"__experimentalUseEditorFeature",(function(){return de})),n.d(t,"transformStyles",(function(){return Gf})),n.d(t,"validateThemeColors",(function(){return op})),n.d(t,"validateThemeGradients",(function(){return cp})),n.d(t,"storeConfig",(function(){return Ua})),n.d(t,"SETTINGS_DEFAULTS",(function(){return mo}));var r={};n.r(r),n.d(r,"resetBlocks",(function(){return tc})),n.d(r,"resetSelection",(function(){return nc})),n.d(r,"receiveBlocks",(function(){return rc})),n.d(r,"updateBlockAttributes",(function(){return oc})),n.d(r,"updateBlock",(function(){return cc})),n.d(r,"selectBlock",(function(){return ic})),n.d(r,"selectPreviousBlock",(function(){return ac})),n.d(r,"selectNextBlock",(function(){return lc})),n.d(r,"startMultiSelect",(function(){return sc})),n.d(r,"stopMultiSelect",(function(){return uc})),n.d(r,"multiSelect",(function(){return dc})),n.d(r,"clearSelectedBlock",(function(){return bc})),n.d(r,"toggleSelection",(function(){return fc})),n.d(r,"replaceBlocks",(function(){return mc})),n.d(r,"replaceBlock",(function(){return vc})),n.d(r,"moveBlocksDown",(function(){return gc})),n.d(r,"moveBlocksUp",(function(){return hc})),n.d(r,"moveBlocksToPosition",(function(){return jc})),n.d(r,"moveBlockToPosition",(function(){return kc})),n.d(r,"insertBlock",(function(){return yc})),n.d(r,"insertBlocks",(function(){return _c})),n.d(r,"showInsertionPoint",(function(){return Ec})),n.d(r,"hideInsertionPoint",(function(){return Cc})),n.d(r,"setTemplateValidity",(function(){return wc})),n.d(r,"synchronizeTemplate",(function(){return Sc})),n.d(r,"mergeBlocks",(function(){return Ic})),n.d(r,"removeBlocks",(function(){return Bc})),n.d(r,"removeBlock",(function(){return xc})),n.d(r,"replaceInnerBlocks",(function(){return Pc})),n.d(r,"toggleBlockMode",(function(){return Tc})),n.d(r,"startTyping",(function(){return Nc})),n.d(r,"stopTyping",(function(){return Dc})),n.d(r,"startDraggingBlocks",(function(){return Rc})),n.d(r,"stopDraggingBlocks",(function(){return Ac})),n.d(r,"enterFormattedText",(function(){return Mc})),n.d(r,"exitFormattedText",(function(){return Lc})),n.d(r,"selectionChange",(function(){return Fc})),n.d(r,"insertDefaultBlock",(function(){return Vc})),n.d(r,"updateBlockListSettings",(function(){return Hc})),n.d(r,"updateSettings",(function(){return zc})),n.d(r,"__unstableSaveReusableBlock",(function(){return Uc})),n.d(r,"__unstableMarkLastChangeAsPersistent",(function(){return Gc})),n.d(r,"__unstableMarkNextChangeAsNotPersistent",(function(){return Wc})),n.d(r,"__unstableMarkAutomaticChange",(function(){return Kc})),n.d(r,"setNavigationMode",(function(){return qc})),n.d(r,"setBlockMovingClientId",(function(){return $c})),n.d(r,"duplicateBlocks",(function(){return Yc})),n.d(r,"insertBeforeBlock",(function(){return Xc})),n.d(r,"insertAfterBlock",(function(){return Qc})),n.d(r,"toggleBlockHighlight",(function(){return Zc})),n.d(r,"flashBlock",(function(){return Jc})),n.d(r,"setHasControlledInnerBlocks",(function(){return ei}));var o={};n.r(o),n.d(o,"getBlockName",(function(){return li})),n.d(o,"isBlockValid",(function(){return si})),n.d(o,"getBlockAttributes",(function(){return ui})),n.d(o,"getBlock",(function(){return di})),n.d(o,"__unstableGetBlockWithoutInnerBlocks",(function(){return bi})),n.d(o,"getBlocks",(function(){return fi})),n.d(o,"__unstableGetBlockWithBlockTree",(function(){return pi})),n.d(o,"__unstableGetBlockTree",(function(){return mi})),n.d(o,"getClientIdsOfDescendants",(function(){return vi})),n.d(o,"getClientIdsWithDescendants",(function(){return Oi})),n.d(o,"getGlobalBlockCount",(function(){return gi})),n.d(o,"getBlocksByClientId",(function(){return hi})),n.d(o,"getBlockCount",(function(){return ji})),n.d(o,"getSelectionStart",(function(){return ki})),n.d(o,"getSelectionEnd",(function(){return yi})),n.d(o,"getBlockSelectionStart",(function(){return _i})),n.d(o,"getBlockSelectionEnd",(function(){return Ei})),n.d(o,"getSelectedBlockCount",(function(){return Ci})),n.d(o,"hasSelectedBlock",(function(){return wi})),n.d(o,"getSelectedBlockClientId",(function(){return Si})),n.d(o,"getSelectedBlock",(function(){return Ii})),n.d(o,"getBlockRootClientId",(function(){return Bi})),n.d(o,"getBlockParents",(function(){return xi})),n.d(o,"getBlockParentsByBlockName",(function(){return Pi})),n.d(o,"getBlockHierarchyRootClientId",(function(){return Ti})),n.d(o,"getLowestCommonAncestorWithSelectedBlock",(function(){return Ni})),n.d(o,"getAdjacentBlockClientId",(function(){return Di})),n.d(o,"getPreviousBlockClientId",(function(){return Ri})),n.d(o,"getNextBlockClientId",(function(){return Ai})),n.d(o,"getSelectedBlocksInitialCaretPosition",(function(){return Mi})),n.d(o,"getSelectedBlockClientIds",(function(){return Li})),n.d(o,"getMultiSelectedBlockClientIds",(function(){return Fi})),n.d(o,"getMultiSelectedBlocks",(function(){return Vi})),n.d(o,"getFirstMultiSelectedBlockClientId",(function(){return Hi})),n.d(o,"getLastMultiSelectedBlockClientId",(function(){return zi})),n.d(o,"isFirstMultiSelectedBlock",(function(){return Ui})),n.d(o,"isBlockMultiSelected",(function(){return Gi})),n.d(o,"isAncestorMultiSelected",(function(){return Wi})),n.d(o,"getMultiSelectedBlocksStartClientId",(function(){return Ki})),n.d(o,"getMultiSelectedBlocksEndClientId",(function(){return qi})),n.d(o,"getBlockOrder",(function(){return $i})),n.d(o,"getBlockIndex",(function(){return Yi})),n.d(o,"isBlockSelected",(function(){return Xi})),n.d(o,"hasSelectedInnerBlock",(function(){return Qi})),n.d(o,"isBlockWithinSelection",(function(){return Zi})),n.d(o,"hasMultiSelection",(function(){return Ji})),n.d(o,"isMultiSelecting",(function(){return ea})),n.d(o,"isSelectionEnabled",(function(){return ta})),n.d(o,"getBlockMode",(function(){return na})),n.d(o,"isTyping",(function(){return ra})),n.d(o,"isDraggingBlocks",(function(){return oa})),n.d(o,"getDraggedBlockClientIds",(function(){return ca})),n.d(o,"isBlockBeingDragged",(function(){return ia})),n.d(o,"isAncestorBeingDragged",(function(){return aa})),n.d(o,"isCaretWithinFormattedText",(function(){return la})),n.d(o,"getBlockInsertionPoint",(function(){return sa})),n.d(o,"isBlockInsertionPointVisible",(function(){return ua})),n.d(o,"isValidTemplate",(function(){return da})),n.d(o,"getTemplate",(function(){return ba})),n.d(o,"getTemplateLock",(function(){return fa})),n.d(o,"canInsertBlockType",(function(){return ma})),n.d(o,"canInsertBlocks",(function(){return va})),n.d(o,"getInserterItems",(function(){return ja})),n.d(o,"hasInserterItems",(function(){return ka})),n.d(o,"__experimentalGetAllowedBlocks",(function(){return ya})),n.d(o,"getBlockListSettings",(function(){return _a})),n.d(o,"getSettings",(function(){return Ea})),n.d(o,"isLastBlockChangePersistent",(function(){return Ca})),n.d(o,"__experimentalGetBlockListSettingsForBlocks",(function(){return wa})),n.d(o,"__experimentalGetParsedReusableBlock",(function(){return Sa})),n.d(o,"__unstableIsLastBlockChangeIgnored",(function(){return Ia})),n.d(o,"__experimentalGetLastBlockAttributeChanges",(function(){return Ba})),n.d(o,"isNavigationMode",(function(){return Pa})),n.d(o,"hasBlockMovingClientId",(function(){return Ta})),n.d(o,"didAutomaticChange",(function(){return Na})),n.d(o,"isBlockHighlighted",(function(){return Da})),n.d(o,"areInnerBlocksControlled",(function(){return Ra})),n.d(o,"__experimentalGetActiveBlockIdByBlockNames",(function(){return Aa}));var c=n(11),i=n(25),a=(n(101),n(53)),l=(n(92),n(8)),s=n(5),u=n(0),d=n(9),b=n.n(d),f=n(2),p=n(10),m=n(33),v=n(4),O=n(133),g=n(1),h=n(3),j=n(7),k=Object(u.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(j.Path,{d:"M4 9v6h14V9H4zm8-4.8H4v1.5h8V4.2zM4 19.8h8v-1.5H4v1.5z"})),y=Object(u.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(j.Path,{d:"M5 15h14V9H5v6zm0 4.8h14v-1.5H5v1.5zM5 4.2v1.5h14V4.2H5z"})),_=Object(u.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(j.Path,{d:"M6 15h14V9H6v6zm6-10.8v1.5h8V4.2h-8zm0 15.6h8v-1.5h-8v1.5z"})),E=Object(u.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(j.Path,{d:"M5 9v6h14V9H5zm11-4.8H8v1.5h8V4.2zM8 19.8h8v-1.5H8v1.5z"})),C=Object(u.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(j.Path,{d:"M5 4v11h14V4H5zm3 15.8h8v-1.5H8v1.5z"}));function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var I={left:{icon:k,title:Object(g.__)("Align left")},center:{icon:y,title:Object(g.__)("Align center")},right:{icon:_,title:Object(g.__)("Align right")},wide:{icon:E,title:Object(g.__)("Wide width")},full:{icon:C,title:Object(g.__)("Full width")}},B=["left","center","right","wide","full"],x=["wide","full"],P={isAlternate:!0};var T=Object(p.compose)(Object(v.withSelect)((function(e){return{wideControlsEnabled:(0,e("core/block-editor").getSettings)().alignWide}})))((function(e){var t=e.value,n=e.onChange,r=e.controls,o=void 0===r?B:r,c=e.isCollapsed,i=void 0===c||c,a=e.wideControlsEnabled,l=void 0!==a&&a?o:o.filter((function(e){return-1===x.indexOf(e)})),s=I[t],d=I.center;return Object(u.createElement)(h.ToolbarGroup,{popoverProps:P,isCollapsed:i,icon:s?s.icon:d.icon,label:Object(g.__)("Change alignment"),controls:l.map((function(e){return S(S({},I[e]),{},{isActive:t===e,role:i?"menuitemradio":void 0,onClick:(r=e,function(){return n(t===r?void 0:r)})});var r}))})}));function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?N(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var R=["left","center","right","wide","full"],A=["wide","full"];function M(e){var t,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t=Array.isArray(e)?e:!0===e?R:[],!r||!0===e&&!n?f.without.apply(void 0,[t].concat(A)):t}var L=Object(u.createContext)({}),F=L.Provider,V=Object(p.createHigherOrderComponent)((function(e){return function(t){var n=Object(u.useContext)(L).isEmbedButton,r=t.name,o=n?[]:M(Object(c.getBlockSupport)(r,"align"),Object(c.hasBlockSupport)(r,"alignWide",!0));return[o.length>0&&t.isSelected&&Object(u.createElement)(O.a,{key:"align-controls"},Object(u.createElement)(T,{value:t.attributes.align,onChange:function(e){var n,r;e||(null===(n=Object(c.getBlockType)(t.name).attributes)||void 0===n||null===(r=n.align)||void 0===r?void 0:r.default)&&(e="");t.setAttributes({align:e})},controls:o})),Object(u.createElement)(e,Object(l.a)({key:"edit"},t))]}}),"withToolbarControls"),H=Object(p.createHigherOrderComponent)((function(e){return function(t){var n=t.name,r=t.attributes.align,o=Object(v.useSelect)((function(e){return!!e("core/block-editor").getSettings().alignWide}),[]);if(void 0===r)return Object(u.createElement)(e,t);var i=M(Object(c.getBlockSupport)(n,"align"),Object(c.hasBlockSupport)(n,"alignWide",!0),o),a=t.wrapperProps;return i.includes(r)&&(a=D(D({},a),{},{"data-align":r})),Object(u.createElement)(e,Object(l.a)({},t,{wrapperProps:a}))}}));Object(m.addFilter)("blocks.registerBlockType","core/align/addAttribute",(function(e){return Object(f.has)(e.attributes,["align","type"])||Object(c.hasBlockSupport)(e,"align")&&(e.attributes=D(D({},e.attributes),{},{align:{type:"string",enum:[].concat(R,[""])}})),e})),Object(m.addFilter)("editor.BlockListBlock","core/editor/align/with-data-align",H),Object(m.addFilter)("editor.BlockEdit","core/editor/align/with-toolbar-controls",V),Object(m.addFilter)("blocks.getSaveContent.extraProps","core/align/addAssignedAlign",(function(e,t,n){var r=n.align;return M(Object(c.getBlockSupport)(t,"align"),Object(c.hasBlockSupport)(t,"alignWide",!0)).includes(r)&&(e.className=b()("align".concat(r),e.className)),e}));var z=n(80),U=Object(h.createSlotFill)("InspectorAdvancedControls"),G=U.Fill,W=U.Slot;function K(e){var t=e.children;return Object(z.b)().isSelected?Object(u.createElement)(G,null,t):null}K.slotName="InspectorAdvancedControls",K.Slot=W;var q=K;function $(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var X=/[\s#]/g;var Q=Object(p.createHigherOrderComponent)((function(e){return function(t){return Object(c.hasBlockSupport)(t.name,"anchor")&&t.isSelected?Object(u.createElement)(u.Fragment,null,Object(u.createElement)(e,t),Object(u.createElement)(q,null,Object(u.createElement)(h.TextControl,{className:"html-anchor-control",label:Object(g.__)("HTML anchor"),help:Object(u.createElement)(u.Fragment,null,Object(g.__)("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)(h.ExternalLink,{href:"https://wordpress.org/support/article/page-jumps/"},Object(g.__)("Learn more about anchors"))),value:t.attributes.anchor||"",onChange:function(e){e=e.replace(X,"-"),t.setAttributes({anchor:e})},autoComplete:"off"}))):Object(u.createElement)(e,t)}}),"withInspectorControl");function Z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function J(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Object(m.addFilter)("blocks.registerBlockType","core/anchor/attribute",(function(e){return Object(f.has)(e.attributes,["anchor","type"])||Object(c.hasBlockSupport)(e,"anchor")&&(e.attributes=Y(Y({},e.attributes),{},{anchor:{type:"string",source:"attribute",attribute:"id",selector:"*"}})),e})),Object(m.addFilter)("editor.BlockEdit","core/editor/anchor/with-inspector-control",Q),Object(m.addFilter)("blocks.getSaveContent.extraProps","core/anchor/save-props",(function(e,t,n){return Object(c.hasBlockSupport)(t,"anchor")&&(e.id=""===n.anchor?null:n.anchor),e}));var ee=Object(p.createHigherOrderComponent)((function(e){return function(t){return Object(c.hasBlockSupport)(t.name,"customClassName",!0)&&t.isSelected?Object(u.createElement)(u.Fragment,null,Object(u.createElement)(e,t),Object(u.createElement)(q,null,Object(u.createElement)(h.TextControl,{autoComplete:"off",label:Object(g.__)("Additional CSS class(es)"),value:t.attributes.className||"",onChange:function(e){t.setAttributes({className:""!==e?e:void 0})},help:Object(g.__)("Separate multiple classes with spaces.")}))):Object(u.createElement)(e,t)}}),"withInspectorControl");function te(e){e="<div data-custom-class-name>".concat(e,"</div>");var t=Object(c.parseWithAttributeSchema)(e,{type:"string",source:"attribute",selector:"[data-custom-class-name] > *",attribute:"class"});return t?t.trim().split(/\s+/):[]}Object(m.addFilter)("blocks.registerBlockType","core/custom-class-name/attribute",(function(e){return Object(c.hasBlockSupport)(e,"customClassName",!0)&&(e.attributes=J(J({},e.attributes),{},{className:{type:"string"}})),e})),Object(m.addFilter)("editor.BlockEdit","core/editor/custom-class-name/with-inspector-control",ee),Object(m.addFilter)("blocks.getSaveContent.extraProps","core/custom-class-name/save-props",(function(e,t,n){return Object(c.hasBlockSupport)(t,"customClassName",!0)&&n.className&&(e.className=b()(e.className,n.className)),e})),Object(m.addFilter)("blocks.getBlockAttributes","core/custom-class-name/addParsedDifference",(function(e,t,n){if(Object(c.hasBlockSupport)(t,"customClassName",!0)){var r=Object(f.omit)(e,["className"]),o=Object(c.getSaveContent)(t,r),i=te(o),a=te(n),l=Object(f.difference)(a,i);l.length?e.className=l.join(" "):o&&delete e.className}return e}));var ne=n(17);Object(m.addFilter)("blocks.getSaveContent.extraProps","core/generated-class-name/save-props",(function(e,t){return Object(c.hasBlockSupport)(t,"className",!0)&&("string"==typeof e.className?e.className=Object(f.uniq)([Object(c.getBlockDefaultClassName)(t.name)].concat(Object(ne.a)(e.className.split(" ")))).join(" ").trim():e.className=Object(c.getBlockDefaultClassName)(t.name)),e}));var re=n(12),oe=n(149),ce=n(66),ie=n.n(ce),ae=function(e,t,n){if(t){var r=Object(f.find)(e,{slug:t});if(r)return r}return{color:n}},le=function(e,t){return Object(f.find)(e,{color:t})};function se(e,t){if(e&&t)return"has-".concat(Object(f.kebabCase)(t),"-").concat(e)}var ue={"color.palette":function(e){return void 0===e.colors?void 0:e.colors},"color.gradients":function(e){return void 0===e.gradients?void 0:e.gradients},"color.custom":function(e){return void 0===e.disableCustomColors?void 0:!e.disableCustomColors},"color.customGradient":function(e){return void 0===e.disableCustomGradients?void 0:!e.disableCustomGradients},"typography.fontSizes":function(e){return void 0===e.fontSizes?void 0:e.fontSizes},"typography.customFontSize":function(e){return void 0===e.disableCustomFontSizes?void 0:!e.disableCustomFontSizes},"typography.customLineHeight":function(e){return e.enableCustomLineHeight},"spacing.units":function(e){if(void 0!==e.enableCustomUnits)return!0===e.enableCustomUnits?["px","em","rem","vh","vw"]:e.enableCustomUnits}};function de(e){var t=Object(z.b)().name;return Object(v.useSelect)((function(n){var r,o=n("core/block-editor").getSettings(),c="__experimentalFeatures.global.".concat(e),i="__experimentalFeatures.".concat(t,".").concat(e),a=null!==(r=Object(f.get)(o,i))&&void 0!==r?r:Object(f.get)(o,c);if(void 0!==a)return a;var l=ue[e]?ue[e](o):void 0;return void 0!==l?l:"typography.dropCap"===e||void 0}),[t,e])}var be=[];function fe(e){if(e)return"has-".concat(e,"-gradient-background")}function pe(e,t){var n=Object(f.find)(e,["slug",t]);return n&&n.gradient}function me(e,t){return Object(f.find)(e,["gradient",t])}function ve(e,t){var n=me(e,t);return n&&n.slug}function Oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.gradientAttribute,n=void 0===t?"gradient":t,r=e.customGradientAttribute,o=void 0===r?"customGradient":r,c=Object(z.b)(),i=c.clientId,a=de("color.gradients")||be,l=Object(v.useSelect)((function(e){var t=(0,e("core/block-editor").getBlockAttributes)(i);return{customGradient:t[o],gradient:t[n]}}),[i,n,o]),d=l.gradient,b=l.customGradient,f=Object(v.useDispatch)("core/block-editor"),p=f.updateBlockAttributes,m=Object(u.useCallback)((function(e){var t,r,c=ve(a,e);c?p(i,(r={},Object(s.a)(r,n,c),Object(s.a)(r,o,void 0),r)):p(i,(t={},Object(s.a)(t,n,void 0),Object(s.a)(t,o,e),t))}),[a,i,p]),O=fe(d);return{gradientClass:O,gradientValue:d?pe(a,d):b,setGradient:m}}var ge=function e(t){if(!Object(f.isObject)(t))return t;var n=Object(f.pickBy)(Object(f.mapValues)(t,e),f.identity);return Object(f.isEqual)(n,{})?void 0:n},he=n(14);function je(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ke(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?je(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):je(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ye=Object(g.__)("(Color: %s)"),_e=Object(g.__)("(Gradient: %s)"),Ee=["colors","disableCustomColors","gradients","disableCustomGradients"];function Ce(e){var t,n,r=e.colors,o=e.gradients,c=e.label,i=e.currentTab,a=e.colorValue,l=e.gradientValue;if("color"===i){if(a){var s=le(r,t=a),d=s&&s.name;n=Object(g.sprintf)(ye,d||t)}}else if("gradient"===i&&l){var b=me(o,t=l),f=b&&b.name;n=Object(g.sprintf)(_e,f||t)}return Object(u.createElement)(u.Fragment,null,c,!!t&&Object(u.createElement)(h.ColorIndicator,{colorValue:t,"aria-label":n}))}function we(e){var t=e.colors,n=e.gradients,r=e.disableCustomColors,o=e.disableCustomGradients,c=e.className,i=e.label,a=e.onColorChange,s=e.onGradientChange,d=e.colorValue,p=e.gradientValue,m=a&&(!Object(f.isEmpty)(t)||!r),v=s&&(!Object(f.isEmpty)(n)||!o),O=Object(u.useState)(p?"gradient":!!m&&"color"),j=Object(re.a)(O,2),k=j[0],y=j[1];return m||v?Object(u.createElement)(h.BaseControl,{className:b()("block-editor-color-gradient-control",c)},Object(u.createElement)("fieldset",null,Object(u.createElement)("legend",null,Object(u.createElement)("div",{className:"block-editor-color-gradient-control__color-indicator"},Object(u.createElement)(h.BaseControl.VisualLabel,null,Object(u.createElement)(Ce,{currentTab:k,label:i,colorValue:d,gradientValue:p})))),m&&v&&Object(u.createElement)(h.ButtonGroup,{className:"block-editor-color-gradient-control__button-tabs"},Object(u.createElement)(h.Button,{isSmall:!0,isPressed:"color"===k,onClick:function(){return y("color")}},Object(g.__)("Solid")),Object(u.createElement)(h.Button,{isSmall:!0,isPressed:"gradient"===k,onClick:function(){return y("gradient")}},Object(g.__)("Gradient"))),("color"===k||!v)&&Object(u.createElement)(h.ColorPalette,Object(l.a)({value:d,onChange:v?function(e){a(e),s()}:a},{colors:t,disableCustomColors:r})),("gradient"===k||!m)&&Object(u.createElement)(h.__experimentalGradientPicker,Object(l.a)({value:p,onChange:m?function(e){s(e),a()}:s},{gradients:n,disableCustomGradients:o})))):null}function Se(e){var t={};return t.colors=de("color.palette"),t.gradients=de("color.gradients"),t.disableCustomColors=!de("color.custom"),t.disableCustomGradients=!de("color.customGradient"),Object(u.createElement)(we,ke(ke({},t),e))}var Ie=function(e){return Object(f.every)(Ee,(function(t){return e.hasOwnProperty(t)}))?Object(u.createElement)(we,e):Object(u.createElement)(Se,e)};function Be(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Be(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Be(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Pe=Object(g.__)("(%s: color %s)"),Te=Object(g.__)("(%s: gradient %s)"),Ne=["colors","disableCustomColors","gradients","disableCustomGradients"],De=function(e){var t=e.colors,n=e.gradients;return e.settings.map((function(e,r){var o,c=e.colorValue,i=e.gradientValue,a=e.label,l=e.colors,s=e.gradients;if(!c&&!i)return null;if(c){var d=le(l||t,c);o=Object(g.sprintf)(Pe,a.toLowerCase(),d&&d.name||c)}else{var b=me(s||n,c);o=Object(g.sprintf)(Te,a.toLowerCase(),b&&b.name||i)}return Object(u.createElement)(h.ColorIndicator,{key:r,colorValue:c||i,"aria-label":o})}))},Re=function(e){var t=e.className,n=e.colors,r=e.gradients,o=e.disableCustomColors,c=e.disableCustomGradients,i=e.children,a=e.settings,s=e.title,d=Object(he.a)(e,["className","colors","gradients","disableCustomColors","disableCustomGradients","children","settings","title"]);if(Object(f.isEmpty)(n)&&Object(f.isEmpty)(r)&&o&&c&&Object(f.every)(a,(function(e){return Object(f.isEmpty)(e.colors)&&Object(f.isEmpty)(e.gradients)&&(void 0===e.disableCustomColors||e.disableCustomColors)&&(void 0===e.disableCustomGradients||e.disableCustomGradients)})))return null;var p=Object(u.createElement)("span",{className:"block-editor-panel-color-gradient-settings__panel-title"},s,Object(u.createElement)(De,{colors:n,gradients:r,settings:a}));return Object(u.createElement)(h.PanelBody,Object(l.a)({className:b()("block-editor-panel-color-gradient-settings",t),title:p},d),a.map((function(e,t){return Object(u.createElement)(Ie,Object(l.a)({key:t},xe({colors:n,gradients:r,disableCustomColors:o,disableCustomGradients:c},e)))})),i)},Ae=function(e){var t={};return t.colors=de("color.palette"),t.gradients=de("color.gradients"),t.disableCustomColors=!de("color.custom"),t.disableCustomGradients=!de("color.customGradient"),Object(u.createElement)(Re,xe(xe({},t),e))},Me=function(e){return Object(f.every)(Ne,(function(t){return e.hasOwnProperty(t)}))?Object(u.createElement)(Re,e):Object(u.createElement)(Ae,e)},Le=n(46);function Fe(e){var t=e.tinyBackgroundColor,n=e.tinyTextColor,r=e.backgroundColor,o=e.textColor,c=t.getBrightness()<n.getBrightness()?Object(g.__)("This color combination may be hard for people to read. Try using a darker background color and/or a brighter text color."):Object(g.__)("This color combination may be hard for people to read. Try using a brighter background color and/or a darker text color.");return Object(u.useEffect)((function(){Object(Le.speak)(Object(g.__)("This color combination may be hard for people to read."))}),[r,o]),Object(u.createElement)("div",{className:"block-editor-contrast-checker"},Object(u.createElement)(h.Notice,{spokenMessage:null,status:"warning",isDismissible:!1},c))}var Ve=function(e){var t=e.backgroundColor,n=e.fallbackBackgroundColor,r=e.fallbackTextColor,o=e.fontSize,c=e.isLargeText,i=e.textColor;if(!t&&!n||!i&&!r)return null;var a=ie()(t||n),l=ie()(i||r);return 1!==a.getAlpha()||1!==l.getAlpha()||ie.a.isReadable(a,l,{level:"AA",size:c||!1!==c&&o>=24?"large":"small"})?null:Object(u.createElement)(Fe,{backgroundColor:t,textColor:i,tinyBackgroundColor:a,tinyTextColor:l})},He=n(170),ze=Object(h.createSlotFill)("InspectorControls"),Ue=ze.Fill,Ge=ze.Slot;function We(e){var t=e.children;return Object(He.a)()?Object(u.createElement)(Ue,null,t):null}We.Slot=Ge;var Ke=We;function qe(e){return document.getElementById("block-"+e)}function $e(e,t){return t.closest(".block-editor-block-list__block")===e}function Ye(e){for(;e&&e.nodeType!==e.ELEMENT_NODE;)e=e.parentNode;if(e){var t=e.closest(".block-editor-block-list__block");if(t)return t.id.slice("block-".length)}}function Xe(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function Qe(e){var t=e.settings,n=e.clientId,r=e.enableContrastChecking,o=void 0===r||r,c=Object(u.useState)(),i=Object(re.a)(c,2),a=i[0],l=i[1],s=Object(u.useState)(),d=Object(re.a)(s,2),b=d[0],f=d[1];return Object(u.useEffect)((function(){if(o){var e=qe(n);if(e){f(Xe(e).color);for(var t=e,r=Xe(t).backgroundColor;"rgba(0, 0, 0, 0)"===r&&t.parentNode&&t.parentNode.nodeType===t.parentNode.ELEMENT_NODE;)r=Xe(t=t.parentNode).backgroundColor;l(r)}}})),Object(u.createElement)(Ke,null,Object(u.createElement)(Me,{title:Object(g.__)("Color settings"),initialOpen:!1,settings:t},o&&Object(u.createElement)(Ve,{backgroundColor:a,textColor:b})))}function Ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Je(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ze(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ze(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var et=[],tt=function(e){if("web"!==u.Platform.OS)return!1;var t=Object(c.getBlockSupport)(e,"color");return t&&(!0===t.link||!0===t.gradient||!1!==t.background||!1!==t.text)},nt=function(e){if("web"!==u.Platform.OS)return!1;var t=Object(c.getBlockSupport)(e,"color");return Object(f.isObject)(t)&&!!t.link},rt=function(e){if("web"!==u.Platform.OS)return!1;var t=Object(c.getBlockSupport)(e,"color");return Object(f.isObject)(t)&&!!t.gradients},ot=function(e){if("web"!==u.Platform.OS)return!1;var t=Object(c.getBlockSupport)(e,"color");return t&&!1!==t.text};function ct(e,t,n){var r,o,c,i,a,l;if(!tt(t))return e;var u=rt(t),d=n.backgroundColor,f=n.textColor,p=n.gradient,m=n.style,v=se("background-color",d),O=fe(p),g=se("color",f),h=b()(e.className,g,O,(l={},Object(s.a)(l,v,!(u&&(null==m||null===(r=m.color)||void 0===r?void 0:r.gradient)||!v)),Object(s.a)(l,"has-text-color",f||(null==m||null===(o=m.color)||void 0===o?void 0:o.text)),Object(s.a)(l,"has-background",d||(null==m||null===(c=m.color)||void 0===c?void 0:c.background)||u&&(p||(null==m||null===(i=m.color)||void 0===i?void 0:i.gradient))),Object(s.a)(l,"has-link-color",null==m||null===(a=m.color)||void 0===a?void 0:a.link),l));return e.className=h||void 0,e}var it=function(e,t){var n=/var:preset\|color\|(.+)/.exec(t);return n&&n[1]?ae(e,n[1]).color:t};function at(e){var t,n,r,o,i,a,l=e.name,d=e.attributes,b=de("color.link"),f=de("color.palette")||et,p=de("color.gradients")||et,m=Object(u.useRef)(d);if(Object(u.useEffect)((function(){m.current=d}),[d]),!tt(l))return null;var v,O=function(e){if("web"!==u.Platform.OS)return!1;var t=Object(c.getBlockSupport)(e,"color");return t&&!1!==t.background}(l),h=rt(l),j=d.style,k=d.textColor,y=d.backgroundColor,_=d.gradient;if(h&&_)v=pe(p,_);else if(h){var E;v=null==j||null===(E=j.color)||void 0===E?void 0:E.gradient}var C=function(t){return function(n){var r,o,c=le(f,n),i=t+"Color",a=Je(Je({},m.current.style),{},{color:Je(Je({},null===(r=m.current)||void 0===r||null===(o=r.style)||void 0===o?void 0:o.color),{},Object(s.a)({},t,(null==c?void 0:c.slug)?void 0:n))}),l=(null==c?void 0:c.slug)?c.slug:void 0,u=Object(s.a)({style:ge(a)},i,l);e.setAttributes(u),m.current=Je(Je({},m.current),u)}};return Object(u.createElement)(Qe,{enableContrastChecking:"web"===u.Platform.OS&&!_&&!(null==j||null===(t=j.color)||void 0===t?void 0:t.gradient),clientId:e.clientId,settings:[].concat(Object(ne.a)(ot(l)?[{label:Object(g.__)("Text Color"),onColorChange:C("text"),colorValue:ae(f,k,null==j||null===(n=j.color)||void 0===n?void 0:n.text).color}]:[]),Object(ne.a)(O||h?[{label:Object(g.__)("Background Color"),onColorChange:O?C("background"):void 0,colorValue:ae(f,y,null==j||null===(r=j.color)||void 0===r?void 0:r.background).color,gradientValue:v,onGradientChange:h?function(t){var n,r=ve(p,t);if(r){var o,c,i,a=Je(Je({},null===(o=m.current)||void 0===o?void 0:o.style),{},{color:Je(Je({},null===(c=m.current)||void 0===c||null===(i=c.style)||void 0===i?void 0:i.color),{},{gradient:void 0})});n={style:ge(a),gradient:r}}else{var l,s,u,d=Je(Je({},null===(l=m.current)||void 0===l?void 0:l.style),{},{color:Je(Je({},null===(s=m.current)||void 0===s||null===(u=s.style)||void 0===u?void 0:u.color),{},{gradient:t})});n={style:ge(d),gradient:void 0}}e.setAttributes(n),m.current=Je(Je({},m.current),n)}:void 0}]:[]),Object(ne.a)(b&&nt(l)?[{label:Object(g.__)("Link Color"),onColorChange:function(t){var n,r=le(f,t);e.setAttributes({style:Je(Je({},e.attributes.style),{},{color:Je(Je({},null===(n=e.attributes.style)||void 0===n?void 0:n.color),{},{link:(null==r?void 0:r.slug)?"var:preset|color|".concat(r.slug):t})})})},colorValue:it(f,null==j||null===(o=j.color)||void 0===o?void 0:o.link),clearable:!!(null===(i=e.attributes.style)||void 0===i||null===(a=i.color)||void 0===a?void 0:a.link)}]:[]))})}var lt=Object(p.createHigherOrderComponent)((function(e){return function(t){var n,r,o,c=t.name,i=t.attributes,a=i.backgroundColor,s=i.textColor,d=de("color.palette")||et;if(!tt(c))return Object(u.createElement)(e,t);var b={color:s?null===(n=ae(d,s))||void 0===n?void 0:n.color:void 0,backgroundColor:a?null===(r=ae(d,a))||void 0===r?void 0:r.color:void 0},f=t.wrapperProps;return f=Je(Je({},t.wrapperProps),{},{style:Je(Je({},b),null===(o=t.wrapperProps)||void 0===o?void 0:o.style)}),Object(u.createElement)(e,Object(l.a)({},t,{wrapperProps:f}))}}));Object(m.addFilter)("blocks.registerBlockType","core/color/addAttribute",(function(e){return tt(e)?(e.attributes.backgroundColor||Object.assign(e.attributes,{backgroundColor:{type:"string"}}),e.attributes.textColor||Object.assign(e.attributes,{textColor:{type:"string"}}),rt(e)&&!e.attributes.gradient&&Object.assign(e.attributes,{gradient:{type:"string"}}),e):e})),Object(m.addFilter)("blocks.getSaveContent.extraProps","core/color/addSaveProps",ct),Object(m.addFilter)("blocks.registerBlockType","core/color/addEditProps",(function(e){if(!tt(e))return e;var t=e.getEditWrapperProps;return e.getEditWrapperProps=function(n){var r={};return t&&(r=t(n)),ct(r,e,n)},e})),Object(m.addFilter)("editor.BlockListBlock","core/color/with-color-palette-styles",lt);var st=n(18);function ut(e){var t=e.value,n=e.onChange,r=function(e){return void 0!==e&&""!==e}(t),o=r?t:"";return Object(u.createElement)("div",{className:"block-editor-line-height-control"},Object(u.createElement)(h.TextControl,{autoComplete:"off",onKeyDown:function(e){e.keyCode!==st.ZERO||r||(e.preventDefault(),n("0"))},onChange:function(e){if(r)n(e);else{var t=e;switch(e){case"".concat(.1):t=1.6;break;case"0":t=1.4}n(t)}},label:Object(g.__)("Line height"),placeholder:1.5,step:.1,type:"number",value:o,min:0}))}function dt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dt(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ft(e){var t,n=e.attributes.style;if(pt(e))return null;return Object(u.createElement)(ut,{value:null==n||null===(t=n.typography)||void 0===t?void 0:t.lineHeight,onChange:function(t){var r=bt(bt({},n),{},{typography:bt(bt({},null==n?void 0:n.typography),{},{lineHeight:t})});e.setAttributes({style:ge(r)})}})}function pt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=!de("typography.customLineHeight");return!Object(c.hasBlockSupport)(t,"lineHeight")||n}var mt=n(157),vt=n.n(mt),Ot=function(e,t,n){if(t){var r=Object(f.find)(e,{slug:t});if(r)return r}return{size:n}};function gt(e,t){var n=Object(f.find)(e,{size:t});return n||{size:t}}function ht(e){if(e)return"has-".concat(Object(f.kebabCase)(e),"-font-size")}var jt=function(e){var t=de("typography.fontSizes"),n=!de("typography.customFontSize");return Object(u.createElement)(h.FontSizePicker,Object(l.a)({},e,{fontSizes:t,disableCustomFontSizes:n}))};function kt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kt(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _t(e,t,n){if(!Object(c.hasBlockSupport)(t,"fontSize"))return e;var r=new vt.a(e.className);r.add(ht(n.fontSize));var o=r.value;return e.className=o||void 0,e}function Et(e){var t,n=e.attributes,r=n.fontSize,o=n.style,c=e.setAttributes,i=Ct(e),a=de("typography.fontSizes");if(i)return null;var l=Ot(a,r,null==o||null===(t=o.typography)||void 0===t?void 0:t.fontSize);return Object(u.createElement)(jt,{value:l.size,onChange:function(e){var t=gt(a,e).slug;c({style:ge(yt(yt({},o),{},{typography:yt(yt({},null==o?void 0:o.typography),{},{fontSize:t?void 0:e})})),fontSize:t})}})}function Ct(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=de("typography.fontSizes"),r=!!(null==n?void 0:n.length);return!Object(c.hasBlockSupport)(t,"fontSize")||!r}var wt=Object(p.createHigherOrderComponent)((function(e){return function(t){var n,r=de("typography.fontSizes"),o=t.name,i=t.attributes,a=i.fontSize,l=i.style,s=t.wrapperProps,d=yt({},t);if(Object(c.hasBlockSupport)(o,"fontSize")&&a&&!(null==l||null===(n=l.typography)||void 0===n?void 0:n.fontSize)){var b,f=Ot(r,a,null==l||null===(b=l.typography)||void 0===b?void 0:b.fontSize).size;d.wrapperProps=yt(yt({},s),{},{style:yt({fontSize:f},null==s?void 0:s.style)})}return Object(u.createElement)(e,d)}}),"withFontSizeInlineStyles");Object(m.addFilter)("blocks.registerBlockType","core/font/addAttribute",(function(e){return Object(c.hasBlockSupport)(e,"fontSize")?(e.attributes.fontSize||Object.assign(e.attributes,{fontSize:{type:"string"}}),e):e})),Object(m.addFilter)("blocks.getSaveContent.extraProps","core/font/addSaveProps",_t),Object(m.addFilter)("blocks.registerBlockType","core/font/addEditProps",(function(e){if(!Object(c.hasBlockSupport)(e,"fontSize"))return e;var t=e.getEditWrapperProps;return e.getEditWrapperProps=function(n){var r={};return t&&(r=t(n)),_t(r,e,n)},e})),Object(m.addFilter)("editor.BlockListBlock","core/font-size/with-font-size-inline-styles",wt);var St=["lineHeight","fontSize"];function It(e){var t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=[Ct(e),pt(e)];return t.filter(Boolean).length===t.length}(e),n=Bt(e.name);return t||!n?null:Object(u.createElement)(Ke,null,Object(u.createElement)(h.PanelBody,{title:Object(g.__)("Typography")},Object(u.createElement)(Et,e),Object(u.createElement)(ft,e)))}var Bt=function(e){return"web"===u.Platform.OS&&St.some((function(t){return Object(c.hasBlockSupport)(e,t)}))};function xt(e){var t=e.units,n=Object(he.a)(e,["units"]),r=Pt(t);return Object(u.createElement)(h.__experimentalUnitControl,Object(l.a)({units:r},n))}function Pt(e){var t=de("spacing.units"),n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.filter((function(t){return e.includes(t.value)}))}(t||[],e);return 0!==n.length&&n}function Tt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tt(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Dt(e){var t,n=e.name,r=e.attributes.style,o=e.setAttributes,i=Pt();if(!function(e){var t=Object(c.getBlockSupport)(e,"spacing");return t&&!1!==t.padding}(n))return null;return u.Platform.select({web:Object(u.createElement)(u.Fragment,null,Object(u.createElement)(h.__experimentalBoxControl,{values:null==r||null===(t=r.spacing)||void 0===t?void 0:t.padding,onChange:function(e){var t=Nt(Nt({},r),{},{spacing:{padding:e}});o({style:ge(t)})},onChangeShowVisualizer:function(e){var t=Nt(Nt({},r),{},{visualizers:{padding:e}});o({style:ge(t)})},label:Object(g.__)("Padding"),units:i})),native:null})}function Rt(e){var t=e.children,n=Object(he.a)(e,["children"]);return de("spacing.customPadding")?Object(u.createElement)(Ke,n,Object(u.createElement)(h.PanelBody,{title:Object(g.__)("Spacing")},t)):null}function At(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?At(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):At(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Lt=[].concat(Object(ne.a)(St),["color","spacing"]),Ft=function(e){return Lt.some((function(t){return Object(c.hasBlockSupport)(e,t)}))};function Vt(e){if(Object(f.startsWith)(e,"var:")){var t=e.slice("var:".length).split("|").join("--");return"var(--wp--".concat(t,")")}return e}function Ht(e,t,n){if(!Ft(t))return e;var r=n.style;return e.style=Mt(Mt({},function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={};return Object.entries(c.__EXPERIMENTAL_STYLE_PROPERTY).forEach((function(n){var r=Object(oe.a)(n),o=r[0],c=r.slice(1),i=Object(re.a)(c,1)[0];Object(f.has)(e,i)&&(t[o]=Vt(Object(f.get)(e,i)))})),t}(r)),e.style),e}var zt=Object(p.createHigherOrderComponent)((function(e){return function(t){var n=t.name,r=Object(c.hasBlockSupport)(n,"spacing");return[Object(u.createElement)(It,Object(l.a)({key:"typography"},t)),Object(u.createElement)(at,Object(l.a)({key:"colors"},t)),Object(u.createElement)(e,Object(l.a)({key:"edit"},t)),r&&Object(u.createElement)(Rt,{key:"spacing"},Object(u.createElement)(Dt,t))]}}),"withToolbarControls");Object(m.addFilter)("blocks.registerBlockType","core/style/addAttribute",(function(e){return Ft(e)?(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e):e})),Object(m.addFilter)("blocks.getSaveContent.extraProps","core/style/addSaveProps",Ht),Object(m.addFilter)("blocks.registerBlockType","core/style/addEditProps",(function(e){if(!Ft(e))return e;var t=e.getEditWrapperProps;return e.getEditWrapperProps=function(n){var r={};return t&&(r=t(n)),Ht(r,e,n)},e})),Object(m.addFilter)("editor.BlockEdit","core/style/with-block-controls",zt);var Ut=n(21),Gt=n(22),Wt=n(16),Kt=n(23),qt=n(24),$t=n(19);function Yt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object($t.a)(e);if(t){var o=Object($t.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(qt.a)(this,n)}}function Xt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xt(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Zt=[],Jt=function(e){return Object(p.createHigherOrderComponent)((function(t){return function(n){return Object(u.createElement)(t,Object(l.a)({},n,{colors:e}))}}),"withCustomColorPalette")},en=function(){return Object(p.createHigherOrderComponent)((function(e){return function(t){var n=de("color.palette")||Zt;return Object(u.createElement)(e,Object(l.a)({},t,{colors:n}))}}),"withEditorColorPalette")};function tn(e,t){var n=Object(f.reduce)(e,(function(e,t){return Qt(Qt({},e),Object(f.isString)(t)?Object(s.a)({},t,Object(f.kebabCase)(t)):t)}),{});return Object(p.compose)([t,function(e){return function(t){Object(Kt.a)(o,t);var r=Yt(o);function o(e){var t;return Object(Ut.a)(this,o),(t=r.call(this,e)).setters=t.createSetters(),t.colorUtils={getMostReadableColor:t.getMostReadableColor.bind(Object(Wt.a)(t))},t.state={},t}return Object(Gt.a)(o,[{key:"getMostReadableColor",value:function(e){return function(e,t){return ie.a.mostReadable(t,Object(f.map)(e,"color")).toHexString()}(this.props.colors,e)}},{key:"createSetters",value:function(){var e=this;return Object(f.reduce)(n,(function(t,n,r){var o=Object(f.upperFirst)(r),c="custom".concat(o);return t["set".concat(o)]=e.createSetColor(r,c),t}),{})}},{key:"createSetColor",value:function(e,t){var n=this;return function(r){var o,c=le(n.props.colors,r);n.props.setAttributes((o={},Object(s.a)(o,e,c&&c.slug?c.slug:void 0),Object(s.a)(o,t,c&&c.slug?void 0:r),o))}}},{key:"render",value:function(){return Object(u.createElement)(e,Qt(Qt(Qt(Qt({},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(f.reduce)(n,(function(e,n,c){var i=ae(o,r[c],r["custom".concat(Object(f.upperFirst)(c))]),a=t[c];return(null==a?void 0:a.color)===i.color&&a?e[c]=a:e[c]=Qt(Qt({},i),{},{class:se(n,i.slug)}),e}),{})}}]),o}(u.Component)}])}function nn(e){return function(){for(var t=Jt(e),n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Object(p.createHigherOrderComponent)(tn(r,t),"withCustomColors")}}function rn(){for(var e=en(),t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Object(p.createHigherOrderComponent)(tn(n,e),"withColors")}var on=n(60),cn=n.n(on);function an(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ln(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?an(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):an(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var sn=function(e){var t=e.colorSettings,n=Object(he.a)(e,["colorSettings"]),r=t.map((function(e){var t=e.value,n=e.onChange;return ln(ln({},Object(he.a)(e,["value","onChange"])),{},{colorValue:t,onColorChange:n})}));return Object(u.createElement)(Me,Object(l.a)({settings:r,gradients:[],disableCustomGradients:!0},n))},un=function(e,t,n){return"function"==typeof e?e(t):!0===e?n:e};function dn(e){var t=e.title,n=e.colorSettings,r=e.colorPanelProps,o=e.contrastCheckers,c=e.detectedBackgroundColor,i=e.detectedColor,a=e.panelChildren,s=e.initialOpen;return Object(u.createElement)(sn,Object(l.a)({title:t,initialOpen:s,colorSettings:Object.values(n)},r),o&&(Array.isArray(o)?o.map((function(e){var t=e.backgroundColor,r=e.textColor,o=Object(he.a)(e,["backgroundColor","textColor"]);return t=un(t,n,c),r=un(r,n,i),Object(u.createElement)(Ve,Object(l.a)({key:"".concat(t,"-").concat(r),backgroundColor:t,textColor:r},o))})):Object(f.map)(n,(function(e){var t=e.value,r=o.backgroundColor,a=o.textColor;return r=un(r||t,n,c),a=un(a||t,n,i),Object(u.createElement)(Ve,Object(l.a)({},o,{key:"".concat(r,"-").concat(a),backgroundColor:r,textColor:a}))}))),"function"==typeof a?a(n):a)}function bn(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return fn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fn(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}function fn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function pn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pn(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vn(e){return e.ownerDocument.defaultView.getComputedStyle(e)}var On=[],gn={textColor:Object(g.__)("Text Color"),backgroundColor:Object(g.__)("Background Color")},hn=function(e){return Object(u.createElement)(Ke,null,Object(u.createElement)(dn,e))};function jn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{panelTitle:Object(g.__)("Color settings")},n=t.panelTitle,r=void 0===n?Object(g.__)("Color settings"):n,o=t.colorPanelProps,c=t.contrastCheckers,i=t.panelChildren,a=t.colorDetector,l=(a=void 0===a?{}:a).targetRef,d=a.backgroundColorTargetRef,p=void 0===d?l:d,m=a.textColorTargetRef,O=void 0===m?l:m,h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],j=Object(z.b)(),k=j.clientId,y=de("color.palette")||On,_=Object(v.useSelect)((function(e){return{attributes:(0,e("core/block-editor").getBlockAttributes)(k)}}),[k]),E=_.attributes,C=Object(v.useDispatch)("core/block-editor"),w=C.updateBlockAttributes,S=Object(u.useCallback)((function(e){return w(k,e)}),[w,k]),I=Object(u.useMemo)((function(){return cn()((function(e,t,n,r,o,c){return function(i){var a,l=i.children,d=i.className,p=void 0===d?"":d,m=i.style,v=void 0===m?{}:m,O={};r?O=Object(s.a)({},t,o):c&&(O=Object(s.a)({},t,c));var g={className:b()(p,(a={},Object(s.a)(a,"has-".concat(Object(f.kebabCase)(r),"-").concat(Object(f.kebabCase)(t)),r),Object(s.a)(a,n||"has-".concat(Object(f.kebabCase)(e)),r||c),a)),style:mn(mn({},O),v)};return Object(f.isFunction)(l)?l(g):u.Children.map(l,(function(e){return Object(u.cloneElement)(e,{className:b()(e.props.className,g.className),style:mn(mn({},g.style),e.props.style||{})})}))}}),{maxSize:e.length})}),[e.length]),B=Object(u.useMemo)((function(){return cn()((function(e,t){return function(n){var r=t.find((function(e){return e.color===n}));S(Object(s.a)({},r?Object(f.camelCase)("custom ".concat(e)):e,void 0)),S(Object(s.a)({},r?e:Object(f.camelCase)("custom ".concat(e)),r?r.slug:n))}}),{maxSize:e.length})}),[S,e.length]),x=Object(u.useState)(),P=Object(re.a)(x,2),T=P[0],N=P[1],D=Object(u.useState)(),R=Object(re.a)(D,2),A=R[0],M=R[1];return Object(u.useEffect)((function(){if(c){var e,t=!1,n=!1,r=bn(Object(f.castArray)(c));try{for(r.s();!(e=r.n()).done;){var o=e.value,i=o.backgroundColor,a=o.textColor;if(t||(t=!0===i),n||(n=!0===a),t&&n)break}}catch(e){r.e(e)}finally{r.f()}if(n&&M(vn(O.current).color),t){for(var l=p.current,s=vn(l).backgroundColor;"rgba(0, 0, 0, 0)"===s&&l.parentNode&&l.parentNode.nodeType===l.parentNode.ELEMENT_NODE;)s=vn(l=l.parentNode).backgroundColor;N(s)}}}),[e.reduce((function(e,t){return"".concat(e," | ").concat(E[t.name]," | ").concat(E[Object(f.camelCase)("custom ".concat(t.name))])}),"")].concat(Object(ne.a)(h))),Object(u.useMemo)((function(){var t={},n=e.reduce((function(e,n){"string"==typeof n&&(n={name:n});var r=mn(mn({},n),{},{color:E[n.name]}),o=r.name,c=r.property,i=void 0===c?o:c,a=r.className,l=r.panelLabel,s=void 0===l?n.label||gn[o]||Object(f.startCase)(o):l,u=r.componentName,d=void 0===u?Object(f.startCase)(o).replace(/\s/g,""):u,b=r.color,p=void 0===b?n.color:b,m=r.colors,v=void 0===m?y:m,O=E[Object(f.camelCase)("custom ".concat(o))],g=O?void 0:v.find((function(e){return e.slug===p}));return e[d]=I(o,i,a,p,g&&g.color,O),e[d].displayName=d,e[d].color=O||g&&g.color,e[d].slug=p,e[d].setColor=B(o,v),t[d]={value:g?g.color:E[Object(f.camelCase)("custom ".concat(o))],onChange:e[d].setColor,label:s,colors:v},v||delete t[d].colors,e}),{}),a={title:r,initialOpen:!1,colorSettings:t,colorPanelProps:o,contrastCheckers:c,detectedBackgroundColor:T,detectedColor:A,panelChildren:i};return mn(mn({},n),{},{ColorPanel:Object(u.createElement)(dn,a),InspectorControlsColorPanel:Object(u.createElement)(hn,a)})}),[E,S,A,T].concat(Object(ne.a)(h)))}function kn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kn(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _n(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object($t.a)(e);if(t){var o=Object($t.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(qt.a)(this,n)}}var En=[],Cn=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Object(f.reduce)(t,(function(e,t){return e[t]="custom".concat(Object(f.upperFirst)(t)),e}),{});return Object(p.createHigherOrderComponent)(Object(p.compose)([Object(p.createHigherOrderComponent)((function(e){return function(t){var n=de("typography.fontSizes")||En;return Object(u.createElement)(e,Object(l.a)({},t,{fontSizes:n}))}}),"withFontSizes"),function(e){return function(t){Object(Kt.a)(o,t);var n=_n(o);function o(e){var t;return Object(Ut.a)(this,o),(t=n.call(this,e)).setters=t.createSetters(),t.state={},t}return Object(Gt.a)(o,[{key:"createSetters",value:function(){var e=this;return Object(f.reduce)(r,(function(t,n,r){var o=Object(f.upperFirst)(r);return t["set".concat(o)]=e.createSetFontSize(r,n),t}),{})}},{key:"createSetFontSize",value:function(e,t){var n=this;return function(r){var o,c=Object(f.find)(n.props.fontSizes,{size:Number(r)});n.props.setAttributes((o={},Object(s.a)(o,e,c&&c.slug?c.slug:void 0),Object(s.a)(o,t,c&&c.slug?void 0:r),o))}}},{key:"render",value:function(){return Object(u.createElement)(e,yn(yn(yn({},this.props),{},{fontSizes:void 0},this.state),this.setters))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.attributes,o=e.fontSizes,c=function(e,r){return!t[r]||(n[r]?n[r]!==t[r].slug:t[r].size!==n[e])};if(!Object(f.some)(r,c))return null;var i=Object(f.reduce)(Object(f.pickBy)(r,c),(function(e,t,r){var c=n[r],i=Ot(o,c,n[t]);return e[r]=yn(yn({},i),{},{class:ht(c)}),e}),{});return yn(yn({},t),i)}}]),o}(u.Component)}]),"withFontSizes")},wn=n(303),Sn=n(304),In=n(305);function Bn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bn(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Pn=[{icon:wn.a,title:Object(g.__)("Align text left"),align:"left"},{icon:Sn.a,title:Object(g.__)("Align text center"),align:"center"},{icon:In.a,title:Object(g.__)("Align text right"),align:"right"}],Tn={position:"bottom right",isAlternate:!0};var Nn=function(e){var t=e.value,n=e.onChange,r=e.alignmentControls,o=void 0===r?Pn:r,c=e.label,i=void 0===c?Object(g.__)("Change text alignment"):c,a=e.isCollapsed,l=void 0===a||a,s=e.isRTL;function d(e){return function(){return n(t===e?void 0:e)}}var b=Object(f.find)(o,(function(e){return e.align===t}));return Object(u.createElement)(h.ToolbarGroup,{isCollapsed:l,icon:b?b.icon:s?In.a:wn.a,label:i,popoverProps:Tn,controls:o.map((function(e){var n=e.align,r=t===n;return xn(xn({},e),{},{isActive:r,role:l?"menuitemradio":void 0,onClick:d(n)})}))})},Dn=function(e){return e.name||""},Rn=function(e){return e.title},An=function(e){return e.keywords||[]},Mn=function(e){return e.category},Ln=function(){return null};function Fn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e=(e=(e=Object(f.deburr)(e)).replace(/^\//,"")).toLowerCase()}var Vn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Object(f.words)(Fn(e))},Hn=function(e,t){return Object(f.differenceWith)(e,Vn(t),(function(e,t){return t.includes(e)}))},zn=function(e,t,n,r){return 0===Vn(r).length?e:Un(e,r,{getCategory:function(e){var n;return null===(n=Object(f.find)(t,{slug:e.category}))||void 0===n?void 0:n.title},getCollection:function(e){var t;return null===(t=n[e.name.split("/")[0]])||void 0===t?void 0:t.title},getVariations:function(e){var t=e.variations,n=void 0===t?[]:t;return Array.from(n.reduce((function(e,t){var n=t.title,r=t.keywords,o=void 0===r?[]:r;return e.add(n),o.forEach((function(t){return e.add(t)})),e}),new Set))}})},Un=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Vn(t);if(0===r.length)return e;var o=e.map((function(e){return[e,Gn(e,t,n)]})).filter((function(e){return Object(re.a)(e,2)[1]>0}));return o.sort((function(e,t){var n=Object(re.a)(e,2)[1];return Object(re.a)(t,2)[1]-n})),o.map((function(e){return Object(re.a)(e,1)[0]}))};function Gn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.getName,o=void 0===r?Dn:r,c=n.getTitle,i=void 0===c?Rn:c,a=n.getKeywords,l=void 0===a?An:a,s=n.getCategory,u=void 0===s?Mn:s,d=n.getCollection,b=void 0===d?Ln:d,p=o(e),m=i(e),v=l(e),O=u(e),g=b(e),h=Fn(t),j=Fn(m),k=0;if(h===j)k+=30;else if(j.startsWith(h))k+=20;else{var y=[p,m].concat(Object(ne.a)(v),[O,g]).join(" "),_=Object(f.words)(h),E=Hn(_,y);0===E.length&&(k+=10)}return 0!==k&&p.startsWith("core/")&&k++,k}var Wn=function(e,t){var n=Object(v.useSelect)((function(t){var n=t("core/block-editor").getInserterItems,r=t("core/blocks"),o=r.getCategories,c=r.getCollections;return{categories:o(),collections:c(),items:n(e)}}),[e]),r=n.categories,o=n.collections;return[n.items,r,o,function(e){var n=e.name,r=e.initialAttributes,o=e.innerBlocks,i=Object(c.createBlock)(n,r,Object(c.createBlocksFromInnerBlocksTemplate)(o));t(i)}]},Kn=n(208);function qn(e){var t,n=e.icon,r=e.showColors,o=void 0!==r&&r,c=e.className;"block-default"===(null===(t=n)||void 0===t?void 0:t.src)&&(n={src:Kn.a});var i=Object(u.createElement)(h.Icon,{icon:n&&n.src?n.src:n}),a=o?{backgroundColor:n&&n.background,color:n&&n.foreground}:{};return Object(u.createElement)("span",{style:a,className:b()("block-editor-block-icon",c,{"has-colors":o})},i)}var $n={name:"blocks",className:"block-editor-autocompleters__block",triggerPrefix:"/",useItems:function(e){var t=Object(v.useSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getBlockName,o=t.getBlockInsertionPoint,c=n();return{selectedBlockName:c?r(c):null,rootClientId:o().rootClientId}}),[]),n=t.rootClientId,r=t.selectedBlockName,o=Wn(n,f.noop),c=Object(re.a)(o,3),i=c[0],a=c[1],l=c[2],s=Object(u.useMemo)((function(){return(e.trim()?zn(i,a,l,e):Object(f.orderBy)(i,["frecency"],["desc"])).filter((function(e){return e.name!==r})).slice(0,9)}),[e,r,i,a,l]);return[Object(u.useMemo)((function(){return s.map((function(e){var t=e.title,n=e.icon,r=e.isDisabled;return{key:"block-".concat(e.id),value:e,label:Object(u.createElement)(u.Fragment,null,Object(u.createElement)(qn,{key:"icon",icon:n,showColors:!0}),t),isDisabled:r}}))}),[s])]},allowContext:function(e,t){return!(/\S/.test(e)||/\S/.test(t))},getOptionCompletion:function(e){var t=e.name,n=e.initialAttributes,r=e.innerBlocks;return{action:"replace",value:Object(c.createBlock)(t,n,Object(c.createBlocksFromInnerBlocksTemplate)(r))}}},Yn=[];var Xn=function(e){var t=Object(z.b)().name,n=e.completers,r=void 0===n?Yn:n;return r=Object(u.useMemo)((function(){var e=r;return t===Object(c.getDefaultBlockName)()&&(e=e.concat([$n])),Object(m.hasFilter)("editor.Autocomplete.completers")&&(e===r&&(e=e.map(f.clone)),e=Object(m.applyFilters)("editor.Autocomplete.completers",e,t)),e}),[r,t]),Object(u.createElement)(h.Autocomplete,Object(l.a)({},e,{completers:r}))};var Qn=function(e){var t=e.label,n=void 0===t?Object(g.__)("Change matrix alignment"):t,r=e.onChange,o=void 0===r?f.noop:r,c=e.value,i=void 0===c?"center":c,a=Object(u.createElement)(h.__experimentalAlignmentMatrixControl.Icon,{value:i}),l="block-editor-block-alignment-matrix-toolbar",s="".concat(l,"__popover");return Object(u.createElement)(h.Dropdown,{position:"bottom right",className:l,popoverProps:{className:s,isAlternate:!0},renderToggle:function(e){var t=e.onToggle,r=e.isOpen;return Object(u.createElement)(h.ToolbarGroup,null,Object(u.createElement)(h.ToolbarButton,{onClick:t,"aria-haspopup":"true","aria-expanded":r,onKeyDown:function(e){r||e.keyCode!==st.DOWN||(e.preventDefault(),e.stopPropagation(),t())},label:n,icon:a,showTooltip:!0}))},renderContent:function(){return Object(u.createElement)(h.__experimentalAlignmentMatrixControl,{hasFocusBorder:!1,onChange:o,value:i})}})};function Zn(e){var t=e.clientId,n=Object(v.useSelect)((function(e){if(!t)return{};var n=e("core/block-editor"),r=n.getBlockName;return{attributes:(0,n.getBlockAttributes)(t),name:r(t)}}),[t]),r=n.attributes,o=n.name;if(!o)return null;var i=Object(c.getBlockType)(o);if(!i)return null;var a=i.title,l=Object(c.__experimentalGetBlockLabel)(i,r);return l!==a?"".concat(a,": ").concat(Object(f.truncate)(l,{length:15})):a}var Jn=function(){var e=Object(v.useDispatch)("core/block-editor"),t=e.selectBlock,n=e.clearSelectedBlock,r=Object(v.useSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectionStart,r=t.getSelectedBlockClientId,o=t.getBlockParents,c=r();return{parents:o(c),clientId:c,hasSelection:!!n().clientId}}),[]),o=r.clientId,c=r.parents,i=r.hasSelection;return Object(u.createElement)("ul",{className:"block-editor-block-breadcrumb",role:"list","aria-label":Object(g.__)("Block breadcrumb")},Object(u.createElement)("li",{className:i?void 0:"block-editor-block-breadcrumb__current","aria-current":i?void 0:"true"},i&&Object(u.createElement)(h.Button,{className:"block-editor-block-breadcrumb__button",isTertiary:!0,onClick:n},Object(g.__)("Document")),!i&&Object(g.__)("Document")),c.map((function(e){return Object(u.createElement)("li",{key:e},Object(u.createElement)(h.Button,{className:"block-editor-block-breadcrumb__button",isTertiary:!0,onClick:function(){return t(e)}},Object(u.createElement)(Zn,{clientId:e})))})),!!o&&Object(u.createElement)("li",{className:"block-editor-block-breadcrumb__current","aria-current":"true"},Object(u.createElement)(Zn,{clientId:o})))};function er(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?er(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):er(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var nr=Object(u.createContext)({});function rr(e){var t=e.value,n=e.children,r=Object(u.useContext)(nr),o=Object(u.useMemo)((function(){return tr(tr({},r),t)}),[r,t]);return Object(u.createElement)(nr.Provider,{value:o,children:n})}var or=nr,cr=function(){return Object(u.createElement)(h.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 20 20"},Object(u.createElement)(h.Path,{d:"M7.434 5l3.18 9.16H8.538l-.692-2.184H4.628l-.705 2.184H2L5.18 5h2.254zm-1.13 1.904h-.115l-1.148 3.593H7.44L6.304 6.904zM14.348 7.006c1.853 0 2.9.876 2.9 2.374v4.78h-1.79v-.914h-.114c-.362.64-1.123 1.022-2.031 1.022-1.346 0-2.292-.826-2.292-2.108 0-1.27.972-2.006 2.71-2.107l1.696-.102V9.38c0-.584-.42-.914-1.18-.914-.667 0-1.112.228-1.264.647h-1.701c.12-1.295 1.307-2.107 3.066-2.107zm1.079 4.1l-1.416.09c-.793.056-1.18.342-1.18.844 0 .52.45.837 1.091.837.857 0 1.505-.545 1.505-1.256v-.515z"}))},ir=function(e){var t=e.style,n=e.className;return Object(u.createElement)("div",{className:"block-library-colors-selector__icon-container"},Object(u.createElement)("div",{className:"".concat(n," block-library-colors-selector__state-selection"),style:t},Object(u.createElement)(cr,null)))},ar=function(e){var t,n,r,o=e.children,c=Object(he.a)(e,["children"]);return Object(u.createElement)(h.Dropdown,{position:"bottom right",className:"block-library-colors-selector",contentClassName:"block-library-colors-selector__popover",renderToggle:(t=c,n=t.TextColor,r=t.BackgroundColor,function(e){var t=e.onToggle,o=e.isOpen;return Object(u.createElement)(h.ToolbarGroup,null,Object(u.createElement)(h.ToolbarButton,{className:"components-toolbar__control block-library-colors-selector__toggle",label:Object(g.__)("Open Colors Selector"),onClick:t,onKeyDown:function(e){o||e.keyCode!==st.DOWN||(e.preventDefault(),e.stopPropagation(),t())},icon:Object(u.createElement)(r,null,Object(u.createElement)(n,null,Object(u.createElement)(ir,null)))}))}),renderContent:function(){return o}})},lr={},sr=Object(h.withFilters)("editor.BlockEdit")((function(e){var t=e.attributes,n=void 0===t?{}:t,r=e.name,o=Object(c.getBlockType)(r),i=Object(u.useContext)(or),a=Object(u.useMemo)((function(){return o&&o.usesContext?Object(f.pick)(i,o.usesContext):lr}),[o,i]);if(!o)return null;var s=o.edit||o.save;if(o.apiVersion>1||Object(c.hasBlockSupport)(o,"lightBlockWrapper",!1))return Object(u.createElement)(s,Object(l.a)({},e,{context:a}));var d=Object(c.hasBlockSupport)(o,"className",!0)?Object(c.getBlockDefaultClassName)(r):null,p=b()(d,n.className);return Object(u.createElement)(s,Object(l.a)({},e,{context:a,className:p}))}));function ur(e){var t={name:e.name,isSelected:e.isSelected,clientId:e.clientId,onFocus:e.onFocus,onCaretVerticalPositionChange:e.onCaretVerticalPositionChange};return Object(u.createElement)(z.a,{value:Object(u.useMemo)((function(){return t}),Object.values(t))},Object(u.createElement)(sr,e))}var dr=Object(h.createSlotFill)("BlockFormatControls"),br=dr.Fill,fr=dr.Slot;var pr=function(e){return Object(z.b)().isSelected?Object(u.createElement)(br,null,(function(t){var n=Object(f.isEmpty)(t)?null:t;return Object(u.createElement)(h.__experimentalToolbarContext.Provider,{value:n},e.children)})):null};pr.Slot=function(e){var t=Object(u.useContext)(h.__experimentalToolbarContext);return Object(u.createElement)(fr,Object(l.a)({},e,{fillProps:t}))};var mr=pr,vr=n(20),Or=n.n(vr),gr=n(45),hr=n(316),jr=n(115),kr=n(29),yr=function(e){return e+1},_r=function(e){return{top:e.offsetTop,left:e.offsetLeft}};var Er=function(e,t,n,r,o){var c=Object(p.useReducedMotion)()||!r,i=Object(u.useReducer)(yr,0),a=Object(re.a)(i,2),l=a[0],s=a[1],d=Object(u.useReducer)(yr,0),b=Object(re.a)(d,2),f=b[0],m=b[1],v=Object(u.useState)({x:0,y:0}),O=Object(re.a)(v,2),g=O[0],h=O[1],j=Object(u.useMemo)((function(){return e.current?_r(e.current):null}),[o]),k=Object(u.useMemo)((function(){if(!n||!e.current)return function(){};var t=Object(kr.getScrollContainer)(e.current);if(!t)return function(){};var r=e.current.getBoundingClientRect();return function(){var n=e.current.getBoundingClientRect().top-r.top;n&&(t.scrollTop+=n)}}),[o,n]);function y(n){var r=n.x,o=n.y;r=Math.round(r),o=Math.round(o),r===y.x&&o===y.y||(!function(n){var r=n.x,o=n.y;if(e.current){var c=0===r&&0===o;e.current.style.transformOrigin=c?"":"center",e.current.style.transform=c?"":"translate3d(".concat(r,"px,").concat(o,"px,0)"),e.current.style.zIndex=!t||c?"":"1",k()}}({x:r,y:o}),y.x=r,y.y=o)}Object(u.useLayoutEffect)((function(){l&&m()}),[l]),Object(u.useLayoutEffect)((function(){if(j)if(c)k();else{e.current.style.transform="";var t=_r(e.current);s(),h({x:Math.round(j.left-t.left),y:Math.round(j.top-t.top)})}}),[o]),y.x=0,y.y=0,Object(jr.useSpring)({from:{x:g.x,y:g.y},to:{x:0,y:0},reset:l!==f,config:{mass:5,tension:2e3,friction:200},immediate:c,onFrame:y})},Cr=Object(jr.animated)(h.__experimentalTreeGridRow);function wr(e){var t=e.isSelected,n=e.position,r=e.level,o=e.rowCount,c=e.children,i=e.className,a=e.path,s=Object(he.a)(e,["isSelected","position","level","rowCount","children","className","path"]),d=Object(u.useRef)(null),f=a.join("_"),p=Er(d,t,!1,!0,f);return Object(u.createElement)(Cr,Object(l.a)({ref:d,style:p,className:b()("block-editor-block-navigation-leaf",i),level:r,positionInSet:n,setSize:o},s),c)}var Sr=n(214),Ir=n(215),Br=n(314),xr=n(315);function Pr(e,t,n,r,o,c,i,a){var l=n+1,s=function(e){return"up"===e?"horizontal"===i?a?"right":"left":"up":"down"===e?"horizontal"===i?a?"left":"right":"down":null};if(e>1)return function(e,t,n,r,o){var c=t+1;if(o<0&&n)return Object(g.__)("Blocks cannot be moved up as they are already at the top");if(o>0&&r)return Object(g.__)("Blocks cannot be moved down as they are already at the bottom");if(o<0&&!n)return Object(g.sprintf)(Object(g._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,c);if(o>0&&!r)return Object(g.sprintf)(Object(g._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,c)}(e,n,r,o,c);if(r&&o)return Object(g.sprintf)(Object(g.__)("Block %s is the only block, and cannot be moved"),t);if(c>0&&!o){var u=s("down");if("down"===u)return Object(g.sprintf)(Object(g.__)("Move %1$s block from position %2$d down to position %3$d"),t,l,l+1);if("left"===u)return Object(g.sprintf)(Object(g.__)("Move %1$s block from position %2$d left to position %3$d"),t,l,l+1);if("right"===u)return Object(g.sprintf)(Object(g.__)("Move %1$s block from position %2$d right to position %3$d"),t,l,l+1)}if(c>0&&o){var d=s("down");if("down"===d)return Object(g.sprintf)(Object(g.__)("Block %1$s is at the end of the content and can’t be moved down"),t);if("left"===d)return Object(g.sprintf)(Object(g.__)("Block %1$s is at the end of the content and can’t be moved left"),t);if("right"===d)return Object(g.sprintf)(Object(g.__)("Block %1$s is at the end of the content and can’t be moved right"),t)}if(c<0&&!r){var b=s("up");if("up"===b)return Object(g.sprintf)(Object(g.__)("Move %1$s block from position %2$d up to position %3$d"),t,l,l-1);if("left"===b)return Object(g.sprintf)(Object(g.__)("Move %1$s block from position %2$d left to position %3$d"),t,l,l-1);if("right"===b)return Object(g.sprintf)(Object(g.__)("Move %1$s block from position %2$d right to position %3$d"),t,l,l-1)}if(c<0&&r){var f=s("up");if("up"===f)return Object(g.sprintf)(Object(g.__)("Block %1$s is at the beginning of the content and can’t be moved up"),t);if("left"===f)return Object(g.sprintf)(Object(g.__)("Block %1$s is at the beginning of the content and can’t be moved left"),t);if("right"===f)return Object(g.sprintf)(Object(g.__)("Block %1$s is at the beginning of the content and can’t be moved right"),t)}}var Tr=function(e,t,n){return"up"===e?"horizontal"===t?n?Sr.a:Ir.a:Br.a:"down"===e?"horizontal"===t?n?Ir.a:Sr.a:xr.a:null},Nr=function(e,t,n){return"up"===e?"horizontal"===t?n?Object(g.__)("Move right"):Object(g.__)("Move left"):Object(g.__)("Move up"):"down"===e?"horizontal"===t?n?Object(g.__)("Move left"):Object(g.__)("Move right"):Object(g.__)("Move down"):null},Dr=Object(u.forwardRef)((function(e,t){var n=e.clientIds,r=e.direction,o=e.orientation,i=Object(he.a)(e,["clientIds","direction","orientation"]),a=Object(p.useInstanceId)(Dr),s=Object(f.castArray)(n).length,d=Object(v.useSelect)((function(e){var t=e("core/block-editor"),i=t.getBlockIndex,a=t.getBlockRootClientId,l=t.getBlockOrder,s=t.getBlock,u=t.getSettings,d=t.getBlockListSettings,b=Object(f.castArray)(n),p=Object(f.first)(b),m=a(p),v=i(p,m),O=i(Object(f.last)(b),m),g=l(m),h=s(p),j=0===v,k=O===g.length-1,y=(d(m)||{}).orientation;return{blockType:h?Object(c.getBlockType)(h.name):null,isDisabled:"up"===r?j:k,rootClientId:m,firstIndex:v,isFirst:j,isLast:k,isRTL:u().isRTL,orientation:o||y}}),[n,r]),m=d.blockType,O=d.isDisabled,g=d.rootClientId,j=d.isFirst,k=d.isLast,y=d.firstIndex,_=d.isRTL,E=d.orientation,C=void 0===E?"vertical":E,w=Object(v.useDispatch)("core/block-editor"),S=w.moveBlocksDown,I=w.moveBlocksUp,B="up"===r?I:S,x="block-editor-block-mover-button__description-".concat(a);return Object(u.createElement)(u.Fragment,null,Object(u.createElement)(h.Button,Object(l.a)({ref:t,className:b()("block-editor-block-mover-button","is-".concat(r,"-button")),icon:Tr(r,C,_),label:Nr(r,C,_),"aria-describedby":x},i,{onClick:O?null:function(e){B(n,g),i.onClick&&i.onClick(e)},"aria-disabled":O})),Object(u.createElement)("span",{id:x,className:"block-editor-block-mover-button__description"},Pr(s,m&&m.title,y,j,k,"up"===r?-1:1,C,_)))})),Rr=Object(u.forwardRef)((function(e,t){return Object(u.createElement)(Dr,Object(l.a)({direction:"up",ref:t},e))})),Ar=Object(u.forwardRef)((function(e,t){return Object(u.createElement)(Dr,Object(l.a)({direction:"down",ref:t},e))}));function Mr(e){var t=e.level,n=e.isLastRow,r=e.terminatedLevels;return Object(f.times)(t-1,(function(e){var o=e+2,c=o===t;return Object(u.createElement)("div",{key:e,"aria-hidden":"true",className:b()("block-editor-block-navigator-descender-line",{"has-item":c,"is-last-row":n,"is-terminated":r.includes(o)})})}))}var Lr=Object(u.createContext)({__experimentalFeatures:!1}),Fr=function(){return Object(u.useContext)(Lr)},Vr=Object(u.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(j.Path,{d:"M11 13h2v-2h-2v2zm-6 0h2v-2H5v2zm12-2v2h2v-2h-2z"}));var Hr=function(e){var t=e.className,n=e.actions,r=e.children,o=e.secondaryActions;return Object(u.createElement)("div",{className:b()(t,"block-editor-warning")},Object(u.createElement)("div",{className:"block-editor-warning__contents"},Object(u.createElement)("p",{className:"block-editor-warning__message"},r),(u.Children.count(n)>0||o)&&Object(u.createElement)("div",{className:"block-editor-warning__actions"},u.Children.count(n)>0&&u.Children.map(n,(function(e,t){return Object(u.createElement)("span",{key:t,className:"block-editor-warning__action"},e)})),o&&Object(u.createElement)(h.DropdownMenu,{className:"block-editor-warning__secondary",icon:Vr,label:Object(g.__)("More options"),popoverProps:{position:"bottom left",className:"block-editor-warning__dropdown"},noIcons:!0},(function(){return Object(u.createElement)(h.MenuGroup,null,o.map((function(e,t){return Object(u.createElement)(h.MenuItem,{onClick:e.onClick,key:t},e.title)})))})))))},zr=n(279),Ur=function(e){var t=e.title,n=e.rawContent,r=e.renderedContent,o=e.action,c=e.actionText,i=e.className;return Object(u.createElement)("div",{className:i},Object(u.createElement)("div",{className:"block-editor-block-compare__content"},Object(u.createElement)("h2",{className:"block-editor-block-compare__heading"},t),Object(u.createElement)("div",{className:"block-editor-block-compare__html"},n),Object(u.createElement)("div",{className:"block-editor-block-compare__preview edit-post-visual-editor"},r)),Object(u.createElement)("div",{className:"block-editor-block-compare__action"},Object(u.createElement)(h.Button,{isSecondary:!0,tabIndex:"0",onClick:o},c)))};var Gr=function(e){var t,n,r,o,i=e.block,a=e.onKeep,l=e.onConvert,s=e.convertor,d=e.convertButtonText,p={rawContent:i.originalContent,renderedContent:Object(c.getSaveElement)(i.name,i.attributes)},m=(t=s(i),n=Object(f.castArray)(t),r=n.map((function(e){return Object(c.getSaveContent)(e.name,e.attributes,e.innerBlocks)})),o=n.map((function(e){return Object(c.getSaveElement)(e.name,e.attributes,e.innerBlocks)})),{rawContent:r.join(""),renderedContent:o}),v=function(e,t){return Object(zr.diffChars)(e,t).map((function(e,t){var n=b()({"block-editor-block-compare__added":e.added,"block-editor-block-compare__removed":e.removed});return Object(u.createElement)("span",{key:t,className:n},e.value)}))}(p.rawContent,m.rawContent);return Object(u.createElement)("div",{className:"block-editor-block-compare__wrapper"},Object(u.createElement)(Ur,{title:Object(g.__)("Current"),className:"block-editor-block-compare__current",action:a,actionText:Object(g.__)("Convert to HTML"),rawContent:p.rawContent,renderedContent:p.renderedContent}),Object(u.createElement)(Ur,{title:Object(g.__)("After Conversion"),className:"block-editor-block-compare__converted",action:l,actionText:d,rawContent:v,renderedContent:m.renderedContent}))};var Wr=function(e){return Object(c.rawHandler)({HTML:e.originalContent})},Kr=Object(p.compose)([Object(v.withSelect)((function(e,t){var n=t.clientId;return{block:e("core/block-editor").getBlock(n)}})),Object(v.withDispatch)((function(e,t){var n=t.block,r=e("core/block-editor").replaceBlock;return{convertToClassic:function(){r(n.clientId,function(e){return Object(c.createBlock)("core/freeform",{content:e.originalContent})}(n))},convertToHTML:function(){r(n.clientId,function(e){return Object(c.createBlock)("core/html",{content:e.originalContent})}(n))},convertToBlocks:function(){r(n.clientId,Wr(n))},attemptBlockRecovery:function(){var e,t,o,i;r(n.clientId,(t=(e=n).name,o=e.attributes,i=e.innerBlocks,Object(c.createBlock)(t,o,i)))}}}))])((function(e){var t=e.convertToHTML,n=e.convertToBlocks,r=e.convertToClassic,o=e.attemptBlockRecovery,i=e.block,a=!!Object(c.getBlockType)("core/html"),l=Object(u.useState)(!1),s=Object(re.a)(l,2),d=s[0],b=s[1],f=Object(u.useCallback)((function(){return b(!0)}),[]),p=Object(u.useCallback)((function(){return b(!1)}),[]),m=Object(u.useMemo)((function(){return[{title:Object(g._x)("Resolve","imperative verb"),onClick:f},a&&{title:Object(g.__)("Convert to HTML"),onClick:t},{title:Object(g.__)("Convert to Classic Block"),onClick:r}].filter(Boolean)}),[f,t,r]);return Object(u.createElement)(u.Fragment,null,Object(u.createElement)(Hr,{actions:[Object(u.createElement)(h.Button,{key:"recover",onClick:o,isPrimary:!0},Object(g.__)("Attempt Block Recovery"))],secondaryActions:m},Object(g.__)("This block contains unexpected or invalid content.")),d&&Object(u.createElement)(h.Modal,{title:Object(g.__)("Resolve Block"),onRequestClose:p,className:"block-editor-block-compare"},Object(u.createElement)(Gr,{block:i,onKeep:t,onConvert:n,convertor:Wr,convertButtonText:Object(g.__)("Convert to Blocks")})))})),qr=Object(u.createElement)(Hr,{className:"block-editor-block-list__block-crash-warning"},Object(g.__)("This block has encountered an error and cannot be previewed.")),$r=function(){return qr};function Yr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object($t.a)(e);if(t){var o=Object($t.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(qt.a)(this,n)}}var Xr=function(e){Object(Kt.a)(n,e);var t=Yr(n);function n(){var e;return Object(Ut.a)(this,n),(e=t.apply(this,arguments)).state={hasError:!1},e}return Object(Gt.a)(n,[{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}}]),n}(u.Component),Qr=n(100),Zr=n.n(Qr);var Jr=function(e){var t=e.clientId,n=Object(u.useState)(""),r=Object(re.a)(n,2),o=r[0],i=r[1],a=Object(v.useSelect)((function(e){return e("core/block-editor").getBlock(t)}),[t]),l=Object(v.useDispatch)("core/block-editor").updateBlock;return Object(u.useEffect)((function(){i(Object(c.getBlockContent)(a))}),[a]),Object(u.createElement)(Zr.a,{className:"block-editor-block-list__block-html-textarea",value:o,onBlur:function(){var e=Object(c.getBlockType)(a.name),n=Object(c.getBlockAttributes)(e,o,a.attributes),r=o||Object(c.getSaveContent)(e,n),s=!o||Object(c.isValidBlockContent)(e,n,r);l(t,{attributes:n,originalContent:r,isValid:s}),o||i({content:r})},onChange:function(e){return i(e.target.value)}})},eo=n(36),to=n.n(eo);function no(e,t){for(var n="start"===t?"firstChild":"lastChild",r="start"===t?"nextSibling":"previousSibling";e[n];)for(e=e[n];e.nodeType===e.TEXT_NODE&&/^[ \t\n]*$/.test(e.data)&&e[r];)e=e[r];return e}function ro(e){var t=e("core/block-editor"),n=t.isSelectionEnabled,r=t.isMultiSelecting,o=t.getMultiSelectedBlockClientIds,c=t.hasMultiSelection,i=t.getBlockParents,a=t.getSelectedBlockClientId;return{isSelectionEnabled:n(),isMultiSelecting:r(),multiSelectedBlockClientIds:o(),hasMultiSelection:c(),getBlockParents:i,selectedBlockClientId:a()}}function oo(e,t){Array.from(e.querySelectorAll(".rich-text")).forEach((function(e){t?e.setAttribute("contenteditable",!0):e.removeAttribute("contenteditable")}))}var co=n(209),io=[Object(u.createInterpolateElement)(Object(g.__)("While writing, you can press <kbd>/</kbd> to quickly insert new blocks."),{kbd:Object(u.createElement)("kbd",null)}),Object(u.createInterpolateElement)(Object(g.__)("Indent a list by pressing <kbd>space</kbd> at the beginning of a line."),{kbd:Object(u.createElement)("kbd",null)}),Object(u.createInterpolateElement)(Object(g.__)("Outdent a list by pressing <kbd>backspace</kbd> at the beginning of a line."),{kbd:Object(u.createElement)("kbd",null)}),Object(g.__)("Drag files into the editor to automatically insert media blocks."),Object(g.__)("Change a block's type by pressing the block icon on the toolbar.")];var ao=function(){var e=Object(u.useState)(Math.floor(Math.random()*io.length)),t=Object(re.a)(e,1)[0];return Object(u.createElement)(h.Tip,null,io[t])},lo=n(159),so=n(141),uo=n(306);var bo=function e(t){var n=t.className,r=t.onChange,o=t.value,c=t.placeholder,i=Object(p.useInstanceId)(e),a=Object(u.useRef)();return Object(u.createElement)("div",{className:b()("block-editor-inserter__search",n)},Object(u.createElement)(h.VisuallyHidden,{as:"label",htmlFor:"block-editor-inserter__search-".concat(i)},c),Object(u.createElement)("input",{ref:a,className:"block-editor-inserter__search-input",id:"block-editor-inserter__search-".concat(i),type:"search",placeholder:c,autoFocus:!0,onChange:function(e){return r(e.target.value)},autoComplete:"off",value:o||""}),Object(u.createElement)("div",{className:"block-editor-inserter__search-icon"},!!o&&Object(u.createElement)(h.Button,{icon:lo.a,label:Object(g.__)("Reset search"),onClick:function(){r(""),a.current.focus()}}),!o&&Object(u.createElement)(so.a,{icon:uo.a})))};var fo=function(e){var t=e.blockType;return Object(u.createElement)("div",{className:"block-editor-block-card"},Object(u.createElement)(qn,{icon:t.icon,showColors:!0}),Object(u.createElement)("div",{className:"block-editor-block-card__content"},Object(u.createElement)("h2",{className:"block-editor-block-card__title"},t.title),Object(u.createElement)("span",{className:"block-editor-block-card__description"},t.description)))},po={insertUsage:{}},mo={alignWide:!1,colors:[{name:Object(g.__)("Black"),slug:"black",color:"#000000"},{name:Object(g.__)("Cyan bluish gray"),slug:"cyan-bluish-gray",color:"#abb8c3"},{name:Object(g.__)("White"),slug:"white",color:"#ffffff"},{name:Object(g.__)("Pale pink"),slug:"pale-pink",color:"#f78da7"},{name:Object(g.__)("Vivid red"),slug:"vivid-red",color:"#cf2e2e"},{name:Object(g.__)("Luminous vivid orange"),slug:"luminous-vivid-orange",color:"#ff6900"},{name:Object(g.__)("Luminous vivid amber"),slug:"luminous-vivid-amber",color:"#fcb900"},{name:Object(g.__)("Light green cyan"),slug:"light-green-cyan",color:"#7bdcb5"},{name:Object(g.__)("Vivid green cyan"),slug:"vivid-green-cyan",color:"#00d084"},{name:Object(g.__)("Pale cyan blue"),slug:"pale-cyan-blue",color:"#8ed1fc"},{name:Object(g.__)("Vivid cyan blue"),slug:"vivid-cyan-blue",color:"#0693e3"},{name:Object(g.__)("Vivid purple"),slug:"vivid-purple",color:"#9b51e0"}],fontSizes:[{name:Object(g._x)("Small","font size name"),size:13,slug:"small"},{name:Object(g._x)("Normal","font size name"),size:16,slug:"normal"},{name:Object(g._x)("Medium","font size name"),size:20,slug:"medium"},{name:Object(g._x)("Large","font size name"),size:36,slug:"large"},{name:Object(g._x)("Huge","font size name"),size:42,slug:"huge"}],imageSizes:[{slug:"thumbnail",name:Object(g.__)("Thumbnail")},{slug:"medium",name:Object(g.__)("Medium")},{slug:"large",name:Object(g.__)("Large")},{slug:"full",name:Object(g.__)("Full Size")}],imageEditing:!0,maxWidth:580,allowedBlockTypes:!0,maxUploadFileSize:0,allowedMimeTypes:null,availableLegacyWidgets:{},__experimentalCanUserUseUnfilteredHTML:!1,__experimentalBlockDirectory:!1,__experimentalEnableFullSiteEditing:!1,__experimentalEnableFullSiteEditingDemo:!1,__mobileEnablePageTemplates:!1,__experimentalBlockPatterns:[],__experimentalBlockPatternCategories:[],__experimentalSpotlightEntityBlocks:[],gradients:[{name:Object(g.__)("Vivid cyan blue to vivid purple"),gradient:"linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)",slug:"vivid-cyan-blue-to-vivid-purple"},{name:Object(g.__)("Light green cyan to vivid green cyan"),gradient:"linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%)",slug:"light-green-cyan-to-vivid-green-cyan"},{name:Object(g.__)("Luminous vivid amber to luminous vivid orange"),gradient:"linear-gradient(135deg,rgba(252,185,0,1) 0%,rgba(255,105,0,1) 100%)",slug:"luminous-vivid-amber-to-luminous-vivid-orange"},{name:Object(g.__)("Luminous vivid orange to vivid red"),gradient:"linear-gradient(135deg,rgba(255,105,0,1) 0%,rgb(207,46,46) 100%)",slug:"luminous-vivid-orange-to-vivid-red"},{name:Object(g.__)("Very light gray to cyan bluish gray"),gradient:"linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)",slug:"very-light-gray-to-cyan-bluish-gray"},{name:Object(g.__)("Cool to warm spectrum"),gradient:"linear-gradient(135deg,rgb(74,234,220) 0%,rgb(151,120,209) 20%,rgb(207,42,186) 40%,rgb(238,44,130) 60%,rgb(251,105,98) 80%,rgb(254,248,76) 100%)",slug:"cool-to-warm-spectrum"},{name:Object(g.__)("Blush light purple"),gradient:"linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%)",slug:"blush-light-purple"},{name:Object(g.__)("Blush bordeaux"),gradient:"linear-gradient(135deg,rgb(254,205,165) 0%,rgb(254,45,45) 50%,rgb(107,0,62) 100%)",slug:"blush-bordeaux"},{name:Object(g.__)("Luminous dusk"),gradient:"linear-gradient(135deg,rgb(255,203,112) 0%,rgb(199,81,192) 50%,rgb(65,88,208) 100%)",slug:"luminous-dusk"},{name:Object(g.__)("Pale ocean"),gradient:"linear-gradient(135deg,rgb(255,245,203) 0%,rgb(182,227,212) 50%,rgb(51,167,181) 100%)",slug:"pale-ocean"},{name:Object(g.__)("Electric grass"),gradient:"linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%)",slug:"electric-grass"},{name:Object(g.__)("Midnight"),gradient:"linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%)",slug:"midnight"}]};function vo(e,t,n){return[].concat(Object(ne.a)(e.slice(0,n)),Object(ne.a)(Object(f.castArray)(t)),Object(ne.a)(e.slice(n)))}function Oo(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=Object(ne.a)(e);return o.splice(t,r),vo(o,e.slice(t,t+r),n)}function go(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ho(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?go(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):go(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Object(s.a)({},t,[]);return e.forEach((function(e){var r=e.clientId,o=e.innerBlocks;n[t].push(r),Object.assign(n,jo(o,r))})),n}function ko(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.reduce((function(e,n){return Object.assign(e,Object(s.a)({},n.clientId,t),ko(n.innerBlocks,n.clientId))}),{})}function yo(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.identity,n={},r=Object(ne.a)(e);r.length;){var o=r.shift(),c=o.innerBlocks,i=Object(he.a)(o,["innerBlocks"]);r.push.apply(r,Object(ne.a)(c)),n[i.clientId]=t(i)}return n}function _o(e){return yo(e,(function(e){return Object(f.omit)(e,"attributes")}))}function Eo(e){return yo(e,(function(e){return e.attributes}))}function Co(e,t){return e===t?ho({},e):t}function wo(e,t){return"UPDATE_BLOCK_ATTRIBUTES"===e.type&&void 0!==t&&"UPDATE_BLOCK_ATTRIBUTES"===t.type&&Object(f.isEqual)(e.clientIds,t.clientIds)&&(n=e.attributes,r=t.attributes,Object(f.isEqual)(Object(f.keys)(n),Object(f.keys)(r)));var n,r}var So=function(e){return e.reduce((function(e,t){return e[t]={},e}),{})};var Io=Object(f.flow)(v.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=ho({},t)).attributes=Object(f.mapValues)(t.attributes,(function(e,n){return"core/block"===t.byClientId[n].name&&e.ref===r?ho(ho({},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&&!t.controlledInnerBlocks[r]);return e}),[])};switch(n.type){case"RESET_BLOCKS":r.cache=Object(f.mapValues)(yo(n.blocks),(function(){return{}}));break;case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":var c=Object(f.keys)(yo(n.blocks));n.rootClientId&&!t.controlledInnerBlocks[n.rootClientId]&&c.push(n.rootClientId),r.cache=ho(ho({},r.cache),So(o(c)));break;case"UPDATE_BLOCK":r.cache=ho(ho({},r.cache),So(o([n.clientId])));break;case"UPDATE_BLOCK_ATTRIBUTES":r.cache=ho(ho({},r.cache),So(o(n.clientIds)));break;case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":var i=So(o(n.replacedClientIds));r.cache=ho(ho(ho({},Object(f.omit)(r.cache,n.replacedClientIds)),Object(f.omit)(i,n.replacedClientIds)),So(Object(f.keys)(yo(n.blocks))));break;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":r.cache=ho(ho({},Object(f.omit)(r.cache,n.removedClientIds)),So(Object(f.difference)(o(n.clientIds),n.clientIds)));break;case"MOVE_BLOCKS_TO_POSITION":var a=Object(ne.a)(n.clientIds);n.fromRootClientId&&a.push(n.fromRootClientId),n.toRootClientId&&a.push(n.toRootClientId),r.cache=ho(ho({},r.cache),So(o(a)));break;case"MOVE_BLOCKS_UP":case"MOVE_BLOCKS_DOWN":var l=[];n.rootClientId&&l.push(n.rootClientId),r.cache=ho(ho({},r.cache),So(o(l)));break;case"SAVE_REUSABLE_BLOCK_SUCCESS":var s=Object(f.keys)(Object(f.omitBy)(r.attributes,(function(e,t){return"core/block"!==r.byClientId[t].name||e.ref!==n.updatedId})));r.cache=ho(ho({},r.cache),So(o(s)))}return r}}),(function(e){return function(t,n){var r=function(e){for(var r=e,o=0;o<r.length;o++){var c;!t.order[r[o]]||n.keepControlledInnerBlocks&&n.keepControlledInnerBlocks[r[o]]||(r===e&&(r=Object(ne.a)(r)),(c=r).push.apply(c,Object(ne.a)(t.order[r[o]])))}return r};if(t)switch(n.type){case"REMOVE_BLOCKS":n=ho(ho({},n),{},{type:"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN",removedClientIds:r(n.clientIds)});break;case"REPLACE_BLOCKS":n=ho(ho({},n),{},{type:"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN",replacedClientIds:r(n.clientIds)})}return e(t,n)}}),(function(e){return function(t,n){if("REPLACE_INNER_BLOCKS"!==n.type)return e(t,n);var r={};if(Object.keys(t.controlledInnerBlocks).length)for(var o=Object(ne.a)(n.blocks);o.length;){var c=o.shift(),i=c.innerBlocks,a=Object(he.a)(c,["innerBlocks"]);o.push.apply(o,Object(ne.a)(i)),t.controlledInnerBlocks[a.clientId]&&(r[a.clientId]=!0)}var l=t;t.order[n.rootClientId]&&(l=e(l,{type:"REMOVE_BLOCKS",keepControlledInnerBlocks:r,clientIds:t.order[n.rootClientId]}));var s=l;return n.blocks.length&&((s=e(s,ho(ho({},n),{},{type:"INSERT_BLOCKS",index:0}))).order=ho(ho({},s.order),Object(f.reduce)(r,(function(e,n,r){return t.order[r]&&(e[r]=t.order[r]),e}),{}))),s}}),(function(e){return function(t,n){if(t&&"RESET_BLOCKS"===n.type){var r=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object(f.reduce)(t[n],(function(n,o){return r[o]?n:[].concat(Object(ne.a)(n),[o],Object(ne.a)(e(t,o)))}),[])}(t.order,"",t.controlledInnerBlocks),o=Object.keys(Object(f.pickBy)(t.controlledInnerBlocks));return ho(ho({},t),{},{byClientId:ho(ho({},Object(f.omit)(t.byClientId,r)),_o(n.blocks)),attributes:ho(ho({},Object(f.omit)(t.attributes,r)),Eo(n.blocks)),order:ho(ho({},Object(f.omit)(t.order,r)),Object(f.omit)(jo(n.blocks),o)),parents:ho(ho({},Object(f.omit)(t.parents,r)),ko(n.blocks)),cache:ho(ho({},Object(f.omit)(t.cache,r)),Object(f.omit)(Object(f.mapValues)(yo(n.blocks),(function(){return{}})),o))})}return e(t,n)}}),(function(e){var t,n=!1;return function(r,o){var c=e(r,o),i="MARK_LAST_CHANGE_AS_PERSISTENT"===o.type||n;if(r===c&&!i){var a;n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===o.type;var l=null===(a=null==r?void 0:r.isPersistentChange)||void 0===a||a;return r.isPersistentChange===l?r:ho(ho({},c),{},{isPersistentChange:l})}return c=ho(ho({},c),{},{isPersistentChange:i?!n:!wo(o,t)}),t=o,n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===o.type,c}}),(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 _o(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return ho(ho({},e),_o(t.blocks));case"UPDATE_BLOCK":if(!e[t.clientId])return e;var n=Object(f.omit)(t.updates,"attributes");return Object(f.isEmpty)(n)?e:ho(ho({},e),{},Object(s.a)({},t.clientId,ho(ho({},e[t.clientId]),n)));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?ho(ho({},Object(f.omit)(e,t.replacedClientIds)),_o(t.blocks)):e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(f.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 Eo(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return ho(ho({},e),Eo(t.blocks));case"UPDATE_BLOCK":return e[t.clientId]&&t.updates.attributes?ho(ho({},e),{},Object(s.a)({},t.clientId,ho(ho({},e[t.clientId]),t.updates.attributes))):e;case"UPDATE_BLOCK_ATTRIBUTES":if(t.clientIds.every((function(t){return!e[t]})))return e;var n=t.clientIds.reduce((function(n,r){return ho(ho({},n),{},Object(s.a)({},r,Object(f.reduce)(t.attributes,(function(t,n,o){return n!==t[o]&&((t=Co(e[r],t))[o]=n),t}),e[r])))}),{});return t.clientIds.every((function(t){return n[t]===e[t]}))?e:ho(ho({},e),n);case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?ho(ho({},Object(f.omit)(e,t.replacedClientIds)),Eo(t.blocks)):e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(f.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 jo(t.blocks);case"RECEIVE_BLOCKS":return ho(ho({},e),Object(f.omit)(jo(t.blocks),""));case"INSERT_BLOCKS":var n=t.rootClientId,r=void 0===n?"":n,o=e[r]||[],c=jo(t.blocks,r),i=t.index,a=void 0===i?o.length:i;return ho(ho(ho({},e),c),{},Object(s.a)({},r,vo(o,c[r],a)));case"MOVE_BLOCKS_TO_POSITION":var l,u=t.fromRootClientId,d=void 0===u?"":u,b=t.toRootClientId,p=void 0===b?"":b,m=t.clientIds,v=t.index,O=void 0===v?e[p].length:v;if(d===p){var g=e[p],h=g.indexOf(m[0]);return ho(ho({},e),{},Object(s.a)({},p,Oo(e[p],h,O,m.length)))}return ho(ho({},e),{},(l={},Object(s.a)(l,d,f.without.apply(void 0,[e[d]].concat(Object(ne.a)(m)))),Object(s.a)(l,p,vo(e[p],m,O)),l));case"MOVE_BLOCKS_UP":var j=t.clientIds,k=t.rootClientId,y=void 0===k?"":k,_=Object(f.first)(j),E=e[y];if(!E.length||_===Object(f.first)(E))return e;var C=E.indexOf(_);return ho(ho({},e),{},Object(s.a)({},y,Oo(E,C,C-1,j.length)));case"MOVE_BLOCKS_DOWN":var w=t.clientIds,S=t.rootClientId,I=void 0===S?"":S,B=Object(f.first)(w),x=Object(f.last)(w),P=e[I];if(!P.length||x===Object(f.last)(P))return e;var T=P.indexOf(B);return ho(ho({},e),{},Object(s.a)({},I,Oo(P,T,T+1,w.length)));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":var N=t.clientIds;if(!t.blocks)return e;var D=jo(t.blocks);return Object(f.flow)([function(e){return Object(f.omit)(e,t.replacedClientIds)},function(e){return ho(ho({},e),Object(f.omit)(D,""))},function(e){return Object(f.mapValues)(e,(function(e){return Object(f.reduce)(e,(function(e,t){return t===N[0]?[].concat(Object(ne.a)(e),Object(ne.a)(D[""])):(-1===N.indexOf(t)&&e.push(t),e)}),[])}))}])(e);case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(f.flow)([function(e){return Object(f.omit)(e,t.removedClientIds)},function(e){return Object(f.mapValues)(e,(function(e){return f.without.apply(void 0,[e].concat(Object(ne.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 ko(t.blocks);case"RECEIVE_BLOCKS":return ho(ho({},e),ko(t.blocks));case"INSERT_BLOCKS":return ho(ho({},e),ko(t.blocks,t.rootClientId||""));case"MOVE_BLOCKS_TO_POSITION":return ho(ho({},e),t.clientIds.reduce((function(e,n){return e[n]=t.toRootClientId||"",e}),{}));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return ho(ho({},Object(f.omit)(e,t.replacedClientIds)),ko(t.blocks,e[t.clientIds[0]]));case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(f.omit)(e,t.removedClientIds)}return e},controlledInnerBlocks:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.clientId,o=t.hasControlledInnerBlocks;return"SET_HAS_CONTROLLED_INNER_BLOCKS"===n?ho(ho({},e),{},Object(s.a)({},r,o)):e}});function Bo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"CLEAR_SELECTED_BLOCK":return e.clientId?{}:e;case"SELECT_BLOCK":return t.clientId===e.clientId?e:{clientId:t.clientId};case"REPLACE_INNER_BLOCKS":case"INSERT_BLOCKS":return t.updateSelection&&t.blocks.length?{clientId:t.blocks[0].clientId}:e;case"REMOVE_BLOCKS":return t.clientIds&&t.clientIds.length&&-1!==t.clientIds.indexOf(e.clientId)?{}:e;case"REPLACE_BLOCKS":if(-1===t.clientIds.indexOf(e.clientId))return e;var n=t.indexToSelect||t.blocks.length-1,r=t.blocks[n];if(!r)return{};if(r.clientId===e.clientId)return e;var o={clientId:r.clientId};return"number"==typeof t.initialPosition&&(o.initialPosition=t.initialPosition),o}return e}var xo=Object(v.combineReducers)({blocks:Io,isTyping:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_TYPING":return!0;case"STOP_TYPING":return!1}return e},draggedBlocks:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_DRAGGING_BLOCKS":return t.clientIds;case"STOP_DRAGGING_BLOCKS":return[]}return e},isCaretWithinFormattedText:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ENTER_FORMATTED_TEXT":return!0;case"EXIT_FORMATTED_TEXT":return!1}return e},selectionStart:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SELECTION_CHANGE":return{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.startOffset};case"RESET_SELECTION":return t.selectionStart;case"MULTI_SELECT":return{clientId:t.start}}return Bo(e,t)},selectionEnd:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SELECTION_CHANGE":return{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.endOffset};case"RESET_SELECTION":return t.selectionEnd;case"MULTI_SELECT":return{clientId:t.end}}return Bo(e,t)},isMultiSelecting:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_MULTI_SELECT":return!0;case"STOP_MULTI_SELECT":return!1}return e},isSelectionEnabled:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"TOGGLE_SELECTION":return t.isSelectionEnabled}return e},initialPosition:function(e,t){return"REPLACE_BLOCKS"===t.type&&"number"==typeof t.initialPosition||"SELECT_BLOCK"===t.type?t.initialPosition:"REMOVE_BLOCKS"===t.type||"START_TYPING"===t.type?e:void 0},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 ho(ho({},e),{},Object(s.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(f.omit)(e,t.clientIds);case"UPDATE_BLOCK_LIST_SETTINGS":var n=t.clientId;return t.settings?Object(f.isEqual)(e[n],t.settings)?e:ho(ho({},e),{},Object(s.a)({},n,t.settings)):e.hasOwnProperty(n)?Object(f.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":var n=t.rootClientId,r=t.index;return{rootClientId:n,index:r};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 ho(ho({},e),{},{isValid:t.isValid})}return e},settings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:mo,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_SETTINGS":return ho(ho({},e),t.settings)}return e},preferences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:po,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(c.isReusableBlock)(n)&&(o.ref=n.attributes.ref,r+="/"+n.attributes.ref),ho(ho({},e),{},{insertUsage:ho(ho({},e.insertUsage),{},Object(s.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(s.a)({},t.clientId,t.updates.attributes);case"UPDATE_BLOCK_ATTRIBUTES":return t.clientIds.reduce((function(e,n){return ho(ho({},e),{},Object(s.a)({},n,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"INSERT_BLOCKS"!==t.type&&("SET_NAVIGATION_MODE"===t.type?t.isNavigationMode:e)},hasBlockMovingClientId:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return"SET_BLOCK_MOVING_MODE"===t.type?t.hasBlockMovingClientId:e},automaticChangeStatus:function(e,t){switch(t.type){case"MARK_AUTOMATIC_CHANGE":return"pending";case"MARK_AUTOMATIC_CHANGE_FINAL":return"pending"===e?"final":void 0;case"SELECTION_CHANGE":return"final"!==e?e:void 0;case"STOP_TYPING":return e}},highlightedBlock:function(e,t){switch(t.type){case"TOGGLE_BLOCK_HIGHLIGHT":var n=t.clientId;return t.isHighlighted?n:e===n?null:e;case"SELECT_BLOCK":if(t.clientId!==e)return null}return e}}),Po=n(150),To=n.n(Po),No=n(277),Do=n.n(No),Ro=n(40);function Ao(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Mo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Mo(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}function Mo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Lo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lo(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Vo=Or.a.mark(ec),Ho=Or.a.mark(ac),zo=Or.a.mark(lc),Uo=Or.a.mark(mc),Go=Or.a.mark(jc),Wo=Or.a.mark(kc),Ko=Or.a.mark(_c),qo=Or.a.mark(Bc),$o=Or.a.mark(qc),Yo=Or.a.mark($c),Xo=Or.a.mark(Yc),Qo=Or.a.mark(Xc),Zo=Or.a.mark(Qc),Jo=Or.a.mark(Jc);function ec(){return Or.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,v.controls.select("core/block-editor","getBlockCount");case 2:if(0!==e.sent){e.next=7;break}return e.next=6,Vc();case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}}),Vo)}function tc(e){return{type:"RESET_BLOCKS",blocks:e}}function nc(e,t){return{type:"RESET_SELECTION",selectionStart:e,selectionEnd:t}}function rc(e){return{type:"RECEIVE_BLOCKS",blocks:e}}function oc(e,t){return{type:"UPDATE_BLOCK_ATTRIBUTES",clientIds:Object(f.castArray)(e),attributes:t}}function cc(e,t){return{type:"UPDATE_BLOCK",clientId:e,updates:t}}function ic(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:"SELECT_BLOCK",initialPosition:t,clientId:e}}function ac(e){var t;return Or.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,v.controls.select("core/block-editor","getPreviousBlockClientId",e);case 2:if(!(t=n.sent)){n.next=7;break}return n.next=6,ic(t,-1);case 6:return n.abrupt("return",[t]);case 7:case"end":return n.stop()}}),Ho)}function lc(e){var t;return Or.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,v.controls.select("core/block-editor","getNextBlockClientId",e);case 2:if(!(t=n.sent)){n.next=7;break}return n.next=6,ic(t);case 6:return n.abrupt("return",[t]);case 7:case"end":return n.stop()}}),zo)}function sc(){return{type:"START_MULTI_SELECT"}}function uc(){return{type:"STOP_MULTI_SELECT"}}function dc(e,t){return{type:"MULTI_SELECT",start:e,end:t}}function bc(){return{type:"CLEAR_SELECTED_BLOCK"}}function fc(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return{type:"TOGGLE_SELECTION",isSelectionEnabled:e}}function pc(e,t){var n,r,o=null!==(n=null==t||null===(r=t.__experimentalPreferredStyleVariations)||void 0===r?void 0:r.value)&&void 0!==n?n:{};return e.map((function(e){var t,n=e.name;if(!Object(c.hasBlockSupport)(n,"defaultStylePicker",!0))return e;if(!o[n])return e;var r=null===(t=e.attributes)||void 0===t?void 0:t.className;if(null==r?void 0:r.includes("is-style-"))return e;var i=e.attributes,a=void 0===i?{}:i,l=o[n];return Fo(Fo({},e),{},{attributes:Fo(Fo({},a),{},{className:"".concat(r||""," is-style-").concat(l).trim()})})}))}function mc(e,t,n,r,o){var c,i,a;return Or.a.wrap((function(l){for(;;)switch(l.prev=l.next){case 0:return e=Object(f.castArray)(e),l.t0=pc,l.t1=Object(f.castArray)(t),l.next=5,v.controls.select("core/block-editor","getSettings");case 5:return l.t2=l.sent,t=(0,l.t0)(l.t1,l.t2),l.next=9,v.controls.select("core/block-editor","getBlockRootClientId",Object(f.first)(e));case 9:c=l.sent,i=0;case 11:if(!(i<t.length)){l.next=21;break}return a=t[i],l.next=15,v.controls.select("core/block-editor","canInsertBlockType",a.name,c);case 15:if(l.sent){l.next=18;break}return l.abrupt("return");case 18:i++,l.next=11;break;case 21:return l.next=23,{type:"REPLACE_BLOCKS",clientIds:e,blocks:t,time:Date.now(),indexToSelect:n,initialPosition:r,meta:o};case 23:return l.delegateYield(ec(),"t3",24);case 24:case"end":return l.stop()}}),Uo)}function vc(e,t){return mc(e,t)}function Oc(e){return function(t,n){return{clientIds:Object(f.castArray)(t),type:e,rootClientId:n}}}var gc=Oc("MOVE_BLOCKS_DOWN"),hc=Oc("MOVE_BLOCKS_UP");function jc(e){var t,n,r,o,c,i=arguments;return Or.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=i.length>1&&void 0!==i[1]?i[1]:"",n=i.length>2&&void 0!==i[2]?i[2]:"",r=i.length>3?i[3]:void 0,a.next=5,v.controls.select("core/block-editor","getTemplateLock",t);case 5:if("all"!==(o=a.sent)){a.next=8;break}return a.abrupt("return");case 8:if(c={type:"MOVE_BLOCKS_TO_POSITION",fromRootClientId:t,toRootClientId:n,clientIds:e,index:r},t!==n){a.next=13;break}return a.next=12,c;case 12:return a.abrupt("return");case 13:if("insert"!==o){a.next=15;break}return a.abrupt("return");case 15:return a.next=17,v.controls.select("core/block-editor","canInsertBlocks",e,n);case 17:if(!a.sent){a.next=21;break}return a.next=21,c;case 21:case"end":return a.stop()}}),Go)}function kc(e){var t,n,r,o=arguments;return Or.a.wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return t=o.length>1&&void 0!==o[1]?o[1]:"",n=o.length>2&&void 0!==o[2]?o[2]:"",r=o.length>3?o[3]:void 0,c.next=5,jc([e],t,n,r);case 5:case"end":return c.stop()}}),Wo)}function yc(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return _c([e],t,n,r)}function _c(e,t,n){var r,o,c,i,a,l,s=arguments;return Or.a.wrap((function(u){for(;;)switch(u.prev=u.next){case 0:return r=!(s.length>3&&void 0!==s[3])||s[3],o=s.length>4?s[4]:void 0,u.t0=pc,u.t1=Object(f.castArray)(e),u.next=6,v.controls.select("core/block-editor","getSettings");case 6:u.t2=u.sent,e=(0,u.t0)(u.t1,u.t2),c=[],i=Ao(e),u.prev=10,i.s();case 12:if((a=i.n()).done){u.next=20;break}return l=a.value,u.next=16,v.controls.select("core/block-editor","canInsertBlockType",l.name,n);case 16:u.sent&&c.push(l);case 18:u.next=12;break;case 20:u.next=25;break;case 22:u.prev=22,u.t3=u.catch(10),i.e(u.t3);case 25:return u.prev=25,i.f(),u.finish(25);case 28:if(!c.length){u.next=30;break}return u.abrupt("return",{type:"INSERT_BLOCKS",blocks:c,index:t,rootClientId:n,time:Date.now(),updateSelection:r,meta:o});case 30:case"end":return u.stop()}}),Ko,null,[[10,22,25,28]])}function Ec(e,t){return{type:"SHOW_INSERTION_POINT",rootClientId:e,index:t}}function Cc(){return{type:"HIDE_INSERTION_POINT"}}function wc(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}function Sc(){return{type:"SYNCHRONIZE_TEMPLATE"}}function Ic(e,t){return{type:"MERGE_BLOCKS",blocks:[e,t]}}function Bc(e){var t,n,r,o,c=arguments;return Or.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(t=!(c.length>1&&void 0!==c[1])||c[1],e&&e.length){i.next=3;break}return i.abrupt("return");case 3:return e=Object(f.castArray)(e),i.next=6,v.controls.select("core/block-editor","getBlockRootClientId",e[0]);case 6:return n=i.sent,i.next=9,v.controls.select("core/block-editor","getTemplateLock",n);case 9:if(!i.sent){i.next=12;break}return i.abrupt("return");case 12:if(!t){i.next=18;break}return i.next=15,ac(e[0]);case 15:r=i.sent,i.next=21;break;case 18:return i.next=20,v.controls.select("core/block-editor","getPreviousBlockClientId",e[0]);case 20:r=i.sent;case 21:return i.next=23,{type:"REMOVE_BLOCKS",clientIds:e};case 23:return i.delegateYield(ec(),"t0",24);case 24:return o=i.t0,i.abrupt("return",[r||o]);case 26:case"end":return i.stop()}}),qo)}function xc(e,t){return Bc([e],t)}function Pc(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return{type:"REPLACE_INNER_BLOCKS",rootClientId:e,blocks:t,updateSelection:n,time:Date.now()}}function Tc(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function Nc(){return{type:"START_TYPING"}}function Dc(){return{type:"STOP_TYPING"}}function Rc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{type:"START_DRAGGING_BLOCKS",clientIds:e}}function Ac(){return{type:"STOP_DRAGGING_BLOCKS"}}function Mc(){return{type:"ENTER_FORMATTED_TEXT"}}function Lc(){return{type:"EXIT_FORMATTED_TEXT"}}function Fc(e,t,n,r){return{type:"SELECTION_CHANGE",clientId:e,attributeKey:t,startOffset:n,endOffset:r}}function Vc(e,t,n){var r=Object(c.getDefaultBlockName)();if(r)return yc(Object(c.createBlock)(r,e),n,t)}function Hc(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function zc(e){return{type:"UPDATE_SETTINGS",settings:e}}function Uc(e,t){return{type:"SAVE_REUSABLE_BLOCK_SUCCESS",id:e,updatedId:t}}function Gc(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}function Wc(){return{type:"MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"}}function Kc(){return{type:"MARK_AUTOMATIC_CHANGE"}}function qc(){var e,t=arguments;return Or.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e=!(t.length>0&&void 0!==t[0])||t[0],n.next=3,{type:"SET_NAVIGATION_MODE",isNavigationMode:e};case 3:e?Object(Le.speak)(Object(g.__)("You are currently in navigation mode. Navigate blocks using the Tab key and Arrow keys. Use Left and Right Arrow keys to move between nesting levels. To exit navigation mode and edit the selected block, press Enter.")):Object(Le.speak)(Object(g.__)("You are currently in edit mode. To return to the navigation mode, press Escape."));case 4:case"end":return n.stop()}}),$o)}function $c(){var e,t=arguments;return Or.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e=t.length>0&&void 0!==t[0]?t[0]:null,n.next=3,{type:"SET_BLOCK_MOVING_MODE",hasBlockMovingClientId:e};case 3:e&&Object(Le.speak)(Object(g.__)("Use the Tab key and Arrow keys to choose new block location. Use Left and Right Arrow keys to move between nesting levels. Once location is selected press Enter or Space to move the block."));case 4:case"end":return n.stop()}}),Yo)}function Yc(e){var t,n,r,o,i,a,l=arguments;return Or.a.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:if(t=!(l.length>1&&void 0!==l[1])||l[1],e||e.length){s.next=3;break}return s.abrupt("return");case 3:return s.next=5,v.controls.select("core/block-editor","getBlocksByClientId",e);case 5:return n=s.sent,s.next=8,v.controls.select("core/block-editor","getBlockRootClientId",e[0]);case 8:if(r=s.sent,!Object(f.some)(n,(function(e){return!e}))){s.next=11;break}return s.abrupt("return");case 11:if(o=n.map((function(e){return e.name})),!Object(f.some)(o,(function(e){return!Object(c.hasBlockSupport)(e,"multiple",!0)}))){s.next=14;break}return s.abrupt("return");case 14:return s.next=16,v.controls.select("core/block-editor","getBlockIndex",Object(f.last)(Object(f.castArray)(e)),r);case 16:return i=s.sent,a=n.map((function(e){return Object(c.cloneBlock)(e)})),s.next=20,_c(a,i+1,r,t);case 20:if(!(a.length>1&&t)){s.next=23;break}return s.next=23,dc(Object(f.first)(a).clientId,Object(f.last)(a).clientId);case 23:return s.abrupt("return",a.map((function(e){return e.clientId})));case 24:case"end":return s.stop()}}),Xo)}function Xc(e){var t,n;return Or.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e){r.next=2;break}return r.abrupt("return");case 2:return r.next=4,v.controls.select("core/block-editor","getBlockRootClientId",e);case 4:return t=r.sent,r.next=7,v.controls.select("core/block-editor","getTemplateLock",t);case 7:if(!r.sent){r.next=10;break}return r.abrupt("return");case 10:return r.next=12,v.controls.select("core/block-editor","getBlockIndex",e,t);case 12:return n=r.sent,r.next=15,Vc({},t,n);case 15:return r.abrupt("return",r.sent);case 16:case"end":return r.stop()}}),Qo)}function Qc(e){var t,n;return Or.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e){r.next=2;break}return r.abrupt("return");case 2:return r.next=4,v.controls.select("core/block-editor","getBlockRootClientId",e);case 4:return t=r.sent,r.next=7,v.controls.select("core/block-editor","getTemplateLock",t);case 7:if(!r.sent){r.next=10;break}return r.abrupt("return");case 10:return r.next=12,v.controls.select("core/block-editor","getBlockIndex",e,t);case 12:return n=r.sent,r.next=15,Vc({},t,n+1);case 15:return r.abrupt("return",r.sent);case 16:case"end":return r.stop()}}),Zo)}function Zc(e,t){return{type:"TOGGLE_BLOCK_HIGHLIGHT",clientId:e,isHighlighted:t}}function Jc(e){return Or.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Zc(e,!0);case 2:return t.next=4,{type:"SLEEP",duration:150};case 4:return t.next=6,Zc(e,!1);case 6:case"end":return t.stop()}}),Jo)}function ei(e,t){return{type:"SET_HAS_CONTROLLED_INNER_BLOCKS",hasControlledInnerBlocks:t,clientId:e}}var ti=n(42);function ni(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return ri(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ri(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}function ri(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function oi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ci(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oi(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ii=Object(u.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(h.Rect,{x:"0",fill:"none",width:"24",height:"24"}),Object(u.createElement)(h.G,null,Object(u.createElement)(h.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"}))),ai=[];function li(e,t){var n=e.blocks.byClientId[t];if("web"!==u.Platform.OS&&"core/social-link"===(null==n?void 0:n.name)){var r=e.blocks.attributes[t].service;return r?"".concat("core/social-link","-").concat(r):"core/social-link"}return n?n.name:null}function si(e,t){var n=e.blocks.byClientId[t];return!!n&&n.isValid}function ui(e,t){return e.blocks.byClientId[t]?e.blocks.attributes[t]:null}var di=Object(ti.a)((function(e,t){var n=e.blocks.byClientId[t];return n?ci(ci({},n),{},{attributes:ui(e,t),innerBlocks:Ra(e,t)?ai:fi(e,t)}):null}),(function(e,t){return[e.blocks.cache[t]]})),bi=Object(ti.a)((function(e,t){var n=e.blocks.byClientId[t];return n?ci(ci({},n),{},{attributes:ui(e,t)}):null}),(function(e,t){return[e.blocks.byClientId[t],e.blocks.attributes[t]]})),fi=Object(ti.a)((function(e,t){return Object(f.map)($i(e,t),(function(t){return di(e,t)}))}),(function(e,t){return Object(f.map)(e.blocks.order[t||""],(function(t){return e.blocks.cache[t]}))})),pi=Object(ti.a)((function(e,t){var n=e.blocks.byClientId[t];return n?ci(ci({},n),{},{attributes:ui(e,t),innerBlocks:mi(e,t)}):null}),(function(e){return[e.blocks.byClientId,e.blocks.order,e.blocks.attributes]})),mi=Object(ti.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object(f.map)($i(e,t),(function(t){return pi(e,t)}))}),(function(e){return[e.blocks.byClientId,e.blocks.order,e.blocks.attributes]})),vi=function e(t,n){return Object(f.flatMap)(n,(function(n){var r=$i(t,n);return[].concat(Object(ne.a)(r),Object(ne.a)(e(t,r)))}))},Oi=Object(ti.a)((function(e){var t=$i(e);return[].concat(Object(ne.a)(t),Object(ne.a)(vi(e,t)))}),(function(e){return[e.blocks.order]})),gi=Object(ti.a)((function(e,t){var n=Oi(e);return t?Object(f.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]})),hi=Object(ti.a)((function(e,t){return Object(f.map)(Object(f.castArray)(t),(function(t){return di(e,t)}))}),(function(e){return[e.blocks.byClientId,e.blocks.order,e.blocks.attributes]}));function ji(e,t){return $i(e,t).length}function ki(e){return e.selectionStart}function yi(e){return e.selectionEnd}function _i(e){return e.selectionStart.clientId}function Ei(e){return e.selectionEnd.clientId}function Ci(e){var t=Fi(e).length;return t||(e.selectionStart.clientId?1:0)}function wi(e){var t=e.selectionStart,n=e.selectionEnd;return!!t.clientId&&t.clientId===n.clientId}function Si(e){var t=e.selectionStart,n=e.selectionEnd,r=t.clientId;return r&&r===n.clientId?r:null}function Ii(e){var t=Si(e);return t?di(e,t):null}function Bi(e,t){return void 0!==e.blocks.parents[t]?e.blocks.parents[t]:null}var xi=Object(ti.a)((function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=[],o=t;e.blocks.parents[o];)o=e.blocks.parents[o],r.push(o);return n?r:r.reverse()}),(function(e){return[e.blocks.parents]})),Pi=Object(ti.a)((function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=xi(e,t,r);return Object(f.map)(Object(f.filter)(Object(f.map)(o,(function(t){return{id:t,name:li(e,t)}})),(function(e){var t=e.name;return Array.isArray(n)?n.includes(t):t===n})),(function(e){return e.id}))}),(function(e){return[e.blocks.parents]}));function Ti(e,t){var n,r=t;do{n=r,r=e.blocks.parents[r]}while(r);return n}function Ni(e,t){for(var n,r=Si(e),o=[].concat(Object(ne.a)(xi(e,t)),[t]),c=[].concat(Object(ne.a)(xi(e,r)),[r]),i=Math.min(o.length,c.length),a=0;a<i&&o[a]===c[a];a++)n=o[a];return n}function Di(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(void 0===t&&(t=Si(e)),void 0===t&&(t=n<0?Hi(e):zi(e)),!t)return null;var r=Bi(e,t);if(null===r)return null;var o=e.blocks.order,c=o[r],i=c.indexOf(t),a=i+1*n;return a<0||a===c.length?null:c[a]}function Ri(e,t){return Di(e,t,-1)}function Ai(e,t){return Di(e,t,1)}function Mi(e){return e.initialPosition}var Li=Object(ti.a)((function(e){var t=e.selectionStart,n=e.selectionEnd;if(void 0===t.clientId||void 0===n.clientId)return ai;if(t.clientId===n.clientId)return[t.clientId];var r=Bi(e,t.clientId);if(null===r)return ai;var o=$i(e,r),c=o.indexOf(t.clientId),i=o.indexOf(n.clientId);return c>i?o.slice(i,c+1):o.slice(c,i+1)}),(function(e){return[e.blocks.order,e.selectionStart.clientId,e.selectionEnd.clientId]}));function Fi(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId===n.clientId?ai:Li(e)}var Vi=Object(ti.a)((function(e){var t=Fi(e);return t.length?t.map((function(t){return di(e,t)})):ai}),(function(e){return[].concat(Object(ne.a)(Li.getDependants(e)),[e.blocks.byClientId,e.blocks.order,e.blocks.attributes])}));function Hi(e){return Object(f.first)(Fi(e))||null}function zi(e){return Object(f.last)(Fi(e))||null}function Ui(e,t){return Hi(e)===t}function Gi(e,t){return-1!==Fi(e).indexOf(t)}var Wi=Object(ti.a)((function(e,t){for(var n=t,r=!1;n&&!r;)r=Gi(e,n=Bi(e,n));return r}),(function(e){return[e.blocks.order,e.selectionStart.clientId,e.selectionEnd.clientId]}));function Ki(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId===n.clientId?null:t.clientId||null}function qi(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId===n.clientId?null:n.clientId||null}function $i(e,t){return e.blocks.order[t||""]||ai}function Yi(e,t,n){return $i(e,n).indexOf(t)}function Xi(e,t){var n=e.selectionStart,r=e.selectionEnd;return n.clientId===r.clientId&&n.clientId===t}function Qi(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Object(f.some)($i(e,t),(function(t){return Xi(e,t)||Gi(e,t)||n&&Qi(e,t,n)}))}function Zi(e,t){if(!t)return!1;var n=Fi(e),r=n.indexOf(t);return r>-1&&r<n.length-1}function Ji(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId!==n.clientId}function ea(e){return e.isMultiSelecting}function ta(e){return e.isSelectionEnabled}function na(e,t){return e.blocksMode[t]||"visual"}function ra(e){return e.isTyping}function oa(e){return!!e.draggedBlocks.length}function ca(e){return e.draggedBlocks}function ia(e,t){return e.draggedBlocks.includes(t)}function aa(e,t){if(!oa(e))return!1;var n=xi(e,t);return Object(f.some)(n,(function(t){return ia(e,t)}))}function la(e){return e.isCaretWithinFormattedText}function sa(e){var t,n,r=e.insertionPoint,o=e.selectionEnd;if(null!==r)return r;var c=o.clientId;return c?(t=Bi(e,c)||void 0,n=Yi(e,o.clientId,t)+1):n=$i(e).length,{rootClientId:t,index:n}}function ua(e){return null!==e.insertionPoint}function da(e){return e.template.isValid}function ba(e){return e.settings.template}function fa(e,t){if(!t)return e.settings.templateLock;var n=_a(e,t);return n?n.templateLock:null}var pa=function(e,t){var n=arguments.length>2&&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(f.isBoolean)(e)?e:Object(f.isArray)(e)?!(!e.includes("core/post-content")||null!==t)||e.includes(t):n},o=Object(c.getBlockType)(t);if(!o)return!1;var i=Ea(e),a=i.allowedBlockTypes,l=r(a,t,!0);if(!l)return!1;var s=!!fa(e,n);if(s)return!1;var u=_a(e,n);if(n&&void 0===u)return!1;var d=null==u?void 0:u.allowedBlocks,b=r(d,t),p=o.parent,m=li(e,n),v=r(p,m);return null!==b&&null!==v?b||v:null!==b?b:null===v||v},ma=Object(ti.a)(pa,(function(e,t,n){return[e.blockListSettings[n],e.blocks.byClientId[n],e.settings.allowedBlockTypes,e.settings.templateLock]}));function va(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return t.every((function(t){return ma(e,li(e,t),n)}))}function Oa(e,t){var n,r;return null!==(n=null===(r=e.preferences.insertUsage)||void 0===r?void 0:r[t])&&void 0!==n?n:null}var ga=function(e,t,n){return!!Object(c.hasBlockSupport)(t,"inserter",!0)&&pa(e,t.name,n)},ha=function(e){return function(t){return ci(ci({},e),{},{id:"".concat(e.id,"-").concat(t.name),icon:t.icon||e.icon,title:t.title||e.title,description:t.description||e.description,example:t.hasOwnProperty("example")?t.example:e.example,initialAttributes:ci(ci({},e.initialAttributes),t.attributes),innerBlocks:t.innerBlocks,keywords:t.keywords||e.keywords})}},ja=Object(ti.a)((function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,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 n=t.name,o=!1;Object(c.hasBlockSupport)(t.name,"multiple",!0)||(o=Object(f.some)(hi(e,Oi(e)),{name:t.name}));var i=Oa(e,n)||{},a=i.time,l=i.count,s=void 0===l?0:l,u=t.variations.filter((function(e){var t=e.scope;return!t||t.includes("inserter")}));return{id:n,name:t.name,initialAttributes:{},title:t.title,description:t.description,icon:t.icon,category:t.category,keywords:t.keywords,variations:u,example:t.example,isDisabled:o,utility:1,frecency:r(a,s)}},i=function(t){var n,o="core/block/".concat(t.id),i=Sa(e,t.id);1===i.length&&(n=Object(c.getBlockType)(i[0].name));var a=Oa(e,o)||{},l=a.time,s=a.count,u=r(l,void 0===s?0:s);return{id:o,name:"core/block",initialAttributes:{ref:t.id},title:t.title.raw,icon:n?n.icon:ii,category:"reusable",keywords:[],isDisabled:!1,utility:1,frecency:u}},a=Object(c.getBlockTypes)().filter((function(t){return ga(e,t,n)})).map(o),l=pa(e,"core/block",n)?xa(e).map(i):[],s=a.filter((function(e){var t=e.variations;return!(void 0===t?[]:t).some((function(e){return e.isDefault}))})),u=[],d=ni(a);try{for(d.s();!(t=d.n()).done;){var b=t.value,p=b.variations,m=void 0===p?[]:p;if(m.length){var v=ha(b);u.push.apply(u,Object(ne.a)(m.map(v)))}}}catch(e){d.e(e)}finally{d.f()}return[].concat(Object(ne.a)(s),u,Object(ne.a)(l))}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.blocks.order,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,xa(e),Object(c.getBlockTypes)()]})),ka=Object(ti.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=Object(f.some)(Object(c.getBlockTypes)(),(function(n){return ga(e,n,t)}));if(n)return!0;var r=pa(e,"core/block",t)&&xa(e).length>0;return r}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,xa(e),Object(c.getBlockTypes)()]})),ya=Object(ti.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t)return Object(f.filter)(Object(c.getBlockTypes)(),(function(n){return ga(e,n,t)}))}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,Object(c.getBlockTypes)()]}));function _a(e,t){return e.blockListSettings[t]}function Ea(e){return e.settings}function Ca(e){return e.blocks.isPersistentChange}var wa=Object(ti.a)((function(e,t){return Object(f.filter)(e.blockListSettings,(function(e,n){return t.includes(n)}))}),(function(e){return[e.blockListSettings]})),Sa=Object(ti.a)((function(e,t){var n=Object(f.find)(xa(e),(function(e){return e.id===t}));return n?Object(c.parse)(n.content.raw||n.content):null}),(function(e){return[xa(e)]}));function Ia(e){return e.blocks.isIgnoredChange}function Ba(e){return e.lastBlockAttributesChange}function xa(e){var t,n;return null!==(t=null==e||null===(n=e.settings)||void 0===n?void 0:n.__experimentalReusableBlocks)&&void 0!==t?t:ai}function Pa(e){return e.isNavigationMode}function Ta(e){return e.hasBlockMovingClientId}function Na(e){return!!e.automaticChangeStatus}function Da(e,t){return e.highlightedBlock===t}function Ra(e,t){return!!e.blocks.controlledInnerBlocks[t]}var Aa=Object(ti.a)((function(e,t){if(!t.length)return null;var n=Si(e);if(t.includes(li(e,n)))return n;var r=Fi(e),o=Pi(e,n||r[0],t);return o?Object(f.last)(o):null}),(function(e,t){return[e.selectionStart.clientId,e.selectionEnd.clientId,t]}));function Ma(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function La(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ma(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ma(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Fa={MERGE_BLOCKS:function(e,t){var n=t.dispatch,r=t.getState(),o=Object(re.a)(e.blocks,2),a=o[0],l=o[1],s=di(r,a),u=Object(c.getBlockType)(s.name);if(u.merge){var d=di(r,l),b=Object(c.getBlockType)(d.name),p=ki(r),m=p.clientId,v=p.attributeKey,O=p.offset,g=(m===a?u:b).attributes[v],h=(m===a||m===l)&&void 0!==v&&void 0!==O&&!!g;g||("number"==typeof v?window.console.error("RichText needs an identifier prop that is the block attribute key of the attribute it controls. Its type is expected to be a string, but was ".concat(Object(Ro.a)(v))):window.console.error("The RichText identifier prop does not match any attributes defined by the block."));var j=Object(c.cloneBlock)(s),k=Object(c.cloneBlock)(d);if(h){var y=m===a?j:k,_=y.attributes[v],E=g.multiline,C=g.__unstableMultilineWrapperTags,w=g.__unstablePreserveWhiteSpace,S=Object(i.insert)(Object(i.create)({html:_,multilineTag:E,multilineWrapperTags:C,preserveWhiteSpace:w}),"",O,O);y.attributes[v]=Object(i.toHTMLString)({value:S,multilineTag:E,preserveWhiteSpace:w})}var I=s.name===d.name?[k]:Object(c.switchToBlockType)(k,s.name);if(I&&I.length){var B=u.merge(j.attributes,I[0].attributes);if(h){var x=Object(f.findKey)(B,(function(e){return"string"==typeof e&&-1!==e.indexOf("")})),P=B[x],T=u.attributes[x],N=T.multiline,D=T.__unstableMultilineWrapperTags,R=T.__unstablePreserveWhiteSpace,A=Object(i.create)({html:P,multilineTag:N,multilineWrapperTags:D,preserveWhiteSpace:R}),M=A.text.indexOf(""),L=Object(i.remove)(A,M,M+1),F=Object(i.toHTMLString)({value:L,multilineTag:N,preserveWhiteSpace:R});B[x]=F,n(Fc(s.clientId,x,M,M))}n(mc([s.clientId,d.clientId],[La(La({},s),{},{attributes:La(La({},s.attributes),B)})].concat(Object(ne.a)(I.slice(1)))))}}else n(ic(s.clientId))},RESET_BLOCKS:[function(e,t){var n=t.getState(),r=ba(n),o=fa(n),i=!r||"all"!==o||Object(c.doBlocksMatchTemplate)(e.blocks,r);if(i!==da(n))return wc(i)}],MULTI_SELECT:function(e,t){var n=Ci((0,t.getState)());Object(Le.speak)(Object(g.sprintf)(Object(g._n)("%s block selected.","%s blocks selected.",n),n),"assertive")},SYNCHRONIZE_TEMPLATE:function(e,t){var n=(0,t.getState)(),r=fi(n),o=ba(n);return tc(Object(c.synchronizeBlocksWithTemplate)(r,o))},MARK_AUTOMATIC_CHANGE:function(e,t){var n=window,r=n.setTimeout,o=n.requestIdleCallback;(void 0===o?function(e){return r(e,100)}:o)((function(){t.dispatch({type:"MARK_AUTOMATIC_CHANGE_FINAL"})}))}};var Va=function(e){var t,n=[To()(Fa),Do.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=f.flowRight.apply(void 0,Object(ne.a)(t))(e.dispatch),e.dispatch=r,e};function Ha(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function za(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ha(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ha(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ua={reducer:xo,selectors:o,actions:r,controls:{SLEEP:function(e){var t=e.duration;return new Promise((function(e){setTimeout(e,t)}))}}},Ga=Object(v.registerStore)("core/block-editor",za(za({},Ua),{},{persist:["preferences"]}));Va(Ga);function Wa(e){var t=e.clientId,n=void 0===t?null:t,r=e.value,o=e.selectionStart,c=e.selectionEnd,i=e.onChange,a=void 0===i?f.noop:i,l=e.onInput,s=void 0===l?f.noop:l,d=Object(v.useRegistry)(),b=d.dispatch("core/block-editor"),p=b.resetBlocks,m=b.resetSelection,O=b.replaceInnerBlocks,g=b.setHasControlledInnerBlocks,h=b.__unstableMarkNextChangeAsNotPersistent,j=d.select("core/block-editor"),k=j.getBlockName,y=j.getBlocks,_=Object(u.useRef)({incoming:null,outgoing:[]}),E=Object(u.useRef)(s),C=Object(u.useRef)(a);Object(u.useEffect)((function(){E.current=s,C.current=a}),[s,a]),Object(u.useEffect)((function(){var e,t=d.select("core/block-editor"),r=t.getSelectionStart,o=t.getSelectionEnd,c=t.isLastBlockChangePersistent,i=t.__unstableIsLastBlockChangeIgnored,a=c(),l=!1,s=d.subscribe((function(){if(null===n||null!==k(n)){var t=c(),s=y(n),u=s!==e;if(e=s,u&&(_.current.incoming||i()))return _.current.incoming=null,void(a=t);if(u||l&&!u&&t&&!a)a=t,_.current.outgoing.push(e),(a?C.current:E.current)(e,{selectionStart:r(),selectionEnd:o()});l=u}}));return function(){return s()}}),[d,n]),Object(u.useEffect)((function(){_.current.outgoing.includes(r)?Object(f.last)(_.current.outgoing)===r&&(_.current.outgoing=[]):y(n)!==r&&(_.current.outgoing=[],_.current.incoming=r,r&&(h(),n?(g(n,!0),h(),O(n,r,!1)):p(r)),o&&c&&m(o,c))}),[r,n])}var Ka=Object(p.createHigherOrderComponent)((function(e){return Object(v.withRegistry)((function(t){var n=t.useSubRegistry,r=void 0===n||n,o=t.registry,c=Object(he.a)(t,["useSubRegistry","registry"]);if(!r)return Object(u.createElement)(e,Object(l.a)({registry:o},c));var i=Object(u.useState)(null),a=Object(re.a)(i,2),s=a[0],d=a[1];return Object(u.useEffect)((function(){var e=Object(v.createRegistry)({},o),t=e.registerStore("core/block-editor",Ua);Va(t),d(e)}),[o]),s?Object(u.createElement)(v.RegistryProvider,{value:s},Object(u.createElement)(e,Object(l.a)({registry:s},c))):null}))}),"withRegistryProvider")((function(e){var t=e.children,n=e.settings,r=Object(v.useDispatch)("core/block-editor").updateSettings;return Object(u.useEffect)((function(){r(n)}),[n]),Wa(e),t})),qa=n(69);var $a=Object(p.compose)(Object(v.withSelect)((function(e,t){var n=e("core/block-editor"),r=n.getBlockCount,o=n.getBlockName,i=n.isBlockValid,a=n.getSettings,l=n.getTemplateLock,s=!r(t.rootClientId),u=o(t.lastBlockClientId)===Object(c.getDefaultBlockName)(),d=i(t.lastBlockClientId),b=a().bodyPlaceholder;return{isVisible:s||!u||!d,showPrompt:s,isLocked:!!l(t.rootClientId),placeholder:b}})),Object(v.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,c=e.placeholder,i=e.rootClientId;if(t||!n)return null;var a=Object(qa.decodeEntities)(c)||Object(g.__)("Start writing or type / to choose a block");return Object(u.createElement)("div",{"data-root-client-id":i||"",className:"wp-block block-editor-default-block-appender"},Object(u.createElement)(Zr.a,{role:"button","aria-label":Object(g.__)("Add block"),className:"block-editor-default-block-appender__content",readOnly:!0,onFocus:r,value:o?a:""}),Object(u.createElement)(os,{rootClientId:i,position:"bottom right",isAppender:!0,__experimentalIsQuick:!0}))}));var Ya=Object(u.forwardRef)((function(e,t){var n=e.rootClientId,r=e.className,o=e.__experimentalSelectBlockOnInsert,c=e.onFocus,i=e.tabIndex;return Object(u.createElement)(os,{position:"bottom center",rootClientId:n,__experimentalSelectBlockOnInsert:o,__experimentalIsQuick:!0,renderToggle:function(e){var n,o=e.onToggle,a=e.disabled,l=e.isOpen,s=e.blockTitle,d=e.hasSingleBlockType;n=d?Object(g.sprintf)(Object(g._x)("Add %s","directly add the only allowed block"),s):Object(g._x)("Add block","Generic label for block inserter button");var f=!d,p=Object(u.createElement)(h.Button,{ref:t,onFocus:c,tabIndex:i,className:b()(r,"block-editor-button-block-appender"),onClick:o,"aria-haspopup":f?"true":void 0,"aria-expanded":f?l:void 0,disabled:a,label:n},!d&&Object(u.createElement)(h.VisuallyHidden,{as:"span"},n),Object(u.createElement)(so.a,{icon:co.a}));return(f||d)&&(p=Object(u.createElement)(h.Tooltip,{text:n},p)),p},isAppender:!0})})),Xa=Object(u.createContext)();function Qa(e){e.stopPropagation()}var Za=Object(v.withSelect)((function(e,t){var n=t.rootClientId,r=e("core/block-editor"),o=r.getBlockOrder,i=r.canInsertBlockType,a=r.getTemplateLock,l=r.getSelectedBlockClientId;return{isLocked:!!a(n),blockClientIds:o(n),canInsertDefaultBlock:i(Object(c.getDefaultBlockName)(),n),selectedBlockClientId:l()}}))((function(e){var t,n=e.blockClientIds,r=e.rootClientId,o=e.canInsertDefaultBlock,c=e.isLocked,i=e.renderAppender,a=e.className,l=e.selectedBlockClientId,s=e.tagName,d=void 0===s?"div":s,p=Object(u.useContext)(Xa);if(c||!1===i)return null;if(i)t=Object(u.createElement)(i,null);else{var m=!r,v=l===r,O=l&&!n.includes(l);if(!m&&!v&&(!l||O))return null;t=o?Object(u.createElement)($a,{rootClientId:r,lastBlockClientId:Object(f.last)(n)}):Object(u.createElement)(Ya,{rootClientId:r,className:"block-list-appender__toggle"})}return Object(u.createElement)(d,{tabIndex:-1,onFocus:Qa,className:b()("block-list-appender","wp-block",a),ref:function(e){e?p.set(r||"",e):p.delete(r||"")}},t)}));function Ja(e,t,n,r,o){return function(c){var i=function(e){var t={srcRootClientId:null,srcClientIds:null,srcIndex:null,type:null};if(!e.dataTransfer)return t;try{t=Object.assign(t,JSON.parse(e.dataTransfer.getData("text")))}catch(e){return t}return t}(c),a=i.srcRootClientId,l=i.srcClientIds;if("block"===i.type){var s=n(l[0],a);if(!(a===e&&s===t||l.includes(e)||r(l).some((function(t){return t===e})))){var u=a===e,d=l.length;o(l,a,e,u&&s<t?t-d:t)}}}}function el(e,t,n,r,o){return function(i){if(n){var a=Object(c.findTransform)(Object(c.getBlockTransforms)("from"),(function(e){return"files"===e.type&&e.isMatch(i)}));if(a){var l=a.transform(i,r);o(l,t,e)}}}}function tl(e,t,n){return function(r){var o=Object(c.pasteHandler)({HTML:r,mode:"BLOCKS"});o.length&&n(o,t,e)}}function nl(e,t){var n=Object(v.useSelect)((function(e){var t=e("core/block-editor");return{getBlockIndex:t.getBlockIndex,getClientIdsOfDescendants:t.getClientIdsOfDescendants,hasUploadPermissions:(0,t.getSettings)().mediaUpload}}),[]),r=n.getBlockIndex,o=n.getClientIdsOfDescendants,c=n.hasUploadPermissions,i=Object(v.useDispatch)("core/block-editor"),a=i.insertBlocks,l=i.moveBlocksToPosition,s=i.updateBlockAttributes;return{onDrop:Ja(e,t,r,o,l),onFilesDrop:el(e,t,c,s,a),onHTMLDrop:tl(e,t,a)}}function rl(e,t,n){var r,o="top"===n||"bottom"===n,c=e.x,i=e.y,a=o?c:i,l=o?i:c,s=o?t.left:t.top,u=o?t.right:t.bottom,d=t[n];return r=a>=s&&a<=u?a:a<u?s:u,Math.sqrt(Math.pow(a-r,2)+Math.pow(l-d,2))}function ol(e,t){var n,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["top","bottom","left","right"];return o.forEach((function(o){var c=rl(e,t,o);(void 0===n||c<n)&&(n=c,r=o)})),[n,r]}function cl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function il(e){var t=e.element,n=e.rootClientId,r=void 0===n?"":n,o=Object(u.useState)(null),c=Object(re.a)(o,2),i=c[0],a=c[1],l=Object(v.useSelect)((function(e){var t,n=e("core/block-editor"),o=n.getBlockListSettings;return{isLockedAll:"all"===(0,n.getTemplateLock)(r),orientation:null===(t=o(r))||void 0===t?void 0:t.orientation}}),[r]),d=l.isLockedAll,b=l.orientation,f=nl(r,i),p=Object(h.__unstableUseDropZone)(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cl(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({element:t,isDisabled:d,withPosition:!0},f)).position;if(Object(u.useEffect)((function(){if(p){var e=function(e,t,n){var r,o,c="horizontal"===n?["left","right"]:["top","bottom"];return e.forEach((function(n,i){if(n.classList.contains("wp-block")){var a=n.getBoundingClientRect(),l=ol(t,a,c),s=Object(re.a)(l,2),u=s[0],d=s[1];if(void 0===o||u<o){var b="bottom"===d||"right"===d,f=b?1:0,p=b&&e[i+1]&&e[i+1].classList.contains("is-dragging");o=u,r=i+(f+=p?1:0)}}})),r}(Array.from(t.current.children),p,b);a(void 0===e?0:e)}}),[p]),p)return i}var al=new Map;function ll(e){var t=e.placeholder,n=e.rootClientId,r=e.renderAppender,o=e.__experimentalAppenderTagName,c=e.wrapperRef;var i=Object(v.useSelect)((function(e){var t,r=e("core/block-editor"),o=r.getBlockOrder,c=r.getBlockListSettings,i=r.getSettings,a=r.getSelectedBlockClientId,l=r.getMultiSelectedBlockClientIds,s=r.hasMultiSelection,u=r.getGlobalBlockCount,d=r.isTyping,b=(0,r.__experimentalGetActiveBlockIdByBlockNames)(i().__experimentalSpotlightEntityBlocks);return{blockClientIds:o(n),selectedBlockClientId:a(),multiSelectedBlockClientIds:l(),orientation:null===(t=c(n))||void 0===t?void 0:t.orientation,hasMultiSelection:s(),enableAnimation:!d()&&u()<=200,activeEntityBlockId:b}}),[n]),a=i.blockClientIds,l=i.selectedBlockClientId,s=i.multiSelectedBlockClientIds,d=i.orientation,f=i.hasMultiSelection,p=i.enableAnimation,m=i.activeEntityBlockId,O=il({element:c,rootClientId:n}),g=O===a.length;return Object(u.createElement)(u.Fragment,null,a.map((function(e,t){var r=f?s.includes(e):l===e,o=O===t;return Object(u.createElement)(v.AsyncModeProvider,{key:e,value:!r},Object(u.createElement)(Bu,{rootClientId:n,clientId:e,index:t,enableAnimation:p,className:b()({"is-drop-target":o,"is-dropping-horizontally":o&&"horizontal"===d,"has-active-entity":m}),activeEntityBlockId:m}))})),a.length<1&&t,Object(u.createElement)(Za,{tagName:o,rootClientId:n,renderAppender:r,className:b()({"is-drop-target":g,"is-dropping-horizontally":g&&"horizontal"===d})}))}function sl(e){return Object(u.createElement)(v.AsyncModeProvider,{value:!1},Object(u.createElement)(ll,e))}var ul,dl=Object(u.forwardRef)((function(e,t){var n=e.className,r=e.placeholder,o=e.rootClientId,c=e.renderAppender,i=o?"div":vu,a=Object(u.useRef)(),l=t||a;return Object(u.createElement)(Xa.Provider,{value:al},Object(u.createElement)(i,{ref:l,className:b()("block-editor-block-list__layout",n)},Object(u.createElement)(sl,{placeholder:r,rootClientId:o,renderAppender:c,wrapperRef:l})))}));function bl(e){var t=e.onClick;return Object(u.createElement)("div",{tabIndex:0,role:"button",onClick:t,onKeyPress:t},Object(u.createElement)(h.Disabled,null,Object(u.createElement)(dl,null)))}var fl=function(e){var t=e.viewportWidth,n=e.__experimentalPadding,r=Object(p.useResizeObserver)(),o=Object(re.a)(r,2),c=o[0],i=o[1].width,a=Object(p.useResizeObserver)(),l=Object(re.a)(a,2),s=l[0],d=l[1].height;ul=ul||Object(p.pure)(dl);var b=(i-2*n)/t;return Object(u.createElement)("div",{className:"block-editor-block-preview__container editor-styles-wrapper","aria-hidden":!0,style:{height:d*b+2*n}},c,Object(u.createElement)(h.Disabled,{style:{transform:"scale(".concat(b,")"),width:t,left:n,right:n,top:n},className:"block-editor-block-preview__content"},s,Object(u.createElement)(ul,null)))};var pl=Object(u.memo)((function(e){var t=e.blocks,n=e.__experimentalPadding,r=void 0===n?0:n,o=e.viewportWidth,c=void 0===o?700:o,i=e.__experimentalLive,a=void 0!==i&&i,l=e.__experimentalOnClick,s=Object(v.useSelect)((function(e){return e("core/block-editor").getSettings()}),[]),d=Object(u.useMemo)((function(){return Object(f.castArray)(t)}),[t]);return t&&0!==t.length?Object(u.createElement)(Ka,{value:d,settings:s},a?Object(u.createElement)(bl,{onClick:l}):Object(u.createElement)(fl,{viewportWidth:c,__experimentalPadding:r})):null}));function ml(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ml(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ml(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ol=function(e){var t=e.item,n=Object(c.getBlockType)(t.name);return Object(u.createElement)("div",{className:"block-editor-inserter__preview-container"},Object(u.createElement)("div",{className:"block-editor-inserter__preview"},Object(c.isReusableBlock)(t)||n.example?Object(u.createElement)("div",{className:"block-editor-inserter__preview-content"},Object(u.createElement)(pl,{__experimentalPadding:16,viewportWidth:500,blocks:n.example?Object(c.getBlockFromExample)(t.name,{attributes:vl(vl({},n.example.attributes),t.initialAttributes),innerBlocks:n.example.innerBlocks}):Object(c.createBlock)(t.name,t.initialAttributes)})):Object(u.createElement)("div",{className:"block-editor-inserter__preview-content-missing"},Object(g.__)("No Preview Available."))),!Object(c.isReusableBlock)(t)&&Object(u.createElement)(fo,{blockType:t}))},gl=n(52),hl=n(122),jl=n(123);var kl=function(e){var t=e.icon,n=e.onClick,r=e.isDisabled,o=e.title,c=e.className,i=e.composite,a=Object(he.a)(e,["icon","onClick","isDisabled","title","className","composite"]),s=t?{backgroundColor:t.background,color:t.foreground}:{};return Object(u.createElement)("div",{className:"block-editor-block-types-list__list-item"},Object(u.createElement)(jl.a,Object(l.a)({role:"option",as:h.Button},i,{className:b()("block-editor-block-types-list__item",c),onClick:function(e){e.preventDefault(),n()},disabled:r},a),Object(u.createElement)("span",{className:"block-editor-block-types-list__item-icon",style:s},Object(u.createElement)(qn,{icon:t,showColors:!0})),Object(u.createElement)("span",{className:"block-editor-block-types-list__item-title"},o)))};var yl=function(e){var t=e.items,n=void 0===t?[]:t,r=e.onSelect,o=e.onHover,i=void 0===o?function(){}:o,a=e.children,s=e.label,d=Object(gl.g)(),b=n.reduce((function(e,t){return e+"--"+t.id}),"");return Object(u.useEffect)((function(){d.unstable_sort()}),[d.unstable_sort,b]),Object(u.createElement)(hl.a,Object(l.a)({},d,{role:"listbox",className:"block-editor-block-types-list","aria-label":s}),n.map((function(e){return Object(u.createElement)(kl,{key:e.id,className:Object(c.getBlockMenuDefaultClassName)(e.id),icon:e.icon,onClick:function(){r(e),i(null)},onFocus:function(){return i(e)},onMouseEnter:function(){return i(e)},onMouseLeave:function(){return i(null)},onBlur:function(){return i(null)},isDisabled:e.isDisabled,title:e.title,composite:d})})),a)};function _l(e){var t=e.rootClientId,n=e.children,r=Object(v.useSelect)((function(e){var n=(0,e("core/blocks").getBlockType)((0,e("core/block-editor").getBlockName)(t));return{rootBlockTitle:n&&n.title,rootBlockIcon:n&&n.icon}})),o=r.rootBlockTitle,c=r.rootBlockIcon;return Object(u.createElement)("div",{className:"block-editor-inserter__child-blocks"},(c||o)&&Object(u.createElement)("div",{className:"block-editor-inserter__parent-block-header"},Object(u.createElement)(qn,{icon:c,showColors:!0}),o&&Object(u.createElement)("h2",null,o)),n)}var El=Object(h.createSlotFill)("__experimentalInserterMenuExtension"),Cl=El.Fill,wl=El.Slot;Cl.Slot=wl;var Sl=Cl;var Il=function(e){var t=e.title,n=e.icon,r=e.children;return Object(u.createElement)(u.Fragment,null,Object(u.createElement)("div",{className:"block-editor-inserter__panel-header"},Object(u.createElement)("h2",{className:"block-editor-inserter__panel-title"},t),Object(u.createElement)(h.Icon,{icon:n})),Object(u.createElement)("div",{className:"block-editor-inserter__panel-content"},r))};var Bl=function(){return Object(u.createElement)("div",{className:"block-editor-inserter__no-results"},Object(u.createElement)(so.a,{className:"block-editor-inserter__no-results-icon",icon:Kn.a}),Object(u.createElement)("p",null,Object(g.__)("No results found.")))};function xl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Pl=Object(h.withSpokenMessages)((function(e){var t=e.rootClientId,n=e.onInsert,r=e.onHover,o=e.filterValue,c=e.debouncedSpeak,i=e.showMostUsedBlocks,a=Wn(t,n),l=Object(re.a)(a,4),d=l[0],b=l[1],p=l[2],m=l[3],O=Object(v.useSelect)((function(e){var n=e("core/block-editor").getBlockName;return!!(0,e("core/blocks").getChildBlockNames)(n(t)).length}),[t]),h=Object(u.useMemo)((function(){return zn(d,b,p,o)}),[o,d,b,p]),j=Object(u.useMemo)((function(){return Object(f.orderBy)(d,["frecency"],["desc"]).slice(0,6)}),[d]),k=Object(u.useMemo)((function(){return h.filter((function(e){return!e.category}))}),[h]),y=Object(u.useMemo)((function(){var e=function(e){return Object(f.findIndex)(b,(function(t){return t.slug===e.category}))};return Object(f.flow)((function(e){return e.filter((function(e){return e.category&&"reusable"!==e.category}))}),(function(t){return Object(f.sortBy)(t,e)}),(function(e){return Object(f.groupBy)(e,"category")}))(h)}),[h,b]),_=Object(u.useMemo)((function(){var e=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xl(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},p);return Object.keys(p).forEach((function(t){e[t]=h.filter((function(e){return function(e){return e.name.split("/")[0]}(e)===t})),0===e[t].length&&delete e[t]})),e}),[h,p]);Object(u.useEffect)((function(){return function(){return r(null)}}),[]),Object(u.useEffect)((function(){var e=Object(g.sprintf)(Object(g._n)("%d result found.","%d results found.",h.length),h.length);c(e)}),[o,c]);var E=!Object(f.isEmpty)(h);return Object(u.createElement)("div",null,O&&Object(u.createElement)(_l,{rootClientId:t},Object(u.createElement)(yl,{items:h,onSelect:m,onHover:r,label:Object(g.__)("Child Blocks")})),i&&!O&&!!j.length&&!o&&Object(u.createElement)(Il,{title:Object(g._x)("Most used","blocks")},Object(u.createElement)(yl,{items:j,onSelect:m,onHover:r,label:Object(g._x)("Most used","blocks")})),!O&&Object(f.map)(b,(function(e){var t=y[e.slug];return t&&t.length?Object(u.createElement)(Il,{key:e.slug,title:e.title,icon:e.icon},Object(u.createElement)(yl,{items:t,onSelect:m,onHover:r,label:e.title})):null})),!O&&!!k.length&&Object(u.createElement)(Il,{className:"block-editor-inserter__uncategorized-blocks-panel",title:Object(g.__)("Uncategorized")},Object(u.createElement)(yl,{items:k,onSelect:m,onHover:r,label:Object(g.__)("Uncategorized")})),!O&&Object(f.map)(p,(function(e,t){var n=_[t];return n&&n.length?Object(u.createElement)(Il,{key:t,title:e.title,icon:e.icon},Object(u.createElement)(yl,{items:n,onSelect:m,onHover:r,label:e.title})):null})),Object(u.createElement)(Sl.Slot,{fillProps:{onSelect:m,onHover:r,filterValue:o,hasItems:E}},(function(e){return e.length?e:E?null:Object(u.createElement)(Bl,null)})))}));var Tl=function(e){var t,n=e.selectedCategory,r=e.patternCategories,o=e.onClickCategory,c=e.children;return Object(u.createElement)(u.Fragment,null,Object(u.createElement)("div",{className:b()("block-editor-inserter__panel-header","block-editor-inserter__panel-header-patterns")},Object(u.createElement)(h.SelectControl,{className:"block-editor-inserter__panel-dropdown",label:Object(g.__)("Filter patterns"),hideLabelFromVision:!0,value:n.name,onChange:function(e){o(r.find((function(t){return e===t.name})))},options:(t=[],r.map((function(e){return t.push({value:e.name,label:e.label})})),t)})),Object(u.createElement)("div",{className:"block-editor-inserter__panel-content"},c))},Nl=function(e){var t=Object(v.useSelect)((function(e){var t=e("core/block-editor").getSettings();return{patterns:t.__experimentalBlockPatterns,patternCategories:t.__experimentalBlockPatternCategories}}),[]),n=t.patternCategories,r=t.patterns,o=Object(v.useDispatch)("core/notices").createSuccessNotice;return[r,n,Object(u.useCallback)((function(t,n){e(Object(f.map)(n,(function(e){return Object(c.cloneBlock)(e)})),t.name),o(Object(g.sprintf)(Object(g.__)('Block pattern "%s" inserted.'),t.title),{type:"snackbar"})}),[])]};function Dl(e){var t=e.pattern,n=e.onClick,r=t.content,o=t.viewportWidth,i=Object(u.useMemo)((function(){return Object(c.parse)(r)}),[r]),a=Object(p.useInstanceId)(Dl),l="block-editor-block-patterns-list__item-description-".concat(a);return Object(u.createElement)("div",{className:"block-editor-block-patterns-list__item",role:"button",onClick:function(){return n(t,i)},onKeyDown:function(e){st.ENTER!==e.keyCode&&st.SPACE!==e.keyCode||n(t,i)},tabIndex:0,"aria-label":t.title,"aria-describedby":t.description?l:void 0},Object(u.createElement)(pl,{blocks:i,viewportWidth:o}),Object(u.createElement)("div",{className:"block-editor-block-patterns-list__item-title"},t.title),!!t.description&&Object(u.createElement)(h.VisuallyHidden,{id:l},t.description))}function Rl(){return Object(u.createElement)("div",{className:"block-editor-block-patterns-list__item is-placeholder"})}var Al=function(e){var t=e.blockPatterns,n=e.shownPatterns,r=e.onClickPattern;return t.map((function(e){return n.includes(e)?Object(u.createElement)(Dl,{key:e.name,pattern:e,onClick:r}):Object(u.createElement)(Rl,{key:e.name})}))};function Ml(e){var t=e.filterValue,n=e.onInsert,r=Nl(n),o=Object(re.a)(r,3),c=o[0],i=o[2],a=Object(u.useMemo)((function(){return Un(c,t)}),[t,c]),l=Object(p.useAsyncList)(a);if(t)return a.length?Object(u.createElement)(Il,{title:Object(g.__)("Search Results")},Object(u.createElement)(Al,{shownPatterns:l,blockPatterns:a,onClickPattern:i})):Object(u.createElement)(Bl,null)}function Ll(e){var t=e.onInsert,n=e.selectedCategory,r=e.onClickCategory,o=Nl(t),c=Object(re.a)(o,3),i=c[0],a=c[1],l=c[2],s=Object(u.useMemo)((function(){return a.filter((function(e){return i.some((function(t){return t.categories.includes(e.name)}))}))}),[i,a]),d=n||s[0];Object(u.useEffect)((function(){i.some((function(e){return b(e)===1/0}))&&!s.find((function(e){return"uncategorized"===e.name}))&&s.push({name:"uncategorized",label:Object(g._x)("Uncategorized")})}),[s,i]);var b=Object(u.useCallback)((function(e){if(!e.categories||!e.categories.length)return 1/0;var t=Object(f.fromPairs)(s.map((function(e,t){return[e.name,t]})));return Math.min.apply(Math,Object(ne.a)(e.categories.map((function(e){return void 0!==t[e]?t[e]:1/0}))))}),[s]),m=Object(u.useMemo)((function(){return i.filter((function(e){return"uncategorized"===d.name?b(e)===1/0:e.categories&&e.categories.includes(d.name)}))}),[i,d]),v=Object(u.useMemo)((function(){return m.sort((function(e,t){return b(e)-b(t)}))}),[m,b]),O=Object(p.useAsyncList)(v);return Object(u.createElement)(u.Fragment,null,!!m.length&&Object(u.createElement)(Tl,{key:d.name,title:d.title,selectedCategory:d,patternCategories:s,onClickCategory:r},Object(u.createElement)(Al,{shownPatterns:O,blockPatterns:m,onClickPattern:l})))}var Fl=function(e){var t=e.onInsert,n=e.onClickCategory,r=e.filterValue,o=e.selectedCategory;return r?Object(u.createElement)(Ml,{onInsert:t,filterValue:r}):Object(u.createElement)(Ll,{selectedCategory:o,onInsert:t,onClickCategory:n})},Vl=n(31);function Hl(e){var t=e.debouncedSpeak,n=e.filterValue,r=e.onHover,o=e.onInsert,c=e.rootClientId,i=Wn(c,o),a=Object(re.a)(i,4),l=a[0],s=a[1],d=a[2],b=a[3],f=Object(u.useMemo)((function(){var e=l.filter((function(e){return"reusable"===e.category}));return n?zn(e,s,d,n):e}),[n,l,s,d]);return Object(u.useEffect)((function(){var e=Object(g.sprintf)(Object(g._n)("%d result found.","%d results found.",f.length),f.length);t(e)}),[n,t]),0===f.length?Object(u.createElement)(Bl,null):Object(u.createElement)(Il,{title:n?Object(g.__)("Search Results"):Object(g.__)("Reusable blocks")},Object(u.createElement)(yl,{items:f,onSelect:b,onHover:r,label:n?Object(g.__)("Search Results"):Object(g.__)("Reusable blocks")}))}var zl=Object(h.withSpokenMessages)((function(e){var t=e.rootClientId,n=e.onInsert,r=e.onHover,o=e.filterValue,c=e.debouncedSpeak;return Object(u.createElement)(u.Fragment,null,Object(u.createElement)(Hl,{debouncedSpeak:c,filterValue:o,onHover:r,onInsert:n,rootClientId:t}),Object(u.createElement)("div",{className:"block-editor-inserter__manage-reusable-blocks-container"},Object(u.createElement)("a",{className:"block-editor-inserter__manage-reusable-blocks",href:Object(Vl.addQueryArgs)("edit.php",{post_type:"wp_block"})},Object(g.__)("Manage all reusable blocks"))))}));function Ul(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Gl=function(e){var t=e.onSelect,n=e.rootClientId,r=e.clientId,o=e.isAppender,i=e.selectBlockOnInsert,a=e.insertionIndex,l=Object(v.useSelect)((function(e){var t,c=e("core/block-editor"),i=c.getSettings,a=c.getBlockRootClientId,l=c.getBlockSelectionEnd,u=n;if(!u&&!r&&!o){var d=l();d&&(u=a(d))}return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ul(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ul(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({hasPatterns:!!(null===(t=i().__experimentalBlockPatterns)||void 0===t?void 0:t.length),destinationRootClientId:u},Object(f.pick)(e("core/block-editor"),["getSelectedBlock","getBlockIndex","getBlockSelectionEnd","getBlockOrder"]))}),[o,r,n]),u=l.destinationRootClientId,d=l.getSelectedBlock,b=l.getBlockIndex,p=l.getBlockSelectionEnd,m=l.getBlockOrder,O=Object(v.useDispatch)("core/block-editor"),h=O.replaceBlocks,j=O.insertBlocks,k=O.showInsertionPoint,y=O.hideInsertionPoint;function _(){if(void 0!==a)return a;if(r)return b(r,u);var e=p();return!o&&e?b(e,u)+1:m(u).length}return[u,function(e,n){var r=d();if(!o&&r&&Object(c.isUnmodifiedDefaultBlock)(r)?h(r.clientId,e,null,null,n):j(e,_(),u,i,n),!i){var a=Object(g._n)("%d block added.","%d blocks added.",e.length);Object(Le.speak)(a)}t&&t()},function(e){if(e){var t=_();k(u,t)}else y()}]},Wl={name:"blocks",title:Object(g.__)("Blocks")},Kl={name:"patterns",title:Object(g.__)("Patterns")},ql={name:"reusable",title:Object(g.__)("Reusable")};var $l=function(e){var t=e.children,n=e.showPatterns,r=void 0!==n&&n,o=e.showReusableBlocks,c=void 0!==o&&o,i=e.onSelect,a=[Wl];return r&&a.push(Kl),c&&a.push(ql),Object(u.createElement)(h.TabPanel,{className:"block-editor-inserter__tabs",tabs:a,onSelect:i},t)},Yl=function(e){return e.stopPropagation()};var Xl=function(e){var t=e.rootClientId,n=e.clientId,r=e.isAppender,o=e.__experimentalSelectBlockOnInsert,c=e.__experimentalInsertionIndex,i=e.onSelect,a=e.showInserterHelpPanel,l=e.showMostUsedBlocks,s=Object(u.useState)("blocks"),d=Object(re.a)(s,2),b=d[0],f=d[1],p=Object(u.useState)(""),m=Object(re.a)(p,2),O=m[0],j=m[1],k=Object(u.useState)(null),y=Object(re.a)(k,2),_=y[0],E=y[1],C=Object(u.useState)(null),w=Object(re.a)(C,2),S=w[0],I=w[1],B=Gl({rootClientId:t,clientId:n,isAppender:r,selectBlockOnInsert:o,insertionIndex:c}),x=Object(re.a)(B,3),P=x[0],T=x[1],N=x[2],D=Object(v.useSelect)((function(e){var t=e("core/block-editor").getSettings(),n=t.__experimentalBlockPatterns,r=t.__experimentalReusableBlocks;return{hasPatterns:!!(null==n?void 0:n.length),hasReusableBlocks:!!(null==r?void 0:r.length)}}),[]),R=D.hasPatterns,A=D.hasReusableBlocks,M=!P&&R,L=function(e){T(e),i()},F=function(e){N(!!e),E(e)},V=Object(u.createElement)(u.Fragment,null,Object(u.createElement)("div",{className:"block-editor-inserter__block-list"},Object(u.createElement)(Pl,{rootClientId:P,onInsert:L,onHover:F,filterValue:O,showMostUsedBlocks:l})),a&&Object(u.createElement)("div",{className:"block-editor-inserter__tips"},Object(u.createElement)(h.VisuallyHidden,{as:"h2"},Object(g.__)("A tip for using the block editor")),Object(u.createElement)(ao,null))),H=Object(u.createElement)(Fl,{onInsert:function(e,t){T(e,{patternName:t}),i()},filterValue:O,onClickCategory:function(e){I(e)},selectedCategory:S}),z=Object(u.createElement)(zl,{rootClientId:P,onInsert:L,onHover:F,filterValue:O});return Object(u.createElement)("div",{className:"block-editor-inserter__menu",onKeyPress:Yl,onKeyDown:function(e){[st.LEFT,st.DOWN,st.RIGHT,st.UP,st.BACKSPACE,st.ENTER].includes(e.keyCode)&&e.stopPropagation()}},Object(u.createElement)("div",{className:"block-editor-inserter__main-area"},Object(u.createElement)("div",{className:"block-editor-inserter__content"},Object(u.createElement)(bo,{onChange:function(e){_&&E(null),j(e)},value:O,placeholder:"reusable"===b?Object(g.__)("Search for a reusable block"):"patterns"===b?Object(g.__)("Search for a pattern"):Object(g.__)("Search for a block")}),(M||A)&&Object(u.createElement)($l,{showPatterns:M,showReusableBlocks:A,onSelect:f},(function(e){return"blocks"===e.name?V:"patterns"===e.name?H:z})),!M&&!A&&V)),a&&_&&Object(u.createElement)(Ol,{item:_}))},Ql=function(e){[st.LEFT,st.DOWN,st.RIGHT,st.UP,st.BACKSPACE,st.ENTER].includes(e.keyCode)&&e.stopPropagation()},Zl=function(e){return e.stopPropagation()};function Jl(e){var t=e.blockTypes,n=e.blockPatterns,r=e.onSelectBlockType,o=e.onSelectBlockPattern,c=e.onHover,i=Object(u.useMemo)((function(){return Object(f.orderBy)(t,["frecency"],["desc"]).slice(0,6)}),[t]),a=Object(u.useMemo)((function(){return n.slice(0,2)}),[t]);return Object(u.createElement)("div",{className:"block-editor-inserter__quick-inserter-results"},!i.length&&!a.length&&Object(u.createElement)(Bl,null),!!i.length&&Object(u.createElement)(Il,{title:Object(u.createElement)(h.VisuallyHidden,null,Object(g.__)("Blocks"))},Object(u.createElement)(yl,{items:i,onSelect:r,onHover:c,label:Object(g.__)("Blocks")})),!!i.length&&!!a.length&&Object(u.createElement)("div",{className:"block-editor-inserter__quick-inserter-separator"}),!!a.length&&Object(u.createElement)(Il,{title:Object(u.createElement)(h.VisuallyHidden,null,Object(g.__)("Blocks"))},Object(u.createElement)("div",{className:"block-editor-inserter__quick-inserter-patterns"},Object(u.createElement)(Al,{shownPatterns:a,blockPatterns:a,onClickPattern:o}))))}function es(e){var t=e.onSelect,n=e.rootClientId,r=e.clientId,o=e.isAppender,c=e.selectBlockOnInsert,i=Object(p.useDebounce)(Le.speak,500),a=Object(u.useState)(""),l=Object(re.a)(a,2),s=l[0],d=l[1],f=Gl({onSelect:t,rootClientId:n,clientId:r,isAppender:o,selectBlockOnInsert:c}),m=Object(re.a)(f,3),O=m[0],j=m[1],k=m[2],y=Wn(O,j),_=Object(re.a)(y,4),E=_[0],C=_[1],w=_[2],S=_[3],I=Nl(j),B=Object(re.a)(I,3),x=B[0],P=B[2],T=!O&&x.length&&!!s,N=T&&x.length>6||E.length>6,D=Object(u.useMemo)((function(){return zn(E,C,w,s)}),[s,E,C,w]),R=Object(u.useMemo)((function(){return Un(x,s)}),[s,x]),A=Object(v.useSelect)((function(e){return e("core/block-editor").getSettings().__experimentalSetIsInserterOpened}),[]),M=Object(v.useSelect)((function(e){return e("core/block-editor").getPreviousBlockClientId(r)}),[r]);Object(u.useEffect)((function(){A&&A(!1)}),[A]);var L=Object(v.useDispatch)("core/block-editor").selectBlock;Object(u.useEffect)((function(){if(s){var e=D.length+R.length,t=Object(g.sprintf)(Object(g._n)("%d result found.","%d results found.",e),e);i(t)}}),[s,i]);return Object(u.createElement)("div",{className:b()("block-editor-inserter__quick-inserter",{"has-search":N,"has-expand":A}),onKeyPress:Zl,onKeyDown:Ql},N&&Object(u.createElement)(bo,{value:s,onChange:function(e){d(e)},placeholder:Object(g.__)("Search for a block")}),Object(u.createElement)(Jl,{blockTypes:D,blockPatterns:T?R:[],onSelectBlockPattern:P,onSelectBlockType:S,onHover:k}),A&&Object(u.createElement)(h.Button,{className:"block-editor-inserter__quick-inserter-expand",onClick:function(){L(M),setTimeout((function(){A(!0)}))},"aria-label":Object(g.__)("Browse all. This will open the main inserter panel in the editor toolbar.")},Object(g.__)("Browse all")))}function ts(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object($t.a)(e);if(t){var o=Object($t.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(qt.a)(this,n)}}var ns=function(e){var t,n=e.onToggle,r=e.disabled,o=e.isOpen,c=e.blockTitle,i=e.hasSingleBlockType,a=e.toggleProps,s=void 0===a?{}:a;t=i?Object(g.sprintf)(Object(g._x)("Add %s","directly add the only allowed block"),c):Object(g._x)("Add block","Generic label for block inserter button");var d=s.onClick,b=Object(he.a)(s,["onClick"]);return Object(u.createElement)(h.Button,Object(l.a)({icon:co.a,label:t,tooltipPosition:"bottom",onClick:function(e){n&&n(e),d&&d(e)},className:"block-editor-inserter__toggle","aria-haspopup":!i&&"true","aria-expanded":!i&&o,disabled:r},b))},rs=function(e){Object(Kt.a)(n,e);var t=ts(n);function n(){var e;return Object(Ut.a)(this,n),(e=t.apply(this,arguments)).onToggle=e.onToggle.bind(Object(Wt.a)(e)),e.renderToggle=e.renderToggle.bind(Object(Wt.a)(e)),e.renderContent=e.renderContent.bind(Object(Wt.a)(e)),e}return Object(Gt.a)(n,[{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,c=r.blockTitle,i=r.hasSingleBlockType,a=r.toggleProps,l=r.hasItems,s=r.renderToggle,u=void 0===s?ns:s;return u({onToggle:t,isOpen:n,disabled:o||!l,blockTitle:c,hasSingleBlockType:i,toggleProps:a})}},{key:"renderContent",value:function(e){var t=e.onClose,n=this.props,r=n.rootClientId,o=n.clientId,c=n.isAppender,i=n.showInserterHelpPanel,a=n.__experimentalSelectBlockOnInsert;return n.__experimentalIsQuick?Object(u.createElement)(es,{onSelect:t,rootClientId:r,clientId:o,isAppender:c,selectBlockOnInsert:a}):Object(u.createElement)(Xl,{onSelect:t,rootClientId:r,clientId:o,isAppender:c,showInserterHelpPanel:i,__experimentalSelectBlockOnInsert:a})}},{key:"render",value:function(){var e=this.props,t=e.position,n=e.hasSingleBlockType,r=e.insertOnlyAllowedBlock,o=e.__experimentalIsQuick;return n?this.renderToggle({onToggle:r}):Object(u.createElement)(h.Dropdown,{className:"block-editor-inserter",contentClassName:b()("block-editor-inserter__popover",{"is-quick":o}),position:t,onToggle:this.onToggle,expandOnMobile:!0,headerTitle:Object(g.__)("Add a block"),renderToggle:this.renderToggle,renderContent:this.renderContent})}}]),n}(u.Component),os=Object(p.compose)([Object(v.withSelect)((function(e,t){var n=t.clientId,r=t.rootClientId,o=e("core/block-editor"),c=o.getBlockRootClientId,i=o.hasInserterItems,a=o.__experimentalGetAllowedBlocks,l=e("core/blocks").getBlockVariations,s=a(r=r||c(n)||void 0),u=1===Object(f.size)(s)&&0===Object(f.size)(l(s[0].name,"inserter")),d=!1;return u&&(d=s[0]),{hasItems:i(r),hasSingleBlockType:u,blockTitle:d?d.title:"",allowedBlockType:d,rootClientId:r}})),Object(v.withDispatch)((function(e,t,n){var r=n.select;return{insertOnlyAllowedBlock:function(){var n=t.rootClientId,o=t.clientId,i=t.isAppender,a=t.hasSingleBlockType,l=t.allowedBlockType,s=t.__experimentalSelectBlockOnInsert;if(a&&((0,e("core/block-editor").insertBlock)(Object(c.createBlock)(l.name),function(){var e=r("core/block-editor"),t=e.getBlockIndex,c=e.getBlockSelectionEnd,a=e.getBlockOrder;if(o)return t(o,n);var l=c();return!i&&l?t(l,n)+1:a(n).length}(),n,s),!s)){var u=Object(g.sprintf)(Object(g.__)("%s block added"),l.title);Object(Le.speak)(u)}}}})),Object(p.ifCondition)((function(e){var t=e.hasItems,n=e.isAppender,r=e.rootClientId,o=e.clientId;return t||!n&&!r&&!o}))])(rs),cs=Object(u.forwardRef)((function(e,t){var n=e.selectedClientId,r=e.isReverse,o=e.containerRef,c=e.noCapture,i=e.hasMultiSelection,a=e.multiSelectionContainer,l=Object(v.useSelect)((function(e){return e("core/block-editor").isNavigationMode()})),s=Object(v.useDispatch)("core/block-editor").setNavigationMode;return Object(u.createElement)("div",{ref:t,tabIndex:l?void 0:"0",onFocus:function(){if(c.current)c.current=null;else if(n){var e=qe(n);if(r){var t=kr.focus.tabbable.find(e);(Object(f.last)(t)||e).focus()}else e.focus()}else{if(i)return void a.current.focus();s(!0);var l=kr.focus.tabbable.find(o.current);l.length&&(r?Object(f.last)(l).focus():Object(f.first)(l).focus())}},style:{position:"fixed"}})}));var is=Object(f.overEvery)([kr.isTextField,kr.focus.tabbable.isTabbableIndex]);function as(e,t,n,r){var o,c=kr.focus.focusable.find(n);return t&&(c=Object(f.reverse)(c)),c=c.slice(c.indexOf(e)+1),r&&(o=e.getBoundingClientRect()),Object(f.find)(c,(function t(n,c,i){if(!kr.focus.tabbable.isTabbableIndex(n))return!1;if(r){var a=n.getBoundingClientRect();if(a.left>=o.right||a.right<=o.left)return!1}if(Object(kr.isTextField)(n))return!0;if(!n.classList.contains("block-editor-block-list__block"))return!1;if(function(e){return e.classList.contains("block-editor-block-list__layout")||!!e.querySelector(".block-editor-block-list__layout")}(n))return!0;if(n.contains(e))return!1;for(var l,s=1;(l=i[c+s])&&n.contains(l);s++)if(t(l,c+s,i))return!1;return!0}))}function ls(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getMultiSelectedBlocksStartClientId,o=t.getMultiSelectedBlocksEndClientId,c=t.getPreviousBlockClientId,i=t.getNextBlockClientId,a=t.getFirstMultiSelectedBlockClientId,l=t.getLastMultiSelectedBlockClientId,s=t.hasMultiSelection,u=t.getBlockOrder,d=t.isNavigationMode,b=t.hasBlockMovingClientId,f=t.getBlockIndex,p=t.getBlockRootClientId,m=t.getClientIdsOfDescendants,v=t.canInsertBlockType,O=t.getBlockName,g=t.isSelectionEnabled,h=t.getBlockSelectionStart,j=t.isMultiSelecting,k=t.getSettings,y=n(),_=r(),E=o();return{selectedBlockClientId:y,selectionStartClientId:_,selectionBeforeEndClientId:c(E||y),selectionAfterEndClientId:i(E||y),selectedFirstClientId:a(),selectedLastClientId:l(),hasMultiSelection:s(),blocks:u(),isNavigationMode:d(),hasBlockMovingClientId:b,getBlockIndex:f,getBlockRootClientId:p,getClientIdsOfDescendants:m,canInsertBlockType:v,getBlockName:O,isSelectionEnabled:g(),blockSelectionStart:h(),isMultiSelecting:j(),keepCaretInsideBlock:k().keepCaretInsideBlock}}function ss(e){var t=e.children,n=Object(u.useRef)(),r=Object(u.useRef)(),o=Object(u.useRef)(),c=Object(u.useRef)(),i=Object(u.useRef)(),a=Object(u.useRef)(),l=Object(u.useRef)(),s=Object(v.useSelect)(ls,[]),d=s.selectedBlockClientId,p=s.selectionStartClientId,m=s.selectionBeforeEndClientId,O=s.selectionAfterEndClientId,h=s.selectedFirstClientId,j=s.selectedLastClientId,k=s.hasMultiSelection,y=s.blocks,_=s.isNavigationMode,E=s.hasBlockMovingClientId,C=s.isSelectionEnabled,w=s.blockSelectionStart,S=s.isMultiSelecting,I=s.getBlockIndex,B=s.getBlockRootClientId,x=s.getClientIdsOfDescendants,P=s.canInsertBlockType,T=s.getBlockName,N=s.keepCaretInsideBlock,D=Object(v.useDispatch)("core/block-editor"),R=D.multiSelect,A=D.selectBlock,M=D.clearSelectedBlock,L=D.setNavigationMode,F=D.setBlockMovingClientId,V=D.moveBlockToPosition,H=Object(u.useState)(!1),z=Object(re.a)(H,2),U=z[0],G=z[1];Object(u.useEffect)((function(){k&&!S&&c.current.focus()}),[k,S]);var W=b()("block-editor-writing-flow",{"is-navigate-mode":_,"is-block-moving-mode":!!E(),"can-insert-moving-block":U});return Object(u.createElement)("div",{className:W},Object(u.createElement)(cs,{ref:r,selectedClientId:d,containerRef:n,noCapture:a,hasMultiSelection:k,multiSelectionContainer:c}),Object(u.createElement)("div",{ref:n,onKeyDown:function(e){var t=e.keyCode,s=e.target,u=t===st.UP,b=t===st.DOWN,v=t===st.LEFT,g=t===st.RIGHT,C=t===st.TAB,w=t===st.ESCAPE,S=t===st.ENTER,D=t===st.SPACE,H=u||v,z=v||g,U=u||b,W=z||U,K=e.shiftKey,q=K||e.ctrlKey||e.altKey||e.metaKey,$=U?kr.isVerticalEdge:kr.isHorizontalEdge;if(_){var Y,X=C&&K||u,Q=C&&!K||b,Z=v,J=g;if(X)Y=m;else if(Q)Y=O;else if(Z){var ee;Y=null!==(ee=B(d))&&void 0!==ee?ee:d}else if(J){var te;Y=null!==(te=x([d])[0])&&void 0!==te?te:d}var ne=E();if(ne&&Y&&G(P(T(ne),B(Y))),w&&ne&&(F(null),G(!1)),(S||D)&&ne){var re=B(ne),oe=B(d),ce=I(ne,re),ie=I(d,oe);ce<ie&&re===oe&&(ie-=1),V(ne,re,oe,ie),A(ne),F(null)}if(Q||X||Z||J)if(Y)e.preventDefault(),A(Y);else if(C&&d){var ae,le=qe(d);(ae=Q?kr.focus.tabbable.findNext(le):kr.focus.tabbable.findPrevious(le))&&(e.preventDefault(),ae.focus(),M())}}else{if(d)if(C){var se=qe(d);if(K){if(s===se)return a.current=!0,void r.current.focus()}else{var ue=kr.focus.tabbable.find(se);if(s===(Object(f.last)(ue)||se))return a.current=!0,void o.current.focus()}}else w&&L(!0);else if(k&&C&&s===c.current)return a.current=!0,void(K?r.current.focus():o.current.focus());var de=n.current.ownerDocument.defaultView;if(U?l.current||(l.current=Object(kr.computeCaretRect)(de)):l.current=null,!W)return st.isKeyboardEvent.primary(e)&&(i.current=Object(kr.isEntirelySelected)(s)),void(st.isKeyboardEvent.primary(e,"a")&&((s.isContentEditable?i.current:Object(kr.isEntirelySelected)(s))&&(R(Object(f.first)(y),Object(f.last)(y)),e.preventDefault()),i.current=!0));if(!e.nativeEvent.defaultPrevented&&function(e,t,n){if((t===st.UP||t===st.DOWN)&&!n)return!0;var r=e.tagName;return"INPUT"!==r&&"TEXTAREA"!==r}(s,t,q)){var be,fe="rtl"===(be=s).ownerDocument.defaultView.getComputedStyle(be).direction?!H:H;if(K)(H&&m||!H&&O)&&(k||function(e,t){var r,o,c=as(e,t,n.current);return!(c&&(r=e,o=c,r.closest(".block-editor-block-list__block")===o.closest(".block-editor-block-list__block")))}(s,H)&&$(s,H))&&(!function(e){var t=e?m:O;t&&R(p||d,t)}(H),e.preventDefault());else if(k)!function(e){var t=e?h:j;t&&A(t)}(H),e.preventDefault();else if(U&&Object(kr.isVerticalEdge)(s,H)&&!N){var pe=as(s,H,n.current,!0);pe&&(Object(kr.placeCaretAtVerticalEdge)(pe,H,l.current),e.preventDefault())}else if(z&&de.getSelection().isCollapsed&&Object(kr.isHorizontalEdge)(s,fe)&&!N){var me=as(s,fe,n.current);Object(kr.placeCaretAtHorizontalEdge)(me,fe),e.preventDefault()}}}},onMouseDown:function(e){if(l.current=null,_&&d&&$e(qe(d),e.target)?(L(!1),F(null)):_&&E()&&Ye(e.target)&&G(P(T(E()),B(Ye(e.target)))),C&&0===e.button){var t=Ye(e.target);t&&(e.shiftKey?w!==t&&(R(w,t),e.preventDefault()):k&&A(t))}}},Object(u.createElement)("div",{ref:c,tabIndex:k?"0":void 0,"aria-label":k?Object(g.__)("Multiple selected blocks"):void 0,style:{position:"fixed"}}),t),Object(u.createElement)(cs,{ref:o,selectedClientId:d,containerRef:n,noCapture:a,hasMultiSelection:k,multiSelectionContainer:c,isReverse:!0}),Object(u.createElement)("div",{"aria-hidden":!0,tabIndex:-1,onClick:function(){var e=kr.focus.focusable.find(n.current),t=Object(f.findLast)(e,is);t&&Object(kr.placeCaretAtHorizontalEdge)(t,!0)},className:"block-editor-writing-flow__click-redirect"}))}function us(e){var t=e.clientId,n=e.setIsInserterForced,r=e.containerRef,o=Object(u.useRef)(),c=Object(v.useSelect)((function(e){var n=e("core/block-editor"),r=n.getMultiSelectedBlockClientIds,o=n.getSelectedBlockClientId,c=n.hasMultiSelection;if((0,n.getSettings)().hasReducedUI)return!0;var i=r(),a=o();return c()?i.includes(t):t===a}),[t]);return Object(u.createElement)("div",{ref:o,onFocus:function(){return n(!0)},onBlur:function(){return n(!1)},onClick:function(e){var n=e.clientX,c=e.clientY,i=e.target;if(i===o.current){var a=i.getBoundingClientRect(),l=c<a.top+a.height/2,s=qe(t),u=as(s,!0,l?r.current:s)||s,d=new window.DOMRect(n,c,0,16);Object(kr.placeCaretAtVerticalEdge)(u,l,d,!1)}},tabIndex:-1,className:b()("block-editor-block-list__insertion-point-inserter",{"is-inserter-hidden":c})},Object(u.createElement)(os,{position:"bottom center",clientId:t,__experimentalIsQuick:!0}))}function ds(e){var t=e.clientId,n=e.rootClientId,r=e.isInserterShown,o=e.isInserterForced,c=e.setIsInserterForced,i=e.containerRef,a=e.showInsertionPoint,l=Object(u.useContext)(Xa),s=Object(u.useMemo)((function(){return t?qe(t):l.get(n||"")}),[t,n,l]);return Object(u.createElement)(h.Popover,{noArrow:!0,animate:!1,anchorRef:s,position:"top right left",focusOnMount:!1,className:"block-editor-block-list__insertion-point-popover",__unstableSlotName:"block-toolbar"},Object(u.createElement)("div",{className:"block-editor-block-list__insertion-point",style:{width:null==s?void 0:s.offsetWidth}},a&&Object(u.createElement)("div",{className:"block-editor-block-list__insertion-point-indicator"}),(r||o)&&Object(u.createElement)(us,{clientId:t,setIsInserterForced:c,containerRef:i})))}function bs(e){var t=e.children,n=e.containerRef,r=Object(u.useState)(!1),o=Object(re.a)(r,2),c=o[0],i=o[1],a=Object(u.useState)(!1),l=Object(re.a)(a,2),s=l[0],d=l[1],b=Object(u.useState)(null),f=Object(re.a)(b,2),p=f[0],m=f[1],O=Object(v.useSelect)((function(e){var t=e("core/block-editor"),n=t.isMultiSelecting,r=t.isBlockInsertionPointVisible,o=t.getBlockInsertionPoint,c=t.getBlockOrder,i=o(),a=c(i.rootClientId);return{isMultiSelecting:n(),isInserterVisible:r(),selectedClientId:a[i.index],selectedRootClientId:i.rootClientId}}),[]),g=O.isMultiSelecting,h=O.isInserterVisible,j=O.selectedClientId,k=O.selectedRootClientId;var y=c||s||h;return Object(u.createElement)(u.Fragment,null,!g&&y&&Object(u.createElement)(ds,{clientId:h?j:p,rootClientId:k,isInserterShown:c,isInserterForced:s,setIsInserterForced:d,containerRef:n,showInsertionPoint:h}),Object(u.createElement)("div",{onMouseMove:s||g?void 0:function(e){if(e.target.classList.contains("block-editor-block-list__layout")){var t=e.target.getBoundingClientRect(),n=e.clientY-t.top,r=Array.from(e.target.children).find((function(e){return e.offsetTop>n}));if(r&&(r.id||(r=r.firstElementChild))){var o=r.id.slice("block-".length);if(o){var a=r.getBoundingClientRect();e.clientX>a.right||e.clientX<a.left?c&&i(!1):(i(!0),m(o))}}}else c&&i(!1)}},t))}var fs=function(e){var t=e.clientId,n=e.rootClientId,r=Object(he.a)(e,["clientId","rootClientId"]),o=Object(v.useSelect)((function(e){var r,o=e("core/block-editor"),c=o.__unstableGetBlockWithoutInnerBlocks,i=o.getBlockIndex,a=o.hasBlockMovingClientId,l=o.getBlockListSettings,s=i(t,n),u=c(t);return{index:s,name:u.name,attributes:u.attributes,blockMovingMode:a(),orientation:null===(r=l(n))||void 0===r?void 0:r.orientation}}),[t,n]),i=o.index,a=o.name,s=o.attributes,d=o.blockMovingMode,f=o.orientation,p=Object(v.useDispatch)("core/block-editor"),m=p.setNavigationMode,O=p.removeBlock,g=Object(u.useRef)();Object(u.useEffect)((function(){g.current.focus(),window.navigator.platform.indexOf("Win")>-1&&Object(Le.speak)(k)}),[]);var j=Object(c.getBlockType)(a),k=Object(c.__experimentalGetAccessibleBlockLabel)(j,s,i+1,f),y=b()("block-editor-block-list__block-selection-button",{"is-block-moving-mode":!!d});return Object(u.createElement)("div",Object(l.a)({className:y},r),Object(u.createElement)(h.Button,{ref:g,onClick:function(){return m(!1)},onKeyDown:function(e){var n=e.keyCode;n!==st.BACKSPACE&&n!==st.DELETE||(O(t),e.preventDefault())},label:k},Object(u.createElement)(Zn,{clientId:t})))};function ps(e,t,n){var r=Object(u.useState)(t),o=Object(re.a)(r,1)[0],c=Object(u.useCallback)((function(){var t,n,r;t=e.current,n=kr.focus.tabbable.find(t),(r=Object(re.a)(n,1)[0])&&r.focus()}),[]);Object(a.useShortcut)("core/block-editor/focus-toolbar",c,{bindGlobal:!0,eventName:"keydown"}),Object(u.useEffect)((function(){o&&c()}),[n,o,c])}var ms=function(e){var t=e.children,n=e.focusOnMount,r=Object(he.a)(e,["children","focusOnMount"]),o=Object(u.useRef)(),c=function(e){var t=Object(u.useState)(!0),n=Object(re.a)(t,2),r=n[0],o=n[1],c=Object(u.useCallback)((function(){var t=kr.focus.tabbable.find(e.current),n=!t.some((function(e){return!("toolbarItem"in e.dataset)}));n||to()("Using custom components as toolbar controls",{alternative:"ToolbarItem or ToolbarButton components",link:"https://developer.wordpress.org/block-editor/components/toolbar-button/#inside-blockcontrols"}),o(n)}),[]);return Object(u.useLayoutEffect)((function(){var t=new window.MutationObserver(c);return t.observe(e.current,{childList:!0,subtree:!0}),function(){return t.disconnect()}}),[r]),r}(o);return ps(o,n,c),c?Object(u.createElement)(h.Toolbar,Object(l.a)({label:r["aria-label"],ref:o},r),t):Object(u.createElement)(h.NavigableMenu,Object(l.a)({orientation:"horizontal",role:"toolbar",ref:o},r),t)},vs=Object(u.createElement)(j.SVG,{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},Object(u.createElement)(j.Path,{d:"M5 4h2V2H5v2zm6-2v2h2V2h-2zm-6 8h2V8H5v2zm6 0h2V8h-2v2zm-6 6h2v-2H5v2zm6 0h2v-2h-2v2z"}));function Os(e){var t=e.clientIds,n=Object(v.useSelect)((function(e){var n;if(1===t.length){var r=(0,e("core/block-editor").getBlockName)(Object(re.a)(t,1)[0]);return null===(n=Object(c.getBlockType)(r))||void 0===n?void 0:n.icon}}),[t]);return Object(u.createElement)("div",{className:"block-editor-block-draggable-chip-wrapper"},Object(u.createElement)("div",{className:"block-editor-block-draggable-chip"},Object(u.createElement)(h.Flex,{justify:"center",className:"block-editor-block-draggable-chip__content"},Object(u.createElement)(h.FlexItem,null,n?Object(u.createElement)(qn,{icon:n}):Object(g.sprintf)(Object(g._n)("%d block","%d blocks",t.length),t.length)),Object(u.createElement)(h.FlexItem,null,Object(u.createElement)(qn,{icon:vs})))))}var gs=function(e){var t,n,r,o,c=e.children,i=e.clientIds,a=e.cloneClassname,l=e.onDragStart,s=e.onDragEnd,d=e.elementId,b=Object(v.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockRootClientId,r=t.getTemplateLock,o=n(i[0]);return{srcRootClientId:o,isDraggable:"all"!==(o?r(o):null)}}),[i]),f=b.srcRootClientId,p=b.isDraggable,m=Object(u.useRef)(!1),O=(t=Object(u.useRef)(null),n=Object(u.useRef)(null),r=Object(u.useRef)(null),o=Object(u.useRef)(null),Object(u.useEffect)((function(){return function(){o.current&&(clearInterval(o.current),o.current=null)}}),[]),[Object(u.useCallback)((function(e){t.current=e.clientY,r.current=Object(kr.getScrollContainer)(e.target),o.current=setInterval((function(){if(r.current&&n.current){var e=r.current.scrollTop+n.current;r.current.scroll({top:e})}}),25)}),[]),Object(u.useCallback)((function(e){if(r.current){var o=r.current.offsetHeight,c=t.current-r.current.offsetTop,i=e.clientY-r.current.offsetTop;if(e.clientY>c){var a=Math.max(o-c-50,0),l=Math.max(i-c-50,0)/a;n.current=25*l}else if(e.clientY<c){var s=Math.max(c-50,0),u=Math.max(c-i-50,0)/s;n.current=-25*u}else n.current=0}}),[]),function(){t.current=null,r.current=null,o.current&&(clearInterval(o.current),o.current=null)}]),g=Object(re.a)(O,3),j=g[0],k=g[1],y=g[2],_=Object(v.useDispatch)("core/block-editor"),E=_.startDraggingBlocks,C=_.stopDraggingBlocks;if(Object(u.useEffect)((function(){return function(){m.current&&C()}}),[]),!p)return c({isDraggable:!1});var w={type:"block",srcClientIds:i,srcRootClientId:f};return Object(u.createElement)(h.Draggable,{cloneClassname:a,elementId:d||"block-".concat(i[0]),transferData:w,onDragStart:function(e){E(i),m.current=!0,j(e),l&&l()},onDragOver:k,onDragEnd:function(){C(),m.current=!1,y(),s&&s()},__experimentalDragComponent:Object(u.createElement)(Os,{clientIds:i})},(function(e){var t=e.onDraggableStart,n=e.onDraggableEnd;return c({isDraggable:!0,onDraggableStart:t,onDraggableEnd:n})}))};var hs=Object(v.withSelect)((function(e,t){var n,r=t.clientIds,o=e("core/block-editor"),i=o.getBlock,a=o.getBlockIndex,l=o.getBlockListSettings,s=o.getTemplateLock,u=o.getBlockOrder,d=o.getBlockRootClientId,b=Object(f.castArray)(r),p=Object(f.first)(b),m=i(p),v=d(Object(f.first)(b)),O=a(p,v),g=0===O,h=a(Object(f.last)(b),v)===u(v).length-1;return{blockType:m?Object(c.getBlockType)(m.name):null,isLocked:"all"===s(v),rootClientId:v,firstIndex:O,isFirst:g,isLast:h,orientation:null===(n=l(v))||void 0===n?void 0:n.orientation}}))((function(e){var t=e.isFirst,n=e.isLast,r=e.clientIds,o=e.isLocked,c=e.isHidden,i=e.rootClientId,a=e.orientation,s=e.hideDragHandle,d=Object(u.useState)(!1),f=Object(re.a)(d,2),p=f[0],m=f[1],v=function(){return m(!0)},O=function(){return m(!1)};return o||t&&n&&!i?null:Object(u.createElement)("div",{className:b()("block-editor-block-mover",{"is-visible":p||!c,"is-horizontal":"horizontal"===a})},!s&&Object(u.createElement)(gs,{clientIds:r,cloneClassname:"block-editor-block-mover__drag-clone"},(function(e){var t=e.isDraggable,n=e.onDraggableStart,o=e.onDraggableEnd;return Object(u.createElement)(h.Button,{icon:vs,className:"block-editor-block-mover__drag-handle","aria-hidden":"true",label:Object(g._n)("Drag block","Drag blocks",r.length),tabIndex:"-1",onDragStart:n,onDragEnd:o,draggable:t})})),Object(u.createElement)(h.ToolbarGroup,{className:"block-editor-block-mover__move-button-container"},Object(u.createElement)(h.ToolbarItem,{onFocus:v,onBlur:O},(function(e){return Object(u.createElement)(Rr,Object(l.a)({clientIds:r},e))})),Object(u.createElement)(h.ToolbarItem,{onFocus:v,onBlur:O},(function(e){return Object(u.createElement)(Ar,Object(l.a)({clientIds:r},e))}))))}));function js(){var e=Object(v.useDispatch)("core/block-editor").selectBlock,t=Object(v.useSelect)((function(e){var t=e("core/block-editor"),r=t.getBlockName,o=t.getBlockParents,i=t.getSelectedBlockClientId,a=e("core/blocks").hasBlockSupport,l=o(i()),s=l[l.length-1],u=r(s);return{parentBlockType:Object(c.getBlockType)(u),firstParentClientId:s,shouldHide:!a(n,"__experimentalParentSelector",!0)}}),[]),n=t.parentBlockType,r=t.firstParentClientId;return t.shouldHide?null:void 0!==r?Object(u.createElement)("div",{className:"block-editor-block-parent-selector",key:r},Object(u.createElement)(h.ToolbarButton,{className:"block-editor-block-parent-selector__button",onClick:function(){return e(r)},label:Object(g.sprintf)(Object(g.__)("Select parent (%s)"),n.title),showTooltip:!0,icon:Object(u.createElement)(qn,{icon:n.icon})})):null}var ks=Object(u.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(j.Path,{d:"M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zm-13.5 0V4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1v11.8c0 .1-.1.1-.1.1H4.6l-.1-.1z"}));function ys(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return _s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _s(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}function _s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Es(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Cs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Es(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Es(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ws(e){var t=e.genericPreviewBlock,n=e.style,r=e.isActive,o=e.onBlur,c=e.onHover,i=e.onSelect,a=e.styleClassName,l=e.itemRole,s=Object(u.useMemo)((function(){return Cs(Cs({},t),{},{attributes:Cs(Cs({},t.attributes),{},{className:a})})}),[t,a]);return Object(u.createElement)("div",{key:n.name,className:b()("block-editor-block-styles__item",{"is-active":r}),onClick:function(){return i()},onKeyDown:function(e){st.ENTER!==e.keyCode&&st.SPACE!==e.keyCode||(e.preventDefault(),i())},onMouseEnter:c,onMouseLeave:o,role:l||"button",tabIndex:"0","aria-label":n.label||n.name},Object(u.createElement)("div",{className:"block-editor-block-styles__item-preview"},Object(u.createElement)(pl,{viewportWidth:500,blocks:s})),Object(u.createElement)("div",{className:"block-editor-block-styles__item-label"},n.label||n.name))}var Ss=function(e){var t=e.clientId,n=e.onSwitch,r=void 0===n?f.noop:n,o=e.onHoverClassName,i=void 0===o?f.noop:o,a=e.itemRole,l=Object(v.useSelect)((function(e){var n=e("core/block-editor").getBlock,r=e("core/blocks").getBlockStyles,o=n(t);return{block:o,type:Object(c.getBlockType)(o.name),styles:r(o.name),className:o.attributes.className||""}}),[t]),s=l.styles,d=l.block,b=l.type,p=l.className,m=Object(v.useDispatch)("core/block-editor").updateBlockAttributes,O=function(e,t){return Object(u.useMemo)((function(){return t.example?Object(c.getBlockFromExample)(e.name,{attributes:t.example.attributes,innerBlocks:t.example.innerBlocks}):Object(c.cloneBlock)(e)}),[t.example?e.name:e,t])}(d,b);if(!s||0===s.length)return null;var h=Object(f.find)(s,"isDefault")?s:[{name:"default",label:Object(g._x)("Default","block style"),isDefault:!0}].concat(Object(ne.a)(s)),j=function(e,t){var n,r=ys(new vt.a(t).values());try{for(r.s();!(n=r.n()).done;){var o=n.value;if(-1!==o.indexOf("is-style-")){var c=o.substring(9),i=Object(f.find)(e,{name:c});if(i)return i}}}catch(e){r.e(e)}finally{r.f()}return Object(f.find)(e,"isDefault")}(h,p);return Object(u.createElement)("div",{className:"block-editor-block-styles"},h.map((function(e){var n=function(e,t,n){var r=new vt.a(e);return t&&r.remove("is-style-"+t.name),r.add("is-style-"+n.name),r.value}(p,j,e);return Object(u.createElement)(ws,{genericPreviewBlock:O,className:p,isActive:j===e,key:e.name,onSelect:function(){m(t,{className:n}),i(null),r()},onBlur:function(){return i(null)},onHover:function(){return i(n)},style:e,styleClassName:n,itemRole:a})})))},Is=function(e){var t=e.className,n=e.possibleBlockTransformations,r=e.onSelect;return Object(u.createElement)(h.MenuGroup,{label:Object(g.__)("Transform to"),className:t},n.map((function(e){var t=e.name,n=e.icon,o=e.title;return Object(u.createElement)(h.MenuItem,{key:t,className:Object(c.getBlockMenuDefaultClassName)(t),onClick:function(e){e.preventDefault(),r(t)}},Object(u.createElement)(qn,{icon:n,showColors:!0}),o)})))};function Bs(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object($t.a)(e);if(t){var o=Object($t.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(qt.a)(this,n)}}function xs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ps(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xs(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ts(e){var t=e.hoveredBlock,n=e.hoveredClassName,r=Object(c.getBlockType)(t.name);return Object(u.createElement)("div",{className:"block-editor-block-switcher__popover__preview__parent"},Object(u.createElement)("div",{className:"block-editor-block-switcher__popover__preview__container"},Object(u.createElement)(h.Popover,{className:"block-editor-block-switcher__preview__popover",position:"bottom right",focusOnMount:!1},Object(u.createElement)("div",{className:"block-editor-block-switcher__preview"},Object(u.createElement)("div",{className:"block-editor-block-switcher__preview-title"},Object(g.__)("Preview")),Object(u.createElement)(pl,{viewportWidth:500,blocks:r.example?Object(c.getBlockFromExample)(t.name,{attributes:Ps(Ps({},r.example.attributes),{},{className:n}),innerBlocks:r.example.innerBlocks}):Object(c.cloneBlock)(t,{className:n})})))))}var Ns=function(e){Object(Kt.a)(n,e);var t=Bs(n);function n(){var e;return Object(Ut.a)(this,n),(e=t.apply(this,arguments)).state={hoveredClassName:null},e.onHoverClassName=e.onHoverClassName.bind(Object(Wt.a)(e)),e}return Object(Gt.a)(n,[{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,i=t.hasBlockStyles,a=this.state.hoveredClassName;if(!Array.isArray(n)||!n.length)return null;var l,s=Object(re.a)(n,1)[0],d=Object(f.mapKeys)(o,(function(e){return e.name})),b=Object(f.orderBy)(Object(f.filter)(Object(c.getPossibleBlockTransformations)(n),(function(e){return e&&!!d[e.name]})),(function(e){return d[e.name].frecency}),"desc");if(1===Object(f.uniq)(Object(f.map)(n,"name")).length){var p=s.name,m=Object(c.getBlockType)(p);l=m.icon}else l=ks;var v=!!b.length;if(!i&&!v)return Object(u.createElement)(h.ToolbarGroup,null,Object(u.createElement)(h.ToolbarButton,{disabled:!0,className:"block-editor-block-switcher__no-switcher-icon",title:Object(g.__)("Block icon"),icon:Object(u.createElement)(qn,{icon:l,showColors:!0})}));var O=1===n.length?Object(g.__)("Change block type or style"):Object(g.sprintf)(Object(g._n)("Change type of %d block","Change type of %d blocks",n.length),n.length);return Object(u.createElement)(h.ToolbarGroup,null,Object(u.createElement)(h.ToolbarItem,null,(function(t){return Object(u.createElement)(h.DropdownMenu,{className:"block-editor-block-switcher",label:O,popoverProps:{position:"bottom right",isAlternate:!0,className:"block-editor-block-switcher__popover"},icon:Object(u.createElement)(qn,{icon:l,className:"block-editor-block-switcher__toggle",showColors:!0}),toggleProps:t,menuProps:{orientation:"both"}},(function(t){var o=t.onClose;return(i||v)&&Object(u.createElement)("div",{className:"block-editor-block-switcher__container"},v&&Object(u.createElement)(Is,{className:"block-editor-block-switcher__transforms__menugroup",possibleBlockTransformations:b,onSelect:function(e){r(n,e),o()}}),i&&Object(u.createElement)(h.MenuGroup,{label:Object(g.__)("Styles"),className:"block-editor-block-switcher__styles__menugroup"},null!==a&&Object(u.createElement)(Ts,{hoveredBlock:s,hoveredClassName:a}),Object(u.createElement)(Ss,{clientId:s.clientId,onSwitch:o,onHoverClassName:e.onHoverClassName,itemRole:"menuitem"})))}))})))}}]),n}(u.Component),Ds=Object(p.compose)(Object(v.withSelect)((function(e,t){var n=t.clientIds,r=e("core/block-editor"),o=r.getBlocksByClientId,c=r.getBlockRootClientId,i=r.getInserterItems,a=e("core/blocks").getBlockStyles,l=c(Object(f.castArray)(n)[0]),s=o(n),u=s&&1===s.length?s[0]:null,d=u&&a(u.name);return{blocks:s,inserterItems:i(l),hasBlockStyles:d&&d.length>0}})),Object(v.withDispatch)((function(e,t){return{onTransform:function(n,r){e("core/block-editor").replaceBlocks(t.clientIds,Object(c.switchToBlockType)(n,r))}}})))(Ns),Rs=n(41);function As(){var e=Object(v.useSelect)((function(e){return e("core/block-editor")}),[]).getBlockName,t=Object(v.useSelect)((function(e){return e("core/blocks")}),[]).getBlockType,n=Object(v.useDispatch)("core/notices").createSuccessNotice;return Object(u.useCallback)((function(r,o){var c="";if(1===o.length){var i=o[0],a=t(e(i)).title;c="copy"===r?Object(g.sprintf)(Object(g.__)('Copied "%s" to clipboard.'),a):Object(g.sprintf)(Object(g.__)('Moved "%s" to clipboard.'),a)}else c="copy"===r?Object(g.sprintf)(Object(g._n)("Copied %d block to clipboard.","Copied %d blocks to clipboard.",o.length),o.length):Object(g.sprintf)(Object(g._n)("Moved %d block to clipboard.","Moved %d blocks to clipboard.",o.length),o.length);n(c,{type:"snackbar"})}),[])}var Ms=function(e){var t=e.children,n=Object(u.useRef)(),r=Object(v.useSelect)((function(e){return e("core/block-editor")}),[]),o=r.getBlocksByClientId,i=r.getSelectedBlockClientIds,a=r.hasMultiSelection,l=r.getSettings,s=Object(v.useDispatch)("core/block-editor"),d=s.flashBlock,b=s.removeBlocks,p=s.replaceBlocks,m=As(),O=l().__experimentalCanUserUseUnfilteredHTML,g=function(e){var t=i();if(0!==t.length){if(!a()){var r=e.target.ownerDocument;if("copy"===e.type||"cut"===e.type?Object(kr.documentHasUncollapsedSelection)(r):Object(kr.documentHasSelection)(r))return}if(n.current.contains(e.target)){if(e.preventDefault(),"copy"===e.type||"cut"===e.type){1===t.length&&d(t[0]),m(e.type,t);var l=o(t),s=Object(c.serialize)(l);e.clipboardData.setData("text/plain",s),e.clipboardData.setData("text/html",s)}if("cut"===e.type)b(t);else if("paste"===e.type){var u=function(e){var t=e.clipboardData,n=t.items,r=t.files;n=Object(f.isNil)(n)?[]:n,r=Object(f.isNil)(r)?[]:r;var o="",c="";try{o=t.getData("text/plain"),c=t.getData("text/html")}catch(e){try{c=t.getData("Text")}catch(e){return}}return r=Array.from(r),Array.from(n).forEach((function(e){if(e.getAsFile){var t=e.getAsFile();if(t){var n=t.name,o=t.type,c=t.size;Object(f.find)(r,{name:n,type:o,size:c})||r.push(t)}}})),(r=r.filter((function(e){var t=e.type;return/^image\/(?:jpe?g|png|gif)$/.test(t)}))).length&&!c&&(c=r.map((function(e){return'<img src="'.concat(Object(Rs.createBlobURL)(e),'">')})).join(""),o=""),{html:c,plainText:o}}(e),v=u.plainText,g=u.html,h=Object(c.pasteHandler)({HTML:g,plainText:v,mode:"BLOCKS",canUserUseUnfilteredHTML:O});p(t,h,h.length-1,-1)}}}};return Object(u.createElement)("div",{ref:n,onCopy:g,onCut:g,onPaste:g},t)};function Ls(e){var t=e.clientIds,n=e.children,r=e.__experimentalUpdateSelection,o=Object(v.useSelect)((function(e){return e("core/block-editor")}),[]),i=o.canInsertBlockType,a=o.getBlockRootClientId,l=o.getBlocksByClientId,s=o.getTemplateLock,u=Object(v.useSelect)((function(e){return e("core/blocks")}),[]),d=u.getDefaultBlockName,b=u.getGroupingBlockName,p=l(t),m=a(t[0]),O=Object(f.every)(p,(function(e){return!!e&&Object(c.hasBlockSupport)(e.name,"multiple",!0)&&i(e.name,m)})),g=i(d(),m),h=Object(v.useDispatch)("core/block-editor"),j=h.removeBlocks,k=h.replaceBlocks,y=h.duplicateBlocks,_=h.insertAfterBlock,E=h.insertBeforeBlock,C=h.flashBlock,w=h.setBlockMovingClientId,S=h.setNavigationMode,I=h.selectBlock,B=As();return n({canDuplicate:O,canInsertDefaultBlock:g,isLocked:!!s(m),rootClientId:m,blocks:p,onDuplicate:function(){return y(t,r)},onRemove:function(){return j(t,r)},onInsertBefore:function(){E(Object(f.first)(Object(f.castArray)(t)))},onInsertAfter:function(){_(Object(f.last)(Object(f.castArray)(t)))},onMoveTo:function(){S(!0),I(t[0]),w(t[0])},onGroup:function(){if(p.length){var e=b(),n=Object(c.switchToBlockType)(p,e);n&&k(t,n)}},onUngroup:function(){if(p.length){var e=p[0].innerBlocks;e.length&&k(t,e)}},onCopy:function(){var e=p.map((function(e){return e.clientId}));1===p.length&&C(e[0]),B("copy",e)}})}var Fs=Object(p.compose)([Object(v.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor"),o=r.getBlock,i=r.getBlockMode,a=r.getSettings,l=o(n),s=a().codeEditingEnabled;return{mode:i(n),blockType:l?Object(c.getBlockType)(l.name):null,isCodeEditingEnabled:s}})),Object(v.withDispatch)((function(e,t){var n=t.onToggle,r=void 0===n?f.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,i=void 0!==o&&o,a=e.isCodeEditingEnabled,l=void 0===a||a;if(!Object(c.hasBlockSupport)(t,"html",!0)||!l)return null;var s="visual"===n?Object(g.__)("Edit as HTML"):Object(g.__)("Edit visually");return Object(u.createElement)(h.MenuItem,{onClick:r},!i&&s)}));var Vs=Object(p.compose)(Object(v.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(v.withDispatch)((function(e,t){var n=t.block;return{onClick:function(){return e("core/block-editor").replaceBlocks(n.clientId,Object(c.rawHandler)({HTML:Object(c.getBlockContent)(n)}))}}})))((function(e){var t=e.shouldRender,n=e.onClick,r=e.small;if(!t)return null;var o=Object(g.__)("Convert to Blocks");return Object(u.createElement)(h.MenuItem,{onClick:n},!r&&o)})),Hs=Object(h.createSlotFill)("__experimentalBlockSettingsMenuFirstItem"),zs=Hs.Fill,Us=Hs.Slot;zs.Slot=Us;var Gs=zs;function Ws(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ks(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ws(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ws(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var qs=Object(h.createSlotFill)("BlockSettingsMenuControls"),$s=qs.Fill,Ys=qs.Slot;$s.Slot=function(e){var t=e.fillProps,n=e.clientIds,r=void 0===n?null:n,o=Object(v.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlocksByClientId,o=t.getSelectedBlockClientIds,c=null!==r?r:o();return Object(f.map)(Object(f.compact)(n(c)),(function(e){return e.name}))}),[r]);return Object(u.createElement)(Ys,{fillProps:Ks(Ks({},t),{},{selectedBlocks:o})},(function(e){return!Object(f.isEmpty)(e)&&Object(u.createElement)(h.MenuGroup,null,e)}))};var Xs=$s,Qs={className:"block-editor-block-settings-menu__popover",position:"bottom right",isAlternate:!0};var Zs=function(e){var t=e.clientIds,n=e.__experimentalSelectBlock,r=e.children,o=Object(he.a)(e,["clientIds","__experimentalSelectBlock","children"]),i=Object(f.castArray)(t),a=i.length,s=i[0],d=Object(v.useSelect)((function(e){var t=e("core/keyboard-shortcuts").getShortcutRepresentation;return{duplicate:t("core/block-editor/duplicate"),remove:t("core/block-editor/remove"),insertAfter:t("core/block-editor/insert-after"),insertBefore:t("core/block-editor/insert-before")}}),[]),b=Object(u.useCallback)(n?function(){var e=Object(gr.a)(Or.a.mark((function e(t){var r;return Or.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t;case 2:(r=e.sent)&&r[0]&&n(r[0]);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}():f.noop,[n]);return Object(u.createElement)(Ls,{clientIds:t,__experimentalUpdateSelection:!n},(function(e){var n=e.canDuplicate,i=e.canInsertDefaultBlock,p=e.isLocked,m=e.onDuplicate,v=e.onInsertAfter,O=e.onInsertBefore,j=e.onRemove,k=e.onCopy,y=e.onMoveTo,_=e.blocks;return Object(u.createElement)(h.DropdownMenu,Object(l.a)({icon:hr.a,label:Object(g.__)("More options"),className:"block-editor-block-settings-menu",popoverProps:Qs,noIcons:!0},o),(function(e){var o=e.onClose;return Object(u.createElement)(u.Fragment,null,Object(u.createElement)(h.MenuGroup,null,Object(u.createElement)(Gs.Slot,{fillProps:{onClose:o}}),1===a&&Object(u.createElement)(Vs,{clientId:s}),Object(u.createElement)(h.ClipboardButton,{text:function(){return Object(c.serialize)(_)},role:"menuitem",className:"components-menu-item__button",onCopy:k},Object(g.__)("Copy")),n&&Object(u.createElement)(h.MenuItem,{onClick:Object(f.flow)(o,m,b),shortcut:d.duplicate},Object(g.__)("Duplicate")),i&&Object(u.createElement)(u.Fragment,null,Object(u.createElement)(h.MenuItem,{onClick:Object(f.flow)(o,O),shortcut:d.insertBefore},Object(g.__)("Insert Before")),Object(u.createElement)(h.MenuItem,{onClick:Object(f.flow)(o,v),shortcut:d.insertAfter},Object(g.__)("Insert After"))),!p&&Object(u.createElement)(h.MenuItem,{onClick:Object(f.flow)(o,y)},Object(g.__)("Move To")),1===a&&Object(u.createElement)(Fs,{clientId:s,onToggle:o})),Object(u.createElement)(Xs.Slot,{fillProps:{onClose:o},clientIds:t}),"function"==typeof r?r({onClose:o}):u.Children.map((function(e){return Object(u.cloneElement)(e,{onClose:o})})),Object(u.createElement)(h.MenuGroup,null,!p&&Object(u.createElement)(h.MenuItem,{onClick:Object(f.flow)(o,j,b),shortcut:d.remove},Object(g._n)("Remove block","Remove blocks",a))))}))}))};var Js=function(e){var t=e.clientIds,n=Object(he.a)(e,["clientIds"]);return Object(u.createElement)(h.ToolbarGroup,null,Object(u.createElement)(h.ToolbarItem,null,(function(e){return Object(u.createElement)(Zs,Object(l.a)({clientIds:t,toggleProps:e},n))})))},eu=window,tu=eu.clearTimeout,nu=eu.setTimeout;function ru(e){var t=e.ref,n=e.isFocused,r=e.debounceTimeout,o=void 0===r?200:r,c=e.onChange,i=void 0===c?f.noop:c,a=Object(u.useState)(!1),l=Object(re.a)(a,2),s=l[0],d=l[1],b=Object(u.useRef)(),p=function(e){(null==t?void 0:t.current)&&d(e),i(e)},m=function(){var e=(null==t?void 0:t.current)&&t.current.matches(":hover");return!n&&!e},v=function(){var e=b.current;e&&tu&&tu(e)};return Object(u.useEffect)((function(){return function(){return v()}}),[]),{showMovers:s,debouncedShowMovers:function(e){e&&e.stopPropagation(),v(),s||p(!0)},debouncedHideMovers:function(e){e&&e.stopPropagation(),v(),b.current=nu((function(){m()&&p(!1)}),o)}}}var ou=n(278);function cu(e){var t=e.hideDragHandle,n=e.__experimentalExpandedControl,r=void 0!==n&&n,o=Object(v.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockName,r=t.getBlockMode,o=t.getSelectedBlockClientIds,i=t.isBlockValid,a=t.getBlockRootClientId,l=t.getSettings,s=o(),u=s[0],d=a(u),b=l();return{blockClientIds:s,blockClientId:u,blockType:u&&Object(c.getBlockType)(n(u)),hasFixedToolbar:b.hasFixedToolbar,hasReducedUI:b.hasReducedUI,rootClientId:d,isValid:s.every((function(e){return i(e)})),isVisual:s.every((function(e){return"visual"===r(e)}))}}),[]),i=o.blockClientIds,a=o.blockClientId,s=o.blockType,d=o.hasFixedToolbar,m=o.hasReducedUI,g=o.isValid,j=o.isVisual,k=Object(v.useDispatch)("core/block-editor").toggleBlockHighlight,y=Object(u.useRef)(),_=function(e){var t=e.ref,n=e.debounceTimeout,r=void 0===n?200:n,o=e.onChange,c=void 0===o?f.noop:o,i=Object(u.useState)(!1),a=Object(re.a)(i,2),l=a[0],s=a[1],d=ru({ref:t,debounceTimeout:r,isFocused:l,onChange:c}),b=d.showMovers,p=d.debouncedShowMovers,m=d.debouncedHideMovers,v=Object(u.useRef)(!1),O=function(){return(null==t?void 0:t.current)&&t.current.contains(t.current.ownerDocument.activeElement)};return Object(u.useEffect)((function(){var e=t.current,n=function(){O()&&(s(!0),p())},r=function(){O()||(s(!1),m())};return e&&!v.current&&(e.addEventListener("focus",n,!0),e.addEventListener("blur",r,!0),v.current=!0),function(){e&&(e.removeEventListener("focus",n),e.removeEventListener("blur",r))}}),[t,v,s,p,m]),{showMovers:b,gestures:{onMouseMove:p,onMouseLeave:m}}}({ref:y,onChange:function(e){e&&m||k(a,e)}}),E=_.showMovers,C=_.gestures,w=Object(p.useViewportMatch)("medium","<")||d;if(s&&!Object(c.hasBlockSupport)(s,"__experimentalToolbar",!0))return null;var S=w||E;if(0===i.length)return null;var I=g&&j,B=i.length>1,x=b()("block-editor-block-toolbar",S&&"is-showing-movers"),P=r?ou.a:"div";return Object(u.createElement)(P,{className:x},Object(u.createElement)("div",Object(l.a)({ref:y},C),!B&&Object(u.createElement)("div",{className:"block-editor-block-toolbar__block-parent-selector-wrapper"},Object(u.createElement)(js,{clientIds:i})),(I||B)&&Object(u.createElement)(h.ToolbarGroup,{className:"block-editor-block-toolbar__block-controls"},Object(u.createElement)(Ds,{clientIds:i}),Object(u.createElement)(hs,{clientIds:i,hideDragHandle:t||m}))),I&&Object(u.createElement)(u.Fragment,null,Object(u.createElement)(O.a.Slot,{bubblesVirtually:!0,className:"block-editor-block-toolbar__slot"}),Object(u.createElement)(mr.Slot,{bubblesVirtually:!0,className:"block-editor-block-toolbar__slot"})),Object(u.createElement)(Js,{clientIds:i}))}var iu=function(e){var t=e.focusOnMount,n=Object(he.a)(e,["focusOnMount"]),r=Object(v.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockName,r=t.getSelectedBlockClientIds,o=e("core/blocks").getBlockType,c=r()[0];return{blockType:c&&o(n(c))}}),[]).blockType;return r&&!Object(c.hasBlockSupport)(r,"__experimentalToolbar",!0)?null:Object(u.createElement)("div",{className:"block-editor-block-contextual-toolbar-wrapper"},Object(u.createElement)(ms,Object(l.a)({focusOnMount:t,className:"block-editor-block-contextual-toolbar","aria-label":Object(g.__)("Block tools")},n),Object(u.createElement)(cu,null)))};function au(e){var t=e("core/block-editor"),n=t.isNavigationMode,r=t.isMultiSelecting,o=t.hasMultiSelection,c=t.isTyping,i=t.isCaretWithinFormattedText,a=t.getSettings,l=t.getLastMultiSelectedBlockClientId;return{isNavigationMode:n(),isMultiSelecting:r(),isTyping:c(),isCaretWithinFormattedText:i(),hasMultiSelection:o(),hasFixedToolbar:a().hasFixedToolbar,lastClientId:l()}}function lu(e){var t=e.clientId,n=e.rootClientId,r=e.isValid,o=e.isEmptyDefaultBlock,c=e.capturingClientId,i=Object(v.useSelect)(au,[]),l=i.isNavigationMode,s=i.isMultiSelecting,d=i.isTyping,f=i.isCaretWithinFormattedText,m=i.hasMultiSelection,O=i.hasFixedToolbar,g=i.lastClientId,j=Object(p.useViewportMatch)("medium"),k=Object(u.useState)(!1),y=Object(re.a)(k,2),_=y[0],E=y[1],C=Object(u.useState)(!1),w=Object(re.a)(C,2),S=w[0],I=w[1],B=Object(u.useContext)(bu),x=!d&&!l&&o&&r,P=l,T=!l&&!O&&j&&!x&&!s&&(!d||f),N=!(l||T||O||o);if(Object(a.useShortcut)("core/block-editor/focus-toolbar",Object(u.useCallback)((function(){return E(!0)}),[]),{bindGlobal:!0,eventName:"keydown",isDisabled:!N}),!(P||T||_||x))return null;var D=B[t];if(c&&(D=document.getElementById("block-"+c)),!D)return null;var R=D;if(m){var A=B[g];if(!A)return null;R={top:D,bottom:A}}var M=x?"top left right":"top right left";return Object(u.createElement)(h.Popover,{noArrow:!0,animate:!1,position:M,focusOnMount:!1,anchorRef:R,className:"block-editor-block-list__block-popover",__unstableSticky:!x,__unstableSlotName:"block-toolbar",__unstableBoundaryParent:!0,__unstableObserveElement:D,onBlur:function(){return E(!1)},shouldAnchorIncludePadding:!0},(T||_)&&Object(u.createElement)("div",{onFocus:function(){I(!0)},onBlur:function(){I(!1)},tabIndex:-1,className:b()("block-editor-block-list__block-popover-inserter",{"is-visible":S})},Object(u.createElement)(os,{clientId:t,rootClientId:n,__experimentalIsQuick:!0})),(T||_)&&Object(u.createElement)(iu,{focusOnMount:_}),P&&Object(u.createElement)(fs,{clientId:t,rootClientId:n}),x&&Object(u.createElement)("div",{className:"block-editor-block-list__empty-block-inserter"},Object(u.createElement)(os,{position:"bottom right",rootClientId:n,clientId:t,__experimentalIsQuick:!0})))}function su(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getFirstMultiSelectedBlockClientId,o=t.getBlockRootClientId,i=t.__unstableGetBlockWithoutInnerBlocks,a=t.getBlockParents,l=t.__experimentalGetBlockListSettingsForBlocks,s=n()||r();if(s){var u,d=i(s)||{},b=d.name,p=d.attributes,m=void 0===p?{}:p,v=d.isValid,O=a(s),g=l(O),h=Object(f.findIndex)(g,["__experimentalCaptureToolbars",!0]);return-1!==h&&(u=O[h]),{clientId:s,rootClientId:o(s),name:b,isValid:v,isEmptyDefaultBlock:b&&Object(c.isUnmodifiedDefaultBlock)({name:b,attributes:m}),capturingClientId:u}}}function uu(){var e=Object(v.useSelect)(su,[]);if(!e)return null;var t=e.clientId,n=e.rootClientId,r=e.name,o=e.isValid,c=e.isEmptyDefaultBlock,i=e.capturingClientId;return r?Object(u.createElement)(lu,{clientId:t,rootClientId:n,isValid:o,isEmptyDefaultBlock:c,capturingClientId:i}):null}var du=Object(u.createContext)(),bu=Object(u.createContext)(),fu=Object(u.createContext)();function pu(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.hasMultiSelection;return{selectedBlockClientId:n(),hasMultiSelection:r()}}function mu(e){Ye(e.target)&&e.preventDefault()}var vu=Object(u.forwardRef)((function(e,t){var n=e.children,r=e.className,o=Object(v.useSelect)(pu,[]),c=o.selectedBlockClientId,i=o.hasMultiSelection,a=Object(v.useDispatch)("core/block-editor").selectBlock,l=function(e){var t=Object(v.useSelect)(ro,[]),n=t.isSelectionEnabled,r=t.isMultiSelecting,o=t.multiSelectedBlockClientIds,c=t.hasMultiSelection,i=t.getBlockParents,a=t.selectedBlockClientId,l=Object(v.useDispatch)("core/block-editor"),s=l.startMultiSelect,d=l.stopMultiSelect,b=l.multiSelect,f=l.selectBlock,p=Object(u.useRef)(),m=Object(u.useRef)(),O=Object(u.useRef)();Object(u.useEffect)((function(){var t=e.current.ownerDocument,n=t.defaultView;if(c&&!r){var i=o.length;if(!(i<2)){var l=o[0],s=o[i-1],u=qe(l),d=qe(s),b=n.getSelection(),f=t.createRange();u=no(u,"start"),d=no(d,"end"),f.setStartBefore(u),f.setEndAfter(d),b.removeAllRanges(),b.addRange(f)}}else{if(!a||r)return;var p=n.getSelection();if(p.rangeCount&&!p.isCollapsed){var m=qe(a),v=p.getRangeAt(0),O=v.startContainer,g=v.endContainer;!m||m.contains(O)&&m.contains(g)||p.removeAllRanges()}}}),[c,r,o,f,a]);var g=Object(u.useCallback)((function(t){var n=t.isSelectionEnd,r=e.current.ownerDocument.defaultView.getSelection();if(r.rangeCount&&!r.isCollapsed){var o=Ye(r.focusNode);if(m.current===o){if(f(o),n&&(oo(e.current,!0),r.rangeCount)){var c=r.getRangeAt(0).commonAncestorContainer;O.current.contains(c)&&O.current.focus()}}else{var a=[].concat(Object(ne.a)(i(m.current)),[m.current]),l=[].concat(Object(ne.a)(i(o)),[o]),s=Math.min(a.length,l.length)-1;b(a[s],l[s])}}else oo(e.current,!0)}),[f,i,b]),h=Object(u.useCallback)((function(){var t=e.current.ownerDocument,n=t.defaultView;t.removeEventListener("selectionchange",g),n.removeEventListener("mouseup",h),p.current=n.requestAnimationFrame((function(){g({isSelectionEnd:!0}),d()}))}),[g,d]);return Object(u.useEffect)((function(){var t=e.current.ownerDocument,n=t.defaultView;return function(){t.removeEventListener("selectionchange",g),n.removeEventListener("mouseup",h),n.cancelAnimationFrame(p.current)}}),[g,h]),Object(u.useCallback)((function(t){if(n){var r=e.current.ownerDocument,o=r.defaultView;m.current=t,O.current=r.activeElement,s(),r.addEventListener("selectionchange",g),o.addEventListener("mouseup",h),oo(e.current,!1)}}),[n,s,h])}(t),s=Object(u.useState)({}),d=Object(re.a)(s,2),f=d[0],p=d[1];return Object(u.createElement)(bs,{containerRef:t},Object(u.createElement)(bu.Provider,{value:f},Object(u.createElement)(uu,null),Object(u.createElement)("div",{ref:t,className:b()(r,"is-root-container"),onFocus:function(e){if(!i){var t=Ye(e.target);t&&t!==c&&a(t)}},onDragStart:mu},Object(u.createElement)(fu.Provider,{value:p},Object(u.createElement)(du.Provider,{value:l},n)))))})),Ou=["p","div","h1","h2","h3","h4","h5","h6","ol","ul","li","figure","nav","pre","header","section","aside","footer","main"];function gu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gu(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ju(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.__unstableIsHtml,r=Object(u.useRef)(),o=e.ref||r,c=Object(u.useContext)(du),i=Object(u.useContext)(fu),a=Object(u.useContext)(Cu),l=a.clientId,d=a.rootClientId,p=a.isSelected,m=a.isFirstMultiSelected,O=a.isLastMultiSelected,h=a.isPartOfMultiSelection,j=a.enableAnimation,k=a.index,y=a.className,_=a.name,E=a.mode,C=a.blockTitle,w=a.wrapperProps,S=void 0===w?{}:w,I=Object(v.useSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlocksInitialCaretPosition,r=t.isMultiSelecting,o=t.isNavigationMode;return{shouldFocusFirstElement:p&&!r()&&!o(),initialPosition:p?n():void 0,isNavigationMode:o}}),[p]),B=I.initialPosition,x=I.shouldFocusFirstElement,P=I.isNavigationMode,T=Object(v.useDispatch)("core/block-editor"),N=T.insertDefaultBlock,D=T.removeBlock,R=Object(u.useState)(!1),A=Object(re.a)(R,2),M=A[0],L=A[1];Object(u.useEffect)((function(){if(p||m||O){var e=o.current;return i((function(t){return hu(hu({},t),{},Object(s.a)({},l,e))})),function(){i((function(e){return Object(f.omit)(e,l)}))}}}),[p,m,O]),Object(u.useEffect)((function(){var e=o.current;i((function(t){return t[l]&&t[l]!==e?hu(hu({},t),{},Object(s.a)({},l,e)):t}))}));var F=Object(g.sprintf)(Object(g.__)("Block: %s"),C),V=function(){var e=o.current.ownerDocument;if(!e.activeElement||!$e(o.current,e.activeElement)){var t=kr.focus.tabbable.find(o.current).filter((function(e){return Object(kr.isTextField)(e)&&$e(o.current,e)&&!e.closest(".block-list-appender")})),n=-1===B,r=(n?f.last:f.first)(t)||o.current;Object(kr.placeCaretAtHorizontalEdge)(r,n)}};Object(u.useEffect)((function(){x&&V()}),[x]),Er(o,p||h,p||m,j,k),Object(u.useEffect)((function(){if(p)return o.current.addEventListener("keydown",e),o.current.addEventListener("mouseleave",t),function(){o.current.removeEventListener("mouseleave",t),o.current.removeEventListener("keydown",e)};function e(e){var t=e.keyCode,n=e.target;t!==st.ENTER&&t!==st.BACKSPACE&&t!==st.DELETE||n!==o.current||Object(kr.isTextField)(n)||(e.preventDefault(),t===st.ENTER?N({},d,k+1):D(l))}function t(e){1===e.buttons&&c(l)}}),[p,c,N,D]),Object(u.useEffect)((function(){if(P)return o.current.addEventListener("mouseover",e),o.current.addEventListener("mouseout",t),function(){o.current.removeEventListener("mouseover",e),o.current.removeEventListener("mouseout",t)};function e(e){e.defaultPrevented||(e.preventDefault(),M||L(!0))}function t(e){e.defaultPrevented||(e.preventDefault(),M&&L(!1))}}),[P,M,L]);var H="html"!==E||n?"":"-visual";return hu(hu(hu({},S),e),{},{ref:o,id:"block-".concat(l).concat(H),tabIndex:0,role:"group","aria-label":F,"data-block":l,"data-type":_,"data-title":C,className:b()(y,e.className,S.className,{"is-hovered":M}),style:hu(hu({},S.style),e.style)})}ju.save=c.__unstableGetBlockProps;var ku=Object(u.forwardRef)((function(e,t){var n=e.children,r=e.tagName,o=void 0===r?"div":r,c=Object(he.a)(e,["children","tagName"]);to()("wp.blockEditor.__experimentalBlock",{alternative:"wp.blockEditor.useBlockProps"});var i=ju(hu(hu({},c),{},{ref:t}));return Object(u.createElement)(o,i,n)})),yu=Ou.reduce((function(e,t){return e[t]=Object(u.forwardRef)((function(e,n){return Object(u.createElement)(ku,Object(l.a)({},e,{ref:n,tagName:t}))})),e}),ku);function _u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Eu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_u(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Cu=Object(u.createContext)();function wu(e){var t=e.children,n=e.isHtml,r=Object(he.a)(e,["children","isHtml"]);return Object(u.createElement)("div",ju(r,{__unstableIsHtml:n}),t)}var Su=Object(v.withSelect)((function(e,t){var n=t.clientId,r=t.rootClientId,o=e("core/block-editor"),c=o.isBlockSelected,i=o.isAncestorMultiSelected,a=o.isBlockMultiSelected,l=o.isFirstMultiSelectedBlock,s=o.getLastMultiSelectedBlockClientId,u=o.isTyping,d=o.getBlockMode,b=o.isSelectionEnabled,f=o.hasSelectedInnerBlock,p=o.getTemplateLock,m=o.__unstableGetBlockWithoutInnerBlocks,v=o.getMultiSelectedBlockClientIds,O=m(n),g=c(n),h=p(r),j=f(n,!0),k=O||{},y=k.name,_=k.attributes,E=k.isValid,C=l(n);return{isMultiSelected:a(n),isPartOfMultiSelection:a(n)||i(n),isFirstMultiSelected:C,isLastMultiSelected:s()===n,multiSelectedClientIds:C?v():void 0,isTypingWithinBlock:(g||j)&&u(),mode:d(n),isSelectionEnabled:b(),isLocked:!!h,block:O,name:y,attributes:_,isValid:E,isSelected:g,isAncestorOfSelectedBlock:j}})),Iu=Object(v.withDispatch)((function(e,t,n){var r=n.select,o=e("core/block-editor"),i=o.updateBlockAttributes,a=o.insertBlocks,l=o.mergeBlocks,s=o.replaceBlocks,u=o.toggleSelection,d=o.__unstableMarkLastChangeAsPersistent;return{setAttributes:function(e){var n=t.clientId,r=t.isFirstMultiSelected,o=t.multiSelectedClientIds;i(r?o:[n],e)},onInsertBlocks:function(e,n){var r=t.rootClientId;a(e,n,r)},onInsertBlocksAfter:function(e){var n=t.clientId,o=t.rootClientId,c=(0,r("core/block-editor").getBlockIndex)(n,o);a(e,c+1,o)},onMerge:function(e){var n=t.clientId,o=r("core/block-editor"),c=o.getPreviousBlockClientId,i=o.getNextBlockClientId;if(e){var a=i(n);a&&l(n,a)}else{var s=c(n);s&&l(s,n)}},onReplace:function(e,n,r){e.length&&!Object(c.isUnmodifiedDefaultBlock)(e[e.length-1])&&d(),s([t.clientId],e,n,r)},toggleSelection:function(e){u(e)}}})),Bu=Object(p.compose)(p.pure,Su,Iu,Object(p.ifCondition)((function(e){return!!e.block})),Object(h.withFilters)("editor.BlockListBlock"))((function(e){var t,n,r,o=e.mode,i=e.isLocked,a=e.clientId,s=e.rootClientId,d=e.isSelected,m=e.isMultiSelected,O=e.isPartOfMultiSelection,g=e.isFirstMultiSelected,h=e.isLastMultiSelected,j=e.isTypingWithinBlock,k=e.isAncestorOfSelectedBlock,y=e.isSelectionEnabled,_=e.className,E=e.name,C=e.isValid,w=e.attributes,S=e.wrapperProps,I=e.setAttributes,B=e.onReplace,x=e.onInsertBlocksAfter,P=e.onMerge,T=e.toggleSelection,N=e.index,D=e.enableAnimation,R=e.activeEntityBlockId,A=Object(p.useViewportMatch)("medium"),M=Object(v.useSelect)((function(e){var t=e("core/block-editor"),n=t.isBlockBeingDragged,r=t.isBlockHighlighted,o=t.getSettings;return{isDragging:n(a),isHighlighted:r(a),isFocusMode:o().focusMode}}),[a]),L=M.isDragging,F=M.isHighlighted,V=M.isFocusMode,H=Object(v.useDispatch)("core/block-editor").removeBlock,z=Object(u.useCallback)((function(){return H(a)}),[a]),U=Object(u.useState)(!1),G=Object(re.a)(U,2),W=G[0],K=G[1],q=Object(c.getBlockType)(E),$=q.apiVersion>1||Object(c.hasBlockSupport)(q,"lightBlockWrapper",!1),Y=E===Object(c.getUnregisteredTypeHandlerName)();q.getEditWrapperProps&&(t=S,n=q.getEditWrapperProps(w),r=Eu(Eu({},t),n),t&&n&&t.className&&n.className&&(r.className=b()(t.className,n.className)),t&&n&&t.style&&n.style&&(r.style=Eu(Eu({},t.style),n.style)),S=r);var X=$&&Object(c.hasBlockSupport)(q,"className",!0)?Object(c.getBlockDefaultClassName)(E):null,Q=$?w.className:null,Z=S&&!!S["data-align"],J=b()(X,Q,"block-editor-block-list__block",{"wp-block":!Z,"has-warning":!C||!!W||Y,"is-selected":d&&!L,"is-highlighted":F,"is-multi-selected":m,"is-reusable":Object(c.isReusableBlock)(q),"is-dragging":L,"is-typing":j,"is-focused":V&&A&&(d||k),"is-focus-mode":V&&A,"has-child-selected":k&&!L,"is-active-entity":R===a},_),ee=Object(u.createElement)(ur,{name:E,isSelected:d,attributes:w,setAttributes:I,insertBlocksAfter:i?void 0:x,onReplace:i?void 0:B,onRemove:i?void 0:z,mergeBlocks:i?void 0:P,clientId:a,isSelectionEnabled:y,toggleSelection:T});if(Z){var te={"data-align":S["data-align"]};ee=Object(u.createElement)("div",Object(l.a)({className:"wp-block"},te),ee)}var ne,oe={clientId:a,rootClientId:s,isSelected:d,isFirstMultiSelected:g,isLastMultiSelected:h,isPartOfMultiSelection:O,enableAnimation:D,index:N,className:J,isLocked:i,name:E,mode:o,blockTitle:q.title,wrapperProps:Object(f.omit)(S,["data-align"])},ce=Object(u.useMemo)((function(){return oe}),Object.values(oe));return ne=C?"html"===o?Object(u.createElement)(u.Fragment,null,Object(u.createElement)("div",{style:{display:"none"}},ee),Object(u.createElement)(wu,{isHtml:!0},Object(u.createElement)(Jr,{clientId:a}))):$?ee:Object(u.createElement)(wu,S,ee):Object(u.createElement)(wu,null,Object(u.createElement)(Kr,{clientId:a}),Object(u.createElement)("div",null,Object(c.getSaveElement)(q,w))),Object(u.createElement)(Cu.Provider,{value:ce},Object(u.createElement)(Xr,{onError:function(){return K(!0)}},ne),!!W&&Object(u.createElement)(wu,null,Object(u.createElement)($r,null)))})),xu=function(e,t,n){return Object(g.sprintf)(Object(g.__)("Block %1$d of %2$d, Level %3$d"),e,t,n)};var Pu=Object(u.forwardRef)((function e(t,n){var r=t.className,o=t.block,i=t.isSelected,a=t.onClick,l=t.position,s=t.siblingBlockCount,d=t.level,f=t.tabIndex,m=t.onFocus,v=t.onDragStart,O=t.onDragEnd,j=t.draggable,k=o.name,y=o.attributes,_=Object(c.getBlockType)(k),E=Object(c.__experimentalGetBlockLabel)(_,y),C=Object(p.useInstanceId)(e),w="block-navigation-block-select-button__".concat(C),S=xu(l,s,d);return Object(u.createElement)(u.Fragment,null,Object(u.createElement)(h.Button,{className:b()("block-editor-block-navigation-block-select-button",r),onClick:a,"aria-describedby":w,ref:n,tabIndex:f,onFocus:m,onDragStart:v,onDragEnd:O,draggable:j},Object(u.createElement)(qn,{icon:_.icon,showColors:!0}),E,i&&Object(u.createElement)(h.VisuallyHidden,null,Object(g.__)("(selected block)"))),Object(u.createElement)("div",{className:"block-editor-block-navigation-block-select-button__description",id:w},S))}));function Tu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tu(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Du=function(e){return"BlockNavigationBlock-".concat(e)};var Ru=Object(u.forwardRef)((function e(t,n){var r=Object(p.useInstanceId)(e),o=t.block.clientId;return Object(u.createElement)(h.Slot,{name:Du(o)},(function(e){if(!e.length)return Object(u.createElement)(Pu,Object(l.a)({ref:n},t));var o=t.className,i=t.block,a=t.isSelected,s=t.position,d=t.siblingBlockCount,f=t.level,p=t.tabIndex,m=t.onFocus,v=i.name,O=Object(c.getBlockType)(v),j="block-navigation-block-slot__".concat(r),k=xu(s,d,f),y={tabIndex:p,onFocus:m,ref:n,"aria-describedby":j};return Object(u.createElement)(u.Fragment,null,Object(u.createElement)("div",{className:b()("block-editor-block-navigation-block-slot",o)},Object(u.createElement)(qn,{icon:O.icon,showColors:!0}),u.Children.map(e,(function(e){return Object(u.cloneElement)(e,Nu(Nu({},e.props),y))})),a&&Object(u.createElement)(h.VisuallyHidden,null,Object(g.__)("(selected block)")),Object(u.createElement)("div",{className:"block-editor-block-navigation-block-slot__description",id:j},k)))}))})),Au=function(e){var t=Object(u.useContext)(Cu).clientId;return Object(u.createElement)(h.Fill,Object(l.a)({},e,{name:Du(t)}))},Mu=Object(u.forwardRef)((function(e,t){var n=e.onClick,r=e.block,o=e.isSelected,c=e.position,i=e.siblingBlockCount,a=e.level,s=Object(he.a)(e,["onClick","block","isSelected","position","siblingBlockCount","level"]),d=Fr(),f=d.__experimentalFeatures,p=d.blockDropTarget,m=void 0===p?{}:p,O=r.clientId,g=Object(v.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockRootClientId,r=t.hasBlockMovingClientId,o=t.getSelectedBlockClientId;return{rootClientId:n(O)||"",blockMovingClientId:r(),selectedBlockInBlockEditor:o()}}),[O]),h=g.rootClientId,j=g.blockMovingClientId,k=g.selectedBlockInBlockEditor,y=j&&k===O,_=m.rootClientId,E=m.clientId,C=m.dropPosition,w=_===h&&E===O&&"top"===C,S=_===h&&E===O&&"bottom"===C,I=_===O&&"inside"===C,B=b()("block-editor-block-navigation-block-contents",{"is-dropping-before":w||y,"is-dropping-after":S,"is-dropping-to-inner-blocks":I});return Object(u.createElement)(gs,{clientIds:[r.clientId],elementId:"block-navigation-block-".concat(r.clientId)},(function(e){var d=e.isDraggable,b=e.onDraggableStart,p=e.onDraggableEnd;return f?Object(u.createElement)(Ru,Object(l.a)({ref:t,className:B,block:r,onClick:n,isSelected:o,position:c,siblingBlockCount:i,level:a,draggable:d&&f,onDragStart:b,onDragEnd:p},s)):Object(u.createElement)(Pu,Object(l.a)({ref:t,className:B,block:r,onClick:n,isSelected:o,position:c,siblingBlockCount:i,level:a,draggable:d&&f,onDragStart:b,onDragEnd:p},s))}))}));function Lu(e){var t=e.block,n=e.isSelected,r=e.onClick,o=e.position,c=e.level,i=e.rowCount,a=e.siblingBlockCount,l=e.showBlockMovers,s=e.terminatedLevels,d=e.path,f=Object(u.useRef)(null),p=Object(u.useState)(!1),m=Object(re.a)(p,2),O=m[0],j=m[1],k=Object(u.useState)(!1),y=Object(re.a)(k,2),_=y[0],E=y[1],C=t.clientId,w=Object(v.useSelect)((function(e){var t=e("core/block-editor"),n=t.isBlockBeingDragged,r=t.isAncestorBeingDragged;return n(C)||r(C)}),[C]),S=Object(v.useDispatch)("core/block-editor").selectBlock,I=l&&a>0,B=O||_,x=b()("block-editor-block-navigation-block__mover-cell",{"is-visible":B}),P=Fr().__experimentalFeatures,T=b()("block-editor-block-navigation-block__menu-cell",{"is-visible":B});return Object(u.useEffect)((function(){P&&n&&f.current.focus()}),[P,n]),Object(u.createElement)(wr,{className:b()({"is-selected":n,"is-dragging":w}),onMouseEnter:function(){return j(!0)},onMouseLeave:function(){return j(!1)},onFocus:function(){return E(!0)},onBlur:function(){return E(!1)},level:c,position:o,rowCount:i,path:d,id:"block-navigation-block-".concat(C),"data-block":C},Object(u.createElement)(h.__experimentalTreeGridCell,{className:"block-editor-block-navigation-block__contents-cell",colSpan:I?void 0:2,ref:f},(function(e){var l=e.ref,d=e.tabIndex,b=e.onFocus;return Object(u.createElement)("div",{className:"block-editor-block-navigation-block__contents-container"},Object(u.createElement)(Mr,{level:c,isLastRow:o===i,terminatedLevels:s}),Object(u.createElement)(Mu,{block:t,onClick:function(){return r(t.clientId)},isSelected:n,position:o,siblingBlockCount:a,level:c,ref:l,tabIndex:d,onFocus:b}))})),I&&Object(u.createElement)(u.Fragment,null,Object(u.createElement)(h.__experimentalTreeGridCell,{className:x,withoutGridItem:!0},Object(u.createElement)(h.__experimentalTreeGridItem,null,(function(e){var t=e.ref,n=e.tabIndex,r=e.onFocus;return Object(u.createElement)(Rr,{orientation:"vertical",clientIds:[C],ref:t,tabIndex:n,onFocus:r})})),Object(u.createElement)(h.__experimentalTreeGridItem,null,(function(e){var t=e.ref,n=e.tabIndex,r=e.onFocus;return Object(u.createElement)(Ar,{orientation:"vertical",clientIds:[C],ref:t,tabIndex:n,onFocus:r})})))),P&&Object(u.createElement)(h.__experimentalTreeGridCell,{className:T},(function(e){var t=e.ref,n=e.tabIndex,o=e.onFocus;return Object(u.createElement)(Zs,{clientIds:[C],icon:hr.a,toggleProps:{ref:t,tabIndex:n,onFocus:o},disableOpenOnArrowDown:!0,__experimentalSelectBlock:r},(function(e){var t=e.onClose;return Object(u.createElement)(h.MenuGroup,null,Object(u.createElement)(h.MenuItem,{onClick:Object(gr.a)(Or.a.mark((function e(){return Or.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,S(null);case 2:return e.next=4,S(C);case 4:t();case 5:case"end":return e.stop()}}),e)})))},Object(g.__)("Go to block")))}))})))}function Fu(e){var t=e.parentBlockClientId,n=e.position,r=e.level,o=e.rowCount,c=e.terminatedLevels,i=e.path,a=Object(v.useSelect)((function(e){var n=e("core/block-editor"),r=n.isBlockBeingDragged,o=n.isAncestorBeingDragged;return r(t)||o(t)}),[t]),l=Object(p.useInstanceId)(Fu),s="block-navigation-appender-row__description_".concat(l),d=Object(g.sprintf)(Object(g.__)("Add block at position %1$d, Level %2$d"),n,r);return Object(u.createElement)(wr,{className:b()({"is-dragging":a}),level:r,position:n,rowCount:o,path:i},Object(u.createElement)(h.__experimentalTreeGridCell,{className:"block-editor-block-navigation-appender__cell",colSpan:"3"},(function(e){var i=e.ref,a=e.tabIndex,l=e.onFocus;return Object(u.createElement)("div",{className:"block-editor-block-navigation-appender__container"},Object(u.createElement)(Mr,{level:r,isLastRow:n===o,terminatedLevels:c}),Object(u.createElement)(os,{rootClientId:t,__experimentalIsQuick:!0,__experimentalSelectBlockOnInsert:!1,"aria-describedby":s,toggleProps:{ref:i,tabIndex:a,onFocus:l}}),Object(u.createElement)("div",{className:"block-editor-block-navigation-appender__description",id:s},d))})))}function Vu(e){var t=e.blocks,n=e.selectBlock,r=e.selectedBlockClientId,o=e.showAppender,c=e.showBlockMovers,i=e.showNestedBlocks,a=e.parentBlockClientId,l=e.level,s=void 0===l?1:l,d=e.terminatedLevels,b=void 0===d?[]:d,p=e.path,m=void 0===p?[]:p,v=!a,O=Object(f.compact)(t),g=function(e){return o&&!v&&r===e},h=g(a),j=O.length,k=h?j+1:j,y=k;return Object(u.createElement)(u.Fragment,null,Object(f.map)(O,(function(e,t){var a=e.clientId,l=e.innerBlocks,d=t+1,f=k===d?[].concat(Object(ne.a)(b),[s]):b,p=[].concat(Object(ne.a)(m),[d]),v=i&&!!l&&!!l.length,O=g(a);return Object(u.createElement)(u.Fragment,{key:a},Object(u.createElement)(Lu,{block:e,onClick:n,isSelected:r===a,level:s,position:d,rowCount:k,siblingBlockCount:j,showBlockMovers:c,terminatedLevels:b,path:p}),(v||O)&&Object(u.createElement)(Vu,{blocks:l,selectedBlockClientId:r,selectBlock:n,showAppender:o,showBlockMovers:c,showNestedBlocks:i,parentBlockClientId:a,level:s+1,terminatedLevels:f,path:p}))})),h&&Object(u.createElement)(Fu,{parentBlockClientId:a,position:k,rowCount:y,level:s,terminatedLevels:b,path:[].concat(Object(ne.a)(m),[y])}))}function Hu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zu(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Uu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Uu(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}function Uu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Gu(e,t){return t.left<=e.x&&t.right>=e.x&&t.top<=e.y&&t.bottom>=e.y}Vu.defaultProps={selectBlock:function(){}};var Wu=["top","bottom"];function Ku(e){var t=Object(u.useState)(),n=Object(re.a)(t,2),r=n[0],o=void 0===r?{}:r,c=n[1],i=nl(o.rootClientId,o.blockIndex),a=Object(h.__unstableUseDropZone)(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hu(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({element:e,withPosition:!0},i)),l=a.position,d=a.type,b=function(e,t,n){var r=Object(v.useSelect)((function(e){var t=e("core/block-editor");return{canInsertBlocks:t.canInsertBlocks,getBlockRootClientId:t.getBlockRootClientId,getBlockIndex:t.getBlockIndex,getBlockCount:t.getBlockCount,getDraggedBlockClientIds:t.getDraggedBlockClientIds}}),[]),o=r.getBlockRootClientId,c=r.getBlockIndex,i=r.getBlockCount,a=r.getDraggedBlockClientIds,l=r.canInsertBlocks,s=Object(u.useRef)(),d=!!t;return Object(u.useEffect)((function(){if(e.current&&d){var t="default"===n,r=t?a():void 0,u=Array.from(e.current.querySelectorAll("[data-block]"));s.current=u.map((function(e){var n=e.dataset.block,a=o(n);return{clientId:n,rootClientId:a,blockIndex:c(n,a),element:e,isDraggedBlock:!!t&&r.includes(n),innerBlockCount:i(n),canInsertDraggedBlocksAsSibling:!t||l(r,a),canInsertDraggedBlocksAsChild:!t||l(r,n)}}))}}),[e,d,n,l,i,c,o,a]),s}(e,l,d);if(Object(u.useEffect)((function(){if(l){var e=function(e,t){var n,r,o,c,i,a=zu(e);try{for(a.s();!(i=a.n()).done;){var l=i.value;if(!l.isDraggedBlock){var s=l.element.getBoundingClientRect(),u=ol(t,s,Wu),d=Object(re.a)(u,2),b=d[0],f=d[1],p=Gu(t,s);if(void 0===o||b<o||p){o=b;var m=e.indexOf(l),v=e[m-1];if("top"===f&&v&&v.rootClientId===l.rootClientId&&!v.isDraggedBlock?(r=v,n="bottom",c=v.element.getBoundingClientRect()):(r=l,n=f,c=s),p)break}}}}catch(e){a.e(e)}finally{a.f()}if(r){var O="bottom"===n;if(O&&r.canInsertDraggedBlocksAsChild&&(r.innerBlockCount>0||function(e,t){var n=t.left+t.width/2;return e.x>n}(t,c)))return{rootClientId:r.clientId,blockIndex:0,dropPosition:"inside"};if(r.canInsertDraggedBlocksAsSibling){var g=O?1:0;return{rootClientId:r.rootClientId,clientId:r.clientId,blockIndex:r.blockIndex+g,dropPosition:n}}}}(b.current,l);e&&c(e)}}),[b,l]),l)return o}function qu(e){var t=e.__experimentalFeatures,n=Object(he.a)(e,["__experimentalFeatures"]),r=Object(u.useRef)(),o=Ku(r);t||(o=void 0);var c=Object(u.useMemo)((function(){return{__experimentalFeatures:t,blockDropTarget:o}}),[t,o]);return Object(u.createElement)(h.__experimentalTreeGrid,{className:"block-editor-block-navigation-tree","aria-label":Object(g.__)("Block navigation structure"),ref:r},Object(u.createElement)(Lr.Provider,{value:c},Object(u.createElement)(Vu,n)))}var $u=Object(p.compose)(Object(v.withSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getBlockHierarchyRootClientId,o=t.__unstableGetBlockWithBlockTree,c=t.__unstableGetBlockTree,i=n();return{rootBlocks:c(),rootBlock:i?o(r(i)):null,selectedBlockClientId:i}})),Object(v.withDispatch)((function(e,t){var n=t.onSelect,r=void 0===n?f.noop:n;return{selectBlock:function(t){e("core/block-editor").selectBlock(t),r(t)}}})))((function(e){var t=e.rootBlock,n=e.rootBlocks,r=e.selectedBlockClientId,o=e.selectBlock,c=e.__experimentalFeatures;if(!n||0===n.length)return null;var i=t&&(t.clientId!==r||t.innerBlocks&&0!==t.innerBlocks.length);return Object(u.createElement)("div",{className:"block-editor-block-navigation__container"},Object(u.createElement)("p",{className:"block-editor-block-navigation__label"},Object(g.__)("List view")),i&&Object(u.createElement)(qu,{blocks:[t],selectedBlockClientId:r,selectBlock:o,__experimentalFeatures:c,showNestedBlocks:!0}),!i&&Object(u.createElement)(qu,{blocks:n,selectedBlockClientId:r,selectBlock:o,__experimentalFeatures:c}))})),Yu=Object(u.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},Object(u.createElement)(h.Path,{d:"M13.8 5.2H3v1.5h10.8V5.2zm-3.6 12v1.5H21v-1.5H10.2zm7.2-6H6.6v1.5h10.8v-1.5z"}));function Xu(e){var t=e.isEnabled,n=e.onToggle,r=e.isOpen,o=e.innerRef,c=Object(he.a)(e,["isEnabled","onToggle","isOpen","innerRef"]);Object(a.useShortcut)("core/edit-post/toggle-block-navigation",Object(u.useCallback)(n,[n]),{bindGlobal:!0,isDisabled:!t});var i=Object(v.useSelect)((function(e){return e("core/keyboard-shortcuts").getShortcutRepresentation("core/edit-post/toggle-block-navigation")}),[]);return Object(u.createElement)(h.Button,Object(l.a)({},c,{ref:o,icon:Yu,"aria-expanded":r,"aria-haspopup":"true",onClick:t?n:void 0,label:Object(g.__)("Outline"),className:"block-editor-block-navigation",shortcut:i,"aria-disabled":!t}))}var Qu=Object(u.forwardRef)((function(e,t){var n=e.isDisabled,r=e.__experimentalFeatures,o=Object(he.a)(e,["isDisabled","__experimentalFeatures"]),c=Object(v.useSelect)((function(e){return!!e("core/block-editor").getBlockCount()}),[])&&!n;return Object(u.createElement)(h.Dropdown,{contentClassName:"block-editor-block-navigation__popover",position:"bottom right",renderToggle:function(e){var n=e.isOpen,r=e.onToggle;return Object(u.createElement)(Xu,Object(l.a)({},o,{innerRef:t,isOpen:n,onToggle:r,isEnabled:c}))},renderContent:function(e){var t=e.onClose;return Object(u.createElement)($u,{onSelect:t,__experimentalFeatures:r})}})})),Zu=n(130),Ju=[st.rawShortcut.primary("z"),st.rawShortcut.primaryShift("z"),st.rawShortcut.primary("y")],ed=Object(u.createElement)(h.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(f.fromPairs)(Ju.map((function(e){return[e,function(e){return e.preventDefault()}]})))}),td=function(){return ed};function nd(e){return e.filter((function(e){var t=e.type;return/^image\/(?:jpe?g|png|gif)$/.test(t)})).map((function(e){return'<img src="'.concat(Object(Rs.createBlobURL)(e),'">')})).join("")}var rd={position:"bottom right",isAlternate:!0},od=function(){return Object(u.createElement)("div",{className:"block-editor-format-toolbar"},Object(u.createElement)(h.ToolbarGroup,null,["bold","italic","link","text-color"].map((function(e){return Object(u.createElement)(h.Slot,{name:"RichText.ToolbarControls.".concat(e),key:e})})),Object(u.createElement)(h.Slot,{name:"RichText.ToolbarControls"},(function(e){return 0!==e.length&&Object(u.createElement)(h.ToolbarItem,null,(function(t){return Object(u.createElement)(h.DropdownMenu,{icon:xr.a,label:Object(g.__)("More rich text controls"),toggleProps:t,controls:Object(f.orderBy)(e.map((function(e){return Object(re.a)(e,1)[0].props})),"title"),popoverProps:rd})}))}))))},cd=function(e){var t=e.inline,n=e.anchorRef;return t?Object(u.createElement)(h.Popover,{noArrow:!0,position:"top center",focusOnMount:!1,anchorRef:n,className:"block-editor-rich-text__inline-format-toolbar"},Object(u.createElement)(od,null)):Object(u.createElement)(mr,null,Object(u.createElement)(od,null))};function id(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ad(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?id(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):id(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ld(e){if(!0===e||"p"===e||"li"===e)return!0===e?"p":e}function sd(e){var t=e.allowedFormats,n=e.formattingControls;return e.disableFormats?sd.EMPTY_ARRAY:t||n?t||(to()("wp.blockEditor.RichText formattingControls prop",{alternative:"allowedFormats"}),n.map((function(e){return"core/".concat(e)}))):void 0}sd.EMPTY_ARRAY=[];var ud=Object(u.forwardRef)((function e(t,n){var r=t.children,o=t.tagName,a=t.value,s=t.onChange,d=t.isSelected,f=t.multiline,m=t.inlineToolbar,O=t.wrapperClassName,g=t.autocompleters,h=t.onReplace,j=t.placeholder,k=t.keepPlaceholderOnFocus,y=t.allowedFormats,_=t.formattingControls,E=t.withoutInteractiveFormatting,C=t.onRemove,w=t.onMerge,S=t.onSplit,I=t.__unstableOnSplitAtEnd,B=t.__unstableOnSplitMiddle,x=t.identifier,P=t.preserveWhiteSpace,T=t.__unstableEmbedURLOnPaste,N=t.__unstableDisableFormats,D=t.disableLineBreaks,R=t.unstableOnFocus,A=t.__unstableAllowPrefixTransformations,M=t.__unstableMultilineRootTag,L=t.__unstableMobileNoFocusOnMount,F=t.deleteEnter,V=t.placeholderTextColor,H=t.textAlign,U=t.selectionColor,G=t.tagsToEliminate,W=t.rootTagsToEliminate,K=t.disableEditingMenu,q=t.fontSize,$=t.fontFamily,Y=t.fontWeight,X=t.fontStyle,Q=t.minWidth,Z=t.maxWidth,J=t.onBlur,ee=t.setRef,te=Object(he.a)(t,["children","tagName","value","onChange","isSelected","multiline","inlineToolbar","wrapperClassName","autocompleters","onReplace","placeholder","keepPlaceholderOnFocus","allowedFormats","formattingControls","withoutInteractiveFormatting","onRemove","onMerge","onSplit","__unstableOnSplitAtEnd","__unstableOnSplitMiddle","identifier","preserveWhiteSpace","__unstableEmbedURLOnPaste","__unstableDisableFormats","disableLineBreaks","unstableOnFocus","__unstableAllowPrefixTransformations","__unstableMultilineRootTag","__unstableMobileNoFocusOnMount","deleteEnter","placeholderTextColor","textAlign","selectionColor","tagsToEliminate","rootTagsToEliminate","disableEditingMenu","fontSize","fontFamily","fontWeight","fontStyle","minWidth","maxWidth","onBlur","setRef"]),oe=Object(p.useInstanceId)(e);x=x||oe;var ce=Object(u.useRef)(),ie=n||ce,ae=Object(z.b)(),le=ae.clientId,se=ae.onCaretVerticalPositionChange,ue=ae.isSelected,de=Object(v.useSelect)((function(e){var t,n=e("core/block-editor"),r=n.isCaretWithinFormattedText,o=n.getSelectionStart,i=n.getSelectionEnd,a=n.getSettings,l=n.didAutomaticChange,s=n.__unstableGetBlockWithoutInnerBlocks,b=n.isMultiSelecting,f=n.hasMultiSelection,p=o(),m=i(),v=a().__experimentalUndo;void 0===d?t=p.clientId===le&&p.attributeKey===x:d&&(t=p.clientId===le);var O={};if("native"===u.Platform.OS){var g=le&&s(le);O={shouldBlurOnUnmount:g&&t&&Object(c.isUnmodifiedDefaultBlock)(g)}}return ad({isCaretWithinFormattedText:r(),selectionStart:t?p.offset:void 0,selectionEnd:t?m.offset:void 0,isSelected:t,didAutomaticChange:l(),disabled:b()||f(),undo:v},O)})),be=de.isCaretWithinFormattedText,fe=de.selectionStart,pe=de.selectionEnd,me=de.isSelected,ve=de.didAutomaticChange,Oe=de.disabled,ge=de.undo,je=de.shouldBlurOnUnmount,ke=Object(v.useDispatch)("core/block-editor"),ye=ke.__unstableMarkLastChangeAsPersistent,_e=ke.enterFormattedText,Ee=ke.exitFormattedText,Ce=ke.selectionChange,we=ke.__unstableMarkAutomaticChange,Se=ld(f),Ie=sd({allowedFormats:y,formattingControls:_,disableFormats:N}),Be=!Ie||Ie.length>0,xe=a,Pe=s;Array.isArray(a)&&(xe=c.children.toHTML(a),Pe=function(e){return s(c.children.fromDOM(Object(i.__unstableCreateElement)(document,e).childNodes))});var Te=Object(u.useCallback)((function(e,t){Ce(le,x,e,t)}),[le,x]),Ne=Object(u.useCallback)((function(e){var t=e.value,n=e.isReverse;w&&w(!n),C&&Object(i.isEmpty)(t)&&n&&C(!n)}),[w,C]),De=Object(u.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(h&&S){var n=[],r=Object(i.split)(e),o=Object(re.a)(r,2),c=o[0],a=o[1],l=t.length>0,s=-1;l&&Object(i.isEmpty)(c)||(n.push(S(Object(i.toHTMLString)({value:c,multilineTag:Se}))),s+=1),l?(n.push.apply(n,Object(ne.a)(t)),s+=t.length):B&&n.push(B()),(l||B)&&Object(i.isEmpty)(a)||n.push(S(Object(i.toHTMLString)({value:a,multilineTag:Se})));var u=l?s:1,d=l?-1:null;h(n,u,d)}}),[h,S,Se,B]),Re=Object(u.useCallback)((function(e){var t=e.value,n=e.onChange,r=e.shiftKey,o=h&&S;if(h){var a=Object(c.getBlockTransforms)("from").filter((function(e){return"enter"===e.type})),l=Object(c.findTransform)(a,(function(e){return e.regExp.test(t.text)}));l&&(h([l.transform({content:t.text})]),we())}if(f)r?D||n(Object(i.insert)(t,"\n")):o&&Object(i.__unstableIsEmptyLine)(t)?De(t):n(Object(i.__unstableInsertLineSeparator)(t));else{var s=t.text,u=t.start,d=t.end,b=I&&u===d&&d===s.length;r||!o&&!b?D||n(Object(i.insert)(t,"\n")):!o&&b?I():o&&De(t)}}),[h,S,we,f,De,I]),Ae=Object(u.useCallback)((function(e){var t=e.value,n=e.onChange,r=e.html,a=e.plainText,l=e.files,s=e.activeFormats;if(l&&l.length&&!r){var u=Object(c.pasteHandler)({HTML:nd(l),mode:"BLOCKS",tagName:o,preserveWhiteSpace:P});return window.console.log("Received items:\n\n",l),void(h&&Object(i.isEmpty)(t)?h(u):De(t,u))}var d,b=h&&S?"AUTO":"INLINE";"AUTO"===b&&Object(i.isEmpty)(t)&&(d=a,Object(Zu.regexp)(".*").test(d))&&(b="BLOCKS"),T&&Object(i.isEmpty)(t)&&Object(Vl.isURL)(a.trim())&&(b="BLOCKS");var p=Object(c.pasteHandler)({HTML:r,plainText:a,mode:b,tagName:o,preserveWhiteSpace:P});if("string"==typeof p){var m=Object(i.create)({html:p});if(s.length)for(var v=m.formats.length;v--;)m.formats[v]=[].concat(Object(ne.a)(s),Object(ne.a)(m.formats[v]||[]));f&&(m=Object(i.replace)(m,/\n+/g,i.__UNSTABLE_LINE_SEPARATOR)),n(Object(i.insert)(t,m))}else p.length>0&&(h&&Object(i.isEmpty)(t)?h(p,p.length-1,-1):De(t,p))}),[o,h,S,De,T,f,P]),Me=Object(u.useCallback)((function(e,t){if(h){var n=e.start,r=e.text;if(" "===r.slice(n-1,n)){var o=r.slice(0,n).trim(),a=Object(c.getBlockTransforms)("from").filter((function(e){return"prefix"===e.type})),l=Object(c.findTransform)(a,(function(e){var t=e.prefix;return o===t}));if(l){var s=t(Object(i.slice)(e,n,r.length)),u=l.transform(s);h([u]),we()}}}}),[h,we]),Le=Object(u.createElement)(i.__experimentalRichText,{clientId:le,identifier:x,ref:ie,value:xe,onChange:Pe,selectionStart:fe,selectionEnd:pe,onSelectionChange:Te,tagName:o,placeholder:j,allowedFormats:Ie,withoutInteractiveFormatting:E,onEnter:Re,onDelete:Ne,onPaste:Ae,__unstableIsSelected:me,__unstableInputRule:Me,__unstableMultilineTag:Se,__unstableIsCaretWithinFormattedText:be,__unstableOnEnterFormattedText:_e,__unstableOnExitFormattedText:Ee,__unstableOnCreateUndoLevel:ye,__unstableMarkAutomaticChange:we,__unstableDidAutomaticChange:ve,__unstableUndo:ge,__unstableDisableFormats:N,preserveWhiteSpace:P,disabled:Oe,unstableOnFocus:R,__unstableAllowPrefixTransformations:A,__unstableMultilineRootTag:M,onCaretVerticalPositionChange:se,blockIsSelected:void 0!==d?d:ue,shouldBlurOnUnmount:je,__unstableMobileNoFocusOnMount:L,deleteEnter:F,placeholderTextColor:V,textAlign:H,selectionColor:U,tagsToEliminate:G,rootTagsToEliminate:W,disableEditingMenu:K,fontSize:q,fontFamily:$,fontWeight:Y,fontStyle:X,minWidth:Q,maxWidth:Z,onBlur:J,setRef:ee,id:te.id,style:te.style},(function(e){var t=e.isSelected,n=e.value,o=e.onChange,c=e.onFocus,i=e.editableProps,a=e.editableTagName;return Object(u.createElement)(u.Fragment,null,r&&r({value:n,onChange:o,onFocus:c}),t&&Be&&Object(u.createElement)(cd,{inline:m,anchorRef:ie.current}),t&&Object(u.createElement)(td,null),Object(u.createElement)(Xn,{onReplace:h,completers:g,record:n,onChange:o,isSelected:t},(function(e){var t=e.listBoxId,n=e.activeId,r=e.onKeyDown;return Object(u.createElement)(a,Object(l.a)({},i,te,{style:te.style?ad(ad({},te.style),i.style):i.style,className:b()("block-editor-rich-text__editable",te.className,i.className,{"keep-placeholder-on-focus":k}),"aria-autocomplete":t?"list":void 0,"aria-owns":t,"aria-activedescendant":n,onKeyDown:function(e){r(e),i.onKeyDown(e)}}))})))}));return O?(to()("wp.blockEditor.RichText wrapperClassName prop",{alternative:"className prop or create your own wrapper div"}),Object(u.createElement)("div",{className:b()("block-editor-rich-text",O)},Le)):Le}));ud.Content=function(e){var t=e.value,n=e.tagName,r=e.multiline,o=Object(he.a)(e,["value","tagName","multiline"]);Array.isArray(t)&&(t=c.children.toHTML(t));var i=ld(r);!t&&i&&(t="<".concat(i,"></").concat(i,">"));var a=Object(u.createElement)(u.RawHTML,null,t);return n?Object(u.createElement)(n,Object(f.omit)(o,["format"]),a):a},ud.isEmpty=function(e){return!e||0===e.length},ud.Content.defaultProps={format:"string",value:""};var dd=ud;function bd(e){var t=e.value,n=e.onChange;return Object(u.createElement)(Au,null,Object(u.createElement)(dd,{value:t,onChange:n,placeholder:Object(g.__)("Navigation item"),keepPlaceholderOnFocus:!0,withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic","core/image","core/strikethrough"]}))}var fd=n(318);var pd=function(e){var t=e.icon,n=void 0===t?fd.a:t,r=e.label,o=void 0===r?Object(g.__)("Choose variation"):r,c=e.instructions,i=void 0===c?Object(g.__)("Select a variation to start with."):c,a=e.variations,l=e.onSelect,s=e.allowSkip,d=b()("block-editor-block-variation-picker",{"has-many-variations":a.length>4});return Object(u.createElement)(h.Placeholder,{icon:n,label:o,instructions:i,className:d},Object(u.createElement)("ul",{className:"block-editor-block-variation-picker__variations",role:"list","aria-label":Object(g.__)("Block variations")},a.map((function(e){return Object(u.createElement)("li",{key:e.name},Object(u.createElement)(h.Button,{isSecondary:!0,icon:e.icon,iconSize:48,onClick:function(){return l(e)},className:"block-editor-block-variation-picker__variation",label:e.description||e.title}),Object(u.createElement)("span",{className:"block-editor-block-variation-picker__variation-label",role:"presentation"},e.title))}))),s&&Object(u.createElement)("div",{className:"block-editor-block-variation-picker__skip"},Object(u.createElement)(h.Button,{isLink:!0,onClick:function(){return l()}},Object(g.__)("Skip"))))},md=Object(u.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(h.Path,{d:"M15 4H9v11h6V4zM4 18.5V20h16v-1.5H4z"})),vd=Object(u.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(h.Path,{d:"M20 11h-5V4H9v7H4v1.5h5V20h6v-7.5h5z"}));function Od(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Od(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Od(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var hd={top:{icon:Object(u.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(h.Path,{d:"M9 20h6V9H9v11zM4 4v1.5h16V4H4z"})),title:Object(g._x)("Vertically Align Top","Block vertical alignment setting")},center:{icon:vd,title:Object(g._x)("Vertically Align Middle","Block vertical alignment setting")},bottom:{icon:md,title:Object(g._x)("Vertically Align Bottom","Block vertical alignment setting")}},jd=["top","center","bottom"],kd={isAlternate:!0};var yd=function(e){var t=e.value,n=e.onChange,r=e.controls,o=void 0===r?jd:r,c=e.isCollapsed,i=void 0===c||c,a=hd[t],l=hd.top;return Object(u.createElement)(h.ToolbarGroup,{popoverProps:kd,isCollapsed:i,icon:a?a.icon:l.icon,label:Object(g._x)("Change vertical alignment","Block vertical alignment setting label"),controls:o.map((function(e){return gd(gd({},hd[e]),{},{isActive:t===e,role:i?"menuitemradio":void 0,onClick:(r=e,function(){return n(t===r?void 0:r)})});var r}))})};function _d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ed(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_d(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Cd=Object(p.createHigherOrderComponent)((function(e){return function(t){var n=de("color.palette"),r=!de("color.custom"),o=void 0===t.colors?n:t.colors,c=void 0===t.disableCustomColors?r:t.disableCustomColors,i=!Object(f.isEmpty)(o)||!c;return Object(u.createElement)(e,Ed(Ed({},t),{},{colors:o,disableCustomColors:c,hasColorsToChoose:i}))}}),"withColorContext"),wd=Cd(h.ColorPalette);function Sd(e){var t=e.onChange,n=e.value,r=Object(he.a)(e,["onChange","value"]);return Object(u.createElement)(Ie,Object(l.a)({},r,{onColorChange:t,colorValue:n,gradients:[],disableCustomGradients:!0}))}var Id=[];function Bd(e){var t=de("color.gradients")||Id,n=!de("color.customGradient");return Object(u.createElement)(h.__experimentalGradientPicker,Object(l.a)({gradients:void 0!==e.gradients?e.gradient:t,disableCustomGradients:void 0!==e.disableCustomGradients?e.disableCustomGradients:n},e))}var xd=function(e){var t=void 0!==e.gradients&&void 0!==e.disableCustomGradients?h.__experimentalGradientPicker:Bd;return Object(u.createElement)(t,e)};function Pd(e){var t=e.className,n=e.value,r=e.onChange,o=e.label,c=void 0===o?Object(g.__)("Gradient Presets"):o,i=Object(he.a)(e,["className","value","onChange","label"]),a=de("color.gradients"),s=!de("color.customGradient");return Object(f.isEmpty)(a)&&s?null:Object(u.createElement)(h.BaseControl,{className:b()("block-editor-gradient-picker-control",t)},Object(u.createElement)(h.BaseControl.VisualLabel,null,c),Object(u.createElement)(xd,Object(l.a)({value:n,onChange:r,className:"block-editor-gradient-picker-control__gradient-picker-presets",gradients:a,disableCustomGradients:s},i)))}function Td(e){var t=de("color.gradients");return Object(f.isEmpty)(t)?null:Object(u.createElement)(h.PanelBody,{title:Object(g.__)("Gradient")},Object(u.createElement)(Pd,e))}var Nd=[25,50,75,100];function Dd(e){var t,n,r=e.imageWidth,o=e.imageHeight,c=e.imageSizeOptions,i=void 0===c?[]:c,a=e.isResizable,l=void 0===a||a,s=e.slug,d=e.width,b=e.height,p=e.onChange,m=e.onChangeImage,v=void 0===m?f.noop:m;function O(e,t){return function(){p({width:e,height:t})}}return Object(u.createElement)(u.Fragment,null,!Object(f.isEmpty)(i)&&Object(u.createElement)(h.SelectControl,{label:Object(g.__)("Image size"),value:s,options:i,onChange:v}),l&&Object(u.createElement)("div",{className:"block-editor-image-size-control"},Object(u.createElement)("p",{className:"block-editor-image-size-control__row"},Object(g.__)("Image dimensions")),Object(u.createElement)("div",{className:"block-editor-image-size-control__row"},Object(u.createElement)(h.TextControl,{type:"number",className:"block-editor-image-size-control__width",label:Object(g.__)("Width"),value:null!==(t=null!=d?d:r)&&void 0!==t?t:"",min:1,onChange:function(e){return p({width:parseInt(e,10)})}}),Object(u.createElement)(h.TextControl,{type:"number",className:"block-editor-image-size-control__height",label:Object(g.__)("Height"),value:null!==(n=null!=b?b:o)&&void 0!==n?n:"",min:1,onChange:function(e){return p({height:parseInt(e,10)})}})),Object(u.createElement)("div",{className:"block-editor-image-size-control__row"},Object(u.createElement)(h.ButtonGroup,{"aria-label":Object(g.__)("Image size presets")},Nd.map((function(e){var t=Math.round(r*(e/100)),n=Math.round(o*(e/100)),c=d===t&&b===n;return Object(u.createElement)(h.Button,{key:e,isSmall:!0,isPrimary:c,isPressed:c,onClick:O(t,n)},e,"%")}))),Object(u.createElement)(h.Button,{isSmall:!0,onClick:O()},Object(g.__)("Reset")))))}var Rd=Object(p.createHigherOrderComponent)((function(e){return function(t){var n=Object(z.b)().clientId;return Object(u.createElement)(e,Object(l.a)({},t,{clientId:n}))}}),"withClientId"),Ad=Rd((function(e){var t=e.clientId,n=e.showSeparator,r=e.isFloating,o=e.onAddBlock;return Object(u.createElement)(Ya,{rootClientId:t,showSeparator:n,isFloating:r,onAddBlock:o})})),Md=Object(p.compose)([Rd,Object(v.withSelect)((function(e,t){var n=t.clientId,r=(0,e("core/block-editor").getBlockOrder)(n);return{lastBlockClientId:Object(f.last)(r)}}))])((function(e){var t=e.clientId,n=e.lastBlockClientId;return Object(u.createElement)($a,{rootClientId:t,lastBlockClientId:n})})),Ld=n(64),Fd=n.n(Ld);var Vd=new WeakMap;function Hd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hd(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ud(e){var t=e.clientId,n=e.allowedBlocks,r=e.template,o=e.templateLock,i=e.wrapperRef,a=e.templateInsertUpdatesSelection,l=e.__experimentalCaptureToolbars,s=e.__experimentalAppenderTagName,d=e.renderAppender,b=e.orientation,p=e.placeholder;!function(e,t,n,r,o){var c=Object(v.useDispatch)("core/block-editor").updateBlockListSettings,i=Object(v.useSelect)((function(t){var n=t("core/block-editor").getBlockRootClientId(e);return{blockListSettings:t("core/block-editor").getBlockListSettings(e),parentLock:t("core/block-editor").getTemplateLock(n)}}),[e]),a=i.blockListSettings,l=i.parentLock;Object(u.useLayoutEffect)((function(){var i={allowedBlocks:t,templateLock:void 0===n?l:n};void 0!==r&&(i.__experimentalCaptureToolbars=r),void 0!==o&&(i.orientation=o),Fd()(a,i)||c(e,i)}),[e,a,t,n,l,r,o,c])}(t,n,o,l,b),function(e,t,n,r){var o=Object(v.useDispatch)("core/block-editor").replaceInnerBlocks,i=Object(v.useSelect)((function(t){return t("core/block-editor").getBlocks(e)}),[e]),a=Object(u.useRef)(null);Object(u.useLayoutEffect)((function(){if((0===i.length||"all"===n)&&!Object(f.isEqual)(t,a.current)){a.current=t;var l=Object(c.synchronizeBlocksWithTemplate)(i,t);Object(f.isEqual)(l,i)||o(e,l,0===i.length&&r&&0!==l.length)}}),[i,n,e])}(t,r,o,a);var m=Object(v.useSelect)((function(e){var n=e("core/block-editor").getBlock(t),r=Object(c.getBlockType)(n.name);if(r&&r.providesContext)return function(e,t){Vd.has(t)||Vd.set(t,new WeakMap);var n=Vd.get(t);if(!n.has(e)){var r=Object(f.mapValues)(t.providesContext,(function(t){return e[t]}));n.set(e,r)}return n.get(e)}(n.attributes,r)}),[t]);return Object(u.createElement)(rr,{value:m},Object(u.createElement)(sl,{rootClientId:t,renderAppender:d,__experimentalAppenderTagName:s,wrapperRef:i,placeholder:p}))}function Gd(e){return Wa(e),Object(u.createElement)(Ud,e)}var Wd=Object(u.forwardRef)((function(e,t){var n=Kd({ref:t},e);return Object(u.createElement)("div",{className:"block-editor-inner-blocks"},Object(u.createElement)("div",n))}));function Kd(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object(u.useRef)(),r=Object(z.b)(),o=r.clientId,c=Object(p.useViewportMatch)("medium","<"),i=Object(v.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockName,r=t.isBlockSelected,i=t.hasSelectedInnerBlock,a=(0,t.isNavigationMode)()||c;return"core/template"!==n(o)&&!r(o)&&!i(o,!0)&&a}),[o,c]),a=e.ref||n,s=t.value&&t.onChange?Gd:Ud;return zd(zd({},e),{},{ref:a,className:b()(e.className,"block-editor-block-list__layout",{"has-overlay":i}),children:Object(u.createElement)(s,Object(l.a)({},t,{clientId:o,wrapperRef:a}))})}Wd.DefaultBlockAppender=Md,Wd.ButtonBlockAppender=Ad,Wd.Content=Object(c.withBlockContentContext)((function(e){var t=e.BlockContent;return Object(u.createElement)(t,null)}));var qd=Wd,$d=n(216);function Yd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yd(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Qd=[{id:"opensInNewTab",title:Object(g.__)("Open in new tab")}],Zd=function(e){var t=e.value,n=e.onChange,r=void 0===n?f.noop:n,o=e.settings,c=void 0===o?Qd:o;if(!c||!c.length)return null;var i=function(e){return function(n){r(Xd(Xd({},t),{},Object(s.a)({},e.id,n)))}},a=c.map((function(e){return Object(u.createElement)(h.ToggleControl,{className:"block-editor-link-control__setting",key:e.id,label:e.title,onChange:i(e),checked:!!t&&!!t[e.id]})}));return Object(u.createElement)("fieldset",{className:"block-editor-link-control__settings"},Object(u.createElement)(h.VisuallyHidden,{as:"legend"},Object(g.__)("Currently selected link settings")),a)},Jd=n(127),eb=n.n(Jd);function tb(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object($t.a)(e);if(t){var o=Object($t.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(qt.a)(this,n)}}var nb=function(e){return e.stopPropagation()},rb=function(e){Object(Kt.a)(n,e);var t=tb(n);function n(e){var r;return Object(Ut.a)(this,n),(r=t.call(this,e)).onChange=r.onChange.bind(Object(Wt.a)(r)),r.onFocus=r.onFocus.bind(Object(Wt.a)(r)),r.onKeyDown=r.onKeyDown.bind(Object(Wt.a)(r)),r.selectLink=r.selectLink.bind(Object(Wt.a)(r)),r.handleOnClick=r.handleOnClick.bind(Object(Wt.a)(r)),r.bindSuggestionNode=r.bindSuggestionNode.bind(Object(Wt.a)(r)),r.autocompleteRef=e.autocompleteRef||Object(u.createRef)(),r.inputRef=Object(u.createRef)(),r.updateSuggestions=Object(f.throttle)(r.updateSuggestions.bind(Object(Wt.a)(r)),200),r.suggestionNodes=[],r.isUpdatingSuggestions=!1,r.state={suggestions:[],showSuggestions:!1,selectedSuggestion:null,suggestionsListboxId:"",suggestionOptionIdPrefix:""},r}return Object(Gt.a)(n,[{key:"componentDidUpdate",value:function(e){var t=this,n=this.state,r=n.showSuggestions,o=n.selectedSuggestion,c=this.props.value;r&&null!==o&&this.suggestionNodes[o]&&!this.scrollingIntoView&&(this.scrollingIntoView=!0,eb()(this.suggestionNodes[o],this.autocompleteRef.current,{onlyScrollIfNeeded:!0}),this.props.setTimeout((function(){t.scrollingIntoView=!1}),100)),e.value!==c&&this.shouldShowInitialSuggestions()&&this.updateSuggestions()}},{key:"componentDidMount",value:function(){this.shouldShowInitialSuggestions()&&this.updateSuggestions()}},{key:"componentWillUnmount",value:function(){delete this.suggestionsRequest}},{key:"bindSuggestionNode",value:function(e){var t=this;return function(n){t.suggestionNodes[e]=n}}},{key:"shouldShowInitialSuggestions",value:function(){var e=this.state.suggestions,t=this.props,n=t.__experimentalShowInitialSuggestions,r=void 0!==n&&n,o=t.value;return!this.isUpdatingSuggestions&&r&&!(o&&o.length)&&!(e&&e.length)}},{key:"updateSuggestions",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=this.props,r=n.__experimentalFetchLinkSuggestions,o=n.__experimentalHandleURLSuggestions;if(r){var c=!(t&&t.length);if(c||!(t.length<2||!o&&Object(Vl.isURL)(t))){this.isUpdatingSuggestions=!0,this.setState({selectedSuggestion:null,loading:!0});var i=r(t,{isInitialSuggestions:c});i.then((function(t){e.suggestionsRequest===i&&(e.setState({suggestions:t,loading:!1,showSuggestions:!!t.length}),t.length?e.props.debouncedSpeak(Object(g.sprintf)(Object(g._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",t.length),t.length),"assertive"):e.props.debouncedSpeak(Object(g.__)("No results."),"assertive"),e.isUpdatingSuggestions=!1)})).catch((function(){e.suggestionsRequest===i&&(e.setState({loading:!1}),e.isUpdatingSuggestions=!1)})),this.suggestionsRequest=i}else this.setState({showSuggestions:!1,selectedSuggestion:null,loading:!1})}}},{key:"onChange",value:function(e){var t=e.target.value;this.props.onChange(t),this.props.disableSuggestions||this.updateSuggestions(t.trim())}},{key:"onFocus",value:function(){var e=this.state.suggestions,t=this.props,n=t.disableSuggestions,r=t.value;!r||n||this.isUpdatingSuggestions||e&&e.length||this.updateSuggestions(r.trim())}},{key:"onKeyDown",value:function(e){var t=this.state,n=t.showSuggestions,r=t.selectedSuggestion,o=t.suggestions,c=t.loading;if(n&&o.length&&!c){var i=this.state.suggestions[this.state.selectedSuggestion];switch(e.keyCode){case st.UP:e.stopPropagation(),e.preventDefault();var a=r?r-1:o.length-1;this.setState({selectedSuggestion:a});break;case st.DOWN:e.stopPropagation(),e.preventDefault();var l=null===r||r===o.length-1?0:r+1;this.setState({selectedSuggestion:l});break;case st.TAB:null!==this.state.selectedSuggestion&&(this.selectLink(i),this.props.speak(Object(g.__)("Link selected.")));break;case st.ENTER:null!==this.state.selectedSuggestion&&(e.stopPropagation(),this.selectLink(i))}}else switch(e.keyCode){case st.UP:0!==e.target.selectionStart&&(e.stopPropagation(),e.preventDefault(),e.target.setSelectionRange(0,0));break;case st.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(){return Object(u.createElement)(u.Fragment,null,this.renderControl(),this.renderSuggestions())}},{key:"renderControl",value:function(){var e=this.props,t=e.label,n=e.className,r=e.isFullWidth,o=e.instanceId,c=e.placeholder,i=void 0===c?Object(g.__)("Paste URL or type to search"):c,a=e.__experimentalRenderControl,l=e.value,s=void 0===l?"":l,d=e.autoFocus,f=void 0===d||d,p=this.state,m=p.loading,v=p.showSuggestions,O=p.selectedSuggestion,j=p.suggestionsListboxId,k=p.suggestionOptionIdPrefix,y={id:"url-input-control-".concat(o),label:t,className:b()("block-editor-url-input",n,{"is-full-width":r})},_={value:s,required:!0,autoFocus:f,className:"block-editor-url-input__input",type:"text",onChange:this.onChange,onFocus:this.onFocus,onInput:nb,placeholder:i,onKeyDown:this.onKeyDown,role:"combobox","aria-label":Object(g.__)("URL"),"aria-expanded":v,"aria-autocomplete":"list","aria-owns":j,"aria-activedescendant":null!==O?"".concat(k,"-").concat(O):void 0,ref:this.inputRef};return a?a(y,_,m):Object(u.createElement)(h.BaseControl,y,Object(u.createElement)("input",_),m&&Object(u.createElement)(h.Spinner,null))}},{key:"renderSuggestions",value:function(){var e=this,t=this.props,n=t.className,r=t.__experimentalRenderSuggestions,o=t.value,c=void 0===o?"":o,i=t.__experimentalShowInitialSuggestions,a=void 0!==i&&i,s=this.state,d=s.showSuggestions,p=s.suggestions,m=s.selectedSuggestion,v=s.suggestionsListboxId,O=s.suggestionOptionIdPrefix,g=s.loading,j={id:v,ref:this.autocompleteRef,role:"listbox"},k=function(t,n){return{role:"option",tabIndex:"-1",id:"".concat(O,"-").concat(n),ref:e.bindSuggestionNode(n),"aria-selected":n===m}};return Object(f.isFunction)(r)&&d&&p.length?r({suggestions:p,selectedSuggestion:m,suggestionsListProps:j,buildSuggestionItemProps:k,isLoading:g,handleSuggestionClick:this.handleOnClick,isInitialSuggestions:a&&!(c&&c.length)}):!Object(f.isFunction)(r)&&d&&p.length?Object(u.createElement)(h.Popover,{position:"bottom",noArrow:!0,focusOnMount:!1},Object(u.createElement)("div",Object(l.a)({},j,{className:b()("block-editor-url-input__suggestions","".concat(n,"__suggestions"))}),p.map((function(t,n){return Object(u.createElement)(h.Button,Object(l.a)({},k(0,n),{key:t.id,className:b()("block-editor-url-input__suggestion",{"is-selected":n===m}),onClick:function(){return e.handleOnClick(t)}}),t.title)})))):null}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.value,r=e.instanceId,o=e.disableSuggestions,c=e.__experimentalShowInitialSuggestions,i=void 0!==c&&c,a=t.showSuggestions,l=n&&n.length;return i||l||(a=!1),!0===o&&(a=!1),{showSuggestions:a,suggestionsListboxId:"block-editor-url-input-suggestions-".concat(r),suggestionOptionIdPrefix:"block-editor-url-input-suggestion-".concat(r)}}}]),n}(u.Component),ob=Object(p.compose)(p.withSafeTimeout,h.withSpokenMessages,p.withInstanceId,Object(v.withSelect)((function(e,t){if(!Object(f.isFunction)(t.__experimentalFetchLinkSuggestions))return{__experimentalFetchLinkSuggestions:(0,e("core/block-editor").getSettings)().__experimentalFetchLinkSuggestions}})))(rb),cb=Object(u.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(u.createElement)(j.Path,{d:"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-3V6zM10 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"})),ib=function(e){var t,n=e.searchTerm,r=e.onClick,o=e.itemProps,c=e.isSelected,i=e.buttonText;return n?(t=i?Object(f.isFunction)(i)?i(n):i:Object(u.createInterpolateElement)(Object(g.sprintf)(Object(g.__)("Create: <mark>%s</mark>"),n),{mark:Object(u.createElement)("mark",null)}),Object(u.createElement)(h.Button,Object(l.a)({},o,{className:b()("block-editor-link-control__search-create block-editor-link-control__search-item",{"is-selected":c}),onClick:r}),Object(u.createElement)(so.a,{className:"block-editor-link-control__search-item-icon",icon:cb}),Object(u.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(u.createElement)("span",{className:"block-editor-link-control__search-item-title"},t)))):null},ab=Object(u.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(u.createElement)(j.Path,{d:"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"})),lb=function(e){var t=e.itemProps,n=e.suggestion,r=e.isSelected,o=void 0!==r&&r,c=e.onClick,i=e.isURL,a=void 0!==i&&i,s=e.searchTerm,d=void 0===s?"":s,f=e.shouldShowType,p=void 0!==f&&f;return Object(u.createElement)(h.Button,Object(l.a)({},t,{onClick:c,className:b()("block-editor-link-control__search-item",{"is-selected":o,"is-url":a,"is-entity":!a})}),a&&Object(u.createElement)(so.a,{className:"block-editor-link-control__search-item-icon",icon:ab}),Object(u.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(u.createElement)("span",{className:"block-editor-link-control__search-item-title"},Object(u.createElement)(h.TextHighlight,{text:n.title,highlight:d})),Object(u.createElement)("span",{"aria-hidden":!a,className:"block-editor-link-control__search-item-info"},!a&&(Object(Vl.filterURLForDisplay)(Object(Vl.safeDecodeURI)(n.url))||""),a&&Object(g.__)("Press ENTER to add this link"))),p&&n.type&&Object(u.createElement)("span",{className:"block-editor-link-control__search-item-type"},"post_tag"===n.type?"tag":n.type))};function sb(e){var t=e.instanceId,n=e.withCreateSuggestion,r=e.currentInputValue,o=e.handleSuggestionClick,c=e.suggestionsListProps,i=e.buildSuggestionItemProps,a=e.suggestions,s=e.selectedSuggestion,d=e.isLoading,f=e.isInitialSuggestions,p=e.createSuggestionButtonText,m=e.suggestionsQuery,v=b()("block-editor-link-control__search-results",{"is-loading":d}),O=["url","mailto","tel","internal"],j=1===a.length&&O.includes(a[0].type.toLowerCase()),k=n&&!j&&!f,y=!(null==m?void 0:m.type),_="block-editor-link-control-search-results-label-".concat(t),E=f?Object(g.__)("Recently updated"):Object(g.sprintf)(Object(g.__)('Search results for "%s"'),r),C=Object(u.createElement)(f?u.Fragment:h.VisuallyHidden,{},Object(u.createElement)("span",{className:"block-editor-link-control__search-results-label",id:_},E));return Object(u.createElement)("div",{className:"block-editor-link-control__search-results-wrapper"},C,Object(u.createElement)("div",Object(l.a)({},c,{className:v,"aria-labelledby":_}),a.map((function(e,t){return k&&"__CREATE__"===e.type?Object(u.createElement)(ib,{searchTerm:r,buttonText:p,onClick:function(){return o(e)},key:e.type,itemProps:i(e,t),isSelected:t===s}):"__CREATE__"===e.type?null:Object(u.createElement)(lb,{key:"".concat(e.id,"-").concat(e.type),itemProps:i(e,t),suggestion:e,index:t,onClick:function(){o(e)},isSelected:t===s,isURL:O.includes(e.type.toLowerCase()),searchTerm:r,shouldShowType:y})}))))}function ub(e){var t=Object(f.startsWith)(e,"#");return Object(Vl.isURL)(e)||e&&e.includes("www.")||t}function db(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?db(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):db(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var fb=function(){return Promise.resolve([])},pb=function(e){var t="URL",n=Object(Vl.getProtocol)(e)||"";return n.includes("mailto")&&(t="mailto"),n.includes("tel")&&(t="tel"),Object(f.startsWith)(e,"#")&&(t="internal"),Promise.resolve([{id:e,title:e,url:"URL"===t?Object(Vl.prependHTTP)(e):e,type:t}])},mb=function(){var e=Object(gr.a)(Or.a.mark((function e(t,n,r,o,c,i){var a,l,s;return Or.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=n.isInitialSuggestions,e.next=3,Promise.all([r(t,n),o(t)]);case 3:if(l=e.sent,s=!t.includes(" "),l=s&&i&&!a?l[0].concat(l[1]):l[0],!a){e.next=8;break}return e.abrupt("return",l);case 8:return e.abrupt("return",ub(t)||!c?l:l.concat({title:t,url:t,type:"__CREATE__"}));case 9:case"end":return e.stop()}}),e)})));return function(t,n,r,o,c,i){return e.apply(this,arguments)}}();function vb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ob(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vb(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var gb=Promise.resolve([]),hb=Object(u.forwardRef)((function(e,t){var n=e.value,r=e.children,o=e.currentLink,c=void 0===o?{}:o,i=e.className,a=void 0===i?null:i,l=e.placeholder,s=void 0===l?null:l,d=e.withCreateSuggestion,b=void 0!==d&&d,m=e.onCreateSuggestion,O=void 0===m?f.noop:m,h=e.onChange,j=void 0===h?f.noop:h,k=e.onSelect,y=void 0===k?f.noop:k,_=e.showSuggestions,E=void 0===_||_,C=e.renderSuggestions,w=void 0===C?function(e){return Object(u.createElement)(sb,e)}:C,S=e.fetchSuggestions,I=void 0===S?null:S,B=e.allowDirectEntry,x=void 0===B||B,P=e.showInitialSuggestions,T=void 0!==P&&P,N=e.suggestionsQuery,D=void 0===N?{}:N,R=e.withURLSuggestion,A=void 0===R||R,M=e.createSuggestionButtonText,L=function(e,t,n,r){var o=Object(v.useSelect)((function(e){return{fetchSearchSuggestions:(0,e("core/block-editor").getSettings)().__experimentalFetchLinkSuggestions}}),[]).fetchSearchSuggestions,c=t?pb:fb;return Object(u.useCallback)((function(t,i){var a=i.isInitialSuggestions;return ub(t)?c(t,{isInitialSuggestions:a}):mb(t,bb(bb({},e),{},{isInitialSuggestions:a}),o,c,n,r)}),[c,o,n])}(D,x,b,A),F=E?I||L:gb,V=Object(p.useInstanceId)(hb),H=Object(u.useState)(),z=Object(re.a)(H,2),U=z[0],G=z[1],W=function(){var e=Object(gr.a)(Or.a.mark((function e(t){var n,r;return Or.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t,"__CREATE__"!==t.type){e.next=12;break}return e.prev=2,e.next=5,O(t.title);case 5:n=e.sent,(null===(r=n)||void 0===r?void 0:r.url)&&y(n),e.next=11;break;case 9:e.prev=9,e.t0=e.catch(2);case 11:return e.abrupt("return");case 12:(x||n&&Object.keys(n).length>=1)&&y(Ob(Ob({},Object(f.omit)(c,"id","url")),n),n);case 13:case"end":return e.stop()}}),e,null,[[2,9]])})));return function(t){return e.apply(this,arguments)}}();return Object(u.createElement)("form",{onSubmit:function(e){e.preventDefault(),W(U||{url:n})}},Object(u.createElement)(ob,{className:a,value:n,onChange:function(e,t){j(e),G(t)},placeholder:null!=s?s:Object(g.__)("Search or type url"),__experimentalRenderSuggestions:E?function(e){return w(Ob(Ob({},e),{},{instanceId:V,withCreateSuggestion:b,currentInputValue:n,createSuggestionButtonText:M,suggestionsQuery:D,handleSuggestionClick:function(t){e.handleSuggestionClick&&e.handleSuggestionClick(t),W(t)}}))}:null,__experimentalFetchLinkSuggestions:F,__experimentalHandleURLSuggestions:!0,__experimentalShowInitialSuggestions:T,ref:t}),r)})),jb=hb,kb=Object(h.createSlotFill)("BlockEditorLinkControlViewer"),yb=kb.Slot,_b=kb.Fill;function Eb(e){var t=e.value,n=e.onEditClick,r=t&&Object(Vl.filterURLForDisplay)(Object(Vl.safeDecodeURI)(t.url))||"";return Object(u.createElement)("div",{"aria-label":Object(g.__)("Currently selected"),"aria-selected":"true",className:b()("block-editor-link-control__search-item",{"is-current":!0})},Object(u.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(u.createElement)(h.ExternalLink,{className:"block-editor-link-control__search-item-title",href:t.url},t&&t.title||r),t&&t.title&&Object(u.createElement)("span",{className:"block-editor-link-control__search-item-info"},r)),Object(u.createElement)(h.Button,{isSecondary:!0,onClick:function(){return n()},className:"block-editor-link-control__search-item-action"},Object(g.__)("Edit")),Object(u.createElement)(yb,{fillProps:t}))}var Cb=function(e){var t=!1;return{promise:new Promise((function(n,r){e.then((function(e){return t?r({isCanceled:!0}):n(e)}),(function(e){return r(t?{isCanceled:!0}:e)}))})),cancel:function(){t=!0}}};function wb(e){var t=e.searchInputPlaceholder,n=e.value,r=e.settings,o=e.onChange,c=void 0===o?f.noop:o,i=e.noDirectEntry,a=void 0!==i&&i,l=e.showSuggestions,s=void 0===l||l,d=e.showInitialSuggestions,b=e.forceIsEditingLink,p=e.createSuggestion,m=e.withCreateSuggestion,v=e.inputValue,O=void 0===v?"":v,j=e.suggestionsQuery,k=void 0===j?{}:j,y=e.noURLSuggestion,_=void 0!==y&&y,E=e.createSuggestionButtonText;void 0===m&&p&&(m=!0);var C=Object(u.useRef)(),w=Object(u.useState)(n&&n.url||""),S=Object(re.a)(w,2),I=S[0],B=S[1],x=O||I,P=Object(u.useState)(void 0!==b?b:!n||!n.url),T=Object(re.a)(P,2),N=T[0],D=T[1],R=Object(u.useRef)(!1);Object(u.useEffect)((function(){void 0!==b&&b!==N&&D(b)}),[b]),Object(u.useEffect)((function(){R.current&&C.current&&!C.current.contains(C.current.ownerDocument.activeElement)&&(kr.focus.focusable.find(C.current)[0]||C.current).focus();R.current=!1}),[N]);var A=function(e){var t=Object(u.useRef)(),n=Object(u.useState)(!1),r=Object(re.a)(n,2),o=r[0],c=r[1],i=Object(u.useState)(null),a=Object(re.a)(i,2),l=a[0],s=a[1],d=function(){var n=Object(gr.a)(Or.a.mark((function n(r){return Or.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return c(!0),s(null),n.prev=2,t.current=Cb(Promise.resolve(e(r))),n.next=6,t.current.promise;case 6:return n.abrupt("return",n.sent);case 9:if(n.prev=9,n.t0=n.catch(2),!n.t0||!n.t0.isCanceled){n.next=13;break}return n.abrupt("return");case 13:throw s(n.t0.message||Object(g.__)("An unknown error occurred during creation. Please try again.")),n.t0;case 15:return n.prev=15,c(!1),n.finish(15);case 18:case"end":return n.stop()}}),n,null,[[2,9,15,18]])})));return function(e){return n.apply(this,arguments)}}();return Object(u.useEffect)((function(){return function(){t.current&&t.current.cancel()}}),[]),{createPage:d,isCreatingPage:o,errorMessage:l}}(p),M=A.createPage,L=A.isCreatingPage,F=A.errorMessage;return Object(u.createElement)("div",{tabIndex:-1,ref:C,className:"block-editor-link-control"},L&&Object(u.createElement)("div",{className:"block-editor-link-control__loading"},Object(u.createElement)(h.Spinner,null)," ",Object(g.__)("Creating"),"…"),(N||!n)&&!L&&Object(u.createElement)(u.Fragment,null,Object(u.createElement)("div",{className:"block-editor-link-control__search-input-wrapper"},Object(u.createElement)(jb,{currentLink:n,className:"block-editor-link-control__search-input",placeholder:t,value:x,withCreateSuggestion:m,onCreateSuggestion:M,onChange:B,onSelect:function(e){var t;c(e),R.current=!!(null===(t=C.current)||void 0===t?void 0:t.contains(C.current.ownerDocument.activeElement)),D(!1)},showInitialSuggestions:d,allowDirectEntry:!a,showSuggestions:s,suggestionsQuery:k,withURLSuggestion:!_,createSuggestionButtonText:E},Object(u.createElement)("div",{className:"block-editor-link-control__search-actions"},Object(u.createElement)(h.Button,{type:"submit",label:Object(g.__)("Submit"),icon:$d.a,className:"block-editor-link-control__search-submit"})))),F&&Object(u.createElement)(h.Notice,{className:"block-editor-link-control__search-error",status:"error",isDismissible:!1},F)),n&&!N&&!L&&Object(u.createElement)(Eb,{value:n,onEditClick:function(){return D(!0)}}),Object(u.createElement)(Zd,{value:n,settings:r,onChange:c}))}wb.ViewerFill=_b;var Sb=wb,Ib=n(319),Bb=n(217),xb=Object(h.withFilters)("editor.MediaUpload")((function(){return null}));var Pb=function(e){var t=e.fallback,n=void 0===t?null:t,r=e.children;return Object(v.useSelect)((function(e){return!!(0,e("core/block-editor").getSettings)().mediaUpload}),[])?r:n},Tb=Object(p.compose)([Object(v.withDispatch)((function(e){var t=e("core/notices");return{createNotice:t.createNotice,removeNotice:t.removeNotice}})),Object(h.withFilters)("editor.MediaReplaceFlow")])((function(e){var t=e.mediaURL,n=e.mediaId,r=e.allowedTypes,o=e.accept,c=e.onSelect,i=e.onSelectURL,a=e.onFilesUpload,l=void 0===a?f.noop:a,s=e.name,d=void 0===s?Object(g.__)("Replace"):s,b=e.createNotice,p=e.removeNotice,m=Object(u.useState)(t),O=Object(re.a)(m,2),j=O[0],k=O[1],y=Object(v.useSelect)((function(e){return e("core/block-editor").getSettings().mediaUpload}),[]),_=Object(u.createRef)(),E=Object(f.uniqueId)("block-editor/media-replace-flow/error-notice/"),C=function(e){var t=document.createElement("div");t.innerHTML=Object(u.renderToString)(e);var n=t.textContent||t.innerText||"";setTimeout((function(){b("error",n,{speak:!0,id:E,isDismissible:!0})}),1e3)},w=function(e){c(e),k(e.url),Object(Le.speak)(Object(g.__)("The media file has been replaced")),p(E)},S=function(e){e.keyCode===st.DOWN&&(e.preventDefault(),e.stopPropagation(),e.target.click())};return Object(u.createElement)(h.Dropdown,{popoverProps:{isAlternate:!0},contentClassName:"block-editor-media-replace-flow__options",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(u.createElement)(h.ToolbarGroup,{className:"media-replace-flow"},Object(u.createElement)(h.ToolbarButton,{ref:_,"aria-expanded":t,"aria-haspopup":"true",onClick:n,onKeyDown:S},d))},renderContent:function(e){e.onClose;return Object(u.createElement)(u.Fragment,null,Object(u.createElement)(h.NavigableMenu,{className:"block-editor-media-replace-flow__media-upload-menu"},Object(u.createElement)(xb,{value:n,onSelect:function(e){return w(e)},allowedTypes:r,render:function(e){var t=e.open;return Object(u.createElement)(h.MenuItem,{icon:Ib.a,onClick:t},Object(g.__)("Open Media Library"))}}),Object(u.createElement)(Pb,null,Object(u.createElement)(h.FormFileUpload,{onChange:function(e){!function(e){var t=e.target.files;l(t);y({allowedTypes:r,filesList:t,onFileChange:function(e){var t=Object(re.a)(e,1)[0];w(t)},onError:C})}(e)},accept:o,render:function(e){var t=e.openFileDialog;return Object(u.createElement)(h.MenuItem,{icon:Bb.a,onClick:function(){t()}},Object(g.__)("Upload"))}}))),i&&Object(u.createElement)("form",{className:"block-editor-media-flow__url-input",onKeyDown:function(e){e.stopPropagation()},onKeyPress:function(e){e.stopPropagation()}},Object(u.createElement)("span",{className:"block-editor-media-replace-flow__image-url-label"},Object(g.__)("Current media URL:")),Object(u.createElement)(Sb,{value:{url:j},settings:[],showSuggestions:!1,onChange:function(e){var t=e.url;k(t),i(t),_.current.focus()}})))}})})),Nb=n(274);function Db(e){var t=e.url,n=e.urlLabel,r=e.className,o=b()(r,"block-editor-url-popover__link-viewer-url");return t?Object(u.createElement)(h.ExternalLink,{className:o,href:t},n||Object(Vl.filterURLForDisplay)(Object(Vl.safeDecodeURI)(t))):Object(u.createElement)("span",{className:o})}function Rb(e){var t=e.additionalControls,n=e.children,r=e.renderSettings,o=e.position,c=void 0===o?"bottom center":o,i=e.focusOnMount,a=void 0===i?"firstElement":i,s=Object(he.a)(e,["additionalControls","children","renderSettings","position","focusOnMount"]),d=Object(u.useState)(!1),b=Object(re.a)(d,2),f=b[0],p=b[1],m=!!r&&f;return Object(u.createElement)(h.Popover,Object(l.a)({className:"block-editor-url-popover",focusOnMount:a,position:c},s),Object(u.createElement)("div",{className:"block-editor-url-popover__input-container"},Object(u.createElement)("div",{className:"block-editor-url-popover__row"},n,!!r&&Object(u.createElement)(h.Button,{className:"block-editor-url-popover__settings-toggle",icon:xr.a,label:Object(g.__)("Link settings"),onClick:function(){p(!f)},"aria-expanded":f})),m&&Object(u.createElement)("div",{className:"block-editor-url-popover__row block-editor-url-popover__settings"},r())),t&&!m&&Object(u.createElement)("div",{className:"block-editor-url-popover__additional-controls"},t))}Rb.LinkEditor=function(e){var t=e.autocompleteRef,n=e.className,r=e.onChangeInputValue,o=e.value,c=Object(he.a)(e,["autocompleteRef","className","onChangeInputValue","value"]);return Object(u.createElement)("form",Object(l.a)({className:b()("block-editor-url-popover__link-editor",n)},c),Object(u.createElement)(ob,{value:o,onChange:r,autocompleteRef:t}),Object(u.createElement)(h.Button,{icon:$d.a,label:Object(g.__)("Apply"),type:"submit"}))},Rb.LinkViewer=function(e){var t=e.className,n=e.linkClassName,r=e.onEditLinkClick,o=e.url,c=e.urlLabel,i=Object(he.a)(e,["className","linkClassName","onEditLinkClick","url","urlLabel"]);return Object(u.createElement)("div",Object(l.a)({className:b()("block-editor-url-popover__link-viewer",t)},i),Object(u.createElement)(Db,{url:o,urlLabel:c,className:n}),r&&Object(u.createElement)(h.Button,{icon:Nb.a,label:Object(g.__)("Edit"),onClick:r}))};var Ab=Rb,Mb=function(e){var t=e.src,n=e.onChange,r=e.onSubmit,o=e.onClose;return Object(u.createElement)(Ab,{onClose:o},Object(u.createElement)("form",{className:"block-editor-media-placeholder__url-input-form",onSubmit:r},Object(u.createElement)("input",{className:"block-editor-media-placeholder__url-input-field",type:"url","aria-label":Object(g.__)("URL"),placeholder:Object(g.__)("Paste or type URL"),onChange:n,value:t}),Object(u.createElement)(h.Button,{className:"block-editor-media-placeholder__url-input-submit-button",icon:$d.a,label:Object(g.__)("Apply"),type:"submit"})))};var Lb=Object(h.withFilters)("editor.MediaPlaceholder")((function(e){var t=e.value,n=void 0===t?{}:t,r=e.allowedTypes,o=e.className,c=e.icon,i=e.labels,a=void 0===i?{}:i,l=e.mediaPreview,s=e.notices,d=e.isAppender,p=e.accept,m=e.addToGallery,O=e.multiple,j=void 0!==O&&O,k=e.dropZoneUIOnly,y=e.disableDropZone,_=e.disableMediaButtons,E=e.onError,C=e.onSelect,w=e.onCancel,S=e.onSelectURL,I=e.onDoubleClick,B=e.onFilesPreUpload,x=void 0===B?f.noop:B,P=e.onHTMLDrop,T=void 0===P?f.noop:P,N=e.children,D=Object(v.useSelect)((function(e){return(0,e("core/block-editor").getSettings)().mediaUpload}),[]),R=Object(u.useState)(""),A=Object(re.a)(R,2),M=A[0],L=A[1],F=Object(u.useState)(!1),V=Object(re.a)(F,2),H=V[0],z=V[1];Object(u.useEffect)((function(){var e;L(null!==(e=null==n?void 0:n.src)&&void 0!==e?e:"")}),[null==n?void 0:n.src]);var U=function(e){L(e.target.value)},G=function(){z(!0)},W=function(){z(!1)},K=function(e){e.preventDefault(),M&&S&&(S(M),W())},q=function(e){var t;if(x(e),j)if(m){var o=[];t=function(e){var t=(null!=n?n:[]).filter((function(e){return e.id?!o.some((function(t){var n=t.id;return Number(n)===Number(e.id)})):!o.some((function(t){var n=t.urlSlug;return e.url.includes(n)}))}));C(t.concat(e)),o=e.map((function(e){var t=e.url.lastIndexOf("."),n=e.url.slice(0,t);return{id:e.id,urlSlug:n}}))}}else t=C;else t=function(e){var t=Object(re.a)(e,1)[0];return C(t)};D({allowedTypes:r,filesList:e,onFileChange:t,onError:E})},$=function(e){q(e.target.files)},Y=function(e,t){var n=a.instructions,i=a.title;if(D||S||(n=Object(g.__)("To edit this block, you need permission to upload media.")),void 0===n||void 0===i){var f=null!=r?r:[],p=Object(re.a)(f,1)[0],m=1===f.length,v=m&&"audio"===p,O=m&&"image"===p,j=m&&"video"===p;void 0===n&&D&&(n=Object(g.__)("Upload a media file or pick one from your media library."),v?n=Object(g.__)("Upload an audio file, pick one from your media library, or add one with a URL."):O?n=Object(g.__)("Upload an image file, pick one from your media library, or add one with a URL."):j&&(n=Object(g.__)("Upload a video file, pick one from your media library, or add one with a URL."))),void 0===i&&(i=Object(g.__)("Media"),v?i=Object(g.__)("Audio"):O?i=Object(g.__)("Image"):j&&(i=Object(g.__)("Video")))}var k=b()("block-editor-media-placeholder",o,{"is-appender":d});return Object(u.createElement)(h.Placeholder,{icon:c,label:i,instructions:n,className:k,notices:s,onClick:t,onDoubleClick:I,preview:l},e,N)},X=function(){return y?null:Object(u.createElement)(h.DropZone,{onFilesDrop:q,onHTMLDrop:T})},Q=function(){return w&&Object(u.createElement)(h.Button,{className:"block-editor-media-placeholder__cancel-button",title:Object(g.__)("Cancel"),isLink:!0,onClick:w},Object(g.__)("Cancel"))},Z=function(){return S&&Object(u.createElement)("div",{className:"block-editor-media-placeholder__url-input-container"},Object(u.createElement)(h.Button,{className:"block-editor-media-placeholder__button",onClick:G,isPressed:H,isTertiary:!0},Object(g.__)("Insert from URL")),H&&Object(u.createElement)(Mb,{src:M,onChange:U,onSubmit:K,onClose:W}))};return k||_?(k&&to()("wp.blockEditor.MediaPlaceholder dropZoneUIOnly prop",{alternative:"disableMediaButtons"}),Object(u.createElement)(Pb,null,X())):Object(u.createElement)(Pb,{fallback:Y(Z())},function(){var e=Object(u.createElement)(xb,{addToGallery:m,gallery:j&&!(!r||0===r.length)&&r.every((function(e){return"image"===e||e.startsWith("image/")})),multiple:j,onSelect:C,allowedTypes:r,value:Array.isArray(n)?n.map((function(e){return e.id})):n.id,render:function(e){var t=e.open;return Object(u.createElement)(h.Button,{isTertiary:!0,onClick:function(e){e.stopPropagation(),t()}},Object(g.__)("Media Library"))}});if(D&&d)return Object(u.createElement)(u.Fragment,null,X(),Object(u.createElement)(h.FormFileUpload,{onChange:$,accept:p,multiple:j,render:function(t){var n=t.openFileDialog,r=Object(u.createElement)(u.Fragment,null,Object(u.createElement)(h.Button,{isPrimary:!0,className:b()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button")},Object(g.__)("Upload")),e,Z(),Q());return Y(r,n)}}));if(D){var t=Object(u.createElement)(u.Fragment,null,X(),Object(u.createElement)(h.FormFileUpload,{isPrimary:!0,className:b()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),onChange:$,accept:p,multiple:j},Object(g.__)("Upload")),e,Z(),Q());return Y(t)}return Y(e)}())})),Fb=Object(u.forwardRef)((function(e,t){return Object(u.createElement)(dd,Object(l.a)({ref:t},e,{__unstableDisableFormats:!0,preserveWhiteSpace:!0}))}));Fb.Content=function(e){var t=e.value,n=void 0===t?"":t,r=e.tagName,o=void 0===r?"div":r,c=Object(he.a)(e,["value","tagName"]);return Object(u.createElement)(o,c,n)};var Vb=Fb,Hb=Object(u.forwardRef)((function(e,t){var n=e.__experimentalVersion,r=Object(he.a)(e,["__experimentalVersion"]);if(2===n)return Object(u.createElement)(Vb,Object(l.a)({ref:t},r));var o=r.className,c=r.onChange,i=Object(he.a)(r,["className","onChange"]);return Object(u.createElement)(Zr.a,Object(l.a)({ref:t,className:b()("block-editor-plain-text",o),onChange:function(e){return c(e.target.value)}},i))}));function zb(e){var t=e.property,n=e.viewport,r=e.desc,o=Object(p.useInstanceId)(zb),c=r||Object(g.sprintf)(Object(g._x)("Controls the %1$s property for %2$s viewports.","Text labelling a interface as controlling a given layout property (eg: margin) for a given screen size."),t,n.label);return Object(u.createElement)(u.Fragment,null,Object(u.createElement)("span",{"aria-describedby":"rbc-desc-".concat(o)},n.label),Object(u.createElement)(h.VisuallyHidden,{as:"span",id:"rbc-desc-".concat(o)},c))}var Ub=function(e){var t=e.title,n=e.property,r=e.toggleLabel,o=e.onIsResponsiveChange,c=e.renderDefaultControl,i=e.renderResponsiveControls,a=e.isResponsive,l=void 0!==a&&a,s=e.defaultLabel,d=void 0===s?{id:"all",label:Object(g.__)("All")}:s,f=e.viewports,p=void 0===f?[{id:"small",label:Object(g.__)("Small screens")},{id:"medium",label:Object(g.__)("Medium screens")},{id:"large",label:Object(g.__)("Large screens")}]:f;if(!t||!n||!c)return null;var m=r||Object(g.sprintf)(Object(g.__)("Use the same %s on all screensizes."),n),v=Object(g.__)("Toggle between using the same value for all screen sizes or using a unique value per screen size."),O=c(Object(u.createElement)(zb,{property:n,viewport:d}),d);return Object(u.createElement)("fieldset",{className:"block-editor-responsive-block-control"},Object(u.createElement)("legend",{className:"block-editor-responsive-block-control__title"},t),Object(u.createElement)("div",{className:"block-editor-responsive-block-control__inner"},Object(u.createElement)(h.ToggleControl,{className:"block-editor-responsive-block-control__toggle",label:m,checked:!l,onChange:o,help:v}),Object(u.createElement)("div",{className:b()("block-editor-responsive-block-control__group",{"is-responsive":l})},!l&&O,l&&(i?i(p):p.map((function(e){return Object(u.createElement)(u.Fragment,{key:e.id},c(Object(u.createElement)(zb,{property:n,viewport:e}),e))}))))))};function Gb(e){var t=e.character,n=e.type,r=e.onUse;return Object(p.useKeyboardShortcut)(st.rawShortcut[n](t),(function(){return r(),!1}),{bindGlobal:!0}),null}function Wb(e){var t,n=e.name,r=e.shortcutType,o=e.shortcutCharacter,c=Object(he.a)(e,["name","shortcutType","shortcutCharacter"]),i="RichText.ToolbarControls";return n&&(i+=".".concat(n)),r&&o&&(t=st.displayShortcut[r](o)),Object(u.createElement)(h.Fill,{name:i},Object(u.createElement)(h.ToolbarButton,Object(l.a)({},c,{shortcut:t})))}function Kb(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object($t.a)(e);if(t){var o=Object($t.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(qt.a)(this,n)}}var qb=function(e){Object(Kt.a)(n,e);var t=Kb(n);function n(){var e;return Object(Ut.a)(this,n),(e=t.apply(this,arguments)).onInput=e.onInput.bind(Object(Wt.a)(e)),e}return Object(Gt.a)(n,[{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}}]),n}(u.Component),$b=Object(u.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(u.createElement)(h.Path,{d:"M9.4 20.5L5.2 3.8l14.6 9-2 .3c-.2 0-.4.1-.7.1-.9.2-1.6.3-2.2.5-.8.3-1.4.5-1.8.8-.4.3-.8.8-1.3 1.5-.4.5-.8 1.2-1.2 2l-.3.6-.9 1.9zM7.6 7.1l2.4 9.3c.2-.4.5-.8.7-1.1.6-.8 1.1-1.4 1.6-1.8.5-.4 1.3-.8 2.2-1.1l1.2-.3-8.1-5z"}));var Yb=Object(u.forwardRef)((function(e,t){var n=Object(v.useSelect)((function(e){return e("core/block-editor").isNavigationMode()}),[]),r=Object(v.useDispatch)("core/block-editor").setNavigationMode,o=function(e){r("edit"!==e)};return Object(u.createElement)(h.Dropdown,{renderToggle:function(r){var o=r.isOpen,c=r.onToggle;return Object(u.createElement)(h.Button,Object(l.a)({},e,{ref:t,icon:n?$b:Nb.a,"aria-expanded":o,"aria-haspopup":"true",onClick:c,label:Object(g.__)("Modes")}))},position:"bottom right",renderContent:function(){return Object(u.createElement)(u.Fragment,null,Object(u.createElement)(h.NavigableMenu,{role:"menu","aria-label":Object(g.__)("Modes")},Object(u.createElement)(h.MenuItemsChoice,{value:n?"select":"edit",onSelect:o,choices:[{value:"edit",label:Object(u.createElement)(u.Fragment,null,Object(u.createElement)(so.a,{icon:Nb.a}),Object(g.__)("Edit"))},{value:"select",label:Object(u.createElement)(u.Fragment,null,$b,Object(g.__)("Select"))}]})),Object(u.createElement)("div",{className:"block-editor-tool-selector__help"},Object(g.__)("Tools offer different interactions for block selection & editing. To select, press Escape, to go back to editing, press Enter.")))}})})),Xb=n(186),Qb=Object(u.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(j.Path,{d:"M9.737 18.011L3.98 12.255l5.734-6.28 1.107 1.012-4.103 4.494h13.3v1.5H6.828l3.97 3.97-1.06 1.06z"}));function Zb(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object($t.a)(e);if(t){var o=Object($t.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(qt.a)(this,n)}}var Jb=function(e){Object(Kt.a)(n,e);var t=Zb(n);function n(){var e;return Object(Ut.a)(this,n),(e=t.apply(this,arguments)).toggle=e.toggle.bind(Object(Wt.a)(e)),e.submitLink=e.submitLink.bind(Object(Wt.a)(e)),e.state={expanded:!1},e}return Object(Gt.a)(n,[{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(g.__)("Edit link"):Object(g.__)("Insert link");return Object(u.createElement)("div",{className:"block-editor-url-input__button"},Object(u.createElement)(h.Button,{icon:Xb.a,label:o,onClick:this.toggle,className:"components-toolbar__control",isPressed:!!t}),r&&Object(u.createElement)("form",{className:"block-editor-url-input__button-modal",onSubmit:this.submitLink},Object(u.createElement)("div",{className:"block-editor-url-input__button-modal-line"},Object(u.createElement)(h.Button,{className:"block-editor-url-input__back",icon:Qb,label:Object(g.__)("Close"),onClick:this.toggle}),Object(u.createElement)(ob,{value:t||"",onChange:n}),Object(u.createElement)(h.Button,{icon:$d.a,label:Object(g.__)("Submit"),type:"submit"}))))}}]),n}(u.Component),ef=n(160),tf=["noreferrer","noopener"],nf=Object(u.createElement)(h.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(u.createElement)(h.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(u.createElement)(h.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(u.createElement)(h.Path,{d:"m14.14 11.86l-3 3.87-2.14-2.59-3 3.86h12l-3.86-5.14z"})),rf=function(e){var t=e.linkDestination,n=e.onChangeUrl,r=e.url,o=e.mediaType,c=void 0===o?"image":o,i=e.mediaUrl,a=e.mediaLink,l=e.linkTarget,s=e.linkClass,d=e.rel,b=Object(u.useState)(!1),p=Object(re.a)(b,2),m=p[0],v=p[1],O=Object(u.useCallback)((function(){v(!0)})),j=Object(u.useState)(!1),k=Object(re.a)(j,2),y=k[0],_=k[1],E=Object(u.useState)(null),C=Object(re.a)(E,2),w=C[0],S=C[1],I=Object(u.useRef)(null),B=function(e){e.stopPropagation()},x=function(e){[st.LEFT,st.DOWN,st.RIGHT,st.UP,st.BACKSPACE,st.ENTER].indexOf(e.keyCode)>-1&&e.stopPropagation()},P=Object(u.useCallback)((function(){"media"!==t&&"attachment"!==t||S(""),_(!0)})),T=Object(u.useCallback)((function(){_(!1)})),N=Object(u.useCallback)((function(){S(null),T(),v(!1)})),D=function(e){var t=e;return void 0===e||Object(f.isEmpty)(t)||Object(f.isEmpty)(t)||(Object(f.each)(tf,(function(e){var n=new RegExp("\\b"+e+"\\b","gi");t=t.replace(n,"")})),t!==e&&(t=t.trim()),Object(f.isEmpty)(t)&&(t=void 0)),t},R=Object(u.useCallback)((function(){return function(e){var t=I.current;t&&t.contains(e.target)||(v(!1),S(null),T())}})),A=Object(u.useCallback)((function(){return function(e){w&&n({href:w}),T(),S(null),e.preventDefault()}})),M=Object(u.useCallback)((function(){n({linkDestination:"none",href:""})})),L=function(){var e=[{linkDestination:"media",title:Object(g.__)("Media File"),url:"image"===c?i:void 0,icon:nf}];return"image"===c&&a&&e.push({linkDestination:"attachment",title:Object(g.__)("Attachment Page"),url:"image"===c?a:void 0,icon:Object(u.createElement)(h.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(u.createElement)(h.Path,{d:"M0 0h24v24H0V0z",fill:"none"}),Object(u.createElement)(h.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"}))}),e},F=Object(u.createElement)(u.Fragment,null,Object(u.createElement)(h.ToggleControl,{label:Object(g.__)("Open in new tab"),onChange:function(e){var t=function(e){var t=e?"_blank":void 0;return{linkTarget:t,rel:t||d?D(d):void 0}}(e);n(t)},checked:"_blank"===l}),Object(u.createElement)(h.TextControl,{label:Object(g.__)("Link Rel"),value:D(d)||"",onChange:function(e){n({rel:e})},onKeyPress:B,onKeyDown:x}),Object(u.createElement)(h.TextControl,{label:Object(g.__)("Link CSS Class"),value:s||"",onKeyPress:B,onKeyDown:x,onChange:function(e){n({linkClass:e})}})),V=null!==w?w:r,H=(Object(f.find)(L(),["linkDestination",t])||{}).title;return Object(u.createElement)(u.Fragment,null,Object(u.createElement)(h.ToolbarButton,{icon:Xb.a,className:"components-toolbar__control",label:r?Object(g.__)("Edit link"):Object(g.__)("Insert link"),"aria-expanded":m,onClick:O}),m&&Object(u.createElement)(Ab,{onFocusOutside:R(),onClose:N,renderSettings:function(){return F},additionalControls:!V&&Object(u.createElement)(h.NavigableMenu,null,Object(f.map)(L(),(function(e){return Object(u.createElement)(h.MenuItem,{key:e.linkDestination,icon:e.icon,onClick:function(){var t,r,o;S(null),t=e.url,o=L(),r=t?(Object(f.find)(o,(function(e){return e.url===t}))||{linkDestination:"custom"}).linkDestination:"none",n({linkDestination:r,href:t}),T()}},e.title)})))},(!r||y)&&Object(u.createElement)(Ab.LinkEditor,{className:"block-editor-format-toolbar__link-container-content",value:V,onChangeInputValue:S,onKeyDown:x,onKeyPress:B,onSubmit:A(),autocompleteRef:I}),r&&!y&&Object(u.createElement)(u.Fragment,null,Object(u.createElement)(Ab.LinkViewer,{className:"block-editor-format-toolbar__link-container-content",onKeyPress:B,url:r,onEditLinkClick:P,urlLabel:H}),Object(u.createElement)(h.Button,{icon:ef.a,label:Object(g.__)("Remove link"),onClick:M}))))},of=n(161);function cf(e){var t=e.children,n=e.className,r=e.isEnabled,o=void 0===r||r,c=e.deviceType,i=e.setDeviceType;if(Object(p.useViewportMatch)("small","<"))return null;var a={className:b()(n,"block-editor-post-preview__dropdown-content"),position:"bottom left"},l={isTertiary:!0,className:"block-editor-post-preview__button-toggle",disabled:!o,children:Object(g.__)("Preview")};return Object(u.createElement)(h.DropdownMenu,{className:"block-editor-post-preview__dropdown",popoverProps:a,toggleProps:l,icon:null},(function(){return Object(u.createElement)(u.Fragment,null,Object(u.createElement)(h.MenuGroup,null,Object(u.createElement)(h.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:function(){return i("Desktop")},icon:"Desktop"===c&&of.a},Object(g.__)("Desktop")),Object(u.createElement)(h.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:function(){return i("Tablet")},icon:"Tablet"===c&&of.a},Object(g.__)("Tablet")),Object(u.createElement)(h.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:function(){return i("Mobile")},icon:"Mobile"===c&&of.a},Object(g.__)("Mobile"))),t)}))}var af=n(280),lf=/\((min|max)-width:[^\(]*?\)/g;function sf(e){return!!e.media&&!!e.media.mediaText.match(lf)}function uf(e,t,n){e.deleteRule(n),e.insertRule(t,n)}function df(e,t){return e.replace(lf,(function(e){return Object(af.match)(e,{type:"screen",width:t})?"(min-width:0px)":"(min-width:999999px)"}))}function bf(e,t){Object(u.useEffect)((function(){if(t){var n,r,o,c="undefined"==typeof window?[]:Object(f.filter)(null!==(n=null===(r=window)||void 0===r||null===(o=r.document)||void 0===o?void 0:o.styleSheets)&&void 0!==n?n:[],(function(e){return!!e.href&&Object(Vl.getProtocol)(e.href)===window.location.protocol&&Object(Vl.getAuthority)(e.href)===window.location.host})),i=[];return c.forEach((function(n,r){for(var o=!1,c=0;c<n.cssRules.length;++c){var a=n.cssRules[c];if((a.type===window.CSSRule.STYLE_RULE||a.type===window.CSSRule.MEDIA_RULE)&&(!o&&a.cssText.match(new RegExp("#start-".concat(e)))&&(o=!0),o&&a.cssText.match(new RegExp("#end-".concat(e)))&&(o=!1),o&&sf(a))){var l=a.cssText;i[r]||(i[r]=[]),i[r][c]=l,uf(n,df(l,t),c)}}})),function(){i.forEach((function(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];r&&uf(c[t],r,n)}}))}}}),[t])}function ff(e){var t=Object(u.useState)(window.innerWidth),n=Object(re.a)(t,2),r=n[0],o=n[1];Object(u.useEffect)((function(){if("Desktop"!==e){var t=function(){return o(window.innerWidth)};return window.addEventListener("resize",t),function(){window.removeEventListener("resize",t)}}}),[e]);var c=function(e){var t;switch(e){case"Tablet":t=780;break;case"Mobile":t=360;break;default:return null}return t<r?t:r};return bf("resizable-editor-section",c(e)),function(e){var t="Mobile"===e?"768px":"1024px";switch(e){case"Tablet":case"Mobile":return{width:c(e),margin:(window.innerHeight<800?36:72)+"px auto",flexGrow:0,height:t,minHeight:t,maxHeight:t,overflowY:"auto"};default:return null}}(e)}var pf=Object(v.withSelect)((function(e){return{selectedBlockClientId:e("core/block-editor").getBlockSelectionStart()}}))((function(e){var t=e.selectedBlockClientId;return t&&Object(u.createElement)(h.Button,{isSecondary:!0,className:"block-editor-skip-to-selected-block",onClick:function(){qe(t).focus()}},Object(g.__)("Skip to the selected block"))})),mf=n(128);var vf=Object(v.withSelect)((function(e){return{blocks:(0,e("core/block-editor").getMultiSelectedBlocks)()}}))((function(e){var t=e.blocks,n=Object(mf.count)(Object(c.serialize)(t),"words");return Object(u.createElement)("div",{className:"block-editor-multi-selection-inspector__card"},Object(u.createElement)(qn,{icon:ks,showColors:!0}),Object(u.createElement)("div",{className:"block-editor-multi-selection-inspector__card-content"},Object(u.createElement)("div",{className:"block-editor-multi-selection-inspector__card-title"},Object(g.sprintf)(Object(g._n)("%d block","%d blocks",t.length),t.length)),Object(u.createElement)("div",{className:"block-editor-multi-selection-inspector__card-description"},Object(g.sprintf)(Object(g._n)("%d word","%d words",n),n))))}));function Of(e){var t=e.blockName,n=Object(v.useSelect)((function(e){var n,r,o=e("core/block-editor").getSettings().__experimentalPreferredStyleVariations;return{preferredStyle:null==o||null===(n=o.value)||void 0===n?void 0:n[t],onUpdatePreferredStyleVariations:null!==(r=null==o?void 0:o.onChange)&&void 0!==r?r:null,styles:e("core/blocks").getBlockStyles(t)}}),[t]),r=n.preferredStyle,o=n.onUpdatePreferredStyleVariations,c=n.styles,i=Object(u.useMemo)((function(){return[{label:Object(g.__)("Not set"),value:""}].concat(Object(ne.a)(c.map((function(e){return{label:e.label,value:e.name}}))))}),[c]),a=Object(u.useCallback)((function(e){o(t,e)}),[t,o]);return o&&Object(u.createElement)(h.SelectControl,{options:i,value:r||"",label:Object(g.__)("Default Style"),onChange:a})}var gf=function(e){var t=e.slotName,n=e.bubblesVirtually,r=Object(h.__experimentalUseSlot)(t);return Boolean(r.fills&&r.fills.length)?Object(u.createElement)(h.PanelBody,{className:"block-editor-block-inspector__advanced",title:Object(g.__)("Advanced"),initialOpen:!1},Object(u.createElement)(q.Slot,{bubblesVirtually:n})):null},hf=Object(v.withSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getSelectedBlockCount,o=t.getBlockName,i=e("core/blocks").getBlockStyles,a=n(),l=a&&o(a),s=a&&Object(c.getBlockType)(l),u=a&&i(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,i=e.selectedBlockName,a=e.showNoBlockSelectedMessage,l=void 0===a||a,s=e.bubblesVirtually,d=void 0===s||s;if(n>1)return Object(u.createElement)("div",{className:"block-editor-block-inspector"},Object(u.createElement)(vf,null),Object(u.createElement)(Ke.Slot,{bubblesVirtually:d}));var b=i===Object(c.getUnregisteredTypeHandlerName)();return t&&o&&!b?Object(u.createElement)("div",{className:"block-editor-block-inspector"},Object(u.createElement)(fo,{blockType:t}),r&&Object(u.createElement)("div",null,Object(u.createElement)(h.PanelBody,{title:Object(g.__)("Styles")},Object(u.createElement)(Ss,{clientId:o}),Object(c.hasBlockSupport)(t.name,"defaultStylePicker",!0)&&Object(u.createElement)(Of,{blockName:t.name}))),Object(u.createElement)(Ke.Slot,{bubblesVirtually:d}),Object(u.createElement)("div",null,Object(u.createElement)(gf,{slotName:q.slotName,bubblesVirtually:d})),Object(u.createElement)(pf,{key:"back"})):l?Object(u.createElement)("span",{className:"block-editor-block-inspector__no-blocks"},Object(g.__)("No block selected.")):null}));function jf(e){var t,n,r=(t=Object(v.useSelect)((function(e){var t=e("core/block-editor"),n=t.hasSelectedBlock,r=t.hasMultiSelection;return n()||r()})),n=Object(v.useDispatch)("core/block-editor").clearSelectedBlock,function(e){e.target===e.currentTarget&&t&&n()});return Object(u.createElement)("div",Object(l.a)({tabIndex:-1,onFocus:r},e))}var kf=n(281),yf=n.n(kf),_f=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Ef=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 c(){var e={line:n,column:r};return function(t){return t.position=new i(e),f(),t}}function i(e){this.start=e,this.end={line:n,column:r},this.source=t.source}i.prototype.content=e;var a=[];function l(o){var c=new Error(t.source+":"+n+":"+r+": "+o);if(c.reason=o,c.filename=t.source,c.line=n,c.column=r,c.source=e,!t.silent)throw c;a.push(c)}function s(){return b(/^{\s*/)}function u(){return b(/^}/)}function d(){var t,n=[];for(f(),p(n);e.length&&"}"!==e.charAt(0)&&(t=C()||w());)!1!==t&&(n.push(t),p(n));return n}function b(t){var n=t.exec(e);if(n){var r=n[0];return o(r),e=e.slice(r.length),n}}function f(){b(/^\s*/)}function p(e){var t;for(e=e||[];t=m();)!1!==t&&e.push(t);return e}function m(){var t=c();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 i=e.slice(2,n-2);return r+=2,o(i),e=e.slice(n),r+=2,t({type:"comment",comment:i})}}function v(){var e=b(/^([^{]+)/);if(e)return Cf(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 O(){var e=c(),t=b(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(t){if(t=Cf(t[0]),!b(/^:\s*/))return l("property missing ':'");var n=b(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),r=e({type:"declaration",property:t.replace(_f,""),value:n?Cf(n[0]).replace(_f,""):""});return b(/^[;\s]*/),r}}function g(){var e,t=[];if(!s())return l("missing '{'");for(p(t);e=O();)!1!==e&&(t.push(e),p(t));return u()?t:l("missing '}'")}function h(){for(var e,t=[],n=c();e=b(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),b(/^,\s*/);if(t.length)return n({type:"keyframe",values:t,declarations:g()})}var j,k=E("import"),y=E("charset"),_=E("namespace");function E(e){var t=new RegExp("^@"+e+"\\s*([^;]+);");return function(){var n=c(),r=b(t);if(r){var o={type:e};return o[e]=r[1].trim(),n(o)}}}function C(){if("@"===e[0])return function(){var e=c(),t=b(/^@([-\w]+)?keyframes\s*/);if(t){var n=t[1];if(!(t=b(/^([-\w]+)\s*/)))return l("@keyframes missing name");var r,o=t[1];if(!s())return l("@keyframes missing '{'");for(var i=p();r=h();)i.push(r),i=i.concat(p());return u()?e({type:"keyframes",name:o,vendor:n,keyframes:i}):l("@keyframes missing '}'")}}()||function(){var e=c(),t=b(/^@media *([^{]+)/);if(t){var n=Cf(t[1]);if(!s())return l("@media missing '{'");var r=p().concat(d());return u()?e({type:"media",media:n,rules:r}):l("@media missing '}'")}}()||function(){var e=c(),t=b(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(t)return e({type:"custom-media",name:Cf(t[1]),media:Cf(t[2])})}()||function(){var e=c(),t=b(/^@supports *([^{]+)/);if(t){var n=Cf(t[1]);if(!s())return l("@supports missing '{'");var r=p().concat(d());return u()?e({type:"supports",supports:n,rules:r}):l("@supports missing '}'")}}()||k()||y()||_()||function(){var e=c(),t=b(/^@([-\w]+)?document *([^{]+)/);if(t){var n=Cf(t[1]),r=Cf(t[2]);if(!s())return l("@document missing '{'");var o=p().concat(d());return u()?e({type:"document",document:r,vendor:n,rules:o}):l("@document missing '}'")}}()||function(){var e=c();if(b(/^@page */)){var t=v()||[];if(!s())return l("@page missing '{'");for(var n,r=p();n=O();)r.push(n),r=r.concat(p());return u()?e({type:"page",selectors:t,declarations:r}):l("@page missing '}'")}}()||function(){var e=c();if(b(/^@host\s*/)){if(!s())return l("@host missing '{'");var t=p().concat(d());return u()?e({type:"host",rules:t}):l("@host missing '}'")}}()||function(){var e=c();if(b(/^@font-face\s*/)){if(!s())return l("@font-face missing '{'");for(var t,n=p();t=O();)n.push(t),n=n.concat(p());return u()?e({type:"font-face",declarations:n}):l("@font-face missing '}'")}}()}function w(){var e=c(),t=v();return t?(p(),e({type:"rule",selectors:t,declarations:g()})):l("selector missing")}return function e(t,n){var r=t&&"string"==typeof t.type,o=r?t:n;for(var c in t){var i=t[c];Array.isArray(i)?i.forEach((function(t){e(t,o)})):i&&"object"===Object(Ro.a)(i)&&e(i,o)}r&&Object.defineProperty(t,"parent",{configurable:!0,writable:!0,enumerable:!1,value:n||null});return t}((j=d(),{type:"stylesheet",stylesheet:{source:t.source,rules:j,parsingErrors:a}}))};function Cf(e){return e?e.replace(/^\s+|\s+$/g,""):""}var wf=n(171),Sf=n.n(wf),If=Bf;function Bf(e){this.options=e||{}}Bf.prototype.emit=function(e){return e},Bf.prototype.visit=function(e){return this[e.type](e)},Bf.prototype.mapVisit=function(e,t){var n="";t=t||"";for(var r=0,o=e.length;r<o;r++)n+=this.visit(e[r]),t&&r<o-1&&(n+=this.emit(t));return n};var xf=Pf;function Pf(e){If.call(this,e)}Sf()(Pf,If),Pf.prototype.compile=function(e){return e.stylesheet.rules.map(this.visit,this).join("")},Pf.prototype.comment=function(e){return this.emit("",e.position)},Pf.prototype.import=function(e){return this.emit("@import "+e.import+";",e.position)},Pf.prototype.media=function(e){return this.emit("@media "+e.media,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},Pf.prototype.document=function(e){var t="@"+(e.vendor||"")+"document "+e.document;return this.emit(t,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},Pf.prototype.charset=function(e){return this.emit("@charset "+e.charset+";",e.position)},Pf.prototype.namespace=function(e){return this.emit("@namespace "+e.namespace+";",e.position)},Pf.prototype.supports=function(e){return this.emit("@supports "+e.supports,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},Pf.prototype.keyframes=function(e){return this.emit("@"+(e.vendor||"")+"keyframes "+e.name,e.position)+this.emit("{")+this.mapVisit(e.keyframes)+this.emit("}")},Pf.prototype.keyframe=function(e){var t=e.declarations;return this.emit(e.values.join(","),e.position)+this.emit("{")+this.mapVisit(t)+this.emit("}")},Pf.prototype.page=function(e){var t=e.selectors.length?e.selectors.join(", "):"";return this.emit("@page "+t,e.position)+this.emit("{")+this.mapVisit(e.declarations)+this.emit("}")},Pf.prototype["font-face"]=function(e){return this.emit("@font-face",e.position)+this.emit("{")+this.mapVisit(e.declarations)+this.emit("}")},Pf.prototype.host=function(e){return this.emit("@host",e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},Pf.prototype["custom-media"]=function(e){return this.emit("@custom-media "+e.name+" "+e.media+";",e.position)},Pf.prototype.rule=function(e){var t=e.declarations;return t.length?this.emit(e.selectors.join(","),e.position)+this.emit("{")+this.mapVisit(t)+this.emit("}"):""},Pf.prototype.declaration=function(e){return this.emit(e.property+":"+e.value,e.position)+this.emit(";")};var Tf=Nf;function Nf(e){e=e||{},If.call(this,e),this.indentation=e.indent}Sf()(Nf,If),Nf.prototype.compile=function(e){return this.stylesheet(e)},Nf.prototype.stylesheet=function(e){return this.mapVisit(e.stylesheet.rules,"\n\n")},Nf.prototype.comment=function(e){return this.emit(this.indent()+"/*"+e.comment+"*/",e.position)},Nf.prototype.import=function(e){return this.emit("@import "+e.import+";",e.position)},Nf.prototype.media=function(e){return this.emit("@media "+e.media,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},Nf.prototype.document=function(e){var t="@"+(e.vendor||"")+"document "+e.document;return this.emit(t,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},Nf.prototype.charset=function(e){return this.emit("@charset "+e.charset+";",e.position)},Nf.prototype.namespace=function(e){return this.emit("@namespace "+e.namespace+";",e.position)},Nf.prototype.supports=function(e){return this.emit("@supports "+e.supports,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},Nf.prototype.keyframes=function(e){return this.emit("@"+(e.vendor||"")+"keyframes "+e.name,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.keyframes,"\n")+this.emit(this.indent(-1)+"}")},Nf.prototype.keyframe=function(e){var t=e.declarations;return this.emit(this.indent())+this.emit(e.values.join(", "),e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(t,"\n")+this.emit(this.indent(-1)+"\n"+this.indent()+"}\n")},Nf.prototype.page=function(e){var t=e.selectors.length?e.selectors.join(", ")+" ":"";return this.emit("@page "+t,e.position)+this.emit("{\n")+this.emit(this.indent(1))+this.mapVisit(e.declarations,"\n")+this.emit(this.indent(-1))+this.emit("\n}")},Nf.prototype["font-face"]=function(e){return this.emit("@font-face ",e.position)+this.emit("{\n")+this.emit(this.indent(1))+this.mapVisit(e.declarations,"\n")+this.emit(this.indent(-1))+this.emit("\n}")},Nf.prototype.host=function(e){return this.emit("@host",e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},Nf.prototype["custom-media"]=function(e){return this.emit("@custom-media "+e.name+" "+e.media+";",e.position)},Nf.prototype.rule=function(e){var t=this.indent(),n=e.declarations;return n.length?this.emit(e.selectors.map((function(e){return t+e})).join(",\n"),e.position)+this.emit(" {\n")+this.emit(this.indent(1))+this.mapVisit(n,"\n")+this.emit(this.indent(-1))+this.emit("\n"+this.indent()+"}"):""},Nf.prototype.declaration=function(e){return this.emit(this.indent())+this.emit(e.property+": "+e.value,e.position)+this.emit(";")},Nf.prototype.indent=function(e){return this.level=this.level||1,null!==e?(this.level+=e,""):Array(this.level).join(this.indentation||" ")};var Df=function(e,t){try{var n=Ef(e),r=yf.a.map(n,(function(e){if(!e)return e;var n=t(e);return this.update(n)}));return o=r,((c=c||{}).compress?new xf(c):new Tf(c)).compile(o)}catch(e){return console.warn("Error while traversing the CSS: "+e),null}var o,c};function Rf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Af(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rf(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Mf(e){return 0!==e.value.indexOf("data:")&&0!==e.value.indexOf("#")&&(t=e.value,!/^\/(?!\/)/.test(t)&&!function(e){return/^(?:https?:)?\/\//.test(e)}(e.value));var t}function Lf(e,t){return new URL(e,t).toString()}var Ff=function(e){return function(t){if("declaration"===t.type){var n=function(e){for(var t,n=/url\((\s*)(['"]?)(.+?)\2(\s*)\)/g,r=[];null!==(t=n.exec(e));){var o={source:t[0],before:t[1],quote:t[2],value:t[3],after:t[4]};Mf(o)&&r.push(o)}return r}(t.value).map((c=e,function(e){return Af(Af({},e),{},{newUrl:"url("+e.before+e.quote+Lf(e.value,c)+e.quote+e.after+")"})}));return Af(Af({},t),{},{value:(r=t.value,o=n,o.forEach((function(e){r=r.replace(e.source,e.newUrl)})),r)})}var r,o,c;return t}};function Vf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Hf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vf(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var zf=/^(body|html|:root).*$/,Uf=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(n){return"rule"===n.type?Hf(Hf({},n),{},{selectors:n.selectors.map((function(n){return t.includes(n.trim())?n:n.match(zf)?n.replace(/^(body|html|:root)/,e):e+" "+n}))}):n}},Gf=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object(f.map)(e,(function(e){var n=e.css,r=e.baseURL,o=[];return t&&o.push(Uf(t)),r&&o.push(Ff(r)),o.length?Df(n,Object(p.compose)(o)):n}))};var Wf=function(e){var t=e.styles;return Object(u.useEffect)((function(){var e=Gf(t,".editor-styles-wrapper"),n=Object(f.map)(Object(f.compact)(e),(function(e){var t=document.createElement("style");return t.innerHTML=e,document.body.appendChild(t),t}));return function(){return n.forEach((function(e){return document.body.removeChild(e)}))}}),[t]),null};var Kf=function(e){var t=e.rootClientId,n=e.clientId,r=e.isAppender,o=e.showInserterHelpPanel,c=e.showMostUsedBlocks,i=void 0!==c&&c,a=e.__experimentalSelectBlockOnInsert,l=e.__experimentalInsertionIndex,s=e.onSelect,d=void 0===s?f.noop:s,b=Object(v.useSelect)((function(e){var r=e("core/block-editor").getBlockRootClientId;return t||r(n)||void 0}),[n,t]);return Object(u.createElement)(Xl,{onSelect:d,rootClientId:b,clientId:n,isAppender:r,showInserterHelpPanel:o,showMostUsedBlocks:i,__experimentalSelectBlockOnInsert:a,__experimentalInsertionIndex:l})};function qf(){var e=Object(v.useSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientIds,r=t.getBlockOrder,o=t.getBlockRootClientId,c=n(),i=Object(re.a)(c,1)[0];return{clientIds:c,rootBlocksClientIds:r(),rootClientId:o(i)}}),[]),t=e.clientIds,n=e.rootBlocksClientIds,r=e.rootClientId,o=Object(v.useDispatch)("core/block-editor"),c=o.duplicateBlocks,i=o.removeBlocks,l=o.insertAfterBlock,s=o.insertBeforeBlock,d=o.multiSelect,b=o.clearSelectedBlock,p=o.moveBlocksUp,m=o.moveBlocksDown;return Object(a.useShortcut)("core/block-editor/move-up",Object(u.useCallback)((function(e){e.preventDefault(),p(t,r)}),[t,p]),{bindGlobal:!0,isDisabled:0===t.length}),Object(a.useShortcut)("core/block-editor/move-down",Object(u.useCallback)((function(e){e.preventDefault(),m(t,r)}),[t,m]),{bindGlobal:!0,isDisabled:0===t.length}),Object(a.useShortcut)("core/block-editor/duplicate",Object(u.useCallback)((function(e){e.preventDefault(),c(t)}),[t,c]),{bindGlobal:!0,isDisabled:0===t.length}),Object(a.useShortcut)("core/block-editor/remove",Object(u.useCallback)((function(e){e.preventDefault(),i(t)}),[t,i]),{bindGlobal:!0,isDisabled:0===t.length}),Object(a.useShortcut)("core/block-editor/insert-after",Object(u.useCallback)((function(e){e.preventDefault(),l(Object(f.last)(t))}),[t,l]),{bindGlobal:!0,isDisabled:0===t.length}),Object(a.useShortcut)("core/block-editor/insert-before",Object(u.useCallback)((function(e){e.preventDefault(),s(Object(f.first)(t))}),[t,s]),{bindGlobal:!0,isDisabled:0===t.length}),Object(a.useShortcut)("core/block-editor/delete-multi-selection",Object(u.useCallback)((function(e){e.preventDefault(),i(t)}),[t,i]),{isDisabled:t.length<2}),Object(a.useShortcut)("core/block-editor/select-all",Object(u.useCallback)((function(e){e.preventDefault(),d(Object(f.first)(n),Object(f.last)(n))}),[n,d])),Object(a.useShortcut)("core/block-editor/unselect",Object(u.useCallback)((function(e){e.preventDefault(),b(),e.target.ownerDocument.defaultView.getSelection().removeAllRanges()}),[t,b]),{isDisabled:t.length<2}),null}qf.Register=function(){var e=Object(v.useDispatch)("core/keyboard-shortcuts").registerShortcut;return Object(u.useEffect)((function(){e({name:"core/block-editor/duplicate",category:"block",description:Object(g.__)("Duplicate the selected block(s)."),keyCombination:{modifier:"primaryShift",character:"d"}}),e({name:"core/block-editor/remove",category:"block",description:Object(g.__)("Remove the selected block(s)."),keyCombination:{modifier:"access",character:"z"}}),e({name:"core/block-editor/insert-before",category:"block",description:Object(g.__)("Insert a new block before the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"t"}}),e({name:"core/block-editor/insert-after",category:"block",description:Object(g.__)("Insert a new block after the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"y"}}),e({name:"core/block-editor/delete-multi-selection",category:"block",description:Object(g.__)("Remove multiple selected blocks."),keyCombination:{character:"del"},aliases:[{character:"backspace"}]}),e({name:"core/block-editor/select-all",category:"selection",description:Object(g.__)("Select all text when typing. Press again to select all blocks."),keyCombination:{modifier:"primary",character:"a"}}),e({name:"core/block-editor/unselect",category:"selection",description:Object(g.__)("Clear selection."),keyCombination:{character:"escape"}}),e({name:"core/block-editor/focus-toolbar",category:"global",description:Object(g.__)("Navigate to the nearest toolbar."),keyCombination:{modifier:"alt",character:"F10"}}),e({name:"core/block-editor/move-up",category:"block",description:Object(g.__)("Move the selected block(s) up."),keyCombination:{modifier:"secondary",character:"t"}}),e({name:"core/block-editor/move-down",category:"block",description:Object(g.__)("Move the selected block(s) down."),keyCombination:{modifier:"secondary",character:"y"}})}),[e]),null};var $f=qf;function Yf(){var e=Object(v.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockSelectionEnd,r=t.hasMultiSelection,o=t.isMultiSelecting;return{selectionEnd:n(),isMultiSelection:r(),isMultiSelecting:o()}}),[]),t=e.isMultiSelection,n=e.selectionEnd,r=e.isMultiSelecting;return Object(u.useEffect)((function(){if(n&&!r&&t){var e=qe(n);if(e){var o=Object(kr.getScrollContainer)(e);o&&eb()(e,o,{onlyScrollIfNeeded:!0})}}}),[t,n,r]),null}var Xf=[st.UP,st.RIGHT,st.DOWN,st.LEFT,st.ENTER,st.BACKSPACE];var Qf=Object(p.withSafeTimeout)((function(e){var t=e.children,n=e.setTimeout,r=Object(u.useRef)(),o=Object(u.useRef)(),c=Object(v.useSelect)((function(e){return e("core/block-editor").isTyping()})),i=Object(v.useDispatch)("core/block-editor"),a=i.startTyping,l=i.stopTyping;function s(e){var t=e?"addEventListener":"removeEventListener";r.current.ownerDocument[t]("selectionchange",b),r.current.ownerDocument[t]("mousemove",d),document[t]("mousemove",d)}function d(e){var t=e.clientX,n=e.clientY;if(o.current){var r=o.current,c=r.clientX,i=r.clientY;c===t&&i===n||l()}o.current={clientX:t,clientY:n}}function b(e){var t=e.target.defaultView.getSelection();t.rangeCount>0&&t.getRangeAt(0).collapsed||l()}function p(e){var t=e.type,n=e.target;!c&&Object(kr.isTextField)(n)&&r.current.contains(n)&&("keydown"!==t||function(e){var t=e.keyCode;return!e.shiftKey&&Xf.includes(t)}(e))&&a()}return Object(u.useEffect)((function(){return s(c),function(){return s(!1)}}),[c]),Object(u.createElement)("div",{ref:r,onFocus:function(e){var t=e.target;n((function(){c&&!Object(kr.isTextField)(t)&&l()}))},onKeyPress:p,onKeyDown:Object(f.over)([p,function(e){!c||e.keyCode!==st.ESCAPE&&e.keyCode!==st.TAB||l()}])},t)}));function Zf(){return to()("PreserveScrollInReorder component",{hint:"This behavior is now built-in the block list"}),null}function Jf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object($t.a)(e);if(t){var o=Object($t.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(qt.a)(this,n)}}var ep=-1!==window.navigator.userAgent.indexOf("Trident"),tp=new Set([st.UP,st.DOWN,st.LEFT,st.RIGHT]),np=function(e){Object(Kt.a)(n,e);var t=Jf(n);function n(){var e;return Object(Ut.a)(this,n),(e=t.apply(this,arguments)).ref=Object(u.createRef)(),e.onKeyDown=e.onKeyDown.bind(Object(Wt.a)(e)),e.addSelectionChangeListener=e.addSelectionChangeListener.bind(Object(Wt.a)(e)),e.computeCaretRectOnSelectionChange=e.computeCaretRectOnSelectionChange.bind(Object(Wt.a)(e)),e.maintainCaretPosition=e.maintainCaretPosition.bind(Object(Wt.a)(e)),e.computeCaretRect=e.computeCaretRect.bind(Object(Wt.a)(e)),e.onScrollResize=e.onScrollResize.bind(Object(Wt.a)(e)),e.isSelectionEligibleForScroll=e.isSelectionEligibleForScroll.bind(Object(Wt.a)(e)),e.getDocument=e.getDocument.bind(Object(Wt.a)(e)),e.getWindow=e.getWindow.bind(Object(Wt.a)(e)),e}return Object(Gt.a)(n,[{key:"componentDidMount",value:function(){this.getWindow().addEventListener("scroll",this.onScrollResize,!0),this.getWindow().addEventListener("resize",this.onScrollResize,!0)}},{key:"componentWillUnmount",value:function(){this.getWindow().removeEventListener("scroll",this.onScrollResize,!0),this.getWindow().removeEventListener("resize",this.onScrollResize,!0),this.getDocument().removeEventListener("selectionchange",this.computeCaretRectOnSelectionChange),this.onScrollResize.rafId&&this.getWindow().cancelAnimationFrame(this.onScrollResize.rafId),this.onKeyDown.rafId&&this.getWindow().cancelAnimationFrame(this.onKeyDown.rafId)}},{key:"getDocument",value:function(){return this.ref.current.ownerDocument}},{key:"getWindow",value:function(){return this.getDocument().defaultView}},{key:"computeCaretRect",value:function(){this.isSelectionEligibleForScroll()&&(this.caretRect=Object(kr.computeCaretRect)(this.getWindow()))}},{key:"computeCaretRectOnSelectionChange",value:function(){this.getDocument().removeEventListener("selectionchange",this.computeCaretRectOnSelectionChange),this.computeCaretRect()}},{key:"onScrollResize",value:function(){var e=this;this.onScrollResize.rafId||(this.onScrollResize.rafId=this.getWindow().requestAnimationFrame((function(){e.computeCaretRect(),delete e.onScrollResize.rafId})))}},{key:"isSelectionEligibleForScroll",value:function(){return this.props.selectedBlockClientId&&this.ref.current.contains(this.getDocument().activeElement)&&this.getDocument().activeElement.isContentEditable}},{key:"isLastEditableNode",value:function(){var e=this.ref.current.querySelectorAll('[contenteditable="true"]');return e[e.length-1]===this.getDocument().activeElement}},{key:"maintainCaretPosition",value:function(e){var t=e.keyCode;if(this.isSelectionEligibleForScroll()){var n=Object(kr.computeCaretRect)(this.getWindow());if(n)if(this.caretRect)if(tp.has(t))this.caretRect=n;else{var r=n.top-this.caretRect.top;if(0!==r){var o=Object(kr.getScrollContainer)(this.ref.current);if(o){var c=o===this.getDocument().body,i=c?this.getWindow().scrollY:o.scrollTop,a=c?0:o.getBoundingClientRect().top,l=c?this.caretRect.top/this.getWindow().innerHeight:(this.caretRect.top-a)/(this.getWindow().innerHeight-a);if(0===i&&l<.75&&this.isLastEditableNode())this.caretRect=n;else{var s=c?this.getWindow().innerHeight:o.clientHeight;this.caretRect.top+this.caretRect.height>a+s||this.caretRect.top<a?this.caretRect=n:c?this.getWindow().scrollBy(0,r):o.scrollTop+=r}}}}else this.caretRect=n}}},{key:"addSelectionChangeListener",value:function(){this.getDocument().addEventListener("selectionchange",this.computeCaretRectOnSelectionChange)}},{key:"onKeyDown",value:function(e){var t=this;e.persist(),this.onKeyDown.rafId&&this.getWindow().cancelAnimationFrame(this.onKeyDown.rafId),this.onKeyDown.rafId=this.getWindow().requestAnimationFrame((function(){t.maintainCaretPosition(e),delete t.onKeyDown.rafId}))}},{key:"render",value:function(){return Object(u.createElement)("div",{ref:this.ref,onKeyDown:this.onKeyDown,onKeyUp:this.maintainCaretPosition,onMouseDown:this.addSelectionChangeListener,onTouchStart:this.addSelectionChangeListener,className:"block-editor__typewriter"},this.props.children)}}]),n}(u.Component),rp=ep?function(e){return e.children}:Object(v.withSelect)((function(e){return{selectedBlockClientId:(0,e("core/block-editor").getSelectedBlockClientId)()}}))(np);function op(e){if(void 0===e)e=mo.colors;else{var t=e.filter((function(e){return e.color}));0===t.length?e=mo.colors:t.length<e.length&&(e=t)}return e}function cp(e){if(void 0===e)e=mo.gradients;else{var t=e.filter((function(e){return e.gradient}));0===t.length?e=mo.gradients:t.length<e.length&&(e=t)}return e}}]); \ 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 453b8619ab..6f31db99e2 100644 --- a/wp-includes/js/dist/block-library.js +++ b/wp-includes/js/dist/block-library.js @@ -8332,6 +8332,9 @@ function GalleryEdit(props) { attachmentCaptions = _useState4[0], setAttachmentCaptions = _useState4[1]; + var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), + __unstableMarkNextChangeAsNotPersistent = _useDispatch.__unstableMarkNextChangeAsNotPersistent; + function setAttributes(newAttrs) { if (newAttrs.ids) { throw new Error('The "ids" attribute should not be changed directly. It is managed automatically when "images" attribute changes'); @@ -8561,6 +8564,8 @@ function GalleryEdit(props) { if (!linkTo) { var _window, _window$wp, _window$wp$media, _window$wp$media$view, _window$wp$media$view2, _window$wp$media$view3; + __unstableMarkNextChangeAsNotPersistent(); + setAttributes({ linkTo: ((_window = window) === null || _window === void 0 ? void 0 : (_window$wp = _window.wp) === null || _window$wp === void 0 ? void 0 : (_window$wp$media = _window$wp.media) === null || _window$wp$media === void 0 ? void 0 : (_window$wp$media$view = _window$wp$media.view) === null || _window$wp$media$view === void 0 ? void 0 : (_window$wp$media$view2 = _window$wp$media$view.settings) === null || _window$wp$media$view2 === void 0 ? void 0 : (_window$wp$media$view3 = _window$wp$media$view2.defaultProps) === null || _window$wp$media$view3 === void 0 ? void 0 : _window$wp$media$view3.link) || constants_LINK_DESTINATION_NONE }); @@ -11168,7 +11173,8 @@ function CodeEdit(_ref) { }); }, placeholder: Object(external_this_wp_i18n_["__"])('Write code…'), - "aria-label": Object(external_this_wp_i18n_["__"])('Code') + "aria-label": Object(external_this_wp_i18n_["__"])('Code'), + preserveWhiteSpace: true })); } diff --git a/wp-includes/js/dist/block-library.min.js b/wp-includes/js/dist/block-library.min.js index ae7bfa10cf..3f06e5d8fa 100644 --- a/wp-includes/js/dist/block-library.min.js +++ b/wp-includes/js/dist/block-library.min.js @@ -21,7 +21,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ -var Ue=function(e,t){return(Ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};var qe=function(){return(qe=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var c in t=arguments[r])Object.prototype.hasOwnProperty.call(t,c)&&(e[c]=t[c]);return e}).apply(this,arguments)};Object.create;Object.create;var We=r(13),Ze=r.n(We);function $e(e,t,r,n,c,o){void 0===o&&(o=0);var a=ot(e,t,o),i=a.width,l=a.height,s=Math.min(i,r),u=Math.min(l,n);return s>u*c?{width:u*c,height:u}:{width:s,height:s/c}}function Ke(e,t,r,n,c){void 0===c&&(c=0);var o=ot(t.width,t.height,c),a=o.width,i=o.height;return{x:Ye(e.x,a,r.width,n),y:Ye(e.y,i,r.height,n)}}function Ye(e,t,r,n){var c=t*n/2-r/2;return Math.min(c,Math.max(e,-c))}function Je(e,t){return Math.sqrt(Math.pow(e.y-t.y,2)+Math.pow(e.x-t.x,2))}function Qe(e,t){return 180*Math.atan2(t.y-e.y,t.x-e.x)/Math.PI}function Xe(e,t,r,n,c,o,a){void 0===o&&(o=0),void 0===a&&(a=!0);var i=a&&0===o?et:tt,l={x:i(100,((t.width-r.width/c)/2-e.x/c)/t.width*100),y:i(100,((t.height-r.height/c)/2-e.y/c)/t.height*100),width:i(100,r.width/t.width*100/c),height:i(100,r.height/t.height*100/c)},s=Math.round(i(t.naturalWidth,l.width*t.naturalWidth/100)),u=Math.round(i(t.naturalHeight,l.height*t.naturalHeight/100)),b=t.naturalWidth>=t.naturalHeight*n?{width:Math.round(u*n),height:u}:{width:s,height:Math.round(s/n)};return{croppedAreaPercentages:l,croppedAreaPixels:qe(qe({},b),{x:Math.round(i(t.naturalWidth-b.width,l.x*t.naturalWidth/100)),y:Math.round(i(t.naturalHeight-b.height,l.y*t.naturalHeight/100))})}}function et(e,t){return Math.min(e,Math.max(0,t))}function tt(e,t){return t}function rt(e,t,r){var n=t.width/t.naturalWidth,c=function(e,t,r){var n=t.width/t.naturalWidth;if(r)return r.height>r.width?r.height/n/e.height:r.width/n/e.width;var c=e.width/e.height;return t.naturalWidth>=t.naturalHeight*c?t.naturalHeight/e.height:t.naturalWidth/e.width}(e,t,r),o=n*c;return{crop:{x:((t.naturalWidth-e.width)/2-e.x)*o,y:((t.naturalHeight-e.height)/2-e.y)*o},zoom:c}}function nt(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function ct(e,t,r,n,c){var o=Math.cos,a=Math.sin,i=c*Math.PI/180;return[(e-r)*o(i)-(t-n)*a(i)+r,(e-r)*a(i)+(t-n)*o(i)+n]}function ot(e,t,r){var n=e/2,c=t/2,o=[ct(0,0,n,c,r),ct(e,0,n,c,r),ct(e,t,n,c,r),ct(0,t,n,c,r)],a=Math.min.apply(Math,o.map((function(e){return e[0]}))),i=Math.max.apply(Math,o.map((function(e){return e[0]}))),l=Math.min.apply(Math,o.map((function(e){return e[1]})));return{width:i-a,height:Math.max.apply(Math,o.map((function(e){return e[1]})))-l}}function at(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter((function(e){return"string"==typeof e&&e.length>0})).join(" ").trim()}var it=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.imageRef=null,r.videoRef=null,r.containerRef=null,r.styleRef=null,r.containerRect=null,r.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},r.dragStartPosition={x:0,y:0},r.dragStartCrop={x:0,y:0},r.lastPinchDistance=0,r.lastPinchRotation=0,r.rafDragTimeout=null,r.rafPinchTimeout=null,r.wheelTimer=null,r.state={cropSize:null,hasWheelJustStarted:!1},r.preventZoomSafari=function(e){return e.preventDefault()},r.cleanEvents=function(){document.removeEventListener("mousemove",r.onMouseMove),document.removeEventListener("mouseup",r.onDragStopped),document.removeEventListener("touchmove",r.onTouchMove),document.removeEventListener("touchend",r.onDragStopped)},r.clearScrollEvent=function(){r.containerRef&&r.containerRef.removeEventListener("wheel",r.onWheel),r.wheelTimer&&clearTimeout(r.wheelTimer)},r.onMediaLoad=function(){r.computeSizes(),r.emitCropData(),r.setInitialCrop(),r.props.onMediaLoaded&&r.props.onMediaLoaded(r.mediaSize)},r.setInitialCrop=function(){var e=r.props,t=e.initialCroppedAreaPixels,n=e.cropSize;if(t){var c=rt(t,r.mediaSize,n),o=c.crop,a=c.zoom;r.props.onCropChange(o),r.props.onZoomChange&&r.props.onZoomChange(a)}},r.computeSizes=function(){var e,t,n,c,o,a,i=r.imageRef||r.videoRef;if(i&&r.containerRef){r.containerRect=r.containerRef.getBoundingClientRect(),r.mediaSize={width:i.offsetWidth,height:i.offsetHeight,naturalWidth:(null===(e=r.imageRef)||void 0===e?void 0:e.naturalWidth)||(null===(t=r.videoRef)||void 0===t?void 0:t.videoWidth)||0,naturalHeight:(null===(n=r.imageRef)||void 0===n?void 0:n.naturalHeight)||(null===(c=r.videoRef)||void 0===c?void 0:c.videoHeight)||0};var l=r.props.cropSize?r.props.cropSize:$e(i.offsetWidth,i.offsetHeight,r.containerRect.width,r.containerRect.height,r.props.aspect,r.props.rotation);(null===(o=r.state.cropSize)||void 0===o?void 0:o.height)===l.height&&(null===(a=r.state.cropSize)||void 0===a?void 0:a.width)===l.width||r.props.onCropSizeChange&&r.props.onCropSizeChange(l),r.setState({cropSize:l},r.recomputeCropPosition)}},r.onMouseDown=function(e){e.preventDefault(),document.addEventListener("mousemove",r.onMouseMove),document.addEventListener("mouseup",r.onDragStopped),r.onDragStart(t.getMousePoint(e))},r.onMouseMove=function(e){return r.onDrag(t.getMousePoint(e))},r.onTouchStart=function(e){e.preventDefault(),document.addEventListener("touchmove",r.onTouchMove,{passive:!1}),document.addEventListener("touchend",r.onDragStopped),2===e.touches.length?r.onPinchStart(e):1===e.touches.length&&r.onDragStart(t.getTouchPoint(e.touches[0]))},r.onTouchMove=function(e){e.preventDefault(),2===e.touches.length?r.onPinchMove(e):1===e.touches.length&&r.onDrag(t.getTouchPoint(e.touches[0]))},r.onDragStart=function(e){var t,n,c=e.x,o=e.y;r.dragStartPosition={x:c,y:o},r.dragStartCrop=qe({},r.props.crop),null===(n=(t=r.props).onInteractionStart)||void 0===n||n.call(t)},r.onDrag=function(e){var t=e.x,n=e.y;r.rafDragTimeout&&window.cancelAnimationFrame(r.rafDragTimeout),r.rafDragTimeout=window.requestAnimationFrame((function(){if(r.state.cropSize&&void 0!==t&&void 0!==n){var e=t-r.dragStartPosition.x,c=n-r.dragStartPosition.y,o={x:r.dragStartCrop.x+e,y:r.dragStartCrop.y+c},a=r.props.restrictPosition?Ke(o,r.mediaSize,r.state.cropSize,r.props.zoom,r.props.rotation):o;r.props.onCropChange(a)}}))},r.onDragStopped=function(){var e,t;r.cleanEvents(),r.emitCropData(),null===(t=(e=r.props).onInteractionEnd)||void 0===t||t.call(e)},r.onWheel=function(e){e.preventDefault();var n=t.getMousePoint(e),c=r.props.zoom-e.deltaY*r.props.zoomSpeed/200;r.setNewZoom(c,n),r.state.hasWheelJustStarted||r.setState({hasWheelJustStarted:!0},(function(){var e,t;return null===(t=(e=r.props).onInteractionStart)||void 0===t?void 0:t.call(e)})),r.wheelTimer&&clearTimeout(r.wheelTimer),r.wheelTimer=window.setTimeout((function(){return r.setState({hasWheelJustStarted:!1},(function(){var e,t;return null===(t=(e=r.props).onInteractionEnd)||void 0===t?void 0:t.call(e)}))}),250)},r.getPointOnContainer=function(e){var t=e.x,n=e.y;if(!r.containerRect)throw new Error("The Cropper is not mounted");return{x:r.containerRect.width/2-(t-r.containerRect.left),y:r.containerRect.height/2-(n-r.containerRect.top)}},r.getPointOnMedia=function(e){var t=e.x,n=e.y,c=r.props,o=c.crop,a=c.zoom;return{x:(t+o.x)/a,y:(n+o.y)/a}},r.setNewZoom=function(e,t){if(r.state.cropSize&&r.props.onZoomChange){var n=r.getPointOnContainer(t),c=r.getPointOnMedia(n),o=Math.min(r.props.maxZoom,Math.max(e,r.props.minZoom)),a={x:c.x*o-n.x,y:c.y*o-n.y},i=r.props.restrictPosition?Ke(a,r.mediaSize,r.state.cropSize,o,r.props.rotation):a;r.props.onCropChange(i),r.props.onZoomChange(o)}},r.emitCropData=function(){if(r.state.cropSize){var e=Xe(r.props.restrictPosition?Ke(r.props.crop,r.mediaSize,r.state.cropSize,r.props.zoom,r.props.rotation):r.props.crop,r.mediaSize,r.state.cropSize,r.getAspect(),r.props.zoom,r.props.rotation,r.props.restrictPosition),t=e.croppedAreaPercentages,n=e.croppedAreaPixels;r.props.onCropComplete&&r.props.onCropComplete(t,n)}},r.recomputeCropPosition=function(){if(r.state.cropSize){var e=r.props.restrictPosition?Ke(r.props.crop,r.mediaSize,r.state.cropSize,r.props.zoom,r.props.rotation):r.props.crop;r.props.onCropChange(e),r.emitCropData()}},r}return function(e,t){function r(){this.constructor=e}Ue(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}(t,e),t.prototype.componentDidMount=function(){window.addEventListener("resize",this.computeSizes),this.containerRef&&(this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.preventZoomSafari),this.containerRef.addEventListener("gesturechange",this.preventZoomSafari)),this.props.disableAutomaticStylesInjection||(this.styleRef=document.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.styleRef.innerHTML=".reactEasyCrop_Container {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n overflow: hidden;\n user-select: none;\n touch-action: none;\n cursor: move;\n}\n\n.reactEasyCrop_Image,\n.reactEasyCrop_Video {\n max-width: 100%;\n max-height: 100%;\n margin: auto;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */\n}\n\n.reactEasyCrop_CropArea {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n border: 1px solid rgba(255, 255, 255, 0.5);\n box-sizing: border-box;\n box-shadow: 0 0 0 9999em;\n color: rgba(0, 0, 0, 0.5);\n overflow: hidden;\n}\n\n.reactEasyCrop_CropAreaRound {\n border-radius: 50%;\n}\n\n.reactEasyCrop_CropAreaGrid::before {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 0;\n bottom: 0;\n left: 33.33%;\n right: 33.33%;\n border-top: 0;\n border-bottom: 0;\n}\n\n.reactEasyCrop_CropAreaGrid::after {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 33.33%;\n bottom: 33.33%;\n left: 0;\n right: 0;\n border-left: 0;\n border-right: 0;\n}\n",document.head.appendChild(this.styleRef)),this.imageRef&&this.imageRef.complete&&this.onMediaLoad()},t.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.computeSizes),this.containerRef&&(this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.containerRef.removeEventListener("gesturechange",this.preventZoomSafari)),this.styleRef&&this.styleRef.remove(),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent()},t.prototype.componentDidUpdate=function(e){var t,r,n,c;e.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):e.aspect!==this.props.aspect?this.computeSizes():e.zoom!==this.props.zoom?this.recomputeCropPosition():(null===(t=e.cropSize)||void 0===t?void 0:t.height)===(null===(r=this.props.cropSize)||void 0===r?void 0:r.height)&&(null===(n=e.cropSize)||void 0===n?void 0:n.width)===(null===(c=this.props.cropSize)||void 0===c?void 0:c.width)||this.computeSizes(),e.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent())},t.prototype.getAspect=function(){var e=this.props,t=e.cropSize,r=e.aspect;return t?t.width/t.height:r},t.prototype.onPinchStart=function(e){var r=t.getTouchPoint(e.touches[0]),n=t.getTouchPoint(e.touches[1]);this.lastPinchDistance=Je(r,n),this.lastPinchRotation=Qe(r,n),this.onDragStart(nt(r,n))},t.prototype.onPinchMove=function(e){var r=this,n=t.getTouchPoint(e.touches[0]),c=t.getTouchPoint(e.touches[1]),o=nt(n,c);this.onDrag(o),this.rafPinchTimeout&&window.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=window.requestAnimationFrame((function(){var e=Je(n,c),t=r.props.zoom*(e/r.lastPinchDistance);r.setNewZoom(t,o),r.lastPinchDistance=e;var a=Qe(n,c),i=r.props.rotation+(a-r.lastPinchRotation);r.props.onRotationChange&&r.props.onRotationChange(i),r.lastPinchRotation=a}))},t.prototype.render=function(){var e=this,t=this.props,r=t.image,n=t.video,c=t.mediaProps,o=t.transform,a=t.crop,i=a.x,l=a.y,s=t.rotation,u=t.zoom,b=t.cropShape,m=t.showGrid,d=t.style,p=d.containerStyle,g=d.cropAreaStyle,h=d.mediaStyle,f=t.classes,O=f.containerClassName,v=f.cropAreaClassName,j=f.mediaClassName;return Ze.a.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(t){return e.containerRef=t},"data-testid":"container",style:p,className:at("reactEasyCrop_Container",O)},r?Ze.a.createElement("img",qe({alt:"",className:at("reactEasyCrop_Image",j)},c,{src:r,ref:function(t){return e.imageRef=t},style:qe(qe({},h),{transform:o||"translate("+i+"px, "+l+"px) rotate("+s+"deg) scale("+u+")"}),onLoad:this.onMediaLoad})):n&&Ze.a.createElement("video",qe({autoPlay:!0,loop:!0,muted:!0,className:at("reactEasyCrop_Video",j)},c,{src:n,ref:function(t){return e.videoRef=t},onLoadedMetadata:this.onMediaLoad,style:qe(qe({},h),{transform:o||"translate("+i+"px, "+l+"px) rotate("+s+"deg) scale("+u+")"}),controls:!1})),this.state.cropSize&&Ze.a.createElement("div",{style:qe(qe({},g),{width:this.state.cropSize.width,height:this.state.cropSize.height}),"data-testid":"cropper",className:at("reactEasyCrop_CropArea","round"===b&&"reactEasyCrop_CropAreaRound",m&&"reactEasyCrop_CropAreaGrid",v)}))},t.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:3,minZoom:1,cropShape:"rect",showGrid:!0,style:{},classes:{},mediaProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0},t.getMousePoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t.getTouchPoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t}(Ze.a.Component),lt=r(161),st=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ee.Path,{d:"M18.5 5.5h-13c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2v-9c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5h-13c-.3 0-.5-.2-.5-.5v-9c0-.3.2-.5.5-.5h13c.3 0 .5.2.5.5v9zM6.5 12H8v-2h2V8.5H6.5V12zm9.5 2h-2v1.5h3.5V12H16v2z"})),ut=r(306),bt=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ee.Path,{d:"M15.1 4.8l-3-2.5V4c-4.4 0-8 3.6-8 8 0 3.7 2.5 6.9 6 7.7.3.1.6.1 1 .2l.2-1.5c-.4 0-.7-.1-1.1-.2l-.1.2v-.2c-2.6-.8-4.5-3.3-4.5-6.2 0-3.6 2.9-6.5 6.5-6.5v1.8l3-2.5zM20 11c-.2-1.4-.7-2.7-1.6-3.8l-1.2.8c.7.9 1.1 2 1.3 3.1L20 11zm-1.5 1.8c-.1.5-.2 1.1-.4 1.6s-.5 1-.8 1.5l1.2.9c.4-.5.8-1.1 1-1.8s.5-1.3.5-2l-1.5-.2zm-5.6 5.6l.2 1.5c1.4-.2 2.7-.7 3.8-1.6l-.9-1.1c-.9.7-2 1.1-3.1 1.2z"})),mt=r(47),dt=r.n(mt),pt={position:"bottom right",isAlternate:!0};function gt(e){var t=e.aspectRatios,r=e.isDisabled,n=e.label,c=e.onClick,o=e.value;return Object(X.createElement)(me.MenuGroup,{label:n},t.map((function(e){var t=e.title,n=e.aspect;return Object(X.createElement)(me.MenuItem,{key:n,disabled:r,onClick:function(){c(n)},role:"menuitemradio",isSelected:n===o,icon:n===o?lt.a:void 0},t)})))}function ht(e){var t=e.toggleProps,r=e.isDisabled,n=e.onClick,c=e.value,o=e.defaultValue;return Object(X.createElement)(me.DropdownMenu,{icon:st,label:Object(Q.__)("Aspect Ratio"),popoverProps:pt,toggleProps:t,className:"wp-block-image__aspect-ratio"},(function(e){var t=e.onClose;return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(gt,{isDisabled:r,onClick:function(e){n(e),t()},value:c,aspectRatios:[{title:Object(Q.__)("Original"),aspect:o},{title:Object(Q.__)("Square"),aspect:1}]}),Object(X.createElement)(gt,{label:Object(Q.__)("Landscape"),isDisabled:r,onClick:function(e){n(e),t()},value:c,aspectRatios:[{title:Object(Q.__)("16:10"),aspect:1.6},{title:Object(Q.__)("16:9"),aspect:16/9},{title:Object(Q.__)("4:3"),aspect:4/3},{title:Object(Q.__)("3:2"),aspect:1.5}]}),Object(X.createElement)(gt,{label:Object(Q.__)("Portrait"),isDisabled:r,onClick:function(e){n(e),t()},value:c,aspectRatios:[{title:Object(Q.__)("10:16"),aspect:.625},{title:Object(Q.__)("9:16"),aspect:9/16},{title:Object(Q.__)("3:4"),aspect:3/4},{title:Object(Q.__)("2:3"),aspect:2/3}]}))}))}function ft(e){var t=e.id,r=e.url,n=e.setAttributes,c=e.naturalWidth,o=e.naturalHeight,a=e.width,i=e.height,l=e.clientWidth,s=e.setIsEditingImage,u=Object(de.useDispatch)("core/notices").createErrorNotice,b=Object(X.useState)(!1),m=Object(be.a)(b,2),d=m[0],p=m[1],g=Object(X.useState)(null),h=Object(be.a)(g,2),f=h[0],O=h[1],v=Object(X.useState)({x:0,y:0}),j=Object(be.a)(v,2),y=j[0],_=j[1],w=Object(X.useState)(100),k=Object(be.a)(w,2),E=k[0],C=k[1],x=Object(X.useState)(c/o),S=Object(be.a)(x,2),P=S[0],B=S[1],T=Object(X.useState)(0),z=Object(be.a)(T,2),N=z[0],M=z[1],R=Object(X.useState)(),V=Object(be.a)(R,2),A=V[0],H=V[1],L=a,I=i||l*o/c,D=c/o;return N%180==90&&(I=l*c/o,D=o/c),Object(X.createElement)(X.Fragment,null,Object(X.createElement)("div",{className:ne()("wp-block-image__crop-area",{"is-applying":d}),style:{width:L,height:I}},Object(X.createElement)(it,{image:A||r,disabled:d,minZoom:1,maxZoom:3,crop:y,zoom:E/100,aspect:P,onCropChange:_,onCropComplete:function(e){O(e)},onZoomChange:function(e){C(100*e)}}),d&&Object(X.createElement)(me.Spinner,null)),Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(me.ToolbarGroup,null,Object(X.createElement)(me.Dropdown,{contentClassName:"wp-block-image__zoom",popoverProps:pt,renderToggle:function(e){var t=e.isOpen,r=e.onToggle;return Object(X.createElement)(me.ToolbarButton,{icon:ut.a,label:Object(Q.__)("Zoom"),onClick:r,"aria-expanded":t,disabled:d})},renderContent:function(){return Object(X.createElement)(me.RangeControl,{min:100,max:300,value:Math.round(E),onChange:C})}}),Object(X.createElement)(me.ToolbarItem,null,(function(e){return Object(X.createElement)(ht,{toggleProps:e,isDisabled:d,onClick:B,value:P,defaultValue:c/o})}))),Object(X.createElement)(me.ToolbarGroup,null,Object(X.createElement)(me.ToolbarButton,{icon:bt,label:Object(Q.__)("Rotate"),onClick:function(){var e=(N+90)%360;if(0===e)return H(),M(e),B(1/P),void _({x:-y.y*D,y:y.x*D});var t=new window.Image;t.src=r,t.onload=function(t){var r=document.createElement("canvas"),n=0,c=0;e%180?(r.width=t.target.height,r.height=t.target.width):(r.width=t.target.width,r.height=t.target.height),90!==e&&180!==e||(n=r.width),270!==e&&180!==e||(c=r.height);var o=r.getContext("2d");o.translate(n,c),o.rotate(e*Math.PI/180),o.drawImage(t.target,0,0),r.toBlob((function(t){H(URL.createObjectURL(t)),M(e),B(1/P),_({x:-y.y*D,y:y.x*D})}))}},disabled:d})),Object(X.createElement)(me.ToolbarGroup,null,Object(X.createElement)(me.ToolbarButton,{onClick:function(){p(!0);var e={};(f.width<99.9||f.height<99.9)&&(e=f),N>0&&(e.rotation=N),e.src=r,dt()({path:"/wp/v2/media/".concat(t,"/edit"),method:"POST",data:e}).then((function(e){n({id:e.id,url:e.source_url,height:i&&a?a/P:void 0})})).catch((function(e){u(Object(Q.sprintf)(Object(Q.__)("Could not edit image. %s"),e.message),{id:"image-editing-error",type:"snackbar"})})).finally((function(){p(!1),s(!1)}))},disabled:d},Object(Q.__)("Apply")),Object(X.createElement)(me.ToolbarButton,{onClick:function(){return s(!1)}},Object(Q.__)("Cancel")))))}var Ot=["image"];function vt(e){var t=e.attributes,r=t.url,n=void 0===r?"":r,c=t.alt,o=t.caption,a=t.align,i=t.id,l=t.href,s=t.rel,u=t.linkClass,b=t.linkDestination,m=t.title,d=t.width,p=t.height,g=t.linkTarget,h=t.sizeSlug,f=e.setAttributes,O=e.isSelected,v=e.insertBlocksAfter,j=e.onReplace,y=e.onSelectImage,_=e.onSelectURL,w=e.onUploadError,k=e.containerRef,E=Object(X.useRef)(),C=Object(xe.usePrevious)(n),x=Object(de.useSelect)((function(e){var t=e("core").getMedia;return i&&O?t(i):null}),[i,O]),S=Object(de.useSelect)((function(e){var t=e("core/block-editor").getSettings;return Object(J.pick)(t(),["imageEditing","imageSizes","isRTL","maxWidth","mediaUpload"])})),P=S.imageEditing,B=S.imageSizes,T=S.isRTL,z=S.maxWidth,N=S.mediaUpload,M=Object(de.useDispatch)("core/block-editor").toggleSelection,R=Object(de.useDispatch)("core/notices"),V=R.createErrorNotice,A=R.createSuccessNotice,H=Object(xe.useViewportMatch)("medium"),L=Object(X.useState)(!1),I=Object(be.a)(L,2),D=I[0],G=I[1],F=Object(J.includes)(["wide","full"],a),U=Object(X.useState)({}),q=Object(be.a)(U,2),W=q[0],Z=W.naturalWidth,$=W.naturalHeight,ee=q[1],te=Object(X.useState)(!1),re=Object(be.a)(te,2),ne=re[0],ce=re[1],oe=Object(X.useState)(),ae=Object(be.a)(oe,2),ie=ae[0],le=ae[1],se=function(e,t){var r=Object(X.useState)(),n=Object(be.a)(r,2),c=n[0],o=n[1];function a(){o(e.current.clientWidth)}return Object(X.useEffect)(a,t),Object(X.useEffect)((function(){var t=e.current.ownerDocument.defaultView;return t.addEventListener("resize",a),function(){t.removeEventListener("resize",a)}}),[]),c}(k,[a]),ue=!F&&H,pe=Object(J.map)(Object(J.filter)(B,(function(e){var t=e.slug;return Object(J.get)(x,["media_details","sizes",t,"source_url"])})),(function(e){var t=e.name;return{value:e.slug,label:t}}));Object(X.useEffect)((function(){O||G(!1)}),[O]),Object(X.useEffect)((function(){wt(i,n)&&O&&!ie&&window.fetch(n).then((function(e){return e.blob()})).then((function(e){return le(e)}))}),[i,n,O,ie]),Object(X.useEffect)((function(){n&&!C&&O&&E.current.focus()}),[n,C]),Object(X.useEffect)((function(){O||ce(!1)}),[O]);var ge,he=i&&Z&&$&&P,fe=Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.BlockControls,null,!ne&&Object(X.createElement)(me.ToolbarGroup,null,Object(X.createElement)(K.__experimentalImageURLInputUI,{url:l||"",onChangeUrl:function(e){f(e)},linkDestination:b,mediaUrl:x&&x.source_url||n,mediaLink:x&&x.link,linkTarget:g,linkClass:u,rel:s})),he&&!ne&&Object(X.createElement)(me.ToolbarGroup,null,Object(X.createElement)(me.ToolbarButton,{onClick:function(){return ce(!0)},icon:Pe,label:Object(Q.__)("Crop")})),ie&&Object(X.createElement)(me.ToolbarGroup,null,Object(X.createElement)(me.ToolbarButton,{onClick:function(){N({filesList:[ie],onFileChange:function(e){var t=Object(be.a)(e,1)[0];y(t),Object(Ce.isBlobURL)(t.url)||(le(),A(Object(Q.__)("Image uploaded."),{type:"snackbar"}))},allowedTypes:Ot,onError:function(e){V(e,{type:"snackbar"})}})},icon:Be.a,label:Object(Q.__)("Upload external image")})),!ne&&Object(X.createElement)(K.MediaReplaceFlow,{mediaId:i,mediaURL:n,allowedTypes:Ot,accept:"image/*",onSelect:y,onSelectURL:_,onError:w})),Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Image settings")},Object(X.createElement)(me.TextareaControl,{label:Object(Q.__)("Alt text (alternative text)"),value:c,onChange:function(e){f({alt:e})},help:Object(X.createElement)(X.Fragment,null,Object(X.createElement)(me.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},Object(Q.__)("Describe the purpose of the image")),Object(Q.__)("Leave empty if the image is purely decorative."))}),Object(X.createElement)(K.__experimentalImageSizeControl,{onChangeImage:function(e){var t=Object(J.get)(x,["media_details","sizes",e,"source_url"]);if(!t)return null;f({url:t,width:void 0,height:void 0,sizeSlug:e})},onChange:function(e){return f(e)},slug:h,width:d,height:p,imageSizeOptions:pe,isResizable:ue,imageWidth:Z,imageHeight:$}))),Object(X.createElement)(K.InspectorAdvancedControls,null,Object(X.createElement)(me.TextControl,{label:Object(Q.__)("Title attribute"),value:m||"",onChange:function(e){f({title:e})},help:Object(X.createElement)(X.Fragment,null,Object(Q.__)("Describe the role of this image on the page."),Object(X.createElement)(me.ExternalLink,{href:"https://www.w3.org/TR/html52/dom.html#the-title-attribute"},Object(Q.__)("(Note: many devices and browsers do not display this text.)")))}))),Oe=function(e){var t=Object(Se.getPath)(e);if(t)return Object(J.last)(t.split("/"))}(n);ge=c||(Oe?Object(Q.sprintf)(Object(Q.__)("This image has an empty alt attribute; its file name is %s"),Oe):Object(Q.__)("This image has an empty alt attribute"));var ve,je,ye=Object(X.createElement)(X.Fragment,null,Object(X.createElement)("img",{src:n,alt:ge,onClick:function(){D&&G(!1)},onError:function(){var e;void 0!==(e=Ie({attributes:{url:n}}))&&j(e)},onLoad:function(e){ee(Object(J.pick)(e.target,["naturalWidth","naturalHeight"]))}}),Object(Ce.isBlobURL)(n)&&Object(X.createElement)(me.Spinner,null));if(se&&Z&&$){var _e=Z>se;ve=_e?se:Z,je=_e?se*($/Z):$}if(he&&ne)ye=Object(X.createElement)(ft,{id:i,url:n,setAttributes:f,naturalWidth:Z,naturalHeight:$,width:d,height:p,clientWidth:se,setIsEditingImage:ce});else if(ue&&ve){var we=d||ve,ke=p||je,Ee=Z/$,Te=Z<$?20:20*Ee,ze=$<Z?20:20/Ee,Ne=2.5*z,Me=!1,Re=!1;"center"===a?(Me=!0,Re=!0):T?"left"===a?Me=!0:Re=!0:"right"===a?Re=!0:Me=!0,ye=Object(X.createElement)(me.ResizableBox,{size:{width:d,height:p},showHandle:O,minWidth:Te,maxWidth:Ne,minHeight:ze,maxHeight:Ne/Ee,lockAspectRatio:!0,enable:{top:!1,right:Me,bottom:!0,left:Re},onResizeStart:function(){M(!1)},onResizeStop:function(e,t,r,n){M(!0),f({width:parseInt(we+n.width,10),height:parseInt(ke+n.height,10)})}},ye)}else ye=Object(X.createElement)("div",{style:{width:d,height:p}},ye);return Object(X.createElement)(X.Fragment,null,fe,ye,(!K.RichText.isEmpty(o)||O)&&Object(X.createElement)(K.RichText,{ref:E,tagName:"figcaption",placeholder:Object(Q.__)("Write caption…"),value:o,unstableOnFocus:function(){D||G(!0)},onChange:function(e){return f({caption:e})},isSelected:D,inlineToolbar:!0,__unstableOnSplitAtEnd:function(){return v(Object(Y.createBlock)("core/paragraph"))}}))}function jt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function yt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?jt(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var _t=function(e,t){return!e&&Object(Ce.isBlobURL)(t)},wt=function(e,t){return t&&!e&&!Object(Ce.isBlobURL)(t)};var kt=Object(me.withNotices)((function(e){var t=e.attributes,r=e.setAttributes,n=e.isSelected,c=e.className,o=e.noticeUI,a=e.insertBlocksAfter,i=e.noticeOperations,l=e.onReplace,s=t.url,u=void 0===s?"":s,b=t.alt,m=t.caption,d=t.align,p=t.id,g=t.width,h=t.height,f=t.sizeSlug,O=Object(X.useRef)();Object(X.useEffect)((function(){O.current=b}),[b]);var v=Object(X.useRef)();Object(X.useEffect)((function(){v.current=m}),[m]);var j=Object(X.useRef)(),y=Object(de.useSelect)((function(e){return(0,e("core/block-editor").getSettings)().mediaUpload}));function _(e){i.removeAllNotices(),i.createErrorNotice(e)}function w(e){var n,c,o,a,i;if(e&&e.url){var l,s,b,m=(l=e,(s=Object(J.pick)(l,["alt","id","link","caption"])).url=Object(J.get)(l,["sizes","large","url"])||Object(J.get)(l,["media_details","sizes","large","source_url"])||l.url,s);_t(p,u)&&O.current&&(m=Object(J.omit)(m,["alt"])),v.current&&!Object(J.get)(m,["caption"])&&(m=Object(J.omit)(m,["caption"])),b=e.id&&e.id===p?{url:u}:{width:void 0,height:void 0,sizeSlug:"large"};var d,g=t.linkDestination;if(!g)switch((null===(n=wp)||void 0===n||null===(c=n.media)||void 0===c||null===(o=c.view)||void 0===o||null===(a=o.settings)||void 0===a||null===(i=a.defaultProps)||void 0===i?void 0:i.link)||"none"){case"file":case"media":g="media";break;case"post":case"attachment":g="attachment";break;case"custom":g="custom";break;case"none":g="none"}switch(g){case"media":d=e.url;break;case"attachment":d=e.link}m.href=d,r(yt(yt(yt({},m),b),{},{linkDestination:g}))}else r({url:void 0,alt:void 0,id:void 0,title:void 0,caption:void 0})}function k(e){e!==u&&r({url:e,id:void 0,sizeSlug:"large"})}var E=_t(p,u);Object(X.useEffect)((function(){if(E){var e=Object(Ce.getBlobByURL)(u);e&&y({filesList:[e],onFileChange:function(e){w(Object(be.a)(e,1)[0])},allowedTypes:Ot,onError:function(e){i.createErrorNotice(e),r({src:void 0,id:void 0,url:void 0})}})}}),[]),Object(X.useEffect)((function(){if(E)return function(){Object(Ce.revokeBlobURL)(u)}}),[E]);var C=wt(p,u),x=Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(K.BlockAlignmentToolbar,{value:d,onChange:function(e){var t=["wide","full"].includes(e)?{width:void 0,height:void 0}:{};r(yt(yt({},t),{},{align:e}))}})),S=C?u:void 0,P=!!u&&Object(X.createElement)("img",{alt:Object(Q.__)("Edit image"),title:Object(Q.__)("Edit image"),className:"edit-image-preview",src:u}),B=Object(X.createElement)(K.MediaPlaceholder,{icon:Object(X.createElement)(K.BlockIcon,{icon:we}),onSelect:w,onSelectURL:k,notices:o,onError:_,accept:"image/*",allowedTypes:Ot,value:{id:p,src:S},mediaPreview:P,disableMediaButtons:u}),T=ne()(c,Object(Z.a)({"is-transient":Object(Ce.isBlobURL)(u),"is-resized":!!g||!!h,"is-focused":n},"size-".concat(f),f)),z=Object(K.useBlockProps)({ref:j,className:T});return Object(X.createElement)(X.Fragment,null,x,Object(X.createElement)("figure",z,u&&Object(X.createElement)(vt,{attributes:t,setAttributes:r,isSelected:n,insertBlocksAfter:a,onReplace:l,onSelectImage:w,onSelectURL:k,onUploadError:_,containerRef:j}),B))}));function Et(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ct(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Et(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Et(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function xt(e,t){var r=document.implementation.createHTMLDocument("").body;r.innerHTML=e;var n=r.firstElementChild;if(n&&"A"===n.nodeName)return n.getAttribute(t)||void 0}var St={img:{attributes:["src","alt","title"],classes:["alignleft","aligncenter","alignright","alignnone",/^wp-image-\d+$/]}},Pt={from:[{type:"raw",isMatch:function(e){return"FIGURE"===e.nodeName&&!!e.querySelector("img")},schema:function(e){var t=e.phrasingContentSchema;return{figure:{require:["img"],children:Ct(Ct({},St),{},{a:{attributes:["href","rel","target"],children:St},figcaption:{children:t}})}}},transform:function(e){var t=e.className+" "+e.querySelector("img").className,r=/(?:^|\s)align(left|center|right)(?:$|\s)/.exec(t),n=""===e.id?void 0:e.id,c=r?r[1]:void 0,o=/(?:^|\s)wp-image-(\d+)(?:$|\s)/.exec(t),a=o?Number(o[1]):void 0,i=e.querySelector("a"),l=i&&i.href?"custom":void 0,s=i&&i.href?i.href:void 0,u=i&&i.rel?i.rel:void 0,b=i&&i.className?i.className:void 0,m=Object(Y.getBlockAttributes)("core/image",e.outerHTML,{align:c,id:a,linkDestination:l,href:s,rel:u,linkClass:b,anchor:n});return Object(Y.createBlock)("core/image",m)}},{type:"files",isMatch:function(e){return 1===e.length&&0===e[0].type.indexOf("image/")},transform:function(e){var t=e[0];return Object(Y.createBlock)("core/image",{url:Object(Ce.createBlobURL)(t)})}},{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:function(e,t){var r=t.shortcode,n=document.implementation.createHTMLDocument("").body;n.innerHTML=r.content;for(var c=n.querySelector("img");c&&c.parentNode&&c.parentNode!==n;)c=c.parentNode;return c&&c.parentNode.removeChild(c),n.innerHTML.trim()}},href:{shortcode:function(e,t){return xt(t.shortcode.content,"href")}},rel:{shortcode:function(e,t){return xt(t.shortcode.content,"rel")}},linkClass:{shortcode:function(e,t){return xt(t.shortcode.content,"class")}},id:{type:"number",shortcode:function(e){var t=e.named.id;if(t)return parseInt(t.replace("attachment_",""),10)}},align:{type:"string",shortcode:function(e){var t=e.named.align;return(void 0===t?"alignnone":t).replace("align","")}}}}]},Bt={apiVersion:2,name:"core/image",category:"media",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"},title:{type:"string",source:"attribute",selector:"img",attribute:"title"},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"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0}},Tt=Bt.name,zt={title:Object(Q.__)("Image"),description:Object(Q.__)("Insert an image to make a visual statement."),icon:we,keywords:["img",Object(Q.__)("photo"),Object(Q.__)("picture")],example:{attributes:{sizeSlug:"large",url:"https://s.w.org/images/core/5.3/MtBlanc1.jpg",caption:Object(Q.__)("Mont Blanc appears—still, snowy, and serene.")}},styles:[{name:"default",label:Object(Q._x)("Default","block style"),isDefault:!0},{name:"rounded",label:Object(Q._x)("Rounded","block style")}],__experimentalLabel:function(e,t){if("accessibility"===t.context){var r=e.caption,n=e.alt;return e.url?n?n+(r?". "+r:""):r||"":Object(Q.__)("Empty")}},getEditWrapperProps:function(e){return{"data-align":e.align}},transforms:Pt,edit:kt,save:function(e){var t,r=e.attributes,n=r.url,c=r.alt,o=r.caption,a=r.align,i=r.href,l=r.rel,s=r.linkClass,u=r.width,b=r.height,m=r.id,d=r.linkTarget,p=r.sizeSlug,g=r.title,h=Object(J.isEmpty)(l)?void 0:l,f=ne()((t={},Object(Z.a)(t,"align".concat(a),a),Object(Z.a)(t,"size-".concat(p),p),Object(Z.a)(t,"is-resized",u||b),t)),O=Object(X.createElement)("img",{src:n,alt:c,className:m?"wp-image-".concat(m):null,width:u,height:b,title:g}),v=Object(X.createElement)(X.Fragment,null,i?Object(X.createElement)("a",{className:s,href:i,target:d,rel:h},O):O,!K.RichText.isEmpty(o)&&Object(X.createElement)(K.RichText.Content,{tagName:"figcaption",value:o}));return"left"===a||"right"===a||"center"===a?Object(X.createElement)("div",K.useBlockProps.save(),Object(X.createElement)("figure",{className:f},v)):Object(X.createElement)("figure",K.useBlockProps.save({className:f}),v)},deprecated:Ee},Nt=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ee.Path,{d:"M6.2 5.2v13.4l5.8-4.8 5.8 4.8V5.2z"}));function Mt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Rt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Mt(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Vt={className:!1,anchor:!0},At={align:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:""},level:{type:"number",default:2},placeholder:{type:"string"}},Ht=function(e){if(!e.customTextColor)return e;var t={color:{text:e.customTextColor}};return Rt(Rt({},Object(J.omit)(e,["customTextColor"])),{},{style:t})},Lt=[{supports:Vt,attributes:Rt(Rt({},At),{},{customTextColor:{type:"string"},textColor:{type:"string"}}),migrate:Ht,save:function(e){var t,r=e.attributes,n=r.align,c=r.content,o=r.customTextColor,a=r.level,i=r.textColor,l="h"+a,s=Object(K.getColorClassName)("color",i),u=ne()((t={},Object(Z.a)(t,s,s),Object(Z.a)(t,"has-text-color",i||o),Object(Z.a)(t,"has-text-align-".concat(n),n),t));return Object(X.createElement)(K.RichText.Content,{className:u||void 0,tagName:l,style:{color:s?void 0:o},value:c})}},{attributes:Rt(Rt({},At),{},{customTextColor:{type:"string"},textColor:{type:"string"}}),migrate:Ht,save:function(e){var t,r=e.attributes,n=r.align,c=r.content,o=r.customTextColor,a=r.level,i=r.textColor,l="h"+a,s=Object(K.getColorClassName)("color",i),u=ne()((t={},Object(Z.a)(t,s,s),Object(Z.a)(t,"has-text-align-".concat(n),n),t));return Object(X.createElement)(K.RichText.Content,{className:u||void 0,tagName:l,style:{color:s?void 0:o},value:c})},supports:Vt},{supports:Vt,attributes:Rt(Rt({},At),{},{customTextColor:{type:"string"},textColor:{type:"string"}}),migrate:Ht,save:function(e){var t=e.attributes,r=t.align,n=t.level,c=t.content,o=t.textColor,a=t.customTextColor,i="h"+n,l=Object(K.getColorClassName)("color",o),s=ne()(Object(Z.a)({},l,l));return Object(X.createElement)(K.RichText.Content,{className:s||void 0,tagName:i,style:{textAlign:r,color:l?void 0:a},value:c})}}],It=r(18);function Dt(e){var t=e.level,r=e.isPressed,n=void 0!==r&&r,c={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 c.hasOwnProperty(t)?Object(X.createElement)(me.SVG,{width:"24",height:"24",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",isPressed:n},Object(X.createElement)(me.Path,{d:c[t]})):null}var Gt=[1,2,3,4,5,6],Ft={className:"block-library-heading-level-dropdown",isAlternate:!0};function Ut(e){var t=e.selectedLevel,r=e.onChange;return Object(X.createElement)(me.Dropdown,{popoverProps:Ft,renderToggle:function(e){var r=e.onToggle,n=e.isOpen;return Object(X.createElement)(me.ToolbarButton,{"aria-expanded":n,"aria-haspopup":"true",icon:Object(X.createElement)(Dt,{level:t}),label:Object(Q.__)("Change heading level"),onClick:r,onKeyDown:function(e){n||e.keyCode!==It.DOWN||(e.preventDefault(),e.stopPropagation(),r())},showTooltip:!0})},renderContent:function(){return Object(X.createElement)(me.Toolbar,{className:"block-library-heading-level-toolbar",label:Object(Q.__)("Change heading level")},Object(X.createElement)(me.ToolbarGroup,{isCollapsed:!1,controls:Gt.map((function(e){var n=e===t;return{icon:Object(X.createElement)(Dt,{level:e,isPressed:n}),title:Object(Q.sprintf)(Object(Q.__)("Heading %d"),e),isActive:n,onClick:function(){r(e)}}}))}))}})}function qt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Wt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qt(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Zt=function(e){var t=e.attributes,r=e.setAttributes,n=e.mergeBlocks,c=e.onReplace,o=e.mergedStyle,a=t.align,i=t.content,l=t.level,s=t.placeholder,u="h"+l,b=Object(K.useBlockProps)({className:ne()(Object(Z.a)({},"has-text-align-".concat(a),a)),style:o});return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(me.ToolbarGroup,null,Object(X.createElement)(Ut,{selectedLevel:l,onChange:function(e){return r({level:e})}})),Object(X.createElement)(K.AlignmentToolbar,{value:a,onChange:function(e){r({align:e})}})),Object(X.createElement)(K.RichText,Object(ue.a)({identifier:"content",tagName:u,value:i,onChange:function(e){return r({content:e})},onMerge:n,onSplit:function(e){return e?Object(Y.createBlock)("core/heading",Wt(Wt({},t),{},{content:e})):Object(Y.createBlock)("core/paragraph")},onReplace:c,onRemove:function(){return c([])},placeholder:s||Object(Q.__)("Write heading…"),textAlign:a},b)))};var $t={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:function(e){return e.map((function(e){var t=e.content,r=e.anchor;return Object(Y.createBlock)("core/heading",{content:t,anchor:r})}))}},{type:"raw",selector:"h1,h2,h3,h4,h5,h6",schema:function(e){var t={children:e.phrasingContentSchema,attributes:e.isPaste?[]:["style","id"]};return{h1:t,h2:t,h3:t,h4:t,h5:t,h6:t}},transform:function(e){var t,r=Object(Y.getBlockAttributes)("core/heading",e.outerHTML),n=(e.style||{}).textAlign;return r.level=(t=e.nodeName,Number(t.substr(1))),"left"!==n&&"center"!==n&&"right"!==n||(r.align=n),Object(Y.createBlock)("core/heading",r)}}].concat(Object(W.a)([1,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",isMultiBlock:!0,blocks:["core/paragraph"],transform:function(e){return e.map((function(e){var t=e.content,r=e.anchor;return Object(Y.createBlock)("core/paragraph",{content:t,anchor:r})}))}}]},Kt={apiVersion:2,name:"core/heading",category:"text",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"}},supports:{align:["wide","full"],anchor:!0,className:!1,color:{link:!0},fontSize:!0,lineHeight:!0,__experimentalSelector:{"core/heading/h1":"h1","core/heading/h2":"h2","core/heading/h3":"h3","core/heading/h4":"h4","core/heading/h5":"h5","core/heading/h6":"h6"},__unstablePasteTextInline:!0}},Yt=Kt.name,Jt={title:Object(Q.__)("Heading"),description:Object(Q.__)("Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content."),icon:Nt,keywords:[Object(Q.__)("title"),Object(Q.__)("subtitle")],example:{attributes:{content:Object(Q.__)("Code is Poetry"),level:2}},__experimentalLabel:function(e,t){if("accessibility"===t.context){var r=e.content,n=e.level;return Object(J.isEmpty)(r)?Object(Q.sprintf)(Object(Q.__)("Level %s. Empty."),n):Object(Q.sprintf)(Object(Q.__)("Level %1$s. %2$s"),n,r)}},transforms:$t,deprecated:Lt,merge:function(e,t){return{content:(e.content||"")+(t.content||"")}},edit:Zt,save:function(e){var t=e.attributes,r=t.align,n=t.content,c="h"+t.level,o=ne()(Object(Z.a)({},"has-text-align-".concat(r),r));return Object(X.createElement)(c,K.useBlockProps.save({className:o}),Object(X.createElement)(K.RichText.Content,{value:n}))}},Qt=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M13 6v6h5.2v4c0 .8-.2 1.4-.5 1.7-.6.6-1.6.6-2.5.5h-.3v1.5h.5c1 0 2.3-.1 3.3-1 .6-.6 1-1.6 1-2.8V6H13zm-9 6h5.2v4c0 .8-.2 1.4-.5 1.7-.6.6-1.6.6-2.5.5h-.3v1.5h.5c1 0 2.3-.1 3.3-1 .6-.6 1-1.6 1-2.8V6H4v6z"}));function Xt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function er(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Xt(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var tr={value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"cite",default:""},align:{type:"string"}},rr=[{attributes:tr,save:function(e){var t=e.attributes,r=t.align,n=t.value,c=t.citation;return Object(X.createElement)("blockquote",{style:{textAlign:r||null}},Object(X.createElement)(K.RichText.Content,{multiline:!0,value:n}),!K.RichText.isEmpty(c)&&Object(X.createElement)(K.RichText.Content,{tagName:"cite",value:c}))}},{attributes:er(er({},tr),{},{style:{type:"number",default:1}}),migrate:function(e){return 2===e.style?er(er({},Object(J.omit)(e,["style"])),{},{className:e.className?e.className+" is-style-large":"is-style-large"}):e},save:function(e){var t=e.attributes,r=t.align,n=t.value,c=t.citation,o=t.style;return Object(X.createElement)("blockquote",{className:2===o?"is-large":"",style:{textAlign:r||null}},Object(X.createElement)(K.RichText.Content,{multiline:!0,value:n}),!K.RichText.isEmpty(c)&&Object(X.createElement)(K.RichText.Content,{tagName:"cite",value:c}))}},{attributes:er(er({},tr),{},{citation:{type:"string",source:"html",selector:"footer",default:""},style:{type:"number",default:1}}),save:function(e){var t=e.attributes,r=t.align,n=t.value,c=t.citation,o=t.style;return Object(X.createElement)("blockquote",{className:"blocks-quote-style-".concat(o),style:{textAlign:r||null}},Object(X.createElement)(K.RichText.Content,{multiline:!0,value:n}),!K.RichText.isEmpty(c)&&Object(X.createElement)(K.RichText.Content,{tagName:"footer",value:c}))}}];function nr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function cr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?nr(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var or=r(14),ar=r(25);function ir(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function lr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ir(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ir(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var sr={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:function(e){return Object(Y.createBlock)("core/quote",{value:Object(ar.toHTMLString)({value:Object(ar.join)(e.map((function(e){var t=e.content;return Object(ar.create)({html:t})})),"\u2028"),multilineTag:"p"}),anchor:e.anchor})}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.content,r=e.anchor;return Object(Y.createBlock)("core/quote",{value:"<p>".concat(t,"</p>"),anchor:r})}},{type:"block",blocks:["core/pullquote"],transform:function(e){var t=e.value,r=e.citation,n=e.anchor;return Object(Y.createBlock)("core/quote",{value:t,citation:r,anchor:n})}},{type:"prefix",prefix:">",transform:function(e){return Object(Y.createBlock)("core/quote",{value:"<p>".concat(e,"</p>")})}},{type:"raw",isMatch:function(e){var t,r=(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(r)},schema:function(e){var t=e.phrasingContentSchema;return{blockquote:{children:{p:{children:t},cite:{children:t}}}}}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.value,r=e.citation,n=[];return t&&"<p></p>"!==t&&n.push.apply(n,Object(W.a)(Object(ar.split)(Object(ar.create)({html:t,multilineTag:"p"}),"\u2028").map((function(e){return Object(Y.createBlock)("core/paragraph",{content:Object(ar.toHTMLString)({value:e})})})))),r&&"<p></p>"!==r&&n.push(Object(Y.createBlock)("core/paragraph",{content:r})),0===n.length?Object(Y.createBlock)("core/paragraph",{content:""}):n}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.value,r=e.citation,n=Object(or.a)(e,["value","citation"]);if("<p></p>"===t)return Object(Y.createBlock)("core/heading",{content:r});var c=Object(ar.split)(Object(ar.create)({html:t,multilineTag:"p"}),"\u2028"),o=Object(Y.createBlock)("core/heading",{content:Object(ar.toHTMLString)({value:c[0]})});if(!r&&1===c.length)return o;var a=c.slice(1);return[o,Object(Y.createBlock)("core/quote",lr(lr({},n),{},{citation:r,value:Object(ar.toHTMLString)({value:a.length?Object(ar.join)(c.slice(1),"\u2028"):Object(ar.create)(),multilineTag:"p"})}))]}},{type:"block",blocks:["core/pullquote"],transform:function(e){var t=e.value,r=e.citation,n=e.anchor;return Object(Y.createBlock)("core/pullquote",{value:t,citation:r,anchor:n})}}]};function ur(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function br(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ur(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ur(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var mr={apiVersion:2,name:"core/quote",category:"text",attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"cite",default:""},align:{type:"string"}},supports:{anchor:!0}},dr=mr.name,pr={title:Object(Q.__)("Quote"),description:Object(Q.__)('Give quoted text visual emphasis. "In quoting others, we cite ourselves." — Julio Cortázar'),icon:Qt,keywords:[Object(Q.__)("blockquote"),Object(Q.__)("cite")],example:{attributes:{value:"<p>"+Object(Q.__)("In quoting others, we cite ourselves.")+"</p>",citation:"Julio Cortázar",className:"is-style-large"}},styles:[{name:"default",label:Object(Q._x)("Default","block style"),isDefault:!0},{name:"large",label:Object(Q._x)("Large","block style")}],transforms:sr,edit:function(e){var t=e.attributes,r=e.setAttributes,n=e.isSelected,c=e.mergeBlocks,o=e.onReplace,a=e.className,i=e.insertBlocksAfter,l=t.align,s=t.value,u=t.citation,b=Object(K.useBlockProps)({className:ne()(a,Object(Z.a)({},"has-text-align-".concat(l),l))});return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(K.AlignmentToolbar,{value:l,onChange:function(e){r({align:e})}})),Object(X.createElement)(me.BlockQuotation,b,Object(X.createElement)(K.RichText,{identifier:"value",multiline:!0,value:s,onChange:function(e){return r({value:e})},onMerge:c,onRemove:function(e){var t=!u||0===u.length;!e&&t&&o([])},placeholder:Object(Q.__)("Write quote…"),onReplace:o,onSplit:function(e){return Object(Y.createBlock)("core/quote",cr(cr({},t),{},{value:e}))},__unstableOnSplitMiddle:function(){return Object(Y.createBlock)("core/paragraph")},textAlign:l}),(!K.RichText.isEmpty(u)||n)&&Object(X.createElement)(K.RichText,{identifier:"citation",value:u,onChange:function(e){return r({citation:e})},__unstableMobileNoFocusOnMount:!0,placeholder:Object(Q.__)("Write citation…"),className:"wp-block-quote__citation",textAlign:l,__unstableOnSplitAtEnd:function(){return i(Object(Y.createBlock)("core/paragraph"))}})))},save:function(e){var t=e.attributes,r=t.align,n=t.value,c=t.citation,o=ne()(Object(Z.a)({},"has-text-align-".concat(r),r));return Object(X.createElement)("blockquote",K.useBlockProps.save({className:o}),Object(X.createElement)(K.RichText.Content,{multiline:!0,value:n}),!K.RichText.isEmpty(c)&&Object(X.createElement)(K.RichText.Content,{tagName:"cite",value:c}))},merge:function(e,t){var r=t.value,n=t.citation;return n||(n=e.citation),br(br({},e),{},r&&"<p></p>"!==r?{value:e.value+r,citation:n}:{citation:n})},deprecated:rr},gr=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8h-1.5zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zM4.5 4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1V12l-2.3-1.7c-.3-.2-.6-.2-.9 0l-2.9 2.1L8 11.3c-.2-.1-.5-.1-.7 0l-2.9 1.5V4.6zm0 11.8v-1.8l3.2-1.7 2.4 1.2c.2.1.5.1.8-.1l2.8-2 2.8 2v2.5c0 .1-.1.1-.1.1H4.6c0-.1-.1-.2-.1-.2z"}));function hr(e){return Math.min(3,e.images.length)}var fr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"large",r=Object(J.pick)(e,["alt","id","link","caption"]);r.url=Object(J.get)(e,["sizes",t,"url"])||Object(J.get)(e,["media_details","sizes",t,"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&&(r.fullUrl=n),r};function Or(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function vr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Or(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Or(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var jr=[{attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},fullUrl:{type:"string",source:"attribute",selector:"img",attribute:"data-full-url"},link:{type:"string",source:"attribute",selector:"img",attribute:"data-link"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},id:{type:"string",source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},columns:{type:"number",minimum:1,maximum:8},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string"},sizeSlug:{type:"string",default:"large"}},save:function(e){var t=e.attributes,r=t.images,n=t.columns,c=void 0===n?hr(t):n,o=t.imageCrop,a=t.caption,i=t.linkTo;return Object(X.createElement)("figure",{className:"columns-".concat(c," ").concat(o?"is-cropped":"")},Object(X.createElement)("ul",{className:"blocks-gallery-grid"},r.map((function(e){var t;switch(i){case"file":t=e.fullUrl||e.url;break;case"post":t=e.link}var r=Object(X.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(X.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(X.createElement)("figure",null,t?Object(X.createElement)("a",{href:t},r):r,!K.RichText.isEmpty(e.caption)&&Object(X.createElement)(K.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))}))),!K.RichText.isEmpty(a)&&Object(X.createElement)(K.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:a}))}},{attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},fullUrl:{type:"string",source:"attribute",selector:"img",attribute:"data-full-url"},link:{type:"string",source:"attribute",selector:"img",attribute:"data-link"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},id:{type:"string",source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},columns:{type:"number",minimum:1,maximum:8},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"},sizeSlug:{type:"string",default:"large"}},supports:{align:!0},isEligible:function(e){var t=e.linkTo;return!t||"attachment"===t||"media"===t},migrate:function(e){var t=e.linkTo;return e.linkTo?"attachment"===e.linkTo?t="post":"media"===e.linkTo&&(t="file"):t="none",vr(vr({},e),{},{linkTo:t})},save:function(e){var t=e.attributes,r=t.images,n=t.columns,c=void 0===n?hr(t):n,o=t.imageCrop,a=t.caption,i=t.linkTo;return Object(X.createElement)("figure",{className:"columns-".concat(c," ").concat(o?"is-cropped":"")},Object(X.createElement)("ul",{className:"blocks-gallery-grid"},r.map((function(e){var t;switch(i){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}var r=Object(X.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(X.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(X.createElement)("figure",null,t?Object(X.createElement)("a",{href:t},r):r,!K.RichText.isEmpty(e.caption)&&Object(X.createElement)(K.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))}))),!K.RichText.isEmpty(a)&&Object(X.createElement)(K.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:a}))}},{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"}},supports:{align:!0},isEligible:function(e){var t=e.ids;return t&&t.some((function(e){return"string"==typeof e}))},migrate:function(e){return vr(vr({},e),{},{ids:Object(J.map)(e.ids,(function(e){var t=parseInt(e,10);return Number.isInteger(t)?t:null}))})},save:function(e){var t=e.attributes,r=t.images,n=t.columns,c=void 0===n?hr(t):n,o=t.imageCrop,a=t.caption,i=t.linkTo;return Object(X.createElement)("figure",{className:"columns-".concat(c," ").concat(o?"is-cropped":"")},Object(X.createElement)("ul",{className:"blocks-gallery-grid"},r.map((function(e){var t;switch(i){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}var r=Object(X.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(X.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(X.createElement)("figure",null,t?Object(X.createElement)("a",{href:t},r):r,!K.RichText.isEmpty(e.caption)&&Object(X.createElement)(K.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))}))),!K.RichText.isEmpty(a)&&Object(X.createElement)(K.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:a}))}},{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"}},supports:{align:!0},save:function(e){var t=e.attributes,r=t.images,n=t.columns,c=void 0===n?hr(t):n,o=t.imageCrop,a=t.linkTo;return Object(X.createElement)("ul",{className:"columns-".concat(c," ").concat(o?"is-cropped":"")},r.map((function(e){var t;switch(a){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}var r=Object(X.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(X.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(X.createElement)("figure",null,t?Object(X.createElement)("a",{href:t},r):r,e.caption&&e.caption.length>0&&Object(X.createElement)(K.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,r=e.ids;return t&&t.length>0&&(!r&&t||r&&t&&r.length!==t.length||Object(J.some)(t,(function(e,t){return!e&&null!==r[t]||parseInt(e,10)!==r[t]})))},migrate:function(e){return vr(vr({},e),{},{ids:Object(J.map)(e.images,(function(e){var t=e.id;return t?parseInt(t,10):null}))})},supports:{align:!0},save:function(e){var t=e.attributes,r=t.images,n=t.columns,c=void 0===n?hr(t):n,o=t.imageCrop,a=t.linkTo;return Object(X.createElement)("ul",{className:"columns-".concat(c," ").concat(o?"is-cropped":"")},r.map((function(e){var t;switch(a){case"media":t=e.url;break;case"attachment":t=e.link}var r=Object(X.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(X.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(X.createElement)("figure",null,t?Object(X.createElement)("a",{href:t},r):r,e.caption&&e.caption.length>0&&Object(X.createElement)(K.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"}},supports:{align:!0},save:function(e){var t=e.attributes,r=t.images,n=t.columns,c=void 0===n?hr(t):n,o=t.align,a=t.imageCrop,i=t.linkTo,l=ne()("columns-".concat(c),{alignnone:"none"===o,"is-cropped":a});return Object(X.createElement)("div",{className:l},r.map((function(e){var t;switch(i){case"media":t=e.url;break;case"attachment":t=e.link}var r=Object(X.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id});return Object(X.createElement)("figure",{key:e.id||e.url,className:"blocks-gallery-image"},t?Object(X.createElement)("a",{href:t},r):r)})))}}],yr=r(101),_r=Object(X.createElement)(K.BlockIcon,{icon:gr}),wr=r(21),kr=r(22),Er=r(16),Cr=r(23),xr=r(24),Sr=r(19),Pr=r(215),Br=r(214),Tr=r(274),zr=r(159);function Nr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Object(Sr.a)(e);if(t){var c=Object(Sr.a)(this).constructor;r=Reflect.construct(n,arguments,c)}else r=n.apply(this,arguments);return Object(xr.a)(this,r)}}var Mr=function(e){Object(Cr.a)(r,e);var t=Nr(r);function r(){var e;return Object(wr.a)(this,r),(e=t.apply(this,arguments)).onSelectImage=e.onSelectImage.bind(Object(Er.a)(e)),e.onSelectCaption=e.onSelectCaption.bind(Object(Er.a)(e)),e.onRemoveImage=e.onRemoveImage.bind(Object(Er.a)(e)),e.bindContainer=e.bindContainer.bind(Object(Er.a)(e)),e.onEdit=e.onEdit.bind(Object(Er.a)(e)),e.onSelectImageFromLibrary=e.onSelectImageFromLibrary.bind(Object(Er.a)(e)),e.onSelectCustomURL=e.onSelectCustomURL.bind(Object(Er.a)(e)),e.state={captionSelected:!1,isEditing:!1},e}return Object(kr.a)(r,[{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!==[It.BACKSPACE,It.DELETE].indexOf(e.keyCode)&&(e.stopPropagation(),e.preventDefault(),this.props.onRemove())}},{key:"onEdit",value:function(){this.setState({isEditing:!0})}},{key:"componentDidUpdate",value:function(e){var t=this.props,r=t.isSelected,n=t.image,c=t.url,o=t.__unstableMarkNextChangeAsNotPersistent;n&&!c&&(o(),this.props.setAttributes({url:n.source_url,alt:n.alt_text})),this.state.captionSelected&&!r&&e.isSelected&&this.setState({captionSelected:!1})}},{key:"deselectOnBlur",value:function(){this.props.onDeselect()}},{key:"onSelectImageFromLibrary",value:function(e){var t=this.props,r=t.setAttributes,n=t.id,c=t.url,o=t.alt,a=t.caption,i=t.sizeSlug;if(e&&e.url){var l=fr(e,i);(function(e,t){return!e&&Object(Ce.isBlobURL)(t)})(n,c)&&o&&(l=Object(J.omit)(l,["alt"])),a&&!Object(J.get)(l,["caption"])&&(l=Object(J.omit)(l,["caption"])),r(l),this.setState({isEditing:!1})}}},{key:"onSelectCustomURL",value:function(e){var t=this.props,r=t.setAttributes;e!==t.url&&(r({url:e,id:void 0}),this.setState({isEditing:!1}))}},{key:"render",value:function(){var e,t=this.props,r=t.url,n=t.alt,c=t.id,o=t.linkTo,a=t.link,i=t.isFirstItem,l=t.isLastItem,s=t.isSelected,u=t.caption,b=t.onRemove,m=t.onMoveForward,d=t.onMoveBackward,p=t.setAttributes,g=t["aria-label"],h=this.state.isEditing;switch(o){case"file":e=r;break;case"post":e=a}var f=Object(X.createElement)(X.Fragment,null,Object(X.createElement)("img",{src:r,alt:n,"data-id":c,onClick:this.onSelectImage,onFocus:this.onSelectImage,onKeyDown:this.onRemoveImage,tabIndex:"0","aria-label":g,ref:this.bindContainer}),Object(Ce.isBlobURL)(r)&&Object(X.createElement)(me.Spinner,null)),O=ne()({"is-selected":s,"is-transient":Object(Ce.isBlobURL)(r)});return Object(X.createElement)("figure",{className:O},!h&&(e?Object(X.createElement)("a",{href:e},f):f),h&&Object(X.createElement)(K.MediaPlaceholder,{labels:{title:Object(Q.__)("Edit gallery image")},icon:we,onSelect:this.onSelectImageFromLibrary,onSelectURL:this.onSelectCustomURL,accept:"image/*",allowedTypes:["image"],value:{id:c,src:r}}),Object(X.createElement)(me.ButtonGroup,{className:"block-library-gallery-item__inline-menu is-left"},Object(X.createElement)(me.Button,{icon:Pr.a,onClick:i?void 0:d,label:Object(Q.__)("Move image backward"),"aria-disabled":i,disabled:!s}),Object(X.createElement)(me.Button,{icon:Br.a,onClick:l?void 0:m,label:Object(Q.__)("Move image forward"),"aria-disabled":l,disabled:!s})),Object(X.createElement)(me.ButtonGroup,{className:"block-library-gallery-item__inline-menu is-right"},Object(X.createElement)(me.Button,{icon:Tr.a,onClick:this.onEdit,label:Object(Q.__)("Replace image"),disabled:!s}),Object(X.createElement)(me.Button,{icon:zr.a,onClick:b,label:Object(Q.__)("Remove image"),disabled:!s})),!h&&(s||u)&&Object(X.createElement)(K.RichText,{tagName:"figcaption",placeholder:s?Object(Q.__)("Write caption…"):null,value:u,isSelected:this.state.captionSelected,onChange:function(e){return p({caption:e})},unstableOnFocus:this.onSelectCaption,inlineToolbar:!0}))}}]),r}(X.Component),Rr=Object(xe.compose)([Object(de.withSelect)((function(e,t){var r=e("core").getMedia,n=t.id;return{image:n?r(parseInt(n,10)):null}})),Object(de.withDispatch)((function(e){return{__unstableMarkNextChangeAsNotPersistent:e("core/block-editor").__unstableMarkNextChangeAsNotPersistent}}))])(Mr);function Vr(e){var t=e.isHidden,r=Object(or.a)(e,["isHidden"]);return t?Object(X.createElement)(me.VisuallyHidden,Object(ue.a)({as:K.RichText},r)):Object(X.createElement)(K.RichText,r)}var Ar=function(e){var t,r=e.attributes,n=e.className,c=e.isSelected,o=e.setAttributes,a=e.selectedImage,i=e.mediaPlaceholder,l=e.onMoveBackward,s=e.onMoveForward,u=e.onRemoveImage,b=e.onSelectImage,m=e.onDeselectImage,d=e.onSetImageAttributes,p=e.onFocusGalleryCaption,g=e.insertBlocksAfter,h=r.align,f=r.columns,O=void 0===f?hr(r):f,v=r.caption,j=r.imageCrop,y=r.images;return Object(X.createElement)("figure",{className:ne()(n,(t={},Object(Z.a)(t,"align".concat(h),h),Object(Z.a)(t,"columns-".concat(O),O),Object(Z.a)(t,"is-cropped",j),t))},Object(X.createElement)("ul",{className:"blocks-gallery-grid"},y.map((function(e,t){var n=Object(Q.sprintf)(Object(Q.__)("image %1$d of %2$d in gallery"),t+1,y.length);return Object(X.createElement)("li",{className:"blocks-gallery-item",key:e.id||e.url},Object(X.createElement)(Rr,{url:e.url,alt:e.alt,id:e.id,isFirstItem:0===t,isLastItem:t+1===y.length,isSelected:c&&a===t,onMoveBackward:l(t),onMoveForward:s(t),onRemove:u(t),onSelect:b(t),onDeselect:m(t),setAttributes:function(e){return d(t,e)},caption:e.caption,"aria-label":n,sizeSlug:r.sizeSlug}))}))),i,Object(X.createElement)(Vr,{isHidden:!c&&K.RichText.isEmpty(v),tagName:"figcaption",className:"blocks-gallery-caption",placeholder:Object(Q.__)("Write gallery caption…"),value:v,unstableOnFocus:p,onChange:function(e){return o({caption:e})},inlineToolbar:!0,__unstableOnSplitAtEnd:function(){return g(Object(Y.createBlock)("core/paragraph"))}}))};function Hr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Lr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Hr(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Ir=[{value:"post",label:Object(Q.__)("Attachment Page")},{value:"file",label:Object(Q.__)("Media File")},{value:"none",label:Object(Q.__)("None")}],Dr=["image"],Gr=X.Platform.select({web:Object(Q.__)("Drag images, upload new ones or select files from your library."),native:Object(Q.__)("ADD MEDIA")}),Fr=X.Platform.select({web:{},native:{type:"stepper"}});var Ur=Object(xe.compose)([Object(de.withSelect)((function(e,t){var r=t.attributes.ids,n=t.isSelected,c=e("core").getMedia,o=(0,e("core/block-editor").getSettings)(),a=o.imageSizes,i=o.mediaUpload,l={};return n&&(l=Object(J.reduce)(r,(function(e,t){if(!t)return e;var r=c(t),n=Object(J.reduce)(a,(function(e,t){var n=Object(J.get)(r,["sizes",t.slug,"url"]),c=Object(J.get)(r,["media_details","sizes",t.slug,"source_url"]);return Lr(Lr({},e),{},Object(Z.a)({},t.slug,n||c))}),{});return Lr(Lr({},e),{},Object(Z.a)({},parseInt(t,10),n))}),{})),{imageSizes:a,mediaUpload:i,resizedImages:l}})),me.withNotices,Object(yr.withViewportMatch)({isNarrow:"< small"})])((function(e){var t=e.attributes,r=e.className,n=e.isSelected,c=e.noticeUI,o=e.noticeOperations,a=e.mediaUpload,i=e.imageSizes,l=e.resizedImages,s=e.onFocus,u=t.columns,b=void 0===u?hr(t):u,m=t.imageCrop,d=t.images,p=t.linkTo,g=t.sizeSlug,h=Object(X.useState)(),f=Object(be.a)(h,2),O=f[0],v=f[1],j=Object(X.useState)(),y=Object(be.a)(j,2),_=y[0],w=y[1];function k(t){if(t.ids)throw new Error('The "ids" attribute should not be changed directly. It is managed automatically when "images" attribute changes');t.images&&(t=Lr(Lr({},t),{},{ids:Object(J.map)(t.images,(function(e){var t=e.id;return parseInt(t,10)}))})),e.setAttributes(t)}function E(e,t){var r=Object(W.a)(d);r.splice(t,1,d[e]),r.splice(e,1,d[t]),v(t),k({images:r})}function C(e){var t=Object(J.toString)(e.id),r=Object(J.find)(d,{id:t}),n=r?r.caption:e.caption;if(!_)return n;var c=Object(J.find)(_,{id:t});return c&&c.caption!==e.caption?e.caption:n}function x(e){w(e.map((function(e){return{id:Object(J.toString)(e.id),caption:e.caption}}))),k({images:e.map((function(e){return Lr(Lr({},fr(e,g)),{},{caption:C(e),id:Object(J.toString)(e.id)})})),columns:t.columns?Math.min(e.length,t.columns):t.columns})}Object(X.useEffect)((function(){if("web"===X.Platform.OS&&d&&d.length>0&&Object(J.every)(d,(function(e){var t=e.url;return Object(Ce.isBlobURL)(t)}))){var e=Object(J.map)(d,(function(e){var t=e.url;return Object(Ce.getBlobByURL)(t)}));Object(J.forEach)(d,(function(e){var t=e.url;return Object(Ce.revokeBlobURL)(t)})),a({filesList:e,onFileChange:x,allowedTypes:["image"]})}}),[]),Object(X.useEffect)((function(){n||v()}),[n]),Object(X.useEffect)((function(){var e,t,r,n,c,o;p||k({linkTo:(null===(e=window)||void 0===e||null===(t=e.wp)||void 0===t||null===(r=t.media)||void 0===r||null===(n=r.view)||void 0===n||null===(c=n.settings)||void 0===c||null===(o=c.defaultProps)||void 0===o?void 0:o.link)||"none"})}),[p]);var S=!!d.length,P=Object(X.createElement)(K.MediaPlaceholder,{addToGallery:S,isAppender:S,className:r,disableMediaButtons:S&&!n,icon:!S&&_r,labels:{title:!S&&Object(Q.__)("Gallery"),instructions:!S&&Gr},onSelect:x,accept:"image/*",allowedTypes:Dr,multiple:!0,value:d,onError:function(e){o.removeAllNotices(),o.createErrorNotice(e)},notices:S?void 0:c,onFocus:s});if(!S)return P;var B=Object(J.map)(Object(J.filter)(i,(function(e){var t=e.slug;return Object(J.some)(l,(function(e){return e[t]}))})),(function(e){var t=e.name;return{value:e.slug,label:t}})),T=S&&!Object(J.isEmpty)(B);return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Gallery settings")},d.length>1&&Object(X.createElement)(me.RangeControl,Object(ue.a)({label:Object(Q.__)("Columns"),value:b,onChange:function(e){k({columns:e})},min:1,max:Math.min(8,d.length)},Fr,{required:!0})),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Crop images"),checked:!!m,onChange:function(){k({imageCrop:!m})},help:function(e){return e?Object(Q.__)("Thumbnails are cropped to align."):Object(Q.__)("Thumbnails are not cropped.")}}),Object(X.createElement)(me.SelectControl,{label:Object(Q.__)("Link to"),value:p,onChange:function(e){k({linkTo:e})},options:Ir}),T&&Object(X.createElement)(me.SelectControl,{label:Object(Q.__)("Image size"),value:g,options:B,onChange:function(e){k({images:Object(J.map)(d,(function(t){if(!t.id)return t;var r=Object(J.get)(l,[parseInt(t.id,10),e]);return Lr(Lr({},t),r&&{url:r})})),newSizeSlug:e})}}))),c,Object(X.createElement)(Ar,Object(ue.a)({},e,{selectedImage:O,mediaPlaceholder:P,onMoveBackward:function(e){return function(){0!==e&&E(e,e-1)}},onMoveForward:function(e){return function(){e!==d.length-1&&E(e,e+1)}},onRemoveImage:function(e){return function(){var r=Object(J.filter)(d,(function(t,r){return e!==r}));v(),k({images:r,columns:t.columns?Math.min(r.length,t.columns):t.columns})}},onSelectImage:function(e){return function(){v(e)}},onDeselectImage:function(){return function(){v()}},onSetImageAttributes:function(e,t){d[e]&&k({images:[].concat(Object(W.a)(d.slice(0,e)),[Lr(Lr({},d[e]),t)],Object(W.a)(d.slice(e+1)))})},onFocusGalleryCaption:function(){v()}})))}));var qr=function(e){return e?e.split(",").map((function(e){return parseInt(e,10)})):[]},Wr={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:function(e){var t=e[0],r=t.align,n=t.sizeSlug;r=Object(J.every)(e,["align",r])?r:void 0,n=Object(J.every)(e,["sizeSlug",n])?n:void 0;var c=Object(J.filter)(e,(function(e){return e.url}));return Object(Y.createBlock)("core/gallery",{images:c.map((function(e){var t=e.id,r=e.url,n=e.alt,c=e.caption;return{id:Object(J.toString)(t),url:r,alt:n,caption:c}})),ids:c.map((function(e){var t=e.id;return parseInt(t,10)})),align:r,sizeSlug:n})}},{type:"shortcode",tag:"gallery",attributes:{images:{type:"array",shortcode:function(e){var t=e.named.ids;return qr(t).map((function(e){return{id:Object(J.toString)(e)}}))}},ids:{type:"array",shortcode:function(e){var t=e.named.ids;return qr(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;return void 0===t?"post":t}}},isMatch:function(e){return void 0!==e.named.ids}},{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(Y.createBlock)("core/gallery",{images:e.map((function(e){return fr({url:Object(Ce.createBlobURL)(e)})}))})}}],to:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.images,r=e.align,n=e.sizeSlug,c=e.ids;return t.length>0?t.map((function(e,t){var o=e.url,a=e.alt,i=e.caption;return Object(Y.createBlock)("core/image",{id:c[t],url:o,alt:a,caption:i,align:r,sizeSlug:n})})):Object(Y.createBlock)("core/image",{align:r})}}]},Zr={name:"core/gallery",category:"media",attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},fullUrl:{type:"string",source:"attribute",selector:"img",attribute:"data-full-url"},link:{type:"string",source:"attribute",selector:"img",attribute:"data-link"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},id:{type:"string",source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},columns:{type:"number",minimum:1,maximum:8},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string"},sizeSlug:{type:"string",default:"large"}},supports:{anchor:!0,align:!0}},$r=Zr.name,Kr={title:Object(Q.__)("Gallery"),description:Object(Q.__)("Display multiple images in a rich gallery."),icon:gr,keywords:[Object(Q.__)("images"),Object(Q.__)("photos")],example:{attributes:{columns:2,images:[{url:"https://s.w.org/images/core/5.3/Glacial_lakes%2C_Bhutan.jpg"},{url:"https://s.w.org/images/core/5.3/Sediment_off_the_Yucatan_Peninsula.jpg"}]}},transforms:Wr,edit:Ur,save:function(e){var t=e.attributes,r=t.images,n=t.columns,c=void 0===n?hr(t):n,o=t.imageCrop,a=t.caption,i=t.linkTo;return Object(X.createElement)("figure",{className:"columns-".concat(c," ").concat(o?"is-cropped":"")},Object(X.createElement)("ul",{className:"blocks-gallery-grid"},r.map((function(e){var t;switch(i){case"file":t=e.fullUrl||e.url;break;case"post":t=e.link}var r=Object(X.createElement)("img",{src:e.url,alt:""!==e.alt?e.alt:e.caption,"data-id":e.id,"data-full-url":e.fullUrl,"data-link":e.link,className:e.id?"wp-image-".concat(e.id):null});return Object(X.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(X.createElement)("figure",null,t?Object(X.createElement)("a",{href:t},r):r,!K.RichText.isEmpty(e.caption)&&Object(X.createElement)(K.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))}))),!K.RichText.isEmpty(a)&&Object(X.createElement)(K.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:a}))},deprecated:jr},Yr=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M19 6.2h-5.9l-.6-1.1c-.3-.7-1-1.1-1.8-1.1H5c-1.1 0-2 .9-2 2v11.8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8.2c0-1.1-.9-2-2-2zm.5 11.6c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h5.8c.2 0 .4.1.4.3l1 2H19c.3 0 .5.2.5.5v9.5zM8 12.8h8v-1.5H8v1.5zm0 3h8v-1.5H8v1.5z"})),Jr=r(87),Qr=r.n(Jr);var Xr={apiVersion:2,name:"core/archives",category:"widgets",attributes:{displayAsDropdown:{type:"boolean",default:!1},showPostCounts:{type:"boolean",default:!1}},supports:{align:!0,html:!1}},en=Xr.name,tn={title:Object(Q.__)("Archives"),description:Object(Q.__)("Display a monthly archive of your posts."),icon:Yr,example:{},edit:function(e){var t=e.attributes,r=e.setAttributes,n=t.showPostCounts,c=t.displayAsDropdown;return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Archives settings")},Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Display as dropdown"),checked:c,onChange:function(){return r({displayAsDropdown:!c})}}),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Show post counts"),checked:n,onChange:function(){return r({showPostCounts:!n})}}))),Object(X.createElement)("div",Object(K.useBlockProps)(),Object(X.createElement)(me.Disabled,null,Object(X.createElement)(Qr.a,{block:"core/archives",attributes:t}))))}},rn=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M17.7 4.3c-1.2 0-2.8 0-3.8 1-.6.6-.9 1.5-.9 2.6V14c-.6-.6-1.5-1-2.5-1C8.6 13 7 14.6 7 16.5S8.6 20 10.5 20c1.5 0 2.8-1 3.3-2.3.5-.8.7-1.8.7-2.5V7.9c0-.7.2-1.2.5-1.6.6-.6 1.8-.6 2.8-.6h.3V4.3h-.4z"})),nn=[{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"}},supports:{align:!0},save:function(e){var t=e.attributes,r=t.autoplay,n=t.caption,c=t.loop,o=t.preload,a=t.src;return Object(X.createElement)("figure",null,Object(X.createElement)("audio",{controls:"controls",src:a,autoPlay:r,loop:c,preload:o}),!K.RichText.isEmpty(n)&&Object(X.createElement)(K.RichText.Content,{tagName:"figcaption",value:n}))}}],cn=["audio"];var on=Object(me.withNotices)((function(e){var t=e.attributes,r=e.noticeOperations,n=e.setAttributes,c=e.onReplace,o=e.isSelected,a=e.noticeUI,i=e.insertBlocksAfter,l=t.id,s=t.autoplay,u=t.caption,b=t.loop,m=t.preload,d=t.src,p=Object(K.useBlockProps)(),g=Object(de.useSelect)((function(e){return(0,e("core/block-editor").getSettings)().mediaUpload}),[]);function h(e){return function(t){n(Object(Z.a)({},e,t))}}function f(e){if(e!==d){var t=Ie({attributes:{url:e}});if(void 0!==t)return void c(t);n({src:e,id:void 0})}}function O(e){r.removeAllNotices(),r.createErrorNotice(e)}function v(e){e&&e.url?n({src:e.url,id:e.id}):n({src:void 0,id:void 0})}return Object(X.useEffect)((function(){if(!l&&Object(Ce.isBlobURL)(d)){var e=Object(Ce.getBlobByURL)(d);e&&g({filesList:[e],onFileChange:function(e){var t=Object(be.a)(e,1)[0],r=t.id,c=t.url;n({id:r,src:c})},onError:function(e){n({src:void 0,id:void 0}),r.createErrorNotice(e)},allowedTypes:cn})}}),[]),d?Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(K.MediaReplaceFlow,{mediaId:l,mediaURL:d,allowedTypes:cn,accept:"audio/*",onSelect:v,onSelectURL:f,onError:O})),Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Audio settings")},Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Autoplay"),onChange:h("autoplay"),checked:s,help:function(e){return e?Object(Q.__)("Note: Autoplaying audio may cause usability issues for some visitors."):null}}),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Loop"),onChange:h("loop"),checked:b}),Object(X.createElement)(me.SelectControl,{label:Object(Q.__)("Preload"),value:m||"",onChange:function(e){return n({preload:e||void 0})},options:[{value:"",label:Object(Q.__)("Browser default")},{value:"auto",label:Object(Q.__)("Auto")},{value:"metadata",label:Object(Q.__)("Metadata")},{value:"none",label:Object(Q.__)("None")}]}))),Object(X.createElement)("figure",p,Object(X.createElement)(me.Disabled,null,Object(X.createElement)("audio",{controls:"controls",src:d})),(!K.RichText.isEmpty(u)||o)&&Object(X.createElement)(K.RichText,{tagName:"figcaption",placeholder:Object(Q.__)("Write caption…"),value:u,onChange:function(e){return n({caption:e})},inlineToolbar:!0,__unstableOnSplitAtEnd:function(){return i(Object(Y.createBlock)("core/paragraph"))}}))):Object(X.createElement)("div",p,Object(X.createElement)(K.MediaPlaceholder,{icon:Object(X.createElement)(K.BlockIcon,{icon:rn}),onSelect:v,onSelectURL:f,accept:"audio/*",allowedTypes:cn,value:t,notices:a,onError:O}))}));var an={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(Y.createBlock)("core/audio",{src:Object(Ce.createBlobURL)(t)})}},{type:"shortcode",tag:"audio",attributes:{src:{type:"string",shortcode:function(e){var t=e.named,r=t.src,n=t.mp3,c=t.m4a,o=t.ogg,a=t.wav,i=t.wma;return r||n||c||o||a||i}},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}}}}]},ln={apiVersion:2,name:"core/audio",category:"media",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"}},supports:{anchor:!0,align:!0}},sn=ln.name,un={title:Object(Q.__)("Audio"),description:Object(Q.__)("Embed a simple audio player."),keywords:[Object(Q.__)("music"),Object(Q.__)("sound"),Object(Q.__)("podcast"),Object(Q.__)("recording")],icon:rn,transforms:an,deprecated:nn,edit:on,save:function(e){var t=e.attributes,r=t.autoplay,n=t.caption,c=t.loop,o=t.preload,a=t.src;return a&&Object(X.createElement)("figure",K.useBlockProps.save(),Object(X.createElement)("audio",{controls:"controls",src:a,autoPlay:r,loop:c,preload:o}),!K.RichText.isEmpty(n)&&Object(X.createElement)(K.RichText.Content,{tagName:"figcaption",value:n}))}},bn=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M19 6.5H5c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7c0-1.1-.9-2-2-2zm.5 9c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v7zM8 13h8v-1.5H8V13z"})),mn={from:[{type:"block",isMultiBlock:!0,blocks:["core/button"],transform:function(e){return Object(Y.createBlock)("core/buttons",{},e.map((function(e){return Object(Y.createBlock)("core/button",e)})))}}]};function dn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function pn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?dn(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var gn=function(e){if(!e.customTextColor&&!e.customBackgroundColor&&!e.customGradient)return e;var t={color:{}};return e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),e.customGradient&&(t.color.gradient=e.customGradient),pn(pn({},Object(J.omit)(e,["customTextColor","customBackgroundColor","customGradient"])),{},{style:t})},hn=function(e){return gn(Object(J.omit)(pn(pn({},e),{},{customTextColor:e.textColor&&"#"===e.textColor[0]?e.textColor:void 0,customBackgroundColor:e.color&&"#"===e.color[0]?e.color:void 0}),["color","textColor"]))},fn={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"}},On=[{supports:{align:!0,alignWide:!1,color:{gradients:!0}},attributes:pn(pn({},fn),{},{linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"}}),save:function(e){var t=e.attributes,r=t.borderRadius,n=t.linkTarget,c=t.rel,o=t.text,a=t.title,i=t.url,l=ne()("wp-block-button__link",{"no-border-radius":0===r}),s={borderRadius:r?r+"px":void 0};return Object(X.createElement)(K.RichText.Content,{tagName:"a",className:l,href:i,title:a,style:s,value:o,target:n,rel:c})}},{supports:{align:!0,alignWide:!1},attributes:pn(pn({},fn),{},{linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},customGradient:{type:"string"},gradient:{type:"string"}}),isEligible:function(e){return!!e.customTextColor||!!e.customBackgroundColor||!!e.customGradient},migrate:gn,save:function(e){var t,r=e.attributes,n=r.backgroundColor,c=r.borderRadius,o=r.customBackgroundColor,a=r.customTextColor,i=r.customGradient,l=r.linkTarget,s=r.gradient,u=r.rel,b=r.text,m=r.textColor,d=r.title,p=r.url,g=Object(K.getColorClassName)("color",m),h=!i&&Object(K.getColorClassName)("background-color",n),f=Object(K.__experimentalGetGradientClass)(s),O=ne()("wp-block-button__link",(t={"has-text-color":m||a},Object(Z.a)(t,g,g),Object(Z.a)(t,"has-background",n||o||i||s),Object(Z.a)(t,h,h),Object(Z.a)(t,"no-border-radius",0===c),Object(Z.a)(t,f,f),t)),v={background:i||void 0,backgroundColor:h||i||s?void 0:o,color:g?void 0:a,borderRadius:c?c+"px":void 0};return Object(X.createElement)("div",null,Object(X.createElement)(K.RichText.Content,{tagName:"a",className:O,href:p,title:d,style:v,value:b,target:l,rel:u}))}},{attributes:pn(pn({},fn),{},{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()),gn(pn(pn({},e),{},{className:t||void 0,borderRadius:0}))},save:function(e){var t,r=e.attributes,n=r.backgroundColor,c=r.customBackgroundColor,o=r.customTextColor,a=r.linkTarget,i=r.rel,l=r.text,s=r.textColor,u=r.title,b=r.url,m=Object(K.getColorClassName)("color",s),d=Object(K.getColorClassName)("background-color",n),p=ne()("wp-block-button__link",(t={"has-text-color":s||o},Object(Z.a)(t,m,m),Object(Z.a)(t,"has-background",n||c),Object(Z.a)(t,d,d),t)),g={backgroundColor:d?void 0:c,color:m?void 0:o};return Object(X.createElement)("div",null,Object(X.createElement)(K.RichText.Content,{tagName:"a",className:p,href:b,title:u,style:g,value:l,target:a,rel:i}))}},{attributes:pn(pn({},fn),{},{align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"}}),migrate:hn,save:function(e){var t,r=e.attributes,n=r.url,c=r.text,o=r.title,a=r.backgroundColor,i=r.textColor,l=r.customBackgroundColor,s=r.customTextColor,u=Object(K.getColorClassName)("color",i),b=Object(K.getColorClassName)("background-color",a),m=ne()("wp-block-button__link",(t={"has-text-color":i||s},Object(Z.a)(t,u,u),Object(Z.a)(t,"has-background",a||l),Object(Z.a)(t,b,b),t)),d={backgroundColor:b?void 0:l,color:u?void 0:s};return Object(X.createElement)("div",null,Object(X.createElement)(K.RichText.Content,{tagName:"a",className:m,href:n,title:o,style:d,value:c}))}},{attributes:pn(pn({},fn),{},{color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}}),save:function(e){var t=e.attributes,r=t.url,n=t.text,c=t.title,o=t.align,a={backgroundColor:t.color,color:t.textColor};return Object(X.createElement)("div",{className:"align".concat(o)},Object(X.createElement)(K.RichText.Content,{tagName:"a",className:"wp-block-button__link",href:r,title:c,style:a,value:n}))},migrate:hn},{attributes:pn(pn({},fn),{},{color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}}),save:function(e){var t=e.attributes,r=t.url,n=t.text,c=t.title,o=t.align,a=t.color,i=t.textColor;return Object(X.createElement)("div",{className:"align".concat(o),style:{backgroundColor:a}},Object(X.createElement)(K.RichText.Content,{tagName:"a",href:r,title:c,style:{color:i},value:n}))},migrate:hn}],vn=r(186),jn=r(218);function yn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _n(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?yn(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var wn=[],kn="web"===X.Platform.OS;function En(e){return e.ownerDocument.defaultView.getComputedStyle(e)}var Cn=function e(t){if(!Object(J.isObject)(t))return t;var r=Object(J.pickBy)(Object(J.mapValues)(t,e),J.identity);return Object(J.isEqual)(r,{})?void 0:r};function xn(e){var t=e.settings,r=e.clientId,n=e.enableContrastChecking,c=void 0===n||n,o=Object(X.useState)(),a=Object(be.a)(o,2),i=a[0],l=a[1],s=Object(X.useState)(),u=Object(be.a)(s,2),b=u[0],m=u[1],d=kn?Object(Q.__)("Color settings"):Object(Q.__)("Color Settings");return Object(X.useEffect)((function(){if(!kn||c){var e=function(e){return document.getElementById("block-"+e)}(r);if(e){m(En(e).color);for(var t=e,n=En(t).backgroundColor;"rgba(0, 0, 0, 0)"===n&&t.parentNode&&t.parentNode.nodeType===t.parentNode.ELEMENT_NODE;)n=En(t=t.parentNode).backgroundColor;l(n)}}})),Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(K.__experimentalPanelColorGradientSettings,{title:d,initialOpen:!1,settings:t},kn&&c&&Object(X.createElement)(K.ContrastChecker,{backgroundColor:i,textColor:b})))}var Sn=function(e){var t,r,n,c=e.attributes,o=Object(K.__experimentalUseEditorFeature)("color.palette")||wn,a=Object(K.__experimentalUseEditorFeature)("color.gradients")||wn,i=Object(X.useRef)(c);Object(X.useEffect)((function(){i.current=c}),[c]);var l,s,u=c.style,b=c.textColor,m=c.backgroundColor,d=c.gradient;l=d?Object(K.getGradientValueBySlug)(a,d):null==u||null===(s=u.color)||void 0===s?void 0:s.gradient;var p=function(t){return function(r){var n,c,a=Object(K.getColorObjectByColorValue)(o,r),l=t+"Color",s=_n(_n({},i.current.style),{},{color:_n(_n({},null===(n=i.current)||void 0===n||null===(c=n.style)||void 0===c?void 0:c.color),{},Object(Z.a)({},t,(null==a?void 0:a.slug)?void 0:r))}),u=(null==a?void 0:a.slug)?a.slug:void 0,b=Object(Z.a)({style:Cn(s)},l,u);e.setAttributes(b),i.current=_n(_n({},i.current),b)}};return Object(X.createElement)(xn,{enableContrastChecking:!d&&!(null==u||null===(t=u.color)||void 0===t?void 0:t.gradient),clientId:e.clientId,settings:[{label:Object(Q.__)("Text Color"),onColorChange:p("text"),colorValue:Object(K.getColorObjectByAttributeValues)(o,b,null==u||null===(r=u.color)||void 0===r?void 0:r.text).color},{label:Object(Q.__)("Background Color"),onColorChange:p("background"),colorValue:Object(K.getColorObjectByAttributeValues)(o,m,null==u||null===(n=u.color)||void 0===n?void 0:n.background).color,gradientValue:l,onGradientChange:function(t){var r,n=Object(K.getGradientSlugByValue)(a,t);if(n){var c,o,l,s=_n(_n({},null===(c=i.current)||void 0===c?void 0:c.style),{},{color:_n(_n({},null===(o=i.current)||void 0===o||null===(l=o.style)||void 0===l?void 0:l.color),{},{gradient:void 0})});r={style:Cn(s),gradient:n}}else{var u,b,m,d=_n(_n({},null===(u=i.current)||void 0===u?void 0:u.style),{},{color:_n(_n({},null===(b=i.current)||void 0===b||null===(m=b.style)||void 0===m?void 0:m.color),{},{gradient:t})});r={style:Cn(d),gradient:void 0}}e.setAttributes(r),i.current=_n(_n({},i.current),r)}}]})};function Pn(e,t){var r,n,c,o,a,i,l,s,u,b,m,d=arguments.length>2&&void 0!==arguments[2]&&arguments[2],p=e.backgroundColor,g=e.textColor,h=e.gradient,f=e.style,O=Object(K.getColorClassName)("background-color",p),v=Object(K.__experimentalGetGradientClass)(h),j=Object(K.getColorClassName)("color",g),y=ne()(j,v,(a={},Object(Z.a)(a,O,!(null==f||null===(r=f.color)||void 0===r?void 0:r.gradient)&&!!O),Object(Z.a)(a,"has-text-color",g||(null==f||null===(n=f.color)||void 0===n?void 0:n.text)),Object(Z.a)(a,"has-background",p||(null==f||null===(c=f.color)||void 0===c?void 0:c.background)||h||(null==f||null===(o=f.color)||void 0===o?void 0:o.gradient)),a)),_=(null==f||null===(i=f.color)||void 0===i?void 0:i.background)||(null==f||null===(l=f.color)||void 0===l?void 0:l.text)||(null==f||null===(s=f.color)||void 0===s?void 0:s.gradient)?{background:(null==f||null===(u=f.color)||void 0===u?void 0:u.gradient)?f.color.gradient:void 0,backgroundColor:(null==f||null===(b=f.color)||void 0===b?void 0:b.background)?f.color.background:void 0,color:(null==f||null===(m=f.color)||void 0===m?void 0:m.text)?f.color.text:void 0}:{};if(d){if(p){var w=Object(K.getColorObjectByAttributeValues)(t,p);_.backgroundColor=w.color}if(g){var k=Object(K.getColorObjectByAttributeValues)(t,g);_.color=k.color}}return{className:y||void 0,style:_}}function Bn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Tn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Bn(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var zn=[];function Nn(e){var t=e.borderRadius,r=void 0===t?"":t,n=e.setAttributes,c=r,o=Object(X.useCallback)((function(e){n(void 0===e?{borderRadius:c}:{borderRadius:e})}),[n]);return Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Border settings")},Object(X.createElement)(me.RangeControl,{value:r,label:Object(Q.__)("Border radius"),min:0,max:50,initialPosition:5,allowReset:!0,onChange:o}))}function Mn(e){var t,r=e.isSelected,n=e.url,c=e.setAttributes,o=e.opensInNewTab,a=e.onToggleOpenInNewTab,i=Object(X.useState)(!1),l=Object(be.a)(i,2),s=l[0],u=l[1],b=!!n,m=b&&r,d=function(){return u(!0),!1},p=function(){c({url:void 0,linkTarget:void 0,rel:void 0}),u(!1)},g=(s||m)&&Object(X.createElement)(me.Popover,{position:"bottom center",onClose:function(){return u(!1)}},Object(X.createElement)(K.__experimentalLinkControl,{className:"wp-block-navigation-link__inline-link-input",value:{url:n,opensInNewTab:o},onChange:function(e){var t=e.url,r=void 0===t?"":t,n=e.opensInNewTab;c({url:r}),o!==n&&a(n)}}));return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(me.ToolbarGroup,null,!b&&Object(X.createElement)(me.ToolbarButton,{name:"link",icon:vn.a,title:Object(Q.__)("Link"),shortcut:It.displayShortcut.primary("k"),onClick:d}),m&&Object(X.createElement)(me.ToolbarButton,{name:"link",icon:jn.a,title:Object(Q.__)("Unlink"),shortcut:It.displayShortcut.primaryShift("k"),onClick:p,isActive:!0}))),r&&Object(X.createElement)(me.KeyboardShortcuts,{bindGlobal:!0,shortcuts:(t={},Object(Z.a)(t,It.rawShortcut.primary("k"),d),Object(Z.a)(t,It.rawShortcut.primaryShift("k"),p),t)}),g)}var Rn=function(e){var t=e.attributes,r=e.setAttributes,n=e.className,c=e.isSelected,o=e.onReplace,a=e.mergeBlocks,i=t.borderRadius,l=t.linkTarget,s=t.placeholder,u=t.rel,b=t.text,m=t.url,d=Object(X.useCallback)((function(e){r({rel:e})}),[r]),p=Object(K.__experimentalUseEditorFeature)("color.palette")||zn,g=Object(X.useCallback)((function(e){var t=e?"_blank":void 0,n=u;t&&!u?n="noreferrer noopener":t||"noreferrer noopener"!==u||(n=void 0),r({linkTarget:t,rel:n})}),[u,r]),h=Pn(t,p,!0),f=Object(K.useBlockProps)();return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(Sn,e),Object(X.createElement)("div",f,Object(X.createElement)(K.RichText,{placeholder:s||Object(Q.__)("Add text…"),value:b,onChange:function(e){return r({text:e})},withoutInteractiveFormatting:!0,className:ne()(n,"wp-block-button__link",h.className,{"no-border-radius":0===i}),style:Tn({borderRadius:i?i+"px":void 0},h.style),onSplit:function(e){return Object(Y.createBlock)("core/button",Tn(Tn({},t),{},{text:e}))},onReplace:o,onMerge:a,identifier:"text"})),Object(X.createElement)(Mn,{url:m,setAttributes:r,isSelected:c,opensInNewTab:"_blank"===l,onToggleOpenInNewTab:g}),Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(Nn,{borderRadius:i,setAttributes:r}),Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Link settings")},Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Open in new tab"),onChange:g,checked:"_blank"===l}),Object(X.createElement)(me.TextControl,{label:Object(Q.__)("Link rel"),value:u||"",onChange:d}))))};function Vn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function An(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Hn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?An(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):An(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Ln={apiVersion:2,name:"core/button",category:"design",parent:["core/buttons"],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"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},style:{type:"object"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"}},supports:{anchor:!0,align:!0,alignWide:!1,reusable:!1,__experimentalSelector:".wp-block-button > a"}},In=Ln.name,Dn={title:Object(Q.__)("Button"),description:Object(Q.__)("Prompt visitors to take action with a button-style link."),icon:bn,keywords:[Object(Q.__)("link")],example:{attributes:{className:"is-style-fill",backgroundColor:"vivid-green-cyan",text:Object(Q.__)("Call to Action")}},styles:[{name:"fill",label:Object(Q.__)("Fill"),isDefault:!0},{name:"outline",label:Object(Q.__)("Outline")}],edit:Rn,save:function(e){var t=e.attributes,r=t.borderRadius,n=t.linkTarget,c=t.rel,o=t.text,a=t.title,i=t.url,l=Pn(t),s=ne()("wp-block-button__link",l.className,{"no-border-radius":0===r}),u=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Vn(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({borderRadius:r?r+"px":void 0},l.style);return Object(X.createElement)("div",K.useBlockProps.save(),Object(X.createElement)(K.RichText.Content,{tagName:"a",className:s,href:i,title:a,style:u,value:o,target:n,rel:c}))},deprecated:On,merge:function(e,t){var r=t.text,n=void 0===r?"":r;return Hn(Hn({},e),{},{text:(e.text||"")+n})}},Gn=[In],Fn=[["core/button"]],Un={isEmbedButton:!0};var qn=function(){var e=Object(K.useBlockProps)(),t=Object(K.__experimentalUseInnerBlocksProps)(e,{allowedBlocks:Gn,template:Fn,orientation:"horizontal"});return Object(X.createElement)(K.__experimentalAlignmentHookSettingsProvider,{value:Un},Object(X.createElement)("div",t))};var Wn={apiVersion:2,name:"core/buttons",category:"design",supports:{anchor:!0,align:!0,alignWide:!1}},Zn=Wn.name,$n={title:Object(Q.__)("Buttons"),description:Object(Q.__)("Prompt visitors to take action with a group of button-style links."),icon:bn,keywords:[Object(Q.__)("link")],example:{innerBlocks:[{name:"core/button",attributes:{text:Object(Q.__)("Find out more")}},{name:"core/button",attributes:{text:Object(Q.__)("Contact us")}}]},transforms:mn,edit:qn,save:function(){return Object(X.createElement)("div",K.useBlockProps.save(),Object(X.createElement)(K.InnerBlocks.Content,null))}},Kn=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V7h15v12zM9 10H7v2h2v-2zm0 4H7v2h2v-2zm4-4h-2v2h2v-2zm4 0h-2v2h2v-2zm-4 4h-2v2h2v-2zm4 0h-2v2h2v-2z"})),Yn=r(44),Jn=r.n(Yn);function Qn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Xn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Qn(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ec=Re()((function(e){if(!e)return{};var t=Jn()(e);return{year:t.year(),month:t.month()+1}}));var tc={apiVersion:2,name:"core/calendar",category:"widgets",attributes:{month:{type:"integer"},year:{type:"integer"}},supports:{align:!0}},rc=tc.name,nc={title:Object(Q.__)("Calendar"),description:Object(Q.__)("A calendar of your site’s posts."),icon:Kn,keywords:[Object(Q.__)("posts"),Object(Q.__)("archive")],example:{},edit:function(e){var t=e.attributes,r=Object(de.useSelect)((function(e){var t=e("core/editor").getEditedPostAttribute;return"post"===t("type")?t("date"):void 0}),[]);return Object(X.createElement)("div",Object(K.useBlockProps)(),Object(X.createElement)(me.Disabled,null,Object(X.createElement)(Qr.a,{block:"core/calendar",attributes:Xn(Xn({},t),ec(r))})))}},cc=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V7h15v12zM9 10H7v2h2v-2zm0 4H7v2h2v-2zm4-4h-2v2h2v-2zm4 0h-2v2h2v-2zm-4 4h-2v2h2v-2zm4 0h-2v2h2v-2z"})),oc=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(X.createElement)(ee.Path,{d:"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"}));var ac={apiVersion:2,name:"core/categories",category:"widgets",attributes:{displayAsDropdown:{type:"boolean",default:!1},showHierarchy:{type:"boolean",default:!1},showPostCounts:{type:"boolean",default:!1}},supports:{align:!0,html:!1}},ic=ac.name,lc={title:Object(Q.__)("Categories"),description:Object(Q.__)("Display a list of all categories."),icon:cc,example:{},edit:function e(t){var r,n=t.attributes,c=n.displayAsDropdown,o=n.showHierarchy,a=n.showPostCounts,i=t.setAttributes,l=Object(xe.useInstanceId)(e,"blocks-category-select"),s=Object(de.useSelect)((function(e){var t=e("core").getEntityRecords,r=e("core/data").isResolving,n={per_page:-1,hide_empty:!0};return{categories:t("taxonomy","category",n),isRequesting:r("core","getEntityRecords",["taxonomy","category",n])}}),[]),u=s.categories,b=s.isRequesting,m=function(e){return(null==u?void 0:u.length)?null===e?u:u.filter((function(t){return t.parent===e})):[]},d=function(e){return"wp-block-categories__list wp-block-categories__list-level-".concat(e)},p=function(e){return function(t){return i(Object(Z.a)({},e,t))}},g=function(e){return e?Object(J.unescape)(e).trim():Object(Q.__)("(Untitled)")},h=function e(t,r){var n=m(t.id),c=t.id,i=t.link,l=t.count,s=t.name;return Object(X.createElement)("li",{key:c},Object(X.createElement)("a",{href:i,target:"_blank",rel:"noreferrer noopener"},g(s)),a&&Object(X.createElement)("span",{className:"wp-block-categories__post-count"}," (".concat(l,")")),o&&!!n.length&&Object(X.createElement)("ul",{className:d(r+1)},n.map((function(t){return e(t,r+1)}))))},f=function e(t,r){var n=t.id,c=t.count,i=t.name,l=m(n);return[Object(X.createElement)("option",{key:n},Object(J.times)(3*r,(function(){return" "})),g(i),a&&" (".concat(c,")")),o&&!!l.length&&l.map((function(t){return e(t,r+1)}))]};return Object(X.createElement)("div",Object(K.useBlockProps)(),Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Categories settings")},Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Display as dropdown"),checked:c,onChange:p("displayAsDropdown")}),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Show hierarchy"),checked:o,onChange:p("showHierarchy")}),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Show post counts"),checked:a,onChange:p("showPostCounts")}))),b&&Object(X.createElement)(me.Placeholder,{icon:oc,label:Object(Q.__)("Categories")},Object(X.createElement)(me.Spinner,null)),!b&&(c?(r=m(o?0:null),Object(X.createElement)(X.Fragment,null,Object(X.createElement)(me.VisuallyHidden,{as:"label",htmlFor:l},Object(Q.__)("Categories")),Object(X.createElement)("select",{id:l,className:"wp-block-categories__dropdown"},r.map((function(e){return f(e,0)}))))):function(){var e=m(o?0:null);return Object(X.createElement)("ul",{className:d(0)},e.map((function(e){return h(e,0)})))}()))}},sc=r(320);function uc(e){return e.replace(/\[/g,"[")}function bc(e){return e.replace(/^(\s*https?:)\/\/([^\s<>"]+\s*)$/m,"$1//$2")}var mc={from:[{type:"enter",regExp:/^```$/,transform:function(){return Object(Y.createBlock)("core/code")}},{type:"block",blocks:["core/html"],transform:function(e){var t=e.content;return Object(Y.createBlock)("core/code",{content:t})}},{type:"raw",isMatch:function(e){return"PRE"===e.nodeName&&1===e.children.length&&"CODE"===e.firstChild.nodeName},schema:{pre:{children:{code:{children:{"#text":{}}}}}}}]},dc={apiVersion:2,name:"core/code",category:"text",attributes:{content:{type:"string",source:"html",selector:"code"}},supports:{anchor:!0}},pc=dc.name,gc={title:Object(Q.__)("Code"),description:Object(Q.__)("Display code snippets that respect your spacing and tabs."),icon:sc.a,example:{attributes:{content:Object(Q.__)('// A "block" is the abstract term used\n// to describe units of markup that\n// when composed together, form the\n// content or layout of a page.\nregisterBlockType( name, settings );')}},transforms:mc,edit:function(e){var t=e.attributes,r=e.setAttributes,n=Object(K.useBlockProps)();return Object(X.createElement)("pre",n,Object(X.createElement)(K.RichText,{tagName:"code",value:t.content,onChange:function(e){return r({content:e})},placeholder:Object(Q.__)("Write code…"),"aria-label":Object(Q.__)("Code")}))},save:function(e){var t,r=e.attributes;return Object(X.createElement)("pre",K.useBlockProps.save(),Object(X.createElement)(K.RichText.Content,{tagName:"code",value:(t=r.content,Object(J.flow)(uc,bc)(t||""))}))}},hc=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-4.1 1.5v10H10v-10h4.9zM5.5 17V8c0-.3.2-.5.5-.5h2.5v10H6c-.3 0-.5-.2-.5-.5zm14 0c0 .3-.2.5-.5.5h-2.6v-10H19c.3 0 .5.2.5.5v9z"}));function fc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Oc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?fc(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function vc(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return jc(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return jc(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,c=function(){};return{s:c,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:c}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return a=e.done,e},e:function(e){i=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(i)throw o}}}}function jc(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function yc(e){var t,r=yc.doc;r||(r=document.implementation.createHTMLDocument(""),yc.doc=r),r.body.innerHTML=e;var n,c=vc(r.body.firstChild.classList);try{for(c.s();!(n=c.n()).done;){if(t=n.value.match(/^layout-column-(\d+)$/))return Number(t[1])-1}}catch(e){c.e(e)}finally{c.f()}}var _c=[{attributes:{verticalAlignment:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},textColor:{type:"string"}},migrate:function(e){if(!e.customTextColor&&!e.customBackgroundColor)return e;var t={color:{}};return e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),Oc(Oc({},Object(J.omit)(e,["customTextColor","customBackgroundColor"])),{},{style:t})},save:function(e){var t,r=e.attributes,n=r.verticalAlignment,c=r.backgroundColor,o=r.customBackgroundColor,a=r.textColor,i=r.customTextColor,l=Object(K.getColorClassName)("background-color",c),s=Object(K.getColorClassName)("color",a),u=ne()((t={"has-background":c||o,"has-text-color":a||i},Object(Z.a)(t,l,l),Object(Z.a)(t,s,s),Object(Z.a)(t,"are-vertically-aligned-".concat(n),n),t)),b={backgroundColor:l?void 0:o,color:s?void 0:i};return Object(X.createElement)("div",{className:u||void 0,style:b},Object(X.createElement)(K.InnerBlocks.Content,null))}},{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!==yc(e.originalContent)}))},migrate:function(e,t){var r=t.reduce((function(e,t){var r=yc(t.originalContent);return void 0===r&&(r=0),e[r]||(e[r]=[]),e[r].push(t),e}),[]).map((function(e){return Object(Y.createBlock)("core/column",{},e)}));return[Object(J.omit)(e,["columns"]),r]},save:function(e){var t=e.attributes.columns;return Object(X.createElement)("div",{className:"has-".concat(t,"-columns")},Object(X.createElement)(K.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,r=t.verticalAlignment,n=t.columns,c=ne()("has-".concat(n,"-columns"),Object(Z.a)({},"are-vertically-aligned-".concat(r),r));return Object(X.createElement)("div",{className:c},Object(X.createElement)(K.InnerBlocks.Content,null))}}],wc=function(e){return Number.isFinite(e)?parseFloat(e.toFixed(2)):void 0};function kc(e,t){var r=e.attributes.width;return wc(void 0===r?100/t:r)}function Ec(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length;return Object(J.sumBy)(e,(function(e){return kc(e,t)}))}function Cc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length;return e.reduce((function(e,r){var n=kc(r,t);return Object.assign(e,Object(Z.a)({},r.clientId,n))}),{})}function xc(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,n=Ec(e,r),c=t-n,o=c/e.length;return Object(J.mapValues)(Cc(e,r),(function(e){return wc(e+o)}))}function Sc(e,t){return e.map((function(e){return Object(J.merge)({},e,{attributes:{width:t[e.clientId]}})}))}var Pc=["core/column"];var Bc=Object(de.withDispatch)((function(e,t,r){return{updateAlignment:function(n){var c=t.clientId,o=t.setAttributes,a=e("core/block-editor").updateBlockAttributes,i=r.select("core/block-editor").getBlockOrder;o({verticalAlignment:n}),i(c).forEach((function(e){a(e,{verticalAlignment:n})}))},updateColumns:function(n,c){var o=t.clientId,a=e("core/block-editor").replaceInnerBlocks,i=(0,r.select("core/block-editor").getBlocks)(o),l=i.every((function(e){return Number.isFinite(e.attributes.width)})),s=c>n;if(s&&l){var u=wc(100/c),b=xc(i,100-u);i=[].concat(Object(W.a)(Sc(i,b)),Object(W.a)(Object(J.times)(c-n,(function(){return Object(Y.createBlock)("core/column",{width:u})}))))}else if(s)i=[].concat(Object(W.a)(i),Object(W.a)(Object(J.times)(c-n,(function(){return Object(Y.createBlock)("core/column")}))));else{if(i=Object(J.dropRight)(i,n-c),l)i=Sc(i,xc(i,100))}a(o,i,!1)}}}))((function(e){var t=e.attributes,r=e.updateAlignment,n=e.updateColumns,c=e.clientId,o=t.verticalAlignment,a=Object(de.useSelect)((function(e){return{count:e("core/block-editor").getBlockCount(c)}}),[c]).count,i=ne()(Object(Z.a)({},"are-vertically-aligned-".concat(o),o)),l=Object(K.useBlockProps)({className:i}),s=Object(K.__experimentalUseInnerBlocksProps)(l,{allowedBlocks:Pc,orientation:"horizontal",renderAppender:!1});return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(K.BlockVerticalAlignmentToolbar,{onChange:r,value:o})),Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,null,Object(X.createElement)(me.RangeControl,{label:Object(Q.__)("Columns"),value:a,onChange:function(e){return n(a,e)},min:1,max:Math.max(6,a)}),a>6&&Object(X.createElement)(me.Notice,{status:"warning",isDismissible:!1},Object(Q.__)("This column count exceeds the recommended amount and may cause visual breakage.")))),Object(X.createElement)("div",s))}));function Tc(e){var t=e.clientId,r=e.name,n=e.setAttributes,c=Object(de.useSelect)((function(e){var t=e("core/blocks"),n=t.getBlockVariations,c=t.getBlockType,o=t.getDefaultBlockVariation;return{blockType:c(r),defaultVariation:o(r,"block"),variations:n(r,"block")}}),[r]),o=c.blockType,a=c.defaultVariation,i=c.variations,l=Object(de.useDispatch)("core/block-editor").replaceInnerBlocks,s=Object(K.useBlockProps)();return Object(X.createElement)("div",s,Object(X.createElement)(K.__experimentalBlockVariationPicker,{icon:Object(J.get)(o,["icon","src"]),label:Object(J.get)(o,["title"]),variations:i,onSelect:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a;e.attributes&&n(e.attributes),e.innerBlocks&&l(t,Object(Y.createBlocksFromInnerBlocksTemplate)(e.innerBlocks))},allowSkip:!0}))}var zc=function(e){var t=e.clientId,r=Object(de.useSelect)((function(e){return e("core/block-editor").getBlocks(t).length>0}),[t])?Bc:Tc;return Object(X.createElement)(r,e)};var Nc=[{name:"one-column-full",title:Object(Q.__)("100"),description:Object(Q.__)("One column"),icon:Object(X.createElement)(me.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(me.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m39.0625 14h-30.0625v20.0938h30.0625zm-30.0625-2c-1.10457 0-2 .8954-2 2v20.0938c0 1.1045.89543 2 2 2h30.0625c1.1046 0 2-.8955 2-2v-20.0938c0-1.1046-.8954-2-2-2z"})),innerBlocks:[["core/column"]],scope:["block"]},{name:"two-columns-equal",title:Object(Q.__)("50 / 50"),description:Object(Q.__)("Two columns; equal split"),icon:Object(X.createElement)(me.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(me.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"})),isDefault:!0,innerBlocks:[["core/column"],["core/column"]],scope:["block"]},{name:"two-columns-one-third-two-thirds",title:Object(Q.__)("30 / 70"),description:Object(Q.__)("Two columns; one-third, two-thirds split"),icon:Object(X.createElement)(me.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(me.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"})),innerBlocks:[["core/column",{width:"33.33%"}],["core/column",{width:"66.66%"}]],scope:["block"]},{name:"two-columns-two-thirds-one-third",title:Object(Q.__)("70 / 30"),description:Object(Q.__)("Two columns; two-thirds, one-third split"),icon:Object(X.createElement)(me.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(me.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"})),innerBlocks:[["core/column",{width:"66.66%"}],["core/column",{width:"33.33%"}]],scope:["block"]},{name:"three-columns-equal",title:Object(Q.__)("33 / 33 / 33"),description:Object(Q.__)("Three columns; equal split"),icon:Object(X.createElement)(me.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(me.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"})),innerBlocks:[["core/column"],["core/column"],["core/column"]],scope:["block"]},{name:"three-columns-wider-center",title:Object(Q.__)("25 / 50 / 25"),description:Object(Q.__)("Three columns; wide center column"),icon:Object(X.createElement)(me.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(me.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"})),innerBlocks:[["core/column",{width:"25%"}],["core/column",{width:"50%"}],["core/column",{width:"25%"}]],scope:["block"]}];function Mc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Rc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Mc(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Vc={from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert:function(e){var t=+(100/e.length).toFixed(2),r=e.map((function(e){var r=e.name,n=e.attributes,c=e.innerBlocks;return["core/column",{width:"".concat(t,"%")},[[r,Rc({},n),c]]]}));return Object(Y.createBlock)("core/columns",{},Object(Y.createBlocksFromInnerBlocksTemplate)(r))},isMatch:function(e){var t=e.length;return t&&t<=6}}]},Ac={apiVersion:2,name:"core/columns",category:"design",attributes:{verticalAlignment:{type:"string"}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0}}},Hc=Ac.name,Lc={title:Object(Q.__)("Columns"),icon:hc,description:Object(Q.__)("Add a block that displays content in multiple columns, then add whatever content blocks you’d like."),variations:Nc,example:{innerBlocks:[{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:Object(Q.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent et eros eu felis.")}},{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg"}},{name:"core/paragraph",attributes:{content:Object(Q.__)("Suspendisse commodo neque lacus, a dictum orci interdum et.")}}]},{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:Object(Q.__)("Etiam et egestas lorem. Vivamus sagittis sit amet dolor quis lobortis. Integer sed fermentum arcu, id vulputate lacus. Etiam fermentum sem eu quam hendrerit.")}},{name:"core/paragraph",attributes:{content:Object(Q.__)("Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim.")}}]}]},deprecated:_c,edit:zc,save:function(e){var t=e.attributes.verticalAlignment,r=ne()(Object(Z.a)({},"are-vertically-aligned-".concat(t),t));return Object(X.createElement)("div",K.useBlockProps.save({className:r}),Object(X.createElement)(K.InnerBlocks.Content,null))},transforms:Vc},Ic=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ee.Path,{d:"M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zM6 17.5c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h3v10H6zm13.5-.5c0 .3-.2.5-.5.5h-3v-10h3c.3 0 .5.2.5.5v9z"}));function Dc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Gc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Dc(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Fc=[{attributes:{verticalAlignment:{type:"string"},width:{type:"number",min:0,max:100}},migrate:function(e){return Gc(Gc({},e),{},{width:"".concat(e.width,"%")})},save:function(e){var t,r=e.attributes,n=r.verticalAlignment,c=r.width,o=ne()(Object(Z.a)({},"is-vertically-aligned-".concat(n),n));return Number.isFinite(c)&&(t={flexBasis:c+"%"}),Object(X.createElement)("div",{className:o,style:t},Object(X.createElement)(K.InnerBlocks.Content,null))}}];var Uc=function(e){var t=e.attributes,r=t.verticalAlignment,n=t.width,c=t.templateLock,o=void 0!==c&&c,a=e.setAttributes,i=e.clientId,l=ne()("block-core-columns",Object(Z.a)({},"is-vertically-aligned-".concat(r),r)),s=Object(de.useSelect)((function(e){var t=e("core/block-editor"),r=t.getBlockOrder,n=t.getBlockRootClientId;return{hasChildBlocks:r(i).length>0,rootClientId:n(i)}}),[i]),u=s.hasChildBlocks,b=s.rootClientId,m=Object(de.useDispatch)("core/block-editor").updateBlockAttributes,d=Object(K.useBlockProps)({className:l,style:n?{flexBasis:n}:void 0}),p=Object(K.__experimentalUseInnerBlocksProps)(d,{templateLock:o,renderAppender:u?void 0:K.InnerBlocks.ButtonBlockAppender});return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(K.BlockVerticalAlignmentToolbar,{onChange:function(e){a({verticalAlignment:e}),m(b,{verticalAlignment:null})},value:r})),Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Column settings")},Object(X.createElement)(me.__experimentalUnitControl,{label:Object(Q.__)("Width"),labelPosition:"edge",__unstableInputWidth:"80px",value:n||"",onChange:function(e){e=0>parseFloat(e)?"0":e,a({width:e})},units:[{value:"%",label:"%",default:""},{value:"px",label:"px",default:""},{value:"em",label:"em",default:""},{value:"rem",label:"rem",default:""},{value:"vw",label:"vw",default:""}]}))),Object(X.createElement)("div",p))};var qc={apiVersion:2,name:"core/column",category:"text",parent:["core/columns"],attributes:{verticalAlignment:{type:"string"},width:{type:"string"},templateLock:{type:"string"}},supports:{anchor:!0,reusable:!1,html:!1}},Wc=qc.name,Zc={title:Object(Q.__)("Column"),icon:Ic,description:Object(Q.__)("A single column within a columns block."),edit:Uc,save:function(e){var t,r=e.attributes,n=r.verticalAlignment,c=r.width,o=ne()(Object(Z.a)({},"is-vertically-aligned-".concat(n),n));return c&&(t={flexBasis:c}),Object(X.createElement)("div",K.useBlockProps.save({className:o,style:t}),Object(X.createElement)(K.InnerBlocks.Content,null))},deprecated:Fc},$c=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ee.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h6.2v8.9l2.5-3.1 2.5 3.1V4.5h2.2c.4 0 .8.4.8.8v13.4z"}));function Kc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var Yc={"top left":"is-position-top-left","top center":"is-position-top-center","top right":"is-position-top-right","center left":"is-position-center-left","center center":"is-position-center-center",center:"is-position-center-center","center right":"is-position-center-right","bottom left":"is-position-bottom-left","bottom center":"is-position-bottom-center","bottom right":"is-position-bottom-right"};function Jc(e){return e?{backgroundImage:"url(".concat(e,")")}:{}}var Qc=[{value:"px",label:"px",default:430},{value:"em",label:"em",default:20},{value:"rem",label:"rem",default:20},{value:"vw",label:"vw",default:20},{value:"vh",label:"vh",default:50}];function Xc(e){return 0!==e&&50!==e&&e?"has-background-dim-"+10*Math.round(e/10):null}function eo(e){return function(t){if(t&&t.url){var r;if(Object(Ce.isBlobURL)(t.url)&&(t.type=Object(Ce.getBlobTypeByURL)(t.url)),t.media_type)r="image"===t.media_type?"image":"video";else{if("image"!==t.type&&"video"!==t.type)return;r=t.type}e(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Kc(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({url:t.url,id:t.id,backgroundType:r},"video"===r?{focalPoint:void 0,hasParallax:void 0}:{}))}else e({url:void 0,id:void 0})}}function to(e){return!e||"center center"===e||"center"===e}function ro(e){return to(e)?"":Yc[e]}function no(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function co(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?no(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):no(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var oo={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"}},ao=[{attributes:co(co({},oo),{},{title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"},minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}}),save:function(e){var t=e.attributes,r=t.backgroundType,n=t.gradient,c=t.customGradient,o=t.customOverlayColor,a=t.dimRatio,i=t.focalPoint,l=t.hasParallax,s=t.overlayColor,u=t.url,b=t.minHeight,m=Object(K.getColorClassName)("background-color",s),d=Object(K.__experimentalGetGradientClass)(n),p="image"===r?Jc(u):{};m||(p.backgroundColor=o),i&&!l&&(p.backgroundPosition="".concat(Math.round(100*i.x),"% ").concat(Math.round(100*i.y),"%")),c&&!u&&(p.background=c),p.minHeight=b||void 0;var g=ne()(Xc(a),m,Object(Z.a)({"has-background-dim":0!==a,"has-parallax":l,"has-background-gradient":c},d,!u&&d));return Object(X.createElement)("div",{className:g,style:p},u&&(n||c)&&0!==a&&Object(X.createElement)("span",{"aria-hidden":"true",className:ne()("wp-block-cover__gradient-background",d),style:c?{background:c}:void 0}),"video"===r&&u&&Object(X.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),Object(X.createElement)("div",{className:"wp-block-cover__inner-container"},Object(X.createElement)(K.InnerBlocks.Content,null)))}},{attributes:co(co({},oo),{},{title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"},minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}}),save:function(e){var t=e.attributes,r=t.backgroundType,n=t.gradient,c=t.customGradient,o=t.customOverlayColor,a=t.dimRatio,i=t.focalPoint,l=t.hasParallax,s=t.overlayColor,u=t.url,b=t.minHeight,m=Object(K.getColorClassName)("background-color",s),d=Object(K.__experimentalGetGradientClass)(n),p="image"===r?Jc(u):{};m||(p.backgroundColor=o),i&&!l&&(p.backgroundPosition="".concat(100*i.x,"% ").concat(100*i.y,"%")),c&&!u&&(p.background=c),p.minHeight=b||void 0;var g=ne()(Xc(a),m,Object(Z.a)({"has-background-dim":0!==a,"has-parallax":l,"has-background-gradient":c},d,!u&&d));return Object(X.createElement)("div",{className:g,style:p},u&&(n||c)&&0!==a&&Object(X.createElement)("span",{"aria-hidden":"true",className:ne()("wp-block-cover__gradient-background",d),style:c?{background:c}:void 0}),"video"===r&&u&&Object(X.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),Object(X.createElement)("div",{className:"wp-block-cover__inner-container"},Object(X.createElement)(K.InnerBlocks.Content,null)))}},{attributes:co(co({},oo),{},{title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"}}),supports:{align:!0},save:function(e){var t=e.attributes,r=t.backgroundType,n=t.contentAlign,c=t.customOverlayColor,o=t.dimRatio,a=t.focalPoint,i=t.hasParallax,l=t.overlayColor,s=t.title,u=t.url,b=Object(K.getColorClassName)("background-color",l),m="image"===r?Jc(u):{};b||(m.backgroundColor=c),a&&!i&&(m.backgroundPosition="".concat(100*a.x,"% ").concat(100*a.y,"%"));var d=ne()(Xc(o),b,Object(Z.a)({"has-background-dim":0!==o,"has-parallax":i},"has-".concat(n,"-content"),"center"!==n));return Object(X.createElement)("div",{className:d,style:m},"video"===r&&u&&Object(X.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),!K.RichText.isEmpty(s)&&Object(X.createElement)(K.RichText.Content,{tagName:"p",className:"wp-block-cover-text",value:s}))},migrate:function(e){return[Object(J.omit)(e,["title","contentAlign"]),[Object(Y.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:Object(Q.__)("Write title…")})]]}},{attributes:co(co({},oo),{},{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,r=t.url,n=t.title,c=t.hasParallax,o=t.dimRatio,a=t.align,i=t.contentAlign,l=t.overlayColor,s=t.customOverlayColor,u=Object(K.getColorClassName)("background-color",l),b=Jc(r);u||(b.backgroundColor=s);var m=ne()("wp-block-cover-image",Xc(o),u,Object(Z.a)({"has-background-dim":0!==o,"has-parallax":c},"has-".concat(i,"-content"),"center"!==i),a?"align".concat(a):null);return Object(X.createElement)("div",{className:m,style:b},!K.RichText.isEmpty(n)&&Object(X.createElement)(K.RichText.Content,{tagName:"p",className:"wp-block-cover-image-text",value:n}))},migrate:function(e){return[Object(J.omit)(e,["title","contentAlign","align"]),[Object(Y.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:Object(Q.__)("Write title…")})]]}},{attributes:co(co({},oo),{},{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,r=t.url,n=t.title,c=t.hasParallax,o=t.dimRatio,a=t.align,i=Jc(r),l=ne()("wp-block-cover-image",Xc(o),{"has-background-dim":0!==o,"has-parallax":c},a?"align".concat(a):null);return Object(X.createElement)("section",{className:l,style:i},Object(X.createElement)(K.RichText.Content,{tagName:"h2",value:n}))},migrate:function(e){return[Object(J.omit)(e,["title","contentAlign","align"]),[Object(Y.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:Object(Q.__)("Write title…")})]]}}],io=r(282),lo=r.n(io),so=r(66),uo=r.n(so);function bo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function mo(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?bo(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bo(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var po=["image","video"],go=[["core/paragraph",{align:"center",fontSize:"large",placeholder:Object(Q.__)("Write title…")}]],ho=me.__experimentalBoxControl.__Visualizer;function fo(){return fo.fastAverageColor||(fo.fastAverageColor=new lo.a),fo.fastAverageColor}function Oo(e){var t=e.onChange,r=e.onUnitChange,n=e.unit,c=void 0===n?"px":n,o=e.value,a=void 0===o?"":o,i=Object(X.useState)(null),l=Object(be.a)(i,2),s=l[0],u=l[1],b=Object(xe.useInstanceId)(K.__experimentalUnitControl),m="block-cover-height-input-".concat(b),d=null!==s?s:a,p="px"===c?50:0;return Object(X.createElement)(me.BaseControl,{label:Object(Q.__)("Minimum height of cover"),id:m},Object(X.createElement)(K.__experimentalUnitControl,{id:m,isResetValueOnUnitChange:!0,min:p,onBlur:function(){null!==s&&u(null)},onChange:function(e){var n=""!==e?parseInt(e,10):void 0;isNaN(n)&&void 0!==n?u(e):(u(null),t(n),void 0===n&&r())},onUnitChange:r,step:"1",style:{maxWidth:80},unit:c,units:Qc,value:d}))}var vo={top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1};function jo(e){var t=e.className,r=e.onResizeStart,n=e.onResize,c=e.onResizeStop,o=Object(or.a)(e,["className","onResizeStart","onResize","onResizeStop"]),a=Object(X.useState)(!1),i=Object(be.a)(a,2),l=i[0],s=i[1];return Object(X.createElement)(me.ResizableBox,Object(ue.a)({className:ne()(t,{"is-resizing":l}),enable:vo,onResizeStart:function(e,t,c){r(c.clientHeight),n(c.clientHeight)},onResize:function(e,t,r){n(r.clientHeight),l||s(!0)},onResizeStop:function(e,t,r){c(r.clientHeight),s(!1)},minHeight:50},o))}var yo=Object(xe.compose)([Object(de.withDispatch)((function(e){return{toggleSelection:e("core/block-editor").toggleSelection}})),Object(K.withColors)({overlayColor:"background-color"}),me.withNotices,xe.withInstanceId])((function(e){var t,r,n,c,o=e.attributes,a=e.setAttributes,i=e.isSelected,l=e.noticeUI,s=e.overlayColor,u=e.setOverlayColor,b=e.toggleSelection,m=e.noticeOperations,d=o.contentPosition,p=o.id,g=o.backgroundType,h=o.dimRatio,f=o.focalPoint,O=o.hasParallax,v=o.isRepeated,j=o.minHeight,y=o.minHeightUnit,_=o.style,w=o.url,k=Object(K.__experimentalUseGradient)(),E=k.gradientClass,C=k.gradientValue,x=k.setGradient,S=eo(a),P=Object(Ce.isBlobURL)(w),B=Object(X.useRef)(),T=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,c=Object(X.useState)(!1),o=Object(be.a)(c,2),a=o[0],i=o[1];return Object(X.useEffect)((function(){e&&t<=50&&n.current&&fo().getColorAsync(n.current,(function(e){i(e.isDark)}))}),[e,e&&t<=50&&n.current,i]),Object(X.useEffect)((function(){if(t>50||!e){if(!r)return void i(!0);i(uo()(r).isDark())}}),[r,t>50||!e,i]),Object(X.useEffect)((function(){e||r||i(!1)}),[!e&&!r,i]),a}(w,h,s.color,B),z="image"===g,N="video"===g,M=Object(X.useState)(null),R=Object(be.a)(M,2),V=R[0],A=R[1],H=m.removeAllNotices,L=m.createErrorNotice,I=y?"".concat(j).concat(y):j,D=mo(mo({},z?Jc(w):{}),{},{backgroundColor:s.color,minHeight:V||I||void 0});C&&!w&&(D.background=C),f&&(c="".concat(100*f.x,"% ").concat(100*f.y,"%"),z&&(D.backgroundPosition=c));var G=!!w&&(s.color||C),F=!!(w||s.color||C),U=N||z&&(!O||v),q=Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.BlockControls,null,F&&Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.__experimentalBlockAlignmentMatrixToolbar,{label:Object(Q.__)("Change content position"),value:d,onChange:function(e){return a({contentPosition:e})}}),Object(X.createElement)(K.MediaReplaceFlow,{mediaId:p,mediaURL:w,allowedTypes:po,accept:"image/*,video/*",onSelect:S}))),Object(X.createElement)(K.InspectorControls,null,!!w&&Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Media settings")},z&&Object(X.createElement)(X.Fragment,null,Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Fixed background"),checked:O,onChange:function(){a(mo({hasParallax:!O},O?{}:{focalPoint:void 0}))}}),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Repeated background"),checked:v,onChange:function(){a({isRepeated:!v})}})),U&&Object(X.createElement)(me.FocalPointPicker,{label:Object(Q.__)("Focal point picker"),url:w,value:f,onChange:function(e){return a({focalPoint:e})}}),Object(X.createElement)(me.PanelRow,null,Object(X.createElement)(me.Button,{isSecondary:!0,isSmall:!0,className:"block-library-cover__reset-button",onClick:function(){return a({url:void 0,id:void 0,backgroundType:void 0,dimRatio:void 0,focalPoint:void 0,hasParallax:void 0,isRepeated:void 0})}},Object(Q.__)("Clear Media")))),F&&Object(X.createElement)(X.Fragment,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Dimensions")},Object(X.createElement)(Oo,{value:V||j,unit:y,onChange:function(e){return a({minHeight:e})},onUnitChange:function(e){a({minHeightUnit:e})}})),Object(X.createElement)(K.__experimentalPanelColorGradientSettings,{title:Object(Q.__)("Overlay"),initialOpen:!0,settings:[{colorValue:s.color,gradientValue:C,onColorChange:u,onGradientChange:x,label:Object(Q.__)("Color")}]},G&&Object(X.createElement)(me.RangeControl,{label:Object(Q.__)("Opacity"),value:h,onChange:function(e){return a({dimRatio:e})},min:0,max:100,step:10,required:!0}))))),W=Object(K.useBlockProps)(),$=Object(K.__experimentalUseInnerBlocksProps)({className:"wp-block-cover__inner-container"},{template:go});if(!F){var Y=Object(X.createElement)(K.BlockIcon,{icon:$c}),J=Object(Q.__)("Cover");return Object(X.createElement)(X.Fragment,null,q,Object(X.createElement)("div",Object(ue.a)({},W,{className:ne()("is-placeholder",W.className)}),Object(X.createElement)(K.MediaPlaceholder,{icon:Y,labels:{title:J,instructions:Object(Q.__)("Upload an image or video file, or pick one from your media library.")},onSelect:S,accept:"image/*,video/*",allowedTypes:po,notices:l,onError:function(e){H(),L(e)}},Object(X.createElement)("div",{className:"wp-block-cover__placeholder-background-options"},Object(X.createElement)(K.ColorPalette,{disableCustomColors:!0,value:s.color,onChange:u,clearable:!1})))))}var ee=ne()(Xc(h),(t={"is-dark-theme":T,"has-background-dim":0!==h,"is-transient":P,"has-parallax":O,"is-repeated":v},Object(Z.a)(t,s.class,s.class),Object(Z.a)(t,"has-background-gradient",C),Object(Z.a)(t,E,!w&&E),Object(Z.a)(t,"has-custom-content-position",!to(d)),t),ro(d));return Object(X.createElement)(X.Fragment,null,q,Object(X.createElement)("div",Object(ue.a)({},W,{className:ne()(ee,W.className),style:mo(mo({},D),W.style),"data-url":w}),Object(X.createElement)(ho,{values:null==_||null===(r=_.spacing)||void 0===r?void 0:r.padding,showValues:null==_||null===(n=_.visualizers)||void 0===n?void 0:n.padding}),Object(X.createElement)(jo,{className:"block-library-cover__resize-container",onResizeStart:function(){a({minHeightUnit:"px"}),b(!1)},onResize:A,onResizeStop:function(e){b(!0),a({minHeight:e}),A(null)},showHandle:i}),z&&Object(X.createElement)("img",{ref:B,"aria-hidden":!0,alt:"",style:{display:"none"},src:w}),w&&C&&0!==h&&Object(X.createElement)("span",{"aria-hidden":"true",className:ne()("wp-block-cover__gradient-background",E),style:{background:C}}),N&&Object(X.createElement)("video",{ref:B,className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:w,style:{objectPosition:c}}),P&&Object(X.createElement)(me.Spinner,null),Object(X.createElement)("div",$)))}));var _o={from:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.caption,r=e.url,n=e.align,c=e.id,o=e.anchor;return Object(Y.createBlock)("core/cover",{title:t,url:r,align:n,id:c,anchor:o})}},{type:"block",blocks:["core/video"],transform:function(e){var t=e.caption,r=e.src,n=e.align,c=e.id,o=e.anchor;return Object(Y.createBlock)("core/cover",{title:t,url:r,align:n,id:c,backgroundType:"video",anchor:o})}}],to:[{type:"block",blocks:["core/image"],isMatch:function(e){var t=e.backgroundType,r=e.url,n=e.overlayColor,c=e.customOverlayColor,o=e.gradient,a=e.customGradient;return r?"image"===t:!(n||c||o||a)},transform:function(e){var t=e.title,r=e.url,n=e.align,c=e.id,o=e.anchor;return Object(Y.createBlock)("core/image",{caption:t,url:r,align:n,id:c,anchor:o})}},{type:"block",blocks:["core/video"],isMatch:function(e){var t=e.backgroundType,r=e.url,n=e.overlayColor,c=e.customOverlayColor,o=e.gradient,a=e.customGradient;return r?"video"===t:!(n||c||o||a)},transform:function(e){var t=e.title,r=e.url,n=e.align,c=e.id,o=e.anchor;return Object(Y.createBlock)("core/video",{caption:t,src:r,id:c,align:n,anchor:o})}}]},wo={apiVersion:2,name:"core/cover",category:"media",attributes:{url:{type:"string"},id:{type:"number"},hasParallax:{type:"boolean",default:!1},isRepeated:{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"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"}},supports:{anchor:!0,align:!0,html:!1,spacing:{padding:!0}}},ko=wo.name,Eo={title:Object(Q.__)("Cover"),description:Object(Q.__)("Add an image or video with a text overlay — great for headers."),icon:$c,example:{attributes:{customOverlayColor:"#065174",dimRatio:40,url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg"},innerBlocks:[{name:"core/paragraph",attributes:{customFontSize:48,content:Object(Q.__)("<strong>Snow Patrol</strong>"),align:"center"}}]},transforms:_o,save:function(e){var t,r,n=e.attributes,c=n.backgroundType,o=n.gradient,a=n.contentPosition,i=n.customGradient,l=n.customOverlayColor,s=n.dimRatio,u=n.focalPoint,b=n.hasParallax,m=n.isRepeated,d=n.overlayColor,p=n.url,g=n.minHeight,h=n.minHeightUnit,f=Object(K.getColorClassName)("background-color",d),O=Object(K.__experimentalGetGradientClass)(o),v=h?"".concat(g).concat(h):g,j="image"===c,y="video"===c,_=j?Jc(p):{},w={};f||(_.backgroundColor=l),i&&!p&&(_.background=i),_.minHeight=v||void 0,u&&(r="".concat(Math.round(100*u.x),"% ").concat(Math.round(100*u.y),"%"),j&&!b&&(_.backgroundPosition=r),y&&(w.objectPosition=r));var k=ne()(Xc(s),f,(t={"has-background-dim":0!==s,"has-parallax":b,"is-repeated":m,"has-background-gradient":o||i},Object(Z.a)(t,O,!p&&O),Object(Z.a)(t,"has-custom-content-position",!to(a)),t),ro(a));return Object(X.createElement)("div",K.useBlockProps.save({className:k,style:_}),p&&(o||i)&&0!==s&&Object(X.createElement)("span",{"aria-hidden":"true",className:ne()("wp-block-cover__gradient-background",O),style:i?{background:i}:void 0}),y&&p&&Object(X.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:p,style:w}),Object(X.createElement)("div",{className:"wp-block-cover__inner-container"},Object(X.createElement)(K.InnerBlocks.Content,null)))},edit:yo,deprecated:ao},Co=function(e){var t=e.blockSupportsResponsive,r=e.showEditButton,n=e.themeSupportsResponsive,c=e.allowResponsive,o=e.getResponsiveHelp,a=e.toggleResponsive,i=e.switchBackToURLInput;return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(me.ToolbarGroup,null,r&&Object(X.createElement)(me.ToolbarButton,{className:"components-toolbar__control",label:Object(Q.__)("Edit URL"),icon:Tr.a,onClick:i}))),n&&t&&Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Media settings"),className:"blocks-responsive"},Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Resize for smaller devices"),checked:c,help:o,onChange:a}))))},xo=function(){return Object(X.createElement)("div",{className:"wp-block-embed is-loading"},Object(X.createElement)(me.Spinner,null),Object(X.createElement)("p",null,Object(Q.__)("Embedding…")))},So=function(e){var t=e.icon,r=e.label,n=e.value,c=e.onSubmit,o=e.onChange,a=e.cannotEmbed,i=e.fallback,l=e.tryAgain;return Object(X.createElement)(me.Placeholder,{icon:Object(X.createElement)(K.BlockIcon,{icon:t,showColors:!0}),label:r,className:"wp-block-embed",instructions:Object(Q.__)("Paste a link to the content you want to display on your site.")},Object(X.createElement)("form",{onSubmit:c},Object(X.createElement)("input",{type:"url",value:n||"",className:"components-placeholder__input","aria-label":r,placeholder:Object(Q.__)("Enter URL to embed here…"),onChange:o}),Object(X.createElement)(me.Button,{isPrimary:!0,type:"submit"},Object(Q._x)("Embed","button label"))),Object(X.createElement)("div",{className:"components-placeholder__learn-more"},Object(X.createElement)(me.ExternalLink,{href:Object(Q.__)("https://wordpress.org/support/article/embeds/")},Object(Q.__)("Learn more about embeds"))),a&&Object(X.createElement)("div",{className:"components-placeholder__error"},Object(X.createElement)("div",{className:"components-placeholder__instructions"},Object(Q.__)("Sorry, this content could not be embedded.")),Object(X.createElement)(me.Button,{isSecondary:!0,onClick:l},Object(Q._x)("Try again","button label"))," ",Object(X.createElement)(me.Button,{isSecondary:!0,onClick:i},Object(Q._x)("Convert to link","button label"))))};function Po(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Object(Sr.a)(e);if(t){var c=Object(Sr.a)(this).constructor;r=Reflect.construct(n,arguments,c)}else r=n.apply(this,arguments);return Object(xr.a)(this,r)}}var Bo=window,To=Bo.FocusEvent,zo=Bo.DOMParser,No=function(e){Object(Cr.a)(r,e);var t=Po(r);function r(){var e;return Object(wr.a)(this,r),(e=t.apply(this,arguments)).checkFocus=e.checkFocus.bind(Object(Er.a)(e)),e.node=Object(X.createRef)(),e}return Object(kr.a)(r,[{key:"componentDidMount",value:function(){window.addEventListener("message",this.resizeWPembeds)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("message",this.resizeWPembeds)}},{key:"resizeWPembeds",value:function(e){var t=e.data,r=(t=void 0===t?{}:t).secret,n=t.message,c=t.value;[r,n,c].some((function(e){return!e}))||"height"!==n||document.querySelectorAll('iframe[data-secret="'.concat(r,'"')).forEach((function(e){+e.height!==c&&(e.height=c)}))}},{key:"checkFocus",value:function(){var e=document.activeElement;if("IFRAME"===e.tagName&&e.parentNode===this.node.current){var t=new To("focus",{bubbles:!0});e.dispatchEvent(t)}}},{key:"render",value:function(){var e=this.props.html,t=(new zo).parseFromString(e,"text/html"),r=t.querySelector("iframe");r&&r.removeAttribute("style");var n=t.querySelector("blockquote");return n&&(n.style.display="none"),Object(X.createElement)("div",{ref:this.node,className:"wp-block-embed__wrapper",dangerouslySetInnerHTML:{__html:t.body.innerHTML}})}}]),r}(X.Component),Mo=Object(xe.withGlobalEvents)({blur:"checkFocus"})(No);function Ro(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Object(Sr.a)(e);if(t){var c=Object(Sr.a)(this).constructor;r=Reflect.construct(n,arguments,c)}else r=n.apply(this,arguments);return Object(xr.a)(this,r)}}var Vo=function(e){Object(Cr.a)(r,e);var t=Ro(r);function r(){var e;return Object(wr.a)(this,r),(e=t.apply(this,arguments)).hideOverlay=e.hideOverlay.bind(Object(Er.a)(e)),e.state={interactive:!1},e}return Object(kr.a)(r,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"render",value:function(){var e,t,r,n=this.props,c=n.preview,o=n.previewable,a=n.url,i=n.type,l=n.caption,s=n.onCaptionChange,u=n.isSelected,b=n.className,m=n.icon,d=n.label,p=n.insertBlocksAfter,g=c.scripts,h=this.state.interactive,f="photo"===i?(t=(e=c).thumbnail_url||e.url,r=Object(X.createElement)("p",null,Object(X.createElement)("img",{src:t,alt:e.title,width:"100%"})),Object(X.renderToString)(r)):c.html,O=new URL(a).host.split("."),v=O.splice(O.length-2,O.length-1).join("."),j=Object(Q.sprintf)(Object(Q.__)("Embedded content from %s"),v),y=Ne()(i,b,"wp-block-embed__wrapper"),_="wp-embed"===i?Object(X.createElement)(Mo,{html:f}):Object(X.createElement)("div",{className:"wp-block-embed__wrapper"},Object(X.createElement)(me.SandBox,{html:f,scripts:g,title:j,type:y,onFocus:this.hideOverlay}),!h&&Object(X.createElement)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}));return Object(X.createElement)("figure",{className:Ne()(b,"wp-block-embed",{"is-type-video":"video"===i})},o?_:Object(X.createElement)(me.Placeholder,{icon:Object(X.createElement)(K.BlockIcon,{icon:m,showColors:!0}),label:d},Object(X.createElement)("p",{className:"components-placeholder__error"},Object(X.createElement)("a",{href:a},a)),Object(X.createElement)("p",{className:"components-placeholder__error"},Object(Q.sprintf)(Object(Q.__)("Embedded content from %s can't be previewed in the editor."),v))),(!K.RichText.isEmpty(l)||u)&&Object(X.createElement)(K.RichText,{tagName:"figcaption",placeholder:Object(Q.__)("Write caption…"),value:l,onChange:s,inlineToolbar:!0,__unstableOnSplitAtEnd:function(){return p(Object(Y.createBlock)("core/paragraph"))}}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),r}(X.Component);function Ao(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ho(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ao(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ao(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Lo(e){return e?Object(Q.__)("This embed will preserve its aspect ratio when the browser is resized."):Object(Q.__)("This embed may not preserve its aspect ratio when the browser is resized.")}var Io=function(e){var t,r,n=e.attributes,c=n.providerNameSlug,o=n.previewable,a=n.responsive,i=n.url,l=e.attributes,s=e.isSelected,u=e.onReplace,b=e.setAttributes,m=e.insertBlocksAfter,d={title:sa.title,icon:sa.icon},p=(t=c,(null===(r=Object(Y.getBlockVariations)("core/embed"))||void 0===r?void 0:r.find((function(e){return e.name===t})))||d),g=p.icon,h=p.title,f=Object(X.useState)(i),O=Object(be.a)(f,2),v=O[0],j=O[1],y=Object(X.useState)(!1),_=Object(be.a)(y,2),w=_[0],k=_[1],E=Object(de.useDispatch)("core/data").invalidateResolution,C=Object(de.useSelect)((function(e){var t,r=e("core"),n=r.getEmbedPreview,c=r.isPreviewEmbedFallback,o=r.isRequestingEmbedPreview,a=r.getThemeSupports;if(!i)return{fetching:!1,cannotEmbed:!1};var l=n(i),s=c(i),u=!1===(null==l?void 0:l.html)&&void 0===(null==l?void 0:l.type),b=404===(null==l||null===(t=l.data)||void 0===t?void 0:t.status),m=!!l&&!u&&!b;return{preview:m?l:void 0,fetching:o(i),themeSupportsResponsive:a()["responsive-embeds"],cannotEmbed:!m||s}}),[i]),x=C.preview,S=C.fetching,P=C.themeSupportsResponsive,B=C.cannotEmbed,T=function(){var e=l.allowResponsive,t=l.className;return Ho(Ho({},l),Fe(x,h,t,a,e))};Object(X.useEffect)((function(){if((null==x?void 0:x.html)&&B&&!S){var e=i.replace(/\/$/,"");j(e),k(!1),b({url:e})}}),[null==x?void 0:x.html,i]),Object(X.useEffect)((function(){if(x&&!w&&(b(T()),u)){var t=Ie(e,T());t&&u(t)}}),[x,w]);var z=Object(K.useBlockProps)();if(S)return Object(X.createElement)("div",z,Object(X.createElement)(xo,null));var N=Object(Q.sprintf)(Object(Q.__)("%s URL"),h);if(!x||B||w)return Object(X.createElement)("div",z,Object(X.createElement)(So,{icon:g,label:N,onSubmit:function(e){e&&e.preventDefault(),k(!1),b({url:v})},value:v,cannotEmbed:B,onChange:function(e){return j(e.target.value)},fallback:function(){return function(e,t){var r=Object(X.createElement)("a",{href:e},e);t(Object(Y.createBlock)("core/paragraph",{content:Object(X.renderToString)(r)}))}(v,u)},tryAgain:function(){E("core","getEmbedPreview",[v])}}));var M=T(),R=M.caption,V=M.type,A=M.allowResponsive,H=M.className,L=ne()(H,e.className);return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(Co,{showEditButton:x&&!B,themeSupportsResponsive:P,blockSupportsResponsive:a,allowResponsive:A,getResponsiveHelp:Lo,toggleResponsive:function(){var e=l.allowResponsive,t=l.className,r=x.html,n=!e;b({allowResponsive:n,className:Ge(r,t,a&&n)})},switchBackToURLInput:function(){return k(!0)}}),Object(X.createElement)("div",z,Object(X.createElement)(Vo,{preview:x,previewable:o,className:L,url:v,type:V,caption:R,onCaptionChange:function(e){return b({caption:e})},isSelected:s,icon:g,label:N,insertBlocksAfter:m})))};var Do={from:[{type:"raw",isMatch:function(e){return"P"===e.nodeName&&/^\s*(https?:\/\/\S+)\s*$/i.test(e.textContent)},transform:function(e){return Object(Y.createBlock)("core/embed",{url:e.textContent.trim()})}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.url,r=e.caption,n=Object(X.createElement)("a",{href:t},r||t);return Object(Y.createBlock)("core/paragraph",{content:Object(X.renderToString)(n)})}}]},Go=Object(X.createElement)(me.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(me.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zm-6-9.5L16 12l-2.5 2.8 1.1 1L18 12l-3.5-3.5-1 1zm-3 0l-1-1L6 12l3.5 3.8 1.1-1L8 12l2.5-2.5z"})),Fo=Object(X.createElement)(me.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(me.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zM13.2 7.7c-.4.4-.7 1.1-.7 1.9v3.7c-.4-.3-.8-.4-1.3-.4-1.2 0-2.2 1-2.2 2.2 0 1.2 1 2.2 2.2 2.2.5 0 1-.2 1.4-.5.9-.6 1.4-1.6 1.4-2.6V9.6c0-.4.1-.6.2-.8.3-.3 1-.3 1.6-.3h.2V7h-.2c-.7 0-1.8 0-2.6.7z"})),Uo=Object(X.createElement)(me.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(me.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9.2 4.5H19c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V9.8l4.6-5.3zm9.8 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"})),qo=Object(X.createElement)(me.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(me.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zM10 15l5-3-5-3v6z"})),Wo={foreground:"#1da1f2",src:Object(X.createElement)(me.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(me.G,null,Object(X.createElement)(me.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"})))},Zo={foreground:"#ff0000",src:Object(X.createElement)(me.SVG,{viewBox:"0 0 24 24"},Object(X.createElement)(me.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"}))},$o={foreground:"#3b5998",src:Object(X.createElement)(me.SVG,{viewBox:"0 0 24 24"},Object(X.createElement)(me.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"}))},Ko=Object(X.createElement)(me.SVG,{viewBox:"0 0 24 24"},Object(X.createElement)(me.G,null,Object(X.createElement)(me.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"}))),Yo={foreground:"#0073AA",src:Object(X.createElement)(me.SVG,{viewBox:"0 0 24 24"},Object(X.createElement)(me.G,null,Object(X.createElement)(me.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"})))},Jo={foreground:"#1db954",src:Object(X.createElement)(me.SVG,{viewBox:"0 0 24 24"},Object(X.createElement)(me.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"}))},Qo=Object(X.createElement)(me.SVG,{viewBox:"0 0 24 24"},Object(X.createElement)(me.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"})),Xo={foreground:"#1ab7ea",src:Object(X.createElement)(me.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(me.G,null,Object(X.createElement)(me.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"})))},ea=Object(X.createElement)(me.SVG,{viewBox:"0 0 24 24"},Object(X.createElement)(me.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"})),ta={foreground:"#35465c",src:Object(X.createElement)(me.SVG,{viewBox:"0 0 24 24"},Object(X.createElement)(me.Path,{d:"M19 3H5a2 2 0 00-2 2v14c0 1.1.9 2 2 2h14a2 2 0 002-2V5a2 2 0 00-2-2zm-5.69 14.66c-2.72 0-3.1-1.9-3.1-3.16v-3.56H8.49V8.99c1.7-.62 2.54-1.99 2.64-2.87 0-.06.06-.41.06-.58h1.9v3.1h2.17v2.3h-2.18v3.1c0 .47.13 1.3 1.2 1.26h1.1v2.36c-1.01.02-2.07 0-2.07 0z"}))},ra=Object(X.createElement)(me.SVG,{viewBox:"0 0 24 24"},Object(X.createElement)(me.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(X.createElement)(me.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(X.createElement)(me.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"})),na=Object(X.createElement)(me.SVG,{viewBox:"0 0 24 24"},Object(X.createElement)(me.Path,{d:"m.0206909 21 19.8160091-13.07806 3.5831 6.20826z",fill:"#4bc7ee"}),Object(X.createElement)(me.Path,{d:"m23.7254 19.0205-10.1074-17.18468c-.6421-1.114428-1.7087-1.114428-2.3249 0l-11.2931 19.16418h22.5655c1.279 0 1.8019-.8905 1.1599-1.9795z",fill:"#d4cdcb"}),Object(X.createElement)(me.Path,{d:"m.0206909 21 15.2439091-16.38571 4.3029 7.32271z",fill:"#c3d82e"}),Object(X.createElement)(me.Path,{d:"m13.618 1.83582c-.6421-1.114428-1.7087-1.114428-2.3249 0l-11.2931 19.16418 15.2646-16.38573z",fill:"#e4ecb0"}),Object(X.createElement)(me.Path,{d:"m.0206909 21 19.5468091-9.063 1.6621 2.8344z",fill:"#209dbd"}),Object(X.createElement)(me.Path,{d:"m.0206909 21 17.9209091-11.82623 1.6259 2.76323z",fill:"#7cb3c9"})),ca=Object(X.createElement)(me.SVG,{viewBox:"0 0 24 24"},Object(X.createElement)(me.Path,{d:"m12.1479 18.5957c-2.4949 0-4.28131-1.7558-4.28131-4.0658 0-2.2176 1.78641-4.0965 4.09651-4.0965 2.2793 0 4.0349 1.7864 4.0349 4.1581 0 2.2794-1.7556 4.0042-3.8501 4.0042zm8.3521-18.5957-4.5329 1v7c-1.1088-1.41691-2.8028-1.8787-4.8049-1.8787-2.09443 0-3.97329.76993-5.5133 2.27917-1.72483 1.66323-2.6489 3.78863-2.6489 6.16033 0 2.5873.98562 4.8049 2.89526 6.499 1.44763 1.2936 3.17251 1.9402 5.17454 1.9402 1.9713 0 3.4498-.5236 4.8973-1.9402v1.9402h4.5329c0-7.6359 0-15.3641 0-23z",fill:"#333436"})),oa=[{name:"twitter",title:"Twitter",icon:Wo,keywords:["tweet",Object(Q.__)("social")],description:Object(Q.__)("Embed a tweet."),patterns:[/^https?:\/\/(www\.)?twitter\.com\/.+/i],attributes:{providerNameSlug:"twitter",responsive:!0}},{name:"youtube",title:"YouTube",icon:Zo,keywords:[Object(Q.__)("music"),Object(Q.__)("video")],description:Object(Q.__)("Embed a YouTube video."),patterns:[/^https?:\/\/((m|www)\.)?youtube\.com\/.+/i,/^https?:\/\/youtu\.be\/.+/i],attributes:{providerNameSlug:"youtube",responsive:!0}},{name:"facebook",title:"Facebook",icon:$o,keywords:[Object(Q.__)("social")],description:Object(Q.__)("Embed a Facebook post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"facebook",previewable:!1,responsive:!0}},{name:"instagram",title:"Instagram",icon:Ko,keywords:[Object(Q.__)("image"),Object(Q.__)("social")],description:Object(Q.__)("Embed an Instagram post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"instagram",responsive:!0}},{name:"wordpress",title:"WordPress",icon:Yo,keywords:[Object(Q.__)("post"),Object(Q.__)("blog")],description:Object(Q.__)("Embed a WordPress post."),attributes:{providerNameSlug:"wordpress"}},{name:"soundcloud",title:"SoundCloud",icon:Fo,keywords:[Object(Q.__)("music"),Object(Q.__)("audio")],description:Object(Q.__)("Embed SoundCloud content."),patterns:[/^https?:\/\/(www\.)?soundcloud\.com\/.+/i],attributes:{providerNameSlug:"soundcloud",responsive:!0}},{name:"spotify",title:"Spotify",icon:Jo,keywords:[Object(Q.__)("music"),Object(Q.__)("audio")],description:Object(Q.__)("Embed Spotify content."),patterns:[/^https?:\/\/(open|play)\.spotify\.com\/.+/i],attributes:{providerNameSlug:"spotify",responsive:!0}},{name:"flickr",title:"Flickr",icon:Qo,keywords:[Object(Q.__)("image")],description:Object(Q.__)("Embed Flickr content."),patterns:[/^https?:\/\/(www\.)?flickr\.com\/.+/i,/^https?:\/\/flic\.kr\/.+/i],attributes:{providerNameSlug:"flickr",responsive:!0}},{name:"vimeo",title:"Vimeo",icon:Xo,keywords:[Object(Q.__)("video")],description:Object(Q.__)("Embed a Vimeo video."),patterns:[/^https?:\/\/(www\.)?vimeo\.com\/.+/i],attributes:{providerNameSlug:"vimeo",responsive:!0}},{name:"animoto",title:"Animoto",icon:na,description:Object(Q.__)("Embed an Animoto video."),patterns:[/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i],attributes:{providerNameSlug:"animoto",responsive:!0}},{name:"cloudup",title:"Cloudup",icon:Go,description:Object(Q.__)("Embed Cloudup content."),patterns:[/^https?:\/\/cloudup\.com\/.+/i],attributes:{providerNameSlug:"cloudup",responsive:!0}},{name:"collegehumor",title:"CollegeHumor",icon:qo,description:Object(Q.__)("Embed CollegeHumor content."),scope:["block"],patterns:[],attributes:{providerNameSlug:"collegehumor",responsive:!0}},{name:"crowdsignal",title:"Crowdsignal",icon:Go,keywords:["polldaddy",Object(Q.__)("survey")],description:Object(Q.__)("Embed Crowdsignal (formerly Polldaddy) content."),patterns:[/^https?:\/\/((.+\.)?polldaddy\.com|poll\.fm|.+\.survey\.fm)\/.+/i],attributes:{providerNameSlug:"crowdsignal",responsive:!0}},{name:"dailymotion",title:"Dailymotion",icon:ca,keywords:[Object(Q.__)("video")],description:Object(Q.__)("Embed a Dailymotion video."),patterns:[/^https?:\/\/(www\.)?dailymotion\.com\/.+/i],attributes:{providerNameSlug:"dailymotion",responsive:!0}},{name:"imgur",title:"Imgur",icon:Uo,description:Object(Q.__)("Embed Imgur content."),patterns:[/^https?:\/\/(.+\.)?imgur\.com\/.+/i],attributes:{providerNameSlug:"imgur",responsive:!0}},{name:"issuu",title:"Issuu",icon:Go,description:Object(Q.__)("Embed Issuu content."),patterns:[/^https?:\/\/(www\.)?issuu\.com\/.+/i],attributes:{providerNameSlug:"issuu",responsive:!0}},{name:"kickstarter",title:"Kickstarter",icon:Go,description:Object(Q.__)("Embed Kickstarter content."),patterns:[/^https?:\/\/(www\.)?kickstarter\.com\/.+/i,/^https?:\/\/kck\.st\/.+/i],attributes:{providerNameSlug:"kickstarter",responsive:!0}},{name:"meetup-com",title:"Meetup.com",icon:Go,description:Object(Q.__)("Embed Meetup.com content."),patterns:[/^https?:\/\/(www\.)?meetu(\.ps|p\.com)\/.+/i],attributes:{providerNameSlug:"meetup-com",responsive:!0}},{name:"mixcloud",title:"Mixcloud",icon:Fo,keywords:[Object(Q.__)("music"),Object(Q.__)("audio")],description:Object(Q.__)("Embed Mixcloud content."),patterns:[/^https?:\/\/(www\.)?mixcloud\.com\/.+/i],attributes:{providerNameSlug:"mixcloud",responsive:!0}},{name:"reddit",title:"Reddit",icon:ea,description:Object(Q.__)("Embed a Reddit thread."),patterns:[/^https?:\/\/(www\.)?reddit\.com\/.+/i],attributes:{providerNameSlug:"reddit",responsive:!0}},{name:"reverbnation",title:"ReverbNation",icon:Fo,description:Object(Q.__)("Embed ReverbNation content."),patterns:[/^https?:\/\/(www\.)?reverbnation\.com\/.+/i],attributes:{providerNameSlug:"reverbnation",responsive:!0}},{name:"screencast",title:"Screencast",icon:qo,description:Object(Q.__)("Embed Screencast content."),patterns:[/^https?:\/\/(www\.)?screencast\.com\/.+/i],attributes:{providerNameSlug:"screencast",responsive:!0}},{name:"scribd",title:"Scribd",icon:Go,description:Object(Q.__)("Embed Scribd content."),patterns:[/^https?:\/\/(www\.)?scribd\.com\/.+/i],attributes:{providerNameSlug:"scribd",responsive:!0}},{name:"slideshare",title:"Slideshare",icon:Go,description:Object(Q.__)("Embed Slideshare content."),patterns:[/^https?:\/\/(.+?\.)?slideshare\.net\/.+/i],attributes:{providerNameSlug:"slideshare",responsive:!0}},{name:"smugmug",title:"SmugMug",icon:Uo,description:Object(Q.__)("Embed SmugMug content."),patterns:[/^https?:\/\/(.+\.)?smugmug\.com\/.*/i],attributes:{providerNameSlug:"smugmug",previewable:!1,responsive:!0}},{name:"speaker-deck",title:"Speaker Deck",icon:Go,description:Object(Q.__)("Embed Speaker Deck content."),patterns:[/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i],attributes:{providerNameSlug:"speaker-deck",responsive:!0}},{name:"tiktok",title:"TikTok",icon:qo,keywords:[Object(Q.__)("video")],description:Object(Q.__)("Embed a TikTok video."),patterns:[/^https?:\/\/(www\.)?tiktok\.com\/.+/i],attributes:{providerNameSlug:"tiktok",responsive:!0}},{name:"ted",title:"TED",icon:qo,description:Object(Q.__)("Embed a TED video."),patterns:[/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i],attributes:{providerNameSlug:"ted",responsive:!0}},{name:"tumblr",title:"Tumblr",icon:ta,keywords:[Object(Q.__)("social")],description:Object(Q.__)("Embed a Tumblr post."),patterns:[/^https?:\/\/(www\.)?tumblr\.com\/.+/i],attributes:{providerNameSlug:"tumblr",responsive:!0}},{name:"videopress",title:"VideoPress",icon:qo,keywords:[Object(Q.__)("video")],description:Object(Q.__)("Embed a VideoPress video."),patterns:[/^https?:\/\/videopress\.com\/.+/i],attributes:{providerNameSlug:"videopress",responsive:!0}},{name:"wordpress-tv",title:"WordPress.tv",icon:qo,description:Object(Q.__)("Embed a WordPress.tv video."),patterns:[/^https?:\/\/wordpress\.tv\/.+/i],attributes:{providerNameSlug:"wordpress-tv",responsive:!0}},{name:"amazon-kindle",title:"Amazon Kindle",icon:ra,keywords:[Object(Q.__)("ebook")],description:Object(Q.__)("Embed Amazon Kindle content."),patterns:[/^https?:\/\/([a-z0-9-]+\.)?(amazon|amzn)(\.[a-z]{2,4})+\/.+/i,/^https?:\/\/(www\.)?(a\.co|z\.cn)\/.+/i],attributes:{providerNameSlug:"amazon-kindle"}}],aa=[{attributes:{url:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption"},type:{type:"string"},providerNameSlug:{type:"string"},allowResponsive:{type:"boolean",default:!0},responsive:{type:"boolean",default:!1},previewable:{type:"boolean",default:!0}},save:function(e){var t,r=e.attributes,n=r.url,c=r.caption,o=r.type,a=r.providerNameSlug;if(!n)return null;var i=ne()("wp-block-embed",(t={},Object(Z.a)(t,"is-type-".concat(o),o),Object(Z.a)(t,"is-provider-".concat(a),a),t));return Object(X.createElement)("figure",{className:i},"\n".concat(n,"\n"),!K.RichText.isEmpty(c)&&Object(X.createElement)(K.RichText.Content,{tagName:"figcaption",value:c}))}}],ia={apiVersion:2,name:"core/embed",category:"embed",attributes:{url:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption"},type:{type:"string"},providerNameSlug:{type:"string"},allowResponsive:{type:"boolean",default:!0},responsive:{type:"boolean",default:!1},previewable:{type:"boolean",default:!0}},supports:{align:!0,reusable:!1,html:!1}},la=ia.name,sa={title:Object(Q._x)("Embed","block title"),description:Object(Q.__)("Add a block that displays content pulled from other sites, like Twitter, Instagram or YouTube."),icon:Go,edit:Io,save:function(e){var t,r=e.attributes,n=r.url,c=r.caption,o=r.type,a=r.providerNameSlug;if(!n)return null;var i=Ne()("wp-block-embed",(t={},Object(Z.a)(t,"is-type-".concat(o),o),Object(Z.a)(t,"is-provider-".concat(a),a),Object(Z.a)(t,"wp-block-embed-".concat(a),a),t));return Object(X.createElement)("figure",K.useBlockProps.save({className:i}),Object(X.createElement)("div",{className:"wp-block-embed__wrapper"},"\n".concat(n,"\n")),!K.RichText.isEmpty(c)&&Object(X.createElement)(K.RichText.Content,{tagName:"figcaption",value:c}))},transforms:Do,variations:oa,deprecated:aa},ua=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M19 6.2h-5.9l-.6-1.1c-.3-.7-1-1.1-1.8-1.1H5c-1.1 0-2 .9-2 2v11.8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8.2c0-1.1-.9-2-2-2zm.5 11.6c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h5.8c.2 0 .4.1.4.3l1 2H19c.3 0 .5.2.5.5v9.5z"}));function ba(e){var t=e.hrefs,r=e.openInNewWindow,n=e.showDownloadButton,c=e.changeLinkDestinationOption,o=e.changeOpenInNewWindow,a=e.changeShowDownloadButton,i=t.href,l=t.textLinkHref,s=t.attachmentPage,u=[{value:i,label:Object(Q.__)("URL")}];return s&&(u=[{value:i,label:Object(Q.__)("Media file")},{value:s,label:Object(Q.__)("Attachment page")}]),Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Text link settings")},Object(X.createElement)(me.SelectControl,{label:Object(Q.__)("Link to"),value:l,options:u,onChange:c}),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Open in new tab"),checked:r,onChange:o})),Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Download button settings")},Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Show download button"),checked:n,onChange:a}))))}var ma=Object(me.withNotices)((function(e){var t=e.isSelected,r=e.attributes,n=e.setAttributes,c=e.noticeUI,o=e.noticeOperations,a=r.id,i=r.fileName,l=r.href,s=r.textLinkHref,u=r.textLinkTarget,b=r.showDownloadButton,m=r.downloadButtonText,d=Object(X.useState)(!1),p=Object(be.a)(d,2),g=p[0],h=p[1],f=Object(X.useState)(!1),O=Object(be.a)(f,2),v=O[0],j=O[1],y=Object(de.useSelect)((function(e){return{media:void 0===a?void 0:e("core").getMedia(a),mediaUpload:e("core/block-editor").getSettings().mediaUpload}}),[a]),_=y.media,w=y.mediaUpload;function k(e){e&&e.url&&(h(!1),n({href:e.url,fileName:e.title,textLinkHref:e.url,id:e.id}))}function E(e){h(!0),o.removeAllNotices(),o.createErrorNotice(e)}Object(X.useEffect)((function(){if(Object(Ce.isBlobURL)(l)){var e=Object(Ce.getBlobByURL)(l);w({filesList:[e],onFileChange:function(e){return k(Object(be.a)(e,1)[0])},onError:function(e){h(!0),o.createErrorNotice(e)}}),Object(Ce.revokeBlobURL)(l)}void 0===m&&n({downloadButtonText:Object(Q._x)("Download","button label")})}),[]),Object(X.useEffect)((function(){j(!1)}),[t]);var C=_&&_.link,x=Object(K.useBlockProps)({className:ne()(Object(me.__unstableUseAnimate)({type:Object(Ce.isBlobURL)(l)?"loading":null}),{"is-transient":Object(Ce.isBlobURL)(l)})});return!l||g?Object(X.createElement)("div",x,Object(X.createElement)(K.MediaPlaceholder,{icon:Object(X.createElement)(K.BlockIcon,{icon:ua}),labels:{title:Object(Q.__)("File"),instructions:Object(Q.__)("Upload a file or pick one from your media library.")},onSelect:k,notices:c,onError:E,accept:"*"})):Object(X.createElement)(X.Fragment,null,Object(X.createElement)(ba,Object(ue.a)({hrefs:{href:l,textLinkHref:s,attachmentPage:C}},{openInNewWindow:!!u,showDownloadButton:b,changeLinkDestinationOption:function(e){n({textLinkHref:e})},changeOpenInNewWindow:function(e){n({textLinkTarget:!!e&&"_blank"})},changeShowDownloadButton:function(e){n({showDownloadButton:e})}})),Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(K.MediaReplaceFlow,{mediaId:a,mediaURL:l,accept:"*",onSelect:k,onError:E})),Object(X.createElement)("div",x,Object(X.createElement)("div",{className:"wp-block-file__content-wrapper"},Object(X.createElement)("div",{className:"wp-block-file__textlink"},Object(X.createElement)(K.RichText,{tagName:"div",value:i,placeholder:Object(Q.__)("Write file name…"),withoutInteractiveFormatting:!0,onChange:function(e){return n({fileName:e})}})),b&&Object(X.createElement)("div",{className:"wp-block-file__button-richtext-wrapper"},Object(X.createElement)(K.RichText,{tagName:"div",className:"wp-block-file__button",value:m,withoutInteractiveFormatting:!0,placeholder:Object(Q.__)("Add text…"),onChange:function(e){return n({downloadButtonText:e})}}))),t&&Object(X.createElement)(me.ClipboardButton,{isSecondary:!0,text:l,className:"wp-block-file__copy-url-button",onCopy:function(){j(!0)},onFinishCopy:function(){j(!1)},disabled:Object(Ce.isBlobURL)(l)},v?Object(Q.__)("Copied!"):Object(Q.__)("Copy URL"))))}));var da={from:[{type:"files",isMatch:function(e){return e.length>0},priority:15,transform:function(e){var t=[];return e.forEach((function(e){var r=Object(Ce.createBlobURL)(e);t.push(Object(Y.createBlock)("core/file",{href:r,fileName:e.name,textLinkHref:r}))})),t}},{type:"block",blocks:["core/audio"],transform:function(e){return Object(Y.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id,anchor:e.anchor})}},{type:"block",blocks:["core/video"],transform:function(e){return Object(Y.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id,anchor:e.anchor})}},{type:"block",blocks:["core/image"],transform:function(e){return Object(Y.createBlock)("core/file",{href:e.url,fileName:e.caption,textLinkHref:e.url,id:e.id,anchor:e.anchor})}}],to:[{type:"block",blocks:["core/audio"],isMatch:function(e){var t=e.id;if(!t)return!1;var r=(0,Object(de.select)("core").getMedia)(t);return!!r&&Object(J.includes)(r.mime_type,"audio")},transform:function(e){return Object(Y.createBlock)("core/audio",{src:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})}},{type:"block",blocks:["core/video"],isMatch:function(e){var t=e.id;if(!t)return!1;var r=(0,Object(de.select)("core").getMedia)(t);return!!r&&Object(J.includes)(r.mime_type,"video")},transform:function(e){return Object(Y.createBlock)("core/video",{src:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})}},{type:"block",blocks:["core/image"],isMatch:function(e){var t=e.id;if(!t)return!1;var r=(0,Object(de.select)("core").getMedia)(t);return!!r&&Object(J.includes)(r.mime_type,"image")},transform:function(e){return Object(Y.createBlock)("core/image",{url:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})}}]},pa={apiVersion:2,name:"core/file",category:"media",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]"}},supports:{anchor:!0,align:!0}},ga=pa.name,ha={title:Object(Q.__)("File"),description:Object(Q.__)("Add a link to a downloadable file."),icon:ua,keywords:[Object(Q.__)("document"),Object(Q.__)("pdf"),Object(Q.__)("download")],transforms:da,edit:ma,save:function(e){var t=e.attributes,r=t.href,n=t.fileName,c=t.textLinkHref,o=t.textLinkTarget,a=t.showDownloadButton,i=t.downloadButtonText;return r&&Object(X.createElement)("div",K.useBlockProps.save(),!K.RichText.isEmpty(n)&&Object(X.createElement)("a",{href:c,target:o,rel:!!o&&"noreferrer noopener"},Object(X.createElement)(K.RichText.Content,{value:n})),a&&Object(X.createElement)("a",{href:r,className:"wp-block-file__button",download:!0},Object(X.createElement)(K.RichText.Content,{value:i})))}},fa=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M4.8 11.4H2.1V9H1v6h1.1v-2.6h2.7V15h1.1V9H4.8v2.4zm1.9-1.3h1.7V15h1.1v-4.9h1.7V9H6.7v1.1zM16.2 9l-1.5 2.7L13.3 9h-.9l-.8 6h1.1l.5-4 1.5 2.8 1.5-2.8.5 4h1.1L17 9h-.8zm3.8 5V9h-1.1v6h3.6v-1H20z"}));var Oa={from:[{type:"block",blocks:["core/code"],transform:function(e){var t=e.content;return Object(Y.createBlock)("core/html",{content:t})}}]},va={apiVersion:2,name:"core/html",category:"widgets",attributes:{content:{type:"string",source:"html"}},supports:{customClassName:!1,className:!1,html:!1}},ja=va.name,ya={title:Object(Q.__)("Custom HTML"),description:Object(Q.__)("Add custom HTML code and preview it as you edit."),icon:fa,keywords:[Object(Q.__)("embed")],example:{attributes:{content:"<marquee>"+Object(Q.__)("Welcome to the wonderful world of blocks…")+"</marquee>"}},edit:function(e){var t=e.attributes,r=e.setAttributes,n=e.isSelected,c=Object(X.useState)(),o=Object(be.a)(c,2),a=o[0],i=o[1],l=Object(de.useSelect)((function(e){return["\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(W.a)(Object(K.transformStyles)(e("core/block-editor").getSettings().styles)))}),[]);return Object(X.createElement)("div",Object(K.useBlockProps)(),Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(me.ToolbarGroup,null,Object(X.createElement)(me.ToolbarButton,{className:"components-tab-button",isPressed:!a,onClick:function(){i(!1)}},Object(X.createElement)("span",null,"HTML")),Object(X.createElement)(me.ToolbarButton,{className:"components-tab-button",isPressed:a,onClick:function(){i(!0)}},Object(X.createElement)("span",null,Object(Q.__)("Preview"))))),Object(X.createElement)(me.Disabled.Consumer,null,(function(e){return a||e?Object(X.createElement)(X.Fragment,null,Object(X.createElement)(me.SandBox,{html:t.content,styles:l}),!n&&Object(X.createElement)("div",{className:"block-library-html__preview-overlay"})):Object(X.createElement)(K.PlainText,{value:t.content,onChange:function(e){return r({content:e})},placeholder:Object(Q.__)("Write HTML…"),"aria-label":Object(Q.__)("HTML")})})))},save:function(e){var t=e.attributes;return Object(X.createElement)(X.RawHTML,null,t.content)},transforms:Oa},_a=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ee.Path,{d:"M4 17h7V6H4v11zm9-10v1.5h7V7h-7zm0 5.5h7V11h-7v1.5zm0 4h7V15h-7v1.5z"})),wa=Object(X.createElement)(me.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(me.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(X.createElement)(me.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(X.createElement)(me.Path,{d:"M5 19h8l-1.59-2H9.24l-.84 1.1L7 16.3 5 19z"})),ka=["image","video"];function Ea(e,t){return e?{backgroundImage:"url(".concat(e,")"),backgroundPosition:t?"".concat(100*t.x,"% ").concat(100*t.y,"%"):"50% 50%"}:{}}function Ca(e){var t=e.isSelected,r=e.isStackedOnMobile,n=Object(or.a)(e,["isSelected","isStackedOnMobile"]),c=Object(xe.useViewportMatch)("small","<");return Object(X.createElement)(me.ResizableBox,Object(ue.a)({showHandle:t&&(!c||!r)},n))}function xa(e){var t=e.mediaId,r=e.mediaUrl,n=e.onSelectMedia;return Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(K.MediaReplaceFlow,{mediaId:t,mediaURL:r,allowedTypes:ka,accept:"image/*,video/*",onSelect:n}))}function Sa(e){var t=e.className,r=e.noticeOperations,n=e.noticeUI,c=e.onSelectMedia;return Object(X.createElement)(K.MediaPlaceholder,{icon:Object(X.createElement)(K.BlockIcon,{icon:wa}),labels:{title:Object(Q.__)("Media area")},className:t,onSelect:c,accept:"image/*,video/*",allowedTypes:ka,notices:n,onError:function(e){r.removeAllNotices(),r.createErrorNotice(e)}})}var Pa=Object(me.withNotices)((function(e){var t=e.className,r=e.commitWidthChange,n=e.focalPoint,c=e.imageFill,o=e.isSelected,a=e.isStackedOnMobile,i=e.mediaAlt,l=e.mediaId,s=e.mediaPosition,u=e.mediaType,b=e.mediaUrl,m=e.mediaWidth,d=e.onSelectMedia,p=e.onWidthChange,g=Object(de.useDispatch)("core/block-editor").toggleSelection;if(u&&b){var h={right:"left"===s,left:"right"===s},f="image"===u&&c?Ea(b,n):{},O={image:function(){return Object(X.createElement)("img",{src:b,alt:i})},video:function(){return Object(X.createElement)("video",{controls:!0,src:b})}};return Object(X.createElement)(Ca,{as:"figure",className:ne()(t,"editor-media-container__resizer"),style:f,size:{width:m+"%"},minWidth:"10%",maxWidth:"100%",enable:h,onResizeStart:function(){g(!1)},onResize:function(e,t,r){p(parseInt(r.style.width))},onResizeStop:function(e,t,n){g(!0),r(parseInt(n.style.width))},axis:"x",isSelected:o,isStackedOnMobile:a},Object(X.createElement)(xa,{onSelectMedia:d,mediaUrl:b,mediaId:l}),(O[u]||J.noop)())}return Object(X.createElement)(Sa,e)}));function Ba(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ta(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ba(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ba(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var za=function(e){if(!e.customBackgroundColor)return e;var t={color:{background:e.customBackgroundColor}};return Ta(Ta({},Object(J.omit)(e,["customBackgroundColor"])),{},{style:t})},Na={align:{type:"string",default:"wide"},backgroundColor:{type:"string"},mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:""},mediaPosition:{type:"string",default:"left"},mediaId:{type:"number"},mediaType:{type:"string"},mediaWidth:{type:"number",default:50},isStackedOnMobile:{type:"boolean",default:!0}},Ma=[{attributes:Ta(Ta({},Na),{},{customBackgroundColor:{type:"string"},mediaLink:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure a",attribute:"target"},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"},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"}}),migrate:za,save:function(e){var t,r=e.attributes,n=r.backgroundColor,c=r.customBackgroundColor,o=r.isStackedOnMobile,a=r.mediaAlt,i=r.mediaPosition,l=r.mediaType,s=r.mediaUrl,u=r.mediaWidth,b=r.mediaId,m=r.verticalAlignment,d=r.imageFill,p=r.focalPoint,g=r.linkClass,h=r.href,f=r.linkTarget,O=r.rel,v=Object(J.isEmpty)(O)?void 0:O,j=Object(X.createElement)("img",{src:s,alt:a,className:b&&"image"===l?"wp-image-".concat(b):null});h&&(j=Object(X.createElement)("a",{className:g,href:h,target:f,rel:v},j));var y,_={image:function(){return j},video:function(){return Object(X.createElement)("video",{controls:!0,src:s})}},w=Object(K.getColorClassName)("background-color",n),k=ne()((t={"has-media-on-the-right":"right"===i,"has-background":w||c},Object(Z.a)(t,w,w),Object(Z.a)(t,"is-stacked-on-mobile",o),Object(Z.a)(t,"is-vertically-aligned-".concat(m),m),Object(Z.a)(t,"is-image-fill",d),t)),E=d?Ea(s,p):{};50!==u&&(y="right"===i?"auto ".concat(u,"%"):"".concat(u,"% auto"));var C={backgroundColor:w?void 0:c,gridTemplateColumns:y};return Object(X.createElement)("div",{className:k,style:C},Object(X.createElement)("figure",{className:"wp-block-media-text__media",style:E},(_[l]||J.noop)()),Object(X.createElement)("div",{className:"wp-block-media-text__content"},Object(X.createElement)(K.InnerBlocks.Content,null)))}},{attributes:Ta(Ta({},Na),{},{customBackgroundColor:{type:"string"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"}}),migrate:za,save:function(e){var t,r,n=e.attributes,c=n.backgroundColor,o=n.customBackgroundColor,a=n.isStackedOnMobile,i=n.mediaAlt,l=n.mediaPosition,s=n.mediaType,u=n.mediaUrl,b=n.mediaWidth,m=n.mediaId,d=n.verticalAlignment,p=n.imageFill,g=n.focalPoint,h={image:function(){return Object(X.createElement)("img",{src:u,alt:i,className:m&&"image"===s?"wp-image-".concat(m):null})},video:function(){return Object(X.createElement)("video",{controls:!0,src:u})}},f=Object(K.getColorClassName)("background-color",c),O=ne()((t={"has-media-on-the-right":"right"===l},Object(Z.a)(t,f,f),Object(Z.a)(t,"is-stacked-on-mobile",a),Object(Z.a)(t,"is-vertically-aligned-".concat(d),d),Object(Z.a)(t,"is-image-fill",p),t)),v=p?Ea(u,g):{};50!==b&&(r="right"===l?"auto ".concat(b,"%"):"".concat(b,"% auto"));var j={backgroundColor:f?void 0:o,gridTemplateColumns:r};return Object(X.createElement)("div",{className:O,style:j},Object(X.createElement)("figure",{className:"wp-block-media-text__media",style:v},(h[s]||J.noop)()),Object(X.createElement)("div",{className:"wp-block-media-text__content"},Object(X.createElement)(K.InnerBlocks.Content,null)))}},{attributes:Ta(Ta({},Na),{},{customBackgroundColor:{type:"string"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"}}),save:function(e){var t,r,n=e.attributes,c=n.backgroundColor,o=n.customBackgroundColor,a=n.isStackedOnMobile,i=n.mediaAlt,l=n.mediaPosition,s=n.mediaType,u=n.mediaUrl,b=n.mediaWidth,m={image:function(){return Object(X.createElement)("img",{src:u,alt:i})},video:function(){return Object(X.createElement)("video",{controls:!0,src:u})}},d=Object(K.getColorClassName)("background-color",c),p=ne()((t={"has-media-on-the-right":"right"===l},Object(Z.a)(t,d,d),Object(Z.a)(t,"is-stacked-on-mobile",a),t));50!==b&&(r="right"===l?"auto ".concat(b,"%"):"".concat(b,"% auto"));var g={backgroundColor:d?void 0:o,gridTemplateColumns:r};return Object(X.createElement)("div",{className:p,style:g},Object(X.createElement)("figure",{className:"wp-block-media-text__media"},(m[s]||J.noop)()),Object(X.createElement)("div",{className:"wp-block-media-text__content"},Object(X.createElement)(K.InnerBlocks.Content,null)))}}],Ra=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ee.Path,{d:"M4 18h6V6H4v12zm9-10v1.5h7V8h-7zm0 7.5h7V14h-7v1.5z"})),Va=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ee.Path,{d:"M14 6v12h6V6h-6zM4 9.5h7V8H4v1.5zm0 6h7V14H4v1.5z"})),Aa=[["core/paragraph",{fontSize:"large",placeholder:Object(Q._x)("Content…","content placeholder")}]],Ha=function(e){return Math.max(15,Math.min(e,85))};function La(e,t){var r,n,c;return null==e||null===(r=e.media_details)||void 0===r||null===(n=r.sizes)||void 0===n||null===(c=n[t])||void 0===c?void 0:c.source_url}var Ia=function(e){var t,r=e.attributes,n=e.isSelected,c=e.setAttributes,o=r.focalPoint,a=r.href,i=r.imageFill,l=r.isStackedOnMobile,s=r.linkClass,u=r.linkDestination,b=r.linkTarget,m=r.mediaAlt,d=r.mediaId,p=r.mediaPosition,g=r.mediaType,h=r.mediaUrl,f=r.mediaWidth,O=r.rel,v=r.verticalAlignment,j=r.mediaSizeSlug||"full",y=Object(de.useSelect)((function(e){return d&&n?e("core").getMedia(d):null}),[n,d]),_=Object(X.useState)(null),w=Object(be.a)(_,2),k=w[0],E=w[1],C=function(e){var t=e.attributes,r=t.linkDestination,n=t.href,c=e.setAttributes;return function(e){var t,o,a,i,l,s,u;"image"===(t=e.media_type?"image"===e.media_type?"image":"video":e.type)&&(o=(null===(a=e.sizes)||void 0===a||null===(i=a.large)||void 0===i?void 0:i.url)||(null===(l=e.media_details)||void 0===l||null===(s=l.sizes)||void 0===s||null===(u=s.large)||void 0===u?void 0:u.source_url));var b=n;"media"===r&&(b=e.url),"attachment"===r&&(b=e.link),c({mediaAlt:e.alt,mediaId:e.id,mediaType:t,mediaUrl:o||e.url,mediaLink:e.link||void 0,href:b,focalPoint:void 0})}}({attributes:r,setAttributes:c}),x=ne()((t={"has-media-on-the-right":"right"===p,"is-selected":n,"is-stacked-on-mobile":l},Object(Z.a)(t,"is-vertically-aligned-".concat(v),v),Object(Z.a)(t,"is-image-fill",i),t)),S="".concat(k||f,"%"),P="right"===p?"1fr ".concat(S):"".concat(S," 1fr"),B={gridTemplateColumns:P,msGridColumns:P},T=[{icon:Ra,title:Object(Q.__)("Show media on left"),isActive:"left"===p,onClick:function(){return c({mediaPosition:"left"})}},{icon:Va,title:Object(Q.__)("Show media on right"),isActive:"right"===p,onClick:function(){return c({mediaPosition:"right"})}}],z=Object(de.useSelect)((function(e){var t=e("core/block-editor").getSettings();return null==t?void 0:t.imageSizes})),N=Object(J.map)(Object(J.filter)(z,(function(e){var t=e.slug;return La(y,t)})),(function(e){var t=e.name;return{value:e.slug,label:t}})),M=Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Media & Text settings")},Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Stack on mobile"),checked:l,onChange:function(){return c({isStackedOnMobile:!l})}}),"image"===g&&Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Crop image to fill entire column"),checked:i,onChange:function(){return c({imageFill:!i})}}),i&&Object(X.createElement)(me.FocalPointPicker,{label:Object(Q.__)("Focal point picker"),url:h,value:o,onChange:function(e){return c({focalPoint:e})}}),"image"===g&&Object(X.createElement)(me.TextareaControl,{label:Object(Q.__)("Alt text (alternative text)"),value:m,onChange:function(e){c({mediaAlt:e})},help:Object(X.createElement)(X.Fragment,null,Object(X.createElement)(me.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},Object(Q.__)("Describe the purpose of the image")),Object(Q.__)("Leave empty if the image is purely decorative."))}),"image"===g&&Object(X.createElement)(K.__experimentalImageSizeControl,{onChangeImage:function(e){var t=La(y,e);if(!t)return null;c({mediaUrl:t,mediaSizeSlug:e})},slug:j,imageSizeOptions:N,isResizable:!1})),R=Object(K.useBlockProps)({className:x,style:B}),V=Object(K.__experimentalUseInnerBlocksProps)({className:"wp-block-media-text__content"},{template:Aa,templateInsertUpdatesSelection:!1});return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.InspectorControls,null,M),Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(me.ToolbarGroup,{controls:T}),Object(X.createElement)(K.BlockVerticalAlignmentToolbar,{onChange:function(e){c({verticalAlignment:e})},value:v}),"image"===g&&Object(X.createElement)(me.ToolbarGroup,null,Object(X.createElement)(K.__experimentalImageURLInputUI,{url:a||"",onChangeUrl:function(e){c(e)},linkDestination:u,mediaType:g,mediaUrl:y&&y.source_url,mediaLink:y&&y.link,linkTarget:b,linkClass:s,rel:O}))),Object(X.createElement)("div",R,Object(X.createElement)(Pa,Object(ue.a)({className:"wp-block-media-text__media",onSelectMedia:C,onWidthChange:function(e){E(Ha(e))},commitWidthChange:function(e){c({mediaWidth:Ha(e)}),E(Ha(e))}},{focalPoint:o,imageFill:i,isSelected:n,isStackedOnMobile:l,mediaAlt:m,mediaId:d,mediaPosition:p,mediaType:g,mediaUrl:h,mediaWidth:f})),Object(X.createElement)("div",V)))};var Da={from:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.alt,r=e.url,n=e.id,c=e.anchor;return Object(Y.createBlock)("core/media-text",{mediaAlt:t,mediaId:n,mediaUrl:r,mediaType:"image",anchor:c})}},{type:"block",blocks:["core/video"],transform:function(e){var t=e.src,r=e.id,n=e.anchor;return Object(Y.createBlock)("core/media-text",{mediaId:r,mediaUrl:t,mediaType:"video",anchor:n})}}],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,r=e.mediaId,n=e.mediaUrl,c=e.anchor;return Object(Y.createBlock)("core/image",{alt:t,id:r,url:n,anchor:c})}},{type:"block",blocks:["core/video"],isMatch:function(e){var t=e.mediaType;return!e.mediaUrl||"video"===t},transform:function(e){var t=e.mediaId,r=e.mediaUrl,n=e.anchor;return Object(Y.createBlock)("core/video",{id:t,src:r,anchor:n})}}]},Ga={apiVersion:2,name:"core/media-text",category:"media",attributes:{align:{type:"string",default:"wide"},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"},mediaLink:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure a",attribute:"target"},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"},mediaType:{type:"string"},mediaWidth:{type:"number",default:50},mediaSizeSlug:{type:"string"},isStackedOnMobile:{type:"boolean",default:!0},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0}}},Fa=Ga.name,Ua={title:Object(Q.__)("Media & Text"),description:Object(Q.__)("Set media and words side-by-side for a richer layout."),icon:_a,keywords:[Object(Q.__)("image"),Object(Q.__)("video")],example:{attributes:{mediaType:"image",mediaUrl:"https://s.w.org/images/core/5.3/Biologia_Centrali-Americana_-_Cantorchilus_semibadius_1902.jpg"},innerBlocks:[{name:"core/paragraph",attributes:{content:Object(Q.__)("The wren<br>Earns his living<br>Noiselessly.")}},{name:"core/paragraph",attributes:{content:Object(Q.__)("— Kobayashi Issa (一茶)")}}]},transforms:Da,edit:Ia,save:function(e){var t,r,n=e.attributes,c=n.isStackedOnMobile,o=n.mediaAlt,a=n.mediaPosition,i=n.mediaType,l=n.mediaUrl,s=n.mediaWidth,u=n.mediaId,b=n.verticalAlignment,m=n.imageFill,d=n.focalPoint,p=n.linkClass,g=n.href,h=n.linkTarget,f=n.rel,O=n.mediaSizeSlug||"full",v=Object(J.isEmpty)(f)?void 0:f,j=ne()((t={},Object(Z.a)(t,"wp-image-".concat(u),u&&"image"===i),Object(Z.a)(t,"size-".concat(O),u&&"image"===i),t)),y=Object(X.createElement)("img",{src:l,alt:o,className:j||null});g&&(y=Object(X.createElement)("a",{className:p,href:g,target:h,rel:v},y));var _,w={image:function(){return y},video:function(){return Object(X.createElement)("video",{controls:!0,src:l})}},k=ne()((r={"has-media-on-the-right":"right"===a,"is-stacked-on-mobile":c},Object(Z.a)(r,"is-vertically-aligned-".concat(b),b),Object(Z.a)(r,"is-image-fill",m),r)),E=m?Ea(l,d):{};50!==s&&(_="right"===a?"auto ".concat(s,"%"):"".concat(s,"% auto"));var C={gridTemplateColumns:_};return Object(X.createElement)("div",K.useBlockProps.save({className:k,style:C}),Object(X.createElement)("figure",{className:"wp-block-media-text__media",style:E},(w[i]||J.noop)()),Object(X.createElement)("div",{className:"wp-block-media-text__content"},Object(X.createElement)(K.InnerBlocks.Content,null)))},deprecated:Ma},qa=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12.9c0 .6.5 1.1 1.1 1.1.3 0 .5-.1.8-.3L8.5 17H18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H7.9l-2.4 2.4V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v9z"}));var Wa={apiVersion:2,name:"core/latest-comments",category:"widgets",attributes:{commentsToShow:{type:"number",default:5,minimum:1,maximum:100},displayAvatar:{type:"boolean",default:!0},displayDate:{type:"boolean",default:!0},displayExcerpt:{type:"boolean",default:!0}},supports:{align:!0,html:!1}},Za=Wa.name,$a={title:Object(Q.__)("Latest Comments"),description:Object(Q.__)("Display a list of your most recent comments."),icon:qa,keywords:[Object(Q.__)("recent comments")],example:{},edit:function(e){var t=e.attributes,r=e.setAttributes,n=t.commentsToShow,c=t.displayAvatar,o=t.displayDate,a=t.displayExcerpt;return Object(X.createElement)("div",Object(K.useBlockProps)(),Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Latest comments settings")},Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Display avatar"),checked:c,onChange:function(){return r({displayAvatar:!c})}}),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Display date"),checked:o,onChange:function(){return r({displayDate:!o})}}),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Display excerpt"),checked:a,onChange:function(){return r({displayExcerpt:!a})}}),Object(X.createElement)(me.RangeControl,{label:Object(Q.__)("Number of comments"),value:n,onChange:function(e){return r({commentsToShow:e})},min:1,max:100,required:!0}))),Object(X.createElement)(me.Disabled,null,Object(X.createElement)(Qr.a,{block:"core/latest-comments",attributes:t})))}},Ka=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12zM7 11h2V9H7v2zm0 4h2v-2H7v2zm3-4h7V9h-7v2zm0 4h7v-2h-7v2z"}));function Ya(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ja(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ya(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ya(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Qa=[{attributes:Ja(Ja({},{categories:{type:"array",items:{type:"object"}},selectedAuthor:{type:"number"},postsToShow:{type:"number",default:5},displayPostContent:{type:"boolean",default:!1},displayPostContentRadio:{type:"string",default:"excerpt"},excerptLength:{type:"number",default:55},displayAuthor:{type:"boolean",default:!1},displayPostDate:{type:"boolean",default:!1},postLayout:{type:"string",default:"list"},columns:{type:"number",default:3},order:{type:"string",default:"desc"},orderBy:{type:"string",default:"date"},displayFeaturedImage:{type:"boolean",default:!1},featuredImageAlign:{type:"string",enum:["left","center","right"]},featuredImageSizeSlug:{type:"string",default:"thumbnail"},featuredImageSizeWidth:{type:"number",default:null},featuredImageSizeHeight:{type:"number",default:null},addLinkToFeaturedImage:{type:"boolean",default:!1}}),{},{categories:{type:"string"}}),supports:{align:!0,html:!1},migrate:function(e){return Ja(Ja({},e),{},{categories:[{id:Number(e.categories)}]})},isEligible:function(e){var t=e.categories;return t&&"string"==typeof t},save:function(){return null}}],Xa=r(75),ei=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M4 4v1.5h16V4H4zm8 8.5h8V11h-8v1.5zM4 20h16v-1.5H4V20zm4-8c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2z"})),ti=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ee.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7.8 16.5H5c-.3 0-.5-.2-.5-.5v-6.2h6.8v6.7zm0-8.3H4.5V5c0-.3.2-.5.5-.5h6.2v6.7zm8.3 7.8c0 .3-.2.5-.5.5h-6.2v-6.8h6.8V19zm0-7.8h-6.8V4.5H19c.3 0 .5.2.5.5v6.2z",fillRule:"evenodd",clipRule:"evenodd"}));function ri(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ni(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ri(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ri(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ci={per_page:-1},oi={per_page:-1};var ai={name:"core/latest-posts",category:"widgets",attributes:{categories:{type:"array",items:{type:"object"}},selectedAuthor:{type:"number"},postsToShow:{type:"number",default:5},displayPostContent:{type:"boolean",default:!1},displayPostContentRadio:{type:"string",default:"excerpt"},excerptLength:{type:"number",default:55},displayAuthor:{type:"boolean",default:!1},displayPostDate:{type:"boolean",default:!1},postLayout:{type:"string",default:"list"},columns:{type:"number",default:3},order:{type:"string",default:"desc"},orderBy:{type:"string",default:"date"},displayFeaturedImage:{type:"boolean",default:!1},featuredImageAlign:{type:"string",enum:["left","center","right"]},featuredImageSizeSlug:{type:"string",default:"thumbnail"},featuredImageSizeWidth:{type:"number",default:null},featuredImageSizeHeight:{type:"number",default:null},addLinkToFeaturedImage:{type:"boolean",default:!1}},supports:{align:!0,html:!1}},ii=ai.name,li={title:Object(Q.__)("Latest Posts"),description:Object(Q.__)("Display a list of your most recent posts."),icon:Ka,keywords:[Object(Q.__)("recent posts")],example:{},edit:function(e){var t=e.attributes,r=e.setAttributes,n=t.postsToShow,c=t.order,o=t.orderBy,a=t.categories,i=t.selectedAuthor,l=t.displayFeaturedImage,s=t.displayPostContentRadio,u=t.displayPostContent,b=t.displayPostDate,m=t.displayAuthor,d=t.postLayout,p=t.columns,g=t.excerptLength,h=t.featuredImageAlign,f=t.featuredImageSizeSlug,O=t.featuredImageSizeWidth,v=t.featuredImageSizeHeight,j=t.addLinkToFeaturedImage,y=Object(de.useSelect)((function(e){var t=e("core"),r=t.getEntityRecords,l=t.getMedia,s=(0,e("core/block-editor").getSettings)(),u=s.imageSizes,b=s.imageDimensions,m=a&&a.length>0?a.map((function(e){return e.id})):[],d=r("postType","post",Object(J.pickBy)({categories:m,author:i,order:c,orderby:o,per_page:n},(function(e){return!Object(J.isUndefined)(e)})));return{defaultImageWidth:Object(J.get)(b,[f,"width"],0),defaultImageHeight:Object(J.get)(b,[f,"height"],0),imageSizeOptions:u.filter((function(e){return"full"!==e.slug})).map((function(e){var t=e.name;return{value:e.slug,label:t}})),latestPosts:Array.isArray(d)?d.map((function(e){if(!e.featured_media)return e;var t=l(e.featured_media),r=Object(J.get)(t,["media_details","sizes",f,"source_url"],null);r||(r=Object(J.get)(t,"source_url",null));var n={url:r,alt:null==t?void 0:t.alt_text};return ni(ni({},e),{},{featuredImageInfo:n})})):d}}),[f,n,c,o,a,i]),_=y.imageSizeOptions,w=y.latestPosts,k=y.defaultImageWidth,E=y.defaultImageHeight,C=Object(X.useState)([]),x=Object(be.a)(C,2),S=x[0],P=x[1],B=Object(X.useState)([]),T=Object(be.a)(B,2),z=T[0],N=T[1],M=S.reduce((function(e,t){return ni(ni({},e),{},Object(Z.a)({},t.name,t))}),{}),R=Object(X.useRef)();Object(X.useEffect)((function(){return R.current=!0,dt()({path:Object(Se.addQueryArgs)("/wp/v2/categories",ci)}).then((function(e){R.current&&P(e)})).catch((function(){R.current&&P([])})),dt()({path:Object(Se.addQueryArgs)("/wp/v2/users",oi)}).then((function(e){R.current&&N(e)})).catch((function(){R.current&&N([])})),function(){R.current=!1}}),[]);var V=Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Post content settings")},Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Post content"),checked:u,onChange:function(e){return r({displayPostContent:e})}}),u&&Object(X.createElement)(me.RadioControl,{label:Object(Q.__)("Show:"),selected:s,options:[{label:Object(Q.__)("Excerpt"),value:"excerpt"},{label:Object(Q.__)("Full post"),value:"full_post"}],onChange:function(e){return r({displayPostContentRadio:e})}}),u&&"excerpt"===s&&Object(X.createElement)(me.RangeControl,{label:Object(Q.__)("Max number of words in excerpt"),value:g,onChange:function(e){return r({excerptLength:e})},min:10,max:100})),Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Post meta settings")},Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Display author name"),checked:m,onChange:function(e){return r({displayAuthor:e})}}),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Display post date"),checked:b,onChange:function(e){return r({displayPostDate:e})}})),Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Featured image settings")},Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Display featured image"),checked:l,onChange:function(e){return r({displayFeaturedImage:e})}}),l&&Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.__experimentalImageSizeControl,{onChange:function(e){var t={};e.hasOwnProperty("width")&&(t.featuredImageSizeWidth=e.width),e.hasOwnProperty("height")&&(t.featuredImageSizeHeight=e.height),r(t)},slug:f,width:O,height:v,imageWidth:k,imageHeight:E,imageSizeOptions:_,onChangeImage:function(e){return r({featuredImageSizeSlug:e,featuredImageSizeWidth:void 0,featuredImageSizeHeight:void 0})}}),Object(X.createElement)(me.BaseControl,{className:"block-editor-image-alignment-control__row"},Object(X.createElement)(me.BaseControl.VisualLabel,null,Object(Q.__)("Image alignment")),Object(X.createElement)(K.BlockAlignmentToolbar,{value:h,onChange:function(e){return r({featuredImageAlign:e})},controls:["left","center","right"],isCollapsed:!1})),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Add link to featured image"),checked:j,onChange:function(e){return r({addLinkToFeaturedImage:e})}}))),Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Sorting and filtering")},Object(X.createElement)(me.QueryControls,Object(ue.a)({order:c,orderBy:o},{numberOfItems:n,onOrderChange:function(e){return r({order:e})},onOrderByChange:function(e){return r({orderBy:e})},onNumberOfItemsChange:function(e){return r({postsToShow:e})},categorySuggestions:M,onCategoryChange:function(e){if(!e.some((function(e){return"string"==typeof e&&!M[e]}))){var t=e.map((function(e){return"string"==typeof e?M[e]:e}));if(Object(J.includes)(t,null))return!1;r({categories:t})}},selectedCategories:a,onAuthorChange:function(e){return r({selectedAuthor:""!==e?Number(e):void 0})},authorList:z,selectedAuthorId:i})),"grid"===d&&Object(X.createElement)(me.RangeControl,{label:Object(Q.__)("Columns"),value:p,onChange:function(e){return r({columns:e})},min:2,max:H?Math.min(6,w.length):6,required:!0}))),A=Object(K.useBlockProps)(),H=Array.isArray(w)&&w.length;if(!H)return Object(X.createElement)("div",A,V,Object(X.createElement)(me.Placeholder,{icon:oc,label:Object(Q.__)("Latest Posts")},Array.isArray(w)?Object(Q.__)("No posts found."):Object(X.createElement)(me.Spinner,null)));var L=w.length>n?w.slice(0,n):w,I=[{icon:ei,title:Object(Q.__)("List view"),onClick:function(){return r({postLayout:"list"})},isActive:"list"===d},{icon:ti,title:Object(Q.__)("Grid view"),onClick:function(){return r({postLayout:"grid"})},isActive:"grid"===d}],D=Object(Xa.__experimentalGetSettings)().formats.date;return Object(X.createElement)("div",A,V,Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(me.ToolbarGroup,{controls:I})),Object(X.createElement)("ul",{className:ne()(Object(Z.a)({"wp-block-latest-posts__list":!0,"is-grid":"grid"===d,"has-dates":b,"has-author":m},"columns-".concat(p),"grid"===d))},L.map((function(e,t){var r=Object(J.invoke)(e,["title","rendered","trim"]),n=e.excerpt.rendered,c=z.find((function(t){return t.id===e.author})),o=document.createElement("div");o.innerHTML=n,n=o.textContent||o.innerText||"";var a=e.featuredImageInfo,i=(a=void 0===a?{}:a).url,d=a.alt,p=ne()(Object(Z.a)({"wp-block-latest-posts__featured-image":!0},"align".concat(h),!!h)),f=l&&i,y=f&&Object(X.createElement)("img",{src:i,alt:d,style:{maxWidth:O,maxHeight:v}}),_=g<n.trim().split(" ").length&&""===e.excerpt.raw?Object(X.createElement)(X.Fragment,null,n.trim().split(" ",g).join(" "),Object(Q.__)(" … "),Object(X.createElement)("a",{href:e.link,target:"_blank",rel:"noopener noreferrer"},Object(Q.__)("Read more"))):n;return Object(X.createElement)("li",{key:t},f&&Object(X.createElement)("div",{className:p},j?Object(X.createElement)("a",{href:e.link,target:"_blank",rel:"noreferrer noopener"},y):y),Object(X.createElement)("a",{href:e.link,target:"_blank",rel:"noreferrer noopener"},r?Object(X.createElement)(X.RawHTML,null,r):Object(Q.__)("(no title)")),m&&c&&Object(X.createElement)("div",{className:"wp-block-latest-posts__post-author"},Object(Q.sprintf)(Object(Q.__)("by %s"),c.name)),b&&e.date_gmt&&Object(X.createElement)("time",{dateTime:Object(Xa.format)("c",e.date_gmt),className:"wp-block-latest-posts__post-date"},Object(Xa.dateI18n)(D,e.date_gmt)),u&&"excerpt"===s&&Object(X.createElement)("div",{className:"wp-block-latest-posts__post-excerpt"},_),u&&"full_post"===s&&Object(X.createElement)("div",{className:"wp-block-latest-posts__post-full-content"},Object(X.createElement)(X.RawHTML,{key:"html"},e.content.raw.trim())))}))))},deprecated:Qa},si=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ee.Path,{d:"M4 8.8h8.9V7.2H4v1.6zm0 7h8.9v-1.5H4v1.5zM18 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z"})),ui=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ee.Path,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM6 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-7c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})),bi=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ee.Path,{d:"M3.8 15.8h8.9v-1.5H3.8v1.5zm0-7h8.9V7.2H3.8v1.6zm14.7-2.1V10h1V5.3l-2.2.7.3 1 .9-.3zm1.2 6.1c-.5-.6-1.2-.5-1.7-.4-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5H20v-1h-.9c.3-.6.8-1.4.9-2.1 0-.3 0-.8-.3-1.1z"})),mi=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ee.Path,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM5 6.7V10h1V5.3L3.8 6l.4 1 .8-.3zm-.4 5.7c-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5h2.7v-1h-1c.3-.6.8-1.4.9-2.1.1-.3 0-.8-.2-1.1-.5-.6-1.3-.5-1.7-.4z"})),di=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ee.Path,{d:"M20 5.5H4V4H20V5.5ZM12 12.5H4V11H12V12.5ZM20 20V18.5H4V20H20ZM15.4697 14.9697L18.4393 12L15.4697 9.03033L16.5303 7.96967L20.0303 11.4697L20.5607 12L20.0303 12.5303L16.5303 16.0303L15.4697 14.9697Z"})),pi=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ee.Path,{d:"M4 7.2v1.5h16V7.2H4zm8 8.6h8v-1.5h-8v1.5zm-4-4.6l-4 4 4 4 1-1-3-3 3-3-1-1z"})),gi=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ee.Path,{d:"M20 5.5H4V4H20V5.5ZM12 12.5H4V11H12V12.5ZM20 20V18.5H4V20H20ZM20.0303 9.03033L17.0607 12L20.0303 14.9697L18.9697 16.0303L15.4697 12.5303L14.9393 12L15.4697 11.4697L18.9697 7.96967L20.0303 9.03033Z"})),hi=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ee.Path,{d:"M4 7.2v1.5h16V7.2H4zm8 8.6h8v-1.5h-8v1.5zm-8-3.5l3 3-3 3 1 1 4-4-4-4-1 1z"})),fi=function(e){var t=e.setAttributes,r=e.reversed,n=e.start;return Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Ordered list settings")},Object(X.createElement)(me.TextControl,{label:Object(Q.__)("Start value"),type:"number",onChange:function(e){var r=parseInt(e,10);t({start:isNaN(r)?void 0:r})},value:Number.isInteger(n)?n.toString(10):"",step:"1"}),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Reverse list numbering"),checked:r||!1,onChange:function(e){t({reversed:e||void 0})}})))};function Oi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function vi(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Oi(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Oi(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ji(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function yi(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ji(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ji(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _i(e){var t=yi(yi({},e.phrasingContentSchema),{},{ul:{},ol:{attributes:["type","start","reversed"]}});return["ul","ol"].forEach((function(e){t[e].children={li:{children:t}}})),t}var wi={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph","core/heading"],transform:function(e){return Object(Y.createBlock)("core/list",{values:Object(ar.toHTMLString)({value:Object(ar.join)(e.map((function(t){var r=t.content,n=Object(ar.create)({html:r});return e.length>1?n:Object(ar.replace)(n,/\n/g,ar.__UNSTABLE_LINE_SEPARATOR)})),ar.__UNSTABLE_LINE_SEPARATOR),multilineTag:"li"}),anchor:e.anchor})}},{type:"block",blocks:["core/quote","core/pullquote"],transform:function(e){var t=e.value,r=e.anchor;return Object(Y.createBlock)("core/list",{values:Object(ar.toHTMLString)({value:Object(ar.create)({html:t,multilineTag:"p"}),multilineTag:"li"}),anchor:r})}},{type:"raw",selector:"ol,ul",schema:function(e){return{ol:_i(e).ol,ul:_i(e).ul}},transform:function(e){var t={ordered:"OL"===e.nodeName,anchor:""===e.id?void 0:e.id};if(t.ordered){var r=e.getAttribute("type");r&&(t.type=r),null!==e.getAttribute("reversed")&&(t.reversed=!0);var n=parseInt(e.getAttribute("start"),10);isNaN(n)||1===n&&!t.reversed||(t.start=n)}return Object(Y.createBlock)("core/list",yi(yi({},Object(Y.getBlockAttributes)("core/list",e.outerHTML)),t))}}].concat(Object(W.a)(["*","-"].map((function(e){return{type:"prefix",prefix:e,transform:function(e){return Object(Y.createBlock)("core/list",{values:"<li>".concat(e,"</li>")})}}}))),Object(W.a)(["1.","1)"].map((function(e){return{type:"prefix",prefix:e,transform:function(e){return Object(Y.createBlock)("core/list",{ordered:!0,values:"<li>".concat(e,"</li>")})}}})))),to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.values;return Object(ar.split)(Object(ar.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),ar.__UNSTABLE_LINE_SEPARATOR).map((function(e){return Object(Y.createBlock)("core/paragraph",{content:Object(ar.toHTMLString)({value:e})})}))}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.values;return Object(ar.split)(Object(ar.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),ar.__UNSTABLE_LINE_SEPARATOR).map((function(e){return Object(Y.createBlock)("core/heading",{content:Object(ar.toHTMLString)({value:e})})}))}},{type:"block",blocks:["core/quote"],transform:function(e){var t=e.values,r=e.anchor;return Object(Y.createBlock)("core/quote",{value:Object(ar.toHTMLString)({value:Object(ar.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),multilineTag:"p"}),anchor:r})}},{type:"block",blocks:["core/pullquote"],transform:function(e){var t=e.values,r=e.anchor;return Object(Y.createBlock)("core/pullquote",{value:Object(ar.toHTMLString)({value:Object(ar.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),multilineTag:"p"}),anchor:r})}}]};function ki(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ei(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ki(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ki(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Ci={apiVersion:2,name:"core/list",category:"text",attributes:{ordered:{type:"boolean",default:!1},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:""},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"}},supports:{anchor:!0,className:!1,color:{gradients:!0},__unstablePasteTextInline:!0}},xi=Ci.name,Si={title:Object(Q.__)("List"),description:Object(Q.__)("Create a bulleted or numbered list."),icon:ei,keywords:[Object(Q.__)("bullet list"),Object(Q.__)("ordered list"),Object(Q.__)("numbered list")],example:{attributes:{values:"<li>Alice.</li><li>The White Rabbit.</li><li>The Cheshire Cat.</li><li>The Mad Hatter.</li><li>The Queen of Hearts.</li>"}},transforms:wi,merge:function(e,t){var r=t.values;return r&&"<li></li>"!==r?Ei(Ei({},e),{},{values:e.values+r}):e},edit:function(e){var t=e.attributes,r=e.setAttributes,n=e.mergeBlocks,c=e.onReplace,o=e.isSelected,a=t.ordered,i=t.values,l=t.type,s=t.reversed,u=t.start,b=a?"ol":"ul",m=Object(de.useSelect)((function(e){return!!e("core/block-editor").getSettings().isRTL}),[]),d=Object(K.useBlockProps)();return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.RichText,Object(ue.a)({identifier:"values",multiline:"li",__unstableMultilineRootTag:b,tagName:b,onChange:function(e){return r({values:e})},value:i,placeholder:Object(Q.__)("Write list…"),onMerge:n,onSplit:function(e){return Object(Y.createBlock)(xi,vi(vi({},t),{},{values:e}))},__unstableOnSplitMiddle:function(){return Object(Y.createBlock)("core/paragraph")},onReplace:c,onRemove:function(){return c([])},start:u,reversed:s,type:l},d),(function(e){var t=e.value,n=e.onChange,c=e.onFocus;return Object(X.createElement)(X.Fragment,null,o&&Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.RichTextShortcut,{type:"primary",character:"[",onUse:function(){n(Object(ar.__unstableOutdentListItems)(t))}}),Object(X.createElement)(K.RichTextShortcut,{type:"primary",character:"]",onUse:function(){n(Object(ar.__unstableIndentListItems)(t,{type:b}))}}),Object(X.createElement)(K.RichTextShortcut,{type:"primary",character:"m",onUse:function(){n(Object(ar.__unstableIndentListItems)(t,{type:b}))}}),Object(X.createElement)(K.RichTextShortcut,{type:"primaryShift",character:"m",onUse:function(){n(Object(ar.__unstableOutdentListItems)(t))}})),Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(me.ToolbarGroup,{controls:[{icon:m?si:ui,title:Object(Q.__)("Convert to unordered list"),isActive:Object(ar.__unstableIsActiveListType)(t,"ul",b),onClick:function(){n(Object(ar.__unstableChangeListType)(t,{type:"ul"})),c(),Object(ar.__unstableIsListRootSelected)(t)&&r({ordered:!1})}},{icon:m?bi:mi,title:Object(Q.__)("Convert to ordered list"),isActive:Object(ar.__unstableIsActiveListType)(t,"ol",b),onClick:function(){n(Object(ar.__unstableChangeListType)(t,{type:"ol"})),c(),Object(ar.__unstableIsListRootSelected)(t)&&r({ordered:!0})}},{icon:m?di:pi,title:Object(Q.__)("Outdent list item"),shortcut:Object(Q._x)("Backspace","keyboard key"),isDisabled:!Object(ar.__unstableCanOutdentListItems)(t),onClick:function(){n(Object(ar.__unstableOutdentListItems)(t)),c()}},{icon:m?gi:hi,title:Object(Q.__)("Indent list item"),shortcut:Object(Q._x)("Space","keyboard key"),isDisabled:!Object(ar.__unstableCanIndentListItems)(t),onClick:function(){n(Object(ar.__unstableIndentListItems)(t,{type:b})),c()}}]})))})),a&&Object(X.createElement)(fi,{setAttributes:r,ordered:a,reversed:s,start:u}))},save:function(e){var t=e.attributes,r=t.ordered,n=t.values,c=t.type,o=t.reversed,a=t.start,i=r?"ol":"ul";return Object(X.createElement)(i,K.useBlockProps.save({type:c,reversed:o,start:a}),Object(X.createElement)(K.RichText.Content,{value:n,multiline:"li"}))}};var Pi=Object(de.withDispatch)((function(e,t){var r=t.clientId,n=t.attributes,c=e("core/block-editor").replaceBlock;return{convertToHTML:function(){c(r,Object(Y.createBlock)("core/html",{content:n.originalUndelimitedContent}))}}}))((function(e){var t,r=e.attributes,n=e.convertToHTML,c=r.originalName,o=r.originalUndelimitedContent,a=!!o,i=Object(Y.getBlockType)("core/html"),l=[];return a&&i?(t=Object(Q.sprintf)(Object(Q.__)('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.'),c),l.push(Object(X.createElement)(me.Button,{key:"convert",onClick:n,isPrimary:!0},Object(Q.__)("Keep as HTML")))):t=Object(Q.sprintf)(Object(Q.__)('Your site doesn’t include support for the "%s" block. You can leave this block intact or remove it entirely.'),c),Object(X.createElement)("div",Object(K.useBlockProps)(),Object(X.createElement)(K.Warning,{actions:l},t),Object(X.createElement)(X.RawHTML,null,o))}));var Bi={apiVersion:2,name:"core/missing",category:"text",attributes:{originalName:{type:"string"},originalUndelimitedContent:{type:"string"},originalContent:{type:"string",source:"html"}},supports:{className:!1,customClassName:!1,inserter:!1,html:!1,reusable:!1}},Ti=Bi.name,zi={name:Ti,title:Object(Q.__)("Unsupported"),description:Object(Q.__)("Your site doesn’t include support for this block."),__experimentalLabel:function(e,t){if("accessibility"===t.context){var r=e.originalName,n=r?Object(Y.getBlockType)(r):void 0;return n?n.settings.title||r:""}},edit:Pi,save:function(e){var t=e.attributes;return Object(X.createElement)(X.RawHTML,null,t.originalContent)}},Ni=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M4 9v1.5h16V9H4zm12 5.5h4V13h-4v1.5zm-6 0h4V13h-4v1.5zm-6 0h4V13H4v1.5z"})),Mi=Object(Q.__)("Read more");var Ri={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,r=t.customText,n=t.noTeaser,c={};return r&&(c.customText=r),""===n&&(c.noTeaser=!0),Object(Y.createBlock)("core/more",c)}}]},Vi={apiVersion:2,name:"core/more",category:"design",attributes:{customText:{type:"string"},noTeaser:{type:"boolean",default:!1}},supports:{customClassName:!1,className:!1,html:!1,multiple:!1}},Ai=Vi.name,Hi={title:Object(Q._x)("More","block name"),description:Object(Q.__)("Content before this block will be shown in the excerpt on your archives page."),keywords:[Object(Q.__)("read more")],icon:Ni,example:{},__experimentalLabel:function(e,t){if("accessibility"===t.context)return e.customText},transforms:Ri,edit:function(e){var t=e.attributes,r=t.customText,n=t.noTeaser,c=e.insertBlocksAfter,o=e.setAttributes,a={width:"".concat((r||Mi).length+1.2,"em")};return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,null,Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Hide the excerpt on the full content page"),checked:!!n,onChange:function(){return o({noTeaser:!n})},help:function(e){return e?Object(Q.__)("The excerpt is hidden."):Object(Q.__)("The excerpt is visible.")}}))),Object(X.createElement)("div",Object(K.useBlockProps)(),Object(X.createElement)("div",{className:"wp-block-more"},Object(X.createElement)("input",{"aria-label":Object(Q.__)("Read more link text"),type:"text",value:r,placeholder:Mi,onChange:function(e){o({customText:""!==e.target.value?e.target.value:void 0})},onKeyDown:function(e){e.keyCode===It.ENTER&&c([Object(Y.createBlock)(Object(Y.getDefaultBlockName)())])},style:a}))))},save:function(e){var t=e.attributes,r=t.customText,n=t.noTeaser,c=r?"\x3c!--more ".concat(r,"--\x3e"):"\x3c!--more--\x3e",o=n?"\x3c!--noteaser--\x3e":"";return Object(X.createElement)(X.RawHTML,null,Object(J.compact)([c,o]).join("\n"))}},Li=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ee.Path,{d:"M7.8 6c0-.7.6-1.2 1.2-1.2h6c.7 0 1.2.6 1.2 1.2v3h1.5V6c0-1.5-1.2-2.8-2.8-2.8H9C7.5 3.2 6.2 4.5 6.2 6v3h1.5V6zm8.4 11c0 .7-.6 1.2-1.2 1.2H9c-.7 0-1.2-.6-1.2-1.2v-3H6.2v3c0 1.5 1.2 2.8 2.8 2.8h6c1.5 0 2.8-1.2 2.8-2.8v-3h-1.5v3zM4 11v1h16v-1H4z"}));var Ii={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:function(e){return e.dataset&&"core/nextpage"===e.dataset.block},transform:function(){return Object(Y.createBlock)("core/nextpage",{})}}]},Di={apiVersion:2,name:"core/nextpage",category:"design",parent:["core/post-content"],supports:{customClassName:!1,className:!1,html:!1}},Gi=Di.name,Fi={title:Object(Q.__)("Page Break"),description:Object(Q.__)("Separate your content into a multi-page experience."),icon:Li,keywords:[Object(Q.__)("next page"),Object(Q.__)("pagination")],example:{},transforms:Ii,edit:function(){return Object(X.createElement)("div",Object(K.useBlockProps)(),Object(X.createElement)("div",{className:"wp-block-nextpage"},Object(X.createElement)("span",null,Object(Q.__)("Page break"))))},save:function(){return Object(X.createElement)(X.RawHTML,null,"\x3c!--nextpage--\x3e")}},Ui=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12zM7 16.5h6V15H7v1.5zm4-4h6V11h-6v1.5zM9 11H7v1.5h2V11zm6 5.5h2V15h-2v1.5z"}));var qi={from:[{type:"block",blocks:["core/code","core/paragraph"],transform:function(e){var t=e.content,r=e.anchor;return Object(Y.createBlock)("core/preformatted",{content:t,anchor:r})}},{type:"raw",isMatch:function(e){return"PRE"===e.nodeName&&!(1===e.children.length&&"CODE"===e.firstChild.nodeName)},schema:function(e){return{pre:{children:e.phrasingContentSchema}}}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(Y.createBlock)("core/paragraph",e)}},{type:"block",blocks:["core/code"],transform:function(e){return Object(Y.createBlock)("core/code",e)}}]},Wi={apiVersion:2,name:"core/preformatted",category:"text",attributes:{content:{type:"string",source:"html",selector:"pre",default:"",__unstablePreserveWhiteSpace:!0}},supports:{anchor:!0}},Zi=Wi.name,$i={title:Object(Q.__)("Preformatted"),description:Object(Q.__)("Add text that respects your spacing and tabs, and also allows styling."),icon:Ui,example:{attributes:{content:Object(Q.__)("EXT. XANADU - FAINT DAWN - 1940 (MINIATURE)\nWindow, very small in the distance, illuminated.\nAll 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:qi,edit:function(e){var t=e.attributes,r=e.mergeBlocks,n=e.setAttributes,c=t.content,o=Object(K.useBlockProps)();return Object(X.createElement)(K.RichText,Object(ue.a)({tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:c,onChange:function(e){n({content:e})},placeholder:Object(Q.__)("Write preformatted text…"),onMerge:r},o))},save:function(e){var t=e.attributes.content;return Object(X.createElement)("pre",K.useBlockProps.save(),Object(X.createElement)(K.RichText.Content,{value:t}))},merge:function(e,t){return{content:e.content+t.content}}},Ki=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M18 8H6c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-4c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v4zM4 4v1.5h16V4H4zm0 16h16v-1.5H4V20z"})),Yi="is-style-".concat("solid-color");function Ji(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Qi(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ji(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ji(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Xi={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"}};function el(e){if(e){var t=e.match(/border-color:([^;]+)[;]?/);return t&&t[1]?t[1]:void 0}}var tl=[{attributes:Qi(Qi({},Xi),{},{figureStyle:{source:"attribute",selector:"figure",attribute:"style"}}),save:function(e){var t,r,n=e.attributes,c=n.mainColor,o=n.customMainColor,a=n.textColor,i=n.customTextColor,l=n.value,s=n.citation,u=n.className,b=n.figureStyle;if(Object(J.includes)(u,Yi)){var m=Object(K.getColorClassName)("background-color",c);t=ne()(Object(Z.a)({"has-background":m||o},m,m)),r={backgroundColor:m?void 0:o}}else if(o)r={borderColor:o};else if(c){r={borderColor:el(b)}}var d=Object(K.getColorClassName)("color",a),p=(a||i)&&ne()("has-text-color",Object(Z.a)({},d,d)),g=d?void 0:{color:i};return Object(X.createElement)("figure",{className:t,style:r},Object(X.createElement)("blockquote",{className:p,style:g},Object(X.createElement)(K.RichText.Content,{value:l,multiline:!0}),!K.RichText.isEmpty(s)&&Object(X.createElement)(K.RichText.Content,{tagName:"cite",value:s})))},migrate:function(e){var t=e.className,r=e.figureStyle,n=e.mainColor,c=Object(or.a)(e,["className","figureStyle","mainColor"]);if(!Object(J.includes)(t,Yi)&&n&&r){var o=el(r);if(o)return Qi(Qi({},c),{},{className:t,customMainColor:o})}return Qi({className:t,mainColor:n},c)}},{attributes:Xi,save:function(e){var t,r,n=e.attributes,c=n.mainColor,o=n.customMainColor,a=n.textColor,i=n.customTextColor,l=n.value,s=n.citation,u=n.className;if(Object(J.includes)(u,Yi))(t=Object(K.getColorClassName)("background-color",c))||(r={backgroundColor:o});else if(o)r={borderColor:o};else if(c){var b=Object(J.get)(Object(de.select)("core/block-editor").getSettings(),["colors"],[]);r={borderColor:Object(K.getColorObjectByAttributeValues)(b,c).color}}var m=Object(K.getColorClassName)("color",a),d=a||i?ne()("has-text-color",Object(Z.a)({},m,m)):void 0,p=m?void 0:{color:i};return Object(X.createElement)("figure",{className:t,style:r},Object(X.createElement)("blockquote",{className:d,style:p},Object(X.createElement)(K.RichText.Content,{value:l,multiline:!0}),!K.RichText.isEmpty(s)&&Object(X.createElement)(K.RichText.Content,{tagName:"cite",value:s})))}},{attributes:Qi({},Xi),save:function(e){var t=e.attributes,r=t.value,n=t.citation;return Object(X.createElement)("blockquote",null,Object(X.createElement)(K.RichText.Content,{value:r,multiline:!0}),!K.RichText.isEmpty(n)&&Object(X.createElement)(K.RichText.Content,{tagName:"cite",value:n}))}},{attributes:Qi(Qi({},Xi),{},{citation:{type:"string",source:"html",selector:"footer"},align:{type:"string",default:"none"}}),save:function(e){var t=e.attributes,r=t.value,n=t.citation,c=t.align;return Object(X.createElement)("blockquote",{className:"align".concat(c)},Object(X.createElement)(K.RichText.Content,{value:r,multiline:!0}),!K.RichText.isEmpty(n)&&Object(X.createElement)(K.RichText.Content,{tagName:"footer",value:n}))}}];function rl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function nl(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rl(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rl(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var cl=Object(K.withColors)({mainColor:"background-color",textColor:"color"})((function(e){var t=e.colorUtils,r=e.textColor,n=e.attributes,c=n.value,o=n.citation,a=e.setAttributes,i=e.setTextColor,l=e.setMainColor,s=e.mainColor,u=e.isSelected,b=e.insertBlocksAfter,m=Object(X.useRef)(!1),d=Object(K.useBlockProps)(),p=d.style,g=void 0===p?{}:p,h=d.className,f=Object(J.includes)(h,Yi),O=nl(nl({},d),{},{className:ne()(h,Object(Z.a)({"has-background":f&&s.color},s.class,f&&s.class)),style:nl(nl({},g),{},f?{backgroundColor:s.color}:{borderColor:s.color})});return Object(X.useEffect)((function(){s&&!f&&a({mainColor:void 0,customMainColor:s.color})}),[f,s]),Object(X.createElement)(X.Fragment,null,Object(X.createElement)("figure",O,Object(X.createElement)("blockquote",{style:{color:r.color},className:r.color&&ne()("has-text-color",Object(Z.a)({},r.class,r.class))},Object(X.createElement)(K.RichText,{identifier:"value",multiline:!0,value:c,onChange:function(e){return a({value:e})},placeholder:Object(Q.__)("Write quote…"),textAlign:"center"}),(!K.RichText.isEmpty(o)||u)&&Object(X.createElement)(K.RichText,{identifier:"citation",value:o,placeholder:Object(Q.__)("Write citation…"),onChange:function(e){return a({citation:e})},className:"wp-block-pullquote__citation",__unstableMobileNoFocusOnMount:!0,textAlign:"center",__unstableOnSplitAtEnd:function(){return b(Object(Y.createBlock)("core/paragraph"))}}))),"web"===X.Platform.OS&&Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(K.PanelColorSettings,{title:Object(Q.__)("Color settings"),colorSettings:[{value:s.color,onChange:function(e){var n=!r.color||m.current,c=f&&n;f?l(e):a({customMainColor:e}),c&&(e?(m.current=!0,i(t.getMostReadableColor(e))):m.current&&(m.current=!1,i()))},label:Object(Q.__)("Main color")},{value:r.color,onChange:function(e){i(e),m.current=!1},label:Object(Q.__)("Text color")}]},f&&Object(X.createElement)(K.ContrastChecker,Object(ue.a)({textColor:r.color,backgroundColor:s.color},{isLargeText:!1})))))}));function ol(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function al(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ol(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ol(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var il={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:function(e){return Object(Y.createBlock)("core/pullquote",{value:Object(ar.toHTMLString)({value:Object(ar.join)(e.map((function(e){var t=e.content;return Object(ar.create)({html:t})})),"\u2028"),multilineTag:"p"}),anchor:e.anchor})}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.content,r=e.anchor;return Object(Y.createBlock)("core/pullquote",{value:"<p>".concat(t,"</p>"),anchor:r})}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.value,r=e.citation,n=[];return t&&"<p></p>"!==t&&n.push.apply(n,Object(W.a)(Object(ar.split)(Object(ar.create)({html:t,multilineTag:"p"}),"\u2028").map((function(e){return Object(Y.createBlock)("core/paragraph",{content:Object(ar.toHTMLString)({value:e})})})))),r&&"<p></p>"!==r&&n.push(Object(Y.createBlock)("core/paragraph",{content:r})),0===n.length?Object(Y.createBlock)("core/paragraph",{content:""}):n}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.value,r=e.citation,n=Object(or.a)(e,["value","citation"]);if("<p></p>"===t)return Object(Y.createBlock)("core/heading",{content:r});var c=Object(ar.split)(Object(ar.create)({html:t,multilineTag:"p"}),"\u2028"),o=Object(Y.createBlock)("core/heading",{content:Object(ar.toHTMLString)({value:c[0]})});if(!r&&1===c.length)return o;var a=c.slice(1);return[o,Object(Y.createBlock)("core/pullquote",al(al({},n),{},{citation:r,value:Object(ar.toHTMLString)({value:a.length?Object(ar.join)(c.slice(1),"\u2028"):Object(ar.create)(),multilineTag:"p"})}))]}}]},ll={apiVersion:2,name:"core/pullquote",category:"text",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"}},supports:{anchor:!0,align:["left","right","wide","full"]}},sl=ll.name,ul={title:Object(Q.__)("Pullquote"),description:Object(Q.__)("Give special visual emphasis to a quote from your text."),icon:Ki,example:{attributes:{value:"<p>"+Object(Q.__)("One of the hardest things to do in technology is disrupt yourself.")+"</p>",citation:Object(Q.__)("Matt Mullenweg")}},styles:[{name:"default",label:Object(Q._x)("Default","block style"),isDefault:!0},{name:"solid-color",label:Object(Q.__)("Solid color")}],transforms:il,edit:cl,save:function(e){var t,r,n=e.attributes,c=n.mainColor,o=n.customMainColor,a=n.textColor,i=n.customTextColor,l=n.value,s=n.citation,u=n.className;if(Object(J.includes)(u,Yi)){var b=Object(K.getColorClassName)("background-color",c);t=ne()(Object(Z.a)({"has-background":b||o},b,b)),r={backgroundColor:b?void 0:o}}else o&&(r={borderColor:o});var m=Object(K.getColorClassName)("color",a),d=(a||i)&&ne()("has-text-color",Object(Z.a)({},m,m)),p=m?void 0:{color:i};return Object(X.createElement)("figure",K.useBlockProps.save({className:t,style:r}),Object(X.createElement)("blockquote",{className:d,style:p},Object(X.createElement)(K.RichText.Content,{value:l,multiline:!0}),!K.RichText.isEmpty(s)&&Object(X.createElement)(K.RichText.Content,{tagName:"cite",value:s})))},deprecated:tl},bl=r(20),ml=r.n(bl),dl=r(45);function pl(e){var t=e.isEditDisabled,r=e.isEditing,n=e.isSaving,c=e.onChangeTitle,o=e.onEdit,a=e.onSave,i=e.title,l=Object(xe.useInstanceId)(pl),s=Object(X.useRef)(),u=Object(X.useRef)(),b=Object(xe.usePrevious)(r),m=Object(xe.usePrevious)(n);return Object(X.useEffect)((function(){!b&&r&&s.current.select()}),[r]),Object(X.useEffect)((function(){!b&&!m||r||n||u.current.focus()}),[r,n]),Object(X.createElement)(X.Fragment,null,!r&&!n&&Object(X.createElement)("div",{className:"reusable-block-edit-panel"},Object(X.createElement)("b",{className:"reusable-block-edit-panel__info"},i),Object(X.createElement)(me.Button,{ref:u,isSecondary:!0,className:"reusable-block-edit-panel__button",disabled:t,onClick:o},Object(Q.__)("Edit"))),(r||n)&&Object(X.createElement)("form",{className:"reusable-block-edit-panel",onSubmit:function(e){e.preventDefault(),a()}},Object(X.createElement)("label",{htmlFor:"reusable-block-edit-panel__title-".concat(l),className:"reusable-block-edit-panel__label"},Object(Q.__)("Name:")),Object(X.createElement)("input",{ref:s,type:"text",disabled:n,className:"reusable-block-edit-panel__title",value:i,onChange:function(e){c(e.target.value)},id:"reusable-block-edit-panel__title-".concat(l)}),Object(X.createElement)(me.Button,{type:"submit",isSecondary:!0,isBusy:n,disabled:!i||n,className:"reusable-block-edit-panel__button"},Object(Q.__)("Save"))))}var gl={apiVersion:2,name:"core/block",category:"reusable",attributes:{ref:{type:"number"}},supports:{customClassName:!1,html:!1,inserter:!1}},hl=gl.name,fl={title:Object(Q.__)("Reusable Block"),description:Object(Q.__)("Create and save content to reuse across your site. Update the block, and the changes apply everywhere it’s used."),edit:function(e){var t=e.attributes.ref,r=e.clientId,n=e.isSelected,c=["postType","wp_block",t],o=Object(de.useSelect)((function(e){var n,o;return{reusableBlock:(n=e("core")).getEditedEntityRecord.apply(n,c),hasResolved:e("core").hasFinishedResolution("getEditedEntityRecord",c),isSaving:(o=e("core")).isSavingEntityRecord.apply(o,c),canUserUpdate:e("core").canUser("update","blocks",t),isEditing:e("core/reusable-blocks").__experimentalIsEditingReusableBlock(r),settings:e("core/block-editor").getSettings()}}),[t,r]),a=o.reusableBlock,i=o.hasResolved,l=o.isEditing,s=o.isSaving,u=o.canUserUpdate,b=o.settings,m=Object(de.useDispatch)("core"),d=m.editEntityRecord,p=m.saveEditedEntityRecord,g=Object(de.useDispatch)("core/reusable-blocks").__experimentalSetEditingReusableBlock,h=Object(X.useCallback)((function(e){g(r,e)}),[r]),f=Object(de.useDispatch)("core/reusable-blocks").__experimentalConvertBlockToStatic,O=Object(de.useDispatch)("core/notices"),v=O.createSuccessNotice,j=O.createErrorNotice,y=Object(X.useCallback)(Object(dl.a)(ml.a.mark((function e(){return ml.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,p.apply(void 0,c);case 3:v(Object(Q.__)("Block updated."),{type:"snackbar"}),e.next=9;break;case 6:e.prev=6,e.t0=e.catch(0),j(e.t0.message,{type:"snackbar"});case 9:case"end":return e.stop()}}),e,null,[[0,6]])}))),c),_=Object($.useEntityBlockEditor)("postType","wp_block",{id:t}),w=Object(be.a)(_,3),k=w[0],E=w[1],C=w[2],x=Object(K.useBlockProps)();if(!i)return Object(X.createElement)("div",x,Object(X.createElement)(me.Placeholder,null,Object(X.createElement)(me.Spinner,null)));if(!a)return Object(X.createElement)("div",x,Object(X.createElement)(me.Placeholder,null,Object(Q.__)("Block has been deleted or is unavailable.")));var S=Object(X.createElement)(K.BlockEditorProvider,{value:k,onInput:E,onChange:C,settings:b},Object(X.createElement)(K.WritingFlow,null,Object(X.createElement)(K.BlockList,null)));return l||(S=Object(X.createElement)(me.Disabled,null,S)),Object(X.createElement)("div",x,Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(me.ToolbarGroup,null,Object(X.createElement)(me.ToolbarButton,{onClick:function(){return f(r)}},Object(Q.__)("Convert to regular blocks")))),Object(X.createElement)("div",{className:"block-library-block__reusable-block-container"},(n||l)&&Object(X.createElement)(pl,{isEditing:l,title:a.title,isSaving:s,isEditDisabled:!u,onEdit:function(){return h(!0)},onChangeTitle:function(e){return d.apply(void 0,c.concat([{title:e}]))},onSave:function(){y(),h(!1)}}),S))}},Ol=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ee.Path,{d:"M5 10.2h-.8v1.5H5c1.9 0 3.8.8 5.1 2.1 1.4 1.4 2.1 3.2 2.1 5.1v.8h1.5V19c0-2.3-.9-4.5-2.6-6.2-1.6-1.6-3.8-2.6-6.1-2.6zm10.4-1.6C12.6 5.8 8.9 4.2 5 4.2h-.8v1.5H5c3.5 0 6.9 1.4 9.4 3.9s3.9 5.8 3.9 9.4v.8h1.5V19c0-3.9-1.6-7.6-4.4-10.4zM4 20h3v-3H4v3z"}));var vl={apiVersion:2,name:"core/rss",category:"widgets",attributes:{columns:{type:"number",default:2},blockLayout:{type:"string",default:"list"},feedURL:{type:"string",default:""},itemsToShow:{type:"number",default:5},displayExcerpt:{type:"boolean",default:!1},displayAuthor:{type:"boolean",default:!1},displayDate:{type:"boolean",default:!1},excerptLength:{type:"number",default:55}},supports:{align:!0,html:!1}},jl=vl.name,yl={title:Object(Q.__)("RSS"),description:Object(Q.__)("Display entries from any RSS or Atom feed."),icon:Ol,keywords:[Object(Q.__)("atom"),Object(Q.__)("feed")],example:{attributes:{feedURL:"https://wordpress.org"}},edit:function(e){var t=e.attributes,r=e.setAttributes,n=Object(X.useState)(!t.feedURL),c=Object(be.a)(n,2),o=c[0],a=c[1],i=t.blockLayout,l=t.columns,s=t.displayAuthor,u=t.displayDate,b=t.displayExcerpt,m=t.excerptLength,d=t.feedURL,p=t.itemsToShow;function g(e){return function(){var n=t[e];r(Object(Z.a)({},e,!n))}}var h=Object(K.useBlockProps)();if(o)return Object(X.createElement)("div",h,Object(X.createElement)(me.Placeholder,{icon:Ol,label:"RSS"},Object(X.createElement)("form",{onSubmit:function(e){e.preventDefault(),d&&a(!1)},className:"wp-block-rss__placeholder-form"},Object(X.createElement)(me.TextControl,{placeholder:Object(Q.__)("Enter URL here…"),value:d,onChange:function(e){return r({feedURL:e})},className:"wp-block-rss__placeholder-input"}),Object(X.createElement)(me.Button,{isPrimary:!0,type:"submit"},Object(Q.__)("Use URL")))));var f=[{icon:Tr.a,title:Object(Q.__)("Edit RSS URL"),onClick:function(){return a(!0)}},{icon:ei,title:Object(Q.__)("List view"),onClick:function(){return r({blockLayout:"list"})},isActive:"list"===i},{icon:ti,title:Object(Q.__)("Grid view"),onClick:function(){return r({blockLayout:"grid"})},isActive:"grid"===i}];return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(me.ToolbarGroup,{controls:f})),Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("RSS settings")},Object(X.createElement)(me.RangeControl,{label:Object(Q.__)("Number of items"),value:p,onChange:function(e){return r({itemsToShow:e})},min:1,max:10,required:!0}),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Display author"),checked:s,onChange:g("displayAuthor")}),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Display date"),checked:u,onChange:g("displayDate")}),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Display excerpt"),checked:b,onChange:g("displayExcerpt")}),b&&Object(X.createElement)(me.RangeControl,{label:Object(Q.__)("Max number of words in excerpt"),value:m,onChange:function(e){return r({excerptLength:e})},min:10,max:100,required:!0}),"grid"===i&&Object(X.createElement)(me.RangeControl,{label:Object(Q.__)("Columns"),value:l,onChange:function(e){return r({columns:e})},min:2,max:6,required:!0}))),Object(X.createElement)("div",h,Object(X.createElement)(me.Disabled,null,Object(X.createElement)(Qr.a,{block:"core/rss",attributes:t}))))}},_l=Object(X.createElement)(me.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(me.Rect,{x:"7",y:"10",width:"10",height:"4",rx:"1",fill:"currentColor"})),wl=Object(X.createElement)(me.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(me.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"9.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor","stroke-width":"1.5",fill:"none"}),Object(X.createElement)(me.Rect,{x:"16",y:"10",width:"4",height:"4",rx:"1",fill:"currentColor"})),kl=Object(X.createElement)(me.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(me.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"14.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor","stroke-width":"1.5",fill:"none"}),Object(X.createElement)(me.Rect,{x:"14",y:"10",width:"4",height:"4",rx:"1",fill:"currentColor"})),El=Object(X.createElement)(me.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(me.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"14.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor",fill:"none","stroke-width":"1.5"})),Cl=Object(X.createElement)(me.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(me.Rect,{x:"4.75",y:"7.75",width:"14.5",height:"8.5",rx:"1.25",stroke:"currentColor",fill:"none","stroke-width":"1.5"}),Object(X.createElement)(me.Rect,{x:"8",y:"11",width:"8",height:"2",fill:"currentColor"})),xl=Object(X.createElement)(me.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(me.Rect,{x:"4.75",y:"17.25",width:"5.5",height:"14.5",transform:"rotate(-90 4.75 17.25)",stroke:"currentColor",fill:"none","stroke-width":"1.5"}),Object(X.createElement)(me.Rect,{x:"4",y:"7",width:"10",height:"2",fill:"currentColor"})),Sl=[{value:"%",label:"%",default:50},{value:"px",label:"px",default:350}];var Pl=[{name:"default",isDefault:!0,attributes:{buttonText:Object(Q.__)("Search"),label:Object(Q.__)("Search")}}],Bl={apiVersion:2,name:"core/search",category:"widgets",attributes:{label:{type:"string"},showLabel:{type:"boolean",default:!0},placeholder:{type:"string",default:""},width:{type:"number"},widthUnit:{type:"string"},buttonText:{type:"string"},buttonPosition:{type:"string",default:"button-outside"},buttonUseIcon:{type:"boolean",default:!1}},supports:{align:["left","center","right"],html:!1}},Tl=Bl.name,zl={title:Object(Q.__)("Search"),description:Object(Q.__)("Help visitors find your content."),icon:ut.a,keywords:[Object(Q.__)("find")],example:{},variations:Pl,edit:function(e){var t=e.className,r=e.attributes,n=e.setAttributes,c=e.toggleSelection,o=e.isSelected,a=r.label,i=r.showLabel,l=r.placeholder,s=r.width,u=r.widthUnit,b=r.align,m=r.buttonText,d=r.buttonPosition,p=r.buttonUseIcon,g=Object(xe.useInstanceId)(K.__experimentalUnitControl),h="wp-block-search__width-".concat(g),f=function(){return Object(X.createElement)("input",{className:"wp-block-search__input","aria-label":Object(Q.__)("Optional placeholder text"),placeholder:l?void 0:Object(Q.__)("Optional placeholder…"),value:l,onChange:function(e){return n({placeholder:e.target.value})}})},O=function(){return Object(X.createElement)(X.Fragment,null,p&&Object(X.createElement)(me.Button,{icon:ut.a,className:"wp-block-search__button"}),!p&&Object(X.createElement)(K.RichText,{className:"wp-block-search__button","aria-label":Object(Q.__)("Button text"),placeholder:Object(Q.__)("Add button text…"),withoutInteractiveFormatting:!0,value:m,onChange:function(e){return n({buttonText:e})}}))},v=Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(me.ToolbarGroup,null,Object(X.createElement)(me.ToolbarButton,{title:Object(Q.__)("Toggle search label"),icon:xl,onClick:function(){n({showLabel:!i})},className:i?"is-pressed":void 0}),Object(X.createElement)(me.DropdownMenu,{icon:function(){switch(d){case"button-inside":return kl;case"button-outside":return wl;case"no-button":return El;case"button-only":return _l}}(),label:Object(Q.__)("Change button position")},(function(e){var t=e.onClose;return Object(X.createElement)(me.MenuGroup,{className:"wp-block-search__button-position-menu"},Object(X.createElement)(me.MenuItem,{icon:El,onClick:function(){n({buttonPosition:"no-button"}),t()}},Object(Q.__)("No Button")),Object(X.createElement)(me.MenuItem,{icon:wl,onClick:function(){n({buttonPosition:"button-outside"}),t()}},Object(Q.__)("Button Outside")),Object(X.createElement)(me.MenuItem,{icon:kl,onClick:function(){n({buttonPosition:"button-inside"}),t()}},Object(Q.__)("Button Inside")),Object(X.createElement)(me.MenuItem,{icon:_l,onClick:function(){n({buttonPosition:"button-only"}),t()}},Object(Q.__)("Button Only")))})),"no-button"!==d&&Object(X.createElement)(me.ToolbarButton,{title:Object(Q.__)("Use button with icon"),icon:Cl,onClick:function(){n({buttonUseIcon:!p})},className:p?"is-pressed":void 0}))),Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Display Settings")},Object(X.createElement)(me.BaseControl,{label:Object(Q.__)("Width"),id:h},Object(X.createElement)(K.__experimentalUnitControl,{id:h,min:"".concat(220).concat("px"),onChange:function(e){var t="%"===u&&parseInt(e,10)>100?100:e;n({width:parseInt(t,10)})},onUnitChange:function(e){n({width:"%"===e?50:350,widthUnit:e})},style:{maxWidth:80},value:"".concat(s).concat(u),unit:u,units:Sl}),Object(X.createElement)(me.ButtonGroup,{className:"wp-block-search__components-button-group","aria-label":Object(Q.__)("Percentage Width")},[25,50,75,100].map((function(e){return Object(X.createElement)(me.Button,{key:e,isSmall:!0,isPrimary:"".concat(e,"%")==="".concat(s).concat(u),onClick:function(){return n({width:e,widthUnit:"%"})}},e,"%")}))))))),j=Object(K.useBlockProps)({className:ne()(t,"button-inside"===d?"wp-block-search__button-inside":void 0,"button-outside"===d?"wp-block-search__button-outside":void 0,"no-button"===d?"wp-block-search__no-button":void 0,"button-only"===d?"wp-block-search__button-only":void 0,p||"no-button"===d?void 0:"wp-block-search__text-button",p&&"no-button"!==d?"wp-block-search__icon-button":void 0)});return Object(X.createElement)("div",j,v,i&&Object(X.createElement)(K.RichText,{className:"wp-block-search__label","aria-label":Object(Q.__)("Label text"),placeholder:Object(Q.__)("Add label…"),withoutInteractiveFormatting:!0,value:a,onChange:function(e){return n({label:e})}}),Object(X.createElement)(me.ResizableBox,{size:{width:"".concat(s).concat(u)},className:"wp-block-search__inside-wrapper",isResetValueOnUnitChange:!0,minWidth:220,enable:"button-only"===d?{}:{right:"right"!==b,left:"right"===b},onResizeStart:function(e,t,r){n({width:parseInt(r.offsetWidth,10),widthUnit:"px"}),c(!1)},onResizeStop:function(e,t,r,o){n({width:parseInt(s+o.width,10)}),c(!0)},showHandle:o},("button-inside"===d||"button-outside"===d)&&Object(X.createElement)(X.Fragment,null,f(),O()),"button-only"===d&&O(),"no-button"===d&&f()))}},Nl=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M18 4h-7c-1.1 0-2 .9-2 2v3H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-3h3c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h3V13c0 1.1.9 2 2 2h2.5v3zm0-4.5H11c-.3 0-.5-.2-.5-.5v-2.5H13c.3 0 .5.2.5.5v2.5zm5-.5c0 .3-.2.5-.5.5h-3V11c0-1.1-.9-2-2-2h-2.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7z"}));function Ml(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Rl(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ml(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ml(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Vl=function(e){if(e.tagName||(e=Rl(Rl({},e),{},{tagName:"div"})),!e.customTextColor&&!e.customBackgroundColor)return e;var t={color:{}};return e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),Rl(Rl({},Object(J.omit)(e,["customTextColor","customBackgroundColor"])),{},{style:t})},Al=[{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:Vl,save:function(e){var t=e.attributes,r=t.backgroundColor,n=t.customBackgroundColor,c=t.textColor,o=t.customTextColor,a=Object(K.getColorClassName)("background-color",r),i=Object(K.getColorClassName)("color",c),l=ne()(a,i,{"has-text-color":c||o,"has-background":r||n}),s={backgroundColor:a?void 0:n,color:i?void 0:o};return Object(X.createElement)("div",{className:l,style:s},Object(X.createElement)("div",{className:"wp-block-group__inner-container"},Object(X.createElement)(K.InnerBlocks.Content,null)))}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},migrate:Vl,supports:{align:["wide","full"],anchor:!0,html:!1},save:function(e){var t=e.attributes,r=t.backgroundColor,n=t.customBackgroundColor,c=t.textColor,o=t.customTextColor,a=Object(K.getColorClassName)("background-color",r),i=Object(K.getColorClassName)("color",c),l=ne()(a,{"has-text-color":c||o,"has-background":r||n}),s={backgroundColor:a?void 0:n,color:i?void 0:o};return Object(X.createElement)("div",{className:l,style:s},Object(X.createElement)("div",{className:"wp-block-group__inner-container"},Object(X.createElement)(K.InnerBlocks.Content,null)))}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:Vl,save:function(e){var t=e.attributes,r=t.backgroundColor,n=t.customBackgroundColor,c=Object(K.getColorClassName)("background-color",r),o=ne()(c,{"has-background":r||n}),a={backgroundColor:c?void 0:n};return Object(X.createElement)("div",{className:o,style:a},Object(X.createElement)(K.InnerBlocks.Content,null))}}],Hl=me.__experimentalBoxControl.__Visualizer;var Ll=function(e){var t,r,n,c,o=e.attributes,a=e.clientId,i=Object(de.useSelect)((function(e){var t=(0,e("core/block-editor").getBlock)(a);return!(!t||!t.innerBlocks.length)}),[a]),l=Object(K.useBlockProps)(),s=o.tagName,u=void 0===s?"div":s,b=o.templateLock,m=Object(K.__experimentalUseInnerBlocksProps)({className:"wp-block-group__inner-container"},{templateLock:b,renderAppender:i?void 0:K.InnerBlocks.ButtonBlockAppender});return Object(X.createElement)(u,l,Object(X.createElement)(Hl,{values:null===(t=o.style)||void 0===t||null===(r=t.spacing)||void 0===r?void 0:r.padding,showValues:null===(n=o.style)||void 0===n||null===(c=n.visualizers)||void 0===c?void 0:c.padding}),Object(X.createElement)("div",m))};var Il={apiVersion:2,name:"core/group",category:"design",attributes:{tagName:{type:"string",default:"div"},templateLock:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,color:{gradients:!0,link:!0},spacing:{padding:!0}}},Dl=Il.name,Gl={title:Object(Q.__)("Group"),icon:Nl,description:Object(Q.__)("Combine blocks into a group."),keywords:[Object(Q.__)("container"),Object(Q.__)("wrapper"),Object(Q.__)("row"),Object(Q.__)("section")],example:{attributes:{style:{color:{text:"#000000",background:"#ffffff"}}},innerBlocks:[{name:"core/paragraph",attributes:{customTextColor:"#cf2e2e",fontSize:"large",content:Object(Q.__)("One.")}},{name:"core/paragraph",attributes:{customTextColor:"#ff6900",fontSize:"large",content:Object(Q.__)("Two.")}},{name:"core/paragraph",attributes:{customTextColor:"#fcb900",fontSize:"large",content:Object(Q.__)("Three.")}},{name:"core/paragraph",attributes:{customTextColor:"#00d084",fontSize:"large",content:Object(Q.__)("Four.")}},{name:"core/paragraph",attributes:{customTextColor:"#0693e3",fontSize:"large",content:Object(Q.__)("Five.")}},{name:"core/paragraph",attributes:{customTextColor:"#9b51e0",fontSize:"large",content:Object(Q.__)("Six.")}}]},transforms:{from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert:function(e){if(1!==e.length||"core/group"!==e[0].name){var t=["wide","full"],r=e.reduce((function(e,r){var n=r.attributes.align;return t.indexOf(n)>t.indexOf(e)?n:e}),void 0),n=e.map((function(e){return Object(Y.createBlock)(e.name,e.attributes,e.innerBlocks)}));return Object(Y.createBlock)("core/group",{align:r},n)}}}]},edit:Ll,save:function(e){var t=e.attributes.tagName;return Object(X.createElement)(t,K.useBlockProps.save(),Object(X.createElement)("div",{className:"wp-block-group__inner-container"},Object(X.createElement)(K.InnerBlocks.Content,null)))},deprecated:Al},Fl=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M20.2 7v4H3.8V7H2.2v9h1.6v-3.5h16.4V16h1.6V7z"})),Ul=function(e){var t=e.color,r=e.setColor;return Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(K.PanelColorSettings,{title:Object(Q.__)("Color settings"),colorSettings:[{value:t.color,onChange:r,label:Object(Q.__)("Color")}]}))};var ql=Object(K.withColors)("color",{textColor:"color"})((function(e){var t=e.color,r=e.setColor,n=e.className;return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(me.HorizontalRule,Object(K.useBlockProps)({className:ne()(n,Object(Z.a)({"has-background":t.color},t.class,t.class)),style:{backgroundColor:t.color,color:t.color}})),Object(X.createElement)(Ul,{color:t,setColor:r}))}));var Wl={from:[{type:"enter",regExp:/^-{3,}$/,transform:function(){return Object(Y.createBlock)("core/separator")}},{type:"raw",selector:"hr",schema:{hr:{}}}]},Zl={apiVersion:2,name:"core/separator",category:"design",attributes:{color:{type:"string"},customColor:{type:"string"}},supports:{anchor:!0,align:["center","wide","full"]}},$l=Zl.name,Kl={title:Object(Q.__)("Separator"),description:Object(Q.__)("Create a break between ideas or sections with a horizontal separator."),icon:Fl,keywords:[Object(Q.__)("horizontal-line"),"hr",Object(Q.__)("divider")],example:{attributes:{customColor:"#065174",className:"is-style-wide"}},styles:[{name:"default",label:Object(Q.__)("Default"),isDefault:!0},{name:"wide",label:Object(Q.__)("Wide Line")},{name:"dots",label:Object(Q.__)("Dots")}],transforms:Wl,edit:ql,save:function(e){var t,r=e.attributes,n=r.color,c=r.customColor,o=Object(K.getColorClassName)("background-color",n),a=Object(K.getColorClassName)("color",n),i=ne()((t={"has-text-color has-background":n||c},Object(Z.a)(t,o,o),Object(Z.a)(t,a,a),t)),l={backgroundColor:o?void 0:c,color:a?void 0:c};return Object(X.createElement)("hr",K.useBlockProps.save({className:i,style:l}))}},Yl=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M16 4.2v1.5h2.5v12.5H16v1.5h4V4.2h-4zM4.2 19.8h4v-1.5H5.8V5.8h2.5V4.2h-4l-.1 15.6zm5.1-3.1l1.4.6 4-10-1.4-.6-4 10z"})),Jl=r(141);var Ql=r(105),Xl={from:[{type:"shortcode",tag:"[a-z][a-z0-9_-]*",attributes:{text:{type:"string",shortcode:function(e,t){var r=t.content;return Object(Ql.removep)(Object(Ql.autop)(r))}}},priority:20}]},es={apiVersion:2,name:"core/shortcode",category:"widgets",attributes:{text:{type:"string",source:"html"}},supports:{className:!1,customClassName:!1,html:!1}},ts=es.name,rs={title:Object(Q.__)("Shortcode"),description:Object(Q.__)("Insert additional custom elements with a WordPress shortcode."),icon:Yl,transforms:Xl,edit:function e(t){var r=t.attributes,n=t.setAttributes,c=Object(xe.useInstanceId)(e),o="blocks-shortcode-input-".concat(c);return Object(X.createElement)("div",Object(K.useBlockProps)({className:"components-placeholder"}),Object(X.createElement)("label",{htmlFor:o,className:"components-placeholder__label"},Object(X.createElement)(Jl.a,{icon:Yl}),Object(Q.__)("Shortcode")),Object(X.createElement)(K.PlainText,{className:"blocks-shortcode__textarea",id:o,value:r.text,placeholder:Object(Q.__)("Write shortcode here…"),onChange:function(e){return n({text:e})}}))},save:function(e){var t=e.attributes;return Object(X.createElement)(X.RawHTML,null,t.text)}},ns=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M12.5 4.2v1.6h4.7L5.8 17.2V12H4.2v7.8H12v-1.6H6.8L18.2 6.8v4.7h1.6V4.2z"})),cs=Object(xe.compose)([Object(de.withDispatch)((function(e){var t=e("core/block-editor").toggleSelection;return{onResizeStart:function(){return t(!1)},onResizeStop:function(){return t(!0)}}})),xe.withInstanceId])((function(e){var t=e.attributes,r=e.isSelected,n=e.setAttributes,c=e.onResizeStart,o=e.onResizeStop,a=Object(X.useState)(!1),i=Object(be.a)(a,2),l=i[0],s=i[1],u=t.height,b=function(e){n({height:e})};return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(ee.View,Object(K.useBlockProps)(),Object(X.createElement)(me.ResizableBox,{className:ne()("block-library-spacer__resize-container",{"is-selected":r}),size:{height:u},minHeight:1,enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStart:function(){c.apply(void 0,arguments),s(!0)},onResizeStop:function(e,t,r,n){o();var c=Math.min(parseInt(u+n.height,10),500);b(c),s(!1)},showHandle:r,__experimentalShowTooltip:!0,__experimentalTooltipProps:{axis:"y",position:"bottom",isVisible:l}})),Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Spacer settings")},Object(X.createElement)(me.RangeControl,{label:Object(Q.__)("Height in pixels"),min:1,max:Math.max(500,u),value:u,onChange:b}))))}));var os={apiVersion:2,name:"core/spacer",category:"design",attributes:{height:{type:"number",default:100}},supports:{anchor:!0}},as=os.name,is={title:Object(Q.__)("Spacer"),description:Object(Q.__)("Add white space between blocks and customize its height."),icon:ns,edit:cs,save:function(e){var t=e.attributes;return Object(X.createElement)("div",K.useBlockProps.save({style:{height:t.height},"aria-hidden":!0}))}},ls=r(36),ss=r.n(ls);var us={to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(Y.createBlock)("core/paragraph",e)}}]},bs={apiVersion:2,name:"core/subhead",category:"text",attributes:{align:{type:"string"},content:{type:"string",source:"html",selector:"p"}},supports:{inserter:!1,multiple:!1}},ms=bs.name,ds={title:Object(Q.__)("Subheading (deprecated)"),description:Object(Q.__)("This block is deprecated. Please use the Paragraph block instead."),icon:Object(X.createElement)(me.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(me.Path,{d:"M7.1 6l-.5 3h4.5L9.4 19h3l1.8-10h4.5l.5-3H7.1z"})),transforms:us,edit:function(e){var t=e.attributes,r=e.setAttributes,n=e.className,c=t.align,o=t.content,a=t.placeholder;return ss()("The Subheading block",{alternative:"the Paragraph block",plugin:"Gutenberg"}),Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(K.AlignmentToolbar,{value:c,onChange:function(e){r({align:e})}})),Object(X.createElement)("div",Object(K.useBlockProps)(),Object(X.createElement)(K.RichText,{tagName:"p",value:o,onChange:function(e){r({content:e})},style:{textAlign:c},className:n,placeholder:a||Object(Q.__)("Write subheading…")})))},save:function(e){var t=e.attributes,r=t.align,n=t.content;return Object(X.createElement)("p",K.useBlockProps.save({style:{textAlign:r}}),Object(X.createElement)(K.RichText.Content,{value:n}))}},ps=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v3.5h-15V5c0-.3.2-.5.5-.5zm8 5.5h6.5v3.5H13V10zm-1.5 3.5h-7V10h7v3.5zm-7 5.5v-4h7v4.5H5c-.3 0-.5-.2-.5-.5zm14.5.5h-6V15h6.5v4c0 .3-.2.5-.5.5z"})),gs=[{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"}}}}},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"}}}}},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"}}}}}},supports:{align:!0},save:function(e){var t=e.attributes,r=t.hasFixedLayout,n=t.head,c=t.body,o=t.foot,a=t.backgroundColor;if(!n.length&&!c.length&&!o.length)return null;var i=Object(K.getColorClassName)("background-color",a),l=ne()(i,{"has-fixed-layout":r,"has-background":!!i}),s=function(e){var t=e.type,r=e.rows;if(!r.length)return null;var n="t".concat(t);return Object(X.createElement)(n,null,r.map((function(e,t){var r=e.cells;return Object(X.createElement)("tr",{key:t},r.map((function(e,t){var r=e.content,n=e.tag,c=e.scope;return Object(X.createElement)(K.RichText.Content,{tagName:n,value:r,key:t,scope:"th"===n?c:void 0})})))})))};return Object(X.createElement)("table",{className:l},Object(X.createElement)(s,{type:"head",rows:n}),Object(X.createElement)(s,{type:"body",rows:c}),Object(X.createElement)(s,{type:"foot",rows:o}))}}],hs=r(303),fs=r(304),Os=r(305),vs=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(X.createElement)(ee.Path,{d:"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.84zM6.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"})),js=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(X.createElement)(ee.Path,{d:"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"})),ys=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(X.createElement)(ee.Path,{d:"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"})),_s=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(X.createElement)(ee.Path,{d:"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"})),ws=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(X.createElement)(ee.Path,{d:"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"})),ks=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(X.createElement)(ee.Path,{d:"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"})),Es=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ee.Path,{d:"M4 6v11.5h16V6H4zm1.5 1.5h6V11h-6V7.5zm0 8.5v-3.5h6V16h-6zm13 0H13v-3.5h5.5V16zM13 11V7.5h5.5V11H13z"}));function Cs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function xs(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Cs(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cs(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Ss=["align"];function Ps(e,t,r){if(!t)return e;var n=Object(J.pick)(e,["head","body","foot"]),c=t.sectionName,o=t.rowIndex;return Object(J.mapValues)(n,(function(e,n){return c&&c!==n?e:e.map((function(e,c){return o&&o!==c?e:{cells:e.cells.map((function(e,o){return 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}}({sectionName:n,columnIndex:o,rowIndex:c},t)?r(e):e}))}}))}))}function Bs(e,t){var r=t.sectionName,n=t.rowIndex,c=t.columnCount,o=function(e){return Ns(e.head)?Ns(e.body)?Ns(e.foot)?void 0:e.foot[0]:e.body[0]:e.head[0]}(e),a=void 0===c?Object(J.get)(o,["cells","length"]):c;return a?Object(Z.a)({},r,[].concat(Object(W.a)(e[r].slice(0,n)),[{cells:Object(J.times)(a,(function(e){var t=Object(J.get)(o,["cells",e],{});return xs(xs({},Object(J.pick)(t,Ss)),{},{content:"",tag:"head"===r?"th":"td"})}))}],Object(W.a)(e[r].slice(n)))):e}function Ts(e,t){var r=t.columnIndex,n=Object(J.pick)(e,["head","body","foot"]);return Object(J.mapValues)(n,(function(e,t){return Ns(e)?e:e.map((function(e){return Ms(e)||e.cells.length<r?e:{cells:[].concat(Object(W.a)(e.cells.slice(0,r)),[{content:"",tag:"head"===t?"th":"td"}],Object(W.a)(e.cells.slice(r)))}}))}))}function zs(e,t){return Ns(e[t])?Bs(e,{sectionName:t,rowIndex:0,columnCount:Object(J.get)(e,["body",0,"cells","length"],1)}):Object(Z.a)({},t,[])}function Ns(e){return!e||!e.length||Object(J.every)(e,Ms)}function Ms(e){return!(e.cells&&e.cells.length)}function Rs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Vs(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Rs(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rs(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var As=[{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"}],Hs=[{icon:hs.a,title:Object(Q.__)("Align column left"),align:"left"},{icon:fs.a,title:Object(Q.__)("Align column center"),align:"center"},{icon:Os.a,title:Object(Q.__)("Align column right"),align:"right"}],Ls=Object(K.createCustomColorsHOC)(As),Is={head:Object(Q.__)("Header label"),foot:Object(Q.__)("Footer label")};function Ds(e){var t=e.name,r=Object(or.a)(e,["name"]),n="t".concat(t);return Object(X.createElement)(n,r)}var Gs=Ls("backgroundColor")((function(e){var t=e.attributes,r=e.backgroundColor,n=e.setBackgroundColor,c=e.setAttributes,o=e.insertBlocksAfter,a=e.isSelected,i=t.hasFixedLayout,l=t.caption,s=t.head,u=t.foot,b=Object(X.useState)(2),m=Object(be.a)(b,2),d=m[0],p=m[1],g=Object(X.useState)(2),h=Object(be.a)(g,2),f=h[0],O=h[1],v=Object(X.useState)(),j=Object(be.a)(v,2),y=j[0],_=j[1];function w(e){y&&c(Ps(t,y,(function(t){return Vs(Vs({},t),{},{content:e})})))}function k(e){if(y){var r=y.sectionName,n=y.rowIndex+e;c(Bs(t,{sectionName:r,rowIndex:n})),_({sectionName:r,rowIndex:n,columnIndex:0,type:"cell"})}}function E(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(y){var r=y.columnIndex,n=r+e;c(Ts(t,{columnIndex:n})),_({rowIndex:0,columnIndex:n,type:"cell"})}}Object(X.useEffect)((function(){a||_()}),[a]);var C=["head","body","foot"].filter((function(e){return!Ns(t[e])})),x=[{icon:vs,title:Object(Q.__)("Insert row before"),isDisabled:!y,onClick:function(){k(0)}},{icon:js,title:Object(Q.__)("Insert row after"),isDisabled:!y,onClick:function(){k(1)}},{icon:ys,title:Object(Q.__)("Delete row"),isDisabled:!y,onClick:function(){if(y){var e=y.sectionName,r=y.rowIndex;_(),c(function(e,t){var r=t.sectionName,n=t.rowIndex;return Object(Z.a)({},r,e[r].filter((function(e,t){return t!==n})))}(t,{sectionName:e,rowIndex:r}))}}},{icon:_s,title:Object(Q.__)("Insert column before"),isDisabled:!y,onClick:function(){E(0)}},{icon:ws,title:Object(Q.__)("Insert column after"),isDisabled:!y,onClick:function(){E(1)}},{icon:ks,title:Object(Q.__)("Delete column"),isDisabled:!y,onClick:function(){if(y){var e=y.sectionName,r=y.columnIndex;_(),c(function(e,t){var r=t.columnIndex,n=Object(J.pick)(e,["head","body","foot"]);return Object(J.mapValues)(n,(function(e){return Ns(e)?e:e.map((function(e){return{cells:e.cells.length>=r?e.cells.filter((function(e,t){return t!==r})):e.cells}})).filter((function(e){return e.cells.length}))}))}(t,{sectionName:e,columnIndex:r}))}}}],S=["head","body","foot"].map((function(e){return Object(X.createElement)(Ds,{name:e,key:e},t[e].map((function(t,r){var n=t.cells;return Object(X.createElement)("tr",{key:r},n.map((function(t,n){var c=t.content,o=t.tag,a=t.scope,i=t.align;return Object(X.createElement)(K.RichText,{tagName:o,key:n,className:ne()(Object(Z.a)({},"has-text-align-".concat(i),i),"wp-block-table__cell-content"),scope:"th"===o?a:void 0,value:c,onChange:w,unstableOnFocus:function(){_({sectionName:e,rowIndex:r,columnIndex:n,type:"cell"})},placeholder:Is[e]})})))})))})),P=!C.length;return Object(X.createElement)("figure",Object(K.useBlockProps)(),!P&&Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(me.ToolbarGroup,null,Object(X.createElement)(me.ToolbarItem,null,(function(e){return Object(X.createElement)(me.DropdownMenu,{hasArrowIndicator:!0,icon:Es,toggleProps:e,label:Object(Q.__)("Edit table"),controls:x})}))),Object(X.createElement)(K.AlignmentToolbar,{label:Object(Q.__)("Change column alignment"),alignmentControls:Hs,value:function(){var e,r,n,c,o,a;if(y)return e=t,n="align",c=(r=y).sectionName,o=r.rowIndex,a=r.columnIndex,Object(J.get)(e,[c,o,"cells",a,n])}(),onChange:function(e){return function(e){if(y){var r={type:"column",columnIndex:y.columnIndex},n=Ps(t,r,(function(t){return Vs(Vs({},t),{},{align:e})}));c(n)}}(e)}})),!P&&Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Table settings"),className:"blocks-table-settings"},Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Fixed width table cells"),checked:!!i,onChange:function(){c({hasFixedLayout:!i})}}),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Header section"),checked:!(!s||!s.length),onChange:function(){c(zs(t,"head"))}}),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Footer section"),checked:!(!u||!u.length),onChange:function(){c(zs(t,"foot"))}})),Object(X.createElement)(K.PanelColorSettings,{title:Object(Q.__)("Color settings"),initialOpen:!1,colorSettings:[{value:r.color,onChange:n,label:Object(Q.__)("Background color"),disableCustomColors:!0,colors:As}]})),!P&&Object(X.createElement)("table",{className:ne()(r.class,{"has-fixed-layout":i,"has-background":!!r.color})},S),!P&&Object(X.createElement)(K.RichText,{tagName:"figcaption",placeholder:Object(Q.__)("Write caption…"),value:l,onChange:function(e){return c({caption:e})},unstableOnFocus:function(){return _()},__unstableOnSplitAtEnd:function(){return o(Object(Y.createBlock)("core/paragraph"))}}),P&&Object(X.createElement)(me.Placeholder,{label:Object(Q.__)("Table"),icon:Object(X.createElement)(K.BlockIcon,{icon:ps,showColors:!0}),instructions:Object(Q.__)("Insert a table for sharing data.")},Object(X.createElement)("form",{className:"blocks-table__placeholder-form",onSubmit:function(e){var t,r,n;e.preventDefault(),c((t={rowCount:parseInt(d,10)||2,columnCount:parseInt(f,10)||2},r=t.rowCount,n=t.columnCount,{body:Object(J.times)(r,(function(){return{cells:Object(J.times)(n,(function(){return{content:"",tag:"td"}}))}}))}))}},Object(X.createElement)(me.TextControl,{type:"number",label:Object(Q.__)("Column count"),value:f,onChange:function(e){O(e)},min:"1",className:"blocks-table__placeholder-input"}),Object(X.createElement)(me.TextControl,{type:"number",label:Object(Q.__)("Row count"),value:d,onChange:function(e){p(e)},min:"1",className:"blocks-table__placeholder-input"}),Object(X.createElement)(me.Button,{className:"blocks-table__placeholder-button",isPrimary:!0,type:"submit"},Object(Q.__)("Create Table")))))}));var Fs=function(e){var t=e.phrasingContentSchema;return{tr:{allowEmpty:!0,children:{th:{allowEmpty:!0,children:t,attributes:["scope"]},td:{allowEmpty:!0,children:t}}}}},Us={from:[{type:"raw",selector:"table",schema:function(e){return{table:{children:{thead:{allowEmpty:!0,children:Fs(e)},tfoot:{allowEmpty:!0,children:Fs(e)},tbody:{allowEmpty:!0,children:Fs(e)}}}}}}]},qs={apiVersion:2,name:"core/table",category:"text",attributes:{hasFixedLayout:{type:"boolean",default:!1},backgroundColor:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption",default:""},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:{anchor:!0,align:!0,__experimentalSelector:".wp-block-button > table"}},Ws=qs.name,Zs={title:Object(Q.__)("Table"),description:Object(Q.__)("Insert a table — perfect for sharing charts and data."),icon:ps,example:{attributes:{head:[{cells:[{content:Object(Q.__)("Version"),tag:"th"},{content:Object(Q.__)("Jazz Musician"),tag:"th"},{content:Object(Q.__)("Release Date"),tag:"th"}]}],body:[{cells:[{content:"5.2",tag:"td"},{content:"Jaco Pastorius",tag:"td"},{content:Object(Q.__)("May 7, 2019"),tag:"td"}]},{cells:[{content:"5.1",tag:"td"},{content:"Betty Carter",tag:"td"},{content:Object(Q.__)("February 21, 2019"),tag:"td"}]},{cells:[{content:"5.0",tag:"td"},{content:"Bebo Valdés",tag:"td"},{content:Object(Q.__)("December 6, 2018"),tag:"td"}]}]}},styles:[{name:"regular",label:Object(Q._x)("Default","block style"),isDefault:!0},{name:"stripes",label:Object(Q.__)("Stripes")}],transforms:Us,edit:Gs,save:function(e){var t=e.attributes,r=t.hasFixedLayout,n=t.head,c=t.body,o=t.foot,a=t.backgroundColor,i=t.caption;if(!n.length&&!c.length&&!o.length)return null;var l=Object(K.getColorClassName)("background-color",a),s=ne()(l,{"has-fixed-layout":r,"has-background":!!l}),u=!K.RichText.isEmpty(i),b=function(e){var t=e.type,r=e.rows;if(!r.length)return null;var n="t".concat(t);return Object(X.createElement)(n,null,r.map((function(e,t){var r=e.cells;return Object(X.createElement)("tr",{key:t},r.map((function(e,t){var r=e.content,n=e.tag,c=e.scope,o=e.align,a=ne()(Object(Z.a)({},"has-text-align-".concat(o),o));return Object(X.createElement)(K.RichText.Content,{className:a||void 0,"data-align":o,tagName:n,value:r,key:t,scope:"th"===n?c:void 0})})))})))};return Object(X.createElement)("figure",K.useBlockProps.save(),Object(X.createElement)("table",{className:""===s?void 0:s},Object(X.createElement)(b,{type:"head",rows:n}),Object(X.createElement)(b,{type:"body",rows:c}),Object(X.createElement)(b,{type:"foot",rows:o})),u&&Object(X.createElement)(K.RichText.Content,{tagName:"figcaption",value:i}))},deprecated:gs};var $s={to:[{type:"block",blocks:["core/columns"],transform:function(e){var t=e.className,r=e.columns,n=e.content,c=e.width;return Object(Y.createBlock)("core/columns",{align:"wide"===c||"full"===c?c:void 0,className:t,columns:r},n.map((function(e){var t=e.children;return Object(Y.createBlock)("core/column",{},[Object(Y.createBlock)("core/paragraph",{content:t})])})))}}]},Ks={apiVersion:2,name:"core/text-columns",icon:"columns",category:"design",attributes:{content:{type:"array",source:"query",selector:"p",query:{children:{type:"string",source:"html"}},default:[{},{}]},columns:{type:"number",default:2},width:{type:"string"}},supports:{inserter:!1}},Ys=Ks.name,Js={title:Object(Q.__)("Text Columns (deprecated)"),description:Object(Q.__)("This block is deprecated. Please use the Columns block instead."),transforms:$s,getEditWrapperProps:function(e){var t=e.width;if("wide"===t||"full"===t)return{"data-align":t}},edit:function(e){var t=e.attributes,r=e.setAttributes,n=t.width,c=t.content,o=t.columns;return ss()("The Text Columns block",{alternative:"the Columns block",plugin:"Gutenberg"}),Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(K.BlockAlignmentToolbar,{value:n,onChange:function(e){return r({width:e})},controls:["center","wide","full"]})),Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,null,Object(X.createElement)(me.RangeControl,{label:Object(Q.__)("Columns"),value:o,onChange:function(e){return r({columns:e})},min:2,max:4,required:!0}))),Object(X.createElement)("div",Object(K.useBlockProps)({className:"align".concat(n," columns-").concat(o)}),Object(J.times)(o,(function(e){return Object(X.createElement)("div",{className:"wp-block-column",key:"column-".concat(e)},Object(X.createElement)(K.RichText,{tagName:"p",value:Object(J.get)(c,[e,"children"]),onChange:function(t){r({content:[].concat(Object(W.a)(c.slice(0,e)),[{children:t}],Object(W.a)(c.slice(e+1)))})},placeholder:Object(Q.__)("New Column")}))}))))},save:function(e){var t=e.attributes,r=t.width,n=t.content,c=t.columns;return Object(X.createElement)("div",K.useBlockProps.save({className:"align".concat(r," columns-").concat(c)}),Object(J.times)(c,(function(e){return Object(X.createElement)("div",{className:"wp-block-column",key:"column-".concat(e)},Object(X.createElement)(K.RichText.Content,{tagName:"p",value:Object(J.get)(n,[e,"children"])}))})))}},Qs=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M17.8 2l-.9.3c-.1 0-3.6 1-5.2 2.1C10 5.5 9.3 6.5 8.9 7.1c-.6.9-1.7 4.7-1.7 6.3l-.9 2.3c-.2.4 0 .8.4 1 .1 0 .2.1.3.1.3 0 .6-.2.7-.5l.6-1.5c.3 0 .7-.1 1.2-.2.7-.1 1.4-.3 2.2-.5.8-.2 1.6-.5 2.4-.8.7-.3 1.4-.7 1.9-1.2s.8-1.2 1-1.9c.2-.7.3-1.6.4-2.4.1-.8.1-1.7.2-2.5 0-.8.1-1.5.2-2.1V2zm-1.9 5.6c-.1.8-.2 1.5-.3 2.1-.2.6-.4 1-.6 1.3-.3.3-.8.6-1.4.9-.7.3-1.4.5-2.2.8-.6.2-1.3.3-1.8.4L15 7.5c.3-.3.6-.7 1-1.1 0 .4 0 .8-.1 1.2zM6 20h8v-1.5H6V20z"})),Xs=[{attributes:{content:{type:"string",source:"html",selector:"pre",default:""},textAlign:{type:"string"}},save:function(e){var t=e.attributes,r=t.textAlign,n=t.content;return Object(X.createElement)(K.RichText.Content,{tagName:"pre",style:{textAlign:r},value:n})}}];var eu={from:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(Y.createBlock)("core/verse",e)}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(Y.createBlock)("core/paragraph",e)}}]},tu={apiVersion:2,name:"core/verse",category:"text",attributes:{content:{type:"string",source:"html",selector:"pre",default:"",__unstablePreserveWhiteSpace:!0},textAlign:{type:"string"}},supports:{anchor:!0}},ru=tu.name,nu={title:Object(Q.__)("Verse"),description:Object(Q.__)("Insert poetry. Use special spacing formats. Or quote song lyrics."),icon:Qs,example:{attributes:{content:Object(Q.__)("WHAT was he doing, the great god Pan,\n\tDown in the reeds by the river?\nSpreading ruin and scattering ban,\nSplashing and paddling with hoofs of a goat,\nAnd breaking the golden lilies afloat\n With the dragon-fly on the river.")}},keywords:[Object(Q.__)("poetry"),Object(Q.__)("poem")],transforms:eu,deprecated:Xs,merge:function(e,t){return{content:e.content+t.content}},edit:function(e){var t=e.attributes,r=e.setAttributes,n=e.mergeBlocks,c=t.textAlign,o=t.content,a=Object(K.useBlockProps)({className:ne()(Object(Z.a)({},"has-text-align-".concat(c),c))});return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(K.AlignmentToolbar,{value:c,onChange:function(e){r({textAlign:e})}})),Object(X.createElement)(K.RichText,Object(ue.a)({tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:o,onChange:function(e){r({content:e})},placeholder:Object(Q.__)("Write…"),onMerge:n,textAlign:c},a)))},save:function(e){var t=e.attributes,r=t.textAlign,n=t.content,c=ne()(Object(Z.a)({},"has-text-align-".concat(r),r));return Object(X.createElement)("pre",K.useBlockProps.save({className:c}),Object(X.createElement)(K.RichText.Content,{value:n}))}},cu=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h13.4c.4 0 .8.4.8.8v13.4zM10 15l5-3-5-3v6z"})),ou=function(e){var t=e.setAttributes,r=e.attributes,n=r.autoplay,c=r.controls,o=r.loop,a=r.muted,i=r.playsInline,l=r.preload,s=function(e){return function(r){t(Object(Z.a)({},e,r))}};return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Autoplay"),onChange:s("autoplay"),checked:n,help:function(e){return e?Object(Q.__)("Note: Autoplaying videos may cause usability issues for some visitors."):null}}),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Loop"),onChange:s("loop"),checked:o}),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Muted"),onChange:s("muted"),checked:a}),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Playback controls"),onChange:s("controls"),checked:c}),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Play inline"),onChange:s("playsInline"),checked:i}),Object(X.createElement)(me.SelectControl,{label:Object(Q.__)("Preload"),value:l,onChange:function(e){return t({preload:e})},options:[{value:"auto",label:Object(Q.__)("Auto")},{value:"metadata",label:Object(Q.__)("Metadata")},{value:"none",label:Object(Q.__)("None")}]}))};var au=r(319);function iu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function lu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?iu(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iu(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var su=["text/vtt"],uu=[{label:Object(Q.__)("Subtitles"),value:"subtitles"},{label:Object(Q.__)("Captions"),value:"captions"},{label:Object(Q.__)("Descriptions"),value:"descriptions"},{label:Object(Q.__)("Chapters"),value:"chapters"},{label:Object(Q.__)("Metadata"),value:"metadata"}],bu=Object(X.createElement)(me.SVG,{width:"18",height:"14",viewBox:"0 0 18 14",role:"img",fill:"none"},Object(X.createElement)(me.Rect,{x:"0.75",y:"0.75",width:"16.5",height:"12.5",rx:"1.25",stroke:"black",strokeWidth:"1.5",fill:"none"}),Object(X.createElement)(me.Path,{d:"M3 7H15",stroke:"black",strokeWidth:"1.5"}),Object(X.createElement)(me.Path,{d:"M3 10L15 10",stroke:"black",strokeWidth:"1.5"}));function mu(e){var t,r=e.tracks,n=e.onEditPress;return t=0===r.length?Object(X.createElement)("p",{className:"block-library-video-tracks-editor__tracks-informative-message"},Object(Q.__)("Tracks can be subtitles, captions, chapters, or descriptions. They help make your content more accessible to a wider range of users.")):r.map((function(e,t){return Object(X.createElement)("div",{key:t,className:"block-library-video-tracks-editor__track-list-track"},Object(X.createElement)("span",null,e.label," "),Object(X.createElement)(me.Button,{isTertiary:!0,onClick:function(){return n(t)},"aria-label":Object(Q.sprintf)(Object(Q.__)("Edit %s"),e.label)},Object(Q.__)("Edit")))})),Object(X.createElement)(me.MenuGroup,{label:Object(Q.__)("Text tracks"),className:"block-library-video-tracks-editor__track-list"},t)}function du(e){var t=e.track,r=e.onChange,n=e.onClose,c=e.onRemove,o=t.src,a=void 0===o?"":o,i=t.label,l=void 0===i?"":i,s=t.srcLang,u=void 0===s?"":s,b=t.kind,m=void 0===b?"subtitles":b,d=a.startsWith("blob:")?"":a.substring(a.lastIndexOf("/")+1);return Object(X.createElement)(me.NavigableMenu,null,Object(X.createElement)("div",{className:"block-library-video-tracks-editor__single-track-editor"},Object(X.createElement)("span",{className:"block-library-video-tracks-editor__single-track-editor-edit-track-label"},Object(Q.__)("Edit track")),Object(X.createElement)("span",null,Object(Q.__)("File"),": ",Object(X.createElement)("b",null,d)),Object(X.createElement)("div",{className:"block-library-video-tracks-editor__single-track-editor-label-language"},Object(X.createElement)(me.TextControl,{autoFocus:!0,onChange:function(e){return r(lu(lu({},t),{},{label:e}))},label:Object(Q.__)("Label"),value:l,help:Object(Q.__)("Title of track")}),Object(X.createElement)(me.TextControl,{onChange:function(e){return r(lu(lu({},t),{},{srcLang:e}))},label:Object(Q.__)("Source language"),value:u,help:Object(Q.__)("Language tag (en, fr, etc.)")})),Object(X.createElement)(me.SelectControl,{className:"block-library-video-tracks-editor__single-track-editor-kind-select",options:uu,value:m,label:Object(Q.__)("Kind"),onChange:function(e){"subtitles"===e&&(e=void 0),r(lu(lu({},t),{},{kind:e}))}}),Object(X.createElement)("div",{className:"block-library-video-tracks-editor__single-track-editor-buttons-container"},Object(X.createElement)(me.Button,{isSecondary:!0,onClick:function(){var e={},c=!1;""===l&&(e.label=Object(Q.__)("English"),c=!0),""===u&&(e.srcLang="en",c=!0),c&&r(lu(lu({},t),e)),n()}},Object(Q.__)("Close")),Object(X.createElement)(me.Button,{isDestructive:!0,isLink:!0,onClick:c},Object(Q.__)("Remove track")))))}function pu(e){var t=e.tracks,r=void 0===t?[]:t,n=e.onChange,c=Object(de.useSelect)((function(e){return e("core/block-editor").getSettings().mediaUpload}),[]),o=Object(X.useState)(null),a=Object(be.a)(o,2),i=a[0],l=a[1];return c?Object(X.createElement)(me.Dropdown,{contentClassName:"block-library-video-tracks-editor",renderToggle:function(e){var t=e.isOpen,r=e.onToggle;return Object(X.createElement)(me.ToolbarGroup,null,Object(X.createElement)(me.ToolbarButton,{label:Object(Q.__)("Text tracks"),showTooltip:!0,"aria-expanded":t,"aria-haspopup":"true",onClick:r,icon:bu}))},renderContent:function(e){return function(e){if(null==e)throw new TypeError("Cannot destructure undefined")}(e),null!==i?Object(X.createElement)(du,{track:r[i],onChange:function(e){var t=Object(W.a)(r);t[i]=e,n(t)},onClose:function(){return l(null)},onRemove:function(){n(r.filter((function(e,t){return t!==i}))),l(null)}}):Object(X.createElement)(X.Fragment,null,Object(X.createElement)(me.NavigableMenu,null,Object(X.createElement)(mu,{tracks:r,onEditPress:l}),Object(X.createElement)(me.MenuGroup,{className:"block-library-video-tracks-editor__add-tracks-container",label:Object(Q.__)("Add tracks")},Object(X.createElement)(K.MediaUpload,{onSelect:function(e){var t=e.url,c=r.length;n([].concat(Object(W.a)(r),[{src:t}])),l(c)},allowedTypes:su,render:function(e){var t=e.open;return Object(X.createElement)(me.MenuItem,{icon:au.a,onClick:t},Object(Q.__)("Open Media Library"))}}),Object(X.createElement)(K.MediaUploadCheck,null,Object(X.createElement)(me.FormFileUpload,{onChange:function(e){var t=e.target.files,o=r.length;c({allowedTypes:su,filesList:t,onFileChange:function(e){var t=Object(be.a)(e,1)[0].url,c=Object(W.a)(r);c[o]||(c[o]={}),c[o]=lu(lu({},r[o]),{},{src:t}),n(c),l(o)}})},accept:".vtt,text/vtt",render:function(e){var t=e.openFileDialog;return Object(X.createElement)(me.MenuItem,{icon:Be.a,onClick:function(){t()}},Object(Q.__)("Upload"))}})))))}}):null}function gu(e){var t=e.tracks;return(void 0===t?[]:t).map((function(e){return Object(X.createElement)("track",Object(ue.a)({key:e.src},e))}))}var hu=["video"],fu=["image"];var Ou=Object(me.withNotices)((function e(t){var r=t.isSelected,n=t.noticeUI,c=t.attributes,o=t.setAttributes,a=t.insertBlocksAfter,i=t.onReplace,l=t.noticeOperations,s=Object(xe.useInstanceId)(e),u=Object(X.useRef)(),b=Object(X.useRef)(),m=c.id,d=c.caption,p=c.controls,g=c.poster,h=c.src,f=c.tracks,O=Object(de.useSelect)((function(e){return e("core/block-editor").getSettings().mediaUpload}));function v(e){e&&e.url?o({src:e.url,id:e.id}):o({src:void 0,id:void 0})}function j(e){if(e!==h){var t=Ie({attributes:{url:e}});if(void 0!==t)return void i(t);o({src:e,id:void 0})}}function y(e){l.removeAllNotices(),l.createErrorNotice(e)}Object(X.useEffect)((function(){if(!m&&Object(Ce.isBlobURL)(h)){var e=Object(Ce.getBlobByURL)(h);e&&O({filesList:[e],onFileChange:function(e){var t=Object(be.a)(e,1)[0].url;o({src:t})},onError:function(e){l.createErrorNotice(e)},allowedTypes:hu})}}),[]),Object(X.useEffect)((function(){u.current&&u.current.load()}),[g]);var _=Object(K.useBlockProps)();if(!h)return Object(X.createElement)("div",_,Object(X.createElement)(K.MediaPlaceholder,{icon:Object(X.createElement)(K.BlockIcon,{icon:cu}),onSelect:v,onSelectURL:j,accept:"video/*",allowedTypes:hu,value:c,notices:n,onError:y}));var w="video-block__poster-image-description-".concat(s);return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(pu,{tracks:f,onChange:function(e){o({tracks:e})}}),Object(X.createElement)(K.MediaReplaceFlow,{mediaId:m,mediaURL:h,allowedTypes:hu,accept:"video/*",onSelect:v,onSelectURL:j,onError:y})),Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Video settings")},Object(X.createElement)(ou,{setAttributes:o,attributes:c}),Object(X.createElement)(K.MediaUploadCheck,null,Object(X.createElement)(me.BaseControl,{className:"editor-video-poster-control"},Object(X.createElement)(me.BaseControl.VisualLabel,null,Object(Q.__)("Poster image")),Object(X.createElement)(K.MediaUpload,{title:Object(Q.__)("Select poster image"),onSelect:function(e){o({poster:e.url})},allowedTypes:fu,render:function(e){var t=e.open;return Object(X.createElement)(me.Button,{isPrimary:!0,onClick:t,ref:b,"aria-describedby":w},g?Object(Q.__)("Replace"):Object(Q.__)("Select"))}}),Object(X.createElement)("p",{id:w,hidden:!0},g?Object(Q.sprintf)(Object(Q.__)("The current poster image url is %s"),g):Object(Q.__)("There is no poster image currently selected")),!!g&&Object(X.createElement)(me.Button,{onClick:function(){o({poster:""}),this.posterImageButton.current.focus()},isTertiary:!0},Object(Q.__)("Remove")))))),Object(X.createElement)("figure",_,Object(X.createElement)(me.Disabled,null,Object(X.createElement)("video",{controls:p,poster:g,src:h,ref:u},Object(X.createElement)(gu,{tracks:f}))),(!K.RichText.isEmpty(d)||r)&&Object(X.createElement)(K.RichText,{tagName:"figcaption",placeholder:Object(Q.__)("Write caption…"),value:d,onChange:function(e){return o({caption:e})},inlineToolbar:!0,__unstableOnSplitAtEnd:function(){return a(Object(Y.createBlock)("core/paragraph"))}})))}));var vu={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(Y.createBlock)("core/video",{src:Object(Ce.createBlobURL)(t)})}},{type:"shortcode",tag:"video",attributes:{src:{type:"string",shortcode:function(e){var t=e.named,r=t.src,n=t.mp4,c=t.m4v,o=t.webm,a=t.ogv,i=t.flv;return r||n||c||o||a||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}}}}]},ju={apiVersion:2,name:"core/video",category:"media",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"},tracks:{type:"array",items:{type:"object"},default:[]}},supports:{anchor:!0,align:!0}},yu=ju.name,_u={title:Object(Q.__)("Video"),description:Object(Q.__)("Embed a video from your media library or upload a new one."),icon:cu,keywords:[Object(Q.__)("movie")],transforms:vu,edit:Ou,save:function(e){var t=e.attributes,r=t.autoplay,n=t.caption,c=t.controls,o=t.loop,a=t.muted,i=t.poster,l=t.preload,s=t.src,u=t.playsInline,b=t.tracks;return Object(X.createElement)("figure",K.useBlockProps.save(),s&&Object(X.createElement)("video",{autoPlay:r,controls:c,loop:o,muted:a,poster:i,preload:"metadata"!==l?l:void 0,src:s,playsInline:u},Object(X.createElement)(gu,{tracks:b})),!K.RichText.isEmpty(n)&&Object(X.createElement)(K.RichText.Content,{tagName:"figcaption",value:n}))}},wu=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ee.Path,{d:"M20.1 11.2l-6.7-6.7c-.1-.1-.3-.2-.5-.2H5c-.4-.1-.8.3-.8.7v7.8c0 .2.1.4.2.5l6.7 6.7c.2.2.5.4.7.5s.6.2.9.2c.3 0 .6-.1.9-.2.3-.1.5-.3.8-.5l5.6-5.6c.4-.4.7-1 .7-1.6.1-.6-.2-1.2-.6-1.6zM19 13.4L13.4 19c-.1.1-.2.1-.3.2-.2.1-.4.1-.6 0-.1 0-.2-.1-.3-.2l-6.5-6.5V5.8h6.8l6.5 6.5c.2.2.2.4.2.6 0 .1 0 .3-.2.5zM9 8c-.6 0-1 .4-1 1s.4 1 1 1 1-.4 1-1-.4-1-1-1z"}));var ku=Object(de.withSelect)((function(e){return{taxonomies:e("core").getTaxonomies()}}))((function(e){var t,r,n=e.attributes,c=e.setAttributes,o=e.taxonomies,a=n.taxonomy,i=n.showTagCounts,l=Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Tag Cloud settings")},Object(X.createElement)(me.SelectControl,{label:Object(Q.__)("Taxonomy"),options:(t={label:Object(Q.__)("- Select -"),value:"",disabled:!0},r=Object(J.map)(Object(J.filter)(o,"show_cloud"),(function(e){return{value:e.slug,label:e.name}})),[t].concat(Object(W.a)(r))),value:a,onChange:function(e){return c({taxonomy:e})}}),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Show post counts"),checked:i,onChange:function(){return c({showTagCounts:!i})}})));return Object(X.createElement)(X.Fragment,null,l,Object(X.createElement)("div",Object(K.useBlockProps)(),Object(X.createElement)(Qr.a,{key:"tag-cloud",block:"core/tag-cloud",attributes:n})))})),Eu={apiVersion:2,name:"core/tag-cloud",category:"widgets",attributes:{taxonomy:{type:"string",default:"post_tag"},showTagCounts:{type:"boolean",default:!1}},supports:{html:!1,align:!0}},Cu=Eu.name,xu={title:Object(Q.__)("Tag Cloud"),description:Object(Q.__)("A cloud of your most used tags."),icon:wu,example:{},edit:ku},Su=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M20 6H4c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H4c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h16c.3 0 .5.2.5.5v9zM10 10H8v2h2v-2zm-5 2h2v-2H5v2zm8-2h-2v2h2v-2zm-5 6h8v-2H8v2zm6-4h2v-2h-2v2zm3 0h2v-2h-2v2zm0 4h2v-2h-2v2zM5 16h2v-2H5v2z"})),Pu=function(e){var t=e.clientId,r=Object(de.useDispatch)("core/block-editor").replaceBlocks,n=Object(de.useSelect)((function(e){return e("core/block-editor").getBlock(t)}),[t]);return Object(X.createElement)(me.ToolbarButton,{onClick:function(){return r(n.clientId,Object(Y.rawHandler)({HTML:Object(Y.serialize)(n)}))}},Object(Q.__)("Convert to blocks"))};function Bu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Tu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Bu(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bu(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var zu=window.wp;var Nu={apiVersion:2,name:"core/freeform",category:"text",attributes:{content:{type:"string",source:"html"}},supports:{className:!1,customClassName:!1,reusable:!1}},Mu=Nu.name,Ru={title:Object(Q._x)("Classic","block title"),description:Object(Q.__)("Use the classic WordPress editor."),icon:Su,edit:function(e){var t=e.clientId,r=e.attributes.content,n=e.setAttributes,c=e.onReplace,o=Object(X.useRef)(!1);return Object(X.useEffect)((function(){if(o.current){var e=window.tinymce.get("editor-".concat(t));(null==e?void 0:e.getContent())!==r&&e.setContent(r||"")}}),[r]),Object(X.useEffect)((function(){var e=window.wpEditorL10n.tinymce,a=e.baseURL,i=e.suffix;function l(e){var t;r&&e.on("loadContent",(function(){return e.setContent(r)})),e.on("blur",(function(){t=e.selection.getBookmark(2,!0);var r=document.querySelector(".interface-interface-skeleton__content"),c=r.scrollTop;return n({content:e.getContent()}),e.once("focus",(function(){t&&(e.selection.moveToBookmark(t),r.scrollTop!==c&&(r.scrollTop=c))})),!1})),e.on("mousedown touchstart",(function(){t=null}));var o=Object(J.debounce)((function(){var t=e.getContent();t!==e._lastChange&&(e._lastChange=t,n({content:t}))}),250);e.on("Paste Change input Undo Redo",o),e.on("remove",o.cancel),e.on("keydown",(function(t){It.isKeyboardEvent.primary(t,"z")&&t.stopPropagation(),t.keyCode!==It.BACKSPACE&&t.keyCode!==It.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)||(c([]),t.preventDefault(),t.stopImmediatePropagation()),t.altKey&&t.keyCode===It.F10&&t.stopPropagation()})),e.on("init",(function(){var t=e.getBody();t.ownerDocument.activeElement===t&&(t.blur(),e.focus())}))}function s(){var e=window.wpEditorL10n.tinymce.settings;zu.oldEditor.initialize("editor-".concat(t),{tinymce:Tu(Tu({},e),{},{inline:!0,content_css:!1,fixed_toolbar_container:"#toolbar-".concat(t),setup:l})})}function u(){"complete"===document.readyState&&s()}return o.current=!0,window.tinymce.EditorManager.overrideDefaults({base_url:a,suffix:i}),"complete"===document.readyState?s():document.addEventListener("readystatechange",u),function(){document.removeEventListener("readystatechange",u),zu.oldEditor.remove("editor-".concat(t))}}),[]),Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(me.ToolbarGroup,null,Object(X.createElement)(Pu,{clientId:t}))),Object(X.createElement)("div",Object(K.useBlockProps)(),Object(X.createElement)("div",{key:"toolbar",id:"toolbar-".concat(t),className:"block-library-classic__toolbar",onClick:function(){var e=window.tinymce.get("editor-".concat(t));e&&e.focus()},"data-placeholder":Object(Q.__)("Classic"),onKeyDown:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}}),Object(X.createElement)("div",{key:"editor",id:"editor-".concat(t),className:"wp-block-freeform block-library-rich-text__tinymce"})))},save:function(e){var t=e.attributes.content;return Object(X.createElement)(X.RawHTML,null,t)}},Vu=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M9 11.8l6.1-4.5c.1.4.4.7.9.7h2c.6 0 1-.4 1-1V5c0-.6-.4-1-1-1h-2c-.6 0-1 .4-1 1v.4l-6.4 4.8c-.2-.1-.4-.2-.6-.2H6c-.6 0-1 .4-1 1v2c0 .6.4 1 1 1h2c.2 0 .4-.1.6-.2l6.4 4.8v.4c0 .6.4 1 1 1h2c.6 0 1-.4 1-1v-2c0-.6-.4-1-1-1h-2c-.5 0-.8.3-.9.7L9 12.2v-.4z"})),Au=["core/social-link"];var Hu=function(e){var t=e.attributes.openInNewTab,r=e.setAttributes,n=Object(X.createElement)("div",{className:"wp-block-social-links__social-placeholder"},Object(X.createElement)("div",{className:"wp-block-social-link wp-social-link-facebook"}),Object(X.createElement)("div",{className:"wp-block-social-link wp-social-link-twitter"}),Object(X.createElement)("div",{className:"wp-block-social-link wp-social-link-instagram"})),c=Object(K.useBlockProps)(),o=Object(K.__experimentalUseInnerBlocksProps)(c,{allowedBlocks:Au,orientation:"horizontal",placeholder:n,templateLock:!1,__experimentalAppenderTagName:"li"});return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Link settings")},Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Open links in new tab"),checked:t,onChange:function(){return r({openInNewTab:!t})}}))),Object(X.createElement)("ul",o))};var Lu={apiVersion:2,name:"core/social-links",category:"widgets",attributes:{openInNewTab:{type:"boolean",default:!1}},providesContext:{openInNewTab:"openInNewTab"},supports:{align:["left","center","right"],anchor:!0}},Iu=Lu.name,Du={title:Object(Q.__)("Social Icons"),description:Object(Q.__)("Display icons linking to your social media profiles or websites."),keywords:[Object(Q._x)("links","block keywords")],example:{innerBlocks:[{name:"core/social-link",attributes:{service:"wordpress",url:"https://wordpress.org"}},{name:"core/social-link",attributes:{service:"facebook",url:"https://www.facebook.com/WordPress/"}},{name:"core/social-link",attributes:{service:"twitter",url:"https://twitter.com/WordPress"}}]},styles:[{name:"default",label:Object(Q.__)("Default"),isDefault:!0},{name:"logos-only",label:Object(Q.__)("Logos Only")},{name:"pill-shape",label:Object(Q.__)("Pill Shape")}],icon:Vu,edit:Hu,save:function(){return Object(X.createElement)("ul",K.useBlockProps.save(),Object(X.createElement)(K.InnerBlocks.Content,null))}},Gu=r(216),Fu=function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))},Uu=[{isDefault:!0,name:"wordpress",attributes:{service:"wordpress"},title:"WordPress",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.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"}))}},{name:"fivehundredpx",attributes:{service:"fivehundredpx"},title:"500px",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"amazon",attributes:{service:"amazon"},title:"Amazon",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"bandcamp",attributes:{service:"bandcamp"},title:"Bandcamp",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.Path,{d:"M15.27 17.289 3 17.289 8.73 6.711 21 6.711 15.27 17.289"}))}},{name:"behance",attributes:{service:"behance"},title:"Behance",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"chain",attributes:{service:"chain"},title:"Link",icon:Fu},{name:"codepen",attributes:{service:"codepen"},title:"CodePen",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"deviantart",attributes:{service:"deviantart"},title:"DeviantArt",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"dribbble",attributes:{service:"dribbble"},title:"Dribbble",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"dropbox",attributes:{service:"dropbox"},title:"Dropbox",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"etsy",attributes:{service:"etsy"},title:"Etsy",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"facebook",attributes:{service:"facebook"},title:"Facebook",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"feed",attributes:{service:"feed"},title:"RSS Feed",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"flickr",attributes:{service:"flickr"},title:"Flickr",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"foursquare",attributes:{service:"foursquare"},title:"Foursquare",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"goodreads",attributes:{service:"goodreads"},title:"Goodreads",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"google",attributes:{service:"google"},title:"Google",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"github",attributes:{service:"github"},title:"GitHub",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"instagram",attributes:{service:"instagram"},title:"Instagram",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"lastfm",attributes:{service:"lastfm"},title:"Last.fm",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.Path,{d:"M 12.0002 1.5 C 6.2006 1.5 1.5 6.2011 1.5 11.9998 C 1.5 17.799 6.2006 22.5 12.0002 22.5 C 17.799 22.5 22.5 17.799 22.5 11.9998 C 22.5 6.2011 17.799 1.5 12.0002 1.5 Z M 16.1974 16.2204 C 14.8164 16.2152 13.9346 15.587 13.3345 14.1859 L 13.1816 13.8451 L 11.8541 10.8101 C 11.4271 9.7688 10.3526 9.0712 9.1801 9.0712 C 7.5695 9.0712 6.2593 10.3851 6.2593 12.001 C 6.2593 13.6165 7.5695 14.9303 9.1801 14.9303 C 10.272 14.9303 11.2651 14.3275 11.772 13.3567 C 11.7893 13.3235 11.8239 13.302 11.863 13.3038 C 11.9007 13.3054 11.9353 13.3288 11.9504 13.3632 L 12.4865 14.6046 C 12.5016 14.639 12.4956 14.6778 12.4723 14.7069 C 11.6605 15.6995 10.4602 16.2683 9.1801 16.2683 C 6.8331 16.2683 4.9234 14.3536 4.9234 12.001 C 4.9234 9.6468 6.833 7.732 9.1801 7.732 C 10.9572 7.732 12.3909 8.6907 13.1138 10.3636 C 13.1206 10.3802 13.8412 12.0708 14.4744 13.5191 C 14.8486 14.374 15.1462 14.896 16.1288 14.9292 C 17.0663 14.9613 17.7538 14.4122 17.7538 13.6485 C 17.7538 12.9691 17.3321 12.8004 16.3803 12.4822 C 14.7365 11.9398 13.845 11.3861 13.845 10.0182 C 13.845 8.6809 14.7667 7.8162 16.192 7.8162 C 17.1288 7.8162 17.8155 8.2287 18.2921 9.0768 C 18.305 9.1006 18.3079 9.1281 18.3004 9.1542 C 18.2929 9.1803 18.2748 9.2021 18.2507 9.2138 L 17.3614 9.669 C 17.3178 9.692 17.2643 9.6781 17.2356 9.6385 C 16.9329 9.2135 16.5956 9.0251 16.1423 9.0251 C 15.5512 9.0251 15.122 9.429 15.122 9.9865 C 15.122 10.6738 15.6529 10.8414 16.5339 11.1192 C 16.6491 11.1558 16.7696 11.194 16.8939 11.2343 C 18.2763 11.6865 19.0768 12.2311 19.0768 13.6836 C 19.0769 15.1297 17.8389 16.2204 16.1974 16.2204 Z"}))}},{name:"linkedin",attributes:{service:"linkedin"},title:"LinkedIn",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"mail",attributes:{service:"mail"},title:"Mail",keywords:["email","e-mail"],icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"mastodon",attributes:{service:"mastodon"},title:"Mastodon",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"meetup",attributes:{service:"meetup"},title:"Meetup",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"medium",attributes:{service:"medium"},title:"Medium",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"pinterest",attributes:{service:"pinterest"},title:"Pinterest",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"pocket",attributes:{service:"pocket"},title:"Pocket",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"reddit",attributes:{service:"reddit"},title:"Reddit",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"skype",attributes:{service:"skype"},title:"Skype",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"snapchat",attributes:{service:"snapchat"},title:"Snapchat",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"soundcloud",attributes:{service:"soundcloud"},title:"SoundCloud",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"spotify",attributes:{service:"spotify"},title:"Spotify",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"tumblr",attributes:{service:"tumblr"},title:"Tumblr",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.Path,{d:"M17.04 21.28h-3.28c-2.84 0-4.94-1.37-4.94-5.02v-5.67H6.08V7.5c2.93-.73 4.11-3.3 4.3-5.48h3.01v4.93h3.47v3.65H13.4v4.93c0 1.47.73 2.01 1.92 2.01h1.73v3.75z"}))}},{name:"twitch",attributes:{service:"twitch"},title:"Twitch",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"twitter",attributes:{service:"twitter"},title:"Twitter",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"vimeo",attributes:{service:"vimeo"},title:"Vimeo",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"vk",attributes:{service:"vk"},title:"VK",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"yelp",attributes:{service:"yelp"},title:"Yelp",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"youtube",attributes:{service:"youtube"},title:"YouTube",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}}],qu=function(e){var t,r,n=e.attributes,c=e.setAttributes,o=e.isSelected,a=n.url,i=n.service,l=n.label,s=Object(X.useState)(!1),u=Object(be.a)(s,2),b=u[0],m=u[1],d=ne()("wp-social-link","wp-social-link-"+i,{"wp-social-link__is-incomplete":!a}),p=(t=i,(r=Object(J.find)(Uu,{name:t}))?r.icon:Fu),g=function(e){var t=Object(J.find)(Uu,{name:e});return t?t.title:Object(Q.__)("Social Icon")}(i),h=Object(K.useBlockProps)({className:d});return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.sprintf)(Object(Q.__)("%s label"),g),initialOpen:!1},Object(X.createElement)(me.PanelRow,null,Object(X.createElement)(me.TextControl,{label:Object(Q.__)("Link label"),help:Object(Q.__)("Briefly describe the link to help screen reader users."),value:l,onChange:function(e){return c({label:e})}})))),Object(X.createElement)("li",h,Object(X.createElement)(me.Button,{onClick:function(){return m(!0)}},Object(X.createElement)(p,null),o&&b&&Object(X.createElement)(K.URLPopover,{onClose:function(){return m(!1)}},Object(X.createElement)("form",{className:"block-editor-url-popover__link-editor",onSubmit:function(e){e.preventDefault(),m(!1)}},Object(X.createElement)("div",{className:"block-editor-url-input"},Object(X.createElement)(K.URLInput,{value:a,onChange:function(e){return c({url:e})},placeholder:Object(Q.__)("Enter address"),disableSuggestions:!0})),Object(X.createElement)(me.Button,{icon:Gu.a,label:Object(Q.__)("Apply"),type:"submit"}))))))},Wu={apiVersion:2,name:"core/social-link",category:"widgets",parent:["core/social-links"],attributes:{url:{type:"string"},service:{type:"string"},label:{type:"string"}},usesContext:["openInNewTab"],supports:{reusable:!1,html:!1}},Zu=Wu.name,$u={title:Object(Q.__)("Social Icon"),icon:Vu,edit:qu,description:Object(Q.__)("Display an icon linking to a social media profile or website."),variations:Uu},Ku=function(e){if(e){var t=e.metadata,r=e.settings,n=e.name;t&&Object(Y.unstable__bootstrapServerSideBlockDefinitions)(Object(Z.a)({},n,t)),Object(Y.registerBlockType)(n,r)}},Yu=function(){return[n,c,o,i,k,a,R,l,s,u,b,m,d,p,g,h,f,O,v,N,window.wp&&window.wp.oldEditor?F:null,j,y,_,w,E,C,x,S,P,T,z,M,B,U,q,V,A,H,G,L,I,D]},Ju=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Yu();e.forEach(Ku),Object(Y.setDefaultBlockName)(ye),window.wp&&window.wp.oldEditor&&Object(Y.setFreeformContentHandlerName)(Mu),Object(Y.setUnregisteredTypeHandlerName)(Ti),Object(Y.setGroupingBlockName)(Dl)},Qu=void 0},47:function(e,t){!function(){e.exports=this.wp.apiFetch}()},5: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}))},6:function(e,t){!function(){e.exports=this.wp.blockEditor}()},60:function(e,t,r){e.exports=function(e,t){var r,n,c=0;function o(){var o,a,i=r,l=arguments.length;e:for(;i;){if(i.args.length===arguments.length){for(a=0;a<l;a++)if(i.args[a]!==arguments[a]){i=i.next;continue e}return i!==r&&(i===n&&(n=i.prev),i.prev.next=i.next,i.next&&(i.next.prev=i.prev),i.next=r,i.prev=null,r.prev=i,r=i),i.val}i=i.next}for(o=new Array(l),a=0;a<l;a++)o[a]=arguments[a];return i={args:o,val:e.apply(null,o)},r?(r.prev=i,i.next=r):n=i,c===t.maxSize?(n=n.prev).next=null:c++,r=i,i.val}return t=t||{},o.clear=function(){r=null,n=null,c=0},o}},66:function(e,t,r){var n;!function(c){var o=/^\s+/,a=/\s+$/,i=0,l=c.round,s=c.min,u=c.max,b=c.random;function m(e,t){if(t=t||{},(e=e||"")instanceof m)return e;if(!(this instanceof m))return new m(e,t);var r=function(e){var t={r:0,g:0,b:0},r=1,n=null,i=null,l=null,b=!1,m=!1;"string"==typeof e&&(e=function(e){e=e.replace(o,"").replace(a,"").toLowerCase();var t,r=!1;if(B[e])e=B[e],r=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=F.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=F.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=F.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=F.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=F.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=F.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=F.hex8.exec(e))return{r:R(t[1]),g:R(t[2]),b:R(t[3]),a:L(t[4]),format:r?"name":"hex8"};if(t=F.hex6.exec(e))return{r:R(t[1]),g:R(t[2]),b:R(t[3]),format:r?"name":"hex"};if(t=F.hex4.exec(e))return{r:R(t[1]+""+t[1]),g:R(t[2]+""+t[2]),b:R(t[3]+""+t[3]),a:L(t[4]+""+t[4]),format:r?"name":"hex8"};if(t=F.hex3.exec(e))return{r:R(t[1]+""+t[1]),g:R(t[2]+""+t[2]),b:R(t[3]+""+t[3]),format:r?"name":"hex"};return!1}(e));"object"==typeof e&&(U(e.r)&&U(e.g)&&U(e.b)?(d=e.r,p=e.g,g=e.b,t={r:255*N(d,255),g:255*N(p,255),b:255*N(g,255)},b=!0,m="%"===String(e.r).substr(-1)?"prgb":"rgb"):U(e.h)&&U(e.s)&&U(e.v)?(n=A(e.s),i=A(e.v),t=function(e,t,r){e=6*N(e,360),t=N(t,100),r=N(r,100);var n=c.floor(e),o=e-n,a=r*(1-t),i=r*(1-o*t),l=r*(1-(1-o)*t),s=n%6;return{r:255*[r,i,a,a,l,r][s],g:255*[l,r,r,i,a,a][s],b:255*[a,a,l,r,r,i][s]}}(e.h,n,i),b=!0,m="hsv"):U(e.h)&&U(e.s)&&U(e.l)&&(n=A(e.s),l=A(e.l),t=function(e,t,r){var n,c,o;function a(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=N(e,360),t=N(t,100),r=N(r,100),0===t)n=c=o=r;else{var i=r<.5?r*(1+t):r+t-r*t,l=2*r-i;n=a(l,i,e+1/3),c=a(l,i,e),o=a(l,i,e-1/3)}return{r:255*n,g:255*c,b:255*o}}(e.h,n,l),b=!0,m="hsl"),e.hasOwnProperty("a")&&(r=e.a));var d,p,g;return r=z(r),{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:r}}(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=l(100*this._a)/100,this._format=t.format||r.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=r.ok,this._tc_id=i++}function d(e,t,r){e=N(e,255),t=N(t,255),r=N(r,255);var n,c,o=u(e,t,r),a=s(e,t,r),i=(o+a)/2;if(o==a)n=c=0;else{var l=o-a;switch(c=i>.5?l/(2-o-a):l/(o+a),o){case e:n=(t-r)/l+(t<r?6:0);break;case t:n=(r-e)/l+2;break;case r:n=(e-t)/l+4}n/=6}return{h:n,s:c,l:i}}function p(e,t,r){e=N(e,255),t=N(t,255),r=N(r,255);var n,c,o=u(e,t,r),a=s(e,t,r),i=o,l=o-a;if(c=0===o?0:l/o,o==a)n=0;else{switch(o){case e:n=(t-r)/l+(t<r?6:0);break;case t:n=(r-e)/l+2;break;case r:n=(e-t)/l+4}n/=6}return{h:n,s:c,v:i}}function g(e,t,r,n){var c=[V(l(e).toString(16)),V(l(t).toString(16)),V(l(r).toString(16))];return n&&c[0].charAt(0)==c[0].charAt(1)&&c[1].charAt(0)==c[1].charAt(1)&&c[2].charAt(0)==c[2].charAt(1)?c[0].charAt(0)+c[1].charAt(0)+c[2].charAt(0):c.join("")}function h(e,t,r,n){return[V(H(n)),V(l(e).toString(16)),V(l(t).toString(16)),V(l(r).toString(16))].join("")}function f(e,t){t=0===t?0:t||10;var r=m(e).toHsl();return r.s-=t/100,r.s=M(r.s),m(r)}function O(e,t){t=0===t?0:t||10;var r=m(e).toHsl();return r.s+=t/100,r.s=M(r.s),m(r)}function v(e){return m(e).desaturate(100)}function j(e,t){t=0===t?0:t||10;var r=m(e).toHsl();return r.l+=t/100,r.l=M(r.l),m(r)}function y(e,t){t=0===t?0:t||10;var r=m(e).toRgb();return r.r=u(0,s(255,r.r-l(-t/100*255))),r.g=u(0,s(255,r.g-l(-t/100*255))),r.b=u(0,s(255,r.b-l(-t/100*255))),m(r)}function _(e,t){t=0===t?0:t||10;var r=m(e).toHsl();return r.l-=t/100,r.l=M(r.l),m(r)}function w(e,t){var r=m(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,m(r)}function k(e){var t=m(e).toHsl();return t.h=(t.h+180)%360,m(t)}function E(e){var t=m(e).toHsl(),r=t.h;return[m(e),m({h:(r+120)%360,s:t.s,l:t.l}),m({h:(r+240)%360,s:t.s,l:t.l})]}function C(e){var t=m(e).toHsl(),r=t.h;return[m(e),m({h:(r+90)%360,s:t.s,l:t.l}),m({h:(r+180)%360,s:t.s,l:t.l}),m({h:(r+270)%360,s:t.s,l:t.l})]}function x(e){var t=m(e).toHsl(),r=t.h;return[m(e),m({h:(r+72)%360,s:t.s,l:t.l}),m({h:(r+216)%360,s:t.s,l:t.l})]}function S(e,t,r){t=t||6,r=r||30;var n=m(e).toHsl(),c=360/r,o=[m(e)];for(n.h=(n.h-(c*t>>1)+720)%360;--t;)n.h=(n.h+c)%360,o.push(m(n));return o}function P(e,t){t=t||6;for(var r=m(e).toHsv(),n=r.h,c=r.s,o=r.v,a=[],i=1/t;t--;)a.push(m({h:n,s:c,v:o})),o=(o+i)%1;return a}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,r,n=this.toRgb();return e=n.r/255,t=n.g/255,r=n.b/255,.2126*(e<=.03928?e/12.92:c.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:c.pow((t+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:c.pow((r+.055)/1.055,2.4))},setAlpha:function(e){return this._a=z(e),this._roundA=l(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=l(360*e.h),r=l(100*e.s),n=l(100*e.v);return 1==this._a?"hsv("+t+", "+r+"%, "+n+"%)":"hsva("+t+", "+r+"%, "+n+"%, "+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),r=l(100*e.s),n=l(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,c){var o=[V(l(e).toString(16)),V(l(t).toString(16)),V(l(r).toString(16)),V(H(n))];if(c&&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*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)&&(T[g(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+h(this._r,this._g,this._b,this._a),r=t,n=this._gradientType?"GradientType = 1, ":"";if(e){var c=m(e);r="#"+h(c._r,c._g,c._b,c._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 m(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(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(O,arguments)},greyscale:function(){return this._applyModification(v,arguments)},spin:function(){return this._applyModification(w,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(k,arguments)},monochromatic:function(){return this._applyCombination(P,arguments)},splitcomplement:function(){return this._applyCombination(x,arguments)},triad:function(){return this._applyCombination(E,arguments)},tetrad:function(){return this._applyCombination(C,arguments)}},m.fromRatio=function(e,t){if("object"==typeof e){var r={};for(var n in e)e.hasOwnProperty(n)&&(r[n]="a"===n?e[n]:A(e[n]));e=r}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,r){r=0===r?0:r||50;var n=m(e).toRgb(),c=m(t).toRgb(),o=r/100;return m({r:(c.r-n.r)*o+n.r,g:(c.g-n.g)*o+n.g,b:(c.b-n.b)*o+n.b,a:(c.a-n.a)*o+n.a})},m.readability=function(e,t){var r=m(e),n=m(t);return(c.max(r.getLuminance(),n.getLuminance())+.05)/(c.min(r.getLuminance(),n.getLuminance())+.05)},m.isReadable=function(e,t,r){var n,c,o=m.readability(e,t);switch(c=!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":c=o>=4.5;break;case"AAlarge":c=o>=3;break;case"AAAsmall":c=o>=7}return c},m.mostReadable=function(e,t,r){var n,c,o,a,i=null,l=0;c=(r=r||{}).includeFallbackColors,o=r.level,a=r.size;for(var s=0;s<t.length;s++)(n=m.readability(e,t[s]))>l&&(l=n,i=m(t[s]));return m.isReadable(e,i,{level:o,size:a})||!c?i:(r.includeFallbackColors=!1,m.mostReadable(e,["#fff","#000"],r))};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"},T=m.hexNames=function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}(B);function z(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 r=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=s(t,u(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),c.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function M(e){return s(1,u(0,e))}function R(e){return parseInt(e,16)}function V(e){return 1==e.length?"0"+e:""+e}function A(e){return e<=1&&(e=100*e+"%"),e}function H(e){return c.round(255*parseFloat(e)).toString(16)}function L(e){return R(e)/255}var I,D,G,F=(D="[\\s|\\(]+("+(I="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+I+")[,|\\s]+("+I+")\\s*\\)?",G="[\\s|\\(]+("+I+")[,|\\s]+("+I+")[,|\\s]+("+I+")[,|\\s]+("+I+")\\s*\\)?",{CSS_UNIT:new RegExp(I),rgb:new RegExp("rgb"+D),rgba:new RegExp("rgba"+G),hsl:new RegExp("hsl"+D),hsla:new RegExp("hsla"+G),hsv:new RegExp("hsv"+D),hsva:new RegExp("hsva"+G),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 U(e){return!!F.CSS_UNIT.exec(e)}e.exports?e.exports=m:void 0===(n=function(){return m}.call(t,r,t,e))||(e.exports=n)}(Math)},7:function(e,t){!function(){e.exports=this.wp.primitives}()},75:function(e,t){!function(){e.exports=this.wp.date}()},8:function(e,t,r){"use strict";function n(){return(n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}r.d(t,"a",(function(){return n}))},83:function(e,t){!function(){e.exports=this.wp.coreData}()},87:function(e,t){!function(){e.exports=this.wp.serverSideRender}()},9:function(e,t,r){var n; +var Ue=function(e,t){return(Ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};var qe=function(){return(qe=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var c in t=arguments[r])Object.prototype.hasOwnProperty.call(t,c)&&(e[c]=t[c]);return e}).apply(this,arguments)};Object.create;Object.create;var We=r(13),Ze=r.n(We);function $e(e,t,r,n,c,o){void 0===o&&(o=0);var a=ot(e,t,o),i=a.width,l=a.height,s=Math.min(i,r),u=Math.min(l,n);return s>u*c?{width:u*c,height:u}:{width:s,height:s/c}}function Ke(e,t,r,n,c){void 0===c&&(c=0);var o=ot(t.width,t.height,c),a=o.width,i=o.height;return{x:Ye(e.x,a,r.width,n),y:Ye(e.y,i,r.height,n)}}function Ye(e,t,r,n){var c=t*n/2-r/2;return Math.min(c,Math.max(e,-c))}function Je(e,t){return Math.sqrt(Math.pow(e.y-t.y,2)+Math.pow(e.x-t.x,2))}function Qe(e,t){return 180*Math.atan2(t.y-e.y,t.x-e.x)/Math.PI}function Xe(e,t,r,n,c,o,a){void 0===o&&(o=0),void 0===a&&(a=!0);var i=a&&0===o?et:tt,l={x:i(100,((t.width-r.width/c)/2-e.x/c)/t.width*100),y:i(100,((t.height-r.height/c)/2-e.y/c)/t.height*100),width:i(100,r.width/t.width*100/c),height:i(100,r.height/t.height*100/c)},s=Math.round(i(t.naturalWidth,l.width*t.naturalWidth/100)),u=Math.round(i(t.naturalHeight,l.height*t.naturalHeight/100)),b=t.naturalWidth>=t.naturalHeight*n?{width:Math.round(u*n),height:u}:{width:s,height:Math.round(s/n)};return{croppedAreaPercentages:l,croppedAreaPixels:qe(qe({},b),{x:Math.round(i(t.naturalWidth-b.width,l.x*t.naturalWidth/100)),y:Math.round(i(t.naturalHeight-b.height,l.y*t.naturalHeight/100))})}}function et(e,t){return Math.min(e,Math.max(0,t))}function tt(e,t){return t}function rt(e,t,r){var n=t.width/t.naturalWidth,c=function(e,t,r){var n=t.width/t.naturalWidth;if(r)return r.height>r.width?r.height/n/e.height:r.width/n/e.width;var c=e.width/e.height;return t.naturalWidth>=t.naturalHeight*c?t.naturalHeight/e.height:t.naturalWidth/e.width}(e,t,r),o=n*c;return{crop:{x:((t.naturalWidth-e.width)/2-e.x)*o,y:((t.naturalHeight-e.height)/2-e.y)*o},zoom:c}}function nt(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function ct(e,t,r,n,c){var o=Math.cos,a=Math.sin,i=c*Math.PI/180;return[(e-r)*o(i)-(t-n)*a(i)+r,(e-r)*a(i)+(t-n)*o(i)+n]}function ot(e,t,r){var n=e/2,c=t/2,o=[ct(0,0,n,c,r),ct(e,0,n,c,r),ct(e,t,n,c,r),ct(0,t,n,c,r)],a=Math.min.apply(Math,o.map((function(e){return e[0]}))),i=Math.max.apply(Math,o.map((function(e){return e[0]}))),l=Math.min.apply(Math,o.map((function(e){return e[1]})));return{width:i-a,height:Math.max.apply(Math,o.map((function(e){return e[1]})))-l}}function at(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter((function(e){return"string"==typeof e&&e.length>0})).join(" ").trim()}var it=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.imageRef=null,r.videoRef=null,r.containerRef=null,r.styleRef=null,r.containerRect=null,r.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},r.dragStartPosition={x:0,y:0},r.dragStartCrop={x:0,y:0},r.lastPinchDistance=0,r.lastPinchRotation=0,r.rafDragTimeout=null,r.rafPinchTimeout=null,r.wheelTimer=null,r.state={cropSize:null,hasWheelJustStarted:!1},r.preventZoomSafari=function(e){return e.preventDefault()},r.cleanEvents=function(){document.removeEventListener("mousemove",r.onMouseMove),document.removeEventListener("mouseup",r.onDragStopped),document.removeEventListener("touchmove",r.onTouchMove),document.removeEventListener("touchend",r.onDragStopped)},r.clearScrollEvent=function(){r.containerRef&&r.containerRef.removeEventListener("wheel",r.onWheel),r.wheelTimer&&clearTimeout(r.wheelTimer)},r.onMediaLoad=function(){r.computeSizes(),r.emitCropData(),r.setInitialCrop(),r.props.onMediaLoaded&&r.props.onMediaLoaded(r.mediaSize)},r.setInitialCrop=function(){var e=r.props,t=e.initialCroppedAreaPixels,n=e.cropSize;if(t){var c=rt(t,r.mediaSize,n),o=c.crop,a=c.zoom;r.props.onCropChange(o),r.props.onZoomChange&&r.props.onZoomChange(a)}},r.computeSizes=function(){var e,t,n,c,o,a,i=r.imageRef||r.videoRef;if(i&&r.containerRef){r.containerRect=r.containerRef.getBoundingClientRect(),r.mediaSize={width:i.offsetWidth,height:i.offsetHeight,naturalWidth:(null===(e=r.imageRef)||void 0===e?void 0:e.naturalWidth)||(null===(t=r.videoRef)||void 0===t?void 0:t.videoWidth)||0,naturalHeight:(null===(n=r.imageRef)||void 0===n?void 0:n.naturalHeight)||(null===(c=r.videoRef)||void 0===c?void 0:c.videoHeight)||0};var l=r.props.cropSize?r.props.cropSize:$e(i.offsetWidth,i.offsetHeight,r.containerRect.width,r.containerRect.height,r.props.aspect,r.props.rotation);(null===(o=r.state.cropSize)||void 0===o?void 0:o.height)===l.height&&(null===(a=r.state.cropSize)||void 0===a?void 0:a.width)===l.width||r.props.onCropSizeChange&&r.props.onCropSizeChange(l),r.setState({cropSize:l},r.recomputeCropPosition)}},r.onMouseDown=function(e){e.preventDefault(),document.addEventListener("mousemove",r.onMouseMove),document.addEventListener("mouseup",r.onDragStopped),r.onDragStart(t.getMousePoint(e))},r.onMouseMove=function(e){return r.onDrag(t.getMousePoint(e))},r.onTouchStart=function(e){e.preventDefault(),document.addEventListener("touchmove",r.onTouchMove,{passive:!1}),document.addEventListener("touchend",r.onDragStopped),2===e.touches.length?r.onPinchStart(e):1===e.touches.length&&r.onDragStart(t.getTouchPoint(e.touches[0]))},r.onTouchMove=function(e){e.preventDefault(),2===e.touches.length?r.onPinchMove(e):1===e.touches.length&&r.onDrag(t.getTouchPoint(e.touches[0]))},r.onDragStart=function(e){var t,n,c=e.x,o=e.y;r.dragStartPosition={x:c,y:o},r.dragStartCrop=qe({},r.props.crop),null===(n=(t=r.props).onInteractionStart)||void 0===n||n.call(t)},r.onDrag=function(e){var t=e.x,n=e.y;r.rafDragTimeout&&window.cancelAnimationFrame(r.rafDragTimeout),r.rafDragTimeout=window.requestAnimationFrame((function(){if(r.state.cropSize&&void 0!==t&&void 0!==n){var e=t-r.dragStartPosition.x,c=n-r.dragStartPosition.y,o={x:r.dragStartCrop.x+e,y:r.dragStartCrop.y+c},a=r.props.restrictPosition?Ke(o,r.mediaSize,r.state.cropSize,r.props.zoom,r.props.rotation):o;r.props.onCropChange(a)}}))},r.onDragStopped=function(){var e,t;r.cleanEvents(),r.emitCropData(),null===(t=(e=r.props).onInteractionEnd)||void 0===t||t.call(e)},r.onWheel=function(e){e.preventDefault();var n=t.getMousePoint(e),c=r.props.zoom-e.deltaY*r.props.zoomSpeed/200;r.setNewZoom(c,n),r.state.hasWheelJustStarted||r.setState({hasWheelJustStarted:!0},(function(){var e,t;return null===(t=(e=r.props).onInteractionStart)||void 0===t?void 0:t.call(e)})),r.wheelTimer&&clearTimeout(r.wheelTimer),r.wheelTimer=window.setTimeout((function(){return r.setState({hasWheelJustStarted:!1},(function(){var e,t;return null===(t=(e=r.props).onInteractionEnd)||void 0===t?void 0:t.call(e)}))}),250)},r.getPointOnContainer=function(e){var t=e.x,n=e.y;if(!r.containerRect)throw new Error("The Cropper is not mounted");return{x:r.containerRect.width/2-(t-r.containerRect.left),y:r.containerRect.height/2-(n-r.containerRect.top)}},r.getPointOnMedia=function(e){var t=e.x,n=e.y,c=r.props,o=c.crop,a=c.zoom;return{x:(t+o.x)/a,y:(n+o.y)/a}},r.setNewZoom=function(e,t){if(r.state.cropSize&&r.props.onZoomChange){var n=r.getPointOnContainer(t),c=r.getPointOnMedia(n),o=Math.min(r.props.maxZoom,Math.max(e,r.props.minZoom)),a={x:c.x*o-n.x,y:c.y*o-n.y},i=r.props.restrictPosition?Ke(a,r.mediaSize,r.state.cropSize,o,r.props.rotation):a;r.props.onCropChange(i),r.props.onZoomChange(o)}},r.emitCropData=function(){if(r.state.cropSize){var e=Xe(r.props.restrictPosition?Ke(r.props.crop,r.mediaSize,r.state.cropSize,r.props.zoom,r.props.rotation):r.props.crop,r.mediaSize,r.state.cropSize,r.getAspect(),r.props.zoom,r.props.rotation,r.props.restrictPosition),t=e.croppedAreaPercentages,n=e.croppedAreaPixels;r.props.onCropComplete&&r.props.onCropComplete(t,n)}},r.recomputeCropPosition=function(){if(r.state.cropSize){var e=r.props.restrictPosition?Ke(r.props.crop,r.mediaSize,r.state.cropSize,r.props.zoom,r.props.rotation):r.props.crop;r.props.onCropChange(e),r.emitCropData()}},r}return function(e,t){function r(){this.constructor=e}Ue(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}(t,e),t.prototype.componentDidMount=function(){window.addEventListener("resize",this.computeSizes),this.containerRef&&(this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.preventZoomSafari),this.containerRef.addEventListener("gesturechange",this.preventZoomSafari)),this.props.disableAutomaticStylesInjection||(this.styleRef=document.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.styleRef.innerHTML=".reactEasyCrop_Container {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n overflow: hidden;\n user-select: none;\n touch-action: none;\n cursor: move;\n}\n\n.reactEasyCrop_Image,\n.reactEasyCrop_Video {\n max-width: 100%;\n max-height: 100%;\n margin: auto;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */\n}\n\n.reactEasyCrop_CropArea {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n border: 1px solid rgba(255, 255, 255, 0.5);\n box-sizing: border-box;\n box-shadow: 0 0 0 9999em;\n color: rgba(0, 0, 0, 0.5);\n overflow: hidden;\n}\n\n.reactEasyCrop_CropAreaRound {\n border-radius: 50%;\n}\n\n.reactEasyCrop_CropAreaGrid::before {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 0;\n bottom: 0;\n left: 33.33%;\n right: 33.33%;\n border-top: 0;\n border-bottom: 0;\n}\n\n.reactEasyCrop_CropAreaGrid::after {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 33.33%;\n bottom: 33.33%;\n left: 0;\n right: 0;\n border-left: 0;\n border-right: 0;\n}\n",document.head.appendChild(this.styleRef)),this.imageRef&&this.imageRef.complete&&this.onMediaLoad()},t.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.computeSizes),this.containerRef&&(this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.containerRef.removeEventListener("gesturechange",this.preventZoomSafari)),this.styleRef&&this.styleRef.remove(),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent()},t.prototype.componentDidUpdate=function(e){var t,r,n,c;e.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):e.aspect!==this.props.aspect?this.computeSizes():e.zoom!==this.props.zoom?this.recomputeCropPosition():(null===(t=e.cropSize)||void 0===t?void 0:t.height)===(null===(r=this.props.cropSize)||void 0===r?void 0:r.height)&&(null===(n=e.cropSize)||void 0===n?void 0:n.width)===(null===(c=this.props.cropSize)||void 0===c?void 0:c.width)||this.computeSizes(),e.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent())},t.prototype.getAspect=function(){var e=this.props,t=e.cropSize,r=e.aspect;return t?t.width/t.height:r},t.prototype.onPinchStart=function(e){var r=t.getTouchPoint(e.touches[0]),n=t.getTouchPoint(e.touches[1]);this.lastPinchDistance=Je(r,n),this.lastPinchRotation=Qe(r,n),this.onDragStart(nt(r,n))},t.prototype.onPinchMove=function(e){var r=this,n=t.getTouchPoint(e.touches[0]),c=t.getTouchPoint(e.touches[1]),o=nt(n,c);this.onDrag(o),this.rafPinchTimeout&&window.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=window.requestAnimationFrame((function(){var e=Je(n,c),t=r.props.zoom*(e/r.lastPinchDistance);r.setNewZoom(t,o),r.lastPinchDistance=e;var a=Qe(n,c),i=r.props.rotation+(a-r.lastPinchRotation);r.props.onRotationChange&&r.props.onRotationChange(i),r.lastPinchRotation=a}))},t.prototype.render=function(){var e=this,t=this.props,r=t.image,n=t.video,c=t.mediaProps,o=t.transform,a=t.crop,i=a.x,l=a.y,s=t.rotation,u=t.zoom,b=t.cropShape,m=t.showGrid,d=t.style,p=d.containerStyle,g=d.cropAreaStyle,h=d.mediaStyle,f=t.classes,O=f.containerClassName,v=f.cropAreaClassName,j=f.mediaClassName;return Ze.a.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(t){return e.containerRef=t},"data-testid":"container",style:p,className:at("reactEasyCrop_Container",O)},r?Ze.a.createElement("img",qe({alt:"",className:at("reactEasyCrop_Image",j)},c,{src:r,ref:function(t){return e.imageRef=t},style:qe(qe({},h),{transform:o||"translate("+i+"px, "+l+"px) rotate("+s+"deg) scale("+u+")"}),onLoad:this.onMediaLoad})):n&&Ze.a.createElement("video",qe({autoPlay:!0,loop:!0,muted:!0,className:at("reactEasyCrop_Video",j)},c,{src:n,ref:function(t){return e.videoRef=t},onLoadedMetadata:this.onMediaLoad,style:qe(qe({},h),{transform:o||"translate("+i+"px, "+l+"px) rotate("+s+"deg) scale("+u+")"}),controls:!1})),this.state.cropSize&&Ze.a.createElement("div",{style:qe(qe({},g),{width:this.state.cropSize.width,height:this.state.cropSize.height}),"data-testid":"cropper",className:at("reactEasyCrop_CropArea","round"===b&&"reactEasyCrop_CropAreaRound",m&&"reactEasyCrop_CropAreaGrid",v)}))},t.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:3,minZoom:1,cropShape:"rect",showGrid:!0,style:{},classes:{},mediaProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0},t.getMousePoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t.getTouchPoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t}(Ze.a.Component),lt=r(161),st=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ee.Path,{d:"M18.5 5.5h-13c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2v-9c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5h-13c-.3 0-.5-.2-.5-.5v-9c0-.3.2-.5.5-.5h13c.3 0 .5.2.5.5v9zM6.5 12H8v-2h2V8.5H6.5V12zm9.5 2h-2v1.5h3.5V12H16v2z"})),ut=r(306),bt=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ee.Path,{d:"M15.1 4.8l-3-2.5V4c-4.4 0-8 3.6-8 8 0 3.7 2.5 6.9 6 7.7.3.1.6.1 1 .2l.2-1.5c-.4 0-.7-.1-1.1-.2l-.1.2v-.2c-2.6-.8-4.5-3.3-4.5-6.2 0-3.6 2.9-6.5 6.5-6.5v1.8l3-2.5zM20 11c-.2-1.4-.7-2.7-1.6-3.8l-1.2.8c.7.9 1.1 2 1.3 3.1L20 11zm-1.5 1.8c-.1.5-.2 1.1-.4 1.6s-.5 1-.8 1.5l1.2.9c.4-.5.8-1.1 1-1.8s.5-1.3.5-2l-1.5-.2zm-5.6 5.6l.2 1.5c1.4-.2 2.7-.7 3.8-1.6l-.9-1.1c-.9.7-2 1.1-3.1 1.2z"})),mt=r(47),dt=r.n(mt),pt={position:"bottom right",isAlternate:!0};function gt(e){var t=e.aspectRatios,r=e.isDisabled,n=e.label,c=e.onClick,o=e.value;return Object(X.createElement)(me.MenuGroup,{label:n},t.map((function(e){var t=e.title,n=e.aspect;return Object(X.createElement)(me.MenuItem,{key:n,disabled:r,onClick:function(){c(n)},role:"menuitemradio",isSelected:n===o,icon:n===o?lt.a:void 0},t)})))}function ht(e){var t=e.toggleProps,r=e.isDisabled,n=e.onClick,c=e.value,o=e.defaultValue;return Object(X.createElement)(me.DropdownMenu,{icon:st,label:Object(Q.__)("Aspect Ratio"),popoverProps:pt,toggleProps:t,className:"wp-block-image__aspect-ratio"},(function(e){var t=e.onClose;return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(gt,{isDisabled:r,onClick:function(e){n(e),t()},value:c,aspectRatios:[{title:Object(Q.__)("Original"),aspect:o},{title:Object(Q.__)("Square"),aspect:1}]}),Object(X.createElement)(gt,{label:Object(Q.__)("Landscape"),isDisabled:r,onClick:function(e){n(e),t()},value:c,aspectRatios:[{title:Object(Q.__)("16:10"),aspect:1.6},{title:Object(Q.__)("16:9"),aspect:16/9},{title:Object(Q.__)("4:3"),aspect:4/3},{title:Object(Q.__)("3:2"),aspect:1.5}]}),Object(X.createElement)(gt,{label:Object(Q.__)("Portrait"),isDisabled:r,onClick:function(e){n(e),t()},value:c,aspectRatios:[{title:Object(Q.__)("10:16"),aspect:.625},{title:Object(Q.__)("9:16"),aspect:9/16},{title:Object(Q.__)("3:4"),aspect:3/4},{title:Object(Q.__)("2:3"),aspect:2/3}]}))}))}function ft(e){var t=e.id,r=e.url,n=e.setAttributes,c=e.naturalWidth,o=e.naturalHeight,a=e.width,i=e.height,l=e.clientWidth,s=e.setIsEditingImage,u=Object(de.useDispatch)("core/notices").createErrorNotice,b=Object(X.useState)(!1),m=Object(be.a)(b,2),d=m[0],p=m[1],g=Object(X.useState)(null),h=Object(be.a)(g,2),f=h[0],O=h[1],v=Object(X.useState)({x:0,y:0}),j=Object(be.a)(v,2),y=j[0],_=j[1],w=Object(X.useState)(100),k=Object(be.a)(w,2),E=k[0],C=k[1],x=Object(X.useState)(c/o),S=Object(be.a)(x,2),P=S[0],B=S[1],T=Object(X.useState)(0),z=Object(be.a)(T,2),N=z[0],M=z[1],R=Object(X.useState)(),V=Object(be.a)(R,2),A=V[0],H=V[1],L=a,I=i||l*o/c,D=c/o;return N%180==90&&(I=l*c/o,D=o/c),Object(X.createElement)(X.Fragment,null,Object(X.createElement)("div",{className:ne()("wp-block-image__crop-area",{"is-applying":d}),style:{width:L,height:I}},Object(X.createElement)(it,{image:A||r,disabled:d,minZoom:1,maxZoom:3,crop:y,zoom:E/100,aspect:P,onCropChange:_,onCropComplete:function(e){O(e)},onZoomChange:function(e){C(100*e)}}),d&&Object(X.createElement)(me.Spinner,null)),Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(me.ToolbarGroup,null,Object(X.createElement)(me.Dropdown,{contentClassName:"wp-block-image__zoom",popoverProps:pt,renderToggle:function(e){var t=e.isOpen,r=e.onToggle;return Object(X.createElement)(me.ToolbarButton,{icon:ut.a,label:Object(Q.__)("Zoom"),onClick:r,"aria-expanded":t,disabled:d})},renderContent:function(){return Object(X.createElement)(me.RangeControl,{min:100,max:300,value:Math.round(E),onChange:C})}}),Object(X.createElement)(me.ToolbarItem,null,(function(e){return Object(X.createElement)(ht,{toggleProps:e,isDisabled:d,onClick:B,value:P,defaultValue:c/o})}))),Object(X.createElement)(me.ToolbarGroup,null,Object(X.createElement)(me.ToolbarButton,{icon:bt,label:Object(Q.__)("Rotate"),onClick:function(){var e=(N+90)%360;if(0===e)return H(),M(e),B(1/P),void _({x:-y.y*D,y:y.x*D});var t=new window.Image;t.src=r,t.onload=function(t){var r=document.createElement("canvas"),n=0,c=0;e%180?(r.width=t.target.height,r.height=t.target.width):(r.width=t.target.width,r.height=t.target.height),90!==e&&180!==e||(n=r.width),270!==e&&180!==e||(c=r.height);var o=r.getContext("2d");o.translate(n,c),o.rotate(e*Math.PI/180),o.drawImage(t.target,0,0),r.toBlob((function(t){H(URL.createObjectURL(t)),M(e),B(1/P),_({x:-y.y*D,y:y.x*D})}))}},disabled:d})),Object(X.createElement)(me.ToolbarGroup,null,Object(X.createElement)(me.ToolbarButton,{onClick:function(){p(!0);var e={};(f.width<99.9||f.height<99.9)&&(e=f),N>0&&(e.rotation=N),e.src=r,dt()({path:"/wp/v2/media/".concat(t,"/edit"),method:"POST",data:e}).then((function(e){n({id:e.id,url:e.source_url,height:i&&a?a/P:void 0})})).catch((function(e){u(Object(Q.sprintf)(Object(Q.__)("Could not edit image. %s"),e.message),{id:"image-editing-error",type:"snackbar"})})).finally((function(){p(!1),s(!1)}))},disabled:d},Object(Q.__)("Apply")),Object(X.createElement)(me.ToolbarButton,{onClick:function(){return s(!1)}},Object(Q.__)("Cancel")))))}var Ot=["image"];function vt(e){var t=e.attributes,r=t.url,n=void 0===r?"":r,c=t.alt,o=t.caption,a=t.align,i=t.id,l=t.href,s=t.rel,u=t.linkClass,b=t.linkDestination,m=t.title,d=t.width,p=t.height,g=t.linkTarget,h=t.sizeSlug,f=e.setAttributes,O=e.isSelected,v=e.insertBlocksAfter,j=e.onReplace,y=e.onSelectImage,_=e.onSelectURL,w=e.onUploadError,k=e.containerRef,E=Object(X.useRef)(),C=Object(xe.usePrevious)(n),x=Object(de.useSelect)((function(e){var t=e("core").getMedia;return i&&O?t(i):null}),[i,O]),S=Object(de.useSelect)((function(e){var t=e("core/block-editor").getSettings;return Object(J.pick)(t(),["imageEditing","imageSizes","isRTL","maxWidth","mediaUpload"])})),P=S.imageEditing,B=S.imageSizes,T=S.isRTL,z=S.maxWidth,N=S.mediaUpload,M=Object(de.useDispatch)("core/block-editor").toggleSelection,R=Object(de.useDispatch)("core/notices"),V=R.createErrorNotice,A=R.createSuccessNotice,H=Object(xe.useViewportMatch)("medium"),L=Object(X.useState)(!1),I=Object(be.a)(L,2),D=I[0],G=I[1],F=Object(J.includes)(["wide","full"],a),U=Object(X.useState)({}),q=Object(be.a)(U,2),W=q[0],Z=W.naturalWidth,$=W.naturalHeight,ee=q[1],te=Object(X.useState)(!1),re=Object(be.a)(te,2),ne=re[0],ce=re[1],oe=Object(X.useState)(),ae=Object(be.a)(oe,2),ie=ae[0],le=ae[1],se=function(e,t){var r=Object(X.useState)(),n=Object(be.a)(r,2),c=n[0],o=n[1];function a(){o(e.current.clientWidth)}return Object(X.useEffect)(a,t),Object(X.useEffect)((function(){var t=e.current.ownerDocument.defaultView;return t.addEventListener("resize",a),function(){t.removeEventListener("resize",a)}}),[]),c}(k,[a]),ue=!F&&H,pe=Object(J.map)(Object(J.filter)(B,(function(e){var t=e.slug;return Object(J.get)(x,["media_details","sizes",t,"source_url"])})),(function(e){var t=e.name;return{value:e.slug,label:t}}));Object(X.useEffect)((function(){O||G(!1)}),[O]),Object(X.useEffect)((function(){wt(i,n)&&O&&!ie&&window.fetch(n).then((function(e){return e.blob()})).then((function(e){return le(e)}))}),[i,n,O,ie]),Object(X.useEffect)((function(){n&&!C&&O&&E.current.focus()}),[n,C]),Object(X.useEffect)((function(){O||ce(!1)}),[O]);var ge,he=i&&Z&&$&&P,fe=Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.BlockControls,null,!ne&&Object(X.createElement)(me.ToolbarGroup,null,Object(X.createElement)(K.__experimentalImageURLInputUI,{url:l||"",onChangeUrl:function(e){f(e)},linkDestination:b,mediaUrl:x&&x.source_url||n,mediaLink:x&&x.link,linkTarget:g,linkClass:u,rel:s})),he&&!ne&&Object(X.createElement)(me.ToolbarGroup,null,Object(X.createElement)(me.ToolbarButton,{onClick:function(){return ce(!0)},icon:Pe,label:Object(Q.__)("Crop")})),ie&&Object(X.createElement)(me.ToolbarGroup,null,Object(X.createElement)(me.ToolbarButton,{onClick:function(){N({filesList:[ie],onFileChange:function(e){var t=Object(be.a)(e,1)[0];y(t),Object(Ce.isBlobURL)(t.url)||(le(),A(Object(Q.__)("Image uploaded."),{type:"snackbar"}))},allowedTypes:Ot,onError:function(e){V(e,{type:"snackbar"})}})},icon:Be.a,label:Object(Q.__)("Upload external image")})),!ne&&Object(X.createElement)(K.MediaReplaceFlow,{mediaId:i,mediaURL:n,allowedTypes:Ot,accept:"image/*",onSelect:y,onSelectURL:_,onError:w})),Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Image settings")},Object(X.createElement)(me.TextareaControl,{label:Object(Q.__)("Alt text (alternative text)"),value:c,onChange:function(e){f({alt:e})},help:Object(X.createElement)(X.Fragment,null,Object(X.createElement)(me.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},Object(Q.__)("Describe the purpose of the image")),Object(Q.__)("Leave empty if the image is purely decorative."))}),Object(X.createElement)(K.__experimentalImageSizeControl,{onChangeImage:function(e){var t=Object(J.get)(x,["media_details","sizes",e,"source_url"]);if(!t)return null;f({url:t,width:void 0,height:void 0,sizeSlug:e})},onChange:function(e){return f(e)},slug:h,width:d,height:p,imageSizeOptions:pe,isResizable:ue,imageWidth:Z,imageHeight:$}))),Object(X.createElement)(K.InspectorAdvancedControls,null,Object(X.createElement)(me.TextControl,{label:Object(Q.__)("Title attribute"),value:m||"",onChange:function(e){f({title:e})},help:Object(X.createElement)(X.Fragment,null,Object(Q.__)("Describe the role of this image on the page."),Object(X.createElement)(me.ExternalLink,{href:"https://www.w3.org/TR/html52/dom.html#the-title-attribute"},Object(Q.__)("(Note: many devices and browsers do not display this text.)")))}))),Oe=function(e){var t=Object(Se.getPath)(e);if(t)return Object(J.last)(t.split("/"))}(n);ge=c||(Oe?Object(Q.sprintf)(Object(Q.__)("This image has an empty alt attribute; its file name is %s"),Oe):Object(Q.__)("This image has an empty alt attribute"));var ve,je,ye=Object(X.createElement)(X.Fragment,null,Object(X.createElement)("img",{src:n,alt:ge,onClick:function(){D&&G(!1)},onError:function(){var e;void 0!==(e=Ie({attributes:{url:n}}))&&j(e)},onLoad:function(e){ee(Object(J.pick)(e.target,["naturalWidth","naturalHeight"]))}}),Object(Ce.isBlobURL)(n)&&Object(X.createElement)(me.Spinner,null));if(se&&Z&&$){var _e=Z>se;ve=_e?se:Z,je=_e?se*($/Z):$}if(he&&ne)ye=Object(X.createElement)(ft,{id:i,url:n,setAttributes:f,naturalWidth:Z,naturalHeight:$,width:d,height:p,clientWidth:se,setIsEditingImage:ce});else if(ue&&ve){var we=d||ve,ke=p||je,Ee=Z/$,Te=Z<$?20:20*Ee,ze=$<Z?20:20/Ee,Ne=2.5*z,Me=!1,Re=!1;"center"===a?(Me=!0,Re=!0):T?"left"===a?Me=!0:Re=!0:"right"===a?Re=!0:Me=!0,ye=Object(X.createElement)(me.ResizableBox,{size:{width:d,height:p},showHandle:O,minWidth:Te,maxWidth:Ne,minHeight:ze,maxHeight:Ne/Ee,lockAspectRatio:!0,enable:{top:!1,right:Me,bottom:!0,left:Re},onResizeStart:function(){M(!1)},onResizeStop:function(e,t,r,n){M(!0),f({width:parseInt(we+n.width,10),height:parseInt(ke+n.height,10)})}},ye)}else ye=Object(X.createElement)("div",{style:{width:d,height:p}},ye);return Object(X.createElement)(X.Fragment,null,fe,ye,(!K.RichText.isEmpty(o)||O)&&Object(X.createElement)(K.RichText,{ref:E,tagName:"figcaption",placeholder:Object(Q.__)("Write caption…"),value:o,unstableOnFocus:function(){D||G(!0)},onChange:function(e){return f({caption:e})},isSelected:D,inlineToolbar:!0,__unstableOnSplitAtEnd:function(){return v(Object(Y.createBlock)("core/paragraph"))}}))}function jt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function yt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?jt(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var _t=function(e,t){return!e&&Object(Ce.isBlobURL)(t)},wt=function(e,t){return t&&!e&&!Object(Ce.isBlobURL)(t)};var kt=Object(me.withNotices)((function(e){var t=e.attributes,r=e.setAttributes,n=e.isSelected,c=e.className,o=e.noticeUI,a=e.insertBlocksAfter,i=e.noticeOperations,l=e.onReplace,s=t.url,u=void 0===s?"":s,b=t.alt,m=t.caption,d=t.align,p=t.id,g=t.width,h=t.height,f=t.sizeSlug,O=Object(X.useRef)();Object(X.useEffect)((function(){O.current=b}),[b]);var v=Object(X.useRef)();Object(X.useEffect)((function(){v.current=m}),[m]);var j=Object(X.useRef)(),y=Object(de.useSelect)((function(e){return(0,e("core/block-editor").getSettings)().mediaUpload}));function _(e){i.removeAllNotices(),i.createErrorNotice(e)}function w(e){var n,c,o,a,i;if(e&&e.url){var l,s,b,m=(l=e,(s=Object(J.pick)(l,["alt","id","link","caption"])).url=Object(J.get)(l,["sizes","large","url"])||Object(J.get)(l,["media_details","sizes","large","source_url"])||l.url,s);_t(p,u)&&O.current&&(m=Object(J.omit)(m,["alt"])),v.current&&!Object(J.get)(m,["caption"])&&(m=Object(J.omit)(m,["caption"])),b=e.id&&e.id===p?{url:u}:{width:void 0,height:void 0,sizeSlug:"large"};var d,g=t.linkDestination;if(!g)switch((null===(n=wp)||void 0===n||null===(c=n.media)||void 0===c||null===(o=c.view)||void 0===o||null===(a=o.settings)||void 0===a||null===(i=a.defaultProps)||void 0===i?void 0:i.link)||"none"){case"file":case"media":g="media";break;case"post":case"attachment":g="attachment";break;case"custom":g="custom";break;case"none":g="none"}switch(g){case"media":d=e.url;break;case"attachment":d=e.link}m.href=d,r(yt(yt(yt({},m),b),{},{linkDestination:g}))}else r({url:void 0,alt:void 0,id:void 0,title:void 0,caption:void 0})}function k(e){e!==u&&r({url:e,id:void 0,sizeSlug:"large"})}var E=_t(p,u);Object(X.useEffect)((function(){if(E){var e=Object(Ce.getBlobByURL)(u);e&&y({filesList:[e],onFileChange:function(e){w(Object(be.a)(e,1)[0])},allowedTypes:Ot,onError:function(e){i.createErrorNotice(e),r({src:void 0,id:void 0,url:void 0})}})}}),[]),Object(X.useEffect)((function(){if(E)return function(){Object(Ce.revokeBlobURL)(u)}}),[E]);var C=wt(p,u),x=Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(K.BlockAlignmentToolbar,{value:d,onChange:function(e){var t=["wide","full"].includes(e)?{width:void 0,height:void 0}:{};r(yt(yt({},t),{},{align:e}))}})),S=C?u:void 0,P=!!u&&Object(X.createElement)("img",{alt:Object(Q.__)("Edit image"),title:Object(Q.__)("Edit image"),className:"edit-image-preview",src:u}),B=Object(X.createElement)(K.MediaPlaceholder,{icon:Object(X.createElement)(K.BlockIcon,{icon:we}),onSelect:w,onSelectURL:k,notices:o,onError:_,accept:"image/*",allowedTypes:Ot,value:{id:p,src:S},mediaPreview:P,disableMediaButtons:u}),T=ne()(c,Object(Z.a)({"is-transient":Object(Ce.isBlobURL)(u),"is-resized":!!g||!!h,"is-focused":n},"size-".concat(f),f)),z=Object(K.useBlockProps)({ref:j,className:T});return Object(X.createElement)(X.Fragment,null,x,Object(X.createElement)("figure",z,u&&Object(X.createElement)(vt,{attributes:t,setAttributes:r,isSelected:n,insertBlocksAfter:a,onReplace:l,onSelectImage:w,onSelectURL:k,onUploadError:_,containerRef:j}),B))}));function Et(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ct(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Et(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Et(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function xt(e,t){var r=document.implementation.createHTMLDocument("").body;r.innerHTML=e;var n=r.firstElementChild;if(n&&"A"===n.nodeName)return n.getAttribute(t)||void 0}var St={img:{attributes:["src","alt","title"],classes:["alignleft","aligncenter","alignright","alignnone",/^wp-image-\d+$/]}},Pt={from:[{type:"raw",isMatch:function(e){return"FIGURE"===e.nodeName&&!!e.querySelector("img")},schema:function(e){var t=e.phrasingContentSchema;return{figure:{require:["img"],children:Ct(Ct({},St),{},{a:{attributes:["href","rel","target"],children:St},figcaption:{children:t}})}}},transform:function(e){var t=e.className+" "+e.querySelector("img").className,r=/(?:^|\s)align(left|center|right)(?:$|\s)/.exec(t),n=""===e.id?void 0:e.id,c=r?r[1]:void 0,o=/(?:^|\s)wp-image-(\d+)(?:$|\s)/.exec(t),a=o?Number(o[1]):void 0,i=e.querySelector("a"),l=i&&i.href?"custom":void 0,s=i&&i.href?i.href:void 0,u=i&&i.rel?i.rel:void 0,b=i&&i.className?i.className:void 0,m=Object(Y.getBlockAttributes)("core/image",e.outerHTML,{align:c,id:a,linkDestination:l,href:s,rel:u,linkClass:b,anchor:n});return Object(Y.createBlock)("core/image",m)}},{type:"files",isMatch:function(e){return 1===e.length&&0===e[0].type.indexOf("image/")},transform:function(e){var t=e[0];return Object(Y.createBlock)("core/image",{url:Object(Ce.createBlobURL)(t)})}},{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:function(e,t){var r=t.shortcode,n=document.implementation.createHTMLDocument("").body;n.innerHTML=r.content;for(var c=n.querySelector("img");c&&c.parentNode&&c.parentNode!==n;)c=c.parentNode;return c&&c.parentNode.removeChild(c),n.innerHTML.trim()}},href:{shortcode:function(e,t){return xt(t.shortcode.content,"href")}},rel:{shortcode:function(e,t){return xt(t.shortcode.content,"rel")}},linkClass:{shortcode:function(e,t){return xt(t.shortcode.content,"class")}},id:{type:"number",shortcode:function(e){var t=e.named.id;if(t)return parseInt(t.replace("attachment_",""),10)}},align:{type:"string",shortcode:function(e){var t=e.named.align;return(void 0===t?"alignnone":t).replace("align","")}}}}]},Bt={apiVersion:2,name:"core/image",category:"media",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"},title:{type:"string",source:"attribute",selector:"img",attribute:"title"},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"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0}},Tt=Bt.name,zt={title:Object(Q.__)("Image"),description:Object(Q.__)("Insert an image to make a visual statement."),icon:we,keywords:["img",Object(Q.__)("photo"),Object(Q.__)("picture")],example:{attributes:{sizeSlug:"large",url:"https://s.w.org/images/core/5.3/MtBlanc1.jpg",caption:Object(Q.__)("Mont Blanc appears—still, snowy, and serene.")}},styles:[{name:"default",label:Object(Q._x)("Default","block style"),isDefault:!0},{name:"rounded",label:Object(Q._x)("Rounded","block style")}],__experimentalLabel:function(e,t){if("accessibility"===t.context){var r=e.caption,n=e.alt;return e.url?n?n+(r?". "+r:""):r||"":Object(Q.__)("Empty")}},getEditWrapperProps:function(e){return{"data-align":e.align}},transforms:Pt,edit:kt,save:function(e){var t,r=e.attributes,n=r.url,c=r.alt,o=r.caption,a=r.align,i=r.href,l=r.rel,s=r.linkClass,u=r.width,b=r.height,m=r.id,d=r.linkTarget,p=r.sizeSlug,g=r.title,h=Object(J.isEmpty)(l)?void 0:l,f=ne()((t={},Object(Z.a)(t,"align".concat(a),a),Object(Z.a)(t,"size-".concat(p),p),Object(Z.a)(t,"is-resized",u||b),t)),O=Object(X.createElement)("img",{src:n,alt:c,className:m?"wp-image-".concat(m):null,width:u,height:b,title:g}),v=Object(X.createElement)(X.Fragment,null,i?Object(X.createElement)("a",{className:s,href:i,target:d,rel:h},O):O,!K.RichText.isEmpty(o)&&Object(X.createElement)(K.RichText.Content,{tagName:"figcaption",value:o}));return"left"===a||"right"===a||"center"===a?Object(X.createElement)("div",K.useBlockProps.save(),Object(X.createElement)("figure",{className:f},v)):Object(X.createElement)("figure",K.useBlockProps.save({className:f}),v)},deprecated:Ee},Nt=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ee.Path,{d:"M6.2 5.2v13.4l5.8-4.8 5.8 4.8V5.2z"}));function Mt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Rt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Mt(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Vt={className:!1,anchor:!0},At={align:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:""},level:{type:"number",default:2},placeholder:{type:"string"}},Ht=function(e){if(!e.customTextColor)return e;var t={color:{text:e.customTextColor}};return Rt(Rt({},Object(J.omit)(e,["customTextColor"])),{},{style:t})},Lt=[{supports:Vt,attributes:Rt(Rt({},At),{},{customTextColor:{type:"string"},textColor:{type:"string"}}),migrate:Ht,save:function(e){var t,r=e.attributes,n=r.align,c=r.content,o=r.customTextColor,a=r.level,i=r.textColor,l="h"+a,s=Object(K.getColorClassName)("color",i),u=ne()((t={},Object(Z.a)(t,s,s),Object(Z.a)(t,"has-text-color",i||o),Object(Z.a)(t,"has-text-align-".concat(n),n),t));return Object(X.createElement)(K.RichText.Content,{className:u||void 0,tagName:l,style:{color:s?void 0:o},value:c})}},{attributes:Rt(Rt({},At),{},{customTextColor:{type:"string"},textColor:{type:"string"}}),migrate:Ht,save:function(e){var t,r=e.attributes,n=r.align,c=r.content,o=r.customTextColor,a=r.level,i=r.textColor,l="h"+a,s=Object(K.getColorClassName)("color",i),u=ne()((t={},Object(Z.a)(t,s,s),Object(Z.a)(t,"has-text-align-".concat(n),n),t));return Object(X.createElement)(K.RichText.Content,{className:u||void 0,tagName:l,style:{color:s?void 0:o},value:c})},supports:Vt},{supports:Vt,attributes:Rt(Rt({},At),{},{customTextColor:{type:"string"},textColor:{type:"string"}}),migrate:Ht,save:function(e){var t=e.attributes,r=t.align,n=t.level,c=t.content,o=t.textColor,a=t.customTextColor,i="h"+n,l=Object(K.getColorClassName)("color",o),s=ne()(Object(Z.a)({},l,l));return Object(X.createElement)(K.RichText.Content,{className:s||void 0,tagName:i,style:{textAlign:r,color:l?void 0:a},value:c})}}],It=r(18);function Dt(e){var t=e.level,r=e.isPressed,n=void 0!==r&&r,c={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 c.hasOwnProperty(t)?Object(X.createElement)(me.SVG,{width:"24",height:"24",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",isPressed:n},Object(X.createElement)(me.Path,{d:c[t]})):null}var Gt=[1,2,3,4,5,6],Ft={className:"block-library-heading-level-dropdown",isAlternate:!0};function Ut(e){var t=e.selectedLevel,r=e.onChange;return Object(X.createElement)(me.Dropdown,{popoverProps:Ft,renderToggle:function(e){var r=e.onToggle,n=e.isOpen;return Object(X.createElement)(me.ToolbarButton,{"aria-expanded":n,"aria-haspopup":"true",icon:Object(X.createElement)(Dt,{level:t}),label:Object(Q.__)("Change heading level"),onClick:r,onKeyDown:function(e){n||e.keyCode!==It.DOWN||(e.preventDefault(),e.stopPropagation(),r())},showTooltip:!0})},renderContent:function(){return Object(X.createElement)(me.Toolbar,{className:"block-library-heading-level-toolbar",label:Object(Q.__)("Change heading level")},Object(X.createElement)(me.ToolbarGroup,{isCollapsed:!1,controls:Gt.map((function(e){var n=e===t;return{icon:Object(X.createElement)(Dt,{level:e,isPressed:n}),title:Object(Q.sprintf)(Object(Q.__)("Heading %d"),e),isActive:n,onClick:function(){r(e)}}}))}))}})}function qt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Wt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qt(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Zt=function(e){var t=e.attributes,r=e.setAttributes,n=e.mergeBlocks,c=e.onReplace,o=e.mergedStyle,a=t.align,i=t.content,l=t.level,s=t.placeholder,u="h"+l,b=Object(K.useBlockProps)({className:ne()(Object(Z.a)({},"has-text-align-".concat(a),a)),style:o});return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(me.ToolbarGroup,null,Object(X.createElement)(Ut,{selectedLevel:l,onChange:function(e){return r({level:e})}})),Object(X.createElement)(K.AlignmentToolbar,{value:a,onChange:function(e){r({align:e})}})),Object(X.createElement)(K.RichText,Object(ue.a)({identifier:"content",tagName:u,value:i,onChange:function(e){return r({content:e})},onMerge:n,onSplit:function(e){return e?Object(Y.createBlock)("core/heading",Wt(Wt({},t),{},{content:e})):Object(Y.createBlock)("core/paragraph")},onReplace:c,onRemove:function(){return c([])},placeholder:s||Object(Q.__)("Write heading…"),textAlign:a},b)))};var $t={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:function(e){return e.map((function(e){var t=e.content,r=e.anchor;return Object(Y.createBlock)("core/heading",{content:t,anchor:r})}))}},{type:"raw",selector:"h1,h2,h3,h4,h5,h6",schema:function(e){var t={children:e.phrasingContentSchema,attributes:e.isPaste?[]:["style","id"]};return{h1:t,h2:t,h3:t,h4:t,h5:t,h6:t}},transform:function(e){var t,r=Object(Y.getBlockAttributes)("core/heading",e.outerHTML),n=(e.style||{}).textAlign;return r.level=(t=e.nodeName,Number(t.substr(1))),"left"!==n&&"center"!==n&&"right"!==n||(r.align=n),Object(Y.createBlock)("core/heading",r)}}].concat(Object(W.a)([1,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",isMultiBlock:!0,blocks:["core/paragraph"],transform:function(e){return e.map((function(e){var t=e.content,r=e.anchor;return Object(Y.createBlock)("core/paragraph",{content:t,anchor:r})}))}}]},Kt={apiVersion:2,name:"core/heading",category:"text",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"}},supports:{align:["wide","full"],anchor:!0,className:!1,color:{link:!0},fontSize:!0,lineHeight:!0,__experimentalSelector:{"core/heading/h1":"h1","core/heading/h2":"h2","core/heading/h3":"h3","core/heading/h4":"h4","core/heading/h5":"h5","core/heading/h6":"h6"},__unstablePasteTextInline:!0}},Yt=Kt.name,Jt={title:Object(Q.__)("Heading"),description:Object(Q.__)("Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content."),icon:Nt,keywords:[Object(Q.__)("title"),Object(Q.__)("subtitle")],example:{attributes:{content:Object(Q.__)("Code is Poetry"),level:2}},__experimentalLabel:function(e,t){if("accessibility"===t.context){var r=e.content,n=e.level;return Object(J.isEmpty)(r)?Object(Q.sprintf)(Object(Q.__)("Level %s. Empty."),n):Object(Q.sprintf)(Object(Q.__)("Level %1$s. %2$s"),n,r)}},transforms:$t,deprecated:Lt,merge:function(e,t){return{content:(e.content||"")+(t.content||"")}},edit:Zt,save:function(e){var t=e.attributes,r=t.align,n=t.content,c="h"+t.level,o=ne()(Object(Z.a)({},"has-text-align-".concat(r),r));return Object(X.createElement)(c,K.useBlockProps.save({className:o}),Object(X.createElement)(K.RichText.Content,{value:n}))}},Qt=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M13 6v6h5.2v4c0 .8-.2 1.4-.5 1.7-.6.6-1.6.6-2.5.5h-.3v1.5h.5c1 0 2.3-.1 3.3-1 .6-.6 1-1.6 1-2.8V6H13zm-9 6h5.2v4c0 .8-.2 1.4-.5 1.7-.6.6-1.6.6-2.5.5h-.3v1.5h.5c1 0 2.3-.1 3.3-1 .6-.6 1-1.6 1-2.8V6H4v6z"}));function Xt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function er(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Xt(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var tr={value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"cite",default:""},align:{type:"string"}},rr=[{attributes:tr,save:function(e){var t=e.attributes,r=t.align,n=t.value,c=t.citation;return Object(X.createElement)("blockquote",{style:{textAlign:r||null}},Object(X.createElement)(K.RichText.Content,{multiline:!0,value:n}),!K.RichText.isEmpty(c)&&Object(X.createElement)(K.RichText.Content,{tagName:"cite",value:c}))}},{attributes:er(er({},tr),{},{style:{type:"number",default:1}}),migrate:function(e){return 2===e.style?er(er({},Object(J.omit)(e,["style"])),{},{className:e.className?e.className+" is-style-large":"is-style-large"}):e},save:function(e){var t=e.attributes,r=t.align,n=t.value,c=t.citation,o=t.style;return Object(X.createElement)("blockquote",{className:2===o?"is-large":"",style:{textAlign:r||null}},Object(X.createElement)(K.RichText.Content,{multiline:!0,value:n}),!K.RichText.isEmpty(c)&&Object(X.createElement)(K.RichText.Content,{tagName:"cite",value:c}))}},{attributes:er(er({},tr),{},{citation:{type:"string",source:"html",selector:"footer",default:""},style:{type:"number",default:1}}),save:function(e){var t=e.attributes,r=t.align,n=t.value,c=t.citation,o=t.style;return Object(X.createElement)("blockquote",{className:"blocks-quote-style-".concat(o),style:{textAlign:r||null}},Object(X.createElement)(K.RichText.Content,{multiline:!0,value:n}),!K.RichText.isEmpty(c)&&Object(X.createElement)(K.RichText.Content,{tagName:"footer",value:c}))}}];function nr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function cr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?nr(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var or=r(14),ar=r(25);function ir(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function lr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ir(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ir(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var sr={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:function(e){return Object(Y.createBlock)("core/quote",{value:Object(ar.toHTMLString)({value:Object(ar.join)(e.map((function(e){var t=e.content;return Object(ar.create)({html:t})})),"\u2028"),multilineTag:"p"}),anchor:e.anchor})}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.content,r=e.anchor;return Object(Y.createBlock)("core/quote",{value:"<p>".concat(t,"</p>"),anchor:r})}},{type:"block",blocks:["core/pullquote"],transform:function(e){var t=e.value,r=e.citation,n=e.anchor;return Object(Y.createBlock)("core/quote",{value:t,citation:r,anchor:n})}},{type:"prefix",prefix:">",transform:function(e){return Object(Y.createBlock)("core/quote",{value:"<p>".concat(e,"</p>")})}},{type:"raw",isMatch:function(e){var t,r=(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(r)},schema:function(e){var t=e.phrasingContentSchema;return{blockquote:{children:{p:{children:t},cite:{children:t}}}}}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.value,r=e.citation,n=[];return t&&"<p></p>"!==t&&n.push.apply(n,Object(W.a)(Object(ar.split)(Object(ar.create)({html:t,multilineTag:"p"}),"\u2028").map((function(e){return Object(Y.createBlock)("core/paragraph",{content:Object(ar.toHTMLString)({value:e})})})))),r&&"<p></p>"!==r&&n.push(Object(Y.createBlock)("core/paragraph",{content:r})),0===n.length?Object(Y.createBlock)("core/paragraph",{content:""}):n}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.value,r=e.citation,n=Object(or.a)(e,["value","citation"]);if("<p></p>"===t)return Object(Y.createBlock)("core/heading",{content:r});var c=Object(ar.split)(Object(ar.create)({html:t,multilineTag:"p"}),"\u2028"),o=Object(Y.createBlock)("core/heading",{content:Object(ar.toHTMLString)({value:c[0]})});if(!r&&1===c.length)return o;var a=c.slice(1);return[o,Object(Y.createBlock)("core/quote",lr(lr({},n),{},{citation:r,value:Object(ar.toHTMLString)({value:a.length?Object(ar.join)(c.slice(1),"\u2028"):Object(ar.create)(),multilineTag:"p"})}))]}},{type:"block",blocks:["core/pullquote"],transform:function(e){var t=e.value,r=e.citation,n=e.anchor;return Object(Y.createBlock)("core/pullquote",{value:t,citation:r,anchor:n})}}]};function ur(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function br(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ur(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ur(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var mr={apiVersion:2,name:"core/quote",category:"text",attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"cite",default:""},align:{type:"string"}},supports:{anchor:!0}},dr=mr.name,pr={title:Object(Q.__)("Quote"),description:Object(Q.__)('Give quoted text visual emphasis. "In quoting others, we cite ourselves." — Julio Cortázar'),icon:Qt,keywords:[Object(Q.__)("blockquote"),Object(Q.__)("cite")],example:{attributes:{value:"<p>"+Object(Q.__)("In quoting others, we cite ourselves.")+"</p>",citation:"Julio Cortázar",className:"is-style-large"}},styles:[{name:"default",label:Object(Q._x)("Default","block style"),isDefault:!0},{name:"large",label:Object(Q._x)("Large","block style")}],transforms:sr,edit:function(e){var t=e.attributes,r=e.setAttributes,n=e.isSelected,c=e.mergeBlocks,o=e.onReplace,a=e.className,i=e.insertBlocksAfter,l=t.align,s=t.value,u=t.citation,b=Object(K.useBlockProps)({className:ne()(a,Object(Z.a)({},"has-text-align-".concat(l),l))});return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(K.AlignmentToolbar,{value:l,onChange:function(e){r({align:e})}})),Object(X.createElement)(me.BlockQuotation,b,Object(X.createElement)(K.RichText,{identifier:"value",multiline:!0,value:s,onChange:function(e){return r({value:e})},onMerge:c,onRemove:function(e){var t=!u||0===u.length;!e&&t&&o([])},placeholder:Object(Q.__)("Write quote…"),onReplace:o,onSplit:function(e){return Object(Y.createBlock)("core/quote",cr(cr({},t),{},{value:e}))},__unstableOnSplitMiddle:function(){return Object(Y.createBlock)("core/paragraph")},textAlign:l}),(!K.RichText.isEmpty(u)||n)&&Object(X.createElement)(K.RichText,{identifier:"citation",value:u,onChange:function(e){return r({citation:e})},__unstableMobileNoFocusOnMount:!0,placeholder:Object(Q.__)("Write citation…"),className:"wp-block-quote__citation",textAlign:l,__unstableOnSplitAtEnd:function(){return i(Object(Y.createBlock)("core/paragraph"))}})))},save:function(e){var t=e.attributes,r=t.align,n=t.value,c=t.citation,o=ne()(Object(Z.a)({},"has-text-align-".concat(r),r));return Object(X.createElement)("blockquote",K.useBlockProps.save({className:o}),Object(X.createElement)(K.RichText.Content,{multiline:!0,value:n}),!K.RichText.isEmpty(c)&&Object(X.createElement)(K.RichText.Content,{tagName:"cite",value:c}))},merge:function(e,t){var r=t.value,n=t.citation;return n||(n=e.citation),br(br({},e),{},r&&"<p></p>"!==r?{value:e.value+r,citation:n}:{citation:n})},deprecated:rr},gr=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8h-1.5zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zM4.5 4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1V12l-2.3-1.7c-.3-.2-.6-.2-.9 0l-2.9 2.1L8 11.3c-.2-.1-.5-.1-.7 0l-2.9 1.5V4.6zm0 11.8v-1.8l3.2-1.7 2.4 1.2c.2.1.5.1.8-.1l2.8-2 2.8 2v2.5c0 .1-.1.1-.1.1H4.6c0-.1-.1-.2-.1-.2z"}));function hr(e){return Math.min(3,e.images.length)}var fr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"large",r=Object(J.pick)(e,["alt","id","link","caption"]);r.url=Object(J.get)(e,["sizes",t,"url"])||Object(J.get)(e,["media_details","sizes",t,"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&&(r.fullUrl=n),r};function Or(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function vr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Or(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Or(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var jr=[{attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},fullUrl:{type:"string",source:"attribute",selector:"img",attribute:"data-full-url"},link:{type:"string",source:"attribute",selector:"img",attribute:"data-link"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},id:{type:"string",source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},columns:{type:"number",minimum:1,maximum:8},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string"},sizeSlug:{type:"string",default:"large"}},save:function(e){var t=e.attributes,r=t.images,n=t.columns,c=void 0===n?hr(t):n,o=t.imageCrop,a=t.caption,i=t.linkTo;return Object(X.createElement)("figure",{className:"columns-".concat(c," ").concat(o?"is-cropped":"")},Object(X.createElement)("ul",{className:"blocks-gallery-grid"},r.map((function(e){var t;switch(i){case"file":t=e.fullUrl||e.url;break;case"post":t=e.link}var r=Object(X.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(X.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(X.createElement)("figure",null,t?Object(X.createElement)("a",{href:t},r):r,!K.RichText.isEmpty(e.caption)&&Object(X.createElement)(K.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))}))),!K.RichText.isEmpty(a)&&Object(X.createElement)(K.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:a}))}},{attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},fullUrl:{type:"string",source:"attribute",selector:"img",attribute:"data-full-url"},link:{type:"string",source:"attribute",selector:"img",attribute:"data-link"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},id:{type:"string",source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},columns:{type:"number",minimum:1,maximum:8},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"},sizeSlug:{type:"string",default:"large"}},supports:{align:!0},isEligible:function(e){var t=e.linkTo;return!t||"attachment"===t||"media"===t},migrate:function(e){var t=e.linkTo;return e.linkTo?"attachment"===e.linkTo?t="post":"media"===e.linkTo&&(t="file"):t="none",vr(vr({},e),{},{linkTo:t})},save:function(e){var t=e.attributes,r=t.images,n=t.columns,c=void 0===n?hr(t):n,o=t.imageCrop,a=t.caption,i=t.linkTo;return Object(X.createElement)("figure",{className:"columns-".concat(c," ").concat(o?"is-cropped":"")},Object(X.createElement)("ul",{className:"blocks-gallery-grid"},r.map((function(e){var t;switch(i){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}var r=Object(X.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(X.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(X.createElement)("figure",null,t?Object(X.createElement)("a",{href:t},r):r,!K.RichText.isEmpty(e.caption)&&Object(X.createElement)(K.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))}))),!K.RichText.isEmpty(a)&&Object(X.createElement)(K.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:a}))}},{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"}},supports:{align:!0},isEligible:function(e){var t=e.ids;return t&&t.some((function(e){return"string"==typeof e}))},migrate:function(e){return vr(vr({},e),{},{ids:Object(J.map)(e.ids,(function(e){var t=parseInt(e,10);return Number.isInteger(t)?t:null}))})},save:function(e){var t=e.attributes,r=t.images,n=t.columns,c=void 0===n?hr(t):n,o=t.imageCrop,a=t.caption,i=t.linkTo;return Object(X.createElement)("figure",{className:"columns-".concat(c," ").concat(o?"is-cropped":"")},Object(X.createElement)("ul",{className:"blocks-gallery-grid"},r.map((function(e){var t;switch(i){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}var r=Object(X.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(X.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(X.createElement)("figure",null,t?Object(X.createElement)("a",{href:t},r):r,!K.RichText.isEmpty(e.caption)&&Object(X.createElement)(K.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))}))),!K.RichText.isEmpty(a)&&Object(X.createElement)(K.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:a}))}},{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"}},supports:{align:!0},save:function(e){var t=e.attributes,r=t.images,n=t.columns,c=void 0===n?hr(t):n,o=t.imageCrop,a=t.linkTo;return Object(X.createElement)("ul",{className:"columns-".concat(c," ").concat(o?"is-cropped":"")},r.map((function(e){var t;switch(a){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}var r=Object(X.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(X.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(X.createElement)("figure",null,t?Object(X.createElement)("a",{href:t},r):r,e.caption&&e.caption.length>0&&Object(X.createElement)(K.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,r=e.ids;return t&&t.length>0&&(!r&&t||r&&t&&r.length!==t.length||Object(J.some)(t,(function(e,t){return!e&&null!==r[t]||parseInt(e,10)!==r[t]})))},migrate:function(e){return vr(vr({},e),{},{ids:Object(J.map)(e.images,(function(e){var t=e.id;return t?parseInt(t,10):null}))})},supports:{align:!0},save:function(e){var t=e.attributes,r=t.images,n=t.columns,c=void 0===n?hr(t):n,o=t.imageCrop,a=t.linkTo;return Object(X.createElement)("ul",{className:"columns-".concat(c," ").concat(o?"is-cropped":"")},r.map((function(e){var t;switch(a){case"media":t=e.url;break;case"attachment":t=e.link}var r=Object(X.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(X.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(X.createElement)("figure",null,t?Object(X.createElement)("a",{href:t},r):r,e.caption&&e.caption.length>0&&Object(X.createElement)(K.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"}},supports:{align:!0},save:function(e){var t=e.attributes,r=t.images,n=t.columns,c=void 0===n?hr(t):n,o=t.align,a=t.imageCrop,i=t.linkTo,l=ne()("columns-".concat(c),{alignnone:"none"===o,"is-cropped":a});return Object(X.createElement)("div",{className:l},r.map((function(e){var t;switch(i){case"media":t=e.url;break;case"attachment":t=e.link}var r=Object(X.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id});return Object(X.createElement)("figure",{key:e.id||e.url,className:"blocks-gallery-image"},t?Object(X.createElement)("a",{href:t},r):r)})))}}],yr=r(101),_r=Object(X.createElement)(K.BlockIcon,{icon:gr}),wr=r(21),kr=r(22),Er=r(16),Cr=r(23),xr=r(24),Sr=r(19),Pr=r(215),Br=r(214),Tr=r(274),zr=r(159);function Nr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Object(Sr.a)(e);if(t){var c=Object(Sr.a)(this).constructor;r=Reflect.construct(n,arguments,c)}else r=n.apply(this,arguments);return Object(xr.a)(this,r)}}var Mr=function(e){Object(Cr.a)(r,e);var t=Nr(r);function r(){var e;return Object(wr.a)(this,r),(e=t.apply(this,arguments)).onSelectImage=e.onSelectImage.bind(Object(Er.a)(e)),e.onSelectCaption=e.onSelectCaption.bind(Object(Er.a)(e)),e.onRemoveImage=e.onRemoveImage.bind(Object(Er.a)(e)),e.bindContainer=e.bindContainer.bind(Object(Er.a)(e)),e.onEdit=e.onEdit.bind(Object(Er.a)(e)),e.onSelectImageFromLibrary=e.onSelectImageFromLibrary.bind(Object(Er.a)(e)),e.onSelectCustomURL=e.onSelectCustomURL.bind(Object(Er.a)(e)),e.state={captionSelected:!1,isEditing:!1},e}return Object(kr.a)(r,[{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!==[It.BACKSPACE,It.DELETE].indexOf(e.keyCode)&&(e.stopPropagation(),e.preventDefault(),this.props.onRemove())}},{key:"onEdit",value:function(){this.setState({isEditing:!0})}},{key:"componentDidUpdate",value:function(e){var t=this.props,r=t.isSelected,n=t.image,c=t.url,o=t.__unstableMarkNextChangeAsNotPersistent;n&&!c&&(o(),this.props.setAttributes({url:n.source_url,alt:n.alt_text})),this.state.captionSelected&&!r&&e.isSelected&&this.setState({captionSelected:!1})}},{key:"deselectOnBlur",value:function(){this.props.onDeselect()}},{key:"onSelectImageFromLibrary",value:function(e){var t=this.props,r=t.setAttributes,n=t.id,c=t.url,o=t.alt,a=t.caption,i=t.sizeSlug;if(e&&e.url){var l=fr(e,i);(function(e,t){return!e&&Object(Ce.isBlobURL)(t)})(n,c)&&o&&(l=Object(J.omit)(l,["alt"])),a&&!Object(J.get)(l,["caption"])&&(l=Object(J.omit)(l,["caption"])),r(l),this.setState({isEditing:!1})}}},{key:"onSelectCustomURL",value:function(e){var t=this.props,r=t.setAttributes;e!==t.url&&(r({url:e,id:void 0}),this.setState({isEditing:!1}))}},{key:"render",value:function(){var e,t=this.props,r=t.url,n=t.alt,c=t.id,o=t.linkTo,a=t.link,i=t.isFirstItem,l=t.isLastItem,s=t.isSelected,u=t.caption,b=t.onRemove,m=t.onMoveForward,d=t.onMoveBackward,p=t.setAttributes,g=t["aria-label"],h=this.state.isEditing;switch(o){case"file":e=r;break;case"post":e=a}var f=Object(X.createElement)(X.Fragment,null,Object(X.createElement)("img",{src:r,alt:n,"data-id":c,onClick:this.onSelectImage,onFocus:this.onSelectImage,onKeyDown:this.onRemoveImage,tabIndex:"0","aria-label":g,ref:this.bindContainer}),Object(Ce.isBlobURL)(r)&&Object(X.createElement)(me.Spinner,null)),O=ne()({"is-selected":s,"is-transient":Object(Ce.isBlobURL)(r)});return Object(X.createElement)("figure",{className:O},!h&&(e?Object(X.createElement)("a",{href:e},f):f),h&&Object(X.createElement)(K.MediaPlaceholder,{labels:{title:Object(Q.__)("Edit gallery image")},icon:we,onSelect:this.onSelectImageFromLibrary,onSelectURL:this.onSelectCustomURL,accept:"image/*",allowedTypes:["image"],value:{id:c,src:r}}),Object(X.createElement)(me.ButtonGroup,{className:"block-library-gallery-item__inline-menu is-left"},Object(X.createElement)(me.Button,{icon:Pr.a,onClick:i?void 0:d,label:Object(Q.__)("Move image backward"),"aria-disabled":i,disabled:!s}),Object(X.createElement)(me.Button,{icon:Br.a,onClick:l?void 0:m,label:Object(Q.__)("Move image forward"),"aria-disabled":l,disabled:!s})),Object(X.createElement)(me.ButtonGroup,{className:"block-library-gallery-item__inline-menu is-right"},Object(X.createElement)(me.Button,{icon:Tr.a,onClick:this.onEdit,label:Object(Q.__)("Replace image"),disabled:!s}),Object(X.createElement)(me.Button,{icon:zr.a,onClick:b,label:Object(Q.__)("Remove image"),disabled:!s})),!h&&(s||u)&&Object(X.createElement)(K.RichText,{tagName:"figcaption",placeholder:s?Object(Q.__)("Write caption…"):null,value:u,isSelected:this.state.captionSelected,onChange:function(e){return p({caption:e})},unstableOnFocus:this.onSelectCaption,inlineToolbar:!0}))}}]),r}(X.Component),Rr=Object(xe.compose)([Object(de.withSelect)((function(e,t){var r=e("core").getMedia,n=t.id;return{image:n?r(parseInt(n,10)):null}})),Object(de.withDispatch)((function(e){return{__unstableMarkNextChangeAsNotPersistent:e("core/block-editor").__unstableMarkNextChangeAsNotPersistent}}))])(Mr);function Vr(e){var t=e.isHidden,r=Object(or.a)(e,["isHidden"]);return t?Object(X.createElement)(me.VisuallyHidden,Object(ue.a)({as:K.RichText},r)):Object(X.createElement)(K.RichText,r)}var Ar=function(e){var t,r=e.attributes,n=e.className,c=e.isSelected,o=e.setAttributes,a=e.selectedImage,i=e.mediaPlaceholder,l=e.onMoveBackward,s=e.onMoveForward,u=e.onRemoveImage,b=e.onSelectImage,m=e.onDeselectImage,d=e.onSetImageAttributes,p=e.onFocusGalleryCaption,g=e.insertBlocksAfter,h=r.align,f=r.columns,O=void 0===f?hr(r):f,v=r.caption,j=r.imageCrop,y=r.images;return Object(X.createElement)("figure",{className:ne()(n,(t={},Object(Z.a)(t,"align".concat(h),h),Object(Z.a)(t,"columns-".concat(O),O),Object(Z.a)(t,"is-cropped",j),t))},Object(X.createElement)("ul",{className:"blocks-gallery-grid"},y.map((function(e,t){var n=Object(Q.sprintf)(Object(Q.__)("image %1$d of %2$d in gallery"),t+1,y.length);return Object(X.createElement)("li",{className:"blocks-gallery-item",key:e.id||e.url},Object(X.createElement)(Rr,{url:e.url,alt:e.alt,id:e.id,isFirstItem:0===t,isLastItem:t+1===y.length,isSelected:c&&a===t,onMoveBackward:l(t),onMoveForward:s(t),onRemove:u(t),onSelect:b(t),onDeselect:m(t),setAttributes:function(e){return d(t,e)},caption:e.caption,"aria-label":n,sizeSlug:r.sizeSlug}))}))),i,Object(X.createElement)(Vr,{isHidden:!c&&K.RichText.isEmpty(v),tagName:"figcaption",className:"blocks-gallery-caption",placeholder:Object(Q.__)("Write gallery caption…"),value:v,unstableOnFocus:p,onChange:function(e){return o({caption:e})},inlineToolbar:!0,__unstableOnSplitAtEnd:function(){return g(Object(Y.createBlock)("core/paragraph"))}}))};function Hr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Lr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Hr(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Ir=[{value:"post",label:Object(Q.__)("Attachment Page")},{value:"file",label:Object(Q.__)("Media File")},{value:"none",label:Object(Q.__)("None")}],Dr=["image"],Gr=X.Platform.select({web:Object(Q.__)("Drag images, upload new ones or select files from your library."),native:Object(Q.__)("ADD MEDIA")}),Fr=X.Platform.select({web:{},native:{type:"stepper"}});var Ur=Object(xe.compose)([Object(de.withSelect)((function(e,t){var r=t.attributes.ids,n=t.isSelected,c=e("core").getMedia,o=(0,e("core/block-editor").getSettings)(),a=o.imageSizes,i=o.mediaUpload,l={};return n&&(l=Object(J.reduce)(r,(function(e,t){if(!t)return e;var r=c(t),n=Object(J.reduce)(a,(function(e,t){var n=Object(J.get)(r,["sizes",t.slug,"url"]),c=Object(J.get)(r,["media_details","sizes",t.slug,"source_url"]);return Lr(Lr({},e),{},Object(Z.a)({},t.slug,n||c))}),{});return Lr(Lr({},e),{},Object(Z.a)({},parseInt(t,10),n))}),{})),{imageSizes:a,mediaUpload:i,resizedImages:l}})),me.withNotices,Object(yr.withViewportMatch)({isNarrow:"< small"})])((function(e){var t=e.attributes,r=e.className,n=e.isSelected,c=e.noticeUI,o=e.noticeOperations,a=e.mediaUpload,i=e.imageSizes,l=e.resizedImages,s=e.onFocus,u=t.columns,b=void 0===u?hr(t):u,m=t.imageCrop,d=t.images,p=t.linkTo,g=t.sizeSlug,h=Object(X.useState)(),f=Object(be.a)(h,2),O=f[0],v=f[1],j=Object(X.useState)(),y=Object(be.a)(j,2),_=y[0],w=y[1],k=Object(de.useDispatch)("core/block-editor").__unstableMarkNextChangeAsNotPersistent;function E(t){if(t.ids)throw new Error('The "ids" attribute should not be changed directly. It is managed automatically when "images" attribute changes');t.images&&(t=Lr(Lr({},t),{},{ids:Object(J.map)(t.images,(function(e){var t=e.id;return parseInt(t,10)}))})),e.setAttributes(t)}function C(e,t){var r=Object(W.a)(d);r.splice(t,1,d[e]),r.splice(e,1,d[t]),v(t),E({images:r})}function x(e){var t=Object(J.toString)(e.id),r=Object(J.find)(d,{id:t}),n=r?r.caption:e.caption;if(!_)return n;var c=Object(J.find)(_,{id:t});return c&&c.caption!==e.caption?e.caption:n}function S(e){w(e.map((function(e){return{id:Object(J.toString)(e.id),caption:e.caption}}))),E({images:e.map((function(e){return Lr(Lr({},fr(e,g)),{},{caption:x(e),id:Object(J.toString)(e.id)})})),columns:t.columns?Math.min(e.length,t.columns):t.columns})}Object(X.useEffect)((function(){if("web"===X.Platform.OS&&d&&d.length>0&&Object(J.every)(d,(function(e){var t=e.url;return Object(Ce.isBlobURL)(t)}))){var e=Object(J.map)(d,(function(e){var t=e.url;return Object(Ce.getBlobByURL)(t)}));Object(J.forEach)(d,(function(e){var t=e.url;return Object(Ce.revokeBlobURL)(t)})),a({filesList:e,onFileChange:S,allowedTypes:["image"]})}}),[]),Object(X.useEffect)((function(){n||v()}),[n]),Object(X.useEffect)((function(){var e,t,r,n,c,o;p||(k(),E({linkTo:(null===(e=window)||void 0===e||null===(t=e.wp)||void 0===t||null===(r=t.media)||void 0===r||null===(n=r.view)||void 0===n||null===(c=n.settings)||void 0===c||null===(o=c.defaultProps)||void 0===o?void 0:o.link)||"none"}))}),[p]);var P=!!d.length,B=Object(X.createElement)(K.MediaPlaceholder,{addToGallery:P,isAppender:P,className:r,disableMediaButtons:P&&!n,icon:!P&&_r,labels:{title:!P&&Object(Q.__)("Gallery"),instructions:!P&&Gr},onSelect:S,accept:"image/*",allowedTypes:Dr,multiple:!0,value:d,onError:function(e){o.removeAllNotices(),o.createErrorNotice(e)},notices:P?void 0:c,onFocus:s});if(!P)return B;var T=Object(J.map)(Object(J.filter)(i,(function(e){var t=e.slug;return Object(J.some)(l,(function(e){return e[t]}))})),(function(e){var t=e.name;return{value:e.slug,label:t}})),z=P&&!Object(J.isEmpty)(T);return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Gallery settings")},d.length>1&&Object(X.createElement)(me.RangeControl,Object(ue.a)({label:Object(Q.__)("Columns"),value:b,onChange:function(e){E({columns:e})},min:1,max:Math.min(8,d.length)},Fr,{required:!0})),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Crop images"),checked:!!m,onChange:function(){E({imageCrop:!m})},help:function(e){return e?Object(Q.__)("Thumbnails are cropped to align."):Object(Q.__)("Thumbnails are not cropped.")}}),Object(X.createElement)(me.SelectControl,{label:Object(Q.__)("Link to"),value:p,onChange:function(e){E({linkTo:e})},options:Ir}),z&&Object(X.createElement)(me.SelectControl,{label:Object(Q.__)("Image size"),value:g,options:T,onChange:function(e){E({images:Object(J.map)(d,(function(t){if(!t.id)return t;var r=Object(J.get)(l,[parseInt(t.id,10),e]);return Lr(Lr({},t),r&&{url:r})})),newSizeSlug:e})}}))),c,Object(X.createElement)(Ar,Object(ue.a)({},e,{selectedImage:O,mediaPlaceholder:B,onMoveBackward:function(e){return function(){0!==e&&C(e,e-1)}},onMoveForward:function(e){return function(){e!==d.length-1&&C(e,e+1)}},onRemoveImage:function(e){return function(){var r=Object(J.filter)(d,(function(t,r){return e!==r}));v(),E({images:r,columns:t.columns?Math.min(r.length,t.columns):t.columns})}},onSelectImage:function(e){return function(){v(e)}},onDeselectImage:function(){return function(){v()}},onSetImageAttributes:function(e,t){d[e]&&E({images:[].concat(Object(W.a)(d.slice(0,e)),[Lr(Lr({},d[e]),t)],Object(W.a)(d.slice(e+1)))})},onFocusGalleryCaption:function(){v()}})))}));var qr=function(e){return e?e.split(",").map((function(e){return parseInt(e,10)})):[]},Wr={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:function(e){var t=e[0],r=t.align,n=t.sizeSlug;r=Object(J.every)(e,["align",r])?r:void 0,n=Object(J.every)(e,["sizeSlug",n])?n:void 0;var c=Object(J.filter)(e,(function(e){return e.url}));return Object(Y.createBlock)("core/gallery",{images:c.map((function(e){var t=e.id,r=e.url,n=e.alt,c=e.caption;return{id:Object(J.toString)(t),url:r,alt:n,caption:c}})),ids:c.map((function(e){var t=e.id;return parseInt(t,10)})),align:r,sizeSlug:n})}},{type:"shortcode",tag:"gallery",attributes:{images:{type:"array",shortcode:function(e){var t=e.named.ids;return qr(t).map((function(e){return{id:Object(J.toString)(e)}}))}},ids:{type:"array",shortcode:function(e){var t=e.named.ids;return qr(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;return void 0===t?"post":t}}},isMatch:function(e){return void 0!==e.named.ids}},{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(Y.createBlock)("core/gallery",{images:e.map((function(e){return fr({url:Object(Ce.createBlobURL)(e)})}))})}}],to:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.images,r=e.align,n=e.sizeSlug,c=e.ids;return t.length>0?t.map((function(e,t){var o=e.url,a=e.alt,i=e.caption;return Object(Y.createBlock)("core/image",{id:c[t],url:o,alt:a,caption:i,align:r,sizeSlug:n})})):Object(Y.createBlock)("core/image",{align:r})}}]},Zr={name:"core/gallery",category:"media",attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},fullUrl:{type:"string",source:"attribute",selector:"img",attribute:"data-full-url"},link:{type:"string",source:"attribute",selector:"img",attribute:"data-link"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},id:{type:"string",source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},columns:{type:"number",minimum:1,maximum:8},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string"},sizeSlug:{type:"string",default:"large"}},supports:{anchor:!0,align:!0}},$r=Zr.name,Kr={title:Object(Q.__)("Gallery"),description:Object(Q.__)("Display multiple images in a rich gallery."),icon:gr,keywords:[Object(Q.__)("images"),Object(Q.__)("photos")],example:{attributes:{columns:2,images:[{url:"https://s.w.org/images/core/5.3/Glacial_lakes%2C_Bhutan.jpg"},{url:"https://s.w.org/images/core/5.3/Sediment_off_the_Yucatan_Peninsula.jpg"}]}},transforms:Wr,edit:Ur,save:function(e){var t=e.attributes,r=t.images,n=t.columns,c=void 0===n?hr(t):n,o=t.imageCrop,a=t.caption,i=t.linkTo;return Object(X.createElement)("figure",{className:"columns-".concat(c," ").concat(o?"is-cropped":"")},Object(X.createElement)("ul",{className:"blocks-gallery-grid"},r.map((function(e){var t;switch(i){case"file":t=e.fullUrl||e.url;break;case"post":t=e.link}var r=Object(X.createElement)("img",{src:e.url,alt:""!==e.alt?e.alt:e.caption,"data-id":e.id,"data-full-url":e.fullUrl,"data-link":e.link,className:e.id?"wp-image-".concat(e.id):null});return Object(X.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(X.createElement)("figure",null,t?Object(X.createElement)("a",{href:t},r):r,!K.RichText.isEmpty(e.caption)&&Object(X.createElement)(K.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))}))),!K.RichText.isEmpty(a)&&Object(X.createElement)(K.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:a}))},deprecated:jr},Yr=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M19 6.2h-5.9l-.6-1.1c-.3-.7-1-1.1-1.8-1.1H5c-1.1 0-2 .9-2 2v11.8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8.2c0-1.1-.9-2-2-2zm.5 11.6c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h5.8c.2 0 .4.1.4.3l1 2H19c.3 0 .5.2.5.5v9.5zM8 12.8h8v-1.5H8v1.5zm0 3h8v-1.5H8v1.5z"})),Jr=r(87),Qr=r.n(Jr);var Xr={apiVersion:2,name:"core/archives",category:"widgets",attributes:{displayAsDropdown:{type:"boolean",default:!1},showPostCounts:{type:"boolean",default:!1}},supports:{align:!0,html:!1}},en=Xr.name,tn={title:Object(Q.__)("Archives"),description:Object(Q.__)("Display a monthly archive of your posts."),icon:Yr,example:{},edit:function(e){var t=e.attributes,r=e.setAttributes,n=t.showPostCounts,c=t.displayAsDropdown;return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Archives settings")},Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Display as dropdown"),checked:c,onChange:function(){return r({displayAsDropdown:!c})}}),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Show post counts"),checked:n,onChange:function(){return r({showPostCounts:!n})}}))),Object(X.createElement)("div",Object(K.useBlockProps)(),Object(X.createElement)(me.Disabled,null,Object(X.createElement)(Qr.a,{block:"core/archives",attributes:t}))))}},rn=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M17.7 4.3c-1.2 0-2.8 0-3.8 1-.6.6-.9 1.5-.9 2.6V14c-.6-.6-1.5-1-2.5-1C8.6 13 7 14.6 7 16.5S8.6 20 10.5 20c1.5 0 2.8-1 3.3-2.3.5-.8.7-1.8.7-2.5V7.9c0-.7.2-1.2.5-1.6.6-.6 1.8-.6 2.8-.6h.3V4.3h-.4z"})),nn=[{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"}},supports:{align:!0},save:function(e){var t=e.attributes,r=t.autoplay,n=t.caption,c=t.loop,o=t.preload,a=t.src;return Object(X.createElement)("figure",null,Object(X.createElement)("audio",{controls:"controls",src:a,autoPlay:r,loop:c,preload:o}),!K.RichText.isEmpty(n)&&Object(X.createElement)(K.RichText.Content,{tagName:"figcaption",value:n}))}}],cn=["audio"];var on=Object(me.withNotices)((function(e){var t=e.attributes,r=e.noticeOperations,n=e.setAttributes,c=e.onReplace,o=e.isSelected,a=e.noticeUI,i=e.insertBlocksAfter,l=t.id,s=t.autoplay,u=t.caption,b=t.loop,m=t.preload,d=t.src,p=Object(K.useBlockProps)(),g=Object(de.useSelect)((function(e){return(0,e("core/block-editor").getSettings)().mediaUpload}),[]);function h(e){return function(t){n(Object(Z.a)({},e,t))}}function f(e){if(e!==d){var t=Ie({attributes:{url:e}});if(void 0!==t)return void c(t);n({src:e,id:void 0})}}function O(e){r.removeAllNotices(),r.createErrorNotice(e)}function v(e){e&&e.url?n({src:e.url,id:e.id}):n({src:void 0,id:void 0})}return Object(X.useEffect)((function(){if(!l&&Object(Ce.isBlobURL)(d)){var e=Object(Ce.getBlobByURL)(d);e&&g({filesList:[e],onFileChange:function(e){var t=Object(be.a)(e,1)[0],r=t.id,c=t.url;n({id:r,src:c})},onError:function(e){n({src:void 0,id:void 0}),r.createErrorNotice(e)},allowedTypes:cn})}}),[]),d?Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(K.MediaReplaceFlow,{mediaId:l,mediaURL:d,allowedTypes:cn,accept:"audio/*",onSelect:v,onSelectURL:f,onError:O})),Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Audio settings")},Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Autoplay"),onChange:h("autoplay"),checked:s,help:function(e){return e?Object(Q.__)("Note: Autoplaying audio may cause usability issues for some visitors."):null}}),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Loop"),onChange:h("loop"),checked:b}),Object(X.createElement)(me.SelectControl,{label:Object(Q.__)("Preload"),value:m||"",onChange:function(e){return n({preload:e||void 0})},options:[{value:"",label:Object(Q.__)("Browser default")},{value:"auto",label:Object(Q.__)("Auto")},{value:"metadata",label:Object(Q.__)("Metadata")},{value:"none",label:Object(Q.__)("None")}]}))),Object(X.createElement)("figure",p,Object(X.createElement)(me.Disabled,null,Object(X.createElement)("audio",{controls:"controls",src:d})),(!K.RichText.isEmpty(u)||o)&&Object(X.createElement)(K.RichText,{tagName:"figcaption",placeholder:Object(Q.__)("Write caption…"),value:u,onChange:function(e){return n({caption:e})},inlineToolbar:!0,__unstableOnSplitAtEnd:function(){return i(Object(Y.createBlock)("core/paragraph"))}}))):Object(X.createElement)("div",p,Object(X.createElement)(K.MediaPlaceholder,{icon:Object(X.createElement)(K.BlockIcon,{icon:rn}),onSelect:v,onSelectURL:f,accept:"audio/*",allowedTypes:cn,value:t,notices:a,onError:O}))}));var an={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(Y.createBlock)("core/audio",{src:Object(Ce.createBlobURL)(t)})}},{type:"shortcode",tag:"audio",attributes:{src:{type:"string",shortcode:function(e){var t=e.named,r=t.src,n=t.mp3,c=t.m4a,o=t.ogg,a=t.wav,i=t.wma;return r||n||c||o||a||i}},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}}}}]},ln={apiVersion:2,name:"core/audio",category:"media",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"}},supports:{anchor:!0,align:!0}},sn=ln.name,un={title:Object(Q.__)("Audio"),description:Object(Q.__)("Embed a simple audio player."),keywords:[Object(Q.__)("music"),Object(Q.__)("sound"),Object(Q.__)("podcast"),Object(Q.__)("recording")],icon:rn,transforms:an,deprecated:nn,edit:on,save:function(e){var t=e.attributes,r=t.autoplay,n=t.caption,c=t.loop,o=t.preload,a=t.src;return a&&Object(X.createElement)("figure",K.useBlockProps.save(),Object(X.createElement)("audio",{controls:"controls",src:a,autoPlay:r,loop:c,preload:o}),!K.RichText.isEmpty(n)&&Object(X.createElement)(K.RichText.Content,{tagName:"figcaption",value:n}))}},bn=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M19 6.5H5c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7c0-1.1-.9-2-2-2zm.5 9c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v7zM8 13h8v-1.5H8V13z"})),mn={from:[{type:"block",isMultiBlock:!0,blocks:["core/button"],transform:function(e){return Object(Y.createBlock)("core/buttons",{},e.map((function(e){return Object(Y.createBlock)("core/button",e)})))}}]};function dn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function pn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?dn(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var gn=function(e){if(!e.customTextColor&&!e.customBackgroundColor&&!e.customGradient)return e;var t={color:{}};return e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),e.customGradient&&(t.color.gradient=e.customGradient),pn(pn({},Object(J.omit)(e,["customTextColor","customBackgroundColor","customGradient"])),{},{style:t})},hn=function(e){return gn(Object(J.omit)(pn(pn({},e),{},{customTextColor:e.textColor&&"#"===e.textColor[0]?e.textColor:void 0,customBackgroundColor:e.color&&"#"===e.color[0]?e.color:void 0}),["color","textColor"]))},fn={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"}},On=[{supports:{align:!0,alignWide:!1,color:{gradients:!0}},attributes:pn(pn({},fn),{},{linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"}}),save:function(e){var t=e.attributes,r=t.borderRadius,n=t.linkTarget,c=t.rel,o=t.text,a=t.title,i=t.url,l=ne()("wp-block-button__link",{"no-border-radius":0===r}),s={borderRadius:r?r+"px":void 0};return Object(X.createElement)(K.RichText.Content,{tagName:"a",className:l,href:i,title:a,style:s,value:o,target:n,rel:c})}},{supports:{align:!0,alignWide:!1},attributes:pn(pn({},fn),{},{linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},customGradient:{type:"string"},gradient:{type:"string"}}),isEligible:function(e){return!!e.customTextColor||!!e.customBackgroundColor||!!e.customGradient},migrate:gn,save:function(e){var t,r=e.attributes,n=r.backgroundColor,c=r.borderRadius,o=r.customBackgroundColor,a=r.customTextColor,i=r.customGradient,l=r.linkTarget,s=r.gradient,u=r.rel,b=r.text,m=r.textColor,d=r.title,p=r.url,g=Object(K.getColorClassName)("color",m),h=!i&&Object(K.getColorClassName)("background-color",n),f=Object(K.__experimentalGetGradientClass)(s),O=ne()("wp-block-button__link",(t={"has-text-color":m||a},Object(Z.a)(t,g,g),Object(Z.a)(t,"has-background",n||o||i||s),Object(Z.a)(t,h,h),Object(Z.a)(t,"no-border-radius",0===c),Object(Z.a)(t,f,f),t)),v={background:i||void 0,backgroundColor:h||i||s?void 0:o,color:g?void 0:a,borderRadius:c?c+"px":void 0};return Object(X.createElement)("div",null,Object(X.createElement)(K.RichText.Content,{tagName:"a",className:O,href:p,title:d,style:v,value:b,target:l,rel:u}))}},{attributes:pn(pn({},fn),{},{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()),gn(pn(pn({},e),{},{className:t||void 0,borderRadius:0}))},save:function(e){var t,r=e.attributes,n=r.backgroundColor,c=r.customBackgroundColor,o=r.customTextColor,a=r.linkTarget,i=r.rel,l=r.text,s=r.textColor,u=r.title,b=r.url,m=Object(K.getColorClassName)("color",s),d=Object(K.getColorClassName)("background-color",n),p=ne()("wp-block-button__link",(t={"has-text-color":s||o},Object(Z.a)(t,m,m),Object(Z.a)(t,"has-background",n||c),Object(Z.a)(t,d,d),t)),g={backgroundColor:d?void 0:c,color:m?void 0:o};return Object(X.createElement)("div",null,Object(X.createElement)(K.RichText.Content,{tagName:"a",className:p,href:b,title:u,style:g,value:l,target:a,rel:i}))}},{attributes:pn(pn({},fn),{},{align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"}}),migrate:hn,save:function(e){var t,r=e.attributes,n=r.url,c=r.text,o=r.title,a=r.backgroundColor,i=r.textColor,l=r.customBackgroundColor,s=r.customTextColor,u=Object(K.getColorClassName)("color",i),b=Object(K.getColorClassName)("background-color",a),m=ne()("wp-block-button__link",(t={"has-text-color":i||s},Object(Z.a)(t,u,u),Object(Z.a)(t,"has-background",a||l),Object(Z.a)(t,b,b),t)),d={backgroundColor:b?void 0:l,color:u?void 0:s};return Object(X.createElement)("div",null,Object(X.createElement)(K.RichText.Content,{tagName:"a",className:m,href:n,title:o,style:d,value:c}))}},{attributes:pn(pn({},fn),{},{color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}}),save:function(e){var t=e.attributes,r=t.url,n=t.text,c=t.title,o=t.align,a={backgroundColor:t.color,color:t.textColor};return Object(X.createElement)("div",{className:"align".concat(o)},Object(X.createElement)(K.RichText.Content,{tagName:"a",className:"wp-block-button__link",href:r,title:c,style:a,value:n}))},migrate:hn},{attributes:pn(pn({},fn),{},{color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}}),save:function(e){var t=e.attributes,r=t.url,n=t.text,c=t.title,o=t.align,a=t.color,i=t.textColor;return Object(X.createElement)("div",{className:"align".concat(o),style:{backgroundColor:a}},Object(X.createElement)(K.RichText.Content,{tagName:"a",href:r,title:c,style:{color:i},value:n}))},migrate:hn}],vn=r(186),jn=r(218);function yn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _n(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?yn(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var wn=[],kn="web"===X.Platform.OS;function En(e){return e.ownerDocument.defaultView.getComputedStyle(e)}var Cn=function e(t){if(!Object(J.isObject)(t))return t;var r=Object(J.pickBy)(Object(J.mapValues)(t,e),J.identity);return Object(J.isEqual)(r,{})?void 0:r};function xn(e){var t=e.settings,r=e.clientId,n=e.enableContrastChecking,c=void 0===n||n,o=Object(X.useState)(),a=Object(be.a)(o,2),i=a[0],l=a[1],s=Object(X.useState)(),u=Object(be.a)(s,2),b=u[0],m=u[1],d=kn?Object(Q.__)("Color settings"):Object(Q.__)("Color Settings");return Object(X.useEffect)((function(){if(!kn||c){var e=function(e){return document.getElementById("block-"+e)}(r);if(e){m(En(e).color);for(var t=e,n=En(t).backgroundColor;"rgba(0, 0, 0, 0)"===n&&t.parentNode&&t.parentNode.nodeType===t.parentNode.ELEMENT_NODE;)n=En(t=t.parentNode).backgroundColor;l(n)}}})),Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(K.__experimentalPanelColorGradientSettings,{title:d,initialOpen:!1,settings:t},kn&&c&&Object(X.createElement)(K.ContrastChecker,{backgroundColor:i,textColor:b})))}var Sn=function(e){var t,r,n,c=e.attributes,o=Object(K.__experimentalUseEditorFeature)("color.palette")||wn,a=Object(K.__experimentalUseEditorFeature)("color.gradients")||wn,i=Object(X.useRef)(c);Object(X.useEffect)((function(){i.current=c}),[c]);var l,s,u=c.style,b=c.textColor,m=c.backgroundColor,d=c.gradient;l=d?Object(K.getGradientValueBySlug)(a,d):null==u||null===(s=u.color)||void 0===s?void 0:s.gradient;var p=function(t){return function(r){var n,c,a=Object(K.getColorObjectByColorValue)(o,r),l=t+"Color",s=_n(_n({},i.current.style),{},{color:_n(_n({},null===(n=i.current)||void 0===n||null===(c=n.style)||void 0===c?void 0:c.color),{},Object(Z.a)({},t,(null==a?void 0:a.slug)?void 0:r))}),u=(null==a?void 0:a.slug)?a.slug:void 0,b=Object(Z.a)({style:Cn(s)},l,u);e.setAttributes(b),i.current=_n(_n({},i.current),b)}};return Object(X.createElement)(xn,{enableContrastChecking:!d&&!(null==u||null===(t=u.color)||void 0===t?void 0:t.gradient),clientId:e.clientId,settings:[{label:Object(Q.__)("Text Color"),onColorChange:p("text"),colorValue:Object(K.getColorObjectByAttributeValues)(o,b,null==u||null===(r=u.color)||void 0===r?void 0:r.text).color},{label:Object(Q.__)("Background Color"),onColorChange:p("background"),colorValue:Object(K.getColorObjectByAttributeValues)(o,m,null==u||null===(n=u.color)||void 0===n?void 0:n.background).color,gradientValue:l,onGradientChange:function(t){var r,n=Object(K.getGradientSlugByValue)(a,t);if(n){var c,o,l,s=_n(_n({},null===(c=i.current)||void 0===c?void 0:c.style),{},{color:_n(_n({},null===(o=i.current)||void 0===o||null===(l=o.style)||void 0===l?void 0:l.color),{},{gradient:void 0})});r={style:Cn(s),gradient:n}}else{var u,b,m,d=_n(_n({},null===(u=i.current)||void 0===u?void 0:u.style),{},{color:_n(_n({},null===(b=i.current)||void 0===b||null===(m=b.style)||void 0===m?void 0:m.color),{},{gradient:t})});r={style:Cn(d),gradient:void 0}}e.setAttributes(r),i.current=_n(_n({},i.current),r)}}]})};function Pn(e,t){var r,n,c,o,a,i,l,s,u,b,m,d=arguments.length>2&&void 0!==arguments[2]&&arguments[2],p=e.backgroundColor,g=e.textColor,h=e.gradient,f=e.style,O=Object(K.getColorClassName)("background-color",p),v=Object(K.__experimentalGetGradientClass)(h),j=Object(K.getColorClassName)("color",g),y=ne()(j,v,(a={},Object(Z.a)(a,O,!(null==f||null===(r=f.color)||void 0===r?void 0:r.gradient)&&!!O),Object(Z.a)(a,"has-text-color",g||(null==f||null===(n=f.color)||void 0===n?void 0:n.text)),Object(Z.a)(a,"has-background",p||(null==f||null===(c=f.color)||void 0===c?void 0:c.background)||h||(null==f||null===(o=f.color)||void 0===o?void 0:o.gradient)),a)),_=(null==f||null===(i=f.color)||void 0===i?void 0:i.background)||(null==f||null===(l=f.color)||void 0===l?void 0:l.text)||(null==f||null===(s=f.color)||void 0===s?void 0:s.gradient)?{background:(null==f||null===(u=f.color)||void 0===u?void 0:u.gradient)?f.color.gradient:void 0,backgroundColor:(null==f||null===(b=f.color)||void 0===b?void 0:b.background)?f.color.background:void 0,color:(null==f||null===(m=f.color)||void 0===m?void 0:m.text)?f.color.text:void 0}:{};if(d){if(p){var w=Object(K.getColorObjectByAttributeValues)(t,p);_.backgroundColor=w.color}if(g){var k=Object(K.getColorObjectByAttributeValues)(t,g);_.color=k.color}}return{className:y||void 0,style:_}}function Bn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Tn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Bn(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var zn=[];function Nn(e){var t=e.borderRadius,r=void 0===t?"":t,n=e.setAttributes,c=r,o=Object(X.useCallback)((function(e){n(void 0===e?{borderRadius:c}:{borderRadius:e})}),[n]);return Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Border settings")},Object(X.createElement)(me.RangeControl,{value:r,label:Object(Q.__)("Border radius"),min:0,max:50,initialPosition:5,allowReset:!0,onChange:o}))}function Mn(e){var t,r=e.isSelected,n=e.url,c=e.setAttributes,o=e.opensInNewTab,a=e.onToggleOpenInNewTab,i=Object(X.useState)(!1),l=Object(be.a)(i,2),s=l[0],u=l[1],b=!!n,m=b&&r,d=function(){return u(!0),!1},p=function(){c({url:void 0,linkTarget:void 0,rel:void 0}),u(!1)},g=(s||m)&&Object(X.createElement)(me.Popover,{position:"bottom center",onClose:function(){return u(!1)}},Object(X.createElement)(K.__experimentalLinkControl,{className:"wp-block-navigation-link__inline-link-input",value:{url:n,opensInNewTab:o},onChange:function(e){var t=e.url,r=void 0===t?"":t,n=e.opensInNewTab;c({url:r}),o!==n&&a(n)}}));return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(me.ToolbarGroup,null,!b&&Object(X.createElement)(me.ToolbarButton,{name:"link",icon:vn.a,title:Object(Q.__)("Link"),shortcut:It.displayShortcut.primary("k"),onClick:d}),m&&Object(X.createElement)(me.ToolbarButton,{name:"link",icon:jn.a,title:Object(Q.__)("Unlink"),shortcut:It.displayShortcut.primaryShift("k"),onClick:p,isActive:!0}))),r&&Object(X.createElement)(me.KeyboardShortcuts,{bindGlobal:!0,shortcuts:(t={},Object(Z.a)(t,It.rawShortcut.primary("k"),d),Object(Z.a)(t,It.rawShortcut.primaryShift("k"),p),t)}),g)}var Rn=function(e){var t=e.attributes,r=e.setAttributes,n=e.className,c=e.isSelected,o=e.onReplace,a=e.mergeBlocks,i=t.borderRadius,l=t.linkTarget,s=t.placeholder,u=t.rel,b=t.text,m=t.url,d=Object(X.useCallback)((function(e){r({rel:e})}),[r]),p=Object(K.__experimentalUseEditorFeature)("color.palette")||zn,g=Object(X.useCallback)((function(e){var t=e?"_blank":void 0,n=u;t&&!u?n="noreferrer noopener":t||"noreferrer noopener"!==u||(n=void 0),r({linkTarget:t,rel:n})}),[u,r]),h=Pn(t,p,!0),f=Object(K.useBlockProps)();return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(Sn,e),Object(X.createElement)("div",f,Object(X.createElement)(K.RichText,{placeholder:s||Object(Q.__)("Add text…"),value:b,onChange:function(e){return r({text:e})},withoutInteractiveFormatting:!0,className:ne()(n,"wp-block-button__link",h.className,{"no-border-radius":0===i}),style:Tn({borderRadius:i?i+"px":void 0},h.style),onSplit:function(e){return Object(Y.createBlock)("core/button",Tn(Tn({},t),{},{text:e}))},onReplace:o,onMerge:a,identifier:"text"})),Object(X.createElement)(Mn,{url:m,setAttributes:r,isSelected:c,opensInNewTab:"_blank"===l,onToggleOpenInNewTab:g}),Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(Nn,{borderRadius:i,setAttributes:r}),Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Link settings")},Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Open in new tab"),onChange:g,checked:"_blank"===l}),Object(X.createElement)(me.TextControl,{label:Object(Q.__)("Link rel"),value:u||"",onChange:d}))))};function Vn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function An(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Hn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?An(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):An(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Ln={apiVersion:2,name:"core/button",category:"design",parent:["core/buttons"],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"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},style:{type:"object"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"}},supports:{anchor:!0,align:!0,alignWide:!1,reusable:!1,__experimentalSelector:".wp-block-button > a"}},In=Ln.name,Dn={title:Object(Q.__)("Button"),description:Object(Q.__)("Prompt visitors to take action with a button-style link."),icon:bn,keywords:[Object(Q.__)("link")],example:{attributes:{className:"is-style-fill",backgroundColor:"vivid-green-cyan",text:Object(Q.__)("Call to Action")}},styles:[{name:"fill",label:Object(Q.__)("Fill"),isDefault:!0},{name:"outline",label:Object(Q.__)("Outline")}],edit:Rn,save:function(e){var t=e.attributes,r=t.borderRadius,n=t.linkTarget,c=t.rel,o=t.text,a=t.title,i=t.url,l=Pn(t),s=ne()("wp-block-button__link",l.className,{"no-border-radius":0===r}),u=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Vn(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({borderRadius:r?r+"px":void 0},l.style);return Object(X.createElement)("div",K.useBlockProps.save(),Object(X.createElement)(K.RichText.Content,{tagName:"a",className:s,href:i,title:a,style:u,value:o,target:n,rel:c}))},deprecated:On,merge:function(e,t){var r=t.text,n=void 0===r?"":r;return Hn(Hn({},e),{},{text:(e.text||"")+n})}},Gn=[In],Fn=[["core/button"]],Un={isEmbedButton:!0};var qn=function(){var e=Object(K.useBlockProps)(),t=Object(K.__experimentalUseInnerBlocksProps)(e,{allowedBlocks:Gn,template:Fn,orientation:"horizontal"});return Object(X.createElement)(K.__experimentalAlignmentHookSettingsProvider,{value:Un},Object(X.createElement)("div",t))};var Wn={apiVersion:2,name:"core/buttons",category:"design",supports:{anchor:!0,align:!0,alignWide:!1}},Zn=Wn.name,$n={title:Object(Q.__)("Buttons"),description:Object(Q.__)("Prompt visitors to take action with a group of button-style links."),icon:bn,keywords:[Object(Q.__)("link")],example:{innerBlocks:[{name:"core/button",attributes:{text:Object(Q.__)("Find out more")}},{name:"core/button",attributes:{text:Object(Q.__)("Contact us")}}]},transforms:mn,edit:qn,save:function(){return Object(X.createElement)("div",K.useBlockProps.save(),Object(X.createElement)(K.InnerBlocks.Content,null))}},Kn=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V7h15v12zM9 10H7v2h2v-2zm0 4H7v2h2v-2zm4-4h-2v2h2v-2zm4 0h-2v2h2v-2zm-4 4h-2v2h2v-2zm4 0h-2v2h2v-2z"})),Yn=r(44),Jn=r.n(Yn);function Qn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Xn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Qn(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ec=Re()((function(e){if(!e)return{};var t=Jn()(e);return{year:t.year(),month:t.month()+1}}));var tc={apiVersion:2,name:"core/calendar",category:"widgets",attributes:{month:{type:"integer"},year:{type:"integer"}},supports:{align:!0}},rc=tc.name,nc={title:Object(Q.__)("Calendar"),description:Object(Q.__)("A calendar of your site’s posts."),icon:Kn,keywords:[Object(Q.__)("posts"),Object(Q.__)("archive")],example:{},edit:function(e){var t=e.attributes,r=Object(de.useSelect)((function(e){var t=e("core/editor").getEditedPostAttribute;return"post"===t("type")?t("date"):void 0}),[]);return Object(X.createElement)("div",Object(K.useBlockProps)(),Object(X.createElement)(me.Disabled,null,Object(X.createElement)(Qr.a,{block:"core/calendar",attributes:Xn(Xn({},t),ec(r))})))}},cc=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V7h15v12zM9 10H7v2h2v-2zm0 4H7v2h2v-2zm4-4h-2v2h2v-2zm4 0h-2v2h2v-2zm-4 4h-2v2h2v-2zm4 0h-2v2h2v-2z"})),oc=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(X.createElement)(ee.Path,{d:"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"}));var ac={apiVersion:2,name:"core/categories",category:"widgets",attributes:{displayAsDropdown:{type:"boolean",default:!1},showHierarchy:{type:"boolean",default:!1},showPostCounts:{type:"boolean",default:!1}},supports:{align:!0,html:!1}},ic=ac.name,lc={title:Object(Q.__)("Categories"),description:Object(Q.__)("Display a list of all categories."),icon:cc,example:{},edit:function e(t){var r,n=t.attributes,c=n.displayAsDropdown,o=n.showHierarchy,a=n.showPostCounts,i=t.setAttributes,l=Object(xe.useInstanceId)(e,"blocks-category-select"),s=Object(de.useSelect)((function(e){var t=e("core").getEntityRecords,r=e("core/data").isResolving,n={per_page:-1,hide_empty:!0};return{categories:t("taxonomy","category",n),isRequesting:r("core","getEntityRecords",["taxonomy","category",n])}}),[]),u=s.categories,b=s.isRequesting,m=function(e){return(null==u?void 0:u.length)?null===e?u:u.filter((function(t){return t.parent===e})):[]},d=function(e){return"wp-block-categories__list wp-block-categories__list-level-".concat(e)},p=function(e){return function(t){return i(Object(Z.a)({},e,t))}},g=function(e){return e?Object(J.unescape)(e).trim():Object(Q.__)("(Untitled)")},h=function e(t,r){var n=m(t.id),c=t.id,i=t.link,l=t.count,s=t.name;return Object(X.createElement)("li",{key:c},Object(X.createElement)("a",{href:i,target:"_blank",rel:"noreferrer noopener"},g(s)),a&&Object(X.createElement)("span",{className:"wp-block-categories__post-count"}," (".concat(l,")")),o&&!!n.length&&Object(X.createElement)("ul",{className:d(r+1)},n.map((function(t){return e(t,r+1)}))))},f=function e(t,r){var n=t.id,c=t.count,i=t.name,l=m(n);return[Object(X.createElement)("option",{key:n},Object(J.times)(3*r,(function(){return" "})),g(i),a&&" (".concat(c,")")),o&&!!l.length&&l.map((function(t){return e(t,r+1)}))]};return Object(X.createElement)("div",Object(K.useBlockProps)(),Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Categories settings")},Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Display as dropdown"),checked:c,onChange:p("displayAsDropdown")}),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Show hierarchy"),checked:o,onChange:p("showHierarchy")}),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Show post counts"),checked:a,onChange:p("showPostCounts")}))),b&&Object(X.createElement)(me.Placeholder,{icon:oc,label:Object(Q.__)("Categories")},Object(X.createElement)(me.Spinner,null)),!b&&(c?(r=m(o?0:null),Object(X.createElement)(X.Fragment,null,Object(X.createElement)(me.VisuallyHidden,{as:"label",htmlFor:l},Object(Q.__)("Categories")),Object(X.createElement)("select",{id:l,className:"wp-block-categories__dropdown"},r.map((function(e){return f(e,0)}))))):function(){var e=m(o?0:null);return Object(X.createElement)("ul",{className:d(0)},e.map((function(e){return h(e,0)})))}()))}},sc=r(320);function uc(e){return e.replace(/\[/g,"[")}function bc(e){return e.replace(/^(\s*https?:)\/\/([^\s<>"]+\s*)$/m,"$1//$2")}var mc={from:[{type:"enter",regExp:/^```$/,transform:function(){return Object(Y.createBlock)("core/code")}},{type:"block",blocks:["core/html"],transform:function(e){var t=e.content;return Object(Y.createBlock)("core/code",{content:t})}},{type:"raw",isMatch:function(e){return"PRE"===e.nodeName&&1===e.children.length&&"CODE"===e.firstChild.nodeName},schema:{pre:{children:{code:{children:{"#text":{}}}}}}}]},dc={apiVersion:2,name:"core/code",category:"text",attributes:{content:{type:"string",source:"html",selector:"code"}},supports:{anchor:!0}},pc=dc.name,gc={title:Object(Q.__)("Code"),description:Object(Q.__)("Display code snippets that respect your spacing and tabs."),icon:sc.a,example:{attributes:{content:Object(Q.__)('// A "block" is the abstract term used\n// to describe units of markup that\n// when composed together, form the\n// content or layout of a page.\nregisterBlockType( name, settings );')}},transforms:mc,edit:function(e){var t=e.attributes,r=e.setAttributes,n=Object(K.useBlockProps)();return Object(X.createElement)("pre",n,Object(X.createElement)(K.RichText,{tagName:"code",value:t.content,onChange:function(e){return r({content:e})},placeholder:Object(Q.__)("Write code…"),"aria-label":Object(Q.__)("Code"),preserveWhiteSpace:!0}))},save:function(e){var t,r=e.attributes;return Object(X.createElement)("pre",K.useBlockProps.save(),Object(X.createElement)(K.RichText.Content,{tagName:"code",value:(t=r.content,Object(J.flow)(uc,bc)(t||""))}))}},hc=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-4.1 1.5v10H10v-10h4.9zM5.5 17V8c0-.3.2-.5.5-.5h2.5v10H6c-.3 0-.5-.2-.5-.5zm14 0c0 .3-.2.5-.5.5h-2.6v-10H19c.3 0 .5.2.5.5v9z"}));function fc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Oc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?fc(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function vc(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return jc(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return jc(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,c=function(){};return{s:c,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:c}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return a=e.done,e},e:function(e){i=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(i)throw o}}}}function jc(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function yc(e){var t,r=yc.doc;r||(r=document.implementation.createHTMLDocument(""),yc.doc=r),r.body.innerHTML=e;var n,c=vc(r.body.firstChild.classList);try{for(c.s();!(n=c.n()).done;){if(t=n.value.match(/^layout-column-(\d+)$/))return Number(t[1])-1}}catch(e){c.e(e)}finally{c.f()}}var _c=[{attributes:{verticalAlignment:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},textColor:{type:"string"}},migrate:function(e){if(!e.customTextColor&&!e.customBackgroundColor)return e;var t={color:{}};return e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),Oc(Oc({},Object(J.omit)(e,["customTextColor","customBackgroundColor"])),{},{style:t})},save:function(e){var t,r=e.attributes,n=r.verticalAlignment,c=r.backgroundColor,o=r.customBackgroundColor,a=r.textColor,i=r.customTextColor,l=Object(K.getColorClassName)("background-color",c),s=Object(K.getColorClassName)("color",a),u=ne()((t={"has-background":c||o,"has-text-color":a||i},Object(Z.a)(t,l,l),Object(Z.a)(t,s,s),Object(Z.a)(t,"are-vertically-aligned-".concat(n),n),t)),b={backgroundColor:l?void 0:o,color:s?void 0:i};return Object(X.createElement)("div",{className:u||void 0,style:b},Object(X.createElement)(K.InnerBlocks.Content,null))}},{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!==yc(e.originalContent)}))},migrate:function(e,t){var r=t.reduce((function(e,t){var r=yc(t.originalContent);return void 0===r&&(r=0),e[r]||(e[r]=[]),e[r].push(t),e}),[]).map((function(e){return Object(Y.createBlock)("core/column",{},e)}));return[Object(J.omit)(e,["columns"]),r]},save:function(e){var t=e.attributes.columns;return Object(X.createElement)("div",{className:"has-".concat(t,"-columns")},Object(X.createElement)(K.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,r=t.verticalAlignment,n=t.columns,c=ne()("has-".concat(n,"-columns"),Object(Z.a)({},"are-vertically-aligned-".concat(r),r));return Object(X.createElement)("div",{className:c},Object(X.createElement)(K.InnerBlocks.Content,null))}}],wc=function(e){return Number.isFinite(e)?parseFloat(e.toFixed(2)):void 0};function kc(e,t){var r=e.attributes.width;return wc(void 0===r?100/t:r)}function Ec(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length;return Object(J.sumBy)(e,(function(e){return kc(e,t)}))}function Cc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length;return e.reduce((function(e,r){var n=kc(r,t);return Object.assign(e,Object(Z.a)({},r.clientId,n))}),{})}function xc(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,n=Ec(e,r),c=t-n,o=c/e.length;return Object(J.mapValues)(Cc(e,r),(function(e){return wc(e+o)}))}function Sc(e,t){return e.map((function(e){return Object(J.merge)({},e,{attributes:{width:t[e.clientId]}})}))}var Pc=["core/column"];var Bc=Object(de.withDispatch)((function(e,t,r){return{updateAlignment:function(n){var c=t.clientId,o=t.setAttributes,a=e("core/block-editor").updateBlockAttributes,i=r.select("core/block-editor").getBlockOrder;o({verticalAlignment:n}),i(c).forEach((function(e){a(e,{verticalAlignment:n})}))},updateColumns:function(n,c){var o=t.clientId,a=e("core/block-editor").replaceInnerBlocks,i=(0,r.select("core/block-editor").getBlocks)(o),l=i.every((function(e){return Number.isFinite(e.attributes.width)})),s=c>n;if(s&&l){var u=wc(100/c),b=xc(i,100-u);i=[].concat(Object(W.a)(Sc(i,b)),Object(W.a)(Object(J.times)(c-n,(function(){return Object(Y.createBlock)("core/column",{width:u})}))))}else if(s)i=[].concat(Object(W.a)(i),Object(W.a)(Object(J.times)(c-n,(function(){return Object(Y.createBlock)("core/column")}))));else{if(i=Object(J.dropRight)(i,n-c),l)i=Sc(i,xc(i,100))}a(o,i,!1)}}}))((function(e){var t=e.attributes,r=e.updateAlignment,n=e.updateColumns,c=e.clientId,o=t.verticalAlignment,a=Object(de.useSelect)((function(e){return{count:e("core/block-editor").getBlockCount(c)}}),[c]).count,i=ne()(Object(Z.a)({},"are-vertically-aligned-".concat(o),o)),l=Object(K.useBlockProps)({className:i}),s=Object(K.__experimentalUseInnerBlocksProps)(l,{allowedBlocks:Pc,orientation:"horizontal",renderAppender:!1});return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(K.BlockVerticalAlignmentToolbar,{onChange:r,value:o})),Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,null,Object(X.createElement)(me.RangeControl,{label:Object(Q.__)("Columns"),value:a,onChange:function(e){return n(a,e)},min:1,max:Math.max(6,a)}),a>6&&Object(X.createElement)(me.Notice,{status:"warning",isDismissible:!1},Object(Q.__)("This column count exceeds the recommended amount and may cause visual breakage.")))),Object(X.createElement)("div",s))}));function Tc(e){var t=e.clientId,r=e.name,n=e.setAttributes,c=Object(de.useSelect)((function(e){var t=e("core/blocks"),n=t.getBlockVariations,c=t.getBlockType,o=t.getDefaultBlockVariation;return{blockType:c(r),defaultVariation:o(r,"block"),variations:n(r,"block")}}),[r]),o=c.blockType,a=c.defaultVariation,i=c.variations,l=Object(de.useDispatch)("core/block-editor").replaceInnerBlocks,s=Object(K.useBlockProps)();return Object(X.createElement)("div",s,Object(X.createElement)(K.__experimentalBlockVariationPicker,{icon:Object(J.get)(o,["icon","src"]),label:Object(J.get)(o,["title"]),variations:i,onSelect:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a;e.attributes&&n(e.attributes),e.innerBlocks&&l(t,Object(Y.createBlocksFromInnerBlocksTemplate)(e.innerBlocks))},allowSkip:!0}))}var zc=function(e){var t=e.clientId,r=Object(de.useSelect)((function(e){return e("core/block-editor").getBlocks(t).length>0}),[t])?Bc:Tc;return Object(X.createElement)(r,e)};var Nc=[{name:"one-column-full",title:Object(Q.__)("100"),description:Object(Q.__)("One column"),icon:Object(X.createElement)(me.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(me.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m39.0625 14h-30.0625v20.0938h30.0625zm-30.0625-2c-1.10457 0-2 .8954-2 2v20.0938c0 1.1045.89543 2 2 2h30.0625c1.1046 0 2-.8955 2-2v-20.0938c0-1.1046-.8954-2-2-2z"})),innerBlocks:[["core/column"]],scope:["block"]},{name:"two-columns-equal",title:Object(Q.__)("50 / 50"),description:Object(Q.__)("Two columns; equal split"),icon:Object(X.createElement)(me.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(me.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"})),isDefault:!0,innerBlocks:[["core/column"],["core/column"]],scope:["block"]},{name:"two-columns-one-third-two-thirds",title:Object(Q.__)("30 / 70"),description:Object(Q.__)("Two columns; one-third, two-thirds split"),icon:Object(X.createElement)(me.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(me.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"})),innerBlocks:[["core/column",{width:"33.33%"}],["core/column",{width:"66.66%"}]],scope:["block"]},{name:"two-columns-two-thirds-one-third",title:Object(Q.__)("70 / 30"),description:Object(Q.__)("Two columns; two-thirds, one-third split"),icon:Object(X.createElement)(me.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(me.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"})),innerBlocks:[["core/column",{width:"66.66%"}],["core/column",{width:"33.33%"}]],scope:["block"]},{name:"three-columns-equal",title:Object(Q.__)("33 / 33 / 33"),description:Object(Q.__)("Three columns; equal split"),icon:Object(X.createElement)(me.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(me.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"})),innerBlocks:[["core/column"],["core/column"],["core/column"]],scope:["block"]},{name:"three-columns-wider-center",title:Object(Q.__)("25 / 50 / 25"),description:Object(Q.__)("Three columns; wide center column"),icon:Object(X.createElement)(me.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(me.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"})),innerBlocks:[["core/column",{width:"25%"}],["core/column",{width:"50%"}],["core/column",{width:"25%"}]],scope:["block"]}];function Mc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Rc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Mc(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Vc={from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert:function(e){var t=+(100/e.length).toFixed(2),r=e.map((function(e){var r=e.name,n=e.attributes,c=e.innerBlocks;return["core/column",{width:"".concat(t,"%")},[[r,Rc({},n),c]]]}));return Object(Y.createBlock)("core/columns",{},Object(Y.createBlocksFromInnerBlocksTemplate)(r))},isMatch:function(e){var t=e.length;return t&&t<=6}}]},Ac={apiVersion:2,name:"core/columns",category:"design",attributes:{verticalAlignment:{type:"string"}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0}}},Hc=Ac.name,Lc={title:Object(Q.__)("Columns"),icon:hc,description:Object(Q.__)("Add a block that displays content in multiple columns, then add whatever content blocks you’d like."),variations:Nc,example:{innerBlocks:[{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:Object(Q.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent et eros eu felis.")}},{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg"}},{name:"core/paragraph",attributes:{content:Object(Q.__)("Suspendisse commodo neque lacus, a dictum orci interdum et.")}}]},{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:Object(Q.__)("Etiam et egestas lorem. Vivamus sagittis sit amet dolor quis lobortis. Integer sed fermentum arcu, id vulputate lacus. Etiam fermentum sem eu quam hendrerit.")}},{name:"core/paragraph",attributes:{content:Object(Q.__)("Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim.")}}]}]},deprecated:_c,edit:zc,save:function(e){var t=e.attributes.verticalAlignment,r=ne()(Object(Z.a)({},"are-vertically-aligned-".concat(t),t));return Object(X.createElement)("div",K.useBlockProps.save({className:r}),Object(X.createElement)(K.InnerBlocks.Content,null))},transforms:Vc},Ic=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ee.Path,{d:"M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zM6 17.5c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h3v10H6zm13.5-.5c0 .3-.2.5-.5.5h-3v-10h3c.3 0 .5.2.5.5v9z"}));function Dc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Gc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Dc(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Fc=[{attributes:{verticalAlignment:{type:"string"},width:{type:"number",min:0,max:100}},migrate:function(e){return Gc(Gc({},e),{},{width:"".concat(e.width,"%")})},save:function(e){var t,r=e.attributes,n=r.verticalAlignment,c=r.width,o=ne()(Object(Z.a)({},"is-vertically-aligned-".concat(n),n));return Number.isFinite(c)&&(t={flexBasis:c+"%"}),Object(X.createElement)("div",{className:o,style:t},Object(X.createElement)(K.InnerBlocks.Content,null))}}];var Uc=function(e){var t=e.attributes,r=t.verticalAlignment,n=t.width,c=t.templateLock,o=void 0!==c&&c,a=e.setAttributes,i=e.clientId,l=ne()("block-core-columns",Object(Z.a)({},"is-vertically-aligned-".concat(r),r)),s=Object(de.useSelect)((function(e){var t=e("core/block-editor"),r=t.getBlockOrder,n=t.getBlockRootClientId;return{hasChildBlocks:r(i).length>0,rootClientId:n(i)}}),[i]),u=s.hasChildBlocks,b=s.rootClientId,m=Object(de.useDispatch)("core/block-editor").updateBlockAttributes,d=Object(K.useBlockProps)({className:l,style:n?{flexBasis:n}:void 0}),p=Object(K.__experimentalUseInnerBlocksProps)(d,{templateLock:o,renderAppender:u?void 0:K.InnerBlocks.ButtonBlockAppender});return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(K.BlockVerticalAlignmentToolbar,{onChange:function(e){a({verticalAlignment:e}),m(b,{verticalAlignment:null})},value:r})),Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Column settings")},Object(X.createElement)(me.__experimentalUnitControl,{label:Object(Q.__)("Width"),labelPosition:"edge",__unstableInputWidth:"80px",value:n||"",onChange:function(e){e=0>parseFloat(e)?"0":e,a({width:e})},units:[{value:"%",label:"%",default:""},{value:"px",label:"px",default:""},{value:"em",label:"em",default:""},{value:"rem",label:"rem",default:""},{value:"vw",label:"vw",default:""}]}))),Object(X.createElement)("div",p))};var qc={apiVersion:2,name:"core/column",category:"text",parent:["core/columns"],attributes:{verticalAlignment:{type:"string"},width:{type:"string"},templateLock:{type:"string"}},supports:{anchor:!0,reusable:!1,html:!1}},Wc=qc.name,Zc={title:Object(Q.__)("Column"),icon:Ic,description:Object(Q.__)("A single column within a columns block."),edit:Uc,save:function(e){var t,r=e.attributes,n=r.verticalAlignment,c=r.width,o=ne()(Object(Z.a)({},"is-vertically-aligned-".concat(n),n));return c&&(t={flexBasis:c}),Object(X.createElement)("div",K.useBlockProps.save({className:o,style:t}),Object(X.createElement)(K.InnerBlocks.Content,null))},deprecated:Fc},$c=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ee.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h6.2v8.9l2.5-3.1 2.5 3.1V4.5h2.2c.4 0 .8.4.8.8v13.4z"}));function Kc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var Yc={"top left":"is-position-top-left","top center":"is-position-top-center","top right":"is-position-top-right","center left":"is-position-center-left","center center":"is-position-center-center",center:"is-position-center-center","center right":"is-position-center-right","bottom left":"is-position-bottom-left","bottom center":"is-position-bottom-center","bottom right":"is-position-bottom-right"};function Jc(e){return e?{backgroundImage:"url(".concat(e,")")}:{}}var Qc=[{value:"px",label:"px",default:430},{value:"em",label:"em",default:20},{value:"rem",label:"rem",default:20},{value:"vw",label:"vw",default:20},{value:"vh",label:"vh",default:50}];function Xc(e){return 0!==e&&50!==e&&e?"has-background-dim-"+10*Math.round(e/10):null}function eo(e){return function(t){if(t&&t.url){var r;if(Object(Ce.isBlobURL)(t.url)&&(t.type=Object(Ce.getBlobTypeByURL)(t.url)),t.media_type)r="image"===t.media_type?"image":"video";else{if("image"!==t.type&&"video"!==t.type)return;r=t.type}e(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Kc(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({url:t.url,id:t.id,backgroundType:r},"video"===r?{focalPoint:void 0,hasParallax:void 0}:{}))}else e({url:void 0,id:void 0})}}function to(e){return!e||"center center"===e||"center"===e}function ro(e){return to(e)?"":Yc[e]}function no(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function co(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?no(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):no(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var oo={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"}},ao=[{attributes:co(co({},oo),{},{title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"},minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}}),save:function(e){var t=e.attributes,r=t.backgroundType,n=t.gradient,c=t.customGradient,o=t.customOverlayColor,a=t.dimRatio,i=t.focalPoint,l=t.hasParallax,s=t.overlayColor,u=t.url,b=t.minHeight,m=Object(K.getColorClassName)("background-color",s),d=Object(K.__experimentalGetGradientClass)(n),p="image"===r?Jc(u):{};m||(p.backgroundColor=o),i&&!l&&(p.backgroundPosition="".concat(Math.round(100*i.x),"% ").concat(Math.round(100*i.y),"%")),c&&!u&&(p.background=c),p.minHeight=b||void 0;var g=ne()(Xc(a),m,Object(Z.a)({"has-background-dim":0!==a,"has-parallax":l,"has-background-gradient":c},d,!u&&d));return Object(X.createElement)("div",{className:g,style:p},u&&(n||c)&&0!==a&&Object(X.createElement)("span",{"aria-hidden":"true",className:ne()("wp-block-cover__gradient-background",d),style:c?{background:c}:void 0}),"video"===r&&u&&Object(X.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),Object(X.createElement)("div",{className:"wp-block-cover__inner-container"},Object(X.createElement)(K.InnerBlocks.Content,null)))}},{attributes:co(co({},oo),{},{title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"},minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}}),save:function(e){var t=e.attributes,r=t.backgroundType,n=t.gradient,c=t.customGradient,o=t.customOverlayColor,a=t.dimRatio,i=t.focalPoint,l=t.hasParallax,s=t.overlayColor,u=t.url,b=t.minHeight,m=Object(K.getColorClassName)("background-color",s),d=Object(K.__experimentalGetGradientClass)(n),p="image"===r?Jc(u):{};m||(p.backgroundColor=o),i&&!l&&(p.backgroundPosition="".concat(100*i.x,"% ").concat(100*i.y,"%")),c&&!u&&(p.background=c),p.minHeight=b||void 0;var g=ne()(Xc(a),m,Object(Z.a)({"has-background-dim":0!==a,"has-parallax":l,"has-background-gradient":c},d,!u&&d));return Object(X.createElement)("div",{className:g,style:p},u&&(n||c)&&0!==a&&Object(X.createElement)("span",{"aria-hidden":"true",className:ne()("wp-block-cover__gradient-background",d),style:c?{background:c}:void 0}),"video"===r&&u&&Object(X.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),Object(X.createElement)("div",{className:"wp-block-cover__inner-container"},Object(X.createElement)(K.InnerBlocks.Content,null)))}},{attributes:co(co({},oo),{},{title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"}}),supports:{align:!0},save:function(e){var t=e.attributes,r=t.backgroundType,n=t.contentAlign,c=t.customOverlayColor,o=t.dimRatio,a=t.focalPoint,i=t.hasParallax,l=t.overlayColor,s=t.title,u=t.url,b=Object(K.getColorClassName)("background-color",l),m="image"===r?Jc(u):{};b||(m.backgroundColor=c),a&&!i&&(m.backgroundPosition="".concat(100*a.x,"% ").concat(100*a.y,"%"));var d=ne()(Xc(o),b,Object(Z.a)({"has-background-dim":0!==o,"has-parallax":i},"has-".concat(n,"-content"),"center"!==n));return Object(X.createElement)("div",{className:d,style:m},"video"===r&&u&&Object(X.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),!K.RichText.isEmpty(s)&&Object(X.createElement)(K.RichText.Content,{tagName:"p",className:"wp-block-cover-text",value:s}))},migrate:function(e){return[Object(J.omit)(e,["title","contentAlign"]),[Object(Y.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:Object(Q.__)("Write title…")})]]}},{attributes:co(co({},oo),{},{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,r=t.url,n=t.title,c=t.hasParallax,o=t.dimRatio,a=t.align,i=t.contentAlign,l=t.overlayColor,s=t.customOverlayColor,u=Object(K.getColorClassName)("background-color",l),b=Jc(r);u||(b.backgroundColor=s);var m=ne()("wp-block-cover-image",Xc(o),u,Object(Z.a)({"has-background-dim":0!==o,"has-parallax":c},"has-".concat(i,"-content"),"center"!==i),a?"align".concat(a):null);return Object(X.createElement)("div",{className:m,style:b},!K.RichText.isEmpty(n)&&Object(X.createElement)(K.RichText.Content,{tagName:"p",className:"wp-block-cover-image-text",value:n}))},migrate:function(e){return[Object(J.omit)(e,["title","contentAlign","align"]),[Object(Y.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:Object(Q.__)("Write title…")})]]}},{attributes:co(co({},oo),{},{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,r=t.url,n=t.title,c=t.hasParallax,o=t.dimRatio,a=t.align,i=Jc(r),l=ne()("wp-block-cover-image",Xc(o),{"has-background-dim":0!==o,"has-parallax":c},a?"align".concat(a):null);return Object(X.createElement)("section",{className:l,style:i},Object(X.createElement)(K.RichText.Content,{tagName:"h2",value:n}))},migrate:function(e){return[Object(J.omit)(e,["title","contentAlign","align"]),[Object(Y.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:Object(Q.__)("Write title…")})]]}}],io=r(282),lo=r.n(io),so=r(66),uo=r.n(so);function bo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function mo(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?bo(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bo(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var po=["image","video"],go=[["core/paragraph",{align:"center",fontSize:"large",placeholder:Object(Q.__)("Write title…")}]],ho=me.__experimentalBoxControl.__Visualizer;function fo(){return fo.fastAverageColor||(fo.fastAverageColor=new lo.a),fo.fastAverageColor}function Oo(e){var t=e.onChange,r=e.onUnitChange,n=e.unit,c=void 0===n?"px":n,o=e.value,a=void 0===o?"":o,i=Object(X.useState)(null),l=Object(be.a)(i,2),s=l[0],u=l[1],b=Object(xe.useInstanceId)(K.__experimentalUnitControl),m="block-cover-height-input-".concat(b),d=null!==s?s:a,p="px"===c?50:0;return Object(X.createElement)(me.BaseControl,{label:Object(Q.__)("Minimum height of cover"),id:m},Object(X.createElement)(K.__experimentalUnitControl,{id:m,isResetValueOnUnitChange:!0,min:p,onBlur:function(){null!==s&&u(null)},onChange:function(e){var n=""!==e?parseInt(e,10):void 0;isNaN(n)&&void 0!==n?u(e):(u(null),t(n),void 0===n&&r())},onUnitChange:r,step:"1",style:{maxWidth:80},unit:c,units:Qc,value:d}))}var vo={top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1};function jo(e){var t=e.className,r=e.onResizeStart,n=e.onResize,c=e.onResizeStop,o=Object(or.a)(e,["className","onResizeStart","onResize","onResizeStop"]),a=Object(X.useState)(!1),i=Object(be.a)(a,2),l=i[0],s=i[1];return Object(X.createElement)(me.ResizableBox,Object(ue.a)({className:ne()(t,{"is-resizing":l}),enable:vo,onResizeStart:function(e,t,c){r(c.clientHeight),n(c.clientHeight)},onResize:function(e,t,r){n(r.clientHeight),l||s(!0)},onResizeStop:function(e,t,r){c(r.clientHeight),s(!1)},minHeight:50},o))}var yo=Object(xe.compose)([Object(de.withDispatch)((function(e){return{toggleSelection:e("core/block-editor").toggleSelection}})),Object(K.withColors)({overlayColor:"background-color"}),me.withNotices,xe.withInstanceId])((function(e){var t,r,n,c,o=e.attributes,a=e.setAttributes,i=e.isSelected,l=e.noticeUI,s=e.overlayColor,u=e.setOverlayColor,b=e.toggleSelection,m=e.noticeOperations,d=o.contentPosition,p=o.id,g=o.backgroundType,h=o.dimRatio,f=o.focalPoint,O=o.hasParallax,v=o.isRepeated,j=o.minHeight,y=o.minHeightUnit,_=o.style,w=o.url,k=Object(K.__experimentalUseGradient)(),E=k.gradientClass,C=k.gradientValue,x=k.setGradient,S=eo(a),P=Object(Ce.isBlobURL)(w),B=Object(X.useRef)(),T=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,c=Object(X.useState)(!1),o=Object(be.a)(c,2),a=o[0],i=o[1];return Object(X.useEffect)((function(){e&&t<=50&&n.current&&fo().getColorAsync(n.current,(function(e){i(e.isDark)}))}),[e,e&&t<=50&&n.current,i]),Object(X.useEffect)((function(){if(t>50||!e){if(!r)return void i(!0);i(uo()(r).isDark())}}),[r,t>50||!e,i]),Object(X.useEffect)((function(){e||r||i(!1)}),[!e&&!r,i]),a}(w,h,s.color,B),z="image"===g,N="video"===g,M=Object(X.useState)(null),R=Object(be.a)(M,2),V=R[0],A=R[1],H=m.removeAllNotices,L=m.createErrorNotice,I=y?"".concat(j).concat(y):j,D=mo(mo({},z?Jc(w):{}),{},{backgroundColor:s.color,minHeight:V||I||void 0});C&&!w&&(D.background=C),f&&(c="".concat(100*f.x,"% ").concat(100*f.y,"%"),z&&(D.backgroundPosition=c));var G=!!w&&(s.color||C),F=!!(w||s.color||C),U=N||z&&(!O||v),q=Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.BlockControls,null,F&&Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.__experimentalBlockAlignmentMatrixToolbar,{label:Object(Q.__)("Change content position"),value:d,onChange:function(e){return a({contentPosition:e})}}),Object(X.createElement)(K.MediaReplaceFlow,{mediaId:p,mediaURL:w,allowedTypes:po,accept:"image/*,video/*",onSelect:S}))),Object(X.createElement)(K.InspectorControls,null,!!w&&Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Media settings")},z&&Object(X.createElement)(X.Fragment,null,Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Fixed background"),checked:O,onChange:function(){a(mo({hasParallax:!O},O?{}:{focalPoint:void 0}))}}),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Repeated background"),checked:v,onChange:function(){a({isRepeated:!v})}})),U&&Object(X.createElement)(me.FocalPointPicker,{label:Object(Q.__)("Focal point picker"),url:w,value:f,onChange:function(e){return a({focalPoint:e})}}),Object(X.createElement)(me.PanelRow,null,Object(X.createElement)(me.Button,{isSecondary:!0,isSmall:!0,className:"block-library-cover__reset-button",onClick:function(){return a({url:void 0,id:void 0,backgroundType:void 0,dimRatio:void 0,focalPoint:void 0,hasParallax:void 0,isRepeated:void 0})}},Object(Q.__)("Clear Media")))),F&&Object(X.createElement)(X.Fragment,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Dimensions")},Object(X.createElement)(Oo,{value:V||j,unit:y,onChange:function(e){return a({minHeight:e})},onUnitChange:function(e){a({minHeightUnit:e})}})),Object(X.createElement)(K.__experimentalPanelColorGradientSettings,{title:Object(Q.__)("Overlay"),initialOpen:!0,settings:[{colorValue:s.color,gradientValue:C,onColorChange:u,onGradientChange:x,label:Object(Q.__)("Color")}]},G&&Object(X.createElement)(me.RangeControl,{label:Object(Q.__)("Opacity"),value:h,onChange:function(e){return a({dimRatio:e})},min:0,max:100,step:10,required:!0}))))),W=Object(K.useBlockProps)(),$=Object(K.__experimentalUseInnerBlocksProps)({className:"wp-block-cover__inner-container"},{template:go});if(!F){var Y=Object(X.createElement)(K.BlockIcon,{icon:$c}),J=Object(Q.__)("Cover");return Object(X.createElement)(X.Fragment,null,q,Object(X.createElement)("div",Object(ue.a)({},W,{className:ne()("is-placeholder",W.className)}),Object(X.createElement)(K.MediaPlaceholder,{icon:Y,labels:{title:J,instructions:Object(Q.__)("Upload an image or video file, or pick one from your media library.")},onSelect:S,accept:"image/*,video/*",allowedTypes:po,notices:l,onError:function(e){H(),L(e)}},Object(X.createElement)("div",{className:"wp-block-cover__placeholder-background-options"},Object(X.createElement)(K.ColorPalette,{disableCustomColors:!0,value:s.color,onChange:u,clearable:!1})))))}var ee=ne()(Xc(h),(t={"is-dark-theme":T,"has-background-dim":0!==h,"is-transient":P,"has-parallax":O,"is-repeated":v},Object(Z.a)(t,s.class,s.class),Object(Z.a)(t,"has-background-gradient",C),Object(Z.a)(t,E,!w&&E),Object(Z.a)(t,"has-custom-content-position",!to(d)),t),ro(d));return Object(X.createElement)(X.Fragment,null,q,Object(X.createElement)("div",Object(ue.a)({},W,{className:ne()(ee,W.className),style:mo(mo({},D),W.style),"data-url":w}),Object(X.createElement)(ho,{values:null==_||null===(r=_.spacing)||void 0===r?void 0:r.padding,showValues:null==_||null===(n=_.visualizers)||void 0===n?void 0:n.padding}),Object(X.createElement)(jo,{className:"block-library-cover__resize-container",onResizeStart:function(){a({minHeightUnit:"px"}),b(!1)},onResize:A,onResizeStop:function(e){b(!0),a({minHeight:e}),A(null)},showHandle:i}),z&&Object(X.createElement)("img",{ref:B,"aria-hidden":!0,alt:"",style:{display:"none"},src:w}),w&&C&&0!==h&&Object(X.createElement)("span",{"aria-hidden":"true",className:ne()("wp-block-cover__gradient-background",E),style:{background:C}}),N&&Object(X.createElement)("video",{ref:B,className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:w,style:{objectPosition:c}}),P&&Object(X.createElement)(me.Spinner,null),Object(X.createElement)("div",$)))}));var _o={from:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.caption,r=e.url,n=e.align,c=e.id,o=e.anchor;return Object(Y.createBlock)("core/cover",{title:t,url:r,align:n,id:c,anchor:o})}},{type:"block",blocks:["core/video"],transform:function(e){var t=e.caption,r=e.src,n=e.align,c=e.id,o=e.anchor;return Object(Y.createBlock)("core/cover",{title:t,url:r,align:n,id:c,backgroundType:"video",anchor:o})}}],to:[{type:"block",blocks:["core/image"],isMatch:function(e){var t=e.backgroundType,r=e.url,n=e.overlayColor,c=e.customOverlayColor,o=e.gradient,a=e.customGradient;return r?"image"===t:!(n||c||o||a)},transform:function(e){var t=e.title,r=e.url,n=e.align,c=e.id,o=e.anchor;return Object(Y.createBlock)("core/image",{caption:t,url:r,align:n,id:c,anchor:o})}},{type:"block",blocks:["core/video"],isMatch:function(e){var t=e.backgroundType,r=e.url,n=e.overlayColor,c=e.customOverlayColor,o=e.gradient,a=e.customGradient;return r?"video"===t:!(n||c||o||a)},transform:function(e){var t=e.title,r=e.url,n=e.align,c=e.id,o=e.anchor;return Object(Y.createBlock)("core/video",{caption:t,src:r,id:c,align:n,anchor:o})}}]},wo={apiVersion:2,name:"core/cover",category:"media",attributes:{url:{type:"string"},id:{type:"number"},hasParallax:{type:"boolean",default:!1},isRepeated:{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"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"}},supports:{anchor:!0,align:!0,html:!1,spacing:{padding:!0}}},ko=wo.name,Eo={title:Object(Q.__)("Cover"),description:Object(Q.__)("Add an image or video with a text overlay — great for headers."),icon:$c,example:{attributes:{customOverlayColor:"#065174",dimRatio:40,url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg"},innerBlocks:[{name:"core/paragraph",attributes:{customFontSize:48,content:Object(Q.__)("<strong>Snow Patrol</strong>"),align:"center"}}]},transforms:_o,save:function(e){var t,r,n=e.attributes,c=n.backgroundType,o=n.gradient,a=n.contentPosition,i=n.customGradient,l=n.customOverlayColor,s=n.dimRatio,u=n.focalPoint,b=n.hasParallax,m=n.isRepeated,d=n.overlayColor,p=n.url,g=n.minHeight,h=n.minHeightUnit,f=Object(K.getColorClassName)("background-color",d),O=Object(K.__experimentalGetGradientClass)(o),v=h?"".concat(g).concat(h):g,j="image"===c,y="video"===c,_=j?Jc(p):{},w={};f||(_.backgroundColor=l),i&&!p&&(_.background=i),_.minHeight=v||void 0,u&&(r="".concat(Math.round(100*u.x),"% ").concat(Math.round(100*u.y),"%"),j&&!b&&(_.backgroundPosition=r),y&&(w.objectPosition=r));var k=ne()(Xc(s),f,(t={"has-background-dim":0!==s,"has-parallax":b,"is-repeated":m,"has-background-gradient":o||i},Object(Z.a)(t,O,!p&&O),Object(Z.a)(t,"has-custom-content-position",!to(a)),t),ro(a));return Object(X.createElement)("div",K.useBlockProps.save({className:k,style:_}),p&&(o||i)&&0!==s&&Object(X.createElement)("span",{"aria-hidden":"true",className:ne()("wp-block-cover__gradient-background",O),style:i?{background:i}:void 0}),y&&p&&Object(X.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:p,style:w}),Object(X.createElement)("div",{className:"wp-block-cover__inner-container"},Object(X.createElement)(K.InnerBlocks.Content,null)))},edit:yo,deprecated:ao},Co=function(e){var t=e.blockSupportsResponsive,r=e.showEditButton,n=e.themeSupportsResponsive,c=e.allowResponsive,o=e.getResponsiveHelp,a=e.toggleResponsive,i=e.switchBackToURLInput;return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(me.ToolbarGroup,null,r&&Object(X.createElement)(me.ToolbarButton,{className:"components-toolbar__control",label:Object(Q.__)("Edit URL"),icon:Tr.a,onClick:i}))),n&&t&&Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Media settings"),className:"blocks-responsive"},Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Resize for smaller devices"),checked:c,help:o,onChange:a}))))},xo=function(){return Object(X.createElement)("div",{className:"wp-block-embed is-loading"},Object(X.createElement)(me.Spinner,null),Object(X.createElement)("p",null,Object(Q.__)("Embedding…")))},So=function(e){var t=e.icon,r=e.label,n=e.value,c=e.onSubmit,o=e.onChange,a=e.cannotEmbed,i=e.fallback,l=e.tryAgain;return Object(X.createElement)(me.Placeholder,{icon:Object(X.createElement)(K.BlockIcon,{icon:t,showColors:!0}),label:r,className:"wp-block-embed",instructions:Object(Q.__)("Paste a link to the content you want to display on your site.")},Object(X.createElement)("form",{onSubmit:c},Object(X.createElement)("input",{type:"url",value:n||"",className:"components-placeholder__input","aria-label":r,placeholder:Object(Q.__)("Enter URL to embed here…"),onChange:o}),Object(X.createElement)(me.Button,{isPrimary:!0,type:"submit"},Object(Q._x)("Embed","button label"))),Object(X.createElement)("div",{className:"components-placeholder__learn-more"},Object(X.createElement)(me.ExternalLink,{href:Object(Q.__)("https://wordpress.org/support/article/embeds/")},Object(Q.__)("Learn more about embeds"))),a&&Object(X.createElement)("div",{className:"components-placeholder__error"},Object(X.createElement)("div",{className:"components-placeholder__instructions"},Object(Q.__)("Sorry, this content could not be embedded.")),Object(X.createElement)(me.Button,{isSecondary:!0,onClick:l},Object(Q._x)("Try again","button label"))," ",Object(X.createElement)(me.Button,{isSecondary:!0,onClick:i},Object(Q._x)("Convert to link","button label"))))};function Po(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Object(Sr.a)(e);if(t){var c=Object(Sr.a)(this).constructor;r=Reflect.construct(n,arguments,c)}else r=n.apply(this,arguments);return Object(xr.a)(this,r)}}var Bo=window,To=Bo.FocusEvent,zo=Bo.DOMParser,No=function(e){Object(Cr.a)(r,e);var t=Po(r);function r(){var e;return Object(wr.a)(this,r),(e=t.apply(this,arguments)).checkFocus=e.checkFocus.bind(Object(Er.a)(e)),e.node=Object(X.createRef)(),e}return Object(kr.a)(r,[{key:"componentDidMount",value:function(){window.addEventListener("message",this.resizeWPembeds)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("message",this.resizeWPembeds)}},{key:"resizeWPembeds",value:function(e){var t=e.data,r=(t=void 0===t?{}:t).secret,n=t.message,c=t.value;[r,n,c].some((function(e){return!e}))||"height"!==n||document.querySelectorAll('iframe[data-secret="'.concat(r,'"')).forEach((function(e){+e.height!==c&&(e.height=c)}))}},{key:"checkFocus",value:function(){var e=document.activeElement;if("IFRAME"===e.tagName&&e.parentNode===this.node.current){var t=new To("focus",{bubbles:!0});e.dispatchEvent(t)}}},{key:"render",value:function(){var e=this.props.html,t=(new zo).parseFromString(e,"text/html"),r=t.querySelector("iframe");r&&r.removeAttribute("style");var n=t.querySelector("blockquote");return n&&(n.style.display="none"),Object(X.createElement)("div",{ref:this.node,className:"wp-block-embed__wrapper",dangerouslySetInnerHTML:{__html:t.body.innerHTML}})}}]),r}(X.Component),Mo=Object(xe.withGlobalEvents)({blur:"checkFocus"})(No);function Ro(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Object(Sr.a)(e);if(t){var c=Object(Sr.a)(this).constructor;r=Reflect.construct(n,arguments,c)}else r=n.apply(this,arguments);return Object(xr.a)(this,r)}}var Vo=function(e){Object(Cr.a)(r,e);var t=Ro(r);function r(){var e;return Object(wr.a)(this,r),(e=t.apply(this,arguments)).hideOverlay=e.hideOverlay.bind(Object(Er.a)(e)),e.state={interactive:!1},e}return Object(kr.a)(r,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"render",value:function(){var e,t,r,n=this.props,c=n.preview,o=n.previewable,a=n.url,i=n.type,l=n.caption,s=n.onCaptionChange,u=n.isSelected,b=n.className,m=n.icon,d=n.label,p=n.insertBlocksAfter,g=c.scripts,h=this.state.interactive,f="photo"===i?(t=(e=c).thumbnail_url||e.url,r=Object(X.createElement)("p",null,Object(X.createElement)("img",{src:t,alt:e.title,width:"100%"})),Object(X.renderToString)(r)):c.html,O=new URL(a).host.split("."),v=O.splice(O.length-2,O.length-1).join("."),j=Object(Q.sprintf)(Object(Q.__)("Embedded content from %s"),v),y=Ne()(i,b,"wp-block-embed__wrapper"),_="wp-embed"===i?Object(X.createElement)(Mo,{html:f}):Object(X.createElement)("div",{className:"wp-block-embed__wrapper"},Object(X.createElement)(me.SandBox,{html:f,scripts:g,title:j,type:y,onFocus:this.hideOverlay}),!h&&Object(X.createElement)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}));return Object(X.createElement)("figure",{className:Ne()(b,"wp-block-embed",{"is-type-video":"video"===i})},o?_:Object(X.createElement)(me.Placeholder,{icon:Object(X.createElement)(K.BlockIcon,{icon:m,showColors:!0}),label:d},Object(X.createElement)("p",{className:"components-placeholder__error"},Object(X.createElement)("a",{href:a},a)),Object(X.createElement)("p",{className:"components-placeholder__error"},Object(Q.sprintf)(Object(Q.__)("Embedded content from %s can't be previewed in the editor."),v))),(!K.RichText.isEmpty(l)||u)&&Object(X.createElement)(K.RichText,{tagName:"figcaption",placeholder:Object(Q.__)("Write caption…"),value:l,onChange:s,inlineToolbar:!0,__unstableOnSplitAtEnd:function(){return p(Object(Y.createBlock)("core/paragraph"))}}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),r}(X.Component);function Ao(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ho(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ao(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ao(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Lo(e){return e?Object(Q.__)("This embed will preserve its aspect ratio when the browser is resized."):Object(Q.__)("This embed may not preserve its aspect ratio when the browser is resized.")}var Io=function(e){var t,r,n=e.attributes,c=n.providerNameSlug,o=n.previewable,a=n.responsive,i=n.url,l=e.attributes,s=e.isSelected,u=e.onReplace,b=e.setAttributes,m=e.insertBlocksAfter,d={title:sa.title,icon:sa.icon},p=(t=c,(null===(r=Object(Y.getBlockVariations)("core/embed"))||void 0===r?void 0:r.find((function(e){return e.name===t})))||d),g=p.icon,h=p.title,f=Object(X.useState)(i),O=Object(be.a)(f,2),v=O[0],j=O[1],y=Object(X.useState)(!1),_=Object(be.a)(y,2),w=_[0],k=_[1],E=Object(de.useDispatch)("core/data").invalidateResolution,C=Object(de.useSelect)((function(e){var t,r=e("core"),n=r.getEmbedPreview,c=r.isPreviewEmbedFallback,o=r.isRequestingEmbedPreview,a=r.getThemeSupports;if(!i)return{fetching:!1,cannotEmbed:!1};var l=n(i),s=c(i),u=!1===(null==l?void 0:l.html)&&void 0===(null==l?void 0:l.type),b=404===(null==l||null===(t=l.data)||void 0===t?void 0:t.status),m=!!l&&!u&&!b;return{preview:m?l:void 0,fetching:o(i),themeSupportsResponsive:a()["responsive-embeds"],cannotEmbed:!m||s}}),[i]),x=C.preview,S=C.fetching,P=C.themeSupportsResponsive,B=C.cannotEmbed,T=function(){var e=l.allowResponsive,t=l.className;return Ho(Ho({},l),Fe(x,h,t,a,e))};Object(X.useEffect)((function(){if((null==x?void 0:x.html)&&B&&!S){var e=i.replace(/\/$/,"");j(e),k(!1),b({url:e})}}),[null==x?void 0:x.html,i]),Object(X.useEffect)((function(){if(x&&!w&&(b(T()),u)){var t=Ie(e,T());t&&u(t)}}),[x,w]);var z=Object(K.useBlockProps)();if(S)return Object(X.createElement)("div",z,Object(X.createElement)(xo,null));var N=Object(Q.sprintf)(Object(Q.__)("%s URL"),h);if(!x||B||w)return Object(X.createElement)("div",z,Object(X.createElement)(So,{icon:g,label:N,onSubmit:function(e){e&&e.preventDefault(),k(!1),b({url:v})},value:v,cannotEmbed:B,onChange:function(e){return j(e.target.value)},fallback:function(){return function(e,t){var r=Object(X.createElement)("a",{href:e},e);t(Object(Y.createBlock)("core/paragraph",{content:Object(X.renderToString)(r)}))}(v,u)},tryAgain:function(){E("core","getEmbedPreview",[v])}}));var M=T(),R=M.caption,V=M.type,A=M.allowResponsive,H=M.className,L=ne()(H,e.className);return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(Co,{showEditButton:x&&!B,themeSupportsResponsive:P,blockSupportsResponsive:a,allowResponsive:A,getResponsiveHelp:Lo,toggleResponsive:function(){var e=l.allowResponsive,t=l.className,r=x.html,n=!e;b({allowResponsive:n,className:Ge(r,t,a&&n)})},switchBackToURLInput:function(){return k(!0)}}),Object(X.createElement)("div",z,Object(X.createElement)(Vo,{preview:x,previewable:o,className:L,url:v,type:V,caption:R,onCaptionChange:function(e){return b({caption:e})},isSelected:s,icon:g,label:N,insertBlocksAfter:m})))};var Do={from:[{type:"raw",isMatch:function(e){return"P"===e.nodeName&&/^\s*(https?:\/\/\S+)\s*$/i.test(e.textContent)},transform:function(e){return Object(Y.createBlock)("core/embed",{url:e.textContent.trim()})}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.url,r=e.caption,n=Object(X.createElement)("a",{href:t},r||t);return Object(Y.createBlock)("core/paragraph",{content:Object(X.renderToString)(n)})}}]},Go=Object(X.createElement)(me.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(me.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zm-6-9.5L16 12l-2.5 2.8 1.1 1L18 12l-3.5-3.5-1 1zm-3 0l-1-1L6 12l3.5 3.8 1.1-1L8 12l2.5-2.5z"})),Fo=Object(X.createElement)(me.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(me.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zM13.2 7.7c-.4.4-.7 1.1-.7 1.9v3.7c-.4-.3-.8-.4-1.3-.4-1.2 0-2.2 1-2.2 2.2 0 1.2 1 2.2 2.2 2.2.5 0 1-.2 1.4-.5.9-.6 1.4-1.6 1.4-2.6V9.6c0-.4.1-.6.2-.8.3-.3 1-.3 1.6-.3h.2V7h-.2c-.7 0-1.8 0-2.6.7z"})),Uo=Object(X.createElement)(me.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(me.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9.2 4.5H19c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V9.8l4.6-5.3zm9.8 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"})),qo=Object(X.createElement)(me.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(me.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zM10 15l5-3-5-3v6z"})),Wo={foreground:"#1da1f2",src:Object(X.createElement)(me.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(me.G,null,Object(X.createElement)(me.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"})))},Zo={foreground:"#ff0000",src:Object(X.createElement)(me.SVG,{viewBox:"0 0 24 24"},Object(X.createElement)(me.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"}))},$o={foreground:"#3b5998",src:Object(X.createElement)(me.SVG,{viewBox:"0 0 24 24"},Object(X.createElement)(me.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"}))},Ko=Object(X.createElement)(me.SVG,{viewBox:"0 0 24 24"},Object(X.createElement)(me.G,null,Object(X.createElement)(me.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"}))),Yo={foreground:"#0073AA",src:Object(X.createElement)(me.SVG,{viewBox:"0 0 24 24"},Object(X.createElement)(me.G,null,Object(X.createElement)(me.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"})))},Jo={foreground:"#1db954",src:Object(X.createElement)(me.SVG,{viewBox:"0 0 24 24"},Object(X.createElement)(me.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"}))},Qo=Object(X.createElement)(me.SVG,{viewBox:"0 0 24 24"},Object(X.createElement)(me.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"})),Xo={foreground:"#1ab7ea",src:Object(X.createElement)(me.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(me.G,null,Object(X.createElement)(me.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"})))},ea=Object(X.createElement)(me.SVG,{viewBox:"0 0 24 24"},Object(X.createElement)(me.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"})),ta={foreground:"#35465c",src:Object(X.createElement)(me.SVG,{viewBox:"0 0 24 24"},Object(X.createElement)(me.Path,{d:"M19 3H5a2 2 0 00-2 2v14c0 1.1.9 2 2 2h14a2 2 0 002-2V5a2 2 0 00-2-2zm-5.69 14.66c-2.72 0-3.1-1.9-3.1-3.16v-3.56H8.49V8.99c1.7-.62 2.54-1.99 2.64-2.87 0-.06.06-.41.06-.58h1.9v3.1h2.17v2.3h-2.18v3.1c0 .47.13 1.3 1.2 1.26h1.1v2.36c-1.01.02-2.07 0-2.07 0z"}))},ra=Object(X.createElement)(me.SVG,{viewBox:"0 0 24 24"},Object(X.createElement)(me.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(X.createElement)(me.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(X.createElement)(me.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"})),na=Object(X.createElement)(me.SVG,{viewBox:"0 0 24 24"},Object(X.createElement)(me.Path,{d:"m.0206909 21 19.8160091-13.07806 3.5831 6.20826z",fill:"#4bc7ee"}),Object(X.createElement)(me.Path,{d:"m23.7254 19.0205-10.1074-17.18468c-.6421-1.114428-1.7087-1.114428-2.3249 0l-11.2931 19.16418h22.5655c1.279 0 1.8019-.8905 1.1599-1.9795z",fill:"#d4cdcb"}),Object(X.createElement)(me.Path,{d:"m.0206909 21 15.2439091-16.38571 4.3029 7.32271z",fill:"#c3d82e"}),Object(X.createElement)(me.Path,{d:"m13.618 1.83582c-.6421-1.114428-1.7087-1.114428-2.3249 0l-11.2931 19.16418 15.2646-16.38573z",fill:"#e4ecb0"}),Object(X.createElement)(me.Path,{d:"m.0206909 21 19.5468091-9.063 1.6621 2.8344z",fill:"#209dbd"}),Object(X.createElement)(me.Path,{d:"m.0206909 21 17.9209091-11.82623 1.6259 2.76323z",fill:"#7cb3c9"})),ca=Object(X.createElement)(me.SVG,{viewBox:"0 0 24 24"},Object(X.createElement)(me.Path,{d:"m12.1479 18.5957c-2.4949 0-4.28131-1.7558-4.28131-4.0658 0-2.2176 1.78641-4.0965 4.09651-4.0965 2.2793 0 4.0349 1.7864 4.0349 4.1581 0 2.2794-1.7556 4.0042-3.8501 4.0042zm8.3521-18.5957-4.5329 1v7c-1.1088-1.41691-2.8028-1.8787-4.8049-1.8787-2.09443 0-3.97329.76993-5.5133 2.27917-1.72483 1.66323-2.6489 3.78863-2.6489 6.16033 0 2.5873.98562 4.8049 2.89526 6.499 1.44763 1.2936 3.17251 1.9402 5.17454 1.9402 1.9713 0 3.4498-.5236 4.8973-1.9402v1.9402h4.5329c0-7.6359 0-15.3641 0-23z",fill:"#333436"})),oa=[{name:"twitter",title:"Twitter",icon:Wo,keywords:["tweet",Object(Q.__)("social")],description:Object(Q.__)("Embed a tweet."),patterns:[/^https?:\/\/(www\.)?twitter\.com\/.+/i],attributes:{providerNameSlug:"twitter",responsive:!0}},{name:"youtube",title:"YouTube",icon:Zo,keywords:[Object(Q.__)("music"),Object(Q.__)("video")],description:Object(Q.__)("Embed a YouTube video."),patterns:[/^https?:\/\/((m|www)\.)?youtube\.com\/.+/i,/^https?:\/\/youtu\.be\/.+/i],attributes:{providerNameSlug:"youtube",responsive:!0}},{name:"facebook",title:"Facebook",icon:$o,keywords:[Object(Q.__)("social")],description:Object(Q.__)("Embed a Facebook post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"facebook",previewable:!1,responsive:!0}},{name:"instagram",title:"Instagram",icon:Ko,keywords:[Object(Q.__)("image"),Object(Q.__)("social")],description:Object(Q.__)("Embed an Instagram post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"instagram",responsive:!0}},{name:"wordpress",title:"WordPress",icon:Yo,keywords:[Object(Q.__)("post"),Object(Q.__)("blog")],description:Object(Q.__)("Embed a WordPress post."),attributes:{providerNameSlug:"wordpress"}},{name:"soundcloud",title:"SoundCloud",icon:Fo,keywords:[Object(Q.__)("music"),Object(Q.__)("audio")],description:Object(Q.__)("Embed SoundCloud content."),patterns:[/^https?:\/\/(www\.)?soundcloud\.com\/.+/i],attributes:{providerNameSlug:"soundcloud",responsive:!0}},{name:"spotify",title:"Spotify",icon:Jo,keywords:[Object(Q.__)("music"),Object(Q.__)("audio")],description:Object(Q.__)("Embed Spotify content."),patterns:[/^https?:\/\/(open|play)\.spotify\.com\/.+/i],attributes:{providerNameSlug:"spotify",responsive:!0}},{name:"flickr",title:"Flickr",icon:Qo,keywords:[Object(Q.__)("image")],description:Object(Q.__)("Embed Flickr content."),patterns:[/^https?:\/\/(www\.)?flickr\.com\/.+/i,/^https?:\/\/flic\.kr\/.+/i],attributes:{providerNameSlug:"flickr",responsive:!0}},{name:"vimeo",title:"Vimeo",icon:Xo,keywords:[Object(Q.__)("video")],description:Object(Q.__)("Embed a Vimeo video."),patterns:[/^https?:\/\/(www\.)?vimeo\.com\/.+/i],attributes:{providerNameSlug:"vimeo",responsive:!0}},{name:"animoto",title:"Animoto",icon:na,description:Object(Q.__)("Embed an Animoto video."),patterns:[/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i],attributes:{providerNameSlug:"animoto",responsive:!0}},{name:"cloudup",title:"Cloudup",icon:Go,description:Object(Q.__)("Embed Cloudup content."),patterns:[/^https?:\/\/cloudup\.com\/.+/i],attributes:{providerNameSlug:"cloudup",responsive:!0}},{name:"collegehumor",title:"CollegeHumor",icon:qo,description:Object(Q.__)("Embed CollegeHumor content."),scope:["block"],patterns:[],attributes:{providerNameSlug:"collegehumor",responsive:!0}},{name:"crowdsignal",title:"Crowdsignal",icon:Go,keywords:["polldaddy",Object(Q.__)("survey")],description:Object(Q.__)("Embed Crowdsignal (formerly Polldaddy) content."),patterns:[/^https?:\/\/((.+\.)?polldaddy\.com|poll\.fm|.+\.survey\.fm)\/.+/i],attributes:{providerNameSlug:"crowdsignal",responsive:!0}},{name:"dailymotion",title:"Dailymotion",icon:ca,keywords:[Object(Q.__)("video")],description:Object(Q.__)("Embed a Dailymotion video."),patterns:[/^https?:\/\/(www\.)?dailymotion\.com\/.+/i],attributes:{providerNameSlug:"dailymotion",responsive:!0}},{name:"imgur",title:"Imgur",icon:Uo,description:Object(Q.__)("Embed Imgur content."),patterns:[/^https?:\/\/(.+\.)?imgur\.com\/.+/i],attributes:{providerNameSlug:"imgur",responsive:!0}},{name:"issuu",title:"Issuu",icon:Go,description:Object(Q.__)("Embed Issuu content."),patterns:[/^https?:\/\/(www\.)?issuu\.com\/.+/i],attributes:{providerNameSlug:"issuu",responsive:!0}},{name:"kickstarter",title:"Kickstarter",icon:Go,description:Object(Q.__)("Embed Kickstarter content."),patterns:[/^https?:\/\/(www\.)?kickstarter\.com\/.+/i,/^https?:\/\/kck\.st\/.+/i],attributes:{providerNameSlug:"kickstarter",responsive:!0}},{name:"meetup-com",title:"Meetup.com",icon:Go,description:Object(Q.__)("Embed Meetup.com content."),patterns:[/^https?:\/\/(www\.)?meetu(\.ps|p\.com)\/.+/i],attributes:{providerNameSlug:"meetup-com",responsive:!0}},{name:"mixcloud",title:"Mixcloud",icon:Fo,keywords:[Object(Q.__)("music"),Object(Q.__)("audio")],description:Object(Q.__)("Embed Mixcloud content."),patterns:[/^https?:\/\/(www\.)?mixcloud\.com\/.+/i],attributes:{providerNameSlug:"mixcloud",responsive:!0}},{name:"reddit",title:"Reddit",icon:ea,description:Object(Q.__)("Embed a Reddit thread."),patterns:[/^https?:\/\/(www\.)?reddit\.com\/.+/i],attributes:{providerNameSlug:"reddit",responsive:!0}},{name:"reverbnation",title:"ReverbNation",icon:Fo,description:Object(Q.__)("Embed ReverbNation content."),patterns:[/^https?:\/\/(www\.)?reverbnation\.com\/.+/i],attributes:{providerNameSlug:"reverbnation",responsive:!0}},{name:"screencast",title:"Screencast",icon:qo,description:Object(Q.__)("Embed Screencast content."),patterns:[/^https?:\/\/(www\.)?screencast\.com\/.+/i],attributes:{providerNameSlug:"screencast",responsive:!0}},{name:"scribd",title:"Scribd",icon:Go,description:Object(Q.__)("Embed Scribd content."),patterns:[/^https?:\/\/(www\.)?scribd\.com\/.+/i],attributes:{providerNameSlug:"scribd",responsive:!0}},{name:"slideshare",title:"Slideshare",icon:Go,description:Object(Q.__)("Embed Slideshare content."),patterns:[/^https?:\/\/(.+?\.)?slideshare\.net\/.+/i],attributes:{providerNameSlug:"slideshare",responsive:!0}},{name:"smugmug",title:"SmugMug",icon:Uo,description:Object(Q.__)("Embed SmugMug content."),patterns:[/^https?:\/\/(.+\.)?smugmug\.com\/.*/i],attributes:{providerNameSlug:"smugmug",previewable:!1,responsive:!0}},{name:"speaker-deck",title:"Speaker Deck",icon:Go,description:Object(Q.__)("Embed Speaker Deck content."),patterns:[/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i],attributes:{providerNameSlug:"speaker-deck",responsive:!0}},{name:"tiktok",title:"TikTok",icon:qo,keywords:[Object(Q.__)("video")],description:Object(Q.__)("Embed a TikTok video."),patterns:[/^https?:\/\/(www\.)?tiktok\.com\/.+/i],attributes:{providerNameSlug:"tiktok",responsive:!0}},{name:"ted",title:"TED",icon:qo,description:Object(Q.__)("Embed a TED video."),patterns:[/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i],attributes:{providerNameSlug:"ted",responsive:!0}},{name:"tumblr",title:"Tumblr",icon:ta,keywords:[Object(Q.__)("social")],description:Object(Q.__)("Embed a Tumblr post."),patterns:[/^https?:\/\/(www\.)?tumblr\.com\/.+/i],attributes:{providerNameSlug:"tumblr",responsive:!0}},{name:"videopress",title:"VideoPress",icon:qo,keywords:[Object(Q.__)("video")],description:Object(Q.__)("Embed a VideoPress video."),patterns:[/^https?:\/\/videopress\.com\/.+/i],attributes:{providerNameSlug:"videopress",responsive:!0}},{name:"wordpress-tv",title:"WordPress.tv",icon:qo,description:Object(Q.__)("Embed a WordPress.tv video."),patterns:[/^https?:\/\/wordpress\.tv\/.+/i],attributes:{providerNameSlug:"wordpress-tv",responsive:!0}},{name:"amazon-kindle",title:"Amazon Kindle",icon:ra,keywords:[Object(Q.__)("ebook")],description:Object(Q.__)("Embed Amazon Kindle content."),patterns:[/^https?:\/\/([a-z0-9-]+\.)?(amazon|amzn)(\.[a-z]{2,4})+\/.+/i,/^https?:\/\/(www\.)?(a\.co|z\.cn)\/.+/i],attributes:{providerNameSlug:"amazon-kindle"}}],aa=[{attributes:{url:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption"},type:{type:"string"},providerNameSlug:{type:"string"},allowResponsive:{type:"boolean",default:!0},responsive:{type:"boolean",default:!1},previewable:{type:"boolean",default:!0}},save:function(e){var t,r=e.attributes,n=r.url,c=r.caption,o=r.type,a=r.providerNameSlug;if(!n)return null;var i=ne()("wp-block-embed",(t={},Object(Z.a)(t,"is-type-".concat(o),o),Object(Z.a)(t,"is-provider-".concat(a),a),t));return Object(X.createElement)("figure",{className:i},"\n".concat(n,"\n"),!K.RichText.isEmpty(c)&&Object(X.createElement)(K.RichText.Content,{tagName:"figcaption",value:c}))}}],ia={apiVersion:2,name:"core/embed",category:"embed",attributes:{url:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption"},type:{type:"string"},providerNameSlug:{type:"string"},allowResponsive:{type:"boolean",default:!0},responsive:{type:"boolean",default:!1},previewable:{type:"boolean",default:!0}},supports:{align:!0,reusable:!1,html:!1}},la=ia.name,sa={title:Object(Q._x)("Embed","block title"),description:Object(Q.__)("Add a block that displays content pulled from other sites, like Twitter, Instagram or YouTube."),icon:Go,edit:Io,save:function(e){var t,r=e.attributes,n=r.url,c=r.caption,o=r.type,a=r.providerNameSlug;if(!n)return null;var i=Ne()("wp-block-embed",(t={},Object(Z.a)(t,"is-type-".concat(o),o),Object(Z.a)(t,"is-provider-".concat(a),a),Object(Z.a)(t,"wp-block-embed-".concat(a),a),t));return Object(X.createElement)("figure",K.useBlockProps.save({className:i}),Object(X.createElement)("div",{className:"wp-block-embed__wrapper"},"\n".concat(n,"\n")),!K.RichText.isEmpty(c)&&Object(X.createElement)(K.RichText.Content,{tagName:"figcaption",value:c}))},transforms:Do,variations:oa,deprecated:aa},ua=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M19 6.2h-5.9l-.6-1.1c-.3-.7-1-1.1-1.8-1.1H5c-1.1 0-2 .9-2 2v11.8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8.2c0-1.1-.9-2-2-2zm.5 11.6c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h5.8c.2 0 .4.1.4.3l1 2H19c.3 0 .5.2.5.5v9.5z"}));function ba(e){var t=e.hrefs,r=e.openInNewWindow,n=e.showDownloadButton,c=e.changeLinkDestinationOption,o=e.changeOpenInNewWindow,a=e.changeShowDownloadButton,i=t.href,l=t.textLinkHref,s=t.attachmentPage,u=[{value:i,label:Object(Q.__)("URL")}];return s&&(u=[{value:i,label:Object(Q.__)("Media file")},{value:s,label:Object(Q.__)("Attachment page")}]),Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Text link settings")},Object(X.createElement)(me.SelectControl,{label:Object(Q.__)("Link to"),value:l,options:u,onChange:c}),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Open in new tab"),checked:r,onChange:o})),Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Download button settings")},Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Show download button"),checked:n,onChange:a}))))}var ma=Object(me.withNotices)((function(e){var t=e.isSelected,r=e.attributes,n=e.setAttributes,c=e.noticeUI,o=e.noticeOperations,a=r.id,i=r.fileName,l=r.href,s=r.textLinkHref,u=r.textLinkTarget,b=r.showDownloadButton,m=r.downloadButtonText,d=Object(X.useState)(!1),p=Object(be.a)(d,2),g=p[0],h=p[1],f=Object(X.useState)(!1),O=Object(be.a)(f,2),v=O[0],j=O[1],y=Object(de.useSelect)((function(e){return{media:void 0===a?void 0:e("core").getMedia(a),mediaUpload:e("core/block-editor").getSettings().mediaUpload}}),[a]),_=y.media,w=y.mediaUpload;function k(e){e&&e.url&&(h(!1),n({href:e.url,fileName:e.title,textLinkHref:e.url,id:e.id}))}function E(e){h(!0),o.removeAllNotices(),o.createErrorNotice(e)}Object(X.useEffect)((function(){if(Object(Ce.isBlobURL)(l)){var e=Object(Ce.getBlobByURL)(l);w({filesList:[e],onFileChange:function(e){return k(Object(be.a)(e,1)[0])},onError:function(e){h(!0),o.createErrorNotice(e)}}),Object(Ce.revokeBlobURL)(l)}void 0===m&&n({downloadButtonText:Object(Q._x)("Download","button label")})}),[]),Object(X.useEffect)((function(){j(!1)}),[t]);var C=_&&_.link,x=Object(K.useBlockProps)({className:ne()(Object(me.__unstableUseAnimate)({type:Object(Ce.isBlobURL)(l)?"loading":null}),{"is-transient":Object(Ce.isBlobURL)(l)})});return!l||g?Object(X.createElement)("div",x,Object(X.createElement)(K.MediaPlaceholder,{icon:Object(X.createElement)(K.BlockIcon,{icon:ua}),labels:{title:Object(Q.__)("File"),instructions:Object(Q.__)("Upload a file or pick one from your media library.")},onSelect:k,notices:c,onError:E,accept:"*"})):Object(X.createElement)(X.Fragment,null,Object(X.createElement)(ba,Object(ue.a)({hrefs:{href:l,textLinkHref:s,attachmentPage:C}},{openInNewWindow:!!u,showDownloadButton:b,changeLinkDestinationOption:function(e){n({textLinkHref:e})},changeOpenInNewWindow:function(e){n({textLinkTarget:!!e&&"_blank"})},changeShowDownloadButton:function(e){n({showDownloadButton:e})}})),Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(K.MediaReplaceFlow,{mediaId:a,mediaURL:l,accept:"*",onSelect:k,onError:E})),Object(X.createElement)("div",x,Object(X.createElement)("div",{className:"wp-block-file__content-wrapper"},Object(X.createElement)("div",{className:"wp-block-file__textlink"},Object(X.createElement)(K.RichText,{tagName:"div",value:i,placeholder:Object(Q.__)("Write file name…"),withoutInteractiveFormatting:!0,onChange:function(e){return n({fileName:e})}})),b&&Object(X.createElement)("div",{className:"wp-block-file__button-richtext-wrapper"},Object(X.createElement)(K.RichText,{tagName:"div",className:"wp-block-file__button",value:m,withoutInteractiveFormatting:!0,placeholder:Object(Q.__)("Add text…"),onChange:function(e){return n({downloadButtonText:e})}}))),t&&Object(X.createElement)(me.ClipboardButton,{isSecondary:!0,text:l,className:"wp-block-file__copy-url-button",onCopy:function(){j(!0)},onFinishCopy:function(){j(!1)},disabled:Object(Ce.isBlobURL)(l)},v?Object(Q.__)("Copied!"):Object(Q.__)("Copy URL"))))}));var da={from:[{type:"files",isMatch:function(e){return e.length>0},priority:15,transform:function(e){var t=[];return e.forEach((function(e){var r=Object(Ce.createBlobURL)(e);t.push(Object(Y.createBlock)("core/file",{href:r,fileName:e.name,textLinkHref:r}))})),t}},{type:"block",blocks:["core/audio"],transform:function(e){return Object(Y.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id,anchor:e.anchor})}},{type:"block",blocks:["core/video"],transform:function(e){return Object(Y.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id,anchor:e.anchor})}},{type:"block",blocks:["core/image"],transform:function(e){return Object(Y.createBlock)("core/file",{href:e.url,fileName:e.caption,textLinkHref:e.url,id:e.id,anchor:e.anchor})}}],to:[{type:"block",blocks:["core/audio"],isMatch:function(e){var t=e.id;if(!t)return!1;var r=(0,Object(de.select)("core").getMedia)(t);return!!r&&Object(J.includes)(r.mime_type,"audio")},transform:function(e){return Object(Y.createBlock)("core/audio",{src:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})}},{type:"block",blocks:["core/video"],isMatch:function(e){var t=e.id;if(!t)return!1;var r=(0,Object(de.select)("core").getMedia)(t);return!!r&&Object(J.includes)(r.mime_type,"video")},transform:function(e){return Object(Y.createBlock)("core/video",{src:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})}},{type:"block",blocks:["core/image"],isMatch:function(e){var t=e.id;if(!t)return!1;var r=(0,Object(de.select)("core").getMedia)(t);return!!r&&Object(J.includes)(r.mime_type,"image")},transform:function(e){return Object(Y.createBlock)("core/image",{url:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})}}]},pa={apiVersion:2,name:"core/file",category:"media",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]"}},supports:{anchor:!0,align:!0}},ga=pa.name,ha={title:Object(Q.__)("File"),description:Object(Q.__)("Add a link to a downloadable file."),icon:ua,keywords:[Object(Q.__)("document"),Object(Q.__)("pdf"),Object(Q.__)("download")],transforms:da,edit:ma,save:function(e){var t=e.attributes,r=t.href,n=t.fileName,c=t.textLinkHref,o=t.textLinkTarget,a=t.showDownloadButton,i=t.downloadButtonText;return r&&Object(X.createElement)("div",K.useBlockProps.save(),!K.RichText.isEmpty(n)&&Object(X.createElement)("a",{href:c,target:o,rel:!!o&&"noreferrer noopener"},Object(X.createElement)(K.RichText.Content,{value:n})),a&&Object(X.createElement)("a",{href:r,className:"wp-block-file__button",download:!0},Object(X.createElement)(K.RichText.Content,{value:i})))}},fa=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M4.8 11.4H2.1V9H1v6h1.1v-2.6h2.7V15h1.1V9H4.8v2.4zm1.9-1.3h1.7V15h1.1v-4.9h1.7V9H6.7v1.1zM16.2 9l-1.5 2.7L13.3 9h-.9l-.8 6h1.1l.5-4 1.5 2.8 1.5-2.8.5 4h1.1L17 9h-.8zm3.8 5V9h-1.1v6h3.6v-1H20z"}));var Oa={from:[{type:"block",blocks:["core/code"],transform:function(e){var t=e.content;return Object(Y.createBlock)("core/html",{content:t})}}]},va={apiVersion:2,name:"core/html",category:"widgets",attributes:{content:{type:"string",source:"html"}},supports:{customClassName:!1,className:!1,html:!1}},ja=va.name,ya={title:Object(Q.__)("Custom HTML"),description:Object(Q.__)("Add custom HTML code and preview it as you edit."),icon:fa,keywords:[Object(Q.__)("embed")],example:{attributes:{content:"<marquee>"+Object(Q.__)("Welcome to the wonderful world of blocks…")+"</marquee>"}},edit:function(e){var t=e.attributes,r=e.setAttributes,n=e.isSelected,c=Object(X.useState)(),o=Object(be.a)(c,2),a=o[0],i=o[1],l=Object(de.useSelect)((function(e){return["\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(W.a)(Object(K.transformStyles)(e("core/block-editor").getSettings().styles)))}),[]);return Object(X.createElement)("div",Object(K.useBlockProps)(),Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(me.ToolbarGroup,null,Object(X.createElement)(me.ToolbarButton,{className:"components-tab-button",isPressed:!a,onClick:function(){i(!1)}},Object(X.createElement)("span",null,"HTML")),Object(X.createElement)(me.ToolbarButton,{className:"components-tab-button",isPressed:a,onClick:function(){i(!0)}},Object(X.createElement)("span",null,Object(Q.__)("Preview"))))),Object(X.createElement)(me.Disabled.Consumer,null,(function(e){return a||e?Object(X.createElement)(X.Fragment,null,Object(X.createElement)(me.SandBox,{html:t.content,styles:l}),!n&&Object(X.createElement)("div",{className:"block-library-html__preview-overlay"})):Object(X.createElement)(K.PlainText,{value:t.content,onChange:function(e){return r({content:e})},placeholder:Object(Q.__)("Write HTML…"),"aria-label":Object(Q.__)("HTML")})})))},save:function(e){var t=e.attributes;return Object(X.createElement)(X.RawHTML,null,t.content)},transforms:Oa},_a=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ee.Path,{d:"M4 17h7V6H4v11zm9-10v1.5h7V7h-7zm0 5.5h7V11h-7v1.5zm0 4h7V15h-7v1.5z"})),wa=Object(X.createElement)(me.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(me.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(X.createElement)(me.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(X.createElement)(me.Path,{d:"M5 19h8l-1.59-2H9.24l-.84 1.1L7 16.3 5 19z"})),ka=["image","video"];function Ea(e,t){return e?{backgroundImage:"url(".concat(e,")"),backgroundPosition:t?"".concat(100*t.x,"% ").concat(100*t.y,"%"):"50% 50%"}:{}}function Ca(e){var t=e.isSelected,r=e.isStackedOnMobile,n=Object(or.a)(e,["isSelected","isStackedOnMobile"]),c=Object(xe.useViewportMatch)("small","<");return Object(X.createElement)(me.ResizableBox,Object(ue.a)({showHandle:t&&(!c||!r)},n))}function xa(e){var t=e.mediaId,r=e.mediaUrl,n=e.onSelectMedia;return Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(K.MediaReplaceFlow,{mediaId:t,mediaURL:r,allowedTypes:ka,accept:"image/*,video/*",onSelect:n}))}function Sa(e){var t=e.className,r=e.noticeOperations,n=e.noticeUI,c=e.onSelectMedia;return Object(X.createElement)(K.MediaPlaceholder,{icon:Object(X.createElement)(K.BlockIcon,{icon:wa}),labels:{title:Object(Q.__)("Media area")},className:t,onSelect:c,accept:"image/*,video/*",allowedTypes:ka,notices:n,onError:function(e){r.removeAllNotices(),r.createErrorNotice(e)}})}var Pa=Object(me.withNotices)((function(e){var t=e.className,r=e.commitWidthChange,n=e.focalPoint,c=e.imageFill,o=e.isSelected,a=e.isStackedOnMobile,i=e.mediaAlt,l=e.mediaId,s=e.mediaPosition,u=e.mediaType,b=e.mediaUrl,m=e.mediaWidth,d=e.onSelectMedia,p=e.onWidthChange,g=Object(de.useDispatch)("core/block-editor").toggleSelection;if(u&&b){var h={right:"left"===s,left:"right"===s},f="image"===u&&c?Ea(b,n):{},O={image:function(){return Object(X.createElement)("img",{src:b,alt:i})},video:function(){return Object(X.createElement)("video",{controls:!0,src:b})}};return Object(X.createElement)(Ca,{as:"figure",className:ne()(t,"editor-media-container__resizer"),style:f,size:{width:m+"%"},minWidth:"10%",maxWidth:"100%",enable:h,onResizeStart:function(){g(!1)},onResize:function(e,t,r){p(parseInt(r.style.width))},onResizeStop:function(e,t,n){g(!0),r(parseInt(n.style.width))},axis:"x",isSelected:o,isStackedOnMobile:a},Object(X.createElement)(xa,{onSelectMedia:d,mediaUrl:b,mediaId:l}),(O[u]||J.noop)())}return Object(X.createElement)(Sa,e)}));function Ba(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ta(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ba(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ba(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var za=function(e){if(!e.customBackgroundColor)return e;var t={color:{background:e.customBackgroundColor}};return Ta(Ta({},Object(J.omit)(e,["customBackgroundColor"])),{},{style:t})},Na={align:{type:"string",default:"wide"},backgroundColor:{type:"string"},mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:""},mediaPosition:{type:"string",default:"left"},mediaId:{type:"number"},mediaType:{type:"string"},mediaWidth:{type:"number",default:50},isStackedOnMobile:{type:"boolean",default:!0}},Ma=[{attributes:Ta(Ta({},Na),{},{customBackgroundColor:{type:"string"},mediaLink:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure a",attribute:"target"},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"},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"}}),migrate:za,save:function(e){var t,r=e.attributes,n=r.backgroundColor,c=r.customBackgroundColor,o=r.isStackedOnMobile,a=r.mediaAlt,i=r.mediaPosition,l=r.mediaType,s=r.mediaUrl,u=r.mediaWidth,b=r.mediaId,m=r.verticalAlignment,d=r.imageFill,p=r.focalPoint,g=r.linkClass,h=r.href,f=r.linkTarget,O=r.rel,v=Object(J.isEmpty)(O)?void 0:O,j=Object(X.createElement)("img",{src:s,alt:a,className:b&&"image"===l?"wp-image-".concat(b):null});h&&(j=Object(X.createElement)("a",{className:g,href:h,target:f,rel:v},j));var y,_={image:function(){return j},video:function(){return Object(X.createElement)("video",{controls:!0,src:s})}},w=Object(K.getColorClassName)("background-color",n),k=ne()((t={"has-media-on-the-right":"right"===i,"has-background":w||c},Object(Z.a)(t,w,w),Object(Z.a)(t,"is-stacked-on-mobile",o),Object(Z.a)(t,"is-vertically-aligned-".concat(m),m),Object(Z.a)(t,"is-image-fill",d),t)),E=d?Ea(s,p):{};50!==u&&(y="right"===i?"auto ".concat(u,"%"):"".concat(u,"% auto"));var C={backgroundColor:w?void 0:c,gridTemplateColumns:y};return Object(X.createElement)("div",{className:k,style:C},Object(X.createElement)("figure",{className:"wp-block-media-text__media",style:E},(_[l]||J.noop)()),Object(X.createElement)("div",{className:"wp-block-media-text__content"},Object(X.createElement)(K.InnerBlocks.Content,null)))}},{attributes:Ta(Ta({},Na),{},{customBackgroundColor:{type:"string"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"}}),migrate:za,save:function(e){var t,r,n=e.attributes,c=n.backgroundColor,o=n.customBackgroundColor,a=n.isStackedOnMobile,i=n.mediaAlt,l=n.mediaPosition,s=n.mediaType,u=n.mediaUrl,b=n.mediaWidth,m=n.mediaId,d=n.verticalAlignment,p=n.imageFill,g=n.focalPoint,h={image:function(){return Object(X.createElement)("img",{src:u,alt:i,className:m&&"image"===s?"wp-image-".concat(m):null})},video:function(){return Object(X.createElement)("video",{controls:!0,src:u})}},f=Object(K.getColorClassName)("background-color",c),O=ne()((t={"has-media-on-the-right":"right"===l},Object(Z.a)(t,f,f),Object(Z.a)(t,"is-stacked-on-mobile",a),Object(Z.a)(t,"is-vertically-aligned-".concat(d),d),Object(Z.a)(t,"is-image-fill",p),t)),v=p?Ea(u,g):{};50!==b&&(r="right"===l?"auto ".concat(b,"%"):"".concat(b,"% auto"));var j={backgroundColor:f?void 0:o,gridTemplateColumns:r};return Object(X.createElement)("div",{className:O,style:j},Object(X.createElement)("figure",{className:"wp-block-media-text__media",style:v},(h[s]||J.noop)()),Object(X.createElement)("div",{className:"wp-block-media-text__content"},Object(X.createElement)(K.InnerBlocks.Content,null)))}},{attributes:Ta(Ta({},Na),{},{customBackgroundColor:{type:"string"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"}}),save:function(e){var t,r,n=e.attributes,c=n.backgroundColor,o=n.customBackgroundColor,a=n.isStackedOnMobile,i=n.mediaAlt,l=n.mediaPosition,s=n.mediaType,u=n.mediaUrl,b=n.mediaWidth,m={image:function(){return Object(X.createElement)("img",{src:u,alt:i})},video:function(){return Object(X.createElement)("video",{controls:!0,src:u})}},d=Object(K.getColorClassName)("background-color",c),p=ne()((t={"has-media-on-the-right":"right"===l},Object(Z.a)(t,d,d),Object(Z.a)(t,"is-stacked-on-mobile",a),t));50!==b&&(r="right"===l?"auto ".concat(b,"%"):"".concat(b,"% auto"));var g={backgroundColor:d?void 0:o,gridTemplateColumns:r};return Object(X.createElement)("div",{className:p,style:g},Object(X.createElement)("figure",{className:"wp-block-media-text__media"},(m[s]||J.noop)()),Object(X.createElement)("div",{className:"wp-block-media-text__content"},Object(X.createElement)(K.InnerBlocks.Content,null)))}}],Ra=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ee.Path,{d:"M4 18h6V6H4v12zm9-10v1.5h7V8h-7zm0 7.5h7V14h-7v1.5z"})),Va=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ee.Path,{d:"M14 6v12h6V6h-6zM4 9.5h7V8H4v1.5zm0 6h7V14H4v1.5z"})),Aa=[["core/paragraph",{fontSize:"large",placeholder:Object(Q._x)("Content…","content placeholder")}]],Ha=function(e){return Math.max(15,Math.min(e,85))};function La(e,t){var r,n,c;return null==e||null===(r=e.media_details)||void 0===r||null===(n=r.sizes)||void 0===n||null===(c=n[t])||void 0===c?void 0:c.source_url}var Ia=function(e){var t,r=e.attributes,n=e.isSelected,c=e.setAttributes,o=r.focalPoint,a=r.href,i=r.imageFill,l=r.isStackedOnMobile,s=r.linkClass,u=r.linkDestination,b=r.linkTarget,m=r.mediaAlt,d=r.mediaId,p=r.mediaPosition,g=r.mediaType,h=r.mediaUrl,f=r.mediaWidth,O=r.rel,v=r.verticalAlignment,j=r.mediaSizeSlug||"full",y=Object(de.useSelect)((function(e){return d&&n?e("core").getMedia(d):null}),[n,d]),_=Object(X.useState)(null),w=Object(be.a)(_,2),k=w[0],E=w[1],C=function(e){var t=e.attributes,r=t.linkDestination,n=t.href,c=e.setAttributes;return function(e){var t,o,a,i,l,s,u;"image"===(t=e.media_type?"image"===e.media_type?"image":"video":e.type)&&(o=(null===(a=e.sizes)||void 0===a||null===(i=a.large)||void 0===i?void 0:i.url)||(null===(l=e.media_details)||void 0===l||null===(s=l.sizes)||void 0===s||null===(u=s.large)||void 0===u?void 0:u.source_url));var b=n;"media"===r&&(b=e.url),"attachment"===r&&(b=e.link),c({mediaAlt:e.alt,mediaId:e.id,mediaType:t,mediaUrl:o||e.url,mediaLink:e.link||void 0,href:b,focalPoint:void 0})}}({attributes:r,setAttributes:c}),x=ne()((t={"has-media-on-the-right":"right"===p,"is-selected":n,"is-stacked-on-mobile":l},Object(Z.a)(t,"is-vertically-aligned-".concat(v),v),Object(Z.a)(t,"is-image-fill",i),t)),S="".concat(k||f,"%"),P="right"===p?"1fr ".concat(S):"".concat(S," 1fr"),B={gridTemplateColumns:P,msGridColumns:P},T=[{icon:Ra,title:Object(Q.__)("Show media on left"),isActive:"left"===p,onClick:function(){return c({mediaPosition:"left"})}},{icon:Va,title:Object(Q.__)("Show media on right"),isActive:"right"===p,onClick:function(){return c({mediaPosition:"right"})}}],z=Object(de.useSelect)((function(e){var t=e("core/block-editor").getSettings();return null==t?void 0:t.imageSizes})),N=Object(J.map)(Object(J.filter)(z,(function(e){var t=e.slug;return La(y,t)})),(function(e){var t=e.name;return{value:e.slug,label:t}})),M=Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Media & Text settings")},Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Stack on mobile"),checked:l,onChange:function(){return c({isStackedOnMobile:!l})}}),"image"===g&&Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Crop image to fill entire column"),checked:i,onChange:function(){return c({imageFill:!i})}}),i&&Object(X.createElement)(me.FocalPointPicker,{label:Object(Q.__)("Focal point picker"),url:h,value:o,onChange:function(e){return c({focalPoint:e})}}),"image"===g&&Object(X.createElement)(me.TextareaControl,{label:Object(Q.__)("Alt text (alternative text)"),value:m,onChange:function(e){c({mediaAlt:e})},help:Object(X.createElement)(X.Fragment,null,Object(X.createElement)(me.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},Object(Q.__)("Describe the purpose of the image")),Object(Q.__)("Leave empty if the image is purely decorative."))}),"image"===g&&Object(X.createElement)(K.__experimentalImageSizeControl,{onChangeImage:function(e){var t=La(y,e);if(!t)return null;c({mediaUrl:t,mediaSizeSlug:e})},slug:j,imageSizeOptions:N,isResizable:!1})),R=Object(K.useBlockProps)({className:x,style:B}),V=Object(K.__experimentalUseInnerBlocksProps)({className:"wp-block-media-text__content"},{template:Aa,templateInsertUpdatesSelection:!1});return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.InspectorControls,null,M),Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(me.ToolbarGroup,{controls:T}),Object(X.createElement)(K.BlockVerticalAlignmentToolbar,{onChange:function(e){c({verticalAlignment:e})},value:v}),"image"===g&&Object(X.createElement)(me.ToolbarGroup,null,Object(X.createElement)(K.__experimentalImageURLInputUI,{url:a||"",onChangeUrl:function(e){c(e)},linkDestination:u,mediaType:g,mediaUrl:y&&y.source_url,mediaLink:y&&y.link,linkTarget:b,linkClass:s,rel:O}))),Object(X.createElement)("div",R,Object(X.createElement)(Pa,Object(ue.a)({className:"wp-block-media-text__media",onSelectMedia:C,onWidthChange:function(e){E(Ha(e))},commitWidthChange:function(e){c({mediaWidth:Ha(e)}),E(Ha(e))}},{focalPoint:o,imageFill:i,isSelected:n,isStackedOnMobile:l,mediaAlt:m,mediaId:d,mediaPosition:p,mediaType:g,mediaUrl:h,mediaWidth:f})),Object(X.createElement)("div",V)))};var Da={from:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.alt,r=e.url,n=e.id,c=e.anchor;return Object(Y.createBlock)("core/media-text",{mediaAlt:t,mediaId:n,mediaUrl:r,mediaType:"image",anchor:c})}},{type:"block",blocks:["core/video"],transform:function(e){var t=e.src,r=e.id,n=e.anchor;return Object(Y.createBlock)("core/media-text",{mediaId:r,mediaUrl:t,mediaType:"video",anchor:n})}}],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,r=e.mediaId,n=e.mediaUrl,c=e.anchor;return Object(Y.createBlock)("core/image",{alt:t,id:r,url:n,anchor:c})}},{type:"block",blocks:["core/video"],isMatch:function(e){var t=e.mediaType;return!e.mediaUrl||"video"===t},transform:function(e){var t=e.mediaId,r=e.mediaUrl,n=e.anchor;return Object(Y.createBlock)("core/video",{id:t,src:r,anchor:n})}}]},Ga={apiVersion:2,name:"core/media-text",category:"media",attributes:{align:{type:"string",default:"wide"},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"},mediaLink:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure a",attribute:"target"},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"},mediaType:{type:"string"},mediaWidth:{type:"number",default:50},mediaSizeSlug:{type:"string"},isStackedOnMobile:{type:"boolean",default:!0},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0}}},Fa=Ga.name,Ua={title:Object(Q.__)("Media & Text"),description:Object(Q.__)("Set media and words side-by-side for a richer layout."),icon:_a,keywords:[Object(Q.__)("image"),Object(Q.__)("video")],example:{attributes:{mediaType:"image",mediaUrl:"https://s.w.org/images/core/5.3/Biologia_Centrali-Americana_-_Cantorchilus_semibadius_1902.jpg"},innerBlocks:[{name:"core/paragraph",attributes:{content:Object(Q.__)("The wren<br>Earns his living<br>Noiselessly.")}},{name:"core/paragraph",attributes:{content:Object(Q.__)("— Kobayashi Issa (一茶)")}}]},transforms:Da,edit:Ia,save:function(e){var t,r,n=e.attributes,c=n.isStackedOnMobile,o=n.mediaAlt,a=n.mediaPosition,i=n.mediaType,l=n.mediaUrl,s=n.mediaWidth,u=n.mediaId,b=n.verticalAlignment,m=n.imageFill,d=n.focalPoint,p=n.linkClass,g=n.href,h=n.linkTarget,f=n.rel,O=n.mediaSizeSlug||"full",v=Object(J.isEmpty)(f)?void 0:f,j=ne()((t={},Object(Z.a)(t,"wp-image-".concat(u),u&&"image"===i),Object(Z.a)(t,"size-".concat(O),u&&"image"===i),t)),y=Object(X.createElement)("img",{src:l,alt:o,className:j||null});g&&(y=Object(X.createElement)("a",{className:p,href:g,target:h,rel:v},y));var _,w={image:function(){return y},video:function(){return Object(X.createElement)("video",{controls:!0,src:l})}},k=ne()((r={"has-media-on-the-right":"right"===a,"is-stacked-on-mobile":c},Object(Z.a)(r,"is-vertically-aligned-".concat(b),b),Object(Z.a)(r,"is-image-fill",m),r)),E=m?Ea(l,d):{};50!==s&&(_="right"===a?"auto ".concat(s,"%"):"".concat(s,"% auto"));var C={gridTemplateColumns:_};return Object(X.createElement)("div",K.useBlockProps.save({className:k,style:C}),Object(X.createElement)("figure",{className:"wp-block-media-text__media",style:E},(w[i]||J.noop)()),Object(X.createElement)("div",{className:"wp-block-media-text__content"},Object(X.createElement)(K.InnerBlocks.Content,null)))},deprecated:Ma},qa=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12.9c0 .6.5 1.1 1.1 1.1.3 0 .5-.1.8-.3L8.5 17H18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H7.9l-2.4 2.4V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v9z"}));var Wa={apiVersion:2,name:"core/latest-comments",category:"widgets",attributes:{commentsToShow:{type:"number",default:5,minimum:1,maximum:100},displayAvatar:{type:"boolean",default:!0},displayDate:{type:"boolean",default:!0},displayExcerpt:{type:"boolean",default:!0}},supports:{align:!0,html:!1}},Za=Wa.name,$a={title:Object(Q.__)("Latest Comments"),description:Object(Q.__)("Display a list of your most recent comments."),icon:qa,keywords:[Object(Q.__)("recent comments")],example:{},edit:function(e){var t=e.attributes,r=e.setAttributes,n=t.commentsToShow,c=t.displayAvatar,o=t.displayDate,a=t.displayExcerpt;return Object(X.createElement)("div",Object(K.useBlockProps)(),Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Latest comments settings")},Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Display avatar"),checked:c,onChange:function(){return r({displayAvatar:!c})}}),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Display date"),checked:o,onChange:function(){return r({displayDate:!o})}}),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Display excerpt"),checked:a,onChange:function(){return r({displayExcerpt:!a})}}),Object(X.createElement)(me.RangeControl,{label:Object(Q.__)("Number of comments"),value:n,onChange:function(e){return r({commentsToShow:e})},min:1,max:100,required:!0}))),Object(X.createElement)(me.Disabled,null,Object(X.createElement)(Qr.a,{block:"core/latest-comments",attributes:t})))}},Ka=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12zM7 11h2V9H7v2zm0 4h2v-2H7v2zm3-4h7V9h-7v2zm0 4h7v-2h-7v2z"}));function Ya(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ja(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ya(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ya(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Qa=[{attributes:Ja(Ja({},{categories:{type:"array",items:{type:"object"}},selectedAuthor:{type:"number"},postsToShow:{type:"number",default:5},displayPostContent:{type:"boolean",default:!1},displayPostContentRadio:{type:"string",default:"excerpt"},excerptLength:{type:"number",default:55},displayAuthor:{type:"boolean",default:!1},displayPostDate:{type:"boolean",default:!1},postLayout:{type:"string",default:"list"},columns:{type:"number",default:3},order:{type:"string",default:"desc"},orderBy:{type:"string",default:"date"},displayFeaturedImage:{type:"boolean",default:!1},featuredImageAlign:{type:"string",enum:["left","center","right"]},featuredImageSizeSlug:{type:"string",default:"thumbnail"},featuredImageSizeWidth:{type:"number",default:null},featuredImageSizeHeight:{type:"number",default:null},addLinkToFeaturedImage:{type:"boolean",default:!1}}),{},{categories:{type:"string"}}),supports:{align:!0,html:!1},migrate:function(e){return Ja(Ja({},e),{},{categories:[{id:Number(e.categories)}]})},isEligible:function(e){var t=e.categories;return t&&"string"==typeof t},save:function(){return null}}],Xa=r(75),ei=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M4 4v1.5h16V4H4zm8 8.5h8V11h-8v1.5zM4 20h16v-1.5H4V20zm4-8c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2z"})),ti=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ee.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7.8 16.5H5c-.3 0-.5-.2-.5-.5v-6.2h6.8v6.7zm0-8.3H4.5V5c0-.3.2-.5.5-.5h6.2v6.7zm8.3 7.8c0 .3-.2.5-.5.5h-6.2v-6.8h6.8V19zm0-7.8h-6.8V4.5H19c.3 0 .5.2.5.5v6.2z",fillRule:"evenodd",clipRule:"evenodd"}));function ri(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ni(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ri(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ri(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ci={per_page:-1},oi={per_page:-1};var ai={name:"core/latest-posts",category:"widgets",attributes:{categories:{type:"array",items:{type:"object"}},selectedAuthor:{type:"number"},postsToShow:{type:"number",default:5},displayPostContent:{type:"boolean",default:!1},displayPostContentRadio:{type:"string",default:"excerpt"},excerptLength:{type:"number",default:55},displayAuthor:{type:"boolean",default:!1},displayPostDate:{type:"boolean",default:!1},postLayout:{type:"string",default:"list"},columns:{type:"number",default:3},order:{type:"string",default:"desc"},orderBy:{type:"string",default:"date"},displayFeaturedImage:{type:"boolean",default:!1},featuredImageAlign:{type:"string",enum:["left","center","right"]},featuredImageSizeSlug:{type:"string",default:"thumbnail"},featuredImageSizeWidth:{type:"number",default:null},featuredImageSizeHeight:{type:"number",default:null},addLinkToFeaturedImage:{type:"boolean",default:!1}},supports:{align:!0,html:!1}},ii=ai.name,li={title:Object(Q.__)("Latest Posts"),description:Object(Q.__)("Display a list of your most recent posts."),icon:Ka,keywords:[Object(Q.__)("recent posts")],example:{},edit:function(e){var t=e.attributes,r=e.setAttributes,n=t.postsToShow,c=t.order,o=t.orderBy,a=t.categories,i=t.selectedAuthor,l=t.displayFeaturedImage,s=t.displayPostContentRadio,u=t.displayPostContent,b=t.displayPostDate,m=t.displayAuthor,d=t.postLayout,p=t.columns,g=t.excerptLength,h=t.featuredImageAlign,f=t.featuredImageSizeSlug,O=t.featuredImageSizeWidth,v=t.featuredImageSizeHeight,j=t.addLinkToFeaturedImage,y=Object(de.useSelect)((function(e){var t=e("core"),r=t.getEntityRecords,l=t.getMedia,s=(0,e("core/block-editor").getSettings)(),u=s.imageSizes,b=s.imageDimensions,m=a&&a.length>0?a.map((function(e){return e.id})):[],d=r("postType","post",Object(J.pickBy)({categories:m,author:i,order:c,orderby:o,per_page:n},(function(e){return!Object(J.isUndefined)(e)})));return{defaultImageWidth:Object(J.get)(b,[f,"width"],0),defaultImageHeight:Object(J.get)(b,[f,"height"],0),imageSizeOptions:u.filter((function(e){return"full"!==e.slug})).map((function(e){var t=e.name;return{value:e.slug,label:t}})),latestPosts:Array.isArray(d)?d.map((function(e){if(!e.featured_media)return e;var t=l(e.featured_media),r=Object(J.get)(t,["media_details","sizes",f,"source_url"],null);r||(r=Object(J.get)(t,"source_url",null));var n={url:r,alt:null==t?void 0:t.alt_text};return ni(ni({},e),{},{featuredImageInfo:n})})):d}}),[f,n,c,o,a,i]),_=y.imageSizeOptions,w=y.latestPosts,k=y.defaultImageWidth,E=y.defaultImageHeight,C=Object(X.useState)([]),x=Object(be.a)(C,2),S=x[0],P=x[1],B=Object(X.useState)([]),T=Object(be.a)(B,2),z=T[0],N=T[1],M=S.reduce((function(e,t){return ni(ni({},e),{},Object(Z.a)({},t.name,t))}),{}),R=Object(X.useRef)();Object(X.useEffect)((function(){return R.current=!0,dt()({path:Object(Se.addQueryArgs)("/wp/v2/categories",ci)}).then((function(e){R.current&&P(e)})).catch((function(){R.current&&P([])})),dt()({path:Object(Se.addQueryArgs)("/wp/v2/users",oi)}).then((function(e){R.current&&N(e)})).catch((function(){R.current&&N([])})),function(){R.current=!1}}),[]);var V=Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Post content settings")},Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Post content"),checked:u,onChange:function(e){return r({displayPostContent:e})}}),u&&Object(X.createElement)(me.RadioControl,{label:Object(Q.__)("Show:"),selected:s,options:[{label:Object(Q.__)("Excerpt"),value:"excerpt"},{label:Object(Q.__)("Full post"),value:"full_post"}],onChange:function(e){return r({displayPostContentRadio:e})}}),u&&"excerpt"===s&&Object(X.createElement)(me.RangeControl,{label:Object(Q.__)("Max number of words in excerpt"),value:g,onChange:function(e){return r({excerptLength:e})},min:10,max:100})),Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Post meta settings")},Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Display author name"),checked:m,onChange:function(e){return r({displayAuthor:e})}}),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Display post date"),checked:b,onChange:function(e){return r({displayPostDate:e})}})),Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Featured image settings")},Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Display featured image"),checked:l,onChange:function(e){return r({displayFeaturedImage:e})}}),l&&Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.__experimentalImageSizeControl,{onChange:function(e){var t={};e.hasOwnProperty("width")&&(t.featuredImageSizeWidth=e.width),e.hasOwnProperty("height")&&(t.featuredImageSizeHeight=e.height),r(t)},slug:f,width:O,height:v,imageWidth:k,imageHeight:E,imageSizeOptions:_,onChangeImage:function(e){return r({featuredImageSizeSlug:e,featuredImageSizeWidth:void 0,featuredImageSizeHeight:void 0})}}),Object(X.createElement)(me.BaseControl,{className:"block-editor-image-alignment-control__row"},Object(X.createElement)(me.BaseControl.VisualLabel,null,Object(Q.__)("Image alignment")),Object(X.createElement)(K.BlockAlignmentToolbar,{value:h,onChange:function(e){return r({featuredImageAlign:e})},controls:["left","center","right"],isCollapsed:!1})),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Add link to featured image"),checked:j,onChange:function(e){return r({addLinkToFeaturedImage:e})}}))),Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Sorting and filtering")},Object(X.createElement)(me.QueryControls,Object(ue.a)({order:c,orderBy:o},{numberOfItems:n,onOrderChange:function(e){return r({order:e})},onOrderByChange:function(e){return r({orderBy:e})},onNumberOfItemsChange:function(e){return r({postsToShow:e})},categorySuggestions:M,onCategoryChange:function(e){if(!e.some((function(e){return"string"==typeof e&&!M[e]}))){var t=e.map((function(e){return"string"==typeof e?M[e]:e}));if(Object(J.includes)(t,null))return!1;r({categories:t})}},selectedCategories:a,onAuthorChange:function(e){return r({selectedAuthor:""!==e?Number(e):void 0})},authorList:z,selectedAuthorId:i})),"grid"===d&&Object(X.createElement)(me.RangeControl,{label:Object(Q.__)("Columns"),value:p,onChange:function(e){return r({columns:e})},min:2,max:H?Math.min(6,w.length):6,required:!0}))),A=Object(K.useBlockProps)(),H=Array.isArray(w)&&w.length;if(!H)return Object(X.createElement)("div",A,V,Object(X.createElement)(me.Placeholder,{icon:oc,label:Object(Q.__)("Latest Posts")},Array.isArray(w)?Object(Q.__)("No posts found."):Object(X.createElement)(me.Spinner,null)));var L=w.length>n?w.slice(0,n):w,I=[{icon:ei,title:Object(Q.__)("List view"),onClick:function(){return r({postLayout:"list"})},isActive:"list"===d},{icon:ti,title:Object(Q.__)("Grid view"),onClick:function(){return r({postLayout:"grid"})},isActive:"grid"===d}],D=Object(Xa.__experimentalGetSettings)().formats.date;return Object(X.createElement)("div",A,V,Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(me.ToolbarGroup,{controls:I})),Object(X.createElement)("ul",{className:ne()(Object(Z.a)({"wp-block-latest-posts__list":!0,"is-grid":"grid"===d,"has-dates":b,"has-author":m},"columns-".concat(p),"grid"===d))},L.map((function(e,t){var r=Object(J.invoke)(e,["title","rendered","trim"]),n=e.excerpt.rendered,c=z.find((function(t){return t.id===e.author})),o=document.createElement("div");o.innerHTML=n,n=o.textContent||o.innerText||"";var a=e.featuredImageInfo,i=(a=void 0===a?{}:a).url,d=a.alt,p=ne()(Object(Z.a)({"wp-block-latest-posts__featured-image":!0},"align".concat(h),!!h)),f=l&&i,y=f&&Object(X.createElement)("img",{src:i,alt:d,style:{maxWidth:O,maxHeight:v}}),_=g<n.trim().split(" ").length&&""===e.excerpt.raw?Object(X.createElement)(X.Fragment,null,n.trim().split(" ",g).join(" "),Object(Q.__)(" … "),Object(X.createElement)("a",{href:e.link,target:"_blank",rel:"noopener noreferrer"},Object(Q.__)("Read more"))):n;return Object(X.createElement)("li",{key:t},f&&Object(X.createElement)("div",{className:p},j?Object(X.createElement)("a",{href:e.link,target:"_blank",rel:"noreferrer noopener"},y):y),Object(X.createElement)("a",{href:e.link,target:"_blank",rel:"noreferrer noopener"},r?Object(X.createElement)(X.RawHTML,null,r):Object(Q.__)("(no title)")),m&&c&&Object(X.createElement)("div",{className:"wp-block-latest-posts__post-author"},Object(Q.sprintf)(Object(Q.__)("by %s"),c.name)),b&&e.date_gmt&&Object(X.createElement)("time",{dateTime:Object(Xa.format)("c",e.date_gmt),className:"wp-block-latest-posts__post-date"},Object(Xa.dateI18n)(D,e.date_gmt)),u&&"excerpt"===s&&Object(X.createElement)("div",{className:"wp-block-latest-posts__post-excerpt"},_),u&&"full_post"===s&&Object(X.createElement)("div",{className:"wp-block-latest-posts__post-full-content"},Object(X.createElement)(X.RawHTML,{key:"html"},e.content.raw.trim())))}))))},deprecated:Qa},si=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ee.Path,{d:"M4 8.8h8.9V7.2H4v1.6zm0 7h8.9v-1.5H4v1.5zM18 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z"})),ui=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ee.Path,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM6 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-7c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})),bi=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ee.Path,{d:"M3.8 15.8h8.9v-1.5H3.8v1.5zm0-7h8.9V7.2H3.8v1.6zm14.7-2.1V10h1V5.3l-2.2.7.3 1 .9-.3zm1.2 6.1c-.5-.6-1.2-.5-1.7-.4-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5H20v-1h-.9c.3-.6.8-1.4.9-2.1 0-.3 0-.8-.3-1.1z"})),mi=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ee.Path,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM5 6.7V10h1V5.3L3.8 6l.4 1 .8-.3zm-.4 5.7c-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5h2.7v-1h-1c.3-.6.8-1.4.9-2.1.1-.3 0-.8-.2-1.1-.5-.6-1.3-.5-1.7-.4z"})),di=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ee.Path,{d:"M20 5.5H4V4H20V5.5ZM12 12.5H4V11H12V12.5ZM20 20V18.5H4V20H20ZM15.4697 14.9697L18.4393 12L15.4697 9.03033L16.5303 7.96967L20.0303 11.4697L20.5607 12L20.0303 12.5303L16.5303 16.0303L15.4697 14.9697Z"})),pi=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ee.Path,{d:"M4 7.2v1.5h16V7.2H4zm8 8.6h8v-1.5h-8v1.5zm-4-4.6l-4 4 4 4 1-1-3-3 3-3-1-1z"})),gi=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ee.Path,{d:"M20 5.5H4V4H20V5.5ZM12 12.5H4V11H12V12.5ZM20 20V18.5H4V20H20ZM20.0303 9.03033L17.0607 12L20.0303 14.9697L18.9697 16.0303L15.4697 12.5303L14.9393 12L15.4697 11.4697L18.9697 7.96967L20.0303 9.03033Z"})),hi=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ee.Path,{d:"M4 7.2v1.5h16V7.2H4zm8 8.6h8v-1.5h-8v1.5zm-8-3.5l3 3-3 3 1 1 4-4-4-4-1 1z"})),fi=function(e){var t=e.setAttributes,r=e.reversed,n=e.start;return Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Ordered list settings")},Object(X.createElement)(me.TextControl,{label:Object(Q.__)("Start value"),type:"number",onChange:function(e){var r=parseInt(e,10);t({start:isNaN(r)?void 0:r})},value:Number.isInteger(n)?n.toString(10):"",step:"1"}),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Reverse list numbering"),checked:r||!1,onChange:function(e){t({reversed:e||void 0})}})))};function Oi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function vi(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Oi(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Oi(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ji(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function yi(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ji(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ji(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _i(e){var t=yi(yi({},e.phrasingContentSchema),{},{ul:{},ol:{attributes:["type","start","reversed"]}});return["ul","ol"].forEach((function(e){t[e].children={li:{children:t}}})),t}var wi={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph","core/heading"],transform:function(e){return Object(Y.createBlock)("core/list",{values:Object(ar.toHTMLString)({value:Object(ar.join)(e.map((function(t){var r=t.content,n=Object(ar.create)({html:r});return e.length>1?n:Object(ar.replace)(n,/\n/g,ar.__UNSTABLE_LINE_SEPARATOR)})),ar.__UNSTABLE_LINE_SEPARATOR),multilineTag:"li"}),anchor:e.anchor})}},{type:"block",blocks:["core/quote","core/pullquote"],transform:function(e){var t=e.value,r=e.anchor;return Object(Y.createBlock)("core/list",{values:Object(ar.toHTMLString)({value:Object(ar.create)({html:t,multilineTag:"p"}),multilineTag:"li"}),anchor:r})}},{type:"raw",selector:"ol,ul",schema:function(e){return{ol:_i(e).ol,ul:_i(e).ul}},transform:function(e){var t={ordered:"OL"===e.nodeName,anchor:""===e.id?void 0:e.id};if(t.ordered){var r=e.getAttribute("type");r&&(t.type=r),null!==e.getAttribute("reversed")&&(t.reversed=!0);var n=parseInt(e.getAttribute("start"),10);isNaN(n)||1===n&&!t.reversed||(t.start=n)}return Object(Y.createBlock)("core/list",yi(yi({},Object(Y.getBlockAttributes)("core/list",e.outerHTML)),t))}}].concat(Object(W.a)(["*","-"].map((function(e){return{type:"prefix",prefix:e,transform:function(e){return Object(Y.createBlock)("core/list",{values:"<li>".concat(e,"</li>")})}}}))),Object(W.a)(["1.","1)"].map((function(e){return{type:"prefix",prefix:e,transform:function(e){return Object(Y.createBlock)("core/list",{ordered:!0,values:"<li>".concat(e,"</li>")})}}})))),to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.values;return Object(ar.split)(Object(ar.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),ar.__UNSTABLE_LINE_SEPARATOR).map((function(e){return Object(Y.createBlock)("core/paragraph",{content:Object(ar.toHTMLString)({value:e})})}))}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.values;return Object(ar.split)(Object(ar.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),ar.__UNSTABLE_LINE_SEPARATOR).map((function(e){return Object(Y.createBlock)("core/heading",{content:Object(ar.toHTMLString)({value:e})})}))}},{type:"block",blocks:["core/quote"],transform:function(e){var t=e.values,r=e.anchor;return Object(Y.createBlock)("core/quote",{value:Object(ar.toHTMLString)({value:Object(ar.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),multilineTag:"p"}),anchor:r})}},{type:"block",blocks:["core/pullquote"],transform:function(e){var t=e.values,r=e.anchor;return Object(Y.createBlock)("core/pullquote",{value:Object(ar.toHTMLString)({value:Object(ar.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),multilineTag:"p"}),anchor:r})}}]};function ki(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ei(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ki(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ki(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Ci={apiVersion:2,name:"core/list",category:"text",attributes:{ordered:{type:"boolean",default:!1},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:""},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"}},supports:{anchor:!0,className:!1,color:{gradients:!0},__unstablePasteTextInline:!0}},xi=Ci.name,Si={title:Object(Q.__)("List"),description:Object(Q.__)("Create a bulleted or numbered list."),icon:ei,keywords:[Object(Q.__)("bullet list"),Object(Q.__)("ordered list"),Object(Q.__)("numbered list")],example:{attributes:{values:"<li>Alice.</li><li>The White Rabbit.</li><li>The Cheshire Cat.</li><li>The Mad Hatter.</li><li>The Queen of Hearts.</li>"}},transforms:wi,merge:function(e,t){var r=t.values;return r&&"<li></li>"!==r?Ei(Ei({},e),{},{values:e.values+r}):e},edit:function(e){var t=e.attributes,r=e.setAttributes,n=e.mergeBlocks,c=e.onReplace,o=e.isSelected,a=t.ordered,i=t.values,l=t.type,s=t.reversed,u=t.start,b=a?"ol":"ul",m=Object(de.useSelect)((function(e){return!!e("core/block-editor").getSettings().isRTL}),[]),d=Object(K.useBlockProps)();return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.RichText,Object(ue.a)({identifier:"values",multiline:"li",__unstableMultilineRootTag:b,tagName:b,onChange:function(e){return r({values:e})},value:i,placeholder:Object(Q.__)("Write list…"),onMerge:n,onSplit:function(e){return Object(Y.createBlock)(xi,vi(vi({},t),{},{values:e}))},__unstableOnSplitMiddle:function(){return Object(Y.createBlock)("core/paragraph")},onReplace:c,onRemove:function(){return c([])},start:u,reversed:s,type:l},d),(function(e){var t=e.value,n=e.onChange,c=e.onFocus;return Object(X.createElement)(X.Fragment,null,o&&Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.RichTextShortcut,{type:"primary",character:"[",onUse:function(){n(Object(ar.__unstableOutdentListItems)(t))}}),Object(X.createElement)(K.RichTextShortcut,{type:"primary",character:"]",onUse:function(){n(Object(ar.__unstableIndentListItems)(t,{type:b}))}}),Object(X.createElement)(K.RichTextShortcut,{type:"primary",character:"m",onUse:function(){n(Object(ar.__unstableIndentListItems)(t,{type:b}))}}),Object(X.createElement)(K.RichTextShortcut,{type:"primaryShift",character:"m",onUse:function(){n(Object(ar.__unstableOutdentListItems)(t))}})),Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(me.ToolbarGroup,{controls:[{icon:m?si:ui,title:Object(Q.__)("Convert to unordered list"),isActive:Object(ar.__unstableIsActiveListType)(t,"ul",b),onClick:function(){n(Object(ar.__unstableChangeListType)(t,{type:"ul"})),c(),Object(ar.__unstableIsListRootSelected)(t)&&r({ordered:!1})}},{icon:m?bi:mi,title:Object(Q.__)("Convert to ordered list"),isActive:Object(ar.__unstableIsActiveListType)(t,"ol",b),onClick:function(){n(Object(ar.__unstableChangeListType)(t,{type:"ol"})),c(),Object(ar.__unstableIsListRootSelected)(t)&&r({ordered:!0})}},{icon:m?di:pi,title:Object(Q.__)("Outdent list item"),shortcut:Object(Q._x)("Backspace","keyboard key"),isDisabled:!Object(ar.__unstableCanOutdentListItems)(t),onClick:function(){n(Object(ar.__unstableOutdentListItems)(t)),c()}},{icon:m?gi:hi,title:Object(Q.__)("Indent list item"),shortcut:Object(Q._x)("Space","keyboard key"),isDisabled:!Object(ar.__unstableCanIndentListItems)(t),onClick:function(){n(Object(ar.__unstableIndentListItems)(t,{type:b})),c()}}]})))})),a&&Object(X.createElement)(fi,{setAttributes:r,ordered:a,reversed:s,start:u}))},save:function(e){var t=e.attributes,r=t.ordered,n=t.values,c=t.type,o=t.reversed,a=t.start,i=r?"ol":"ul";return Object(X.createElement)(i,K.useBlockProps.save({type:c,reversed:o,start:a}),Object(X.createElement)(K.RichText.Content,{value:n,multiline:"li"}))}};var Pi=Object(de.withDispatch)((function(e,t){var r=t.clientId,n=t.attributes,c=e("core/block-editor").replaceBlock;return{convertToHTML:function(){c(r,Object(Y.createBlock)("core/html",{content:n.originalUndelimitedContent}))}}}))((function(e){var t,r=e.attributes,n=e.convertToHTML,c=r.originalName,o=r.originalUndelimitedContent,a=!!o,i=Object(Y.getBlockType)("core/html"),l=[];return a&&i?(t=Object(Q.sprintf)(Object(Q.__)('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.'),c),l.push(Object(X.createElement)(me.Button,{key:"convert",onClick:n,isPrimary:!0},Object(Q.__)("Keep as HTML")))):t=Object(Q.sprintf)(Object(Q.__)('Your site doesn’t include support for the "%s" block. You can leave this block intact or remove it entirely.'),c),Object(X.createElement)("div",Object(K.useBlockProps)(),Object(X.createElement)(K.Warning,{actions:l},t),Object(X.createElement)(X.RawHTML,null,o))}));var Bi={apiVersion:2,name:"core/missing",category:"text",attributes:{originalName:{type:"string"},originalUndelimitedContent:{type:"string"},originalContent:{type:"string",source:"html"}},supports:{className:!1,customClassName:!1,inserter:!1,html:!1,reusable:!1}},Ti=Bi.name,zi={name:Ti,title:Object(Q.__)("Unsupported"),description:Object(Q.__)("Your site doesn’t include support for this block."),__experimentalLabel:function(e,t){if("accessibility"===t.context){var r=e.originalName,n=r?Object(Y.getBlockType)(r):void 0;return n?n.settings.title||r:""}},edit:Pi,save:function(e){var t=e.attributes;return Object(X.createElement)(X.RawHTML,null,t.originalContent)}},Ni=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M4 9v1.5h16V9H4zm12 5.5h4V13h-4v1.5zm-6 0h4V13h-4v1.5zm-6 0h4V13H4v1.5z"})),Mi=Object(Q.__)("Read more");var Ri={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,r=t.customText,n=t.noTeaser,c={};return r&&(c.customText=r),""===n&&(c.noTeaser=!0),Object(Y.createBlock)("core/more",c)}}]},Vi={apiVersion:2,name:"core/more",category:"design",attributes:{customText:{type:"string"},noTeaser:{type:"boolean",default:!1}},supports:{customClassName:!1,className:!1,html:!1,multiple:!1}},Ai=Vi.name,Hi={title:Object(Q._x)("More","block name"),description:Object(Q.__)("Content before this block will be shown in the excerpt on your archives page."),keywords:[Object(Q.__)("read more")],icon:Ni,example:{},__experimentalLabel:function(e,t){if("accessibility"===t.context)return e.customText},transforms:Ri,edit:function(e){var t=e.attributes,r=t.customText,n=t.noTeaser,c=e.insertBlocksAfter,o=e.setAttributes,a={width:"".concat((r||Mi).length+1.2,"em")};return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,null,Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Hide the excerpt on the full content page"),checked:!!n,onChange:function(){return o({noTeaser:!n})},help:function(e){return e?Object(Q.__)("The excerpt is hidden."):Object(Q.__)("The excerpt is visible.")}}))),Object(X.createElement)("div",Object(K.useBlockProps)(),Object(X.createElement)("div",{className:"wp-block-more"},Object(X.createElement)("input",{"aria-label":Object(Q.__)("Read more link text"),type:"text",value:r,placeholder:Mi,onChange:function(e){o({customText:""!==e.target.value?e.target.value:void 0})},onKeyDown:function(e){e.keyCode===It.ENTER&&c([Object(Y.createBlock)(Object(Y.getDefaultBlockName)())])},style:a}))))},save:function(e){var t=e.attributes,r=t.customText,n=t.noTeaser,c=r?"\x3c!--more ".concat(r,"--\x3e"):"\x3c!--more--\x3e",o=n?"\x3c!--noteaser--\x3e":"";return Object(X.createElement)(X.RawHTML,null,Object(J.compact)([c,o]).join("\n"))}},Li=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ee.Path,{d:"M7.8 6c0-.7.6-1.2 1.2-1.2h6c.7 0 1.2.6 1.2 1.2v3h1.5V6c0-1.5-1.2-2.8-2.8-2.8H9C7.5 3.2 6.2 4.5 6.2 6v3h1.5V6zm8.4 11c0 .7-.6 1.2-1.2 1.2H9c-.7 0-1.2-.6-1.2-1.2v-3H6.2v3c0 1.5 1.2 2.8 2.8 2.8h6c1.5 0 2.8-1.2 2.8-2.8v-3h-1.5v3zM4 11v1h16v-1H4z"}));var Ii={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:function(e){return e.dataset&&"core/nextpage"===e.dataset.block},transform:function(){return Object(Y.createBlock)("core/nextpage",{})}}]},Di={apiVersion:2,name:"core/nextpage",category:"design",parent:["core/post-content"],supports:{customClassName:!1,className:!1,html:!1}},Gi=Di.name,Fi={title:Object(Q.__)("Page Break"),description:Object(Q.__)("Separate your content into a multi-page experience."),icon:Li,keywords:[Object(Q.__)("next page"),Object(Q.__)("pagination")],example:{},transforms:Ii,edit:function(){return Object(X.createElement)("div",Object(K.useBlockProps)(),Object(X.createElement)("div",{className:"wp-block-nextpage"},Object(X.createElement)("span",null,Object(Q.__)("Page break"))))},save:function(){return Object(X.createElement)(X.RawHTML,null,"\x3c!--nextpage--\x3e")}},Ui=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12zM7 16.5h6V15H7v1.5zm4-4h6V11h-6v1.5zM9 11H7v1.5h2V11zm6 5.5h2V15h-2v1.5z"}));var qi={from:[{type:"block",blocks:["core/code","core/paragraph"],transform:function(e){var t=e.content,r=e.anchor;return Object(Y.createBlock)("core/preformatted",{content:t,anchor:r})}},{type:"raw",isMatch:function(e){return"PRE"===e.nodeName&&!(1===e.children.length&&"CODE"===e.firstChild.nodeName)},schema:function(e){return{pre:{children:e.phrasingContentSchema}}}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(Y.createBlock)("core/paragraph",e)}},{type:"block",blocks:["core/code"],transform:function(e){return Object(Y.createBlock)("core/code",e)}}]},Wi={apiVersion:2,name:"core/preformatted",category:"text",attributes:{content:{type:"string",source:"html",selector:"pre",default:"",__unstablePreserveWhiteSpace:!0}},supports:{anchor:!0}},Zi=Wi.name,$i={title:Object(Q.__)("Preformatted"),description:Object(Q.__)("Add text that respects your spacing and tabs, and also allows styling."),icon:Ui,example:{attributes:{content:Object(Q.__)("EXT. XANADU - FAINT DAWN - 1940 (MINIATURE)\nWindow, very small in the distance, illuminated.\nAll 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:qi,edit:function(e){var t=e.attributes,r=e.mergeBlocks,n=e.setAttributes,c=t.content,o=Object(K.useBlockProps)();return Object(X.createElement)(K.RichText,Object(ue.a)({tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:c,onChange:function(e){n({content:e})},placeholder:Object(Q.__)("Write preformatted text…"),onMerge:r},o))},save:function(e){var t=e.attributes.content;return Object(X.createElement)("pre",K.useBlockProps.save(),Object(X.createElement)(K.RichText.Content,{value:t}))},merge:function(e,t){return{content:e.content+t.content}}},Ki=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M18 8H6c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-4c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v4zM4 4v1.5h16V4H4zm0 16h16v-1.5H4V20z"})),Yi="is-style-".concat("solid-color");function Ji(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Qi(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ji(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ji(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Xi={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"}};function el(e){if(e){var t=e.match(/border-color:([^;]+)[;]?/);return t&&t[1]?t[1]:void 0}}var tl=[{attributes:Qi(Qi({},Xi),{},{figureStyle:{source:"attribute",selector:"figure",attribute:"style"}}),save:function(e){var t,r,n=e.attributes,c=n.mainColor,o=n.customMainColor,a=n.textColor,i=n.customTextColor,l=n.value,s=n.citation,u=n.className,b=n.figureStyle;if(Object(J.includes)(u,Yi)){var m=Object(K.getColorClassName)("background-color",c);t=ne()(Object(Z.a)({"has-background":m||o},m,m)),r={backgroundColor:m?void 0:o}}else if(o)r={borderColor:o};else if(c){r={borderColor:el(b)}}var d=Object(K.getColorClassName)("color",a),p=(a||i)&&ne()("has-text-color",Object(Z.a)({},d,d)),g=d?void 0:{color:i};return Object(X.createElement)("figure",{className:t,style:r},Object(X.createElement)("blockquote",{className:p,style:g},Object(X.createElement)(K.RichText.Content,{value:l,multiline:!0}),!K.RichText.isEmpty(s)&&Object(X.createElement)(K.RichText.Content,{tagName:"cite",value:s})))},migrate:function(e){var t=e.className,r=e.figureStyle,n=e.mainColor,c=Object(or.a)(e,["className","figureStyle","mainColor"]);if(!Object(J.includes)(t,Yi)&&n&&r){var o=el(r);if(o)return Qi(Qi({},c),{},{className:t,customMainColor:o})}return Qi({className:t,mainColor:n},c)}},{attributes:Xi,save:function(e){var t,r,n=e.attributes,c=n.mainColor,o=n.customMainColor,a=n.textColor,i=n.customTextColor,l=n.value,s=n.citation,u=n.className;if(Object(J.includes)(u,Yi))(t=Object(K.getColorClassName)("background-color",c))||(r={backgroundColor:o});else if(o)r={borderColor:o};else if(c){var b=Object(J.get)(Object(de.select)("core/block-editor").getSettings(),["colors"],[]);r={borderColor:Object(K.getColorObjectByAttributeValues)(b,c).color}}var m=Object(K.getColorClassName)("color",a),d=a||i?ne()("has-text-color",Object(Z.a)({},m,m)):void 0,p=m?void 0:{color:i};return Object(X.createElement)("figure",{className:t,style:r},Object(X.createElement)("blockquote",{className:d,style:p},Object(X.createElement)(K.RichText.Content,{value:l,multiline:!0}),!K.RichText.isEmpty(s)&&Object(X.createElement)(K.RichText.Content,{tagName:"cite",value:s})))}},{attributes:Qi({},Xi),save:function(e){var t=e.attributes,r=t.value,n=t.citation;return Object(X.createElement)("blockquote",null,Object(X.createElement)(K.RichText.Content,{value:r,multiline:!0}),!K.RichText.isEmpty(n)&&Object(X.createElement)(K.RichText.Content,{tagName:"cite",value:n}))}},{attributes:Qi(Qi({},Xi),{},{citation:{type:"string",source:"html",selector:"footer"},align:{type:"string",default:"none"}}),save:function(e){var t=e.attributes,r=t.value,n=t.citation,c=t.align;return Object(X.createElement)("blockquote",{className:"align".concat(c)},Object(X.createElement)(K.RichText.Content,{value:r,multiline:!0}),!K.RichText.isEmpty(n)&&Object(X.createElement)(K.RichText.Content,{tagName:"footer",value:n}))}}];function rl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function nl(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rl(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rl(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var cl=Object(K.withColors)({mainColor:"background-color",textColor:"color"})((function(e){var t=e.colorUtils,r=e.textColor,n=e.attributes,c=n.value,o=n.citation,a=e.setAttributes,i=e.setTextColor,l=e.setMainColor,s=e.mainColor,u=e.isSelected,b=e.insertBlocksAfter,m=Object(X.useRef)(!1),d=Object(K.useBlockProps)(),p=d.style,g=void 0===p?{}:p,h=d.className,f=Object(J.includes)(h,Yi),O=nl(nl({},d),{},{className:ne()(h,Object(Z.a)({"has-background":f&&s.color},s.class,f&&s.class)),style:nl(nl({},g),{},f?{backgroundColor:s.color}:{borderColor:s.color})});return Object(X.useEffect)((function(){s&&!f&&a({mainColor:void 0,customMainColor:s.color})}),[f,s]),Object(X.createElement)(X.Fragment,null,Object(X.createElement)("figure",O,Object(X.createElement)("blockquote",{style:{color:r.color},className:r.color&&ne()("has-text-color",Object(Z.a)({},r.class,r.class))},Object(X.createElement)(K.RichText,{identifier:"value",multiline:!0,value:c,onChange:function(e){return a({value:e})},placeholder:Object(Q.__)("Write quote…"),textAlign:"center"}),(!K.RichText.isEmpty(o)||u)&&Object(X.createElement)(K.RichText,{identifier:"citation",value:o,placeholder:Object(Q.__)("Write citation…"),onChange:function(e){return a({citation:e})},className:"wp-block-pullquote__citation",__unstableMobileNoFocusOnMount:!0,textAlign:"center",__unstableOnSplitAtEnd:function(){return b(Object(Y.createBlock)("core/paragraph"))}}))),"web"===X.Platform.OS&&Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(K.PanelColorSettings,{title:Object(Q.__)("Color settings"),colorSettings:[{value:s.color,onChange:function(e){var n=!r.color||m.current,c=f&&n;f?l(e):a({customMainColor:e}),c&&(e?(m.current=!0,i(t.getMostReadableColor(e))):m.current&&(m.current=!1,i()))},label:Object(Q.__)("Main color")},{value:r.color,onChange:function(e){i(e),m.current=!1},label:Object(Q.__)("Text color")}]},f&&Object(X.createElement)(K.ContrastChecker,Object(ue.a)({textColor:r.color,backgroundColor:s.color},{isLargeText:!1})))))}));function ol(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function al(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ol(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ol(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var il={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:function(e){return Object(Y.createBlock)("core/pullquote",{value:Object(ar.toHTMLString)({value:Object(ar.join)(e.map((function(e){var t=e.content;return Object(ar.create)({html:t})})),"\u2028"),multilineTag:"p"}),anchor:e.anchor})}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.content,r=e.anchor;return Object(Y.createBlock)("core/pullquote",{value:"<p>".concat(t,"</p>"),anchor:r})}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.value,r=e.citation,n=[];return t&&"<p></p>"!==t&&n.push.apply(n,Object(W.a)(Object(ar.split)(Object(ar.create)({html:t,multilineTag:"p"}),"\u2028").map((function(e){return Object(Y.createBlock)("core/paragraph",{content:Object(ar.toHTMLString)({value:e})})})))),r&&"<p></p>"!==r&&n.push(Object(Y.createBlock)("core/paragraph",{content:r})),0===n.length?Object(Y.createBlock)("core/paragraph",{content:""}):n}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.value,r=e.citation,n=Object(or.a)(e,["value","citation"]);if("<p></p>"===t)return Object(Y.createBlock)("core/heading",{content:r});var c=Object(ar.split)(Object(ar.create)({html:t,multilineTag:"p"}),"\u2028"),o=Object(Y.createBlock)("core/heading",{content:Object(ar.toHTMLString)({value:c[0]})});if(!r&&1===c.length)return o;var a=c.slice(1);return[o,Object(Y.createBlock)("core/pullquote",al(al({},n),{},{citation:r,value:Object(ar.toHTMLString)({value:a.length?Object(ar.join)(c.slice(1),"\u2028"):Object(ar.create)(),multilineTag:"p"})}))]}}]},ll={apiVersion:2,name:"core/pullquote",category:"text",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"}},supports:{anchor:!0,align:["left","right","wide","full"]}},sl=ll.name,ul={title:Object(Q.__)("Pullquote"),description:Object(Q.__)("Give special visual emphasis to a quote from your text."),icon:Ki,example:{attributes:{value:"<p>"+Object(Q.__)("One of the hardest things to do in technology is disrupt yourself.")+"</p>",citation:Object(Q.__)("Matt Mullenweg")}},styles:[{name:"default",label:Object(Q._x)("Default","block style"),isDefault:!0},{name:"solid-color",label:Object(Q.__)("Solid color")}],transforms:il,edit:cl,save:function(e){var t,r,n=e.attributes,c=n.mainColor,o=n.customMainColor,a=n.textColor,i=n.customTextColor,l=n.value,s=n.citation,u=n.className;if(Object(J.includes)(u,Yi)){var b=Object(K.getColorClassName)("background-color",c);t=ne()(Object(Z.a)({"has-background":b||o},b,b)),r={backgroundColor:b?void 0:o}}else o&&(r={borderColor:o});var m=Object(K.getColorClassName)("color",a),d=(a||i)&&ne()("has-text-color",Object(Z.a)({},m,m)),p=m?void 0:{color:i};return Object(X.createElement)("figure",K.useBlockProps.save({className:t,style:r}),Object(X.createElement)("blockquote",{className:d,style:p},Object(X.createElement)(K.RichText.Content,{value:l,multiline:!0}),!K.RichText.isEmpty(s)&&Object(X.createElement)(K.RichText.Content,{tagName:"cite",value:s})))},deprecated:tl},bl=r(20),ml=r.n(bl),dl=r(45);function pl(e){var t=e.isEditDisabled,r=e.isEditing,n=e.isSaving,c=e.onChangeTitle,o=e.onEdit,a=e.onSave,i=e.title,l=Object(xe.useInstanceId)(pl),s=Object(X.useRef)(),u=Object(X.useRef)(),b=Object(xe.usePrevious)(r),m=Object(xe.usePrevious)(n);return Object(X.useEffect)((function(){!b&&r&&s.current.select()}),[r]),Object(X.useEffect)((function(){!b&&!m||r||n||u.current.focus()}),[r,n]),Object(X.createElement)(X.Fragment,null,!r&&!n&&Object(X.createElement)("div",{className:"reusable-block-edit-panel"},Object(X.createElement)("b",{className:"reusable-block-edit-panel__info"},i),Object(X.createElement)(me.Button,{ref:u,isSecondary:!0,className:"reusable-block-edit-panel__button",disabled:t,onClick:o},Object(Q.__)("Edit"))),(r||n)&&Object(X.createElement)("form",{className:"reusable-block-edit-panel",onSubmit:function(e){e.preventDefault(),a()}},Object(X.createElement)("label",{htmlFor:"reusable-block-edit-panel__title-".concat(l),className:"reusable-block-edit-panel__label"},Object(Q.__)("Name:")),Object(X.createElement)("input",{ref:s,type:"text",disabled:n,className:"reusable-block-edit-panel__title",value:i,onChange:function(e){c(e.target.value)},id:"reusable-block-edit-panel__title-".concat(l)}),Object(X.createElement)(me.Button,{type:"submit",isSecondary:!0,isBusy:n,disabled:!i||n,className:"reusable-block-edit-panel__button"},Object(Q.__)("Save"))))}var gl={apiVersion:2,name:"core/block",category:"reusable",attributes:{ref:{type:"number"}},supports:{customClassName:!1,html:!1,inserter:!1}},hl=gl.name,fl={title:Object(Q.__)("Reusable Block"),description:Object(Q.__)("Create and save content to reuse across your site. Update the block, and the changes apply everywhere it’s used."),edit:function(e){var t=e.attributes.ref,r=e.clientId,n=e.isSelected,c=["postType","wp_block",t],o=Object(de.useSelect)((function(e){var n,o;return{reusableBlock:(n=e("core")).getEditedEntityRecord.apply(n,c),hasResolved:e("core").hasFinishedResolution("getEditedEntityRecord",c),isSaving:(o=e("core")).isSavingEntityRecord.apply(o,c),canUserUpdate:e("core").canUser("update","blocks",t),isEditing:e("core/reusable-blocks").__experimentalIsEditingReusableBlock(r),settings:e("core/block-editor").getSettings()}}),[t,r]),a=o.reusableBlock,i=o.hasResolved,l=o.isEditing,s=o.isSaving,u=o.canUserUpdate,b=o.settings,m=Object(de.useDispatch)("core"),d=m.editEntityRecord,p=m.saveEditedEntityRecord,g=Object(de.useDispatch)("core/reusable-blocks").__experimentalSetEditingReusableBlock,h=Object(X.useCallback)((function(e){g(r,e)}),[r]),f=Object(de.useDispatch)("core/reusable-blocks").__experimentalConvertBlockToStatic,O=Object(de.useDispatch)("core/notices"),v=O.createSuccessNotice,j=O.createErrorNotice,y=Object(X.useCallback)(Object(dl.a)(ml.a.mark((function e(){return ml.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,p.apply(void 0,c);case 3:v(Object(Q.__)("Block updated."),{type:"snackbar"}),e.next=9;break;case 6:e.prev=6,e.t0=e.catch(0),j(e.t0.message,{type:"snackbar"});case 9:case"end":return e.stop()}}),e,null,[[0,6]])}))),c),_=Object($.useEntityBlockEditor)("postType","wp_block",{id:t}),w=Object(be.a)(_,3),k=w[0],E=w[1],C=w[2],x=Object(K.useBlockProps)();if(!i)return Object(X.createElement)("div",x,Object(X.createElement)(me.Placeholder,null,Object(X.createElement)(me.Spinner,null)));if(!a)return Object(X.createElement)("div",x,Object(X.createElement)(me.Placeholder,null,Object(Q.__)("Block has been deleted or is unavailable.")));var S=Object(X.createElement)(K.BlockEditorProvider,{value:k,onInput:E,onChange:C,settings:b},Object(X.createElement)(K.WritingFlow,null,Object(X.createElement)(K.BlockList,null)));return l||(S=Object(X.createElement)(me.Disabled,null,S)),Object(X.createElement)("div",x,Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(me.ToolbarGroup,null,Object(X.createElement)(me.ToolbarButton,{onClick:function(){return f(r)}},Object(Q.__)("Convert to regular blocks")))),Object(X.createElement)("div",{className:"block-library-block__reusable-block-container"},(n||l)&&Object(X.createElement)(pl,{isEditing:l,title:a.title,isSaving:s,isEditDisabled:!u,onEdit:function(){return h(!0)},onChangeTitle:function(e){return d.apply(void 0,c.concat([{title:e}]))},onSave:function(){y(),h(!1)}}),S))}},Ol=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ee.Path,{d:"M5 10.2h-.8v1.5H5c1.9 0 3.8.8 5.1 2.1 1.4 1.4 2.1 3.2 2.1 5.1v.8h1.5V19c0-2.3-.9-4.5-2.6-6.2-1.6-1.6-3.8-2.6-6.1-2.6zm10.4-1.6C12.6 5.8 8.9 4.2 5 4.2h-.8v1.5H5c3.5 0 6.9 1.4 9.4 3.9s3.9 5.8 3.9 9.4v.8h1.5V19c0-3.9-1.6-7.6-4.4-10.4zM4 20h3v-3H4v3z"}));var vl={apiVersion:2,name:"core/rss",category:"widgets",attributes:{columns:{type:"number",default:2},blockLayout:{type:"string",default:"list"},feedURL:{type:"string",default:""},itemsToShow:{type:"number",default:5},displayExcerpt:{type:"boolean",default:!1},displayAuthor:{type:"boolean",default:!1},displayDate:{type:"boolean",default:!1},excerptLength:{type:"number",default:55}},supports:{align:!0,html:!1}},jl=vl.name,yl={title:Object(Q.__)("RSS"),description:Object(Q.__)("Display entries from any RSS or Atom feed."),icon:Ol,keywords:[Object(Q.__)("atom"),Object(Q.__)("feed")],example:{attributes:{feedURL:"https://wordpress.org"}},edit:function(e){var t=e.attributes,r=e.setAttributes,n=Object(X.useState)(!t.feedURL),c=Object(be.a)(n,2),o=c[0],a=c[1],i=t.blockLayout,l=t.columns,s=t.displayAuthor,u=t.displayDate,b=t.displayExcerpt,m=t.excerptLength,d=t.feedURL,p=t.itemsToShow;function g(e){return function(){var n=t[e];r(Object(Z.a)({},e,!n))}}var h=Object(K.useBlockProps)();if(o)return Object(X.createElement)("div",h,Object(X.createElement)(me.Placeholder,{icon:Ol,label:"RSS"},Object(X.createElement)("form",{onSubmit:function(e){e.preventDefault(),d&&a(!1)},className:"wp-block-rss__placeholder-form"},Object(X.createElement)(me.TextControl,{placeholder:Object(Q.__)("Enter URL here…"),value:d,onChange:function(e){return r({feedURL:e})},className:"wp-block-rss__placeholder-input"}),Object(X.createElement)(me.Button,{isPrimary:!0,type:"submit"},Object(Q.__)("Use URL")))));var f=[{icon:Tr.a,title:Object(Q.__)("Edit RSS URL"),onClick:function(){return a(!0)}},{icon:ei,title:Object(Q.__)("List view"),onClick:function(){return r({blockLayout:"list"})},isActive:"list"===i},{icon:ti,title:Object(Q.__)("Grid view"),onClick:function(){return r({blockLayout:"grid"})},isActive:"grid"===i}];return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(me.ToolbarGroup,{controls:f})),Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("RSS settings")},Object(X.createElement)(me.RangeControl,{label:Object(Q.__)("Number of items"),value:p,onChange:function(e){return r({itemsToShow:e})},min:1,max:10,required:!0}),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Display author"),checked:s,onChange:g("displayAuthor")}),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Display date"),checked:u,onChange:g("displayDate")}),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Display excerpt"),checked:b,onChange:g("displayExcerpt")}),b&&Object(X.createElement)(me.RangeControl,{label:Object(Q.__)("Max number of words in excerpt"),value:m,onChange:function(e){return r({excerptLength:e})},min:10,max:100,required:!0}),"grid"===i&&Object(X.createElement)(me.RangeControl,{label:Object(Q.__)("Columns"),value:l,onChange:function(e){return r({columns:e})},min:2,max:6,required:!0}))),Object(X.createElement)("div",h,Object(X.createElement)(me.Disabled,null,Object(X.createElement)(Qr.a,{block:"core/rss",attributes:t}))))}},_l=Object(X.createElement)(me.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(me.Rect,{x:"7",y:"10",width:"10",height:"4",rx:"1",fill:"currentColor"})),wl=Object(X.createElement)(me.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(me.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"9.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor","stroke-width":"1.5",fill:"none"}),Object(X.createElement)(me.Rect,{x:"16",y:"10",width:"4",height:"4",rx:"1",fill:"currentColor"})),kl=Object(X.createElement)(me.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(me.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"14.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor","stroke-width":"1.5",fill:"none"}),Object(X.createElement)(me.Rect,{x:"14",y:"10",width:"4",height:"4",rx:"1",fill:"currentColor"})),El=Object(X.createElement)(me.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(me.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"14.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor",fill:"none","stroke-width":"1.5"})),Cl=Object(X.createElement)(me.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(me.Rect,{x:"4.75",y:"7.75",width:"14.5",height:"8.5",rx:"1.25",stroke:"currentColor",fill:"none","stroke-width":"1.5"}),Object(X.createElement)(me.Rect,{x:"8",y:"11",width:"8",height:"2",fill:"currentColor"})),xl=Object(X.createElement)(me.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(me.Rect,{x:"4.75",y:"17.25",width:"5.5",height:"14.5",transform:"rotate(-90 4.75 17.25)",stroke:"currentColor",fill:"none","stroke-width":"1.5"}),Object(X.createElement)(me.Rect,{x:"4",y:"7",width:"10",height:"2",fill:"currentColor"})),Sl=[{value:"%",label:"%",default:50},{value:"px",label:"px",default:350}];var Pl=[{name:"default",isDefault:!0,attributes:{buttonText:Object(Q.__)("Search"),label:Object(Q.__)("Search")}}],Bl={apiVersion:2,name:"core/search",category:"widgets",attributes:{label:{type:"string"},showLabel:{type:"boolean",default:!0},placeholder:{type:"string",default:""},width:{type:"number"},widthUnit:{type:"string"},buttonText:{type:"string"},buttonPosition:{type:"string",default:"button-outside"},buttonUseIcon:{type:"boolean",default:!1}},supports:{align:["left","center","right"],html:!1}},Tl=Bl.name,zl={title:Object(Q.__)("Search"),description:Object(Q.__)("Help visitors find your content."),icon:ut.a,keywords:[Object(Q.__)("find")],example:{},variations:Pl,edit:function(e){var t=e.className,r=e.attributes,n=e.setAttributes,c=e.toggleSelection,o=e.isSelected,a=r.label,i=r.showLabel,l=r.placeholder,s=r.width,u=r.widthUnit,b=r.align,m=r.buttonText,d=r.buttonPosition,p=r.buttonUseIcon,g=Object(xe.useInstanceId)(K.__experimentalUnitControl),h="wp-block-search__width-".concat(g),f=function(){return Object(X.createElement)("input",{className:"wp-block-search__input","aria-label":Object(Q.__)("Optional placeholder text"),placeholder:l?void 0:Object(Q.__)("Optional placeholder…"),value:l,onChange:function(e){return n({placeholder:e.target.value})}})},O=function(){return Object(X.createElement)(X.Fragment,null,p&&Object(X.createElement)(me.Button,{icon:ut.a,className:"wp-block-search__button"}),!p&&Object(X.createElement)(K.RichText,{className:"wp-block-search__button","aria-label":Object(Q.__)("Button text"),placeholder:Object(Q.__)("Add button text…"),withoutInteractiveFormatting:!0,value:m,onChange:function(e){return n({buttonText:e})}}))},v=Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(me.ToolbarGroup,null,Object(X.createElement)(me.ToolbarButton,{title:Object(Q.__)("Toggle search label"),icon:xl,onClick:function(){n({showLabel:!i})},className:i?"is-pressed":void 0}),Object(X.createElement)(me.DropdownMenu,{icon:function(){switch(d){case"button-inside":return kl;case"button-outside":return wl;case"no-button":return El;case"button-only":return _l}}(),label:Object(Q.__)("Change button position")},(function(e){var t=e.onClose;return Object(X.createElement)(me.MenuGroup,{className:"wp-block-search__button-position-menu"},Object(X.createElement)(me.MenuItem,{icon:El,onClick:function(){n({buttonPosition:"no-button"}),t()}},Object(Q.__)("No Button")),Object(X.createElement)(me.MenuItem,{icon:wl,onClick:function(){n({buttonPosition:"button-outside"}),t()}},Object(Q.__)("Button Outside")),Object(X.createElement)(me.MenuItem,{icon:kl,onClick:function(){n({buttonPosition:"button-inside"}),t()}},Object(Q.__)("Button Inside")),Object(X.createElement)(me.MenuItem,{icon:_l,onClick:function(){n({buttonPosition:"button-only"}),t()}},Object(Q.__)("Button Only")))})),"no-button"!==d&&Object(X.createElement)(me.ToolbarButton,{title:Object(Q.__)("Use button with icon"),icon:Cl,onClick:function(){n({buttonUseIcon:!p})},className:p?"is-pressed":void 0}))),Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Display Settings")},Object(X.createElement)(me.BaseControl,{label:Object(Q.__)("Width"),id:h},Object(X.createElement)(K.__experimentalUnitControl,{id:h,min:"".concat(220).concat("px"),onChange:function(e){var t="%"===u&&parseInt(e,10)>100?100:e;n({width:parseInt(t,10)})},onUnitChange:function(e){n({width:"%"===e?50:350,widthUnit:e})},style:{maxWidth:80},value:"".concat(s).concat(u),unit:u,units:Sl}),Object(X.createElement)(me.ButtonGroup,{className:"wp-block-search__components-button-group","aria-label":Object(Q.__)("Percentage Width")},[25,50,75,100].map((function(e){return Object(X.createElement)(me.Button,{key:e,isSmall:!0,isPrimary:"".concat(e,"%")==="".concat(s).concat(u),onClick:function(){return n({width:e,widthUnit:"%"})}},e,"%")}))))))),j=Object(K.useBlockProps)({className:ne()(t,"button-inside"===d?"wp-block-search__button-inside":void 0,"button-outside"===d?"wp-block-search__button-outside":void 0,"no-button"===d?"wp-block-search__no-button":void 0,"button-only"===d?"wp-block-search__button-only":void 0,p||"no-button"===d?void 0:"wp-block-search__text-button",p&&"no-button"!==d?"wp-block-search__icon-button":void 0)});return Object(X.createElement)("div",j,v,i&&Object(X.createElement)(K.RichText,{className:"wp-block-search__label","aria-label":Object(Q.__)("Label text"),placeholder:Object(Q.__)("Add label…"),withoutInteractiveFormatting:!0,value:a,onChange:function(e){return n({label:e})}}),Object(X.createElement)(me.ResizableBox,{size:{width:"".concat(s).concat(u)},className:"wp-block-search__inside-wrapper",isResetValueOnUnitChange:!0,minWidth:220,enable:"button-only"===d?{}:{right:"right"!==b,left:"right"===b},onResizeStart:function(e,t,r){n({width:parseInt(r.offsetWidth,10),widthUnit:"px"}),c(!1)},onResizeStop:function(e,t,r,o){n({width:parseInt(s+o.width,10)}),c(!0)},showHandle:o},("button-inside"===d||"button-outside"===d)&&Object(X.createElement)(X.Fragment,null,f(),O()),"button-only"===d&&O(),"no-button"===d&&f()))}},Nl=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M18 4h-7c-1.1 0-2 .9-2 2v3H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-3h3c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h3V13c0 1.1.9 2 2 2h2.5v3zm0-4.5H11c-.3 0-.5-.2-.5-.5v-2.5H13c.3 0 .5.2.5.5v2.5zm5-.5c0 .3-.2.5-.5.5h-3V11c0-1.1-.9-2-2-2h-2.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7z"}));function Ml(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Rl(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ml(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ml(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Vl=function(e){if(e.tagName||(e=Rl(Rl({},e),{},{tagName:"div"})),!e.customTextColor&&!e.customBackgroundColor)return e;var t={color:{}};return e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),Rl(Rl({},Object(J.omit)(e,["customTextColor","customBackgroundColor"])),{},{style:t})},Al=[{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:Vl,save:function(e){var t=e.attributes,r=t.backgroundColor,n=t.customBackgroundColor,c=t.textColor,o=t.customTextColor,a=Object(K.getColorClassName)("background-color",r),i=Object(K.getColorClassName)("color",c),l=ne()(a,i,{"has-text-color":c||o,"has-background":r||n}),s={backgroundColor:a?void 0:n,color:i?void 0:o};return Object(X.createElement)("div",{className:l,style:s},Object(X.createElement)("div",{className:"wp-block-group__inner-container"},Object(X.createElement)(K.InnerBlocks.Content,null)))}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},migrate:Vl,supports:{align:["wide","full"],anchor:!0,html:!1},save:function(e){var t=e.attributes,r=t.backgroundColor,n=t.customBackgroundColor,c=t.textColor,o=t.customTextColor,a=Object(K.getColorClassName)("background-color",r),i=Object(K.getColorClassName)("color",c),l=ne()(a,{"has-text-color":c||o,"has-background":r||n}),s={backgroundColor:a?void 0:n,color:i?void 0:o};return Object(X.createElement)("div",{className:l,style:s},Object(X.createElement)("div",{className:"wp-block-group__inner-container"},Object(X.createElement)(K.InnerBlocks.Content,null)))}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:Vl,save:function(e){var t=e.attributes,r=t.backgroundColor,n=t.customBackgroundColor,c=Object(K.getColorClassName)("background-color",r),o=ne()(c,{"has-background":r||n}),a={backgroundColor:c?void 0:n};return Object(X.createElement)("div",{className:o,style:a},Object(X.createElement)(K.InnerBlocks.Content,null))}}],Hl=me.__experimentalBoxControl.__Visualizer;var Ll=function(e){var t,r,n,c,o=e.attributes,a=e.clientId,i=Object(de.useSelect)((function(e){var t=(0,e("core/block-editor").getBlock)(a);return!(!t||!t.innerBlocks.length)}),[a]),l=Object(K.useBlockProps)(),s=o.tagName,u=void 0===s?"div":s,b=o.templateLock,m=Object(K.__experimentalUseInnerBlocksProps)({className:"wp-block-group__inner-container"},{templateLock:b,renderAppender:i?void 0:K.InnerBlocks.ButtonBlockAppender});return Object(X.createElement)(u,l,Object(X.createElement)(Hl,{values:null===(t=o.style)||void 0===t||null===(r=t.spacing)||void 0===r?void 0:r.padding,showValues:null===(n=o.style)||void 0===n||null===(c=n.visualizers)||void 0===c?void 0:c.padding}),Object(X.createElement)("div",m))};var Il={apiVersion:2,name:"core/group",category:"design",attributes:{tagName:{type:"string",default:"div"},templateLock:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,color:{gradients:!0,link:!0},spacing:{padding:!0}}},Dl=Il.name,Gl={title:Object(Q.__)("Group"),icon:Nl,description:Object(Q.__)("Combine blocks into a group."),keywords:[Object(Q.__)("container"),Object(Q.__)("wrapper"),Object(Q.__)("row"),Object(Q.__)("section")],example:{attributes:{style:{color:{text:"#000000",background:"#ffffff"}}},innerBlocks:[{name:"core/paragraph",attributes:{customTextColor:"#cf2e2e",fontSize:"large",content:Object(Q.__)("One.")}},{name:"core/paragraph",attributes:{customTextColor:"#ff6900",fontSize:"large",content:Object(Q.__)("Two.")}},{name:"core/paragraph",attributes:{customTextColor:"#fcb900",fontSize:"large",content:Object(Q.__)("Three.")}},{name:"core/paragraph",attributes:{customTextColor:"#00d084",fontSize:"large",content:Object(Q.__)("Four.")}},{name:"core/paragraph",attributes:{customTextColor:"#0693e3",fontSize:"large",content:Object(Q.__)("Five.")}},{name:"core/paragraph",attributes:{customTextColor:"#9b51e0",fontSize:"large",content:Object(Q.__)("Six.")}}]},transforms:{from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert:function(e){if(1!==e.length||"core/group"!==e[0].name){var t=["wide","full"],r=e.reduce((function(e,r){var n=r.attributes.align;return t.indexOf(n)>t.indexOf(e)?n:e}),void 0),n=e.map((function(e){return Object(Y.createBlock)(e.name,e.attributes,e.innerBlocks)}));return Object(Y.createBlock)("core/group",{align:r},n)}}}]},edit:Ll,save:function(e){var t=e.attributes.tagName;return Object(X.createElement)(t,K.useBlockProps.save(),Object(X.createElement)("div",{className:"wp-block-group__inner-container"},Object(X.createElement)(K.InnerBlocks.Content,null)))},deprecated:Al},Fl=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M20.2 7v4H3.8V7H2.2v9h1.6v-3.5h16.4V16h1.6V7z"})),Ul=function(e){var t=e.color,r=e.setColor;return Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(K.PanelColorSettings,{title:Object(Q.__)("Color settings"),colorSettings:[{value:t.color,onChange:r,label:Object(Q.__)("Color")}]}))};var ql=Object(K.withColors)("color",{textColor:"color"})((function(e){var t=e.color,r=e.setColor,n=e.className;return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(me.HorizontalRule,Object(K.useBlockProps)({className:ne()(n,Object(Z.a)({"has-background":t.color},t.class,t.class)),style:{backgroundColor:t.color,color:t.color}})),Object(X.createElement)(Ul,{color:t,setColor:r}))}));var Wl={from:[{type:"enter",regExp:/^-{3,}$/,transform:function(){return Object(Y.createBlock)("core/separator")}},{type:"raw",selector:"hr",schema:{hr:{}}}]},Zl={apiVersion:2,name:"core/separator",category:"design",attributes:{color:{type:"string"},customColor:{type:"string"}},supports:{anchor:!0,align:["center","wide","full"]}},$l=Zl.name,Kl={title:Object(Q.__)("Separator"),description:Object(Q.__)("Create a break between ideas or sections with a horizontal separator."),icon:Fl,keywords:[Object(Q.__)("horizontal-line"),"hr",Object(Q.__)("divider")],example:{attributes:{customColor:"#065174",className:"is-style-wide"}},styles:[{name:"default",label:Object(Q.__)("Default"),isDefault:!0},{name:"wide",label:Object(Q.__)("Wide Line")},{name:"dots",label:Object(Q.__)("Dots")}],transforms:Wl,edit:ql,save:function(e){var t,r=e.attributes,n=r.color,c=r.customColor,o=Object(K.getColorClassName)("background-color",n),a=Object(K.getColorClassName)("color",n),i=ne()((t={"has-text-color has-background":n||c},Object(Z.a)(t,o,o),Object(Z.a)(t,a,a),t)),l={backgroundColor:o?void 0:c,color:a?void 0:c};return Object(X.createElement)("hr",K.useBlockProps.save({className:i,style:l}))}},Yl=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M16 4.2v1.5h2.5v12.5H16v1.5h4V4.2h-4zM4.2 19.8h4v-1.5H5.8V5.8h2.5V4.2h-4l-.1 15.6zm5.1-3.1l1.4.6 4-10-1.4-.6-4 10z"})),Jl=r(141);var Ql=r(105),Xl={from:[{type:"shortcode",tag:"[a-z][a-z0-9_-]*",attributes:{text:{type:"string",shortcode:function(e,t){var r=t.content;return Object(Ql.removep)(Object(Ql.autop)(r))}}},priority:20}]},es={apiVersion:2,name:"core/shortcode",category:"widgets",attributes:{text:{type:"string",source:"html"}},supports:{className:!1,customClassName:!1,html:!1}},ts=es.name,rs={title:Object(Q.__)("Shortcode"),description:Object(Q.__)("Insert additional custom elements with a WordPress shortcode."),icon:Yl,transforms:Xl,edit:function e(t){var r=t.attributes,n=t.setAttributes,c=Object(xe.useInstanceId)(e),o="blocks-shortcode-input-".concat(c);return Object(X.createElement)("div",Object(K.useBlockProps)({className:"components-placeholder"}),Object(X.createElement)("label",{htmlFor:o,className:"components-placeholder__label"},Object(X.createElement)(Jl.a,{icon:Yl}),Object(Q.__)("Shortcode")),Object(X.createElement)(K.PlainText,{className:"blocks-shortcode__textarea",id:o,value:r.text,placeholder:Object(Q.__)("Write shortcode here…"),onChange:function(e){return n({text:e})}}))},save:function(e){var t=e.attributes;return Object(X.createElement)(X.RawHTML,null,t.text)}},ns=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M12.5 4.2v1.6h4.7L5.8 17.2V12H4.2v7.8H12v-1.6H6.8L18.2 6.8v4.7h1.6V4.2z"})),cs=Object(xe.compose)([Object(de.withDispatch)((function(e){var t=e("core/block-editor").toggleSelection;return{onResizeStart:function(){return t(!1)},onResizeStop:function(){return t(!0)}}})),xe.withInstanceId])((function(e){var t=e.attributes,r=e.isSelected,n=e.setAttributes,c=e.onResizeStart,o=e.onResizeStop,a=Object(X.useState)(!1),i=Object(be.a)(a,2),l=i[0],s=i[1],u=t.height,b=function(e){n({height:e})};return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(ee.View,Object(K.useBlockProps)(),Object(X.createElement)(me.ResizableBox,{className:ne()("block-library-spacer__resize-container",{"is-selected":r}),size:{height:u},minHeight:1,enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStart:function(){c.apply(void 0,arguments),s(!0)},onResizeStop:function(e,t,r,n){o();var c=Math.min(parseInt(u+n.height,10),500);b(c),s(!1)},showHandle:r,__experimentalShowTooltip:!0,__experimentalTooltipProps:{axis:"y",position:"bottom",isVisible:l}})),Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Spacer settings")},Object(X.createElement)(me.RangeControl,{label:Object(Q.__)("Height in pixels"),min:1,max:Math.max(500,u),value:u,onChange:b}))))}));var os={apiVersion:2,name:"core/spacer",category:"design",attributes:{height:{type:"number",default:100}},supports:{anchor:!0}},as=os.name,is={title:Object(Q.__)("Spacer"),description:Object(Q.__)("Add white space between blocks and customize its height."),icon:ns,edit:cs,save:function(e){var t=e.attributes;return Object(X.createElement)("div",K.useBlockProps.save({style:{height:t.height},"aria-hidden":!0}))}},ls=r(36),ss=r.n(ls);var us={to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(Y.createBlock)("core/paragraph",e)}}]},bs={apiVersion:2,name:"core/subhead",category:"text",attributes:{align:{type:"string"},content:{type:"string",source:"html",selector:"p"}},supports:{inserter:!1,multiple:!1}},ms=bs.name,ds={title:Object(Q.__)("Subheading (deprecated)"),description:Object(Q.__)("This block is deprecated. Please use the Paragraph block instead."),icon:Object(X.createElement)(me.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(me.Path,{d:"M7.1 6l-.5 3h4.5L9.4 19h3l1.8-10h4.5l.5-3H7.1z"})),transforms:us,edit:function(e){var t=e.attributes,r=e.setAttributes,n=e.className,c=t.align,o=t.content,a=t.placeholder;return ss()("The Subheading block",{alternative:"the Paragraph block",plugin:"Gutenberg"}),Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(K.AlignmentToolbar,{value:c,onChange:function(e){r({align:e})}})),Object(X.createElement)("div",Object(K.useBlockProps)(),Object(X.createElement)(K.RichText,{tagName:"p",value:o,onChange:function(e){r({content:e})},style:{textAlign:c},className:n,placeholder:a||Object(Q.__)("Write subheading…")})))},save:function(e){var t=e.attributes,r=t.align,n=t.content;return Object(X.createElement)("p",K.useBlockProps.save({style:{textAlign:r}}),Object(X.createElement)(K.RichText.Content,{value:n}))}},ps=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v3.5h-15V5c0-.3.2-.5.5-.5zm8 5.5h6.5v3.5H13V10zm-1.5 3.5h-7V10h7v3.5zm-7 5.5v-4h7v4.5H5c-.3 0-.5-.2-.5-.5zm14.5.5h-6V15h6.5v4c0 .3-.2.5-.5.5z"})),gs=[{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"}}}}},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"}}}}},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"}}}}}},supports:{align:!0},save:function(e){var t=e.attributes,r=t.hasFixedLayout,n=t.head,c=t.body,o=t.foot,a=t.backgroundColor;if(!n.length&&!c.length&&!o.length)return null;var i=Object(K.getColorClassName)("background-color",a),l=ne()(i,{"has-fixed-layout":r,"has-background":!!i}),s=function(e){var t=e.type,r=e.rows;if(!r.length)return null;var n="t".concat(t);return Object(X.createElement)(n,null,r.map((function(e,t){var r=e.cells;return Object(X.createElement)("tr",{key:t},r.map((function(e,t){var r=e.content,n=e.tag,c=e.scope;return Object(X.createElement)(K.RichText.Content,{tagName:n,value:r,key:t,scope:"th"===n?c:void 0})})))})))};return Object(X.createElement)("table",{className:l},Object(X.createElement)(s,{type:"head",rows:n}),Object(X.createElement)(s,{type:"body",rows:c}),Object(X.createElement)(s,{type:"foot",rows:o}))}}],hs=r(303),fs=r(304),Os=r(305),vs=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(X.createElement)(ee.Path,{d:"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.84zM6.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"})),js=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(X.createElement)(ee.Path,{d:"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"})),ys=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(X.createElement)(ee.Path,{d:"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"})),_s=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(X.createElement)(ee.Path,{d:"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"})),ws=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(X.createElement)(ee.Path,{d:"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"})),ks=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(X.createElement)(ee.Path,{d:"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"})),Es=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ee.Path,{d:"M4 6v11.5h16V6H4zm1.5 1.5h6V11h-6V7.5zm0 8.5v-3.5h6V16h-6zm13 0H13v-3.5h5.5V16zM13 11V7.5h5.5V11H13z"}));function Cs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function xs(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Cs(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cs(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Ss=["align"];function Ps(e,t,r){if(!t)return e;var n=Object(J.pick)(e,["head","body","foot"]),c=t.sectionName,o=t.rowIndex;return Object(J.mapValues)(n,(function(e,n){return c&&c!==n?e:e.map((function(e,c){return o&&o!==c?e:{cells:e.cells.map((function(e,o){return 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}}({sectionName:n,columnIndex:o,rowIndex:c},t)?r(e):e}))}}))}))}function Bs(e,t){var r=t.sectionName,n=t.rowIndex,c=t.columnCount,o=function(e){return Ns(e.head)?Ns(e.body)?Ns(e.foot)?void 0:e.foot[0]:e.body[0]:e.head[0]}(e),a=void 0===c?Object(J.get)(o,["cells","length"]):c;return a?Object(Z.a)({},r,[].concat(Object(W.a)(e[r].slice(0,n)),[{cells:Object(J.times)(a,(function(e){var t=Object(J.get)(o,["cells",e],{});return xs(xs({},Object(J.pick)(t,Ss)),{},{content:"",tag:"head"===r?"th":"td"})}))}],Object(W.a)(e[r].slice(n)))):e}function Ts(e,t){var r=t.columnIndex,n=Object(J.pick)(e,["head","body","foot"]);return Object(J.mapValues)(n,(function(e,t){return Ns(e)?e:e.map((function(e){return Ms(e)||e.cells.length<r?e:{cells:[].concat(Object(W.a)(e.cells.slice(0,r)),[{content:"",tag:"head"===t?"th":"td"}],Object(W.a)(e.cells.slice(r)))}}))}))}function zs(e,t){return Ns(e[t])?Bs(e,{sectionName:t,rowIndex:0,columnCount:Object(J.get)(e,["body",0,"cells","length"],1)}):Object(Z.a)({},t,[])}function Ns(e){return!e||!e.length||Object(J.every)(e,Ms)}function Ms(e){return!(e.cells&&e.cells.length)}function Rs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Vs(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Rs(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rs(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var As=[{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"}],Hs=[{icon:hs.a,title:Object(Q.__)("Align column left"),align:"left"},{icon:fs.a,title:Object(Q.__)("Align column center"),align:"center"},{icon:Os.a,title:Object(Q.__)("Align column right"),align:"right"}],Ls=Object(K.createCustomColorsHOC)(As),Is={head:Object(Q.__)("Header label"),foot:Object(Q.__)("Footer label")};function Ds(e){var t=e.name,r=Object(or.a)(e,["name"]),n="t".concat(t);return Object(X.createElement)(n,r)}var Gs=Ls("backgroundColor")((function(e){var t=e.attributes,r=e.backgroundColor,n=e.setBackgroundColor,c=e.setAttributes,o=e.insertBlocksAfter,a=e.isSelected,i=t.hasFixedLayout,l=t.caption,s=t.head,u=t.foot,b=Object(X.useState)(2),m=Object(be.a)(b,2),d=m[0],p=m[1],g=Object(X.useState)(2),h=Object(be.a)(g,2),f=h[0],O=h[1],v=Object(X.useState)(),j=Object(be.a)(v,2),y=j[0],_=j[1];function w(e){y&&c(Ps(t,y,(function(t){return Vs(Vs({},t),{},{content:e})})))}function k(e){if(y){var r=y.sectionName,n=y.rowIndex+e;c(Bs(t,{sectionName:r,rowIndex:n})),_({sectionName:r,rowIndex:n,columnIndex:0,type:"cell"})}}function E(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(y){var r=y.columnIndex,n=r+e;c(Ts(t,{columnIndex:n})),_({rowIndex:0,columnIndex:n,type:"cell"})}}Object(X.useEffect)((function(){a||_()}),[a]);var C=["head","body","foot"].filter((function(e){return!Ns(t[e])})),x=[{icon:vs,title:Object(Q.__)("Insert row before"),isDisabled:!y,onClick:function(){k(0)}},{icon:js,title:Object(Q.__)("Insert row after"),isDisabled:!y,onClick:function(){k(1)}},{icon:ys,title:Object(Q.__)("Delete row"),isDisabled:!y,onClick:function(){if(y){var e=y.sectionName,r=y.rowIndex;_(),c(function(e,t){var r=t.sectionName,n=t.rowIndex;return Object(Z.a)({},r,e[r].filter((function(e,t){return t!==n})))}(t,{sectionName:e,rowIndex:r}))}}},{icon:_s,title:Object(Q.__)("Insert column before"),isDisabled:!y,onClick:function(){E(0)}},{icon:ws,title:Object(Q.__)("Insert column after"),isDisabled:!y,onClick:function(){E(1)}},{icon:ks,title:Object(Q.__)("Delete column"),isDisabled:!y,onClick:function(){if(y){var e=y.sectionName,r=y.columnIndex;_(),c(function(e,t){var r=t.columnIndex,n=Object(J.pick)(e,["head","body","foot"]);return Object(J.mapValues)(n,(function(e){return Ns(e)?e:e.map((function(e){return{cells:e.cells.length>=r?e.cells.filter((function(e,t){return t!==r})):e.cells}})).filter((function(e){return e.cells.length}))}))}(t,{sectionName:e,columnIndex:r}))}}}],S=["head","body","foot"].map((function(e){return Object(X.createElement)(Ds,{name:e,key:e},t[e].map((function(t,r){var n=t.cells;return Object(X.createElement)("tr",{key:r},n.map((function(t,n){var c=t.content,o=t.tag,a=t.scope,i=t.align;return Object(X.createElement)(K.RichText,{tagName:o,key:n,className:ne()(Object(Z.a)({},"has-text-align-".concat(i),i),"wp-block-table__cell-content"),scope:"th"===o?a:void 0,value:c,onChange:w,unstableOnFocus:function(){_({sectionName:e,rowIndex:r,columnIndex:n,type:"cell"})},placeholder:Is[e]})})))})))})),P=!C.length;return Object(X.createElement)("figure",Object(K.useBlockProps)(),!P&&Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(me.ToolbarGroup,null,Object(X.createElement)(me.ToolbarItem,null,(function(e){return Object(X.createElement)(me.DropdownMenu,{hasArrowIndicator:!0,icon:Es,toggleProps:e,label:Object(Q.__)("Edit table"),controls:x})}))),Object(X.createElement)(K.AlignmentToolbar,{label:Object(Q.__)("Change column alignment"),alignmentControls:Hs,value:function(){var e,r,n,c,o,a;if(y)return e=t,n="align",c=(r=y).sectionName,o=r.rowIndex,a=r.columnIndex,Object(J.get)(e,[c,o,"cells",a,n])}(),onChange:function(e){return function(e){if(y){var r={type:"column",columnIndex:y.columnIndex},n=Ps(t,r,(function(t){return Vs(Vs({},t),{},{align:e})}));c(n)}}(e)}})),!P&&Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Table settings"),className:"blocks-table-settings"},Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Fixed width table cells"),checked:!!i,onChange:function(){c({hasFixedLayout:!i})}}),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Header section"),checked:!(!s||!s.length),onChange:function(){c(zs(t,"head"))}}),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Footer section"),checked:!(!u||!u.length),onChange:function(){c(zs(t,"foot"))}})),Object(X.createElement)(K.PanelColorSettings,{title:Object(Q.__)("Color settings"),initialOpen:!1,colorSettings:[{value:r.color,onChange:n,label:Object(Q.__)("Background color"),disableCustomColors:!0,colors:As}]})),!P&&Object(X.createElement)("table",{className:ne()(r.class,{"has-fixed-layout":i,"has-background":!!r.color})},S),!P&&Object(X.createElement)(K.RichText,{tagName:"figcaption",placeholder:Object(Q.__)("Write caption…"),value:l,onChange:function(e){return c({caption:e})},unstableOnFocus:function(){return _()},__unstableOnSplitAtEnd:function(){return o(Object(Y.createBlock)("core/paragraph"))}}),P&&Object(X.createElement)(me.Placeholder,{label:Object(Q.__)("Table"),icon:Object(X.createElement)(K.BlockIcon,{icon:ps,showColors:!0}),instructions:Object(Q.__)("Insert a table for sharing data.")},Object(X.createElement)("form",{className:"blocks-table__placeholder-form",onSubmit:function(e){var t,r,n;e.preventDefault(),c((t={rowCount:parseInt(d,10)||2,columnCount:parseInt(f,10)||2},r=t.rowCount,n=t.columnCount,{body:Object(J.times)(r,(function(){return{cells:Object(J.times)(n,(function(){return{content:"",tag:"td"}}))}}))}))}},Object(X.createElement)(me.TextControl,{type:"number",label:Object(Q.__)("Column count"),value:f,onChange:function(e){O(e)},min:"1",className:"blocks-table__placeholder-input"}),Object(X.createElement)(me.TextControl,{type:"number",label:Object(Q.__)("Row count"),value:d,onChange:function(e){p(e)},min:"1",className:"blocks-table__placeholder-input"}),Object(X.createElement)(me.Button,{className:"blocks-table__placeholder-button",isPrimary:!0,type:"submit"},Object(Q.__)("Create Table")))))}));var Fs=function(e){var t=e.phrasingContentSchema;return{tr:{allowEmpty:!0,children:{th:{allowEmpty:!0,children:t,attributes:["scope"]},td:{allowEmpty:!0,children:t}}}}},Us={from:[{type:"raw",selector:"table",schema:function(e){return{table:{children:{thead:{allowEmpty:!0,children:Fs(e)},tfoot:{allowEmpty:!0,children:Fs(e)},tbody:{allowEmpty:!0,children:Fs(e)}}}}}}]},qs={apiVersion:2,name:"core/table",category:"text",attributes:{hasFixedLayout:{type:"boolean",default:!1},backgroundColor:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption",default:""},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:{anchor:!0,align:!0,__experimentalSelector:".wp-block-button > table"}},Ws=qs.name,Zs={title:Object(Q.__)("Table"),description:Object(Q.__)("Insert a table — perfect for sharing charts and data."),icon:ps,example:{attributes:{head:[{cells:[{content:Object(Q.__)("Version"),tag:"th"},{content:Object(Q.__)("Jazz Musician"),tag:"th"},{content:Object(Q.__)("Release Date"),tag:"th"}]}],body:[{cells:[{content:"5.2",tag:"td"},{content:"Jaco Pastorius",tag:"td"},{content:Object(Q.__)("May 7, 2019"),tag:"td"}]},{cells:[{content:"5.1",tag:"td"},{content:"Betty Carter",tag:"td"},{content:Object(Q.__)("February 21, 2019"),tag:"td"}]},{cells:[{content:"5.0",tag:"td"},{content:"Bebo Valdés",tag:"td"},{content:Object(Q.__)("December 6, 2018"),tag:"td"}]}]}},styles:[{name:"regular",label:Object(Q._x)("Default","block style"),isDefault:!0},{name:"stripes",label:Object(Q.__)("Stripes")}],transforms:Us,edit:Gs,save:function(e){var t=e.attributes,r=t.hasFixedLayout,n=t.head,c=t.body,o=t.foot,a=t.backgroundColor,i=t.caption;if(!n.length&&!c.length&&!o.length)return null;var l=Object(K.getColorClassName)("background-color",a),s=ne()(l,{"has-fixed-layout":r,"has-background":!!l}),u=!K.RichText.isEmpty(i),b=function(e){var t=e.type,r=e.rows;if(!r.length)return null;var n="t".concat(t);return Object(X.createElement)(n,null,r.map((function(e,t){var r=e.cells;return Object(X.createElement)("tr",{key:t},r.map((function(e,t){var r=e.content,n=e.tag,c=e.scope,o=e.align,a=ne()(Object(Z.a)({},"has-text-align-".concat(o),o));return Object(X.createElement)(K.RichText.Content,{className:a||void 0,"data-align":o,tagName:n,value:r,key:t,scope:"th"===n?c:void 0})})))})))};return Object(X.createElement)("figure",K.useBlockProps.save(),Object(X.createElement)("table",{className:""===s?void 0:s},Object(X.createElement)(b,{type:"head",rows:n}),Object(X.createElement)(b,{type:"body",rows:c}),Object(X.createElement)(b,{type:"foot",rows:o})),u&&Object(X.createElement)(K.RichText.Content,{tagName:"figcaption",value:i}))},deprecated:gs};var $s={to:[{type:"block",blocks:["core/columns"],transform:function(e){var t=e.className,r=e.columns,n=e.content,c=e.width;return Object(Y.createBlock)("core/columns",{align:"wide"===c||"full"===c?c:void 0,className:t,columns:r},n.map((function(e){var t=e.children;return Object(Y.createBlock)("core/column",{},[Object(Y.createBlock)("core/paragraph",{content:t})])})))}}]},Ks={apiVersion:2,name:"core/text-columns",icon:"columns",category:"design",attributes:{content:{type:"array",source:"query",selector:"p",query:{children:{type:"string",source:"html"}},default:[{},{}]},columns:{type:"number",default:2},width:{type:"string"}},supports:{inserter:!1}},Ys=Ks.name,Js={title:Object(Q.__)("Text Columns (deprecated)"),description:Object(Q.__)("This block is deprecated. Please use the Columns block instead."),transforms:$s,getEditWrapperProps:function(e){var t=e.width;if("wide"===t||"full"===t)return{"data-align":t}},edit:function(e){var t=e.attributes,r=e.setAttributes,n=t.width,c=t.content,o=t.columns;return ss()("The Text Columns block",{alternative:"the Columns block",plugin:"Gutenberg"}),Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(K.BlockAlignmentToolbar,{value:n,onChange:function(e){return r({width:e})},controls:["center","wide","full"]})),Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,null,Object(X.createElement)(me.RangeControl,{label:Object(Q.__)("Columns"),value:o,onChange:function(e){return r({columns:e})},min:2,max:4,required:!0}))),Object(X.createElement)("div",Object(K.useBlockProps)({className:"align".concat(n," columns-").concat(o)}),Object(J.times)(o,(function(e){return Object(X.createElement)("div",{className:"wp-block-column",key:"column-".concat(e)},Object(X.createElement)(K.RichText,{tagName:"p",value:Object(J.get)(c,[e,"children"]),onChange:function(t){r({content:[].concat(Object(W.a)(c.slice(0,e)),[{children:t}],Object(W.a)(c.slice(e+1)))})},placeholder:Object(Q.__)("New Column")}))}))))},save:function(e){var t=e.attributes,r=t.width,n=t.content,c=t.columns;return Object(X.createElement)("div",K.useBlockProps.save({className:"align".concat(r," columns-").concat(c)}),Object(J.times)(c,(function(e){return Object(X.createElement)("div",{className:"wp-block-column",key:"column-".concat(e)},Object(X.createElement)(K.RichText.Content,{tagName:"p",value:Object(J.get)(n,[e,"children"])}))})))}},Qs=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M17.8 2l-.9.3c-.1 0-3.6 1-5.2 2.1C10 5.5 9.3 6.5 8.9 7.1c-.6.9-1.7 4.7-1.7 6.3l-.9 2.3c-.2.4 0 .8.4 1 .1 0 .2.1.3.1.3 0 .6-.2.7-.5l.6-1.5c.3 0 .7-.1 1.2-.2.7-.1 1.4-.3 2.2-.5.8-.2 1.6-.5 2.4-.8.7-.3 1.4-.7 1.9-1.2s.8-1.2 1-1.9c.2-.7.3-1.6.4-2.4.1-.8.1-1.7.2-2.5 0-.8.1-1.5.2-2.1V2zm-1.9 5.6c-.1.8-.2 1.5-.3 2.1-.2.6-.4 1-.6 1.3-.3.3-.8.6-1.4.9-.7.3-1.4.5-2.2.8-.6.2-1.3.3-1.8.4L15 7.5c.3-.3.6-.7 1-1.1 0 .4 0 .8-.1 1.2zM6 20h8v-1.5H6V20z"})),Xs=[{attributes:{content:{type:"string",source:"html",selector:"pre",default:""},textAlign:{type:"string"}},save:function(e){var t=e.attributes,r=t.textAlign,n=t.content;return Object(X.createElement)(K.RichText.Content,{tagName:"pre",style:{textAlign:r},value:n})}}];var eu={from:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(Y.createBlock)("core/verse",e)}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(Y.createBlock)("core/paragraph",e)}}]},tu={apiVersion:2,name:"core/verse",category:"text",attributes:{content:{type:"string",source:"html",selector:"pre",default:"",__unstablePreserveWhiteSpace:!0},textAlign:{type:"string"}},supports:{anchor:!0}},ru=tu.name,nu={title:Object(Q.__)("Verse"),description:Object(Q.__)("Insert poetry. Use special spacing formats. Or quote song lyrics."),icon:Qs,example:{attributes:{content:Object(Q.__)("WHAT was he doing, the great god Pan,\n\tDown in the reeds by the river?\nSpreading ruin and scattering ban,\nSplashing and paddling with hoofs of a goat,\nAnd breaking the golden lilies afloat\n With the dragon-fly on the river.")}},keywords:[Object(Q.__)("poetry"),Object(Q.__)("poem")],transforms:eu,deprecated:Xs,merge:function(e,t){return{content:e.content+t.content}},edit:function(e){var t=e.attributes,r=e.setAttributes,n=e.mergeBlocks,c=t.textAlign,o=t.content,a=Object(K.useBlockProps)({className:ne()(Object(Z.a)({},"has-text-align-".concat(c),c))});return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(K.AlignmentToolbar,{value:c,onChange:function(e){r({textAlign:e})}})),Object(X.createElement)(K.RichText,Object(ue.a)({tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:o,onChange:function(e){r({content:e})},placeholder:Object(Q.__)("Write…"),onMerge:n,textAlign:c},a)))},save:function(e){var t=e.attributes,r=t.textAlign,n=t.content,c=ne()(Object(Z.a)({},"has-text-align-".concat(r),r));return Object(X.createElement)("pre",K.useBlockProps.save({className:c}),Object(X.createElement)(K.RichText.Content,{value:n}))}},cu=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h13.4c.4 0 .8.4.8.8v13.4zM10 15l5-3-5-3v6z"})),ou=function(e){var t=e.setAttributes,r=e.attributes,n=r.autoplay,c=r.controls,o=r.loop,a=r.muted,i=r.playsInline,l=r.preload,s=function(e){return function(r){t(Object(Z.a)({},e,r))}};return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Autoplay"),onChange:s("autoplay"),checked:n,help:function(e){return e?Object(Q.__)("Note: Autoplaying videos may cause usability issues for some visitors."):null}}),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Loop"),onChange:s("loop"),checked:o}),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Muted"),onChange:s("muted"),checked:a}),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Playback controls"),onChange:s("controls"),checked:c}),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Play inline"),onChange:s("playsInline"),checked:i}),Object(X.createElement)(me.SelectControl,{label:Object(Q.__)("Preload"),value:l,onChange:function(e){return t({preload:e})},options:[{value:"auto",label:Object(Q.__)("Auto")},{value:"metadata",label:Object(Q.__)("Metadata")},{value:"none",label:Object(Q.__)("None")}]}))};var au=r(319);function iu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function lu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?iu(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iu(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var su=["text/vtt"],uu=[{label:Object(Q.__)("Subtitles"),value:"subtitles"},{label:Object(Q.__)("Captions"),value:"captions"},{label:Object(Q.__)("Descriptions"),value:"descriptions"},{label:Object(Q.__)("Chapters"),value:"chapters"},{label:Object(Q.__)("Metadata"),value:"metadata"}],bu=Object(X.createElement)(me.SVG,{width:"18",height:"14",viewBox:"0 0 18 14",role:"img",fill:"none"},Object(X.createElement)(me.Rect,{x:"0.75",y:"0.75",width:"16.5",height:"12.5",rx:"1.25",stroke:"black",strokeWidth:"1.5",fill:"none"}),Object(X.createElement)(me.Path,{d:"M3 7H15",stroke:"black",strokeWidth:"1.5"}),Object(X.createElement)(me.Path,{d:"M3 10L15 10",stroke:"black",strokeWidth:"1.5"}));function mu(e){var t,r=e.tracks,n=e.onEditPress;return t=0===r.length?Object(X.createElement)("p",{className:"block-library-video-tracks-editor__tracks-informative-message"},Object(Q.__)("Tracks can be subtitles, captions, chapters, or descriptions. They help make your content more accessible to a wider range of users.")):r.map((function(e,t){return Object(X.createElement)("div",{key:t,className:"block-library-video-tracks-editor__track-list-track"},Object(X.createElement)("span",null,e.label," "),Object(X.createElement)(me.Button,{isTertiary:!0,onClick:function(){return n(t)},"aria-label":Object(Q.sprintf)(Object(Q.__)("Edit %s"),e.label)},Object(Q.__)("Edit")))})),Object(X.createElement)(me.MenuGroup,{label:Object(Q.__)("Text tracks"),className:"block-library-video-tracks-editor__track-list"},t)}function du(e){var t=e.track,r=e.onChange,n=e.onClose,c=e.onRemove,o=t.src,a=void 0===o?"":o,i=t.label,l=void 0===i?"":i,s=t.srcLang,u=void 0===s?"":s,b=t.kind,m=void 0===b?"subtitles":b,d=a.startsWith("blob:")?"":a.substring(a.lastIndexOf("/")+1);return Object(X.createElement)(me.NavigableMenu,null,Object(X.createElement)("div",{className:"block-library-video-tracks-editor__single-track-editor"},Object(X.createElement)("span",{className:"block-library-video-tracks-editor__single-track-editor-edit-track-label"},Object(Q.__)("Edit track")),Object(X.createElement)("span",null,Object(Q.__)("File"),": ",Object(X.createElement)("b",null,d)),Object(X.createElement)("div",{className:"block-library-video-tracks-editor__single-track-editor-label-language"},Object(X.createElement)(me.TextControl,{autoFocus:!0,onChange:function(e){return r(lu(lu({},t),{},{label:e}))},label:Object(Q.__)("Label"),value:l,help:Object(Q.__)("Title of track")}),Object(X.createElement)(me.TextControl,{onChange:function(e){return r(lu(lu({},t),{},{srcLang:e}))},label:Object(Q.__)("Source language"),value:u,help:Object(Q.__)("Language tag (en, fr, etc.)")})),Object(X.createElement)(me.SelectControl,{className:"block-library-video-tracks-editor__single-track-editor-kind-select",options:uu,value:m,label:Object(Q.__)("Kind"),onChange:function(e){"subtitles"===e&&(e=void 0),r(lu(lu({},t),{},{kind:e}))}}),Object(X.createElement)("div",{className:"block-library-video-tracks-editor__single-track-editor-buttons-container"},Object(X.createElement)(me.Button,{isSecondary:!0,onClick:function(){var e={},c=!1;""===l&&(e.label=Object(Q.__)("English"),c=!0),""===u&&(e.srcLang="en",c=!0),c&&r(lu(lu({},t),e)),n()}},Object(Q.__)("Close")),Object(X.createElement)(me.Button,{isDestructive:!0,isLink:!0,onClick:c},Object(Q.__)("Remove track")))))}function pu(e){var t=e.tracks,r=void 0===t?[]:t,n=e.onChange,c=Object(de.useSelect)((function(e){return e("core/block-editor").getSettings().mediaUpload}),[]),o=Object(X.useState)(null),a=Object(be.a)(o,2),i=a[0],l=a[1];return c?Object(X.createElement)(me.Dropdown,{contentClassName:"block-library-video-tracks-editor",renderToggle:function(e){var t=e.isOpen,r=e.onToggle;return Object(X.createElement)(me.ToolbarGroup,null,Object(X.createElement)(me.ToolbarButton,{label:Object(Q.__)("Text tracks"),showTooltip:!0,"aria-expanded":t,"aria-haspopup":"true",onClick:r,icon:bu}))},renderContent:function(e){return function(e){if(null==e)throw new TypeError("Cannot destructure undefined")}(e),null!==i?Object(X.createElement)(du,{track:r[i],onChange:function(e){var t=Object(W.a)(r);t[i]=e,n(t)},onClose:function(){return l(null)},onRemove:function(){n(r.filter((function(e,t){return t!==i}))),l(null)}}):Object(X.createElement)(X.Fragment,null,Object(X.createElement)(me.NavigableMenu,null,Object(X.createElement)(mu,{tracks:r,onEditPress:l}),Object(X.createElement)(me.MenuGroup,{className:"block-library-video-tracks-editor__add-tracks-container",label:Object(Q.__)("Add tracks")},Object(X.createElement)(K.MediaUpload,{onSelect:function(e){var t=e.url,c=r.length;n([].concat(Object(W.a)(r),[{src:t}])),l(c)},allowedTypes:su,render:function(e){var t=e.open;return Object(X.createElement)(me.MenuItem,{icon:au.a,onClick:t},Object(Q.__)("Open Media Library"))}}),Object(X.createElement)(K.MediaUploadCheck,null,Object(X.createElement)(me.FormFileUpload,{onChange:function(e){var t=e.target.files,o=r.length;c({allowedTypes:su,filesList:t,onFileChange:function(e){var t=Object(be.a)(e,1)[0].url,c=Object(W.a)(r);c[o]||(c[o]={}),c[o]=lu(lu({},r[o]),{},{src:t}),n(c),l(o)}})},accept:".vtt,text/vtt",render:function(e){var t=e.openFileDialog;return Object(X.createElement)(me.MenuItem,{icon:Be.a,onClick:function(){t()}},Object(Q.__)("Upload"))}})))))}}):null}function gu(e){var t=e.tracks;return(void 0===t?[]:t).map((function(e){return Object(X.createElement)("track",Object(ue.a)({key:e.src},e))}))}var hu=["video"],fu=["image"];var Ou=Object(me.withNotices)((function e(t){var r=t.isSelected,n=t.noticeUI,c=t.attributes,o=t.setAttributes,a=t.insertBlocksAfter,i=t.onReplace,l=t.noticeOperations,s=Object(xe.useInstanceId)(e),u=Object(X.useRef)(),b=Object(X.useRef)(),m=c.id,d=c.caption,p=c.controls,g=c.poster,h=c.src,f=c.tracks,O=Object(de.useSelect)((function(e){return e("core/block-editor").getSettings().mediaUpload}));function v(e){e&&e.url?o({src:e.url,id:e.id}):o({src:void 0,id:void 0})}function j(e){if(e!==h){var t=Ie({attributes:{url:e}});if(void 0!==t)return void i(t);o({src:e,id:void 0})}}function y(e){l.removeAllNotices(),l.createErrorNotice(e)}Object(X.useEffect)((function(){if(!m&&Object(Ce.isBlobURL)(h)){var e=Object(Ce.getBlobByURL)(h);e&&O({filesList:[e],onFileChange:function(e){var t=Object(be.a)(e,1)[0].url;o({src:t})},onError:function(e){l.createErrorNotice(e)},allowedTypes:hu})}}),[]),Object(X.useEffect)((function(){u.current&&u.current.load()}),[g]);var _=Object(K.useBlockProps)();if(!h)return Object(X.createElement)("div",_,Object(X.createElement)(K.MediaPlaceholder,{icon:Object(X.createElement)(K.BlockIcon,{icon:cu}),onSelect:v,onSelectURL:j,accept:"video/*",allowedTypes:hu,value:c,notices:n,onError:y}));var w="video-block__poster-image-description-".concat(s);return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(pu,{tracks:f,onChange:function(e){o({tracks:e})}}),Object(X.createElement)(K.MediaReplaceFlow,{mediaId:m,mediaURL:h,allowedTypes:hu,accept:"video/*",onSelect:v,onSelectURL:j,onError:y})),Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Video settings")},Object(X.createElement)(ou,{setAttributes:o,attributes:c}),Object(X.createElement)(K.MediaUploadCheck,null,Object(X.createElement)(me.BaseControl,{className:"editor-video-poster-control"},Object(X.createElement)(me.BaseControl.VisualLabel,null,Object(Q.__)("Poster image")),Object(X.createElement)(K.MediaUpload,{title:Object(Q.__)("Select poster image"),onSelect:function(e){o({poster:e.url})},allowedTypes:fu,render:function(e){var t=e.open;return Object(X.createElement)(me.Button,{isPrimary:!0,onClick:t,ref:b,"aria-describedby":w},g?Object(Q.__)("Replace"):Object(Q.__)("Select"))}}),Object(X.createElement)("p",{id:w,hidden:!0},g?Object(Q.sprintf)(Object(Q.__)("The current poster image url is %s"),g):Object(Q.__)("There is no poster image currently selected")),!!g&&Object(X.createElement)(me.Button,{onClick:function(){o({poster:""}),this.posterImageButton.current.focus()},isTertiary:!0},Object(Q.__)("Remove")))))),Object(X.createElement)("figure",_,Object(X.createElement)(me.Disabled,null,Object(X.createElement)("video",{controls:p,poster:g,src:h,ref:u},Object(X.createElement)(gu,{tracks:f}))),(!K.RichText.isEmpty(d)||r)&&Object(X.createElement)(K.RichText,{tagName:"figcaption",placeholder:Object(Q.__)("Write caption…"),value:d,onChange:function(e){return o({caption:e})},inlineToolbar:!0,__unstableOnSplitAtEnd:function(){return a(Object(Y.createBlock)("core/paragraph"))}})))}));var vu={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(Y.createBlock)("core/video",{src:Object(Ce.createBlobURL)(t)})}},{type:"shortcode",tag:"video",attributes:{src:{type:"string",shortcode:function(e){var t=e.named,r=t.src,n=t.mp4,c=t.m4v,o=t.webm,a=t.ogv,i=t.flv;return r||n||c||o||a||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}}}}]},ju={apiVersion:2,name:"core/video",category:"media",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"},tracks:{type:"array",items:{type:"object"},default:[]}},supports:{anchor:!0,align:!0}},yu=ju.name,_u={title:Object(Q.__)("Video"),description:Object(Q.__)("Embed a video from your media library or upload a new one."),icon:cu,keywords:[Object(Q.__)("movie")],transforms:vu,edit:Ou,save:function(e){var t=e.attributes,r=t.autoplay,n=t.caption,c=t.controls,o=t.loop,a=t.muted,i=t.poster,l=t.preload,s=t.src,u=t.playsInline,b=t.tracks;return Object(X.createElement)("figure",K.useBlockProps.save(),s&&Object(X.createElement)("video",{autoPlay:r,controls:c,loop:o,muted:a,poster:i,preload:"metadata"!==l?l:void 0,src:s,playsInline:u},Object(X.createElement)(gu,{tracks:b})),!K.RichText.isEmpty(n)&&Object(X.createElement)(K.RichText.Content,{tagName:"figcaption",value:n}))}},wu=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ee.Path,{d:"M20.1 11.2l-6.7-6.7c-.1-.1-.3-.2-.5-.2H5c-.4-.1-.8.3-.8.7v7.8c0 .2.1.4.2.5l6.7 6.7c.2.2.5.4.7.5s.6.2.9.2c.3 0 .6-.1.9-.2.3-.1.5-.3.8-.5l5.6-5.6c.4-.4.7-1 .7-1.6.1-.6-.2-1.2-.6-1.6zM19 13.4L13.4 19c-.1.1-.2.1-.3.2-.2.1-.4.1-.6 0-.1 0-.2-.1-.3-.2l-6.5-6.5V5.8h6.8l6.5 6.5c.2.2.2.4.2.6 0 .1 0 .3-.2.5zM9 8c-.6 0-1 .4-1 1s.4 1 1 1 1-.4 1-1-.4-1-1-1z"}));var ku=Object(de.withSelect)((function(e){return{taxonomies:e("core").getTaxonomies()}}))((function(e){var t,r,n=e.attributes,c=e.setAttributes,o=e.taxonomies,a=n.taxonomy,i=n.showTagCounts,l=Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Tag Cloud settings")},Object(X.createElement)(me.SelectControl,{label:Object(Q.__)("Taxonomy"),options:(t={label:Object(Q.__)("- Select -"),value:"",disabled:!0},r=Object(J.map)(Object(J.filter)(o,"show_cloud"),(function(e){return{value:e.slug,label:e.name}})),[t].concat(Object(W.a)(r))),value:a,onChange:function(e){return c({taxonomy:e})}}),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Show post counts"),checked:i,onChange:function(){return c({showTagCounts:!i})}})));return Object(X.createElement)(X.Fragment,null,l,Object(X.createElement)("div",Object(K.useBlockProps)(),Object(X.createElement)(Qr.a,{key:"tag-cloud",block:"core/tag-cloud",attributes:n})))})),Eu={apiVersion:2,name:"core/tag-cloud",category:"widgets",attributes:{taxonomy:{type:"string",default:"post_tag"},showTagCounts:{type:"boolean",default:!1}},supports:{html:!1,align:!0}},Cu=Eu.name,xu={title:Object(Q.__)("Tag Cloud"),description:Object(Q.__)("A cloud of your most used tags."),icon:wu,example:{},edit:ku},Su=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M20 6H4c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H4c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h16c.3 0 .5.2.5.5v9zM10 10H8v2h2v-2zm-5 2h2v-2H5v2zm8-2h-2v2h2v-2zm-5 6h8v-2H8v2zm6-4h2v-2h-2v2zm3 0h2v-2h-2v2zm0 4h2v-2h-2v2zM5 16h2v-2H5v2z"})),Pu=function(e){var t=e.clientId,r=Object(de.useDispatch)("core/block-editor").replaceBlocks,n=Object(de.useSelect)((function(e){return e("core/block-editor").getBlock(t)}),[t]);return Object(X.createElement)(me.ToolbarButton,{onClick:function(){return r(n.clientId,Object(Y.rawHandler)({HTML:Object(Y.serialize)(n)}))}},Object(Q.__)("Convert to blocks"))};function Bu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Tu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Bu(Object(r),!0).forEach((function(t){Object(Z.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bu(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var zu=window.wp;var Nu={apiVersion:2,name:"core/freeform",category:"text",attributes:{content:{type:"string",source:"html"}},supports:{className:!1,customClassName:!1,reusable:!1}},Mu=Nu.name,Ru={title:Object(Q._x)("Classic","block title"),description:Object(Q.__)("Use the classic WordPress editor."),icon:Su,edit:function(e){var t=e.clientId,r=e.attributes.content,n=e.setAttributes,c=e.onReplace,o=Object(X.useRef)(!1);return Object(X.useEffect)((function(){if(o.current){var e=window.tinymce.get("editor-".concat(t));(null==e?void 0:e.getContent())!==r&&e.setContent(r||"")}}),[r]),Object(X.useEffect)((function(){var e=window.wpEditorL10n.tinymce,a=e.baseURL,i=e.suffix;function l(e){var t;r&&e.on("loadContent",(function(){return e.setContent(r)})),e.on("blur",(function(){t=e.selection.getBookmark(2,!0);var r=document.querySelector(".interface-interface-skeleton__content"),c=r.scrollTop;return n({content:e.getContent()}),e.once("focus",(function(){t&&(e.selection.moveToBookmark(t),r.scrollTop!==c&&(r.scrollTop=c))})),!1})),e.on("mousedown touchstart",(function(){t=null}));var o=Object(J.debounce)((function(){var t=e.getContent();t!==e._lastChange&&(e._lastChange=t,n({content:t}))}),250);e.on("Paste Change input Undo Redo",o),e.on("remove",o.cancel),e.on("keydown",(function(t){It.isKeyboardEvent.primary(t,"z")&&t.stopPropagation(),t.keyCode!==It.BACKSPACE&&t.keyCode!==It.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)||(c([]),t.preventDefault(),t.stopImmediatePropagation()),t.altKey&&t.keyCode===It.F10&&t.stopPropagation()})),e.on("init",(function(){var t=e.getBody();t.ownerDocument.activeElement===t&&(t.blur(),e.focus())}))}function s(){var e=window.wpEditorL10n.tinymce.settings;zu.oldEditor.initialize("editor-".concat(t),{tinymce:Tu(Tu({},e),{},{inline:!0,content_css:!1,fixed_toolbar_container:"#toolbar-".concat(t),setup:l})})}function u(){"complete"===document.readyState&&s()}return o.current=!0,window.tinymce.EditorManager.overrideDefaults({base_url:a,suffix:i}),"complete"===document.readyState?s():document.addEventListener("readystatechange",u),function(){document.removeEventListener("readystatechange",u),zu.oldEditor.remove("editor-".concat(t))}}),[]),Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(me.ToolbarGroup,null,Object(X.createElement)(Pu,{clientId:t}))),Object(X.createElement)("div",Object(K.useBlockProps)(),Object(X.createElement)("div",{key:"toolbar",id:"toolbar-".concat(t),className:"block-library-classic__toolbar",onClick:function(){var e=window.tinymce.get("editor-".concat(t));e&&e.focus()},"data-placeholder":Object(Q.__)("Classic"),onKeyDown:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}}),Object(X.createElement)("div",{key:"editor",id:"editor-".concat(t),className:"wp-block-freeform block-library-rich-text__tinymce"})))},save:function(e){var t=e.attributes.content;return Object(X.createElement)(X.RawHTML,null,t)}},Vu=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M9 11.8l6.1-4.5c.1.4.4.7.9.7h2c.6 0 1-.4 1-1V5c0-.6-.4-1-1-1h-2c-.6 0-1 .4-1 1v.4l-6.4 4.8c-.2-.1-.4-.2-.6-.2H6c-.6 0-1 .4-1 1v2c0 .6.4 1 1 1h2c.2 0 .4-.1.6-.2l6.4 4.8v.4c0 .6.4 1 1 1h2c.6 0 1-.4 1-1v-2c0-.6-.4-1-1-1h-2c-.5 0-.8.3-.9.7L9 12.2v-.4z"})),Au=["core/social-link"];var Hu=function(e){var t=e.attributes.openInNewTab,r=e.setAttributes,n=Object(X.createElement)("div",{className:"wp-block-social-links__social-placeholder"},Object(X.createElement)("div",{className:"wp-block-social-link wp-social-link-facebook"}),Object(X.createElement)("div",{className:"wp-block-social-link wp-social-link-twitter"}),Object(X.createElement)("div",{className:"wp-block-social-link wp-social-link-instagram"})),c=Object(K.useBlockProps)(),o=Object(K.__experimentalUseInnerBlocksProps)(c,{allowedBlocks:Au,orientation:"horizontal",placeholder:n,templateLock:!1,__experimentalAppenderTagName:"li"});return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Link settings")},Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Open links in new tab"),checked:t,onChange:function(){return r({openInNewTab:!t})}}))),Object(X.createElement)("ul",o))};var Lu={apiVersion:2,name:"core/social-links",category:"widgets",attributes:{openInNewTab:{type:"boolean",default:!1}},providesContext:{openInNewTab:"openInNewTab"},supports:{align:["left","center","right"],anchor:!0}},Iu=Lu.name,Du={title:Object(Q.__)("Social Icons"),description:Object(Q.__)("Display icons linking to your social media profiles or websites."),keywords:[Object(Q._x)("links","block keywords")],example:{innerBlocks:[{name:"core/social-link",attributes:{service:"wordpress",url:"https://wordpress.org"}},{name:"core/social-link",attributes:{service:"facebook",url:"https://www.facebook.com/WordPress/"}},{name:"core/social-link",attributes:{service:"twitter",url:"https://twitter.com/WordPress"}}]},styles:[{name:"default",label:Object(Q.__)("Default"),isDefault:!0},{name:"logos-only",label:Object(Q.__)("Logos Only")},{name:"pill-shape",label:Object(Q.__)("Pill Shape")}],icon:Vu,edit:Hu,save:function(){return Object(X.createElement)("ul",K.useBlockProps.save(),Object(X.createElement)(K.InnerBlocks.Content,null))}},Gu=r(216),Fu=function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))},Uu=[{isDefault:!0,name:"wordpress",attributes:{service:"wordpress"},title:"WordPress",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.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"}))}},{name:"fivehundredpx",attributes:{service:"fivehundredpx"},title:"500px",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"amazon",attributes:{service:"amazon"},title:"Amazon",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"bandcamp",attributes:{service:"bandcamp"},title:"Bandcamp",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.Path,{d:"M15.27 17.289 3 17.289 8.73 6.711 21 6.711 15.27 17.289"}))}},{name:"behance",attributes:{service:"behance"},title:"Behance",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"chain",attributes:{service:"chain"},title:"Link",icon:Fu},{name:"codepen",attributes:{service:"codepen"},title:"CodePen",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"deviantart",attributes:{service:"deviantart"},title:"DeviantArt",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"dribbble",attributes:{service:"dribbble"},title:"Dribbble",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"dropbox",attributes:{service:"dropbox"},title:"Dropbox",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"etsy",attributes:{service:"etsy"},title:"Etsy",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"facebook",attributes:{service:"facebook"},title:"Facebook",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"feed",attributes:{service:"feed"},title:"RSS Feed",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"flickr",attributes:{service:"flickr"},title:"Flickr",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"foursquare",attributes:{service:"foursquare"},title:"Foursquare",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"goodreads",attributes:{service:"goodreads"},title:"Goodreads",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"google",attributes:{service:"google"},title:"Google",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"github",attributes:{service:"github"},title:"GitHub",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"instagram",attributes:{service:"instagram"},title:"Instagram",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"lastfm",attributes:{service:"lastfm"},title:"Last.fm",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.Path,{d:"M 12.0002 1.5 C 6.2006 1.5 1.5 6.2011 1.5 11.9998 C 1.5 17.799 6.2006 22.5 12.0002 22.5 C 17.799 22.5 22.5 17.799 22.5 11.9998 C 22.5 6.2011 17.799 1.5 12.0002 1.5 Z M 16.1974 16.2204 C 14.8164 16.2152 13.9346 15.587 13.3345 14.1859 L 13.1816 13.8451 L 11.8541 10.8101 C 11.4271 9.7688 10.3526 9.0712 9.1801 9.0712 C 7.5695 9.0712 6.2593 10.3851 6.2593 12.001 C 6.2593 13.6165 7.5695 14.9303 9.1801 14.9303 C 10.272 14.9303 11.2651 14.3275 11.772 13.3567 C 11.7893 13.3235 11.8239 13.302 11.863 13.3038 C 11.9007 13.3054 11.9353 13.3288 11.9504 13.3632 L 12.4865 14.6046 C 12.5016 14.639 12.4956 14.6778 12.4723 14.7069 C 11.6605 15.6995 10.4602 16.2683 9.1801 16.2683 C 6.8331 16.2683 4.9234 14.3536 4.9234 12.001 C 4.9234 9.6468 6.833 7.732 9.1801 7.732 C 10.9572 7.732 12.3909 8.6907 13.1138 10.3636 C 13.1206 10.3802 13.8412 12.0708 14.4744 13.5191 C 14.8486 14.374 15.1462 14.896 16.1288 14.9292 C 17.0663 14.9613 17.7538 14.4122 17.7538 13.6485 C 17.7538 12.9691 17.3321 12.8004 16.3803 12.4822 C 14.7365 11.9398 13.845 11.3861 13.845 10.0182 C 13.845 8.6809 14.7667 7.8162 16.192 7.8162 C 17.1288 7.8162 17.8155 8.2287 18.2921 9.0768 C 18.305 9.1006 18.3079 9.1281 18.3004 9.1542 C 18.2929 9.1803 18.2748 9.2021 18.2507 9.2138 L 17.3614 9.669 C 17.3178 9.692 17.2643 9.6781 17.2356 9.6385 C 16.9329 9.2135 16.5956 9.0251 16.1423 9.0251 C 15.5512 9.0251 15.122 9.429 15.122 9.9865 C 15.122 10.6738 15.6529 10.8414 16.5339 11.1192 C 16.6491 11.1558 16.7696 11.194 16.8939 11.2343 C 18.2763 11.6865 19.0768 12.2311 19.0768 13.6836 C 19.0769 15.1297 17.8389 16.2204 16.1974 16.2204 Z"}))}},{name:"linkedin",attributes:{service:"linkedin"},title:"LinkedIn",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"mail",attributes:{service:"mail"},title:"Mail",keywords:["email","e-mail"],icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"mastodon",attributes:{service:"mastodon"},title:"Mastodon",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"meetup",attributes:{service:"meetup"},title:"Meetup",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"medium",attributes:{service:"medium"},title:"Medium",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"pinterest",attributes:{service:"pinterest"},title:"Pinterest",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"pocket",attributes:{service:"pocket"},title:"Pocket",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"reddit",attributes:{service:"reddit"},title:"Reddit",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"skype",attributes:{service:"skype"},title:"Skype",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"snapchat",attributes:{service:"snapchat"},title:"Snapchat",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"soundcloud",attributes:{service:"soundcloud"},title:"SoundCloud",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"spotify",attributes:{service:"spotify"},title:"Spotify",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"tumblr",attributes:{service:"tumblr"},title:"Tumblr",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.Path,{d:"M17.04 21.28h-3.28c-2.84 0-4.94-1.37-4.94-5.02v-5.67H6.08V7.5c2.93-.73 4.11-3.3 4.3-5.48h3.01v4.93h3.47v3.65H13.4v4.93c0 1.47.73 2.01 1.92 2.01h1.73v3.75z"}))}},{name:"twitch",attributes:{service:"twitch"},title:"Twitch",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"twitter",attributes:{service:"twitter"},title:"Twitter",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"vimeo",attributes:{service:"vimeo"},title:"Vimeo",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"vk",attributes:{service:"vk"},title:"VK",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"yelp",attributes:{service:"yelp"},title:"Yelp",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}},{name:"youtube",attributes:{service:"youtube"},title:"YouTube",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.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"}))}}],qu=function(e){var t,r,n=e.attributes,c=e.setAttributes,o=e.isSelected,a=n.url,i=n.service,l=n.label,s=Object(X.useState)(!1),u=Object(be.a)(s,2),b=u[0],m=u[1],d=ne()("wp-social-link","wp-social-link-"+i,{"wp-social-link__is-incomplete":!a}),p=(t=i,(r=Object(J.find)(Uu,{name:t}))?r.icon:Fu),g=function(e){var t=Object(J.find)(Uu,{name:e});return t?t.title:Object(Q.__)("Social Icon")}(i),h=Object(K.useBlockProps)({className:d});return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.sprintf)(Object(Q.__)("%s label"),g),initialOpen:!1},Object(X.createElement)(me.PanelRow,null,Object(X.createElement)(me.TextControl,{label:Object(Q.__)("Link label"),help:Object(Q.__)("Briefly describe the link to help screen reader users."),value:l,onChange:function(e){return c({label:e})}})))),Object(X.createElement)("li",h,Object(X.createElement)(me.Button,{onClick:function(){return m(!0)}},Object(X.createElement)(p,null),o&&b&&Object(X.createElement)(K.URLPopover,{onClose:function(){return m(!1)}},Object(X.createElement)("form",{className:"block-editor-url-popover__link-editor",onSubmit:function(e){e.preventDefault(),m(!1)}},Object(X.createElement)("div",{className:"block-editor-url-input"},Object(X.createElement)(K.URLInput,{value:a,onChange:function(e){return c({url:e})},placeholder:Object(Q.__)("Enter address"),disableSuggestions:!0})),Object(X.createElement)(me.Button,{icon:Gu.a,label:Object(Q.__)("Apply"),type:"submit"}))))))},Wu={apiVersion:2,name:"core/social-link",category:"widgets",parent:["core/social-links"],attributes:{url:{type:"string"},service:{type:"string"},label:{type:"string"}},usesContext:["openInNewTab"],supports:{reusable:!1,html:!1}},Zu=Wu.name,$u={title:Object(Q.__)("Social Icon"),icon:Vu,edit:qu,description:Object(Q.__)("Display an icon linking to a social media profile or website."),variations:Uu},Ku=function(e){if(e){var t=e.metadata,r=e.settings,n=e.name;t&&Object(Y.unstable__bootstrapServerSideBlockDefinitions)(Object(Z.a)({},n,t)),Object(Y.registerBlockType)(n,r)}},Yu=function(){return[n,c,o,i,k,a,R,l,s,u,b,m,d,p,g,h,f,O,v,N,window.wp&&window.wp.oldEditor?F:null,j,y,_,w,E,C,x,S,P,T,z,M,B,U,q,V,A,H,G,L,I,D]},Ju=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Yu();e.forEach(Ku),Object(Y.setDefaultBlockName)(ye),window.wp&&window.wp.oldEditor&&Object(Y.setFreeformContentHandlerName)(Mu),Object(Y.setUnregisteredTypeHandlerName)(Ti),Object(Y.setGroupingBlockName)(Dl)},Qu=void 0},47:function(e,t){!function(){e.exports=this.wp.apiFetch}()},5: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}))},6:function(e,t){!function(){e.exports=this.wp.blockEditor}()},60:function(e,t,r){e.exports=function(e,t){var r,n,c=0;function o(){var o,a,i=r,l=arguments.length;e:for(;i;){if(i.args.length===arguments.length){for(a=0;a<l;a++)if(i.args[a]!==arguments[a]){i=i.next;continue e}return i!==r&&(i===n&&(n=i.prev),i.prev.next=i.next,i.next&&(i.next.prev=i.prev),i.next=r,i.prev=null,r.prev=i,r=i),i.val}i=i.next}for(o=new Array(l),a=0;a<l;a++)o[a]=arguments[a];return i={args:o,val:e.apply(null,o)},r?(r.prev=i,i.next=r):n=i,c===t.maxSize?(n=n.prev).next=null:c++,r=i,i.val}return t=t||{},o.clear=function(){r=null,n=null,c=0},o}},66:function(e,t,r){var n;!function(c){var o=/^\s+/,a=/\s+$/,i=0,l=c.round,s=c.min,u=c.max,b=c.random;function m(e,t){if(t=t||{},(e=e||"")instanceof m)return e;if(!(this instanceof m))return new m(e,t);var r=function(e){var t={r:0,g:0,b:0},r=1,n=null,i=null,l=null,b=!1,m=!1;"string"==typeof e&&(e=function(e){e=e.replace(o,"").replace(a,"").toLowerCase();var t,r=!1;if(B[e])e=B[e],r=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=F.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=F.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=F.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=F.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=F.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=F.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=F.hex8.exec(e))return{r:R(t[1]),g:R(t[2]),b:R(t[3]),a:L(t[4]),format:r?"name":"hex8"};if(t=F.hex6.exec(e))return{r:R(t[1]),g:R(t[2]),b:R(t[3]),format:r?"name":"hex"};if(t=F.hex4.exec(e))return{r:R(t[1]+""+t[1]),g:R(t[2]+""+t[2]),b:R(t[3]+""+t[3]),a:L(t[4]+""+t[4]),format:r?"name":"hex8"};if(t=F.hex3.exec(e))return{r:R(t[1]+""+t[1]),g:R(t[2]+""+t[2]),b:R(t[3]+""+t[3]),format:r?"name":"hex"};return!1}(e));"object"==typeof e&&(U(e.r)&&U(e.g)&&U(e.b)?(d=e.r,p=e.g,g=e.b,t={r:255*N(d,255),g:255*N(p,255),b:255*N(g,255)},b=!0,m="%"===String(e.r).substr(-1)?"prgb":"rgb"):U(e.h)&&U(e.s)&&U(e.v)?(n=A(e.s),i=A(e.v),t=function(e,t,r){e=6*N(e,360),t=N(t,100),r=N(r,100);var n=c.floor(e),o=e-n,a=r*(1-t),i=r*(1-o*t),l=r*(1-(1-o)*t),s=n%6;return{r:255*[r,i,a,a,l,r][s],g:255*[l,r,r,i,a,a][s],b:255*[a,a,l,r,r,i][s]}}(e.h,n,i),b=!0,m="hsv"):U(e.h)&&U(e.s)&&U(e.l)&&(n=A(e.s),l=A(e.l),t=function(e,t,r){var n,c,o;function a(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=N(e,360),t=N(t,100),r=N(r,100),0===t)n=c=o=r;else{var i=r<.5?r*(1+t):r+t-r*t,l=2*r-i;n=a(l,i,e+1/3),c=a(l,i,e),o=a(l,i,e-1/3)}return{r:255*n,g:255*c,b:255*o}}(e.h,n,l),b=!0,m="hsl"),e.hasOwnProperty("a")&&(r=e.a));var d,p,g;return r=z(r),{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:r}}(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=l(100*this._a)/100,this._format=t.format||r.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=r.ok,this._tc_id=i++}function d(e,t,r){e=N(e,255),t=N(t,255),r=N(r,255);var n,c,o=u(e,t,r),a=s(e,t,r),i=(o+a)/2;if(o==a)n=c=0;else{var l=o-a;switch(c=i>.5?l/(2-o-a):l/(o+a),o){case e:n=(t-r)/l+(t<r?6:0);break;case t:n=(r-e)/l+2;break;case r:n=(e-t)/l+4}n/=6}return{h:n,s:c,l:i}}function p(e,t,r){e=N(e,255),t=N(t,255),r=N(r,255);var n,c,o=u(e,t,r),a=s(e,t,r),i=o,l=o-a;if(c=0===o?0:l/o,o==a)n=0;else{switch(o){case e:n=(t-r)/l+(t<r?6:0);break;case t:n=(r-e)/l+2;break;case r:n=(e-t)/l+4}n/=6}return{h:n,s:c,v:i}}function g(e,t,r,n){var c=[V(l(e).toString(16)),V(l(t).toString(16)),V(l(r).toString(16))];return n&&c[0].charAt(0)==c[0].charAt(1)&&c[1].charAt(0)==c[1].charAt(1)&&c[2].charAt(0)==c[2].charAt(1)?c[0].charAt(0)+c[1].charAt(0)+c[2].charAt(0):c.join("")}function h(e,t,r,n){return[V(H(n)),V(l(e).toString(16)),V(l(t).toString(16)),V(l(r).toString(16))].join("")}function f(e,t){t=0===t?0:t||10;var r=m(e).toHsl();return r.s-=t/100,r.s=M(r.s),m(r)}function O(e,t){t=0===t?0:t||10;var r=m(e).toHsl();return r.s+=t/100,r.s=M(r.s),m(r)}function v(e){return m(e).desaturate(100)}function j(e,t){t=0===t?0:t||10;var r=m(e).toHsl();return r.l+=t/100,r.l=M(r.l),m(r)}function y(e,t){t=0===t?0:t||10;var r=m(e).toRgb();return r.r=u(0,s(255,r.r-l(-t/100*255))),r.g=u(0,s(255,r.g-l(-t/100*255))),r.b=u(0,s(255,r.b-l(-t/100*255))),m(r)}function _(e,t){t=0===t?0:t||10;var r=m(e).toHsl();return r.l-=t/100,r.l=M(r.l),m(r)}function w(e,t){var r=m(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,m(r)}function k(e){var t=m(e).toHsl();return t.h=(t.h+180)%360,m(t)}function E(e){var t=m(e).toHsl(),r=t.h;return[m(e),m({h:(r+120)%360,s:t.s,l:t.l}),m({h:(r+240)%360,s:t.s,l:t.l})]}function C(e){var t=m(e).toHsl(),r=t.h;return[m(e),m({h:(r+90)%360,s:t.s,l:t.l}),m({h:(r+180)%360,s:t.s,l:t.l}),m({h:(r+270)%360,s:t.s,l:t.l})]}function x(e){var t=m(e).toHsl(),r=t.h;return[m(e),m({h:(r+72)%360,s:t.s,l:t.l}),m({h:(r+216)%360,s:t.s,l:t.l})]}function S(e,t,r){t=t||6,r=r||30;var n=m(e).toHsl(),c=360/r,o=[m(e)];for(n.h=(n.h-(c*t>>1)+720)%360;--t;)n.h=(n.h+c)%360,o.push(m(n));return o}function P(e,t){t=t||6;for(var r=m(e).toHsv(),n=r.h,c=r.s,o=r.v,a=[],i=1/t;t--;)a.push(m({h:n,s:c,v:o})),o=(o+i)%1;return a}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,r,n=this.toRgb();return e=n.r/255,t=n.g/255,r=n.b/255,.2126*(e<=.03928?e/12.92:c.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:c.pow((t+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:c.pow((r+.055)/1.055,2.4))},setAlpha:function(e){return this._a=z(e),this._roundA=l(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=l(360*e.h),r=l(100*e.s),n=l(100*e.v);return 1==this._a?"hsv("+t+", "+r+"%, "+n+"%)":"hsva("+t+", "+r+"%, "+n+"%, "+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),r=l(100*e.s),n=l(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,c){var o=[V(l(e).toString(16)),V(l(t).toString(16)),V(l(r).toString(16)),V(H(n))];if(c&&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*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)&&(T[g(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+h(this._r,this._g,this._b,this._a),r=t,n=this._gradientType?"GradientType = 1, ":"";if(e){var c=m(e);r="#"+h(c._r,c._g,c._b,c._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 m(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(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(O,arguments)},greyscale:function(){return this._applyModification(v,arguments)},spin:function(){return this._applyModification(w,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(k,arguments)},monochromatic:function(){return this._applyCombination(P,arguments)},splitcomplement:function(){return this._applyCombination(x,arguments)},triad:function(){return this._applyCombination(E,arguments)},tetrad:function(){return this._applyCombination(C,arguments)}},m.fromRatio=function(e,t){if("object"==typeof e){var r={};for(var n in e)e.hasOwnProperty(n)&&(r[n]="a"===n?e[n]:A(e[n]));e=r}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,r){r=0===r?0:r||50;var n=m(e).toRgb(),c=m(t).toRgb(),o=r/100;return m({r:(c.r-n.r)*o+n.r,g:(c.g-n.g)*o+n.g,b:(c.b-n.b)*o+n.b,a:(c.a-n.a)*o+n.a})},m.readability=function(e,t){var r=m(e),n=m(t);return(c.max(r.getLuminance(),n.getLuminance())+.05)/(c.min(r.getLuminance(),n.getLuminance())+.05)},m.isReadable=function(e,t,r){var n,c,o=m.readability(e,t);switch(c=!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":c=o>=4.5;break;case"AAlarge":c=o>=3;break;case"AAAsmall":c=o>=7}return c},m.mostReadable=function(e,t,r){var n,c,o,a,i=null,l=0;c=(r=r||{}).includeFallbackColors,o=r.level,a=r.size;for(var s=0;s<t.length;s++)(n=m.readability(e,t[s]))>l&&(l=n,i=m(t[s]));return m.isReadable(e,i,{level:o,size:a})||!c?i:(r.includeFallbackColors=!1,m.mostReadable(e,["#fff","#000"],r))};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"},T=m.hexNames=function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}(B);function z(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 r=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=s(t,u(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),c.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function M(e){return s(1,u(0,e))}function R(e){return parseInt(e,16)}function V(e){return 1==e.length?"0"+e:""+e}function A(e){return e<=1&&(e=100*e+"%"),e}function H(e){return c.round(255*parseFloat(e)).toString(16)}function L(e){return R(e)/255}var I,D,G,F=(D="[\\s|\\(]+("+(I="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+I+")[,|\\s]+("+I+")\\s*\\)?",G="[\\s|\\(]+("+I+")[,|\\s]+("+I+")[,|\\s]+("+I+")[,|\\s]+("+I+")\\s*\\)?",{CSS_UNIT:new RegExp(I),rgb:new RegExp("rgb"+D),rgba:new RegExp("rgba"+G),hsl:new RegExp("hsl"+D),hsla:new RegExp("hsla"+G),hsv:new RegExp("hsv"+D),hsva:new RegExp("hsva"+G),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 U(e){return!!F.CSS_UNIT.exec(e)}e.exports?e.exports=m:void 0===(n=function(){return m}.call(t,r,t,e))||(e.exports=n)}(Math)},7:function(e,t){!function(){e.exports=this.wp.primitives}()},75:function(e,t){!function(){e.exports=this.wp.date}()},8:function(e,t,r){"use strict";function n(){return(n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}r.d(t,"a",(function(){return n}))},83:function(e,t){!function(){e.exports=this.wp.coreData}()},87:function(e,t){!function(){e.exports=this.wp.serverSideRender}()},9:function(e,t,r){var n; /*! Copyright (c) 2017 Jed Watson. Licensed under the MIT License (MIT), see diff --git a/wp-includes/js/dist/blocks.js b/wp-includes/js/dist/blocks.js index a974824207..e009c2a45a 100644 --- a/wp-includes/js/dist/blocks.js +++ b/wp-includes/js/dist/blocks.js @@ -12065,17 +12065,22 @@ var paste_handler_window = window, /** * Filters HTML to only contain phrasing content. * - * @param {string} HTML The HTML to filter. + * @param {string} HTML The HTML to filter. + * @param {boolean} preserveWhiteSpace Whether or not to preserve consequent white space. * * @return {string} HTML only containing phrasing content. */ -function filterInlineHTML(HTML) { +function filterInlineHTML(HTML, preserveWhiteSpace) { HTML = deepFilterHTML(HTML, [googleDocsUIdRemover, phrasingContentReducer, commentRemover]); HTML = Object(external_this_wp_dom_["removeInvalidHTML"])(HTML, Object(external_this_wp_dom_["getPhrasingContentSchema"])('paste'), { inline: true }); - HTML = deepFilterHTML(HTML, [htmlFormattingRemover, brRemover]); // Allows us to ask for this information when we get a report. + + if (!preserveWhiteSpace) { + HTML = deepFilterHTML(HTML, [htmlFormattingRemover, brRemover]); + } // Allows us to ask for this information when we get a report. + paste_handler_console.log('Processed inline HTML:\n\n', HTML); return HTML; @@ -12142,6 +12147,7 @@ function htmlToBlocks(_ref) { * * 'INLINE': Always handle as inline content, and return string. * * 'BLOCKS': Always handle as blocks, and return array of blocks. * @param {Array} [options.tagName] The tag into which content will be inserted. + * @param {boolean} [options.preserveWhiteSpace] Whether or not to preserve consequent white space. * * @return {Array|string} A list of blocks or a string, depending on `handlerMode`. */ @@ -12154,7 +12160,8 @@ function pasteHandler(_ref3) { plainText = _ref3$plainText === void 0 ? '' : _ref3$plainText, _ref3$mode = _ref3.mode, mode = _ref3$mode === void 0 ? 'AUTO' : _ref3$mode, - tagName = _ref3.tagName; + tagName = _ref3.tagName, + preserveWhiteSpace = _ref3.preserveWhiteSpace; // First of all, strip any meta tags. HTML = HTML.replace(/<meta[^>]+>/g, ''); // Strip Windows markers. @@ -12197,7 +12204,7 @@ function pasteHandler(_ref3) { } if (mode === 'INLINE') { - return filterInlineHTML(HTML); + return filterInlineHTML(HTML, preserveWhiteSpace); } // An array of HTML strings and block objects. The blocks replace matched // shortcodes. @@ -12209,7 +12216,7 @@ function pasteHandler(_ref3) { var hasShortcodes = pieces.length > 1; if (mode === 'AUTO' && !hasShortcodes && isInlineContent(HTML, tagName)) { - return filterInlineHTML(HTML); + return filterInlineHTML(HTML, preserveWhiteSpace); } var rawTransforms = getRawTransformations(); diff --git a/wp-includes/js/dist/blocks.min.js b/wp-includes/js/dist/blocks.min.js index 7f5313c754..3db55ead31 100644 --- a/wp-includes/js/dist/blocks.min.js +++ b/wp-includes/js/dist/blocks.min.js @@ -1,3 +1,3 @@ /*! This file is auto-generated */ 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=459)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},10:function(e,t){!function(){e.exports=this.wp.compose}()},105:function(e,t){!function(){e.exports=this.wp.autop}()},12:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(38);var a=r(30),o=r(39);function i(e,t){return Object(n.a)(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,a=!1,o=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){a=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(a)throw o}}return r}}(e,t)||Object(a.a)(e,t)||Object(o.a)()}},130:function(e,t){!function(){e.exports=this.wp.shortcode}()},149:function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var n=r(38),a=r(37),o=r(30),i=r(39);function s(e){return Object(n.a)(e)||Object(a.a)(e)||Object(o.a)(e)||Object(i.a)()}},17:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(27);var a=r(37),o=r(30);function i(e){return function(e){if(Array.isArray(e))return Object(n.a)(e)}(e)||Object(a.a)(e)||Object(o.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},2:function(e,t){!function(){e.exports=this.lodash}()},208:function(e,t,r){"use strict";var n=r(0),a=r(7),o=Object(n.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(a.Path,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"}));t.a=o},21:function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}r.d(t,"a",(function(){return n}))},22:function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function a(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}r.d(t,"a",(function(){return a}))},27:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,"a",(function(){return n}))},283:function(e,t){!function(){e.exports=this.wp.blockSerializationDefaultParser}()},284:function(e,t,r){var n;/*! showdown v 1.9.1 - 02-11-2019 */ -(function(){function a(e){"use strict";var t={omitExtraWLInCodeBlocks:{defaultValue:!1,describe:"Omit the default extra whiteline added to code blocks",type:"boolean"},noHeaderId:{defaultValue:!1,describe:"Turn on/off generated header id",type:"boolean"},prefixHeaderId:{defaultValue:!1,describe:"Add a prefix to the generated header ids. Passing a string will prefix that string to the header id. Setting to true will add a generic 'section-' prefix",type:"string"},rawPrefixHeaderId:{defaultValue:!1,describe:'Setting this option to true will prevent showdown from modifying the prefix. This might result in malformed IDs (if, for instance, the " char is used in the prefix)',type:"boolean"},ghCompatibleHeaderId:{defaultValue:!1,describe:"Generate header ids compatible with github style (spaces are replaced with dashes, a bunch of non alphanumeric chars are removed)",type:"boolean"},rawHeaderId:{defaultValue:!1,describe:"Remove only spaces, ' and \" from generated header ids (including prefixes), replacing them with dashes (-). WARNING: This might result in malformed ids",type:"boolean"},headerLevelStart:{defaultValue:!1,describe:"The header blocks level start",type:"integer"},parseImgDimensions:{defaultValue:!1,describe:"Turn on/off image dimension parsing",type:"boolean"},simplifiedAutoLink:{defaultValue:!1,describe:"Turn on/off GFM autolink style",type:"boolean"},excludeTrailingPunctuationFromURLs:{defaultValue:!1,describe:"Excludes trailing punctuation from links generated with autoLinking",type:"boolean"},literalMidWordUnderscores:{defaultValue:!1,describe:"Parse midword underscores as literal underscores",type:"boolean"},literalMidWordAsterisks:{defaultValue:!1,describe:"Parse midword asterisks as literal asterisks",type:"boolean"},strikethrough:{defaultValue:!1,describe:"Turn on/off strikethrough support",type:"boolean"},tables:{defaultValue:!1,describe:"Turn on/off tables support",type:"boolean"},tablesHeaderId:{defaultValue:!1,describe:"Add an id to table headers",type:"boolean"},ghCodeBlocks:{defaultValue:!0,describe:"Turn on/off GFM fenced code blocks support",type:"boolean"},tasklists:{defaultValue:!1,describe:"Turn on/off GFM tasklist support",type:"boolean"},smoothLivePreview:{defaultValue:!1,describe:"Prevents weird effects in live previews due to incomplete input",type:"boolean"},smartIndentationFix:{defaultValue:!1,description:"Tries to smartly fix indentation in es6 strings",type:"boolean"},disableForced4SpacesIndentedSublists:{defaultValue:!1,description:"Disables the requirement of indenting nested sublists by 4 spaces",type:"boolean"},simpleLineBreaks:{defaultValue:!1,description:"Parses simple line breaks as <br> (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: <div>foo</div>",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 `<em>` and `<strong>`",type:"boolean"},completeHTMLDocument:{defaultValue:!1,description:"Outputs a complete html document, including `<html>`, `<head>` and `<body>` 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 o={},i={},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 f(e,t){"use strict";var r=t?"Error in "+t+" extension->":"Error in unnamed extension",n={valid:!0,error:""};o.helper.isArray(e)||(e=[e]);for(var a=0;a<e.length;++a){var i=r+" sub-extension "+a+": ",s=e[a];if("object"!=typeof s)return n.valid=!1,n.error=i+"must be an object, but "+typeof s+" given",n;if(!o.helper.isString(s.type))return n.valid=!1,n.error=i+'property "type" must be a string, but '+typeof s.type+" given",n;var c=s.type=s.type.toLowerCase();if("language"===c&&(c=s.type="lang"),"html"===c&&(c=s.type="output"),"lang"!==c&&"output"!==c&&"listener"!==c)return n.valid=!1,n.error=i+"type "+c+' is not recognized. Valid values: "lang/language", "output/html" or "listener"',n;if("listener"===c){if(o.helper.isUndefined(s.listeners))return n.valid=!1,n.error=i+'. Extensions of type "listener" must have a property called "listeners"',n}else if(o.helper.isUndefined(s.filter)&&o.helper.isUndefined(s.regex))return n.valid=!1,n.error=i+c+' extensions must define either a "regex" property or a "filter" method',n;if(s.listeners){if("object"!=typeof s.listeners)return n.valid=!1,n.error=i+'"listeners" property must be an object but '+typeof s.listeners+" given",n;for(var u in s.listeners)if(s.listeners.hasOwnProperty(u)&&"function"!=typeof s.listeners[u])return n.valid=!1,n.error=i+'"listeners" property must be an hash of [event name]: [callback]. listeners.'+u+" must be a function but "+typeof s.listeners[u]+" given",n}if(s.filter){if("function"!=typeof s.filter)return n.valid=!1,n.error=i+'"filter" must be a function, but '+typeof s.filter+" given",n}else if(s.regex){if(o.helper.isString(s.regex)&&(s.regex=new RegExp(s.regex,"g")),!(s.regex instanceof RegExp))return n.valid=!1,n.error=i+'"regex" property must either be a string or a RegExp object, but '+typeof s.regex+" given",n;if(o.helper.isUndefined(s.replace))return n.valid=!1,n.error=i+'"regex" extensions must implement a replace string or function',n}}return n}function d(e,t){"use strict";return"¨E"+t.charCodeAt(0)+"E"}o.helper={},o.extensions={},o.setOption=function(e,t){"use strict";return c[e]=t,this},o.getOption=function(e){"use strict";return c[e]},o.getOptions=function(){"use strict";return c},o.resetOptions=function(){"use strict";c=a(!0)},o.setFlavor=function(e){"use strict";if(!l.hasOwnProperty(e))throw Error(e+" flavor was not found");o.resetOptions();var t=l[e];for(var r in u=e,t)t.hasOwnProperty(r)&&(c[r]=t[r])},o.getFlavor=function(){"use strict";return u},o.getFlavorOptions=function(e){"use strict";if(l.hasOwnProperty(e))return l[e]},o.getDefaultOptions=function(e){"use strict";return a(e)},o.subParser=function(e,t){"use strict";if(o.helper.isString(e)){if(void 0===t){if(i.hasOwnProperty(e))return i[e];throw Error("SubParser named "+e+" not registered!")}i[e]=t}},o.extension=function(e,t){"use strict";if(!o.helper.isString(e))throw Error("Extension 'name' must be a string");if(e=o.helper.stdExtName(e),o.helper.isUndefined(t)){if(!s.hasOwnProperty(e))throw Error("Extension named "+e+" is not registered!");return s[e]}"function"==typeof t&&(t=t()),o.helper.isArray(t)||(t=[t]);var r=f(t,e);if(!r.valid)throw Error(r.error);s[e]=t},o.getAllExtensions=function(){"use strict";return s},o.removeExtension=function(e){"use strict";delete s[e]},o.resetExtensions=function(){"use strict";s={}},o.validateExtension=function(e){"use strict";var t=f(e,null);return!!t.valid||(console.warn(t.error),!1)},o.hasOwnProperty("helper")||(o.helper={}),o.helper.isString=function(e){"use strict";return"string"==typeof e||e instanceof String},o.helper.isFunction=function(e){"use strict";return e&&"[object Function]"==={}.toString.call(e)},o.helper.isArray=function(e){"use strict";return Array.isArray(e)},o.helper.isUndefined=function(e){"use strict";return void 0===e},o.helper.forEach=function(e,t){"use strict";if(o.helper.isUndefined(e))throw new Error("obj param is required");if(o.helper.isUndefined(t))throw new Error("callback param is required");if(!o.helper.isFunction(t))throw new Error("callback param must be a function/closure");if("function"==typeof e.forEach)e.forEach(t);else if(o.helper.isArray(e))for(var r=0;r<e.length;r++)t(e[r],r,e);else{if("object"!=typeof e)throw new Error("obj does not seem to be an array or an iterable object");for(var n in e)e.hasOwnProperty(n)&&t(e[n],n,e)}},o.helper.stdExtName=function(e){"use strict";return e.replace(/[_?*+\/\\.^-]/g,"").replace(/\s/g,"").toLowerCase()},o.helper.escapeCharactersCallback=d,o.helper.escapeCharacters=function(e,t,r){"use strict";var n="(["+t.replace(/([\[\]\\])/g,"\\$1")+"])";r&&(n="\\\\"+n);var a=new RegExp(n,"g");return e=e.replace(a,d)},o.helper.unescapeHTMLEntities=function(e){"use strict";return e.replace(/"/g,'"').replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&")};var p=function(e,t,r,n){"use strict";var a,o,i,s,c,u=n||"",l=u.indexOf("g")>-1,f=new RegExp(t+"|"+r,"g"+u.replace(/g/g,"")),d=new RegExp(t,u.replace(/g/g,"")),p=[];do{for(a=0;i=f.exec(e);)if(d.test(i[0]))a++||(s=(o=f.lastIndex)-i[0].length);else if(a&&!--a){c=i.index+i[0].length;var h={left:{start:s,end:o},match:{start:o,end:i.index},right:{start:i.index,end:c},wholeMatch:{start:s,end:c}};if(p.push(h),!l)return p}}while(a&&(f.lastIndex=o));return p};o.helper.matchRecursiveRegExp=function(e,t,r,n){"use strict";for(var a=p(e,t,r,n),o=[],i=0;i<a.length;++i)o.push([e.slice(a[i].wholeMatch.start,a[i].wholeMatch.end),e.slice(a[i].match.start,a[i].match.end),e.slice(a[i].left.start,a[i].left.end),e.slice(a[i].right.start,a[i].right.end)]);return o},o.helper.replaceRecursiveRegExp=function(e,t,r,n,a){"use strict";if(!o.helper.isFunction(t)){var i=t;t=function(){return i}}var s=p(e,r,n,a),c=e,u=s.length;if(u>0){var l=[];0!==s[0].wholeMatch.start&&l.push(e.slice(0,s[0].wholeMatch.start));for(var f=0;f<u;++f)l.push(t(e.slice(s[f].wholeMatch.start,s[f].wholeMatch.end),e.slice(s[f].match.start,s[f].match.end),e.slice(s[f].left.start,s[f].left.end),e.slice(s[f].right.start,s[f].right.end))),f<u-1&&l.push(e.slice(s[f].wholeMatch.end,s[f+1].wholeMatch.start));s[u-1].wholeMatch.end<e.length&&l.push(e.slice(s[u-1].wholeMatch.end)),c=l.join("")}return c},o.helper.regexIndexOf=function(e,t,r){"use strict";if(!o.helper.isString(e))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";if(t instanceof RegExp==!1)throw"InvalidArgumentError: second parameter of showdown.helper.regexIndexOf function must be an instance of RegExp";var n=e.substring(r||0).search(t);return n>=0?n+(r||0):n},o.helper.splitAtIndex=function(e,t){"use strict";if(!o.helper.isString(e))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";return[e.substring(0,t),e.substring(t)]},o.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}))},o.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}}),o.helper.regexes={asteriskDashAndColon:/([*_:~])/g},o.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:'<img alt=":octocat:" height="20" width="20" align="absmiddle" src="https://assets-cdn.github.com/images/icons/emoji/octocat.png">',showdown:"<span style=\"font-family: 'Anonymous Pro', monospace; text-decoration: underline; text-decoration-style: dashed; text-decoration-color: #3e8b8a;text-underline-position: under;\">S</span>"},o.Converter=function(e){"use strict";var t={},r=[],n=[],a={},i=u,d={parsed:{},raw:"",format:""};function p(e,t){if(t=t||null,o.helper.isString(e)){if(t=e=o.helper.stdExtName(e),o.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 o.Converter));o.helper.isArray(e)||(e=[e]);var a=f(e,t);if(!a.valid)throw Error(a.error);for(var i=0;i<e.length;++i)switch(e[i].type){case"lang":r.push(e[i]);break;case"output":n.push(e[i]);break;default:throw Error("Extension loader error: Type unrecognized!!!")}}(o.extensions[e],e);if(o.helper.isUndefined(s[e]))throw Error('Extension "'+e+'" could not be loaded. It was either not found or is not a valid extension.');e=s[e]}"function"==typeof e&&(e=e()),o.helper.isArray(e)||(e=[e]);var a=f(e,t);if(!a.valid)throw Error(a.error);for(var i=0;i<e.length;++i){switch(e[i].type){case"lang":r.push(e[i]);break;case"output":n.push(e[i])}if(e[i].hasOwnProperty("listeners"))for(var c in e[i].listeners)e[i].listeners.hasOwnProperty(c)&&h(c,e[i].listeners[c])}}function h(e,t){if(!o.helper.isString(e))throw Error("Invalid argument in converter.listen() method: name must be a string, but "+typeof e+" given");if("function"!=typeof t)throw Error("Invalid argument in converter.listen() method: callback must be a function, but "+typeof t+" given");a.hasOwnProperty(e)||(a[e]=[]),a[e].push(t)}!function(){for(var r in e=e||{},c)c.hasOwnProperty(r)&&(t[r]=c[r]);if("object"!=typeof e)throw Error("Converter expects the passed parameter to be an object, but "+typeof e+" was passed instead.");for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.extensions&&o.helper.forEach(t.extensions,p)}(),this._dispatch=function(e,t,r,n){if(a.hasOwnProperty(e))for(var o=0;o<a[e].length;++o){var i=a[e][o](e,t,this,r,n);i&&void 0!==i&&(t=i)}return t},this.listen=function(e,t){return h(e,t),this},this.makeHtml=function(e){if(!e)return e;var a={gHtmlBlocks:[],gHtmlMdBlocks:[],gHtmlSpans:[],gUrls:{},gTitles:{},gDimensions:{},gListLevel:0,hashLinkCounts:{},langExtensions:r,outputModifiers:n,converter:this,ghCodeBlocks:[],metadata:{parsed:{},raw:"",format:""}};return e=(e=(e=(e=(e=e.replace(/¨/g,"¨T")).replace(/\$/g,"¨D")).replace(/\r\n/g,"\n")).replace(/\r/g,"\n")).replace(/\u00A0/g," "),t.smartIndentationFix&&(e=function(e){var t=e.match(/^\s*/)[0].length,r=new RegExp("^\\s{0,"+t+"}","gm");return e.replace(r,"")}(e)),e="\n\n"+e+"\n\n",e=(e=o.subParser("detab")(e,t,a)).replace(/^[ \t]+$/gm,""),o.helper.forEach(r,(function(r){e=o.subParser("runExtension")(r,e,t,a)})),e=o.subParser("metadata")(e,t,a),e=o.subParser("hashPreCodeTags")(e,t,a),e=o.subParser("githubCodeBlocks")(e,t,a),e=o.subParser("hashHTMLBlocks")(e,t,a),e=o.subParser("hashCodeTags")(e,t,a),e=o.subParser("stripLinkDefinitions")(e,t,a),e=o.subParser("blockGamut")(e,t,a),e=o.subParser("unhashHTMLSpans")(e,t,a),e=(e=(e=o.subParser("unescapeSpecialChars")(e,t,a)).replace(/¨D/g,"$$")).replace(/¨T/g,"¨"),e=o.subParser("completeHTMLDocument")(e,t,a),o.helper.forEach(n,(function(r){e=o.subParser("runExtension")(r,e,t,a)})),d=a.metadata,e},this.makeMarkdown=this.makeMd=function(e,t){if(e=(e=(e=e.replace(/\r\n/g,"\n")).replace(/\r/g,"\n")).replace(/>[ \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<t.length;++n)if(1===t[n].childElementCount&&"code"===t[n].firstChild.tagName.toLowerCase()){var a=t[n].firstChild.innerHTML.trim(),i=t[n].firstChild.getAttribute("data-language")||"";if(""===i)for(var s=t[n].firstChild.className.split(" "),c=0;c<s.length;++c){var u=s[c].match(/^language-(.+)$/);if(null!==u){i=u[1];break}}a=o.helper.unescapeHTMLEntities(a),r.push(a),t[n].outerHTML='<precode language="'+i+'" precodenum="'+n.toString()+'"></precode>'}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<t.childNodes.length;++r){var n=t.childNodes[r];3===n.nodeType?/\S/.test(n.nodeValue)?(n.nodeValue=n.nodeValue.split("\n").join(" "),n.nodeValue=n.nodeValue.replace(/(\s)+/g,"$1")):(t.removeChild(n),--r):1===n.nodeType&&e(n)}}(r);for(var a=r.childNodes,i="",s=0;s<a.length;s++)i+=o.subParser("makeMarkdown.node")(a[s],n);return i},this.setOption=function(e,r){t[e]=r},this.getOption=function(e){return t[e]},this.getOptions=function(){return t},this.addExtension=function(e,t){p(e,t=t||null)},this.useExtension=function(e){p(e)},this.setFlavor=function(e){if(!l.hasOwnProperty(e))throw Error(e+" flavor was not found");var r=l[e];for(var n in i=e,r)r.hasOwnProperty(n)&&(t[n]=r[n])},this.getFlavor=function(){return i},this.removeExtension=function(e){o.helper.isArray(e)||(e=[e]);for(var t=0;t<e.length;++t){for(var a=e[t],i=0;i<r.length;++i)r[i]===a&&r[i].splice(i,1);for(;0<n.length;++i)n[0]===a&&n[0].splice(i,1)}},this.getAllExtensions=function(){return{language:r,output:n}},this.getMetadata=function(e){return e?d.raw:d.parsed},this.getMetadataFormat=function(){return d.format},this._setMetadataPair=function(e,t){d.parsed[e]=t},this._setMetadataFormat=function(e){d.format=e},this._setMetadataRaw=function(e){d.raw=e}},o.subParser("anchors",(function(e,t,r){"use strict";var n=function(e,n,a,i,s,c,u){if(o.helper.isUndefined(u)&&(u=""),a=a.toLowerCase(),e.search(/\(<?\s*>? ?(['"].*['"])?\)$/m)>-1)i="";else if(!i){if(a||(a=n.toLowerCase().replace(/ ?\n/g," ")),i="#"+a,o.helper.isUndefined(r.gUrls[a]))return e;i=r.gUrls[a],o.helper.isUndefined(r.gTitles[a])||(u=r.gTitles[a])}var l='<a href="'+(i=i.replace(o.helper.regexes.asteriskDashAndColon,o.helper.escapeCharactersCallback))+'"';return""!==u&&null!==u&&(l+=' title="'+(u=(u=u.replace(/"/g,""")).replace(o.helper.regexes.asteriskDashAndColon,o.helper.escapeCharactersCallback))+'"'),t.openLinksInNewWindow&&!/^#/.test(i)&&(l+=' rel="noopener noreferrer" target="¨E95Eblank"'),l+=">"+n+"</a>"};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]?<?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?:[ \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,i){if("\\"===n)return r+a;if(!o.helper.isString(t.ghMentionsLink))throw new Error("ghMentionsLink option must be a string");var s=t.ghMentionsLink.replace(/\{u}/g,i),c="";return t.openLinksInNewWindow&&(c=' rel="noopener noreferrer" target="¨E95Eblank"'),r+'<a href="'+s+'"'+c+">"+a+"</a>"}))),e=r.converter._dispatch("anchors.after",e,t,r)}));var h=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+?\.[^'">\s]+?)()(\1)?(?=\s|$)(?!["<>])/gi,b=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+?)([.!?,()\[\]])?(\1)?(?=\s|$)(?!["<>])/gi,g=/()<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)()>()/gi,m=/(^|\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,i,s,c){var u=n=n.replace(o.helper.regexes.asteriskDashAndColon,o.helper.escapeCharactersCallback),l="",f="",d=r||"",p=c||"";return/^www\./i.test(n)&&(n=n.replace(/^www\./i,"http://www.")),e.excludeTrailingPunctuationFromURLs&&s&&(l=s),e.openLinksInNewWindow&&(f=' rel="noopener noreferrer" target="¨E95Eblank"'),d+'<a href="'+n+'"'+f+">"+u+"</a>"+l+p}},w=function(e,t){"use strict";return function(r,n,a){var i="mailto:";return n=n||"",a=o.subParser("unescapeSpecialChars")(a,e,t),e.encodeEmails?(i=o.helper.encodeEmailAddress(i+a),a=o.helper.encodeEmailAddress(a)):i+=a,n+'<a href="'+i+'">'+a+"</a>"}};o.subParser("autoLinks",(function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("autoLinks.before",e,t,r)).replace(g,v(t))).replace(_,w(t,r)),e=r.converter._dispatch("autoLinks.after",e,t,r)})),o.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(b,v(t)):e.replace(h,v(t))).replace(m,w(t,r)),e=r.converter._dispatch("simplifiedAutoLinks.after",e,t,r)):e})),o.subParser("blockGamut",(function(e,t,r){"use strict";return e=r.converter._dispatch("blockGamut.before",e,t,r),e=o.subParser("blockQuotes")(e,t,r),e=o.subParser("headers")(e,t,r),e=o.subParser("horizontalRule")(e,t,r),e=o.subParser("lists")(e,t,r),e=o.subParser("codeBlocks")(e,t,r),e=o.subParser("tables")(e,t,r),e=o.subParser("hashHTMLBlocks")(e,t,r),e=o.subParser("paragraphs")(e,t,r),e=r.converter._dispatch("blockGamut.after",e,t,r)})),o.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=o.subParser("githubCodeBlocks")(e,t,r),e=(e=(e=o.subParser("blockGamut")(e,t,r)).replace(/(^|\n)/g,"$1 ")).replace(/(\s*<pre>[^\r]+?<\/pre>)/gm,(function(e,t){var r=t;return r=(r=r.replace(/^ /gm,"¨0")).replace(/¨0/g,"")})),o.subParser("hashBlock")("<blockquote>\n"+e+"\n</blockquote>",t,r)})),e=r.converter._dispatch("blockQuotes.after",e,t,r)})),o.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 i=n,s=a,c="\n";return i=o.subParser("outdent")(i,t,r),i=o.subParser("encodeCode")(i,t,r),i=(i=(i=o.subParser("detab")(i,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,""),t.omitExtraWLInCodeBlocks&&(c=""),i="<pre><code>"+i+c+"</code></pre>",o.subParser("hashBlock")(i,t,r)+s}))).replace(/¨0/,""),e=r.converter._dispatch("codeBlocks.after",e,t,r)})),o.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,i){var s=i;return s=(s=s.replace(/^([ \t]*)/g,"")).replace(/[ \t]*$/g,""),s=n+"<code>"+(s=o.subParser("encodeCode")(s,t,r))+"</code>",s=o.subParser("hashHTMLSpans")(s,t,r)})),e=r.converter._dispatch("codeSpans.after",e,t,r)})),o.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="<!DOCTYPE HTML>\n",o="",i='<meta charset="utf-8">\n',s="",c="";for(var u in void 0!==r.metadata.parsed.doctype&&(a="<!DOCTYPE "+r.metadata.parsed.doctype+">\n","html"!==(n=r.metadata.parsed.doctype.toString().toLowerCase())&&"html5"!==n||(i='<meta charset="utf-8">')),r.metadata.parsed)if(r.metadata.parsed.hasOwnProperty(u))switch(u.toLowerCase()){case"doctype":break;case"title":o="<title>"+r.metadata.parsed.title+"</title>\n";break;case"charset":i="html"===n||"html5"===n?'<meta charset="'+r.metadata.parsed.charset+'">\n':'<meta name="charset" content="'+r.metadata.parsed.charset+'">\n';break;case"language":case"lang":s=' lang="'+r.metadata.parsed[u]+'"',c+='<meta name="'+u+'" content="'+r.metadata.parsed[u]+'">\n';break;default:c+='<meta name="'+u+'" content="'+r.metadata.parsed[u]+'">\n'}return e=a+"<html"+s+">\n<head>\n"+o+i+c+"</head>\n<body>\n"+e.trim()+"\n</body>\n</html>",e=r.converter._dispatch("completeHTMLDocument.after",e,t,r)})),o.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<n;a++)r+=" ";return r}))).replace(/¨A/g," ")).replace(/¨B/g,""),e=r.converter._dispatch("detab.after",e,t,r)})),o.subParser("ellipsis",(function(e,t,r){"use strict";return e=(e=r.converter._dispatch("ellipsis.before",e,t,r)).replace(/\.\.\./g,"…"),e=r.converter._dispatch("ellipsis.after",e,t,r)})),o.subParser("emoji",(function(e,t,r){"use strict";if(!t.emoji)return e;return e=(e=r.converter._dispatch("emoji.before",e,t,r)).replace(/:([\S]+?):/g,(function(e,t){return o.helper.emojis.hasOwnProperty(t)?o.helper.emojis[t]:e})),e=r.converter._dispatch("emoji.after",e,t,r)})),o.subParser("encodeAmpsAndAngles",(function(e,t,r){"use strict";return e=(e=(e=(e=(e=r.converter._dispatch("encodeAmpsAndAngles.before",e,t,r)).replace(/&(?!#?[xX]?(?:[0-9a-fA-F]+|\w+);)/g,"&")).replace(/<(?![a-z\/?$!])/gi,"<")).replace(/</g,"<")).replace(/>/g,">"),e=r.converter._dispatch("encodeAmpsAndAngles.after",e,t,r)})),o.subParser("encodeBackslashEscapes",(function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("encodeBackslashEscapes.before",e,t,r)).replace(/\\(\\)/g,o.helper.escapeCharactersCallback)).replace(/\\([`*_{}\[\]()>#+.!~=|-])/g,o.helper.escapeCharactersCallback),e=r.converter._dispatch("encodeBackslashEscapes.after",e,t,r)})),o.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,">").replace(/([*_{}\[\]\\=~-])/g,o.helper.escapeCharactersCallback),e=r.converter._dispatch("encodeCode.after",e,t,r)})),o.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,o.helper.escapeCharactersCallback)}))).replace(/<!(--(?:(?:[^>-]|-[^>])(?:[^-]|-[^-])*)--)>/gi,(function(e){return e.replace(/([\\`*_~=|])/g,o.helper.escapeCharactersCallback)})),e=r.converter._dispatch("escapeSpecialCharsWithinTagAttributes.after",e,t,r)})),o.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,i){var s=t.omitExtraWLInCodeBlocks?"":"\n";return i=o.subParser("encodeCode")(i,t,r),i="<pre><code"+(a?' class="'+a+" language-"+a+'"':"")+">"+(i=(i=(i=o.subParser("detab")(i,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,""))+s+"</code></pre>",i=o.subParser("hashBlock")(i,t,r),"\n\n¨G"+(r.ghCodeBlocks.push({text:e,codeblock:i})-1)+"G\n\n"}))).replace(/¨0/,""),r.converter._dispatch("githubCodeBlocks.after",e,t,r)):e})),o.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)})),o.subParser("hashCodeTags",(function(e,t,r){"use strict";e=r.converter._dispatch("hashCodeTags.before",e,t,r);return e=o.helper.replaceRecursiveRegExp(e,(function(e,n,a,i){var s=a+o.subParser("encodeCode")(n,t,r)+i;return"¨C"+(r.gHtmlSpans.push(s)-1)+"C"}),"<code\\b[^>]*>","</code>","gim"),e=r.converter._dispatch("hashCodeTags.after",e,t,r)})),o.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"}})),o.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 o=e;return-1!==n.search(/\bmarkdown\b/)&&(o=n+r.converter.makeHtml(t)+a),"\n\n¨K"+(r.gHtmlBlocks.push(o)-1)+"K\n\n"};t.backslashEscapesHTMLTags&&(e=e.replace(/\\<(\/?[^>]+?)>/g,(function(e,t){return"<"+t+">"})));for(var i=0;i<n.length;++i)for(var s,c=new RegExp("^ {0,3}(<"+n[i]+"\\b[^>]*>)","im"),u="<"+n[i]+"\\b[^>]*>",l="</"+n[i]+">";-1!==(s=o.helper.regexIndexOf(e,c));){var f=o.helper.splitAtIndex(e,s),d=o.helper.replaceRecursiveRegExp(f[1],a,u,l,"im");if(d===f[1])break;e=f[0].concat(d)}return e=e.replace(/(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,o.subParser("hashElement")(e,t,r)),e=(e=o.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,o.subParser("hashElement")(e,t,r)),e=r.converter._dispatch("hashHTMLBlocks.after",e,t,r)})),o.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)})),o.subParser("unhashHTMLSpans",(function(e,t,r){"use strict";e=r.converter._dispatch("unhashHTMLSpans.before",e,t,r);for(var n=0;n<r.gHtmlSpans.length;++n){for(var a=r.gHtmlSpans[n],o=0;/¨C(\d+)C/.test(a);){var i=RegExp.$1;if(a=a.replace("¨C"+i+"C",r.gHtmlSpans[i]),10===o){console.error("maximum nesting of 10 spans reached!!!");break}++o}e=e.replace("¨C"+n+"C",a)}return e=r.converter._dispatch("unhashHTMLSpans.after",e,t,r)})),o.subParser("hashPreCodeTags",(function(e,t,r){"use strict";e=r.converter._dispatch("hashPreCodeTags.before",e,t,r);return e=o.helper.replaceRecursiveRegExp(e,(function(e,n,a,i){var s=a+o.subParser("encodeCode")(n,t,r)+i;return"\n\n¨G"+(r.ghCodeBlocks.push({text:e,codeblock:s})-1)+"G\n\n"}),"^ {0,3}<pre\\b[^>]*>\\s*<code\\b[^>]*>","^ {0,3}</code>\\s*</pre>","gim"),e=r.converter._dispatch("hashPreCodeTags.after",e,t,r)})),o.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,i=t.smoothLivePreview?/^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n-+[ \t]*\n+/gm;e=(e=e.replace(a,(function(e,a){var i=o.subParser("spanGamut")(a,t,r),s=t.noHeaderId?"":' id="'+c(a)+'"',u="<h"+n+s+">"+i+"</h"+n+">";return o.subParser("hashBlock")(u,t,r)}))).replace(i,(function(e,a){var i=o.subParser("spanGamut")(a,t,r),s=t.noHeaderId?"":' id="'+c(a)+'"',u=n+1,l="<h"+u+s+">"+i+"</h"+u+">";return o.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 i=e.match(/\{([^{]+?)}\s*$/);i&&i[1]&&(e=i[1])}return n=e,a=o.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,i){var s=i;t.customizedHeaderId&&(s=i.replace(/\s?\{([^{]+?)}\s*$/,""));var u=o.subParser("spanGamut")(s,t,r),l=t.noHeaderId?"":' id="'+c(i)+'"',f=n-1+a.length,d="<h"+f+l+">"+u+"</h"+f+">";return o.subParser("hashBlock")(d,t,r)})),e=r.converter._dispatch("headers.after",e,t,r)})),o.subParser("horizontalRule",(function(e,t,r){"use strict";e=r.converter._dispatch("horizontalRule.before",e,t,r);var n=o.subParser("hashBlock")("<hr />",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)})),o.subParser("images",(function(e,t,r){"use strict";function n(e,t,n,a,i,s,c,u){var l=r.gUrls,f=r.gTitles,d=r.gDimensions;if(n=n.toLowerCase(),u||(u=""),e.search(/\(<?\s*>? ?(['"].*['"])?\)$/m)>-1)a="";else if(""===a||null===a){if(""!==n&&null!==n||(n=t.toLowerCase().replace(/ ?\n/g," ")),a="#"+n,o.helper.isUndefined(l[n]))return e;a=l[n],o.helper.isUndefined(f[n])||(u=f[n]),o.helper.isUndefined(d[n])||(i=d[n].width,s=d[n].height)}t=t.replace(/"/g,""").replace(o.helper.regexes.asteriskDashAndColon,o.helper.escapeCharactersCallback);var p='<img src="'+(a=a.replace(o.helper.regexes.asteriskDashAndColon,o.helper.escapeCharactersCallback))+'" alt="'+t+'"';return u&&o.helper.isString(u)&&(p+=' title="'+(u=u.replace(/"/g,""").replace(o.helper.regexes.asteriskDashAndColon,o.helper.escapeCharactersCallback))+'"'),i&&s&&(p+=' width="'+(i="*"===i?"auto":i)+'"',p+=' height="'+(s="*"===s?"auto":s)+'"'),p+=" />"}return e=(e=(e=(e=(e=(e=r.converter._dispatch("images.before",e,t,r)).replace(/!\[([^\]]*?)] ?(?:\n *)?\[([\s\S]*?)]()()()()()/g,n)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]?<?(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,(function(e,t,r,a,o,i,s,c){return n(e,t,r,a=a.replace(/\s/g,""),o,i,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]?<?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?: =([*\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)})),o.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,"<strong><em>","</em></strong>")}))).replace(/\b__(\S[\s\S]*?)__\b/g,(function(e,t){return n(t,"<strong>","</strong>")}))).replace(/\b_(\S[\s\S]*?)_\b/g,(function(e,t){return n(t,"<em>","</em>")})):(e=(e=e.replace(/___(\S[\s\S]*?)___/g,(function(e,t){return/\S$/.test(t)?n(t,"<strong><em>","</em></strong>"):e}))).replace(/__(\S[\s\S]*?)__/g,(function(e,t){return/\S$/.test(t)?n(t,"<strong>","</strong>"):e}))).replace(/_([^\s_][\s\S]*?)_/g,(function(e,t){return/\S$/.test(t)?n(t,"<em>","</em>"):e})),e=t.literalMidWordAsterisks?(e=(e=e.replace(/([^*]|^)\B\*\*\*(\S[\s\S]*?)\*\*\*\B(?!\*)/g,(function(e,t,r){return n(r,t+"<strong><em>","</em></strong>")}))).replace(/([^*]|^)\B\*\*(\S[\s\S]*?)\*\*\B(?!\*)/g,(function(e,t,r){return n(r,t+"<strong>","</strong>")}))).replace(/([^*]|^)\B\*(\S[\s\S]*?)\*\B(?!\*)/g,(function(e,t,r){return n(r,t+"<em>","</em>")})):(e=(e=e.replace(/\*\*\*(\S[\s\S]*?)\*\*\*/g,(function(e,t){return/\S$/.test(t)?n(t,"<strong><em>","</em></strong>"):e}))).replace(/\*\*(\S[\s\S]*?)\*\*/g,(function(e,t){return/\S$/.test(t)?n(t,"<strong>","</strong>"):e}))).replace(/\*([^\s*][\s\S]*?)\*/g,(function(e,t){return/\S$/.test(t)?n(t,"<em>","</em>"):e})),e=r.converter._dispatch("italicsAndBold.after",e,t,r)})),o.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,i=/\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 f=o.subParser("outdent")(c,t,r),d="";return u&&t.tasklists&&(d=' class="task-list-item" style="list-style-type: none;"',f=f.replace(/^[ \t]*\[(x|X| )?]/m,(function(){var e='<input type="checkbox" disabled style="margin: 0px 0.35em 0.25em -1.6em; vertical-align: middle;"';return l&&(e+=" checked"),e+=">"}))),f=f.replace(/^([-*+]|\d\.)[ \t]+[\S\n ]*/g,(function(e){return"¨A"+e})),n||f.search(/\n{2,}/)>-1?(f=o.subParser("githubCodeBlocks")(f,t,r),f=o.subParser("blockGamut")(f,t,r)):(f=(f=o.subParser("lists")(f,t,r)).replace(/\n$/,""),f=(f=o.subParser("hashHTMLBlocks")(f,t,r)).replace(/\n\n+/g,"\n\n"),f=i?o.subParser("paragraphs")(f,t,r):o.subParser("spanGamut")(f,t,r)),f="<li"+d+">"+(f=f.replace("¨A",""))+"</li>\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 i(e,r,o){var i=t.disableForced4SpacesIndentedSublists?/^ ?\d+\.[ \t]/gm:/^ {0,3}\d+\.[ \t]/gm,s=t.disableForced4SpacesIndentedSublists?/^ ?[*+-][ \t]/gm:/^ {0,3}[*+-][ \t]/gm,c="ul"===r?i:s,u="";if(-1!==e.search(c))!function t(l){var f=l.search(c),d=a(e,r);-1!==f?(u+="\n\n<"+r+d+">\n"+n(l.slice(0,f),!!o)+"</"+r+">\n",c="ul"===(r="ul"===r?"ol":"ul")?i:s,t(l.slice(f))):u+="\n\n<"+r+d+">\n"+n(l,!!o)+"</"+r+">\n"}(e);else{var l=a(e,r);u="\n\n<"+r+l+">\n"+n(e,!!o)+"</"+r+">\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 i(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 i(r,n.search(/[*+-]/g)>-1?"ul":"ol",!1)}))).replace(/¨0/,""),e=r.converter._dispatch("lists.after",e,t,r)})),o.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)})),o.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)})),o.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=[],i=n.length,s=0;s<i;s++){var c=n[s];c.search(/¨(K|G)(\d+)\1/g)>=0?a.push(c):c.search(/\S/)>=0&&(c=(c=o.subParser("spanGamut")(c,t,r)).replace(/^([ \t]*)/g,"<p>"),c+="</p>",a.push(c))}for(i=a.length,s=0;s<i;s++){for(var u="",l=a[s],f=!1;/¨(K|G)(\d+)\1/.test(l);){var d=RegExp.$1,p=RegExp.$2;u=(u="K"===d?r.gHtmlBlocks[p]:f?o.subParser("encodeCode")(r.ghCodeBlocks[p].text,t,r):r.ghCodeBlocks[p].codeblock).replace(/\$/g,"$$$$"),l=l.replace(/(\n\n)?¨(K|G)\d+\2(\n\n)?/,u),/^<pre\b[^>]*>\s*<code\b[^>]*>/.test(l)&&(f=!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)})),o.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})),o.subParser("spanGamut",(function(e,t,r){"use strict";return e=r.converter._dispatch("spanGamut.before",e,t,r),e=o.subParser("codeSpans")(e,t,r),e=o.subParser("escapeSpecialCharsWithinTagAttributes")(e,t,r),e=o.subParser("encodeBackslashEscapes")(e,t,r),e=o.subParser("images")(e,t,r),e=o.subParser("anchors")(e,t,r),e=o.subParser("autoLinks")(e,t,r),e=o.subParser("simplifiedAutoLinks")(e,t,r),e=o.subParser("emoji")(e,t,r),e=o.subParser("underline")(e,t,r),e=o.subParser("italicsAndBold")(e,t,r),e=o.subParser("strikethrough")(e,t,r),e=o.subParser("ellipsis")(e,t,r),e=o.subParser("hashHTMLSpans")(e,t,r),e=o.subParser("encodeAmpsAndAngles")(e,t,r),t.simpleLineBreaks?/\n\n¨K/.test(e)||(e=e.replace(/\n+/g,"<br />\n")):e=e.replace(/ +\n/g,"<br />\n"),e=r.converter._dispatch("spanGamut.after",e,t,r)})),o.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=o.subParser("simplifiedAutoLinks")(e,t,r)),"<del>"+e+"</del>"}(n)})),e=r.converter._dispatch("strikethrough.after",e,t,r)),e})),o.subParser("stripLinkDefinitions",(function(e,t,r){"use strict";var n=function(e,n,a,i,s,c,u){return n=n.toLowerCase(),a.match(/^data:.+?\/.+?;base64,/)?r.gUrls[n]=a.replace(/\s/g,""):r.gUrls[n]=o.subParser("encodeAmpsAndAngles")(a,t,r),c?c+u:(u&&(r.gTitles[n]=u.replace(/"|'/g,""")),t.parseImgDimensions&&i&&s&&(r.gDimensions[n]={width:i,height:s}),"")};return e=(e=(e=(e+="¨0").replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*<?(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\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/,"")})),o.subParser("tables",(function(e,t,r){"use strict";if(!t.tables)return e;function n(e,n){return"<td"+n+">"+o.subParser("spanGamut")(e,t,r)+"</td>\n"}function a(e){var a,i=e.split("\n");for(a=0;a<i.length;++a)/^ {0,3}\|/.test(i[a])&&(i[a]=i[a].replace(/^ {0,3}\|/,"")),/\|[ \t]*$/.test(i[a])&&(i[a]=i[a].replace(/\|[ \t]*$/,"")),i[a]=o.subParser("codeSpans")(i[a],t,r);var s,c,u,l,f=i[0].split("|").map((function(e){return e.trim()})),d=i[1].split("|").map((function(e){return e.trim()})),p=[],h=[],b=[],g=[];for(i.shift(),i.shift(),a=0;a<i.length;++a)""!==i[a].trim()&&p.push(i[a].split("|").map((function(e){return e.trim()})));if(f.length<d.length)return e;for(a=0;a<d.length;++a)b.push((s=d[a],/^:[ \t]*--*$/.test(s)?' style="text-align:left;"':/^--*[ \t]*:[ \t]*$/.test(s)?' style="text-align:right;"':/^:[ \t]*--*[ \t]*:$/.test(s)?' style="text-align:center;"':""));for(a=0;a<f.length;++a)o.helper.isUndefined(b[a])&&(b[a]=""),h.push((c=f[a],u=b[a],l=void 0,l="",c=c.trim(),(t.tablesHeaderId||t.tableHeaderId)&&(l=' id="'+c.replace(/ /g,"_").toLowerCase()+'"'),"<th"+l+u+">"+(c=o.subParser("spanGamut")(c,t,r))+"</th>\n"));for(a=0;a<p.length;++a){for(var m=[],_=0;_<h.length;++_)o.helper.isUndefined(p[a][_]),m.push(n(p[a][_],b[_]));g.push(m)}return function(e,t){for(var r="<table>\n<thead>\n<tr>\n",n=e.length,a=0;a<n;++a)r+=e[a];for(r+="</tr>\n</thead>\n<tbody>\n",a=0;a<t.length;++a){r+="<tr>\n";for(var o=0;o<n;++o)r+=t[a][o];r+="</tr>\n"}return r+="</tbody>\n</table>\n"}(h,g)}return e=(e=(e=(e=r.converter._dispatch("tables.before",e,t,r)).replace(/\\(\|)/g,o.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)})),o.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"<u>"+t+"</u>"}))).replace(/\b__(\S[\s\S]*?)__\b/g,(function(e,t){return"<u>"+t+"</u>"})):(e=e.replace(/___(\S[\s\S]*?)___/g,(function(e,t){return/\S$/.test(t)?"<u>"+t+"</u>":e}))).replace(/__(\S[\s\S]*?)__/g,(function(e,t){return/\S$/.test(t)?"<u>"+t+"</u>":e}))).replace(/(_)/g,o.helper.escapeCharactersCallback),e=r.converter._dispatch("underline.after",e,t,r)):e})),o.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)})),o.subParser("makeMarkdown.blockquote",(function(e,t){"use strict";var r="";if(e.hasChildNodes())for(var n=e.childNodes,a=n.length,i=0;i<a;++i){var s=o.subParser("makeMarkdown.node")(n[i],t);""!==s&&(r+=s)}return r="> "+(r=r.trim()).split("\n").join("\n> ")})),o.subParser("makeMarkdown.codeBlock",(function(e,t){"use strict";var r=e.getAttribute("language"),n=e.getAttribute("precodenum");return"```"+r+"\n"+t.preList[n]+"\n```"})),o.subParser("makeMarkdown.codeSpan",(function(e){"use strict";return"`"+e.innerHTML+"`"})),o.subParser("makeMarkdown.emphasis",(function(e,t){"use strict";var r="";if(e.hasChildNodes()){r+="*";for(var n=e.childNodes,a=n.length,i=0;i<a;++i)r+=o.subParser("makeMarkdown.node")(n[i],t);r+="*"}return r})),o.subParser("makeMarkdown.header",(function(e,t,r){"use strict";var n=new Array(r+1).join("#"),a="";if(e.hasChildNodes()){a=n+" ";for(var i=e.childNodes,s=i.length,c=0;c<s;++c)a+=o.subParser("makeMarkdown.node")(i[c],t)}return a})),o.subParser("makeMarkdown.hr",(function(){"use strict";return"---"})),o.subParser("makeMarkdown.image",(function(e){"use strict";var t="";return e.hasAttribute("src")&&(t+="!["+e.getAttribute("alt")+"](",t+="<"+e.getAttribute("src")+">",e.hasAttribute("width")&&e.hasAttribute("height")&&(t+=" ="+e.getAttribute("width")+"x"+e.getAttribute("height")),e.hasAttribute("title")&&(t+=' "'+e.getAttribute("title")+'"'),t+=")"),t})),o.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 i=0;i<a;++i)r+=o.subParser("makeMarkdown.node")(n[i],t);r+="](",r+="<"+e.getAttribute("href")+">",e.hasAttribute("title")&&(r+=' "'+e.getAttribute("title")+'"'),r+=")"}return r})),o.subParser("makeMarkdown.list",(function(e,t,r){"use strict";var n="";if(!e.hasChildNodes())return"";for(var a=e.childNodes,i=a.length,s=e.getAttribute("start")||1,c=0;c<i;++c)if(void 0!==a[c].tagName&&"li"===a[c].tagName.toLowerCase()){n+=("ol"===r?s.toString()+". ":"- ")+o.subParser("makeMarkdown.listItem")(a[c],t),++s}return(n+="\n\x3c!-- --\x3e\n").trim()})),o.subParser("makeMarkdown.listItem",(function(e,t){"use strict";for(var r="",n=e.childNodes,a=n.length,i=0;i<a;++i)r+=o.subParser("makeMarkdown.node")(n[i],t);return/\n$/.test(r)?r=r.split("\n").join("\n ").replace(/^ {4}$/gm,"").replace(/\n\n+/g,"\n\n"):r+="\n",r})),o.subParser("makeMarkdown.node",(function(e,t,r){"use strict";r=r||!1;var n="";if(3===e.nodeType)return o.subParser("makeMarkdown.txt")(e,t);if(8===e.nodeType)return"\x3c!--"+e.data+"--\x3e\n\n";if(1!==e.nodeType)return"";switch(e.tagName.toLowerCase()){case"h1":r||(n=o.subParser("makeMarkdown.header")(e,t,1)+"\n\n");break;case"h2":r||(n=o.subParser("makeMarkdown.header")(e,t,2)+"\n\n");break;case"h3":r||(n=o.subParser("makeMarkdown.header")(e,t,3)+"\n\n");break;case"h4":r||(n=o.subParser("makeMarkdown.header")(e,t,4)+"\n\n");break;case"h5":r||(n=o.subParser("makeMarkdown.header")(e,t,5)+"\n\n");break;case"h6":r||(n=o.subParser("makeMarkdown.header")(e,t,6)+"\n\n");break;case"p":r||(n=o.subParser("makeMarkdown.paragraph")(e,t)+"\n\n");break;case"blockquote":r||(n=o.subParser("makeMarkdown.blockquote")(e,t)+"\n\n");break;case"hr":r||(n=o.subParser("makeMarkdown.hr")(e,t)+"\n\n");break;case"ol":r||(n=o.subParser("makeMarkdown.list")(e,t,"ol")+"\n\n");break;case"ul":r||(n=o.subParser("makeMarkdown.list")(e,t,"ul")+"\n\n");break;case"precode":r||(n=o.subParser("makeMarkdown.codeBlock")(e,t)+"\n\n");break;case"pre":r||(n=o.subParser("makeMarkdown.pre")(e,t)+"\n\n");break;case"table":r||(n=o.subParser("makeMarkdown.table")(e,t)+"\n\n");break;case"code":n=o.subParser("makeMarkdown.codeSpan")(e,t);break;case"em":case"i":n=o.subParser("makeMarkdown.emphasis")(e,t);break;case"strong":case"b":n=o.subParser("makeMarkdown.strong")(e,t);break;case"del":n=o.subParser("makeMarkdown.strikethrough")(e,t);break;case"a":n=o.subParser("makeMarkdown.links")(e,t);break;case"img":n=o.subParser("makeMarkdown.image")(e,t);break;default:n=e.outerHTML+"\n\n"}return n})),o.subParser("makeMarkdown.paragraph",(function(e,t){"use strict";var r="";if(e.hasChildNodes())for(var n=e.childNodes,a=n.length,i=0;i<a;++i)r+=o.subParser("makeMarkdown.node")(n[i],t);return r=r.trim()})),o.subParser("makeMarkdown.pre",(function(e,t){"use strict";var r=e.getAttribute("prenum");return"<pre>"+t.preList[r]+"</pre>"})),o.subParser("makeMarkdown.strikethrough",(function(e,t){"use strict";var r="";if(e.hasChildNodes()){r+="~~";for(var n=e.childNodes,a=n.length,i=0;i<a;++i)r+=o.subParser("makeMarkdown.node")(n[i],t);r+="~~"}return r})),o.subParser("makeMarkdown.strong",(function(e,t){"use strict";var r="";if(e.hasChildNodes()){r+="**";for(var n=e.childNodes,a=n.length,i=0;i<a;++i)r+=o.subParser("makeMarkdown.node")(n[i],t);r+="**"}return r})),o.subParser("makeMarkdown.table",(function(e,t){"use strict";var r,n,a="",i=[[],[]],s=e.querySelectorAll("thead>tr>th"),c=e.querySelectorAll("tbody>tr");for(r=0;r<s.length;++r){var u=o.subParser("makeMarkdown.tableCell")(s[r],t),l="---";if(s[r].hasAttribute("style"))switch(s[r].getAttribute("style").toLowerCase().replace(/\s/g,"")){case"text-align:left;":l=":---";break;case"text-align:right;":l="---:";break;case"text-align:center;":l=":---:"}i[0][r]=u.trim(),i[1][r]=l}for(r=0;r<c.length;++r){var f=i.push([])-1,d=c[r].getElementsByTagName("td");for(n=0;n<s.length;++n){var p=" ";void 0!==d[n]&&(p=o.subParser("makeMarkdown.tableCell")(d[n],t)),i[f].push(p)}}var h=3;for(r=0;r<i.length;++r)for(n=0;n<i[r].length;++n){var b=i[r][n].length;b>h&&(h=b)}for(r=0;r<i.length;++r){for(n=0;n<i[r].length;++n)1===r?":"===i[r][n].slice(-1)?i[r][n]=o.helper.padEnd(i[r][n].slice(-1),h-1,"-")+":":i[r][n]=o.helper.padEnd(i[r][n],h,"-"):i[r][n]=o.helper.padEnd(i[r][n],h);a+="| "+i[r].join(" | ")+" |\n"}return a.trim()})),o.subParser("makeMarkdown.tableCell",(function(e,t){"use strict";var r="";if(!e.hasChildNodes())return"";for(var n=e.childNodes,a=n.length,i=0;i<a;++i)r+=o.subParser("makeMarkdown.node")(n[i],t,!0);return r.trim()})),o.subParser("makeMarkdown.txt",(function(e){"use strict";var t=e.nodeValue;return t=(t=t.replace(/ +/g," ")).replace(/¨NBSP;/g," "),t=(t=(t=(t=(t=(t=(t=(t=(t=o.helper.unescapeHTMLEntities(t)).replace(/([*_~|`])/g,"\\$1")).replace(/^(\s*)>/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 o}.call(t,r,t,e))||(e.exports=n)}).call(this)},29:function(e,t){!function(){e.exports=this.wp.dom}()},30:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(27);function a(e,t){if(e){if("string"==typeof e)return Object(n.a)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Object(n.a)(e,t):void 0}}},33:function(e,t){!function(){e.exports=this.wp.hooks}()},36:function(e,t){!function(){e.exports=this.wp.deprecated}()},37:function(e,t,r){"use strict";function n(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}r.d(t,"a",(function(){return n}))},38:function(e,t,r){"use strict";function n(e){if(Array.isArray(e))return e}r.d(t,"a",(function(){return n}))},39:function(e,t,r){"use strict";function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}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.blob}()},42:function(e,t,r){"use strict";var n,a;function o(e){return[e]}function i(){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;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}n={},a="undefined"!=typeof WeakMap,t.a=function(e,t){var r,c;function u(){r=a?new WeakMap:i()}function l(){var r,n,a,o,i,u=arguments.length;for(o=new Array(u),a=0;a<u;a++)o[a]=arguments[a];for(i=t.apply(null,o),(r=c(i)).isUniqueByDependants||(r.lastDependants&&!s(i,r.lastDependants,0)&&r.clear(),r.lastDependants=i),n=r.head;n;){if(s(n.args,o,1))return n!==r.head&&(n.prev.next=n.next,n.next&&(n.next.prev=n.prev),n.next=r.head,n.prev=null,r.head.prev=n,r.head=n),n.val;n=n.next}return n={val:e.apply(null,o)},o[0]=null,n.args=o,r.head&&(r.head.prev=n,n.next=r.head),r.head=n,n.val}return t||(t=o),c=a?function(e){var t,a,o,s,c,u=r,l=!0;for(t=0;t<e.length;t++){if(a=e[t],!(c=a)||"object"!=typeof c){l=!1;break}u.has(a)?u=u.get(a):(o=new WeakMap,u.set(a,o),u=o)}return u.has(n)||((s=i()).isUniqueByDependants=l,u.set(n,s)),u.get(n)}:function(){return r},l.getDependants=t,l.clear=u,u(),l}},459:function(e,t,r){"use strict";r.r(t),r.d(t,"createBlock",(function(){return rt})),r.d(t,"createBlocksFromInnerBlocksTemplate",(function(){return nt})),r.d(t,"cloneBlock",(function(){return at})),r.d(t,"getPossibleBlockTransformations",(function(){return ct})),r.d(t,"switchToBlockType",(function(){return ft})),r.d(t,"getBlockTransforms",(function(){return lt})),r.d(t,"findTransform",(function(){return ut})),r.d(t,"getBlockFromExample",(function(){return dt})),r.d(t,"parse",(function(){return Zr})),r.d(t,"getBlockAttributes",(function(){return qr})),r.d(t,"parseWithAttributeSchema",(function(){return Fr})),r.d(t,"pasteHandler",(function(){return In})),r.d(t,"rawHandler",(function(){return Un})),r.d(t,"getPhrasingContentSchema",(function(){return qn})),r.d(t,"serialize",(function(){return rr})),r.d(t,"getBlockContent",(function(){return er})),r.d(t,"getBlockDefaultClassName",(function(){return Kt})),r.d(t,"getBlockMenuDefaultClassName",(function(){return Wt})),r.d(t,"getSaveElement",(function(){return Qt})),r.d(t,"getSaveContent",(function(){return Xt})),r.d(t,"__unstableGetBlockProps",(function(){return Zt})),r.d(t,"isValidBlockContent",(function(){return xr})),r.d(t,"getCategories",(function(){return Gn})),r.d(t,"setCategories",(function(){return Kn})),r.d(t,"updateCategory",(function(){return Wn})),r.d(t,"registerBlockType",(function(){return Ae})),r.d(t,"registerBlockCollection",(function(){return Ee})),r.d(t,"unregisterBlockType",(function(){return Be})),r.d(t,"setFreeformContentHandlerName",(function(){return Ne})),r.d(t,"getFreeformContentHandlerName",(function(){return Le})),r.d(t,"setUnregisteredTypeHandlerName",(function(){return ze})),r.d(t,"getUnregisteredTypeHandlerName",(function(){return De})),r.d(t,"setDefaultBlockName",(function(){return He})),r.d(t,"getDefaultBlockName",(function(){return Ve})),r.d(t,"setGroupingBlockName",(function(){return Ie})),r.d(t,"getGroupingBlockName",(function(){return Me})),r.d(t,"getBlockType",(function(){return Re})),r.d(t,"getBlockTypes",(function(){return Fe})),r.d(t,"getBlockSupport",(function(){return $e})),r.d(t,"hasBlockSupport",(function(){return qe})),r.d(t,"getBlockVariations",(function(){return Qe})),r.d(t,"isReusableBlock",(function(){return Ue})),r.d(t,"getChildBlockNames",(function(){return Ge})),r.d(t,"hasChildBlocks",(function(){return Ke})),r.d(t,"hasChildBlocksWithInserterSupport",(function(){return We})),r.d(t,"unstable__bootstrapServerSideBlockDefinitions",(function(){return Se})),r.d(t,"registerBlockStyle",(function(){return Ye})),r.d(t,"unregisterBlockStyle",(function(){return Ze})),r.d(t,"registerBlockVariation",(function(){return Xe})),r.d(t,"unregisterBlockVariation",(function(){return Je})),r.d(t,"isUnmodifiedDefaultBlock",(function(){return me})),r.d(t,"normalizeIconObject",(function(){return ve})),r.d(t,"isValidIcon",(function(){return _e})),r.d(t,"__experimentalGetBlockLabel",(function(){return ye})),r.d(t,"__experimentalGetAccessibleBlockLabel",(function(){return ke})),r.d(t,"doBlocksMatchTemplate",(function(){return Qn})),r.d(t,"synchronizeBlocksWithTemplate",(function(){return Xn})),r.d(t,"children",(function(){return Dr})),r.d(t,"node",(function(){return Nr})),r.d(t,"__EXPERIMENTAL_STYLE_PROPERTY",(function(){return je})),r.d(t,"withBlockContentContext",(function(){return $t}));var n={};r.r(n),r.d(n,"getBlockTypes",(function(){return O})),r.d(n,"getBlockType",(function(){return j})),r.d(n,"getBlockStyles",(function(){return C})),r.d(n,"getBlockVariations",(function(){return T})),r.d(n,"getDefaultBlockVariation",(function(){return x})),r.d(n,"getCategories",(function(){return P})),r.d(n,"getCollections",(function(){return S})),r.d(n,"getDefaultBlockName",(function(){return A})),r.d(n,"getFreeformFallbackBlockName",(function(){return E})),r.d(n,"getUnregisteredFallbackBlockName",(function(){return B})),r.d(n,"getGroupingBlockName",(function(){return N})),r.d(n,"getChildBlockNames",(function(){return L})),r.d(n,"getBlockSupport",(function(){return M})),r.d(n,"hasBlockSupport",(function(){return z})),r.d(n,"isMatchingSearchTerm",(function(){return D})),r.d(n,"hasChildBlocks",(function(){return H})),r.d(n,"hasChildBlocksWithInserterSupport",(function(){return I}));var a={};r.r(a),r.d(a,"addBlockTypes",(function(){return V})),r.d(a,"removeBlockTypes",(function(){return R})),r.d(a,"addBlockStyles",(function(){return F})),r.d(a,"removeBlockStyles",(function(){return $})),r.d(a,"addBlockVariations",(function(){return q})),r.d(a,"removeBlockVariations",(function(){return U})),r.d(a,"setDefaultBlockName",(function(){return G})),r.d(a,"setFreeformFallbackBlockName",(function(){return K})),r.d(a,"setUnregisteredFallbackBlockName",(function(){return W})),r.d(a,"setGroupingBlockName",(function(){return Y})),r.d(a,"setCategories",(function(){return Z})),r.d(a,"updateCategory",(function(){return Q})),r.d(a,"addBlockCollection",(function(){return X})),r.d(a,"removeBlockCollection",(function(){return J}));var o=r(4),i=r(17),s=r(5),c=r(2),u=r(1);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){Object(s.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var d=[{slug:"text",title:Object(u.__)("Text")},{slug:"media",title:Object(u.__)("Media")},{slug:"design",title:Object(u.__)("Design")},{slug:"widgets",title:Object(u.__)("Widgets")},{slug:"embed",title:Object(u.__)("Embeds")},{slug:"reusable",title:Object(u.__)("Reusable blocks")}];function p(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=p("SET_DEFAULT_BLOCK_NAME"),b=p("SET_FREEFORM_FALLBACK_BLOCK_NAME"),g=p("SET_UNREGISTERED_FALLBACK_BLOCK_NAME"),m=p("SET_GROUPING_BLOCK_NAME");var _=Object(o.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 f(f({},e),Object(c.keyBy)(Object(c.map)(t.blockTypes,(function(e){return Object(c.omit)(e,"styles ")})),"name"));case"REMOVE_BLOCK_TYPES":return Object(c.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 f(f({},e),Object(c.mapValues)(Object(c.keyBy)(t.blockTypes,"name"),(function(t){return Object(c.uniqBy)([].concat(Object(i.a)(Object(c.get)(t,["styles"],[])),Object(i.a)(Object(c.get)(e,[t.name],[]))),(function(e){return e.name}))})));case"ADD_BLOCK_STYLES":return f(f({},e),{},Object(s.a)({},t.blockName,Object(c.uniqBy)([].concat(Object(i.a)(Object(c.get)(e,[t.blockName],[])),Object(i.a)(t.styles)),(function(e){return e.name}))));case"REMOVE_BLOCK_STYLES":return f(f({},e),{},Object(s.a)({},t.blockName,Object(c.filter)(Object(c.get)(e,[t.blockName],[]),(function(e){return-1===t.styleNames.indexOf(e.name)}))))}return e},blockVariations: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 f(f({},e),Object(c.mapValues)(Object(c.keyBy)(t.blockTypes,"name"),(function(t){return Object(c.uniqBy)([].concat(Object(i.a)(Object(c.get)(t,["variations"],[])),Object(i.a)(Object(c.get)(e,[t.name],[]))),(function(e){return e.name}))})));case"ADD_BLOCK_VARIATIONS":return f(f({},e),{},Object(s.a)({},t.blockName,Object(c.uniqBy)([].concat(Object(i.a)(Object(c.get)(e,[t.blockName],[])),Object(i.a)(t.variations)),(function(e){return e.name}))));case"REMOVE_BLOCK_VARIATIONS":return f(f({},e),{},Object(s.a)({},t.blockName,Object(c.filter)(Object(c.get)(e,[t.blockName],[]),(function(e){return-1===t.variationNames.indexOf(e.name)}))))}return e},defaultBlockName:h,freeformFallbackBlockName:b,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(c.isEmpty)(t.category))return e;var r=Object(c.find)(e,["slug",t.slug]);if(r)return Object(c.map)(e,(function(e){return e.slug===t.slug?f(f({},e),t.category):e}))}return e},collections: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_COLLECTION":return f(f({},e),{},Object(s.a)({},t.namespace,{title:t.title,icon:t.icon}));case"REMOVE_BLOCK_COLLECTION":return Object(c.omit)(e,t.namespace)}return e}}),v=r(42);function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?w(Object(r),!0).forEach((function(t){Object(s.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var k=function(e,t){return"string"==typeof t?j(e,t):t},O=Object(v.a)((function(e){return Object.values(e.blockTypes).map((function(t){return y(y({},t),{},{variations:T(e,t.name)})}))}),(function(e){return[e.blockTypes,e.blockVariations]}));function j(e,t){return e.blockTypes[t]}function C(e,t){return e.blockStyles[t]}function T(e,t,r){var n=e.blockVariations[t];return n&&r?n.filter((function(e){return!e.scope||e.scope.includes(r)})):n}function x(e,t,r){var n=T(e,t,r);return Object(c.findLast)(n,"isDefault")||Object(c.first)(n)}function P(e){return e.categories}function S(e){return e.collections}function A(e){return e.defaultBlockName}function E(e){return e.freeformFallbackBlockName}function B(e){return e.unregisteredFallbackBlockName}function N(e){return e.groupingBlockName}var L=Object(v.a)((function(e,t){return Object(c.map)(Object(c.filter)(e.blockTypes,(function(e){return Object(c.includes)(e.parent,t)})),(function(e){return e.name}))}),(function(e){return[e.blockTypes]})),M=function(e,t,r,n){var a=k(e,t);return Object(c.get)(a,["supports"].concat(Object(i.a)(r.split("."))),n)};function z(e,t,r,n){return!!M(e,t,r,n)}function D(e,t,r){var n=k(e,t),a=Object(c.flow)([c.deburr,function(e){return e.toLowerCase()},function(e){return e.trim()}]),o=a(r),i=Object(c.flow)([a,function(e){return Object(c.includes)(e,o)}]);return i(n.title)||Object(c.some)(n.keywords,i)||i(n.category)}var H=function(e,t){return L(e,t).length>0},I=function(e,t){return Object(c.some)(L(e,t),(function(t){return z(e,t,"inserter",!0)}))};function V(e){return{type:"ADD_BLOCK_TYPES",blockTypes:Object(c.castArray)(e)}}function R(e){return{type:"REMOVE_BLOCK_TYPES",names:Object(c.castArray)(e)}}function F(e,t){return{type:"ADD_BLOCK_STYLES",styles:Object(c.castArray)(t),blockName:e}}function $(e,t){return{type:"REMOVE_BLOCK_STYLES",styleNames:Object(c.castArray)(t),blockName:e}}function q(e,t){return{type:"ADD_BLOCK_VARIATIONS",variations:Object(c.castArray)(t),blockName:e}}function U(e,t){return{type:"REMOVE_BLOCK_VARIATIONS",variationNames:Object(c.castArray)(t),blockName:e}}function G(e){return{type:"SET_DEFAULT_BLOCK_NAME",name:e}}function K(e){return{type:"SET_FREEFORM_FALLBACK_BLOCK_NAME",name:e}}function W(e){return{type:"SET_UNREGISTERED_FALLBACK_BLOCK_NAME",name:e}}function Y(e){return{type:"SET_GROUPING_BLOCK_NAME",name:e}}function Z(e){return{type:"SET_CATEGORIES",categories:e}}function Q(e,t){return{type:"UPDATE_CATEGORY",slug:e,category:t}}function X(e,t,r){return{type:"ADD_BLOCK_COLLECTION",namespace:e,title:t,icon:r}}function J(e){return{type:"REMOVE_BLOCK_COLLECTION",namespace:e}}Object(o.registerStore)("core/blocks",{reducer:_,selectors:n,actions:a});var ee=r(12),te="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),re=new Uint8Array(16);function ne(){if(!te)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return te(re)}for(var ae=[],oe=0;oe<256;++oe)ae[oe]=(oe+256).toString(16).substr(1);var ie=function(e,t){var r=t||0,n=ae;return[n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]]].join("")};var se=function(e,t,r){var n=t&&r||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||ne)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var o=0;o<16;++o)t[n+o]=a[o];return t||ie(a)},ce=r(33),ue=r(208),le=r(66),fe=r.n(le),de=r(0),pe=r(29);function he(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function be(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?he(Object(r),!0).forEach((function(t){Object(s.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):he(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ge=["#191e23","#f8f9f9"];function me(e){var t=Ve();if(e.name!==t)return!1;me.block&&me.block.name===t||(me.block=rt(t));var r=me.block,n=Re(t);return Object(c.every)(n.attributes,(function(t,n){return r.attributes[n]===e.attributes[n]}))}function _e(e){return!!e&&(Object(c.isString)(e)||Object(de.isValidElement)(e)||Object(c.isFunction)(e)||e instanceof de.Component)}function ve(e){if(_e(e))return{src:e};if(Object(c.has)(e,["background"])){var t=fe()(e.background);return be(be({},e),{},{foreground:e.foreground?e.foreground:Object(le.mostReadable)(t,ge,{includeFallbackColors:!0,level:"AA",size:"large"}).toHexString(),shadowColor:t.setAlpha(.3).toRgbString()})}return e}function we(e){return Object(c.isString)(e)?Re(e):e}function ye(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"visual",n=e.__experimentalLabel,a=e.title,o=n&&n(t,{context:r});return o?Object(pe.__unstableStripHTML)(o):a}function ke(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"vertical",a=e.title,o=ye(e,t,"accessibility"),i=void 0!==r,s=o&&o!==a;return i&&"vertical"===n?s?Object(u.sprintf)(Object(u.__)("%1$s Block. Row %2$d. %3$s"),a,r,o):Object(u.sprintf)(Object(u.__)("%1$s Block. Row %2$d"),a,r):i&&"horizontal"===n?s?Object(u.sprintf)(Object(u.__)("%1$s Block. Column %2$d. %3$s"),a,r,o):Object(u.sprintf)(Object(u.__)("%1$s Block. Column %2$d"),a,r):s?Object(u.sprintf)(Object(u.__)("%1$s Block. %2$s"),a,o):Object(u.sprintf)(Object(u.__)("%s Block"),a)}var Oe=["attributes","supports","save","migrate","isEligible","apiVersion"],je={"--wp--style--color--link":["color","link"],background:["color","gradient"],backgroundColor:["color","background"],color:["color","text"],fontSize:["typography","fontSize"],lineHeight:["typography","lineHeight"],paddingBottom:["spacing","padding","bottom"],paddingLeft:["spacing","padding","left"],paddingRight:["spacing","padding","right"],paddingTop:["spacing","padding","top"]};function Ce(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Te(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ce(Object(r),!0).forEach((function(t){Object(s.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ce(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var xe={common:"text",formatting:"text",layout:"design"},Pe={};function Se(e){Pe=Te(Te({},Pe),e)}function Ae(e,t){if(t=Te(Te({name:e,icon:ue.a,keywords:[],attributes:{},providesContext:{},usesContext:[],supports:{},styles:[],save:function(){return null}},Object(c.pickBy)(Object(c.get)(Pe,e,{}),(function(e){return!Object(c.isNil)(e)}))),t),"string"==typeof e)if(/^[a-z][a-z0-9-]*\/[a-z][a-z0-9-]*$/.test(e))if(Object(o.select)("core/blocks").getBlockType(e))console.error('Block "'+e+'" is already registered.');else{var r=Te({},t);if((t=Object(ce.applyFilters)("blocks.registerBlockType",t,e)).deprecated&&(t.deprecated=t.deprecated.map((function(t){return Object(c.pick)(Object(ce.applyFilters)("blocks.registerBlockType",Te(Te({},Object(c.omit)(r,Oe)),t),e),Oe)}))),Object(c.isPlainObject)(t))if(Object(c.isFunction)(t.save))if(!("edit"in t)||Object(c.isFunction)(t.edit))if(xe.hasOwnProperty(t.category)&&(t.category=xe[t.category]),"category"in t&&!Object(c.some)(Object(o.select)("core/blocks").getCategories(),{slug:t.category})&&(console.warn('The block "'+e+'" is registered with an invalid category "'+t.category+'".'),delete t.category),"title"in t&&""!==t.title)if("string"==typeof t.title){if(t.icon=ve(t.icon),_e(t.icon.src))return Object(o.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 "edit" property must be a valid function.');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 Ee(e,t){var r=t.title,n=t.icon;Object(o.dispatch)("core/blocks").addBlockCollection(e,r,n)}function Be(e){var t=Object(o.select)("core/blocks").getBlockType(e);if(t)return Object(o.dispatch)("core/blocks").removeBlockTypes(e),t;console.error('Block "'+e+'" is not registered.')}function Ne(e){Object(o.dispatch)("core/blocks").setFreeformFallbackBlockName(e)}function Le(){return Object(o.select)("core/blocks").getFreeformFallbackBlockName()}function Me(){return Object(o.select)("core/blocks").getGroupingBlockName()}function ze(e){Object(o.dispatch)("core/blocks").setUnregisteredFallbackBlockName(e)}function De(){return Object(o.select)("core/blocks").getUnregisteredFallbackBlockName()}function He(e){Object(o.dispatch)("core/blocks").setDefaultBlockName(e)}function Ie(e){Object(o.dispatch)("core/blocks").setGroupingBlockName(e)}function Ve(){return Object(o.select)("core/blocks").getDefaultBlockName()}function Re(e){return Object(o.select)("core/blocks").getBlockType(e)}function Fe(){return Object(o.select)("core/blocks").getBlockTypes()}function $e(e,t,r){return Object(o.select)("core/blocks").getBlockSupport(e,t,r)}function qe(e,t,r){return Object(o.select)("core/blocks").hasBlockSupport(e,t,r)}function Ue(e){return"core/block"===e.name}var Ge=function(e){return Object(o.select)("core/blocks").getChildBlockNames(e)},Ke=function(e){return Object(o.select)("core/blocks").hasChildBlocks(e)},We=function(e){return Object(o.select)("core/blocks").hasChildBlocksWithInserterSupport(e)},Ye=function(e,t){Object(o.dispatch)("core/blocks").addBlockStyles(e,t)},Ze=function(e,t){Object(o.dispatch)("core/blocks").removeBlockStyles(e,t)},Qe=function(e,t){return Object(o.select)("core/blocks").getBlockVariations(e,t)},Xe=function(e,t){Object(o.dispatch)("core/blocks").addBlockVariations(e,t)},Je=function(e,t){Object(o.dispatch)("core/blocks").removeBlockVariations(e,t)};function et(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function tt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?et(Object(r),!0).forEach((function(t){Object(s.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):et(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function rt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=Re(e);if(void 0===n)throw new Error("Block type '".concat(e,"' is not registered."));var a=Object(c.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}),{}),o=se();return{clientId:o,name:e,isValid:!0,attributes:a,innerBlocks:r}}function nt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map((function(e){var t=Array.isArray(e)?e:[e.name,e.attributes,e.innerBlocks],r=Object(ee.a)(t,3),n=r[0],a=r[1],o=r[2];return rt(n,a,nt(void 0===o?[]:o))}))}function at(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=se();return tt(tt({},e),{},{clientId:n,attributes:tt(tt({},e.attributes),t),innerBlocks:r||e.innerBlocks.map((function(e){return at(e)}))})}var ot=function(e,t,r){if(Object(c.isEmpty)(r))return!1;var n=r.length>1,a=Object(c.first)(r).name;if(!(it(e)||!n||e.isMultiBlock))return!1;if(!it(e)&&!Object(c.every)(r,{name:a}))return!1;if(!("block"===e.type))return!1;var o=Object(c.first)(r);if(!("from"!==t||-1!==e.blocks.indexOf(o.name)||it(e)))return!1;if(!n&&st(o.name)&&st(e.blockName))return!1;if(Object(c.isFunction)(e.isMatch)){var i=e.isMultiBlock?r.map((function(e){return e.attributes})):o.attributes;if(!e.isMatch(i))return!1}return!0},it=function(e){return e&&"block"===e.type&&Array.isArray(e.blocks)&&e.blocks.includes("*")},st=function(e){return e===Me()};function ct(e){if(Object(c.isEmpty)(e))return[];var t=function(e){if(Object(c.isEmpty)(e))return[];var t=Fe();return Object(c.filter)(t,(function(t){return!!ut(lt("from",t.name),(function(t){return ot(t,"from",e)}))}))}(e),r=function(e){if(Object(c.isEmpty)(e))return[];var t=lt("to",Re(Object(c.first)(e).name).name),r=Object(c.filter)(t,(function(t){return t&&ot(t,"to",e)}));return Object(c.flatMap)(r,(function(e){return e.blocks})).map((function(e){return Re(e)}))}(e);return Object(c.uniq)([].concat(Object(i.a)(t),Object(i.a)(r)))}function ut(e,t){for(var r=Object(ce.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;a<e.length;a++)n(a);return r.applyFilters("transform",null)}function lt(e,t){if(void 0===t)return Object(c.flatMap)(Fe(),(function(t){var r=t.name;return lt(e,r)}));var r=we(t)||{},n=r.name,a=r.transforms;return a&&Array.isArray(a[e])?a[e].map((function(e){return tt(tt({},e),{},{blockName:n})})):[]}function ft(e,t){var r,n=Object(c.castArray)(e),a=n.length>1,o=n[0],i=o.name,s=lt("from",t),u=ut(lt("to",i),(function(e){return"block"===e.type&&(it(e)||-1!==e.blocks.indexOf(t))&&(!a||e.isMultiBlock)}))||ut(s,(function(e){return"block"===e.type&&(it(e)||-1!==e.blocks.indexOf(i))&&(!a||e.isMultiBlock)}));if(!u)return null;if(r=u.isMultiBlock?Object(c.has)(u,"__experimentalConvert")?u.__experimentalConvert(n):u.transform(n.map((function(e){return e.attributes})),n.map((function(e){return e.innerBlocks}))):Object(c.has)(u,"__experimentalConvert")?u.__experimentalConvert(o):u.transform(o.attributes,o.innerBlocks),!Object(c.isObjectLike)(r))return null;if((r=Object(c.castArray)(r)).some((function(e){return!Re(e.name)})))return null;var l=Object(c.findIndex)(r,(function(e){return e.name===t}));return l<0?null:r.map((function(t,r){var n=tt(tt({},t),{},{clientId:r===l?o.clientId:t.clientId});return Object(ce.applyFilters)("blocks.switchToBlockType.transformedBlock",n,e)}))}var dt=function e(t,r){return rt(t,r.attributes,Object(c.map)(r.innerBlocks,(function(t){return e(t.name,t)})))};function pt(e,t){for(var r,n=t.split(".");r=n.shift();){if(!(r in e))return;e=e[r]}return e}var ht,bt=function(){return ht||(ht=document.implementation.createHTMLDocument("")),ht};function gt(e,t){if(t){if("string"==typeof e){var r=bt();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]=gt(e,t[n]),r}),{})}}function mt(e,t){return 1===arguments.length&&(t=e,e=void 0),function(r){var n=r;if(e&&(n=r.querySelector(e)),n)return pt(n,t)}}var _t=r(105),vt=r(283),wt=r(149),yt=r(21),kt=r(22),Ot=/^#[xX]([A-Fa-f0-9]+)$/,jt=/^#([0-9]+)$/,Ct=/^([A-Za-z0-9]+)$/,Tt=(function(){function e(e){this.named=e}e.prototype.parse=function(e){if(e){var t=e.match(Ot);return t?String.fromCharCode(parseInt(t[1],16)):(t=e.match(jt))?String.fromCharCode(parseInt(t[1],10)):(t=e.match(Ct))?this.named[t[1]]:void 0}}}(),/[\t\n\f ]/),xt=/[A-Za-z]/,Pt=/\r\n?/g;function St(e){return Tt.test(e)}function At(e){return xt.test(e)}var Et=function(){function e(e,t,r){void 0===r&&(r="precompile"),this.delegate=e,this.entityParser=t,this.mode=r,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("precompile"===this.mode&&"\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;"<"!==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||At(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();St(e)?this.transitionTo("beforeAttributeName"):"/"===e?this.transitionTo("selfClosingStartTag"):">"===e?(this.delegate.finishTag(),this.transitionTo("beforeData")):this.appendToTagName(e)},endTagName:function(){var e=this.consume();St(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();St(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();St(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();St(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();St(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();St(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();St(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||At(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(Pt,"\n")}(e);this.index<this.input.length;){var t=this.states[this.state];if(void 0===t)throw new Error("unhandled state "+this.state);t.call(this)}},e.prototype.tokenizeEOF=function(){this.flushData()},e.prototype.flushData=function(){"data"===this.state&&(this.delegate.finishData(),this.transitionTo("beforeData"))},e.prototype.peek=function(){return this.input.charAt(this.index)},e.prototype.consume=function(){var e=this.peek();return this.index++,"\n"===e?(this.line++,this.column=0):this.column++,e},e.prototype.consumeCharRef=function(){var e=this.input.indexOf(";",this.index);if(-1!==e){var t=this.input.slice(this.index,e),r=this.entityParser.parse(t);if(r){for(var n=t.length;n;)this.consume(),n--;return this.consume(),r}}},e.prototype.markTagStart=function(){this.delegate.tagOpen()},e.prototype.appendToTagName=function(e){this.tagNameBuffer+=e,this.delegate.appendToTagName(e)},e.prototype.isIgnoredEndTag=function(){var e=this.tagNameBuffer;return"title"===e&&"</title>"!==this.input.substring(this.index,this.index+8)||"style"===e&&"</style>"!==this.input.substring(this.index,this.index+8)||"script"===e&&"<\/script>"!==this.input.substring(this.index,this.index+9)},e}(),Bt=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 Et(this,e,t.mode),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;t<arguments.length;t++)if(e.type===arguments[t])return e;throw new Error("token type was unexpectedly "+e.type)},e.prototype.push=function(e){this.token=e,this.tokens.push(e)},e.prototype.currentAttribute=function(){return this._currentAttribute},e.prototype.addLocInfo=function(){this.options.loc&&(this.current().loc={start:{line:this.startLine,column:this.startColumn},end:{line:this.tokenizer.line,column:this.tokenizer.column}}),this.startLine=this.tokenizer.line,this.startColumn=this.tokenizer.column},e.prototype.beginData=function(){this.push({type:"Chars",chars:""})},e.prototype.appendToData=function(e){this.current("Chars").chars+=e},e.prototype.finishData=function(){this.addLocInfo()},e.prototype.beginComment=function(){this.push({type:"Comment",chars:""})},e.prototype.appendToCommentData=function(e){this.current("Comment").chars+=e},e.prototype.finishComment=function(){this.addLocInfo()},e.prototype.tagOpen=function(){},e.prototype.beginStartTag=function(){this.push({type:"StartTag",tagName:"",attributes:[],selfClosing:!1})},e.prototype.beginEndTag=function(){this.push({type:"EndTag",tagName:""})},e.prototype.finishTag=function(){this.addLocInfo()},e.prototype.markTagAsSelfClosing=function(){this.current("StartTag").selfClosing=!0},e.prototype.appendToTagName=function(e){this.current("StartTag","EndTag").tagName+=e},e.prototype.beginAttribute=function(){this._currentAttribute=["","",!1]},e.prototype.appendToAttributeName=function(e){this.currentAttribute()[0]+=e},e.prototype.beginAttributeValue=function(e){this.currentAttribute()[2]=e},e.prototype.appendToAttributeValue=function(e){this.currentAttribute()[1]+=e},e.prototype.finishAttributeValue=function(){this.current("StartTag").attributes.push(this._currentAttribute)},e.prototype.reportSyntaxError=function(e){this.current().syntaxError=e},e}();var Nt=r(69);function Lt(){function e(e){return function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];return e.apply(void 0,["Block validation: "+t].concat(n))}}return{error:e(console.error),warning:e(console.warn),getItems:function(){return[]}}}function Mt(){var e=[],t=Lt();return{error:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];e.push({log:t.error,args:n})},warning:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];e.push({log:t.warning,args:n})},getItems:function(){return e}}}var zt=r(64),Dt=r.n(zt),Ht=r(8),It=r(10),Vt=Object(de.createContext)((function(){})),Rt=Vt.Consumer,Ft=Vt.Provider,$t=Object(It.createHigherOrderComponent)((function(e){return function(t){return Object(de.createElement)(Rt,null,(function(r){return Object(de.createElement)(e,Object(Ht.a)({},t,{BlockContent:r}))}))}}),"withBlockContentContext"),qt=function(e){var t=e.children,r=e.innerBlocks;return Object(de.createElement)(Ft,{value:function(){var e=rr(r,{isInnerBlocks:!0});return Object(de.createElement)(de.RawHTML,null,e)}},t)};function Ut(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Gt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ut(Object(r),!0).forEach((function(t){Object(s.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ut(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Kt(e){var t="wp-block-"+e.replace(/\//,"-").replace(/^core-/,"");return Object(ce.applyFilters)("blocks.getBlockDefaultClassName",t,e)}function Wt(e){var t="editor-block-list-item-"+e.replace(/\//,"-").replace(/^core-/,"");return Object(ce.applyFilters)("blocks.getBlockMenuDefaultClassName",t,e)}var Yt={};function Zt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Yt.blockType,r=Yt.attributes;return Object(ce.applyFilters)("blocks.getSaveContent.extraProps",Gt({},e),t,r)}function Qt(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=we(e),a=n.save;if(a.prototype instanceof de.Component){var o=new a({attributes:t});a=o.render.bind(o)}Yt.blockType=n,Yt.attributes=t;var i=a({attributes:t,innerBlocks:r});if(Object(c.isObject)(i)&&Object(ce.hasFilter)("blocks.getSaveContent.extraProps")&&!n.apiVersion){var s=Object(ce.applyFilters)("blocks.getSaveContent.extraProps",Gt({},i.props),n,t);Dt()(s,i.props)||(i=Object(de.cloneElement)(i,s))}return i=Object(ce.applyFilters)("blocks.getSaveElement",i,n,t),Object(de.createElement)(qt,{innerBlocks:r},i)}function Xt(e,t,r){var n=we(e);return Object(de.renderToString)(Qt(n,t,r))}function Jt(e,t){return Object(c.reduce)(e.attributes,(function(e,r,n){var a=t[n];return void 0===a||void 0!==r.source||"default"in r&&r.default===a||(e[n]=a),e}),{})}function er(e){var t=e.originalContent;if(e.isValid||e.innerBlocks.length)try{t=Xt(e.name,e.attributes,e.innerBlocks)}catch(e){}return t}function tr(e,t,r){var n=Object(c.isEmpty)(t)?"":function(e){return JSON.stringify(e).replace(/--/g,"\\u002d\\u002d").replace(/</g,"\\u003c").replace(/>/g,"\\u003e").replace(/&/g,"\\u0026").replace(/\\"/g,"\\u0022")}(t)+" ",a=Object(c.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 rr(e,t){return Object(c.castArray)(e).map((function(e){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.isInnerBlocks,n=void 0!==r&&r,a=e.name,o=er(e);if(a===De()||!n&&a===Le())return o;var i=Re(a),s=Jt(i,e.attributes);return tr(a,s,o)}(e,t)})).join("\n\n")}function nr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var ar=/[\t\n\r\v\f ]+/g,or=/^[\t\n\r\v\f ]*$/,ir=/^url\s*\(['"\s]*(.*?)['"\s]*\)$/,sr=["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"],cr=[].concat(sr,["autocapitalize","autocomplete","charset","contenteditable","crossorigin","decoding","dir","draggable","enctype","formenctype","formmethod","http-equiv","inputmode","kind","method","preload","scope","shape","spellcheck","translate","type","wrap"]),ur=[c.identity,function(e){return hr(e).join(" ")}],lr=/^[\da-z]+$/i,fr=/^#\d+$/,dr=/^#x[\da-f]+$/i;var pr=function(){function e(){Object(yt.a)(this,e)}return Object(kt.a)(e,[{key:"parse",value:function(e){if(t=e,lr.test(t)||fr.test(t)||dr.test(t))return Object(Nt.decodeEntities)("&"+e+";");var t}}]),e}();function hr(e){return e.trim().split(ar)}function br(e){return e.attributes.filter((function(e){var t=Object(ee.a)(e,2),r=t[0];return t[1]||0===r.indexOf("data-")||Object(c.includes)(cr,r)}))}function gr(e,t){for(var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Lt(),n=e.chars,a=t.chars,o=0;o<ur.length;o++){var i=ur[o];if((n=i(n))===(a=i(a)))return!0}return r.warning("Expected text `%s`, saw `%s`.",t.chars,e.chars),!1}function mr(e){return e.replace(ir,"url($1)")}function _r(e){var t=e.replace(/;?\s*$/,"").split(";").map((function(e){var t=e.split(":"),r=Object(wt.a)(t),n=r[0],a=r.slice(1).join(":");return[n.trim(),mr(a.trim())]}));return Object(c.fromPairs)(t)}var vr=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?nr(Object(r),!0).forEach((function(t){Object(s.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({class:function(e,t){return!c.xor.apply(void 0,Object(i.a)([e,t].map(hr))).length},style:function(e,t){return c.isEqual.apply(void 0,Object(i.a)([e,t].map(_r)))}},Object(c.fromPairs)(sr.map((function(e){return[e,c.stubTrue]}))));function wr(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Lt();if(e.length!==t.length)return r.warning("Expected attributes %o, instead saw %o.",t,e),!1;for(var n={},a=0;a<t.length;a++)n[t[a][0].toLowerCase()]=t[a][1];for(var o=0;o<e.length;o++){var i=Object(ee.a)(e[o],2),s=i[0],c=i[1],u=s.toLowerCase();if(!n.hasOwnProperty(u))return r.warning("Encountered unexpected attribute `%s`.",s),!1;var l=n[u],f=vr[u];if(f){if(!f(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 yr={StartTag:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Lt();return e.tagName!==t.tagName&&e.tagName.toLowerCase()!==t.tagName.toLowerCase()?(r.warning("Expected tag name `%s`, instead saw `%s`.",t.tagName,e.tagName),!1):wr.apply(void 0,Object(i.a)([e,t].map(br)).concat([r]))},Chars:gr,Comment:gr};function kr(e){for(var t;t=e.shift();){if("Chars"!==t.type)return t;if(!or.test(t.chars))return t}}function Or(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Lt();try{return new Bt(new pr).tokenize(e)}catch(r){t.warning("Malformed HTML detected: %s",e)}return null}function jr(e,t){return!!e.selfClosing&&!(!t||t.tagName!==e.tagName||"EndTag"!==t.type)}function Cr(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Lt();if(e===t)return!0;var n,a,o=[e,t].map((function(e){return Or(e,r)})),i=Object(ee.a)(o,2),s=i[0],c=i[1];if(!s||!c)return!1;for(;n=kr(s);){if(!(a=kr(c)))return r.warning("Expected end of content, instead saw %o.",n),!1;if(n.type!==a.type)return r.warning("Expected token of type `%s` (%o), instead saw `%s` (%o).",a.type,a,n.type,n),!1;var u=yr[n.type];if(u&&!u(n,a,r))return!1;jr(n,c[0])?kr(c):jr(a,s[0])&&kr(s)}return!(a=kr(c))||(r.warning("Expected %o, instead saw end of content.",a),!1)}function Tr(e,t,r){var n,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Mt(),o=we(e);try{n=Xt(o,t)}catch(e){return a.error("Block validation failed because an error occurred while generating block content:\n\n%s",e.toString()),{isValid:!1,validationIssues:a.getItems()}}var i=Cr(r,n,a);return i||a.error("Block validation failed for `%s` (%o).\n\nContent generated by `save` function:\n\n%s\n\nContent retrieved from post body:\n\n%s",o.name,o,n,r),{isValid:i,validationIssues:a.getItems()}}function xr(e,t,r){return Tr(e,t,r,Lt()).isValid}function Pr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Sr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Pr(Object(r),!0).forEach((function(t){Object(s.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ar(e){for(var t={},r=0;r<e.length;r++){var n=e[r],a=n.name,o=n.value;t[a]=o}return t}function Er(e){if(e.nodeType===e.TEXT_NODE)return e.nodeValue;if(e.nodeType!==e.ELEMENT_NODE)throw new TypeError("A block node can only be created from a node of type text or element.");return{type:e.nodeName.toLowerCase(),props:Sr(Sr({},Ar(e.attributes)),{},{children:Lr(e.childNodes)})}}function Br(e){return function(t){var r=t;e&&(r=t.querySelector(e));try{return Er(r)}catch(e){return null}}}var Nr={isNodeOfType:function(e,t){return e&&e.type===t},fromDOM:Er,toHTML:function(e){return Mr([e])},matcher:Br};function Lr(e){for(var t=[],r=0;r<e.length;r++)try{t.push(Er(e[r]))}catch(e){}return t}function Mr(e){var t=e;return Object(de.renderToString)(t)}function zr(e){return function(t){var r=t;return e&&(r=t.querySelector(e)),r?Lr(r.childNodes):[]}}var Dr={concat:function(){for(var e=[],t=0;t<arguments.length;t++)for(var r=Object(c.castArray)(t<0||arguments.length<=t?void 0:arguments[t]),n=0;n<r.length;n++){var a=r[n],o="string"==typeof a&&"string"==typeof e[e.length-1];o?e[e.length-1]+=a:e.push(a)}return e},getChildrenArray:function(e){return e},fromDOM:Lr,toHTML:Mr,matcher:zr};function Hr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ir(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Hr(Object(r),!0).forEach((function(t){Object(s.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}new Set(["attribute","html","text","tag"]);function Vr(e,t){return t.some((function(t){return function(e,t){switch(t){case"string":return"string"==typeof e;case"boolean":return"boolean"==typeof e;case"object":return!!e&&e.constructor===Object;case"null":return null===e;case"array":return Array.isArray(e);case"integer":case"number":return"number"==typeof e}return!0}(e,t)}))}function Rr(e){switch(e.source){case"attribute":var t=function(e,t){return 1===arguments.length&&(t=e,e=void 0),function(r){var n=mt(e,"attributes")(r);if(n&&n.hasOwnProperty(t))return n[t].value}}(e.selector,e.attribute);return"boolean"===e.type&&(t=function(e){return Object(c.flow)([e,function(e){return void 0!==e}])}(t)),t;case"html":return n=e.selector,a=e.multiline,function(e){var t=e;if(n&&(t=e.querySelector(n)),!t)return"";if(a){for(var r="",o=t.children.length,i=0;i<o;i++){var s=t.children[i];s.nodeName.toLowerCase()===a&&(r+=s.outerHTML)}return r}return t.innerHTML};case"text":return function(e){return mt(e,"textContent")}(e.selector);case"children":return zr(e.selector);case"node":return Br(e.selector);case"query":var r=Object(c.mapValues)(e.query,Rr);return function(e,t){return function(r){var n=r.querySelectorAll(e);return[].map.call(n,(function(e){return gt(e,t)}))}}(e.selector,r);case"tag":return Object(c.flow)([mt(e.selector,"nodeName"),function(e){return e?e.toLowerCase():void 0}]);default:console.error('Unknown source type "'.concat(e.source,'"'))}var n,a}function Fr(e,t){return gt(e,Rr(t))}function $r(e,t,r,n){var a,o=t.type,i=t.enum;switch(t.source){case void 0:a=n?n[e]:void 0;break;case"attribute":case"property":case"html":case"text":case"children":case"node":case"query":case"tag":a=Fr(r,t)}return function(e,t){return void 0===t||Vr(e,Object(c.castArray)(t))}(a,o)&&function(e,t){return!Array.isArray(t)||t.includes(e)}(a,i)||(a=void 0),void 0===a?t.default:a}function qr(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=we(e),a=Object(c.mapValues)(n.attributes,(function(e,n){return $r(n,e,t,r)}));return Object(ce.applyFilters)("blocks.getBlockAttributes",a,n,t,r)}function Ur(e,t){var r=Ir({},t);if("core/cover-image"===e&&(e="core/cover"),"core/text"!==e&&"core/cover-text"!==e||(e="core/paragraph"),e&&0===e.indexOf("core/social-link-")&&(r.service=e.substring(17),e="core/social-link"),e&&0===e.indexOf("core-embed/")){var n=e.substring(11),a={speaker:"speaker-deck",polldaddy:"crowdsignal"};r.providerNameSlug=n in a?a[n]:n,["amazon-kindle","wordpress"].includes(n)||(r.responsive=!0),e="core/embed"}return{name:e,attributes:r}}function Gr(e){var t=e.blockName,r=e.attrs,n=e.innerBlocks,a=void 0===n?[]:n,o=e.innerHTML,s=e.innerContent,u=Le(),l=De()||u;r=r||{},o=o.trim();var f=t||u,d=Ur(f,r);f=d.name,r=d.attributes,f===u&&(o=Object(_t.autop)(o).trim());var p=Re(f);if(!p){var h={attrs:r,blockName:t,innerBlocks:a,innerContent:s},b=Kr(h,{isCommentDelimited:!1}),g=Kr(h,{isCommentDelimited:!0});f&&(o=g),r={originalName:t,originalContent:g,originalUndelimitedContent:b},p=Re(f=l)}a=(a=a.map(Gr)).filter((function(e){return e}));var m=f===u||f===l;if(p&&(o||!m)){var _=rt(f,qr(p,o,r),a);if(!m){var v=Tr(p,_.attributes,o),w=v.isValid,y=v.validationIssues;_.isValid=w,_.validationIssues=y}return _.originalContent=_.originalContent||o,(_=function(e,t){var r=Re(e.name),n=r.deprecated;if(!n||!n.length)return e;for(var a=e,o=a.originalContent,s=a.innerBlocks,u=0;u<n.length;u++){var l=n[u].isEligible,f=void 0===l?c.stubFalse:l;if(!e.isValid||f(t,s)){var d=Object.assign(Object(c.omit)(r,Oe),n[u]),p=qr(d,o,t),h=Tr(d,p,o),b=h.isValid,g=h.validationIssues;if(b){var m=s,_=d.migrate;if(_){var v=Object(c.castArray)(_(p,s)),w=Object(ee.a)(v,2),y=w[0];p=void 0===y?t:y;var k=w[1];m=void 0===k?s:k}e=Ir(Ir({},e),{},{attributes:p,innerBlocks:m,isValid:!0})}else e=Ir(Ir({},e),{},{validationIssues:[].concat(Object(i.a)(Object(c.get)(e,"validationIssues",[])),Object(i.a)(g))})}}return e}(_,r)).validationIssues&&_.validationIssues.length>0&&(_.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",p.name,p,Xt(p,_.attributes),_.originalContent):_.validationIssues.forEach((function(e){var t=e.log,r=e.args;return t.apply(void 0,Object(i.a)(r))}))),_}}function Kr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.isCommentDelimited,n=void 0===r||r,a=e.blockName,o=e.attrs,i=void 0===o?{}:o,s=e.innerBlocks,c=void 0===s?[]:s,u=e.innerContent,l=void 0===u?[]:u,f=0,d=l.map((function(e){return null!==e?e:Kr(c[f++],t)})).join("\n").replace(/\n+/g,"\n").trim();return n?tr(a,i,d):d}var Wr,Yr=(Wr=vt.parse,function(e){return Wr(e).reduce((function(e,t){var r=Gr(t);return r&&e.push(r),e}),[])}),Zr=Yr;function Qr(e){var t=document.implementation.createHTMLDocument(""),r=document.implementation.createHTMLDocument(""),n=t.body,a=r.body;for(n.innerHTML=e;n.firstChild;){var o=n.firstChild;o.nodeType===o.TEXT_NODE?o.nodeValue.trim()?(a.lastChild&&"P"===a.lastChild.nodeName||a.appendChild(r.createElement("P")),a.lastChild.appendChild(o)):n.removeChild(o):o.nodeType===o.ELEMENT_NODE?"BR"===o.nodeName?(o.nextSibling&&"BR"===o.nextSibling.nodeName&&(a.appendChild(r.createElement("P")),n.removeChild(o.nextSibling)),a.lastChild&&"P"===a.lastChild.nodeName&&a.lastChild.hasChildNodes()?a.lastChild.appendChild(o):n.removeChild(o)):"P"===o.nodeName?Object(pe.isEmpty)(o)?n.removeChild(o):a.appendChild(o):Object(pe.isPhrasingContent)(o)?(a.lastChild&&"P"===a.lastChild.nodeName||a.appendChild(r.createElement("P")),a.lastChild.appendChild(o)):a.appendChild(o):n.removeChild(o)}return a.innerHTML}function Xr(e,t){if(e.nodeType===e.COMMENT_NODE)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===n.COMMENT_NODE&&"noteaser"===n.nodeValue){a=!0,Object(pe.remove)(n);break}Object(pe.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(pe.replace)(e,function(e){var t=e.createElement("wp-block");return t.dataset.block="core/nextpage",t}(t))}function Jr(e){e.nodeType===e.COMMENT_NODE&&Object(pe.remove)(e)}function en(e,t){return e.every((function(e){return function(e,t){if(Object(pe.isTextContent)(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(c.difference)([r,t],e).length}))}(e,t)&&en(Array.from(e.children),t)}))}function tn(e){return"BR"===e.nodeName&&e.previousSibling&&"BR"===e.previousSibling.nodeName}function rn(e,t){if("SPAN"===e.nodeName&&e.style){var r=e.style,n=r.fontWeight,a=r.fontStyle,o=r.textDecorationLine,i=r.textDecoration,s=r.verticalAlign;"bold"!==n&&"700"!==n||Object(pe.wrap)(t.createElement("strong"),e),"italic"===a&&Object(pe.wrap)(t.createElement("em"),e),("line-through"===o||Object(c.includes)(i,"line-through"))&&Object(pe.wrap)(t.createElement("s"),e),"super"===s?Object(pe.wrap)(t.createElement("sup"),e):"sub"===s&&Object(pe.wrap)(t.createElement("sub"),e)}else"B"===e.nodeName?e=Object(pe.replaceTag)(e,"strong"):"I"===e.nodeName?e=Object(pe.replaceTag)(e,"em"):"A"===e.nodeName&&(e.target&&"_blank"===e.target.toLowerCase()?e.rel="noreferrer noopener":(e.removeAttribute("target"),e.removeAttribute("rel")))}function nn(e){"SCRIPT"!==e.nodeName&&"NOSCRIPT"!==e.nodeName&&"TEMPLATE"!==e.nodeName&&"STYLE"!==e.nodeName||e.parentNode.removeChild(e)}var an=window.parseInt;function on(e){return"OL"===e.nodeName||"UL"===e.nodeName}function sn(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=an(n[1],10)-1||0,o=e.previousElementSibling;if(!o||!on(o)){var i=e.textContent.trim().slice(0,1),s=/[1iIaA]/.test(i),c=t.createElement(s?"ol":"ul");s&&c.setAttribute("type",i),e.parentNode.insertBefore(c,e)}var u=e.previousElementSibling,l=u.nodeName,f=t.createElement("li"),d=u;for(e.removeChild(e.firstElementChild);e.firstChild;)f.appendChild(e.firstChild);for(;a--;)on(d=d.lastElementChild||d)&&(d=d.lastElementChild||d);on(d)||(d=d.appendChild(t.createElement(l))),d.appendChild(f),e.parentNode.removeChild(e)}}}}function cn(e){return"OL"===e.nodeName||"UL"===e.nodeName}function un(e){if(cn(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,Array.from(n.childNodes).map((function(e){var t=e.nodeValue;return void 0===t?"":t})).join("")))){var o=a,i=o.previousElementSibling,s=o.parentNode;i?(i.appendChild(t),s.removeChild(o)):(s.parentNode.insertBefore(t,s),s.parentNode.removeChild(s))}if(a&&cn(a)){var c=e.previousElementSibling;c?c.appendChild(e):Object(pe.unwrap)(e)}}}var ln=r(41),fn=window,dn=fn.atob,pn=fn.File;function hn(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(ee.a)(r,2),a=n[0],o=n[1],i=a.slice(5).split(";"),s=Object(ee.a)(i,1)[0];if(!o||!s)return void(e.src="");try{t=dn(o)}catch(t){return void(e.src="")}for(var c=new Uint8Array(t.length),u=0;u<c.length;u++)c[u]=t.charCodeAt(u);var l=s.replace("/","."),f=new pn([c],l,{type:s});e.src=Object(ln.createBlobURL)(f)}1!==e.height&&1!==e.width||e.parentNode.removeChild(e)}}function bn(e){"BLOCKQUOTE"===e.nodeName&&(e.innerHTML=Qr(e.innerHTML))}function gn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=e.ownerDocument.createElement("figure");t.parentNode.insertBefore(r,t),r.appendChild(e)}function mn(e,t,r){if(function(e,t){var r=e.nodeName.toLowerCase();return"figcaption"!==r&&!Object(pe.isTextContent)(e)&&Object(c.has)(t,["figure","children",r])}(e,r)){var n=e,a=e.parentNode;(function(e,t){var r=e.nodeName.toLowerCase();return Object(c.has)(t,["figure","children","a","children",r])})(e,r)&&"A"===a.nodeName&&1===a.childNodes.length&&(n=e.parentNode);var o=n.closest("p,div");o?e.classList?(e.classList.contains("alignright")||e.classList.contains("alignleft")||e.classList.contains("aligncenter")||!o.textContent.trim())&&gn(n,o):gn(n,o):"BODY"===n.parentNode.nodeName&&gn(n)}}var _n=r(130);function vn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function wn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vn(Object(r),!0).forEach((function(t){Object(s.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var yn=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=lt("from"),o=ut(a,(function(e){return-1===n.indexOf(e.blockName)&&"shortcode"===e.type&&Object(c.some)(Object(c.castArray)(e.tag),(function(e){return Object(_n.regexp)(e).test(t)}))}));if(!o)return[t];var s,u=Object(c.castArray)(o.tag),l=Object(c.find)(u,(function(e){return Object(_n.regexp)(e).test(t)})),f=r;if(s=Object(_n.next)(l,t,r)){r=s.index+s.content.length;var d=t.substr(0,s.index),p=t.substr(r);if(!(Object(c.includes)(s.shortcode.content||"","<")||/(\n|<p>)\s*$/.test(d)&&/^\s*(\n|<\/p>)/.test(p)))return e(t,r);if(o.isMatch&&!o.isMatch(s.shortcode.attrs))return e(t,f,[].concat(Object(i.a)(n),[o.blockName]));var h=Object(c.mapValues)(Object(c.pickBy)(o.attributes,(function(e){return e.shortcode})),(function(e){return e.shortcode(s.shortcode.attrs,s)})),b=rt(o.blockName,qr(wn(wn({},Re(o.blockName)),{},{attributes:o.attributes}),s.shortcode.content,h));return[].concat(Object(i.a)(e(d)),[b],Object(i.a)(e(p)))}return[t]},kn=r(284),On=new(r.n(kn).a.Converter)({noHeaderId:!0,tables:!0,literalMidWordUnderscores:!0,omitExtraWLInCodeBlocks:!0,simpleLineBreaks:!0,strikethrough:!0});function jn(e){if("IFRAME"===e.nodeName){var t=e.ownerDocument.createTextNode(e.src);e.parentNode.replaceChild(t,e)}}function Cn(e){e.id&&0===e.id.indexOf("docs-internal-guid-")&&Object(pe.unwrap)(e)}function Tn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function xn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Tn(Object(r),!0).forEach((function(t){Object(s.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Pn(e,t,r){var n=e.map((function(e){var n=e.isMatch,a=e.blockName,o=e.schema,s=qe(a,"anchor");return o=Object(c.isFunction)(o)?o({phrasingContentSchema:t,isPaste:r}):o,s||n?Object(c.mapValues)(o,(function(e){var t=e.attributes||[];return s&&(t=[].concat(Object(i.a)(t),["id"])),xn(xn({},e),{},{attributes:t,isMatch:n||void 0})})):o}));return c.mergeWith.apply(void 0,[{}].concat(Object(i.a)(n),[function(e,t,r){switch(r){case"children":return"*"===e||"*"===t?"*":xn(xn({},e),t);case"attributes":case"require":return[].concat(Object(i.a)(e||[]),Object(i.a)(t||[]));case"isMatch":if(!e||!t)return;return function(){return e.apply(void 0,arguments)||t.apply(void 0,arguments)}}}]))}function Sn(e,t,r,n){Array.from(e).forEach((function(e){Sn(e.childNodes,t,r,n),t.forEach((function(t){r.contains(e)&&t(e,r,n)}))}))}function An(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,Sn(n.body.childNodes,t,n,r),n.body.innerHTML}function En(e,t){var r=e["".concat(t,"Sibling")];if(r&&Object(pe.isPhrasingContent)(r))return r;var n=e.parentNode;return n&&Object(pe.isPhrasingContent)(n)?En(n,t):void 0}function Bn(e){if(e.nodeType===e.TEXT_NODE){for(var t=e;t=t.parentNode;)if(t.nodeType===t.ELEMENT_NODE&&"PRE"===t.nodeName)return;var r,n=e.data.replace(/[ \r\n\t]+/g," ");if(" "===n[0]){var a=En(e,"previous");a&&"BR"!==a.nodeName&&" "!==a.textContent.slice(-1)||(n=n.slice(1))}if(" "===n[n.length-1]){var o=En(e,"next");(!o||"BR"===o.nodeName||o.nodeType===o.TEXT_NODE&&(" "===(r=o.textContent[0])||"\r"===r||"\n"===r||"\t"===r))&&(n=n.slice(0,-1))}n?e.data=n:e.parentNode.removeChild(e)}}function Nn(e){"BR"===e.nodeName&&(En(e,"next")||e.parentNode.removeChild(e))}function Ln(e){"P"===e.nodeName&&(e.hasChildNodes()||e.parentNode.removeChild(e))}function Mn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function zn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Mn(Object(r),!0).forEach((function(t){Object(s.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Dn=window.console;function Hn(e){return e=An(e,[Cn,rn,Jr]),e=An(e=Object(pe.removeInvalidHTML)(e,Object(pe.getPhrasingContentSchema)("paste"),{inline:!0}),[Bn,Nn]),Dn.log("Processed inline HTML:\n\n",e),e}function In(e){var t,r=e.HTML,n=void 0===r?"":r,a=e.plainText,o=void 0===a?"":a,i=e.mode,s=void 0===i?"AUTO":i,u=e.tagName;if(n=(n=(n=n.replace(/<meta[^>]+>/g,"")).replace(/^\s*<html[^>]*>\s*<body[^>]*>(?:\s*<!--\s*StartFragment\s*-->)?/i,"")).replace(/(?:<!--\s*EndFragment\s*-->\s*)?<\/body>\s*<\/html>\s*$/i,""),"INLINE"!==s){var l=n||o;if(-1!==l.indexOf("\x3c!-- wp:"))return Yr(l)}if(String.prototype.normalize&&(n=n.normalize()),!o||n&&!function(e){return!/<(?!br[ />])/i.test(e)}(n)||(t=o,n=On.makeHtml(function(e){return e.replace(/((?:^|\n)```)([^\n`]+)(```(?:$|\n))/,(function(e,t,r,n){return"".concat(t,"\n").concat(r,"\n").concat(n)}))}(t)),"AUTO"===s&&-1===o.indexOf("\n")&&0!==o.indexOf("<p>")&&0===n.indexOf("<p>")&&(s="INLINE")),"INLINE"===s)return Hn(n);var f=yn(n),d=f.length>1;if("AUTO"===s&&!d&&function(e,t){var r=document.implementation.createHTMLDocument("");r.body.innerHTML=e;var n=Array.from(r.body.children);return!n.some(tn)&&en(n,t)}(n,u))return Hn(n);var p=Object(c.filter)(lt("from"),{type:"raw"}).map((function(e){return e.isMatch?e:zn(zn({},e),{},{isMatch:function(t){return e.selector&&t.matches(e.selector)}})})),h=Object(pe.getPhrasingContentSchema)("paste"),b=Pn(p,h,!0),g=Object(c.compact)(Object(c.flatMap)(f,(function(e){if("string"!=typeof e)return e;var t=[Cn,sn,nn,un,hn,rn,Xr,Jr,jn,mn,bn],r=zn(zn({},b),h);return e=An(e,t,b),e=An(e=Qr(e=Object(pe.removeInvalidHTML)(e,r)),[Bn,Nn,Ln],b),Dn.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=ut(r,(function(t){return(0,t.isMatch)(e)}));if(!t)return rt("core/html",qr("core/html",e.outerHTML));var n=t.transform,a=t.blockName;return n?n(e):rt(a,qr(a,e.outerHTML))}))}({html:e,rawTransforms:p})})));if("AUTO"===s&&1===g.length&&qe(g[0].name,"__unstablePasteTextInline",!1)){var m=o.trim();if(""!==m&&-1===m.indexOf("\n"))return Object(pe.removeInvalidHTML)(er(g[0]),h)}return g}var Vn=r(36),Rn=r.n(Vn);function Fn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function $n(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Fn(Object(r),!0).forEach((function(t){Object(s.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function qn(e){return Rn()("wp.blocks.getPhrasingContentSchema",{alternative:"wp.dom.getPhrasingContentSchema"}),Object(pe.getPhrasingContentSchema)(e)}function Un(e){var t=e.HTML,r=void 0===t?"":t;if(-1!==r.indexOf("\x3c!-- wp:"))return Yr(r);var n=yn(r),a=Object(c.filter)(lt("from"),{type:"raw"}).map((function(e){return e.isMatch?e:$n($n({},e),{},{isMatch:function(t){return e.selector&&t.matches(e.selector)}})})),o=Object(pe.getPhrasingContentSchema)(),i=Pn(a,o);return Object(c.compact)(Object(c.flatMap)(n,(function(e){return"string"!=typeof e?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=ut(r,(function(t){return(0,t.isMatch)(e)}));if(!t)return rt("core/html",qr("core/html",e.outerHTML));var n=t.transform,a=t.blockName;return n?n(e):rt(a,qr(a,e.outerHTML))}))}({html:e=Qr(e=An(e,[un,Xr,mn,bn],i)),rawTransforms:a})})))}function Gn(){return Object(o.select)("core/blocks").getCategories()}function Kn(e){Object(o.dispatch)("core/blocks").setCategories(e)}function Wn(e,t){Object(o.dispatch)("core/blocks").updateCategory(e,t)}function Yn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Zn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Yn(Object(r),!0).forEach((function(t){Object(s.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Qn(){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(c.every)(t,(function(t,r){var n=Object(ee.a)(t,3),a=n[0],o=n[2],i=e[r];return a===i.name&&Qn(i.innerBlocks,o)}))}function Xn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return t?Object(c.map)(t,(function(t,r){var n=Object(ee.a)(t,3),a=n[0],o=n[1],i=n[2],s=e[r];if(s&&s.name===a){var u=Xn(s.innerBlocks,i);return Zn(Zn({},s),{},{innerBlocks:u})}var l=Re(a),f=function(e,t){return Object(c.mapValues)(t,(function(t,r){return d(e[r],t)}))},d=function(e,t){return r=e,"html"===Object(c.get)(r,["source"])&&Object(c.isArray)(t)?Object(de.renderToString)(t):function(e){return"query"===Object(c.get)(e,["source"])}(e)&&t?t.map((function(t){return f(e.query,t)})):t;var r},p=Ur(a,f(Object(c.get)(l,["attributes"],{}),o));return rt(p.name,p.attributes,Xn([],i))})):e}},5: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}))},64:function(e,t){!function(){e.exports=this.wp.isShallowEqual}()},66:function(e,t,r){var n;!function(a){var o=/^\s+/,i=/\s+$/,s=0,c=a.round,u=a.min,l=a.max,f=a.random;function d(e,t){if(t=t||{},(e=e||"")instanceof d)return e;if(!(this instanceof d))return new d(e,t);var r=function(e){var t={r:0,g:0,b:0},r=1,n=null,s=null,c=null,f=!1,d=!1;"string"==typeof e&&(e=function(e){e=e.replace(o,"").replace(i,"").toLowerCase();var t,r=!1;if(A[e])e=A[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:M(t[1]),g:M(t[2]),b:M(t[3]),a:I(t[4]),format:r?"name":"hex8"};if(t=$.hex6.exec(e))return{r:M(t[1]),g:M(t[2]),b:M(t[3]),format:r?"name":"hex"};if(t=$.hex4.exec(e))return{r:M(t[1]+""+t[1]),g:M(t[2]+""+t[2]),b:M(t[3]+""+t[3]),a:I(t[4]+""+t[4]),format:r?"name":"hex8"};if(t=$.hex3.exec(e))return{r:M(t[1]+""+t[1]),g:M(t[2]+""+t[2]),b:M(t[3]+""+t[3]),format:r?"name":"hex"};return!1}(e));"object"==typeof e&&(q(e.r)&&q(e.g)&&q(e.b)?(p=e.r,h=e.g,b=e.b,t={r:255*N(p,255),g:255*N(h,255),b:255*N(b,255)},f=!0,d="%"===String(e.r).substr(-1)?"prgb":"rgb"):q(e.h)&&q(e.s)&&q(e.v)?(n=D(e.s),s=D(e.v),t=function(e,t,r){e=6*N(e,360),t=N(t,100),r=N(r,100);var n=a.floor(e),o=e-n,i=r*(1-t),s=r*(1-o*t),c=r*(1-(1-o)*t),u=n%6;return{r:255*[r,s,i,i,c,r][u],g:255*[c,r,r,s,i,i][u],b:255*[i,i,c,r,r,s][u]}}(e.h,n,s),f=!0,d="hsv"):q(e.h)&&q(e.s)&&q(e.l)&&(n=D(e.s),c=D(e.l),t=function(e,t,r){var n,a,o;function i(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=N(e,360),t=N(t,100),r=N(r,100),0===t)n=a=o=r;else{var s=r<.5?r*(1+t):r+t-r*t,c=2*r-s;n=i(c,s,e+1/3),a=i(c,s,e),o=i(c,s,e-1/3)}return{r:255*n,g:255*a,b:255*o}}(e.h,n,c),f=!0,d="hsl"),e.hasOwnProperty("a")&&(r=e.a));var p,h,b;return r=B(r),{ok:f,format:e.format||d,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 p(e,t,r){e=N(e,255),t=N(t,255),r=N(r,255);var n,a,o=l(e,t,r),i=u(e,t,r),s=(o+i)/2;if(o==i)n=a=0;else{var c=o-i;switch(a=s>.5?c/(2-o-i):c/(o+i),o){case e:n=(t-r)/c+(t<r?6:0);break;case t:n=(r-e)/c+2;break;case r:n=(e-t)/c+4}n/=6}return{h:n,s:a,l:s}}function h(e,t,r){e=N(e,255),t=N(t,255),r=N(r,255);var n,a,o=l(e,t,r),i=u(e,t,r),s=o,c=o-i;if(a=0===o?0:c/o,o==i)n=0;else{switch(o){case e:n=(t-r)/c+(t<r?6:0);break;case t:n=(r-e)/c+2;break;case r:n=(e-t)/c+4}n/=6}return{h:n,s:a,v:s}}function b(e,t,r,n){var a=[z(c(e).toString(16)),z(c(t).toString(16)),z(c(r).toString(16))];return n&&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[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function g(e,t,r,n){return[z(H(n)),z(c(e).toString(16)),z(c(t).toString(16)),z(c(r).toString(16))].join("")}function m(e,t){t=0===t?0:t||10;var r=d(e).toHsl();return r.s-=t/100,r.s=L(r.s),d(r)}function _(e,t){t=0===t?0:t||10;var r=d(e).toHsl();return r.s+=t/100,r.s=L(r.s),d(r)}function v(e){return d(e).desaturate(100)}function w(e,t){t=0===t?0:t||10;var r=d(e).toHsl();return r.l+=t/100,r.l=L(r.l),d(r)}function y(e,t){t=0===t?0:t||10;var r=d(e).toRgb();return r.r=l(0,u(255,r.r-c(-t/100*255))),r.g=l(0,u(255,r.g-c(-t/100*255))),r.b=l(0,u(255,r.b-c(-t/100*255))),d(r)}function k(e,t){t=0===t?0:t||10;var r=d(e).toHsl();return r.l-=t/100,r.l=L(r.l),d(r)}function O(e,t){var r=d(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,d(r)}function j(e){var t=d(e).toHsl();return t.h=(t.h+180)%360,d(t)}function C(e){var t=d(e).toHsl(),r=t.h;return[d(e),d({h:(r+120)%360,s:t.s,l:t.l}),d({h:(r+240)%360,s:t.s,l:t.l})]}function T(e){var t=d(e).toHsl(),r=t.h;return[d(e),d({h:(r+90)%360,s:t.s,l:t.l}),d({h:(r+180)%360,s:t.s,l:t.l}),d({h:(r+270)%360,s:t.s,l:t.l})]}function x(e){var t=d(e).toHsl(),r=t.h;return[d(e),d({h:(r+72)%360,s:t.s,l:t.l}),d({h:(r+216)%360,s:t.s,l:t.l})]}function P(e,t,r){t=t||6,r=r||30;var n=d(e).toHsl(),a=360/r,o=[d(e)];for(n.h=(n.h-(a*t>>1)+720)%360;--t;)n.h=(n.h+a)%360,o.push(d(n));return o}function S(e,t){t=t||6;for(var r=d(e).toHsv(),n=r.h,a=r.s,o=r.v,i=[],s=1/t;t--;)i.push(d({h:n,s:a,v:o})),o=(o+s)%1;return i}d.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=B(e),this._roundA=c(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=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=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=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 b(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 o=[z(c(e).toString(16)),z(c(t).toString(16)),z(c(r).toString(16)),z(H(n))];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: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*N(this._r,255))+"%",g:c(100*N(this._g,255))+"%",b:c(100*N(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+c(100*N(this._r,255))+"%, "+c(100*N(this._g,255))+"%, "+c(100*N(this._b,255))+"%)":"rgba("+c(100*N(this._r,255))+"%, "+c(100*N(this._g,255))+"%, "+c(100*N(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(E[b(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+g(this._r,this._g,this._b,this._a),r=t,n=this._gradientType?"GradientType = 1, ":"";if(e){var a=d(e);r="#"+g(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 d(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(w,arguments)},brighten:function(){return this._applyModification(y,arguments)},darken:function(){return this._applyModification(k,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(_,arguments)},greyscale:function(){return this._applyModification(v,arguments)},spin:function(){return this._applyModification(O,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(P,arguments)},complement:function(){return this._applyCombination(j,arguments)},monochromatic:function(){return this._applyCombination(S,arguments)},splitcomplement:function(){return this._applyCombination(x,arguments)},triad:function(){return this._applyCombination(C,arguments)},tetrad:function(){return this._applyCombination(T,arguments)}},d.fromRatio=function(e,t){if("object"==typeof e){var r={};for(var n in e)e.hasOwnProperty(n)&&(r[n]="a"===n?e[n]:D(e[n]));e=r}return d(e,t)},d.equals=function(e,t){return!(!e||!t)&&d(e).toRgbString()==d(t).toRgbString()},d.random=function(){return d.fromRatio({r:f(),g:f(),b:f()})},d.mix=function(e,t,r){r=0===r?0:r||50;var n=d(e).toRgb(),a=d(t).toRgb(),o=r/100;return d({r:(a.r-n.r)*o+n.r,g:(a.g-n.g)*o+n.g,b:(a.b-n.b)*o+n.b,a:(a.a-n.a)*o+n.a})},d.readability=function(e,t){var r=d(e),n=d(t);return(a.max(r.getLuminance(),n.getLuminance())+.05)/(a.min(r.getLuminance(),n.getLuminance())+.05)},d.isReadable=function(e,t,r){var n,a,o=d.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=o>=4.5;break;case"AAlarge":a=o>=3;break;case"AAAsmall":a=o>=7}return a},d.mostReadable=function(e,t,r){var n,a,o,i,s=null,c=0;a=(r=r||{}).includeFallbackColors,o=r.level,i=r.size;for(var u=0;u<t.length;u++)(n=d.readability(e,t[u]))>c&&(c=n,s=d(t[u]));return d.isReadable(e,s,{level:o,size:i})||!a?s:(r.includeFallbackColors=!1,d.mostReadable(e,["#fff","#000"],r))};var A=d.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"},E=d.hexNames=function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}(A);function B(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 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 L(e){return u(1,l(0,e))}function M(e){return parseInt(e,16)}function z(e){return 1==e.length?"0"+e:""+e}function D(e){return e<=1&&(e=100*e+"%"),e}function H(e){return a.round(255*parseFloat(e)).toString(16)}function I(e){return M(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=d:void 0===(n=function(){return d}.call(t,r,t,e))||(e.exports=n)}(Math)},69:function(e,t){!function(){e.exports=this.wp.htmlEntities}()},7:function(e,t){!function(){e.exports=this.wp.primitives}()},8:function(e,t,r){"use strict";function n(){return(n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}r.d(t,"a",(function(){return n}))}}); \ No newline at end of file +(function(){function a(e){"use strict";var t={omitExtraWLInCodeBlocks:{defaultValue:!1,describe:"Omit the default extra whiteline added to code blocks",type:"boolean"},noHeaderId:{defaultValue:!1,describe:"Turn on/off generated header id",type:"boolean"},prefixHeaderId:{defaultValue:!1,describe:"Add a prefix to the generated header ids. Passing a string will prefix that string to the header id. Setting to true will add a generic 'section-' prefix",type:"string"},rawPrefixHeaderId:{defaultValue:!1,describe:'Setting this option to true will prevent showdown from modifying the prefix. This might result in malformed IDs (if, for instance, the " char is used in the prefix)',type:"boolean"},ghCompatibleHeaderId:{defaultValue:!1,describe:"Generate header ids compatible with github style (spaces are replaced with dashes, a bunch of non alphanumeric chars are removed)",type:"boolean"},rawHeaderId:{defaultValue:!1,describe:"Remove only spaces, ' and \" from generated header ids (including prefixes), replacing them with dashes (-). WARNING: This might result in malformed ids",type:"boolean"},headerLevelStart:{defaultValue:!1,describe:"The header blocks level start",type:"integer"},parseImgDimensions:{defaultValue:!1,describe:"Turn on/off image dimension parsing",type:"boolean"},simplifiedAutoLink:{defaultValue:!1,describe:"Turn on/off GFM autolink style",type:"boolean"},excludeTrailingPunctuationFromURLs:{defaultValue:!1,describe:"Excludes trailing punctuation from links generated with autoLinking",type:"boolean"},literalMidWordUnderscores:{defaultValue:!1,describe:"Parse midword underscores as literal underscores",type:"boolean"},literalMidWordAsterisks:{defaultValue:!1,describe:"Parse midword asterisks as literal asterisks",type:"boolean"},strikethrough:{defaultValue:!1,describe:"Turn on/off strikethrough support",type:"boolean"},tables:{defaultValue:!1,describe:"Turn on/off tables support",type:"boolean"},tablesHeaderId:{defaultValue:!1,describe:"Add an id to table headers",type:"boolean"},ghCodeBlocks:{defaultValue:!0,describe:"Turn on/off GFM fenced code blocks support",type:"boolean"},tasklists:{defaultValue:!1,describe:"Turn on/off GFM tasklist support",type:"boolean"},smoothLivePreview:{defaultValue:!1,describe:"Prevents weird effects in live previews due to incomplete input",type:"boolean"},smartIndentationFix:{defaultValue:!1,description:"Tries to smartly fix indentation in es6 strings",type:"boolean"},disableForced4SpacesIndentedSublists:{defaultValue:!1,description:"Disables the requirement of indenting nested sublists by 4 spaces",type:"boolean"},simpleLineBreaks:{defaultValue:!1,description:"Parses simple line breaks as <br> (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: <div>foo</div>",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 `<em>` and `<strong>`",type:"boolean"},completeHTMLDocument:{defaultValue:!1,description:"Outputs a complete html document, including `<html>`, `<head>` and `<body>` 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 o={},i={},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 f(e,t){"use strict";var r=t?"Error in "+t+" extension->":"Error in unnamed extension",n={valid:!0,error:""};o.helper.isArray(e)||(e=[e]);for(var a=0;a<e.length;++a){var i=r+" sub-extension "+a+": ",s=e[a];if("object"!=typeof s)return n.valid=!1,n.error=i+"must be an object, but "+typeof s+" given",n;if(!o.helper.isString(s.type))return n.valid=!1,n.error=i+'property "type" must be a string, but '+typeof s.type+" given",n;var c=s.type=s.type.toLowerCase();if("language"===c&&(c=s.type="lang"),"html"===c&&(c=s.type="output"),"lang"!==c&&"output"!==c&&"listener"!==c)return n.valid=!1,n.error=i+"type "+c+' is not recognized. Valid values: "lang/language", "output/html" or "listener"',n;if("listener"===c){if(o.helper.isUndefined(s.listeners))return n.valid=!1,n.error=i+'. Extensions of type "listener" must have a property called "listeners"',n}else if(o.helper.isUndefined(s.filter)&&o.helper.isUndefined(s.regex))return n.valid=!1,n.error=i+c+' extensions must define either a "regex" property or a "filter" method',n;if(s.listeners){if("object"!=typeof s.listeners)return n.valid=!1,n.error=i+'"listeners" property must be an object but '+typeof s.listeners+" given",n;for(var u in s.listeners)if(s.listeners.hasOwnProperty(u)&&"function"!=typeof s.listeners[u])return n.valid=!1,n.error=i+'"listeners" property must be an hash of [event name]: [callback]. listeners.'+u+" must be a function but "+typeof s.listeners[u]+" given",n}if(s.filter){if("function"!=typeof s.filter)return n.valid=!1,n.error=i+'"filter" must be a function, but '+typeof s.filter+" given",n}else if(s.regex){if(o.helper.isString(s.regex)&&(s.regex=new RegExp(s.regex,"g")),!(s.regex instanceof RegExp))return n.valid=!1,n.error=i+'"regex" property must either be a string or a RegExp object, but '+typeof s.regex+" given",n;if(o.helper.isUndefined(s.replace))return n.valid=!1,n.error=i+'"regex" extensions must implement a replace string or function',n}}return n}function d(e,t){"use strict";return"¨E"+t.charCodeAt(0)+"E"}o.helper={},o.extensions={},o.setOption=function(e,t){"use strict";return c[e]=t,this},o.getOption=function(e){"use strict";return c[e]},o.getOptions=function(){"use strict";return c},o.resetOptions=function(){"use strict";c=a(!0)},o.setFlavor=function(e){"use strict";if(!l.hasOwnProperty(e))throw Error(e+" flavor was not found");o.resetOptions();var t=l[e];for(var r in u=e,t)t.hasOwnProperty(r)&&(c[r]=t[r])},o.getFlavor=function(){"use strict";return u},o.getFlavorOptions=function(e){"use strict";if(l.hasOwnProperty(e))return l[e]},o.getDefaultOptions=function(e){"use strict";return a(e)},o.subParser=function(e,t){"use strict";if(o.helper.isString(e)){if(void 0===t){if(i.hasOwnProperty(e))return i[e];throw Error("SubParser named "+e+" not registered!")}i[e]=t}},o.extension=function(e,t){"use strict";if(!o.helper.isString(e))throw Error("Extension 'name' must be a string");if(e=o.helper.stdExtName(e),o.helper.isUndefined(t)){if(!s.hasOwnProperty(e))throw Error("Extension named "+e+" is not registered!");return s[e]}"function"==typeof t&&(t=t()),o.helper.isArray(t)||(t=[t]);var r=f(t,e);if(!r.valid)throw Error(r.error);s[e]=t},o.getAllExtensions=function(){"use strict";return s},o.removeExtension=function(e){"use strict";delete s[e]},o.resetExtensions=function(){"use strict";s={}},o.validateExtension=function(e){"use strict";var t=f(e,null);return!!t.valid||(console.warn(t.error),!1)},o.hasOwnProperty("helper")||(o.helper={}),o.helper.isString=function(e){"use strict";return"string"==typeof e||e instanceof String},o.helper.isFunction=function(e){"use strict";return e&&"[object Function]"==={}.toString.call(e)},o.helper.isArray=function(e){"use strict";return Array.isArray(e)},o.helper.isUndefined=function(e){"use strict";return void 0===e},o.helper.forEach=function(e,t){"use strict";if(o.helper.isUndefined(e))throw new Error("obj param is required");if(o.helper.isUndefined(t))throw new Error("callback param is required");if(!o.helper.isFunction(t))throw new Error("callback param must be a function/closure");if("function"==typeof e.forEach)e.forEach(t);else if(o.helper.isArray(e))for(var r=0;r<e.length;r++)t(e[r],r,e);else{if("object"!=typeof e)throw new Error("obj does not seem to be an array or an iterable object");for(var n in e)e.hasOwnProperty(n)&&t(e[n],n,e)}},o.helper.stdExtName=function(e){"use strict";return e.replace(/[_?*+\/\\.^-]/g,"").replace(/\s/g,"").toLowerCase()},o.helper.escapeCharactersCallback=d,o.helper.escapeCharacters=function(e,t,r){"use strict";var n="(["+t.replace(/([\[\]\\])/g,"\\$1")+"])";r&&(n="\\\\"+n);var a=new RegExp(n,"g");return e=e.replace(a,d)},o.helper.unescapeHTMLEntities=function(e){"use strict";return e.replace(/"/g,'"').replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&")};var p=function(e,t,r,n){"use strict";var a,o,i,s,c,u=n||"",l=u.indexOf("g")>-1,f=new RegExp(t+"|"+r,"g"+u.replace(/g/g,"")),d=new RegExp(t,u.replace(/g/g,"")),p=[];do{for(a=0;i=f.exec(e);)if(d.test(i[0]))a++||(s=(o=f.lastIndex)-i[0].length);else if(a&&!--a){c=i.index+i[0].length;var h={left:{start:s,end:o},match:{start:o,end:i.index},right:{start:i.index,end:c},wholeMatch:{start:s,end:c}};if(p.push(h),!l)return p}}while(a&&(f.lastIndex=o));return p};o.helper.matchRecursiveRegExp=function(e,t,r,n){"use strict";for(var a=p(e,t,r,n),o=[],i=0;i<a.length;++i)o.push([e.slice(a[i].wholeMatch.start,a[i].wholeMatch.end),e.slice(a[i].match.start,a[i].match.end),e.slice(a[i].left.start,a[i].left.end),e.slice(a[i].right.start,a[i].right.end)]);return o},o.helper.replaceRecursiveRegExp=function(e,t,r,n,a){"use strict";if(!o.helper.isFunction(t)){var i=t;t=function(){return i}}var s=p(e,r,n,a),c=e,u=s.length;if(u>0){var l=[];0!==s[0].wholeMatch.start&&l.push(e.slice(0,s[0].wholeMatch.start));for(var f=0;f<u;++f)l.push(t(e.slice(s[f].wholeMatch.start,s[f].wholeMatch.end),e.slice(s[f].match.start,s[f].match.end),e.slice(s[f].left.start,s[f].left.end),e.slice(s[f].right.start,s[f].right.end))),f<u-1&&l.push(e.slice(s[f].wholeMatch.end,s[f+1].wholeMatch.start));s[u-1].wholeMatch.end<e.length&&l.push(e.slice(s[u-1].wholeMatch.end)),c=l.join("")}return c},o.helper.regexIndexOf=function(e,t,r){"use strict";if(!o.helper.isString(e))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";if(t instanceof RegExp==!1)throw"InvalidArgumentError: second parameter of showdown.helper.regexIndexOf function must be an instance of RegExp";var n=e.substring(r||0).search(t);return n>=0?n+(r||0):n},o.helper.splitAtIndex=function(e,t){"use strict";if(!o.helper.isString(e))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";return[e.substring(0,t),e.substring(t)]},o.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}))},o.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}}),o.helper.regexes={asteriskDashAndColon:/([*_:~])/g},o.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:'<img alt=":octocat:" height="20" width="20" align="absmiddle" src="https://assets-cdn.github.com/images/icons/emoji/octocat.png">',showdown:"<span style=\"font-family: 'Anonymous Pro', monospace; text-decoration: underline; text-decoration-style: dashed; text-decoration-color: #3e8b8a;text-underline-position: under;\">S</span>"},o.Converter=function(e){"use strict";var t={},r=[],n=[],a={},i=u,d={parsed:{},raw:"",format:""};function p(e,t){if(t=t||null,o.helper.isString(e)){if(t=e=o.helper.stdExtName(e),o.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 o.Converter));o.helper.isArray(e)||(e=[e]);var a=f(e,t);if(!a.valid)throw Error(a.error);for(var i=0;i<e.length;++i)switch(e[i].type){case"lang":r.push(e[i]);break;case"output":n.push(e[i]);break;default:throw Error("Extension loader error: Type unrecognized!!!")}}(o.extensions[e],e);if(o.helper.isUndefined(s[e]))throw Error('Extension "'+e+'" could not be loaded. It was either not found or is not a valid extension.');e=s[e]}"function"==typeof e&&(e=e()),o.helper.isArray(e)||(e=[e]);var a=f(e,t);if(!a.valid)throw Error(a.error);for(var i=0;i<e.length;++i){switch(e[i].type){case"lang":r.push(e[i]);break;case"output":n.push(e[i])}if(e[i].hasOwnProperty("listeners"))for(var c in e[i].listeners)e[i].listeners.hasOwnProperty(c)&&h(c,e[i].listeners[c])}}function h(e,t){if(!o.helper.isString(e))throw Error("Invalid argument in converter.listen() method: name must be a string, but "+typeof e+" given");if("function"!=typeof t)throw Error("Invalid argument in converter.listen() method: callback must be a function, but "+typeof t+" given");a.hasOwnProperty(e)||(a[e]=[]),a[e].push(t)}!function(){for(var r in e=e||{},c)c.hasOwnProperty(r)&&(t[r]=c[r]);if("object"!=typeof e)throw Error("Converter expects the passed parameter to be an object, but "+typeof e+" was passed instead.");for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.extensions&&o.helper.forEach(t.extensions,p)}(),this._dispatch=function(e,t,r,n){if(a.hasOwnProperty(e))for(var o=0;o<a[e].length;++o){var i=a[e][o](e,t,this,r,n);i&&void 0!==i&&(t=i)}return t},this.listen=function(e,t){return h(e,t),this},this.makeHtml=function(e){if(!e)return e;var a={gHtmlBlocks:[],gHtmlMdBlocks:[],gHtmlSpans:[],gUrls:{},gTitles:{},gDimensions:{},gListLevel:0,hashLinkCounts:{},langExtensions:r,outputModifiers:n,converter:this,ghCodeBlocks:[],metadata:{parsed:{},raw:"",format:""}};return e=(e=(e=(e=(e=e.replace(/¨/g,"¨T")).replace(/\$/g,"¨D")).replace(/\r\n/g,"\n")).replace(/\r/g,"\n")).replace(/\u00A0/g," "),t.smartIndentationFix&&(e=function(e){var t=e.match(/^\s*/)[0].length,r=new RegExp("^\\s{0,"+t+"}","gm");return e.replace(r,"")}(e)),e="\n\n"+e+"\n\n",e=(e=o.subParser("detab")(e,t,a)).replace(/^[ \t]+$/gm,""),o.helper.forEach(r,(function(r){e=o.subParser("runExtension")(r,e,t,a)})),e=o.subParser("metadata")(e,t,a),e=o.subParser("hashPreCodeTags")(e,t,a),e=o.subParser("githubCodeBlocks")(e,t,a),e=o.subParser("hashHTMLBlocks")(e,t,a),e=o.subParser("hashCodeTags")(e,t,a),e=o.subParser("stripLinkDefinitions")(e,t,a),e=o.subParser("blockGamut")(e,t,a),e=o.subParser("unhashHTMLSpans")(e,t,a),e=(e=(e=o.subParser("unescapeSpecialChars")(e,t,a)).replace(/¨D/g,"$$")).replace(/¨T/g,"¨"),e=o.subParser("completeHTMLDocument")(e,t,a),o.helper.forEach(n,(function(r){e=o.subParser("runExtension")(r,e,t,a)})),d=a.metadata,e},this.makeMarkdown=this.makeMd=function(e,t){if(e=(e=(e=e.replace(/\r\n/g,"\n")).replace(/\r/g,"\n")).replace(/>[ \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<t.length;++n)if(1===t[n].childElementCount&&"code"===t[n].firstChild.tagName.toLowerCase()){var a=t[n].firstChild.innerHTML.trim(),i=t[n].firstChild.getAttribute("data-language")||"";if(""===i)for(var s=t[n].firstChild.className.split(" "),c=0;c<s.length;++c){var u=s[c].match(/^language-(.+)$/);if(null!==u){i=u[1];break}}a=o.helper.unescapeHTMLEntities(a),r.push(a),t[n].outerHTML='<precode language="'+i+'" precodenum="'+n.toString()+'"></precode>'}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<t.childNodes.length;++r){var n=t.childNodes[r];3===n.nodeType?/\S/.test(n.nodeValue)?(n.nodeValue=n.nodeValue.split("\n").join(" "),n.nodeValue=n.nodeValue.replace(/(\s)+/g,"$1")):(t.removeChild(n),--r):1===n.nodeType&&e(n)}}(r);for(var a=r.childNodes,i="",s=0;s<a.length;s++)i+=o.subParser("makeMarkdown.node")(a[s],n);return i},this.setOption=function(e,r){t[e]=r},this.getOption=function(e){return t[e]},this.getOptions=function(){return t},this.addExtension=function(e,t){p(e,t=t||null)},this.useExtension=function(e){p(e)},this.setFlavor=function(e){if(!l.hasOwnProperty(e))throw Error(e+" flavor was not found");var r=l[e];for(var n in i=e,r)r.hasOwnProperty(n)&&(t[n]=r[n])},this.getFlavor=function(){return i},this.removeExtension=function(e){o.helper.isArray(e)||(e=[e]);for(var t=0;t<e.length;++t){for(var a=e[t],i=0;i<r.length;++i)r[i]===a&&r[i].splice(i,1);for(;0<n.length;++i)n[0]===a&&n[0].splice(i,1)}},this.getAllExtensions=function(){return{language:r,output:n}},this.getMetadata=function(e){return e?d.raw:d.parsed},this.getMetadataFormat=function(){return d.format},this._setMetadataPair=function(e,t){d.parsed[e]=t},this._setMetadataFormat=function(e){d.format=e},this._setMetadataRaw=function(e){d.raw=e}},o.subParser("anchors",(function(e,t,r){"use strict";var n=function(e,n,a,i,s,c,u){if(o.helper.isUndefined(u)&&(u=""),a=a.toLowerCase(),e.search(/\(<?\s*>? ?(['"].*['"])?\)$/m)>-1)i="";else if(!i){if(a||(a=n.toLowerCase().replace(/ ?\n/g," ")),i="#"+a,o.helper.isUndefined(r.gUrls[a]))return e;i=r.gUrls[a],o.helper.isUndefined(r.gTitles[a])||(u=r.gTitles[a])}var l='<a href="'+(i=i.replace(o.helper.regexes.asteriskDashAndColon,o.helper.escapeCharactersCallback))+'"';return""!==u&&null!==u&&(l+=' title="'+(u=(u=u.replace(/"/g,""")).replace(o.helper.regexes.asteriskDashAndColon,o.helper.escapeCharactersCallback))+'"'),t.openLinksInNewWindow&&!/^#/.test(i)&&(l+=' rel="noopener noreferrer" target="¨E95Eblank"'),l+=">"+n+"</a>"};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]?<?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?:[ \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,i){if("\\"===n)return r+a;if(!o.helper.isString(t.ghMentionsLink))throw new Error("ghMentionsLink option must be a string");var s=t.ghMentionsLink.replace(/\{u}/g,i),c="";return t.openLinksInNewWindow&&(c=' rel="noopener noreferrer" target="¨E95Eblank"'),r+'<a href="'+s+'"'+c+">"+a+"</a>"}))),e=r.converter._dispatch("anchors.after",e,t,r)}));var h=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+?\.[^'">\s]+?)()(\1)?(?=\s|$)(?!["<>])/gi,b=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+?)([.!?,()\[\]])?(\1)?(?=\s|$)(?!["<>])/gi,g=/()<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)()>()/gi,m=/(^|\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,i,s,c){var u=n=n.replace(o.helper.regexes.asteriskDashAndColon,o.helper.escapeCharactersCallback),l="",f="",d=r||"",p=c||"";return/^www\./i.test(n)&&(n=n.replace(/^www\./i,"http://www.")),e.excludeTrailingPunctuationFromURLs&&s&&(l=s),e.openLinksInNewWindow&&(f=' rel="noopener noreferrer" target="¨E95Eblank"'),d+'<a href="'+n+'"'+f+">"+u+"</a>"+l+p}},w=function(e,t){"use strict";return function(r,n,a){var i="mailto:";return n=n||"",a=o.subParser("unescapeSpecialChars")(a,e,t),e.encodeEmails?(i=o.helper.encodeEmailAddress(i+a),a=o.helper.encodeEmailAddress(a)):i+=a,n+'<a href="'+i+'">'+a+"</a>"}};o.subParser("autoLinks",(function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("autoLinks.before",e,t,r)).replace(g,v(t))).replace(_,w(t,r)),e=r.converter._dispatch("autoLinks.after",e,t,r)})),o.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(b,v(t)):e.replace(h,v(t))).replace(m,w(t,r)),e=r.converter._dispatch("simplifiedAutoLinks.after",e,t,r)):e})),o.subParser("blockGamut",(function(e,t,r){"use strict";return e=r.converter._dispatch("blockGamut.before",e,t,r),e=o.subParser("blockQuotes")(e,t,r),e=o.subParser("headers")(e,t,r),e=o.subParser("horizontalRule")(e,t,r),e=o.subParser("lists")(e,t,r),e=o.subParser("codeBlocks")(e,t,r),e=o.subParser("tables")(e,t,r),e=o.subParser("hashHTMLBlocks")(e,t,r),e=o.subParser("paragraphs")(e,t,r),e=r.converter._dispatch("blockGamut.after",e,t,r)})),o.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=o.subParser("githubCodeBlocks")(e,t,r),e=(e=(e=o.subParser("blockGamut")(e,t,r)).replace(/(^|\n)/g,"$1 ")).replace(/(\s*<pre>[^\r]+?<\/pre>)/gm,(function(e,t){var r=t;return r=(r=r.replace(/^ /gm,"¨0")).replace(/¨0/g,"")})),o.subParser("hashBlock")("<blockquote>\n"+e+"\n</blockquote>",t,r)})),e=r.converter._dispatch("blockQuotes.after",e,t,r)})),o.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 i=n,s=a,c="\n";return i=o.subParser("outdent")(i,t,r),i=o.subParser("encodeCode")(i,t,r),i=(i=(i=o.subParser("detab")(i,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,""),t.omitExtraWLInCodeBlocks&&(c=""),i="<pre><code>"+i+c+"</code></pre>",o.subParser("hashBlock")(i,t,r)+s}))).replace(/¨0/,""),e=r.converter._dispatch("codeBlocks.after",e,t,r)})),o.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,i){var s=i;return s=(s=s.replace(/^([ \t]*)/g,"")).replace(/[ \t]*$/g,""),s=n+"<code>"+(s=o.subParser("encodeCode")(s,t,r))+"</code>",s=o.subParser("hashHTMLSpans")(s,t,r)})),e=r.converter._dispatch("codeSpans.after",e,t,r)})),o.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="<!DOCTYPE HTML>\n",o="",i='<meta charset="utf-8">\n',s="",c="";for(var u in void 0!==r.metadata.parsed.doctype&&(a="<!DOCTYPE "+r.metadata.parsed.doctype+">\n","html"!==(n=r.metadata.parsed.doctype.toString().toLowerCase())&&"html5"!==n||(i='<meta charset="utf-8">')),r.metadata.parsed)if(r.metadata.parsed.hasOwnProperty(u))switch(u.toLowerCase()){case"doctype":break;case"title":o="<title>"+r.metadata.parsed.title+"</title>\n";break;case"charset":i="html"===n||"html5"===n?'<meta charset="'+r.metadata.parsed.charset+'">\n':'<meta name="charset" content="'+r.metadata.parsed.charset+'">\n';break;case"language":case"lang":s=' lang="'+r.metadata.parsed[u]+'"',c+='<meta name="'+u+'" content="'+r.metadata.parsed[u]+'">\n';break;default:c+='<meta name="'+u+'" content="'+r.metadata.parsed[u]+'">\n'}return e=a+"<html"+s+">\n<head>\n"+o+i+c+"</head>\n<body>\n"+e.trim()+"\n</body>\n</html>",e=r.converter._dispatch("completeHTMLDocument.after",e,t,r)})),o.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<n;a++)r+=" ";return r}))).replace(/¨A/g," ")).replace(/¨B/g,""),e=r.converter._dispatch("detab.after",e,t,r)})),o.subParser("ellipsis",(function(e,t,r){"use strict";return e=(e=r.converter._dispatch("ellipsis.before",e,t,r)).replace(/\.\.\./g,"…"),e=r.converter._dispatch("ellipsis.after",e,t,r)})),o.subParser("emoji",(function(e,t,r){"use strict";if(!t.emoji)return e;return e=(e=r.converter._dispatch("emoji.before",e,t,r)).replace(/:([\S]+?):/g,(function(e,t){return o.helper.emojis.hasOwnProperty(t)?o.helper.emojis[t]:e})),e=r.converter._dispatch("emoji.after",e,t,r)})),o.subParser("encodeAmpsAndAngles",(function(e,t,r){"use strict";return e=(e=(e=(e=(e=r.converter._dispatch("encodeAmpsAndAngles.before",e,t,r)).replace(/&(?!#?[xX]?(?:[0-9a-fA-F]+|\w+);)/g,"&")).replace(/<(?![a-z\/?$!])/gi,"<")).replace(/</g,"<")).replace(/>/g,">"),e=r.converter._dispatch("encodeAmpsAndAngles.after",e,t,r)})),o.subParser("encodeBackslashEscapes",(function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("encodeBackslashEscapes.before",e,t,r)).replace(/\\(\\)/g,o.helper.escapeCharactersCallback)).replace(/\\([`*_{}\[\]()>#+.!~=|-])/g,o.helper.escapeCharactersCallback),e=r.converter._dispatch("encodeBackslashEscapes.after",e,t,r)})),o.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,">").replace(/([*_{}\[\]\\=~-])/g,o.helper.escapeCharactersCallback),e=r.converter._dispatch("encodeCode.after",e,t,r)})),o.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,o.helper.escapeCharactersCallback)}))).replace(/<!(--(?:(?:[^>-]|-[^>])(?:[^-]|-[^-])*)--)>/gi,(function(e){return e.replace(/([\\`*_~=|])/g,o.helper.escapeCharactersCallback)})),e=r.converter._dispatch("escapeSpecialCharsWithinTagAttributes.after",e,t,r)})),o.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,i){var s=t.omitExtraWLInCodeBlocks?"":"\n";return i=o.subParser("encodeCode")(i,t,r),i="<pre><code"+(a?' class="'+a+" language-"+a+'"':"")+">"+(i=(i=(i=o.subParser("detab")(i,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,""))+s+"</code></pre>",i=o.subParser("hashBlock")(i,t,r),"\n\n¨G"+(r.ghCodeBlocks.push({text:e,codeblock:i})-1)+"G\n\n"}))).replace(/¨0/,""),r.converter._dispatch("githubCodeBlocks.after",e,t,r)):e})),o.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)})),o.subParser("hashCodeTags",(function(e,t,r){"use strict";e=r.converter._dispatch("hashCodeTags.before",e,t,r);return e=o.helper.replaceRecursiveRegExp(e,(function(e,n,a,i){var s=a+o.subParser("encodeCode")(n,t,r)+i;return"¨C"+(r.gHtmlSpans.push(s)-1)+"C"}),"<code\\b[^>]*>","</code>","gim"),e=r.converter._dispatch("hashCodeTags.after",e,t,r)})),o.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"}})),o.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 o=e;return-1!==n.search(/\bmarkdown\b/)&&(o=n+r.converter.makeHtml(t)+a),"\n\n¨K"+(r.gHtmlBlocks.push(o)-1)+"K\n\n"};t.backslashEscapesHTMLTags&&(e=e.replace(/\\<(\/?[^>]+?)>/g,(function(e,t){return"<"+t+">"})));for(var i=0;i<n.length;++i)for(var s,c=new RegExp("^ {0,3}(<"+n[i]+"\\b[^>]*>)","im"),u="<"+n[i]+"\\b[^>]*>",l="</"+n[i]+">";-1!==(s=o.helper.regexIndexOf(e,c));){var f=o.helper.splitAtIndex(e,s),d=o.helper.replaceRecursiveRegExp(f[1],a,u,l,"im");if(d===f[1])break;e=f[0].concat(d)}return e=e.replace(/(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,o.subParser("hashElement")(e,t,r)),e=(e=o.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,o.subParser("hashElement")(e,t,r)),e=r.converter._dispatch("hashHTMLBlocks.after",e,t,r)})),o.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)})),o.subParser("unhashHTMLSpans",(function(e,t,r){"use strict";e=r.converter._dispatch("unhashHTMLSpans.before",e,t,r);for(var n=0;n<r.gHtmlSpans.length;++n){for(var a=r.gHtmlSpans[n],o=0;/¨C(\d+)C/.test(a);){var i=RegExp.$1;if(a=a.replace("¨C"+i+"C",r.gHtmlSpans[i]),10===o){console.error("maximum nesting of 10 spans reached!!!");break}++o}e=e.replace("¨C"+n+"C",a)}return e=r.converter._dispatch("unhashHTMLSpans.after",e,t,r)})),o.subParser("hashPreCodeTags",(function(e,t,r){"use strict";e=r.converter._dispatch("hashPreCodeTags.before",e,t,r);return e=o.helper.replaceRecursiveRegExp(e,(function(e,n,a,i){var s=a+o.subParser("encodeCode")(n,t,r)+i;return"\n\n¨G"+(r.ghCodeBlocks.push({text:e,codeblock:s})-1)+"G\n\n"}),"^ {0,3}<pre\\b[^>]*>\\s*<code\\b[^>]*>","^ {0,3}</code>\\s*</pre>","gim"),e=r.converter._dispatch("hashPreCodeTags.after",e,t,r)})),o.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,i=t.smoothLivePreview?/^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n-+[ \t]*\n+/gm;e=(e=e.replace(a,(function(e,a){var i=o.subParser("spanGamut")(a,t,r),s=t.noHeaderId?"":' id="'+c(a)+'"',u="<h"+n+s+">"+i+"</h"+n+">";return o.subParser("hashBlock")(u,t,r)}))).replace(i,(function(e,a){var i=o.subParser("spanGamut")(a,t,r),s=t.noHeaderId?"":' id="'+c(a)+'"',u=n+1,l="<h"+u+s+">"+i+"</h"+u+">";return o.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 i=e.match(/\{([^{]+?)}\s*$/);i&&i[1]&&(e=i[1])}return n=e,a=o.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,i){var s=i;t.customizedHeaderId&&(s=i.replace(/\s?\{([^{]+?)}\s*$/,""));var u=o.subParser("spanGamut")(s,t,r),l=t.noHeaderId?"":' id="'+c(i)+'"',f=n-1+a.length,d="<h"+f+l+">"+u+"</h"+f+">";return o.subParser("hashBlock")(d,t,r)})),e=r.converter._dispatch("headers.after",e,t,r)})),o.subParser("horizontalRule",(function(e,t,r){"use strict";e=r.converter._dispatch("horizontalRule.before",e,t,r);var n=o.subParser("hashBlock")("<hr />",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)})),o.subParser("images",(function(e,t,r){"use strict";function n(e,t,n,a,i,s,c,u){var l=r.gUrls,f=r.gTitles,d=r.gDimensions;if(n=n.toLowerCase(),u||(u=""),e.search(/\(<?\s*>? ?(['"].*['"])?\)$/m)>-1)a="";else if(""===a||null===a){if(""!==n&&null!==n||(n=t.toLowerCase().replace(/ ?\n/g," ")),a="#"+n,o.helper.isUndefined(l[n]))return e;a=l[n],o.helper.isUndefined(f[n])||(u=f[n]),o.helper.isUndefined(d[n])||(i=d[n].width,s=d[n].height)}t=t.replace(/"/g,""").replace(o.helper.regexes.asteriskDashAndColon,o.helper.escapeCharactersCallback);var p='<img src="'+(a=a.replace(o.helper.regexes.asteriskDashAndColon,o.helper.escapeCharactersCallback))+'" alt="'+t+'"';return u&&o.helper.isString(u)&&(p+=' title="'+(u=u.replace(/"/g,""").replace(o.helper.regexes.asteriskDashAndColon,o.helper.escapeCharactersCallback))+'"'),i&&s&&(p+=' width="'+(i="*"===i?"auto":i)+'"',p+=' height="'+(s="*"===s?"auto":s)+'"'),p+=" />"}return e=(e=(e=(e=(e=(e=r.converter._dispatch("images.before",e,t,r)).replace(/!\[([^\]]*?)] ?(?:\n *)?\[([\s\S]*?)]()()()()()/g,n)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]?<?(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,(function(e,t,r,a,o,i,s,c){return n(e,t,r,a=a.replace(/\s/g,""),o,i,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]?<?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?: =([*\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)})),o.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,"<strong><em>","</em></strong>")}))).replace(/\b__(\S[\s\S]*?)__\b/g,(function(e,t){return n(t,"<strong>","</strong>")}))).replace(/\b_(\S[\s\S]*?)_\b/g,(function(e,t){return n(t,"<em>","</em>")})):(e=(e=e.replace(/___(\S[\s\S]*?)___/g,(function(e,t){return/\S$/.test(t)?n(t,"<strong><em>","</em></strong>"):e}))).replace(/__(\S[\s\S]*?)__/g,(function(e,t){return/\S$/.test(t)?n(t,"<strong>","</strong>"):e}))).replace(/_([^\s_][\s\S]*?)_/g,(function(e,t){return/\S$/.test(t)?n(t,"<em>","</em>"):e})),e=t.literalMidWordAsterisks?(e=(e=e.replace(/([^*]|^)\B\*\*\*(\S[\s\S]*?)\*\*\*\B(?!\*)/g,(function(e,t,r){return n(r,t+"<strong><em>","</em></strong>")}))).replace(/([^*]|^)\B\*\*(\S[\s\S]*?)\*\*\B(?!\*)/g,(function(e,t,r){return n(r,t+"<strong>","</strong>")}))).replace(/([^*]|^)\B\*(\S[\s\S]*?)\*\B(?!\*)/g,(function(e,t,r){return n(r,t+"<em>","</em>")})):(e=(e=e.replace(/\*\*\*(\S[\s\S]*?)\*\*\*/g,(function(e,t){return/\S$/.test(t)?n(t,"<strong><em>","</em></strong>"):e}))).replace(/\*\*(\S[\s\S]*?)\*\*/g,(function(e,t){return/\S$/.test(t)?n(t,"<strong>","</strong>"):e}))).replace(/\*([^\s*][\s\S]*?)\*/g,(function(e,t){return/\S$/.test(t)?n(t,"<em>","</em>"):e})),e=r.converter._dispatch("italicsAndBold.after",e,t,r)})),o.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,i=/\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 f=o.subParser("outdent")(c,t,r),d="";return u&&t.tasklists&&(d=' class="task-list-item" style="list-style-type: none;"',f=f.replace(/^[ \t]*\[(x|X| )?]/m,(function(){var e='<input type="checkbox" disabled style="margin: 0px 0.35em 0.25em -1.6em; vertical-align: middle;"';return l&&(e+=" checked"),e+=">"}))),f=f.replace(/^([-*+]|\d\.)[ \t]+[\S\n ]*/g,(function(e){return"¨A"+e})),n||f.search(/\n{2,}/)>-1?(f=o.subParser("githubCodeBlocks")(f,t,r),f=o.subParser("blockGamut")(f,t,r)):(f=(f=o.subParser("lists")(f,t,r)).replace(/\n$/,""),f=(f=o.subParser("hashHTMLBlocks")(f,t,r)).replace(/\n\n+/g,"\n\n"),f=i?o.subParser("paragraphs")(f,t,r):o.subParser("spanGamut")(f,t,r)),f="<li"+d+">"+(f=f.replace("¨A",""))+"</li>\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 i(e,r,o){var i=t.disableForced4SpacesIndentedSublists?/^ ?\d+\.[ \t]/gm:/^ {0,3}\d+\.[ \t]/gm,s=t.disableForced4SpacesIndentedSublists?/^ ?[*+-][ \t]/gm:/^ {0,3}[*+-][ \t]/gm,c="ul"===r?i:s,u="";if(-1!==e.search(c))!function t(l){var f=l.search(c),d=a(e,r);-1!==f?(u+="\n\n<"+r+d+">\n"+n(l.slice(0,f),!!o)+"</"+r+">\n",c="ul"===(r="ul"===r?"ol":"ul")?i:s,t(l.slice(f))):u+="\n\n<"+r+d+">\n"+n(l,!!o)+"</"+r+">\n"}(e);else{var l=a(e,r);u="\n\n<"+r+l+">\n"+n(e,!!o)+"</"+r+">\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 i(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 i(r,n.search(/[*+-]/g)>-1?"ul":"ol",!1)}))).replace(/¨0/,""),e=r.converter._dispatch("lists.after",e,t,r)})),o.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)})),o.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)})),o.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=[],i=n.length,s=0;s<i;s++){var c=n[s];c.search(/¨(K|G)(\d+)\1/g)>=0?a.push(c):c.search(/\S/)>=0&&(c=(c=o.subParser("spanGamut")(c,t,r)).replace(/^([ \t]*)/g,"<p>"),c+="</p>",a.push(c))}for(i=a.length,s=0;s<i;s++){for(var u="",l=a[s],f=!1;/¨(K|G)(\d+)\1/.test(l);){var d=RegExp.$1,p=RegExp.$2;u=(u="K"===d?r.gHtmlBlocks[p]:f?o.subParser("encodeCode")(r.ghCodeBlocks[p].text,t,r):r.ghCodeBlocks[p].codeblock).replace(/\$/g,"$$$$"),l=l.replace(/(\n\n)?¨(K|G)\d+\2(\n\n)?/,u),/^<pre\b[^>]*>\s*<code\b[^>]*>/.test(l)&&(f=!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)})),o.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})),o.subParser("spanGamut",(function(e,t,r){"use strict";return e=r.converter._dispatch("spanGamut.before",e,t,r),e=o.subParser("codeSpans")(e,t,r),e=o.subParser("escapeSpecialCharsWithinTagAttributes")(e,t,r),e=o.subParser("encodeBackslashEscapes")(e,t,r),e=o.subParser("images")(e,t,r),e=o.subParser("anchors")(e,t,r),e=o.subParser("autoLinks")(e,t,r),e=o.subParser("simplifiedAutoLinks")(e,t,r),e=o.subParser("emoji")(e,t,r),e=o.subParser("underline")(e,t,r),e=o.subParser("italicsAndBold")(e,t,r),e=o.subParser("strikethrough")(e,t,r),e=o.subParser("ellipsis")(e,t,r),e=o.subParser("hashHTMLSpans")(e,t,r),e=o.subParser("encodeAmpsAndAngles")(e,t,r),t.simpleLineBreaks?/\n\n¨K/.test(e)||(e=e.replace(/\n+/g,"<br />\n")):e=e.replace(/ +\n/g,"<br />\n"),e=r.converter._dispatch("spanGamut.after",e,t,r)})),o.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=o.subParser("simplifiedAutoLinks")(e,t,r)),"<del>"+e+"</del>"}(n)})),e=r.converter._dispatch("strikethrough.after",e,t,r)),e})),o.subParser("stripLinkDefinitions",(function(e,t,r){"use strict";var n=function(e,n,a,i,s,c,u){return n=n.toLowerCase(),a.match(/^data:.+?\/.+?;base64,/)?r.gUrls[n]=a.replace(/\s/g,""):r.gUrls[n]=o.subParser("encodeAmpsAndAngles")(a,t,r),c?c+u:(u&&(r.gTitles[n]=u.replace(/"|'/g,""")),t.parseImgDimensions&&i&&s&&(r.gDimensions[n]={width:i,height:s}),"")};return e=(e=(e=(e+="¨0").replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*<?(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\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/,"")})),o.subParser("tables",(function(e,t,r){"use strict";if(!t.tables)return e;function n(e,n){return"<td"+n+">"+o.subParser("spanGamut")(e,t,r)+"</td>\n"}function a(e){var a,i=e.split("\n");for(a=0;a<i.length;++a)/^ {0,3}\|/.test(i[a])&&(i[a]=i[a].replace(/^ {0,3}\|/,"")),/\|[ \t]*$/.test(i[a])&&(i[a]=i[a].replace(/\|[ \t]*$/,"")),i[a]=o.subParser("codeSpans")(i[a],t,r);var s,c,u,l,f=i[0].split("|").map((function(e){return e.trim()})),d=i[1].split("|").map((function(e){return e.trim()})),p=[],h=[],b=[],g=[];for(i.shift(),i.shift(),a=0;a<i.length;++a)""!==i[a].trim()&&p.push(i[a].split("|").map((function(e){return e.trim()})));if(f.length<d.length)return e;for(a=0;a<d.length;++a)b.push((s=d[a],/^:[ \t]*--*$/.test(s)?' style="text-align:left;"':/^--*[ \t]*:[ \t]*$/.test(s)?' style="text-align:right;"':/^:[ \t]*--*[ \t]*:$/.test(s)?' style="text-align:center;"':""));for(a=0;a<f.length;++a)o.helper.isUndefined(b[a])&&(b[a]=""),h.push((c=f[a],u=b[a],l=void 0,l="",c=c.trim(),(t.tablesHeaderId||t.tableHeaderId)&&(l=' id="'+c.replace(/ /g,"_").toLowerCase()+'"'),"<th"+l+u+">"+(c=o.subParser("spanGamut")(c,t,r))+"</th>\n"));for(a=0;a<p.length;++a){for(var m=[],_=0;_<h.length;++_)o.helper.isUndefined(p[a][_]),m.push(n(p[a][_],b[_]));g.push(m)}return function(e,t){for(var r="<table>\n<thead>\n<tr>\n",n=e.length,a=0;a<n;++a)r+=e[a];for(r+="</tr>\n</thead>\n<tbody>\n",a=0;a<t.length;++a){r+="<tr>\n";for(var o=0;o<n;++o)r+=t[a][o];r+="</tr>\n"}return r+="</tbody>\n</table>\n"}(h,g)}return e=(e=(e=(e=r.converter._dispatch("tables.before",e,t,r)).replace(/\\(\|)/g,o.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)})),o.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"<u>"+t+"</u>"}))).replace(/\b__(\S[\s\S]*?)__\b/g,(function(e,t){return"<u>"+t+"</u>"})):(e=e.replace(/___(\S[\s\S]*?)___/g,(function(e,t){return/\S$/.test(t)?"<u>"+t+"</u>":e}))).replace(/__(\S[\s\S]*?)__/g,(function(e,t){return/\S$/.test(t)?"<u>"+t+"</u>":e}))).replace(/(_)/g,o.helper.escapeCharactersCallback),e=r.converter._dispatch("underline.after",e,t,r)):e})),o.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)})),o.subParser("makeMarkdown.blockquote",(function(e,t){"use strict";var r="";if(e.hasChildNodes())for(var n=e.childNodes,a=n.length,i=0;i<a;++i){var s=o.subParser("makeMarkdown.node")(n[i],t);""!==s&&(r+=s)}return r="> "+(r=r.trim()).split("\n").join("\n> ")})),o.subParser("makeMarkdown.codeBlock",(function(e,t){"use strict";var r=e.getAttribute("language"),n=e.getAttribute("precodenum");return"```"+r+"\n"+t.preList[n]+"\n```"})),o.subParser("makeMarkdown.codeSpan",(function(e){"use strict";return"`"+e.innerHTML+"`"})),o.subParser("makeMarkdown.emphasis",(function(e,t){"use strict";var r="";if(e.hasChildNodes()){r+="*";for(var n=e.childNodes,a=n.length,i=0;i<a;++i)r+=o.subParser("makeMarkdown.node")(n[i],t);r+="*"}return r})),o.subParser("makeMarkdown.header",(function(e,t,r){"use strict";var n=new Array(r+1).join("#"),a="";if(e.hasChildNodes()){a=n+" ";for(var i=e.childNodes,s=i.length,c=0;c<s;++c)a+=o.subParser("makeMarkdown.node")(i[c],t)}return a})),o.subParser("makeMarkdown.hr",(function(){"use strict";return"---"})),o.subParser("makeMarkdown.image",(function(e){"use strict";var t="";return e.hasAttribute("src")&&(t+="!["+e.getAttribute("alt")+"](",t+="<"+e.getAttribute("src")+">",e.hasAttribute("width")&&e.hasAttribute("height")&&(t+=" ="+e.getAttribute("width")+"x"+e.getAttribute("height")),e.hasAttribute("title")&&(t+=' "'+e.getAttribute("title")+'"'),t+=")"),t})),o.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 i=0;i<a;++i)r+=o.subParser("makeMarkdown.node")(n[i],t);r+="](",r+="<"+e.getAttribute("href")+">",e.hasAttribute("title")&&(r+=' "'+e.getAttribute("title")+'"'),r+=")"}return r})),o.subParser("makeMarkdown.list",(function(e,t,r){"use strict";var n="";if(!e.hasChildNodes())return"";for(var a=e.childNodes,i=a.length,s=e.getAttribute("start")||1,c=0;c<i;++c)if(void 0!==a[c].tagName&&"li"===a[c].tagName.toLowerCase()){n+=("ol"===r?s.toString()+". ":"- ")+o.subParser("makeMarkdown.listItem")(a[c],t),++s}return(n+="\n\x3c!-- --\x3e\n").trim()})),o.subParser("makeMarkdown.listItem",(function(e,t){"use strict";for(var r="",n=e.childNodes,a=n.length,i=0;i<a;++i)r+=o.subParser("makeMarkdown.node")(n[i],t);return/\n$/.test(r)?r=r.split("\n").join("\n ").replace(/^ {4}$/gm,"").replace(/\n\n+/g,"\n\n"):r+="\n",r})),o.subParser("makeMarkdown.node",(function(e,t,r){"use strict";r=r||!1;var n="";if(3===e.nodeType)return o.subParser("makeMarkdown.txt")(e,t);if(8===e.nodeType)return"\x3c!--"+e.data+"--\x3e\n\n";if(1!==e.nodeType)return"";switch(e.tagName.toLowerCase()){case"h1":r||(n=o.subParser("makeMarkdown.header")(e,t,1)+"\n\n");break;case"h2":r||(n=o.subParser("makeMarkdown.header")(e,t,2)+"\n\n");break;case"h3":r||(n=o.subParser("makeMarkdown.header")(e,t,3)+"\n\n");break;case"h4":r||(n=o.subParser("makeMarkdown.header")(e,t,4)+"\n\n");break;case"h5":r||(n=o.subParser("makeMarkdown.header")(e,t,5)+"\n\n");break;case"h6":r||(n=o.subParser("makeMarkdown.header")(e,t,6)+"\n\n");break;case"p":r||(n=o.subParser("makeMarkdown.paragraph")(e,t)+"\n\n");break;case"blockquote":r||(n=o.subParser("makeMarkdown.blockquote")(e,t)+"\n\n");break;case"hr":r||(n=o.subParser("makeMarkdown.hr")(e,t)+"\n\n");break;case"ol":r||(n=o.subParser("makeMarkdown.list")(e,t,"ol")+"\n\n");break;case"ul":r||(n=o.subParser("makeMarkdown.list")(e,t,"ul")+"\n\n");break;case"precode":r||(n=o.subParser("makeMarkdown.codeBlock")(e,t)+"\n\n");break;case"pre":r||(n=o.subParser("makeMarkdown.pre")(e,t)+"\n\n");break;case"table":r||(n=o.subParser("makeMarkdown.table")(e,t)+"\n\n");break;case"code":n=o.subParser("makeMarkdown.codeSpan")(e,t);break;case"em":case"i":n=o.subParser("makeMarkdown.emphasis")(e,t);break;case"strong":case"b":n=o.subParser("makeMarkdown.strong")(e,t);break;case"del":n=o.subParser("makeMarkdown.strikethrough")(e,t);break;case"a":n=o.subParser("makeMarkdown.links")(e,t);break;case"img":n=o.subParser("makeMarkdown.image")(e,t);break;default:n=e.outerHTML+"\n\n"}return n})),o.subParser("makeMarkdown.paragraph",(function(e,t){"use strict";var r="";if(e.hasChildNodes())for(var n=e.childNodes,a=n.length,i=0;i<a;++i)r+=o.subParser("makeMarkdown.node")(n[i],t);return r=r.trim()})),o.subParser("makeMarkdown.pre",(function(e,t){"use strict";var r=e.getAttribute("prenum");return"<pre>"+t.preList[r]+"</pre>"})),o.subParser("makeMarkdown.strikethrough",(function(e,t){"use strict";var r="";if(e.hasChildNodes()){r+="~~";for(var n=e.childNodes,a=n.length,i=0;i<a;++i)r+=o.subParser("makeMarkdown.node")(n[i],t);r+="~~"}return r})),o.subParser("makeMarkdown.strong",(function(e,t){"use strict";var r="";if(e.hasChildNodes()){r+="**";for(var n=e.childNodes,a=n.length,i=0;i<a;++i)r+=o.subParser("makeMarkdown.node")(n[i],t);r+="**"}return r})),o.subParser("makeMarkdown.table",(function(e,t){"use strict";var r,n,a="",i=[[],[]],s=e.querySelectorAll("thead>tr>th"),c=e.querySelectorAll("tbody>tr");for(r=0;r<s.length;++r){var u=o.subParser("makeMarkdown.tableCell")(s[r],t),l="---";if(s[r].hasAttribute("style"))switch(s[r].getAttribute("style").toLowerCase().replace(/\s/g,"")){case"text-align:left;":l=":---";break;case"text-align:right;":l="---:";break;case"text-align:center;":l=":---:"}i[0][r]=u.trim(),i[1][r]=l}for(r=0;r<c.length;++r){var f=i.push([])-1,d=c[r].getElementsByTagName("td");for(n=0;n<s.length;++n){var p=" ";void 0!==d[n]&&(p=o.subParser("makeMarkdown.tableCell")(d[n],t)),i[f].push(p)}}var h=3;for(r=0;r<i.length;++r)for(n=0;n<i[r].length;++n){var b=i[r][n].length;b>h&&(h=b)}for(r=0;r<i.length;++r){for(n=0;n<i[r].length;++n)1===r?":"===i[r][n].slice(-1)?i[r][n]=o.helper.padEnd(i[r][n].slice(-1),h-1,"-")+":":i[r][n]=o.helper.padEnd(i[r][n],h,"-"):i[r][n]=o.helper.padEnd(i[r][n],h);a+="| "+i[r].join(" | ")+" |\n"}return a.trim()})),o.subParser("makeMarkdown.tableCell",(function(e,t){"use strict";var r="";if(!e.hasChildNodes())return"";for(var n=e.childNodes,a=n.length,i=0;i<a;++i)r+=o.subParser("makeMarkdown.node")(n[i],t,!0);return r.trim()})),o.subParser("makeMarkdown.txt",(function(e){"use strict";var t=e.nodeValue;return t=(t=t.replace(/ +/g," ")).replace(/¨NBSP;/g," "),t=(t=(t=(t=(t=(t=(t=(t=(t=o.helper.unescapeHTMLEntities(t)).replace(/([*_~|`])/g,"\\$1")).replace(/^(\s*)>/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 o}.call(t,r,t,e))||(e.exports=n)}).call(this)},29:function(e,t){!function(){e.exports=this.wp.dom}()},30:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(27);function a(e,t){if(e){if("string"==typeof e)return Object(n.a)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Object(n.a)(e,t):void 0}}},33:function(e,t){!function(){e.exports=this.wp.hooks}()},36:function(e,t){!function(){e.exports=this.wp.deprecated}()},37:function(e,t,r){"use strict";function n(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}r.d(t,"a",(function(){return n}))},38:function(e,t,r){"use strict";function n(e){if(Array.isArray(e))return e}r.d(t,"a",(function(){return n}))},39:function(e,t,r){"use strict";function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}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.blob}()},42:function(e,t,r){"use strict";var n,a;function o(e){return[e]}function i(){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;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}n={},a="undefined"!=typeof WeakMap,t.a=function(e,t){var r,c;function u(){r=a?new WeakMap:i()}function l(){var r,n,a,o,i,u=arguments.length;for(o=new Array(u),a=0;a<u;a++)o[a]=arguments[a];for(i=t.apply(null,o),(r=c(i)).isUniqueByDependants||(r.lastDependants&&!s(i,r.lastDependants,0)&&r.clear(),r.lastDependants=i),n=r.head;n;){if(s(n.args,o,1))return n!==r.head&&(n.prev.next=n.next,n.next&&(n.next.prev=n.prev),n.next=r.head,n.prev=null,r.head.prev=n,r.head=n),n.val;n=n.next}return n={val:e.apply(null,o)},o[0]=null,n.args=o,r.head&&(r.head.prev=n,n.next=r.head),r.head=n,n.val}return t||(t=o),c=a?function(e){var t,a,o,s,c,u=r,l=!0;for(t=0;t<e.length;t++){if(a=e[t],!(c=a)||"object"!=typeof c){l=!1;break}u.has(a)?u=u.get(a):(o=new WeakMap,u.set(a,o),u=o)}return u.has(n)||((s=i()).isUniqueByDependants=l,u.set(n,s)),u.get(n)}:function(){return r},l.getDependants=t,l.clear=u,u(),l}},459:function(e,t,r){"use strict";r.r(t),r.d(t,"createBlock",(function(){return rt})),r.d(t,"createBlocksFromInnerBlocksTemplate",(function(){return nt})),r.d(t,"cloneBlock",(function(){return at})),r.d(t,"getPossibleBlockTransformations",(function(){return ct})),r.d(t,"switchToBlockType",(function(){return ft})),r.d(t,"getBlockTransforms",(function(){return lt})),r.d(t,"findTransform",(function(){return ut})),r.d(t,"getBlockFromExample",(function(){return dt})),r.d(t,"parse",(function(){return Zr})),r.d(t,"getBlockAttributes",(function(){return qr})),r.d(t,"parseWithAttributeSchema",(function(){return Fr})),r.d(t,"pasteHandler",(function(){return In})),r.d(t,"rawHandler",(function(){return Un})),r.d(t,"getPhrasingContentSchema",(function(){return qn})),r.d(t,"serialize",(function(){return rr})),r.d(t,"getBlockContent",(function(){return er})),r.d(t,"getBlockDefaultClassName",(function(){return Kt})),r.d(t,"getBlockMenuDefaultClassName",(function(){return Wt})),r.d(t,"getSaveElement",(function(){return Qt})),r.d(t,"getSaveContent",(function(){return Xt})),r.d(t,"__unstableGetBlockProps",(function(){return Zt})),r.d(t,"isValidBlockContent",(function(){return xr})),r.d(t,"getCategories",(function(){return Gn})),r.d(t,"setCategories",(function(){return Kn})),r.d(t,"updateCategory",(function(){return Wn})),r.d(t,"registerBlockType",(function(){return Ae})),r.d(t,"registerBlockCollection",(function(){return Ee})),r.d(t,"unregisterBlockType",(function(){return Be})),r.d(t,"setFreeformContentHandlerName",(function(){return Ne})),r.d(t,"getFreeformContentHandlerName",(function(){return Le})),r.d(t,"setUnregisteredTypeHandlerName",(function(){return ze})),r.d(t,"getUnregisteredTypeHandlerName",(function(){return De})),r.d(t,"setDefaultBlockName",(function(){return He})),r.d(t,"getDefaultBlockName",(function(){return Ve})),r.d(t,"setGroupingBlockName",(function(){return Ie})),r.d(t,"getGroupingBlockName",(function(){return Me})),r.d(t,"getBlockType",(function(){return Re})),r.d(t,"getBlockTypes",(function(){return Fe})),r.d(t,"getBlockSupport",(function(){return $e})),r.d(t,"hasBlockSupport",(function(){return qe})),r.d(t,"getBlockVariations",(function(){return Qe})),r.d(t,"isReusableBlock",(function(){return Ue})),r.d(t,"getChildBlockNames",(function(){return Ge})),r.d(t,"hasChildBlocks",(function(){return Ke})),r.d(t,"hasChildBlocksWithInserterSupport",(function(){return We})),r.d(t,"unstable__bootstrapServerSideBlockDefinitions",(function(){return Se})),r.d(t,"registerBlockStyle",(function(){return Ye})),r.d(t,"unregisterBlockStyle",(function(){return Ze})),r.d(t,"registerBlockVariation",(function(){return Xe})),r.d(t,"unregisterBlockVariation",(function(){return Je})),r.d(t,"isUnmodifiedDefaultBlock",(function(){return me})),r.d(t,"normalizeIconObject",(function(){return ve})),r.d(t,"isValidIcon",(function(){return _e})),r.d(t,"__experimentalGetBlockLabel",(function(){return ye})),r.d(t,"__experimentalGetAccessibleBlockLabel",(function(){return ke})),r.d(t,"doBlocksMatchTemplate",(function(){return Qn})),r.d(t,"synchronizeBlocksWithTemplate",(function(){return Xn})),r.d(t,"children",(function(){return Dr})),r.d(t,"node",(function(){return Nr})),r.d(t,"__EXPERIMENTAL_STYLE_PROPERTY",(function(){return je})),r.d(t,"withBlockContentContext",(function(){return $t}));var n={};r.r(n),r.d(n,"getBlockTypes",(function(){return O})),r.d(n,"getBlockType",(function(){return j})),r.d(n,"getBlockStyles",(function(){return C})),r.d(n,"getBlockVariations",(function(){return T})),r.d(n,"getDefaultBlockVariation",(function(){return x})),r.d(n,"getCategories",(function(){return P})),r.d(n,"getCollections",(function(){return S})),r.d(n,"getDefaultBlockName",(function(){return A})),r.d(n,"getFreeformFallbackBlockName",(function(){return E})),r.d(n,"getUnregisteredFallbackBlockName",(function(){return B})),r.d(n,"getGroupingBlockName",(function(){return N})),r.d(n,"getChildBlockNames",(function(){return L})),r.d(n,"getBlockSupport",(function(){return M})),r.d(n,"hasBlockSupport",(function(){return z})),r.d(n,"isMatchingSearchTerm",(function(){return D})),r.d(n,"hasChildBlocks",(function(){return H})),r.d(n,"hasChildBlocksWithInserterSupport",(function(){return I}));var a={};r.r(a),r.d(a,"addBlockTypes",(function(){return V})),r.d(a,"removeBlockTypes",(function(){return R})),r.d(a,"addBlockStyles",(function(){return F})),r.d(a,"removeBlockStyles",(function(){return $})),r.d(a,"addBlockVariations",(function(){return q})),r.d(a,"removeBlockVariations",(function(){return U})),r.d(a,"setDefaultBlockName",(function(){return G})),r.d(a,"setFreeformFallbackBlockName",(function(){return K})),r.d(a,"setUnregisteredFallbackBlockName",(function(){return W})),r.d(a,"setGroupingBlockName",(function(){return Y})),r.d(a,"setCategories",(function(){return Z})),r.d(a,"updateCategory",(function(){return Q})),r.d(a,"addBlockCollection",(function(){return X})),r.d(a,"removeBlockCollection",(function(){return J}));var o=r(4),i=r(17),s=r(5),c=r(2),u=r(1);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){Object(s.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var d=[{slug:"text",title:Object(u.__)("Text")},{slug:"media",title:Object(u.__)("Media")},{slug:"design",title:Object(u.__)("Design")},{slug:"widgets",title:Object(u.__)("Widgets")},{slug:"embed",title:Object(u.__)("Embeds")},{slug:"reusable",title:Object(u.__)("Reusable blocks")}];function p(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=p("SET_DEFAULT_BLOCK_NAME"),b=p("SET_FREEFORM_FALLBACK_BLOCK_NAME"),g=p("SET_UNREGISTERED_FALLBACK_BLOCK_NAME"),m=p("SET_GROUPING_BLOCK_NAME");var _=Object(o.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 f(f({},e),Object(c.keyBy)(Object(c.map)(t.blockTypes,(function(e){return Object(c.omit)(e,"styles ")})),"name"));case"REMOVE_BLOCK_TYPES":return Object(c.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 f(f({},e),Object(c.mapValues)(Object(c.keyBy)(t.blockTypes,"name"),(function(t){return Object(c.uniqBy)([].concat(Object(i.a)(Object(c.get)(t,["styles"],[])),Object(i.a)(Object(c.get)(e,[t.name],[]))),(function(e){return e.name}))})));case"ADD_BLOCK_STYLES":return f(f({},e),{},Object(s.a)({},t.blockName,Object(c.uniqBy)([].concat(Object(i.a)(Object(c.get)(e,[t.blockName],[])),Object(i.a)(t.styles)),(function(e){return e.name}))));case"REMOVE_BLOCK_STYLES":return f(f({},e),{},Object(s.a)({},t.blockName,Object(c.filter)(Object(c.get)(e,[t.blockName],[]),(function(e){return-1===t.styleNames.indexOf(e.name)}))))}return e},blockVariations: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 f(f({},e),Object(c.mapValues)(Object(c.keyBy)(t.blockTypes,"name"),(function(t){return Object(c.uniqBy)([].concat(Object(i.a)(Object(c.get)(t,["variations"],[])),Object(i.a)(Object(c.get)(e,[t.name],[]))),(function(e){return e.name}))})));case"ADD_BLOCK_VARIATIONS":return f(f({},e),{},Object(s.a)({},t.blockName,Object(c.uniqBy)([].concat(Object(i.a)(Object(c.get)(e,[t.blockName],[])),Object(i.a)(t.variations)),(function(e){return e.name}))));case"REMOVE_BLOCK_VARIATIONS":return f(f({},e),{},Object(s.a)({},t.blockName,Object(c.filter)(Object(c.get)(e,[t.blockName],[]),(function(e){return-1===t.variationNames.indexOf(e.name)}))))}return e},defaultBlockName:h,freeformFallbackBlockName:b,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(c.isEmpty)(t.category))return e;var r=Object(c.find)(e,["slug",t.slug]);if(r)return Object(c.map)(e,(function(e){return e.slug===t.slug?f(f({},e),t.category):e}))}return e},collections: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_COLLECTION":return f(f({},e),{},Object(s.a)({},t.namespace,{title:t.title,icon:t.icon}));case"REMOVE_BLOCK_COLLECTION":return Object(c.omit)(e,t.namespace)}return e}}),v=r(42);function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?w(Object(r),!0).forEach((function(t){Object(s.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var k=function(e,t){return"string"==typeof t?j(e,t):t},O=Object(v.a)((function(e){return Object.values(e.blockTypes).map((function(t){return y(y({},t),{},{variations:T(e,t.name)})}))}),(function(e){return[e.blockTypes,e.blockVariations]}));function j(e,t){return e.blockTypes[t]}function C(e,t){return e.blockStyles[t]}function T(e,t,r){var n=e.blockVariations[t];return n&&r?n.filter((function(e){return!e.scope||e.scope.includes(r)})):n}function x(e,t,r){var n=T(e,t,r);return Object(c.findLast)(n,"isDefault")||Object(c.first)(n)}function P(e){return e.categories}function S(e){return e.collections}function A(e){return e.defaultBlockName}function E(e){return e.freeformFallbackBlockName}function B(e){return e.unregisteredFallbackBlockName}function N(e){return e.groupingBlockName}var L=Object(v.a)((function(e,t){return Object(c.map)(Object(c.filter)(e.blockTypes,(function(e){return Object(c.includes)(e.parent,t)})),(function(e){return e.name}))}),(function(e){return[e.blockTypes]})),M=function(e,t,r,n){var a=k(e,t);return Object(c.get)(a,["supports"].concat(Object(i.a)(r.split("."))),n)};function z(e,t,r,n){return!!M(e,t,r,n)}function D(e,t,r){var n=k(e,t),a=Object(c.flow)([c.deburr,function(e){return e.toLowerCase()},function(e){return e.trim()}]),o=a(r),i=Object(c.flow)([a,function(e){return Object(c.includes)(e,o)}]);return i(n.title)||Object(c.some)(n.keywords,i)||i(n.category)}var H=function(e,t){return L(e,t).length>0},I=function(e,t){return Object(c.some)(L(e,t),(function(t){return z(e,t,"inserter",!0)}))};function V(e){return{type:"ADD_BLOCK_TYPES",blockTypes:Object(c.castArray)(e)}}function R(e){return{type:"REMOVE_BLOCK_TYPES",names:Object(c.castArray)(e)}}function F(e,t){return{type:"ADD_BLOCK_STYLES",styles:Object(c.castArray)(t),blockName:e}}function $(e,t){return{type:"REMOVE_BLOCK_STYLES",styleNames:Object(c.castArray)(t),blockName:e}}function q(e,t){return{type:"ADD_BLOCK_VARIATIONS",variations:Object(c.castArray)(t),blockName:e}}function U(e,t){return{type:"REMOVE_BLOCK_VARIATIONS",variationNames:Object(c.castArray)(t),blockName:e}}function G(e){return{type:"SET_DEFAULT_BLOCK_NAME",name:e}}function K(e){return{type:"SET_FREEFORM_FALLBACK_BLOCK_NAME",name:e}}function W(e){return{type:"SET_UNREGISTERED_FALLBACK_BLOCK_NAME",name:e}}function Y(e){return{type:"SET_GROUPING_BLOCK_NAME",name:e}}function Z(e){return{type:"SET_CATEGORIES",categories:e}}function Q(e,t){return{type:"UPDATE_CATEGORY",slug:e,category:t}}function X(e,t,r){return{type:"ADD_BLOCK_COLLECTION",namespace:e,title:t,icon:r}}function J(e){return{type:"REMOVE_BLOCK_COLLECTION",namespace:e}}Object(o.registerStore)("core/blocks",{reducer:_,selectors:n,actions:a});var ee=r(12),te="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),re=new Uint8Array(16);function ne(){if(!te)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return te(re)}for(var ae=[],oe=0;oe<256;++oe)ae[oe]=(oe+256).toString(16).substr(1);var ie=function(e,t){var r=t||0,n=ae;return[n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]]].join("")};var se=function(e,t,r){var n=t&&r||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||ne)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var o=0;o<16;++o)t[n+o]=a[o];return t||ie(a)},ce=r(33),ue=r(208),le=r(66),fe=r.n(le),de=r(0),pe=r(29);function he(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function be(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?he(Object(r),!0).forEach((function(t){Object(s.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):he(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ge=["#191e23","#f8f9f9"];function me(e){var t=Ve();if(e.name!==t)return!1;me.block&&me.block.name===t||(me.block=rt(t));var r=me.block,n=Re(t);return Object(c.every)(n.attributes,(function(t,n){return r.attributes[n]===e.attributes[n]}))}function _e(e){return!!e&&(Object(c.isString)(e)||Object(de.isValidElement)(e)||Object(c.isFunction)(e)||e instanceof de.Component)}function ve(e){if(_e(e))return{src:e};if(Object(c.has)(e,["background"])){var t=fe()(e.background);return be(be({},e),{},{foreground:e.foreground?e.foreground:Object(le.mostReadable)(t,ge,{includeFallbackColors:!0,level:"AA",size:"large"}).toHexString(),shadowColor:t.setAlpha(.3).toRgbString()})}return e}function we(e){return Object(c.isString)(e)?Re(e):e}function ye(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"visual",n=e.__experimentalLabel,a=e.title,o=n&&n(t,{context:r});return o?Object(pe.__unstableStripHTML)(o):a}function ke(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"vertical",a=e.title,o=ye(e,t,"accessibility"),i=void 0!==r,s=o&&o!==a;return i&&"vertical"===n?s?Object(u.sprintf)(Object(u.__)("%1$s Block. Row %2$d. %3$s"),a,r,o):Object(u.sprintf)(Object(u.__)("%1$s Block. Row %2$d"),a,r):i&&"horizontal"===n?s?Object(u.sprintf)(Object(u.__)("%1$s Block. Column %2$d. %3$s"),a,r,o):Object(u.sprintf)(Object(u.__)("%1$s Block. Column %2$d"),a,r):s?Object(u.sprintf)(Object(u.__)("%1$s Block. %2$s"),a,o):Object(u.sprintf)(Object(u.__)("%s Block"),a)}var Oe=["attributes","supports","save","migrate","isEligible","apiVersion"],je={"--wp--style--color--link":["color","link"],background:["color","gradient"],backgroundColor:["color","background"],color:["color","text"],fontSize:["typography","fontSize"],lineHeight:["typography","lineHeight"],paddingBottom:["spacing","padding","bottom"],paddingLeft:["spacing","padding","left"],paddingRight:["spacing","padding","right"],paddingTop:["spacing","padding","top"]};function Ce(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Te(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ce(Object(r),!0).forEach((function(t){Object(s.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ce(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var xe={common:"text",formatting:"text",layout:"design"},Pe={};function Se(e){Pe=Te(Te({},Pe),e)}function Ae(e,t){if(t=Te(Te({name:e,icon:ue.a,keywords:[],attributes:{},providesContext:{},usesContext:[],supports:{},styles:[],save:function(){return null}},Object(c.pickBy)(Object(c.get)(Pe,e,{}),(function(e){return!Object(c.isNil)(e)}))),t),"string"==typeof e)if(/^[a-z][a-z0-9-]*\/[a-z][a-z0-9-]*$/.test(e))if(Object(o.select)("core/blocks").getBlockType(e))console.error('Block "'+e+'" is already registered.');else{var r=Te({},t);if((t=Object(ce.applyFilters)("blocks.registerBlockType",t,e)).deprecated&&(t.deprecated=t.deprecated.map((function(t){return Object(c.pick)(Object(ce.applyFilters)("blocks.registerBlockType",Te(Te({},Object(c.omit)(r,Oe)),t),e),Oe)}))),Object(c.isPlainObject)(t))if(Object(c.isFunction)(t.save))if(!("edit"in t)||Object(c.isFunction)(t.edit))if(xe.hasOwnProperty(t.category)&&(t.category=xe[t.category]),"category"in t&&!Object(c.some)(Object(o.select)("core/blocks").getCategories(),{slug:t.category})&&(console.warn('The block "'+e+'" is registered with an invalid category "'+t.category+'".'),delete t.category),"title"in t&&""!==t.title)if("string"==typeof t.title){if(t.icon=ve(t.icon),_e(t.icon.src))return Object(o.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 "edit" property must be a valid function.');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 Ee(e,t){var r=t.title,n=t.icon;Object(o.dispatch)("core/blocks").addBlockCollection(e,r,n)}function Be(e){var t=Object(o.select)("core/blocks").getBlockType(e);if(t)return Object(o.dispatch)("core/blocks").removeBlockTypes(e),t;console.error('Block "'+e+'" is not registered.')}function Ne(e){Object(o.dispatch)("core/blocks").setFreeformFallbackBlockName(e)}function Le(){return Object(o.select)("core/blocks").getFreeformFallbackBlockName()}function Me(){return Object(o.select)("core/blocks").getGroupingBlockName()}function ze(e){Object(o.dispatch)("core/blocks").setUnregisteredFallbackBlockName(e)}function De(){return Object(o.select)("core/blocks").getUnregisteredFallbackBlockName()}function He(e){Object(o.dispatch)("core/blocks").setDefaultBlockName(e)}function Ie(e){Object(o.dispatch)("core/blocks").setGroupingBlockName(e)}function Ve(){return Object(o.select)("core/blocks").getDefaultBlockName()}function Re(e){return Object(o.select)("core/blocks").getBlockType(e)}function Fe(){return Object(o.select)("core/blocks").getBlockTypes()}function $e(e,t,r){return Object(o.select)("core/blocks").getBlockSupport(e,t,r)}function qe(e,t,r){return Object(o.select)("core/blocks").hasBlockSupport(e,t,r)}function Ue(e){return"core/block"===e.name}var Ge=function(e){return Object(o.select)("core/blocks").getChildBlockNames(e)},Ke=function(e){return Object(o.select)("core/blocks").hasChildBlocks(e)},We=function(e){return Object(o.select)("core/blocks").hasChildBlocksWithInserterSupport(e)},Ye=function(e,t){Object(o.dispatch)("core/blocks").addBlockStyles(e,t)},Ze=function(e,t){Object(o.dispatch)("core/blocks").removeBlockStyles(e,t)},Qe=function(e,t){return Object(o.select)("core/blocks").getBlockVariations(e,t)},Xe=function(e,t){Object(o.dispatch)("core/blocks").addBlockVariations(e,t)},Je=function(e,t){Object(o.dispatch)("core/blocks").removeBlockVariations(e,t)};function et(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function tt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?et(Object(r),!0).forEach((function(t){Object(s.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):et(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function rt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=Re(e);if(void 0===n)throw new Error("Block type '".concat(e,"' is not registered."));var a=Object(c.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}),{}),o=se();return{clientId:o,name:e,isValid:!0,attributes:a,innerBlocks:r}}function nt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map((function(e){var t=Array.isArray(e)?e:[e.name,e.attributes,e.innerBlocks],r=Object(ee.a)(t,3),n=r[0],a=r[1],o=r[2];return rt(n,a,nt(void 0===o?[]:o))}))}function at(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=se();return tt(tt({},e),{},{clientId:n,attributes:tt(tt({},e.attributes),t),innerBlocks:r||e.innerBlocks.map((function(e){return at(e)}))})}var ot=function(e,t,r){if(Object(c.isEmpty)(r))return!1;var n=r.length>1,a=Object(c.first)(r).name;if(!(it(e)||!n||e.isMultiBlock))return!1;if(!it(e)&&!Object(c.every)(r,{name:a}))return!1;if(!("block"===e.type))return!1;var o=Object(c.first)(r);if(!("from"!==t||-1!==e.blocks.indexOf(o.name)||it(e)))return!1;if(!n&&st(o.name)&&st(e.blockName))return!1;if(Object(c.isFunction)(e.isMatch)){var i=e.isMultiBlock?r.map((function(e){return e.attributes})):o.attributes;if(!e.isMatch(i))return!1}return!0},it=function(e){return e&&"block"===e.type&&Array.isArray(e.blocks)&&e.blocks.includes("*")},st=function(e){return e===Me()};function ct(e){if(Object(c.isEmpty)(e))return[];var t=function(e){if(Object(c.isEmpty)(e))return[];var t=Fe();return Object(c.filter)(t,(function(t){return!!ut(lt("from",t.name),(function(t){return ot(t,"from",e)}))}))}(e),r=function(e){if(Object(c.isEmpty)(e))return[];var t=lt("to",Re(Object(c.first)(e).name).name),r=Object(c.filter)(t,(function(t){return t&&ot(t,"to",e)}));return Object(c.flatMap)(r,(function(e){return e.blocks})).map((function(e){return Re(e)}))}(e);return Object(c.uniq)([].concat(Object(i.a)(t),Object(i.a)(r)))}function ut(e,t){for(var r=Object(ce.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;a<e.length;a++)n(a);return r.applyFilters("transform",null)}function lt(e,t){if(void 0===t)return Object(c.flatMap)(Fe(),(function(t){var r=t.name;return lt(e,r)}));var r=we(t)||{},n=r.name,a=r.transforms;return a&&Array.isArray(a[e])?a[e].map((function(e){return tt(tt({},e),{},{blockName:n})})):[]}function ft(e,t){var r,n=Object(c.castArray)(e),a=n.length>1,o=n[0],i=o.name,s=lt("from",t),u=ut(lt("to",i),(function(e){return"block"===e.type&&(it(e)||-1!==e.blocks.indexOf(t))&&(!a||e.isMultiBlock)}))||ut(s,(function(e){return"block"===e.type&&(it(e)||-1!==e.blocks.indexOf(i))&&(!a||e.isMultiBlock)}));if(!u)return null;if(r=u.isMultiBlock?Object(c.has)(u,"__experimentalConvert")?u.__experimentalConvert(n):u.transform(n.map((function(e){return e.attributes})),n.map((function(e){return e.innerBlocks}))):Object(c.has)(u,"__experimentalConvert")?u.__experimentalConvert(o):u.transform(o.attributes,o.innerBlocks),!Object(c.isObjectLike)(r))return null;if((r=Object(c.castArray)(r)).some((function(e){return!Re(e.name)})))return null;var l=Object(c.findIndex)(r,(function(e){return e.name===t}));return l<0?null:r.map((function(t,r){var n=tt(tt({},t),{},{clientId:r===l?o.clientId:t.clientId});return Object(ce.applyFilters)("blocks.switchToBlockType.transformedBlock",n,e)}))}var dt=function e(t,r){return rt(t,r.attributes,Object(c.map)(r.innerBlocks,(function(t){return e(t.name,t)})))};function pt(e,t){for(var r,n=t.split(".");r=n.shift();){if(!(r in e))return;e=e[r]}return e}var ht,bt=function(){return ht||(ht=document.implementation.createHTMLDocument("")),ht};function gt(e,t){if(t){if("string"==typeof e){var r=bt();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]=gt(e,t[n]),r}),{})}}function mt(e,t){return 1===arguments.length&&(t=e,e=void 0),function(r){var n=r;if(e&&(n=r.querySelector(e)),n)return pt(n,t)}}var _t=r(105),vt=r(283),wt=r(149),yt=r(21),kt=r(22),Ot=/^#[xX]([A-Fa-f0-9]+)$/,jt=/^#([0-9]+)$/,Ct=/^([A-Za-z0-9]+)$/,Tt=(function(){function e(e){this.named=e}e.prototype.parse=function(e){if(e){var t=e.match(Ot);return t?String.fromCharCode(parseInt(t[1],16)):(t=e.match(jt))?String.fromCharCode(parseInt(t[1],10)):(t=e.match(Ct))?this.named[t[1]]:void 0}}}(),/[\t\n\f ]/),xt=/[A-Za-z]/,Pt=/\r\n?/g;function St(e){return Tt.test(e)}function At(e){return xt.test(e)}var Et=function(){function e(e,t,r){void 0===r&&(r="precompile"),this.delegate=e,this.entityParser=t,this.mode=r,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("precompile"===this.mode&&"\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;"<"!==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||At(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();St(e)?this.transitionTo("beforeAttributeName"):"/"===e?this.transitionTo("selfClosingStartTag"):">"===e?(this.delegate.finishTag(),this.transitionTo("beforeData")):this.appendToTagName(e)},endTagName:function(){var e=this.consume();St(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();St(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();St(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();St(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();St(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();St(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();St(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||At(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(Pt,"\n")}(e);this.index<this.input.length;){var t=this.states[this.state];if(void 0===t)throw new Error("unhandled state "+this.state);t.call(this)}},e.prototype.tokenizeEOF=function(){this.flushData()},e.prototype.flushData=function(){"data"===this.state&&(this.delegate.finishData(),this.transitionTo("beforeData"))},e.prototype.peek=function(){return this.input.charAt(this.index)},e.prototype.consume=function(){var e=this.peek();return this.index++,"\n"===e?(this.line++,this.column=0):this.column++,e},e.prototype.consumeCharRef=function(){var e=this.input.indexOf(";",this.index);if(-1!==e){var t=this.input.slice(this.index,e),r=this.entityParser.parse(t);if(r){for(var n=t.length;n;)this.consume(),n--;return this.consume(),r}}},e.prototype.markTagStart=function(){this.delegate.tagOpen()},e.prototype.appendToTagName=function(e){this.tagNameBuffer+=e,this.delegate.appendToTagName(e)},e.prototype.isIgnoredEndTag=function(){var e=this.tagNameBuffer;return"title"===e&&"</title>"!==this.input.substring(this.index,this.index+8)||"style"===e&&"</style>"!==this.input.substring(this.index,this.index+8)||"script"===e&&"<\/script>"!==this.input.substring(this.index,this.index+9)},e}(),Bt=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 Et(this,e,t.mode),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;t<arguments.length;t++)if(e.type===arguments[t])return e;throw new Error("token type was unexpectedly "+e.type)},e.prototype.push=function(e){this.token=e,this.tokens.push(e)},e.prototype.currentAttribute=function(){return this._currentAttribute},e.prototype.addLocInfo=function(){this.options.loc&&(this.current().loc={start:{line:this.startLine,column:this.startColumn},end:{line:this.tokenizer.line,column:this.tokenizer.column}}),this.startLine=this.tokenizer.line,this.startColumn=this.tokenizer.column},e.prototype.beginData=function(){this.push({type:"Chars",chars:""})},e.prototype.appendToData=function(e){this.current("Chars").chars+=e},e.prototype.finishData=function(){this.addLocInfo()},e.prototype.beginComment=function(){this.push({type:"Comment",chars:""})},e.prototype.appendToCommentData=function(e){this.current("Comment").chars+=e},e.prototype.finishComment=function(){this.addLocInfo()},e.prototype.tagOpen=function(){},e.prototype.beginStartTag=function(){this.push({type:"StartTag",tagName:"",attributes:[],selfClosing:!1})},e.prototype.beginEndTag=function(){this.push({type:"EndTag",tagName:""})},e.prototype.finishTag=function(){this.addLocInfo()},e.prototype.markTagAsSelfClosing=function(){this.current("StartTag").selfClosing=!0},e.prototype.appendToTagName=function(e){this.current("StartTag","EndTag").tagName+=e},e.prototype.beginAttribute=function(){this._currentAttribute=["","",!1]},e.prototype.appendToAttributeName=function(e){this.currentAttribute()[0]+=e},e.prototype.beginAttributeValue=function(e){this.currentAttribute()[2]=e},e.prototype.appendToAttributeValue=function(e){this.currentAttribute()[1]+=e},e.prototype.finishAttributeValue=function(){this.current("StartTag").attributes.push(this._currentAttribute)},e.prototype.reportSyntaxError=function(e){this.current().syntaxError=e},e}();var Nt=r(69);function Lt(){function e(e){return function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];return e.apply(void 0,["Block validation: "+t].concat(n))}}return{error:e(console.error),warning:e(console.warn),getItems:function(){return[]}}}function Mt(){var e=[],t=Lt();return{error:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];e.push({log:t.error,args:n})},warning:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];e.push({log:t.warning,args:n})},getItems:function(){return e}}}var zt=r(64),Dt=r.n(zt),Ht=r(8),It=r(10),Vt=Object(de.createContext)((function(){})),Rt=Vt.Consumer,Ft=Vt.Provider,$t=Object(It.createHigherOrderComponent)((function(e){return function(t){return Object(de.createElement)(Rt,null,(function(r){return Object(de.createElement)(e,Object(Ht.a)({},t,{BlockContent:r}))}))}}),"withBlockContentContext"),qt=function(e){var t=e.children,r=e.innerBlocks;return Object(de.createElement)(Ft,{value:function(){var e=rr(r,{isInnerBlocks:!0});return Object(de.createElement)(de.RawHTML,null,e)}},t)};function Ut(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Gt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ut(Object(r),!0).forEach((function(t){Object(s.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ut(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Kt(e){var t="wp-block-"+e.replace(/\//,"-").replace(/^core-/,"");return Object(ce.applyFilters)("blocks.getBlockDefaultClassName",t,e)}function Wt(e){var t="editor-block-list-item-"+e.replace(/\//,"-").replace(/^core-/,"");return Object(ce.applyFilters)("blocks.getBlockMenuDefaultClassName",t,e)}var Yt={};function Zt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Yt.blockType,r=Yt.attributes;return Object(ce.applyFilters)("blocks.getSaveContent.extraProps",Gt({},e),t,r)}function Qt(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=we(e),a=n.save;if(a.prototype instanceof de.Component){var o=new a({attributes:t});a=o.render.bind(o)}Yt.blockType=n,Yt.attributes=t;var i=a({attributes:t,innerBlocks:r});if(Object(c.isObject)(i)&&Object(ce.hasFilter)("blocks.getSaveContent.extraProps")&&!n.apiVersion){var s=Object(ce.applyFilters)("blocks.getSaveContent.extraProps",Gt({},i.props),n,t);Dt()(s,i.props)||(i=Object(de.cloneElement)(i,s))}return i=Object(ce.applyFilters)("blocks.getSaveElement",i,n,t),Object(de.createElement)(qt,{innerBlocks:r},i)}function Xt(e,t,r){var n=we(e);return Object(de.renderToString)(Qt(n,t,r))}function Jt(e,t){return Object(c.reduce)(e.attributes,(function(e,r,n){var a=t[n];return void 0===a||void 0!==r.source||"default"in r&&r.default===a||(e[n]=a),e}),{})}function er(e){var t=e.originalContent;if(e.isValid||e.innerBlocks.length)try{t=Xt(e.name,e.attributes,e.innerBlocks)}catch(e){}return t}function tr(e,t,r){var n=Object(c.isEmpty)(t)?"":function(e){return JSON.stringify(e).replace(/--/g,"\\u002d\\u002d").replace(/</g,"\\u003c").replace(/>/g,"\\u003e").replace(/&/g,"\\u0026").replace(/\\"/g,"\\u0022")}(t)+" ",a=Object(c.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 rr(e,t){return Object(c.castArray)(e).map((function(e){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.isInnerBlocks,n=void 0!==r&&r,a=e.name,o=er(e);if(a===De()||!n&&a===Le())return o;var i=Re(a),s=Jt(i,e.attributes);return tr(a,s,o)}(e,t)})).join("\n\n")}function nr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var ar=/[\t\n\r\v\f ]+/g,or=/^[\t\n\r\v\f ]*$/,ir=/^url\s*\(['"\s]*(.*?)['"\s]*\)$/,sr=["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"],cr=[].concat(sr,["autocapitalize","autocomplete","charset","contenteditable","crossorigin","decoding","dir","draggable","enctype","formenctype","formmethod","http-equiv","inputmode","kind","method","preload","scope","shape","spellcheck","translate","type","wrap"]),ur=[c.identity,function(e){return hr(e).join(" ")}],lr=/^[\da-z]+$/i,fr=/^#\d+$/,dr=/^#x[\da-f]+$/i;var pr=function(){function e(){Object(yt.a)(this,e)}return Object(kt.a)(e,[{key:"parse",value:function(e){if(t=e,lr.test(t)||fr.test(t)||dr.test(t))return Object(Nt.decodeEntities)("&"+e+";");var t}}]),e}();function hr(e){return e.trim().split(ar)}function br(e){return e.attributes.filter((function(e){var t=Object(ee.a)(e,2),r=t[0];return t[1]||0===r.indexOf("data-")||Object(c.includes)(cr,r)}))}function gr(e,t){for(var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Lt(),n=e.chars,a=t.chars,o=0;o<ur.length;o++){var i=ur[o];if((n=i(n))===(a=i(a)))return!0}return r.warning("Expected text `%s`, saw `%s`.",t.chars,e.chars),!1}function mr(e){return e.replace(ir,"url($1)")}function _r(e){var t=e.replace(/;?\s*$/,"").split(";").map((function(e){var t=e.split(":"),r=Object(wt.a)(t),n=r[0],a=r.slice(1).join(":");return[n.trim(),mr(a.trim())]}));return Object(c.fromPairs)(t)}var vr=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?nr(Object(r),!0).forEach((function(t){Object(s.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({class:function(e,t){return!c.xor.apply(void 0,Object(i.a)([e,t].map(hr))).length},style:function(e,t){return c.isEqual.apply(void 0,Object(i.a)([e,t].map(_r)))}},Object(c.fromPairs)(sr.map((function(e){return[e,c.stubTrue]}))));function wr(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Lt();if(e.length!==t.length)return r.warning("Expected attributes %o, instead saw %o.",t,e),!1;for(var n={},a=0;a<t.length;a++)n[t[a][0].toLowerCase()]=t[a][1];for(var o=0;o<e.length;o++){var i=Object(ee.a)(e[o],2),s=i[0],c=i[1],u=s.toLowerCase();if(!n.hasOwnProperty(u))return r.warning("Encountered unexpected attribute `%s`.",s),!1;var l=n[u],f=vr[u];if(f){if(!f(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 yr={StartTag:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Lt();return e.tagName!==t.tagName&&e.tagName.toLowerCase()!==t.tagName.toLowerCase()?(r.warning("Expected tag name `%s`, instead saw `%s`.",t.tagName,e.tagName),!1):wr.apply(void 0,Object(i.a)([e,t].map(br)).concat([r]))},Chars:gr,Comment:gr};function kr(e){for(var t;t=e.shift();){if("Chars"!==t.type)return t;if(!or.test(t.chars))return t}}function Or(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Lt();try{return new Bt(new pr).tokenize(e)}catch(r){t.warning("Malformed HTML detected: %s",e)}return null}function jr(e,t){return!!e.selfClosing&&!(!t||t.tagName!==e.tagName||"EndTag"!==t.type)}function Cr(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Lt();if(e===t)return!0;var n,a,o=[e,t].map((function(e){return Or(e,r)})),i=Object(ee.a)(o,2),s=i[0],c=i[1];if(!s||!c)return!1;for(;n=kr(s);){if(!(a=kr(c)))return r.warning("Expected end of content, instead saw %o.",n),!1;if(n.type!==a.type)return r.warning("Expected token of type `%s` (%o), instead saw `%s` (%o).",a.type,a,n.type,n),!1;var u=yr[n.type];if(u&&!u(n,a,r))return!1;jr(n,c[0])?kr(c):jr(a,s[0])&&kr(s)}return!(a=kr(c))||(r.warning("Expected %o, instead saw end of content.",a),!1)}function Tr(e,t,r){var n,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Mt(),o=we(e);try{n=Xt(o,t)}catch(e){return a.error("Block validation failed because an error occurred while generating block content:\n\n%s",e.toString()),{isValid:!1,validationIssues:a.getItems()}}var i=Cr(r,n,a);return i||a.error("Block validation failed for `%s` (%o).\n\nContent generated by `save` function:\n\n%s\n\nContent retrieved from post body:\n\n%s",o.name,o,n,r),{isValid:i,validationIssues:a.getItems()}}function xr(e,t,r){return Tr(e,t,r,Lt()).isValid}function Pr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Sr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Pr(Object(r),!0).forEach((function(t){Object(s.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ar(e){for(var t={},r=0;r<e.length;r++){var n=e[r],a=n.name,o=n.value;t[a]=o}return t}function Er(e){if(e.nodeType===e.TEXT_NODE)return e.nodeValue;if(e.nodeType!==e.ELEMENT_NODE)throw new TypeError("A block node can only be created from a node of type text or element.");return{type:e.nodeName.toLowerCase(),props:Sr(Sr({},Ar(e.attributes)),{},{children:Lr(e.childNodes)})}}function Br(e){return function(t){var r=t;e&&(r=t.querySelector(e));try{return Er(r)}catch(e){return null}}}var Nr={isNodeOfType:function(e,t){return e&&e.type===t},fromDOM:Er,toHTML:function(e){return Mr([e])},matcher:Br};function Lr(e){for(var t=[],r=0;r<e.length;r++)try{t.push(Er(e[r]))}catch(e){}return t}function Mr(e){var t=e;return Object(de.renderToString)(t)}function zr(e){return function(t){var r=t;return e&&(r=t.querySelector(e)),r?Lr(r.childNodes):[]}}var Dr={concat:function(){for(var e=[],t=0;t<arguments.length;t++)for(var r=Object(c.castArray)(t<0||arguments.length<=t?void 0:arguments[t]),n=0;n<r.length;n++){var a=r[n],o="string"==typeof a&&"string"==typeof e[e.length-1];o?e[e.length-1]+=a:e.push(a)}return e},getChildrenArray:function(e){return e},fromDOM:Lr,toHTML:Mr,matcher:zr};function Hr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ir(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Hr(Object(r),!0).forEach((function(t){Object(s.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}new Set(["attribute","html","text","tag"]);function Vr(e,t){return t.some((function(t){return function(e,t){switch(t){case"string":return"string"==typeof e;case"boolean":return"boolean"==typeof e;case"object":return!!e&&e.constructor===Object;case"null":return null===e;case"array":return Array.isArray(e);case"integer":case"number":return"number"==typeof e}return!0}(e,t)}))}function Rr(e){switch(e.source){case"attribute":var t=function(e,t){return 1===arguments.length&&(t=e,e=void 0),function(r){var n=mt(e,"attributes")(r);if(n&&n.hasOwnProperty(t))return n[t].value}}(e.selector,e.attribute);return"boolean"===e.type&&(t=function(e){return Object(c.flow)([e,function(e){return void 0!==e}])}(t)),t;case"html":return n=e.selector,a=e.multiline,function(e){var t=e;if(n&&(t=e.querySelector(n)),!t)return"";if(a){for(var r="",o=t.children.length,i=0;i<o;i++){var s=t.children[i];s.nodeName.toLowerCase()===a&&(r+=s.outerHTML)}return r}return t.innerHTML};case"text":return function(e){return mt(e,"textContent")}(e.selector);case"children":return zr(e.selector);case"node":return Br(e.selector);case"query":var r=Object(c.mapValues)(e.query,Rr);return function(e,t){return function(r){var n=r.querySelectorAll(e);return[].map.call(n,(function(e){return gt(e,t)}))}}(e.selector,r);case"tag":return Object(c.flow)([mt(e.selector,"nodeName"),function(e){return e?e.toLowerCase():void 0}]);default:console.error('Unknown source type "'.concat(e.source,'"'))}var n,a}function Fr(e,t){return gt(e,Rr(t))}function $r(e,t,r,n){var a,o=t.type,i=t.enum;switch(t.source){case void 0:a=n?n[e]:void 0;break;case"attribute":case"property":case"html":case"text":case"children":case"node":case"query":case"tag":a=Fr(r,t)}return function(e,t){return void 0===t||Vr(e,Object(c.castArray)(t))}(a,o)&&function(e,t){return!Array.isArray(t)||t.includes(e)}(a,i)||(a=void 0),void 0===a?t.default:a}function qr(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=we(e),a=Object(c.mapValues)(n.attributes,(function(e,n){return $r(n,e,t,r)}));return Object(ce.applyFilters)("blocks.getBlockAttributes",a,n,t,r)}function Ur(e,t){var r=Ir({},t);if("core/cover-image"===e&&(e="core/cover"),"core/text"!==e&&"core/cover-text"!==e||(e="core/paragraph"),e&&0===e.indexOf("core/social-link-")&&(r.service=e.substring(17),e="core/social-link"),e&&0===e.indexOf("core-embed/")){var n=e.substring(11),a={speaker:"speaker-deck",polldaddy:"crowdsignal"};r.providerNameSlug=n in a?a[n]:n,["amazon-kindle","wordpress"].includes(n)||(r.responsive=!0),e="core/embed"}return{name:e,attributes:r}}function Gr(e){var t=e.blockName,r=e.attrs,n=e.innerBlocks,a=void 0===n?[]:n,o=e.innerHTML,s=e.innerContent,u=Le(),l=De()||u;r=r||{},o=o.trim();var f=t||u,d=Ur(f,r);f=d.name,r=d.attributes,f===u&&(o=Object(_t.autop)(o).trim());var p=Re(f);if(!p){var h={attrs:r,blockName:t,innerBlocks:a,innerContent:s},b=Kr(h,{isCommentDelimited:!1}),g=Kr(h,{isCommentDelimited:!0});f&&(o=g),r={originalName:t,originalContent:g,originalUndelimitedContent:b},p=Re(f=l)}a=(a=a.map(Gr)).filter((function(e){return e}));var m=f===u||f===l;if(p&&(o||!m)){var _=rt(f,qr(p,o,r),a);if(!m){var v=Tr(p,_.attributes,o),w=v.isValid,y=v.validationIssues;_.isValid=w,_.validationIssues=y}return _.originalContent=_.originalContent||o,(_=function(e,t){var r=Re(e.name),n=r.deprecated;if(!n||!n.length)return e;for(var a=e,o=a.originalContent,s=a.innerBlocks,u=0;u<n.length;u++){var l=n[u].isEligible,f=void 0===l?c.stubFalse:l;if(!e.isValid||f(t,s)){var d=Object.assign(Object(c.omit)(r,Oe),n[u]),p=qr(d,o,t),h=Tr(d,p,o),b=h.isValid,g=h.validationIssues;if(b){var m=s,_=d.migrate;if(_){var v=Object(c.castArray)(_(p,s)),w=Object(ee.a)(v,2),y=w[0];p=void 0===y?t:y;var k=w[1];m=void 0===k?s:k}e=Ir(Ir({},e),{},{attributes:p,innerBlocks:m,isValid:!0})}else e=Ir(Ir({},e),{},{validationIssues:[].concat(Object(i.a)(Object(c.get)(e,"validationIssues",[])),Object(i.a)(g))})}}return e}(_,r)).validationIssues&&_.validationIssues.length>0&&(_.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",p.name,p,Xt(p,_.attributes),_.originalContent):_.validationIssues.forEach((function(e){var t=e.log,r=e.args;return t.apply(void 0,Object(i.a)(r))}))),_}}function Kr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.isCommentDelimited,n=void 0===r||r,a=e.blockName,o=e.attrs,i=void 0===o?{}:o,s=e.innerBlocks,c=void 0===s?[]:s,u=e.innerContent,l=void 0===u?[]:u,f=0,d=l.map((function(e){return null!==e?e:Kr(c[f++],t)})).join("\n").replace(/\n+/g,"\n").trim();return n?tr(a,i,d):d}var Wr,Yr=(Wr=vt.parse,function(e){return Wr(e).reduce((function(e,t){var r=Gr(t);return r&&e.push(r),e}),[])}),Zr=Yr;function Qr(e){var t=document.implementation.createHTMLDocument(""),r=document.implementation.createHTMLDocument(""),n=t.body,a=r.body;for(n.innerHTML=e;n.firstChild;){var o=n.firstChild;o.nodeType===o.TEXT_NODE?o.nodeValue.trim()?(a.lastChild&&"P"===a.lastChild.nodeName||a.appendChild(r.createElement("P")),a.lastChild.appendChild(o)):n.removeChild(o):o.nodeType===o.ELEMENT_NODE?"BR"===o.nodeName?(o.nextSibling&&"BR"===o.nextSibling.nodeName&&(a.appendChild(r.createElement("P")),n.removeChild(o.nextSibling)),a.lastChild&&"P"===a.lastChild.nodeName&&a.lastChild.hasChildNodes()?a.lastChild.appendChild(o):n.removeChild(o)):"P"===o.nodeName?Object(pe.isEmpty)(o)?n.removeChild(o):a.appendChild(o):Object(pe.isPhrasingContent)(o)?(a.lastChild&&"P"===a.lastChild.nodeName||a.appendChild(r.createElement("P")),a.lastChild.appendChild(o)):a.appendChild(o):n.removeChild(o)}return a.innerHTML}function Xr(e,t){if(e.nodeType===e.COMMENT_NODE)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===n.COMMENT_NODE&&"noteaser"===n.nodeValue){a=!0,Object(pe.remove)(n);break}Object(pe.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(pe.replace)(e,function(e){var t=e.createElement("wp-block");return t.dataset.block="core/nextpage",t}(t))}function Jr(e){e.nodeType===e.COMMENT_NODE&&Object(pe.remove)(e)}function en(e,t){return e.every((function(e){return function(e,t){if(Object(pe.isTextContent)(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(c.difference)([r,t],e).length}))}(e,t)&&en(Array.from(e.children),t)}))}function tn(e){return"BR"===e.nodeName&&e.previousSibling&&"BR"===e.previousSibling.nodeName}function rn(e,t){if("SPAN"===e.nodeName&&e.style){var r=e.style,n=r.fontWeight,a=r.fontStyle,o=r.textDecorationLine,i=r.textDecoration,s=r.verticalAlign;"bold"!==n&&"700"!==n||Object(pe.wrap)(t.createElement("strong"),e),"italic"===a&&Object(pe.wrap)(t.createElement("em"),e),("line-through"===o||Object(c.includes)(i,"line-through"))&&Object(pe.wrap)(t.createElement("s"),e),"super"===s?Object(pe.wrap)(t.createElement("sup"),e):"sub"===s&&Object(pe.wrap)(t.createElement("sub"),e)}else"B"===e.nodeName?e=Object(pe.replaceTag)(e,"strong"):"I"===e.nodeName?e=Object(pe.replaceTag)(e,"em"):"A"===e.nodeName&&(e.target&&"_blank"===e.target.toLowerCase()?e.rel="noreferrer noopener":(e.removeAttribute("target"),e.removeAttribute("rel")))}function nn(e){"SCRIPT"!==e.nodeName&&"NOSCRIPT"!==e.nodeName&&"TEMPLATE"!==e.nodeName&&"STYLE"!==e.nodeName||e.parentNode.removeChild(e)}var an=window.parseInt;function on(e){return"OL"===e.nodeName||"UL"===e.nodeName}function sn(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=an(n[1],10)-1||0,o=e.previousElementSibling;if(!o||!on(o)){var i=e.textContent.trim().slice(0,1),s=/[1iIaA]/.test(i),c=t.createElement(s?"ol":"ul");s&&c.setAttribute("type",i),e.parentNode.insertBefore(c,e)}var u=e.previousElementSibling,l=u.nodeName,f=t.createElement("li"),d=u;for(e.removeChild(e.firstElementChild);e.firstChild;)f.appendChild(e.firstChild);for(;a--;)on(d=d.lastElementChild||d)&&(d=d.lastElementChild||d);on(d)||(d=d.appendChild(t.createElement(l))),d.appendChild(f),e.parentNode.removeChild(e)}}}}function cn(e){return"OL"===e.nodeName||"UL"===e.nodeName}function un(e){if(cn(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,Array.from(n.childNodes).map((function(e){var t=e.nodeValue;return void 0===t?"":t})).join("")))){var o=a,i=o.previousElementSibling,s=o.parentNode;i?(i.appendChild(t),s.removeChild(o)):(s.parentNode.insertBefore(t,s),s.parentNode.removeChild(s))}if(a&&cn(a)){var c=e.previousElementSibling;c?c.appendChild(e):Object(pe.unwrap)(e)}}}var ln=r(41),fn=window,dn=fn.atob,pn=fn.File;function hn(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(ee.a)(r,2),a=n[0],o=n[1],i=a.slice(5).split(";"),s=Object(ee.a)(i,1)[0];if(!o||!s)return void(e.src="");try{t=dn(o)}catch(t){return void(e.src="")}for(var c=new Uint8Array(t.length),u=0;u<c.length;u++)c[u]=t.charCodeAt(u);var l=s.replace("/","."),f=new pn([c],l,{type:s});e.src=Object(ln.createBlobURL)(f)}1!==e.height&&1!==e.width||e.parentNode.removeChild(e)}}function bn(e){"BLOCKQUOTE"===e.nodeName&&(e.innerHTML=Qr(e.innerHTML))}function gn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=e.ownerDocument.createElement("figure");t.parentNode.insertBefore(r,t),r.appendChild(e)}function mn(e,t,r){if(function(e,t){var r=e.nodeName.toLowerCase();return"figcaption"!==r&&!Object(pe.isTextContent)(e)&&Object(c.has)(t,["figure","children",r])}(e,r)){var n=e,a=e.parentNode;(function(e,t){var r=e.nodeName.toLowerCase();return Object(c.has)(t,["figure","children","a","children",r])})(e,r)&&"A"===a.nodeName&&1===a.childNodes.length&&(n=e.parentNode);var o=n.closest("p,div");o?e.classList?(e.classList.contains("alignright")||e.classList.contains("alignleft")||e.classList.contains("aligncenter")||!o.textContent.trim())&&gn(n,o):gn(n,o):"BODY"===n.parentNode.nodeName&&gn(n)}}var _n=r(130);function vn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function wn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vn(Object(r),!0).forEach((function(t){Object(s.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var yn=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=lt("from"),o=ut(a,(function(e){return-1===n.indexOf(e.blockName)&&"shortcode"===e.type&&Object(c.some)(Object(c.castArray)(e.tag),(function(e){return Object(_n.regexp)(e).test(t)}))}));if(!o)return[t];var s,u=Object(c.castArray)(o.tag),l=Object(c.find)(u,(function(e){return Object(_n.regexp)(e).test(t)})),f=r;if(s=Object(_n.next)(l,t,r)){r=s.index+s.content.length;var d=t.substr(0,s.index),p=t.substr(r);if(!(Object(c.includes)(s.shortcode.content||"","<")||/(\n|<p>)\s*$/.test(d)&&/^\s*(\n|<\/p>)/.test(p)))return e(t,r);if(o.isMatch&&!o.isMatch(s.shortcode.attrs))return e(t,f,[].concat(Object(i.a)(n),[o.blockName]));var h=Object(c.mapValues)(Object(c.pickBy)(o.attributes,(function(e){return e.shortcode})),(function(e){return e.shortcode(s.shortcode.attrs,s)})),b=rt(o.blockName,qr(wn(wn({},Re(o.blockName)),{},{attributes:o.attributes}),s.shortcode.content,h));return[].concat(Object(i.a)(e(d)),[b],Object(i.a)(e(p)))}return[t]},kn=r(284),On=new(r.n(kn).a.Converter)({noHeaderId:!0,tables:!0,literalMidWordUnderscores:!0,omitExtraWLInCodeBlocks:!0,simpleLineBreaks:!0,strikethrough:!0});function jn(e){if("IFRAME"===e.nodeName){var t=e.ownerDocument.createTextNode(e.src);e.parentNode.replaceChild(t,e)}}function Cn(e){e.id&&0===e.id.indexOf("docs-internal-guid-")&&Object(pe.unwrap)(e)}function Tn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function xn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Tn(Object(r),!0).forEach((function(t){Object(s.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Pn(e,t,r){var n=e.map((function(e){var n=e.isMatch,a=e.blockName,o=e.schema,s=qe(a,"anchor");return o=Object(c.isFunction)(o)?o({phrasingContentSchema:t,isPaste:r}):o,s||n?Object(c.mapValues)(o,(function(e){var t=e.attributes||[];return s&&(t=[].concat(Object(i.a)(t),["id"])),xn(xn({},e),{},{attributes:t,isMatch:n||void 0})})):o}));return c.mergeWith.apply(void 0,[{}].concat(Object(i.a)(n),[function(e,t,r){switch(r){case"children":return"*"===e||"*"===t?"*":xn(xn({},e),t);case"attributes":case"require":return[].concat(Object(i.a)(e||[]),Object(i.a)(t||[]));case"isMatch":if(!e||!t)return;return function(){return e.apply(void 0,arguments)||t.apply(void 0,arguments)}}}]))}function Sn(e,t,r,n){Array.from(e).forEach((function(e){Sn(e.childNodes,t,r,n),t.forEach((function(t){r.contains(e)&&t(e,r,n)}))}))}function An(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,Sn(n.body.childNodes,t,n,r),n.body.innerHTML}function En(e,t){var r=e["".concat(t,"Sibling")];if(r&&Object(pe.isPhrasingContent)(r))return r;var n=e.parentNode;return n&&Object(pe.isPhrasingContent)(n)?En(n,t):void 0}function Bn(e){if(e.nodeType===e.TEXT_NODE){for(var t=e;t=t.parentNode;)if(t.nodeType===t.ELEMENT_NODE&&"PRE"===t.nodeName)return;var r,n=e.data.replace(/[ \r\n\t]+/g," ");if(" "===n[0]){var a=En(e,"previous");a&&"BR"!==a.nodeName&&" "!==a.textContent.slice(-1)||(n=n.slice(1))}if(" "===n[n.length-1]){var o=En(e,"next");(!o||"BR"===o.nodeName||o.nodeType===o.TEXT_NODE&&(" "===(r=o.textContent[0])||"\r"===r||"\n"===r||"\t"===r))&&(n=n.slice(0,-1))}n?e.data=n:e.parentNode.removeChild(e)}}function Nn(e){"BR"===e.nodeName&&(En(e,"next")||e.parentNode.removeChild(e))}function Ln(e){"P"===e.nodeName&&(e.hasChildNodes()||e.parentNode.removeChild(e))}function Mn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function zn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Mn(Object(r),!0).forEach((function(t){Object(s.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Dn=window.console;function Hn(e,t){return e=An(e,[Cn,rn,Jr]),e=Object(pe.removeInvalidHTML)(e,Object(pe.getPhrasingContentSchema)("paste"),{inline:!0}),t||(e=An(e,[Bn,Nn])),Dn.log("Processed inline HTML:\n\n",e),e}function In(e){var t,r=e.HTML,n=void 0===r?"":r,a=e.plainText,o=void 0===a?"":a,i=e.mode,s=void 0===i?"AUTO":i,u=e.tagName,l=e.preserveWhiteSpace;if(n=(n=(n=n.replace(/<meta[^>]+>/g,"")).replace(/^\s*<html[^>]*>\s*<body[^>]*>(?:\s*<!--\s*StartFragment\s*-->)?/i,"")).replace(/(?:<!--\s*EndFragment\s*-->\s*)?<\/body>\s*<\/html>\s*$/i,""),"INLINE"!==s){var f=n||o;if(-1!==f.indexOf("\x3c!-- wp:"))return Yr(f)}if(String.prototype.normalize&&(n=n.normalize()),!o||n&&!function(e){return!/<(?!br[ />])/i.test(e)}(n)||(t=o,n=On.makeHtml(function(e){return e.replace(/((?:^|\n)```)([^\n`]+)(```(?:$|\n))/,(function(e,t,r,n){return"".concat(t,"\n").concat(r,"\n").concat(n)}))}(t)),"AUTO"===s&&-1===o.indexOf("\n")&&0!==o.indexOf("<p>")&&0===n.indexOf("<p>")&&(s="INLINE")),"INLINE"===s)return Hn(n,l);var d=yn(n),p=d.length>1;if("AUTO"===s&&!p&&function(e,t){var r=document.implementation.createHTMLDocument("");r.body.innerHTML=e;var n=Array.from(r.body.children);return!n.some(tn)&&en(n,t)}(n,u))return Hn(n,l);var h=Object(c.filter)(lt("from"),{type:"raw"}).map((function(e){return e.isMatch?e:zn(zn({},e),{},{isMatch:function(t){return e.selector&&t.matches(e.selector)}})})),b=Object(pe.getPhrasingContentSchema)("paste"),g=Pn(h,b,!0),m=Object(c.compact)(Object(c.flatMap)(d,(function(e){if("string"!=typeof e)return e;var t=[Cn,sn,nn,un,hn,rn,Xr,Jr,jn,mn,bn],r=zn(zn({},g),b);return e=An(e,t,g),e=An(e=Qr(e=Object(pe.removeInvalidHTML)(e,r)),[Bn,Nn,Ln],g),Dn.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=ut(r,(function(t){return(0,t.isMatch)(e)}));if(!t)return rt("core/html",qr("core/html",e.outerHTML));var n=t.transform,a=t.blockName;return n?n(e):rt(a,qr(a,e.outerHTML))}))}({html:e,rawTransforms:h})})));if("AUTO"===s&&1===m.length&&qe(m[0].name,"__unstablePasteTextInline",!1)){var _=o.trim();if(""!==_&&-1===_.indexOf("\n"))return Object(pe.removeInvalidHTML)(er(m[0]),b)}return m}var Vn=r(36),Rn=r.n(Vn);function Fn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function $n(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Fn(Object(r),!0).forEach((function(t){Object(s.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function qn(e){return Rn()("wp.blocks.getPhrasingContentSchema",{alternative:"wp.dom.getPhrasingContentSchema"}),Object(pe.getPhrasingContentSchema)(e)}function Un(e){var t=e.HTML,r=void 0===t?"":t;if(-1!==r.indexOf("\x3c!-- wp:"))return Yr(r);var n=yn(r),a=Object(c.filter)(lt("from"),{type:"raw"}).map((function(e){return e.isMatch?e:$n($n({},e),{},{isMatch:function(t){return e.selector&&t.matches(e.selector)}})})),o=Object(pe.getPhrasingContentSchema)(),i=Pn(a,o);return Object(c.compact)(Object(c.flatMap)(n,(function(e){return"string"!=typeof e?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=ut(r,(function(t){return(0,t.isMatch)(e)}));if(!t)return rt("core/html",qr("core/html",e.outerHTML));var n=t.transform,a=t.blockName;return n?n(e):rt(a,qr(a,e.outerHTML))}))}({html:e=Qr(e=An(e,[un,Xr,mn,bn],i)),rawTransforms:a})})))}function Gn(){return Object(o.select)("core/blocks").getCategories()}function Kn(e){Object(o.dispatch)("core/blocks").setCategories(e)}function Wn(e,t){Object(o.dispatch)("core/blocks").updateCategory(e,t)}function Yn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Zn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Yn(Object(r),!0).forEach((function(t){Object(s.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Qn(){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(c.every)(t,(function(t,r){var n=Object(ee.a)(t,3),a=n[0],o=n[2],i=e[r];return a===i.name&&Qn(i.innerBlocks,o)}))}function Xn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return t?Object(c.map)(t,(function(t,r){var n=Object(ee.a)(t,3),a=n[0],o=n[1],i=n[2],s=e[r];if(s&&s.name===a){var u=Xn(s.innerBlocks,i);return Zn(Zn({},s),{},{innerBlocks:u})}var l=Re(a),f=function(e,t){return Object(c.mapValues)(t,(function(t,r){return d(e[r],t)}))},d=function(e,t){return r=e,"html"===Object(c.get)(r,["source"])&&Object(c.isArray)(t)?Object(de.renderToString)(t):function(e){return"query"===Object(c.get)(e,["source"])}(e)&&t?t.map((function(t){return f(e.query,t)})):t;var r},p=Ur(a,f(Object(c.get)(l,["attributes"],{}),o));return rt(p.name,p.attributes,Xn([],i))})):e}},5: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}))},64:function(e,t){!function(){e.exports=this.wp.isShallowEqual}()},66:function(e,t,r){var n;!function(a){var o=/^\s+/,i=/\s+$/,s=0,c=a.round,u=a.min,l=a.max,f=a.random;function d(e,t){if(t=t||{},(e=e||"")instanceof d)return e;if(!(this instanceof d))return new d(e,t);var r=function(e){var t={r:0,g:0,b:0},r=1,n=null,s=null,c=null,f=!1,d=!1;"string"==typeof e&&(e=function(e){e=e.replace(o,"").replace(i,"").toLowerCase();var t,r=!1;if(A[e])e=A[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:M(t[1]),g:M(t[2]),b:M(t[3]),a:I(t[4]),format:r?"name":"hex8"};if(t=$.hex6.exec(e))return{r:M(t[1]),g:M(t[2]),b:M(t[3]),format:r?"name":"hex"};if(t=$.hex4.exec(e))return{r:M(t[1]+""+t[1]),g:M(t[2]+""+t[2]),b:M(t[3]+""+t[3]),a:I(t[4]+""+t[4]),format:r?"name":"hex8"};if(t=$.hex3.exec(e))return{r:M(t[1]+""+t[1]),g:M(t[2]+""+t[2]),b:M(t[3]+""+t[3]),format:r?"name":"hex"};return!1}(e));"object"==typeof e&&(q(e.r)&&q(e.g)&&q(e.b)?(p=e.r,h=e.g,b=e.b,t={r:255*N(p,255),g:255*N(h,255),b:255*N(b,255)},f=!0,d="%"===String(e.r).substr(-1)?"prgb":"rgb"):q(e.h)&&q(e.s)&&q(e.v)?(n=D(e.s),s=D(e.v),t=function(e,t,r){e=6*N(e,360),t=N(t,100),r=N(r,100);var n=a.floor(e),o=e-n,i=r*(1-t),s=r*(1-o*t),c=r*(1-(1-o)*t),u=n%6;return{r:255*[r,s,i,i,c,r][u],g:255*[c,r,r,s,i,i][u],b:255*[i,i,c,r,r,s][u]}}(e.h,n,s),f=!0,d="hsv"):q(e.h)&&q(e.s)&&q(e.l)&&(n=D(e.s),c=D(e.l),t=function(e,t,r){var n,a,o;function i(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=N(e,360),t=N(t,100),r=N(r,100),0===t)n=a=o=r;else{var s=r<.5?r*(1+t):r+t-r*t,c=2*r-s;n=i(c,s,e+1/3),a=i(c,s,e),o=i(c,s,e-1/3)}return{r:255*n,g:255*a,b:255*o}}(e.h,n,c),f=!0,d="hsl"),e.hasOwnProperty("a")&&(r=e.a));var p,h,b;return r=B(r),{ok:f,format:e.format||d,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 p(e,t,r){e=N(e,255),t=N(t,255),r=N(r,255);var n,a,o=l(e,t,r),i=u(e,t,r),s=(o+i)/2;if(o==i)n=a=0;else{var c=o-i;switch(a=s>.5?c/(2-o-i):c/(o+i),o){case e:n=(t-r)/c+(t<r?6:0);break;case t:n=(r-e)/c+2;break;case r:n=(e-t)/c+4}n/=6}return{h:n,s:a,l:s}}function h(e,t,r){e=N(e,255),t=N(t,255),r=N(r,255);var n,a,o=l(e,t,r),i=u(e,t,r),s=o,c=o-i;if(a=0===o?0:c/o,o==i)n=0;else{switch(o){case e:n=(t-r)/c+(t<r?6:0);break;case t:n=(r-e)/c+2;break;case r:n=(e-t)/c+4}n/=6}return{h:n,s:a,v:s}}function b(e,t,r,n){var a=[z(c(e).toString(16)),z(c(t).toString(16)),z(c(r).toString(16))];return n&&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[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function g(e,t,r,n){return[z(H(n)),z(c(e).toString(16)),z(c(t).toString(16)),z(c(r).toString(16))].join("")}function m(e,t){t=0===t?0:t||10;var r=d(e).toHsl();return r.s-=t/100,r.s=L(r.s),d(r)}function _(e,t){t=0===t?0:t||10;var r=d(e).toHsl();return r.s+=t/100,r.s=L(r.s),d(r)}function v(e){return d(e).desaturate(100)}function w(e,t){t=0===t?0:t||10;var r=d(e).toHsl();return r.l+=t/100,r.l=L(r.l),d(r)}function y(e,t){t=0===t?0:t||10;var r=d(e).toRgb();return r.r=l(0,u(255,r.r-c(-t/100*255))),r.g=l(0,u(255,r.g-c(-t/100*255))),r.b=l(0,u(255,r.b-c(-t/100*255))),d(r)}function k(e,t){t=0===t?0:t||10;var r=d(e).toHsl();return r.l-=t/100,r.l=L(r.l),d(r)}function O(e,t){var r=d(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,d(r)}function j(e){var t=d(e).toHsl();return t.h=(t.h+180)%360,d(t)}function C(e){var t=d(e).toHsl(),r=t.h;return[d(e),d({h:(r+120)%360,s:t.s,l:t.l}),d({h:(r+240)%360,s:t.s,l:t.l})]}function T(e){var t=d(e).toHsl(),r=t.h;return[d(e),d({h:(r+90)%360,s:t.s,l:t.l}),d({h:(r+180)%360,s:t.s,l:t.l}),d({h:(r+270)%360,s:t.s,l:t.l})]}function x(e){var t=d(e).toHsl(),r=t.h;return[d(e),d({h:(r+72)%360,s:t.s,l:t.l}),d({h:(r+216)%360,s:t.s,l:t.l})]}function P(e,t,r){t=t||6,r=r||30;var n=d(e).toHsl(),a=360/r,o=[d(e)];for(n.h=(n.h-(a*t>>1)+720)%360;--t;)n.h=(n.h+a)%360,o.push(d(n));return o}function S(e,t){t=t||6;for(var r=d(e).toHsv(),n=r.h,a=r.s,o=r.v,i=[],s=1/t;t--;)i.push(d({h:n,s:a,v:o})),o=(o+s)%1;return i}d.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=B(e),this._roundA=c(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=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=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=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 b(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 o=[z(c(e).toString(16)),z(c(t).toString(16)),z(c(r).toString(16)),z(H(n))];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: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*N(this._r,255))+"%",g:c(100*N(this._g,255))+"%",b:c(100*N(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+c(100*N(this._r,255))+"%, "+c(100*N(this._g,255))+"%, "+c(100*N(this._b,255))+"%)":"rgba("+c(100*N(this._r,255))+"%, "+c(100*N(this._g,255))+"%, "+c(100*N(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(E[b(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+g(this._r,this._g,this._b,this._a),r=t,n=this._gradientType?"GradientType = 1, ":"";if(e){var a=d(e);r="#"+g(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 d(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(w,arguments)},brighten:function(){return this._applyModification(y,arguments)},darken:function(){return this._applyModification(k,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(_,arguments)},greyscale:function(){return this._applyModification(v,arguments)},spin:function(){return this._applyModification(O,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(P,arguments)},complement:function(){return this._applyCombination(j,arguments)},monochromatic:function(){return this._applyCombination(S,arguments)},splitcomplement:function(){return this._applyCombination(x,arguments)},triad:function(){return this._applyCombination(C,arguments)},tetrad:function(){return this._applyCombination(T,arguments)}},d.fromRatio=function(e,t){if("object"==typeof e){var r={};for(var n in e)e.hasOwnProperty(n)&&(r[n]="a"===n?e[n]:D(e[n]));e=r}return d(e,t)},d.equals=function(e,t){return!(!e||!t)&&d(e).toRgbString()==d(t).toRgbString()},d.random=function(){return d.fromRatio({r:f(),g:f(),b:f()})},d.mix=function(e,t,r){r=0===r?0:r||50;var n=d(e).toRgb(),a=d(t).toRgb(),o=r/100;return d({r:(a.r-n.r)*o+n.r,g:(a.g-n.g)*o+n.g,b:(a.b-n.b)*o+n.b,a:(a.a-n.a)*o+n.a})},d.readability=function(e,t){var r=d(e),n=d(t);return(a.max(r.getLuminance(),n.getLuminance())+.05)/(a.min(r.getLuminance(),n.getLuminance())+.05)},d.isReadable=function(e,t,r){var n,a,o=d.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=o>=4.5;break;case"AAlarge":a=o>=3;break;case"AAAsmall":a=o>=7}return a},d.mostReadable=function(e,t,r){var n,a,o,i,s=null,c=0;a=(r=r||{}).includeFallbackColors,o=r.level,i=r.size;for(var u=0;u<t.length;u++)(n=d.readability(e,t[u]))>c&&(c=n,s=d(t[u]));return d.isReadable(e,s,{level:o,size:i})||!a?s:(r.includeFallbackColors=!1,d.mostReadable(e,["#fff","#000"],r))};var A=d.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"},E=d.hexNames=function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}(A);function B(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 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 L(e){return u(1,l(0,e))}function M(e){return parseInt(e,16)}function z(e){return 1==e.length?"0"+e:""+e}function D(e){return e<=1&&(e=100*e+"%"),e}function H(e){return a.round(255*parseFloat(e)).toString(16)}function I(e){return M(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=d:void 0===(n=function(){return d}.call(t,r,t,e))||(e.exports=n)}(Math)},69:function(e,t){!function(){e.exports=this.wp.htmlEntities}()},7:function(e,t){!function(){e.exports=this.wp.primitives}()},8:function(e,t,r){"use strict";function n(){return(n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}r.d(t,"a",(function(){return n}))}}); \ No newline at end of file diff --git a/wp-includes/js/dist/components.js b/wp-includes/js/dist/components.js index ccbb091c58..2fd341d46b 100644 --- a/wp-includes/js/dist/components.js +++ b/wp-includes/js/dist/components.js @@ -30138,6 +30138,7 @@ var token_input_TokenInput = /*#__PURE__*/function (_Component) { onChange: this.onChange, size: size, className: classnames_default()(className, 'components-form-token-field__input'), + autoComplete: "off", role: "combobox", "aria-expanded": isExpanded, "aria-autocomplete": "list", @@ -36207,7 +36208,11 @@ var provider_DropZoneProvider = /*#__PURE__*/function (_Component) { var ownerDocument = this.ref.current.ownerDocument; var defaultView = ownerDocument.defaultView; defaultView.addEventListener('dragover', this.onDragOver); - defaultView.addEventListener('mouseup', this.resetDragState); + defaultView.addEventListener('mouseup', this.resetDragState); // Note that `dragend` doesn't fire consistently for file and HTML drag + // events where the drag origin is outside the browser window. + // In Firefox it may also not fire if the originating node is removed. + + defaultView.addEventListener('dragend', this.resetDragState); } }, { key: "componentWillUnmount", @@ -36216,6 +36221,7 @@ var provider_DropZoneProvider = /*#__PURE__*/function (_Component) { var defaultView = ownerDocument.defaultView; defaultView.removeEventListener('dragover', this.onDragOver); defaultView.removeEventListener('mouseup', this.resetDragState); + defaultView.removeEventListener('dragend', this.resetDragState); } }, { key: "addDropZone", diff --git a/wp-includes/js/dist/components.min.js b/wp-includes/js/dist/components.min.js index 202798ac38..c656612898 100644 --- a/wp-includes/js/dist/components.min.js +++ b/wp-includes/js/dist/components.min.js @@ -4,7 +4,7 @@ this.wp=this.wp||{},this.wp.components=function(e){var t={};function n(r){if(t[r Copyright (c) 2017 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)&&r.length){var a=o.apply(null,r);a&&e.push(a)}else if("object"===i)for(var c in r)n.call(r,c)&&r[c]&&e.push(c)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t){!function(){e.exports=this.wp.compose}()},,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(38);var o=n(30),i=n(39);function a(e,t){return Object(r.a)(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}(e,t)||Object(o.a)(e,t)||Object(i.a)()}},function(e,t){!function(){e.exports=this.React}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(43);function o(e,t){if(null==e)return{};var n,o,i=Object(r.a)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},function(e,t,n){"use strict";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}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return s}))},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 a}));var r=n(27);var o=n(37),i=n(30);function a(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(o.a)(e)||Object(i.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t){!function(){e.exports=this.wp.keycodes}()},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}))},function(e,t){!function(){e.exports=this.regeneratorRuntime}()},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}))},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(40),o=n(16);function i(e,t){return!t||"object"!==Object(r.a)(t)&&"function"!=typeof t?Object(o.a)(e):t}},function(e,t){!function(){e.exports=this.wp.richText}()},,function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return r}))},function(e,t,n){e.exports=n(142)()},function(e,t){!function(){e.exports=this.wp.dom}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(27);function o(e,t){if(e){if("string"==typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},,,function(e,t){!function(){e.exports=this.wp.hooks}()},,function(e,t,n){"use strict";var r=n(8),o=n(14),i=n(0),a=n(9),c=n.n(a),s=n(2),u=n(36),l=n.n(u),d=n(84),f=n(85);function p(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return b(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return b(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var h=["onMouseDown","onClick"];t.a=Object(i.forwardRef)((function(e,t){var n=e.href,a=e.target,u=e.isPrimary,b=e.isSmall,v=e.isTertiary,m=e.isPressed,y=e.isBusy,g=e.isDefault,O=e.isSecondary,j=e.isLink,w=e.isDestructive,k=e.className,_=e.disabled,S=e.icon,E=e.iconSize,x=e.showTooltip,C=e.tooltipPosition,P=e.shortcut,D=e.label,M=e.children,T=e.__experimentalIsFocusable,I=Object(o.a)(e,["href","target","isPrimary","isSmall","isTertiary","isPressed","isBusy","isDefault","isSecondary","isLink","isDestructive","className","disabled","icon","iconSize","showTooltip","tooltipPosition","shortcut","label","children","__experimentalIsFocusable"]);g&&l()("Button isDefault prop",{alternative:"isSecondary"});var R=c()("components-button",k,{"is-secondary":g||O,"is-primary":u,"is-small":b,"is-tertiary":v,"is-pressed":m,"is-busy":y,"is-link":j,"is-destructive":w,"has-text":!!S&&!!M,"has-icon":!!S}),N=_&&!T,A=void 0===n||N?"button":"a",L="a"===A?{href:n,target:a}:{type:"button",disabled:N,"aria-pressed":m};if(_&&T){L["aria-disabled"]=!0;var F,z=p(h);try{for(z.s();!(F=z.n()).done;){I[F.value]=function(e){e.stopPropagation(),e.preventDefault()}}}catch(e){z.e(e)}finally{z.f()}}var B=!N&&(x&&D||P||!!D&&(!M||Object(s.isArray)(M)&&!M.length)&&!1!==x),H=Object(i.createElement)(A,Object(r.a)({},L,I,{className:R,"aria-label":I["aria-label"]||D,ref:t}),S&&Object(i.createElement)(f.a,{icon:S,size:E}),M);return B?Object(i.createElement)(d.a,{text:D,shortcut:P,position:C},H):H}))},function(e,t){!function(){e.exports=this.wp.deprecated}()},function(e,t,n){"use strict";function r(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}n.d(t,"a",(function(){return r}))},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.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}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)}n.d(t,"a",(function(){return r}))},,,function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},function(e,t){!function(){e.exports=this.moment}()},function(e,t,n){"use strict";function r(e,t,n,r,o,i,a){try{var c=e[i](a),s=c.value}catch(e){return void n(e)}c.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 a=e.apply(t,n);function c(e){r(a,o,i,c,s,"next",e)}function s(e){r(a,o,i,c,s,"throw",e)}c(void 0)}))}}n.d(t,"a",(function(){return o}))},function(e,t){!function(){e.exports=this.wp.a11y}()},,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(13),o=n(59);function i(e){var t=Object(r.useRef)(e);return Object(o.a)((function(){t.current=e})),t}},function(e,t,n){"use strict";function r(e){return e?e.ownerDocument||e:window.document}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(13),o=n(76);function i(e,t){Object(r.useDebugValue)(e);var n=Object(r.useContext)(o.a);return null!=n[e]?n[e]:t}var a=n(55);var c=n(56);function s(e){var t,n,o,s=(o=e.compose,Array.isArray(o)?o:void 0!==o?[o]:[]),u=function(t,n){if(e.useOptions&&(t=e.useOptions(t,n)),e.name&&(t=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var o="use"+e+"Options";Object(r.useDebugValue)(o);var c=i(o);return c?Object(a.a)(Object(a.a)({},t),c(t,n)):t}(e.name,t,n)),e.compose)for(var o,c=Object(a.c)(s);!(o=c()).done;){t=o.value.__useOptions(t,n)}return t},l=function(t,n,o){if(void 0===t&&(t={}),void 0===n&&(n={}),void 0===o&&(o=!1),o||(t=u(t,n)),e.useProps&&(n=e.useProps(t,n)),e.name&&(n=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var o="use"+e+"Props";Object(r.useDebugValue)(o);var a=i(o);return a?a(t,n):n}(e.name,t,n)),e.compose)if(e.useComposeOptions&&(t=e.useComposeOptions(t,n)),e.useComposeProps)n=e.useComposeProps(t,n);else for(var c,l=Object(a.c)(s);!(c=l()).done;){n=(0,c.value)(t,n,!0)}var d={},f=n||{};for(var p in f)void 0!==f[p]&&(d[p]=f[p]);return d};l.__useOptions=u;var d=s.reduce((function(e,t){return e.push.apply(e,t.__keys||[]),e}),[]);return l.__keys=[].concat(d,(null===(t=e.useState)||void 0===t?void 0:t.__keys)||[],e.keys||[]),l.unstable_propsAreEqual=e.propsAreEqual||(null===(n=s[0])||void 0===n?void 0:n.unstable_propsAreEqual)||c.a,l}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(13),o=n(55),i=n(79);function a(e,t){for(var n={},r={},o=0,i=Object.keys(e);o<i.length;o++){var a=i[o];t.indexOf(a)>=0?n[a]=e[a]:r[a]=e[a]}return[n,r]}var c=n(56);function s(e){var t,n=e.as,s=e.useHook,u=e.memo,l=e.propsAreEqual,d=void 0===l?null==s?void 0:s.unstable_propsAreEqual:l,f=e.keys,p=void 0===f?(null==s?void 0:s.__keys)||[]:f,b=e.useCreateElement,h=void 0===b?i.a:b,v=function(e,t){var r=e.as,i=void 0===r?n:r,c=Object(o.b)(e,["as"]);if(s){var u,l=a(c,p),d=l[0],f=l[1],b=s(d,Object(o.a)({ref:t},f)),v=b.wrapElement,m=Object(o.b)(b,["wrapElement"]),y=(null===(u=i.render)||void 0===u?void 0:u.__keys)||i.__keys,g=y&&a(c,y)[0],O=g?Object(o.a)(Object(o.a)({},m),g):m,j=h(i,O);return v?v(j):j}return h(i,Object(o.a)({ref:t},c))};return t=v,v=Object(r.forwardRef)(t),u&&(v=function(e,t){return Object(r.memo)(e,t)}(v,d)),v.__keys=p,v.unstable_propsAreEqual=d||c.a,v}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return m})),n.d(t,"c",(function(){return b})),n.d(t,"d",(function(){return p})),n.d(t,"e",(function(){return g})),n.d(t,"f",(function(){return u})),n.d(t,"g",(function(){return x}));var r=n(15),o=n(13),i=n(59),a=n(62),c=n(61),s=n(65);function u(e){return e.slice().reverse()}function l(e,t){return Boolean(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function d(e,t){return e.findIndex((function(e){return!(!e.ref.current||!t.ref.current)&&l(t.ref.current,e.ref.current)}))}function f(e,t){return t?e.find((function(e){return!e.disabled&&e.id!==t})):e.find((function(e){return!e.disabled}))}function p(e,t){if(t)return null==e?void 0:e.find((function(e){return e.id===t&&!e.disabled}))}function b(e){for(var t,n=[[]],o=function(){var e=t.value,r=n.find((function(t){return!t[0]||t[0].groupId===e.groupId}));r?r.push(e):n.push([e])},i=Object(r.c)(e);!(t=i()).done;)o();return n}function h(e){for(var t,n=0,o=Object(r.c)(e);!(t=o()).done;){var i=t.value.length;i>n&&(n=i)}return n}function v(e){for(var t=b(e),n=h(t),o=[],i=0;i<n;i+=1)for(var a,c=Object(r.c)(t);!(a=c()).done;){var s=a.value;s[i]&&o.push(Object(r.b)(Object(r.b)({},s[i]),{},{groupId:s[i].groupId?""+i:void 0}))}return o}function m(e){for(var t,n=[],o=Object(r.c)(e);!(t=o()).done;){var i=t.value;n.push.apply(n,i)}return n}function y(e){for(var t,n=h(e),o=Object(r.c)(e);!(t=o()).done;){var i=t.value;if(i.length<n)for(var a=0;a<n;a+=1)i[a]||(i[a]={id:"__EMPTY_ITEM__",disabled:!0,ref:{current:null},groupId:i[a-1].groupId})}return e}function g(e,t){var n;return t||null===t?t:e.currentId||null===e.currentId?e.currentId:null===(n=f(e.items||[]))||void 0===n?void 0:n.id}var O={id:null,ref:{current:null}};function j(e,t){return e.filter((function(e){return e.groupId===t}))}var w={horizontal:"vertical",vertical:"horizontal"};function k(e,t,n){return n in e?[].concat(e.slice(0,n),[t],e.slice(n)):[].concat(e,[t])}function _(e){var t=e.slice(),n=!1;return t.sort((function(e,t){var r=e.ref.current,o=t.ref.current;return r&&o&&l(r,o)?(n=!0,-1):0})),n?t:e}function S(e,t){var n=e.unstable_virtual,o=e.rtl,i=e.orientation,a=e.items,s=e.groups,l=e.currentId,h=e.loop,E=e.wrap,x=e.pastIds,C=e.unstable_moves,P=e.initialVirtual,D=e.initialRTL,M=e.initialOrientation,T=e.initialCurrentId,I=e.initialLoop,R=e.initialWrap,N=e.hasSetCurrentId;switch(t.type){case"registerGroup":var A=t.group;if(0===s.length)return Object(r.b)(Object(r.b)({},e),{},{groups:[A]});var L=d(s,A);return Object(r.b)(Object(r.b)({},e),{},{groups:k(s,A,L)});case"unregisterGroup":var F=t.id,z=s.filter((function(e){return e.id!==F}));return z.length===s.length?e:Object(r.b)(Object(r.b)({},e),{},{groups:z});case"registerItem":var B,H=t.item,V=s.find((function(e){var t;return null===(t=e.ref.current)||void 0===t?void 0:t.contains(H.ref.current)})),K=Object(r.b)({groupId:null==V?void 0:V.id},H),W=d(a,K),U=Object(r.b)(Object(r.b)({},e),{},{items:k(a,K,W)});return N||C||void 0!==T?U:Object(r.b)(Object(r.b)({},U),{},{currentId:null===(B=f(U.items))||void 0===B?void 0:B.id});case"unregisterItem":var G=t.id,$=a.filter((function(e){return e.id!==G}));if($.length===a.length)return e;var q=x.filter((function(e){return e!==G})),Y=Object(r.b)(Object(r.b)({},e),{},{pastIds:q,items:$});if(l&&l===G){var Z=g(Object(r.b)(Object(r.b)({},Y),{},{currentId:q[0]}));return Object(r.b)(Object(r.b)({},Y),{},{currentId:Z})}return Y;case"move":var X=t.id;if(void 0===X)return e;var J=x.filter((function(e){return e!==l&&e!==X})),Q=l?[l].concat(J):J,ee=Object(r.b)(Object(r.b)({},e),{},{pastIds:Q});if(null===X)return Object(r.b)(Object(r.b)({},ee),{},{unstable_moves:C+1,currentId:g(ee,X)});var te=p(a,X);return Object(r.b)(Object(r.b)({},ee),{},{unstable_moves:te?C+1:C,currentId:g(ee,null==te?void 0:te.id)});case"next":if(null==l)return S(e,Object(r.b)(Object(r.b)({},t),{},{type:"first"}));var ne=o&&"vertical"!==i,re=ne?u(a):a,oe=re.find((function(e){return e.id===l}));if(!oe)return S(e,Object(r.b)(Object(r.b)({},t),{},{type:"first"}));var ie=!!oe.groupId,ae=re.indexOf(oe),ce=re.slice(ae+1),se=j(ce,oe.groupId);if(t.allTheWay){var ue=f(ne?j(re,oe.groupId):u(se));return S(e,Object(r.b)(Object(r.b)({},t),{},{type:"move",id:null==ue?void 0:ue.id}))}var le=function(e){return e&&w[e]}(ie?i||"horizontal":i),de=h&&h!==le,fe=ie&&E&&E!==le,pe=t.hasNullItem||!ie&&de&&null===T;if(de){var be=f(function(e,t,n){var r=e.findIndex((function(e){return e.id===t}));return[].concat(e.slice(r+1),n?[O]:[],e.slice(0,r))}(fe&&!pe?re:j(re,oe.groupId),l,pe),l);return S(e,Object(r.b)(Object(r.b)({},t),{},{type:"move",id:null==be?void 0:be.id}))}if(fe){var he=f(pe?se:ce,l),ve=pe?(null==he?void 0:he.id)||null:null==he?void 0:he.id;return S(e,Object(r.b)(Object(r.b)({},t),{},{type:"move",id:ve}))}var me=f(se,l);return S(e,!me&&pe?Object(r.b)(Object(r.b)({},t),{},{type:"move",id:null}):Object(r.b)(Object(r.b)({},t),{},{type:"move",id:null==me?void 0:me.id}));case"previous":var ye=!!!s.length&&null===T,ge=S(Object(r.b)(Object(r.b)({},e),{},{items:u(a)}),Object(r.b)(Object(r.b)({},t),{},{type:"next",hasNullItem:ye}));return Object(r.b)(Object(r.b)({},ge),{},{items:a});case"down":var Oe=v(m(y(b(a)))),je=h&&"horizontal"!==h&&null===T,we=S(Object(r.b)(Object(r.b)({},e),{},{orientation:"vertical",items:Oe}),Object(r.b)(Object(r.b)({},t),{},{type:"next",hasNullItem:je}));return Object(r.b)(Object(r.b)({},we),{},{orientation:i,items:a});case"up":var ke=v(u(m(y(b(a))))),_e=null===T,Se=S(Object(r.b)(Object(r.b)({},e),{},{orientation:"vertical",items:ke}),Object(r.b)(Object(r.b)({},t),{},{type:"next",hasNullItem:_e}));return Object(r.b)(Object(r.b)({},Se),{},{orientation:i,items:a});case"first":var Ee=f(a);return S(e,Object(r.b)(Object(r.b)({},t),{},{type:"move",id:null==Ee?void 0:Ee.id}));case"last":var xe=S(Object(r.b)(Object(r.b)({},e),{},{items:u(a)}),Object(r.b)(Object(r.b)({},t),{},{type:"first"}));return Object(r.b)(Object(r.b)({},xe),{},{items:a});case"sort":return Object(r.b)(Object(r.b)({},e),{},{items:_(a),groups:_(s)});case"setVirtual":return Object(r.b)(Object(r.b)({},e),{},{unstable_virtual:Object(c.a)(t.virtual,n)});case"setRTL":return Object(r.b)(Object(r.b)({},e),{},{rtl:Object(c.a)(t.rtl,o)});case"setOrientation":return Object(r.b)(Object(r.b)({},e),{},{orientation:Object(c.a)(t.orientation,i)});case"setCurrentId":var Ce=g(Object(r.b)(Object(r.b)({},e),{},{currentId:Object(c.a)(t.currentId,l)}));return Object(r.b)(Object(r.b)({},e),{},{currentId:Ce,hasSetCurrentId:!0});case"setLoop":return Object(r.b)(Object(r.b)({},e),{},{loop:Object(c.a)(t.loop,h)});case"setWrap":return Object(r.b)(Object(r.b)({},e),{},{wrap:Object(c.a)(t.wrap,E)});case"reset":return Object(r.b)(Object(r.b)({},e),{},{unstable_virtual:P,rtl:D,orientation:M,currentId:g(Object(r.b)(Object(r.b)({},e),{},{currentId:T})),loop:I,wrap:R,unstable_moves:0,pastIds:[]});default:throw new Error}}function E(e){return Object(o.useCallback)(e,[])}function x(e){void 0===e&&(e={});var t=Object(a.a)(e),n=t.unstable_virtual,c=void 0!==n&&n,u=t.rtl,l=void 0!==u&&u,d=t.orientation,f=t.currentId,p=t.loop,b=void 0!==p&&p,h=t.wrap,v=void 0!==h&&h,m=Object(r.a)(t,["unstable_virtual","rtl","orientation","currentId","loop","wrap"]),y=Object(o.useReducer)(S,{unstable_virtual:c,rtl:l,orientation:d,items:[],groups:[],currentId:f,loop:b,wrap:v,unstable_moves:0,pastIds:[],initialVirtual:c,initialRTL:l,initialOrientation:d,initialCurrentId:f,initialLoop:b,initialWrap:v}),g=y[0],O=(g.pastIds,g.initialVirtual,g.initialRTL,g.initialOrientation,g.initialCurrentId,g.initialLoop,g.initialWrap,g.hasSetCurrentId,Object(r.a)(g,["pastIds","initialVirtual","initialRTL","initialOrientation","initialCurrentId","initialLoop","initialWrap","hasSetCurrentId"])),j=y[1],w=Object(o.useState)(!1),k=w[0],_=w[1],x=Object(s.a)(m),C=function(){var e=Object(o.useRef)(!1);return Object(i.a)((function(){return function(){e.current=!0}}),[]),e}();return Object(r.b)(Object(r.b)(Object(r.b)({},x),O),{},{unstable_hasActiveWidget:k,unstable_setHasActiveWidget:_,registerItem:E((function(e){C.current||j({type:"registerItem",item:e})})),unregisterItem:E((function(e){C.current||j({type:"unregisterItem",id:e})})),registerGroup:E((function(e){C.current||j({type:"registerGroup",group:e})})),unregisterGroup:E((function(e){C.current||j({type:"unregisterGroup",id:e})})),move:E((function(e){return j({type:"move",id:e})})),next:E((function(e){return j({type:"next",allTheWay:e})})),previous:E((function(e){return j({type:"previous",allTheWay:e})})),up:E((function(e){return j({type:"up",allTheWay:e})})),down:E((function(e){return j({type:"down",allTheWay:e})})),first:E((function(){return j({type:"first"})})),last:E((function(){return j({type:"last"})})),unstable_sort:E((function(){return j({type:"sort"})})),unstable_setVirtual:E((function(e){return j({type:"setVirtual",virtual:e})})),setRTL:E((function(e){return j({type:"setRTL",rtl:e})})),setOrientation:E((function(e){return j({type:"setOrientation",orientation:e})})),setCurrentId:E((function(e){return j({type:"setCurrentId",currentId:e})})),setLoop:E((function(e){return j({type:"setLoop",loop:e})})),setWrap:E((function(e){return j({type:"setWrap",wrap:e})})),reset:E((function(){return j({type:"reset"})}))})}var C=[].concat(s.a.__keys,["unstable_virtual","rtl","orientation","items","groups","currentId","loop","wrap","unstable_moves","unstable_hasActiveWidget","registerItem","unregisterItem","registerGroup","unregisterGroup","move","next","previous","up","down","first","last","unstable_sort","unstable_setVirtual","setRTL","setOrientation","setCurrentId","setLoop","setWrap","reset","unstable_setHasActiveWidget"]);x.__keys=C},,function(e,t,n){"use strict";function r(e){return e.target===e.currentTarget}n.d(t,"a",(function(){return r}))},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}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return s}))},function(e,t,n){"use strict";function r(e,t){if(e===t)return!0;if(!e)return!1;if(!t)return!1;if("object"!=typeof e)return!1;if("object"!=typeof t)return!1;var n=Object.keys(e),r=Object.keys(t),o=n.length;if(r.length!==o)return!1;for(var i=0,a=n;i<a.length;i++){var c=a[i];if(e[c]!==t[c])return!1}return!0}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(49);function o(e){return Object(r.a)(e).activeElement}},function(e,t,n){"use strict";var r=TypeError,o=Object.getOwnPropertyDescriptor;if(o)try{o({},"")}catch(e){o=null}var i=function(){throw new r},a=o?function(){try{return i}catch(e){try{return o(arguments,"callee").get}catch(e){return i}}}():i,c=n(220)(),s=Object.getPrototypeOf||function(e){return e.__proto__},u=void 0,l="undefined"==typeof Uint8Array?void 0:s(Uint8Array),d={"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayBufferPrototype%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer.prototype,"%ArrayIteratorPrototype%":c?s([][Symbol.iterator]()):void 0,"%ArrayPrototype%":Array.prototype,"%ArrayProto_entries%":Array.prototype.entries,"%ArrayProto_forEach%":Array.prototype.forEach,"%ArrayProto_keys%":Array.prototype.keys,"%ArrayProto_values%":Array.prototype.values,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":void 0,"%AsyncFunctionPrototype%":void 0,"%AsyncGenerator%":void 0,"%AsyncGeneratorFunction%":void 0,"%AsyncGeneratorPrototype%":void 0,"%AsyncIteratorPrototype%":u&&c&&Symbol.asyncIterator?u[Symbol.asyncIterator]():void 0,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%Boolean%":Boolean,"%BooleanPrototype%":Boolean.prototype,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%DataViewPrototype%":"undefined"==typeof DataView?void 0:DataView.prototype,"%Date%":Date,"%DatePrototype%":Date.prototype,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%ErrorPrototype%":Error.prototype,"%eval%":eval,"%EvalError%":EvalError,"%EvalErrorPrototype%":EvalError.prototype,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float32ArrayPrototype%":"undefined"==typeof Float32Array?void 0:Float32Array.prototype,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%Float64ArrayPrototype%":"undefined"==typeof Float64Array?void 0:Float64Array.prototype,"%Function%":Function,"%FunctionPrototype%":Function.prototype,"%Generator%":void 0,"%GeneratorFunction%":void 0,"%GeneratorPrototype%":void 0,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int8ArrayPrototype%":"undefined"==typeof Int8Array?void 0:Int8Array.prototype,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int16ArrayPrototype%":"undefined"==typeof Int16Array?void 0:Int8Array.prototype,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%Int32ArrayPrototype%":"undefined"==typeof Int32Array?void 0:Int32Array.prototype,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":c?s(s([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%JSONParse%":"object"==typeof JSON?JSON.parse:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&c?s((new Map)[Symbol.iterator]()):void 0,"%MapPrototype%":"undefined"==typeof Map?void 0:Map.prototype,"%Math%":Math,"%Number%":Number,"%NumberPrototype%":Number.prototype,"%Object%":Object,"%ObjectPrototype%":Object.prototype,"%ObjProto_toString%":Object.prototype.toString,"%ObjProto_valueOf%":Object.prototype.valueOf,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%PromisePrototype%":"undefined"==typeof Promise?void 0:Promise.prototype,"%PromiseProto_then%":"undefined"==typeof Promise?void 0:Promise.prototype.then,"%Promise_all%":"undefined"==typeof Promise?void 0:Promise.all,"%Promise_reject%":"undefined"==typeof Promise?void 0:Promise.reject,"%Promise_resolve%":"undefined"==typeof Promise?void 0:Promise.resolve,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%RangeErrorPrototype%":RangeError.prototype,"%ReferenceError%":ReferenceError,"%ReferenceErrorPrototype%":ReferenceError.prototype,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%RegExpPrototype%":RegExp.prototype,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&c?s((new Set)[Symbol.iterator]()):void 0,"%SetPrototype%":"undefined"==typeof Set?void 0:Set.prototype,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%SharedArrayBufferPrototype%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer.prototype,"%String%":String,"%StringIteratorPrototype%":c?s(""[Symbol.iterator]()):void 0,"%StringPrototype%":String.prototype,"%Symbol%":c?Symbol:void 0,"%SymbolPrototype%":c?Symbol.prototype:void 0,"%SyntaxError%":SyntaxError,"%SyntaxErrorPrototype%":SyntaxError.prototype,"%ThrowTypeError%":a,"%TypedArray%":l,"%TypedArrayPrototype%":l?l.prototype:void 0,"%TypeError%":r,"%TypeErrorPrototype%":r.prototype,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ArrayPrototype%":"undefined"==typeof Uint8Array?void 0:Uint8Array.prototype,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint8ClampedArrayPrototype%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray.prototype,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint16ArrayPrototype%":"undefined"==typeof Uint16Array?void 0:Uint16Array.prototype,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%Uint32ArrayPrototype%":"undefined"==typeof Uint32Array?void 0:Uint32Array.prototype,"%URIError%":URIError,"%URIErrorPrototype%":URIError.prototype,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakMapPrototype%":"undefined"==typeof WeakMap?void 0:WeakMap.prototype,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet,"%WeakSetPrototype%":"undefined"==typeof WeakSet?void 0:WeakSet.prototype},f=n(120).call(Function.call,String.prototype.replace),p=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,b=/\\(\\)?/g,h=function(e){var t=[];return f(e,p,(function(e,n,r,o){t[t.length]=r?f(o,b,"$1"):n||e})),t},v=function(e,t){if(!(e in d))throw new SyntaxError("intrinsic "+e+" does not exist!");if(void 0===d[e]&&!t)throw new r("intrinsic "+e+" exists, but is not available. Please file an issue!");return d[e]};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new TypeError("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new TypeError('"allowMissing" argument must be a boolean');for(var n=h(e),i=v("%"+(n.length>0?n[0]:"")+"%",t),a=1;a<n.length;a+=1)if(null!=i)if(o&&a+1>=n.length){var c=o(i,n[a]);if(!t&&!(n[a]in i))throw new r("base intrinsic for "+e+" exists, but the property is not available.");i=c&&"get"in c&&!("originalValue"in c.get)?c.get:i[n[a]]}else i=i[n[a]];return i}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(13),o="undefined"==typeof window?r.useEffect:r.useLayoutEffect},,function(e,t,n){"use strict";function r(e,t){return function(e){return"function"==typeof e}(e)?e(t):e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(13);function o(e){return Object(r.useState)(e)[0]}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(13);function o(e,t){void 0===t&&(t=null),e&&("function"==typeof e?e(t):e.current=t)}function i(e,t){return Object(r.useMemo)((function(){return null==e&&null==t?null:function(n){o(e,n),o(t,n)}}),[e,t])}},function(e,t){!function(){e.exports=this.wp.isShallowEqual}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(13),o=n(62),i=n(68);function a(e){void 0===e&&(e={});var t=Object(o.a)(e).baseId,n=Object(r.useContext)(i.a),a=Object(r.useRef)(0),c=Object(r.useState)((function(){return t||n()}));return{baseId:c[0],unstable_setBaseId:c[1],unstable_idCountRef:a}}a.__keys=["baseId","unstable_setBaseId","unstable_idCountRef"]},function(e,t,n){var r;!function(o){var i=/^\s+/,a=/\s+$/,c=0,s=o.round,u=o.min,l=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,c=null,s=null,d=!1,f=!1;"string"==typeof e&&(e=function(e){e=e.replace(i,"").replace(a,"").toLowerCase();var t,n=!1;if(D[e])e=D[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:N(t[1]),g:N(t[2]),b:N(t[3]),a:z(t[4]),format:n?"name":"hex8"};if(t=K.hex6.exec(e))return{r:N(t[1]),g:N(t[2]),b:N(t[3]),format:n?"name":"hex"};if(t=K.hex4.exec(e))return{r:N(t[1]+""+t[1]),g:N(t[2]+""+t[2]),b:N(t[3]+""+t[3]),a:z(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=K.hex3.exec(e))return{r:N(t[1]+""+t[1]),g:N(t[2]+""+t[2]),b:N(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==typeof e&&(W(e.r)&&W(e.g)&&W(e.b)?(p=e.r,b=e.g,h=e.b,t={r:255*I(p,255),g:255*I(b,255),b:255*I(h,255)},d=!0,f="%"===String(e.r).substr(-1)?"prgb":"rgb"):W(e.h)&&W(e.s)&&W(e.v)?(r=L(e.s),c=L(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),i=e-r,a=n*(1-t),c=n*(1-i*t),s=n*(1-(1-i)*t),u=r%6;return{r:255*[n,c,a,a,s,n][u],g:255*[s,n,n,c,a,a][u],b:255*[a,a,s,n,n,c][u]}}(e.h,r,c),d=!0,f="hsv"):W(e.h)&&W(e.s)&&W(e.l)&&(r=L(e.s),s=L(e.l),t=function(e,t,n){var r,o,i;function a(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=i=n;else{var c=n<.5?n*(1+t):n+t-n*t,s=2*n-c;r=a(s,c,e+1/3),o=a(s,c,e),i=a(s,c,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,r,s),d=!0,f="hsl"),e.hasOwnProperty("a")&&(n=e.a));var p,b,h;return n=T(n),{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:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=s(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=s(this._r)),this._g<1&&(this._g=s(this._g)),this._b<1&&(this._b=s(this._b)),this._ok=n.ok,this._tc_id=c++}function p(e,t,n){e=I(e,255),t=I(t,255),n=I(n,255);var r,o,i=l(e,t,n),a=u(e,t,n),c=(i+a)/2;if(i==a)r=o=0;else{var s=i-a;switch(o=c>.5?s/(2-i-a):s/(i+a),i){case e:r=(t-n)/s+(t<n?6:0);break;case t:r=(n-e)/s+2;break;case n:r=(e-t)/s+4}r/=6}return{h:r,s:o,l:c}}function b(e,t,n){e=I(e,255),t=I(t,255),n=I(n,255);var r,o,i=l(e,t,n),a=u(e,t,n),c=i,s=i-a;if(o=0===i?0:s/i,i==a)r=0;else{switch(i){case e:r=(t-n)/s+(t<n?6:0);break;case t:r=(n-e)/s+2;break;case n:r=(e-t)/s+4}r/=6}return{h:r,s:o,v:c}}function h(e,t,n,r){var o=[A(s(e).toString(16)),A(s(t).toString(16)),A(s(n).toString(16))];return r&&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[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function v(e,t,n,r){return[A(F(r)),A(s(e).toString(16)),A(s(t).toString(16)),A(s(n).toString(16))].join("")}function m(e,t){t=0===t?0:t||10;var n=f(e).toHsl();return n.s-=t/100,n.s=R(n.s),f(n)}function y(e,t){t=0===t?0:t||10;var n=f(e).toHsl();return n.s+=t/100,n.s=R(n.s),f(n)}function g(e){return f(e).desaturate(100)}function O(e,t){t=0===t?0:t||10;var n=f(e).toHsl();return n.l+=t/100,n.l=R(n.l),f(n)}function j(e,t){t=0===t?0:t||10;var n=f(e).toRgb();return n.r=l(0,u(255,n.r-s(-t/100*255))),n.g=l(0,u(255,n.g-s(-t/100*255))),n.b=l(0,u(255,n.b-s(-t/100*255))),f(n)}function w(e,t){t=0===t?0:t||10;var n=f(e).toHsl();return n.l-=t/100,n.l=R(n.l),f(n)}function k(e,t){var n=f(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,f(n)}function _(e){var t=f(e).toHsl();return t.h=(t.h+180)%360,f(t)}function S(e){var t=f(e).toHsl(),n=t.h;return[f(e),f({h:(n+120)%360,s:t.s,l:t.l}),f({h:(n+240)%360,s:t.s,l:t.l})]}function E(e){var t=f(e).toHsl(),n=t.h;return[f(e),f({h:(n+90)%360,s:t.s,l:t.l}),f({h:(n+180)%360,s:t.s,l:t.l}),f({h:(n+270)%360,s:t.s,l:t.l})]}function x(e){var t=f(e).toHsl(),n=t.h;return[f(e),f({h:(n+72)%360,s:t.s,l:t.l}),f({h:(n+216)%360,s:t.s,l:t.l})]}function C(e,t,n){t=t||6,n=n||30;var r=f(e).toHsl(),o=360/n,i=[f(e)];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(f(r));return i}function P(e,t){t=t||6;for(var n=f(e).toHsv(),r=n.h,o=n.s,i=n.v,a=[],c=1/t;t--;)a.push(f({h:r,s:o,v:i})),i=(i+c)%1;return a}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=T(e),this._roundA=s(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=s(360*e.h),n=s(100*e.s),r=s(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=s(360*e.h),n=s(100*e.s),r=s(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=[A(s(e).toString(16)),A(s(t).toString(16)),A(s(n).toString(16)),A(F(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:s(this._r),g:s(this._g),b:s(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+s(this._r)+", "+s(this._g)+", "+s(this._b)+")":"rgba("+s(this._r)+", "+s(this._g)+", "+s(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:s(100*I(this._r,255))+"%",g:s(100*I(this._g,255))+"%",b:s(100*I(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+s(100*I(this._r,255))+"%, "+s(100*I(this._g,255))+"%, "+s(100*I(this._b,255))+"%)":"rgba("+s(100*I(this._r,255))+"%, "+s(100*I(this._g,255))+"%, "+s(100*I(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(M[h(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+v(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=f(e);n="#"+v(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(O,arguments)},brighten:function(){return this._applyModification(j,arguments)},darken:function(){return this._applyModification(w,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(k,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(C,arguments)},complement:function(){return this._applyCombination(_,arguments)},monochromatic:function(){return this._applyCombination(P,arguments)},splitcomplement:function(){return this._applyCombination(x,arguments)},triad:function(){return this._applyCombination(S,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]:L(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,a,c=null,s=0;o=(n=n||{}).includeFallbackColors,i=n.level,a=n.size;for(var u=0;u<t.length;u++)(r=f.readability(e,t[u]))>s&&(s=r,c=f(t[u]));return f.isReadable(e,c,{level:i,size:a})||!o?c:(n.includeFallbackColors=!1,f.mostReadable(e,["#fff","#000"],n))};var D=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"},M=f.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(D);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=u(t,l(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 u(1,l(0,e))}function N(e){return parseInt(e,16)}function A(e){return 1==e.length?"0"+e:""+e}function L(e){return e<=1&&(e=100*e+"%"),e}function F(e){return o.round(255*parseFloat(e)).toString(16)}function z(e){return N(e)/255}var B,H,V,K=(H="[\\s|\\(]+("+(B="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+B+")[,|\\s]+("+B+")\\s*\\)?",V="[\\s|\\(]+("+B+")[,|\\s]+("+B+")[,|\\s]+("+B+")[,|\\s]+("+B+")\\s*\\)?",{CSS_UNIT:new RegExp(B),rgb:new RegExp("rgb"+H),rgba:new RegExp("rgba"+V),hsl:new RegExp("hsl"+H),hsla:new RegExp("hsla"+V),hsv:new RegExp("hsv"+H),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 W(e){return!!K.CSS_UNIT.exec(e)}e.exports?e.exports=f:void 0===(r=function(){return f}.call(t,n,t,e))||(e.exports=r)}(Math)},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(15),o=n(51),i=n(50),a=n(56),c=Object(i.a)({name:"Box",keys:["unstable_system"],propsAreEqual:function(e,t){var n=e.unstable_system,o=Object(r.a)(e,["unstable_system"]),i=t.unstable_system,c=Object(r.a)(t,["unstable_system"]);return!(n!==i&&!Object(a.a)(n,i))&&Object(a.a)(o,c)}});Object(o.a)({as:"div",useHook:c})},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(13);var o=Object(r.createContext)((function(e){return void 0===e&&(e="id"),(e?e+"-":"")+Math.random().toString(32).substr(2,6)}))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(57);function o(e){var t=Object(r.a)(e);if(!t)return!1;if(e.contains(t))return!0;var n=t.getAttribute("aria-activedescendant");return!!n&&(n===e.id||!!e.querySelector("#"+n))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=["button","color","file","image","reset","submit"];function o(e){if("BUTTON"===e.tagName)return!0;if("INPUT"===e.tagName){var t=e;return-1!==r.indexOf(t.type)}return!1}},function(e,t,n){"use strict";function r(e,t){return"matches"in e?e.matches(t):"msMatchesSelector"in e?e.msMatchesSelector(t):e.webkitMatchesSelector(t)}function o(e,t){if("closest"in e)return e.closest(t);do{if(r(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return s}));var i=n(57),a="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])";function c(e){return r(e,a)&&function(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0}(e)}function s(e){for(;e&&!c(e);)e=o(e,a);return e}function u(e){return Object(i.a)(e)===e}function l(e,t){var n=void 0===t?{}:t,r=n.isActive,o=void 0===r?u:r,i=n.preventScroll;return o(e)?-1:(e.focus({preventScroll:i}),o(e)?-1:requestAnimationFrame((function(){e.focus({preventScroll:i})})))}},function(e,t,n){"use strict";function r(e){return t=e.currentTarget,n=e.target,!(t===n||t.contains(n));var t,n}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(15),o=n(51),i=n(50),a=n(67),c=n(13),s=n(63),u=n(71),l=(n(81),n(48)),d=n(59),f=n(70),p=n(73),b=n(57),h=n(72);function v(e){return"undefined"!=typeof window&&-1!==window.navigator.userAgent.indexOf(e)}var m=v("Mac")&&!v("Chrome")&&(v("Safari")||v("Firefox"));function y(e){Object(f.a)(e)||e.focus()}var g=Object(i.a)({name:"Tabbable",compose:a.a,keys:["disabled","focusable"],useOptions:function(e,t){var n=t.disabled;return Object(r.b)({disabled:n},e)},useProps:function(e,t){var n=t.ref,o=t.tabIndex,i=t.onClick,a=t.onMouseDown,f=t.style,v=Object(r.a)(t,["ref","tabIndex","onClick","onMouseDown","style"]),g=Object(c.useRef)(null),O=Object(l.a)(i),j=Object(l.a)(a),w=e.disabled&&!e.focusable,k=Object(c.useState)(!0),_=k[0],S=k[1],E=_?o:o||0,x=e.disabled?Object(r.b)({pointerEvents:"none"},f):f,C=function(){if(m){var e=Object(c.useState)(null),t=e[0],n=e[1];return Object(c.useEffect)((function(){t&&(y(t),n(null))}),[t]),Object(c.useCallback)((function(e){var t=e.currentTarget;if(!Object(p.a)(e)&&Object(u.a)(t)){var r=Object(b.a)(t);if(r){var o="BODY"===r.tagName,i=Object(h.b)(t.parentElement);if(r===i||o&&!i)n(t);else if(i){i.addEventListener("focusin",(function(){return n(t)}),{once:!0})}else{r.addEventListener("blur",(function(){return y(t)}),{once:!0})}}}}),[])}}();Object(d.a)((function(){var e,t=g.current;t&&("BUTTON"!==(e=t).tagName&&"INPUT"!==e.tagName&&"SELECT"!==e.tagName&&"TEXTAREA"!==e.tagName&&"A"!==e.tagName&&"AUDIO"!==e.tagName&&"VIDEO"!==e.tagName&&S(!1))}),[]);var P=Object(c.useCallback)((function(t){var n;if(e.disabled)return t.stopPropagation(),void t.preventDefault();null===(n=O.current)||void 0===n||n.call(O,t)}),[e.disabled]),D=Object(c.useCallback)((function(t){var n;if(e.disabled)return t.stopPropagation(),void t.preventDefault();null===(n=j.current)||void 0===n||n.call(j,t),t.defaultPrevented||null==C||C(t)}),[e.disabled,C]);return Object(r.b)({ref:Object(s.a)(g,n),style:x,tabIndex:w?void 0:E,disabled:!(!w||!_)||void 0,"aria-disabled":!!e.disabled||void 0,onClick:P,onMouseDown:D},v)}});Object(o.a)({as:"div",useHook:g})},function(e,t){!function(){e.exports=this.wp.date}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(13),o=Object(r.createContext)({})},,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";n.d(t,"a",(function(){return a}));var r=n(13),o=n(76),i=n(55);var a=function(e,t,n){void 0===n&&(n=t.children);var a=Object(r.useContext)(o.a);if(a.useCreateElement)return a.useCreateElement(e,t,n);if("string"==typeof e&&function(e){return"function"==typeof e}(n)){t.children;return n(Object(i.b)(t,["children"]))}return Object(r.createElement)(e,t,n)}},,function(e,t,n){"use strict";n(108),n(13)},function(e,t,n){"use strict";function r(e){var t=void 0===e?{}:e,n=t.keyMap,r=t.onKey,o=t.stopPropagation,i=t.onKeyDown,a=t.shouldKeyDown,c=void 0===a?function(){return!0}:a,s=t.preventDefault,u=void 0===s||s;return function(e){if(n){var t,a="function"==typeof n?n(e):n,s="function"==typeof u?u(e):u,l="function"==typeof o?o(e):o;if(e.key in a){var d=a[e.key];if("function"==typeof d&&c(e))return s&&e.preventDefault(),l&&e.stopPropagation(),r&&r(e),void d(e)}if(i&&"current"in i)null===(t=i.current)||void 0===t||t.call(i,e);else null==i||i(e)}}}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";var r=n(21),o=n(22),i=n(23),a=n(24),c=n(19),s=n(0),u=n(2),l=n(114),d=n(172);function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(c.a)(e);if(t){var o=Object(c.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(a.a)(this,n)}}var p=function(e){Object(i.a)(n,e);var t=f(n);function n(){var e;return Object(r.a)(this,n),(e=t.apply(this,arguments)).delayedSetIsOver=Object(u.debounce)((function(t){return e.setState({isOver:t})}),700),e.cancelIsMouseDown=e.createSetIsMouseDown(!1),e.isInMouseDown=!1,e.state={isOver:!1},e}return Object(o.a)(n,[{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===s.Children.count(n)){var r=s.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(u.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,o=e.shortcut;if(1!==s.Children.count(t))return t;var i=s.Children.only(t),a=this.state.isOver;return Object(s.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(s.concatChildren)(i.props.children,a&&Object(s.createElement)(l.a,{focusOnMount:!1,position:n,className:"components-tooltip","aria-hidden":"true",animate:!1,noArrow:!0},r,Object(s.createElement)(d.a,{className:"components-tooltip__shortcut",shortcut:o})))})}}]),n}(s.Component);t.a=p},function(e,t,n){"use strict";var r=n(5),o=n(8),i=n(14),a=n(0),c=n(7),s=n(151);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.a=function(e){var t=e.icon,n=void 0===t?null:t,r=e.size,u=Object(i.a)(e,["icon","size"]);if("string"==typeof n)return Object(a.createElement)(s.a,Object(o.a)({icon:n},u));if(n&&s.a===n.type)return Object(a.cloneElement)(n,l({},u));var d=r||24;if("function"==typeof n)return n.prototype instanceof a.Component?Object(a.createElement)(n,l({size:d},u)):n(l({size:d},u));if(n&&("svg"===n.type||n.type===c.SVG)){var f=l(l({width:d,height:d},n.props),u);return Object(a.createElement)(c.SVG,f)}return Object(a.isValidElement)(n)?Object(a.cloneElement)(n,l({size:d},u)):n}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(15),o=n(51),i=n(50),a=n(13),c=n(71),s=(n(81),n(48)),u=n(54),l=n(74);var d=Object(i.a)({name:"Clickable",compose:l.a,keys:["unstable_clickOnEnter","unstable_clickOnSpace"],useOptions:function(e){var t=e.unstable_clickOnEnter,n=void 0===t||t,o=e.unstable_clickOnSpace,i=void 0===o||o,a=Object(r.a)(e,["unstable_clickOnEnter","unstable_clickOnSpace"]);return Object(r.b)({unstable_clickOnEnter:n,unstable_clickOnSpace:i},a)},useProps:function(e,t){var n=t.onKeyDown,o=t.onKeyUp,i=Object(r.a)(t,["onKeyDown","onKeyUp"]),l=Object(a.useState)(!1),d=l[0],f=l[1],p=Object(s.a)(n),b=Object(s.a)(o),h=Object(a.useCallback)((function(t){var n;if(null===(n=p.current)||void 0===n||n.call(p,t),!t.defaultPrevented&&!e.disabled&&!t.metaKey&&Object(u.a)(t)){var r=e.unstable_clickOnEnter&&"Enter"===t.key,o=e.unstable_clickOnSpace&&" "===t.key;if(r||o){if(function(e){var t=e.currentTarget;return!!e.isTrusted&&(Object(c.a)(t)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||"A"===t.tagName||"SELECT"===t.tagName)}(t))return;t.preventDefault(),r?t.currentTarget.click():o&&f(!0)}}}),[e.disabled,e.unstable_clickOnEnter,e.unstable_clickOnSpace]),v=Object(a.useCallback)((function(t){var n;if(null===(n=b.current)||void 0===n||n.call(b,t),!t.defaultPrevented&&!e.disabled&&!t.metaKey){var r=e.unstable_clickOnSpace&&" "===t.key;d&&r&&(f(!1),t.currentTarget.click())}}),[e.disabled,e.unstable_clickOnSpace,d]);return Object(r.b)({"data-active":d||void 0,onKeyDown:h,onKeyUp:v},i)}});Object(o.a)({as:"button",memo:!0,useHook:d})},function(e,t,n){e.exports=n(374)},function(e,t){!function(){e.exports=this.wp.warning}()},function(e,t,n){"use strict";var r=n(0),o=Object(r.createContext)();t.a=o},,function(e,t,n){"use strict";var r=n(335);e.exports=function(e){return"symbol"==typeof e?"Symbol":r(e)}},function(e,t,n){"use strict";var r=n(120);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},function(e,t,n){"use strict";var r=n(103),o=n(239),i=n(240),a=n(371),c=i();r(c,{getPolyfill:i,implementation:o,shim:a}),e.exports=c},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(15),o=n(51),i=n(50),a=n(13),c=n(68),s=n(65),u=Object(i.a)({useState:s.a,keys:["id"],useOptions:function(e,t){var n=Object(a.useContext)(c.a),o=Object(a.useState)((function(){return e.unstable_idCountRef?(e.unstable_idCountRef.current+=1,"-"+e.unstable_idCountRef.current):e.baseId?"-"+n(""):""}))[0],i=Object(a.useMemo)((function(){return e.baseId||n()}),[e.baseId,n]),s=t.id||e.id||""+i+o;return Object(r.b)(Object(r.b)({},e),{},{id:s})},useProps:function(e,t){return Object(r.b)({id:e.id},t)}});Object(o.a)({as:"div",useHook:u})},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(126);function o(e,t,n){return e.dispatchEvent(Object(r.a)(e,t,n))}},function(e,t,n){"use strict";function r(e){try{var t=e instanceof HTMLInputElement&&null!==e.selectionStart,n="TEXTAREA"===e.tagName,r="true"===e.contentEditable;return t||n||r||!1}catch(e){return!1}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){e.value=t}n.d(t,"a",(function(){return r}))},,,function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function c(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!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:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var s,u=[],l=!1,d=-1;function f(){l&&s&&(l=!1,s.length?u=s.concat(u):d=-1,u.length&&p())}function p(){if(!l){var e=c(f);l=!0;for(var t=u.length;t;){for(s=u,u=[];++d<t;)s&&s[d].run();d=-1,t=u.length}s=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function b(e,t){this.fun=e,this.array=t}function h(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new b(e,t)),1!==u.length||l||c(p)},b.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=h,o.addListener=h,o.once=h,o.off=h,o.removeListener=h,o.removeAllListeners=h,o.emit=h,o.prependListener=h,o.prependOnceListener=h,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){"use strict";var r=n(187),o="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),i=Object.prototype.toString,a=Array.prototype.concat,c=Object.defineProperty,s=c&&function(){var e={};try{for(var t in c(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(e){return!1}}(),u=function(e,t,n,r){var o;(!(t in e)||"function"==typeof(o=r)&&"[object Function]"===i.call(o)&&r())&&(s?c(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0}):e[t]=n)},l=function(e,t){var n=arguments.length>2?arguments[2]:{},i=r(t);o&&(i=a.call(i,Object.getOwnPropertySymbols(t)));for(var c=0;c<i.length;c+=1)u(e,i[c],t[i[c]],n[i[c]])};l.supportsDescriptors=!!s,e.exports=l},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(49);function o(e,t,n){if(void 0===n&&(n={}),"function"==typeof KeyboardEvent)return new KeyboardEvent(t,n);var o=Object(r.a)(e).createEvent("KeyboardEvent");return o.initKeyboardEvent(t,n.bubbles,n.cancelable,function(e){return Object(r.a)(e).defaultView||window}(e),n.key,n.location,n.ctrlKey,n.altKey,n.shiftKey,n.metaKey),o}function i(e,t,n){return e.dispatchEvent(o(e,t,n))}},,,,function(e,t,n){"use strict"},,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.",i="Move forward to switch to the next month.",a="page up and page down keys",c="Home and end keys",s="Escape key",u="Select the date in focus.",l="Move backward (left) and forward (right) by one day.",d="Move backward (up) and forward (down) by one week.",f="Return to the date input field.",p="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.",b=function(e){var t=e.date;return"Choose "+String(t)+" as your check-in date. It’s available."},h=function(e){var t=e.date;return"Choose "+String(t)+" as your check-out date. It’s available."},v=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:i,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:a,homeEnd:c,escape:s,questionMark:"Question mark",selectFocusedDate:u,moveFocusByOneDay:l,moveFocusByOneWeek:d,moveFocusByOneMonth:"Switch months.",moveFocustoStartAndEndOfWeek:"Go to the first or last day of a week.",returnFocusToInput:f,keyboardNavigationInstructions:p,chooseAvailableStartDate:b,chooseAvailableEndDate:h,dateIsUnavailable:m,dateIsSelected:y};t.DateRangePickerPhrases={calendarLabel:"Calendar",closeDatePicker:"Close",clearDates:"Clear Dates",focusStartDate:r,jumpToPrevMonth:o,jumpToNextMonth:i,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:a,homeEnd:c,escape:s,questionMark:"Question mark",selectFocusedDate:u,moveFocusByOneDay:l,moveFocusByOneWeek:d,moveFocusByOneMonth:"Switch months.",moveFocustoStartAndEndOfWeek:"Go to the first or last day of a week.",returnFocusToInput:f,keyboardNavigationInstructions:p,chooseAvailableStartDate:b,chooseAvailableEndDate:h,dateIsUnavailable:m,dateIsSelected:y},t.DateRangePickerInputPhrases={focusStartDate:r,clearDates:"Clear Dates",keyboardNavigationInstructions:p},t.SingleDatePickerPhrases={calendarLabel:"Calendar",closeDatePicker:"Close",clearDate:"Clear Date",jumpToPrevMonth:o,jumpToNextMonth:i,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:a,homeEnd:c,escape:s,questionMark:"Question mark",selectFocusedDate:u,moveFocusByOneDay:l,moveFocusByOneWeek:d,moveFocusByOneMonth:"Switch months.",moveFocustoStartAndEndOfWeek:"Go to the first or last day of a week.",returnFocusToInput:f,keyboardNavigationInstructions:p,chooseAvailableDate:v,dateIsUnavailable:m,dateIsSelected:y},t.SingleDatePickerInputPhrases={clearDate:"Clear Date",keyboardNavigationInstructions:p},t.DayPickerPhrases={calendarLabel:"Calendar",jumpToPrevMonth:o,jumpToNextMonth:i,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:a,homeEnd:c,escape:s,questionMark:"Question mark",selectFocusedDate:u,moveFocusByOneDay:l,moveFocusByOneWeek:d,moveFocusByOneMonth:"Switch months.",moveFocustoStartAndEndOfWeek:"Go to the first or last day of a week.",returnFocusToInput:f,chooseAvailableStartDate:b,chooseAvailableEndDate:h,chooseAvailableDate:v,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:a,homeEnd:c,escape:s,questionMark:"Question mark",selectFocusedDate:u,moveFocusByOneDay:l,moveFocusByOneWeek:d,moveFocusByOneMonth:"Switch months.",moveFocustoStartAndEndOfWeek:"Go to the first or last day of a week.",returnFocusToInput:f},t.DayPickerNavigationPhrases={jumpToPrevMonth:o,jumpToNextMonth:i},t.CalendarDayPhrases={chooseAvailableDate:v,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=i(n(95)),o=i(n(28));function i(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;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.withStyles=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.stylesPropName,c=void 0===n?"styles":n,l=t.themePropName,f=void 0===l?"theme":l,m=t.cssPropName,w=void 0===m?"css":m,k=t.flushBefore,_=void 0!==k&&k,S=t.pureComponent,E=void 0!==S&&S,x=void 0,C=void 0,P=void 0,D=void 0,M=g(E);function T(e){return e===u.DIRECTIONS.LTR?d.default.resolveLTR:d.default.resolveRTL}function I(e){return e===u.DIRECTIONS.LTR?P:D}function R(t,n){var r=I(t),o=t===u.DIRECTIONS.LTR?x:C,i=d.default.get();return o&&r===i||(t===u.DIRECTIONS.RTL?(C=e?d.default.createRTL(e):y,D=i,o=C):(x=e?d.default.createLTR(e):y,P=i,o=x)),o}function N(e,t){return{resolveMethod:T(e),styleDef:R(e)}}return function(e){var t=e.displayName||e.name||"Component",n=function(t){function n(e,t){p(this,n);var r=b(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t)),o=r.context[u.CHANNEL]?r.context[u.CHANNEL].getState():j;return r.state=N(o),r}return h(n,t),o(n,[{key:"componentDidMount",value:function(){var e=this;this.context[u.CHANNEL]&&(this.channelUnsubscribe=this.context[u.CHANNEL].subscribe((function(t){e.setState(N(t))})))}},{key:"componentWillUnmount",value:function(){this.channelUnsubscribe&&this.channelUnsubscribe()}},{key:"render",value:function(){var t;_&&d.default.flush();var n=this.state,o=n.resolveMethod,i=n.styleDef;return a.default.createElement(e,r({},this.props,(v(t={},f,d.default.get()),v(t,c,i()),v(t,w,o),t)))}}]),n}(M);return n.WrappedComponent=e,n.displayName="withStyles("+String(t)+")",n.contextTypes=O,e.propTypes&&(n.propTypes=(0,i.default)({},e.propTypes),delete n.propTypes[c],delete n.propTypes[f],delete n.propTypes[w]),e.defaultProps&&(n.defaultProps=(0,i.default)({},e.defaultProps)),(0,s.default)(n,e)}};var i=f(n(95)),a=f(n(13)),c=f(n(28)),s=f(n(388)),u=n(391),l=f(n(392)),d=f(n(237));function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(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}function h(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)}function v(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:c.default.object.isRequired,theme:c.default.object.isRequired,css:c.default.func.isRequired};var m={},y=function(){return m};function g(e){if(e){if(!a.default.PureComponent)throw new ReferenceError("withStyles() pureComponent option requires React 15.3.0 or later");return a.default.PureComponent}return a.default.Component}var O=v({},u.CHANNEL,l.default),j=u.DIRECTIONS.LTR},function(e,t,n){"use strict";var r=n(8),o=n(21),i=n(22),a=n(16),c=n(23),s=n(24),u=n(19),l=n(0),d=n(2),f=n(10);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(s.a)(this,n)}}var b=["button","submit"];t.a=Object(f.createHigherOrderComponent)((function(e){return function(t){Object(c.a)(s,t);var n=p(s);function s(){var e;return Object(o.a)(this,s),(e=n.apply(this,arguments)).bindNode=e.bindNode.bind(Object(a.a)(e)),e.cancelBlurCheck=e.cancelBlurCheck.bind(Object(a.a)(e)),e.queueBlurCheck=e.queueBlurCheck.bind(Object(a.a)(e)),e.normalizeButtonFocus=e.normalizeButtonFocus.bind(Object(a.a)(e)),e}return Object(i.a)(s,[{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)(b,e.type)}return!1}(n)&&(this.preventBlurCheck=!0)}},{key:"render",value:function(){return Object(l.createElement)("div",{onFocus:this.cancelBlurCheck,onMouseDown:this.normalizeButtonFocus,onMouseUp:this.normalizeButtonFocus,onTouchStart:this.normalizeButtonFocus,onTouchEnd:this.normalizeButtonFocus,onBlur:this.queueBlurCheck},Object(l.createElement)(e,Object(r.a)({ref:this.bindNode},this.props)))}}]),s}(l.Component)}),"withFocusOutside")},function(e,t,n){"use strict";var r=n(8),o=n(12),i=n(14),a=n(0),c=n(9),s=n.n(c),u=n(29),l=n(18),d=n(36),f=n.n(d),p=n(10),b=n(160),h=n(5);function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){Object(h.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e,t,n,r,o,i,a){var c=t.width,s="rtl"===document.documentElement.dir;"left"===n&&s?n="right":"right"===n&&s&&(n="left"),"left"===r&&s?r="right":"right"===r&&s&&(r="left");var u=Math.round(e.left+e.width/2),l={popoverLeft:u,contentWidth:(u-c/2>0?c/2:u)+(u+c/2>window.innerWidth?window.innerWidth-u:c/2)},d=e.left;"right"===r?d=e.right:"middle"!==i&&(d=u);var f=e.right;"left"===r?f=e.left:"middle"!==i&&(f=u);var p,b={popoverLeft:d,contentWidth:d-c>0?c:d},h={popoverLeft:f,contentWidth:f+c>window.innerWidth?window.innerWidth-f:c},v=n,m=null;if(!o)if("center"===n&&l.contentWidth===c)v="center";else if("left"===n&&b.contentWidth===c)v="left";else if("right"===n&&h.contentWidth===c)v="right";else{var y="left"===(v=b.contentWidth>h.contentWidth?"left":"right")?b.contentWidth:h.contentWidth;m=y!==c?y:null}if(p="center"===v?l.popoverLeft:"left"===v?b.popoverLeft:h.popoverLeft,a){var g=a.getBoundingClientRect();p=Math.min(p,g.right-c)}return{xAxis:v,popoverLeft:p,contentWidth:m}}function g(e,t,n,r,o,i,a){var c=t.height;if(o){var s=(Object(u.getScrollContainer)(i)||document.body).getBoundingClientRect().top+c-a;if(e.top<=s)return{yAxis:n,popoverTop:Math.min(e.bottom,s)}}var l=e.top+e.height/2;"bottom"===r?l=e.bottom:"top"===r&&(l=e.top);var d={popoverTop:l,contentHeight:(l-c/2>0?c/2:l)+(l+c/2>window.innerHeight?window.innerHeight-l:c/2)},f={popoverTop:e.top,contentHeight:e.top-10-c>0?c:e.top-10},p={popoverTop:e.bottom,contentHeight:e.bottom+10+c>window.innerHeight?window.innerHeight-10-e.bottom:c},b=n,h=null;if(!o)if("middle"===n&&d.contentHeight===c)b="middle";else if("top"===n&&f.contentHeight===c)b="top";else if("bottom"===n&&p.contentHeight===c)b="bottom";else{var v="top"===(b=f.contentHeight>p.contentHeight?"top":"bottom")?f.contentHeight:p.contentHeight;h=v!==c?v:null}return{yAxis:b,popoverTop:"middle"===b?d.popoverTop:"top"===b?f.popoverTop:p.popoverTop,contentHeight:h}}var O=n(135),j=n(134),w=n(21),k=n(22),_=n(23),S=n(24),E=n(19),x=n(113);function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(E.a)(e);if(t){var o=Object(E.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(S.a)(this,n)}}var P=function(e){Object(_.a)(n,e);var t=C(n);function n(){return Object(w.a)(this,n),t.apply(this,arguments)}return Object(k.a)(n,[{key:"handleFocusOutside",value:function(e){this.props.onFocusOutside(e)}},{key:"render",value:function(){return this.props.children}}]),n}(a.Component),D=Object(x.a)(P),M=n(35),T=n(166),I=n(136),R=n(165),N=n(125),A=n(124),L=Object(j.a)(Object(O.a)((function(e){return e.children})));function F(e,t){var n,r=(n=t).ownerDocument.defaultView.getComputedStyle(n),o=r.paddingTop,i=r.paddingBottom,a=r.paddingLeft,c=r.paddingRight,s=o?parseInt(o,10):0,u=i?parseInt(i,10):0,l=a?parseInt(a,10):0,d=c?parseInt(c,10):0;return{x:e.left+l,y:e.top+s,width:e.width-l-d,height:e.height-s-u,left:e.left+l,right:e.right-d,top:e.top+s,bottom:e.bottom-u}}function z(e,t,n){n?e.getAttribute(t)!==n&&e.setAttribute(t,n):e.hasAttribute(t)&&e.removeAttribute(t)}function B(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";e.style[t]!==n&&(e.style[t]=n)}function H(e,t,n){n?e.classList.contains(t)||e.classList.add(t):e.classList.contains(t)&&e.classList.remove(t)}var V=function(e){var t=e.headerTitle,n=e.onClose,c=e.onKeyDown,d=e.children,h=e.className,v=e.noArrow,O=void 0===v||v,j=e.isAlternate,w=e.position,k=void 0===w?"bottom right":w,_=(e.range,e.focusOnMount),S=void 0===_?"firstElement":_,E=e.anchorRef,x=e.shouldAnchorIncludePadding,C=e.anchorRect,P=e.getAnchorRect,V=e.expandOnMobile,K=e.animate,W=void 0===K||K,U=e.onClickOutside,G=e.onFocusOutside,$=e.__unstableSticky,q=e.__unstableSlotName,Y=void 0===q?"Popover":q,Z=e.__unstableObserveElement,X=e.__unstableBoundaryParent,J=Object(i.a)(e,["headerTitle","onClose","onKeyDown","children","className","noArrow","isAlternate","position","range","focusOnMount","anchorRef","shouldAnchorIncludePadding","anchorRect","getAnchorRect","expandOnMobile","animate","onClickOutside","onFocusOutside","__unstableSticky","__unstableSlotName","__unstableObserveElement","__unstableBoundaryParent"]),Q=Object(a.useRef)(null),ee=Object(a.useRef)(null),te=Object(a.useRef)(),ne=Object(p.useViewportMatch)("medium","<"),re=Object(a.useState)(),oe=Object(o.a)(re,2),ie=oe[0],ae=oe[1],ce=Object(R.a)(Y),se=V&&ne,ue=Object(p.useResizeObserver)(),le=Object(o.a)(ue,2),de=le[0],fe=le[1];O=se||O,Object(a.useLayoutEffect)((function(){if(se)return H(te.current,"is-without-arrow",O),H(te.current,"is-alternate",j),z(te.current,"data-x-axis"),z(te.current,"data-y-axis"),B(te.current,"top"),B(te.current,"left"),B(ee.current,"maxHeight"),void B(ee.current,"maxWidth");var e=function(){if(te.current&&ee.current){var e=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4?arguments[4]:void 0;if(t)return t;if(n){if(!e.current)return;return n(e.current)}if(!1!==r){if(!(r&&window.Range&&window.Element&&window.DOMRect))return;if(r instanceof window.Range)return Object(u.getRectangleFromRange)(r);if(r instanceof window.Element){var i=r.getBoundingClientRect();return o?i:F(i,r)}var a=r.top,c=r.bottom,s=a.getBoundingClientRect(),l=c.getBoundingClientRect(),d=new window.DOMRect(s.left,s.top,s.width,l.bottom-s.top);return o?d:F(d,r)}if(e.current){var f=e.current.parentNode,p=f.getBoundingClientRect();return o?p:F(p,f)}}(Q,C,P,E,x);if(e){var t,n,r=te.current,i=r.offsetParent,a=r.ownerDocument,c=0;if(i&&i!==a.body){var s=i.getBoundingClientRect();c=s.top,e=new window.DOMRect(e.left-s.left,e.top-s.top,e.width,e.height)}if(X)t=null===(n=te.current.closest(".popover-slot"))||void 0===n?void 0:n.parentNode;var l=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"top",r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0,c=arguments.length>6?arguments[6]:void 0,s=n.split(" "),u=Object(o.a)(s,3),l=u[0],d=u[1],f=void 0===d?"center":d,p=u[2],b=g(e,t,l,p,r,i,a),h=y(e,t,f,p,r,b.yAxis,c);return m(m({},h),b)}(e,fe.height?fe:ee.current.getBoundingClientRect(),k,$,te.current,c,t),d=l.popoverTop,f=l.popoverLeft,p=l.xAxis,b=l.yAxis,h=l.contentHeight,v=l.contentWidth;"number"==typeof d&&"number"==typeof f&&(B(te.current,"top",d+"px"),B(te.current,"left",f+"px")),H(te.current,"is-without-arrow",O||"center"===p&&"middle"===b),H(te.current,"is-alternate",j),z(te.current,"data-x-axis",p),z(te.current,"data-y-axis",b),B(ee.current,"maxHeight","number"==typeof h?h+"px":""),B(ee.current,"maxWidth","number"==typeof v?v+"px":"");ae(({left:"right",right:"left"}[p]||"center")+" "+({top:"bottom",bottom:"top"}[b]||"middle"))}}};e();var t,n,r=window.setInterval(e,500),i=function(){window.cancelAnimationFrame(t),t=window.requestAnimationFrame(e)};return window.addEventListener("click",i),window.addEventListener("resize",e),window.addEventListener("scroll",e,!0),Z&&(n=new window.MutationObserver(e)).observe(Z,{attributes:!0}),function(){window.clearInterval(r),window.removeEventListener("resize",e),window.removeEventListener("scroll",e,!0),window.removeEventListener("click",i),window.cancelAnimationFrame(t),n&&n.disconnect()}}),[se,C,P,E,x,k,fe,$,Z,X]),function(e,t){Object(a.useEffect)((function(){var n=setTimeout((function(){if(e&&t.current)if("firstElement"!==e)"container"===e&&t.current.focus();else{var n=u.focus.tabbable.find(t.current)[0];n?n.focus():t.current.focus()}}),0);return function(){return clearTimeout(n)}}),[])}(S,ee);var pe=function(e){e.keyCode===l.ESCAPE&&n&&(e.stopPropagation(),n()),c&&c(e)};var be=Object(a.createElement)(D,{onFocusOutside:function(e){if(G)G(e);else if(U){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}}),f()("Popover onClickOutside prop",{alternative:"onFocusOutside"}),U(t)}else n&&n()}},Object(a.createElement)(A.a,{type:W&&ie?"appear":null,options:{origin:ie}},(function(e){var o=e.className;return Object(a.createElement)(I.a,Object(r.a)({className:s()("components-popover",h,o,{"is-expanded":se,"is-without-arrow":O,"is-alternate":j})},J,{onKeyDown:pe,ref:te}),se&&Object(a.createElement)(T.a,null),se&&Object(a.createElement)("div",{className:"components-popover__header"},Object(a.createElement)("span",{className:"components-popover__header-title"},t),Object(a.createElement)(M.a,{className:"components-popover__close",icon:b.a,onClick:n})),Object(a.createElement)("div",{ref:ee,className:"components-popover__content",tabIndex:"-1"},Object(a.createElement)("div",{style:{position:"relative"}},de,d)))})));return S&&(be=Object(a.createElement)(L,null,be)),ce.ref&&(be=Object(a.createElement)(N.a,{name:Y},be)),E||C?be:Object(a.createElement)("span",{ref:Q},be)};V.Slot=function(e){var t=e.name,n=void 0===t?"Popover":t;return Object(a.createElement)(N.b,{bubblesVirtually:!0,name:n,className:"popover-slot"})};t.a=V},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(177)),i=r(n(178)),a=n(13),c=r(a),s=r(n(148)),u=r(n(179)),l={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(l.str(e)||l.num(e))return e===t;if(l.obj(e)&&l.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!l.und(n)||e===t}};function d(){var e=a.useState(!1)[1];return a.useCallback((function(){return e((function(e){return!e}))}),[])}function f(e,t){return l.und(e)||l.nul(e)?t:e}function p(e){return l.und(e)?[]:l.arr(e)?e:[e]}function b(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return l.fun(e)?e.apply(void 0,n):e}function h(e){var t=function(e){return e.to,e.from,e.config,e.onStart,e.onRest,e.onFrame,e.children,e.reset,e.reverse,e.force,e.immediate,e.delay,e.attach,e.destroyed,e.interpolateTo,e.ref,e.lazy,i(e,["to","from","config","onStart","onRest","onFrame","children","reset","reverse","force","immediate","delay","attach","destroyed","interpolateTo","ref","lazy"])}(e);if(l.und(t))return o({to:t},e);var n=Object.keys(e).reduce((function(n,r){var i;return l.und(t[r])?o({},n,((i={})[r]=e[r],i)):n}),{});return o({to:t},n)}var v,m,y=function(){function e(){this.payload=void 0,this.children=[]}var t=e.prototype;return t.getAnimatedValue=function(){return this.getValue()},t.getPayload=function(){return this.payload||this},t.attach=function(){},t.detach=function(){},t.getChildren=function(){return this.children},t.addChild=function(e){0===this.children.length&&this.attach(),this.children.push(e)},t.removeChild=function(e){var t=this.children.indexOf(e);this.children.splice(t,1),0===this.children.length&&this.detach()},e}(),g=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).payload=[],t.attach=function(){return t.payload.forEach((function(e){return e instanceof y&&e.addChild(u(t))}))},t.detach=function(){return t.payload.forEach((function(e){return e instanceof y&&e.removeChild(u(t))}))},t}return s(t,e),t}(y),O=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).payload={},t.attach=function(){return Object.values(t.payload).forEach((function(e){return e instanceof y&&e.addChild(u(t))}))},t.detach=function(){return Object.values(t.payload).forEach((function(e){return e instanceof y&&e.removeChild(u(t))}))},t}s(t,e);var n=t.prototype;return n.getValue=function(e){void 0===e&&(e=!1);var t={};for(var n in this.payload){var r=this.payload[n];(!e||r instanceof y)&&(t[n]=r instanceof y?r[e?"getAnimatedValue":"getValue"]():r)}return t},n.getAnimatedValue=function(){return this.getValue(!0)},t}(y);function j(e,t){v={fn:e,transform:t}}function w(e){m=e}var k,_=function(e){return"undefined"!=typeof window?window.requestAnimationFrame(e):-1},S=function(e){"undefined"!=typeof window&&window.cancelAnimationFrame(e)};function E(e){k=e}var x,C=function(){return Date.now()};function P(e){x=e}var D,M,T=function(e){return e.current};function I(e){D=e}var R=Object.freeze({get applyAnimatedValues(){return v},injectApplyAnimatedValues:j,get colorNames(){return m},injectColorNames:w,get requestFrame(){return _},get cancelFrame(){return S},injectFrame:function(e,t){_=e,S=t},get interpolation(){return k},injectStringInterpolator:E,get now(){return C},injectNow:function(e){C=e},get defaultElement(){return x},injectDefaultElement:P,get animatedApi(){return T},injectAnimatedApi:function(e){T=e},get createAnimatedStyle(){return D},injectCreateAnimatedStyle:I,get manualFrameloop(){return M},injectManualFrameloop:function(e){M=e}}),N=function(e){function t(t,n){var r;return(r=e.call(this)||this).update=void 0,r.payload=t.style?o({},t,{style:D(t.style)}):t,r.update=n,r.attach(),r}return s(t,e),t}(O),A=!1,L=new Set,F=function e(){if(!A)return!1;var t=C(),n=L,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var i;if(r){if(o>=n.length)break;i=n[o++]}else{if((o=n.next()).done)break;i=o.value}for(var a=i,c=!1,s=0;s<a.configs.length;s++){for(var u=a.configs[s],l=void 0,d=void 0,f=0;f<u.animatedValues.length;f++){var p=u.animatedValues[f];if(!p.done){var b=u.fromValues[f],h=u.toValues[f],v=p.lastPosition,m=h instanceof y,g=Array.isArray(u.initialVelocity)?u.initialVelocity[f]:u.initialVelocity;if(m&&(h=h.getValue()),u.immediate)p.setValue(h),p.done=!0;else if("string"!=typeof b&&"string"!=typeof h){if(void 0!==u.duration)v=b+u.easing((t-p.startTime)/u.duration)*(h-b),l=t>=p.startTime+u.duration;else if(u.decay)v=b+g/(1-.998)*(1-Math.exp(-(1-.998)*(t-p.startTime))),(l=Math.abs(p.lastPosition-v)<.1)&&(h=v);else{d=void 0!==p.lastTime?p.lastTime:t,g=void 0!==p.lastVelocity?p.lastVelocity:u.initialVelocity,t>d+64&&(d=t);for(var O=Math.floor(t-d),j=0;j<O;++j){v+=1*(g+=1*((-u.tension*(v-h)+-u.friction*g)/u.mass)/1e3)/1e3}var w=!(!u.clamp||0===u.tension)&&(b<h?v>h:v<h),k=Math.abs(g)<=u.precision,S=0===u.tension||Math.abs(h-v)<=u.precision;l=w||k&&S,p.lastVelocity=g,p.lastTime=t}m&&!u.toValues[f].done&&(l=!1),l?(p.value!==h&&(v=h),p.done=!0):c=!0,p.setValue(v),p.lastPosition=v}else p.setValue(h),p.done=!0}}a.props.onFrame&&(a.values[u.name]=u.interpolation.getValue())}a.props.onFrame&&a.props.onFrame(a.values),c||(L.delete(a),a.stop(!0))}return L.size?M?M():_(e):A=!1,A};function z(e,t,n){if("function"==typeof e)return e;if(Array.isArray(e))return z({range:e,output:t,extrapolate:n});if(k&&"string"==typeof e.output[0])return k(e);var r=e,o=r.output,i=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",c=r.extrapolateRight||r.extrapolate||"extend",s=r.easing||function(e){return e};return function(e){var t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,i);return function(e,t,n,r,o,i,a,c,s){var u=s?s(e):e;if(u<t){if("identity"===a)return u;"clamp"===a&&(u=t)}if(u>n){if("identity"===c)return u;"clamp"===c&&(u=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?u=-u:n===1/0?u-=t:u=(u-t)/(n-t);u=i(u),r===-1/0?u=-u:o===1/0?u+=r:u=u*(o-r)+r;return u}(e,i[t],i[t+1],o[t],o[t+1],s,a,c,r.map)}}var B=function(e){function t(n,r,o,i){var a;return(a=e.call(this)||this).calc=void 0,a.payload=n instanceof g&&!(n instanceof t)?n.getPayload():Array.isArray(n)?n:[n],a.calc=z(r,o,i),a}s(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=z(e,t,n)},n.interpolate=function(e,n,r){return new t(this,e,n,r)},t}(g);var H=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}s(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 B(this,e,t,n)},t}(y),V=function(e){function t(t){var n;return(n=e.call(this)||this).payload=t.map((function(e){return new H(e)})),n}s(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 B(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=h(e),n=t.delay,r=void 0===n?0:n,a=t.to,c=i(t,["delay","to"]);if(l.arr(a)||l.fun(a))this.queue.push(o({},c,{delay:r,to:a}));else if(a){var s={};Object.entries(a).forEach((function(e){var t,n=e[0],i=e[1],a=o({to:(t={},t[n]=i,t),delay:b(r,n)},c),u=s[a.delay]&&s[a.delay].to;s[a.delay]=o({},s[a.delay],a,{to:o({},u,a.to)})})),this.queue=Object.values(s)}return this.queue=this.queue.sort((function(e,t){return e.delay-t.delay})),this.diff(c),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,a=void 0===i?{}:i;l.obj(r)&&(n.merged=o({},r,n.merged)),l.obj(a)&&(n.merged=o({},n.merged,a))}));var r=this.local=++this.guid,a=this.localQueue=this.queue;this.queue=[],a.forEach((function(t,o){var c=t.delay,s=i(t,["delay"]),u=function(t){o===a.length-1&&r===n.guid&&t&&(n.idle=!0,n.props.onRest&&n.props.onRest(n.merged)),e&&e()},d=l.arr(s.to)||l.fun(s.to);c?setTimeout((function(){r===n.guid&&(d?n.runAsync(s,u):n.diff(s).start(u))}),c):d?n.runAsync(s,u):n.diff(s).start(u)}))}else l.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,L.has(t)||L.add(t),A||(A=!0,_(M||F));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,L.has(t)&&L.delete(t)),this},t.runAsync=function(e,t){var n=this,r=(e.delay,i(e,["delay"])),a=this.local,c=Promise.resolve(void 0);if(l.arr(r.to))for(var s=function(e){var t=e,i=o({},r,h(r.to[t]));l.arr(i.config)&&(i.config=i.config[t]),c=c.then((function(){if(a===n.guid)return new Promise((function(e){return n.diff(i).start(e)}))}))},u=0;u<r.to.length;u++)s(u);else if(l.fun(r.to)){var d,f=0;c=c.then((function(){return r.to((function(e){var t=o({},r,h(e));if(l.arr(t.config)&&(t.config=t.config[f]),f++,a===n.guid)return d=new Promise((function(e){return n.diff(t).start(e)}))}),(function(e){return void 0===e&&(e=!0),n.stop(e)})).then((function(){return d}))}))}c.then(t)},t.diff=function(e){var t=this;this.props=o({},this.props,e);var n=this.props,r=n.from,i=void 0===r?{}:r,a=n.to,c=void 0===a?{}:a,s=n.config,u=void 0===s?{}:s,d=n.reverse,h=n.attach,v=n.reset,y=n.immediate;if(d){var g=[c,i];i=g[0],c=g[1]}this.merged=o({},i,this.merged,c),this.hasChanged=!1;var O=h&&h(this);if(this.animations=Object.entries(this.merged).reduce((function(e,n){var r=n[0],a=n[1],c=e[r]||{},s=l.num(a),d=l.str(a)&&!a.startsWith("#")&&!/\d/.test(a)&&!m[a],h=l.arr(a),g=!s&&!h&&!d,j=l.und(i[r])?a:i[r],w=s||h||d?a:1,_=b(u,r);O&&(w=O.animations[r].parent);var S,E=c.parent,x=c.interpolation,P=p(O?w.getPayload():w),D=a;g&&(D=k({range:[0,1],output:[a,a]})(1));var M,T=x&&x.getValue(),I=!l.und(E)&&c.animatedValues.some((function(e){return!e.done})),R=!l.equ(D,T),N=!l.equ(D,c.previous),A=!l.equ(_,c.config);if(v||N&&R||A){var L;if(s||d)E=x=c.parent||new H(j);else if(h)E=x=c.parent||new V(j);else if(g){var F=c.interpolation&&c.interpolation.calc(c.parent.value);F=void 0===F||v?j:F,c.parent?(E=c.parent).setValue(0,!1):E=new H(0);var z={output:[F,a]};c.interpolation?(x=c.interpolation,c.interpolation.updateConfig(z)):x=E.interpolate(z)}return P=p(O?w.getPayload():w),S=p(E.getPayload()),v&&!g&&E.setValue(j,!1),t.hasChanged=!0,S.forEach((function(e){e.startPosition=e.value,e.lastPosition=e.value,e.lastVelocity=I?e.lastVelocity:void 0,e.lastTime=I?e.lastTime:void 0,e.startTime=C(),e.done=!1,e.animatedStyles.clear()})),b(y,r)&&E.setValue(g?w:a,!1),o({},e,((L={})[r]=o({},c,{name:r,parent:E,interpolation:x,animatedValues:S,toValues:P,previous:D,config:_,fromValues:p(E.getValue()),immediate:b(y,r),initialVelocity:f(_.velocity,0),clamp:f(_.clamp,!1),precision:f(_.precision,.01),tension:f(_.tension,170),friction:f(_.friction,26),mass:f(_.mass,1),duration:_.duration,easing:f(_.easing,(function(e){return e})),decay:_.decay}),L))}return R?e:(g&&(E.setValue(1,!1),x.updateConfig({output:[D,D]})),E.done=!0,t.hasChanged=!0,o({},e,((M={})[r]=o({},e[r],{previous:D}),M)))}),this.animations),this.hasChanged)for(var j in this.configs=Object.values(this.animations),this.values={},this.interpolations={},this.animations)this.interpolations[j]=this.animations[j].interpolation,this.values[j]=this.animations[j].interpolation.getValue();return this},t.destroy=function(){this.stop(),this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.local=0},e}(),U=function(e,t){var n=a.useRef(!1),r=a.useRef(),o=l.fun(t),i=a.useMemo((function(){var n;return r.current&&(r.current.map((function(e){return e.destroy()})),r.current=void 0),[new Array(e).fill().map((function(e,r){var i=new W,a=o?b(t,r,i):t[r];return 0===r&&(n=a.ref),i.update(a),n||i.start(),i})),n]}),[e]),c=i[0],s=i[1];r.current=c;a.useImperativeHandle(s,(function(){return{start:function(){return Promise.all(r.current.map((function(e){return new Promise((function(t){return e.start(t)}))})))},stop:function(e){return r.current.forEach((function(t){return t.stop(e)}))},get controllers(){return r.current}}}));var u=a.useMemo((function(){return function(e){return r.current.map((function(t,n){t.update(o?b(e,n,t):e[n]),s||t.start()}))}}),[e]);a.useEffect((function(){n.current?o||u(t):s||r.current.forEach((function(e){return e.start()}))})),a.useEffect((function(){return n.current=!0,function(){return r.current.forEach((function(e){return e.destroy()}))}}),[]);var d=r.current.map((function(e){return e.getValues()}));return o?[d,u,function(e){return r.current.forEach((function(t){return t.pause(e)}))}]:d},G=0,$=function(e,t){return("function"==typeof t?e.map(t):p(t)).map(String)},q=function(e){var t=e.items,n=e.keys,r=void 0===n?function(e){return e}:n,a=i(e,["items","keys"]);return t=p(void 0!==t?t:null),o({items:t,keys:$(t,r)},a)};function Y(e,t){var n=function(){if(o){if(i>=r.length)return"break";a=r[i++]}else{if((i=r.next()).done)return"break";a=i.value}var n=a.key,c=function(e){return e.key!==n};(l.und(t)||t===n)&&(e.current.instances.delete(n),e.current.transitions=e.current.transitions.filter(c),e.current.deleted=e.current.deleted.filter(c))},r=e.current.deleted,o=Array.isArray(r),i=0;for(r=o?r:r[Symbol.iterator]();;){var a;if("break"===n())break}e.current.forceUpdate()}var Z=function(e){function t(t){var n;return void 0===t&&(t={}),n=e.call(this)||this,!t.transform||t.transform instanceof y||(t=v.transform(t)),n.payload=t,n}return s(t,e),t}(O),X={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},J="[-+]?\\d*\\.?\\d+";function Q(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}var ee=new RegExp("rgb"+Q(J,J,J)),te=new RegExp("rgba"+Q(J,J,J,J)),ne=new RegExp("hsl"+Q(J,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),re=new RegExp("hsla"+Q(J,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",J)),oe=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ie=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ae=/^#([0-9a-fA-F]{6})$/,ce=/^#([0-9a-fA-F]{8})$/;function se(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}function ue(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=se(o,r,e+1/3),a=se(o,r,e),c=se(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*a)<<16|Math.round(255*c)<<8}function le(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function de(e){return(parseFloat(e)%360+360)%360/360}function fe(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function pe(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function be(e){var t,n,r="number"==typeof(t=e)?t>>>0===t&&t>=0&&t<=4294967295?t:null:(n=ae.exec(t))?parseInt(n[1]+"ff",16)>>>0:X.hasOwnProperty(t)?X[t]:(n=ee.exec(t))?(le(n[1])<<24|le(n[2])<<16|le(n[3])<<8|255)>>>0:(n=te.exec(t))?(le(n[1])<<24|le(n[2])<<16|le(n[3])<<8|fe(n[4]))>>>0:(n=oe.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+"ff",16)>>>0:(n=ce.exec(t))?parseInt(n[1],16)>>>0:(n=ie.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+n[4]+n[4],16)>>>0:(n=ne.exec(t))?(255|ue(de(n[1]),pe(n[2]),pe(n[3])))>>>0:(n=re.exec(t))?(ue(de(n[1]),pe(n[2]),pe(n[3]))|fe(n[4]))>>>0:null;return null===r?e:"rgba("+((4278190080&(r=r||0))>>>24)+", "+((16711680&r)>>>16)+", "+((65280&r)>>>8)+", "+(255&r)/255+")"}var he=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ve=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,me=new RegExp("("+Object.keys(X).join("|")+")","g"),ye={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},ge=["Webkit","Ms","Moz","O"];function Oe(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ye.hasOwnProperty(e)&&ye[e]?(""+t).trim():t+"px"}ye=Object.keys(ye).reduce((function(e,t){return ge.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),ye);var je={};I((function(e){return new Z(e)})),P("div"),E((function(e){var t=e.output.map((function(e){return e.replace(ve,be)})).map((function(e){return e.replace(me,be)})),n=t[0].match(he).map((function(){return[]}));t.forEach((function(e){e.match(he).forEach((function(e,t){return n[t].push(+e)}))}));var r=t[0].match(he).map((function(t,r){return z(o({},e,{output:n[r]}))}));return function(e){var n=0;return t[0].replace(he,(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+")"}))}})),w(X),j((function(e,t){if(!e.nodeType||void 0===e.setAttribute)return!1;var n=t.style,r=t.children,o=t.scrollTop,a=t.scrollLeft,c=i(t,["style","children","scrollTop","scrollLeft"]),s="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;for(var u in void 0!==o&&(e.scrollTop=o),void 0!==a&&(e.scrollLeft=a),void 0!==r&&(e.textContent=r),n)if(n.hasOwnProperty(u)){var l=0===u.indexOf("--"),d=Oe(u,n[u],l);"float"===u&&(u="cssFloat"),l?e.style.setProperty(u,d):e.style[u]=d}for(var f in c){var p=s?f:je[f]||(je[f]=f.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(p)&&e.setAttribute(p,c[f])}}),(function(e){return e}));var we,ke,_e=(we=function(e){return a.forwardRef((function(t,n){var r=d(),s=a.useRef(!0),u=a.useRef(null),f=a.useRef(null),p=a.useCallback((function(e){var t=u.current;u.current=new N(e,(function(){var e=!1;f.current&&(e=v.fn(f.current,u.current.getAnimatedValue())),f.current&&!1!==e||r()})),t&&t.detach()}),[]);a.useEffect((function(){return function(){s.current=!1,u.current&&u.current.detach()}}),[]),a.useImperativeHandle(n,(function(){return T(f,s,r)})),p(t);var b,h=u.current.getValue(),m=(h.scrollTop,h.scrollLeft,i(h,["scrollTop","scrollLeft"])),y=(b=e,!l.fun(b)||b.prototype instanceof c.Component?function(e){return f.current=function(e,t){return t&&(l.fun(t)?t(e):l.obj(t)&&(t.current=e)),e}(e,n)}:void 0);return c.createElement(e,o({},m,{ref:y}))}))},void 0===(ke=!1)&&(ke=!0),function(e){return(l.arr(e)?e:Object.keys(e)).reduce((function(e,t){var n=ke?t[0].toLowerCase()+t.substring(1):t;return e[n]=we(n),e}),we)}),Se=_e(["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=_e,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=F,t.animated=Se,t.a=Se,t.interpolate=function(e,t,n){return e&&new B(e,t,n)},t.Globals=R,t.useSpring=function(e){var t=l.fun(e),n=U(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=a.useRef(!1),r=l.fun(t),i=b(t),c=a.useRef(),s=U(e,(function(e,t){return 0===e&&(c.current=[]),c.current.push(t),o({},i,{config:b(i.config,e),attach:e>0&&function(){return c.current[e-1]}})})),u=s[0],d=s[1],f=s[2],p=a.useMemo((function(){return function(e){return d((function(t,n){e.reverse;var r=e.reverse?t+1:t-1,a=c.current[r];return o({},e,{config:b(e.config||i.config,t),attach:a&&function(){return a}})}))}}),[e,i.reverse]);return a.useEffect((function(){n.current&&!r&&p(t)})),a.useEffect((function(){n.current=!0}),[]),r?[u,p,f]:u},t.useTransition=function(e,t,n){var r=o({items:e,keys:t||function(e){return e}},n),c=q(r),s=c.lazy,u=void 0!==s&&s,l=(c.unique,c.reset),f=void 0!==l&&l,p=(c.enter,c.leave,c.update,c.onDestroyed),h=(c.keys,c.items,c.onFrame),v=c.onRest,m=c.onStart,y=c.ref,g=i(c,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),O=d(),j=a.useRef(!1),w=a.useRef({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!r.ref,instances:!j.current&&new Map,forceUpdate:O});return a.useImperativeHandle(r.ref,(function(){return{start:function(){return Promise.all(Array.from(w.current.instances).map((function(e){var t=e[1];return new Promise((function(e){return t.start(e)}))})))},stop:function(e){return Array.from(w.current.instances).forEach((function(t){return t[1].stop(e)}))},get controllers(){return Array.from(w.current.instances).map((function(e){return e[1]}))}}})),w.current=function(e,t){var n=e.first,r=e.prevProps,a=i(e,["first","prevProps"]),c=q(t),s=c.items,u=c.keys,l=c.initial,d=c.from,f=c.enter,p=c.leave,h=c.update,v=c.trail,m=void 0===v?0:v,y=c.unique,g=c.config,O=c.order,j=void 0===O?["enter","leave","update"]:O,w=q(r),k=w.keys,_=w.items,S=o({},a.current),E=[].concat(a.deleted),x=Object.keys(S),C=new Set(x),P=new Set(u),D=u.filter((function(e){return!C.has(e)})),M=a.transitions.filter((function(e){return!e.destroyed&&!P.has(e.originalKey)})).map((function(e){return e.originalKey})),T=u.filter((function(e){return C.has(e)})),I=-m;for(;j.length;){switch(j.shift()){case"enter":D.forEach((function(e,t){y&&E.find((function(t){return t.originalKey===e}))&&(E=E.filter((function(t){return t.originalKey!==e})));var r=u.indexOf(e),o=s[r],i=n&&void 0!==l?"initial":"enter";S[e]={slot:i,originalKey:e,key:y?String(e):G++,item:o,trail:I+=m,config:b(g,o,i),from:b(n&&void 0!==l?l||{}:d,o),to:b(f,o)}}));break;case"leave":M.forEach((function(e){var t=k.indexOf(e),n=_[t];E.unshift(o({},S[e],{slot:"leave",destroyed:!0,left:k[Math.max(0,t-1)],right:k[Math.min(k.length,t+1)],trail:I+=m,config:b(g,n,"leave"),to:b(p,n)})),delete S[e]}));break;case"update":T.forEach((function(e){var t=u.indexOf(e),n=s[t];S[e]=o({},S[e],{item:n,slot:"update",trail:I+=m,config:b(g,n,"update"),to:b(h,n)})}))}}var R=u.map((function(e){return S[e]}));return E.forEach((function(e){var t,n=e.left,r=(e.right,i(e,["left","right"]));-1!==(t=R.findIndex((function(e){return e.originalKey===n})))&&(t+=1),t=Math.max(0,t),R=[].concat(R.slice(0,t),[r],R.slice(t))})),o({},a,{changed:D.length||M.length||T.length,first:n&&0===D.length,transitions:R,current:S,deleted:E,prevProps:t})}(w.current,r),w.current.changed&&w.current.transitions.forEach((function(e){var t=e.slot,n=e.from,r=e.to,i=e.config,a=e.trail,c=e.key,s=e.item;w.current.instances.has(c)||w.current.instances.set(c,new W);var l=w.current.instances.get(c),d=o({},g,{to:r,from:n,config:i,ref:y,onRest:function(n){w.current.mounted&&(e.destroyed&&(y||u||Y(w,c),p&&p(s)),!Array.from(w.current.instances).some((function(e){return!e[1].idle}))&&(y||u)&&w.current.deleted.length>0&&Y(w),v&&v(s,t,n))},onStart:m&&function(){return m(s,t)},onFrame:h&&function(e){return h(s,t,e)},delay:a,reset:f&&"enter"===t});l.update(d),w.current.paused||l.start()})),a.useEffect((function(){return w.current.mounted=j.current=!0,function(){w.current.mounted=j.current=!1,Array.from(w.current.instances).map((function(e){return e[1].destroy()})),w.current.instances.clear()}}),[]),w.current.transitions.map((function(e){var t=e.item,n=e.slot,r=e.key;return{item:t,key:r,state:n,props:w.current.instances.get(r).getValues()}}))},t.useChain=function(e,t,n){void 0===n&&(n=1e3);var r=a.useRef();a.useEffect((function(){l.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 a=i.controllers;if(a.length){var c=n*t[r];a.forEach((function(e){e.queue=e.queue.map((function(e){return o({},e,{delay:e.delay+c})})),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){function n(e,t,n,r){var o,i=null==(o=r)||"number"==typeof o||"boolean"==typeof o?r:n(r),a=t.get(i);return void 0===a&&(a=e.call(this,r),t.set(i,a)),a}function r(e,t,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),i=t.get(o);return void 0===i&&(i=e.apply(this,r),t.set(o,i)),i}function o(e,t,n,r,o){return n.bind(t,e,r,o)}function i(e,t){return o(e,this,1===e.length?n:r,t.cache.create(),t.serializer)}function a(){return JSON.stringify(arguments)}function c(){this.cache=Object.create(null)}c.prototype.has=function(e){return e in this.cache},c.prototype.get=function(e){return this.cache[e]},c.prototype.set=function(e,t){this.cache[e]=t};var s={create:function(){return new c}};e.exports=function(e,t){var n=t&&t.cache?t.cache:s,r=t&&t.serializer?t.serializer:a;return(t&&t.strategy?t.strategy:i)(e,{cache:n,serializer:r})},e.exports.strategies={variadic:function(e,t){return o(e,this,r,t.cache.create(),t.serializer)},monadic:function(e,t){return o(e,this,n,t.cache.create(),t.serializer)}}},function(e,t,n){"use strict";var r=n(330);e.exports=Function.prototype.bind||r},,function(e,t,n){"use strict";n.d(t,"a",(function(){return _})),n.d(t,"b",(function(){return k}));var r=n(15),o=n(51),i=n(50),a=n(67),c=n(13),s=n(63),u=(n(81),n(48)),l=n(54),d=n(57),f=n(74),p=n(79),b=n(82),h=n(49),v=n(97),m=n(104),y=n(52),g="undefined"!=typeof window&&"msCrypto"in window;var O="undefined"!=typeof window&&"msCrypto"in window;function j(e,t,n){var r=Object(u.a)(n);return Object(c.useCallback)((function(n){var o;if(e&&function(e){return!!Object(l.a)(e)&&(!e.metaKey&&"Tab"!==e.key)}(n)){var i=null==t?void 0:t.ref.current;if(i&&(Object(m.a)(i,n.type,n),n.currentTarget.contains(i)))return n.stopPropagation(),void n.preventDefault()}null===(o=r.current)||void 0===o||o.call(r,n)}),[e,t])}function w(e,t){return null==e?void 0:e.some((function(e){return!!t&&e.ref.current===t}))}var k=Object(i.a)({name:"Composite",compose:[f.a],useState:y.g,useOptions:function(e){return Object(r.b)(Object(r.b)({},e),{},{currentId:Object(y.e)(e)})},useProps:function(e,t){var n=t.ref,o=t.onFocus,i=t.onBlur,a=t.onKeyDown,f=t.onKeyUp,p=Object(r.a)(t,["ref","onFocus","onBlur","onKeyDown","onKeyUp"]),m=Object(c.useRef)(null),k=Object(y.d)(e.items,e.currentId),_=Object(c.useRef)(void 0),S=Object(u.a)(o),E=Object(u.a)(i),x=O?function(e){var t=Object(c.useRef)(null);return Object(c.useEffect)((function(){var n=Object(h.a)(e.current),r=function(e){var n=e.target;t.current=n};return n.addEventListener("focus",r,!0),function(){n.removeEventListener("focus",r,!0)}}),[]),t}(m):void 0;Object(c.useEffect)((function(){var t=m.current;t&&e.unstable_moves&&!k&&t.focus()}),[e.unstable_moves,k]);var C=j(e.unstable_virtual,k,a),P=j(e.unstable_virtual,k,f),D=Object(c.useCallback)((function(t){var n;if(e.unstable_virtual){var r,o,i=(null==x?void 0:x.current)||t.relatedTarget,a=w(e.items,i);if(Object(l.a)(t)&&!a)return null===(r=S.current)||void 0===r||r.call(S,t),void(null==k||null===(o=k.ref.current)||void 0===o||o.focus());if(a)return void t.stopPropagation()}else if(Object(l.a)(t)){var c;null===(c=e.setCurrentId)||void 0===c||c.call(e,null)}null===(n=S.current)||void 0===n||n.call(S,t)}),[e.unstable_virtual,e.items,k,e.setCurrentId]),M=Object(c.useCallback)((function(t){var n;if(e.unstable_virtual){var r,o=w(e.items,t.target),i=function(e){return g?Object(d.a)(e.target):e.relatedTarget}(t),a=w(e.items,i);if(Object(l.a)(t)&&a)return(null===(r=_.current)||void 0===r?void 0:r.ref.current)&&Object(v.a)(_.current.ref.current,"blur",t),_.current=k,void t.stopPropagation();o?_.current=k:((null==k?void 0:k.ref.current)&&Object(v.a)(k.ref.current,"blur",t),_.current=void 0)}null===(n=E.current)||void 0===n||n.call(E,t)}),[e.unstable_virtual,e.items,k]),T=Object(c.useMemo)((function(){return Object(b.a)({onKeyDown:C,stopPropagation:!0,shouldKeyDown:function(t){return Object(l.a)(t)&&null===e.currentId},keyMap:function(){var t,n="horizontal"!==e.orientation,r="vertical"!==e.orientation,o=!!(null===(t=e.groups)||void 0===t?void 0:t.length),i=e.first&&function(){return e.first()},a=e.last&&function(){return e.last()};return{ArrowUp:(o||n)&&function(){if(o){var t,n=(i=e.items,Object(y.a)(Object(y.b)(Object(y.f)(Object(y.c)(i)))));if(null==n?void 0:n.id)null===(t=e.move)||void 0===t||t.call(e,n.id)}else{var r;null===(r=e.last)||void 0===r||r.call(e)}var i},ArrowRight:(o||r)&&i,ArrowDown:(o||n)&&i,ArrowLeft:(o||r)&&a,Home:i,End:a,PageUp:i,PageDown:a}}})}),[C,e.currentId,e.orientation,e.groups,e.items,e.move,e.last,e.first]);return Object(r.b)({ref:Object(s.a)(m,n),id:e.baseId,onFocus:D,onBlur:M,onKeyDown:T,onKeyUp:P,"aria-activedescendant":e.unstable_virtual&&(null==k?void 0:k.id)||void 0},p)},useComposeProps:function(e,t){t=Object(a.a)(e,t,!0);var n=Object(f.a)(e,t,!0);return e.unstable_virtual||null===e.currentId?n:Object(r.b)(Object(r.b)({},t),{},{ref:n.ref})}}),_=Object(o.a)({as:"div",useHook:k,useCreateElement:function(e,t,n){return Object(p.a)(e,t,n)}})},function(e,t,n){"use strict";n.d(t,"a",(function(){return w})),n.d(t,"b",(function(){return j}));var r=n(15),o=n(51),i=n(50),a=n(13),c=n(63),s=(n(81),n(48)),u=n(54),l=n(70),d=n(73),f=n(72),p=n(88),b=n(82),h=n(49),v=n(52),m=n(96),y=n(98),g=n(99);function O(e){return e.querySelector("[data-composite-item-widget]")}var j=Object(i.a)({name:"CompositeItem",compose:[p.a,m.a],useState:v.g,propsAreEqual:function(e,t){if(!t.id||e.id!==t.id)return p.a.unstable_propsAreEqual(e,t);var n=e.currentId,o=e.unstable_moves,i=Object(r.a)(e,["currentId","unstable_moves"]),a=t.currentId,c=t.unstable_moves,s=Object(r.a)(t,["currentId","unstable_moves"]);if(a!==n){if(t.id===a||t.id===n)return!1}else if(o!==c)return!1;return p.a.unstable_propsAreEqual(i,s)},useOptions:function(e){return Object(r.b)(Object(r.b)({},e),{},{id:e.id,currentId:Object(v.e)(e),unstable_clickOnSpace:!e.unstable_hasActiveWidget&&e.unstable_clickOnSpace})},useProps:function(e,t){var n,o=t.ref,i=t.tabIndex,p=void 0===i?0:i,v=t.onFocus,m=t.onBlur,j=t.onKeyDown,w=t.onClick,k=Object(r.a)(t,["ref","tabIndex","onFocus","onBlur","onKeyDown","onClick"]),_=Object(a.useRef)(null),S=e.id,E=e.disabled&&!e.focusable,x=e.currentId===S,C=Object(s.a)(x),P=Object(a.useRef)(!1),D=function(e){return Object(a.useMemo)((function(){var t;return null===(t=e.items)||void 0===t?void 0:t.find((function(t){return e.id&&t.id===e.id}))}),[e.items,e.id])}(e),M=Object(s.a)(v),T=Object(s.a)(m),I=Object(s.a)(j),R=Object(s.a)(w),N=!e.unstable_virtual&&!e.unstable_hasActiveWidget&&x||!(null===(n=e.items)||void 0===n?void 0:n.length);Object(a.useEffect)((function(){var t;if(S)return null===(t=e.registerItem)||void 0===t||t.call(e,{id:S,ref:_,disabled:!!E}),function(){var t;null===(t=e.unregisterItem)||void 0===t||t.call(e,S)}}),[S,E,e.registerItem,e.unregisterItem]),Object(a.useEffect)((function(){var t=_.current;t&&e.unstable_moves&&C.current&&t.focus()}),[e.unstable_moves]);var A=Object(a.useCallback)((function(t){var n,o;if(null===(n=M.current)||void 0===n||n.call(M,t),!t.defaultPrevented&&!Object(d.a)(t)&&S&&!function(e,t){if(Object(u.a)(e))return!1;for(var n,o=Object(r.c)(t);!(n=o()).done;){if(n.value.ref.current===e.target)return!0}return!1}(t,e.items)&&(null===(o=e.setCurrentId)||void 0===o||o.call(e,S),e.unstable_virtual&&e.baseId&&Object(u.a)(t))){var i=t.target,a=Object(h.a)(i).getElementById(e.baseId);a&&(P.current=!0,Object(f.a)(a))}}),[S,e.items,e.setCurrentId,e.unstable_virtual,e.baseId]),L=Object(a.useCallback)((function(t){var n;if(e.unstable_virtual&&P.current)return P.current=!1,t.preventDefault(),void t.stopPropagation();null===(n=T.current)||void 0===n||n.call(T,t)}),[e.unstable_virtual]),F=Object(a.useCallback)((function(e){var t;if(null===(t=I.current)||void 0===t||t.call(I,e),Object(u.a)(e)&&1===e.key.length&&" "!==e.key){var n=O(e.currentTarget);if(n&&Object(y.a)(n)){n.focus();var r=e.key;window.requestAnimationFrame((function(){Object(g.a)(n,r)}))}}}),[]),z=Object(a.useMemo)((function(){return Object(b.a)({onKeyDown:F,stopPropagation:!0,shouldKeyDown:u.a,keyMap:function(){var t="horizontal"!==e.orientation,n="vertical"!==e.orientation,r=!!(null==D?void 0:D.groupId),o=function(e){var t=O(e.currentTarget);t&&Object(y.a)(t)&&Object(g.a)(t,"")},i=e.up&&function(){return e.up()},a=e.next&&function(){return e.next()},c=e.down&&function(){return e.down()},s=e.previous&&function(){return e.previous()};return{Delete:o,Backspace:o,ArrowUp:(r||t)&&i,ArrowRight:(r||n)&&a,ArrowDown:(r||t)&&c,ArrowLeft:(r||n)&&s,Home:function(t){var n,o;!r||t.ctrlKey?null===(n=e.first)||void 0===n||n.call(e):null===(o=e.previous)||void 0===o||o.call(e,!0)},End:function(t){var n,o;!r||t.ctrlKey?null===(n=e.last)||void 0===n||n.call(e):null===(o=e.next)||void 0===o||o.call(e,!0)},PageUp:function(){var t,n;r?null===(t=e.up)||void 0===t||t.call(e,!0):null===(n=e.first)||void 0===n||n.call(e)},PageDown:function(){var t,n;r?null===(t=e.down)||void 0===t||t.call(e,!0):null===(n=e.last)||void 0===n||n.call(e)}}}})}),[F,e.orientation,D,e.up,e.next,e.down,e.previous,e.first,e.last]),B=Object(a.useCallback)((function(e){var t;if(null===(t=R.current)||void 0===t||t.call(R,e),!e.defaultPrevented){var n=O(e.currentTarget);n&&!Object(l.a)(n)&&n.focus()}}),[]);return Object(r.b)({ref:Object(c.a)(_,o),id:S,tabIndex:N?p:-1,"aria-selected":!(!e.unstable_virtual||!x)||void 0,onFocus:A,onBlur:L,onKeyDown:z,onClick:B},k)}}),w=Object(o.a)({as:"button",memo:!0,useHook:j})},function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return l}));var r=n(5),o=n(12),i=n(9),a=n.n(i);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e){var t=e.type,n=e.origin,i=void 0===n?function(e){return"appear"===e?"top":"left"}(t):n;if("appear"===t){var c,s=i.split(" "),u=Object(o.a)(s,2),l=u[0],d=u[1],f=void 0===d?"center":d;return a()("components-animate__appear",(c={},Object(r.a)(c,"is-from-"+f,"center"!==f),Object(r.a)(c,"is-from-"+l,"middle"!==l),c))}return"slide-in"===t?a()("components-animate__slide-in","is-from-"+i):"loading"===t?a()("components-animate__loading"):void 0}function l(e){var t=e.type,n=e.options,r=void 0===n?{}:n;return(0,e.children)({className:u(s({type:t},r))})}},function(e,t,n){"use strict";n.d(t,"b",(function(){return E})),n.d(t,"a",(function(){return x})),n.d(t,"c",(function(){return C}));var r=n(8),o=n(14),i=n(0),a=n(21),c=n(22),s=n(16),u=n(19);function l(e,t,n){return(l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Object(u.a)(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}var d=n(23),f=n(24),p=n(2),b=n(129);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(f.a)(this,n)}}var v=function(e){Object(d.a)(n,e);var t=h(n);function n(){var e;return Object(a.a)(this,n),(e=t.apply(this,arguments)).isUnmounted=!1,e.bindNode=e.bindNode.bind(Object(s.a)(e)),e}return Object(c.a)(n,[{key:"componentDidMount",value:function(){(0,this.props.registerSlot)(this.props.name,this)}},{key:"componentWillUnmount",value:function(){var e=this.props.unregisterSlot;this.isUnmounted=!0,e(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:"forceUpdate",value:function(){this.isUnmounted||l(Object(u.a)(n.prototype),"forceUpdate",this).call(this)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.name,r=e.fillProps,o=void 0===r?{}:r,a=e.getFills,c=Object(p.map)(a(n,this),(function(e){var t=e.occurrence,n=Object(p.isFunction)(e.children)?e.children(o):e.children;return i.Children.map(n,(function(e,n){if(!e||Object(p.isString)(e))return e;var r="".concat(t,"---").concat(e.key||n);return Object(i.cloneElement)(e,{key:r})}))})).filter(Object(p.negate)(i.isEmptyElement));return Object(i.createElement)(i.Fragment,null,Object(p.isFunction)(t)?t(c):c)}}]),n}(i.Component),m=function(e){return Object(i.createElement)(b.a,null,(function(t){var n=t.registerSlot,o=t.unregisterSlot,a=t.getFills;return Object(i.createElement)(v,Object(r.a)({},e,{registerSlot:n,unregisterSlot:o,getFills:a}))}))},y=0;function g(e){var t=e.name,n=e.children,r=e.registerFill,o=e.unregisterFill,a=Object(b.c)(t),c=Object(i.useRef)({name:t,children:n});return c.current.occurrence||(c.current.occurrence=++y),Object(i.useLayoutEffect)((function(){return r(t,c.current),function(){return o(t,c.current)}}),[]),Object(i.useLayoutEffect)((function(){c.current.children=n,a&&a.forceUpdate()}),[n]),Object(i.useLayoutEffect)((function(){t!==c.current.name&&(o(c.current.name,c.current),c.current.name=t,r(t,c.current))}),[t]),a&&a.node?(Object(p.isFunction)(n)&&(n=n(a.props.fillProps)),Object(i.createPortal)(n,a.node)):null}var O=function(e){return Object(i.createElement)(b.a,null,(function(t){var n=t.registerFill,o=t.unregisterFill;return Object(i.createElement)(g,Object(r.a)({},e,{registerFill:n,unregisterFill:o}))}))},j=n(138);function w(e){var t=e.name,n=e.fillProps,a=void 0===n?{}:n,c=e.as,s=void 0===c?"div":c,u=Object(o.a)(e,["name","fillProps","as"]),l=Object(i.useContext)(j.a),d=Object(i.useRef)();return Object(i.useLayoutEffect)((function(){return l.registerSlot(t,d,a),function(){l.unregisterSlot(t,d)}}),[l.registerSlot,l.unregisterSlot,t]),Object(i.useLayoutEffect)((function(){l.updateSlot(t,a)})),Object(i.createElement)(s,Object(r.a)({ref:d},u))}var k=n(12),_=n(165);function S(e){var t,n,r=e.name,o=e.children,a=Object(_.a)(r),c=Object(i.useRef)({rerender:(t=Object(i.useState)({}),n=Object(k.a)(t,2)[1],function(){return n({})})});return Object(i.useEffect)((function(){return a.registerFill(c),function(){a.unregisterFill(c)}}),[a.registerFill,a.unregisterFill]),a.ref&&a.ref.current?("function"==typeof o&&(o=o(a.fillProps)),Object(i.createPortal)(o,a.ref.current)):null}function E(e){var t=e.bubblesVirtually,n=Object(o.a)(e,["bubblesVirtually"]);return t?Object(i.createElement)(w,n):Object(i.createElement)(m,n)}function x(e){return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(O,e),Object(i.createElement)(S,e))}function C(e){var t=function(t){return Object(i.createElement)(x,Object(r.a)({name:e},t))};t.displayName=e+"Fill";var n=function(t){return Object(i.createElement)(E,Object(r.a)({name:e},t))};return n.displayName=e+"Slot",{Fill:t,Slot:n}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(49);function o(e,t,n){var o,i;if(void 0===n&&(n={}),"function"==typeof Event)return new Event(t,n);var a=Object(r.a)(e).createEvent("Event");return a.initEvent(t,null===(o=n)||void 0===o?void 0:o.bubbles,null===(i=n)||void 0===i?void 0:i.cancelable),a}},function(e,t,n){"use strict";e.exports=n(184)},,function(e,t,n){"use strict";n.d(t,"c",(function(){return C})),n.d(t,"a",(function(){return E}));var r=n(12),o=n(17),i=n(21),a=n(22),c=n(16),s=n(23),u=n(24),l=n(19),d=n(0),f=n(2),p=n(40),b=n(14),h=n(5),v=n(64),m=n.n(v),y=n(138);function g(e){var t=function(e,t){if("object"!==Object(p.a)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Object(p.a)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Object(p.a)(t)?t:String(t)}function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){Object(h.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w(e){var t,n,i,a,c,s,u,l,f,p,v,O,w,k=e.children,_=(t=Object(d.useState)({}),n=Object(r.a)(t,2),i=n[0],a=n[1],c=Object(d.useState)({}),s=Object(r.a)(c,2),u=s[0],l=s[1],f=Object(d.useCallback)((function(e,t,n){a((function(r){var o=r[e]||{};return j(j({},r),{},Object(h.a)({},e,j(j({},o),{},{ref:t||o.ref,fillProps:n||o.fillProps||{}})))}))}),[]),p=Object(d.useCallback)((function(e,t){a((function(n){var r=n[e],o=Object(b.a)(n,[e].map(g));return(null==r?void 0:r.ref)===t?o:n}))}),[]),v=Object(d.useCallback)((function(e,t){var n=i[e];if(n&&!m()(n.fillProps,t)){n.fillProps=t;var r=u[e];r&&r.map((function(e){return e.current.rerender()}))}}),[i,u]),O=Object(d.useCallback)((function(e,t){l((function(n){return j(j({},n),{},Object(h.a)({},e,[].concat(Object(o.a)(n[e]||[]),[t])))}))}),[]),w=Object(d.useCallback)((function(e,t){l((function(n){return n[e]?j(j({},n),{},Object(h.a)({},e,n[e].filter((function(e){return e!==t})))):n}))}),[]),Object(d.useMemo)((function(){return{slots:i,fills:u,registerSlot:f,updateSlot:v,unregisterSlot:p,registerFill:O,unregisterFill:w}}),[i,u,f,v,p,O,w]));return Object(d.createElement)(y.a.Provider,{value:_},k)}function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var _=Object(d.createContext)({registerSlot:function(){},unregisterSlot:function(){},registerFill:function(){},unregisterFill:function(){},getSlot:function(){},getFills:function(){},subscribe:function(){}}),S=_.Provider,E=_.Consumer,x=function(e){Object(s.a)(n,e);var t=k(n);function n(){var e;return Object(i.a)(this,n),(e=t.apply(this,arguments)).registerSlot=e.registerSlot.bind(Object(c.a)(e)),e.registerFill=e.registerFill.bind(Object(c.a)(e)),e.unregisterSlot=e.unregisterSlot.bind(Object(c.a)(e)),e.unregisterFill=e.unregisterFill.bind(Object(c.a)(e)),e.getSlot=e.getSlot.bind(Object(c.a)(e)),e.getFills=e.getFills.bind(Object(c.a)(e)),e.hasFills=e.hasFills.bind(Object(c.a)(e)),e.subscribe=e.subscribe.bind(Object(c.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,hasFills:e.hasFills,subscribe:e.subscribe},e}return Object(a.a)(n,[{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(o.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(f.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(f.sortBy)(this.fills[e],"occurrence")}},{key:"hasFills",value:function(e){return this.fills[e]&&!!this.fills[e].length}},{key:"resetFillOccurrence",value:function(e){Object(f.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(f.without)(t.listeners,e)}}},{key:"render",value:function(){return Object(d.createElement)(S,{value:this.contextValue},Object(d.createElement)(w,null,this.props.children))}}]),n}(d.Component),C=function(e){var t=Object(d.useContext)(_),n=t.getSlot,o=t.subscribe,i=Object(d.useState)(n(e)),a=Object(r.a)(i,2),c=a[0],s=a[1];return Object(d.useEffect)((function(){return s(n(e)),o((function(){s(n(e))}))}),[e]),c};t.b=x},,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";e.exports=function(e){return"string"==typeof e||"symbol"==typeof e}},,function(e,t,n){"use strict";var r=n(21),o=n(22),i=n(16),a=n(23),c=n(24),s=n(19),u=n(0),l=n(10),d=n(18),f=n(29);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(s.a)(e);if(t){var o=Object(s.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(c.a)(this,n)}}var b=Object(l.createHigherOrderComponent)((function(e){return function(t){Object(a.a)(c,t);var n=p(c);function c(){var e;return Object(r.a)(this,c),(e=n.apply(this,arguments)).focusContainRef=Object(u.createRef)(),e.handleTabBehaviour=e.handleTabBehaviour.bind(Object(i.a)(e)),e}return Object(o.a)(c,[{key:"handleTabBehaviour",value:function(e){if(e.keyCode===d.TAB){var t=f.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(u.createElement)("div",{onKeyDown:this.handleTabBehaviour,ref:this.focusContainRef,tabIndex:"-1"},Object(u.createElement)(e,this.props))}}]),c}(u.Component)}),"withConstrainedTabbing");t.a=b},function(e,t,n){"use strict";var r=n(17),o=n(21),i=n(22),a=n(23),c=n(24),s=n(19),u=n(0),l=n(2),d=n(10),f=n(199);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(s.a)(e);if(t){var o=Object(s.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(c.a)(this,n)}}t.a=Object(d.createHigherOrderComponent)((function e(t){if((c=t)instanceof u.Component||"function"==typeof c){var n=t;return e({})(n)}var c,s=t.onFocusReturn,d=void 0===s?l.stubTrue:s;return function(e){var t=function(t){Object(a.a)(c,t);var n=p(c);function c(){var e;return Object(o.a)(this,c),(e=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(i.a)(c,[{key:"componentWillUnmount",value:function(){var e=this.activeElementOnMount,t=this.isFocused,n=this.ownFocusedElements;if(t&&!1!==d())for(var o,i=[].concat(Object(r.a)(l.without.apply(void 0,[this.props.focus.focusHistory].concat(Object(r.a)(n)))),[e]);o=i.pop();)if(document.body.contains(o))return void o.focus()}},{key:"render",value:function(){return Object(u.createElement)("div",{onFocus:this.setIsFocusedTrue,onBlur:this.setIsFocusedFalse},Object(u.createElement)(e,this.props.childProps))}}]),c}(u.Component);return function(e){return Object(u.createElement)(f.a,null,(function(n){return Object(u.createElement)(t,{childProps:e,focus:n})}))}}}),"withFocusReturn")},function(e,t,n){"use strict";var r=n(8),o=n(14),i=n(0);function a(e){e.stopPropagation()}t.a=Object(i.forwardRef)((function(e,t){var n=e.children,c=Object(o.a)(e,["children"]);return Object(i.createElement)("div",Object(r.a)({},c,{ref:t,onMouseDown:a}),n)}))},function(e,t,n){"use strict";(function(e){var r=n(8),o=n(5),i=n(14),a=n(0),c=n(488),s=(n(90),n(91));function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){Object(o.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.a=Object(a.forwardRef)((function(t,n){var o=t.children,u=t.as,d=Object(i.a)(t,["children","as"]),f=Object(a.useContext)(s.a);if("function"!=typeof o&&!u)return void 0!==e&&e.env,null;var p=l(l({},d),{},{ref:n,"data-toolbar-item":!0});return f?Object(a.createElement)(c.a,Object(r.a)({},f,p,{as:u}),o):u?Object(a.createElement)(u,p,o):o(p)}))}).call(this,n(102))},function(e,t,n){"use strict";(function(e){var r=n(0),o=(n(90),Object(r.createContext)({slots:{},fills:{},registerSlot:function(){void 0!==e&&e.env},updateSlot:function(){},unregisterSlot:function(){},registerFill:function(){},unregisterFill:function(){}}));t.a=o}).call(this,n(102))},,,function(e,t,n){"use strict";var r=n(5),o=n(14),i=n(0);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.a=function(e){var t=e.icon,n=e.size,c=void 0===n?24:n,s=Object(o.a)(e,["icon","size"]);return Object(i.cloneElement)(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({width:c,height:c},s))}},function(e,t,n){"use strict";var r=n(143);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var r=n(58),o=n(188),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&i(e,".prototype.")?o(n):n}},function(e,t,n){var r=n(44),o=n(372),i=n(373);e.exports={momentObj:i.createMomentChecker("object",(function(e){return"object"==typeof e}),(function(e){return o.isValidMoment(e)}),"Moment"),momentString:i.createMomentChecker("string",(function(e){return"string"==typeof e}),(function(e){return o.isValidMoment(r(e))}),"Moment"),momentDurationObj:i.createMomentChecker("object",(function(e){return"object"==typeof e}),(function(e){return r.isDuration(e)}),"Duration")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(28),i=(r=o)&&r.__esModule?r:{default:r},a=n(78);t.default=i.default.oneOf([a.HORIZONTAL_ORIENTATION,a.VERTICAL_ORIENTATION,a.VERTICAL_SCROLLABLE])},function(e,t,n){"use strict";var r=n(387);e.exports=function(e,t,n){return!r(e.props,t)||!r(e.state,n)}},function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},,,function(e,t,n){"use strict";var r=n(8),o=n(14),i=n(0);t.a=function(e){var t=e.icon,n=e.className,a=Object(o.a)(e,["icon","className"]),c=["dashicon","dashicons","dashicons-"+t,n].filter(Boolean).join(" ");return Object(i.createElement)("span",Object(r.a)({className:c},a))}},function(e,t,n){var r=n(13),o={display:"block",opacity:0,position:"absolute",top:0,left:0,height:"100%",width:"100%",overflow:"hidden",pointerEvents:"none",zIndex:-1},i=function(e){var t=e.onResize,n=r.useRef();return function(e,t){var n=function(){return e.current&&e.current.contentDocument&&e.current.contentDocument.defaultView};function o(){t();var e=n();e&&e.addEventListener("resize",t)}r.useEffect((function(){return n()?o():e.current&&e.current.addEventListener&&e.current.addEventListener("load",o),function(){var e=n();e&&"function"==typeof e.removeEventListener&&e.removeEventListener("resize",t)}}),[])}(n,(function(){return t(n)})),r.createElement("iframe",{style:o,src:"about:blank",ref:n,"aria-hidden":!0,tabIndex:-1,frameBorder:0})},a=function(e){return{width:null!=e?e.offsetWidth:null,height:null!=e?e.offsetHeight:null}};e.exports=function(e){void 0===e&&(e=a);var t=r.useState(e(null)),n=t[0],o=t[1],c=r.useCallback((function(t){return o(e(t.current))}),[e]);return[r.useMemo((function(){return r.createElement(i,{onResize:c})}),[c]),n]}},,,,,,,function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M13 11.9l3.3-3.4-1.1-1-3.2 3.3-3.2-3.3-1.1 1 3.3 3.4-3.5 3.6 1 1L12 13l3.5 3.5 1-1z"}));t.a=i},function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));t.a=i},function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18.3 5.6L9.9 16.9l-4.6-3.4-.9 1.2 5.8 4.3 9.3-12.6z"}));t.a=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(28),i=(r=o)&&r.__esModule?r:{default:r},a=n(78);t.default=i.default.oneOf(a.WEEKDAYS)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(28),i=(r=o)&&r.__esModule?r:{default:r},a=n(89);function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}t.default=(0,a.and)([i.default.instanceOf(Set),function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var a=e[t],u=void 0;return[].concat(s(a)).some((function(e,n){var o,a=String(t)+": index "+String(n);return null!=(u=(o=i.default.string).isRequired.apply(o,[c({},a,e),a].concat(r)))})),null==u?null:u}],"Modifiers (Set of Strings)")},,function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(5),o=n(0),i=n(138);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e){var t=Object(o.useContext)(i.a),n=t.slots[e]||{},r=t.fills[e],a=Object(o.useMemo)((function(){return r||[]}),[r]),s=Object(o.useCallback)((function(n){t.updateSlot(e,n)}),[e,t.updateSlot]),u=Object(o.useCallback)((function(n){t.unregisterSlot(e,n)}),[e,t.unregisterSlot]),l=Object(o.useCallback)((function(n){t.registerFill(e,n)}),[e,t.registerFill]),d=Object(o.useCallback)((function(n){t.unregisterFill(e,n)}),[e,t.unregisterFill]);return c(c({},n),{},{updateSlot:s,unregisterSlot:u,fills:a,registerFill:l,unregisterFill:d})}},function(e,t,n){"use strict";var r=n(21),o=n(22),i=n(23),a=n(24),c=n(19),s=n(0);function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(c.a)(e);if(t){var o=Object(c.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(a.a)(this,n)}}t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.htmlDocument,n=void 0===t?document:t,a=e.className,c=void 0===a?"lockscroll":a,l=0,d=0;function f(e){var t=n.scrollingElement||n.body;e&&(d=t.scrollTop);var r=e?"add":"remove";t.classList[r](c),n.documentElement.classList[r](c),e||(t.scrollTop=d)}function p(){0===l&&f(!0),++l}function b(){1===l&&f(!1),--l}return function(e){Object(i.a)(n,e);var t=u(n);function n(){return Object(r.a)(this,n),t.apply(this,arguments)}return Object(o.a)(n,[{key:"componentDidMount",value:function(){p()}},{key:"componentWillUnmount",value:function(){b()}},{key:"render",value:function(){return null}}]),n}(s.Component)}()},function(e,t,n){"use strict";(function(e){var r=n(0),o=n(2),i=n(9),a=n.n(i),c=n(46),s=n(1),u=(n(90),n(35));t.a=Object(r.forwardRef)((function(t,n){var i=t.className,l=t.children,d=t.spokenMessage,f=void 0===d?l:d,p=t.politeness,b=void 0===p?"polite":p,h=t.actions,v=void 0===h?[]:h,m=t.onRemove,y=void 0===m?o.noop:m;!function(e,t){var n="string"==typeof e?e:Object(r.renderToString)(e);Object(r.useEffect)((function(){n&&Object(c.speak)(n,t)}),[n,t])}(f,b),Object(r.useEffect)((function(){var e=setTimeout((function(){y()}),1e4);return function(){return clearTimeout(e)}}),[]);var g=a()(i,"components-snackbar");return v&&v.length>1&&(void 0!==e&&e.env,v=[v[0]]),Object(r.createElement)("div",{ref:n,className:g,onClick:y,tabIndex:"0",role:"button",onKeyPress:y,"aria-label":Object(s.__)("Dismiss this notice")},Object(r.createElement)("div",{className:"components-snackbar__content"},l,v.map((function(e,t){var n=e.label,o=e.onClick,i=e.url;return Object(r.createElement)(u.a,{key:t,href:i,isTertiary:!0,onClick:function(e){e.stopPropagation(),o&&o(e)},className:"components-snackbar__action"},n)}))))}))}).call(this,n(102))},,,,,function(e,t,n){"use strict";var r=n(0),o=n(2);t.a=function(e){var t,n,i=e.shortcut,a=e.className;return i?(Object(o.isString)(i)&&(t=i),Object(o.isObject)(i)&&(t=i.display,n=i.ariaLabel),Object(r.createElement)("span",{className:a,"aria-label":n},t)):null}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(15),o=(n(13),n(62)),i=n(52);function a(e){void 0===e&&(e={});var t=Object(o.a)(e),n=t.orientation,a=void 0===n?"horizontal":n,c=Object(r.a)(t,["orientation"]);return Object(i.g)(Object(r.b)({orientation:a},c))}var c=[].concat(i.g.__keys);a.__keys=c},,,,function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}},function(e,t){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=n(185);e.exports=function(e,t,n){n=n||{},9===t.nodeType&&(t=r.getWindow(t));var o=n.allowHorizontalScroll,i=n.onlyScrollIfNeeded,a=n.alignWithTop,c=n.alignWithLeft,s=n.offsetTop||0,u=n.offsetLeft||0,l=n.offsetBottom||0,d=n.offsetRight||0;o=void 0===o||o;var f=r.isWindow(t),p=r.offset(e),b=r.outerHeight(e),h=r.outerWidth(e),v=void 0,m=void 0,y=void 0,g=void 0,O=void 0,j=void 0,w=void 0,k=void 0,_=void 0,S=void 0;f?(w=t,S=r.height(w),_=r.width(w),k={left:r.scrollLeft(w),top:r.scrollTop(w)},O={left:p.left-k.left-u,top:p.top-k.top-s},j={left:p.left+h-(k.left+_)+d,top:p.top+b-(k.top+S)+l},g=k):(v=r.offset(t),m=t.clientHeight,y=t.clientWidth,g={left:t.scrollLeft,top:t.scrollTop},O={left:p.left-(v.left+(parseFloat(r.css(t,"borderLeftWidth"))||0))-u,top:p.top-(v.top+(parseFloat(r.css(t,"borderTopWidth"))||0))-s},j={left:p.left+h-(v.left+y+(parseFloat(r.css(t,"borderRightWidth"))||0))+d,top:p.top+b-(v.top+m+(parseFloat(r.css(t,"borderBottomWidth"))||0))+l}),O.top<0||j.top>0?!0===a?r.scrollTop(t,g.top+O.top):!1===a?r.scrollTop(t,g.top+j.top):O.top<0?r.scrollTop(t,g.top+O.top):r.scrollTop(t,g.top+j.top):i||((a=void 0===a||!!a)?r.scrollTop(t,g.top+O.top):r.scrollTop(t,g.top+j.top)),o&&(O.left<0||j.left>0?!0===c?r.scrollLeft(t,g.left+O.left):!1===c?r.scrollLeft(t,g.left+j.left):O.left<0?r.scrollLeft(t,g.left+O.left):r.scrollLeft(t,g.left+j.left):i||((c=void 0===c||!!c)?r.scrollLeft(t,g.left+O.left):r.scrollLeft(t,g.left+j.left)))}},function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function i(e,t){var n=e["page"+(t?"Y":"X")+"Offset"],r="scroll"+(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}function a(e){return i(e)}function c(e){return i(e,!0)}function s(e){var t=function(e){var t,n=void 0,r=void 0,o=e.ownerDocument,i=o.body,a=o&&o.documentElement;return n=(t=e.getBoundingClientRect()).left,r=t.top,{left:n-=a.clientLeft||i.clientLeft||0,top:r-=a.clientTop||i.clientTop||0}}(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=a(r),t.top+=c(r),t}var u=new RegExp("^("+/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source+")(?!px)[a-z%]+$","i"),l=/^(top|right|bottom|left)$/,d="left";var f=void 0;function p(e,t){for(var n=0;n<e.length;n++)t(e[n])}function b(e){return"border-box"===f(e,"boxSizing")}"undefined"!=typeof window&&(f=window.getComputedStyle?function(e,t,n){var r="",o=e.ownerDocument,i=n||o.defaultView.getComputedStyle(e,null);return i&&(r=i.getPropertyValue(t)||i[t]),r}:function(e,t){var n=e.currentStyle&&e.currentStyle[t];if(u.test(n)&&!l.test(t)){var r=e.style,o=r[d],i=e.runtimeStyle[d];e.runtimeStyle[d]=e.currentStyle[d],r[d]="fontSize"===t?"1em":n||0,n=r.pixelLeft+"px",r[d]=o,e.runtimeStyle[d]=i}return""===n?"auto":n});var h=["margin","border","padding"];function v(e,t,n){var r={},o=e.style,i=void 0;for(i in t)t.hasOwnProperty(i)&&(r[i]=o[i],o[i]=t[i]);for(i in n.call(e),t)t.hasOwnProperty(i)&&(o[i]=r[i])}function m(e,t,n){var r=0,o=void 0,i=void 0,a=void 0;for(i=0;i<t.length;i++)if(o=t[i])for(a=0;a<n.length;a++){var c=void 0;c="border"===o?o+n[a]+"Width":o+n[a],r+=parseFloat(f(e,c))||0}return r}function y(e){return null!=e&&e==e.window}var g={};function O(e,t,n){if(y(e))return"width"===t?g.viewportWidth(e):g.viewportHeight(e);if(9===e.nodeType)return"width"===t?g.docWidth(e):g.docHeight(e);var r="width"===t?["Left","Right"]:["Top","Bottom"],o="width"===t?e.offsetWidth:e.offsetHeight,i=(f(e),b(e)),a=0;(null==o||o<=0)&&(o=void 0,(null==(a=f(e,t))||Number(a)<0)&&(a=e.style[t]||0),a=parseFloat(a)||0),void 0===n&&(n=i?1:-1);var c=void 0!==o||i,s=o||a;if(-1===n)return c?s-m(e,["border","padding"],r):a;if(c){var u=2===n?-m(e,["border"],r):m(e,["margin"],r);return s+(1===n?0:u)}return a+m(e,h.slice(n),r)}p(["Width","Height"],(function(e){g["doc"+e]=function(t){var n=t.document;return Math.max(n.documentElement["scroll"+e],n.body["scroll"+e],g["viewport"+e](n))},g["viewport"+e]=function(t){var n="client"+e,r=t.document,o=r.body,i=r.documentElement[n];return"CSS1Compat"===r.compatMode&&i||o&&o[n]||i}}));var j={position:"absolute",visibility:"hidden",display:"block"};function w(e){var t=void 0,n=arguments;return 0!==e.offsetWidth?t=O.apply(void 0,n):v(e,j,(function(){t=O.apply(void 0,n)})),t}function k(e,t,n){var r=n;if("object"!==(void 0===t?"undefined":o(t)))return void 0!==r?("number"==typeof r&&(r+="px"),void(e.style[t]=r)):f(e,t);for(var i in t)t.hasOwnProperty(i)&&k(e,i,t[i])}p(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);g["outer"+t]=function(t,n){return t&&w(t,e,n?0:1)};var n="width"===e?["Left","Right"]:["Top","Bottom"];g[e]=function(t,r){if(void 0===r)return t&&w(t,e,-1);if(t){f(t);return b(t)&&(r+=m(t,["padding","border"],n)),k(t,e,r)}}})),e.exports=r({getWindow:function(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},offset:function(e,t){if(void 0===t)return s(e);!function(e,t){"static"===k(e,"position")&&(e.style.position="relative");var n=s(e),r={},o=void 0,i=void 0;for(i in t)t.hasOwnProperty(i)&&(o=parseFloat(k(e,i))||0,r[i]=o+t[i]-n[i]);k(e,r)}(e,t)},isWindow:y,each:p,css:k,clone:function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);if(e.overflow)for(var n in e)e.hasOwnProperty(n)&&(t.overflow[n]=e.overflow[n]);return t},scrollLeft:function(e,t){if(y(e)){if(void 0===t)return a(e);window.scrollTo(t,c(e))}else{if(void 0===t)return e.scrollLeft;e.scrollLeft=t}},scrollTop:function(e,t){if(y(e)){if(void 0===t)return c(e);window.scrollTo(a(e),t)}else{if(void 0===t)return e.scrollTop;e.scrollTop=t}},viewportWidth:0,viewportHeight:0},g)},function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"}));t.a=i},function(e,t,n){"use strict";var r=Array.prototype.slice,o=n(219),i=Object.keys,a=i?function(e){return i(e)}:n(329),c=Object.keys;a.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)?c(r.call(e)):c(e)}):Object.keys=a;return Object.keys||a},e.exports=a},function(e,t,n){"use strict";var r=n(120),o=n(58),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||r.call(a,i),s=o("%Object.defineProperty%",!0);if(s)try{s({},"a",{value:1})}catch(e){s=null}e.exports=function(){return c(r,a,arguments)};var u=function(){return c(r,i,arguments)};s?s(e.exports,"apply",{value:u}):e.exports.apply=u},function(e,t,n){"use strict";var r=n(58)("%TypeError%"),o=n(333),i=n(132),a=n(93);e.exports=function(e,t){if("Object"!==a(e))throw new r("Assertion failed: Type(O) is not Object");if(!i(t))throw new r("Assertion failed: IsPropertyKey(P) is not true, got "+o(t));return e[t]}},function(e,t,n){"use strict";var r=n(58)("%Array%"),o=!r.isArray&&n(144)("Object.prototype.toString");e.exports=r.isArray||function(e){return"[object Array]"===o(e)}},function(e,t,n){"use strict";var r=n(58),o=r("%TypeError%"),i=r("%SyntaxError%"),a=n(94),c={"Property Descriptor":function(e,t){if("Object"!==e(t))return!1;var n={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var r in t)if(a(t,r)&&!n[r])return!1;var i=a(t,"[[Value]]"),c=a(t,"[[Get]]")||a(t,"[[Set]]");if(i&&c)throw new o("Property Descriptors may not be both accessor and data descriptors");return!0}};e.exports=function(e,t,n,r){var a=c[t];if("function"!=typeof a)throw new i("unknown record type: "+t);if(!a(e,r))throw new o(n+" must be a "+t)}},function(e,t,n){"use strict";e.exports=Number.isNaN||function(e){return e!=e}},function(e,t,n){"use strict";var r=Object.prototype.toString;if(n(360)()){var o=Symbol.prototype.toString,i=/^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()&&i.test(o.call(e))}(e)}catch(e){return!1}}}else e.exports=function(e){return!1}},function(e,t,n){"use strict";var r=Function.prototype.toString,o=/^\s*class\b/,i=function(e){try{var t=r.call(e);return o.test(t)}catch(e){return!1}},a=Object.prototype.toString,c="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(c)return function(e){try{return!i(e)&&(r.call(e),!0)}catch(e){return!1}}(e);if(i(e))return!1;var t=a.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t}},function(e,t,n){"use strict";var r=Object.getOwnPropertyDescriptor?function(){return Object.getOwnPropertyDescriptor(arguments,"callee").get}():function(){throw new TypeError},o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,i=Object.getPrototypeOf||function(e){return e.__proto__},a=void 0,c="undefined"==typeof Uint8Array?void 0:i(Uint8Array),s={"$ %Array%":Array,"$ %ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"$ %ArrayBufferPrototype%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer.prototype,"$ %ArrayIteratorPrototype%":o?i([][Symbol.iterator]()):void 0,"$ %ArrayPrototype%":Array.prototype,"$ %ArrayProto_entries%":Array.prototype.entries,"$ %ArrayProto_forEach%":Array.prototype.forEach,"$ %ArrayProto_keys%":Array.prototype.keys,"$ %ArrayProto_values%":Array.prototype.values,"$ %AsyncFromSyncIteratorPrototype%":void 0,"$ %AsyncFunction%":void 0,"$ %AsyncFunctionPrototype%":void 0,"$ %AsyncGenerator%":void 0,"$ %AsyncGeneratorFunction%":void 0,"$ %AsyncGeneratorPrototype%":void 0,"$ %AsyncIteratorPrototype%":a&&o&&Symbol.asyncIterator?a[Symbol.asyncIterator]():void 0,"$ %Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"$ %Boolean%":Boolean,"$ %BooleanPrototype%":Boolean.prototype,"$ %DataView%":"undefined"==typeof DataView?void 0:DataView,"$ %DataViewPrototype%":"undefined"==typeof DataView?void 0:DataView.prototype,"$ %Date%":Date,"$ %DatePrototype%":Date.prototype,"$ %decodeURI%":decodeURI,"$ %decodeURIComponent%":decodeURIComponent,"$ %encodeURI%":encodeURI,"$ %encodeURIComponent%":encodeURIComponent,"$ %Error%":Error,"$ %ErrorPrototype%":Error.prototype,"$ %eval%":eval,"$ %EvalError%":EvalError,"$ %EvalErrorPrototype%":EvalError.prototype,"$ %Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"$ %Float32ArrayPrototype%":"undefined"==typeof Float32Array?void 0:Float32Array.prototype,"$ %Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"$ %Float64ArrayPrototype%":"undefined"==typeof Float64Array?void 0:Float64Array.prototype,"$ %Function%":Function,"$ %FunctionPrototype%":Function.prototype,"$ %Generator%":void 0,"$ %GeneratorFunction%":void 0,"$ %GeneratorPrototype%":void 0,"$ %Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"$ %Int8ArrayPrototype%":"undefined"==typeof Int8Array?void 0:Int8Array.prototype,"$ %Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"$ %Int16ArrayPrototype%":"undefined"==typeof Int16Array?void 0:Int8Array.prototype,"$ %Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"$ %Int32ArrayPrototype%":"undefined"==typeof Int32Array?void 0:Int32Array.prototype,"$ %isFinite%":isFinite,"$ %isNaN%":isNaN,"$ %IteratorPrototype%":o?i(i([][Symbol.iterator]())):void 0,"$ %JSON%":JSON,"$ %JSONParse%":JSON.parse,"$ %Map%":"undefined"==typeof Map?void 0:Map,"$ %MapIteratorPrototype%":"undefined"!=typeof Map&&o?i((new Map)[Symbol.iterator]()):void 0,"$ %MapPrototype%":"undefined"==typeof Map?void 0:Map.prototype,"$ %Math%":Math,"$ %Number%":Number,"$ %NumberPrototype%":Number.prototype,"$ %Object%":Object,"$ %ObjectPrototype%":Object.prototype,"$ %ObjProto_toString%":Object.prototype.toString,"$ %ObjProto_valueOf%":Object.prototype.valueOf,"$ %parseFloat%":parseFloat,"$ %parseInt%":parseInt,"$ %Promise%":"undefined"==typeof Promise?void 0:Promise,"$ %PromisePrototype%":"undefined"==typeof Promise?void 0:Promise.prototype,"$ %PromiseProto_then%":"undefined"==typeof Promise?void 0:Promise.prototype.then,"$ %Promise_all%":"undefined"==typeof Promise?void 0:Promise.all,"$ %Promise_reject%":"undefined"==typeof Promise?void 0:Promise.reject,"$ %Promise_resolve%":"undefined"==typeof Promise?void 0:Promise.resolve,"$ %Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"$ %RangeError%":RangeError,"$ %RangeErrorPrototype%":RangeError.prototype,"$ %ReferenceError%":ReferenceError,"$ %ReferenceErrorPrototype%":ReferenceError.prototype,"$ %Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"$ %RegExp%":RegExp,"$ %RegExpPrototype%":RegExp.prototype,"$ %Set%":"undefined"==typeof Set?void 0:Set,"$ %SetIteratorPrototype%":"undefined"!=typeof Set&&o?i((new Set)[Symbol.iterator]()):void 0,"$ %SetPrototype%":"undefined"==typeof Set?void 0:Set.prototype,"$ %SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"$ %SharedArrayBufferPrototype%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer.prototype,"$ %String%":String,"$ %StringIteratorPrototype%":o?i(""[Symbol.iterator]()):void 0,"$ %StringPrototype%":String.prototype,"$ %Symbol%":o?Symbol:void 0,"$ %SymbolPrototype%":o?Symbol.prototype:void 0,"$ %SyntaxError%":SyntaxError,"$ %SyntaxErrorPrototype%":SyntaxError.prototype,"$ %ThrowTypeError%":r,"$ %TypedArray%":c,"$ %TypedArrayPrototype%":c?c.prototype:void 0,"$ %TypeError%":TypeError,"$ %TypeErrorPrototype%":TypeError.prototype,"$ %Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"$ %Uint8ArrayPrototype%":"undefined"==typeof Uint8Array?void 0:Uint8Array.prototype,"$ %Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"$ %Uint8ClampedArrayPrototype%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray.prototype,"$ %Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"$ %Uint16ArrayPrototype%":"undefined"==typeof Uint16Array?void 0:Uint16Array.prototype,"$ %Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"$ %Uint32ArrayPrototype%":"undefined"==typeof Uint32Array?void 0:Uint32Array.prototype,"$ %URIError%":URIError,"$ %URIErrorPrototype%":URIError.prototype,"$ %WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"$ %WeakMapPrototype%":"undefined"==typeof WeakMap?void 0:WeakMap.prototype,"$ %WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet,"$ %WeakSetPrototype%":"undefined"==typeof WeakSet?void 0:WeakSet.prototype};e.exports=function(e,t){if(arguments.length>1&&"boolean"!=typeof t)throw new TypeError('"allowMissing" argument must be a boolean');var n="$ "+e;if(!(n in s))throw new SyntaxError("intrinsic "+e+" does not exist!");if(void 0===s[n]&&!t)throw new TypeError("intrinsic "+e+" exists, but is not available. Please file an issue!");return s[n]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return!(!i.default.isMoment(e)||!i.default.isMoment(t))&&(e.date()===t.date()&&e.month()===t.month()&&e.year()===t.year())};var r,o=n(44),i=(r=o)&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=r.default.isMoment(e)?e:(0,o.default)(e,t);return n?n.format(i.ISO_MONTH_FORMAT):null};var r=a(n(44)),o=a(n(254)),i=n(78);function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(17),o=n(21),i=n(22),a=n(16),c=n(23),s=n(24),u=n(19),l=n(0),d=n(2);function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(s.a)(this,n)}}var p=Object(l.createContext)({focusHistory:[]}),b=p.Provider,h=p.Consumer;b.displayName="FocusReturnProvider",h.displayName="FocusReturnConsumer";var v=function(e){Object(c.a)(n,e);var t=f(n);function n(){var e;return Object(o.a)(this,n),(e=t.apply(this,arguments)).onFocus=e.onFocus.bind(Object(a.a)(e)),e.state={focusHistory:[]},e}return Object(i.a)(n,[{key:"onFocus",value:function(e){var t=this.state.focusHistory,n=Object(d.uniq)([].concat(Object(r.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(l.createElement)(b,{value:this.state},Object(l.createElement)("div",{onFocus:this.onFocus,className:n},t))}}]),n}(l.Component);t.b=v},function(e,t,n){"use strict";e.exports=n(322)},function(e,t){var n={};n.parse=function(){var e=/^(\-(webkit|o|ms|moz)\-)?(linear\-gradient)/i,t=/^(\-(webkit|o|ms|moz)\-)?(repeating\-linear\-gradient)/i,n=/^(\-(webkit|o|ms|moz)\-)?(radial\-gradient)/i,r=/^(\-(webkit|o|ms|moz)\-)?(repeating\-radial\-gradient)/i,o=/^to (left (top|bottom)|right (top|bottom)|left|right|top|bottom)/i,i=/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,a=/^(left|center|right|top|bottom)/i,c=/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,s=/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,u=/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,l=/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,d=/^\(/,f=/^\)/,p=/^,/,b=/^\#([0-9a-fA-F]+)/,h=/^([a-zA-Z]+)/,v=/^rgb/i,m=/^rgba/i,y=/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/,g="";function O(e){var t=new Error(g+": "+e);throw t.source=g,t}function j(){var e=D(w);return g.length>0&&O("Invalid input not EOF"),e}function w(){return k("linear-gradient",e,S)||k("repeating-linear-gradient",t,S)||k("radial-gradient",n,E)||k("repeating-radial-gradient",r,E)}function k(e,t,n){return _(t,(function(t){var r=n();return r&&(A(p)||O("Missing comma before color stops")),{type:e,orientation:r,colorStops:D(M)}}))}function _(e,t){var n=A(e);if(n)return A(d)||O("Missing ("),result=t(n),A(f)||O("Missing )"),result}function S(){return N("directional",o,1)||N("angular",l,1)}function E(){var e,t,n=x();return n&&((e=[]).push(n),t=g,A(p)&&((n=x())?e.push(n):g=t)),e}function x(){var e=function(){var e=N("shape",/^(circle)/i,0);e&&(e.style=R()||C());return e}()||function(){var e=N("shape",/^(ellipse)/i,0);e&&(e.style=I()||C());return e}();if(e)e.at=function(){if(N("position",/^at/,0)){var e=P();return e||O("Missing positioning value"),e}}();else{var t=P();t&&(e={type:"default-radial",at:t})}return e}function C(){return N("extent-keyword",i,1)}function P(){var e={x:I(),y:I()};if(e.x||e.y)return{type:"position",value:e}}function D(e){var t=e(),n=[];if(t)for(n.push(t);A(p);)(t=e())?n.push(t):O("One extra comma");return n}function M(){var e=N("hex",b,1)||_(m,(function(){return{type:"rgba",value:D(T)}}))||_(v,(function(){return{type:"rgb",value:D(T)}}))||N("literal",h,0);return e||O("Expected color definition"),e.length=I(),e}function T(){return A(y)[1]}function I(){return N("%",s,1)||N("position-keyword",a,1)||R()}function R(){return N("px",c,1)||N("em",u,1)}function N(e,t,n){var r=A(t);if(r)return{type:e,value:r[n]}}function A(e){var t,n;return(n=/^[\n\r\t\s]+/.exec(g))&&L(n[0].length),(t=e.exec(g))&&L(t[0].length),t}function L(e){g=g.substr(e)}return function(e){return g=e.toString(),j()}}(),t.parse=(n||{}).parse},,,,,,,,function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));t.a=i},,,,,function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));t.a=i},function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));t.a=i},,function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"}));t.a=i},function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M15.6 7.3h-.7l1.6-3.5-.9-.4-3.9 8.5H9v1.5h2l-1.3 2.8H8.4c-2 0-3.7-1.7-3.7-3.7s1.7-3.7 3.7-3.7H10V7.3H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H9l-1.4 3.2.9.4 5.7-12.5h1.4c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.9 0 5.2-2.3 5.2-5.2 0-2.9-2.4-5.2-5.2-5.2z"}));t.a=i},function(e,t,n){"use strict";var r=Object.prototype.toString;e.exports=function(e){var t=r.call(e),n="[object Arguments]"===t;return n||(n="[object Array]"!==t&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===r.call(e.callee)),n}},function(e,t,n){"use strict";(function(t){var r=t.Symbol,o=n(331);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}}).call(this,n(131))},function(e,t,n){"use strict";var r=n(332),o=n(342),i=n(189),a=n(233),c=n(232),s=n(362);e.exports=function(){var e=s(this),t=c(i(e,"length")),n=1;arguments.length>0&&void 0!==arguments[0]&&(n=a(arguments[0]));var u=r(e,0);return o(u,e,t,0,n),u}},function(e,t,n){"use strict";var r=n(58)("%Object.defineProperty%",!0);if(r)try{r({},"a",{value:1})}catch(e){r=null}var o=n(144)("Object.prototype.propertyIsEnumerable");e.exports=function(e,t,n,i,a,c){if(!r){if(!e(c))return!1;if(!c["[[Configurable]]"]||!c["[[Writable]]"])return!1;if(a in i&&o(i,a)!==!!c["[[Enumerable]]"])return!1;var s=c["[[Value]]"];return i[a]=s,t(i[a],s)}return r(i,a,n(c)),!0}},function(e,t,n){"use strict";var r=n(191),o=n(93);e.exports=function(e){if(void 0===e)return e;r(o,"Property Descriptor","Desc",e);var t={};return"[[Value]]"in e&&(t.value=e["[[Value]]"]),"[[Writable]]"in e&&(t.writable=e["[[Writable]]"]),"[[Get]]"in e&&(t.get=e["[[Get]]"]),"[[Set]]"in e&&(t.set=e["[[Set]]"]),"[[Enumerable]]"in e&&(t.enumerable=e["[[Enumerable]]"]),"[[Configurable]]"in e&&(t.configurable=e["[[Configurable]]"]),t}},function(e,t,n){"use strict";var r=n(94),o=n(191),i=n(93);e.exports=function(e){return void 0!==e&&(o(i,"Property Descriptor","Desc",e),!(!r(e,"[[Value]]")&&!r(e,"[[Writable]]")))}},function(e,t,n){"use strict";var r=n(192);e.exports=function(e,t){return e===t?0!==e||1/e==1/t:r(e)&&r(t)}},function(e,t,n){"use strict";var r=n(94),o=n(58)("%TypeError%"),i=n(93),a=n(227),c=n(340);e.exports=function(e){if("Object"!==i(e))throw new o("ToPropertyDescriptor requires an object");var t={};if(r(e,"enumerable")&&(t["[[Enumerable]]"]=a(e.enumerable)),r(e,"configurable")&&(t["[[Configurable]]"]=a(e.configurable)),r(e,"value")&&(t["[[Value]]"]=e.value),r(e,"writable")&&(t["[[Writable]]"]=a(e.writable)),r(e,"get")){var n=e.get;if(void 0!==n&&!c(n))throw new o("getter must be a function");t["[[Get]]"]=n}if(r(e,"set")){var s=e.set;if(void 0!==s&&!c(s))throw new o("setter must be a function");t["[[Set]]"]=s}if((r(t,"[[Get]]")||r(t,"[[Set]]"))&&(r(t,"[[Value]]")||r(t,"[[Writable]]")))throw new o("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}},function(e,t,n){"use strict";e.exports=function(e){return!!e}},function(e,t,n){"use strict";var r,o,i=Function.prototype.toString,a="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof a&&"function"==typeof Object.defineProperty)try{r=Object.defineProperty({},"length",{get:function(){throw o}}),o={},a((function(){throw 42}),null,r)}catch(e){e!==o&&(a=null)}else a=null;var c=/^\s*class\b/,s=function(e){try{var t=i.call(e);return c.test(t)}catch(e){return!1}},u=Object.prototype.toString,l="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=a?function(e){if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;try{a(e,null,r)}catch(e){if(e!==o)return!1}return!s(e)}:function(e){if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;if(l)return function(e){try{return!s(e)&&(i.call(e),!0)}catch(e){return!1}}(e);if(s(e))return!1;var t=u.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t}},function(e,t,n){"use strict";var r=Number.isNaN||function(e){return e!=e};e.exports=Number.isFinite||function(e){return"number"==typeof e&&!r(e)&&e!==1/0&&e!==-1/0}},function(e,t,n){"use strict";var r=n(58),o=r("%Math%"),i=r("%Number%");e.exports=i.MAX_SAFE_INTEGER||o.pow(2,53)-1},function(e,t,n){"use strict";e.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},function(e,t,n){"use strict";var r=n(230),o=n(233);e.exports=function(e){var t=o(e);return t<=0?0:t>r?r:t}},function(e,t,n){"use strict";var r=n(352),o=n(355);e.exports=function(e){var t=o(e);return r(t)}},function(e,t,n){"use strict";var r=Date.prototype.getDay,o=Object.prototype.toString,i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(e){return"object"==typeof e&&null!==e&&(i?function(e){try{return r.call(e),!0}catch(e){return!1}}(e):"[object Date]"===o.call(e))}},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(221);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 i(e,t){var n=t(e(o));return function(){return n}}function a(e){return i(e,r.createLTR||r.create)}function c(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=r.resolve(t);return o}function s(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.resolveLTR?r.resolveLTR(t):c(t)}t.default={registerTheme:function(e){o=e},registerInterface:function(e){r=e},create:a,createLTR:a,createRTL:function(e){return i(e,r.createRTL||r.create)},get:function(){return o},resolve:s,resolveLTR:s,resolveRTL:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.resolveRTL?r.resolveRTL(t):c(t)},flush:function(){r.flush&&r.flush()}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={white:"#fff",gray:"#484848",grayLight:"#82888a",grayLighter:"#cacccd",grayLightest:"#f2f2f2",borderMedium:"#c4c4c4",border:"#dbdbdb",borderLight:"#e4e7e7",borderLighter:"#eceeee",borderBright:"#f4f5f5",primary:"#00a699",primaryShade_1:"#33dacd",primaryShade_2:"#66e2da",primaryShade_3:"#80e8e0",primaryShade_4:"#b2f1ec",primary_dark:"#008489",secondary:"#007a87",yellow:"#ffe8bc",yellow_dark:"#ffce71"};t.default={reactDates:{zIndex:0,border:{input:{border:0,borderTop:0,borderRight:0,borderBottom:"2px solid transparent",borderLeft:0,outlineFocused:0,borderFocused:0,borderTopFocused:0,borderLeftFocused:0,borderBottomFocused:"2px solid "+String(r.primary_dark),borderRightFocused:0,borderRadius:0},pickerInput:{borderWidth:1,borderStyle:"solid",borderRadius:2}},color:{core:r,disabled:r.grayLightest,background:r.white,backgroundDark:"#f2f2f2",backgroundFocused:r.white,border:"rgb(219, 219, 219)",text:r.gray,textDisabled:r.border,textFocused:"#007a87",placeholderText:"#757575",outside:{backgroundColor:r.white,backgroundColor_active:r.white,backgroundColor_hover:r.white,color:r.gray,color_active:r.gray,color_hover:r.gray},highlighted:{backgroundColor:r.yellow,backgroundColor_active:r.yellow_dark,backgroundColor_hover:r.yellow_dark,color:r.gray,color_active:r.gray,color_hover:r.gray},minimumNights:{backgroundColor:r.white,backgroundColor_active:r.white,backgroundColor_hover:r.white,borderColor:r.borderLighter,color:r.grayLighter,color_active:r.grayLighter,color_hover:r.grayLighter},hoveredSpan:{backgroundColor:r.primaryShade_4,backgroundColor_active:r.primaryShade_3,backgroundColor_hover:r.primaryShade_4,borderColor:r.primaryShade_3,borderColor_active:r.primaryShade_3,borderColor_hover:r.primaryShade_3,color:r.secondary,color_active:r.secondary,color_hover:r.secondary},selectedSpan:{backgroundColor:r.primaryShade_2,backgroundColor_active:r.primaryShade_1,backgroundColor_hover:r.primaryShade_1,borderColor:r.primaryShade_1,borderColor_active:r.primary,borderColor_hover:r.primary,color:r.white,color_active:r.white,color_hover:r.white},selected:{backgroundColor:r.primary,backgroundColor_active:r.primary,backgroundColor_hover:r.primary,borderColor:r.primary,borderColor_active:r.primary,borderColor_hover:r.primary,color:r.white,color_active:r.white,color_hover:r.white},blocked_calendar:{backgroundColor:r.grayLighter,backgroundColor_active:r.grayLighter,backgroundColor_hover:r.grayLighter,borderColor:r.grayLighter,borderColor_active:r.grayLighter,borderColor_hover:r.grayLighter,color:r.grayLight,color_active:r.grayLight,color_hover:r.grayLight},blocked_out_of_range:{backgroundColor:r.white,backgroundColor_active:r.white,backgroundColor_hover:r.white,borderColor:r.borderLight,borderColor_active:r.borderLight,borderColor_hover:r.borderLight,color:r.grayLighter,color_active:r.grayLighter,color_hover:r.grayLighter}},spacing:{dayPickerHorizontalPadding:9,captionPaddingTop:22,captionPaddingBottom:37,inputPadding:0,displayTextPaddingVertical:void 0,displayTextPaddingTop:11,displayTextPaddingBottom:9,displayTextPaddingHorizontal:void 0,displayTextPaddingLeft:11,displayTextPaddingRight:11,displayTextPaddingVertical_small:void 0,displayTextPaddingTop_small:7,displayTextPaddingBottom_small:5,displayTextPaddingHorizontal_small:void 0,displayTextPaddingLeft_small:7,displayTextPaddingRight_small:7},sizing:{inputWidth:130,inputWidth_small:97,arrowWidth:24},noScrollBarOnVerticalScrollable:!1,font:{size:14,captionSize:18,input:{size:19,lineHeight:"24px",size_small:15,lineHeight_small:"18px",letterSpacing_small:"0.2px",styleDisabled:"italic"}}}}},function(e,t,n){"use strict";var r=n(187),o=n(120),i=function(e){return null!=e},a=n(235)(),c=Object,s=o.call(Function.call,Array.prototype.push),u=o.call(Function.call,Object.prototype.propertyIsEnumerable),l=a?Object.getOwnPropertySymbols:null;e.exports=function(e,t){if(!i(e))throw new TypeError("target must be an object");var n,o,d,f,p,b,h,v=c(e);for(n=1;n<arguments.length;++n){o=c(arguments[n]),f=r(o);var m=a&&(Object.getOwnPropertySymbols||l);if(m)for(p=m(o),d=0;d<p.length;++d)h=p[d],u(o,h)&&s(f,h);for(d=0;d<f.length;++d)b=o[h=f[d]],u(o,h)&&(v[h]=b)}return v}},function(e,t,n){"use strict";var r=n(239);e.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),n={},r=0;r<t.length;++r)n[t[r]]=t[r];var o=Object.assign({},n),i="";for(var a in o)i+=a;return e!==i}()||function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch(t){return"y"===e[1]}return!1}()?r:Object.assign:r}},function(e,t,n){"use strict";var r=n(103),o=n(242),i=n(250),a=n(384),c=i();r(c,{getPolyfill:i,implementation:o,shim:a}),e.exports=c},function(e,t,n){"use strict";var r=n(375),o=n(94),i=n(120).call(Function.call,Object.prototype.propertyIsEnumerable);e.exports=function(e){var t=r.RequireObjectCoercible(e),n=[];for(var a in t)o(t,a)&&i(t,a)&&n.push(t[a]);return n}},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(195),o=r("%TypeError%"),i=r("%SyntaxError%"),a=n(94),c={"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(a(t,r)&&!n[r])return!1;var i=a(t,"[[Value]]"),c=a(t,"[[Get]]")||a(t,"[[Set]]");if(i&&c)throw new o("Property Descriptors may not be both accessor and data descriptors");return!0}};e.exports=function(e,t,n,r){var a=c[t];if("function"!=typeof a)throw new i("unknown record type: "+t);if(!a(e,r))throw new o(n+" must be a "+t);console.log(a(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,n){var r=n(120).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){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(242);e.exports=function(){return"function"==typeof Object.values?Object.values:r}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return!("undefined"==typeof window||!("ontouchstart"in window||window.DocumentTouch&&"undefined"!=typeof document&&document instanceof window.DocumentTouch))||!("undefined"==typeof navigator||!navigator.maxTouchPoints&&!navigator.msMaxTouchPoints)},e.exports=t.default},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)&&!(0,i.default)(e,t))};var r=a(n(44)),o=a(n(253)),i=a(n(196));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(!i.default.isMoment(e)||!i.default.isMoment(t))return!1;var n=e.year(),r=e.month(),o=t.year(),a=t.month(),c=n===o,s=r===a;return c&&s?e.date()<t.date():c?r<a:n<o};var r,o=n(44),i=(r=o)&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=t?[t,a.DISPLAY_FORMAT,a.ISO_FORMAT]:[a.DISPLAY_FORMAT,a.ISO_FORMAT],r=(0,i.default)(e,n,!0);return r.isValid()?r.hour(12):null};var r,o=n(44),i=(r=o)&&r.__esModule?r:{default:r},a=n(78)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,i){var a=t.clone().startOf("month");i&&(a=a.startOf("week"));if((0,r.default)(e,a))return!1;var c=t.clone().add(n-1,"months").endOf("month");i&&(c=c.endOf("week"));return!(0,o.default)(e,c)};var r=i(n(253)),o=i(n(252));function i(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){var n=r.default.isMoment(e)?e:(0,o.default)(e,t);return n?n.format(i.ISO_FORMAT):null};var r=a(n(44)),o=a(n(254)),i=n(78);function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(28),i=(r=o)&&r.__esModule?r:{default:r},a=n(78);t.default=i.default.oneOf([a.INFO_POSITION_TOP,a.INFO_POSITION_BOTTOM,a.INFO_POSITION_BEFORE,a.INFO_POSITION_AFTER])},function(e,t,n){var r=n(396),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},function(e,t,n){var r=n(258).Symbol;e.exports=r},function(e,t,n){"use strict";n.r(t),n.d(t,"addEventListener",(function(){return s}));var r=!("undefined"==typeof window||!window.document||!window.document.createElement);var o=void 0;function i(){return void 0===o&&(o=function(){if(!r)return!1;if(!window.addEventListener||!window.removeEventListener||!Object.defineProperty)return!1;var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}}),n=function(){};window.addEventListener("testPassiveEventSupport",n,t),window.removeEventListener("testPassiveEventSupport",n,t)}catch(e){}return e}()),o}function a(e){e.handlers===e.nextHandlers&&(e.nextHandlers=e.handlers.slice())}function c(e){this.target=e,this.events={}}c.prototype.getEventHandlers=function(e,t){var n,r=String(e)+" "+String((n=t)?!0===n?100:(n.capture<<0)+(n.passive<<1)+(n.once<<2):0);return this.events[r]||(this.events[r]={handlers:[],handleEvent:void 0},this.events[r].nextHandlers=this.events[r].handlers),this.events[r]},c.prototype.handleEvent=function(e,t,n){var r=this.getEventHandlers(e,t);r.handlers=r.nextHandlers,r.handlers.forEach((function(e){e&&e(n)}))},c.prototype.add=function(e,t,n){var r=this,o=this.getEventHandlers(e,n);a(o),0===o.nextHandlers.length&&(o.handleEvent=this.handleEvent.bind(this,e,n),this.target.addEventListener(e,o.handleEvent,n)),o.nextHandlers.push(t);var i=!0;return function(){if(i){i=!1,a(o);var c=o.nextHandlers.indexOf(t);o.nextHandlers.splice(c,1),0===o.nextHandlers.length&&(r.target&&r.target.removeEventListener(e,o.handleEvent,n),o.handleEvent=void 0)}}};function s(e,t,n,r){e.__consolidated_events_handlers__||(e.__consolidated_events_handlers__=new c(e));var o=function(e){if(e)return i()?e:!!e.capture}(r);return e.__consolidated_events_handlers__.add(t,n,o)}},function(e,t,n){"use strict";e.exports=function(e){if(arguments.length<1)throw new TypeError("1 argument is required");if("object"!=typeof e)throw new TypeError("Argument 1 (”other“) to Node.contains must be an instance of Node");var t=e;do{if(this===t)return!0;t&&(t=t.parentNode)}while(t);return!1}},function(e,t,n){"use strict";var r=n(261);e.exports=function(){if("undefined"!=typeof document){if(document.contains)return document.contains;if(document.body&&document.body.contains)try{if("boolean"==typeof document.body.contains.call(document,""))return document.body.contains}catch(e){}}return r}},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<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=y(n(95)),a=y(n(13)),c=y(n(28)),s=y(n(147)),u=y(n(145)),l=n(89),d=n(112),f=y(n(44)),p=n(110),b=y(n(111)),h=y(n(264)),v=y(n(163)),m=n(78);function y(e){return e&&e.__esModule?e:{default:e}}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O(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}var j=(0,l.forbidExtraProps)((0,i.default)({},d.withStylesPropTypes,{day:u.default.momentObj,daySize:l.nonNegativeInteger,isOutsideDay:c.default.bool,modifiers:v.default,isFocused:c.default.bool,tabIndex:c.default.oneOf([0,-1]),onDayClick:c.default.func,onDayMouseEnter:c.default.func,onDayMouseLeave:c.default.func,renderDayContents:c.default.func,ariaLabelFormat:c.default.string,phrases:c.default.shape((0,b.default)(p.CalendarDayPhrases))})),w={day:(0,f.default)(),daySize:m.DAY_SIZE,isOutsideDay:!1,modifiers:new Set,isFocused:!1,tabIndex:-1,onDayClick:function(){},onDayMouseEnter:function(){},onDayMouseLeave:function(){},renderDayContents:null,ariaLabelFormat:"dddd, LL",phrases:p.CalendarDayPhrases},k=function(e){function t(){var e;g(this,t);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];var i=O(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(r)));return i.setButtonRef=i.setButtonRef.bind(i),i}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)}(t,e),o(t,[{key:"shouldComponentUpdate",value:function(e,t){return(0,s.default)(this,e,t)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isFocused,r=t.tabIndex;0===r&&(n||r!==e.tabIndex)&&this.buttonRef.focus()}},{key:"onDayClick",value:function(e,t){(0,this.props.onDayClick)(e,t)}},{key:"onDayMouseEnter",value:function(e,t){(0,this.props.onDayMouseEnter)(e,t)}},{key:"onDayMouseLeave",value:function(e,t){(0,this.props.onDayMouseLeave)(e,t)}},{key:"onKeyDown",value:function(e,t){var n=this.props.onDayClick,r=t.key;"Enter"!==r&&" "!==r||n(e,t)}},{key:"setButtonRef",value:function(e){this.buttonRef=e}},{key:"render",value:function(){var e=this,t=this.props,n=t.day,o=t.ariaLabelFormat,i=t.daySize,c=t.isOutsideDay,s=t.modifiers,u=t.renderDayContents,l=t.tabIndex,f=t.styles,p=t.phrases;if(!n)return a.default.createElement("td",null);var b=(0,h.default)(n,o,i,s,p),v=b.daySizeStyles,m=b.useDefaultCursor,y=b.selected,g=b.hoveredSpan,O=b.isOutsideRange,j=b.ariaLabel;return a.default.createElement("td",r({},(0,d.css)(f.CalendarDay,m&&f.CalendarDay__defaultCursor,f.CalendarDay__default,c&&f.CalendarDay__outside,s.has("today")&&f.CalendarDay__today,s.has("first-day-of-week")&&f.CalendarDay__firstDayOfWeek,s.has("last-day-of-week")&&f.CalendarDay__lastDayOfWeek,s.has("hovered-offset")&&f.CalendarDay__hovered_offset,s.has("highlighted-calendar")&&f.CalendarDay__highlighted_calendar,s.has("blocked-minimum-nights")&&f.CalendarDay__blocked_minimum_nights,s.has("blocked-calendar")&&f.CalendarDay__blocked_calendar,g&&f.CalendarDay__hovered_span,s.has("selected-span")&&f.CalendarDay__selected_span,s.has("last-in-range")&&f.CalendarDay__last_in_range,s.has("selected-start")&&f.CalendarDay__selected_start,s.has("selected-end")&&f.CalendarDay__selected_end,y&&f.CalendarDay__selected,O&&f.CalendarDay__blocked_out_of_range,v),{role:"button",ref:this.setButtonRef,"aria-label":j,onMouseEnter:function(t){e.onDayMouseEnter(n,t)},onMouseLeave:function(t){e.onDayMouseLeave(n,t)},onMouseUp:function(e){e.currentTarget.blur()},onClick:function(t){e.onDayClick(n,t)},onKeyDown:function(t){e.onKeyDown(n,t)},tabIndex:l}),u?u(n,s):n.format("D"))}}]),t}(a.default.Component);k.propTypes=j,k.defaultProps=w,t.PureCalendarDay=k,t.default=(0,d.withStyles)((function(e){var t=e.reactDates,n=t.color;return{CalendarDay:{boxSizing:"border-box",cursor:"pointer",fontSize:t.font.size,textAlign:"center",":active":{outline:0}},CalendarDay__defaultCursor:{cursor:"default"},CalendarDay__default:{border:"1px solid "+String(n.core.borderLight),color:n.text,background:n.background,":hover":{background:n.core.borderLight,border:"1px double "+String(n.core.borderLight),color:"inherit"}},CalendarDay__hovered_offset:{background:n.core.borderBright,border:"1px double "+String(n.core.borderLight),color:"inherit"},CalendarDay__outside:{border:0,background:n.outside.backgroundColor,color:n.outside.color,":hover":{border:0}},CalendarDay__blocked_minimum_nights:{background:n.minimumNights.backgroundColor,border:"1px solid "+String(n.minimumNights.borderColor),color:n.minimumNights.color,":hover":{background:n.minimumNights.backgroundColor_hover,color:n.minimumNights.color_active},":active":{background:n.minimumNights.backgroundColor_active,color:n.minimumNights.color_active}},CalendarDay__highlighted_calendar:{background:n.highlighted.backgroundColor,color:n.highlighted.color,":hover":{background:n.highlighted.backgroundColor_hover,color:n.highlighted.color_active},":active":{background:n.highlighted.backgroundColor_active,color:n.highlighted.color_active}},CalendarDay__selected_span:{background:n.selectedSpan.backgroundColor,border:"1px solid "+String(n.selectedSpan.borderColor),color:n.selectedSpan.color,":hover":{background:n.selectedSpan.backgroundColor_hover,border:"1px solid "+String(n.selectedSpan.borderColor),color:n.selectedSpan.color_active},":active":{background:n.selectedSpan.backgroundColor_active,border:"1px solid "+String(n.selectedSpan.borderColor),color:n.selectedSpan.color_active}},CalendarDay__last_in_range:{borderRight:n.core.primary},CalendarDay__selected:{background:n.selected.backgroundColor,border:"1px solid "+String(n.selected.borderColor),color:n.selected.color,":hover":{background:n.selected.backgroundColor_hover,border:"1px solid "+String(n.selected.borderColor),color:n.selected.color_active},":active":{background:n.selected.backgroundColor_active,border:"1px solid "+String(n.selected.borderColor),color:n.selected.color_active}},CalendarDay__hovered_span:{background:n.hoveredSpan.backgroundColor,border:"1px solid "+String(n.hoveredSpan.borderColor),color:n.hoveredSpan.color,":hover":{background:n.hoveredSpan.backgroundColor_hover,border:"1px solid "+String(n.hoveredSpan.borderColor),color:n.hoveredSpan.color_active},":active":{background:n.hoveredSpan.backgroundColor_active,border:"1px solid "+String(n.hoveredSpan.borderColor),color:n.hoveredSpan.color_active}},CalendarDay__blocked_calendar:{background:n.blocked_calendar.backgroundColor,border:"1px solid "+String(n.blocked_calendar.borderColor),color:n.blocked_calendar.color,":hover":{background:n.blocked_calendar.backgroundColor_hover,border:"1px solid "+String(n.blocked_calendar.borderColor),color:n.blocked_calendar.color_active},":active":{background:n.blocked_calendar.backgroundColor_active,border:"1px solid "+String(n.blocked_calendar.borderColor),color:n.blocked_calendar.color_active}},CalendarDay__blocked_out_of_range:{background:n.blocked_out_of_range.backgroundColor,border:"1px solid "+String(n.blocked_out_of_range.borderColor),color:n.blocked_out_of_range.color,":hover":{background:n.blocked_out_of_range.backgroundColor_hover,border:"1px solid "+String(n.blocked_out_of_range.borderColor),color:n.blocked_out_of_range.color_active},":active":{background:n.blocked_out_of_range.backgroundColor_active,border:"1px solid "+String(n.blocked_out_of_range.borderColor),color:n.blocked_out_of_range.color_active}},CalendarDay__selected_start:{},CalendarDay__selected_end:{},CalendarDay__today:{},CalendarDay__firstDayOfWeek:{},CalendarDay__lastDayOfWeek:{}}}))(k)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r,o){var c=o.chooseAvailableDate,s=o.dateIsUnavailable,u=o.dateIsSelected,l={width:n,height:n-1},d=r.has("blocked-minimum-nights")||r.has("blocked-calendar")||r.has("blocked-out-of-range"),f=r.has("selected")||r.has("selected-start")||r.has("selected-end"),p=!f&&(r.has("hovered-span")||r.has("after-hovered-start")),b=r.has("blocked-out-of-range"),h={date:e.format(t)},v=(0,i.default)(c,h);r.has(a.BLOCKED_MODIFIER)?v=(0,i.default)(s,h):f&&(v=(0,i.default)(u,h));return{daySizeStyles:l,useDefaultCursor:d,selected:f,hoveredSpan:p,isOutsideRange:b,ariaLabel:v}};var r,o=n(410),i=(r=o)&&r.__esModule?r:{default:r},a=n(78)},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=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e)return 0;var o="width"===t?"Left":"Top",i="width"===t?"Right":"Bottom",a=!n||r?window.getComputedStyle(e):null,c=e.offsetWidth,s=e.offsetHeight,u="width"===t?c:s;n||(u-=parseFloat(a["padding"+o])+parseFloat(a["padding"+i])+parseFloat(a["border"+o+"Width"])+parseFloat(a["border"+i+"Width"]));r&&(u+=parseFloat(a["margin"+o])+parseFloat(a["margin"+i]));return u}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return 7*e+2*t+1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return!(!i.default.isMoment(e)||!i.default.isMoment(t))&&(e.month()===t.month()&&e.year()===t.year())};var r,o=n(44),i=(r=o)&&r.__esModule?r:{default:r}},,,,,,function(e,t,n){"use strict";n.r(t),n.d(t,"SVG",(function(){return r.SVG})),n.d(t,"Path",(function(){return r.Path})),n.d(t,"Circle",(function(){return r.Circle})),n.d(t,"Polygon",(function(){return r.Polygon})),n.d(t,"Rect",(function(){return r.Rect})),n.d(t,"G",(function(){return r.G})),n.d(t,"HorizontalRule",(function(){return r.HorizontalRule})),n.d(t,"BlockQuotation",(function(){return r.BlockQuotation})),n.d(t,"__experimentalAlignmentMatrixControl",(function(){return st})),n.d(t,"Animate",(function(){return ut.a})),n.d(t,"__unstableUseAnimate",(function(){return ut.b})),n.d(t,"AnglePickerControl",(function(){return Ur})),n.d(t,"Autocomplete",(function(){return Qr})),n.d(t,"BaseControl",(function(){return yt})),n.d(t,"__experimentalBoxControl",(function(){return Oi})),n.d(t,"Button",(function(){return qr.a})),n.d(t,"ButtonGroup",(function(){return ji})),n.d(t,"Card",(function(){return Fi})),n.d(t,"CardBody",(function(){return Vi})),n.d(t,"CardDivider",(function(){return Ki})),n.d(t,"CardFooter",(function(){return $i})),n.d(t,"CardHeader",(function(){return Xi})),n.d(t,"CardMedia",(function(){return Ji})),n.d(t,"CheckboxControl",(function(){return ta})),n.d(t,"ClipboardButton",(function(){return na})),n.d(t,"__experimentalColorEdit",(function(){return Ua})),n.d(t,"ColorIndicator",(function(){return Ga})),n.d(t,"ColorPalette",(function(){return $a})),n.d(t,"ColorPicker",(function(){return Ha})),n.d(t,"ComboboxControl",(function(){return nc})),n.d(t,"CustomSelectControl",(function(){return Xc})),n.d(t,"Dashicon",(function(){return Jc.a})),n.d(t,"DateTimePicker",(function(){return ds})),n.d(t,"DatePicker",(function(){return os})),n.d(t,"TimePicker",(function(){return us})),n.d(t,"__experimentalDimensionControl",(function(){return ys})),n.d(t,"Disabled",(function(){return Ss})),n.d(t,"Draggable",(function(){return Cs})),n.d(t,"DropZone",(function(){return Hs})),n.d(t,"__unstableUseDropZone",(function(){return zs})),n.d(t,"DropZoneProvider",(function(){return Fs})),n.d(t,"Dropdown",(function(){return sa})),n.d(t,"DropdownMenu",(function(){return Qs})),n.d(t,"ExternalLink",(function(){return nu})),n.d(t,"Flex",(function(){return St})),n.d(t,"FlexBlock",(function(){return kt})),n.d(t,"FlexItem",(function(){return Et})),n.d(t,"FocalPointPicker",(function(){return Ru})),n.d(t,"FocusableIframe",(function(){return Fu})),n.d(t,"FontSizePicker",(function(){return ml})),n.d(t,"FormFileUpload",(function(){return yl})),n.d(t,"FormToggle",(function(){return gl})),n.d(t,"FormTokenField",(function(){return Cl})),n.d(t,"__experimentalGradientPicker",(function(){return ld})),n.d(t,"__experimentalCustomGradientPicker",(function(){return ud})),n.d(t,"Guide",(function(){return Dd})),n.d(t,"GuidePage",(function(){return Md})),n.d(t,"Icon",(function(){return fs.a})),n.d(t,"IconButton",(function(){return Td})),n.d(t,"__experimentalInputControl",(function(){return Pr})),n.d(t,"KeyboardShortcuts",(function(){return Oa})),n.d(t,"MenuGroup",(function(){return Id})),n.d(t,"MenuItem",(function(){return Nd})),n.d(t,"MenuItemsChoice",(function(){return Ad})),n.d(t,"Modal",(function(){return Ed})),n.d(t,"ScrollLock",(function(){return Ld.a})),n.d(t,"NavigableMenu",(function(){return Ys})),n.d(t,"TabbableContainer",(function(){return Fd})),n.d(t,"__experimentalNavigation",(function(){return Jd})),n.d(t,"__experimentalNavigationBackButton",(function(){return ef})),n.d(t,"__experimentalNavigationGroup",(function(){return rf})),n.d(t,"__experimentalNavigationItem",(function(){return sf})),n.d(t,"__experimentalNavigationMenu",(function(){return df})),n.d(t,"Notice",(function(){return ff})),n.d(t,"__experimentalNumberControl",(function(){return Fr})),n.d(t,"NoticeList",(function(){return pf})),n.d(t,"Panel",(function(){return hf})),n.d(t,"PanelBody",(function(){return gf})),n.d(t,"PanelHeader",(function(){return bf})),n.d(t,"PanelRow",(function(){return Of})),n.d(t,"Placeholder",(function(){return jf})),n.d(t,"Popover",(function(){return Yr.a})),n.d(t,"QueryControls",(function(){return Cf})),n.d(t,"__experimentalRadio",(function(){return zf})),n.d(t,"__experimentalRadioGroup",(function(){return Uf})),n.d(t,"RadioControl",(function(){return Gf})),n.d(t,"RangeControl",(function(){return hl})),n.d(t,"ResizableBox",(function(){return Dp})),n.d(t,"ResponsiveWrapper",(function(){return Mp})),n.d(t,"SandBox",(function(){return Rp})),n.d(t,"SelectControl",(function(){return vs})),n.d(t,"Snackbar",(function(){return Np.a})),n.d(t,"SnackbarList",(function(){return Bp})),n.d(t,"Spinner",(function(){return Hp})),n.d(t,"TabPanel",(function(){return Kp})),n.d(t,"__experimentalText",(function(){return Xt})),n.d(t,"TextControl",(function(){return xa})),n.d(t,"TextareaControl",(function(){return Xp})),n.d(t,"TextHighlight",(function(){return Jp})),n.d(t,"Tip",(function(){return Qp})),n.d(t,"ToggleControl",(function(){return eb})),n.d(t,"Toolbar",(function(){return bb})),n.d(t,"ToolbarButton",(function(){return ob})),n.d(t,"__experimentalToolbarContext",(function(){return nb.a})),n.d(t,"ToolbarGroup",(function(){return ub})),n.d(t,"ToolbarItem",(function(){return tb.a})),n.d(t,"Tooltip",(function(){return C.a})),n.d(t,"__experimentalTreeGrid",(function(){return gb})),n.d(t,"__experimentalTreeGridRow",(function(){return Ob})),n.d(t,"__experimentalTreeGridCell",(function(){return _b})),n.d(t,"__experimentalTreeGridItem",(function(){return kb})),n.d(t,"TreeSelect",(function(){return Sf})),n.d(t,"__experimentalUnitControl",(function(){return go})),n.d(t,"VisuallyHidden",(function(){return M})),n.d(t,"IsolatedEventContainer",(function(){return dd.a})),n.d(t,"createSlotFill",(function(){return Sb.c})),n.d(t,"Slot",(function(){return Sb.b})),n.d(t,"Fill",(function(){return Sb.a})),n.d(t,"SlotFillProvider",(function(){return Eb.b})),n.d(t,"__experimentalUseSlot",(function(){return xb.a})),n.d(t,"navigateRegions",(function(){return Pb})),n.d(t,"withConstrainedTabbing",(function(){return pd.a})),n.d(t,"withFallbackStyles",(function(){return Mb})),n.d(t,"withFilters",(function(){return Rb})),n.d(t,"withFocusOutside",(function(){return ru.a})),n.d(t,"withFocusReturn",(function(){return fd.a})),n.d(t,"FocusReturnProvider",(function(){return Nb.b})),n.d(t,"withNotices",(function(){return Gb})),n.d(t,"withSpokenMessages",(function(){return Xr}));var r=n(7),o=n(8),i=n(12),a=n(14),c=n(0),s=n(2),u=n(9),l=n.n(u),d=n(52),f=n(122),p=n(15),b=n(51),h=n(50),v=n(13),m=n.n(v),y=n(63),g=n(59),O=n(67),j=Object(h.a)({name:"Group",compose:O.a,useProps:function(e,t){return Object(p.b)({role:"group"},t)}}),w=(Object(b.a)({as:"div",useHook:j}),n(96)),k=Object(h.a)({name:"CompositeGroup",compose:[j,w.a],useState:d.g,propsAreEqual:function(e,t){if(!t.id||e.id!==t.id)return j.unstable_propsAreEqual(e,t);var n=e.currentId,r=(e.unstable_moves,Object(p.a)(e,["currentId","unstable_moves"])),o=t.currentId,i=(t.unstable_moves,Object(p.a)(t,["currentId","unstable_moves"]));if(e.items&&t.items){var a=Object(d.d)(e.items,n),c=Object(d.d)(t.items,o),s=null==a?void 0:a.groupId,u=null==c?void 0:c.groupId;if(t.id===u||t.id===s)return!1}return j.unstable_propsAreEqual(r,i)},useProps:function(e,t){var n=t.ref,r=Object(p.a)(t,["ref"]),o=Object(v.useRef)(null),i=e.id;return Object(g.a)((function(){var t;if(i)return null===(t=e.registerGroup)||void 0===t||t.call(e,{id:i,ref:o}),function(){var t;null===(t=e.unregisterGroup)||void 0===t||t.call(e,i)}}),[i,e.registerGroup,e.unregisterGroup]),Object(p.b)({ref:Object(y.a)(o,n)},r)}}),_=Object(b.a)({as:"div",useHook:k}),S=n(1),E=n(10),x=n(123),C=n(84),P=n(5);function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var M=function(e){var t=e.as,n=void 0===t?"div":t,r=e.className,o=Object(a.a)(e,["as","className"]);return function(e){var t=e.as,n=void 0===t?"div":t,r=Object(a.a)(e,["as"]);return"function"==typeof r.children?r.children(r):Object(c.createElement)(n,r)}(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D(Object(n),!0).forEach((function(t){Object(P.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({as:n,className:l()("components-visually-hidden",r)},o))},T=[["top left","top center","top right"],["center left","center center","center right"],["bottom left","bottom center","bottom right"]],I={"top left":Object(S.__)("Top Left"),"top center":Object(S.__)("Top Center"),"top right":Object(S.__)("Top Right"),"center left":Object(S.__)("Center Left"),"center center":Object(S.__)("Center Center"),"center right":Object(S.__)("Center Right"),"bottom left":Object(S.__)("Bottom Left"),"bottom center":Object(S.__)("Bottom Center"),"bottom right":Object(S.__)("Bottom Right")},R=Object(s.flattenDeep)(T);function N(e){return("center"===e?"center center":e).replace("-"," ")}function A(e,t){var n=N(t).replace(" ","-");return"".concat(e,"-").concat(n)}var L=n(285),F=n.n(L);var z=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}},B=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,H=z((function(e){return B.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),V=n(148),K=n.n(V);var W=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var o=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{var i=105===e.charCodeAt(1)&&64===e.charCodeAt(0);o.insertRule(e,i?0:o.cssRules.length)}catch(e){0}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}();var U=function(e){function t(e,t,r){var o=t.trim().split(b);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var c=0;for(e=0===a?"":e[0]+" ";c<i;++c)t[c]=n(e,t[c],r).trim();break;default:var s=c=0;for(t=[];c<i;++c)for(var u=0;u<a;++u)t[s++]=n(e[u]+" ",o[c],r).trim()}return t}function n(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(h,"$1"+e.trim());case 58:return e.trim()+t.replace(h,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(h,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function r(e,t,n,i){var a=e+";",c=2*t+3*n+4*i;if(944===c){e=a.indexOf(":",9)+1;var s=a.substring(e,a.length-1).trim();return s=a.substring(0,e).trim()+s+";",1===P||2===P&&o(s,1)?"-webkit-"+s+s:s}if(0===P||2===P&&!o(a,1))return a;switch(c){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(S,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(s=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+s+a;case 1005:return f.test(a)?a.replace(d,":-webkit-")+a.replace(d,":-moz-")+a:a;case 1e3:switch(t=(s=a.substring(13).trim()).indexOf("-")+1,s.charCodeAt(0)+s.charCodeAt(t)){case 226:s=a.replace(g,"tb");break;case 232:s=a.replace(g,"tb-rl");break;case 220:s=a.replace(g,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+s+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,c=(s=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|s.charCodeAt(7))){case 203:if(111>s.charCodeAt(8))break;case 115:a=a.replace(s,"-webkit-"+s)+";"+a;break;case 207:case 102:a=a.replace(s,"-webkit-"+(102<c?"inline-":"")+"box")+";"+a.replace(s,"-webkit-"+s)+";"+a.replace(s,"-ms-"+s+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return s=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+s+"-ms-flex-"+s+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(w,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(w,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===_.test(e))return 115===(s=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,n,i).replace(":fill-available",":stretch"):a.replace(s,"-webkit-"+s)+a.replace(s,"-moz-"+s.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+i&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(p,"$1-webkit-$2")+a}return a}function o(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),I(2!==t?r:r.replace(k,"$1"),n,t)}function i(e,t){var n=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(j," or ($1)").substring(4):"("+t+")"}function a(e,t,n,r,o,i,a,c,u,l){for(var d,f=0,p=t;f<T;++f)switch(d=M[f].call(s,e,p,n,r,o,i,a,c,u,l)){case void 0:case!1:case!0:case null:break;default:p=d}if(p!==t)return p}function c(e){return void 0!==(e=e.prefix)&&(I=null,e?"function"!=typeof e?P=1:(P=2,I=e):P=0),c}function s(e,n){var c=e;if(33>c.charCodeAt(0)&&(c=c.trim()),c=[c],0<T){var s=a(-1,n,c,c,x,E,0,0,0,0);void 0!==s&&"string"==typeof s&&(n=s)}var d=function e(n,c,s,d,f){for(var p,b,h,g,j,w=0,k=0,_=0,S=0,M=0,I=0,N=h=p=0,A=0,L=0,F=0,z=0,B=s.length,H=B-1,V="",K="",W="",U="";A<B;){if(b=s.charCodeAt(A),A===H&&0!==k+S+_+w&&(0!==k&&(b=47===k?10:47),S=_=w=0,B++,H++),0===k+S+_+w){if(A===H&&(0<L&&(V=V.replace(l,"")),0<V.trim().length)){switch(b){case 32:case 9:case 59:case 13:case 10:break;default:V+=s.charAt(A)}b=59}switch(b){case 123:for(p=(V=V.trim()).charCodeAt(0),h=1,z=++A;A<B;){switch(b=s.charCodeAt(A)){case 123:h++;break;case 125:h--;break;case 47:switch(b=s.charCodeAt(A+1)){case 42:case 47:e:{for(N=A+1;N<H;++N)switch(s.charCodeAt(N)){case 47:if(42===b&&42===s.charCodeAt(N-1)&&A+2!==N){A=N+1;break e}break;case 10:if(47===b){A=N+1;break e}}A=N}}break;case 91:b++;case 40:b++;case 34:case 39:for(;A++<H&&s.charCodeAt(A)!==b;);}if(0===h)break;A++}switch(h=s.substring(z,A),0===p&&(p=(V=V.replace(u,"").trim()).charCodeAt(0)),p){case 64:switch(0<L&&(V=V.replace(l,"")),b=V.charCodeAt(1)){case 100:case 109:case 115:case 45:L=c;break;default:L=D}if(z=(h=e(c,L,h,b,f+1)).length,0<T&&(j=a(3,h,L=t(D,V,F),c,x,E,z,b,f,d),V=L.join(""),void 0!==j&&0===(z=(h=j.trim()).length)&&(b=0,h="")),0<z)switch(b){case 115:V=V.replace(O,i);case 100:case 109:case 45:h=V+"{"+h+"}";break;case 107:h=(V=V.replace(v,"$1 $2"))+"{"+h+"}",h=1===P||2===P&&o("@"+h,3)?"@-webkit-"+h+"@"+h:"@"+h;break;default:h=V+h,112===d&&(K+=h,h="")}else h="";break;default:h=e(c,t(c,V,F),h,d,f+1)}W+=h,h=F=L=N=p=0,V="",b=s.charCodeAt(++A);break;case 125:case 59:if(1<(z=(V=(0<L?V.replace(l,""):V).trim()).length))switch(0===N&&(p=V.charCodeAt(0),45===p||96<p&&123>p)&&(z=(V=V.replace(" ",":")).length),0<T&&void 0!==(j=a(1,V,c,n,x,E,K.length,d,f,d))&&0===(z=(V=j.trim()).length)&&(V="\0\0"),p=V.charCodeAt(0),b=V.charCodeAt(1),p){case 0:break;case 64:if(105===b||99===b){U+=V+s.charAt(A);break}default:58!==V.charCodeAt(z-1)&&(K+=r(V,p,b,V.charCodeAt(2)))}F=L=N=p=0,V="",b=s.charCodeAt(++A)}}switch(b){case 13:case 10:47===k?k=0:0===1+p&&107!==d&&0<V.length&&(L=1,V+="\0"),0<T*R&&a(0,V,c,n,x,E,K.length,d,f,d),E=1,x++;break;case 59:case 125:if(0===k+S+_+w){E++;break}default:switch(E++,g=s.charAt(A),b){case 9:case 32:if(0===S+w+k)switch(M){case 44:case 58:case 9:case 32:g="";break;default:32!==b&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===S+k+w&&(L=F=1,g="\f"+g);break;case 108:if(0===S+k+w+C&&0<N)switch(A-N){case 2:112===M&&58===s.charCodeAt(A-3)&&(C=M);case 8:111===I&&(C=I)}break;case 58:0===S+k+w&&(N=A);break;case 44:0===k+_+S+w&&(L=1,g+="\r");break;case 34:case 39:0===k&&(S=S===b?0:0===S?b:S);break;case 91:0===S+k+_&&w++;break;case 93:0===S+k+_&&w--;break;case 41:0===S+k+w&&_--;break;case 40:if(0===S+k+w){if(0===p)switch(2*M+3*I){case 533:break;default:p=1}_++}break;case 64:0===k+_+S+w+N+h&&(h=1);break;case 42:case 47:if(!(0<S+w+_))switch(k){case 0:switch(2*b+3*s.charCodeAt(A+1)){case 235:k=47;break;case 220:z=A,k=42}break;case 42:47===b&&42===M&&z+2!==A&&(33===s.charCodeAt(z+2)&&(K+=s.substring(z,A+1)),g="",k=0)}}0===k&&(V+=g)}I=M,M=b,A++}if(0<(z=K.length)){if(L=c,0<T&&(void 0!==(j=a(2,K,L,n,x,E,z,d,f,d))&&0===(K=j).length))return U+K+W;if(K=L.join(",")+"{"+K+"}",0!=P*C){switch(2!==P||o(K,2)||(C=0),C){case 111:K=K.replace(y,":-moz-$1")+K;break;case 112:K=K.replace(m,"::-webkit-input-$1")+K.replace(m,"::-moz-$1")+K.replace(m,":-ms-input-$1")+K}C=0}}return U+K+W}(D,c,n,0,0);return 0<T&&(void 0!==(s=a(-2,d,c,c,x,E,d.length,0,0,0))&&(d=s)),"",C=0,E=x=1,d}var u=/^\0+/g,l=/[\0\r\f]/g,d=/: */g,f=/zoo|gra/,p=/([,: ])(transform)/g,b=/,\r+?/g,h=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,m=/::(place)/g,y=/:(read-only)/g,g=/[svh]\w+-[tblr]{2}/,O=/\(\s*(.*)\s*\)/g,j=/([\s\S]*?);/g,w=/-self|flex-/g,k=/[^]*?(:[rp][el]a[\w-]+)[^]*/,_=/stretch|:\s*\w+\-(?:conte|avail)/,S=/([^-])(image-set\()/,E=1,x=1,C=0,P=1,D=[],M=[],T=0,I=null,R=0;return s.use=function e(t){switch(t){case void 0:case null:T=M.length=0;break;default:if("function"==typeof t)M[T++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else R=0|!!t}return e},s.set=c,void 0!==e&&c(e),s};function G(e){e&&$.current.insert(e+"}")}var $={current:null},q=function(e,t,n,r,o,i,a,c,s,u){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return $.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===c)return t+"/*|*/";break;case 3:switch(c){case 102:case 112:return $.current.insert(n[0]+t),"";default:return t+(0===u?"/*|*/":"")}case-2:t.split("/*|*/}").forEach(G)}},Y=function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var r=new U(t);var o,i={};o=e.container||document.head;var a,c=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(c,(function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach((function(e){i[e]=!0})),e.parentNode!==o&&o.appendChild(e)})),r.use(e.stylisPlugins)(q),a=function(e,t,n,o){var i=t.name;$.current=n,r(e,t.styles),o&&(s.inserted[i]=!0)};var s={key:n,sheet:new W({key:n,container:o,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:i,registered:{},insert:a};return s};function Z(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]):r+=n+" "})),r}var X=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var o=t;do{e.insert("."+r,o,e.sheet,!0);o=o.next}while(void 0!==o)}};var J=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},Q={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ee=/[A-Z]|^ms/g,te=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ne=function(e){return 45===e.charCodeAt(1)},re=function(e){return null!=e&&"boolean"!=typeof e},oe=z((function(e){return ne(e)?e:e.replace(ee,"-$&").toLowerCase()})),ie=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(te,(function(e,t,n){return ce={name:t,styles:n,next:ce},t}))}return 1===Q[e]||ne(e)||"number"!=typeof t||0===t?t:t+"px"};function ae(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return ce={name:n.name,styles:n.styles,next:ce},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)ce={name:o.name,styles:o.styles,next:ce},o=o.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=ae(e,t,n[o],!1);else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":re(a)&&(r+=oe(i)+":"+ie(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var c=ae(e,t,a,!1);switch(i){case"animation":case"animationName":r+=oe(i)+":"+c+";";break;default:r+=i+"{"+c+"}"}}else for(var s=0;s<a.length;s++)re(a[s])&&(r+=oe(i)+":"+ie(i,a[s])+";")}return r}(e,t,n);case"function":if(void 0!==e){var i=ce,a=n(e);return ce=i,ae(e,t,a,r)}break;case"string":}if(null==t)return n;var c=t[n];return void 0===c||r?n:c}var ce,se=/label:\s*([^\s;\n{]+)\s*;/g;var ue=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";ce=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=ae(n,t,i,!1)):o+=i[0];for(var a=1;a<e.length;a++)o+=ae(n,t,e[a],46===o.charCodeAt(o.length-1)),r&&(o+=i[a]);se.lastIndex=0;for(var c,s="";null!==(c=se.exec(o));)s+="-"+c[1];return{name:J(o)+s,styles:o,next:ce}};var le=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ue(t)},de=Object(v.createContext)("undefined"!=typeof HTMLElement?Y():null),fe=Object(v.createContext)({}),pe=(de.Provider,function(e){return Object(v.forwardRef)((function(t,n){return Object(v.createElement)(de.Consumer,null,(function(r){return e(t,r,n)}))}))});Object.prototype.hasOwnProperty;v.Component;var be=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var i=t[r];if(null!=i){var a=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))a=e(i);else for(var c in a="",i)i[c]&&c&&(a&&(a+=" "),a+=c);break;default:a=i}a&&(o&&(o+=" "),o+=a)}}return o};function he(e,t,n){var r=[],o=Z(e,r,n);return r.length<2?n:o+t(r)}pe((function(e,t){return Object(v.createElement)(fe.Consumer,null,(function(n){var r=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=ue(n,t.registered);return X(t,o,!1),t.key+"-"+o.name},o={css:r,cx:function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return he(t.registered,r,be(n))},theme:n},i=e.children(o);return!0,i}))}));var ve=H,me=function(e){return"theme"!==e&&"innerRef"!==e},ye=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?ve:me};function ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Oe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ge(n,!0).forEach((function(t){F()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ge(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var je=function e(t,n){var r,o,i;void 0!==n&&(r=n.label,i=n.target,o=t.__emotion_forwardProp&&n.shouldForwardProp?function(e){return t.__emotion_forwardProp(e)&&n.shouldForwardProp(e)}:n.shouldForwardProp);var a=t.__emotion_real===t,c=a&&t.__emotion_base||t;"function"!=typeof o&&a&&(o=t.__emotion_forwardProp);var s=o||ye(c),u=!s("as");return function(){var l=arguments,d=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==l[0]||void 0===l[0].raw)d.push.apply(d,l);else{0,d.push(l[0][0]);for(var f=l.length,p=1;p<f;p++)d.push(l[p],l[0][p])}var b=pe((function(e,t,n){return Object(v.createElement)(fe.Consumer,null,(function(r){var a=u&&e.as||c,l="",f=[],p=e;if(null==e.theme){for(var b in p={},e)p[b]=e[b];p.theme=r}"string"==typeof e.className?l=Z(t.registered,f,e.className):null!=e.className&&(l=e.className+" ");var h=ue(d.concat(f),t.registered,p);X(t,h,"string"==typeof a);l+=t.key+"-"+h.name,void 0!==i&&(l+=" "+i);var m=u&&void 0===o?ye(a):s,y={};for(var g in e)u&&"as"===g||m(g)&&(y[g]=e[g]);return y.className=l,y.ref=n||e.innerRef,Object(v.createElement)(a,y)}))}));return b.displayName=void 0!==r?r:"Styled("+("string"==typeof c?c:c.displayName||c.name||"Component")+")",b.defaultProps=t.defaultProps,b.__emotion_real=b,b.__emotion_base=c,b.__emotion_styles=d,b.__emotion_forwardProp=o,Object.defineProperty(b,"toString",{value:function(){return"."+i}}),b.withComponent=function(t,r){return e(t,void 0!==r?Oe({},n||{},{},r):n).apply(void 0,d)},b}},we=n(66),ke=n.n(we);function _e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Se(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_e(Object(n),!0).forEach((function(t){Object(P.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_e(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ee={black:"#000",white:"#fff"},xe={blue:{medium:{focus:"#007cba",focusDark:"#fff"}},gray:{900:"#1e1e1e",700:"#757575",600:"#949494",400:"#ccc",200:"#ddd",100:"#f0f0f0"},darkGray:{primary:"#1e1e1e"},mediumGray:{text:"#757575"},lightGray:{ui:"#949494",secondary:"#ccc",tertiary:"#e7e8e9"}},Ce={900:"#191e23",800:"#23282d",700:"#32373c",600:"#40464d",500:"#555d66",400:"#606a73",300:"#6c7781",200:"#7e8993",150:"#8d96a0",100:"#8f98a1",placeholder:Le(xe.gray[900],.62)},Pe={900:Le("#000510",.9),800:Le("#00000a",.85),700:Le("#06060b",.8),600:Le("#000913",.75),500:Le("#0a1829",.7),400:Le("#0a1829",.65),300:Le("#0e1c2e",.62),200:Le("#162435",.55),100:Le("#223443",.5),backgroundFill:Le(Ce[700],.7)},De={900:Le("#304455",.45),800:Le("#425863",.4),700:Le("#667886",.35),600:Le("#7b86a2",.3),500:Le("#9197a2",.25),400:Le("#95959c",.2),300:Le("#829493",.15),200:Le("#8b8b96",.1),100:Le("#747474",.05)},Me={900:"#a2aab2",800:"#b5bcc2",700:"#ccd0d4",600:"#d7dade",500:"#e2e4e7",400:"#e8eaeb",300:"#edeff0",200:"#f3f4f5",100:"#f8f9f9",placeholder:Le(Ee.white,.65)},Te={900:Le(Ee.white,.5),800:Le(Ee.white,.45),700:Le(Ee.white,.4),600:Le(Ee.white,.35),500:Le(Ee.white,.3),400:Le(Ee.white,.25),300:Le(Ee.white,.2),200:Le(Ee.white,.15),100:Le(Ee.white,.1),backgroundFill:Le(Me[300],.8)},Ie={wordpress:{700:"#00669b"},dark:{900:"#0071a1"},medium:{900:"#006589",800:"#00739c",700:"#007fac",600:"#008dbe",500:"#00a0d2",400:"#33b3db",300:"#66c6e4",200:"#bfe7f3",100:"#e5f5fa",highlight:"#b3e7fe",focus:"#007cba"}},Re={theme:"var( --wp-admin-theme-color, ".concat(Ie.wordpress[700],")"),themeDark10:"var( --wp-admin-theme-color-darker-10, ".concat(Ie.medium.focus,")")},Ne={theme:Re.theme,background:Ee.white,backgroundDisabled:Me[200],border:xe.gray[700],borderFocus:Re.themeDark10,borderDisabled:xe.gray[400],borderLight:xe.gray[200],label:Ce[500],textDisabled:Ce[150],textDark:Ee.white,textLight:Ee.black},Ae=Se(Se({},Ee),{},{darkGray:Object(s.merge)({},Ce,xe.darkGray),darkOpacity:Pe,darkOpacityLight:De,mediumGray:xe.mediumGray,lightGray:Object(s.merge)({},Me,xe.lightGray),lightGrayLight:Te,blue:Object(s.merge)({},Ie,xe.blue),alert:{yellow:"#f0b849",red:"#d94f4f",green:"#4ab866"},admin:Re,ui:Ne});function Le(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=ke()(e).toRgb(),r=n.r,o=n.g,i=n.b;return"rgba(".concat(r,", ").concat(o,", ").concat(i,", ").concat(t,")")}function Fe(e){return Object(s.get)(Ae,e,"#000")}function ze(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transition";switch(t){case"transition":e="transition-duration: 0ms;";break;case"animation":e="animation-duration: 1ms;";break;default:e="\n\t\t\t\tanimation-duration: 1ms;\n\t\t\t\ttransition-duration: 0ms;\n\t\t\t"}return"\n\t\t@media ( prefers-reduced-motion: reduce ) {\n\t\t\t".concat(e,";\n\t\t}\n\t")}var Be={name:"1xiracb",styles:"border-radius:2px;box-sizing:border-box;display:grid;grid-template-columns:repeat( 3,1fr );outline:none;"},He=function(){return Be},Ve=je("div",{target:"e1od1u4s0",label:"Root"})(He,";border:1px solid transparent;cursor:pointer;grid-template-columns:auto;",(function(e){var t=e.size,n=void 0===t?92:t;return le("grid-template-rows:repeat( 3,calc( ",n,"px / 3 ) );width:",n,"px;")}),";"),Ke=je("div",{target:"e1od1u4s1",label:"Row"})({name:"1177s8r",styles:"box-sizing:border-box;display:grid;grid-template-columns:repeat( 3,1fr );"}),We=function(e){return le("background:currentColor;box-sizing:border-box;display:grid;margin:auto;transition:all 120ms linear;",ze("transition")," ",(t=e.isActive,n=t?"0 0 0 2px ".concat(Fe("black")):null,r=Fe(t?"black":"lightGray.800"),o=Fe(t?"black":"blue.medium.focus"),le("box-shadow:",n,";color:",r,";*:hover > &{color:",o,";}")),"");var t,n,r,o},Ue=je("span",{target:"e1od1u4s2",label:"Point"})("height:6px;width:6px;",We,""),Ge=je("span",{target:"e1od1u4s3",label:"Cell"})({name:"10ro24i",styles:"appearance:none;border:none;box-sizing:border-box;margin:0;display:flex;position:relative;outline:none;align-items:center;justify-content:center;padding:0;"});function $e(e){var t=e.isActive,n=void 0!==t&&t,r=e.value,i=Object(a.a)(e,["isActive","value"]),s=I[r];return Object(c.createElement)(C.a,{text:s},Object(c.createElement)(x.a,Object(o.a)({as:Ge,role:"gridcell"},i),Object(c.createElement)(M,null,r),Object(c.createElement)(Ue,{isActive:n,role:"presentation"})))}var qe=new RegExp(/-left/g),Ye=new RegExp(/-right/g),Ze=new RegExp(/Left/g),Xe=new RegExp(/Right/g);function Je(){return!(!document||"rtl"!==document.documentElement.dir)}function Qe(){return Je()}function et(e){return"left"===e?"right":"right"===e?"left":qe.test(e)?e.replace(qe,"-right"):Ye.test(e)?e.replace(Ye,"-left"):Ze.test(e)?e.replace(Ze,"Right"):Xe.test(e)?e.replace(Xe,"Left"):e}var tt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(s.mapKeys)(e,(function(e,t){return et(t)}))};function nt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return function(){var n=Je();return le(t?n?t:e:n?tt(e):e,"")}}je("div",{target:"elqsdmc0",label:"Wrapper"})({name:"co61ta",styles:"box-sizing:border-box;padding:2px;"});var rt=je("div",{target:"elqsdmc1",label:"Root"})("transform-origin:top left;height:100%;width:100%;",He,";",(function(){return le({gridTemplateRows:"repeat( 3, calc( ".concat(21,"px / 3))"),padding:1.5,maxHeight:24,maxWidth:24},"")}),";",(function(e){var t=e.disablePointerEvents;return le({pointerEvents:t?"none":null},"")}),";"),ot=je("span",{target:"elqsdmc2",label:"Point"})("height:2px;width:2px;",We,";",(function(e){var t=e.isActive;return le("box-shadow:",t?"0 0 0 1px currentColor":null,";color:currentColor;*:hover > &{color:currentColor;}")}),";"),it=Ge;function at(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ct(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?at(Object(n),!0).forEach((function(t){Object(P.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):at(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function st(e){var t=e.className,n=e.id,r=e.label,u=void 0===r?Object(S.__)("Alignment Matrix Control"):r,p=e.defaultValue,b=void 0===p?"center center":p,h=e.value,v=e.onChange,m=void 0===v?s.noop:v,y=e.width,g=void 0===y?92:y,O=Object(a.a)(e,["className","id","label","defaultValue","value","onChange","width"]),j=Object(c.useState)(null!=h?h:b),w=Object(i.a)(j,1)[0],k=Qe(),x=function(e){var t=Object(E.useInstanceId)(st,"alignment-matrix-control");return e||t}(n),C=A(x,w),P=Object(d.g)({baseId:x,currentId:C,rtl:k});Object(c.useEffect)((function(){void 0!==h&&P.setCurrentId(A(x,h))}),[h,P.setCurrentId]);var D=l()("component-alignment-matrix-control",t);return Object(c.createElement)(f.a,Object(o.a)({},O,P,{"aria-label":u,as:Ve,className:D,role:"grid",width:g}),T.map((function(e,t){return Object(c.createElement)(_,Object(o.a)({},P,{as:Ke,role:"row",key:t}),e.map((function(e){var t=A(x,e),n=P.currentId===t;return Object(c.createElement)($e,Object(o.a)({},P,{id:t,isActive:n,key:e,value:e,onFocus:function(){m(e)}}))})))})))}st.Icon=function(e){var t=e.className,n=e.disablePointerEvents,r=void 0===n||n,i=e.size,s=void 0===i?24:i,u=e.style,d=void 0===u?{}:u,f=e.value,p=void 0===f?"center":f,b=Object(a.a)(e,["className","disablePointerEvents","size","style","value"]),h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"center",t=N(e).replace("-"," "),n=R.indexOf(t);return n>-1?n:void 0}(p),v=(s/24).toFixed(2),m=l()("component-alignment-matrix-control-icon",t),y=ct(ct({},d),{},{transform:"scale(".concat(v,")")});return Object(c.createElement)(rt,Object(o.a)({},b,{className:m,disablePointerEvents:r,role:"presentation",size:s,style:y}),R.map((function(e,t){var n=h===t;return Object(c.createElement)(it,{key:e},Object(c.createElement)(ot,{isActive:n}))})))};var ut=n(124),lt={"default.fontFamily":"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif","default.fontSize":"13px","helpText.fontSize":"12px",mobileTextMinFontSize:"16px"};function dt(e){return Object(s.get)(lt,e,"")}function ft(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return isNaN(e)?"".concat(8,"px"):"".concat(8*e,"px")}var pt=je("div",{target:"e1puf3u0",label:"Wrapper"})("font-family:",dt("default.fontFamily"),";font-size:",dt("default.fontSize"),";"),bt=je("div",{target:"e1puf3u1",label:"StyledField"})("margin-bottom:",ft(1),";.components-panel__row &{margin-bottom:inherit;}"),ht=je("label",{target:"e1puf3u2",label:"StyledLabel"})("display:inline-block;margin-bottom:",ft(1),";"),vt=je("p",{target:"e1puf3u3",label:"StyledHelp"})("margin-top:-",ft(1),";font-size:",dt("helpText.fontSize"),";font-style:normal;color:",Fe("mediumGray.text"),";");function mt(e){var t=e.id,n=e.label,r=e.hideLabelFromVision,o=e.help,i=e.className,a=e.children;return Object(c.createElement)(pt,{className:l()("components-base-control",i)},Object(c.createElement)(bt,{className:"components-base-control__field"},n&&t&&(r?Object(c.createElement)(M,{as:"label",htmlFor:t},n):Object(c.createElement)(ht,{className:"components-base-control__label",htmlFor:t},n)),n&&!t&&(r?Object(c.createElement)(M,{as:"label"},n):Object(c.createElement)(mt.VisualLabel,null,n)),a),!!o&&Object(c.createElement)(vt,{id:t+"__help",className:"components-base-control__help"},o))}mt.VisualLabel=function(e){var t=e.className,n=e.children;return t=l()("components-base-control__label",t),Object(c.createElement)("span",{className:t},n)};var yt=mt;var gt={name:"8kj89b",styles:"flex-direction:row-reverse;"},Ot=je("div",{target:"eboqfv50",label:"Flex"})("box-sizing:border-box;display:flex;width:100%;",(function(e){var t=e.align;return le({alignItems:{top:"flex-start",bottom:"flex-end"}[t]||t},"")})," ",(function(e){var t=e.justify,n=e.isReversed,r={left:"flex-start",right:"flex-end"},o=r[t]||t;return n&&r[t]&&(o="left"===t?r.right:r.left),le({justifyContent:o},"")})," ",(function(e){var t=e.gap,n=e.isReversed,r="number"==typeof t?4*t:4,o="margin-".concat(n?"left":"right");return le("> *{",o,":",r,"px;&:last-child{",o,":0;}}")})," ",(function(e){return e.isReversed?gt:""}),""),jt=je("div",{target:"eboqfv51",label:"Item"})({name:"13luw5d",styles:"box-sizing:border-box;min-width:0;max-width:100%;"}),wt=je(jt,{target:"eboqfv52",label:"Block"})({name:"1rr4qq7",styles:"flex:1;"});var kt=Object(c.forwardRef)((function(e,t){var n=e.className,r=Object(a.a)(e,["className"]),i=l()("components-flex__block",n);return Object(c.createElement)(wt,Object(o.a)({},r,{className:i,ref:t}))}));var _t=Object(c.forwardRef)((function(e,t){var n=e.align,r=void 0===n?"center":n,i=e.className,s=e.gap,u=void 0===s?2:s,d=e.justify,f=void 0===d?"space-between":d,p=e.isReversed,b=void 0!==p&&p,h=Object(a.a)(e,["align","className","gap","justify","isReversed"]),v=l()("components-flex",i);return Object(c.createElement)(Ot,Object(o.a)({},h,{align:r,className:v,ref:t,gap:u,justify:f,isReversed:b}))})),St=_t;var Et=Object(c.forwardRef)((function(e,t){var n=e.className,r=Object(a.a)(e,["className"]),i=l()("components-flex__item",n);return Object(c.createElement)(jt,Object(o.a)({},r,{className:i,ref:t}))}));function xt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Ct=le;function Pt(){var e=xt(["\n\t","\n\t","\n"]);return Pt=function(){return e},e}function Dt(){var e=xt(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return Dt=function(){return e},e}function Mt(){var e=xt(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return Mt=function(){return e},e}function Tt(){var e=xt(["\n\t\t\t\t","\n\t\t\t"]);return Tt=function(){return e},e}function It(){var e=xt(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return It=function(){return e},e}function Rt(){var e=xt(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return Rt=function(){return e},e}function Nt(){var e=xt(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return Nt=function(){return e},e}function At(){var e=xt(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return At=function(){return e},e}function Lt(){var e=xt(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return Lt=function(){return e},e}var Ft="\n ".concat("font-weight: 400;","\n"),zt="\n\tfont-size: 32px;\n\tline-height: 40px;\n",Bt="\n\tfont-size: 24px;\n\tline-height: 32px;\n",Ht="\n\tfont-size: 20px;\n\tline-height: 28px;\n",Vt="\n\t".concat("font-weight: 600;","\n\tfont-size: 14px;\n\tline-height: 20px;\n"),Kt="\n\t".concat("font-weight: 400;","\n"),Wt="\n\tfont-size: 16px;\n\tline-height: 24px;\n",Ut="\n\tfont-size: 14px;\n\tline-height: 20px;\n",Gt="\n ".concat("font-weight: 600;","\n font-size: 14px;\n line-height: 20px;\n"),$t="\n\t".concat("font-weight: 400;","\n\tfont-size: 12px;\n\tline-height: 16px;\n"),qt="\n\t".concat("font-weight: 600;","\n\tfont-size: 12px;\n\tline-height: 16px;\n"),Yt="\n\t".concat("font-weight: 500;","\n\tfont-size: 11px;\n\tline-height: 1.4;\n\ttext-transform: uppercase;\n\tcolor: ").concat(xe.gray[700],"\n"),Zt=function(e){return Ct(Pt(),'font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,\nOxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;',function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body";switch(e){case"title.large":return Ct(Lt(),Ft,zt);case"title.medium":return Ct(At(),Ft,Bt);case"title.small":return Ct(Nt(),Ft,Ht);case"subtitle":return Ct(Rt(),Vt,"\n\tfont-size: 16px;\n\tline-height: 24px;\n");case"subtitle.small":return Ct(It(),Vt,"\n\tfont-size: 14px;\n\tline-height: 20px;\n");case"body":return Ct(Tt(),Kt);case"body.large":return Ct(Mt(),Kt,Wt);case"body.small":return Ct(Dt(),Kt,Ut);case"button":return Gt;case"caption":return $t;case"label":return qt;case"sectionheading":return Yt}}(e.variant))},Xt=je("p",{target:"e15wbhsk0",label:"Text"})("\n\tbox-sizing: border-box;\n\tmargin: 0;\n",Zt,"");var Jt={name:"1dacand",styles:"padding-top:0;"},Qt=function(){return Jt},en={name:"r6z5ec",styles:"z-index:1;"},tn=function(e){return e.isFocused?en:""},nn={name:"uz6002",styles:"align-items:flex-start;flex-direction:column;"},rn={name:"53hdd7",styles:"align-items:flex-start;flex-direction:column-reverse;"},on={name:"x4dmss",styles:"justify-content:space-between;"},an=function(e){switch(e.labelPosition){case"top":return nn;case"bottom":return rn;case"edge":return on;default:return""}},cn=je(St,{target:"e1cr7zh10",label:"Root"})("position:relative;border-radius:2px;",Qt," ",tn," ",an,""),sn={name:"8atqhb",styles:"width:100%;"},un=je("div",{target:"e1cr7zh11",label:"Container"})("align-items:center;box-sizing:border-box;border-radius:inherit;display:flex;flex:1;position:relative;",(function(e){var t=Fe(e.disabled?"ui.backgroundDisabled":"ui.background");return le({backgroundColor:t},"")})," ",(function(e){var t=e.__unstableInputWidth,n=e.labelPosition;return t?"side"===n?"":le("edge"===n?{flex:"0 0 ".concat(t)}:{width:t},""):sn}),""),ln={name:"103r1kr",styles:"&::-webkit-input-placeholder{line-height:normal;}"},dn=je("input",{target:"e1cr7zh12",label:"Input"})("&&&{background-color:transparent;box-sizing:border-box;border:none;box-shadow:none !important;color:",Fe("black"),";display:block;margin:0;outline:none;padding-left:8px;padding-right:8px;width:100%;",(function(e){var t=e.isDragging,n=e.dragCursor,r="",o="";return t&&(r=le("cursor:",n,";user-select:none;&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none !important;margin:0 !important;}")),t&&n&&(o=le("&:active{cursor:",n,";}")),le(r," ",o,"")})," ",(function(e){return e.disabled?le({color:Fe("ui.textDisabled")},""):""})," ",(function(e){var t={default:"13px",small:"11px"}[e.size];return t?le("font-size:","16px",";@media ( min-width:600px ){font-size:",t,";}"):""})," ",(function(e){var t=e.size,n={default:{height:30,lineHeight:1,minHeight:30},small:{height:24,lineHeight:1,minHeight:24}};return le(n[t]||n.default,"")})," ",(function(){return ln}),"}"),fn={name:"8uhtka",styles:"overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"},pn=function(){return fn},bn=function(e){var t=e.labelPosition,n=4;return"edge"!==t&&"side"!==t||(n=0),le({paddingTop:0,paddingBottom:n},"")},hn=je(Xt,{target:"e1cr7zh13",label:"BaseLabel"})("&&&{box-sizing:border-box;color:currentColor;display:block;margin:0;max-width:100%;z-index:1;",bn," ",pn,"}"),vn=function(e){return Object(c.createElement)(hn,Object(o.a)({},e,{as:"label"}))},mn=je(Et,{target:"e1cr7zh14",label:"LabelWrapper"})({name:"120o8im",styles:"max-width:calc( 100% - 10px );"}),yn=je("div",{target:"e1cr7zh15",label:"BackdropUI"})("&&&{box-sizing:border-box;border-radius:inherit;bottom:0;left:0;margin:0;padding:0;pointer-events:none;position:absolute;right:0;top:0;",(function(e){var t=e.disabled,n=e.isFocused,r=Fe(n?"ui.borderFocus":"ui.border"),o=null;return n&&(o="0 0 0 1px ".concat(Fe("ui.borderFocus")," inset")),t&&(r=Fe("ui.borderDisabled")),le({boxShadow:o,borderColor:r,borderStyle:"solid",borderWidth:1},"")})," ",nt({paddingLeft:2}),"}"),gn=je("span",{target:"e1cr7zh16",label:"Prefix"})({name:"1pxuk39",styles:"box-sizing:border-box;display:block;"}),On=je("span",{target:"e1cr7zh17",label:"Suffix"})({name:"1pxuk39",styles:"box-sizing:border-box;display:block;"});var jn=Object(c.memo)((function(e){var t=e.disabled,n=void 0!==t&&t,r=e.isFocused,o=void 0!==r&&r;return Object(c.createElement)(yn,{"aria-hidden":"true",className:"components-input-control__backdrop",disabled:n,isFocused:o})}));function wn(e){var t=e.children,n=e.hideLabelFromVision,r=e.htmlFor,i=Object(a.a)(e,["children","hideLabelFromVision","htmlFor"]);return t?n?Object(c.createElement)(M,{as:"label",htmlFor:r},t):Object(c.createElement)(vn,Object(o.a)({htmlFor:r},i),t):null}function kn(e,t){var n=e.__unstableInputWidth,r=e.children,i=e.className,s=e.disabled,u=void 0!==s&&s,l=e.hideLabelFromVision,d=void 0!==l&&l,f=e.labelPosition,p=e.id,b=e.isFocused,h=void 0!==b&&b,v=e.label,m=e.prefix,y=e.size,g=void 0===y?"default":y,O=e.suffix,j=Object(a.a)(e,["__unstableInputWidth","children","className","disabled","hideLabelFromVision","labelPosition","id","isFocused","label","prefix","size","suffix"]),w=function(e){var t=Object(E.useInstanceId)(kn),n="input-base-control-".concat(t);return e||n}(p);return Object(c.createElement)(cn,Object(o.a)({},j,{className:i,isFocused:h,labelPosition:f,ref:t}),Object(c.createElement)(mn,null,Object(c.createElement)(wn,{className:"components-input-control__label",hideLabelFromVision:d,labelPosition:f,htmlFor:w,size:g},v)),Object(c.createElement)(un,{__unstableInputWidth:n,className:"components-input-control__container",disabled:u,isFocused:h,labelPosition:f},m&&Object(c.createElement)(gn,{className:"components-input-control__prefix"},m),r,O&&Object(c.createElement)(On,{className:"components-input-control__suffix"},O),Object(c.createElement)(jn,{"aria-hidden":"true",disabled:u,isFocused:h,label:v,size:g})))}var _n=Object(c.forwardRef)(kn);function Sn(e,t){return e.map((function(e,n){return e+t[n]}))}function En(e,t){return e.map((function(e,n){return e-t[n]}))}function xn(e,t,n){return n=n||Math.hypot.apply(Math,e),t?n/t:0}function Cn(e,t){return t?e.map((function(e){return e/t})):Array(e.length).fill(0)}function Pn(e){return Math.hypot.apply(Math,e)}function Dn(e,t){return t=t||Math.hypot.apply(Math,e)||1,e.map((function(e){return e/t}))}function Mn(e,t,n){var r=Math.hypot.apply(Math,t);return{velocities:Cn(t,n),velocity:xn(t,n,r),distance:Pn(e),direction:Dn(t,r)}}function Tn(e){return Math.sign?Math.sign(e):Number(e>0)-Number(e<0)||+e}function In(e,t){return Math.abs(e)>=t&&Tn(e)*t}function Rn(e,t,n){return 0===t||Math.abs(t)===1/0?function(e,t){return Math.pow(e,5*t)}(e,n):e*t*n/(t+n*e)}function Nn(e,t,n,r){return void 0===r&&(r=.15),0===r?function(e,t,n){return Math.max(t,Math.min(e,n))}(e,t,n):e<t?-Rn(t-e,n-t,r)+t:e>n?Rn(e-n,n-t,r)+n:e}function An(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ln(){return(Ln=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Fn(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function zn(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Bn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Hn(e){var t=0;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(e){if("string"==typeof e)return Bn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bn(e,t):void 0}}(e)))return function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}function Vn(){}var Kn=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.forEach((function(e){return e.apply(void 0,n)}))}},Wn=function(e){return Array.isArray(e)?e:[e,e]},Un=function(e,t){return void 0!==e?e:t};function Gn(e,t){var n={};return Object.entries(e).forEach((function(e){var r=e[0],o=e[1];return(void 0!==o||r in t)&&(n[r]=o)})),n}function $n(e){return"function"==typeof e?e():e}function qn(){var e={_active:!1,_blocked:!1,_intentional:[!1,!1],_movement:[0,0],_initial:[0,0],_lastEventType:void 0,event:void 0,values:[0,0],velocities:[0,0],delta:[0,0],movement:[0,0],offset:[0,0],lastOffset:[0,0],direction:[0,0],initial:[0,0],previous:[0,0],first:!1,last:!1,active:!1,timeStamp:0,startTime:0,elapsedTime:0,cancel:Vn,canceled:!1,memo:void 0,args:void 0},t={axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0},n={da:[0,0],vdva:[0,0],origin:void 0,turns:0};return{shared:{hovering:!1,scrolling:!1,wheeling:!1,dragging:!1,moving:!1,pinching:!1,touches:0,buttons:0,down:!1,shiftKey:!1,altKey:!1,metaKey:!1,ctrlKey:!1},drag:Ln(Ln(Ln({},e),t),{},{_isTap:!0,_delayedEvent:!1,tap:!1,swipe:[0,0]}),pinch:Ln(Ln({},e),n),wheel:Ln(Ln({},e),t),move:Ln(Ln({},e),t),scroll:Ln(Ln({},e),t)}}var Yn=function(e){return function(t,n,r){var o=e?"addEventListener":"removeEventListener";n.forEach((function(e){var n=e[0],i=e[1];return t[o](n,i,r)}))}};var Zn=Yn(!0),Xn=Yn(!1);function Jn(e){if("touches"in e){var t=e.touches,n=e.changedTouches;return t.length>0?t:n}return null}function Qn(e){var t="buttons"in e?e.buttons:0,n=Jn(e),r=n&&n.length||0;return Ln({touches:r,down:r>0||t>0,buttons:t},function(e){return{shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey}}(e))}function er(e){var t=Jn(e),n=t?t[0]:e;return{values:[n.clientX,n.clientY]}}var tr=function(){var e=this;this.state=qn(),this.timeouts={},this.domListeners=[],this.windowListeners={},this.bindings={},this.clean=function(){e.resetBindings(),Object.values(e.timeouts).forEach(clearTimeout),Object.keys(e.windowListeners).forEach((function(t){return e.removeWindowListeners(t)}))},this.resetBindings=function(){e.bindings={};var t=e.getDomTarget();t&&(Xn(t,e.domListeners,e.config.eventOptions),e.domListeners=[])},this.getDomTarget=function(){var t=e.config.domTarget;return t&&"current"in t?t.current:t},this.addWindowListeners=function(t,n){e.config.window&&(e.windowListeners[t]=n,Zn(e.config.window,n,e.config.eventOptions))},this.removeWindowListeners=function(t){if(e.config.window){var n=e.windowListeners[t];n&&(Xn(e.config.window,n,e.config.eventOptions),delete e.windowListeners[t])}},this.addDomTargetListeners=function(t){Object.entries(e.bindings).forEach((function(t){var n=t[0],r=t[1];e.domListeners.push([n.substr(2).toLowerCase(),Kn.apply(void 0,r)])})),Zn(t,e.domListeners,e.config.eventOptions)},this.addBindings=function(t,n){(Array.isArray(t)?t:[t]).forEach((function(t){e.bindings[t]?e.bindings[t].push(n):e.bindings[t]=[n]}))},this.getBindings=function(){var t={},n=e.config.captureString;return Object.entries(e.bindings).forEach((function(e){var r=e[0],o=e[1],i=Array.isArray(o)?o:[o];t[r+n]=Kn.apply(void 0,i)})),t},this.getBind=function(){if(e.config.domTarget){var t=e.getDomTarget();return t&&e.addDomTargetListeners(t),e.clean}return e.getBindings()}};function nr(e,t,n,r){var o=m.a.useMemo((function(){var e=new tr;return{nativeRefs:r,current:e,bind:function(){e.resetBindings();for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];for(var a,c=Hn(t);!(a=c()).done;){var s=a.value;new s(e,r).addBindings()}if(o.nativeRefs)for(var u in o.nativeRefs)e.addBindings(u,o.nativeRefs[u]);return e.getBind()}}}),[]);return o.current.config=n,o.current.handlers=e,o.nativeRefs=r,m.a.useEffect((function(){return o.current.clean}),[]),o.bind}var rr=function(){function e(e,t,n){var r=this;void 0===n&&(n=[]),this.stateKey=e,this.controller=t,this.args=n,this.debounced=!0,this.setTimeout=function(e,t){var n;void 0===t&&(t=140);for(var o=arguments.length,i=new Array(o>2?o-2:0),a=2;a<o;a++)i[a-2]=arguments[a];r.controller.timeouts[r.stateKey]=(n=window).setTimeout.apply(n,[e,t].concat(i))},this.clearTimeout=function(){clearTimeout(r.controller.timeouts[r.stateKey])},this.addWindowListeners=function(e){r.controller.addWindowListeners(r.stateKey,e)},this.removeWindowListeners=function(){r.controller.removeWindowListeners(r.stateKey)},this.getStartGestureState=function(e,t){return Ln(Ln({},qn()[r.stateKey]),{},{_active:!0,values:e,initial:e,offset:r.state.offset,lastOffset:r.state.offset,startTime:t.timeStamp})},this.rubberband=function(e,t){var n=r.config.bounds;return e.map((function(e,r){return Nn(e,n[r][0],n[r][1],t[r])}))},this.fireGestureHandler=function(e){if(r.state._blocked)return r.debounced||(r.state._active=!1,r.clean()),null;var t=r.state._intentional,n=t[0],o=t[1];if(!e&&!1===n&&!1===o)return null;var i=r.state,a=i._active,c=i.active;r.state.active=a,r.state.first=a&&!c,r.state.last=c&&!a,r.controller.state.shared[r.ingKey]=a;var s=Ln(Ln(Ln({},r.controller.state.shared),r.state),r.mapStateValues(r.state)),u=r.handler(s);return r.state.memo=void 0!==u?u:r.state.memo,a||r.clean(),s}}var t,n,r,o=e.prototype;return o.updateSharedState=function(e){Object.assign(this.controller.state.shared,e)},o.updateGestureState=function(e){Object.assign(this.state,e)},o.getGenericPayload=function(e,t){var n=e.timeStamp,r=e.type,o=this.state,i=o.values,a=o.startTime;return{_lastEventType:r,event:e,timeStamp:n,elapsedTime:t?0:n-a,args:this.args,previous:i}},o.checkIntentionality=function(e,t,n){return{_intentional:e,_blocked:!1}},o.getMovement=function(e,t){void 0===t&&(t=this.state);var n=this.config,r=n.initial,o=n.threshold,i=n.rubberband,a=o[0],c=o[1],s=t,u=s._initial,l=s._active,d=s._intentional,f=s.lastOffset,p=s.movement,b=d[0],h=d[1],v=this.getInternalMovement(e,t),m=v[0],y=v[1];!1===b&&(b=In(m,a)),!1===h&&(h=In(y,c));var g=this.checkIntentionality([b,h],[m,y],t),O=g._intentional,j=g._blocked,w=O[0],k=O[1],_=[m,y];if(!1!==w&&!1===d[0]&&(u[0]=$n(r)[0]),!1!==k&&!1===d[1]&&(u[1]=$n(r)[1]),j)return Ln(Ln({},g),{},{_movement:_,delta:[0,0]});var S=[!1!==w?m-w:$n(r)[0],!1!==k?y-k:$n(r)[1]],E=Sn(S,f),x=l?i:[0,0];return S=this.rubberband(Sn(S,u),x),Ln(Ln({},g),{},{_initial:u,_movement:_,movement:S,offset:this.rubberband(E,x),delta:En(S,p)})},o.clean=function(){this.clearTimeout(),this.removeWindowListeners()},t=e,(n=[{key:"config",get:function(){return this.controller.config[this.stateKey]}},{key:"enabled",get:function(){return this.controller.config.enabled&&this.config.enabled}},{key:"state",get:function(){return this.controller.state[this.stateKey]}},{key:"handler",get:function(){return this.controller.handlers[this.stateKey]}}])&&An(t.prototype,n),r&&An(t,r),e}(),or=function(e){function t(){return e.apply(this,arguments)||this}Fn(t,e);var n=t.prototype;return n.getInternalMovement=function(e,t){return En(e,t.initial)},n.checkIntentionality=function(e,t,n){var r=e,o=r[0],i=r[1],a=!1!==o||!1!==i,c=n.axis,s=!1;if(a){var u=t.map(Math.abs),l=u[0],d=u[1],f=this.config,p=f.axis,b=f.lockDirection;if(c=c||(l>d?"x":l<d?"y":void 0),p||b)if(c)if(p&&c!==p)s=!0;else e["x"===c?1:0]=!1;else e=[!1,!1]}return{_intentional:e,_blocked:s,axis:c}},n.getKinematics=function(e,t){var n=this.state.timeStamp,r=this.getMovement(e,this.state),o=r._blocked,i=r.delta,a=r.movement;if(o)return r;var c=Mn(a,i,t.timeStamp-n);return Ln(Ln({values:e,delta:i},r),c)},n.mapStateValues=function(e){return{xy:e.values,vxvy:e.velocities}},t}(rr),ir=function(e){function t(t,n){var r;return(r=e.call(this,"drag",t,n)||this).ingKey="dragging",r.wasTouch=!1,r.isEventTypeTouch=function(e){return!!e&&0===e.indexOf("touch")},r.dragShouldStart=function(e){var t=Qn(e).touches,n=r.state._lastEventType;if(!r.controller.config.pointer&&r.isEventTypeTouch(n)&&!r.isEventTypeTouch(e.type)&&Math.abs(e.timeStamp-r.state.startTime)<200)return!1;return r.enabled&&t<2},r.setPointers=function(e){var t=e.currentTarget,n=e.pointerId;t&&t.setPointerCapture(n),r.updateGestureState({currentTarget:t,pointerId:n})},r.removePointers=function(){var e=r.state,t=e.currentTarget,n=e.pointerId;t&&n&&t.releasePointerCapture(n)},r.setListeners=function(e){r.removeWindowListeners();var t=e?[["touchmove",r.onDragChange],["touchend",r.onDragEnd],["touchcancel",r.onDragEnd]]:[["mousemove",r.onDragChange],["mouseup",r.onDragEnd]];r.addWindowListeners(t)},r.onDragStart=function(e){r.dragShouldStart(e)&&(r.controller.config.pointer?r.setPointers(e):r.setListeners(r.isEventTypeTouch(e.type)),r.config.delay>0?(r.state._delayedEvent=!0,"function"==typeof e.persist&&e.persist(),r.setTimeout((function(){return r.startDrag(e)}),r.config.delay)):r.startDrag(e))},r.onDragChange=function(e){if(!r.state.canceled)if(r.state._active){var t=Qn(e);if(t.down){r.updateSharedState(t);var n=er(e).values,o=r.getKinematics(n,e),i=r.state._isTap;i&&Pn(o._movement)>=3&&(i=!1),r.updateGestureState(Ln(Ln(Ln({},r.getGenericPayload(e)),o),{},{_isTap:i,cancel:function(){return r.onCancel()}})),r.fireGestureHandler()}else r.onDragEnd(e)}else r.state._delayedEvent&&(r.clearTimeout(),r.startDrag(e))},r.onDragEnd=function(e){r.state._active=!1,r.updateSharedState({down:!1,buttons:0,touches:0});var t=r.state,n=t._isTap,o=t.values,i=t.velocities,a=i[0],c=i[1],s=t.movement,u=s[0],l=s[1],d=t._intentional,f=d[0],p=d[1],b=Ln(Ln({},r.getGenericPayload(e)),r.getMovement(o)),h=b.elapsedTime,v=r.config,m=v.swipeVelocity,y=m[0],g=m[1],O=v.swipeDistance,j=O[0],w=O[1],k=[0,0];h<220&&(!1!==f&&Math.abs(a)>y&&Math.abs(u)>j&&(k[0]=Tn(a)),!1!==p&&Math.abs(c)>g&&Math.abs(l)>w&&(k[1]=Tn(c))),r.updateGestureState(Ln(Ln({event:e},b),{},{tap:n,swipe:k})),r.fireGestureHandler(r.config.filterTaps&&r.state._isTap)},r.clean=function(){e.prototype.clean.call(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r)),r.state._delayedEvent=!1,r.controller.config.pointer&&r.removePointers()},r.onCancel=function(){r.updateGestureState({canceled:!0,cancel:Vn}),r.state._active=!1,r.updateSharedState({down:!1,buttons:0,touches:0}),requestAnimationFrame((function(){return r.fireGestureHandler()}))},r}Fn(t,e);var n=t.prototype;return n.startDrag=function(e){var t=this,n=er(e).values;this.updateSharedState(Qn(e));var r=Ln(Ln({},this.getStartGestureState(n,e)),this.getGenericPayload(e,!0));this.updateGestureState(Ln(Ln(Ln({},r),this.getMovement(n,r)),{},{cancel:function(){return t.onCancel()}})),this.fireGestureHandler()},n.addBindings=function(){this.controller.config.pointer?(this.controller.addBindings("onPointerDown",this.onDragStart),this.controller.addBindings("onPointerMove",this.onDragChange),this.controller.addBindings(["onPointerUp","onPointerCancel"],this.onDragEnd)):this.controller.addBindings(["onTouchStart","onMouseDown"],this.onDragStart)},t}(or),ar="undefined"!=typeof window?window:void 0,cr={lockDirection:!1,axis:void 0,bounds:void 0};function sr(e){void 0===e&&(e={});var t=e,n=t.eventOptions,r=(n=void 0===n?{}:n).passive,o=void 0===r||r,i=n.capture,a=void 0!==i&&i,c=n.pointer,s=void 0!==c&&c,u=t.window,l=void 0===u?ar:u,d=t.domTarget,f=void 0===d?void 0:d,p=t.enabled,b=void 0===p||p;return Ln(Ln({},zn(t,["eventOptions","window","domTarget","enabled"])),{},{enabled:b,domTarget:f,window:l,eventOptions:{passive:!f||!!o,capture:!!a},captureString:a?"Capture":"",pointer:!!s})}function ur(e){var t=e.threshold,n=void 0===t?void 0:t,r=e.rubberband,o=void 0===r?0:r,i=e.enabled,a=void 0===i||i,c=e.initial;return"boolean"==typeof o&&(o=o?.15:0),void 0===n&&(n=0),{enabled:a,initial:void 0===c?[0,0]:c,threshold:Wn(n),rubberband:Wn(o)}}function lr(e){void 0===e&&(e={});var t=e,n=t.axis,r=t.lockDirection,o=t.bounds,i=void 0===o?{}:o,a=zn(t,["axis","lockDirection","bounds"]),c=[[Un(i.left,-1/0),Un(i.right,1/0)],[Un(i.top,-1/0),Un(i.bottom,1/0)]];return Ln(Ln(Ln(Ln({},ur(a)),cr),Gn({axis:n,lockDirection:r},e)),{},{bounds:c})}function dr(e){void 0===e&&(e={});var t=e,n=t.enabled,r=t.threshold,o=t.bounds,i=t.rubberband,a=t.initial,c=zn(t,["enabled","threshold","bounds","rubberband","initial"]),s=c.swipeVelocity,u=void 0===s?.5:s,l=c.swipeDistance,d=void 0===l?60:l,f=c.delay,p=void 0!==f&&f,b=c.filterTaps,h=void 0!==b&&b,v=c.axis,m=c.lockDirection;void 0===r?r=Math.max(0,h?3:0,m||v?1:0):h=!0;var y=lr(Gn({enabled:n,threshold:r,bounds:o,rubberband:i,axis:v,lockDirection:m,initial:a},e));return Ln(Ln({},y),{},{filterTaps:h||y.threshold[0]+y.threshold[1]>0,swipeVelocity:Wn(u),swipeDistance:Wn(d),delay:"number"==typeof p?p:p?180:0})}var fr=function(e){function t(t,n){var r;return(r=e.call(this,"move",t,n)||this).ingKey="moving",r.debounced=!0,r.moveShouldRun=function(){return r.enabled},r.onMove=function(e){r.moveShouldRun()&&(r.clearTimeout(),r.setTimeout(r.onMoveEnd),r.state._active?r.onMoveChange(e):r.onMoveStart(e))},r.onMoveStart=function(e){var t=er(e).values;r.updateSharedState(Qn(e));var n=Ln(Ln({},r.getStartGestureState(t,e)),r.getGenericPayload(e,!0));r.updateGestureState(Ln(Ln({},n),r.getMovement(t,n))),r.fireGestureHandler()},r.onMoveChange=function(e){var t=Qn(e);r.updateSharedState(t);var n=er(e).values,o=r.getKinematics(n,e);r.updateGestureState(Ln(Ln({},r.getGenericPayload(e)),o)),r.fireGestureHandler()},r.onMoveEnd=function(){r.state._active=!1,r.updateGestureState(Ln(Ln({},r.getMovement(r.state.values)),{},{velocities:[0,0],velocity:0})),r.fireGestureHandler()},r.onPointerEnter=function(e){if(r.controller.state.shared.hovering=!0,r.controller.config.enabled){if(r.controller.config.hover.enabled){var t=er(e).values,n=Ln(Ln(Ln(Ln({},r.controller.state.shared),r.state),r.getGenericPayload(e,!0)),{},{values:t,active:!0,hovering:!0});r.controller.handlers.hover(Ln(Ln({},n),r.mapStateValues(n)))}"move"in r.controller.handlers&&r.onMoveStart(e)}},r.onPointerLeave=function(e){if(r.controller.state.shared.hovering=!1,"move"in r.controller.handlers&&r.onMoveEnd(),r.controller.config.hover.enabled){var t=er(e).values,n=Ln(Ln(Ln(Ln({},r.controller.state.shared),r.state),r.getGenericPayload(e)),{},{values:t,active:!1});r.controller.handlers.hover(Ln(Ln({},n),r.mapStateValues(n)))}},r}return Fn(t,e),t.prototype.addBindings=function(){this.controller.config.pointer?("move"in this.controller.handlers&&this.controller.addBindings("onPointerMove",this.onMove),"hover"in this.controller.handlers&&(this.controller.addBindings("onPointerEnter",this.onPointerEnter),this.controller.addBindings("onPointerLeave",this.onPointerLeave))):("move"in this.controller.handlers&&this.controller.addBindings("onMouseMove",this.onMove),"hover"in this.controller.handlers&&(this.controller.addBindings("onMouseEnter",this.onPointerEnter),this.controller.addBindings("onMouseLeave",this.onPointerLeave)))},t}(or);var pr=n(18);function br(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?br(Object(n),!0).forEach((function(t){Object(P.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):br(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var vr=function(e){return e},mr={_event:{},error:null,initialValue:"",isDirty:!1,isDragEnabled:!1,isDragging:!1,isPressEnterToChange:!1,value:""},yr={CHANGE:"CHANGE",COMMIT:"COMMIT",DRAG_END:"DRAG_END",DRAG_START:"DRAG_START",DRAG:"DRAG",INVALIDATE:"INVALIDATE",PRESS_DOWN:"PRESS_DOWN",PRESS_ENTER:"PRESS_ENTER",PRESS_UP:"PRESS_UP",RESET:"RESET",UPDATE:"UPDATE"},gr=yr;function Or(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:mr,t=e.value;return hr(hr(hr({},mr),e),{},{initialValue:t})}var jr=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.reduceRight((function(e,t){var r=t.apply(void 0,n);return Object(s.isEmpty)(r)?e:hr(hr({},e),r)}),{})}};function wr(e){return function(t,n){var r=hr({},t),o=n.type,i=n.payload;switch(o){case yr.PRESS_UP:case yr.PRESS_DOWN:r.isDirty=!1;break;case yr.DRAG_START:r.isDragging=!0;break;case yr.DRAG_END:r.isDragging=!1;break;case yr.CHANGE:r.error=null,r.value=i.value,t.isPressEnterToChange&&(r.isDirty=!0);break;case yr.COMMIT:r.value=i.value,r.isDirty=!1;break;case yr.RESET:r.error=null,r.isDirty=!1,r.value=i.value||t.initialValue;break;case yr.UPDATE:r.value=i.value,r.isDirty=!1;break;case yr.INVALIDATE:r.error=i.error}return i.event&&(r._event=i.event),e(r,n)}}function kr(e){return null!=e}function _r(e){var t=""===e;return!kr(e)||t}function Sr(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0;return null!==(e=t.find(kr))&&void 0!==e?e:n}var Er=function(e,t){var n=Object(c.useRef)(!1);Object(c.useEffect)((function(){if(n.current)return e();n.current=!0}),t)};var xr=Object(c.forwardRef)((function(e,t){var n=e.disabled,r=void 0!==n&&n,u=e.dragDirection,l=void 0===u?"n":u,d=e.dragThreshold,f=void 0===d?10:d,p=e.id,b=e.isDragEnabled,h=void 0!==b&&b,v=e.isFocused,m=e.isPressEnterToChange,y=void 0!==m&&m,g=e.onBlur,O=void 0===g?s.noop:g,j=e.onChange,w=void 0===j?s.noop:j,k=e.onDrag,_=void 0===k?s.noop:k,S=e.onDragEnd,E=void 0===S?s.noop:S,x=e.onDragStart,C=void 0===x?s.noop:x,P=e.onFocus,D=void 0===P?s.noop:P,M=e.onKeyDown,T=void 0===M?s.noop:M,I=e.onValidate,R=void 0===I?s.noop:I,N=e.size,A=void 0===N?"default":N,L=e.setIsFocused,F=e.stateReducer,z=void 0===F?function(e){return e}:F,B=e.value,H=e.type,V=Object(a.a)(e,["disabled","dragDirection","dragThreshold","id","isDragEnabled","isFocused","isPressEnterToChange","onBlur","onChange","onDrag","onDragEnd","onDragStart","onFocus","onKeyDown","onValidate","size","setIsFocused","stateReducer","value","type"]),K=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:vr,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:mr,n=Object(c.useReducer)(wr(e),Or(t)),r=Object(i.a)(n,2),o=r[0],a=r[1],s=function(e){return function(t,n){n&&n.persist&&n.persist(),a({type:e,payload:{value:t,event:n}})}},u=function(e){return function(t){t&&t.persist&&t.persist(),a({type:e,payload:{event:t}})}},l=function(e){return function(t){a({type:e,payload:t})}},d=s(yr.CHANGE),f=s(yr.INVALIDATE),p=s(yr.RESET),b=s(yr.COMMIT),h=s(yr.UPDATE),v=l(yr.DRAG_START),m=l(yr.DRAG),y=l(yr.DRAG_END),g=u(yr.PRESS_UP),O=u(yr.PRESS_DOWN),j=u(yr.PRESS_ENTER);return{change:d,commit:b,dispatch:a,drag:m,dragEnd:y,dragStart:v,invalidate:f,pressDown:O,pressEnter:j,pressUp:g,reset:p,state:o,update:h}}(z,{isDragEnabled:h,value:B,isPressEnterToChange:y}),W=K.state,U=K.change,G=K.commit,$=K.drag,q=K.dragEnd,Y=K.dragStart,Z=K.invalidate,X=K.pressDown,J=K.pressEnter,Q=K.pressUp,ee=K.reset,te=K.update,ne=W._event,re=W.value,oe=W.isDragging,ie=W.isDirty,ae=Object(c.useRef)(!1),ce=function(e,t){var n=function(e){var t="ns-resize";switch(e){case"n":case"s":t="ns-resize";break;case"e":case"w":t="ew-resize"}return t}(t);return Object(c.useEffect)((function(){e?(document.documentElement.style.cursor=n,document.documentElement.style.pointerEvents="none"):(document.documentElement.style.cursor=null,document.documentElement.style.pointerEvents=null)}),[e]),n}(oe,l);Er((function(){B!==re&&(v||ae.current?ie||(w(re,{event:ne}),ae.current=!1):te(B))}),[re,ie,v,B]);var se=function(e){var t=e.target.value;try{R(t,e),G(t,e)}catch(t){Z(t,e)}},ue=function(e,t){void 0===t&&(t={});var n=t,r=n.domTarget,o=n.eventOptions,i=n.window,a=zn(n,["domTarget","eventOptions","window"]),c=Ln(Ln({},sr({domTarget:r,eventOptions:o,window:i})),{},{drag:dr(a)});return nr({drag:e},[ir],c)}((function(e){var t=e.distance,n=e.dragging,r=e.event;if(t){if(r.stopPropagation(),!n)return E(e),void q(e);_(e),$(e),oe||(C(e),Y(e))}}),{threshold:f,enabled:h}),le=h?ue():{},de=le.onMouseDown,fe=le.onTouchStart,pe=de;return"number"===H&&(pe=function(e){e.target!==e.target.ownerDocument.activeElement&&e.target.focus(),h&&de(e)}),Object(c.createElement)(dn,Object(o.a)({},V,{className:"components-input-control__input",disabled:r,dragCursor:ce,isDragging:oe,id:p,onBlur:function(e){O(e),L(!1),y&&ie&&(ae.current=!0,_r(re)?ee(B):se(e))},onChange:function(e){var t=e.target.value;U(t,e)},onFocus:function(e){D(e),L(!0)},onKeyDown:function(e){var t=e.keyCode;switch(T(e),t){case pr.UP:Q(e);break;case pr.DOWN:X(e);break;case pr.ENTER:J(e),y&&(e.preventDefault(),se(e))}},onMouseDown:pe,onTouchStart:fe,ref:t,size:A,value:re,type:H}))}));function Cr(e,t){var n=e.__unstableStateReducer,r=void 0===n?function(e){return e}:n,u=e.__unstableInputWidth,d=e.className,f=e.disabled,p=void 0!==f&&f,b=e.hideLabelFromVision,h=void 0!==b&&b,v=e.id,m=e.isPressEnterToChange,y=void 0!==m&&m,g=e.label,O=e.labelPosition,j=void 0===O?"top":O,w=e.onChange,k=void 0===w?s.noop:w,_=e.onValidate,S=void 0===_?s.noop:_,x=e.onKeyDown,C=void 0===x?s.noop:x,P=e.prefix,D=e.size,M=void 0===D?"default":D,T=e.suffix,I=e.value,R=Object(a.a)(e,["__unstableStateReducer","__unstableInputWidth","className","disabled","hideLabelFromVision","id","isPressEnterToChange","label","labelPosition","onChange","onValidate","onKeyDown","prefix","size","suffix","value"]),N=Object(c.useState)(!1),A=Object(i.a)(N,2),L=A[0],F=A[1],z=function(e){var t=Object(E.useInstanceId)(Cr),n="inspector-input-control-".concat(t);return e||n}(v),B=l()("components-input-control",d);return Object(c.createElement)(_n,{__unstableInputWidth:u,className:B,disabled:p,gap:3,hideLabelFromVision:h,id:z,isFocused:L,justify:"left",label:g,labelPosition:j,prefix:P,size:M,suffix:T},Object(c.createElement)(xr,Object(o.a)({},R,{className:"components-input-control__input",disabled:p,id:z,isFocused:L,isPressEnterToChange:y,onChange:k,onKeyDown:C,onValidate:S,ref:t,setIsFocused:F,size:M,stateReducer:r,value:I})))}var Pr=Object(c.forwardRef)(Cr);var Dr={name:"1b9wwt5",styles:"&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none !important;margin:0 !important;}"},Mr=function(e){return e.hideHTMLArrows?Dr:""},Tr=je(Pr,{target:"ep48uk90",label:"Input"})(Mr,";");function Ir(e){var t=Number(e);return isNaN(t)?0:t}function Rr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return e+Ir(t)}),0)}function Nr(e){var t=(e+"").split(".");return void 0!==t[1]?t[1].length:0}function Ar(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=Ir(e),i=Ir(r),a=Nr(r),c=Math.round(o/i)*i,u=Object(s.clamp)(c,t,n);return a?Ir(u.toFixed(a)):u}var Lr=function(e){var t=e.isShiftStepEnabled,n=void 0===t||t,r=e.shiftStep,o=void 0===r?10:r,a=e.step,s=void 0===a?1:a,u=Object(c.useState)(!1),l=Object(i.a)(u,2),d=l[0],f=l[1];return Object(c.useEffect)((function(){var e=function(e){f(e.shiftKey)};return window.addEventListener("keydown",e),window.addEventListener("keyup",e),function(){window.removeEventListener("keydown",e),window.removeEventListener("keyup",e)}}),[]),n&&d?o*s:s};var Fr=Object(c.forwardRef)((function(e,t){var n=e.__unstableStateReducer,r=void 0===n?function(e){return e}:n,s=e.className,u=e.dragDirection,d=void 0===u?"n":u,f=e.hideHTMLArrows,p=void 0!==f&&f,b=e.isDragEnabled,h=void 0===b||b,v=e.isShiftStepEnabled,m=void 0===v||v,y=e.label,g=e.max,O=void 0===g?1/0:g,j=e.min,w=void 0===j?-1/0:j,k=e.shiftStep,_=void 0===k?10:k,S=e.step,E=void 0===S?1:S,x=e.type,C=void 0===x?"number":x,P=e.value,D=Object(a.a)(e,["__unstableStateReducer","className","dragDirection","hideHTMLArrows","isDragEnabled","isShiftStepEnabled","label","max","min","shiftStep","step","type","value"]),M=Qe(),T=Ar(0,w,O,E),I=Lr({step:E,shiftStep:_,isShiftStepEnabled:m}),R="number"===C?"off":null,N=l()("components-number-control",s);return Object(c.createElement)(Tr,Object(o.a)({autoComplete:R,inputMode:"numeric"},D,{className:N,dragDirection:d,hideHTMLArrows:p,isDragEnabled:h,label:y,max:O,min:w,ref:t,step:I,type:C,value:P,__unstableStateReducer:jr((function(e,t){var n=t.type,r=t.payload,o=null==r?void 0:r.event,a=e.value;if(n===gr.PRESS_UP||n===gr.PRESS_DOWN){var c=o.shiftKey&&m?parseFloat(_)*parseFloat(E):parseFloat(E),s=_r(a)?T:a;(null==o?void 0:o.preventDefault)&&o.preventDefault(),n===gr.PRESS_UP&&(s=Rr(s,c)),n===gr.PRESS_DOWN&&(s=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t,n){var r=Ir(t);return 0===n?r:e-r}))}(s,c)),s=Ar(s,w,O,c),e.value=s}if(n===gr.DRAG&&h){var u,l,f=r.delta,p=r.shiftKey,b=Object(i.a)(f,2),v=b[0],y=b[1],g=p?parseFloat(_)*parseFloat(E):parseFloat(E);switch(d){case"n":l=y,u=-1;break;case"e":l=v,u=M?-1:1;break;case"s":l=y,u=1;break;case"w":l=v,u=M?1:-1}var j,k=l*g*u;0!==k&&(j=Ar(Rr(a,k),w,O,g),e.value=j)}return n!==gr.PRESS_ENTER&&n!==gr.COMMIT||(e.value=Ar(a,w,O)),e}),r)}))}));var zr=je(_t,{target:"e65ony40",label:"Root"})({name:"tn9ygg",styles:"max-width:200px;"}),Br=je(Et,{target:"e65ony41",label:"NumberControlWrapper"})({name:"1jgxixz",styles:"width:80px;"}),Hr=je("div",{target:"e65ony42",label:"CircleRoot"})("border-radius:50%;border:1px solid ",Fe("ui.borderLight"),";box-sizing:border-box;cursor:grab;height:",30,"px;overflow:hidden;width:",30,"px;"),Vr=je("div",{target:"e65ony43",label:"CircleIndicatorWrapper"})({name:"11t5m37",styles:"box-sizing:border-box;position:relative;width:100%;height:100%;"}),Kr=je("div",{target:"e65ony44",label:"CircleIndicator"})("background:",Fe("ui.border"),";border-radius:50%;border:3px solid ",Fe("ui.border"),";bottom:0;box-sizing:border-box;display:block;height:1px;left:0;margin:auto;position:absolute;right:0;top:-",15,"px;width:1px;");var Wr=function(e){var t=e.value,n=e.onChange,r=Object(a.a)(e,["value","onChange"]),i=Object(c.useRef)(),s=Object(c.useRef)(),u=Object(c.useRef)(),l=function(e){var t=s.current,r=t.x,o=t.y;e.preventDefault(),document.activeElement.blur(),n(function(e,t,n,r){var o=r-t,i=n-e,a=Math.atan2(o,i),c=Math.round(a*(180/Math.PI))+90;if(c<0)return 360+c;return c}(r,o,e.clientX,e.clientY))},d=Object(E.__experimentalUseDragging)({onDragStart:function(e){var t;t=i.current.getBoundingClientRect(),s.current={x:t.x+t.width/2,y:t.y+t.height/2},l(e)},onDragMove:l,onDragEnd:l}),f=d.startDrag,p=d.isDragging;return Object(c.useEffect)((function(){p?(void 0===u.current&&(u.current=document.body.style.cursor),document.body.style.cursor="grabbing"):(document.body.style.cursor=u.current||null,u.current=void 0)}),[p]),Object(c.createElement)(Hr,Object(o.a)({ref:i,onMouseDown:f,className:"components-angle-picker-control__angle-circle",style:p?{cursor:"grabbing"}:void 0},r),Object(c.createElement)(Vr,{style:t?{transform:"rotate(".concat(t,"deg)")}:void 0,className:"components-angle-picker-control__angle-circle-indicator-wrapper"},Object(c.createElement)(Kr,{className:"components-angle-picker-control__angle-circle-indicator"})))};function Ur(e){var t=e.className,n=e.id,r=e.value,i=e.onChange,s=e.label,u=Object(a.a)(e,["className","id","value","onChange","label"]),d=Object(E.useInstanceId)(Ur,"components-angle-picker-control__input"),f=n||d,p=l()("components-angle-picker-control",t);return Object(c.createElement)(yt,Object(o.a)({className:p,id:f,label:s},u),Object(c.createElement)(zr,{gap:3},Object(c.createElement)(Br,null,Object(c.createElement)(Fr,{className:"components-angle-picker-control__input-field",id:f,max:360,min:0,onChange:function(e){var t=""!==e?parseInt(e,10):0;i(t)},step:"1",value:r})),Object(c.createElement)(kt,null,Object(c.createElement)(Wr,{"aria-hidden":"true",value:r,onChange:i}))))}var Gr=n(17),$r=n(25),qr=n(35),Yr=n(114),Zr=n(46),Xr=Object(E.createHigherOrderComponent)((function(e){return function(t){return Object(c.createElement)(e,Object(o.a)({},t,{speak:Zr.speak,debouncedSpeak:Object(E.useDebounce)(Zr.speak,500)}))}}),"withSpokenMessages");var Jr=function(e){var t=e.useItems?e.useItems:function(t){var n=Object(c.useState)([]),r=Object(i.a)(n,2),o=r[0],a=r[1];return Object(c.useLayoutEffect)((function(){var n=e.options,r=e.isDebounced,o=Object(s.debounce)((function(){var r=Promise.resolve("function"==typeof n?n(t):n).then((function(n){if(!r.canceled){var o=n.map((function(t,n){return{key:"".concat(e.name,"-").concat(n),value:t,label:e.getOptionLabel(t),keywords:e.getOptionKeywords?e.getOptionKeywords(t):[],isDisabled:!!e.isOptionDisabled&&e.isOptionDisabled(t)}})),i=new RegExp("(?:\\b|\\s|^)"+Object(s.escapeRegExp)(t),"i");a(function(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;o<t.length;o++){var i=t[o],a=i.keywords,c=void 0===a?[]:a;"string"==typeof i.label&&(c=[].concat(Object(Gr.a)(c),[i.label]));var u=c.some((function(t){return e.test(Object(s.deburr)(t))}));if(u&&(r.push(i),r.length===n))break}return r}(i,o))}}));return r}),r?250:0),i=o();return function(){o.cancel(),i&&(i.canceled=!0)}}),[t]),[o]};return function(e){var n,r=e.filterValue,o=e.instanceId,a=e.listBoxId,u=e.className,d=e.selectedIndex,f=e.onChangeOptions,p=e.onSelect,b=e.onReset,h=t(r),v=Object(i.a)(h,1)[0];return Object(c.useLayoutEffect)((function(){f(v)}),[v]),!v.length>0?null:Object(c.createElement)(Yr.a,{focusOnMount:!1,onClose:b,position:"top right",className:"components-autocomplete__popover",anchorRef:(n=window.getSelection(),n.rangeCount?n.getRangeAt(0):null)},Object(c.createElement)("div",{id:a,role:"listbox",className:"components-autocomplete__results"},Object(s.map)(v,(function(e,t){return Object(c.createElement)(qr.a,{key:e.key,id:"components-autocomplete-item-".concat(o,"-").concat(e.key),role:"option","aria-selected":t===d,disabled:e.isDisabled,className:l()("components-autocomplete__result",u,{"is-selected":t===d}),onClick:function(){return p(e)}},e.label)}))))}};var Qr=Xr((function e(t){var n,r=t.children,o=t.isSelected,a=t.record,u=t.onChange,l=t.onReplace,d=t.completers,f=t.debouncedSpeak,p=Object(E.useInstanceId)(e),b=Object(c.useState)(0),h=Object(i.a)(b,2),v=h[0],m=h[1],y=Object(c.useState)([]),g=Object(i.a)(y,2),O=g[0],j=g[1],w=Object(c.useState)(""),k=Object(i.a)(w,2),_=k[0],x=k[1],C=Object(c.useState)(null),P=Object(i.a)(C,2),D=P[0],M=P[1],T=Object(c.useState)(null),I=Object(i.a)(T,2),R=I[0],N=I[1];function A(e){var t=(D||{}).getOptionCompletion;if(!e.isDisabled){if(t){var n=t(e.value,_),r=void 0===n.action||void 0===n.value?{action:"insert-at-caret",value:n}:n,o=r.action,i=r.value;"replace"===o?l([i]):"insert-at-caret"===o&&(s=i,d=a.start,f=d-D.triggerPrefix.length-_.length,p=Object($r.create)({html:Object(c.renderToString)(s)}),u(Object($r.insert)(a,p,f,d)))}var s,d,f,p;L()}}function L(){m(0),j([]),x(""),M(null),N(null)}Object($r.isCollapsed)(a)&&(n=Object($r.getTextContent)(Object($r.slice)(a,0))),Object(c.useEffect)((function(){if(n){var e=Object(s.deburr)(n),t=Object($r.getTextContent)(Object($r.slice)(a,void 0,Object($r.getTextContent)(a).length)),r=Object(s.find)(d,(function(n){var r=n.triggerPrefix,o=n.allowContext,i=e.lastIndexOf(r);return-1!==i&&(!(o&&!o(e.slice(0,i),t))&&/^\S*$/.test(e.slice(i+r.length)))}));if(r){var o=Object(s.escapeRegExp)(r.triggerPrefix),i=e.match(new RegExp("".concat(o,"(\\S*)$"))),c=i&&i[1];M(r),N((function(){return r!==D?Jr(r):R})),x(c)}else L()}}),[n]);var F=(O[v]||{}).key,z=void 0===F?"":F,B=(D||{}).className,H=!!D&&O.length>0,V=H?"components-autocomplete-listbox-".concat(p):null,K=H?"components-autocomplete-item-".concat(p,"-").concat(z):null;return Object(c.createElement)(c.Fragment,null,r({isExpanded:H,listBoxId:V,activeId:K,onKeyDown:function(e){if(D&&0!==O.length){switch(e.keyCode){case pr.UP:m((0===v?O.length:v)-1);break;case pr.DOWN:m((v+1)%O.length);break;case pr.ESCAPE:M(null),N(null);break;case pr.ENTER:A(O[v]);break;case pr.LEFT:case pr.RIGHT:return void L();default:return}e.preventDefault(),e.stopPropagation()}}}),o&&R&&Object(c.createElement)(R,{className:B,filterValue:_,instanceId:p,listBoxId:V,selectedIndex:v,onChangeOptions:function(e){m(e.length===O.length?v:0),j(e),function(e){f&&(e.length?f(Object(S.sprintf)(Object(S._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"):f(Object(S.__)("No results."),"assertive"))}(e)},onSelect:A}))}));var eo=je("div",{target:"e1agakv00",label:"Root"})({name:"1bt0omd",styles:"box-sizing:border-box;position:relative;"}),to=function(e){var t=e.disableUnits;return le(nt({paddingRight:t?3:24})(),";")},no={name:"1y65o8",styles:"&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}"},ro=function(e){return e.disableUnits?"":no},oo=je(Fr,{target:"e1agakv01",label:"ValueInput"})("&&&{input{appearance:none;-moz-appearance:textfield;display:block;width:100%;",ro,";",to,";}}"),io=function(e){return le("appearance:none;background:transparent;border-radius:2px;border:none;box-sizing:border-box;color:",Fe("darkGray.500"),";display:block;font-size:8px;line-height:1;letter-spacing:-0.5px;outline:none;padding:2px 1px;position:absolute;text-align-last:center;text-transform:uppercase;width:20px;",nt({borderTopLeftRadius:0,borderBottomLeftRadius:0})()," ",nt({right:0})()," ",(t=e.size,le({default:{height:28,lineHeight:"24px",minHeight:28,top:1},small:{height:22,lineHeight:"18px",minHeight:22,top:1}}[t],"")),"");var t},ao=je("div",{target:"e1agakv02",label:"UnitLabel"})("&&&{pointer-events:none;",io,";}"),co=je("select",{target:"e1agakv03",label:"UnitSelect"})("&&&{",io,";cursor:pointer;border:1px solid transparent;&:hover{background-color:",Fe("lightGray.300"),";}&:focus{border-color:",Fe("ui.borderFocus"),";outline:2px solid transparent;outline-offset:0;}&:disabled{cursor:initial;&:hover{background-color:transparent;}}}"),so=[{value:"px",label:"px",default:0},{value:"%",label:"%",default:10},{value:"em",label:"em",default:0},{value:"rem",label:"rem",default:0},{value:"vw",label:"vw",default:10},{value:"vh",label:"vh",default:10}],uo=so[0];function lo(e){return!Object(s.isEmpty)(e)&&e.length>1&&!1!==e}function fo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:so,n=String(e).trim(),r=parseFloat(n,10);r=isNaN(r)?"":r;var o=n.match(/[\d.\-\+]*\s*(.*)/)[1],i=void 0!==o?o:"";if(i=i.toLowerCase(),lo(t)){var a=t.find((function(e){return e.value===i}));i=null==a?void 0:a.value}else i=uo.value;return[r,i]}function po(e,t,n,r){var o,a,c=fo(e,t),s=Object(i.a)(c,2),u=s[0],l=s[1],d=u;((isNaN(u)||""===u)&&(d=n),o=l||r,lo(t)&&!o)&&(o=null===(a=t[0])||void 0===a?void 0:a.value);return[d,o]}function bo(e){var t=e.className,n=e.isTabbable,r=void 0===n||n,i=e.options,u=void 0===i?so:i,d=e.onChange,f=void 0===d?s.noop:d,p=e.size,b=void 0===p?"default":p,h=e.value,v=void 0===h?"px":h,m=Object(a.a)(e,["className","isTabbable","options","onChange","size","value"]);if(!lo(u))return Object(c.createElement)(ao,{className:"components-unit-control__unit-label",size:b},v);var y=l()("components-unit-control__select",t);return Object(c.createElement)(co,Object(o.a)({className:y,onChange:function(e){var t=e.target.value,n=u.find((function(e){return e.value===t}));f(t,{event:e,data:n})},size:b,tabIndex:r?null:"-1",value:v},m),u.map((function(e){return Object(c.createElement)("option",{value:e.value,key:e.value},e.label)})))}function ho(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ho(Object(n),!0).forEach((function(t){Object(P.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ho(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var mo={initial:void 0,fallback:""};var yo=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:mo,n=vo(vo({},mo),t),r=n.initial,o=n.fallback,a=Object(c.useState)(e),s=Object(i.a)(a,2),u=s[0],l=s[1],d=kr(e);Object(c.useEffect)((function(){d&&u&&l(void 0)}),[d,u]);var f=Sr([e,u,r],o),p=function(e){d||l(e)};return[f,p]};var go=Object(c.forwardRef)((function(e,t){var n=e.__unstableStateReducer,r=void 0===n?function(e){return e}:n,u=e.autoComplete,d=void 0===u?"off":u,f=e.className,p=e.disabled,b=void 0!==p&&p,h=e.disableUnits,v=void 0!==h&&h,m=e.isPressEnterToChange,y=void 0!==m&&m,g=e.isResetValueOnUnitChange,O=void 0!==g&&g,j=e.isUnitSelectTabbable,w=void 0===j||j,k=e.label,_=e.onChange,S=void 0===_?s.noop:_,E=e.onUnitChange,x=void 0===E?s.noop:E,C=e.size,P=void 0===C?"default":C,D=e.style,M=e.unit,T=e.units,I=void 0===T?so:T,R=e.value,N=Object(a.a)(e,["__unstableStateReducer","autoComplete","className","disabled","disableUnits","isPressEnterToChange","isResetValueOnUnitChange","isUnitSelectTabbable","label","onChange","onUnitChange","size","style","unit","units","value"]),A=function(e,t,n){return fo(t?"".concat(e).concat(t):e,n)}(R,M,I),L=Object(i.a)(A,2),F=L[0],z=L[1],B=yo(M,{initial:z}),H=Object(i.a)(B,2),V=H[0],K=H[1],W=Object(c.useRef)(null),U=l()("components-unit-control",f),G=function(e){if(isNaN(e.target.value)){var t=po(e.target.value,I,F,V),n=Object(i.a)(t,2),r=n[0],o=n[1];if(W.current=r,y&&o!==V){var a={event:e,data:I.find((function(e){return e.value===o}))};S("".concat(r).concat(o),a),x(o,a),K(o)}}else W.current=null},$=G,q=v?null:Object(c.createElement)(bo,{disabled:b,isTabbable:w,options:I,onChange:function(e,t){var n=t.data,r="".concat(F).concat(e);O&&void 0!==(null==n?void 0:n.default)&&(r="".concat(n.default).concat(e)),S(r,t),x(e,t),K(e)},size:P,value:V});return Object(c.createElement)(eo,{className:"components-unit-control-wrapper",style:D},Object(c.createElement)(oo,Object(o.a)({"aria-label":k,type:y?"text":"number"},Object(s.omit)(N,["children"]),{autoComplete:d,className:U,disabled:b,disableUnits:v,isPressEnterToChange:y,label:k,onBlur:$,onKeyDown:function(e){e.keyCode===pr.ENTER&&G(e)},onChange:function(e,t){""!==e?(e=po(e,I,F,V).join(""),S(e,t)):S("",t)},ref:t,size:P,suffix:q,value:F,__unstableStateReducer:jr((function(e,t){return t.type===gr.COMMIT&&null!==W.current&&(e.value=W.current,W.current=null),e}),r)})))}));var Oo=je("div",{target:"e7pk0lh0",label:"Root"})({name:"vho1ao",styles:"box-sizing:border-box;max-width:235px;padding-bottom:12px;width:100%;"}),jo=je(_t,{target:"e7pk0lh1",label:"Header"})("color:",Fe("ui.label"),";padding-bottom:8px;"),wo=je(_t,{target:"e7pk0lh2",label:"HeaderControlWrapper"})({name:"19de7qh",styles:"min-height:30px;"}),ko=je("div",{target:"e7pk0lh3",label:"UnitControlWrapper"})({name:"zypm0w",styles:"box-sizing:border-box;max-width:80px;"}),_o=je(_t,{target:"e7pk0lh4",label:"LayoutContainer"})({name:"39f89t",styles:"justify-content:center;padding-top:8px;"}),So=je(_t,{target:"e7pk0lh5",label:"Layout"})({name:"ojqyia",styles:"position:relative;height:100%;width:100%;"}),Eo={name:"icip60",styles:"border-radius:2px;"},xo={name:"1k07npk",styles:"border-radius:0;"},Co=function(e){var t=e.isFirst,n=e.isLast,r=e.isOnly;return t?nt({borderTopRightRadius:0,borderBottomRightRadius:0})():n?nt({borderTopLeftRadius:0,borderBottomLeftRadius:0})():r?Eo:xo},Po=function(e){return nt({marginLeft:e.isFirst?0:-1})()},Do=je(go,{target:"e7pk0lh6",label:"UnitControl"})("max-width:60px;",Co,";",Po,";");function Mo(e){var t=e.isFirst,n=e.isLast,r=e.isOnly,i=e.onHoverOn,u=void 0===i?s.noop:i,l=e.onHoverOff,d=void 0===l?s.noop:l,f=e.label,p=e.value,b=Object(a.a)(e,["isFirst","isLast","isOnly","onHoverOn","onHoverOff","label","value"]),h=function(e,t){void 0===t&&(t={});var n=t,r=n.domTarget,o=n.eventOptions,i=n.window,a=zn(n,["domTarget","eventOptions","window"]),c=Ln(Ln({},sr({domTarget:r,eventOptions:o,window:i})),{},{hover:Ln({enabled:!0},a)});return nr({hover:e},[fr],c)}((function(e){var t=e.event,n=Object(a.a)(e,["event"]);n.hovering?u(t,n):d(t,n)}));return Object(c.createElement)(ko,Object(o.a)({"aria-label":f},h()),Object(c.createElement)(To,{text:f},Object(c.createElement)(Do,Object(o.a)({className:"component-box-control__unit-control",hideHTMLArrows:!0,isFirst:t,isLast:n,isOnly:r,isPressEnterToChange:!0,isResetValueOnUnitChange:!1,value:p},b))))}function To(e){var t=e.children,n=e.text;return n?Object(c.createElement)(C.a,{text:n,position:"top"},Object(c.createElement)("div",null,t)):t}var Io={all:Object(S.__)("All"),top:Object(S.__)("Top"),bottom:Object(S.__)("Bottom"),left:Object(S.__)("Left"),right:Object(S.__)("Right"),mixed:Object(S.__)("Mixed")},Ro={top:null,right:null,bottom:null,left:null},No={top:!1,right:!1,bottom:!1,left:!1};function Ao(e){return e.sort((function(t,n){return e.filter((function(e){return e===t})).length-e.filter((function(e){return e===n})).length})).pop()}function Lo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.values(e).map(fo),n=t.map((function(e){return e[0]})),r=t.map((function(e){return e[1]})),o=n.every((function(e){return e===n[0]}))?n[0]:"",i=Ao(r),a=Object(s.isNumber)(o)?"".concat(o).concat(i):null;return a}function Fo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Lo(e),n=isNaN(parseFloat(t));return n}function zo(e){return void 0!==e&&!Object(s.isEmpty)(Object.values(e).filter(Boolean))}function Bo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ho(e){var t=e.onChange,n=void 0===t?s.noop:t,r=e.onFocus,i=void 0===r?s.noop:r,u=e.onHoverOn,l=void 0===u?s.noop:u,d=e.onHoverOff,f=void 0===d?s.noop:d,p=e.values,b=Object(a.a)(e,["onChange","onFocus","onHoverOn","onHoverOff","values"]),h=Lo(p),v=zo(p)&&Fo(p),m=v?Io.mixed:null;return Object(c.createElement)(Mo,Object(o.a)({},b,{disableUnits:v,isOnly:!0,value:h,onChange:function(e){var t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bo(Object(n),!0).forEach((function(t){Object(P.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},p);t.top=e,t.bottom=e,t.left=e,t.right=e,n(t)},onFocus:function(e){i(e,{side:"all"})},onHoverOn:function(){l({top:!0,bottom:!0,left:!0,right:!0})},onHoverOff:function(){f({top:!1,bottom:!1,left:!1,right:!1})},placeholder:m}))}function Vo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ko(e){var t=e.onChange,n=void 0===t?s.noop:t,r=e.onFocus,i=void 0===r?s.noop:r,u=e.onHoverOn,l=void 0===u?s.noop:u,d=e.onHoverOff,f=void 0===d?s.noop:d,p=e.values,b=Object(a.a)(e,["onChange","onFocus","onHoverOn","onHoverOff","values"]),h=function(e){return function(t){i(t,{side:e})}},v=function(e){return function(){l(Object(P.a)({},e,!0))}},m=function(e){return function(){f(Object(P.a)({},e,!1))}},y=p.top,g=p.right,O=p.bottom,j=p.left,w=function(e){return function(t,r){var o=r.event.altKey,i=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vo(Object(n),!0).forEach((function(t){Object(P.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},p);if(i[e]=t,o)switch(e){case"top":i.bottom=t;break;case"bottom":i.top=t;break;case"left":i.right=t;break;case"right":i.left=t}!function(e){n(e)}(i)}};return Object(c.createElement)(_o,{className:"component-box-control__input-controls-wrapper"},Object(c.createElement)(So,{gap:0,align:"top",className:"component-box-control__input-controls"},Object(c.createElement)(Mo,Object(o.a)({},b,{isFirst:!0,value:y,onChange:w("top"),onFocus:h("top"),onHoverOn:v("top"),onHoverOff:m("top"),label:Io.top})),Object(c.createElement)(Mo,Object(o.a)({},b,{value:g,onChange:w("right"),onFocus:h("right"),onHoverOn:v("right"),onHoverOff:m("right"),label:Io.right})),Object(c.createElement)(Mo,Object(o.a)({},b,{value:O,onChange:w("bottom"),onFocus:h("bottom"),onHoverOn:v("bottom"),onHoverOff:m("bottom"),label:Io.bottom})),Object(c.createElement)(Mo,Object(o.a)({},b,{isLast:!0,value:j,onChange:w("left"),onFocus:h("left"),onHoverOn:v("left"),onHoverOff:m("left"),label:Io.left}))))}var Wo=je("span",{target:"eaw9yqk0",label:"Root"})({name:"1qtciqq",styles:"box-sizing:border-box;display:block;width:24px;height:24px;position:relative;padding:4px;"}),Uo=je("span",{target:"eaw9yqk1",label:"Viewbox"})({name:"be7uli",styles:"box-sizing:border-box;display:block;position:relative;width:100%;height:100%;"}),Go=je("span",{target:"eaw9yqk2",label:"Stroke"})("box-sizing:border-box;display:block;pointer-events:none;position:absolute;",(function(e){var t=e.isFocused;return le({backgroundColor:"currentColor",opacity:t?1:.3},"")}),";"),$o=je(Go,{target:"eaw9yqk3",label:"VerticalStroke"})({name:"r820ty",styles:"bottom:3px;top:3px;width:2px;"}),qo=je(Go,{target:"eaw9yqk4",label:"HorizontalStroke"})({name:"1gteeqa",styles:"height:2px;left:3px;right:3px;"}),Yo=je(qo,{target:"eaw9yqk5",label:"TopStroke"})({name:"1etxbbi",styles:"top:0;"}),Zo=je($o,{target:"eaw9yqk6",label:"RightStroke"})({name:"19zs6va",styles:"right:0;"}),Xo=je(qo,{target:"eaw9yqk7",label:"BottomStroke"})({name:"lh0t43",styles:"bottom:0;"}),Jo=je($o,{target:"eaw9yqk8",label:"LeftStroke"})({name:"260zpl",styles:"left:0;"});function Qo(e){var t=e.size,n=void 0===t?24:t,r=e.side,i=void 0===r?"all":r,s=Object(a.a)(e,["size","side"]),u=ei(i,"top"),l=ei(i,"right"),d=ei(i,"bottom"),f=ei(i,"left"),p=n/24;return Object(c.createElement)(Wo,Object(o.a)({style:{transform:"scale(".concat(p,")")}},s),Object(c.createElement)(Uo,null,Object(c.createElement)(Yo,{isFocused:u}),Object(c.createElement)(Zo,{isFocused:l}),Object(c.createElement)(Xo,{isFocused:d}),Object(c.createElement)(Jo,{isFocused:f})))}function ei(e,t){return"all"===e||e===t}var ti=n(186),ni=n(218);function ri(e){var t=e.isLinked,n=Object(a.a)(e,["isLinked"]),r=t?Object(S.__)("Unlink Sides"):Object(S.__)("Link Sides");return Object(c.createElement)(C.a,{text:r},Object(c.createElement)("span",null,Object(c.createElement)(qr.a,Object(o.a)({},n,{className:"component-box-control__linked-button",isPrimary:t,isSecondary:!t,isSmall:!0,icon:t?ti.a:ni.a,iconSize:16}))))}var oi={name:"tbck19",styles:"bottom:0;left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:1;"},ii=je("div",{target:"e1df9b4q0",label:"Container"})("box-sizing:border-box;position:relative;",(function(e){return e.isPositionAbsolute?oi:""}),";"),ai=je("div",{target:"e1df9b4q1",label:"Side"})("box-sizing:border-box;background:",Fe("blue.wordpress.700"),";background:",Fe("ui.theme"),";filter:brightness( 1 );opacity:0;position:absolute;pointer-events:none;transition:opacity 120ms linear;z-index:1;",(function(e){return e.isActive&&"\n\t\topacity: 0.3;\n\t"}),""),ci=je(ai,{target:"e1df9b4q2",label:"TopView"})({name:"1pb21am",styles:"top:0;left:0;right:0;"}),si=je(ai,{target:"e1df9b4q3",label:"RightView"})("top:0;bottom:0;",nt({right:0}),";"),ui=je(ai,{target:"e1df9b4q4",label:"BottomView"})({name:"w87m56",styles:"bottom:0;left:0;right:0;"}),li=je(ai,{target:"e1df9b4q5",label:"LeftView"})("top:0;bottom:0;",nt({left:0}),";");function di(e){var t=e.showValues,n=void 0===t?No:t,r=e.values,o=r.top,i=r.right,a=r.bottom,s=r.left;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(fi,{isVisible:n.top,value:o}),Object(c.createElement)(pi,{isVisible:n.right,value:i}),Object(c.createElement)(bi,{isVisible:n.bottom,value:a}),Object(c.createElement)(hi,{isVisible:n.left,value:s}))}function fi(e){var t=e.isVisible,n=void 0!==t&&t,r=e.value,o=vi(r).isActive||n;return Object(c.createElement)(ci,{isActive:o,style:{height:r}})}function pi(e){var t=e.isVisible,n=void 0!==t&&t,r=e.value,o=vi(r).isActive||n;return Object(c.createElement)(si,{isActive:o,style:{width:r}})}function bi(e){var t=e.isVisible,n=void 0!==t&&t,r=e.value,o=vi(r).isActive||n;return Object(c.createElement)(ui,{isActive:o,style:{height:r}})}function hi(e){var t=e.isVisible,n=void 0!==t&&t,r=e.value,o=vi(r).isActive||n;return Object(c.createElement)(li,{isActive:o,style:{width:r}})}function vi(e){var t=Object(c.useState)(!1),n=Object(i.a)(t,2),r=n[0],o=n[1],a=Object(c.useRef)(e),s=Object(c.useRef)(),u=function(){s.current&&window.clearTimeout(s.current)};return Object(c.useEffect)((function(){return e!==a.current&&(o(!0),a.current=e,u(),s.current=setTimeout((function(){o(!1)}),400)),function(){return u()}}),[e]),{isActive:r}}function mi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mi(Object(n),!0).forEach((function(t){Object(P.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var gi={min:0};function Oi(e){var t=e.id,n=e.inputProps,r=void 0===n?gi:n,o=e.onChange,a=void 0===o?s.noop:o,u=e.onChangeShowVisualizer,l=void 0===u?s.noop:u,d=e.label,f=void 0===d?Object(S.__)("Box Control"):d,p=e.values,b=e.units,h=yo(p,{fallback:Ro}),v=Object(i.a)(h,2),m=v[0],y=v[1],g=m||Ro,O=zo(p),j=Object(c.useState)(O),w=Object(i.a)(j,2),k=w[0],_=w[1],x=Object(c.useState)(!O||!Fo(g)),C=Object(i.a)(x,2),P=C[0],D=C[1],M=Object(c.useState)(P?"all":"top"),T=Object(i.a)(M,2),I=T[0],R=T[1],N=function(e){var t=Object(E.useInstanceId)(Oi,"inspector-box-control");return e||t}(t),A="".concat(N,"-heading"),L=yi(yi({},r),{},{onChange:function(e){a(e),y(e),_(!0)},onFocus:function(e,t){var n=t.side;R(n)},onHoverOn:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l(yi(yi({},No),e))},onHoverOff:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l(yi(yi({},No),e))},isLinked:P,units:b,values:g});return Object(c.createElement)(Oo,{id:N,role:"region","aria-labelledby":A},Object(c.createElement)(jo,{className:"component-box-control__header"},Object(c.createElement)(Et,null,Object(c.createElement)(Xt,{id:A,className:"component-box-control__label"},f)),Object(c.createElement)(Et,null,Object(c.createElement)(qr.a,{className:"component-box-control__reset-button",isSecondary:!0,isSmall:!0,onClick:function(){var e=Ro;a(e),y(e),_(!1)},disabled:!k},Object(S.__)("Reset")))),Object(c.createElement)(wo,{className:"component-box-control__header-control-wrapper"},Object(c.createElement)(Et,null,Object(c.createElement)(Qo,{side:I})),P&&Object(c.createElement)(kt,null,Object(c.createElement)(Ho,L)),Object(c.createElement)(Et,null,Object(c.createElement)(ri,{onClick:function(){D(!P),R(P?"top":"all")},isLinked:P}))),!P&&Object(c.createElement)(Ko,L))}Oi.__Visualizer=function(e){var t=e.children,n=e.showValues,r=void 0===n?No:n,i=e.values,s=void 0===i?Ro:i,u=Object(a.a)(e,["children","showValues","values"]),l=!t;return Object(c.createElement)(ii,Object(o.a)({},u,{isPositionAbsolute:l,"aria-hidden":"true"}),Object(c.createElement)(di,{showValues:r,values:s}),t)};var ji=Object(c.forwardRef)((function(e,t){var n=e.className,r=Object(a.a)(e,["className"]),i=l()("components-button-group",n);return Object(c.createElement)("div",Object(o.a)({ref:t,role:"group",className:i},r))})),wi=Object(c.createContext)({}),ki=function(){return Object(c.useContext)(wi)},_i={borderColor:Fe("lightGray.500"),borderRadius:"3px",backgroundShady:Fe("lightGray.200")},Si=_i.borderColor,Ei=_i.borderRadius,xi=_i.backgroundShady,Ci=je("div",{target:"e1q7k77g0",label:"CardUI"})("background:",Fe("white"),";box-sizing:border-box;border-radius:",Ei,";border:1px solid ",Si,";",Ni,";&.is-elevated{box-shadow:0px 1px 3px 0px rgba( 0,0,0,0.2 ),0px 1px 1px 0px rgba( 0,0,0,0.14 ),0px 2px 1px -1px rgba( 0,0,0,0.12 );}"),Pi=je(St,{target:"e1q7k77g1",label:"HeaderUI"})("border-bottom:1px solid ",Si,";border-top-left-radius:",Ei,";border-top-right-radius:",Ei,";box-sizing:border-box;&:last-child{border-bottom:none;}",Ri,";",Ni,";",Ai,";"),Di=je("div",{target:"e1q7k77g2",label:"MediaUI"})("box-sizing:border-box;overflow:hidden;& > img,& > iframe{display:block;height:auto;max-width:100%;width:100%;}&:first-of-type{border-top-left-radius:",Ei,";border-top-right-radius:",Ei,";}&:last-of-type{border-bottom-left-radius:",Ei,";border-bottom-right-radius:",Ei,";}"),Mi=je("div",{target:"e1q7k77g3",label:"BodyUI"})("box-sizing:border-box;",(function(){return"\n\t\t&.is-size {\n\t\t\t&-large {\n\t\t\t\tpadding: ".concat(ft(3)," ").concat(ft(4),";\n\t\t\t}\n\t\t\t&-medium {\n\t\t\t\tpadding: ").concat(ft(2)," ").concat(ft(3),";\n\t\t\t}\n\t\t\t&-small {\n\t\t\t\tpadding: ").concat(ft(2),";\n\t\t\t}\n\t\t\t&-extraSmall {\n\t\t\t\tpadding: ").concat(ft(1),";\n\t\t\t}\n\t\t}\n\t")}),";",Ai,";"),Ti=je(St,{target:"e1q7k77g4",label:"FooterUI"})("border-top:1px solid ",Si,";border-bottom-left-radius:",Ei,";border-bottom-right-radius:",Ei,";box-sizing:border-box;&:first-of-type{border-top:none;}",Ri,";",Ni,";",Ai,";"),Ii=je(r.HorizontalRule,{target:"e1q7k77g5",label:"DividerUI"})("all:unset;border-top:1px solid ",Si,";box-sizing:border-box;display:block;height:0;width:100%;");function Ri(){return"\n\t\t&.is-size {\n\t\t\t&-large {\n\t\t\t\tpadding: ".concat(ft(3)," ").concat(ft(4),";\n\t\t\t}\n\t\t\t&-medium {\n\t\t\t\tpadding: ").concat(ft(2)," ").concat(ft(3),";\n\t\t\t}\n\t\t\t&-small {\n\t\t\t\tpadding: ").concat(ft(2),";\n\t\t\t}\n\t\t\t&-extraSmall {\n\t\t\t\tpadding: ").concat(ft(1),";\n\t\t\t}\n\t\t}\n\t")}function Ni(){return"\n\t\t&.is-borderless {\n\t\t\tborder: none;\n\t\t}\n\t"}function Ai(){return"\n\t\t&.is-shady {\n\t\t\tbackground: ".concat(xi,";\n\t\t}\n\t")}function Li(e){var t=e.className,n=e.isBorderless,r=e.isElevated,i=e.size,s=Object(a.a)(e,["className","isBorderless","isElevated","size"]),u=wi.Provider,d={isBorderless:n,isElevated:r,size:i},f=l()("components-card",n&&"is-borderless",r&&"is-elevated",i&&"is-size-".concat(i),t);return Object(c.createElement)(u,{value:d},Object(c.createElement)(Ci,Object(o.a)({},s,{className:f})))}Li.defaultProps={isBorderless:!1,isElevated:!1,size:"medium"};var Fi=Li;function zi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zi(Object(n),!0).forEach((function(t){Object(P.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Hi={isShady:!1,size:"medium"};var Vi=function(e){var t=e.className,n=e.isShady,r=Object(a.a)(e,["className","isShady"]),i=Bi(Bi(Bi({},Hi),ki()),e).size,s=l()("components-card__body",n&&"is-shady",i&&"is-size-".concat(i),t);return Object(c.createElement)(Mi,Object(o.a)({},r,{className:s}))};var Ki=function(e){var t=e.className,n=Object(a.a)(e,["className"]),r=l()("components-card__divider",t);return Object(c.createElement)(Ii,Object(o.a)({},n,{children:null,className:r,role:"separator"}))};function Wi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ui(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wi(Object(n),!0).forEach((function(t){Object(P.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Gi={isBorderless:!1,isShady:!1,size:"medium"};var $i=function(e){var t=e.className,n=e.isShady,r=Object(a.a)(e,["className","isShady"]),i=Ui(Ui(Ui({},Gi),ki()),e),s=i.isBorderless,u=i.size,d=l()("components-card__footer",s&&"is-borderless",n&&"is-shady",u&&"is-size-".concat(u),t);return Object(c.createElement)(Ti,Object(o.a)({},r,{className:d}))};function qi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qi(Object(n),!0).forEach((function(t){Object(P.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Zi={isBorderless:!1,isShady:!1,size:"medium"};var Xi=function(e){var t=e.className,n=e.isShady,r=Object(a.a)(e,["className","isShady"]),i=Yi(Yi(Yi({},Zi),ki()),e),s=i.isBorderless,u=i.size,d=l()("components-card__header",s&&"is-borderless",n&&"is-shady",u&&"is-size-".concat(u),t);return Object(c.createElement)(Pi,Object(o.a)({},r,{className:d}))};var Ji=function(e){var t=e.className,n=Object(a.a)(e,["className"]),r=l()("components-card__media",t);return Object(c.createElement)(Di,Object(o.a)({},n,{className:r}))},Qi=n(141),ea=n(161);function ta(e){var t=e.label,n=e.className,r=e.heading,i=e.checked,s=e.help,u=e.onChange,l=Object(a.a)(e,["label","className","heading","checked","help","onChange"]),d=Object(E.useInstanceId)(ta),f="inspector-checkbox-control-".concat(d);return Object(c.createElement)(yt,{label:r,id:f,help:s,className:n},Object(c.createElement)("span",{className:"components-checkbox-control__input-container"},Object(c.createElement)("input",Object(o.a)({id:f,className:"components-checkbox-control__input",type:"checkbox",value:"1",onChange:function(e){return u(e.target.checked)},checked:i,"aria-describedby":s?f+"__help":void 0},l)),i?Object(c.createElement)(Qi.a,{icon:ea.a,className:"components-checkbox-control__checked",role:"presentation"}):null),Object(c.createElement)("label",{className:"components-checkbox-control__label",htmlFor:f},t))}function na(e){var t=e.className,n=e.children,r=e.onCopy,i=e.onFinishCopy,s=e.text,u=Object(a.a)(e,["className","children","onCopy","onFinishCopy","text"]),d=Object(c.useRef)(),f=Object(E.useCopyOnClick)(d,s),p=Object(c.useRef)(f);Object(c.useEffect)((function(){p.current!==f&&(f?r():i&&i(),p.current=f)}),[r,i,f]);var b=l()("components-clipboard-button",t);return Object(c.createElement)(qr.a,Object(o.a)({},u,{className:b,ref:d,onCopy:function(e){e.target.focus()}}),n)}var ra=n(274),oa=n(160),ia=n(314),aa=n(315),ca=n(209);function sa(e){var t,n,r,a,s,u,d,f=e.renderContent,p=e.renderToggle,b=e.position,h=void 0===b?"bottom right":b,v=e.className,m=e.contentClassName,y=e.expandOnMobile,g=e.headerTitle,O=e.focusOnMount,j=e.popoverProps,w=e.onClose,k=e.onToggle,_=Object(c.useRef)(),S=(n=!1,r=k,a=Object(c.useState)(n),s=Object(i.a)(a,2),u=s[0],d=s[1],[u,function(e){d(e),r&&r(e)}]),E=Object(i.a)(S,2),x=E[0],C=E[1];function P(){w&&w(),C(!1)}Object(c.useEffect)((function(){return function(){k&&k(!1)}}),[]);var D={isOpen:x,onToggle:function(){C(!x)},onClose:P};return Object(c.createElement)("div",{className:l()("components-dropdown",v),ref:_},p(D),x&&Object(c.createElement)(Yr.a,Object(o.a)({position:h,onClose:P,onFocusOutside:function(){var e=_.current.ownerDocument;_.current.contains(e.activeElement)||e.activeElement.closest('[role="dialog"]')||P()},expandOnMobile:y,headerTitle:g,focusOnMount:O},j,{anchorRef:null!==(t=null==j?void 0:j.anchorRef)&&void 0!==t?t:_.current,className:l()("components-dropdown__content",j?j.className:void 0,m)}),f(D)))}function ua(e){var t=e.actions,n=e.className,r=e.options,o=e.children;return Object(c.createElement)("div",{className:l()("components-circular-option-picker",n)},Object(c.createElement)("div",{className:"components-circular-option-picker__swatches"},r),o,t&&Object(c.createElement)("div",{className:"components-circular-option-picker__custom-clear-wrapper"},t))}ua.Option=function(e){var t=e.className,n=e.isSelected,r=e.selectedIconProps,i=e.tooltipText,s=Object(a.a)(e,["className","isSelected","selectedIconProps","tooltipText"]),u=Object(c.createElement)(qr.a,Object(o.a)({isPressed:n,className:l()(t,"components-circular-option-picker__option")},s));return Object(c.createElement)("div",{className:"components-circular-option-picker__option-wrapper"},i?Object(c.createElement)(C.a,{text:i},u):u,n&&Object(c.createElement)(Qi.a,Object(o.a)({icon:ea.a},r||{})))},ua.ButtonAction=function(e){var t=e.className,n=e.children,r=Object(a.a)(e,["className","children"]);return Object(c.createElement)(qr.a,Object(o.a)({className:l()("components-circular-option-picker__clear",t),isSmall:!0,isSecondary:!0},r),n)},ua.DropdownLinkAction=function(e){var t=e.buttonProps,n=e.className,r=e.dropdownProps,i=e.linkText;return Object(c.createElement)(sa,Object(o.a)({className:l()("components-circular-option-picker__dropdown-link-action",n),renderToggle:function(e){var n=e.isOpen,r=e.onToggle;return Object(c.createElement)(qr.a,Object(o.a)({"aria-expanded":n,"aria-haspopup":"true",onClick:r,isLink:!0},t),i)}},r))};var la=n(21),da=n(22),fa=n(16),pa=n(23),ba=n(24),ha=n(19);function va(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.hex?ke()(e.hex):ke()(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 i=n.toRgb(),a=n.toHex();0===r.s&&(r.h=t||0,o.h=t||0);var c="000000"===a&&0===i.a;return{color:n,hex:c?"transparent":"#".concat(a),hsl:r,hsv:o,oldHue:e.h||t||r.h,rgb:i,source:e.source}}function ma(e,t){e.preventDefault();var n=t.getBoundingClientRect(),r=n.left,o=n.top,i=n.width,a=n.height,c="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,s="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,u=c-(r+window.pageXOffset),l=s-(o+window.pageYOffset);return u<0?u=0:u>i?u=i:l<0?l=0:l>a&&(l=a),{top:l,left:u,width:i,height:a}}function ya(e){var t="#"===String(e).charAt(0)?1:0;return e.length!==4+t&&e.length<7+t&&ke()(e).isValid()}function ga(e){var t=e.target,n=e.callback,r=e.shortcut,o=e.bindGlobal,i=e.eventName;return Object(E.useKeyboardShortcut)(r,n,{bindGlobal:o,target:t,eventName:i}),null}var Oa=function(e){var t=e.children,n=e.shortcuts,r=e.bindGlobal,o=e.eventName,i=Object(c.useRef)(),a=Object(s.map)(n,(function(e,t){return Object(c.createElement)(ga,{key:t,shortcut:t,callback:e,bindGlobal:r,eventName:o,target:i})}));return c.Children.count(t)?Object(c.createElement)("div",{ref:i},a,t):a};function ja(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ha.a)(e);if(t){var o=Object(ha.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ba.a)(this,n)}}var wa=function(e){Object(pa.a)(n,e);var t=ja(n);function n(){var e;return Object(la.a)(this,n),(e=t.apply(this,arguments)).container=Object(c.createRef)(),e.increase=e.increase.bind(Object(fa.a)(e)),e.decrease=e.decrease.bind(Object(fa.a)(e)),e.handleChange=e.handleChange.bind(Object(fa.a)(e)),e.handleMouseDown=e.handleMouseDown.bind(Object(fa.a)(e)),e.handleMouseUp=e.handleMouseUp.bind(Object(fa.a)(e)),e}return Object(da.a)(n,[{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?s.noop:r;e=parseInt(100*e,10);var i={h:n.h,s:n.s,l:n.l,a:(parseInt(100*n.a,10)+e)/100,source:"rgb"};o(i)}},{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?s.noop:r,i=parseInt(100*n.a,10)-parseInt(100*e,10),a={h:n.h,s:n.s,l:n.l,a:n.a<=e?0:i/100,source:"rgb"};o(a)}},{key:"handleChange",value:function(e){var t=this.props.onChange,n=void 0===t?s.noop:t,r=function(e,t,n){var r=ma(e,n),o=r.left,i=r.width,a=o<0?0:Math.round(100*o/i)/100;return t.hsl.a!==a?{h:t.hsl.h,s:t.hsl.s,l:t.hsl.l,a: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!==pr.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%)")},o={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(c.createElement)(Oa,{shortcuts:i},Object(c.createElement)("div",{className:"components-color-picker__alpha"},Object(c.createElement)("div",{className:"components-color-picker__alpha-gradient",style:r}),Object(c.createElement)("div",{className:"components-color-picker__alpha-bar",ref:this.container,onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},Object(c.createElement)("div",{tabIndex:"0",role:"slider","aria-valuemax":"1","aria-valuemin":"0","aria-valuenow":t.a,"aria-orientation":"horizontal","aria-label":Object(S.__)("Alpha value, from 0 (transparent) to 1 (fully opaque)."),className:"components-color-picker__alpha-pointer",style:o,onKeyDown:this.preventKeyEvents}))))}}]),n}(c.Component),ka=Object(E.pure)(wa);function _a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ha.a)(e);if(t){var o=Object(ha.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ba.a)(this,n)}}var Sa=function(e){Object(pa.a)(n,e);var t=_a(n);function n(){var e;return Object(la.a)(this,n),(e=t.apply(this,arguments)).container=Object(c.createRef)(),e.increase=e.increase.bind(Object(fa.a)(e)),e.decrease=e.decrease.bind(Object(fa.a)(e)),e.handleChange=e.handleChange.bind(Object(fa.a)(e)),e.handleMouseDown=e.handleMouseDown.bind(Object(fa.a)(e)),e.handleMouseUp=e.handleMouseUp.bind(Object(fa.a)(e)),e}return Object(da.a)(n,[{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?s.noop:r,i={h:n.h+e>=359?359:n.h+e,s:n.s,l:n.l,a:n.a,source:"rgb"};o(i)}},{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?s.noop:r,i={h:n.h<=e?0:n.h-e,s:n.s,l:n.l,a:n.a,source:"rgb"};o(i)}},{key:"handleChange",value:function(e){var t=this.props.onChange,n=void 0===t?s.noop:t,r=function(e,t,n){var r=ma(e,n),o=r.left,i=r.width,a=o>=i?359:360*(100*o/i)/100;return t.hsl.h!==a?{h:a,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!==pr.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,o=t.instanceId,i={left:"".concat(100*r.h/360,"%")},a={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(c.createElement)(Oa,{shortcuts:a},Object(c.createElement)("div",{className:"components-color-picker__hue"},Object(c.createElement)("div",{className:"components-color-picker__hue-gradient"}),Object(c.createElement)("div",{className:"components-color-picker__hue-bar",ref:this.container,onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},Object(c.createElement)("div",{tabIndex:"0",role:"slider","aria-valuemax":"1","aria-valuemin":"359","aria-valuenow":r.h,"aria-orientation":"horizontal","aria-label":Object(S.__)("Hue value in degrees, from 0 to 359."),"aria-describedby":"components-color-picker__hue-description-".concat(o),className:"components-color-picker__hue-pointer",style:i,onKeyDown:this.preventKeyEvents}),Object(c.createElement)(M,{as:"p",id:"components-color-picker__hue-description-".concat(o)},Object(S.__)("Move the arrow left or right to change hue.")))))}}]),n}(c.Component),Ea=Object(E.compose)(E.pure,E.withInstanceId)(Sa);function xa(e){var t=e.label,n=e.hideLabelFromVision,r=e.value,i=e.help,s=e.className,u=e.onChange,l=e.type,d=void 0===l?"text":l,f=Object(a.a)(e,["label","hideLabelFromVision","value","help","className","onChange","type"]),p=Object(E.useInstanceId)(xa),b="inspector-text-control-".concat(p);return Object(c.createElement)(yt,{label:t,hideLabelFromVision:n,id:b,help:i,className:s},Object(c.createElement)("input",Object(o.a)({className:"components-text-control__input",type:d,id:b,value:r,onChange:function(e){return u(e.target.value)},"aria-describedby":i?b+"__help":void 0},f)))}function Ca(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ha.a)(e);if(t){var o=Object(ha.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ba.a)(this,n)}}var Pa=function(e){Object(pa.a)(n,e);var t=Ca(n);function n(){var e;return Object(la.a)(this,n),(e=t.apply(this,arguments)).handleBlur=e.handleBlur.bind(Object(fa.a)(e)),e.handleChange=e.handleChange.bind(Object(fa.a)(e)),e.handleKeyDown=e.handleKeyDown.bind(Object(fa.a)(e)),e}return Object(da.a)(n,[{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&&ya(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===pr.ENTER||t===pr.UP||t===pr.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,i=Object(a.a)(t,["label","value"]);return Object(c.createElement)(xa,Object(o.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(s.omit)(i,["onChange","valueKey","source"])))}}]),n}(c.Component),Da=Object(E.pure)(qr.a),Ma=function(e){Object(pa.a)(n,e);var t=Ca(n);function n(e){var r,o=e.hsl;Object(la.a)(this,n),r=t.apply(this,arguments);var i=1===o.a?"hex":"rgb";return r.state={view:i},r.toggleViews=r.toggleViews.bind(Object(fa.a)(r)),r.resetDraftValues=r.resetDraftValues.bind(Object(fa.a)(r)),r.handleChange=r.handleChange.bind(Object(fa.a)(r)),r.normalizeValue=r.normalizeValue.bind(Object(fa.a)(r)),r}return Object(da.a)(n,[{key:"toggleViews",value:function(){"hex"===this.state.view?(this.setState({view:"rgb"},this.resetDraftValues),Object(Zr.speak)(Object(S.__)("RGB mode active"))):"rgb"===this.state.view?(this.setState({view:"hsl"},this.resetDraftValues),Object(Zr.speak)(Object(S.__)("Hue/saturation/lightness mode active"))):"hsl"===this.state.view&&(1===this.props.hsl.a?(this.setState({view:"hex"},this.resetDraftValues),Object(Zr.speak)(Object(S.__)("Hex color mode active"))):(this.setState({view:"rgb"},this.resetDraftValues),Object(Zr.speak)(Object(S.__)("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;if("hex"===this.state.view)return Object(c.createElement)("div",{className:"components-color-picker__inputs-fields"},Object(c.createElement)(Pa,{source:this.state.view,label:Object(S.__)("Color value in hexadecimal"),valueKey:"hex",value:this.props.hex,onChange:this.handleChange}));if("rgb"===this.state.view){var n=t?Object(S.__)("Color value in RGB"):Object(S.__)("Color value in RGBA");return Object(c.createElement)("fieldset",null,Object(c.createElement)(M,{as:"legend"},n),Object(c.createElement)("div",{className:"components-color-picker__inputs-fields"},Object(c.createElement)(Pa,{source:this.state.view,label:"r",valueKey:"r",value:this.props.rgb.r,onChange:this.handleChange,type:"number",min:"0",max:"255"}),Object(c.createElement)(Pa,{source:this.state.view,label:"g",valueKey:"g",value:this.props.rgb.g,onChange:this.handleChange,type:"number",min:"0",max:"255"}),Object(c.createElement)(Pa,{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(c.createElement)(Pa,{source:this.state.view,label:"a",valueKey:"a",value:this.props.rgb.a,onChange:this.handleChange,type:"number",min:"0",max:"1",step:"0.01"})))}if("hsl"===this.state.view){var r=t?Object(S.__)("Color value in HSL"):Object(S.__)("Color value in HSLA");return Object(c.createElement)("fieldset",null,Object(c.createElement)(M,{as:"legend"},r),Object(c.createElement)("div",{className:"components-color-picker__inputs-fields"},Object(c.createElement)(Pa,{source:this.state.view,label:"h",valueKey:"h",value:this.props.hsl.h,onChange:this.handleChange,type:"number",min:"0",max:"359"}),Object(c.createElement)(Pa,{source:this.state.view,label:"s",valueKey:"s",value:this.props.hsl.s,onChange:this.handleChange,type:"number",min:"0",max:"100"}),Object(c.createElement)(Pa,{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(c.createElement)(Pa,{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"})))}}},{key:"render",value:function(){return Object(c.createElement)("div",{className:"components-color-picker__inputs-wrapper"},this.renderFields(),Object(c.createElement)("div",{className:"components-color-picker__inputs-toggle-wrapper"},Object(c.createElement)(Da,{className:"components-color-picker__inputs-toggle",icon:aa.a,label:Object(S.__)("Change color format"),onClick:this.toggleViews})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 1!==e.hsl.a&&"hex"===t.view?{view:"rgb"}:null}}]),n}(c.Component);function Ta(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ha.a)(e);if(t){var o=Object(ha.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ba.a)(this,n)}}var Ia=function(e){Object(pa.a)(n,e);var t=Ta(n);function n(e){var r;return Object(la.a)(this,n),(r=t.call(this,e)).throttle=Object(s.throttle)((function(e,t,n){e(t,n)}),50),r.container=Object(c.createRef)(),r.saturate=r.saturate.bind(Object(fa.a)(r)),r.brighten=r.brighten.bind(Object(fa.a)(r)),r.handleChange=r.handleChange.bind(Object(fa.a)(r)),r.handleMouseDown=r.handleMouseDown.bind(Object(fa.a)(r)),r.handleMouseUp=r.handleMouseUp.bind(Object(fa.a)(r)),r}return Object(da.a)(n,[{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?s.noop:r,i=Object(s.clamp)(n.s+Math.round(100*e),0,100),a={h:n.h,s:i,v:n.v,a:n.a,source:"rgb"};o(a)}},{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?s.noop:r,i=Object(s.clamp)(n.v+Math.round(100*e),0,100),a={h:n.h,s:n.s,v:i,a:n.a,source:"rgb"};o(a)}},{key:"handleChange",value:function(e){var t=this.props.onChange,n=void 0===t?s.noop:t,r=function(e,t,n){var r=ma(e,n),o=r.top,i=r.left,a=r.width,c=r.height,s=i<0?0:100*i/a,u=o>=c?0:-100*o/c+100;return u<1&&(u=0),{h:t.hsl.h,s:s,v:u,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!==pr.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,o=t.instanceId,i={top:"".concat(100-n.v,"%"),left:"".concat(n.s,"%")},a={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(c.createElement)(Oa,{shortcuts:a},Object(c.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(c.createElement)("div",{className:"components-color-picker__saturation-white"}),Object(c.createElement)("div",{className:"components-color-picker__saturation-black"}),Object(c.createElement)(qr.a,{"aria-label":Object(S.__)("Choose a shade"),"aria-describedby":"color-picker-saturation-".concat(o),className:"components-color-picker__saturation-pointer",style:i,onKeyDown:this.preventKeyEvents}),Object(c.createElement)(M,{id:"color-picker-saturation-".concat(o)},Object(S.__)("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."))))}}]),n}(c.Component),Ra=Object(E.compose)(E.pure,E.withInstanceId)(Ia);function Na(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ha.a)(e);if(t){var o=Object(ha.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ba.a)(this,n)}}function Aa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function La(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Aa(Object(n),!0).forEach((function(t){Object(P.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Aa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Fa=function(e){return String(e).toLowerCase()},za=function(e){return e.hex?ya(e.hex):(t=e,n=0,r=0,Object(s.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},Ba=function(e,t){var n=t.source,r=t.valueKey,o=t.value;return"hex"===n?Object(P.a)({source:n},n,o):La({source:n},La(La({},e[n]),Object(P.a)({},r,o)))},Ha=function(e){Object(pa.a)(n,e);var t=Na(n);function n(e){var r,o=e.color,i=void 0===o?"0071a1":o;Object(la.a)(this,n),r=t.apply(this,arguments);var a=va(i);return r.state=La(La({},a),{},{draftHex:Fa(a.hex),draftRgb:a.rgb,draftHsl:a.hsl}),r.commitValues=r.commitValues.bind(Object(fa.a)(r)),r.setDraftValues=r.setDraftValues.bind(Object(fa.a)(r)),r.resetDraftValues=r.resetDraftValues.bind(Object(fa.a)(r)),r.handleInputChange=r.handleInputChange.bind(Object(fa.a)(r)),r}return Object(da.a)(n,[{key:"commitValues",value:function(e){var t=this.props,n=t.oldHue,r=t.onChangeComplete,o=void 0===r?s.noop:r;if(za(e)){var i=va(e,e.h||n);this.setState(La(La({},i),{},{draftHex:Fa(i.hex),draftHsl:i.hsl,draftRgb:i.rgb}),Object(s.debounce)(Object(s.partial)(o,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:Fa(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=Ba(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(Ba(this.state,e))}}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.disableAlpha,r=this.state,o=r.color,i=r.hsl,a=r.hsv,s=r.rgb,u=r.draftHex,d=r.draftHsl,f=r.draftRgb,p=l()(t,{"components-color-picker":!0,"is-alpha-disabled":n,"is-alpha-enabled":!n});return Object(c.createElement)("div",{className:p},Object(c.createElement)("div",{className:"components-color-picker__saturation"},Object(c.createElement)(Ra,{hsl:i,hsv:a,onChange:this.commitValues})),Object(c.createElement)("div",{className:"components-color-picker__body"},Object(c.createElement)("div",{className:"components-color-picker__controls"},Object(c.createElement)("div",{className:"components-color-picker__swatch"},Object(c.createElement)("div",{className:"components-color-picker__active",style:{backgroundColor:o&&o.toRgbString()}})),Object(c.createElement)("div",{className:"components-color-picker__toggles"},Object(c.createElement)(Ea,{hsl:i,onChange:this.commitValues}),n?null:Object(c.createElement)(ka,{rgb:s,hsl:i,onChange:this.commitValues}))),Object(c.createElement)(Ma,{rgb:f,hsl:d,hex:u,onChange:this.handleInputChange,disableAlpha:n})))}}]),n}(c.Component);function Va(e){var t=e.shouldOpen,n=e.isOpen,r=e.onToggle;return Object(c.useEffect)((function(){t&&!n&&r()}),[]),null}function Ka(e){var t=e.color,n=e.name,r=e.slug,o=e.onChange,a=e.onRemove,u=e.onConfirm,d=e.confirmLabel,f=void 0===d?Object(S.__)("OK"):d,p=e.isEditingNameOnMount,b=void 0!==p&&p,h=e.isEditingColorOnMount,v=void 0!==h&&h,m=e.onCancel,y=Object(c.useState)(!1),g=Object(i.a)(y,2),O=g[0],j=g[1],w=Object(c.useState)(!1),k=Object(i.a)(w,2),_=k[0],E=k[1],x=Object(c.useState)(b),C=Object(i.a)(x,2),P=C[0],D=C[1],M=Object(c.useState)(!1),T=Object(i.a)(M,2),I=T[0],R=T[1],N=O||_||P||I;return Object(c.createElement)("div",{tabIndex:0,className:l()("components-color-edit__color-option",{"is-hover":O&&!P&&!I}),onMouseEnter:function(){return j(!0)},onMouseLeave:function(){return j(!1)},onFocus:function(){return E(!0)},onBlur:function(){return E(!1)},"aria-label":n?Object(S.sprintf)(Object(S.__)("Color: %s"),n):Object(S.sprintf)(Object(S.__)("Color code: %s"),t)},Object(c.createElement)("div",{className:"components-color-edit__color-option-main-area"},Object(c.createElement)(sa,{renderToggle:function(e){var n=e.isOpen,r=e.onToggle;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(Va,{shouldOpen:v,isOpen:n,onToggle:r}),Object(c.createElement)(ua.Option,{style:{backgroundColor:t,color:t},"aria-expanded":n,"aria-haspopup":"true",onClick:r,"aria-label":Object(S.__)("Edit color value")}))},renderContent:function(){return Object(c.createElement)(Ha,{color:t,onChangeComplete:function(e){return o({color:e.hex,slug:r,name:n})},disableAlpha:!0})}}),!P&&Object(c.createElement)("div",{className:"components-color-edit__color-option-color-name"},n),P&&Object(c.createElement)(c.Fragment,null,Object(c.createElement)(xa,{className:"components-color-edit__color-option-color-name-input",hideLabelFromVision:!0,onChange:function(e){return o({color:t,slug:Object(s.kebabCase)(e),name:e})},label:Object(S.__)("Color name"),placeholder:Object(S.__)("Name"),value:n}),Object(c.createElement)(qr.a,{onClick:function(){D(!1),E(!1),u&&u()},isPrimary:!0},f)),!P&&Object(c.createElement)(c.Fragment,null,Object(c.createElement)(qr.a,{className:l()({"components-color-edit__hidden-control":!N}),icon:ra.a,label:Object(S.__)("Edit color name"),onClick:function(){return D(!0)}}),Object(c.createElement)(qr.a,{className:l()({"components-color-edit__hidden-control":!N}),icon:oa.a,label:Object(S.__)("Remove color"),onClick:a})),Object(c.createElement)(qr.a,{className:l()({"components-color-edit__hidden-control":!N}),icon:I?ia.a:aa.a,label:Object(S.__)("Additional color settings"),onClick:function(){I&&E(!1),R(!I)},"aria-expanded":I})),m&&Object(c.createElement)(qr.a,{className:"components-color-edit__cancel-button",onClick:m},Object(S.__)("Cancel")),I&&Object(c.createElement)(xa,{className:"components-color-edit__slug-input",onChange:function(e){return o({color:t,slug:e,name:n})},label:Object(S.__)("Slug"),value:r}))}function Wa(e){var t=e.onInsert,n=e.onCancel,r=Object(c.useState)({color:"#fff",name:"",slug:""}),o=Object(i.a)(r,2),a=o[0],s=o[1];return Object(c.createElement)(Ka,{color:a.color,name:a.name,slug:a.slug,onChange:s,confirmLabel:Object(S.__)("Save"),onConfirm:function(){return t(a)},isEditingNameOnMount:!0,isEditingColorOnMount:!0,onCancel:n})}function Ua(e){var t=e.colors,n=e.onChange,r=e.emptyUI,o=Object(c.useState)(!1),a=Object(i.a)(o,2),u=a[0],l=a[1];return Object(c.createElement)(yt,null,Object(c.createElement)("fieldset",null,Object(c.createElement)("div",{className:"components-color-edit__label-and-insert-container"},Object(c.createElement)("legend",null,Object(c.createElement)("div",null,Object(c.createElement)(yt.VisualLabel,null,Object(S.__)("Color palette")))),!u&&Object(c.createElement)(qr.a,{onClick:function(){l(!0)},className:"components-color-edit__insert-button",icon:ca.a})),Object(c.createElement)("div",null,!Object(s.isEmpty)(t)&&t.map((function(e,r){return Object(c.createElement)(Ka,{key:r,color:e.color,name:e.name,slug:e.slug,onChange:function(e){n(t.map((function(t,n){return n===r?e:t})))},onRemove:function(){n(t.filter((function(e,t){return t!==r})))}})})),u&&Object(c.createElement)(Wa,{onInsert:function(e){l(!1),n([].concat(Object(Gr.a)(t||[]),[e]))},onCancel:function(){return l(!1)}}),!u&&Object(s.isEmpty)(t)&&r)))}var Ga=function(e){var t=e.className,n=e.colorValue,r=Object(a.a)(e,["className","colorValue"]);return Object(c.createElement)("span",Object(o.a)({className:l()("component-color-indicator",t),style:{background:n}},r))};function $a(e){var t=e.clearable,n=void 0===t||t,r=e.className,o=e.colors,i=e.disableCustomColors,a=void 0!==i&&i,u=e.onChange,l=e.value,d=Object(c.useCallback)((function(){return u(void 0)}),[u]),f=Object(c.useMemo)((function(){return Object(s.map)(o,(function(e){var t=e.color,n=e.name;return Object(c.createElement)(ua.Option,{key:t,isSelected:l===t,selectedIconProps:l===t?{fill:ke.a.mostReadable(t,["#000","#fff"]).toHexString()}:{},tooltipText:n||Object(S.sprintf)(Object(S.__)("Color code: %s"),t),style:{backgroundColor:t,color:t},onClick:l===t?d:function(){return u(t)},"aria-label":n?Object(S.sprintf)(Object(S.__)("Color: %s"),n):Object(S.sprintf)(Object(S.__)("Color code: %s"),t)})}))}),[o,l,u,d]);return Object(c.createElement)(ua,{className:r,options:f,actions:Object(c.createElement)(c.Fragment,null,!a&&Object(c.createElement)(ua.DropdownLinkAction,{dropdownProps:{renderContent:function(){return Object(c.createElement)(Ha,{color:l,onChangeComplete:function(e){return u(e.hex)},disableAlpha:!0})},contentClassName:"components-color-palette__picker"},buttonProps:{"aria-label":Object(S.__)("Custom color picker")},linkText:Object(S.__)("Custom color")}),!!n&&Object(c.createElement)(ua.ButtonAction,{onClick:d},Object(S.__)("Clear")))})}var qa=n(159);function Ya(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ha.a)(e);if(t){var o=Object(ha.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ba.a)(this,n)}}var Za=function(e){Object(pa.a)(n,e);var t=Ya(n);function n(){var e;return Object(la.a)(this,n),(e=t.apply(this,arguments)).onChange=e.onChange.bind(Object(fa.a)(e)),e.bindInput=e.bindInput.bind(Object(fa.a)(e)),e}return Object(da.a)(n,[{key:"focus",value:function(){this.input.focus()}},{key:"hasFocus",value:function(){return this.input===this.input.ownerDocument.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,i=e.selectedSuggestionIndex,s=e.className,u=Object(a.a)(e,["value","isExpanded","instanceId","selectedSuggestionIndex","className"]),d=t?t.length+1:0;return Object(c.createElement)("input",Object(o.a)({ref:this.bindInput,id:"components-form-token-input-".concat(r),type:"text"},u,{value:t||"",onChange:this.onChange,size:d,className:l()(s,"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!==i?"components-form-token-suggestions-".concat(r,"-").concat(i):void 0,"aria-describedby":"components-form-token-suggestions-howto-".concat(r)}))}}]),n}(c.Component),Xa=n(127),Ja=n.n(Xa);function Qa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ha.a)(e);if(t){var o=Object(ha.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ba.a)(this,n)}}var ec=function(e){Object(pa.a)(n,e);var t=Qa(n);function n(){var e;return Object(la.a)(this,n),(e=t.apply(this,arguments)).handleMouseDown=e.handleMouseDown.bind(Object(fa.a)(e)),e.bindList=e.bindList.bind(Object(fa.a)(e)),e}return Object(da.a)(n,[{key:"componentDidUpdate",value:function(){var e=this;this.props.selectedIndex>-1&&this.props.scrollIntoView&&(this.scrollingIntoView=!0,Ja()(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(c.createElement)("ul",{ref:this.bindList,className:"components-form-token-field__suggestions-list",id:"components-form-token-suggestions-".concat(this.props.instanceId),role:"listbox"},Object(s.map)(this.props.suggestions,(function(t,n){var r=e.computeSuggestionMatch(t),o=l()("components-form-token-field__suggestion",{"is-selected":n===e.props.selectedIndex});return Object(c.createElement)("li",{id:"components-form-token-suggestions-".concat(e.props.instanceId,"-").concat(n),role:"option",className:o,key:e.props.displayTransform(t),onMouseDown:e.handleMouseDown,onClick:e.handleClick(t),onMouseEnter:e.handleHover(t),"aria-selected":n===e.props.selectedIndex},r?Object(c.createElement)("span",{"aria-label":e.props.displayTransform(t)},r.suggestionBeforeMatch,Object(c.createElement)("strong",{className:"components-form-token-field__suggestion-match"},r.suggestionMatch),r.suggestionAfterMatch):e.props.displayTransform(t))})))}}]),n}(c.Component);ec.defaultProps={match:"",onHover:function(){},onSelect:function(){},suggestions:Object.freeze([])};var tc=Object(E.withSafeTimeout)(ec);var nc=function e(t){var n,r=t.value,o=t.label,a=t.options,s=t.onChange,u=t.onFilterValueChange,d=t.hideLabelFromVision,f=t.help,p=t.allowReset,b=void 0===p||p,h=t.className,v=t.messages,m=void 0===v?{selected:Object(S.__)("Item selected.")}:v,y=Object(E.useInstanceId)(e),g=Object(c.useState)(null),O=Object(i.a)(g,2),j=O[0],w=O[1],k=Object(c.useState)(!1),_=Object(i.a)(k,2),x=_[0],C=_[1],P=Object(c.useState)(""),D=Object(i.a)(P,2),M=D[0],T=D[1],I=Object(c.useRef)(),R=a.find((function(e){return e.value===r})),N=null!==(n=null==R?void 0:R.label)&&void 0!==n?n:"",A=Object(c.useMemo)((function(){var e=[],t=[],n=M.toLocaleLowerCase();return a.forEach((function(r){var o=r.label.toLocaleLowerCase().indexOf(n);0===o?e.push(r):o>0&&t.push(r)})),e.concat(t)}),[M,a,r]),L=function(e){s(e.value),Object(Zr.speak)(m.selected,"assertive"),w(e),T(""),C(!1)},F=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=A.indexOf(j),n=t+e;n<0?n=A.length-1:n>=A.length&&(n=0),w(A[n]),C(!0)};return Object(c.useEffect)((function(){var e=A.length>0;if(x){var t=e?Object(S.sprintf)(Object(S._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",A.length),A.length):Object(S.__)("No results.");Object(Zr.speak)(t,"assertive")}}),[A,x]),Object(c.createElement)(yt,{className:l()(h,"components-combobox-control"),tabIndex:"-1",label:o,id:"components-form-token-input-".concat(y),hideLabelFromVision:d,help:f},Object(c.createElement)("div",{className:"components-combobox-control__suggestions-container",tabIndex:"-1",onKeyDown:function(e){var t=!1;switch(e.keyCode){case pr.ENTER:j&&(L(j),t=!0);break;case pr.UP:F(-1),t=!0;break;case pr.DOWN:F(1),t=!0;break;case pr.ESCAPE:C(!1),w(null),t=!0,e.stopPropagation()}t&&e.preventDefault()}},Object(c.createElement)(_t,null,Object(c.createElement)(kt,null,Object(c.createElement)(Za,{className:"components-combobox-control__input",instanceId:y,ref:I,value:x?M:N,onBlur:function(){C(!1)},onFocus:function(){C(!0),u(""),T("")},isExpanded:x,selectedSuggestionIndex:A.indexOf(j),onChange:function(e){var t=e.value;T(t),u(t),C(!0)}})),b&&Object(c.createElement)(Et,null,Object(c.createElement)(qr.a,{className:"components-combobox-control__reset",icon:qa.a,disabled:!r,onClick:function(){s(null),I.current.input.focus()},label:Object(S.__)("Reset")}))),x&&Object(c.createElement)(tc,{instanceId:y,match:{label:M},displayTransform:function(e){return e.label},suggestions:A,selectedIndex:A.indexOf(j),onHover:w,onSelect:L,scrollIntoView:!0})))},rc=n(43);var oc=n(28),ic=n.n(oc);n(200);function ac(e){return null!=e&&"object"==typeof e&&1===e.nodeType}function cc(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function sc(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return cc(n.overflowY,t)||cc(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function uc(e,t,n,r,o,i,a,c){return i<e&&a>t||i>e&&a<t?0:i<=e&&c<=n||a>=t&&c>=n?i-e-r:a>t&&c<n||i<e&&c>n?a-t+o:0}var lc=0;function dc(e,t){e&&function(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,c=t.skipOverflowHiddenElements,s="function"==typeof a?a:function(e){return e!==a};if(!ac(e))throw new TypeError("Invalid target");for(var u=document.scrollingElement||document.documentElement,l=[],d=e;ac(d)&&s(d);){if((d=d.parentNode)===u){l.push(d);break}d===document.body&&sc(d)&&!sc(document.documentElement)||sc(d,c)&&l.push(d)}for(var f=n.visualViewport?n.visualViewport.width:innerWidth,p=n.visualViewport?n.visualViewport.height:innerHeight,b=window.scrollX||pageXOffset,h=window.scrollY||pageYOffset,v=e.getBoundingClientRect(),m=v.height,y=v.width,g=v.top,O=v.right,j=v.bottom,w=v.left,k="start"===o||"nearest"===o?g:"end"===o?j:g+m/2,_="center"===i?w+y/2:"end"===i?O:w,S=[],E=0;E<l.length;E++){var x=l[E],C=x.getBoundingClientRect(),P=C.height,D=C.width,M=C.top,T=C.right,I=C.bottom,R=C.left;if("if-needed"===r&&g>=0&&w>=0&&j<=p&&O<=f&&g>=M&&j<=I&&w>=R&&O<=T)return S;var N=getComputedStyle(x),A=parseInt(N.borderLeftWidth,10),L=parseInt(N.borderTopWidth,10),F=parseInt(N.borderRightWidth,10),z=parseInt(N.borderBottomWidth,10),B=0,H=0,V="offsetWidth"in x?x.offsetWidth-x.clientWidth-A-F:0,K="offsetHeight"in x?x.offsetHeight-x.clientHeight-L-z:0;if(u===x)B="start"===o?k:"end"===o?k-p:"nearest"===o?uc(h,h+p,p,L,z,h+k,h+k+m,m):k-p/2,H="start"===i?_:"center"===i?_-f/2:"end"===i?_-f:uc(b,b+f,f,A,F,b+_,b+_+y,y),B=Math.max(0,B+h),H=Math.max(0,H+b);else{B="start"===o?k-M-L:"end"===o?k-I+z+K:"nearest"===o?uc(M,I,P,L,z+K,k,k+m,m):k-(M+P/2)+K/2,H="start"===i?_-R-A:"center"===i?_-(R+D/2)+V/2:"end"===i?_-T+F+V:uc(R,T,D,A,F+V,_,_+y,y);var W=x.scrollLeft,U=x.scrollTop;k+=U-(B=Math.max(0,Math.min(U+B,x.scrollHeight-P+K))),_+=W-(H=Math.max(0,Math.min(W+H,x.scrollWidth-D+V)))}S.push({el:x,top:B,left:H})}return S}(e,{boundary:t,block:"nearest",scrollMode:"if-needed"}).forEach((function(e){var t=e.el,n=e.top,r=e.left;t.scrollTop=n,t.scrollLeft=r}))}function fc(e,t){return e===t||e.contains&&e.contains(t)}function pc(e,t){var n;function r(){n&&clearTimeout(n)}function o(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];r(),n=setTimeout((function(){n=null,e.apply(void 0,i)}),t)}return o.cancel=r,o}function bc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.some((function(t){return t&&t.apply(void 0,[e].concat(r)),e.preventDownshiftDefault||e.hasOwnProperty("nativeEvent")&&e.nativeEvent.preventDownshiftDefault}))}}function hc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach((function(t){"function"==typeof t?t(e):t&&(t.current=e)}))}}function vc(){return String(lc++)}function mc(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?n+" result"+(1===n?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter key to select.":"":"No results are available.":""}function yc(e,t){return Object.keys(e).reduce((function(n,r){return n[r]=gc(t,r)?t[r]:e[r],n}),{})}function gc(e,t){return void 0!==e[t]}function Oc(e){var t=e.key,n=e.keyCode;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t}function jc(e,t,n,r,o){if(void 0===o&&(o=!0),0===n)return-1;var i=n-1;("number"!=typeof t||t<0||t>=n)&&(t=e>0?-1:i+1);var a=t+e;a<0?a=o?i:0:a>i&&(a=o?0:i);var c=wc(e,a,n,r,o);return-1===c?t>=n?-1:t:c}function wc(e,t,n,r,o){var i=r(t);if(!i||!i.hasAttribute("disabled"))return t;if(e>0){for(var a=t+1;a<n;a++)if(!r(a).hasAttribute("disabled"))return a}else for(var c=t-1;c>=0;c--)if(!r(c).hasAttribute("disabled"))return c;return o?e>0?wc(1,0,n,r,!1):wc(-1,n-1,n,r,!1):-1}function kc(e,t,n,r){return void 0===r&&(r=!0),t.some((function(t){return t&&(fc(t,e)||r&&fc(t,n.activeElement))}))}var _c=pc((function(){Ec().textContent=""}),500);function Sc(e,t){var n=Ec(t);e&&(n.textContent=e,_c())}function Ec(e){void 0===e&&(e=document);var t=e.getElementById("a11y-status-message");return t||((t=e.createElement("div")).setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}var xc={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function Cc(e,t,n){var r=e.props,i=e.type,a={};Object.keys(t).forEach((function(e){!function(e,t,n,r){var o="on"+Ic(e)+"Change";t[o]&&void 0!==r[e]&&r[e]!==n[e]&&t[o](r)}(e,r,t,n),n[e]!==t[e]&&(a[e]=n[e])})),r.onStateChange&&Object.keys(a).length&&r.onStateChange(Object(o.a)({type:i},a))}var Pc=pc((function(e,t){Sc(e(),t)}),200);function Dc(e){var t=e.id,n=e.labelId,r=e.menuId,o=e.getItemId,i=e.toggleButtonId,a=void 0===t?"downshift-"+vc():t;return{labelId:n||a+"-label",menuId:r||a+"-menu",getItemId:o||function(e){return a+"-item-"+e},toggleButtonId:i||a+"-toggle-button"}}function Mc(e,t,n){return void 0!==e?e:0===n.length?-1:n.indexOf(t)}function Tc(e){return/^\S{1}$/.test(e)}function Ic(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function Rc(e){var t=Object(v.useRef)(e);return t.current=e,t}function Nc(e,t,n){var r=Object(v.useRef)(),i=Object(v.useRef)(),a=Object(v.useCallback)((function(t,n){i.current=n,t=yc(t,n.props);var r=e(t,n);return n.props.stateReducer(t,Object(o.a)({},n,{changes:r}))}),[e]),c=Object(v.useReducer)(a,t),s=c[0],u=c[1],l=Rc(n),d=Object(v.useCallback)((function(e){return u(Object(o.a)({props:l.current},e))}),[l]),f=i.current;return Object(v.useEffect)((function(){f&&r.current&&r.current!==s&&Cc(f,yc(r.current,f.props),s),r.current=s}),[s,n,f]),[s,d]}function Ac(e,t,n){var r=Nc(e,t,n),o=r[0],i=r[1];return[yc(o,n),i]}var Lc={itemToString:function(e){return e?String(e):""},stateReducer:function(e,t){return t.changes},getA11ySelectionMessage:function(e){var t=e.selectedItem,n=e.itemToString;return t?n(t)+" has been selected.":""},scrollIntoView:dc,circularNavigation:!1,environment:"undefined"==typeof window?{}:window};function Fc(e,t,n){void 0===n&&(n=xc);var r="default"+Ic(t);return r in e?e[r]:n[t]}function zc(e,t,n){if(void 0===n&&(n=xc),t in e)return e[t];var r="initial"+Ic(t);return r in e?e[r]:Fc(e,t,n)}function Bc(e){var t=zc(e,"selectedItem"),n=zc(e,"isOpen"),r=zc(e,"highlightedIndex"),o=zc(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:o}}function Hc(e,t,n,r){var o=e.items,i=e.initialHighlightedIndex,a=e.defaultHighlightedIndex,c=t.selectedItem,s=t.highlightedIndex;return 0===o.length?-1:void 0!==i&&s===i?i:void 0!==a?a:c?0===n?o.indexOf(c):jc(n,o.indexOf(c),o.length,r,!1):0===n?-1:n<0?o.length-1:0}function Vc(e,t,n,r){var o=Object(v.useRef)({isMouseDown:!1,isTouchMove:!1});return Object(v.useEffect)((function(){var i=function(){o.current.isMouseDown=!0},a=function(i){o.current.isMouseDown=!1,e&&!kc(i.target,t.map((function(e){return e.current})),n.document)&&r()},c=function(){o.current.isTouchMove=!1},s=function(){o.current.isTouchMove=!0},u=function(i){!e||o.current.isTouchMove||kc(i.target,t.map((function(e){return e.current})),n.document,!1)||r()};return n.addEventListener("mousedown",i),n.addEventListener("mouseup",a),n.addEventListener("touchstart",c),n.addEventListener("touchmove",s),n.addEventListener("touchend",u),function(){n.removeEventListener("mousedown",i),n.removeEventListener("mouseup",a),n.removeEventListener("touchstart",c),n.removeEventListener("touchmove",s),n.removeEventListener("touchend",u)}}),[e,n]),o}function Kc(){for(var e=!1,t=Object(v.useRef)(!0),n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];var i=Object(v.useRef)(r.reduce((function(e,t){return e[t]={},e}),{}));Object(v.useEffect)((function(){e&&(Object.keys(i.current).forEach((function(e){var n=i.current[e];if(!t.current||Object.keys(n).length){var r=n.suppressRefError,o=n.refKey,a=n.elementRef;a&&a.current||r||console.error('downshift: The ref prop "'+o+'" from '+e+" was not applied correctly on your element.")}else console.error("downshift: You forgot to call the "+e+" getter function on your component / element.")})),t.current=!1)}));var a=Object(v.useCallback)((function(e,t,n,r){0}),[]);return a}function Wc(e,t,n,r,o){for(var i=n.map((function(e){return r(e).toLowerCase()})),a=e.toLowerCase(),c=function(e,t){var n=o(t);return e.startsWith(a)&&!(n&&n.hasAttribute("disabled"))},s=t+1;s<i.length;s++){if(c(i[s],s))return s}for(var u=0;u<t;u++){if(c(i[u],u))return u}return t}ic.a.array.isRequired,ic.a.func,ic.a.func,ic.a.func,ic.a.bool,ic.a.number,ic.a.number,ic.a.number,ic.a.bool,ic.a.bool,ic.a.bool,ic.a.any,ic.a.any,ic.a.any,ic.a.string,ic.a.string,ic.a.string,ic.a.func,ic.a.string,ic.a.func,ic.a.func,ic.a.func,ic.a.func,ic.a.func,ic.a.shape({addEventListener:ic.a.func,removeEventListener:ic.a.func,document:ic.a.shape({getElementById:ic.a.func,activeElement:ic.a.any,body:ic.a.any})});var Uc=Object(o.a)({},Lc,{getA11yStatusMessage:function(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?n+" result"+(1===n?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select.":"":"No results are available.":""}}),Gc=Object.freeze({__proto__:null,MenuKeyDownArrowDown:0,MenuKeyDownArrowUp:1,MenuKeyDownEscape:2,MenuKeyDownHome:3,MenuKeyDownEnd:4,MenuKeyDownEnter:5,MenuKeyDownSpaceButton:6,MenuKeyDownCharacter:7,MenuBlur:8,MenuMouseLeave:9,ItemMouseMove:10,ItemClick:11,ToggleButtonClick:12,ToggleButtonKeyDownArrowDown:13,ToggleButtonKeyDownArrowUp:14,ToggleButtonKeyDownCharacter:15,FunctionToggleMenu:16,FunctionOpenMenu:17,FunctionCloseMenu:18,FunctionSetHighlightedIndex:19,FunctionSelectItem:20,FunctionSetInputValue:21,FunctionReset:22});function $c(e,t){var n,r=t.type,i=t.props,a=t.shiftKey;switch(r){case 10:n={highlightedIndex:t.index};break;case 11:n={isOpen:Fc(i,"isOpen"),highlightedIndex:Fc(i,"highlightedIndex"),selectedItem:i.items[t.index]};break;case 15:var c=t.key,s=""+e.inputValue+c,u=Wc(s,e.selectedItem?i.items.indexOf(e.selectedItem):-1,i.items,i.itemToString,t.getItemNodeFromIndex);n=Object(o.a)({inputValue:s},u>=0&&{selectedItem:i.items[u]});break;case 13:n={highlightedIndex:Hc(i,e,1,t.getItemNodeFromIndex),isOpen:!0};break;case 14:n={highlightedIndex:Hc(i,e,-1,t.getItemNodeFromIndex),isOpen:!0};break;case 5:case 6:n=Object(o.a)({isOpen:Fc(i,"isOpen"),highlightedIndex:Fc(i,"highlightedIndex")},e.highlightedIndex>=0&&{selectedItem:i.items[e.highlightedIndex]});break;case 3:n={highlightedIndex:wc(1,0,i.items.length,t.getItemNodeFromIndex,!1)};break;case 4:n={highlightedIndex:wc(-1,i.items.length-1,i.items.length,t.getItemNodeFromIndex,!1)};break;case 2:case 8:n={isOpen:!1,highlightedIndex:-1};break;case 7:var l=t.key,d=""+e.inputValue+l,f=Wc(d,e.highlightedIndex,i.items,i.itemToString,t.getItemNodeFromIndex);n=Object(o.a)({inputValue:d},f>=0&&{highlightedIndex:f});break;case 0:n={highlightedIndex:jc(a?5:1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,i.circularNavigation)};break;case 1:n={highlightedIndex:jc(a?-5:-1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,i.circularNavigation)};break;case 9:n={highlightedIndex:-1};break;case 12:case 16:n={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:Hc(i,e,0)};break;case 17:n={isOpen:!0,highlightedIndex:Hc(i,e,0)};break;case 18:n={isOpen:!1};break;case 19:n={highlightedIndex:t.highlightedIndex};break;case 20:n={selectedItem:t.selectedItem};break;case 21:n={inputValue:t.inputValue};break;case 22:n={highlightedIndex:Fc(i,"highlightedIndex"),isOpen:Fc(i,"isOpen"),selectedItem:Fc(i,"selectedItem"),inputValue:Fc(i,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return Object(o.a)({},e,n)}function qc(e){void 0===e&&(e={});var t=Object(o.a)({},Uc,e),n=t.items,r=t.scrollIntoView,i=t.environment,a=t.initialIsOpen,c=t.defaultIsOpen,s=t.itemToString,u=t.getA11ySelectionMessage,l=t.getA11yStatusMessage,d=Ac($c,Bc(t),t),f=d[0],p=d[1],b=f.isOpen,h=f.highlightedIndex,m=f.selectedItem,y=f.inputValue,g=Object(v.useRef)(null),O=Object(v.useRef)(null),j=Object(v.useRef)();j.current={};var w=Object(v.useRef)(!0),k=Object(v.useRef)(!0),_=Object(v.useRef)(null),S=Object(v.useRef)(Dc(t)),E=Object(v.useRef)(),x=Object(v.useRef)(!0),C=Object(v.useRef)(t),P=Rc({state:f,props:t}),D=function(e){return j.current[S.current.getItemId(e)]};Object(v.useEffect)((function(){if(!x.current){var e=E.current;Pc((function(){return l({isOpen:b,highlightedIndex:h,selectedItem:m,inputValue:y,highlightedItem:n[h],resultCount:n.length,itemToString:s,previousResultCount:e})}),i.document)}}),[b,h,y,n]),Object(v.useEffect)((function(){if(!x.current){var e=E.current;Pc((function(){return u({isOpen:b,highlightedIndex:h,selectedItem:m,inputValue:y,highlightedItem:n[h],resultCount:n.length,itemToString:s,previousResultCount:e})}),i.document)}}),[m]),Object(v.useEffect)((function(){x.current&&(_.current=pc((function(e){e({type:21,inputValue:""})}),500)),y&&_.current(p)}),[y]),Object(v.useEffect)((function(){x.current?(a||c||b)&&O.current&&O.current.focus():b?O.current&&O.current.focus():i.document.activeElement===O.current&&g.current&&(k.current=!1,g.current.focus())}),[b]),Object(v.useEffect)((function(){h<0||!b||!Object.keys(j.current).length||(!1===w.current?w.current=!0:r(D(h),O.current))}),[h]),Object(v.useEffect)((function(){x.current||(E.current=n.length)})),Object(v.useEffect)((function(){x.current||(C.current,C.current=t)}),[f,t]);var M=Vc(b,[O,g],i,(function(){p({type:8})})),T=Kc("getMenuProps","getToggleButtonProps");Object(v.useEffect)((function(){x.current=!1}),[]);var I=Object(v.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),p({type:13,getItemNodeFromIndex:D,shiftKey:e.shiftKey})},ArrowUp:function(e){e.preventDefault(),p({type:14,getItemNodeFromIndex:D,shiftKey:e.shiftKey})}}}),[p]),R=Object(v.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),p({type:0,getItemNodeFromIndex:D,shiftKey:e.shiftKey})},ArrowUp:function(e){e.preventDefault(),p({type:1,getItemNodeFromIndex:D,shiftKey:e.shiftKey})},Home:function(e){e.preventDefault(),p({type:3,getItemNodeFromIndex:D})},End:function(e){e.preventDefault(),p({type:4,getItemNodeFromIndex:D})},Escape:function(){p({type:2})},Enter:function(e){e.preventDefault(),p({type:5})}," ":function(e){e.preventDefault(),p({type:6})}}}),[p]),N=Object(v.useCallback)((function(){p({type:16})}),[p]),A=Object(v.useCallback)((function(){p({type:18})}),[p]),L=Object(v.useCallback)((function(){p({type:17})}),[p]),F=Object(v.useCallback)((function(e){p({type:19,highlightedIndex:e})}),[p]),z=Object(v.useCallback)((function(e){p({type:20,selectedItem:e})}),[p]),B=Object(v.useCallback)((function(){p({type:22})}),[p]),H=Object(v.useCallback)((function(e){p({type:21,inputValue:e})}),[p]),V=Object(v.useCallback)((function(e){return Object(o.a)({id:S.current.labelId,htmlFor:S.current.toggleButtonId},e)}),[]),K=Object(v.useCallback)((function(e,t){var n,r=void 0===e?{}:e,i=r.onMouseLeave,a=r.refKey,c=void 0===a?"ref":a,s=r.onKeyDown,u=r.onBlur,l=r.ref,d=Object(rc.a)(r,["onMouseLeave","refKey","onKeyDown","onBlur","ref"]),f=(void 0===t?{}:t).suppressRefError,b=void 0!==f&&f,h=P.current.state;return T("getMenuProps",b,c,O),Object(o.a)(((n={})[c]=hc(l,(function(e){O.current=e})),n.id=S.current.menuId,n.role="listbox",n["aria-labelledby"]=S.current.labelId,n.tabIndex=-1,n),h.isOpen&&h.highlightedIndex>-1&&{"aria-activedescendant":S.current.getItemId(h.highlightedIndex)},{onMouseLeave:bc(i,(function(){p({type:9})})),onKeyDown:bc(s,(function(e){var t=Oc(e);t&&R[t]?R[t](e):Tc(t)&&p({type:7,key:t,getItemNodeFromIndex:D})})),onBlur:bc(u,(function(){!1!==k.current?!M.current.isMouseDown&&p({type:8}):k.current=!0}))},d)}),[p,P,R,M,T]);return{getToggleButtonProps:Object(v.useCallback)((function(e,t){var n,r=void 0===e?{}:e,i=r.onClick,a=r.onKeyDown,c=r.refKey,s=void 0===c?"ref":c,u=r.ref,l=Object(rc.a)(r,["onClick","onKeyDown","refKey","ref"]),d=(void 0===t?{}:t).suppressRefError,f=void 0!==d&&d,b=Object(o.a)(((n={})[s]=hc(u,(function(e){g.current=e})),n.id=S.current.toggleButtonId,n["aria-haspopup"]="listbox",n["aria-expanded"]=P.current.state.isOpen,n["aria-labelledby"]=S.current.labelId+" "+S.current.toggleButtonId,n),l);return l.disabled||(b.onClick=bc(i,(function(){p({type:12})})),b.onKeyDown=bc(a,(function(e){var t=Oc(e);t&&I[t]?I[t](e):Tc(t)&&p({type:15,key:t,getItemNodeFromIndex:D})}))),T("getToggleButtonProps",f,s,g),b}),[p,P,I,T]),getLabelProps:V,getMenuProps:K,getItemProps:Object(v.useCallback)((function(e){var t,n=void 0===e?{}:e,r=n.item,i=n.index,a=n.onMouseMove,c=n.onClick,s=n.refKey,u=void 0===s?"ref":s,l=n.ref,d=Object(rc.a)(n,["item","index","onMouseMove","onClick","refKey","ref"]),f=P.current,b=f.state,h=f.props,v=Mc(i,r,h.items);if(v<0)throw new Error("Pass either item or item index in getItemProps!");var m=Object(o.a)(((t={role:"option","aria-selected":""+(v===b.highlightedIndex),id:S.current.getItemId(v)})[u]=hc(l,(function(e){e&&(j.current[S.current.getItemId(v)]=e)})),t),d);return d.disabled||(m.onMouseMove=bc(a,(function(){i!==b.highlightedIndex&&(w.current=!1,p({type:10,index:i}))})),m.onClick=bc(c,(function(){p({type:11,index:i})}))),m}),[p,P]),toggleMenu:N,openMenu:L,closeMenu:A,setHighlightedIndex:F,selectItem:z,reset:B,setInputValue:H,highlightedIndex:h,isOpen:b,selectedItem:m,inputValue:y}}qc.stateChangeTypes=Gc;ic.a.array.isRequired,ic.a.func,ic.a.func,ic.a.func,ic.a.bool,ic.a.number,ic.a.number,ic.a.number,ic.a.bool,ic.a.bool,ic.a.bool,ic.a.any,ic.a.any,ic.a.any,ic.a.string,ic.a.string,ic.a.string,ic.a.string,ic.a.string,ic.a.string,ic.a.func,ic.a.string,ic.a.string,ic.a.func,ic.a.func,ic.a.func,ic.a.func,ic.a.func,ic.a.func,ic.a.shape({addEventListener:ic.a.func,removeEventListener:ic.a.func,document:ic.a.shape({getElementById:ic.a.func,activeElement:ic.a.any,body:ic.a.any})});Object(o.a)({},Lc,{getA11yStatusMessage:mc,circularNavigation:!0});ic.a.array,ic.a.array,ic.a.array,ic.a.func,ic.a.func,ic.a.func,ic.a.number,ic.a.number,ic.a.number,ic.a.func,ic.a.func,ic.a.string,ic.a.string,ic.a.shape({addEventListener:ic.a.func,removeEventListener:ic.a.func,document:ic.a.shape({getElementById:ic.a.func,activeElement:ic.a.any,body:ic.a.any})});var Yc=function(e){return e&&e.name},Zc=function(e,t){var n=e.selectedItem,r=t.type,o=t.changes,i=t.props.items;switch(r){case qc.stateChangeTypes.ToggleButtonKeyDownArrowDown:return{selectedItem:i[n?Math.min(i.indexOf(n)+1,i.length-1):0]};case qc.stateChangeTypes.ToggleButtonKeyDownArrowUp:return{selectedItem:i[n?Math.max(i.indexOf(n)-1,0):i.length-1]};default:return o}};function Xc(e){var t=e.className,n=e.hideLabelFromVision,r=e.label,i=e.options,a=e.onChange,s=e.value,u=qc({initialSelectedItem:i[0],items:i,itemToString:Yc,onSelectedItemChange:a,selectedItem:s,stateReducer:Zc}),d=u.getLabelProps,f=u.getToggleButtonProps,p=u.getMenuProps,b=u.getItemProps,h=u.isOpen,v=u.highlightedIndex,m=u.selectedItem,y=p({className:"components-custom-select-control__menu","aria-hidden":!h});return y["aria-activedescendant"]&&"downshift-null"===y["aria-activedescendant"].slice(0,"downshift-null".length)&&delete y["aria-activedescendant"],Object(c.createElement)("div",{className:l()("components-custom-select-control",t)},n?Object(c.createElement)(M,Object(o.a)({as:"label"},d()),r):Object(c.createElement)("label",d({className:"components-custom-select-control__label"}),r),Object(c.createElement)(qr.a,f({"aria-label":r,"aria-labelledby":void 0,className:"components-custom-select-control__button",isSmall:!0}),Yc(m),Object(c.createElement)(Qi.a,{icon:aa.a,className:"components-custom-select-control__button-icon"})),Object(c.createElement)("ul",y,h&&i.map((function(e,t){return Object(c.createElement)("li",b({item:e,index:t,key:e.key,className:l()(e.className,"components-custom-select-control__item",{"is-highlighted":t===v}),style:e.style}),e===m&&Object(c.createElement)(Qi.a,{icon:ea.a,className:"components-custom-select-control__item-icon"}),e.name)}))))}var Jc=n(151),Qc=(n(323),n(44)),es=n.n(Qc),ts=n(286),ns=n.n(ts);function rs(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ha.a)(e);if(t){var o=Object(ha.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ba.a)(this,n)}}var os=function(e){Object(pa.a)(n,e);var t=rs(n);function n(){var e;return Object(la.a)(this,n),(e=t.apply(this,arguments)).onChangeMoment=e.onChangeMoment.bind(Object(fa.a)(e)),e.nodeRef=Object(c.createRef)(),e.keepFocusInside=e.keepFocusInside.bind(Object(fa.a)(e)),e.isDayHighlighted=e.isDayHighlighted.bind(Object(fa.a)(e)),e}return Object(da.a)(n,[{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?es()(n):es()(),i={hours:o.hours(),minutes:o.minutes(),seconds:0};r(e.set(i).format("YYYY-MM-DDTHH:mm:ss"))}},{key:"getMomentDate",value:function(e){return null===e?null:e?es()(e):es()()}},{key:"isDayHighlighted",value:function(e){var t;return!!(null===(t=this.props.events)||void 0===t?void 0:t.length)&&(this.props.onMonthPreviewed&&this.props.onMonthPreviewed(e.toDate()),this.props.events.some((function(t){return e.isSame(t.date,"day")})))}},{key:"render",value:function(){var e=this.props,t=e.currentDate,n=e.isInvalidDate,r=this.getMomentDate(t);return Object(c.createElement)("div",{className:"components-datetime__date",ref:this.nodeRef},Object(c.createElement)(ns.a,{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())},isDayHighlighted:this.isDayHighlighted,onPrevMonthClick:this.keepFocusInside,onNextMonthClick:this.keepFocusInside}))}}]),n}(c.Component),is=n(75),as=function(){var e=Object(is.__experimentalGetSettings)().timezone,t=(new Date).getTimezoneOffset()/60*-1;if(Number(e.offset)===t)return null;var n=e.offset>=0?"+":"",r=""!==e.abbr&&isNaN(e.abbr)?e.abbr:"UTC".concat(n).concat(e.offset),o="UTC"===e.string?Object(S.__)("Coordinated Universal Time"):"(".concat(r,") ").concat(e.string.replace("_"," "));return Object(c.createElement)(C.a,{position:"top center",text:o},Object(c.createElement)("div",{className:"components-datetime__timezone"},r))};function cs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ss(e){var t=e.as,n=e.value,r=e.onUpdate,o=Object(a.a)(e,["as","value","onUpdate"]);return Object(c.createElement)(t||"input",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cs(Object(n),!0).forEach((function(t){Object(P.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({key:n,defaultValue:n,onBlur:function(e){var t=e.target;if(n!==t.value){var i=parseInt(t.value,10);!Object(s.isInteger)(i)||void 0!==o.max&&i>o.max||void 0!==o.min&&i<o.min?t.value=n:r(t.name,i)}}},o))}var us=function(e){var t=e.is12Hour,n=e.currentTime,r=e.onChange,o=Object(c.useState)((function(){return es()(n).startOf("minutes")})),a=Object(i.a)(o,2),s=a[0],u=a[1];Object(c.useEffect)((function(){u(es()(n).startOf("minutes"))}),[n]);var d=Object(c.useMemo)((function(){return{day:s.format("DD"),month:s.format("MM"),year:s.format("YYYY"),minutes:s.format("mm"),hours:s.format(t?"hh":"HH"),am:s.format("H")<=11?"AM":"PM"}}),[s,t]),f=d.day,p=d.month,b=d.year,h=d.minutes,v=d.hours,m=d.am;function y(e){u(e),r(e.format("YYYY-MM-DDTHH:mm:ss"))}function g(e,t){y(s.clone()[e](t))}function O(e){return function(){if(m!==e){var t=parseInt(v,10);y(s.clone().hours("PM"===e?(t%12+12)%24:t%12))}}}var j=Object(c.createElement)("div",{className:"components-datetime__time-field components-datetime__time-field-day"},Object(c.createElement)(ss,{"aria-label":Object(S.__)("Day"),className:"components-datetime__time-field-day-input",type:"number",name:"date",value:f,step:1,min:1,max:31,onUpdate:g})),w=Object(c.createElement)("div",{className:"components-datetime__time-field components-datetime__time-field-month"},Object(c.createElement)(ss,{as:"select","aria-label":Object(S.__)("Month"),className:"components-datetime__time-field-month-select",name:"month",value:p,onUpdate:function(e,t){return g(e,t-1)}},Object(c.createElement)("option",{value:"01"},Object(S.__)("January")),Object(c.createElement)("option",{value:"02"},Object(S.__)("February")),Object(c.createElement)("option",{value:"03"},Object(S.__)("March")),Object(c.createElement)("option",{value:"04"},Object(S.__)("April")),Object(c.createElement)("option",{value:"05"},Object(S.__)("May")),Object(c.createElement)("option",{value:"06"},Object(S.__)("June")),Object(c.createElement)("option",{value:"07"},Object(S.__)("July")),Object(c.createElement)("option",{value:"08"},Object(S.__)("August")),Object(c.createElement)("option",{value:"09"},Object(S.__)("September")),Object(c.createElement)("option",{value:"10"},Object(S.__)("October")),Object(c.createElement)("option",{value:"11"},Object(S.__)("November")),Object(c.createElement)("option",{value:"12"},Object(S.__)("December")))),k=t?Object(c.createElement)(c.Fragment,null,j,w):Object(c.createElement)(c.Fragment,null,w,j);return Object(c.createElement)("div",{className:l()("components-datetime__time")},Object(c.createElement)("fieldset",null,Object(c.createElement)("legend",{className:"components-datetime__time-legend invisible"},Object(S.__)("Date")),Object(c.createElement)("div",{className:"components-datetime__time-wrapper"},k,Object(c.createElement)("div",{className:"components-datetime__time-field components-datetime__time-field-year"},Object(c.createElement)(ss,{"aria-label":Object(S.__)("Year"),className:"components-datetime__time-field-year-input",type:"number",name:"year",step:1,min:0,max:9999,value:b,onUpdate:g})))),Object(c.createElement)("fieldset",null,Object(c.createElement)("legend",{className:"components-datetime__time-legend invisible"},Object(S.__)("Time")),Object(c.createElement)("div",{className:"components-datetime__time-wrapper"},Object(c.createElement)("div",{className:"components-datetime__time-field components-datetime__time-field-time"},Object(c.createElement)(ss,{"aria-label":Object(S.__)("Hours"),className:"components-datetime__time-field-hours-input",type:"number",name:"hours",step:1,min:t?1:0,max:t?12:23,value:v,onUpdate:g}),Object(c.createElement)("span",{className:"components-datetime__time-separator","aria-hidden":"true"},":"),Object(c.createElement)(ss,{"aria-label":Object(S.__)("Minutes"),className:"components-datetime__time-field-minutes-input",type:"number",name:"minutes",step:1,min:0,max:59,value:h,onUpdate:g})),t&&Object(c.createElement)(ji,{className:"components-datetime__time-field components-datetime__time-field-am-pm"},Object(c.createElement)(qr.a,{isPrimary:"AM"===m,isSecondary:"AM"!==m,onClick:O("AM"),className:"components-datetime__time-am-button"},Object(S.__)("AM")),Object(c.createElement)(qr.a,{isPrimary:"PM"===m,isSecondary:"PM"!==m,onClick:O("PM"),className:"components-datetime__time-pm-button"},Object(S.__)("PM"))),Object(c.createElement)(as,null))))};function ls(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ha.a)(e);if(t){var o=Object(ha.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ba.a)(this,n)}}var ds=function(e){Object(pa.a)(n,e);var t=ls(n);function n(){var e;return Object(la.a)(this,n),(e=t.apply(this,arguments)).state={calendarHelpIsVisible:!1},e.onClickDescriptionToggle=e.onClickDescriptionToggle.bind(Object(fa.a)(e)),e}return Object(da.a)(n,[{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.isInvalidDate,o=e.onMonthPreviewed,i=e.onChange,a=e.events;return Object(c.createElement)("div",{className:"components-datetime"},!this.state.calendarHelpIsVisible&&Object(c.createElement)(c.Fragment,null,Object(c.createElement)(us,{currentTime:t,onChange:i,is12Hour:n}),Object(c.createElement)(os,{currentDate:t,onChange:i,isInvalidDate:r,onMonthPreviewed:o,events:a})),this.state.calendarHelpIsVisible&&Object(c.createElement)(c.Fragment,null,Object(c.createElement)("div",{className:"components-datetime__calendar-help"},Object(c.createElement)("h4",null,Object(S.__)("Click to Select")),Object(c.createElement)("ul",null,Object(c.createElement)("li",null,Object(S.__)("Click the right or left arrows to select other months in the past or the future.")),Object(c.createElement)("li",null,Object(S.__)("Click the desired day to select it."))),Object(c.createElement)("h4",null,Object(S.__)("Navigating with a keyboard")),Object(c.createElement)("ul",null,Object(c.createElement)("li",null,Object(c.createElement)("abbr",{"aria-label":Object(S._x)("Enter","keyboard button")},"↵")," ",Object(c.createElement)("span",null,Object(S.__)("Select the date in focus."))),Object(c.createElement)("li",null,Object(c.createElement)("abbr",{"aria-label":Object(S.__)("Left and Right Arrows")},"←/→")," ",Object(S.__)("Move backward (left) or forward (right) by one day.")),Object(c.createElement)("li",null,Object(c.createElement)("abbr",{"aria-label":Object(S.__)("Up and Down Arrows")},"↑/↓")," ",Object(S.__)("Move backward (up) or forward (down) by one week.")),Object(c.createElement)("li",null,Object(c.createElement)("abbr",{"aria-label":Object(S.__)("Page Up and Page Down")},Object(S.__)("PgUp/PgDn"))," ",Object(S.__)("Move backward (PgUp) or forward (PgDn) by one month.")),Object(c.createElement)("li",null,Object(c.createElement)("abbr",{"aria-label":Object(S.__)("Home and End")},Object(S.__)("Home/End"))," ",Object(S.__)("Go to the first (home) or last (end) day of a week."))))),Object(c.createElement)("div",{className:"components-datetime__buttons"},!this.state.calendarHelpIsVisible&&t&&Object(c.createElement)(qr.a,{className:"components-datetime__date-reset-button",isLink:!0,onClick:function(){return i(null)}},Object(S.__)("Reset")),Object(c.createElement)(qr.a,{className:"components-datetime__date-help-toggle",isLink:!0,onClick:this.onClickDescriptionToggle},this.state.calendarHelpIsVisible?Object(S.__)("Close"):Object(S.__)("Calendar Help"))))}}]),n}(c.Component),fs=n(85),ps=je("select",{target:"e12x0a390",label:"Select"})("&&&{appearance:none;background:transparent;box-sizing:border-box;border:none;box-shadow:none !important;color:",Fe("black"),";display:block;margin:0;outline:none;width:100%;",(function(e){return e.disabled?le({color:Fe("ui.textDisabled")},""):""}),";",(function(e){var t={default:"13px",small:"11px"}[e.size];return t?le("font-size:","16px",";@media ( min-width:600px ){font-size:",t,";}"):""}),";",(function(e){var t=e.size,n={default:{height:30,lineHeight:1,minHeight:30},small:{height:24,lineHeight:1,minHeight:24}};return le(n[t]||n.default,"")}),";",nt({paddingLeft:8,paddingRight:24})(),"}"),bs=je("div",{target:"e12x0a391",label:"DownArrowWrapper"})("align-items:center;bottom:0;box-sizing:border-box;display:flex;padding:0 4px;pointer-events:none;position:absolute;top:0;",nt({right:0})()," svg{display:block;}");function hs(e,t){var n=e.className,r=e.disabled,u=void 0!==r&&r,d=e.help,f=e.hideLabelFromVision,p=e.id,b=e.label,h=e.multiple,v=void 0!==h&&h,m=e.onBlur,y=void 0===m?s.noop:m,g=e.onChange,O=void 0===g?s.noop:g,j=e.onFocus,w=void 0===j?s.noop:j,k=e.options,_=void 0===k?[]:k,S=e.size,x=void 0===S?"default":S,C=e.value,P=e.labelPosition,D=void 0===P?"top":P,M=Object(a.a)(e,["className","disabled","help","hideLabelFromVision","id","label","multiple","onBlur","onChange","onFocus","options","size","value","labelPosition"]),T=Object(c.useState)(!1),I=Object(i.a)(T,2),R=I[0],N=I[1],A=function(e){var t=Object(E.useInstanceId)(hs),n="inspector-select-control-".concat(t);return e||n}(p),L=d?"".concat(A,"__help"):void 0;if(Object(s.isEmpty)(_))return null;var F=l()("components-select-control",n);return Object(c.createElement)(yt,{help:d},Object(c.createElement)(_n,{className:F,disabled:u,hideLabelFromVision:f,id:A,isFocused:R,label:b,size:x,suffix:Object(c.createElement)(bs,null,Object(c.createElement)(Qi.a,{icon:aa.a,size:18})),labelPosition:D},Object(c.createElement)(ps,Object(o.a)({},M,{"aria-describedby":L,className:"components-select-control__input",disabled:u,id:A,multiple:v,onBlur:function(e){y(e),N(!1)},onChange:function(e){if(v){var t=Object(Gr.a)(e.target.options).filter((function(e){return e.selected})).map((function(e){return e.value}));O(t)}else O(e.target.value,{event:e})},onFocus:function(e){w(e),N(!0)},ref:t,size:x,value:C}),_.map((function(e,t){var n=e.id||"".concat(e.label,"-").concat(e.value,"-").concat(t);return Object(c.createElement)("option",{key:n,value:e.value,disabled:e.disabled},e.label)})))))}var vs=Object(c.forwardRef)(hs),ms=[{name:Object(S.__)("None"),slug:"none"},{name:Object(S.__)("Small"),slug:"small"},{name:Object(S.__)("Medium"),slug:"medium"},{name:Object(S.__)("Large"),slug:"large"},{name:Object(S.__)("Extra Large"),slug:"xlarge"}];var ys=function(e){var t,n,r=e.label,o=e.value,i=e.sizes,a=void 0===i?ms:i,u=e.icon,d=e.onChange,f=e.className,p=void 0===f?"":f,b=Object(c.createElement)(c.Fragment,null,u&&Object(c.createElement)(fs.a,{icon:u}),r);return Object(c.createElement)(vs,{className:l()(p,"block-editor-dimension-control"),label:b,hideLabelFromVision:!1,value:o,onChange:function(e){var t=function(e,t){return e.find((function(e){return t===e.slug}))}(a,e);t&&o!==t.slug?Object(s.isFunction)(d)&&d(t.slug):d(void 0)},options:(t=a,n=t.map((function(e){return{label:e.name,value:e.slug}})),[{label:Object(S.__)("Default"),value:""}].concat(n))})},gs=n(29),Os=Object(c.createContext)(!1),js=Os.Consumer,ws=Os.Provider,ks=["BUTTON","FIELDSET","INPUT","OPTGROUP","OPTION","SELECT","TEXTAREA"];function _s(e){var t=e.className,n=e.children,r=Object(a.a)(e,["className","children"]),i=Object(c.useRef)(),u=function(){gs.focus.focusable.find(i.current).forEach((function(e){Object(s.includes)(ks,e.nodeName)&&e.setAttribute("disabled",""),"A"===e.nodeName&&e.setAttribute("tabindex",-1);var t=e.getAttribute("tabindex");null!==t&&"-1"!==t&&e.removeAttribute("tabindex"),e.hasAttribute("contenteditable")&&e.setAttribute("contenteditable","false")}))},d=Object(c.useCallback)(Object(s.debounce)(u,{leading:!0}),[]);return Object(c.useLayoutEffect)((function(){u();var e=new window.MutationObserver(d);return e.observe(i.current,{childList:!0,attributes:!0,subtree:!0}),function(){e.disconnect(),d.cancel()}}),[]),Object(c.createElement)(ws,{value:!0},Object(c.createElement)("div",Object(o.a)({ref:i,className:l()(t,"components-disabled")},r),n))}_s.Consumer=js;var Ss=_s;function Es(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ha.a)(e);if(t){var o=Object(ha.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ba.a)(this,n)}}var xs=function(e){Object(pa.a)(n,e);var t=Es(n);function n(){var e;return Object(la.a)(this,n),(e=t.apply(this,arguments)).onDragStart=e.onDragStart.bind(Object(fa.a)(e)),e.onDragOver=e.onDragOver.bind(Object(fa.a)(e)),e.onDragEnd=e.onDragEnd.bind(Object(fa.a)(e)),e.resetDragState=e.resetDragState.bind(Object(fa.a)(e)),e.dragComponentRef=Object(c.createRef)(),e}return Object(da.a)(n,[{key:"componentWillUnmount",value:function(){this.resetDragState()}},{key:"onDragEnd",value:function(e){var t=this.props.onDragEnd,n=void 0===t?s.noop:t;e.preventDefault(),this.resetDragState(),e.persist(),this.props.setTimeout(n.bind(this,e))}},{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;var t=this.props.onDragOver,n=void 0===t?s.noop:t;this.props.setTimeout(n.bind(this,e))}},{key:"onDragStart",value:function(e){var t=this.props,n=t.cloneClassname,r=t.elementId,o=t.transferData,i=t.onDragStart,a=void 0===i?s.noop:i,c=document.getElementById(r);if(c){if("function"==typeof e.dataTransfer.setDragImage){var u=document.createElement("div");u.id="drag-image-".concat(r),u.classList.add("components-draggable__invisible-drag-image"),document.body.appendChild(u),e.dataTransfer.setDragImage(u,0,0),this.props.setTimeout((function(){document.body.removeChild(u)}))}e.dataTransfer.setData("text",JSON.stringify(o));var l=c.getBoundingClientRect(),d=c.parentNode,f=parseInt(l.top,10),p=parseInt(l.left,10);if(this.cloneWrapper=document.createElement("div"),this.cloneWrapper.classList.add("components-draggable__clone"),n&&this.cloneWrapper.classList.add(n),this.cloneWrapper.style.width="".concat(l.width+0,"px"),this.dragComponentRef.current){this.cloneWrapper.style.top="".concat(e.clientY,"px"),this.cloneWrapper.style.left="".concat(e.clientX,"px");var b=document.createElement("div");b.innerHTML=this.dragComponentRef.current.innerHTML,this.cloneWrapper.appendChild(b)}else{var h=c.cloneNode(!0);h.id="clone-".concat(r),l.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(f-0,"px"),this.cloneWrapper.style.left="".concat(p-0,"px")),Array.from(h.querySelectorAll("iframe")).forEach((function(e){return e.parentNode.removeChild(e)})),this.cloneWrapper.appendChild(h)}d.appendChild(this.cloneWrapper),this.cursorLeft=e.clientX,this.cursorTop=e.clientY,document.body.classList.add("is-dragging-components-draggable"),document.addEventListener("dragover",this.onDragOver),e.persist(),this.props.setTimeout(a.bind(this,e))}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),this.cursorLeft=null,this.cursorTop=null,document.body.classList.remove("is-dragging-components-draggable")}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.__experimentalDragComponent;return Object(c.createElement)(c.Fragment,null,t({onDraggableStart:this.onDragStart,onDraggableEnd:this.onDragEnd}),n&&Object(c.createElement)("div",{className:"components-draggable-drag-component-root",style:{display:"none"},ref:this.dragComponentRef},n))}}]),n}(c.Component),Cs=Object(E.withSafeTimeout)(xs),Ps=n(217),Ds=n(64),Ms=n.n(Ds);function Ts(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ha.a)(e);if(t){var o=Object(ha.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ba.a)(this,n)}}var Is=Object(c.createContext)({addDropZone:function(){},removeDropZone:function(){}}),Rs=Is.Provider,Ns=Is.Consumer,As=function(e){var t=e.dataTransfer;if(t){if(Object(s.includes)(t.types,"Files"))return"file";if(Object(s.includes)(t.types,"text/html"))return"html"}return"default"},Ls=function(e,t){return"file"===e&&t.onFilesDrop||"html"===e&&t.onHTMLDrop||"default"===e&&t.onDrop},Fs=function(e){Object(pa.a)(n,e);var t=Ts(n);function n(){var e;return Object(la.a)(this,n),(e=t.apply(this,arguments)).onDragOver=e.onDragOver.bind(Object(fa.a)(e)),e.onDrop=e.onDrop.bind(Object(fa.a)(e)),e.addDropZone=e.addDropZone.bind(Object(fa.a)(e)),e.removeDropZone=e.removeDropZone.bind(Object(fa.a)(e)),e.resetDragState=e.resetDragState.bind(Object(fa.a)(e)),e.toggleDraggingOverDocument=Object(s.throttle)(e.toggleDraggingOverDocument.bind(Object(fa.a)(e)),200),e.dropZones=[],e.dropZoneCallbacks={addDropZone:e.addDropZone,removeDropZone:e.removeDropZone},e.state={hoveredDropZone:-1,isDraggingOverDocument:!1,position:null},e.ref=Object(c.createRef)(),e}return Object(da.a)(n,[{key:"componentDidMount",value:function(){var e=this.ref.current.ownerDocument.defaultView;e.addEventListener("dragover",this.onDragOver),e.addEventListener("mouseup",this.resetDragState)}},{key:"componentWillUnmount",value:function(){var e=this.ref.current.ownerDocument.defaultView;e.removeEventListener("dragover",this.onDragOver),e.removeEventListener("mouseup",this.resetDragState)}},{key:"addDropZone",value:function(e){this.dropZones.push(e)}},{key:"removeDropZone",value:function(e){this.dropZones=Object(s.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(s.filter)(this.dropZones,(function(e){return Ls(t,e)&&(n=e.element.current,o=r.clientX,i=r.clientY,(a=n.getBoundingClientRect()).bottom!==a.top&&a.left!==a.right&&o>=a.left&&o<=a.right&&i>=a.top&&i<=a.bottom);var n,o,i,a})),i=Object(s.find)(o,(function(e){var t=e.isRelative?e.element.current.parentElement:e.element.current;return!Object(s.some)(o,(function(n){return n!==e&&t.contains(n.element.current)}))})),a=this.dropZones.indexOf(i),c=null;i&&i.withPosition&&(c={x:r.clientX,y:r.clientY});var u=[];this.state.isDraggingOverDocument?a!==this.state.hoveredDropZone?(-1!==this.state.hoveredDropZone&&u.push(this.dropZones[this.state.hoveredDropZone]),i&&u.push(i)):i&&a===this.state.hoveredDropZone&&!Object(s.isEqual)(c,this.state.position)&&u.push(i):u=this.dropZones,u.forEach((function(e){var r=n.dropZones.indexOf(e)===a;e.setState({isDraggingOverDocument:Ls(t,e),isDraggingOverElement:r,position:r?c:null,type:r?t:null})}));var l={isDraggingOverDocument:!0,hoveredDropZone:a,position:c};Ms()(l,this.state)||this.setState(l)}},{key:"onDragOver",value:function(e){this.toggleDraggingOverDocument(e,As(e)),e.preventDefault()}},{key:"onDrop",value:function(e){e.dataTransfer&&e.dataTransfer.files.length;var t=this.state,n=t.position,r=t.hoveredDropZone,o=As(e),i=this.dropZones[r];if(this.resetDragState(),i)switch(o){case"file":i.onFilesDrop(Object(Gr.a)(e.dataTransfer.files),n);break;case"html":i.onHTMLDrop(e.dataTransfer.getData("text/html"),n);break;case"default":i.onDrop(e,n)}e.stopPropagation(),e.preventDefault()}},{key:"render",value:function(){return Object(c.createElement)("div",{ref:this.ref,onDrop:this.onDrop,className:"components-drop-zone__provider"},Object(c.createElement)(Rs,{value:this.dropZoneCallbacks},this.props.children))}}]),n}(c.Component);function zs(e){var t=e.element,n=e.onFilesDrop,r=e.onHTMLDrop,o=e.onDrop,a=e.isDisabled,s=e.withPosition,u=e.__unstableIsRelative,l=void 0!==u&&u,d=Object(c.useContext)(Is),f=d.addDropZone,p=d.removeDropZone,b=Object(c.useState)({isDraggingOverDocument:!1,isDraggingOverElement:!1,type:null}),h=Object(i.a)(b,2),v=h[0],m=h[1];return Object(c.useEffect)((function(){if(!a){var e={element:t,onDrop:o,onFilesDrop:n,onHTMLDrop:r,setState:m,withPosition:s,isRelative:l};return f(e),function(){p(e)}}}),[a,o,n,r,s]),v}function Bs(e){var t,n=e.className,r=e.label,o=e.onFilesDrop,i=e.onHTMLDrop,a=e.onDrop,s=Object(c.useRef)(),u=zs({element:s,onFilesDrop:o,onHTMLDrop:i,onDrop:a,__unstableIsRelative:!0}),d=u.isDraggingOverDocument,f=u.isDraggingOverElement,p=u.type;f&&(t=Object(c.createElement)("div",{className:"components-drop-zone__content"},Object(c.createElement)(Qi.a,{icon:Ps.a,className:"components-drop-zone__content-icon"}),Object(c.createElement)("span",{className:"components-drop-zone__content-text"},r||Object(S.__)("Drop files to upload"))));var b=l()("components-drop-zone",n,Object(P.a)({"is-active":(d||f)&&("file"===p&&o||"html"===p&&i||"default"===p&&a),"is-dragging-over-document":d,"is-dragging-over-element":f},"is-dragging-".concat(p),!!p));return Object(c.createElement)("div",{ref:s,className:b},t)}var Hs=function(e){return Object(c.createElement)(Ns,null,(function(t){var n=t.addDropZone,r=t.removeDropZone;return Object(c.createElement)(Bs,Object(o.a)({addDropZone:n,removeDropZone:r},e))}))},Vs=n(36),Ks=n.n(Vs);function Ws(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ha.a)(e);if(t){var o=Object(ha.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ba.a)(this,n)}}var Us=["menuitem","menuitemradio","menuitemcheckbox"];var Gs=function(e){Object(pa.a)(n,e);var t=Ws(n);function n(){var e;return Object(la.a)(this,n),(e=t.apply(this,arguments)).onKeyDown=e.onKeyDown.bind(Object(fa.a)(e)),e.bindContainer=e.bindContainer.bind(Object(fa.a)(e)),e.getFocusableContext=e.getFocusableContext.bind(Object(fa.a)(e)),e.getFocusableIndex=e.getFocusableIndex.bind(Object(fa.a)(e)),e}return Object(da.a)(n,[{key:"componentDidMount",value:function(){this.container.addEventListener("keydown",this.onKeyDown),this.container.addEventListener("focus",this.onFocus)}},{key:"componentWillUnmount",value:function(){this.container.removeEventListener("keydown",this.onKeyDown),this.container.removeEventListener("focus",this.onFocus)}},{key:"bindContainer",value:function(e){var t=this.props.forwardedRef;this.container=e,Object(s.isFunction)(t)?t(e):t&&"current"in t&&(t.current=e)}},{key:"getFocusableContext",value:function(e){var t=(this.props.onlyBrowserTabstops?gs.focus.tabbable:gs.focus.focusable).find(this.container),n=this.getFocusableIndex(t,e);return n>-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,i=n.eventToOffset,a=n.onNavigate,c=void 0===a?s.noop:a,u=n.stopNavigationEvents,l=i(e);if(void 0!==l&&u){e.stopImmediatePropagation();var d=e.target.getAttribute("role");Us.includes(d)&&e.preventDefault()}if(l){var f=t(e.target.ownerDocument.activeElement);if(f){var p=f.index,b=f.focusables,h=o?function(e,t,n){var r=e+n;return r<0?t+r:r>=t?r-t:r}(p,b.length,l):p+l;h>=0&&h<b.length&&(b[h].focus(),c(h,b[h]))}}}},{key:"render",value:function(){var e=this.props,t=e.children,n=Object(a.a)(e,["children"]);return Object(c.createElement)("div",Object(o.a)({ref:this.bindContainer},Object(s.omit)(n,["stopNavigationEvents","eventToOffset","onNavigate","onKeyDown","cycle","onlyBrowserTabstops","forwardedRef"])),t)}}]),n}(c.Component),$s=function(e,t){return Object(c.createElement)(Gs,Object(o.a)({},e,{forwardedRef:t}))};$s.displayName="NavigableContainer";var qs=Object(c.forwardRef)($s);var Ys=Object(c.forwardRef)((function(e,t){var n=e.role,r=void 0===n?"menu":n,i=e.orientation,u=void 0===i?"vertical":i,l=Object(a.a)(e,["role","orientation"]);return Object(c.createElement)(qs,Object(o.a)({ref:t,stopNavigationEvents:!0,onlyBrowserTabstops:!1,role:r,"aria-orientation":"presentation"===r?null:u,eventToOffset:function(e){var t=e.keyCode,n=[pr.DOWN],r=[pr.UP];return"horizontal"===u&&(n=[pr.RIGHT],r=[pr.LEFT]),"both"===u&&(n=[pr.RIGHT,pr.DOWN],r=[pr.LEFT,pr.UP]),Object(s.includes)(n,t)?1:Object(s.includes)(r,t)?-1:Object(s.includes)([pr.DOWN,pr.UP,pr.LEFT,pr.RIGHT],t)?0:void 0}},l))}));function Zs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zs(Object(n),!0).forEach((function(t){Object(P.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Js(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Xs(Xs({},e),t);return t.className&&e.className&&(n.className=l()(t.className,e.className)),n}var Qs=function(e){var t,n=e.children,r=e.className,i=e.controls,a=e.icon,u=void 0===a?"menu":a,d=e.label,f=e.popoverProps,p=e.toggleProps,b=e.menuProps,h=e.disableOpenOnArrowDown,v=void 0!==h&&h,m=e.menuLabel,y=e.position,g=e.noIcons;if(m&&Ks()("`menuLabel` prop in `DropdownComponent`",{alternative:"`menuProps` object and its `aria-label` property",plugin:"Gutenberg"}),y&&Ks()("`position` prop in `DropdownComponent`",{alternative:"`popoverProps` object and its `position` property",plugin:"Gutenberg"}),Object(s.isEmpty)(i)&&!Object(s.isFunction)(n))return null;Object(s.isEmpty)(i)||(t=i,Array.isArray(t[0])||(t=[t]));var O=Js({className:"components-dropdown-menu__popover",position:y},f);return Object(c.createElement)(sa,{className:l()("components-dropdown-menu",r),popoverProps:O,renderToggle:function(e){var t,n=e.isOpen,r=e.onToggle,i=Js({className:l()("components-dropdown-menu__toggle",{"is-opened":n})},p);return Object(c.createElement)(qr.a,Object(o.a)({},i,{icon:u,onClick:function(e){r(e),i.onClick&&i.onClick(e)},onKeyDown:function(e){!function(e){v||n||e.keyCode!==pr.DOWN||(e.preventDefault(),e.stopPropagation(),r())}(e),i.onKeyDown&&i.onKeyDown(e)},"aria-haspopup":"true","aria-expanded":n,label:d,showTooltip:null===(t=null==p?void 0:p.showTooltip)||void 0===t||t}),i.children)},renderContent:function(e){var r=Js({"aria-label":m||d,className:l()("components-dropdown-menu__menu",{"no-icons":g})},b);return Object(c.createElement)(Ys,Object(o.a)({},r,{role:"menu"}),Object(s.isFunction)(n)?n(e):null,Object(s.flatMap)(t,(function(t,n){return t.map((function(t,r){return Object(c.createElement)(qr.a,{key:[n,r].join(),onClick:function(n){n.stopPropagation(),e.onClose(),t.onClick&&t.onClick()},className:l()("components-dropdown-menu__menu-item",{"has-separator":n>0&&0===r,"is-active":t.isActive}),icon:t.icon,"aria-checked":"menuitemcheckbox"===t.role||"menuitemradio"===t.role?t.isActive:void 0,role:"menuitemcheckbox"===t.role||"menuitemradio"===t.role?t.role:"menuitem",disabled:t.isDisabled},t.title)}))})))}})},eu=n(427);var tu=je(Qi.a,{target:"etxm6pv0",label:"StyledIcon"})({name:"i8uvf3",styles:"width:1.4em;height:1.4em;margin:-0.2em 0.1em 0;vertical-align:middle;fill:currentColor;"});var nu=Object(c.forwardRef)((function(e,t){var n=e.href,r=e.children,i=e.className,u=e.rel,d=void 0===u?"":u,f=Object(a.a)(e,["href","children","className","rel"]);d=Object(s.uniq)(Object(s.compact)([].concat(Object(Gr.a)(d.split(" ")),["external","noreferrer","noopener"]))).join(" ");var p=l()("components-external-link",i);return Object(c.createElement)("a",Object(o.a)({},f,{className:p,href:n,target:"_blank",rel:d,ref:t}),r,Object(c.createElement)(M,{as:"span"},Object(S.__)("(opens in a new tab)")),Object(c.createElement)(tu,{icon:eu.a,className:"components-external-link__icon"}))})),ru=n(113);var ou=je("div",{target:"e11wezi70",label:"MediaWrapper"})({name:"4wwkjz",styles:"background-color:transparent;box-sizing:border-box;text-align:center;width:100%;"}),iu=je("div",{target:"e11wezi71",label:"MediaContainer"})({name:"1q0l1fq",styles:"align-items:center;box-sizing:border-box;box-shadow:0 0 0 1px rgba( 0,0,0,0.2 );cursor:pointer;display:inline-flex;justify-content:center;margin:auto;position:relative;height:100%;img,video{box-sizing:border-box;display:block;height:auto;margin:0;max-height:100%;max-width:100%;pointer-events:none;user-select:none;width:auto;}"}),au=je("div",{target:"e11wezi72",label:"MediaPlaceholder"})("background:",Fe("lightGray.300"),";box-sizing:border-box;height:170px;max-width:280px;min-width:200px;width:100%;"),cu=je(go,{target:"e11wezi73",label:"UnitControl"})({name:"v7v99c",styles:"width:100px;"}),su=je(St,{target:"e11wezi74",label:"ControlWrapper"})({name:"lqoi1w",styles:"max-width:320px;padding:1em 0;"}),uu=je("div",{target:"e11wezi75",label:"GridView"})("box-sizing:border-box;left:50%;opacity:0;overflow:hidden;pointer-events:none;position:absolute;top:50%;transform:translate3d( -50%,-50%,0 );transition:opacity 120ms linear;z-index:1;",(function(e){return e.isActive&&"\n\t\topacity: 1;\n\t"}),""),lu=je("div",{target:"e11wezi76",label:"GridLine"})({name:"18dz4sk",styles:"box-sizing:border-box;background:white;box-shadow:0 0 2px rgba( 0,0,0,0.6 );position:absolute;opacity:0.4;transform:translateZ( 0 );"}),du=je(lu,{target:"e11wezi77",label:"GridLineX"})({name:"1u4twh6",styles:"height:1px;left:0;right:0;"}),fu=je(lu,{target:"e11wezi78",label:"GridLineY"})({name:"13gvipf",styles:"width:1px;top:0;bottom:0;"}),pu={top:0,left:0,bottom:0,right:0,width:0,height:0},bu=["avi","mpg","mpeg","mov","mp4","m4v","ogg","ogv","webm","wmv"];function hu(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split(".");return t[t.length-1]}function vu(e){return Math.round(100*e)}function mu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mu(Object(n),!0).forEach((function(t){Object(P.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gu(e){var t=e.onChange,n=void 0===t?s.noop:t,r=e.percentages,o=void 0===r?{x:.5,y:.5}:r,i=vu(o.x),a=vu(o.y);return Object(c.createElement)(su,{className:"focal-point-picker__controls"},Object(c.createElement)(Ou,{label:Object(S.__)("Left"),value:i,onChange:function(e){n(yu(yu({},o),{},{x:parseInt(e)/100}))},dragDirection:"e"}),Object(c.createElement)(Ou,{label:Object(S.__)("Top"),value:a,onChange:function(e){n(yu(yu({},o),{},{y:parseInt(e)/100}))},dragDirection:"s"}))}function Ou(e){return Object(c.createElement)(cu,Object(o.a)({className:"focal-point-picker__controls-position-unit-control",labelPosition:"side",max:100,min:0,unit:"%",units:[{value:"%",label:"%"}]},e))}var ju=je("div",{target:"eas61re0",label:"FocalPointWrapper"})({name:"1frwh1y",styles:"background-color:transparent;box-sizing:border-box;cursor:grab;height:30px;margin:-15px 0 0 -15px;opacity:0.8;position:absolute;user-select:none;width:30px;will-change:transform;z-index:10000;&.is-dragging{cursor:grabbing;}"}),wu=je(r.SVG,{target:"eas61re1",label:"PointerIconSVG"})({name:"1fp1hff",styles:"display:block;height:100%;left:0;position:absolute;top:0;width:100%;"}),ku=je(r.Path,{target:"eas61re2",label:"PointerIconPathOutline"})({name:"j4aqsr",styles:"fill:white;"}),_u=je(r.Path,{target:"eas61re3",label:"PointerIconPathFill"})("fill:",Fe("blue.wordpress.700"),";fill:",Fe("ui.theme"),";");function Su(e){var t=e.coordinates,n=void 0===t?{left:"50%",top:"50%"}:t,r=e.isDragging,i=void 0!==r&&r,s=Object(a.a)(e,["coordinates","isDragging"]),u=l()("components-focal-point-picker__icon_container",i&&"is-dragging"),d={left:n.left,top:n.top};return Object(c.createElement)(ju,Object(o.a)({},s,{className:u,style:d}),Object(c.createElement)(wu,{className:"components-focal-point-picker__icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30 30"},Object(c.createElement)(ku,{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(c.createElement)(_u,{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"})))}var Eu=window,xu=Eu.clearTimeout,Cu=Eu.setTimeout;function Pu(e){var t=e.bounds,n=void 0===t?{}:t,r=e.value,s=Object(a.a)(e,["bounds","value"]),u=function(e){var t=Object(c.useState)(!1),n=Object(i.a)(t,2),r=n[0],o=n[1];return Er((function(){o(!0);var e=Cu((function(){o(!1)}),600);return function(){return xu(e)}}),[e]),{isActive:r}}(r),l={width:n.width,height:n.height};return Object(c.createElement)(uu,Object(o.a)({},s,u,{className:"components-focal-point-picker__grid",style:l}),Object(c.createElement)(du,{style:{top:"33%"}}),Object(c.createElement)(du,{style:{top:"66%"}}),Object(c.createElement)(fu,{style:{left:"33%"}}),Object(c.createElement)(fu,{style:{left:"66%"}}))}function Du(e){var t=e.alt,n=e.autoPlay,r=e.src,i=e.onLoad,u=void 0===i?s.noop:i,l=e.mediaRef,d=e.muted,f=void 0===d||d,p=Object(a.a)(e,["alt","autoPlay","src","onLoad","mediaRef","muted"]);return r?function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!!e&&bu.includes(hu(e))}(r)?Object(c.createElement)("video",Object(o.a)({},p,{autoPlay:n,className:"components-focal-point-picker__media components-focal-point-picker__media--video",loop:!0,muted:f,onLoadedData:u,ref:l,src:r})):Object(c.createElement)("img",Object(o.a)({},p,{alt:t,className:"components-focal-point-picker__media components-focal-point-picker__media--image",onLoad:u,ref:l,src:r})):Object(c.createElement)(Mu,{className:"components-focal-point-picker__media components-focal-point-picker__media--placeholder",onLoad:u,mediaRef:l})}function Mu(e){var t=e.mediaRef,n=e.onLoad,r=void 0===n?s.noop:n,i=Object(a.a)(e,["mediaRef","onLoad"]),u=Object(c.useRef)(r);return Object(c.useLayoutEffect)((function(){window.requestAnimationFrame((function(){u.current()}))}),[]),Object(c.createElement)(au,Object(o.a)({ref:t},i))}function Tu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ha.a)(e);if(t){var o=Object(ha.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ba.a)(this,n)}}var Iu=function(e){Object(pa.a)(n,e);var t=Tu(n);function n(e){var r;return Object(la.a)(this,n),(r=t.apply(this,arguments)).state={isDragging:!1,bounds:pu,percentages:e.value},r.containerRef=Object(c.createRef)(),r.mediaRef=Object(c.createRef)(),r.handleOnClick=r.handleOnClick.bind(Object(fa.a)(r)),r.handleOnMouseUp=r.handleOnMouseUp.bind(Object(fa.a)(r)),r.handleOnKeyDown=r.handleOnKeyDown.bind(Object(fa.a)(r)),r.onMouseMove=r.onMouseMove.bind(Object(fa.a)(r)),r.updateBounds=r.updateBounds.bind(Object(fa.a)(r)),r.updateValue=r.updateValue.bind(Object(fa.a)(r)),r}return Object(da.a)(n,[{key:"componentDidMount",value:function(){document.addEventListener("mouseup",this.handleOnMouseUp),window.addEventListener("resize",this.updateBounds)}},{key:"componentDidUpdate",value:function(e){e.url!==this.props.url&&this.setState({isDragging:!1}),this.props.value.x===this.state.percentages.x&&this.props.value.y===this.state.percentages.y||this.setState({percentages:this.props.value})}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mouseup",this.handleOnMouseUp),window.removeEventListener("resize",this.updateBounds)}},{key:"calculateBounds",value:function(){var e=pu;if(!this.mediaRef.current)return e;var t=this.mediaRef.current.clientWidth,n=this.mediaRef.current.clientHeight,r=this.pickerDimensions(),o=r.width/t,i=r.height/n;return i>=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*i,e.left=(r.width-e.width)/2,e.right=e.left+e.width),e}},{key:"updateValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.props.onChange,n=e.x,r=e.y,o={x:parseFloat(n).toFixed(2),y:parseFloat(r).toFixed(2)};this.setState({percentages:o},(function(){t(o)}))}},{key:"updateBounds",value:function(){this.setState({bounds:this.calculateBounds()})}},{key:"handleOnClick",value:function(e){var t=this;e.persist(),this.setState({isDragging:!0},(function(){t.onMouseMove(e)}))}},{key:"handleOnMouseUp",value:function(){this.setState({isDragging:!1})}},{key:"handleOnKeyDown",value:function(e){var t=e.keyCode,n=e.shiftKey;if([pr.UP,pr.DOWN,pr.LEFT,pr.RIGHT].includes(t)){var r=this.state.percentages,o=r.x,i=r.y;e.preventDefault();var a=parseFloat(o),c=parseFloat(i),s=n?.1:.01;switch(e.keyCode){case pr.UP:c-=s;break;case pr.DOWN:c+=s;break;case pr.LEFT:a-=s;break;case pr.RIGHT:a+=s}var u={x:a=Ar(a,0,1,s),y:c=Ar(c,0,1,s)};this.updateValue(u)}}},{key:"onMouseMove",value:function(e){var t=this.state,n=t.isDragging,r=t.bounds;if(n){var o=e.shiftKey,i=this.pickerDimensions(),a={left:e.pageX-i.left,top:e.pageY-i.top},c=Math.max(r.left,Math.min(a.left,r.right)),s=Math.max(r.top,Math.min(a.top,r.bottom)),u=(c-r.left)/(i.width-2*r.left),l=(s-r.top)/(i.height-2*r.top),d=o?.1:.01,f={x:u=Ar(u,0,1,d),y:l=Ar(l,0,1,d)};this.updateValue(f)}}},{key:"pickerDimensions",value:function(){var e=this.containerRef.current;if(!e)return{width:0,height:0,left:0,top:0};var t=e.clientHeight,n=e.clientWidth,r=e.getBoundingClientRect(),o=r.top,i=r.left;return{width:n,height:t,top:o+document.body.scrollTop,left:i}}},{key:"iconCoordinates",value:function(){var e=this.props.value,t=this.state.bounds;if(void 0===t.left||void 0===t.top)return{left:"50%",top:"50%"};var n=this.pickerDimensions(),r={left:e.x*(n.width-2*t.left)+t.left,top:e.y*(n.height-2*t.top)+t.top};return r}},{key:"handleFocusOutside",value:function(){this.setState({isDragging:!1})}},{key:"render",value:function(){var e=this,t=this.props,n=t.autoPlay,r=t.className,o=t.help,i=t.instanceId,a=t.label,s=t.onDragStart,u=t.onDragEnd,d=t.url,f=this.state,p=f.bounds,b=f.isDragging,h=f.percentages,v=this.iconCoordinates(),m=l()("components-focal-point-picker-control",r),y="inspector-focal-point-picker-control-".concat(i);return Object(c.createElement)(yt,{label:a,id:y,help:o,className:m},Object(c.createElement)(ou,{className:"components-focal-point-picker-wrapper"},Object(c.createElement)(iu,{className:"components-focal-point-picker",onDragStart:function(t){e.setState({isDragging:!0}),s(t)},onDrop:function(t){e.setState({isDragging:!1}),u(t)},onKeyDown:this.handleOnKeyDown,onMouseDown:this.handleOnClick,onMouseMove:this.onMouseMove,onMouseUp:this.handleOnMouseUp,ref:this.containerRef,role:"button",tabIndex:"-1"},Object(c.createElement)(Pu,{bounds:p,value:h.x+h.y}),Object(c.createElement)(Du,{alt:Object(S.__)("Media preview"),autoPlay:n,mediaRef:this.mediaRef,onLoad:this.updateBounds,src:d}),Object(c.createElement)(Su,{coordinates:v,isDragging:b}))),Object(c.createElement)(gu,{percentages:h,onChange:this.updateValue}))}}]),n}(c.Component);Iu.defaultProps={autoPlay:!0,onDragStart:s.noop,onDragEnd:s.noop,onChange:s.noop,value:{x:.5,y:.5},url:null};var Ru=Object(E.compose)([E.withInstanceId,ru.a])(Iu);function Nu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ha.a)(e);if(t){var o=Object(ha.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ba.a)(this,n)}}var Au=window.FocusEvent,Lu=function(e){Object(pa.a)(n,e);var t=Nu(n);function n(e){var r;return Object(la.a)(this,n),(r=t.apply(this,arguments)).checkFocus=r.checkFocus.bind(Object(fa.a)(r)),r.node=e.iframeRef||Object(c.createRef)(),r}return Object(da.a)(n,[{key:"checkFocus",value:function(){var e=this.node.current;if(e.ownerDocument.activeElement===e){var t=new Au("focus",{bubbles:!0});e.dispatchEvent(t);var n=this.props.onFocus;n&&n(t)}}},{key:"render",value:function(){return Object(c.createElement)("iframe",Object(o.a)({ref:this.node},Object(s.omit)(this.props,["iframeRef","onFocus"])))}}]),n}(c.Component),Fu=Object(E.withGlobalEvents)({blur:"checkFocus"})(Lu),zu=n(428);function Bu(e,t,n){return"number"!=typeof e?null:parseFloat(Object(s.clamp)(e,t,n))}var Hu={name:"tdik1c",styles:"height:30px;min-height:30px;"},Vu=function(){return Hu},Ku=je("span",{target:"exqw8y20",label:"Root"})({name:"1916452",styles:"-webkit-tap-highlight-color:transparent;box-sizing:border-box;cursor:pointer;align-items:flex-start;display:inline-flex;justify-content:flex-start;padding:0;position:relative;touch-action:none;width:100%;"}),Wu=je("span",{target:"exqw8y21",label:"Wrapper"})("box-sizing:border-box;color:",Fe("blue.medium.focus"),";display:block;flex:1;padding-top:15px;position:relative;width:100%;",(function(e){var t=e.color,n=void 0===t?Fe("ui.borderFocus"):t;return le({color:n},"")}),";",Vu,";",(function(e){var t=e.marks;return le({marginBottom:t?16:null},"")}),";",nt({marginLeft:10}),""),Uu=je("span",{target:"exqw8y22",label:"BeforeIconWrapper"})("margin-top:3px;",nt({marginRight:6}),""),Gu=je("span",{target:"exqw8y23",label:"AfterIconWrapper"})("margin-top:3px;",nt({marginLeft:16}),""),$u=je("span",{target:"exqw8y24",label:"Rail"})("background-color:",Fe("lightGray.600"),";box-sizing:border-box;left:0;pointer-events:none;right:0;display:block;height:3px;position:absolute;margin-top:14px;top:0;",(function(e){var t=e.disabled,n=e.railColor||null;return t&&(n=Fe("lightGray.400")),le({background:n},"")}),";"),qu=je("span",{target:"exqw8y25",label:"Track"})("background-color:currentColor;border-radius:1px;box-sizing:border-box;height:3px;pointer-events:none;display:block;position:absolute;margin-top:14px;top:0;",(function(e){var t=e.disabled,n=e.trackColor||"currentColor";return t&&(n=Fe("lightGray.800")),le({background:n},"")}),";"),Yu=je("span",{target:"exqw8y26",label:"MarksWrapper"})({name:"sx8y8z",styles:"box-sizing:border-box;display:block;position:relative;width:100%;user-select:none;"}),Zu=je("span",{target:"exqw8y27",label:"Mark"})("box-sizing:border-box;height:9px;left:0;position:absolute;top:-4px;width:1px;",(function(e){var t=e.disabled,n=e.isFilled?"currentColor":Fe("lightGray.600");return t&&(n=Fe("lightGray.800")),le({backgroundColor:n},"")}),";"),Xu=je("span",{target:"exqw8y28",label:"MarkLabel"})("box-sizing:border-box;color:",Fe("lightGray.600"),";left:0;font-size:11px;position:absolute;top:12px;transform:translateX( -50% );white-space:nowrap;",(function(e){var t=e.isFilled;return le({color:Fe(t?"darkGray.300":"lightGray.600")},"")}),";"),Ju=je("span",{target:"exqw8y29",label:"ThumbWrapper"})("align-items:center;box-sizing:border-box;display:flex;height:20px;justify-content:center;margin-top:5px;outline:0;pointer-events:none;position:absolute;top:0;user-select:none;width:20px;",nt({marginLeft:-10}),""),Qu=je("span",{target:"exqw8y210",label:"Thumb"})("align-items:center;background-color:white;border-radius:50%;border:1px solid ",Fe("darkGray.200"),";box-sizing:border-box;height:100%;outline:0;pointer-events:none;position:absolute;user-select:none;width:100%;",(function(e){var t=e.isFocused;return le({borderColor:Fe(t?"ui.borderFocus":"darkGray.200"),boxShadow:t?"\n\t\t\t\t0 0 0 1px ".concat(Fe("ui.borderFocus"),"\n\t\t\t"):"\n\t\t\t\t0 0 0 rgba(0, 0, 0, 0)\n\t\t\t"},"")}),";"),el=je("input",{target:"exqw8y211",label:"InputRange"})({name:"cvc9dl",styles:"box-sizing:border-box;cursor:pointer;display:block;height:100%;left:0;margin:0;opacity:0;outline:none;position:absolute;right:0;top:0;width:100%;"}),tl={name:"5qqmyx",styles:"top:-80%;"},nl={name:"eda4eg",styles:"bottom:-80%;"},rl=je("span",{target:"exqw8y212",label:"Tooltip"})("background:",Fe("ui.border"),";border-radius:2px;box-sizing:border-box;color:white;display:inline-block;font-size:12px;min-width:32px;opacity:0;padding:4px 8px;pointer-events:none;position:absolute;text-align:center;transition:opacity 120ms ease;user-select:none;line-height:1.4;",(function(e){var t=e.show;return le({opacity:t?1:0},"")}),";",(function(e){return"top"===e.position?tl:nl}),";",ze("transition"),";",nt({transform:"translateX(-50%)"},{transform:"translateX(50%)"}),""),ol=je(Fr,{target:"exqw8y213",label:"InputNumber"})("box-sizing:border-box;display:inline-block;font-size:13px;margin-top:0;width:",ft(8),";input[type='number']&{",Vu,";}",nt({marginLeft:ft(2)}),""),il=je("span",{target:"exqw8y214",label:"ActionRightWrapper"})("box-sizing:border-box;display:block;margin-top:0;button,button.is-small{margin-left:0;",Vu,";}",nt({marginLeft:8}),"");var al=Object(c.forwardRef)((function(e,t){var n=e.describedBy,r=e.isShiftStepEnabled,u=void 0===r||r,l=e.label,d=e.onHideTooltip,f=void 0===d?s.noop:d,p=e.onMouseLeave,b=void 0===p?s.noop:p,h=e.step,v=void 0===h?1:h,m=e.onBlur,y=void 0===m?s.noop:m,g=e.onChange,O=void 0===g?s.noop:g,j=e.onFocus,w=void 0===j?s.noop:j,k=e.onMouseMove,_=void 0===k?s.noop:k,S=e.onShowTooltip,E=void 0===S?s.noop:S,x=e.shiftStep,C=void 0===x?10:x,P=e.value,D=Object(a.a)(e,["describedBy","isShiftStepEnabled","label","onHideTooltip","onMouseLeave","step","onBlur","onChange","onFocus","onMouseMove","onShowTooltip","shiftStep","value"]),M=Lr({step:v,shiftStep:C,isShiftStepEnabled:u}),T=function(e){var t=e.onHide,n=void 0===t?s.noop:t,r=e.onMouseLeave,o=void 0===r?s.noop:r,a=e.onMouseMove,u=void 0===a?s.noop:a,l=e.onShow,d=void 0===l?s.noop:l,f=e.timeout,p=void 0===f?300:f,b=Object(c.useState)(!1),h=Object(i.a)(b,2),v=h[0],m=h[1],y=Object(c.useRef)(),g=Object(c.useCallback)((function(e){window.clearTimeout(y.current),y.current=setTimeout(e,p)}),[p]),O=Object(c.useCallback)((function(e){u(e),g((function(){v||(m(!0),d())}))}),[]),j=Object(c.useCallback)((function(e){o(e),g((function(){m(!1),n()}))}),[]);return Object(c.useEffect)((function(){return function(){window.clearTimeout(y.current)}})),{onMouseMove:O,onMouseLeave:j}}({onHide:f,onMouseLeave:b,onMouseMove:_,onShow:E});return Object(c.createElement)(el,Object(o.a)({},D,T,{"aria-describedby":n,"aria-label":l,"aria-hidden":!1,onBlur:y,onChange:O,onFocus:w,ref:t,step:M,tabIndex:0,type:"range",value:P}))}));function cl(e){var t=e.className,n=e.isFilled,r=void 0!==n&&n,i=e.label,s=e.style,u=void 0===s?{}:s,d=Object(a.a)(e,["className","isFilled","label","style"]),f=l()("components-range-control__mark",r&&"is-filled",t),p=l()("components-range-control__mark-label",r&&"is-filled");return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(Zu,Object(o.a)({},d,{"aria-hidden":"true",className:f,isFilled:r,style:u})),i&&Object(c.createElement)(Xu,{"aria-hidden":"true",className:p,isFilled:r,style:u},i))}function sl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ul(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sl(Object(n),!0).forEach((function(t){Object(P.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ll(e){var t=e.disabled,n=void 0!==t&&t,r=e.marks,i=void 0!==r&&r,s=e.min,u=void 0===s?0:s,l=e.max,d=void 0===l?100:l,f=e.step,p=void 0===f?1:f,b=e.value,h=void 0===b?0:b,v=Object(a.a)(e,["disabled","marks","min","max","step","value"]);return Object(c.createElement)(c.Fragment,null,Object(c.createElement)($u,Object(o.a)({disabled:n},v)),i&&Object(c.createElement)(dl,{disabled:n,marks:i,min:u,max:d,step:p,value:h}))}function dl(e){var t=e.disabled,n=void 0!==t&&t,r=e.marks,i=void 0!==r&&r,a=e.min,s=void 0===a?0:a,u=e.max,l=void 0===u?100:u,d=e.step,f=void 0===d?1:d,p=e.value,b=function(e){var t=e.marks,n=e.min,r=void 0===n?0:n,o=e.max,i=void 0===o?100:o,a=e.step,c=void 0===a?1:a,s=e.value,u=void 0===s?0:s,l="rtl"===document.documentElement.dir;if(!t)return[];var d=Array.isArray(t),f=Math.round((i-r)/c);return(d?t:Object(Gr.a)(Array(f+1)).map((function(e,t){return{value:t}}))).map((function(e,t){var n=void 0!==e.value?e.value:u,o="mark-".concat(t),i=n*c+r<=u,a="".concat(n/f*100,"%"),s=Object(P.a)({},l?"right":"left",a);return ul(ul({},e),{},{isFilled:i,key:o,style:s})}))}({marks:i,min:s,max:l,step:f,value:void 0===p?0:p});return Object(c.createElement)(Yu,{"aria-hidden":"true",className:"components-range-control__marks"},b.map((function(e){return Object(c.createElement)(cl,Object(o.a)({},e,{key:e.key,"aria-hidden":"true",disabled:n}))})))}function fl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fl(Object(n),!0).forEach((function(t){Object(P.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bl(e){var t=e.className,n=e.inputRef,r=e.position,s=void 0===r?"auto":r,u=e.show,d=void 0!==u&&u,f=e.style,p=void 0===f?{}:f,b=e.value,h=void 0===b?0:b,v=e.renderTooltipContent,m=void 0===v?function(e){return e}:v,y=e.zIndex,g=void 0===y?100:y,O=Object(a.a)(e,["className","inputRef","position","show","style","value","renderTooltipContent","zIndex"]),j=function(e){var t=e.inputRef,n=e.position,r=Object(c.useState)("top"),o=Object(i.a)(r,2),a=o[0],s=o[1],u=Object(c.useCallback)((function(){if(t&&t.current){var e=n;if("auto"===n)e=t.current.getBoundingClientRect().top-32<0?"bottom":"top";s(e)}}),[n]);return Object(c.useEffect)((function(){u()}),[u]),Object(c.useEffect)((function(){return window.addEventListener("resize",u),function(){window.removeEventListener("resize",u)}})),a}({inputRef:n,position:s}),w=l()("components-simple-tooltip",t),k=pl(pl({},p),{},{zIndex:g});return Object(c.createElement)(rl,Object(o.a)({},O,{"aria-hidden":d,className:w,position:j,show:d,role:"tooltip",style:k}),m(h))}var hl=Object(c.forwardRef)((function e(t,n){var r,u=t.afterIcon,d=t.allowReset,f=void 0!==d&&d,p=t.beforeIcon,b=t.className,h=t.currentInput,v=t.color,m=void 0===v?Fe("ui.theme"):v,y=t.disabled,g=void 0!==y&&y,O=t.help,j=t.initialPosition,w=t.isShiftStepEnabled,k=void 0===w||w,_=t.label,x=t.marks,C=void 0!==x&&x,D=t.max,M=void 0===D?100:D,T=t.min,I=void 0===T?0:T,R=t.onBlur,N=void 0===R?s.noop:R,A=t.onChange,L=void 0===A?s.noop:A,F=t.onFocus,z=void 0===F?s.noop:F,B=t.onMouseMove,H=void 0===B?s.noop:B,V=t.onMouseLeave,K=void 0===V?s.noop:V,W=t.railColor,U=t.resetFallbackValue,G=t.renderTooltipContent,$=void 0===G?function(e){return e}:G,q=t.showTooltip,Y=t.shiftStep,Z=void 0===Y?10:Y,X=t.step,J=void 0===X?1:X,Q=t.trackColor,ee=t.value,te=t.withInputField,ne=void 0===te||te,re=Object(a.a)(t,["afterIcon","allowReset","beforeIcon","className","currentInput","color","disabled","help","initialPosition","isShiftStepEnabled","label","marks","max","min","onBlur","onChange","onFocus","onMouseMove","onMouseLeave","railColor","resetFallbackValue","renderTooltipContent","showTooltip","shiftStep","step","trackColor","value","withInputField"]),oe=Qe(),ie=function(e){var t=e.min,n=e.max,r=e.value,o=e.initial,a=yo(Bu(r,t,n),{initial:o,fallback:null}),s=Object(i.a)(a,2),u=s[0],l=s[1];return[u,Object(c.useCallback)((function(e){l(null===e?null:Bu(e,t,n))}),[t,n])]}({min:I,max:M,value:ee,initial:j}),ae=Object(i.a)(ie,2),ce=ae[0],se=ae[1],ue=Object(c.useRef)(!1),le=Object(c.useState)(q),de=Object(i.a)(le,2),fe=de[0],pe=de[1],be=Object(c.useState)(!1),he=Object(i.a)(be,2),ve=he[0],me=he[1],ye=Object(c.useRef)(),ge=null===(r=ye.current)||void 0===r?void 0:r.matches(":focus"),Oe=!g&&ve,je=null===ce,we=je?"":void 0!==ce?ce:h,ke=je?Bu(M/2,I,M):ce,_e=je?50:(ce-I)/(M-I)*100,Se="".concat(Object(s.clamp)(_e,0,100),"%"),Ee=l()("components-range-control",b),xe=l()("components-range-control__wrapper",!!C&&"is-marked"),Ce=Object(E.useInstanceId)(e,"inspector-range-control"),Pe=O?"".concat(Ce,"__help"):void 0,De=!1!==q&&Object(s.isFinite)(ce),Me=function(){var e=parseFloat(U),t=e;isNaN(e)&&(e=null,t=void 0),se(e),L(t)},Te=Object(P.a)({},oe?"right":"left",Se);return Object(c.createElement)(yt,{className:Ee,label:_,id:Ce,help:O},Object(c.createElement)(Ku,{className:"components-range-control__root",isRTL:oe},p&&Object(c.createElement)(Uu,null,Object(c.createElement)(fs.a,{icon:p})),Object(c.createElement)(Wu,{className:xe,color:m,marks:!!C},Object(c.createElement)(al,Object(o.a)({},re,{className:"components-range-control__slider",describedBy:Pe,disabled:g,id:Ce,isShiftStepEnabled:k,label:_,max:M,min:I,onBlur:function(e){N(e),me(!1),pe(!1)},onChange:function(e){var t=parseFloat(e.target.value);se(t),L(t)},onFocus:function(e){z(e),me(!0),pe(!0)},onMouseMove:H,onMouseLeave:K,ref:function(e){ye.current=e,n&&n(e)},shiftStep:Z,step:J,value:we})),Object(c.createElement)(ll,{"aria-hidden":!0,disabled:g,marks:C,max:M,min:I,railColor:W,step:J,value:ke}),Object(c.createElement)(qu,{"aria-hidden":!0,className:"components-range-control__track",disabled:g,style:{width:Se},trackColor:Q}),Object(c.createElement)(Ju,{style:Te},Object(c.createElement)(Qu,{"aria-hidden":!0,isFocused:Oe})),De&&Object(c.createElement)(bl,{className:"components-range-control__tooltip",inputRef:ye,renderTooltipContent:$,show:ge||fe,style:Te,value:ce})),u&&Object(c.createElement)(Gu,null,Object(c.createElement)(fs.a,{icon:u})),ne&&Object(c.createElement)(ol,{"aria-label":_,className:"components-range-control__number",disabled:g,inputMode:"decimal",isShiftStepEnabled:k,max:M,min:I,onBlur:function(){ue.current&&(Me(),ue.current=!1)},onChange:function(e){e=parseFloat(e),se(e),isNaN(e)?f&&(ue.current=!0):((e<I||e>M)&&(e=Bu(e,I,M)),L(e),ue.current=!1)},shiftStep:Z,step:J,value:we}),f&&Object(c.createElement)(il,null,Object(c.createElement)(qr.a,{className:"components-range-control__reset",disabled:g||void 0===ce,isSecondary:!0,isSmall:!0,onClick:Me},Object(S.__)("Reset")))))})),vl="default";function ml(e){var t=e.fallbackFontSize,n=e.fontSizes,r=void 0===n?[]:n,o=e.disableCustomFontSizes,i=void 0!==o&&o,a=e.onChange,s=e.value,u=e.withSlider,l=void 0!==u&&u,d=Object(E.useInstanceId)(ml),f=Object(c.useMemo)((function(){return function(e,t){return t&&!e.length?null:(e=[{slug:vl,name:Object(S.__)("Default")}].concat(Object(Gr.a)(e),Object(Gr.a)(t?[]:[{slug:"custom",name:Object(S.__)("Custom")}]))).map((function(e){return{key:e.slug,name:e.name,style:{fontSize:e.size}}}))}(r,i)}),[r,i]);if(!f)return null;var p=function(e,t){if(t){var n=e.find((function(e){return e.size===Number(t)}));return n?n.slug:"custom"}return vl}(r,s),b="components-font-size-picker__number#".concat(d);return Object(c.createElement)("fieldset",{className:"components-font-size-picker"},Object(c.createElement)(M,{as:"legend"},Object(S.__)("Font size")),Object(c.createElement)("div",{className:"components-font-size-picker__controls"},r.length>0&&Object(c.createElement)(Xc,{className:"components-font-size-picker__select",label:Object(S.__)("Font size"),options:f,value:f.find((function(e){return e.key===p})),onChange:function(e){var t=e.selectedItem,n=t.style&&t.style.fontSize;a(Number(n))}}),!l&&!i&&Object(c.createElement)("div",{className:"components-font-size-picker__number-container"},Object(c.createElement)("label",{htmlFor:b},Object(S.__)("Custom")),Object(c.createElement)("input",{id:b,className:"components-font-size-picker__number",type:"number",min:1,onChange:function(e){a(Number(e.target.value))},"aria-label":Object(S.__)("Custom"),value:s||""})),Object(c.createElement)(qr.a,{className:"components-color-palette__clear",disabled:void 0===s,onClick:function(){a(void 0)},isSmall:!0,isSecondary:!0},Object(S.__)("Reset"))),l&&Object(c.createElement)(hl,{className:"components-font-size-picker__custom-input",label:Object(S.__)("Custom Size"),value:s||"",initialPosition:t,onChange:function(e){a(e)},min:12,max:100,beforeIcon:zu.a,afterIcon:zu.a}))}var yl=function(e){var t=e.accept,n=e.children,r=e.multiple,i=void 0!==r&&r,s=e.onChange,u=e.render,l=Object(a.a)(e,["accept","children","multiple","onChange","render"]),d=Object(c.useRef)(),f=function(){d.current.click()},p=u?u({openFileDialog:f}):Object(c.createElement)(qr.a,Object(o.a)({onClick:f},l),n);return Object(c.createElement)("div",{className:"components-form-file-upload"},p,Object(c.createElement)("input",{type:"file",ref:d,multiple:i,style:{display:"none"},accept:t,onChange:s}))};var gl=function(e){var t=e.className,n=e.checked,r=e.id,i=e.onChange,u=void 0===i?s.noop:i,d=Object(a.a)(e,["className","checked","id","onChange"]),f=l()("components-form-toggle",t,{"is-checked":n});return Object(c.createElement)("span",{className:f},Object(c.createElement)("input",Object(o.a)({className:"components-form-toggle__input",id:r,type:"checkbox",checked:n,onChange:u},d)),Object(c.createElement)("span",{className:"components-form-toggle__track"}),Object(c.createElement)("span",{className:"components-form-toggle__thumb"}))},Ol=n(40),jl=Object(c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(c.createElement)(r.Path,{d:"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"}));function wl(e){var t=e.value,n=e.status,r=e.title,o=e.displayTransform,i=e.isBorderless,a=void 0!==i&&i,u=e.disabled,d=void 0!==u&&u,f=e.onClickRemove,p=void 0===f?s.noop:f,b=e.onMouseEnter,h=e.onMouseLeave,v=e.messages,m=e.termPosition,y=e.termsCount,g=Object(E.useInstanceId)(wl),O=l()("components-form-token-field__token",{"is-error":"error"===n,"is-success":"success"===n,"is-validating":"validating"===n,"is-borderless":a,"is-disabled":d}),j=o(t),w=Object(S.sprintf)(Object(S.__)("%1$s (%2$s of %3$s)"),j,m,y);return Object(c.createElement)("span",{className:O,onMouseEnter:b,onMouseLeave:h,title:r},Object(c.createElement)("span",{className:"components-form-token-field__token-text",id:"components-form-token-field__token-text-".concat(g)},Object(c.createElement)(M,{as:"span"},w),Object(c.createElement)("span",{"aria-hidden":"true"},j)),Object(c.createElement)(qr.a,{className:"components-form-token-field__remove-token",icon:jl,onClick:!d&&function(){return p({value:t})},label:v.remove,"aria-describedby":"components-form-token-field__token-text-".concat(g)}))}function kl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kl(Object(n),!0).forEach((function(t){Object(P.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Sl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ha.a)(e);if(t){var o=Object(ha.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ba.a)(this,n)}}var El={incompleteTokenValue:"",inputOffsetFromEnd:0,isActive:!1,isExpanded:!1,selectedSuggestionIndex:-1,selectedSuggestionScroll:!1},xl=function(e){Object(pa.a)(n,e);var t=Sl(n);function n(){var e;return Object(la.a)(this,n),(e=t.apply(this,arguments)).state=El,e.onKeyDown=e.onKeyDown.bind(Object(fa.a)(e)),e.onKeyPress=e.onKeyPress.bind(Object(fa.a)(e)),e.onFocus=e.onFocus.bind(Object(fa.a)(e)),e.onBlur=e.onBlur.bind(Object(fa.a)(e)),e.deleteTokenBeforeInput=e.deleteTokenBeforeInput.bind(Object(fa.a)(e)),e.deleteTokenAfterInput=e.deleteTokenAfterInput.bind(Object(fa.a)(e)),e.addCurrentToken=e.addCurrentToken.bind(Object(fa.a)(e)),e.onContainerTouched=e.onContainerTouched.bind(Object(fa.a)(e)),e.renderToken=e.renderToken.bind(Object(fa.a)(e)),e.onTokenClickRemove=e.onTokenClickRemove.bind(Object(fa.a)(e)),e.onSuggestionHovered=e.onSuggestionHovered.bind(Object(fa.a)(e)),e.onSuggestionSelected=e.onSuggestionSelected.bind(Object(fa.a)(e)),e.onInputChange=e.onInputChange.bind(Object(fa.a)(e)),e.bindInput=e.bindInput.bind(Object(fa.a)(e)),e.bindTokensAndInput=e.bindTokensAndInput.bind(Object(fa.a)(e)),e.updateSuggestions=e.updateSuggestions.bind(Object(fa.a)(e)),e}return Object(da.a)(n,[{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=!Ms()(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(El)}},{key:"onKeyDown",value:function(e){var t=!1;switch(e.keyCode){case pr.BACKSPACE:t=this.handleDeleteKey(this.deleteTokenBeforeInput);break;case pr.ENTER:t=this.addCurrentToken();break;case pr.LEFT:t=this.handleLeftArrowKey();break;case pr.UP:t=this.handleUpArrowKey();break;case pr.RIGHT:t=this.handleRightArrowKey();break;case pr.DOWN:t=this.handleDownArrowKey();break;case pr.DELETE:t=this.handleDeleteKey(this.deleteTokenAfterInput);break;case pr.SPACE:this.props.tokenizeOnSpace&&(t=this.addCurrentToken());break;case pr.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(s.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();e<this.props.value.length&&(this.deleteToken(this.props.value[e]),this.moveInputToIndex(e))}},{key:"addCurrentToken",value:function(){var e=!1,t=this.getSelectedSuggestion();return t?(this.addNewToken(t),e=!0):this.inputHasValidValue()&&(this.addNewToken(this.state.incompleteTokenValue),e=!0),e}},{key:"addNewTokens",value:function(e){var t=this,n=Object(s.uniq)(e.map(this.props.saveTransform).filter(Boolean).filter((function(e){return!t.valueContainsToken(e)})));if(n.length>0){var r=Object(s.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(Ol.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,i=o(e),a=[],c=[];return 0===i.length?t=Object(s.difference)(t,n):(i=i.toLocaleLowerCase(),Object(s.each)(t,(function(e){var t=e.toLocaleLowerCase().indexOf(i);-1===n.indexOf(e)&&(0===t?a.push(e):t>0&&c.push(e))})),t=a.concat(c)),Object(s.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(s.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,i={isExpanded:n&&o};if(e&&(i.selectedSuggestionIndex=-1,i.selectedSuggestionScroll=!1),this.setState(i),n){var a=this.props.debouncedSpeak,c=o?Object(S.sprintf)(Object(S._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(S.__)("No results.");a(c,"assertive")}}},{key:"renderTokensAndInput",value:function(){var e=Object(s.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),o=e.status?e.status:void 0,i=t+1,a=n.length;return Object(c.createElement)(wl,{key:"token-"+r,value:r,status:o,title:e.title,displayTransform:this.props.displayTransform,onClickRemove:this.onTokenClickRemove,isBorderless:e.isBorderless||this.props.isBorderless,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,disabled:"error"!==o&&this.props.disabled,messages:this.props.messages,termsCount:a,termPosition:i})}},{key:"renderInput",value:function(){var e=this.props,t=e.autoCapitalize,n=e.autoComplete,r=e.maxLength,o=e.value,i={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 r&&o.length>=r||(i=_l(_l({},i),{},{onChange:this.onInputChange})),Object(c.createElement)(Za,i)}},{key:"render",value:function(){var e=this.props,t=e.disabled,n=e.label,r=void 0===n?Object(S.__)("Add item"):n,o=e.instanceId,i=e.className,a=this.state.isExpanded,s=l()(i,"components-form-token-field__input-container",{"is-active":this.state.isActive,"is-disabled":t}),u={className:"components-form-token-field",tabIndex:"-1"},d=this.getMatchingSuggestions();return t||(u=Object.assign({},u,{onKeyDown:this.onKeyDown,onKeyPress:this.onKeyPress,onFocus:this.onFocus})),Object(c.createElement)("div",u,Object(c.createElement)("label",{htmlFor:"components-form-token-input-".concat(o),className:"components-form-token-field__label"},r),Object(c.createElement)("div",{ref:this.bindTokensAndInput,className:s,tabIndex:"-1",onMouseDown:this.onContainerTouched,onTouchStart:this.onContainerTouched},this.renderTokensAndInput(),a&&Object(c.createElement)(tc,{instanceId:o,match:this.props.saveTransform(this.state.incompleteTokenValue),displayTransform:this.props.displayTransform,suggestions:d,selectedIndex:this.state.selectedSuggestionIndex,scrollIntoView:this.state.selectedSuggestionScroll,onHover:this.onSuggestionHovered,onSelect:this.onSuggestionSelected})),Object(c.createElement)("p",{id:"components-form-token-suggestions-howto-".concat(o),className:"components-form-token-field__help"},this.props.tokenizeOnSpace?Object(S.__)("Separate with commas, spaces, or the Enter key."):Object(S.__)("Separate with commas or the Enter key.")))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.disabled&&t.isActive?{isActive:!1,incompleteTokenValue:""}:null}}]),n}(c.Component);xl.defaultProps={suggestions:Object.freeze([]),maxSuggestions:100,value:Object.freeze([]),displayTransform:s.identity,saveTransform:function(e){return e.trim()},onChange:function(){},onInputChange:function(){},isBorderless:!1,disabled:!1,tokenizeOnSpace:!1,messages:{added:Object(S.__)("Item added."),removed:Object(S.__)("Item removed."),remove:Object(S.__)("Remove item")}};var Cl=Xr(Object(E.withInstanceId)(xl)),Pl=n(201),Dl=n.n(Pl),Ml="linear-gradient(135deg, rgba(6, 147, 227, 1) 0%, rgb(155, 81, 224) 100%)",Tl={className:"components-custom-gradient-picker__color-picker-popover",position:"top"},Il={type:"angular",value:90},Rl=[{value:"linear-gradient",label:Object(S.__)("Linear")},{value:"radial-gradient",label:Object(S.__)("Radial")}];function Nl(e){var t=e.type,n=e.value;return"literal"===t?n:"hex"===t?"#".concat(n):"".concat(t,"(").concat(n.join(","),")")}function Al(e){var t=e.type,n=e.value;return"".concat(n).concat(t)}function Ll(e){var t=e.type,n=e.value,r=e.length;return"".concat(Nl({type:t,value:n})," ").concat(Al(r))}function Fl(e){var t=e.type,n=e.orientation,r=e.colorStops,o=function(e){if(e&&"angular"===e.type)return"".concat(e.value,"deg")}(n),i=r.sort((function(e,t){return Object(s.get)(e,["length","value"],0)-Object(s.get)(t,["length","value"],0)})).map(Ll);return"".concat(t,"(").concat(Object(s.compact)([o].concat(Object(Gr.a)(i))).join(","),")")}function zl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zl(Object(n),!0).forEach((function(t){Object(P.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Hl(e){var t=e.r,n=e.g,r=e.b,o=e.a;return 1===o?{type:"rgb",value:[t,n,r]}:{type:"rgba",value:[t,n,r,o]}}function Vl(e,t,n){return Bl(Bl({},e),{},{colorStops:e.colorStops.map((function(e,r){return r!==t?e:Bl(Bl({},e),{},{length:Bl(Bl({},e.length),{},{value:n})})}))})}function Kl(e,t,n){var r=parseInt(e.colorStops[n].length.value),o=Math.min(r,t),i=Math.max(r,t);return Object(s.some)(e.colorStops,(function(e,r){var a=e.length,c=parseInt(a.value);return r!==n&&(Math.abs(c-t)<0||o<c&&c<i)}))}function Wl(e,t,n){var r=e.colorStops[t].length.value,o=Math.max(0,Math.min(100,parseInt(r)+n));return Kl(e,o,t)?e:Vl(e,t,o)}function Ul(e,t,n){return Bl(Bl({},e),{},{colorStops:e.colorStops.map((function(e,r){return r!==t?e:Bl(Bl({},e),Hl(n))}))})}function Gl(e,t,n){if(t){var r=t.getBoundingClientRect(),o=e-r.x-5-n/2,i=r.width-5-23;return Math.round(Math.min(Math.max(100*o/i,0),100))}}function $l(e){return Fl({type:"linear-gradient",orientation:Il,colorStops:e.colorStops})}var ql={top:0,"top right":45,"right top":45,right:90,"right bottom":135,"bottom right":135,bottom:180,"bottom left":225,"left bottom":225,left:270,"top left":315,"left top":315};function Yl(e){var t,n,r=!!e;try{t=Dl.a.parse(e||Ml)[0],n=e||Ml}catch(e){r=!1,t=Dl.a.parse(Ml)[0],n=Ml}return t.orientation&&"directional"===t.orientation.type&&(t.orientation.type="angular",t.orientation.value=ql[t.orientation.value].toString()),{hasGradient:r,gradientAST:t,gradientValue:n}}function Zl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ha.a)(e);if(t){var o=Object(ha.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ba.a)(this,n)}}var Xl=function(e){Object(pa.a)(n,e);var t=Zl(n);function n(){var e;return Object(la.a)(this,n),(e=t.apply(this,arguments)).increase=e.increase.bind(Object(fa.a)(e)),e.decrease=e.decrease.bind(Object(fa.a)(e)),e.shortcuts={right:e.increase,left:e.decrease},e}return Object(da.a)(n,[{key:"increase",value:function(e){e.stopPropagation();var t=this.props,n=t.gradientIndex;(0,t.onChange)(function(e,t){return Wl(e,t,10)}(t.gradientAST,n))}},{key:"decrease",value:function(e){e.stopPropagation();var t=this.props,n=t.gradientIndex;(0,t.onChange)(function(e,t){return Wl(e,t,-10)}(t.gradientAST,n))}},{key:"render",value:function(){var e=this.props.children;return Object(c.createElement)(Oa,{shortcuts:this.shortcuts},e)}}]),n}(c.Component);function Jl(e){var t=e.isOpen,n=e.position,r=e.color,i=e.onChange,s=e.gradientIndex,u=e.gradientAST,d=Object(a.a)(e,["isOpen","position","color","onChange","gradientIndex","gradientAST"]),f=Object(E.useInstanceId)(Jl),p="components-custom-gradient-picker__control-point-button-description-".concat(f);return Object(c.createElement)(Xl,{onChange:i,gradientIndex:s,gradientAST:u},Object(c.createElement)(qr.a,Object(o.a)({"aria-label":Object(S.sprintf)(Object(S.__)("Gradient control point at position %1$s with color code %2$s."),n,r),"aria-describedby":p,"aria-haspopup":"true","aria-expanded":t,className:l()("components-custom-gradient-picker__control-point-button",{"is-active":t}),style:{left:n}},d)),Object(c.createElement)(M,{id:p},Object(S.__)("Use your left or right arrow keys or drag and drop with the mouse to change the gradient position. Press the button to change the color or remove the control point.")))}function Ql(e){var t=e.gradientPickerDomRef,n=e.ignoreMarkerPosition,r=e.markerPoints,o=e.onChange,i=e.gradientAST,a=e.onStartControlPointChange,s=e.onStopControlPointChange,u=Object(c.useRef)(),l=function(e){var n=Gl(e.clientX,t.current,18),r=u.current,i=r.gradientAST,a=r.position;if(!r.significantMoveHappened){var c=i.colorStops[a].length.value;Math.abs(c-n)>=5&&(u.current.significantMoveHappened=!0)}Kl(i,n,a)||o(Vl(i,a,n))},d=function e(){window&&window.removeEventListener&&u.current&&u.current.listenersActivated&&(window.removeEventListener("mousemove",l),window.removeEventListener("mouseup",e),s(),u.current.listenersActivated=!1)};return Object(c.useEffect)((function(){return function(){d()}}),[]),r.map((function(e,t){return e&&n!==e.positionValue&&Object(c.createElement)(sa,{key:t,onClose:s,renderToggle:function(n){var r=n.isOpen,f=n.onToggle;return Object(c.createElement)(Jl,{key:t,onClick:function(){u.current&&u.current.significantMoveHappened||(r?s():a(),f())},onMouseDown:function(){window&&window.addEventListener&&(u.current={gradientAST:i,position:t,significantMoveHappened:!1,listenersActivated:!0},a(),window.addEventListener("mousemove",l),window.addEventListener("mouseup",d))},isOpen:r,position:e.position,color:e.color,onChange:o,gradientAST:i,gradientIndex:t})},renderContent:function(n){var r=n.onClose;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(Ha,{color:e.color,onChangeComplete:function(e){var n=e.rgb;o(Ul(i,t,n))}}),Object(c.createElement)(qr.a,{className:"components-custom-gradient-picker__remove-control-point",onClick:function(){o(function(e,t){return Bl(Bl({},e),{},{colorStops:e.colorStops.filter((function(e,n){return n!==t}))})}(i,t)),r()},isLink:!0},Object(S.__)("Remove Control Point")))},popoverProps:Tl})}))}function ed(e){var t=e.onChange,n=e.gradientAST,r=e.onOpenInserter,o=e.onCloseInserter,a=e.insertPosition,u=Object(c.useState)(!1),l=Object(i.a)(u,2),d=l[0],f=l[1];return Object(c.createElement)(sa,{className:"components-custom-gradient-picker__inserter",onClose:function(){o()},renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(c.createElement)(qr.a,{"aria-expanded":t,"aria-haspopup":"true",onClick:function(){t?o():(f(!1),r()),n()},className:"components-custom-gradient-picker__insert-point",icon:ca.a,style:{left:null!==a?"".concat(a,"%"):void 0}})},renderContent:function(){return Object(c.createElement)(Ha,{onChangeComplete:function(e){var r,o=e.rgb;d?r=function(e,t,n){return Ul(e,Object(s.findIndex)(e.colorStops,(function(e){return e&&e.length&&"%"===e.length.type&&e.length.value===t.toString()})),n)}(n,a,o):(r=function(e,t,n){var r=Hl(n);return r.length={type:"%",value:t},Bl(Bl({},e),{},{colorStops:[].concat(Object(Gr.a)(e.colorStops),[r])})}(n,a,o),f(!0)),t(r)}})},popoverProps:Tl})}function td(e,t){switch(t.type){case"MOVE_INSERTER":if("IDLE"===e.id||"MOVING_INSERTER"===e.id)return{id:"MOVING_INSERTER",insertPosition:t.insertPosition};break;case"STOP_INSERTER_MOVE":if("MOVING_INSERTER"===e.id)return{id:"IDLE"};break;case"OPEN_INSERTER":if("MOVING_INSERTER"===e.id)return{id:"INSERTING_CONTROL_POINT",insertPosition:e.insertPosition};break;case"CLOSE_INSERTER":if("INSERTING_CONTROL_POINT"===e.id)return{id:"IDLE"};break;case"START_CONTROL_CHANGE":if("IDLE"===e.id)return{id:"MOVING_CONTROL_POINT"};break;case"STOP_CONTROL_CHANGE":if("MOVING_CONTROL_POINT"===e.id)return{id:"IDLE"}}return e}var nd={id:"IDLE"};function rd(e){var t=e.value,n=e.onChange,r=Yl(t),o=r.gradientAST,a=r.gradientValue,u=r.hasGradient,d=function(e){n(Fl(e))},f=Object(c.useRef)(),p=function(e){return e?Object(s.map)(e.colorStops,(function(e){return e&&e.length&&"%"===e.length.type?{color:Nl(e),position:Al(e.length),positionValue:parseInt(e.length.value)}:null})):[]}(o),b=Object(c.useReducer)(td,nd),h=Object(i.a)(b,2),v=h[0],m=h[1],y=function(e){var t=Gl(e.clientX,f.current,23);Object(s.some)(p,(function(e){var n=e.positionValue;return Math.abs(t-n)<10}))?"MOVING_INSERTER"===v.id&&m({type:"STOP_INSERTER_MOVE"}):m({type:"MOVE_INSERTER",insertPosition:t})},g="MOVING_INSERTER"===v.id,O="INSERTING_CONTROL_POINT"===v.id;return Object(c.createElement)("div",{ref:f,className:l()("components-custom-gradient-picker__gradient-bar",{"has-gradient":u}),onMouseEnter:y,onMouseMove:y,style:{background:"radial-gradient"===o.type?$l(o):a},onMouseLeave:function(){m({type:"STOP_INSERTER_MOVE"})}},Object(c.createElement)("div",{className:"components-custom-gradient-picker__markers-container"},(g||O)&&Object(c.createElement)(ed,{insertPosition:v.insertPosition,onChange:d,gradientAST:o,onOpenInserter:function(){m({type:"OPEN_INSERTER"})},onCloseInserter:function(){m({type:"CLOSE_INSERTER"})}}),Object(c.createElement)(Ql,{gradientPickerDomRef:f,ignoreMarkerPosition:O?v.insertPosition:void 0,markerPoints:p,onChange:d,gradientAST:o,onStartControlPointChange:function(){m({type:"START_CONTROL_CHANGE"})},onStopControlPointChange:function(){m({type:"STOP_CONTROL_CHANGE"})}})))}var od=je(Et,{target:"e99xvul0",label:"SelectWrapper"})({name:"14kcwr6",styles:"width:110px;"});function id(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ad(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?id(Object(n),!0).forEach((function(t){Object(P.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):id(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var cd=function(e){var t=e.gradientAST,n=e.hasGradient,r=e.onChange,o=Object(s.get)(t,["orientation","value"],180);return Object(c.createElement)(Ur,{value:n?o:"",onChange:function(e){r(Fl(ad(ad({},t),{},{orientation:{type:"angular",value:e}})))}})},sd=function(e){var t=e.gradientAST,n=e.hasGradient,r=e.onChange,o=t.type;return Object(c.createElement)(vs,{className:"components-custom-gradient-picker__type-picker",label:Object(S.__)("Type"),onChange:function(e){"linear-gradient"===e&&r(Fl(ad(ad(ad({},t),t.orientation?{}:{orientation:Il}),{},{type:"linear-gradient"}))),"radial-gradient"===e&&r(Fl(ad(ad({},Object(s.omit)(t,["orientation"])),{},{type:"radial-gradient"})))},options:Rl,value:n&&o})};function ud(e){var t=e.value,n=e.onChange,r=Yl(t),o=r.gradientAST,i=r.hasGradient,a=o.type;return Object(c.createElement)("div",{className:"components-custom-gradient-picker"},Object(c.createElement)(rd,{value:t,onChange:n}),Object(c.createElement)(_t,{gap:3,className:"components-custom-gradient-picker__ui-line"},Object(c.createElement)(od,null,Object(c.createElement)(sd,{gradientAST:o,hasGradient:i,onChange:n})),"linear-gradient"===a&&Object(c.createElement)(Et,null,Object(c.createElement)(cd,{gradientAST:o,hasGradient:i,onChange:n}))))}function ld(e){var t=e.className,n=e.gradients,r=e.onChange,o=e.value,i=e.clearable,a=void 0===i||i,u=e.disableCustomGradients,l=void 0!==u&&u,d=Object(c.useCallback)((function(){return r(void 0)}),[r]),f=Object(c.useMemo)((function(){return Object(s.map)(n,(function(e){var t=e.gradient,n=e.name;return Object(c.createElement)(ua.Option,{key:t,value:t,isSelected:o===t,tooltipText:n||Object(S.sprintf)(Object(S.__)("Gradient code: %s"),t),style:{color:"rgba( 0,0,0,0 )",background:t},onClick:o===t?d:function(){return r(t)},"aria-label":n?Object(S.sprintf)(Object(S.__)("Gradient: %s"),n):Object(S.sprintf)(Object(S.__)("Gradient code: %s"),t)})}))}),[n,o,r,d]);return Object(c.createElement)(ua,{className:t,options:f,actions:a&&Object(c.createElement)(ua.ButtonAction,{onClick:d},Object(S.__)("Clear"))},!l&&Object(c.createElement)(ud,{value:o,onChange:r}))}var dd=n(136),fd=n(135),pd=n(134);function bd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ha.a)(e);if(t){var o=Object(ha.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ba.a)(this,n)}}var hd=function(e){Object(pa.a)(n,e);var t=bd(n);function n(){var e;return Object(la.a)(this,n),(e=t.apply(this,arguments)).containerRef=Object(c.createRef)(),e.handleKeyDown=e.handleKeyDown.bind(Object(fa.a)(e)),e.handleFocusOutside=e.handleFocusOutside.bind(Object(fa.a)(e)),e}return Object(da.a)(n,[{key:"componentDidMount",value:function(){this.props.focusOnMount&&this.containerRef.current.focus()}},{key:"handleFocusOutside",value:function(e){this.props.shouldCloseOnClickOutside&&this.onRequestClose(e)}},{key:"handleKeyDown",value:function(e){e.keyCode===pr.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,o=r.describedby,i=r.labelledby,a=e.children,s=e.className,u=e.role,d=e.style;return Object(c.createElement)(dd.a,{className:l()("components-modal__screen-overlay",t),onKeyDown:this.handleKeyDown},Object(c.createElement)("div",{className:l()("components-modal__frame",s),style:d,ref:this.containerRef,role:u,"aria-label":n,"aria-labelledby":n?null:i,"aria-describedby":o,tabIndex:"-1"},a))}}]),n}(c.Component),vd=Object(E.compose)([fd.a,pd.a,ru.a])(hd),md=function(e){var t=e.icon,n=e.title,r=e.onClose,o=e.closeLabel,i=e.headingId,a=e.isDismissible,s=o||Object(S.__)("Close dialog");return Object(c.createElement)("div",{className:"components-modal__header"},Object(c.createElement)("div",{className:"components-modal__header-heading-container"},t&&Object(c.createElement)("span",{className:"components-modal__icon-container","aria-hidden":!0},t),n&&Object(c.createElement)("h1",{id:i,className:"components-modal__header-heading"},n)),a&&Object(c.createElement)(qr.a,{onClick:r,icon:oa.a,label:s}))},yd=new Set(["alert","status","log","marquee","timer"]),gd=[],Od=!1;function jd(e){if(!Od){var t=document.body.children;Object(s.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")||yd.has(t))}(t)&&(t.setAttribute("aria-hidden","true"),gd.push(t))})),Od=!0}}function wd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ha.a)(e);if(t){var o=Object(ha.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ba.a)(this,n)}}var kd,_d=0,Sd=function(e){Object(pa.a)(n,e);var t=wd(n);function n(e){var r;return Object(la.a)(this,n),(r=t.call(this,e)).prepareDOM(),r}return Object(da.a)(n,[{key:"componentDidMount",value:function(){1===++_d&&this.openFirstModal()}},{key:"componentWillUnmount",value:function(){0===--_d&&this.closeLastModal(),this.cleanDOM()}},{key:"prepareDOM",value:function(){kd||(kd=document.createElement("div"),document.body.appendChild(kd)),this.node=document.createElement("div"),kd.appendChild(this.node)}},{key:"cleanDOM",value:function(){kd.removeChild(this.node)}},{key:"openFirstModal",value:function(){jd(kd),document.body.classList.add(this.props.bodyOpenClassName)}},{key:"closeLastModal",value:function(){document.body.classList.remove(this.props.bodyOpenClassName),Od&&(Object(s.forEach)(gd,(function(e){e.removeAttribute("aria-hidden")})),gd=[],Od=!1)}},{key:"render",value:function(){var e=this.props,t=e.onRequestClose,n=e.title,r=e.icon,i=e.closeButtonLabel,s=e.children,u=e.aria,l=e.instanceId,d=e.isDismissible,f=e.isDismissable,p=Object(a.a)(e,["onRequestClose","title","icon","closeButtonLabel","children","aria","instanceId","isDismissible","isDismissable"]),b=u.labelledby||"components-modal-header-".concat(l);return f&&Ks()("isDismissable prop of the Modal component",{alternative:"isDismissible prop (renamed) of the Modal component"}),Object(c.createPortal)(Object(c.createElement)(vd,Object(o.a)({onRequestClose:t,aria:{labelledby:n?b:null,describedby:u.describedby}},p),Object(c.createElement)("div",{className:"components-modal__content",role:"document"},Object(c.createElement)(md,{closeLabel:i,headingId:b,icon:r,isDismissible:d||f,onClose:t,title:n}),s)),this.node)}}]),n}(c.Component);Sd.defaultProps={bodyOpenClassName:"modal-open",role:"dialog",title:null,focusOnMount:!0,shouldCloseOnEsc:!0,shouldCloseOnClickOutside:!0,isDismissible:!0,aria:{labelledby:null,describedby:null}};var Ed=Object(E.withInstanceId)(Sd),xd=function(e){var t=e.isSelected;return Object(c.createElement)(r.SVG,{width:"8",height:"8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(c.createElement)(r.Circle,{cx:"4",cy:"4",r:"4",fill:t?"#419ECD":"#E1E3E6"}))};function Cd(e){var t=e.currentPage,n=e.numberOfPages,r=e.setCurrentPage;return Object(c.createElement)("ul",{className:"components-guide__page-control","aria-label":Object(S.__)("Guide controls")},Object(s.times)(n,(function(e){return Object(c.createElement)("li",{key:e,"aria-current":e===t?"step":void 0},Object(c.createElement)(qr.a,{key:e,icon:Object(c.createElement)(xd,{isSelected:e===t}),"aria-label":Object(S.sprintf)(Object(S.__)("Page %1$d of %2$d"),e+1,n),onClick:function(){return r(e)}}))})))}function Pd(e){var t=e.className,n=e.onClick,r=e.children,o=Object(c.useRef)(null);return Object(c.useLayoutEffect)((function(){document.activeElement&&document.activeElement!==document.body||o.current.focus()}),[o]),Object(c.createElement)(qr.a,{ref:o,className:t,isPrimary:!0,onClick:n},r)}function Dd(e){var t=e.children,n=e.className,r=e.contentLabel,o=e.finishButtonText,a=e.onFinish,s=e.pages,u=void 0===s?[]:s,d=Object(c.useState)(0),f=Object(i.a)(d,2),p=f[0],b=f[1];Object(c.useEffect)((function(){c.Children.count(t)&&Ks()("Passing children to <Guide>",{alternative:"the `pages` prop"})}),[t]),c.Children.count(t)&&(u=c.Children.map(t,(function(e){return{content:e}})));var h=p>0,v=p<u.length-1,m=function(){h&&b(p-1)},y=function(){v&&b(p+1)};return 0===u.length?null:Object(c.createElement)(Ed,{className:l()("components-guide",n),contentLabel:r,onRequestClose:a},Object(c.createElement)(Oa,{key:p,shortcuts:{left:m,right:y}}),Object(c.createElement)("div",{className:"components-guide__container"},Object(c.createElement)("div",{className:"components-guide__page"},u[p].image,Object(c.createElement)(Cd,{currentPage:p,numberOfPages:u.length,setCurrentPage:b}),u[p].content,!v&&Object(c.createElement)(Pd,{className:"components-guide__inline-finish-button",onClick:a},o||Object(S.__)("Finish"))),Object(c.createElement)("div",{className:"components-guide__footer"},h&&Object(c.createElement)(qr.a,{className:"components-guide__back-button",onClick:m},Object(S.__)("Previous")),v&&Object(c.createElement)(qr.a,{className:"components-guide__forward-button",onClick:y},Object(S.__)("Next")),!v&&Object(c.createElement)(Pd,{className:"components-guide__finish-button",onClick:a},o||Object(S.__)("Finish")))))}function Md(e){return Object(c.useEffect)((function(){Ks()("<GuidePage>",{alternative:"the `pages` prop in <Guide>"})}),[]),Object(c.createElement)("div",e)}var Td=Object(c.forwardRef)((function(e,t){var n=e.labelPosition,r=e.size,i=e.tooltip,s=e.label,u=Object(a.a)(e,["labelPosition","size","tooltip","label"]);return Ks()("wp.components.IconButton",{alternative:"wp.components.Button"}),Object(c.createElement)(qr.a,Object(o.a)({},u,{ref:t,tooltipPosition:n,iconSize:r,showTooltip:void 0!==i?!!i:void 0,label:i||s}))}));var Id=function e(t){var n=t.children,r=t.className,o=void 0===r?"":r,i=t.label,a=Object(E.useInstanceId)(e);if(!c.Children.count(n))return null;var s="components-menu-group-label-".concat(a),u=l()(o,"components-menu-group");return Object(c.createElement)("div",{className:u},i&&Object(c.createElement)("div",{className:"components-menu-group__label",id:s,"aria-hidden":"true"},i),Object(c.createElement)("div",{role:"group","aria-labelledby":i?s:null},n))},Rd=n(172);var Nd=Object(c.forwardRef)((function(e,t){var n=e.children,r=e.info,i=e.className,u=e.icon,d=e.shortcut,f=e.isSelected,p=e.role,b=void 0===p?"menuitem":p,h=Object(a.a)(e,["children","info","className","icon","shortcut","isSelected","role"]);return i=l()("components-menu-item__button",i),r&&(n=Object(c.createElement)("span",{className:"components-menu-item__info-wrapper"},n,Object(c.createElement)("span",{className:"components-menu-item__info"},r))),u&&!Object(s.isString)(u)&&(u=Object(c.cloneElement)(u,{className:"components-menu-items__item-icon"})),Object(c.createElement)(qr.a,Object(o.a)({ref:t,"aria-checked":"menuitemcheckbox"===b||"menuitemradio"===b?f:void 0,role:b,className:i},h),n,Object(c.createElement)(Rd.a,{className:"components-menu-item__shortcut",shortcut:d}),u&&Object(c.createElement)(fs.a,{icon:u}))}));function Ad(e){var t=e.choices,n=void 0===t?[]:t,r=e.onHover,o=void 0===r?s.noop:r,i=e.onSelect,a=e.value;return n.map((function(e){var t=a===e.value;return Object(c.createElement)(Nd,{key:e.value,role:"menuitemradio",icon:t&&ea.a,isSelected:t,shortcut:e.shortcut,className:"components-menu-items-choice",onClick:function(){t||i(e.value)},onMouseEnter:function(){return o(e.value)},onMouseLeave:function(){return o(null)}},e.label)}))}var Ld=n(166);var Fd=Object(c.forwardRef)((function(e,t){var n=e.eventToOffset,r=Object(a.a)(e,["eventToOffset"]);return Object(c.createElement)(qs,Object(o.a)({ref:t,stopNavigationEvents:!0,onlyBrowserTabstops:!0,eventToOffset:function(e){var t=e.keyCode,r=e.shiftKey;return pr.TAB===t?r?-1:1:n?n(e):void 0}},r))})),zd=Object(c.createContext)({activeItem:void 0,activeMenu:"root",setActiveMenu:s.noop,navigationTree:{items:{},getItem:s.noop,addItem:s.noop,removeItem:s.noop,menus:{},getMenu:s.noop,addMenu:s.noop,removeMenu:s.noop}}),Bd=function(){return Object(c.useContext)(zd)};var Hd=je("div",{target:"ejwewyf0",label:"NavigationUI"})("width:100%;background-color:",xe.darkGray.primary,";color:#f0f0f0;padding:0 8px;overflow:hidden;"),Vd=je("div",{target:"ejwewyf1",label:"MenuUI"})({name:"1wlvkgj",styles:"margin-top:24px;margin-bottom:24px;display:flex;flex-direction:column;ul{padding:0;margin:0;list-style:none;}.components-navigation__back-button{margin-bottom:24px;}"}),Kd=je(qr.a,{target:"ejwewyf2",label:"MenuBackButtonUI"})("&.is-tertiary{color:",xe.lightGray.ui,";&:hover:not(:disabled ){color:#ddd;box-shadow:none;}&:active:not(:disabled ){background:transparent;color:#ddd;}}"),Wd=je(Xt,{target:"ejwewyf3",label:"MenuTitleUI"})("padding:4px 0 4px 16px;margin-bottom:8px;color:",xe.gray[100],";"),Ud=je(Xt,{target:"ejwewyf4",label:"GroupTitleUI"})("margin-top:8px;padding:4px 0 4px 16px;text-transform:uppercase;color:",xe.gray[100],";"),Gd=je("li",{target:"ejwewyf5",label:"ItemUI"})("border-radius:2px;color:",xe.lightGray.ui,";button,a{margin:0;font-weight:400;font-size:14px;line-height:20px;padding-left:16px;padding-right:16px;width:100%;color:",xe.lightGray.ui,";&:hover,&:focus:not( [aria-disabled='true'] ):active,&:active:not( [aria-disabled='true'] ):active{color:#ddd;}}&.is-active{background-color:",Ne.theme,";color:",Ne.textDark,";button,a{color:",Ne.textDark,";}}svg path{color:",xe.lightGray.ui,";}"),$d=je("span",{target:"ejwewyf6",label:"ItemBadgeUI"})("margin-left:8px;display:inline-flex;padding:4px 12px;border-radius:2px;animation:fade-in 250ms ease-out;@keyframes fade-in{from{opacity:0;}to{opacity:1;}}",ze("animation"),";"),qd=je(Xt,{target:"ejwewyf7",label:"ItemTitleUI"})({name:"zs804i",styles:"margin-right:auto;text-align:left;"});function Yd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yd(Object(n),!0).forEach((function(t){Object(P.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Xd=function(){var e=Object(c.useState)({}),t=Object(i.a)(e,2),n=t[0],r=t[1];return{nodes:n,getNode:function(e){return n[e]},addNode:function(e,t){return r((function(n){return Zd(Zd({},n),{},Object(P.a)({},e,Object(s.omit)(t,"children")))}))},removeNode:function(e){return r((function(t){return Object(s.omit)(t,e)}))}}};function Jd(e){var t,n,r,o,a,u,d=e.activeItem,f=e.activeMenu,p=void 0===f?"root":f,b=e.children,h=e.className,v=e.onActivateMenu,m=void 0===v?s.noop:v,y=Object(c.useState)(p),g=Object(i.a)(y,2),O=g[0],j=g[1],w=Object(c.useState)(),k=Object(i.a)(w,2),_=k[0],S=k[1],E=(t=Xd(),n=t.nodes,r=t.getNode,o=t.addNode,a=t.removeNode,u=Xd(),{items:n,getItem:r,addItem:o,removeItem:a,menus:u.nodes,getMenu:u.getNode,addMenu:u.addNode,removeMenu:u.removeNode}),x=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"left";E.getMenu(e)&&(S(t),j(e),m(e))},C=Object(c.useRef)(!1);Object(c.useEffect)((function(){C.current||(C.current=!0)}),[]),Object(c.useEffect)((function(){p!==O&&x(p)}),[p]);var D={activeItem:d,activeMenu:O,setActiveMenu:x,navigationTree:E},M=l()("components-navigation",h);return Object(c.createElement)(Hd,{className:M},Object(c.createElement)(ut.a,{key:O,type:"slide-in",options:{origin:_}},(function(e){var t=e.className;return Object(c.createElement)("div",{className:l()(Object(P.a)({},t,C.current&&_))},Object(c.createElement)(zd.Provider,{value:D},b))})))}var Qd=n(215);var ef=Object(c.forwardRef)((function(e,t){var n,r=e.backButtonLabel,o=e.className,i=e.href,a=e.onClick,s=e.parentMenu,u=Bd(),d=u.setActiveMenu,f=u.navigationTree,p=l()("components-navigation__back-button",o),b=null===(n=f.getMenu(s))||void 0===n?void 0:n.title;return Object(c.createElement)(Kd,{className:p,href:i,isTertiary:!0,ref:t,onClick:function(e){"function"==typeof a&&a(e),s&&!e.defaultPrevented&&d(s,"right")}},Object(c.createElement)(Qi.a,{icon:Qd.a}),r||b||Object(S.__)("Back"))})),tf=Object(c.createContext)({menu:void 0,isActive:!1}),nf=function(){return Object(c.useContext)(tf)};function rf(e){var t=e.children,n=e.className,r=e.title;if(!nf().isActive)return t;var o=l()("components-navigation__group",n);return Object(c.createElement)("li",{className:o},r&&Object(c.createElement)(Ud,{as:"h3",className:"components-navigation__group-title",variant:"caption"},r),Object(c.createElement)("ul",null,t))}var of=n(214);function af(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?af(Object(n),!0).forEach((function(t){Object(P.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):af(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sf(e){var t=e.badge,n=e.children,r=e.className,i=e.href,u=e.item,d=e.navigateToMenu,f=e.onClick,p=void 0===f?s.noop:f,b=e.title,h=Object(a.a)(e,["badge","children","className","href","item","navigateToMenu","onClick","title"]);!function(e){var t=Bd().navigationTree,n=t.addItem,r=t.removeItem,o=nf().menu,i=e.item;Object(c.useEffect)((function(){return n(i,cf(cf({},e),{},{menu:o})),function(){r(i)}}),[])}(e);var v=Bd(),m=v.activeItem,y=v.setActiveMenu;if(!nf().isActive)return null;var g=l()("components-navigation__item",r,{"is-active":u&&m===u});return Object(c.createElement)(Gd,{className:g},n||Object(c.createElement)(qr.a,Object(o.a)({href:i,onClick:function(e){d&&y(d),p(e)}},h),b&&Object(c.createElement)(qd,{className:"components-navigation__item-title",variant:"body.small",as:"span"},b),t&&Object(c.createElement)($d,{className:"components-navigation__item-badge"},t),d&&Object(c.createElement)(Qi.a,{icon:of.a})))}function uf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uf(Object(n),!0).forEach((function(t){Object(P.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function df(e){var t=e.backButtonLabel,n=e.children,r=e.className,o=e.menu,i=void 0===o?"root":o,a=e.parentMenu,s=e.title,u=e.onBackButtonClick;!function(e){var t=Bd().navigationTree,n=t.addMenu,r=t.removeMenu,o=e.menu||"root";Object(c.useEffect)((function(){return n(o,lf(lf({},e),{},{menu:o})),function(){r(o)}}),[])}(e);var d=Bd().activeMenu===i,f=l()("components-navigation__menu",r),p={menu:i,isActive:d};return d?Object(c.createElement)(tf.Provider,{value:p},Object(c.createElement)(Vd,{className:f},(a||u)&&Object(c.createElement)(ef,{backButtonLabel:t,parentMenu:a,onClick:u}),s&&Object(c.createElement)(Wd,{as:"h2",className:"components-navigation__menu-title",variant:"subtitle"},s),Object(c.createElement)("ul",null,n))):Object(c.createElement)(tf.Provider,{value:p},n)}var ff=function(e){var t=e.className,n=e.status,r=void 0===n?"info":n,o=e.children,i=e.spokenMessage,a=void 0===i?o:i,u=e.onRemove,d=void 0===u?s.noop:u,f=e.isDismissible,p=void 0===f||f,b=e.actions,h=void 0===b?[]:b,v=e.politeness,m=void 0===v?function(e){switch(e){case"success":case"warning":case"info":return"polite";case"error":default:return"assertive"}}(r):v,y=e.__unstableHTML;!function(e,t){var n="string"==typeof e?e:Object(c.renderToString)(e);Object(c.useEffect)((function(){n&&Object(Zr.speak)(n,t)}),[n,t])}(a,m);var g=l()(t,"components-notice","is-"+r,{"is-dismissible":p});return y&&(o=Object(c.createElement)(c.RawHTML,null,o)),Object(c.createElement)("div",{className:g},Object(c.createElement)("div",{className:"components-notice__content"},o,h.map((function(e,t){var n=e.className,r=e.label,o=e.isPrimary,i=e.noDefaultClasses,a=void 0!==i&&i,s=e.onClick,u=e.url;return Object(c.createElement)(qr.a,{key:t,href:u,isPrimary:o,isSecondary:!a&&!u,isLink:!a&&!!u,onClick:u?void 0:s,className:l()("components-notice__action",n)},r)}))),p&&Object(c.createElement)(qr.a,{className:"components-notice__dismiss",icon:oa.a,label:Object(S.__)("Dismiss this notice"),onClick:d,showTooltip:!1}))};var pf=function(e){var t=e.notices,n=e.onRemove,r=void 0===n?s.noop:n,i=e.className,a=e.children;return i=l()("components-notice-list",i),Object(c.createElement)("div",{className:i},a,Object(Gr.a)(t).reverse().map((function(e){return Object(c.createElement)(ff,Object(o.a)({},Object(s.omit)(e,["content"]),{key:e.id,onRemove:(t=e.id,function(){return r(t)})}),e.content);var t})))};var bf=function(e){var t=e.label,n=e.children;return Object(c.createElement)("div",{className:"components-panel__header"},t&&Object(c.createElement)("h2",null,t),n)};var hf=Object(c.forwardRef)((function(e,t){var n=e.header,r=e.className,o=e.children,i=l()(r,"components-panel");return Object(c.createElement)("div",{className:i,ref:t},n&&Object(c.createElement)(bf,{label:n}),o)}));var vf=function(e){return function(t){e.forEach((function(e){"function"==typeof e?e(t):null!=e&&(e.current=t)}))}};var mf=Object(c.forwardRef)((function(e,t){var n=e.isOpened,r=e.icon,i=e.title,s=Object(a.a)(e,["isOpened","icon","title"]);return i?Object(c.createElement)("h2",{className:"components-panel__body-title"},Object(c.createElement)(qr.a,Object(o.a)({className:"components-panel__body-toggle","aria-expanded":n,ref:t},s),Object(c.createElement)("span",{"aria-hidden":"true"},Object(c.createElement)(fs.a,{className:"components-panel__arrow",icon:n?ia.a:aa.a})),i,r&&Object(c.createElement)(fs.a,{icon:r,className:"components-panel__icon",size:20}))):null})),yf=Object(c.forwardRef)((function(e,t){var n=e.children,r=e.className,o=e.icon,a=e.initialOpen,u=e.onToggle,d=void 0===u?s.noop:u,f=e.opened,p=e.title,b=e.scrollAfterOpen,h=void 0===b||b,v=yo(f,{initial:void 0===a||a}),m=Object(i.a)(v,2),y=m[0],g=m[1],O=Object(c.useRef)(),j=Object(E.useReducedMotion)()?"auto":"smooth",w=Object(c.useRef)();w.current=h,Er((function(){var e;y&&w.current&&(null===(e=O.current)||void 0===e?void 0:e.scrollIntoView)&&O.current.scrollIntoView({inline:"nearest",block:"nearest",behavior:j})}),[y,j]);var k=l()("components-panel__body",r,{"is-opened":y});return Object(c.createElement)("div",{className:k,ref:vf([O,t])},Object(c.createElement)(mf,{icon:o,isOpened:y,onClick:function(e){e.preventDefault();var t=!y;g(t),d(t)},title:p}),"function"==typeof n?n({opened:y}):y&&n)}));yf.displayName="PanelBody";var gf=yf;var Of=function(e){var t=e.className,n=e.children,r=l()("components-panel__row",t);return Object(c.createElement)("div",{className:r},n)};var jf=function(e){var t,n=e.icon,r=e.children,s=e.label,u=e.instructions,d=e.className,f=e.notices,p=e.preview,b=e.isColumnLayout,h=Object(a.a)(e,["icon","children","label","instructions","className","notices","preview","isColumnLayout"]),v=Object(E.useResizeObserver)(),m=Object(i.a)(v,2),y=m[0],g=m[1].width;"number"==typeof g&&(t={"is-large":g>=320,"is-medium":g>=160&&g<320,"is-small":g<160});var O=l()("components-placeholder",d,t),j=l()("components-placeholder__fieldset",{"is-column-layout":b});return Object(c.createElement)("div",Object(o.a)({},h,{className:O}),y,f,p&&Object(c.createElement)("div",{className:"components-placeholder__preview"},p),Object(c.createElement)("div",{className:"components-placeholder__label"},Object(c.createElement)(fs.a,{icon:n}),s),!!u&&Object(c.createElement)("div",{className:"components-placeholder__instructions"},u),Object(c.createElement)("div",{className:j},r))};function wf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wf(Object(n),!0).forEach((function(t){Object(P.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _f(e){var t=e.map((function(e){return kf({children:[],parent:null},e)})),n=Object(s.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 kf(kf({},t),{},{children:r&&r.length?e(r):[]})}))}(n[0]||[])}function Sf(e){var t=e.label,n=e.noOptionLabel,r=e.onChange,i=e.selectedId,u=e.tree,l=Object(a.a)(e,["label","noOptionLabel","onChange","selectedId","tree"]),d=Object(s.compact)([n&&{value:"",label:n}].concat(Object(Gr.a)(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object(s.flatMap)(t,(function(t){return[{value:t.id,label:Object(s.repeat)(" ",3*n)+Object(s.unescape)(t.name)}].concat(Object(Gr.a)(e(t.children||[],n+1)))}))}(u))));return Object(c.createElement)(vs,Object(o.a)({label:t,options:d,onChange:r},{value:i},l))}function Ef(e){var t=e.label,n=e.noOptionLabel,r=e.categoriesList,i=e.selectedCategoryId,s=e.onChange,u=Object(a.a)(e,["label","noOptionLabel","categoriesList","selectedCategoryId","onChange"]),l=_f(r);return Object(c.createElement)(Sf,Object(o.a)({label:t,noOptionLabel:n,onChange:s},{tree:l,selectedId:i},u))}function xf(e){var t=e.label,n=e.noOptionLabel,r=e.authorList,i=e.selectedAuthorId,a=e.onChange;if(!r)return null;var s=_f(r);return Object(c.createElement)(Sf,Object(o.a)({label:t,noOptionLabel:n,onChange:a},{tree:s,selectedId:i}))}function Cf(e){var t=e.authorList,n=e.selectedAuthorId,r=e.categoriesList,o=e.selectedCategoryId,a=e.categorySuggestions,s=e.selectedCategories,u=e.numberOfItems,l=e.order,d=e.orderBy,f=e.maxItems,p=void 0===f?100:f,b=e.minItems,h=void 0===b?1:b,v=e.onCategoryChange,m=e.onAuthorChange,y=e.onNumberOfItemsChange,g=e.onOrderChange,O=e.onOrderByChange;return[g&&O&&Object(c.createElement)(vs,{key:"query-controls-order-select",label:Object(S.__)("Order by"),value:"".concat(d,"/").concat(l),options:[{label:Object(S.__)("Newest to oldest"),value:"date/desc"},{label:Object(S.__)("Oldest to newest"),value:"date/asc"},{label:Object(S.__)("A → Z"),value:"title/asc"},{label:Object(S.__)("Z → A"),value:"title/desc"}],onChange:function(e){var t=e.split("/"),n=Object(i.a)(t,2),r=n[0],o=n[1];o!==l&&g(o),r!==d&&O(r)}}),r&&v&&Object(c.createElement)(Ef,{key:"query-controls-category-select",categoriesList:r,label:Object(S.__)("Category"),noOptionLabel:Object(S.__)("All"),selectedCategoryId:o,onChange:v}),a&&v&&Object(c.createElement)(Cl,{key:"query-controls-categories-select",label:Object(S.__)("Categories"),value:s&&s.map((function(e){return{id:e.id,value:e.name||e.value}})),suggestions:Object.keys(a),onChange:v,maxSuggestions:20}),m&&Object(c.createElement)(xf,{key:"query-controls-author-select",authorList:t,label:Object(S.__)("Author"),noOptionLabel:Object(S.__)("All"),selectedAuthorId:n,onChange:m}),y&&Object(c.createElement)(hl,{key:"query-controls-range-control",label:Object(S.__)("Number of items"),value:u,onChange:y,min:h,max:p,required:!0})]}n(81);var Pf=n(48),Df=n(126),Mf=(n(108),n(62));function Tf(e){void 0===e&&(e={});var t=Object(Mf.a)(e),n=t.state,r=t.loop,o=void 0===r||r,i=Object(p.a)(t,["state","loop"]),a=Object(v.useState)(n),c=a[0],s=a[1],u=Object(d.g)(Object(p.b)(Object(p.b)({},i),{},{loop:o}));return Object(p.b)(Object(p.b)({},u),{},{state:c,setState:s})}var If=[].concat(d.g.__keys,["state","setState"]);function Rf(e){return void 0!==e.checked?e.checked:void 0!==e.value&&e.state===e.value}function Nf(e,t){var n=Object(Df.a)(e,"change");Object.defineProperties(n,{type:{value:"change"},target:{value:e},currentTarget:{value:e}}),null==t||t(n)}Tf.__keys=If;var Af=Object(h.a)({name:"Radio",compose:x.b,useState:Tf,keys:["value","checked","unstable_checkOnFocus"],useOptions:function(e,t){var n,r=t.value,o=t.checked,i=e.unstable_clickOnEnter,a=void 0!==i&&i,c=e.unstable_checkOnFocus,s=void 0===c||c,u=Object(p.a)(e,["unstable_clickOnEnter","unstable_checkOnFocus"]);return Object(p.b)(Object(p.b)({checked:o,unstable_clickOnEnter:a,unstable_checkOnFocus:s},u),{},{value:null!=(n=u.value)?n:r})},useProps:function(e,t){var n=t.ref,r=t.onChange,o=t.onClick,i=Object(p.a)(t,["ref","onChange","onClick"]),a=Object(v.useRef)(null),c=Object(v.useState)(!0),s=c[0],u=c[1],l=Rf(e),d=Object(Pf.a)(e.currentId===e.id),f=Object(Pf.a)(r),b=Object(Pf.a)(o);!function(e){var t=Object(v.useState)((function(){return Rf(e)}))[0],n=Object(v.useState)(e.currentId)[0],r=e.id,o=e.setCurrentId;Object(v.useEffect)((function(){t&&r&&n!==r&&(null==o||o(r))}),[t,r,o,n])}(e),Object(v.useEffect)((function(){var e=a.current;e&&("INPUT"===e.tagName&&"radio"===e.type||u(!1))}),[]);var h=Object(v.useCallback)((function(t){var n,r;null===(n=f.current)||void 0===n||n.call(f,t),t.defaultPrevented||e.disabled||null===(r=e.setState)||void 0===r||r.call(e,e.value)}),[e.disabled,e.setState,e.value]),m=Object(v.useCallback)((function(e){var t;null===(t=b.current)||void 0===t||t.call(b,e),e.defaultPrevented||Nf(e.currentTarget,h)}),[h]);return Object(v.useEffect)((function(){var t=a.current;t&&e.unstable_moves&&d.current&&e.unstable_checkOnFocus&&Nf(t,h)}),[e.unstable_moves,e.unstable_checkOnFocus,h]),Object(p.b)({ref:Object(y.a)(a,n),role:s?void 0:"radio",type:s?"radio":void 0,value:s?e.value:void 0,"aria-checked":l,checked:l,onChange:h,onClick:m},i)}}),Lf=Object(b.a)({as:"input",memo:!0,useHook:Af}),Ff=Object(c.createContext)({state:null,setState:function(){}});var zf=Object(c.forwardRef)((function(e,t){var n=e.children,r=e.value,i=Object(a.a)(e,["children","value"]),s=Object(c.useContext)(Ff),u=s.state===r;return Object(c.createElement)(Lf,Object(o.a)({ref:t,as:qr.a,isPrimary:u,isSecondary:!u,value:r},s,i),n||r)})),Bf=n(79),Hf=Object(h.a)({name:"RadioGroup",compose:f.b,useState:Tf,useProps:function(e,t){return Object(p.b)({role:"radiogroup"},t)}}),Vf=Object(b.a)({as:"div",useHook:Hf,useCreateElement:function(e,t,n){return Object(Bf.a)(e,t,n)}});function Kf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kf(Object(n),!0).forEach((function(t){Object(P.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Uf=Object(c.forwardRef)((function(e,t){var n=e.label,r=e.checked,i=e.defaultChecked,s=e.disabled,u=e.onChange,l=Object(a.a)(e,["label","checked","defaultChecked","disabled","onChange"]),d=Tf({state:i,baseId:l.id}),f=Wf(Wf({},d),{},{disabled:s,state:r||d.state,setState:u||d.setState});return Object(c.createElement)(Ff.Provider,{value:f},Object(c.createElement)(Vf,Object(o.a)({ref:t,as:ji,"aria-label":n},d,l)))}));function Gf(e){var t=e.label,n=e.className,r=e.selected,o=e.help,i=e.onChange,a=e.options,u=void 0===a?[]:a,d=Object(E.useInstanceId)(Gf),f="inspector-radio-control-".concat(d),p=function(e){return i(e.target.value)};return!Object(s.isEmpty)(u)&&Object(c.createElement)(yt,{label:t,id:f,help:o,className:l()(n,"components-radio-control")},u.map((function(e,t){return Object(c.createElement)("div",{key:"".concat(f,"-").concat(t),className:"components-radio-control__option"},Object(c.createElement)("input",{id:"".concat(f,"-").concat(t),className:"components-radio-control__input",type:"radio",name:f,value:e.value,onChange:p,checked:e.value===r,"aria-describedby":o?"".concat(f,"__help"):void 0}),Object(c.createElement)("label",{htmlFor:"".concat(f,"-").concat(t)},e.label))})))}var $f,qf=($f=function(e,t){return($f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}$f(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Yf=function(){return(Yf=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Zf={top:{width:"100%",height:"10px",top:"-5px",left:"0px",cursor:"row-resize"},right:{width:"10px",height:"100%",top:"0px",right:"-5px",cursor:"col-resize"},bottom:{width:"100%",height:"10px",bottom:"-5px",left:"0px",cursor:"row-resize"},left:{width:"10px",height:"100%",top:"0px",left:"-5px",cursor:"col-resize"},topRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",top:"-10px",cursor:"ne-resize"},bottomRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",bottom:"-10px",cursor:"se-resize"},bottomLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",bottom:"-10px",cursor:"sw-resize"},topLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",top:"-10px",cursor:"nw-resize"}},Xf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){t.props.onResizeStart(e,t.props.direction)},t.onTouchStart=function(e){t.props.onResizeStart(e,t.props.direction)},t}return qf(t,e),t.prototype.render=function(){return v.createElement("div",{className:this.props.className||"",style:Yf(Yf({position:"absolute",userSelect:"none"},Zf[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(v.PureComponent),Jf=n(119),Qf=n.n(Jf),ep=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),tp=function(){return(tp=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},np={width:"auto",height:"auto"},rp=Qf()((function(e,t,n){return Math.max(Math.min(e,n),t)})),op=Qf()((function(e,t){return Math.round(e/t)*t})),ip=Qf()((function(e,t){return new RegExp(e,"i").test(t)})),ap=function(e){return Boolean(e.touches&&e.touches.length)},cp=Qf()((function(e,t,n){void 0===n&&(n=0);var r=t.reduce((function(n,r,o){return Math.abs(r-e)<Math.abs(t[n]-e)?o:n}),0),o=Math.abs(t[r]-e);return 0===n||o<n?t[r]:e})),sp=Qf()((function(e,t){return e.substr(e.length-t.length,t.length)===t})),up=Qf()((function(e){return"auto"===(e=e.toString())||sp(e,"px")||sp(e,"%")||sp(e,"vh")||sp(e,"vw")||sp(e,"vmax")||sp(e,"vmin")?e:e+"px"})),lp=function(e,t,n,r){if(e&&"string"==typeof e){if(sp(e,"px"))return Number(e.replace("px",""));if(sp(e,"%"))return t*(Number(e.replace("%",""))/100);if(sp(e,"vw"))return n*(Number(e.replace("vw",""))/100);if(sp(e,"vh"))return r*(Number(e.replace("vh",""))/100)}return e},dp=Qf()((function(e,t,n,r,o,i,a){return r=lp(r,e.width,t,n),o=lp(o,e.height,t,n),i=lp(i,e.width,t,n),a=lp(a,e.height,t,n),{maxWidth:void 0===r?void 0:Number(r),maxHeight:void 0===o?void 0:Number(o),minWidth:void 0===i?void 0:Number(i),minHeight:void 0===a?void 0:Number(a)}})),fp=["as","style","className","grid","snap","bounds","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],pp=function(e){function t(t){var n=e.call(this,t)||this;return n.ratio=1,n.resizable=null,n.parentLeft=0,n.parentTop=0,n.resizableLeft=0,n.resizableTop=0,n.targetLeft=0,n.targetTop=0,n.appendBase=function(){if(!n.resizable||!n.window)return null;var e=n.parentNode;if(!e)return null;var t=n.window.document.createElement("div");return t.style.width="100%",t.style.height="100%",t.style.position="absolute",t.style.transform="scale(0, 0)",t.style.left="0",t.style.flex="0",t.classList?t.classList.add("__resizable_base__"):t.className+="__resizable_base__",e.appendChild(t),t},n.removeBase=function(e){var t=n.parentNode;t&&t.removeChild(e)},n.ref=function(e){e&&(n.resizable=e)},n.state={isResizing:!1,width:void 0===(n.propsSize&&n.propsSize.width)?"auto":n.propsSize&&n.propsSize.width,height:void 0===(n.propsSize&&n.propsSize.height)?"auto":n.propsSize&&n.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},n.onResizeStart=n.onResizeStart.bind(n),n.onMouseMove=n.onMouseMove.bind(n),n.onMouseUp=n.onMouseUp.bind(n),n}return ep(t,e),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return this.resizable&&this.resizable.ownerDocument?this.resizable.ownerDocument.defaultView:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||np},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var e=0,t=0;if(this.resizable&&this.window){var n=this.resizable.offsetWidth,r=this.resizable.offsetHeight,o=this.resizable.style.position;"relative"!==o&&(this.resizable.style.position="relative"),e="auto"!==this.resizable.style.width?this.resizable.offsetWidth:n,t="auto"!==this.resizable.style.height?this.resizable.offsetHeight:r,this.resizable.style.position=o}return{width:e,height:t}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var e=this,t=this.props.size,n=function(t){if(void 0===e.state[t]||"auto"===e.state[t])return"auto";if(e.propsSize&&e.propsSize[t]&&sp(e.propsSize[t].toString(),"%")){if(sp(e.state[t].toString(),"%"))return e.state[t].toString();var n=e.getParentSize();return Number(e.state[t].toString().replace("px",""))/n[t]*100+"%"}return up(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?up(t.width):n("width"),height:t&&void 0!==t.height&&!this.state.isResizing?up(t.height):n("height")}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var e=this.appendBase();if(!e)return{width:0,height:0};var t=!1,n=this.parentNode.style.flexWrap;"wrap"!==n&&(t=!0,this.parentNode.style.flexWrap="wrap"),e.style.position="relative",e.style.minWidth="100%";var r={width:e.offsetWidth,height:e.offsetHeight};return t&&(this.parentNode.style.flexWrap=n),this.removeBase(e),r},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(this.resizable&&this.window){var e=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:"auto"!==e.flexBasis?e.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(e,t){var n=this.propsSize&&this.propsSize[t];return"auto"!==this.state[t]||this.state.original[t]!==e||void 0!==n&&"auto"!==n?e:"auto"},t.prototype.calculateNewMaxFromBoundary=function(e,t){if("parent"===this.props.bounds){var n=this.parentNode;if(n){var r=n.offsetWidth+(this.parentLeft-this.resizableLeft),o=n.offsetHeight+(this.parentTop-this.resizableTop);e=e&&e<r?e:r,t=t&&t<o?t:o}}else if("window"===this.props.bounds){if(this.window){r=this.window.innerWidth-this.resizableLeft,o=this.window.innerHeight-this.resizableTop;e=e&&e<r?e:r,t=t&&t<o?t:o}}else if(this.props.bounds){r=this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),o=this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop);e=e&&e<r?e:r,t=t&&t<o?t:o}return{maxWidth:e,maxHeight:t}},t.prototype.calculateNewSizeFromDirection=function(e,t){var n=this.props.scale||1,r=this.props.resizeRatio||1,o=this.state,i=o.direction,a=o.original,c=this.props,s=c.lockAspectRatio,u=c.lockAspectRatioExtraHeight,l=c.lockAspectRatioExtraWidth,d=a.width,f=a.height,p=u||0,b=l||0;return ip("right",i)&&(d=a.width+(e-a.x)*r/n,s&&(f=(d-b)/this.ratio+p)),ip("left",i)&&(d=a.width-(e-a.x)*r/n,s&&(f=(d-b)/this.ratio+p)),ip("bottom",i)&&(f=a.height+(t-a.y)*r/n,s&&(d=(f-p)*this.ratio+b)),ip("top",i)&&(f=a.height-(t-a.y)*r/n,s&&(d=(f-p)*this.ratio+b)),{newWidth:d,newHeight:f}},t.prototype.calculateNewSizeFromAspectRatio=function(e,t,n,r){var o=this.props,i=o.lockAspectRatio,a=o.lockAspectRatioExtraHeight,c=o.lockAspectRatioExtraWidth,s=void 0===r.width?10:r.width,u=void 0===n.width||n.width<0?e:n.width,l=void 0===r.height?10:r.height,d=void 0===n.height||n.height<0?t:n.height,f=a||0,p=c||0;if(i){var b=(l-f)*this.ratio+p,h=(d-f)*this.ratio+p,v=(s-p)/this.ratio+f,m=(u-p)/this.ratio+f,y=Math.max(s,b),g=Math.min(u,h),O=Math.max(l,v),j=Math.min(d,m);e=rp(e,y,g),t=rp(t,O,j)}else e=rp(e,s,u),t=rp(t,l,d);return{newWidth:e,newHeight:t}},t.prototype.setBoundingClientRect=function(){if("parent"===this.props.bounds){var e=this.parentNode;if(e){var t=e.getBoundingClientRect();this.parentLeft=t.left,this.parentTop=t.top}}if(this.props.bounds&&"string"!=typeof this.props.bounds){var n=this.props.bounds.getBoundingClientRect();this.targetLeft=n.left,this.targetTop=n.top}if(this.resizable){var r=this.resizable.getBoundingClientRect(),o=r.left,i=r.top;this.resizableLeft=o,this.resizableTop=i}},t.prototype.onResizeStart=function(e,t){if(this.resizable&&this.window){var n,r=0,o=0;if(e.nativeEvent&&function(e){return Boolean((e.clientX||0===e.clientX)&&(e.clientY||0===e.clientY))}(e.nativeEvent)){if(r=e.nativeEvent.clientX,o=e.nativeEvent.clientY,3===e.nativeEvent.which)return}else e.nativeEvent&&ap(e.nativeEvent)&&(r=e.nativeEvent.touches[0].clientX,o=e.nativeEvent.touches[0].clientY);if(this.props.onResizeStart)if(this.resizable)if(!1===this.props.onResizeStart(e,t,this.resizable))return;this.props.size&&(void 0!==this.props.size.height&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),void 0!==this.props.size.width&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio="number"==typeof this.props.lockAspectRatio?this.props.lockAspectRatio:this.size.width/this.size.height;var i=this.window.getComputedStyle(this.resizable);if("auto"!==i.flexBasis){var a=this.parentNode;if(a){var c=this.window.getComputedStyle(a).flexDirection;this.flexDir=c.startsWith("row")?"row":"column",n=i.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var s={original:{x:r,y:o,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:tp(tp({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(e.target).cursor||"auto"}),direction:t,flexBasis:n};this.setState(s)}},t.prototype.onMouseMove=function(e){if(this.state.isResizing&&this.resizable&&this.window){if(this.window.TouchEvent&&ap(e))try{e.preventDefault(),e.stopPropagation()}catch(e){}var t=this.props,n=t.maxWidth,r=t.maxHeight,o=t.minWidth,i=t.minHeight,a=ap(e)?e.touches[0].clientX:e.clientX,c=ap(e)?e.touches[0].clientY:e.clientY,s=this.state,u=s.direction,l=s.original,d=s.width,f=s.height,p=this.getParentSize(),b=dp(p,this.window.innerWidth,this.window.innerHeight,n,r,o,i);n=b.maxWidth,r=b.maxHeight,o=b.minWidth,i=b.minHeight;var h=this.calculateNewSizeFromDirection(a,c),v=h.newHeight,m=h.newWidth,y=this.calculateNewMaxFromBoundary(n,r),g=this.calculateNewSizeFromAspectRatio(m,v,{width:y.maxWidth,height:y.maxHeight},{width:o,height:i});if(m=g.newWidth,v=g.newHeight,this.props.grid){var O=op(m,this.props.grid[0]),j=op(v,this.props.grid[1]),w=this.props.snapGap||0;m=0===w||Math.abs(O-m)<=w?O:m,v=0===w||Math.abs(j-v)<=w?j:v}this.props.snap&&this.props.snap.x&&(m=cp(m,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(v=cp(v,this.props.snap.y,this.props.snapGap));var k={width:m-l.width,height:v-l.height};if(d&&"string"==typeof d)if(sp(d,"%"))m=m/p.width*100+"%";else if(sp(d,"vw")){m=m/this.window.innerWidth*100+"vw"}else if(sp(d,"vh")){m=m/this.window.innerHeight*100+"vh"}if(f&&"string"==typeof f)if(sp(f,"%"))v=v/p.height*100+"%";else if(sp(f,"vw")){v=v/this.window.innerWidth*100+"vw"}else if(sp(f,"vh")){v=v/this.window.innerHeight*100+"vh"}var _={width:this.createSizeForCssProperty(m,"width"),height:this.createSizeForCssProperty(v,"height")};"row"===this.flexDir?_.flexBasis=_.width:"column"===this.flexDir&&(_.flexBasis=_.height),this.setState(_),this.props.onResize&&this.props.onResize(e,u,this.resizable,k)}},t.prototype.onMouseUp=function(e){var t=this.state,n=t.isResizing,r=t.direction,o=t.original;if(n&&this.resizable){var i={width:this.size.width-o.width,height:this.size.height-o.height};this.props.onResizeStop&&this.props.onResizeStop(e,r,this.resizable,i),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:tp(tp({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(e){this.setState({width:e.width,height:e.height})},t.prototype.renderResizer=function(){var e=this,t=this.props,n=t.enable,r=t.handleStyles,o=t.handleClasses,i=t.handleWrapperStyle,a=t.handleWrapperClass,c=t.handleComponent;if(!n)return null;var s=Object.keys(n).map((function(t){return!1!==n[t]?v.createElement(Xf,{key:t,direction:t,onResizeStart:e.onResizeStart,replaceStyles:r&&r[t],className:o&&o[t]},c&&c[t]?c[t]:null):null}));return v.createElement("span",{className:a,style:i},s)},t.prototype.render=function(){var e=this,t=Object.keys(this.props).reduce((function(t,n){return-1!==fp.indexOf(n)||(t[n]=e.props[n]),t}),{}),n=tp(tp(tp({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(n.flexBasis=this.state.flexBasis);var r=this.props.as||"div";return v.createElement(r,tp({ref:this.ref,style:n,className:this.props.className},t),this.state.isResizing&&v.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(v.PureComponent),bp=n(152),hp=n.n(bp),vp=window,mp=vp.clearTimeout,yp=vp.setTimeout,gp="bottom",Op="corner";function jp(e){var t=e.axis,n=e.fadeTimeout,r=void 0===n?180:n,o=e.onResize,a=void 0===o?s.noop:o,u=e.position,l=void 0===u?gp:u,d=e.showPx,f=void 0!==d&&d,p=hp()(),b=Object(i.a)(p,2),h=b[0],v=b[1],m=!!t,y=Object(c.useState)(!1),g=Object(i.a)(y,2),O=g[0],j=g[1],w=Object(c.useState)(!1),k=Object(i.a)(w,2),_=k[0],S=k[1],E=Object(c.useRef)(D),x=Object(c.useRef)(P),C=Object(c.useRef)(),P=v.width,D=v.height,M=function(){m||(j(!1),S(!1))};return Object(c.useEffect)((function(){if(null!==P||null!==D){var e=P!==x.current,t=D!==E.current;if(e||t){if(P&&!x.current&&D&&!E.current)return x.current=P,void(E.current=D);e&&(j(!0),x.current=P),t&&(S(!0),E.current=D),a({width:P,height:D}),C.current&&mp(C.current),C.current=yp(M,r)}}}),[P,D]),{label:function(e){var t=e.axis,n=e.height,r=e.moveX,o=void 0!==r&&r,i=e.moveY,a=void 0!==i&&i,c=e.position,s=void 0===c?gp:c,u=e.showPx,l=void 0!==u&&u,d=e.width;if(!o&&!a)return null;if(s===Op)return"".concat(d," x ").concat(n);var f=l?" px":"";if(t){if("x"===t&&o)return"".concat(d).concat(f);if("y"===t&&a)return"".concat(n).concat(f)}if(o&&a)return"".concat(d," x ").concat(n);if(o)return"".concat(d).concat(f);if(a)return"".concat(n).concat(f);return null}({axis:t,height:D,moveX:O,moveY:_,position:l,showPx:f,width:P}),resizeListener:h}}var wp=je("div",{target:"ekdag500",label:"Root"})({name:"mt2ez5",styles:"bottom:0;box-sizing:border-box;left:0;pointer-events:none;position:absolute;right:0;top:0;"}),kp=je("div",{target:"ekdag501",label:"TooltipWrapper"})({name:"1kllayo",styles:"align-items:center;box-sizing:border-box;display:inline-flex;justify-content:center;opacity:0;pointer-events:none;transition:opacity 120ms linear;"}),_p=je("div",{target:"ekdag502",label:"Tooltip"})("background:",Fe("ui.border"),";border-radius:2px;box-sizing:border-box;font-size:12px;color:",Fe("ui.textDark"),";padding:4px 8px;position:relative;"),Sp=je(Xt,{target:"ekdag503",label:"LabelText"})("&&&{",Zt,";display:block;font-size:13px;line-height:1.4;}");function Ep(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ep(Object(n),!0).forEach((function(t){Object(P.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ep(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Cp=Object(c.forwardRef)((function(e,t){var n=e.label,r=e.position,i=void 0===r?Op:r,s=e.zIndex,u=void 0===s?1e3:s,l=Object(a.a)(e,["label","position","zIndex"]),d=Qe(),f=!!n,p=i===Op;if(!f)return null;var b={opacity:f?1:null,zIndex:u},h={};return i===gp&&(b=xp(xp({},b),{},{position:"absolute",bottom:-10,left:"50%",transform:"translate(-50%, 0)"}),h={transform:"translate(0, 100%)"}),p&&(b=xp(xp({},b),{},{position:"absolute",top:4,right:d?null:4,left:d?4:null})),Object(c.createElement)(kp,Object(o.a)({"aria-hidden":"true",className:"components-resizable-tooltip__tooltip-wrapper",isActive:f,ref:t,style:b},l),Object(c.createElement)(_p,{className:"components-resizable-tooltip__tooltip",style:h},Object(c.createElement)(Sp,{as:"span"},n)))}));var Pp=Object(c.forwardRef)((function(e,t){var n=e.axis,r=e.className,i=e.fadeTimeout,u=void 0===i?180:i,d=e.isVisible,f=void 0===d||d,p=e.labelRef,b=e.onResize,h=void 0===b?s.noop:b,v=e.position,m=void 0===v?gp:v,y=e.showPx,g=void 0===y||y,O=e.zIndex,j=void 0===O?1e3:O,w=Object(a.a)(e,["axis","className","fadeTimeout","isVisible","labelRef","onResize","position","showPx","zIndex"]),k=jp({axis:n,fadeTimeout:u,onResize:h,showPx:g,position:m}),_=k.label,S=k.resizeListener;if(!f)return null;var E=l()("components-resize-tooltip",r);return Object(c.createElement)(wp,Object(o.a)({"aria-hidden":"true",className:E,ref:t},w),S,Object(c.createElement)(Cp,{"aria-hidden":w["aria-hidden"],fadeTimeout:u,isVisible:f,label:_,position:m,ref:p,zIndex:j}))}));var Dp=function(e){var t=e.className,n=e.children,r=e.showHandle,i=void 0===r||r,s=e.__experimentalShowTooltip,u=void 0!==s&&s,d=e.__experimentalTooltipProps,f=void 0===d?{}:d,p=Object(a.a)(e,["className","children","showHandle","__experimentalShowTooltip","__experimentalTooltipProps"]),b={width:null,height:null,top:null,right:null,bottom:null,left:null},h="components-resizable-box__handle",v="components-resizable-box__side-handle",m="components-resizable-box__corner-handle";return Object(c.createElement)(pp,Object(o.a)({className:l()("components-resizable-box__container",i&&"has-show-handle",t),handleClasses:{top:l()(h,v,"components-resizable-box__handle-top"),right:l()(h,v,"components-resizable-box__handle-right"),bottom:l()(h,v,"components-resizable-box__handle-bottom"),left:l()(h,v,"components-resizable-box__handle-left"),topLeft:l()(h,m,"components-resizable-box__handle-top","components-resizable-box__handle-left"),topRight:l()(h,m,"components-resizable-box__handle-top","components-resizable-box__handle-right"),bottomRight:l()(h,m,"components-resizable-box__handle-bottom","components-resizable-box__handle-right"),bottomLeft:l()(h,m,"components-resizable-box__handle-bottom","components-resizable-box__handle-left")},handleStyles:{top:b,right:b,bottom:b,left:b,topLeft:b,topRight:b,bottomRight:b,bottomLeft:b}},p),n,u&&Object(c.createElement)(Pp,f))};var Mp=function(e){var t=e.naturalWidth,n=e.naturalHeight,r=e.children,o=e.isInline,a=void 0!==o&&o,s=Object(E.useResizeObserver)(),u=Object(i.a)(s,2),d=u[0],f=u[1].width;if(1!==c.Children.count(r))return null;var p={paddingBottom:t<f?n:n/t*100+"%"},b=a?"span":"div";return Object(c.createElement)(b,{className:"components-responsive-wrapper"},d,Object(c.createElement)(b,{style:p}),Object(c.cloneElement)(r,{className:l()("components-responsive-wrapper__content",r.props.className)}))};function Tp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ha.a)(e);if(t){var o=Object(ha.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ba.a)(this,n)}}var Ip=function(e){Object(pa.a)(n,e);var t=Tp(n);function n(){var e;return Object(la.a)(this,n),(e=t.apply(this,arguments)).trySandbox=e.trySandbox.bind(Object(fa.a)(e)),e.checkMessageForResize=e.checkMessageForResize.bind(Object(fa.a)(e)),e.iframe=Object(c.createRef)(),e.state={width:0,height:0},e}return Object(da.a)(n,[{key:"componentDidMount",value:function(){var e=this;this.trySandbox(),this.trySandboxWithoutRerender=function(){e.trySandbox(!1)},this.iframe.current.addEventListener("load",this.trySandboxWithoutRerender,!1)}},{key:"componentDidUpdate",value:function(e){var t=e.html!==this.props.html;this.trySandbox(t)}},{key:"componentWillUnmount",value:function(){this.iframe.current.removeEventListener("load",this.trySandboxWithoutRerender)}},{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,i=r.width,a=r.height,c=this.state,s=c.width,u=c.height;"resize"!==o||s===i&&u===a||this.setState({width:i,height:a})}}},{key:"trySandbox",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.isFrameAccessible()){var t=this.iframe.current.contentDocument.body;if(e||null===t.getAttribute("data-resizable-iframe-connected")){var n="\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} )();",r="\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",o=Object(c.createElement)("html",{lang:document.documentElement.lang,className:this.props.type},Object(c.createElement)("head",null,Object(c.createElement)("title",null,this.props.title),Object(c.createElement)("style",{dangerouslySetInnerHTML:{__html:r}}),this.props.styles&&this.props.styles.map((function(e,t){return Object(c.createElement)("style",{key:t,dangerouslySetInnerHTML:{__html:e}})}))),Object(c.createElement)("body",{"data-resizable-iframe-connected":"data-resizable-iframe-connected",className:this.props.type},Object(c.createElement)("div",{dangerouslySetInnerHTML:{__html:this.props.html}}),Object(c.createElement)("script",{type:"text/javascript",dangerouslySetInnerHTML:{__html:n}}),this.props.scripts&&this.props.scripts.map((function(e){return Object(c.createElement)("script",{key:e,src:e})})))),i=this.iframe.current.contentWindow.document;i.open(),i.write("<!DOCTYPE html>"+Object(c.renderToString)(o)),i.close()}}}},{key:"render",value:function(){var e=this.props,t=e.title,n=e.onFocus;return Object(c.createElement)(Fu,{iframeRef:this.iframe,title:t,className:"components-sandbox",sandbox:"allow-scripts allow-same-origin allow-presentation",onFocus:n,width:Math.ceil(this.state.width),height:Math.ceil(this.state.height)})}}],[{key:"defaultProps",get:function(){return{html:"",title:""}}}]),n}(c.Component),Rp=Ip=Object(E.withGlobalEvents)({message:"checkMessageForResize"})(Ip),Np=n(167),Ap=n(20),Lp=n.n(Ap),Fp=n(45),zp=n(115);var Bp=function(e){var t=e.notices,n=e.className,r=e.children,a=e.onRemove,u=void 0===a?s.noop:a,d=Object(E.useReducedMotion)(),f=Object(c.useState)((function(){return new WeakMap})),p=Object(i.a)(f,1)[0],b=Object(zp.useTransition)(t,(function(e){return e.id}),{from:{opacity:0,height:0},enter:function(e){return function(){var t=Object(Fp.a)(Lp.a.mark((function t(n){return Lp.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n({opacity:1,height:p.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(Fp.a)(Lp.a.mark((function e(t){return Lp.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:d});n=l()("components-snackbar-list",n);var h=function(e){return function(){return u(e.id)}};return Object(c.createElement)("div",{className:n},r,b.map((function(e){var t=e.item,n=e.key,r=e.props;return Object(c.createElement)(zp.animated.div,{key:n,style:r},Object(c.createElement)("div",{className:"components-snackbar-list__notice-container",ref:function(e){return e&&p.set(t,e)}},Object(c.createElement)(Np.a,Object(o.a)({},Object(s.omit)(t,["content"]),{onRemove:h(t)}),t.content)))})))};function Hp(){return Object(c.createElement)("span",{className:"components-spinner"})}var Vp=function(e){var t=e.tabId,n=e.onClick,r=e.children,i=e.selected,s=Object(a.a)(e,["tabId","onClick","children","selected"]);return Object(c.createElement)(qr.a,Object(o.a)({role:"tab",tabIndex:i?null:-1,"aria-selected":i,id:t,onClick:n},s),r)};function Kp(e){var t,n=e.className,r=e.children,o=e.tabs,a=e.initialTabName,u=e.orientation,d=void 0===u?"horizontal":u,f=e.activeClass,p=void 0===f?"is-active":f,b=e.onSelect,h=void 0===b?s.noop:b,v=Object(E.useInstanceId)(Kp,"tab-panel"),m=Object(c.useState)(null),y=Object(i.a)(m,2),g=y[0],O=y[1],j=function(e){O(e),h(e)},w=Object(s.find)(o,{name:g}),k="".concat(v,"-").concat(null!==(t=null==w?void 0:w.name)&&void 0!==t?t:"none");return Object(c.useEffect)((function(){Object(s.find)(o,{name:g})||O(a||(o.length>0?o[0].name:null))}),[o]),Object(c.createElement)("div",{className:n},Object(c.createElement)(Ys,{role:"tablist",orientation:d,onNavigate:function(e,t){t.click()},className:"components-tab-panel__tabs"},o.map((function(e){return Object(c.createElement)(Vp,{className:l()("components-tab-panel__tabs-item",e.className,Object(P.a)({},p,e.name===g)),tabId:"".concat(v,"-").concat(e.name),"aria-controls":"".concat(v,"-").concat(e.name,"-view"),selected:e.name===g,key:e.name,onClick:Object(s.partial)(j,e.name)},e.title)}))),w&&Object(c.createElement)("div",{"aria-labelledby":k,role:"tabpanel",id:"".concat(k,"-view"),className:"components-tab-panel__tab-content"},r(w)))}var Wp={radiusBlockUi:"2px",borderWidth:"1px",borderWidthFocus:"1.5px",borderWidthTab:"4px"},Up=function(e){return Wp[e]},Gp=le("box-shadow:0 0 0 transparent;transition:box-shadow 0.1s linear;border-radius:",Up("radiusBlockUi"),";border:",Up("borderWidth")," solid ",Fe("ui.border"),";",ze("transition"),";label:inputStyleNeutral;"),$p=le("border-color:var( --wp-admin-theme-color );box-shadow:0 0 0 calc( ",Up("borderWidthFocus")," - ",Up("borderWidth")," ) var( --wp-admin-theme-color );outline:2px solid transparent;;label:inputStyleFocus;"),qp={huge:"1440px",wide:"1280px","x-large":"1080px",large:"960px",medium:"782px",small:"600px",mobile:"480px","zoomed-in":"280px"},Yp=le("font-family:",dt("default.fontFamily"),";padding:6px 8px;",Gp,";font-size:",dt("mobileTextMinFontSize"),";line-height:normal;","@media (min-width: ".concat(qp["small"],")"),"{font-size:",dt("default.fontSize"),";line-height:normal;}&:focus{",$p,"}&::-webkit-input-placeholder{color:",Fe("darkGray.placeholder"),";}&::-moz-placeholder{opacity:1;color:",Fe("darkGray.placeholder"),";}&:-ms-input-placeholder{color:",Fe("darkGray.placeholder"),";}.is-dark-theme &{&::-webkit-input-placeholder{color:",Fe("lightGray.placeholder"),";}&::-moz-placeholder{opacity:1;color:",Fe("lightGray.placeholder"),";}&:-ms-input-placeholder{color:",Fe("lightGray.placeholder"),";}};label:inputControl;"),Zp=je("textarea",{target:"ebk7yr50",label:"StyledTextarea"})("width:100%;",Yp,"");function Xp(e){var t=e.label,n=e.hideLabelFromVision,r=e.value,i=e.help,s=e.onChange,u=e.rows,l=void 0===u?4:u,d=e.className,f=Object(a.a)(e,["label","hideLabelFromVision","value","help","onChange","rows","className"]),p=Object(E.useInstanceId)(Xp),b="inspector-textarea-control-".concat(p);return Object(c.createElement)(yt,{label:t,hideLabelFromVision:n,id:b,help:i,className:d},Object(c.createElement)(Zp,Object(o.a)({className:"components-textarea-control__input",id:b,rows:l,onChange:function(e){return s(e.target.value)},"aria-describedby":i?b+"__help":void 0,value:r},f)))}var Jp=function(e){var t=e.text,n=void 0===t?"":t,r=e.highlight,o=(void 0===r?"":r).trim();if(!o)return n;var i=new RegExp("(".concat(Object(s.escapeRegExp)(o),")"),"gi");return Object(c.createInterpolateElement)(n.replace(i,"<mark>$&</mark>"),{mark:Object(c.createElement)("mark",null)})};var Qp=function(e){return Object(c.createElement)("div",{className:"components-tip"},Object(c.createElement)(r.SVG,{width:"24",height:"24",viewBox:"0 0 24 24"},Object(c.createElement)(r.Path,{d:"M12 15.8c-3.7 0-6.8-3-6.8-6.8s3-6.8 6.8-6.8c3.7 0 6.8 3 6.8 6.8s-3.1 6.8-6.8 6.8zm0-12C9.1 3.8 6.8 6.1 6.8 9s2.4 5.2 5.2 5.2c2.9 0 5.2-2.4 5.2-5.2S14.9 3.8 12 3.8zM8 17.5h8V19H8zM10 20.5h4V22h-4z"})),Object(c.createElement)("p",null,e.children))};function eb(e){var t=e.label,n=e.checked,r=e.help,o=e.className,i=e.onChange;var a,u,d=Object(E.useInstanceId)(eb),f="inspector-toggle-control-".concat(d);return r&&(a=f+"__help",u=Object(s.isFunction)(r)?r(n):r),Object(c.createElement)(yt,{id:f,help:u,className:l()("components-toggle-control",o)},Object(c.createElement)(gl,{id:f,checked:n,onChange:function(e){i(e.target.checked)},"aria-describedby":a}),Object(c.createElement)("label",{htmlFor:f,className:"components-toggle-control__label"},t))}var tb=n(137),nb=n(91),rb=function(e){return Object(c.createElement)("div",{className:e.className},e.children)};var ob=Object(c.forwardRef)((function(e,t){var n=e.containerClassName,r=e.className,i=e.extraProps,s=e.children,u=e.title,d=e.isActive,f=e.isDisabled,p=Object(a.a)(e,["containerClassName","className","extraProps","children","title","isActive","isDisabled"]);return Object(c.useContext)(nb.a)?Object(c.createElement)(tb.a,Object(o.a)({className:l()("components-toolbar-button",r)},i,p,{ref:t}),(function(e){return Object(c.createElement)(qr.a,Object(o.a)({label:u,isPressed:d,disabled:f},e),s)})):Object(c.createElement)(rb,{className:n},Object(c.createElement)(qr.a,Object(o.a)({ref:t,icon:p.icon,label:u,shortcut:p.shortcut,"data-subscript":p.subscript,onClick:function(e){e.stopPropagation(),p.onClick&&p.onClick(e)},className:l()("components-toolbar__control",r),isPressed:d,disabled:f,"data-toolbar-item":!0},i,p),s))})),ib=function(e){var t=e.className,n=e.children,r=Object(a.a)(e,["className","children"]);return Object(c.createElement)("div",Object(o.a)({className:t},r),n)};function ab(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ab(Object(n),!0).forEach((function(t){Object(P.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ab(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var sb=function(e){var t=e.controls,n=void 0===t?[]:t,r=Object(a.a)(e,["controls"]),i=function(e){return Object(c.createElement)(Qs,Object(o.a)({controls:n,toggleProps:cb(cb({},e),{},{"data-toolbar-item":!0})},r))};return Object(c.useContext)(nb.a)?Object(c.createElement)(tb.a,null,i):i()};var ub=function(e){var t=e.controls,n=void 0===t?[]:t,r=e.children,i=e.className,u=e.isCollapsed,d=e.title,f=Object(a.a)(e,["controls","children","className","isCollapsed","title"]),p=Object(c.useContext)(nb.a);if(!(n&&n.length||r))return null;var b=l()(p?"components-toolbar-group":"components-toolbar",i),h=n;return Array.isArray(h[0])||(h=[h]),u?Object(c.createElement)(sb,Object(o.a)({label:d,controls:h,className:b,children:r},f)):Object(c.createElement)(ib,Object(o.a)({className:b},f),Object(s.flatMap)(h,(function(e,t){return e.map((function(e,n){return Object(c.createElement)(ob,Object(o.a)({key:[t,n].join(),containerClassName:t>0&&0===n?"has-left-divider":null},e))}))})),r)},lb=n(173),db=Object(h.a)({name:"Toolbar",compose:f.b,useState:lb.a,useProps:function(e,t){return Object(p.b)({role:"toolbar","aria-orientation":e.orientation},t)}}),fb=Object(b.a)({as:"div",useHook:db,useCreateElement:function(e,t,n){return Object(Bf.a)(e,t,n)}});var pb=Object(c.forwardRef)((function(e,t){var n=e.label,r=Object(a.a)(e,["label"]),i=Object(lb.a)({loop:!0,baseId:r.id,rtl:Je()});return Object(c.createElement)(nb.a.Provider,{value:i},Object(c.createElement)(fb,Object(o.a)({ref:t,"aria-label":n},i,r)))}));var bb=Object(c.forwardRef)((function(e,t){var n=e.className,r=e.label,i=Object(a.a)(e,["className","label"]);if(!r)return Ks()("Using Toolbar without label prop",{alternative:"ToolbarGroup component",link:"https://developer.wordpress.org/block-editor/components/toolbar/"}),Object(c.createElement)(ub,Object(o.a)({},i,{className:n}));var s=l()("components-accessible-toolbar",n);return Object(c.createElement)(pb,Object(o.a)({className:s,label:r,ref:t},i))})),hb=Object(c.createContext)(),vb=hb.Provider;function mb(e){var t=e.children,n=Object(c.useState)(),r=Object(i.a)(n,2),o=r[0],a=r[1],s=Object(c.useMemo)((function(){return{lastFocusedElement:o,setLastFocusedElement:a}}),[o]);return Object(c.createElement)(vb,{value:s},t)}function yb(e){var t=gs.focus.focusable.find(e);if(t&&t.length)return t.filter((function(t){return t.closest('[role="row"]')===e}))}var gb=Object(c.forwardRef)((function(e,t){var n=e.children,r=Object(a.a)(e,["children"]),i=Object(c.useCallback)((function(e){var t=e.keyCode,n=e.metaKey,r=e.ctrlKey,o=e.altKey,i=e.shiftKey;if(!(n||r||o||i)&&Object(s.includes)([pr.UP,pr.DOWN,pr.LEFT,pr.RIGHT],t)){e.stopPropagation();var a=document.activeElement,c=e.currentTarget;if(c.contains(a)){var u=a.closest('[role="row"]'),l=yb(u),d=l.indexOf(a);if(Object(s.includes)([pr.LEFT,pr.RIGHT],t)){var f;if((f=t===pr.LEFT?Math.max(0,d-1):Math.min(d+1,l.length-1))===d)return void e.preventDefault();l[f].focus(),e.preventDefault()}else if(Object(s.includes)([pr.UP,pr.DOWN],t)){var p,b=Array.from(c.querySelectorAll('[role="row"]')),h=b.indexOf(u);if((p=t===pr.UP?Math.max(0,h-1):Math.min(h+1,b.length-1))===h)return void e.preventDefault();var v=yb(b[p]);if(!v||!v.length)return void e.preventDefault();v[Math.min(d,v.length-1)].focus(),e.preventDefault()}}}}),[]);return Object(c.createElement)(mb,null,Object(c.createElement)("table",Object(o.a)({},r,{role:"treegrid",onKeyDown:i,ref:t}),Object(c.createElement)("tbody",null,n)))}));var Ob=Object(c.forwardRef)((function(e,t){var n=e.children,r=e.level,i=e.positionInSet,s=e.setSize,u=e.isExpanded,l=Object(a.a)(e,["children","level","positionInSet","setSize","isExpanded"]);return Object(c.createElement)("tr",Object(o.a)({},l,{ref:t,role:"row","aria-level":r,"aria-posinset":i,"aria-setsize":s,"aria-expanded":u}),n)}));function jb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var wb=Object(c.forwardRef)((function(e,t){var n,r=e.children,o=e.as,i=Object(a.a)(e,["children","as"]),s=Object(c.useRef)(),u=t||s,l=Object(c.useContext)(hb),d=l.lastFocusedElement,f=l.setLastFocusedElement;d&&(n=d===u.current?0:-1);var p=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jb(Object(n),!0).forEach((function(t){Object(P.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({ref:u,tabIndex:n,onFocus:function(e){return f(e.target)}},i);return"function"==typeof r?r(p):Object(c.createElement)(o,p,r)})),kb=Object(c.forwardRef)((function(e,t){var n=e.children,r=Object(a.a)(e,["children"]);return Object(c.createElement)(wb,Object(o.a)({ref:t},r),n)})),_b=Object(c.forwardRef)((function(e,t){var n=e.children,r=e.withoutGridItem,i=void 0!==r&&r,s=Object(a.a)(e,["children","withoutGridItem"]);return Object(c.createElement)("td",Object(o.a)({},s,{role:"gridcell"}),i?n:Object(c.createElement)(kb,{ref:t},n))})),Sb=n(125),Eb=n(129),xb=n(165),Cb={previous:["ctrl+shift+`",pr.rawShortcut.access("p")],next:["ctrl+`",pr.rawShortcut.access("n")]},Pb=Object(E.createHigherOrderComponent)((function(e){return function(t){var n=t.shortcuts,r=void 0===n?Cb:n,o=Object(a.a)(t,["shortcuts"]),s=Object(c.useRef)(),u=Object(c.useState)(!1),d=Object(i.a)(u,2),f=d[0],p=d[1],b=l()("components-navigate-regions",{"is-focusing-regions":f});function h(e){var t=Array.from(s.current.querySelectorAll('[role="region"]'));if(t.length){var n=t[0],r=t.indexOf(s.current.ownerDocument.activeElement);if(-1!==r){var o=r+e;n=t[o=(o=-1===o?t.length-1:o)===t.length?0:o]}n.focus(),p(!0)}}var v=Object(c.useCallback)((function(){return h(-1)}),[s]),m=Object(c.useCallback)((function(){return h(1)}),[s]);return Object(E.useKeyboardShortcut)(r.previous,v,{bindGlobal:!0}),Object(E.useKeyboardShortcut)(r.next,m,{bindGlobal:!0}),Object(c.createElement)("div",{ref:s,className:b,onClick:function(){return p(!1)}},Object(c.createElement)(e,o))}}),"navigateRegions");function Db(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ha.a)(e);if(t){var o=Object(ha.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ba.a)(this,n)}}var Mb=function(e){return Object(E.createHigherOrderComponent)((function(t){return function(n){Object(pa.a)(i,n);var r=Db(i);function i(){var e;return Object(la.a)(this,i),(e=r.apply(this,arguments)).nodeRef=e.props.node,e.state={fallbackStyles:void 0,grabStylesCompleted:!1},e.bindRef=e.bindRef.bind(Object(fa.a)(e)),e}return Object(da.a)(i,[{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(s.isEqual)(o,r)||this.setState({fallbackStyles:o,grabStylesCompleted:!!Object(s.every)(o)})}}},{key:"render",value:function(){var e=Object(c.createElement)(t,Object(o.a)({},this.props,this.state.fallbackStyles));return this.props.node?e:Object(c.createElement)("div",{ref:this.bindRef}," ",e," ")}}]),i}(c.Component)}),"withFallbackStyles")},Tb=n(33);function Ib(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ha.a)(e);if(t){var o=Object(ha.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ba.a)(this,n)}}function Rb(e){return Object(E.createHigherOrderComponent)((function(t){var n,r="core/with-filters/"+e;function o(){void 0===n&&(n=Object(Tb.applyFilters)(e,t))}var i=function(e){Object(pa.a)(i,e);var t=Ib(i);function i(){var e;return Object(la.a)(this,i),e=t.apply(this,arguments),o(),e}return Object(da.a)(i,[{key:"componentDidMount",value:function(){i.instances.push(this),1===i.instances.length&&(Object(Tb.addAction)("hookRemoved",r,u),Object(Tb.addAction)("hookAdded",r,u))}},{key:"componentWillUnmount",value:function(){i.instances=Object(s.without)(i.instances,this),0===i.instances.length&&(Object(Tb.removeAction)("hookRemoved",r),Object(Tb.removeAction)("hookAdded",r))}},{key:"render",value:function(){return Object(c.createElement)(n,this.props)}}]),i}(c.Component);i.instances=[];var a=Object(s.debounce)((function(){n=Object(Tb.applyFilters)(e,t),i.instances.forEach((function(e){e.forceUpdate()}))}),16);function u(t){t===e&&a()}return i}),"withFilters")}var Nb=n(199),Ab="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),Lb=new Uint8Array(16);function Fb(){if(!Ab)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ab(Lb)}for(var zb=[],Bb=0;Bb<256;++Bb)zb[Bb]=(Bb+256).toString(16).substr(1);var Hb=function(e,t){var n=t||0,r=zb;return[r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]]].join("")};var Vb=function(e,t,n){var r=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var o=(e=e||{}).random||(e.rng||Fb)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t)for(var i=0;i<16;++i)t[r+i]=o[i];return t||Hb(o)};function Kb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kb(Object(n),!0).forEach((function(t){Object(P.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ub(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ha.a)(e);if(t){var o=Object(ha.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ba.a)(this,n)}}var Gb=Object(E.createHigherOrderComponent)((function(e){return function(t){Object(pa.a)(r,t);var n=Ub(r);function r(){var e;return Object(la.a)(this,r),(e=n.apply(this,arguments)).createNotice=e.createNotice.bind(Object(fa.a)(e)),e.createErrorNotice=e.createErrorNotice.bind(Object(fa.a)(e)),e.removeNotice=e.removeNotice.bind(Object(fa.a)(e)),e.removeAllNotices=e.removeAllNotices.bind(Object(fa.a)(e)),e.state={noticeList:[]},e.noticeOperations={createNotice:e.createNotice,createErrorNotice:e.createErrorNotice,removeAllNotices:e.removeAllNotices,removeNotice:e.removeNotice},e}return Object(da.a)(r,[{key:"createNotice",value:function(e){var t=e.id?e:Wb(Wb({},e),{},{id:Vb()});this.setState((function(e){return{noticeList:[].concat(Object(Gr.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(c.createElement)(e,Object(o.a)({noticeList:this.state.noticeList,noticeOperations:this.noticeOperations,noticeUI:this.state.noticeList.length>0&&Object(c.createElement)(pf,{className:"components-with-notices-ui",notices:this.state.noticeList,onRemove:this.removeNotice})},this.props))}}]),r}(c.Component)}))},function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M20.1 5.1L16.9 2 6.2 12.7l-1.3 4.4 4.5-1.3L20.1 5.1zM4 20.8h8v-1.5H4v1.5z"}));t.a=i},,,,,,,,,,,function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&c.return&&c.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=E(n(95)),a=E(n(13)),c=E(n(28)),s=E(n(145)),u=n(89),l=E(n(44)),d=E(n(241)),f=E(n(251)),p=n(110),b=E(n(111)),h=E(n(196)),v=E(n(252)),m=E(n(385)),y=E(n(255)),g=E(n(256)),O=E(n(197)),j=E(n(146)),w=E(n(162)),k=E(n(257)),_=n(78),S=E(n(386));function E(e){return e&&e.__esModule?e:{default:e}}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var C=(0,u.forbidExtraProps)({date:s.default.momentObj,onDateChange:c.default.func,focused:c.default.bool,onFocusChange:c.default.func,onClose:c.default.func,keepOpenOnDateSelect:c.default.bool,isOutsideRange:c.default.func,isDayBlocked:c.default.func,isDayHighlighted:c.default.func,renderMonthText:(0,u.mutuallyExclusiveProps)(c.default.func,"renderMonthText","renderMonthElement"),renderMonthElement:(0,u.mutuallyExclusiveProps)(c.default.func,"renderMonthText","renderMonthElement"),enableOutsideDays:c.default.bool,numberOfMonths:c.default.number,orientation:j.default,withPortal:c.default.bool,initialVisibleMonth:c.default.func,firstDayOfWeek:w.default,hideKeyboardShortcutsPanel:c.default.bool,daySize:u.nonNegativeInteger,verticalHeight:u.nonNegativeInteger,noBorder:c.default.bool,verticalBorderSpacing:u.nonNegativeInteger,transitionDuration:u.nonNegativeInteger,horizontalMonthPadding:u.nonNegativeInteger,navPrev:c.default.node,navNext:c.default.node,onPrevMonthClick:c.default.func,onNextMonthClick:c.default.func,onOutsideClick:c.default.func,renderCalendarDay:c.default.func,renderDayContents:c.default.func,renderCalendarInfo:c.default.func,calendarInfoPosition:k.default,onBlur:c.default.func,isFocused:c.default.bool,showKeyboardShortcuts:c.default.bool,monthFormat:c.default.string,weekDayFormat:c.default.string,phrases:c.default.shape((0,b.default)(p.DayPickerPhrases)),dayAriaLabelFormat:c.default.string,isRTL:c.default.bool}),P={date:void 0,onDateChange:function(){},focused:!1,onFocusChange:function(){},onClose:function(){},keepOpenOnDateSelect:!1,isOutsideRange:function(){},isDayBlocked:function(){},isDayHighlighted:function(){},renderMonthText:null,enableOutsideDays:!1,numberOfMonths:1,orientation:_.HORIZONTAL_ORIENTATION,withPortal:!1,hideKeyboardShortcutsPanel:!1,initialVisibleMonth:null,firstDayOfWeek:null,daySize:_.DAY_SIZE,verticalHeight:null,noBorder:!1,verticalBorderSpacing:void 0,transitionDuration:void 0,horizontalMonthPadding:13,navPrev:null,navNext:null,onPrevMonthClick:function(){},onNextMonthClick:function(){},onOutsideClick:function(){},renderCalendarDay:void 0,renderDayContents:null,renderCalendarInfo:null,renderMonthElement:null,calendarInfoPosition:_.INFO_POSITION_BOTTOM,onBlur:function(){},isFocused:!1,showKeyboardShortcuts:!1,monthFormat:"MMMM YYYY",weekDayFormat:"dd",phrases:p.DayPickerPhrases,dayAriaLabelFormat:void 0,isRTL:!1},D=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=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,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.isTouchDevice=!1,n.today=(0,l.default)(),n.modifiers={today:function(e){return n.isToday(e)},blocked:function(e){return n.isBlocked(e)},"blocked-calendar":function(t){return e.isDayBlocked(t)},"blocked-out-of-range":function(t){return e.isOutsideRange(t)},"highlighted-calendar":function(t){return e.isDayHighlighted(t)},valid:function(e){return!n.isBlocked(e)},hovered:function(e){return n.isHovered(e)},selected:function(e){return n.isSelected(e)},"first-day-of-week":function(e){return n.isFirstDayOfWeek(e)},"last-day-of-week":function(e){return n.isLastDayOfWeek(e)}};var r=n.getStateForNewMonth(e),o=r.currentMonth,i=r.visibleDays;return n.state={hoverDate:null,currentMonth:o,visibleDays:i},n.onDayMouseEnter=n.onDayMouseEnter.bind(n),n.onDayMouseLeave=n.onDayMouseLeave.bind(n),n.onDayClick=n.onDayClick.bind(n),n.onPrevMonthClick=n.onPrevMonthClick.bind(n),n.onNextMonthClick=n.onNextMonthClick.bind(n),n.onMonthChange=n.onMonthChange.bind(n),n.onYearChange=n.onYearChange.bind(n),n.getFirstFocusableDay=n.getFirstFocusableDay.bind(n),n}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)}(t,e),o(t,[{key:"componentDidMount",value:function(){this.isTouchDevice=(0,f.default)()}},{key:"componentWillReceiveProps",value:function(e){var t=this,n=e.date,r=e.focused,o=e.isOutsideRange,a=e.isDayBlocked,c=e.isDayHighlighted,s=e.initialVisibleMonth,u=e.numberOfMonths,f=e.enableOutsideDays,p=this.props,b=p.isOutsideRange,v=p.isDayBlocked,m=p.isDayHighlighted,y=p.numberOfMonths,g=p.enableOutsideDays,O=p.initialVisibleMonth,j=p.focused,w=p.date,k=this.state.visibleDays,_=!1,S=!1,E=!1;o!==b&&(this.modifiers["blocked-out-of-range"]=function(e){return o(e)},_=!0),a!==v&&(this.modifiers["blocked-calendar"]=function(e){return a(e)},S=!0),c!==m&&(this.modifiers["highlighted-calendar"]=function(e){return c(e)},E=!0);var x=_||S||E;if(u!==y||f!==g||s!==O&&!j&&r){var C=this.getStateForNewMonth(e),P=C.currentMonth;k=C.visibleDays,this.setState({currentMonth:P,visibleDays:k})}var D=r!==j,M={};n!==w&&(M=this.deleteModifier(M,w,"selected"),M=this.addModifier(M,n,"selected")),(D||x)&&(0,d.default)(k).forEach((function(e){Object.keys(e).forEach((function(e){var n=(0,l.default)(e);M=t.isBlocked(n)?t.addModifier(M,n,"blocked"):t.deleteModifier(M,n,"blocked"),(D||_)&&(M=o(n)?t.addModifier(M,n,"blocked-out-of-range"):t.deleteModifier(M,n,"blocked-out-of-range")),(D||S)&&(M=a(n)?t.addModifier(M,n,"blocked-calendar"):t.deleteModifier(M,n,"blocked-calendar")),(D||E)&&(M=c(n)?t.addModifier(M,n,"highlighted-calendar"):t.deleteModifier(M,n,"highlighted-calendar"))}))}));var T=(0,l.default)();(0,h.default)(this.today,T)||(M=this.deleteModifier(M,this.today,"today"),M=this.addModifier(M,T,"today"),this.today=T),Object.keys(M).length>0&&this.setState({visibleDays:(0,i.default)({},k,M)})}},{key:"componentWillUpdate",value:function(){this.today=(0,l.default)()}},{key:"onDayClick",value:function(e,t){if(t&&t.preventDefault(),!this.isBlocked(e)){var n=this.props,r=n.onDateChange,o=n.keepOpenOnDateSelect,i=n.onFocusChange,a=n.onClose;r(e),o||(i({focused:!1}),a({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,i.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,i.default)({},n,r)})}}},{key:"onPrevMonthClick",value:function(){var e=this.props,t=e.onPrevMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,a=o.currentMonth,c=o.visibleDays,s={};Object.keys(c).sort().slice(0,n+1).forEach((function(e){s[e]=c[e]}));var u=a.clone().subtract(1,"month"),l=(0,m.default)(u,1,r);this.setState({currentMonth:u,visibleDays:(0,i.default)({},s,this.getModifiers(l))},(function(){t(u.clone())}))}},{key:"onNextMonthClick",value:function(){var e=this.props,t=e.onNextMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,a=o.currentMonth,c=o.visibleDays,s={};Object.keys(c).sort().slice(1).forEach((function(e){s[e]=c[e]}));var u=a.clone().add(n,"month"),l=(0,m.default)(u,1,r),d=a.clone().add(1,"month");this.setState({currentMonth:d,visibleDays:(0,i.default)({},s,this.getModifiers(l))},(function(){t(d.clone())}))}},{key:"onMonthChange",value:function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===_.VERTICAL_SCROLLABLE,i=(0,m.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(i)})}},{key:"onYearChange",value:function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===_.VERTICAL_SCROLLABLE,i=(0,m.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(i)})}},{key:"getFirstFocusableDay",value:function(e){var t=this,n=this.props,o=n.date,i=n.numberOfMonths,a=e.clone().startOf("month");if(o&&(a=o.clone()),this.isBlocked(a)){for(var c=[],s=e.clone().add(i-1,"months").endOf("month"),u=a.clone();!(0,v.default)(u,s);)u=u.clone().add(1,"day"),c.push(u);var l=c.filter((function(e){return!t.isBlocked(e)&&(0,v.default)(e,a)}));if(l.length>0){var d=r(l,1);a=d[0]}}return a}},{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,i=e.enableOutsideDays,a=(n||(r?function(){return r}:function(){return t.today}))();return{currentMonth:a,visibleDays:this.getModifiers((0,m.default)(a,o,i))}}},{key:"addModifier",value:function(e,t,n){var r=this.props,o=r.numberOfMonths,a=r.enableOutsideDays,c=r.orientation,s=this.state,u=s.currentMonth,l=s.visibleDays,d=u,f=o;if(c===_.VERTICAL_SCROLLABLE?f=Object.keys(l).length:(d=d.clone().subtract(1,"month"),f+=2),!t||!(0,y.default)(t,d,f,a))return e;var p=(0,g.default)(t),b=(0,i.default)({},e);if(a)b=Object.keys(l).filter((function(e){return Object.keys(l[e]).indexOf(p)>-1})).reduce((function(t,r){var o=e[r]||l[r],a=new Set(o[p]);return a.add(n),(0,i.default)({},t,x({},r,(0,i.default)({},o,x({},p,a))))}),b);else{var h=(0,O.default)(t),v=e[h]||l[h],m=new Set(v[p]);m.add(n),b=(0,i.default)({},b,x({},h,(0,i.default)({},v,x({},p,m))))}return b}},{key:"deleteModifier",value:function(e,t,n){var r=this.props,o=r.numberOfMonths,a=r.enableOutsideDays,c=r.orientation,s=this.state,u=s.currentMonth,l=s.visibleDays,d=u,f=o;if(c===_.VERTICAL_SCROLLABLE?f=Object.keys(l).length:(d=d.clone().subtract(1,"month"),f+=2),!t||!(0,y.default)(t,d,f,a))return e;var p=(0,g.default)(t),b=(0,i.default)({},e);if(a)b=Object.keys(l).filter((function(e){return Object.keys(l[e]).indexOf(p)>-1})).reduce((function(t,r){var o=e[r]||l[r],a=new Set(o[p]);return a.delete(n),(0,i.default)({},t,x({},r,(0,i.default)({},o,x({},p,a))))}),b);else{var h=(0,O.default)(t),v=e[h]||l[h],m=new Set(v[p]);m.delete(n),b=(0,i.default)({},b,x({},h,(0,i.default)({},v,x({},p,m))))}return b}},{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,h.default)(e,t)}},{key:"isSelected",value:function(e){var t=this.props.date;return(0,h.default)(e,t)}},{key:"isToday",value:function(e){return(0,h.default)(e,this.today)}},{key:"isFirstDayOfWeek",value:function(e){var t=this.props.firstDayOfWeek;return e.day()===(t||l.default.localeData().firstDayOfWeek())}},{key:"isLastDayOfWeek",value:function(e){var t=this.props.firstDayOfWeek;return e.day()===((t||l.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,i=e.navPrev,c=e.navNext,s=e.onOutsideClick,u=e.withPortal,l=e.focused,d=e.enableOutsideDays,f=e.hideKeyboardShortcutsPanel,p=e.daySize,b=e.firstDayOfWeek,h=e.renderCalendarDay,v=e.renderDayContents,m=e.renderCalendarInfo,y=e.renderMonthElement,g=e.calendarInfoPosition,O=e.isFocused,j=e.isRTL,w=e.phrases,k=e.dayAriaLabelFormat,_=e.onBlur,E=e.showKeyboardShortcuts,x=e.weekDayFormat,C=e.verticalHeight,P=e.noBorder,D=e.transitionDuration,M=e.verticalBorderSpacing,T=e.horizontalMonthPadding,I=this.state,R=I.currentMonth,N=I.visibleDays;return a.default.createElement(S.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,monthFormat:r,withPortal:u,hidden:!l,hideKeyboardShortcutsPanel:f,initialVisibleMonth:function(){return R},firstDayOfWeek:b,onOutsideClick:s,navPrev:i,navNext:c,renderMonthText:o,renderCalendarDay:h,renderDayContents:v,renderCalendarInfo:m,renderMonthElement:y,calendarInfoPosition:g,isFocused:O,getFirstFocusableDay:this.getFirstFocusableDay,onBlur:_,phrases:w,daySize:p,isRTL:j,showKeyboardShortcuts:E,weekDayFormat:x,dayAriaLabelFormat:k,verticalHeight:C,noBorder:P,transitionDuration:D,verticalBorderSpacing:M,horizontalMonthPadding:T})}}]),t}(a.default.Component);t.default=D,D.propTypes=C,D.defaultProps=P},,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"}));t.a=i},function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));t.a=i},,,,,,,function(e,t,n){"use strict"; +*/!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)&&r.length){var a=o.apply(null,r);a&&e.push(a)}else if("object"===i)for(var c in r)n.call(r,c)&&r[c]&&e.push(c)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t){!function(){e.exports=this.wp.compose}()},,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(38);var o=n(30),i=n(39);function a(e,t){return Object(r.a)(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}(e,t)||Object(o.a)(e,t)||Object(i.a)()}},function(e,t){!function(){e.exports=this.React}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(43);function o(e,t){if(null==e)return{};var n,o,i=Object(r.a)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},function(e,t,n){"use strict";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}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return s}))},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 a}));var r=n(27);var o=n(37),i=n(30);function a(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(o.a)(e)||Object(i.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t){!function(){e.exports=this.wp.keycodes}()},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}))},function(e,t){!function(){e.exports=this.regeneratorRuntime}()},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}))},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(40),o=n(16);function i(e,t){return!t||"object"!==Object(r.a)(t)&&"function"!=typeof t?Object(o.a)(e):t}},function(e,t){!function(){e.exports=this.wp.richText}()},,function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return r}))},function(e,t,n){e.exports=n(142)()},function(e,t){!function(){e.exports=this.wp.dom}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(27);function o(e,t){if(e){if("string"==typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},,,function(e,t){!function(){e.exports=this.wp.hooks}()},,function(e,t,n){"use strict";var r=n(8),o=n(14),i=n(0),a=n(9),c=n.n(a),s=n(2),u=n(36),l=n.n(u),d=n(84),f=n(85);function p(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return b(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return b(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var h=["onMouseDown","onClick"];t.a=Object(i.forwardRef)((function(e,t){var n=e.href,a=e.target,u=e.isPrimary,b=e.isSmall,v=e.isTertiary,m=e.isPressed,y=e.isBusy,g=e.isDefault,O=e.isSecondary,j=e.isLink,w=e.isDestructive,k=e.className,_=e.disabled,S=e.icon,E=e.iconSize,x=e.showTooltip,C=e.tooltipPosition,P=e.shortcut,D=e.label,M=e.children,T=e.__experimentalIsFocusable,I=Object(o.a)(e,["href","target","isPrimary","isSmall","isTertiary","isPressed","isBusy","isDefault","isSecondary","isLink","isDestructive","className","disabled","icon","iconSize","showTooltip","tooltipPosition","shortcut","label","children","__experimentalIsFocusable"]);g&&l()("Button isDefault prop",{alternative:"isSecondary"});var R=c()("components-button",k,{"is-secondary":g||O,"is-primary":u,"is-small":b,"is-tertiary":v,"is-pressed":m,"is-busy":y,"is-link":j,"is-destructive":w,"has-text":!!S&&!!M,"has-icon":!!S}),N=_&&!T,A=void 0===n||N?"button":"a",L="a"===A?{href:n,target:a}:{type:"button",disabled:N,"aria-pressed":m};if(_&&T){L["aria-disabled"]=!0;var F,z=p(h);try{for(z.s();!(F=z.n()).done;){I[F.value]=function(e){e.stopPropagation(),e.preventDefault()}}}catch(e){z.e(e)}finally{z.f()}}var B=!N&&(x&&D||P||!!D&&(!M||Object(s.isArray)(M)&&!M.length)&&!1!==x),H=Object(i.createElement)(A,Object(r.a)({},L,I,{className:R,"aria-label":I["aria-label"]||D,ref:t}),S&&Object(i.createElement)(f.a,{icon:S,size:E}),M);return B?Object(i.createElement)(d.a,{text:D,shortcut:P,position:C},H):H}))},function(e,t){!function(){e.exports=this.wp.deprecated}()},function(e,t,n){"use strict";function r(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}n.d(t,"a",(function(){return r}))},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.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}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)}n.d(t,"a",(function(){return r}))},,,function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},function(e,t){!function(){e.exports=this.moment}()},function(e,t,n){"use strict";function r(e,t,n,r,o,i,a){try{var c=e[i](a),s=c.value}catch(e){return void n(e)}c.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 a=e.apply(t,n);function c(e){r(a,o,i,c,s,"next",e)}function s(e){r(a,o,i,c,s,"throw",e)}c(void 0)}))}}n.d(t,"a",(function(){return o}))},function(e,t){!function(){e.exports=this.wp.a11y}()},,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(13),o=n(59);function i(e){var t=Object(r.useRef)(e);return Object(o.a)((function(){t.current=e})),t}},function(e,t,n){"use strict";function r(e){return e?e.ownerDocument||e:window.document}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(13),o=n(76);function i(e,t){Object(r.useDebugValue)(e);var n=Object(r.useContext)(o.a);return null!=n[e]?n[e]:t}var a=n(55);var c=n(56);function s(e){var t,n,o,s=(o=e.compose,Array.isArray(o)?o:void 0!==o?[o]:[]),u=function(t,n){if(e.useOptions&&(t=e.useOptions(t,n)),e.name&&(t=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var o="use"+e+"Options";Object(r.useDebugValue)(o);var c=i(o);return c?Object(a.a)(Object(a.a)({},t),c(t,n)):t}(e.name,t,n)),e.compose)for(var o,c=Object(a.c)(s);!(o=c()).done;){t=o.value.__useOptions(t,n)}return t},l=function(t,n,o){if(void 0===t&&(t={}),void 0===n&&(n={}),void 0===o&&(o=!1),o||(t=u(t,n)),e.useProps&&(n=e.useProps(t,n)),e.name&&(n=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var o="use"+e+"Props";Object(r.useDebugValue)(o);var a=i(o);return a?a(t,n):n}(e.name,t,n)),e.compose)if(e.useComposeOptions&&(t=e.useComposeOptions(t,n)),e.useComposeProps)n=e.useComposeProps(t,n);else for(var c,l=Object(a.c)(s);!(c=l()).done;){n=(0,c.value)(t,n,!0)}var d={},f=n||{};for(var p in f)void 0!==f[p]&&(d[p]=f[p]);return d};l.__useOptions=u;var d=s.reduce((function(e,t){return e.push.apply(e,t.__keys||[]),e}),[]);return l.__keys=[].concat(d,(null===(t=e.useState)||void 0===t?void 0:t.__keys)||[],e.keys||[]),l.unstable_propsAreEqual=e.propsAreEqual||(null===(n=s[0])||void 0===n?void 0:n.unstable_propsAreEqual)||c.a,l}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(13),o=n(55),i=n(79);function a(e,t){for(var n={},r={},o=0,i=Object.keys(e);o<i.length;o++){var a=i[o];t.indexOf(a)>=0?n[a]=e[a]:r[a]=e[a]}return[n,r]}var c=n(56);function s(e){var t,n=e.as,s=e.useHook,u=e.memo,l=e.propsAreEqual,d=void 0===l?null==s?void 0:s.unstable_propsAreEqual:l,f=e.keys,p=void 0===f?(null==s?void 0:s.__keys)||[]:f,b=e.useCreateElement,h=void 0===b?i.a:b,v=function(e,t){var r=e.as,i=void 0===r?n:r,c=Object(o.b)(e,["as"]);if(s){var u,l=a(c,p),d=l[0],f=l[1],b=s(d,Object(o.a)({ref:t},f)),v=b.wrapElement,m=Object(o.b)(b,["wrapElement"]),y=(null===(u=i.render)||void 0===u?void 0:u.__keys)||i.__keys,g=y&&a(c,y)[0],O=g?Object(o.a)(Object(o.a)({},m),g):m,j=h(i,O);return v?v(j):j}return h(i,Object(o.a)({ref:t},c))};return t=v,v=Object(r.forwardRef)(t),u&&(v=function(e,t){return Object(r.memo)(e,t)}(v,d)),v.__keys=p,v.unstable_propsAreEqual=d||c.a,v}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return m})),n.d(t,"c",(function(){return b})),n.d(t,"d",(function(){return p})),n.d(t,"e",(function(){return g})),n.d(t,"f",(function(){return u})),n.d(t,"g",(function(){return x}));var r=n(15),o=n(13),i=n(59),a=n(62),c=n(61),s=n(65);function u(e){return e.slice().reverse()}function l(e,t){return Boolean(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function d(e,t){return e.findIndex((function(e){return!(!e.ref.current||!t.ref.current)&&l(t.ref.current,e.ref.current)}))}function f(e,t){return t?e.find((function(e){return!e.disabled&&e.id!==t})):e.find((function(e){return!e.disabled}))}function p(e,t){if(t)return null==e?void 0:e.find((function(e){return e.id===t&&!e.disabled}))}function b(e){for(var t,n=[[]],o=function(){var e=t.value,r=n.find((function(t){return!t[0]||t[0].groupId===e.groupId}));r?r.push(e):n.push([e])},i=Object(r.c)(e);!(t=i()).done;)o();return n}function h(e){for(var t,n=0,o=Object(r.c)(e);!(t=o()).done;){var i=t.value.length;i>n&&(n=i)}return n}function v(e){for(var t=b(e),n=h(t),o=[],i=0;i<n;i+=1)for(var a,c=Object(r.c)(t);!(a=c()).done;){var s=a.value;s[i]&&o.push(Object(r.b)(Object(r.b)({},s[i]),{},{groupId:s[i].groupId?""+i:void 0}))}return o}function m(e){for(var t,n=[],o=Object(r.c)(e);!(t=o()).done;){var i=t.value;n.push.apply(n,i)}return n}function y(e){for(var t,n=h(e),o=Object(r.c)(e);!(t=o()).done;){var i=t.value;if(i.length<n)for(var a=0;a<n;a+=1)i[a]||(i[a]={id:"__EMPTY_ITEM__",disabled:!0,ref:{current:null},groupId:i[a-1].groupId})}return e}function g(e,t){var n;return t||null===t?t:e.currentId||null===e.currentId?e.currentId:null===(n=f(e.items||[]))||void 0===n?void 0:n.id}var O={id:null,ref:{current:null}};function j(e,t){return e.filter((function(e){return e.groupId===t}))}var w={horizontal:"vertical",vertical:"horizontal"};function k(e,t,n){return n in e?[].concat(e.slice(0,n),[t],e.slice(n)):[].concat(e,[t])}function _(e){var t=e.slice(),n=!1;return t.sort((function(e,t){var r=e.ref.current,o=t.ref.current;return r&&o&&l(r,o)?(n=!0,-1):0})),n?t:e}function S(e,t){var n=e.unstable_virtual,o=e.rtl,i=e.orientation,a=e.items,s=e.groups,l=e.currentId,h=e.loop,E=e.wrap,x=e.pastIds,C=e.unstable_moves,P=e.initialVirtual,D=e.initialRTL,M=e.initialOrientation,T=e.initialCurrentId,I=e.initialLoop,R=e.initialWrap,N=e.hasSetCurrentId;switch(t.type){case"registerGroup":var A=t.group;if(0===s.length)return Object(r.b)(Object(r.b)({},e),{},{groups:[A]});var L=d(s,A);return Object(r.b)(Object(r.b)({},e),{},{groups:k(s,A,L)});case"unregisterGroup":var F=t.id,z=s.filter((function(e){return e.id!==F}));return z.length===s.length?e:Object(r.b)(Object(r.b)({},e),{},{groups:z});case"registerItem":var B,H=t.item,V=s.find((function(e){var t;return null===(t=e.ref.current)||void 0===t?void 0:t.contains(H.ref.current)})),K=Object(r.b)({groupId:null==V?void 0:V.id},H),W=d(a,K),U=Object(r.b)(Object(r.b)({},e),{},{items:k(a,K,W)});return N||C||void 0!==T?U:Object(r.b)(Object(r.b)({},U),{},{currentId:null===(B=f(U.items))||void 0===B?void 0:B.id});case"unregisterItem":var G=t.id,$=a.filter((function(e){return e.id!==G}));if($.length===a.length)return e;var q=x.filter((function(e){return e!==G})),Y=Object(r.b)(Object(r.b)({},e),{},{pastIds:q,items:$});if(l&&l===G){var Z=g(Object(r.b)(Object(r.b)({},Y),{},{currentId:q[0]}));return Object(r.b)(Object(r.b)({},Y),{},{currentId:Z})}return Y;case"move":var X=t.id;if(void 0===X)return e;var J=x.filter((function(e){return e!==l&&e!==X})),Q=l?[l].concat(J):J,ee=Object(r.b)(Object(r.b)({},e),{},{pastIds:Q});if(null===X)return Object(r.b)(Object(r.b)({},ee),{},{unstable_moves:C+1,currentId:g(ee,X)});var te=p(a,X);return Object(r.b)(Object(r.b)({},ee),{},{unstable_moves:te?C+1:C,currentId:g(ee,null==te?void 0:te.id)});case"next":if(null==l)return S(e,Object(r.b)(Object(r.b)({},t),{},{type:"first"}));var ne=o&&"vertical"!==i,re=ne?u(a):a,oe=re.find((function(e){return e.id===l}));if(!oe)return S(e,Object(r.b)(Object(r.b)({},t),{},{type:"first"}));var ie=!!oe.groupId,ae=re.indexOf(oe),ce=re.slice(ae+1),se=j(ce,oe.groupId);if(t.allTheWay){var ue=f(ne?j(re,oe.groupId):u(se));return S(e,Object(r.b)(Object(r.b)({},t),{},{type:"move",id:null==ue?void 0:ue.id}))}var le=function(e){return e&&w[e]}(ie?i||"horizontal":i),de=h&&h!==le,fe=ie&&E&&E!==le,pe=t.hasNullItem||!ie&&de&&null===T;if(de){var be=f(function(e,t,n){var r=e.findIndex((function(e){return e.id===t}));return[].concat(e.slice(r+1),n?[O]:[],e.slice(0,r))}(fe&&!pe?re:j(re,oe.groupId),l,pe),l);return S(e,Object(r.b)(Object(r.b)({},t),{},{type:"move",id:null==be?void 0:be.id}))}if(fe){var he=f(pe?se:ce,l),ve=pe?(null==he?void 0:he.id)||null:null==he?void 0:he.id;return S(e,Object(r.b)(Object(r.b)({},t),{},{type:"move",id:ve}))}var me=f(se,l);return S(e,!me&&pe?Object(r.b)(Object(r.b)({},t),{},{type:"move",id:null}):Object(r.b)(Object(r.b)({},t),{},{type:"move",id:null==me?void 0:me.id}));case"previous":var ye=!!!s.length&&null===T,ge=S(Object(r.b)(Object(r.b)({},e),{},{items:u(a)}),Object(r.b)(Object(r.b)({},t),{},{type:"next",hasNullItem:ye}));return Object(r.b)(Object(r.b)({},ge),{},{items:a});case"down":var Oe=v(m(y(b(a)))),je=h&&"horizontal"!==h&&null===T,we=S(Object(r.b)(Object(r.b)({},e),{},{orientation:"vertical",items:Oe}),Object(r.b)(Object(r.b)({},t),{},{type:"next",hasNullItem:je}));return Object(r.b)(Object(r.b)({},we),{},{orientation:i,items:a});case"up":var ke=v(u(m(y(b(a))))),_e=null===T,Se=S(Object(r.b)(Object(r.b)({},e),{},{orientation:"vertical",items:ke}),Object(r.b)(Object(r.b)({},t),{},{type:"next",hasNullItem:_e}));return Object(r.b)(Object(r.b)({},Se),{},{orientation:i,items:a});case"first":var Ee=f(a);return S(e,Object(r.b)(Object(r.b)({},t),{},{type:"move",id:null==Ee?void 0:Ee.id}));case"last":var xe=S(Object(r.b)(Object(r.b)({},e),{},{items:u(a)}),Object(r.b)(Object(r.b)({},t),{},{type:"first"}));return Object(r.b)(Object(r.b)({},xe),{},{items:a});case"sort":return Object(r.b)(Object(r.b)({},e),{},{items:_(a),groups:_(s)});case"setVirtual":return Object(r.b)(Object(r.b)({},e),{},{unstable_virtual:Object(c.a)(t.virtual,n)});case"setRTL":return Object(r.b)(Object(r.b)({},e),{},{rtl:Object(c.a)(t.rtl,o)});case"setOrientation":return Object(r.b)(Object(r.b)({},e),{},{orientation:Object(c.a)(t.orientation,i)});case"setCurrentId":var Ce=g(Object(r.b)(Object(r.b)({},e),{},{currentId:Object(c.a)(t.currentId,l)}));return Object(r.b)(Object(r.b)({},e),{},{currentId:Ce,hasSetCurrentId:!0});case"setLoop":return Object(r.b)(Object(r.b)({},e),{},{loop:Object(c.a)(t.loop,h)});case"setWrap":return Object(r.b)(Object(r.b)({},e),{},{wrap:Object(c.a)(t.wrap,E)});case"reset":return Object(r.b)(Object(r.b)({},e),{},{unstable_virtual:P,rtl:D,orientation:M,currentId:g(Object(r.b)(Object(r.b)({},e),{},{currentId:T})),loop:I,wrap:R,unstable_moves:0,pastIds:[]});default:throw new Error}}function E(e){return Object(o.useCallback)(e,[])}function x(e){void 0===e&&(e={});var t=Object(a.a)(e),n=t.unstable_virtual,c=void 0!==n&&n,u=t.rtl,l=void 0!==u&&u,d=t.orientation,f=t.currentId,p=t.loop,b=void 0!==p&&p,h=t.wrap,v=void 0!==h&&h,m=Object(r.a)(t,["unstable_virtual","rtl","orientation","currentId","loop","wrap"]),y=Object(o.useReducer)(S,{unstable_virtual:c,rtl:l,orientation:d,items:[],groups:[],currentId:f,loop:b,wrap:v,unstable_moves:0,pastIds:[],initialVirtual:c,initialRTL:l,initialOrientation:d,initialCurrentId:f,initialLoop:b,initialWrap:v}),g=y[0],O=(g.pastIds,g.initialVirtual,g.initialRTL,g.initialOrientation,g.initialCurrentId,g.initialLoop,g.initialWrap,g.hasSetCurrentId,Object(r.a)(g,["pastIds","initialVirtual","initialRTL","initialOrientation","initialCurrentId","initialLoop","initialWrap","hasSetCurrentId"])),j=y[1],w=Object(o.useState)(!1),k=w[0],_=w[1],x=Object(s.a)(m),C=function(){var e=Object(o.useRef)(!1);return Object(i.a)((function(){return function(){e.current=!0}}),[]),e}();return Object(r.b)(Object(r.b)(Object(r.b)({},x),O),{},{unstable_hasActiveWidget:k,unstable_setHasActiveWidget:_,registerItem:E((function(e){C.current||j({type:"registerItem",item:e})})),unregisterItem:E((function(e){C.current||j({type:"unregisterItem",id:e})})),registerGroup:E((function(e){C.current||j({type:"registerGroup",group:e})})),unregisterGroup:E((function(e){C.current||j({type:"unregisterGroup",id:e})})),move:E((function(e){return j({type:"move",id:e})})),next:E((function(e){return j({type:"next",allTheWay:e})})),previous:E((function(e){return j({type:"previous",allTheWay:e})})),up:E((function(e){return j({type:"up",allTheWay:e})})),down:E((function(e){return j({type:"down",allTheWay:e})})),first:E((function(){return j({type:"first"})})),last:E((function(){return j({type:"last"})})),unstable_sort:E((function(){return j({type:"sort"})})),unstable_setVirtual:E((function(e){return j({type:"setVirtual",virtual:e})})),setRTL:E((function(e){return j({type:"setRTL",rtl:e})})),setOrientation:E((function(e){return j({type:"setOrientation",orientation:e})})),setCurrentId:E((function(e){return j({type:"setCurrentId",currentId:e})})),setLoop:E((function(e){return j({type:"setLoop",loop:e})})),setWrap:E((function(e){return j({type:"setWrap",wrap:e})})),reset:E((function(){return j({type:"reset"})}))})}var C=[].concat(s.a.__keys,["unstable_virtual","rtl","orientation","items","groups","currentId","loop","wrap","unstable_moves","unstable_hasActiveWidget","registerItem","unregisterItem","registerGroup","unregisterGroup","move","next","previous","up","down","first","last","unstable_sort","unstable_setVirtual","setRTL","setOrientation","setCurrentId","setLoop","setWrap","reset","unstable_setHasActiveWidget"]);x.__keys=C},,function(e,t,n){"use strict";function r(e){return e.target===e.currentTarget}n.d(t,"a",(function(){return r}))},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}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return s}))},function(e,t,n){"use strict";function r(e,t){if(e===t)return!0;if(!e)return!1;if(!t)return!1;if("object"!=typeof e)return!1;if("object"!=typeof t)return!1;var n=Object.keys(e),r=Object.keys(t),o=n.length;if(r.length!==o)return!1;for(var i=0,a=n;i<a.length;i++){var c=a[i];if(e[c]!==t[c])return!1}return!0}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(49);function o(e){return Object(r.a)(e).activeElement}},function(e,t,n){"use strict";var r=TypeError,o=Object.getOwnPropertyDescriptor;if(o)try{o({},"")}catch(e){o=null}var i=function(){throw new r},a=o?function(){try{return i}catch(e){try{return o(arguments,"callee").get}catch(e){return i}}}():i,c=n(220)(),s=Object.getPrototypeOf||function(e){return e.__proto__},u=void 0,l="undefined"==typeof Uint8Array?void 0:s(Uint8Array),d={"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayBufferPrototype%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer.prototype,"%ArrayIteratorPrototype%":c?s([][Symbol.iterator]()):void 0,"%ArrayPrototype%":Array.prototype,"%ArrayProto_entries%":Array.prototype.entries,"%ArrayProto_forEach%":Array.prototype.forEach,"%ArrayProto_keys%":Array.prototype.keys,"%ArrayProto_values%":Array.prototype.values,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":void 0,"%AsyncFunctionPrototype%":void 0,"%AsyncGenerator%":void 0,"%AsyncGeneratorFunction%":void 0,"%AsyncGeneratorPrototype%":void 0,"%AsyncIteratorPrototype%":u&&c&&Symbol.asyncIterator?u[Symbol.asyncIterator]():void 0,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%Boolean%":Boolean,"%BooleanPrototype%":Boolean.prototype,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%DataViewPrototype%":"undefined"==typeof DataView?void 0:DataView.prototype,"%Date%":Date,"%DatePrototype%":Date.prototype,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%ErrorPrototype%":Error.prototype,"%eval%":eval,"%EvalError%":EvalError,"%EvalErrorPrototype%":EvalError.prototype,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float32ArrayPrototype%":"undefined"==typeof Float32Array?void 0:Float32Array.prototype,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%Float64ArrayPrototype%":"undefined"==typeof Float64Array?void 0:Float64Array.prototype,"%Function%":Function,"%FunctionPrototype%":Function.prototype,"%Generator%":void 0,"%GeneratorFunction%":void 0,"%GeneratorPrototype%":void 0,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int8ArrayPrototype%":"undefined"==typeof Int8Array?void 0:Int8Array.prototype,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int16ArrayPrototype%":"undefined"==typeof Int16Array?void 0:Int8Array.prototype,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%Int32ArrayPrototype%":"undefined"==typeof Int32Array?void 0:Int32Array.prototype,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":c?s(s([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%JSONParse%":"object"==typeof JSON?JSON.parse:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&c?s((new Map)[Symbol.iterator]()):void 0,"%MapPrototype%":"undefined"==typeof Map?void 0:Map.prototype,"%Math%":Math,"%Number%":Number,"%NumberPrototype%":Number.prototype,"%Object%":Object,"%ObjectPrototype%":Object.prototype,"%ObjProto_toString%":Object.prototype.toString,"%ObjProto_valueOf%":Object.prototype.valueOf,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%PromisePrototype%":"undefined"==typeof Promise?void 0:Promise.prototype,"%PromiseProto_then%":"undefined"==typeof Promise?void 0:Promise.prototype.then,"%Promise_all%":"undefined"==typeof Promise?void 0:Promise.all,"%Promise_reject%":"undefined"==typeof Promise?void 0:Promise.reject,"%Promise_resolve%":"undefined"==typeof Promise?void 0:Promise.resolve,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%RangeErrorPrototype%":RangeError.prototype,"%ReferenceError%":ReferenceError,"%ReferenceErrorPrototype%":ReferenceError.prototype,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%RegExpPrototype%":RegExp.prototype,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&c?s((new Set)[Symbol.iterator]()):void 0,"%SetPrototype%":"undefined"==typeof Set?void 0:Set.prototype,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%SharedArrayBufferPrototype%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer.prototype,"%String%":String,"%StringIteratorPrototype%":c?s(""[Symbol.iterator]()):void 0,"%StringPrototype%":String.prototype,"%Symbol%":c?Symbol:void 0,"%SymbolPrototype%":c?Symbol.prototype:void 0,"%SyntaxError%":SyntaxError,"%SyntaxErrorPrototype%":SyntaxError.prototype,"%ThrowTypeError%":a,"%TypedArray%":l,"%TypedArrayPrototype%":l?l.prototype:void 0,"%TypeError%":r,"%TypeErrorPrototype%":r.prototype,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ArrayPrototype%":"undefined"==typeof Uint8Array?void 0:Uint8Array.prototype,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint8ClampedArrayPrototype%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray.prototype,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint16ArrayPrototype%":"undefined"==typeof Uint16Array?void 0:Uint16Array.prototype,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%Uint32ArrayPrototype%":"undefined"==typeof Uint32Array?void 0:Uint32Array.prototype,"%URIError%":URIError,"%URIErrorPrototype%":URIError.prototype,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakMapPrototype%":"undefined"==typeof WeakMap?void 0:WeakMap.prototype,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet,"%WeakSetPrototype%":"undefined"==typeof WeakSet?void 0:WeakSet.prototype},f=n(120).call(Function.call,String.prototype.replace),p=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,b=/\\(\\)?/g,h=function(e){var t=[];return f(e,p,(function(e,n,r,o){t[t.length]=r?f(o,b,"$1"):n||e})),t},v=function(e,t){if(!(e in d))throw new SyntaxError("intrinsic "+e+" does not exist!");if(void 0===d[e]&&!t)throw new r("intrinsic "+e+" exists, but is not available. Please file an issue!");return d[e]};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new TypeError("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new TypeError('"allowMissing" argument must be a boolean');for(var n=h(e),i=v("%"+(n.length>0?n[0]:"")+"%",t),a=1;a<n.length;a+=1)if(null!=i)if(o&&a+1>=n.length){var c=o(i,n[a]);if(!t&&!(n[a]in i))throw new r("base intrinsic for "+e+" exists, but the property is not available.");i=c&&"get"in c&&!("originalValue"in c.get)?c.get:i[n[a]]}else i=i[n[a]];return i}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(13),o="undefined"==typeof window?r.useEffect:r.useLayoutEffect},,function(e,t,n){"use strict";function r(e,t){return function(e){return"function"==typeof e}(e)?e(t):e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(13);function o(e){return Object(r.useState)(e)[0]}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(13);function o(e,t){void 0===t&&(t=null),e&&("function"==typeof e?e(t):e.current=t)}function i(e,t){return Object(r.useMemo)((function(){return null==e&&null==t?null:function(n){o(e,n),o(t,n)}}),[e,t])}},function(e,t){!function(){e.exports=this.wp.isShallowEqual}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(13),o=n(62),i=n(68);function a(e){void 0===e&&(e={});var t=Object(o.a)(e).baseId,n=Object(r.useContext)(i.a),a=Object(r.useRef)(0),c=Object(r.useState)((function(){return t||n()}));return{baseId:c[0],unstable_setBaseId:c[1],unstable_idCountRef:a}}a.__keys=["baseId","unstable_setBaseId","unstable_idCountRef"]},function(e,t,n){var r;!function(o){var i=/^\s+/,a=/\s+$/,c=0,s=o.round,u=o.min,l=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,c=null,s=null,d=!1,f=!1;"string"==typeof e&&(e=function(e){e=e.replace(i,"").replace(a,"").toLowerCase();var t,n=!1;if(D[e])e=D[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:N(t[1]),g:N(t[2]),b:N(t[3]),a:z(t[4]),format:n?"name":"hex8"};if(t=K.hex6.exec(e))return{r:N(t[1]),g:N(t[2]),b:N(t[3]),format:n?"name":"hex"};if(t=K.hex4.exec(e))return{r:N(t[1]+""+t[1]),g:N(t[2]+""+t[2]),b:N(t[3]+""+t[3]),a:z(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=K.hex3.exec(e))return{r:N(t[1]+""+t[1]),g:N(t[2]+""+t[2]),b:N(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==typeof e&&(W(e.r)&&W(e.g)&&W(e.b)?(p=e.r,b=e.g,h=e.b,t={r:255*I(p,255),g:255*I(b,255),b:255*I(h,255)},d=!0,f="%"===String(e.r).substr(-1)?"prgb":"rgb"):W(e.h)&&W(e.s)&&W(e.v)?(r=L(e.s),c=L(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),i=e-r,a=n*(1-t),c=n*(1-i*t),s=n*(1-(1-i)*t),u=r%6;return{r:255*[n,c,a,a,s,n][u],g:255*[s,n,n,c,a,a][u],b:255*[a,a,s,n,n,c][u]}}(e.h,r,c),d=!0,f="hsv"):W(e.h)&&W(e.s)&&W(e.l)&&(r=L(e.s),s=L(e.l),t=function(e,t,n){var r,o,i;function a(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=i=n;else{var c=n<.5?n*(1+t):n+t-n*t,s=2*n-c;r=a(s,c,e+1/3),o=a(s,c,e),i=a(s,c,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,r,s),d=!0,f="hsl"),e.hasOwnProperty("a")&&(n=e.a));var p,b,h;return n=T(n),{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:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=s(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=s(this._r)),this._g<1&&(this._g=s(this._g)),this._b<1&&(this._b=s(this._b)),this._ok=n.ok,this._tc_id=c++}function p(e,t,n){e=I(e,255),t=I(t,255),n=I(n,255);var r,o,i=l(e,t,n),a=u(e,t,n),c=(i+a)/2;if(i==a)r=o=0;else{var s=i-a;switch(o=c>.5?s/(2-i-a):s/(i+a),i){case e:r=(t-n)/s+(t<n?6:0);break;case t:r=(n-e)/s+2;break;case n:r=(e-t)/s+4}r/=6}return{h:r,s:o,l:c}}function b(e,t,n){e=I(e,255),t=I(t,255),n=I(n,255);var r,o,i=l(e,t,n),a=u(e,t,n),c=i,s=i-a;if(o=0===i?0:s/i,i==a)r=0;else{switch(i){case e:r=(t-n)/s+(t<n?6:0);break;case t:r=(n-e)/s+2;break;case n:r=(e-t)/s+4}r/=6}return{h:r,s:o,v:c}}function h(e,t,n,r){var o=[A(s(e).toString(16)),A(s(t).toString(16)),A(s(n).toString(16))];return r&&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[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function v(e,t,n,r){return[A(F(r)),A(s(e).toString(16)),A(s(t).toString(16)),A(s(n).toString(16))].join("")}function m(e,t){t=0===t?0:t||10;var n=f(e).toHsl();return n.s-=t/100,n.s=R(n.s),f(n)}function y(e,t){t=0===t?0:t||10;var n=f(e).toHsl();return n.s+=t/100,n.s=R(n.s),f(n)}function g(e){return f(e).desaturate(100)}function O(e,t){t=0===t?0:t||10;var n=f(e).toHsl();return n.l+=t/100,n.l=R(n.l),f(n)}function j(e,t){t=0===t?0:t||10;var n=f(e).toRgb();return n.r=l(0,u(255,n.r-s(-t/100*255))),n.g=l(0,u(255,n.g-s(-t/100*255))),n.b=l(0,u(255,n.b-s(-t/100*255))),f(n)}function w(e,t){t=0===t?0:t||10;var n=f(e).toHsl();return n.l-=t/100,n.l=R(n.l),f(n)}function k(e,t){var n=f(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,f(n)}function _(e){var t=f(e).toHsl();return t.h=(t.h+180)%360,f(t)}function S(e){var t=f(e).toHsl(),n=t.h;return[f(e),f({h:(n+120)%360,s:t.s,l:t.l}),f({h:(n+240)%360,s:t.s,l:t.l})]}function E(e){var t=f(e).toHsl(),n=t.h;return[f(e),f({h:(n+90)%360,s:t.s,l:t.l}),f({h:(n+180)%360,s:t.s,l:t.l}),f({h:(n+270)%360,s:t.s,l:t.l})]}function x(e){var t=f(e).toHsl(),n=t.h;return[f(e),f({h:(n+72)%360,s:t.s,l:t.l}),f({h:(n+216)%360,s:t.s,l:t.l})]}function C(e,t,n){t=t||6,n=n||30;var r=f(e).toHsl(),o=360/n,i=[f(e)];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(f(r));return i}function P(e,t){t=t||6;for(var n=f(e).toHsv(),r=n.h,o=n.s,i=n.v,a=[],c=1/t;t--;)a.push(f({h:r,s:o,v:i})),i=(i+c)%1;return a}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=T(e),this._roundA=s(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=s(360*e.h),n=s(100*e.s),r=s(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=s(360*e.h),n=s(100*e.s),r=s(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=[A(s(e).toString(16)),A(s(t).toString(16)),A(s(n).toString(16)),A(F(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:s(this._r),g:s(this._g),b:s(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+s(this._r)+", "+s(this._g)+", "+s(this._b)+")":"rgba("+s(this._r)+", "+s(this._g)+", "+s(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:s(100*I(this._r,255))+"%",g:s(100*I(this._g,255))+"%",b:s(100*I(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+s(100*I(this._r,255))+"%, "+s(100*I(this._g,255))+"%, "+s(100*I(this._b,255))+"%)":"rgba("+s(100*I(this._r,255))+"%, "+s(100*I(this._g,255))+"%, "+s(100*I(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(M[h(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+v(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=f(e);n="#"+v(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(O,arguments)},brighten:function(){return this._applyModification(j,arguments)},darken:function(){return this._applyModification(w,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(k,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(C,arguments)},complement:function(){return this._applyCombination(_,arguments)},monochromatic:function(){return this._applyCombination(P,arguments)},splitcomplement:function(){return this._applyCombination(x,arguments)},triad:function(){return this._applyCombination(S,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]:L(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,a,c=null,s=0;o=(n=n||{}).includeFallbackColors,i=n.level,a=n.size;for(var u=0;u<t.length;u++)(r=f.readability(e,t[u]))>s&&(s=r,c=f(t[u]));return f.isReadable(e,c,{level:i,size:a})||!o?c:(n.includeFallbackColors=!1,f.mostReadable(e,["#fff","#000"],n))};var D=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"},M=f.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(D);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=u(t,l(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 u(1,l(0,e))}function N(e){return parseInt(e,16)}function A(e){return 1==e.length?"0"+e:""+e}function L(e){return e<=1&&(e=100*e+"%"),e}function F(e){return o.round(255*parseFloat(e)).toString(16)}function z(e){return N(e)/255}var B,H,V,K=(H="[\\s|\\(]+("+(B="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+B+")[,|\\s]+("+B+")\\s*\\)?",V="[\\s|\\(]+("+B+")[,|\\s]+("+B+")[,|\\s]+("+B+")[,|\\s]+("+B+")\\s*\\)?",{CSS_UNIT:new RegExp(B),rgb:new RegExp("rgb"+H),rgba:new RegExp("rgba"+V),hsl:new RegExp("hsl"+H),hsla:new RegExp("hsla"+V),hsv:new RegExp("hsv"+H),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 W(e){return!!K.CSS_UNIT.exec(e)}e.exports?e.exports=f:void 0===(r=function(){return f}.call(t,n,t,e))||(e.exports=r)}(Math)},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(15),o=n(51),i=n(50),a=n(56),c=Object(i.a)({name:"Box",keys:["unstable_system"],propsAreEqual:function(e,t){var n=e.unstable_system,o=Object(r.a)(e,["unstable_system"]),i=t.unstable_system,c=Object(r.a)(t,["unstable_system"]);return!(n!==i&&!Object(a.a)(n,i))&&Object(a.a)(o,c)}});Object(o.a)({as:"div",useHook:c})},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(13);var o=Object(r.createContext)((function(e){return void 0===e&&(e="id"),(e?e+"-":"")+Math.random().toString(32).substr(2,6)}))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(57);function o(e){var t=Object(r.a)(e);if(!t)return!1;if(e.contains(t))return!0;var n=t.getAttribute("aria-activedescendant");return!!n&&(n===e.id||!!e.querySelector("#"+n))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=["button","color","file","image","reset","submit"];function o(e){if("BUTTON"===e.tagName)return!0;if("INPUT"===e.tagName){var t=e;return-1!==r.indexOf(t.type)}return!1}},function(e,t,n){"use strict";function r(e,t){return"matches"in e?e.matches(t):"msMatchesSelector"in e?e.msMatchesSelector(t):e.webkitMatchesSelector(t)}function o(e,t){if("closest"in e)return e.closest(t);do{if(r(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return s}));var i=n(57),a="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])";function c(e){return r(e,a)&&function(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0}(e)}function s(e){for(;e&&!c(e);)e=o(e,a);return e}function u(e){return Object(i.a)(e)===e}function l(e,t){var n=void 0===t?{}:t,r=n.isActive,o=void 0===r?u:r,i=n.preventScroll;return o(e)?-1:(e.focus({preventScroll:i}),o(e)?-1:requestAnimationFrame((function(){e.focus({preventScroll:i})})))}},function(e,t,n){"use strict";function r(e){return t=e.currentTarget,n=e.target,!(t===n||t.contains(n));var t,n}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(15),o=n(51),i=n(50),a=n(67),c=n(13),s=n(63),u=n(71),l=(n(81),n(48)),d=n(59),f=n(70),p=n(73),b=n(57),h=n(72);function v(e){return"undefined"!=typeof window&&-1!==window.navigator.userAgent.indexOf(e)}var m=v("Mac")&&!v("Chrome")&&(v("Safari")||v("Firefox"));function y(e){Object(f.a)(e)||e.focus()}var g=Object(i.a)({name:"Tabbable",compose:a.a,keys:["disabled","focusable"],useOptions:function(e,t){var n=t.disabled;return Object(r.b)({disabled:n},e)},useProps:function(e,t){var n=t.ref,o=t.tabIndex,i=t.onClick,a=t.onMouseDown,f=t.style,v=Object(r.a)(t,["ref","tabIndex","onClick","onMouseDown","style"]),g=Object(c.useRef)(null),O=Object(l.a)(i),j=Object(l.a)(a),w=e.disabled&&!e.focusable,k=Object(c.useState)(!0),_=k[0],S=k[1],E=_?o:o||0,x=e.disabled?Object(r.b)({pointerEvents:"none"},f):f,C=function(){if(m){var e=Object(c.useState)(null),t=e[0],n=e[1];return Object(c.useEffect)((function(){t&&(y(t),n(null))}),[t]),Object(c.useCallback)((function(e){var t=e.currentTarget;if(!Object(p.a)(e)&&Object(u.a)(t)){var r=Object(b.a)(t);if(r){var o="BODY"===r.tagName,i=Object(h.b)(t.parentElement);if(r===i||o&&!i)n(t);else if(i){i.addEventListener("focusin",(function(){return n(t)}),{once:!0})}else{r.addEventListener("blur",(function(){return y(t)}),{once:!0})}}}}),[])}}();Object(d.a)((function(){var e,t=g.current;t&&("BUTTON"!==(e=t).tagName&&"INPUT"!==e.tagName&&"SELECT"!==e.tagName&&"TEXTAREA"!==e.tagName&&"A"!==e.tagName&&"AUDIO"!==e.tagName&&"VIDEO"!==e.tagName&&S(!1))}),[]);var P=Object(c.useCallback)((function(t){var n;if(e.disabled)return t.stopPropagation(),void t.preventDefault();null===(n=O.current)||void 0===n||n.call(O,t)}),[e.disabled]),D=Object(c.useCallback)((function(t){var n;if(e.disabled)return t.stopPropagation(),void t.preventDefault();null===(n=j.current)||void 0===n||n.call(j,t),t.defaultPrevented||null==C||C(t)}),[e.disabled,C]);return Object(r.b)({ref:Object(s.a)(g,n),style:x,tabIndex:w?void 0:E,disabled:!(!w||!_)||void 0,"aria-disabled":!!e.disabled||void 0,onClick:P,onMouseDown:D},v)}});Object(o.a)({as:"div",useHook:g})},function(e,t){!function(){e.exports=this.wp.date}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(13),o=Object(r.createContext)({})},,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";n.d(t,"a",(function(){return a}));var r=n(13),o=n(76),i=n(55);var a=function(e,t,n){void 0===n&&(n=t.children);var a=Object(r.useContext)(o.a);if(a.useCreateElement)return a.useCreateElement(e,t,n);if("string"==typeof e&&function(e){return"function"==typeof e}(n)){t.children;return n(Object(i.b)(t,["children"]))}return Object(r.createElement)(e,t,n)}},,function(e,t,n){"use strict";n(108),n(13)},function(e,t,n){"use strict";function r(e){var t=void 0===e?{}:e,n=t.keyMap,r=t.onKey,o=t.stopPropagation,i=t.onKeyDown,a=t.shouldKeyDown,c=void 0===a?function(){return!0}:a,s=t.preventDefault,u=void 0===s||s;return function(e){if(n){var t,a="function"==typeof n?n(e):n,s="function"==typeof u?u(e):u,l="function"==typeof o?o(e):o;if(e.key in a){var d=a[e.key];if("function"==typeof d&&c(e))return s&&e.preventDefault(),l&&e.stopPropagation(),r&&r(e),void d(e)}if(i&&"current"in i)null===(t=i.current)||void 0===t||t.call(i,e);else null==i||i(e)}}}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";var r=n(21),o=n(22),i=n(23),a=n(24),c=n(19),s=n(0),u=n(2),l=n(114),d=n(172);function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(c.a)(e);if(t){var o=Object(c.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(a.a)(this,n)}}var p=function(e){Object(i.a)(n,e);var t=f(n);function n(){var e;return Object(r.a)(this,n),(e=t.apply(this,arguments)).delayedSetIsOver=Object(u.debounce)((function(t){return e.setState({isOver:t})}),700),e.cancelIsMouseDown=e.createSetIsMouseDown(!1),e.isInMouseDown=!1,e.state={isOver:!1},e}return Object(o.a)(n,[{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===s.Children.count(n)){var r=s.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(u.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,o=e.shortcut;if(1!==s.Children.count(t))return t;var i=s.Children.only(t),a=this.state.isOver;return Object(s.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(s.concatChildren)(i.props.children,a&&Object(s.createElement)(l.a,{focusOnMount:!1,position:n,className:"components-tooltip","aria-hidden":"true",animate:!1,noArrow:!0},r,Object(s.createElement)(d.a,{className:"components-tooltip__shortcut",shortcut:o})))})}}]),n}(s.Component);t.a=p},function(e,t,n){"use strict";var r=n(5),o=n(8),i=n(14),a=n(0),c=n(7),s=n(151);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.a=function(e){var t=e.icon,n=void 0===t?null:t,r=e.size,u=Object(i.a)(e,["icon","size"]);if("string"==typeof n)return Object(a.createElement)(s.a,Object(o.a)({icon:n},u));if(n&&s.a===n.type)return Object(a.cloneElement)(n,l({},u));var d=r||24;if("function"==typeof n)return n.prototype instanceof a.Component?Object(a.createElement)(n,l({size:d},u)):n(l({size:d},u));if(n&&("svg"===n.type||n.type===c.SVG)){var f=l(l({width:d,height:d},n.props),u);return Object(a.createElement)(c.SVG,f)}return Object(a.isValidElement)(n)?Object(a.cloneElement)(n,l({size:d},u)):n}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(15),o=n(51),i=n(50),a=n(13),c=n(71),s=(n(81),n(48)),u=n(54),l=n(74);var d=Object(i.a)({name:"Clickable",compose:l.a,keys:["unstable_clickOnEnter","unstable_clickOnSpace"],useOptions:function(e){var t=e.unstable_clickOnEnter,n=void 0===t||t,o=e.unstable_clickOnSpace,i=void 0===o||o,a=Object(r.a)(e,["unstable_clickOnEnter","unstable_clickOnSpace"]);return Object(r.b)({unstable_clickOnEnter:n,unstable_clickOnSpace:i},a)},useProps:function(e,t){var n=t.onKeyDown,o=t.onKeyUp,i=Object(r.a)(t,["onKeyDown","onKeyUp"]),l=Object(a.useState)(!1),d=l[0],f=l[1],p=Object(s.a)(n),b=Object(s.a)(o),h=Object(a.useCallback)((function(t){var n;if(null===(n=p.current)||void 0===n||n.call(p,t),!t.defaultPrevented&&!e.disabled&&!t.metaKey&&Object(u.a)(t)){var r=e.unstable_clickOnEnter&&"Enter"===t.key,o=e.unstable_clickOnSpace&&" "===t.key;if(r||o){if(function(e){var t=e.currentTarget;return!!e.isTrusted&&(Object(c.a)(t)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||"A"===t.tagName||"SELECT"===t.tagName)}(t))return;t.preventDefault(),r?t.currentTarget.click():o&&f(!0)}}}),[e.disabled,e.unstable_clickOnEnter,e.unstable_clickOnSpace]),v=Object(a.useCallback)((function(t){var n;if(null===(n=b.current)||void 0===n||n.call(b,t),!t.defaultPrevented&&!e.disabled&&!t.metaKey){var r=e.unstable_clickOnSpace&&" "===t.key;d&&r&&(f(!1),t.currentTarget.click())}}),[e.disabled,e.unstable_clickOnSpace,d]);return Object(r.b)({"data-active":d||void 0,onKeyDown:h,onKeyUp:v},i)}});Object(o.a)({as:"button",memo:!0,useHook:d})},function(e,t,n){e.exports=n(374)},function(e,t){!function(){e.exports=this.wp.warning}()},function(e,t,n){"use strict";var r=n(0),o=Object(r.createContext)();t.a=o},,function(e,t,n){"use strict";var r=n(335);e.exports=function(e){return"symbol"==typeof e?"Symbol":r(e)}},function(e,t,n){"use strict";var r=n(120);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},function(e,t,n){"use strict";var r=n(103),o=n(239),i=n(240),a=n(371),c=i();r(c,{getPolyfill:i,implementation:o,shim:a}),e.exports=c},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(15),o=n(51),i=n(50),a=n(13),c=n(68),s=n(65),u=Object(i.a)({useState:s.a,keys:["id"],useOptions:function(e,t){var n=Object(a.useContext)(c.a),o=Object(a.useState)((function(){return e.unstable_idCountRef?(e.unstable_idCountRef.current+=1,"-"+e.unstable_idCountRef.current):e.baseId?"-"+n(""):""}))[0],i=Object(a.useMemo)((function(){return e.baseId||n()}),[e.baseId,n]),s=t.id||e.id||""+i+o;return Object(r.b)(Object(r.b)({},e),{},{id:s})},useProps:function(e,t){return Object(r.b)({id:e.id},t)}});Object(o.a)({as:"div",useHook:u})},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(126);function o(e,t,n){return e.dispatchEvent(Object(r.a)(e,t,n))}},function(e,t,n){"use strict";function r(e){try{var t=e instanceof HTMLInputElement&&null!==e.selectionStart,n="TEXTAREA"===e.tagName,r="true"===e.contentEditable;return t||n||r||!1}catch(e){return!1}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){e.value=t}n.d(t,"a",(function(){return r}))},,,function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function c(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!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:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var s,u=[],l=!1,d=-1;function f(){l&&s&&(l=!1,s.length?u=s.concat(u):d=-1,u.length&&p())}function p(){if(!l){var e=c(f);l=!0;for(var t=u.length;t;){for(s=u,u=[];++d<t;)s&&s[d].run();d=-1,t=u.length}s=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function b(e,t){this.fun=e,this.array=t}function h(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new b(e,t)),1!==u.length||l||c(p)},b.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=h,o.addListener=h,o.once=h,o.off=h,o.removeListener=h,o.removeAllListeners=h,o.emit=h,o.prependListener=h,o.prependOnceListener=h,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){"use strict";var r=n(187),o="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),i=Object.prototype.toString,a=Array.prototype.concat,c=Object.defineProperty,s=c&&function(){var e={};try{for(var t in c(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(e){return!1}}(),u=function(e,t,n,r){var o;(!(t in e)||"function"==typeof(o=r)&&"[object Function]"===i.call(o)&&r())&&(s?c(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0}):e[t]=n)},l=function(e,t){var n=arguments.length>2?arguments[2]:{},i=r(t);o&&(i=a.call(i,Object.getOwnPropertySymbols(t)));for(var c=0;c<i.length;c+=1)u(e,i[c],t[i[c]],n[i[c]])};l.supportsDescriptors=!!s,e.exports=l},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(49);function o(e,t,n){if(void 0===n&&(n={}),"function"==typeof KeyboardEvent)return new KeyboardEvent(t,n);var o=Object(r.a)(e).createEvent("KeyboardEvent");return o.initKeyboardEvent(t,n.bubbles,n.cancelable,function(e){return Object(r.a)(e).defaultView||window}(e),n.key,n.location,n.ctrlKey,n.altKey,n.shiftKey,n.metaKey),o}function i(e,t,n){return e.dispatchEvent(o(e,t,n))}},,,,function(e,t,n){"use strict"},,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.",i="Move forward to switch to the next month.",a="page up and page down keys",c="Home and end keys",s="Escape key",u="Select the date in focus.",l="Move backward (left) and forward (right) by one day.",d="Move backward (up) and forward (down) by one week.",f="Return to the date input field.",p="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.",b=function(e){var t=e.date;return"Choose "+String(t)+" as your check-in date. It’s available."},h=function(e){var t=e.date;return"Choose "+String(t)+" as your check-out date. It’s available."},v=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:i,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:a,homeEnd:c,escape:s,questionMark:"Question mark",selectFocusedDate:u,moveFocusByOneDay:l,moveFocusByOneWeek:d,moveFocusByOneMonth:"Switch months.",moveFocustoStartAndEndOfWeek:"Go to the first or last day of a week.",returnFocusToInput:f,keyboardNavigationInstructions:p,chooseAvailableStartDate:b,chooseAvailableEndDate:h,dateIsUnavailable:m,dateIsSelected:y};t.DateRangePickerPhrases={calendarLabel:"Calendar",closeDatePicker:"Close",clearDates:"Clear Dates",focusStartDate:r,jumpToPrevMonth:o,jumpToNextMonth:i,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:a,homeEnd:c,escape:s,questionMark:"Question mark",selectFocusedDate:u,moveFocusByOneDay:l,moveFocusByOneWeek:d,moveFocusByOneMonth:"Switch months.",moveFocustoStartAndEndOfWeek:"Go to the first or last day of a week.",returnFocusToInput:f,keyboardNavigationInstructions:p,chooseAvailableStartDate:b,chooseAvailableEndDate:h,dateIsUnavailable:m,dateIsSelected:y},t.DateRangePickerInputPhrases={focusStartDate:r,clearDates:"Clear Dates",keyboardNavigationInstructions:p},t.SingleDatePickerPhrases={calendarLabel:"Calendar",closeDatePicker:"Close",clearDate:"Clear Date",jumpToPrevMonth:o,jumpToNextMonth:i,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:a,homeEnd:c,escape:s,questionMark:"Question mark",selectFocusedDate:u,moveFocusByOneDay:l,moveFocusByOneWeek:d,moveFocusByOneMonth:"Switch months.",moveFocustoStartAndEndOfWeek:"Go to the first or last day of a week.",returnFocusToInput:f,keyboardNavigationInstructions:p,chooseAvailableDate:v,dateIsUnavailable:m,dateIsSelected:y},t.SingleDatePickerInputPhrases={clearDate:"Clear Date",keyboardNavigationInstructions:p},t.DayPickerPhrases={calendarLabel:"Calendar",jumpToPrevMonth:o,jumpToNextMonth:i,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:a,homeEnd:c,escape:s,questionMark:"Question mark",selectFocusedDate:u,moveFocusByOneDay:l,moveFocusByOneWeek:d,moveFocusByOneMonth:"Switch months.",moveFocustoStartAndEndOfWeek:"Go to the first or last day of a week.",returnFocusToInput:f,chooseAvailableStartDate:b,chooseAvailableEndDate:h,chooseAvailableDate:v,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:a,homeEnd:c,escape:s,questionMark:"Question mark",selectFocusedDate:u,moveFocusByOneDay:l,moveFocusByOneWeek:d,moveFocusByOneMonth:"Switch months.",moveFocustoStartAndEndOfWeek:"Go to the first or last day of a week.",returnFocusToInput:f},t.DayPickerNavigationPhrases={jumpToPrevMonth:o,jumpToNextMonth:i},t.CalendarDayPhrases={chooseAvailableDate:v,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=i(n(95)),o=i(n(28));function i(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;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.withStyles=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.stylesPropName,c=void 0===n?"styles":n,l=t.themePropName,f=void 0===l?"theme":l,m=t.cssPropName,w=void 0===m?"css":m,k=t.flushBefore,_=void 0!==k&&k,S=t.pureComponent,E=void 0!==S&&S,x=void 0,C=void 0,P=void 0,D=void 0,M=g(E);function T(e){return e===u.DIRECTIONS.LTR?d.default.resolveLTR:d.default.resolveRTL}function I(e){return e===u.DIRECTIONS.LTR?P:D}function R(t,n){var r=I(t),o=t===u.DIRECTIONS.LTR?x:C,i=d.default.get();return o&&r===i||(t===u.DIRECTIONS.RTL?(C=e?d.default.createRTL(e):y,D=i,o=C):(x=e?d.default.createLTR(e):y,P=i,o=x)),o}function N(e,t){return{resolveMethod:T(e),styleDef:R(e)}}return function(e){var t=e.displayName||e.name||"Component",n=function(t){function n(e,t){p(this,n);var r=b(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t)),o=r.context[u.CHANNEL]?r.context[u.CHANNEL].getState():j;return r.state=N(o),r}return h(n,t),o(n,[{key:"componentDidMount",value:function(){var e=this;this.context[u.CHANNEL]&&(this.channelUnsubscribe=this.context[u.CHANNEL].subscribe((function(t){e.setState(N(t))})))}},{key:"componentWillUnmount",value:function(){this.channelUnsubscribe&&this.channelUnsubscribe()}},{key:"render",value:function(){var t;_&&d.default.flush();var n=this.state,o=n.resolveMethod,i=n.styleDef;return a.default.createElement(e,r({},this.props,(v(t={},f,d.default.get()),v(t,c,i()),v(t,w,o),t)))}}]),n}(M);return n.WrappedComponent=e,n.displayName="withStyles("+String(t)+")",n.contextTypes=O,e.propTypes&&(n.propTypes=(0,i.default)({},e.propTypes),delete n.propTypes[c],delete n.propTypes[f],delete n.propTypes[w]),e.defaultProps&&(n.defaultProps=(0,i.default)({},e.defaultProps)),(0,s.default)(n,e)}};var i=f(n(95)),a=f(n(13)),c=f(n(28)),s=f(n(388)),u=n(391),l=f(n(392)),d=f(n(237));function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(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}function h(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)}function v(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:c.default.object.isRequired,theme:c.default.object.isRequired,css:c.default.func.isRequired};var m={},y=function(){return m};function g(e){if(e){if(!a.default.PureComponent)throw new ReferenceError("withStyles() pureComponent option requires React 15.3.0 or later");return a.default.PureComponent}return a.default.Component}var O=v({},u.CHANNEL,l.default),j=u.DIRECTIONS.LTR},function(e,t,n){"use strict";var r=n(8),o=n(21),i=n(22),a=n(16),c=n(23),s=n(24),u=n(19),l=n(0),d=n(2),f=n(10);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(s.a)(this,n)}}var b=["button","submit"];t.a=Object(f.createHigherOrderComponent)((function(e){return function(t){Object(c.a)(s,t);var n=p(s);function s(){var e;return Object(o.a)(this,s),(e=n.apply(this,arguments)).bindNode=e.bindNode.bind(Object(a.a)(e)),e.cancelBlurCheck=e.cancelBlurCheck.bind(Object(a.a)(e)),e.queueBlurCheck=e.queueBlurCheck.bind(Object(a.a)(e)),e.normalizeButtonFocus=e.normalizeButtonFocus.bind(Object(a.a)(e)),e}return Object(i.a)(s,[{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)(b,e.type)}return!1}(n)&&(this.preventBlurCheck=!0)}},{key:"render",value:function(){return Object(l.createElement)("div",{onFocus:this.cancelBlurCheck,onMouseDown:this.normalizeButtonFocus,onMouseUp:this.normalizeButtonFocus,onTouchStart:this.normalizeButtonFocus,onTouchEnd:this.normalizeButtonFocus,onBlur:this.queueBlurCheck},Object(l.createElement)(e,Object(r.a)({ref:this.bindNode},this.props)))}}]),s}(l.Component)}),"withFocusOutside")},function(e,t,n){"use strict";var r=n(8),o=n(12),i=n(14),a=n(0),c=n(9),s=n.n(c),u=n(29),l=n(18),d=n(36),f=n.n(d),p=n(10),b=n(160),h=n(5);function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){Object(h.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e,t,n,r,o,i,a){var c=t.width,s="rtl"===document.documentElement.dir;"left"===n&&s?n="right":"right"===n&&s&&(n="left"),"left"===r&&s?r="right":"right"===r&&s&&(r="left");var u=Math.round(e.left+e.width/2),l={popoverLeft:u,contentWidth:(u-c/2>0?c/2:u)+(u+c/2>window.innerWidth?window.innerWidth-u:c/2)},d=e.left;"right"===r?d=e.right:"middle"!==i&&(d=u);var f=e.right;"left"===r?f=e.left:"middle"!==i&&(f=u);var p,b={popoverLeft:d,contentWidth:d-c>0?c:d},h={popoverLeft:f,contentWidth:f+c>window.innerWidth?window.innerWidth-f:c},v=n,m=null;if(!o)if("center"===n&&l.contentWidth===c)v="center";else if("left"===n&&b.contentWidth===c)v="left";else if("right"===n&&h.contentWidth===c)v="right";else{var y="left"===(v=b.contentWidth>h.contentWidth?"left":"right")?b.contentWidth:h.contentWidth;m=y!==c?y:null}if(p="center"===v?l.popoverLeft:"left"===v?b.popoverLeft:h.popoverLeft,a){var g=a.getBoundingClientRect();p=Math.min(p,g.right-c)}return{xAxis:v,popoverLeft:p,contentWidth:m}}function g(e,t,n,r,o,i,a){var c=t.height;if(o){var s=(Object(u.getScrollContainer)(i)||document.body).getBoundingClientRect().top+c-a;if(e.top<=s)return{yAxis:n,popoverTop:Math.min(e.bottom,s)}}var l=e.top+e.height/2;"bottom"===r?l=e.bottom:"top"===r&&(l=e.top);var d={popoverTop:l,contentHeight:(l-c/2>0?c/2:l)+(l+c/2>window.innerHeight?window.innerHeight-l:c/2)},f={popoverTop:e.top,contentHeight:e.top-10-c>0?c:e.top-10},p={popoverTop:e.bottom,contentHeight:e.bottom+10+c>window.innerHeight?window.innerHeight-10-e.bottom:c},b=n,h=null;if(!o)if("middle"===n&&d.contentHeight===c)b="middle";else if("top"===n&&f.contentHeight===c)b="top";else if("bottom"===n&&p.contentHeight===c)b="bottom";else{var v="top"===(b=f.contentHeight>p.contentHeight?"top":"bottom")?f.contentHeight:p.contentHeight;h=v!==c?v:null}return{yAxis:b,popoverTop:"middle"===b?d.popoverTop:"top"===b?f.popoverTop:p.popoverTop,contentHeight:h}}var O=n(135),j=n(134),w=n(21),k=n(22),_=n(23),S=n(24),E=n(19),x=n(113);function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(E.a)(e);if(t){var o=Object(E.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(S.a)(this,n)}}var P=function(e){Object(_.a)(n,e);var t=C(n);function n(){return Object(w.a)(this,n),t.apply(this,arguments)}return Object(k.a)(n,[{key:"handleFocusOutside",value:function(e){this.props.onFocusOutside(e)}},{key:"render",value:function(){return this.props.children}}]),n}(a.Component),D=Object(x.a)(P),M=n(35),T=n(166),I=n(136),R=n(165),N=n(125),A=n(124),L=Object(j.a)(Object(O.a)((function(e){return e.children})));function F(e,t){var n,r=(n=t).ownerDocument.defaultView.getComputedStyle(n),o=r.paddingTop,i=r.paddingBottom,a=r.paddingLeft,c=r.paddingRight,s=o?parseInt(o,10):0,u=i?parseInt(i,10):0,l=a?parseInt(a,10):0,d=c?parseInt(c,10):0;return{x:e.left+l,y:e.top+s,width:e.width-l-d,height:e.height-s-u,left:e.left+l,right:e.right-d,top:e.top+s,bottom:e.bottom-u}}function z(e,t,n){n?e.getAttribute(t)!==n&&e.setAttribute(t,n):e.hasAttribute(t)&&e.removeAttribute(t)}function B(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";e.style[t]!==n&&(e.style[t]=n)}function H(e,t,n){n?e.classList.contains(t)||e.classList.add(t):e.classList.contains(t)&&e.classList.remove(t)}var V=function(e){var t=e.headerTitle,n=e.onClose,c=e.onKeyDown,d=e.children,h=e.className,v=e.noArrow,O=void 0===v||v,j=e.isAlternate,w=e.position,k=void 0===w?"bottom right":w,_=(e.range,e.focusOnMount),S=void 0===_?"firstElement":_,E=e.anchorRef,x=e.shouldAnchorIncludePadding,C=e.anchorRect,P=e.getAnchorRect,V=e.expandOnMobile,K=e.animate,W=void 0===K||K,U=e.onClickOutside,G=e.onFocusOutside,$=e.__unstableSticky,q=e.__unstableSlotName,Y=void 0===q?"Popover":q,Z=e.__unstableObserveElement,X=e.__unstableBoundaryParent,J=Object(i.a)(e,["headerTitle","onClose","onKeyDown","children","className","noArrow","isAlternate","position","range","focusOnMount","anchorRef","shouldAnchorIncludePadding","anchorRect","getAnchorRect","expandOnMobile","animate","onClickOutside","onFocusOutside","__unstableSticky","__unstableSlotName","__unstableObserveElement","__unstableBoundaryParent"]),Q=Object(a.useRef)(null),ee=Object(a.useRef)(null),te=Object(a.useRef)(),ne=Object(p.useViewportMatch)("medium","<"),re=Object(a.useState)(),oe=Object(o.a)(re,2),ie=oe[0],ae=oe[1],ce=Object(R.a)(Y),se=V&&ne,ue=Object(p.useResizeObserver)(),le=Object(o.a)(ue,2),de=le[0],fe=le[1];O=se||O,Object(a.useLayoutEffect)((function(){if(se)return H(te.current,"is-without-arrow",O),H(te.current,"is-alternate",j),z(te.current,"data-x-axis"),z(te.current,"data-y-axis"),B(te.current,"top"),B(te.current,"left"),B(ee.current,"maxHeight"),void B(ee.current,"maxWidth");var e=function(){if(te.current&&ee.current){var e=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4?arguments[4]:void 0;if(t)return t;if(n){if(!e.current)return;return n(e.current)}if(!1!==r){if(!(r&&window.Range&&window.Element&&window.DOMRect))return;if(r instanceof window.Range)return Object(u.getRectangleFromRange)(r);if(r instanceof window.Element){var i=r.getBoundingClientRect();return o?i:F(i,r)}var a=r.top,c=r.bottom,s=a.getBoundingClientRect(),l=c.getBoundingClientRect(),d=new window.DOMRect(s.left,s.top,s.width,l.bottom-s.top);return o?d:F(d,r)}if(e.current){var f=e.current.parentNode,p=f.getBoundingClientRect();return o?p:F(p,f)}}(Q,C,P,E,x);if(e){var t,n,r=te.current,i=r.offsetParent,a=r.ownerDocument,c=0;if(i&&i!==a.body){var s=i.getBoundingClientRect();c=s.top,e=new window.DOMRect(e.left-s.left,e.top-s.top,e.width,e.height)}if(X)t=null===(n=te.current.closest(".popover-slot"))||void 0===n?void 0:n.parentNode;var l=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"top",r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0,c=arguments.length>6?arguments[6]:void 0,s=n.split(" "),u=Object(o.a)(s,3),l=u[0],d=u[1],f=void 0===d?"center":d,p=u[2],b=g(e,t,l,p,r,i,a),h=y(e,t,f,p,r,b.yAxis,c);return m(m({},h),b)}(e,fe.height?fe:ee.current.getBoundingClientRect(),k,$,te.current,c,t),d=l.popoverTop,f=l.popoverLeft,p=l.xAxis,b=l.yAxis,h=l.contentHeight,v=l.contentWidth;"number"==typeof d&&"number"==typeof f&&(B(te.current,"top",d+"px"),B(te.current,"left",f+"px")),H(te.current,"is-without-arrow",O||"center"===p&&"middle"===b),H(te.current,"is-alternate",j),z(te.current,"data-x-axis",p),z(te.current,"data-y-axis",b),B(ee.current,"maxHeight","number"==typeof h?h+"px":""),B(ee.current,"maxWidth","number"==typeof v?v+"px":"");ae(({left:"right",right:"left"}[p]||"center")+" "+({top:"bottom",bottom:"top"}[b]||"middle"))}}};e();var t,n,r=window.setInterval(e,500),i=function(){window.cancelAnimationFrame(t),t=window.requestAnimationFrame(e)};return window.addEventListener("click",i),window.addEventListener("resize",e),window.addEventListener("scroll",e,!0),Z&&(n=new window.MutationObserver(e)).observe(Z,{attributes:!0}),function(){window.clearInterval(r),window.removeEventListener("resize",e),window.removeEventListener("scroll",e,!0),window.removeEventListener("click",i),window.cancelAnimationFrame(t),n&&n.disconnect()}}),[se,C,P,E,x,k,fe,$,Z,X]),function(e,t){Object(a.useEffect)((function(){var n=setTimeout((function(){if(e&&t.current)if("firstElement"!==e)"container"===e&&t.current.focus();else{var n=u.focus.tabbable.find(t.current)[0];n?n.focus():t.current.focus()}}),0);return function(){return clearTimeout(n)}}),[])}(S,ee);var pe=function(e){e.keyCode===l.ESCAPE&&n&&(e.stopPropagation(),n()),c&&c(e)};var be=Object(a.createElement)(D,{onFocusOutside:function(e){if(G)G(e);else if(U){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}}),f()("Popover onClickOutside prop",{alternative:"onFocusOutside"}),U(t)}else n&&n()}},Object(a.createElement)(A.a,{type:W&&ie?"appear":null,options:{origin:ie}},(function(e){var o=e.className;return Object(a.createElement)(I.a,Object(r.a)({className:s()("components-popover",h,o,{"is-expanded":se,"is-without-arrow":O,"is-alternate":j})},J,{onKeyDown:pe,ref:te}),se&&Object(a.createElement)(T.a,null),se&&Object(a.createElement)("div",{className:"components-popover__header"},Object(a.createElement)("span",{className:"components-popover__header-title"},t),Object(a.createElement)(M.a,{className:"components-popover__close",icon:b.a,onClick:n})),Object(a.createElement)("div",{ref:ee,className:"components-popover__content",tabIndex:"-1"},Object(a.createElement)("div",{style:{position:"relative"}},de,d)))})));return S&&(be=Object(a.createElement)(L,null,be)),ce.ref&&(be=Object(a.createElement)(N.a,{name:Y},be)),E||C?be:Object(a.createElement)("span",{ref:Q},be)};V.Slot=function(e){var t=e.name,n=void 0===t?"Popover":t;return Object(a.createElement)(N.b,{bubblesVirtually:!0,name:n,className:"popover-slot"})};t.a=V},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(177)),i=r(n(178)),a=n(13),c=r(a),s=r(n(148)),u=r(n(179)),l={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(l.str(e)||l.num(e))return e===t;if(l.obj(e)&&l.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!l.und(n)||e===t}};function d(){var e=a.useState(!1)[1];return a.useCallback((function(){return e((function(e){return!e}))}),[])}function f(e,t){return l.und(e)||l.nul(e)?t:e}function p(e){return l.und(e)?[]:l.arr(e)?e:[e]}function b(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return l.fun(e)?e.apply(void 0,n):e}function h(e){var t=function(e){return e.to,e.from,e.config,e.onStart,e.onRest,e.onFrame,e.children,e.reset,e.reverse,e.force,e.immediate,e.delay,e.attach,e.destroyed,e.interpolateTo,e.ref,e.lazy,i(e,["to","from","config","onStart","onRest","onFrame","children","reset","reverse","force","immediate","delay","attach","destroyed","interpolateTo","ref","lazy"])}(e);if(l.und(t))return o({to:t},e);var n=Object.keys(e).reduce((function(n,r){var i;return l.und(t[r])?o({},n,((i={})[r]=e[r],i)):n}),{});return o({to:t},n)}var v,m,y=function(){function e(){this.payload=void 0,this.children=[]}var t=e.prototype;return t.getAnimatedValue=function(){return this.getValue()},t.getPayload=function(){return this.payload||this},t.attach=function(){},t.detach=function(){},t.getChildren=function(){return this.children},t.addChild=function(e){0===this.children.length&&this.attach(),this.children.push(e)},t.removeChild=function(e){var t=this.children.indexOf(e);this.children.splice(t,1),0===this.children.length&&this.detach()},e}(),g=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).payload=[],t.attach=function(){return t.payload.forEach((function(e){return e instanceof y&&e.addChild(u(t))}))},t.detach=function(){return t.payload.forEach((function(e){return e instanceof y&&e.removeChild(u(t))}))},t}return s(t,e),t}(y),O=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).payload={},t.attach=function(){return Object.values(t.payload).forEach((function(e){return e instanceof y&&e.addChild(u(t))}))},t.detach=function(){return Object.values(t.payload).forEach((function(e){return e instanceof y&&e.removeChild(u(t))}))},t}s(t,e);var n=t.prototype;return n.getValue=function(e){void 0===e&&(e=!1);var t={};for(var n in this.payload){var r=this.payload[n];(!e||r instanceof y)&&(t[n]=r instanceof y?r[e?"getAnimatedValue":"getValue"]():r)}return t},n.getAnimatedValue=function(){return this.getValue(!0)},t}(y);function j(e,t){v={fn:e,transform:t}}function w(e){m=e}var k,_=function(e){return"undefined"!=typeof window?window.requestAnimationFrame(e):-1},S=function(e){"undefined"!=typeof window&&window.cancelAnimationFrame(e)};function E(e){k=e}var x,C=function(){return Date.now()};function P(e){x=e}var D,M,T=function(e){return e.current};function I(e){D=e}var R=Object.freeze({get applyAnimatedValues(){return v},injectApplyAnimatedValues:j,get colorNames(){return m},injectColorNames:w,get requestFrame(){return _},get cancelFrame(){return S},injectFrame:function(e,t){_=e,S=t},get interpolation(){return k},injectStringInterpolator:E,get now(){return C},injectNow:function(e){C=e},get defaultElement(){return x},injectDefaultElement:P,get animatedApi(){return T},injectAnimatedApi:function(e){T=e},get createAnimatedStyle(){return D},injectCreateAnimatedStyle:I,get manualFrameloop(){return M},injectManualFrameloop:function(e){M=e}}),N=function(e){function t(t,n){var r;return(r=e.call(this)||this).update=void 0,r.payload=t.style?o({},t,{style:D(t.style)}):t,r.update=n,r.attach(),r}return s(t,e),t}(O),A=!1,L=new Set,F=function e(){if(!A)return!1;var t=C(),n=L,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var i;if(r){if(o>=n.length)break;i=n[o++]}else{if((o=n.next()).done)break;i=o.value}for(var a=i,c=!1,s=0;s<a.configs.length;s++){for(var u=a.configs[s],l=void 0,d=void 0,f=0;f<u.animatedValues.length;f++){var p=u.animatedValues[f];if(!p.done){var b=u.fromValues[f],h=u.toValues[f],v=p.lastPosition,m=h instanceof y,g=Array.isArray(u.initialVelocity)?u.initialVelocity[f]:u.initialVelocity;if(m&&(h=h.getValue()),u.immediate)p.setValue(h),p.done=!0;else if("string"!=typeof b&&"string"!=typeof h){if(void 0!==u.duration)v=b+u.easing((t-p.startTime)/u.duration)*(h-b),l=t>=p.startTime+u.duration;else if(u.decay)v=b+g/(1-.998)*(1-Math.exp(-(1-.998)*(t-p.startTime))),(l=Math.abs(p.lastPosition-v)<.1)&&(h=v);else{d=void 0!==p.lastTime?p.lastTime:t,g=void 0!==p.lastVelocity?p.lastVelocity:u.initialVelocity,t>d+64&&(d=t);for(var O=Math.floor(t-d),j=0;j<O;++j){v+=1*(g+=1*((-u.tension*(v-h)+-u.friction*g)/u.mass)/1e3)/1e3}var w=!(!u.clamp||0===u.tension)&&(b<h?v>h:v<h),k=Math.abs(g)<=u.precision,S=0===u.tension||Math.abs(h-v)<=u.precision;l=w||k&&S,p.lastVelocity=g,p.lastTime=t}m&&!u.toValues[f].done&&(l=!1),l?(p.value!==h&&(v=h),p.done=!0):c=!0,p.setValue(v),p.lastPosition=v}else p.setValue(h),p.done=!0}}a.props.onFrame&&(a.values[u.name]=u.interpolation.getValue())}a.props.onFrame&&a.props.onFrame(a.values),c||(L.delete(a),a.stop(!0))}return L.size?M?M():_(e):A=!1,A};function z(e,t,n){if("function"==typeof e)return e;if(Array.isArray(e))return z({range:e,output:t,extrapolate:n});if(k&&"string"==typeof e.output[0])return k(e);var r=e,o=r.output,i=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",c=r.extrapolateRight||r.extrapolate||"extend",s=r.easing||function(e){return e};return function(e){var t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,i);return function(e,t,n,r,o,i,a,c,s){var u=s?s(e):e;if(u<t){if("identity"===a)return u;"clamp"===a&&(u=t)}if(u>n){if("identity"===c)return u;"clamp"===c&&(u=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?u=-u:n===1/0?u-=t:u=(u-t)/(n-t);u=i(u),r===-1/0?u=-u:o===1/0?u+=r:u=u*(o-r)+r;return u}(e,i[t],i[t+1],o[t],o[t+1],s,a,c,r.map)}}var B=function(e){function t(n,r,o,i){var a;return(a=e.call(this)||this).calc=void 0,a.payload=n instanceof g&&!(n instanceof t)?n.getPayload():Array.isArray(n)?n:[n],a.calc=z(r,o,i),a}s(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=z(e,t,n)},n.interpolate=function(e,n,r){return new t(this,e,n,r)},t}(g);var H=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}s(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 B(this,e,t,n)},t}(y),V=function(e){function t(t){var n;return(n=e.call(this)||this).payload=t.map((function(e){return new H(e)})),n}s(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 B(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=h(e),n=t.delay,r=void 0===n?0:n,a=t.to,c=i(t,["delay","to"]);if(l.arr(a)||l.fun(a))this.queue.push(o({},c,{delay:r,to:a}));else if(a){var s={};Object.entries(a).forEach((function(e){var t,n=e[0],i=e[1],a=o({to:(t={},t[n]=i,t),delay:b(r,n)},c),u=s[a.delay]&&s[a.delay].to;s[a.delay]=o({},s[a.delay],a,{to:o({},u,a.to)})})),this.queue=Object.values(s)}return this.queue=this.queue.sort((function(e,t){return e.delay-t.delay})),this.diff(c),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,a=void 0===i?{}:i;l.obj(r)&&(n.merged=o({},r,n.merged)),l.obj(a)&&(n.merged=o({},n.merged,a))}));var r=this.local=++this.guid,a=this.localQueue=this.queue;this.queue=[],a.forEach((function(t,o){var c=t.delay,s=i(t,["delay"]),u=function(t){o===a.length-1&&r===n.guid&&t&&(n.idle=!0,n.props.onRest&&n.props.onRest(n.merged)),e&&e()},d=l.arr(s.to)||l.fun(s.to);c?setTimeout((function(){r===n.guid&&(d?n.runAsync(s,u):n.diff(s).start(u))}),c):d?n.runAsync(s,u):n.diff(s).start(u)}))}else l.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,L.has(t)||L.add(t),A||(A=!0,_(M||F));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,L.has(t)&&L.delete(t)),this},t.runAsync=function(e,t){var n=this,r=(e.delay,i(e,["delay"])),a=this.local,c=Promise.resolve(void 0);if(l.arr(r.to))for(var s=function(e){var t=e,i=o({},r,h(r.to[t]));l.arr(i.config)&&(i.config=i.config[t]),c=c.then((function(){if(a===n.guid)return new Promise((function(e){return n.diff(i).start(e)}))}))},u=0;u<r.to.length;u++)s(u);else if(l.fun(r.to)){var d,f=0;c=c.then((function(){return r.to((function(e){var t=o({},r,h(e));if(l.arr(t.config)&&(t.config=t.config[f]),f++,a===n.guid)return d=new Promise((function(e){return n.diff(t).start(e)}))}),(function(e){return void 0===e&&(e=!0),n.stop(e)})).then((function(){return d}))}))}c.then(t)},t.diff=function(e){var t=this;this.props=o({},this.props,e);var n=this.props,r=n.from,i=void 0===r?{}:r,a=n.to,c=void 0===a?{}:a,s=n.config,u=void 0===s?{}:s,d=n.reverse,h=n.attach,v=n.reset,y=n.immediate;if(d){var g=[c,i];i=g[0],c=g[1]}this.merged=o({},i,this.merged,c),this.hasChanged=!1;var O=h&&h(this);if(this.animations=Object.entries(this.merged).reduce((function(e,n){var r=n[0],a=n[1],c=e[r]||{},s=l.num(a),d=l.str(a)&&!a.startsWith("#")&&!/\d/.test(a)&&!m[a],h=l.arr(a),g=!s&&!h&&!d,j=l.und(i[r])?a:i[r],w=s||h||d?a:1,_=b(u,r);O&&(w=O.animations[r].parent);var S,E=c.parent,x=c.interpolation,P=p(O?w.getPayload():w),D=a;g&&(D=k({range:[0,1],output:[a,a]})(1));var M,T=x&&x.getValue(),I=!l.und(E)&&c.animatedValues.some((function(e){return!e.done})),R=!l.equ(D,T),N=!l.equ(D,c.previous),A=!l.equ(_,c.config);if(v||N&&R||A){var L;if(s||d)E=x=c.parent||new H(j);else if(h)E=x=c.parent||new V(j);else if(g){var F=c.interpolation&&c.interpolation.calc(c.parent.value);F=void 0===F||v?j:F,c.parent?(E=c.parent).setValue(0,!1):E=new H(0);var z={output:[F,a]};c.interpolation?(x=c.interpolation,c.interpolation.updateConfig(z)):x=E.interpolate(z)}return P=p(O?w.getPayload():w),S=p(E.getPayload()),v&&!g&&E.setValue(j,!1),t.hasChanged=!0,S.forEach((function(e){e.startPosition=e.value,e.lastPosition=e.value,e.lastVelocity=I?e.lastVelocity:void 0,e.lastTime=I?e.lastTime:void 0,e.startTime=C(),e.done=!1,e.animatedStyles.clear()})),b(y,r)&&E.setValue(g?w:a,!1),o({},e,((L={})[r]=o({},c,{name:r,parent:E,interpolation:x,animatedValues:S,toValues:P,previous:D,config:_,fromValues:p(E.getValue()),immediate:b(y,r),initialVelocity:f(_.velocity,0),clamp:f(_.clamp,!1),precision:f(_.precision,.01),tension:f(_.tension,170),friction:f(_.friction,26),mass:f(_.mass,1),duration:_.duration,easing:f(_.easing,(function(e){return e})),decay:_.decay}),L))}return R?e:(g&&(E.setValue(1,!1),x.updateConfig({output:[D,D]})),E.done=!0,t.hasChanged=!0,o({},e,((M={})[r]=o({},e[r],{previous:D}),M)))}),this.animations),this.hasChanged)for(var j in this.configs=Object.values(this.animations),this.values={},this.interpolations={},this.animations)this.interpolations[j]=this.animations[j].interpolation,this.values[j]=this.animations[j].interpolation.getValue();return this},t.destroy=function(){this.stop(),this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.local=0},e}(),U=function(e,t){var n=a.useRef(!1),r=a.useRef(),o=l.fun(t),i=a.useMemo((function(){var n;return r.current&&(r.current.map((function(e){return e.destroy()})),r.current=void 0),[new Array(e).fill().map((function(e,r){var i=new W,a=o?b(t,r,i):t[r];return 0===r&&(n=a.ref),i.update(a),n||i.start(),i})),n]}),[e]),c=i[0],s=i[1];r.current=c;a.useImperativeHandle(s,(function(){return{start:function(){return Promise.all(r.current.map((function(e){return new Promise((function(t){return e.start(t)}))})))},stop:function(e){return r.current.forEach((function(t){return t.stop(e)}))},get controllers(){return r.current}}}));var u=a.useMemo((function(){return function(e){return r.current.map((function(t,n){t.update(o?b(e,n,t):e[n]),s||t.start()}))}}),[e]);a.useEffect((function(){n.current?o||u(t):s||r.current.forEach((function(e){return e.start()}))})),a.useEffect((function(){return n.current=!0,function(){return r.current.forEach((function(e){return e.destroy()}))}}),[]);var d=r.current.map((function(e){return e.getValues()}));return o?[d,u,function(e){return r.current.forEach((function(t){return t.pause(e)}))}]:d},G=0,$=function(e,t){return("function"==typeof t?e.map(t):p(t)).map(String)},q=function(e){var t=e.items,n=e.keys,r=void 0===n?function(e){return e}:n,a=i(e,["items","keys"]);return t=p(void 0!==t?t:null),o({items:t,keys:$(t,r)},a)};function Y(e,t){var n=function(){if(o){if(i>=r.length)return"break";a=r[i++]}else{if((i=r.next()).done)return"break";a=i.value}var n=a.key,c=function(e){return e.key!==n};(l.und(t)||t===n)&&(e.current.instances.delete(n),e.current.transitions=e.current.transitions.filter(c),e.current.deleted=e.current.deleted.filter(c))},r=e.current.deleted,o=Array.isArray(r),i=0;for(r=o?r:r[Symbol.iterator]();;){var a;if("break"===n())break}e.current.forceUpdate()}var Z=function(e){function t(t){var n;return void 0===t&&(t={}),n=e.call(this)||this,!t.transform||t.transform instanceof y||(t=v.transform(t)),n.payload=t,n}return s(t,e),t}(O),X={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},J="[-+]?\\d*\\.?\\d+";function Q(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}var ee=new RegExp("rgb"+Q(J,J,J)),te=new RegExp("rgba"+Q(J,J,J,J)),ne=new RegExp("hsl"+Q(J,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),re=new RegExp("hsla"+Q(J,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",J)),oe=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ie=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ae=/^#([0-9a-fA-F]{6})$/,ce=/^#([0-9a-fA-F]{8})$/;function se(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}function ue(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=se(o,r,e+1/3),a=se(o,r,e),c=se(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*a)<<16|Math.round(255*c)<<8}function le(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function de(e){return(parseFloat(e)%360+360)%360/360}function fe(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function pe(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function be(e){var t,n,r="number"==typeof(t=e)?t>>>0===t&&t>=0&&t<=4294967295?t:null:(n=ae.exec(t))?parseInt(n[1]+"ff",16)>>>0:X.hasOwnProperty(t)?X[t]:(n=ee.exec(t))?(le(n[1])<<24|le(n[2])<<16|le(n[3])<<8|255)>>>0:(n=te.exec(t))?(le(n[1])<<24|le(n[2])<<16|le(n[3])<<8|fe(n[4]))>>>0:(n=oe.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+"ff",16)>>>0:(n=ce.exec(t))?parseInt(n[1],16)>>>0:(n=ie.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+n[4]+n[4],16)>>>0:(n=ne.exec(t))?(255|ue(de(n[1]),pe(n[2]),pe(n[3])))>>>0:(n=re.exec(t))?(ue(de(n[1]),pe(n[2]),pe(n[3]))|fe(n[4]))>>>0:null;return null===r?e:"rgba("+((4278190080&(r=r||0))>>>24)+", "+((16711680&r)>>>16)+", "+((65280&r)>>>8)+", "+(255&r)/255+")"}var he=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ve=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,me=new RegExp("("+Object.keys(X).join("|")+")","g"),ye={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},ge=["Webkit","Ms","Moz","O"];function Oe(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ye.hasOwnProperty(e)&&ye[e]?(""+t).trim():t+"px"}ye=Object.keys(ye).reduce((function(e,t){return ge.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),ye);var je={};I((function(e){return new Z(e)})),P("div"),E((function(e){var t=e.output.map((function(e){return e.replace(ve,be)})).map((function(e){return e.replace(me,be)})),n=t[0].match(he).map((function(){return[]}));t.forEach((function(e){e.match(he).forEach((function(e,t){return n[t].push(+e)}))}));var r=t[0].match(he).map((function(t,r){return z(o({},e,{output:n[r]}))}));return function(e){var n=0;return t[0].replace(he,(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+")"}))}})),w(X),j((function(e,t){if(!e.nodeType||void 0===e.setAttribute)return!1;var n=t.style,r=t.children,o=t.scrollTop,a=t.scrollLeft,c=i(t,["style","children","scrollTop","scrollLeft"]),s="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;for(var u in void 0!==o&&(e.scrollTop=o),void 0!==a&&(e.scrollLeft=a),void 0!==r&&(e.textContent=r),n)if(n.hasOwnProperty(u)){var l=0===u.indexOf("--"),d=Oe(u,n[u],l);"float"===u&&(u="cssFloat"),l?e.style.setProperty(u,d):e.style[u]=d}for(var f in c){var p=s?f:je[f]||(je[f]=f.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(p)&&e.setAttribute(p,c[f])}}),(function(e){return e}));var we,ke,_e=(we=function(e){return a.forwardRef((function(t,n){var r=d(),s=a.useRef(!0),u=a.useRef(null),f=a.useRef(null),p=a.useCallback((function(e){var t=u.current;u.current=new N(e,(function(){var e=!1;f.current&&(e=v.fn(f.current,u.current.getAnimatedValue())),f.current&&!1!==e||r()})),t&&t.detach()}),[]);a.useEffect((function(){return function(){s.current=!1,u.current&&u.current.detach()}}),[]),a.useImperativeHandle(n,(function(){return T(f,s,r)})),p(t);var b,h=u.current.getValue(),m=(h.scrollTop,h.scrollLeft,i(h,["scrollTop","scrollLeft"])),y=(b=e,!l.fun(b)||b.prototype instanceof c.Component?function(e){return f.current=function(e,t){return t&&(l.fun(t)?t(e):l.obj(t)&&(t.current=e)),e}(e,n)}:void 0);return c.createElement(e,o({},m,{ref:y}))}))},void 0===(ke=!1)&&(ke=!0),function(e){return(l.arr(e)?e:Object.keys(e)).reduce((function(e,t){var n=ke?t[0].toLowerCase()+t.substring(1):t;return e[n]=we(n),e}),we)}),Se=_e(["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=_e,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=F,t.animated=Se,t.a=Se,t.interpolate=function(e,t,n){return e&&new B(e,t,n)},t.Globals=R,t.useSpring=function(e){var t=l.fun(e),n=U(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=a.useRef(!1),r=l.fun(t),i=b(t),c=a.useRef(),s=U(e,(function(e,t){return 0===e&&(c.current=[]),c.current.push(t),o({},i,{config:b(i.config,e),attach:e>0&&function(){return c.current[e-1]}})})),u=s[0],d=s[1],f=s[2],p=a.useMemo((function(){return function(e){return d((function(t,n){e.reverse;var r=e.reverse?t+1:t-1,a=c.current[r];return o({},e,{config:b(e.config||i.config,t),attach:a&&function(){return a}})}))}}),[e,i.reverse]);return a.useEffect((function(){n.current&&!r&&p(t)})),a.useEffect((function(){n.current=!0}),[]),r?[u,p,f]:u},t.useTransition=function(e,t,n){var r=o({items:e,keys:t||function(e){return e}},n),c=q(r),s=c.lazy,u=void 0!==s&&s,l=(c.unique,c.reset),f=void 0!==l&&l,p=(c.enter,c.leave,c.update,c.onDestroyed),h=(c.keys,c.items,c.onFrame),v=c.onRest,m=c.onStart,y=c.ref,g=i(c,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),O=d(),j=a.useRef(!1),w=a.useRef({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!r.ref,instances:!j.current&&new Map,forceUpdate:O});return a.useImperativeHandle(r.ref,(function(){return{start:function(){return Promise.all(Array.from(w.current.instances).map((function(e){var t=e[1];return new Promise((function(e){return t.start(e)}))})))},stop:function(e){return Array.from(w.current.instances).forEach((function(t){return t[1].stop(e)}))},get controllers(){return Array.from(w.current.instances).map((function(e){return e[1]}))}}})),w.current=function(e,t){var n=e.first,r=e.prevProps,a=i(e,["first","prevProps"]),c=q(t),s=c.items,u=c.keys,l=c.initial,d=c.from,f=c.enter,p=c.leave,h=c.update,v=c.trail,m=void 0===v?0:v,y=c.unique,g=c.config,O=c.order,j=void 0===O?["enter","leave","update"]:O,w=q(r),k=w.keys,_=w.items,S=o({},a.current),E=[].concat(a.deleted),x=Object.keys(S),C=new Set(x),P=new Set(u),D=u.filter((function(e){return!C.has(e)})),M=a.transitions.filter((function(e){return!e.destroyed&&!P.has(e.originalKey)})).map((function(e){return e.originalKey})),T=u.filter((function(e){return C.has(e)})),I=-m;for(;j.length;){switch(j.shift()){case"enter":D.forEach((function(e,t){y&&E.find((function(t){return t.originalKey===e}))&&(E=E.filter((function(t){return t.originalKey!==e})));var r=u.indexOf(e),o=s[r],i=n&&void 0!==l?"initial":"enter";S[e]={slot:i,originalKey:e,key:y?String(e):G++,item:o,trail:I+=m,config:b(g,o,i),from:b(n&&void 0!==l?l||{}:d,o),to:b(f,o)}}));break;case"leave":M.forEach((function(e){var t=k.indexOf(e),n=_[t];E.unshift(o({},S[e],{slot:"leave",destroyed:!0,left:k[Math.max(0,t-1)],right:k[Math.min(k.length,t+1)],trail:I+=m,config:b(g,n,"leave"),to:b(p,n)})),delete S[e]}));break;case"update":T.forEach((function(e){var t=u.indexOf(e),n=s[t];S[e]=o({},S[e],{item:n,slot:"update",trail:I+=m,config:b(g,n,"update"),to:b(h,n)})}))}}var R=u.map((function(e){return S[e]}));return E.forEach((function(e){var t,n=e.left,r=(e.right,i(e,["left","right"]));-1!==(t=R.findIndex((function(e){return e.originalKey===n})))&&(t+=1),t=Math.max(0,t),R=[].concat(R.slice(0,t),[r],R.slice(t))})),o({},a,{changed:D.length||M.length||T.length,first:n&&0===D.length,transitions:R,current:S,deleted:E,prevProps:t})}(w.current,r),w.current.changed&&w.current.transitions.forEach((function(e){var t=e.slot,n=e.from,r=e.to,i=e.config,a=e.trail,c=e.key,s=e.item;w.current.instances.has(c)||w.current.instances.set(c,new W);var l=w.current.instances.get(c),d=o({},g,{to:r,from:n,config:i,ref:y,onRest:function(n){w.current.mounted&&(e.destroyed&&(y||u||Y(w,c),p&&p(s)),!Array.from(w.current.instances).some((function(e){return!e[1].idle}))&&(y||u)&&w.current.deleted.length>0&&Y(w),v&&v(s,t,n))},onStart:m&&function(){return m(s,t)},onFrame:h&&function(e){return h(s,t,e)},delay:a,reset:f&&"enter"===t});l.update(d),w.current.paused||l.start()})),a.useEffect((function(){return w.current.mounted=j.current=!0,function(){w.current.mounted=j.current=!1,Array.from(w.current.instances).map((function(e){return e[1].destroy()})),w.current.instances.clear()}}),[]),w.current.transitions.map((function(e){var t=e.item,n=e.slot,r=e.key;return{item:t,key:r,state:n,props:w.current.instances.get(r).getValues()}}))},t.useChain=function(e,t,n){void 0===n&&(n=1e3);var r=a.useRef();a.useEffect((function(){l.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 a=i.controllers;if(a.length){var c=n*t[r];a.forEach((function(e){e.queue=e.queue.map((function(e){return o({},e,{delay:e.delay+c})})),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){function n(e,t,n,r){var o,i=null==(o=r)||"number"==typeof o||"boolean"==typeof o?r:n(r),a=t.get(i);return void 0===a&&(a=e.call(this,r),t.set(i,a)),a}function r(e,t,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),i=t.get(o);return void 0===i&&(i=e.apply(this,r),t.set(o,i)),i}function o(e,t,n,r,o){return n.bind(t,e,r,o)}function i(e,t){return o(e,this,1===e.length?n:r,t.cache.create(),t.serializer)}function a(){return JSON.stringify(arguments)}function c(){this.cache=Object.create(null)}c.prototype.has=function(e){return e in this.cache},c.prototype.get=function(e){return this.cache[e]},c.prototype.set=function(e,t){this.cache[e]=t};var s={create:function(){return new c}};e.exports=function(e,t){var n=t&&t.cache?t.cache:s,r=t&&t.serializer?t.serializer:a;return(t&&t.strategy?t.strategy:i)(e,{cache:n,serializer:r})},e.exports.strategies={variadic:function(e,t){return o(e,this,r,t.cache.create(),t.serializer)},monadic:function(e,t){return o(e,this,n,t.cache.create(),t.serializer)}}},function(e,t,n){"use strict";var r=n(330);e.exports=Function.prototype.bind||r},,function(e,t,n){"use strict";n.d(t,"a",(function(){return _})),n.d(t,"b",(function(){return k}));var r=n(15),o=n(51),i=n(50),a=n(67),c=n(13),s=n(63),u=(n(81),n(48)),l=n(54),d=n(57),f=n(74),p=n(79),b=n(82),h=n(49),v=n(97),m=n(104),y=n(52),g="undefined"!=typeof window&&"msCrypto"in window;var O="undefined"!=typeof window&&"msCrypto"in window;function j(e,t,n){var r=Object(u.a)(n);return Object(c.useCallback)((function(n){var o;if(e&&function(e){return!!Object(l.a)(e)&&(!e.metaKey&&"Tab"!==e.key)}(n)){var i=null==t?void 0:t.ref.current;if(i&&(Object(m.a)(i,n.type,n),n.currentTarget.contains(i)))return n.stopPropagation(),void n.preventDefault()}null===(o=r.current)||void 0===o||o.call(r,n)}),[e,t])}function w(e,t){return null==e?void 0:e.some((function(e){return!!t&&e.ref.current===t}))}var k=Object(i.a)({name:"Composite",compose:[f.a],useState:y.g,useOptions:function(e){return Object(r.b)(Object(r.b)({},e),{},{currentId:Object(y.e)(e)})},useProps:function(e,t){var n=t.ref,o=t.onFocus,i=t.onBlur,a=t.onKeyDown,f=t.onKeyUp,p=Object(r.a)(t,["ref","onFocus","onBlur","onKeyDown","onKeyUp"]),m=Object(c.useRef)(null),k=Object(y.d)(e.items,e.currentId),_=Object(c.useRef)(void 0),S=Object(u.a)(o),E=Object(u.a)(i),x=O?function(e){var t=Object(c.useRef)(null);return Object(c.useEffect)((function(){var n=Object(h.a)(e.current),r=function(e){var n=e.target;t.current=n};return n.addEventListener("focus",r,!0),function(){n.removeEventListener("focus",r,!0)}}),[]),t}(m):void 0;Object(c.useEffect)((function(){var t=m.current;t&&e.unstable_moves&&!k&&t.focus()}),[e.unstable_moves,k]);var C=j(e.unstable_virtual,k,a),P=j(e.unstable_virtual,k,f),D=Object(c.useCallback)((function(t){var n;if(e.unstable_virtual){var r,o,i=(null==x?void 0:x.current)||t.relatedTarget,a=w(e.items,i);if(Object(l.a)(t)&&!a)return null===(r=S.current)||void 0===r||r.call(S,t),void(null==k||null===(o=k.ref.current)||void 0===o||o.focus());if(a)return void t.stopPropagation()}else if(Object(l.a)(t)){var c;null===(c=e.setCurrentId)||void 0===c||c.call(e,null)}null===(n=S.current)||void 0===n||n.call(S,t)}),[e.unstable_virtual,e.items,k,e.setCurrentId]),M=Object(c.useCallback)((function(t){var n;if(e.unstable_virtual){var r,o=w(e.items,t.target),i=function(e){return g?Object(d.a)(e.target):e.relatedTarget}(t),a=w(e.items,i);if(Object(l.a)(t)&&a)return(null===(r=_.current)||void 0===r?void 0:r.ref.current)&&Object(v.a)(_.current.ref.current,"blur",t),_.current=k,void t.stopPropagation();o?_.current=k:((null==k?void 0:k.ref.current)&&Object(v.a)(k.ref.current,"blur",t),_.current=void 0)}null===(n=E.current)||void 0===n||n.call(E,t)}),[e.unstable_virtual,e.items,k]),T=Object(c.useMemo)((function(){return Object(b.a)({onKeyDown:C,stopPropagation:!0,shouldKeyDown:function(t){return Object(l.a)(t)&&null===e.currentId},keyMap:function(){var t,n="horizontal"!==e.orientation,r="vertical"!==e.orientation,o=!!(null===(t=e.groups)||void 0===t?void 0:t.length),i=e.first&&function(){return e.first()},a=e.last&&function(){return e.last()};return{ArrowUp:(o||n)&&function(){if(o){var t,n=(i=e.items,Object(y.a)(Object(y.b)(Object(y.f)(Object(y.c)(i)))));if(null==n?void 0:n.id)null===(t=e.move)||void 0===t||t.call(e,n.id)}else{var r;null===(r=e.last)||void 0===r||r.call(e)}var i},ArrowRight:(o||r)&&i,ArrowDown:(o||n)&&i,ArrowLeft:(o||r)&&a,Home:i,End:a,PageUp:i,PageDown:a}}})}),[C,e.currentId,e.orientation,e.groups,e.items,e.move,e.last,e.first]);return Object(r.b)({ref:Object(s.a)(m,n),id:e.baseId,onFocus:D,onBlur:M,onKeyDown:T,onKeyUp:P,"aria-activedescendant":e.unstable_virtual&&(null==k?void 0:k.id)||void 0},p)},useComposeProps:function(e,t){t=Object(a.a)(e,t,!0);var n=Object(f.a)(e,t,!0);return e.unstable_virtual||null===e.currentId?n:Object(r.b)(Object(r.b)({},t),{},{ref:n.ref})}}),_=Object(o.a)({as:"div",useHook:k,useCreateElement:function(e,t,n){return Object(p.a)(e,t,n)}})},function(e,t,n){"use strict";n.d(t,"a",(function(){return w})),n.d(t,"b",(function(){return j}));var r=n(15),o=n(51),i=n(50),a=n(13),c=n(63),s=(n(81),n(48)),u=n(54),l=n(70),d=n(73),f=n(72),p=n(88),b=n(82),h=n(49),v=n(52),m=n(96),y=n(98),g=n(99);function O(e){return e.querySelector("[data-composite-item-widget]")}var j=Object(i.a)({name:"CompositeItem",compose:[p.a,m.a],useState:v.g,propsAreEqual:function(e,t){if(!t.id||e.id!==t.id)return p.a.unstable_propsAreEqual(e,t);var n=e.currentId,o=e.unstable_moves,i=Object(r.a)(e,["currentId","unstable_moves"]),a=t.currentId,c=t.unstable_moves,s=Object(r.a)(t,["currentId","unstable_moves"]);if(a!==n){if(t.id===a||t.id===n)return!1}else if(o!==c)return!1;return p.a.unstable_propsAreEqual(i,s)},useOptions:function(e){return Object(r.b)(Object(r.b)({},e),{},{id:e.id,currentId:Object(v.e)(e),unstable_clickOnSpace:!e.unstable_hasActiveWidget&&e.unstable_clickOnSpace})},useProps:function(e,t){var n,o=t.ref,i=t.tabIndex,p=void 0===i?0:i,v=t.onFocus,m=t.onBlur,j=t.onKeyDown,w=t.onClick,k=Object(r.a)(t,["ref","tabIndex","onFocus","onBlur","onKeyDown","onClick"]),_=Object(a.useRef)(null),S=e.id,E=e.disabled&&!e.focusable,x=e.currentId===S,C=Object(s.a)(x),P=Object(a.useRef)(!1),D=function(e){return Object(a.useMemo)((function(){var t;return null===(t=e.items)||void 0===t?void 0:t.find((function(t){return e.id&&t.id===e.id}))}),[e.items,e.id])}(e),M=Object(s.a)(v),T=Object(s.a)(m),I=Object(s.a)(j),R=Object(s.a)(w),N=!e.unstable_virtual&&!e.unstable_hasActiveWidget&&x||!(null===(n=e.items)||void 0===n?void 0:n.length);Object(a.useEffect)((function(){var t;if(S)return null===(t=e.registerItem)||void 0===t||t.call(e,{id:S,ref:_,disabled:!!E}),function(){var t;null===(t=e.unregisterItem)||void 0===t||t.call(e,S)}}),[S,E,e.registerItem,e.unregisterItem]),Object(a.useEffect)((function(){var t=_.current;t&&e.unstable_moves&&C.current&&t.focus()}),[e.unstable_moves]);var A=Object(a.useCallback)((function(t){var n,o;if(null===(n=M.current)||void 0===n||n.call(M,t),!t.defaultPrevented&&!Object(d.a)(t)&&S&&!function(e,t){if(Object(u.a)(e))return!1;for(var n,o=Object(r.c)(t);!(n=o()).done;){if(n.value.ref.current===e.target)return!0}return!1}(t,e.items)&&(null===(o=e.setCurrentId)||void 0===o||o.call(e,S),e.unstable_virtual&&e.baseId&&Object(u.a)(t))){var i=t.target,a=Object(h.a)(i).getElementById(e.baseId);a&&(P.current=!0,Object(f.a)(a))}}),[S,e.items,e.setCurrentId,e.unstable_virtual,e.baseId]),L=Object(a.useCallback)((function(t){var n;if(e.unstable_virtual&&P.current)return P.current=!1,t.preventDefault(),void t.stopPropagation();null===(n=T.current)||void 0===n||n.call(T,t)}),[e.unstable_virtual]),F=Object(a.useCallback)((function(e){var t;if(null===(t=I.current)||void 0===t||t.call(I,e),Object(u.a)(e)&&1===e.key.length&&" "!==e.key){var n=O(e.currentTarget);if(n&&Object(y.a)(n)){n.focus();var r=e.key;window.requestAnimationFrame((function(){Object(g.a)(n,r)}))}}}),[]),z=Object(a.useMemo)((function(){return Object(b.a)({onKeyDown:F,stopPropagation:!0,shouldKeyDown:u.a,keyMap:function(){var t="horizontal"!==e.orientation,n="vertical"!==e.orientation,r=!!(null==D?void 0:D.groupId),o=function(e){var t=O(e.currentTarget);t&&Object(y.a)(t)&&Object(g.a)(t,"")},i=e.up&&function(){return e.up()},a=e.next&&function(){return e.next()},c=e.down&&function(){return e.down()},s=e.previous&&function(){return e.previous()};return{Delete:o,Backspace:o,ArrowUp:(r||t)&&i,ArrowRight:(r||n)&&a,ArrowDown:(r||t)&&c,ArrowLeft:(r||n)&&s,Home:function(t){var n,o;!r||t.ctrlKey?null===(n=e.first)||void 0===n||n.call(e):null===(o=e.previous)||void 0===o||o.call(e,!0)},End:function(t){var n,o;!r||t.ctrlKey?null===(n=e.last)||void 0===n||n.call(e):null===(o=e.next)||void 0===o||o.call(e,!0)},PageUp:function(){var t,n;r?null===(t=e.up)||void 0===t||t.call(e,!0):null===(n=e.first)||void 0===n||n.call(e)},PageDown:function(){var t,n;r?null===(t=e.down)||void 0===t||t.call(e,!0):null===(n=e.last)||void 0===n||n.call(e)}}}})}),[F,e.orientation,D,e.up,e.next,e.down,e.previous,e.first,e.last]),B=Object(a.useCallback)((function(e){var t;if(null===(t=R.current)||void 0===t||t.call(R,e),!e.defaultPrevented){var n=O(e.currentTarget);n&&!Object(l.a)(n)&&n.focus()}}),[]);return Object(r.b)({ref:Object(c.a)(_,o),id:S,tabIndex:N?p:-1,"aria-selected":!(!e.unstable_virtual||!x)||void 0,onFocus:A,onBlur:L,onKeyDown:z,onClick:B},k)}}),w=Object(o.a)({as:"button",memo:!0,useHook:j})},function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return l}));var r=n(5),o=n(12),i=n(9),a=n.n(i);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e){var t=e.type,n=e.origin,i=void 0===n?function(e){return"appear"===e?"top":"left"}(t):n;if("appear"===t){var c,s=i.split(" "),u=Object(o.a)(s,2),l=u[0],d=u[1],f=void 0===d?"center":d;return a()("components-animate__appear",(c={},Object(r.a)(c,"is-from-"+f,"center"!==f),Object(r.a)(c,"is-from-"+l,"middle"!==l),c))}return"slide-in"===t?a()("components-animate__slide-in","is-from-"+i):"loading"===t?a()("components-animate__loading"):void 0}function l(e){var t=e.type,n=e.options,r=void 0===n?{}:n;return(0,e.children)({className:u(s({type:t},r))})}},function(e,t,n){"use strict";n.d(t,"b",(function(){return E})),n.d(t,"a",(function(){return x})),n.d(t,"c",(function(){return C}));var r=n(8),o=n(14),i=n(0),a=n(21),c=n(22),s=n(16),u=n(19);function l(e,t,n){return(l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Object(u.a)(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}var d=n(23),f=n(24),p=n(2),b=n(129);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(f.a)(this,n)}}var v=function(e){Object(d.a)(n,e);var t=h(n);function n(){var e;return Object(a.a)(this,n),(e=t.apply(this,arguments)).isUnmounted=!1,e.bindNode=e.bindNode.bind(Object(s.a)(e)),e}return Object(c.a)(n,[{key:"componentDidMount",value:function(){(0,this.props.registerSlot)(this.props.name,this)}},{key:"componentWillUnmount",value:function(){var e=this.props.unregisterSlot;this.isUnmounted=!0,e(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:"forceUpdate",value:function(){this.isUnmounted||l(Object(u.a)(n.prototype),"forceUpdate",this).call(this)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.name,r=e.fillProps,o=void 0===r?{}:r,a=e.getFills,c=Object(p.map)(a(n,this),(function(e){var t=e.occurrence,n=Object(p.isFunction)(e.children)?e.children(o):e.children;return i.Children.map(n,(function(e,n){if(!e||Object(p.isString)(e))return e;var r="".concat(t,"---").concat(e.key||n);return Object(i.cloneElement)(e,{key:r})}))})).filter(Object(p.negate)(i.isEmptyElement));return Object(i.createElement)(i.Fragment,null,Object(p.isFunction)(t)?t(c):c)}}]),n}(i.Component),m=function(e){return Object(i.createElement)(b.a,null,(function(t){var n=t.registerSlot,o=t.unregisterSlot,a=t.getFills;return Object(i.createElement)(v,Object(r.a)({},e,{registerSlot:n,unregisterSlot:o,getFills:a}))}))},y=0;function g(e){var t=e.name,n=e.children,r=e.registerFill,o=e.unregisterFill,a=Object(b.c)(t),c=Object(i.useRef)({name:t,children:n});return c.current.occurrence||(c.current.occurrence=++y),Object(i.useLayoutEffect)((function(){return r(t,c.current),function(){return o(t,c.current)}}),[]),Object(i.useLayoutEffect)((function(){c.current.children=n,a&&a.forceUpdate()}),[n]),Object(i.useLayoutEffect)((function(){t!==c.current.name&&(o(c.current.name,c.current),c.current.name=t,r(t,c.current))}),[t]),a&&a.node?(Object(p.isFunction)(n)&&(n=n(a.props.fillProps)),Object(i.createPortal)(n,a.node)):null}var O=function(e){return Object(i.createElement)(b.a,null,(function(t){var n=t.registerFill,o=t.unregisterFill;return Object(i.createElement)(g,Object(r.a)({},e,{registerFill:n,unregisterFill:o}))}))},j=n(138);function w(e){var t=e.name,n=e.fillProps,a=void 0===n?{}:n,c=e.as,s=void 0===c?"div":c,u=Object(o.a)(e,["name","fillProps","as"]),l=Object(i.useContext)(j.a),d=Object(i.useRef)();return Object(i.useLayoutEffect)((function(){return l.registerSlot(t,d,a),function(){l.unregisterSlot(t,d)}}),[l.registerSlot,l.unregisterSlot,t]),Object(i.useLayoutEffect)((function(){l.updateSlot(t,a)})),Object(i.createElement)(s,Object(r.a)({ref:d},u))}var k=n(12),_=n(165);function S(e){var t,n,r=e.name,o=e.children,a=Object(_.a)(r),c=Object(i.useRef)({rerender:(t=Object(i.useState)({}),n=Object(k.a)(t,2)[1],function(){return n({})})});return Object(i.useEffect)((function(){return a.registerFill(c),function(){a.unregisterFill(c)}}),[a.registerFill,a.unregisterFill]),a.ref&&a.ref.current?("function"==typeof o&&(o=o(a.fillProps)),Object(i.createPortal)(o,a.ref.current)):null}function E(e){var t=e.bubblesVirtually,n=Object(o.a)(e,["bubblesVirtually"]);return t?Object(i.createElement)(w,n):Object(i.createElement)(m,n)}function x(e){return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(O,e),Object(i.createElement)(S,e))}function C(e){var t=function(t){return Object(i.createElement)(x,Object(r.a)({name:e},t))};t.displayName=e+"Fill";var n=function(t){return Object(i.createElement)(E,Object(r.a)({name:e},t))};return n.displayName=e+"Slot",{Fill:t,Slot:n}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(49);function o(e,t,n){var o,i;if(void 0===n&&(n={}),"function"==typeof Event)return new Event(t,n);var a=Object(r.a)(e).createEvent("Event");return a.initEvent(t,null===(o=n)||void 0===o?void 0:o.bubbles,null===(i=n)||void 0===i?void 0:i.cancelable),a}},function(e,t,n){"use strict";e.exports=n(184)},,function(e,t,n){"use strict";n.d(t,"c",(function(){return C})),n.d(t,"a",(function(){return E}));var r=n(12),o=n(17),i=n(21),a=n(22),c=n(16),s=n(23),u=n(24),l=n(19),d=n(0),f=n(2),p=n(40),b=n(14),h=n(5),v=n(64),m=n.n(v),y=n(138);function g(e){var t=function(e,t){if("object"!==Object(p.a)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Object(p.a)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Object(p.a)(t)?t:String(t)}function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){Object(h.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w(e){var t,n,i,a,c,s,u,l,f,p,v,O,w,k=e.children,_=(t=Object(d.useState)({}),n=Object(r.a)(t,2),i=n[0],a=n[1],c=Object(d.useState)({}),s=Object(r.a)(c,2),u=s[0],l=s[1],f=Object(d.useCallback)((function(e,t,n){a((function(r){var o=r[e]||{};return j(j({},r),{},Object(h.a)({},e,j(j({},o),{},{ref:t||o.ref,fillProps:n||o.fillProps||{}})))}))}),[]),p=Object(d.useCallback)((function(e,t){a((function(n){var r=n[e],o=Object(b.a)(n,[e].map(g));return(null==r?void 0:r.ref)===t?o:n}))}),[]),v=Object(d.useCallback)((function(e,t){var n=i[e];if(n&&!m()(n.fillProps,t)){n.fillProps=t;var r=u[e];r&&r.map((function(e){return e.current.rerender()}))}}),[i,u]),O=Object(d.useCallback)((function(e,t){l((function(n){return j(j({},n),{},Object(h.a)({},e,[].concat(Object(o.a)(n[e]||[]),[t])))}))}),[]),w=Object(d.useCallback)((function(e,t){l((function(n){return n[e]?j(j({},n),{},Object(h.a)({},e,n[e].filter((function(e){return e!==t})))):n}))}),[]),Object(d.useMemo)((function(){return{slots:i,fills:u,registerSlot:f,updateSlot:v,unregisterSlot:p,registerFill:O,unregisterFill:w}}),[i,u,f,v,p,O,w]));return Object(d.createElement)(y.a.Provider,{value:_},k)}function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var _=Object(d.createContext)({registerSlot:function(){},unregisterSlot:function(){},registerFill:function(){},unregisterFill:function(){},getSlot:function(){},getFills:function(){},subscribe:function(){}}),S=_.Provider,E=_.Consumer,x=function(e){Object(s.a)(n,e);var t=k(n);function n(){var e;return Object(i.a)(this,n),(e=t.apply(this,arguments)).registerSlot=e.registerSlot.bind(Object(c.a)(e)),e.registerFill=e.registerFill.bind(Object(c.a)(e)),e.unregisterSlot=e.unregisterSlot.bind(Object(c.a)(e)),e.unregisterFill=e.unregisterFill.bind(Object(c.a)(e)),e.getSlot=e.getSlot.bind(Object(c.a)(e)),e.getFills=e.getFills.bind(Object(c.a)(e)),e.hasFills=e.hasFills.bind(Object(c.a)(e)),e.subscribe=e.subscribe.bind(Object(c.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,hasFills:e.hasFills,subscribe:e.subscribe},e}return Object(a.a)(n,[{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(o.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(f.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(f.sortBy)(this.fills[e],"occurrence")}},{key:"hasFills",value:function(e){return this.fills[e]&&!!this.fills[e].length}},{key:"resetFillOccurrence",value:function(e){Object(f.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(f.without)(t.listeners,e)}}},{key:"render",value:function(){return Object(d.createElement)(S,{value:this.contextValue},Object(d.createElement)(w,null,this.props.children))}}]),n}(d.Component),C=function(e){var t=Object(d.useContext)(_),n=t.getSlot,o=t.subscribe,i=Object(d.useState)(n(e)),a=Object(r.a)(i,2),c=a[0],s=a[1];return Object(d.useEffect)((function(){return s(n(e)),o((function(){s(n(e))}))}),[e]),c};t.b=x},,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";e.exports=function(e){return"string"==typeof e||"symbol"==typeof e}},,function(e,t,n){"use strict";var r=n(21),o=n(22),i=n(16),a=n(23),c=n(24),s=n(19),u=n(0),l=n(10),d=n(18),f=n(29);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(s.a)(e);if(t){var o=Object(s.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(c.a)(this,n)}}var b=Object(l.createHigherOrderComponent)((function(e){return function(t){Object(a.a)(c,t);var n=p(c);function c(){var e;return Object(r.a)(this,c),(e=n.apply(this,arguments)).focusContainRef=Object(u.createRef)(),e.handleTabBehaviour=e.handleTabBehaviour.bind(Object(i.a)(e)),e}return Object(o.a)(c,[{key:"handleTabBehaviour",value:function(e){if(e.keyCode===d.TAB){var t=f.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(u.createElement)("div",{onKeyDown:this.handleTabBehaviour,ref:this.focusContainRef,tabIndex:"-1"},Object(u.createElement)(e,this.props))}}]),c}(u.Component)}),"withConstrainedTabbing");t.a=b},function(e,t,n){"use strict";var r=n(17),o=n(21),i=n(22),a=n(23),c=n(24),s=n(19),u=n(0),l=n(2),d=n(10),f=n(199);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(s.a)(e);if(t){var o=Object(s.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(c.a)(this,n)}}t.a=Object(d.createHigherOrderComponent)((function e(t){if((c=t)instanceof u.Component||"function"==typeof c){var n=t;return e({})(n)}var c,s=t.onFocusReturn,d=void 0===s?l.stubTrue:s;return function(e){var t=function(t){Object(a.a)(c,t);var n=p(c);function c(){var e;return Object(o.a)(this,c),(e=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(i.a)(c,[{key:"componentWillUnmount",value:function(){var e=this.activeElementOnMount,t=this.isFocused,n=this.ownFocusedElements;if(t&&!1!==d())for(var o,i=[].concat(Object(r.a)(l.without.apply(void 0,[this.props.focus.focusHistory].concat(Object(r.a)(n)))),[e]);o=i.pop();)if(document.body.contains(o))return void o.focus()}},{key:"render",value:function(){return Object(u.createElement)("div",{onFocus:this.setIsFocusedTrue,onBlur:this.setIsFocusedFalse},Object(u.createElement)(e,this.props.childProps))}}]),c}(u.Component);return function(e){return Object(u.createElement)(f.a,null,(function(n){return Object(u.createElement)(t,{childProps:e,focus:n})}))}}}),"withFocusReturn")},function(e,t,n){"use strict";var r=n(8),o=n(14),i=n(0);function a(e){e.stopPropagation()}t.a=Object(i.forwardRef)((function(e,t){var n=e.children,c=Object(o.a)(e,["children"]);return Object(i.createElement)("div",Object(r.a)({},c,{ref:t,onMouseDown:a}),n)}))},function(e,t,n){"use strict";(function(e){var r=n(8),o=n(5),i=n(14),a=n(0),c=n(488),s=(n(90),n(91));function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){Object(o.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.a=Object(a.forwardRef)((function(t,n){var o=t.children,u=t.as,d=Object(i.a)(t,["children","as"]),f=Object(a.useContext)(s.a);if("function"!=typeof o&&!u)return void 0!==e&&e.env,null;var p=l(l({},d),{},{ref:n,"data-toolbar-item":!0});return f?Object(a.createElement)(c.a,Object(r.a)({},f,p,{as:u}),o):u?Object(a.createElement)(u,p,o):o(p)}))}).call(this,n(102))},function(e,t,n){"use strict";(function(e){var r=n(0),o=(n(90),Object(r.createContext)({slots:{},fills:{},registerSlot:function(){void 0!==e&&e.env},updateSlot:function(){},unregisterSlot:function(){},registerFill:function(){},unregisterFill:function(){}}));t.a=o}).call(this,n(102))},,,function(e,t,n){"use strict";var r=n(5),o=n(14),i=n(0);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.a=function(e){var t=e.icon,n=e.size,c=void 0===n?24:n,s=Object(o.a)(e,["icon","size"]);return Object(i.cloneElement)(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({width:c,height:c},s))}},function(e,t,n){"use strict";var r=n(143);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var r=n(58),o=n(188),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&i(e,".prototype.")?o(n):n}},function(e,t,n){var r=n(44),o=n(372),i=n(373);e.exports={momentObj:i.createMomentChecker("object",(function(e){return"object"==typeof e}),(function(e){return o.isValidMoment(e)}),"Moment"),momentString:i.createMomentChecker("string",(function(e){return"string"==typeof e}),(function(e){return o.isValidMoment(r(e))}),"Moment"),momentDurationObj:i.createMomentChecker("object",(function(e){return"object"==typeof e}),(function(e){return r.isDuration(e)}),"Duration")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(28),i=(r=o)&&r.__esModule?r:{default:r},a=n(78);t.default=i.default.oneOf([a.HORIZONTAL_ORIENTATION,a.VERTICAL_ORIENTATION,a.VERTICAL_SCROLLABLE])},function(e,t,n){"use strict";var r=n(387);e.exports=function(e,t,n){return!r(e.props,t)||!r(e.state,n)}},function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},,,function(e,t,n){"use strict";var r=n(8),o=n(14),i=n(0);t.a=function(e){var t=e.icon,n=e.className,a=Object(o.a)(e,["icon","className"]),c=["dashicon","dashicons","dashicons-"+t,n].filter(Boolean).join(" ");return Object(i.createElement)("span",Object(r.a)({className:c},a))}},function(e,t,n){var r=n(13),o={display:"block",opacity:0,position:"absolute",top:0,left:0,height:"100%",width:"100%",overflow:"hidden",pointerEvents:"none",zIndex:-1},i=function(e){var t=e.onResize,n=r.useRef();return function(e,t){var n=function(){return e.current&&e.current.contentDocument&&e.current.contentDocument.defaultView};function o(){t();var e=n();e&&e.addEventListener("resize",t)}r.useEffect((function(){return n()?o():e.current&&e.current.addEventListener&&e.current.addEventListener("load",o),function(){var e=n();e&&"function"==typeof e.removeEventListener&&e.removeEventListener("resize",t)}}),[])}(n,(function(){return t(n)})),r.createElement("iframe",{style:o,src:"about:blank",ref:n,"aria-hidden":!0,tabIndex:-1,frameBorder:0})},a=function(e){return{width:null!=e?e.offsetWidth:null,height:null!=e?e.offsetHeight:null}};e.exports=function(e){void 0===e&&(e=a);var t=r.useState(e(null)),n=t[0],o=t[1],c=r.useCallback((function(t){return o(e(t.current))}),[e]);return[r.useMemo((function(){return r.createElement(i,{onResize:c})}),[c]),n]}},,,,,,,function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M13 11.9l3.3-3.4-1.1-1-3.2 3.3-3.2-3.3-1.1 1 3.3 3.4-3.5 3.6 1 1L12 13l3.5 3.5 1-1z"}));t.a=i},function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));t.a=i},function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18.3 5.6L9.9 16.9l-4.6-3.4-.9 1.2 5.8 4.3 9.3-12.6z"}));t.a=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(28),i=(r=o)&&r.__esModule?r:{default:r},a=n(78);t.default=i.default.oneOf(a.WEEKDAYS)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(28),i=(r=o)&&r.__esModule?r:{default:r},a=n(89);function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}t.default=(0,a.and)([i.default.instanceOf(Set),function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var a=e[t],u=void 0;return[].concat(s(a)).some((function(e,n){var o,a=String(t)+": index "+String(n);return null!=(u=(o=i.default.string).isRequired.apply(o,[c({},a,e),a].concat(r)))})),null==u?null:u}],"Modifiers (Set of Strings)")},,function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(5),o=n(0),i=n(138);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e){var t=Object(o.useContext)(i.a),n=t.slots[e]||{},r=t.fills[e],a=Object(o.useMemo)((function(){return r||[]}),[r]),s=Object(o.useCallback)((function(n){t.updateSlot(e,n)}),[e,t.updateSlot]),u=Object(o.useCallback)((function(n){t.unregisterSlot(e,n)}),[e,t.unregisterSlot]),l=Object(o.useCallback)((function(n){t.registerFill(e,n)}),[e,t.registerFill]),d=Object(o.useCallback)((function(n){t.unregisterFill(e,n)}),[e,t.unregisterFill]);return c(c({},n),{},{updateSlot:s,unregisterSlot:u,fills:a,registerFill:l,unregisterFill:d})}},function(e,t,n){"use strict";var r=n(21),o=n(22),i=n(23),a=n(24),c=n(19),s=n(0);function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(c.a)(e);if(t){var o=Object(c.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(a.a)(this,n)}}t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.htmlDocument,n=void 0===t?document:t,a=e.className,c=void 0===a?"lockscroll":a,l=0,d=0;function f(e){var t=n.scrollingElement||n.body;e&&(d=t.scrollTop);var r=e?"add":"remove";t.classList[r](c),n.documentElement.classList[r](c),e||(t.scrollTop=d)}function p(){0===l&&f(!0),++l}function b(){1===l&&f(!1),--l}return function(e){Object(i.a)(n,e);var t=u(n);function n(){return Object(r.a)(this,n),t.apply(this,arguments)}return Object(o.a)(n,[{key:"componentDidMount",value:function(){p()}},{key:"componentWillUnmount",value:function(){b()}},{key:"render",value:function(){return null}}]),n}(s.Component)}()},function(e,t,n){"use strict";(function(e){var r=n(0),o=n(2),i=n(9),a=n.n(i),c=n(46),s=n(1),u=(n(90),n(35));t.a=Object(r.forwardRef)((function(t,n){var i=t.className,l=t.children,d=t.spokenMessage,f=void 0===d?l:d,p=t.politeness,b=void 0===p?"polite":p,h=t.actions,v=void 0===h?[]:h,m=t.onRemove,y=void 0===m?o.noop:m;!function(e,t){var n="string"==typeof e?e:Object(r.renderToString)(e);Object(r.useEffect)((function(){n&&Object(c.speak)(n,t)}),[n,t])}(f,b),Object(r.useEffect)((function(){var e=setTimeout((function(){y()}),1e4);return function(){return clearTimeout(e)}}),[]);var g=a()(i,"components-snackbar");return v&&v.length>1&&(void 0!==e&&e.env,v=[v[0]]),Object(r.createElement)("div",{ref:n,className:g,onClick:y,tabIndex:"0",role:"button",onKeyPress:y,"aria-label":Object(s.__)("Dismiss this notice")},Object(r.createElement)("div",{className:"components-snackbar__content"},l,v.map((function(e,t){var n=e.label,o=e.onClick,i=e.url;return Object(r.createElement)(u.a,{key:t,href:i,isTertiary:!0,onClick:function(e){e.stopPropagation(),o&&o(e)},className:"components-snackbar__action"},n)}))))}))}).call(this,n(102))},,,,,function(e,t,n){"use strict";var r=n(0),o=n(2);t.a=function(e){var t,n,i=e.shortcut,a=e.className;return i?(Object(o.isString)(i)&&(t=i),Object(o.isObject)(i)&&(t=i.display,n=i.ariaLabel),Object(r.createElement)("span",{className:a,"aria-label":n},t)):null}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(15),o=(n(13),n(62)),i=n(52);function a(e){void 0===e&&(e={});var t=Object(o.a)(e),n=t.orientation,a=void 0===n?"horizontal":n,c=Object(r.a)(t,["orientation"]);return Object(i.g)(Object(r.b)({orientation:a},c))}var c=[].concat(i.g.__keys);a.__keys=c},,,,function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}},function(e,t){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=n(185);e.exports=function(e,t,n){n=n||{},9===t.nodeType&&(t=r.getWindow(t));var o=n.allowHorizontalScroll,i=n.onlyScrollIfNeeded,a=n.alignWithTop,c=n.alignWithLeft,s=n.offsetTop||0,u=n.offsetLeft||0,l=n.offsetBottom||0,d=n.offsetRight||0;o=void 0===o||o;var f=r.isWindow(t),p=r.offset(e),b=r.outerHeight(e),h=r.outerWidth(e),v=void 0,m=void 0,y=void 0,g=void 0,O=void 0,j=void 0,w=void 0,k=void 0,_=void 0,S=void 0;f?(w=t,S=r.height(w),_=r.width(w),k={left:r.scrollLeft(w),top:r.scrollTop(w)},O={left:p.left-k.left-u,top:p.top-k.top-s},j={left:p.left+h-(k.left+_)+d,top:p.top+b-(k.top+S)+l},g=k):(v=r.offset(t),m=t.clientHeight,y=t.clientWidth,g={left:t.scrollLeft,top:t.scrollTop},O={left:p.left-(v.left+(parseFloat(r.css(t,"borderLeftWidth"))||0))-u,top:p.top-(v.top+(parseFloat(r.css(t,"borderTopWidth"))||0))-s},j={left:p.left+h-(v.left+y+(parseFloat(r.css(t,"borderRightWidth"))||0))+d,top:p.top+b-(v.top+m+(parseFloat(r.css(t,"borderBottomWidth"))||0))+l}),O.top<0||j.top>0?!0===a?r.scrollTop(t,g.top+O.top):!1===a?r.scrollTop(t,g.top+j.top):O.top<0?r.scrollTop(t,g.top+O.top):r.scrollTop(t,g.top+j.top):i||((a=void 0===a||!!a)?r.scrollTop(t,g.top+O.top):r.scrollTop(t,g.top+j.top)),o&&(O.left<0||j.left>0?!0===c?r.scrollLeft(t,g.left+O.left):!1===c?r.scrollLeft(t,g.left+j.left):O.left<0?r.scrollLeft(t,g.left+O.left):r.scrollLeft(t,g.left+j.left):i||((c=void 0===c||!!c)?r.scrollLeft(t,g.left+O.left):r.scrollLeft(t,g.left+j.left)))}},function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function i(e,t){var n=e["page"+(t?"Y":"X")+"Offset"],r="scroll"+(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}function a(e){return i(e)}function c(e){return i(e,!0)}function s(e){var t=function(e){var t,n=void 0,r=void 0,o=e.ownerDocument,i=o.body,a=o&&o.documentElement;return n=(t=e.getBoundingClientRect()).left,r=t.top,{left:n-=a.clientLeft||i.clientLeft||0,top:r-=a.clientTop||i.clientTop||0}}(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=a(r),t.top+=c(r),t}var u=new RegExp("^("+/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source+")(?!px)[a-z%]+$","i"),l=/^(top|right|bottom|left)$/,d="left";var f=void 0;function p(e,t){for(var n=0;n<e.length;n++)t(e[n])}function b(e){return"border-box"===f(e,"boxSizing")}"undefined"!=typeof window&&(f=window.getComputedStyle?function(e,t,n){var r="",o=e.ownerDocument,i=n||o.defaultView.getComputedStyle(e,null);return i&&(r=i.getPropertyValue(t)||i[t]),r}:function(e,t){var n=e.currentStyle&&e.currentStyle[t];if(u.test(n)&&!l.test(t)){var r=e.style,o=r[d],i=e.runtimeStyle[d];e.runtimeStyle[d]=e.currentStyle[d],r[d]="fontSize"===t?"1em":n||0,n=r.pixelLeft+"px",r[d]=o,e.runtimeStyle[d]=i}return""===n?"auto":n});var h=["margin","border","padding"];function v(e,t,n){var r={},o=e.style,i=void 0;for(i in t)t.hasOwnProperty(i)&&(r[i]=o[i],o[i]=t[i]);for(i in n.call(e),t)t.hasOwnProperty(i)&&(o[i]=r[i])}function m(e,t,n){var r=0,o=void 0,i=void 0,a=void 0;for(i=0;i<t.length;i++)if(o=t[i])for(a=0;a<n.length;a++){var c=void 0;c="border"===o?o+n[a]+"Width":o+n[a],r+=parseFloat(f(e,c))||0}return r}function y(e){return null!=e&&e==e.window}var g={};function O(e,t,n){if(y(e))return"width"===t?g.viewportWidth(e):g.viewportHeight(e);if(9===e.nodeType)return"width"===t?g.docWidth(e):g.docHeight(e);var r="width"===t?["Left","Right"]:["Top","Bottom"],o="width"===t?e.offsetWidth:e.offsetHeight,i=(f(e),b(e)),a=0;(null==o||o<=0)&&(o=void 0,(null==(a=f(e,t))||Number(a)<0)&&(a=e.style[t]||0),a=parseFloat(a)||0),void 0===n&&(n=i?1:-1);var c=void 0!==o||i,s=o||a;if(-1===n)return c?s-m(e,["border","padding"],r):a;if(c){var u=2===n?-m(e,["border"],r):m(e,["margin"],r);return s+(1===n?0:u)}return a+m(e,h.slice(n),r)}p(["Width","Height"],(function(e){g["doc"+e]=function(t){var n=t.document;return Math.max(n.documentElement["scroll"+e],n.body["scroll"+e],g["viewport"+e](n))},g["viewport"+e]=function(t){var n="client"+e,r=t.document,o=r.body,i=r.documentElement[n];return"CSS1Compat"===r.compatMode&&i||o&&o[n]||i}}));var j={position:"absolute",visibility:"hidden",display:"block"};function w(e){var t=void 0,n=arguments;return 0!==e.offsetWidth?t=O.apply(void 0,n):v(e,j,(function(){t=O.apply(void 0,n)})),t}function k(e,t,n){var r=n;if("object"!==(void 0===t?"undefined":o(t)))return void 0!==r?("number"==typeof r&&(r+="px"),void(e.style[t]=r)):f(e,t);for(var i in t)t.hasOwnProperty(i)&&k(e,i,t[i])}p(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);g["outer"+t]=function(t,n){return t&&w(t,e,n?0:1)};var n="width"===e?["Left","Right"]:["Top","Bottom"];g[e]=function(t,r){if(void 0===r)return t&&w(t,e,-1);if(t){f(t);return b(t)&&(r+=m(t,["padding","border"],n)),k(t,e,r)}}})),e.exports=r({getWindow:function(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},offset:function(e,t){if(void 0===t)return s(e);!function(e,t){"static"===k(e,"position")&&(e.style.position="relative");var n=s(e),r={},o=void 0,i=void 0;for(i in t)t.hasOwnProperty(i)&&(o=parseFloat(k(e,i))||0,r[i]=o+t[i]-n[i]);k(e,r)}(e,t)},isWindow:y,each:p,css:k,clone:function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);if(e.overflow)for(var n in e)e.hasOwnProperty(n)&&(t.overflow[n]=e.overflow[n]);return t},scrollLeft:function(e,t){if(y(e)){if(void 0===t)return a(e);window.scrollTo(t,c(e))}else{if(void 0===t)return e.scrollLeft;e.scrollLeft=t}},scrollTop:function(e,t){if(y(e)){if(void 0===t)return c(e);window.scrollTo(a(e),t)}else{if(void 0===t)return e.scrollTop;e.scrollTop=t}},viewportWidth:0,viewportHeight:0},g)},function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"}));t.a=i},function(e,t,n){"use strict";var r=Array.prototype.slice,o=n(219),i=Object.keys,a=i?function(e){return i(e)}:n(329),c=Object.keys;a.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)?c(r.call(e)):c(e)}):Object.keys=a;return Object.keys||a},e.exports=a},function(e,t,n){"use strict";var r=n(120),o=n(58),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||r.call(a,i),s=o("%Object.defineProperty%",!0);if(s)try{s({},"a",{value:1})}catch(e){s=null}e.exports=function(){return c(r,a,arguments)};var u=function(){return c(r,i,arguments)};s?s(e.exports,"apply",{value:u}):e.exports.apply=u},function(e,t,n){"use strict";var r=n(58)("%TypeError%"),o=n(333),i=n(132),a=n(93);e.exports=function(e,t){if("Object"!==a(e))throw new r("Assertion failed: Type(O) is not Object");if(!i(t))throw new r("Assertion failed: IsPropertyKey(P) is not true, got "+o(t));return e[t]}},function(e,t,n){"use strict";var r=n(58)("%Array%"),o=!r.isArray&&n(144)("Object.prototype.toString");e.exports=r.isArray||function(e){return"[object Array]"===o(e)}},function(e,t,n){"use strict";var r=n(58),o=r("%TypeError%"),i=r("%SyntaxError%"),a=n(94),c={"Property Descriptor":function(e,t){if("Object"!==e(t))return!1;var n={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var r in t)if(a(t,r)&&!n[r])return!1;var i=a(t,"[[Value]]"),c=a(t,"[[Get]]")||a(t,"[[Set]]");if(i&&c)throw new o("Property Descriptors may not be both accessor and data descriptors");return!0}};e.exports=function(e,t,n,r){var a=c[t];if("function"!=typeof a)throw new i("unknown record type: "+t);if(!a(e,r))throw new o(n+" must be a "+t)}},function(e,t,n){"use strict";e.exports=Number.isNaN||function(e){return e!=e}},function(e,t,n){"use strict";var r=Object.prototype.toString;if(n(360)()){var o=Symbol.prototype.toString,i=/^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()&&i.test(o.call(e))}(e)}catch(e){return!1}}}else e.exports=function(e){return!1}},function(e,t,n){"use strict";var r=Function.prototype.toString,o=/^\s*class\b/,i=function(e){try{var t=r.call(e);return o.test(t)}catch(e){return!1}},a=Object.prototype.toString,c="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(c)return function(e){try{return!i(e)&&(r.call(e),!0)}catch(e){return!1}}(e);if(i(e))return!1;var t=a.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t}},function(e,t,n){"use strict";var r=Object.getOwnPropertyDescriptor?function(){return Object.getOwnPropertyDescriptor(arguments,"callee").get}():function(){throw new TypeError},o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,i=Object.getPrototypeOf||function(e){return e.__proto__},a=void 0,c="undefined"==typeof Uint8Array?void 0:i(Uint8Array),s={"$ %Array%":Array,"$ %ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"$ %ArrayBufferPrototype%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer.prototype,"$ %ArrayIteratorPrototype%":o?i([][Symbol.iterator]()):void 0,"$ %ArrayPrototype%":Array.prototype,"$ %ArrayProto_entries%":Array.prototype.entries,"$ %ArrayProto_forEach%":Array.prototype.forEach,"$ %ArrayProto_keys%":Array.prototype.keys,"$ %ArrayProto_values%":Array.prototype.values,"$ %AsyncFromSyncIteratorPrototype%":void 0,"$ %AsyncFunction%":void 0,"$ %AsyncFunctionPrototype%":void 0,"$ %AsyncGenerator%":void 0,"$ %AsyncGeneratorFunction%":void 0,"$ %AsyncGeneratorPrototype%":void 0,"$ %AsyncIteratorPrototype%":a&&o&&Symbol.asyncIterator?a[Symbol.asyncIterator]():void 0,"$ %Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"$ %Boolean%":Boolean,"$ %BooleanPrototype%":Boolean.prototype,"$ %DataView%":"undefined"==typeof DataView?void 0:DataView,"$ %DataViewPrototype%":"undefined"==typeof DataView?void 0:DataView.prototype,"$ %Date%":Date,"$ %DatePrototype%":Date.prototype,"$ %decodeURI%":decodeURI,"$ %decodeURIComponent%":decodeURIComponent,"$ %encodeURI%":encodeURI,"$ %encodeURIComponent%":encodeURIComponent,"$ %Error%":Error,"$ %ErrorPrototype%":Error.prototype,"$ %eval%":eval,"$ %EvalError%":EvalError,"$ %EvalErrorPrototype%":EvalError.prototype,"$ %Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"$ %Float32ArrayPrototype%":"undefined"==typeof Float32Array?void 0:Float32Array.prototype,"$ %Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"$ %Float64ArrayPrototype%":"undefined"==typeof Float64Array?void 0:Float64Array.prototype,"$ %Function%":Function,"$ %FunctionPrototype%":Function.prototype,"$ %Generator%":void 0,"$ %GeneratorFunction%":void 0,"$ %GeneratorPrototype%":void 0,"$ %Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"$ %Int8ArrayPrototype%":"undefined"==typeof Int8Array?void 0:Int8Array.prototype,"$ %Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"$ %Int16ArrayPrototype%":"undefined"==typeof Int16Array?void 0:Int8Array.prototype,"$ %Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"$ %Int32ArrayPrototype%":"undefined"==typeof Int32Array?void 0:Int32Array.prototype,"$ %isFinite%":isFinite,"$ %isNaN%":isNaN,"$ %IteratorPrototype%":o?i(i([][Symbol.iterator]())):void 0,"$ %JSON%":JSON,"$ %JSONParse%":JSON.parse,"$ %Map%":"undefined"==typeof Map?void 0:Map,"$ %MapIteratorPrototype%":"undefined"!=typeof Map&&o?i((new Map)[Symbol.iterator]()):void 0,"$ %MapPrototype%":"undefined"==typeof Map?void 0:Map.prototype,"$ %Math%":Math,"$ %Number%":Number,"$ %NumberPrototype%":Number.prototype,"$ %Object%":Object,"$ %ObjectPrototype%":Object.prototype,"$ %ObjProto_toString%":Object.prototype.toString,"$ %ObjProto_valueOf%":Object.prototype.valueOf,"$ %parseFloat%":parseFloat,"$ %parseInt%":parseInt,"$ %Promise%":"undefined"==typeof Promise?void 0:Promise,"$ %PromisePrototype%":"undefined"==typeof Promise?void 0:Promise.prototype,"$ %PromiseProto_then%":"undefined"==typeof Promise?void 0:Promise.prototype.then,"$ %Promise_all%":"undefined"==typeof Promise?void 0:Promise.all,"$ %Promise_reject%":"undefined"==typeof Promise?void 0:Promise.reject,"$ %Promise_resolve%":"undefined"==typeof Promise?void 0:Promise.resolve,"$ %Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"$ %RangeError%":RangeError,"$ %RangeErrorPrototype%":RangeError.prototype,"$ %ReferenceError%":ReferenceError,"$ %ReferenceErrorPrototype%":ReferenceError.prototype,"$ %Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"$ %RegExp%":RegExp,"$ %RegExpPrototype%":RegExp.prototype,"$ %Set%":"undefined"==typeof Set?void 0:Set,"$ %SetIteratorPrototype%":"undefined"!=typeof Set&&o?i((new Set)[Symbol.iterator]()):void 0,"$ %SetPrototype%":"undefined"==typeof Set?void 0:Set.prototype,"$ %SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"$ %SharedArrayBufferPrototype%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer.prototype,"$ %String%":String,"$ %StringIteratorPrototype%":o?i(""[Symbol.iterator]()):void 0,"$ %StringPrototype%":String.prototype,"$ %Symbol%":o?Symbol:void 0,"$ %SymbolPrototype%":o?Symbol.prototype:void 0,"$ %SyntaxError%":SyntaxError,"$ %SyntaxErrorPrototype%":SyntaxError.prototype,"$ %ThrowTypeError%":r,"$ %TypedArray%":c,"$ %TypedArrayPrototype%":c?c.prototype:void 0,"$ %TypeError%":TypeError,"$ %TypeErrorPrototype%":TypeError.prototype,"$ %Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"$ %Uint8ArrayPrototype%":"undefined"==typeof Uint8Array?void 0:Uint8Array.prototype,"$ %Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"$ %Uint8ClampedArrayPrototype%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray.prototype,"$ %Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"$ %Uint16ArrayPrototype%":"undefined"==typeof Uint16Array?void 0:Uint16Array.prototype,"$ %Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"$ %Uint32ArrayPrototype%":"undefined"==typeof Uint32Array?void 0:Uint32Array.prototype,"$ %URIError%":URIError,"$ %URIErrorPrototype%":URIError.prototype,"$ %WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"$ %WeakMapPrototype%":"undefined"==typeof WeakMap?void 0:WeakMap.prototype,"$ %WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet,"$ %WeakSetPrototype%":"undefined"==typeof WeakSet?void 0:WeakSet.prototype};e.exports=function(e,t){if(arguments.length>1&&"boolean"!=typeof t)throw new TypeError('"allowMissing" argument must be a boolean');var n="$ "+e;if(!(n in s))throw new SyntaxError("intrinsic "+e+" does not exist!");if(void 0===s[n]&&!t)throw new TypeError("intrinsic "+e+" exists, but is not available. Please file an issue!");return s[n]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return!(!i.default.isMoment(e)||!i.default.isMoment(t))&&(e.date()===t.date()&&e.month()===t.month()&&e.year()===t.year())};var r,o=n(44),i=(r=o)&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=r.default.isMoment(e)?e:(0,o.default)(e,t);return n?n.format(i.ISO_MONTH_FORMAT):null};var r=a(n(44)),o=a(n(254)),i=n(78);function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(17),o=n(21),i=n(22),a=n(16),c=n(23),s=n(24),u=n(19),l=n(0),d=n(2);function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(s.a)(this,n)}}var p=Object(l.createContext)({focusHistory:[]}),b=p.Provider,h=p.Consumer;b.displayName="FocusReturnProvider",h.displayName="FocusReturnConsumer";var v=function(e){Object(c.a)(n,e);var t=f(n);function n(){var e;return Object(o.a)(this,n),(e=t.apply(this,arguments)).onFocus=e.onFocus.bind(Object(a.a)(e)),e.state={focusHistory:[]},e}return Object(i.a)(n,[{key:"onFocus",value:function(e){var t=this.state.focusHistory,n=Object(d.uniq)([].concat(Object(r.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(l.createElement)(b,{value:this.state},Object(l.createElement)("div",{onFocus:this.onFocus,className:n},t))}}]),n}(l.Component);t.b=v},function(e,t,n){"use strict";e.exports=n(322)},function(e,t){var n={};n.parse=function(){var e=/^(\-(webkit|o|ms|moz)\-)?(linear\-gradient)/i,t=/^(\-(webkit|o|ms|moz)\-)?(repeating\-linear\-gradient)/i,n=/^(\-(webkit|o|ms|moz)\-)?(radial\-gradient)/i,r=/^(\-(webkit|o|ms|moz)\-)?(repeating\-radial\-gradient)/i,o=/^to (left (top|bottom)|right (top|bottom)|left|right|top|bottom)/i,i=/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,a=/^(left|center|right|top|bottom)/i,c=/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,s=/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,u=/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,l=/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,d=/^\(/,f=/^\)/,p=/^,/,b=/^\#([0-9a-fA-F]+)/,h=/^([a-zA-Z]+)/,v=/^rgb/i,m=/^rgba/i,y=/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/,g="";function O(e){var t=new Error(g+": "+e);throw t.source=g,t}function j(){var e=D(w);return g.length>0&&O("Invalid input not EOF"),e}function w(){return k("linear-gradient",e,S)||k("repeating-linear-gradient",t,S)||k("radial-gradient",n,E)||k("repeating-radial-gradient",r,E)}function k(e,t,n){return _(t,(function(t){var r=n();return r&&(A(p)||O("Missing comma before color stops")),{type:e,orientation:r,colorStops:D(M)}}))}function _(e,t){var n=A(e);if(n)return A(d)||O("Missing ("),result=t(n),A(f)||O("Missing )"),result}function S(){return N("directional",o,1)||N("angular",l,1)}function E(){var e,t,n=x();return n&&((e=[]).push(n),t=g,A(p)&&((n=x())?e.push(n):g=t)),e}function x(){var e=function(){var e=N("shape",/^(circle)/i,0);e&&(e.style=R()||C());return e}()||function(){var e=N("shape",/^(ellipse)/i,0);e&&(e.style=I()||C());return e}();if(e)e.at=function(){if(N("position",/^at/,0)){var e=P();return e||O("Missing positioning value"),e}}();else{var t=P();t&&(e={type:"default-radial",at:t})}return e}function C(){return N("extent-keyword",i,1)}function P(){var e={x:I(),y:I()};if(e.x||e.y)return{type:"position",value:e}}function D(e){var t=e(),n=[];if(t)for(n.push(t);A(p);)(t=e())?n.push(t):O("One extra comma");return n}function M(){var e=N("hex",b,1)||_(m,(function(){return{type:"rgba",value:D(T)}}))||_(v,(function(){return{type:"rgb",value:D(T)}}))||N("literal",h,0);return e||O("Expected color definition"),e.length=I(),e}function T(){return A(y)[1]}function I(){return N("%",s,1)||N("position-keyword",a,1)||R()}function R(){return N("px",c,1)||N("em",u,1)}function N(e,t,n){var r=A(t);if(r)return{type:e,value:r[n]}}function A(e){var t,n;return(n=/^[\n\r\t\s]+/.exec(g))&&L(n[0].length),(t=e.exec(g))&&L(t[0].length),t}function L(e){g=g.substr(e)}return function(e){return g=e.toString(),j()}}(),t.parse=(n||{}).parse},,,,,,,,function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));t.a=i},,,,,function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));t.a=i},function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));t.a=i},,function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"}));t.a=i},function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M15.6 7.3h-.7l1.6-3.5-.9-.4-3.9 8.5H9v1.5h2l-1.3 2.8H8.4c-2 0-3.7-1.7-3.7-3.7s1.7-3.7 3.7-3.7H10V7.3H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H9l-1.4 3.2.9.4 5.7-12.5h1.4c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.9 0 5.2-2.3 5.2-5.2 0-2.9-2.4-5.2-5.2-5.2z"}));t.a=i},function(e,t,n){"use strict";var r=Object.prototype.toString;e.exports=function(e){var t=r.call(e),n="[object Arguments]"===t;return n||(n="[object Array]"!==t&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===r.call(e.callee)),n}},function(e,t,n){"use strict";(function(t){var r=t.Symbol,o=n(331);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}}).call(this,n(131))},function(e,t,n){"use strict";var r=n(332),o=n(342),i=n(189),a=n(233),c=n(232),s=n(362);e.exports=function(){var e=s(this),t=c(i(e,"length")),n=1;arguments.length>0&&void 0!==arguments[0]&&(n=a(arguments[0]));var u=r(e,0);return o(u,e,t,0,n),u}},function(e,t,n){"use strict";var r=n(58)("%Object.defineProperty%",!0);if(r)try{r({},"a",{value:1})}catch(e){r=null}var o=n(144)("Object.prototype.propertyIsEnumerable");e.exports=function(e,t,n,i,a,c){if(!r){if(!e(c))return!1;if(!c["[[Configurable]]"]||!c["[[Writable]]"])return!1;if(a in i&&o(i,a)!==!!c["[[Enumerable]]"])return!1;var s=c["[[Value]]"];return i[a]=s,t(i[a],s)}return r(i,a,n(c)),!0}},function(e,t,n){"use strict";var r=n(191),o=n(93);e.exports=function(e){if(void 0===e)return e;r(o,"Property Descriptor","Desc",e);var t={};return"[[Value]]"in e&&(t.value=e["[[Value]]"]),"[[Writable]]"in e&&(t.writable=e["[[Writable]]"]),"[[Get]]"in e&&(t.get=e["[[Get]]"]),"[[Set]]"in e&&(t.set=e["[[Set]]"]),"[[Enumerable]]"in e&&(t.enumerable=e["[[Enumerable]]"]),"[[Configurable]]"in e&&(t.configurable=e["[[Configurable]]"]),t}},function(e,t,n){"use strict";var r=n(94),o=n(191),i=n(93);e.exports=function(e){return void 0!==e&&(o(i,"Property Descriptor","Desc",e),!(!r(e,"[[Value]]")&&!r(e,"[[Writable]]")))}},function(e,t,n){"use strict";var r=n(192);e.exports=function(e,t){return e===t?0!==e||1/e==1/t:r(e)&&r(t)}},function(e,t,n){"use strict";var r=n(94),o=n(58)("%TypeError%"),i=n(93),a=n(227),c=n(340);e.exports=function(e){if("Object"!==i(e))throw new o("ToPropertyDescriptor requires an object");var t={};if(r(e,"enumerable")&&(t["[[Enumerable]]"]=a(e.enumerable)),r(e,"configurable")&&(t["[[Configurable]]"]=a(e.configurable)),r(e,"value")&&(t["[[Value]]"]=e.value),r(e,"writable")&&(t["[[Writable]]"]=a(e.writable)),r(e,"get")){var n=e.get;if(void 0!==n&&!c(n))throw new o("getter must be a function");t["[[Get]]"]=n}if(r(e,"set")){var s=e.set;if(void 0!==s&&!c(s))throw new o("setter must be a function");t["[[Set]]"]=s}if((r(t,"[[Get]]")||r(t,"[[Set]]"))&&(r(t,"[[Value]]")||r(t,"[[Writable]]")))throw new o("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}},function(e,t,n){"use strict";e.exports=function(e){return!!e}},function(e,t,n){"use strict";var r,o,i=Function.prototype.toString,a="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof a&&"function"==typeof Object.defineProperty)try{r=Object.defineProperty({},"length",{get:function(){throw o}}),o={},a((function(){throw 42}),null,r)}catch(e){e!==o&&(a=null)}else a=null;var c=/^\s*class\b/,s=function(e){try{var t=i.call(e);return c.test(t)}catch(e){return!1}},u=Object.prototype.toString,l="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=a?function(e){if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;try{a(e,null,r)}catch(e){if(e!==o)return!1}return!s(e)}:function(e){if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;if(l)return function(e){try{return!s(e)&&(i.call(e),!0)}catch(e){return!1}}(e);if(s(e))return!1;var t=u.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t}},function(e,t,n){"use strict";var r=Number.isNaN||function(e){return e!=e};e.exports=Number.isFinite||function(e){return"number"==typeof e&&!r(e)&&e!==1/0&&e!==-1/0}},function(e,t,n){"use strict";var r=n(58),o=r("%Math%"),i=r("%Number%");e.exports=i.MAX_SAFE_INTEGER||o.pow(2,53)-1},function(e,t,n){"use strict";e.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},function(e,t,n){"use strict";var r=n(230),o=n(233);e.exports=function(e){var t=o(e);return t<=0?0:t>r?r:t}},function(e,t,n){"use strict";var r=n(352),o=n(355);e.exports=function(e){var t=o(e);return r(t)}},function(e,t,n){"use strict";var r=Date.prototype.getDay,o=Object.prototype.toString,i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(e){return"object"==typeof e&&null!==e&&(i?function(e){try{return r.call(e),!0}catch(e){return!1}}(e):"[object Date]"===o.call(e))}},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(221);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 i(e,t){var n=t(e(o));return function(){return n}}function a(e){return i(e,r.createLTR||r.create)}function c(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=r.resolve(t);return o}function s(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.resolveLTR?r.resolveLTR(t):c(t)}t.default={registerTheme:function(e){o=e},registerInterface:function(e){r=e},create:a,createLTR:a,createRTL:function(e){return i(e,r.createRTL||r.create)},get:function(){return o},resolve:s,resolveLTR:s,resolveRTL:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.resolveRTL?r.resolveRTL(t):c(t)},flush:function(){r.flush&&r.flush()}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={white:"#fff",gray:"#484848",grayLight:"#82888a",grayLighter:"#cacccd",grayLightest:"#f2f2f2",borderMedium:"#c4c4c4",border:"#dbdbdb",borderLight:"#e4e7e7",borderLighter:"#eceeee",borderBright:"#f4f5f5",primary:"#00a699",primaryShade_1:"#33dacd",primaryShade_2:"#66e2da",primaryShade_3:"#80e8e0",primaryShade_4:"#b2f1ec",primary_dark:"#008489",secondary:"#007a87",yellow:"#ffe8bc",yellow_dark:"#ffce71"};t.default={reactDates:{zIndex:0,border:{input:{border:0,borderTop:0,borderRight:0,borderBottom:"2px solid transparent",borderLeft:0,outlineFocused:0,borderFocused:0,borderTopFocused:0,borderLeftFocused:0,borderBottomFocused:"2px solid "+String(r.primary_dark),borderRightFocused:0,borderRadius:0},pickerInput:{borderWidth:1,borderStyle:"solid",borderRadius:2}},color:{core:r,disabled:r.grayLightest,background:r.white,backgroundDark:"#f2f2f2",backgroundFocused:r.white,border:"rgb(219, 219, 219)",text:r.gray,textDisabled:r.border,textFocused:"#007a87",placeholderText:"#757575",outside:{backgroundColor:r.white,backgroundColor_active:r.white,backgroundColor_hover:r.white,color:r.gray,color_active:r.gray,color_hover:r.gray},highlighted:{backgroundColor:r.yellow,backgroundColor_active:r.yellow_dark,backgroundColor_hover:r.yellow_dark,color:r.gray,color_active:r.gray,color_hover:r.gray},minimumNights:{backgroundColor:r.white,backgroundColor_active:r.white,backgroundColor_hover:r.white,borderColor:r.borderLighter,color:r.grayLighter,color_active:r.grayLighter,color_hover:r.grayLighter},hoveredSpan:{backgroundColor:r.primaryShade_4,backgroundColor_active:r.primaryShade_3,backgroundColor_hover:r.primaryShade_4,borderColor:r.primaryShade_3,borderColor_active:r.primaryShade_3,borderColor_hover:r.primaryShade_3,color:r.secondary,color_active:r.secondary,color_hover:r.secondary},selectedSpan:{backgroundColor:r.primaryShade_2,backgroundColor_active:r.primaryShade_1,backgroundColor_hover:r.primaryShade_1,borderColor:r.primaryShade_1,borderColor_active:r.primary,borderColor_hover:r.primary,color:r.white,color_active:r.white,color_hover:r.white},selected:{backgroundColor:r.primary,backgroundColor_active:r.primary,backgroundColor_hover:r.primary,borderColor:r.primary,borderColor_active:r.primary,borderColor_hover:r.primary,color:r.white,color_active:r.white,color_hover:r.white},blocked_calendar:{backgroundColor:r.grayLighter,backgroundColor_active:r.grayLighter,backgroundColor_hover:r.grayLighter,borderColor:r.grayLighter,borderColor_active:r.grayLighter,borderColor_hover:r.grayLighter,color:r.grayLight,color_active:r.grayLight,color_hover:r.grayLight},blocked_out_of_range:{backgroundColor:r.white,backgroundColor_active:r.white,backgroundColor_hover:r.white,borderColor:r.borderLight,borderColor_active:r.borderLight,borderColor_hover:r.borderLight,color:r.grayLighter,color_active:r.grayLighter,color_hover:r.grayLighter}},spacing:{dayPickerHorizontalPadding:9,captionPaddingTop:22,captionPaddingBottom:37,inputPadding:0,displayTextPaddingVertical:void 0,displayTextPaddingTop:11,displayTextPaddingBottom:9,displayTextPaddingHorizontal:void 0,displayTextPaddingLeft:11,displayTextPaddingRight:11,displayTextPaddingVertical_small:void 0,displayTextPaddingTop_small:7,displayTextPaddingBottom_small:5,displayTextPaddingHorizontal_small:void 0,displayTextPaddingLeft_small:7,displayTextPaddingRight_small:7},sizing:{inputWidth:130,inputWidth_small:97,arrowWidth:24},noScrollBarOnVerticalScrollable:!1,font:{size:14,captionSize:18,input:{size:19,lineHeight:"24px",size_small:15,lineHeight_small:"18px",letterSpacing_small:"0.2px",styleDisabled:"italic"}}}}},function(e,t,n){"use strict";var r=n(187),o=n(120),i=function(e){return null!=e},a=n(235)(),c=Object,s=o.call(Function.call,Array.prototype.push),u=o.call(Function.call,Object.prototype.propertyIsEnumerable),l=a?Object.getOwnPropertySymbols:null;e.exports=function(e,t){if(!i(e))throw new TypeError("target must be an object");var n,o,d,f,p,b,h,v=c(e);for(n=1;n<arguments.length;++n){o=c(arguments[n]),f=r(o);var m=a&&(Object.getOwnPropertySymbols||l);if(m)for(p=m(o),d=0;d<p.length;++d)h=p[d],u(o,h)&&s(f,h);for(d=0;d<f.length;++d)b=o[h=f[d]],u(o,h)&&(v[h]=b)}return v}},function(e,t,n){"use strict";var r=n(239);e.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),n={},r=0;r<t.length;++r)n[t[r]]=t[r];var o=Object.assign({},n),i="";for(var a in o)i+=a;return e!==i}()||function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch(t){return"y"===e[1]}return!1}()?r:Object.assign:r}},function(e,t,n){"use strict";var r=n(103),o=n(242),i=n(250),a=n(384),c=i();r(c,{getPolyfill:i,implementation:o,shim:a}),e.exports=c},function(e,t,n){"use strict";var r=n(375),o=n(94),i=n(120).call(Function.call,Object.prototype.propertyIsEnumerable);e.exports=function(e){var t=r.RequireObjectCoercible(e),n=[];for(var a in t)o(t,a)&&i(t,a)&&n.push(t[a]);return n}},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(195),o=r("%TypeError%"),i=r("%SyntaxError%"),a=n(94),c={"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(a(t,r)&&!n[r])return!1;var i=a(t,"[[Value]]"),c=a(t,"[[Get]]")||a(t,"[[Set]]");if(i&&c)throw new o("Property Descriptors may not be both accessor and data descriptors");return!0}};e.exports=function(e,t,n,r){var a=c[t];if("function"!=typeof a)throw new i("unknown record type: "+t);if(!a(e,r))throw new o(n+" must be a "+t);console.log(a(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,n){var r=n(120).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){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(242);e.exports=function(){return"function"==typeof Object.values?Object.values:r}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return!("undefined"==typeof window||!("ontouchstart"in window||window.DocumentTouch&&"undefined"!=typeof document&&document instanceof window.DocumentTouch))||!("undefined"==typeof navigator||!navigator.maxTouchPoints&&!navigator.msMaxTouchPoints)},e.exports=t.default},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)&&!(0,i.default)(e,t))};var r=a(n(44)),o=a(n(253)),i=a(n(196));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(!i.default.isMoment(e)||!i.default.isMoment(t))return!1;var n=e.year(),r=e.month(),o=t.year(),a=t.month(),c=n===o,s=r===a;return c&&s?e.date()<t.date():c?r<a:n<o};var r,o=n(44),i=(r=o)&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=t?[t,a.DISPLAY_FORMAT,a.ISO_FORMAT]:[a.DISPLAY_FORMAT,a.ISO_FORMAT],r=(0,i.default)(e,n,!0);return r.isValid()?r.hour(12):null};var r,o=n(44),i=(r=o)&&r.__esModule?r:{default:r},a=n(78)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,i){var a=t.clone().startOf("month");i&&(a=a.startOf("week"));if((0,r.default)(e,a))return!1;var c=t.clone().add(n-1,"months").endOf("month");i&&(c=c.endOf("week"));return!(0,o.default)(e,c)};var r=i(n(253)),o=i(n(252));function i(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){var n=r.default.isMoment(e)?e:(0,o.default)(e,t);return n?n.format(i.ISO_FORMAT):null};var r=a(n(44)),o=a(n(254)),i=n(78);function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(28),i=(r=o)&&r.__esModule?r:{default:r},a=n(78);t.default=i.default.oneOf([a.INFO_POSITION_TOP,a.INFO_POSITION_BOTTOM,a.INFO_POSITION_BEFORE,a.INFO_POSITION_AFTER])},function(e,t,n){var r=n(396),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},function(e,t,n){var r=n(258).Symbol;e.exports=r},function(e,t,n){"use strict";n.r(t),n.d(t,"addEventListener",(function(){return s}));var r=!("undefined"==typeof window||!window.document||!window.document.createElement);var o=void 0;function i(){return void 0===o&&(o=function(){if(!r)return!1;if(!window.addEventListener||!window.removeEventListener||!Object.defineProperty)return!1;var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}}),n=function(){};window.addEventListener("testPassiveEventSupport",n,t),window.removeEventListener("testPassiveEventSupport",n,t)}catch(e){}return e}()),o}function a(e){e.handlers===e.nextHandlers&&(e.nextHandlers=e.handlers.slice())}function c(e){this.target=e,this.events={}}c.prototype.getEventHandlers=function(e,t){var n,r=String(e)+" "+String((n=t)?!0===n?100:(n.capture<<0)+(n.passive<<1)+(n.once<<2):0);return this.events[r]||(this.events[r]={handlers:[],handleEvent:void 0},this.events[r].nextHandlers=this.events[r].handlers),this.events[r]},c.prototype.handleEvent=function(e,t,n){var r=this.getEventHandlers(e,t);r.handlers=r.nextHandlers,r.handlers.forEach((function(e){e&&e(n)}))},c.prototype.add=function(e,t,n){var r=this,o=this.getEventHandlers(e,n);a(o),0===o.nextHandlers.length&&(o.handleEvent=this.handleEvent.bind(this,e,n),this.target.addEventListener(e,o.handleEvent,n)),o.nextHandlers.push(t);var i=!0;return function(){if(i){i=!1,a(o);var c=o.nextHandlers.indexOf(t);o.nextHandlers.splice(c,1),0===o.nextHandlers.length&&(r.target&&r.target.removeEventListener(e,o.handleEvent,n),o.handleEvent=void 0)}}};function s(e,t,n,r){e.__consolidated_events_handlers__||(e.__consolidated_events_handlers__=new c(e));var o=function(e){if(e)return i()?e:!!e.capture}(r);return e.__consolidated_events_handlers__.add(t,n,o)}},function(e,t,n){"use strict";e.exports=function(e){if(arguments.length<1)throw new TypeError("1 argument is required");if("object"!=typeof e)throw new TypeError("Argument 1 (”other“) to Node.contains must be an instance of Node");var t=e;do{if(this===t)return!0;t&&(t=t.parentNode)}while(t);return!1}},function(e,t,n){"use strict";var r=n(261);e.exports=function(){if("undefined"!=typeof document){if(document.contains)return document.contains;if(document.body&&document.body.contains)try{if("boolean"==typeof document.body.contains.call(document,""))return document.body.contains}catch(e){}}return r}},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<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=y(n(95)),a=y(n(13)),c=y(n(28)),s=y(n(147)),u=y(n(145)),l=n(89),d=n(112),f=y(n(44)),p=n(110),b=y(n(111)),h=y(n(264)),v=y(n(163)),m=n(78);function y(e){return e&&e.__esModule?e:{default:e}}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O(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}var j=(0,l.forbidExtraProps)((0,i.default)({},d.withStylesPropTypes,{day:u.default.momentObj,daySize:l.nonNegativeInteger,isOutsideDay:c.default.bool,modifiers:v.default,isFocused:c.default.bool,tabIndex:c.default.oneOf([0,-1]),onDayClick:c.default.func,onDayMouseEnter:c.default.func,onDayMouseLeave:c.default.func,renderDayContents:c.default.func,ariaLabelFormat:c.default.string,phrases:c.default.shape((0,b.default)(p.CalendarDayPhrases))})),w={day:(0,f.default)(),daySize:m.DAY_SIZE,isOutsideDay:!1,modifiers:new Set,isFocused:!1,tabIndex:-1,onDayClick:function(){},onDayMouseEnter:function(){},onDayMouseLeave:function(){},renderDayContents:null,ariaLabelFormat:"dddd, LL",phrases:p.CalendarDayPhrases},k=function(e){function t(){var e;g(this,t);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];var i=O(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(r)));return i.setButtonRef=i.setButtonRef.bind(i),i}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)}(t,e),o(t,[{key:"shouldComponentUpdate",value:function(e,t){return(0,s.default)(this,e,t)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isFocused,r=t.tabIndex;0===r&&(n||r!==e.tabIndex)&&this.buttonRef.focus()}},{key:"onDayClick",value:function(e,t){(0,this.props.onDayClick)(e,t)}},{key:"onDayMouseEnter",value:function(e,t){(0,this.props.onDayMouseEnter)(e,t)}},{key:"onDayMouseLeave",value:function(e,t){(0,this.props.onDayMouseLeave)(e,t)}},{key:"onKeyDown",value:function(e,t){var n=this.props.onDayClick,r=t.key;"Enter"!==r&&" "!==r||n(e,t)}},{key:"setButtonRef",value:function(e){this.buttonRef=e}},{key:"render",value:function(){var e=this,t=this.props,n=t.day,o=t.ariaLabelFormat,i=t.daySize,c=t.isOutsideDay,s=t.modifiers,u=t.renderDayContents,l=t.tabIndex,f=t.styles,p=t.phrases;if(!n)return a.default.createElement("td",null);var b=(0,h.default)(n,o,i,s,p),v=b.daySizeStyles,m=b.useDefaultCursor,y=b.selected,g=b.hoveredSpan,O=b.isOutsideRange,j=b.ariaLabel;return a.default.createElement("td",r({},(0,d.css)(f.CalendarDay,m&&f.CalendarDay__defaultCursor,f.CalendarDay__default,c&&f.CalendarDay__outside,s.has("today")&&f.CalendarDay__today,s.has("first-day-of-week")&&f.CalendarDay__firstDayOfWeek,s.has("last-day-of-week")&&f.CalendarDay__lastDayOfWeek,s.has("hovered-offset")&&f.CalendarDay__hovered_offset,s.has("highlighted-calendar")&&f.CalendarDay__highlighted_calendar,s.has("blocked-minimum-nights")&&f.CalendarDay__blocked_minimum_nights,s.has("blocked-calendar")&&f.CalendarDay__blocked_calendar,g&&f.CalendarDay__hovered_span,s.has("selected-span")&&f.CalendarDay__selected_span,s.has("last-in-range")&&f.CalendarDay__last_in_range,s.has("selected-start")&&f.CalendarDay__selected_start,s.has("selected-end")&&f.CalendarDay__selected_end,y&&f.CalendarDay__selected,O&&f.CalendarDay__blocked_out_of_range,v),{role:"button",ref:this.setButtonRef,"aria-label":j,onMouseEnter:function(t){e.onDayMouseEnter(n,t)},onMouseLeave:function(t){e.onDayMouseLeave(n,t)},onMouseUp:function(e){e.currentTarget.blur()},onClick:function(t){e.onDayClick(n,t)},onKeyDown:function(t){e.onKeyDown(n,t)},tabIndex:l}),u?u(n,s):n.format("D"))}}]),t}(a.default.Component);k.propTypes=j,k.defaultProps=w,t.PureCalendarDay=k,t.default=(0,d.withStyles)((function(e){var t=e.reactDates,n=t.color;return{CalendarDay:{boxSizing:"border-box",cursor:"pointer",fontSize:t.font.size,textAlign:"center",":active":{outline:0}},CalendarDay__defaultCursor:{cursor:"default"},CalendarDay__default:{border:"1px solid "+String(n.core.borderLight),color:n.text,background:n.background,":hover":{background:n.core.borderLight,border:"1px double "+String(n.core.borderLight),color:"inherit"}},CalendarDay__hovered_offset:{background:n.core.borderBright,border:"1px double "+String(n.core.borderLight),color:"inherit"},CalendarDay__outside:{border:0,background:n.outside.backgroundColor,color:n.outside.color,":hover":{border:0}},CalendarDay__blocked_minimum_nights:{background:n.minimumNights.backgroundColor,border:"1px solid "+String(n.minimumNights.borderColor),color:n.minimumNights.color,":hover":{background:n.minimumNights.backgroundColor_hover,color:n.minimumNights.color_active},":active":{background:n.minimumNights.backgroundColor_active,color:n.minimumNights.color_active}},CalendarDay__highlighted_calendar:{background:n.highlighted.backgroundColor,color:n.highlighted.color,":hover":{background:n.highlighted.backgroundColor_hover,color:n.highlighted.color_active},":active":{background:n.highlighted.backgroundColor_active,color:n.highlighted.color_active}},CalendarDay__selected_span:{background:n.selectedSpan.backgroundColor,border:"1px solid "+String(n.selectedSpan.borderColor),color:n.selectedSpan.color,":hover":{background:n.selectedSpan.backgroundColor_hover,border:"1px solid "+String(n.selectedSpan.borderColor),color:n.selectedSpan.color_active},":active":{background:n.selectedSpan.backgroundColor_active,border:"1px solid "+String(n.selectedSpan.borderColor),color:n.selectedSpan.color_active}},CalendarDay__last_in_range:{borderRight:n.core.primary},CalendarDay__selected:{background:n.selected.backgroundColor,border:"1px solid "+String(n.selected.borderColor),color:n.selected.color,":hover":{background:n.selected.backgroundColor_hover,border:"1px solid "+String(n.selected.borderColor),color:n.selected.color_active},":active":{background:n.selected.backgroundColor_active,border:"1px solid "+String(n.selected.borderColor),color:n.selected.color_active}},CalendarDay__hovered_span:{background:n.hoveredSpan.backgroundColor,border:"1px solid "+String(n.hoveredSpan.borderColor),color:n.hoveredSpan.color,":hover":{background:n.hoveredSpan.backgroundColor_hover,border:"1px solid "+String(n.hoveredSpan.borderColor),color:n.hoveredSpan.color_active},":active":{background:n.hoveredSpan.backgroundColor_active,border:"1px solid "+String(n.hoveredSpan.borderColor),color:n.hoveredSpan.color_active}},CalendarDay__blocked_calendar:{background:n.blocked_calendar.backgroundColor,border:"1px solid "+String(n.blocked_calendar.borderColor),color:n.blocked_calendar.color,":hover":{background:n.blocked_calendar.backgroundColor_hover,border:"1px solid "+String(n.blocked_calendar.borderColor),color:n.blocked_calendar.color_active},":active":{background:n.blocked_calendar.backgroundColor_active,border:"1px solid "+String(n.blocked_calendar.borderColor),color:n.blocked_calendar.color_active}},CalendarDay__blocked_out_of_range:{background:n.blocked_out_of_range.backgroundColor,border:"1px solid "+String(n.blocked_out_of_range.borderColor),color:n.blocked_out_of_range.color,":hover":{background:n.blocked_out_of_range.backgroundColor_hover,border:"1px solid "+String(n.blocked_out_of_range.borderColor),color:n.blocked_out_of_range.color_active},":active":{background:n.blocked_out_of_range.backgroundColor_active,border:"1px solid "+String(n.blocked_out_of_range.borderColor),color:n.blocked_out_of_range.color_active}},CalendarDay__selected_start:{},CalendarDay__selected_end:{},CalendarDay__today:{},CalendarDay__firstDayOfWeek:{},CalendarDay__lastDayOfWeek:{}}}))(k)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r,o){var c=o.chooseAvailableDate,s=o.dateIsUnavailable,u=o.dateIsSelected,l={width:n,height:n-1},d=r.has("blocked-minimum-nights")||r.has("blocked-calendar")||r.has("blocked-out-of-range"),f=r.has("selected")||r.has("selected-start")||r.has("selected-end"),p=!f&&(r.has("hovered-span")||r.has("after-hovered-start")),b=r.has("blocked-out-of-range"),h={date:e.format(t)},v=(0,i.default)(c,h);r.has(a.BLOCKED_MODIFIER)?v=(0,i.default)(s,h):f&&(v=(0,i.default)(u,h));return{daySizeStyles:l,useDefaultCursor:d,selected:f,hoveredSpan:p,isOutsideRange:b,ariaLabel:v}};var r,o=n(410),i=(r=o)&&r.__esModule?r:{default:r},a=n(78)},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=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e)return 0;var o="width"===t?"Left":"Top",i="width"===t?"Right":"Bottom",a=!n||r?window.getComputedStyle(e):null,c=e.offsetWidth,s=e.offsetHeight,u="width"===t?c:s;n||(u-=parseFloat(a["padding"+o])+parseFloat(a["padding"+i])+parseFloat(a["border"+o+"Width"])+parseFloat(a["border"+i+"Width"]));r&&(u+=parseFloat(a["margin"+o])+parseFloat(a["margin"+i]));return u}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return 7*e+2*t+1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return!(!i.default.isMoment(e)||!i.default.isMoment(t))&&(e.month()===t.month()&&e.year()===t.year())};var r,o=n(44),i=(r=o)&&r.__esModule?r:{default:r}},,,,,,function(e,t,n){"use strict";n.r(t),n.d(t,"SVG",(function(){return r.SVG})),n.d(t,"Path",(function(){return r.Path})),n.d(t,"Circle",(function(){return r.Circle})),n.d(t,"Polygon",(function(){return r.Polygon})),n.d(t,"Rect",(function(){return r.Rect})),n.d(t,"G",(function(){return r.G})),n.d(t,"HorizontalRule",(function(){return r.HorizontalRule})),n.d(t,"BlockQuotation",(function(){return r.BlockQuotation})),n.d(t,"__experimentalAlignmentMatrixControl",(function(){return st})),n.d(t,"Animate",(function(){return ut.a})),n.d(t,"__unstableUseAnimate",(function(){return ut.b})),n.d(t,"AnglePickerControl",(function(){return Ur})),n.d(t,"Autocomplete",(function(){return Qr})),n.d(t,"BaseControl",(function(){return yt})),n.d(t,"__experimentalBoxControl",(function(){return Oi})),n.d(t,"Button",(function(){return qr.a})),n.d(t,"ButtonGroup",(function(){return ji})),n.d(t,"Card",(function(){return Fi})),n.d(t,"CardBody",(function(){return Vi})),n.d(t,"CardDivider",(function(){return Ki})),n.d(t,"CardFooter",(function(){return $i})),n.d(t,"CardHeader",(function(){return Xi})),n.d(t,"CardMedia",(function(){return Ji})),n.d(t,"CheckboxControl",(function(){return ta})),n.d(t,"ClipboardButton",(function(){return na})),n.d(t,"__experimentalColorEdit",(function(){return Ua})),n.d(t,"ColorIndicator",(function(){return Ga})),n.d(t,"ColorPalette",(function(){return $a})),n.d(t,"ColorPicker",(function(){return Ha})),n.d(t,"ComboboxControl",(function(){return nc})),n.d(t,"CustomSelectControl",(function(){return Xc})),n.d(t,"Dashicon",(function(){return Jc.a})),n.d(t,"DateTimePicker",(function(){return ds})),n.d(t,"DatePicker",(function(){return os})),n.d(t,"TimePicker",(function(){return us})),n.d(t,"__experimentalDimensionControl",(function(){return ys})),n.d(t,"Disabled",(function(){return Ss})),n.d(t,"Draggable",(function(){return Cs})),n.d(t,"DropZone",(function(){return Hs})),n.d(t,"__unstableUseDropZone",(function(){return zs})),n.d(t,"DropZoneProvider",(function(){return Fs})),n.d(t,"Dropdown",(function(){return sa})),n.d(t,"DropdownMenu",(function(){return Qs})),n.d(t,"ExternalLink",(function(){return nu})),n.d(t,"Flex",(function(){return St})),n.d(t,"FlexBlock",(function(){return kt})),n.d(t,"FlexItem",(function(){return Et})),n.d(t,"FocalPointPicker",(function(){return Ru})),n.d(t,"FocusableIframe",(function(){return Fu})),n.d(t,"FontSizePicker",(function(){return ml})),n.d(t,"FormFileUpload",(function(){return yl})),n.d(t,"FormToggle",(function(){return gl})),n.d(t,"FormTokenField",(function(){return Cl})),n.d(t,"__experimentalGradientPicker",(function(){return ld})),n.d(t,"__experimentalCustomGradientPicker",(function(){return ud})),n.d(t,"Guide",(function(){return Dd})),n.d(t,"GuidePage",(function(){return Md})),n.d(t,"Icon",(function(){return fs.a})),n.d(t,"IconButton",(function(){return Td})),n.d(t,"__experimentalInputControl",(function(){return Pr})),n.d(t,"KeyboardShortcuts",(function(){return Oa})),n.d(t,"MenuGroup",(function(){return Id})),n.d(t,"MenuItem",(function(){return Nd})),n.d(t,"MenuItemsChoice",(function(){return Ad})),n.d(t,"Modal",(function(){return Ed})),n.d(t,"ScrollLock",(function(){return Ld.a})),n.d(t,"NavigableMenu",(function(){return Ys})),n.d(t,"TabbableContainer",(function(){return Fd})),n.d(t,"__experimentalNavigation",(function(){return Jd})),n.d(t,"__experimentalNavigationBackButton",(function(){return ef})),n.d(t,"__experimentalNavigationGroup",(function(){return rf})),n.d(t,"__experimentalNavigationItem",(function(){return sf})),n.d(t,"__experimentalNavigationMenu",(function(){return df})),n.d(t,"Notice",(function(){return ff})),n.d(t,"__experimentalNumberControl",(function(){return Fr})),n.d(t,"NoticeList",(function(){return pf})),n.d(t,"Panel",(function(){return hf})),n.d(t,"PanelBody",(function(){return gf})),n.d(t,"PanelHeader",(function(){return bf})),n.d(t,"PanelRow",(function(){return Of})),n.d(t,"Placeholder",(function(){return jf})),n.d(t,"Popover",(function(){return Yr.a})),n.d(t,"QueryControls",(function(){return Cf})),n.d(t,"__experimentalRadio",(function(){return zf})),n.d(t,"__experimentalRadioGroup",(function(){return Uf})),n.d(t,"RadioControl",(function(){return Gf})),n.d(t,"RangeControl",(function(){return hl})),n.d(t,"ResizableBox",(function(){return Dp})),n.d(t,"ResponsiveWrapper",(function(){return Mp})),n.d(t,"SandBox",(function(){return Rp})),n.d(t,"SelectControl",(function(){return vs})),n.d(t,"Snackbar",(function(){return Np.a})),n.d(t,"SnackbarList",(function(){return Bp})),n.d(t,"Spinner",(function(){return Hp})),n.d(t,"TabPanel",(function(){return Kp})),n.d(t,"__experimentalText",(function(){return Xt})),n.d(t,"TextControl",(function(){return xa})),n.d(t,"TextareaControl",(function(){return Xp})),n.d(t,"TextHighlight",(function(){return Jp})),n.d(t,"Tip",(function(){return Qp})),n.d(t,"ToggleControl",(function(){return eb})),n.d(t,"Toolbar",(function(){return bb})),n.d(t,"ToolbarButton",(function(){return ob})),n.d(t,"__experimentalToolbarContext",(function(){return nb.a})),n.d(t,"ToolbarGroup",(function(){return ub})),n.d(t,"ToolbarItem",(function(){return tb.a})),n.d(t,"Tooltip",(function(){return C.a})),n.d(t,"__experimentalTreeGrid",(function(){return gb})),n.d(t,"__experimentalTreeGridRow",(function(){return Ob})),n.d(t,"__experimentalTreeGridCell",(function(){return _b})),n.d(t,"__experimentalTreeGridItem",(function(){return kb})),n.d(t,"TreeSelect",(function(){return Sf})),n.d(t,"__experimentalUnitControl",(function(){return go})),n.d(t,"VisuallyHidden",(function(){return M})),n.d(t,"IsolatedEventContainer",(function(){return dd.a})),n.d(t,"createSlotFill",(function(){return Sb.c})),n.d(t,"Slot",(function(){return Sb.b})),n.d(t,"Fill",(function(){return Sb.a})),n.d(t,"SlotFillProvider",(function(){return Eb.b})),n.d(t,"__experimentalUseSlot",(function(){return xb.a})),n.d(t,"navigateRegions",(function(){return Pb})),n.d(t,"withConstrainedTabbing",(function(){return pd.a})),n.d(t,"withFallbackStyles",(function(){return Mb})),n.d(t,"withFilters",(function(){return Rb})),n.d(t,"withFocusOutside",(function(){return ru.a})),n.d(t,"withFocusReturn",(function(){return fd.a})),n.d(t,"FocusReturnProvider",(function(){return Nb.b})),n.d(t,"withNotices",(function(){return Gb})),n.d(t,"withSpokenMessages",(function(){return Xr}));var r=n(7),o=n(8),i=n(12),a=n(14),c=n(0),s=n(2),u=n(9),l=n.n(u),d=n(52),f=n(122),p=n(15),b=n(51),h=n(50),v=n(13),m=n.n(v),y=n(63),g=n(59),O=n(67),j=Object(h.a)({name:"Group",compose:O.a,useProps:function(e,t){return Object(p.b)({role:"group"},t)}}),w=(Object(b.a)({as:"div",useHook:j}),n(96)),k=Object(h.a)({name:"CompositeGroup",compose:[j,w.a],useState:d.g,propsAreEqual:function(e,t){if(!t.id||e.id!==t.id)return j.unstable_propsAreEqual(e,t);var n=e.currentId,r=(e.unstable_moves,Object(p.a)(e,["currentId","unstable_moves"])),o=t.currentId,i=(t.unstable_moves,Object(p.a)(t,["currentId","unstable_moves"]));if(e.items&&t.items){var a=Object(d.d)(e.items,n),c=Object(d.d)(t.items,o),s=null==a?void 0:a.groupId,u=null==c?void 0:c.groupId;if(t.id===u||t.id===s)return!1}return j.unstable_propsAreEqual(r,i)},useProps:function(e,t){var n=t.ref,r=Object(p.a)(t,["ref"]),o=Object(v.useRef)(null),i=e.id;return Object(g.a)((function(){var t;if(i)return null===(t=e.registerGroup)||void 0===t||t.call(e,{id:i,ref:o}),function(){var t;null===(t=e.unregisterGroup)||void 0===t||t.call(e,i)}}),[i,e.registerGroup,e.unregisterGroup]),Object(p.b)({ref:Object(y.a)(o,n)},r)}}),_=Object(b.a)({as:"div",useHook:k}),S=n(1),E=n(10),x=n(123),C=n(84),P=n(5);function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var M=function(e){var t=e.as,n=void 0===t?"div":t,r=e.className,o=Object(a.a)(e,["as","className"]);return function(e){var t=e.as,n=void 0===t?"div":t,r=Object(a.a)(e,["as"]);return"function"==typeof r.children?r.children(r):Object(c.createElement)(n,r)}(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D(Object(n),!0).forEach((function(t){Object(P.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({as:n,className:l()("components-visually-hidden",r)},o))},T=[["top left","top center","top right"],["center left","center center","center right"],["bottom left","bottom center","bottom right"]],I={"top left":Object(S.__)("Top Left"),"top center":Object(S.__)("Top Center"),"top right":Object(S.__)("Top Right"),"center left":Object(S.__)("Center Left"),"center center":Object(S.__)("Center Center"),"center right":Object(S.__)("Center Right"),"bottom left":Object(S.__)("Bottom Left"),"bottom center":Object(S.__)("Bottom Center"),"bottom right":Object(S.__)("Bottom Right")},R=Object(s.flattenDeep)(T);function N(e){return("center"===e?"center center":e).replace("-"," ")}function A(e,t){var n=N(t).replace(" ","-");return"".concat(e,"-").concat(n)}var L=n(285),F=n.n(L);var z=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}},B=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,H=z((function(e){return B.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),V=n(148),K=n.n(V);var W=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var o=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{var i=105===e.charCodeAt(1)&&64===e.charCodeAt(0);o.insertRule(e,i?0:o.cssRules.length)}catch(e){0}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}();var U=function(e){function t(e,t,r){var o=t.trim().split(b);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var c=0;for(e=0===a?"":e[0]+" ";c<i;++c)t[c]=n(e,t[c],r).trim();break;default:var s=c=0;for(t=[];c<i;++c)for(var u=0;u<a;++u)t[s++]=n(e[u]+" ",o[c],r).trim()}return t}function n(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(h,"$1"+e.trim());case 58:return e.trim()+t.replace(h,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(h,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function r(e,t,n,i){var a=e+";",c=2*t+3*n+4*i;if(944===c){e=a.indexOf(":",9)+1;var s=a.substring(e,a.length-1).trim();return s=a.substring(0,e).trim()+s+";",1===P||2===P&&o(s,1)?"-webkit-"+s+s:s}if(0===P||2===P&&!o(a,1))return a;switch(c){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(S,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(s=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+s+a;case 1005:return f.test(a)?a.replace(d,":-webkit-")+a.replace(d,":-moz-")+a:a;case 1e3:switch(t=(s=a.substring(13).trim()).indexOf("-")+1,s.charCodeAt(0)+s.charCodeAt(t)){case 226:s=a.replace(g,"tb");break;case 232:s=a.replace(g,"tb-rl");break;case 220:s=a.replace(g,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+s+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,c=(s=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|s.charCodeAt(7))){case 203:if(111>s.charCodeAt(8))break;case 115:a=a.replace(s,"-webkit-"+s)+";"+a;break;case 207:case 102:a=a.replace(s,"-webkit-"+(102<c?"inline-":"")+"box")+";"+a.replace(s,"-webkit-"+s)+";"+a.replace(s,"-ms-"+s+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return s=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+s+"-ms-flex-"+s+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(w,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(w,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===_.test(e))return 115===(s=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,n,i).replace(":fill-available",":stretch"):a.replace(s,"-webkit-"+s)+a.replace(s,"-moz-"+s.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+i&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(p,"$1-webkit-$2")+a}return a}function o(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),I(2!==t?r:r.replace(k,"$1"),n,t)}function i(e,t){var n=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(j," or ($1)").substring(4):"("+t+")"}function a(e,t,n,r,o,i,a,c,u,l){for(var d,f=0,p=t;f<T;++f)switch(d=M[f].call(s,e,p,n,r,o,i,a,c,u,l)){case void 0:case!1:case!0:case null:break;default:p=d}if(p!==t)return p}function c(e){return void 0!==(e=e.prefix)&&(I=null,e?"function"!=typeof e?P=1:(P=2,I=e):P=0),c}function s(e,n){var c=e;if(33>c.charCodeAt(0)&&(c=c.trim()),c=[c],0<T){var s=a(-1,n,c,c,x,E,0,0,0,0);void 0!==s&&"string"==typeof s&&(n=s)}var d=function e(n,c,s,d,f){for(var p,b,h,g,j,w=0,k=0,_=0,S=0,M=0,I=0,N=h=p=0,A=0,L=0,F=0,z=0,B=s.length,H=B-1,V="",K="",W="",U="";A<B;){if(b=s.charCodeAt(A),A===H&&0!==k+S+_+w&&(0!==k&&(b=47===k?10:47),S=_=w=0,B++,H++),0===k+S+_+w){if(A===H&&(0<L&&(V=V.replace(l,"")),0<V.trim().length)){switch(b){case 32:case 9:case 59:case 13:case 10:break;default:V+=s.charAt(A)}b=59}switch(b){case 123:for(p=(V=V.trim()).charCodeAt(0),h=1,z=++A;A<B;){switch(b=s.charCodeAt(A)){case 123:h++;break;case 125:h--;break;case 47:switch(b=s.charCodeAt(A+1)){case 42:case 47:e:{for(N=A+1;N<H;++N)switch(s.charCodeAt(N)){case 47:if(42===b&&42===s.charCodeAt(N-1)&&A+2!==N){A=N+1;break e}break;case 10:if(47===b){A=N+1;break e}}A=N}}break;case 91:b++;case 40:b++;case 34:case 39:for(;A++<H&&s.charCodeAt(A)!==b;);}if(0===h)break;A++}switch(h=s.substring(z,A),0===p&&(p=(V=V.replace(u,"").trim()).charCodeAt(0)),p){case 64:switch(0<L&&(V=V.replace(l,"")),b=V.charCodeAt(1)){case 100:case 109:case 115:case 45:L=c;break;default:L=D}if(z=(h=e(c,L,h,b,f+1)).length,0<T&&(j=a(3,h,L=t(D,V,F),c,x,E,z,b,f,d),V=L.join(""),void 0!==j&&0===(z=(h=j.trim()).length)&&(b=0,h="")),0<z)switch(b){case 115:V=V.replace(O,i);case 100:case 109:case 45:h=V+"{"+h+"}";break;case 107:h=(V=V.replace(v,"$1 $2"))+"{"+h+"}",h=1===P||2===P&&o("@"+h,3)?"@-webkit-"+h+"@"+h:"@"+h;break;default:h=V+h,112===d&&(K+=h,h="")}else h="";break;default:h=e(c,t(c,V,F),h,d,f+1)}W+=h,h=F=L=N=p=0,V="",b=s.charCodeAt(++A);break;case 125:case 59:if(1<(z=(V=(0<L?V.replace(l,""):V).trim()).length))switch(0===N&&(p=V.charCodeAt(0),45===p||96<p&&123>p)&&(z=(V=V.replace(" ",":")).length),0<T&&void 0!==(j=a(1,V,c,n,x,E,K.length,d,f,d))&&0===(z=(V=j.trim()).length)&&(V="\0\0"),p=V.charCodeAt(0),b=V.charCodeAt(1),p){case 0:break;case 64:if(105===b||99===b){U+=V+s.charAt(A);break}default:58!==V.charCodeAt(z-1)&&(K+=r(V,p,b,V.charCodeAt(2)))}F=L=N=p=0,V="",b=s.charCodeAt(++A)}}switch(b){case 13:case 10:47===k?k=0:0===1+p&&107!==d&&0<V.length&&(L=1,V+="\0"),0<T*R&&a(0,V,c,n,x,E,K.length,d,f,d),E=1,x++;break;case 59:case 125:if(0===k+S+_+w){E++;break}default:switch(E++,g=s.charAt(A),b){case 9:case 32:if(0===S+w+k)switch(M){case 44:case 58:case 9:case 32:g="";break;default:32!==b&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===S+k+w&&(L=F=1,g="\f"+g);break;case 108:if(0===S+k+w+C&&0<N)switch(A-N){case 2:112===M&&58===s.charCodeAt(A-3)&&(C=M);case 8:111===I&&(C=I)}break;case 58:0===S+k+w&&(N=A);break;case 44:0===k+_+S+w&&(L=1,g+="\r");break;case 34:case 39:0===k&&(S=S===b?0:0===S?b:S);break;case 91:0===S+k+_&&w++;break;case 93:0===S+k+_&&w--;break;case 41:0===S+k+w&&_--;break;case 40:if(0===S+k+w){if(0===p)switch(2*M+3*I){case 533:break;default:p=1}_++}break;case 64:0===k+_+S+w+N+h&&(h=1);break;case 42:case 47:if(!(0<S+w+_))switch(k){case 0:switch(2*b+3*s.charCodeAt(A+1)){case 235:k=47;break;case 220:z=A,k=42}break;case 42:47===b&&42===M&&z+2!==A&&(33===s.charCodeAt(z+2)&&(K+=s.substring(z,A+1)),g="",k=0)}}0===k&&(V+=g)}I=M,M=b,A++}if(0<(z=K.length)){if(L=c,0<T&&(void 0!==(j=a(2,K,L,n,x,E,z,d,f,d))&&0===(K=j).length))return U+K+W;if(K=L.join(",")+"{"+K+"}",0!=P*C){switch(2!==P||o(K,2)||(C=0),C){case 111:K=K.replace(y,":-moz-$1")+K;break;case 112:K=K.replace(m,"::-webkit-input-$1")+K.replace(m,"::-moz-$1")+K.replace(m,":-ms-input-$1")+K}C=0}}return U+K+W}(D,c,n,0,0);return 0<T&&(void 0!==(s=a(-2,d,c,c,x,E,d.length,0,0,0))&&(d=s)),"",C=0,E=x=1,d}var u=/^\0+/g,l=/[\0\r\f]/g,d=/: */g,f=/zoo|gra/,p=/([,: ])(transform)/g,b=/,\r+?/g,h=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,m=/::(place)/g,y=/:(read-only)/g,g=/[svh]\w+-[tblr]{2}/,O=/\(\s*(.*)\s*\)/g,j=/([\s\S]*?);/g,w=/-self|flex-/g,k=/[^]*?(:[rp][el]a[\w-]+)[^]*/,_=/stretch|:\s*\w+\-(?:conte|avail)/,S=/([^-])(image-set\()/,E=1,x=1,C=0,P=1,D=[],M=[],T=0,I=null,R=0;return s.use=function e(t){switch(t){case void 0:case null:T=M.length=0;break;default:if("function"==typeof t)M[T++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else R=0|!!t}return e},s.set=c,void 0!==e&&c(e),s};function G(e){e&&$.current.insert(e+"}")}var $={current:null},q=function(e,t,n,r,o,i,a,c,s,u){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return $.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===c)return t+"/*|*/";break;case 3:switch(c){case 102:case 112:return $.current.insert(n[0]+t),"";default:return t+(0===u?"/*|*/":"")}case-2:t.split("/*|*/}").forEach(G)}},Y=function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var r=new U(t);var o,i={};o=e.container||document.head;var a,c=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(c,(function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach((function(e){i[e]=!0})),e.parentNode!==o&&o.appendChild(e)})),r.use(e.stylisPlugins)(q),a=function(e,t,n,o){var i=t.name;$.current=n,r(e,t.styles),o&&(s.inserted[i]=!0)};var s={key:n,sheet:new W({key:n,container:o,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:i,registered:{},insert:a};return s};function Z(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]):r+=n+" "})),r}var X=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var o=t;do{e.insert("."+r,o,e.sheet,!0);o=o.next}while(void 0!==o)}};var J=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},Q={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ee=/[A-Z]|^ms/g,te=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ne=function(e){return 45===e.charCodeAt(1)},re=function(e){return null!=e&&"boolean"!=typeof e},oe=z((function(e){return ne(e)?e:e.replace(ee,"-$&").toLowerCase()})),ie=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(te,(function(e,t,n){return ce={name:t,styles:n,next:ce},t}))}return 1===Q[e]||ne(e)||"number"!=typeof t||0===t?t:t+"px"};function ae(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return ce={name:n.name,styles:n.styles,next:ce},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)ce={name:o.name,styles:o.styles,next:ce},o=o.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=ae(e,t,n[o],!1);else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":re(a)&&(r+=oe(i)+":"+ie(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var c=ae(e,t,a,!1);switch(i){case"animation":case"animationName":r+=oe(i)+":"+c+";";break;default:r+=i+"{"+c+"}"}}else for(var s=0;s<a.length;s++)re(a[s])&&(r+=oe(i)+":"+ie(i,a[s])+";")}return r}(e,t,n);case"function":if(void 0!==e){var i=ce,a=n(e);return ce=i,ae(e,t,a,r)}break;case"string":}if(null==t)return n;var c=t[n];return void 0===c||r?n:c}var ce,se=/label:\s*([^\s;\n{]+)\s*;/g;var ue=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";ce=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=ae(n,t,i,!1)):o+=i[0];for(var a=1;a<e.length;a++)o+=ae(n,t,e[a],46===o.charCodeAt(o.length-1)),r&&(o+=i[a]);se.lastIndex=0;for(var c,s="";null!==(c=se.exec(o));)s+="-"+c[1];return{name:J(o)+s,styles:o,next:ce}};var le=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ue(t)},de=Object(v.createContext)("undefined"!=typeof HTMLElement?Y():null),fe=Object(v.createContext)({}),pe=(de.Provider,function(e){return Object(v.forwardRef)((function(t,n){return Object(v.createElement)(de.Consumer,null,(function(r){return e(t,r,n)}))}))});Object.prototype.hasOwnProperty;v.Component;var be=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var i=t[r];if(null!=i){var a=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))a=e(i);else for(var c in a="",i)i[c]&&c&&(a&&(a+=" "),a+=c);break;default:a=i}a&&(o&&(o+=" "),o+=a)}}return o};function he(e,t,n){var r=[],o=Z(e,r,n);return r.length<2?n:o+t(r)}pe((function(e,t){return Object(v.createElement)(fe.Consumer,null,(function(n){var r=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=ue(n,t.registered);return X(t,o,!1),t.key+"-"+o.name},o={css:r,cx:function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return he(t.registered,r,be(n))},theme:n},i=e.children(o);return!0,i}))}));var ve=H,me=function(e){return"theme"!==e&&"innerRef"!==e},ye=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?ve:me};function ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Oe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ge(n,!0).forEach((function(t){F()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ge(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var je=function e(t,n){var r,o,i;void 0!==n&&(r=n.label,i=n.target,o=t.__emotion_forwardProp&&n.shouldForwardProp?function(e){return t.__emotion_forwardProp(e)&&n.shouldForwardProp(e)}:n.shouldForwardProp);var a=t.__emotion_real===t,c=a&&t.__emotion_base||t;"function"!=typeof o&&a&&(o=t.__emotion_forwardProp);var s=o||ye(c),u=!s("as");return function(){var l=arguments,d=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==l[0]||void 0===l[0].raw)d.push.apply(d,l);else{0,d.push(l[0][0]);for(var f=l.length,p=1;p<f;p++)d.push(l[p],l[0][p])}var b=pe((function(e,t,n){return Object(v.createElement)(fe.Consumer,null,(function(r){var a=u&&e.as||c,l="",f=[],p=e;if(null==e.theme){for(var b in p={},e)p[b]=e[b];p.theme=r}"string"==typeof e.className?l=Z(t.registered,f,e.className):null!=e.className&&(l=e.className+" ");var h=ue(d.concat(f),t.registered,p);X(t,h,"string"==typeof a);l+=t.key+"-"+h.name,void 0!==i&&(l+=" "+i);var m=u&&void 0===o?ye(a):s,y={};for(var g in e)u&&"as"===g||m(g)&&(y[g]=e[g]);return y.className=l,y.ref=n||e.innerRef,Object(v.createElement)(a,y)}))}));return b.displayName=void 0!==r?r:"Styled("+("string"==typeof c?c:c.displayName||c.name||"Component")+")",b.defaultProps=t.defaultProps,b.__emotion_real=b,b.__emotion_base=c,b.__emotion_styles=d,b.__emotion_forwardProp=o,Object.defineProperty(b,"toString",{value:function(){return"."+i}}),b.withComponent=function(t,r){return e(t,void 0!==r?Oe({},n||{},{},r):n).apply(void 0,d)},b}},we=n(66),ke=n.n(we);function _e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Se(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_e(Object(n),!0).forEach((function(t){Object(P.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_e(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ee={black:"#000",white:"#fff"},xe={blue:{medium:{focus:"#007cba",focusDark:"#fff"}},gray:{900:"#1e1e1e",700:"#757575",600:"#949494",400:"#ccc",200:"#ddd",100:"#f0f0f0"},darkGray:{primary:"#1e1e1e"},mediumGray:{text:"#757575"},lightGray:{ui:"#949494",secondary:"#ccc",tertiary:"#e7e8e9"}},Ce={900:"#191e23",800:"#23282d",700:"#32373c",600:"#40464d",500:"#555d66",400:"#606a73",300:"#6c7781",200:"#7e8993",150:"#8d96a0",100:"#8f98a1",placeholder:Le(xe.gray[900],.62)},Pe={900:Le("#000510",.9),800:Le("#00000a",.85),700:Le("#06060b",.8),600:Le("#000913",.75),500:Le("#0a1829",.7),400:Le("#0a1829",.65),300:Le("#0e1c2e",.62),200:Le("#162435",.55),100:Le("#223443",.5),backgroundFill:Le(Ce[700],.7)},De={900:Le("#304455",.45),800:Le("#425863",.4),700:Le("#667886",.35),600:Le("#7b86a2",.3),500:Le("#9197a2",.25),400:Le("#95959c",.2),300:Le("#829493",.15),200:Le("#8b8b96",.1),100:Le("#747474",.05)},Me={900:"#a2aab2",800:"#b5bcc2",700:"#ccd0d4",600:"#d7dade",500:"#e2e4e7",400:"#e8eaeb",300:"#edeff0",200:"#f3f4f5",100:"#f8f9f9",placeholder:Le(Ee.white,.65)},Te={900:Le(Ee.white,.5),800:Le(Ee.white,.45),700:Le(Ee.white,.4),600:Le(Ee.white,.35),500:Le(Ee.white,.3),400:Le(Ee.white,.25),300:Le(Ee.white,.2),200:Le(Ee.white,.15),100:Le(Ee.white,.1),backgroundFill:Le(Me[300],.8)},Ie={wordpress:{700:"#00669b"},dark:{900:"#0071a1"},medium:{900:"#006589",800:"#00739c",700:"#007fac",600:"#008dbe",500:"#00a0d2",400:"#33b3db",300:"#66c6e4",200:"#bfe7f3",100:"#e5f5fa",highlight:"#b3e7fe",focus:"#007cba"}},Re={theme:"var( --wp-admin-theme-color, ".concat(Ie.wordpress[700],")"),themeDark10:"var( --wp-admin-theme-color-darker-10, ".concat(Ie.medium.focus,")")},Ne={theme:Re.theme,background:Ee.white,backgroundDisabled:Me[200],border:xe.gray[700],borderFocus:Re.themeDark10,borderDisabled:xe.gray[400],borderLight:xe.gray[200],label:Ce[500],textDisabled:Ce[150],textDark:Ee.white,textLight:Ee.black},Ae=Se(Se({},Ee),{},{darkGray:Object(s.merge)({},Ce,xe.darkGray),darkOpacity:Pe,darkOpacityLight:De,mediumGray:xe.mediumGray,lightGray:Object(s.merge)({},Me,xe.lightGray),lightGrayLight:Te,blue:Object(s.merge)({},Ie,xe.blue),alert:{yellow:"#f0b849",red:"#d94f4f",green:"#4ab866"},admin:Re,ui:Ne});function Le(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=ke()(e).toRgb(),r=n.r,o=n.g,i=n.b;return"rgba(".concat(r,", ").concat(o,", ").concat(i,", ").concat(t,")")}function Fe(e){return Object(s.get)(Ae,e,"#000")}function ze(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transition";switch(t){case"transition":e="transition-duration: 0ms;";break;case"animation":e="animation-duration: 1ms;";break;default:e="\n\t\t\t\tanimation-duration: 1ms;\n\t\t\t\ttransition-duration: 0ms;\n\t\t\t"}return"\n\t\t@media ( prefers-reduced-motion: reduce ) {\n\t\t\t".concat(e,";\n\t\t}\n\t")}var Be={name:"1xiracb",styles:"border-radius:2px;box-sizing:border-box;display:grid;grid-template-columns:repeat( 3,1fr );outline:none;"},He=function(){return Be},Ve=je("div",{target:"e1od1u4s0",label:"Root"})(He,";border:1px solid transparent;cursor:pointer;grid-template-columns:auto;",(function(e){var t=e.size,n=void 0===t?92:t;return le("grid-template-rows:repeat( 3,calc( ",n,"px / 3 ) );width:",n,"px;")}),";"),Ke=je("div",{target:"e1od1u4s1",label:"Row"})({name:"1177s8r",styles:"box-sizing:border-box;display:grid;grid-template-columns:repeat( 3,1fr );"}),We=function(e){return le("background:currentColor;box-sizing:border-box;display:grid;margin:auto;transition:all 120ms linear;",ze("transition")," ",(t=e.isActive,n=t?"0 0 0 2px ".concat(Fe("black")):null,r=Fe(t?"black":"lightGray.800"),o=Fe(t?"black":"blue.medium.focus"),le("box-shadow:",n,";color:",r,";*:hover > &{color:",o,";}")),"");var t,n,r,o},Ue=je("span",{target:"e1od1u4s2",label:"Point"})("height:6px;width:6px;",We,""),Ge=je("span",{target:"e1od1u4s3",label:"Cell"})({name:"10ro24i",styles:"appearance:none;border:none;box-sizing:border-box;margin:0;display:flex;position:relative;outline:none;align-items:center;justify-content:center;padding:0;"});function $e(e){var t=e.isActive,n=void 0!==t&&t,r=e.value,i=Object(a.a)(e,["isActive","value"]),s=I[r];return Object(c.createElement)(C.a,{text:s},Object(c.createElement)(x.a,Object(o.a)({as:Ge,role:"gridcell"},i),Object(c.createElement)(M,null,r),Object(c.createElement)(Ue,{isActive:n,role:"presentation"})))}var qe=new RegExp(/-left/g),Ye=new RegExp(/-right/g),Ze=new RegExp(/Left/g),Xe=new RegExp(/Right/g);function Je(){return!(!document||"rtl"!==document.documentElement.dir)}function Qe(){return Je()}function et(e){return"left"===e?"right":"right"===e?"left":qe.test(e)?e.replace(qe,"-right"):Ye.test(e)?e.replace(Ye,"-left"):Ze.test(e)?e.replace(Ze,"Right"):Xe.test(e)?e.replace(Xe,"Left"):e}var tt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(s.mapKeys)(e,(function(e,t){return et(t)}))};function nt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return function(){var n=Je();return le(t?n?t:e:n?tt(e):e,"")}}je("div",{target:"elqsdmc0",label:"Wrapper"})({name:"co61ta",styles:"box-sizing:border-box;padding:2px;"});var rt=je("div",{target:"elqsdmc1",label:"Root"})("transform-origin:top left;height:100%;width:100%;",He,";",(function(){return le({gridTemplateRows:"repeat( 3, calc( ".concat(21,"px / 3))"),padding:1.5,maxHeight:24,maxWidth:24},"")}),";",(function(e){var t=e.disablePointerEvents;return le({pointerEvents:t?"none":null},"")}),";"),ot=je("span",{target:"elqsdmc2",label:"Point"})("height:2px;width:2px;",We,";",(function(e){var t=e.isActive;return le("box-shadow:",t?"0 0 0 1px currentColor":null,";color:currentColor;*:hover > &{color:currentColor;}")}),";"),it=Ge;function at(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ct(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?at(Object(n),!0).forEach((function(t){Object(P.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):at(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function st(e){var t=e.className,n=e.id,r=e.label,u=void 0===r?Object(S.__)("Alignment Matrix Control"):r,p=e.defaultValue,b=void 0===p?"center center":p,h=e.value,v=e.onChange,m=void 0===v?s.noop:v,y=e.width,g=void 0===y?92:y,O=Object(a.a)(e,["className","id","label","defaultValue","value","onChange","width"]),j=Object(c.useState)(null!=h?h:b),w=Object(i.a)(j,1)[0],k=Qe(),x=function(e){var t=Object(E.useInstanceId)(st,"alignment-matrix-control");return e||t}(n),C=A(x,w),P=Object(d.g)({baseId:x,currentId:C,rtl:k});Object(c.useEffect)((function(){void 0!==h&&P.setCurrentId(A(x,h))}),[h,P.setCurrentId]);var D=l()("component-alignment-matrix-control",t);return Object(c.createElement)(f.a,Object(o.a)({},O,P,{"aria-label":u,as:Ve,className:D,role:"grid",width:g}),T.map((function(e,t){return Object(c.createElement)(_,Object(o.a)({},P,{as:Ke,role:"row",key:t}),e.map((function(e){var t=A(x,e),n=P.currentId===t;return Object(c.createElement)($e,Object(o.a)({},P,{id:t,isActive:n,key:e,value:e,onFocus:function(){m(e)}}))})))})))}st.Icon=function(e){var t=e.className,n=e.disablePointerEvents,r=void 0===n||n,i=e.size,s=void 0===i?24:i,u=e.style,d=void 0===u?{}:u,f=e.value,p=void 0===f?"center":f,b=Object(a.a)(e,["className","disablePointerEvents","size","style","value"]),h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"center",t=N(e).replace("-"," "),n=R.indexOf(t);return n>-1?n:void 0}(p),v=(s/24).toFixed(2),m=l()("component-alignment-matrix-control-icon",t),y=ct(ct({},d),{},{transform:"scale(".concat(v,")")});return Object(c.createElement)(rt,Object(o.a)({},b,{className:m,disablePointerEvents:r,role:"presentation",size:s,style:y}),R.map((function(e,t){var n=h===t;return Object(c.createElement)(it,{key:e},Object(c.createElement)(ot,{isActive:n}))})))};var ut=n(124),lt={"default.fontFamily":"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif","default.fontSize":"13px","helpText.fontSize":"12px",mobileTextMinFontSize:"16px"};function dt(e){return Object(s.get)(lt,e,"")}function ft(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return isNaN(e)?"".concat(8,"px"):"".concat(8*e,"px")}var pt=je("div",{target:"e1puf3u0",label:"Wrapper"})("font-family:",dt("default.fontFamily"),";font-size:",dt("default.fontSize"),";"),bt=je("div",{target:"e1puf3u1",label:"StyledField"})("margin-bottom:",ft(1),";.components-panel__row &{margin-bottom:inherit;}"),ht=je("label",{target:"e1puf3u2",label:"StyledLabel"})("display:inline-block;margin-bottom:",ft(1),";"),vt=je("p",{target:"e1puf3u3",label:"StyledHelp"})("margin-top:-",ft(1),";font-size:",dt("helpText.fontSize"),";font-style:normal;color:",Fe("mediumGray.text"),";");function mt(e){var t=e.id,n=e.label,r=e.hideLabelFromVision,o=e.help,i=e.className,a=e.children;return Object(c.createElement)(pt,{className:l()("components-base-control",i)},Object(c.createElement)(bt,{className:"components-base-control__field"},n&&t&&(r?Object(c.createElement)(M,{as:"label",htmlFor:t},n):Object(c.createElement)(ht,{className:"components-base-control__label",htmlFor:t},n)),n&&!t&&(r?Object(c.createElement)(M,{as:"label"},n):Object(c.createElement)(mt.VisualLabel,null,n)),a),!!o&&Object(c.createElement)(vt,{id:t+"__help",className:"components-base-control__help"},o))}mt.VisualLabel=function(e){var t=e.className,n=e.children;return t=l()("components-base-control__label",t),Object(c.createElement)("span",{className:t},n)};var yt=mt;var gt={name:"8kj89b",styles:"flex-direction:row-reverse;"},Ot=je("div",{target:"eboqfv50",label:"Flex"})("box-sizing:border-box;display:flex;width:100%;",(function(e){var t=e.align;return le({alignItems:{top:"flex-start",bottom:"flex-end"}[t]||t},"")})," ",(function(e){var t=e.justify,n=e.isReversed,r={left:"flex-start",right:"flex-end"},o=r[t]||t;return n&&r[t]&&(o="left"===t?r.right:r.left),le({justifyContent:o},"")})," ",(function(e){var t=e.gap,n=e.isReversed,r="number"==typeof t?4*t:4,o="margin-".concat(n?"left":"right");return le("> *{",o,":",r,"px;&:last-child{",o,":0;}}")})," ",(function(e){return e.isReversed?gt:""}),""),jt=je("div",{target:"eboqfv51",label:"Item"})({name:"13luw5d",styles:"box-sizing:border-box;min-width:0;max-width:100%;"}),wt=je(jt,{target:"eboqfv52",label:"Block"})({name:"1rr4qq7",styles:"flex:1;"});var kt=Object(c.forwardRef)((function(e,t){var n=e.className,r=Object(a.a)(e,["className"]),i=l()("components-flex__block",n);return Object(c.createElement)(wt,Object(o.a)({},r,{className:i,ref:t}))}));var _t=Object(c.forwardRef)((function(e,t){var n=e.align,r=void 0===n?"center":n,i=e.className,s=e.gap,u=void 0===s?2:s,d=e.justify,f=void 0===d?"space-between":d,p=e.isReversed,b=void 0!==p&&p,h=Object(a.a)(e,["align","className","gap","justify","isReversed"]),v=l()("components-flex",i);return Object(c.createElement)(Ot,Object(o.a)({},h,{align:r,className:v,ref:t,gap:u,justify:f,isReversed:b}))})),St=_t;var Et=Object(c.forwardRef)((function(e,t){var n=e.className,r=Object(a.a)(e,["className"]),i=l()("components-flex__item",n);return Object(c.createElement)(jt,Object(o.a)({},r,{className:i,ref:t}))}));function xt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Ct=le;function Pt(){var e=xt(["\n\t","\n\t","\n"]);return Pt=function(){return e},e}function Dt(){var e=xt(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return Dt=function(){return e},e}function Mt(){var e=xt(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return Mt=function(){return e},e}function Tt(){var e=xt(["\n\t\t\t\t","\n\t\t\t"]);return Tt=function(){return e},e}function It(){var e=xt(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return It=function(){return e},e}function Rt(){var e=xt(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return Rt=function(){return e},e}function Nt(){var e=xt(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return Nt=function(){return e},e}function At(){var e=xt(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return At=function(){return e},e}function Lt(){var e=xt(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return Lt=function(){return e},e}var Ft="\n ".concat("font-weight: 400;","\n"),zt="\n\tfont-size: 32px;\n\tline-height: 40px;\n",Bt="\n\tfont-size: 24px;\n\tline-height: 32px;\n",Ht="\n\tfont-size: 20px;\n\tline-height: 28px;\n",Vt="\n\t".concat("font-weight: 600;","\n\tfont-size: 14px;\n\tline-height: 20px;\n"),Kt="\n\t".concat("font-weight: 400;","\n"),Wt="\n\tfont-size: 16px;\n\tline-height: 24px;\n",Ut="\n\tfont-size: 14px;\n\tline-height: 20px;\n",Gt="\n ".concat("font-weight: 600;","\n font-size: 14px;\n line-height: 20px;\n"),$t="\n\t".concat("font-weight: 400;","\n\tfont-size: 12px;\n\tline-height: 16px;\n"),qt="\n\t".concat("font-weight: 600;","\n\tfont-size: 12px;\n\tline-height: 16px;\n"),Yt="\n\t".concat("font-weight: 500;","\n\tfont-size: 11px;\n\tline-height: 1.4;\n\ttext-transform: uppercase;\n\tcolor: ").concat(xe.gray[700],"\n"),Zt=function(e){return Ct(Pt(),'font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,\nOxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;',function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body";switch(e){case"title.large":return Ct(Lt(),Ft,zt);case"title.medium":return Ct(At(),Ft,Bt);case"title.small":return Ct(Nt(),Ft,Ht);case"subtitle":return Ct(Rt(),Vt,"\n\tfont-size: 16px;\n\tline-height: 24px;\n");case"subtitle.small":return Ct(It(),Vt,"\n\tfont-size: 14px;\n\tline-height: 20px;\n");case"body":return Ct(Tt(),Kt);case"body.large":return Ct(Mt(),Kt,Wt);case"body.small":return Ct(Dt(),Kt,Ut);case"button":return Gt;case"caption":return $t;case"label":return qt;case"sectionheading":return Yt}}(e.variant))},Xt=je("p",{target:"e15wbhsk0",label:"Text"})("\n\tbox-sizing: border-box;\n\tmargin: 0;\n",Zt,"");var Jt={name:"1dacand",styles:"padding-top:0;"},Qt=function(){return Jt},en={name:"r6z5ec",styles:"z-index:1;"},tn=function(e){return e.isFocused?en:""},nn={name:"uz6002",styles:"align-items:flex-start;flex-direction:column;"},rn={name:"53hdd7",styles:"align-items:flex-start;flex-direction:column-reverse;"},on={name:"x4dmss",styles:"justify-content:space-between;"},an=function(e){switch(e.labelPosition){case"top":return nn;case"bottom":return rn;case"edge":return on;default:return""}},cn=je(St,{target:"e1cr7zh10",label:"Root"})("position:relative;border-radius:2px;",Qt," ",tn," ",an,""),sn={name:"8atqhb",styles:"width:100%;"},un=je("div",{target:"e1cr7zh11",label:"Container"})("align-items:center;box-sizing:border-box;border-radius:inherit;display:flex;flex:1;position:relative;",(function(e){var t=Fe(e.disabled?"ui.backgroundDisabled":"ui.background");return le({backgroundColor:t},"")})," ",(function(e){var t=e.__unstableInputWidth,n=e.labelPosition;return t?"side"===n?"":le("edge"===n?{flex:"0 0 ".concat(t)}:{width:t},""):sn}),""),ln={name:"103r1kr",styles:"&::-webkit-input-placeholder{line-height:normal;}"},dn=je("input",{target:"e1cr7zh12",label:"Input"})("&&&{background-color:transparent;box-sizing:border-box;border:none;box-shadow:none !important;color:",Fe("black"),";display:block;margin:0;outline:none;padding-left:8px;padding-right:8px;width:100%;",(function(e){var t=e.isDragging,n=e.dragCursor,r="",o="";return t&&(r=le("cursor:",n,";user-select:none;&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none !important;margin:0 !important;}")),t&&n&&(o=le("&:active{cursor:",n,";}")),le(r," ",o,"")})," ",(function(e){return e.disabled?le({color:Fe("ui.textDisabled")},""):""})," ",(function(e){var t={default:"13px",small:"11px"}[e.size];return t?le("font-size:","16px",";@media ( min-width:600px ){font-size:",t,";}"):""})," ",(function(e){var t=e.size,n={default:{height:30,lineHeight:1,minHeight:30},small:{height:24,lineHeight:1,minHeight:24}};return le(n[t]||n.default,"")})," ",(function(){return ln}),"}"),fn={name:"8uhtka",styles:"overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"},pn=function(){return fn},bn=function(e){var t=e.labelPosition,n=4;return"edge"!==t&&"side"!==t||(n=0),le({paddingTop:0,paddingBottom:n},"")},hn=je(Xt,{target:"e1cr7zh13",label:"BaseLabel"})("&&&{box-sizing:border-box;color:currentColor;display:block;margin:0;max-width:100%;z-index:1;",bn," ",pn,"}"),vn=function(e){return Object(c.createElement)(hn,Object(o.a)({},e,{as:"label"}))},mn=je(Et,{target:"e1cr7zh14",label:"LabelWrapper"})({name:"120o8im",styles:"max-width:calc( 100% - 10px );"}),yn=je("div",{target:"e1cr7zh15",label:"BackdropUI"})("&&&{box-sizing:border-box;border-radius:inherit;bottom:0;left:0;margin:0;padding:0;pointer-events:none;position:absolute;right:0;top:0;",(function(e){var t=e.disabled,n=e.isFocused,r=Fe(n?"ui.borderFocus":"ui.border"),o=null;return n&&(o="0 0 0 1px ".concat(Fe("ui.borderFocus")," inset")),t&&(r=Fe("ui.borderDisabled")),le({boxShadow:o,borderColor:r,borderStyle:"solid",borderWidth:1},"")})," ",nt({paddingLeft:2}),"}"),gn=je("span",{target:"e1cr7zh16",label:"Prefix"})({name:"1pxuk39",styles:"box-sizing:border-box;display:block;"}),On=je("span",{target:"e1cr7zh17",label:"Suffix"})({name:"1pxuk39",styles:"box-sizing:border-box;display:block;"});var jn=Object(c.memo)((function(e){var t=e.disabled,n=void 0!==t&&t,r=e.isFocused,o=void 0!==r&&r;return Object(c.createElement)(yn,{"aria-hidden":"true",className:"components-input-control__backdrop",disabled:n,isFocused:o})}));function wn(e){var t=e.children,n=e.hideLabelFromVision,r=e.htmlFor,i=Object(a.a)(e,["children","hideLabelFromVision","htmlFor"]);return t?n?Object(c.createElement)(M,{as:"label",htmlFor:r},t):Object(c.createElement)(vn,Object(o.a)({htmlFor:r},i),t):null}function kn(e,t){var n=e.__unstableInputWidth,r=e.children,i=e.className,s=e.disabled,u=void 0!==s&&s,l=e.hideLabelFromVision,d=void 0!==l&&l,f=e.labelPosition,p=e.id,b=e.isFocused,h=void 0!==b&&b,v=e.label,m=e.prefix,y=e.size,g=void 0===y?"default":y,O=e.suffix,j=Object(a.a)(e,["__unstableInputWidth","children","className","disabled","hideLabelFromVision","labelPosition","id","isFocused","label","prefix","size","suffix"]),w=function(e){var t=Object(E.useInstanceId)(kn),n="input-base-control-".concat(t);return e||n}(p);return Object(c.createElement)(cn,Object(o.a)({},j,{className:i,isFocused:h,labelPosition:f,ref:t}),Object(c.createElement)(mn,null,Object(c.createElement)(wn,{className:"components-input-control__label",hideLabelFromVision:d,labelPosition:f,htmlFor:w,size:g},v)),Object(c.createElement)(un,{__unstableInputWidth:n,className:"components-input-control__container",disabled:u,isFocused:h,labelPosition:f},m&&Object(c.createElement)(gn,{className:"components-input-control__prefix"},m),r,O&&Object(c.createElement)(On,{className:"components-input-control__suffix"},O),Object(c.createElement)(jn,{"aria-hidden":"true",disabled:u,isFocused:h,label:v,size:g})))}var _n=Object(c.forwardRef)(kn);function Sn(e,t){return e.map((function(e,n){return e+t[n]}))}function En(e,t){return e.map((function(e,n){return e-t[n]}))}function xn(e,t,n){return n=n||Math.hypot.apply(Math,e),t?n/t:0}function Cn(e,t){return t?e.map((function(e){return e/t})):Array(e.length).fill(0)}function Pn(e){return Math.hypot.apply(Math,e)}function Dn(e,t){return t=t||Math.hypot.apply(Math,e)||1,e.map((function(e){return e/t}))}function Mn(e,t,n){var r=Math.hypot.apply(Math,t);return{velocities:Cn(t,n),velocity:xn(t,n,r),distance:Pn(e),direction:Dn(t,r)}}function Tn(e){return Math.sign?Math.sign(e):Number(e>0)-Number(e<0)||+e}function In(e,t){return Math.abs(e)>=t&&Tn(e)*t}function Rn(e,t,n){return 0===t||Math.abs(t)===1/0?function(e,t){return Math.pow(e,5*t)}(e,n):e*t*n/(t+n*e)}function Nn(e,t,n,r){return void 0===r&&(r=.15),0===r?function(e,t,n){return Math.max(t,Math.min(e,n))}(e,t,n):e<t?-Rn(t-e,n-t,r)+t:e>n?Rn(e-n,n-t,r)+n:e}function An(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ln(){return(Ln=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Fn(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function zn(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Bn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Hn(e){var t=0;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(e){if("string"==typeof e)return Bn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bn(e,t):void 0}}(e)))return function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}function Vn(){}var Kn=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.forEach((function(e){return e.apply(void 0,n)}))}},Wn=function(e){return Array.isArray(e)?e:[e,e]},Un=function(e,t){return void 0!==e?e:t};function Gn(e,t){var n={};return Object.entries(e).forEach((function(e){var r=e[0],o=e[1];return(void 0!==o||r in t)&&(n[r]=o)})),n}function $n(e){return"function"==typeof e?e():e}function qn(){var e={_active:!1,_blocked:!1,_intentional:[!1,!1],_movement:[0,0],_initial:[0,0],_lastEventType:void 0,event:void 0,values:[0,0],velocities:[0,0],delta:[0,0],movement:[0,0],offset:[0,0],lastOffset:[0,0],direction:[0,0],initial:[0,0],previous:[0,0],first:!1,last:!1,active:!1,timeStamp:0,startTime:0,elapsedTime:0,cancel:Vn,canceled:!1,memo:void 0,args:void 0},t={axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0},n={da:[0,0],vdva:[0,0],origin:void 0,turns:0};return{shared:{hovering:!1,scrolling:!1,wheeling:!1,dragging:!1,moving:!1,pinching:!1,touches:0,buttons:0,down:!1,shiftKey:!1,altKey:!1,metaKey:!1,ctrlKey:!1},drag:Ln(Ln(Ln({},e),t),{},{_isTap:!0,_delayedEvent:!1,tap:!1,swipe:[0,0]}),pinch:Ln(Ln({},e),n),wheel:Ln(Ln({},e),t),move:Ln(Ln({},e),t),scroll:Ln(Ln({},e),t)}}var Yn=function(e){return function(t,n,r){var o=e?"addEventListener":"removeEventListener";n.forEach((function(e){var n=e[0],i=e[1];return t[o](n,i,r)}))}};var Zn=Yn(!0),Xn=Yn(!1);function Jn(e){if("touches"in e){var t=e.touches,n=e.changedTouches;return t.length>0?t:n}return null}function Qn(e){var t="buttons"in e?e.buttons:0,n=Jn(e),r=n&&n.length||0;return Ln({touches:r,down:r>0||t>0,buttons:t},function(e){return{shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey}}(e))}function er(e){var t=Jn(e),n=t?t[0]:e;return{values:[n.clientX,n.clientY]}}var tr=function(){var e=this;this.state=qn(),this.timeouts={},this.domListeners=[],this.windowListeners={},this.bindings={},this.clean=function(){e.resetBindings(),Object.values(e.timeouts).forEach(clearTimeout),Object.keys(e.windowListeners).forEach((function(t){return e.removeWindowListeners(t)}))},this.resetBindings=function(){e.bindings={};var t=e.getDomTarget();t&&(Xn(t,e.domListeners,e.config.eventOptions),e.domListeners=[])},this.getDomTarget=function(){var t=e.config.domTarget;return t&&"current"in t?t.current:t},this.addWindowListeners=function(t,n){e.config.window&&(e.windowListeners[t]=n,Zn(e.config.window,n,e.config.eventOptions))},this.removeWindowListeners=function(t){if(e.config.window){var n=e.windowListeners[t];n&&(Xn(e.config.window,n,e.config.eventOptions),delete e.windowListeners[t])}},this.addDomTargetListeners=function(t){Object.entries(e.bindings).forEach((function(t){var n=t[0],r=t[1];e.domListeners.push([n.substr(2).toLowerCase(),Kn.apply(void 0,r)])})),Zn(t,e.domListeners,e.config.eventOptions)},this.addBindings=function(t,n){(Array.isArray(t)?t:[t]).forEach((function(t){e.bindings[t]?e.bindings[t].push(n):e.bindings[t]=[n]}))},this.getBindings=function(){var t={},n=e.config.captureString;return Object.entries(e.bindings).forEach((function(e){var r=e[0],o=e[1],i=Array.isArray(o)?o:[o];t[r+n]=Kn.apply(void 0,i)})),t},this.getBind=function(){if(e.config.domTarget){var t=e.getDomTarget();return t&&e.addDomTargetListeners(t),e.clean}return e.getBindings()}};function nr(e,t,n,r){var o=m.a.useMemo((function(){var e=new tr;return{nativeRefs:r,current:e,bind:function(){e.resetBindings();for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];for(var a,c=Hn(t);!(a=c()).done;){var s=a.value;new s(e,r).addBindings()}if(o.nativeRefs)for(var u in o.nativeRefs)e.addBindings(u,o.nativeRefs[u]);return e.getBind()}}}),[]);return o.current.config=n,o.current.handlers=e,o.nativeRefs=r,m.a.useEffect((function(){return o.current.clean}),[]),o.bind}var rr=function(){function e(e,t,n){var r=this;void 0===n&&(n=[]),this.stateKey=e,this.controller=t,this.args=n,this.debounced=!0,this.setTimeout=function(e,t){var n;void 0===t&&(t=140);for(var o=arguments.length,i=new Array(o>2?o-2:0),a=2;a<o;a++)i[a-2]=arguments[a];r.controller.timeouts[r.stateKey]=(n=window).setTimeout.apply(n,[e,t].concat(i))},this.clearTimeout=function(){clearTimeout(r.controller.timeouts[r.stateKey])},this.addWindowListeners=function(e){r.controller.addWindowListeners(r.stateKey,e)},this.removeWindowListeners=function(){r.controller.removeWindowListeners(r.stateKey)},this.getStartGestureState=function(e,t){return Ln(Ln({},qn()[r.stateKey]),{},{_active:!0,values:e,initial:e,offset:r.state.offset,lastOffset:r.state.offset,startTime:t.timeStamp})},this.rubberband=function(e,t){var n=r.config.bounds;return e.map((function(e,r){return Nn(e,n[r][0],n[r][1],t[r])}))},this.fireGestureHandler=function(e){if(r.state._blocked)return r.debounced||(r.state._active=!1,r.clean()),null;var t=r.state._intentional,n=t[0],o=t[1];if(!e&&!1===n&&!1===o)return null;var i=r.state,a=i._active,c=i.active;r.state.active=a,r.state.first=a&&!c,r.state.last=c&&!a,r.controller.state.shared[r.ingKey]=a;var s=Ln(Ln(Ln({},r.controller.state.shared),r.state),r.mapStateValues(r.state)),u=r.handler(s);return r.state.memo=void 0!==u?u:r.state.memo,a||r.clean(),s}}var t,n,r,o=e.prototype;return o.updateSharedState=function(e){Object.assign(this.controller.state.shared,e)},o.updateGestureState=function(e){Object.assign(this.state,e)},o.getGenericPayload=function(e,t){var n=e.timeStamp,r=e.type,o=this.state,i=o.values,a=o.startTime;return{_lastEventType:r,event:e,timeStamp:n,elapsedTime:t?0:n-a,args:this.args,previous:i}},o.checkIntentionality=function(e,t,n){return{_intentional:e,_blocked:!1}},o.getMovement=function(e,t){void 0===t&&(t=this.state);var n=this.config,r=n.initial,o=n.threshold,i=n.rubberband,a=o[0],c=o[1],s=t,u=s._initial,l=s._active,d=s._intentional,f=s.lastOffset,p=s.movement,b=d[0],h=d[1],v=this.getInternalMovement(e,t),m=v[0],y=v[1];!1===b&&(b=In(m,a)),!1===h&&(h=In(y,c));var g=this.checkIntentionality([b,h],[m,y],t),O=g._intentional,j=g._blocked,w=O[0],k=O[1],_=[m,y];if(!1!==w&&!1===d[0]&&(u[0]=$n(r)[0]),!1!==k&&!1===d[1]&&(u[1]=$n(r)[1]),j)return Ln(Ln({},g),{},{_movement:_,delta:[0,0]});var S=[!1!==w?m-w:$n(r)[0],!1!==k?y-k:$n(r)[1]],E=Sn(S,f),x=l?i:[0,0];return S=this.rubberband(Sn(S,u),x),Ln(Ln({},g),{},{_initial:u,_movement:_,movement:S,offset:this.rubberband(E,x),delta:En(S,p)})},o.clean=function(){this.clearTimeout(),this.removeWindowListeners()},t=e,(n=[{key:"config",get:function(){return this.controller.config[this.stateKey]}},{key:"enabled",get:function(){return this.controller.config.enabled&&this.config.enabled}},{key:"state",get:function(){return this.controller.state[this.stateKey]}},{key:"handler",get:function(){return this.controller.handlers[this.stateKey]}}])&&An(t.prototype,n),r&&An(t,r),e}(),or=function(e){function t(){return e.apply(this,arguments)||this}Fn(t,e);var n=t.prototype;return n.getInternalMovement=function(e,t){return En(e,t.initial)},n.checkIntentionality=function(e,t,n){var r=e,o=r[0],i=r[1],a=!1!==o||!1!==i,c=n.axis,s=!1;if(a){var u=t.map(Math.abs),l=u[0],d=u[1],f=this.config,p=f.axis,b=f.lockDirection;if(c=c||(l>d?"x":l<d?"y":void 0),p||b)if(c)if(p&&c!==p)s=!0;else e["x"===c?1:0]=!1;else e=[!1,!1]}return{_intentional:e,_blocked:s,axis:c}},n.getKinematics=function(e,t){var n=this.state.timeStamp,r=this.getMovement(e,this.state),o=r._blocked,i=r.delta,a=r.movement;if(o)return r;var c=Mn(a,i,t.timeStamp-n);return Ln(Ln({values:e,delta:i},r),c)},n.mapStateValues=function(e){return{xy:e.values,vxvy:e.velocities}},t}(rr),ir=function(e){function t(t,n){var r;return(r=e.call(this,"drag",t,n)||this).ingKey="dragging",r.wasTouch=!1,r.isEventTypeTouch=function(e){return!!e&&0===e.indexOf("touch")},r.dragShouldStart=function(e){var t=Qn(e).touches,n=r.state._lastEventType;if(!r.controller.config.pointer&&r.isEventTypeTouch(n)&&!r.isEventTypeTouch(e.type)&&Math.abs(e.timeStamp-r.state.startTime)<200)return!1;return r.enabled&&t<2},r.setPointers=function(e){var t=e.currentTarget,n=e.pointerId;t&&t.setPointerCapture(n),r.updateGestureState({currentTarget:t,pointerId:n})},r.removePointers=function(){var e=r.state,t=e.currentTarget,n=e.pointerId;t&&n&&t.releasePointerCapture(n)},r.setListeners=function(e){r.removeWindowListeners();var t=e?[["touchmove",r.onDragChange],["touchend",r.onDragEnd],["touchcancel",r.onDragEnd]]:[["mousemove",r.onDragChange],["mouseup",r.onDragEnd]];r.addWindowListeners(t)},r.onDragStart=function(e){r.dragShouldStart(e)&&(r.controller.config.pointer?r.setPointers(e):r.setListeners(r.isEventTypeTouch(e.type)),r.config.delay>0?(r.state._delayedEvent=!0,"function"==typeof e.persist&&e.persist(),r.setTimeout((function(){return r.startDrag(e)}),r.config.delay)):r.startDrag(e))},r.onDragChange=function(e){if(!r.state.canceled)if(r.state._active){var t=Qn(e);if(t.down){r.updateSharedState(t);var n=er(e).values,o=r.getKinematics(n,e),i=r.state._isTap;i&&Pn(o._movement)>=3&&(i=!1),r.updateGestureState(Ln(Ln(Ln({},r.getGenericPayload(e)),o),{},{_isTap:i,cancel:function(){return r.onCancel()}})),r.fireGestureHandler()}else r.onDragEnd(e)}else r.state._delayedEvent&&(r.clearTimeout(),r.startDrag(e))},r.onDragEnd=function(e){r.state._active=!1,r.updateSharedState({down:!1,buttons:0,touches:0});var t=r.state,n=t._isTap,o=t.values,i=t.velocities,a=i[0],c=i[1],s=t.movement,u=s[0],l=s[1],d=t._intentional,f=d[0],p=d[1],b=Ln(Ln({},r.getGenericPayload(e)),r.getMovement(o)),h=b.elapsedTime,v=r.config,m=v.swipeVelocity,y=m[0],g=m[1],O=v.swipeDistance,j=O[0],w=O[1],k=[0,0];h<220&&(!1!==f&&Math.abs(a)>y&&Math.abs(u)>j&&(k[0]=Tn(a)),!1!==p&&Math.abs(c)>g&&Math.abs(l)>w&&(k[1]=Tn(c))),r.updateGestureState(Ln(Ln({event:e},b),{},{tap:n,swipe:k})),r.fireGestureHandler(r.config.filterTaps&&r.state._isTap)},r.clean=function(){e.prototype.clean.call(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r)),r.state._delayedEvent=!1,r.controller.config.pointer&&r.removePointers()},r.onCancel=function(){r.updateGestureState({canceled:!0,cancel:Vn}),r.state._active=!1,r.updateSharedState({down:!1,buttons:0,touches:0}),requestAnimationFrame((function(){return r.fireGestureHandler()}))},r}Fn(t,e);var n=t.prototype;return n.startDrag=function(e){var t=this,n=er(e).values;this.updateSharedState(Qn(e));var r=Ln(Ln({},this.getStartGestureState(n,e)),this.getGenericPayload(e,!0));this.updateGestureState(Ln(Ln(Ln({},r),this.getMovement(n,r)),{},{cancel:function(){return t.onCancel()}})),this.fireGestureHandler()},n.addBindings=function(){this.controller.config.pointer?(this.controller.addBindings("onPointerDown",this.onDragStart),this.controller.addBindings("onPointerMove",this.onDragChange),this.controller.addBindings(["onPointerUp","onPointerCancel"],this.onDragEnd)):this.controller.addBindings(["onTouchStart","onMouseDown"],this.onDragStart)},t}(or),ar="undefined"!=typeof window?window:void 0,cr={lockDirection:!1,axis:void 0,bounds:void 0};function sr(e){void 0===e&&(e={});var t=e,n=t.eventOptions,r=(n=void 0===n?{}:n).passive,o=void 0===r||r,i=n.capture,a=void 0!==i&&i,c=n.pointer,s=void 0!==c&&c,u=t.window,l=void 0===u?ar:u,d=t.domTarget,f=void 0===d?void 0:d,p=t.enabled,b=void 0===p||p;return Ln(Ln({},zn(t,["eventOptions","window","domTarget","enabled"])),{},{enabled:b,domTarget:f,window:l,eventOptions:{passive:!f||!!o,capture:!!a},captureString:a?"Capture":"",pointer:!!s})}function ur(e){var t=e.threshold,n=void 0===t?void 0:t,r=e.rubberband,o=void 0===r?0:r,i=e.enabled,a=void 0===i||i,c=e.initial;return"boolean"==typeof o&&(o=o?.15:0),void 0===n&&(n=0),{enabled:a,initial:void 0===c?[0,0]:c,threshold:Wn(n),rubberband:Wn(o)}}function lr(e){void 0===e&&(e={});var t=e,n=t.axis,r=t.lockDirection,o=t.bounds,i=void 0===o?{}:o,a=zn(t,["axis","lockDirection","bounds"]),c=[[Un(i.left,-1/0),Un(i.right,1/0)],[Un(i.top,-1/0),Un(i.bottom,1/0)]];return Ln(Ln(Ln(Ln({},ur(a)),cr),Gn({axis:n,lockDirection:r},e)),{},{bounds:c})}function dr(e){void 0===e&&(e={});var t=e,n=t.enabled,r=t.threshold,o=t.bounds,i=t.rubberband,a=t.initial,c=zn(t,["enabled","threshold","bounds","rubberband","initial"]),s=c.swipeVelocity,u=void 0===s?.5:s,l=c.swipeDistance,d=void 0===l?60:l,f=c.delay,p=void 0!==f&&f,b=c.filterTaps,h=void 0!==b&&b,v=c.axis,m=c.lockDirection;void 0===r?r=Math.max(0,h?3:0,m||v?1:0):h=!0;var y=lr(Gn({enabled:n,threshold:r,bounds:o,rubberband:i,axis:v,lockDirection:m,initial:a},e));return Ln(Ln({},y),{},{filterTaps:h||y.threshold[0]+y.threshold[1]>0,swipeVelocity:Wn(u),swipeDistance:Wn(d),delay:"number"==typeof p?p:p?180:0})}var fr=function(e){function t(t,n){var r;return(r=e.call(this,"move",t,n)||this).ingKey="moving",r.debounced=!0,r.moveShouldRun=function(){return r.enabled},r.onMove=function(e){r.moveShouldRun()&&(r.clearTimeout(),r.setTimeout(r.onMoveEnd),r.state._active?r.onMoveChange(e):r.onMoveStart(e))},r.onMoveStart=function(e){var t=er(e).values;r.updateSharedState(Qn(e));var n=Ln(Ln({},r.getStartGestureState(t,e)),r.getGenericPayload(e,!0));r.updateGestureState(Ln(Ln({},n),r.getMovement(t,n))),r.fireGestureHandler()},r.onMoveChange=function(e){var t=Qn(e);r.updateSharedState(t);var n=er(e).values,o=r.getKinematics(n,e);r.updateGestureState(Ln(Ln({},r.getGenericPayload(e)),o)),r.fireGestureHandler()},r.onMoveEnd=function(){r.state._active=!1,r.updateGestureState(Ln(Ln({},r.getMovement(r.state.values)),{},{velocities:[0,0],velocity:0})),r.fireGestureHandler()},r.onPointerEnter=function(e){if(r.controller.state.shared.hovering=!0,r.controller.config.enabled){if(r.controller.config.hover.enabled){var t=er(e).values,n=Ln(Ln(Ln(Ln({},r.controller.state.shared),r.state),r.getGenericPayload(e,!0)),{},{values:t,active:!0,hovering:!0});r.controller.handlers.hover(Ln(Ln({},n),r.mapStateValues(n)))}"move"in r.controller.handlers&&r.onMoveStart(e)}},r.onPointerLeave=function(e){if(r.controller.state.shared.hovering=!1,"move"in r.controller.handlers&&r.onMoveEnd(),r.controller.config.hover.enabled){var t=er(e).values,n=Ln(Ln(Ln(Ln({},r.controller.state.shared),r.state),r.getGenericPayload(e)),{},{values:t,active:!1});r.controller.handlers.hover(Ln(Ln({},n),r.mapStateValues(n)))}},r}return Fn(t,e),t.prototype.addBindings=function(){this.controller.config.pointer?("move"in this.controller.handlers&&this.controller.addBindings("onPointerMove",this.onMove),"hover"in this.controller.handlers&&(this.controller.addBindings("onPointerEnter",this.onPointerEnter),this.controller.addBindings("onPointerLeave",this.onPointerLeave))):("move"in this.controller.handlers&&this.controller.addBindings("onMouseMove",this.onMove),"hover"in this.controller.handlers&&(this.controller.addBindings("onMouseEnter",this.onPointerEnter),this.controller.addBindings("onMouseLeave",this.onPointerLeave)))},t}(or);var pr=n(18);function br(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?br(Object(n),!0).forEach((function(t){Object(P.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):br(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var vr=function(e){return e},mr={_event:{},error:null,initialValue:"",isDirty:!1,isDragEnabled:!1,isDragging:!1,isPressEnterToChange:!1,value:""},yr={CHANGE:"CHANGE",COMMIT:"COMMIT",DRAG_END:"DRAG_END",DRAG_START:"DRAG_START",DRAG:"DRAG",INVALIDATE:"INVALIDATE",PRESS_DOWN:"PRESS_DOWN",PRESS_ENTER:"PRESS_ENTER",PRESS_UP:"PRESS_UP",RESET:"RESET",UPDATE:"UPDATE"},gr=yr;function Or(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:mr,t=e.value;return hr(hr(hr({},mr),e),{},{initialValue:t})}var jr=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.reduceRight((function(e,t){var r=t.apply(void 0,n);return Object(s.isEmpty)(r)?e:hr(hr({},e),r)}),{})}};function wr(e){return function(t,n){var r=hr({},t),o=n.type,i=n.payload;switch(o){case yr.PRESS_UP:case yr.PRESS_DOWN:r.isDirty=!1;break;case yr.DRAG_START:r.isDragging=!0;break;case yr.DRAG_END:r.isDragging=!1;break;case yr.CHANGE:r.error=null,r.value=i.value,t.isPressEnterToChange&&(r.isDirty=!0);break;case yr.COMMIT:r.value=i.value,r.isDirty=!1;break;case yr.RESET:r.error=null,r.isDirty=!1,r.value=i.value||t.initialValue;break;case yr.UPDATE:r.value=i.value,r.isDirty=!1;break;case yr.INVALIDATE:r.error=i.error}return i.event&&(r._event=i.event),e(r,n)}}function kr(e){return null!=e}function _r(e){var t=""===e;return!kr(e)||t}function Sr(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0;return null!==(e=t.find(kr))&&void 0!==e?e:n}var Er=function(e,t){var n=Object(c.useRef)(!1);Object(c.useEffect)((function(){if(n.current)return e();n.current=!0}),t)};var xr=Object(c.forwardRef)((function(e,t){var n=e.disabled,r=void 0!==n&&n,u=e.dragDirection,l=void 0===u?"n":u,d=e.dragThreshold,f=void 0===d?10:d,p=e.id,b=e.isDragEnabled,h=void 0!==b&&b,v=e.isFocused,m=e.isPressEnterToChange,y=void 0!==m&&m,g=e.onBlur,O=void 0===g?s.noop:g,j=e.onChange,w=void 0===j?s.noop:j,k=e.onDrag,_=void 0===k?s.noop:k,S=e.onDragEnd,E=void 0===S?s.noop:S,x=e.onDragStart,C=void 0===x?s.noop:x,P=e.onFocus,D=void 0===P?s.noop:P,M=e.onKeyDown,T=void 0===M?s.noop:M,I=e.onValidate,R=void 0===I?s.noop:I,N=e.size,A=void 0===N?"default":N,L=e.setIsFocused,F=e.stateReducer,z=void 0===F?function(e){return e}:F,B=e.value,H=e.type,V=Object(a.a)(e,["disabled","dragDirection","dragThreshold","id","isDragEnabled","isFocused","isPressEnterToChange","onBlur","onChange","onDrag","onDragEnd","onDragStart","onFocus","onKeyDown","onValidate","size","setIsFocused","stateReducer","value","type"]),K=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:vr,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:mr,n=Object(c.useReducer)(wr(e),Or(t)),r=Object(i.a)(n,2),o=r[0],a=r[1],s=function(e){return function(t,n){n&&n.persist&&n.persist(),a({type:e,payload:{value:t,event:n}})}},u=function(e){return function(t){t&&t.persist&&t.persist(),a({type:e,payload:{event:t}})}},l=function(e){return function(t){a({type:e,payload:t})}},d=s(yr.CHANGE),f=s(yr.INVALIDATE),p=s(yr.RESET),b=s(yr.COMMIT),h=s(yr.UPDATE),v=l(yr.DRAG_START),m=l(yr.DRAG),y=l(yr.DRAG_END),g=u(yr.PRESS_UP),O=u(yr.PRESS_DOWN),j=u(yr.PRESS_ENTER);return{change:d,commit:b,dispatch:a,drag:m,dragEnd:y,dragStart:v,invalidate:f,pressDown:O,pressEnter:j,pressUp:g,reset:p,state:o,update:h}}(z,{isDragEnabled:h,value:B,isPressEnterToChange:y}),W=K.state,U=K.change,G=K.commit,$=K.drag,q=K.dragEnd,Y=K.dragStart,Z=K.invalidate,X=K.pressDown,J=K.pressEnter,Q=K.pressUp,ee=K.reset,te=K.update,ne=W._event,re=W.value,oe=W.isDragging,ie=W.isDirty,ae=Object(c.useRef)(!1),ce=function(e,t){var n=function(e){var t="ns-resize";switch(e){case"n":case"s":t="ns-resize";break;case"e":case"w":t="ew-resize"}return t}(t);return Object(c.useEffect)((function(){e?(document.documentElement.style.cursor=n,document.documentElement.style.pointerEvents="none"):(document.documentElement.style.cursor=null,document.documentElement.style.pointerEvents=null)}),[e]),n}(oe,l);Er((function(){B!==re&&(v||ae.current?ie||(w(re,{event:ne}),ae.current=!1):te(B))}),[re,ie,v,B]);var se=function(e){var t=e.target.value;try{R(t,e),G(t,e)}catch(t){Z(t,e)}},ue=function(e,t){void 0===t&&(t={});var n=t,r=n.domTarget,o=n.eventOptions,i=n.window,a=zn(n,["domTarget","eventOptions","window"]),c=Ln(Ln({},sr({domTarget:r,eventOptions:o,window:i})),{},{drag:dr(a)});return nr({drag:e},[ir],c)}((function(e){var t=e.distance,n=e.dragging,r=e.event;if(t){if(r.stopPropagation(),!n)return E(e),void q(e);_(e),$(e),oe||(C(e),Y(e))}}),{threshold:f,enabled:h}),le=h?ue():{},de=le.onMouseDown,fe=le.onTouchStart,pe=de;return"number"===H&&(pe=function(e){e.target!==e.target.ownerDocument.activeElement&&e.target.focus(),h&&de(e)}),Object(c.createElement)(dn,Object(o.a)({},V,{className:"components-input-control__input",disabled:r,dragCursor:ce,isDragging:oe,id:p,onBlur:function(e){O(e),L(!1),y&&ie&&(ae.current=!0,_r(re)?ee(B):se(e))},onChange:function(e){var t=e.target.value;U(t,e)},onFocus:function(e){D(e),L(!0)},onKeyDown:function(e){var t=e.keyCode;switch(T(e),t){case pr.UP:Q(e);break;case pr.DOWN:X(e);break;case pr.ENTER:J(e),y&&(e.preventDefault(),se(e))}},onMouseDown:pe,onTouchStart:fe,ref:t,size:A,value:re,type:H}))}));function Cr(e,t){var n=e.__unstableStateReducer,r=void 0===n?function(e){return e}:n,u=e.__unstableInputWidth,d=e.className,f=e.disabled,p=void 0!==f&&f,b=e.hideLabelFromVision,h=void 0!==b&&b,v=e.id,m=e.isPressEnterToChange,y=void 0!==m&&m,g=e.label,O=e.labelPosition,j=void 0===O?"top":O,w=e.onChange,k=void 0===w?s.noop:w,_=e.onValidate,S=void 0===_?s.noop:_,x=e.onKeyDown,C=void 0===x?s.noop:x,P=e.prefix,D=e.size,M=void 0===D?"default":D,T=e.suffix,I=e.value,R=Object(a.a)(e,["__unstableStateReducer","__unstableInputWidth","className","disabled","hideLabelFromVision","id","isPressEnterToChange","label","labelPosition","onChange","onValidate","onKeyDown","prefix","size","suffix","value"]),N=Object(c.useState)(!1),A=Object(i.a)(N,2),L=A[0],F=A[1],z=function(e){var t=Object(E.useInstanceId)(Cr),n="inspector-input-control-".concat(t);return e||n}(v),B=l()("components-input-control",d);return Object(c.createElement)(_n,{__unstableInputWidth:u,className:B,disabled:p,gap:3,hideLabelFromVision:h,id:z,isFocused:L,justify:"left",label:g,labelPosition:j,prefix:P,size:M,suffix:T},Object(c.createElement)(xr,Object(o.a)({},R,{className:"components-input-control__input",disabled:p,id:z,isFocused:L,isPressEnterToChange:y,onChange:k,onKeyDown:C,onValidate:S,ref:t,setIsFocused:F,size:M,stateReducer:r,value:I})))}var Pr=Object(c.forwardRef)(Cr);var Dr={name:"1b9wwt5",styles:"&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none !important;margin:0 !important;}"},Mr=function(e){return e.hideHTMLArrows?Dr:""},Tr=je(Pr,{target:"ep48uk90",label:"Input"})(Mr,";");function Ir(e){var t=Number(e);return isNaN(t)?0:t}function Rr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return e+Ir(t)}),0)}function Nr(e){var t=(e+"").split(".");return void 0!==t[1]?t[1].length:0}function Ar(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=Ir(e),i=Ir(r),a=Nr(r),c=Math.round(o/i)*i,u=Object(s.clamp)(c,t,n);return a?Ir(u.toFixed(a)):u}var Lr=function(e){var t=e.isShiftStepEnabled,n=void 0===t||t,r=e.shiftStep,o=void 0===r?10:r,a=e.step,s=void 0===a?1:a,u=Object(c.useState)(!1),l=Object(i.a)(u,2),d=l[0],f=l[1];return Object(c.useEffect)((function(){var e=function(e){f(e.shiftKey)};return window.addEventListener("keydown",e),window.addEventListener("keyup",e),function(){window.removeEventListener("keydown",e),window.removeEventListener("keyup",e)}}),[]),n&&d?o*s:s};var Fr=Object(c.forwardRef)((function(e,t){var n=e.__unstableStateReducer,r=void 0===n?function(e){return e}:n,s=e.className,u=e.dragDirection,d=void 0===u?"n":u,f=e.hideHTMLArrows,p=void 0!==f&&f,b=e.isDragEnabled,h=void 0===b||b,v=e.isShiftStepEnabled,m=void 0===v||v,y=e.label,g=e.max,O=void 0===g?1/0:g,j=e.min,w=void 0===j?-1/0:j,k=e.shiftStep,_=void 0===k?10:k,S=e.step,E=void 0===S?1:S,x=e.type,C=void 0===x?"number":x,P=e.value,D=Object(a.a)(e,["__unstableStateReducer","className","dragDirection","hideHTMLArrows","isDragEnabled","isShiftStepEnabled","label","max","min","shiftStep","step","type","value"]),M=Qe(),T=Ar(0,w,O,E),I=Lr({step:E,shiftStep:_,isShiftStepEnabled:m}),R="number"===C?"off":null,N=l()("components-number-control",s);return Object(c.createElement)(Tr,Object(o.a)({autoComplete:R,inputMode:"numeric"},D,{className:N,dragDirection:d,hideHTMLArrows:p,isDragEnabled:h,label:y,max:O,min:w,ref:t,step:I,type:C,value:P,__unstableStateReducer:jr((function(e,t){var n=t.type,r=t.payload,o=null==r?void 0:r.event,a=e.value;if(n===gr.PRESS_UP||n===gr.PRESS_DOWN){var c=o.shiftKey&&m?parseFloat(_)*parseFloat(E):parseFloat(E),s=_r(a)?T:a;(null==o?void 0:o.preventDefault)&&o.preventDefault(),n===gr.PRESS_UP&&(s=Rr(s,c)),n===gr.PRESS_DOWN&&(s=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t,n){var r=Ir(t);return 0===n?r:e-r}))}(s,c)),s=Ar(s,w,O,c),e.value=s}if(n===gr.DRAG&&h){var u,l,f=r.delta,p=r.shiftKey,b=Object(i.a)(f,2),v=b[0],y=b[1],g=p?parseFloat(_)*parseFloat(E):parseFloat(E);switch(d){case"n":l=y,u=-1;break;case"e":l=v,u=M?-1:1;break;case"s":l=y,u=1;break;case"w":l=v,u=M?1:-1}var j,k=l*g*u;0!==k&&(j=Ar(Rr(a,k),w,O,g),e.value=j)}return n!==gr.PRESS_ENTER&&n!==gr.COMMIT||(e.value=Ar(a,w,O)),e}),r)}))}));var zr=je(_t,{target:"e65ony40",label:"Root"})({name:"tn9ygg",styles:"max-width:200px;"}),Br=je(Et,{target:"e65ony41",label:"NumberControlWrapper"})({name:"1jgxixz",styles:"width:80px;"}),Hr=je("div",{target:"e65ony42",label:"CircleRoot"})("border-radius:50%;border:1px solid ",Fe("ui.borderLight"),";box-sizing:border-box;cursor:grab;height:",30,"px;overflow:hidden;width:",30,"px;"),Vr=je("div",{target:"e65ony43",label:"CircleIndicatorWrapper"})({name:"11t5m37",styles:"box-sizing:border-box;position:relative;width:100%;height:100%;"}),Kr=je("div",{target:"e65ony44",label:"CircleIndicator"})("background:",Fe("ui.border"),";border-radius:50%;border:3px solid ",Fe("ui.border"),";bottom:0;box-sizing:border-box;display:block;height:1px;left:0;margin:auto;position:absolute;right:0;top:-",15,"px;width:1px;");var Wr=function(e){var t=e.value,n=e.onChange,r=Object(a.a)(e,["value","onChange"]),i=Object(c.useRef)(),s=Object(c.useRef)(),u=Object(c.useRef)(),l=function(e){var t=s.current,r=t.x,o=t.y;e.preventDefault(),document.activeElement.blur(),n(function(e,t,n,r){var o=r-t,i=n-e,a=Math.atan2(o,i),c=Math.round(a*(180/Math.PI))+90;if(c<0)return 360+c;return c}(r,o,e.clientX,e.clientY))},d=Object(E.__experimentalUseDragging)({onDragStart:function(e){var t;t=i.current.getBoundingClientRect(),s.current={x:t.x+t.width/2,y:t.y+t.height/2},l(e)},onDragMove:l,onDragEnd:l}),f=d.startDrag,p=d.isDragging;return Object(c.useEffect)((function(){p?(void 0===u.current&&(u.current=document.body.style.cursor),document.body.style.cursor="grabbing"):(document.body.style.cursor=u.current||null,u.current=void 0)}),[p]),Object(c.createElement)(Hr,Object(o.a)({ref:i,onMouseDown:f,className:"components-angle-picker-control__angle-circle",style:p?{cursor:"grabbing"}:void 0},r),Object(c.createElement)(Vr,{style:t?{transform:"rotate(".concat(t,"deg)")}:void 0,className:"components-angle-picker-control__angle-circle-indicator-wrapper"},Object(c.createElement)(Kr,{className:"components-angle-picker-control__angle-circle-indicator"})))};function Ur(e){var t=e.className,n=e.id,r=e.value,i=e.onChange,s=e.label,u=Object(a.a)(e,["className","id","value","onChange","label"]),d=Object(E.useInstanceId)(Ur,"components-angle-picker-control__input"),f=n||d,p=l()("components-angle-picker-control",t);return Object(c.createElement)(yt,Object(o.a)({className:p,id:f,label:s},u),Object(c.createElement)(zr,{gap:3},Object(c.createElement)(Br,null,Object(c.createElement)(Fr,{className:"components-angle-picker-control__input-field",id:f,max:360,min:0,onChange:function(e){var t=""!==e?parseInt(e,10):0;i(t)},step:"1",value:r})),Object(c.createElement)(kt,null,Object(c.createElement)(Wr,{"aria-hidden":"true",value:r,onChange:i}))))}var Gr=n(17),$r=n(25),qr=n(35),Yr=n(114),Zr=n(46),Xr=Object(E.createHigherOrderComponent)((function(e){return function(t){return Object(c.createElement)(e,Object(o.a)({},t,{speak:Zr.speak,debouncedSpeak:Object(E.useDebounce)(Zr.speak,500)}))}}),"withSpokenMessages");var Jr=function(e){var t=e.useItems?e.useItems:function(t){var n=Object(c.useState)([]),r=Object(i.a)(n,2),o=r[0],a=r[1];return Object(c.useLayoutEffect)((function(){var n=e.options,r=e.isDebounced,o=Object(s.debounce)((function(){var r=Promise.resolve("function"==typeof n?n(t):n).then((function(n){if(!r.canceled){var o=n.map((function(t,n){return{key:"".concat(e.name,"-").concat(n),value:t,label:e.getOptionLabel(t),keywords:e.getOptionKeywords?e.getOptionKeywords(t):[],isDisabled:!!e.isOptionDisabled&&e.isOptionDisabled(t)}})),i=new RegExp("(?:\\b|\\s|^)"+Object(s.escapeRegExp)(t),"i");a(function(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;o<t.length;o++){var i=t[o],a=i.keywords,c=void 0===a?[]:a;"string"==typeof i.label&&(c=[].concat(Object(Gr.a)(c),[i.label]));var u=c.some((function(t){return e.test(Object(s.deburr)(t))}));if(u&&(r.push(i),r.length===n))break}return r}(i,o))}}));return r}),r?250:0),i=o();return function(){o.cancel(),i&&(i.canceled=!0)}}),[t]),[o]};return function(e){var n,r=e.filterValue,o=e.instanceId,a=e.listBoxId,u=e.className,d=e.selectedIndex,f=e.onChangeOptions,p=e.onSelect,b=e.onReset,h=t(r),v=Object(i.a)(h,1)[0];return Object(c.useLayoutEffect)((function(){f(v)}),[v]),!v.length>0?null:Object(c.createElement)(Yr.a,{focusOnMount:!1,onClose:b,position:"top right",className:"components-autocomplete__popover",anchorRef:(n=window.getSelection(),n.rangeCount?n.getRangeAt(0):null)},Object(c.createElement)("div",{id:a,role:"listbox",className:"components-autocomplete__results"},Object(s.map)(v,(function(e,t){return Object(c.createElement)(qr.a,{key:e.key,id:"components-autocomplete-item-".concat(o,"-").concat(e.key),role:"option","aria-selected":t===d,disabled:e.isDisabled,className:l()("components-autocomplete__result",u,{"is-selected":t===d}),onClick:function(){return p(e)}},e.label)}))))}};var Qr=Xr((function e(t){var n,r=t.children,o=t.isSelected,a=t.record,u=t.onChange,l=t.onReplace,d=t.completers,f=t.debouncedSpeak,p=Object(E.useInstanceId)(e),b=Object(c.useState)(0),h=Object(i.a)(b,2),v=h[0],m=h[1],y=Object(c.useState)([]),g=Object(i.a)(y,2),O=g[0],j=g[1],w=Object(c.useState)(""),k=Object(i.a)(w,2),_=k[0],x=k[1],C=Object(c.useState)(null),P=Object(i.a)(C,2),D=P[0],M=P[1],T=Object(c.useState)(null),I=Object(i.a)(T,2),R=I[0],N=I[1];function A(e){var t=(D||{}).getOptionCompletion;if(!e.isDisabled){if(t){var n=t(e.value,_),r=void 0===n.action||void 0===n.value?{action:"insert-at-caret",value:n}:n,o=r.action,i=r.value;"replace"===o?l([i]):"insert-at-caret"===o&&(s=i,d=a.start,f=d-D.triggerPrefix.length-_.length,p=Object($r.create)({html:Object(c.renderToString)(s)}),u(Object($r.insert)(a,p,f,d)))}var s,d,f,p;L()}}function L(){m(0),j([]),x(""),M(null),N(null)}Object($r.isCollapsed)(a)&&(n=Object($r.getTextContent)(Object($r.slice)(a,0))),Object(c.useEffect)((function(){if(n){var e=Object(s.deburr)(n),t=Object($r.getTextContent)(Object($r.slice)(a,void 0,Object($r.getTextContent)(a).length)),r=Object(s.find)(d,(function(n){var r=n.triggerPrefix,o=n.allowContext,i=e.lastIndexOf(r);return-1!==i&&(!(o&&!o(e.slice(0,i),t))&&/^\S*$/.test(e.slice(i+r.length)))}));if(r){var o=Object(s.escapeRegExp)(r.triggerPrefix),i=e.match(new RegExp("".concat(o,"(\\S*)$"))),c=i&&i[1];M(r),N((function(){return r!==D?Jr(r):R})),x(c)}else L()}}),[n]);var F=(O[v]||{}).key,z=void 0===F?"":F,B=(D||{}).className,H=!!D&&O.length>0,V=H?"components-autocomplete-listbox-".concat(p):null,K=H?"components-autocomplete-item-".concat(p,"-").concat(z):null;return Object(c.createElement)(c.Fragment,null,r({isExpanded:H,listBoxId:V,activeId:K,onKeyDown:function(e){if(D&&0!==O.length){switch(e.keyCode){case pr.UP:m((0===v?O.length:v)-1);break;case pr.DOWN:m((v+1)%O.length);break;case pr.ESCAPE:M(null),N(null);break;case pr.ENTER:A(O[v]);break;case pr.LEFT:case pr.RIGHT:return void L();default:return}e.preventDefault(),e.stopPropagation()}}}),o&&R&&Object(c.createElement)(R,{className:B,filterValue:_,instanceId:p,listBoxId:V,selectedIndex:v,onChangeOptions:function(e){m(e.length===O.length?v:0),j(e),function(e){f&&(e.length?f(Object(S.sprintf)(Object(S._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"):f(Object(S.__)("No results."),"assertive"))}(e)},onSelect:A}))}));var eo=je("div",{target:"e1agakv00",label:"Root"})({name:"1bt0omd",styles:"box-sizing:border-box;position:relative;"}),to=function(e){var t=e.disableUnits;return le(nt({paddingRight:t?3:24})(),";")},no={name:"1y65o8",styles:"&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}"},ro=function(e){return e.disableUnits?"":no},oo=je(Fr,{target:"e1agakv01",label:"ValueInput"})("&&&{input{appearance:none;-moz-appearance:textfield;display:block;width:100%;",ro,";",to,";}}"),io=function(e){return le("appearance:none;background:transparent;border-radius:2px;border:none;box-sizing:border-box;color:",Fe("darkGray.500"),";display:block;font-size:8px;line-height:1;letter-spacing:-0.5px;outline:none;padding:2px 1px;position:absolute;text-align-last:center;text-transform:uppercase;width:20px;",nt({borderTopLeftRadius:0,borderBottomLeftRadius:0})()," ",nt({right:0})()," ",(t=e.size,le({default:{height:28,lineHeight:"24px",minHeight:28,top:1},small:{height:22,lineHeight:"18px",minHeight:22,top:1}}[t],"")),"");var t},ao=je("div",{target:"e1agakv02",label:"UnitLabel"})("&&&{pointer-events:none;",io,";}"),co=je("select",{target:"e1agakv03",label:"UnitSelect"})("&&&{",io,";cursor:pointer;border:1px solid transparent;&:hover{background-color:",Fe("lightGray.300"),";}&:focus{border-color:",Fe("ui.borderFocus"),";outline:2px solid transparent;outline-offset:0;}&:disabled{cursor:initial;&:hover{background-color:transparent;}}}"),so=[{value:"px",label:"px",default:0},{value:"%",label:"%",default:10},{value:"em",label:"em",default:0},{value:"rem",label:"rem",default:0},{value:"vw",label:"vw",default:10},{value:"vh",label:"vh",default:10}],uo=so[0];function lo(e){return!Object(s.isEmpty)(e)&&e.length>1&&!1!==e}function fo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:so,n=String(e).trim(),r=parseFloat(n,10);r=isNaN(r)?"":r;var o=n.match(/[\d.\-\+]*\s*(.*)/)[1],i=void 0!==o?o:"";if(i=i.toLowerCase(),lo(t)){var a=t.find((function(e){return e.value===i}));i=null==a?void 0:a.value}else i=uo.value;return[r,i]}function po(e,t,n,r){var o,a,c=fo(e,t),s=Object(i.a)(c,2),u=s[0],l=s[1],d=u;((isNaN(u)||""===u)&&(d=n),o=l||r,lo(t)&&!o)&&(o=null===(a=t[0])||void 0===a?void 0:a.value);return[d,o]}function bo(e){var t=e.className,n=e.isTabbable,r=void 0===n||n,i=e.options,u=void 0===i?so:i,d=e.onChange,f=void 0===d?s.noop:d,p=e.size,b=void 0===p?"default":p,h=e.value,v=void 0===h?"px":h,m=Object(a.a)(e,["className","isTabbable","options","onChange","size","value"]);if(!lo(u))return Object(c.createElement)(ao,{className:"components-unit-control__unit-label",size:b},v);var y=l()("components-unit-control__select",t);return Object(c.createElement)(co,Object(o.a)({className:y,onChange:function(e){var t=e.target.value,n=u.find((function(e){return e.value===t}));f(t,{event:e,data:n})},size:b,tabIndex:r?null:"-1",value:v},m),u.map((function(e){return Object(c.createElement)("option",{value:e.value,key:e.value},e.label)})))}function ho(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ho(Object(n),!0).forEach((function(t){Object(P.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ho(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var mo={initial:void 0,fallback:""};var yo=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:mo,n=vo(vo({},mo),t),r=n.initial,o=n.fallback,a=Object(c.useState)(e),s=Object(i.a)(a,2),u=s[0],l=s[1],d=kr(e);Object(c.useEffect)((function(){d&&u&&l(void 0)}),[d,u]);var f=Sr([e,u,r],o),p=function(e){d||l(e)};return[f,p]};var go=Object(c.forwardRef)((function(e,t){var n=e.__unstableStateReducer,r=void 0===n?function(e){return e}:n,u=e.autoComplete,d=void 0===u?"off":u,f=e.className,p=e.disabled,b=void 0!==p&&p,h=e.disableUnits,v=void 0!==h&&h,m=e.isPressEnterToChange,y=void 0!==m&&m,g=e.isResetValueOnUnitChange,O=void 0!==g&&g,j=e.isUnitSelectTabbable,w=void 0===j||j,k=e.label,_=e.onChange,S=void 0===_?s.noop:_,E=e.onUnitChange,x=void 0===E?s.noop:E,C=e.size,P=void 0===C?"default":C,D=e.style,M=e.unit,T=e.units,I=void 0===T?so:T,R=e.value,N=Object(a.a)(e,["__unstableStateReducer","autoComplete","className","disabled","disableUnits","isPressEnterToChange","isResetValueOnUnitChange","isUnitSelectTabbable","label","onChange","onUnitChange","size","style","unit","units","value"]),A=function(e,t,n){return fo(t?"".concat(e).concat(t):e,n)}(R,M,I),L=Object(i.a)(A,2),F=L[0],z=L[1],B=yo(M,{initial:z}),H=Object(i.a)(B,2),V=H[0],K=H[1],W=Object(c.useRef)(null),U=l()("components-unit-control",f),G=function(e){if(isNaN(e.target.value)){var t=po(e.target.value,I,F,V),n=Object(i.a)(t,2),r=n[0],o=n[1];if(W.current=r,y&&o!==V){var a={event:e,data:I.find((function(e){return e.value===o}))};S("".concat(r).concat(o),a),x(o,a),K(o)}}else W.current=null},$=G,q=v?null:Object(c.createElement)(bo,{disabled:b,isTabbable:w,options:I,onChange:function(e,t){var n=t.data,r="".concat(F).concat(e);O&&void 0!==(null==n?void 0:n.default)&&(r="".concat(n.default).concat(e)),S(r,t),x(e,t),K(e)},size:P,value:V});return Object(c.createElement)(eo,{className:"components-unit-control-wrapper",style:D},Object(c.createElement)(oo,Object(o.a)({"aria-label":k,type:y?"text":"number"},Object(s.omit)(N,["children"]),{autoComplete:d,className:U,disabled:b,disableUnits:v,isPressEnterToChange:y,label:k,onBlur:$,onKeyDown:function(e){e.keyCode===pr.ENTER&&G(e)},onChange:function(e,t){""!==e?(e=po(e,I,F,V).join(""),S(e,t)):S("",t)},ref:t,size:P,suffix:q,value:F,__unstableStateReducer:jr((function(e,t){return t.type===gr.COMMIT&&null!==W.current&&(e.value=W.current,W.current=null),e}),r)})))}));var Oo=je("div",{target:"e7pk0lh0",label:"Root"})({name:"vho1ao",styles:"box-sizing:border-box;max-width:235px;padding-bottom:12px;width:100%;"}),jo=je(_t,{target:"e7pk0lh1",label:"Header"})("color:",Fe("ui.label"),";padding-bottom:8px;"),wo=je(_t,{target:"e7pk0lh2",label:"HeaderControlWrapper"})({name:"19de7qh",styles:"min-height:30px;"}),ko=je("div",{target:"e7pk0lh3",label:"UnitControlWrapper"})({name:"zypm0w",styles:"box-sizing:border-box;max-width:80px;"}),_o=je(_t,{target:"e7pk0lh4",label:"LayoutContainer"})({name:"39f89t",styles:"justify-content:center;padding-top:8px;"}),So=je(_t,{target:"e7pk0lh5",label:"Layout"})({name:"ojqyia",styles:"position:relative;height:100%;width:100%;"}),Eo={name:"icip60",styles:"border-radius:2px;"},xo={name:"1k07npk",styles:"border-radius:0;"},Co=function(e){var t=e.isFirst,n=e.isLast,r=e.isOnly;return t?nt({borderTopRightRadius:0,borderBottomRightRadius:0})():n?nt({borderTopLeftRadius:0,borderBottomLeftRadius:0})():r?Eo:xo},Po=function(e){return nt({marginLeft:e.isFirst?0:-1})()},Do=je(go,{target:"e7pk0lh6",label:"UnitControl"})("max-width:60px;",Co,";",Po,";");function Mo(e){var t=e.isFirst,n=e.isLast,r=e.isOnly,i=e.onHoverOn,u=void 0===i?s.noop:i,l=e.onHoverOff,d=void 0===l?s.noop:l,f=e.label,p=e.value,b=Object(a.a)(e,["isFirst","isLast","isOnly","onHoverOn","onHoverOff","label","value"]),h=function(e,t){void 0===t&&(t={});var n=t,r=n.domTarget,o=n.eventOptions,i=n.window,a=zn(n,["domTarget","eventOptions","window"]),c=Ln(Ln({},sr({domTarget:r,eventOptions:o,window:i})),{},{hover:Ln({enabled:!0},a)});return nr({hover:e},[fr],c)}((function(e){var t=e.event,n=Object(a.a)(e,["event"]);n.hovering?u(t,n):d(t,n)}));return Object(c.createElement)(ko,Object(o.a)({"aria-label":f},h()),Object(c.createElement)(To,{text:f},Object(c.createElement)(Do,Object(o.a)({className:"component-box-control__unit-control",hideHTMLArrows:!0,isFirst:t,isLast:n,isOnly:r,isPressEnterToChange:!0,isResetValueOnUnitChange:!1,value:p},b))))}function To(e){var t=e.children,n=e.text;return n?Object(c.createElement)(C.a,{text:n,position:"top"},Object(c.createElement)("div",null,t)):t}var Io={all:Object(S.__)("All"),top:Object(S.__)("Top"),bottom:Object(S.__)("Bottom"),left:Object(S.__)("Left"),right:Object(S.__)("Right"),mixed:Object(S.__)("Mixed")},Ro={top:null,right:null,bottom:null,left:null},No={top:!1,right:!1,bottom:!1,left:!1};function Ao(e){return e.sort((function(t,n){return e.filter((function(e){return e===t})).length-e.filter((function(e){return e===n})).length})).pop()}function Lo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.values(e).map(fo),n=t.map((function(e){return e[0]})),r=t.map((function(e){return e[1]})),o=n.every((function(e){return e===n[0]}))?n[0]:"",i=Ao(r),a=Object(s.isNumber)(o)?"".concat(o).concat(i):null;return a}function Fo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Lo(e),n=isNaN(parseFloat(t));return n}function zo(e){return void 0!==e&&!Object(s.isEmpty)(Object.values(e).filter(Boolean))}function Bo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ho(e){var t=e.onChange,n=void 0===t?s.noop:t,r=e.onFocus,i=void 0===r?s.noop:r,u=e.onHoverOn,l=void 0===u?s.noop:u,d=e.onHoverOff,f=void 0===d?s.noop:d,p=e.values,b=Object(a.a)(e,["onChange","onFocus","onHoverOn","onHoverOff","values"]),h=Lo(p),v=zo(p)&&Fo(p),m=v?Io.mixed:null;return Object(c.createElement)(Mo,Object(o.a)({},b,{disableUnits:v,isOnly:!0,value:h,onChange:function(e){var t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bo(Object(n),!0).forEach((function(t){Object(P.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},p);t.top=e,t.bottom=e,t.left=e,t.right=e,n(t)},onFocus:function(e){i(e,{side:"all"})},onHoverOn:function(){l({top:!0,bottom:!0,left:!0,right:!0})},onHoverOff:function(){f({top:!1,bottom:!1,left:!1,right:!1})},placeholder:m}))}function Vo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ko(e){var t=e.onChange,n=void 0===t?s.noop:t,r=e.onFocus,i=void 0===r?s.noop:r,u=e.onHoverOn,l=void 0===u?s.noop:u,d=e.onHoverOff,f=void 0===d?s.noop:d,p=e.values,b=Object(a.a)(e,["onChange","onFocus","onHoverOn","onHoverOff","values"]),h=function(e){return function(t){i(t,{side:e})}},v=function(e){return function(){l(Object(P.a)({},e,!0))}},m=function(e){return function(){f(Object(P.a)({},e,!1))}},y=p.top,g=p.right,O=p.bottom,j=p.left,w=function(e){return function(t,r){var o=r.event.altKey,i=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vo(Object(n),!0).forEach((function(t){Object(P.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},p);if(i[e]=t,o)switch(e){case"top":i.bottom=t;break;case"bottom":i.top=t;break;case"left":i.right=t;break;case"right":i.left=t}!function(e){n(e)}(i)}};return Object(c.createElement)(_o,{className:"component-box-control__input-controls-wrapper"},Object(c.createElement)(So,{gap:0,align:"top",className:"component-box-control__input-controls"},Object(c.createElement)(Mo,Object(o.a)({},b,{isFirst:!0,value:y,onChange:w("top"),onFocus:h("top"),onHoverOn:v("top"),onHoverOff:m("top"),label:Io.top})),Object(c.createElement)(Mo,Object(o.a)({},b,{value:g,onChange:w("right"),onFocus:h("right"),onHoverOn:v("right"),onHoverOff:m("right"),label:Io.right})),Object(c.createElement)(Mo,Object(o.a)({},b,{value:O,onChange:w("bottom"),onFocus:h("bottom"),onHoverOn:v("bottom"),onHoverOff:m("bottom"),label:Io.bottom})),Object(c.createElement)(Mo,Object(o.a)({},b,{isLast:!0,value:j,onChange:w("left"),onFocus:h("left"),onHoverOn:v("left"),onHoverOff:m("left"),label:Io.left}))))}var Wo=je("span",{target:"eaw9yqk0",label:"Root"})({name:"1qtciqq",styles:"box-sizing:border-box;display:block;width:24px;height:24px;position:relative;padding:4px;"}),Uo=je("span",{target:"eaw9yqk1",label:"Viewbox"})({name:"be7uli",styles:"box-sizing:border-box;display:block;position:relative;width:100%;height:100%;"}),Go=je("span",{target:"eaw9yqk2",label:"Stroke"})("box-sizing:border-box;display:block;pointer-events:none;position:absolute;",(function(e){var t=e.isFocused;return le({backgroundColor:"currentColor",opacity:t?1:.3},"")}),";"),$o=je(Go,{target:"eaw9yqk3",label:"VerticalStroke"})({name:"r820ty",styles:"bottom:3px;top:3px;width:2px;"}),qo=je(Go,{target:"eaw9yqk4",label:"HorizontalStroke"})({name:"1gteeqa",styles:"height:2px;left:3px;right:3px;"}),Yo=je(qo,{target:"eaw9yqk5",label:"TopStroke"})({name:"1etxbbi",styles:"top:0;"}),Zo=je($o,{target:"eaw9yqk6",label:"RightStroke"})({name:"19zs6va",styles:"right:0;"}),Xo=je(qo,{target:"eaw9yqk7",label:"BottomStroke"})({name:"lh0t43",styles:"bottom:0;"}),Jo=je($o,{target:"eaw9yqk8",label:"LeftStroke"})({name:"260zpl",styles:"left:0;"});function Qo(e){var t=e.size,n=void 0===t?24:t,r=e.side,i=void 0===r?"all":r,s=Object(a.a)(e,["size","side"]),u=ei(i,"top"),l=ei(i,"right"),d=ei(i,"bottom"),f=ei(i,"left"),p=n/24;return Object(c.createElement)(Wo,Object(o.a)({style:{transform:"scale(".concat(p,")")}},s),Object(c.createElement)(Uo,null,Object(c.createElement)(Yo,{isFocused:u}),Object(c.createElement)(Zo,{isFocused:l}),Object(c.createElement)(Xo,{isFocused:d}),Object(c.createElement)(Jo,{isFocused:f})))}function ei(e,t){return"all"===e||e===t}var ti=n(186),ni=n(218);function ri(e){var t=e.isLinked,n=Object(a.a)(e,["isLinked"]),r=t?Object(S.__)("Unlink Sides"):Object(S.__)("Link Sides");return Object(c.createElement)(C.a,{text:r},Object(c.createElement)("span",null,Object(c.createElement)(qr.a,Object(o.a)({},n,{className:"component-box-control__linked-button",isPrimary:t,isSecondary:!t,isSmall:!0,icon:t?ti.a:ni.a,iconSize:16}))))}var oi={name:"tbck19",styles:"bottom:0;left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:1;"},ii=je("div",{target:"e1df9b4q0",label:"Container"})("box-sizing:border-box;position:relative;",(function(e){return e.isPositionAbsolute?oi:""}),";"),ai=je("div",{target:"e1df9b4q1",label:"Side"})("box-sizing:border-box;background:",Fe("blue.wordpress.700"),";background:",Fe("ui.theme"),";filter:brightness( 1 );opacity:0;position:absolute;pointer-events:none;transition:opacity 120ms linear;z-index:1;",(function(e){return e.isActive&&"\n\t\topacity: 0.3;\n\t"}),""),ci=je(ai,{target:"e1df9b4q2",label:"TopView"})({name:"1pb21am",styles:"top:0;left:0;right:0;"}),si=je(ai,{target:"e1df9b4q3",label:"RightView"})("top:0;bottom:0;",nt({right:0}),";"),ui=je(ai,{target:"e1df9b4q4",label:"BottomView"})({name:"w87m56",styles:"bottom:0;left:0;right:0;"}),li=je(ai,{target:"e1df9b4q5",label:"LeftView"})("top:0;bottom:0;",nt({left:0}),";");function di(e){var t=e.showValues,n=void 0===t?No:t,r=e.values,o=r.top,i=r.right,a=r.bottom,s=r.left;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(fi,{isVisible:n.top,value:o}),Object(c.createElement)(pi,{isVisible:n.right,value:i}),Object(c.createElement)(bi,{isVisible:n.bottom,value:a}),Object(c.createElement)(hi,{isVisible:n.left,value:s}))}function fi(e){var t=e.isVisible,n=void 0!==t&&t,r=e.value,o=vi(r).isActive||n;return Object(c.createElement)(ci,{isActive:o,style:{height:r}})}function pi(e){var t=e.isVisible,n=void 0!==t&&t,r=e.value,o=vi(r).isActive||n;return Object(c.createElement)(si,{isActive:o,style:{width:r}})}function bi(e){var t=e.isVisible,n=void 0!==t&&t,r=e.value,o=vi(r).isActive||n;return Object(c.createElement)(ui,{isActive:o,style:{height:r}})}function hi(e){var t=e.isVisible,n=void 0!==t&&t,r=e.value,o=vi(r).isActive||n;return Object(c.createElement)(li,{isActive:o,style:{width:r}})}function vi(e){var t=Object(c.useState)(!1),n=Object(i.a)(t,2),r=n[0],o=n[1],a=Object(c.useRef)(e),s=Object(c.useRef)(),u=function(){s.current&&window.clearTimeout(s.current)};return Object(c.useEffect)((function(){return e!==a.current&&(o(!0),a.current=e,u(),s.current=setTimeout((function(){o(!1)}),400)),function(){return u()}}),[e]),{isActive:r}}function mi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mi(Object(n),!0).forEach((function(t){Object(P.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var gi={min:0};function Oi(e){var t=e.id,n=e.inputProps,r=void 0===n?gi:n,o=e.onChange,a=void 0===o?s.noop:o,u=e.onChangeShowVisualizer,l=void 0===u?s.noop:u,d=e.label,f=void 0===d?Object(S.__)("Box Control"):d,p=e.values,b=e.units,h=yo(p,{fallback:Ro}),v=Object(i.a)(h,2),m=v[0],y=v[1],g=m||Ro,O=zo(p),j=Object(c.useState)(O),w=Object(i.a)(j,2),k=w[0],_=w[1],x=Object(c.useState)(!O||!Fo(g)),C=Object(i.a)(x,2),P=C[0],D=C[1],M=Object(c.useState)(P?"all":"top"),T=Object(i.a)(M,2),I=T[0],R=T[1],N=function(e){var t=Object(E.useInstanceId)(Oi,"inspector-box-control");return e||t}(t),A="".concat(N,"-heading"),L=yi(yi({},r),{},{onChange:function(e){a(e),y(e),_(!0)},onFocus:function(e,t){var n=t.side;R(n)},onHoverOn:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l(yi(yi({},No),e))},onHoverOff:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l(yi(yi({},No),e))},isLinked:P,units:b,values:g});return Object(c.createElement)(Oo,{id:N,role:"region","aria-labelledby":A},Object(c.createElement)(jo,{className:"component-box-control__header"},Object(c.createElement)(Et,null,Object(c.createElement)(Xt,{id:A,className:"component-box-control__label"},f)),Object(c.createElement)(Et,null,Object(c.createElement)(qr.a,{className:"component-box-control__reset-button",isSecondary:!0,isSmall:!0,onClick:function(){var e=Ro;a(e),y(e),_(!1)},disabled:!k},Object(S.__)("Reset")))),Object(c.createElement)(wo,{className:"component-box-control__header-control-wrapper"},Object(c.createElement)(Et,null,Object(c.createElement)(Qo,{side:I})),P&&Object(c.createElement)(kt,null,Object(c.createElement)(Ho,L)),Object(c.createElement)(Et,null,Object(c.createElement)(ri,{onClick:function(){D(!P),R(P?"top":"all")},isLinked:P}))),!P&&Object(c.createElement)(Ko,L))}Oi.__Visualizer=function(e){var t=e.children,n=e.showValues,r=void 0===n?No:n,i=e.values,s=void 0===i?Ro:i,u=Object(a.a)(e,["children","showValues","values"]),l=!t;return Object(c.createElement)(ii,Object(o.a)({},u,{isPositionAbsolute:l,"aria-hidden":"true"}),Object(c.createElement)(di,{showValues:r,values:s}),t)};var ji=Object(c.forwardRef)((function(e,t){var n=e.className,r=Object(a.a)(e,["className"]),i=l()("components-button-group",n);return Object(c.createElement)("div",Object(o.a)({ref:t,role:"group",className:i},r))})),wi=Object(c.createContext)({}),ki=function(){return Object(c.useContext)(wi)},_i={borderColor:Fe("lightGray.500"),borderRadius:"3px",backgroundShady:Fe("lightGray.200")},Si=_i.borderColor,Ei=_i.borderRadius,xi=_i.backgroundShady,Ci=je("div",{target:"e1q7k77g0",label:"CardUI"})("background:",Fe("white"),";box-sizing:border-box;border-radius:",Ei,";border:1px solid ",Si,";",Ni,";&.is-elevated{box-shadow:0px 1px 3px 0px rgba( 0,0,0,0.2 ),0px 1px 1px 0px rgba( 0,0,0,0.14 ),0px 2px 1px -1px rgba( 0,0,0,0.12 );}"),Pi=je(St,{target:"e1q7k77g1",label:"HeaderUI"})("border-bottom:1px solid ",Si,";border-top-left-radius:",Ei,";border-top-right-radius:",Ei,";box-sizing:border-box;&:last-child{border-bottom:none;}",Ri,";",Ni,";",Ai,";"),Di=je("div",{target:"e1q7k77g2",label:"MediaUI"})("box-sizing:border-box;overflow:hidden;& > img,& > iframe{display:block;height:auto;max-width:100%;width:100%;}&:first-of-type{border-top-left-radius:",Ei,";border-top-right-radius:",Ei,";}&:last-of-type{border-bottom-left-radius:",Ei,";border-bottom-right-radius:",Ei,";}"),Mi=je("div",{target:"e1q7k77g3",label:"BodyUI"})("box-sizing:border-box;",(function(){return"\n\t\t&.is-size {\n\t\t\t&-large {\n\t\t\t\tpadding: ".concat(ft(3)," ").concat(ft(4),";\n\t\t\t}\n\t\t\t&-medium {\n\t\t\t\tpadding: ").concat(ft(2)," ").concat(ft(3),";\n\t\t\t}\n\t\t\t&-small {\n\t\t\t\tpadding: ").concat(ft(2),";\n\t\t\t}\n\t\t\t&-extraSmall {\n\t\t\t\tpadding: ").concat(ft(1),";\n\t\t\t}\n\t\t}\n\t")}),";",Ai,";"),Ti=je(St,{target:"e1q7k77g4",label:"FooterUI"})("border-top:1px solid ",Si,";border-bottom-left-radius:",Ei,";border-bottom-right-radius:",Ei,";box-sizing:border-box;&:first-of-type{border-top:none;}",Ri,";",Ni,";",Ai,";"),Ii=je(r.HorizontalRule,{target:"e1q7k77g5",label:"DividerUI"})("all:unset;border-top:1px solid ",Si,";box-sizing:border-box;display:block;height:0;width:100%;");function Ri(){return"\n\t\t&.is-size {\n\t\t\t&-large {\n\t\t\t\tpadding: ".concat(ft(3)," ").concat(ft(4),";\n\t\t\t}\n\t\t\t&-medium {\n\t\t\t\tpadding: ").concat(ft(2)," ").concat(ft(3),";\n\t\t\t}\n\t\t\t&-small {\n\t\t\t\tpadding: ").concat(ft(2),";\n\t\t\t}\n\t\t\t&-extraSmall {\n\t\t\t\tpadding: ").concat(ft(1),";\n\t\t\t}\n\t\t}\n\t")}function Ni(){return"\n\t\t&.is-borderless {\n\t\t\tborder: none;\n\t\t}\n\t"}function Ai(){return"\n\t\t&.is-shady {\n\t\t\tbackground: ".concat(xi,";\n\t\t}\n\t")}function Li(e){var t=e.className,n=e.isBorderless,r=e.isElevated,i=e.size,s=Object(a.a)(e,["className","isBorderless","isElevated","size"]),u=wi.Provider,d={isBorderless:n,isElevated:r,size:i},f=l()("components-card",n&&"is-borderless",r&&"is-elevated",i&&"is-size-".concat(i),t);return Object(c.createElement)(u,{value:d},Object(c.createElement)(Ci,Object(o.a)({},s,{className:f})))}Li.defaultProps={isBorderless:!1,isElevated:!1,size:"medium"};var Fi=Li;function zi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zi(Object(n),!0).forEach((function(t){Object(P.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Hi={isShady:!1,size:"medium"};var Vi=function(e){var t=e.className,n=e.isShady,r=Object(a.a)(e,["className","isShady"]),i=Bi(Bi(Bi({},Hi),ki()),e).size,s=l()("components-card__body",n&&"is-shady",i&&"is-size-".concat(i),t);return Object(c.createElement)(Mi,Object(o.a)({},r,{className:s}))};var Ki=function(e){var t=e.className,n=Object(a.a)(e,["className"]),r=l()("components-card__divider",t);return Object(c.createElement)(Ii,Object(o.a)({},n,{children:null,className:r,role:"separator"}))};function Wi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ui(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wi(Object(n),!0).forEach((function(t){Object(P.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Gi={isBorderless:!1,isShady:!1,size:"medium"};var $i=function(e){var t=e.className,n=e.isShady,r=Object(a.a)(e,["className","isShady"]),i=Ui(Ui(Ui({},Gi),ki()),e),s=i.isBorderless,u=i.size,d=l()("components-card__footer",s&&"is-borderless",n&&"is-shady",u&&"is-size-".concat(u),t);return Object(c.createElement)(Ti,Object(o.a)({},r,{className:d}))};function qi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qi(Object(n),!0).forEach((function(t){Object(P.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Zi={isBorderless:!1,isShady:!1,size:"medium"};var Xi=function(e){var t=e.className,n=e.isShady,r=Object(a.a)(e,["className","isShady"]),i=Yi(Yi(Yi({},Zi),ki()),e),s=i.isBorderless,u=i.size,d=l()("components-card__header",s&&"is-borderless",n&&"is-shady",u&&"is-size-".concat(u),t);return Object(c.createElement)(Pi,Object(o.a)({},r,{className:d}))};var Ji=function(e){var t=e.className,n=Object(a.a)(e,["className"]),r=l()("components-card__media",t);return Object(c.createElement)(Di,Object(o.a)({},n,{className:r}))},Qi=n(141),ea=n(161);function ta(e){var t=e.label,n=e.className,r=e.heading,i=e.checked,s=e.help,u=e.onChange,l=Object(a.a)(e,["label","className","heading","checked","help","onChange"]),d=Object(E.useInstanceId)(ta),f="inspector-checkbox-control-".concat(d);return Object(c.createElement)(yt,{label:r,id:f,help:s,className:n},Object(c.createElement)("span",{className:"components-checkbox-control__input-container"},Object(c.createElement)("input",Object(o.a)({id:f,className:"components-checkbox-control__input",type:"checkbox",value:"1",onChange:function(e){return u(e.target.checked)},checked:i,"aria-describedby":s?f+"__help":void 0},l)),i?Object(c.createElement)(Qi.a,{icon:ea.a,className:"components-checkbox-control__checked",role:"presentation"}):null),Object(c.createElement)("label",{className:"components-checkbox-control__label",htmlFor:f},t))}function na(e){var t=e.className,n=e.children,r=e.onCopy,i=e.onFinishCopy,s=e.text,u=Object(a.a)(e,["className","children","onCopy","onFinishCopy","text"]),d=Object(c.useRef)(),f=Object(E.useCopyOnClick)(d,s),p=Object(c.useRef)(f);Object(c.useEffect)((function(){p.current!==f&&(f?r():i&&i(),p.current=f)}),[r,i,f]);var b=l()("components-clipboard-button",t);return Object(c.createElement)(qr.a,Object(o.a)({},u,{className:b,ref:d,onCopy:function(e){e.target.focus()}}),n)}var ra=n(274),oa=n(160),ia=n(314),aa=n(315),ca=n(209);function sa(e){var t,n,r,a,s,u,d,f=e.renderContent,p=e.renderToggle,b=e.position,h=void 0===b?"bottom right":b,v=e.className,m=e.contentClassName,y=e.expandOnMobile,g=e.headerTitle,O=e.focusOnMount,j=e.popoverProps,w=e.onClose,k=e.onToggle,_=Object(c.useRef)(),S=(n=!1,r=k,a=Object(c.useState)(n),s=Object(i.a)(a,2),u=s[0],d=s[1],[u,function(e){d(e),r&&r(e)}]),E=Object(i.a)(S,2),x=E[0],C=E[1];function P(){w&&w(),C(!1)}Object(c.useEffect)((function(){return function(){k&&k(!1)}}),[]);var D={isOpen:x,onToggle:function(){C(!x)},onClose:P};return Object(c.createElement)("div",{className:l()("components-dropdown",v),ref:_},p(D),x&&Object(c.createElement)(Yr.a,Object(o.a)({position:h,onClose:P,onFocusOutside:function(){var e=_.current.ownerDocument;_.current.contains(e.activeElement)||e.activeElement.closest('[role="dialog"]')||P()},expandOnMobile:y,headerTitle:g,focusOnMount:O},j,{anchorRef:null!==(t=null==j?void 0:j.anchorRef)&&void 0!==t?t:_.current,className:l()("components-dropdown__content",j?j.className:void 0,m)}),f(D)))}function ua(e){var t=e.actions,n=e.className,r=e.options,o=e.children;return Object(c.createElement)("div",{className:l()("components-circular-option-picker",n)},Object(c.createElement)("div",{className:"components-circular-option-picker__swatches"},r),o,t&&Object(c.createElement)("div",{className:"components-circular-option-picker__custom-clear-wrapper"},t))}ua.Option=function(e){var t=e.className,n=e.isSelected,r=e.selectedIconProps,i=e.tooltipText,s=Object(a.a)(e,["className","isSelected","selectedIconProps","tooltipText"]),u=Object(c.createElement)(qr.a,Object(o.a)({isPressed:n,className:l()(t,"components-circular-option-picker__option")},s));return Object(c.createElement)("div",{className:"components-circular-option-picker__option-wrapper"},i?Object(c.createElement)(C.a,{text:i},u):u,n&&Object(c.createElement)(Qi.a,Object(o.a)({icon:ea.a},r||{})))},ua.ButtonAction=function(e){var t=e.className,n=e.children,r=Object(a.a)(e,["className","children"]);return Object(c.createElement)(qr.a,Object(o.a)({className:l()("components-circular-option-picker__clear",t),isSmall:!0,isSecondary:!0},r),n)},ua.DropdownLinkAction=function(e){var t=e.buttonProps,n=e.className,r=e.dropdownProps,i=e.linkText;return Object(c.createElement)(sa,Object(o.a)({className:l()("components-circular-option-picker__dropdown-link-action",n),renderToggle:function(e){var n=e.isOpen,r=e.onToggle;return Object(c.createElement)(qr.a,Object(o.a)({"aria-expanded":n,"aria-haspopup":"true",onClick:r,isLink:!0},t),i)}},r))};var la=n(21),da=n(22),fa=n(16),pa=n(23),ba=n(24),ha=n(19);function va(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.hex?ke()(e.hex):ke()(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 i=n.toRgb(),a=n.toHex();0===r.s&&(r.h=t||0,o.h=t||0);var c="000000"===a&&0===i.a;return{color:n,hex:c?"transparent":"#".concat(a),hsl:r,hsv:o,oldHue:e.h||t||r.h,rgb:i,source:e.source}}function ma(e,t){e.preventDefault();var n=t.getBoundingClientRect(),r=n.left,o=n.top,i=n.width,a=n.height,c="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,s="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,u=c-(r+window.pageXOffset),l=s-(o+window.pageYOffset);return u<0?u=0:u>i?u=i:l<0?l=0:l>a&&(l=a),{top:l,left:u,width:i,height:a}}function ya(e){var t="#"===String(e).charAt(0)?1:0;return e.length!==4+t&&e.length<7+t&&ke()(e).isValid()}function ga(e){var t=e.target,n=e.callback,r=e.shortcut,o=e.bindGlobal,i=e.eventName;return Object(E.useKeyboardShortcut)(r,n,{bindGlobal:o,target:t,eventName:i}),null}var Oa=function(e){var t=e.children,n=e.shortcuts,r=e.bindGlobal,o=e.eventName,i=Object(c.useRef)(),a=Object(s.map)(n,(function(e,t){return Object(c.createElement)(ga,{key:t,shortcut:t,callback:e,bindGlobal:r,eventName:o,target:i})}));return c.Children.count(t)?Object(c.createElement)("div",{ref:i},a,t):a};function ja(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ha.a)(e);if(t){var o=Object(ha.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ba.a)(this,n)}}var wa=function(e){Object(pa.a)(n,e);var t=ja(n);function n(){var e;return Object(la.a)(this,n),(e=t.apply(this,arguments)).container=Object(c.createRef)(),e.increase=e.increase.bind(Object(fa.a)(e)),e.decrease=e.decrease.bind(Object(fa.a)(e)),e.handleChange=e.handleChange.bind(Object(fa.a)(e)),e.handleMouseDown=e.handleMouseDown.bind(Object(fa.a)(e)),e.handleMouseUp=e.handleMouseUp.bind(Object(fa.a)(e)),e}return Object(da.a)(n,[{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?s.noop:r;e=parseInt(100*e,10);var i={h:n.h,s:n.s,l:n.l,a:(parseInt(100*n.a,10)+e)/100,source:"rgb"};o(i)}},{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?s.noop:r,i=parseInt(100*n.a,10)-parseInt(100*e,10),a={h:n.h,s:n.s,l:n.l,a:n.a<=e?0:i/100,source:"rgb"};o(a)}},{key:"handleChange",value:function(e){var t=this.props.onChange,n=void 0===t?s.noop:t,r=function(e,t,n){var r=ma(e,n),o=r.left,i=r.width,a=o<0?0:Math.round(100*o/i)/100;return t.hsl.a!==a?{h:t.hsl.h,s:t.hsl.s,l:t.hsl.l,a: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!==pr.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%)")},o={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(c.createElement)(Oa,{shortcuts:i},Object(c.createElement)("div",{className:"components-color-picker__alpha"},Object(c.createElement)("div",{className:"components-color-picker__alpha-gradient",style:r}),Object(c.createElement)("div",{className:"components-color-picker__alpha-bar",ref:this.container,onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},Object(c.createElement)("div",{tabIndex:"0",role:"slider","aria-valuemax":"1","aria-valuemin":"0","aria-valuenow":t.a,"aria-orientation":"horizontal","aria-label":Object(S.__)("Alpha value, from 0 (transparent) to 1 (fully opaque)."),className:"components-color-picker__alpha-pointer",style:o,onKeyDown:this.preventKeyEvents}))))}}]),n}(c.Component),ka=Object(E.pure)(wa);function _a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ha.a)(e);if(t){var o=Object(ha.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ba.a)(this,n)}}var Sa=function(e){Object(pa.a)(n,e);var t=_a(n);function n(){var e;return Object(la.a)(this,n),(e=t.apply(this,arguments)).container=Object(c.createRef)(),e.increase=e.increase.bind(Object(fa.a)(e)),e.decrease=e.decrease.bind(Object(fa.a)(e)),e.handleChange=e.handleChange.bind(Object(fa.a)(e)),e.handleMouseDown=e.handleMouseDown.bind(Object(fa.a)(e)),e.handleMouseUp=e.handleMouseUp.bind(Object(fa.a)(e)),e}return Object(da.a)(n,[{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?s.noop:r,i={h:n.h+e>=359?359:n.h+e,s:n.s,l:n.l,a:n.a,source:"rgb"};o(i)}},{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?s.noop:r,i={h:n.h<=e?0:n.h-e,s:n.s,l:n.l,a:n.a,source:"rgb"};o(i)}},{key:"handleChange",value:function(e){var t=this.props.onChange,n=void 0===t?s.noop:t,r=function(e,t,n){var r=ma(e,n),o=r.left,i=r.width,a=o>=i?359:360*(100*o/i)/100;return t.hsl.h!==a?{h:a,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!==pr.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,o=t.instanceId,i={left:"".concat(100*r.h/360,"%")},a={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(c.createElement)(Oa,{shortcuts:a},Object(c.createElement)("div",{className:"components-color-picker__hue"},Object(c.createElement)("div",{className:"components-color-picker__hue-gradient"}),Object(c.createElement)("div",{className:"components-color-picker__hue-bar",ref:this.container,onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},Object(c.createElement)("div",{tabIndex:"0",role:"slider","aria-valuemax":"1","aria-valuemin":"359","aria-valuenow":r.h,"aria-orientation":"horizontal","aria-label":Object(S.__)("Hue value in degrees, from 0 to 359."),"aria-describedby":"components-color-picker__hue-description-".concat(o),className:"components-color-picker__hue-pointer",style:i,onKeyDown:this.preventKeyEvents}),Object(c.createElement)(M,{as:"p",id:"components-color-picker__hue-description-".concat(o)},Object(S.__)("Move the arrow left or right to change hue.")))))}}]),n}(c.Component),Ea=Object(E.compose)(E.pure,E.withInstanceId)(Sa);function xa(e){var t=e.label,n=e.hideLabelFromVision,r=e.value,i=e.help,s=e.className,u=e.onChange,l=e.type,d=void 0===l?"text":l,f=Object(a.a)(e,["label","hideLabelFromVision","value","help","className","onChange","type"]),p=Object(E.useInstanceId)(xa),b="inspector-text-control-".concat(p);return Object(c.createElement)(yt,{label:t,hideLabelFromVision:n,id:b,help:i,className:s},Object(c.createElement)("input",Object(o.a)({className:"components-text-control__input",type:d,id:b,value:r,onChange:function(e){return u(e.target.value)},"aria-describedby":i?b+"__help":void 0},f)))}function Ca(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ha.a)(e);if(t){var o=Object(ha.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ba.a)(this,n)}}var Pa=function(e){Object(pa.a)(n,e);var t=Ca(n);function n(){var e;return Object(la.a)(this,n),(e=t.apply(this,arguments)).handleBlur=e.handleBlur.bind(Object(fa.a)(e)),e.handleChange=e.handleChange.bind(Object(fa.a)(e)),e.handleKeyDown=e.handleKeyDown.bind(Object(fa.a)(e)),e}return Object(da.a)(n,[{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&&ya(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===pr.ENTER||t===pr.UP||t===pr.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,i=Object(a.a)(t,["label","value"]);return Object(c.createElement)(xa,Object(o.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(s.omit)(i,["onChange","valueKey","source"])))}}]),n}(c.Component),Da=Object(E.pure)(qr.a),Ma=function(e){Object(pa.a)(n,e);var t=Ca(n);function n(e){var r,o=e.hsl;Object(la.a)(this,n),r=t.apply(this,arguments);var i=1===o.a?"hex":"rgb";return r.state={view:i},r.toggleViews=r.toggleViews.bind(Object(fa.a)(r)),r.resetDraftValues=r.resetDraftValues.bind(Object(fa.a)(r)),r.handleChange=r.handleChange.bind(Object(fa.a)(r)),r.normalizeValue=r.normalizeValue.bind(Object(fa.a)(r)),r}return Object(da.a)(n,[{key:"toggleViews",value:function(){"hex"===this.state.view?(this.setState({view:"rgb"},this.resetDraftValues),Object(Zr.speak)(Object(S.__)("RGB mode active"))):"rgb"===this.state.view?(this.setState({view:"hsl"},this.resetDraftValues),Object(Zr.speak)(Object(S.__)("Hue/saturation/lightness mode active"))):"hsl"===this.state.view&&(1===this.props.hsl.a?(this.setState({view:"hex"},this.resetDraftValues),Object(Zr.speak)(Object(S.__)("Hex color mode active"))):(this.setState({view:"rgb"},this.resetDraftValues),Object(Zr.speak)(Object(S.__)("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;if("hex"===this.state.view)return Object(c.createElement)("div",{className:"components-color-picker__inputs-fields"},Object(c.createElement)(Pa,{source:this.state.view,label:Object(S.__)("Color value in hexadecimal"),valueKey:"hex",value:this.props.hex,onChange:this.handleChange}));if("rgb"===this.state.view){var n=t?Object(S.__)("Color value in RGB"):Object(S.__)("Color value in RGBA");return Object(c.createElement)("fieldset",null,Object(c.createElement)(M,{as:"legend"},n),Object(c.createElement)("div",{className:"components-color-picker__inputs-fields"},Object(c.createElement)(Pa,{source:this.state.view,label:"r",valueKey:"r",value:this.props.rgb.r,onChange:this.handleChange,type:"number",min:"0",max:"255"}),Object(c.createElement)(Pa,{source:this.state.view,label:"g",valueKey:"g",value:this.props.rgb.g,onChange:this.handleChange,type:"number",min:"0",max:"255"}),Object(c.createElement)(Pa,{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(c.createElement)(Pa,{source:this.state.view,label:"a",valueKey:"a",value:this.props.rgb.a,onChange:this.handleChange,type:"number",min:"0",max:"1",step:"0.01"})))}if("hsl"===this.state.view){var r=t?Object(S.__)("Color value in HSL"):Object(S.__)("Color value in HSLA");return Object(c.createElement)("fieldset",null,Object(c.createElement)(M,{as:"legend"},r),Object(c.createElement)("div",{className:"components-color-picker__inputs-fields"},Object(c.createElement)(Pa,{source:this.state.view,label:"h",valueKey:"h",value:this.props.hsl.h,onChange:this.handleChange,type:"number",min:"0",max:"359"}),Object(c.createElement)(Pa,{source:this.state.view,label:"s",valueKey:"s",value:this.props.hsl.s,onChange:this.handleChange,type:"number",min:"0",max:"100"}),Object(c.createElement)(Pa,{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(c.createElement)(Pa,{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"})))}}},{key:"render",value:function(){return Object(c.createElement)("div",{className:"components-color-picker__inputs-wrapper"},this.renderFields(),Object(c.createElement)("div",{className:"components-color-picker__inputs-toggle-wrapper"},Object(c.createElement)(Da,{className:"components-color-picker__inputs-toggle",icon:aa.a,label:Object(S.__)("Change color format"),onClick:this.toggleViews})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 1!==e.hsl.a&&"hex"===t.view?{view:"rgb"}:null}}]),n}(c.Component);function Ta(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ha.a)(e);if(t){var o=Object(ha.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ba.a)(this,n)}}var Ia=function(e){Object(pa.a)(n,e);var t=Ta(n);function n(e){var r;return Object(la.a)(this,n),(r=t.call(this,e)).throttle=Object(s.throttle)((function(e,t,n){e(t,n)}),50),r.container=Object(c.createRef)(),r.saturate=r.saturate.bind(Object(fa.a)(r)),r.brighten=r.brighten.bind(Object(fa.a)(r)),r.handleChange=r.handleChange.bind(Object(fa.a)(r)),r.handleMouseDown=r.handleMouseDown.bind(Object(fa.a)(r)),r.handleMouseUp=r.handleMouseUp.bind(Object(fa.a)(r)),r}return Object(da.a)(n,[{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?s.noop:r,i=Object(s.clamp)(n.s+Math.round(100*e),0,100),a={h:n.h,s:i,v:n.v,a:n.a,source:"rgb"};o(a)}},{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?s.noop:r,i=Object(s.clamp)(n.v+Math.round(100*e),0,100),a={h:n.h,s:n.s,v:i,a:n.a,source:"rgb"};o(a)}},{key:"handleChange",value:function(e){var t=this.props.onChange,n=void 0===t?s.noop:t,r=function(e,t,n){var r=ma(e,n),o=r.top,i=r.left,a=r.width,c=r.height,s=i<0?0:100*i/a,u=o>=c?0:-100*o/c+100;return u<1&&(u=0),{h:t.hsl.h,s:s,v:u,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!==pr.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,o=t.instanceId,i={top:"".concat(100-n.v,"%"),left:"".concat(n.s,"%")},a={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(c.createElement)(Oa,{shortcuts:a},Object(c.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(c.createElement)("div",{className:"components-color-picker__saturation-white"}),Object(c.createElement)("div",{className:"components-color-picker__saturation-black"}),Object(c.createElement)(qr.a,{"aria-label":Object(S.__)("Choose a shade"),"aria-describedby":"color-picker-saturation-".concat(o),className:"components-color-picker__saturation-pointer",style:i,onKeyDown:this.preventKeyEvents}),Object(c.createElement)(M,{id:"color-picker-saturation-".concat(o)},Object(S.__)("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."))))}}]),n}(c.Component),Ra=Object(E.compose)(E.pure,E.withInstanceId)(Ia);function Na(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ha.a)(e);if(t){var o=Object(ha.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ba.a)(this,n)}}function Aa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function La(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Aa(Object(n),!0).forEach((function(t){Object(P.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Aa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Fa=function(e){return String(e).toLowerCase()},za=function(e){return e.hex?ya(e.hex):(t=e,n=0,r=0,Object(s.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},Ba=function(e,t){var n=t.source,r=t.valueKey,o=t.value;return"hex"===n?Object(P.a)({source:n},n,o):La({source:n},La(La({},e[n]),Object(P.a)({},r,o)))},Ha=function(e){Object(pa.a)(n,e);var t=Na(n);function n(e){var r,o=e.color,i=void 0===o?"0071a1":o;Object(la.a)(this,n),r=t.apply(this,arguments);var a=va(i);return r.state=La(La({},a),{},{draftHex:Fa(a.hex),draftRgb:a.rgb,draftHsl:a.hsl}),r.commitValues=r.commitValues.bind(Object(fa.a)(r)),r.setDraftValues=r.setDraftValues.bind(Object(fa.a)(r)),r.resetDraftValues=r.resetDraftValues.bind(Object(fa.a)(r)),r.handleInputChange=r.handleInputChange.bind(Object(fa.a)(r)),r}return Object(da.a)(n,[{key:"commitValues",value:function(e){var t=this.props,n=t.oldHue,r=t.onChangeComplete,o=void 0===r?s.noop:r;if(za(e)){var i=va(e,e.h||n);this.setState(La(La({},i),{},{draftHex:Fa(i.hex),draftHsl:i.hsl,draftRgb:i.rgb}),Object(s.debounce)(Object(s.partial)(o,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:Fa(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=Ba(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(Ba(this.state,e))}}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.disableAlpha,r=this.state,o=r.color,i=r.hsl,a=r.hsv,s=r.rgb,u=r.draftHex,d=r.draftHsl,f=r.draftRgb,p=l()(t,{"components-color-picker":!0,"is-alpha-disabled":n,"is-alpha-enabled":!n});return Object(c.createElement)("div",{className:p},Object(c.createElement)("div",{className:"components-color-picker__saturation"},Object(c.createElement)(Ra,{hsl:i,hsv:a,onChange:this.commitValues})),Object(c.createElement)("div",{className:"components-color-picker__body"},Object(c.createElement)("div",{className:"components-color-picker__controls"},Object(c.createElement)("div",{className:"components-color-picker__swatch"},Object(c.createElement)("div",{className:"components-color-picker__active",style:{backgroundColor:o&&o.toRgbString()}})),Object(c.createElement)("div",{className:"components-color-picker__toggles"},Object(c.createElement)(Ea,{hsl:i,onChange:this.commitValues}),n?null:Object(c.createElement)(ka,{rgb:s,hsl:i,onChange:this.commitValues}))),Object(c.createElement)(Ma,{rgb:f,hsl:d,hex:u,onChange:this.handleInputChange,disableAlpha:n})))}}]),n}(c.Component);function Va(e){var t=e.shouldOpen,n=e.isOpen,r=e.onToggle;return Object(c.useEffect)((function(){t&&!n&&r()}),[]),null}function Ka(e){var t=e.color,n=e.name,r=e.slug,o=e.onChange,a=e.onRemove,u=e.onConfirm,d=e.confirmLabel,f=void 0===d?Object(S.__)("OK"):d,p=e.isEditingNameOnMount,b=void 0!==p&&p,h=e.isEditingColorOnMount,v=void 0!==h&&h,m=e.onCancel,y=Object(c.useState)(!1),g=Object(i.a)(y,2),O=g[0],j=g[1],w=Object(c.useState)(!1),k=Object(i.a)(w,2),_=k[0],E=k[1],x=Object(c.useState)(b),C=Object(i.a)(x,2),P=C[0],D=C[1],M=Object(c.useState)(!1),T=Object(i.a)(M,2),I=T[0],R=T[1],N=O||_||P||I;return Object(c.createElement)("div",{tabIndex:0,className:l()("components-color-edit__color-option",{"is-hover":O&&!P&&!I}),onMouseEnter:function(){return j(!0)},onMouseLeave:function(){return j(!1)},onFocus:function(){return E(!0)},onBlur:function(){return E(!1)},"aria-label":n?Object(S.sprintf)(Object(S.__)("Color: %s"),n):Object(S.sprintf)(Object(S.__)("Color code: %s"),t)},Object(c.createElement)("div",{className:"components-color-edit__color-option-main-area"},Object(c.createElement)(sa,{renderToggle:function(e){var n=e.isOpen,r=e.onToggle;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(Va,{shouldOpen:v,isOpen:n,onToggle:r}),Object(c.createElement)(ua.Option,{style:{backgroundColor:t,color:t},"aria-expanded":n,"aria-haspopup":"true",onClick:r,"aria-label":Object(S.__)("Edit color value")}))},renderContent:function(){return Object(c.createElement)(Ha,{color:t,onChangeComplete:function(e){return o({color:e.hex,slug:r,name:n})},disableAlpha:!0})}}),!P&&Object(c.createElement)("div",{className:"components-color-edit__color-option-color-name"},n),P&&Object(c.createElement)(c.Fragment,null,Object(c.createElement)(xa,{className:"components-color-edit__color-option-color-name-input",hideLabelFromVision:!0,onChange:function(e){return o({color:t,slug:Object(s.kebabCase)(e),name:e})},label:Object(S.__)("Color name"),placeholder:Object(S.__)("Name"),value:n}),Object(c.createElement)(qr.a,{onClick:function(){D(!1),E(!1),u&&u()},isPrimary:!0},f)),!P&&Object(c.createElement)(c.Fragment,null,Object(c.createElement)(qr.a,{className:l()({"components-color-edit__hidden-control":!N}),icon:ra.a,label:Object(S.__)("Edit color name"),onClick:function(){return D(!0)}}),Object(c.createElement)(qr.a,{className:l()({"components-color-edit__hidden-control":!N}),icon:oa.a,label:Object(S.__)("Remove color"),onClick:a})),Object(c.createElement)(qr.a,{className:l()({"components-color-edit__hidden-control":!N}),icon:I?ia.a:aa.a,label:Object(S.__)("Additional color settings"),onClick:function(){I&&E(!1),R(!I)},"aria-expanded":I})),m&&Object(c.createElement)(qr.a,{className:"components-color-edit__cancel-button",onClick:m},Object(S.__)("Cancel")),I&&Object(c.createElement)(xa,{className:"components-color-edit__slug-input",onChange:function(e){return o({color:t,slug:e,name:n})},label:Object(S.__)("Slug"),value:r}))}function Wa(e){var t=e.onInsert,n=e.onCancel,r=Object(c.useState)({color:"#fff",name:"",slug:""}),o=Object(i.a)(r,2),a=o[0],s=o[1];return Object(c.createElement)(Ka,{color:a.color,name:a.name,slug:a.slug,onChange:s,confirmLabel:Object(S.__)("Save"),onConfirm:function(){return t(a)},isEditingNameOnMount:!0,isEditingColorOnMount:!0,onCancel:n})}function Ua(e){var t=e.colors,n=e.onChange,r=e.emptyUI,o=Object(c.useState)(!1),a=Object(i.a)(o,2),u=a[0],l=a[1];return Object(c.createElement)(yt,null,Object(c.createElement)("fieldset",null,Object(c.createElement)("div",{className:"components-color-edit__label-and-insert-container"},Object(c.createElement)("legend",null,Object(c.createElement)("div",null,Object(c.createElement)(yt.VisualLabel,null,Object(S.__)("Color palette")))),!u&&Object(c.createElement)(qr.a,{onClick:function(){l(!0)},className:"components-color-edit__insert-button",icon:ca.a})),Object(c.createElement)("div",null,!Object(s.isEmpty)(t)&&t.map((function(e,r){return Object(c.createElement)(Ka,{key:r,color:e.color,name:e.name,slug:e.slug,onChange:function(e){n(t.map((function(t,n){return n===r?e:t})))},onRemove:function(){n(t.filter((function(e,t){return t!==r})))}})})),u&&Object(c.createElement)(Wa,{onInsert:function(e){l(!1),n([].concat(Object(Gr.a)(t||[]),[e]))},onCancel:function(){return l(!1)}}),!u&&Object(s.isEmpty)(t)&&r)))}var Ga=function(e){var t=e.className,n=e.colorValue,r=Object(a.a)(e,["className","colorValue"]);return Object(c.createElement)("span",Object(o.a)({className:l()("component-color-indicator",t),style:{background:n}},r))};function $a(e){var t=e.clearable,n=void 0===t||t,r=e.className,o=e.colors,i=e.disableCustomColors,a=void 0!==i&&i,u=e.onChange,l=e.value,d=Object(c.useCallback)((function(){return u(void 0)}),[u]),f=Object(c.useMemo)((function(){return Object(s.map)(o,(function(e){var t=e.color,n=e.name;return Object(c.createElement)(ua.Option,{key:t,isSelected:l===t,selectedIconProps:l===t?{fill:ke.a.mostReadable(t,["#000","#fff"]).toHexString()}:{},tooltipText:n||Object(S.sprintf)(Object(S.__)("Color code: %s"),t),style:{backgroundColor:t,color:t},onClick:l===t?d:function(){return u(t)},"aria-label":n?Object(S.sprintf)(Object(S.__)("Color: %s"),n):Object(S.sprintf)(Object(S.__)("Color code: %s"),t)})}))}),[o,l,u,d]);return Object(c.createElement)(ua,{className:r,options:f,actions:Object(c.createElement)(c.Fragment,null,!a&&Object(c.createElement)(ua.DropdownLinkAction,{dropdownProps:{renderContent:function(){return Object(c.createElement)(Ha,{color:l,onChangeComplete:function(e){return u(e.hex)},disableAlpha:!0})},contentClassName:"components-color-palette__picker"},buttonProps:{"aria-label":Object(S.__)("Custom color picker")},linkText:Object(S.__)("Custom color")}),!!n&&Object(c.createElement)(ua.ButtonAction,{onClick:d},Object(S.__)("Clear")))})}var qa=n(159);function Ya(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ha.a)(e);if(t){var o=Object(ha.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ba.a)(this,n)}}var Za=function(e){Object(pa.a)(n,e);var t=Ya(n);function n(){var e;return Object(la.a)(this,n),(e=t.apply(this,arguments)).onChange=e.onChange.bind(Object(fa.a)(e)),e.bindInput=e.bindInput.bind(Object(fa.a)(e)),e}return Object(da.a)(n,[{key:"focus",value:function(){this.input.focus()}},{key:"hasFocus",value:function(){return this.input===this.input.ownerDocument.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,i=e.selectedSuggestionIndex,s=e.className,u=Object(a.a)(e,["value","isExpanded","instanceId","selectedSuggestionIndex","className"]),d=t?t.length+1:0;return Object(c.createElement)("input",Object(o.a)({ref:this.bindInput,id:"components-form-token-input-".concat(r),type:"text"},u,{value:t||"",onChange:this.onChange,size:d,className:l()(s,"components-form-token-field__input"),autoComplete:"off",role:"combobox","aria-expanded":n,"aria-autocomplete":"list","aria-owns":n?"components-form-token-suggestions-".concat(r):void 0,"aria-activedescendant":-1!==i?"components-form-token-suggestions-".concat(r,"-").concat(i):void 0,"aria-describedby":"components-form-token-suggestions-howto-".concat(r)}))}}]),n}(c.Component),Xa=n(127),Ja=n.n(Xa);function Qa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ha.a)(e);if(t){var o=Object(ha.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ba.a)(this,n)}}var ec=function(e){Object(pa.a)(n,e);var t=Qa(n);function n(){var e;return Object(la.a)(this,n),(e=t.apply(this,arguments)).handleMouseDown=e.handleMouseDown.bind(Object(fa.a)(e)),e.bindList=e.bindList.bind(Object(fa.a)(e)),e}return Object(da.a)(n,[{key:"componentDidUpdate",value:function(){var e=this;this.props.selectedIndex>-1&&this.props.scrollIntoView&&(this.scrollingIntoView=!0,Ja()(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(c.createElement)("ul",{ref:this.bindList,className:"components-form-token-field__suggestions-list",id:"components-form-token-suggestions-".concat(this.props.instanceId),role:"listbox"},Object(s.map)(this.props.suggestions,(function(t,n){var r=e.computeSuggestionMatch(t),o=l()("components-form-token-field__suggestion",{"is-selected":n===e.props.selectedIndex});return Object(c.createElement)("li",{id:"components-form-token-suggestions-".concat(e.props.instanceId,"-").concat(n),role:"option",className:o,key:e.props.displayTransform(t),onMouseDown:e.handleMouseDown,onClick:e.handleClick(t),onMouseEnter:e.handleHover(t),"aria-selected":n===e.props.selectedIndex},r?Object(c.createElement)("span",{"aria-label":e.props.displayTransform(t)},r.suggestionBeforeMatch,Object(c.createElement)("strong",{className:"components-form-token-field__suggestion-match"},r.suggestionMatch),r.suggestionAfterMatch):e.props.displayTransform(t))})))}}]),n}(c.Component);ec.defaultProps={match:"",onHover:function(){},onSelect:function(){},suggestions:Object.freeze([])};var tc=Object(E.withSafeTimeout)(ec);var nc=function e(t){var n,r=t.value,o=t.label,a=t.options,s=t.onChange,u=t.onFilterValueChange,d=t.hideLabelFromVision,f=t.help,p=t.allowReset,b=void 0===p||p,h=t.className,v=t.messages,m=void 0===v?{selected:Object(S.__)("Item selected.")}:v,y=Object(E.useInstanceId)(e),g=Object(c.useState)(null),O=Object(i.a)(g,2),j=O[0],w=O[1],k=Object(c.useState)(!1),_=Object(i.a)(k,2),x=_[0],C=_[1],P=Object(c.useState)(""),D=Object(i.a)(P,2),M=D[0],T=D[1],I=Object(c.useRef)(),R=a.find((function(e){return e.value===r})),N=null!==(n=null==R?void 0:R.label)&&void 0!==n?n:"",A=Object(c.useMemo)((function(){var e=[],t=[],n=M.toLocaleLowerCase();return a.forEach((function(r){var o=r.label.toLocaleLowerCase().indexOf(n);0===o?e.push(r):o>0&&t.push(r)})),e.concat(t)}),[M,a,r]),L=function(e){s(e.value),Object(Zr.speak)(m.selected,"assertive"),w(e),T(""),C(!1)},F=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=A.indexOf(j),n=t+e;n<0?n=A.length-1:n>=A.length&&(n=0),w(A[n]),C(!0)};return Object(c.useEffect)((function(){var e=A.length>0;if(x){var t=e?Object(S.sprintf)(Object(S._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",A.length),A.length):Object(S.__)("No results.");Object(Zr.speak)(t,"assertive")}}),[A,x]),Object(c.createElement)(yt,{className:l()(h,"components-combobox-control"),tabIndex:"-1",label:o,id:"components-form-token-input-".concat(y),hideLabelFromVision:d,help:f},Object(c.createElement)("div",{className:"components-combobox-control__suggestions-container",tabIndex:"-1",onKeyDown:function(e){var t=!1;switch(e.keyCode){case pr.ENTER:j&&(L(j),t=!0);break;case pr.UP:F(-1),t=!0;break;case pr.DOWN:F(1),t=!0;break;case pr.ESCAPE:C(!1),w(null),t=!0,e.stopPropagation()}t&&e.preventDefault()}},Object(c.createElement)(_t,null,Object(c.createElement)(kt,null,Object(c.createElement)(Za,{className:"components-combobox-control__input",instanceId:y,ref:I,value:x?M:N,onBlur:function(){C(!1)},onFocus:function(){C(!0),u(""),T("")},isExpanded:x,selectedSuggestionIndex:A.indexOf(j),onChange:function(e){var t=e.value;T(t),u(t),C(!0)}})),b&&Object(c.createElement)(Et,null,Object(c.createElement)(qr.a,{className:"components-combobox-control__reset",icon:qa.a,disabled:!r,onClick:function(){s(null),I.current.input.focus()},label:Object(S.__)("Reset")}))),x&&Object(c.createElement)(tc,{instanceId:y,match:{label:M},displayTransform:function(e){return e.label},suggestions:A,selectedIndex:A.indexOf(j),onHover:w,onSelect:L,scrollIntoView:!0})))},rc=n(43);var oc=n(28),ic=n.n(oc);n(200);function ac(e){return null!=e&&"object"==typeof e&&1===e.nodeType}function cc(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function sc(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return cc(n.overflowY,t)||cc(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function uc(e,t,n,r,o,i,a,c){return i<e&&a>t||i>e&&a<t?0:i<=e&&c<=n||a>=t&&c>=n?i-e-r:a>t&&c<n||i<e&&c>n?a-t+o:0}var lc=0;function dc(e,t){e&&function(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,c=t.skipOverflowHiddenElements,s="function"==typeof a?a:function(e){return e!==a};if(!ac(e))throw new TypeError("Invalid target");for(var u=document.scrollingElement||document.documentElement,l=[],d=e;ac(d)&&s(d);){if((d=d.parentNode)===u){l.push(d);break}d===document.body&&sc(d)&&!sc(document.documentElement)||sc(d,c)&&l.push(d)}for(var f=n.visualViewport?n.visualViewport.width:innerWidth,p=n.visualViewport?n.visualViewport.height:innerHeight,b=window.scrollX||pageXOffset,h=window.scrollY||pageYOffset,v=e.getBoundingClientRect(),m=v.height,y=v.width,g=v.top,O=v.right,j=v.bottom,w=v.left,k="start"===o||"nearest"===o?g:"end"===o?j:g+m/2,_="center"===i?w+y/2:"end"===i?O:w,S=[],E=0;E<l.length;E++){var x=l[E],C=x.getBoundingClientRect(),P=C.height,D=C.width,M=C.top,T=C.right,I=C.bottom,R=C.left;if("if-needed"===r&&g>=0&&w>=0&&j<=p&&O<=f&&g>=M&&j<=I&&w>=R&&O<=T)return S;var N=getComputedStyle(x),A=parseInt(N.borderLeftWidth,10),L=parseInt(N.borderTopWidth,10),F=parseInt(N.borderRightWidth,10),z=parseInt(N.borderBottomWidth,10),B=0,H=0,V="offsetWidth"in x?x.offsetWidth-x.clientWidth-A-F:0,K="offsetHeight"in x?x.offsetHeight-x.clientHeight-L-z:0;if(u===x)B="start"===o?k:"end"===o?k-p:"nearest"===o?uc(h,h+p,p,L,z,h+k,h+k+m,m):k-p/2,H="start"===i?_:"center"===i?_-f/2:"end"===i?_-f:uc(b,b+f,f,A,F,b+_,b+_+y,y),B=Math.max(0,B+h),H=Math.max(0,H+b);else{B="start"===o?k-M-L:"end"===o?k-I+z+K:"nearest"===o?uc(M,I,P,L,z+K,k,k+m,m):k-(M+P/2)+K/2,H="start"===i?_-R-A:"center"===i?_-(R+D/2)+V/2:"end"===i?_-T+F+V:uc(R,T,D,A,F+V,_,_+y,y);var W=x.scrollLeft,U=x.scrollTop;k+=U-(B=Math.max(0,Math.min(U+B,x.scrollHeight-P+K))),_+=W-(H=Math.max(0,Math.min(W+H,x.scrollWidth-D+V)))}S.push({el:x,top:B,left:H})}return S}(e,{boundary:t,block:"nearest",scrollMode:"if-needed"}).forEach((function(e){var t=e.el,n=e.top,r=e.left;t.scrollTop=n,t.scrollLeft=r}))}function fc(e,t){return e===t||e.contains&&e.contains(t)}function pc(e,t){var n;function r(){n&&clearTimeout(n)}function o(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];r(),n=setTimeout((function(){n=null,e.apply(void 0,i)}),t)}return o.cancel=r,o}function bc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.some((function(t){return t&&t.apply(void 0,[e].concat(r)),e.preventDownshiftDefault||e.hasOwnProperty("nativeEvent")&&e.nativeEvent.preventDownshiftDefault}))}}function hc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach((function(t){"function"==typeof t?t(e):t&&(t.current=e)}))}}function vc(){return String(lc++)}function mc(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?n+" result"+(1===n?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter key to select.":"":"No results are available.":""}function yc(e,t){return Object.keys(e).reduce((function(n,r){return n[r]=gc(t,r)?t[r]:e[r],n}),{})}function gc(e,t){return void 0!==e[t]}function Oc(e){var t=e.key,n=e.keyCode;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t}function jc(e,t,n,r,o){if(void 0===o&&(o=!0),0===n)return-1;var i=n-1;("number"!=typeof t||t<0||t>=n)&&(t=e>0?-1:i+1);var a=t+e;a<0?a=o?i:0:a>i&&(a=o?0:i);var c=wc(e,a,n,r,o);return-1===c?t>=n?-1:t:c}function wc(e,t,n,r,o){var i=r(t);if(!i||!i.hasAttribute("disabled"))return t;if(e>0){for(var a=t+1;a<n;a++)if(!r(a).hasAttribute("disabled"))return a}else for(var c=t-1;c>=0;c--)if(!r(c).hasAttribute("disabled"))return c;return o?e>0?wc(1,0,n,r,!1):wc(-1,n-1,n,r,!1):-1}function kc(e,t,n,r){return void 0===r&&(r=!0),t.some((function(t){return t&&(fc(t,e)||r&&fc(t,n.activeElement))}))}var _c=pc((function(){Ec().textContent=""}),500);function Sc(e,t){var n=Ec(t);e&&(n.textContent=e,_c())}function Ec(e){void 0===e&&(e=document);var t=e.getElementById("a11y-status-message");return t||((t=e.createElement("div")).setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}var xc={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function Cc(e,t,n){var r=e.props,i=e.type,a={};Object.keys(t).forEach((function(e){!function(e,t,n,r){var o="on"+Ic(e)+"Change";t[o]&&void 0!==r[e]&&r[e]!==n[e]&&t[o](r)}(e,r,t,n),n[e]!==t[e]&&(a[e]=n[e])})),r.onStateChange&&Object.keys(a).length&&r.onStateChange(Object(o.a)({type:i},a))}var Pc=pc((function(e,t){Sc(e(),t)}),200);function Dc(e){var t=e.id,n=e.labelId,r=e.menuId,o=e.getItemId,i=e.toggleButtonId,a=void 0===t?"downshift-"+vc():t;return{labelId:n||a+"-label",menuId:r||a+"-menu",getItemId:o||function(e){return a+"-item-"+e},toggleButtonId:i||a+"-toggle-button"}}function Mc(e,t,n){return void 0!==e?e:0===n.length?-1:n.indexOf(t)}function Tc(e){return/^\S{1}$/.test(e)}function Ic(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function Rc(e){var t=Object(v.useRef)(e);return t.current=e,t}function Nc(e,t,n){var r=Object(v.useRef)(),i=Object(v.useRef)(),a=Object(v.useCallback)((function(t,n){i.current=n,t=yc(t,n.props);var r=e(t,n);return n.props.stateReducer(t,Object(o.a)({},n,{changes:r}))}),[e]),c=Object(v.useReducer)(a,t),s=c[0],u=c[1],l=Rc(n),d=Object(v.useCallback)((function(e){return u(Object(o.a)({props:l.current},e))}),[l]),f=i.current;return Object(v.useEffect)((function(){f&&r.current&&r.current!==s&&Cc(f,yc(r.current,f.props),s),r.current=s}),[s,n,f]),[s,d]}function Ac(e,t,n){var r=Nc(e,t,n),o=r[0],i=r[1];return[yc(o,n),i]}var Lc={itemToString:function(e){return e?String(e):""},stateReducer:function(e,t){return t.changes},getA11ySelectionMessage:function(e){var t=e.selectedItem,n=e.itemToString;return t?n(t)+" has been selected.":""},scrollIntoView:dc,circularNavigation:!1,environment:"undefined"==typeof window?{}:window};function Fc(e,t,n){void 0===n&&(n=xc);var r="default"+Ic(t);return r in e?e[r]:n[t]}function zc(e,t,n){if(void 0===n&&(n=xc),t in e)return e[t];var r="initial"+Ic(t);return r in e?e[r]:Fc(e,t,n)}function Bc(e){var t=zc(e,"selectedItem"),n=zc(e,"isOpen"),r=zc(e,"highlightedIndex"),o=zc(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:o}}function Hc(e,t,n,r){var o=e.items,i=e.initialHighlightedIndex,a=e.defaultHighlightedIndex,c=t.selectedItem,s=t.highlightedIndex;return 0===o.length?-1:void 0!==i&&s===i?i:void 0!==a?a:c?0===n?o.indexOf(c):jc(n,o.indexOf(c),o.length,r,!1):0===n?-1:n<0?o.length-1:0}function Vc(e,t,n,r){var o=Object(v.useRef)({isMouseDown:!1,isTouchMove:!1});return Object(v.useEffect)((function(){var i=function(){o.current.isMouseDown=!0},a=function(i){o.current.isMouseDown=!1,e&&!kc(i.target,t.map((function(e){return e.current})),n.document)&&r()},c=function(){o.current.isTouchMove=!1},s=function(){o.current.isTouchMove=!0},u=function(i){!e||o.current.isTouchMove||kc(i.target,t.map((function(e){return e.current})),n.document,!1)||r()};return n.addEventListener("mousedown",i),n.addEventListener("mouseup",a),n.addEventListener("touchstart",c),n.addEventListener("touchmove",s),n.addEventListener("touchend",u),function(){n.removeEventListener("mousedown",i),n.removeEventListener("mouseup",a),n.removeEventListener("touchstart",c),n.removeEventListener("touchmove",s),n.removeEventListener("touchend",u)}}),[e,n]),o}function Kc(){for(var e=!1,t=Object(v.useRef)(!0),n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];var i=Object(v.useRef)(r.reduce((function(e,t){return e[t]={},e}),{}));Object(v.useEffect)((function(){e&&(Object.keys(i.current).forEach((function(e){var n=i.current[e];if(!t.current||Object.keys(n).length){var r=n.suppressRefError,o=n.refKey,a=n.elementRef;a&&a.current||r||console.error('downshift: The ref prop "'+o+'" from '+e+" was not applied correctly on your element.")}else console.error("downshift: You forgot to call the "+e+" getter function on your component / element.")})),t.current=!1)}));var a=Object(v.useCallback)((function(e,t,n,r){0}),[]);return a}function Wc(e,t,n,r,o){for(var i=n.map((function(e){return r(e).toLowerCase()})),a=e.toLowerCase(),c=function(e,t){var n=o(t);return e.startsWith(a)&&!(n&&n.hasAttribute("disabled"))},s=t+1;s<i.length;s++){if(c(i[s],s))return s}for(var u=0;u<t;u++){if(c(i[u],u))return u}return t}ic.a.array.isRequired,ic.a.func,ic.a.func,ic.a.func,ic.a.bool,ic.a.number,ic.a.number,ic.a.number,ic.a.bool,ic.a.bool,ic.a.bool,ic.a.any,ic.a.any,ic.a.any,ic.a.string,ic.a.string,ic.a.string,ic.a.func,ic.a.string,ic.a.func,ic.a.func,ic.a.func,ic.a.func,ic.a.func,ic.a.shape({addEventListener:ic.a.func,removeEventListener:ic.a.func,document:ic.a.shape({getElementById:ic.a.func,activeElement:ic.a.any,body:ic.a.any})});var Uc=Object(o.a)({},Lc,{getA11yStatusMessage:function(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?n+" result"+(1===n?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select.":"":"No results are available.":""}}),Gc=Object.freeze({__proto__:null,MenuKeyDownArrowDown:0,MenuKeyDownArrowUp:1,MenuKeyDownEscape:2,MenuKeyDownHome:3,MenuKeyDownEnd:4,MenuKeyDownEnter:5,MenuKeyDownSpaceButton:6,MenuKeyDownCharacter:7,MenuBlur:8,MenuMouseLeave:9,ItemMouseMove:10,ItemClick:11,ToggleButtonClick:12,ToggleButtonKeyDownArrowDown:13,ToggleButtonKeyDownArrowUp:14,ToggleButtonKeyDownCharacter:15,FunctionToggleMenu:16,FunctionOpenMenu:17,FunctionCloseMenu:18,FunctionSetHighlightedIndex:19,FunctionSelectItem:20,FunctionSetInputValue:21,FunctionReset:22});function $c(e,t){var n,r=t.type,i=t.props,a=t.shiftKey;switch(r){case 10:n={highlightedIndex:t.index};break;case 11:n={isOpen:Fc(i,"isOpen"),highlightedIndex:Fc(i,"highlightedIndex"),selectedItem:i.items[t.index]};break;case 15:var c=t.key,s=""+e.inputValue+c,u=Wc(s,e.selectedItem?i.items.indexOf(e.selectedItem):-1,i.items,i.itemToString,t.getItemNodeFromIndex);n=Object(o.a)({inputValue:s},u>=0&&{selectedItem:i.items[u]});break;case 13:n={highlightedIndex:Hc(i,e,1,t.getItemNodeFromIndex),isOpen:!0};break;case 14:n={highlightedIndex:Hc(i,e,-1,t.getItemNodeFromIndex),isOpen:!0};break;case 5:case 6:n=Object(o.a)({isOpen:Fc(i,"isOpen"),highlightedIndex:Fc(i,"highlightedIndex")},e.highlightedIndex>=0&&{selectedItem:i.items[e.highlightedIndex]});break;case 3:n={highlightedIndex:wc(1,0,i.items.length,t.getItemNodeFromIndex,!1)};break;case 4:n={highlightedIndex:wc(-1,i.items.length-1,i.items.length,t.getItemNodeFromIndex,!1)};break;case 2:case 8:n={isOpen:!1,highlightedIndex:-1};break;case 7:var l=t.key,d=""+e.inputValue+l,f=Wc(d,e.highlightedIndex,i.items,i.itemToString,t.getItemNodeFromIndex);n=Object(o.a)({inputValue:d},f>=0&&{highlightedIndex:f});break;case 0:n={highlightedIndex:jc(a?5:1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,i.circularNavigation)};break;case 1:n={highlightedIndex:jc(a?-5:-1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,i.circularNavigation)};break;case 9:n={highlightedIndex:-1};break;case 12:case 16:n={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:Hc(i,e,0)};break;case 17:n={isOpen:!0,highlightedIndex:Hc(i,e,0)};break;case 18:n={isOpen:!1};break;case 19:n={highlightedIndex:t.highlightedIndex};break;case 20:n={selectedItem:t.selectedItem};break;case 21:n={inputValue:t.inputValue};break;case 22:n={highlightedIndex:Fc(i,"highlightedIndex"),isOpen:Fc(i,"isOpen"),selectedItem:Fc(i,"selectedItem"),inputValue:Fc(i,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return Object(o.a)({},e,n)}function qc(e){void 0===e&&(e={});var t=Object(o.a)({},Uc,e),n=t.items,r=t.scrollIntoView,i=t.environment,a=t.initialIsOpen,c=t.defaultIsOpen,s=t.itemToString,u=t.getA11ySelectionMessage,l=t.getA11yStatusMessage,d=Ac($c,Bc(t),t),f=d[0],p=d[1],b=f.isOpen,h=f.highlightedIndex,m=f.selectedItem,y=f.inputValue,g=Object(v.useRef)(null),O=Object(v.useRef)(null),j=Object(v.useRef)();j.current={};var w=Object(v.useRef)(!0),k=Object(v.useRef)(!0),_=Object(v.useRef)(null),S=Object(v.useRef)(Dc(t)),E=Object(v.useRef)(),x=Object(v.useRef)(!0),C=Object(v.useRef)(t),P=Rc({state:f,props:t}),D=function(e){return j.current[S.current.getItemId(e)]};Object(v.useEffect)((function(){if(!x.current){var e=E.current;Pc((function(){return l({isOpen:b,highlightedIndex:h,selectedItem:m,inputValue:y,highlightedItem:n[h],resultCount:n.length,itemToString:s,previousResultCount:e})}),i.document)}}),[b,h,y,n]),Object(v.useEffect)((function(){if(!x.current){var e=E.current;Pc((function(){return u({isOpen:b,highlightedIndex:h,selectedItem:m,inputValue:y,highlightedItem:n[h],resultCount:n.length,itemToString:s,previousResultCount:e})}),i.document)}}),[m]),Object(v.useEffect)((function(){x.current&&(_.current=pc((function(e){e({type:21,inputValue:""})}),500)),y&&_.current(p)}),[y]),Object(v.useEffect)((function(){x.current?(a||c||b)&&O.current&&O.current.focus():b?O.current&&O.current.focus():i.document.activeElement===O.current&&g.current&&(k.current=!1,g.current.focus())}),[b]),Object(v.useEffect)((function(){h<0||!b||!Object.keys(j.current).length||(!1===w.current?w.current=!0:r(D(h),O.current))}),[h]),Object(v.useEffect)((function(){x.current||(E.current=n.length)})),Object(v.useEffect)((function(){x.current||(C.current,C.current=t)}),[f,t]);var M=Vc(b,[O,g],i,(function(){p({type:8})})),T=Kc("getMenuProps","getToggleButtonProps");Object(v.useEffect)((function(){x.current=!1}),[]);var I=Object(v.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),p({type:13,getItemNodeFromIndex:D,shiftKey:e.shiftKey})},ArrowUp:function(e){e.preventDefault(),p({type:14,getItemNodeFromIndex:D,shiftKey:e.shiftKey})}}}),[p]),R=Object(v.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),p({type:0,getItemNodeFromIndex:D,shiftKey:e.shiftKey})},ArrowUp:function(e){e.preventDefault(),p({type:1,getItemNodeFromIndex:D,shiftKey:e.shiftKey})},Home:function(e){e.preventDefault(),p({type:3,getItemNodeFromIndex:D})},End:function(e){e.preventDefault(),p({type:4,getItemNodeFromIndex:D})},Escape:function(){p({type:2})},Enter:function(e){e.preventDefault(),p({type:5})}," ":function(e){e.preventDefault(),p({type:6})}}}),[p]),N=Object(v.useCallback)((function(){p({type:16})}),[p]),A=Object(v.useCallback)((function(){p({type:18})}),[p]),L=Object(v.useCallback)((function(){p({type:17})}),[p]),F=Object(v.useCallback)((function(e){p({type:19,highlightedIndex:e})}),[p]),z=Object(v.useCallback)((function(e){p({type:20,selectedItem:e})}),[p]),B=Object(v.useCallback)((function(){p({type:22})}),[p]),H=Object(v.useCallback)((function(e){p({type:21,inputValue:e})}),[p]),V=Object(v.useCallback)((function(e){return Object(o.a)({id:S.current.labelId,htmlFor:S.current.toggleButtonId},e)}),[]),K=Object(v.useCallback)((function(e,t){var n,r=void 0===e?{}:e,i=r.onMouseLeave,a=r.refKey,c=void 0===a?"ref":a,s=r.onKeyDown,u=r.onBlur,l=r.ref,d=Object(rc.a)(r,["onMouseLeave","refKey","onKeyDown","onBlur","ref"]),f=(void 0===t?{}:t).suppressRefError,b=void 0!==f&&f,h=P.current.state;return T("getMenuProps",b,c,O),Object(o.a)(((n={})[c]=hc(l,(function(e){O.current=e})),n.id=S.current.menuId,n.role="listbox",n["aria-labelledby"]=S.current.labelId,n.tabIndex=-1,n),h.isOpen&&h.highlightedIndex>-1&&{"aria-activedescendant":S.current.getItemId(h.highlightedIndex)},{onMouseLeave:bc(i,(function(){p({type:9})})),onKeyDown:bc(s,(function(e){var t=Oc(e);t&&R[t]?R[t](e):Tc(t)&&p({type:7,key:t,getItemNodeFromIndex:D})})),onBlur:bc(u,(function(){!1!==k.current?!M.current.isMouseDown&&p({type:8}):k.current=!0}))},d)}),[p,P,R,M,T]);return{getToggleButtonProps:Object(v.useCallback)((function(e,t){var n,r=void 0===e?{}:e,i=r.onClick,a=r.onKeyDown,c=r.refKey,s=void 0===c?"ref":c,u=r.ref,l=Object(rc.a)(r,["onClick","onKeyDown","refKey","ref"]),d=(void 0===t?{}:t).suppressRefError,f=void 0!==d&&d,b=Object(o.a)(((n={})[s]=hc(u,(function(e){g.current=e})),n.id=S.current.toggleButtonId,n["aria-haspopup"]="listbox",n["aria-expanded"]=P.current.state.isOpen,n["aria-labelledby"]=S.current.labelId+" "+S.current.toggleButtonId,n),l);return l.disabled||(b.onClick=bc(i,(function(){p({type:12})})),b.onKeyDown=bc(a,(function(e){var t=Oc(e);t&&I[t]?I[t](e):Tc(t)&&p({type:15,key:t,getItemNodeFromIndex:D})}))),T("getToggleButtonProps",f,s,g),b}),[p,P,I,T]),getLabelProps:V,getMenuProps:K,getItemProps:Object(v.useCallback)((function(e){var t,n=void 0===e?{}:e,r=n.item,i=n.index,a=n.onMouseMove,c=n.onClick,s=n.refKey,u=void 0===s?"ref":s,l=n.ref,d=Object(rc.a)(n,["item","index","onMouseMove","onClick","refKey","ref"]),f=P.current,b=f.state,h=f.props,v=Mc(i,r,h.items);if(v<0)throw new Error("Pass either item or item index in getItemProps!");var m=Object(o.a)(((t={role:"option","aria-selected":""+(v===b.highlightedIndex),id:S.current.getItemId(v)})[u]=hc(l,(function(e){e&&(j.current[S.current.getItemId(v)]=e)})),t),d);return d.disabled||(m.onMouseMove=bc(a,(function(){i!==b.highlightedIndex&&(w.current=!1,p({type:10,index:i}))})),m.onClick=bc(c,(function(){p({type:11,index:i})}))),m}),[p,P]),toggleMenu:N,openMenu:L,closeMenu:A,setHighlightedIndex:F,selectItem:z,reset:B,setInputValue:H,highlightedIndex:h,isOpen:b,selectedItem:m,inputValue:y}}qc.stateChangeTypes=Gc;ic.a.array.isRequired,ic.a.func,ic.a.func,ic.a.func,ic.a.bool,ic.a.number,ic.a.number,ic.a.number,ic.a.bool,ic.a.bool,ic.a.bool,ic.a.any,ic.a.any,ic.a.any,ic.a.string,ic.a.string,ic.a.string,ic.a.string,ic.a.string,ic.a.string,ic.a.func,ic.a.string,ic.a.string,ic.a.func,ic.a.func,ic.a.func,ic.a.func,ic.a.func,ic.a.func,ic.a.shape({addEventListener:ic.a.func,removeEventListener:ic.a.func,document:ic.a.shape({getElementById:ic.a.func,activeElement:ic.a.any,body:ic.a.any})});Object(o.a)({},Lc,{getA11yStatusMessage:mc,circularNavigation:!0});ic.a.array,ic.a.array,ic.a.array,ic.a.func,ic.a.func,ic.a.func,ic.a.number,ic.a.number,ic.a.number,ic.a.func,ic.a.func,ic.a.string,ic.a.string,ic.a.shape({addEventListener:ic.a.func,removeEventListener:ic.a.func,document:ic.a.shape({getElementById:ic.a.func,activeElement:ic.a.any,body:ic.a.any})});var Yc=function(e){return e&&e.name},Zc=function(e,t){var n=e.selectedItem,r=t.type,o=t.changes,i=t.props.items;switch(r){case qc.stateChangeTypes.ToggleButtonKeyDownArrowDown:return{selectedItem:i[n?Math.min(i.indexOf(n)+1,i.length-1):0]};case qc.stateChangeTypes.ToggleButtonKeyDownArrowUp:return{selectedItem:i[n?Math.max(i.indexOf(n)-1,0):i.length-1]};default:return o}};function Xc(e){var t=e.className,n=e.hideLabelFromVision,r=e.label,i=e.options,a=e.onChange,s=e.value,u=qc({initialSelectedItem:i[0],items:i,itemToString:Yc,onSelectedItemChange:a,selectedItem:s,stateReducer:Zc}),d=u.getLabelProps,f=u.getToggleButtonProps,p=u.getMenuProps,b=u.getItemProps,h=u.isOpen,v=u.highlightedIndex,m=u.selectedItem,y=p({className:"components-custom-select-control__menu","aria-hidden":!h});return y["aria-activedescendant"]&&"downshift-null"===y["aria-activedescendant"].slice(0,"downshift-null".length)&&delete y["aria-activedescendant"],Object(c.createElement)("div",{className:l()("components-custom-select-control",t)},n?Object(c.createElement)(M,Object(o.a)({as:"label"},d()),r):Object(c.createElement)("label",d({className:"components-custom-select-control__label"}),r),Object(c.createElement)(qr.a,f({"aria-label":r,"aria-labelledby":void 0,className:"components-custom-select-control__button",isSmall:!0}),Yc(m),Object(c.createElement)(Qi.a,{icon:aa.a,className:"components-custom-select-control__button-icon"})),Object(c.createElement)("ul",y,h&&i.map((function(e,t){return Object(c.createElement)("li",b({item:e,index:t,key:e.key,className:l()(e.className,"components-custom-select-control__item",{"is-highlighted":t===v}),style:e.style}),e===m&&Object(c.createElement)(Qi.a,{icon:ea.a,className:"components-custom-select-control__item-icon"}),e.name)}))))}var Jc=n(151),Qc=(n(323),n(44)),es=n.n(Qc),ts=n(286),ns=n.n(ts);function rs(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ha.a)(e);if(t){var o=Object(ha.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ba.a)(this,n)}}var os=function(e){Object(pa.a)(n,e);var t=rs(n);function n(){var e;return Object(la.a)(this,n),(e=t.apply(this,arguments)).onChangeMoment=e.onChangeMoment.bind(Object(fa.a)(e)),e.nodeRef=Object(c.createRef)(),e.keepFocusInside=e.keepFocusInside.bind(Object(fa.a)(e)),e.isDayHighlighted=e.isDayHighlighted.bind(Object(fa.a)(e)),e}return Object(da.a)(n,[{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?es()(n):es()(),i={hours:o.hours(),minutes:o.minutes(),seconds:0};r(e.set(i).format("YYYY-MM-DDTHH:mm:ss"))}},{key:"getMomentDate",value:function(e){return null===e?null:e?es()(e):es()()}},{key:"isDayHighlighted",value:function(e){var t;return!!(null===(t=this.props.events)||void 0===t?void 0:t.length)&&(this.props.onMonthPreviewed&&this.props.onMonthPreviewed(e.toDate()),this.props.events.some((function(t){return e.isSame(t.date,"day")})))}},{key:"render",value:function(){var e=this.props,t=e.currentDate,n=e.isInvalidDate,r=this.getMomentDate(t);return Object(c.createElement)("div",{className:"components-datetime__date",ref:this.nodeRef},Object(c.createElement)(ns.a,{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())},isDayHighlighted:this.isDayHighlighted,onPrevMonthClick:this.keepFocusInside,onNextMonthClick:this.keepFocusInside}))}}]),n}(c.Component),is=n(75),as=function(){var e=Object(is.__experimentalGetSettings)().timezone,t=(new Date).getTimezoneOffset()/60*-1;if(Number(e.offset)===t)return null;var n=e.offset>=0?"+":"",r=""!==e.abbr&&isNaN(e.abbr)?e.abbr:"UTC".concat(n).concat(e.offset),o="UTC"===e.string?Object(S.__)("Coordinated Universal Time"):"(".concat(r,") ").concat(e.string.replace("_"," "));return Object(c.createElement)(C.a,{position:"top center",text:o},Object(c.createElement)("div",{className:"components-datetime__timezone"},r))};function cs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ss(e){var t=e.as,n=e.value,r=e.onUpdate,o=Object(a.a)(e,["as","value","onUpdate"]);return Object(c.createElement)(t||"input",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cs(Object(n),!0).forEach((function(t){Object(P.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({key:n,defaultValue:n,onBlur:function(e){var t=e.target;if(n!==t.value){var i=parseInt(t.value,10);!Object(s.isInteger)(i)||void 0!==o.max&&i>o.max||void 0!==o.min&&i<o.min?t.value=n:r(t.name,i)}}},o))}var us=function(e){var t=e.is12Hour,n=e.currentTime,r=e.onChange,o=Object(c.useState)((function(){return es()(n).startOf("minutes")})),a=Object(i.a)(o,2),s=a[0],u=a[1];Object(c.useEffect)((function(){u(es()(n).startOf("minutes"))}),[n]);var d=Object(c.useMemo)((function(){return{day:s.format("DD"),month:s.format("MM"),year:s.format("YYYY"),minutes:s.format("mm"),hours:s.format(t?"hh":"HH"),am:s.format("H")<=11?"AM":"PM"}}),[s,t]),f=d.day,p=d.month,b=d.year,h=d.minutes,v=d.hours,m=d.am;function y(e){u(e),r(e.format("YYYY-MM-DDTHH:mm:ss"))}function g(e,t){y(s.clone()[e](t))}function O(e){return function(){if(m!==e){var t=parseInt(v,10);y(s.clone().hours("PM"===e?(t%12+12)%24:t%12))}}}var j=Object(c.createElement)("div",{className:"components-datetime__time-field components-datetime__time-field-day"},Object(c.createElement)(ss,{"aria-label":Object(S.__)("Day"),className:"components-datetime__time-field-day-input",type:"number",name:"date",value:f,step:1,min:1,max:31,onUpdate:g})),w=Object(c.createElement)("div",{className:"components-datetime__time-field components-datetime__time-field-month"},Object(c.createElement)(ss,{as:"select","aria-label":Object(S.__)("Month"),className:"components-datetime__time-field-month-select",name:"month",value:p,onUpdate:function(e,t){return g(e,t-1)}},Object(c.createElement)("option",{value:"01"},Object(S.__)("January")),Object(c.createElement)("option",{value:"02"},Object(S.__)("February")),Object(c.createElement)("option",{value:"03"},Object(S.__)("March")),Object(c.createElement)("option",{value:"04"},Object(S.__)("April")),Object(c.createElement)("option",{value:"05"},Object(S.__)("May")),Object(c.createElement)("option",{value:"06"},Object(S.__)("June")),Object(c.createElement)("option",{value:"07"},Object(S.__)("July")),Object(c.createElement)("option",{value:"08"},Object(S.__)("August")),Object(c.createElement)("option",{value:"09"},Object(S.__)("September")),Object(c.createElement)("option",{value:"10"},Object(S.__)("October")),Object(c.createElement)("option",{value:"11"},Object(S.__)("November")),Object(c.createElement)("option",{value:"12"},Object(S.__)("December")))),k=t?Object(c.createElement)(c.Fragment,null,j,w):Object(c.createElement)(c.Fragment,null,w,j);return Object(c.createElement)("div",{className:l()("components-datetime__time")},Object(c.createElement)("fieldset",null,Object(c.createElement)("legend",{className:"components-datetime__time-legend invisible"},Object(S.__)("Date")),Object(c.createElement)("div",{className:"components-datetime__time-wrapper"},k,Object(c.createElement)("div",{className:"components-datetime__time-field components-datetime__time-field-year"},Object(c.createElement)(ss,{"aria-label":Object(S.__)("Year"),className:"components-datetime__time-field-year-input",type:"number",name:"year",step:1,min:0,max:9999,value:b,onUpdate:g})))),Object(c.createElement)("fieldset",null,Object(c.createElement)("legend",{className:"components-datetime__time-legend invisible"},Object(S.__)("Time")),Object(c.createElement)("div",{className:"components-datetime__time-wrapper"},Object(c.createElement)("div",{className:"components-datetime__time-field components-datetime__time-field-time"},Object(c.createElement)(ss,{"aria-label":Object(S.__)("Hours"),className:"components-datetime__time-field-hours-input",type:"number",name:"hours",step:1,min:t?1:0,max:t?12:23,value:v,onUpdate:g}),Object(c.createElement)("span",{className:"components-datetime__time-separator","aria-hidden":"true"},":"),Object(c.createElement)(ss,{"aria-label":Object(S.__)("Minutes"),className:"components-datetime__time-field-minutes-input",type:"number",name:"minutes",step:1,min:0,max:59,value:h,onUpdate:g})),t&&Object(c.createElement)(ji,{className:"components-datetime__time-field components-datetime__time-field-am-pm"},Object(c.createElement)(qr.a,{isPrimary:"AM"===m,isSecondary:"AM"!==m,onClick:O("AM"),className:"components-datetime__time-am-button"},Object(S.__)("AM")),Object(c.createElement)(qr.a,{isPrimary:"PM"===m,isSecondary:"PM"!==m,onClick:O("PM"),className:"components-datetime__time-pm-button"},Object(S.__)("PM"))),Object(c.createElement)(as,null))))};function ls(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ha.a)(e);if(t){var o=Object(ha.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ba.a)(this,n)}}var ds=function(e){Object(pa.a)(n,e);var t=ls(n);function n(){var e;return Object(la.a)(this,n),(e=t.apply(this,arguments)).state={calendarHelpIsVisible:!1},e.onClickDescriptionToggle=e.onClickDescriptionToggle.bind(Object(fa.a)(e)),e}return Object(da.a)(n,[{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.isInvalidDate,o=e.onMonthPreviewed,i=e.onChange,a=e.events;return Object(c.createElement)("div",{className:"components-datetime"},!this.state.calendarHelpIsVisible&&Object(c.createElement)(c.Fragment,null,Object(c.createElement)(us,{currentTime:t,onChange:i,is12Hour:n}),Object(c.createElement)(os,{currentDate:t,onChange:i,isInvalidDate:r,onMonthPreviewed:o,events:a})),this.state.calendarHelpIsVisible&&Object(c.createElement)(c.Fragment,null,Object(c.createElement)("div",{className:"components-datetime__calendar-help"},Object(c.createElement)("h4",null,Object(S.__)("Click to Select")),Object(c.createElement)("ul",null,Object(c.createElement)("li",null,Object(S.__)("Click the right or left arrows to select other months in the past or the future.")),Object(c.createElement)("li",null,Object(S.__)("Click the desired day to select it."))),Object(c.createElement)("h4",null,Object(S.__)("Navigating with a keyboard")),Object(c.createElement)("ul",null,Object(c.createElement)("li",null,Object(c.createElement)("abbr",{"aria-label":Object(S._x)("Enter","keyboard button")},"↵")," ",Object(c.createElement)("span",null,Object(S.__)("Select the date in focus."))),Object(c.createElement)("li",null,Object(c.createElement)("abbr",{"aria-label":Object(S.__)("Left and Right Arrows")},"←/→")," ",Object(S.__)("Move backward (left) or forward (right) by one day.")),Object(c.createElement)("li",null,Object(c.createElement)("abbr",{"aria-label":Object(S.__)("Up and Down Arrows")},"↑/↓")," ",Object(S.__)("Move backward (up) or forward (down) by one week.")),Object(c.createElement)("li",null,Object(c.createElement)("abbr",{"aria-label":Object(S.__)("Page Up and Page Down")},Object(S.__)("PgUp/PgDn"))," ",Object(S.__)("Move backward (PgUp) or forward (PgDn) by one month.")),Object(c.createElement)("li",null,Object(c.createElement)("abbr",{"aria-label":Object(S.__)("Home and End")},Object(S.__)("Home/End"))," ",Object(S.__)("Go to the first (home) or last (end) day of a week."))))),Object(c.createElement)("div",{className:"components-datetime__buttons"},!this.state.calendarHelpIsVisible&&t&&Object(c.createElement)(qr.a,{className:"components-datetime__date-reset-button",isLink:!0,onClick:function(){return i(null)}},Object(S.__)("Reset")),Object(c.createElement)(qr.a,{className:"components-datetime__date-help-toggle",isLink:!0,onClick:this.onClickDescriptionToggle},this.state.calendarHelpIsVisible?Object(S.__)("Close"):Object(S.__)("Calendar Help"))))}}]),n}(c.Component),fs=n(85),ps=je("select",{target:"e12x0a390",label:"Select"})("&&&{appearance:none;background:transparent;box-sizing:border-box;border:none;box-shadow:none !important;color:",Fe("black"),";display:block;margin:0;outline:none;width:100%;",(function(e){return e.disabled?le({color:Fe("ui.textDisabled")},""):""}),";",(function(e){var t={default:"13px",small:"11px"}[e.size];return t?le("font-size:","16px",";@media ( min-width:600px ){font-size:",t,";}"):""}),";",(function(e){var t=e.size,n={default:{height:30,lineHeight:1,minHeight:30},small:{height:24,lineHeight:1,minHeight:24}};return le(n[t]||n.default,"")}),";",nt({paddingLeft:8,paddingRight:24})(),"}"),bs=je("div",{target:"e12x0a391",label:"DownArrowWrapper"})("align-items:center;bottom:0;box-sizing:border-box;display:flex;padding:0 4px;pointer-events:none;position:absolute;top:0;",nt({right:0})()," svg{display:block;}");function hs(e,t){var n=e.className,r=e.disabled,u=void 0!==r&&r,d=e.help,f=e.hideLabelFromVision,p=e.id,b=e.label,h=e.multiple,v=void 0!==h&&h,m=e.onBlur,y=void 0===m?s.noop:m,g=e.onChange,O=void 0===g?s.noop:g,j=e.onFocus,w=void 0===j?s.noop:j,k=e.options,_=void 0===k?[]:k,S=e.size,x=void 0===S?"default":S,C=e.value,P=e.labelPosition,D=void 0===P?"top":P,M=Object(a.a)(e,["className","disabled","help","hideLabelFromVision","id","label","multiple","onBlur","onChange","onFocus","options","size","value","labelPosition"]),T=Object(c.useState)(!1),I=Object(i.a)(T,2),R=I[0],N=I[1],A=function(e){var t=Object(E.useInstanceId)(hs),n="inspector-select-control-".concat(t);return e||n}(p),L=d?"".concat(A,"__help"):void 0;if(Object(s.isEmpty)(_))return null;var F=l()("components-select-control",n);return Object(c.createElement)(yt,{help:d},Object(c.createElement)(_n,{className:F,disabled:u,hideLabelFromVision:f,id:A,isFocused:R,label:b,size:x,suffix:Object(c.createElement)(bs,null,Object(c.createElement)(Qi.a,{icon:aa.a,size:18})),labelPosition:D},Object(c.createElement)(ps,Object(o.a)({},M,{"aria-describedby":L,className:"components-select-control__input",disabled:u,id:A,multiple:v,onBlur:function(e){y(e),N(!1)},onChange:function(e){if(v){var t=Object(Gr.a)(e.target.options).filter((function(e){return e.selected})).map((function(e){return e.value}));O(t)}else O(e.target.value,{event:e})},onFocus:function(e){w(e),N(!0)},ref:t,size:x,value:C}),_.map((function(e,t){var n=e.id||"".concat(e.label,"-").concat(e.value,"-").concat(t);return Object(c.createElement)("option",{key:n,value:e.value,disabled:e.disabled},e.label)})))))}var vs=Object(c.forwardRef)(hs),ms=[{name:Object(S.__)("None"),slug:"none"},{name:Object(S.__)("Small"),slug:"small"},{name:Object(S.__)("Medium"),slug:"medium"},{name:Object(S.__)("Large"),slug:"large"},{name:Object(S.__)("Extra Large"),slug:"xlarge"}];var ys=function(e){var t,n,r=e.label,o=e.value,i=e.sizes,a=void 0===i?ms:i,u=e.icon,d=e.onChange,f=e.className,p=void 0===f?"":f,b=Object(c.createElement)(c.Fragment,null,u&&Object(c.createElement)(fs.a,{icon:u}),r);return Object(c.createElement)(vs,{className:l()(p,"block-editor-dimension-control"),label:b,hideLabelFromVision:!1,value:o,onChange:function(e){var t=function(e,t){return e.find((function(e){return t===e.slug}))}(a,e);t&&o!==t.slug?Object(s.isFunction)(d)&&d(t.slug):d(void 0)},options:(t=a,n=t.map((function(e){return{label:e.name,value:e.slug}})),[{label:Object(S.__)("Default"),value:""}].concat(n))})},gs=n(29),Os=Object(c.createContext)(!1),js=Os.Consumer,ws=Os.Provider,ks=["BUTTON","FIELDSET","INPUT","OPTGROUP","OPTION","SELECT","TEXTAREA"];function _s(e){var t=e.className,n=e.children,r=Object(a.a)(e,["className","children"]),i=Object(c.useRef)(),u=function(){gs.focus.focusable.find(i.current).forEach((function(e){Object(s.includes)(ks,e.nodeName)&&e.setAttribute("disabled",""),"A"===e.nodeName&&e.setAttribute("tabindex",-1);var t=e.getAttribute("tabindex");null!==t&&"-1"!==t&&e.removeAttribute("tabindex"),e.hasAttribute("contenteditable")&&e.setAttribute("contenteditable","false")}))},d=Object(c.useCallback)(Object(s.debounce)(u,{leading:!0}),[]);return Object(c.useLayoutEffect)((function(){u();var e=new window.MutationObserver(d);return e.observe(i.current,{childList:!0,attributes:!0,subtree:!0}),function(){e.disconnect(),d.cancel()}}),[]),Object(c.createElement)(ws,{value:!0},Object(c.createElement)("div",Object(o.a)({ref:i,className:l()(t,"components-disabled")},r),n))}_s.Consumer=js;var Ss=_s;function Es(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ha.a)(e);if(t){var o=Object(ha.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ba.a)(this,n)}}var xs=function(e){Object(pa.a)(n,e);var t=Es(n);function n(){var e;return Object(la.a)(this,n),(e=t.apply(this,arguments)).onDragStart=e.onDragStart.bind(Object(fa.a)(e)),e.onDragOver=e.onDragOver.bind(Object(fa.a)(e)),e.onDragEnd=e.onDragEnd.bind(Object(fa.a)(e)),e.resetDragState=e.resetDragState.bind(Object(fa.a)(e)),e.dragComponentRef=Object(c.createRef)(),e}return Object(da.a)(n,[{key:"componentWillUnmount",value:function(){this.resetDragState()}},{key:"onDragEnd",value:function(e){var t=this.props.onDragEnd,n=void 0===t?s.noop:t;e.preventDefault(),this.resetDragState(),e.persist(),this.props.setTimeout(n.bind(this,e))}},{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;var t=this.props.onDragOver,n=void 0===t?s.noop:t;this.props.setTimeout(n.bind(this,e))}},{key:"onDragStart",value:function(e){var t=this.props,n=t.cloneClassname,r=t.elementId,o=t.transferData,i=t.onDragStart,a=void 0===i?s.noop:i,c=document.getElementById(r);if(c){if("function"==typeof e.dataTransfer.setDragImage){var u=document.createElement("div");u.id="drag-image-".concat(r),u.classList.add("components-draggable__invisible-drag-image"),document.body.appendChild(u),e.dataTransfer.setDragImage(u,0,0),this.props.setTimeout((function(){document.body.removeChild(u)}))}e.dataTransfer.setData("text",JSON.stringify(o));var l=c.getBoundingClientRect(),d=c.parentNode,f=parseInt(l.top,10),p=parseInt(l.left,10);if(this.cloneWrapper=document.createElement("div"),this.cloneWrapper.classList.add("components-draggable__clone"),n&&this.cloneWrapper.classList.add(n),this.cloneWrapper.style.width="".concat(l.width+0,"px"),this.dragComponentRef.current){this.cloneWrapper.style.top="".concat(e.clientY,"px"),this.cloneWrapper.style.left="".concat(e.clientX,"px");var b=document.createElement("div");b.innerHTML=this.dragComponentRef.current.innerHTML,this.cloneWrapper.appendChild(b)}else{var h=c.cloneNode(!0);h.id="clone-".concat(r),l.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(f-0,"px"),this.cloneWrapper.style.left="".concat(p-0,"px")),Array.from(h.querySelectorAll("iframe")).forEach((function(e){return e.parentNode.removeChild(e)})),this.cloneWrapper.appendChild(h)}d.appendChild(this.cloneWrapper),this.cursorLeft=e.clientX,this.cursorTop=e.clientY,document.body.classList.add("is-dragging-components-draggable"),document.addEventListener("dragover",this.onDragOver),e.persist(),this.props.setTimeout(a.bind(this,e))}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),this.cursorLeft=null,this.cursorTop=null,document.body.classList.remove("is-dragging-components-draggable")}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.__experimentalDragComponent;return Object(c.createElement)(c.Fragment,null,t({onDraggableStart:this.onDragStart,onDraggableEnd:this.onDragEnd}),n&&Object(c.createElement)("div",{className:"components-draggable-drag-component-root",style:{display:"none"},ref:this.dragComponentRef},n))}}]),n}(c.Component),Cs=Object(E.withSafeTimeout)(xs),Ps=n(217),Ds=n(64),Ms=n.n(Ds);function Ts(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ha.a)(e);if(t){var o=Object(ha.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ba.a)(this,n)}}var Is=Object(c.createContext)({addDropZone:function(){},removeDropZone:function(){}}),Rs=Is.Provider,Ns=Is.Consumer,As=function(e){var t=e.dataTransfer;if(t){if(Object(s.includes)(t.types,"Files"))return"file";if(Object(s.includes)(t.types,"text/html"))return"html"}return"default"},Ls=function(e,t){return"file"===e&&t.onFilesDrop||"html"===e&&t.onHTMLDrop||"default"===e&&t.onDrop},Fs=function(e){Object(pa.a)(n,e);var t=Ts(n);function n(){var e;return Object(la.a)(this,n),(e=t.apply(this,arguments)).onDragOver=e.onDragOver.bind(Object(fa.a)(e)),e.onDrop=e.onDrop.bind(Object(fa.a)(e)),e.addDropZone=e.addDropZone.bind(Object(fa.a)(e)),e.removeDropZone=e.removeDropZone.bind(Object(fa.a)(e)),e.resetDragState=e.resetDragState.bind(Object(fa.a)(e)),e.toggleDraggingOverDocument=Object(s.throttle)(e.toggleDraggingOverDocument.bind(Object(fa.a)(e)),200),e.dropZones=[],e.dropZoneCallbacks={addDropZone:e.addDropZone,removeDropZone:e.removeDropZone},e.state={hoveredDropZone:-1,isDraggingOverDocument:!1,position:null},e.ref=Object(c.createRef)(),e}return Object(da.a)(n,[{key:"componentDidMount",value:function(){var e=this.ref.current.ownerDocument.defaultView;e.addEventListener("dragover",this.onDragOver),e.addEventListener("mouseup",this.resetDragState),e.addEventListener("dragend",this.resetDragState)}},{key:"componentWillUnmount",value:function(){var e=this.ref.current.ownerDocument.defaultView;e.removeEventListener("dragover",this.onDragOver),e.removeEventListener("mouseup",this.resetDragState),e.removeEventListener("dragend",this.resetDragState)}},{key:"addDropZone",value:function(e){this.dropZones.push(e)}},{key:"removeDropZone",value:function(e){this.dropZones=Object(s.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(s.filter)(this.dropZones,(function(e){return Ls(t,e)&&(n=e.element.current,o=r.clientX,i=r.clientY,(a=n.getBoundingClientRect()).bottom!==a.top&&a.left!==a.right&&o>=a.left&&o<=a.right&&i>=a.top&&i<=a.bottom);var n,o,i,a})),i=Object(s.find)(o,(function(e){var t=e.isRelative?e.element.current.parentElement:e.element.current;return!Object(s.some)(o,(function(n){return n!==e&&t.contains(n.element.current)}))})),a=this.dropZones.indexOf(i),c=null;i&&i.withPosition&&(c={x:r.clientX,y:r.clientY});var u=[];this.state.isDraggingOverDocument?a!==this.state.hoveredDropZone?(-1!==this.state.hoveredDropZone&&u.push(this.dropZones[this.state.hoveredDropZone]),i&&u.push(i)):i&&a===this.state.hoveredDropZone&&!Object(s.isEqual)(c,this.state.position)&&u.push(i):u=this.dropZones,u.forEach((function(e){var r=n.dropZones.indexOf(e)===a;e.setState({isDraggingOverDocument:Ls(t,e),isDraggingOverElement:r,position:r?c:null,type:r?t:null})}));var l={isDraggingOverDocument:!0,hoveredDropZone:a,position:c};Ms()(l,this.state)||this.setState(l)}},{key:"onDragOver",value:function(e){this.toggleDraggingOverDocument(e,As(e)),e.preventDefault()}},{key:"onDrop",value:function(e){e.dataTransfer&&e.dataTransfer.files.length;var t=this.state,n=t.position,r=t.hoveredDropZone,o=As(e),i=this.dropZones[r];if(this.resetDragState(),i)switch(o){case"file":i.onFilesDrop(Object(Gr.a)(e.dataTransfer.files),n);break;case"html":i.onHTMLDrop(e.dataTransfer.getData("text/html"),n);break;case"default":i.onDrop(e,n)}e.stopPropagation(),e.preventDefault()}},{key:"render",value:function(){return Object(c.createElement)("div",{ref:this.ref,onDrop:this.onDrop,className:"components-drop-zone__provider"},Object(c.createElement)(Rs,{value:this.dropZoneCallbacks},this.props.children))}}]),n}(c.Component);function zs(e){var t=e.element,n=e.onFilesDrop,r=e.onHTMLDrop,o=e.onDrop,a=e.isDisabled,s=e.withPosition,u=e.__unstableIsRelative,l=void 0!==u&&u,d=Object(c.useContext)(Is),f=d.addDropZone,p=d.removeDropZone,b=Object(c.useState)({isDraggingOverDocument:!1,isDraggingOverElement:!1,type:null}),h=Object(i.a)(b,2),v=h[0],m=h[1];return Object(c.useEffect)((function(){if(!a){var e={element:t,onDrop:o,onFilesDrop:n,onHTMLDrop:r,setState:m,withPosition:s,isRelative:l};return f(e),function(){p(e)}}}),[a,o,n,r,s]),v}function Bs(e){var t,n=e.className,r=e.label,o=e.onFilesDrop,i=e.onHTMLDrop,a=e.onDrop,s=Object(c.useRef)(),u=zs({element:s,onFilesDrop:o,onHTMLDrop:i,onDrop:a,__unstableIsRelative:!0}),d=u.isDraggingOverDocument,f=u.isDraggingOverElement,p=u.type;f&&(t=Object(c.createElement)("div",{className:"components-drop-zone__content"},Object(c.createElement)(Qi.a,{icon:Ps.a,className:"components-drop-zone__content-icon"}),Object(c.createElement)("span",{className:"components-drop-zone__content-text"},r||Object(S.__)("Drop files to upload"))));var b=l()("components-drop-zone",n,Object(P.a)({"is-active":(d||f)&&("file"===p&&o||"html"===p&&i||"default"===p&&a),"is-dragging-over-document":d,"is-dragging-over-element":f},"is-dragging-".concat(p),!!p));return Object(c.createElement)("div",{ref:s,className:b},t)}var Hs=function(e){return Object(c.createElement)(Ns,null,(function(t){var n=t.addDropZone,r=t.removeDropZone;return Object(c.createElement)(Bs,Object(o.a)({addDropZone:n,removeDropZone:r},e))}))},Vs=n(36),Ks=n.n(Vs);function Ws(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ha.a)(e);if(t){var o=Object(ha.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ba.a)(this,n)}}var Us=["menuitem","menuitemradio","menuitemcheckbox"];var Gs=function(e){Object(pa.a)(n,e);var t=Ws(n);function n(){var e;return Object(la.a)(this,n),(e=t.apply(this,arguments)).onKeyDown=e.onKeyDown.bind(Object(fa.a)(e)),e.bindContainer=e.bindContainer.bind(Object(fa.a)(e)),e.getFocusableContext=e.getFocusableContext.bind(Object(fa.a)(e)),e.getFocusableIndex=e.getFocusableIndex.bind(Object(fa.a)(e)),e}return Object(da.a)(n,[{key:"componentDidMount",value:function(){this.container.addEventListener("keydown",this.onKeyDown),this.container.addEventListener("focus",this.onFocus)}},{key:"componentWillUnmount",value:function(){this.container.removeEventListener("keydown",this.onKeyDown),this.container.removeEventListener("focus",this.onFocus)}},{key:"bindContainer",value:function(e){var t=this.props.forwardedRef;this.container=e,Object(s.isFunction)(t)?t(e):t&&"current"in t&&(t.current=e)}},{key:"getFocusableContext",value:function(e){var t=(this.props.onlyBrowserTabstops?gs.focus.tabbable:gs.focus.focusable).find(this.container),n=this.getFocusableIndex(t,e);return n>-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,i=n.eventToOffset,a=n.onNavigate,c=void 0===a?s.noop:a,u=n.stopNavigationEvents,l=i(e);if(void 0!==l&&u){e.stopImmediatePropagation();var d=e.target.getAttribute("role");Us.includes(d)&&e.preventDefault()}if(l){var f=t(e.target.ownerDocument.activeElement);if(f){var p=f.index,b=f.focusables,h=o?function(e,t,n){var r=e+n;return r<0?t+r:r>=t?r-t:r}(p,b.length,l):p+l;h>=0&&h<b.length&&(b[h].focus(),c(h,b[h]))}}}},{key:"render",value:function(){var e=this.props,t=e.children,n=Object(a.a)(e,["children"]);return Object(c.createElement)("div",Object(o.a)({ref:this.bindContainer},Object(s.omit)(n,["stopNavigationEvents","eventToOffset","onNavigate","onKeyDown","cycle","onlyBrowserTabstops","forwardedRef"])),t)}}]),n}(c.Component),$s=function(e,t){return Object(c.createElement)(Gs,Object(o.a)({},e,{forwardedRef:t}))};$s.displayName="NavigableContainer";var qs=Object(c.forwardRef)($s);var Ys=Object(c.forwardRef)((function(e,t){var n=e.role,r=void 0===n?"menu":n,i=e.orientation,u=void 0===i?"vertical":i,l=Object(a.a)(e,["role","orientation"]);return Object(c.createElement)(qs,Object(o.a)({ref:t,stopNavigationEvents:!0,onlyBrowserTabstops:!1,role:r,"aria-orientation":"presentation"===r?null:u,eventToOffset:function(e){var t=e.keyCode,n=[pr.DOWN],r=[pr.UP];return"horizontal"===u&&(n=[pr.RIGHT],r=[pr.LEFT]),"both"===u&&(n=[pr.RIGHT,pr.DOWN],r=[pr.LEFT,pr.UP]),Object(s.includes)(n,t)?1:Object(s.includes)(r,t)?-1:Object(s.includes)([pr.DOWN,pr.UP,pr.LEFT,pr.RIGHT],t)?0:void 0}},l))}));function Zs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zs(Object(n),!0).forEach((function(t){Object(P.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Js(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Xs(Xs({},e),t);return t.className&&e.className&&(n.className=l()(t.className,e.className)),n}var Qs=function(e){var t,n=e.children,r=e.className,i=e.controls,a=e.icon,u=void 0===a?"menu":a,d=e.label,f=e.popoverProps,p=e.toggleProps,b=e.menuProps,h=e.disableOpenOnArrowDown,v=void 0!==h&&h,m=e.menuLabel,y=e.position,g=e.noIcons;if(m&&Ks()("`menuLabel` prop in `DropdownComponent`",{alternative:"`menuProps` object and its `aria-label` property",plugin:"Gutenberg"}),y&&Ks()("`position` prop in `DropdownComponent`",{alternative:"`popoverProps` object and its `position` property",plugin:"Gutenberg"}),Object(s.isEmpty)(i)&&!Object(s.isFunction)(n))return null;Object(s.isEmpty)(i)||(t=i,Array.isArray(t[0])||(t=[t]));var O=Js({className:"components-dropdown-menu__popover",position:y},f);return Object(c.createElement)(sa,{className:l()("components-dropdown-menu",r),popoverProps:O,renderToggle:function(e){var t,n=e.isOpen,r=e.onToggle,i=Js({className:l()("components-dropdown-menu__toggle",{"is-opened":n})},p);return Object(c.createElement)(qr.a,Object(o.a)({},i,{icon:u,onClick:function(e){r(e),i.onClick&&i.onClick(e)},onKeyDown:function(e){!function(e){v||n||e.keyCode!==pr.DOWN||(e.preventDefault(),e.stopPropagation(),r())}(e),i.onKeyDown&&i.onKeyDown(e)},"aria-haspopup":"true","aria-expanded":n,label:d,showTooltip:null===(t=null==p?void 0:p.showTooltip)||void 0===t||t}),i.children)},renderContent:function(e){var r=Js({"aria-label":m||d,className:l()("components-dropdown-menu__menu",{"no-icons":g})},b);return Object(c.createElement)(Ys,Object(o.a)({},r,{role:"menu"}),Object(s.isFunction)(n)?n(e):null,Object(s.flatMap)(t,(function(t,n){return t.map((function(t,r){return Object(c.createElement)(qr.a,{key:[n,r].join(),onClick:function(n){n.stopPropagation(),e.onClose(),t.onClick&&t.onClick()},className:l()("components-dropdown-menu__menu-item",{"has-separator":n>0&&0===r,"is-active":t.isActive}),icon:t.icon,"aria-checked":"menuitemcheckbox"===t.role||"menuitemradio"===t.role?t.isActive:void 0,role:"menuitemcheckbox"===t.role||"menuitemradio"===t.role?t.role:"menuitem",disabled:t.isDisabled},t.title)}))})))}})},eu=n(427);var tu=je(Qi.a,{target:"etxm6pv0",label:"StyledIcon"})({name:"i8uvf3",styles:"width:1.4em;height:1.4em;margin:-0.2em 0.1em 0;vertical-align:middle;fill:currentColor;"});var nu=Object(c.forwardRef)((function(e,t){var n=e.href,r=e.children,i=e.className,u=e.rel,d=void 0===u?"":u,f=Object(a.a)(e,["href","children","className","rel"]);d=Object(s.uniq)(Object(s.compact)([].concat(Object(Gr.a)(d.split(" ")),["external","noreferrer","noopener"]))).join(" ");var p=l()("components-external-link",i);return Object(c.createElement)("a",Object(o.a)({},f,{className:p,href:n,target:"_blank",rel:d,ref:t}),r,Object(c.createElement)(M,{as:"span"},Object(S.__)("(opens in a new tab)")),Object(c.createElement)(tu,{icon:eu.a,className:"components-external-link__icon"}))})),ru=n(113);var ou=je("div",{target:"e11wezi70",label:"MediaWrapper"})({name:"4wwkjz",styles:"background-color:transparent;box-sizing:border-box;text-align:center;width:100%;"}),iu=je("div",{target:"e11wezi71",label:"MediaContainer"})({name:"1q0l1fq",styles:"align-items:center;box-sizing:border-box;box-shadow:0 0 0 1px rgba( 0,0,0,0.2 );cursor:pointer;display:inline-flex;justify-content:center;margin:auto;position:relative;height:100%;img,video{box-sizing:border-box;display:block;height:auto;margin:0;max-height:100%;max-width:100%;pointer-events:none;user-select:none;width:auto;}"}),au=je("div",{target:"e11wezi72",label:"MediaPlaceholder"})("background:",Fe("lightGray.300"),";box-sizing:border-box;height:170px;max-width:280px;min-width:200px;width:100%;"),cu=je(go,{target:"e11wezi73",label:"UnitControl"})({name:"v7v99c",styles:"width:100px;"}),su=je(St,{target:"e11wezi74",label:"ControlWrapper"})({name:"lqoi1w",styles:"max-width:320px;padding:1em 0;"}),uu=je("div",{target:"e11wezi75",label:"GridView"})("box-sizing:border-box;left:50%;opacity:0;overflow:hidden;pointer-events:none;position:absolute;top:50%;transform:translate3d( -50%,-50%,0 );transition:opacity 120ms linear;z-index:1;",(function(e){return e.isActive&&"\n\t\topacity: 1;\n\t"}),""),lu=je("div",{target:"e11wezi76",label:"GridLine"})({name:"18dz4sk",styles:"box-sizing:border-box;background:white;box-shadow:0 0 2px rgba( 0,0,0,0.6 );position:absolute;opacity:0.4;transform:translateZ( 0 );"}),du=je(lu,{target:"e11wezi77",label:"GridLineX"})({name:"1u4twh6",styles:"height:1px;left:0;right:0;"}),fu=je(lu,{target:"e11wezi78",label:"GridLineY"})({name:"13gvipf",styles:"width:1px;top:0;bottom:0;"}),pu={top:0,left:0,bottom:0,right:0,width:0,height:0},bu=["avi","mpg","mpeg","mov","mp4","m4v","ogg","ogv","webm","wmv"];function hu(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split(".");return t[t.length-1]}function vu(e){return Math.round(100*e)}function mu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mu(Object(n),!0).forEach((function(t){Object(P.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gu(e){var t=e.onChange,n=void 0===t?s.noop:t,r=e.percentages,o=void 0===r?{x:.5,y:.5}:r,i=vu(o.x),a=vu(o.y);return Object(c.createElement)(su,{className:"focal-point-picker__controls"},Object(c.createElement)(Ou,{label:Object(S.__)("Left"),value:i,onChange:function(e){n(yu(yu({},o),{},{x:parseInt(e)/100}))},dragDirection:"e"}),Object(c.createElement)(Ou,{label:Object(S.__)("Top"),value:a,onChange:function(e){n(yu(yu({},o),{},{y:parseInt(e)/100}))},dragDirection:"s"}))}function Ou(e){return Object(c.createElement)(cu,Object(o.a)({className:"focal-point-picker__controls-position-unit-control",labelPosition:"side",max:100,min:0,unit:"%",units:[{value:"%",label:"%"}]},e))}var ju=je("div",{target:"eas61re0",label:"FocalPointWrapper"})({name:"1frwh1y",styles:"background-color:transparent;box-sizing:border-box;cursor:grab;height:30px;margin:-15px 0 0 -15px;opacity:0.8;position:absolute;user-select:none;width:30px;will-change:transform;z-index:10000;&.is-dragging{cursor:grabbing;}"}),wu=je(r.SVG,{target:"eas61re1",label:"PointerIconSVG"})({name:"1fp1hff",styles:"display:block;height:100%;left:0;position:absolute;top:0;width:100%;"}),ku=je(r.Path,{target:"eas61re2",label:"PointerIconPathOutline"})({name:"j4aqsr",styles:"fill:white;"}),_u=je(r.Path,{target:"eas61re3",label:"PointerIconPathFill"})("fill:",Fe("blue.wordpress.700"),";fill:",Fe("ui.theme"),";");function Su(e){var t=e.coordinates,n=void 0===t?{left:"50%",top:"50%"}:t,r=e.isDragging,i=void 0!==r&&r,s=Object(a.a)(e,["coordinates","isDragging"]),u=l()("components-focal-point-picker__icon_container",i&&"is-dragging"),d={left:n.left,top:n.top};return Object(c.createElement)(ju,Object(o.a)({},s,{className:u,style:d}),Object(c.createElement)(wu,{className:"components-focal-point-picker__icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30 30"},Object(c.createElement)(ku,{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(c.createElement)(_u,{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"})))}var Eu=window,xu=Eu.clearTimeout,Cu=Eu.setTimeout;function Pu(e){var t=e.bounds,n=void 0===t?{}:t,r=e.value,s=Object(a.a)(e,["bounds","value"]),u=function(e){var t=Object(c.useState)(!1),n=Object(i.a)(t,2),r=n[0],o=n[1];return Er((function(){o(!0);var e=Cu((function(){o(!1)}),600);return function(){return xu(e)}}),[e]),{isActive:r}}(r),l={width:n.width,height:n.height};return Object(c.createElement)(uu,Object(o.a)({},s,u,{className:"components-focal-point-picker__grid",style:l}),Object(c.createElement)(du,{style:{top:"33%"}}),Object(c.createElement)(du,{style:{top:"66%"}}),Object(c.createElement)(fu,{style:{left:"33%"}}),Object(c.createElement)(fu,{style:{left:"66%"}}))}function Du(e){var t=e.alt,n=e.autoPlay,r=e.src,i=e.onLoad,u=void 0===i?s.noop:i,l=e.mediaRef,d=e.muted,f=void 0===d||d,p=Object(a.a)(e,["alt","autoPlay","src","onLoad","mediaRef","muted"]);return r?function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!!e&&bu.includes(hu(e))}(r)?Object(c.createElement)("video",Object(o.a)({},p,{autoPlay:n,className:"components-focal-point-picker__media components-focal-point-picker__media--video",loop:!0,muted:f,onLoadedData:u,ref:l,src:r})):Object(c.createElement)("img",Object(o.a)({},p,{alt:t,className:"components-focal-point-picker__media components-focal-point-picker__media--image",onLoad:u,ref:l,src:r})):Object(c.createElement)(Mu,{className:"components-focal-point-picker__media components-focal-point-picker__media--placeholder",onLoad:u,mediaRef:l})}function Mu(e){var t=e.mediaRef,n=e.onLoad,r=void 0===n?s.noop:n,i=Object(a.a)(e,["mediaRef","onLoad"]),u=Object(c.useRef)(r);return Object(c.useLayoutEffect)((function(){window.requestAnimationFrame((function(){u.current()}))}),[]),Object(c.createElement)(au,Object(o.a)({ref:t},i))}function Tu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ha.a)(e);if(t){var o=Object(ha.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ba.a)(this,n)}}var Iu=function(e){Object(pa.a)(n,e);var t=Tu(n);function n(e){var r;return Object(la.a)(this,n),(r=t.apply(this,arguments)).state={isDragging:!1,bounds:pu,percentages:e.value},r.containerRef=Object(c.createRef)(),r.mediaRef=Object(c.createRef)(),r.handleOnClick=r.handleOnClick.bind(Object(fa.a)(r)),r.handleOnMouseUp=r.handleOnMouseUp.bind(Object(fa.a)(r)),r.handleOnKeyDown=r.handleOnKeyDown.bind(Object(fa.a)(r)),r.onMouseMove=r.onMouseMove.bind(Object(fa.a)(r)),r.updateBounds=r.updateBounds.bind(Object(fa.a)(r)),r.updateValue=r.updateValue.bind(Object(fa.a)(r)),r}return Object(da.a)(n,[{key:"componentDidMount",value:function(){document.addEventListener("mouseup",this.handleOnMouseUp),window.addEventListener("resize",this.updateBounds)}},{key:"componentDidUpdate",value:function(e){e.url!==this.props.url&&this.setState({isDragging:!1}),this.props.value.x===this.state.percentages.x&&this.props.value.y===this.state.percentages.y||this.setState({percentages:this.props.value})}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mouseup",this.handleOnMouseUp),window.removeEventListener("resize",this.updateBounds)}},{key:"calculateBounds",value:function(){var e=pu;if(!this.mediaRef.current)return e;var t=this.mediaRef.current.clientWidth,n=this.mediaRef.current.clientHeight,r=this.pickerDimensions(),o=r.width/t,i=r.height/n;return i>=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*i,e.left=(r.width-e.width)/2,e.right=e.left+e.width),e}},{key:"updateValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.props.onChange,n=e.x,r=e.y,o={x:parseFloat(n).toFixed(2),y:parseFloat(r).toFixed(2)};this.setState({percentages:o},(function(){t(o)}))}},{key:"updateBounds",value:function(){this.setState({bounds:this.calculateBounds()})}},{key:"handleOnClick",value:function(e){var t=this;e.persist(),this.setState({isDragging:!0},(function(){t.onMouseMove(e)}))}},{key:"handleOnMouseUp",value:function(){this.setState({isDragging:!1})}},{key:"handleOnKeyDown",value:function(e){var t=e.keyCode,n=e.shiftKey;if([pr.UP,pr.DOWN,pr.LEFT,pr.RIGHT].includes(t)){var r=this.state.percentages,o=r.x,i=r.y;e.preventDefault();var a=parseFloat(o),c=parseFloat(i),s=n?.1:.01;switch(e.keyCode){case pr.UP:c-=s;break;case pr.DOWN:c+=s;break;case pr.LEFT:a-=s;break;case pr.RIGHT:a+=s}var u={x:a=Ar(a,0,1,s),y:c=Ar(c,0,1,s)};this.updateValue(u)}}},{key:"onMouseMove",value:function(e){var t=this.state,n=t.isDragging,r=t.bounds;if(n){var o=e.shiftKey,i=this.pickerDimensions(),a={left:e.pageX-i.left,top:e.pageY-i.top},c=Math.max(r.left,Math.min(a.left,r.right)),s=Math.max(r.top,Math.min(a.top,r.bottom)),u=(c-r.left)/(i.width-2*r.left),l=(s-r.top)/(i.height-2*r.top),d=o?.1:.01,f={x:u=Ar(u,0,1,d),y:l=Ar(l,0,1,d)};this.updateValue(f)}}},{key:"pickerDimensions",value:function(){var e=this.containerRef.current;if(!e)return{width:0,height:0,left:0,top:0};var t=e.clientHeight,n=e.clientWidth,r=e.getBoundingClientRect(),o=r.top,i=r.left;return{width:n,height:t,top:o+document.body.scrollTop,left:i}}},{key:"iconCoordinates",value:function(){var e=this.props.value,t=this.state.bounds;if(void 0===t.left||void 0===t.top)return{left:"50%",top:"50%"};var n=this.pickerDimensions(),r={left:e.x*(n.width-2*t.left)+t.left,top:e.y*(n.height-2*t.top)+t.top};return r}},{key:"handleFocusOutside",value:function(){this.setState({isDragging:!1})}},{key:"render",value:function(){var e=this,t=this.props,n=t.autoPlay,r=t.className,o=t.help,i=t.instanceId,a=t.label,s=t.onDragStart,u=t.onDragEnd,d=t.url,f=this.state,p=f.bounds,b=f.isDragging,h=f.percentages,v=this.iconCoordinates(),m=l()("components-focal-point-picker-control",r),y="inspector-focal-point-picker-control-".concat(i);return Object(c.createElement)(yt,{label:a,id:y,help:o,className:m},Object(c.createElement)(ou,{className:"components-focal-point-picker-wrapper"},Object(c.createElement)(iu,{className:"components-focal-point-picker",onDragStart:function(t){e.setState({isDragging:!0}),s(t)},onDrop:function(t){e.setState({isDragging:!1}),u(t)},onKeyDown:this.handleOnKeyDown,onMouseDown:this.handleOnClick,onMouseMove:this.onMouseMove,onMouseUp:this.handleOnMouseUp,ref:this.containerRef,role:"button",tabIndex:"-1"},Object(c.createElement)(Pu,{bounds:p,value:h.x+h.y}),Object(c.createElement)(Du,{alt:Object(S.__)("Media preview"),autoPlay:n,mediaRef:this.mediaRef,onLoad:this.updateBounds,src:d}),Object(c.createElement)(Su,{coordinates:v,isDragging:b}))),Object(c.createElement)(gu,{percentages:h,onChange:this.updateValue}))}}]),n}(c.Component);Iu.defaultProps={autoPlay:!0,onDragStart:s.noop,onDragEnd:s.noop,onChange:s.noop,value:{x:.5,y:.5},url:null};var Ru=Object(E.compose)([E.withInstanceId,ru.a])(Iu);function Nu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ha.a)(e);if(t){var o=Object(ha.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ba.a)(this,n)}}var Au=window.FocusEvent,Lu=function(e){Object(pa.a)(n,e);var t=Nu(n);function n(e){var r;return Object(la.a)(this,n),(r=t.apply(this,arguments)).checkFocus=r.checkFocus.bind(Object(fa.a)(r)),r.node=e.iframeRef||Object(c.createRef)(),r}return Object(da.a)(n,[{key:"checkFocus",value:function(){var e=this.node.current;if(e.ownerDocument.activeElement===e){var t=new Au("focus",{bubbles:!0});e.dispatchEvent(t);var n=this.props.onFocus;n&&n(t)}}},{key:"render",value:function(){return Object(c.createElement)("iframe",Object(o.a)({ref:this.node},Object(s.omit)(this.props,["iframeRef","onFocus"])))}}]),n}(c.Component),Fu=Object(E.withGlobalEvents)({blur:"checkFocus"})(Lu),zu=n(428);function Bu(e,t,n){return"number"!=typeof e?null:parseFloat(Object(s.clamp)(e,t,n))}var Hu={name:"tdik1c",styles:"height:30px;min-height:30px;"},Vu=function(){return Hu},Ku=je("span",{target:"exqw8y20",label:"Root"})({name:"1916452",styles:"-webkit-tap-highlight-color:transparent;box-sizing:border-box;cursor:pointer;align-items:flex-start;display:inline-flex;justify-content:flex-start;padding:0;position:relative;touch-action:none;width:100%;"}),Wu=je("span",{target:"exqw8y21",label:"Wrapper"})("box-sizing:border-box;color:",Fe("blue.medium.focus"),";display:block;flex:1;padding-top:15px;position:relative;width:100%;",(function(e){var t=e.color,n=void 0===t?Fe("ui.borderFocus"):t;return le({color:n},"")}),";",Vu,";",(function(e){var t=e.marks;return le({marginBottom:t?16:null},"")}),";",nt({marginLeft:10}),""),Uu=je("span",{target:"exqw8y22",label:"BeforeIconWrapper"})("margin-top:3px;",nt({marginRight:6}),""),Gu=je("span",{target:"exqw8y23",label:"AfterIconWrapper"})("margin-top:3px;",nt({marginLeft:16}),""),$u=je("span",{target:"exqw8y24",label:"Rail"})("background-color:",Fe("lightGray.600"),";box-sizing:border-box;left:0;pointer-events:none;right:0;display:block;height:3px;position:absolute;margin-top:14px;top:0;",(function(e){var t=e.disabled,n=e.railColor||null;return t&&(n=Fe("lightGray.400")),le({background:n},"")}),";"),qu=je("span",{target:"exqw8y25",label:"Track"})("background-color:currentColor;border-radius:1px;box-sizing:border-box;height:3px;pointer-events:none;display:block;position:absolute;margin-top:14px;top:0;",(function(e){var t=e.disabled,n=e.trackColor||"currentColor";return t&&(n=Fe("lightGray.800")),le({background:n},"")}),";"),Yu=je("span",{target:"exqw8y26",label:"MarksWrapper"})({name:"sx8y8z",styles:"box-sizing:border-box;display:block;position:relative;width:100%;user-select:none;"}),Zu=je("span",{target:"exqw8y27",label:"Mark"})("box-sizing:border-box;height:9px;left:0;position:absolute;top:-4px;width:1px;",(function(e){var t=e.disabled,n=e.isFilled?"currentColor":Fe("lightGray.600");return t&&(n=Fe("lightGray.800")),le({backgroundColor:n},"")}),";"),Xu=je("span",{target:"exqw8y28",label:"MarkLabel"})("box-sizing:border-box;color:",Fe("lightGray.600"),";left:0;font-size:11px;position:absolute;top:12px;transform:translateX( -50% );white-space:nowrap;",(function(e){var t=e.isFilled;return le({color:Fe(t?"darkGray.300":"lightGray.600")},"")}),";"),Ju=je("span",{target:"exqw8y29",label:"ThumbWrapper"})("align-items:center;box-sizing:border-box;display:flex;height:20px;justify-content:center;margin-top:5px;outline:0;pointer-events:none;position:absolute;top:0;user-select:none;width:20px;",nt({marginLeft:-10}),""),Qu=je("span",{target:"exqw8y210",label:"Thumb"})("align-items:center;background-color:white;border-radius:50%;border:1px solid ",Fe("darkGray.200"),";box-sizing:border-box;height:100%;outline:0;pointer-events:none;position:absolute;user-select:none;width:100%;",(function(e){var t=e.isFocused;return le({borderColor:Fe(t?"ui.borderFocus":"darkGray.200"),boxShadow:t?"\n\t\t\t\t0 0 0 1px ".concat(Fe("ui.borderFocus"),"\n\t\t\t"):"\n\t\t\t\t0 0 0 rgba(0, 0, 0, 0)\n\t\t\t"},"")}),";"),el=je("input",{target:"exqw8y211",label:"InputRange"})({name:"cvc9dl",styles:"box-sizing:border-box;cursor:pointer;display:block;height:100%;left:0;margin:0;opacity:0;outline:none;position:absolute;right:0;top:0;width:100%;"}),tl={name:"5qqmyx",styles:"top:-80%;"},nl={name:"eda4eg",styles:"bottom:-80%;"},rl=je("span",{target:"exqw8y212",label:"Tooltip"})("background:",Fe("ui.border"),";border-radius:2px;box-sizing:border-box;color:white;display:inline-block;font-size:12px;min-width:32px;opacity:0;padding:4px 8px;pointer-events:none;position:absolute;text-align:center;transition:opacity 120ms ease;user-select:none;line-height:1.4;",(function(e){var t=e.show;return le({opacity:t?1:0},"")}),";",(function(e){return"top"===e.position?tl:nl}),";",ze("transition"),";",nt({transform:"translateX(-50%)"},{transform:"translateX(50%)"}),""),ol=je(Fr,{target:"exqw8y213",label:"InputNumber"})("box-sizing:border-box;display:inline-block;font-size:13px;margin-top:0;width:",ft(8),";input[type='number']&{",Vu,";}",nt({marginLeft:ft(2)}),""),il=je("span",{target:"exqw8y214",label:"ActionRightWrapper"})("box-sizing:border-box;display:block;margin-top:0;button,button.is-small{margin-left:0;",Vu,";}",nt({marginLeft:8}),"");var al=Object(c.forwardRef)((function(e,t){var n=e.describedBy,r=e.isShiftStepEnabled,u=void 0===r||r,l=e.label,d=e.onHideTooltip,f=void 0===d?s.noop:d,p=e.onMouseLeave,b=void 0===p?s.noop:p,h=e.step,v=void 0===h?1:h,m=e.onBlur,y=void 0===m?s.noop:m,g=e.onChange,O=void 0===g?s.noop:g,j=e.onFocus,w=void 0===j?s.noop:j,k=e.onMouseMove,_=void 0===k?s.noop:k,S=e.onShowTooltip,E=void 0===S?s.noop:S,x=e.shiftStep,C=void 0===x?10:x,P=e.value,D=Object(a.a)(e,["describedBy","isShiftStepEnabled","label","onHideTooltip","onMouseLeave","step","onBlur","onChange","onFocus","onMouseMove","onShowTooltip","shiftStep","value"]),M=Lr({step:v,shiftStep:C,isShiftStepEnabled:u}),T=function(e){var t=e.onHide,n=void 0===t?s.noop:t,r=e.onMouseLeave,o=void 0===r?s.noop:r,a=e.onMouseMove,u=void 0===a?s.noop:a,l=e.onShow,d=void 0===l?s.noop:l,f=e.timeout,p=void 0===f?300:f,b=Object(c.useState)(!1),h=Object(i.a)(b,2),v=h[0],m=h[1],y=Object(c.useRef)(),g=Object(c.useCallback)((function(e){window.clearTimeout(y.current),y.current=setTimeout(e,p)}),[p]),O=Object(c.useCallback)((function(e){u(e),g((function(){v||(m(!0),d())}))}),[]),j=Object(c.useCallback)((function(e){o(e),g((function(){m(!1),n()}))}),[]);return Object(c.useEffect)((function(){return function(){window.clearTimeout(y.current)}})),{onMouseMove:O,onMouseLeave:j}}({onHide:f,onMouseLeave:b,onMouseMove:_,onShow:E});return Object(c.createElement)(el,Object(o.a)({},D,T,{"aria-describedby":n,"aria-label":l,"aria-hidden":!1,onBlur:y,onChange:O,onFocus:w,ref:t,step:M,tabIndex:0,type:"range",value:P}))}));function cl(e){var t=e.className,n=e.isFilled,r=void 0!==n&&n,i=e.label,s=e.style,u=void 0===s?{}:s,d=Object(a.a)(e,["className","isFilled","label","style"]),f=l()("components-range-control__mark",r&&"is-filled",t),p=l()("components-range-control__mark-label",r&&"is-filled");return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(Zu,Object(o.a)({},d,{"aria-hidden":"true",className:f,isFilled:r,style:u})),i&&Object(c.createElement)(Xu,{"aria-hidden":"true",className:p,isFilled:r,style:u},i))}function sl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ul(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sl(Object(n),!0).forEach((function(t){Object(P.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ll(e){var t=e.disabled,n=void 0!==t&&t,r=e.marks,i=void 0!==r&&r,s=e.min,u=void 0===s?0:s,l=e.max,d=void 0===l?100:l,f=e.step,p=void 0===f?1:f,b=e.value,h=void 0===b?0:b,v=Object(a.a)(e,["disabled","marks","min","max","step","value"]);return Object(c.createElement)(c.Fragment,null,Object(c.createElement)($u,Object(o.a)({disabled:n},v)),i&&Object(c.createElement)(dl,{disabled:n,marks:i,min:u,max:d,step:p,value:h}))}function dl(e){var t=e.disabled,n=void 0!==t&&t,r=e.marks,i=void 0!==r&&r,a=e.min,s=void 0===a?0:a,u=e.max,l=void 0===u?100:u,d=e.step,f=void 0===d?1:d,p=e.value,b=function(e){var t=e.marks,n=e.min,r=void 0===n?0:n,o=e.max,i=void 0===o?100:o,a=e.step,c=void 0===a?1:a,s=e.value,u=void 0===s?0:s,l="rtl"===document.documentElement.dir;if(!t)return[];var d=Array.isArray(t),f=Math.round((i-r)/c);return(d?t:Object(Gr.a)(Array(f+1)).map((function(e,t){return{value:t}}))).map((function(e,t){var n=void 0!==e.value?e.value:u,o="mark-".concat(t),i=n*c+r<=u,a="".concat(n/f*100,"%"),s=Object(P.a)({},l?"right":"left",a);return ul(ul({},e),{},{isFilled:i,key:o,style:s})}))}({marks:i,min:s,max:l,step:f,value:void 0===p?0:p});return Object(c.createElement)(Yu,{"aria-hidden":"true",className:"components-range-control__marks"},b.map((function(e){return Object(c.createElement)(cl,Object(o.a)({},e,{key:e.key,"aria-hidden":"true",disabled:n}))})))}function fl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fl(Object(n),!0).forEach((function(t){Object(P.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bl(e){var t=e.className,n=e.inputRef,r=e.position,s=void 0===r?"auto":r,u=e.show,d=void 0!==u&&u,f=e.style,p=void 0===f?{}:f,b=e.value,h=void 0===b?0:b,v=e.renderTooltipContent,m=void 0===v?function(e){return e}:v,y=e.zIndex,g=void 0===y?100:y,O=Object(a.a)(e,["className","inputRef","position","show","style","value","renderTooltipContent","zIndex"]),j=function(e){var t=e.inputRef,n=e.position,r=Object(c.useState)("top"),o=Object(i.a)(r,2),a=o[0],s=o[1],u=Object(c.useCallback)((function(){if(t&&t.current){var e=n;if("auto"===n)e=t.current.getBoundingClientRect().top-32<0?"bottom":"top";s(e)}}),[n]);return Object(c.useEffect)((function(){u()}),[u]),Object(c.useEffect)((function(){return window.addEventListener("resize",u),function(){window.removeEventListener("resize",u)}})),a}({inputRef:n,position:s}),w=l()("components-simple-tooltip",t),k=pl(pl({},p),{},{zIndex:g});return Object(c.createElement)(rl,Object(o.a)({},O,{"aria-hidden":d,className:w,position:j,show:d,role:"tooltip",style:k}),m(h))}var hl=Object(c.forwardRef)((function e(t,n){var r,u=t.afterIcon,d=t.allowReset,f=void 0!==d&&d,p=t.beforeIcon,b=t.className,h=t.currentInput,v=t.color,m=void 0===v?Fe("ui.theme"):v,y=t.disabled,g=void 0!==y&&y,O=t.help,j=t.initialPosition,w=t.isShiftStepEnabled,k=void 0===w||w,_=t.label,x=t.marks,C=void 0!==x&&x,D=t.max,M=void 0===D?100:D,T=t.min,I=void 0===T?0:T,R=t.onBlur,N=void 0===R?s.noop:R,A=t.onChange,L=void 0===A?s.noop:A,F=t.onFocus,z=void 0===F?s.noop:F,B=t.onMouseMove,H=void 0===B?s.noop:B,V=t.onMouseLeave,K=void 0===V?s.noop:V,W=t.railColor,U=t.resetFallbackValue,G=t.renderTooltipContent,$=void 0===G?function(e){return e}:G,q=t.showTooltip,Y=t.shiftStep,Z=void 0===Y?10:Y,X=t.step,J=void 0===X?1:X,Q=t.trackColor,ee=t.value,te=t.withInputField,ne=void 0===te||te,re=Object(a.a)(t,["afterIcon","allowReset","beforeIcon","className","currentInput","color","disabled","help","initialPosition","isShiftStepEnabled","label","marks","max","min","onBlur","onChange","onFocus","onMouseMove","onMouseLeave","railColor","resetFallbackValue","renderTooltipContent","showTooltip","shiftStep","step","trackColor","value","withInputField"]),oe=Qe(),ie=function(e){var t=e.min,n=e.max,r=e.value,o=e.initial,a=yo(Bu(r,t,n),{initial:o,fallback:null}),s=Object(i.a)(a,2),u=s[0],l=s[1];return[u,Object(c.useCallback)((function(e){l(null===e?null:Bu(e,t,n))}),[t,n])]}({min:I,max:M,value:ee,initial:j}),ae=Object(i.a)(ie,2),ce=ae[0],se=ae[1],ue=Object(c.useRef)(!1),le=Object(c.useState)(q),de=Object(i.a)(le,2),fe=de[0],pe=de[1],be=Object(c.useState)(!1),he=Object(i.a)(be,2),ve=he[0],me=he[1],ye=Object(c.useRef)(),ge=null===(r=ye.current)||void 0===r?void 0:r.matches(":focus"),Oe=!g&&ve,je=null===ce,we=je?"":void 0!==ce?ce:h,ke=je?Bu(M/2,I,M):ce,_e=je?50:(ce-I)/(M-I)*100,Se="".concat(Object(s.clamp)(_e,0,100),"%"),Ee=l()("components-range-control",b),xe=l()("components-range-control__wrapper",!!C&&"is-marked"),Ce=Object(E.useInstanceId)(e,"inspector-range-control"),Pe=O?"".concat(Ce,"__help"):void 0,De=!1!==q&&Object(s.isFinite)(ce),Me=function(){var e=parseFloat(U),t=e;isNaN(e)&&(e=null,t=void 0),se(e),L(t)},Te=Object(P.a)({},oe?"right":"left",Se);return Object(c.createElement)(yt,{className:Ee,label:_,id:Ce,help:O},Object(c.createElement)(Ku,{className:"components-range-control__root",isRTL:oe},p&&Object(c.createElement)(Uu,null,Object(c.createElement)(fs.a,{icon:p})),Object(c.createElement)(Wu,{className:xe,color:m,marks:!!C},Object(c.createElement)(al,Object(o.a)({},re,{className:"components-range-control__slider",describedBy:Pe,disabled:g,id:Ce,isShiftStepEnabled:k,label:_,max:M,min:I,onBlur:function(e){N(e),me(!1),pe(!1)},onChange:function(e){var t=parseFloat(e.target.value);se(t),L(t)},onFocus:function(e){z(e),me(!0),pe(!0)},onMouseMove:H,onMouseLeave:K,ref:function(e){ye.current=e,n&&n(e)},shiftStep:Z,step:J,value:we})),Object(c.createElement)(ll,{"aria-hidden":!0,disabled:g,marks:C,max:M,min:I,railColor:W,step:J,value:ke}),Object(c.createElement)(qu,{"aria-hidden":!0,className:"components-range-control__track",disabled:g,style:{width:Se},trackColor:Q}),Object(c.createElement)(Ju,{style:Te},Object(c.createElement)(Qu,{"aria-hidden":!0,isFocused:Oe})),De&&Object(c.createElement)(bl,{className:"components-range-control__tooltip",inputRef:ye,renderTooltipContent:$,show:ge||fe,style:Te,value:ce})),u&&Object(c.createElement)(Gu,null,Object(c.createElement)(fs.a,{icon:u})),ne&&Object(c.createElement)(ol,{"aria-label":_,className:"components-range-control__number",disabled:g,inputMode:"decimal",isShiftStepEnabled:k,max:M,min:I,onBlur:function(){ue.current&&(Me(),ue.current=!1)},onChange:function(e){e=parseFloat(e),se(e),isNaN(e)?f&&(ue.current=!0):((e<I||e>M)&&(e=Bu(e,I,M)),L(e),ue.current=!1)},shiftStep:Z,step:J,value:we}),f&&Object(c.createElement)(il,null,Object(c.createElement)(qr.a,{className:"components-range-control__reset",disabled:g||void 0===ce,isSecondary:!0,isSmall:!0,onClick:Me},Object(S.__)("Reset")))))})),vl="default";function ml(e){var t=e.fallbackFontSize,n=e.fontSizes,r=void 0===n?[]:n,o=e.disableCustomFontSizes,i=void 0!==o&&o,a=e.onChange,s=e.value,u=e.withSlider,l=void 0!==u&&u,d=Object(E.useInstanceId)(ml),f=Object(c.useMemo)((function(){return function(e,t){return t&&!e.length?null:(e=[{slug:vl,name:Object(S.__)("Default")}].concat(Object(Gr.a)(e),Object(Gr.a)(t?[]:[{slug:"custom",name:Object(S.__)("Custom")}]))).map((function(e){return{key:e.slug,name:e.name,style:{fontSize:e.size}}}))}(r,i)}),[r,i]);if(!f)return null;var p=function(e,t){if(t){var n=e.find((function(e){return e.size===Number(t)}));return n?n.slug:"custom"}return vl}(r,s),b="components-font-size-picker__number#".concat(d);return Object(c.createElement)("fieldset",{className:"components-font-size-picker"},Object(c.createElement)(M,{as:"legend"},Object(S.__)("Font size")),Object(c.createElement)("div",{className:"components-font-size-picker__controls"},r.length>0&&Object(c.createElement)(Xc,{className:"components-font-size-picker__select",label:Object(S.__)("Font size"),options:f,value:f.find((function(e){return e.key===p})),onChange:function(e){var t=e.selectedItem,n=t.style&&t.style.fontSize;a(Number(n))}}),!l&&!i&&Object(c.createElement)("div",{className:"components-font-size-picker__number-container"},Object(c.createElement)("label",{htmlFor:b},Object(S.__)("Custom")),Object(c.createElement)("input",{id:b,className:"components-font-size-picker__number",type:"number",min:1,onChange:function(e){a(Number(e.target.value))},"aria-label":Object(S.__)("Custom"),value:s||""})),Object(c.createElement)(qr.a,{className:"components-color-palette__clear",disabled:void 0===s,onClick:function(){a(void 0)},isSmall:!0,isSecondary:!0},Object(S.__)("Reset"))),l&&Object(c.createElement)(hl,{className:"components-font-size-picker__custom-input",label:Object(S.__)("Custom Size"),value:s||"",initialPosition:t,onChange:function(e){a(e)},min:12,max:100,beforeIcon:zu.a,afterIcon:zu.a}))}var yl=function(e){var t=e.accept,n=e.children,r=e.multiple,i=void 0!==r&&r,s=e.onChange,u=e.render,l=Object(a.a)(e,["accept","children","multiple","onChange","render"]),d=Object(c.useRef)(),f=function(){d.current.click()},p=u?u({openFileDialog:f}):Object(c.createElement)(qr.a,Object(o.a)({onClick:f},l),n);return Object(c.createElement)("div",{className:"components-form-file-upload"},p,Object(c.createElement)("input",{type:"file",ref:d,multiple:i,style:{display:"none"},accept:t,onChange:s}))};var gl=function(e){var t=e.className,n=e.checked,r=e.id,i=e.onChange,u=void 0===i?s.noop:i,d=Object(a.a)(e,["className","checked","id","onChange"]),f=l()("components-form-toggle",t,{"is-checked":n});return Object(c.createElement)("span",{className:f},Object(c.createElement)("input",Object(o.a)({className:"components-form-toggle__input",id:r,type:"checkbox",checked:n,onChange:u},d)),Object(c.createElement)("span",{className:"components-form-toggle__track"}),Object(c.createElement)("span",{className:"components-form-toggle__thumb"}))},Ol=n(40),jl=Object(c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(c.createElement)(r.Path,{d:"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"}));function wl(e){var t=e.value,n=e.status,r=e.title,o=e.displayTransform,i=e.isBorderless,a=void 0!==i&&i,u=e.disabled,d=void 0!==u&&u,f=e.onClickRemove,p=void 0===f?s.noop:f,b=e.onMouseEnter,h=e.onMouseLeave,v=e.messages,m=e.termPosition,y=e.termsCount,g=Object(E.useInstanceId)(wl),O=l()("components-form-token-field__token",{"is-error":"error"===n,"is-success":"success"===n,"is-validating":"validating"===n,"is-borderless":a,"is-disabled":d}),j=o(t),w=Object(S.sprintf)(Object(S.__)("%1$s (%2$s of %3$s)"),j,m,y);return Object(c.createElement)("span",{className:O,onMouseEnter:b,onMouseLeave:h,title:r},Object(c.createElement)("span",{className:"components-form-token-field__token-text",id:"components-form-token-field__token-text-".concat(g)},Object(c.createElement)(M,{as:"span"},w),Object(c.createElement)("span",{"aria-hidden":"true"},j)),Object(c.createElement)(qr.a,{className:"components-form-token-field__remove-token",icon:jl,onClick:!d&&function(){return p({value:t})},label:v.remove,"aria-describedby":"components-form-token-field__token-text-".concat(g)}))}function kl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kl(Object(n),!0).forEach((function(t){Object(P.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Sl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ha.a)(e);if(t){var o=Object(ha.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ba.a)(this,n)}}var El={incompleteTokenValue:"",inputOffsetFromEnd:0,isActive:!1,isExpanded:!1,selectedSuggestionIndex:-1,selectedSuggestionScroll:!1},xl=function(e){Object(pa.a)(n,e);var t=Sl(n);function n(){var e;return Object(la.a)(this,n),(e=t.apply(this,arguments)).state=El,e.onKeyDown=e.onKeyDown.bind(Object(fa.a)(e)),e.onKeyPress=e.onKeyPress.bind(Object(fa.a)(e)),e.onFocus=e.onFocus.bind(Object(fa.a)(e)),e.onBlur=e.onBlur.bind(Object(fa.a)(e)),e.deleteTokenBeforeInput=e.deleteTokenBeforeInput.bind(Object(fa.a)(e)),e.deleteTokenAfterInput=e.deleteTokenAfterInput.bind(Object(fa.a)(e)),e.addCurrentToken=e.addCurrentToken.bind(Object(fa.a)(e)),e.onContainerTouched=e.onContainerTouched.bind(Object(fa.a)(e)),e.renderToken=e.renderToken.bind(Object(fa.a)(e)),e.onTokenClickRemove=e.onTokenClickRemove.bind(Object(fa.a)(e)),e.onSuggestionHovered=e.onSuggestionHovered.bind(Object(fa.a)(e)),e.onSuggestionSelected=e.onSuggestionSelected.bind(Object(fa.a)(e)),e.onInputChange=e.onInputChange.bind(Object(fa.a)(e)),e.bindInput=e.bindInput.bind(Object(fa.a)(e)),e.bindTokensAndInput=e.bindTokensAndInput.bind(Object(fa.a)(e)),e.updateSuggestions=e.updateSuggestions.bind(Object(fa.a)(e)),e}return Object(da.a)(n,[{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=!Ms()(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(El)}},{key:"onKeyDown",value:function(e){var t=!1;switch(e.keyCode){case pr.BACKSPACE:t=this.handleDeleteKey(this.deleteTokenBeforeInput);break;case pr.ENTER:t=this.addCurrentToken();break;case pr.LEFT:t=this.handleLeftArrowKey();break;case pr.UP:t=this.handleUpArrowKey();break;case pr.RIGHT:t=this.handleRightArrowKey();break;case pr.DOWN:t=this.handleDownArrowKey();break;case pr.DELETE:t=this.handleDeleteKey(this.deleteTokenAfterInput);break;case pr.SPACE:this.props.tokenizeOnSpace&&(t=this.addCurrentToken());break;case pr.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(s.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();e<this.props.value.length&&(this.deleteToken(this.props.value[e]),this.moveInputToIndex(e))}},{key:"addCurrentToken",value:function(){var e=!1,t=this.getSelectedSuggestion();return t?(this.addNewToken(t),e=!0):this.inputHasValidValue()&&(this.addNewToken(this.state.incompleteTokenValue),e=!0),e}},{key:"addNewTokens",value:function(e){var t=this,n=Object(s.uniq)(e.map(this.props.saveTransform).filter(Boolean).filter((function(e){return!t.valueContainsToken(e)})));if(n.length>0){var r=Object(s.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(Ol.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,i=o(e),a=[],c=[];return 0===i.length?t=Object(s.difference)(t,n):(i=i.toLocaleLowerCase(),Object(s.each)(t,(function(e){var t=e.toLocaleLowerCase().indexOf(i);-1===n.indexOf(e)&&(0===t?a.push(e):t>0&&c.push(e))})),t=a.concat(c)),Object(s.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(s.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,i={isExpanded:n&&o};if(e&&(i.selectedSuggestionIndex=-1,i.selectedSuggestionScroll=!1),this.setState(i),n){var a=this.props.debouncedSpeak,c=o?Object(S.sprintf)(Object(S._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(S.__)("No results.");a(c,"assertive")}}},{key:"renderTokensAndInput",value:function(){var e=Object(s.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),o=e.status?e.status:void 0,i=t+1,a=n.length;return Object(c.createElement)(wl,{key:"token-"+r,value:r,status:o,title:e.title,displayTransform:this.props.displayTransform,onClickRemove:this.onTokenClickRemove,isBorderless:e.isBorderless||this.props.isBorderless,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,disabled:"error"!==o&&this.props.disabled,messages:this.props.messages,termsCount:a,termPosition:i})}},{key:"renderInput",value:function(){var e=this.props,t=e.autoCapitalize,n=e.autoComplete,r=e.maxLength,o=e.value,i={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 r&&o.length>=r||(i=_l(_l({},i),{},{onChange:this.onInputChange})),Object(c.createElement)(Za,i)}},{key:"render",value:function(){var e=this.props,t=e.disabled,n=e.label,r=void 0===n?Object(S.__)("Add item"):n,o=e.instanceId,i=e.className,a=this.state.isExpanded,s=l()(i,"components-form-token-field__input-container",{"is-active":this.state.isActive,"is-disabled":t}),u={className:"components-form-token-field",tabIndex:"-1"},d=this.getMatchingSuggestions();return t||(u=Object.assign({},u,{onKeyDown:this.onKeyDown,onKeyPress:this.onKeyPress,onFocus:this.onFocus})),Object(c.createElement)("div",u,Object(c.createElement)("label",{htmlFor:"components-form-token-input-".concat(o),className:"components-form-token-field__label"},r),Object(c.createElement)("div",{ref:this.bindTokensAndInput,className:s,tabIndex:"-1",onMouseDown:this.onContainerTouched,onTouchStart:this.onContainerTouched},this.renderTokensAndInput(),a&&Object(c.createElement)(tc,{instanceId:o,match:this.props.saveTransform(this.state.incompleteTokenValue),displayTransform:this.props.displayTransform,suggestions:d,selectedIndex:this.state.selectedSuggestionIndex,scrollIntoView:this.state.selectedSuggestionScroll,onHover:this.onSuggestionHovered,onSelect:this.onSuggestionSelected})),Object(c.createElement)("p",{id:"components-form-token-suggestions-howto-".concat(o),className:"components-form-token-field__help"},this.props.tokenizeOnSpace?Object(S.__)("Separate with commas, spaces, or the Enter key."):Object(S.__)("Separate with commas or the Enter key.")))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.disabled&&t.isActive?{isActive:!1,incompleteTokenValue:""}:null}}]),n}(c.Component);xl.defaultProps={suggestions:Object.freeze([]),maxSuggestions:100,value:Object.freeze([]),displayTransform:s.identity,saveTransform:function(e){return e.trim()},onChange:function(){},onInputChange:function(){},isBorderless:!1,disabled:!1,tokenizeOnSpace:!1,messages:{added:Object(S.__)("Item added."),removed:Object(S.__)("Item removed."),remove:Object(S.__)("Remove item")}};var Cl=Xr(Object(E.withInstanceId)(xl)),Pl=n(201),Dl=n.n(Pl),Ml="linear-gradient(135deg, rgba(6, 147, 227, 1) 0%, rgb(155, 81, 224) 100%)",Tl={className:"components-custom-gradient-picker__color-picker-popover",position:"top"},Il={type:"angular",value:90},Rl=[{value:"linear-gradient",label:Object(S.__)("Linear")},{value:"radial-gradient",label:Object(S.__)("Radial")}];function Nl(e){var t=e.type,n=e.value;return"literal"===t?n:"hex"===t?"#".concat(n):"".concat(t,"(").concat(n.join(","),")")}function Al(e){var t=e.type,n=e.value;return"".concat(n).concat(t)}function Ll(e){var t=e.type,n=e.value,r=e.length;return"".concat(Nl({type:t,value:n})," ").concat(Al(r))}function Fl(e){var t=e.type,n=e.orientation,r=e.colorStops,o=function(e){if(e&&"angular"===e.type)return"".concat(e.value,"deg")}(n),i=r.sort((function(e,t){return Object(s.get)(e,["length","value"],0)-Object(s.get)(t,["length","value"],0)})).map(Ll);return"".concat(t,"(").concat(Object(s.compact)([o].concat(Object(Gr.a)(i))).join(","),")")}function zl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zl(Object(n),!0).forEach((function(t){Object(P.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Hl(e){var t=e.r,n=e.g,r=e.b,o=e.a;return 1===o?{type:"rgb",value:[t,n,r]}:{type:"rgba",value:[t,n,r,o]}}function Vl(e,t,n){return Bl(Bl({},e),{},{colorStops:e.colorStops.map((function(e,r){return r!==t?e:Bl(Bl({},e),{},{length:Bl(Bl({},e.length),{},{value:n})})}))})}function Kl(e,t,n){var r=parseInt(e.colorStops[n].length.value),o=Math.min(r,t),i=Math.max(r,t);return Object(s.some)(e.colorStops,(function(e,r){var a=e.length,c=parseInt(a.value);return r!==n&&(Math.abs(c-t)<0||o<c&&c<i)}))}function Wl(e,t,n){var r=e.colorStops[t].length.value,o=Math.max(0,Math.min(100,parseInt(r)+n));return Kl(e,o,t)?e:Vl(e,t,o)}function Ul(e,t,n){return Bl(Bl({},e),{},{colorStops:e.colorStops.map((function(e,r){return r!==t?e:Bl(Bl({},e),Hl(n))}))})}function Gl(e,t,n){if(t){var r=t.getBoundingClientRect(),o=e-r.x-5-n/2,i=r.width-5-23;return Math.round(Math.min(Math.max(100*o/i,0),100))}}function $l(e){return Fl({type:"linear-gradient",orientation:Il,colorStops:e.colorStops})}var ql={top:0,"top right":45,"right top":45,right:90,"right bottom":135,"bottom right":135,bottom:180,"bottom left":225,"left bottom":225,left:270,"top left":315,"left top":315};function Yl(e){var t,n,r=!!e;try{t=Dl.a.parse(e||Ml)[0],n=e||Ml}catch(e){r=!1,t=Dl.a.parse(Ml)[0],n=Ml}return t.orientation&&"directional"===t.orientation.type&&(t.orientation.type="angular",t.orientation.value=ql[t.orientation.value].toString()),{hasGradient:r,gradientAST:t,gradientValue:n}}function Zl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ha.a)(e);if(t){var o=Object(ha.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ba.a)(this,n)}}var Xl=function(e){Object(pa.a)(n,e);var t=Zl(n);function n(){var e;return Object(la.a)(this,n),(e=t.apply(this,arguments)).increase=e.increase.bind(Object(fa.a)(e)),e.decrease=e.decrease.bind(Object(fa.a)(e)),e.shortcuts={right:e.increase,left:e.decrease},e}return Object(da.a)(n,[{key:"increase",value:function(e){e.stopPropagation();var t=this.props,n=t.gradientIndex;(0,t.onChange)(function(e,t){return Wl(e,t,10)}(t.gradientAST,n))}},{key:"decrease",value:function(e){e.stopPropagation();var t=this.props,n=t.gradientIndex;(0,t.onChange)(function(e,t){return Wl(e,t,-10)}(t.gradientAST,n))}},{key:"render",value:function(){var e=this.props.children;return Object(c.createElement)(Oa,{shortcuts:this.shortcuts},e)}}]),n}(c.Component);function Jl(e){var t=e.isOpen,n=e.position,r=e.color,i=e.onChange,s=e.gradientIndex,u=e.gradientAST,d=Object(a.a)(e,["isOpen","position","color","onChange","gradientIndex","gradientAST"]),f=Object(E.useInstanceId)(Jl),p="components-custom-gradient-picker__control-point-button-description-".concat(f);return Object(c.createElement)(Xl,{onChange:i,gradientIndex:s,gradientAST:u},Object(c.createElement)(qr.a,Object(o.a)({"aria-label":Object(S.sprintf)(Object(S.__)("Gradient control point at position %1$s with color code %2$s."),n,r),"aria-describedby":p,"aria-haspopup":"true","aria-expanded":t,className:l()("components-custom-gradient-picker__control-point-button",{"is-active":t}),style:{left:n}},d)),Object(c.createElement)(M,{id:p},Object(S.__)("Use your left or right arrow keys or drag and drop with the mouse to change the gradient position. Press the button to change the color or remove the control point.")))}function Ql(e){var t=e.gradientPickerDomRef,n=e.ignoreMarkerPosition,r=e.markerPoints,o=e.onChange,i=e.gradientAST,a=e.onStartControlPointChange,s=e.onStopControlPointChange,u=Object(c.useRef)(),l=function(e){var n=Gl(e.clientX,t.current,18),r=u.current,i=r.gradientAST,a=r.position;if(!r.significantMoveHappened){var c=i.colorStops[a].length.value;Math.abs(c-n)>=5&&(u.current.significantMoveHappened=!0)}Kl(i,n,a)||o(Vl(i,a,n))},d=function e(){window&&window.removeEventListener&&u.current&&u.current.listenersActivated&&(window.removeEventListener("mousemove",l),window.removeEventListener("mouseup",e),s(),u.current.listenersActivated=!1)};return Object(c.useEffect)((function(){return function(){d()}}),[]),r.map((function(e,t){return e&&n!==e.positionValue&&Object(c.createElement)(sa,{key:t,onClose:s,renderToggle:function(n){var r=n.isOpen,f=n.onToggle;return Object(c.createElement)(Jl,{key:t,onClick:function(){u.current&&u.current.significantMoveHappened||(r?s():a(),f())},onMouseDown:function(){window&&window.addEventListener&&(u.current={gradientAST:i,position:t,significantMoveHappened:!1,listenersActivated:!0},a(),window.addEventListener("mousemove",l),window.addEventListener("mouseup",d))},isOpen:r,position:e.position,color:e.color,onChange:o,gradientAST:i,gradientIndex:t})},renderContent:function(n){var r=n.onClose;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(Ha,{color:e.color,onChangeComplete:function(e){var n=e.rgb;o(Ul(i,t,n))}}),Object(c.createElement)(qr.a,{className:"components-custom-gradient-picker__remove-control-point",onClick:function(){o(function(e,t){return Bl(Bl({},e),{},{colorStops:e.colorStops.filter((function(e,n){return n!==t}))})}(i,t)),r()},isLink:!0},Object(S.__)("Remove Control Point")))},popoverProps:Tl})}))}function ed(e){var t=e.onChange,n=e.gradientAST,r=e.onOpenInserter,o=e.onCloseInserter,a=e.insertPosition,u=Object(c.useState)(!1),l=Object(i.a)(u,2),d=l[0],f=l[1];return Object(c.createElement)(sa,{className:"components-custom-gradient-picker__inserter",onClose:function(){o()},renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(c.createElement)(qr.a,{"aria-expanded":t,"aria-haspopup":"true",onClick:function(){t?o():(f(!1),r()),n()},className:"components-custom-gradient-picker__insert-point",icon:ca.a,style:{left:null!==a?"".concat(a,"%"):void 0}})},renderContent:function(){return Object(c.createElement)(Ha,{onChangeComplete:function(e){var r,o=e.rgb;d?r=function(e,t,n){return Ul(e,Object(s.findIndex)(e.colorStops,(function(e){return e&&e.length&&"%"===e.length.type&&e.length.value===t.toString()})),n)}(n,a,o):(r=function(e,t,n){var r=Hl(n);return r.length={type:"%",value:t},Bl(Bl({},e),{},{colorStops:[].concat(Object(Gr.a)(e.colorStops),[r])})}(n,a,o),f(!0)),t(r)}})},popoverProps:Tl})}function td(e,t){switch(t.type){case"MOVE_INSERTER":if("IDLE"===e.id||"MOVING_INSERTER"===e.id)return{id:"MOVING_INSERTER",insertPosition:t.insertPosition};break;case"STOP_INSERTER_MOVE":if("MOVING_INSERTER"===e.id)return{id:"IDLE"};break;case"OPEN_INSERTER":if("MOVING_INSERTER"===e.id)return{id:"INSERTING_CONTROL_POINT",insertPosition:e.insertPosition};break;case"CLOSE_INSERTER":if("INSERTING_CONTROL_POINT"===e.id)return{id:"IDLE"};break;case"START_CONTROL_CHANGE":if("IDLE"===e.id)return{id:"MOVING_CONTROL_POINT"};break;case"STOP_CONTROL_CHANGE":if("MOVING_CONTROL_POINT"===e.id)return{id:"IDLE"}}return e}var nd={id:"IDLE"};function rd(e){var t=e.value,n=e.onChange,r=Yl(t),o=r.gradientAST,a=r.gradientValue,u=r.hasGradient,d=function(e){n(Fl(e))},f=Object(c.useRef)(),p=function(e){return e?Object(s.map)(e.colorStops,(function(e){return e&&e.length&&"%"===e.length.type?{color:Nl(e),position:Al(e.length),positionValue:parseInt(e.length.value)}:null})):[]}(o),b=Object(c.useReducer)(td,nd),h=Object(i.a)(b,2),v=h[0],m=h[1],y=function(e){var t=Gl(e.clientX,f.current,23);Object(s.some)(p,(function(e){var n=e.positionValue;return Math.abs(t-n)<10}))?"MOVING_INSERTER"===v.id&&m({type:"STOP_INSERTER_MOVE"}):m({type:"MOVE_INSERTER",insertPosition:t})},g="MOVING_INSERTER"===v.id,O="INSERTING_CONTROL_POINT"===v.id;return Object(c.createElement)("div",{ref:f,className:l()("components-custom-gradient-picker__gradient-bar",{"has-gradient":u}),onMouseEnter:y,onMouseMove:y,style:{background:"radial-gradient"===o.type?$l(o):a},onMouseLeave:function(){m({type:"STOP_INSERTER_MOVE"})}},Object(c.createElement)("div",{className:"components-custom-gradient-picker__markers-container"},(g||O)&&Object(c.createElement)(ed,{insertPosition:v.insertPosition,onChange:d,gradientAST:o,onOpenInserter:function(){m({type:"OPEN_INSERTER"})},onCloseInserter:function(){m({type:"CLOSE_INSERTER"})}}),Object(c.createElement)(Ql,{gradientPickerDomRef:f,ignoreMarkerPosition:O?v.insertPosition:void 0,markerPoints:p,onChange:d,gradientAST:o,onStartControlPointChange:function(){m({type:"START_CONTROL_CHANGE"})},onStopControlPointChange:function(){m({type:"STOP_CONTROL_CHANGE"})}})))}var od=je(Et,{target:"e99xvul0",label:"SelectWrapper"})({name:"14kcwr6",styles:"width:110px;"});function id(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ad(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?id(Object(n),!0).forEach((function(t){Object(P.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):id(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var cd=function(e){var t=e.gradientAST,n=e.hasGradient,r=e.onChange,o=Object(s.get)(t,["orientation","value"],180);return Object(c.createElement)(Ur,{value:n?o:"",onChange:function(e){r(Fl(ad(ad({},t),{},{orientation:{type:"angular",value:e}})))}})},sd=function(e){var t=e.gradientAST,n=e.hasGradient,r=e.onChange,o=t.type;return Object(c.createElement)(vs,{className:"components-custom-gradient-picker__type-picker",label:Object(S.__)("Type"),onChange:function(e){"linear-gradient"===e&&r(Fl(ad(ad(ad({},t),t.orientation?{}:{orientation:Il}),{},{type:"linear-gradient"}))),"radial-gradient"===e&&r(Fl(ad(ad({},Object(s.omit)(t,["orientation"])),{},{type:"radial-gradient"})))},options:Rl,value:n&&o})};function ud(e){var t=e.value,n=e.onChange,r=Yl(t),o=r.gradientAST,i=r.hasGradient,a=o.type;return Object(c.createElement)("div",{className:"components-custom-gradient-picker"},Object(c.createElement)(rd,{value:t,onChange:n}),Object(c.createElement)(_t,{gap:3,className:"components-custom-gradient-picker__ui-line"},Object(c.createElement)(od,null,Object(c.createElement)(sd,{gradientAST:o,hasGradient:i,onChange:n})),"linear-gradient"===a&&Object(c.createElement)(Et,null,Object(c.createElement)(cd,{gradientAST:o,hasGradient:i,onChange:n}))))}function ld(e){var t=e.className,n=e.gradients,r=e.onChange,o=e.value,i=e.clearable,a=void 0===i||i,u=e.disableCustomGradients,l=void 0!==u&&u,d=Object(c.useCallback)((function(){return r(void 0)}),[r]),f=Object(c.useMemo)((function(){return Object(s.map)(n,(function(e){var t=e.gradient,n=e.name;return Object(c.createElement)(ua.Option,{key:t,value:t,isSelected:o===t,tooltipText:n||Object(S.sprintf)(Object(S.__)("Gradient code: %s"),t),style:{color:"rgba( 0,0,0,0 )",background:t},onClick:o===t?d:function(){return r(t)},"aria-label":n?Object(S.sprintf)(Object(S.__)("Gradient: %s"),n):Object(S.sprintf)(Object(S.__)("Gradient code: %s"),t)})}))}),[n,o,r,d]);return Object(c.createElement)(ua,{className:t,options:f,actions:a&&Object(c.createElement)(ua.ButtonAction,{onClick:d},Object(S.__)("Clear"))},!l&&Object(c.createElement)(ud,{value:o,onChange:r}))}var dd=n(136),fd=n(135),pd=n(134);function bd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ha.a)(e);if(t){var o=Object(ha.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ba.a)(this,n)}}var hd=function(e){Object(pa.a)(n,e);var t=bd(n);function n(){var e;return Object(la.a)(this,n),(e=t.apply(this,arguments)).containerRef=Object(c.createRef)(),e.handleKeyDown=e.handleKeyDown.bind(Object(fa.a)(e)),e.handleFocusOutside=e.handleFocusOutside.bind(Object(fa.a)(e)),e}return Object(da.a)(n,[{key:"componentDidMount",value:function(){this.props.focusOnMount&&this.containerRef.current.focus()}},{key:"handleFocusOutside",value:function(e){this.props.shouldCloseOnClickOutside&&this.onRequestClose(e)}},{key:"handleKeyDown",value:function(e){e.keyCode===pr.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,o=r.describedby,i=r.labelledby,a=e.children,s=e.className,u=e.role,d=e.style;return Object(c.createElement)(dd.a,{className:l()("components-modal__screen-overlay",t),onKeyDown:this.handleKeyDown},Object(c.createElement)("div",{className:l()("components-modal__frame",s),style:d,ref:this.containerRef,role:u,"aria-label":n,"aria-labelledby":n?null:i,"aria-describedby":o,tabIndex:"-1"},a))}}]),n}(c.Component),vd=Object(E.compose)([fd.a,pd.a,ru.a])(hd),md=function(e){var t=e.icon,n=e.title,r=e.onClose,o=e.closeLabel,i=e.headingId,a=e.isDismissible,s=o||Object(S.__)("Close dialog");return Object(c.createElement)("div",{className:"components-modal__header"},Object(c.createElement)("div",{className:"components-modal__header-heading-container"},t&&Object(c.createElement)("span",{className:"components-modal__icon-container","aria-hidden":!0},t),n&&Object(c.createElement)("h1",{id:i,className:"components-modal__header-heading"},n)),a&&Object(c.createElement)(qr.a,{onClick:r,icon:oa.a,label:s}))},yd=new Set(["alert","status","log","marquee","timer"]),gd=[],Od=!1;function jd(e){if(!Od){var t=document.body.children;Object(s.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")||yd.has(t))}(t)&&(t.setAttribute("aria-hidden","true"),gd.push(t))})),Od=!0}}function wd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ha.a)(e);if(t){var o=Object(ha.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ba.a)(this,n)}}var kd,_d=0,Sd=function(e){Object(pa.a)(n,e);var t=wd(n);function n(e){var r;return Object(la.a)(this,n),(r=t.call(this,e)).prepareDOM(),r}return Object(da.a)(n,[{key:"componentDidMount",value:function(){1===++_d&&this.openFirstModal()}},{key:"componentWillUnmount",value:function(){0===--_d&&this.closeLastModal(),this.cleanDOM()}},{key:"prepareDOM",value:function(){kd||(kd=document.createElement("div"),document.body.appendChild(kd)),this.node=document.createElement("div"),kd.appendChild(this.node)}},{key:"cleanDOM",value:function(){kd.removeChild(this.node)}},{key:"openFirstModal",value:function(){jd(kd),document.body.classList.add(this.props.bodyOpenClassName)}},{key:"closeLastModal",value:function(){document.body.classList.remove(this.props.bodyOpenClassName),Od&&(Object(s.forEach)(gd,(function(e){e.removeAttribute("aria-hidden")})),gd=[],Od=!1)}},{key:"render",value:function(){var e=this.props,t=e.onRequestClose,n=e.title,r=e.icon,i=e.closeButtonLabel,s=e.children,u=e.aria,l=e.instanceId,d=e.isDismissible,f=e.isDismissable,p=Object(a.a)(e,["onRequestClose","title","icon","closeButtonLabel","children","aria","instanceId","isDismissible","isDismissable"]),b=u.labelledby||"components-modal-header-".concat(l);return f&&Ks()("isDismissable prop of the Modal component",{alternative:"isDismissible prop (renamed) of the Modal component"}),Object(c.createPortal)(Object(c.createElement)(vd,Object(o.a)({onRequestClose:t,aria:{labelledby:n?b:null,describedby:u.describedby}},p),Object(c.createElement)("div",{className:"components-modal__content",role:"document"},Object(c.createElement)(md,{closeLabel:i,headingId:b,icon:r,isDismissible:d||f,onClose:t,title:n}),s)),this.node)}}]),n}(c.Component);Sd.defaultProps={bodyOpenClassName:"modal-open",role:"dialog",title:null,focusOnMount:!0,shouldCloseOnEsc:!0,shouldCloseOnClickOutside:!0,isDismissible:!0,aria:{labelledby:null,describedby:null}};var Ed=Object(E.withInstanceId)(Sd),xd=function(e){var t=e.isSelected;return Object(c.createElement)(r.SVG,{width:"8",height:"8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(c.createElement)(r.Circle,{cx:"4",cy:"4",r:"4",fill:t?"#419ECD":"#E1E3E6"}))};function Cd(e){var t=e.currentPage,n=e.numberOfPages,r=e.setCurrentPage;return Object(c.createElement)("ul",{className:"components-guide__page-control","aria-label":Object(S.__)("Guide controls")},Object(s.times)(n,(function(e){return Object(c.createElement)("li",{key:e,"aria-current":e===t?"step":void 0},Object(c.createElement)(qr.a,{key:e,icon:Object(c.createElement)(xd,{isSelected:e===t}),"aria-label":Object(S.sprintf)(Object(S.__)("Page %1$d of %2$d"),e+1,n),onClick:function(){return r(e)}}))})))}function Pd(e){var t=e.className,n=e.onClick,r=e.children,o=Object(c.useRef)(null);return Object(c.useLayoutEffect)((function(){document.activeElement&&document.activeElement!==document.body||o.current.focus()}),[o]),Object(c.createElement)(qr.a,{ref:o,className:t,isPrimary:!0,onClick:n},r)}function Dd(e){var t=e.children,n=e.className,r=e.contentLabel,o=e.finishButtonText,a=e.onFinish,s=e.pages,u=void 0===s?[]:s,d=Object(c.useState)(0),f=Object(i.a)(d,2),p=f[0],b=f[1];Object(c.useEffect)((function(){c.Children.count(t)&&Ks()("Passing children to <Guide>",{alternative:"the `pages` prop"})}),[t]),c.Children.count(t)&&(u=c.Children.map(t,(function(e){return{content:e}})));var h=p>0,v=p<u.length-1,m=function(){h&&b(p-1)},y=function(){v&&b(p+1)};return 0===u.length?null:Object(c.createElement)(Ed,{className:l()("components-guide",n),contentLabel:r,onRequestClose:a},Object(c.createElement)(Oa,{key:p,shortcuts:{left:m,right:y}}),Object(c.createElement)("div",{className:"components-guide__container"},Object(c.createElement)("div",{className:"components-guide__page"},u[p].image,Object(c.createElement)(Cd,{currentPage:p,numberOfPages:u.length,setCurrentPage:b}),u[p].content,!v&&Object(c.createElement)(Pd,{className:"components-guide__inline-finish-button",onClick:a},o||Object(S.__)("Finish"))),Object(c.createElement)("div",{className:"components-guide__footer"},h&&Object(c.createElement)(qr.a,{className:"components-guide__back-button",onClick:m},Object(S.__)("Previous")),v&&Object(c.createElement)(qr.a,{className:"components-guide__forward-button",onClick:y},Object(S.__)("Next")),!v&&Object(c.createElement)(Pd,{className:"components-guide__finish-button",onClick:a},o||Object(S.__)("Finish")))))}function Md(e){return Object(c.useEffect)((function(){Ks()("<GuidePage>",{alternative:"the `pages` prop in <Guide>"})}),[]),Object(c.createElement)("div",e)}var Td=Object(c.forwardRef)((function(e,t){var n=e.labelPosition,r=e.size,i=e.tooltip,s=e.label,u=Object(a.a)(e,["labelPosition","size","tooltip","label"]);return Ks()("wp.components.IconButton",{alternative:"wp.components.Button"}),Object(c.createElement)(qr.a,Object(o.a)({},u,{ref:t,tooltipPosition:n,iconSize:r,showTooltip:void 0!==i?!!i:void 0,label:i||s}))}));var Id=function e(t){var n=t.children,r=t.className,o=void 0===r?"":r,i=t.label,a=Object(E.useInstanceId)(e);if(!c.Children.count(n))return null;var s="components-menu-group-label-".concat(a),u=l()(o,"components-menu-group");return Object(c.createElement)("div",{className:u},i&&Object(c.createElement)("div",{className:"components-menu-group__label",id:s,"aria-hidden":"true"},i),Object(c.createElement)("div",{role:"group","aria-labelledby":i?s:null},n))},Rd=n(172);var Nd=Object(c.forwardRef)((function(e,t){var n=e.children,r=e.info,i=e.className,u=e.icon,d=e.shortcut,f=e.isSelected,p=e.role,b=void 0===p?"menuitem":p,h=Object(a.a)(e,["children","info","className","icon","shortcut","isSelected","role"]);return i=l()("components-menu-item__button",i),r&&(n=Object(c.createElement)("span",{className:"components-menu-item__info-wrapper"},n,Object(c.createElement)("span",{className:"components-menu-item__info"},r))),u&&!Object(s.isString)(u)&&(u=Object(c.cloneElement)(u,{className:"components-menu-items__item-icon"})),Object(c.createElement)(qr.a,Object(o.a)({ref:t,"aria-checked":"menuitemcheckbox"===b||"menuitemradio"===b?f:void 0,role:b,className:i},h),n,Object(c.createElement)(Rd.a,{className:"components-menu-item__shortcut",shortcut:d}),u&&Object(c.createElement)(fs.a,{icon:u}))}));function Ad(e){var t=e.choices,n=void 0===t?[]:t,r=e.onHover,o=void 0===r?s.noop:r,i=e.onSelect,a=e.value;return n.map((function(e){var t=a===e.value;return Object(c.createElement)(Nd,{key:e.value,role:"menuitemradio",icon:t&&ea.a,isSelected:t,shortcut:e.shortcut,className:"components-menu-items-choice",onClick:function(){t||i(e.value)},onMouseEnter:function(){return o(e.value)},onMouseLeave:function(){return o(null)}},e.label)}))}var Ld=n(166);var Fd=Object(c.forwardRef)((function(e,t){var n=e.eventToOffset,r=Object(a.a)(e,["eventToOffset"]);return Object(c.createElement)(qs,Object(o.a)({ref:t,stopNavigationEvents:!0,onlyBrowserTabstops:!0,eventToOffset:function(e){var t=e.keyCode,r=e.shiftKey;return pr.TAB===t?r?-1:1:n?n(e):void 0}},r))})),zd=Object(c.createContext)({activeItem:void 0,activeMenu:"root",setActiveMenu:s.noop,navigationTree:{items:{},getItem:s.noop,addItem:s.noop,removeItem:s.noop,menus:{},getMenu:s.noop,addMenu:s.noop,removeMenu:s.noop}}),Bd=function(){return Object(c.useContext)(zd)};var Hd=je("div",{target:"ejwewyf0",label:"NavigationUI"})("width:100%;background-color:",xe.darkGray.primary,";color:#f0f0f0;padding:0 8px;overflow:hidden;"),Vd=je("div",{target:"ejwewyf1",label:"MenuUI"})({name:"1wlvkgj",styles:"margin-top:24px;margin-bottom:24px;display:flex;flex-direction:column;ul{padding:0;margin:0;list-style:none;}.components-navigation__back-button{margin-bottom:24px;}"}),Kd=je(qr.a,{target:"ejwewyf2",label:"MenuBackButtonUI"})("&.is-tertiary{color:",xe.lightGray.ui,";&:hover:not(:disabled ){color:#ddd;box-shadow:none;}&:active:not(:disabled ){background:transparent;color:#ddd;}}"),Wd=je(Xt,{target:"ejwewyf3",label:"MenuTitleUI"})("padding:4px 0 4px 16px;margin-bottom:8px;color:",xe.gray[100],";"),Ud=je(Xt,{target:"ejwewyf4",label:"GroupTitleUI"})("margin-top:8px;padding:4px 0 4px 16px;text-transform:uppercase;color:",xe.gray[100],";"),Gd=je("li",{target:"ejwewyf5",label:"ItemUI"})("border-radius:2px;color:",xe.lightGray.ui,";button,a{margin:0;font-weight:400;font-size:14px;line-height:20px;padding-left:16px;padding-right:16px;width:100%;color:",xe.lightGray.ui,";&:hover,&:focus:not( [aria-disabled='true'] ):active,&:active:not( [aria-disabled='true'] ):active{color:#ddd;}}&.is-active{background-color:",Ne.theme,";color:",Ne.textDark,";button,a{color:",Ne.textDark,";}}svg path{color:",xe.lightGray.ui,";}"),$d=je("span",{target:"ejwewyf6",label:"ItemBadgeUI"})("margin-left:8px;display:inline-flex;padding:4px 12px;border-radius:2px;animation:fade-in 250ms ease-out;@keyframes fade-in{from{opacity:0;}to{opacity:1;}}",ze("animation"),";"),qd=je(Xt,{target:"ejwewyf7",label:"ItemTitleUI"})({name:"zs804i",styles:"margin-right:auto;text-align:left;"});function Yd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yd(Object(n),!0).forEach((function(t){Object(P.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Xd=function(){var e=Object(c.useState)({}),t=Object(i.a)(e,2),n=t[0],r=t[1];return{nodes:n,getNode:function(e){return n[e]},addNode:function(e,t){return r((function(n){return Zd(Zd({},n),{},Object(P.a)({},e,Object(s.omit)(t,"children")))}))},removeNode:function(e){return r((function(t){return Object(s.omit)(t,e)}))}}};function Jd(e){var t,n,r,o,a,u,d=e.activeItem,f=e.activeMenu,p=void 0===f?"root":f,b=e.children,h=e.className,v=e.onActivateMenu,m=void 0===v?s.noop:v,y=Object(c.useState)(p),g=Object(i.a)(y,2),O=g[0],j=g[1],w=Object(c.useState)(),k=Object(i.a)(w,2),_=k[0],S=k[1],E=(t=Xd(),n=t.nodes,r=t.getNode,o=t.addNode,a=t.removeNode,u=Xd(),{items:n,getItem:r,addItem:o,removeItem:a,menus:u.nodes,getMenu:u.getNode,addMenu:u.addNode,removeMenu:u.removeNode}),x=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"left";E.getMenu(e)&&(S(t),j(e),m(e))},C=Object(c.useRef)(!1);Object(c.useEffect)((function(){C.current||(C.current=!0)}),[]),Object(c.useEffect)((function(){p!==O&&x(p)}),[p]);var D={activeItem:d,activeMenu:O,setActiveMenu:x,navigationTree:E},M=l()("components-navigation",h);return Object(c.createElement)(Hd,{className:M},Object(c.createElement)(ut.a,{key:O,type:"slide-in",options:{origin:_}},(function(e){var t=e.className;return Object(c.createElement)("div",{className:l()(Object(P.a)({},t,C.current&&_))},Object(c.createElement)(zd.Provider,{value:D},b))})))}var Qd=n(215);var ef=Object(c.forwardRef)((function(e,t){var n,r=e.backButtonLabel,o=e.className,i=e.href,a=e.onClick,s=e.parentMenu,u=Bd(),d=u.setActiveMenu,f=u.navigationTree,p=l()("components-navigation__back-button",o),b=null===(n=f.getMenu(s))||void 0===n?void 0:n.title;return Object(c.createElement)(Kd,{className:p,href:i,isTertiary:!0,ref:t,onClick:function(e){"function"==typeof a&&a(e),s&&!e.defaultPrevented&&d(s,"right")}},Object(c.createElement)(Qi.a,{icon:Qd.a}),r||b||Object(S.__)("Back"))})),tf=Object(c.createContext)({menu:void 0,isActive:!1}),nf=function(){return Object(c.useContext)(tf)};function rf(e){var t=e.children,n=e.className,r=e.title;if(!nf().isActive)return t;var o=l()("components-navigation__group",n);return Object(c.createElement)("li",{className:o},r&&Object(c.createElement)(Ud,{as:"h3",className:"components-navigation__group-title",variant:"caption"},r),Object(c.createElement)("ul",null,t))}var of=n(214);function af(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?af(Object(n),!0).forEach((function(t){Object(P.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):af(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sf(e){var t=e.badge,n=e.children,r=e.className,i=e.href,u=e.item,d=e.navigateToMenu,f=e.onClick,p=void 0===f?s.noop:f,b=e.title,h=Object(a.a)(e,["badge","children","className","href","item","navigateToMenu","onClick","title"]);!function(e){var t=Bd().navigationTree,n=t.addItem,r=t.removeItem,o=nf().menu,i=e.item;Object(c.useEffect)((function(){return n(i,cf(cf({},e),{},{menu:o})),function(){r(i)}}),[])}(e);var v=Bd(),m=v.activeItem,y=v.setActiveMenu;if(!nf().isActive)return null;var g=l()("components-navigation__item",r,{"is-active":u&&m===u});return Object(c.createElement)(Gd,{className:g},n||Object(c.createElement)(qr.a,Object(o.a)({href:i,onClick:function(e){d&&y(d),p(e)}},h),b&&Object(c.createElement)(qd,{className:"components-navigation__item-title",variant:"body.small",as:"span"},b),t&&Object(c.createElement)($d,{className:"components-navigation__item-badge"},t),d&&Object(c.createElement)(Qi.a,{icon:of.a})))}function uf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uf(Object(n),!0).forEach((function(t){Object(P.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function df(e){var t=e.backButtonLabel,n=e.children,r=e.className,o=e.menu,i=void 0===o?"root":o,a=e.parentMenu,s=e.title,u=e.onBackButtonClick;!function(e){var t=Bd().navigationTree,n=t.addMenu,r=t.removeMenu,o=e.menu||"root";Object(c.useEffect)((function(){return n(o,lf(lf({},e),{},{menu:o})),function(){r(o)}}),[])}(e);var d=Bd().activeMenu===i,f=l()("components-navigation__menu",r),p={menu:i,isActive:d};return d?Object(c.createElement)(tf.Provider,{value:p},Object(c.createElement)(Vd,{className:f},(a||u)&&Object(c.createElement)(ef,{backButtonLabel:t,parentMenu:a,onClick:u}),s&&Object(c.createElement)(Wd,{as:"h2",className:"components-navigation__menu-title",variant:"subtitle"},s),Object(c.createElement)("ul",null,n))):Object(c.createElement)(tf.Provider,{value:p},n)}var ff=function(e){var t=e.className,n=e.status,r=void 0===n?"info":n,o=e.children,i=e.spokenMessage,a=void 0===i?o:i,u=e.onRemove,d=void 0===u?s.noop:u,f=e.isDismissible,p=void 0===f||f,b=e.actions,h=void 0===b?[]:b,v=e.politeness,m=void 0===v?function(e){switch(e){case"success":case"warning":case"info":return"polite";case"error":default:return"assertive"}}(r):v,y=e.__unstableHTML;!function(e,t){var n="string"==typeof e?e:Object(c.renderToString)(e);Object(c.useEffect)((function(){n&&Object(Zr.speak)(n,t)}),[n,t])}(a,m);var g=l()(t,"components-notice","is-"+r,{"is-dismissible":p});return y&&(o=Object(c.createElement)(c.RawHTML,null,o)),Object(c.createElement)("div",{className:g},Object(c.createElement)("div",{className:"components-notice__content"},o,h.map((function(e,t){var n=e.className,r=e.label,o=e.isPrimary,i=e.noDefaultClasses,a=void 0!==i&&i,s=e.onClick,u=e.url;return Object(c.createElement)(qr.a,{key:t,href:u,isPrimary:o,isSecondary:!a&&!u,isLink:!a&&!!u,onClick:u?void 0:s,className:l()("components-notice__action",n)},r)}))),p&&Object(c.createElement)(qr.a,{className:"components-notice__dismiss",icon:oa.a,label:Object(S.__)("Dismiss this notice"),onClick:d,showTooltip:!1}))};var pf=function(e){var t=e.notices,n=e.onRemove,r=void 0===n?s.noop:n,i=e.className,a=e.children;return i=l()("components-notice-list",i),Object(c.createElement)("div",{className:i},a,Object(Gr.a)(t).reverse().map((function(e){return Object(c.createElement)(ff,Object(o.a)({},Object(s.omit)(e,["content"]),{key:e.id,onRemove:(t=e.id,function(){return r(t)})}),e.content);var t})))};var bf=function(e){var t=e.label,n=e.children;return Object(c.createElement)("div",{className:"components-panel__header"},t&&Object(c.createElement)("h2",null,t),n)};var hf=Object(c.forwardRef)((function(e,t){var n=e.header,r=e.className,o=e.children,i=l()(r,"components-panel");return Object(c.createElement)("div",{className:i,ref:t},n&&Object(c.createElement)(bf,{label:n}),o)}));var vf=function(e){return function(t){e.forEach((function(e){"function"==typeof e?e(t):null!=e&&(e.current=t)}))}};var mf=Object(c.forwardRef)((function(e,t){var n=e.isOpened,r=e.icon,i=e.title,s=Object(a.a)(e,["isOpened","icon","title"]);return i?Object(c.createElement)("h2",{className:"components-panel__body-title"},Object(c.createElement)(qr.a,Object(o.a)({className:"components-panel__body-toggle","aria-expanded":n,ref:t},s),Object(c.createElement)("span",{"aria-hidden":"true"},Object(c.createElement)(fs.a,{className:"components-panel__arrow",icon:n?ia.a:aa.a})),i,r&&Object(c.createElement)(fs.a,{icon:r,className:"components-panel__icon",size:20}))):null})),yf=Object(c.forwardRef)((function(e,t){var n=e.children,r=e.className,o=e.icon,a=e.initialOpen,u=e.onToggle,d=void 0===u?s.noop:u,f=e.opened,p=e.title,b=e.scrollAfterOpen,h=void 0===b||b,v=yo(f,{initial:void 0===a||a}),m=Object(i.a)(v,2),y=m[0],g=m[1],O=Object(c.useRef)(),j=Object(E.useReducedMotion)()?"auto":"smooth",w=Object(c.useRef)();w.current=h,Er((function(){var e;y&&w.current&&(null===(e=O.current)||void 0===e?void 0:e.scrollIntoView)&&O.current.scrollIntoView({inline:"nearest",block:"nearest",behavior:j})}),[y,j]);var k=l()("components-panel__body",r,{"is-opened":y});return Object(c.createElement)("div",{className:k,ref:vf([O,t])},Object(c.createElement)(mf,{icon:o,isOpened:y,onClick:function(e){e.preventDefault();var t=!y;g(t),d(t)},title:p}),"function"==typeof n?n({opened:y}):y&&n)}));yf.displayName="PanelBody";var gf=yf;var Of=function(e){var t=e.className,n=e.children,r=l()("components-panel__row",t);return Object(c.createElement)("div",{className:r},n)};var jf=function(e){var t,n=e.icon,r=e.children,s=e.label,u=e.instructions,d=e.className,f=e.notices,p=e.preview,b=e.isColumnLayout,h=Object(a.a)(e,["icon","children","label","instructions","className","notices","preview","isColumnLayout"]),v=Object(E.useResizeObserver)(),m=Object(i.a)(v,2),y=m[0],g=m[1].width;"number"==typeof g&&(t={"is-large":g>=320,"is-medium":g>=160&&g<320,"is-small":g<160});var O=l()("components-placeholder",d,t),j=l()("components-placeholder__fieldset",{"is-column-layout":b});return Object(c.createElement)("div",Object(o.a)({},h,{className:O}),y,f,p&&Object(c.createElement)("div",{className:"components-placeholder__preview"},p),Object(c.createElement)("div",{className:"components-placeholder__label"},Object(c.createElement)(fs.a,{icon:n}),s),!!u&&Object(c.createElement)("div",{className:"components-placeholder__instructions"},u),Object(c.createElement)("div",{className:j},r))};function wf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wf(Object(n),!0).forEach((function(t){Object(P.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _f(e){var t=e.map((function(e){return kf({children:[],parent:null},e)})),n=Object(s.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 kf(kf({},t),{},{children:r&&r.length?e(r):[]})}))}(n[0]||[])}function Sf(e){var t=e.label,n=e.noOptionLabel,r=e.onChange,i=e.selectedId,u=e.tree,l=Object(a.a)(e,["label","noOptionLabel","onChange","selectedId","tree"]),d=Object(s.compact)([n&&{value:"",label:n}].concat(Object(Gr.a)(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object(s.flatMap)(t,(function(t){return[{value:t.id,label:Object(s.repeat)(" ",3*n)+Object(s.unescape)(t.name)}].concat(Object(Gr.a)(e(t.children||[],n+1)))}))}(u))));return Object(c.createElement)(vs,Object(o.a)({label:t,options:d,onChange:r},{value:i},l))}function Ef(e){var t=e.label,n=e.noOptionLabel,r=e.categoriesList,i=e.selectedCategoryId,s=e.onChange,u=Object(a.a)(e,["label","noOptionLabel","categoriesList","selectedCategoryId","onChange"]),l=_f(r);return Object(c.createElement)(Sf,Object(o.a)({label:t,noOptionLabel:n,onChange:s},{tree:l,selectedId:i},u))}function xf(e){var t=e.label,n=e.noOptionLabel,r=e.authorList,i=e.selectedAuthorId,a=e.onChange;if(!r)return null;var s=_f(r);return Object(c.createElement)(Sf,Object(o.a)({label:t,noOptionLabel:n,onChange:a},{tree:s,selectedId:i}))}function Cf(e){var t=e.authorList,n=e.selectedAuthorId,r=e.categoriesList,o=e.selectedCategoryId,a=e.categorySuggestions,s=e.selectedCategories,u=e.numberOfItems,l=e.order,d=e.orderBy,f=e.maxItems,p=void 0===f?100:f,b=e.minItems,h=void 0===b?1:b,v=e.onCategoryChange,m=e.onAuthorChange,y=e.onNumberOfItemsChange,g=e.onOrderChange,O=e.onOrderByChange;return[g&&O&&Object(c.createElement)(vs,{key:"query-controls-order-select",label:Object(S.__)("Order by"),value:"".concat(d,"/").concat(l),options:[{label:Object(S.__)("Newest to oldest"),value:"date/desc"},{label:Object(S.__)("Oldest to newest"),value:"date/asc"},{label:Object(S.__)("A → Z"),value:"title/asc"},{label:Object(S.__)("Z → A"),value:"title/desc"}],onChange:function(e){var t=e.split("/"),n=Object(i.a)(t,2),r=n[0],o=n[1];o!==l&&g(o),r!==d&&O(r)}}),r&&v&&Object(c.createElement)(Ef,{key:"query-controls-category-select",categoriesList:r,label:Object(S.__)("Category"),noOptionLabel:Object(S.__)("All"),selectedCategoryId:o,onChange:v}),a&&v&&Object(c.createElement)(Cl,{key:"query-controls-categories-select",label:Object(S.__)("Categories"),value:s&&s.map((function(e){return{id:e.id,value:e.name||e.value}})),suggestions:Object.keys(a),onChange:v,maxSuggestions:20}),m&&Object(c.createElement)(xf,{key:"query-controls-author-select",authorList:t,label:Object(S.__)("Author"),noOptionLabel:Object(S.__)("All"),selectedAuthorId:n,onChange:m}),y&&Object(c.createElement)(hl,{key:"query-controls-range-control",label:Object(S.__)("Number of items"),value:u,onChange:y,min:h,max:p,required:!0})]}n(81);var Pf=n(48),Df=n(126),Mf=(n(108),n(62));function Tf(e){void 0===e&&(e={});var t=Object(Mf.a)(e),n=t.state,r=t.loop,o=void 0===r||r,i=Object(p.a)(t,["state","loop"]),a=Object(v.useState)(n),c=a[0],s=a[1],u=Object(d.g)(Object(p.b)(Object(p.b)({},i),{},{loop:o}));return Object(p.b)(Object(p.b)({},u),{},{state:c,setState:s})}var If=[].concat(d.g.__keys,["state","setState"]);function Rf(e){return void 0!==e.checked?e.checked:void 0!==e.value&&e.state===e.value}function Nf(e,t){var n=Object(Df.a)(e,"change");Object.defineProperties(n,{type:{value:"change"},target:{value:e},currentTarget:{value:e}}),null==t||t(n)}Tf.__keys=If;var Af=Object(h.a)({name:"Radio",compose:x.b,useState:Tf,keys:["value","checked","unstable_checkOnFocus"],useOptions:function(e,t){var n,r=t.value,o=t.checked,i=e.unstable_clickOnEnter,a=void 0!==i&&i,c=e.unstable_checkOnFocus,s=void 0===c||c,u=Object(p.a)(e,["unstable_clickOnEnter","unstable_checkOnFocus"]);return Object(p.b)(Object(p.b)({checked:o,unstable_clickOnEnter:a,unstable_checkOnFocus:s},u),{},{value:null!=(n=u.value)?n:r})},useProps:function(e,t){var n=t.ref,r=t.onChange,o=t.onClick,i=Object(p.a)(t,["ref","onChange","onClick"]),a=Object(v.useRef)(null),c=Object(v.useState)(!0),s=c[0],u=c[1],l=Rf(e),d=Object(Pf.a)(e.currentId===e.id),f=Object(Pf.a)(r),b=Object(Pf.a)(o);!function(e){var t=Object(v.useState)((function(){return Rf(e)}))[0],n=Object(v.useState)(e.currentId)[0],r=e.id,o=e.setCurrentId;Object(v.useEffect)((function(){t&&r&&n!==r&&(null==o||o(r))}),[t,r,o,n])}(e),Object(v.useEffect)((function(){var e=a.current;e&&("INPUT"===e.tagName&&"radio"===e.type||u(!1))}),[]);var h=Object(v.useCallback)((function(t){var n,r;null===(n=f.current)||void 0===n||n.call(f,t),t.defaultPrevented||e.disabled||null===(r=e.setState)||void 0===r||r.call(e,e.value)}),[e.disabled,e.setState,e.value]),m=Object(v.useCallback)((function(e){var t;null===(t=b.current)||void 0===t||t.call(b,e),e.defaultPrevented||Nf(e.currentTarget,h)}),[h]);return Object(v.useEffect)((function(){var t=a.current;t&&e.unstable_moves&&d.current&&e.unstable_checkOnFocus&&Nf(t,h)}),[e.unstable_moves,e.unstable_checkOnFocus,h]),Object(p.b)({ref:Object(y.a)(a,n),role:s?void 0:"radio",type:s?"radio":void 0,value:s?e.value:void 0,"aria-checked":l,checked:l,onChange:h,onClick:m},i)}}),Lf=Object(b.a)({as:"input",memo:!0,useHook:Af}),Ff=Object(c.createContext)({state:null,setState:function(){}});var zf=Object(c.forwardRef)((function(e,t){var n=e.children,r=e.value,i=Object(a.a)(e,["children","value"]),s=Object(c.useContext)(Ff),u=s.state===r;return Object(c.createElement)(Lf,Object(o.a)({ref:t,as:qr.a,isPrimary:u,isSecondary:!u,value:r},s,i),n||r)})),Bf=n(79),Hf=Object(h.a)({name:"RadioGroup",compose:f.b,useState:Tf,useProps:function(e,t){return Object(p.b)({role:"radiogroup"},t)}}),Vf=Object(b.a)({as:"div",useHook:Hf,useCreateElement:function(e,t,n){return Object(Bf.a)(e,t,n)}});function Kf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kf(Object(n),!0).forEach((function(t){Object(P.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Uf=Object(c.forwardRef)((function(e,t){var n=e.label,r=e.checked,i=e.defaultChecked,s=e.disabled,u=e.onChange,l=Object(a.a)(e,["label","checked","defaultChecked","disabled","onChange"]),d=Tf({state:i,baseId:l.id}),f=Wf(Wf({},d),{},{disabled:s,state:r||d.state,setState:u||d.setState});return Object(c.createElement)(Ff.Provider,{value:f},Object(c.createElement)(Vf,Object(o.a)({ref:t,as:ji,"aria-label":n},d,l)))}));function Gf(e){var t=e.label,n=e.className,r=e.selected,o=e.help,i=e.onChange,a=e.options,u=void 0===a?[]:a,d=Object(E.useInstanceId)(Gf),f="inspector-radio-control-".concat(d),p=function(e){return i(e.target.value)};return!Object(s.isEmpty)(u)&&Object(c.createElement)(yt,{label:t,id:f,help:o,className:l()(n,"components-radio-control")},u.map((function(e,t){return Object(c.createElement)("div",{key:"".concat(f,"-").concat(t),className:"components-radio-control__option"},Object(c.createElement)("input",{id:"".concat(f,"-").concat(t),className:"components-radio-control__input",type:"radio",name:f,value:e.value,onChange:p,checked:e.value===r,"aria-describedby":o?"".concat(f,"__help"):void 0}),Object(c.createElement)("label",{htmlFor:"".concat(f,"-").concat(t)},e.label))})))}var $f,qf=($f=function(e,t){return($f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}$f(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Yf=function(){return(Yf=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Zf={top:{width:"100%",height:"10px",top:"-5px",left:"0px",cursor:"row-resize"},right:{width:"10px",height:"100%",top:"0px",right:"-5px",cursor:"col-resize"},bottom:{width:"100%",height:"10px",bottom:"-5px",left:"0px",cursor:"row-resize"},left:{width:"10px",height:"100%",top:"0px",left:"-5px",cursor:"col-resize"},topRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",top:"-10px",cursor:"ne-resize"},bottomRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",bottom:"-10px",cursor:"se-resize"},bottomLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",bottom:"-10px",cursor:"sw-resize"},topLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",top:"-10px",cursor:"nw-resize"}},Xf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){t.props.onResizeStart(e,t.props.direction)},t.onTouchStart=function(e){t.props.onResizeStart(e,t.props.direction)},t}return qf(t,e),t.prototype.render=function(){return v.createElement("div",{className:this.props.className||"",style:Yf(Yf({position:"absolute",userSelect:"none"},Zf[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(v.PureComponent),Jf=n(119),Qf=n.n(Jf),ep=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),tp=function(){return(tp=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},np={width:"auto",height:"auto"},rp=Qf()((function(e,t,n){return Math.max(Math.min(e,n),t)})),op=Qf()((function(e,t){return Math.round(e/t)*t})),ip=Qf()((function(e,t){return new RegExp(e,"i").test(t)})),ap=function(e){return Boolean(e.touches&&e.touches.length)},cp=Qf()((function(e,t,n){void 0===n&&(n=0);var r=t.reduce((function(n,r,o){return Math.abs(r-e)<Math.abs(t[n]-e)?o:n}),0),o=Math.abs(t[r]-e);return 0===n||o<n?t[r]:e})),sp=Qf()((function(e,t){return e.substr(e.length-t.length,t.length)===t})),up=Qf()((function(e){return"auto"===(e=e.toString())||sp(e,"px")||sp(e,"%")||sp(e,"vh")||sp(e,"vw")||sp(e,"vmax")||sp(e,"vmin")?e:e+"px"})),lp=function(e,t,n,r){if(e&&"string"==typeof e){if(sp(e,"px"))return Number(e.replace("px",""));if(sp(e,"%"))return t*(Number(e.replace("%",""))/100);if(sp(e,"vw"))return n*(Number(e.replace("vw",""))/100);if(sp(e,"vh"))return r*(Number(e.replace("vh",""))/100)}return e},dp=Qf()((function(e,t,n,r,o,i,a){return r=lp(r,e.width,t,n),o=lp(o,e.height,t,n),i=lp(i,e.width,t,n),a=lp(a,e.height,t,n),{maxWidth:void 0===r?void 0:Number(r),maxHeight:void 0===o?void 0:Number(o),minWidth:void 0===i?void 0:Number(i),minHeight:void 0===a?void 0:Number(a)}})),fp=["as","style","className","grid","snap","bounds","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],pp=function(e){function t(t){var n=e.call(this,t)||this;return n.ratio=1,n.resizable=null,n.parentLeft=0,n.parentTop=0,n.resizableLeft=0,n.resizableTop=0,n.targetLeft=0,n.targetTop=0,n.appendBase=function(){if(!n.resizable||!n.window)return null;var e=n.parentNode;if(!e)return null;var t=n.window.document.createElement("div");return t.style.width="100%",t.style.height="100%",t.style.position="absolute",t.style.transform="scale(0, 0)",t.style.left="0",t.style.flex="0",t.classList?t.classList.add("__resizable_base__"):t.className+="__resizable_base__",e.appendChild(t),t},n.removeBase=function(e){var t=n.parentNode;t&&t.removeChild(e)},n.ref=function(e){e&&(n.resizable=e)},n.state={isResizing:!1,width:void 0===(n.propsSize&&n.propsSize.width)?"auto":n.propsSize&&n.propsSize.width,height:void 0===(n.propsSize&&n.propsSize.height)?"auto":n.propsSize&&n.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},n.onResizeStart=n.onResizeStart.bind(n),n.onMouseMove=n.onMouseMove.bind(n),n.onMouseUp=n.onMouseUp.bind(n),n}return ep(t,e),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return this.resizable&&this.resizable.ownerDocument?this.resizable.ownerDocument.defaultView:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||np},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var e=0,t=0;if(this.resizable&&this.window){var n=this.resizable.offsetWidth,r=this.resizable.offsetHeight,o=this.resizable.style.position;"relative"!==o&&(this.resizable.style.position="relative"),e="auto"!==this.resizable.style.width?this.resizable.offsetWidth:n,t="auto"!==this.resizable.style.height?this.resizable.offsetHeight:r,this.resizable.style.position=o}return{width:e,height:t}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var e=this,t=this.props.size,n=function(t){if(void 0===e.state[t]||"auto"===e.state[t])return"auto";if(e.propsSize&&e.propsSize[t]&&sp(e.propsSize[t].toString(),"%")){if(sp(e.state[t].toString(),"%"))return e.state[t].toString();var n=e.getParentSize();return Number(e.state[t].toString().replace("px",""))/n[t]*100+"%"}return up(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?up(t.width):n("width"),height:t&&void 0!==t.height&&!this.state.isResizing?up(t.height):n("height")}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var e=this.appendBase();if(!e)return{width:0,height:0};var t=!1,n=this.parentNode.style.flexWrap;"wrap"!==n&&(t=!0,this.parentNode.style.flexWrap="wrap"),e.style.position="relative",e.style.minWidth="100%";var r={width:e.offsetWidth,height:e.offsetHeight};return t&&(this.parentNode.style.flexWrap=n),this.removeBase(e),r},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(this.resizable&&this.window){var e=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:"auto"!==e.flexBasis?e.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(e,t){var n=this.propsSize&&this.propsSize[t];return"auto"!==this.state[t]||this.state.original[t]!==e||void 0!==n&&"auto"!==n?e:"auto"},t.prototype.calculateNewMaxFromBoundary=function(e,t){if("parent"===this.props.bounds){var n=this.parentNode;if(n){var r=n.offsetWidth+(this.parentLeft-this.resizableLeft),o=n.offsetHeight+(this.parentTop-this.resizableTop);e=e&&e<r?e:r,t=t&&t<o?t:o}}else if("window"===this.props.bounds){if(this.window){r=this.window.innerWidth-this.resizableLeft,o=this.window.innerHeight-this.resizableTop;e=e&&e<r?e:r,t=t&&t<o?t:o}}else if(this.props.bounds){r=this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),o=this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop);e=e&&e<r?e:r,t=t&&t<o?t:o}return{maxWidth:e,maxHeight:t}},t.prototype.calculateNewSizeFromDirection=function(e,t){var n=this.props.scale||1,r=this.props.resizeRatio||1,o=this.state,i=o.direction,a=o.original,c=this.props,s=c.lockAspectRatio,u=c.lockAspectRatioExtraHeight,l=c.lockAspectRatioExtraWidth,d=a.width,f=a.height,p=u||0,b=l||0;return ip("right",i)&&(d=a.width+(e-a.x)*r/n,s&&(f=(d-b)/this.ratio+p)),ip("left",i)&&(d=a.width-(e-a.x)*r/n,s&&(f=(d-b)/this.ratio+p)),ip("bottom",i)&&(f=a.height+(t-a.y)*r/n,s&&(d=(f-p)*this.ratio+b)),ip("top",i)&&(f=a.height-(t-a.y)*r/n,s&&(d=(f-p)*this.ratio+b)),{newWidth:d,newHeight:f}},t.prototype.calculateNewSizeFromAspectRatio=function(e,t,n,r){var o=this.props,i=o.lockAspectRatio,a=o.lockAspectRatioExtraHeight,c=o.lockAspectRatioExtraWidth,s=void 0===r.width?10:r.width,u=void 0===n.width||n.width<0?e:n.width,l=void 0===r.height?10:r.height,d=void 0===n.height||n.height<0?t:n.height,f=a||0,p=c||0;if(i){var b=(l-f)*this.ratio+p,h=(d-f)*this.ratio+p,v=(s-p)/this.ratio+f,m=(u-p)/this.ratio+f,y=Math.max(s,b),g=Math.min(u,h),O=Math.max(l,v),j=Math.min(d,m);e=rp(e,y,g),t=rp(t,O,j)}else e=rp(e,s,u),t=rp(t,l,d);return{newWidth:e,newHeight:t}},t.prototype.setBoundingClientRect=function(){if("parent"===this.props.bounds){var e=this.parentNode;if(e){var t=e.getBoundingClientRect();this.parentLeft=t.left,this.parentTop=t.top}}if(this.props.bounds&&"string"!=typeof this.props.bounds){var n=this.props.bounds.getBoundingClientRect();this.targetLeft=n.left,this.targetTop=n.top}if(this.resizable){var r=this.resizable.getBoundingClientRect(),o=r.left,i=r.top;this.resizableLeft=o,this.resizableTop=i}},t.prototype.onResizeStart=function(e,t){if(this.resizable&&this.window){var n,r=0,o=0;if(e.nativeEvent&&function(e){return Boolean((e.clientX||0===e.clientX)&&(e.clientY||0===e.clientY))}(e.nativeEvent)){if(r=e.nativeEvent.clientX,o=e.nativeEvent.clientY,3===e.nativeEvent.which)return}else e.nativeEvent&&ap(e.nativeEvent)&&(r=e.nativeEvent.touches[0].clientX,o=e.nativeEvent.touches[0].clientY);if(this.props.onResizeStart)if(this.resizable)if(!1===this.props.onResizeStart(e,t,this.resizable))return;this.props.size&&(void 0!==this.props.size.height&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),void 0!==this.props.size.width&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio="number"==typeof this.props.lockAspectRatio?this.props.lockAspectRatio:this.size.width/this.size.height;var i=this.window.getComputedStyle(this.resizable);if("auto"!==i.flexBasis){var a=this.parentNode;if(a){var c=this.window.getComputedStyle(a).flexDirection;this.flexDir=c.startsWith("row")?"row":"column",n=i.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var s={original:{x:r,y:o,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:tp(tp({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(e.target).cursor||"auto"}),direction:t,flexBasis:n};this.setState(s)}},t.prototype.onMouseMove=function(e){if(this.state.isResizing&&this.resizable&&this.window){if(this.window.TouchEvent&&ap(e))try{e.preventDefault(),e.stopPropagation()}catch(e){}var t=this.props,n=t.maxWidth,r=t.maxHeight,o=t.minWidth,i=t.minHeight,a=ap(e)?e.touches[0].clientX:e.clientX,c=ap(e)?e.touches[0].clientY:e.clientY,s=this.state,u=s.direction,l=s.original,d=s.width,f=s.height,p=this.getParentSize(),b=dp(p,this.window.innerWidth,this.window.innerHeight,n,r,o,i);n=b.maxWidth,r=b.maxHeight,o=b.minWidth,i=b.minHeight;var h=this.calculateNewSizeFromDirection(a,c),v=h.newHeight,m=h.newWidth,y=this.calculateNewMaxFromBoundary(n,r),g=this.calculateNewSizeFromAspectRatio(m,v,{width:y.maxWidth,height:y.maxHeight},{width:o,height:i});if(m=g.newWidth,v=g.newHeight,this.props.grid){var O=op(m,this.props.grid[0]),j=op(v,this.props.grid[1]),w=this.props.snapGap||0;m=0===w||Math.abs(O-m)<=w?O:m,v=0===w||Math.abs(j-v)<=w?j:v}this.props.snap&&this.props.snap.x&&(m=cp(m,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(v=cp(v,this.props.snap.y,this.props.snapGap));var k={width:m-l.width,height:v-l.height};if(d&&"string"==typeof d)if(sp(d,"%"))m=m/p.width*100+"%";else if(sp(d,"vw")){m=m/this.window.innerWidth*100+"vw"}else if(sp(d,"vh")){m=m/this.window.innerHeight*100+"vh"}if(f&&"string"==typeof f)if(sp(f,"%"))v=v/p.height*100+"%";else if(sp(f,"vw")){v=v/this.window.innerWidth*100+"vw"}else if(sp(f,"vh")){v=v/this.window.innerHeight*100+"vh"}var _={width:this.createSizeForCssProperty(m,"width"),height:this.createSizeForCssProperty(v,"height")};"row"===this.flexDir?_.flexBasis=_.width:"column"===this.flexDir&&(_.flexBasis=_.height),this.setState(_),this.props.onResize&&this.props.onResize(e,u,this.resizable,k)}},t.prototype.onMouseUp=function(e){var t=this.state,n=t.isResizing,r=t.direction,o=t.original;if(n&&this.resizable){var i={width:this.size.width-o.width,height:this.size.height-o.height};this.props.onResizeStop&&this.props.onResizeStop(e,r,this.resizable,i),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:tp(tp({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(e){this.setState({width:e.width,height:e.height})},t.prototype.renderResizer=function(){var e=this,t=this.props,n=t.enable,r=t.handleStyles,o=t.handleClasses,i=t.handleWrapperStyle,a=t.handleWrapperClass,c=t.handleComponent;if(!n)return null;var s=Object.keys(n).map((function(t){return!1!==n[t]?v.createElement(Xf,{key:t,direction:t,onResizeStart:e.onResizeStart,replaceStyles:r&&r[t],className:o&&o[t]},c&&c[t]?c[t]:null):null}));return v.createElement("span",{className:a,style:i},s)},t.prototype.render=function(){var e=this,t=Object.keys(this.props).reduce((function(t,n){return-1!==fp.indexOf(n)||(t[n]=e.props[n]),t}),{}),n=tp(tp(tp({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(n.flexBasis=this.state.flexBasis);var r=this.props.as||"div";return v.createElement(r,tp({ref:this.ref,style:n,className:this.props.className},t),this.state.isResizing&&v.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(v.PureComponent),bp=n(152),hp=n.n(bp),vp=window,mp=vp.clearTimeout,yp=vp.setTimeout,gp="bottom",Op="corner";function jp(e){var t=e.axis,n=e.fadeTimeout,r=void 0===n?180:n,o=e.onResize,a=void 0===o?s.noop:o,u=e.position,l=void 0===u?gp:u,d=e.showPx,f=void 0!==d&&d,p=hp()(),b=Object(i.a)(p,2),h=b[0],v=b[1],m=!!t,y=Object(c.useState)(!1),g=Object(i.a)(y,2),O=g[0],j=g[1],w=Object(c.useState)(!1),k=Object(i.a)(w,2),_=k[0],S=k[1],E=Object(c.useRef)(D),x=Object(c.useRef)(P),C=Object(c.useRef)(),P=v.width,D=v.height,M=function(){m||(j(!1),S(!1))};return Object(c.useEffect)((function(){if(null!==P||null!==D){var e=P!==x.current,t=D!==E.current;if(e||t){if(P&&!x.current&&D&&!E.current)return x.current=P,void(E.current=D);e&&(j(!0),x.current=P),t&&(S(!0),E.current=D),a({width:P,height:D}),C.current&&mp(C.current),C.current=yp(M,r)}}}),[P,D]),{label:function(e){var t=e.axis,n=e.height,r=e.moveX,o=void 0!==r&&r,i=e.moveY,a=void 0!==i&&i,c=e.position,s=void 0===c?gp:c,u=e.showPx,l=void 0!==u&&u,d=e.width;if(!o&&!a)return null;if(s===Op)return"".concat(d," x ").concat(n);var f=l?" px":"";if(t){if("x"===t&&o)return"".concat(d).concat(f);if("y"===t&&a)return"".concat(n).concat(f)}if(o&&a)return"".concat(d," x ").concat(n);if(o)return"".concat(d).concat(f);if(a)return"".concat(n).concat(f);return null}({axis:t,height:D,moveX:O,moveY:_,position:l,showPx:f,width:P}),resizeListener:h}}var wp=je("div",{target:"ekdag500",label:"Root"})({name:"mt2ez5",styles:"bottom:0;box-sizing:border-box;left:0;pointer-events:none;position:absolute;right:0;top:0;"}),kp=je("div",{target:"ekdag501",label:"TooltipWrapper"})({name:"1kllayo",styles:"align-items:center;box-sizing:border-box;display:inline-flex;justify-content:center;opacity:0;pointer-events:none;transition:opacity 120ms linear;"}),_p=je("div",{target:"ekdag502",label:"Tooltip"})("background:",Fe("ui.border"),";border-radius:2px;box-sizing:border-box;font-size:12px;color:",Fe("ui.textDark"),";padding:4px 8px;position:relative;"),Sp=je(Xt,{target:"ekdag503",label:"LabelText"})("&&&{",Zt,";display:block;font-size:13px;line-height:1.4;}");function Ep(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ep(Object(n),!0).forEach((function(t){Object(P.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ep(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Cp=Object(c.forwardRef)((function(e,t){var n=e.label,r=e.position,i=void 0===r?Op:r,s=e.zIndex,u=void 0===s?1e3:s,l=Object(a.a)(e,["label","position","zIndex"]),d=Qe(),f=!!n,p=i===Op;if(!f)return null;var b={opacity:f?1:null,zIndex:u},h={};return i===gp&&(b=xp(xp({},b),{},{position:"absolute",bottom:-10,left:"50%",transform:"translate(-50%, 0)"}),h={transform:"translate(0, 100%)"}),p&&(b=xp(xp({},b),{},{position:"absolute",top:4,right:d?null:4,left:d?4:null})),Object(c.createElement)(kp,Object(o.a)({"aria-hidden":"true",className:"components-resizable-tooltip__tooltip-wrapper",isActive:f,ref:t,style:b},l),Object(c.createElement)(_p,{className:"components-resizable-tooltip__tooltip",style:h},Object(c.createElement)(Sp,{as:"span"},n)))}));var Pp=Object(c.forwardRef)((function(e,t){var n=e.axis,r=e.className,i=e.fadeTimeout,u=void 0===i?180:i,d=e.isVisible,f=void 0===d||d,p=e.labelRef,b=e.onResize,h=void 0===b?s.noop:b,v=e.position,m=void 0===v?gp:v,y=e.showPx,g=void 0===y||y,O=e.zIndex,j=void 0===O?1e3:O,w=Object(a.a)(e,["axis","className","fadeTimeout","isVisible","labelRef","onResize","position","showPx","zIndex"]),k=jp({axis:n,fadeTimeout:u,onResize:h,showPx:g,position:m}),_=k.label,S=k.resizeListener;if(!f)return null;var E=l()("components-resize-tooltip",r);return Object(c.createElement)(wp,Object(o.a)({"aria-hidden":"true",className:E,ref:t},w),S,Object(c.createElement)(Cp,{"aria-hidden":w["aria-hidden"],fadeTimeout:u,isVisible:f,label:_,position:m,ref:p,zIndex:j}))}));var Dp=function(e){var t=e.className,n=e.children,r=e.showHandle,i=void 0===r||r,s=e.__experimentalShowTooltip,u=void 0!==s&&s,d=e.__experimentalTooltipProps,f=void 0===d?{}:d,p=Object(a.a)(e,["className","children","showHandle","__experimentalShowTooltip","__experimentalTooltipProps"]),b={width:null,height:null,top:null,right:null,bottom:null,left:null},h="components-resizable-box__handle",v="components-resizable-box__side-handle",m="components-resizable-box__corner-handle";return Object(c.createElement)(pp,Object(o.a)({className:l()("components-resizable-box__container",i&&"has-show-handle",t),handleClasses:{top:l()(h,v,"components-resizable-box__handle-top"),right:l()(h,v,"components-resizable-box__handle-right"),bottom:l()(h,v,"components-resizable-box__handle-bottom"),left:l()(h,v,"components-resizable-box__handle-left"),topLeft:l()(h,m,"components-resizable-box__handle-top","components-resizable-box__handle-left"),topRight:l()(h,m,"components-resizable-box__handle-top","components-resizable-box__handle-right"),bottomRight:l()(h,m,"components-resizable-box__handle-bottom","components-resizable-box__handle-right"),bottomLeft:l()(h,m,"components-resizable-box__handle-bottom","components-resizable-box__handle-left")},handleStyles:{top:b,right:b,bottom:b,left:b,topLeft:b,topRight:b,bottomRight:b,bottomLeft:b}},p),n,u&&Object(c.createElement)(Pp,f))};var Mp=function(e){var t=e.naturalWidth,n=e.naturalHeight,r=e.children,o=e.isInline,a=void 0!==o&&o,s=Object(E.useResizeObserver)(),u=Object(i.a)(s,2),d=u[0],f=u[1].width;if(1!==c.Children.count(r))return null;var p={paddingBottom:t<f?n:n/t*100+"%"},b=a?"span":"div";return Object(c.createElement)(b,{className:"components-responsive-wrapper"},d,Object(c.createElement)(b,{style:p}),Object(c.cloneElement)(r,{className:l()("components-responsive-wrapper__content",r.props.className)}))};function Tp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ha.a)(e);if(t){var o=Object(ha.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ba.a)(this,n)}}var Ip=function(e){Object(pa.a)(n,e);var t=Tp(n);function n(){var e;return Object(la.a)(this,n),(e=t.apply(this,arguments)).trySandbox=e.trySandbox.bind(Object(fa.a)(e)),e.checkMessageForResize=e.checkMessageForResize.bind(Object(fa.a)(e)),e.iframe=Object(c.createRef)(),e.state={width:0,height:0},e}return Object(da.a)(n,[{key:"componentDidMount",value:function(){var e=this;this.trySandbox(),this.trySandboxWithoutRerender=function(){e.trySandbox(!1)},this.iframe.current.addEventListener("load",this.trySandboxWithoutRerender,!1)}},{key:"componentDidUpdate",value:function(e){var t=e.html!==this.props.html;this.trySandbox(t)}},{key:"componentWillUnmount",value:function(){this.iframe.current.removeEventListener("load",this.trySandboxWithoutRerender)}},{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,i=r.width,a=r.height,c=this.state,s=c.width,u=c.height;"resize"!==o||s===i&&u===a||this.setState({width:i,height:a})}}},{key:"trySandbox",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.isFrameAccessible()){var t=this.iframe.current.contentDocument.body;if(e||null===t.getAttribute("data-resizable-iframe-connected")){var n="\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} )();",r="\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",o=Object(c.createElement)("html",{lang:document.documentElement.lang,className:this.props.type},Object(c.createElement)("head",null,Object(c.createElement)("title",null,this.props.title),Object(c.createElement)("style",{dangerouslySetInnerHTML:{__html:r}}),this.props.styles&&this.props.styles.map((function(e,t){return Object(c.createElement)("style",{key:t,dangerouslySetInnerHTML:{__html:e}})}))),Object(c.createElement)("body",{"data-resizable-iframe-connected":"data-resizable-iframe-connected",className:this.props.type},Object(c.createElement)("div",{dangerouslySetInnerHTML:{__html:this.props.html}}),Object(c.createElement)("script",{type:"text/javascript",dangerouslySetInnerHTML:{__html:n}}),this.props.scripts&&this.props.scripts.map((function(e){return Object(c.createElement)("script",{key:e,src:e})})))),i=this.iframe.current.contentWindow.document;i.open(),i.write("<!DOCTYPE html>"+Object(c.renderToString)(o)),i.close()}}}},{key:"render",value:function(){var e=this.props,t=e.title,n=e.onFocus;return Object(c.createElement)(Fu,{iframeRef:this.iframe,title:t,className:"components-sandbox",sandbox:"allow-scripts allow-same-origin allow-presentation",onFocus:n,width:Math.ceil(this.state.width),height:Math.ceil(this.state.height)})}}],[{key:"defaultProps",get:function(){return{html:"",title:""}}}]),n}(c.Component),Rp=Ip=Object(E.withGlobalEvents)({message:"checkMessageForResize"})(Ip),Np=n(167),Ap=n(20),Lp=n.n(Ap),Fp=n(45),zp=n(115);var Bp=function(e){var t=e.notices,n=e.className,r=e.children,a=e.onRemove,u=void 0===a?s.noop:a,d=Object(E.useReducedMotion)(),f=Object(c.useState)((function(){return new WeakMap})),p=Object(i.a)(f,1)[0],b=Object(zp.useTransition)(t,(function(e){return e.id}),{from:{opacity:0,height:0},enter:function(e){return function(){var t=Object(Fp.a)(Lp.a.mark((function t(n){return Lp.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n({opacity:1,height:p.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(Fp.a)(Lp.a.mark((function e(t){return Lp.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:d});n=l()("components-snackbar-list",n);var h=function(e){return function(){return u(e.id)}};return Object(c.createElement)("div",{className:n},r,b.map((function(e){var t=e.item,n=e.key,r=e.props;return Object(c.createElement)(zp.animated.div,{key:n,style:r},Object(c.createElement)("div",{className:"components-snackbar-list__notice-container",ref:function(e){return e&&p.set(t,e)}},Object(c.createElement)(Np.a,Object(o.a)({},Object(s.omit)(t,["content"]),{onRemove:h(t)}),t.content)))})))};function Hp(){return Object(c.createElement)("span",{className:"components-spinner"})}var Vp=function(e){var t=e.tabId,n=e.onClick,r=e.children,i=e.selected,s=Object(a.a)(e,["tabId","onClick","children","selected"]);return Object(c.createElement)(qr.a,Object(o.a)({role:"tab",tabIndex:i?null:-1,"aria-selected":i,id:t,onClick:n},s),r)};function Kp(e){var t,n=e.className,r=e.children,o=e.tabs,a=e.initialTabName,u=e.orientation,d=void 0===u?"horizontal":u,f=e.activeClass,p=void 0===f?"is-active":f,b=e.onSelect,h=void 0===b?s.noop:b,v=Object(E.useInstanceId)(Kp,"tab-panel"),m=Object(c.useState)(null),y=Object(i.a)(m,2),g=y[0],O=y[1],j=function(e){O(e),h(e)},w=Object(s.find)(o,{name:g}),k="".concat(v,"-").concat(null!==(t=null==w?void 0:w.name)&&void 0!==t?t:"none");return Object(c.useEffect)((function(){Object(s.find)(o,{name:g})||O(a||(o.length>0?o[0].name:null))}),[o]),Object(c.createElement)("div",{className:n},Object(c.createElement)(Ys,{role:"tablist",orientation:d,onNavigate:function(e,t){t.click()},className:"components-tab-panel__tabs"},o.map((function(e){return Object(c.createElement)(Vp,{className:l()("components-tab-panel__tabs-item",e.className,Object(P.a)({},p,e.name===g)),tabId:"".concat(v,"-").concat(e.name),"aria-controls":"".concat(v,"-").concat(e.name,"-view"),selected:e.name===g,key:e.name,onClick:Object(s.partial)(j,e.name)},e.title)}))),w&&Object(c.createElement)("div",{"aria-labelledby":k,role:"tabpanel",id:"".concat(k,"-view"),className:"components-tab-panel__tab-content"},r(w)))}var Wp={radiusBlockUi:"2px",borderWidth:"1px",borderWidthFocus:"1.5px",borderWidthTab:"4px"},Up=function(e){return Wp[e]},Gp=le("box-shadow:0 0 0 transparent;transition:box-shadow 0.1s linear;border-radius:",Up("radiusBlockUi"),";border:",Up("borderWidth")," solid ",Fe("ui.border"),";",ze("transition"),";label:inputStyleNeutral;"),$p=le("border-color:var( --wp-admin-theme-color );box-shadow:0 0 0 calc( ",Up("borderWidthFocus")," - ",Up("borderWidth")," ) var( --wp-admin-theme-color );outline:2px solid transparent;;label:inputStyleFocus;"),qp={huge:"1440px",wide:"1280px","x-large":"1080px",large:"960px",medium:"782px",small:"600px",mobile:"480px","zoomed-in":"280px"},Yp=le("font-family:",dt("default.fontFamily"),";padding:6px 8px;",Gp,";font-size:",dt("mobileTextMinFontSize"),";line-height:normal;","@media (min-width: ".concat(qp["small"],")"),"{font-size:",dt("default.fontSize"),";line-height:normal;}&:focus{",$p,"}&::-webkit-input-placeholder{color:",Fe("darkGray.placeholder"),";}&::-moz-placeholder{opacity:1;color:",Fe("darkGray.placeholder"),";}&:-ms-input-placeholder{color:",Fe("darkGray.placeholder"),";}.is-dark-theme &{&::-webkit-input-placeholder{color:",Fe("lightGray.placeholder"),";}&::-moz-placeholder{opacity:1;color:",Fe("lightGray.placeholder"),";}&:-ms-input-placeholder{color:",Fe("lightGray.placeholder"),";}};label:inputControl;"),Zp=je("textarea",{target:"ebk7yr50",label:"StyledTextarea"})("width:100%;",Yp,"");function Xp(e){var t=e.label,n=e.hideLabelFromVision,r=e.value,i=e.help,s=e.onChange,u=e.rows,l=void 0===u?4:u,d=e.className,f=Object(a.a)(e,["label","hideLabelFromVision","value","help","onChange","rows","className"]),p=Object(E.useInstanceId)(Xp),b="inspector-textarea-control-".concat(p);return Object(c.createElement)(yt,{label:t,hideLabelFromVision:n,id:b,help:i,className:d},Object(c.createElement)(Zp,Object(o.a)({className:"components-textarea-control__input",id:b,rows:l,onChange:function(e){return s(e.target.value)},"aria-describedby":i?b+"__help":void 0,value:r},f)))}var Jp=function(e){var t=e.text,n=void 0===t?"":t,r=e.highlight,o=(void 0===r?"":r).trim();if(!o)return n;var i=new RegExp("(".concat(Object(s.escapeRegExp)(o),")"),"gi");return Object(c.createInterpolateElement)(n.replace(i,"<mark>$&</mark>"),{mark:Object(c.createElement)("mark",null)})};var Qp=function(e){return Object(c.createElement)("div",{className:"components-tip"},Object(c.createElement)(r.SVG,{width:"24",height:"24",viewBox:"0 0 24 24"},Object(c.createElement)(r.Path,{d:"M12 15.8c-3.7 0-6.8-3-6.8-6.8s3-6.8 6.8-6.8c3.7 0 6.8 3 6.8 6.8s-3.1 6.8-6.8 6.8zm0-12C9.1 3.8 6.8 6.1 6.8 9s2.4 5.2 5.2 5.2c2.9 0 5.2-2.4 5.2-5.2S14.9 3.8 12 3.8zM8 17.5h8V19H8zM10 20.5h4V22h-4z"})),Object(c.createElement)("p",null,e.children))};function eb(e){var t=e.label,n=e.checked,r=e.help,o=e.className,i=e.onChange;var a,u,d=Object(E.useInstanceId)(eb),f="inspector-toggle-control-".concat(d);return r&&(a=f+"__help",u=Object(s.isFunction)(r)?r(n):r),Object(c.createElement)(yt,{id:f,help:u,className:l()("components-toggle-control",o)},Object(c.createElement)(gl,{id:f,checked:n,onChange:function(e){i(e.target.checked)},"aria-describedby":a}),Object(c.createElement)("label",{htmlFor:f,className:"components-toggle-control__label"},t))}var tb=n(137),nb=n(91),rb=function(e){return Object(c.createElement)("div",{className:e.className},e.children)};var ob=Object(c.forwardRef)((function(e,t){var n=e.containerClassName,r=e.className,i=e.extraProps,s=e.children,u=e.title,d=e.isActive,f=e.isDisabled,p=Object(a.a)(e,["containerClassName","className","extraProps","children","title","isActive","isDisabled"]);return Object(c.useContext)(nb.a)?Object(c.createElement)(tb.a,Object(o.a)({className:l()("components-toolbar-button",r)},i,p,{ref:t}),(function(e){return Object(c.createElement)(qr.a,Object(o.a)({label:u,isPressed:d,disabled:f},e),s)})):Object(c.createElement)(rb,{className:n},Object(c.createElement)(qr.a,Object(o.a)({ref:t,icon:p.icon,label:u,shortcut:p.shortcut,"data-subscript":p.subscript,onClick:function(e){e.stopPropagation(),p.onClick&&p.onClick(e)},className:l()("components-toolbar__control",r),isPressed:d,disabled:f,"data-toolbar-item":!0},i,p),s))})),ib=function(e){var t=e.className,n=e.children,r=Object(a.a)(e,["className","children"]);return Object(c.createElement)("div",Object(o.a)({className:t},r),n)};function ab(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ab(Object(n),!0).forEach((function(t){Object(P.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ab(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var sb=function(e){var t=e.controls,n=void 0===t?[]:t,r=Object(a.a)(e,["controls"]),i=function(e){return Object(c.createElement)(Qs,Object(o.a)({controls:n,toggleProps:cb(cb({},e),{},{"data-toolbar-item":!0})},r))};return Object(c.useContext)(nb.a)?Object(c.createElement)(tb.a,null,i):i()};var ub=function(e){var t=e.controls,n=void 0===t?[]:t,r=e.children,i=e.className,u=e.isCollapsed,d=e.title,f=Object(a.a)(e,["controls","children","className","isCollapsed","title"]),p=Object(c.useContext)(nb.a);if(!(n&&n.length||r))return null;var b=l()(p?"components-toolbar-group":"components-toolbar",i),h=n;return Array.isArray(h[0])||(h=[h]),u?Object(c.createElement)(sb,Object(o.a)({label:d,controls:h,className:b,children:r},f)):Object(c.createElement)(ib,Object(o.a)({className:b},f),Object(s.flatMap)(h,(function(e,t){return e.map((function(e,n){return Object(c.createElement)(ob,Object(o.a)({key:[t,n].join(),containerClassName:t>0&&0===n?"has-left-divider":null},e))}))})),r)},lb=n(173),db=Object(h.a)({name:"Toolbar",compose:f.b,useState:lb.a,useProps:function(e,t){return Object(p.b)({role:"toolbar","aria-orientation":e.orientation},t)}}),fb=Object(b.a)({as:"div",useHook:db,useCreateElement:function(e,t,n){return Object(Bf.a)(e,t,n)}});var pb=Object(c.forwardRef)((function(e,t){var n=e.label,r=Object(a.a)(e,["label"]),i=Object(lb.a)({loop:!0,baseId:r.id,rtl:Je()});return Object(c.createElement)(nb.a.Provider,{value:i},Object(c.createElement)(fb,Object(o.a)({ref:t,"aria-label":n},i,r)))}));var bb=Object(c.forwardRef)((function(e,t){var n=e.className,r=e.label,i=Object(a.a)(e,["className","label"]);if(!r)return Ks()("Using Toolbar without label prop",{alternative:"ToolbarGroup component",link:"https://developer.wordpress.org/block-editor/components/toolbar/"}),Object(c.createElement)(ub,Object(o.a)({},i,{className:n}));var s=l()("components-accessible-toolbar",n);return Object(c.createElement)(pb,Object(o.a)({className:s,label:r,ref:t},i))})),hb=Object(c.createContext)(),vb=hb.Provider;function mb(e){var t=e.children,n=Object(c.useState)(),r=Object(i.a)(n,2),o=r[0],a=r[1],s=Object(c.useMemo)((function(){return{lastFocusedElement:o,setLastFocusedElement:a}}),[o]);return Object(c.createElement)(vb,{value:s},t)}function yb(e){var t=gs.focus.focusable.find(e);if(t&&t.length)return t.filter((function(t){return t.closest('[role="row"]')===e}))}var gb=Object(c.forwardRef)((function(e,t){var n=e.children,r=Object(a.a)(e,["children"]),i=Object(c.useCallback)((function(e){var t=e.keyCode,n=e.metaKey,r=e.ctrlKey,o=e.altKey,i=e.shiftKey;if(!(n||r||o||i)&&Object(s.includes)([pr.UP,pr.DOWN,pr.LEFT,pr.RIGHT],t)){e.stopPropagation();var a=document.activeElement,c=e.currentTarget;if(c.contains(a)){var u=a.closest('[role="row"]'),l=yb(u),d=l.indexOf(a);if(Object(s.includes)([pr.LEFT,pr.RIGHT],t)){var f;if((f=t===pr.LEFT?Math.max(0,d-1):Math.min(d+1,l.length-1))===d)return void e.preventDefault();l[f].focus(),e.preventDefault()}else if(Object(s.includes)([pr.UP,pr.DOWN],t)){var p,b=Array.from(c.querySelectorAll('[role="row"]')),h=b.indexOf(u);if((p=t===pr.UP?Math.max(0,h-1):Math.min(h+1,b.length-1))===h)return void e.preventDefault();var v=yb(b[p]);if(!v||!v.length)return void e.preventDefault();v[Math.min(d,v.length-1)].focus(),e.preventDefault()}}}}),[]);return Object(c.createElement)(mb,null,Object(c.createElement)("table",Object(o.a)({},r,{role:"treegrid",onKeyDown:i,ref:t}),Object(c.createElement)("tbody",null,n)))}));var Ob=Object(c.forwardRef)((function(e,t){var n=e.children,r=e.level,i=e.positionInSet,s=e.setSize,u=e.isExpanded,l=Object(a.a)(e,["children","level","positionInSet","setSize","isExpanded"]);return Object(c.createElement)("tr",Object(o.a)({},l,{ref:t,role:"row","aria-level":r,"aria-posinset":i,"aria-setsize":s,"aria-expanded":u}),n)}));function jb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var wb=Object(c.forwardRef)((function(e,t){var n,r=e.children,o=e.as,i=Object(a.a)(e,["children","as"]),s=Object(c.useRef)(),u=t||s,l=Object(c.useContext)(hb),d=l.lastFocusedElement,f=l.setLastFocusedElement;d&&(n=d===u.current?0:-1);var p=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jb(Object(n),!0).forEach((function(t){Object(P.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({ref:u,tabIndex:n,onFocus:function(e){return f(e.target)}},i);return"function"==typeof r?r(p):Object(c.createElement)(o,p,r)})),kb=Object(c.forwardRef)((function(e,t){var n=e.children,r=Object(a.a)(e,["children"]);return Object(c.createElement)(wb,Object(o.a)({ref:t},r),n)})),_b=Object(c.forwardRef)((function(e,t){var n=e.children,r=e.withoutGridItem,i=void 0!==r&&r,s=Object(a.a)(e,["children","withoutGridItem"]);return Object(c.createElement)("td",Object(o.a)({},s,{role:"gridcell"}),i?n:Object(c.createElement)(kb,{ref:t},n))})),Sb=n(125),Eb=n(129),xb=n(165),Cb={previous:["ctrl+shift+`",pr.rawShortcut.access("p")],next:["ctrl+`",pr.rawShortcut.access("n")]},Pb=Object(E.createHigherOrderComponent)((function(e){return function(t){var n=t.shortcuts,r=void 0===n?Cb:n,o=Object(a.a)(t,["shortcuts"]),s=Object(c.useRef)(),u=Object(c.useState)(!1),d=Object(i.a)(u,2),f=d[0],p=d[1],b=l()("components-navigate-regions",{"is-focusing-regions":f});function h(e){var t=Array.from(s.current.querySelectorAll('[role="region"]'));if(t.length){var n=t[0],r=t.indexOf(s.current.ownerDocument.activeElement);if(-1!==r){var o=r+e;n=t[o=(o=-1===o?t.length-1:o)===t.length?0:o]}n.focus(),p(!0)}}var v=Object(c.useCallback)((function(){return h(-1)}),[s]),m=Object(c.useCallback)((function(){return h(1)}),[s]);return Object(E.useKeyboardShortcut)(r.previous,v,{bindGlobal:!0}),Object(E.useKeyboardShortcut)(r.next,m,{bindGlobal:!0}),Object(c.createElement)("div",{ref:s,className:b,onClick:function(){return p(!1)}},Object(c.createElement)(e,o))}}),"navigateRegions");function Db(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ha.a)(e);if(t){var o=Object(ha.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ba.a)(this,n)}}var Mb=function(e){return Object(E.createHigherOrderComponent)((function(t){return function(n){Object(pa.a)(i,n);var r=Db(i);function i(){var e;return Object(la.a)(this,i),(e=r.apply(this,arguments)).nodeRef=e.props.node,e.state={fallbackStyles:void 0,grabStylesCompleted:!1},e.bindRef=e.bindRef.bind(Object(fa.a)(e)),e}return Object(da.a)(i,[{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(s.isEqual)(o,r)||this.setState({fallbackStyles:o,grabStylesCompleted:!!Object(s.every)(o)})}}},{key:"render",value:function(){var e=Object(c.createElement)(t,Object(o.a)({},this.props,this.state.fallbackStyles));return this.props.node?e:Object(c.createElement)("div",{ref:this.bindRef}," ",e," ")}}]),i}(c.Component)}),"withFallbackStyles")},Tb=n(33);function Ib(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ha.a)(e);if(t){var o=Object(ha.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ba.a)(this,n)}}function Rb(e){return Object(E.createHigherOrderComponent)((function(t){var n,r="core/with-filters/"+e;function o(){void 0===n&&(n=Object(Tb.applyFilters)(e,t))}var i=function(e){Object(pa.a)(i,e);var t=Ib(i);function i(){var e;return Object(la.a)(this,i),e=t.apply(this,arguments),o(),e}return Object(da.a)(i,[{key:"componentDidMount",value:function(){i.instances.push(this),1===i.instances.length&&(Object(Tb.addAction)("hookRemoved",r,u),Object(Tb.addAction)("hookAdded",r,u))}},{key:"componentWillUnmount",value:function(){i.instances=Object(s.without)(i.instances,this),0===i.instances.length&&(Object(Tb.removeAction)("hookRemoved",r),Object(Tb.removeAction)("hookAdded",r))}},{key:"render",value:function(){return Object(c.createElement)(n,this.props)}}]),i}(c.Component);i.instances=[];var a=Object(s.debounce)((function(){n=Object(Tb.applyFilters)(e,t),i.instances.forEach((function(e){e.forceUpdate()}))}),16);function u(t){t===e&&a()}return i}),"withFilters")}var Nb=n(199),Ab="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),Lb=new Uint8Array(16);function Fb(){if(!Ab)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ab(Lb)}for(var zb=[],Bb=0;Bb<256;++Bb)zb[Bb]=(Bb+256).toString(16).substr(1);var Hb=function(e,t){var n=t||0,r=zb;return[r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]]].join("")};var Vb=function(e,t,n){var r=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var o=(e=e||{}).random||(e.rng||Fb)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t)for(var i=0;i<16;++i)t[r+i]=o[i];return t||Hb(o)};function Kb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kb(Object(n),!0).forEach((function(t){Object(P.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ub(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ha.a)(e);if(t){var o=Object(ha.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ba.a)(this,n)}}var Gb=Object(E.createHigherOrderComponent)((function(e){return function(t){Object(pa.a)(r,t);var n=Ub(r);function r(){var e;return Object(la.a)(this,r),(e=n.apply(this,arguments)).createNotice=e.createNotice.bind(Object(fa.a)(e)),e.createErrorNotice=e.createErrorNotice.bind(Object(fa.a)(e)),e.removeNotice=e.removeNotice.bind(Object(fa.a)(e)),e.removeAllNotices=e.removeAllNotices.bind(Object(fa.a)(e)),e.state={noticeList:[]},e.noticeOperations={createNotice:e.createNotice,createErrorNotice:e.createErrorNotice,removeAllNotices:e.removeAllNotices,removeNotice:e.removeNotice},e}return Object(da.a)(r,[{key:"createNotice",value:function(e){var t=e.id?e:Wb(Wb({},e),{},{id:Vb()});this.setState((function(e){return{noticeList:[].concat(Object(Gr.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(c.createElement)(e,Object(o.a)({noticeList:this.state.noticeList,noticeOperations:this.noticeOperations,noticeUI:this.state.noticeList.length>0&&Object(c.createElement)(pf,{className:"components-with-notices-ui",notices:this.state.noticeList,onRemove:this.removeNotice})},this.props))}}]),r}(c.Component)}))},function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M20.1 5.1L16.9 2 6.2 12.7l-1.3 4.4 4.5-1.3L20.1 5.1zM4 20.8h8v-1.5H4v1.5z"}));t.a=i},,,,,,,,,,,function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&c.return&&c.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=E(n(95)),a=E(n(13)),c=E(n(28)),s=E(n(145)),u=n(89),l=E(n(44)),d=E(n(241)),f=E(n(251)),p=n(110),b=E(n(111)),h=E(n(196)),v=E(n(252)),m=E(n(385)),y=E(n(255)),g=E(n(256)),O=E(n(197)),j=E(n(146)),w=E(n(162)),k=E(n(257)),_=n(78),S=E(n(386));function E(e){return e&&e.__esModule?e:{default:e}}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var C=(0,u.forbidExtraProps)({date:s.default.momentObj,onDateChange:c.default.func,focused:c.default.bool,onFocusChange:c.default.func,onClose:c.default.func,keepOpenOnDateSelect:c.default.bool,isOutsideRange:c.default.func,isDayBlocked:c.default.func,isDayHighlighted:c.default.func,renderMonthText:(0,u.mutuallyExclusiveProps)(c.default.func,"renderMonthText","renderMonthElement"),renderMonthElement:(0,u.mutuallyExclusiveProps)(c.default.func,"renderMonthText","renderMonthElement"),enableOutsideDays:c.default.bool,numberOfMonths:c.default.number,orientation:j.default,withPortal:c.default.bool,initialVisibleMonth:c.default.func,firstDayOfWeek:w.default,hideKeyboardShortcutsPanel:c.default.bool,daySize:u.nonNegativeInteger,verticalHeight:u.nonNegativeInteger,noBorder:c.default.bool,verticalBorderSpacing:u.nonNegativeInteger,transitionDuration:u.nonNegativeInteger,horizontalMonthPadding:u.nonNegativeInteger,navPrev:c.default.node,navNext:c.default.node,onPrevMonthClick:c.default.func,onNextMonthClick:c.default.func,onOutsideClick:c.default.func,renderCalendarDay:c.default.func,renderDayContents:c.default.func,renderCalendarInfo:c.default.func,calendarInfoPosition:k.default,onBlur:c.default.func,isFocused:c.default.bool,showKeyboardShortcuts:c.default.bool,monthFormat:c.default.string,weekDayFormat:c.default.string,phrases:c.default.shape((0,b.default)(p.DayPickerPhrases)),dayAriaLabelFormat:c.default.string,isRTL:c.default.bool}),P={date:void 0,onDateChange:function(){},focused:!1,onFocusChange:function(){},onClose:function(){},keepOpenOnDateSelect:!1,isOutsideRange:function(){},isDayBlocked:function(){},isDayHighlighted:function(){},renderMonthText:null,enableOutsideDays:!1,numberOfMonths:1,orientation:_.HORIZONTAL_ORIENTATION,withPortal:!1,hideKeyboardShortcutsPanel:!1,initialVisibleMonth:null,firstDayOfWeek:null,daySize:_.DAY_SIZE,verticalHeight:null,noBorder:!1,verticalBorderSpacing:void 0,transitionDuration:void 0,horizontalMonthPadding:13,navPrev:null,navNext:null,onPrevMonthClick:function(){},onNextMonthClick:function(){},onOutsideClick:function(){},renderCalendarDay:void 0,renderDayContents:null,renderCalendarInfo:null,renderMonthElement:null,calendarInfoPosition:_.INFO_POSITION_BOTTOM,onBlur:function(){},isFocused:!1,showKeyboardShortcuts:!1,monthFormat:"MMMM YYYY",weekDayFormat:"dd",phrases:p.DayPickerPhrases,dayAriaLabelFormat:void 0,isRTL:!1},D=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=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,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.isTouchDevice=!1,n.today=(0,l.default)(),n.modifiers={today:function(e){return n.isToday(e)},blocked:function(e){return n.isBlocked(e)},"blocked-calendar":function(t){return e.isDayBlocked(t)},"blocked-out-of-range":function(t){return e.isOutsideRange(t)},"highlighted-calendar":function(t){return e.isDayHighlighted(t)},valid:function(e){return!n.isBlocked(e)},hovered:function(e){return n.isHovered(e)},selected:function(e){return n.isSelected(e)},"first-day-of-week":function(e){return n.isFirstDayOfWeek(e)},"last-day-of-week":function(e){return n.isLastDayOfWeek(e)}};var r=n.getStateForNewMonth(e),o=r.currentMonth,i=r.visibleDays;return n.state={hoverDate:null,currentMonth:o,visibleDays:i},n.onDayMouseEnter=n.onDayMouseEnter.bind(n),n.onDayMouseLeave=n.onDayMouseLeave.bind(n),n.onDayClick=n.onDayClick.bind(n),n.onPrevMonthClick=n.onPrevMonthClick.bind(n),n.onNextMonthClick=n.onNextMonthClick.bind(n),n.onMonthChange=n.onMonthChange.bind(n),n.onYearChange=n.onYearChange.bind(n),n.getFirstFocusableDay=n.getFirstFocusableDay.bind(n),n}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)}(t,e),o(t,[{key:"componentDidMount",value:function(){this.isTouchDevice=(0,f.default)()}},{key:"componentWillReceiveProps",value:function(e){var t=this,n=e.date,r=e.focused,o=e.isOutsideRange,a=e.isDayBlocked,c=e.isDayHighlighted,s=e.initialVisibleMonth,u=e.numberOfMonths,f=e.enableOutsideDays,p=this.props,b=p.isOutsideRange,v=p.isDayBlocked,m=p.isDayHighlighted,y=p.numberOfMonths,g=p.enableOutsideDays,O=p.initialVisibleMonth,j=p.focused,w=p.date,k=this.state.visibleDays,_=!1,S=!1,E=!1;o!==b&&(this.modifiers["blocked-out-of-range"]=function(e){return o(e)},_=!0),a!==v&&(this.modifiers["blocked-calendar"]=function(e){return a(e)},S=!0),c!==m&&(this.modifiers["highlighted-calendar"]=function(e){return c(e)},E=!0);var x=_||S||E;if(u!==y||f!==g||s!==O&&!j&&r){var C=this.getStateForNewMonth(e),P=C.currentMonth;k=C.visibleDays,this.setState({currentMonth:P,visibleDays:k})}var D=r!==j,M={};n!==w&&(M=this.deleteModifier(M,w,"selected"),M=this.addModifier(M,n,"selected")),(D||x)&&(0,d.default)(k).forEach((function(e){Object.keys(e).forEach((function(e){var n=(0,l.default)(e);M=t.isBlocked(n)?t.addModifier(M,n,"blocked"):t.deleteModifier(M,n,"blocked"),(D||_)&&(M=o(n)?t.addModifier(M,n,"blocked-out-of-range"):t.deleteModifier(M,n,"blocked-out-of-range")),(D||S)&&(M=a(n)?t.addModifier(M,n,"blocked-calendar"):t.deleteModifier(M,n,"blocked-calendar")),(D||E)&&(M=c(n)?t.addModifier(M,n,"highlighted-calendar"):t.deleteModifier(M,n,"highlighted-calendar"))}))}));var T=(0,l.default)();(0,h.default)(this.today,T)||(M=this.deleteModifier(M,this.today,"today"),M=this.addModifier(M,T,"today"),this.today=T),Object.keys(M).length>0&&this.setState({visibleDays:(0,i.default)({},k,M)})}},{key:"componentWillUpdate",value:function(){this.today=(0,l.default)()}},{key:"onDayClick",value:function(e,t){if(t&&t.preventDefault(),!this.isBlocked(e)){var n=this.props,r=n.onDateChange,o=n.keepOpenOnDateSelect,i=n.onFocusChange,a=n.onClose;r(e),o||(i({focused:!1}),a({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,i.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,i.default)({},n,r)})}}},{key:"onPrevMonthClick",value:function(){var e=this.props,t=e.onPrevMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,a=o.currentMonth,c=o.visibleDays,s={};Object.keys(c).sort().slice(0,n+1).forEach((function(e){s[e]=c[e]}));var u=a.clone().subtract(1,"month"),l=(0,m.default)(u,1,r);this.setState({currentMonth:u,visibleDays:(0,i.default)({},s,this.getModifiers(l))},(function(){t(u.clone())}))}},{key:"onNextMonthClick",value:function(){var e=this.props,t=e.onNextMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,a=o.currentMonth,c=o.visibleDays,s={};Object.keys(c).sort().slice(1).forEach((function(e){s[e]=c[e]}));var u=a.clone().add(n,"month"),l=(0,m.default)(u,1,r),d=a.clone().add(1,"month");this.setState({currentMonth:d,visibleDays:(0,i.default)({},s,this.getModifiers(l))},(function(){t(d.clone())}))}},{key:"onMonthChange",value:function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===_.VERTICAL_SCROLLABLE,i=(0,m.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(i)})}},{key:"onYearChange",value:function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===_.VERTICAL_SCROLLABLE,i=(0,m.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(i)})}},{key:"getFirstFocusableDay",value:function(e){var t=this,n=this.props,o=n.date,i=n.numberOfMonths,a=e.clone().startOf("month");if(o&&(a=o.clone()),this.isBlocked(a)){for(var c=[],s=e.clone().add(i-1,"months").endOf("month"),u=a.clone();!(0,v.default)(u,s);)u=u.clone().add(1,"day"),c.push(u);var l=c.filter((function(e){return!t.isBlocked(e)&&(0,v.default)(e,a)}));if(l.length>0){var d=r(l,1);a=d[0]}}return a}},{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,i=e.enableOutsideDays,a=(n||(r?function(){return r}:function(){return t.today}))();return{currentMonth:a,visibleDays:this.getModifiers((0,m.default)(a,o,i))}}},{key:"addModifier",value:function(e,t,n){var r=this.props,o=r.numberOfMonths,a=r.enableOutsideDays,c=r.orientation,s=this.state,u=s.currentMonth,l=s.visibleDays,d=u,f=o;if(c===_.VERTICAL_SCROLLABLE?f=Object.keys(l).length:(d=d.clone().subtract(1,"month"),f+=2),!t||!(0,y.default)(t,d,f,a))return e;var p=(0,g.default)(t),b=(0,i.default)({},e);if(a)b=Object.keys(l).filter((function(e){return Object.keys(l[e]).indexOf(p)>-1})).reduce((function(t,r){var o=e[r]||l[r],a=new Set(o[p]);return a.add(n),(0,i.default)({},t,x({},r,(0,i.default)({},o,x({},p,a))))}),b);else{var h=(0,O.default)(t),v=e[h]||l[h],m=new Set(v[p]);m.add(n),b=(0,i.default)({},b,x({},h,(0,i.default)({},v,x({},p,m))))}return b}},{key:"deleteModifier",value:function(e,t,n){var r=this.props,o=r.numberOfMonths,a=r.enableOutsideDays,c=r.orientation,s=this.state,u=s.currentMonth,l=s.visibleDays,d=u,f=o;if(c===_.VERTICAL_SCROLLABLE?f=Object.keys(l).length:(d=d.clone().subtract(1,"month"),f+=2),!t||!(0,y.default)(t,d,f,a))return e;var p=(0,g.default)(t),b=(0,i.default)({},e);if(a)b=Object.keys(l).filter((function(e){return Object.keys(l[e]).indexOf(p)>-1})).reduce((function(t,r){var o=e[r]||l[r],a=new Set(o[p]);return a.delete(n),(0,i.default)({},t,x({},r,(0,i.default)({},o,x({},p,a))))}),b);else{var h=(0,O.default)(t),v=e[h]||l[h],m=new Set(v[p]);m.delete(n),b=(0,i.default)({},b,x({},h,(0,i.default)({},v,x({},p,m))))}return b}},{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,h.default)(e,t)}},{key:"isSelected",value:function(e){var t=this.props.date;return(0,h.default)(e,t)}},{key:"isToday",value:function(e){return(0,h.default)(e,this.today)}},{key:"isFirstDayOfWeek",value:function(e){var t=this.props.firstDayOfWeek;return e.day()===(t||l.default.localeData().firstDayOfWeek())}},{key:"isLastDayOfWeek",value:function(e){var t=this.props.firstDayOfWeek;return e.day()===((t||l.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,i=e.navPrev,c=e.navNext,s=e.onOutsideClick,u=e.withPortal,l=e.focused,d=e.enableOutsideDays,f=e.hideKeyboardShortcutsPanel,p=e.daySize,b=e.firstDayOfWeek,h=e.renderCalendarDay,v=e.renderDayContents,m=e.renderCalendarInfo,y=e.renderMonthElement,g=e.calendarInfoPosition,O=e.isFocused,j=e.isRTL,w=e.phrases,k=e.dayAriaLabelFormat,_=e.onBlur,E=e.showKeyboardShortcuts,x=e.weekDayFormat,C=e.verticalHeight,P=e.noBorder,D=e.transitionDuration,M=e.verticalBorderSpacing,T=e.horizontalMonthPadding,I=this.state,R=I.currentMonth,N=I.visibleDays;return a.default.createElement(S.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,monthFormat:r,withPortal:u,hidden:!l,hideKeyboardShortcutsPanel:f,initialVisibleMonth:function(){return R},firstDayOfWeek:b,onOutsideClick:s,navPrev:i,navNext:c,renderMonthText:o,renderCalendarDay:h,renderDayContents:v,renderCalendarInfo:m,renderMonthElement:y,calendarInfoPosition:g,isFocused:O,getFirstFocusableDay:this.getFirstFocusableDay,onBlur:_,phrases:w,daySize:p,isRTL:j,showKeyboardShortcuts:E,weekDayFormat:x,dayAriaLabelFormat:k,verticalHeight:C,noBorder:P,transitionDuration:D,verticalBorderSpacing:M,horizontalMonthPadding:T})}}]),t}(a.default.Component);t.default=D,D.propTypes=C,D.defaultProps=P},,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"}));t.a=i},function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));t.a=i},,,,,,,function(e,t,n){"use strict"; /** @license React v16.13.1 * react-is.production.min.js * diff --git a/wp-includes/js/dist/editor.js b/wp-includes/js/dist/editor.js index d519b0ee9a..f602a16fca 100644 --- a/wp-includes/js/dist/editor.js +++ b/wp-includes/js/dist/editor.js @@ -7186,6 +7186,8 @@ function PageAttributesParent() { fieldValue = _useState2[0], setFieldValue = _useState2[1]; + var isSearching = fieldValue; + var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { var _select = select('core'), getPostType = _select.getPostType, @@ -7208,9 +7210,9 @@ function PageAttributesParent() { orderby: 'menu_order', order: 'asc', _fields: 'id,title,parent' - }; + }; // Perform a search when the field is changed. - if (parentPost && fieldValue && '' !== fieldValue) { + if (isSearching) { query.search = fieldValue; } @@ -7241,14 +7243,31 @@ function PageAttributesParent() { }; var parentOptions = Object(external_this_wp_element_["useMemo"])(function () { - var tree = buildTermsTree(pageItems.map(function (item) { + var tree = pageItems.map(function (item) { return { id: item.id, parent: item.parent, name: getTitle(item) }; - })); - var opts = getOptionsFromTree(tree); + }); // Only build a hierarchical tree when not searching. + + if (!isSearching) { + tree = buildTermsTree(tree); + } + + var opts = getOptionsFromTree(tree); // Ensure the current parent is in the options list. + + var optsHasParent = Object(external_this_lodash_["find"])(opts, function (item) { + return item.value === parentPostId; + }); + + if (parentPost && !optsHasParent) { + opts.unshift({ + value: parentPostId, + label: getTitle(parentPost) + }); + } + return opts; }, [pageItems]); diff --git a/wp-includes/js/dist/editor.min.js b/wp-includes/js/dist/editor.min.js index 861abb5723..2f677659f1 100644 --- a/wp-includes/js/dist/editor.min.js +++ b/wp-includes/js/dist/editor.min.js @@ -4,7 +4,7 @@ this.wp=this.wp||{},this.wp.editor=function(e){var t={};function n(r){if(t[r])re autosize 4.0.2 license: MIT http://www.jacklmoore.com/autosize -*/o=[e,t],void 0===(i="function"==typeof(r=function(e,t){"use strict";var n,r,o="function"==typeof Map?new Map:(n=[],r=[],{has:function(e){return n.indexOf(e)>-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,s=function(){e.clientWidth!==r&&d()},a=function(t){window.removeEventListener("resize",s,!1),e.removeEventListener("input",d,!1),e.removeEventListener("keyup",d,!1),e.removeEventListener("autosize:destroy",a,!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",a,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",d,!1),window.addEventListener("resize",s,!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:a,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<t?"hidden"===n.overflowY&&(u("scroll"),l(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(u("hidden"),l(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),c!==r){c=r;var o=i("autosize:resized");try{e.dispatchEvent(o)}catch(e){}}}}function s(e){var t=o.get(e);t&&t.destroy()}function a(e){var t=o.get(e);t&&t.update()}var u=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((u=function(e){return e}).destroy=function(e){return e},u.update=function(e){return e}):((u=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return c(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],s),e},u.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],a),e}),t.default=u,e.exports=t.default})?r.apply(t,o):r)||(e.exports=i)},182:function(e,t,n){var r=n(183);e.exports=function(e){var t=r(e,"line-height"),n=parseFloat(t,10);if(t===n+""){var o=e.style.lineHeight;e.style.lineHeight=t+"em",t=r(e,"line-height"),n=parseFloat(t,10),o?e.style.lineHeight=o:delete e.style.lineHeight}if(-1!==t.indexOf("pt")?(n*=4,n/=3):-1!==t.indexOf("mm")?(n*=96,n/=25.4):-1!==t.indexOf("cm")?(n*=96,n/=2.54):-1!==t.indexOf("in")?n*=96:-1!==t.indexOf("pc")&&(n*=16),n=Math.round(n),"normal"===t){var i=e.nodeName,c=document.createElement(i);c.innerHTML=" ","TEXTAREA"===i.toUpperCase()&&c.setAttribute("rows","1");var s=r(e,"font-size");c.style.fontSize=s,c.style.padding="0px",c.style.border="0px";var a=document.body;a.appendChild(c),n=c.offsetHeight,a.removeChild(c)}return n}},183:function(e,t){e.exports=function(e,t,n){return((n=window.getComputedStyle)?n(e):e.currentStyle)[t.replace(/-(\w)/gi,(function(e,t){return t.toUpperCase()}))]}},19: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}))},2:function(e,t){!function(){e.exports=this.lodash}()},20:function(e,t){!function(){e.exports=this.regeneratorRuntime}()},21: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}))},22:function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,"a",(function(){return o}))},23:function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}n.d(t,"a",(function(){return o}))},24:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(40),o=n(16);function i(e,t){return!t||"object"!==Object(r.a)(t)&&"function"!=typeof t?Object(o.a)(e):t}},25:function(e,t){!function(){e.exports=this.wp.richText}()},27:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return r}))},28:function(e,t,n){e.exports=n(142)()},292:function(e,t,n){e.exports=n(439)},3:function(e,t){!function(){e.exports=this.wp.components}()},30:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(27);function o(e,t){if(e){if("string"==typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},31:function(e,t){!function(){e.exports=this.wp.url}()},318:function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(o.Path,{d:"M2 2h5v11H2V2zm6 0h5v5H8V2zm6 0h4v16h-4V2zM8 8h5v5H8V8zm-6 6h11v4H2v-4z"}));t.a=i},32:function(e,t){!function(){e.exports=this.wp.dataControls}()},33:function(e,t){!function(){e.exports=this.wp.hooks}()},36:function(e,t){!function(){e.exports=this.wp.deprecated}()},37:function(e,t,n){"use strict";function r(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}n.d(t,"a",(function(){return r}))},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.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,"a",(function(){return r}))},4:function(e,t){!function(){e.exports=this.wp.data}()},40: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)}n.d(t,"a",(function(){return r}))},43:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},439:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var o=[];function i(e,t){return e.optimist&&e.optimist.id===t}function c(e,t){if(!e||"object"!=typeof e||Array.isArray(e))throw new TypeError('Error while handling "'+t.type+'": Optimist requires that state is always a plain object.')}function s(e){if(e){var t=e.optimist;return{optimist:void 0===t?o:t,innerState:function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["optimist"])}}return{optimist:o,innerState:e}}e.exports=function(e){function t(t,n,o){return t.length&&(t=t.concat([{action:o}])),c(n=e(n,o),o),r({optimist:t},n)}return function(n,o){if(o.optimist)switch(o.optimist.type){case"BEGIN":return function(t,n){var o=s(t),i=o.optimist,a=o.innerState;return i=i.concat([{beforeState:a,action:n}]),c(a=e(a,n),n),r({optimist:i},a)}(n,o);case"COMMIT":return function(e,n){var r=s(e),o=r.optimist,c=r.innerState,a=[],u=!1,l=!1;return o.forEach((function(e){u?e.beforeState&&i(e.action,n.optimist.id)?(l=!0,a.push({action:e.action})):a.push(e):e.beforeState&&!i(e.action,n.optimist.id)?(u=!0,a.push(e)):e.beforeState&&i(e.action,n.optimist.id)&&(l=!0)})),l||console.error('Cannot commit transaction with id "'+n.optimist.id+'" because it does not exist'),t(o=a,c,n)}(n,o);case"REVERT":return function(n,r){var o=s(n),a=o.optimist,u=o.innerState,l=[],d=!1,p=!1,b=u;return a.forEach((function(t){t.beforeState&&i(t.action,r.optimist.id)&&(b=t.beforeState,p=!0),i(t.action,r.optimist.id)||(t.beforeState&&(d=!0),d&&(p&&t.beforeState?l.push({beforeState:b,action:t.action}):l.push(t)),p&&(b=e(b,t.action),c(u,r)))})),p||console.error('Cannot revert transaction with id "'+r.optimist.id+'" because it does not exist'),t(a=l,b,r)}(n,o)}var a=s(n),u=a.optimist,l=a.innerState;if(n&&!u.length){var d=e(l,o);return d===l?n:(c(d,o),r({optimist:u},d))}return t(u,l,o)}},e.exports.BEGIN="BEGIN",e.exports.COMMIT="COMMIT",e.exports.REVERT="REVERT"},45:function(e,t,n){"use strict";function r(e,t,n,r,o,i,c){try{var s=e[i](c),a=s.value}catch(e){return void n(e)}s.done?t(a):Promise.resolve(a).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 s(e){r(c,o,i,s,a,"next",e)}function a(e){r(c,o,i,s,a,"throw",e)}s(void 0)}))}}n.d(t,"a",(function(){return o}))},457:function(e,t,n){"use strict";n.r(t),n.d(t,"userAutocompleter",(function(){return Ar})),n.d(t,"AutosaveMonitor",(function(){return Vr})),n.d(t,"DocumentOutline",(function(){return Jr})),n.d(t,"DocumentOutlineCheck",(function(){return Zr})),n.d(t,"VisualEditorGlobalKeyboardShortcuts",(function(){return no})),n.d(t,"EditorGlobalKeyboardShortcuts",(function(){return ro})),n.d(t,"TextEditorGlobalKeyboardShortcuts",(function(){return oo})),n.d(t,"EditorKeyboardShortcutsRegister",(function(){return io})),n.d(t,"EditorHistoryRedo",(function(){return lo})),n.d(t,"EditorHistoryUndo",(function(){return bo})),n.d(t,"EditorNotices",(function(){return ho})),n.d(t,"EntitiesSavedStates",(function(){return ko})),n.d(t,"ErrorBoundary",(function(){return wo})),n.d(t,"LocalAutosaveMonitor",(function(){return Bo})),n.d(t,"PageAttributesCheck",(function(){return Io})),n.d(t,"PageAttributesOrder",(function(){return Do})),n.d(t,"PageAttributesParent",(function(){return Fo})),n.d(t,"PageTemplate",(function(){return Mo})),n.d(t,"PostAuthor",(function(){return Wo})),n.d(t,"PostAuthorCheck",(function(){return Vo})),n.d(t,"PostComments",(function(){return Go})),n.d(t,"PostExcerpt",(function(){return Ko})),n.d(t,"PostExcerptCheck",(function(){return qo})),n.d(t,"PostFeaturedImage",(function(){return ni})),n.d(t,"PostFeaturedImageCheck",(function(){return $o})),n.d(t,"PostFormat",(function(){return ii})),n.d(t,"PostFormatCheck",(function(){return ri})),n.d(t,"PostLastRevision",(function(){return ai})),n.d(t,"PostLastRevisionCheck",(function(){return si})),n.d(t,"PostLockedModal",(function(){return fi})),n.d(t,"PostPendingStatus",(function(){return mi})),n.d(t,"PostPendingStatusCheck",(function(){return hi})),n.d(t,"PostPingbacks",(function(){return vi})),n.d(t,"PostPreviewButton",(function(){return di})),n.d(t,"PostPublishButton",(function(){return yi})),n.d(t,"PostPublishButtonLabel",(function(){return Oi})),n.d(t,"PostPublishPanel",(function(){return ec})),n.d(t,"PostSavedState",(function(){return cc})),n.d(t,"PostSchedule",(function(){return Ci})),n.d(t,"PostScheduleCheck",(function(){return sc})),n.d(t,"PostScheduleLabel",(function(){return Ti})),n.d(t,"PostSlug",(function(){return dc})),n.d(t,"PostSlugCheck",(function(){return ac})),n.d(t,"PostSticky",(function(){return bc})),n.d(t,"PostStickyCheck",(function(){return pc})),n.d(t,"PostSwitchToDraftButton",(function(){return ic})),n.d(t,"PostTaxonomies",(function(){return jc})),n.d(t,"PostTaxonomiesCheck",(function(){return yc})),n.d(t,"PostTextEditor",(function(){return kc})),n.d(t,"PostTitle",(function(){return xc})),n.d(t,"PostTrash",(function(){return Bc})),n.d(t,"PostTrashCheck",(function(){return Ic})),n.d(t,"PostTypeSupportCheck",(function(){return Ao})),n.d(t,"PostVisibility",(function(){return Ei})),n.d(t,"PostVisibilityLabel",(function(){return wi})),n.d(t,"PostVisibilityCheck",(function(){return Ac})),n.d(t,"TableOfContents",(function(){return Fc})),n.d(t,"UnsavedChangesWarning",(function(){return Mc})),n.d(t,"WordCount",(function(){return Nc})),n.d(t,"EditorProvider",(function(){return Zc})),n.d(t,"ServerSideRender",(function(){return ts.a})),n.d(t,"RichText",(function(){return os})),n.d(t,"Autocomplete",(function(){return is})),n.d(t,"AlignmentToolbar",(function(){return cs})),n.d(t,"BlockAlignmentToolbar",(function(){return ss})),n.d(t,"BlockControls",(function(){return as})),n.d(t,"BlockEdit",(function(){return us})),n.d(t,"BlockEditorKeyboardShortcuts",(function(){return ls})),n.d(t,"BlockFormatControls",(function(){return ds})),n.d(t,"BlockIcon",(function(){return ps})),n.d(t,"BlockInspector",(function(){return bs})),n.d(t,"BlockList",(function(){return fs})),n.d(t,"BlockMover",(function(){return hs})),n.d(t,"BlockNavigationDropdown",(function(){return ms})),n.d(t,"BlockSelectionClearer",(function(){return vs})),n.d(t,"BlockSettingsMenu",(function(){return Os})),n.d(t,"BlockTitle",(function(){return gs})),n.d(t,"BlockToolbar",(function(){return js})),n.d(t,"ColorPalette",(function(){return ys})),n.d(t,"ContrastChecker",(function(){return _s})),n.d(t,"CopyHandler",(function(){return Ps})),n.d(t,"DefaultBlockAppender",(function(){return ks})),n.d(t,"FontSizePicker",(function(){return Ss})),n.d(t,"Inserter",(function(){return Es})),n.d(t,"InnerBlocks",(function(){return ws})),n.d(t,"InspectorAdvancedControls",(function(){return Cs})),n.d(t,"InspectorControls",(function(){return Ts})),n.d(t,"PanelColorSettings",(function(){return xs})),n.d(t,"PlainText",(function(){return Bs})),n.d(t,"RichTextShortcut",(function(){return Is})),n.d(t,"RichTextToolbarButton",(function(){return As})),n.d(t,"__unstableRichTextInputEvent",(function(){return Rs})),n.d(t,"MediaPlaceholder",(function(){return Ds})),n.d(t,"MediaUpload",(function(){return Ns})),n.d(t,"MediaUploadCheck",(function(){return Ls})),n.d(t,"MultiSelectScrollIntoView",(function(){return Us})),n.d(t,"NavigableToolbar",(function(){return Fs})),n.d(t,"ObserveTyping",(function(){return Ms})),n.d(t,"PreserveScrollInReorder",(function(){return Vs})),n.d(t,"SkipToSelectedBlock",(function(){return zs})),n.d(t,"URLInput",(function(){return Hs})),n.d(t,"URLInputButton",(function(){return Ws})),n.d(t,"URLPopover",(function(){return Gs})),n.d(t,"Warning",(function(){return Ks})),n.d(t,"WritingFlow",(function(){return qs})),n.d(t,"createCustomColorsHOC",(function(){return Qs})),n.d(t,"getColorClassName",(function(){return $s})),n.d(t,"getColorObjectByAttributeValues",(function(){return Ys})),n.d(t,"getColorObjectByColorValue",(function(){return Xs})),n.d(t,"getFontSize",(function(){return Js})),n.d(t,"getFontSizeClass",(function(){return Zs})),n.d(t,"withColorContext",(function(){return ea})),n.d(t,"withColors",(function(){return ta})),n.d(t,"withFontSizes",(function(){return na})),n.d(t,"mediaUpload",(function(){return Kc})),n.d(t,"cleanForSlug",(function(){return V})),n.d(t,"storeConfig",(function(){return kr})),n.d(t,"transformStyles",(function(){return i.transformStyles}));var r={};n.r(r),n.d(r,"hasEditorUndo",(function(){return K})),n.d(r,"hasEditorRedo",(function(){return q})),n.d(r,"isEditedPostNew",(function(){return Q})),n.d(r,"hasChangedContent",(function(){return $})),n.d(r,"isEditedPostDirty",(function(){return Y})),n.d(r,"hasNonPostEntityChanges",(function(){return X})),n.d(r,"isCleanNewPost",(function(){return J})),n.d(r,"getCurrentPost",(function(){return Z})),n.d(r,"getCurrentPostType",(function(){return ee})),n.d(r,"getCurrentPostId",(function(){return te})),n.d(r,"getCurrentPostRevisionsCount",(function(){return ne})),n.d(r,"getCurrentPostLastRevisionId",(function(){return re})),n.d(r,"getPostEdits",(function(){return oe})),n.d(r,"getReferenceByDistinctEdits",(function(){return ie})),n.d(r,"getCurrentPostAttribute",(function(){return ce})),n.d(r,"getEditedPostAttribute",(function(){return se})),n.d(r,"getAutosaveAttribute",(function(){return ae})),n.d(r,"getEditedPostVisibility",(function(){return ue})),n.d(r,"isCurrentPostPending",(function(){return le})),n.d(r,"isCurrentPostPublished",(function(){return de})),n.d(r,"isCurrentPostScheduled",(function(){return pe})),n.d(r,"isEditedPostPublishable",(function(){return be})),n.d(r,"isEditedPostSaveable",(function(){return fe})),n.d(r,"isEditedPostEmpty",(function(){return he})),n.d(r,"isEditedPostAutosaveable",(function(){return me})),n.d(r,"getAutosave",(function(){return ve})),n.d(r,"hasAutosave",(function(){return Oe})),n.d(r,"isEditedPostBeingScheduled",(function(){return ge})),n.d(r,"isEditedPostDateFloating",(function(){return je})),n.d(r,"isSavingPost",(function(){return ye})),n.d(r,"didPostSaveRequestSucceed",(function(){return _e})),n.d(r,"didPostSaveRequestFail",(function(){return Pe})),n.d(r,"isAutosavingPost",(function(){return ke})),n.d(r,"isPreviewingPost",(function(){return Se})),n.d(r,"getEditedPostPreviewLink",(function(){return Ee})),n.d(r,"getSuggestedPostFormat",(function(){return we})),n.d(r,"getBlocksForSerialization",(function(){return Ce})),n.d(r,"getEditedPostContent",(function(){return Te})),n.d(r,"getStateBeforeOptimisticTransaction",(function(){return xe})),n.d(r,"isPublishingPost",(function(){return Be})),n.d(r,"isPermalinkEditable",(function(){return Ie})),n.d(r,"getPermalink",(function(){return Ae})),n.d(r,"getEditedPostSlug",(function(){return Re})),n.d(r,"getPermalinkParts",(function(){return De})),n.d(r,"inSomeHistory",(function(){return Ne})),n.d(r,"isPostLocked",(function(){return Le})),n.d(r,"isPostSavingLocked",(function(){return Ue})),n.d(r,"isPostAutosavingLocked",(function(){return Fe})),n.d(r,"isPostLockTakeover",(function(){return Me})),n.d(r,"getPostLockUser",(function(){return Ve})),n.d(r,"getActivePostLock",(function(){return ze})),n.d(r,"canUserUseUnfilteredHTML",(function(){return He})),n.d(r,"isPublishSidebarEnabled",(function(){return We})),n.d(r,"getEditorBlocks",(function(){return Ge})),n.d(r,"getEditorSelectionStart",(function(){return Ke})),n.d(r,"getEditorSelectionEnd",(function(){return qe})),n.d(r,"__unstableIsEditorReady",(function(){return Qe})),n.d(r,"getEditorSettings",(function(){return $e})),n.d(r,"getBlockName",(function(){return Xe})),n.d(r,"isBlockValid",(function(){return Je})),n.d(r,"getBlockAttributes",(function(){return Ze})),n.d(r,"getBlock",(function(){return et})),n.d(r,"getBlocks",(function(){return tt})),n.d(r,"__unstableGetBlockWithoutInnerBlocks",(function(){return nt})),n.d(r,"getClientIdsOfDescendants",(function(){return rt})),n.d(r,"getClientIdsWithDescendants",(function(){return ot})),n.d(r,"getGlobalBlockCount",(function(){return it})),n.d(r,"getBlocksByClientId",(function(){return ct})),n.d(r,"getBlockCount",(function(){return st})),n.d(r,"getBlockSelectionStart",(function(){return at})),n.d(r,"getBlockSelectionEnd",(function(){return ut})),n.d(r,"getSelectedBlockCount",(function(){return lt})),n.d(r,"hasSelectedBlock",(function(){return dt})),n.d(r,"getSelectedBlockClientId",(function(){return pt})),n.d(r,"getSelectedBlock",(function(){return bt})),n.d(r,"getBlockRootClientId",(function(){return ft})),n.d(r,"getBlockHierarchyRootClientId",(function(){return ht})),n.d(r,"getAdjacentBlockClientId",(function(){return mt})),n.d(r,"getPreviousBlockClientId",(function(){return vt})),n.d(r,"getNextBlockClientId",(function(){return Ot})),n.d(r,"getSelectedBlocksInitialCaretPosition",(function(){return gt})),n.d(r,"getMultiSelectedBlockClientIds",(function(){return jt})),n.d(r,"getMultiSelectedBlocks",(function(){return yt})),n.d(r,"getFirstMultiSelectedBlockClientId",(function(){return _t})),n.d(r,"getLastMultiSelectedBlockClientId",(function(){return Pt})),n.d(r,"isFirstMultiSelectedBlock",(function(){return kt})),n.d(r,"isBlockMultiSelected",(function(){return St})),n.d(r,"isAncestorMultiSelected",(function(){return Et})),n.d(r,"getMultiSelectedBlocksStartClientId",(function(){return wt})),n.d(r,"getMultiSelectedBlocksEndClientId",(function(){return Ct})),n.d(r,"getBlockOrder",(function(){return Tt})),n.d(r,"getBlockIndex",(function(){return xt})),n.d(r,"isBlockSelected",(function(){return Bt})),n.d(r,"hasSelectedInnerBlock",(function(){return It})),n.d(r,"isBlockWithinSelection",(function(){return At})),n.d(r,"hasMultiSelection",(function(){return Rt})),n.d(r,"isMultiSelecting",(function(){return Dt})),n.d(r,"isSelectionEnabled",(function(){return Nt})),n.d(r,"getBlockMode",(function(){return Lt})),n.d(r,"isTyping",(function(){return Ut})),n.d(r,"isCaretWithinFormattedText",(function(){return Ft})),n.d(r,"getBlockInsertionPoint",(function(){return Mt})),n.d(r,"isBlockInsertionPointVisible",(function(){return Vt})),n.d(r,"isValidTemplate",(function(){return zt})),n.d(r,"getTemplate",(function(){return Ht})),n.d(r,"getTemplateLock",(function(){return Wt})),n.d(r,"canInsertBlockType",(function(){return Gt})),n.d(r,"getInserterItems",(function(){return Kt})),n.d(r,"hasInserterItems",(function(){return qt})),n.d(r,"getBlockListSettings",(function(){return Qt}));var o={};n.r(o),n.d(o,"setupEditor",(function(){return hn})),n.d(o,"__experimentalTearDownEditor",(function(){return mn})),n.d(o,"resetPost",(function(){return vn})),n.d(o,"resetAutosave",(function(){return On})),n.d(o,"__experimentalRequestPostUpdateStart",(function(){return gn})),n.d(o,"__experimentalRequestPostUpdateFinish",(function(){return jn})),n.d(o,"updatePost",(function(){return yn})),n.d(o,"setupEditorState",(function(){return _n})),n.d(o,"editPost",(function(){return Pn})),n.d(o,"__experimentalOptimisticUpdatePost",(function(){return kn})),n.d(o,"savePost",(function(){return Sn})),n.d(o,"refreshPost",(function(){return En})),n.d(o,"trashPost",(function(){return wn})),n.d(o,"autosave",(function(){return Cn})),n.d(o,"redo",(function(){return Tn})),n.d(o,"undo",(function(){return xn})),n.d(o,"createUndoLevel",(function(){return Bn})),n.d(o,"updatePostLock",(function(){return In})),n.d(o,"enablePublishSidebar",(function(){return An})),n.d(o,"disablePublishSidebar",(function(){return Rn})),n.d(o,"lockPostSaving",(function(){return Dn})),n.d(o,"unlockPostSaving",(function(){return Nn})),n.d(o,"lockPostAutosaving",(function(){return Ln})),n.d(o,"unlockPostAutosaving",(function(){return Un})),n.d(o,"resetEditorBlocks",(function(){return Fn})),n.d(o,"updateEditorSettings",(function(){return Mn})),n.d(o,"resetBlocks",(function(){return zn})),n.d(o,"receiveBlocks",(function(){return Hn})),n.d(o,"updateBlock",(function(){return Wn})),n.d(o,"updateBlockAttributes",(function(){return Gn})),n.d(o,"selectBlock",(function(){return Kn})),n.d(o,"startMultiSelect",(function(){return qn})),n.d(o,"stopMultiSelect",(function(){return Qn})),n.d(o,"multiSelect",(function(){return $n})),n.d(o,"clearSelectedBlock",(function(){return Yn})),n.d(o,"toggleSelection",(function(){return Xn})),n.d(o,"replaceBlocks",(function(){return Jn})),n.d(o,"replaceBlock",(function(){return Zn})),n.d(o,"moveBlocksDown",(function(){return er})),n.d(o,"moveBlocksUp",(function(){return tr})),n.d(o,"moveBlockToPosition",(function(){return nr})),n.d(o,"insertBlock",(function(){return rr})),n.d(o,"insertBlocks",(function(){return or})),n.d(o,"showInsertionPoint",(function(){return ir})),n.d(o,"hideInsertionPoint",(function(){return cr})),n.d(o,"setTemplateValidity",(function(){return sr})),n.d(o,"synchronizeTemplate",(function(){return ar})),n.d(o,"mergeBlocks",(function(){return ur})),n.d(o,"removeBlocks",(function(){return lr})),n.d(o,"removeBlock",(function(){return dr})),n.d(o,"toggleBlockMode",(function(){return pr})),n.d(o,"startTyping",(function(){return br})),n.d(o,"stopTyping",(function(){return fr})),n.d(o,"enterFormattedText",(function(){return hr})),n.d(o,"exitFormattedText",(function(){return mr})),n.d(o,"insertDefaultBlock",(function(){return vr})),n.d(o,"updateBlockListSettings",(function(){return Or}));var i=n(6),c=n(11),s=n(83),a=n(53),u=(n(92),n(121)),l=n(25),d=(n(101),n(5)),p=n(4),b=n(32),f=n(40),h=n(292),m=n.n(h),v=n(2);function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){Object(d.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var j={insertUsage:{},isPublishSidebarEnabled:!0},y=g(g({},i.SETTINGS_DEFAULTS),{},{richEditingEnabled:!0,codeEditingEnabled:!0,enableCustomFields:!1});function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){Object(d.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function k(e){return e&&"object"===Object(f.a)(e)&&"raw"in e?e.raw:e}var S=m()(Object(p.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]:j,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ENABLE_PUBLISH_SIDEBAR":return P(P({},e),{},{isPublishSidebarEnabled:!0});case"DISABLE_PUBLISH_SIDEBAR":return P(P({},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},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 P(P({},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 P(P({},e),{},Object(d.a)({},t.lockName,!0));case"UNLOCK_POST_SAVING":return Object(v.omit)(e,t.lockName)}return e},isReady:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.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]:y,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_EDITOR_SETTINGS":return P(P({},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 P(P({},e),{},Object(d.a)({},t.lockName,!0));case"UNLOCK_POST_AUTOSAVING":return Object(v.omit)(e,t.lockName)}return e}})),E=n(12),w=n(75),C=n(31),T=n(36),x=n.n(T),B=n(0),I=new Set(["meta"]),A="core/editor",R=/%(?:postname|pagename)%/,D=["title","excerpt","content"],N=n(60),L=n.n(N),U=n(105),F=L()((function(e){1===e.length&&Object(c.isUnmodifiedDefaultBlock)(e[0])&&(e=[]);var t=Object(c.serialize)(e);return 1===e.length&&e[0].name===Object(c.getFreeformContentHandlerName)()&&(t=Object(U.removep)(t)),t}),{maxSize:1});function M(e,t){return Object(C.addQueryArgs)(e,t)}function V(e){return e?Object(v.trim)(Object(v.deburr)(e).replace(/[\s\./]+/g,"-").replace(/[^\w-]+/g,"").toLowerCase(),"-"):""}function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function H(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z(Object(n),!0).forEach((function(t){Object(d.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var W={},G=[],K=Object(p.createRegistrySelector)((function(e){return function(){return e("core").hasUndo()}})),q=Object(p.createRegistrySelector)((function(e){return function(){return e("core").hasRedo()}}));function Q(e){return"auto-draft"===Z(e).status}function $(e){var t=oe(e);return"blocks"in t||"content"in t}var Y=Object(p.createRegistrySelector)((function(e){return function(t){var n=ee(t),r=te(t);return!!e("core").hasEditsForEntityRecord("postType",n,r)}})),X=Object(p.createRegistrySelector)((function(e){return function(t){if(!$e(t).__experimentalEnableFullSiteEditing)return!1;var n=e("core").__experimentalGetDirtyEntityRecords(),r=Z(t),o=r.type,i=r.id;return Object(v.some)(n,(function(e){return"postType"!==e.kind||e.name!==o||e.key!==i}))}}));function J(e){return!Y(e)&&Q(e)}var Z=Object(p.createRegistrySelector)((function(e){return function(t){var n=te(t),r=ee(t),o=e("core").getRawEntityRecord("postType",r,n);return o||W}}));function ee(e){return e.postType}function te(e){return e.postId}function ne(e){return Object(v.get)(Z(e),["_links","version-history",0,"count"],0)}function re(e){return Object(v.get)(Z(e),["_links","predecessor-version",0,"id"],null)}var oe=Object(p.createRegistrySelector)((function(e){return function(t){var n=ee(t),r=te(t);return e("core").getEntityRecordEdits("postType",n,r)||W}})),ie=Object(p.createRegistrySelector)((function(e){return function(){return x()("`wp.data.select( 'core/editor' ).getReferenceByDistinctEdits`",{alternative:"`wp.data.select( 'core' ).getReferenceByDistinctEdits`"}),e("core").getReferenceByDistinctEdits()}}));function ce(e,t){switch(t){case"type":return ee(e);case"id":return te(e);default:var n=Z(e);if(!n.hasOwnProperty(t))break;return k(n[t])}}function se(e,t){switch(t){case"content":return Te(e)}var n=oe(e);return n.hasOwnProperty(t)?I.has(t)?function(e,t){var n=oe(e);return n.hasOwnProperty(t)?H(H({},ce(e,t)),n[t]):ce(e,t)}(e,t):n[t]:ce(e,t)}var ae=Object(p.createRegistrySelector)((function(e){return function(t,n){if(Object(v.includes)(D,n)||"preview_link"===n){var r=ee(t),o=te(t),i=Object(v.get)(e("core").getCurrentUser(),["id"]),c=e("core").getAutosave(r,o,i);return c?k(c[n]):void 0}}}));function ue(e){return"private"===se(e,"status")?"private":se(e,"password")?"password":"public"}function le(e){return"pending"===Z(e).status}function de(e,t){var n=t||Z(e);return-1!==["publish","private"].indexOf(n.status)||"future"===n.status&&!Object(w.isInTheFuture)(new Date(Number(Object(w.getDate)(n.date))-6e4))}function pe(e){return"future"===Z(e).status&&!de(e)}function be(e){var t=Z(e);return Y(e)||-1===["publish","private","future"].indexOf(t.status)}function fe(e){return!ye(e)&&(!!se(e,"title")||!!se(e,"excerpt")||!he(e)||"native"===B.Platform.OS)}function he(e){var t=Ge(e);if(t.length){if(t.length>1)return!1;var n=t[0].name;if(n!==Object(c.getDefaultBlockName)()&&n!==Object(c.getFreeformContentHandlerName)())return!1}return!Te(e)}var me=Object(p.createRegistrySelector)((function(e){return function(t){if(!fe(t))return!1;if(Fe(t))return!1;var n=ee(t),r=te(t),o=e("core").hasFetchedAutosaves(n,r),i=Object(v.get)(e("core").getCurrentUser(),["id"]),c=e("core").getAutosave(n,r,i);return!!o&&(!c||(!!$(t)||["title","excerpt"].some((function(e){return k(c[e])!==se(t,e)}))))}})),ve=Object(p.createRegistrySelector)((function(e){return function(t){x()("`wp.data.select( 'core/editor' ).getAutosave()`",{alternative:"`wp.data.select( 'core' ).getAutosave( postType, postId, userId )`",plugin:"Gutenberg"});var n=ee(t),r=te(t),o=Object(v.get)(e("core").getCurrentUser(),["id"]),i=e("core").getAutosave(n,r,o);return Object(v.mapValues)(Object(v.pick)(i,D),k)}})),Oe=Object(p.createRegistrySelector)((function(e){return function(t){x()("`wp.data.select( 'core/editor' ).hasAutosave()`",{alternative:"`!! wp.data.select( 'core' ).getAutosave( postType, postId, userId )`",plugin:"Gutenberg"});var n=ee(t),r=te(t),o=Object(v.get)(e("core").getCurrentUser(),["id"]);return!!e("core").getAutosave(n,r,o)}}));function ge(e){var t=se(e,"date"),n=new Date(Number(Object(w.getDate)(t))-6e4);return Object(w.isInTheFuture)(n)}function je(e){var t=se(e,"date"),n=se(e,"modified"),r=se(e,"status");return("draft"===r||"auto-draft"===r||"pending"===r)&&(t===n||null===t)}var ye=Object(p.createRegistrySelector)((function(e){return function(t){var n=ee(t),r=te(t);return e("core").isSavingEntityRecord("postType",n,r)}})),_e=Object(p.createRegistrySelector)((function(e){return function(t){var n=ee(t),r=te(t);return!e("core").getLastEntitySaveError("postType",n,r)}})),Pe=Object(p.createRegistrySelector)((function(e){return function(t){var n=ee(t),r=te(t);return!!e("core").getLastEntitySaveError("postType",n,r)}}));function ke(e){return!!ye(e)&&!!Object(v.get)(e.saving,["options","isAutosave"])}function Se(e){return!!ye(e)&&!!e.saving.options.isPreview}function Ee(e){if(!e.saving.pending&&!ye(e)){var t=ae(e,"preview_link");t||(t=se(e,"link"))&&(t=Object(C.addQueryArgs)(t,{preview:!0}));var n=se(e,"featured_media");return t&&n?Object(C.addQueryArgs)(t,{_thumbnail_id:n}):t}}function we(e){var t,n=Ge(e);if(n.length>2)return null;if(1===n.length&&"core/embed"===(t=n[0].name)){var r,o=null===(r=n[0].attributes)||void 0===r?void 0:r.providerNameSlug;["youtube","vimeo"].includes(o)?t="core/video":["spotify","soundcloud"].includes(o)&&(t="core/audio")}switch(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":return"video";case"core/audio":return"audio";default:return null}}function Ce(e){x()("`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(c.isUnmodifiedDefaultBlock)(t[0])?[]:t}var Te=Object(p.createRegistrySelector)((function(e){return function(t){var n=te(t),r=ee(t),o=e("core").getEditedEntityRecord("postType",r,n);if(o){if("function"==typeof o.content)return o.content(o);if(o.blocks)return F(o.blocks);if(o.content)return o.content}return""}}));function xe(e,t){var n=Object(v.find)(e.optimist,(function(e){return e.beforeState&&Object(v.get)(e.action,["optimist","id"])===t}));return n?n.beforeState:null}function Be(e){if(!ye(e))return!1;if(!de(e))return!1;var t=xe(e,"post-update");return!!t&&!de(null,t.currentPost)}function Ie(e){var t=se(e,"permalink_template");return R.test(t)}function Ae(e){var t=De(e);if(!t)return null;var n=t.prefix,r=t.postName,o=t.suffix;return Ie(e)?n+r+o:n}function Re(e){return se(e,"slug")||V(se(e,"title"))||te(e)}function De(e){var t=se(e,"permalink_template");if(!t)return null;var n=se(e,"slug")||se(e,"generated_slug"),r=t.split(R),o=Object(E.a)(r,2);return{prefix:o[0],postName:n,suffix:o[1]}}function Ne(e,t){var n=e.optimist;return!!n&&n.some((function(e){var n=e.beforeState;return n&&t(n)}))}function Le(e){return e.postLock.isLocked}function Ue(e){return Object.keys(e.postSavingLock).length>0}function Fe(e){return Object.keys(e.postAutosavingLock).length>0}function Me(e){return e.postLock.isTakeover}function Ve(e){return e.postLock.user}function ze(e){return e.postLock.activePostLock}function He(e){return Object(v.has)(Z(e),["_links","wp:action-unfiltered-html"])}function We(e){return e.preferences.hasOwnProperty("isPublishSidebarEnabled")?e.preferences.isPublishSidebarEnabled:j.isPublishSidebarEnabled}function Ge(e){return se(e,"blocks")||G}function Ke(e){return se(e,"selectionStart")}function qe(e){return se(e,"selectionEnd")}function Qe(e){return e.isReady}function $e(e){return e.editorSettings}function Ye(e){return Object(p.createRegistrySelector)((function(t){return function(n){var r;x()("`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;c<o;c++)i[c-1]=arguments[c];return(r=t("core/block-editor"))[e].apply(r,i)}}))}var Xe=Ye("getBlockName"),Je=Ye("isBlockValid"),Ze=Ye("getBlockAttributes"),et=Ye("getBlock"),tt=Ye("getBlocks"),nt=Ye("__unstableGetBlockWithoutInnerBlocks"),rt=Ye("getClientIdsOfDescendants"),ot=Ye("getClientIdsWithDescendants"),it=Ye("getGlobalBlockCount"),ct=Ye("getBlocksByClientId"),st=Ye("getBlockCount"),at=Ye("getBlockSelectionStart"),ut=Ye("getBlockSelectionEnd"),lt=Ye("getSelectedBlockCount"),dt=Ye("hasSelectedBlock"),pt=Ye("getSelectedBlockClientId"),bt=Ye("getSelectedBlock"),ft=Ye("getBlockRootClientId"),ht=Ye("getBlockHierarchyRootClientId"),mt=Ye("getAdjacentBlockClientId"),vt=Ye("getPreviousBlockClientId"),Ot=Ye("getNextBlockClientId"),gt=Ye("getSelectedBlocksInitialCaretPosition"),jt=Ye("getMultiSelectedBlockClientIds"),yt=Ye("getMultiSelectedBlocks"),_t=Ye("getFirstMultiSelectedBlockClientId"),Pt=Ye("getLastMultiSelectedBlockClientId"),kt=Ye("isFirstMultiSelectedBlock"),St=Ye("isBlockMultiSelected"),Et=Ye("isAncestorMultiSelected"),wt=Ye("getMultiSelectedBlocksStartClientId"),Ct=Ye("getMultiSelectedBlocksEndClientId"),Tt=Ye("getBlockOrder"),xt=Ye("getBlockIndex"),Bt=Ye("isBlockSelected"),It=Ye("hasSelectedInnerBlock"),At=Ye("isBlockWithinSelection"),Rt=Ye("hasMultiSelection"),Dt=Ye("isMultiSelecting"),Nt=Ye("isSelectionEnabled"),Lt=Ye("getBlockMode"),Ut=Ye("isTyping"),Ft=Ye("isCaretWithinFormattedText"),Mt=Ye("getBlockInsertionPoint"),Vt=Ye("isBlockInsertionPointVisible"),zt=Ye("isValidTemplate"),Ht=Ye("getTemplate"),Wt=Ye("getTemplateLock"),Gt=Ye("canInsertBlockType"),Kt=Ye("getInserterItems"),qt=Ye("hasInserterItems"),Qt=Ye("getBlockListSettings"),$t=n(14),Yt=n(17),Xt=n(20),Jt=n.n(Xt),Zt=n(1);function en(e){var t=e.previousPost,n=e.post,r=e.postType;if(Object(v.get)(e.options,["isAutosave"]))return[];var o,i=["publish","private","future"],c=Object(v.includes)(i,t.status),s=Object(v.includes)(i,n.status),a=Object(v.get)(r,["viewable"],!1);if(c||s?c&&!s?(o=r.labels.item_reverted_to_draft,a=!1):o=!c&&s?{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 a&&u.push({label:r.labels.view_item,url:n.link}),[o,{id:"SAVE_POST_NOTICE_ID",type:"snackbar",actions:u}]}return[]}function tn(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(Zt.__)("Publishing failed."),private:Object(Zt.__)("Publishing failed."),future:Object(Zt.__)("Scheduling failed.")},s=i||-1===o.indexOf(n.status)?Object(Zt.__)("Updating failed."):c[n.status];return r.message&&!/<\/?[^>]*>/.test(r.message)&&(s=[s,r.message].join(" ")),[s,{id:"SAVE_POST_NOTICE_ID"}]}function nn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nn(Object(n),!0).forEach((function(t){Object(d.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var on=Jt.a.mark(hn),cn=Jt.a.mark(On),sn=Jt.a.mark(Pn),an=Jt.a.mark(Sn),un=Jt.a.mark(En),ln=Jt.a.mark(wn),dn=Jt.a.mark(Cn),pn=Jt.a.mark(Tn),bn=Jt.a.mark(xn),fn=Jt.a.mark(Fn);function hn(e,t,n){var r,o;return Jt.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return r=Object(v.has)(t,["content"])?t.content:e.content.raw,o=Object(c.parse)(r),"auto-draft"===e.status&&n&&(o=Object(c.synchronizeBlocksWithTemplate)(o,n)),i.next=6,vn(e);case 6:return i.next=8,{type:"SETUP_EDITOR",post:e,edits:t,template:n};case 8:return i.next=10,Fn(o,{__unstableShouldCreateUndoLevel:!1});case 10:return i.next=12,_n(e);case 12:if(!t||!Object.keys(t).some((function(n){return t[n]!==(Object(v.has)(e,[n,"raw"])?e[n].raw:e[n])}))){i.next=15;break}return i.next=15,Pn(t);case 15:case"end":return i.stop()}}),on)}function mn(){return{type:"TEAR_DOWN_EDITOR"}}function vn(e){return{type:"RESET_POST",post:e}}function On(e){var t;return Jt.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return x()("resetAutosave action (`core/editor` store)",{alternative:"receiveAutosaves action (`core` store)",plugin:"Gutenberg"}),n.next=3,Object(b.select)(A,"getCurrentPostId");case 3:return t=n.sent,n.next=6,Object(b.dispatch)("core","receiveAutosaves",t,e);case 6:return n.abrupt("return",{type:"__INERT__"});case 7:case"end":return n.stop()}}),cn)}function gn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:"REQUEST_POST_UPDATE_START",options:e}}function jn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:"REQUEST_POST_UPDATE_FINISH",options:e}}function yn(e){return{type:"UPDATE_POST",edits:e}}function _n(e){return{type:"SETUP_EDITOR_STATE",post:e}}function Pn(e,t){var n,r,o;return Jt.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,Object(b.select)(A,"getCurrentPost");case 2:return n=i.sent,r=n.id,o=n.type,i.next=7,Object(b.dispatch)("core","editEntityRecord","postType",o,r,e,t);case 7:case"end":return i.stop()}}),sn)}function kn(e){return rn(rn({},yn(e)),{},{optimist:{id:"post-update"}})}function Sn(){var e,t,n,r,o,i,c,s=arguments;return Jt.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return e=s.length>0&&void 0!==s[0]?s[0]:{},a.next=3,Object(b.select)(A,"isEditedPostSaveable");case 3:if(a.sent){a.next=5;break}return a.abrupt("return");case 5:return a.next=7,Object(b.select)(A,"getEditedPostContent");case 7:if(a.t0=a.sent,t={content:a.t0},e.isAutosave){a.next=12;break}return a.next=12,Object(b.dispatch)(A,"editPost",t,{undoIgnore:!0});case 12:return a.next=14,gn(e);case 14:return a.next=16,Object(b.select)(A,"getCurrentPost");case 16:return n=a.sent,a.t1=rn,a.t2=rn,a.t3={id:n.id},a.next=22,Object(b.select)("core","getEntityRecordNonTransientEdits","postType",n.type,n.id);case 22:return a.t4=a.sent,a.t5=(0,a.t2)(a.t3,a.t4),a.t6=t,t=(0,a.t1)(a.t5,a.t6),a.next=28,Object(b.dispatch)("core","saveEntityRecord","postType",n.type,t,e);case 28:return a.next=30,jn(e);case 30:return a.next=32,Object(b.select)("core","getLastEntitySaveError","postType",n.type,n.id);case 32:if(!(r=a.sent)){a.next=40;break}if(!(o=tn({post:n,edits:t,error:r})).length){a.next=38;break}return a.next=38,b.dispatch.apply(void 0,["core/notices","createErrorNotice"].concat(Object(Yt.a)(o)));case 38:a.next=58;break;case 40:return a.next=42,Object(b.select)(A,"getCurrentPost");case 42:return i=a.sent,a.t7=en,a.t8=n,a.t9=i,a.next=48,Object(b.select)("core","getPostType",i.type);case 48:if(a.t10=a.sent,a.t11=e,a.t12={previousPost:a.t8,post:a.t9,postType:a.t10,options:a.t11},!(c=(0,a.t7)(a.t12)).length){a.next=55;break}return a.next=55,b.dispatch.apply(void 0,["core/notices","createSuccessNotice"].concat(Object(Yt.a)(c)));case 55:if(e.isAutosave){a.next=58;break}return a.next=58,Object(b.dispatch)("core/block-editor","__unstableMarkLastChangeAsPersistent");case 58:case"end":return a.stop()}}),an)}function En(){var e,t,n,r;return Jt.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,Object(b.select)(A,"getCurrentPost");case 2:return e=o.sent,o.next=5,Object(b.select)(A,"getCurrentPostType");case 5:return t=o.sent,o.next=8,Object(b.select)("core","getPostType",t);case 8:return n=o.sent,o.next=11,Object(b.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(b.dispatch)(A,"resetPost",r);case 14:case"end":return o.stop()}}),un)}function wn(){var e,t,n;return Jt.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Object(b.select)(A,"getCurrentPostType");case 2:return e=r.sent,r.next=5,Object(b.select)("core","getPostType",e);case 5:return t=r.sent,r.next=8,Object(b.dispatch)("core/notices","removeNotice","TRASH_POST_NOTICE_ID");case 8:return r.prev=8,r.next=11,Object(b.select)(A,"getCurrentPost");case 11:return n=r.sent,r.next=14,Object(b.apiFetch)({path:"/wp/v2/".concat(t.rest_base,"/").concat(n.id),method:"DELETE"});case 14:return r.next=16,Object(b.dispatch)(A,"savePost");case 16:r.next=22;break;case 18:return r.prev=18,r.t0=r.catch(8),r.next=22,b.dispatch.apply(void 0,["core/notices","createErrorNotice"].concat(Object(Yt.a)([(o={error:r.t0}).error.message&&"unknown_error"!==o.error.code?o.error.message:Object(Zt.__)("Trashing failed"),{id:"TRASH_POST_NOTICE_ID"}])));case 22:case"end":return r.stop()}var o}),ln,null,[[8,18]])}function Cn(){var e,t,n,r,o,i,c,s,a,u=arguments;return Jt.a.wrap((function(l){for(;;)switch(l.prev=l.next){case 0:if(e=u.length>0&&void 0!==u[0]?u[0]:{},t=e.local,n=void 0!==t&&t,r=Object($t.a)(e,["local"]),!n){l.next=21;break}return l.next=4,Object(b.select)(A,"getCurrentPost");case 4:return o=l.sent,l.next=7,Object(b.select)(A,"isEditedPostNew");case 7:return i=l.sent,l.next=10,Object(b.select)(A,"getEditedPostAttribute","title");case 10:return c=l.sent,l.next=13,Object(b.select)(A,"getEditedPostAttribute","content");case 13:return s=l.sent,l.next=16,Object(b.select)(A,"getEditedPostAttribute","excerpt");case 16:return a=l.sent,l.next=19,{type:"LOCAL_AUTOSAVE_SET",postId:o.id,isPostNew:i,title:c,content:s,excerpt:a};case 19:l.next=23;break;case 21:return l.next=23,Object(b.dispatch)(A,"savePost",rn({isAutosave:!0},r));case 23:case"end":return l.stop()}}),dn)}function Tn(){return Jt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(b.dispatch)("core","redo");case 2:case"end":return e.stop()}}),pn)}function xn(){return Jt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(b.dispatch)("core","undo");case 2:case"end":return e.stop()}}),bn)}function Bn(){return{type:"CREATE_UNDO_LEVEL"}}function In(e){return{type:"UPDATE_POST_LOCK",lock:e}}function An(){return{type:"ENABLE_PUBLISH_SIDEBAR"}}function Rn(){return{type:"DISABLE_PUBLISH_SIDEBAR"}}function Dn(e){return{type:"LOCK_POST_SAVING",lockName:e}}function Nn(e){return{type:"UNLOCK_POST_SAVING",lockName:e}}function Ln(e){return{type:"LOCK_POST_AUTOSAVING",lockName:e}}function Un(e){return{type:"UNLOCK_POST_AUTOSAVING",lockName:e}}function Fn(e){var t,n,r,o,i,c,s,a,u=arguments;return Jt.a.wrap((function(l){for(;;)switch(l.prev=l.next){case 0:if(t=u.length>1&&void 0!==u[1]?u[1]:{},n=t.__unstableShouldCreateUndoLevel,r=t.selectionStart,o=t.selectionEnd,i={blocks:e,selectionStart:r,selectionEnd:o},!1===n){l.next=19;break}return l.next=6,Object(b.select)(A,"getCurrentPost");case 6:return c=l.sent,s=c.id,a=c.type,l.next=11,Object(b.syncSelect)("core","getEditedEntityRecord","postType",a,s);case 11:if(l.t0=l.sent.blocks,l.t1=i.blocks,!(l.t0===l.t1)){l.next=18;break}return l.next=17,Object(b.dispatch)("core","__unstableCreateUndoLevel","postType",a,s);case 17:return l.abrupt("return",l.sent);case 18:i.content=function(e){var t=e.blocks;return F(void 0===t?[]:t)};case 19:return l.delegateYield(Pn(i),"t2",20);case 20:case"end":return l.stop()}}),fn)}function Mn(e){return{type:"UPDATE_EDITOR_SETTINGS",settings:e}}var Vn=function(e){return Jt.a.mark((function t(){var n,r,o,i=arguments;return Jt.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(x()("`wp.data.dispatch( 'core/editor' )."+e+"`",{alternative:"`wp.data.dispatch( 'core/block-editor' )."+e+"`"}),n=i.length,r=new Array(n),o=0;o<n;o++)r[o]=i[o];return t.next=4,b.dispatch.apply(void 0,["core/block-editor",e].concat(r));case 4:case"end":return t.stop()}}),t)}))},zn=Vn("resetBlocks"),Hn=Vn("receiveBlocks"),Wn=Vn("updateBlock"),Gn=Vn("updateBlockAttributes"),Kn=Vn("selectBlock"),qn=Vn("startMultiSelect"),Qn=Vn("stopMultiSelect"),$n=Vn("multiSelect"),Yn=Vn("clearSelectedBlock"),Xn=Vn("toggleSelection"),Jn=Vn("replaceBlocks"),Zn=Vn("replaceBlock"),er=Vn("moveBlocksDown"),tr=Vn("moveBlocksUp"),nr=Vn("moveBlockToPosition"),rr=Vn("insertBlock"),or=Vn("insertBlocks"),ir=Vn("showInsertionPoint"),cr=Vn("hideInsertionPoint"),sr=Vn("setTemplateValidity"),ar=Vn("synchronizeTemplate"),ur=Vn("mergeBlocks"),lr=Vn("removeBlocks"),dr=Vn("removeBlock"),pr=Vn("toggleBlockMode"),br=Vn("startTyping"),fr=Vn("stopTyping"),hr=Vn("enterFormattedText"),mr=Vn("exitFormattedText"),vr=Vn("insertDefaultBlock"),Or=Vn("updateBlockListSettings");function gr(e,t){return"wp-autosave-block-editor-post-".concat(t?"auto-draft":e)}function jr(e,t){window.sessionStorage.removeItem(gr(e,t))}var yr={LOCAL_AUTOSAVE_SET:function(e){!function(e,t,n,r,o){window.sessionStorage.setItem(gr(e,t),JSON.stringify({post_title:n,content:r,excerpt:o}))}(e.postId,e.isPostNew,e.title,e.content,e.excerpt)}};function _r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_r(Object(n),!0).forEach((function(t){Object(d.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var kr={reducer:S,selectors:r,actions:o,controls:Pr(Pr({},b.controls),yr)},Sr=(Object(p.registerStore)(A,Pr(Pr({},kr),{},{persist:["preferences"]})),n(8)),Er=n(10),wr=n(33);function Cr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Tr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cr(Object(n),!0).forEach((function(t){Object(d.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xr(e){var t=Object(v.mapValues)(Object(v.pickBy)(e.attributes,{source:"meta"}),"meta");return Object(v.isEmpty)(t)||(e.edit=function(e){return Object(Er.createHigherOrderComponent)((function(t){return function(n){var r=n.attributes,o=n.setAttributes,i=Object($t.a)(n,["attributes","setAttributes"]),c=Object(p.useSelect)((function(e){return e("core/editor").getCurrentPostType()}),[]),a=Object(s.useEntityProp)("postType",c,"meta"),u=Object(E.a)(a,2),l=u[0],d=u[1],b=Object(B.useMemo)((function(){return Tr(Tr({},r),Object(v.mapValues)(e,(function(e){return l[e]})))}),[r,l]);return Object(B.createElement)(t,Object(Sr.a)({attributes:b,setAttributes:function(t){var n=Object(v.mapKeys)(Object(v.pickBy)(t,(function(t,n){return e[n]})),(function(t,n){return e[n]}));Object(v.isEmpty)(n)||d(n),o(t)}},i))}}),"withMetaAttributeSource")}(t)(e.edit)),e}Object(wr.addFilter)("blocks.registerBlockType","core/editor/custom-sources-backwards-compatibility/shim-attribute-source",xr),Object(p.select)("core/blocks").getBlockTypes().map((function(e){var t=e.name;return Object(p.select)("core/blocks").getBlockType(t)})).forEach(xr);var Br=n(47),Ir=n.n(Br),Ar={name:"users",className:"editor-autocompleters__user",triggerPrefix:"@",options:function(e){var t="";return e&&(t="?search="+encodeURIComponent(e)),Ir()({path:"/wp/v2/users"+t})},isDebounced:!0,getOptionKeywords:function(e){return[e.slug,e.name]},getOptionLabel:function(e){return[e.avatar_urls&&e.avatar_urls[24]?Object(B.createElement)("img",{key:"avatar",className:"editor-autocompleters__user-avatar",alt:"",src:e.avatar_urls[24]}):Object(B.createElement)("span",{className:"editor-autocompleters__no-avatar"}),Object(B.createElement)("span",{key:"name",className:"editor-autocompleters__user-name"},e.name),Object(B.createElement)("span",{key:"slug",className:"editor-autocompleters__user-slug"},e.slug)]},getOptionCompletion:function(e){return"@".concat(e.slug)}};Object(wr.addFilter)("editor.Autocomplete.completers","editor/autocompleters/set-default-completers",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.push(Object(v.clone)(Ar)),e}));var Rr=n(21),Dr=n(22),Nr=n(23),Lr=n(24),Ur=n(19);function Fr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ur.a)(e);if(t){var o=Object(Ur.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Lr.a)(this,n)}}var Mr=function(e){Object(Nr.a)(n,e);var t=Fr(n);function n(e){var r;return Object(Rr.a)(this,n),(r=t.call(this,e)).needsAutosave=!(!e.isDirty||!e.isAutosaveable),r}return Object(Dr.a)(n,[{key:"componentDidMount",value:function(){this.props.disableIntervalChecks||this.setAutosaveTimer()}},{key:"componentDidUpdate",value:function(e){this.props.disableIntervalChecks&&this.props.editsReference!==e.editsReference?this.props.autosave():(this.props.isDirty||!e.isDirty)&&(!this.props.isAutosaving||e.isAutosaving)?this.props.editsReference!==e.editsReference&&(this.needsAutosave=!0):this.needsAutosave=!1}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timerId)}},{key:"setAutosaveTimer",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3*this.props.interval;this.timerId=setTimeout((function(){e.autosaveTimerHandler()}),t)}},{key:"autosaveTimerHandler",value:function(){this.props.isAutosaveable?(this.needsAutosave&&(this.needsAutosave=!1,this.props.autosave()),this.setAutosaveTimer()):this.setAutosaveTimer(1e3)}},{key:"render",value:function(){return null}}]),n}(B.Component),Vr=Object(Er.compose)([Object(p.withSelect)((function(e,t){var n=e("core").getReferenceByDistinctEdits,r=e("core/editor"),o=r.isEditedPostDirty,i=r.isEditedPostAutosaveable,c=r.isAutosavingPost,s=r.getEditorSettings,a=t.interval,u=void 0===a?s().autosaveInterval:a;return{editsReference:n(),isDirty:o(),isAutosaveable:i(),isAutosaving:c(),interval:u}})),Object(p.withDispatch)((function(e,t){return{autosave:function(){var n=t.autosave,r=void 0===n?e("core/editor").autosave:n;r()}}}))])(Mr),zr=n(9),Hr=n.n(zr),Wr=function(e){var t=e.children,n=e.isValid,r=e.level,o=e.href,i=e.onSelect;return Object(B.createElement)("li",{className:Hr()("document-outline__item","is-".concat(r.toLowerCase()),{"is-invalid":!n})},Object(B.createElement)("a",{href:o,className:"document-outline__button",onClick:i},Object(B.createElement)("span",{className:"document-outline__emdash","aria-hidden":"true"}),Object(B.createElement)("strong",{className:"document-outline__level"},r),Object(B.createElement)("span",{className:"document-outline__item-content"},t)))};function Gr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gr(Object(n),!0).forEach((function(t){Object(d.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var qr=Object(B.createElement)("em",null,Object(Zt.__)("(Empty heading)")),Qr=[Object(B.createElement)("br",{key:"incorrect-break"}),Object(B.createElement)("em",{key:"incorrect-message"},Object(Zt.__)("(Incorrect heading level)"))],$r=[Object(B.createElement)("br",{key:"incorrect-break-h1"}),Object(B.createElement)("em",{key:"incorrect-message-h1"},Object(Zt.__)("(Your theme may already use a H1 for the post title)"))],Yr=[Object(B.createElement)("br",{key:"incorrect-break-multiple-h1"}),Object(B.createElement)("em",{key:"incorrect-message-multiple-h1"},Object(Zt.__)("(Multiple H1 headings are not recommended)"))],Xr=function(e){return!e.attributes.content||0===e.attributes.content.length},Jr=Object(Er.compose)(Object(p.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(v.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,s=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Object(v.flatMap)(t,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"core/heading"===t.name?Kr(Kr({},t),{},{level:t.attributes.level,isEmpty:Xr(t)}):e(t.innerBlocks)}))}(n);if(s.length<1)return null;var a=1,u=document.querySelector(".editor-post-title__input"),d=i&&r&&u,p=Object(v.countBy)(s,"level")[1]>1;return Object(B.createElement)("div",{className:"document-outline"},Object(B.createElement)("ul",null,d&&Object(B.createElement)(Wr,{level:Object(Zt.__)("Title"),isValid:!0,onSelect:o,href:"#".concat(u.id),isDisabled:c},r),s.map((function(e,t){var n=e.level>a+1,r=!(e.isEmpty||n||!e.level||1===e.level&&(p||d));return a=e.level,Object(B.createElement)(Wr,{key:t,level:"H".concat(e.level),isValid:r,isDisabled:c,href:"#block-".concat(e.clientId),onSelect:o},e.isEmpty?qr:Object(l.getTextContent)(Object(l.create)({html:e.attributes.content})),n&&Qr,1===e.level&&p&&Yr,d&&1===e.level&&!p&&$r)}))))}));var Zr=Object(p.withSelect)((function(e){return{blocks:e("core/block-editor").getBlocks()}}))((function(e){var t=e.blocks,n=e.children;return Object(v.filter)(t,(function(e){return"core/heading"===e.name})).length<1?null:n}));var eo=function(e){var t=e.resetBlocksOnSave,n=Object(p.useDispatch)("core/editor"),r=n.resetEditorBlocks,o=n.savePost,i=Object(p.useSelect)((function(e){var t=e("core/editor");return{isEditedPostDirty:t.isEditedPostDirty,getPostEdits:t.getPostEdits}}),[]),s=i.isEditedPostDirty,u=i.getPostEdits;return Object(a.useShortcut)("core/editor/save",(function(e){if(e.preventDefault(),s()){if(t){var n=u();if(n.content&&"string"==typeof n.content){var i=Object(c.parse)(n.content);r(i)}}o()}}),{bindGlobal:!0}),null};function to(){var e=Object(p.useDispatch)("core/editor"),t=e.redo,n=e.undo;return Object(a.useShortcut)("core/editor/undo",(function(e){n(),e.preventDefault()}),{bindGlobal:!0}),Object(a.useShortcut)("core/editor/redo",(function(e){t(),e.preventDefault()}),{bindGlobal:!0}),Object(B.createElement)(B.Fragment,null,Object(B.createElement)(i.BlockEditorKeyboardShortcuts,null),Object(B.createElement)(eo,null))}var no=to;function ro(){return x()("EditorGlobalKeyboardShortcuts",{alternative:"VisualEditorGlobalKeyboardShortcuts",plugin:"Gutenberg"}),Object(B.createElement)(to,null)}function oo(){return Object(B.createElement)(eo,{resetBlocksOnSave:!0})}var io=function(){var e=Object(p.useDispatch)("core/keyboard-shortcuts").registerShortcut;return Object(B.useEffect)((function(){e({name:"core/editor/save",category:"global",description:Object(Zt.__)("Save your changes."),keyCombination:{modifier:"primary",character:"s"}}),e({name:"core/editor/undo",category:"global",description:Object(Zt.__)("Undo your last changes."),keyCombination:{modifier:"primary",character:"z"}}),e({name:"core/editor/redo",category:"global",description:Object(Zt.__)("Redo your last undo."),keyCombination:{modifier:"primaryShift",character:"z"}})}),[e]),Object(B.createElement)(i.BlockEditorKeyboardShortcuts.Register,null)},co=n(3),so=n(18),ao=n(7),uo=Object(B.createElement)(ao.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(B.createElement)(ao.Path,{d:"M15.6 6.5l-1.1 1 2.9 3.3H8c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.3-.5h9.2L14.5 15l1.1 1.1 4.6-4.6-4.6-5z"}));var lo=Object(B.forwardRef)((function(e,t){var n=Object(p.useSelect)((function(e){return e("core/editor").hasEditorRedo()}),[]),r=Object(p.useDispatch)("core/editor").redo;return Object(B.createElement)(co.Button,Object(Sr.a)({},e,{ref:t,icon:uo,label:Object(Zt.__)("Redo"),shortcut:so.displayShortcut.primaryShift("z"),"aria-disabled":!n,onClick:n?r:void 0,className:"editor-history__redo"}))})),po=Object(B.createElement)(ao.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(B.createElement)(ao.Path,{d:"M18.3 11.7c-.6-.6-1.4-.9-2.3-.9H6.7l2.9-3.3-1.1-1-4.5 5L8.5 16l1-1-2.7-2.7H16c.5 0 .9.2 1.3.5 1 1 1 3.4 1 4.5v.3h1.5v-.2c0-1.5 0-4.3-1.5-5.7z"}));var bo=Object(B.forwardRef)((function(e,t){var n=Object(p.useSelect)((function(e){return e("core/editor").hasEditorUndo()}),[]),r=Object(p.useDispatch)("core/editor").undo;return Object(B.createElement)(co.Button,Object(Sr.a)({},e,{ref:t,icon:po,label:Object(Zt.__)("Undo"),shortcut:so.displayShortcut.primary("z"),"aria-disabled":!n,onClick:n?r:void 0,className:"editor-history__undo"}))}));var fo=Object(Er.compose)([Object(p.withSelect)((function(e){return{isValid:e("core/block-editor").isValidTemplate()}})),Object(p.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($t.a)(e,["isValid"]);return t?null:Object(B.createElement)(co.Notice,{className:"editor-template-validation-notice",isDismissible:!1,status:"warning",actions:[{label:Object(Zt.__)("Keep it as is"),onClick:n.resetTemplateValidity},{label:Object(Zt.__)("Reset the template"),onClick:function(){window.confirm(Object(Zt.__)("Resetting the template may result in loss of content, do you want to continue?"))&&n.synchronizeTemplate()},isPrimary:!0}]},Object(Zt.__)("The content of your post doesn’t match the template assigned to your post type."))}));var ho=Object(Er.compose)([Object(p.withSelect)((function(e){return{notices:e("core/notices").getNotices()}})),Object(p.withDispatch)((function(e){return{onRemove:e("core/notices").removeNotice}}))])((function(e){var t=e.notices,n=e.onRemove,r=Object(v.filter)(t,{isDismissible:!0,type:"default"}),o=Object(v.filter)(t,{isDismissible:!1,type:"default"}),i=Object(v.filter)(t,{type:"snackbar"});return Object(B.createElement)(B.Fragment,null,Object(B.createElement)(co.NoticeList,{notices:o,className:"components-editor-notices__pinned"}),Object(B.createElement)(co.NoticeList,{notices:r,className:"components-editor-notices__dismissible",onRemove:n},Object(B.createElement)(fo,null)),Object(B.createElement)(co.SnackbarList,{notices:i,className:"components-editor-notices__snackbar",onRemove:n}))})),mo=n(160),vo=n(318),Oo=Object(B.createElement)(ao.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(B.createElement)(ao.Path,{d:"M7 5.5h10a.5.5 0 01.5.5v12a.5.5 0 01-.5.5H7a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM17 4H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V6a2 2 0 00-2-2zm-1 3.75H8v1.5h8v-1.5zM8 11h8v1.5H8V11zm6 3.25H8v1.5h6v-1.5z"}));function go(e){var t=e.record,n=e.checked,r=e.onChange,o=e.closePanel,i=t.name,c=t.kind,s=t.title,a=t.key,u=Object(p.useSelect)((function(e){var t,n=e("core").getEditedEntityRecord(c,i,a).blocks,r=void 0===n?[]:n,o=e("core/block-editor").getBlockParents(null===(t=r[0])||void 0===t?void 0:t.clientId);return o[o.length-1]}),[]),l=Object(p.useSelect)((function(e){return e("core/block-editor").getSelectedBlockClientId()===u}),[u]),d=l?Object(Zt.__)("Selected"):Object(Zt.__)("Select"),b=Object(p.useDispatch)("core/block-editor").selectBlock,f=Object(B.useCallback)((function(){return b(u)}),[u]),h=Object(B.useCallback)((function(){b(u),o()}),[u]);return Object(B.createElement)(co.PanelRow,null,Object(B.createElement)(co.CheckboxControl,{label:Object(B.createElement)("strong",null,s||Object(Zt.__)("Untitled")),checked:n,onChange:r}),u?Object(B.createElement)(B.Fragment,null,Object(B.createElement)(co.Button,{onClick:f,className:"entities-saved-states__find-entity",disabled:l},d),Object(B.createElement)(co.Button,{onClick:h,className:"entities-saved-states__find-entity-small",disabled:l},d)):null)}var jo={site:vo.a,page:Oo};function yo(e){var t=e.list,n=e.unselectedEntities,r=e.setUnselectedEntities,o=e.closePanel,i=t[0],c=Object(p.useSelect)((function(e){return e("core").getEntity(i.kind,i.name)}),[i.kind,i.name]),s=i.name,a=jo[s];return Object(B.createElement)(co.PanelBody,{title:c.label,initialOpen:!0,icon:a},t.map((function(e){return Object(B.createElement)(go,{key:e.key||"site",record:e,checked:!Object(v.some)(n,(function(t){return t.kind===e.kind&&t.name===e.name&&t.key===e.key})),onChange:function(t){return r(e,t)},closePanel:o})})))}var _o={wp_template_part:function(e){return Object(Zt._n)("template part","template parts",e)},wp_template:function(e){return Object(Zt._n)("template","templates",e)},post:function(e){return Object(Zt._n)("post","posts",e)},page:function(e){return Object(Zt._n)("page","pages",e)},site:function(e){return Object(Zt._n)("site","sites",e)}},Po={0:Object(Zt.__)("There are no changes."),1:Object(Zt.__)("Changes have been made to your %s."),2:Object(Zt.__)("Changes have been made to your %1$s and %2$s."),3:Object(Zt.__)("Changes have been made to your %1$s, %2$s, and %3$s."),4:Object(Zt.__)("Changes have been made to your %1$s, %2$s, %3$s, and %4$s."),5:Object(Zt.__)("Changes have been made to your %1$s, %2$s, %3$s, %4$s, and %5$s.")};function ko(e){var t=e.isOpen,n=e.close,r=Object(p.useSelect)((function(e){return{dirtyEntityRecords:e("core").__experimentalGetDirtyEntityRecords()}}),[]).dirtyEntityRecords,o=Object(p.useDispatch)("core").saveEditedEntityRecord,i=Object.values(Object(v.groupBy)(r,"name")),c=[];i.forEach((function(e){_o[e[0].name]&&c.push(_o[e[0].name](e.length))}));var s=Po[c.length]||Object(Zt.__)("Changes have been made to multiple entity types."),a=Zt.sprintf.apply(void 0,[s].concat(c)),u=Object(B.useState)([]),l=Object(E.a)(u,2),d=l[0],b=l[1],f=function(e,t){var n=e.kind,r=e.name,o=e.key;b(t?d.filter((function(e){return e.kind!==n||e.name!==r||e.key!==o})):[].concat(Object(Yt.a)(d),[{kind:n,name:r,key:o}]))},h=Object(B.useState)(!1),m=Object(E.a)(h,2),O=m[0],g=m[1],j=Object(B.useCallback)((function(){return n()}),[n]);return t?Object(B.createElement)("div",{className:"entities-saved-states__panel"},Object(B.createElement)("div",{className:"entities-saved-states__panel-header"},Object(B.createElement)(co.Button,{isPrimary:!0,disabled:r.length-d.length==0,onClick:function(){var e=r.filter((function(e){var t=e.kind,n=e.name,r=e.key;return!Object(v.some)(d,(function(e){return e.kind===t&&e.name===n&&e.key===r}))}));n(e),e.forEach((function(e){var t=e.kind,n=e.name,r=e.key;o(t,n,r)}))},className:"editor-entities-saved-states__save-button"},Object(Zt.__)("Save")),Object(B.createElement)(co.Button,{onClick:j,icon:mo.a,label:Object(Zt.__)("Close panel")})),Object(B.createElement)("div",{className:"entities-saved-states__text-prompt"},Object(B.createElement)("strong",null,Object(Zt.__)("Are you ready to save?")),Object(B.createElement)("p",null,a),Object(B.createElement)("p",null,Object(B.createElement)(co.Button,{onClick:function(){return g((function(e){return!e}))},isLink:!0,className:"entities-saved-states__review-changes-button"},O?Object(Zt.__)("Hide changes."):Object(Zt.__)("Review changes.")))),O&&i.map((function(e){return Object(B.createElement)(yo,{key:e[0].name,list:e,closePanel:j,unselectedEntities:d,setUnselectedEntities:f})}))):null}var So=n(16);function Eo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ur.a)(e);if(t){var o=Object(Ur.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Lr.a)(this,n)}}var wo=function(e){Object(Nr.a)(n,e);var t=Eo(n);function n(){var e;return Object(Rr.a)(this,n),(e=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(Dr.a)(n,[{key:"componentDidCatch",value:function(e){this.setState({error:e})}},{key:"reboot",value:function(){this.props.onError()}},{key:"getContent",value:function(){try{return Object(p.select)("core/editor").getEditedPostContent()}catch(e){}}},{key:"render",value:function(){var e=this.state.error;return e?Object(B.createElement)(i.Warning,{className:"editor-error-boundary",actions:[Object(B.createElement)(co.Button,{key:"recovery",onClick:this.reboot,isSecondary:!0},Object(Zt.__)("Attempt Recovery")),Object(B.createElement)(co.ClipboardButton,{key:"copy-post",text:this.getContent,isSecondary:!0},Object(Zt.__)("Copy Post Text")),Object(B.createElement)(co.ClipboardButton,{key:"copy-error",text:e.stack,isSecondary:!0},Object(Zt.__)("Copy Error"))]},Object(Zt.__)("The editor has encountered an unexpected error.")):this.props.children}}]),n}(B.Component),Co=window.requestIdleCallback?window.requestIdleCallback:window.requestAnimationFrame,To=Object(v.once)((function(){try{return window.sessionStorage.setItem("__wpEditorTestSessionStorage",""),window.sessionStorage.removeItem("__wpEditorTestSessionStorage"),!0}catch(e){return!1}}));function xo(){var e=Object(p.useSelect)((function(e){return{postId:e("core/editor").getCurrentPostId(),isEditedPostNew:e("core/editor").isEditedPostNew(),getEditedPostAttribute:e("core/editor").getEditedPostAttribute,hasRemoteAutosave:!!e("core/editor").getEditorSettings().autosave}}),[]),t=e.postId,n=e.isEditedPostNew,r=e.getEditedPostAttribute,o=e.hasRemoteAutosave,i=Object(p.useDispatch)("core/notices"),s=i.createWarningNotice,a=i.removeNotice,u=Object(p.useDispatch)("core/editor"),l=u.editPost,d=u.resetEditorBlocks;Object(B.useEffect)((function(){var e=function(e,t){return window.sessionStorage.getItem(gr(e,t))}(t,n);if(e){try{e=JSON.parse(e)}catch(e){return}var i=e,u={title:i.post_title,content:i.content,excerpt:i.excerpt};if(Object.keys(u).some((function(e){return u[e]!==r(e)}))){if(!o){var p=Object(v.uniqueId)("wpEditorAutosaveRestore");s(Object(Zt.__)("The backup of this post in your browser is different from the version below."),{id:p,actions:[{label:Object(Zt.__)("Restore the backup"),onClick:function(){l(Object(v.omit)(u,["content"])),d(Object(c.parse)(u.content)),a(p)}}]})}}else jr(t,n)}}),[n,t])}var Bo=Object(Er.ifCondition)(To)((function(){var e=Object(p.useDispatch)("core/editor").autosave,t=Object(B.useCallback)((function(){Co((function(){return e({local:!0})}))}),[]);xo(),function(){var e=Object(p.useSelect)((function(e){return{postId:e("core/editor").getCurrentPostId(),isEditedPostNew:e("core/editor").isEditedPostNew(),isDirty:e("core/editor").isEditedPostDirty(),isAutosaving:e("core/editor").isAutosavingPost(),didError:e("core/editor").didPostSaveRequestFail()}}),[]),t=e.postId,n=e.isEditedPostNew,r=e.isDirty,o=e.isAutosaving,i=e.didError,c=Object(B.useRef)(r),s=Object(B.useRef)(o);Object(B.useEffect)((function(){!i&&(s.current&&!o||c.current&&!r)&&jr(t,n),c.current=r,s.current=o}),[r,o,i]);var a=Object(Er.usePrevious)(n),u=Object(Er.usePrevious)(t);Object(B.useEffect)((function(){u===t&&a&&!n&&jr(t,!0)}),[n,t])}();var n=Object(p.useSelect)((function(e){return{localAutosaveInterval:e("core/editor").getEditorSettings().__experimentalLocalAutosaveInterval}}),[]).localAutosaveInterval;return Object(B.createElement)(Vr,{interval:n,autosave:t})}));var Io=Object(p.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(v.get)(n,["supports","page-attributes"],!1)&&Object(v.isEmpty)(t)?null:r}));var Ao=Object(p.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(v.some)(Object(v.castArray)(r),(function(e){return!!t.supports[e]}))),o?n:null})),Ro=Object(Er.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(B.createElement)(co.TextControl,{className:"editor-page-attributes__order",type:"number",label:Object(Zt.__)("Order"),value:c,onChange:function(e){i({orderInput:e});var n=Number(e);Number.isInteger(n)&&""!==Object(v.invoke)(e,["trim"])&&t(Number(e))},size:6,onBlur:function(){i({orderInput:null})}})}));var Do=Object(Er.compose)([Object(p.withSelect)((function(e){return{order:e("core/editor").getEditedPostAttribute("menu_order")}})),Object(p.withDispatch)((function(e){return{onUpdateOrder:function(t){e("core/editor").editPost({menu_order:t})}}}))])((function(e){return Object(B.createElement)(Ao,{supportKeys:"page-attributes"},Object(B.createElement)(Ro,e))}));function No(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?No(Object(n),!0).forEach((function(t){Object(d.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):No(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Uo(e){var t=e.map((function(e){return Lo({children:[],parent:null},e)})),n=Object(v.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 Lo(Lo({},t),{},{children:r&&r.length?e(r):[]})}))}(n[0]||[])}var Fo=function(){var e=Object(p.useDispatch)("core/editor").editPost,t=Object(B.useState)(!1),n=Object(E.a)(t,2),r=n[0],o=n[1],i=Object(p.useSelect)((function(e){var t=e("core"),n=t.getPostType,o=t.getEntityRecords,i=t.getEntityRecord,s=e("core/editor"),a=s.getCurrentPostId,u=s.getEditedPostAttribute,l=u("type"),d=u("parent"),p=n(l),b=a(),f=Object(v.get)(p,["hierarchical"],!1),h={per_page:100,exclude:b,parent_exclude:b,orderby:"menu_order",order:"asc",_fields:"id,title,parent"};return c&&r&&""!==r&&(h.search=r),{parentPostId:d,parentPost:d?i("postType",l,d):null,items:f?o("postType",l,h):[],postType:p}}),[r]),c=i.parentPost,s=i.parentPostId,a=i.items,u=i.postType,l=Object(v.get)(u,["hierarchical"],!1),d=Object(v.get)(u,["labels","parent_item_colon"]),b=a||[],f=Object(B.useMemo)((function(){return function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object(v.flatMap)(t,(function(t){return[{value:t.id,label:Object(v.repeat)("— ",n)+Object(v.unescape)(t.name)}].concat(Object(Yt.a)(e(t.children||[],n+1)))}))}(Uo(b.map((function(e){return{id:e.id,parent:e.parent,name:(t=e,(null==t||null===(n=t.title)||void 0===n?void 0:n.rendered)?t.title.rendered:"#".concat(t.id," (").concat(Object(Zt.__)("no title"),")"))};var t,n}))))}),[b]);return l&&d?Object(B.createElement)(co.ComboboxControl,{className:"editor-page-attributes__parent",label:d,value:s,options:f,onFilterValueChange:Object(v.debounce)((function(e){o(e)}),300),onChange:function(t){e({parent:t})}}):null};var Mo=Object(Er.compose)(Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=(0,t.getEditorSettings)().availableTemplates;return{selectedTemplate:n("template"),availableTemplates:r}})),Object(p.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(v.isEmpty)(t)?null:Object(B.createElement)(co.SelectControl,{label:Object(Zt.__)("Template:"),value:n,onChange:r,className:"editor-page-attributes__template",options:Object(v.map)(t,(function(e,t){return{value:t,label:e}}))})}));var Vo=Object(Er.compose)([Object(p.withSelect)((function(e){var t=e("core/editor").getCurrentPost();return{hasAssignAuthorAction:Object(v.get)(t,["_links","wp:action-assign-author"],!1),postType:e("core/editor").getCurrentPostType(),authors:e("core").getUsers({who:"authors"})}})),Er.withInstanceId])((function(e){var t=e.hasAssignAuthorAction,n=e.authors,r=e.children;return!t||!n||n.length<2?null:Object(B.createElement)(Ao,{supportKeys:"author"},r)}));function zo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ho(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zo(Object(n),!0).forEach((function(t){Object(d.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Wo=function(){var e=Object(B.useState)(),t=Object(E.a)(e,2),n=t[0],r=t[1],o=Object(p.useSelect)((function(e){var t=e("core"),r=t.getUser,o=t.getUsers,i=t.isResolving,c=e("core/editor").getEditedPostAttribute,s=r(c("author")),a=n&&""!==n?{search:n}:{};return{authorId:c("author"),postAuthor:s,authors:o(Ho({who:"authors"},a)),isLoading:i("core","getUsers",[{search:n,who:"authors"}])}}),[n]),i=o.authorId,c=o.isLoading,s=o.authors,a=o.postAuthor,u=Object(p.useDispatch)("core/editor").editPost,l=Object(B.useMemo)((function(){var e=(null!=s?s:[]).map((function(e){return{value:e.id,label:e.name}}));return e.findIndex((function(e){var t=e.value;return(null==a?void 0:a.id)===t}))<0&&a?[{value:a.id,label:a.name}].concat(Object(Yt.a)(e)):e}),[s,a]);return Object(B.useEffect)((function(){a&&r(a.name)}),[a]),a?Object(B.createElement)(Vo,null,Object(B.createElement)(co.ComboboxControl,{label:Object(Zt.__)("Author"),options:l,value:i,onFilterValueChange:Object(v.debounce)((function(e){r(e)}),300),onChange:function(e){e&&u({author:e})},isLoading:c,allowReset:!1})):null};var Go=Object(Er.compose)([Object(p.withSelect)((function(e){return{commentStatus:e("core/editor").getEditedPostAttribute("comment_status")}})),Object(p.withDispatch)((function(e){return{editPost:e("core/editor").editPost}}))])((function(e){var t=e.commentStatus,n=void 0===t?"open":t,r=Object($t.a)(e,["commentStatus"]);return Object(B.createElement)(co.CheckboxControl,{label:Object(Zt.__)("Allow comments"),checked:"open"===n,onChange:function(){return r.editPost({comment_status:"open"===n?"closed":"open"})}})}));var Ko=Object(Er.compose)([Object(p.withSelect)((function(e){return{excerpt:e("core/editor").getEditedPostAttribute("excerpt")}})),Object(p.withDispatch)((function(e){return{onUpdateExcerpt:function(t){e("core/editor").editPost({excerpt:t})}}}))])((function(e){var t=e.excerpt,n=e.onUpdateExcerpt;return Object(B.createElement)("div",{className:"editor-post-excerpt"},Object(B.createElement)(co.TextareaControl,{label:Object(Zt.__)("Write an excerpt (optional)"),className:"editor-post-excerpt__textarea",onChange:function(e){return n(e)},value:t}),Object(B.createElement)(co.ExternalLink,{href:Object(Zt.__)("https://wordpress.org/support/article/excerpt/")},Object(Zt.__)("Learn more about manual excerpts")))}));var qo=function(e){return Object(B.createElement)(Ao,Object(Sr.a)({},e,{supportKeys:"excerpt"}))};var Qo=Object(p.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(v.some)(Object(v.castArray)(o),(function(e){var n=Object(v.get)(t,[e],!1);return"post-thumbnails"===e&&Object(v.isArray)(n)?Object(v.includes)(n,r):n}))?n:null}));var $o=function(e){return Object(B.createElement)(Qo,{supportKeys:"post-thumbnails"},Object(B.createElement)(Ao,Object(Sr.a)({},e,{supportKeys:"thumbnail"})))},Yo=["image"],Xo=Object(Zt.__)("Featured image"),Jo=Object(Zt.__)("Set featured image"),Zo=Object(Zt.__)("Remove image");var ei=Object(p.withSelect)((function(e){var t=e("core"),n=t.getMedia,r=t.getPostType,o=e("core/editor"),i=o.getCurrentPostId,c=o.getEditedPostAttribute,s=c("featured_media");return{media:s?n(s):null,currentPostId:i(),postType:r(c("type")),featuredImageId:s}})),ti=Object(p.withDispatch)((function(e,t,n){var r=t.noticeOperations,o=n.select,i=e("core/editor").editPost;return{onUpdateImage:function(e){i({featured_media:e.id})},onDropImage:function(e){o("core/block-editor").getSettings().mediaUpload({allowedTypes:["image"],filesList:e,onFileChange:function(e){var t=Object(E.a)(e,1)[0];i({featured_media:t.id})},onError:function(e){r.removeAllNotices(),r.createErrorNotice(e)}})},onRemoveImage:function(){i({featured_media:0})}}})),ni=Object(Er.compose)(co.withNotices,ei,ti,Object(co.withFilters)("editor.PostFeaturedImage"))((function(e){var t,n,r,o,c,s=e.currentPostId,a=e.featuredImageId,u=e.onUpdateImage,l=e.onDropImage,d=e.onRemoveImage,p=e.media,b=e.postType,f=e.noticeUI,h=Object(v.get)(b,["labels"],{}),m=Object(B.createElement)("p",null,Object(Zt.__)("To edit the featured image, you need permission to upload media."));if(p){var O=Object(wr.applyFilters)("editor.PostFeaturedImage.imageSize","post-thumbnail",p.id,s);if(Object(v.has)(p,["media_details","sizes",O]))r=p.media_details.sizes[O].width,o=p.media_details.sizes[O].height,c=p.media_details.sizes[O].source_url;else{var g=Object(wr.applyFilters)("editor.PostFeaturedImage.imageSize","thumbnail",p.id,s);Object(v.has)(p,["media_details","sizes",g])?(r=p.media_details.sizes[g].width,o=p.media_details.sizes[g].height,c=p.media_details.sizes[g].source_url):(r=p.media_details.width,o=p.media_details.height,c=p.source_url)}}return Object(B.createElement)($o,null,f,Object(B.createElement)("div",{className:"editor-post-featured-image"},p&&Object(B.createElement)("div",{id:"editor-post-featured-image-".concat(a,"-describedby"),className:"hidden"},p.alt_text&&Object(Zt.sprintf)(Object(Zt.__)("Current image: %s"),p.alt_text),!p.alt_text&&Object(Zt.sprintf)(Object(Zt.__)("The current image has no alternative text. The file name is: %s"),(null===(t=p.media_details.sizes)||void 0===t||null===(n=t.full)||void 0===n?void 0:n.file)||p.slug)),Object(B.createElement)(i.MediaUploadCheck,{fallback:m},Object(B.createElement)(i.MediaUpload,{title:h.featured_image||Xo,onSelect:u,unstableFeaturedImageFlow:!0,allowedTypes:Yo,modalClass:"editor-post-featured-image__media-modal",render:function(e){var t=e.open;return Object(B.createElement)("div",{className:"editor-post-featured-image__container"},Object(B.createElement)(co.Button,{className:a?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:t,"aria-label":a?Object(Zt.__)("Edit or update the image"):null,"aria-describedby":a?"editor-post-featured-image-".concat(a,"-describedby"):null},!!a&&p&&Object(B.createElement)(co.ResponsiveWrapper,{naturalWidth:r,naturalHeight:o,isInline:!0},Object(B.createElement)("img",{src:c,alt:""})),!!a&&!p&&Object(B.createElement)(co.Spinner,null),!a&&(h.set_featured_image||Jo)),Object(B.createElement)(co.DropZone,{onFilesDrop:l}))},value:a})),!!a&&p&&!p.isLoading&&Object(B.createElement)(i.MediaUploadCheck,null,Object(B.createElement)(i.MediaUpload,{title:h.featured_image||Xo,onSelect:u,unstableFeaturedImageFlow:!0,allowedTypes:Yo,modalClass:"editor-post-featured-image__media-modal",render:function(e){var t=e.open;return Object(B.createElement)(co.Button,{onClick:t,isSecondary:!0},Object(Zt.__)("Replace Image"))}})),!!a&&Object(B.createElement)(i.MediaUploadCheck,null,Object(B.createElement)(co.Button,{onClick:d,isLink:!0,isDestructive:!0},h.remove_featured_image||Zo))))}));var ri=Object(p.withSelect)((function(e){return{disablePostFormats:e("core/editor").getEditorSettings().disablePostFormats}}))((function(e){var t=e.disablePostFormats,n=Object($t.a)(e,["disablePostFormats"]);return!t&&Object(B.createElement)(Ao,Object(Sr.a)({},n,{supportKeys:"post-formats"}))})),oi=[{id:"aside",caption:Object(Zt.__)("Aside")},{id:"gallery",caption:Object(Zt.__)("Gallery")},{id:"link",caption:Object(Zt.__)("Link")},{id:"image",caption:Object(Zt.__)("Image")},{id:"quote",caption:Object(Zt.__)("Quote")},{id:"standard",caption:Object(Zt.__)("Standard")},{id:"status",caption:Object(Zt.__)("Status")},{id:"video",caption:Object(Zt.__)("Video")},{id:"audio",caption:Object(Zt.__)("Audio")},{id:"chat",caption:Object(Zt.__)("Chat")}];function ii(){var e=Object(Er.useInstanceId)(ii),t="post-format-selector-".concat(e),n=Object(p.useSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getSuggestedPostFormat,o=n("format"),i=e("core").getThemeSupports();return{postFormat:null!=o?o:"standard",suggestedFormat:r(),supportedFormats:Object(v.union)([o],Object(v.get)(i,["formats"],[]))}}),[]),r=n.postFormat,o=n.suggestedFormat,i=n.supportedFormats,c=oi.filter((function(e){return Object(v.includes)(i,e.id)})),s=Object(v.find)(c,(function(e){return e.id===o})),a=Object(p.useDispatch)("core/editor").editPost,u=function(e){return a({format:e})};return Object(B.createElement)(ri,null,Object(B.createElement)("div",{className:"editor-post-format"},Object(B.createElement)("div",{className:"editor-post-format__content"},Object(B.createElement)("label",{htmlFor:t},Object(Zt.__)("Post Format")),Object(B.createElement)(co.SelectControl,{value:r,onChange:function(e){return u(e)},id:t,options:c.map((function(e){return{label:e.caption,value:e.id}}))})),s&&s.id!==r&&Object(B.createElement)("div",{className:"editor-post-format__suggestion"},Object(Zt.__)("Suggestion:")," ",Object(B.createElement)(co.Button,{isLink:!0,onClick:function(){return u(s.id)}},s.caption))))}var ci=Object(B.createElement)(ao.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(B.createElement)(ao.Path,{d:"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"}));var si=Object(p.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(B.createElement)(Ao,{supportKeys:"revisions"},r)}));var ai=Object(p.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(B.createElement)(si,null,Object(B.createElement)(co.Button,{href:M("revision.php",{revision:t,gutenberg:!0}),className:"editor-post-last-revision__title",icon:ci},Object(Zt.sprintf)(Object(Zt._n)("%d Revision","%d Revisions",n),n)))}));function ui(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ur.a)(e);if(t){var o=Object(Ur.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Lr.a)(this,n)}}var li=function(e){Object(Nr.a)(n,e);var t=ui(n);function n(){var e;return Object(Rr.a)(this,n),(e=t.apply(this,arguments)).buttonRef=Object(B.createRef)(),e.openPreviewWindow=e.openPreviewWindow.bind(Object(So.a)(e)),e}return Object(Dr.a)(n,[{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,this.buttonRef.current&&this.buttonRef.current.focus())}},{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(B.renderToString)(Object(B.createElement)("div",{className:"editor-post-preview-button__interstitial-message"},Object(B.createElement)(co.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 96 96"},Object(B.createElement)(co.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(B.createElement)(co.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(B.createElement)("p",null,Object(Zt.__)("Generating preview…")))),n+='\n\t\t<style>\n\t\t\tbody {\n\t\t\t\tmargin: 0;\n\t\t\t}\n\t\t\t.editor-post-preview-button__interstitial-message {\n\t\t\t\tdisplay: flex;\n\t\t\t\tflex-direction: column;\n\t\t\t\talign-items: center;\n\t\t\t\tjustify-content: center;\n\t\t\t\theight: 100vh;\n\t\t\t\twidth: 100vw;\n\t\t\t}\n\t\t\t@-webkit-keyframes paint {\n\t\t\t\t0% {\n\t\t\t\t\tstroke-dashoffset: 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t@-moz-keyframes paint {\n\t\t\t\t0% {\n\t\t\t\t\tstroke-dashoffset: 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t@-o-keyframes paint {\n\t\t\t\t0% {\n\t\t\t\t\tstroke-dashoffset: 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t@keyframes paint {\n\t\t\t\t0% {\n\t\t\t\t\tstroke-dashoffset: 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t.editor-post-preview-button__interstitial-message svg {\n\t\t\t\twidth: 192px;\n\t\t\t\theight: 192px;\n\t\t\t\tstroke: #555d66;\n\t\t\t\tstroke-width: 0.75;\n\t\t\t}\n\t\t\t.editor-post-preview-button__interstitial-message svg .outer,\n\t\t\t.editor-post-preview-button__interstitial-message svg .inner {\n\t\t\t\tstroke-dasharray: 280;\n\t\t\t\tstroke-dashoffset: 280;\n\t\t\t\t-webkit-animation: paint 1.5s ease infinite alternate;\n\t\t\t\t-moz-animation: paint 1.5s ease infinite alternate;\n\t\t\t\t-o-animation: paint 1.5s ease infinite alternate;\n\t\t\t\tanimation: paint 1.5s ease infinite alternate;\n\t\t\t}\n\t\t\tp {\n\t\t\t\ttext-align: center;\n\t\t\t\tfont-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;\n\t\t\t}\n\t\t</style>\n\t',n=Object(wr.applyFilters)("editor.PostPreview.interstitialMarkup",n),t.write(n),t.title=Object(Zt.__)("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=e.role,i=t||n,c=Hr()({"editor-post-preview":!this.props.className},this.props.className);return Object(B.createElement)(co.Button,{isTertiary:!this.props.className,className:c,href:i,target:this.getWindowTarget(),disabled:!r,onClick:this.openPreviewWindow,ref:this.buttonRef,role:o},this.props.textContent?this.props.textContent:Object(B.createElement)(B.Fragment,null,Object(Zt._x)("Preview","imperative verb"),Object(B.createElement)(co.VisuallyHidden,{as:"span"},Object(Zt.__)("(opens in a new tab)"))))}}]),n}(B.Component),di=Object(Er.compose)([Object(p.withSelect)((function(e,t){var n=t.forcePreviewLink,r=t.forceIsAutosaveable,o=e("core/editor"),i=o.getCurrentPostId,c=o.getCurrentPostAttribute,s=o.getEditedPostAttribute,a=o.isEditedPostSaveable,u=o.isEditedPostAutosaveable,l=o.getEditedPostPreviewLink,d=e("core").getPostType,p=l(),b=d(s("type"));return{postId:i(),currentPostLink:c("link"),previewLink:void 0!==n?n:p,isSaveable:a(),isAutosaveable:r||u(),isViewable:Object(v.get)(b,["viewable"],!1),isDraft:-1!==["draft","auto-draft"].indexOf(s("status"))}})),Object(p.withDispatch)((function(e){return{autosave:e("core/editor").autosave,savePost:e("core/editor").savePost}})),Object(Er.ifCondition)((function(e){return e.isViewable}))])(li);function pi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ur.a)(e);if(t){var o=Object(Ur.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Lr.a)(this,n)}}var bi=function(e){Object(Nr.a)(n,e);var t=pi(n);function n(){var e;return Object(Rr.a)(this,n),(e=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(Dr.a)(n,[{key:"componentDidMount",value:function(){var e=this.getHookName();Object(wr.addAction)("heartbeat.send",e,this.sendPostLock),Object(wr.addAction)("heartbeat.tick",e,this.receivePostLock)}},{key:"componentWillUnmount",value:function(){var e=this.getHookName();Object(wr.removeAction)("heartbeat.send",e),Object(wr.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 s=t.name,a=t.avatar,u=Object(C.addQueryArgs)("post.php",{"get-post-lock":"1",lockKey:!0,post:n,action:"edit",_wpnonce:i.nonce}),l=M("edit.php",{post_type:Object(v.get)(c,["slug"])}),d=Object(Zt.__)("Exit the Editor");return Object(B.createElement)(co.Modal,{title:o?Object(Zt.__)("Someone else has taken over this post."):Object(Zt.__)("This post is already being edited."),focusOnMount:!0,shouldCloseOnClickOutside:!1,shouldCloseOnEsc:!1,isDismissible:!1,className:"editor-post-locked-modal"},!!a&&Object(B.createElement)("img",{src:a,alt:Object(Zt.__)("Avatar"),className:"editor-post-locked-modal__avatar"}),!!o&&Object(B.createElement)("div",null,Object(B.createElement)("div",null,s?Object(Zt.sprintf)(Object(Zt.__)("%s now has editing control of this post. Don’t worry, your changes up to this moment have been saved."),s):Object(Zt.__)("Another user now has editing control of this post. Don’t worry, your changes up to this moment have been saved.")),Object(B.createElement)("div",{className:"editor-post-locked-modal__buttons"},Object(B.createElement)(co.Button,{isPrimary:!0,href:l},d))),!o&&Object(B.createElement)("div",null,Object(B.createElement)("div",null,s?Object(Zt.sprintf)(Object(Zt.__)("%s is currently working on this post, which means you cannot make changes, unless you take over."),s):Object(Zt.__)("Another user is currently working on this post, which means you cannot make changes, unless you take over.")),Object(B.createElement)("div",{className:"editor-post-locked-modal__buttons"},Object(B.createElement)(co.Button,{isSecondary:!0,href:l},d),Object(B.createElement)(di,null),Object(B.createElement)(co.Button,{isPrimary:!0,href:u},Object(Zt.__)("Take Over")))))}}]),n}(B.Component),fi=Object(Er.compose)(Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.isPostLocked,r=t.isPostLockTakeover,o=t.getPostLockUser,i=t.getCurrentPostId,c=t.getActivePostLock,s=t.getEditedPostAttribute,a=t.getEditorSettings,u=e("core").getPostType;return{isLocked:n(),isTakeover:r(),user:o(),postId:i(),postLockUtils:a().postLockUtils,activePostLock:c(),postType:u(s("type"))}})),Object(p.withDispatch)((function(e){var t=e("core/editor");return{autosave:t.autosave,updatePostLock:t.updatePostLock}})),Er.withInstanceId,Object(Er.withGlobalEvents)({beforeunload:"releasePostLock"}))(bi);var hi=Object(Er.compose)(Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.isCurrentPostPublished,r=t.getCurrentPostType,o=t.getCurrentPost;return{hasPublishAction:Object(v.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 mi=Object(Er.compose)(Object(p.withSelect)((function(e){return{status:e("core/editor").getEditedPostAttribute("status")}})),Object(p.withDispatch)((function(e){return{onUpdateStatus:function(t){e("core/editor").editPost({status:t})}}})))((function(e){var t=e.status,n=e.onUpdateStatus;return Object(B.createElement)(hi,null,Object(B.createElement)(co.CheckboxControl,{label:Object(Zt.__)("Pending review"),checked:"pending"===t,onChange:function(){n("pending"===t?"draft":"pending")}}))}));var vi=Object(Er.compose)([Object(p.withSelect)((function(e){return{pingStatus:e("core/editor").getEditedPostAttribute("ping_status")}})),Object(p.withDispatch)((function(e){return{editPost:e("core/editor").editPost}}))])((function(e){var t=e.pingStatus,n=void 0===t?"open":t,r=Object($t.a)(e,["pingStatus"]);return Object(B.createElement)(co.CheckboxControl,{label:Object(Zt.__)("Allow pingbacks & trackbacks"),checked:"open"===n,onChange:function(){return r.editPost({ping_status:"open"===n?"closed":"open"})}})}));var Oi=Object(Er.compose)([Object(p.withSelect)((function(e,t){var n=t.forceIsSaving,r=e("core/editor"),o=r.isCurrentPostPublished,i=r.isEditedPostBeingScheduled,c=r.isSavingPost,s=r.isPublishingPost,a=r.getCurrentPost,u=r.getCurrentPostType,l=r.isAutosavingPost;return{isPublished:o(),isBeingScheduled:i(),isSaving:n||c(),isPublishing:s(),hasPublishAction:Object(v.get)(a(),["_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,s=e.hasNonPostEntityChanges;return o?Object(Zt.__)("Publishing…"):t&&r&&!c?Object(Zt.__)("Updating…"):n&&r&&!c?Object(Zt.__)("Scheduling…"):i?t?s?Object(Zt.__)("Update…"):Object(Zt.__)("Update"):n?s?Object(Zt.__)("Schedule…"):Object(Zt.__)("Schedule"):Object(Zt.__)("Publish"):s?Object(Zt.__)("Submit for Review…"):Object(Zt.__)("Submit for Review")}));function gi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ur.a)(e);if(t){var o=Object(Ur.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Lr.a)(this,n)}}var ji=function(e){Object(Nr.a)(n,e);var t=gi(n);function n(e){var r;return Object(Rr.a)(this,n),(r=t.call(this,e)).buttonNode=Object(B.createRef)(),r.createOnClick=r.createOnClick.bind(Object(So.a)(r)),r.closeEntitiesSavedStates=r.closeEntitiesSavedStates.bind(Object(So.a)(r)),r.state={entitiesSavedStatesCallback:!1},r}return Object(Dr.a)(n,[{key:"componentDidMount",value:function(){this.props.focusOnMount&&this.buttonNode.current.focus()}},{key:"createOnClick",value:function(e){var t=this;return function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];var i=t.props.hasNonPostEntityChanges;return i?(t.setState({entitiesSavedStatesCallback:function(){return e.apply(void 0,r)}}),t.props.setEntitiesSavedStatesCallback((function(){return t.closeEntitiesSavedStates})),v.noop):e.apply(void 0,r)}}},{key:"closeEntitiesSavedStates",value:function(e){var t=this.props,n=t.postType,r=t.postId,o=this.state.entitiesSavedStatesCallback;this.setState({entitiesSavedStatesCallback:!1},(function(){e&&Object(v.some)(e,(function(e){return"postType"===e.kind&&e.name===n&&e.key===r}))&&o()}))}},{key:"render",value:function(){var e,t=this.props,n=t.forceIsDirty,r=t.forceIsSaving,o=t.hasPublishAction,i=t.isBeingScheduled,c=t.isOpen,s=t.isPostSavingLocked,a=t.isPublishable,u=t.isPublished,l=t.isSaveable,d=t.isSaving,p=t.isToggle,b=t.onSave,f=t.onStatusChange,h=t.onSubmit,m=void 0===h?v.noop:h,O=t.onToggle,g=t.visibility,j=t.hasNonPostEntityChanges,y=d||r||!l||s||!a&&!n,_=u||d||r||!l||!a&&!n;e=o?"private"===g?"private":i?"future":"publish":"pending";var P={"aria-disabled":y&&!j,className:"editor-post-publish-button",isBusy:d&&u,isPrimary:!0,onClick:this.createOnClick((function(){y||(m(),f(e),b())}))},k={"aria-disabled":_&&!j,"aria-expanded":c,className:"editor-post-publish-panel__toggle",isBusy:d&&u,isPrimary:!0,onClick:this.createOnClick((function(){_||O()}))},S=i?Object(Zt.__)("Schedule…"):Object(Zt.__)("Publish"),E=Object(B.createElement)(Oi,{forceIsSaving:r,hasNonPostEntityChanges:j}),w=p?k:P,C=p?S:E;return Object(B.createElement)(B.Fragment,null,Object(B.createElement)(co.Button,Object(Sr.a)({ref:this.buttonNode},w,{className:Hr()(w.className,"editor-post-publish-button__button",{"has-changes-dot":j})}),C))}}]),n}(B.Component),yi=Object(Er.compose)([Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.isSavingPost,r=t.isEditedPostBeingScheduled,o=t.getEditedPostVisibility,i=t.isCurrentPostPublished,c=t.isEditedPostSaveable,s=t.isEditedPostPublishable,a=t.isPostSavingLocked,u=t.getCurrentPost,l=t.getCurrentPostType,d=t.getCurrentPostId,p=t.hasNonPostEntityChanges;return{isSaving:n(),isBeingScheduled:r(),visibility:o(),isSaveable:c(),isPostSavingLocked:a(),isPublishable:s(),isPublished:i(),hasPublishAction:Object(v.get)(u(),["_links","wp:action-publish"],!1),postType:l(),postId:d(),hasNonPostEntityChanges:p()}})),Object(p.withDispatch)((function(e){var t=e("core/editor"),n=t.editPost;return{onStatusChange:function(e){return n({status:e},{undoIgnore:!0})},onSave:t.savePost}}))])(ji),_i=n(159),Pi=[{value:"public",label:Object(Zt.__)("Public"),info:Object(Zt.__)("Visible to everyone.")},{value:"private",label:Object(Zt.__)("Private"),info:Object(Zt.__)("Only visible to site admins and editors.")},{value:"password",label:Object(Zt.__)("Password Protected"),info:Object(Zt.__)("Protected with a password you choose. Only those with the password can view this post.")}];function ki(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ur.a)(e);if(t){var o=Object(Ur.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Lr.a)(this,n)}}var Si=function(e){Object(Nr.a)(n,e);var t=ki(n);function n(e){var r;return Object(Rr.a)(this,n),(r=t.apply(this,arguments)).setPublic=r.setPublic.bind(Object(So.a)(r)),r.setPrivate=r.setPrivate.bind(Object(So.a)(r)),r.setPasswordProtected=r.setPasswordProtected.bind(Object(So.a)(r)),r.updatePassword=r.updatePassword.bind(Object(So.a)(r)),r.state={hasPassword:!!e.password},r}return Object(Dr.a)(n,[{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(Zt.__)("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(B.createElement)("fieldset",{key:"visibility-selector",className:"editor-post-visibility__dialog-fieldset"},Object(B.createElement)("legend",{className:"editor-post-visibility__dialog-legend"},Object(Zt.__)("Post Visibility")),Pi.map((function(e){var t=e.value,n=e.label,i=e.info;return Object(B.createElement)("div",{key:t,className:"editor-post-visibility__choice"},Object(B.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(B.createElement)("label",{htmlFor:"editor-post-".concat(t,"-").concat(r),className:"editor-post-visibility__dialog-label"},n),Object(B.createElement)("p",{id:"editor-post-".concat(t,"-").concat(r,"-description"),className:"editor-post-visibility__dialog-info"},i))}))),this.state.hasPassword&&Object(B.createElement)("div",{className:"editor-post-visibility__dialog-password",key:"password-selector"},Object(B.createElement)(co.VisuallyHidden,{as:"label",htmlFor:"editor-post-visibility__dialog-password-input-".concat(r)},Object(Zt.__)("Create password")),Object(B.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(Zt.__)("Use a secure password")}))]}}]),n}(B.Component),Ei=Object(Er.compose)([Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getEditedPostVisibility;return{status:n("status"),visibility:r(),password:n("password")}})),Object(p.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})}}})),Er.withInstanceId])(Si);var wi=Object(p.withSelect)((function(e){return{visibility:e("core/editor").getEditedPostVisibility()}}))((function(e){var t=e.visibility;return Object(v.find)(Pi,{value:t}).label}));var Ci=Object(Er.compose)([Object(p.withSelect)((function(e){return{date:e("core/editor").getEditedPostAttribute("date")}})),Object(p.withDispatch)((function(e){return{onUpdateDate:function(t){e("core/editor").editPost({date:t})}}}))])((function(e){var t=e.date,n=e.onUpdateDate,r=Object(w.__experimentalGetSettings)(),o=/a(?!\\)/i.test(r.formats.time.toLowerCase().replace(/\\\\/g,"").split("").reverse().join(""));return Object(B.createElement)(co.DateTimePicker,{key:"date-time-picker",currentDate:t,onChange:function(e){n(e),document.activeElement.blur()},is12Hour:o})}));var Ti=Object(p.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(w.__experimentalGetSettings)();return t&&!n?Object(w.format)("".concat(r.formats.date," ").concat(r.formats.time),t):Object(Zt.__)("Immediately")}));function xi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ur.a)(e);if(t){var o=Object(Ur.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Lr.a)(this,n)}}function Bi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ii(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bi(Object(n),!0).forEach((function(t){Object(d.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ai={per_page:20,orderby:"count",order:"desc",_fields:"id,name"},Ri=function(e){return Object(v.unescape)(e.replace("'","'"))},Di=function(e,t){return Ri(e).toLowerCase()===Ri(t).toLowerCase()},Ni=function(e){return Ii(Ii({},e),{},{name:Ri(e.name)})},Li=function(e){return Object(v.map)(e,Ni)},Ui=function(e){Object(Nr.a)(n,e);var t=xi(n);function n(){var e;return Object(Rr.a)(this,n),(e=t.apply(this,arguments)).onChange=e.onChange.bind(Object(So.a)(e)),e.searchTerms=Object(v.throttle)(e.searchTerms.bind(Object(So.a)(e)),500),e.findOrCreateTerm=e.findOrCreateTerm.bind(Object(So.a)(e)),e.state={loading:!Object(v.isEmpty)(e.props.terms),availableTerms:[],selectedTerms:[]},e}return Object(Dr.a)(n,[{key:"componentDidMount",value:function(){var e=this;Object(v.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(v.invoke)(this.initRequest,["abort"]),Object(v.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=Ii(Ii({},Ai),t),o=Ir()({path:Object(C.addQueryArgs)("/wp/v2/".concat(n.rest_base),r)});return o.then(Li).then((function(t){e.setState((function(e){return{availableTerms:e.availableTerms.concat(t.filter((function(t){return!Object(v.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(v.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(v.escape)(e);return Ir()({path:"/wp/v2/".concat(n.rest_base),method:"POST",data:{name:r}}).catch((function(o){return"term_exists"===o.code?(t.addRequest=Ir()({path:Object(C.addQueryArgs)("/wp/v2/".concat(n.rest_base),Ii(Ii({},Ai),{},{search:r}))}).then(Li),t.addRequest.then((function(t){return Object(v.find)(t,(function(t){return Di(t.name,e)}))}))):Promise.reject(o)})).then(Ni)}},{key:"onChange",value:function(e){var t=this,n=Object(v.uniqBy)(e,(function(e){return e.toLowerCase()}));this.setState({selectedTerms:n});var r=n.filter((function(e){return!Object(v.find)(t.state.availableTerms,(function(t){return Di(t.name,e)}))})),o=function(e,t){return e.map((function(e){return Object(v.find)(t,(function(t){return Di(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(v.invoke)(this.searchRequest,["abort"]),e.length>=3&&(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,s=i.map((function(e){return e.name})),a=Object(v.get)(n,["labels","add_new_item"],"post_tag"===t?Object(Zt.__)("Add new tag"):Object(Zt.__)("Add new Term")),u=Object(v.get)(n,["labels","singular_name"],"post_tag"===t?Object(Zt.__)("Tag"):Object(Zt.__)("Term")),l=Object(Zt.sprintf)(Object(Zt._x)("%s added","term"),u),d=Object(Zt.sprintf)(Object(Zt._x)("%s removed","term"),u),p=Object(Zt.sprintf)(Object(Zt._x)("Remove %s","term"),u);return Object(B.createElement)(co.FormTokenField,{value:c,suggestions:s,onChange:this.onChange,onInputChange:this.searchTerms,maxSuggestions:20,disabled:o,label:a,messages:{added:l,removed:d,remove:p}})}}]),n}(B.Component),Fi=Object(Er.compose)(Object(p.withSelect)((function(e,t){var n=t.slug,r=e("core/editor").getCurrentPost,o=(0,e("core").getTaxonomy)(n);return{hasCreateAction:!!o&&Object(v.get)(r(),["_links","wp:action-create-"+o.rest_base],!1),hasAssignAction:!!o&&Object(v.get)(r(),["_links","wp:action-assign-"+o.rest_base],!1),terms:o?e("core/editor").getEditedPostAttribute(o.rest_base):[],taxonomy:o}})),Object(p.withDispatch)((function(e){return{onUpdateTerms:function(t,n){e("core/editor").editPost(Object(d.a)({},n,t))}}})),Object(co.withFilters)("editor.PostTaxonomyType"))(Ui);function Mi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ur.a)(e);if(t){var o=Object(Ur.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Lr.a)(this,n)}}var Vi=function(){var e=[Object(Zt.__)("Suggestion:"),Object(B.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(Zt.__)("Add tags"))];return Object(B.createElement)(co.PanelBody,{initialOpen:!1,title:e},Object(B.createElement)("p",null,Object(Zt.__)("Tags help users and search engines navigate your site and find your content. Add a few keywords to describe your post.")),Object(B.createElement)(Fi,{slug:"post_tag"}))},zi=function(e){Object(Nr.a)(n,e);var t=Mi(n);function n(e){var r;return Object(Rr.a)(this,n),(r=t.call(this,e)).state={hadTagsWhenOpeningThePanel:e.hasTags},r}return Object(Dr.a)(n,[{key:"render",value:function(){return this.state.hadTagsWhenOpeningThePanel?null:Object(B.createElement)(Vi,null)}}]),n}(B.Component),Hi=Object(Er.compose)(Object(p.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(v.some)(n.types,(function(e){return e===t})),hasTags:r&&r.length}})),Object(Er.ifCondition)((function(e){var t=e.areTagsFetched;return e.isPostTypeSupported&&t})))(zi),Wi=function(e,t){var n=oi.filter((function(t){return Object(v.includes)(e,t.id)}));return Object(v.find)(n,(function(e){return e.id===t}))},Gi=function(e){var t=e.suggestedPostFormat,n=e.suggestionText,r=e.onUpdatePostFormat;return Object(B.createElement)(co.Button,{isLink:!0,onClick:function(){return r(t)}},n)};function Ki(){var e=Object(p.useSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getSuggestedPostFormat,o=Object(v.get)(e("core").getThemeSupports(),["formats"],[]);return{currentPostFormat:n("format"),suggestion:Wi(o,r())}}),[]),t=e.currentPostFormat,n=e.suggestion,r=Object(p.useDispatch)("core/editor").editPost,o=[Object(Zt.__)("Suggestion:"),Object(B.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(Zt.__)("Use a post format"))];return n&&n.id!==t?Object(B.createElement)(co.PanelBody,{initialOpen:!1,title:o},Object(B.createElement)("p",null,Object(Zt.__)("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(B.createElement)("p",null,Object(B.createElement)(Gi,{onUpdatePostFormat:function(e){return r({format:e})},suggestedPostFormat:n.id,suggestionText:Object(Zt.sprintf)(Object(Zt.__)('Apply the "%1$s" format.'),n.caption)}))):null}var qi=Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPost,r=t.isEditedPostBeingScheduled;return{hasPublishAction:Object(v.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(Zt.__)("Are you ready to schedule?"),n=Object(Zt.__)("Your work will be published at the specified date and time.")):(t=Object(Zt.__)("Are you ready to publish?"),n=Object(Zt.__)("Double-check your settings before publishing.")):(t=Object(Zt.__)("Are you ready to submit for review?"),n=Object(Zt.__)("When you’re ready, submit your work for review, and an Editor will be able to approve it for you.")),Object(B.createElement)("div",{className:"editor-post-publish-panel__prepublish"},Object(B.createElement)("div",null,Object(B.createElement)("strong",null,t)),Object(B.createElement)("p",null,n),r&&Object(B.createElement)(B.Fragment,null,Object(B.createElement)(co.PanelBody,{initialOpen:!1,title:[Object(Zt.__)("Visibility:"),Object(B.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(B.createElement)(wi,null))]},Object(B.createElement)(Ei,null)),Object(B.createElement)(co.PanelBody,{initialOpen:!1,title:[Object(Zt.__)("Publish:"),Object(B.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(B.createElement)(Ti,null))]},Object(B.createElement)(Ci,null))),Object(B.createElement)(Ki,null),Object(B.createElement)(Hi,null),i)})),Qi=n(69);function $i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ur.a)(e);if(t){var o=Object(Ur.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Lr.a)(this,n)}}var Yi=function(e){Object(Nr.a)(n,e);var t=$i(n);function n(){var e;return Object(Rr.a)(this,n),(e=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(B.createRef)(),e}return Object(Dr.a)(n,[{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(v.get)(o,["labels","singular_name"]),c=Object(v.get)(o,["labels","view_item"]),s="future"===r.status?function(e){var t=e.slug;return e.permalink_template.includes("%postname%")?e.permalink_template.replace("%postname%",t):e.permalink_template}(r):r.link,a=n?Object(B.createElement)(B.Fragment,null,Object(Zt.__)("is now scheduled. It will go live on")," ",Object(B.createElement)(Ti,null),"."):Object(Zt.__)("is now live.");return Object(B.createElement)("div",{className:"post-publish-panel__postpublish"},Object(B.createElement)(co.PanelBody,{className:"post-publish-panel__postpublish-header"},Object(B.createElement)("a",{ref:this.postLink,href:s},Object(Qi.decodeEntities)(r.title)||Object(Zt.__)("(no title)"))," ",a),Object(B.createElement)(co.PanelBody,null,Object(B.createElement)("p",{className:"post-publish-panel__postpublish-subheader"},Object(B.createElement)("strong",null,Object(Zt.__)("What’s next?"))),Object(B.createElement)(co.TextControl,{className:"post-publish-panel__postpublish-post-address",readOnly:!0,label:Object(Zt.sprintf)(Object(Zt.__)("%s address"),i),value:Object(C.safeDecodeURIComponent)(s),onFocus:this.onSelectInput}),Object(B.createElement)("div",{className:"post-publish-panel__postpublish-buttons"},!n&&Object(B.createElement)(co.Button,{isSecondary:!0,href:s},c),Object(B.createElement)(co.ClipboardButton,{isSecondary:!0,text:s,onCopy:this.onCopy},this.state.showCopyConfirmation?Object(Zt.__)("Copied!"):Object(Zt.__)("Copy Link")))),t)}}]),n}(B.Component),Xi=Object(p.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()}}))(Yi);function Ji(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ur.a)(e);if(t){var o=Object(Ur.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Lr.a)(this,n)}}var Zi=function(e){Object(Nr.a)(n,e);var t=Ji(n);function n(){var e;return Object(Rr.a)(this,n),(e=t.apply(this,arguments)).onSubmit=e.onSubmit.bind(Object(So.a)(e)),e}return Object(Dr.a)(n,[{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,s=e.isSaving,a=e.onClose,u=e.onTogglePublishSidebar,l=e.PostPublishExtension,d=e.PrePublishExtension,p=Object($t.a)(e,["forceIsDirty","forceIsSaving","isBeingScheduled","isPublished","isPublishSidebarEnabled","isScheduled","isSaving","onClose","onTogglePublishSidebar","PostPublishExtension","PrePublishExtension"]),b=Object(v.omit)(p,["hasPublishAction","isDirty","isPostTypeViewable"]),f=o||c&&r,h=!f&&!s,m=f&&!s;return Object(B.createElement)("div",Object(Sr.a)({className:"editor-post-publish-panel"},b),Object(B.createElement)("div",{className:"editor-post-publish-panel__header"},m?Object(B.createElement)(co.Button,{onClick:a,icon:_i.a,label:Object(Zt.__)("Close panel")}):Object(B.createElement)(B.Fragment,null,Object(B.createElement)("div",{className:"editor-post-publish-panel__header-publish-button"},Object(B.createElement)(yi,{focusOnMount:!0,onSubmit:this.onSubmit,forceIsDirty:t,forceIsSaving:n})),Object(B.createElement)("div",{className:"editor-post-publish-panel__header-cancel-button"},Object(B.createElement)(co.Button,{onClick:a,isSecondary:!0},Object(Zt.__)("Cancel"))))),Object(B.createElement)("div",{className:"editor-post-publish-panel__content"},h&&Object(B.createElement)(qi,null,d&&Object(B.createElement)(d,null)),m&&Object(B.createElement)(Xi,{focusOnMount:!0},l&&Object(B.createElement)(l,null)),s&&Object(B.createElement)(co.Spinner,null)),Object(B.createElement)("div",{className:"editor-post-publish-panel__footer"},Object(B.createElement)(co.CheckboxControl,{label:Object(Zt.__)("Always show pre-publish checks."),checked:i,onChange:u})))}}]),n}(B.Component),ec=Object(Er.compose)([Object(p.withSelect)((function(e){var t=e("core").getPostType,n=e("core/editor"),r=n.getCurrentPost,o=n.getEditedPostAttribute,i=n.isCurrentPostPublished,c=n.isCurrentPostScheduled,s=n.isEditedPostBeingScheduled,a=n.isEditedPostDirty,u=n.isSavingPost,l=e("core/editor").isPublishSidebarEnabled,d=t(o("type"));return{hasPublishAction:Object(v.get)(r(),["_links","wp:action-publish"],!1),isPostTypeViewable:Object(v.get)(d,["viewable"],!1),isBeingScheduled:s(),isDirty:a(),isPublished:i(),isPublishSidebarEnabled:l(),isSaving:u(),isScheduled:c()}})),Object(p.withDispatch)((function(e,t){var n=t.isPublishSidebarEnabled,r=e("core/editor"),o=r.disablePublishSidebar,i=r.enablePublishSidebar;return{onTogglePublishSidebar:function(){n?o():i()}}})),co.withFocusReturn,co.withConstrainedTabbing])(Zi),tc=n(141),nc=Object(B.createElement)(ao.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(B.createElement)(ao.Path,{d:"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"})),rc=n(161),oc=Object(B.createElement)(ao.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(B.createElement)(ao.Path,{d:"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"}));var ic=Object(Er.compose)([Object(p.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(p.withDispatch)((function(e){var t=e("core/editor"),n=t.editPost,r=t.savePost;return{onClick:function(){n({status:"draft"}),r()}}}))])((function(e){var t=e.isSaving,n=e.isPublished,r=e.isScheduled,o=e.onClick,i=Object(Er.useViewportMatch)("small","<");return n||r?Object(B.createElement)(co.Button,{className:"editor-post-switch-to-draft",onClick:function(){var e;n?e=Object(Zt.__)("Are you sure you want to unpublish this post?"):r&&(e=Object(Zt.__)("Are you sure you want to unschedule this post?")),window.confirm(e)&&o()},disabled:t,isTertiary:!0},i?Object(Zt.__)("Draft"):Object(Zt.__)("Switch to draft")):null}));function cc(e){var t=e.forceIsDirty,n=e.forceIsSaving,r=e.showIconLabels,o=void 0!==r&&r,i=Object(B.useState)(!1),c=Object(E.a)(i,2),s=c[0],a=c[1],u=Object(Er.useViewportMatch)("small"),l=Object(p.useSelect)((function(e){var r,o,i,c=e("core/editor"),s=c.isEditedPostNew,a=c.isCurrentPostPublished,u=c.isCurrentPostScheduled,l=c.isEditedPostDirty,d=c.isSavingPost,p=c.isEditedPostSaveable,b=c.getCurrentPost,f=c.isAutosavingPost,h=c.getEditedPostAttribute;return{isAutosaving:f(),isDirty:t||l(),isNew:s(),isPending:"pending"===h("status"),isPublished:a(),isSaving:n||d(),isSaveable:p(),isScheduled:u(),hasPublishAction:null!==(r=null===(o=b())||void 0===o||null===(i=o._links)||void 0===i?void 0:i["wp:action-publish"])&&void 0!==r&&r}}),[t,n]),d=l.isAutosaving,b=l.isDirty,f=l.isNew,h=l.isPending,m=l.isPublished,v=l.isSaveable,O=l.isSaving,g=l.isScheduled,j=l.hasPublishAction,y=Object(p.useDispatch)("core/editor").savePost,_=Object(Er.usePrevious)(O);if(Object(B.useEffect)((function(){var e;return _&&!O&&(a(!0),e=setTimeout((function(){a(!1)}),1e3)),function(){return clearTimeout(e)}}),[O]),O){var P=Hr()("editor-post-saved-state","is-saving",{"is-autosaving":d});return Object(B.createElement)(co.Animate,{type:"loading"},(function(e){var t=e.className;return Object(B.createElement)("span",{className:Hr()(P,t)},Object(B.createElement)(tc.a,{icon:nc}),d?Object(Zt.__)("Autosaving"):Object(Zt.__)("Saving"))}))}if(m||g)return Object(B.createElement)(ic,null);if(!v)return null;if(s||!f&&!b)return Object(B.createElement)("span",{className:"editor-post-saved-state is-saved"},Object(B.createElement)(tc.a,{icon:rc.a}),Object(Zt.__)("Saved"));if(!j&&h)return null;var k=h?Object(Zt.__)("Save as pending"):Object(Zt.__)("Save draft"),S=Object(Zt.__)("Save");return u?Object(B.createElement)(co.Button,{className:"editor-post-save-draft",onClick:function(){return y()},shortcut:so.displayShortcut.primary("s"),isTertiary:!0},k):Object(B.createElement)(co.Button,{className:"editor-post-save-draft",label:k,onClick:function(){return y()},shortcut:so.displayShortcut.primary("s"),icon:oc},o&&S)}var sc=Object(Er.compose)([Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPost,r=t.getCurrentPostType;return{hasPublishAction:Object(v.get)(n(),["_links","wp:action-publish"],!1),postType:r()}}))])((function(e){var t=e.hasPublishAction,n=e.children;return t?n:null}));function ac(e){var t=e.children;return Object(B.createElement)(Ao,{supportKeys:"slug"},t)}function uc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ur.a)(e);if(t){var o=Object(Ur.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Lr.a)(this,n)}}var lc=function(e){Object(Nr.a)(n,e);var t=uc(n);function n(e){var r,o=e.postSlug,i=e.postTitle,c=e.postID;return Object(Rr.a)(this,n),(r=t.apply(this,arguments)).state={editedSlug:Object(C.safeDecodeURIComponent)(o)||V(i)||c},r.setSlug=r.setSlug.bind(Object(So.a)(r)),r}return Object(Dr.a)(n,[{key:"setSlug",value:function(e){var t=this.props,n=t.postSlug,r=t.onUpdateSlug,o=V(e.target.value);o!==n&&r(o)}},{key:"render",value:function(){var e=this,t=this.props.instanceId,n=this.state.editedSlug,r="editor-post-slug-"+t;return Object(B.createElement)(ac,null,Object(B.createElement)("label",{htmlFor:r},Object(Zt.__)("Slug")),Object(B.createElement)("input",{type:"text",id:r,value:n,onChange:function(t){return e.setState({editedSlug:t.target.value})},onBlur:this.setSlug,className:"editor-post-slug__input"}))}}]),n}(B.Component),dc=Object(Er.compose)([Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPost,r=t.getEditedPostAttribute,o=n().id;return{postSlug:r("slug"),postTitle:r("title"),postID:o}})),Object(p.withDispatch)((function(e){var t=e("core/editor").editPost;return{onUpdateSlug:function(e){t({slug:e})}}})),Er.withInstanceId])(lc);var pc=Object(Er.compose)([Object(p.withSelect)((function(e){var t=e("core/editor").getCurrentPost();return{hasStickyAction:Object(v.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 bc=Object(Er.compose)([Object(p.withSelect)((function(e){return{postSticky:e("core/editor").getEditedPostAttribute("sticky")}})),Object(p.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(B.createElement)(pc,null,Object(B.createElement)(co.CheckboxControl,{label:Object(Zt.__)("Stick to the top of the blog"),checked:r,onChange:function(){return t(!r)}}))}));function fc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fc(Object(n),!0).forEach((function(t){Object(d.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ur.a)(e);if(t){var o=Object(Ur.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Lr.a)(this,n)}}var vc={per_page:-1,orderby:"name",order:"asc",_fields:"id,name,parent"},Oc=function(e){Object(Nr.a)(n,e);var t=mc(n);function n(){var e;return Object(Rr.a)(this,n),(e=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(Dr.a)(n,[{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(v.without)(o,e):[].concat(Object(Yt.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(v.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,s=this.state,a=s.formName,u=s.formParent,l=s.adding,d=s.availableTerms;if(""!==a&&!l){var p=this.findTerm(d,u,a);if(p)return Object(v.some)(i,(function(e){return e===p.id}))||r([].concat(Object(Yt.a)(i),[p.id]),o.rest_base),void this.setState({formName:"",formParent:""});this.setState({adding:!0}),this.addRequest=Ir()({path:"/wp/v2/".concat(o.rest_base),method:"POST",data:{name:a,parent:u||void 0}}),this.addRequest.catch((function(e){return"term_exists"===e.code?(t.addRequest=Ir()({path:Object(C.addQueryArgs)("/wp/v2/".concat(o.rest_base),hc(hc({},vc),{},{parent:u||0,search:a}))}),t.addRequest.then((function(e){return t.findTerm(e,u,a)}))):Promise.reject(e)})).then((function(e){var n=!!Object(v.find)(t.state.availableTerms,(function(t){return t.id===e.id}))?t.state.availableTerms:[e].concat(Object(Yt.a)(t.state.availableTerms)),s=Object(Zt.sprintf)(Object(Zt._x)("%s added","term"),Object(v.get)(t.props.taxonomy,["labels","singular_name"],"category"===c?Object(Zt.__)("Category"):Object(Zt.__)("Term")));t.props.speak(s,"assertive"),t.addRequest=null,t.setState({adding:!1,formName:"",formParent:"",availableTerms:n,availableTermsTree:t.sortBySelected(Uo(n))}),r([].concat(Object(Yt.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(v.invoke)(this.fetchRequest,["abort"]),Object(v.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=Ir()({path:Object(C.addQueryArgs)("/wp/v2/".concat(t.rest_base),vc)}),this.fetchRequest.then((function(t){var n=e.sortBySelected(Uo(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;r<t.length;r++)n++,void 0!==t[r].children&&(n+=e(t[r].children));return n}(r),i=Object(Zt.sprintf)(Object(Zt._n)("%d result found.","%d results found.",o),o);this.props.debouncedSpeak(i,"assertive")}},{key:"getFilterMatcher",value:function(e){return function t(n){if(""===e)return n;var r=hc({},n);return r.children.length>0&&(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(B.createElement)("div",{key:e.id,className:"editor-post-taxonomies__hierarchical-terms-choice"},Object(B.createElement)(co.CheckboxControl,{checked:-1!==r.indexOf(e.id),onChange:function(){var n=parseInt(e.id,10);t.onChange(n)},label:Object(v.unescape)(e.name)}),!!e.children.length&&Object(B.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,s=i.availableTerms,a=i.filteredTermsTree,u=i.formName,l=i.formParent,d=i.loading,p=i.showForm,b=i.filterValue,f=function(e,r,o){return Object(v.get)(n,["labels",e],"category"===t?r:o)},h=f("add_new_item",Object(Zt.__)("Add new category"),Object(Zt.__)("Add new term")),m=f("new_item_name",Object(Zt.__)("Add new category"),Object(Zt.__)("Add new term")),O=f("parent_item",Object(Zt.__)("Parent Category"),Object(Zt.__)("Parent Term")),g="— ".concat(O," —"),j=h,y="editor-post-taxonomies__hierarchical-terms-input-".concat(r),_="editor-post-taxonomies__hierarchical-terms-filter-".concat(r),P=Object(v.get)(this.props.taxonomy,["labels","search_items"],Object(Zt.__)("Search Terms")),k=Object(v.get)(this.props.taxonomy,["name"],Object(Zt.__)("Terms")),S=s.length>=8;return[S&&Object(B.createElement)("label",{key:"filter-label",htmlFor:_},P),S&&Object(B.createElement)("input",{type:"search",id:_,value:b,onChange:this.setFilterValue,className:"editor-post-taxonomies__hierarchical-terms-filter",key:"term-filter-input"}),Object(B.createElement)("div",{className:"editor-post-taxonomies__hierarchical-terms-list",key:"term-list",tabIndex:"0",role:"group","aria-label":k},this.renderTerms(""!==b?a:c)),!d&&o&&Object(B.createElement)(co.Button,{key:"term-add-button",onClick:this.onToggleForm,className:"editor-post-taxonomies__hierarchical-terms-add","aria-expanded":p,isLink:!0},h),p&&Object(B.createElement)("form",{onSubmit:this.onAddTerm,key:"hierarchical-terms-form"},Object(B.createElement)("label",{htmlFor:y,className:"editor-post-taxonomies__hierarchical-terms-label"},m),Object(B.createElement)("input",{type:"text",id:y,className:"editor-post-taxonomies__hierarchical-terms-input",value:u,onChange:this.onChangeFormName,required:!0}),!!s.length&&Object(B.createElement)(co.TreeSelect,{label:O,noOptionLabel:g,onChange:this.onChangeFormParent,selectedId:l,tree:c}),Object(B.createElement)(co.Button,{isSecondary:!0,type:"submit",className:"editor-post-taxonomies__hierarchical-terms-submit"},j))]}}]),n}(B.Component),gc=Object(Er.compose)([Object(p.withSelect)((function(e,t){var n=t.slug,r=e("core/editor").getCurrentPost,o=(0,e("core").getTaxonomy)(n);return{hasCreateAction:!!o&&Object(v.get)(r(),["_links","wp:action-create-"+o.rest_base],!1),hasAssignAction:!!o&&Object(v.get)(r(),["_links","wp:action-assign-"+o.rest_base],!1),terms:o?e("core/editor").getEditedPostAttribute(o.rest_base):[],taxonomy:o}})),Object(p.withDispatch)((function(e){return{onUpdateTerms:function(t,n){e("core/editor").editPost(Object(d.a)({},n,t))}}})),co.withSpokenMessages,Er.withInstanceId,Object(co.withFilters)("editor.PostTaxonomyType")])(Oc);var jc=Object(Er.compose)([Object(p.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?v.identity:r,i=Object(v.filter)(n,(function(e){return Object(v.includes)(e.types,t)}));return Object(v.filter)(i,(function(e){return e.visibility.show_ui})).map((function(e){var t=e.hierarchical?gc:Fi;return Object(B.createElement)(B.Fragment,{key:"taxonomy-".concat(e.slug)},o(Object(B.createElement)(t,{slug:e.slug}),e))}))}));var yc=Object(Er.compose)([Object(p.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(v.some)(n,(function(e){return Object(v.includes)(e.types,t)}))?r:null})),_c=n(100),Pc=n.n(_c);function kc(){var e=Object(p.useSelect)((function(e){return e("core/editor").getEditedPostContent()}),[]),t=Object(p.useDispatch)("core/editor"),n=t.editPost,r=t.resetEditorBlocks,o=Object(B.useState)(e),i=Object(E.a)(o,2),s=i[0],a=i[1],u=Object(B.useState)(!1),l=Object(E.a)(u,2),d=l[0],b=l[1],f=Object(Er.useInstanceId)(kc);d||s===e||a(e);return Object(B.createElement)(B.Fragment,null,Object(B.createElement)(co.VisuallyHidden,{as:"label",htmlFor:"post-content-".concat(f)},Object(Zt.__)("Type text or HTML")),Object(B.createElement)(Pc.a,{autoComplete:"off",dir:"auto",value:s,onChange:function(e){var t=e.target.value;n({content:t}),a(t),b(!0)},onBlur:function(){if(d){var e=Object(c.parse)(s);r(e),b(!1)}},className:"editor-post-text-editor",id:"post-content-".concat(f),placeholder:Object(Zt.__)("Start writing with text or HTML")}))}function Sc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ur.a)(e);if(t){var o=Object(Ur.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Lr.a)(this,n)}}var Ec=/[\r\n]+/g,wc=function(e){Object(Nr.a)(n,e);var t=Sc(n);function n(){var e;return Object(Rr.a)(this,n),(e=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.onPaste=e.onPaste.bind(Object(So.a)(e)),e.state={isSelected:!1},e}return Object(Dr.a)(n,[{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(Ec," ");this.props.onUpdate(t)}},{key:"onKeyDown",value:function(e){e.keyCode===so.ENTER&&(e.preventDefault(),this.props.onEnterPress())}},{key:"onPaste",value:function(e){var t=this.props,n=t.title,r=t.onInsertBlockAfter,o=t.onUpdate,i=e.clipboardData,s="",a="";try{s=i.getData("text/plain"),a=i.getData("text/html")}catch(e){try{a=i.getData("Text")}catch(e){return}}window.console.log("Received HTML:\n\n",a),window.console.log("Received plain text:\n\n",s);var u=Object(c.pasteHandler)({HTML:a,plainText:s});if("string"!=typeof u&&u.length){e.preventDefault();var l=Object(E.a)(u,1)[0];n||"core/heading"!==l.name&&"core/paragraph"!==l.name?r(u):(o(l.attributes.content),r(u.slice(1)))}}},{key:"render",value:function(){var e=this.props,t=e.hasFixedToolbar,n=e.isCleanNewPost,r=e.isFocusMode,o=e.instanceId,i=e.placeholder,c=e.title,s=this.state.isSelected,a=Hr()("wp-block editor-post-title editor-post-title__block",{"is-selected":s,"is-focus-mode":r,"has-fixed-toolbar":t}),u=Object(Qi.decodeEntities)(i);return Object(B.createElement)(Ao,{supportKeys:"title"},Object(B.createElement)("div",{className:a},Object(B.createElement)(co.VisuallyHidden,{as:"label",htmlFor:"post-title-".concat(o)},u||Object(Zt.__)("Add title")),Object(B.createElement)(Pc.a,{id:"post-title-".concat(o),className:"editor-post-title__input",value:c,onChange:this.onChange,placeholder:u||Object(Zt.__)("Add title"),onFocus:this.onSelect,onBlur:this.onUnselect,onKeyDown:this.onKeyDown,onKeyPress:this.onUnselect,onPaste:this.onPaste,autoFocus:(document.body===document.activeElement||!document.activeElement)&&n})))}}]),n}(B.Component),Cc=Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.isCleanNewPost,o=(0,e("core/block-editor").getSettings)(),i=o.titlePlaceholder,c=o.focusMode,s=o.hasFixedToolbar;return{isCleanNewPost:r(),title:n("title"),placeholder:i,isFocusMode:c,hasFixedToolbar:s}})),Tc=Object(p.withDispatch)((function(e){var t=e("core/block-editor"),n=t.insertDefaultBlock,r=t.clearSelectedBlock,o=t.insertBlocks,i=e("core/editor").editPost;return{onEnterPress:function(){n(void 0,void 0,0)},onInsertBlockAfter:function(e){o(e,0)},onUpdate:function(e){i({title:e})},clearSelectedBlock:r}})),xc=Object(Er.compose)(Cc,Tc,Er.withInstanceId)(wc);var Bc=Object(Er.compose)([Object(p.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(p.withDispatch)((function(e){return{trashPost:e("core/editor").trashPost}}))])((function(e){var t=e.isNew,n=e.postId,r=e.postType,o=Object($t.a)(e,["isNew","postId","postType"]);return t||!n?null:Object(B.createElement)(co.Button,{className:"editor-post-trash",isDestructive:!0,isTertiary:!0,onClick:function(){return o.trashPost(n,r)}},Object(Zt.__)("Move to trash"))}));var Ic=Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.isEditedPostNew,r=t.getCurrentPostId,o=t.getCurrentPostType,i=e("core"),c=i.getPostType,s=i.canUser,a=r(),u=c(o()),l=(null==u?void 0:u.rest_base)||"";return{isNew:n(),postId:a,canUserDelete:!(!a||!l)&&s("delete",l,a)}}))((function(e){var t=e.isNew,n=e.postId,r=e.canUserDelete,o=e.children;return!t&&n&&r?o:null}));var Ac=Object(Er.compose)([Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPost,r=t.getCurrentPostType;return{hasPublishAction:Object(v.get)(n(),["_links","wp:action-publish"],!1),postType:r()}}))])((function(e){var t=e.hasPublishAction;return(0,e.render)({canEdit:t})})),Rc=Object(B.createElement)(ao.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(B.createElement)(ao.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"})),Dc=n(128);function Nc(){var e=Object(p.useSelect)((function(e){return e("core/editor").getEditedPostAttribute("content")})),t=Object(Zt._x)("words","Word count type. Do not translate!");return Object(B.createElement)("span",{className:"word-count"},Object(Dc.count)(e,t))}function Lc(){var e=Object(p.useSelect)((function(e){return e("core/editor").getEditedPostAttribute("content")}));return Object(Dc.count)(e,"characters_including_spaces")}var Uc=function(e){var t=e.hasOutlineItemsDisabled,n=e.onRequestClose,r=Object(p.useSelect)((function(e){var t=e("core/block-editor").getGlobalBlockCount;return{headingCount:t("core/heading"),paragraphCount:t("core/paragraph"),numberOfBlocks:t()}}),[]),o=r.headingCount,i=r.paragraphCount,c=r.numberOfBlocks;return Object(B.createElement)(B.Fragment,null,Object(B.createElement)("div",{className:"table-of-contents__wrapper",role:"note","aria-label":Object(Zt.__)("Document Statistics"),tabIndex:"0"},Object(B.createElement)("ul",{role:"list",className:"table-of-contents__counts"},Object(B.createElement)("li",{className:"table-of-contents__count"},Object(Zt.__)("Characters"),Object(B.createElement)("span",{className:"table-of-contents__number"},Object(B.createElement)(Lc,null))),Object(B.createElement)("li",{className:"table-of-contents__count"},Object(Zt.__)("Words"),Object(B.createElement)(Nc,null)),Object(B.createElement)("li",{className:"table-of-contents__count"},Object(Zt.__)("Headings"),Object(B.createElement)("span",{className:"table-of-contents__number"},o)),Object(B.createElement)("li",{className:"table-of-contents__count"},Object(Zt.__)("Paragraphs"),Object(B.createElement)("span",{className:"table-of-contents__number"},i)),Object(B.createElement)("li",{className:"table-of-contents__count"},Object(Zt.__)("Blocks"),Object(B.createElement)("span",{className:"table-of-contents__number"},c)))),o>0&&Object(B.createElement)(B.Fragment,null,Object(B.createElement)("hr",null),Object(B.createElement)("h2",{className:"table-of-contents__title"},Object(Zt.__)("Document Outline")),Object(B.createElement)(Jr,{onSelect:n,hasOutlineItemsDisabled:t})))};var Fc=Object(B.forwardRef)((function(e,t){var n=e.hasOutlineItemsDisabled,r=e.repositionDropdown,o=Object($t.a)(e,["hasOutlineItemsDisabled","repositionDropdown"]),i=Object(p.useSelect)((function(e){return!!e("core/block-editor").getBlockCount()}),[]);return Object(B.createElement)(co.Dropdown,{position:r?"middle right right":"bottom",className:"table-of-contents",contentClassName:"table-of-contents__popover",renderToggle:function(e){var n=e.isOpen,r=e.onToggle;return Object(B.createElement)(co.Button,Object(Sr.a)({},o,{ref:t,onClick:i?r:void 0,icon:Rc,"aria-expanded":n,"aria-haspopup":"true",label:Object(Zt.__)("Details"),tooltipPosition:"bottom","aria-disabled":!i}))},renderContent:function(e){var t=e.onClose;return Object(B.createElement)(Uc,{onRequestClose:t,hasOutlineItemsDisabled:n})}})}));function Mc(){var e=Object(p.useSelect)((function(e){return function(){return(0,e("core").__experimentalGetDirtyEntityRecords)().length>0}}),[]),t=function(t){if(e())return t.returnValue=Object(Zt.__)("You have unsaved changes. If you proceed, they will be lost."),t.returnValue};return Object(B.useEffect)((function(){return window.addEventListener("beforeunload",t),function(){window.removeEventListener("beforeunload",t)}}),[]),null}var Vc=n(45),zc=Object(Er.createHigherOrderComponent)((function(e){return Object(p.withRegistry)((function(t){var n=t.useSubRegistry,r=void 0===n||n,o=t.registry,c=Object($t.a)(t,["useSubRegistry","registry"]);if(!r)return Object(B.createElement)(e,c);var s=Object(B.useState)(null),a=Object(E.a)(s,2),u=a[0],l=a[1];return Object(B.useEffect)((function(){var e=Object(p.createRegistry)({"core/block-editor":i.storeConfig},o);e.registerStore("core/editor",kr),l(e)}),[o]),u?Object(B.createElement)(p.RegistryProvider,{value:u},Object(B.createElement)(e,c)):null}))}),"withRegistryProvider"),Hc=n(156);function Wc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wc(Object(n),!0).forEach((function(t){Object(d.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Kc(e){var t=e.additionalData,n=void 0===t?{}:t,r=e.allowedTypes,o=e.filesList,i=e.maxUploadFileSize,c=e.onError,s=void 0===c?v.noop:c,a=e.onFileChange,u=Object(p.select)("core/editor"),l=u.getCurrentPostId,d=u.getEditorSettings,b=d().allowedMimeTypes;i=i||d().maxUploadFileSize,Object(Hc.uploadMedia)({allowedTypes:r,filesList:o,onFileChange:a,additionalData:Gc({post:l()},n),maxUploadFileSize:i,onError:function(e){var t=e.message;return s(t)},wpAllowedMimeTypes:b})}var qc=Object(Er.compose)([Object(p.withSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockRootClientId,r=t.getBlocksByClientId,o=t.canInsertBlockType,i=t.getSelectedBlockClientIds,c=e("core/blocks").getGroupingBlockName,s=i(),a=c(),u=o(a,s&&s.length>0?n(s[0]):void 0),l=r(s),d=1===l.length&&l[0]&&l[0].name===a;return{clientIds:s,isGroupable:u&&l.length&&!d,isUngroupable:d&&!!l[0].innerBlocks.length,blocksSelection:l,groupingBlockName:a}})),Object(p.withDispatch)((function(e,t){var n=t.clientIds,r=t.blocksSelection,o=void 0===r?[]:r,i=t.groupingBlockName,s=e("core/block-editor").replaceBlocks;return{onConvertToGroup:function(){var e=Object(c.switchToBlockType)(o,i);e&&s(n,e)},onConvertFromGroup:function(){var e=o[0].innerBlocks;e.length&&s(n,e)}}}))])((function(e){var t=e.onConvertToGroup,n=e.onConvertFromGroup,r=e.isGroupable,o=void 0!==r&&r,c=e.isUngroupable,s=void 0!==c&&c;return o||s?Object(B.createElement)(i.BlockSettingsMenuControls,null,(function(e){var r=e.onClose;return Object(B.createElement)(B.Fragment,null,o&&Object(B.createElement)(co.MenuItem,{onClick:function(){t(),r()}},Object(Zt._x)("Group","verb")),s&&Object(B.createElement)(co.MenuItem,{onClick:function(){n(),r()}},Object(Zt._x)("Ungroup","Ungrouping blocks from within a Group block back into individual blocks within the Editor ")))})):null}));function Qc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qc(Object(n),!0).forEach((function(t){Object(d.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Yc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ur.a)(e);if(t){var o=Object(Ur.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Lr.a)(this,n)}}var Xc=function(){var e=Object(Vc.a)(Jt.a.mark((function e(t){var n,r,o,i,c,s,a,u,l,d,p,b=arguments;return Jt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=b.length>1&&void 0!==b[1]?b[1]:{},r=n.isInitialSuggestions,o=n.type,i=n.subtype,c=n.page,s=n.perPage,a=b.length>2&&void 0!==b[2]?b[2]:{},u=a.disablePostFormats,l=void 0!==u&&u,d=s||r?3:20,p=[],o&&"post"!==o||p.push(Ir()({path:Object(C.addQueryArgs)("/wp/v2/search",{search:t,page:c,per_page:d,type:"post",subtype:i})}).catch((function(){return[]}))),o&&"term"!==o||p.push(Ir()({path:Object(C.addQueryArgs)("/wp/v2/search",{search:t,page:c,per_page:d,type:"term",subtype:i})}).catch((function(){return[]}))),l||o&&"post-format"!==o||p.push(Ir()({path:Object(C.addQueryArgs)("/wp/v2/search",{search:t,page:c,per_page:d,type:"post-format",subtype:i})}).catch((function(){return[]}))),e.abrupt("return",Promise.all(p).then((function(e){return Object(v.map)(Object(v.flatten)(e).filter((function(e){return!!e.id})).slice(0,d),(function(e){return{id:e.id,url:e.url,title:Object(Qi.decodeEntities)(e.title)||Object(Zt.__)("(no title)"),type:e.subtype||e.type}}))})));case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Jc=function(e){Object(Nr.a)(n,e);var t=Yc(n);function n(e){var r;return Object(Rr.a)(this,n),(r=t.apply(this,arguments)).getBlockEditorSettings=L()(r.getBlockEditorSettings,{maxSize:1}),r.getDefaultBlockContext=L()(r.getDefaultBlockContext,{maxSize:1}),e.recovery?Object(Lr.a)(r):(e.updatePostLock(e.settings.postLock),e.setupEditor(e.post,e.initialEdits,e.settings.template),e.settings.autosave&&e.createWarningNotice(Object(Zt.__)("There is an autosave of this post that is more recent than the version below."),{id:"autosave-exists",actions:[{label:Object(Zt.__)("View the autosave"),url:e.settings.autosave.editLink}]}),r)}return Object(Dr.a)(n,[{key:"getBlockEditorSettings",value:function(e,t,n,r,o,i){return $c($c({},Object(v.pick)(e,["__experimentalBlockDirectory","__experimentalBlockPatterns","__experimentalBlockPatternCategories","__experimentalEnableFullSiteEditing","__experimentalEnableFullSiteEditingDemo","__experimentalFeatures","__experimentalGlobalStylesUserEntityId","__experimentalGlobalStylesBaseStyles","__experimentalGlobalStylesContexts","__experimentalPreferredStyleVariations","__experimentalSetIsInserterOpened","alignWide","allowedBlockTypes","availableLegacyWidgets","bodyPlaceholder","codeEditingEnabled","colors","disableCustomColors","disableCustomFontSizes","disableCustomGradients","enableCustomUnits","enableCustomLineHeight","focusMode","fontSizes","gradients","hasFixedToolbar","hasReducedUI","imageEditing","imageSizes","imageDimensions","isRTL","keepCaretInsideBlock","maxWidth","onUpdateDefaultBlockStyles","styles","template","templateLock","titlePlaceholder"])),{},{mediaUpload:n?Kc:void 0,__experimentalReusableBlocks:t,__experimentalFetchLinkSuggestions:Object(v.partialRight)(Xc,e),__experimentalCanUserUseUnfilteredHTML:r,__experimentalUndo:o,__experimentalShouldInsertAtTheTop:i})}},{key:"getDefaultBlockContext",value:function(e,t){return{postId:e,postType:t}}},{key:"componentDidMount",value:function(){this.props.updateEditorSettings(this.props.settings)}},{key:"componentDidUpdate",value:function(e){this.props.settings!==e.settings&&this.props.updateEditorSettings(this.props.settings)}},{key:"componentWillUnmount",value:function(){this.props.tearDownEditor()}},{key:"render",value:function(){var e=this.props,t=e.canUserUseUnfilteredHTML,n=e.children,r=e.post,o=e.blocks,c=e.resetEditorBlocks,a=e.selectionStart,l=e.selectionEnd,d=e.isReady,p=e.settings,b=e.reusableBlocks,f=e.resetEditorBlocksWithoutUndoLevel,h=e.hasUploadPermissions,m=e.isPostTitleSelected,v=e.undo;if(!d)return null;var O=this.getBlockEditorSettings(p,b,h,t,v,m),g=this.getDefaultBlockContext(r.id,r.type);return Object(B.createElement)(B.Fragment,null,Object(B.createElement)(i.__unstableEditorStyles,{styles:p.styles}),Object(B.createElement)(s.EntityProvider,{kind:"root",type:"site"},Object(B.createElement)(s.EntityProvider,{kind:"postType",type:r.type,id:r.id},Object(B.createElement)(i.BlockContextProvider,{value:g},Object(B.createElement)(i.BlockEditorProvider,{value:o,onInput:f,onChange:c,selectionStart:a,selectionEnd:l,settings:O,useSubRegistry:!1},n,Object(B.createElement)(u.ReusableBlocksMenuItems,null),Object(B.createElement)(qc,null))))))}}]),n}(B.Component),Zc=Object(Er.compose)([zc,Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.canUserUseUnfilteredHTML,r=t.__unstableIsEditorReady,o=t.getEditorBlocks,i=t.getEditorSelectionStart,c=t.getEditorSelectionEnd,s=t.isPostTitleSelected,a=e("core").canUser;return{canUserUseUnfilteredHTML:n(),isReady:r(),blocks:o(),selectionStart:i(),selectionEnd:c(),reusableBlocks:e("core").getEntityRecords("postType","wp_block"),hasUploadPermissions:Object(v.defaultTo)(a("create","media"),!0),isPostTitleSelected:s&&s()}})),Object(p.withDispatch)((function(e){var t=e("core/editor"),n=t.setupEditor,r=t.updatePostLock,o=t.resetEditorBlocks,i=t.updateEditorSettings,c=t.__experimentalTearDownEditor,s=t.undo;return{setupEditor:n,updatePostLock:r,createWarningNotice:e("core/notices").createWarningNotice,resetEditorBlocks:o,updateEditorSettings:i,resetEditorBlocksWithoutUndoLevel:function(e,t){o(e,$c($c({},t),{},{__unstableShouldCreateUndoLevel:!1}))},tearDownEditor:c,undo:s}}))])(Jc),es=n(87),ts=n.n(es);function ns(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=Object(B.forwardRef)((function(n,r){return x()("wp.editor."+e,{alternative:"wp.blockEditor."+e}),Object(B.createElement)(t,Object(Sr.a)({ref:r},n))}));return n.forEach((function(n){r[n]=ns(e+"."+n,t[n])})),r}function rs(e,t){return function(){return x()("wp.editor."+e,{alternative:"wp.blockEditor."+e}),t.apply(void 0,arguments)}}var os=ns("RichText",i.RichText,["Content"]);os.isEmpty=rs("RichText.isEmpty",i.RichText.isEmpty);var is=ns("Autocomplete",i.Autocomplete),cs=ns("AlignmentToolbar",i.AlignmentToolbar),ss=ns("BlockAlignmentToolbar",i.BlockAlignmentToolbar),as=ns("BlockControls",i.BlockControls,["Slot"]),us=ns("BlockEdit",i.BlockEdit),ls=ns("BlockEditorKeyboardShortcuts",i.BlockEditorKeyboardShortcuts),ds=ns("BlockFormatControls",i.BlockFormatControls,["Slot"]),ps=ns("BlockIcon",i.BlockIcon),bs=ns("BlockInspector",i.BlockInspector),fs=ns("BlockList",i.BlockList),hs=ns("BlockMover",i.BlockMover),ms=ns("BlockNavigationDropdown",i.BlockNavigationDropdown),vs=ns("BlockSelectionClearer",i.BlockSelectionClearer),Os=ns("BlockSettingsMenu",i.BlockSettingsMenu),gs=ns("BlockTitle",i.BlockTitle),js=ns("BlockToolbar",i.BlockToolbar),ys=ns("ColorPalette",i.ColorPalette),_s=ns("ContrastChecker",i.ContrastChecker),Ps=ns("CopyHandler",i.CopyHandler),ks=ns("DefaultBlockAppender",i.DefaultBlockAppender),Ss=ns("FontSizePicker",i.FontSizePicker),Es=ns("Inserter",i.Inserter),ws=ns("InnerBlocks",i.InnerBlocks,["ButtonBlockAppender","DefaultBlockAppender","Content"]),Cs=ns("InspectorAdvancedControls",i.InspectorAdvancedControls,["Slot"]),Ts=ns("InspectorControls",i.InspectorControls,["Slot"]),xs=ns("PanelColorSettings",i.PanelColorSettings),Bs=ns("PlainText",i.PlainText),Is=ns("RichTextShortcut",i.RichTextShortcut),As=ns("RichTextToolbarButton",i.RichTextToolbarButton),Rs=ns("__unstableRichTextInputEvent",i.__unstableRichTextInputEvent),Ds=ns("MediaPlaceholder",i.MediaPlaceholder),Ns=ns("MediaUpload",i.MediaUpload),Ls=ns("MediaUploadCheck",i.MediaUploadCheck),Us=ns("MultiSelectScrollIntoView",i.MultiSelectScrollIntoView),Fs=ns("NavigableToolbar",i.NavigableToolbar),Ms=ns("ObserveTyping",i.ObserveTyping),Vs=ns("PreserveScrollInReorder",i.PreserveScrollInReorder),zs=ns("SkipToSelectedBlock",i.SkipToSelectedBlock),Hs=ns("URLInput",i.URLInput),Ws=ns("URLInputButton",i.URLInputButton),Gs=ns("URLPopover",i.URLPopover),Ks=ns("Warning",i.Warning),qs=ns("WritingFlow",i.WritingFlow),Qs=rs("createCustomColorsHOC",i.createCustomColorsHOC),$s=rs("getColorClassName",i.getColorClassName),Ys=rs("getColorObjectByAttributeValues",i.getColorObjectByAttributeValues),Xs=rs("getColorObjectByColorValue",i.getColorObjectByColorValue),Js=rs("getFontSize",i.getFontSize),Zs=rs("getFontSizeClass",i.getFontSizeClass),ea=rs("withColorContext",i.withColorContext),ta=rs("withColors",i.withColors),na=rs("withFontSizes",i.withFontSizes)},47:function(e,t){!function(){e.exports=this.wp.apiFetch}()},5: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}))},53:function(e,t){!function(){e.exports=this.wp.keyboardShortcuts}()},6:function(e,t){!function(){e.exports=this.wp.blockEditor}()},60:function(e,t,n){e.exports=function(e,t){var n,r,o=0;function i(){var i,c,s=n,a=arguments.length;e:for(;s;){if(s.args.length===arguments.length){for(c=0;c<a;c++)if(s.args[c]!==arguments[c]){s=s.next;continue e}return s!==n&&(s===r&&(r=s.prev),s.prev.next=s.next,s.next&&(s.next.prev=s.prev),s.next=n,s.prev=null,n.prev=s,n=s),s.val}s=s.next}for(i=new Array(a),c=0;c<a;c++)i[c]=arguments[c];return s={args:i,val:e.apply(null,i)},n?(n.prev=s,s.next=n):r=s,o===t.maxSize?(r=r.prev).next=null:o++,n=s,s.val}return t=t||{},i.clear=function(){n=null,r=null,o=0},i}},69:function(e,t){!function(){e.exports=this.wp.htmlEntities}()},7:function(e,t){!function(){e.exports=this.wp.primitives}()},75:function(e,t){!function(){e.exports=this.wp.date}()},8:function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return r}))},83:function(e,t){!function(){e.exports=this.wp.coreData}()},87:function(e,t){!function(){e.exports=this.wp.serverSideRender}()},9:function(e,t,n){var r; +*/o=[e,t],void 0===(i="function"==typeof(r=function(e,t){"use strict";var n,r,o="function"==typeof Map?new Map:(n=[],r=[],{has:function(e){return n.indexOf(e)>-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,s=function(){e.clientWidth!==r&&d()},a=function(t){window.removeEventListener("resize",s,!1),e.removeEventListener("input",d,!1),e.removeEventListener("keyup",d,!1),e.removeEventListener("autosize:destroy",a,!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",a,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",d,!1),window.addEventListener("resize",s,!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:a,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<t?"hidden"===n.overflowY&&(u("scroll"),l(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(u("hidden"),l(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),c!==r){c=r;var o=i("autosize:resized");try{e.dispatchEvent(o)}catch(e){}}}}function s(e){var t=o.get(e);t&&t.destroy()}function a(e){var t=o.get(e);t&&t.update()}var u=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((u=function(e){return e}).destroy=function(e){return e},u.update=function(e){return e}):((u=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return c(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],s),e},u.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],a),e}),t.default=u,e.exports=t.default})?r.apply(t,o):r)||(e.exports=i)},182:function(e,t,n){var r=n(183);e.exports=function(e){var t=r(e,"line-height"),n=parseFloat(t,10);if(t===n+""){var o=e.style.lineHeight;e.style.lineHeight=t+"em",t=r(e,"line-height"),n=parseFloat(t,10),o?e.style.lineHeight=o:delete e.style.lineHeight}if(-1!==t.indexOf("pt")?(n*=4,n/=3):-1!==t.indexOf("mm")?(n*=96,n/=25.4):-1!==t.indexOf("cm")?(n*=96,n/=2.54):-1!==t.indexOf("in")?n*=96:-1!==t.indexOf("pc")&&(n*=16),n=Math.round(n),"normal"===t){var i=e.nodeName,c=document.createElement(i);c.innerHTML=" ","TEXTAREA"===i.toUpperCase()&&c.setAttribute("rows","1");var s=r(e,"font-size");c.style.fontSize=s,c.style.padding="0px",c.style.border="0px";var a=document.body;a.appendChild(c),n=c.offsetHeight,a.removeChild(c)}return n}},183:function(e,t){e.exports=function(e,t,n){return((n=window.getComputedStyle)?n(e):e.currentStyle)[t.replace(/-(\w)/gi,(function(e,t){return t.toUpperCase()}))]}},19: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}))},2:function(e,t){!function(){e.exports=this.lodash}()},20:function(e,t){!function(){e.exports=this.regeneratorRuntime}()},21: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}))},22:function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,"a",(function(){return o}))},23:function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}n.d(t,"a",(function(){return o}))},24:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(40),o=n(16);function i(e,t){return!t||"object"!==Object(r.a)(t)&&"function"!=typeof t?Object(o.a)(e):t}},25:function(e,t){!function(){e.exports=this.wp.richText}()},27:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return r}))},28:function(e,t,n){e.exports=n(142)()},292:function(e,t,n){e.exports=n(439)},3:function(e,t){!function(){e.exports=this.wp.components}()},30:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(27);function o(e,t){if(e){if("string"==typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},31:function(e,t){!function(){e.exports=this.wp.url}()},318:function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(o.Path,{d:"M2 2h5v11H2V2zm6 0h5v5H8V2zm6 0h4v16h-4V2zM8 8h5v5H8V8zm-6 6h11v4H2v-4z"}));t.a=i},32:function(e,t){!function(){e.exports=this.wp.dataControls}()},33:function(e,t){!function(){e.exports=this.wp.hooks}()},36:function(e,t){!function(){e.exports=this.wp.deprecated}()},37:function(e,t,n){"use strict";function r(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}n.d(t,"a",(function(){return r}))},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.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,"a",(function(){return r}))},4:function(e,t){!function(){e.exports=this.wp.data}()},40: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)}n.d(t,"a",(function(){return r}))},43:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},439:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var o=[];function i(e,t){return e.optimist&&e.optimist.id===t}function c(e,t){if(!e||"object"!=typeof e||Array.isArray(e))throw new TypeError('Error while handling "'+t.type+'": Optimist requires that state is always a plain object.')}function s(e){if(e){var t=e.optimist;return{optimist:void 0===t?o:t,innerState:function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["optimist"])}}return{optimist:o,innerState:e}}e.exports=function(e){function t(t,n,o){return t.length&&(t=t.concat([{action:o}])),c(n=e(n,o),o),r({optimist:t},n)}return function(n,o){if(o.optimist)switch(o.optimist.type){case"BEGIN":return function(t,n){var o=s(t),i=o.optimist,a=o.innerState;return i=i.concat([{beforeState:a,action:n}]),c(a=e(a,n),n),r({optimist:i},a)}(n,o);case"COMMIT":return function(e,n){var r=s(e),o=r.optimist,c=r.innerState,a=[],u=!1,l=!1;return o.forEach((function(e){u?e.beforeState&&i(e.action,n.optimist.id)?(l=!0,a.push({action:e.action})):a.push(e):e.beforeState&&!i(e.action,n.optimist.id)?(u=!0,a.push(e)):e.beforeState&&i(e.action,n.optimist.id)&&(l=!0)})),l||console.error('Cannot commit transaction with id "'+n.optimist.id+'" because it does not exist'),t(o=a,c,n)}(n,o);case"REVERT":return function(n,r){var o=s(n),a=o.optimist,u=o.innerState,l=[],d=!1,p=!1,b=u;return a.forEach((function(t){t.beforeState&&i(t.action,r.optimist.id)&&(b=t.beforeState,p=!0),i(t.action,r.optimist.id)||(t.beforeState&&(d=!0),d&&(p&&t.beforeState?l.push({beforeState:b,action:t.action}):l.push(t)),p&&(b=e(b,t.action),c(u,r)))})),p||console.error('Cannot revert transaction with id "'+r.optimist.id+'" because it does not exist'),t(a=l,b,r)}(n,o)}var a=s(n),u=a.optimist,l=a.innerState;if(n&&!u.length){var d=e(l,o);return d===l?n:(c(d,o),r({optimist:u},d))}return t(u,l,o)}},e.exports.BEGIN="BEGIN",e.exports.COMMIT="COMMIT",e.exports.REVERT="REVERT"},45:function(e,t,n){"use strict";function r(e,t,n,r,o,i,c){try{var s=e[i](c),a=s.value}catch(e){return void n(e)}s.done?t(a):Promise.resolve(a).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 s(e){r(c,o,i,s,a,"next",e)}function a(e){r(c,o,i,s,a,"throw",e)}s(void 0)}))}}n.d(t,"a",(function(){return o}))},457:function(e,t,n){"use strict";n.r(t),n.d(t,"userAutocompleter",(function(){return Ar})),n.d(t,"AutosaveMonitor",(function(){return Vr})),n.d(t,"DocumentOutline",(function(){return Jr})),n.d(t,"DocumentOutlineCheck",(function(){return Zr})),n.d(t,"VisualEditorGlobalKeyboardShortcuts",(function(){return no})),n.d(t,"EditorGlobalKeyboardShortcuts",(function(){return ro})),n.d(t,"TextEditorGlobalKeyboardShortcuts",(function(){return oo})),n.d(t,"EditorKeyboardShortcutsRegister",(function(){return io})),n.d(t,"EditorHistoryRedo",(function(){return lo})),n.d(t,"EditorHistoryUndo",(function(){return bo})),n.d(t,"EditorNotices",(function(){return ho})),n.d(t,"EntitiesSavedStates",(function(){return ko})),n.d(t,"ErrorBoundary",(function(){return wo})),n.d(t,"LocalAutosaveMonitor",(function(){return Bo})),n.d(t,"PageAttributesCheck",(function(){return Io})),n.d(t,"PageAttributesOrder",(function(){return Do})),n.d(t,"PageAttributesParent",(function(){return Mo})),n.d(t,"PageTemplate",(function(){return Vo})),n.d(t,"PostAuthor",(function(){return Go})),n.d(t,"PostAuthorCheck",(function(){return zo})),n.d(t,"PostComments",(function(){return Ko})),n.d(t,"PostExcerpt",(function(){return qo})),n.d(t,"PostExcerptCheck",(function(){return Qo})),n.d(t,"PostFeaturedImage",(function(){return ri})),n.d(t,"PostFeaturedImageCheck",(function(){return Yo})),n.d(t,"PostFormat",(function(){return ci})),n.d(t,"PostFormatCheck",(function(){return oi})),n.d(t,"PostLastRevision",(function(){return ui})),n.d(t,"PostLastRevisionCheck",(function(){return ai})),n.d(t,"PostLockedModal",(function(){return hi})),n.d(t,"PostPendingStatus",(function(){return vi})),n.d(t,"PostPendingStatusCheck",(function(){return mi})),n.d(t,"PostPingbacks",(function(){return Oi})),n.d(t,"PostPreviewButton",(function(){return pi})),n.d(t,"PostPublishButton",(function(){return _i})),n.d(t,"PostPublishButtonLabel",(function(){return gi})),n.d(t,"PostPublishPanel",(function(){return tc})),n.d(t,"PostSavedState",(function(){return sc})),n.d(t,"PostSchedule",(function(){return Ti})),n.d(t,"PostScheduleCheck",(function(){return ac})),n.d(t,"PostScheduleLabel",(function(){return xi})),n.d(t,"PostSlug",(function(){return pc})),n.d(t,"PostSlugCheck",(function(){return uc})),n.d(t,"PostSticky",(function(){return fc})),n.d(t,"PostStickyCheck",(function(){return bc})),n.d(t,"PostSwitchToDraftButton",(function(){return cc})),n.d(t,"PostTaxonomies",(function(){return yc})),n.d(t,"PostTaxonomiesCheck",(function(){return _c})),n.d(t,"PostTextEditor",(function(){return Sc})),n.d(t,"PostTitle",(function(){return Bc})),n.d(t,"PostTrash",(function(){return Ic})),n.d(t,"PostTrashCheck",(function(){return Ac})),n.d(t,"PostTypeSupportCheck",(function(){return Ao})),n.d(t,"PostVisibility",(function(){return wi})),n.d(t,"PostVisibilityLabel",(function(){return Ci})),n.d(t,"PostVisibilityCheck",(function(){return Rc})),n.d(t,"TableOfContents",(function(){return Mc})),n.d(t,"UnsavedChangesWarning",(function(){return Vc})),n.d(t,"WordCount",(function(){return Lc})),n.d(t,"EditorProvider",(function(){return es})),n.d(t,"ServerSideRender",(function(){return ns.a})),n.d(t,"RichText",(function(){return is})),n.d(t,"Autocomplete",(function(){return cs})),n.d(t,"AlignmentToolbar",(function(){return ss})),n.d(t,"BlockAlignmentToolbar",(function(){return as})),n.d(t,"BlockControls",(function(){return us})),n.d(t,"BlockEdit",(function(){return ls})),n.d(t,"BlockEditorKeyboardShortcuts",(function(){return ds})),n.d(t,"BlockFormatControls",(function(){return ps})),n.d(t,"BlockIcon",(function(){return bs})),n.d(t,"BlockInspector",(function(){return fs})),n.d(t,"BlockList",(function(){return hs})),n.d(t,"BlockMover",(function(){return ms})),n.d(t,"BlockNavigationDropdown",(function(){return vs})),n.d(t,"BlockSelectionClearer",(function(){return Os})),n.d(t,"BlockSettingsMenu",(function(){return gs})),n.d(t,"BlockTitle",(function(){return js})),n.d(t,"BlockToolbar",(function(){return ys})),n.d(t,"ColorPalette",(function(){return _s})),n.d(t,"ContrastChecker",(function(){return Ps})),n.d(t,"CopyHandler",(function(){return ks})),n.d(t,"DefaultBlockAppender",(function(){return Ss})),n.d(t,"FontSizePicker",(function(){return Es})),n.d(t,"Inserter",(function(){return ws})),n.d(t,"InnerBlocks",(function(){return Cs})),n.d(t,"InspectorAdvancedControls",(function(){return Ts})),n.d(t,"InspectorControls",(function(){return xs})),n.d(t,"PanelColorSettings",(function(){return Bs})),n.d(t,"PlainText",(function(){return Is})),n.d(t,"RichTextShortcut",(function(){return As})),n.d(t,"RichTextToolbarButton",(function(){return Rs})),n.d(t,"__unstableRichTextInputEvent",(function(){return Ds})),n.d(t,"MediaPlaceholder",(function(){return Ns})),n.d(t,"MediaUpload",(function(){return Ls})),n.d(t,"MediaUploadCheck",(function(){return Us})),n.d(t,"MultiSelectScrollIntoView",(function(){return Fs})),n.d(t,"NavigableToolbar",(function(){return Ms})),n.d(t,"ObserveTyping",(function(){return Vs})),n.d(t,"PreserveScrollInReorder",(function(){return zs})),n.d(t,"SkipToSelectedBlock",(function(){return Hs})),n.d(t,"URLInput",(function(){return Ws})),n.d(t,"URLInputButton",(function(){return Gs})),n.d(t,"URLPopover",(function(){return Ks})),n.d(t,"Warning",(function(){return qs})),n.d(t,"WritingFlow",(function(){return Qs})),n.d(t,"createCustomColorsHOC",(function(){return $s})),n.d(t,"getColorClassName",(function(){return Ys})),n.d(t,"getColorObjectByAttributeValues",(function(){return Xs})),n.d(t,"getColorObjectByColorValue",(function(){return Js})),n.d(t,"getFontSize",(function(){return Zs})),n.d(t,"getFontSizeClass",(function(){return ea})),n.d(t,"withColorContext",(function(){return ta})),n.d(t,"withColors",(function(){return na})),n.d(t,"withFontSizes",(function(){return ra})),n.d(t,"mediaUpload",(function(){return qc})),n.d(t,"cleanForSlug",(function(){return V})),n.d(t,"storeConfig",(function(){return kr})),n.d(t,"transformStyles",(function(){return i.transformStyles}));var r={};n.r(r),n.d(r,"hasEditorUndo",(function(){return K})),n.d(r,"hasEditorRedo",(function(){return q})),n.d(r,"isEditedPostNew",(function(){return Q})),n.d(r,"hasChangedContent",(function(){return $})),n.d(r,"isEditedPostDirty",(function(){return Y})),n.d(r,"hasNonPostEntityChanges",(function(){return X})),n.d(r,"isCleanNewPost",(function(){return J})),n.d(r,"getCurrentPost",(function(){return Z})),n.d(r,"getCurrentPostType",(function(){return ee})),n.d(r,"getCurrentPostId",(function(){return te})),n.d(r,"getCurrentPostRevisionsCount",(function(){return ne})),n.d(r,"getCurrentPostLastRevisionId",(function(){return re})),n.d(r,"getPostEdits",(function(){return oe})),n.d(r,"getReferenceByDistinctEdits",(function(){return ie})),n.d(r,"getCurrentPostAttribute",(function(){return ce})),n.d(r,"getEditedPostAttribute",(function(){return se})),n.d(r,"getAutosaveAttribute",(function(){return ae})),n.d(r,"getEditedPostVisibility",(function(){return ue})),n.d(r,"isCurrentPostPending",(function(){return le})),n.d(r,"isCurrentPostPublished",(function(){return de})),n.d(r,"isCurrentPostScheduled",(function(){return pe})),n.d(r,"isEditedPostPublishable",(function(){return be})),n.d(r,"isEditedPostSaveable",(function(){return fe})),n.d(r,"isEditedPostEmpty",(function(){return he})),n.d(r,"isEditedPostAutosaveable",(function(){return me})),n.d(r,"getAutosave",(function(){return ve})),n.d(r,"hasAutosave",(function(){return Oe})),n.d(r,"isEditedPostBeingScheduled",(function(){return ge})),n.d(r,"isEditedPostDateFloating",(function(){return je})),n.d(r,"isSavingPost",(function(){return ye})),n.d(r,"didPostSaveRequestSucceed",(function(){return _e})),n.d(r,"didPostSaveRequestFail",(function(){return Pe})),n.d(r,"isAutosavingPost",(function(){return ke})),n.d(r,"isPreviewingPost",(function(){return Se})),n.d(r,"getEditedPostPreviewLink",(function(){return Ee})),n.d(r,"getSuggestedPostFormat",(function(){return we})),n.d(r,"getBlocksForSerialization",(function(){return Ce})),n.d(r,"getEditedPostContent",(function(){return Te})),n.d(r,"getStateBeforeOptimisticTransaction",(function(){return xe})),n.d(r,"isPublishingPost",(function(){return Be})),n.d(r,"isPermalinkEditable",(function(){return Ie})),n.d(r,"getPermalink",(function(){return Ae})),n.d(r,"getEditedPostSlug",(function(){return Re})),n.d(r,"getPermalinkParts",(function(){return De})),n.d(r,"inSomeHistory",(function(){return Ne})),n.d(r,"isPostLocked",(function(){return Le})),n.d(r,"isPostSavingLocked",(function(){return Ue})),n.d(r,"isPostAutosavingLocked",(function(){return Fe})),n.d(r,"isPostLockTakeover",(function(){return Me})),n.d(r,"getPostLockUser",(function(){return Ve})),n.d(r,"getActivePostLock",(function(){return ze})),n.d(r,"canUserUseUnfilteredHTML",(function(){return He})),n.d(r,"isPublishSidebarEnabled",(function(){return We})),n.d(r,"getEditorBlocks",(function(){return Ge})),n.d(r,"getEditorSelectionStart",(function(){return Ke})),n.d(r,"getEditorSelectionEnd",(function(){return qe})),n.d(r,"__unstableIsEditorReady",(function(){return Qe})),n.d(r,"getEditorSettings",(function(){return $e})),n.d(r,"getBlockName",(function(){return Xe})),n.d(r,"isBlockValid",(function(){return Je})),n.d(r,"getBlockAttributes",(function(){return Ze})),n.d(r,"getBlock",(function(){return et})),n.d(r,"getBlocks",(function(){return tt})),n.d(r,"__unstableGetBlockWithoutInnerBlocks",(function(){return nt})),n.d(r,"getClientIdsOfDescendants",(function(){return rt})),n.d(r,"getClientIdsWithDescendants",(function(){return ot})),n.d(r,"getGlobalBlockCount",(function(){return it})),n.d(r,"getBlocksByClientId",(function(){return ct})),n.d(r,"getBlockCount",(function(){return st})),n.d(r,"getBlockSelectionStart",(function(){return at})),n.d(r,"getBlockSelectionEnd",(function(){return ut})),n.d(r,"getSelectedBlockCount",(function(){return lt})),n.d(r,"hasSelectedBlock",(function(){return dt})),n.d(r,"getSelectedBlockClientId",(function(){return pt})),n.d(r,"getSelectedBlock",(function(){return bt})),n.d(r,"getBlockRootClientId",(function(){return ft})),n.d(r,"getBlockHierarchyRootClientId",(function(){return ht})),n.d(r,"getAdjacentBlockClientId",(function(){return mt})),n.d(r,"getPreviousBlockClientId",(function(){return vt})),n.d(r,"getNextBlockClientId",(function(){return Ot})),n.d(r,"getSelectedBlocksInitialCaretPosition",(function(){return gt})),n.d(r,"getMultiSelectedBlockClientIds",(function(){return jt})),n.d(r,"getMultiSelectedBlocks",(function(){return yt})),n.d(r,"getFirstMultiSelectedBlockClientId",(function(){return _t})),n.d(r,"getLastMultiSelectedBlockClientId",(function(){return Pt})),n.d(r,"isFirstMultiSelectedBlock",(function(){return kt})),n.d(r,"isBlockMultiSelected",(function(){return St})),n.d(r,"isAncestorMultiSelected",(function(){return Et})),n.d(r,"getMultiSelectedBlocksStartClientId",(function(){return wt})),n.d(r,"getMultiSelectedBlocksEndClientId",(function(){return Ct})),n.d(r,"getBlockOrder",(function(){return Tt})),n.d(r,"getBlockIndex",(function(){return xt})),n.d(r,"isBlockSelected",(function(){return Bt})),n.d(r,"hasSelectedInnerBlock",(function(){return It})),n.d(r,"isBlockWithinSelection",(function(){return At})),n.d(r,"hasMultiSelection",(function(){return Rt})),n.d(r,"isMultiSelecting",(function(){return Dt})),n.d(r,"isSelectionEnabled",(function(){return Nt})),n.d(r,"getBlockMode",(function(){return Lt})),n.d(r,"isTyping",(function(){return Ut})),n.d(r,"isCaretWithinFormattedText",(function(){return Ft})),n.d(r,"getBlockInsertionPoint",(function(){return Mt})),n.d(r,"isBlockInsertionPointVisible",(function(){return Vt})),n.d(r,"isValidTemplate",(function(){return zt})),n.d(r,"getTemplate",(function(){return Ht})),n.d(r,"getTemplateLock",(function(){return Wt})),n.d(r,"canInsertBlockType",(function(){return Gt})),n.d(r,"getInserterItems",(function(){return Kt})),n.d(r,"hasInserterItems",(function(){return qt})),n.d(r,"getBlockListSettings",(function(){return Qt}));var o={};n.r(o),n.d(o,"setupEditor",(function(){return hn})),n.d(o,"__experimentalTearDownEditor",(function(){return mn})),n.d(o,"resetPost",(function(){return vn})),n.d(o,"resetAutosave",(function(){return On})),n.d(o,"__experimentalRequestPostUpdateStart",(function(){return gn})),n.d(o,"__experimentalRequestPostUpdateFinish",(function(){return jn})),n.d(o,"updatePost",(function(){return yn})),n.d(o,"setupEditorState",(function(){return _n})),n.d(o,"editPost",(function(){return Pn})),n.d(o,"__experimentalOptimisticUpdatePost",(function(){return kn})),n.d(o,"savePost",(function(){return Sn})),n.d(o,"refreshPost",(function(){return En})),n.d(o,"trashPost",(function(){return wn})),n.d(o,"autosave",(function(){return Cn})),n.d(o,"redo",(function(){return Tn})),n.d(o,"undo",(function(){return xn})),n.d(o,"createUndoLevel",(function(){return Bn})),n.d(o,"updatePostLock",(function(){return In})),n.d(o,"enablePublishSidebar",(function(){return An})),n.d(o,"disablePublishSidebar",(function(){return Rn})),n.d(o,"lockPostSaving",(function(){return Dn})),n.d(o,"unlockPostSaving",(function(){return Nn})),n.d(o,"lockPostAutosaving",(function(){return Ln})),n.d(o,"unlockPostAutosaving",(function(){return Un})),n.d(o,"resetEditorBlocks",(function(){return Fn})),n.d(o,"updateEditorSettings",(function(){return Mn})),n.d(o,"resetBlocks",(function(){return zn})),n.d(o,"receiveBlocks",(function(){return Hn})),n.d(o,"updateBlock",(function(){return Wn})),n.d(o,"updateBlockAttributes",(function(){return Gn})),n.d(o,"selectBlock",(function(){return Kn})),n.d(o,"startMultiSelect",(function(){return qn})),n.d(o,"stopMultiSelect",(function(){return Qn})),n.d(o,"multiSelect",(function(){return $n})),n.d(o,"clearSelectedBlock",(function(){return Yn})),n.d(o,"toggleSelection",(function(){return Xn})),n.d(o,"replaceBlocks",(function(){return Jn})),n.d(o,"replaceBlock",(function(){return Zn})),n.d(o,"moveBlocksDown",(function(){return er})),n.d(o,"moveBlocksUp",(function(){return tr})),n.d(o,"moveBlockToPosition",(function(){return nr})),n.d(o,"insertBlock",(function(){return rr})),n.d(o,"insertBlocks",(function(){return or})),n.d(o,"showInsertionPoint",(function(){return ir})),n.d(o,"hideInsertionPoint",(function(){return cr})),n.d(o,"setTemplateValidity",(function(){return sr})),n.d(o,"synchronizeTemplate",(function(){return ar})),n.d(o,"mergeBlocks",(function(){return ur})),n.d(o,"removeBlocks",(function(){return lr})),n.d(o,"removeBlock",(function(){return dr})),n.d(o,"toggleBlockMode",(function(){return pr})),n.d(o,"startTyping",(function(){return br})),n.d(o,"stopTyping",(function(){return fr})),n.d(o,"enterFormattedText",(function(){return hr})),n.d(o,"exitFormattedText",(function(){return mr})),n.d(o,"insertDefaultBlock",(function(){return vr})),n.d(o,"updateBlockListSettings",(function(){return Or}));var i=n(6),c=n(11),s=n(83),a=n(53),u=(n(92),n(121)),l=n(25),d=(n(101),n(5)),p=n(4),b=n(32),f=n(40),h=n(292),m=n.n(h),v=n(2);function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){Object(d.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var j={insertUsage:{},isPublishSidebarEnabled:!0},y=g(g({},i.SETTINGS_DEFAULTS),{},{richEditingEnabled:!0,codeEditingEnabled:!0,enableCustomFields:!1});function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){Object(d.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function k(e){return e&&"object"===Object(f.a)(e)&&"raw"in e?e.raw:e}var S=m()(Object(p.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]:j,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ENABLE_PUBLISH_SIDEBAR":return P(P({},e),{},{isPublishSidebarEnabled:!0});case"DISABLE_PUBLISH_SIDEBAR":return P(P({},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},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 P(P({},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 P(P({},e),{},Object(d.a)({},t.lockName,!0));case"UNLOCK_POST_SAVING":return Object(v.omit)(e,t.lockName)}return e},isReady:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.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]:y,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_EDITOR_SETTINGS":return P(P({},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 P(P({},e),{},Object(d.a)({},t.lockName,!0));case"UNLOCK_POST_AUTOSAVING":return Object(v.omit)(e,t.lockName)}return e}})),E=n(12),w=n(75),C=n(31),T=n(36),x=n.n(T),B=n(0),I=new Set(["meta"]),A="core/editor",R=/%(?:postname|pagename)%/,D=["title","excerpt","content"],N=n(60),L=n.n(N),U=n(105),F=L()((function(e){1===e.length&&Object(c.isUnmodifiedDefaultBlock)(e[0])&&(e=[]);var t=Object(c.serialize)(e);return 1===e.length&&e[0].name===Object(c.getFreeformContentHandlerName)()&&(t=Object(U.removep)(t)),t}),{maxSize:1});function M(e,t){return Object(C.addQueryArgs)(e,t)}function V(e){return e?Object(v.trim)(Object(v.deburr)(e).replace(/[\s\./]+/g,"-").replace(/[^\w-]+/g,"").toLowerCase(),"-"):""}function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function H(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z(Object(n),!0).forEach((function(t){Object(d.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var W={},G=[],K=Object(p.createRegistrySelector)((function(e){return function(){return e("core").hasUndo()}})),q=Object(p.createRegistrySelector)((function(e){return function(){return e("core").hasRedo()}}));function Q(e){return"auto-draft"===Z(e).status}function $(e){var t=oe(e);return"blocks"in t||"content"in t}var Y=Object(p.createRegistrySelector)((function(e){return function(t){var n=ee(t),r=te(t);return!!e("core").hasEditsForEntityRecord("postType",n,r)}})),X=Object(p.createRegistrySelector)((function(e){return function(t){if(!$e(t).__experimentalEnableFullSiteEditing)return!1;var n=e("core").__experimentalGetDirtyEntityRecords(),r=Z(t),o=r.type,i=r.id;return Object(v.some)(n,(function(e){return"postType"!==e.kind||e.name!==o||e.key!==i}))}}));function J(e){return!Y(e)&&Q(e)}var Z=Object(p.createRegistrySelector)((function(e){return function(t){var n=te(t),r=ee(t),o=e("core").getRawEntityRecord("postType",r,n);return o||W}}));function ee(e){return e.postType}function te(e){return e.postId}function ne(e){return Object(v.get)(Z(e),["_links","version-history",0,"count"],0)}function re(e){return Object(v.get)(Z(e),["_links","predecessor-version",0,"id"],null)}var oe=Object(p.createRegistrySelector)((function(e){return function(t){var n=ee(t),r=te(t);return e("core").getEntityRecordEdits("postType",n,r)||W}})),ie=Object(p.createRegistrySelector)((function(e){return function(){return x()("`wp.data.select( 'core/editor' ).getReferenceByDistinctEdits`",{alternative:"`wp.data.select( 'core' ).getReferenceByDistinctEdits`"}),e("core").getReferenceByDistinctEdits()}}));function ce(e,t){switch(t){case"type":return ee(e);case"id":return te(e);default:var n=Z(e);if(!n.hasOwnProperty(t))break;return k(n[t])}}function se(e,t){switch(t){case"content":return Te(e)}var n=oe(e);return n.hasOwnProperty(t)?I.has(t)?function(e,t){var n=oe(e);return n.hasOwnProperty(t)?H(H({},ce(e,t)),n[t]):ce(e,t)}(e,t):n[t]:ce(e,t)}var ae=Object(p.createRegistrySelector)((function(e){return function(t,n){if(Object(v.includes)(D,n)||"preview_link"===n){var r=ee(t),o=te(t),i=Object(v.get)(e("core").getCurrentUser(),["id"]),c=e("core").getAutosave(r,o,i);return c?k(c[n]):void 0}}}));function ue(e){return"private"===se(e,"status")?"private":se(e,"password")?"password":"public"}function le(e){return"pending"===Z(e).status}function de(e,t){var n=t||Z(e);return-1!==["publish","private"].indexOf(n.status)||"future"===n.status&&!Object(w.isInTheFuture)(new Date(Number(Object(w.getDate)(n.date))-6e4))}function pe(e){return"future"===Z(e).status&&!de(e)}function be(e){var t=Z(e);return Y(e)||-1===["publish","private","future"].indexOf(t.status)}function fe(e){return!ye(e)&&(!!se(e,"title")||!!se(e,"excerpt")||!he(e)||"native"===B.Platform.OS)}function he(e){var t=Ge(e);if(t.length){if(t.length>1)return!1;var n=t[0].name;if(n!==Object(c.getDefaultBlockName)()&&n!==Object(c.getFreeformContentHandlerName)())return!1}return!Te(e)}var me=Object(p.createRegistrySelector)((function(e){return function(t){if(!fe(t))return!1;if(Fe(t))return!1;var n=ee(t),r=te(t),o=e("core").hasFetchedAutosaves(n,r),i=Object(v.get)(e("core").getCurrentUser(),["id"]),c=e("core").getAutosave(n,r,i);return!!o&&(!c||(!!$(t)||["title","excerpt"].some((function(e){return k(c[e])!==se(t,e)}))))}})),ve=Object(p.createRegistrySelector)((function(e){return function(t){x()("`wp.data.select( 'core/editor' ).getAutosave()`",{alternative:"`wp.data.select( 'core' ).getAutosave( postType, postId, userId )`",plugin:"Gutenberg"});var n=ee(t),r=te(t),o=Object(v.get)(e("core").getCurrentUser(),["id"]),i=e("core").getAutosave(n,r,o);return Object(v.mapValues)(Object(v.pick)(i,D),k)}})),Oe=Object(p.createRegistrySelector)((function(e){return function(t){x()("`wp.data.select( 'core/editor' ).hasAutosave()`",{alternative:"`!! wp.data.select( 'core' ).getAutosave( postType, postId, userId )`",plugin:"Gutenberg"});var n=ee(t),r=te(t),o=Object(v.get)(e("core").getCurrentUser(),["id"]);return!!e("core").getAutosave(n,r,o)}}));function ge(e){var t=se(e,"date"),n=new Date(Number(Object(w.getDate)(t))-6e4);return Object(w.isInTheFuture)(n)}function je(e){var t=se(e,"date"),n=se(e,"modified"),r=se(e,"status");return("draft"===r||"auto-draft"===r||"pending"===r)&&(t===n||null===t)}var ye=Object(p.createRegistrySelector)((function(e){return function(t){var n=ee(t),r=te(t);return e("core").isSavingEntityRecord("postType",n,r)}})),_e=Object(p.createRegistrySelector)((function(e){return function(t){var n=ee(t),r=te(t);return!e("core").getLastEntitySaveError("postType",n,r)}})),Pe=Object(p.createRegistrySelector)((function(e){return function(t){var n=ee(t),r=te(t);return!!e("core").getLastEntitySaveError("postType",n,r)}}));function ke(e){return!!ye(e)&&!!Object(v.get)(e.saving,["options","isAutosave"])}function Se(e){return!!ye(e)&&!!e.saving.options.isPreview}function Ee(e){if(!e.saving.pending&&!ye(e)){var t=ae(e,"preview_link");t||(t=se(e,"link"))&&(t=Object(C.addQueryArgs)(t,{preview:!0}));var n=se(e,"featured_media");return t&&n?Object(C.addQueryArgs)(t,{_thumbnail_id:n}):t}}function we(e){var t,n=Ge(e);if(n.length>2)return null;if(1===n.length&&"core/embed"===(t=n[0].name)){var r,o=null===(r=n[0].attributes)||void 0===r?void 0:r.providerNameSlug;["youtube","vimeo"].includes(o)?t="core/video":["spotify","soundcloud"].includes(o)&&(t="core/audio")}switch(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":return"video";case"core/audio":return"audio";default:return null}}function Ce(e){x()("`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(c.isUnmodifiedDefaultBlock)(t[0])?[]:t}var Te=Object(p.createRegistrySelector)((function(e){return function(t){var n=te(t),r=ee(t),o=e("core").getEditedEntityRecord("postType",r,n);if(o){if("function"==typeof o.content)return o.content(o);if(o.blocks)return F(o.blocks);if(o.content)return o.content}return""}}));function xe(e,t){var n=Object(v.find)(e.optimist,(function(e){return e.beforeState&&Object(v.get)(e.action,["optimist","id"])===t}));return n?n.beforeState:null}function Be(e){if(!ye(e))return!1;if(!de(e))return!1;var t=xe(e,"post-update");return!!t&&!de(null,t.currentPost)}function Ie(e){var t=se(e,"permalink_template");return R.test(t)}function Ae(e){var t=De(e);if(!t)return null;var n=t.prefix,r=t.postName,o=t.suffix;return Ie(e)?n+r+o:n}function Re(e){return se(e,"slug")||V(se(e,"title"))||te(e)}function De(e){var t=se(e,"permalink_template");if(!t)return null;var n=se(e,"slug")||se(e,"generated_slug"),r=t.split(R),o=Object(E.a)(r,2);return{prefix:o[0],postName:n,suffix:o[1]}}function Ne(e,t){var n=e.optimist;return!!n&&n.some((function(e){var n=e.beforeState;return n&&t(n)}))}function Le(e){return e.postLock.isLocked}function Ue(e){return Object.keys(e.postSavingLock).length>0}function Fe(e){return Object.keys(e.postAutosavingLock).length>0}function Me(e){return e.postLock.isTakeover}function Ve(e){return e.postLock.user}function ze(e){return e.postLock.activePostLock}function He(e){return Object(v.has)(Z(e),["_links","wp:action-unfiltered-html"])}function We(e){return e.preferences.hasOwnProperty("isPublishSidebarEnabled")?e.preferences.isPublishSidebarEnabled:j.isPublishSidebarEnabled}function Ge(e){return se(e,"blocks")||G}function Ke(e){return se(e,"selectionStart")}function qe(e){return se(e,"selectionEnd")}function Qe(e){return e.isReady}function $e(e){return e.editorSettings}function Ye(e){return Object(p.createRegistrySelector)((function(t){return function(n){var r;x()("`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;c<o;c++)i[c-1]=arguments[c];return(r=t("core/block-editor"))[e].apply(r,i)}}))}var Xe=Ye("getBlockName"),Je=Ye("isBlockValid"),Ze=Ye("getBlockAttributes"),et=Ye("getBlock"),tt=Ye("getBlocks"),nt=Ye("__unstableGetBlockWithoutInnerBlocks"),rt=Ye("getClientIdsOfDescendants"),ot=Ye("getClientIdsWithDescendants"),it=Ye("getGlobalBlockCount"),ct=Ye("getBlocksByClientId"),st=Ye("getBlockCount"),at=Ye("getBlockSelectionStart"),ut=Ye("getBlockSelectionEnd"),lt=Ye("getSelectedBlockCount"),dt=Ye("hasSelectedBlock"),pt=Ye("getSelectedBlockClientId"),bt=Ye("getSelectedBlock"),ft=Ye("getBlockRootClientId"),ht=Ye("getBlockHierarchyRootClientId"),mt=Ye("getAdjacentBlockClientId"),vt=Ye("getPreviousBlockClientId"),Ot=Ye("getNextBlockClientId"),gt=Ye("getSelectedBlocksInitialCaretPosition"),jt=Ye("getMultiSelectedBlockClientIds"),yt=Ye("getMultiSelectedBlocks"),_t=Ye("getFirstMultiSelectedBlockClientId"),Pt=Ye("getLastMultiSelectedBlockClientId"),kt=Ye("isFirstMultiSelectedBlock"),St=Ye("isBlockMultiSelected"),Et=Ye("isAncestorMultiSelected"),wt=Ye("getMultiSelectedBlocksStartClientId"),Ct=Ye("getMultiSelectedBlocksEndClientId"),Tt=Ye("getBlockOrder"),xt=Ye("getBlockIndex"),Bt=Ye("isBlockSelected"),It=Ye("hasSelectedInnerBlock"),At=Ye("isBlockWithinSelection"),Rt=Ye("hasMultiSelection"),Dt=Ye("isMultiSelecting"),Nt=Ye("isSelectionEnabled"),Lt=Ye("getBlockMode"),Ut=Ye("isTyping"),Ft=Ye("isCaretWithinFormattedText"),Mt=Ye("getBlockInsertionPoint"),Vt=Ye("isBlockInsertionPointVisible"),zt=Ye("isValidTemplate"),Ht=Ye("getTemplate"),Wt=Ye("getTemplateLock"),Gt=Ye("canInsertBlockType"),Kt=Ye("getInserterItems"),qt=Ye("hasInserterItems"),Qt=Ye("getBlockListSettings"),$t=n(14),Yt=n(17),Xt=n(20),Jt=n.n(Xt),Zt=n(1);function en(e){var t=e.previousPost,n=e.post,r=e.postType;if(Object(v.get)(e.options,["isAutosave"]))return[];var o,i=["publish","private","future"],c=Object(v.includes)(i,t.status),s=Object(v.includes)(i,n.status),a=Object(v.get)(r,["viewable"],!1);if(c||s?c&&!s?(o=r.labels.item_reverted_to_draft,a=!1):o=!c&&s?{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 a&&u.push({label:r.labels.view_item,url:n.link}),[o,{id:"SAVE_POST_NOTICE_ID",type:"snackbar",actions:u}]}return[]}function tn(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(Zt.__)("Publishing failed."),private:Object(Zt.__)("Publishing failed."),future:Object(Zt.__)("Scheduling failed.")},s=i||-1===o.indexOf(n.status)?Object(Zt.__)("Updating failed."):c[n.status];return r.message&&!/<\/?[^>]*>/.test(r.message)&&(s=[s,r.message].join(" ")),[s,{id:"SAVE_POST_NOTICE_ID"}]}function nn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nn(Object(n),!0).forEach((function(t){Object(d.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var on=Jt.a.mark(hn),cn=Jt.a.mark(On),sn=Jt.a.mark(Pn),an=Jt.a.mark(Sn),un=Jt.a.mark(En),ln=Jt.a.mark(wn),dn=Jt.a.mark(Cn),pn=Jt.a.mark(Tn),bn=Jt.a.mark(xn),fn=Jt.a.mark(Fn);function hn(e,t,n){var r,o;return Jt.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return r=Object(v.has)(t,["content"])?t.content:e.content.raw,o=Object(c.parse)(r),"auto-draft"===e.status&&n&&(o=Object(c.synchronizeBlocksWithTemplate)(o,n)),i.next=6,vn(e);case 6:return i.next=8,{type:"SETUP_EDITOR",post:e,edits:t,template:n};case 8:return i.next=10,Fn(o,{__unstableShouldCreateUndoLevel:!1});case 10:return i.next=12,_n(e);case 12:if(!t||!Object.keys(t).some((function(n){return t[n]!==(Object(v.has)(e,[n,"raw"])?e[n].raw:e[n])}))){i.next=15;break}return i.next=15,Pn(t);case 15:case"end":return i.stop()}}),on)}function mn(){return{type:"TEAR_DOWN_EDITOR"}}function vn(e){return{type:"RESET_POST",post:e}}function On(e){var t;return Jt.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return x()("resetAutosave action (`core/editor` store)",{alternative:"receiveAutosaves action (`core` store)",plugin:"Gutenberg"}),n.next=3,Object(b.select)(A,"getCurrentPostId");case 3:return t=n.sent,n.next=6,Object(b.dispatch)("core","receiveAutosaves",t,e);case 6:return n.abrupt("return",{type:"__INERT__"});case 7:case"end":return n.stop()}}),cn)}function gn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:"REQUEST_POST_UPDATE_START",options:e}}function jn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:"REQUEST_POST_UPDATE_FINISH",options:e}}function yn(e){return{type:"UPDATE_POST",edits:e}}function _n(e){return{type:"SETUP_EDITOR_STATE",post:e}}function Pn(e,t){var n,r,o;return Jt.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,Object(b.select)(A,"getCurrentPost");case 2:return n=i.sent,r=n.id,o=n.type,i.next=7,Object(b.dispatch)("core","editEntityRecord","postType",o,r,e,t);case 7:case"end":return i.stop()}}),sn)}function kn(e){return rn(rn({},yn(e)),{},{optimist:{id:"post-update"}})}function Sn(){var e,t,n,r,o,i,c,s=arguments;return Jt.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return e=s.length>0&&void 0!==s[0]?s[0]:{},a.next=3,Object(b.select)(A,"isEditedPostSaveable");case 3:if(a.sent){a.next=5;break}return a.abrupt("return");case 5:return a.next=7,Object(b.select)(A,"getEditedPostContent");case 7:if(a.t0=a.sent,t={content:a.t0},e.isAutosave){a.next=12;break}return a.next=12,Object(b.dispatch)(A,"editPost",t,{undoIgnore:!0});case 12:return a.next=14,gn(e);case 14:return a.next=16,Object(b.select)(A,"getCurrentPost");case 16:return n=a.sent,a.t1=rn,a.t2=rn,a.t3={id:n.id},a.next=22,Object(b.select)("core","getEntityRecordNonTransientEdits","postType",n.type,n.id);case 22:return a.t4=a.sent,a.t5=(0,a.t2)(a.t3,a.t4),a.t6=t,t=(0,a.t1)(a.t5,a.t6),a.next=28,Object(b.dispatch)("core","saveEntityRecord","postType",n.type,t,e);case 28:return a.next=30,jn(e);case 30:return a.next=32,Object(b.select)("core","getLastEntitySaveError","postType",n.type,n.id);case 32:if(!(r=a.sent)){a.next=40;break}if(!(o=tn({post:n,edits:t,error:r})).length){a.next=38;break}return a.next=38,b.dispatch.apply(void 0,["core/notices","createErrorNotice"].concat(Object(Yt.a)(o)));case 38:a.next=58;break;case 40:return a.next=42,Object(b.select)(A,"getCurrentPost");case 42:return i=a.sent,a.t7=en,a.t8=n,a.t9=i,a.next=48,Object(b.select)("core","getPostType",i.type);case 48:if(a.t10=a.sent,a.t11=e,a.t12={previousPost:a.t8,post:a.t9,postType:a.t10,options:a.t11},!(c=(0,a.t7)(a.t12)).length){a.next=55;break}return a.next=55,b.dispatch.apply(void 0,["core/notices","createSuccessNotice"].concat(Object(Yt.a)(c)));case 55:if(e.isAutosave){a.next=58;break}return a.next=58,Object(b.dispatch)("core/block-editor","__unstableMarkLastChangeAsPersistent");case 58:case"end":return a.stop()}}),an)}function En(){var e,t,n,r;return Jt.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,Object(b.select)(A,"getCurrentPost");case 2:return e=o.sent,o.next=5,Object(b.select)(A,"getCurrentPostType");case 5:return t=o.sent,o.next=8,Object(b.select)("core","getPostType",t);case 8:return n=o.sent,o.next=11,Object(b.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(b.dispatch)(A,"resetPost",r);case 14:case"end":return o.stop()}}),un)}function wn(){var e,t,n;return Jt.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Object(b.select)(A,"getCurrentPostType");case 2:return e=r.sent,r.next=5,Object(b.select)("core","getPostType",e);case 5:return t=r.sent,r.next=8,Object(b.dispatch)("core/notices","removeNotice","TRASH_POST_NOTICE_ID");case 8:return r.prev=8,r.next=11,Object(b.select)(A,"getCurrentPost");case 11:return n=r.sent,r.next=14,Object(b.apiFetch)({path:"/wp/v2/".concat(t.rest_base,"/").concat(n.id),method:"DELETE"});case 14:return r.next=16,Object(b.dispatch)(A,"savePost");case 16:r.next=22;break;case 18:return r.prev=18,r.t0=r.catch(8),r.next=22,b.dispatch.apply(void 0,["core/notices","createErrorNotice"].concat(Object(Yt.a)([(o={error:r.t0}).error.message&&"unknown_error"!==o.error.code?o.error.message:Object(Zt.__)("Trashing failed"),{id:"TRASH_POST_NOTICE_ID"}])));case 22:case"end":return r.stop()}var o}),ln,null,[[8,18]])}function Cn(){var e,t,n,r,o,i,c,s,a,u=arguments;return Jt.a.wrap((function(l){for(;;)switch(l.prev=l.next){case 0:if(e=u.length>0&&void 0!==u[0]?u[0]:{},t=e.local,n=void 0!==t&&t,r=Object($t.a)(e,["local"]),!n){l.next=21;break}return l.next=4,Object(b.select)(A,"getCurrentPost");case 4:return o=l.sent,l.next=7,Object(b.select)(A,"isEditedPostNew");case 7:return i=l.sent,l.next=10,Object(b.select)(A,"getEditedPostAttribute","title");case 10:return c=l.sent,l.next=13,Object(b.select)(A,"getEditedPostAttribute","content");case 13:return s=l.sent,l.next=16,Object(b.select)(A,"getEditedPostAttribute","excerpt");case 16:return a=l.sent,l.next=19,{type:"LOCAL_AUTOSAVE_SET",postId:o.id,isPostNew:i,title:c,content:s,excerpt:a};case 19:l.next=23;break;case 21:return l.next=23,Object(b.dispatch)(A,"savePost",rn({isAutosave:!0},r));case 23:case"end":return l.stop()}}),dn)}function Tn(){return Jt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(b.dispatch)("core","redo");case 2:case"end":return e.stop()}}),pn)}function xn(){return Jt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(b.dispatch)("core","undo");case 2:case"end":return e.stop()}}),bn)}function Bn(){return{type:"CREATE_UNDO_LEVEL"}}function In(e){return{type:"UPDATE_POST_LOCK",lock:e}}function An(){return{type:"ENABLE_PUBLISH_SIDEBAR"}}function Rn(){return{type:"DISABLE_PUBLISH_SIDEBAR"}}function Dn(e){return{type:"LOCK_POST_SAVING",lockName:e}}function Nn(e){return{type:"UNLOCK_POST_SAVING",lockName:e}}function Ln(e){return{type:"LOCK_POST_AUTOSAVING",lockName:e}}function Un(e){return{type:"UNLOCK_POST_AUTOSAVING",lockName:e}}function Fn(e){var t,n,r,o,i,c,s,a,u=arguments;return Jt.a.wrap((function(l){for(;;)switch(l.prev=l.next){case 0:if(t=u.length>1&&void 0!==u[1]?u[1]:{},n=t.__unstableShouldCreateUndoLevel,r=t.selectionStart,o=t.selectionEnd,i={blocks:e,selectionStart:r,selectionEnd:o},!1===n){l.next=19;break}return l.next=6,Object(b.select)(A,"getCurrentPost");case 6:return c=l.sent,s=c.id,a=c.type,l.next=11,Object(b.syncSelect)("core","getEditedEntityRecord","postType",a,s);case 11:if(l.t0=l.sent.blocks,l.t1=i.blocks,!(l.t0===l.t1)){l.next=18;break}return l.next=17,Object(b.dispatch)("core","__unstableCreateUndoLevel","postType",a,s);case 17:return l.abrupt("return",l.sent);case 18:i.content=function(e){var t=e.blocks;return F(void 0===t?[]:t)};case 19:return l.delegateYield(Pn(i),"t2",20);case 20:case"end":return l.stop()}}),fn)}function Mn(e){return{type:"UPDATE_EDITOR_SETTINGS",settings:e}}var Vn=function(e){return Jt.a.mark((function t(){var n,r,o,i=arguments;return Jt.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(x()("`wp.data.dispatch( 'core/editor' )."+e+"`",{alternative:"`wp.data.dispatch( 'core/block-editor' )."+e+"`"}),n=i.length,r=new Array(n),o=0;o<n;o++)r[o]=i[o];return t.next=4,b.dispatch.apply(void 0,["core/block-editor",e].concat(r));case 4:case"end":return t.stop()}}),t)}))},zn=Vn("resetBlocks"),Hn=Vn("receiveBlocks"),Wn=Vn("updateBlock"),Gn=Vn("updateBlockAttributes"),Kn=Vn("selectBlock"),qn=Vn("startMultiSelect"),Qn=Vn("stopMultiSelect"),$n=Vn("multiSelect"),Yn=Vn("clearSelectedBlock"),Xn=Vn("toggleSelection"),Jn=Vn("replaceBlocks"),Zn=Vn("replaceBlock"),er=Vn("moveBlocksDown"),tr=Vn("moveBlocksUp"),nr=Vn("moveBlockToPosition"),rr=Vn("insertBlock"),or=Vn("insertBlocks"),ir=Vn("showInsertionPoint"),cr=Vn("hideInsertionPoint"),sr=Vn("setTemplateValidity"),ar=Vn("synchronizeTemplate"),ur=Vn("mergeBlocks"),lr=Vn("removeBlocks"),dr=Vn("removeBlock"),pr=Vn("toggleBlockMode"),br=Vn("startTyping"),fr=Vn("stopTyping"),hr=Vn("enterFormattedText"),mr=Vn("exitFormattedText"),vr=Vn("insertDefaultBlock"),Or=Vn("updateBlockListSettings");function gr(e,t){return"wp-autosave-block-editor-post-".concat(t?"auto-draft":e)}function jr(e,t){window.sessionStorage.removeItem(gr(e,t))}var yr={LOCAL_AUTOSAVE_SET:function(e){!function(e,t,n,r,o){window.sessionStorage.setItem(gr(e,t),JSON.stringify({post_title:n,content:r,excerpt:o}))}(e.postId,e.isPostNew,e.title,e.content,e.excerpt)}};function _r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_r(Object(n),!0).forEach((function(t){Object(d.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var kr={reducer:S,selectors:r,actions:o,controls:Pr(Pr({},b.controls),yr)},Sr=(Object(p.registerStore)(A,Pr(Pr({},kr),{},{persist:["preferences"]})),n(8)),Er=n(10),wr=n(33);function Cr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Tr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cr(Object(n),!0).forEach((function(t){Object(d.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xr(e){var t=Object(v.mapValues)(Object(v.pickBy)(e.attributes,{source:"meta"}),"meta");return Object(v.isEmpty)(t)||(e.edit=function(e){return Object(Er.createHigherOrderComponent)((function(t){return function(n){var r=n.attributes,o=n.setAttributes,i=Object($t.a)(n,["attributes","setAttributes"]),c=Object(p.useSelect)((function(e){return e("core/editor").getCurrentPostType()}),[]),a=Object(s.useEntityProp)("postType",c,"meta"),u=Object(E.a)(a,2),l=u[0],d=u[1],b=Object(B.useMemo)((function(){return Tr(Tr({},r),Object(v.mapValues)(e,(function(e){return l[e]})))}),[r,l]);return Object(B.createElement)(t,Object(Sr.a)({attributes:b,setAttributes:function(t){var n=Object(v.mapKeys)(Object(v.pickBy)(t,(function(t,n){return e[n]})),(function(t,n){return e[n]}));Object(v.isEmpty)(n)||d(n),o(t)}},i))}}),"withMetaAttributeSource")}(t)(e.edit)),e}Object(wr.addFilter)("blocks.registerBlockType","core/editor/custom-sources-backwards-compatibility/shim-attribute-source",xr),Object(p.select)("core/blocks").getBlockTypes().map((function(e){var t=e.name;return Object(p.select)("core/blocks").getBlockType(t)})).forEach(xr);var Br=n(47),Ir=n.n(Br),Ar={name:"users",className:"editor-autocompleters__user",triggerPrefix:"@",options:function(e){var t="";return e&&(t="?search="+encodeURIComponent(e)),Ir()({path:"/wp/v2/users"+t})},isDebounced:!0,getOptionKeywords:function(e){return[e.slug,e.name]},getOptionLabel:function(e){return[e.avatar_urls&&e.avatar_urls[24]?Object(B.createElement)("img",{key:"avatar",className:"editor-autocompleters__user-avatar",alt:"",src:e.avatar_urls[24]}):Object(B.createElement)("span",{className:"editor-autocompleters__no-avatar"}),Object(B.createElement)("span",{key:"name",className:"editor-autocompleters__user-name"},e.name),Object(B.createElement)("span",{key:"slug",className:"editor-autocompleters__user-slug"},e.slug)]},getOptionCompletion:function(e){return"@".concat(e.slug)}};Object(wr.addFilter)("editor.Autocomplete.completers","editor/autocompleters/set-default-completers",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.push(Object(v.clone)(Ar)),e}));var Rr=n(21),Dr=n(22),Nr=n(23),Lr=n(24),Ur=n(19);function Fr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ur.a)(e);if(t){var o=Object(Ur.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Lr.a)(this,n)}}var Mr=function(e){Object(Nr.a)(n,e);var t=Fr(n);function n(e){var r;return Object(Rr.a)(this,n),(r=t.call(this,e)).needsAutosave=!(!e.isDirty||!e.isAutosaveable),r}return Object(Dr.a)(n,[{key:"componentDidMount",value:function(){this.props.disableIntervalChecks||this.setAutosaveTimer()}},{key:"componentDidUpdate",value:function(e){this.props.disableIntervalChecks&&this.props.editsReference!==e.editsReference?this.props.autosave():(this.props.isDirty||!e.isDirty)&&(!this.props.isAutosaving||e.isAutosaving)?this.props.editsReference!==e.editsReference&&(this.needsAutosave=!0):this.needsAutosave=!1}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timerId)}},{key:"setAutosaveTimer",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3*this.props.interval;this.timerId=setTimeout((function(){e.autosaveTimerHandler()}),t)}},{key:"autosaveTimerHandler",value:function(){this.props.isAutosaveable?(this.needsAutosave&&(this.needsAutosave=!1,this.props.autosave()),this.setAutosaveTimer()):this.setAutosaveTimer(1e3)}},{key:"render",value:function(){return null}}]),n}(B.Component),Vr=Object(Er.compose)([Object(p.withSelect)((function(e,t){var n=e("core").getReferenceByDistinctEdits,r=e("core/editor"),o=r.isEditedPostDirty,i=r.isEditedPostAutosaveable,c=r.isAutosavingPost,s=r.getEditorSettings,a=t.interval,u=void 0===a?s().autosaveInterval:a;return{editsReference:n(),isDirty:o(),isAutosaveable:i(),isAutosaving:c(),interval:u}})),Object(p.withDispatch)((function(e,t){return{autosave:function(){var n=t.autosave,r=void 0===n?e("core/editor").autosave:n;r()}}}))])(Mr),zr=n(9),Hr=n.n(zr),Wr=function(e){var t=e.children,n=e.isValid,r=e.level,o=e.href,i=e.onSelect;return Object(B.createElement)("li",{className:Hr()("document-outline__item","is-".concat(r.toLowerCase()),{"is-invalid":!n})},Object(B.createElement)("a",{href:o,className:"document-outline__button",onClick:i},Object(B.createElement)("span",{className:"document-outline__emdash","aria-hidden":"true"}),Object(B.createElement)("strong",{className:"document-outline__level"},r),Object(B.createElement)("span",{className:"document-outline__item-content"},t)))};function Gr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gr(Object(n),!0).forEach((function(t){Object(d.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var qr=Object(B.createElement)("em",null,Object(Zt.__)("(Empty heading)")),Qr=[Object(B.createElement)("br",{key:"incorrect-break"}),Object(B.createElement)("em",{key:"incorrect-message"},Object(Zt.__)("(Incorrect heading level)"))],$r=[Object(B.createElement)("br",{key:"incorrect-break-h1"}),Object(B.createElement)("em",{key:"incorrect-message-h1"},Object(Zt.__)("(Your theme may already use a H1 for the post title)"))],Yr=[Object(B.createElement)("br",{key:"incorrect-break-multiple-h1"}),Object(B.createElement)("em",{key:"incorrect-message-multiple-h1"},Object(Zt.__)("(Multiple H1 headings are not recommended)"))],Xr=function(e){return!e.attributes.content||0===e.attributes.content.length},Jr=Object(Er.compose)(Object(p.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(v.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,s=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Object(v.flatMap)(t,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"core/heading"===t.name?Kr(Kr({},t),{},{level:t.attributes.level,isEmpty:Xr(t)}):e(t.innerBlocks)}))}(n);if(s.length<1)return null;var a=1,u=document.querySelector(".editor-post-title__input"),d=i&&r&&u,p=Object(v.countBy)(s,"level")[1]>1;return Object(B.createElement)("div",{className:"document-outline"},Object(B.createElement)("ul",null,d&&Object(B.createElement)(Wr,{level:Object(Zt.__)("Title"),isValid:!0,onSelect:o,href:"#".concat(u.id),isDisabled:c},r),s.map((function(e,t){var n=e.level>a+1,r=!(e.isEmpty||n||!e.level||1===e.level&&(p||d));return a=e.level,Object(B.createElement)(Wr,{key:t,level:"H".concat(e.level),isValid:r,isDisabled:c,href:"#block-".concat(e.clientId),onSelect:o},e.isEmpty?qr:Object(l.getTextContent)(Object(l.create)({html:e.attributes.content})),n&&Qr,1===e.level&&p&&Yr,d&&1===e.level&&!p&&$r)}))))}));var Zr=Object(p.withSelect)((function(e){return{blocks:e("core/block-editor").getBlocks()}}))((function(e){var t=e.blocks,n=e.children;return Object(v.filter)(t,(function(e){return"core/heading"===e.name})).length<1?null:n}));var eo=function(e){var t=e.resetBlocksOnSave,n=Object(p.useDispatch)("core/editor"),r=n.resetEditorBlocks,o=n.savePost,i=Object(p.useSelect)((function(e){var t=e("core/editor");return{isEditedPostDirty:t.isEditedPostDirty,getPostEdits:t.getPostEdits}}),[]),s=i.isEditedPostDirty,u=i.getPostEdits;return Object(a.useShortcut)("core/editor/save",(function(e){if(e.preventDefault(),s()){if(t){var n=u();if(n.content&&"string"==typeof n.content){var i=Object(c.parse)(n.content);r(i)}}o()}}),{bindGlobal:!0}),null};function to(){var e=Object(p.useDispatch)("core/editor"),t=e.redo,n=e.undo;return Object(a.useShortcut)("core/editor/undo",(function(e){n(),e.preventDefault()}),{bindGlobal:!0}),Object(a.useShortcut)("core/editor/redo",(function(e){t(),e.preventDefault()}),{bindGlobal:!0}),Object(B.createElement)(B.Fragment,null,Object(B.createElement)(i.BlockEditorKeyboardShortcuts,null),Object(B.createElement)(eo,null))}var no=to;function ro(){return x()("EditorGlobalKeyboardShortcuts",{alternative:"VisualEditorGlobalKeyboardShortcuts",plugin:"Gutenberg"}),Object(B.createElement)(to,null)}function oo(){return Object(B.createElement)(eo,{resetBlocksOnSave:!0})}var io=function(){var e=Object(p.useDispatch)("core/keyboard-shortcuts").registerShortcut;return Object(B.useEffect)((function(){e({name:"core/editor/save",category:"global",description:Object(Zt.__)("Save your changes."),keyCombination:{modifier:"primary",character:"s"}}),e({name:"core/editor/undo",category:"global",description:Object(Zt.__)("Undo your last changes."),keyCombination:{modifier:"primary",character:"z"}}),e({name:"core/editor/redo",category:"global",description:Object(Zt.__)("Redo your last undo."),keyCombination:{modifier:"primaryShift",character:"z"}})}),[e]),Object(B.createElement)(i.BlockEditorKeyboardShortcuts.Register,null)},co=n(3),so=n(18),ao=n(7),uo=Object(B.createElement)(ao.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(B.createElement)(ao.Path,{d:"M15.6 6.5l-1.1 1 2.9 3.3H8c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.3-.5h9.2L14.5 15l1.1 1.1 4.6-4.6-4.6-5z"}));var lo=Object(B.forwardRef)((function(e,t){var n=Object(p.useSelect)((function(e){return e("core/editor").hasEditorRedo()}),[]),r=Object(p.useDispatch)("core/editor").redo;return Object(B.createElement)(co.Button,Object(Sr.a)({},e,{ref:t,icon:uo,label:Object(Zt.__)("Redo"),shortcut:so.displayShortcut.primaryShift("z"),"aria-disabled":!n,onClick:n?r:void 0,className:"editor-history__redo"}))})),po=Object(B.createElement)(ao.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(B.createElement)(ao.Path,{d:"M18.3 11.7c-.6-.6-1.4-.9-2.3-.9H6.7l2.9-3.3-1.1-1-4.5 5L8.5 16l1-1-2.7-2.7H16c.5 0 .9.2 1.3.5 1 1 1 3.4 1 4.5v.3h1.5v-.2c0-1.5 0-4.3-1.5-5.7z"}));var bo=Object(B.forwardRef)((function(e,t){var n=Object(p.useSelect)((function(e){return e("core/editor").hasEditorUndo()}),[]),r=Object(p.useDispatch)("core/editor").undo;return Object(B.createElement)(co.Button,Object(Sr.a)({},e,{ref:t,icon:po,label:Object(Zt.__)("Undo"),shortcut:so.displayShortcut.primary("z"),"aria-disabled":!n,onClick:n?r:void 0,className:"editor-history__undo"}))}));var fo=Object(Er.compose)([Object(p.withSelect)((function(e){return{isValid:e("core/block-editor").isValidTemplate()}})),Object(p.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($t.a)(e,["isValid"]);return t?null:Object(B.createElement)(co.Notice,{className:"editor-template-validation-notice",isDismissible:!1,status:"warning",actions:[{label:Object(Zt.__)("Keep it as is"),onClick:n.resetTemplateValidity},{label:Object(Zt.__)("Reset the template"),onClick:function(){window.confirm(Object(Zt.__)("Resetting the template may result in loss of content, do you want to continue?"))&&n.synchronizeTemplate()},isPrimary:!0}]},Object(Zt.__)("The content of your post doesn’t match the template assigned to your post type."))}));var ho=Object(Er.compose)([Object(p.withSelect)((function(e){return{notices:e("core/notices").getNotices()}})),Object(p.withDispatch)((function(e){return{onRemove:e("core/notices").removeNotice}}))])((function(e){var t=e.notices,n=e.onRemove,r=Object(v.filter)(t,{isDismissible:!0,type:"default"}),o=Object(v.filter)(t,{isDismissible:!1,type:"default"}),i=Object(v.filter)(t,{type:"snackbar"});return Object(B.createElement)(B.Fragment,null,Object(B.createElement)(co.NoticeList,{notices:o,className:"components-editor-notices__pinned"}),Object(B.createElement)(co.NoticeList,{notices:r,className:"components-editor-notices__dismissible",onRemove:n},Object(B.createElement)(fo,null)),Object(B.createElement)(co.SnackbarList,{notices:i,className:"components-editor-notices__snackbar",onRemove:n}))})),mo=n(160),vo=n(318),Oo=Object(B.createElement)(ao.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(B.createElement)(ao.Path,{d:"M7 5.5h10a.5.5 0 01.5.5v12a.5.5 0 01-.5.5H7a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM17 4H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V6a2 2 0 00-2-2zm-1 3.75H8v1.5h8v-1.5zM8 11h8v1.5H8V11zm6 3.25H8v1.5h6v-1.5z"}));function go(e){var t=e.record,n=e.checked,r=e.onChange,o=e.closePanel,i=t.name,c=t.kind,s=t.title,a=t.key,u=Object(p.useSelect)((function(e){var t,n=e("core").getEditedEntityRecord(c,i,a).blocks,r=void 0===n?[]:n,o=e("core/block-editor").getBlockParents(null===(t=r[0])||void 0===t?void 0:t.clientId);return o[o.length-1]}),[]),l=Object(p.useSelect)((function(e){return e("core/block-editor").getSelectedBlockClientId()===u}),[u]),d=l?Object(Zt.__)("Selected"):Object(Zt.__)("Select"),b=Object(p.useDispatch)("core/block-editor").selectBlock,f=Object(B.useCallback)((function(){return b(u)}),[u]),h=Object(B.useCallback)((function(){b(u),o()}),[u]);return Object(B.createElement)(co.PanelRow,null,Object(B.createElement)(co.CheckboxControl,{label:Object(B.createElement)("strong",null,s||Object(Zt.__)("Untitled")),checked:n,onChange:r}),u?Object(B.createElement)(B.Fragment,null,Object(B.createElement)(co.Button,{onClick:f,className:"entities-saved-states__find-entity",disabled:l},d),Object(B.createElement)(co.Button,{onClick:h,className:"entities-saved-states__find-entity-small",disabled:l},d)):null)}var jo={site:vo.a,page:Oo};function yo(e){var t=e.list,n=e.unselectedEntities,r=e.setUnselectedEntities,o=e.closePanel,i=t[0],c=Object(p.useSelect)((function(e){return e("core").getEntity(i.kind,i.name)}),[i.kind,i.name]),s=i.name,a=jo[s];return Object(B.createElement)(co.PanelBody,{title:c.label,initialOpen:!0,icon:a},t.map((function(e){return Object(B.createElement)(go,{key:e.key||"site",record:e,checked:!Object(v.some)(n,(function(t){return t.kind===e.kind&&t.name===e.name&&t.key===e.key})),onChange:function(t){return r(e,t)},closePanel:o})})))}var _o={wp_template_part:function(e){return Object(Zt._n)("template part","template parts",e)},wp_template:function(e){return Object(Zt._n)("template","templates",e)},post:function(e){return Object(Zt._n)("post","posts",e)},page:function(e){return Object(Zt._n)("page","pages",e)},site:function(e){return Object(Zt._n)("site","sites",e)}},Po={0:Object(Zt.__)("There are no changes."),1:Object(Zt.__)("Changes have been made to your %s."),2:Object(Zt.__)("Changes have been made to your %1$s and %2$s."),3:Object(Zt.__)("Changes have been made to your %1$s, %2$s, and %3$s."),4:Object(Zt.__)("Changes have been made to your %1$s, %2$s, %3$s, and %4$s."),5:Object(Zt.__)("Changes have been made to your %1$s, %2$s, %3$s, %4$s, and %5$s.")};function ko(e){var t=e.isOpen,n=e.close,r=Object(p.useSelect)((function(e){return{dirtyEntityRecords:e("core").__experimentalGetDirtyEntityRecords()}}),[]).dirtyEntityRecords,o=Object(p.useDispatch)("core").saveEditedEntityRecord,i=Object.values(Object(v.groupBy)(r,"name")),c=[];i.forEach((function(e){_o[e[0].name]&&c.push(_o[e[0].name](e.length))}));var s=Po[c.length]||Object(Zt.__)("Changes have been made to multiple entity types."),a=Zt.sprintf.apply(void 0,[s].concat(c)),u=Object(B.useState)([]),l=Object(E.a)(u,2),d=l[0],b=l[1],f=function(e,t){var n=e.kind,r=e.name,o=e.key;b(t?d.filter((function(e){return e.kind!==n||e.name!==r||e.key!==o})):[].concat(Object(Yt.a)(d),[{kind:n,name:r,key:o}]))},h=Object(B.useState)(!1),m=Object(E.a)(h,2),O=m[0],g=m[1],j=Object(B.useCallback)((function(){return n()}),[n]);return t?Object(B.createElement)("div",{className:"entities-saved-states__panel"},Object(B.createElement)("div",{className:"entities-saved-states__panel-header"},Object(B.createElement)(co.Button,{isPrimary:!0,disabled:r.length-d.length==0,onClick:function(){var e=r.filter((function(e){var t=e.kind,n=e.name,r=e.key;return!Object(v.some)(d,(function(e){return e.kind===t&&e.name===n&&e.key===r}))}));n(e),e.forEach((function(e){var t=e.kind,n=e.name,r=e.key;o(t,n,r)}))},className:"editor-entities-saved-states__save-button"},Object(Zt.__)("Save")),Object(B.createElement)(co.Button,{onClick:j,icon:mo.a,label:Object(Zt.__)("Close panel")})),Object(B.createElement)("div",{className:"entities-saved-states__text-prompt"},Object(B.createElement)("strong",null,Object(Zt.__)("Are you ready to save?")),Object(B.createElement)("p",null,a),Object(B.createElement)("p",null,Object(B.createElement)(co.Button,{onClick:function(){return g((function(e){return!e}))},isLink:!0,className:"entities-saved-states__review-changes-button"},O?Object(Zt.__)("Hide changes."):Object(Zt.__)("Review changes.")))),O&&i.map((function(e){return Object(B.createElement)(yo,{key:e[0].name,list:e,closePanel:j,unselectedEntities:d,setUnselectedEntities:f})}))):null}var So=n(16);function Eo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ur.a)(e);if(t){var o=Object(Ur.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Lr.a)(this,n)}}var wo=function(e){Object(Nr.a)(n,e);var t=Eo(n);function n(){var e;return Object(Rr.a)(this,n),(e=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(Dr.a)(n,[{key:"componentDidCatch",value:function(e){this.setState({error:e})}},{key:"reboot",value:function(){this.props.onError()}},{key:"getContent",value:function(){try{return Object(p.select)("core/editor").getEditedPostContent()}catch(e){}}},{key:"render",value:function(){var e=this.state.error;return e?Object(B.createElement)(i.Warning,{className:"editor-error-boundary",actions:[Object(B.createElement)(co.Button,{key:"recovery",onClick:this.reboot,isSecondary:!0},Object(Zt.__)("Attempt Recovery")),Object(B.createElement)(co.ClipboardButton,{key:"copy-post",text:this.getContent,isSecondary:!0},Object(Zt.__)("Copy Post Text")),Object(B.createElement)(co.ClipboardButton,{key:"copy-error",text:e.stack,isSecondary:!0},Object(Zt.__)("Copy Error"))]},Object(Zt.__)("The editor has encountered an unexpected error.")):this.props.children}}]),n}(B.Component),Co=window.requestIdleCallback?window.requestIdleCallback:window.requestAnimationFrame,To=Object(v.once)((function(){try{return window.sessionStorage.setItem("__wpEditorTestSessionStorage",""),window.sessionStorage.removeItem("__wpEditorTestSessionStorage"),!0}catch(e){return!1}}));function xo(){var e=Object(p.useSelect)((function(e){return{postId:e("core/editor").getCurrentPostId(),isEditedPostNew:e("core/editor").isEditedPostNew(),getEditedPostAttribute:e("core/editor").getEditedPostAttribute,hasRemoteAutosave:!!e("core/editor").getEditorSettings().autosave}}),[]),t=e.postId,n=e.isEditedPostNew,r=e.getEditedPostAttribute,o=e.hasRemoteAutosave,i=Object(p.useDispatch)("core/notices"),s=i.createWarningNotice,a=i.removeNotice,u=Object(p.useDispatch)("core/editor"),l=u.editPost,d=u.resetEditorBlocks;Object(B.useEffect)((function(){var e=function(e,t){return window.sessionStorage.getItem(gr(e,t))}(t,n);if(e){try{e=JSON.parse(e)}catch(e){return}var i=e,u={title:i.post_title,content:i.content,excerpt:i.excerpt};if(Object.keys(u).some((function(e){return u[e]!==r(e)}))){if(!o){var p=Object(v.uniqueId)("wpEditorAutosaveRestore");s(Object(Zt.__)("The backup of this post in your browser is different from the version below."),{id:p,actions:[{label:Object(Zt.__)("Restore the backup"),onClick:function(){l(Object(v.omit)(u,["content"])),d(Object(c.parse)(u.content)),a(p)}}]})}}else jr(t,n)}}),[n,t])}var Bo=Object(Er.ifCondition)(To)((function(){var e=Object(p.useDispatch)("core/editor").autosave,t=Object(B.useCallback)((function(){Co((function(){return e({local:!0})}))}),[]);xo(),function(){var e=Object(p.useSelect)((function(e){return{postId:e("core/editor").getCurrentPostId(),isEditedPostNew:e("core/editor").isEditedPostNew(),isDirty:e("core/editor").isEditedPostDirty(),isAutosaving:e("core/editor").isAutosavingPost(),didError:e("core/editor").didPostSaveRequestFail()}}),[]),t=e.postId,n=e.isEditedPostNew,r=e.isDirty,o=e.isAutosaving,i=e.didError,c=Object(B.useRef)(r),s=Object(B.useRef)(o);Object(B.useEffect)((function(){!i&&(s.current&&!o||c.current&&!r)&&jr(t,n),c.current=r,s.current=o}),[r,o,i]);var a=Object(Er.usePrevious)(n),u=Object(Er.usePrevious)(t);Object(B.useEffect)((function(){u===t&&a&&!n&&jr(t,!0)}),[n,t])}();var n=Object(p.useSelect)((function(e){return{localAutosaveInterval:e("core/editor").getEditorSettings().__experimentalLocalAutosaveInterval}}),[]).localAutosaveInterval;return Object(B.createElement)(Vr,{interval:n,autosave:t})}));var Io=Object(p.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(v.get)(n,["supports","page-attributes"],!1)&&Object(v.isEmpty)(t)?null:r}));var Ao=Object(p.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(v.some)(Object(v.castArray)(r),(function(e){return!!t.supports[e]}))),o?n:null})),Ro=Object(Er.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(B.createElement)(co.TextControl,{className:"editor-page-attributes__order",type:"number",label:Object(Zt.__)("Order"),value:c,onChange:function(e){i({orderInput:e});var n=Number(e);Number.isInteger(n)&&""!==Object(v.invoke)(e,["trim"])&&t(Number(e))},size:6,onBlur:function(){i({orderInput:null})}})}));var Do=Object(Er.compose)([Object(p.withSelect)((function(e){return{order:e("core/editor").getEditedPostAttribute("menu_order")}})),Object(p.withDispatch)((function(e){return{onUpdateOrder:function(t){e("core/editor").editPost({menu_order:t})}}}))])((function(e){return Object(B.createElement)(Ao,{supportKeys:"page-attributes"},Object(B.createElement)(Ro,e))}));function No(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?No(Object(n),!0).forEach((function(t){Object(d.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):No(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Uo(e){var t=e.map((function(e){return Lo({children:[],parent:null},e)})),n=Object(v.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 Lo(Lo({},t),{},{children:r&&r.length?e(r):[]})}))}(n[0]||[])}function Fo(e){var t;return(null==e||null===(t=e.title)||void 0===t?void 0:t.rendered)?e.title.rendered:"#".concat(e.id," (").concat(Object(Zt.__)("no title"),")")}var Mo=function(){var e=Object(p.useDispatch)("core/editor").editPost,t=Object(B.useState)(!1),n=Object(E.a)(t,2),r=n[0],o=n[1],i=r,c=Object(p.useSelect)((function(e){var t=e("core"),n=t.getPostType,o=t.getEntityRecords,c=t.getEntityRecord,s=e("core/editor"),a=s.getCurrentPostId,u=s.getEditedPostAttribute,l=u("type"),d=u("parent"),p=n(l),b=a(),f=Object(v.get)(p,["hierarchical"],!1),h={per_page:100,exclude:b,parent_exclude:b,orderby:"menu_order",order:"asc",_fields:"id,title,parent"};return i&&(h.search=r),{parentPostId:d,parentPost:d?c("postType",l,d):null,items:f?o("postType",l,h):[],postType:p}}),[r]),s=c.parentPost,a=c.parentPostId,u=c.items,l=c.postType,d=Object(v.get)(l,["hierarchical"],!1),b=Object(v.get)(l,["labels","parent_item_colon"]),f=u||[],h=Object(B.useMemo)((function(){var e=f.map((function(e){return{id:e.id,parent:e.parent,name:Fo(e)}}));i||(e=Uo(e));var t=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object(v.flatMap)(t,(function(t){return[{value:t.id,label:Object(v.repeat)("— ",n)+Object(v.unescape)(t.name)}].concat(Object(Yt.a)(e(t.children||[],n+1)))}))}(e),n=Object(v.find)(t,(function(e){return e.value===a}));return s&&!n&&t.unshift({value:a,label:Fo(s)}),t}),[f]);return d&&b?Object(B.createElement)(co.ComboboxControl,{className:"editor-page-attributes__parent",label:b,value:a,options:h,onFilterValueChange:Object(v.debounce)((function(e){o(e)}),300),onChange:function(t){e({parent:t})}}):null};var Vo=Object(Er.compose)(Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=(0,t.getEditorSettings)().availableTemplates;return{selectedTemplate:n("template"),availableTemplates:r}})),Object(p.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(v.isEmpty)(t)?null:Object(B.createElement)(co.SelectControl,{label:Object(Zt.__)("Template:"),value:n,onChange:r,className:"editor-page-attributes__template",options:Object(v.map)(t,(function(e,t){return{value:t,label:e}}))})}));var zo=Object(Er.compose)([Object(p.withSelect)((function(e){var t=e("core/editor").getCurrentPost();return{hasAssignAuthorAction:Object(v.get)(t,["_links","wp:action-assign-author"],!1),postType:e("core/editor").getCurrentPostType(),authors:e("core").getUsers({who:"authors"})}})),Er.withInstanceId])((function(e){var t=e.hasAssignAuthorAction,n=e.authors,r=e.children;return!t||!n||n.length<2?null:Object(B.createElement)(Ao,{supportKeys:"author"},r)}));function Ho(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ho(Object(n),!0).forEach((function(t){Object(d.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ho(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Go=function(){var e=Object(B.useState)(),t=Object(E.a)(e,2),n=t[0],r=t[1],o=Object(p.useSelect)((function(e){var t=e("core"),r=t.getUser,o=t.getUsers,i=t.isResolving,c=e("core/editor").getEditedPostAttribute,s=r(c("author")),a=n&&""!==n?{search:n}:{};return{authorId:c("author"),postAuthor:s,authors:o(Wo({who:"authors"},a)),isLoading:i("core","getUsers",[{search:n,who:"authors"}])}}),[n]),i=o.authorId,c=o.isLoading,s=o.authors,a=o.postAuthor,u=Object(p.useDispatch)("core/editor").editPost,l=Object(B.useMemo)((function(){var e=(null!=s?s:[]).map((function(e){return{value:e.id,label:e.name}}));return e.findIndex((function(e){var t=e.value;return(null==a?void 0:a.id)===t}))<0&&a?[{value:a.id,label:a.name}].concat(Object(Yt.a)(e)):e}),[s,a]);return Object(B.useEffect)((function(){a&&r(a.name)}),[a]),a?Object(B.createElement)(zo,null,Object(B.createElement)(co.ComboboxControl,{label:Object(Zt.__)("Author"),options:l,value:i,onFilterValueChange:Object(v.debounce)((function(e){r(e)}),300),onChange:function(e){e&&u({author:e})},isLoading:c,allowReset:!1})):null};var Ko=Object(Er.compose)([Object(p.withSelect)((function(e){return{commentStatus:e("core/editor").getEditedPostAttribute("comment_status")}})),Object(p.withDispatch)((function(e){return{editPost:e("core/editor").editPost}}))])((function(e){var t=e.commentStatus,n=void 0===t?"open":t,r=Object($t.a)(e,["commentStatus"]);return Object(B.createElement)(co.CheckboxControl,{label:Object(Zt.__)("Allow comments"),checked:"open"===n,onChange:function(){return r.editPost({comment_status:"open"===n?"closed":"open"})}})}));var qo=Object(Er.compose)([Object(p.withSelect)((function(e){return{excerpt:e("core/editor").getEditedPostAttribute("excerpt")}})),Object(p.withDispatch)((function(e){return{onUpdateExcerpt:function(t){e("core/editor").editPost({excerpt:t})}}}))])((function(e){var t=e.excerpt,n=e.onUpdateExcerpt;return Object(B.createElement)("div",{className:"editor-post-excerpt"},Object(B.createElement)(co.TextareaControl,{label:Object(Zt.__)("Write an excerpt (optional)"),className:"editor-post-excerpt__textarea",onChange:function(e){return n(e)},value:t}),Object(B.createElement)(co.ExternalLink,{href:Object(Zt.__)("https://wordpress.org/support/article/excerpt/")},Object(Zt.__)("Learn more about manual excerpts")))}));var Qo=function(e){return Object(B.createElement)(Ao,Object(Sr.a)({},e,{supportKeys:"excerpt"}))};var $o=Object(p.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(v.some)(Object(v.castArray)(o),(function(e){var n=Object(v.get)(t,[e],!1);return"post-thumbnails"===e&&Object(v.isArray)(n)?Object(v.includes)(n,r):n}))?n:null}));var Yo=function(e){return Object(B.createElement)($o,{supportKeys:"post-thumbnails"},Object(B.createElement)(Ao,Object(Sr.a)({},e,{supportKeys:"thumbnail"})))},Xo=["image"],Jo=Object(Zt.__)("Featured image"),Zo=Object(Zt.__)("Set featured image"),ei=Object(Zt.__)("Remove image");var ti=Object(p.withSelect)((function(e){var t=e("core"),n=t.getMedia,r=t.getPostType,o=e("core/editor"),i=o.getCurrentPostId,c=o.getEditedPostAttribute,s=c("featured_media");return{media:s?n(s):null,currentPostId:i(),postType:r(c("type")),featuredImageId:s}})),ni=Object(p.withDispatch)((function(e,t,n){var r=t.noticeOperations,o=n.select,i=e("core/editor").editPost;return{onUpdateImage:function(e){i({featured_media:e.id})},onDropImage:function(e){o("core/block-editor").getSettings().mediaUpload({allowedTypes:["image"],filesList:e,onFileChange:function(e){var t=Object(E.a)(e,1)[0];i({featured_media:t.id})},onError:function(e){r.removeAllNotices(),r.createErrorNotice(e)}})},onRemoveImage:function(){i({featured_media:0})}}})),ri=Object(Er.compose)(co.withNotices,ti,ni,Object(co.withFilters)("editor.PostFeaturedImage"))((function(e){var t,n,r,o,c,s=e.currentPostId,a=e.featuredImageId,u=e.onUpdateImage,l=e.onDropImage,d=e.onRemoveImage,p=e.media,b=e.postType,f=e.noticeUI,h=Object(v.get)(b,["labels"],{}),m=Object(B.createElement)("p",null,Object(Zt.__)("To edit the featured image, you need permission to upload media."));if(p){var O=Object(wr.applyFilters)("editor.PostFeaturedImage.imageSize","post-thumbnail",p.id,s);if(Object(v.has)(p,["media_details","sizes",O]))r=p.media_details.sizes[O].width,o=p.media_details.sizes[O].height,c=p.media_details.sizes[O].source_url;else{var g=Object(wr.applyFilters)("editor.PostFeaturedImage.imageSize","thumbnail",p.id,s);Object(v.has)(p,["media_details","sizes",g])?(r=p.media_details.sizes[g].width,o=p.media_details.sizes[g].height,c=p.media_details.sizes[g].source_url):(r=p.media_details.width,o=p.media_details.height,c=p.source_url)}}return Object(B.createElement)(Yo,null,f,Object(B.createElement)("div",{className:"editor-post-featured-image"},p&&Object(B.createElement)("div",{id:"editor-post-featured-image-".concat(a,"-describedby"),className:"hidden"},p.alt_text&&Object(Zt.sprintf)(Object(Zt.__)("Current image: %s"),p.alt_text),!p.alt_text&&Object(Zt.sprintf)(Object(Zt.__)("The current image has no alternative text. The file name is: %s"),(null===(t=p.media_details.sizes)||void 0===t||null===(n=t.full)||void 0===n?void 0:n.file)||p.slug)),Object(B.createElement)(i.MediaUploadCheck,{fallback:m},Object(B.createElement)(i.MediaUpload,{title:h.featured_image||Jo,onSelect:u,unstableFeaturedImageFlow:!0,allowedTypes:Xo,modalClass:"editor-post-featured-image__media-modal",render:function(e){var t=e.open;return Object(B.createElement)("div",{className:"editor-post-featured-image__container"},Object(B.createElement)(co.Button,{className:a?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:t,"aria-label":a?Object(Zt.__)("Edit or update the image"):null,"aria-describedby":a?"editor-post-featured-image-".concat(a,"-describedby"):null},!!a&&p&&Object(B.createElement)(co.ResponsiveWrapper,{naturalWidth:r,naturalHeight:o,isInline:!0},Object(B.createElement)("img",{src:c,alt:""})),!!a&&!p&&Object(B.createElement)(co.Spinner,null),!a&&(h.set_featured_image||Zo)),Object(B.createElement)(co.DropZone,{onFilesDrop:l}))},value:a})),!!a&&p&&!p.isLoading&&Object(B.createElement)(i.MediaUploadCheck,null,Object(B.createElement)(i.MediaUpload,{title:h.featured_image||Jo,onSelect:u,unstableFeaturedImageFlow:!0,allowedTypes:Xo,modalClass:"editor-post-featured-image__media-modal",render:function(e){var t=e.open;return Object(B.createElement)(co.Button,{onClick:t,isSecondary:!0},Object(Zt.__)("Replace Image"))}})),!!a&&Object(B.createElement)(i.MediaUploadCheck,null,Object(B.createElement)(co.Button,{onClick:d,isLink:!0,isDestructive:!0},h.remove_featured_image||ei))))}));var oi=Object(p.withSelect)((function(e){return{disablePostFormats:e("core/editor").getEditorSettings().disablePostFormats}}))((function(e){var t=e.disablePostFormats,n=Object($t.a)(e,["disablePostFormats"]);return!t&&Object(B.createElement)(Ao,Object(Sr.a)({},n,{supportKeys:"post-formats"}))})),ii=[{id:"aside",caption:Object(Zt.__)("Aside")},{id:"gallery",caption:Object(Zt.__)("Gallery")},{id:"link",caption:Object(Zt.__)("Link")},{id:"image",caption:Object(Zt.__)("Image")},{id:"quote",caption:Object(Zt.__)("Quote")},{id:"standard",caption:Object(Zt.__)("Standard")},{id:"status",caption:Object(Zt.__)("Status")},{id:"video",caption:Object(Zt.__)("Video")},{id:"audio",caption:Object(Zt.__)("Audio")},{id:"chat",caption:Object(Zt.__)("Chat")}];function ci(){var e=Object(Er.useInstanceId)(ci),t="post-format-selector-".concat(e),n=Object(p.useSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getSuggestedPostFormat,o=n("format"),i=e("core").getThemeSupports();return{postFormat:null!=o?o:"standard",suggestedFormat:r(),supportedFormats:Object(v.union)([o],Object(v.get)(i,["formats"],[]))}}),[]),r=n.postFormat,o=n.suggestedFormat,i=n.supportedFormats,c=ii.filter((function(e){return Object(v.includes)(i,e.id)})),s=Object(v.find)(c,(function(e){return e.id===o})),a=Object(p.useDispatch)("core/editor").editPost,u=function(e){return a({format:e})};return Object(B.createElement)(oi,null,Object(B.createElement)("div",{className:"editor-post-format"},Object(B.createElement)("div",{className:"editor-post-format__content"},Object(B.createElement)("label",{htmlFor:t},Object(Zt.__)("Post Format")),Object(B.createElement)(co.SelectControl,{value:r,onChange:function(e){return u(e)},id:t,options:c.map((function(e){return{label:e.caption,value:e.id}}))})),s&&s.id!==r&&Object(B.createElement)("div",{className:"editor-post-format__suggestion"},Object(Zt.__)("Suggestion:")," ",Object(B.createElement)(co.Button,{isLink:!0,onClick:function(){return u(s.id)}},s.caption))))}var si=Object(B.createElement)(ao.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(B.createElement)(ao.Path,{d:"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"}));var ai=Object(p.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(B.createElement)(Ao,{supportKeys:"revisions"},r)}));var ui=Object(p.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(B.createElement)(ai,null,Object(B.createElement)(co.Button,{href:M("revision.php",{revision:t,gutenberg:!0}),className:"editor-post-last-revision__title",icon:si},Object(Zt.sprintf)(Object(Zt._n)("%d Revision","%d Revisions",n),n)))}));function li(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ur.a)(e);if(t){var o=Object(Ur.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Lr.a)(this,n)}}var di=function(e){Object(Nr.a)(n,e);var t=li(n);function n(){var e;return Object(Rr.a)(this,n),(e=t.apply(this,arguments)).buttonRef=Object(B.createRef)(),e.openPreviewWindow=e.openPreviewWindow.bind(Object(So.a)(e)),e}return Object(Dr.a)(n,[{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,this.buttonRef.current&&this.buttonRef.current.focus())}},{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(B.renderToString)(Object(B.createElement)("div",{className:"editor-post-preview-button__interstitial-message"},Object(B.createElement)(co.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 96 96"},Object(B.createElement)(co.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(B.createElement)(co.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(B.createElement)("p",null,Object(Zt.__)("Generating preview…")))),n+='\n\t\t<style>\n\t\t\tbody {\n\t\t\t\tmargin: 0;\n\t\t\t}\n\t\t\t.editor-post-preview-button__interstitial-message {\n\t\t\t\tdisplay: flex;\n\t\t\t\tflex-direction: column;\n\t\t\t\talign-items: center;\n\t\t\t\tjustify-content: center;\n\t\t\t\theight: 100vh;\n\t\t\t\twidth: 100vw;\n\t\t\t}\n\t\t\t@-webkit-keyframes paint {\n\t\t\t\t0% {\n\t\t\t\t\tstroke-dashoffset: 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t@-moz-keyframes paint {\n\t\t\t\t0% {\n\t\t\t\t\tstroke-dashoffset: 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t@-o-keyframes paint {\n\t\t\t\t0% {\n\t\t\t\t\tstroke-dashoffset: 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t@keyframes paint {\n\t\t\t\t0% {\n\t\t\t\t\tstroke-dashoffset: 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t.editor-post-preview-button__interstitial-message svg {\n\t\t\t\twidth: 192px;\n\t\t\t\theight: 192px;\n\t\t\t\tstroke: #555d66;\n\t\t\t\tstroke-width: 0.75;\n\t\t\t}\n\t\t\t.editor-post-preview-button__interstitial-message svg .outer,\n\t\t\t.editor-post-preview-button__interstitial-message svg .inner {\n\t\t\t\tstroke-dasharray: 280;\n\t\t\t\tstroke-dashoffset: 280;\n\t\t\t\t-webkit-animation: paint 1.5s ease infinite alternate;\n\t\t\t\t-moz-animation: paint 1.5s ease infinite alternate;\n\t\t\t\t-o-animation: paint 1.5s ease infinite alternate;\n\t\t\t\tanimation: paint 1.5s ease infinite alternate;\n\t\t\t}\n\t\t\tp {\n\t\t\t\ttext-align: center;\n\t\t\t\tfont-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;\n\t\t\t}\n\t\t</style>\n\t',n=Object(wr.applyFilters)("editor.PostPreview.interstitialMarkup",n),t.write(n),t.title=Object(Zt.__)("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=e.role,i=t||n,c=Hr()({"editor-post-preview":!this.props.className},this.props.className);return Object(B.createElement)(co.Button,{isTertiary:!this.props.className,className:c,href:i,target:this.getWindowTarget(),disabled:!r,onClick:this.openPreviewWindow,ref:this.buttonRef,role:o},this.props.textContent?this.props.textContent:Object(B.createElement)(B.Fragment,null,Object(Zt._x)("Preview","imperative verb"),Object(B.createElement)(co.VisuallyHidden,{as:"span"},Object(Zt.__)("(opens in a new tab)"))))}}]),n}(B.Component),pi=Object(Er.compose)([Object(p.withSelect)((function(e,t){var n=t.forcePreviewLink,r=t.forceIsAutosaveable,o=e("core/editor"),i=o.getCurrentPostId,c=o.getCurrentPostAttribute,s=o.getEditedPostAttribute,a=o.isEditedPostSaveable,u=o.isEditedPostAutosaveable,l=o.getEditedPostPreviewLink,d=e("core").getPostType,p=l(),b=d(s("type"));return{postId:i(),currentPostLink:c("link"),previewLink:void 0!==n?n:p,isSaveable:a(),isAutosaveable:r||u(),isViewable:Object(v.get)(b,["viewable"],!1),isDraft:-1!==["draft","auto-draft"].indexOf(s("status"))}})),Object(p.withDispatch)((function(e){return{autosave:e("core/editor").autosave,savePost:e("core/editor").savePost}})),Object(Er.ifCondition)((function(e){return e.isViewable}))])(di);function bi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ur.a)(e);if(t){var o=Object(Ur.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Lr.a)(this,n)}}var fi=function(e){Object(Nr.a)(n,e);var t=bi(n);function n(){var e;return Object(Rr.a)(this,n),(e=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(Dr.a)(n,[{key:"componentDidMount",value:function(){var e=this.getHookName();Object(wr.addAction)("heartbeat.send",e,this.sendPostLock),Object(wr.addAction)("heartbeat.tick",e,this.receivePostLock)}},{key:"componentWillUnmount",value:function(){var e=this.getHookName();Object(wr.removeAction)("heartbeat.send",e),Object(wr.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 s=t.name,a=t.avatar,u=Object(C.addQueryArgs)("post.php",{"get-post-lock":"1",lockKey:!0,post:n,action:"edit",_wpnonce:i.nonce}),l=M("edit.php",{post_type:Object(v.get)(c,["slug"])}),d=Object(Zt.__)("Exit the Editor");return Object(B.createElement)(co.Modal,{title:o?Object(Zt.__)("Someone else has taken over this post."):Object(Zt.__)("This post is already being edited."),focusOnMount:!0,shouldCloseOnClickOutside:!1,shouldCloseOnEsc:!1,isDismissible:!1,className:"editor-post-locked-modal"},!!a&&Object(B.createElement)("img",{src:a,alt:Object(Zt.__)("Avatar"),className:"editor-post-locked-modal__avatar"}),!!o&&Object(B.createElement)("div",null,Object(B.createElement)("div",null,s?Object(Zt.sprintf)(Object(Zt.__)("%s now has editing control of this post. Don’t worry, your changes up to this moment have been saved."),s):Object(Zt.__)("Another user now has editing control of this post. Don’t worry, your changes up to this moment have been saved.")),Object(B.createElement)("div",{className:"editor-post-locked-modal__buttons"},Object(B.createElement)(co.Button,{isPrimary:!0,href:l},d))),!o&&Object(B.createElement)("div",null,Object(B.createElement)("div",null,s?Object(Zt.sprintf)(Object(Zt.__)("%s is currently working on this post, which means you cannot make changes, unless you take over."),s):Object(Zt.__)("Another user is currently working on this post, which means you cannot make changes, unless you take over.")),Object(B.createElement)("div",{className:"editor-post-locked-modal__buttons"},Object(B.createElement)(co.Button,{isSecondary:!0,href:l},d),Object(B.createElement)(pi,null),Object(B.createElement)(co.Button,{isPrimary:!0,href:u},Object(Zt.__)("Take Over")))))}}]),n}(B.Component),hi=Object(Er.compose)(Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.isPostLocked,r=t.isPostLockTakeover,o=t.getPostLockUser,i=t.getCurrentPostId,c=t.getActivePostLock,s=t.getEditedPostAttribute,a=t.getEditorSettings,u=e("core").getPostType;return{isLocked:n(),isTakeover:r(),user:o(),postId:i(),postLockUtils:a().postLockUtils,activePostLock:c(),postType:u(s("type"))}})),Object(p.withDispatch)((function(e){var t=e("core/editor");return{autosave:t.autosave,updatePostLock:t.updatePostLock}})),Er.withInstanceId,Object(Er.withGlobalEvents)({beforeunload:"releasePostLock"}))(fi);var mi=Object(Er.compose)(Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.isCurrentPostPublished,r=t.getCurrentPostType,o=t.getCurrentPost;return{hasPublishAction:Object(v.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 vi=Object(Er.compose)(Object(p.withSelect)((function(e){return{status:e("core/editor").getEditedPostAttribute("status")}})),Object(p.withDispatch)((function(e){return{onUpdateStatus:function(t){e("core/editor").editPost({status:t})}}})))((function(e){var t=e.status,n=e.onUpdateStatus;return Object(B.createElement)(mi,null,Object(B.createElement)(co.CheckboxControl,{label:Object(Zt.__)("Pending review"),checked:"pending"===t,onChange:function(){n("pending"===t?"draft":"pending")}}))}));var Oi=Object(Er.compose)([Object(p.withSelect)((function(e){return{pingStatus:e("core/editor").getEditedPostAttribute("ping_status")}})),Object(p.withDispatch)((function(e){return{editPost:e("core/editor").editPost}}))])((function(e){var t=e.pingStatus,n=void 0===t?"open":t,r=Object($t.a)(e,["pingStatus"]);return Object(B.createElement)(co.CheckboxControl,{label:Object(Zt.__)("Allow pingbacks & trackbacks"),checked:"open"===n,onChange:function(){return r.editPost({ping_status:"open"===n?"closed":"open"})}})}));var gi=Object(Er.compose)([Object(p.withSelect)((function(e,t){var n=t.forceIsSaving,r=e("core/editor"),o=r.isCurrentPostPublished,i=r.isEditedPostBeingScheduled,c=r.isSavingPost,s=r.isPublishingPost,a=r.getCurrentPost,u=r.getCurrentPostType,l=r.isAutosavingPost;return{isPublished:o(),isBeingScheduled:i(),isSaving:n||c(),isPublishing:s(),hasPublishAction:Object(v.get)(a(),["_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,s=e.hasNonPostEntityChanges;return o?Object(Zt.__)("Publishing…"):t&&r&&!c?Object(Zt.__)("Updating…"):n&&r&&!c?Object(Zt.__)("Scheduling…"):i?t?s?Object(Zt.__)("Update…"):Object(Zt.__)("Update"):n?s?Object(Zt.__)("Schedule…"):Object(Zt.__)("Schedule"):Object(Zt.__)("Publish"):s?Object(Zt.__)("Submit for Review…"):Object(Zt.__)("Submit for Review")}));function ji(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ur.a)(e);if(t){var o=Object(Ur.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Lr.a)(this,n)}}var yi=function(e){Object(Nr.a)(n,e);var t=ji(n);function n(e){var r;return Object(Rr.a)(this,n),(r=t.call(this,e)).buttonNode=Object(B.createRef)(),r.createOnClick=r.createOnClick.bind(Object(So.a)(r)),r.closeEntitiesSavedStates=r.closeEntitiesSavedStates.bind(Object(So.a)(r)),r.state={entitiesSavedStatesCallback:!1},r}return Object(Dr.a)(n,[{key:"componentDidMount",value:function(){this.props.focusOnMount&&this.buttonNode.current.focus()}},{key:"createOnClick",value:function(e){var t=this;return function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];var i=t.props.hasNonPostEntityChanges;return i?(t.setState({entitiesSavedStatesCallback:function(){return e.apply(void 0,r)}}),t.props.setEntitiesSavedStatesCallback((function(){return t.closeEntitiesSavedStates})),v.noop):e.apply(void 0,r)}}},{key:"closeEntitiesSavedStates",value:function(e){var t=this.props,n=t.postType,r=t.postId,o=this.state.entitiesSavedStatesCallback;this.setState({entitiesSavedStatesCallback:!1},(function(){e&&Object(v.some)(e,(function(e){return"postType"===e.kind&&e.name===n&&e.key===r}))&&o()}))}},{key:"render",value:function(){var e,t=this.props,n=t.forceIsDirty,r=t.forceIsSaving,o=t.hasPublishAction,i=t.isBeingScheduled,c=t.isOpen,s=t.isPostSavingLocked,a=t.isPublishable,u=t.isPublished,l=t.isSaveable,d=t.isSaving,p=t.isToggle,b=t.onSave,f=t.onStatusChange,h=t.onSubmit,m=void 0===h?v.noop:h,O=t.onToggle,g=t.visibility,j=t.hasNonPostEntityChanges,y=d||r||!l||s||!a&&!n,_=u||d||r||!l||!a&&!n;e=o?"private"===g?"private":i?"future":"publish":"pending";var P={"aria-disabled":y&&!j,className:"editor-post-publish-button",isBusy:d&&u,isPrimary:!0,onClick:this.createOnClick((function(){y||(m(),f(e),b())}))},k={"aria-disabled":_&&!j,"aria-expanded":c,className:"editor-post-publish-panel__toggle",isBusy:d&&u,isPrimary:!0,onClick:this.createOnClick((function(){_||O()}))},S=i?Object(Zt.__)("Schedule…"):Object(Zt.__)("Publish"),E=Object(B.createElement)(gi,{forceIsSaving:r,hasNonPostEntityChanges:j}),w=p?k:P,C=p?S:E;return Object(B.createElement)(B.Fragment,null,Object(B.createElement)(co.Button,Object(Sr.a)({ref:this.buttonNode},w,{className:Hr()(w.className,"editor-post-publish-button__button",{"has-changes-dot":j})}),C))}}]),n}(B.Component),_i=Object(Er.compose)([Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.isSavingPost,r=t.isEditedPostBeingScheduled,o=t.getEditedPostVisibility,i=t.isCurrentPostPublished,c=t.isEditedPostSaveable,s=t.isEditedPostPublishable,a=t.isPostSavingLocked,u=t.getCurrentPost,l=t.getCurrentPostType,d=t.getCurrentPostId,p=t.hasNonPostEntityChanges;return{isSaving:n(),isBeingScheduled:r(),visibility:o(),isSaveable:c(),isPostSavingLocked:a(),isPublishable:s(),isPublished:i(),hasPublishAction:Object(v.get)(u(),["_links","wp:action-publish"],!1),postType:l(),postId:d(),hasNonPostEntityChanges:p()}})),Object(p.withDispatch)((function(e){var t=e("core/editor"),n=t.editPost;return{onStatusChange:function(e){return n({status:e},{undoIgnore:!0})},onSave:t.savePost}}))])(yi),Pi=n(159),ki=[{value:"public",label:Object(Zt.__)("Public"),info:Object(Zt.__)("Visible to everyone.")},{value:"private",label:Object(Zt.__)("Private"),info:Object(Zt.__)("Only visible to site admins and editors.")},{value:"password",label:Object(Zt.__)("Password Protected"),info:Object(Zt.__)("Protected with a password you choose. Only those with the password can view this post.")}];function Si(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ur.a)(e);if(t){var o=Object(Ur.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Lr.a)(this,n)}}var Ei=function(e){Object(Nr.a)(n,e);var t=Si(n);function n(e){var r;return Object(Rr.a)(this,n),(r=t.apply(this,arguments)).setPublic=r.setPublic.bind(Object(So.a)(r)),r.setPrivate=r.setPrivate.bind(Object(So.a)(r)),r.setPasswordProtected=r.setPasswordProtected.bind(Object(So.a)(r)),r.updatePassword=r.updatePassword.bind(Object(So.a)(r)),r.state={hasPassword:!!e.password},r}return Object(Dr.a)(n,[{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(Zt.__)("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(B.createElement)("fieldset",{key:"visibility-selector",className:"editor-post-visibility__dialog-fieldset"},Object(B.createElement)("legend",{className:"editor-post-visibility__dialog-legend"},Object(Zt.__)("Post Visibility")),ki.map((function(e){var t=e.value,n=e.label,i=e.info;return Object(B.createElement)("div",{key:t,className:"editor-post-visibility__choice"},Object(B.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(B.createElement)("label",{htmlFor:"editor-post-".concat(t,"-").concat(r),className:"editor-post-visibility__dialog-label"},n),Object(B.createElement)("p",{id:"editor-post-".concat(t,"-").concat(r,"-description"),className:"editor-post-visibility__dialog-info"},i))}))),this.state.hasPassword&&Object(B.createElement)("div",{className:"editor-post-visibility__dialog-password",key:"password-selector"},Object(B.createElement)(co.VisuallyHidden,{as:"label",htmlFor:"editor-post-visibility__dialog-password-input-".concat(r)},Object(Zt.__)("Create password")),Object(B.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(Zt.__)("Use a secure password")}))]}}]),n}(B.Component),wi=Object(Er.compose)([Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getEditedPostVisibility;return{status:n("status"),visibility:r(),password:n("password")}})),Object(p.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})}}})),Er.withInstanceId])(Ei);var Ci=Object(p.withSelect)((function(e){return{visibility:e("core/editor").getEditedPostVisibility()}}))((function(e){var t=e.visibility;return Object(v.find)(ki,{value:t}).label}));var Ti=Object(Er.compose)([Object(p.withSelect)((function(e){return{date:e("core/editor").getEditedPostAttribute("date")}})),Object(p.withDispatch)((function(e){return{onUpdateDate:function(t){e("core/editor").editPost({date:t})}}}))])((function(e){var t=e.date,n=e.onUpdateDate,r=Object(w.__experimentalGetSettings)(),o=/a(?!\\)/i.test(r.formats.time.toLowerCase().replace(/\\\\/g,"").split("").reverse().join(""));return Object(B.createElement)(co.DateTimePicker,{key:"date-time-picker",currentDate:t,onChange:function(e){n(e),document.activeElement.blur()},is12Hour:o})}));var xi=Object(p.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(w.__experimentalGetSettings)();return t&&!n?Object(w.format)("".concat(r.formats.date," ").concat(r.formats.time),t):Object(Zt.__)("Immediately")}));function Bi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ur.a)(e);if(t){var o=Object(Ur.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Lr.a)(this,n)}}function Ii(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ai(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ii(Object(n),!0).forEach((function(t){Object(d.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ii(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ri={per_page:20,orderby:"count",order:"desc",_fields:"id,name"},Di=function(e){return Object(v.unescape)(e.replace("'","'"))},Ni=function(e,t){return Di(e).toLowerCase()===Di(t).toLowerCase()},Li=function(e){return Ai(Ai({},e),{},{name:Di(e.name)})},Ui=function(e){return Object(v.map)(e,Li)},Fi=function(e){Object(Nr.a)(n,e);var t=Bi(n);function n(){var e;return Object(Rr.a)(this,n),(e=t.apply(this,arguments)).onChange=e.onChange.bind(Object(So.a)(e)),e.searchTerms=Object(v.throttle)(e.searchTerms.bind(Object(So.a)(e)),500),e.findOrCreateTerm=e.findOrCreateTerm.bind(Object(So.a)(e)),e.state={loading:!Object(v.isEmpty)(e.props.terms),availableTerms:[],selectedTerms:[]},e}return Object(Dr.a)(n,[{key:"componentDidMount",value:function(){var e=this;Object(v.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(v.invoke)(this.initRequest,["abort"]),Object(v.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=Ai(Ai({},Ri),t),o=Ir()({path:Object(C.addQueryArgs)("/wp/v2/".concat(n.rest_base),r)});return o.then(Ui).then((function(t){e.setState((function(e){return{availableTerms:e.availableTerms.concat(t.filter((function(t){return!Object(v.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(v.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(v.escape)(e);return Ir()({path:"/wp/v2/".concat(n.rest_base),method:"POST",data:{name:r}}).catch((function(o){return"term_exists"===o.code?(t.addRequest=Ir()({path:Object(C.addQueryArgs)("/wp/v2/".concat(n.rest_base),Ai(Ai({},Ri),{},{search:r}))}).then(Ui),t.addRequest.then((function(t){return Object(v.find)(t,(function(t){return Ni(t.name,e)}))}))):Promise.reject(o)})).then(Li)}},{key:"onChange",value:function(e){var t=this,n=Object(v.uniqBy)(e,(function(e){return e.toLowerCase()}));this.setState({selectedTerms:n});var r=n.filter((function(e){return!Object(v.find)(t.state.availableTerms,(function(t){return Ni(t.name,e)}))})),o=function(e,t){return e.map((function(e){return Object(v.find)(t,(function(t){return Ni(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(v.invoke)(this.searchRequest,["abort"]),e.length>=3&&(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,s=i.map((function(e){return e.name})),a=Object(v.get)(n,["labels","add_new_item"],"post_tag"===t?Object(Zt.__)("Add new tag"):Object(Zt.__)("Add new Term")),u=Object(v.get)(n,["labels","singular_name"],"post_tag"===t?Object(Zt.__)("Tag"):Object(Zt.__)("Term")),l=Object(Zt.sprintf)(Object(Zt._x)("%s added","term"),u),d=Object(Zt.sprintf)(Object(Zt._x)("%s removed","term"),u),p=Object(Zt.sprintf)(Object(Zt._x)("Remove %s","term"),u);return Object(B.createElement)(co.FormTokenField,{value:c,suggestions:s,onChange:this.onChange,onInputChange:this.searchTerms,maxSuggestions:20,disabled:o,label:a,messages:{added:l,removed:d,remove:p}})}}]),n}(B.Component),Mi=Object(Er.compose)(Object(p.withSelect)((function(e,t){var n=t.slug,r=e("core/editor").getCurrentPost,o=(0,e("core").getTaxonomy)(n);return{hasCreateAction:!!o&&Object(v.get)(r(),["_links","wp:action-create-"+o.rest_base],!1),hasAssignAction:!!o&&Object(v.get)(r(),["_links","wp:action-assign-"+o.rest_base],!1),terms:o?e("core/editor").getEditedPostAttribute(o.rest_base):[],taxonomy:o}})),Object(p.withDispatch)((function(e){return{onUpdateTerms:function(t,n){e("core/editor").editPost(Object(d.a)({},n,t))}}})),Object(co.withFilters)("editor.PostTaxonomyType"))(Fi);function Vi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ur.a)(e);if(t){var o=Object(Ur.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Lr.a)(this,n)}}var zi=function(){var e=[Object(Zt.__)("Suggestion:"),Object(B.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(Zt.__)("Add tags"))];return Object(B.createElement)(co.PanelBody,{initialOpen:!1,title:e},Object(B.createElement)("p",null,Object(Zt.__)("Tags help users and search engines navigate your site and find your content. Add a few keywords to describe your post.")),Object(B.createElement)(Mi,{slug:"post_tag"}))},Hi=function(e){Object(Nr.a)(n,e);var t=Vi(n);function n(e){var r;return Object(Rr.a)(this,n),(r=t.call(this,e)).state={hadTagsWhenOpeningThePanel:e.hasTags},r}return Object(Dr.a)(n,[{key:"render",value:function(){return this.state.hadTagsWhenOpeningThePanel?null:Object(B.createElement)(zi,null)}}]),n}(B.Component),Wi=Object(Er.compose)(Object(p.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(v.some)(n.types,(function(e){return e===t})),hasTags:r&&r.length}})),Object(Er.ifCondition)((function(e){var t=e.areTagsFetched;return e.isPostTypeSupported&&t})))(Hi),Gi=function(e,t){var n=ii.filter((function(t){return Object(v.includes)(e,t.id)}));return Object(v.find)(n,(function(e){return e.id===t}))},Ki=function(e){var t=e.suggestedPostFormat,n=e.suggestionText,r=e.onUpdatePostFormat;return Object(B.createElement)(co.Button,{isLink:!0,onClick:function(){return r(t)}},n)};function qi(){var e=Object(p.useSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getSuggestedPostFormat,o=Object(v.get)(e("core").getThemeSupports(),["formats"],[]);return{currentPostFormat:n("format"),suggestion:Gi(o,r())}}),[]),t=e.currentPostFormat,n=e.suggestion,r=Object(p.useDispatch)("core/editor").editPost,o=[Object(Zt.__)("Suggestion:"),Object(B.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(Zt.__)("Use a post format"))];return n&&n.id!==t?Object(B.createElement)(co.PanelBody,{initialOpen:!1,title:o},Object(B.createElement)("p",null,Object(Zt.__)("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(B.createElement)("p",null,Object(B.createElement)(Ki,{onUpdatePostFormat:function(e){return r({format:e})},suggestedPostFormat:n.id,suggestionText:Object(Zt.sprintf)(Object(Zt.__)('Apply the "%1$s" format.'),n.caption)}))):null}var Qi=Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPost,r=t.isEditedPostBeingScheduled;return{hasPublishAction:Object(v.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(Zt.__)("Are you ready to schedule?"),n=Object(Zt.__)("Your work will be published at the specified date and time.")):(t=Object(Zt.__)("Are you ready to publish?"),n=Object(Zt.__)("Double-check your settings before publishing.")):(t=Object(Zt.__)("Are you ready to submit for review?"),n=Object(Zt.__)("When you’re ready, submit your work for review, and an Editor will be able to approve it for you.")),Object(B.createElement)("div",{className:"editor-post-publish-panel__prepublish"},Object(B.createElement)("div",null,Object(B.createElement)("strong",null,t)),Object(B.createElement)("p",null,n),r&&Object(B.createElement)(B.Fragment,null,Object(B.createElement)(co.PanelBody,{initialOpen:!1,title:[Object(Zt.__)("Visibility:"),Object(B.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(B.createElement)(Ci,null))]},Object(B.createElement)(wi,null)),Object(B.createElement)(co.PanelBody,{initialOpen:!1,title:[Object(Zt.__)("Publish:"),Object(B.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(B.createElement)(xi,null))]},Object(B.createElement)(Ti,null))),Object(B.createElement)(qi,null),Object(B.createElement)(Wi,null),i)})),$i=n(69);function Yi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ur.a)(e);if(t){var o=Object(Ur.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Lr.a)(this,n)}}var Xi=function(e){Object(Nr.a)(n,e);var t=Yi(n);function n(){var e;return Object(Rr.a)(this,n),(e=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(B.createRef)(),e}return Object(Dr.a)(n,[{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(v.get)(o,["labels","singular_name"]),c=Object(v.get)(o,["labels","view_item"]),s="future"===r.status?function(e){var t=e.slug;return e.permalink_template.includes("%postname%")?e.permalink_template.replace("%postname%",t):e.permalink_template}(r):r.link,a=n?Object(B.createElement)(B.Fragment,null,Object(Zt.__)("is now scheduled. It will go live on")," ",Object(B.createElement)(xi,null),"."):Object(Zt.__)("is now live.");return Object(B.createElement)("div",{className:"post-publish-panel__postpublish"},Object(B.createElement)(co.PanelBody,{className:"post-publish-panel__postpublish-header"},Object(B.createElement)("a",{ref:this.postLink,href:s},Object($i.decodeEntities)(r.title)||Object(Zt.__)("(no title)"))," ",a),Object(B.createElement)(co.PanelBody,null,Object(B.createElement)("p",{className:"post-publish-panel__postpublish-subheader"},Object(B.createElement)("strong",null,Object(Zt.__)("What’s next?"))),Object(B.createElement)(co.TextControl,{className:"post-publish-panel__postpublish-post-address",readOnly:!0,label:Object(Zt.sprintf)(Object(Zt.__)("%s address"),i),value:Object(C.safeDecodeURIComponent)(s),onFocus:this.onSelectInput}),Object(B.createElement)("div",{className:"post-publish-panel__postpublish-buttons"},!n&&Object(B.createElement)(co.Button,{isSecondary:!0,href:s},c),Object(B.createElement)(co.ClipboardButton,{isSecondary:!0,text:s,onCopy:this.onCopy},this.state.showCopyConfirmation?Object(Zt.__)("Copied!"):Object(Zt.__)("Copy Link")))),t)}}]),n}(B.Component),Ji=Object(p.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()}}))(Xi);function Zi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ur.a)(e);if(t){var o=Object(Ur.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Lr.a)(this,n)}}var ec=function(e){Object(Nr.a)(n,e);var t=Zi(n);function n(){var e;return Object(Rr.a)(this,n),(e=t.apply(this,arguments)).onSubmit=e.onSubmit.bind(Object(So.a)(e)),e}return Object(Dr.a)(n,[{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,s=e.isSaving,a=e.onClose,u=e.onTogglePublishSidebar,l=e.PostPublishExtension,d=e.PrePublishExtension,p=Object($t.a)(e,["forceIsDirty","forceIsSaving","isBeingScheduled","isPublished","isPublishSidebarEnabled","isScheduled","isSaving","onClose","onTogglePublishSidebar","PostPublishExtension","PrePublishExtension"]),b=Object(v.omit)(p,["hasPublishAction","isDirty","isPostTypeViewable"]),f=o||c&&r,h=!f&&!s,m=f&&!s;return Object(B.createElement)("div",Object(Sr.a)({className:"editor-post-publish-panel"},b),Object(B.createElement)("div",{className:"editor-post-publish-panel__header"},m?Object(B.createElement)(co.Button,{onClick:a,icon:Pi.a,label:Object(Zt.__)("Close panel")}):Object(B.createElement)(B.Fragment,null,Object(B.createElement)("div",{className:"editor-post-publish-panel__header-publish-button"},Object(B.createElement)(_i,{focusOnMount:!0,onSubmit:this.onSubmit,forceIsDirty:t,forceIsSaving:n})),Object(B.createElement)("div",{className:"editor-post-publish-panel__header-cancel-button"},Object(B.createElement)(co.Button,{onClick:a,isSecondary:!0},Object(Zt.__)("Cancel"))))),Object(B.createElement)("div",{className:"editor-post-publish-panel__content"},h&&Object(B.createElement)(Qi,null,d&&Object(B.createElement)(d,null)),m&&Object(B.createElement)(Ji,{focusOnMount:!0},l&&Object(B.createElement)(l,null)),s&&Object(B.createElement)(co.Spinner,null)),Object(B.createElement)("div",{className:"editor-post-publish-panel__footer"},Object(B.createElement)(co.CheckboxControl,{label:Object(Zt.__)("Always show pre-publish checks."),checked:i,onChange:u})))}}]),n}(B.Component),tc=Object(Er.compose)([Object(p.withSelect)((function(e){var t=e("core").getPostType,n=e("core/editor"),r=n.getCurrentPost,o=n.getEditedPostAttribute,i=n.isCurrentPostPublished,c=n.isCurrentPostScheduled,s=n.isEditedPostBeingScheduled,a=n.isEditedPostDirty,u=n.isSavingPost,l=e("core/editor").isPublishSidebarEnabled,d=t(o("type"));return{hasPublishAction:Object(v.get)(r(),["_links","wp:action-publish"],!1),isPostTypeViewable:Object(v.get)(d,["viewable"],!1),isBeingScheduled:s(),isDirty:a(),isPublished:i(),isPublishSidebarEnabled:l(),isSaving:u(),isScheduled:c()}})),Object(p.withDispatch)((function(e,t){var n=t.isPublishSidebarEnabled,r=e("core/editor"),o=r.disablePublishSidebar,i=r.enablePublishSidebar;return{onTogglePublishSidebar:function(){n?o():i()}}})),co.withFocusReturn,co.withConstrainedTabbing])(ec),nc=n(141),rc=Object(B.createElement)(ao.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(B.createElement)(ao.Path,{d:"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"})),oc=n(161),ic=Object(B.createElement)(ao.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(B.createElement)(ao.Path,{d:"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"}));var cc=Object(Er.compose)([Object(p.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(p.withDispatch)((function(e){var t=e("core/editor"),n=t.editPost,r=t.savePost;return{onClick:function(){n({status:"draft"}),r()}}}))])((function(e){var t=e.isSaving,n=e.isPublished,r=e.isScheduled,o=e.onClick,i=Object(Er.useViewportMatch)("small","<");return n||r?Object(B.createElement)(co.Button,{className:"editor-post-switch-to-draft",onClick:function(){var e;n?e=Object(Zt.__)("Are you sure you want to unpublish this post?"):r&&(e=Object(Zt.__)("Are you sure you want to unschedule this post?")),window.confirm(e)&&o()},disabled:t,isTertiary:!0},i?Object(Zt.__)("Draft"):Object(Zt.__)("Switch to draft")):null}));function sc(e){var t=e.forceIsDirty,n=e.forceIsSaving,r=e.showIconLabels,o=void 0!==r&&r,i=Object(B.useState)(!1),c=Object(E.a)(i,2),s=c[0],a=c[1],u=Object(Er.useViewportMatch)("small"),l=Object(p.useSelect)((function(e){var r,o,i,c=e("core/editor"),s=c.isEditedPostNew,a=c.isCurrentPostPublished,u=c.isCurrentPostScheduled,l=c.isEditedPostDirty,d=c.isSavingPost,p=c.isEditedPostSaveable,b=c.getCurrentPost,f=c.isAutosavingPost,h=c.getEditedPostAttribute;return{isAutosaving:f(),isDirty:t||l(),isNew:s(),isPending:"pending"===h("status"),isPublished:a(),isSaving:n||d(),isSaveable:p(),isScheduled:u(),hasPublishAction:null!==(r=null===(o=b())||void 0===o||null===(i=o._links)||void 0===i?void 0:i["wp:action-publish"])&&void 0!==r&&r}}),[t,n]),d=l.isAutosaving,b=l.isDirty,f=l.isNew,h=l.isPending,m=l.isPublished,v=l.isSaveable,O=l.isSaving,g=l.isScheduled,j=l.hasPublishAction,y=Object(p.useDispatch)("core/editor").savePost,_=Object(Er.usePrevious)(O);if(Object(B.useEffect)((function(){var e;return _&&!O&&(a(!0),e=setTimeout((function(){a(!1)}),1e3)),function(){return clearTimeout(e)}}),[O]),O){var P=Hr()("editor-post-saved-state","is-saving",{"is-autosaving":d});return Object(B.createElement)(co.Animate,{type:"loading"},(function(e){var t=e.className;return Object(B.createElement)("span",{className:Hr()(P,t)},Object(B.createElement)(nc.a,{icon:rc}),d?Object(Zt.__)("Autosaving"):Object(Zt.__)("Saving"))}))}if(m||g)return Object(B.createElement)(cc,null);if(!v)return null;if(s||!f&&!b)return Object(B.createElement)("span",{className:"editor-post-saved-state is-saved"},Object(B.createElement)(nc.a,{icon:oc.a}),Object(Zt.__)("Saved"));if(!j&&h)return null;var k=h?Object(Zt.__)("Save as pending"):Object(Zt.__)("Save draft"),S=Object(Zt.__)("Save");return u?Object(B.createElement)(co.Button,{className:"editor-post-save-draft",onClick:function(){return y()},shortcut:so.displayShortcut.primary("s"),isTertiary:!0},k):Object(B.createElement)(co.Button,{className:"editor-post-save-draft",label:k,onClick:function(){return y()},shortcut:so.displayShortcut.primary("s"),icon:ic},o&&S)}var ac=Object(Er.compose)([Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPost,r=t.getCurrentPostType;return{hasPublishAction:Object(v.get)(n(),["_links","wp:action-publish"],!1),postType:r()}}))])((function(e){var t=e.hasPublishAction,n=e.children;return t?n:null}));function uc(e){var t=e.children;return Object(B.createElement)(Ao,{supportKeys:"slug"},t)}function lc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ur.a)(e);if(t){var o=Object(Ur.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Lr.a)(this,n)}}var dc=function(e){Object(Nr.a)(n,e);var t=lc(n);function n(e){var r,o=e.postSlug,i=e.postTitle,c=e.postID;return Object(Rr.a)(this,n),(r=t.apply(this,arguments)).state={editedSlug:Object(C.safeDecodeURIComponent)(o)||V(i)||c},r.setSlug=r.setSlug.bind(Object(So.a)(r)),r}return Object(Dr.a)(n,[{key:"setSlug",value:function(e){var t=this.props,n=t.postSlug,r=t.onUpdateSlug,o=V(e.target.value);o!==n&&r(o)}},{key:"render",value:function(){var e=this,t=this.props.instanceId,n=this.state.editedSlug,r="editor-post-slug-"+t;return Object(B.createElement)(uc,null,Object(B.createElement)("label",{htmlFor:r},Object(Zt.__)("Slug")),Object(B.createElement)("input",{type:"text",id:r,value:n,onChange:function(t){return e.setState({editedSlug:t.target.value})},onBlur:this.setSlug,className:"editor-post-slug__input"}))}}]),n}(B.Component),pc=Object(Er.compose)([Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPost,r=t.getEditedPostAttribute,o=n().id;return{postSlug:r("slug"),postTitle:r("title"),postID:o}})),Object(p.withDispatch)((function(e){var t=e("core/editor").editPost;return{onUpdateSlug:function(e){t({slug:e})}}})),Er.withInstanceId])(dc);var bc=Object(Er.compose)([Object(p.withSelect)((function(e){var t=e("core/editor").getCurrentPost();return{hasStickyAction:Object(v.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 fc=Object(Er.compose)([Object(p.withSelect)((function(e){return{postSticky:e("core/editor").getEditedPostAttribute("sticky")}})),Object(p.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(B.createElement)(bc,null,Object(B.createElement)(co.CheckboxControl,{label:Object(Zt.__)("Stick to the top of the blog"),checked:r,onChange:function(){return t(!r)}}))}));function hc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hc(Object(n),!0).forEach((function(t){Object(d.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ur.a)(e);if(t){var o=Object(Ur.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Lr.a)(this,n)}}var Oc={per_page:-1,orderby:"name",order:"asc",_fields:"id,name,parent"},gc=function(e){Object(Nr.a)(n,e);var t=vc(n);function n(){var e;return Object(Rr.a)(this,n),(e=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(Dr.a)(n,[{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(v.without)(o,e):[].concat(Object(Yt.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(v.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,s=this.state,a=s.formName,u=s.formParent,l=s.adding,d=s.availableTerms;if(""!==a&&!l){var p=this.findTerm(d,u,a);if(p)return Object(v.some)(i,(function(e){return e===p.id}))||r([].concat(Object(Yt.a)(i),[p.id]),o.rest_base),void this.setState({formName:"",formParent:""});this.setState({adding:!0}),this.addRequest=Ir()({path:"/wp/v2/".concat(o.rest_base),method:"POST",data:{name:a,parent:u||void 0}}),this.addRequest.catch((function(e){return"term_exists"===e.code?(t.addRequest=Ir()({path:Object(C.addQueryArgs)("/wp/v2/".concat(o.rest_base),mc(mc({},Oc),{},{parent:u||0,search:a}))}),t.addRequest.then((function(e){return t.findTerm(e,u,a)}))):Promise.reject(e)})).then((function(e){var n=!!Object(v.find)(t.state.availableTerms,(function(t){return t.id===e.id}))?t.state.availableTerms:[e].concat(Object(Yt.a)(t.state.availableTerms)),s=Object(Zt.sprintf)(Object(Zt._x)("%s added","term"),Object(v.get)(t.props.taxonomy,["labels","singular_name"],"category"===c?Object(Zt.__)("Category"):Object(Zt.__)("Term")));t.props.speak(s,"assertive"),t.addRequest=null,t.setState({adding:!1,formName:"",formParent:"",availableTerms:n,availableTermsTree:t.sortBySelected(Uo(n))}),r([].concat(Object(Yt.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(v.invoke)(this.fetchRequest,["abort"]),Object(v.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=Ir()({path:Object(C.addQueryArgs)("/wp/v2/".concat(t.rest_base),Oc)}),this.fetchRequest.then((function(t){var n=e.sortBySelected(Uo(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;r<t.length;r++)n++,void 0!==t[r].children&&(n+=e(t[r].children));return n}(r),i=Object(Zt.sprintf)(Object(Zt._n)("%d result found.","%d results found.",o),o);this.props.debouncedSpeak(i,"assertive")}},{key:"getFilterMatcher",value:function(e){return function t(n){if(""===e)return n;var r=mc({},n);return r.children.length>0&&(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(B.createElement)("div",{key:e.id,className:"editor-post-taxonomies__hierarchical-terms-choice"},Object(B.createElement)(co.CheckboxControl,{checked:-1!==r.indexOf(e.id),onChange:function(){var n=parseInt(e.id,10);t.onChange(n)},label:Object(v.unescape)(e.name)}),!!e.children.length&&Object(B.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,s=i.availableTerms,a=i.filteredTermsTree,u=i.formName,l=i.formParent,d=i.loading,p=i.showForm,b=i.filterValue,f=function(e,r,o){return Object(v.get)(n,["labels",e],"category"===t?r:o)},h=f("add_new_item",Object(Zt.__)("Add new category"),Object(Zt.__)("Add new term")),m=f("new_item_name",Object(Zt.__)("Add new category"),Object(Zt.__)("Add new term")),O=f("parent_item",Object(Zt.__)("Parent Category"),Object(Zt.__)("Parent Term")),g="— ".concat(O," —"),j=h,y="editor-post-taxonomies__hierarchical-terms-input-".concat(r),_="editor-post-taxonomies__hierarchical-terms-filter-".concat(r),P=Object(v.get)(this.props.taxonomy,["labels","search_items"],Object(Zt.__)("Search Terms")),k=Object(v.get)(this.props.taxonomy,["name"],Object(Zt.__)("Terms")),S=s.length>=8;return[S&&Object(B.createElement)("label",{key:"filter-label",htmlFor:_},P),S&&Object(B.createElement)("input",{type:"search",id:_,value:b,onChange:this.setFilterValue,className:"editor-post-taxonomies__hierarchical-terms-filter",key:"term-filter-input"}),Object(B.createElement)("div",{className:"editor-post-taxonomies__hierarchical-terms-list",key:"term-list",tabIndex:"0",role:"group","aria-label":k},this.renderTerms(""!==b?a:c)),!d&&o&&Object(B.createElement)(co.Button,{key:"term-add-button",onClick:this.onToggleForm,className:"editor-post-taxonomies__hierarchical-terms-add","aria-expanded":p,isLink:!0},h),p&&Object(B.createElement)("form",{onSubmit:this.onAddTerm,key:"hierarchical-terms-form"},Object(B.createElement)("label",{htmlFor:y,className:"editor-post-taxonomies__hierarchical-terms-label"},m),Object(B.createElement)("input",{type:"text",id:y,className:"editor-post-taxonomies__hierarchical-terms-input",value:u,onChange:this.onChangeFormName,required:!0}),!!s.length&&Object(B.createElement)(co.TreeSelect,{label:O,noOptionLabel:g,onChange:this.onChangeFormParent,selectedId:l,tree:c}),Object(B.createElement)(co.Button,{isSecondary:!0,type:"submit",className:"editor-post-taxonomies__hierarchical-terms-submit"},j))]}}]),n}(B.Component),jc=Object(Er.compose)([Object(p.withSelect)((function(e,t){var n=t.slug,r=e("core/editor").getCurrentPost,o=(0,e("core").getTaxonomy)(n);return{hasCreateAction:!!o&&Object(v.get)(r(),["_links","wp:action-create-"+o.rest_base],!1),hasAssignAction:!!o&&Object(v.get)(r(),["_links","wp:action-assign-"+o.rest_base],!1),terms:o?e("core/editor").getEditedPostAttribute(o.rest_base):[],taxonomy:o}})),Object(p.withDispatch)((function(e){return{onUpdateTerms:function(t,n){e("core/editor").editPost(Object(d.a)({},n,t))}}})),co.withSpokenMessages,Er.withInstanceId,Object(co.withFilters)("editor.PostTaxonomyType")])(gc);var yc=Object(Er.compose)([Object(p.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?v.identity:r,i=Object(v.filter)(n,(function(e){return Object(v.includes)(e.types,t)}));return Object(v.filter)(i,(function(e){return e.visibility.show_ui})).map((function(e){var t=e.hierarchical?jc:Mi;return Object(B.createElement)(B.Fragment,{key:"taxonomy-".concat(e.slug)},o(Object(B.createElement)(t,{slug:e.slug}),e))}))}));var _c=Object(Er.compose)([Object(p.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(v.some)(n,(function(e){return Object(v.includes)(e.types,t)}))?r:null})),Pc=n(100),kc=n.n(Pc);function Sc(){var e=Object(p.useSelect)((function(e){return e("core/editor").getEditedPostContent()}),[]),t=Object(p.useDispatch)("core/editor"),n=t.editPost,r=t.resetEditorBlocks,o=Object(B.useState)(e),i=Object(E.a)(o,2),s=i[0],a=i[1],u=Object(B.useState)(!1),l=Object(E.a)(u,2),d=l[0],b=l[1],f=Object(Er.useInstanceId)(Sc);d||s===e||a(e);return Object(B.createElement)(B.Fragment,null,Object(B.createElement)(co.VisuallyHidden,{as:"label",htmlFor:"post-content-".concat(f)},Object(Zt.__)("Type text or HTML")),Object(B.createElement)(kc.a,{autoComplete:"off",dir:"auto",value:s,onChange:function(e){var t=e.target.value;n({content:t}),a(t),b(!0)},onBlur:function(){if(d){var e=Object(c.parse)(s);r(e),b(!1)}},className:"editor-post-text-editor",id:"post-content-".concat(f),placeholder:Object(Zt.__)("Start writing with text or HTML")}))}function Ec(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ur.a)(e);if(t){var o=Object(Ur.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Lr.a)(this,n)}}var wc=/[\r\n]+/g,Cc=function(e){Object(Nr.a)(n,e);var t=Ec(n);function n(){var e;return Object(Rr.a)(this,n),(e=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.onPaste=e.onPaste.bind(Object(So.a)(e)),e.state={isSelected:!1},e}return Object(Dr.a)(n,[{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(wc," ");this.props.onUpdate(t)}},{key:"onKeyDown",value:function(e){e.keyCode===so.ENTER&&(e.preventDefault(),this.props.onEnterPress())}},{key:"onPaste",value:function(e){var t=this.props,n=t.title,r=t.onInsertBlockAfter,o=t.onUpdate,i=e.clipboardData,s="",a="";try{s=i.getData("text/plain"),a=i.getData("text/html")}catch(e){try{a=i.getData("Text")}catch(e){return}}window.console.log("Received HTML:\n\n",a),window.console.log("Received plain text:\n\n",s);var u=Object(c.pasteHandler)({HTML:a,plainText:s});if("string"!=typeof u&&u.length){e.preventDefault();var l=Object(E.a)(u,1)[0];n||"core/heading"!==l.name&&"core/paragraph"!==l.name?r(u):(o(l.attributes.content),r(u.slice(1)))}}},{key:"render",value:function(){var e=this.props,t=e.hasFixedToolbar,n=e.isCleanNewPost,r=e.isFocusMode,o=e.instanceId,i=e.placeholder,c=e.title,s=this.state.isSelected,a=Hr()("wp-block editor-post-title editor-post-title__block",{"is-selected":s,"is-focus-mode":r,"has-fixed-toolbar":t}),u=Object($i.decodeEntities)(i);return Object(B.createElement)(Ao,{supportKeys:"title"},Object(B.createElement)("div",{className:a},Object(B.createElement)(co.VisuallyHidden,{as:"label",htmlFor:"post-title-".concat(o)},u||Object(Zt.__)("Add title")),Object(B.createElement)(kc.a,{id:"post-title-".concat(o),className:"editor-post-title__input",value:c,onChange:this.onChange,placeholder:u||Object(Zt.__)("Add title"),onFocus:this.onSelect,onBlur:this.onUnselect,onKeyDown:this.onKeyDown,onKeyPress:this.onUnselect,onPaste:this.onPaste,autoFocus:(document.body===document.activeElement||!document.activeElement)&&n})))}}]),n}(B.Component),Tc=Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.isCleanNewPost,o=(0,e("core/block-editor").getSettings)(),i=o.titlePlaceholder,c=o.focusMode,s=o.hasFixedToolbar;return{isCleanNewPost:r(),title:n("title"),placeholder:i,isFocusMode:c,hasFixedToolbar:s}})),xc=Object(p.withDispatch)((function(e){var t=e("core/block-editor"),n=t.insertDefaultBlock,r=t.clearSelectedBlock,o=t.insertBlocks,i=e("core/editor").editPost;return{onEnterPress:function(){n(void 0,void 0,0)},onInsertBlockAfter:function(e){o(e,0)},onUpdate:function(e){i({title:e})},clearSelectedBlock:r}})),Bc=Object(Er.compose)(Tc,xc,Er.withInstanceId)(Cc);var Ic=Object(Er.compose)([Object(p.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(p.withDispatch)((function(e){return{trashPost:e("core/editor").trashPost}}))])((function(e){var t=e.isNew,n=e.postId,r=e.postType,o=Object($t.a)(e,["isNew","postId","postType"]);return t||!n?null:Object(B.createElement)(co.Button,{className:"editor-post-trash",isDestructive:!0,isTertiary:!0,onClick:function(){return o.trashPost(n,r)}},Object(Zt.__)("Move to trash"))}));var Ac=Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.isEditedPostNew,r=t.getCurrentPostId,o=t.getCurrentPostType,i=e("core"),c=i.getPostType,s=i.canUser,a=r(),u=c(o()),l=(null==u?void 0:u.rest_base)||"";return{isNew:n(),postId:a,canUserDelete:!(!a||!l)&&s("delete",l,a)}}))((function(e){var t=e.isNew,n=e.postId,r=e.canUserDelete,o=e.children;return!t&&n&&r?o:null}));var Rc=Object(Er.compose)([Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPost,r=t.getCurrentPostType;return{hasPublishAction:Object(v.get)(n(),["_links","wp:action-publish"],!1),postType:r()}}))])((function(e){var t=e.hasPublishAction;return(0,e.render)({canEdit:t})})),Dc=Object(B.createElement)(ao.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(B.createElement)(ao.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"})),Nc=n(128);function Lc(){var e=Object(p.useSelect)((function(e){return e("core/editor").getEditedPostAttribute("content")})),t=Object(Zt._x)("words","Word count type. Do not translate!");return Object(B.createElement)("span",{className:"word-count"},Object(Nc.count)(e,t))}function Uc(){var e=Object(p.useSelect)((function(e){return e("core/editor").getEditedPostAttribute("content")}));return Object(Nc.count)(e,"characters_including_spaces")}var Fc=function(e){var t=e.hasOutlineItemsDisabled,n=e.onRequestClose,r=Object(p.useSelect)((function(e){var t=e("core/block-editor").getGlobalBlockCount;return{headingCount:t("core/heading"),paragraphCount:t("core/paragraph"),numberOfBlocks:t()}}),[]),o=r.headingCount,i=r.paragraphCount,c=r.numberOfBlocks;return Object(B.createElement)(B.Fragment,null,Object(B.createElement)("div",{className:"table-of-contents__wrapper",role:"note","aria-label":Object(Zt.__)("Document Statistics"),tabIndex:"0"},Object(B.createElement)("ul",{role:"list",className:"table-of-contents__counts"},Object(B.createElement)("li",{className:"table-of-contents__count"},Object(Zt.__)("Characters"),Object(B.createElement)("span",{className:"table-of-contents__number"},Object(B.createElement)(Uc,null))),Object(B.createElement)("li",{className:"table-of-contents__count"},Object(Zt.__)("Words"),Object(B.createElement)(Lc,null)),Object(B.createElement)("li",{className:"table-of-contents__count"},Object(Zt.__)("Headings"),Object(B.createElement)("span",{className:"table-of-contents__number"},o)),Object(B.createElement)("li",{className:"table-of-contents__count"},Object(Zt.__)("Paragraphs"),Object(B.createElement)("span",{className:"table-of-contents__number"},i)),Object(B.createElement)("li",{className:"table-of-contents__count"},Object(Zt.__)("Blocks"),Object(B.createElement)("span",{className:"table-of-contents__number"},c)))),o>0&&Object(B.createElement)(B.Fragment,null,Object(B.createElement)("hr",null),Object(B.createElement)("h2",{className:"table-of-contents__title"},Object(Zt.__)("Document Outline")),Object(B.createElement)(Jr,{onSelect:n,hasOutlineItemsDisabled:t})))};var Mc=Object(B.forwardRef)((function(e,t){var n=e.hasOutlineItemsDisabled,r=e.repositionDropdown,o=Object($t.a)(e,["hasOutlineItemsDisabled","repositionDropdown"]),i=Object(p.useSelect)((function(e){return!!e("core/block-editor").getBlockCount()}),[]);return Object(B.createElement)(co.Dropdown,{position:r?"middle right right":"bottom",className:"table-of-contents",contentClassName:"table-of-contents__popover",renderToggle:function(e){var n=e.isOpen,r=e.onToggle;return Object(B.createElement)(co.Button,Object(Sr.a)({},o,{ref:t,onClick:i?r:void 0,icon:Dc,"aria-expanded":n,"aria-haspopup":"true",label:Object(Zt.__)("Details"),tooltipPosition:"bottom","aria-disabled":!i}))},renderContent:function(e){var t=e.onClose;return Object(B.createElement)(Fc,{onRequestClose:t,hasOutlineItemsDisabled:n})}})}));function Vc(){var e=Object(p.useSelect)((function(e){return function(){return(0,e("core").__experimentalGetDirtyEntityRecords)().length>0}}),[]),t=function(t){if(e())return t.returnValue=Object(Zt.__)("You have unsaved changes. If you proceed, they will be lost."),t.returnValue};return Object(B.useEffect)((function(){return window.addEventListener("beforeunload",t),function(){window.removeEventListener("beforeunload",t)}}),[]),null}var zc=n(45),Hc=Object(Er.createHigherOrderComponent)((function(e){return Object(p.withRegistry)((function(t){var n=t.useSubRegistry,r=void 0===n||n,o=t.registry,c=Object($t.a)(t,["useSubRegistry","registry"]);if(!r)return Object(B.createElement)(e,c);var s=Object(B.useState)(null),a=Object(E.a)(s,2),u=a[0],l=a[1];return Object(B.useEffect)((function(){var e=Object(p.createRegistry)({"core/block-editor":i.storeConfig},o);e.registerStore("core/editor",kr),l(e)}),[o]),u?Object(B.createElement)(p.RegistryProvider,{value:u},Object(B.createElement)(e,c)):null}))}),"withRegistryProvider"),Wc=n(156);function Gc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gc(Object(n),!0).forEach((function(t){Object(d.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qc(e){var t=e.additionalData,n=void 0===t?{}:t,r=e.allowedTypes,o=e.filesList,i=e.maxUploadFileSize,c=e.onError,s=void 0===c?v.noop:c,a=e.onFileChange,u=Object(p.select)("core/editor"),l=u.getCurrentPostId,d=u.getEditorSettings,b=d().allowedMimeTypes;i=i||d().maxUploadFileSize,Object(Wc.uploadMedia)({allowedTypes:r,filesList:o,onFileChange:a,additionalData:Kc({post:l()},n),maxUploadFileSize:i,onError:function(e){var t=e.message;return s(t)},wpAllowedMimeTypes:b})}var Qc=Object(Er.compose)([Object(p.withSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockRootClientId,r=t.getBlocksByClientId,o=t.canInsertBlockType,i=t.getSelectedBlockClientIds,c=e("core/blocks").getGroupingBlockName,s=i(),a=c(),u=o(a,s&&s.length>0?n(s[0]):void 0),l=r(s),d=1===l.length&&l[0]&&l[0].name===a;return{clientIds:s,isGroupable:u&&l.length&&!d,isUngroupable:d&&!!l[0].innerBlocks.length,blocksSelection:l,groupingBlockName:a}})),Object(p.withDispatch)((function(e,t){var n=t.clientIds,r=t.blocksSelection,o=void 0===r?[]:r,i=t.groupingBlockName,s=e("core/block-editor").replaceBlocks;return{onConvertToGroup:function(){var e=Object(c.switchToBlockType)(o,i);e&&s(n,e)},onConvertFromGroup:function(){var e=o[0].innerBlocks;e.length&&s(n,e)}}}))])((function(e){var t=e.onConvertToGroup,n=e.onConvertFromGroup,r=e.isGroupable,o=void 0!==r&&r,c=e.isUngroupable,s=void 0!==c&&c;return o||s?Object(B.createElement)(i.BlockSettingsMenuControls,null,(function(e){var r=e.onClose;return Object(B.createElement)(B.Fragment,null,o&&Object(B.createElement)(co.MenuItem,{onClick:function(){t(),r()}},Object(Zt._x)("Group","verb")),s&&Object(B.createElement)(co.MenuItem,{onClick:function(){n(),r()}},Object(Zt._x)("Ungroup","Ungrouping blocks from within a Group block back into individual blocks within the Editor ")))})):null}));function $c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$c(Object(n),!0).forEach((function(t){Object(d.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ur.a)(e);if(t){var o=Object(Ur.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Lr.a)(this,n)}}var Jc=function(){var e=Object(zc.a)(Jt.a.mark((function e(t){var n,r,o,i,c,s,a,u,l,d,p,b=arguments;return Jt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=b.length>1&&void 0!==b[1]?b[1]:{},r=n.isInitialSuggestions,o=n.type,i=n.subtype,c=n.page,s=n.perPage,a=b.length>2&&void 0!==b[2]?b[2]:{},u=a.disablePostFormats,l=void 0!==u&&u,d=s||r?3:20,p=[],o&&"post"!==o||p.push(Ir()({path:Object(C.addQueryArgs)("/wp/v2/search",{search:t,page:c,per_page:d,type:"post",subtype:i})}).catch((function(){return[]}))),o&&"term"!==o||p.push(Ir()({path:Object(C.addQueryArgs)("/wp/v2/search",{search:t,page:c,per_page:d,type:"term",subtype:i})}).catch((function(){return[]}))),l||o&&"post-format"!==o||p.push(Ir()({path:Object(C.addQueryArgs)("/wp/v2/search",{search:t,page:c,per_page:d,type:"post-format",subtype:i})}).catch((function(){return[]}))),e.abrupt("return",Promise.all(p).then((function(e){return Object(v.map)(Object(v.flatten)(e).filter((function(e){return!!e.id})).slice(0,d),(function(e){return{id:e.id,url:e.url,title:Object($i.decodeEntities)(e.title)||Object(Zt.__)("(no title)"),type:e.subtype||e.type}}))})));case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Zc=function(e){Object(Nr.a)(n,e);var t=Xc(n);function n(e){var r;return Object(Rr.a)(this,n),(r=t.apply(this,arguments)).getBlockEditorSettings=L()(r.getBlockEditorSettings,{maxSize:1}),r.getDefaultBlockContext=L()(r.getDefaultBlockContext,{maxSize:1}),e.recovery?Object(Lr.a)(r):(e.updatePostLock(e.settings.postLock),e.setupEditor(e.post,e.initialEdits,e.settings.template),e.settings.autosave&&e.createWarningNotice(Object(Zt.__)("There is an autosave of this post that is more recent than the version below."),{id:"autosave-exists",actions:[{label:Object(Zt.__)("View the autosave"),url:e.settings.autosave.editLink}]}),r)}return Object(Dr.a)(n,[{key:"getBlockEditorSettings",value:function(e,t,n,r,o,i){return Yc(Yc({},Object(v.pick)(e,["__experimentalBlockDirectory","__experimentalBlockPatterns","__experimentalBlockPatternCategories","__experimentalEnableFullSiteEditing","__experimentalEnableFullSiteEditingDemo","__experimentalFeatures","__experimentalGlobalStylesUserEntityId","__experimentalGlobalStylesBaseStyles","__experimentalGlobalStylesContexts","__experimentalPreferredStyleVariations","__experimentalSetIsInserterOpened","alignWide","allowedBlockTypes","availableLegacyWidgets","bodyPlaceholder","codeEditingEnabled","colors","disableCustomColors","disableCustomFontSizes","disableCustomGradients","enableCustomUnits","enableCustomLineHeight","focusMode","fontSizes","gradients","hasFixedToolbar","hasReducedUI","imageEditing","imageSizes","imageDimensions","isRTL","keepCaretInsideBlock","maxWidth","onUpdateDefaultBlockStyles","styles","template","templateLock","titlePlaceholder"])),{},{mediaUpload:n?qc:void 0,__experimentalReusableBlocks:t,__experimentalFetchLinkSuggestions:Object(v.partialRight)(Jc,e),__experimentalCanUserUseUnfilteredHTML:r,__experimentalUndo:o,__experimentalShouldInsertAtTheTop:i})}},{key:"getDefaultBlockContext",value:function(e,t){return{postId:e,postType:t}}},{key:"componentDidMount",value:function(){this.props.updateEditorSettings(this.props.settings)}},{key:"componentDidUpdate",value:function(e){this.props.settings!==e.settings&&this.props.updateEditorSettings(this.props.settings)}},{key:"componentWillUnmount",value:function(){this.props.tearDownEditor()}},{key:"render",value:function(){var e=this.props,t=e.canUserUseUnfilteredHTML,n=e.children,r=e.post,o=e.blocks,c=e.resetEditorBlocks,a=e.selectionStart,l=e.selectionEnd,d=e.isReady,p=e.settings,b=e.reusableBlocks,f=e.resetEditorBlocksWithoutUndoLevel,h=e.hasUploadPermissions,m=e.isPostTitleSelected,v=e.undo;if(!d)return null;var O=this.getBlockEditorSettings(p,b,h,t,v,m),g=this.getDefaultBlockContext(r.id,r.type);return Object(B.createElement)(B.Fragment,null,Object(B.createElement)(i.__unstableEditorStyles,{styles:p.styles}),Object(B.createElement)(s.EntityProvider,{kind:"root",type:"site"},Object(B.createElement)(s.EntityProvider,{kind:"postType",type:r.type,id:r.id},Object(B.createElement)(i.BlockContextProvider,{value:g},Object(B.createElement)(i.BlockEditorProvider,{value:o,onInput:f,onChange:c,selectionStart:a,selectionEnd:l,settings:O,useSubRegistry:!1},n,Object(B.createElement)(u.ReusableBlocksMenuItems,null),Object(B.createElement)(Qc,null))))))}}]),n}(B.Component),es=Object(Er.compose)([Hc,Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.canUserUseUnfilteredHTML,r=t.__unstableIsEditorReady,o=t.getEditorBlocks,i=t.getEditorSelectionStart,c=t.getEditorSelectionEnd,s=t.isPostTitleSelected,a=e("core").canUser;return{canUserUseUnfilteredHTML:n(),isReady:r(),blocks:o(),selectionStart:i(),selectionEnd:c(),reusableBlocks:e("core").getEntityRecords("postType","wp_block"),hasUploadPermissions:Object(v.defaultTo)(a("create","media"),!0),isPostTitleSelected:s&&s()}})),Object(p.withDispatch)((function(e){var t=e("core/editor"),n=t.setupEditor,r=t.updatePostLock,o=t.resetEditorBlocks,i=t.updateEditorSettings,c=t.__experimentalTearDownEditor,s=t.undo;return{setupEditor:n,updatePostLock:r,createWarningNotice:e("core/notices").createWarningNotice,resetEditorBlocks:o,updateEditorSettings:i,resetEditorBlocksWithoutUndoLevel:function(e,t){o(e,Yc(Yc({},t),{},{__unstableShouldCreateUndoLevel:!1}))},tearDownEditor:c,undo:s}}))])(Zc),ts=n(87),ns=n.n(ts);function rs(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=Object(B.forwardRef)((function(n,r){return x()("wp.editor."+e,{alternative:"wp.blockEditor."+e}),Object(B.createElement)(t,Object(Sr.a)({ref:r},n))}));return n.forEach((function(n){r[n]=rs(e+"."+n,t[n])})),r}function os(e,t){return function(){return x()("wp.editor."+e,{alternative:"wp.blockEditor."+e}),t.apply(void 0,arguments)}}var is=rs("RichText",i.RichText,["Content"]);is.isEmpty=os("RichText.isEmpty",i.RichText.isEmpty);var cs=rs("Autocomplete",i.Autocomplete),ss=rs("AlignmentToolbar",i.AlignmentToolbar),as=rs("BlockAlignmentToolbar",i.BlockAlignmentToolbar),us=rs("BlockControls",i.BlockControls,["Slot"]),ls=rs("BlockEdit",i.BlockEdit),ds=rs("BlockEditorKeyboardShortcuts",i.BlockEditorKeyboardShortcuts),ps=rs("BlockFormatControls",i.BlockFormatControls,["Slot"]),bs=rs("BlockIcon",i.BlockIcon),fs=rs("BlockInspector",i.BlockInspector),hs=rs("BlockList",i.BlockList),ms=rs("BlockMover",i.BlockMover),vs=rs("BlockNavigationDropdown",i.BlockNavigationDropdown),Os=rs("BlockSelectionClearer",i.BlockSelectionClearer),gs=rs("BlockSettingsMenu",i.BlockSettingsMenu),js=rs("BlockTitle",i.BlockTitle),ys=rs("BlockToolbar",i.BlockToolbar),_s=rs("ColorPalette",i.ColorPalette),Ps=rs("ContrastChecker",i.ContrastChecker),ks=rs("CopyHandler",i.CopyHandler),Ss=rs("DefaultBlockAppender",i.DefaultBlockAppender),Es=rs("FontSizePicker",i.FontSizePicker),ws=rs("Inserter",i.Inserter),Cs=rs("InnerBlocks",i.InnerBlocks,["ButtonBlockAppender","DefaultBlockAppender","Content"]),Ts=rs("InspectorAdvancedControls",i.InspectorAdvancedControls,["Slot"]),xs=rs("InspectorControls",i.InspectorControls,["Slot"]),Bs=rs("PanelColorSettings",i.PanelColorSettings),Is=rs("PlainText",i.PlainText),As=rs("RichTextShortcut",i.RichTextShortcut),Rs=rs("RichTextToolbarButton",i.RichTextToolbarButton),Ds=rs("__unstableRichTextInputEvent",i.__unstableRichTextInputEvent),Ns=rs("MediaPlaceholder",i.MediaPlaceholder),Ls=rs("MediaUpload",i.MediaUpload),Us=rs("MediaUploadCheck",i.MediaUploadCheck),Fs=rs("MultiSelectScrollIntoView",i.MultiSelectScrollIntoView),Ms=rs("NavigableToolbar",i.NavigableToolbar),Vs=rs("ObserveTyping",i.ObserveTyping),zs=rs("PreserveScrollInReorder",i.PreserveScrollInReorder),Hs=rs("SkipToSelectedBlock",i.SkipToSelectedBlock),Ws=rs("URLInput",i.URLInput),Gs=rs("URLInputButton",i.URLInputButton),Ks=rs("URLPopover",i.URLPopover),qs=rs("Warning",i.Warning),Qs=rs("WritingFlow",i.WritingFlow),$s=os("createCustomColorsHOC",i.createCustomColorsHOC),Ys=os("getColorClassName",i.getColorClassName),Xs=os("getColorObjectByAttributeValues",i.getColorObjectByAttributeValues),Js=os("getColorObjectByColorValue",i.getColorObjectByColorValue),Zs=os("getFontSize",i.getFontSize),ea=os("getFontSizeClass",i.getFontSizeClass),ta=os("withColorContext",i.withColorContext),na=os("withColors",i.withColors),ra=os("withFontSizes",i.withFontSizes)},47:function(e,t){!function(){e.exports=this.wp.apiFetch}()},5: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}))},53:function(e,t){!function(){e.exports=this.wp.keyboardShortcuts}()},6:function(e,t){!function(){e.exports=this.wp.blockEditor}()},60:function(e,t,n){e.exports=function(e,t){var n,r,o=0;function i(){var i,c,s=n,a=arguments.length;e:for(;s;){if(s.args.length===arguments.length){for(c=0;c<a;c++)if(s.args[c]!==arguments[c]){s=s.next;continue e}return s!==n&&(s===r&&(r=s.prev),s.prev.next=s.next,s.next&&(s.next.prev=s.prev),s.next=n,s.prev=null,n.prev=s,n=s),s.val}s=s.next}for(i=new Array(a),c=0;c<a;c++)i[c]=arguments[c];return s={args:i,val:e.apply(null,i)},n?(n.prev=s,s.next=n):r=s,o===t.maxSize?(r=r.prev).next=null:o++,n=s,s.val}return t=t||{},i.clear=function(){n=null,r=null,o=0},i}},69:function(e,t){!function(){e.exports=this.wp.htmlEntities}()},7:function(e,t){!function(){e.exports=this.wp.primitives}()},75:function(e,t){!function(){e.exports=this.wp.date}()},8:function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return r}))},83:function(e,t){!function(){e.exports=this.wp.coreData}()},87:function(e,t){!function(){e.exports=this.wp.serverSideRender}()},9:function(e,t,n){var r; /*! Copyright (c) 2017 Jed Watson. Licensed under the MIT License (MIT), see diff --git a/wp-includes/version.php b/wp-includes/version.php index 062ef029a9..7c8d9c7957 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.6-beta1-49323'; +$wp_version = '5.6-beta1-49324'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.