From f85fe2882a3d679ac584eb402021518012d101f7 Mon Sep 17 00:00:00 2001 From: ellatrix Date: Tue, 4 Aug 2020 13:43:40 +0000 Subject: [PATCH] Editor: update JS packages Fixes #50841. Built from https://develop.svn.wordpress.org/trunk@48719 git-svn-id: http://core.svn.wordpress.org/trunk@48481 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/assets/script-loader-packages.php | 2 +- .../css/dist/block-editor/style-rtl.css | 6 -- .../css/dist/block-editor/style-rtl.min.css | 2 +- wp-includes/css/dist/block-editor/style.css | 6 -- .../css/dist/block-editor/style.min.css | 2 +- wp-includes/js/dist/block-editor.js | 83 +++++++++++++------ wp-includes/js/dist/block-editor.min.js | 4 +- wp-includes/js/dist/components.js | 40 ++++----- wp-includes/js/dist/components.min.js | 2 +- wp-includes/js/dist/edit-post.js | 4 +- wp-includes/js/dist/edit-post.min.js | 2 +- wp-includes/js/dist/rich-text.js | 8 +- wp-includes/js/dist/rich-text.min.js | 2 +- wp-includes/version.php | 2 +- 14 files changed, 95 insertions(+), 70 deletions(-) diff --git a/wp-includes/assets/script-loader-packages.php b/wp-includes/assets/script-loader-packages.php index 1331c39256..cddcba4f94 100644 --- a/wp-includes/assets/script-loader-packages.php +++ b/wp-includes/assets/script-loader-packages.php @@ -1 +1 @@ - array('dependencies' => array('wp-dom-ready', 'wp-i18n', 'wp-polyfill'), 'version' => '4aeb6e4bc85cb57b9974ac8fbf56ee13'), 'annotations.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => 'b668c252546c4c525860a92fad4644fe'), 'api-fetch.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => 'fef640242e23ac53f3a5a4665438b7ff'), 'autop.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'e0774d50e3898deb6d52ca21042798ce'), 'blob.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'ba744a9be3487d6b0f4e97f198948de2'), 'block-directory.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-edit-post', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives'), 'version' => '1861b8c97b70296828af098c67fe96e2'), 'block-editor.js' => array('dependencies' => array('lodash', 'react', '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-wordcount'), 'version' => '657d6dfe1b5e1a00b61ef4f57b95d11a'), '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-escape-html', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport'), 'version' => '7e70b59546624a605427e477f7727c15'), 'block-serialization-default-parser.js' => array('dependencies' => array('wp-polyfill'), 'version' => '0043d905890011500907fda937ff4885'), 'blocks.js' => array('dependencies' => array('lodash', 'wp-autop', 'wp-blob', 'wp-block-serialization-default-parser', 'wp-compose', 'wp-data', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-primitives', 'wp-shortcode'), 'version' => '57bc3ea89f31699123b57b5e583f7b78'), 'components.js' => array('dependencies' => array('lodash', 'moment', 'react', 'wp-a11y', 'wp-compose', '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' => 'c2177451f26f4b546b9d8ca3c515214b'), 'compose.js' => array('dependencies' => array('lodash', 'react', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-priority-queue'), 'version' => 'a84423a149cc6f9980ded81cce0afae9'), 'core-data.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blocks', 'wp-data', 'wp-data-controls', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-url'), 'version' => '2be3bc26a53b86970c06c11068350ba0'), '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' => '2ea4d4115a74921d43f5ff9f84b0ee7e'), 'data-controls.js' => array('dependencies' => array('wp-api-fetch', 'wp-data', 'wp-polyfill'), 'version' => 'd5c4e833a03000872ac76bc3a59fa170'), 'date.js' => array('dependencies' => array('moment', 'wp-polyfill'), 'version' => 'c07eed7f1706ac6e00b9f7ef183a784d'), 'deprecated.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '2560458efc804c1b53a3fde1ecf7bc49'), 'dom.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '420064e923d3d44b1543cb94e0988abb'), 'dom-ready.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'b2040b158526225c1045cc5ba0412535'), '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-url', 'wp-viewport', 'wp-warning'), 'version' => '127f9db0f497cd7dd4880f6f7fe43496'), '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-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport', 'wp-wordcount'), 'version' => '08b48984853cf82f58c5c8ea3a500ee5'), 'element.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-escape-html', 'wp-polyfill'), 'version' => 'a021db2a069fca96700d0a1e4c83ce9d'), 'escape-html.js' => array('dependencies' => array('wp-polyfill'), 'version' => '666d00ff5e4fae5a68e39a212b795f3a'), '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' => '9acfc186155d419dad8913548c31dee4'), 'hooks.js' => array('dependencies' => array('wp-polyfill'), 'version' => '0a467c6be0a15df5ec9b7b263bfd257d'), 'html-entities.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'f7dd1a31f079d88c01e958118ad386d1'), 'i18n.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'f3a5d380deaddb9b487603d26ed84a97'), 'is-shallow-equal.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'b877fe0c3725ce40dbfbf97ce50358f5'), 'keyboard-shortcuts.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-keycodes', 'wp-polyfill'), 'version' => '3bc41929501b3b06427e358dcfa8ddf3'), 'keycodes.js' => array('dependencies' => array('lodash', 'wp-i18n', 'wp-polyfill'), 'version' => '47936c39150460bdbaed8849c68e674d'), 'list-reusable-blocks.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '1482293fa2961afde8ef836579d996a3'), 'media-utils.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blob', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'c1f984cdbd31f6a0ff8d428752f46289'), 'notices.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-polyfill'), 'version' => 'e17abd0f71c2a100a0e730fc2ffebb86'), 'nux.js' => array('dependencies' => array('lodash', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => '13000452b970f8cf9584ac1b0a220e01'), 'plugins.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-polyfill', 'wp-primitives'), 'version' => '7c728c08f3135f46109ce4637be2404d'), 'primitives.js' => array('dependencies' => array('wp-element', 'wp-polyfill'), 'version' => '5a7331cf651485a88d19fdc733c8650c'), 'priority-queue.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'd50d04b445baba8961f8306ffd322dd3'), 'redux-routine.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '6499267b18aa3f13e00f19990e2a4ca4'), 'rich-text.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-escape-html', 'wp-keycodes', 'wp-polyfill'), 'version' => 'e8401601fda864e0cc21218428d5653c'), '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' => 'd641059ed56b414dcc39aa506631efbb'), 'shortcode.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '9447c6a0b1836b5b73ed037205798064'), 'token-list.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '6396b0762dc57ec0a4c9376809f1709a'), 'url.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'e0135b8e470dfa641dbbe67a39918a4b'), 'viewport.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-element', 'wp-polyfill'), 'version' => 'fcde54af229b7999cb4a62c31a55724d'), 'warning.js' => array('dependencies' => array('wp-polyfill'), 'version' => '1ddb2d302c0d3f7070d45d3a5ee7082b'), 'wordcount.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'f93f1266a48d993b9ef2e89d1a8c58fb')); \ No newline at end of file + array('dependencies' => array('wp-dom-ready', 'wp-i18n', 'wp-polyfill'), 'version' => '4aeb6e4bc85cb57b9974ac8fbf56ee13'), 'annotations.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => 'b668c252546c4c525860a92fad4644fe'), 'api-fetch.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => 'fef640242e23ac53f3a5a4665438b7ff'), 'autop.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'e0774d50e3898deb6d52ca21042798ce'), 'blob.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'ba744a9be3487d6b0f4e97f198948de2'), 'block-directory.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-edit-post', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives'), 'version' => '1861b8c97b70296828af098c67fe96e2'), 'block-editor.js' => array('dependencies' => array('lodash', 'react', '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-wordcount'), 'version' => '17c802611f396afe6f9ef98e9e13c631'), '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-escape-html', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport'), 'version' => '7e70b59546624a605427e477f7727c15'), 'block-serialization-default-parser.js' => array('dependencies' => array('wp-polyfill'), 'version' => '0043d905890011500907fda937ff4885'), 'blocks.js' => array('dependencies' => array('lodash', 'wp-autop', 'wp-blob', 'wp-block-serialization-default-parser', 'wp-compose', 'wp-data', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-primitives', 'wp-shortcode'), 'version' => '57bc3ea89f31699123b57b5e583f7b78'), 'components.js' => array('dependencies' => array('lodash', 'moment', 'react', 'wp-a11y', 'wp-compose', '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' => '46d7bfc8d97c22204c99a04514a129ea'), 'compose.js' => array('dependencies' => array('lodash', 'react', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-priority-queue'), 'version' => 'a84423a149cc6f9980ded81cce0afae9'), 'core-data.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blocks', 'wp-data', 'wp-data-controls', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-url'), 'version' => '2be3bc26a53b86970c06c11068350ba0'), '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' => '2ea4d4115a74921d43f5ff9f84b0ee7e'), 'data-controls.js' => array('dependencies' => array('wp-api-fetch', 'wp-data', 'wp-polyfill'), 'version' => 'd5c4e833a03000872ac76bc3a59fa170'), 'date.js' => array('dependencies' => array('moment', 'wp-polyfill'), 'version' => 'c07eed7f1706ac6e00b9f7ef183a784d'), 'deprecated.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '2560458efc804c1b53a3fde1ecf7bc49'), 'dom.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '420064e923d3d44b1543cb94e0988abb'), 'dom-ready.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'b2040b158526225c1045cc5ba0412535'), '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-url', 'wp-viewport', 'wp-warning'), 'version' => 'bf0dd6904c389632d8d18fe495a593a9'), '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-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport', 'wp-wordcount'), 'version' => '08b48984853cf82f58c5c8ea3a500ee5'), 'element.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-escape-html', 'wp-polyfill'), 'version' => 'a021db2a069fca96700d0a1e4c83ce9d'), 'escape-html.js' => array('dependencies' => array('wp-polyfill'), 'version' => '666d00ff5e4fae5a68e39a212b795f3a'), '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' => '9acfc186155d419dad8913548c31dee4'), 'hooks.js' => array('dependencies' => array('wp-polyfill'), 'version' => '0a467c6be0a15df5ec9b7b263bfd257d'), 'html-entities.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'f7dd1a31f079d88c01e958118ad386d1'), 'i18n.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'f3a5d380deaddb9b487603d26ed84a97'), 'is-shallow-equal.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'b877fe0c3725ce40dbfbf97ce50358f5'), 'keyboard-shortcuts.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-keycodes', 'wp-polyfill'), 'version' => '3bc41929501b3b06427e358dcfa8ddf3'), 'keycodes.js' => array('dependencies' => array('lodash', 'wp-i18n', 'wp-polyfill'), 'version' => '47936c39150460bdbaed8849c68e674d'), 'list-reusable-blocks.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '1482293fa2961afde8ef836579d996a3'), 'media-utils.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blob', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'c1f984cdbd31f6a0ff8d428752f46289'), 'notices.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-polyfill'), 'version' => 'e17abd0f71c2a100a0e730fc2ffebb86'), 'nux.js' => array('dependencies' => array('lodash', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => '13000452b970f8cf9584ac1b0a220e01'), 'plugins.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-polyfill', 'wp-primitives'), 'version' => '7c728c08f3135f46109ce4637be2404d'), 'primitives.js' => array('dependencies' => array('wp-element', 'wp-polyfill'), 'version' => '5a7331cf651485a88d19fdc733c8650c'), 'priority-queue.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'd50d04b445baba8961f8306ffd322dd3'), 'redux-routine.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '6499267b18aa3f13e00f19990e2a4ca4'), 'rich-text.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-escape-html', 'wp-keycodes', 'wp-polyfill'), 'version' => 'b65f95f5577889b15d54a12dcd08f0eb'), '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' => 'd641059ed56b414dcc39aa506631efbb'), 'shortcode.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '9447c6a0b1836b5b73ed037205798064'), 'token-list.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '6396b0762dc57ec0a4c9376809f1709a'), 'url.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'e0135b8e470dfa641dbbe67a39918a4b'), 'viewport.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-element', 'wp-polyfill'), 'version' => 'fcde54af229b7999cb4a62c31a55724d'), 'warning.js' => array('dependencies' => array('wp-polyfill'), 'version' => '1ddb2d302c0d3f7070d45d3a5ee7082b'), 'wordcount.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'f93f1266a48d993b9ef2e89d1a8c58fb')); \ No newline at end of file diff --git a/wp-includes/css/dist/block-editor/style-rtl.css b/wp-includes/css/dist/block-editor/style-rtl.css index 31ebf928be..fa5fb3b139 100644 --- a/wp-includes/css/dist/block-editor/style-rtl.css +++ b/wp-includes/css/dist/block-editor/style-rtl.css @@ -501,10 +501,6 @@ .block-editor-block-contextual-toolbar .block-editor-block-mover .components-button.has-icon.block-editor-block-mover-button.block-editor-block-mover-button { min-width: 36px; width: 36px; } - [draggable="true"] .block-editor-block-contextual-toolbar .block-editor-block-mover .components-button.has-icon.block-editor-block-mover-button.block-editor-block-mover-button { - cursor: grab; } - [draggable="true"] .block-editor-block-contextual-toolbar .block-editor-block-mover .components-button.has-icon.block-editor-block-mover-button.block-editor-block-mover-button:active { - cursor: grabbing; } .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .components-button.has-icon.block-editor-block-mover-button.block-editor-block-mover-button { min-width: 24px; width: 24px; } @@ -2338,8 +2334,6 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before .block-editor-block-toolbar__block-switcher-wrapper { display: flex; } - .block-editor-block-toolbar__block-switcher-wrapper:not([draggable="false"]) * { - cursor: grab; } .block-editor-block-toolbar__block-switcher-wrapper .block-editor-block-switcher { display: block; } diff --git a/wp-includes/css/dist/block-editor/style-rtl.min.css b/wp-includes/css/dist/block-editor/style-rtl.min.css index d79ddbd7e8..b814aee25b 100644 --- a/wp-includes/css/dist/block-editor/style-rtl.min.css +++ b/wp-includes/css/dist/block-editor/style-rtl.min.css @@ -1 +1 @@ -@charset "UTF-8";:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87}#start-resizable-editor-section{display:none}.block-editor-autocompleters__block .block-editor-block-icon{margin-left:8px}.block-editor-block-alignment-matrix-toolbar__popover .components-popover__content{min-width:0;width:auto}.block-editor-block-alignment-matrix-toolbar__popover .components-popover__content>div{padding:8px}.block-editor-block-icon{display:flex;align-items:center;justify-content:center;width:24px;height:24px}.block-editor-block-icon.has-colors svg{fill:currentColor}.block-editor-block-icon svg{min-width:20px;min-height:20px;max-width:24px;max-height:24px}.block-editor-block-inspector .components-base-control{margin-bottom:24px}.block-editor-block-inspector .components-base-control:last-child{margin-bottom:8px}.block-editor-block-inspector .components-panel__body{border:none;border-top:1px solid #f0f0f0}.block-editor-block-inspector .block-editor-block-card{padding:16px}.block-editor-block-inspector__no-blocks{display:block;font-size:13px;background:#fff;padding:32px 16px;text-align:center}.block-editor-block-list__layout .block-editor-block-list__block .reusable-block-edit-panel *{z-index:1}.block-editor-block-styles .block-editor-block-list__block{margin:0}.block-editor-block-list__layout .block-editor-block-list__block{position:relative;overflow-wrap:break-word}.block-editor-block-list__layout .block-editor-block-list__block .components-placeholder .components-with-notices-ui{margin:-10px 0 12px}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui{margin:0 0 12px;width:100%}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice{margin-right:0;margin-left:0}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice .components-notice__content{font-size:13px}.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus{outline:none}.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus:after{position:absolute;z-index:1;pointer-events:none;content:"";top:1px;bottom:1px;right:1px;left:1px;box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);border-radius:1px}.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus:after{box-shadow:0 0 0 1.5px #fff}.block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected){opacity:.5;transition:opacity .1s linear}@media (prefers-reduced-motion:reduce){.block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected){transition-duration:0s}}.block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected).is-focused,.block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected):not(.is-focused) .block-editor-block-list__block{opacity:1}.block-editor-block-list__layout .block-editor-block-list__block,.block-editor-block-list__layout .block-list-appender{position:relative}.block-editor-block-list__layout .block-editor-block-list__block.is-drop-target:before,.block-editor-block-list__layout .block-list-appender.is-drop-target:before{content:"";position:absolute;z-index:0;pointer-events:none;transition:border-color .1s linear,border-style .1s linear,box-shadow .1s linear;top:-14px;left:0;right:0;border-top:4px solid #007cba;border-top:4px solid var(--wp-admin-theme-color)}.block-editor-block-list__layout .block-editor-block-list__block.is-drop-target.is-dropping-horizontally:before,.block-editor-block-list__layout .block-list-appender.is-drop-target.is-dropping-horizontally:before{top:0;bottom:0;right:-6px;border-top:none;border-right:4px solid #007cba;border-right:4px solid var(--wp-admin-theme-color)}.block-editor-block-list__layout{position:relative}.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:after{position:absolute;z-index:1;pointer-events:none;content:"";top:1px;bottom:1px;right:1px;left:1px}.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:after{box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);border-radius:1px;transition:box-shadow .2s ease-out;outline:2px solid transparent}@media (prefers-reduced-motion:reduce){.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:after{transition-duration:0s}}.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:after,.is-dark-theme .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered:after,.is-dark-theme .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:after{box-shadow:0 0 0 1.5px #fff}.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted .components-placeholder ::selection,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected .components-placeholder ::selection,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered .components-placeholder ::selection,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected .components-placeholder ::selection{background:transparent}.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered:not(.is-selected):after{box-shadow:0 0 0 1px #949494}.is-block-moving-mode .block-editor-block-list__layout .block-editor-block-list__block.has-child-selected{box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);outline:1.5px solid transparent}.is-block-moving-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:before{content:"";position:absolute;z-index:0;pointer-events:none;transition:border-color .1s linear,border-style .1s linear,box-shadow .1s linear;left:0;right:0;top:-14px;border-radius:2px;border-top:4px solid #ccc}.is-block-moving-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:after{content:none}.is-block-moving-mode.can-insert-moving-block .block-editor-block-list__layout .block-editor-block-list__block.is-selected:before{border-color:#007cba;border-color:var(--wp-admin-theme-color)}.is-block-moving-mode.block-editor-block-list__block-selection-button{opacity:0;font-size:1px;height:1px;padding:0}.block-editor-block-list__layout .block-editor-block-list__block.has-warning{min-height:36px}.block-editor-block-list__layout .block-editor-block-list__block:after{content:"";pointer-events:none;position:absolute;top:0;left:0;bottom:0;right:0;border-radius:2px;box-shadow:0 0 0 1.5px transparent;transition:box-shadow .1s ease-in}@media (prefers-reduced-motion:reduce){.block-editor-block-list__layout .block-editor-block-list__block:after{transition-duration:0s}}.block-editor-block-list__layout .block-editor-block-list__block.has-warning>*{pointer-events:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.block-editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-warning{pointer-events:all}.block-editor-block-list__layout .block-editor-block-list__block.has-warning:after{content:"";position:absolute;top:0;left:0;bottom:0;right:0;border-radius:2px;background-color:hsla(0,0%,100%,.4)}.block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-multi-selected:after{background-color:transparent}.block-editor-block-list__layout .block-editor-block-list__block.is-reusable>.block-editor-inner-blocks>.block-editor-block-list__layout.has-overlay:after{display:none}.block-editor-block-list__layout .block-editor-block-list__block.is-reusable>.block-editor-inner-blocks>.block-editor-block-list__layout.has-overlay .block-editor-block-list__layout.has-overlay:after{display:block}.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block{cursor:default}.block-editor-block-list__layout .block-editor-block-list__block[data-clear=true]{float:none}.block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__layout .block-editor-default-block-appender .block-editor-inserter{right:auto;left:8px}.block-editor-block-list__layout .wp-block{margin-right:auto;margin-left:auto}.wp-block[data-align=left],.wp-block[data-align=right]{width:100%;height:0}.wp-block[data-align=left]:before,.wp-block[data-align=right]:before{content:none}.wp-block[data-align=left]>*,.wp-block[data-align=right]>*{z-index:21}.wp-block[data-align=left]>*{float:left;margin-right:2em}.wp-block[data-align=right]>*{float:right;margin-left:2em}.wp-block[data-align=full],.wp-block[data-align=wide]{clear:both}.block-editor-block-list .block-editor-inserter{margin:8px;cursor:move;cursor:grab}.block-editor-block-list__insertion-point{position:relative;z-index:6;margin-top:-14px}.block-editor-block-list__insertion-point-indicator{position:absolute;top:calc(50% - 1px);height:1.5px;right:0;left:0;background:#007cba;background:var(--wp-admin-theme-color)}.block-editor-block-list__insertion-point-inserter{display:none;justify-content:center;cursor:text}@media (min-width:480px){.block-editor-block-list__insertion-point-inserter{display:flex}}.block-editor-block-list__insertion-point-inserter.is-inserter-hidden .block-editor-inserter__toggle{visibility:hidden;pointer-events:none}.block-editor-block-list__block-popover-inserter{position:absolute;top:-9999em;margin-bottom:14px}.block-editor-block-list__block-popover-inserter.is-visible{position:static}.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon,.block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon{background:#1e1e1e;border-radius:2px;color:#fff;padding:0;min-width:24px;height:24px}.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button.has-icon:hover,.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon:hover,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon:hover,.block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon:hover{color:#fff}.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button{animation:block-editor-inserter__toggle__fade-in-animation-delayed .3s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button{animation-duration:1ms}}@keyframes block-editor-inserter__toggle__fade-in-animation-delayed{0%{opacity:0}80%{opacity:0}to{opacity:1}}@keyframes block-editor-inserter__toggle__fade-in-animation{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}.wp-block .block-list-appender .block-editor-inserter__toggle{animation:block-editor-inserter__toggle__fade-in-animation .1s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.wp-block .block-list-appender .block-editor-inserter__toggle{animation-duration:1ms}}.block-editor-block-list__block:not(.is-selected):not(.has-child-selected) .block-editor-default-block-appender{display:none}.block-editor-block-list__block:not(.is-selected):not(.has-child-selected) .block-editor-default-block-appender .block-editor-inserter__toggle{opacity:0;transform:scale(0)}.block-editor-block-list__block>.block-editor-block-list__insertion-point{position:absolute;top:-16px;height:28px;bottom:auto;right:14px;left:14px}.block-editor-block-list__block .block-editor-block-list__block-html-textarea{display:block;margin:0;width:100%;border:none;outline:none;box-shadow:none;resize:none;overflow:hidden;font-family:Menlo,Consolas,monaco,monospace;font-size:15px;line-height:150%;transition:padding .2s linear}@media (prefers-reduced-motion:reduce){.block-editor-block-list__block .block-editor-block-list__block-html-textarea{transition-duration:0s}}.block-editor-block-list__block .block-editor-block-list__block-html-textarea:focus{box-shadow:none}.block-editor-block-contextual-toolbar{border:1px solid #1e1e1e;border-radius:2px;background-color:#fff}.block-editor-block-contextual-toolbar .block-editor-block-toolbar .components-toolbar,.block-editor-block-contextual-toolbar .block-editor-block-toolbar .components-toolbar-group,.block-editor-block-contextual-toolbar .block-editor-block-toolbar__mover-switcher-container{border-left-color:#1e1e1e}.block-editor-block-contextual-toolbar .block-editor-block-toolbar__mover-switcher-container{border-left-style:solid;border-left-width:1px}.block-editor-block-contextual-toolbar .block-editor-block-toolbar__block-switcher-wrapper .block-editor-block-switcher__no-switcher-icon:before,.block-editor-block-contextual-toolbar .block-editor-block-toolbar__block-switcher-wrapper .block-editor-block-switcher__toggle:before{width:28px}.block-editor-block-contextual-toolbar .block-editor-block-toolbar__block-switcher-wrapper .block-editor-block-icon svg{margin-right:10px}.block-editor-block-contextual-toolbar .block-editor-block-toolbar__block-switcher-wrapper .block-editor-block-switcher:last-child .block-editor-block-icon svg{margin-right:auto}.block-editor-block-contextual-toolbar .block-editor-block-toolbar__block-switcher-wrapper .components-toolbar,.block-editor-block-contextual-toolbar .block-editor-block-toolbar__block-switcher-wrapper .components-toolbar-group{border-left:none}.block-editor-block-contextual-toolbar .block-editor-block-mover{margin-right:-12px;width:36px}.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal{width:48px}.block-editor-block-contextual-toolbar .block-editor-block-mover .components-button.has-icon.block-editor-block-mover-button.block-editor-block-mover-button{min-width:36px;width:36px}[draggable=true] .block-editor-block-contextual-toolbar .block-editor-block-mover .components-button.has-icon.block-editor-block-mover-button.block-editor-block-mover-button{cursor:grab}[draggable=true] .block-editor-block-contextual-toolbar .block-editor-block-mover .components-button.has-icon.block-editor-block-mover-button.block-editor-block-mover-button:active{cursor:grabbing}.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .components-button.has-icon.block-editor-block-mover-button.block-editor-block-mover-button{min-width:24px;width:24px}.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button>svg{margin-right:2px}.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-up-button svg{margin-top:3px}.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-down-button svg{margin-bottom:3px}.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button:focus:before{right:0!important;min-width:0;width:28px}.block-editor-block-list__block-selection-button{display:block;z-index:22}.block-editor-block-list__block-selection-button .components-button{font-size:13px;height:46px;padding:12px 16px;position:relative;top:-1px;box-shadow:0 0 0 1px #1e1e1e;border-radius:1px;background-color:#fff}.block-editor-block-list__block-selection-button .components-button:focus{box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color)}.block-editor-block-list__block .block-editor-warning{z-index:5;position:relative}.block-editor-block-list__block .block-editor-warning.block-editor-block-list__block-crash-warning{margin-bottom:auto}.block-editor-block-list__insertion-point-popover.is-without-arrow{z-index:28;position:absolute}.block-editor-block-list__insertion-point-popover.is-without-arrow .components-popover__content.components-popover__content{background:none;border:none;box-shadow:none;overflow-y:visible;margin-right:0}.components-popover.block-editor-block-list__block-popover{z-index:31;position:absolute}.components-popover.block-editor-block-list__block-popover .components-popover__content{margin:0!important;min-width:auto;width:max-content;background:none;border:none;box-shadow:none;overflow-y:visible;pointer-events:none}.components-popover.block-editor-block-list__block-popover .components-popover__content>*{pointer-events:all}.components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-contextual-toolbar,.components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-list__block-selection-button{margin-bottom:12px}.is-dragging-components-draggable .components-popover.block-editor-block-list__block-popover{opacity:0}.is-dragging-components-draggable .components-tooltip{display:none}.block-editor-block-list__block .block-list-appender{margin:8px 0}.has-background .block-editor-block-list__block .block-list-appender{margin:20px 8px}.block-editor-block-list__block .block-list-appender .block-list-appender__toggle{padding:0;opacity:1;transform:scale(1);transition:all .1s ease}@media (prefers-reduced-motion:reduce){.block-editor-block-list__block .block-list-appender .block-list-appender__toggle{transition-duration:0s}}.block-list-appender>.block-editor-inserter{display:block}.block-editor-block-list__block:not(.is-selected):not(.has-child-selected):not(.block-editor-block-list__layout) .block-editor-block-list__layout>.block-list-appender .block-list-appender__toggle{opacity:0;transform:scale(0)}.block-editor-block-breadcrumb{list-style:none;padding:0;margin:0}.block-editor-block-breadcrumb li{display:inline-block;margin:0}.block-editor-block-breadcrumb li:not(:last-child):after{content:"←"}.block-editor-block-breadcrumb__button.components-button{height:24px;line-height:24px;padding:0;position:relative}.block-editor-block-breadcrumb__button.components-button:hover:not(:disabled){text-decoration:underline;box-shadow:none}.block-editor-block-breadcrumb__button.components-button:focus{box-shadow:none}.block-editor-block-breadcrumb__button.components-button:focus:before{content:"";display:block;position:absolute;border-radius:2px;top:1px;left:1px;bottom:1px;right:1px;box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color)}.block-editor-block-breadcrumb__current{cursor:default}.block-editor-block-breadcrumb__button.components-button,.block-editor-block-breadcrumb__current{color:#1e1e1e;padding:0 8px;font-size:inherit}.block-editor-block-card{display:flex;align-items:flex-start}.block-editor-block-card__icon{border:1px solid #ccd0d4;padding:7px;margin-left:10px;height:36px;width:36px}.block-editor-block-card__content{flex-grow:1}.block-editor-block-card__title{font-weight:500}.block-editor-block-card__title.block-editor-block-card__title{margin:0 0 5px}.block-editor-block-card__description{font-size:13px}.block-editor-block-card .block-editor-block-icon{margin-right:-2px;margin-left:10px;padding:0 3px;width:36px;height:24px}.block-editor-block-compare{overflow:auto;height:auto}@media (min-width:600px){.block-editor-block-compare{max-height:70%}}.block-editor-block-compare__wrapper{display:flex;padding-bottom:16px}.block-editor-block-compare__wrapper>div{display:flex;justify-content:space-between;flex-direction:column;width:50%;padding:0 0 0 16px;min-width:200px}.block-editor-block-compare__wrapper>div button{float:left}.block-editor-block-compare__wrapper .block-editor-block-compare__converted{border-right:1px solid #ddd;padding-right:15px;padding-left:0}.block-editor-block-compare__wrapper .block-editor-block-compare__html{font-family:Menlo,Consolas,monaco,monospace;font-size:12px;color:#1e1e1e;border-bottom:1px solid #ddd;padding-bottom:15px;line-height:1.7}.block-editor-block-compare__wrapper .block-editor-block-compare__html span{background-color:#e6ffed;padding-top:3px;padding-bottom:3px}.block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__added{background-color:#acf2bd}.block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__removed{background-color:#d94f4f}.block-editor-block-compare__wrapper .block-editor-block-compare__preview{padding:14px 0 0}.block-editor-block-compare__wrapper .block-editor-block-compare__preview p{font-size:12px;margin-top:0}.block-editor-block-compare__wrapper .block-editor-block-compare__action{margin-top:14px}.block-editor-block-compare__wrapper .block-editor-block-compare__heading{font-size:1em;font-weight:400;margin:.67em 0}.block-editor-block-draggable-chip-wrapper{position:absolute;top:-60px}.block-editor-block-draggable-chip{background-color:#1e1e1e;border-radius:2px;border:1px solid #1e1e1e;box-shadow:0 4px 6px rgba(0,0,0,.3);color:#fff;cursor:grabbing;display:inline-flex;height:48px;min-width:72px;padding:0 12px;-webkit-user-select:none;-ms-user-select:none;user-select:none}.block-editor-block-draggable-chip svg{fill:currentColor}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content{margin:auto}.block-editor-block-draggable-chip .components-flex__item{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.is-dragging.is-multi-selected,.is-dragging.is-selected{display:none!important}.block-editor-block-mobile-toolbar{display:flex;flex-direction:row;border-left:1px solid #ddd}.block-editor-block-mobile-toolbar .block-editor-block-mover-button{width:36px;height:36px;border-radius:2px;padding:3px;margin:0;justify-content:center;align-items:center}.block-editor-block-mobile-toolbar .block-editor-block-mover-button .dashicon{margin:auto}.block-editor-block-mobile-toolbar .block-editor-block-mover{display:flex;margin-left:auto}.block-editor-block-mobile-toolbar .block-editor-block-mover .block-editor-block-mover-button{float:right}.block-editor-block-mover{display:inline-flex;flex-direction:row}.block-editor-block-mover-button__description{display:none}.block-editor-block-mover-button.has-icon{padding:0}.block-editor-block-mover .components-toolbar,.block-editor-block-mover .components-toolbar-group{flex-direction:column;flex:1}.block-editor-block-mover.is-horizontal .components-toolbar,.block-editor-block-mover.is-horizontal .components-toolbar-group{flex-direction:row}.block-editor-block-mover .block-editor-block-mover-button{height:24px;width:48px;padding:0!important}.block-editor-block-mover .block-editor-block-mover-button:before{right:8px!important;left:8px!important}.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-up-button svg,.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-up-button svg{margin-bottom:-8px}.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-up-button:before,.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-up-button:before{bottom:0;height:calc(100% - 8px)}.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-down-button svg,.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-down-button svg{margin-top:-8px}.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-down-button:before,.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-down-button:before{top:0;height:calc(100% - 8px)}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.has-icon{height:48px;width:24px;min-width:24px;padding-right:0;padding-left:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.has-icon:before{top:8px;bottom:8px;min-width:0;width:auto;height:auto}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-up-button.has-icon svg{margin-right:0;margin-left:-8px;margin-bottom:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-up-button.has-icon:before{right:8px!important;left:0!important}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-down-button.has-icon svg{margin-right:-8px;margin-left:0;margin-top:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-down-button.has-icon:before{right:0!important;left:8px!important}.block-editor-block-navigation__label{margin:0 0 12px;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500}.block-editor-block-navigation__container{padding:7px}.block-editor-block-navigation-tree{width:100%;border-collapse:collapse;padding:0;margin:0}.block-editor-block-navigation-leaf{position:relative}.block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents{display:flex;align-items:center;width:calc(100% - .8em);height:auto;padding:12px 6px;margin-top:auto;margin-bottom:auto;text-align:right;color:#40464d;border-radius:2px}.components-modal__content .block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents{padding-right:0;padding-left:0}.block-editor-block-navigation-leaf.is-visible .block-editor-block-navigation-block-contents{opacity:1;animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.block-editor-block-navigation-leaf.is-visible .block-editor-block-navigation-block-contents{animation-duration:1ms}}.block-editor-block-navigation-leaf .block-editor-block-icon{align-self:flex-start;margin-left:6px}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__contents-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell{padding-top:0;padding-bottom:0}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell{width:36px;opacity:0;vertical-align:top}@media (prefers-reduced-motion:reduce){.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell{transition-duration:0s}}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell.is-visible,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell.is-visible{opacity:1;animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell.is-visible,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell.is-visible{animation-duration:1ms}}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell .components-button.has-icon,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell .components-button.has-icon{width:24px;min-width:24px;padding:0}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell{padding-top:8px}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell-alignment-wrapper{display:flex;height:100%;flex-direction:column;align-items:center}.block-editor-block-navigation-leaf .block-editor-block-mover-button{position:relative;width:36px;height:24px}.block-editor-block-navigation-leaf .block-editor-block-mover-button svg{position:relative;height:24px}.block-editor-block-navigation-leaf .block-editor-block-mover-button.is-up-button{align-items:flex-end}.block-editor-block-navigation-leaf .block-editor-block-mover-button.is-up-button svg{bottom:-4px}.block-editor-block-navigation-leaf .block-editor-block-mover-button.is-down-button{align-items:flex-start}.block-editor-block-navigation-leaf .block-editor-block-mover-button.is-down-button svg{top:-4px}.block-editor-block-navigation-leaf .block-editor-block-mover-button:focus:enabled{box-shadow:none;outline:none}.block-editor-block-navigation-leaf .block-editor-block-mover-button:focus{box-shadow:none;outline:none}.block-editor-block-navigation-leaf .block-editor-block-mover-button:focus:before{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 0 0 4px #fff;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 0 0 4px #fff;outline:2px solid transparent}.block-editor-block-navigation-leaf .block-editor-block-mover-button:before{content:"";position:absolute;display:block;border-radius:2px;height:16px;min-width:100%;right:0;left:0;animation:components-button__appear-animation .1s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.block-editor-block-navigation-leaf .block-editor-block-mover-button:before{animation-duration:1ms}}.block-editor-block-navigation-leaf .block-editor-inserter__toggle{background:#1e1e1e;color:#fff;height:24px;margin:6px 1px 6px 6px;min-width:24px}.block-editor-block-navigation-leaf .block-editor-inserter__toggle:active{color:#fff}.block-editor-block-navigation-appender__description,.block-editor-block-navigation-block-select-button__description,.block-editor-block-navigation-block-slot__description{display:none}.block-editor-block-navigation-appender__cell .block-editor-block-navigation-appender__container,.block-editor-block-navigation-appender__cell .block-editor-block-navigation-block__contents-container,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigation-appender__container,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigation-block__contents-container{display:flex}.block-editor-block-navigation-appender__cell .block-editor-block-navigation-block__contents-container,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigation-block__contents-container{min-height:56px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line{position:relative;flex-shrink:0;width:24px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line:first-child,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line:first-child{width:18px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line.has-item{margin-left:6px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line:before,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line:before{content:"";display:block;position:absolute;top:1px;bottom:-2px;left:-1px;border-left:2px solid #a2aab2}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.is-terminated:before,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line.is-terminated:before{border-color:transparent}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item.is-last-row,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line.has-item.is-last-row{height:26px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item:after,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line.has-item:after{content:"";display:block;position:absolute;top:26px;right:100%;width:5px;border-bottom:2px solid #a2aab2}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item.is-last-row{height:16px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item.is-last-row:after{top:100%}.block-editor-block-parent-selector{background:#fff;border-radius:2px}.block-editor-block-parent-selector .block-editor-block-parent-selector__button{width:48px;height:48px;border:1px solid #1e1e1e;border-radius:2px}.block-editor-block-patterns-list__item{border-radius:2px;cursor:pointer;margin-top:16px;transition:all .05s ease-in-out;position:relative;border:1px solid transparent}.block-editor-block-patterns-list__item:hover{border:1px solid #007cba;border:1px solid var(--wp-admin-theme-color)}.block-editor-block-patterns-list__item:focus{box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-block-patterns-list__item.is-placeholder{min-height:100px}.block-editor-block-patterns-list__item-title{padding:4px;font-size:12px;text-align:center}.block-editor-block-preview__container{position:relative;width:100%;overflow:hidden}.block-editor-block-preview__container.editor-styles-wrapper{padding:0;margin:0}.block-editor-block-preview__content{position:absolute;top:0;right:0;transform-origin:top right;text-align:initial;margin:0;overflow:visible;min-height:auto}.block-editor-block-preview__content .block-editor-block-drop-zone,.block-editor-block-preview__content .block-editor-block-list__insertion-point,.block-editor-block-preview__content .block-list-appender,.block-editor-block-preview__content .reusable-block-indicator{display:none}.block-editor-block-preview__content .block-editor-block-list__layout.is-root-container{padding-right:0;padding-left:0}.block-editor-block-preview__content .block-editor-block-list__layout.is-root-container>.wp-block[data-align=full]{margin-right:0;margin-left:0}.block-editor-block-settings-menu__popover .components-dropdown-menu__menu{padding:0}.block-editor-block-styles{display:flex;flex-wrap:wrap;justify-content:space-between}.block-editor-block-styles__item{width:calc(50% - 4px);margin:4px 0;flex-shrink:0;cursor:pointer;overflow:hidden;border-radius:2px;padding:6px;display:flex;flex-direction:column}.block-editor-block-styles__item:focus{box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-block-styles__item:hover .block-editor-block-styles__item-preview{border-color:#007cba;border-color:var(--wp-admin-theme-color)}.block-editor-block-styles__item.is-active .block-editor-block-styles__item-label{font-weight:700}.block-editor-block-styles__item.is-active .block-editor-block-styles__item-preview{border:2px solid #1e1e1e}.block-editor-block-styles__item-preview{outline:1px solid transparent;padding:0;border-radius:2px;display:flex;overflow:hidden;background:#fff;align-items:center;flex-grow:1;min-height:80px}.block-editor-block-switcher__styles__menugroup{position:relative}.block-editor-block-styles__item-label{text-align:center;padding:4px 0}.block-editor-block-switcher,.block-editor-block-switcher__no-switcher-icon,.block-editor-block-switcher__toggle{position:relative}.components-button.block-editor-block-switcher__no-switcher-icon,.components-button.block-editor-block-switcher__toggle{margin:0;display:block;height:48px}.components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon,.components-button.block-editor-block-switcher__toggle .block-editor-block-icon{margin:auto}.components-button.block-editor-block-switcher__no-switcher-icon{width:48px}.components-button.block-editor-block-switcher__no-switcher-icon .block-editor-blocks-icon{margin-left:auto;margin-right:auto}.components-button.block-editor-block-switcher__no-switcher-icon:disabled{opacity:1}.components-button.block-editor-block-switcher__no-switcher-icon:disabled,.components-button.block-editor-block-switcher__no-switcher-icon:disabled .block-editor-block-icon.has-colors{color:#1e1e1e!important}.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon,.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon{padding:0}.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon .block-editor-block-icon,.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon .block-editor-block-icon,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon .block-editor-block-icon,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon .block-editor-block-icon{height:100%;position:relative;margin:0 auto;display:flex;align-items:center}.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon:before,.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon:before,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon:before,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon:before{top:8px;left:8px;bottom:8px;right:8px}.components-popover.block-editor-block-switcher__popover .components-popover__content{min-width:300px}.components-popover.block-editor-block-switcher__popover .components-popover__content>div{min-width:auto;display:flex;background:#fff;padding:0}.components-popover.block-editor-block-switcher__popover .components-popover__content>div .components-menu-group{padding:16px;margin:0}.block-editor-block-switcher__popover .components-popover__content .block-editor-block-styles{margin:0 -3px}.block-editor-block-switcher__popover .components-popover__content .components-panel__body{border:0;position:relative;z-index:1}.block-editor-block-switcher__popover .components-popover__content .components-panel__body+.components-panel__body{border-top:1px solid #f0f0f0}.block-editor-block-switcher__popover__preview__parent .block-editor-block-switcher__popover__preview__container{position:absolute;top:-12px;right:calc(100% + 32px)}.block-editor-block-switcher__preview__popover{display:none}.block-editor-block-switcher__preview__popover.components-popover{margin-right:4px;margin-top:11px}@media (min-width:782px){.block-editor-block-switcher__preview__popover{display:block}}.block-editor-block-switcher__preview__popover .components-popover__content{box-shadow:none;border:1px solid #1e1e1e;background:#fff;border-radius:2px}.block-editor-block-switcher__preview__popover .block-editor-block-switcher__preview{width:300px;height:auto;padding:16px}.block-editor-block-switcher__preview-title{margin-bottom:12px;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle{height:48px}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon{width:48px}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-switcher__transform,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-icon,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform{width:48px;height:48px}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-switcher__transform,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform{padding:12px}.block-editor-block-types-list{list-style:none;padding:4px;margin-right:-4px;margin-left:-4px;overflow:hidden;display:flex;flex-wrap:wrap}.block-editor-block-variation-picker .components-placeholder__instructions{margin-bottom:0}.block-editor-block-variation-picker .components-placeholder__fieldset{flex-direction:column}.block-editor-block-variation-picker.has-many-variations .components-placeholder__fieldset{max-width:90%}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations{display:flex;justify-content:flex-start;flex-direction:row;flex-wrap:wrap;width:100%;margin:16px 0;padding:0;list-style:none}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations>li{list-style:none;margin:8px 0 0 8px;flex-shrink:1;max-width:100px}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations>li button{display:flex}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations .block-editor-block-variation-picker__variation{padding:8px}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations .block-editor-block-variation-picker__variation-label{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:12px;display:block;margin-left:12px;text-align:center}.block-editor-block-variation-picker__variation{width:100%}.block-editor-block-variation-picker__variation.components-button.has-icon{justify-content:center;width:auto}.block-editor-block-variation-picker__variation.components-button.has-icon.is-secondary{background-color:#fff}.block-editor-block-variation-picker__variation.components-button{height:auto;padding:0}.block-editor-block-variation-picker__variation:before{content:"";padding-bottom:100%}.block-editor-block-variation-picker__variation:first-child{margin-right:0}.block-editor-block-variation-picker__variation:last-child{margin-left:0}.block-editor-button-block-appender{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:8px;width:100%;height:auto;color:#1e1e1e;box-shadow:inset 0 0 0 1px #1e1e1e}.block-editor-button-block-appender:hover{box-shadow:inset 0 0 0 1px #007cba;box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color)}.block-editor-button-block-appender:focus{box-shadow:inset 0 0 0 2px #007cba;box-shadow:inset 0 0 0 2px var(--wp-admin-theme-color)}.block-editor-button-block-appender:active{color:#000}.block-editor-button-block-appender.block-list-appender__toggle{display:flex;flex-direction:row;color:#1e1e1e;box-shadow:none;height:24px;padding:0;margin-right:8px}.block-editor-button-block-appender.block-list-appender__toggle:active{color:#fff}.block-editor-button-block-appender.block-list-appender__toggle>svg{width:24px;background-color:#1e1e1e;color:#fff;border-radius:2px}.block-editor-color-gradient-control__color-indicator{margin-bottom:8px}.block-editor-color-gradient-control__button-tabs{display:block;margin-bottom:8px}.block-editor-panel-color-gradient-settings .component-color-indicator{vertical-align:text-bottom}.block-editor-panel-color-gradient-settings__panel-title .component-color-indicator{display:inline-block}.block-editor-panel-color-gradient-settings.is-opened .block-editor-panel-color-gradient-settings__panel-title .component-color-indicator{display:none}.block-editor-contrast-checker>.components-notice{margin:0}.block-editor-default-block-appender{clear:both;margin-right:auto;margin-left:auto;position:relative}.block-editor-default-block-appender[data-root-client-id=""] .block-editor-default-block-appender__content:hover{outline:1px solid transparent}.block-editor-default-block-appender textarea.block-editor-default-block-appender__content{font-family:inherit;font-size:inherit;border:none;background:none;box-shadow:none;display:block;cursor:text;width:100%;outline:1px solid transparent;transition:outline .2s;resize:none;margin-top:28px;margin-bottom:28px;padding:0 0 0 50px;color:rgba(30,30,30,.62)}@media (prefers-reduced-motion:reduce){.block-editor-default-block-appender textarea.block-editor-default-block-appender__content{transition-duration:0s}}.is-dark-theme .block-editor-default-block-appender textarea.block-editor-default-block-appender__content{color:hsla(0,0%,100%,.65)}.block-editor-default-block-appender .components-drop-zone__content-icon{display:none}.block-editor-default-block-appender__content{line-height:1.8}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter,.block-editor-default-block-appender .block-editor-inserter{position:absolute;top:0;height:32px}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle,.block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle{margin-left:0}.block-editor-block-list__empty-block-inserter,.block-editor-default-block-appender .block-editor-inserter{left:8px}@media (min-width:600px){.block-editor-block-list__empty-block-inserter,.block-editor-default-block-appender .block-editor-inserter{display:flex;height:100%}}.block-editor-block-list__empty-block-inserter:disabled,.block-editor-default-block-appender .block-editor-inserter:disabled{display:none}@media (min-width:600px){.block-editor-default-block-appender .block-editor-inserter{align-items:center}}.block-editor-link-control{position:relative;min-width:360px}.components-popover__content .block-editor-link-control{min-width:auto;width:90vw;max-width:360px}.block-editor-link-control__search-input-wrapper{position:relative}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;font-size:16px;line-height:normal;width:calc(100% - 32px);display:block;padding:11px 16px 11px 36px;margin:16px;position:relative;border:1px solid #ddd;border-radius:2px}@media (prefers-reduced-motion:reduce){.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{transition-duration:0s}}@media (min-width:600px){.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{font-size:13px;line-height:normal}}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px #007cba;box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.block-editor-link-control .block-editor-link-control__search-input .components-base-control__field{margin-bottom:0}.block-editor-link-control__search-error{margin:-8px 16px 16px}.block-editor-link-control__search-actions{position:absolute;top:19px;left:19px}.block-editor-link-control__search-results-wrapper{position:relative;margin-top:-15px}.block-editor-link-control__search-results-wrapper:after,.block-editor-link-control__search-results-wrapper:before{content:"";position:absolute;right:-1px;left:16px;display:block;pointer-events:none;z-index:100}.block-editor-link-control__search-results-wrapper:before{height:8px;top:0;bottom:auto;background:linear-gradient(180deg,#fff 0,hsla(0,0%,100%,0))}.block-editor-link-control__search-results-wrapper:after{height:16px;bottom:0;top:auto;background:linear-gradient(180deg,hsla(0,0%,100%,0) 0,#fff)}.block-editor-link-control__search-results-label{padding:15px 30px 0;display:block;font-size:1.1em}.block-editor-link-control__search-results{margin:0;padding:8px 16px;max-height:200px;overflow-y:auto}.block-editor-link-control__search-results.is-loading{opacity:.2}.block-editor-link-control__search-item{position:relative;display:flex;align-items:center;font-size:13px;cursor:pointer;background:#fff;width:100%;border:none;text-align:right;padding:10px 15px;border-radius:5px;height:auto}.block-editor-link-control__search-item:focus,.block-editor-link-control__search-item:hover{background-color:#ddd}.block-editor-link-control__search-item:focus:not(:disabled){box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color) inset}.block-editor-link-control__search-item.is-selected{background:#f0f0f0}.block-editor-link-control__search-item.is-selected .block-editor-link-control__search-item-type{background:#fff}.block-editor-link-control__search-item.is-current{background:transparent;border:0;width:100%;cursor:default;padding:16px 24px 16px 16px}.block-editor-link-control__search-item .block-editor-link-control__search-item-header{display:block;margin-left:24px;overflow:hidden;white-space:nowrap}.block-editor-link-control__search-item .block-editor-link-control__search-item-icon{margin-left:1em;min-width:24px}.block-editor-link-control__search-item .block-editor-link-control__search-item-info,.block-editor-link-control__search-item .block-editor-link-control__search-item-title{max-width:230px;overflow:hidden;text-overflow:ellipsis}.block-editor-link-control__search-item .block-editor-link-control__search-item-title mark{color:#1e1e1e}.block-editor-link-control__search-item .block-editor-link-control__search-item-title{display:block;margin-bottom:.2em;font-weight:500}.block-editor-link-control__search-item .block-editor-link-control__search-item-title mark{font-weight:700;color:#000;background-color:transparent}.block-editor-link-control__search-item .block-editor-link-control__search-item-title span{font-weight:400}.block-editor-link-control__search-item .block-editor-link-control__search-item-info{display:block;color:#6c7781;font-size:.9em;line-height:1.3}.block-editor-link-control__search-item .block-editor-link-control__search-item-type{display:block;padding:3px 8px;margin-right:auto;font-size:.9em;background-color:#f0f0f0;border-radius:2px}.block-editor-link-control__loading{margin:16px;display:flex;align-items:center}.block-editor-link-control__loading .components-spinner{margin-top:0}.components-button+.block-editor-link-control__search-create{margin-top:20px;overflow:visible;padding:12px 15px}.components-button+.block-editor-link-control__search-create:before{content:"";position:absolute;top:-10px;right:0;display:block;width:100%;border-top:1px solid #ddd}.block-editor-link-control__search-results div[role=menu]>.block-editor-link-control__search-item.block-editor-link-control__search-item{padding:10px}.block-editor-link-control__settings{border-top:1px solid #ddd;margin:0;padding:16px 24px}.block-editor-link-control__settings :last-child{margin-bottom:0}.block-editor-link-control__setting{margin-bottom:16px}.block-editor-link-control__setting :last-child{margin-bottom:0}.block-editor-link-control .block-editor-link-control__search-input .components-spinner{display:block}.block-editor-link-control .block-editor-link-control__search-input .components-spinner.components-spinner{position:absolute;right:auto;bottom:auto;top:28px;left:62px}.block-editor-link-control__search-item-action{margin-right:auto;flex-shrink:0}.block-editor-line-height-control{margin-bottom:24px}.block-editor-line-height-control input{display:block;max-width:60px}.block-editor-image-size-control{margin-bottom:1em}.block-editor-image-size-control .block-editor-image-size-control__row{display:flex;justify-content:space-between}.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__height,.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__width{margin-bottom:.5em}.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__height input,.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__width input{line-height:1.25}.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__width{margin-left:5px}.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__height{margin-right:5px}.block-editor-block-list__layout.has-overlay:after{content:"";position:absolute;top:-14px;left:-14px;bottom:-14px;right:-14px;z-index:60}[data-align=full] .has-overlay:after{left:0;right:0}.block-editor-block-types-list__list-item{display:block;width:33.33%;padding:0;margin:0}.components-button.block-editor-block-types-list__item{display:flex;flex-direction:column;width:100%;font-size:13px;color:#32373c;padding:8px;align-items:stretch;justify-content:center;cursor:pointer;background:transparent;word-break:break-word;border-radius:2px;border:1px solid transparent;transition:all .05s ease-in-out;position:relative;height:auto}@media (prefers-reduced-motion:reduce){.components-button.block-editor-block-types-list__item{transition-duration:0s}}.components-button.block-editor-block-types-list__item:disabled{opacity:.6;cursor:default}.components-button.block-editor-block-types-list__item:not(:disabled):hover{border-color:#007cba;border-color:var(--wp-admin-theme-color);color:#007cba!important;color:var(--wp-admin-theme-color)!important}.components-button.block-editor-block-types-list__item:not(:disabled).is-active{color:#fff;background:#1e1e1e;outline:2px solid transparent;outline-offset:-2px}.block-editor-block-types-list__item-icon{padding:12px 20px;border-radius:2px;color:#1e1e1e;transition:all .05s ease-in-out}@media (prefers-reduced-motion:reduce){.block-editor-block-types-list__item-icon{transition-duration:0s}}.block-editor-block-types-list__item-icon .block-editor-block-icon{margin-right:auto;margin-left:auto}.block-editor-block-types-list__item-icon svg{transition:all .15s ease-out}@media (prefers-reduced-motion:reduce){.block-editor-block-types-list__item-icon svg{transition-duration:0s}}.block-editor-block-types-list__item-title{padding:4px 2px 8px;font-size:12px}.modal-open .block-editor-media-replace-flow__options{display:none}.block-editor-media-replace-flow__options .components-popover__content>div{padding-top:16px}.block-editor-media-replace-flow__indicator{margin-right:4px}.block-editor-media-replace-flow__media-upload-menu{margin-bottom:16px}.block-editor-media-flow__url-input .block-editor-media-replace-flow__image-url-label{top:16px}.block-editor-media-flow__url-input .block-editor-link-control{margin-top:-16px;width:auto}.block-editor-media-flow__url-input .block-editor-link-control .components-base-control .components-base-control__field{margin-bottom:0}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item-title{max-width:180px;margin-top:16px}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item.is-current{width:auto;padding:0}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{margin:16px 0 0;width:100%}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-actions{left:4px}.block-editor-media-flow__error{padding:0 20px 20px;max-width:255px}.block-editor-media-flow__error .components-with-notices-ui{max-width:255px}.block-editor-media-flow__error .components-with-notices-ui .components-notice__content{overflow:hidden;word-wrap:break-word}.block-editor-media-flow__error .components-with-notices-ui .components-notice__dismiss{position:absolute;left:10px}.block-editor-media-placeholder__url-input-container .block-editor-media-placeholder__button{margin-bottom:0}.block-editor-media-placeholder__url-input-form{display:flex}.block-editor-media-placeholder__url-input-form input[type=url].block-editor-media-placeholder__url-input-field{width:100%;flex-grow:1;border:none;border-radius:0;margin:2px}@media (min-width:600px){.block-editor-media-placeholder__url-input-form input[type=url].block-editor-media-placeholder__url-input-field{width:300px}}.block-editor-media-placeholder__url-input-submit-button{flex-shrink:1}.block-editor-media-placeholder__button{margin-bottom:.5rem}.block-editor-media-placeholder__cancel-button.is-link{margin:1em;display:block}.block-editor-media-placeholder.is-appender{min-height:0}.block-editor-media-placeholder.is-appender:hover{cursor:pointer;box-shadow:0 0 0 1px #007cba;box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.block-editor-multi-selection-inspector__card{display:flex;align-items:flex-start;padding:16px}.block-editor-multi-selection-inspector__card-content{flex-grow:1}.block-editor-multi-selection-inspector__card-title{font-weight:500;margin-bottom:5px}.block-editor-multi-selection-inspector__card-description{font-size:13px}.block-editor-multi-selection-inspector__card .block-editor-block-icon{margin-right:-2px;margin-left:10px;padding:0 3px;width:36px;height:24px}.block-editor .block-editor-plain-text{box-shadow:none;font-family:inherit;font-size:inherit;color:inherit;line-height:inherit;border:none;padding:0;margin:0;width:100%}.block-editor-responsive-block-control{margin-bottom:28px;border-bottom:1px solid #d7dade;padding-bottom:14px}.block-editor-responsive-block-control:last-child{padding-bottom:0;border-bottom:0}.block-editor-responsive-block-control__title{margin:0 -3px .6em 0}.block-editor-responsive-block-control__label{font-weight:600;margin-bottom:.6em;margin-right:-3px}.block-editor-responsive-block-control__inner{margin-right:-1px}.block-editor-responsive-block-control__toggle{margin-right:1px}.block-editor-responsive-block-control .components-base-control__help{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.block-editor-format-toolbar .components-dropdown-menu__toggle{justify-content:center}.block-editor-rich-text__editable>p:first-child{margin-top:0}.block-editor-rich-text__editable [data-rich-text-placeholder]{pointer-events:none}.block-editor-rich-text__editable [data-rich-text-placeholder]:after{content:attr(data-rich-text-placeholder);opacity:.62}.block-editor-rich-text__editable:focus{outline:none}.block-editor-rich-text__editable:focus [data-rich-text-format-boundary]{border-radius:2px}.block-editor-rich-text__editable:focus:not(.keep-placeholder-on-focus) [data-rich-text-placeholder]:after{display:none}figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]:before{opacity:.8}.components-popover.block-editor-rich-text__inline-format-toolbar{z-index:99998}.components-popover.block-editor-rich-text__inline-format-toolbar .components-popover__content{width:auto;min-width:auto;margin-bottom:8px;box-shadow:none;border:1px solid #1e1e1e;border-radius:2px;background-color:#fff}.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar,.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar-group{border:none}.components-popover.block-editor-rich-text__inline-format-toolbar .components-dropdown-menu__toggle,.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar__control{min-width:48px;min-height:48px;padding-right:12px;padding-left:12px}.block-editor-skip-to-selected-block{position:absolute;top:-9999em}.block-editor-skip-to-selected-block:focus{height:auto;width:auto;display:block;font-size:14px;font-weight:600;padding:15px 23px 14px;background:#f1f1f1;color:#007cba;color:var(--wp-admin-theme-color);line-height:normal;box-shadow:0 0 2px 2px rgba(0,0,0,.6);text-decoration:none;outline:none;z-index:100000}.block-editor-tool-selector__help{margin:8px -12px -12px;padding:12px 20px;border-top:1px solid #ddd;color:#6c7781}.block-editor-block-list__block .block-editor-url-input,.block-editor-url-input,.components-popover .block-editor-url-input{flex-grow:1;position:relative;padding:1px}.block-editor-block-list__block .block-editor-url-input input[type=text],.block-editor-url-input input[type=text],.components-popover .block-editor-url-input input[type=text]{width:100%;padding:8px;border:none;border-radius:0;margin-right:0;margin-left:0;font-size:16px}@media (min-width:600px){.block-editor-block-list__block .block-editor-url-input input[type=text],.block-editor-url-input input[type=text],.components-popover .block-editor-url-input input[type=text]{width:300px}}@media (min-width:600px){.block-editor-block-list__block .block-editor-url-input input[type=text],.block-editor-url-input input[type=text],.components-popover .block-editor-url-input input[type=text]{font-size:13px}}.block-editor-block-list__block .block-editor-url-input input[type=text]::-ms-clear,.block-editor-url-input input[type=text]::-ms-clear,.components-popover .block-editor-url-input input[type=text]::-ms-clear{display:none}.block-editor-block-list__block .block-editor-url-input.is-full-width,.block-editor-url-input.is-full-width,.components-popover .block-editor-url-input.is-full-width{width:100%}.block-editor-block-list__block .block-editor-url-input.is-full-width .block-editor-url-input__input[type=text],.block-editor-url-input.is-full-width .block-editor-url-input__input[type=text],.components-popover .block-editor-url-input.is-full-width .block-editor-url-input__input[type=text]{width:100%}.block-editor-block-list__block .block-editor-url-input.is-full-width__suggestions,.block-editor-url-input.is-full-width__suggestions,.components-popover .block-editor-url-input.is-full-width__suggestions{width:100%}.block-editor-block-list__block .block-editor-url-input .components-spinner,.block-editor-url-input .components-spinner,.components-popover .block-editor-url-input .components-spinner{position:absolute;left:8px;bottom:17px;margin:0}.block-editor-url-input__input[type=text]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal}@media (prefers-reduced-motion:reduce){.block-editor-url-input__input[type=text]{transition-duration:0s}}@media (min-width:600px){.block-editor-url-input__input[type=text]{font-size:13px;line-height:normal}}.block-editor-url-input__input[type=text]:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px #007cba;box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-url-input__input[type=text]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.block-editor-url-input__input[type=text]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.block-editor-url-input__input[type=text]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .block-editor-url-input__input[type=text]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-url-input__input[type=text]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-url-input__input[type=text]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.block-editor-url-input__suggestions{max-height:200px;transition:all .15s ease-in-out;padding:4px 0;width:302px;overflow-y:auto}@media (prefers-reduced-motion:reduce){.block-editor-url-input__suggestions{transition-duration:0s}}.block-editor-url-input .components-spinner,.block-editor-url-input__suggestions{display:none}@media (min-width:600px){.block-editor-url-input .components-spinner,.block-editor-url-input__suggestions{display:inherit}}.block-editor-url-input__suggestion{padding:4px 8px;color:#6c7781;display:block;font-size:13px;cursor:pointer;background:#fff;width:100%;border:none;text-align:right;box-shadow:none}.block-editor-url-input__suggestion:hover{background:#ddd}.block-editor-url-input__suggestion.is-selected,.block-editor-url-input__suggestion:focus{background:#005a87;background:var(--wp-admin-theme-color-darker-20);color:#fff;outline:none}.components-toolbar-group>.block-editor-url-input__button,.components-toolbar>.block-editor-url-input__button{position:inherit}.block-editor-url-input__button .block-editor-url-input__back{margin-left:4px;overflow:visible}.block-editor-url-input__button .block-editor-url-input__back:after{content:"";position:absolute;display:block;width:1px;height:24px;left:-1px;background:#ddd}.block-editor-url-input__button-modal{box-shadow:0 2px 6px rgba(0,0,0,.05);border:1px solid #ddd;background:#fff}.block-editor-url-input__button-modal-line{display:flex;flex-direction:row;flex-grow:1;flex-shrink:1;min-width:0;align-items:flex-start}.block-editor-url-input__button-modal-line .components-button{flex-shrink:0;width:36px;height:36px}.block-editor-url-popover__additional-controls{border-top:1px solid #ddd}.block-editor-url-popover__additional-controls>div[role=menu] .components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary)>svg{box-shadow:none}.block-editor-url-popover__additional-controls div[role=menu]>.components-button{padding-right:2px}.block-editor-url-popover__row{display:flex}.block-editor-url-popover__row>:not(.block-editor-url-popover__settings-toggle){flex-grow:1}.block-editor-url-popover .components-button.has-icon{padding:3px}.block-editor-url-popover .components-button.has-icon>svg{padding:5px;border-radius:2px;height:30px;width:30px}.block-editor-url-popover .components-button.has-icon:not(:disabled):focus{box-shadow:none}.block-editor-url-popover .components-button.has-icon:not(:disabled):focus>svg{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 0 0 4px #fff;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 0 0 4px #fff;outline:2px solid transparent}.block-editor-url-popover__settings-toggle{flex-shrink:0;border-radius:0;border-right:1px solid #ddd;margin-right:1px}.block-editor-url-popover__settings-toggle[aria-expanded=true] .dashicon{transform:rotate(-180deg)}.block-editor-url-popover__input-container .components-base-control:last-child,.block-editor-url-popover__input-container .components-base-control:last-child .components-base-control__field{margin-bottom:0}.block-editor-url-popover__settings{display:block;padding:16px;border-top:1px solid #ddd}.block-editor-url-popover__link-editor,.block-editor-url-popover__link-viewer{display:flex}.block-editor-url-popover__link-editor .block-editor-url-input .components-base-control__field,.block-editor-url-popover__link-viewer .block-editor-url-input .components-base-control__field{margin-bottom:0}.block-editor-url-popover__link-editor .block-editor-url-input .components-spinner,.block-editor-url-popover__link-viewer .block-editor-url-input .components-spinner{bottom:9px}.block-editor-url-popover__link-viewer-url{margin:7px;flex-grow:1;flex-shrink:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:150px;max-width:500px}.block-editor-url-popover__link-viewer-url.has-invalid-link{color:#d94f4f}.block-editor-warning{align-items:center;display:flex;flex-wrap:wrap;padding:6px 12px;border:1px solid #1e1e1e;border-radius:2px;background-color:#fff}.block-editor-warning,.block-editor-warning .block-editor-warning__message{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.block-editor-warning .block-editor-warning__message{line-height:1.4;margin:1em 0}.block-editor-warning p.block-editor-warning__message.block-editor-warning__message{min-height:auto}.block-editor-warning .block-editor-warning__contents{display:flex;flex-direction:row;justify-content:space-between;flex-wrap:wrap;align-items:baseline;width:100%}.block-editor-warning .block-editor-warning__actions{display:flex}.block-editor-warning .block-editor-warning__action{margin:0 8px 0 0}.block-editor-warning__secondary{margin:auto 8px auto 0}.block-editor-writing-flow{display:flex;flex-direction:column}.block-editor-writing-flow__click-redirect{cursor:text}.html-anchor-control .components-external-link{display:block;margin-top:8px}#end-resizable-editor-section{display:none}.block-editor-block-toolbar{display:flex;flex-grow:1;width:100%;overflow:auto;position:relative;transition:border-color .1s linear,box-shadow .1s linear}@media (prefers-reduced-motion:reduce){.block-editor-block-toolbar{transition-duration:0s}}@media (min-width:600px){.block-editor-block-toolbar{overflow:inherit}}.block-editor-block-toolbar .components-toolbar,.block-editor-block-toolbar .components-toolbar-group{background:none;line-height:0;margin-top:-1px;margin-bottom:-1px;border:0;border-left:1px solid #ddd}.block-editor-block-toolbar>:last-child,.block-editor-block-toolbar>:last-child .components-toolbar,.block-editor-block-toolbar>:last-child .components-toolbar-group{border-left:none}.block-editor-block-toolbar .components-toolbar,.block-editor-block-toolbar .components-toolbar-group,.block-editor-format-toolbar .components-toolbar,.block-editor-format-toolbar .components-toolbar-group{display:flex;flex-wrap:nowrap}.block-editor-block-toolbar__slot{display:inline-block;line-height:0}@supports ((position:-webkit-sticky) or (position:sticky)){.block-editor-block-toolbar__slot{display:inline-flex}}.block-editor-block-toolbar__block-parent-selector-wrapper{position:absolute;top:-1px;right:-1px;opacity:0;transition:all 60ms linear;z-index:-1}@media (prefers-reduced-motion:reduce){.block-editor-block-toolbar__block-parent-selector-wrapper{transition-duration:0s}}.is-showing-movers .block-editor-block-toolbar__block-parent-selector-wrapper{opacity:1;transform:translateY(-60px)}.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar__block-parent-selector-wrapper{display:none}.block-editor-block-toolbar__block-switcher-wrapper,.block-editor-block-toolbar__mover-switcher-container{display:flex}.block-editor-block-toolbar__block-switcher-wrapper:not([draggable=false]) *{cursor:grab}.block-editor-block-toolbar__block-switcher-wrapper .block-editor-block-switcher{display:block}.block-editor-inserter{display:inline-block;background:none;border:none;padding:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:1.4}@media (min-width:782px){.block-editor-inserter{position:relative}}.block-editor-inserter__popover .block-editor-inserter__menu{margin:-12px}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__tabs .components-tab-panel__tabs{top:60px}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__main-area{overflow:visible;height:auto}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__preview-container{display:none}.block-editor-inserter__toggle.components-button{display:inline-flex;align-items:center;cursor:pointer;border:none;outline:none;padding:0;transition:color .2s ease}@media (prefers-reduced-motion:reduce){.block-editor-inserter__toggle.components-button{transition-duration:0s}}.block-editor-inserter__menu{height:100%;position:relative;overflow:visible}.block-editor-inserter__main-area{width:auto;overflow-y:auto;height:100%}@media (min-width:782px){.block-editor-inserter__main-area{width:350px}}.block-editor-inserter__inline-elements{margin-top:-1px}.block-editor-inserter__menu.is-bottom:after{border-bottom-color:#fff}.components-popover.block-editor-inserter__popover{z-index:99998}.block-editor-inserter__search{padding:16px;position:-webkit-sticky;position:sticky;top:0;background:#fff;z-index:1}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;line-height:normal;display:block;padding:16px 16px 16px 48px;background:#f0f0f0;border:none;width:100%;height:48px;font-size:16px}@media (prefers-reduced-motion:reduce){.block-editor-inserter__search input[type=search].block-editor-inserter__search-input{transition-duration:0s}}@media (min-width:600px){.block-editor-inserter__search input[type=search].block-editor-inserter__search-input{font-size:13px;line-height:normal}}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px #007cba;box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-inserter__search input[type=search].block-editor-inserter__search-input:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}@media (min-width:600px){.block-editor-inserter__search input[type=search].block-editor-inserter__search-input{font-size:13px}}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input:focus{background:#fff;box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color)}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input:-ms-input-placeholder{color:#606a73}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-ms-input-placeholder{color:#606a73}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::placeholder{color:#606a73}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-webkit-search-cancel-button,.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-webkit-search-decoration,.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-webkit-search-results-button,.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-webkit-search-results-decoration{-webkit-appearance:none}.block-editor-inserter__search-icon{position:absolute;top:0;left:20px;bottom:0;display:flex;align-items:center}.block-editor-inserter__search-icon>svg{margin:8px}.block-editor-inserter__tabs{display:flex;flex-direction:column;margin-top:-8px}.block-editor-inserter__tabs .components-tab-panel__tabs{position:-webkit-sticky;position:sticky;top:72px;background:#fff;z-index:1;border-bottom:1px solid #ddd}.block-editor-inserter__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item{flex-grow:1;margin-bottom:-1px}.block-editor-inserter__tabs .components-tab-panel__tab-content{display:flex;flex-grow:1;flex-direction:column;position:relative}.block-editor-inserter__panel-header{display:inline-flex;align-items:center;padding:16px 16px 0}.block-editor-inserter__panel-content{padding:0 16px}.block-editor-inserter__panel-title{margin:0 0 0 12px;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500}.block-editor-inserter__block-list{flex-grow:1;position:relative}.block-editor-inserter__popover .block-editor-block-types-list{margin:0 -8px}.block-editor-inserter__reusable-blocks-panel{position:relative;text-align:left}.block-editor-inserter__manage-reusable-blocks{display:inline-block;margin:16px}.block-editor-inserter__no-results{padding:32px;margin-top:64px;text-align:center}.block-editor-inserter__no-results-icon{fill:#b5bcc2}.block-editor-inserter__child-blocks{padding:0 16px}.block-editor-inserter__parent-block-header{display:flex;align-items:center}.block-editor-inserter__parent-block-header h2{font-size:13px}.block-editor-inserter__parent-block-header .block-editor-block-icon{margin-left:8px}.block-editor-inserter__preview-container{display:none;width:300px;background:#fff;border-radius:2px;border:1px solid #ddd;position:absolute;top:16px;right:calc(100% + 16px)}@media (min-width:782px){.block-editor-inserter__preview-container{display:block}}.block-editor-inserter__preview-container .block-editor-block-card{padding:16px}.block-editor-inserter__preview-container .block-editor-block-card__title{font-size:13px}.block-editor-inserter__preview-content{min-height:144px;background:#f0f0f0;display:-ms-grid;display:grid;flex-grow:1;align-items:center}.block-editor-inserter__preview-content-missing{flex:1;display:flex;justify-content:center;align-items:center;min-height:144px;color:#606a73;background:#f0f0f0}.block-editor-inserter__tips{border-top:1px solid #ddd;padding:16px;flex-shrink:0}.block-editor-inserter__manage-reusable-blocks-container{padding:16px}.block-editor-inserter__quick-inserter{width:100%}@media (min-width:782px){.block-editor-inserter__quick-inserter{width:350px}}.block-editor-inserter__quick-inserter-results{padding-bottom:16px}.block-editor-inserter__quick-inserter-results .block-editor-inserter__panel-header{height:0;padding:0;float:right}.block-editor-inserter__quick-inserter-patterns{display:-ms-grid;display:grid;-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr;grid-gap:8px}.block-editor-inserter__quick-inserter-separator{border-top:1px solid #ddd}.block-editor-inserter__popover.is-quick>.components-popover__content>div{padding:0}.block-editor-inserter__quick-inserter-expand.components-button{display:block;background:#1e1e1e;color:#fff;width:100%;height:44px;border-radius:0}.block-editor-inserter__quick-inserter-expand.components-button:hover{color:#fff}.block-editor-inserter__quick-inserter-expand.components-button:focus:not(:disabled){box-shadow:inset 0 0 0 1.5px #1e1e1e,inset 0 0 0 2px #fff}.block-editor-post-preview__dropdown{display:none;margin-left:12px;padding:0}.block-editor-post-preview__button-resize.block-editor-post-preview__button-resize{padding-right:40px}.block-editor-post-preview__button-resize.block-editor-post-preview__button-resize.has-icon{padding-right:8px}.block-editor-post-preview__dropdown-content .components-popover__content{overflow-y:visible}.block-editor-post-preview__dropdown-content .components-menu-group+.components-menu-group{border-top:1px solid #ccc;padding:8px 12px;margin-right:-12px;margin-left:-12px}@media (min-width:600px){.editor-post-preview{display:none}.block-editor-post-preview__dropdown{display:flex}} \ No newline at end of file +@charset "UTF-8";:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87}#start-resizable-editor-section{display:none}.block-editor-autocompleters__block .block-editor-block-icon{margin-left:8px}.block-editor-block-alignment-matrix-toolbar__popover .components-popover__content{min-width:0;width:auto}.block-editor-block-alignment-matrix-toolbar__popover .components-popover__content>div{padding:8px}.block-editor-block-icon{display:flex;align-items:center;justify-content:center;width:24px;height:24px}.block-editor-block-icon.has-colors svg{fill:currentColor}.block-editor-block-icon svg{min-width:20px;min-height:20px;max-width:24px;max-height:24px}.block-editor-block-inspector .components-base-control{margin-bottom:24px}.block-editor-block-inspector .components-base-control:last-child{margin-bottom:8px}.block-editor-block-inspector .components-panel__body{border:none;border-top:1px solid #f0f0f0}.block-editor-block-inspector .block-editor-block-card{padding:16px}.block-editor-block-inspector__no-blocks{display:block;font-size:13px;background:#fff;padding:32px 16px;text-align:center}.block-editor-block-list__layout .block-editor-block-list__block .reusable-block-edit-panel *{z-index:1}.block-editor-block-styles .block-editor-block-list__block{margin:0}.block-editor-block-list__layout .block-editor-block-list__block{position:relative;overflow-wrap:break-word}.block-editor-block-list__layout .block-editor-block-list__block .components-placeholder .components-with-notices-ui{margin:-10px 0 12px}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui{margin:0 0 12px;width:100%}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice{margin-right:0;margin-left:0}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice .components-notice__content{font-size:13px}.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus{outline:none}.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus:after{position:absolute;z-index:1;pointer-events:none;content:"";top:1px;bottom:1px;right:1px;left:1px;box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);border-radius:1px}.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus:after{box-shadow:0 0 0 1.5px #fff}.block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected){opacity:.5;transition:opacity .1s linear}@media (prefers-reduced-motion:reduce){.block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected){transition-duration:0s}}.block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected).is-focused,.block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected):not(.is-focused) .block-editor-block-list__block{opacity:1}.block-editor-block-list__layout .block-editor-block-list__block,.block-editor-block-list__layout .block-list-appender{position:relative}.block-editor-block-list__layout .block-editor-block-list__block.is-drop-target:before,.block-editor-block-list__layout .block-list-appender.is-drop-target:before{content:"";position:absolute;z-index:0;pointer-events:none;transition:border-color .1s linear,border-style .1s linear,box-shadow .1s linear;top:-14px;left:0;right:0;border-top:4px solid #007cba;border-top:4px solid var(--wp-admin-theme-color)}.block-editor-block-list__layout .block-editor-block-list__block.is-drop-target.is-dropping-horizontally:before,.block-editor-block-list__layout .block-list-appender.is-drop-target.is-dropping-horizontally:before{top:0;bottom:0;right:-6px;border-top:none;border-right:4px solid #007cba;border-right:4px solid var(--wp-admin-theme-color)}.block-editor-block-list__layout{position:relative}.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:after{position:absolute;z-index:1;pointer-events:none;content:"";top:1px;bottom:1px;right:1px;left:1px}.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:after{box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);border-radius:1px;transition:box-shadow .2s ease-out;outline:2px solid transparent}@media (prefers-reduced-motion:reduce){.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:after{transition-duration:0s}}.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:after,.is-dark-theme .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered:after,.is-dark-theme .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:after{box-shadow:0 0 0 1.5px #fff}.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted .components-placeholder ::selection,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected .components-placeholder ::selection,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered .components-placeholder ::selection,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected .components-placeholder ::selection{background:transparent}.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered:not(.is-selected):after{box-shadow:0 0 0 1px #949494}.is-block-moving-mode .block-editor-block-list__layout .block-editor-block-list__block.has-child-selected{box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);outline:1.5px solid transparent}.is-block-moving-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:before{content:"";position:absolute;z-index:0;pointer-events:none;transition:border-color .1s linear,border-style .1s linear,box-shadow .1s linear;left:0;right:0;top:-14px;border-radius:2px;border-top:4px solid #ccc}.is-block-moving-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:after{content:none}.is-block-moving-mode.can-insert-moving-block .block-editor-block-list__layout .block-editor-block-list__block.is-selected:before{border-color:#007cba;border-color:var(--wp-admin-theme-color)}.is-block-moving-mode.block-editor-block-list__block-selection-button{opacity:0;font-size:1px;height:1px;padding:0}.block-editor-block-list__layout .block-editor-block-list__block.has-warning{min-height:36px}.block-editor-block-list__layout .block-editor-block-list__block:after{content:"";pointer-events:none;position:absolute;top:0;left:0;bottom:0;right:0;border-radius:2px;box-shadow:0 0 0 1.5px transparent;transition:box-shadow .1s ease-in}@media (prefers-reduced-motion:reduce){.block-editor-block-list__layout .block-editor-block-list__block:after{transition-duration:0s}}.block-editor-block-list__layout .block-editor-block-list__block.has-warning>*{pointer-events:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.block-editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-warning{pointer-events:all}.block-editor-block-list__layout .block-editor-block-list__block.has-warning:after{content:"";position:absolute;top:0;left:0;bottom:0;right:0;border-radius:2px;background-color:hsla(0,0%,100%,.4)}.block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-multi-selected:after{background-color:transparent}.block-editor-block-list__layout .block-editor-block-list__block.is-reusable>.block-editor-inner-blocks>.block-editor-block-list__layout.has-overlay:after{display:none}.block-editor-block-list__layout .block-editor-block-list__block.is-reusable>.block-editor-inner-blocks>.block-editor-block-list__layout.has-overlay .block-editor-block-list__layout.has-overlay:after{display:block}.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block{cursor:default}.block-editor-block-list__layout .block-editor-block-list__block[data-clear=true]{float:none}.block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__layout .block-editor-default-block-appender .block-editor-inserter{right:auto;left:8px}.block-editor-block-list__layout .wp-block{margin-right:auto;margin-left:auto}.wp-block[data-align=left],.wp-block[data-align=right]{width:100%;height:0}.wp-block[data-align=left]:before,.wp-block[data-align=right]:before{content:none}.wp-block[data-align=left]>*,.wp-block[data-align=right]>*{z-index:21}.wp-block[data-align=left]>*{float:left;margin-right:2em}.wp-block[data-align=right]>*{float:right;margin-left:2em}.wp-block[data-align=full],.wp-block[data-align=wide]{clear:both}.block-editor-block-list .block-editor-inserter{margin:8px;cursor:move;cursor:grab}.block-editor-block-list__insertion-point{position:relative;z-index:6;margin-top:-14px}.block-editor-block-list__insertion-point-indicator{position:absolute;top:calc(50% - 1px);height:1.5px;right:0;left:0;background:#007cba;background:var(--wp-admin-theme-color)}.block-editor-block-list__insertion-point-inserter{display:none;justify-content:center;cursor:text}@media (min-width:480px){.block-editor-block-list__insertion-point-inserter{display:flex}}.block-editor-block-list__insertion-point-inserter.is-inserter-hidden .block-editor-inserter__toggle{visibility:hidden;pointer-events:none}.block-editor-block-list__block-popover-inserter{position:absolute;top:-9999em;margin-bottom:14px}.block-editor-block-list__block-popover-inserter.is-visible{position:static}.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon,.block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon{background:#1e1e1e;border-radius:2px;color:#fff;padding:0;min-width:24px;height:24px}.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button.has-icon:hover,.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon:hover,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon:hover,.block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon:hover{color:#fff}.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button{animation:block-editor-inserter__toggle__fade-in-animation-delayed .3s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button{animation-duration:1ms}}@keyframes block-editor-inserter__toggle__fade-in-animation-delayed{0%{opacity:0}80%{opacity:0}to{opacity:1}}@keyframes block-editor-inserter__toggle__fade-in-animation{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}.wp-block .block-list-appender .block-editor-inserter__toggle{animation:block-editor-inserter__toggle__fade-in-animation .1s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.wp-block .block-list-appender .block-editor-inserter__toggle{animation-duration:1ms}}.block-editor-block-list__block:not(.is-selected):not(.has-child-selected) .block-editor-default-block-appender{display:none}.block-editor-block-list__block:not(.is-selected):not(.has-child-selected) .block-editor-default-block-appender .block-editor-inserter__toggle{opacity:0;transform:scale(0)}.block-editor-block-list__block>.block-editor-block-list__insertion-point{position:absolute;top:-16px;height:28px;bottom:auto;right:14px;left:14px}.block-editor-block-list__block .block-editor-block-list__block-html-textarea{display:block;margin:0;width:100%;border:none;outline:none;box-shadow:none;resize:none;overflow:hidden;font-family:Menlo,Consolas,monaco,monospace;font-size:15px;line-height:150%;transition:padding .2s linear}@media (prefers-reduced-motion:reduce){.block-editor-block-list__block .block-editor-block-list__block-html-textarea{transition-duration:0s}}.block-editor-block-list__block .block-editor-block-list__block-html-textarea:focus{box-shadow:none}.block-editor-block-contextual-toolbar{border:1px solid #1e1e1e;border-radius:2px;background-color:#fff}.block-editor-block-contextual-toolbar .block-editor-block-toolbar .components-toolbar,.block-editor-block-contextual-toolbar .block-editor-block-toolbar .components-toolbar-group,.block-editor-block-contextual-toolbar .block-editor-block-toolbar__mover-switcher-container{border-left-color:#1e1e1e}.block-editor-block-contextual-toolbar .block-editor-block-toolbar__mover-switcher-container{border-left-style:solid;border-left-width:1px}.block-editor-block-contextual-toolbar .block-editor-block-toolbar__block-switcher-wrapper .block-editor-block-switcher__no-switcher-icon:before,.block-editor-block-contextual-toolbar .block-editor-block-toolbar__block-switcher-wrapper .block-editor-block-switcher__toggle:before{width:28px}.block-editor-block-contextual-toolbar .block-editor-block-toolbar__block-switcher-wrapper .block-editor-block-icon svg{margin-right:10px}.block-editor-block-contextual-toolbar .block-editor-block-toolbar__block-switcher-wrapper .block-editor-block-switcher:last-child .block-editor-block-icon svg{margin-right:auto}.block-editor-block-contextual-toolbar .block-editor-block-toolbar__block-switcher-wrapper .components-toolbar,.block-editor-block-contextual-toolbar .block-editor-block-toolbar__block-switcher-wrapper .components-toolbar-group{border-left:none}.block-editor-block-contextual-toolbar .block-editor-block-mover{margin-right:-12px;width:36px}.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal{width:48px}.block-editor-block-contextual-toolbar .block-editor-block-mover .components-button.has-icon.block-editor-block-mover-button.block-editor-block-mover-button{min-width:36px;width:36px}.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .components-button.has-icon.block-editor-block-mover-button.block-editor-block-mover-button{min-width:24px;width:24px}.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button>svg{margin-right:2px}.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-up-button svg{margin-top:3px}.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-down-button svg{margin-bottom:3px}.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button:focus:before{right:0!important;min-width:0;width:28px}.block-editor-block-list__block-selection-button{display:block;z-index:22}.block-editor-block-list__block-selection-button .components-button{font-size:13px;height:46px;padding:12px 16px;position:relative;top:-1px;box-shadow:0 0 0 1px #1e1e1e;border-radius:1px;background-color:#fff}.block-editor-block-list__block-selection-button .components-button:focus{box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color)}.block-editor-block-list__block .block-editor-warning{z-index:5;position:relative}.block-editor-block-list__block .block-editor-warning.block-editor-block-list__block-crash-warning{margin-bottom:auto}.block-editor-block-list__insertion-point-popover.is-without-arrow{z-index:28;position:absolute}.block-editor-block-list__insertion-point-popover.is-without-arrow .components-popover__content.components-popover__content{background:none;border:none;box-shadow:none;overflow-y:visible;margin-right:0}.components-popover.block-editor-block-list__block-popover{z-index:31;position:absolute}.components-popover.block-editor-block-list__block-popover .components-popover__content{margin:0!important;min-width:auto;width:max-content;background:none;border:none;box-shadow:none;overflow-y:visible;pointer-events:none}.components-popover.block-editor-block-list__block-popover .components-popover__content>*{pointer-events:all}.components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-contextual-toolbar,.components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-list__block-selection-button{margin-bottom:12px}.is-dragging-components-draggable .components-popover.block-editor-block-list__block-popover{opacity:0}.is-dragging-components-draggable .components-tooltip{display:none}.block-editor-block-list__block .block-list-appender{margin:8px 0}.has-background .block-editor-block-list__block .block-list-appender{margin:20px 8px}.block-editor-block-list__block .block-list-appender .block-list-appender__toggle{padding:0;opacity:1;transform:scale(1);transition:all .1s ease}@media (prefers-reduced-motion:reduce){.block-editor-block-list__block .block-list-appender .block-list-appender__toggle{transition-duration:0s}}.block-list-appender>.block-editor-inserter{display:block}.block-editor-block-list__block:not(.is-selected):not(.has-child-selected):not(.block-editor-block-list__layout) .block-editor-block-list__layout>.block-list-appender .block-list-appender__toggle{opacity:0;transform:scale(0)}.block-editor-block-breadcrumb{list-style:none;padding:0;margin:0}.block-editor-block-breadcrumb li{display:inline-block;margin:0}.block-editor-block-breadcrumb li:not(:last-child):after{content:"←"}.block-editor-block-breadcrumb__button.components-button{height:24px;line-height:24px;padding:0;position:relative}.block-editor-block-breadcrumb__button.components-button:hover:not(:disabled){text-decoration:underline;box-shadow:none}.block-editor-block-breadcrumb__button.components-button:focus{box-shadow:none}.block-editor-block-breadcrumb__button.components-button:focus:before{content:"";display:block;position:absolute;border-radius:2px;top:1px;left:1px;bottom:1px;right:1px;box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color)}.block-editor-block-breadcrumb__current{cursor:default}.block-editor-block-breadcrumb__button.components-button,.block-editor-block-breadcrumb__current{color:#1e1e1e;padding:0 8px;font-size:inherit}.block-editor-block-card{display:flex;align-items:flex-start}.block-editor-block-card__icon{border:1px solid #ccd0d4;padding:7px;margin-left:10px;height:36px;width:36px}.block-editor-block-card__content{flex-grow:1}.block-editor-block-card__title{font-weight:500}.block-editor-block-card__title.block-editor-block-card__title{margin:0 0 5px}.block-editor-block-card__description{font-size:13px}.block-editor-block-card .block-editor-block-icon{margin-right:-2px;margin-left:10px;padding:0 3px;width:36px;height:24px}.block-editor-block-compare{overflow:auto;height:auto}@media (min-width:600px){.block-editor-block-compare{max-height:70%}}.block-editor-block-compare__wrapper{display:flex;padding-bottom:16px}.block-editor-block-compare__wrapper>div{display:flex;justify-content:space-between;flex-direction:column;width:50%;padding:0 0 0 16px;min-width:200px}.block-editor-block-compare__wrapper>div button{float:left}.block-editor-block-compare__wrapper .block-editor-block-compare__converted{border-right:1px solid #ddd;padding-right:15px;padding-left:0}.block-editor-block-compare__wrapper .block-editor-block-compare__html{font-family:Menlo,Consolas,monaco,monospace;font-size:12px;color:#1e1e1e;border-bottom:1px solid #ddd;padding-bottom:15px;line-height:1.7}.block-editor-block-compare__wrapper .block-editor-block-compare__html span{background-color:#e6ffed;padding-top:3px;padding-bottom:3px}.block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__added{background-color:#acf2bd}.block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__removed{background-color:#d94f4f}.block-editor-block-compare__wrapper .block-editor-block-compare__preview{padding:14px 0 0}.block-editor-block-compare__wrapper .block-editor-block-compare__preview p{font-size:12px;margin-top:0}.block-editor-block-compare__wrapper .block-editor-block-compare__action{margin-top:14px}.block-editor-block-compare__wrapper .block-editor-block-compare__heading{font-size:1em;font-weight:400;margin:.67em 0}.block-editor-block-draggable-chip-wrapper{position:absolute;top:-60px}.block-editor-block-draggable-chip{background-color:#1e1e1e;border-radius:2px;border:1px solid #1e1e1e;box-shadow:0 4px 6px rgba(0,0,0,.3);color:#fff;cursor:grabbing;display:inline-flex;height:48px;min-width:72px;padding:0 12px;-webkit-user-select:none;-ms-user-select:none;user-select:none}.block-editor-block-draggable-chip svg{fill:currentColor}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content{margin:auto}.block-editor-block-draggable-chip .components-flex__item{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.is-dragging.is-multi-selected,.is-dragging.is-selected{display:none!important}.block-editor-block-mobile-toolbar{display:flex;flex-direction:row;border-left:1px solid #ddd}.block-editor-block-mobile-toolbar .block-editor-block-mover-button{width:36px;height:36px;border-radius:2px;padding:3px;margin:0;justify-content:center;align-items:center}.block-editor-block-mobile-toolbar .block-editor-block-mover-button .dashicon{margin:auto}.block-editor-block-mobile-toolbar .block-editor-block-mover{display:flex;margin-left:auto}.block-editor-block-mobile-toolbar .block-editor-block-mover .block-editor-block-mover-button{float:right}.block-editor-block-mover{display:inline-flex;flex-direction:row}.block-editor-block-mover-button__description{display:none}.block-editor-block-mover-button.has-icon{padding:0}.block-editor-block-mover .components-toolbar,.block-editor-block-mover .components-toolbar-group{flex-direction:column;flex:1}.block-editor-block-mover.is-horizontal .components-toolbar,.block-editor-block-mover.is-horizontal .components-toolbar-group{flex-direction:row}.block-editor-block-mover .block-editor-block-mover-button{height:24px;width:48px;padding:0!important}.block-editor-block-mover .block-editor-block-mover-button:before{right:8px!important;left:8px!important}.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-up-button svg,.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-up-button svg{margin-bottom:-8px}.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-up-button:before,.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-up-button:before{bottom:0;height:calc(100% - 8px)}.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-down-button svg,.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-down-button svg{margin-top:-8px}.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-down-button:before,.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-down-button:before{top:0;height:calc(100% - 8px)}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.has-icon{height:48px;width:24px;min-width:24px;padding-right:0;padding-left:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.has-icon:before{top:8px;bottom:8px;min-width:0;width:auto;height:auto}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-up-button.has-icon svg{margin-right:0;margin-left:-8px;margin-bottom:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-up-button.has-icon:before{right:8px!important;left:0!important}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-down-button.has-icon svg{margin-right:-8px;margin-left:0;margin-top:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-down-button.has-icon:before{right:0!important;left:8px!important}.block-editor-block-navigation__label{margin:0 0 12px;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500}.block-editor-block-navigation__container{padding:7px}.block-editor-block-navigation-tree{width:100%;border-collapse:collapse;padding:0;margin:0}.block-editor-block-navigation-leaf{position:relative}.block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents{display:flex;align-items:center;width:calc(100% - .8em);height:auto;padding:12px 6px;margin-top:auto;margin-bottom:auto;text-align:right;color:#40464d;border-radius:2px}.components-modal__content .block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents{padding-right:0;padding-left:0}.block-editor-block-navigation-leaf.is-visible .block-editor-block-navigation-block-contents{opacity:1;animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.block-editor-block-navigation-leaf.is-visible .block-editor-block-navigation-block-contents{animation-duration:1ms}}.block-editor-block-navigation-leaf .block-editor-block-icon{align-self:flex-start;margin-left:6px}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__contents-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell{padding-top:0;padding-bottom:0}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell{width:36px;opacity:0;vertical-align:top}@media (prefers-reduced-motion:reduce){.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell{transition-duration:0s}}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell.is-visible,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell.is-visible{opacity:1;animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell.is-visible,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell.is-visible{animation-duration:1ms}}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell .components-button.has-icon,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell .components-button.has-icon{width:24px;min-width:24px;padding:0}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell{padding-top:8px}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell-alignment-wrapper{display:flex;height:100%;flex-direction:column;align-items:center}.block-editor-block-navigation-leaf .block-editor-block-mover-button{position:relative;width:36px;height:24px}.block-editor-block-navigation-leaf .block-editor-block-mover-button svg{position:relative;height:24px}.block-editor-block-navigation-leaf .block-editor-block-mover-button.is-up-button{align-items:flex-end}.block-editor-block-navigation-leaf .block-editor-block-mover-button.is-up-button svg{bottom:-4px}.block-editor-block-navigation-leaf .block-editor-block-mover-button.is-down-button{align-items:flex-start}.block-editor-block-navigation-leaf .block-editor-block-mover-button.is-down-button svg{top:-4px}.block-editor-block-navigation-leaf .block-editor-block-mover-button:focus:enabled{box-shadow:none;outline:none}.block-editor-block-navigation-leaf .block-editor-block-mover-button:focus{box-shadow:none;outline:none}.block-editor-block-navigation-leaf .block-editor-block-mover-button:focus:before{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 0 0 4px #fff;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 0 0 4px #fff;outline:2px solid transparent}.block-editor-block-navigation-leaf .block-editor-block-mover-button:before{content:"";position:absolute;display:block;border-radius:2px;height:16px;min-width:100%;right:0;left:0;animation:components-button__appear-animation .1s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.block-editor-block-navigation-leaf .block-editor-block-mover-button:before{animation-duration:1ms}}.block-editor-block-navigation-leaf .block-editor-inserter__toggle{background:#1e1e1e;color:#fff;height:24px;margin:6px 1px 6px 6px;min-width:24px}.block-editor-block-navigation-leaf .block-editor-inserter__toggle:active{color:#fff}.block-editor-block-navigation-appender__description,.block-editor-block-navigation-block-select-button__description,.block-editor-block-navigation-block-slot__description{display:none}.block-editor-block-navigation-appender__cell .block-editor-block-navigation-appender__container,.block-editor-block-navigation-appender__cell .block-editor-block-navigation-block__contents-container,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigation-appender__container,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigation-block__contents-container{display:flex}.block-editor-block-navigation-appender__cell .block-editor-block-navigation-block__contents-container,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigation-block__contents-container{min-height:56px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line{position:relative;flex-shrink:0;width:24px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line:first-child,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line:first-child{width:18px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line.has-item{margin-left:6px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line:before,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line:before{content:"";display:block;position:absolute;top:1px;bottom:-2px;left:-1px;border-left:2px solid #a2aab2}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.is-terminated:before,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line.is-terminated:before{border-color:transparent}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item.is-last-row,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line.has-item.is-last-row{height:26px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item:after,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line.has-item:after{content:"";display:block;position:absolute;top:26px;right:100%;width:5px;border-bottom:2px solid #a2aab2}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item.is-last-row{height:16px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item.is-last-row:after{top:100%}.block-editor-block-parent-selector{background:#fff;border-radius:2px}.block-editor-block-parent-selector .block-editor-block-parent-selector__button{width:48px;height:48px;border:1px solid #1e1e1e;border-radius:2px}.block-editor-block-patterns-list__item{border-radius:2px;cursor:pointer;margin-top:16px;transition:all .05s ease-in-out;position:relative;border:1px solid transparent}.block-editor-block-patterns-list__item:hover{border:1px solid #007cba;border:1px solid var(--wp-admin-theme-color)}.block-editor-block-patterns-list__item:focus{box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-block-patterns-list__item.is-placeholder{min-height:100px}.block-editor-block-patterns-list__item-title{padding:4px;font-size:12px;text-align:center}.block-editor-block-preview__container{position:relative;width:100%;overflow:hidden}.block-editor-block-preview__container.editor-styles-wrapper{padding:0;margin:0}.block-editor-block-preview__content{position:absolute;top:0;right:0;transform-origin:top right;text-align:initial;margin:0;overflow:visible;min-height:auto}.block-editor-block-preview__content .block-editor-block-drop-zone,.block-editor-block-preview__content .block-editor-block-list__insertion-point,.block-editor-block-preview__content .block-list-appender,.block-editor-block-preview__content .reusable-block-indicator{display:none}.block-editor-block-preview__content .block-editor-block-list__layout.is-root-container{padding-right:0;padding-left:0}.block-editor-block-preview__content .block-editor-block-list__layout.is-root-container>.wp-block[data-align=full]{margin-right:0;margin-left:0}.block-editor-block-settings-menu__popover .components-dropdown-menu__menu{padding:0}.block-editor-block-styles{display:flex;flex-wrap:wrap;justify-content:space-between}.block-editor-block-styles__item{width:calc(50% - 4px);margin:4px 0;flex-shrink:0;cursor:pointer;overflow:hidden;border-radius:2px;padding:6px;display:flex;flex-direction:column}.block-editor-block-styles__item:focus{box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-block-styles__item:hover .block-editor-block-styles__item-preview{border-color:#007cba;border-color:var(--wp-admin-theme-color)}.block-editor-block-styles__item.is-active .block-editor-block-styles__item-label{font-weight:700}.block-editor-block-styles__item.is-active .block-editor-block-styles__item-preview{border:2px solid #1e1e1e}.block-editor-block-styles__item-preview{outline:1px solid transparent;padding:0;border-radius:2px;display:flex;overflow:hidden;background:#fff;align-items:center;flex-grow:1;min-height:80px}.block-editor-block-switcher__styles__menugroup{position:relative}.block-editor-block-styles__item-label{text-align:center;padding:4px 0}.block-editor-block-switcher,.block-editor-block-switcher__no-switcher-icon,.block-editor-block-switcher__toggle{position:relative}.components-button.block-editor-block-switcher__no-switcher-icon,.components-button.block-editor-block-switcher__toggle{margin:0;display:block;height:48px}.components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon,.components-button.block-editor-block-switcher__toggle .block-editor-block-icon{margin:auto}.components-button.block-editor-block-switcher__no-switcher-icon{width:48px}.components-button.block-editor-block-switcher__no-switcher-icon .block-editor-blocks-icon{margin-left:auto;margin-right:auto}.components-button.block-editor-block-switcher__no-switcher-icon:disabled{opacity:1}.components-button.block-editor-block-switcher__no-switcher-icon:disabled,.components-button.block-editor-block-switcher__no-switcher-icon:disabled .block-editor-block-icon.has-colors{color:#1e1e1e!important}.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon,.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon{padding:0}.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon .block-editor-block-icon,.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon .block-editor-block-icon,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon .block-editor-block-icon,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon .block-editor-block-icon{height:100%;position:relative;margin:0 auto;display:flex;align-items:center}.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon:before,.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon:before,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon:before,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon:before{top:8px;left:8px;bottom:8px;right:8px}.components-popover.block-editor-block-switcher__popover .components-popover__content{min-width:300px}.components-popover.block-editor-block-switcher__popover .components-popover__content>div{min-width:auto;display:flex;background:#fff;padding:0}.components-popover.block-editor-block-switcher__popover .components-popover__content>div .components-menu-group{padding:16px;margin:0}.block-editor-block-switcher__popover .components-popover__content .block-editor-block-styles{margin:0 -3px}.block-editor-block-switcher__popover .components-popover__content .components-panel__body{border:0;position:relative;z-index:1}.block-editor-block-switcher__popover .components-popover__content .components-panel__body+.components-panel__body{border-top:1px solid #f0f0f0}.block-editor-block-switcher__popover__preview__parent .block-editor-block-switcher__popover__preview__container{position:absolute;top:-12px;right:calc(100% + 32px)}.block-editor-block-switcher__preview__popover{display:none}.block-editor-block-switcher__preview__popover.components-popover{margin-right:4px;margin-top:11px}@media (min-width:782px){.block-editor-block-switcher__preview__popover{display:block}}.block-editor-block-switcher__preview__popover .components-popover__content{box-shadow:none;border:1px solid #1e1e1e;background:#fff;border-radius:2px}.block-editor-block-switcher__preview__popover .block-editor-block-switcher__preview{width:300px;height:auto;padding:16px}.block-editor-block-switcher__preview-title{margin-bottom:12px;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle{height:48px}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon{width:48px}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-switcher__transform,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-icon,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform{width:48px;height:48px}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-switcher__transform,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform{padding:12px}.block-editor-block-types-list{list-style:none;padding:4px;margin-right:-4px;margin-left:-4px;overflow:hidden;display:flex;flex-wrap:wrap}.block-editor-block-variation-picker .components-placeholder__instructions{margin-bottom:0}.block-editor-block-variation-picker .components-placeholder__fieldset{flex-direction:column}.block-editor-block-variation-picker.has-many-variations .components-placeholder__fieldset{max-width:90%}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations{display:flex;justify-content:flex-start;flex-direction:row;flex-wrap:wrap;width:100%;margin:16px 0;padding:0;list-style:none}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations>li{list-style:none;margin:8px 0 0 8px;flex-shrink:1;max-width:100px}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations>li button{display:flex}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations .block-editor-block-variation-picker__variation{padding:8px}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations .block-editor-block-variation-picker__variation-label{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:12px;display:block;margin-left:12px;text-align:center}.block-editor-block-variation-picker__variation{width:100%}.block-editor-block-variation-picker__variation.components-button.has-icon{justify-content:center;width:auto}.block-editor-block-variation-picker__variation.components-button.has-icon.is-secondary{background-color:#fff}.block-editor-block-variation-picker__variation.components-button{height:auto;padding:0}.block-editor-block-variation-picker__variation:before{content:"";padding-bottom:100%}.block-editor-block-variation-picker__variation:first-child{margin-right:0}.block-editor-block-variation-picker__variation:last-child{margin-left:0}.block-editor-button-block-appender{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:8px;width:100%;height:auto;color:#1e1e1e;box-shadow:inset 0 0 0 1px #1e1e1e}.block-editor-button-block-appender:hover{box-shadow:inset 0 0 0 1px #007cba;box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color)}.block-editor-button-block-appender:focus{box-shadow:inset 0 0 0 2px #007cba;box-shadow:inset 0 0 0 2px var(--wp-admin-theme-color)}.block-editor-button-block-appender:active{color:#000}.block-editor-button-block-appender.block-list-appender__toggle{display:flex;flex-direction:row;color:#1e1e1e;box-shadow:none;height:24px;padding:0;margin-right:8px}.block-editor-button-block-appender.block-list-appender__toggle:active{color:#fff}.block-editor-button-block-appender.block-list-appender__toggle>svg{width:24px;background-color:#1e1e1e;color:#fff;border-radius:2px}.block-editor-color-gradient-control__color-indicator{margin-bottom:8px}.block-editor-color-gradient-control__button-tabs{display:block;margin-bottom:8px}.block-editor-panel-color-gradient-settings .component-color-indicator{vertical-align:text-bottom}.block-editor-panel-color-gradient-settings__panel-title .component-color-indicator{display:inline-block}.block-editor-panel-color-gradient-settings.is-opened .block-editor-panel-color-gradient-settings__panel-title .component-color-indicator{display:none}.block-editor-contrast-checker>.components-notice{margin:0}.block-editor-default-block-appender{clear:both;margin-right:auto;margin-left:auto;position:relative}.block-editor-default-block-appender[data-root-client-id=""] .block-editor-default-block-appender__content:hover{outline:1px solid transparent}.block-editor-default-block-appender textarea.block-editor-default-block-appender__content{font-family:inherit;font-size:inherit;border:none;background:none;box-shadow:none;display:block;cursor:text;width:100%;outline:1px solid transparent;transition:outline .2s;resize:none;margin-top:28px;margin-bottom:28px;padding:0 0 0 50px;color:rgba(30,30,30,.62)}@media (prefers-reduced-motion:reduce){.block-editor-default-block-appender textarea.block-editor-default-block-appender__content{transition-duration:0s}}.is-dark-theme .block-editor-default-block-appender textarea.block-editor-default-block-appender__content{color:hsla(0,0%,100%,.65)}.block-editor-default-block-appender .components-drop-zone__content-icon{display:none}.block-editor-default-block-appender__content{line-height:1.8}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter,.block-editor-default-block-appender .block-editor-inserter{position:absolute;top:0;height:32px}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle,.block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle{margin-left:0}.block-editor-block-list__empty-block-inserter,.block-editor-default-block-appender .block-editor-inserter{left:8px}@media (min-width:600px){.block-editor-block-list__empty-block-inserter,.block-editor-default-block-appender .block-editor-inserter{display:flex;height:100%}}.block-editor-block-list__empty-block-inserter:disabled,.block-editor-default-block-appender .block-editor-inserter:disabled{display:none}@media (min-width:600px){.block-editor-default-block-appender .block-editor-inserter{align-items:center}}.block-editor-link-control{position:relative;min-width:360px}.components-popover__content .block-editor-link-control{min-width:auto;width:90vw;max-width:360px}.block-editor-link-control__search-input-wrapper{position:relative}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;font-size:16px;line-height:normal;width:calc(100% - 32px);display:block;padding:11px 16px 11px 36px;margin:16px;position:relative;border:1px solid #ddd;border-radius:2px}@media (prefers-reduced-motion:reduce){.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{transition-duration:0s}}@media (min-width:600px){.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{font-size:13px;line-height:normal}}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px #007cba;box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.block-editor-link-control .block-editor-link-control__search-input .components-base-control__field{margin-bottom:0}.block-editor-link-control__search-error{margin:-8px 16px 16px}.block-editor-link-control__search-actions{position:absolute;top:19px;left:19px}.block-editor-link-control__search-results-wrapper{position:relative;margin-top:-15px}.block-editor-link-control__search-results-wrapper:after,.block-editor-link-control__search-results-wrapper:before{content:"";position:absolute;right:-1px;left:16px;display:block;pointer-events:none;z-index:100}.block-editor-link-control__search-results-wrapper:before{height:8px;top:0;bottom:auto;background:linear-gradient(180deg,#fff 0,hsla(0,0%,100%,0))}.block-editor-link-control__search-results-wrapper:after{height:16px;bottom:0;top:auto;background:linear-gradient(180deg,hsla(0,0%,100%,0) 0,#fff)}.block-editor-link-control__search-results-label{padding:15px 30px 0;display:block;font-size:1.1em}.block-editor-link-control__search-results{margin:0;padding:8px 16px;max-height:200px;overflow-y:auto}.block-editor-link-control__search-results.is-loading{opacity:.2}.block-editor-link-control__search-item{position:relative;display:flex;align-items:center;font-size:13px;cursor:pointer;background:#fff;width:100%;border:none;text-align:right;padding:10px 15px;border-radius:5px;height:auto}.block-editor-link-control__search-item:focus,.block-editor-link-control__search-item:hover{background-color:#ddd}.block-editor-link-control__search-item:focus:not(:disabled){box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color) inset}.block-editor-link-control__search-item.is-selected{background:#f0f0f0}.block-editor-link-control__search-item.is-selected .block-editor-link-control__search-item-type{background:#fff}.block-editor-link-control__search-item.is-current{background:transparent;border:0;width:100%;cursor:default;padding:16px 24px 16px 16px}.block-editor-link-control__search-item .block-editor-link-control__search-item-header{display:block;margin-left:24px;overflow:hidden;white-space:nowrap}.block-editor-link-control__search-item .block-editor-link-control__search-item-icon{margin-left:1em;min-width:24px}.block-editor-link-control__search-item .block-editor-link-control__search-item-info,.block-editor-link-control__search-item .block-editor-link-control__search-item-title{max-width:230px;overflow:hidden;text-overflow:ellipsis}.block-editor-link-control__search-item .block-editor-link-control__search-item-title mark{color:#1e1e1e}.block-editor-link-control__search-item .block-editor-link-control__search-item-title{display:block;margin-bottom:.2em;font-weight:500}.block-editor-link-control__search-item .block-editor-link-control__search-item-title mark{font-weight:700;color:#000;background-color:transparent}.block-editor-link-control__search-item .block-editor-link-control__search-item-title span{font-weight:400}.block-editor-link-control__search-item .block-editor-link-control__search-item-info{display:block;color:#6c7781;font-size:.9em;line-height:1.3}.block-editor-link-control__search-item .block-editor-link-control__search-item-type{display:block;padding:3px 8px;margin-right:auto;font-size:.9em;background-color:#f0f0f0;border-radius:2px}.block-editor-link-control__loading{margin:16px;display:flex;align-items:center}.block-editor-link-control__loading .components-spinner{margin-top:0}.components-button+.block-editor-link-control__search-create{margin-top:20px;overflow:visible;padding:12px 15px}.components-button+.block-editor-link-control__search-create:before{content:"";position:absolute;top:-10px;right:0;display:block;width:100%;border-top:1px solid #ddd}.block-editor-link-control__search-results div[role=menu]>.block-editor-link-control__search-item.block-editor-link-control__search-item{padding:10px}.block-editor-link-control__settings{border-top:1px solid #ddd;margin:0;padding:16px 24px}.block-editor-link-control__settings :last-child{margin-bottom:0}.block-editor-link-control__setting{margin-bottom:16px}.block-editor-link-control__setting :last-child{margin-bottom:0}.block-editor-link-control .block-editor-link-control__search-input .components-spinner{display:block}.block-editor-link-control .block-editor-link-control__search-input .components-spinner.components-spinner{position:absolute;right:auto;bottom:auto;top:28px;left:62px}.block-editor-link-control__search-item-action{margin-right:auto;flex-shrink:0}.block-editor-line-height-control{margin-bottom:24px}.block-editor-line-height-control input{display:block;max-width:60px}.block-editor-image-size-control{margin-bottom:1em}.block-editor-image-size-control .block-editor-image-size-control__row{display:flex;justify-content:space-between}.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__height,.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__width{margin-bottom:.5em}.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__height input,.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__width input{line-height:1.25}.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__width{margin-left:5px}.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__height{margin-right:5px}.block-editor-block-list__layout.has-overlay:after{content:"";position:absolute;top:-14px;left:-14px;bottom:-14px;right:-14px;z-index:60}[data-align=full] .has-overlay:after{left:0;right:0}.block-editor-block-types-list__list-item{display:block;width:33.33%;padding:0;margin:0}.components-button.block-editor-block-types-list__item{display:flex;flex-direction:column;width:100%;font-size:13px;color:#32373c;padding:8px;align-items:stretch;justify-content:center;cursor:pointer;background:transparent;word-break:break-word;border-radius:2px;border:1px solid transparent;transition:all .05s ease-in-out;position:relative;height:auto}@media (prefers-reduced-motion:reduce){.components-button.block-editor-block-types-list__item{transition-duration:0s}}.components-button.block-editor-block-types-list__item:disabled{opacity:.6;cursor:default}.components-button.block-editor-block-types-list__item:not(:disabled):hover{border-color:#007cba;border-color:var(--wp-admin-theme-color);color:#007cba!important;color:var(--wp-admin-theme-color)!important}.components-button.block-editor-block-types-list__item:not(:disabled).is-active{color:#fff;background:#1e1e1e;outline:2px solid transparent;outline-offset:-2px}.block-editor-block-types-list__item-icon{padding:12px 20px;border-radius:2px;color:#1e1e1e;transition:all .05s ease-in-out}@media (prefers-reduced-motion:reduce){.block-editor-block-types-list__item-icon{transition-duration:0s}}.block-editor-block-types-list__item-icon .block-editor-block-icon{margin-right:auto;margin-left:auto}.block-editor-block-types-list__item-icon svg{transition:all .15s ease-out}@media (prefers-reduced-motion:reduce){.block-editor-block-types-list__item-icon svg{transition-duration:0s}}.block-editor-block-types-list__item-title{padding:4px 2px 8px;font-size:12px}.modal-open .block-editor-media-replace-flow__options{display:none}.block-editor-media-replace-flow__options .components-popover__content>div{padding-top:16px}.block-editor-media-replace-flow__indicator{margin-right:4px}.block-editor-media-replace-flow__media-upload-menu{margin-bottom:16px}.block-editor-media-flow__url-input .block-editor-media-replace-flow__image-url-label{top:16px}.block-editor-media-flow__url-input .block-editor-link-control{margin-top:-16px;width:auto}.block-editor-media-flow__url-input .block-editor-link-control .components-base-control .components-base-control__field{margin-bottom:0}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item-title{max-width:180px;margin-top:16px}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item.is-current{width:auto;padding:0}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{margin:16px 0 0;width:100%}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-actions{left:4px}.block-editor-media-flow__error{padding:0 20px 20px;max-width:255px}.block-editor-media-flow__error .components-with-notices-ui{max-width:255px}.block-editor-media-flow__error .components-with-notices-ui .components-notice__content{overflow:hidden;word-wrap:break-word}.block-editor-media-flow__error .components-with-notices-ui .components-notice__dismiss{position:absolute;left:10px}.block-editor-media-placeholder__url-input-container .block-editor-media-placeholder__button{margin-bottom:0}.block-editor-media-placeholder__url-input-form{display:flex}.block-editor-media-placeholder__url-input-form input[type=url].block-editor-media-placeholder__url-input-field{width:100%;flex-grow:1;border:none;border-radius:0;margin:2px}@media (min-width:600px){.block-editor-media-placeholder__url-input-form input[type=url].block-editor-media-placeholder__url-input-field{width:300px}}.block-editor-media-placeholder__url-input-submit-button{flex-shrink:1}.block-editor-media-placeholder__button{margin-bottom:.5rem}.block-editor-media-placeholder__cancel-button.is-link{margin:1em;display:block}.block-editor-media-placeholder.is-appender{min-height:0}.block-editor-media-placeholder.is-appender:hover{cursor:pointer;box-shadow:0 0 0 1px #007cba;box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.block-editor-multi-selection-inspector__card{display:flex;align-items:flex-start;padding:16px}.block-editor-multi-selection-inspector__card-content{flex-grow:1}.block-editor-multi-selection-inspector__card-title{font-weight:500;margin-bottom:5px}.block-editor-multi-selection-inspector__card-description{font-size:13px}.block-editor-multi-selection-inspector__card .block-editor-block-icon{margin-right:-2px;margin-left:10px;padding:0 3px;width:36px;height:24px}.block-editor .block-editor-plain-text{box-shadow:none;font-family:inherit;font-size:inherit;color:inherit;line-height:inherit;border:none;padding:0;margin:0;width:100%}.block-editor-responsive-block-control{margin-bottom:28px;border-bottom:1px solid #d7dade;padding-bottom:14px}.block-editor-responsive-block-control:last-child{padding-bottom:0;border-bottom:0}.block-editor-responsive-block-control__title{margin:0 -3px .6em 0}.block-editor-responsive-block-control__label{font-weight:600;margin-bottom:.6em;margin-right:-3px}.block-editor-responsive-block-control__inner{margin-right:-1px}.block-editor-responsive-block-control__toggle{margin-right:1px}.block-editor-responsive-block-control .components-base-control__help{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.block-editor-format-toolbar .components-dropdown-menu__toggle{justify-content:center}.block-editor-rich-text__editable>p:first-child{margin-top:0}.block-editor-rich-text__editable [data-rich-text-placeholder]{pointer-events:none}.block-editor-rich-text__editable [data-rich-text-placeholder]:after{content:attr(data-rich-text-placeholder);opacity:.62}.block-editor-rich-text__editable:focus{outline:none}.block-editor-rich-text__editable:focus [data-rich-text-format-boundary]{border-radius:2px}.block-editor-rich-text__editable:focus:not(.keep-placeholder-on-focus) [data-rich-text-placeholder]:after{display:none}figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]:before{opacity:.8}.components-popover.block-editor-rich-text__inline-format-toolbar{z-index:99998}.components-popover.block-editor-rich-text__inline-format-toolbar .components-popover__content{width:auto;min-width:auto;margin-bottom:8px;box-shadow:none;border:1px solid #1e1e1e;border-radius:2px;background-color:#fff}.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar,.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar-group{border:none}.components-popover.block-editor-rich-text__inline-format-toolbar .components-dropdown-menu__toggle,.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar__control{min-width:48px;min-height:48px;padding-right:12px;padding-left:12px}.block-editor-skip-to-selected-block{position:absolute;top:-9999em}.block-editor-skip-to-selected-block:focus{height:auto;width:auto;display:block;font-size:14px;font-weight:600;padding:15px 23px 14px;background:#f1f1f1;color:#007cba;color:var(--wp-admin-theme-color);line-height:normal;box-shadow:0 0 2px 2px rgba(0,0,0,.6);text-decoration:none;outline:none;z-index:100000}.block-editor-tool-selector__help{margin:8px -12px -12px;padding:12px 20px;border-top:1px solid #ddd;color:#6c7781}.block-editor-block-list__block .block-editor-url-input,.block-editor-url-input,.components-popover .block-editor-url-input{flex-grow:1;position:relative;padding:1px}.block-editor-block-list__block .block-editor-url-input input[type=text],.block-editor-url-input input[type=text],.components-popover .block-editor-url-input input[type=text]{width:100%;padding:8px;border:none;border-radius:0;margin-right:0;margin-left:0;font-size:16px}@media (min-width:600px){.block-editor-block-list__block .block-editor-url-input input[type=text],.block-editor-url-input input[type=text],.components-popover .block-editor-url-input input[type=text]{width:300px}}@media (min-width:600px){.block-editor-block-list__block .block-editor-url-input input[type=text],.block-editor-url-input input[type=text],.components-popover .block-editor-url-input input[type=text]{font-size:13px}}.block-editor-block-list__block .block-editor-url-input input[type=text]::-ms-clear,.block-editor-url-input input[type=text]::-ms-clear,.components-popover .block-editor-url-input input[type=text]::-ms-clear{display:none}.block-editor-block-list__block .block-editor-url-input.is-full-width,.block-editor-url-input.is-full-width,.components-popover .block-editor-url-input.is-full-width{width:100%}.block-editor-block-list__block .block-editor-url-input.is-full-width .block-editor-url-input__input[type=text],.block-editor-url-input.is-full-width .block-editor-url-input__input[type=text],.components-popover .block-editor-url-input.is-full-width .block-editor-url-input__input[type=text]{width:100%}.block-editor-block-list__block .block-editor-url-input.is-full-width__suggestions,.block-editor-url-input.is-full-width__suggestions,.components-popover .block-editor-url-input.is-full-width__suggestions{width:100%}.block-editor-block-list__block .block-editor-url-input .components-spinner,.block-editor-url-input .components-spinner,.components-popover .block-editor-url-input .components-spinner{position:absolute;left:8px;bottom:17px;margin:0}.block-editor-url-input__input[type=text]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal}@media (prefers-reduced-motion:reduce){.block-editor-url-input__input[type=text]{transition-duration:0s}}@media (min-width:600px){.block-editor-url-input__input[type=text]{font-size:13px;line-height:normal}}.block-editor-url-input__input[type=text]:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px #007cba;box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-url-input__input[type=text]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.block-editor-url-input__input[type=text]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.block-editor-url-input__input[type=text]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .block-editor-url-input__input[type=text]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-url-input__input[type=text]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-url-input__input[type=text]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.block-editor-url-input__suggestions{max-height:200px;transition:all .15s ease-in-out;padding:4px 0;width:302px;overflow-y:auto}@media (prefers-reduced-motion:reduce){.block-editor-url-input__suggestions{transition-duration:0s}}.block-editor-url-input .components-spinner,.block-editor-url-input__suggestions{display:none}@media (min-width:600px){.block-editor-url-input .components-spinner,.block-editor-url-input__suggestions{display:inherit}}.block-editor-url-input__suggestion{padding:4px 8px;color:#6c7781;display:block;font-size:13px;cursor:pointer;background:#fff;width:100%;border:none;text-align:right;box-shadow:none}.block-editor-url-input__suggestion:hover{background:#ddd}.block-editor-url-input__suggestion.is-selected,.block-editor-url-input__suggestion:focus{background:#005a87;background:var(--wp-admin-theme-color-darker-20);color:#fff;outline:none}.components-toolbar-group>.block-editor-url-input__button,.components-toolbar>.block-editor-url-input__button{position:inherit}.block-editor-url-input__button .block-editor-url-input__back{margin-left:4px;overflow:visible}.block-editor-url-input__button .block-editor-url-input__back:after{content:"";position:absolute;display:block;width:1px;height:24px;left:-1px;background:#ddd}.block-editor-url-input__button-modal{box-shadow:0 2px 6px rgba(0,0,0,.05);border:1px solid #ddd;background:#fff}.block-editor-url-input__button-modal-line{display:flex;flex-direction:row;flex-grow:1;flex-shrink:1;min-width:0;align-items:flex-start}.block-editor-url-input__button-modal-line .components-button{flex-shrink:0;width:36px;height:36px}.block-editor-url-popover__additional-controls{border-top:1px solid #ddd}.block-editor-url-popover__additional-controls>div[role=menu] .components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary)>svg{box-shadow:none}.block-editor-url-popover__additional-controls div[role=menu]>.components-button{padding-right:2px}.block-editor-url-popover__row{display:flex}.block-editor-url-popover__row>:not(.block-editor-url-popover__settings-toggle){flex-grow:1}.block-editor-url-popover .components-button.has-icon{padding:3px}.block-editor-url-popover .components-button.has-icon>svg{padding:5px;border-radius:2px;height:30px;width:30px}.block-editor-url-popover .components-button.has-icon:not(:disabled):focus{box-shadow:none}.block-editor-url-popover .components-button.has-icon:not(:disabled):focus>svg{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 0 0 4px #fff;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 0 0 4px #fff;outline:2px solid transparent}.block-editor-url-popover__settings-toggle{flex-shrink:0;border-radius:0;border-right:1px solid #ddd;margin-right:1px}.block-editor-url-popover__settings-toggle[aria-expanded=true] .dashicon{transform:rotate(-180deg)}.block-editor-url-popover__input-container .components-base-control:last-child,.block-editor-url-popover__input-container .components-base-control:last-child .components-base-control__field{margin-bottom:0}.block-editor-url-popover__settings{display:block;padding:16px;border-top:1px solid #ddd}.block-editor-url-popover__link-editor,.block-editor-url-popover__link-viewer{display:flex}.block-editor-url-popover__link-editor .block-editor-url-input .components-base-control__field,.block-editor-url-popover__link-viewer .block-editor-url-input .components-base-control__field{margin-bottom:0}.block-editor-url-popover__link-editor .block-editor-url-input .components-spinner,.block-editor-url-popover__link-viewer .block-editor-url-input .components-spinner{bottom:9px}.block-editor-url-popover__link-viewer-url{margin:7px;flex-grow:1;flex-shrink:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:150px;max-width:500px}.block-editor-url-popover__link-viewer-url.has-invalid-link{color:#d94f4f}.block-editor-warning{align-items:center;display:flex;flex-wrap:wrap;padding:6px 12px;border:1px solid #1e1e1e;border-radius:2px;background-color:#fff}.block-editor-warning,.block-editor-warning .block-editor-warning__message{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.block-editor-warning .block-editor-warning__message{line-height:1.4;margin:1em 0}.block-editor-warning p.block-editor-warning__message.block-editor-warning__message{min-height:auto}.block-editor-warning .block-editor-warning__contents{display:flex;flex-direction:row;justify-content:space-between;flex-wrap:wrap;align-items:baseline;width:100%}.block-editor-warning .block-editor-warning__actions{display:flex}.block-editor-warning .block-editor-warning__action{margin:0 8px 0 0}.block-editor-warning__secondary{margin:auto 8px auto 0}.block-editor-writing-flow{display:flex;flex-direction:column}.block-editor-writing-flow__click-redirect{cursor:text}.html-anchor-control .components-external-link{display:block;margin-top:8px}#end-resizable-editor-section{display:none}.block-editor-block-toolbar{display:flex;flex-grow:1;width:100%;overflow:auto;position:relative;transition:border-color .1s linear,box-shadow .1s linear}@media (prefers-reduced-motion:reduce){.block-editor-block-toolbar{transition-duration:0s}}@media (min-width:600px){.block-editor-block-toolbar{overflow:inherit}}.block-editor-block-toolbar .components-toolbar,.block-editor-block-toolbar .components-toolbar-group{background:none;line-height:0;margin-top:-1px;margin-bottom:-1px;border:0;border-left:1px solid #ddd}.block-editor-block-toolbar>:last-child,.block-editor-block-toolbar>:last-child .components-toolbar,.block-editor-block-toolbar>:last-child .components-toolbar-group{border-left:none}.block-editor-block-toolbar .components-toolbar,.block-editor-block-toolbar .components-toolbar-group,.block-editor-format-toolbar .components-toolbar,.block-editor-format-toolbar .components-toolbar-group{display:flex;flex-wrap:nowrap}.block-editor-block-toolbar__slot{display:inline-block;line-height:0}@supports ((position:-webkit-sticky) or (position:sticky)){.block-editor-block-toolbar__slot{display:inline-flex}}.block-editor-block-toolbar__block-parent-selector-wrapper{position:absolute;top:-1px;right:-1px;opacity:0;transition:all 60ms linear;z-index:-1}@media (prefers-reduced-motion:reduce){.block-editor-block-toolbar__block-parent-selector-wrapper{transition-duration:0s}}.is-showing-movers .block-editor-block-toolbar__block-parent-selector-wrapper{opacity:1;transform:translateY(-60px)}.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar__block-parent-selector-wrapper{display:none}.block-editor-block-toolbar__block-switcher-wrapper,.block-editor-block-toolbar__mover-switcher-container{display:flex}.block-editor-block-toolbar__block-switcher-wrapper .block-editor-block-switcher{display:block}.block-editor-inserter{display:inline-block;background:none;border:none;padding:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:1.4}@media (min-width:782px){.block-editor-inserter{position:relative}}.block-editor-inserter__popover .block-editor-inserter__menu{margin:-12px}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__tabs .components-tab-panel__tabs{top:60px}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__main-area{overflow:visible;height:auto}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__preview-container{display:none}.block-editor-inserter__toggle.components-button{display:inline-flex;align-items:center;cursor:pointer;border:none;outline:none;padding:0;transition:color .2s ease}@media (prefers-reduced-motion:reduce){.block-editor-inserter__toggle.components-button{transition-duration:0s}}.block-editor-inserter__menu{height:100%;position:relative;overflow:visible}.block-editor-inserter__main-area{width:auto;overflow-y:auto;height:100%}@media (min-width:782px){.block-editor-inserter__main-area{width:350px}}.block-editor-inserter__inline-elements{margin-top:-1px}.block-editor-inserter__menu.is-bottom:after{border-bottom-color:#fff}.components-popover.block-editor-inserter__popover{z-index:99998}.block-editor-inserter__search{padding:16px;position:-webkit-sticky;position:sticky;top:0;background:#fff;z-index:1}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;line-height:normal;display:block;padding:16px 16px 16px 48px;background:#f0f0f0;border:none;width:100%;height:48px;font-size:16px}@media (prefers-reduced-motion:reduce){.block-editor-inserter__search input[type=search].block-editor-inserter__search-input{transition-duration:0s}}@media (min-width:600px){.block-editor-inserter__search input[type=search].block-editor-inserter__search-input{font-size:13px;line-height:normal}}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px #007cba;box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-inserter__search input[type=search].block-editor-inserter__search-input:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}@media (min-width:600px){.block-editor-inserter__search input[type=search].block-editor-inserter__search-input{font-size:13px}}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input:focus{background:#fff;box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color)}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input:-ms-input-placeholder{color:#606a73}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-ms-input-placeholder{color:#606a73}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::placeholder{color:#606a73}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-webkit-search-cancel-button,.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-webkit-search-decoration,.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-webkit-search-results-button,.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-webkit-search-results-decoration{-webkit-appearance:none}.block-editor-inserter__search-icon{position:absolute;top:0;left:20px;bottom:0;display:flex;align-items:center}.block-editor-inserter__search-icon>svg{margin:8px}.block-editor-inserter__tabs{display:flex;flex-direction:column;margin-top:-8px}.block-editor-inserter__tabs .components-tab-panel__tabs{position:-webkit-sticky;position:sticky;top:72px;background:#fff;z-index:1;border-bottom:1px solid #ddd}.block-editor-inserter__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item{flex-grow:1;margin-bottom:-1px}.block-editor-inserter__tabs .components-tab-panel__tab-content{display:flex;flex-grow:1;flex-direction:column;position:relative}.block-editor-inserter__panel-header{display:inline-flex;align-items:center;padding:16px 16px 0}.block-editor-inserter__panel-content{padding:0 16px}.block-editor-inserter__panel-title{margin:0 0 0 12px;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500}.block-editor-inserter__block-list{flex-grow:1;position:relative}.block-editor-inserter__popover .block-editor-block-types-list{margin:0 -8px}.block-editor-inserter__reusable-blocks-panel{position:relative;text-align:left}.block-editor-inserter__manage-reusable-blocks{display:inline-block;margin:16px}.block-editor-inserter__no-results{padding:32px;margin-top:64px;text-align:center}.block-editor-inserter__no-results-icon{fill:#b5bcc2}.block-editor-inserter__child-blocks{padding:0 16px}.block-editor-inserter__parent-block-header{display:flex;align-items:center}.block-editor-inserter__parent-block-header h2{font-size:13px}.block-editor-inserter__parent-block-header .block-editor-block-icon{margin-left:8px}.block-editor-inserter__preview-container{display:none;width:300px;background:#fff;border-radius:2px;border:1px solid #ddd;position:absolute;top:16px;right:calc(100% + 16px)}@media (min-width:782px){.block-editor-inserter__preview-container{display:block}}.block-editor-inserter__preview-container .block-editor-block-card{padding:16px}.block-editor-inserter__preview-container .block-editor-block-card__title{font-size:13px}.block-editor-inserter__preview-content{min-height:144px;background:#f0f0f0;display:-ms-grid;display:grid;flex-grow:1;align-items:center}.block-editor-inserter__preview-content-missing{flex:1;display:flex;justify-content:center;align-items:center;min-height:144px;color:#606a73;background:#f0f0f0}.block-editor-inserter__tips{border-top:1px solid #ddd;padding:16px;flex-shrink:0}.block-editor-inserter__manage-reusable-blocks-container{padding:16px}.block-editor-inserter__quick-inserter{width:100%}@media (min-width:782px){.block-editor-inserter__quick-inserter{width:350px}}.block-editor-inserter__quick-inserter-results{padding-bottom:16px}.block-editor-inserter__quick-inserter-results .block-editor-inserter__panel-header{height:0;padding:0;float:right}.block-editor-inserter__quick-inserter-patterns{display:-ms-grid;display:grid;-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr;grid-gap:8px}.block-editor-inserter__quick-inserter-separator{border-top:1px solid #ddd}.block-editor-inserter__popover.is-quick>.components-popover__content>div{padding:0}.block-editor-inserter__quick-inserter-expand.components-button{display:block;background:#1e1e1e;color:#fff;width:100%;height:44px;border-radius:0}.block-editor-inserter__quick-inserter-expand.components-button:hover{color:#fff}.block-editor-inserter__quick-inserter-expand.components-button:focus:not(:disabled){box-shadow:inset 0 0 0 1.5px #1e1e1e,inset 0 0 0 2px #fff}.block-editor-post-preview__dropdown{display:none;margin-left:12px;padding:0}.block-editor-post-preview__button-resize.block-editor-post-preview__button-resize{padding-right:40px}.block-editor-post-preview__button-resize.block-editor-post-preview__button-resize.has-icon{padding-right:8px}.block-editor-post-preview__dropdown-content .components-popover__content{overflow-y:visible}.block-editor-post-preview__dropdown-content .components-menu-group+.components-menu-group{border-top:1px solid #ccc;padding:8px 12px;margin-right:-12px;margin-left:-12px}@media (min-width:600px){.editor-post-preview{display:none}.block-editor-post-preview__dropdown{display:flex}} \ No newline at end of file diff --git a/wp-includes/css/dist/block-editor/style.css b/wp-includes/css/dist/block-editor/style.css index 46463c433e..b71d85d2aa 100644 --- a/wp-includes/css/dist/block-editor/style.css +++ b/wp-includes/css/dist/block-editor/style.css @@ -505,10 +505,6 @@ .block-editor-block-contextual-toolbar .block-editor-block-mover .components-button.has-icon.block-editor-block-mover-button.block-editor-block-mover-button { min-width: 36px; width: 36px; } - [draggable="true"] .block-editor-block-contextual-toolbar .block-editor-block-mover .components-button.has-icon.block-editor-block-mover-button.block-editor-block-mover-button { - cursor: grab; } - [draggable="true"] .block-editor-block-contextual-toolbar .block-editor-block-mover .components-button.has-icon.block-editor-block-mover-button.block-editor-block-mover-button:active { - cursor: grabbing; } .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .components-button.has-icon.block-editor-block-mover-button.block-editor-block-mover-button { min-width: 24px; width: 24px; } @@ -2342,8 +2338,6 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before .block-editor-block-toolbar__block-switcher-wrapper { display: flex; } - .block-editor-block-toolbar__block-switcher-wrapper:not([draggable="false"]) * { - cursor: grab; } .block-editor-block-toolbar__block-switcher-wrapper .block-editor-block-switcher { display: block; } diff --git a/wp-includes/css/dist/block-editor/style.min.css b/wp-includes/css/dist/block-editor/style.min.css index e0467a8136..060952205e 100644 --- a/wp-includes/css/dist/block-editor/style.min.css +++ b/wp-includes/css/dist/block-editor/style.min.css @@ -2,4 +2,4 @@ /*!rtl:begin:ignore*/float:left;margin-right:2em /*!rtl:end:ignore*/}.wp-block[data-align=right]>*{ /*!rtl:begin:ignore*/float:right;margin-left:2em - /*!rtl:end:ignore*/}.wp-block[data-align=full],.wp-block[data-align=wide]{clear:both}.block-editor-block-list .block-editor-inserter{margin:8px;cursor:move;cursor:grab}.block-editor-block-list__insertion-point{position:relative;z-index:6;margin-top:-14px}.block-editor-block-list__insertion-point-indicator{position:absolute;top:calc(50% - 1px);height:1.5px;left:0;right:0;background:#007cba;background:var(--wp-admin-theme-color)}.block-editor-block-list__insertion-point-inserter{display:none;justify-content:center;cursor:text}@media (min-width:480px){.block-editor-block-list__insertion-point-inserter{display:flex}}.block-editor-block-list__insertion-point-inserter.is-inserter-hidden .block-editor-inserter__toggle{visibility:hidden;pointer-events:none}.block-editor-block-list__block-popover-inserter{position:absolute;top:-9999em;margin-bottom:14px}.block-editor-block-list__block-popover-inserter.is-visible{position:static}.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon,.block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon{background:#1e1e1e;border-radius:2px;color:#fff;padding:0;min-width:24px;height:24px}.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button.has-icon:hover,.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon:hover,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon:hover,.block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon:hover{color:#fff}.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button{animation:block-editor-inserter__toggle__fade-in-animation-delayed .3s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button{animation-duration:1ms}}@keyframes block-editor-inserter__toggle__fade-in-animation-delayed{0%{opacity:0}80%{opacity:0}to{opacity:1}}@keyframes block-editor-inserter__toggle__fade-in-animation{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}.wp-block .block-list-appender .block-editor-inserter__toggle{animation:block-editor-inserter__toggle__fade-in-animation .1s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.wp-block .block-list-appender .block-editor-inserter__toggle{animation-duration:1ms}}.block-editor-block-list__block:not(.is-selected):not(.has-child-selected) .block-editor-default-block-appender{display:none}.block-editor-block-list__block:not(.is-selected):not(.has-child-selected) .block-editor-default-block-appender .block-editor-inserter__toggle{opacity:0;transform:scale(0)}.block-editor-block-list__block>.block-editor-block-list__insertion-point{position:absolute;top:-16px;height:28px;bottom:auto;left:14px;right:14px}.block-editor-block-list__block .block-editor-block-list__block-html-textarea{display:block;margin:0;width:100%;border:none;outline:none;box-shadow:none;resize:none;overflow:hidden;font-family:Menlo,Consolas,monaco,monospace;font-size:15px;line-height:150%;transition:padding .2s linear}@media (prefers-reduced-motion:reduce){.block-editor-block-list__block .block-editor-block-list__block-html-textarea{transition-duration:0s}}.block-editor-block-list__block .block-editor-block-list__block-html-textarea:focus{box-shadow:none}.block-editor-block-contextual-toolbar{border:1px solid #1e1e1e;border-radius:2px;background-color:#fff}.block-editor-block-contextual-toolbar .block-editor-block-toolbar .components-toolbar,.block-editor-block-contextual-toolbar .block-editor-block-toolbar .components-toolbar-group,.block-editor-block-contextual-toolbar .block-editor-block-toolbar__mover-switcher-container{border-right-color:#1e1e1e}.block-editor-block-contextual-toolbar .block-editor-block-toolbar__mover-switcher-container{border-right-style:solid;border-right-width:1px}.block-editor-block-contextual-toolbar .block-editor-block-toolbar__block-switcher-wrapper .block-editor-block-switcher__no-switcher-icon:before,.block-editor-block-contextual-toolbar .block-editor-block-toolbar__block-switcher-wrapper .block-editor-block-switcher__toggle:before{width:28px}.block-editor-block-contextual-toolbar .block-editor-block-toolbar__block-switcher-wrapper .block-editor-block-icon svg{margin-left:10px}.block-editor-block-contextual-toolbar .block-editor-block-toolbar__block-switcher-wrapper .block-editor-block-switcher:last-child .block-editor-block-icon svg{margin-left:auto}.block-editor-block-contextual-toolbar .block-editor-block-toolbar__block-switcher-wrapper .components-toolbar,.block-editor-block-contextual-toolbar .block-editor-block-toolbar__block-switcher-wrapper .components-toolbar-group{border-right:none}.block-editor-block-contextual-toolbar .block-editor-block-mover{margin-left:-12px;width:36px}.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal{width:48px}.block-editor-block-contextual-toolbar .block-editor-block-mover .components-button.has-icon.block-editor-block-mover-button.block-editor-block-mover-button{min-width:36px;width:36px}[draggable=true] .block-editor-block-contextual-toolbar .block-editor-block-mover .components-button.has-icon.block-editor-block-mover-button.block-editor-block-mover-button{cursor:grab}[draggable=true] .block-editor-block-contextual-toolbar .block-editor-block-mover .components-button.has-icon.block-editor-block-mover-button.block-editor-block-mover-button:active{cursor:grabbing}.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .components-button.has-icon.block-editor-block-mover-button.block-editor-block-mover-button{min-width:24px;width:24px}.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button>svg{margin-left:2px}.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-up-button svg{margin-top:3px}.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-down-button svg{margin-bottom:3px}.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button:focus:before{left:0!important;min-width:0;width:28px}.block-editor-block-list__block-selection-button{display:block;z-index:22}.block-editor-block-list__block-selection-button .components-button{font-size:13px;height:46px;padding:12px 16px;position:relative;top:-1px;box-shadow:0 0 0 1px #1e1e1e;border-radius:1px;background-color:#fff}.block-editor-block-list__block-selection-button .components-button:focus{box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color)}.block-editor-block-list__block .block-editor-warning{z-index:5;position:relative}.block-editor-block-list__block .block-editor-warning.block-editor-block-list__block-crash-warning{margin-bottom:auto}.block-editor-block-list__insertion-point-popover.is-without-arrow{z-index:28;position:absolute}.block-editor-block-list__insertion-point-popover.is-without-arrow .components-popover__content.components-popover__content{background:none;border:none;box-shadow:none;overflow-y:visible;margin-left:0}.components-popover.block-editor-block-list__block-popover{z-index:31;position:absolute}.components-popover.block-editor-block-list__block-popover .components-popover__content{margin:0!important;min-width:auto;width:max-content;background:none;border:none;box-shadow:none;overflow-y:visible;pointer-events:none}.components-popover.block-editor-block-list__block-popover .components-popover__content>*{pointer-events:all}.components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-contextual-toolbar,.components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-list__block-selection-button{margin-bottom:12px}.is-dragging-components-draggable .components-popover.block-editor-block-list__block-popover{opacity:0}.is-dragging-components-draggable .components-tooltip{display:none}.block-editor-block-list__block .block-list-appender{margin:8px 0}.has-background .block-editor-block-list__block .block-list-appender{margin:20px 8px}.block-editor-block-list__block .block-list-appender .block-list-appender__toggle{padding:0;opacity:1;transform:scale(1);transition:all .1s ease}@media (prefers-reduced-motion:reduce){.block-editor-block-list__block .block-list-appender .block-list-appender__toggle{transition-duration:0s}}.block-list-appender>.block-editor-inserter{display:block}.block-editor-block-list__block:not(.is-selected):not(.has-child-selected):not(.block-editor-block-list__layout) .block-editor-block-list__layout>.block-list-appender .block-list-appender__toggle{opacity:0;transform:scale(0)}.block-editor-block-breadcrumb{list-style:none;padding:0;margin:0}.block-editor-block-breadcrumb li{display:inline-block;margin:0}.block-editor-block-breadcrumb li:not(:last-child):after{content:"→"}.block-editor-block-breadcrumb__button.components-button{height:24px;line-height:24px;padding:0;position:relative}.block-editor-block-breadcrumb__button.components-button:hover:not(:disabled){text-decoration:underline;box-shadow:none}.block-editor-block-breadcrumb__button.components-button:focus{box-shadow:none}.block-editor-block-breadcrumb__button.components-button:focus:before{content:"";display:block;position:absolute;border-radius:2px;top:1px;right:1px;bottom:1px;left:1px;box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color)}.block-editor-block-breadcrumb__current{cursor:default}.block-editor-block-breadcrumb__button.components-button,.block-editor-block-breadcrumb__current{color:#1e1e1e;padding:0 8px;font-size:inherit}.block-editor-block-card{display:flex;align-items:flex-start}.block-editor-block-card__icon{border:1px solid #ccd0d4;padding:7px;margin-right:10px;height:36px;width:36px}.block-editor-block-card__content{flex-grow:1}.block-editor-block-card__title{font-weight:500}.block-editor-block-card__title.block-editor-block-card__title{margin:0 0 5px}.block-editor-block-card__description{font-size:13px}.block-editor-block-card .block-editor-block-icon{margin-left:-2px;margin-right:10px;padding:0 3px;width:36px;height:24px}.block-editor-block-compare{overflow:auto;height:auto}@media (min-width:600px){.block-editor-block-compare{max-height:70%}}.block-editor-block-compare__wrapper{display:flex;padding-bottom:16px}.block-editor-block-compare__wrapper>div{display:flex;justify-content:space-between;flex-direction:column;width:50%;padding:0 16px 0 0;min-width:200px}.block-editor-block-compare__wrapper>div button{float:right}.block-editor-block-compare__wrapper .block-editor-block-compare__converted{border-left:1px solid #ddd;padding-left:15px;padding-right:0}.block-editor-block-compare__wrapper .block-editor-block-compare__html{font-family:Menlo,Consolas,monaco,monospace;font-size:12px;color:#1e1e1e;border-bottom:1px solid #ddd;padding-bottom:15px;line-height:1.7}.block-editor-block-compare__wrapper .block-editor-block-compare__html span{background-color:#e6ffed;padding-top:3px;padding-bottom:3px}.block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__added{background-color:#acf2bd}.block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__removed{background-color:#d94f4f}.block-editor-block-compare__wrapper .block-editor-block-compare__preview{padding:14px 0 0}.block-editor-block-compare__wrapper .block-editor-block-compare__preview p{font-size:12px;margin-top:0}.block-editor-block-compare__wrapper .block-editor-block-compare__action{margin-top:14px}.block-editor-block-compare__wrapper .block-editor-block-compare__heading{font-size:1em;font-weight:400;margin:.67em 0}.block-editor-block-draggable-chip-wrapper{position:absolute;top:-60px}.block-editor-block-draggable-chip{background-color:#1e1e1e;border-radius:2px;border:1px solid #1e1e1e;box-shadow:0 4px 6px rgba(0,0,0,.3);color:#fff;cursor:grabbing;display:inline-flex;height:48px;min-width:72px;padding:0 12px;-webkit-user-select:none;-ms-user-select:none;user-select:none}.block-editor-block-draggable-chip svg{fill:currentColor}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content{margin:auto}.block-editor-block-draggable-chip .components-flex__item{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.is-dragging.is-multi-selected,.is-dragging.is-selected{display:none!important}.block-editor-block-mobile-toolbar{display:flex;flex-direction:row;border-right:1px solid #ddd}.block-editor-block-mobile-toolbar .block-editor-block-mover-button{width:36px;height:36px;border-radius:2px;padding:3px;margin:0;justify-content:center;align-items:center}.block-editor-block-mobile-toolbar .block-editor-block-mover-button .dashicon{margin:auto}.block-editor-block-mobile-toolbar .block-editor-block-mover{display:flex;margin-right:auto}.block-editor-block-mobile-toolbar .block-editor-block-mover .block-editor-block-mover-button{float:left}.block-editor-block-mover{display:inline-flex;flex-direction:row}.block-editor-block-mover-button__description{display:none}.block-editor-block-mover-button.has-icon{padding:0}.block-editor-block-mover .components-toolbar,.block-editor-block-mover .components-toolbar-group{flex-direction:column;flex:1}.block-editor-block-mover.is-horizontal .components-toolbar,.block-editor-block-mover.is-horizontal .components-toolbar-group{flex-direction:row}.block-editor-block-mover .block-editor-block-mover-button{height:24px;width:48px;padding:0!important}.block-editor-block-mover .block-editor-block-mover-button:before{left:8px!important;right:8px!important}.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-up-button svg,.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-up-button svg{margin-bottom:-8px}.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-up-button:before,.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-up-button:before{bottom:0;height:calc(100% - 8px)}.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-down-button svg,.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-down-button svg{margin-top:-8px}.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-down-button:before,.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-down-button:before{top:0;height:calc(100% - 8px)}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.has-icon{height:48px;width:24px;min-width:24px;padding-left:0;padding-right:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.has-icon:before{top:8px;bottom:8px;min-width:0;width:auto;height:auto}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-up-button.has-icon svg{margin-left:0;margin-right:-8px;margin-bottom:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-up-button.has-icon:before{left:8px!important;right:0!important}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-down-button.has-icon svg{margin-left:-8px;margin-right:0;margin-top:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-down-button.has-icon:before{left:0!important;right:8px!important}.block-editor-block-navigation__label{margin:0 0 12px;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500}.block-editor-block-navigation__container{padding:7px}.block-editor-block-navigation-tree{width:100%;border-collapse:collapse;padding:0;margin:0}.block-editor-block-navigation-leaf{position:relative}.block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents{display:flex;align-items:center;width:calc(100% - .8em);height:auto;padding:12px 6px;margin-top:auto;margin-bottom:auto;text-align:left;color:#40464d;border-radius:2px}.components-modal__content .block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents{padding-left:0;padding-right:0}.block-editor-block-navigation-leaf.is-visible .block-editor-block-navigation-block-contents{opacity:1;animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.block-editor-block-navigation-leaf.is-visible .block-editor-block-navigation-block-contents{animation-duration:1ms}}.block-editor-block-navigation-leaf .block-editor-block-icon{align-self:flex-start;margin-right:6px}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__contents-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell{padding-top:0;padding-bottom:0}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell{width:36px;opacity:0;vertical-align:top}@media (prefers-reduced-motion:reduce){.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell{transition-duration:0s}}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell.is-visible,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell.is-visible{opacity:1;animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell.is-visible,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell.is-visible{animation-duration:1ms}}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell .components-button.has-icon,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell .components-button.has-icon{width:24px;min-width:24px;padding:0}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell{padding-top:8px}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell-alignment-wrapper{display:flex;height:100%;flex-direction:column;align-items:center}.block-editor-block-navigation-leaf .block-editor-block-mover-button{position:relative;width:36px;height:24px}.block-editor-block-navigation-leaf .block-editor-block-mover-button svg{position:relative;height:24px}.block-editor-block-navigation-leaf .block-editor-block-mover-button.is-up-button{align-items:flex-end}.block-editor-block-navigation-leaf .block-editor-block-mover-button.is-up-button svg{bottom:-4px}.block-editor-block-navigation-leaf .block-editor-block-mover-button.is-down-button{align-items:flex-start}.block-editor-block-navigation-leaf .block-editor-block-mover-button.is-down-button svg{top:-4px}.block-editor-block-navigation-leaf .block-editor-block-mover-button:focus:enabled{box-shadow:none;outline:none}.block-editor-block-navigation-leaf .block-editor-block-mover-button:focus{box-shadow:none;outline:none}.block-editor-block-navigation-leaf .block-editor-block-mover-button:focus:before{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 0 0 4px #fff;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 0 0 4px #fff;outline:2px solid transparent}.block-editor-block-navigation-leaf .block-editor-block-mover-button:before{content:"";position:absolute;display:block;border-radius:2px;height:16px;min-width:100%;left:0;right:0;animation:components-button__appear-animation .1s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.block-editor-block-navigation-leaf .block-editor-block-mover-button:before{animation-duration:1ms}}.block-editor-block-navigation-leaf .block-editor-inserter__toggle{background:#1e1e1e;color:#fff;height:24px;margin:6px 6px 6px 1px;min-width:24px}.block-editor-block-navigation-leaf .block-editor-inserter__toggle:active{color:#fff}.block-editor-block-navigation-appender__description,.block-editor-block-navigation-block-select-button__description,.block-editor-block-navigation-block-slot__description{display:none}.block-editor-block-navigation-appender__cell .block-editor-block-navigation-appender__container,.block-editor-block-navigation-appender__cell .block-editor-block-navigation-block__contents-container,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigation-appender__container,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigation-block__contents-container{display:flex}.block-editor-block-navigation-appender__cell .block-editor-block-navigation-block__contents-container,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigation-block__contents-container{min-height:56px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line{position:relative;flex-shrink:0;width:24px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line:first-child,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line:first-child{width:18px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line.has-item{margin-right:6px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line:before,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line:before{content:"";display:block;position:absolute;top:1px;bottom:-2px;right:-1px;border-right:2px solid #a2aab2}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.is-terminated:before,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line.is-terminated:before{border-color:transparent}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item.is-last-row,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line.has-item.is-last-row{height:26px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item:after,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line.has-item:after{content:"";display:block;position:absolute;top:26px;left:100%;width:5px;border-bottom:2px solid #a2aab2}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item.is-last-row{height:16px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item.is-last-row:after{top:100%}.block-editor-block-parent-selector{background:#fff;border-radius:2px}.block-editor-block-parent-selector .block-editor-block-parent-selector__button{width:48px;height:48px;border:1px solid #1e1e1e;border-radius:2px}.block-editor-block-patterns-list__item{border-radius:2px;cursor:pointer;margin-top:16px;transition:all .05s ease-in-out;position:relative;border:1px solid transparent}.block-editor-block-patterns-list__item:hover{border:1px solid #007cba;border:1px solid var(--wp-admin-theme-color)}.block-editor-block-patterns-list__item:focus{box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-block-patterns-list__item.is-placeholder{min-height:100px}.block-editor-block-patterns-list__item-title{padding:4px;font-size:12px;text-align:center}.block-editor-block-preview__container{position:relative;width:100%;overflow:hidden}.block-editor-block-preview__container.editor-styles-wrapper{padding:0;margin:0}.block-editor-block-preview__content{position:absolute;top:0;left:0;transform-origin:top left;text-align:initial;margin:0;overflow:visible;min-height:auto}.block-editor-block-preview__content .block-editor-block-drop-zone,.block-editor-block-preview__content .block-editor-block-list__insertion-point,.block-editor-block-preview__content .block-list-appender,.block-editor-block-preview__content .reusable-block-indicator{display:none}.block-editor-block-preview__content .block-editor-block-list__layout.is-root-container{padding-left:0;padding-right:0}.block-editor-block-preview__content .block-editor-block-list__layout.is-root-container>.wp-block[data-align=full]{margin-left:0;margin-right:0}.block-editor-block-settings-menu__popover .components-dropdown-menu__menu{padding:0}.block-editor-block-styles{display:flex;flex-wrap:wrap;justify-content:space-between}.block-editor-block-styles__item{width:calc(50% - 4px);margin:4px 0;flex-shrink:0;cursor:pointer;overflow:hidden;border-radius:2px;padding:6px;display:flex;flex-direction:column}.block-editor-block-styles__item:focus{box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-block-styles__item:hover .block-editor-block-styles__item-preview{border-color:#007cba;border-color:var(--wp-admin-theme-color)}.block-editor-block-styles__item.is-active .block-editor-block-styles__item-label{font-weight:700}.block-editor-block-styles__item.is-active .block-editor-block-styles__item-preview{border:2px solid #1e1e1e}.block-editor-block-styles__item-preview{outline:1px solid transparent;padding:0;border-radius:2px;display:flex;overflow:hidden;background:#fff;align-items:center;flex-grow:1;min-height:80px}.block-editor-block-switcher__styles__menugroup{position:relative}.block-editor-block-styles__item-label{text-align:center;padding:4px 0}.block-editor-block-switcher,.block-editor-block-switcher__no-switcher-icon,.block-editor-block-switcher__toggle{position:relative}.components-button.block-editor-block-switcher__no-switcher-icon,.components-button.block-editor-block-switcher__toggle{margin:0;display:block;height:48px}.components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon,.components-button.block-editor-block-switcher__toggle .block-editor-block-icon{margin:auto}.components-button.block-editor-block-switcher__no-switcher-icon{width:48px}.components-button.block-editor-block-switcher__no-switcher-icon .block-editor-blocks-icon{margin-right:auto;margin-left:auto}.components-button.block-editor-block-switcher__no-switcher-icon:disabled{opacity:1}.components-button.block-editor-block-switcher__no-switcher-icon:disabled,.components-button.block-editor-block-switcher__no-switcher-icon:disabled .block-editor-block-icon.has-colors{color:#1e1e1e!important}.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon,.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon{padding:0}.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon .block-editor-block-icon,.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon .block-editor-block-icon,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon .block-editor-block-icon,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon .block-editor-block-icon{height:100%;position:relative;margin:0 auto;display:flex;align-items:center}.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon:before,.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon:before,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon:before,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon:before{top:8px;right:8px;bottom:8px;left:8px}.components-popover.block-editor-block-switcher__popover .components-popover__content{min-width:300px}.components-popover.block-editor-block-switcher__popover .components-popover__content>div{min-width:auto;display:flex;background:#fff;padding:0}.components-popover.block-editor-block-switcher__popover .components-popover__content>div .components-menu-group{padding:16px;margin:0}.block-editor-block-switcher__popover .components-popover__content .block-editor-block-styles{margin:0 -3px}.block-editor-block-switcher__popover .components-popover__content .components-panel__body{border:0;position:relative;z-index:1}.block-editor-block-switcher__popover .components-popover__content .components-panel__body+.components-panel__body{border-top:1px solid #f0f0f0}.block-editor-block-switcher__popover__preview__parent .block-editor-block-switcher__popover__preview__container{position:absolute;top:-12px;left:calc(100% + 32px)}.block-editor-block-switcher__preview__popover{display:none}.block-editor-block-switcher__preview__popover.components-popover{margin-left:4px;margin-top:11px}@media (min-width:782px){.block-editor-block-switcher__preview__popover{display:block}}.block-editor-block-switcher__preview__popover .components-popover__content{box-shadow:none;border:1px solid #1e1e1e;background:#fff;border-radius:2px}.block-editor-block-switcher__preview__popover .block-editor-block-switcher__preview{width:300px;height:auto;padding:16px}.block-editor-block-switcher__preview-title{margin-bottom:12px;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle{height:48px}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon{width:48px}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-switcher__transform,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-icon,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform{width:48px;height:48px}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-switcher__transform,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform{padding:12px}.block-editor-block-types-list{list-style:none;padding:4px;margin-left:-4px;margin-right:-4px;overflow:hidden;display:flex;flex-wrap:wrap}.block-editor-block-variation-picker .components-placeholder__instructions{margin-bottom:0}.block-editor-block-variation-picker .components-placeholder__fieldset{flex-direction:column}.block-editor-block-variation-picker.has-many-variations .components-placeholder__fieldset{max-width:90%}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations{display:flex;justify-content:flex-start;flex-direction:row;flex-wrap:wrap;width:100%;margin:16px 0;padding:0;list-style:none}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations>li{list-style:none;margin:8px 8px 0 0;flex-shrink:1;max-width:100px}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations>li button{display:flex}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations .block-editor-block-variation-picker__variation{padding:8px}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations .block-editor-block-variation-picker__variation-label{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:12px;display:block;margin-right:12px;text-align:center}.block-editor-block-variation-picker__variation{width:100%}.block-editor-block-variation-picker__variation.components-button.has-icon{justify-content:center;width:auto}.block-editor-block-variation-picker__variation.components-button.has-icon.is-secondary{background-color:#fff}.block-editor-block-variation-picker__variation.components-button{height:auto;padding:0}.block-editor-block-variation-picker__variation:before{content:"";padding-bottom:100%}.block-editor-block-variation-picker__variation:first-child{margin-left:0}.block-editor-block-variation-picker__variation:last-child{margin-right:0}.block-editor-button-block-appender{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:8px;width:100%;height:auto;color:#1e1e1e;box-shadow:inset 0 0 0 1px #1e1e1e}.block-editor-button-block-appender:hover{box-shadow:inset 0 0 0 1px #007cba;box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color)}.block-editor-button-block-appender:focus{box-shadow:inset 0 0 0 2px #007cba;box-shadow:inset 0 0 0 2px var(--wp-admin-theme-color)}.block-editor-button-block-appender:active{color:#000}.block-editor-button-block-appender.block-list-appender__toggle{display:flex;flex-direction:row;color:#1e1e1e;box-shadow:none;height:24px;padding:0;margin-left:8px}.block-editor-button-block-appender.block-list-appender__toggle:active{color:#fff}.block-editor-button-block-appender.block-list-appender__toggle>svg{width:24px;background-color:#1e1e1e;color:#fff;border-radius:2px}.block-editor-color-gradient-control__color-indicator{margin-bottom:8px}.block-editor-color-gradient-control__button-tabs{display:block;margin-bottom:8px}.block-editor-panel-color-gradient-settings .component-color-indicator{vertical-align:text-bottom}.block-editor-panel-color-gradient-settings__panel-title .component-color-indicator{display:inline-block}.block-editor-panel-color-gradient-settings.is-opened .block-editor-panel-color-gradient-settings__panel-title .component-color-indicator{display:none}.block-editor-contrast-checker>.components-notice{margin:0}.block-editor-default-block-appender{clear:both;margin-left:auto;margin-right:auto;position:relative}.block-editor-default-block-appender[data-root-client-id=""] .block-editor-default-block-appender__content:hover{outline:1px solid transparent}.block-editor-default-block-appender textarea.block-editor-default-block-appender__content{font-family:inherit;font-size:inherit;border:none;background:none;box-shadow:none;display:block;cursor:text;width:100%;outline:1px solid transparent;transition:outline .2s;resize:none;margin-top:28px;margin-bottom:28px;padding:0 50px 0 0;color:rgba(30,30,30,.62)}@media (prefers-reduced-motion:reduce){.block-editor-default-block-appender textarea.block-editor-default-block-appender__content{transition-duration:0s}}.is-dark-theme .block-editor-default-block-appender textarea.block-editor-default-block-appender__content{color:hsla(0,0%,100%,.65)}.block-editor-default-block-appender .components-drop-zone__content-icon{display:none}.block-editor-default-block-appender__content{line-height:1.8}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter,.block-editor-default-block-appender .block-editor-inserter{position:absolute;top:0;height:32px}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle,.block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle{margin-right:0}.block-editor-block-list__empty-block-inserter,.block-editor-default-block-appender .block-editor-inserter{right:8px}@media (min-width:600px){.block-editor-block-list__empty-block-inserter,.block-editor-default-block-appender .block-editor-inserter{display:flex;height:100%}}.block-editor-block-list__empty-block-inserter:disabled,.block-editor-default-block-appender .block-editor-inserter:disabled{display:none}@media (min-width:600px){.block-editor-default-block-appender .block-editor-inserter{align-items:center}}.block-editor-link-control{position:relative;min-width:360px}.components-popover__content .block-editor-link-control{min-width:auto;width:90vw;max-width:360px}.block-editor-link-control__search-input-wrapper{position:relative}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;font-size:16px;line-height:normal;width:calc(100% - 32px);display:block;padding:11px 36px 11px 16px;margin:16px;position:relative;border:1px solid #ddd;border-radius:2px}@media (prefers-reduced-motion:reduce){.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{transition-duration:0s}}@media (min-width:600px){.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{font-size:13px;line-height:normal}}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px #007cba;box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.block-editor-link-control .block-editor-link-control__search-input .components-base-control__field{margin-bottom:0}.block-editor-link-control__search-error{margin:-8px 16px 16px}.block-editor-link-control__search-actions{position:absolute;top:19px;right:19px}.block-editor-link-control__search-results-wrapper{position:relative;margin-top:-15px}.block-editor-link-control__search-results-wrapper:after,.block-editor-link-control__search-results-wrapper:before{content:"";position:absolute;left:-1px;right:16px;display:block;pointer-events:none;z-index:100}.block-editor-link-control__search-results-wrapper:before{height:8px;top:0;bottom:auto;background:linear-gradient(180deg,#fff 0,hsla(0,0%,100%,0))}.block-editor-link-control__search-results-wrapper:after{height:16px;bottom:0;top:auto;background:linear-gradient(180deg,hsla(0,0%,100%,0) 0,#fff)}.block-editor-link-control__search-results-label{padding:15px 30px 0;display:block;font-size:1.1em}.block-editor-link-control__search-results{margin:0;padding:8px 16px;max-height:200px;overflow-y:auto}.block-editor-link-control__search-results.is-loading{opacity:.2}.block-editor-link-control__search-item{position:relative;display:flex;align-items:center;font-size:13px;cursor:pointer;background:#fff;width:100%;border:none;text-align:left;padding:10px 15px;border-radius:5px;height:auto}.block-editor-link-control__search-item:focus,.block-editor-link-control__search-item:hover{background-color:#ddd}.block-editor-link-control__search-item:focus:not(:disabled){box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color) inset}.block-editor-link-control__search-item.is-selected{background:#f0f0f0}.block-editor-link-control__search-item.is-selected .block-editor-link-control__search-item-type{background:#fff}.block-editor-link-control__search-item.is-current{background:transparent;border:0;width:100%;cursor:default;padding:16px 16px 16px 24px}.block-editor-link-control__search-item .block-editor-link-control__search-item-header{display:block;margin-right:24px;overflow:hidden;white-space:nowrap}.block-editor-link-control__search-item .block-editor-link-control__search-item-icon{margin-right:1em;min-width:24px}.block-editor-link-control__search-item .block-editor-link-control__search-item-info,.block-editor-link-control__search-item .block-editor-link-control__search-item-title{max-width:230px;overflow:hidden;text-overflow:ellipsis}.block-editor-link-control__search-item .block-editor-link-control__search-item-title mark{color:#1e1e1e}.block-editor-link-control__search-item .block-editor-link-control__search-item-title{display:block;margin-bottom:.2em;font-weight:500}.block-editor-link-control__search-item .block-editor-link-control__search-item-title mark{font-weight:700;color:#000;background-color:transparent}.block-editor-link-control__search-item .block-editor-link-control__search-item-title span{font-weight:400}.block-editor-link-control__search-item .block-editor-link-control__search-item-info{display:block;color:#6c7781;font-size:.9em;line-height:1.3}.block-editor-link-control__search-item .block-editor-link-control__search-item-type{display:block;padding:3px 8px;margin-left:auto;font-size:.9em;background-color:#f0f0f0;border-radius:2px}.block-editor-link-control__loading{margin:16px;display:flex;align-items:center}.block-editor-link-control__loading .components-spinner{margin-top:0}.components-button+.block-editor-link-control__search-create{margin-top:20px;overflow:visible;padding:12px 15px}.components-button+.block-editor-link-control__search-create:before{content:"";position:absolute;top:-10px;left:0;display:block;width:100%;border-top:1px solid #ddd}.block-editor-link-control__search-results div[role=menu]>.block-editor-link-control__search-item.block-editor-link-control__search-item{padding:10px}.block-editor-link-control__settings{border-top:1px solid #ddd;margin:0;padding:16px 24px}.block-editor-link-control__settings :last-child{margin-bottom:0}.block-editor-link-control__setting{margin-bottom:16px}.block-editor-link-control__setting :last-child{margin-bottom:0}.block-editor-link-control .block-editor-link-control__search-input .components-spinner{display:block}.block-editor-link-control .block-editor-link-control__search-input .components-spinner.components-spinner{position:absolute;left:auto;bottom:auto;top:28px;right:62px}.block-editor-link-control__search-item-action{margin-left:auto;flex-shrink:0}.block-editor-line-height-control{margin-bottom:24px}.block-editor-line-height-control input{display:block;max-width:60px}.block-editor-image-size-control{margin-bottom:1em}.block-editor-image-size-control .block-editor-image-size-control__row{display:flex;justify-content:space-between}.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__height,.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__width{margin-bottom:.5em}.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__height input,.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__width input{line-height:1.25}.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__width{margin-right:5px}.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__height{margin-left:5px}.block-editor-block-list__layout.has-overlay:after{content:"";position:absolute;top:-14px;right:-14px;bottom:-14px;left:-14px;z-index:60}[data-align=full] .has-overlay:after{right:0;left:0}.block-editor-block-types-list__list-item{display:block;width:33.33%;padding:0;margin:0}.components-button.block-editor-block-types-list__item{display:flex;flex-direction:column;width:100%;font-size:13px;color:#32373c;padding:8px;align-items:stretch;justify-content:center;cursor:pointer;background:transparent;word-break:break-word;border-radius:2px;border:1px solid transparent;transition:all .05s ease-in-out;position:relative;height:auto}@media (prefers-reduced-motion:reduce){.components-button.block-editor-block-types-list__item{transition-duration:0s}}.components-button.block-editor-block-types-list__item:disabled{opacity:.6;cursor:default}.components-button.block-editor-block-types-list__item:not(:disabled):hover{border-color:#007cba;border-color:var(--wp-admin-theme-color);color:#007cba!important;color:var(--wp-admin-theme-color)!important}.components-button.block-editor-block-types-list__item:not(:disabled).is-active{color:#fff;background:#1e1e1e;outline:2px solid transparent;outline-offset:-2px}.block-editor-block-types-list__item-icon{padding:12px 20px;border-radius:2px;color:#1e1e1e;transition:all .05s ease-in-out}@media (prefers-reduced-motion:reduce){.block-editor-block-types-list__item-icon{transition-duration:0s}}.block-editor-block-types-list__item-icon .block-editor-block-icon{margin-left:auto;margin-right:auto}.block-editor-block-types-list__item-icon svg{transition:all .15s ease-out}@media (prefers-reduced-motion:reduce){.block-editor-block-types-list__item-icon svg{transition-duration:0s}}.block-editor-block-types-list__item-title{padding:4px 2px 8px;font-size:12px}.modal-open .block-editor-media-replace-flow__options{display:none}.block-editor-media-replace-flow__options .components-popover__content>div{padding-top:16px}.block-editor-media-replace-flow__indicator{margin-left:4px}.block-editor-media-replace-flow__media-upload-menu{margin-bottom:16px}.block-editor-media-flow__url-input .block-editor-media-replace-flow__image-url-label{top:16px}.block-editor-media-flow__url-input .block-editor-link-control{margin-top:-16px;width:auto}.block-editor-media-flow__url-input .block-editor-link-control .components-base-control .components-base-control__field{margin-bottom:0}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item-title{max-width:180px;margin-top:16px}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item.is-current{width:auto;padding:0}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{margin:16px 0 0;width:100%}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-actions{right:4px}.block-editor-media-flow__error{padding:0 20px 20px;max-width:255px}.block-editor-media-flow__error .components-with-notices-ui{max-width:255px}.block-editor-media-flow__error .components-with-notices-ui .components-notice__content{overflow:hidden;word-wrap:break-word}.block-editor-media-flow__error .components-with-notices-ui .components-notice__dismiss{position:absolute;right:10px}.block-editor-media-placeholder__url-input-container .block-editor-media-placeholder__button{margin-bottom:0}.block-editor-media-placeholder__url-input-form{display:flex}.block-editor-media-placeholder__url-input-form input[type=url].block-editor-media-placeholder__url-input-field{width:100%;flex-grow:1;border:none;border-radius:0;margin:2px}@media (min-width:600px){.block-editor-media-placeholder__url-input-form input[type=url].block-editor-media-placeholder__url-input-field{width:300px}}.block-editor-media-placeholder__url-input-submit-button{flex-shrink:1}.block-editor-media-placeholder__button{margin-bottom:.5rem}.block-editor-media-placeholder__cancel-button.is-link{margin:1em;display:block}.block-editor-media-placeholder.is-appender{min-height:0}.block-editor-media-placeholder.is-appender:hover{cursor:pointer;box-shadow:0 0 0 1px #007cba;box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.block-editor-multi-selection-inspector__card{display:flex;align-items:flex-start;padding:16px}.block-editor-multi-selection-inspector__card-content{flex-grow:1}.block-editor-multi-selection-inspector__card-title{font-weight:500;margin-bottom:5px}.block-editor-multi-selection-inspector__card-description{font-size:13px}.block-editor-multi-selection-inspector__card .block-editor-block-icon{margin-left:-2px;margin-right:10px;padding:0 3px;width:36px;height:24px}.block-editor .block-editor-plain-text{box-shadow:none;font-family:inherit;font-size:inherit;color:inherit;line-height:inherit;border:none;padding:0;margin:0;width:100%}.block-editor-responsive-block-control{margin-bottom:28px;border-bottom:1px solid #d7dade;padding-bottom:14px}.block-editor-responsive-block-control:last-child{padding-bottom:0;border-bottom:0}.block-editor-responsive-block-control__title{margin:0 0 .6em -3px}.block-editor-responsive-block-control__label{font-weight:600;margin-bottom:.6em;margin-left:-3px}.block-editor-responsive-block-control__inner{margin-left:-1px}.block-editor-responsive-block-control__toggle{margin-left:1px}.block-editor-responsive-block-control .components-base-control__help{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.block-editor-format-toolbar .components-dropdown-menu__toggle{justify-content:center}.block-editor-rich-text__editable>p:first-child{margin-top:0}.block-editor-rich-text__editable [data-rich-text-placeholder]{pointer-events:none}.block-editor-rich-text__editable [data-rich-text-placeholder]:after{content:attr(data-rich-text-placeholder);opacity:.62}.block-editor-rich-text__editable:focus{outline:none}.block-editor-rich-text__editable:focus [data-rich-text-format-boundary]{border-radius:2px}.block-editor-rich-text__editable:focus:not(.keep-placeholder-on-focus) [data-rich-text-placeholder]:after{display:none}figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]:before{opacity:.8}.components-popover.block-editor-rich-text__inline-format-toolbar{z-index:99998}.components-popover.block-editor-rich-text__inline-format-toolbar .components-popover__content{width:auto;min-width:auto;margin-bottom:8px;box-shadow:none;border:1px solid #1e1e1e;border-radius:2px;background-color:#fff}.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar,.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar-group{border:none}.components-popover.block-editor-rich-text__inline-format-toolbar .components-dropdown-menu__toggle,.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar__control{min-width:48px;min-height:48px;padding-left:12px;padding-right:12px}.block-editor-skip-to-selected-block{position:absolute;top:-9999em}.block-editor-skip-to-selected-block:focus{height:auto;width:auto;display:block;font-size:14px;font-weight:600;padding:15px 23px 14px;background:#f1f1f1;color:#007cba;color:var(--wp-admin-theme-color);line-height:normal;box-shadow:0 0 2px 2px rgba(0,0,0,.6);text-decoration:none;outline:none;z-index:100000}.block-editor-tool-selector__help{margin:8px -12px -12px;padding:12px 20px;border-top:1px solid #ddd;color:#6c7781}.block-editor-block-list__block .block-editor-url-input,.block-editor-url-input,.components-popover .block-editor-url-input{flex-grow:1;position:relative;padding:1px}.block-editor-block-list__block .block-editor-url-input input[type=text],.block-editor-url-input input[type=text],.components-popover .block-editor-url-input input[type=text]{width:100%;padding:8px;border:none;border-radius:0;margin-left:0;margin-right:0;font-size:16px}@media (min-width:600px){.block-editor-block-list__block .block-editor-url-input input[type=text],.block-editor-url-input input[type=text],.components-popover .block-editor-url-input input[type=text]{width:300px}}@media (min-width:600px){.block-editor-block-list__block .block-editor-url-input input[type=text],.block-editor-url-input input[type=text],.components-popover .block-editor-url-input input[type=text]{font-size:13px}}.block-editor-block-list__block .block-editor-url-input input[type=text]::-ms-clear,.block-editor-url-input input[type=text]::-ms-clear,.components-popover .block-editor-url-input input[type=text]::-ms-clear{display:none}.block-editor-block-list__block .block-editor-url-input.is-full-width,.block-editor-url-input.is-full-width,.components-popover .block-editor-url-input.is-full-width{width:100%}.block-editor-block-list__block .block-editor-url-input.is-full-width .block-editor-url-input__input[type=text],.block-editor-url-input.is-full-width .block-editor-url-input__input[type=text],.components-popover .block-editor-url-input.is-full-width .block-editor-url-input__input[type=text]{width:100%}.block-editor-block-list__block .block-editor-url-input.is-full-width__suggestions,.block-editor-url-input.is-full-width__suggestions,.components-popover .block-editor-url-input.is-full-width__suggestions{width:100%}.block-editor-block-list__block .block-editor-url-input .components-spinner,.block-editor-url-input .components-spinner,.components-popover .block-editor-url-input .components-spinner{position:absolute;right:8px;bottom:17px;margin:0}.block-editor-url-input__input[type=text]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal}@media (prefers-reduced-motion:reduce){.block-editor-url-input__input[type=text]{transition-duration:0s}}@media (min-width:600px){.block-editor-url-input__input[type=text]{font-size:13px;line-height:normal}}.block-editor-url-input__input[type=text]:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px #007cba;box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-url-input__input[type=text]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.block-editor-url-input__input[type=text]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.block-editor-url-input__input[type=text]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .block-editor-url-input__input[type=text]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-url-input__input[type=text]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-url-input__input[type=text]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.block-editor-url-input__suggestions{max-height:200px;transition:all .15s ease-in-out;padding:4px 0;width:302px;overflow-y:auto}@media (prefers-reduced-motion:reduce){.block-editor-url-input__suggestions{transition-duration:0s}}.block-editor-url-input .components-spinner,.block-editor-url-input__suggestions{display:none}@media (min-width:600px){.block-editor-url-input .components-spinner,.block-editor-url-input__suggestions{display:inherit}}.block-editor-url-input__suggestion{padding:4px 8px;color:#6c7781;display:block;font-size:13px;cursor:pointer;background:#fff;width:100%;border:none;text-align:left;box-shadow:none}.block-editor-url-input__suggestion:hover{background:#ddd}.block-editor-url-input__suggestion.is-selected,.block-editor-url-input__suggestion:focus{background:#005a87;background:var(--wp-admin-theme-color-darker-20);color:#fff;outline:none}.components-toolbar-group>.block-editor-url-input__button,.components-toolbar>.block-editor-url-input__button{position:inherit}.block-editor-url-input__button .block-editor-url-input__back{margin-right:4px;overflow:visible}.block-editor-url-input__button .block-editor-url-input__back:after{content:"";position:absolute;display:block;width:1px;height:24px;right:-1px;background:#ddd}.block-editor-url-input__button-modal{box-shadow:0 2px 6px rgba(0,0,0,.05);border:1px solid #ddd;background:#fff}.block-editor-url-input__button-modal-line{display:flex;flex-direction:row;flex-grow:1;flex-shrink:1;min-width:0;align-items:flex-start}.block-editor-url-input__button-modal-line .components-button{flex-shrink:0;width:36px;height:36px}.block-editor-url-popover__additional-controls{border-top:1px solid #ddd}.block-editor-url-popover__additional-controls>div[role=menu] .components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary)>svg{box-shadow:none}.block-editor-url-popover__additional-controls div[role=menu]>.components-button{padding-left:2px}.block-editor-url-popover__row{display:flex}.block-editor-url-popover__row>:not(.block-editor-url-popover__settings-toggle){flex-grow:1}.block-editor-url-popover .components-button.has-icon{padding:3px}.block-editor-url-popover .components-button.has-icon>svg{padding:5px;border-radius:2px;height:30px;width:30px}.block-editor-url-popover .components-button.has-icon:not(:disabled):focus{box-shadow:none}.block-editor-url-popover .components-button.has-icon:not(:disabled):focus>svg{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 0 0 4px #fff;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 0 0 4px #fff;outline:2px solid transparent}.block-editor-url-popover__settings-toggle{flex-shrink:0;border-radius:0;border-left:1px solid #ddd;margin-left:1px}.block-editor-url-popover__settings-toggle[aria-expanded=true] .dashicon{transform:rotate(180deg)}.block-editor-url-popover__input-container .components-base-control:last-child,.block-editor-url-popover__input-container .components-base-control:last-child .components-base-control__field{margin-bottom:0}.block-editor-url-popover__settings{display:block;padding:16px;border-top:1px solid #ddd}.block-editor-url-popover__link-editor,.block-editor-url-popover__link-viewer{display:flex}.block-editor-url-popover__link-editor .block-editor-url-input .components-base-control__field,.block-editor-url-popover__link-viewer .block-editor-url-input .components-base-control__field{margin-bottom:0}.block-editor-url-popover__link-editor .block-editor-url-input .components-spinner,.block-editor-url-popover__link-viewer .block-editor-url-input .components-spinner{bottom:9px}.block-editor-url-popover__link-viewer-url{margin:7px;flex-grow:1;flex-shrink:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:150px;max-width:500px}.block-editor-url-popover__link-viewer-url.has-invalid-link{color:#d94f4f}.block-editor-warning{align-items:center;display:flex;flex-wrap:wrap;padding:6px 12px;border:1px solid #1e1e1e;border-radius:2px;background-color:#fff}.block-editor-warning,.block-editor-warning .block-editor-warning__message{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.block-editor-warning .block-editor-warning__message{line-height:1.4;margin:1em 0}.block-editor-warning p.block-editor-warning__message.block-editor-warning__message{min-height:auto}.block-editor-warning .block-editor-warning__contents{display:flex;flex-direction:row;justify-content:space-between;flex-wrap:wrap;align-items:baseline;width:100%}.block-editor-warning .block-editor-warning__actions{display:flex}.block-editor-warning .block-editor-warning__action{margin:0 0 0 8px}.block-editor-warning__secondary{margin:auto 0 auto 8px}.block-editor-writing-flow{display:flex;flex-direction:column}.block-editor-writing-flow__click-redirect{cursor:text}.html-anchor-control .components-external-link{display:block;margin-top:8px}#end-resizable-editor-section{display:none}.block-editor-block-toolbar{display:flex;flex-grow:1;width:100%;overflow:auto;position:relative;transition:border-color .1s linear,box-shadow .1s linear}@media (prefers-reduced-motion:reduce){.block-editor-block-toolbar{transition-duration:0s}}@media (min-width:600px){.block-editor-block-toolbar{overflow:inherit}}.block-editor-block-toolbar .components-toolbar,.block-editor-block-toolbar .components-toolbar-group{background:none;line-height:0;margin-top:-1px;margin-bottom:-1px;border:0;border-right:1px solid #ddd}.block-editor-block-toolbar>:last-child,.block-editor-block-toolbar>:last-child .components-toolbar,.block-editor-block-toolbar>:last-child .components-toolbar-group{border-right:none}.block-editor-block-toolbar .components-toolbar,.block-editor-block-toolbar .components-toolbar-group,.block-editor-format-toolbar .components-toolbar,.block-editor-format-toolbar .components-toolbar-group{display:flex;flex-wrap:nowrap}.block-editor-block-toolbar__slot{display:inline-block;line-height:0}@supports ((position:-webkit-sticky) or (position:sticky)){.block-editor-block-toolbar__slot{display:inline-flex}}.block-editor-block-toolbar__block-parent-selector-wrapper{position:absolute;top:-1px;left:-1px;opacity:0;transition:all 60ms linear;z-index:-1}@media (prefers-reduced-motion:reduce){.block-editor-block-toolbar__block-parent-selector-wrapper{transition-duration:0s}}.is-showing-movers .block-editor-block-toolbar__block-parent-selector-wrapper{opacity:1;transform:translateY(-60px)}.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar__block-parent-selector-wrapper{display:none}.block-editor-block-toolbar__block-switcher-wrapper,.block-editor-block-toolbar__mover-switcher-container{display:flex}.block-editor-block-toolbar__block-switcher-wrapper:not([draggable=false]) *{cursor:grab}.block-editor-block-toolbar__block-switcher-wrapper .block-editor-block-switcher{display:block}.block-editor-inserter{display:inline-block;background:none;border:none;padding:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:1.4}@media (min-width:782px){.block-editor-inserter{position:relative}}.block-editor-inserter__popover .block-editor-inserter__menu{margin:-12px}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__tabs .components-tab-panel__tabs{top:60px}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__main-area{overflow:visible;height:auto}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__preview-container{display:none}.block-editor-inserter__toggle.components-button{display:inline-flex;align-items:center;cursor:pointer;border:none;outline:none;padding:0;transition:color .2s ease}@media (prefers-reduced-motion:reduce){.block-editor-inserter__toggle.components-button{transition-duration:0s}}.block-editor-inserter__menu{height:100%;position:relative;overflow:visible}.block-editor-inserter__main-area{width:auto;overflow-y:auto;height:100%}@media (min-width:782px){.block-editor-inserter__main-area{width:350px}}.block-editor-inserter__inline-elements{margin-top:-1px}.block-editor-inserter__menu.is-bottom:after{border-bottom-color:#fff}.components-popover.block-editor-inserter__popover{z-index:99998}.block-editor-inserter__search{padding:16px;position:-webkit-sticky;position:sticky;top:0;background:#fff;z-index:1}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;line-height:normal;display:block;padding:16px 48px 16px 16px;background:#f0f0f0;border:none;width:100%;height:48px;font-size:16px}@media (prefers-reduced-motion:reduce){.block-editor-inserter__search input[type=search].block-editor-inserter__search-input{transition-duration:0s}}@media (min-width:600px){.block-editor-inserter__search input[type=search].block-editor-inserter__search-input{font-size:13px;line-height:normal}}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px #007cba;box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-inserter__search input[type=search].block-editor-inserter__search-input:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}@media (min-width:600px){.block-editor-inserter__search input[type=search].block-editor-inserter__search-input{font-size:13px}}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input:focus{background:#fff;box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color)}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input:-ms-input-placeholder{color:#606a73}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-ms-input-placeholder{color:#606a73}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::placeholder{color:#606a73}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-webkit-search-cancel-button,.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-webkit-search-decoration,.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-webkit-search-results-button,.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-webkit-search-results-decoration{-webkit-appearance:none}.block-editor-inserter__search-icon{position:absolute;top:0;right:20px;bottom:0;display:flex;align-items:center}.block-editor-inserter__search-icon>svg{margin:8px}.block-editor-inserter__tabs{display:flex;flex-direction:column;margin-top:-8px}.block-editor-inserter__tabs .components-tab-panel__tabs{position:-webkit-sticky;position:sticky;top:72px;background:#fff;z-index:1;border-bottom:1px solid #ddd}.block-editor-inserter__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item{flex-grow:1;margin-bottom:-1px}.block-editor-inserter__tabs .components-tab-panel__tab-content{display:flex;flex-grow:1;flex-direction:column;position:relative}.block-editor-inserter__panel-header{display:inline-flex;align-items:center;padding:16px 16px 0}.block-editor-inserter__panel-content{padding:0 16px}.block-editor-inserter__panel-title{margin:0 12px 0 0;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500}.block-editor-inserter__block-list{flex-grow:1;position:relative}.block-editor-inserter__popover .block-editor-block-types-list{margin:0 -8px}.block-editor-inserter__reusable-blocks-panel{position:relative;text-align:right}.block-editor-inserter__manage-reusable-blocks{display:inline-block;margin:16px}.block-editor-inserter__no-results{padding:32px;margin-top:64px;text-align:center}.block-editor-inserter__no-results-icon{fill:#b5bcc2}.block-editor-inserter__child-blocks{padding:0 16px}.block-editor-inserter__parent-block-header{display:flex;align-items:center}.block-editor-inserter__parent-block-header h2{font-size:13px}.block-editor-inserter__parent-block-header .block-editor-block-icon{margin-right:8px}.block-editor-inserter__preview-container{display:none;width:300px;background:#fff;border-radius:2px;border:1px solid #ddd;position:absolute;top:16px;left:calc(100% + 16px)}@media (min-width:782px){.block-editor-inserter__preview-container{display:block}}.block-editor-inserter__preview-container .block-editor-block-card{padding:16px}.block-editor-inserter__preview-container .block-editor-block-card__title{font-size:13px}.block-editor-inserter__preview-content{min-height:144px;background:#f0f0f0;display:-ms-grid;display:grid;flex-grow:1;align-items:center}.block-editor-inserter__preview-content-missing{flex:1;display:flex;justify-content:center;align-items:center;min-height:144px;color:#606a73;background:#f0f0f0}.block-editor-inserter__tips{border-top:1px solid #ddd;padding:16px;flex-shrink:0}.block-editor-inserter__manage-reusable-blocks-container{padding:16px}.block-editor-inserter__quick-inserter{width:100%}@media (min-width:782px){.block-editor-inserter__quick-inserter{width:350px}}.block-editor-inserter__quick-inserter-results{padding-bottom:16px}.block-editor-inserter__quick-inserter-results .block-editor-inserter__panel-header{height:0;padding:0;float:left}.block-editor-inserter__quick-inserter-patterns{display:-ms-grid;display:grid;-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr;grid-gap:8px}.block-editor-inserter__quick-inserter-separator{border-top:1px solid #ddd}.block-editor-inserter__popover.is-quick>.components-popover__content>div{padding:0}.block-editor-inserter__quick-inserter-expand.components-button{display:block;background:#1e1e1e;color:#fff;width:100%;height:44px;border-radius:0}.block-editor-inserter__quick-inserter-expand.components-button:hover{color:#fff}.block-editor-inserter__quick-inserter-expand.components-button:focus:not(:disabled){box-shadow:inset 0 0 0 1.5px #1e1e1e,inset 0 0 0 2px #fff}.block-editor-post-preview__dropdown{display:none;margin-right:12px;padding:0}.block-editor-post-preview__button-resize.block-editor-post-preview__button-resize{padding-left:40px}.block-editor-post-preview__button-resize.block-editor-post-preview__button-resize.has-icon{padding-left:8px}.block-editor-post-preview__dropdown-content .components-popover__content{overflow-y:visible}.block-editor-post-preview__dropdown-content .components-menu-group+.components-menu-group{border-top:1px solid #ccc;padding:8px 12px;margin-left:-12px;margin-right:-12px}@media (min-width:600px){.editor-post-preview{display:none}.block-editor-post-preview__dropdown{display:flex}} \ No newline at end of file + /*!rtl:end:ignore*/}.wp-block[data-align=full],.wp-block[data-align=wide]{clear:both}.block-editor-block-list .block-editor-inserter{margin:8px;cursor:move;cursor:grab}.block-editor-block-list__insertion-point{position:relative;z-index:6;margin-top:-14px}.block-editor-block-list__insertion-point-indicator{position:absolute;top:calc(50% - 1px);height:1.5px;left:0;right:0;background:#007cba;background:var(--wp-admin-theme-color)}.block-editor-block-list__insertion-point-inserter{display:none;justify-content:center;cursor:text}@media (min-width:480px){.block-editor-block-list__insertion-point-inserter{display:flex}}.block-editor-block-list__insertion-point-inserter.is-inserter-hidden .block-editor-inserter__toggle{visibility:hidden;pointer-events:none}.block-editor-block-list__block-popover-inserter{position:absolute;top:-9999em;margin-bottom:14px}.block-editor-block-list__block-popover-inserter.is-visible{position:static}.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon,.block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon{background:#1e1e1e;border-radius:2px;color:#fff;padding:0;min-width:24px;height:24px}.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button.has-icon:hover,.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon:hover,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon:hover,.block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon:hover{color:#fff}.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button{animation:block-editor-inserter__toggle__fade-in-animation-delayed .3s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button{animation-duration:1ms}}@keyframes block-editor-inserter__toggle__fade-in-animation-delayed{0%{opacity:0}80%{opacity:0}to{opacity:1}}@keyframes block-editor-inserter__toggle__fade-in-animation{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}.wp-block .block-list-appender .block-editor-inserter__toggle{animation:block-editor-inserter__toggle__fade-in-animation .1s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.wp-block .block-list-appender .block-editor-inserter__toggle{animation-duration:1ms}}.block-editor-block-list__block:not(.is-selected):not(.has-child-selected) .block-editor-default-block-appender{display:none}.block-editor-block-list__block:not(.is-selected):not(.has-child-selected) .block-editor-default-block-appender .block-editor-inserter__toggle{opacity:0;transform:scale(0)}.block-editor-block-list__block>.block-editor-block-list__insertion-point{position:absolute;top:-16px;height:28px;bottom:auto;left:14px;right:14px}.block-editor-block-list__block .block-editor-block-list__block-html-textarea{display:block;margin:0;width:100%;border:none;outline:none;box-shadow:none;resize:none;overflow:hidden;font-family:Menlo,Consolas,monaco,monospace;font-size:15px;line-height:150%;transition:padding .2s linear}@media (prefers-reduced-motion:reduce){.block-editor-block-list__block .block-editor-block-list__block-html-textarea{transition-duration:0s}}.block-editor-block-list__block .block-editor-block-list__block-html-textarea:focus{box-shadow:none}.block-editor-block-contextual-toolbar{border:1px solid #1e1e1e;border-radius:2px;background-color:#fff}.block-editor-block-contextual-toolbar .block-editor-block-toolbar .components-toolbar,.block-editor-block-contextual-toolbar .block-editor-block-toolbar .components-toolbar-group,.block-editor-block-contextual-toolbar .block-editor-block-toolbar__mover-switcher-container{border-right-color:#1e1e1e}.block-editor-block-contextual-toolbar .block-editor-block-toolbar__mover-switcher-container{border-right-style:solid;border-right-width:1px}.block-editor-block-contextual-toolbar .block-editor-block-toolbar__block-switcher-wrapper .block-editor-block-switcher__no-switcher-icon:before,.block-editor-block-contextual-toolbar .block-editor-block-toolbar__block-switcher-wrapper .block-editor-block-switcher__toggle:before{width:28px}.block-editor-block-contextual-toolbar .block-editor-block-toolbar__block-switcher-wrapper .block-editor-block-icon svg{margin-left:10px}.block-editor-block-contextual-toolbar .block-editor-block-toolbar__block-switcher-wrapper .block-editor-block-switcher:last-child .block-editor-block-icon svg{margin-left:auto}.block-editor-block-contextual-toolbar .block-editor-block-toolbar__block-switcher-wrapper .components-toolbar,.block-editor-block-contextual-toolbar .block-editor-block-toolbar__block-switcher-wrapper .components-toolbar-group{border-right:none}.block-editor-block-contextual-toolbar .block-editor-block-mover{margin-left:-12px;width:36px}.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal{width:48px}.block-editor-block-contextual-toolbar .block-editor-block-mover .components-button.has-icon.block-editor-block-mover-button.block-editor-block-mover-button{min-width:36px;width:36px}.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .components-button.has-icon.block-editor-block-mover-button.block-editor-block-mover-button{min-width:24px;width:24px}.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button>svg{margin-left:2px}.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-up-button svg{margin-top:3px}.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-down-button svg{margin-bottom:3px}.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button:focus:before{left:0!important;min-width:0;width:28px}.block-editor-block-list__block-selection-button{display:block;z-index:22}.block-editor-block-list__block-selection-button .components-button{font-size:13px;height:46px;padding:12px 16px;position:relative;top:-1px;box-shadow:0 0 0 1px #1e1e1e;border-radius:1px;background-color:#fff}.block-editor-block-list__block-selection-button .components-button:focus{box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color)}.block-editor-block-list__block .block-editor-warning{z-index:5;position:relative}.block-editor-block-list__block .block-editor-warning.block-editor-block-list__block-crash-warning{margin-bottom:auto}.block-editor-block-list__insertion-point-popover.is-without-arrow{z-index:28;position:absolute}.block-editor-block-list__insertion-point-popover.is-without-arrow .components-popover__content.components-popover__content{background:none;border:none;box-shadow:none;overflow-y:visible;margin-left:0}.components-popover.block-editor-block-list__block-popover{z-index:31;position:absolute}.components-popover.block-editor-block-list__block-popover .components-popover__content{margin:0!important;min-width:auto;width:max-content;background:none;border:none;box-shadow:none;overflow-y:visible;pointer-events:none}.components-popover.block-editor-block-list__block-popover .components-popover__content>*{pointer-events:all}.components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-contextual-toolbar,.components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-list__block-selection-button{margin-bottom:12px}.is-dragging-components-draggable .components-popover.block-editor-block-list__block-popover{opacity:0}.is-dragging-components-draggable .components-tooltip{display:none}.block-editor-block-list__block .block-list-appender{margin:8px 0}.has-background .block-editor-block-list__block .block-list-appender{margin:20px 8px}.block-editor-block-list__block .block-list-appender .block-list-appender__toggle{padding:0;opacity:1;transform:scale(1);transition:all .1s ease}@media (prefers-reduced-motion:reduce){.block-editor-block-list__block .block-list-appender .block-list-appender__toggle{transition-duration:0s}}.block-list-appender>.block-editor-inserter{display:block}.block-editor-block-list__block:not(.is-selected):not(.has-child-selected):not(.block-editor-block-list__layout) .block-editor-block-list__layout>.block-list-appender .block-list-appender__toggle{opacity:0;transform:scale(0)}.block-editor-block-breadcrumb{list-style:none;padding:0;margin:0}.block-editor-block-breadcrumb li{display:inline-block;margin:0}.block-editor-block-breadcrumb li:not(:last-child):after{content:"→"}.block-editor-block-breadcrumb__button.components-button{height:24px;line-height:24px;padding:0;position:relative}.block-editor-block-breadcrumb__button.components-button:hover:not(:disabled){text-decoration:underline;box-shadow:none}.block-editor-block-breadcrumb__button.components-button:focus{box-shadow:none}.block-editor-block-breadcrumb__button.components-button:focus:before{content:"";display:block;position:absolute;border-radius:2px;top:1px;right:1px;bottom:1px;left:1px;box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color)}.block-editor-block-breadcrumb__current{cursor:default}.block-editor-block-breadcrumb__button.components-button,.block-editor-block-breadcrumb__current{color:#1e1e1e;padding:0 8px;font-size:inherit}.block-editor-block-card{display:flex;align-items:flex-start}.block-editor-block-card__icon{border:1px solid #ccd0d4;padding:7px;margin-right:10px;height:36px;width:36px}.block-editor-block-card__content{flex-grow:1}.block-editor-block-card__title{font-weight:500}.block-editor-block-card__title.block-editor-block-card__title{margin:0 0 5px}.block-editor-block-card__description{font-size:13px}.block-editor-block-card .block-editor-block-icon{margin-left:-2px;margin-right:10px;padding:0 3px;width:36px;height:24px}.block-editor-block-compare{overflow:auto;height:auto}@media (min-width:600px){.block-editor-block-compare{max-height:70%}}.block-editor-block-compare__wrapper{display:flex;padding-bottom:16px}.block-editor-block-compare__wrapper>div{display:flex;justify-content:space-between;flex-direction:column;width:50%;padding:0 16px 0 0;min-width:200px}.block-editor-block-compare__wrapper>div button{float:right}.block-editor-block-compare__wrapper .block-editor-block-compare__converted{border-left:1px solid #ddd;padding-left:15px;padding-right:0}.block-editor-block-compare__wrapper .block-editor-block-compare__html{font-family:Menlo,Consolas,monaco,monospace;font-size:12px;color:#1e1e1e;border-bottom:1px solid #ddd;padding-bottom:15px;line-height:1.7}.block-editor-block-compare__wrapper .block-editor-block-compare__html span{background-color:#e6ffed;padding-top:3px;padding-bottom:3px}.block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__added{background-color:#acf2bd}.block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__removed{background-color:#d94f4f}.block-editor-block-compare__wrapper .block-editor-block-compare__preview{padding:14px 0 0}.block-editor-block-compare__wrapper .block-editor-block-compare__preview p{font-size:12px;margin-top:0}.block-editor-block-compare__wrapper .block-editor-block-compare__action{margin-top:14px}.block-editor-block-compare__wrapper .block-editor-block-compare__heading{font-size:1em;font-weight:400;margin:.67em 0}.block-editor-block-draggable-chip-wrapper{position:absolute;top:-60px}.block-editor-block-draggable-chip{background-color:#1e1e1e;border-radius:2px;border:1px solid #1e1e1e;box-shadow:0 4px 6px rgba(0,0,0,.3);color:#fff;cursor:grabbing;display:inline-flex;height:48px;min-width:72px;padding:0 12px;-webkit-user-select:none;-ms-user-select:none;user-select:none}.block-editor-block-draggable-chip svg{fill:currentColor}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content{margin:auto}.block-editor-block-draggable-chip .components-flex__item{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.is-dragging.is-multi-selected,.is-dragging.is-selected{display:none!important}.block-editor-block-mobile-toolbar{display:flex;flex-direction:row;border-right:1px solid #ddd}.block-editor-block-mobile-toolbar .block-editor-block-mover-button{width:36px;height:36px;border-radius:2px;padding:3px;margin:0;justify-content:center;align-items:center}.block-editor-block-mobile-toolbar .block-editor-block-mover-button .dashicon{margin:auto}.block-editor-block-mobile-toolbar .block-editor-block-mover{display:flex;margin-right:auto}.block-editor-block-mobile-toolbar .block-editor-block-mover .block-editor-block-mover-button{float:left}.block-editor-block-mover{display:inline-flex;flex-direction:row}.block-editor-block-mover-button__description{display:none}.block-editor-block-mover-button.has-icon{padding:0}.block-editor-block-mover .components-toolbar,.block-editor-block-mover .components-toolbar-group{flex-direction:column;flex:1}.block-editor-block-mover.is-horizontal .components-toolbar,.block-editor-block-mover.is-horizontal .components-toolbar-group{flex-direction:row}.block-editor-block-mover .block-editor-block-mover-button{height:24px;width:48px;padding:0!important}.block-editor-block-mover .block-editor-block-mover-button:before{left:8px!important;right:8px!important}.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-up-button svg,.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-up-button svg{margin-bottom:-8px}.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-up-button:before,.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-up-button:before{bottom:0;height:calc(100% - 8px)}.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-down-button svg,.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-down-button svg{margin-top:-8px}.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-down-button:before,.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-down-button:before{top:0;height:calc(100% - 8px)}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.has-icon{height:48px;width:24px;min-width:24px;padding-left:0;padding-right:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.has-icon:before{top:8px;bottom:8px;min-width:0;width:auto;height:auto}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-up-button.has-icon svg{margin-left:0;margin-right:-8px;margin-bottom:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-up-button.has-icon:before{left:8px!important;right:0!important}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-down-button.has-icon svg{margin-left:-8px;margin-right:0;margin-top:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-down-button.has-icon:before{left:0!important;right:8px!important}.block-editor-block-navigation__label{margin:0 0 12px;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500}.block-editor-block-navigation__container{padding:7px}.block-editor-block-navigation-tree{width:100%;border-collapse:collapse;padding:0;margin:0}.block-editor-block-navigation-leaf{position:relative}.block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents{display:flex;align-items:center;width:calc(100% - .8em);height:auto;padding:12px 6px;margin-top:auto;margin-bottom:auto;text-align:left;color:#40464d;border-radius:2px}.components-modal__content .block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents{padding-left:0;padding-right:0}.block-editor-block-navigation-leaf.is-visible .block-editor-block-navigation-block-contents{opacity:1;animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.block-editor-block-navigation-leaf.is-visible .block-editor-block-navigation-block-contents{animation-duration:1ms}}.block-editor-block-navigation-leaf .block-editor-block-icon{align-self:flex-start;margin-right:6px}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__contents-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell{padding-top:0;padding-bottom:0}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell{width:36px;opacity:0;vertical-align:top}@media (prefers-reduced-motion:reduce){.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell{transition-duration:0s}}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell.is-visible,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell.is-visible{opacity:1;animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell.is-visible,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell.is-visible{animation-duration:1ms}}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell .components-button.has-icon,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell .components-button.has-icon{width:24px;min-width:24px;padding:0}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell{padding-top:8px}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell-alignment-wrapper{display:flex;height:100%;flex-direction:column;align-items:center}.block-editor-block-navigation-leaf .block-editor-block-mover-button{position:relative;width:36px;height:24px}.block-editor-block-navigation-leaf .block-editor-block-mover-button svg{position:relative;height:24px}.block-editor-block-navigation-leaf .block-editor-block-mover-button.is-up-button{align-items:flex-end}.block-editor-block-navigation-leaf .block-editor-block-mover-button.is-up-button svg{bottom:-4px}.block-editor-block-navigation-leaf .block-editor-block-mover-button.is-down-button{align-items:flex-start}.block-editor-block-navigation-leaf .block-editor-block-mover-button.is-down-button svg{top:-4px}.block-editor-block-navigation-leaf .block-editor-block-mover-button:focus:enabled{box-shadow:none;outline:none}.block-editor-block-navigation-leaf .block-editor-block-mover-button:focus{box-shadow:none;outline:none}.block-editor-block-navigation-leaf .block-editor-block-mover-button:focus:before{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 0 0 4px #fff;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 0 0 4px #fff;outline:2px solid transparent}.block-editor-block-navigation-leaf .block-editor-block-mover-button:before{content:"";position:absolute;display:block;border-radius:2px;height:16px;min-width:100%;left:0;right:0;animation:components-button__appear-animation .1s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.block-editor-block-navigation-leaf .block-editor-block-mover-button:before{animation-duration:1ms}}.block-editor-block-navigation-leaf .block-editor-inserter__toggle{background:#1e1e1e;color:#fff;height:24px;margin:6px 6px 6px 1px;min-width:24px}.block-editor-block-navigation-leaf .block-editor-inserter__toggle:active{color:#fff}.block-editor-block-navigation-appender__description,.block-editor-block-navigation-block-select-button__description,.block-editor-block-navigation-block-slot__description{display:none}.block-editor-block-navigation-appender__cell .block-editor-block-navigation-appender__container,.block-editor-block-navigation-appender__cell .block-editor-block-navigation-block__contents-container,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigation-appender__container,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigation-block__contents-container{display:flex}.block-editor-block-navigation-appender__cell .block-editor-block-navigation-block__contents-container,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigation-block__contents-container{min-height:56px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line{position:relative;flex-shrink:0;width:24px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line:first-child,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line:first-child{width:18px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line.has-item{margin-right:6px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line:before,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line:before{content:"";display:block;position:absolute;top:1px;bottom:-2px;right:-1px;border-right:2px solid #a2aab2}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.is-terminated:before,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line.is-terminated:before{border-color:transparent}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item.is-last-row,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line.has-item.is-last-row{height:26px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item:after,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line.has-item:after{content:"";display:block;position:absolute;top:26px;left:100%;width:5px;border-bottom:2px solid #a2aab2}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item.is-last-row{height:16px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item.is-last-row:after{top:100%}.block-editor-block-parent-selector{background:#fff;border-radius:2px}.block-editor-block-parent-selector .block-editor-block-parent-selector__button{width:48px;height:48px;border:1px solid #1e1e1e;border-radius:2px}.block-editor-block-patterns-list__item{border-radius:2px;cursor:pointer;margin-top:16px;transition:all .05s ease-in-out;position:relative;border:1px solid transparent}.block-editor-block-patterns-list__item:hover{border:1px solid #007cba;border:1px solid var(--wp-admin-theme-color)}.block-editor-block-patterns-list__item:focus{box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-block-patterns-list__item.is-placeholder{min-height:100px}.block-editor-block-patterns-list__item-title{padding:4px;font-size:12px;text-align:center}.block-editor-block-preview__container{position:relative;width:100%;overflow:hidden}.block-editor-block-preview__container.editor-styles-wrapper{padding:0;margin:0}.block-editor-block-preview__content{position:absolute;top:0;left:0;transform-origin:top left;text-align:initial;margin:0;overflow:visible;min-height:auto}.block-editor-block-preview__content .block-editor-block-drop-zone,.block-editor-block-preview__content .block-editor-block-list__insertion-point,.block-editor-block-preview__content .block-list-appender,.block-editor-block-preview__content .reusable-block-indicator{display:none}.block-editor-block-preview__content .block-editor-block-list__layout.is-root-container{padding-left:0;padding-right:0}.block-editor-block-preview__content .block-editor-block-list__layout.is-root-container>.wp-block[data-align=full]{margin-left:0;margin-right:0}.block-editor-block-settings-menu__popover .components-dropdown-menu__menu{padding:0}.block-editor-block-styles{display:flex;flex-wrap:wrap;justify-content:space-between}.block-editor-block-styles__item{width:calc(50% - 4px);margin:4px 0;flex-shrink:0;cursor:pointer;overflow:hidden;border-radius:2px;padding:6px;display:flex;flex-direction:column}.block-editor-block-styles__item:focus{box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-block-styles__item:hover .block-editor-block-styles__item-preview{border-color:#007cba;border-color:var(--wp-admin-theme-color)}.block-editor-block-styles__item.is-active .block-editor-block-styles__item-label{font-weight:700}.block-editor-block-styles__item.is-active .block-editor-block-styles__item-preview{border:2px solid #1e1e1e}.block-editor-block-styles__item-preview{outline:1px solid transparent;padding:0;border-radius:2px;display:flex;overflow:hidden;background:#fff;align-items:center;flex-grow:1;min-height:80px}.block-editor-block-switcher__styles__menugroup{position:relative}.block-editor-block-styles__item-label{text-align:center;padding:4px 0}.block-editor-block-switcher,.block-editor-block-switcher__no-switcher-icon,.block-editor-block-switcher__toggle{position:relative}.components-button.block-editor-block-switcher__no-switcher-icon,.components-button.block-editor-block-switcher__toggle{margin:0;display:block;height:48px}.components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon,.components-button.block-editor-block-switcher__toggle .block-editor-block-icon{margin:auto}.components-button.block-editor-block-switcher__no-switcher-icon{width:48px}.components-button.block-editor-block-switcher__no-switcher-icon .block-editor-blocks-icon{margin-right:auto;margin-left:auto}.components-button.block-editor-block-switcher__no-switcher-icon:disabled{opacity:1}.components-button.block-editor-block-switcher__no-switcher-icon:disabled,.components-button.block-editor-block-switcher__no-switcher-icon:disabled .block-editor-block-icon.has-colors{color:#1e1e1e!important}.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon,.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon{padding:0}.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon .block-editor-block-icon,.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon .block-editor-block-icon,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon .block-editor-block-icon,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon .block-editor-block-icon{height:100%;position:relative;margin:0 auto;display:flex;align-items:center}.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon:before,.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon:before,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon:before,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon:before{top:8px;right:8px;bottom:8px;left:8px}.components-popover.block-editor-block-switcher__popover .components-popover__content{min-width:300px}.components-popover.block-editor-block-switcher__popover .components-popover__content>div{min-width:auto;display:flex;background:#fff;padding:0}.components-popover.block-editor-block-switcher__popover .components-popover__content>div .components-menu-group{padding:16px;margin:0}.block-editor-block-switcher__popover .components-popover__content .block-editor-block-styles{margin:0 -3px}.block-editor-block-switcher__popover .components-popover__content .components-panel__body{border:0;position:relative;z-index:1}.block-editor-block-switcher__popover .components-popover__content .components-panel__body+.components-panel__body{border-top:1px solid #f0f0f0}.block-editor-block-switcher__popover__preview__parent .block-editor-block-switcher__popover__preview__container{position:absolute;top:-12px;left:calc(100% + 32px)}.block-editor-block-switcher__preview__popover{display:none}.block-editor-block-switcher__preview__popover.components-popover{margin-left:4px;margin-top:11px}@media (min-width:782px){.block-editor-block-switcher__preview__popover{display:block}}.block-editor-block-switcher__preview__popover .components-popover__content{box-shadow:none;border:1px solid #1e1e1e;background:#fff;border-radius:2px}.block-editor-block-switcher__preview__popover .block-editor-block-switcher__preview{width:300px;height:auto;padding:16px}.block-editor-block-switcher__preview-title{margin-bottom:12px;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle{height:48px}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon{width:48px}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-switcher__transform,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-icon,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform{width:48px;height:48px}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-switcher__transform,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform{padding:12px}.block-editor-block-types-list{list-style:none;padding:4px;margin-left:-4px;margin-right:-4px;overflow:hidden;display:flex;flex-wrap:wrap}.block-editor-block-variation-picker .components-placeholder__instructions{margin-bottom:0}.block-editor-block-variation-picker .components-placeholder__fieldset{flex-direction:column}.block-editor-block-variation-picker.has-many-variations .components-placeholder__fieldset{max-width:90%}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations{display:flex;justify-content:flex-start;flex-direction:row;flex-wrap:wrap;width:100%;margin:16px 0;padding:0;list-style:none}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations>li{list-style:none;margin:8px 8px 0 0;flex-shrink:1;max-width:100px}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations>li button{display:flex}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations .block-editor-block-variation-picker__variation{padding:8px}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations .block-editor-block-variation-picker__variation-label{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:12px;display:block;margin-right:12px;text-align:center}.block-editor-block-variation-picker__variation{width:100%}.block-editor-block-variation-picker__variation.components-button.has-icon{justify-content:center;width:auto}.block-editor-block-variation-picker__variation.components-button.has-icon.is-secondary{background-color:#fff}.block-editor-block-variation-picker__variation.components-button{height:auto;padding:0}.block-editor-block-variation-picker__variation:before{content:"";padding-bottom:100%}.block-editor-block-variation-picker__variation:first-child{margin-left:0}.block-editor-block-variation-picker__variation:last-child{margin-right:0}.block-editor-button-block-appender{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:8px;width:100%;height:auto;color:#1e1e1e;box-shadow:inset 0 0 0 1px #1e1e1e}.block-editor-button-block-appender:hover{box-shadow:inset 0 0 0 1px #007cba;box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color)}.block-editor-button-block-appender:focus{box-shadow:inset 0 0 0 2px #007cba;box-shadow:inset 0 0 0 2px var(--wp-admin-theme-color)}.block-editor-button-block-appender:active{color:#000}.block-editor-button-block-appender.block-list-appender__toggle{display:flex;flex-direction:row;color:#1e1e1e;box-shadow:none;height:24px;padding:0;margin-left:8px}.block-editor-button-block-appender.block-list-appender__toggle:active{color:#fff}.block-editor-button-block-appender.block-list-appender__toggle>svg{width:24px;background-color:#1e1e1e;color:#fff;border-radius:2px}.block-editor-color-gradient-control__color-indicator{margin-bottom:8px}.block-editor-color-gradient-control__button-tabs{display:block;margin-bottom:8px}.block-editor-panel-color-gradient-settings .component-color-indicator{vertical-align:text-bottom}.block-editor-panel-color-gradient-settings__panel-title .component-color-indicator{display:inline-block}.block-editor-panel-color-gradient-settings.is-opened .block-editor-panel-color-gradient-settings__panel-title .component-color-indicator{display:none}.block-editor-contrast-checker>.components-notice{margin:0}.block-editor-default-block-appender{clear:both;margin-left:auto;margin-right:auto;position:relative}.block-editor-default-block-appender[data-root-client-id=""] .block-editor-default-block-appender__content:hover{outline:1px solid transparent}.block-editor-default-block-appender textarea.block-editor-default-block-appender__content{font-family:inherit;font-size:inherit;border:none;background:none;box-shadow:none;display:block;cursor:text;width:100%;outline:1px solid transparent;transition:outline .2s;resize:none;margin-top:28px;margin-bottom:28px;padding:0 50px 0 0;color:rgba(30,30,30,.62)}@media (prefers-reduced-motion:reduce){.block-editor-default-block-appender textarea.block-editor-default-block-appender__content{transition-duration:0s}}.is-dark-theme .block-editor-default-block-appender textarea.block-editor-default-block-appender__content{color:hsla(0,0%,100%,.65)}.block-editor-default-block-appender .components-drop-zone__content-icon{display:none}.block-editor-default-block-appender__content{line-height:1.8}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter,.block-editor-default-block-appender .block-editor-inserter{position:absolute;top:0;height:32px}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle,.block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle{margin-right:0}.block-editor-block-list__empty-block-inserter,.block-editor-default-block-appender .block-editor-inserter{right:8px}@media (min-width:600px){.block-editor-block-list__empty-block-inserter,.block-editor-default-block-appender .block-editor-inserter{display:flex;height:100%}}.block-editor-block-list__empty-block-inserter:disabled,.block-editor-default-block-appender .block-editor-inserter:disabled{display:none}@media (min-width:600px){.block-editor-default-block-appender .block-editor-inserter{align-items:center}}.block-editor-link-control{position:relative;min-width:360px}.components-popover__content .block-editor-link-control{min-width:auto;width:90vw;max-width:360px}.block-editor-link-control__search-input-wrapper{position:relative}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;font-size:16px;line-height:normal;width:calc(100% - 32px);display:block;padding:11px 36px 11px 16px;margin:16px;position:relative;border:1px solid #ddd;border-radius:2px}@media (prefers-reduced-motion:reduce){.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{transition-duration:0s}}@media (min-width:600px){.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{font-size:13px;line-height:normal}}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px #007cba;box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.block-editor-link-control .block-editor-link-control__search-input .components-base-control__field{margin-bottom:0}.block-editor-link-control__search-error{margin:-8px 16px 16px}.block-editor-link-control__search-actions{position:absolute;top:19px;right:19px}.block-editor-link-control__search-results-wrapper{position:relative;margin-top:-15px}.block-editor-link-control__search-results-wrapper:after,.block-editor-link-control__search-results-wrapper:before{content:"";position:absolute;left:-1px;right:16px;display:block;pointer-events:none;z-index:100}.block-editor-link-control__search-results-wrapper:before{height:8px;top:0;bottom:auto;background:linear-gradient(180deg,#fff 0,hsla(0,0%,100%,0))}.block-editor-link-control__search-results-wrapper:after{height:16px;bottom:0;top:auto;background:linear-gradient(180deg,hsla(0,0%,100%,0) 0,#fff)}.block-editor-link-control__search-results-label{padding:15px 30px 0;display:block;font-size:1.1em}.block-editor-link-control__search-results{margin:0;padding:8px 16px;max-height:200px;overflow-y:auto}.block-editor-link-control__search-results.is-loading{opacity:.2}.block-editor-link-control__search-item{position:relative;display:flex;align-items:center;font-size:13px;cursor:pointer;background:#fff;width:100%;border:none;text-align:left;padding:10px 15px;border-radius:5px;height:auto}.block-editor-link-control__search-item:focus,.block-editor-link-control__search-item:hover{background-color:#ddd}.block-editor-link-control__search-item:focus:not(:disabled){box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color) inset}.block-editor-link-control__search-item.is-selected{background:#f0f0f0}.block-editor-link-control__search-item.is-selected .block-editor-link-control__search-item-type{background:#fff}.block-editor-link-control__search-item.is-current{background:transparent;border:0;width:100%;cursor:default;padding:16px 16px 16px 24px}.block-editor-link-control__search-item .block-editor-link-control__search-item-header{display:block;margin-right:24px;overflow:hidden;white-space:nowrap}.block-editor-link-control__search-item .block-editor-link-control__search-item-icon{margin-right:1em;min-width:24px}.block-editor-link-control__search-item .block-editor-link-control__search-item-info,.block-editor-link-control__search-item .block-editor-link-control__search-item-title{max-width:230px;overflow:hidden;text-overflow:ellipsis}.block-editor-link-control__search-item .block-editor-link-control__search-item-title mark{color:#1e1e1e}.block-editor-link-control__search-item .block-editor-link-control__search-item-title{display:block;margin-bottom:.2em;font-weight:500}.block-editor-link-control__search-item .block-editor-link-control__search-item-title mark{font-weight:700;color:#000;background-color:transparent}.block-editor-link-control__search-item .block-editor-link-control__search-item-title span{font-weight:400}.block-editor-link-control__search-item .block-editor-link-control__search-item-info{display:block;color:#6c7781;font-size:.9em;line-height:1.3}.block-editor-link-control__search-item .block-editor-link-control__search-item-type{display:block;padding:3px 8px;margin-left:auto;font-size:.9em;background-color:#f0f0f0;border-radius:2px}.block-editor-link-control__loading{margin:16px;display:flex;align-items:center}.block-editor-link-control__loading .components-spinner{margin-top:0}.components-button+.block-editor-link-control__search-create{margin-top:20px;overflow:visible;padding:12px 15px}.components-button+.block-editor-link-control__search-create:before{content:"";position:absolute;top:-10px;left:0;display:block;width:100%;border-top:1px solid #ddd}.block-editor-link-control__search-results div[role=menu]>.block-editor-link-control__search-item.block-editor-link-control__search-item{padding:10px}.block-editor-link-control__settings{border-top:1px solid #ddd;margin:0;padding:16px 24px}.block-editor-link-control__settings :last-child{margin-bottom:0}.block-editor-link-control__setting{margin-bottom:16px}.block-editor-link-control__setting :last-child{margin-bottom:0}.block-editor-link-control .block-editor-link-control__search-input .components-spinner{display:block}.block-editor-link-control .block-editor-link-control__search-input .components-spinner.components-spinner{position:absolute;left:auto;bottom:auto;top:28px;right:62px}.block-editor-link-control__search-item-action{margin-left:auto;flex-shrink:0}.block-editor-line-height-control{margin-bottom:24px}.block-editor-line-height-control input{display:block;max-width:60px}.block-editor-image-size-control{margin-bottom:1em}.block-editor-image-size-control .block-editor-image-size-control__row{display:flex;justify-content:space-between}.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__height,.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__width{margin-bottom:.5em}.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__height input,.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__width input{line-height:1.25}.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__width{margin-right:5px}.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__height{margin-left:5px}.block-editor-block-list__layout.has-overlay:after{content:"";position:absolute;top:-14px;right:-14px;bottom:-14px;left:-14px;z-index:60}[data-align=full] .has-overlay:after{right:0;left:0}.block-editor-block-types-list__list-item{display:block;width:33.33%;padding:0;margin:0}.components-button.block-editor-block-types-list__item{display:flex;flex-direction:column;width:100%;font-size:13px;color:#32373c;padding:8px;align-items:stretch;justify-content:center;cursor:pointer;background:transparent;word-break:break-word;border-radius:2px;border:1px solid transparent;transition:all .05s ease-in-out;position:relative;height:auto}@media (prefers-reduced-motion:reduce){.components-button.block-editor-block-types-list__item{transition-duration:0s}}.components-button.block-editor-block-types-list__item:disabled{opacity:.6;cursor:default}.components-button.block-editor-block-types-list__item:not(:disabled):hover{border-color:#007cba;border-color:var(--wp-admin-theme-color);color:#007cba!important;color:var(--wp-admin-theme-color)!important}.components-button.block-editor-block-types-list__item:not(:disabled).is-active{color:#fff;background:#1e1e1e;outline:2px solid transparent;outline-offset:-2px}.block-editor-block-types-list__item-icon{padding:12px 20px;border-radius:2px;color:#1e1e1e;transition:all .05s ease-in-out}@media (prefers-reduced-motion:reduce){.block-editor-block-types-list__item-icon{transition-duration:0s}}.block-editor-block-types-list__item-icon .block-editor-block-icon{margin-left:auto;margin-right:auto}.block-editor-block-types-list__item-icon svg{transition:all .15s ease-out}@media (prefers-reduced-motion:reduce){.block-editor-block-types-list__item-icon svg{transition-duration:0s}}.block-editor-block-types-list__item-title{padding:4px 2px 8px;font-size:12px}.modal-open .block-editor-media-replace-flow__options{display:none}.block-editor-media-replace-flow__options .components-popover__content>div{padding-top:16px}.block-editor-media-replace-flow__indicator{margin-left:4px}.block-editor-media-replace-flow__media-upload-menu{margin-bottom:16px}.block-editor-media-flow__url-input .block-editor-media-replace-flow__image-url-label{top:16px}.block-editor-media-flow__url-input .block-editor-link-control{margin-top:-16px;width:auto}.block-editor-media-flow__url-input .block-editor-link-control .components-base-control .components-base-control__field{margin-bottom:0}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item-title{max-width:180px;margin-top:16px}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item.is-current{width:auto;padding:0}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{margin:16px 0 0;width:100%}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-actions{right:4px}.block-editor-media-flow__error{padding:0 20px 20px;max-width:255px}.block-editor-media-flow__error .components-with-notices-ui{max-width:255px}.block-editor-media-flow__error .components-with-notices-ui .components-notice__content{overflow:hidden;word-wrap:break-word}.block-editor-media-flow__error .components-with-notices-ui .components-notice__dismiss{position:absolute;right:10px}.block-editor-media-placeholder__url-input-container .block-editor-media-placeholder__button{margin-bottom:0}.block-editor-media-placeholder__url-input-form{display:flex}.block-editor-media-placeholder__url-input-form input[type=url].block-editor-media-placeholder__url-input-field{width:100%;flex-grow:1;border:none;border-radius:0;margin:2px}@media (min-width:600px){.block-editor-media-placeholder__url-input-form input[type=url].block-editor-media-placeholder__url-input-field{width:300px}}.block-editor-media-placeholder__url-input-submit-button{flex-shrink:1}.block-editor-media-placeholder__button{margin-bottom:.5rem}.block-editor-media-placeholder__cancel-button.is-link{margin:1em;display:block}.block-editor-media-placeholder.is-appender{min-height:0}.block-editor-media-placeholder.is-appender:hover{cursor:pointer;box-shadow:0 0 0 1px #007cba;box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.block-editor-multi-selection-inspector__card{display:flex;align-items:flex-start;padding:16px}.block-editor-multi-selection-inspector__card-content{flex-grow:1}.block-editor-multi-selection-inspector__card-title{font-weight:500;margin-bottom:5px}.block-editor-multi-selection-inspector__card-description{font-size:13px}.block-editor-multi-selection-inspector__card .block-editor-block-icon{margin-left:-2px;margin-right:10px;padding:0 3px;width:36px;height:24px}.block-editor .block-editor-plain-text{box-shadow:none;font-family:inherit;font-size:inherit;color:inherit;line-height:inherit;border:none;padding:0;margin:0;width:100%}.block-editor-responsive-block-control{margin-bottom:28px;border-bottom:1px solid #d7dade;padding-bottom:14px}.block-editor-responsive-block-control:last-child{padding-bottom:0;border-bottom:0}.block-editor-responsive-block-control__title{margin:0 0 .6em -3px}.block-editor-responsive-block-control__label{font-weight:600;margin-bottom:.6em;margin-left:-3px}.block-editor-responsive-block-control__inner{margin-left:-1px}.block-editor-responsive-block-control__toggle{margin-left:1px}.block-editor-responsive-block-control .components-base-control__help{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.block-editor-format-toolbar .components-dropdown-menu__toggle{justify-content:center}.block-editor-rich-text__editable>p:first-child{margin-top:0}.block-editor-rich-text__editable [data-rich-text-placeholder]{pointer-events:none}.block-editor-rich-text__editable [data-rich-text-placeholder]:after{content:attr(data-rich-text-placeholder);opacity:.62}.block-editor-rich-text__editable:focus{outline:none}.block-editor-rich-text__editable:focus [data-rich-text-format-boundary]{border-radius:2px}.block-editor-rich-text__editable:focus:not(.keep-placeholder-on-focus) [data-rich-text-placeholder]:after{display:none}figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]:before{opacity:.8}.components-popover.block-editor-rich-text__inline-format-toolbar{z-index:99998}.components-popover.block-editor-rich-text__inline-format-toolbar .components-popover__content{width:auto;min-width:auto;margin-bottom:8px;box-shadow:none;border:1px solid #1e1e1e;border-radius:2px;background-color:#fff}.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar,.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar-group{border:none}.components-popover.block-editor-rich-text__inline-format-toolbar .components-dropdown-menu__toggle,.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar__control{min-width:48px;min-height:48px;padding-left:12px;padding-right:12px}.block-editor-skip-to-selected-block{position:absolute;top:-9999em}.block-editor-skip-to-selected-block:focus{height:auto;width:auto;display:block;font-size:14px;font-weight:600;padding:15px 23px 14px;background:#f1f1f1;color:#007cba;color:var(--wp-admin-theme-color);line-height:normal;box-shadow:0 0 2px 2px rgba(0,0,0,.6);text-decoration:none;outline:none;z-index:100000}.block-editor-tool-selector__help{margin:8px -12px -12px;padding:12px 20px;border-top:1px solid #ddd;color:#6c7781}.block-editor-block-list__block .block-editor-url-input,.block-editor-url-input,.components-popover .block-editor-url-input{flex-grow:1;position:relative;padding:1px}.block-editor-block-list__block .block-editor-url-input input[type=text],.block-editor-url-input input[type=text],.components-popover .block-editor-url-input input[type=text]{width:100%;padding:8px;border:none;border-radius:0;margin-left:0;margin-right:0;font-size:16px}@media (min-width:600px){.block-editor-block-list__block .block-editor-url-input input[type=text],.block-editor-url-input input[type=text],.components-popover .block-editor-url-input input[type=text]{width:300px}}@media (min-width:600px){.block-editor-block-list__block .block-editor-url-input input[type=text],.block-editor-url-input input[type=text],.components-popover .block-editor-url-input input[type=text]{font-size:13px}}.block-editor-block-list__block .block-editor-url-input input[type=text]::-ms-clear,.block-editor-url-input input[type=text]::-ms-clear,.components-popover .block-editor-url-input input[type=text]::-ms-clear{display:none}.block-editor-block-list__block .block-editor-url-input.is-full-width,.block-editor-url-input.is-full-width,.components-popover .block-editor-url-input.is-full-width{width:100%}.block-editor-block-list__block .block-editor-url-input.is-full-width .block-editor-url-input__input[type=text],.block-editor-url-input.is-full-width .block-editor-url-input__input[type=text],.components-popover .block-editor-url-input.is-full-width .block-editor-url-input__input[type=text]{width:100%}.block-editor-block-list__block .block-editor-url-input.is-full-width__suggestions,.block-editor-url-input.is-full-width__suggestions,.components-popover .block-editor-url-input.is-full-width__suggestions{width:100%}.block-editor-block-list__block .block-editor-url-input .components-spinner,.block-editor-url-input .components-spinner,.components-popover .block-editor-url-input .components-spinner{position:absolute;right:8px;bottom:17px;margin:0}.block-editor-url-input__input[type=text]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal}@media (prefers-reduced-motion:reduce){.block-editor-url-input__input[type=text]{transition-duration:0s}}@media (min-width:600px){.block-editor-url-input__input[type=text]{font-size:13px;line-height:normal}}.block-editor-url-input__input[type=text]:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px #007cba;box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-url-input__input[type=text]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.block-editor-url-input__input[type=text]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.block-editor-url-input__input[type=text]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .block-editor-url-input__input[type=text]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-url-input__input[type=text]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-url-input__input[type=text]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.block-editor-url-input__suggestions{max-height:200px;transition:all .15s ease-in-out;padding:4px 0;width:302px;overflow-y:auto}@media (prefers-reduced-motion:reduce){.block-editor-url-input__suggestions{transition-duration:0s}}.block-editor-url-input .components-spinner,.block-editor-url-input__suggestions{display:none}@media (min-width:600px){.block-editor-url-input .components-spinner,.block-editor-url-input__suggestions{display:inherit}}.block-editor-url-input__suggestion{padding:4px 8px;color:#6c7781;display:block;font-size:13px;cursor:pointer;background:#fff;width:100%;border:none;text-align:left;box-shadow:none}.block-editor-url-input__suggestion:hover{background:#ddd}.block-editor-url-input__suggestion.is-selected,.block-editor-url-input__suggestion:focus{background:#005a87;background:var(--wp-admin-theme-color-darker-20);color:#fff;outline:none}.components-toolbar-group>.block-editor-url-input__button,.components-toolbar>.block-editor-url-input__button{position:inherit}.block-editor-url-input__button .block-editor-url-input__back{margin-right:4px;overflow:visible}.block-editor-url-input__button .block-editor-url-input__back:after{content:"";position:absolute;display:block;width:1px;height:24px;right:-1px;background:#ddd}.block-editor-url-input__button-modal{box-shadow:0 2px 6px rgba(0,0,0,.05);border:1px solid #ddd;background:#fff}.block-editor-url-input__button-modal-line{display:flex;flex-direction:row;flex-grow:1;flex-shrink:1;min-width:0;align-items:flex-start}.block-editor-url-input__button-modal-line .components-button{flex-shrink:0;width:36px;height:36px}.block-editor-url-popover__additional-controls{border-top:1px solid #ddd}.block-editor-url-popover__additional-controls>div[role=menu] .components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary)>svg{box-shadow:none}.block-editor-url-popover__additional-controls div[role=menu]>.components-button{padding-left:2px}.block-editor-url-popover__row{display:flex}.block-editor-url-popover__row>:not(.block-editor-url-popover__settings-toggle){flex-grow:1}.block-editor-url-popover .components-button.has-icon{padding:3px}.block-editor-url-popover .components-button.has-icon>svg{padding:5px;border-radius:2px;height:30px;width:30px}.block-editor-url-popover .components-button.has-icon:not(:disabled):focus{box-shadow:none}.block-editor-url-popover .components-button.has-icon:not(:disabled):focus>svg{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 0 0 4px #fff;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 0 0 4px #fff;outline:2px solid transparent}.block-editor-url-popover__settings-toggle{flex-shrink:0;border-radius:0;border-left:1px solid #ddd;margin-left:1px}.block-editor-url-popover__settings-toggle[aria-expanded=true] .dashicon{transform:rotate(180deg)}.block-editor-url-popover__input-container .components-base-control:last-child,.block-editor-url-popover__input-container .components-base-control:last-child .components-base-control__field{margin-bottom:0}.block-editor-url-popover__settings{display:block;padding:16px;border-top:1px solid #ddd}.block-editor-url-popover__link-editor,.block-editor-url-popover__link-viewer{display:flex}.block-editor-url-popover__link-editor .block-editor-url-input .components-base-control__field,.block-editor-url-popover__link-viewer .block-editor-url-input .components-base-control__field{margin-bottom:0}.block-editor-url-popover__link-editor .block-editor-url-input .components-spinner,.block-editor-url-popover__link-viewer .block-editor-url-input .components-spinner{bottom:9px}.block-editor-url-popover__link-viewer-url{margin:7px;flex-grow:1;flex-shrink:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:150px;max-width:500px}.block-editor-url-popover__link-viewer-url.has-invalid-link{color:#d94f4f}.block-editor-warning{align-items:center;display:flex;flex-wrap:wrap;padding:6px 12px;border:1px solid #1e1e1e;border-radius:2px;background-color:#fff}.block-editor-warning,.block-editor-warning .block-editor-warning__message{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.block-editor-warning .block-editor-warning__message{line-height:1.4;margin:1em 0}.block-editor-warning p.block-editor-warning__message.block-editor-warning__message{min-height:auto}.block-editor-warning .block-editor-warning__contents{display:flex;flex-direction:row;justify-content:space-between;flex-wrap:wrap;align-items:baseline;width:100%}.block-editor-warning .block-editor-warning__actions{display:flex}.block-editor-warning .block-editor-warning__action{margin:0 0 0 8px}.block-editor-warning__secondary{margin:auto 0 auto 8px}.block-editor-writing-flow{display:flex;flex-direction:column}.block-editor-writing-flow__click-redirect{cursor:text}.html-anchor-control .components-external-link{display:block;margin-top:8px}#end-resizable-editor-section{display:none}.block-editor-block-toolbar{display:flex;flex-grow:1;width:100%;overflow:auto;position:relative;transition:border-color .1s linear,box-shadow .1s linear}@media (prefers-reduced-motion:reduce){.block-editor-block-toolbar{transition-duration:0s}}@media (min-width:600px){.block-editor-block-toolbar{overflow:inherit}}.block-editor-block-toolbar .components-toolbar,.block-editor-block-toolbar .components-toolbar-group{background:none;line-height:0;margin-top:-1px;margin-bottom:-1px;border:0;border-right:1px solid #ddd}.block-editor-block-toolbar>:last-child,.block-editor-block-toolbar>:last-child .components-toolbar,.block-editor-block-toolbar>:last-child .components-toolbar-group{border-right:none}.block-editor-block-toolbar .components-toolbar,.block-editor-block-toolbar .components-toolbar-group,.block-editor-format-toolbar .components-toolbar,.block-editor-format-toolbar .components-toolbar-group{display:flex;flex-wrap:nowrap}.block-editor-block-toolbar__slot{display:inline-block;line-height:0}@supports ((position:-webkit-sticky) or (position:sticky)){.block-editor-block-toolbar__slot{display:inline-flex}}.block-editor-block-toolbar__block-parent-selector-wrapper{position:absolute;top:-1px;left:-1px;opacity:0;transition:all 60ms linear;z-index:-1}@media (prefers-reduced-motion:reduce){.block-editor-block-toolbar__block-parent-selector-wrapper{transition-duration:0s}}.is-showing-movers .block-editor-block-toolbar__block-parent-selector-wrapper{opacity:1;transform:translateY(-60px)}.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar__block-parent-selector-wrapper{display:none}.block-editor-block-toolbar__block-switcher-wrapper,.block-editor-block-toolbar__mover-switcher-container{display:flex}.block-editor-block-toolbar__block-switcher-wrapper .block-editor-block-switcher{display:block}.block-editor-inserter{display:inline-block;background:none;border:none;padding:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:1.4}@media (min-width:782px){.block-editor-inserter{position:relative}}.block-editor-inserter__popover .block-editor-inserter__menu{margin:-12px}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__tabs .components-tab-panel__tabs{top:60px}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__main-area{overflow:visible;height:auto}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__preview-container{display:none}.block-editor-inserter__toggle.components-button{display:inline-flex;align-items:center;cursor:pointer;border:none;outline:none;padding:0;transition:color .2s ease}@media (prefers-reduced-motion:reduce){.block-editor-inserter__toggle.components-button{transition-duration:0s}}.block-editor-inserter__menu{height:100%;position:relative;overflow:visible}.block-editor-inserter__main-area{width:auto;overflow-y:auto;height:100%}@media (min-width:782px){.block-editor-inserter__main-area{width:350px}}.block-editor-inserter__inline-elements{margin-top:-1px}.block-editor-inserter__menu.is-bottom:after{border-bottom-color:#fff}.components-popover.block-editor-inserter__popover{z-index:99998}.block-editor-inserter__search{padding:16px;position:-webkit-sticky;position:sticky;top:0;background:#fff;z-index:1}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;line-height:normal;display:block;padding:16px 48px 16px 16px;background:#f0f0f0;border:none;width:100%;height:48px;font-size:16px}@media (prefers-reduced-motion:reduce){.block-editor-inserter__search input[type=search].block-editor-inserter__search-input{transition-duration:0s}}@media (min-width:600px){.block-editor-inserter__search input[type=search].block-editor-inserter__search-input{font-size:13px;line-height:normal}}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px #007cba;box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-inserter__search input[type=search].block-editor-inserter__search-input:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}@media (min-width:600px){.block-editor-inserter__search input[type=search].block-editor-inserter__search-input{font-size:13px}}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input:focus{background:#fff;box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color)}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input:-ms-input-placeholder{color:#606a73}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-ms-input-placeholder{color:#606a73}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::placeholder{color:#606a73}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-webkit-search-cancel-button,.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-webkit-search-decoration,.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-webkit-search-results-button,.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-webkit-search-results-decoration{-webkit-appearance:none}.block-editor-inserter__search-icon{position:absolute;top:0;right:20px;bottom:0;display:flex;align-items:center}.block-editor-inserter__search-icon>svg{margin:8px}.block-editor-inserter__tabs{display:flex;flex-direction:column;margin-top:-8px}.block-editor-inserter__tabs .components-tab-panel__tabs{position:-webkit-sticky;position:sticky;top:72px;background:#fff;z-index:1;border-bottom:1px solid #ddd}.block-editor-inserter__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item{flex-grow:1;margin-bottom:-1px}.block-editor-inserter__tabs .components-tab-panel__tab-content{display:flex;flex-grow:1;flex-direction:column;position:relative}.block-editor-inserter__panel-header{display:inline-flex;align-items:center;padding:16px 16px 0}.block-editor-inserter__panel-content{padding:0 16px}.block-editor-inserter__panel-title{margin:0 12px 0 0;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500}.block-editor-inserter__block-list{flex-grow:1;position:relative}.block-editor-inserter__popover .block-editor-block-types-list{margin:0 -8px}.block-editor-inserter__reusable-blocks-panel{position:relative;text-align:right}.block-editor-inserter__manage-reusable-blocks{display:inline-block;margin:16px}.block-editor-inserter__no-results{padding:32px;margin-top:64px;text-align:center}.block-editor-inserter__no-results-icon{fill:#b5bcc2}.block-editor-inserter__child-blocks{padding:0 16px}.block-editor-inserter__parent-block-header{display:flex;align-items:center}.block-editor-inserter__parent-block-header h2{font-size:13px}.block-editor-inserter__parent-block-header .block-editor-block-icon{margin-right:8px}.block-editor-inserter__preview-container{display:none;width:300px;background:#fff;border-radius:2px;border:1px solid #ddd;position:absolute;top:16px;left:calc(100% + 16px)}@media (min-width:782px){.block-editor-inserter__preview-container{display:block}}.block-editor-inserter__preview-container .block-editor-block-card{padding:16px}.block-editor-inserter__preview-container .block-editor-block-card__title{font-size:13px}.block-editor-inserter__preview-content{min-height:144px;background:#f0f0f0;display:-ms-grid;display:grid;flex-grow:1;align-items:center}.block-editor-inserter__preview-content-missing{flex:1;display:flex;justify-content:center;align-items:center;min-height:144px;color:#606a73;background:#f0f0f0}.block-editor-inserter__tips{border-top:1px solid #ddd;padding:16px;flex-shrink:0}.block-editor-inserter__manage-reusable-blocks-container{padding:16px}.block-editor-inserter__quick-inserter{width:100%}@media (min-width:782px){.block-editor-inserter__quick-inserter{width:350px}}.block-editor-inserter__quick-inserter-results{padding-bottom:16px}.block-editor-inserter__quick-inserter-results .block-editor-inserter__panel-header{height:0;padding:0;float:left}.block-editor-inserter__quick-inserter-patterns{display:-ms-grid;display:grid;-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr;grid-gap:8px}.block-editor-inserter__quick-inserter-separator{border-top:1px solid #ddd}.block-editor-inserter__popover.is-quick>.components-popover__content>div{padding:0}.block-editor-inserter__quick-inserter-expand.components-button{display:block;background:#1e1e1e;color:#fff;width:100%;height:44px;border-radius:0}.block-editor-inserter__quick-inserter-expand.components-button:hover{color:#fff}.block-editor-inserter__quick-inserter-expand.components-button:focus:not(:disabled){box-shadow:inset 0 0 0 1.5px #1e1e1e,inset 0 0 0 2px #fff}.block-editor-post-preview__dropdown{display:none;margin-right:12px;padding:0}.block-editor-post-preview__button-resize.block-editor-post-preview__button-resize{padding-left:40px}.block-editor-post-preview__button-resize.block-editor-post-preview__button-resize.has-icon{padding-left:8px}.block-editor-post-preview__dropdown-content .components-popover__content{overflow-y:visible}.block-editor-post-preview__dropdown-content .components-menu-group+.components-menu-group{border-top:1px solid #ccc;padding:8px 12px;margin-left:-12px;margin-right:-12px}@media (min-width:600px){.editor-post-preview{display:none}.block-editor-post-preview__dropdown{display:flex}} \ No newline at end of file diff --git a/wp-includes/js/dist/block-editor.js b/wp-includes/js/dist/block-editor.js index 5de33f8cc6..ae5030ec3c 100644 --- a/wp-includes/js/dist/block-editor.js +++ b/wp-includes/js/dist/block-editor.js @@ -1203,7 +1203,7 @@ function useProps(name, options, htmlProps) { // EXTERNAL MODULE: ./node_modules/reakit-system/es/_rollupPluginBabelHelpers-0c84a174.js -var _rollupPluginBabelHelpers_0c84a174 = __webpack_require__(54); +var _rollupPluginBabelHelpers_0c84a174 = __webpack_require__(55); // CONCATENATED MODULE: ./node_modules/reakit-system/es/useOptions.js @@ -1267,7 +1267,7 @@ function useOptions(name, options, htmlProps) { // EXTERNAL MODULE: ./node_modules/reakit-utils/es/shallowEqual.js -var shallowEqual = __webpack_require__(55); +var shallowEqual = __webpack_require__(56); // CONCATENATED MODULE: ./node_modules/reakit-utils/es/toArray.js /** @@ -1436,7 +1436,7 @@ __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding * var external_this_React_ = __webpack_require__(13); // EXTERNAL MODULE: ./node_modules/reakit-system/es/_rollupPluginBabelHelpers-0c84a174.js -var _rollupPluginBabelHelpers_0c84a174 = __webpack_require__(54); +var _rollupPluginBabelHelpers_0c84a174 = __webpack_require__(55); // EXTERNAL MODULE: ./node_modules/reakit-system/es/useCreateElement.js var useCreateElement = __webpack_require__(78); @@ -1473,7 +1473,7 @@ function splitProps(props, keys) { // EXTERNAL MODULE: ./node_modules/reakit-utils/es/shallowEqual.js -var shallowEqual = __webpack_require__(55); +var shallowEqual = __webpack_require__(56); // CONCATENATED MODULE: ./node_modules/reakit-system/es/createComponent.js @@ -2484,6 +2484,12 @@ function isSelfTarget(event) { /***/ }), /* 54 */ +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["a11y"]; }()); + +/***/ }), +/* 55 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -2600,7 +2606,7 @@ function _createForOfIteratorHelperLoose(o, allowArrayLike) { /***/ }), -/* 55 */ +/* 56 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -2642,7 +2648,7 @@ function shallowEqual(objA, objB) { /***/ }), -/* 56 */ +/* 57 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -2661,12 +2667,6 @@ function getActiveElement(element) { -/***/ }), -/* 57 */ -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["a11y"]; }()); - /***/ }), /* 58 */, /* 59 */ @@ -4226,7 +4226,7 @@ else {} /* harmony import */ var _rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17); /* harmony import */ var reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(49); /* harmony import */ var reakit_system_createHook__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(48); -/* harmony import */ var reakit_utils_shallowEqual__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(55); +/* harmony import */ var reakit_utils_shallowEqual__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(56); @@ -4304,7 +4304,7 @@ function unstable_IdProvider(_ref) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return hasFocusWithin; }); -/* harmony import */ var _getActiveElement_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(56); +/* harmony import */ var _getActiveElement_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(57); @@ -4417,7 +4417,7 @@ function closest(element, selectors) { // EXTERNAL MODULE: ./node_modules/reakit-utils/es/getActiveElement.js -var getActiveElement = __webpack_require__(56); +var getActiveElement = __webpack_require__(57); // CONCATENATED MODULE: ./node_modules/reakit-utils/es/tabbable.js @@ -4715,7 +4715,7 @@ function isPortalEvent(event) { /* harmony import */ var reakit_utils_useIsomorphicEffect__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(59); /* harmony import */ var reakit_utils_hasFocusWithin__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(69); /* harmony import */ var reakit_utils_isPortalEvent__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(72); -/* harmony import */ var reakit_utils_getActiveElement__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(56); +/* harmony import */ var reakit_utils_getActiveElement__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(57); /* harmony import */ var reakit_utils_tabbable__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(71); @@ -4936,7 +4936,7 @@ var SystemContext = /*#__PURE__*/Object(react__WEBPACK_IMPORTED_MODULE_0__["crea /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(13); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _SystemContext_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(74); -/* harmony import */ var _rollupPluginBabelHelpers_0c84a174_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(54); +/* harmony import */ var _rollupPluginBabelHelpers_0c84a174_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(55); @@ -7938,7 +7938,7 @@ exports.useSprings = useSprings; /* harmony import */ var reakit_warning__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(80); /* harmony import */ var reakit_utils_useLiveRef__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(46); /* harmony import */ var reakit_utils_isSelfTarget__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(53); -/* harmony import */ var reakit_utils_getActiveElement__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(56); +/* harmony import */ var reakit_utils_getActiveElement__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(57); /* harmony import */ var _Tabbable_Tabbable_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(73); /* harmony import */ var reakit_system_useCreateElement__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(78); /* harmony import */ var reakit_utils_createOnKeyDown__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(82); @@ -11832,7 +11832,7 @@ __webpack_require__.d(__webpack_exports__, "Typewriter", function() { return /* __webpack_require__.d(__webpack_exports__, "Warning", function() { return /* reexport */ warning; }); __webpack_require__.d(__webpack_exports__, "WritingFlow", function() { return /* reexport */ WritingFlow; }); __webpack_require__.d(__webpack_exports__, "BlockEditorProvider", function() { return /* reexport */ provider; }); -__webpack_require__.d(__webpack_exports__, "useSimulatedMediaQuery", function() { return /* reexport */ useSimulatedMediaQuery; }); +__webpack_require__.d(__webpack_exports__, "__experimentalUseSimulatedMediaQuery", function() { return /* reexport */ useSimulatedMediaQuery; }); __webpack_require__.d(__webpack_exports__, "__experimentalUseEditorFeature", function() { return /* reexport */ useEditorFeature; }); __webpack_require__.d(__webpack_exports__, "transformStyles", function() { return /* reexport */ transform_styles; }); __webpack_require__.d(__webpack_exports__, "storeConfig", function() { return /* reexport */ storeConfig; }); @@ -13390,7 +13390,7 @@ var panel_color_gradient_settings_PanelColorGradientSettings = function PanelCol /* harmony default export */ var panel_color_gradient_settings = (panel_color_gradient_settings_PanelColorGradientSettings); // EXTERNAL MODULE: external {"this":["wp","a11y"]} -var external_this_wp_a11y_ = __webpack_require__(57); +var external_this_wp_a11y_ = __webpack_require__(54); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/contrast-checker/index.js @@ -25916,11 +25916,18 @@ function QuickInserter(_ref2) { var setInsererIsOpened = Object(external_this_wp_data_["useSelect"])(function (select) { return select('core/block-editor').getSettings().__experimentalSetIsInserterOpened; }, []); + var previousBlockClientId = Object(external_this_wp_data_["useSelect"])(function (select) { + return select('core/block-editor').getPreviousBlockClientId(clientId); + }, [clientId]); Object(external_this_wp_element_["useEffect"])(function () { if (setInsererIsOpened) { setInsererIsOpened(false); } - }, [setInsererIsOpened]); // Announce search results on change + }, [setInsererIsOpened]); + + var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), + selectBlock = _useDispatch.selectBlock; // Announce search results on change + Object(external_this_wp_element_["useEffect"])(function () { if (!filterValue) { @@ -25932,7 +25939,15 @@ function QuickInserter(_ref2) { /* translators: %d: number of results. */ Object(external_this_wp_i18n_["_n"])('%d result found.', '%d results found.', count), count); debouncedSpeak(resultsFoundMessage); - }, [filterValue, debouncedSpeak]); // Disable reason (no-autofocus): The inserter menu is a modal display, not one which + }, [filterValue, debouncedSpeak]); // When clicking Browse All select the appropriate block so as + // the insertion point can work as expected + + var onBrowseAll = function onBrowseAll() { + // We have to select the previous block because the menu inserter + // inserts the new block after the selected one. + selectBlock(previousBlockClientId); + setInsererIsOpened(true); + }; // Disable reason (no-autofocus): The inserter menu is a modal display, not one which // is always visible, and one which already incurs this behavior of autoFocus via // Popover's focusOnMount. // Disable reason (no-static-element-interactions): Navigational key-presses within @@ -25940,6 +25955,7 @@ function QuickInserter(_ref2) { /* eslint-disable jsx-a11y/no-autofocus, jsx-a11y/no-static-element-interactions */ + return Object(external_this_wp_element_["createElement"])("div", { className: "block-editor-inserter__quick-inserter", onKeyPress: quick_inserter_stopKeyPropagation, @@ -25957,9 +25973,7 @@ function QuickInserter(_ref2) { onHover: onToggleInsertionPoint }), setInsererIsOpened && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { className: "block-editor-inserter__quick-inserter-expand", - onClick: function onClick() { - return setInsererIsOpened(true); - }, + onClick: onBrowseAll, "aria-label": Object(external_this_wp_i18n_["__"])('Browse all. This will open the main inserter panel in the editor toolbar.') }, Object(external_this_wp_i18n_["__"])('Browse all'))); /* eslint-enable jsx-a11y/no-autofocus, jsx-a11y/no-static-element-interactions */ @@ -27205,11 +27219,21 @@ function InsertionPoint(_ref3) { + /** * Internal dependencies */ +/** + * Returns true if the user is using windows. + * + * @return {boolean} Whether the user is using Windows. + */ + +function isWindows() { + return window.navigator.platform.indexOf('Win') > -1; +} /** * Block selection button component, displaying the label of the block. If the block * descends from a root block, a button is displayed enabling the user to select @@ -27221,6 +27245,7 @@ function InsertionPoint(_ref3) { * @return {WPComponent} The component to be rendered. */ + function BlockSelectionButton(_ref) { var clientId = _ref.clientId, rootClientId = _ref.rootClientId, @@ -27263,7 +27288,13 @@ function BlockSelectionButton(_ref) { var ref = Object(external_this_wp_element_["useRef"])(); // Focus the breadcrumb in navigation mode. Object(external_this_wp_element_["useEffect"])(function () { - ref.current.focus(); + ref.current.focus(); // NVDA on windows suffers from a bug where focus changes are not announced properly + // See WordPress/gutenberg#24121 and nvaccess/nvda#5825 for more details + // To solve it we announce the focus change manually. + + if (isWindows()) { + Object(external_this_wp_a11y_["speak"])(label); + } }, []); function onKeyDown(event) { diff --git a/wp-includes/js/dist/block-editor.min.js b/wp-includes/js/dist/block-editor.min.js index 89fc651d3e..29a820b841 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=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(c[n]=e[n])}return c}},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,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=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=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";n.d(t,"a",(function(){return i}));var r=n(26);var o=n(35),c=n(29);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,n){"use strict";function r(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},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=0?n[i]=e[i]:r[i]=e[i]}return[n,r]}var a=n(55);function l(e){var t,n=e.as,l=e.useHook,s=e.memo,u=e.propsAreEqual,b=void 0===u?null==l?void 0:l.unstable_propsAreEqual:u,d=e.keys,f=void 0===d?(null==l?void 0:l.__keys)||[]:d,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),b=u[0],d=u[1],p=l(b,Object(o.a)({ref:t},d)),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,b)),v.__keys=f,v.unstable_propsAreEqual=b||a.a,v}},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,n){"use strict";n.d(t,"a",(function(){return d})),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 w}));var r=n(17),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 b(e,t){return e.findIndex((function(e){return!(!e.ref.current||!t.ref.current)&&u(t.ref.current,e.ref.current)}))}function d(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=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=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;c1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=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),b=!0,d="hsl"),e.hasOwnProperty("a")&&(n=e.a));var f,p,m;return n=T(n),{ok:b,format:e.format||d,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>1)+720)%360;--t;)r.h=(r.h+o)%360,c.push(d(r));return c}function B(e,t){t=t||6;for(var n=d(e).toHsv(),r=n.h,o=n.s,c=n.v,i=[],a=1/t;t--;)i.push(d({h:r,s:o,v:c})),c=(c+a)%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,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=d(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 d(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(w,arguments)},triad:function(){return this._applyCombination(C,arguments)},tetrad:function(){return this._applyCombination(S,arguments)}},d.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 d(e,t)},d.equals=function(e,t){return!(!e||!t)&&d(e).toRgbString()==d(t).toRgbString()},d.random=function(){return d.fromRatio({r:b(),g:b(),b:b()})},d.mix=function(e,t,n){n=0===n?0:n||50;var r=d(e).toRgb(),o=d(t).toRgb(),c=n/100;return d({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})},d.readability=function(e,t){var n=d(e),r=d(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},d.isReadable=function(e,t,n){var r,o,c=d.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},d.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;sl&&(l=r,a=d(t[s]));return d.isReadable(e,a,{level:c,size:i})||!o?a:(n.includeFallbackColors=!1,d.mostReadable(e,["#fff","#000"],n))};var x=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"},P=d.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 R(e){return s(1,u(0,e))}function D(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 D(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=d:void 0===(r=function(){return d}.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(17),o=n(49),c=n(48),i=n(55),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,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(56);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(56),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(17),o=n(49),c=n(48),i=n(67),a=n(13),l=n(63),s=n(70),u=(n(80),n(46)),b=n(59),d=n(69),f=n(72),p=n(56),m=n(71);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(d.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,d=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],S=E?o:o||0,w=e.disabled?Object(r.b)({pointerEvents:"none"},d):d,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(b.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:w,tabIndex:y?void 0:S,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){!function(){e.exports=this.wp.htmlEntities}()},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(13),o=n(74),c=n(54);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(106),n(13)},function(e,t){!function(){e.exports=this.wp.viewport}()},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 b=i[e.key];if("function"==typeof b&&a(e))return l&&e.preventDefault(),u&&e.stopPropagation(),r&&r(e),void b(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 b}));var r=n(17),o=n(49),c=n(48),i=n(13),a=n(70),l=(n(80),n(46)),s=n(53),u=n(73);var b=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),b=u[0],d=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&&d(!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;b&&r&&(d(!1),t.currentTarget.click())}}),[e.disabled,e.unstable_clickOnSpace,b]);return Object(r.b)({"data-active":b||void 0,onKeyDown:m,onKeyUp:v},c)}});Object(o.a)({as:"button",memo:!0,useHook:b})},,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(17),o=n(49),c=n(48),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(122);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(172);t.default=r.default},,,function(e,t){!function(){e.exports=this.wp.notices}()},,function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(47);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,n){"use strict";e.exports=function(e){var t,n={};return function e(t,n){var r;if(Array.isArray(n))for(r=0;r1?t-1:0),r=1;r=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=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{b=void 0!==f.lastTime?f.lastTime:t,h=void 0!==f.lastVelocity?f.lastVelocity:s.initialVelocity,t>b+64&&(b=t);for(var j=Math.floor(t-b),k=0;km:v=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(sn){if("identity"===a)return s;"clamp"===a&&(s=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?s=-s:n===1/0?s-=t:s=(s-t)/(n-t);s=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()},b=u.arr(l.to)||u.fun(l.to);a?setTimeout((function(){r===n.guid&&(b?n.runAsync(l,s):n.diff(l).start(s))}),a):b?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.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;n1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function 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 be(e){return(parseFloat(e)%360+360)%360/360}function de(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|de(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(be(n[1]),fe(n[2]),fe(n[3])))>>>0:(n=re.exec(t))?(se(be(n[1]),fe(n[2]),fe(n[3]))|de(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"),S((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("--"),b=je(s,n[s],u);"float"===s&&(s="cssFloat"),u?e.style.setProperty(s,b):e.style[s]=b}for(var d in a){var f=l?d:ke[d]||(ke[d]=d.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(f)&&e.setAttribute(f,a[d])}}),(function(e){return e}));var ye,_e,Ee=(ye=function(e){return i.forwardRef((function(t,n){var r=b(),l=i.useRef(!0),s=i.useRef(null),d=i.useRef(null),f=i.useCallback((function(e){var t=s.current;s.current=new D(e,(function(){var e=!1;d.current&&(e=v.fn(d.current,s.current.getAnimatedValue())),d.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(d,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 d.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=R,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],b=l[1],d=l[2],f=i.useMemo((function(){return function(e){return b((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,d]: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),d=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=b(),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,b=a.from,d=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),S=[].concat(i.deleted),w=Object.keys(C),I=new Set(w),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&&S.find((function(t){return t.originalKey===e}))&&(S=S.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||{}:b,o),to:p(d,o)}}));break;case"leave":P.forEach((function(e){var t=_.indexOf(e),n=E[t];S.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 R=s.map((function(e){return C[e]}));return S.forEach((function(e){var t,n=e.left,r=(e.right,c(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({},i,{changed:x.length||P.length||T.length,first:n&&0===x.length,transitions:R,current:C,deleted:S,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),b=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:d&&"enter"===t});u.update(b),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(17),o=n(49),c=n(48),i=n(67),a=n(13),l=n(63),s=(n(80),n(46)),u=n(53),b=n(56),d=n(73),f=n(78),p=n(82),m=n(47),v=n(94),O=n(102),g=n(51),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:[d.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,d=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),S=Object(s.a)(c),w=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,_,d),x=Object(a.useCallback)((function(t){var n;if(e.unstable_virtual){var r,o,c=(null==w?void 0:w.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(b.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=S.current)||void 0===n||n.call(S,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(d.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(17),o=n(49),c=n(48),i=n(13),a=n(63),l=(n(80),n(46)),s=n(53),u=n(69),b=n(72),d=n(71),f=n(84),p=n(82),m=n(47),v=n(51),O=n(93),g=n(95),h=n(96);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,S=e.disabled&&!e.focusable,w=e.currentId===C,I=Object(l.a)(w),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),R=Object(l.a)(y),D=!e.unstable_virtual&&!e.unstable_hasActiveWidget&&w||!(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:!!S}),function(){var t;null===(t=e.unregisterItem)||void 0===t||t.call(e,C)}}),[C,S,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(b.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(d.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=R.current)||void 0===t||t.call(R,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:D?f:-1,"aria-selected":!(!e.unstable_virtual||!w)||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(47);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(177)},,function(e,t){!function(){e.exports=this.wp.shortcode}()},,,,,,,,,,,,function(e,t,n){"use strict";var r=n(5),o=n(15),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=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=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(c[n]=e[n])}return c}},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,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=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=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";n.d(t,"a",(function(){return i}));var r=n(26);var o=n(35),c=n(29);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,n){"use strict";function r(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},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=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,b=void 0===u?null==l?void 0:l.unstable_propsAreEqual:u,d=e.keys,f=void 0===d?(null==l?void 0:l.__keys)||[]:d,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),b=u[0],d=u[1],p=l(b,Object(o.a)({ref:t},d)),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,b)),v.__keys=f,v.unstable_propsAreEqual=b||a.a,v}},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,n){"use strict";n.d(t,"a",(function(){return d})),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 w}));var r=n(17),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 b(e,t){return e.findIndex((function(e){return!(!e.ref.current||!t.ref.current)&&u(t.ref.current,e.ref.current)}))}function d(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=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=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;c1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=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),b=!0,d="hsl"),e.hasOwnProperty("a")&&(n=e.a));var f,p,m;return n=T(n),{ok:b,format:e.format||d,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>1)+720)%360;--t;)r.h=(r.h+o)%360,c.push(d(r));return c}function B(e,t){t=t||6;for(var n=d(e).toHsv(),r=n.h,o=n.s,c=n.v,i=[],a=1/t;t--;)i.push(d({h:r,s:o,v:c})),c=(c+a)%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,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=d(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 d(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(w,arguments)},triad:function(){return this._applyCombination(C,arguments)},tetrad:function(){return this._applyCombination(S,arguments)}},d.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 d(e,t)},d.equals=function(e,t){return!(!e||!t)&&d(e).toRgbString()==d(t).toRgbString()},d.random=function(){return d.fromRatio({r:b(),g:b(),b:b()})},d.mix=function(e,t,n){n=0===n?0:n||50;var r=d(e).toRgb(),o=d(t).toRgb(),c=n/100;return d({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})},d.readability=function(e,t){var n=d(e),r=d(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},d.isReadable=function(e,t,n){var r,o,c=d.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},d.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;sl&&(l=r,a=d(t[s]));return d.isReadable(e,a,{level:c,size:i})||!o?a:(n.includeFallbackColors=!1,d.mostReadable(e,["#fff","#000"],n))};var x=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"},P=d.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 R(e){return s(1,u(0,e))}function D(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 D(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=d:void 0===(r=function(){return d}.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(17),o=n(49),c=n(48),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,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(17),o=n(49),c=n(48),i=n(67),a=n(13),l=n(63),s=n(70),u=(n(80),n(46)),b=n(59),d=n(69),f=n(72),p=n(57),m=n(71);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(d.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,d=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],S=E?o:o||0,w=e.disabled?Object(r.b)({pointerEvents:"none"},d):d,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(b.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:w,tabIndex:y?void 0:S,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){!function(){e.exports=this.wp.htmlEntities}()},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(13),o=n(74),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(106),n(13)},function(e,t){!function(){e.exports=this.wp.viewport}()},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 b=i[e.key];if("function"==typeof b&&a(e))return l&&e.preventDefault(),u&&e.stopPropagation(),r&&r(e),void b(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 b}));var r=n(17),o=n(49),c=n(48),i=n(13),a=n(70),l=(n(80),n(46)),s=n(53),u=n(73);var b=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),b=u[0],d=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&&d(!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;b&&r&&(d(!1),t.currentTarget.click())}}),[e.disabled,e.unstable_clickOnSpace,b]);return Object(r.b)({"data-active":b||void 0,onKeyDown:m,onKeyUp:v},c)}});Object(o.a)({as:"button",memo:!0,useHook:b})},,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(17),o=n(49),c=n(48),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(122);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(172);t.default=r.default},,,function(e,t){!function(){e.exports=this.wp.notices}()},,function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(47);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,n){"use strict";e.exports=function(e){var t,n={};return function e(t,n){var r;if(Array.isArray(n))for(r=0;r1?t-1:0),r=1;r=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=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{b=void 0!==f.lastTime?f.lastTime:t,h=void 0!==f.lastVelocity?f.lastVelocity:s.initialVelocity,t>b+64&&(b=t);for(var j=Math.floor(t-b),k=0;km:v=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(sn){if("identity"===a)return s;"clamp"===a&&(s=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?s=-s:n===1/0?s-=t:s=(s-t)/(n-t);s=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()},b=u.arr(l.to)||u.fun(l.to);a?setTimeout((function(){r===n.guid&&(b?n.runAsync(l,s):n.diff(l).start(s))}),a):b?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.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;n1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function 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 be(e){return(parseFloat(e)%360+360)%360/360}function de(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|de(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(be(n[1]),fe(n[2]),fe(n[3])))>>>0:(n=re.exec(t))?(se(be(n[1]),fe(n[2]),fe(n[3]))|de(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"),S((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("--"),b=je(s,n[s],u);"float"===s&&(s="cssFloat"),u?e.style.setProperty(s,b):e.style[s]=b}for(var d in a){var f=l?d:ke[d]||(ke[d]=d.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(f)&&e.setAttribute(f,a[d])}}),(function(e){return e}));var ye,_e,Ee=(ye=function(e){return i.forwardRef((function(t,n){var r=b(),l=i.useRef(!0),s=i.useRef(null),d=i.useRef(null),f=i.useCallback((function(e){var t=s.current;s.current=new D(e,(function(){var e=!1;d.current&&(e=v.fn(d.current,s.current.getAnimatedValue())),d.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(d,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 d.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=R,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],b=l[1],d=l[2],f=i.useMemo((function(){return function(e){return b((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,d]: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),d=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=b(),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,b=a.from,d=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),S=[].concat(i.deleted),w=Object.keys(C),I=new Set(w),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&&S.find((function(t){return t.originalKey===e}))&&(S=S.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||{}:b,o),to:p(d,o)}}));break;case"leave":P.forEach((function(e){var t=_.indexOf(e),n=E[t];S.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 R=s.map((function(e){return C[e]}));return S.forEach((function(e){var t,n=e.left,r=(e.right,c(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({},i,{changed:x.length||P.length||T.length,first:n&&0===x.length,transitions:R,current:C,deleted:S,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),b=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:d&&"enter"===t});u.update(b),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(17),o=n(49),c=n(48),i=n(67),a=n(13),l=n(63),s=(n(80),n(46)),u=n(53),b=n(57),d=n(73),f=n(78),p=n(82),m=n(47),v=n(94),O=n(102),g=n(51),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:[d.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,d=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),S=Object(s.a)(c),w=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,_,d),x=Object(a.useCallback)((function(t){var n;if(e.unstable_virtual){var r,o,c=(null==w?void 0:w.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(b.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=S.current)||void 0===n||n.call(S,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(d.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(17),o=n(49),c=n(48),i=n(13),a=n(63),l=(n(80),n(46)),s=n(53),u=n(69),b=n(72),d=n(71),f=n(84),p=n(82),m=n(47),v=n(51),O=n(93),g=n(95),h=n(96);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,S=e.disabled&&!e.focusable,w=e.currentId===C,I=Object(l.a)(w),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),R=Object(l.a)(y),D=!e.unstable_virtual&&!e.unstable_hasActiveWidget&&w||!(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:!!S}),function(){var t;null===(t=e.unregisterItem)||void 0===t||t.call(e,C)}}),[C,S,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(b.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(d.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=R.current)||void 0===t||t.call(R,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:D?f:-1,"aria-selected":!(!e.unstable_virtual||!w)||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(47);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(177)},,function(e,t){!function(){e.exports=this.wp.shortcode}()},,,,,,,,,,,,function(e,t,n){"use strict";var r=n(5),o=n(15),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=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-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&&b()},l=function(t){window.removeEventListener("resize",a,!1),e.removeEventListener("input",b,!1),e.removeEventListener("keyup",b,!1),e.removeEventListener("autosize:destroy",l,!1),e.removeEventListener("autosize:update",b,!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",b,!1),window.addEventListener("resize",a,!1),e.addEventListener("input",b,!1),e.addEventListener("autosize:update",b,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",o.set(e,{destroy:l,update:b}),"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),b()}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 b(){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(r0?!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=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 b(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(b){var d=n?c(b):b,f={},p=!0,m={node:d,node_:b,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;ee.length?n:e})),s.value=e.join(b)}else s.value=e.join(n.slice(a,a+s.count));a+=s.count,s.added||(l+=s.count)}}var d=t[i-1];return i>1&&"string"==typeof d.value&&(d.added||d.removed)&&e.equals("",d.value)&&(t[i-2].value+=d.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,b=l+s,d=[{newPos:-1,components:[]}],f=this.extractCommon(d[0],t,e,0);if(d[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,b=d[n-1],f=d[n+1],p=(f?f.newPos:0)-n;b&&(d[n-1]=void 0);var m=b&&b.newPos+1=l&&p+1>=s)return a(o(i,r.components,t,e,i.useLongestToken));d[n]=r}else d[n]=void 0}u++}if(r)!function e(){setTimeout((function(){if(u>b)return r();p()||e()}),0)}();else for(;u<=b;){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+11&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t=Array.isArray(e)?e:!0===e?U:[],!r||!0===e&&!n?p.without.apply(void 0,[t].concat(G)):t}var W=Object(b.createContext)({}),q=W.Provider,$=Object(m.createHigherOrderComponent)((function(e){return function(t){var n=Object(b.useContext)(W).isEmbedButton,r=t.name,o=n?[]:K(Object(c.getBlockSupport)(r,"align"),Object(c.hasBlockSupport)(r,"alignWide",!0));return[o.length>0&&t.isSelected&&Object(b.createElement)(w,{key:"align-controls"},Object(b.createElement)(V,{value:t.attributes.align,onChange:function(e){if(!e){var n=Object(c.getBlockType)(t.name);Object(p.get)(n,["attributes","align","default"])&&(e="")}t.setAttributes({align:e})},controls:o})),Object(b.createElement)(e,Object(s.a)({key:"edit"},t))]}}),"withToolbarControls"),Y=Object(m.createHigherOrderComponent)((function(e){return function(t){var n=t.name,r=t.attributes.align,o=Object(O.useSelect)((function(e){return!!e("core/block-editor").getSettings().alignWide}),[]);if(void 0===r)return Object(b.createElement)(e,t);var i=K(Object(c.getBlockSupport)(n,"align"),Object(c.hasBlockSupport)(n,"alignWide",!0),o),a=t.wrapperProps;return i.includes(r)&&(a=z({},a,{"data-align":r})),Object(b.createElement)(e,Object(s.a)({},t,{wrapperProps:a}))}}));Object(v.addFilter)("blocks.registerBlockType","core/align/addAttribute",(function(e){return Object(p.has)(e.attributes,["align","type"])||Object(c.hasBlockSupport)(e,"align")&&(e.attributes=z({},e.attributes,{align:{type:"string"}})),e})),Object(v.addFilter)("editor.BlockListBlock","core/editor/align/with-data-align",Y),Object(v.addFilter)("editor.BlockEdit","core/editor/align/with-toolbar-controls",$),Object(v.addFilter)("blocks.getSaveContent.extraProps","core/align/addAssignedAlign",(function(e,t,n){var r=n.align;return K(Object(c.getBlockSupport)(t,"align"),Object(c.hasBlockSupport)(t,"alignWide",!0)).includes(r)&&(e.className=f()("align".concat(r),e.className)),e}));var X=Object(g.createSlotFill)("InspectorAdvancedControls"),Q=X.Fill,Z=X.Slot;function J(e){var t=e.children;return k().isSelected?Object(b.createElement)(Q,null,t):null}J.slotName="InspectorAdvancedControls",J.Slot=Z;var ee=J;function te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var ne=/[\s#]/g;var re=Object(m.createHigherOrderComponent)((function(e){return function(t){return Object(c.hasBlockSupport)(t.name,"anchor")&&t.isSelected?Object(b.createElement)(b.Fragment,null,Object(b.createElement)(e,t),Object(b.createElement)(ee,null,Object(b.createElement)(g.TextControl,{className:"html-anchor-control",label:Object(I.__)("HTML anchor"),help:Object(b.createElement)(b.Fragment,null,Object(I.__)("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(b.createElement)(g.ExternalLink,{href:"https://wordpress.org/support/article/page-jumps/"},Object(I.__)("Learn more about anchors"))),value:t.attributes.anchor||"",onChange:function(e){e=e.replace(ne,"-"),t.setAttributes({anchor:e})},autoComplete:"off"}))):Object(b.createElement)(e,t)}}),"withInspectorControl");function oe(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}Object(v.addFilter)("blocks.registerBlockType","core/anchor/attribute",(function(e){return Object(p.has)(e.attributes,["anchor","type"])||Object(c.hasBlockSupport)(e,"anchor")&&(e.attributes=function(e){for(var t=1;t");var t=Object(c.parseWithAttributeSchema)(e,{type:"string",source:"attribute",selector:"[data-custom-class-name] > *",attribute:"class"});return t?t.trim().split(/\s+/):[]}Object(v.addFilter)("blocks.registerBlockType","core/custom-class-name/attribute",(function(e){return Object(c.hasBlockSupport)(e,"customClassName",!0)&&(e.attributes=function(e){for(var t=1;t0&&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=k(),i=c.clientId,a=Object(O.useSelect)((function(e){var t=e("core/block-editor"),r=t.getBlockAttributes,c=t.getSettings,a=r(i);return{gradient:a[n],customGradient:a[o],gradients:c().gradients}}),[i,n,o]),l=a.gradients,s=a.gradient,d=a.customGradient,f=Object(O.useDispatch)("core/block-editor"),p=f.updateBlockAttributes,m=Object(b.useCallback)((function(e){var t,r,c=ge(l,e);c?p(i,(r={},Object(u.a)(r,n,c),Object(u.a)(r,o,void 0),r)):p(i,(t={},Object(u.a)(t,n,void 0),Object(u.a)(t,o,e),t))}),[l,i,p]),v=me(s);return{gradientClass:v,gradientValue:s?ve(l,s):d,setGradient:m}}var je=function e(t){if(!Object(p.isObject)(t))return t;var n=Object(p.pickBy)(Object(p.mapValues)(t,e),p.identity);return Object(p.isEqual)(n,{})?void 0:n},ke=n(15);function ye(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 _e=Object(I.__)("(Color: %s)"),Ee=Object(I.__)("(Gradient: %s)"),Ce=["colors","disableCustomColors","gradients","disableCustomGradients"];function Se(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=fe(r,t=a),u=s&&s.name;n=Object(I.sprintf)(_e,u||t)}}else if("gradient"===i&&l){var d=Oe(o,t=l),f=d&&d.name;n=Object(I.sprintf)(Ee,f||t)}return Object(b.createElement)(b.Fragment,null,c,!!t&&Object(b.createElement)(g.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,l=e.onGradientChange,u=e.colorValue,d=e.gradientValue,m=a&&(!Object(p.isEmpty)(t)||!r),v=l&&(!Object(p.isEmpty)(n)||!o),O=Object(b.useState)(d?"gradient":!!m&&"color"),h=Object(le.a)(O,2),j=h[0],k=h[1];return m||v?Object(b.createElement)(g.BaseControl,{className:f()("block-editor-color-gradient-control",c)},Object(b.createElement)("fieldset",null,Object(b.createElement)("legend",null,Object(b.createElement)("div",{className:"block-editor-color-gradient-control__color-indicator"},Object(b.createElement)(g.BaseControl.VisualLabel,null,Object(b.createElement)(Se,{currentTab:j,label:i,colorValue:u,gradientValue:d})))),m&&v&&Object(b.createElement)(g.ButtonGroup,{className:"block-editor-color-gradient-control__button-tabs"},Object(b.createElement)(g.Button,{isSmall:!0,isPressed:"color"===j,onClick:function(){return k("color")}},Object(I.__)("Solid")),Object(b.createElement)(g.Button,{isSmall:!0,isPressed:"gradient"===j,onClick:function(){return k("gradient")}},Object(I.__)("Gradient"))),("color"===j||!v)&&Object(b.createElement)(g.ColorPalette,Object(s.a)({value:u,onChange:v?function(e){a(e),l()}:a},{colors:t,disableCustomColors:r})),("gradient"===j||!m)&&Object(b.createElement)(g.__experimentalGradientPicker,Object(s.a)({value:d,onChange:m?function(e){l(e),a()}:l},{gradients:n,disableCustomGradients:o})))):null}function Ie(e){var t=Object(O.useSelect)((function(e){var t=e("core/block-editor").getSettings();return Object(p.pick)(t,Ce)}));return Object(b.createElement)(we,function(e){for(var t=1;t=24?"large":"small"})?null:Object(b.createElement)(Ve,{backgroundColor:t,textColor:i,tinyBackgroundColor:a,tinyTextColor:l})},ze=Object(g.createSlotFill)("InspectorControls"),Ue=ze.Fill,Ge=ze.Slot;function Ke(e){var t=e.children;return y()?Object(b.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!==window.Node.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){var t=e.settings,n=e.clientId,r=e.enableContrastChecking,o=void 0===r||r,c=window,i=c.getComputedStyle,a=c.Node,l=Object(b.useState)(),s=Object(le.a)(l,2),u=s[0],d=s[1],f=Object(b.useState)(),p=Object(le.a)(f,2),m=p[0],v=p[1];return Object(b.useEffect)((function(){if(o){var e=qe(n);if(e){v(i(e).color);for(var t=e,r=i(t).backgroundColor;"rgba(0, 0, 0, 0)"===r&&t.parentNode&&t.parentNode.nodeType===a.ELEMENT_NODE;)t=t.parentNode,r=i(t).backgroundColor;d(r)}}})),Object(b.createElement)(We,null,Object(b.createElement)(Le,{title:Object(I.__)("Color settings"),initialOpen:!1,settings:t},o&&Object(b.createElement)(He,{backgroundColor:u,textColor:m})))}function Qe(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 Ze(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=Object(O.useSelect)((function(e){return!e("core/block-editor").getSettings().enableCustomLineHeight}));return!Object(c.hasBlockSupport)(t,"__experimentalLineHeight")||n}var dt=n(152),ft=n.n(dt),pt=function(e,t,n){if(t){var r=Object(p.find)(e,{slug:t});if(r)return r}return{size:n}};function mt(e,t){var n=Object(p.find)(e,{size:t});return n||{size:t}}function vt(e){if(e)return"has-".concat(Object(p.kebabCase)(e),"-font-size")}var Ot=Object(O.withSelect)((function(e){var t=e("core/block-editor").getSettings();return{disableCustomFontSizes:t.disableCustomFontSizes,fontSizes:t.fontSizes}}))(g.FontSizePicker);function gt(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 ht(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=kt(),r=n.length;return!Object(c.hasBlockSupport)(t,"__experimentalFontSize")||!r}var Et=Object(m.createHigherOrderComponent)((function(e){return function(t){var n,r=kt(),o=t.name,i=t.attributes,a=i.fontSize,l=i.style,s=t.wrapperProps,u=ht({},t);if(Object(c.hasBlockSupport)(o,"__experimentalFontSize")&&a&&!(null==l||null===(n=l.typography)||void 0===n?void 0:n.fontSize)){var d,f=pt(r,a,null==l||null===(d=l.typography)||void 0===d?void 0:d.fontSize).size;u.wrapperProps=ht({},s,{style:ht({fontSize:f},null==s?void 0:s.style)})}return Object(b.createElement)(e,u)}}),"withFontSizeInlineStyles");Object(v.addFilter)("blocks.registerBlockType","core/font/addAttribute",(function(e){return Object(c.hasBlockSupport)(e,"__experimentalFontSize")?(e.attributes.fontSize||Object.assign(e.attributes,{fontSize:{type:"string"}}),e):e})),Object(v.addFilter)("blocks.getSaveContent.extraProps","core/font/addSaveProps",jt),Object(v.addFilter)("blocks.registerBlockType","core/font/addEditProps",(function(e){if(!Object(c.hasBlockSupport)(e,"__experimentalFontSize"))return e;var t=e.getEditWrapperProps;return e.getEditWrapperProps=function(n){var r={};return t&&(r=t(n)),jt(r,e,n)},e})),Object(v.addFilter)("editor.BlockListBlock","core/font-size/with-font-size-inline-styles",Et);var Ct=["__experimentalLineHeight","__experimentalFontSize"];function St(e){var t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=[_t(e),bt(e)];return t.filter(Boolean).length===t.length}(e),n=wt(e.name);return t||!n?null:Object(b.createElement)(We,null,Object(b.createElement)(g.PanelBody,{title:Object(I.__)("Typography")},Object(b.createElement)(yt,e),Object(b.createElement)(ut,e)))}var wt=function(e){return"web"===b.Platform.OS&&Ct.some((function(t){return Object(c.hasBlockSupport)(e,t)}))};function It(e){var t=e.units,n=Object(ke.a)(e,["units"]),r=Bt(t);return Object(b.createElement)(g.__experimentalUnitControl,Object(s.a)({units:r},n))}function Bt(e){var t=Object(O.useSelect)((function(e){return e("core/block-editor").getSettings().enableCustomUnits}),[]),n=!t;return Array.isArray(t)?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):!n&&e}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 Pt(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=At({},Nt,{lineHeight:["typography","lineHeight"],fontSize:["typography","fontSize"],background:["color","gradient"],backgroundColor:["color","background"],color:["color","text"],"--wp--style--color--link":["color","link"]}),n={};return Object.entries(t).forEach((function(t){var r=Object(se.a)(t),o=r[0],c=r.slice(1),i=Object(le.a)(c,1)[0];Object(p.has)(e,i)&&(n[o]=Ft(Object(p.get)(e,i)))})),n}(r),{},e.style),e}var Ht=Object(m.createHigherOrderComponent)((function(e){return function(t){var n=t.name,r=Object(c.hasBlockSupport)(n,"__experimentalPadding");return[Object(b.createElement)(St,Object(s.a)({key:"typography"},t)),Object(b.createElement)(ot,Object(s.a)({key:"colors"},t)),Object(b.createElement)(e,Object(s.a)({key:"edit"},t)),r&&Object(b.createElement)(Rt,{key:"spacing"},Object(b.createElement)(Tt,t))]}}),"withToolbarControls");Object(v.addFilter)("blocks.registerBlockType","core/style/addAttribute",(function(e){return Lt(e)?(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e):e})),Object(v.addFilter)("blocks.getSaveContent.extraProps","core/style/addSaveProps",Vt),Object(v.addFilter)("blocks.registerBlockType","core/style/addEditProps",(function(e){if(!Lt(e))return e;var t=e.getEditWrapperProps;return e.getEditWrapperProps=function(n){var r={};return t&&(r=t(n)),Vt(r,e,n)},e})),Object(v.addFilter)("editor.BlockEdit","core/style/with-block-controls",Ht);var zt=n(20),Ut=n(19),Gt=n(12),Kt=n(23),Wt=n(16),qt=n(22);function $t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function Yt(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 Xt(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}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 r,o,c=!0,i=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return c=e.done,e},e:function(e){i=!0,o=e},f:function(){try{c||null==r.return||r.return()}finally{if(i)throw o}}}}function bn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{panelTitle:Object(I.__)("Color settings")},n=t.panelTitle,r=void 0===n?Object(I.__)("Color settings"):n,o=t.colorPanelProps,c=t.contrastCheckers,i=t.panelChildren,a=t.colorDetector,l=(a=void 0===a?{}:a).targetRef,s=a.backgroundColorTargetRef,d=void 0===s?l:s,m=a.textColorTargetRef,v=void 0===m?l:m,g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],h=k(),j=h.clientId,y=Object(O.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockAttributes,r=(0,t.getSettings)().colors;return{attributes:n(j),settingsColors:r&&!0!==r?r:On}}),[j]),_=y.attributes,E=y.settingsColors,C=Object(O.useDispatch)("core/block-editor"),S=C.updateBlockAttributes,w=Object(b.useCallback)((function(e){return S(j,e)}),[S,j]),B=Object(b.useMemo)((function(){return on()((function(e,t,n,r,o,c){return function(i){var a,l=i.children,s=i.className,d=void 0===s?"":s,m=i.style,v=void 0===m?{}:m,O={};r?O=Object(u.a)({},t,o):c&&(O=Object(u.a)({},t,c));var g={className:f()(d,(a={},Object(u.a)(a,"has-".concat(Object(p.kebabCase)(r),"-").concat(Object(p.kebabCase)(t)),r),Object(u.a)(a,n||"has-".concat(Object(p.kebabCase)(e)),r||c),a)),style:fn({},O,{},v)};return Object(p.isFunction)(l)?l(g):b.Children.map(l,(function(e){return Object(b.cloneElement)(e,{className:f()(e.props.className,g.className),style:fn({},g.style,{},e.props.style||{})})}))}}),{maxSize:e.length})}),[e.length]),x=Object(b.useMemo)((function(){return on()((function(e,t){return function(n){var r=t.find((function(e){return e.color===n}));w(Object(u.a)({},r?Object(p.camelCase)("custom ".concat(e)):e,void 0)),w(Object(u.a)({},r?e:Object(p.camelCase)("custom ".concat(e)),r?r.slug:n))}}),{maxSize:e.length})}),[w,e.length]),P=Object(b.useState)(),T=Object(le.a)(P,2),N=T[0],R=T[1],D=Object(b.useState)(),A=Object(le.a)(D,2),M=A[0],L=A[1];return Object(b.useEffect)((function(){if(c){var e,t=!1,n=!1,r=un(Object(p.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&&L(mn(v.current).color),t){for(var l=d.current,s=mn(l).backgroundColor;"rgba(0, 0, 0, 0)"===s&&l.parentNode&&l.parentNode.nodeType===vn.ELEMENT_NODE;)l=l.parentNode,s=mn(l).backgroundColor;R(s)}}}),[e.reduce((function(e,t){return"".concat(e," | ").concat(_[t.name]," | ").concat(_[Object(p.camelCase)("custom ".concat(t.name))])}),"")].concat(Object(ae.a)(g))),Object(b.useMemo)((function(){var t={},n=e.reduce((function(e,n){"string"==typeof n&&(n={name:n});var r=fn({},n,{color:_[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(p.startCase)(o):l,u=r.componentName,b=void 0===u?Object(p.startCase)(o).replace(/\s/g,""):u,d=r.color,f=void 0===d?n.color:d,m=r.colors,v=void 0===m?E:m,O=_[Object(p.camelCase)("custom ".concat(o))],g=O?void 0:v.find((function(e){return e.slug===f}));return e[b]=B(o,i,a,f,g&&g.color,O),e[b].displayName=b,e[b].color=O||g&&g.color,e[b].slug=f,e[b].setColor=x(o,v),t[b]={value:g?g.color:_[Object(p.camelCase)("custom ".concat(o))],onChange:e[b].setColor,label:s,colors:v},v||delete t[b].colors,e}),{}),a={title:r,initialOpen:!1,colorSettings:t,colorPanelProps:o,contrastCheckers:c,detectedBackgroundColor:N,detectedColor:M,panelChildren:i};return fn({},n,{ColorPanel:Object(b.createElement)(sn,a),InspectorControlsColorPanel:Object(b.createElement)(hn,a)})}),[_,w,M,N].concat(Object(ae.a)(g)))}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;t0&&void 0!==arguments[0]?arguments[0]:"";return e=(e=(e=Object(p.deburr)(e)).replace(/^\//,"")).toLowerCase(),Object(p.words)(e)},Dn=function(e,t){return Object(p.differenceWith)(e,Rn(t),(function(e,t){return t.includes(e)}))},An=function(e,t,n,r){var o=Rn(r);return 0===o.length?e:Mn(e,r,{getCategory:function(e){var n;return null===(n=Object(p.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){return(e.variations||[]).map((function(e){return e.title}))}}).map((function(e){if(Object(p.isEmpty)(e.variations))return e;var t=e.variations.filter((function(e){return Object(p.intersectionWith)(o,Rn(e.title),(function(e,t){return t.includes(e)})).length>0}));return Object(p.isEmpty)(t)?e:function(e){for(var t=1;t0&&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=Rn(t);if(0===r.length)return e;var o=function(e){return e.title},c=function(e){return e.keywords||[]},i=function(e){return e.category},a=function(){return null},l=function(){return[]},s=n.getTitle,u=void 0===s?o:s,b=n.getKeywords,d=void 0===b?c:b,f=n.getCategory,p=void 0===f?i:f,m=n.getCollection,v=void 0===m?a:m,O=n.getVariations,g=void 0===O?l:O;return e.filter((function(e){var t=u(e),n=d(e),o=p(e),c=v(e),i=g(e),a=[t].concat(Object(ae.a)(n),[o,c],Object(ae.a)(i)).join(" ");return 0===Dn(r,a).length}))},Ln=function(e,t){var n=Object(O.useSelect)((function(t){var n=t("core/block-editor"),r=n.getInserterItems,o=n.getSettings,c=t("core/blocks"),i=c.getCategories,a=c.getCollections,l=o().__experimentalFetchReusableBlocks;return{categories:i(),collections:a(),items:r(e),fetchReusableBlocks:l}}),[e]),r=n.categories,o=n.collections,i=n.items,a=n.fetchReusableBlocks;Object(b.useEffect)((function(){a&&a()}),[]);return[i,r,o,function(e){var n=e.name,r=e.initialAttributes,o=e.innerBlocks,i=Object(c.createBlock)(n,r,function e(t){return Object(p.map)(t,(function(t){var n=Object(le.a)(t,3),r=n[0],o=n[1],i=n[2],a=void 0===i?[]:i;return Object(c.createBlock)(r,o,e(a))}))}(o));t(i)}]};function Fn(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 Vn(e){for(var t=1;t1)return function(e,t,n,r,o){var c=t+1;if(o<0&&n)return Object(I.__)("Blocks cannot be moved up as they are already at the top");if(o>0&&r)return Object(I.__)("Blocks cannot be moved down as they are already at the bottom");if(o<0&&!n)return Object(I.sprintf)(Object(I._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(I.sprintf)(Object(I._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(I.sprintf)(Object(I.__)("Block %s is the only block, and cannot be moved"),t);if(c>0&&!o){var u=s("down");if("down"===u)return Object(I.sprintf)(Object(I.__)("Move %1$s block from position %2$d down to position %3$d"),t,l,l+1);if("left"===u)return Object(I.sprintf)(Object(I.__)("Move %1$s block from position %2$d left to position %3$d"),t,l,l+1);if("right"===u)return Object(I.sprintf)(Object(I.__)("Move %1$s block from position %2$d right to position %3$d"),t,l,l+1)}if(c>0&&o){var b=s("down");if("down"===b)return Object(I.sprintf)(Object(I.__)("Block %1$s is at the end of the content and can’t be moved down"),t);if("left"===b)return Object(I.sprintf)(Object(I.__)("Block %1$s is at the end of the content and can’t be moved left"),t);if("right"===b)return Object(I.sprintf)(Object(I.__)("Block %1$s is at the end of the content and can’t be moved right"),t)}if(c<0&&!r){var d=s("up");if("up"===d)return Object(I.sprintf)(Object(I.__)("Move %1$s block from position %2$d up to position %3$d"),t,l,l-1);if("left"===d)return Object(I.sprintf)(Object(I.__)("Move %1$s block from position %2$d left to position %3$d"),t,l,l-1);if("right"===d)return Object(I.sprintf)(Object(I.__)("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(I.sprintf)(Object(I.__)("Block %1$s is at the beginning of the content and can’t be moved up"),t);if("left"===f)return Object(I.sprintf)(Object(I.__)("Block %1$s is at the beginning of the content and can’t be moved left"),t);if("right"===f)return Object(I.sprintf)(Object(I.__)("Block %1$s is at the beginning of the content and can’t be moved right"),t)}}var xr=function(e,t,n){return"up"===e?"horizontal"===t?n?Cr.a:Sr.a:wr.a:"down"===e?"horizontal"===t?n?Sr.a:Cr.a:Ir.a:null},Pr=function(e,t,n){return"up"===e?"horizontal"===t?n?Object(I.__)("Move right"):Object(I.__)("Move left"):Object(I.__)("Move up"):"down"===e?"horizontal"===t?n?Object(I.__)("Move left"):Object(I.__)("Move right"):Object(I.__)("Move down"):null},Tr=Object(b.forwardRef)((function(e,t){var n=e.clientIds,r=e.direction,o=e.orientation,i=Object(ke.a)(e,["clientIds","direction","orientation"]),a=Object(m.useInstanceId)(Tr),l=Object(p.castArray)(n).length,u=Object(O.useSelect)((function(e){var t=e("core/block-editor"),i=t.getBlockIndex,a=t.getBlockRootClientId,l=t.getBlockOrder,s=t.getBlock,u=t.getSettings,b=t.getBlockListSettings,d=Object(p.castArray)(n),f=Object(p.first)(d),m=a(f),v=i(f,m),O=i(Object(p.last)(d),m),g=l(m),h=s(f),j=0===v,k=O===g.length-1,y=(b(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]),d=u.blockType,v=u.isDisabled,h=u.rootClientId,j=u.isFirst,k=u.isLast,y=u.firstIndex,_=u.isRTL,E=u.orientation,C=void 0===E?"vertical":E,S=Object(O.useDispatch)("core/block-editor"),w=S.moveBlocksDown,I=S.moveBlocksUp,B="up"===r?I:w,x="block-editor-block-mover-button__description-".concat(a);return Object(b.createElement)(b.Fragment,null,Object(b.createElement)(g.Button,Object(s.a)({ref:t,className:f()("block-editor-block-mover-button","is-".concat(r,"-button")),icon:xr(r,C,_),label:Pr(r,C,_),"aria-describedby":x},i,{onClick:v?null:function(e){B(n,h),i.onClick&&i.onClick(e)},"aria-disabled":v})),Object(b.createElement)("span",{id:x,className:"block-editor-block-mover-button__description"},Br(l,d&&d.title,y,j,k,"up"===r?-1:1,C,_)))})),Nr=Object(b.forwardRef)((function(e,t){return Object(b.createElement)(Tr,Object(s.a)({direction:"up",ref:t},e))})),Rr=Object(b.forwardRef)((function(e,t){return Object(b.createElement)(Tr,Object(s.a)({direction:"down",ref:t},e))}));function Dr(e){var t=e.level,n=e.isLastRow,r=e.terminatedLevels;return Object(p.times)(t-1,(function(e){var o=e+2,c=o===t;return Object(b.createElement)("div",{key:e,"aria-hidden":"true",className:f()("block-editor-block-navigator-descender-line",{"has-item":c,"is-last-row":n,"is-terminated":r.includes(o)})})}))}var Ar=Object(b.createContext)({__experimentalFeatures:!1}),Mr=function(){return Object(b.useContext)(Ar)},Lr=Object(b.createElement)(B.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(b.createElement)(B.Path,{d:"M11 13h2v-2h-2v2zm-6 0h2v-2H5v2zm12-2v2h2v-2h-2z"}));var Fr=function(e){var t=e.className,n=e.actions,r=e.children,o=e.secondaryActions;return Object(b.createElement)("div",{className:f()(t,"block-editor-warning")},Object(b.createElement)("div",{className:"block-editor-warning__contents"},Object(b.createElement)("p",{className:"block-editor-warning__message"},r),(b.Children.count(n)>0||o)&&Object(b.createElement)("div",{className:"block-editor-warning__actions"},b.Children.count(n)>0&&b.Children.map(n,(function(e,t){return Object(b.createElement)("span",{key:t,className:"block-editor-warning__action"},e)})),o&&Object(b.createElement)(g.Dropdown,{className:"block-editor-warning__secondary",position:"bottom left",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(b.createElement)(g.Button,{icon:Lr,label:Object(I.__)("More options"),onClick:n,"aria-expanded":t})},renderContent:function(){return Object(b.createElement)(g.MenuGroup,null,o.map((function(e,t){return Object(b.createElement)(g.MenuItem,{onClick:e.onClick,key:t},e.title)})))}}))))},Vr=n(263),Hr=function(e){var t=e.title,n=e.rawContent,r=e.renderedContent,o=e.action,c=e.actionText,i=e.className;return Object(b.createElement)("div",{className:i},Object(b.createElement)("div",{className:"block-editor-block-compare__content"},Object(b.createElement)("h2",{className:"block-editor-block-compare__heading"},t),Object(b.createElement)("div",{className:"block-editor-block-compare__html"},n),Object(b.createElement)("div",{className:"block-editor-block-compare__preview edit-post-visual-editor"},r)),Object(b.createElement)("div",{className:"block-editor-block-compare__action"},Object(b.createElement)(g.Button,{isSecondary:!0,tabIndex:"0",onClick:o},c)))};var zr=function(e){var t,n,r,o,i=e.block,a=e.onKeep,l=e.onConvert,s=e.convertor,u=e.convertButtonText,d={rawContent:i.originalContent,renderedContent:Object(c.getSaveElement)(i.name,i.attributes)},m=(t=s(i),n=Object(p.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(Vr.diffChars)(e,t).map((function(e,t){var n=f()({"block-editor-block-compare__added":e.added,"block-editor-block-compare__removed":e.removed});return Object(b.createElement)("span",{key:t,className:n},e.value)}))}(d.rawContent,m.rawContent);return Object(b.createElement)("div",{className:"block-editor-block-compare__wrapper"},Object(b.createElement)(Hr,{title:Object(I.__)("Current"),className:"block-editor-block-compare__current",action:a,actionText:Object(I.__)("Convert to HTML"),rawContent:d.rawContent,renderedContent:d.renderedContent}),Object(b.createElement)(Hr,{title:Object(I.__)("After Conversion"),className:"block-editor-block-compare__converted",action:l,actionText:u,rawContent:v,renderedContent:m.renderedContent}))};function Ur(){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}}var Gr=function(e){Object(qt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Wt.a)(t);if(Ur()){var r=Object(Wt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Kt.a)(this,e)});function r(e){var t;return Object(zt.a)(this,r),(t=n.call(this,e)).state={compare:!1},t.onCompare=t.onCompare.bind(Object(Gt.a)(t)),t.onCompareClose=t.onCompareClose.bind(Object(Gt.a)(t)),t}return Object(Ut.a)(r,[{key:"onCompare",value:function(){this.setState({compare:!0})}},{key:"onCompareClose",value:function(){this.setState({compare:!1})}},{key:"render",value:function(){var e=this.props,t=e.convertToHTML,n=e.convertToBlocks,r=e.convertToClassic,o=e.attemptBlockRecovery,i=e.block,a=!!Object(c.getBlockType)("core/html"),l=this.state.compare,s=[{title:Object(I.__)("Convert to Classic Block"),onClick:r},{title:Object(I.__)("Attempt Block Recovery"),onClick:o}];return Object(b.createElement)(b.Fragment,null,Object(b.createElement)(Fr,{actions:[Object(b.createElement)(g.Button,{key:"convert",onClick:this.onCompare,isSecondary:a,isPrimary:!a},Object(I._x)("Resolve","imperative verb")),a&&Object(b.createElement)(g.Button,{key:"edit",onClick:t,isPrimary:!0},Object(I.__)("Convert to HTML"))],secondaryActions:s},Object(I.__)("This block contains unexpected or invalid content.")),l&&Object(b.createElement)(g.Modal,{title:Object(I.__)("Resolve Block"),onRequestClose:this.onCompareClose,className:"block-editor-block-compare"},Object(b.createElement)(zr,{block:i,onKeep:t,onConvert:n,convertor:Kr,convertButtonText:Object(I.__)("Convert to Blocks")})))}}]),r}(b.Component),Kr=function(e){return Object(c.rawHandler)({HTML:e.originalContent})},Wr=Object(m.compose)([Object(O.withSelect)((function(e,t){var n=t.clientId;return{block:e("core/block-editor").getBlock(n)}})),Object(O.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)))}}}))])(Gr),qr=Object(b.createElement)(Fr,{className:"block-editor-block-list__block-crash-warning"},Object(I.__)("This block has encountered an error and cannot be previewed.")),$r=function(){return qr};function Yr(){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}}var Xr=function(e){Object(qt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Wt.a)(t);if(Yr()){var r=Object(Wt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Kt.a)(this,e)});function r(){var e;return Object(zt.a)(this,r),(e=n.apply(this,arguments)).state={hasError:!1},e}return Object(Ut.a)(r,[{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}}]),r}(b.Component),Qr=n(97),Zr=n.n(Qr);var Jr=function(e){var t=e.clientId,n=Object(b.useState)(""),r=Object(le.a)(n,2),o=r[0],i=r[1],a=Object(O.useSelect)((function(e){return e("core/block-editor").getBlock(t)}),[t]),l=Object(O.useDispatch)("core/block-editor").updateBlock;return Object(b.useEffect)((function(){i(Object(c.getBlockContent)(a))}),[a]),Object(b.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)}})};function eo(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 to(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 no(e,t){Array.from(e.querySelectorAll(".rich-text")).forEach((function(e){t?e.setAttribute("contenteditable",!0):e.removeAttribute("contenteditable")}))}var ro=n(291),oo=[Object(b.createInterpolateElement)(Object(I.__)("While writing, you can press / to quickly insert new blocks."),{kbd:Object(b.createElement)("kbd",null)}),Object(b.createInterpolateElement)(Object(I.__)("Indent a list by pressing space at the beginning of a line."),{kbd:Object(b.createElement)("kbd",null)}),Object(b.createInterpolateElement)(Object(I.__)("Outdent a list by pressing backspace at the beginning of a line."),{kbd:Object(b.createElement)("kbd",null)}),Object(I.__)("Drag files into the editor to automatically insert media blocks."),Object(I.__)("Change a block's type by pressing the block icon on the toolbar.")];var co=function(){var e=Object(b.useState)(Math.floor(Math.random()*oo.length)),t=Object(le.a)(e,1)[0];return Object(b.createElement)(g.Tip,null,oo[t])},io=n(176),ao=n(137),lo=n(292);var so=function e(t){var n=t.className,r=t.onChange,o=t.value,c=Object(m.useInstanceId)(e),i=Object(b.useRef)();return Object(b.createElement)("div",{className:f()("block-editor-inserter__search",n)},Object(b.createElement)(g.VisuallyHidden,{as:"label",htmlFor:"block-editor-inserter__search-".concat(c)},Object(I.__)("Search for a block")),Object(b.createElement)("input",{ref:i,className:"block-editor-inserter__search-input",id:"block-editor-inserter__search-".concat(c),type:"search",placeholder:Object(I.__)("Search for a block"),autoFocus:!0,onChange:function(e){return r(e.target.value)},autoComplete:"off",value:o||""}),Object(b.createElement)("div",{className:"block-editor-inserter__search-icon"},!!o&&Object(b.createElement)(g.Button,{icon:io.a,label:Object(I.__)("Reset search"),onClick:function(){r(""),i.current.focus()}}),!o&&Object(b.createElement)(ao.a,{icon:lo.a})))};var uo=function(e){var t=e.blockType;return Object(b.createElement)("div",{className:"block-editor-block-card"},Object(b.createElement)(Un,{icon:t.icon,showColors:!0}),Object(b.createElement)("div",{className:"block-editor-block-card__content"},Object(b.createElement)("h2",{className:"block-editor-block-card__title"},t.title),Object(b.createElement)("span",{className:"block-editor-block-card__description"},t.description)))},bo={insertUsage:{}},fo={alignWide:!1,colors:[{name:Object(I.__)("Black"),slug:"black",color:"#000000"},{name:Object(I.__)("Cyan bluish gray"),slug:"cyan-bluish-gray",color:"#abb8c3"},{name:Object(I.__)("White"),slug:"white",color:"#ffffff"},{name:Object(I.__)("Pale pink"),slug:"pale-pink",color:"#f78da7"},{name:Object(I.__)("Vivid red"),slug:"vivid-red",color:"#cf2e2e"},{name:Object(I.__)("Luminous vivid orange"),slug:"luminous-vivid-orange",color:"#ff6900"},{name:Object(I.__)("Luminous vivid amber"),slug:"luminous-vivid-amber",color:"#fcb900"},{name:Object(I.__)("Light green cyan"),slug:"light-green-cyan",color:"#7bdcb5"},{name:Object(I.__)("Vivid green cyan"),slug:"vivid-green-cyan",color:"#00d084"},{name:Object(I.__)("Pale cyan blue"),slug:"pale-cyan-blue",color:"#8ed1fc"},{name:Object(I.__)("Vivid cyan blue"),slug:"vivid-cyan-blue",color:"#0693e3"},{name:Object(I.__)("Vivid purple"),slug:"vivid-purple",color:"#9b51e0"}],fontSizes:[{name:Object(I._x)("Small","font size name"),size:13,slug:"small"},{name:Object(I._x)("Normal","font size name"),size:16,slug:"normal"},{name:Object(I._x)("Medium","font size name"),size:20,slug:"medium"},{name:Object(I._x)("Large","font size name"),size:36,slug:"large"},{name:Object(I._x)("Huge","font size name"),size:48,slug:"huge"}],imageSizes:[{slug:"thumbnail",name:Object(I.__)("Thumbnail")},{slug:"medium",name:Object(I.__)("Medium")},{slug:"large",name:Object(I.__)("Large")},{slug:"full",name:Object(I.__)("Full Size")}],imageEditing:!0,maxWidth:580,allowedBlockTypes:!0,maxUploadFileSize:0,allowedMimeTypes:null,availableLegacyWidgets:{},hasPermissionsToManageWidgets:!1,__experimentalCanUserUseUnfilteredHTML:!1,__experimentalEnableLegacyWidgetBlock:!1,__experimentalBlockDirectory:!1,__experimentalEnableFullSiteEditing:!1,__experimentalEnableFullSiteEditingDemo:!1,__mobileEnablePageTemplates:!1,gradients:[{name:Object(I.__)("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(I.__)("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(I.__)("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(I.__)("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(I.__)("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(I.__)("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(I.__)("Blush light purple"),gradient:"linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%)",slug:"blush-light-purple"},{name:Object(I.__)("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(I.__)("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(I.__)("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(I.__)("Electric grass"),gradient:"linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%)",slug:"electric-grass"},{name:Object(I.__)("Midnight"),gradient:"linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%)",slug:"midnight"}]};function po(e,t,n){return[].concat(Object(ae.a)(e.slice(0,n)),Object(ae.a)(Object(p.castArray)(t)),Object(ae.a)(e.slice(n)))}function mo(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=Object(ae.a)(e);return o.splice(t,r),po(o,e.slice(t,t+r),n)}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 Oo(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"",n=Object(u.a)({},t,[]);return e.forEach((function(e){var r=e.clientId,o=e.innerBlocks;n[t].push(r),Object.assign(n,go(o,r))})),n}function ho(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.reduce((function(e,n){return Object.assign(e,Object(u.a)({},n.clientId,t),ho(n.innerBlocks,n.clientId))}),{})}function jo(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.identity,n={},r=Object(ae.a)(e);r.length;){var o=r.shift(),c=o.innerBlocks,i=Object(ke.a)(o,["innerBlocks"]);r.push.apply(r,Object(ae.a)(c)),n[i.clientId]=t(i)}return n}function ko(e){return jo(e,(function(e){return Object(p.omit)(e,"attributes")}))}function yo(e){return jo(e,(function(e){return e.attributes}))}function _o(e,t){return e===t?Oo({},e):t}function Eo(e,t){return"UPDATE_BLOCK_ATTRIBUTES"===e.type&&void 0!==t&&"UPDATE_BLOCK_ATTRIBUTES"===t.type&&Object(p.isEqual)(e.clientIds,t.clientIds)&&(n=e.attributes,r=t.attributes,Object(p.isEqual)(Object(p.keys)(n),Object(p.keys)(r)));var n,r}var Co=function(e){return e.reduce((function(e,t){return e[t]={},e}),{})};var So=Object(p.flow)(O.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=Oo({},t)).attributes=Object(p.mapValues)(t.attributes,(function(e,n){return"core/block"===t.byClientId[n].name&&e.ref===r?Oo({},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(p.mapValues)(jo(n.blocks),(function(){return{}}));break;case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":var c=Object(p.keys)(jo(n.blocks));n.rootClientId&&!t.controlledInnerBlocks[n.rootClientId]&&c.push(n.rootClientId),r.cache=Oo({},r.cache,{},Co(o(c)));break;case"UPDATE_BLOCK":r.cache=Oo({},r.cache,{},Co(o([n.clientId])));break;case"UPDATE_BLOCK_ATTRIBUTES":r.cache=Oo({},r.cache,{},Co(o(n.clientIds)));break;case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":var i=Co(o(n.replacedClientIds));r.cache=Oo({},Object(p.omit)(r.cache,n.replacedClientIds),{},Object(p.omit)(i,n.replacedClientIds),{},Co(Object(p.keys)(jo(n.blocks))));break;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":r.cache=Oo({},Object(p.omit)(r.cache,n.removedClientIds),{},Co(Object(p.difference)(o(n.clientIds),n.clientIds)));break;case"MOVE_BLOCKS_TO_POSITION":var a=Object(ae.a)(n.clientIds);n.fromRootClientId&&a.push(n.fromRootClientId),n.toRootClientId&&a.push(n.toRootClientId),r.cache=Oo({},r.cache,{},Co(o(a)));break;case"MOVE_BLOCKS_UP":case"MOVE_BLOCKS_DOWN":var l=[];n.rootClientId&&l.push(n.rootClientId),r.cache=Oo({},r.cache,{},Co(o(l)));break;case"SAVE_REUSABLE_BLOCK_SUCCESS":var s=Object(p.keys)(Object(p.omitBy)(r.attributes,(function(e,t){return"core/block"!==r.byClientId[t].name||e.ref!==n.updatedId})));r.cache=Oo({},r.cache,{},Co(o(s)))}return r}}),(function(e){return function(t,n){var r=function(e){for(var r=e,o=0;o1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object(p.reduce)(t[n],(function(n,o){return r[o]?n:[].concat(Object(ae.a)(n),[o],Object(ae.a)(e(t,o)))}),[])}(t.order,"",t.controlledInnerBlocks),o=Object.keys(Object(p.pickBy)(t.controlledInnerBlocks));return Oo({},t,{byClientId:Oo({},Object(p.omit)(t.byClientId,r),{},ko(n.blocks)),attributes:Oo({},Object(p.omit)(t.attributes,r),{},yo(n.blocks)),order:Oo({},Object(p.omit)(t.order,r),{},Object(p.omit)(go(n.blocks),o)),parents:Oo({},Object(p.omit)(t.parents,r),{},ho(n.blocks)),cache:Oo({},Object(p.omit)(t.cache,r),{},Object(p.omit)(Object(p.mapValues)(jo(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){n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===o.type;var a=Object(p.get)(r,["isPersistentChange"],!0);return r.isPersistentChange===a?r:Oo({},c,{isPersistentChange:a})}return c=Oo({},c,{isPersistentChange:i?!n:!Eo(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 ko(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return Oo({},e,{},ko(t.blocks));case"UPDATE_BLOCK":if(!e[t.clientId])return e;var n=Object(p.omit)(t.updates,"attributes");return Object(p.isEmpty)(n)?e:Oo({},e,Object(u.a)({},t.clientId,Oo({},e[t.clientId],{},n)));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?Oo({},Object(p.omit)(e,t.replacedClientIds),{},ko(t.blocks)):e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(p.omit)(e,t.removedClientIds)}return e},attributes:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return yo(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return Oo({},e,{},yo(t.blocks));case"UPDATE_BLOCK":return e[t.clientId]&&t.updates.attributes?Oo({},e,Object(u.a)({},t.clientId,Oo({},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 Oo({},n,Object(u.a)({},r,Object(p.reduce)(t.attributes,(function(t,n,o){return n!==t[o]&&((t=_o(e[r],t))[o]=n),t}),e[r])))}),{});return t.clientIds.every((function(t){return n[t]===e[t]}))?e:Oo({},e,{},n);case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?Oo({},Object(p.omit)(e,t.replacedClientIds),{},yo(t.blocks)):e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(p.omit)(e,t.removedClientIds)}return e},order:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return go(t.blocks);case"RECEIVE_BLOCKS":return Oo({},e,{},Object(p.omit)(go(t.blocks),""));case"INSERT_BLOCKS":var n=t.rootClientId,r=void 0===n?"":n,o=e[r]||[],c=go(t.blocks,r),i=t.index,a=void 0===i?o.length:i;return Oo({},e,{},c,Object(u.a)({},r,po(o,c[r],a)));case"MOVE_BLOCKS_TO_POSITION":var l,s=t.fromRootClientId,b=void 0===s?"":s,d=t.toRootClientId,f=void 0===d?"":d,m=t.clientIds,v=t.index,O=void 0===v?e[f].length:v;if(b===f){var g=e[f],h=g.indexOf(m[0]);return Oo({},e,Object(u.a)({},f,mo(e[f],h,O,m.length)))}return Oo({},e,(l={},Object(u.a)(l,b,p.without.apply(void 0,[e[b]].concat(Object(ae.a)(m)))),Object(u.a)(l,f,po(e[f],m,O)),l));case"MOVE_BLOCKS_UP":var j=t.clientIds,k=t.rootClientId,y=void 0===k?"":k,_=Object(p.first)(j),E=e[y];if(!E.length||_===Object(p.first)(E))return e;var C=E.indexOf(_);return Oo({},e,Object(u.a)({},y,mo(E,C,C-1,j.length)));case"MOVE_BLOCKS_DOWN":var S=t.clientIds,w=t.rootClientId,I=void 0===w?"":w,B=Object(p.first)(S),x=Object(p.last)(S),P=e[I];if(!P.length||x===Object(p.last)(P))return e;var T=P.indexOf(B);return Oo({},e,Object(u.a)({},I,mo(P,T,T+1,S.length)));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":var N=t.clientIds;if(!t.blocks)return e;var R=go(t.blocks);return Object(p.flow)([function(e){return Object(p.omit)(e,t.replacedClientIds)},function(e){return Oo({},e,{},Object(p.omit)(R,""))},function(e){return Object(p.mapValues)(e,(function(e){return Object(p.reduce)(e,(function(e,t){return t===N[0]?[].concat(Object(ae.a)(e),Object(ae.a)(R[""])):(-1===N.indexOf(t)&&e.push(t),e)}),[])}))}])(e);case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(p.flow)([function(e){return Object(p.omit)(e,t.removedClientIds)},function(e){return Object(p.mapValues)(e,(function(e){return p.without.apply(void 0,[e].concat(Object(ae.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 ho(t.blocks);case"RECEIVE_BLOCKS":return Oo({},e,{},ho(t.blocks));case"INSERT_BLOCKS":return Oo({},e,{},ho(t.blocks,t.rootClientId||""));case"MOVE_BLOCKS_TO_POSITION":return Oo({},e,{},t.clientIds.reduce((function(e,n){return e[n]=t.toRootClientId||"",e}),{}));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Oo({},Object(p.omit)(e,t.replacedClientIds),{},ho(t.blocks,e[t.clientIds[0]]));case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(p.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?Oo({},e,Object(u.a)({},r,o)):e}});function wo(){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 Io=Object(O.combineReducers)({blocks:So,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},isDraggingBlocks: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!0;case"STOP_DRAGGING_BLOCKS":return!1}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 wo(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 wo(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 Oo({},e,Object(u.a)({},n,e[n]&&"html"===e[n]?"visual":"html"))}return e},blockListSettings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REPLACE_BLOCKS":case"REMOVE_BLOCKS":return Object(p.omit)(e,t.clientIds);case"UPDATE_BLOCK_LIST_SETTINGS":var n=t.clientId;return t.settings?Object(p.isEqual)(e[n],t.settings)?e:Oo({},e,Object(u.a)({},n,t.settings)):e.hasOwnProperty(n)?Object(p.omit)(e,n):e}return e},insertionPoint:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SHOW_INSERTION_POINT":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 Oo({},e,{isValid:t.isValid})}return e},settings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:fo,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_SETTINGS":return Oo({},e,{},t.settings)}return e},preferences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:bo,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),Oo({},e,{insertUsage:Oo({},e.insertUsage,Object(u.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(u.a)({},t.clientId,t.updates.attributes);case"UPDATE_BLOCK_ATTRIBUTES":return t.clientIds.reduce((function(e,n){return Oo({},e,Object(u.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}}),Bo=n(110),xo=n.n(Bo),Po=n(262),To=n.n(Po),No=n(40);function Ro(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}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 r,o,c=!0,i=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return c=e.done,e},e:function(e){i=!0,o=e},f:function(){try{c||null==r.return||r.return()}finally{if(i)throw o}}}}function Mo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:null;return{type:"SELECT_BLOCK",initialPosition:t,clientId:e}}function ac(e){var t;return mr.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Ro("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 mr.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Ro("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 bc(e,t){return{type:"MULTI_SELECT",start:e,end:t}}function dc(){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=Object(p.get)(t,["__experimentalPreferredStyleVariations","value"],{});return e.map((function(e){var t=e.name;if(!Object(c.hasBlockSupport)(t,"defaultStylePicker",!0))return e;if(!n[t])return e;var r=Object(p.get)(e,["attributes","className"]);if(null==r?void 0:r.includes("is-style-"))return e;var o=e.attributes,i=void 0===o?{}:o,a=n[t];return Fo({},e,{attributes:Fo({},i,{className:"".concat(r||""," is-style-").concat(a).trim()})})}))}function mc(e,t,n,r){var o,c,i;return mr.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return e=Object(p.castArray)(e),a.t0=pc,a.t1=Object(p.castArray)(t),a.next=5,Ro("core/block-editor","getSettings");case 5:return a.t2=a.sent,t=(0,a.t0)(a.t1,a.t2),a.next=9,Ro("core/block-editor","getBlockRootClientId",Object(p.first)(e));case 9:o=a.sent,c=0;case 11:if(!(c1&&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,Ro("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,Ro("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 mr.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=arguments;return mr.a.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return r=!(l.length>3&&void 0!==l[3])||l[3],s.t0=pc,s.t1=Object(p.castArray)(e),s.next=5,Ro("core/block-editor","getSettings");case 5:s.t2=s.sent,e=(0,s.t0)(s.t1,s.t2),o=[],c=Ao(e),s.prev=9,c.s();case 11:if((i=c.n()).done){s.next=19;break}return a=i.value,s.next=15,Ro("core/block-editor","canInsertBlockType",a.name,n);case 15:s.sent&&o.push(a);case 17:s.next=11;break;case 19:s.next=24;break;case 21:s.prev=21,s.t3=s.catch(9),c.e(s.t3);case 24:return s.prev=24,c.f(),s.finish(24);case 27:if(!o.length){s.next=29;break}return s.abrupt("return",{type:"INSERT_BLOCKS",blocks:o,index:t,rootClientId:n,time:Date.now(),updateSelection:r});case 29:case"end":return s.stop()}}),Wo,null,[[9,21,24,27]])}function Ec(e,t){return{type:"SHOW_INSERTION_POINT",rootClientId:e,index:t}}function Cc(){return{type:"HIDE_INSERTION_POINT"}}function Sc(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}function wc(){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 mr.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(p.castArray)(e),i.next=6,Ro("core/block-editor","getBlockRootClientId",e[0]);case 6:return n=i.sent,i.next=9,Ro("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,Ro("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 Rc(){return{type:"STOP_TYPING"}}function Dc(){return{type:"START_DRAGGING_BLOCKS"}}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 mr.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(Fe.speak)(Object(I.__)("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(Fe.speak)(Object(I.__)("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 mr.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(Fe.speak)(Object(I.__)("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 mr.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,Ro("core/block-editor","getBlocksByClientId",e);case 5:return n=s.sent,s.next=8,Ro("core/block-editor","getBlockRootClientId",e[0]);case 8:if(r=s.sent,!Object(p.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(p.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,Ro("core/block-editor","getBlockIndex",Object(p.last)(Object(p.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,bc(Object(p.first)(a).clientId,Object(p.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 mr.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,Ro("core/block-editor","getBlockRootClientId",e);case 4:return t=r.sent,r.next=7,Ro("core/block-editor","getTemplateLock",t);case 7:if(!r.sent){r.next=10;break}return r.abrupt("return");case 10:return r.next=12,Ro("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 mr.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,Ro("core/block-editor","getBlockRootClientId",e);case 4:return t=r.sent,r.next=7,Ro("core/block-editor","getTemplateLock",t);case 7:if(!r.sent){r.next=10;break}return r.abrupt("return");case 10:return r.next=12,Ro("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 mr.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=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 ri(e){for(var t=1;t2&&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]})),wi=Object(ti.a)((function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=Si(e,t,r);return Object(p.map)(Object(p.filter)(Object(p.map)(o,(function(t){return{id:t,name:ii(e,t)}})),{name:n}),(function(e){return e.id}))}),(function(e){return[e.blocks.parents]}));function Ii(e,t){var n,r=t;do{n=r,r=e.blocks.parents[r]}while(r);return n}function Bi(e,t){for(var n,r=_i(e),o=[].concat(Object(ae.a)(Si(e,t)),[t]),c=[].concat(Object(ae.a)(Si(e,r)),[r]),i=Math.min(o.length,c.length),a=0;a2&&void 0!==arguments[2]?arguments[2]:1;if(void 0===t&&(t=_i(e)),void 0===t&&(t=n<0?Mi(e):Li(e)),!t)return null;var r=Ci(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 Pi(e,t){return xi(e,t,-1)}function Ti(e,t){return xi(e,t,1)}function Ni(e){return e.initialPosition}var Ri=Object(ti.a)((function(e){var t=e.selectionStart,n=e.selectionEnd;if(void 0===t.clientId||void 0===n.clientId)return ci;if(t.clientId===n.clientId)return[t.clientId];var r=Ci(e,t.clientId);if(null===r)return ci;var o=Gi(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 Di(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId===n.clientId?ci:Ri(e)}var Ai=Object(ti.a)((function(e){var t=Di(e);return t.length?t.map((function(t){return si(e,t)})):ci}),(function(e){return[].concat(Object(ae.a)(Ri.getDependants(e)),[e.blocks.byClientId,e.blocks.order,e.blocks.attributes])}));function Mi(e){return Object(p.first)(Di(e))||null}function Li(e){return Object(p.last)(Di(e))||null}function Fi(e,t){return Mi(e)===t}function Vi(e,t){return-1!==Di(e).indexOf(t)}var Hi=Object(ti.a)((function(e,t){for(var n=t,r=!1;n&&!r;)r=Vi(e,n=Ci(e,n));return r}),(function(e){return[e.blocks.order,e.selectionStart.clientId,e.selectionEnd.clientId]}));function zi(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId===n.clientId?null:t.clientId||null}function Ui(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId===n.clientId?null:n.clientId||null}function Gi(e,t){return e.blocks.order[t||""]||ci}function Ki(e,t,n){return Gi(e,n).indexOf(t)}function Wi(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(p.some)(Gi(e,t),(function(t){return Wi(e,t)||Vi(e,t)||n&&qi(e,t,n)}))}function $i(e,t){if(!t)return!1;var n=Di(e),r=n.indexOf(t);return r>-1&&r2&&void 0!==arguments[2]?arguments[2]:null,r=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return Object(p.isBoolean)(e)?e:Object(p.isArray)(e)?!(!e.includes("core/post-content")||null!==t)||e.includes(t):n},o=Object(c.getBlockType)(t);if(!o)return!1;var i=va(e),a=i.allowedBlockTypes,l=r(a,t,!0);if(!l)return!1;var s=!!ia(e,n);if(s)return!1;var u=ma(e,n),b=Object(p.get)(u,["allowedBlocks"]),d=r(b,t),f=o.parent,m=ii(e,n),v=r(f,m);return null!==d&&null!==v?d||v:null!==d?d:null===v||v},la=Object(ti.a)(aa,(function(e,t,n){return[e.blockListSettings[n],e.blocks.byClientId[n],e.settings.allowedBlockTypes,e.settings.templateLock]}));function sa(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return t.every((function(t){return la(e,ii(e,t),n)}))}function ua(e,t){return Object(p.get)(e.preferences.insertUsage,[t],null)}var ba=function(e,t,n){return!!Object(c.hasBlockSupport)(t,"inserter",!0)&&aa(e,t.name,n)},da=Object(ti.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=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}},r=function(t){var r=t.name,o=!1;Object(c.hasBlockSupport)(t.name,"multiple",!0)||(o=Object(p.some)(mi(e,fi(e)),{name:t.name}));var i=ua(e,r)||{},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:r,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:n(a,s)}},o=function(t){var r,o="core/block/".concat(t.id),i=ha(e,t.id);1===i.length&&(r=Object(c.getBlockType)(i[0].name));var a=ua(e,o)||{},l=a.time,s=a.count,u=n(l,void 0===s?0:s);return{id:o,name:"core/block",initialAttributes:{ref:t.id},title:t.title,icon:r?r.icon:oi,category:"reusable",keywords:[],isDisabled:!1,utility:1,frecency:u}},i=Object(c.getBlockTypes)().filter((function(n){return ba(e,n,t)})).map(r),a=aa(e,"core/block",t)?ya(e).map(o):[];return[].concat(Object(ae.a)(i),Object(ae.a)(a))}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.blocks.order,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,ya(e),Object(c.getBlockTypes)()]})),fa=Object(ti.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=Object(p.some)(Object(c.getBlockTypes)(),(function(n){return ba(e,n,t)}));if(n)return!0;var r=aa(e,"core/block",t)&&ya(e).length>0;return r}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,ya(e),Object(c.getBlockTypes)()]})),pa=Object(ti.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t)return Object(p.filter)(Object(c.getBlockTypes)(),(function(n){return ba(e,n,t)}))}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,Object(c.getBlockTypes)()]}));function ma(e,t){return e.blockListSettings[t]}function va(e){return e.settings}function Oa(e){return e.blocks.isPersistentChange}var ga=Object(ti.a)((function(e,t){return Object(p.filter)(e.blockListSettings,(function(e,n){return t.includes(n)}))}),(function(e){return[e.blockListSettings]})),ha=Object(ti.a)((function(e,t){var n=Object(p.find)(ya(e),(function(e){return e.id===t}));return n?Object(c.parse)(n.content):null}),(function(e){return[ya(e)]}));function ja(e){return e.blocks.isIgnoredChange}function ka(e){return e.lastBlockAttributesChange}function ya(e){return Object(p.get)(e,["settings","__experimentalReusableBlocks"],ci)}function _a(e){return e.isNavigationMode}function Ea(e){return e.hasBlockMovingClientId}function Ca(e){return!!e.automaticChangeStatus}function Sa(e,t){return e.highlightedBlock===t}function wa(e,t){return!!e.blocks.controlledInnerBlocks[t]}function Ia(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 Ba(e){for(var t=1;t=d&&u<=f?u:u6||j.length>6,P=Object(b.useMemo)((function(){return An(j,k,y,l)}),[l,j,k,y]),T=Object(b.useMemo)((function(){return Mn(S,l)}),[l,S]),N=Object(O.useSelect)((function(e){return e("core/block-editor").getSettings().__experimentalSetIsInserterOpened}),[]);return Object(b.useEffect)((function(){N&&N(!1)}),[N]),Object(b.useEffect)((function(){if(l){var e=P.length+T.length,t=Object(I.sprintf)(Object(I._n)("%d result found.","%d results found.",e),e);c(t)}}),[l,c]),Object(b.createElement)("div",{className:"block-editor-inserter__quick-inserter",onKeyPress:Pl,onKeyDown:xl},x&&Object(b.createElement)(so,{value:l,onChange:function(e){s(e)}}),Object(b.createElement)(Tl,{blockTypes:P,blockPatterns:B?T:[],onSelectBlockPattern:w,onSelectBlockType:_,onHover:m}),N&&Object(b.createElement)(g.Button,{className:"block-editor-inserter__quick-inserter-expand",onClick:function(){return N(!0)},"aria-label":Object(I.__)("Browse all. This will open the main inserter panel in the editor toolbar.")},Object(I.__)("Browse all")))}));function Rl(){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}}var Dl=function(e){var t,n=e.onToggle,r=e.disabled,o=e.isOpen,c=e.blockTitle,i=e.hasSingleBlockType,a=e.toggleProps;return t=i?Object(I.sprintf)(Object(I._x)("Add %s","directly add the only allowed block"),c):Object(I._x)("Add block","Generic label for block inserter button"),Object(b.createElement)(g.Button,Object(s.a)({icon:ro.a,label:t,tooltipPosition:"bottom",onClick:n,className:"block-editor-inserter__toggle","aria-haspopup":!i&&"true","aria-expanded":!i&&o,disabled:r},a))},Al=function(e){Object(qt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Wt.a)(t);if(Rl()){var r=Object(Wt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Kt.a)(this,e)});function r(){var e;return Object(zt.a)(this,r),(e=n.apply(this,arguments)).onToggle=e.onToggle.bind(Object(Gt.a)(e)),e.renderToggle=e.renderToggle.bind(Object(Gt.a)(e)),e.renderContent=e.renderContent.bind(Object(Gt.a)(e)),e}return Object(Ut.a)(r,[{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?Dl: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(b.createElement)(Nl,{rootClientId:r,clientId:o,isAppender:c,selectBlockOnInsert:a}):Object(b.createElement)(Bl,{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(b.createElement)(g.Dropdown,{className:"block-editor-inserter",contentClassName:f()("block-editor-inserter__popover",{"is-quick":o}),position:t,onToggle:this.onToggle,expandOnMobile:!0,headerTitle:Object(I.__)("Add a block"),renderToggle:this.renderToggle,renderContent:this.renderContent})}}]),r}(b.Component),Ml=Object(m.compose)([Object(O.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(p.size)(s)&&0===Object(p.size)(l(s[0].name,"inserter")),b=!1;return u&&(b=s[0]),{hasItems:i(r),hasSingleBlockType:u,blockTitle:b?b.title:"",allowedBlockType:b,rootClientId:r}})),Object(O.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(I.sprintf)(Object(I.__)("%s block added"),l.title);Object(Fe.speak)(u)}}}})),Object(m.ifCondition)((function(e){var t=e.hasItems,n=e.isAppender,r=e.rootClientId,o=e.clientId;return t||!n&&!r&&!o}))])(Al),Ll=Object(b.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(O.useSelect)((function(e){return e("core/block-editor").isNavigationMode()})),s=Object(O.useDispatch)("core/block-editor").setNavigationMode;return Object(b.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=hr.focus.tabbable.find(e);(Object(p.last)(t)||e).focus()}else e.focus()}else{if(i)return void a.current.focus();s(!0);var l=hr.focus.tabbable.find(o.current);l.length&&(r?Object(p.last)(l).focus():Object(p.first)(l).focus())}},style:{position:"fixed"}})})),Fl=window,Vl=Fl.getSelection,Hl=Fl.getComputedStyle,zl=Object(p.overEvery)([hr.isTextField,hr.focus.tabbable.isTabbableIndex]);function Ul(e,t,n,r){var o,c=hr.focus.focusable.find(n);return t&&(c=Object(p.reverse)(c)),c=c.slice(c.indexOf(e)+1),r&&(o=e.getBoundingClientRect()),Object(p.find)(c,(function t(n,c,i){if(!hr.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(hr.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 Gl(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,b=t.isNavigationMode,d=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:b(),hasBlockMovingClientId:d,getBlockIndex:f,getBlockRootClientId:p,getClientIdsOfDescendants:m,canInsertBlockType:v,getBlockName:O,isSelectionEnabled:g(),blockSelectionStart:h(),isMultiSelecting:j(),keepCaretInsideBlock:k().keepCaretInsideBlock}}function Kl(e){var t=e.children,n=Object(b.useRef)(),r=Object(b.useRef)(),o=Object(b.useRef)(),c=Object(b.useRef)(),i=Object(b.useRef)(),a=Object(b.useRef)(),l=Object(b.useRef)(),s=Object(O.useSelect)(Gl,[]),u=s.selectedBlockClientId,d=s.selectionStartClientId,m=s.selectionBeforeEndClientId,v=s.selectionAfterEndClientId,g=s.selectedFirstClientId,h=s.selectedLastClientId,j=s.hasMultiSelection,k=s.blocks,y=s.isNavigationMode,_=s.hasBlockMovingClientId,E=s.isSelectionEnabled,C=s.blockSelectionStart,S=s.isMultiSelecting,w=s.getBlockIndex,B=s.getBlockRootClientId,x=s.getClientIdsOfDescendants,P=s.canInsertBlockType,T=s.getBlockName,N=s.keepCaretInsideBlock,R=Object(O.useDispatch)("core/block-editor"),D=R.multiSelect,A=R.selectBlock,M=R.clearSelectedBlock,L=R.setNavigationMode,F=R.setBlockMovingClientId,V=R.moveBlockToPosition,H=Object(b.useState)(!1),z=Object(le.a)(H,2),U=z[0],G=z[1];Object(b.useEffect)((function(){j&&!S&&c.current.focus()}),[j,S]);var K=f()("block-editor-writing-flow",{"is-navigate-mode":y,"is-block-moving-mode":!!_(),"can-insert-moving-block":U});return Object(b.createElement)("div",{className:K},Object(b.createElement)(Ll,{ref:r,selectedClientId:u,containerRef:n,noCapture:a,hasMultiSelection:j,multiSelectionContainer:c}),Object(b.createElement)("div",{ref:n,onKeyDown:function(e){var t=e.keyCode,s=e.target,b=t===it.UP,f=t===it.DOWN,O=t===it.LEFT,E=t===it.RIGHT,C=t===it.TAB,S=t===it.ESCAPE,I=t===it.ENTER,R=t===it.SPACE,H=b||O,z=O||E,U=b||f,K=z||U,W=e.shiftKey,q=W||e.ctrlKey||e.altKey||e.metaKey,$=U?hr.isVerticalEdge:hr.isHorizontalEdge;if(y){var Y,X=C&&W||b,Q=C&&!W||f,Z=O,J=E;if(X)Y=m;else if(Q)Y=v;else if(Z){var ee;Y=null!==(ee=B(u))&&void 0!==ee?ee:u}else if(J){var te;Y=null!==(te=x([u])[0])&&void 0!==te?te:u}var ne=_();if(ne&&Y&&G(P(T(ne),B(Y))),S&&ne&&(F(null),G(!1)),(I||R)&&ne){var re=B(ne),oe=B(u),ce=w(ne,re),ie=w(u,oe);cen}));if(r){var o=r.id.slice("block-".length);if(o){var a=r.getBoundingClientRect();e.clientX>a.right||e.clientX=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}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 r,o,c=!0,i=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return c=e.done,e},e:function(e){i=!0,o=e},f:function(){try{c||null==r.return||r.return()}finally{if(i)throw o}}}}function as(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0}})),Object(O.withDispatch)((function(e,t){return{onTransform:function(n,r){e("core/block-editor").replaceBlocks(t.clientIds,Object(c.switchToBlockType)(n,r))}}})))(ms),Os=n(44);function gs(){var e=Object(O.useSelect)((function(e){return e("core/block-editor")}),[]).getBlockName,t=Object(O.useSelect)((function(e){return e("core/blocks")}),[]).getBlockType,n=Object(O.useDispatch)("core/notices").createSuccessNotice;return Object(b.useCallback)((function(r,o){var c="";if(1===o.length){var i=o[0],a=t(e(i)).title;c="copy"===r?Object(I.sprintf)(Object(I.__)('Copied "%s" to clipboard.'),a):Object(I.sprintf)(Object(I.__)('Moved "%s" to clipboard.'),a)}else c="copy"===r?Object(I.sprintf)(Object(I._n)("Copied %d block to clipboard.","Copied %d blocks to clipboard.",o.length),o.length):Object(I.sprintf)(Object(I._n)("Moved %d block to clipboard.","Moved %d blocks to clipboard.",o.length),o.length);n(c,{type:"snackbar"})}),[])}var hs=function(e){var t=e.children,n=Object(b.useRef)(),r=Object(O.useSelect)((function(e){return e("core/block-editor")}),[]),o=r.getBlocksByClientId,i=r.getSelectedBlockClientIds,a=r.hasMultiSelection,l=r.getSettings,s=Object(O.useDispatch)("core/block-editor"),u=s.flashBlock,d=s.removeBlocks,f=s.replaceBlocks,m=gs(),v=l().__experimentalCanUserUseUnfilteredHTML,g=function(e){var t=i();if(0!==t.length){if(!a())if("copy"===e.type||"cut"===e.type?Object(hr.documentHasUncollapsedSelection)():Object(hr.documentHasSelection)())return;if(n.current.contains(e.target)){if(e.preventDefault(),"copy"===e.type||"cut"===e.type){1===t.length&&u(t[0]),m(e.type,t);var r=o(t),l=Object(c.serialize)(r);e.clipboardData.setData("text/plain",l),e.clipboardData.setData("text/html",l)}if("cut"===e.type)d(t);else if("paste"===e.type){var s=function(e){var t=e.clipboardData,n=t.items,r=t.files;n=Object(p.isNil)(n)?[]:n,r=Object(p.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(p.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'')})).join(""),o=""),{html:c,plainText:o}}(e),b=s.plainText,O=s.html,g=Object(c.pasteHandler)({HTML:O,plainText:b,mode:"BLOCKS",canUserUseUnfilteredHTML:v});f(t,g,g.length-1,-1)}}}};return Object(b.createElement)("div",{ref:n,onCopy:g,onCut:g,onPaste:g},t)};function js(e){var t=e.clientIds,n=e.children,r=e.__experimentalUpdateSelection,o=Object(O.useSelect)((function(e){return e("core/block-editor")}),[]),i=o.canInsertBlockType,a=o.getBlockRootClientId,l=o.getBlocksByClientId,s=o.getTemplateLock,u=Object(O.useSelect)((function(e){return e("core/blocks")}),[]),b=u.getDefaultBlockName,d=u.getGroupingBlockName,f=l(t),m=a(t[0]),v=Object(p.every)(f,(function(e){return!!e&&Object(c.hasBlockSupport)(e.name,"multiple",!0)&&i(e.name,m)})),g=i(b(),m),h=Object(O.useDispatch)("core/block-editor"),j=h.removeBlocks,k=h.replaceBlocks,y=h.duplicateBlocks,_=h.insertAfterBlock,E=h.insertBeforeBlock,C=h.flashBlock,S=h.setBlockMovingClientId,w=h.setNavigationMode,I=gs();return n({canDuplicate:v,canInsertDefaultBlock:g,isLocked:!!s(m),rootClientId:m,blocks:f,onDuplicate:function(){return y(t,r)},onRemove:function(){return j(t,r)},onInsertBefore:function(){E(Object(p.first)(Object(p.castArray)(t)))},onInsertAfter:function(){_(Object(p.last)(Object(p.castArray)(t)))},onMoveTo:function(){w(!0),S(t[0])},onGroup:function(){if(f.length){var e=d(),n=Object(c.switchToBlockType)(f,e);n&&k(t,n)}},onUngroup:function(){if(f.length){var e=f[0].innerBlocks;e.length&&k(t,e)}},onCopy:function(){var e=f.map((function(e){return e.clientId}));1===f.length&&C(e[0]),I("copy",e)}})}var ks=Object(m.compose)([Object(O.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(O.withDispatch)((function(e,t){var n=t.onToggle,r=void 0===n?p.noop:n,o=t.clientId;return{onToggleMode:function(){e("core/block-editor").toggleBlockMode(o),r()}}}))])((function(e){var t=e.blockType,n=e.mode,r=e.onToggleMode,o=e.small,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(I.__)("Edit as HTML"):Object(I.__)("Edit visually");return Object(b.createElement)(g.MenuItem,{onClick:r},!i&&s)}));function ys(e){var t=e.shouldRender,n=e.onClick,r=e.small;if(!t)return null;var o=Object(I.__)("Convert to Blocks");return Object(b.createElement)(g.MenuItem,{onClick:n},!r&&o)}var _s=Object(m.compose)(Object(O.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(O.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)}))}}})))(ys),Es=Object(m.compose)(Object(O.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor").getBlock(n);return{block:r,shouldRender:r&&r.name===Object(c.getFreeformContentHandlerName)()}})),Object(O.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.serialize)(n)}))}}})))(ys),Cs=Object(g.createSlotFill)("__experimentalBlockSettingsMenuFirstItem"),Ss=Cs.Fill,ws=Cs.Slot;Ss.Slot=ws;var Is=Ss;function Bs(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;tc){var a=Math.max(o-c-50,0),l=Math.max(i-c-50,0)/a;n.current=25*l}else if(e.clientY1,C=f()("block-editor-block-toolbar",y&&"is-showing-movers");return Object(b.createElement)("div",{className:C},Object(b.createElement)("div",Object(s.a)({className:"block-editor-block-toolbar__mover-switcher-container",ref:v},j),!E&&Object(b.createElement)("div",{className:"block-editor-block-toolbar__block-parent-selector-wrapper"},Object(b.createElement)(ns,{clientIds:r})),(_||E)&&Object(b.createElement)(Vs,{clientIds:r,cloneClassname:"block-editor-block-toolbar__drag-clone"},(function(e){var n=e.isDraggable,o=e.onDraggableStart,c=e.onDraggableEnd;return Object(b.createElement)("div",{className:"block-editor-block-toolbar__block-switcher-wrapper",draggable:n&&!t,onDragStart:o,onDragEnd:c},Object(b.createElement)(vs,{clientIds:r}),Object(b.createElement)(ts,{clientIds:r}))}))),_&&Object(b.createElement)(b.Fragment,null,Object(b.createElement)(w.Slot,{bubblesVirtually:!0,className:"block-editor-block-toolbar__slot"}),Object(b.createElement)(fr.Slot,{bubblesVirtually:!0,className:"block-editor-block-toolbar__slot"})),Object(b.createElement)(Ms,{clientIds:r}))}var Ws=function(e){var t=e.focusOnMount,n=Object(ke.a)(e,["focusOnMount"]),r=Object(O.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(b.createElement)("div",{className:"block-editor-block-contextual-toolbar-wrapper"},Object(b.createElement)(Zl,Object(s.a)({focusOnMount:t,className:"block-editor-block-contextual-toolbar","aria-label":Object(I.__)("Block tools")},n),Object(b.createElement)(Ks,null)))};function qs(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 $s(e){var t=e.clientId,n=e.rootClientId,r=e.isValid,o=e.isEmptyDefaultBlock,c=e.capturingClientId,i=Object(O.useSelect)(qs,[]),a=i.isNavigationMode,s=i.isMultiSelecting,u=i.isTyping,d=i.isCaretWithinFormattedText,p=i.hasMultiSelection,v=i.hasFixedToolbar,h=i.lastClientId,j=Object(m.useViewportMatch)("medium"),k=Object(b.useState)(!1),y=Object(le.a)(k,2),_=y[0],E=y[1],C=Object(b.useState)(!1),S=Object(le.a)(C,2),w=S[0],I=S[1],B=Object(b.useContext)(Zs),x=!a&&o&&r,P=a,T=!a&&!v&&j&&!x&&!s&&(!u||d),N=!(a||T||v||o);if(Object(l.useShortcut)("core/block-editor/focus-toolbar",Object(b.useCallback)((function(){return E(!0)}),[]),{bindGlobal:!0,eventName:"keydown",isDisabled:!N}),!(P||T||_||x))return null;var R=B[t];if(c&&(R=document.getElementById("block-"+c)),!R)return null;var D=R;if(p){var A=B[h];if(!A)return null;D={top:R,bottom:A}}var M=x?"top left right":"top right left";return Object(b.createElement)(g.Popover,{noArrow:!0,animate:!1,position:M,focusOnMount:!1,anchorRef:D,className:"block-editor-block-list__block-popover",__unstableSticky:!x,__unstableSlotName:"block-toolbar",__unstableBoundaryParent:!0,__unstableObserveElement:R,onBlur:function(){return E(!1)},shouldAnchorIncludePadding:!0},(T||_)&&Object(b.createElement)("div",{onFocus:function(){I(!0)},onBlur:function(){I(!1)},tabIndex:-1,className:f()("block-editor-block-list__block-popover-inserter",{"is-visible":w})},Object(b.createElement)(Ml,{clientId:t,rootClientId:n,__experimentalIsQuick:!0})),(T||_)&&Object(b.createElement)(Ws,{focusOnMount:_}),P&&Object(b.createElement)(Yl,{clientId:t,rootClientId:n}),x&&Object(b.createElement)("div",{className:"block-editor-block-list__empty-block-inserter"},Object(b.createElement)(Ml,{position:"bottom right",rootClientId:n,clientId:t,__experimentalIsQuick:!0})))}function Ys(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,b=i(s)||{},d=b.name,f=b.attributes,m=void 0===f?{}:f,v=b.isValid,O=a(s),g=l(O),h=Object(p.findIndex)(g,["__experimentalCaptureToolbars",!0]);return-1!==h&&(u=O[h]),{clientId:s,rootClientId:o(s),name:d,isValid:v,isEmptyDefaultBlock:d&&Object(c.isUnmodifiedDefaultBlock)({name:d,attributes:m}),capturingClientId:u}}}function Xs(){var e=Object(O.useSelect)(Ys,[]);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(b.createElement)($s,{clientId:t,rootClientId:n,isValid:o,isEmptyDefaultBlock:c,capturingClientId:i}):null}var Qs=Object(b.createContext)(),Zs=Object(b.createContext)(),Js=Object(b.createContext)();function eu(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.hasMultiSelection;return{selectedBlockClientId:n(),hasMultiSelection:r()}}function tu(e){Ye(e.target)&&e.preventDefault()}var nu=Object(b.forwardRef)((function(e,t){var n=e.children,r=e.className,o=Object(O.useSelect)(eu,[]),c=o.selectedBlockClientId,i=o.hasMultiSelection,a=Object(O.useDispatch)("core/block-editor").selectBlock,l=function(e){var t=Object(O.useSelect)(to,[]),n=t.isSelectionEnabled,r=t.isMultiSelecting,o=t.multiSelectedBlockClientIds,c=t.hasMultiSelection,i=t.getBlockParents,a=t.selectedBlockClientId,l=Object(O.useDispatch)("core/block-editor"),s=l.startMultiSelect,u=l.stopMultiSelect,d=l.multiSelect,f=l.selectBlock,p=Object(b.useRef)(),m=Object(b.useRef)(),v=Object(b.useRef)();Object(b.useEffect)((function(){if(c&&!r){var e=o.length;if(!(e<2)){var t=o[0],n=o[e-1],i=qe(t),l=qe(n),s=window.getSelection(),u=document.createRange();i=eo(i,"start"),l=eo(l,"end"),u.setStartBefore(i),u.setEndAfter(l),s.removeAllRanges(),s.addRange(u)}}else{if(!a||r)return;var b=window.getSelection();if(b.rangeCount&&!b.isCollapsed){var d=qe(a),f=b.getRangeAt(0),p=f.startContainer,m=f.endContainer;!d||d.contains(p)&&d.contains(m)||b.removeAllRanges()}}}),[c,r,o,f,a]);var g=Object(b.useCallback)((function(t){var n=t.isSelectionEnd,r=window.getSelection();if(r.rangeCount&&!r.isCollapsed){var o=Ye(r.focusNode);if(m.current===o){if(f(o),n&&(no(e.current,!0),r.rangeCount)){var c=r.getRangeAt(0).commonAncestorContainer;v.current.contains(c)&&v.current.focus()}}else{var a=[].concat(Object(ae.a)(i(m.current)),[m.current]),l=[].concat(Object(ae.a)(i(o)),[o]),s=Math.min(a.length,l.length)-1;d(a[s],l[s])}}else no(e.current,!0)}),[f,i,d]),h=Object(b.useCallback)((function(){document.removeEventListener("selectionchange",g),window.removeEventListener("mouseup",h),p.current=window.requestAnimationFrame((function(){g({isSelectionEnd:!0}),u()}))}),[g,u]);return Object(b.useEffect)((function(){return function(){document.removeEventListener("selectionchange",g),window.removeEventListener("mouseup",h),window.cancelAnimationFrame(p.current)}}),[g,h]),Object(b.useCallback)((function(t){n&&(m.current=t,v.current=document.activeElement,s(),document.addEventListener("selectionchange",g),window.addEventListener("mouseup",h),no(e.current,!1))}),[n,s,h])}(t),s=Object(b.useState)({}),u=Object(le.a)(s,2),d=u[0],p=u[1];return Object(b.createElement)($l,{containerRef:t},Object(b.createElement)(Zs.Provider,{value:d},Object(b.createElement)(Xs,null),Object(b.createElement)("div",{ref:t,className:f()(r,"is-root-container"),onFocus:function(e){if(!i){var t=Ye(e.target);t&&t!==c&&a(t)}},onDragStart:tu},Object(b.createElement)(Js.Provider,{value:p},Object(b.createElement)(Qs.Provider,{value:l},n)))))})),ru=["p","div","h1","h2","h3","h4","h5","h6","ol","ul","li","figure","nav","pre","header","section","aside","footer","main"];function ou(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 cu(e){for(var t=1;t1,w=m||k,B=f()("block-editor-block-navigation-block__mover-cell",{"is-visible":w}),x=Mr().__experimentalFeatures,P=f()("block-editor-block-navigation-block__menu-cell",{"is-visible":w});return Object(b.useEffect)((function(){x&&n&&u.current.focus()}),[x,n]),Object(b.createElement)(Er,{className:f()({"is-selected":n}),onMouseEnter:function(){return v(!0)},onMouseLeave:function(){return v(!1)},onFocus:function(){return y(!0)},onBlur:function(){return y(!1)},level:c,position:o,rowCount:i,path:s},Object(b.createElement)(g.__experimentalTreeGridCell,{className:"block-editor-block-navigation-block__contents-cell",colSpan:S?void 0:2,ref:u},(function(e){var a=e.ref,s=e.tabIndex,u=e.onFocus;return Object(b.createElement)("div",{className:"block-editor-block-navigation-block__contents-container"},Object(b.createElement)(Dr,{level:c,isLastRow:o===i,terminatedLevels:l}),Object(b.createElement)(ju,{block:t,onClick:function(){return r(t.clientId)},isSelected:n,position:o,siblingCount:C,level:c,ref:a,tabIndex:s,onFocus:u}))})),S&&Object(b.createElement)(b.Fragment,null,Object(b.createElement)(g.__experimentalTreeGridCell,{className:B,withoutGridItem:!0},Object(b.createElement)(g.__experimentalTreeGridItem,null,(function(e){var t=e.ref,n=e.tabIndex,r=e.onFocus;return Object(b.createElement)(Nr,{__experimentalOrientation:"vertical",clientIds:[E],ref:t,tabIndex:n,onFocus:r})})),Object(b.createElement)(g.__experimentalTreeGridItem,null,(function(e){var t=e.ref,n=e.tabIndex,r=e.onFocus;return Object(b.createElement)(Rr,{__experimentalOrientation:"vertical",clientIds:[E],ref:t,tabIndex:n,onFocus:r})})))),x&&Object(b.createElement)(g.__experimentalTreeGridCell,{className:P},(function(e){var t=e.ref,n=e.tabIndex,o=e.onFocus;return Object(b.createElement)(As,{clientIds:[E],icon:Or.a,toggleProps:{ref:t,tabIndex:n,onFocus:o},disableOpenOnArrowDown:!0,__experimentalSelectBlock:r},(function(e){var t=e.onClose;return Object(b.createElement)(g.MenuGroup,null,Object(b.createElement)(g.MenuItem,{onClick:Object(vr.a)(mr.a.mark((function e(){return mr.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,_(null);case 2:return e.next=4,_(E);case 4:t();case 5:case"end":return e.stop()}}),e)})))},Object(I.__)("Go to block")))}))})))}function yu(e){var t=e.parentBlockClientId,n=e.position,r=e.level,o=e.rowCount,c=e.terminatedLevels,i=e.path,a=Object(m.useInstanceId)(yu),l="block-navigation-appender-row__description_".concat(a),s=Object(I.sprintf)(Object(I.__)("Add block at position %1$d, Level %2$d"),n,r);return Object(b.createElement)(Er,{level:r,position:n,rowCount:o,path:i},Object(b.createElement)(g.__experimentalTreeGridCell,{className:"block-editor-block-navigation-appender__cell",colSpan:"3"},(function(e){var i=e.ref,a=e.tabIndex,u=e.onFocus;return Object(b.createElement)("div",{className:"block-editor-block-navigation-appender__container"},Object(b.createElement)(Dr,{level:r,isLastRow:n===o,terminatedLevels:c}),Object(b.createElement)(Ml,{rootClientId:t,__experimentalSelectBlockOnInsert:!1,"aria-describedby":l,toggleProps:{ref:i,tabIndex:a,onFocus:u}}),Object(b.createElement)("div",{className:"block-editor-block-navigation-appender__description",id:l},s))})))}function _u(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,u=e.terminatedLevels,d=void 0===u?[]:u,f=e.path,m=void 0===f?[]:f,v=!a,O=Object(p.compact)(t),g=function(e){return o&&!v&&r===e},h=g(a),j=h?O.length+1:O.length,k=j;return Object(b.createElement)(b.Fragment,null,Object(p.map)(O,(function(e,t){var a=e.clientId,l=e.innerBlocks,u=t+1,f=j===u?[].concat(Object(ae.a)(d),[s]):d,p=[].concat(Object(ae.a)(m),[u]),v=i&&!!l&&!!l.length,O=g(a);return Object(b.createElement)(b.Fragment,{key:a},Object(b.createElement)(ku,{block:e,onClick:n,isSelected:r===a,level:s,position:u,rowCount:j,showBlockMovers:c,terminatedLevels:d,path:p}),(v||O)&&Object(b.createElement)(_u,{blocks:l,selectedBlockClientId:r,selectBlock:n,showAppender:o,showBlockMovers:c,showNestedBlocks:i,parentBlockClientId:a,level:s+1,terminatedLevels:f,path:p}))})),h&&Object(b.createElement)(yu,{parentBlockClientId:a,position:j,rowCount:k,level:s,terminatedLevels:d,path:[].concat(Object(ae.a)(m),[k])}))}function Eu(e){var t=e.__experimentalFeatures,n=Object(ke.a)(e,["__experimentalFeatures"]),r=Object(b.useMemo)((function(){return{__experimentalFeatures:t}}),[t]);return Object(b.createElement)(g.__experimentalTreeGrid,{className:"block-editor-block-navigation-tree","aria-label":Object(I.__)("Block navigation structure")},Object(b.createElement)(Ar.Provider,{value:r},Object(b.createElement)(_u,n)))}_u.defaultProps={selectBlock:function(){}};var Cu=Object(m.compose)(Object(O.withSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getBlockHierarchyRootClientId,o=t.getBlock,c=t.getBlocks,i=n();return{rootBlocks:c(),rootBlock:i?o(r(i)):null,selectedBlockClientId:i}})),Object(O.withDispatch)((function(e,t){var n=t.onSelect,r=void 0===n?p.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(b.createElement)("div",{className:"block-editor-block-navigation__container"},Object(b.createElement)("p",{className:"block-editor-block-navigation__label"},Object(I.__)("Block navigation")),i&&Object(b.createElement)(Eu,{blocks:[t],selectedBlockClientId:r,selectBlock:o,__experimentalFeatures:c,showNestedBlocks:!0}),!i&&Object(b.createElement)(Eu,{blocks:n,selectedBlockClientId:r,selectBlock:o,__experimentalFeatures:c}))})),Su=Object(b.createElement)(g.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},Object(b.createElement)(g.Path,{d:"M13.8 5.2H3v1.5h10.8V5.2zm-3.6 12v1.5H21v-1.5H10.2zm7.2-6H6.6v1.5h10.8v-1.5z"}));function wu(e){var t=e.isEnabled,n=e.onToggle,r=e.isOpen,o=e.innerRef,c=Object(ke.a)(e,["isEnabled","onToggle","isOpen","innerRef"]);Object(l.useShortcut)("core/edit-post/toggle-block-navigation",Object(b.useCallback)(n,[n]),{bindGlobal:!0,isDisabled:!t});var i=Object(O.useSelect)((function(e){return e("core/keyboard-shortcuts").getShortcutRepresentation("core/edit-post/toggle-block-navigation")}),[]);return Object(b.createElement)(g.Button,Object(s.a)({},c,{ref:o,icon:Su,"aria-expanded":r,onClick:t?n:void 0,label:Object(I.__)("Block navigation"),className:"block-editor-block-navigation",shortcut:i,"aria-disabled":!t}))}var Iu=Object(b.forwardRef)((function(e,t){var n=e.isDisabled,r=e.__experimentalFeatures,o=Object(ke.a)(e,["isDisabled","__experimentalFeatures"]),c=Object(O.useSelect)((function(e){return!!e("core/block-editor").getBlockCount()}),[])&&!n;return Object(b.createElement)(g.Dropdown,{contentClassName:"block-editor-block-navigation__popover",position:"bottom right",renderToggle:function(e){var n=e.isOpen,r=e.onToggle;return Object(b.createElement)(wu,Object(s.a)({},o,{innerRef:t,isOpen:n,onToggle:r,isEnabled:c}))},renderContent:function(e){var t=e.onClose;return Object(b.createElement)(Cu,{onSelect:t,__experimentalFeatures:r})}})})),Bu=n(125),xu=[it.rawShortcut.primary("z"),it.rawShortcut.primaryShift("z"),it.rawShortcut.primary("y")],Pu=Object(b.createElement)(g.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(p.fromPairs)(xu.map((function(e){return[e,function(e){return e.preventDefault()}]})))}),Tu=function(){return Pu};function Nu(e){return e.filter((function(e){var t=e.type;return/^image\/(?:jpe?g|png|gif)$/.test(t)})).map((function(e){return'')})).join("")}var Ru={position:"bottom right",isAlternate:!0},Du=function(){return Object(b.createElement)("div",{className:"block-editor-format-toolbar"},Object(b.createElement)(g.ToolbarGroup,null,["bold","italic","link","text-color"].map((function(e){return Object(b.createElement)(g.Slot,{name:"RichText.ToolbarControls.".concat(e),key:e})})),Object(b.createElement)(g.Slot,{name:"RichText.ToolbarControls"},(function(e){return 0!==e.length&&Object(b.createElement)(g.__experimentalToolbarItem,null,(function(t){return Object(b.createElement)(g.DropdownMenu,{icon:Ir.a,label:Object(I.__)("More rich text controls"),toggleProps:t,controls:Object(p.orderBy)(e.map((function(e){return Object(le.a)(e,1)[0].props})),"title"),popoverProps:Ru})}))}))))},Au=function(e){var t=e.inline,n=e.anchorRef;return t?Object(b.createElement)(g.Popover,{noArrow:!0,position:"top center",focusOnMount:!1,anchorRef:n,className:"block-editor-rich-text__inline-format-toolbar"},Object(b.createElement)(Du,null)):Object(b.createElement)(fr,null,Object(b.createElement)(Du,null))};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 Lu(e){if(!0===e||"p"===e||"li"===e)return!0===e?"p":e}function Fu(e){var t=e.allowedFormats,n=e.formattingControls;return e.disableFormats?Fu.EMPTY_ARRAY:t||n?t||(cr()("wp.blockEditor.RichText formattingControls prop",{alternative:"allowedFormats"}),n.map((function(e){return"core/".concat(e)}))):void 0}Fu.EMPTY_ARRAY=[];var Vu=Object(b.forwardRef)((function e(t,n){var r=t.children,o=t.tagName,a=t.value,l=t.onChange,d=t.isSelected,p=t.multiline,v=t.inlineToolbar,g=t.wrapperClassName,h=t.className,j=t.autocompleters,y=t.onReplace,_=t.placeholder,E=t.keepPlaceholderOnFocus,C=t.allowedFormats,S=t.formattingControls,w=t.withoutInteractiveFormatting,I=t.onRemove,B=t.onMerge,x=t.onSplit,P=t.__unstableOnSplitAtEnd,T=t.__unstableOnSplitMiddle,N=t.identifier,R=t.start,D=t.reversed,A=t.style,M=t.preserveWhiteSpace,L=t.__unstableEmbedURLOnPaste,F=t.__unstableDisableFormats,V=t.disableLineBreaks,H=Object(ke.a)(t,["children","tagName","value","onChange","isSelected","multiline","inlineToolbar","wrapperClassName","className","autocompleters","onReplace","placeholder","keepPlaceholderOnFocus","allowedFormats","formattingControls","withoutInteractiveFormatting","onRemove","onMerge","onSplit","__unstableOnSplitAtEnd","__unstableOnSplitMiddle","identifier","start","reversed","style","preserveWhiteSpace","__unstableEmbedURLOnPaste","__unstableDisableFormats","disableLineBreaks"]),z=Object(m.useInstanceId)(e);N=N||z;var U=Object(b.useRef)(),G=n||U,K=k(),W=K.clientId,q=K.onCaretVerticalPositionChange,$=K.isSelected,Y=Object(O.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,f=n.isMultiSelecting,p=n.hasMultiSelection,m=o(),v=i(),O=a().__experimentalUndo;void 0===d?t=m.clientId===W&&m.attributeKey===N:d&&(t=m.clientId===W);var g={};if("native"===b.Platform.OS){var h=W&&s(W);g={shouldBlurOnUnmount:h&&t&&Object(c.isUnmodifiedDefaultBlock)(h)}}return function(e){for(var t=1;t0,me=a,ve=l;Array.isArray(a)&&(me=c.children.toHTML(a),ve=function(e){return l(c.children.fromDOM(Object(i.__unstableCreateElement)(document,e).childNodes))});var Oe=Object(b.useCallback)((function(e,t){ue(W,N,e,t)}),[W,N]),ge=Object(b.useCallback)((function(e){var t=e.value,n=e.isReverse;B&&B(!n),I&&Object(i.isEmpty)(t)&&n&&I(!n)}),[B,I]),he=Object(b.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(y&&x){var n=[],r=Object(i.split)(e),o=Object(le.a)(r,2),c=o[0],a=o[1],l=t.length>0,s=-1;l&&Object(i.isEmpty)(c)||(n.push(x(Object(i.toHTMLString)({value:c,multilineTag:de}))),s+=1),l?(n.push.apply(n,Object(ae.a)(t)),s+=t.length):T&&n.push(T()),(l||T)&&Object(i.isEmpty)(a)||n.push(x(Object(i.toHTMLString)({value:a,multilineTag:de})));var u=l?s:1,b=l?-1:null;y(n,u,b)}}),[y,x,de,T]),je=Object(b.useCallback)((function(e){var t=e.value,n=e.onChange,r=e.shiftKey,o=y&&x;if(y){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&&(y([l.transform({content:t.text})]),be())}if(p)r?V||n(Object(i.insert)(t,"\n")):o&&Object(i.__unstableIsEmptyLine)(t)?he(t):n(Object(i.__unstableInsertLineSeparator)(t));else{var s=t.text,u=t.start,b=t.end,d=P&&u===b&&b===s.length;r||!o&&!d?V||n(Object(i.insert)(t,"\n")):!o&&d?P():o&&he(t)}}),[y,x,be,p,he,P]),ye=Object(b.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:Nu(l),mode:"BLOCKS",tagName:o});return window.console.log("Received items:\n\n",l),void(y&&Object(i.isEmpty)(t)?y(u):he(t,u))}var b,d=y&&x?"AUTO":"INLINE";"AUTO"===d&&Object(i.isEmpty)(t)&&(b=a,Object(Bu.regexp)(".*").test(b))&&(d="BLOCKS"),L&&Object(i.isEmpty)(t)&&Object(hl.isURL)(a.trim())&&(d="BLOCKS");var f=Object(c.pasteHandler)({HTML:r,plainText:a,mode:d,tagName:o});if("string"==typeof f){var m=Object(i.create)({html:f});if(s.length)for(var v=m.formats.length;v--;)m.formats[v]=[].concat(Object(ae.a)(s),Object(ae.a)(m.formats[v]||[]));p&&(m=Object(i.replace)(m,/\n+/g,i.__UNSTABLE_LINE_SEPARATOR)),n(Object(i.insert)(t,m))}else f.length>0&&(y&&Object(i.isEmpty)(t)?y(f,f.length-1,-1):he(t,f))}),[o,y,x,he,L,p]),_e=Object(b.useCallback)((function(e,t){if(y){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);y([u]),be()}}}}),[y,be]),Ee=Object(b.createElement)(i.__experimentalRichText,Object(s.a)({},H,{clientId:W,identifier:N,ref:G,value:me,onChange:ve,selectionStart:Q,selectionEnd:Z,onSelectionChange:Oe,tagName:o,className:f()("block-editor-rich-text__editable",h,{"keep-placeholder-on-focus":E}),placeholder:_,allowedFormats:fe,withoutInteractiveFormatting:w,onEnter:je,onDelete:ge,onPaste:ye,__unstableIsSelected:J,__unstableInputRule:_e,__unstableMultilineTag:de,__unstableIsCaretWithinFormattedText:X,__unstableOnEnterFormattedText:ie,__unstableOnExitFormattedText:se,__unstableOnCreateUndoLevel:ce,__unstableMarkAutomaticChange:be,__unstableDidAutomaticChange:ee,__unstableUndo:ne,__unstableDisableFormats:F,style:A,preserveWhiteSpace:M,disabled:te,start:R,reversed:D,onCaretVerticalPositionChange:q,blockIsSelected:void 0!==d?d:$,shouldBlurOnUnmount:re}),(function(e){var t=e.isSelected,n=e.value,o=e.onChange,c=e.onFocus,i=e.editableProps,a=e.editableTagName;return Object(b.createElement)(b.Fragment,null,r&&r({value:n,onChange:o,onFocus:c}),t&&pe&&Object(b.createElement)(Au,{inline:v,anchorRef:G.current}),t&&Object(b.createElement)(Tu,null),Object(b.createElement)(qn,{onReplace:y,completers:j,record:n,onChange:o,isSelected:t},(function(e){var t=e.listBoxId,n=e.activeId,r=e.onKeyDown;return Object(b.createElement)(a,Object(s.a)({},i,{"aria-autocomplete":t?"list":void 0,"aria-owns":t,"aria-activedescendant":n,start:R,reversed:D,onKeyDown:function(e){r(e),i.onKeyDown(e)}}))})))}));return g?(cr()("wp.blockEditor.RichText wrapperClassName prop",{alternative:"className prop or create your own wrapper div"}),Object(b.createElement)("div",{className:f()("block-editor-rich-text",g)},Ee)):Ee}));Vu.Content=function(e){var t=e.value,n=e.tagName,r=e.multiline,o=Object(ke.a)(e,["value","tagName","multiline"]);Array.isArray(t)&&(t=c.children.toHTML(t));var i=Lu(r);!t&&i&&(t="<".concat(i,">"));var a=Object(b.createElement)(b.RawHTML,null,t);return n?Object(b.createElement)(n,Object(p.omit)(o,["format"]),a):a},Vu.isEmpty=function(e){return!e||0===e.length},Vu.Content.defaultProps={format:"string",value:""};var Hu=Vu;function zu(e){var t=e.value,n=e.onChange;return Object(b.createElement)(hu,null,Object(b.createElement)(Hu,{value:t,onChange:n,placeholder:Object(I.__)("Navigation item"),keepPlaceholderOnFocus:!0,withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic","core/image","core/strikethrough"]}))}var Uu=n(299);var Gu=function(e){var t=e.icon,n=void 0===t?Uu.a:t,r=e.label,o=void 0===r?Object(I.__)("Choose variation"):r,c=e.instructions,i=void 0===c?Object(I.__)("Select a variation to start with."):c,a=e.variations,l=e.onSelect,s=e.allowSkip,u=f()("block-editor-block-variation-picker",{"has-many-variations":a.length>4});return Object(b.createElement)(g.Placeholder,{icon:n,label:o,instructions:i,className:u},Object(b.createElement)("ul",{className:"block-editor-block-variation-picker__variations",role:"list","aria-label":Object(I.__)("Block variations")},a.map((function(e){return Object(b.createElement)("li",{key:e.name},Object(b.createElement)(g.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(b.createElement)("span",{className:"block-editor-block-variation-picker__variation-label",role:"presentation"},e.title))}))),s&&Object(b.createElement)("div",{className:"block-editor-block-variation-picker__skip"},Object(b.createElement)(g.Button,{isLink:!0,onClick:function(){return l()}},Object(I.__)("Skip"))))},Ku=Object(b.createElement)(g.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(b.createElement)(g.Path,{d:"M15 4H9v11h6V4zM4 18.5V20h16v-1.5H4z"})),Wu=Object(b.createElement)(g.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(b.createElement)(g.Path,{d:"M20 11h-5V4H9v7H4v1.5h5V20h6v-7.5h5z"}));function qu(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 $u={top:{icon:Object(b.createElement)(g.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(b.createElement)(g.Path,{d:"M9 20h6V9H9v11zM4 4v1.5h16V4H4z"})),title:Object(I._x)("Vertically Align Top","Block vertical alignment setting")},center:{icon:Wu,title:Object(I._x)("Vertically Align Middle","Block vertical alignment setting")},bottom:{icon:Ku,title:Object(I._x)("Vertically Align Bottom","Block vertical alignment setting")}},Yu=["top","center","bottom"],Xu={isAlternate:!0};var Qu=function(e){var t=e.value,n=e.onChange,r=e.controls,o=void 0===r?Yu:r,c=e.isCollapsed,i=void 0===c||c,a=$u[t],l=$u.top;return Object(b.createElement)(g.ToolbarGroup,{popoverProps:Xu,isCollapsed:i,icon:a?a.icon:l.icon,label:Object(I._x)("Change vertical alignment","Block vertical alignment setting label"),controls:o.map((function(e){return function(e){for(var t=1;t0&&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(hl.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(I.sprintf)(Object(I._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(I.__)("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 it.UP:e.stopPropagation(),e.preventDefault();var a=r?r-1:o.length-1;this.setState({selectedSuggestion:a});break;case it.DOWN:e.stopPropagation(),e.preventDefault();var l=null===r||r===o.length-1?0:r+1;this.setState({selectedSuggestion:l});break;case it.TAB:null!==this.state.selectedSuggestion&&(this.selectLink(i),this.props.speak(Object(I.__)("Link selected.")));break;case it.ENTER:null!==this.state.selectedSuggestion&&(e.stopPropagation(),this.selectLink(i))}}else switch(e.keyCode){case it.UP:0!==e.target.selectionStart&&(e.stopPropagation(),e.preventDefault(),e.target.setSelectionRange(0,0));break;case it.DOWN:this.props.value.length!==e.target.selectionStart&&(e.stopPropagation(),e.preventDefault(),e.target.setSelectionRange(this.props.value.length,this.props.value.length))}}},{key:"selectLink",value:function(e){this.props.onChange(e.url,e),this.setState({selectedSuggestion:null,showSuggestions:!1})}},{key:"handleOnClick",value:function(e){this.selectLink(e),this.inputRef.current.focus()}},{key:"render",value:function(){var e=this,t=this.props,n=t.label,r=t.instanceId,o=t.className,c=t.isFullWidth,i=t.__experimentalRenderSuggestions,a=t.placeholder,l=void 0===a?Object(I.__)("Paste URL or type to search"):a,u=t.value,d=void 0===u?"":u,m=t.autoFocus,v=void 0===m||m,O=t.__experimentalShowInitialSuggestions,h=void 0!==O&&O,j=this.state,k=j.showSuggestions,y=j.suggestions,_=j.selectedSuggestion,E=j.loading,C="url-input-control-".concat(r),S="block-editor-url-input-suggestions-".concat(r),w="block-editor-url-input-suggestion-".concat(r),B={id:S,ref:this.autocompleteRef,role:"listbox"},x=function(t,n){return{role:"option",tabIndex:"-1",id:"".concat(w,"-").concat(n),ref:e.bindSuggestionNode(n),"aria-selected":n===_}};return Object(b.createElement)(g.BaseControl,{label:n,id:C,className:f()("block-editor-url-input",o,{"is-full-width":c})},Object(b.createElement)("input",{className:"block-editor-url-input__input",autoFocus:v,type:"text","aria-label":Object(I.__)("URL"),required:!0,value:d,onChange:this.onChange,onFocus:this.onFocus,onInput:wb,placeholder:l,onKeyDown:this.onKeyDown,role:"combobox","aria-expanded":k,"aria-autocomplete":"list","aria-owns":S,"aria-activedescendant":null!==_?"".concat(w,"-").concat(_):void 0,ref:this.inputRef}),E&&Object(b.createElement)(g.Spinner,null),Object(p.isFunction)(i)&&k&&!!y.length&&i({suggestions:y,selectedSuggestion:_,suggestionsListProps:B,buildSuggestionItemProps:x,isLoading:E,handleSuggestionClick:this.handleOnClick,isInitialSuggestions:h&&!(d&&d.length)}),!Object(p.isFunction)(i)&&k&&!!y.length&&Object(b.createElement)(g.Popover,{position:"bottom",noArrow:!0,focusOnMount:!1},Object(b.createElement)("div",Object(s.a)({},B,{className:f()("block-editor-url-input__suggestions","".concat(o,"__suggestions"))}),y.map((function(t,n){return Object(b.createElement)(g.Button,Object(s.a)({},x(0,n),{key:t.id,className:f()("block-editor-url-input__suggestion",{"is-selected":n===_}),onClick:function(){return e.handleOnClick(t)}}),t.title)})))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.value,r=e.disableSuggestions,o=e.__experimentalShowInitialSuggestions,c=void 0!==o&&o,i=t.showSuggestions,a=n&&n.length;return c||a||(i=!1),!0===r&&(i=!1),{showSuggestions:i}}}]),r}(b.Component),Bb=Object(m.compose)(m.withSafeTimeout,g.withSpokenMessages,m.withInstanceId,Object(O.withSelect)((function(e,t){if(!Object(p.isFunction)(t.__experimentalFetchLinkSuggestions))return{__experimentalFetchLinkSuggestions:(0,e("core/block-editor").getSettings)().__experimentalFetchLinkSuggestions}})))(Ib),xb=function(e){var t=e.placeholder,n=e.value,r=e.onChange,o=e.onSelect,c=e.renderSuggestions,i=e.fetchSuggestions,a=e.showInitialSuggestions,l=e.errorMessage,s=Object(b.useState)(),u=Object(le.a)(s,2),d=u[0],f=u[1];return Object(b.createElement)("form",{onSubmit:function(e){e.preventDefault(),o(d||{url:n})}},Object(b.createElement)("div",{className:"block-editor-link-control__search-input-wrapper"},Object(b.createElement)(Bb,{className:"block-editor-link-control__search-input",value:n,onChange:function(e,t){r(e),f(t)},placeholder:null!=t?t:Object(I.__)("Search or type url"),__experimentalRenderSuggestions:c,__experimentalFetchLinkSuggestions:i,__experimentalHandleURLSuggestions:!0,__experimentalShowInitialSuggestions:a}),Object(b.createElement)("div",{className:"block-editor-link-control__search-actions"},Object(b.createElement)(g.Button,{type:"submit",label:Object(I.__)("Submit"),icon:_b.a,className:"block-editor-link-control__search-submit"}))),l&&Object(b.createElement)(g.Notice,{className:"block-editor-link-control__search-error",status:"error",isDismissible:!1},l))},Pb=function(e){var t=e.searchTerm,n=e.onClick,r=e.itemProps,o=e.isSelected;return t?Object(b.createElement)(g.Button,Object(s.a)({},r,{className:f()("block-editor-link-control__search-create block-editor-link-control__search-item",{"is-selected":o}),onClick:n}),Object(b.createElement)(g.Icon,{className:"block-editor-link-control__search-item-icon",icon:"insert"}),Object(b.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(b.createElement)("span",{className:"block-editor-link-control__search-item-title"},Object(b.createInterpolateElement)(Object(I.sprintf)(Object(I.__)("New page: %s"),t),{mark:Object(b.createElement)("mark",null)})))):null};function Tb(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 Nb(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};T(!1);var n=Nb({},t);delete n.type,delete n.id,c(Nb({},n,{},e))};return Object(b.createElement)("div",{tabIndex:-1,ref:y,className:"block-editor-link-control"},D&&Object(b.createElement)("div",{className:"block-editor-link-control__loading"},Object(b.createElement)(g.Spinner,null)," ",Object(I.__)("Creating"),"…"),(P||!n)&&!D&&Object(b.createElement)(xb,{placeholder:t,value:S,onChange:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";w(e)},onSelect:function(){var e=Object(vr.a)(mr.a.mark((function e(t){return mr.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("__CREATE__"!==t.type){e.next=5;break}return e.next=3,Y(S);case 3:e.next=6;break;case 5:(!a||Object.keys(t).length>1)&&(X(t,n),W());case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),renderSuggestions:u?function(e){var t=e.suggestionsListProps,r=e.buildSuggestionItemProps,o=e.suggestions,i=e.selectedSuggestion,a=e.isLoading,l=e.isInitialSuggestions,u=f()("block-editor-link-control__search-results",{"is-loading":a}),d=["url","mailto","tel","internal"],p=1===o.length&&d.includes(o[0].type.toLowerCase()),m=h&&!p&&!l,v="block-editor-link-control-search-results-label-".concat(_),O=l?Object(I.__)("Recently updated"):Object(I.sprintf)(Object(I.__)('Search results for "%s"'),S),j=Object(b.createElement)(l?b.Fragment:g.VisuallyHidden,{},Object(b.createElement)("span",{className:"block-editor-link-control__search-results-label",id:v},O));return Object(b.createElement)("div",{className:"block-editor-link-control__search-results-wrapper"},j,Object(b.createElement)("div",Object(s.a)({},t,{className:u,"aria-labelledby":v}),o.map((function(e,t){return m&&"__CREATE__"===e.type?Object(b.createElement)(Pb,{searchTerm:S,onClick:Object(vr.a)(mr.a.mark((function t(){return mr.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Y(e.title);case 2:case"end":return t.stop()}}),t)}))),key:e.type,itemProps:r(e,t),isSelected:t===i}):"__CREATE__"===e.type?null:Object(b.createElement)(yb,{key:"".concat(e.id,"-").concat(e.type),itemProps:r(e,t),suggestion:e,index:t,onClick:function(){W(),c(Nb({},n,{},e))},isSelected:t===i,isURL:d.includes(e.type.toLowerCase()),searchTerm:S})}))))}:null,fetchSuggestions:$,showInitialSuggestions:d,errorMessage:F}),n&&!P&&!D&&Object(b.createElement)(b.Fragment,null,Object(b.createElement)("div",{"aria-label":Object(I.__)("Currently selected"),"aria-selected":"true",className:f()("block-editor-link-control__search-item",{"is-current":!0})},Object(b.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(b.createElement)(g.ExternalLink,{className:"block-editor-link-control__search-item-title",href:n.url},n&&n.title||U),n&&n.title&&Object(b.createElement)("span",{className:"block-editor-link-control__search-item-info"},U)),Object(b.createElement)(g.Button,{isSecondary:!0,onClick:function(){return T(!0)},className:"block-editor-link-control__search-item-action"},Object(I.__)("Edit")),Object(b.createElement)(Db,{fillProps:n}))),Object(b.createElement)(jb,{value:n,settings:r,onChange:c}))}Lb.ViewerFill=Ab;var Fb=Lb,Vb=Object(b.createElement)(B.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(b.createElement)(B.Path,{d:"M13 11V4c0-.55-.45-1-1-1h-1.67L9 1H5L3.67 3H2c-.55 0-1 .45-1 1v7c0 .55.45 1 1 1h10c.55 0 1-.45 1-1zM7 4.5c1.38 0 2.5 1.12 2.5 2.5S8.38 9.5 7 9.5 4.5 8.38 4.5 7 5.62 4.5 7 4.5zM14 6h5v10.5c0 1.38-1.12 2.5-2.5 2.5S14 17.88 14 16.5s1.12-2.5 2.5-2.5c.17 0 .34.02.5.05V9h-3V6zm-4 8.05V13h2v3.5c0 1.38-1.12 2.5-2.5 2.5S7 17.88 7 16.5 8.12 14 9.5 14c.17 0 .34.02.5.05z"})),Hb=n(203),zb=Object(g.withFilters)("editor.MediaUpload")((function(){return null}));var Ub=Object(O.withSelect)((function(e){return{hasUploadPermissions:!!(0,e("core/block-editor").getSettings)().mediaUpload}}))((function(e){var t=e.hasUploadPermissions,n=e.fallback,r=void 0===n?null:n,o=e.children;return t?o:r})),Gb=Object(m.compose)([Object(O.withDispatch)((function(e){var t=e("core/notices");return{createNotice:t.createNotice,removeNotice:t.removeNotice}})),Object(g.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?p.noop:a,s=e.name,u=void 0===s?Object(I.__)("Replace"):s,d=e.createNotice,f=e.removeNotice,m=Object(b.useState)(t),v=Object(le.a)(m,2),h=v[0],j=v[1],k=Object(O.useSelect)((function(e){return e("core/block-editor").getSettings().mediaUpload}),[]),y=Object(b.createRef)(),_=Object(p.uniqueId)("block-editor/media-replace-flow/error-notice/"),E=function(e){var t=document.createElement("div");t.innerHTML=Object(b.renderToString)(e);var n=t.textContent||t.innerText||"";setTimeout((function(){d("error",n,{speak:!0,id:_,isDismissible:!0})}),1e3)},C=function(e){c(e),j(e.url),Object(Fe.speak)(Object(I.__)("The media file has been replaced")),f(_)},S=function(e){e.keyCode===it.DOWN&&(e.preventDefault(),e.stopPropagation(),e.target.click())};return Object(b.createElement)(g.Dropdown,{popoverProps:{isAlternate:!0},contentClassName:"block-editor-media-replace-flow__options",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(b.createElement)(g.ToolbarGroup,{className:"media-replace-flow"},Object(b.createElement)(g.ToolbarButton,{ref:y,"aria-expanded":t,onClick:n,onKeyDown:S},u))},renderContent:function(e){e.onClose;return Object(b.createElement)(b.Fragment,null,Object(b.createElement)(g.NavigableMenu,{className:"block-editor-media-replace-flow__media-upload-menu"},Object(b.createElement)(zb,{value:n,onSelect:function(e){return C(e)},allowedTypes:r,render:function(e){var t=e.open;return Object(b.createElement)(g.MenuItem,{icon:Vb,onClick:t},Object(I.__)("Open Media Library"))}}),Object(b.createElement)(Ub,null,Object(b.createElement)(g.FormFileUpload,{onChange:function(e){!function(e){var t=e.target.files;l(t);k({allowedTypes:r,filesList:t,onFileChange:function(e){var t=Object(le.a)(e,1)[0];C(t)},onError:E})}(e)},accept:o,render:function(e){var t=e.openFileDialog;return Object(b.createElement)(g.MenuItem,{icon:Hb.a,onClick:function(){t()}},Object(I.__)("Upload"))}}))),i&&Object(b.createElement)("form",{className:"block-editor-media-flow__url-input",onKeyDown:function(e){e.stopPropagation()},onKeyPress:function(e){e.stopPropagation()}},Object(b.createElement)("span",{className:"block-editor-media-replace-flow__image-url-label"},Object(I.__)("Current media URL:")),Object(b.createElement)(Fb,{value:{url:h},settings:[],showSuggestions:!1,onChange:function(e){var t=e.url;j(t),i(t),y.current.focus()}})))}})})),Kb=n(300);function Wb(e){var t=e.url,n=e.urlLabel,r=e.className,o=f()(r,"block-editor-url-popover__link-viewer-url");return t?Object(b.createElement)(g.ExternalLink,{className:o,href:t},n||Object(hl.filterURLForDisplay)(Object(hl.safeDecodeURI)(t))):Object(b.createElement)("span",{className:o})}function qb(){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}}var $b=function(e){Object(qt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Wt.a)(t);if(qb()){var r=Object(Wt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Kt.a)(this,e)});function r(){var e;return Object(zt.a)(this,r),(e=n.apply(this,arguments)).toggleSettingsVisibility=e.toggleSettingsVisibility.bind(Object(Gt.a)(e)),e.state={isSettingsExpanded:!1},e}return Object(Ut.a)(r,[{key:"toggleSettingsVisibility",value:function(){this.setState({isSettingsExpanded:!this.state.isSettingsExpanded})}},{key:"render",value:function(){var e=this.props,t=e.additionalControls,n=e.children,r=e.renderSettings,o=e.position,c=void 0===o?"bottom center":o,i=e.focusOnMount,a=void 0===i?"firstElement":i,l=Object(ke.a)(e,["additionalControls","children","renderSettings","position","focusOnMount"]),u=this.state.isSettingsExpanded,d=!!r&&u;return Object(b.createElement)(g.Popover,Object(s.a)({className:"block-editor-url-popover",focusOnMount:a,position:c},l),Object(b.createElement)("div",{className:"block-editor-url-popover__input-container"},Object(b.createElement)("div",{className:"block-editor-url-popover__row"},n,!!r&&Object(b.createElement)(g.Button,{className:"block-editor-url-popover__settings-toggle",icon:Ir.a,label:Object(I.__)("Link settings"),onClick:this.toggleSettingsVisibility,"aria-expanded":u})),d&&Object(b.createElement)("div",{className:"block-editor-url-popover__row block-editor-url-popover__settings"},r())),t&&!d&&Object(b.createElement)("div",{className:"block-editor-url-popover__additional-controls"},t))}}]),r}(b.Component);$b.LinkEditor=function(e){var t=e.autocompleteRef,n=e.className,r=e.onChangeInputValue,o=e.value,c=Object(ke.a)(e,["autocompleteRef","className","onChangeInputValue","value"]);return Object(b.createElement)("form",Object(s.a)({className:f()("block-editor-url-popover__link-editor",n)},c),Object(b.createElement)(Bb,{value:o,onChange:r,autocompleteRef:t}),Object(b.createElement)(g.Button,{icon:_b.a,label:Object(I.__)("Apply"),type:"submit"}))},$b.LinkViewer=function(e){var t=e.className,n=e.linkClassName,r=e.onEditLinkClick,o=e.url,c=e.urlLabel,i=Object(ke.a)(e,["className","linkClassName","onEditLinkClick","url","urlLabel"]);return Object(b.createElement)("div",Object(s.a)({className:f()("block-editor-url-popover__link-viewer",t)},i),Object(b.createElement)(Wb,{url:o,urlLabel:c,className:n}),r&&Object(b.createElement)(g.Button,{icon:Kb.a,label:Object(I.__)("Edit"),onClick:r}))};var Yb=$b;function Xb(){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}}var Qb=function(e){var t=e.src,n=e.onChange,r=e.onSubmit,o=e.onClose;return Object(b.createElement)(Yb,{onClose:o},Object(b.createElement)("form",{className:"block-editor-media-placeholder__url-input-form",onSubmit:r},Object(b.createElement)("input",{className:"block-editor-media-placeholder__url-input-field",type:"url","aria-label":Object(I.__)("URL"),placeholder:Object(I.__)("Paste or type URL"),onChange:n,value:t}),Object(b.createElement)(g.Button,{className:"block-editor-media-placeholder__url-input-submit-button",icon:_b.a,label:Object(I.__)("Apply"),type:"submit"})))},Zb=function(e){Object(qt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Wt.a)(t);if(Xb()){var r=Object(Wt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Kt.a)(this,e)});function r(){var e;return Object(zt.a)(this,r),(e=n.apply(this,arguments)).state={src:"",isURLInputVisible:!1},e.onChangeSrc=e.onChangeSrc.bind(Object(Gt.a)(e)),e.onSubmitSrc=e.onSubmitSrc.bind(Object(Gt.a)(e)),e.onUpload=e.onUpload.bind(Object(Gt.a)(e)),e.onFilesUpload=e.onFilesUpload.bind(Object(Gt.a)(e)),e.openURLInput=e.openURLInput.bind(Object(Gt.a)(e)),e.closeURLInput=e.closeURLInput.bind(Object(Gt.a)(e)),e}return Object(Ut.a)(r,[{key:"onlyAllowsImages",value:function(){var e=this.props.allowedTypes;return!!e&&Object(p.every)(e,(function(e){return"image"===e||Object(p.startsWith)(e,"image/")}))}},{key:"componentDidMount",value:function(){this.setState({src:Object(p.get)(this.props.value,["src"],"")})}},{key:"componentDidUpdate",value:function(e){Object(p.get)(e.value,["src"],"")!==Object(p.get)(this.props.value,["src"],"")&&this.setState({src:Object(p.get)(this.props.value,["src"],"")})}},{key:"onChangeSrc",value:function(e){this.setState({src:e.target.value})}},{key:"onSubmitSrc",value:function(e){e.preventDefault(),this.state.src&&this.props.onSelectURL&&(this.props.onSelectURL(this.state.src),this.closeURLInput())}},{key:"onUpload",value:function(e){this.onFilesUpload(e.target.files)}},{key:"onFilesUpload",value:function(e){var t,n=this,r=this.props,o=r.addToGallery,c=r.allowedTypes,i=r.mediaUpload,a=r.multiple,l=r.onError,s=r.onSelect,u=r.onFilesPreUpload;if((void 0===u?p.noop:u)(e),a)if(o){var b=[];t=function(e){var t=(n.props.value||[]).filter((function(e){return e.id?!b.some((function(t){var n=t.id;return Number(n)===Number(e.id)})):!b.some((function(t){var n=t.urlSlug;return e.url.includes(n)}))}));s(t.concat(e)),b=e.map((function(e){var t=e.url.lastIndexOf("."),n=e.url.slice(0,t);return{id:e.id,urlSlug:n}}))}}else t=s;else t=function(e){var t=Object(le.a)(e,1)[0];return s(t)};i({allowedTypes:c,filesList:e,onFileChange:t,onError:l})}},{key:"openURLInput",value:function(){this.setState({isURLInputVisible:!0})}},{key:"closeURLInput",value:function(){this.setState({isURLInputVisible:!1})}},{key:"renderPlaceholder",value:function(e,t){var n=this.props,r=n.allowedTypes,o=void 0===r?[]:r,c=n.className,i=n.icon,a=n.isAppender,l=n.labels,s=void 0===l?{}:l,u=n.onDoubleClick,d=n.mediaPreview,p=n.notices,m=n.onSelectURL,v=n.mediaUpload,O=n.children,h=s.instructions,j=s.title;if(v||m||(h=Object(I.__)("To edit this block, you need permission to upload media.")),void 0===h||void 0===j){var k=1===o.length,y=k&&"audio"===o[0],_=k&&"image"===o[0],E=k&&"video"===o[0];void 0===h&&v&&(h=Object(I.__)("Upload a media file or pick one from your media library."),y?h=Object(I.__)("Upload an audio file, pick one from your media library, or add one with a URL."):_?h=Object(I.__)("Upload an image file, pick one from your media library, or add one with a URL."):E&&(h=Object(I.__)("Upload a video file, pick one from your media library, or add one with a URL."))),void 0===j&&(j=Object(I.__)("Media"),y?j=Object(I.__)("Audio"):_?j=Object(I.__)("Image"):E&&(j=Object(I.__)("Video")))}var C=f()("block-editor-media-placeholder",c,{"is-appender":a});return Object(b.createElement)(g.Placeholder,{icon:i,label:j,instructions:h,className:C,notices:p,onClick:t,onDoubleClick:u,preview:d},e,O)}},{key:"renderDropZone",value:function(){var e=this.props,t=e.disableDropZone,n=e.onHTMLDrop,r=void 0===n?p.noop:n;return t?null:Object(b.createElement)(g.DropZone,{onFilesDrop:this.onFilesUpload,onHTMLDrop:r})}},{key:"renderCancelLink",value:function(){var e=this.props.onCancel;return e&&Object(b.createElement)(g.Button,{className:"block-editor-media-placeholder__cancel-button",title:Object(I.__)("Cancel"),isLink:!0,onClick:e},Object(I.__)("Cancel"))}},{key:"renderUrlSelectionUI",value:function(){if(!this.props.onSelectURL)return null;var e=this.state,t=e.isURLInputVisible,n=e.src;return Object(b.createElement)("div",{className:"block-editor-media-placeholder__url-input-container"},Object(b.createElement)(g.Button,{className:"block-editor-media-placeholder__button",onClick:this.openURLInput,isPressed:t,isTertiary:!0},Object(I.__)("Insert from URL")),t&&Object(b.createElement)(Qb,{src:n,onChange:this.onChangeSrc,onSubmit:this.onSubmitSrc,onClose:this.closeURLInput}))}},{key:"renderMediaUploadChecked",value:function(){var e=this,t=this.props,n=t.accept,r=t.addToGallery,o=t.allowedTypes,c=void 0===o?[]:o,i=t.isAppender,a=t.mediaUpload,l=t.multiple,s=void 0!==l&&l,u=t.onSelect,d=t.value,m=void 0===d?{}:d,v=Object(b.createElement)(zb,{addToGallery:r,gallery:s&&this.onlyAllowsImages(),multiple:s,onSelect:u,allowedTypes:c,value:Object(p.isArray)(m)?m.map((function(e){return e.id})):m.id,render:function(e){var t=e.open;return Object(b.createElement)(g.Button,{isTertiary:!0,onClick:function(e){e.stopPropagation(),t()}},Object(I.__)("Media Library"))}});if(a&&i)return Object(b.createElement)(b.Fragment,null,this.renderDropZone(),Object(b.createElement)(g.FormFileUpload,{onChange:this.onUpload,accept:n,multiple:s,render:function(t){var n=t.openFileDialog,r=Object(b.createElement)(b.Fragment,null,Object(b.createElement)(g.Button,{isPrimary:!0,className:f()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button")},Object(I.__)("Upload")),v,e.renderUrlSelectionUI(),e.renderCancelLink());return e.renderPlaceholder(r,n)}}));if(a){var O=Object(b.createElement)(b.Fragment,null,this.renderDropZone(),Object(b.createElement)(g.FormFileUpload,{isPrimary:!0,className:f()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),onChange:this.onUpload,accept:n,multiple:s},Object(I.__)("Upload")),v,this.renderUrlSelectionUI(),this.renderCancelLink());return this.renderPlaceholder(O)}return this.renderPlaceholder(v)}},{key:"render",value:function(){var e=this.props,t=e.disableMediaButtons,n=e.dropZoneUIOnly;return n||t?(n&&cr()("wp.blockEditor.MediaPlaceholder dropZoneUIOnly prop",{alternative:"disableMediaButtons"}),Object(b.createElement)(Ub,null,this.renderDropZone())):Object(b.createElement)(Ub,{fallback:this.renderPlaceholder(this.renderUrlSelectionUI())},this.renderMediaUploadChecked())}}]),r}(b.Component),Jb=Object(O.withSelect)((function(e){return{mediaUpload:(0,e("core/block-editor").getSettings)().mediaUpload}})),ed=Object(m.compose)(Jb,Object(g.withFilters)("editor.MediaPlaceholder"))(Zb),td=Object(b.forwardRef)((function(e,t){return Object(b.createElement)(Hu,Object(s.a)({ref:t},e,{__unstableDisableFormats:!0,preserveWhiteSpace:!0}))}));td.Content=function(e){var t=e.value,n=void 0===t?"":t,r=e.tagName,o=void 0===r?"div":r,c=Object(ke.a)(e,["value","tagName"]);return Object(b.createElement)(o,c,n)};var nd=td,rd=Object(b.forwardRef)((function(e,t){var n=e.__experimentalVersion,r=Object(ke.a)(e,["__experimentalVersion"]);if(2===n)return Object(b.createElement)(nd,Object(s.a)({ref:t},r));var o=r.className,c=r.onChange,i=Object(ke.a)(r,["className","onChange"]);return Object(b.createElement)(Zr.a,Object(s.a)({ref:t,className:f()("block-editor-plain-text",o),onChange:function(e){return c(e.target.value)}},i))}));function od(e){var t=e.property,n=e.viewport,r=e.desc,o=Object(m.useInstanceId)(od),c=r||Object(I.sprintf)(Object(I._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(b.createElement)(b.Fragment,null,Object(b.createElement)("span",{"aria-describedby":"rbc-desc-".concat(o)},n.label),Object(b.createElement)(g.VisuallyHidden,{as:"span",id:"rbc-desc-".concat(o)},c))}var cd=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,u=void 0===s?{id:"all",label:Object(I.__)("All")}:s,d=e.viewports,p=void 0===d?[{id:"small",label:Object(I.__)("Small screens")},{id:"medium",label:Object(I.__)("Medium screens")},{id:"large",label:Object(I.__)("Large screens")}]:d;if(!t||!n||!c)return null;var m=r||Object(I.sprintf)(Object(I.__)("Use the same %s on all screensizes."),n),v=Object(I.__)("Toggle between using the same value for all screen sizes or using a unique value per screen size."),O=c(Object(b.createElement)(od,{property:n,viewport:u}),u);return Object(b.createElement)("fieldset",{className:"block-editor-responsive-block-control"},Object(b.createElement)("legend",{className:"block-editor-responsive-block-control__title"},t),Object(b.createElement)("div",{className:"block-editor-responsive-block-control__inner"},Object(b.createElement)(g.ToggleControl,{className:"block-editor-responsive-block-control__toggle",label:m,checked:!l,onChange:o,help:v}),Object(b.createElement)("div",{className:f()("block-editor-responsive-block-control__group",{"is-responsive":l})},!l&&O,l&&(i?i(p):p.map((function(e){return Object(b.createElement)(b.Fragment,{key:e.id},c(Object(b.createElement)(od,{property:n,viewport:e}),e))}))))))};function id(e){var t=e.character,n=e.type,r=e.onUse;return Object(m.useKeyboardShortcut)(it.rawShortcut[n](t),(function(){return r(),!1}),{bindGlobal:!0}),null}function ad(e){var t,n=e.name,r=e.shortcutType,o=e.shortcutCharacter,c=Object(ke.a)(e,["name","shortcutType","shortcutCharacter"]),i="RichText.ToolbarControls";return n&&(i+=".".concat(n)),r&&o&&(t=it.displayShortcut[r](o)),Object(b.createElement)(g.Fill,{name:i},Object(b.createElement)(g.ToolbarButton,Object(s.a)({},c,{shortcut:t})))}function ld(){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}}var sd=function(e){Object(qt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Wt.a)(t);if(ld()){var r=Object(Wt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Kt.a)(this,e)});function r(){var e;return Object(zt.a)(this,r),(e=n.apply(this,arguments)).onInput=e.onInput.bind(Object(Gt.a)(e)),e}return Object(Ut.a)(r,[{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}}]),r}(b.Component),ud=n(301),bd=Object(b.createElement)(g.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(b.createElement)(g.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 dd=Object(b.forwardRef)((function(e,t){var n=Object(O.useSelect)((function(e){return e("core/block-editor").isNavigationMode()}),[]),r=Object(O.useDispatch)("core/block-editor").setNavigationMode,o=function(e){r("edit"!==e)};return Object(b.createElement)(g.Dropdown,{renderToggle:function(r){var o=r.isOpen,c=r.onToggle;return Object(b.createElement)(g.Button,Object(s.a)({},e,{ref:t,icon:n?bd:ud.a,"aria-expanded":o,onClick:c,label:Object(I.__)("Tools")}))},position:"bottom right",renderContent:function(){return Object(b.createElement)(b.Fragment,null,Object(b.createElement)(g.NavigableMenu,{role:"menu","aria-label":Object(I.__)("Tools")},Object(b.createElement)(g.MenuItemsChoice,{value:n?"select":"edit",onSelect:o,choices:[{value:"edit",label:Object(b.createElement)(b.Fragment,null,Object(b.createElement)(ao.a,{icon:ud.a}),Object(I.__)("Edit"))},{value:"select",label:Object(b.createElement)(b.Fragment,null,bd,Object(I.__)("Select"))}]})),Object(b.createElement)("div",{className:"block-editor-tool-selector__help"},Object(I.__)("Tools offer different interactions for block selection & editing. To select, press Escape, to go back to editing, press Enter.")))}})})),fd=n(179),pd=Object(b.createElement)(B.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(b.createElement)(B.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 md(){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}}var vd=function(e){Object(qt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Wt.a)(t);if(md()){var r=Object(Wt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Kt.a)(this,e)});function r(){var e;return Object(zt.a)(this,r),(e=n.apply(this,arguments)).toggle=e.toggle.bind(Object(Gt.a)(e)),e.submitLink=e.submitLink.bind(Object(Gt.a)(e)),e.state={expanded:!1},e}return Object(Ut.a)(r,[{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(I.__)("Edit link"):Object(I.__)("Insert link");return Object(b.createElement)("div",{className:"block-editor-url-input__button"},Object(b.createElement)(g.Button,{icon:fd.a,label:o,onClick:this.toggle,className:"components-toolbar__control",isPressed:!!t}),r&&Object(b.createElement)("form",{className:"block-editor-url-input__button-modal",onSubmit:this.submitLink},Object(b.createElement)("div",{className:"block-editor-url-input__button-modal-line"},Object(b.createElement)(g.Button,{className:"block-editor-url-input__back",icon:pd,label:Object(I.__)("Close"),onClick:this.toggle}),Object(b.createElement)(Bb,{value:t||"",onChange:n}),Object(b.createElement)(g.Button,{icon:_b.a,label:Object(I.__)("Submit"),type:"submit"}))))}}]),r}(b.Component),Od=n(153),gd=["noreferrer","noopener"],hd=Object(b.createElement)(g.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(b.createElement)(g.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(b.createElement)(g.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(b.createElement)(g.Path,{d:"m14.14 11.86l-3 3.87-2.14-2.59-3 3.86h12l-3.86-5.14z"})),jd=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,u=e.rel,d=Object(b.useState)(!1),f=Object(le.a)(d,2),m=f[0],v=f[1],O=Object(b.useCallback)((function(){v(!0)})),h=Object(b.useState)(!1),j=Object(le.a)(h,2),k=j[0],y=j[1],_=Object(b.useState)(null),E=Object(le.a)(_,2),C=E[0],S=E[1],w=Object(b.useRef)(null),B=function(e){e.stopPropagation()},x=function(e){[it.LEFT,it.DOWN,it.RIGHT,it.UP,it.BACKSPACE,it.ENTER].indexOf(e.keyCode)>-1&&e.stopPropagation()},P=Object(b.useCallback)((function(){"media"!==t&&"attachment"!==t||S(""),y(!0)})),T=Object(b.useCallback)((function(){y(!1)})),N=Object(b.useCallback)((function(){S(null),T(),v(!1)})),R=function(e){var t=e;return void 0===e||Object(p.isEmpty)(t)||Object(p.isEmpty)(t)||(Object(p.each)(gd,(function(e){var n=new RegExp("\\b"+e+"\\b","gi");t=t.replace(n,"")})),t!==e&&(t=t.trim()),Object(p.isEmpty)(t)&&(t=void 0)),t},D=Object(b.useCallback)((function(){return function(e){var t=w.current;t&&t.contains(e.target)||(v(!1),S(null),T())}})),A=Object(b.useCallback)((function(){return function(e){C&&n({href:C}),T(),S(null),e.preventDefault()}})),M=Object(b.useCallback)((function(){n({linkDestination:"none",href:""})})),L=function(){return[{linkDestination:"media",title:Object(I.__)("Media File"),url:"image"===c?i:void 0,icon:hd},{linkDestination:"attachment",title:Object(I.__)("Attachment Page"),url:"image"===c?a:void 0,icon:Object(b.createElement)(g.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(b.createElement)(g.Path,{d:"M0 0h24v24H0V0z",fill:"none"}),Object(b.createElement)(g.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"}))}]},F=Object(b.createElement)(b.Fragment,null,Object(b.createElement)(g.ToggleControl,{label:Object(I.__)("Open in new tab"),onChange:function(e){var t=function(e){var t=e?"_blank":void 0;return{linkTarget:t,rel:t||u?R(u):void 0}}(e);n(t)},checked:"_blank"===l}),Object(b.createElement)(g.TextControl,{label:Object(I.__)("Link Rel"),value:R(u)||"",onChange:function(e){n({rel:e})},onKeyPress:B,onKeyDown:x}),Object(b.createElement)(g.TextControl,{label:Object(I.__)("Link CSS Class"),value:s||"",onKeyPress:B,onKeyDown:x,onChange:function(e){n({linkClass:e})}})),V=null!==C?C:r,H=(Object(p.find)(L(),["linkDestination",t])||{}).title;return Object(b.createElement)(b.Fragment,null,Object(b.createElement)(g.ToolbarButton,{icon:fd.a,className:"components-toolbar__control",label:r?Object(I.__)("Edit link"):Object(I.__)("Insert link"),"aria-expanded":m,onClick:O}),m&&Object(b.createElement)(Yb,{onFocusOutside:D(),onClose:N,renderSettings:function(){return F},additionalControls:!V&&Object(b.createElement)(g.NavigableMenu,null,Object(p.map)(L(),(function(e){return Object(b.createElement)(g.MenuItem,{key:e.linkDestination,icon:e.icon,onClick:function(){var t,r,o;S(null),t=e.url,o=L(),r=t?(Object(p.find)(o,(function(e){return e.url===t}))||{linkDestination:"custom"}).linkDestination:"none",n({linkDestination:r,href:t}),T()}},e.title)})))},(!r||k)&&Object(b.createElement)(Yb.LinkEditor,{className:"block-editor-format-toolbar__link-container-content",value:V,onChangeInputValue:S,onKeyDown:x,onKeyPress:B,onSubmit:A(),autocompleteRef:w}),r&&!k&&Object(b.createElement)(b.Fragment,null,Object(b.createElement)(Yb.LinkViewer,{className:"block-editor-format-toolbar__link-container-content",onKeyPress:B,url:r,onEditLinkClick:P,urlLabel:H}),Object(b.createElement)(g.Button,{icon:Od.a,label:Object(I.__)("Remove link"),onClick:M}))))},kd=n(154);function yd(e){var t=e.children,n=e.className,r=e.isEnabled,o=void 0===r||r,c=e.deviceType,i=e.setDeviceType;return Object(b.createElement)(g.Dropdown,{className:"block-editor-post-preview__dropdown",contentClassName:f()(n,"block-editor-post-preview__dropdown-content"),popoverProps:{role:"menu"},position:"bottom left",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(b.createElement)(g.Button,{isTertiary:!0,onClick:n,className:"block-editor-post-preview__button-toggle","aria-expanded":t,disabled:!o},Object(I.__)("Preview"))},renderContent:function(){return Object(b.createElement)(b.Fragment,null,Object(b.createElement)(g.MenuGroup,null,Object(b.createElement)(g.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:function(){return i("Desktop")},icon:"Desktop"===c&&kd.a},Object(I.__)("Desktop")),Object(b.createElement)(g.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:function(){return i("Tablet")},icon:"Tablet"===c&&kd.a},Object(I.__)("Tablet")),Object(b.createElement)(g.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:function(){return i("Mobile")},icon:"Mobile"===c&&kd.a},Object(I.__)("Mobile"))),t)}})}var _d=n(264),Ed=/\((min|max)-width:[^\(]*?\)/g;function Cd(e){return!!e.media&&!!e.media.mediaText.match(Ed)}function Sd(e,t,n){e.deleteRule(n),e.insertRule(t,n)}function wd(e,t){return e.replace(Ed,(function(e){return Object(_d.match)(e,{type:"screen",width:t})?"(min-width:0px)":"(min-width:999999px)"}))}function Id(e,t){Object(b.useEffect)((function(){if(t){var n="undefined"==typeof window?[]:Object(p.filter)(Object(p.get)(window,["document","styleSheets"],[]),(function(e){return!!e.href&&Object(hl.getProtocol)(e.href)===window.location.protocol&&Object(hl.getAuthority)(e.href)===window.location.host})),r=[];return n.forEach((function(n,o){for(var c=!1,i=0;i0,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;if(n>1)return Object(b.createElement)("div",{className:"block-editor-block-inspector"},Object(b.createElement)(Td,null),Object(b.createElement)(We.Slot,{bubblesVirtually:!0}));var s=i===Object(c.getUnregisteredTypeHandlerName)();return t&&o&&!s?Object(b.createElement)("div",{className:"block-editor-block-inspector"},Object(b.createElement)(uo,{blockType:t}),r&&Object(b.createElement)("div",null,Object(b.createElement)(g.PanelBody,{title:Object(I.__)("Styles")},Object(b.createElement)(ss,{clientId:o}),Object(c.hasBlockSupport)(t.name,"defaultStylePicker",!0)&&Object(b.createElement)(Nd,{blockName:t.name}))),Object(b.createElement)(We.Slot,{bubblesVirtually:!0}),Object(b.createElement)("div",null,Object(b.createElement)(Rd,{slotName:ee.slotName})),Object(b.createElement)(xd,{key:"back"})):l?Object(b.createElement)("span",{className:"block-editor-block-inspector__no-blocks"},Object(I.__)("No block selected.")):null}));function Ad(){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}}var Md=function(e){Object(qt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Wt.a)(t);if(Ad()){var r=Object(Wt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Kt.a)(this,e)});function r(){var e;return Object(zt.a)(this,r),(e=n.apply(this,arguments)).bindContainer=e.bindContainer.bind(Object(Gt.a)(e)),e.clearSelectionIfFocusTarget=e.clearSelectionIfFocusTarget.bind(Object(Gt.a)(e)),e}return Object(Ut.a)(r,[{key:"bindContainer",value:function(e){this.container=e}},{key:"clearSelectionIfFocusTarget",value:function(e){var t=this.props,n=t.hasSelectedBlock,r=t.hasMultiSelection,o=t.clearSelectedBlock,c=n||r;e.target===this.container&&c&&o()}},{key:"render",value:function(){return Object(b.createElement)("div",Object(s.a)({tabIndex:-1,onFocus:this.clearSelectionIfFocusTarget,ref:this.bindContainer},Object(p.omit)(this.props,["clearSelectedBlock","hasSelectedBlock","hasMultiSelection"])))}}]),r}(b.Component),Ld=Object(m.compose)([Object(O.withSelect)((function(e){var t=e("core/block-editor"),n=t.hasSelectedBlock,r=t.hasMultiSelection;return{hasSelectedBlock:n(),hasMultiSelection:r()}})),Object(O.withDispatch)((function(e){return{clearSelectedBlock:e("core/block-editor").clearSelectedBlock}}))])(Md),Fd=n(265),Vd=n.n(Fd),Hd=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,zd=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 d(/^{\s*/)}function u(){return d(/^}/)}function b(){var t,n=[];for(f(),p(n);e.length&&"}"!==e.charAt(0)&&(t=C()||S());)!1!==t&&(n.push(t),p(n));return n}function d(t){var n=t.exec(e);if(n){var r=n[0];return o(r),e=e.slice(r.length),n}}function f(){d(/^\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=d(/^([^{]+)/);if(e)return Ud(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=d(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(t){if(t=Ud(t[0]),!d(/^:\s*/))return l("property missing ':'");var n=d(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),r=e({type:"declaration",property:t.replace(Hd,""),value:n?Ud(n[0]).replace(Hd,""):""});return d(/^[;\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=d(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),d(/^,\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=d(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=d(/^@([-\w]+)?keyframes\s*/);if(t){var n=t[1];if(!(t=d(/^([-\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=d(/^@media *([^{]+)/);if(t){var n=Ud(t[1]);if(!s())return l("@media missing '{'");var r=p().concat(b());return u()?e({type:"media",media:n,rules:r}):l("@media missing '}'")}}()||function(){var e=c(),t=d(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(t)return e({type:"custom-media",name:Ud(t[1]),media:Ud(t[2])})}()||function(){var e=c(),t=d(/^@supports *([^{]+)/);if(t){var n=Ud(t[1]);if(!s())return l("@supports missing '{'");var r=p().concat(b());return u()?e({type:"supports",supports:n,rules:r}):l("@supports missing '}'")}}()||k()||y()||_()||function(){var e=c(),t=d(/^@([-\w]+)?document *([^{]+)/);if(t){var n=Ud(t[1]),r=Ud(t[2]);if(!s())return l("@document missing '{'");var o=p().concat(b());return u()?e({type:"document",document:r,vendor:n,rules:o}):l("@document missing '}'")}}()||function(){var e=c();if(d(/^@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(d(/^@host\s*/)){if(!s())return l("@host missing '{'");var t=p().concat(b());return u()?e({type:"host",rules:t}):l("@host missing '}'")}}()||function(){var e=c();if(d(/^@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 S(){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(No.a)(i)&&e(i,o)}r&&Object.defineProperty(t,"parent",{configurable:!0,writable:!0,enumerable:!1,value:n||null});return t}((j=b(),{type:"stylesheet",stylesheet:{source:t.source,rules:j,parsingErrors:a}}))};function Ud(e){return e?e.replace(/^\s+|\s+$/g,""):""}var Gd=n(164),Kd=n.n(Gd),Wd=qd;function qd(e){this.options=e||{}}qd.prototype.emit=function(e){return e},qd.prototype.visit=function(e){return this[e.type](e)},qd.prototype.mapVisit=function(e,t){var n="";t=t||"";for(var r=0,o=e.length;r1&&void 0!==arguments[1]?arguments[1]:[];return function(n){return"rule"===n.type?cf({},n,{selectors:n.selectors.map((function(n){return t.includes(n.trim())?n:n.match(af)?n.replace(/^(body|html|:root)/,e):e+" "+n}))}):n}},sf=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object(p.map)(e,(function(e){var n=e.css,r=e.baseURL,o=[];return t&&o.push(lf(t)),r&&o.push(rf(r)),o.length?Zd(n,Object(m.compose)(o)):n}))};var uf=function(e){var t=e.styles;return Object(b.useEffect)((function(){var e=sf(t,".editor-styles-wrapper"),n=Object(p.map)(Object(p.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 bf=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.onSelect,s=void 0===l?p.noop:l,u=Object(O.useSelect)((function(e){var r=e("core/block-editor").getBlockRootClientId;return t||r(n)||void 0}),[n,t]);return Object(b.createElement)(Bl,{onSelect:s,rootClientId:u,clientId:n,isAppender:r,showInserterHelpPanel:o,showMostUsedBlocks:i,__experimentalSelectBlockOnInsert:a})};function df(){var e=Object(O.useSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientIds,r=t.getBlockOrder,o=t.getBlockRootClientId,c=n(),i=Object(le.a)(c,1)[0];return{clientIds:c,rootBlocksClientIds:r(),rootClientId:o(i)}}),[]),t=e.clientIds,n=e.rootBlocksClientIds,r=e.rootClientId,o=Object(O.useDispatch)("core/block-editor"),c=o.duplicateBlocks,i=o.removeBlocks,a=o.insertAfterBlock,s=o.insertBeforeBlock,u=o.multiSelect,d=o.clearSelectedBlock,f=o.moveBlocksUp,m=o.moveBlocksDown;return Object(l.useShortcut)("core/block-editor/move-up",Object(b.useCallback)((function(e){e.preventDefault(),f(t,r)}),[t,f]),{bindGlobal:!0,isDisabled:0===t.length}),Object(l.useShortcut)("core/block-editor/move-down",Object(b.useCallback)((function(e){e.preventDefault(),m(t,r)}),[t,m]),{bindGlobal:!0,isDisabled:0===t.length}),Object(l.useShortcut)("core/block-editor/duplicate",Object(b.useCallback)((function(e){e.preventDefault(),c(t)}),[t,c]),{bindGlobal:!0,isDisabled:0===t.length}),Object(l.useShortcut)("core/block-editor/remove",Object(b.useCallback)((function(e){e.preventDefault(),i(t)}),[t,i]),{bindGlobal:!0,isDisabled:0===t.length}),Object(l.useShortcut)("core/block-editor/insert-after",Object(b.useCallback)((function(e){e.preventDefault(),a(Object(p.last)(t))}),[t,a]),{bindGlobal:!0,isDisabled:0===t.length}),Object(l.useShortcut)("core/block-editor/insert-before",Object(b.useCallback)((function(e){e.preventDefault(),s(Object(p.first)(t))}),[t,s]),{bindGlobal:!0,isDisabled:0===t.length}),Object(l.useShortcut)("core/block-editor/delete-multi-selection",Object(b.useCallback)((function(e){e.preventDefault(),i(t)}),[t,i]),{isDisabled:t.length<2}),Object(l.useShortcut)("core/block-editor/select-all",Object(b.useCallback)((function(e){e.preventDefault(),u(Object(p.first)(n),Object(p.last)(n))}),[n,u])),Object(l.useShortcut)("core/block-editor/unselect",Object(b.useCallback)((function(e){e.preventDefault(),d(),window.getSelection().removeAllRanges()}),[t,d]),{isDisabled:t.length<2}),null}df.Register=function(){var e=Object(O.useDispatch)("core/keyboard-shortcuts").registerShortcut;return Object(b.useEffect)((function(){e({name:"core/block-editor/duplicate",category:"block",description:Object(I.__)("Duplicate the selected block(s)."),keyCombination:{modifier:"primaryShift",character:"d"}}),e({name:"core/block-editor/remove",category:"block",description:Object(I.__)("Remove the selected block(s)."),keyCombination:{modifier:"access",character:"z"}}),e({name:"core/block-editor/insert-before",category:"block",description:Object(I.__)("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(I.__)("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(I.__)("Remove multiple selected blocks."),keyCombination:{character:"del"},aliases:[{character:"backspace"}]}),e({name:"core/block-editor/select-all",category:"selection",description:Object(I.__)("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(I.__)("Clear selection."),keyCombination:{character:"escape"}}),e({name:"core/block-editor/focus-toolbar",category:"global",description:Object(I.__)("Navigate to the nearest toolbar."),keyCombination:{modifier:"alt",character:"F10"}}),e({name:"core/block-editor/move-up",category:"block",description:Object(I.__)("Move the selected block(s) up."),keyCombination:{modifier:"secondary",character:"t"}}),e({name:"core/block-editor/move-down",category:"block",description:Object(I.__)("Move the selected block(s) down."),keyCombination:{modifier:"secondary",character:"y"}})}),[e]),null};var ff=df;function pf(){var e=Object(O.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(b.useEffect)((function(){if(n&&!r&&t){var e=qe(n);if(e){var o=Object(hr.getScrollContainer)(e);o&&Cb()(e,o,{onlyScrollIfNeeded:!0})}}}),[t,n,r]),null}var mf=[it.UP,it.RIGHT,it.DOWN,it.LEFT,it.ENTER,it.BACKSPACE];var vf=Object(m.withSafeTimeout)((function(e){var t=e.children,n=e.setTimeout,r=Object(b.useRef)(),o=Object(b.useRef)(),c=Object(O.useSelect)((function(e){return e("core/block-editor").isTyping()})),i=Object(O.useDispatch)("core/block-editor"),a=i.startTyping,l=i.stopTyping;function s(e){var t=e?"addEventListener":"removeEventListener";document[t]("selectionchange",d),document[t]("mousemove",u)}function u(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 d(){var e=window.getSelection();e.rangeCount>0&&e.getRangeAt(0).collapsed||l()}function f(e){var t=e.type,n=e.target;!c&&Object(hr.isTextField)(n)&&r.current.contains(n)&&("keydown"!==t||function(e){var t=e.keyCode;return!e.shiftKey&&mf.includes(t)}(e))&&a()}return Object(b.useEffect)((function(){return s(c),function(){return s(!1)}}),[c]),Object(b.createElement)("div",{ref:r,onFocus:function(e){var t=e.target;n((function(){c&&!Object(hr.isTextField)(t)&&l()}))},onKeyPress:f,onKeyDown:Object(p.over)([f,function(e){!c||e.keyCode!==it.ESCAPE&&e.keyCode!==it.TAB||l()}])},t)}));function Of(){return cr()("PreserveScrollInReorder component",{hint:"This behavior is now built-in the block list"}),null}function gf(){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}}var hf=-1!==window.navigator.userAgent.indexOf("Trident"),jf=new Set([it.UP,it.DOWN,it.LEFT,it.RIGHT]),kf=function(e){Object(qt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Wt.a)(t);if(gf()){var r=Object(Wt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Kt.a)(this,e)});function r(){var e;return Object(zt.a)(this,r),(e=n.apply(this,arguments)).ref=Object(b.createRef)(),e.onKeyDown=e.onKeyDown.bind(Object(Gt.a)(e)),e.addSelectionChangeListener=e.addSelectionChangeListener.bind(Object(Gt.a)(e)),e.computeCaretRectOnSelectionChange=e.computeCaretRectOnSelectionChange.bind(Object(Gt.a)(e)),e.maintainCaretPosition=e.maintainCaretPosition.bind(Object(Gt.a)(e)),e.computeCaretRect=e.computeCaretRect.bind(Object(Gt.a)(e)),e.onScrollResize=e.onScrollResize.bind(Object(Gt.a)(e)),e.isSelectionEligibleForScroll=e.isSelectionEligibleForScroll.bind(Object(Gt.a)(e)),e}return Object(Ut.a)(r,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.onScrollResize,!0),window.addEventListener("resize",this.onScrollResize,!0)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("scroll",this.onScrollResize,!0),window.removeEventListener("resize",this.onScrollResize,!0),document.removeEventListener("selectionchange",this.computeCaretRectOnSelectionChange),this.onScrollResize.rafId&&window.cancelAnimationFrame(this.onScrollResize.rafId),this.onKeyDown.rafId&&window.cancelAnimationFrame(this.onKeyDown.rafId)}},{key:"computeCaretRect",value:function(){this.isSelectionEligibleForScroll()&&(this.caretRect=Object(hr.computeCaretRect)())}},{key:"computeCaretRectOnSelectionChange",value:function(){document.removeEventListener("selectionchange",this.computeCaretRectOnSelectionChange),this.computeCaretRect()}},{key:"onScrollResize",value:function(){var e=this;this.onScrollResize.rafId||(this.onScrollResize.rafId=window.requestAnimationFrame((function(){e.computeCaretRect(),delete e.onScrollResize.rafId})))}},{key:"isSelectionEligibleForScroll",value:function(){return this.props.selectedBlockClientId&&this.ref.current.contains(document.activeElement)&&document.activeElement.isContentEditable}},{key:"isLastEditableNode",value:function(){var e=this.ref.current.querySelectorAll('[contenteditable="true"]');return e[e.length-1]===document.activeElement}},{key:"maintainCaretPosition",value:function(e){var t=e.keyCode;if(this.isSelectionEligibleForScroll()){var n=Object(hr.computeCaretRect)();if(n)if(this.caretRect)if(jf.has(t))this.caretRect=n;else{var r=n.top-this.caretRect.top;if(0!==r){var o=Object(hr.getScrollContainer)(this.ref.current);if(o){var c=o===document.body,i=c?window.scrollY:o.scrollTop,a=c?0:o.getBoundingClientRect().top,l=c?this.caretRect.top/window.innerHeight:(this.caretRect.top-a)/(window.innerHeight-a);if(0===i&&l<.75&&this.isLastEditableNode())this.caretRect=n;else{var s=c?window.innerHeight:o.clientHeight;this.caretRect.top+this.caretRect.height>a+s||this.caretRect.top-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&&b()},l=function(t){window.removeEventListener("resize",a,!1),e.removeEventListener("input",b,!1),e.removeEventListener("keyup",b,!1),e.removeEventListener("autosize:destroy",l,!1),e.removeEventListener("autosize:update",b,!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",b,!1),window.addEventListener("resize",a,!1),e.addEventListener("input",b,!1),e.addEventListener("autosize:update",b,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",o.set(e,{destroy:l,update:b}),"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),b()}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 b(){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(r0?!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=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 b(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(b){var d=n?c(b):b,f={},p=!0,m={node:d,node_:b,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;ee.length?n:e})),s.value=e.join(b)}else s.value=e.join(n.slice(a,a+s.count));a+=s.count,s.added||(l+=s.count)}}var d=t[i-1];return i>1&&"string"==typeof d.value&&(d.added||d.removed)&&e.equals("",d.value)&&(t[i-2].value+=d.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,b=l+s,d=[{newPos:-1,components:[]}],f=this.extractCommon(d[0],t,e,0);if(d[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,b=d[n-1],f=d[n+1],p=(f?f.newPos:0)-n;b&&(d[n-1]=void 0);var m=b&&b.newPos+1=l&&p+1>=s)return a(o(i,r.components,t,e,i.useLongestToken));d[n]=r}else d[n]=void 0}u++}if(r)!function e(){setTimeout((function(){if(u>b)return r();p()||e()}),0)}();else for(;u<=b;){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+11&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t=Array.isArray(e)?e:!0===e?U:[],!r||!0===e&&!n?p.without.apply(void 0,[t].concat(G)):t}var W=Object(b.createContext)({}),q=W.Provider,$=Object(m.createHigherOrderComponent)((function(e){return function(t){var n=Object(b.useContext)(W).isEmbedButton,r=t.name,o=n?[]:K(Object(c.getBlockSupport)(r,"align"),Object(c.hasBlockSupport)(r,"alignWide",!0));return[o.length>0&&t.isSelected&&Object(b.createElement)(w,{key:"align-controls"},Object(b.createElement)(V,{value:t.attributes.align,onChange:function(e){if(!e){var n=Object(c.getBlockType)(t.name);Object(p.get)(n,["attributes","align","default"])&&(e="")}t.setAttributes({align:e})},controls:o})),Object(b.createElement)(e,Object(s.a)({key:"edit"},t))]}}),"withToolbarControls"),Y=Object(m.createHigherOrderComponent)((function(e){return function(t){var n=t.name,r=t.attributes.align,o=Object(O.useSelect)((function(e){return!!e("core/block-editor").getSettings().alignWide}),[]);if(void 0===r)return Object(b.createElement)(e,t);var i=K(Object(c.getBlockSupport)(n,"align"),Object(c.hasBlockSupport)(n,"alignWide",!0),o),a=t.wrapperProps;return i.includes(r)&&(a=z({},a,{"data-align":r})),Object(b.createElement)(e,Object(s.a)({},t,{wrapperProps:a}))}}));Object(v.addFilter)("blocks.registerBlockType","core/align/addAttribute",(function(e){return Object(p.has)(e.attributes,["align","type"])||Object(c.hasBlockSupport)(e,"align")&&(e.attributes=z({},e.attributes,{align:{type:"string"}})),e})),Object(v.addFilter)("editor.BlockListBlock","core/editor/align/with-data-align",Y),Object(v.addFilter)("editor.BlockEdit","core/editor/align/with-toolbar-controls",$),Object(v.addFilter)("blocks.getSaveContent.extraProps","core/align/addAssignedAlign",(function(e,t,n){var r=n.align;return K(Object(c.getBlockSupport)(t,"align"),Object(c.hasBlockSupport)(t,"alignWide",!0)).includes(r)&&(e.className=f()("align".concat(r),e.className)),e}));var X=Object(g.createSlotFill)("InspectorAdvancedControls"),Q=X.Fill,Z=X.Slot;function J(e){var t=e.children;return k().isSelected?Object(b.createElement)(Q,null,t):null}J.slotName="InspectorAdvancedControls",J.Slot=Z;var ee=J;function te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var ne=/[\s#]/g;var re=Object(m.createHigherOrderComponent)((function(e){return function(t){return Object(c.hasBlockSupport)(t.name,"anchor")&&t.isSelected?Object(b.createElement)(b.Fragment,null,Object(b.createElement)(e,t),Object(b.createElement)(ee,null,Object(b.createElement)(g.TextControl,{className:"html-anchor-control",label:Object(I.__)("HTML anchor"),help:Object(b.createElement)(b.Fragment,null,Object(I.__)("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(b.createElement)(g.ExternalLink,{href:"https://wordpress.org/support/article/page-jumps/"},Object(I.__)("Learn more about anchors"))),value:t.attributes.anchor||"",onChange:function(e){e=e.replace(ne,"-"),t.setAttributes({anchor:e})},autoComplete:"off"}))):Object(b.createElement)(e,t)}}),"withInspectorControl");function oe(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}Object(v.addFilter)("blocks.registerBlockType","core/anchor/attribute",(function(e){return Object(p.has)(e.attributes,["anchor","type"])||Object(c.hasBlockSupport)(e,"anchor")&&(e.attributes=function(e){for(var t=1;t");var t=Object(c.parseWithAttributeSchema)(e,{type:"string",source:"attribute",selector:"[data-custom-class-name] > *",attribute:"class"});return t?t.trim().split(/\s+/):[]}Object(v.addFilter)("blocks.registerBlockType","core/custom-class-name/attribute",(function(e){return Object(c.hasBlockSupport)(e,"customClassName",!0)&&(e.attributes=function(e){for(var t=1;t0&&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=k(),i=c.clientId,a=Object(O.useSelect)((function(e){var t=e("core/block-editor"),r=t.getBlockAttributes,c=t.getSettings,a=r(i);return{gradient:a[n],customGradient:a[o],gradients:c().gradients}}),[i,n,o]),l=a.gradients,s=a.gradient,d=a.customGradient,f=Object(O.useDispatch)("core/block-editor"),p=f.updateBlockAttributes,m=Object(b.useCallback)((function(e){var t,r,c=ge(l,e);c?p(i,(r={},Object(u.a)(r,n,c),Object(u.a)(r,o,void 0),r)):p(i,(t={},Object(u.a)(t,n,void 0),Object(u.a)(t,o,e),t))}),[l,i,p]),v=me(s);return{gradientClass:v,gradientValue:s?ve(l,s):d,setGradient:m}}var je=function e(t){if(!Object(p.isObject)(t))return t;var n=Object(p.pickBy)(Object(p.mapValues)(t,e),p.identity);return Object(p.isEqual)(n,{})?void 0:n},ke=n(15);function ye(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 _e=Object(I.__)("(Color: %s)"),Ee=Object(I.__)("(Gradient: %s)"),Ce=["colors","disableCustomColors","gradients","disableCustomGradients"];function Se(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=fe(r,t=a),u=s&&s.name;n=Object(I.sprintf)(_e,u||t)}}else if("gradient"===i&&l){var d=Oe(o,t=l),f=d&&d.name;n=Object(I.sprintf)(Ee,f||t)}return Object(b.createElement)(b.Fragment,null,c,!!t&&Object(b.createElement)(g.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,l=e.onGradientChange,u=e.colorValue,d=e.gradientValue,m=a&&(!Object(p.isEmpty)(t)||!r),v=l&&(!Object(p.isEmpty)(n)||!o),O=Object(b.useState)(d?"gradient":!!m&&"color"),h=Object(le.a)(O,2),j=h[0],k=h[1];return m||v?Object(b.createElement)(g.BaseControl,{className:f()("block-editor-color-gradient-control",c)},Object(b.createElement)("fieldset",null,Object(b.createElement)("legend",null,Object(b.createElement)("div",{className:"block-editor-color-gradient-control__color-indicator"},Object(b.createElement)(g.BaseControl.VisualLabel,null,Object(b.createElement)(Se,{currentTab:j,label:i,colorValue:u,gradientValue:d})))),m&&v&&Object(b.createElement)(g.ButtonGroup,{className:"block-editor-color-gradient-control__button-tabs"},Object(b.createElement)(g.Button,{isSmall:!0,isPressed:"color"===j,onClick:function(){return k("color")}},Object(I.__)("Solid")),Object(b.createElement)(g.Button,{isSmall:!0,isPressed:"gradient"===j,onClick:function(){return k("gradient")}},Object(I.__)("Gradient"))),("color"===j||!v)&&Object(b.createElement)(g.ColorPalette,Object(s.a)({value:u,onChange:v?function(e){a(e),l()}:a},{colors:t,disableCustomColors:r})),("gradient"===j||!m)&&Object(b.createElement)(g.__experimentalGradientPicker,Object(s.a)({value:d,onChange:m?function(e){l(e),a()}:l},{gradients:n,disableCustomGradients:o})))):null}function Ie(e){var t=Object(O.useSelect)((function(e){var t=e("core/block-editor").getSettings();return Object(p.pick)(t,Ce)}));return Object(b.createElement)(we,function(e){for(var t=1;t=24?"large":"small"})?null:Object(b.createElement)(Ve,{backgroundColor:t,textColor:i,tinyBackgroundColor:a,tinyTextColor:l})},ze=Object(g.createSlotFill)("InspectorControls"),Ue=ze.Fill,Ge=ze.Slot;function Ke(e){var t=e.children;return y()?Object(b.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!==window.Node.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){var t=e.settings,n=e.clientId,r=e.enableContrastChecking,o=void 0===r||r,c=window,i=c.getComputedStyle,a=c.Node,l=Object(b.useState)(),s=Object(le.a)(l,2),u=s[0],d=s[1],f=Object(b.useState)(),p=Object(le.a)(f,2),m=p[0],v=p[1];return Object(b.useEffect)((function(){if(o){var e=qe(n);if(e){v(i(e).color);for(var t=e,r=i(t).backgroundColor;"rgba(0, 0, 0, 0)"===r&&t.parentNode&&t.parentNode.nodeType===a.ELEMENT_NODE;)t=t.parentNode,r=i(t).backgroundColor;d(r)}}})),Object(b.createElement)(We,null,Object(b.createElement)(Le,{title:Object(I.__)("Color settings"),initialOpen:!1,settings:t},o&&Object(b.createElement)(He,{backgroundColor:u,textColor:m})))}function Qe(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 Ze(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=Object(O.useSelect)((function(e){return!e("core/block-editor").getSettings().enableCustomLineHeight}));return!Object(c.hasBlockSupport)(t,"__experimentalLineHeight")||n}var dt=n(152),ft=n.n(dt),pt=function(e,t,n){if(t){var r=Object(p.find)(e,{slug:t});if(r)return r}return{size:n}};function mt(e,t){var n=Object(p.find)(e,{size:t});return n||{size:t}}function vt(e){if(e)return"has-".concat(Object(p.kebabCase)(e),"-font-size")}var Ot=Object(O.withSelect)((function(e){var t=e("core/block-editor").getSettings();return{disableCustomFontSizes:t.disableCustomFontSizes,fontSizes:t.fontSizes}}))(g.FontSizePicker);function gt(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 ht(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=kt(),r=n.length;return!Object(c.hasBlockSupport)(t,"__experimentalFontSize")||!r}var Et=Object(m.createHigherOrderComponent)((function(e){return function(t){var n,r=kt(),o=t.name,i=t.attributes,a=i.fontSize,l=i.style,s=t.wrapperProps,u=ht({},t);if(Object(c.hasBlockSupport)(o,"__experimentalFontSize")&&a&&!(null==l||null===(n=l.typography)||void 0===n?void 0:n.fontSize)){var d,f=pt(r,a,null==l||null===(d=l.typography)||void 0===d?void 0:d.fontSize).size;u.wrapperProps=ht({},s,{style:ht({fontSize:f},null==s?void 0:s.style)})}return Object(b.createElement)(e,u)}}),"withFontSizeInlineStyles");Object(v.addFilter)("blocks.registerBlockType","core/font/addAttribute",(function(e){return Object(c.hasBlockSupport)(e,"__experimentalFontSize")?(e.attributes.fontSize||Object.assign(e.attributes,{fontSize:{type:"string"}}),e):e})),Object(v.addFilter)("blocks.getSaveContent.extraProps","core/font/addSaveProps",jt),Object(v.addFilter)("blocks.registerBlockType","core/font/addEditProps",(function(e){if(!Object(c.hasBlockSupport)(e,"__experimentalFontSize"))return e;var t=e.getEditWrapperProps;return e.getEditWrapperProps=function(n){var r={};return t&&(r=t(n)),jt(r,e,n)},e})),Object(v.addFilter)("editor.BlockListBlock","core/font-size/with-font-size-inline-styles",Et);var Ct=["__experimentalLineHeight","__experimentalFontSize"];function St(e){var t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=[_t(e),bt(e)];return t.filter(Boolean).length===t.length}(e),n=wt(e.name);return t||!n?null:Object(b.createElement)(We,null,Object(b.createElement)(g.PanelBody,{title:Object(I.__)("Typography")},Object(b.createElement)(yt,e),Object(b.createElement)(ut,e)))}var wt=function(e){return"web"===b.Platform.OS&&Ct.some((function(t){return Object(c.hasBlockSupport)(e,t)}))};function It(e){var t=e.units,n=Object(ke.a)(e,["units"]),r=Bt(t);return Object(b.createElement)(g.__experimentalUnitControl,Object(s.a)({units:r},n))}function Bt(e){var t=Object(O.useSelect)((function(e){return e("core/block-editor").getSettings().enableCustomUnits}),[]),n=!t;return Array.isArray(t)?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):!n&&e}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 Pt(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=At({},Nt,{lineHeight:["typography","lineHeight"],fontSize:["typography","fontSize"],background:["color","gradient"],backgroundColor:["color","background"],color:["color","text"],"--wp--style--color--link":["color","link"]}),n={};return Object.entries(t).forEach((function(t){var r=Object(se.a)(t),o=r[0],c=r.slice(1),i=Object(le.a)(c,1)[0];Object(p.has)(e,i)&&(n[o]=Ft(Object(p.get)(e,i)))})),n}(r),{},e.style),e}var Ht=Object(m.createHigherOrderComponent)((function(e){return function(t){var n=t.name,r=Object(c.hasBlockSupport)(n,"__experimentalPadding");return[Object(b.createElement)(St,Object(s.a)({key:"typography"},t)),Object(b.createElement)(ot,Object(s.a)({key:"colors"},t)),Object(b.createElement)(e,Object(s.a)({key:"edit"},t)),r&&Object(b.createElement)(Rt,{key:"spacing"},Object(b.createElement)(Tt,t))]}}),"withToolbarControls");Object(v.addFilter)("blocks.registerBlockType","core/style/addAttribute",(function(e){return Lt(e)?(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e):e})),Object(v.addFilter)("blocks.getSaveContent.extraProps","core/style/addSaveProps",Vt),Object(v.addFilter)("blocks.registerBlockType","core/style/addEditProps",(function(e){if(!Lt(e))return e;var t=e.getEditWrapperProps;return e.getEditWrapperProps=function(n){var r={};return t&&(r=t(n)),Vt(r,e,n)},e})),Object(v.addFilter)("editor.BlockEdit","core/style/with-block-controls",Ht);var zt=n(20),Ut=n(19),Gt=n(12),Kt=n(23),Wt=n(16),qt=n(22);function $t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function Yt(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 Xt(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}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 r,o,c=!0,i=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return c=e.done,e},e:function(e){i=!0,o=e},f:function(){try{c||null==r.return||r.return()}finally{if(i)throw o}}}}function bn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{panelTitle:Object(I.__)("Color settings")},n=t.panelTitle,r=void 0===n?Object(I.__)("Color settings"):n,o=t.colorPanelProps,c=t.contrastCheckers,i=t.panelChildren,a=t.colorDetector,l=(a=void 0===a?{}:a).targetRef,s=a.backgroundColorTargetRef,d=void 0===s?l:s,m=a.textColorTargetRef,v=void 0===m?l:m,g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],h=k(),j=h.clientId,y=Object(O.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockAttributes,r=(0,t.getSettings)().colors;return{attributes:n(j),settingsColors:r&&!0!==r?r:On}}),[j]),_=y.attributes,E=y.settingsColors,C=Object(O.useDispatch)("core/block-editor"),S=C.updateBlockAttributes,w=Object(b.useCallback)((function(e){return S(j,e)}),[S,j]),B=Object(b.useMemo)((function(){return on()((function(e,t,n,r,o,c){return function(i){var a,l=i.children,s=i.className,d=void 0===s?"":s,m=i.style,v=void 0===m?{}:m,O={};r?O=Object(u.a)({},t,o):c&&(O=Object(u.a)({},t,c));var g={className:f()(d,(a={},Object(u.a)(a,"has-".concat(Object(p.kebabCase)(r),"-").concat(Object(p.kebabCase)(t)),r),Object(u.a)(a,n||"has-".concat(Object(p.kebabCase)(e)),r||c),a)),style:fn({},O,{},v)};return Object(p.isFunction)(l)?l(g):b.Children.map(l,(function(e){return Object(b.cloneElement)(e,{className:f()(e.props.className,g.className),style:fn({},g.style,{},e.props.style||{})})}))}}),{maxSize:e.length})}),[e.length]),x=Object(b.useMemo)((function(){return on()((function(e,t){return function(n){var r=t.find((function(e){return e.color===n}));w(Object(u.a)({},r?Object(p.camelCase)("custom ".concat(e)):e,void 0)),w(Object(u.a)({},r?e:Object(p.camelCase)("custom ".concat(e)),r?r.slug:n))}}),{maxSize:e.length})}),[w,e.length]),P=Object(b.useState)(),T=Object(le.a)(P,2),N=T[0],R=T[1],D=Object(b.useState)(),A=Object(le.a)(D,2),M=A[0],L=A[1];return Object(b.useEffect)((function(){if(c){var e,t=!1,n=!1,r=un(Object(p.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&&L(mn(v.current).color),t){for(var l=d.current,s=mn(l).backgroundColor;"rgba(0, 0, 0, 0)"===s&&l.parentNode&&l.parentNode.nodeType===vn.ELEMENT_NODE;)l=l.parentNode,s=mn(l).backgroundColor;R(s)}}}),[e.reduce((function(e,t){return"".concat(e," | ").concat(_[t.name]," | ").concat(_[Object(p.camelCase)("custom ".concat(t.name))])}),"")].concat(Object(ae.a)(g))),Object(b.useMemo)((function(){var t={},n=e.reduce((function(e,n){"string"==typeof n&&(n={name:n});var r=fn({},n,{color:_[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(p.startCase)(o):l,u=r.componentName,b=void 0===u?Object(p.startCase)(o).replace(/\s/g,""):u,d=r.color,f=void 0===d?n.color:d,m=r.colors,v=void 0===m?E:m,O=_[Object(p.camelCase)("custom ".concat(o))],g=O?void 0:v.find((function(e){return e.slug===f}));return e[b]=B(o,i,a,f,g&&g.color,O),e[b].displayName=b,e[b].color=O||g&&g.color,e[b].slug=f,e[b].setColor=x(o,v),t[b]={value:g?g.color:_[Object(p.camelCase)("custom ".concat(o))],onChange:e[b].setColor,label:s,colors:v},v||delete t[b].colors,e}),{}),a={title:r,initialOpen:!1,colorSettings:t,colorPanelProps:o,contrastCheckers:c,detectedBackgroundColor:N,detectedColor:M,panelChildren:i};return fn({},n,{ColorPanel:Object(b.createElement)(sn,a),InspectorControlsColorPanel:Object(b.createElement)(hn,a)})}),[_,w,M,N].concat(Object(ae.a)(g)))}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;t0&&void 0!==arguments[0]?arguments[0]:"";return e=(e=(e=Object(p.deburr)(e)).replace(/^\//,"")).toLowerCase(),Object(p.words)(e)},Dn=function(e,t){return Object(p.differenceWith)(e,Rn(t),(function(e,t){return t.includes(e)}))},An=function(e,t,n,r){var o=Rn(r);return 0===o.length?e:Mn(e,r,{getCategory:function(e){var n;return null===(n=Object(p.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){return(e.variations||[]).map((function(e){return e.title}))}}).map((function(e){if(Object(p.isEmpty)(e.variations))return e;var t=e.variations.filter((function(e){return Object(p.intersectionWith)(o,Rn(e.title),(function(e,t){return t.includes(e)})).length>0}));return Object(p.isEmpty)(t)?e:function(e){for(var t=1;t0&&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=Rn(t);if(0===r.length)return e;var o=function(e){return e.title},c=function(e){return e.keywords||[]},i=function(e){return e.category},a=function(){return null},l=function(){return[]},s=n.getTitle,u=void 0===s?o:s,b=n.getKeywords,d=void 0===b?c:b,f=n.getCategory,p=void 0===f?i:f,m=n.getCollection,v=void 0===m?a:m,O=n.getVariations,g=void 0===O?l:O;return e.filter((function(e){var t=u(e),n=d(e),o=p(e),c=v(e),i=g(e),a=[t].concat(Object(ae.a)(n),[o,c],Object(ae.a)(i)).join(" ");return 0===Dn(r,a).length}))},Ln=function(e,t){var n=Object(O.useSelect)((function(t){var n=t("core/block-editor"),r=n.getInserterItems,o=n.getSettings,c=t("core/blocks"),i=c.getCategories,a=c.getCollections,l=o().__experimentalFetchReusableBlocks;return{categories:i(),collections:a(),items:r(e),fetchReusableBlocks:l}}),[e]),r=n.categories,o=n.collections,i=n.items,a=n.fetchReusableBlocks;Object(b.useEffect)((function(){a&&a()}),[]);return[i,r,o,function(e){var n=e.name,r=e.initialAttributes,o=e.innerBlocks,i=Object(c.createBlock)(n,r,function e(t){return Object(p.map)(t,(function(t){var n=Object(le.a)(t,3),r=n[0],o=n[1],i=n[2],a=void 0===i?[]:i;return Object(c.createBlock)(r,o,e(a))}))}(o));t(i)}]};function Fn(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 Vn(e){for(var t=1;t1)return function(e,t,n,r,o){var c=t+1;if(o<0&&n)return Object(I.__)("Blocks cannot be moved up as they are already at the top");if(o>0&&r)return Object(I.__)("Blocks cannot be moved down as they are already at the bottom");if(o<0&&!n)return Object(I.sprintf)(Object(I._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(I.sprintf)(Object(I._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(I.sprintf)(Object(I.__)("Block %s is the only block, and cannot be moved"),t);if(c>0&&!o){var u=s("down");if("down"===u)return Object(I.sprintf)(Object(I.__)("Move %1$s block from position %2$d down to position %3$d"),t,l,l+1);if("left"===u)return Object(I.sprintf)(Object(I.__)("Move %1$s block from position %2$d left to position %3$d"),t,l,l+1);if("right"===u)return Object(I.sprintf)(Object(I.__)("Move %1$s block from position %2$d right to position %3$d"),t,l,l+1)}if(c>0&&o){var b=s("down");if("down"===b)return Object(I.sprintf)(Object(I.__)("Block %1$s is at the end of the content and can’t be moved down"),t);if("left"===b)return Object(I.sprintf)(Object(I.__)("Block %1$s is at the end of the content and can’t be moved left"),t);if("right"===b)return Object(I.sprintf)(Object(I.__)("Block %1$s is at the end of the content and can’t be moved right"),t)}if(c<0&&!r){var d=s("up");if("up"===d)return Object(I.sprintf)(Object(I.__)("Move %1$s block from position %2$d up to position %3$d"),t,l,l-1);if("left"===d)return Object(I.sprintf)(Object(I.__)("Move %1$s block from position %2$d left to position %3$d"),t,l,l-1);if("right"===d)return Object(I.sprintf)(Object(I.__)("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(I.sprintf)(Object(I.__)("Block %1$s is at the beginning of the content and can’t be moved up"),t);if("left"===f)return Object(I.sprintf)(Object(I.__)("Block %1$s is at the beginning of the content and can’t be moved left"),t);if("right"===f)return Object(I.sprintf)(Object(I.__)("Block %1$s is at the beginning of the content and can’t be moved right"),t)}}var xr=function(e,t,n){return"up"===e?"horizontal"===t?n?Cr.a:Sr.a:wr.a:"down"===e?"horizontal"===t?n?Sr.a:Cr.a:Ir.a:null},Pr=function(e,t,n){return"up"===e?"horizontal"===t?n?Object(I.__)("Move right"):Object(I.__)("Move left"):Object(I.__)("Move up"):"down"===e?"horizontal"===t?n?Object(I.__)("Move left"):Object(I.__)("Move right"):Object(I.__)("Move down"):null},Tr=Object(b.forwardRef)((function(e,t){var n=e.clientIds,r=e.direction,o=e.orientation,i=Object(ke.a)(e,["clientIds","direction","orientation"]),a=Object(m.useInstanceId)(Tr),l=Object(p.castArray)(n).length,u=Object(O.useSelect)((function(e){var t=e("core/block-editor"),i=t.getBlockIndex,a=t.getBlockRootClientId,l=t.getBlockOrder,s=t.getBlock,u=t.getSettings,b=t.getBlockListSettings,d=Object(p.castArray)(n),f=Object(p.first)(d),m=a(f),v=i(f,m),O=i(Object(p.last)(d),m),g=l(m),h=s(f),j=0===v,k=O===g.length-1,y=(b(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]),d=u.blockType,v=u.isDisabled,h=u.rootClientId,j=u.isFirst,k=u.isLast,y=u.firstIndex,_=u.isRTL,E=u.orientation,C=void 0===E?"vertical":E,S=Object(O.useDispatch)("core/block-editor"),w=S.moveBlocksDown,I=S.moveBlocksUp,B="up"===r?I:w,x="block-editor-block-mover-button__description-".concat(a);return Object(b.createElement)(b.Fragment,null,Object(b.createElement)(g.Button,Object(s.a)({ref:t,className:f()("block-editor-block-mover-button","is-".concat(r,"-button")),icon:xr(r,C,_),label:Pr(r,C,_),"aria-describedby":x},i,{onClick:v?null:function(e){B(n,h),i.onClick&&i.onClick(e)},"aria-disabled":v})),Object(b.createElement)("span",{id:x,className:"block-editor-block-mover-button__description"},Br(l,d&&d.title,y,j,k,"up"===r?-1:1,C,_)))})),Nr=Object(b.forwardRef)((function(e,t){return Object(b.createElement)(Tr,Object(s.a)({direction:"up",ref:t},e))})),Rr=Object(b.forwardRef)((function(e,t){return Object(b.createElement)(Tr,Object(s.a)({direction:"down",ref:t},e))}));function Dr(e){var t=e.level,n=e.isLastRow,r=e.terminatedLevels;return Object(p.times)(t-1,(function(e){var o=e+2,c=o===t;return Object(b.createElement)("div",{key:e,"aria-hidden":"true",className:f()("block-editor-block-navigator-descender-line",{"has-item":c,"is-last-row":n,"is-terminated":r.includes(o)})})}))}var Ar=Object(b.createContext)({__experimentalFeatures:!1}),Mr=function(){return Object(b.useContext)(Ar)},Lr=Object(b.createElement)(B.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(b.createElement)(B.Path,{d:"M11 13h2v-2h-2v2zm-6 0h2v-2H5v2zm12-2v2h2v-2h-2z"}));var Fr=function(e){var t=e.className,n=e.actions,r=e.children,o=e.secondaryActions;return Object(b.createElement)("div",{className:f()(t,"block-editor-warning")},Object(b.createElement)("div",{className:"block-editor-warning__contents"},Object(b.createElement)("p",{className:"block-editor-warning__message"},r),(b.Children.count(n)>0||o)&&Object(b.createElement)("div",{className:"block-editor-warning__actions"},b.Children.count(n)>0&&b.Children.map(n,(function(e,t){return Object(b.createElement)("span",{key:t,className:"block-editor-warning__action"},e)})),o&&Object(b.createElement)(g.Dropdown,{className:"block-editor-warning__secondary",position:"bottom left",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(b.createElement)(g.Button,{icon:Lr,label:Object(I.__)("More options"),onClick:n,"aria-expanded":t})},renderContent:function(){return Object(b.createElement)(g.MenuGroup,null,o.map((function(e,t){return Object(b.createElement)(g.MenuItem,{onClick:e.onClick,key:t},e.title)})))}}))))},Vr=n(263),Hr=function(e){var t=e.title,n=e.rawContent,r=e.renderedContent,o=e.action,c=e.actionText,i=e.className;return Object(b.createElement)("div",{className:i},Object(b.createElement)("div",{className:"block-editor-block-compare__content"},Object(b.createElement)("h2",{className:"block-editor-block-compare__heading"},t),Object(b.createElement)("div",{className:"block-editor-block-compare__html"},n),Object(b.createElement)("div",{className:"block-editor-block-compare__preview edit-post-visual-editor"},r)),Object(b.createElement)("div",{className:"block-editor-block-compare__action"},Object(b.createElement)(g.Button,{isSecondary:!0,tabIndex:"0",onClick:o},c)))};var zr=function(e){var t,n,r,o,i=e.block,a=e.onKeep,l=e.onConvert,s=e.convertor,u=e.convertButtonText,d={rawContent:i.originalContent,renderedContent:Object(c.getSaveElement)(i.name,i.attributes)},m=(t=s(i),n=Object(p.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(Vr.diffChars)(e,t).map((function(e,t){var n=f()({"block-editor-block-compare__added":e.added,"block-editor-block-compare__removed":e.removed});return Object(b.createElement)("span",{key:t,className:n},e.value)}))}(d.rawContent,m.rawContent);return Object(b.createElement)("div",{className:"block-editor-block-compare__wrapper"},Object(b.createElement)(Hr,{title:Object(I.__)("Current"),className:"block-editor-block-compare__current",action:a,actionText:Object(I.__)("Convert to HTML"),rawContent:d.rawContent,renderedContent:d.renderedContent}),Object(b.createElement)(Hr,{title:Object(I.__)("After Conversion"),className:"block-editor-block-compare__converted",action:l,actionText:u,rawContent:v,renderedContent:m.renderedContent}))};function Ur(){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}}var Gr=function(e){Object(qt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Wt.a)(t);if(Ur()){var r=Object(Wt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Kt.a)(this,e)});function r(e){var t;return Object(zt.a)(this,r),(t=n.call(this,e)).state={compare:!1},t.onCompare=t.onCompare.bind(Object(Gt.a)(t)),t.onCompareClose=t.onCompareClose.bind(Object(Gt.a)(t)),t}return Object(Ut.a)(r,[{key:"onCompare",value:function(){this.setState({compare:!0})}},{key:"onCompareClose",value:function(){this.setState({compare:!1})}},{key:"render",value:function(){var e=this.props,t=e.convertToHTML,n=e.convertToBlocks,r=e.convertToClassic,o=e.attemptBlockRecovery,i=e.block,a=!!Object(c.getBlockType)("core/html"),l=this.state.compare,s=[{title:Object(I.__)("Convert to Classic Block"),onClick:r},{title:Object(I.__)("Attempt Block Recovery"),onClick:o}];return Object(b.createElement)(b.Fragment,null,Object(b.createElement)(Fr,{actions:[Object(b.createElement)(g.Button,{key:"convert",onClick:this.onCompare,isSecondary:a,isPrimary:!a},Object(I._x)("Resolve","imperative verb")),a&&Object(b.createElement)(g.Button,{key:"edit",onClick:t,isPrimary:!0},Object(I.__)("Convert to HTML"))],secondaryActions:s},Object(I.__)("This block contains unexpected or invalid content.")),l&&Object(b.createElement)(g.Modal,{title:Object(I.__)("Resolve Block"),onRequestClose:this.onCompareClose,className:"block-editor-block-compare"},Object(b.createElement)(zr,{block:i,onKeep:t,onConvert:n,convertor:Kr,convertButtonText:Object(I.__)("Convert to Blocks")})))}}]),r}(b.Component),Kr=function(e){return Object(c.rawHandler)({HTML:e.originalContent})},Wr=Object(m.compose)([Object(O.withSelect)((function(e,t){var n=t.clientId;return{block:e("core/block-editor").getBlock(n)}})),Object(O.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)))}}}))])(Gr),qr=Object(b.createElement)(Fr,{className:"block-editor-block-list__block-crash-warning"},Object(I.__)("This block has encountered an error and cannot be previewed.")),$r=function(){return qr};function Yr(){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}}var Xr=function(e){Object(qt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Wt.a)(t);if(Yr()){var r=Object(Wt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Kt.a)(this,e)});function r(){var e;return Object(zt.a)(this,r),(e=n.apply(this,arguments)).state={hasError:!1},e}return Object(Ut.a)(r,[{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}}]),r}(b.Component),Qr=n(97),Zr=n.n(Qr);var Jr=function(e){var t=e.clientId,n=Object(b.useState)(""),r=Object(le.a)(n,2),o=r[0],i=r[1],a=Object(O.useSelect)((function(e){return e("core/block-editor").getBlock(t)}),[t]),l=Object(O.useDispatch)("core/block-editor").updateBlock;return Object(b.useEffect)((function(){i(Object(c.getBlockContent)(a))}),[a]),Object(b.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)}})};function eo(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 to(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 no(e,t){Array.from(e.querySelectorAll(".rich-text")).forEach((function(e){t?e.setAttribute("contenteditable",!0):e.removeAttribute("contenteditable")}))}var ro=n(291),oo=[Object(b.createInterpolateElement)(Object(I.__)("While writing, you can press / to quickly insert new blocks."),{kbd:Object(b.createElement)("kbd",null)}),Object(b.createInterpolateElement)(Object(I.__)("Indent a list by pressing space at the beginning of a line."),{kbd:Object(b.createElement)("kbd",null)}),Object(b.createInterpolateElement)(Object(I.__)("Outdent a list by pressing backspace at the beginning of a line."),{kbd:Object(b.createElement)("kbd",null)}),Object(I.__)("Drag files into the editor to automatically insert media blocks."),Object(I.__)("Change a block's type by pressing the block icon on the toolbar.")];var co=function(){var e=Object(b.useState)(Math.floor(Math.random()*oo.length)),t=Object(le.a)(e,1)[0];return Object(b.createElement)(g.Tip,null,oo[t])},io=n(176),ao=n(137),lo=n(292);var so=function e(t){var n=t.className,r=t.onChange,o=t.value,c=Object(m.useInstanceId)(e),i=Object(b.useRef)();return Object(b.createElement)("div",{className:f()("block-editor-inserter__search",n)},Object(b.createElement)(g.VisuallyHidden,{as:"label",htmlFor:"block-editor-inserter__search-".concat(c)},Object(I.__)("Search for a block")),Object(b.createElement)("input",{ref:i,className:"block-editor-inserter__search-input",id:"block-editor-inserter__search-".concat(c),type:"search",placeholder:Object(I.__)("Search for a block"),autoFocus:!0,onChange:function(e){return r(e.target.value)},autoComplete:"off",value:o||""}),Object(b.createElement)("div",{className:"block-editor-inserter__search-icon"},!!o&&Object(b.createElement)(g.Button,{icon:io.a,label:Object(I.__)("Reset search"),onClick:function(){r(""),i.current.focus()}}),!o&&Object(b.createElement)(ao.a,{icon:lo.a})))};var uo=function(e){var t=e.blockType;return Object(b.createElement)("div",{className:"block-editor-block-card"},Object(b.createElement)(Un,{icon:t.icon,showColors:!0}),Object(b.createElement)("div",{className:"block-editor-block-card__content"},Object(b.createElement)("h2",{className:"block-editor-block-card__title"},t.title),Object(b.createElement)("span",{className:"block-editor-block-card__description"},t.description)))},bo={insertUsage:{}},fo={alignWide:!1,colors:[{name:Object(I.__)("Black"),slug:"black",color:"#000000"},{name:Object(I.__)("Cyan bluish gray"),slug:"cyan-bluish-gray",color:"#abb8c3"},{name:Object(I.__)("White"),slug:"white",color:"#ffffff"},{name:Object(I.__)("Pale pink"),slug:"pale-pink",color:"#f78da7"},{name:Object(I.__)("Vivid red"),slug:"vivid-red",color:"#cf2e2e"},{name:Object(I.__)("Luminous vivid orange"),slug:"luminous-vivid-orange",color:"#ff6900"},{name:Object(I.__)("Luminous vivid amber"),slug:"luminous-vivid-amber",color:"#fcb900"},{name:Object(I.__)("Light green cyan"),slug:"light-green-cyan",color:"#7bdcb5"},{name:Object(I.__)("Vivid green cyan"),slug:"vivid-green-cyan",color:"#00d084"},{name:Object(I.__)("Pale cyan blue"),slug:"pale-cyan-blue",color:"#8ed1fc"},{name:Object(I.__)("Vivid cyan blue"),slug:"vivid-cyan-blue",color:"#0693e3"},{name:Object(I.__)("Vivid purple"),slug:"vivid-purple",color:"#9b51e0"}],fontSizes:[{name:Object(I._x)("Small","font size name"),size:13,slug:"small"},{name:Object(I._x)("Normal","font size name"),size:16,slug:"normal"},{name:Object(I._x)("Medium","font size name"),size:20,slug:"medium"},{name:Object(I._x)("Large","font size name"),size:36,slug:"large"},{name:Object(I._x)("Huge","font size name"),size:48,slug:"huge"}],imageSizes:[{slug:"thumbnail",name:Object(I.__)("Thumbnail")},{slug:"medium",name:Object(I.__)("Medium")},{slug:"large",name:Object(I.__)("Large")},{slug:"full",name:Object(I.__)("Full Size")}],imageEditing:!0,maxWidth:580,allowedBlockTypes:!0,maxUploadFileSize:0,allowedMimeTypes:null,availableLegacyWidgets:{},hasPermissionsToManageWidgets:!1,__experimentalCanUserUseUnfilteredHTML:!1,__experimentalEnableLegacyWidgetBlock:!1,__experimentalBlockDirectory:!1,__experimentalEnableFullSiteEditing:!1,__experimentalEnableFullSiteEditingDemo:!1,__mobileEnablePageTemplates:!1,gradients:[{name:Object(I.__)("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(I.__)("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(I.__)("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(I.__)("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(I.__)("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(I.__)("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(I.__)("Blush light purple"),gradient:"linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%)",slug:"blush-light-purple"},{name:Object(I.__)("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(I.__)("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(I.__)("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(I.__)("Electric grass"),gradient:"linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%)",slug:"electric-grass"},{name:Object(I.__)("Midnight"),gradient:"linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%)",slug:"midnight"}]};function po(e,t,n){return[].concat(Object(ae.a)(e.slice(0,n)),Object(ae.a)(Object(p.castArray)(t)),Object(ae.a)(e.slice(n)))}function mo(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=Object(ae.a)(e);return o.splice(t,r),po(o,e.slice(t,t+r),n)}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 Oo(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"",n=Object(u.a)({},t,[]);return e.forEach((function(e){var r=e.clientId,o=e.innerBlocks;n[t].push(r),Object.assign(n,go(o,r))})),n}function ho(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.reduce((function(e,n){return Object.assign(e,Object(u.a)({},n.clientId,t),ho(n.innerBlocks,n.clientId))}),{})}function jo(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.identity,n={},r=Object(ae.a)(e);r.length;){var o=r.shift(),c=o.innerBlocks,i=Object(ke.a)(o,["innerBlocks"]);r.push.apply(r,Object(ae.a)(c)),n[i.clientId]=t(i)}return n}function ko(e){return jo(e,(function(e){return Object(p.omit)(e,"attributes")}))}function yo(e){return jo(e,(function(e){return e.attributes}))}function _o(e,t){return e===t?Oo({},e):t}function Eo(e,t){return"UPDATE_BLOCK_ATTRIBUTES"===e.type&&void 0!==t&&"UPDATE_BLOCK_ATTRIBUTES"===t.type&&Object(p.isEqual)(e.clientIds,t.clientIds)&&(n=e.attributes,r=t.attributes,Object(p.isEqual)(Object(p.keys)(n),Object(p.keys)(r)));var n,r}var Co=function(e){return e.reduce((function(e,t){return e[t]={},e}),{})};var So=Object(p.flow)(O.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=Oo({},t)).attributes=Object(p.mapValues)(t.attributes,(function(e,n){return"core/block"===t.byClientId[n].name&&e.ref===r?Oo({},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(p.mapValues)(jo(n.blocks),(function(){return{}}));break;case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":var c=Object(p.keys)(jo(n.blocks));n.rootClientId&&!t.controlledInnerBlocks[n.rootClientId]&&c.push(n.rootClientId),r.cache=Oo({},r.cache,{},Co(o(c)));break;case"UPDATE_BLOCK":r.cache=Oo({},r.cache,{},Co(o([n.clientId])));break;case"UPDATE_BLOCK_ATTRIBUTES":r.cache=Oo({},r.cache,{},Co(o(n.clientIds)));break;case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":var i=Co(o(n.replacedClientIds));r.cache=Oo({},Object(p.omit)(r.cache,n.replacedClientIds),{},Object(p.omit)(i,n.replacedClientIds),{},Co(Object(p.keys)(jo(n.blocks))));break;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":r.cache=Oo({},Object(p.omit)(r.cache,n.removedClientIds),{},Co(Object(p.difference)(o(n.clientIds),n.clientIds)));break;case"MOVE_BLOCKS_TO_POSITION":var a=Object(ae.a)(n.clientIds);n.fromRootClientId&&a.push(n.fromRootClientId),n.toRootClientId&&a.push(n.toRootClientId),r.cache=Oo({},r.cache,{},Co(o(a)));break;case"MOVE_BLOCKS_UP":case"MOVE_BLOCKS_DOWN":var l=[];n.rootClientId&&l.push(n.rootClientId),r.cache=Oo({},r.cache,{},Co(o(l)));break;case"SAVE_REUSABLE_BLOCK_SUCCESS":var s=Object(p.keys)(Object(p.omitBy)(r.attributes,(function(e,t){return"core/block"!==r.byClientId[t].name||e.ref!==n.updatedId})));r.cache=Oo({},r.cache,{},Co(o(s)))}return r}}),(function(e){return function(t,n){var r=function(e){for(var r=e,o=0;o1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object(p.reduce)(t[n],(function(n,o){return r[o]?n:[].concat(Object(ae.a)(n),[o],Object(ae.a)(e(t,o)))}),[])}(t.order,"",t.controlledInnerBlocks),o=Object.keys(Object(p.pickBy)(t.controlledInnerBlocks));return Oo({},t,{byClientId:Oo({},Object(p.omit)(t.byClientId,r),{},ko(n.blocks)),attributes:Oo({},Object(p.omit)(t.attributes,r),{},yo(n.blocks)),order:Oo({},Object(p.omit)(t.order,r),{},Object(p.omit)(go(n.blocks),o)),parents:Oo({},Object(p.omit)(t.parents,r),{},ho(n.blocks)),cache:Oo({},Object(p.omit)(t.cache,r),{},Object(p.omit)(Object(p.mapValues)(jo(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){n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===o.type;var a=Object(p.get)(r,["isPersistentChange"],!0);return r.isPersistentChange===a?r:Oo({},c,{isPersistentChange:a})}return c=Oo({},c,{isPersistentChange:i?!n:!Eo(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 ko(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return Oo({},e,{},ko(t.blocks));case"UPDATE_BLOCK":if(!e[t.clientId])return e;var n=Object(p.omit)(t.updates,"attributes");return Object(p.isEmpty)(n)?e:Oo({},e,Object(u.a)({},t.clientId,Oo({},e[t.clientId],{},n)));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?Oo({},Object(p.omit)(e,t.replacedClientIds),{},ko(t.blocks)):e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(p.omit)(e,t.removedClientIds)}return e},attributes:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return yo(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return Oo({},e,{},yo(t.blocks));case"UPDATE_BLOCK":return e[t.clientId]&&t.updates.attributes?Oo({},e,Object(u.a)({},t.clientId,Oo({},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 Oo({},n,Object(u.a)({},r,Object(p.reduce)(t.attributes,(function(t,n,o){return n!==t[o]&&((t=_o(e[r],t))[o]=n),t}),e[r])))}),{});return t.clientIds.every((function(t){return n[t]===e[t]}))?e:Oo({},e,{},n);case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?Oo({},Object(p.omit)(e,t.replacedClientIds),{},yo(t.blocks)):e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(p.omit)(e,t.removedClientIds)}return e},order:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return go(t.blocks);case"RECEIVE_BLOCKS":return Oo({},e,{},Object(p.omit)(go(t.blocks),""));case"INSERT_BLOCKS":var n=t.rootClientId,r=void 0===n?"":n,o=e[r]||[],c=go(t.blocks,r),i=t.index,a=void 0===i?o.length:i;return Oo({},e,{},c,Object(u.a)({},r,po(o,c[r],a)));case"MOVE_BLOCKS_TO_POSITION":var l,s=t.fromRootClientId,b=void 0===s?"":s,d=t.toRootClientId,f=void 0===d?"":d,m=t.clientIds,v=t.index,O=void 0===v?e[f].length:v;if(b===f){var g=e[f],h=g.indexOf(m[0]);return Oo({},e,Object(u.a)({},f,mo(e[f],h,O,m.length)))}return Oo({},e,(l={},Object(u.a)(l,b,p.without.apply(void 0,[e[b]].concat(Object(ae.a)(m)))),Object(u.a)(l,f,po(e[f],m,O)),l));case"MOVE_BLOCKS_UP":var j=t.clientIds,k=t.rootClientId,y=void 0===k?"":k,_=Object(p.first)(j),E=e[y];if(!E.length||_===Object(p.first)(E))return e;var C=E.indexOf(_);return Oo({},e,Object(u.a)({},y,mo(E,C,C-1,j.length)));case"MOVE_BLOCKS_DOWN":var S=t.clientIds,w=t.rootClientId,I=void 0===w?"":w,B=Object(p.first)(S),x=Object(p.last)(S),P=e[I];if(!P.length||x===Object(p.last)(P))return e;var T=P.indexOf(B);return Oo({},e,Object(u.a)({},I,mo(P,T,T+1,S.length)));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":var N=t.clientIds;if(!t.blocks)return e;var R=go(t.blocks);return Object(p.flow)([function(e){return Object(p.omit)(e,t.replacedClientIds)},function(e){return Oo({},e,{},Object(p.omit)(R,""))},function(e){return Object(p.mapValues)(e,(function(e){return Object(p.reduce)(e,(function(e,t){return t===N[0]?[].concat(Object(ae.a)(e),Object(ae.a)(R[""])):(-1===N.indexOf(t)&&e.push(t),e)}),[])}))}])(e);case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(p.flow)([function(e){return Object(p.omit)(e,t.removedClientIds)},function(e){return Object(p.mapValues)(e,(function(e){return p.without.apply(void 0,[e].concat(Object(ae.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 ho(t.blocks);case"RECEIVE_BLOCKS":return Oo({},e,{},ho(t.blocks));case"INSERT_BLOCKS":return Oo({},e,{},ho(t.blocks,t.rootClientId||""));case"MOVE_BLOCKS_TO_POSITION":return Oo({},e,{},t.clientIds.reduce((function(e,n){return e[n]=t.toRootClientId||"",e}),{}));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Oo({},Object(p.omit)(e,t.replacedClientIds),{},ho(t.blocks,e[t.clientIds[0]]));case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(p.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?Oo({},e,Object(u.a)({},r,o)):e}});function wo(){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 Io=Object(O.combineReducers)({blocks:So,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},isDraggingBlocks: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!0;case"STOP_DRAGGING_BLOCKS":return!1}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 wo(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 wo(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 Oo({},e,Object(u.a)({},n,e[n]&&"html"===e[n]?"visual":"html"))}return e},blockListSettings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REPLACE_BLOCKS":case"REMOVE_BLOCKS":return Object(p.omit)(e,t.clientIds);case"UPDATE_BLOCK_LIST_SETTINGS":var n=t.clientId;return t.settings?Object(p.isEqual)(e[n],t.settings)?e:Oo({},e,Object(u.a)({},n,t.settings)):e.hasOwnProperty(n)?Object(p.omit)(e,n):e}return e},insertionPoint:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SHOW_INSERTION_POINT":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 Oo({},e,{isValid:t.isValid})}return e},settings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:fo,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_SETTINGS":return Oo({},e,{},t.settings)}return e},preferences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:bo,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),Oo({},e,{insertUsage:Oo({},e.insertUsage,Object(u.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(u.a)({},t.clientId,t.updates.attributes);case"UPDATE_BLOCK_ATTRIBUTES":return t.clientIds.reduce((function(e,n){return Oo({},e,Object(u.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}}),Bo=n(110),xo=n.n(Bo),Po=n(262),To=n.n(Po),No=n(40);function Ro(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}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 r,o,c=!0,i=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return c=e.done,e},e:function(e){i=!0,o=e},f:function(){try{c||null==r.return||r.return()}finally{if(i)throw o}}}}function Mo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:null;return{type:"SELECT_BLOCK",initialPosition:t,clientId:e}}function ac(e){var t;return mr.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Ro("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 mr.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Ro("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 bc(e,t){return{type:"MULTI_SELECT",start:e,end:t}}function dc(){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=Object(p.get)(t,["__experimentalPreferredStyleVariations","value"],{});return e.map((function(e){var t=e.name;if(!Object(c.hasBlockSupport)(t,"defaultStylePicker",!0))return e;if(!n[t])return e;var r=Object(p.get)(e,["attributes","className"]);if(null==r?void 0:r.includes("is-style-"))return e;var o=e.attributes,i=void 0===o?{}:o,a=n[t];return Fo({},e,{attributes:Fo({},i,{className:"".concat(r||""," is-style-").concat(a).trim()})})}))}function mc(e,t,n,r){var o,c,i;return mr.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return e=Object(p.castArray)(e),a.t0=pc,a.t1=Object(p.castArray)(t),a.next=5,Ro("core/block-editor","getSettings");case 5:return a.t2=a.sent,t=(0,a.t0)(a.t1,a.t2),a.next=9,Ro("core/block-editor","getBlockRootClientId",Object(p.first)(e));case 9:o=a.sent,c=0;case 11:if(!(c1&&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,Ro("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,Ro("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 mr.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=arguments;return mr.a.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return r=!(l.length>3&&void 0!==l[3])||l[3],s.t0=pc,s.t1=Object(p.castArray)(e),s.next=5,Ro("core/block-editor","getSettings");case 5:s.t2=s.sent,e=(0,s.t0)(s.t1,s.t2),o=[],c=Ao(e),s.prev=9,c.s();case 11:if((i=c.n()).done){s.next=19;break}return a=i.value,s.next=15,Ro("core/block-editor","canInsertBlockType",a.name,n);case 15:s.sent&&o.push(a);case 17:s.next=11;break;case 19:s.next=24;break;case 21:s.prev=21,s.t3=s.catch(9),c.e(s.t3);case 24:return s.prev=24,c.f(),s.finish(24);case 27:if(!o.length){s.next=29;break}return s.abrupt("return",{type:"INSERT_BLOCKS",blocks:o,index:t,rootClientId:n,time:Date.now(),updateSelection:r});case 29:case"end":return s.stop()}}),Wo,null,[[9,21,24,27]])}function Ec(e,t){return{type:"SHOW_INSERTION_POINT",rootClientId:e,index:t}}function Cc(){return{type:"HIDE_INSERTION_POINT"}}function Sc(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}function wc(){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 mr.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(p.castArray)(e),i.next=6,Ro("core/block-editor","getBlockRootClientId",e[0]);case 6:return n=i.sent,i.next=9,Ro("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,Ro("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 Rc(){return{type:"STOP_TYPING"}}function Dc(){return{type:"START_DRAGGING_BLOCKS"}}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 mr.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(Fe.speak)(Object(I.__)("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(Fe.speak)(Object(I.__)("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 mr.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(Fe.speak)(Object(I.__)("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 mr.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,Ro("core/block-editor","getBlocksByClientId",e);case 5:return n=s.sent,s.next=8,Ro("core/block-editor","getBlockRootClientId",e[0]);case 8:if(r=s.sent,!Object(p.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(p.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,Ro("core/block-editor","getBlockIndex",Object(p.last)(Object(p.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,bc(Object(p.first)(a).clientId,Object(p.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 mr.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,Ro("core/block-editor","getBlockRootClientId",e);case 4:return t=r.sent,r.next=7,Ro("core/block-editor","getTemplateLock",t);case 7:if(!r.sent){r.next=10;break}return r.abrupt("return");case 10:return r.next=12,Ro("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 mr.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,Ro("core/block-editor","getBlockRootClientId",e);case 4:return t=r.sent,r.next=7,Ro("core/block-editor","getTemplateLock",t);case 7:if(!r.sent){r.next=10;break}return r.abrupt("return");case 10:return r.next=12,Ro("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 mr.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=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 ri(e){for(var t=1;t2&&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]})),wi=Object(ti.a)((function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=Si(e,t,r);return Object(p.map)(Object(p.filter)(Object(p.map)(o,(function(t){return{id:t,name:ii(e,t)}})),{name:n}),(function(e){return e.id}))}),(function(e){return[e.blocks.parents]}));function Ii(e,t){var n,r=t;do{n=r,r=e.blocks.parents[r]}while(r);return n}function Bi(e,t){for(var n,r=_i(e),o=[].concat(Object(ae.a)(Si(e,t)),[t]),c=[].concat(Object(ae.a)(Si(e,r)),[r]),i=Math.min(o.length,c.length),a=0;a2&&void 0!==arguments[2]?arguments[2]:1;if(void 0===t&&(t=_i(e)),void 0===t&&(t=n<0?Mi(e):Li(e)),!t)return null;var r=Ci(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 Pi(e,t){return xi(e,t,-1)}function Ti(e,t){return xi(e,t,1)}function Ni(e){return e.initialPosition}var Ri=Object(ti.a)((function(e){var t=e.selectionStart,n=e.selectionEnd;if(void 0===t.clientId||void 0===n.clientId)return ci;if(t.clientId===n.clientId)return[t.clientId];var r=Ci(e,t.clientId);if(null===r)return ci;var o=Gi(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 Di(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId===n.clientId?ci:Ri(e)}var Ai=Object(ti.a)((function(e){var t=Di(e);return t.length?t.map((function(t){return si(e,t)})):ci}),(function(e){return[].concat(Object(ae.a)(Ri.getDependants(e)),[e.blocks.byClientId,e.blocks.order,e.blocks.attributes])}));function Mi(e){return Object(p.first)(Di(e))||null}function Li(e){return Object(p.last)(Di(e))||null}function Fi(e,t){return Mi(e)===t}function Vi(e,t){return-1!==Di(e).indexOf(t)}var Hi=Object(ti.a)((function(e,t){for(var n=t,r=!1;n&&!r;)r=Vi(e,n=Ci(e,n));return r}),(function(e){return[e.blocks.order,e.selectionStart.clientId,e.selectionEnd.clientId]}));function zi(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId===n.clientId?null:t.clientId||null}function Ui(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId===n.clientId?null:n.clientId||null}function Gi(e,t){return e.blocks.order[t||""]||ci}function Ki(e,t,n){return Gi(e,n).indexOf(t)}function Wi(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(p.some)(Gi(e,t),(function(t){return Wi(e,t)||Vi(e,t)||n&&qi(e,t,n)}))}function $i(e,t){if(!t)return!1;var n=Di(e),r=n.indexOf(t);return r>-1&&r2&&void 0!==arguments[2]?arguments[2]:null,r=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return Object(p.isBoolean)(e)?e:Object(p.isArray)(e)?!(!e.includes("core/post-content")||null!==t)||e.includes(t):n},o=Object(c.getBlockType)(t);if(!o)return!1;var i=va(e),a=i.allowedBlockTypes,l=r(a,t,!0);if(!l)return!1;var s=!!ia(e,n);if(s)return!1;var u=ma(e,n),b=Object(p.get)(u,["allowedBlocks"]),d=r(b,t),f=o.parent,m=ii(e,n),v=r(f,m);return null!==d&&null!==v?d||v:null!==d?d:null===v||v},la=Object(ti.a)(aa,(function(e,t,n){return[e.blockListSettings[n],e.blocks.byClientId[n],e.settings.allowedBlockTypes,e.settings.templateLock]}));function sa(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return t.every((function(t){return la(e,ii(e,t),n)}))}function ua(e,t){return Object(p.get)(e.preferences.insertUsage,[t],null)}var ba=function(e,t,n){return!!Object(c.hasBlockSupport)(t,"inserter",!0)&&aa(e,t.name,n)},da=Object(ti.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=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}},r=function(t){var r=t.name,o=!1;Object(c.hasBlockSupport)(t.name,"multiple",!0)||(o=Object(p.some)(mi(e,fi(e)),{name:t.name}));var i=ua(e,r)||{},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:r,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:n(a,s)}},o=function(t){var r,o="core/block/".concat(t.id),i=ha(e,t.id);1===i.length&&(r=Object(c.getBlockType)(i[0].name));var a=ua(e,o)||{},l=a.time,s=a.count,u=n(l,void 0===s?0:s);return{id:o,name:"core/block",initialAttributes:{ref:t.id},title:t.title,icon:r?r.icon:oi,category:"reusable",keywords:[],isDisabled:!1,utility:1,frecency:u}},i=Object(c.getBlockTypes)().filter((function(n){return ba(e,n,t)})).map(r),a=aa(e,"core/block",t)?ya(e).map(o):[];return[].concat(Object(ae.a)(i),Object(ae.a)(a))}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.blocks.order,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,ya(e),Object(c.getBlockTypes)()]})),fa=Object(ti.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=Object(p.some)(Object(c.getBlockTypes)(),(function(n){return ba(e,n,t)}));if(n)return!0;var r=aa(e,"core/block",t)&&ya(e).length>0;return r}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,ya(e),Object(c.getBlockTypes)()]})),pa=Object(ti.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t)return Object(p.filter)(Object(c.getBlockTypes)(),(function(n){return ba(e,n,t)}))}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,Object(c.getBlockTypes)()]}));function ma(e,t){return e.blockListSettings[t]}function va(e){return e.settings}function Oa(e){return e.blocks.isPersistentChange}var ga=Object(ti.a)((function(e,t){return Object(p.filter)(e.blockListSettings,(function(e,n){return t.includes(n)}))}),(function(e){return[e.blockListSettings]})),ha=Object(ti.a)((function(e,t){var n=Object(p.find)(ya(e),(function(e){return e.id===t}));return n?Object(c.parse)(n.content):null}),(function(e){return[ya(e)]}));function ja(e){return e.blocks.isIgnoredChange}function ka(e){return e.lastBlockAttributesChange}function ya(e){return Object(p.get)(e,["settings","__experimentalReusableBlocks"],ci)}function _a(e){return e.isNavigationMode}function Ea(e){return e.hasBlockMovingClientId}function Ca(e){return!!e.automaticChangeStatus}function Sa(e,t){return e.highlightedBlock===t}function wa(e,t){return!!e.blocks.controlledInnerBlocks[t]}function Ia(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 Ba(e){for(var t=1;t=d&&u<=f?u:u6||j.length>6,P=Object(b.useMemo)((function(){return An(j,k,y,l)}),[l,j,k,y]),T=Object(b.useMemo)((function(){return Mn(S,l)}),[l,S]),N=Object(O.useSelect)((function(e){return e("core/block-editor").getSettings().__experimentalSetIsInserterOpened}),[]),R=Object(O.useSelect)((function(e){return e("core/block-editor").getPreviousBlockClientId(n)}),[n]);Object(b.useEffect)((function(){N&&N(!1)}),[N]);var D=Object(O.useDispatch)("core/block-editor").selectBlock;return Object(b.useEffect)((function(){if(l){var e=P.length+T.length,t=Object(I.sprintf)(Object(I._n)("%d result found.","%d results found.",e),e);c(t)}}),[l,c]),Object(b.createElement)("div",{className:"block-editor-inserter__quick-inserter",onKeyPress:Pl,onKeyDown:xl},x&&Object(b.createElement)(so,{value:l,onChange:function(e){s(e)}}),Object(b.createElement)(Tl,{blockTypes:P,blockPatterns:B?T:[],onSelectBlockPattern:w,onSelectBlockType:_,onHover:m}),N&&Object(b.createElement)(g.Button,{className:"block-editor-inserter__quick-inserter-expand",onClick:function(){D(R),N(!0)},"aria-label":Object(I.__)("Browse all. This will open the main inserter panel in the editor toolbar.")},Object(I.__)("Browse all")))}));function Rl(){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}}var Dl=function(e){var t,n=e.onToggle,r=e.disabled,o=e.isOpen,c=e.blockTitle,i=e.hasSingleBlockType,a=e.toggleProps;return t=i?Object(I.sprintf)(Object(I._x)("Add %s","directly add the only allowed block"),c):Object(I._x)("Add block","Generic label for block inserter button"),Object(b.createElement)(g.Button,Object(s.a)({icon:ro.a,label:t,tooltipPosition:"bottom",onClick:n,className:"block-editor-inserter__toggle","aria-haspopup":!i&&"true","aria-expanded":!i&&o,disabled:r},a))},Al=function(e){Object(qt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Wt.a)(t);if(Rl()){var r=Object(Wt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Kt.a)(this,e)});function r(){var e;return Object(zt.a)(this,r),(e=n.apply(this,arguments)).onToggle=e.onToggle.bind(Object(Gt.a)(e)),e.renderToggle=e.renderToggle.bind(Object(Gt.a)(e)),e.renderContent=e.renderContent.bind(Object(Gt.a)(e)),e}return Object(Ut.a)(r,[{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?Dl: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(b.createElement)(Nl,{rootClientId:r,clientId:o,isAppender:c,selectBlockOnInsert:a}):Object(b.createElement)(Bl,{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(b.createElement)(g.Dropdown,{className:"block-editor-inserter",contentClassName:f()("block-editor-inserter__popover",{"is-quick":o}),position:t,onToggle:this.onToggle,expandOnMobile:!0,headerTitle:Object(I.__)("Add a block"),renderToggle:this.renderToggle,renderContent:this.renderContent})}}]),r}(b.Component),Ml=Object(m.compose)([Object(O.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(p.size)(s)&&0===Object(p.size)(l(s[0].name,"inserter")),b=!1;return u&&(b=s[0]),{hasItems:i(r),hasSingleBlockType:u,blockTitle:b?b.title:"",allowedBlockType:b,rootClientId:r}})),Object(O.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(I.sprintf)(Object(I.__)("%s block added"),l.title);Object(Fe.speak)(u)}}}})),Object(m.ifCondition)((function(e){var t=e.hasItems,n=e.isAppender,r=e.rootClientId,o=e.clientId;return t||!n&&!r&&!o}))])(Al),Ll=Object(b.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(O.useSelect)((function(e){return e("core/block-editor").isNavigationMode()})),s=Object(O.useDispatch)("core/block-editor").setNavigationMode;return Object(b.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=hr.focus.tabbable.find(e);(Object(p.last)(t)||e).focus()}else e.focus()}else{if(i)return void a.current.focus();s(!0);var l=hr.focus.tabbable.find(o.current);l.length&&(r?Object(p.last)(l).focus():Object(p.first)(l).focus())}},style:{position:"fixed"}})})),Fl=window,Vl=Fl.getSelection,Hl=Fl.getComputedStyle,zl=Object(p.overEvery)([hr.isTextField,hr.focus.tabbable.isTabbableIndex]);function Ul(e,t,n,r){var o,c=hr.focus.focusable.find(n);return t&&(c=Object(p.reverse)(c)),c=c.slice(c.indexOf(e)+1),r&&(o=e.getBoundingClientRect()),Object(p.find)(c,(function t(n,c,i){if(!hr.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(hr.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 Gl(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,b=t.isNavigationMode,d=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:b(),hasBlockMovingClientId:d,getBlockIndex:f,getBlockRootClientId:p,getClientIdsOfDescendants:m,canInsertBlockType:v,getBlockName:O,isSelectionEnabled:g(),blockSelectionStart:h(),isMultiSelecting:j(),keepCaretInsideBlock:k().keepCaretInsideBlock}}function Kl(e){var t=e.children,n=Object(b.useRef)(),r=Object(b.useRef)(),o=Object(b.useRef)(),c=Object(b.useRef)(),i=Object(b.useRef)(),a=Object(b.useRef)(),l=Object(b.useRef)(),s=Object(O.useSelect)(Gl,[]),u=s.selectedBlockClientId,d=s.selectionStartClientId,m=s.selectionBeforeEndClientId,v=s.selectionAfterEndClientId,g=s.selectedFirstClientId,h=s.selectedLastClientId,j=s.hasMultiSelection,k=s.blocks,y=s.isNavigationMode,_=s.hasBlockMovingClientId,E=s.isSelectionEnabled,C=s.blockSelectionStart,S=s.isMultiSelecting,w=s.getBlockIndex,B=s.getBlockRootClientId,x=s.getClientIdsOfDescendants,P=s.canInsertBlockType,T=s.getBlockName,N=s.keepCaretInsideBlock,R=Object(O.useDispatch)("core/block-editor"),D=R.multiSelect,A=R.selectBlock,M=R.clearSelectedBlock,L=R.setNavigationMode,F=R.setBlockMovingClientId,V=R.moveBlockToPosition,H=Object(b.useState)(!1),z=Object(le.a)(H,2),U=z[0],G=z[1];Object(b.useEffect)((function(){j&&!S&&c.current.focus()}),[j,S]);var K=f()("block-editor-writing-flow",{"is-navigate-mode":y,"is-block-moving-mode":!!_(),"can-insert-moving-block":U});return Object(b.createElement)("div",{className:K},Object(b.createElement)(Ll,{ref:r,selectedClientId:u,containerRef:n,noCapture:a,hasMultiSelection:j,multiSelectionContainer:c}),Object(b.createElement)("div",{ref:n,onKeyDown:function(e){var t=e.keyCode,s=e.target,b=t===it.UP,f=t===it.DOWN,O=t===it.LEFT,E=t===it.RIGHT,C=t===it.TAB,S=t===it.ESCAPE,I=t===it.ENTER,R=t===it.SPACE,H=b||O,z=O||E,U=b||f,K=z||U,W=e.shiftKey,q=W||e.ctrlKey||e.altKey||e.metaKey,$=U?hr.isVerticalEdge:hr.isHorizontalEdge;if(y){var Y,X=C&&W||b,Q=C&&!W||f,Z=O,J=E;if(X)Y=m;else if(Q)Y=v;else if(Z){var ee;Y=null!==(ee=B(u))&&void 0!==ee?ee:u}else if(J){var te;Y=null!==(te=x([u])[0])&&void 0!==te?te:u}var ne=_();if(ne&&Y&&G(P(T(ne),B(Y))),S&&ne&&(F(null),G(!1)),(I||R)&&ne){var re=B(ne),oe=B(u),ce=w(ne,re),ie=w(u,oe);cen}));if(r){var o=r.id.slice("block-".length);if(o){var a=r.getBoundingClientRect();e.clientX>a.right||e.clientX-1&&Object(Fe.speak)(k)}),[]);var j=Object(c.getBlockType)(a),k=Object(c.__experimentalGetAccessibleBlockLabel)(j,l,i+1,d),y=f()("block-editor-block-list__block-selection-button",{"is-block-moving-mode":!!u});return Object(b.createElement)("div",Object(s.a)({className:y},r),Object(b.createElement)(g.Button,{ref:h,onClick:function(){return m(!1)},onKeyDown:function(e){var n=e.keyCode;n!==it.BACKSPACE&&n!==it.DELETE||(v(t),e.preventDefault())},label:k},Object(b.createElement)(Yn,{clientId:t})))};function Xl(e){var t,n,r,o=Object(b.useState)(!0),c=Object(le.a)(o,2),i=c[0],a=c[1],l=Object(b.useCallback)((function(){var t=hr.focus.tabbable.find(e.current);a(!t.some((function(e){return!("experimentalToolbarItem"in e.dataset)})))}),[]);return Object(b.useLayoutEffect)(l,[]),t=function(){var t=new window.MutationObserver(l);return t.observe(e.current,{childList:!0,subtree:!0}),function(){return t.disconnect()}},n=[i],r=Object(b.useRef)(!1),Object(b.useLayoutEffect)((function(){if(r.current)return t();r.current=!0}),n),i}function Ql(e,t,n){var r=Object(b.useState)(t),o=Object(le.a)(r,1)[0],c=Object(b.useCallback)((function(){var t,n,r;t=e.current,n=hr.focus.tabbable.find(t),(r=Object(le.a)(n,1)[0])&&r.focus()}),[]);Object(l.useShortcut)("core/block-editor/focus-toolbar",c,{bindGlobal:!0,eventName:"keydown"}),Object(b.useEffect)((function(){o&&c()}),[n,o,c])}var Zl=function(e){var t=e.children,n=e.focusOnMount,r=Object(ke.a)(e,["children","focusOnMount"]),o=Object(b.useRef)(),c=Xl(o);return Ql(o,n,c),c?Object(b.createElement)(g.Toolbar,Object(s.a)({__experimentalAccessibilityLabel:r["aria-label"],ref:o},r),t):Object(b.createElement)(g.NavigableMenu,Object(s.a)({orientation:"horizontal",role:"toolbar",ref:o},r),t)};function Jl(){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}}var es=function(e){Object(qt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Wt.a)(t);if(Jl()){var r=Object(Wt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Kt.a)(this,e)});function r(){var e;return Object(zt.a)(this,r),(e=n.apply(this,arguments)).state={isFocused:!1},e.onFocus=e.onFocus.bind(Object(Gt.a)(e)),e.onBlur=e.onBlur.bind(Object(Gt.a)(e)),e}return Object(Ut.a)(r,[{key:"onFocus",value:function(){this.setState({isFocused:!0})}},{key:"onBlur",value:function(){this.setState({isFocused:!1})}},{key:"render",value:function(){var e=this.props,t=e.isFirst,n=e.isLast,r=e.clientIds,o=e.isLocked,c=e.isHidden,i=e.rootClientId,a=e.orientation,l=this.state.isFocused;return o||t&&n&&!i?null:Object(b.createElement)("div",{className:f()("block-editor-block-mover",{"is-visible":l||!c,"is-horizontal":"horizontal"===a})},Object(b.createElement)(g.ToolbarGroup,null,Object(b.createElement)(g.__experimentalToolbarItem,{onFocus:this.onFocus,onBlur:this.onBlur},(function(e){return Object(b.createElement)(Nr,Object(s.a)({clientIds:r},e))})),Object(b.createElement)(g.__experimentalToolbarItem,{onFocus:this.onFocus,onBlur:this.onBlur},(function(e){return Object(b.createElement)(Rr,Object(s.a)({clientIds:r},e))}))))}}]),r}(b.Component),ts=Object(O.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,b=o.getBlockRootClientId,d=Object(p.castArray)(r),f=Object(p.first)(d),m=i(f),v=b(Object(p.first)(d)),O=a(f,v),g=0===O,h=a(Object(p.last)(d),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}}))(es);function ns(){var e=Object(O.useDispatch)("core/block-editor").selectBlock,t=Object(O.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockName,r=(0,t.getBlockParents)((0,t.getSelectedBlockClientId)()),o=r[r.length-1],i=n(o);return{parentBlockType:Object(c.getBlockType)(i),firstParentClientId:o}}),[]),n=t.parentBlockType,r=t.firstParentClientId;return void 0!==r?Object(b.createElement)("div",{className:"block-editor-block-parent-selector",key:r},Object(b.createElement)(g.ToolbarButton,{className:"block-editor-block-parent-selector__button",onClick:function(){return e(r)},label:Object(I.sprintf)(Object(I.__)("Select parent (%s)"),n.title),showTooltip:!0,icon:Object(b.createElement)(Un,{icon:n.icon})})):null}var rs=Object(b.createElement)(B.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(b.createElement)(B.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 os(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=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}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 r,o,c=!0,i=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return c=e.done,e},e:function(e){i=!0,o=e},f:function(){try{c||null==r.return||r.return()}finally{if(i)throw o}}}}function as(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0}})),Object(O.withDispatch)((function(e,t){return{onTransform:function(n,r){e("core/block-editor").replaceBlocks(t.clientIds,Object(c.switchToBlockType)(n,r))}}})))(ms),Os=n(44);function gs(){var e=Object(O.useSelect)((function(e){return e("core/block-editor")}),[]).getBlockName,t=Object(O.useSelect)((function(e){return e("core/blocks")}),[]).getBlockType,n=Object(O.useDispatch)("core/notices").createSuccessNotice;return Object(b.useCallback)((function(r,o){var c="";if(1===o.length){var i=o[0],a=t(e(i)).title;c="copy"===r?Object(I.sprintf)(Object(I.__)('Copied "%s" to clipboard.'),a):Object(I.sprintf)(Object(I.__)('Moved "%s" to clipboard.'),a)}else c="copy"===r?Object(I.sprintf)(Object(I._n)("Copied %d block to clipboard.","Copied %d blocks to clipboard.",o.length),o.length):Object(I.sprintf)(Object(I._n)("Moved %d block to clipboard.","Moved %d blocks to clipboard.",o.length),o.length);n(c,{type:"snackbar"})}),[])}var hs=function(e){var t=e.children,n=Object(b.useRef)(),r=Object(O.useSelect)((function(e){return e("core/block-editor")}),[]),o=r.getBlocksByClientId,i=r.getSelectedBlockClientIds,a=r.hasMultiSelection,l=r.getSettings,s=Object(O.useDispatch)("core/block-editor"),u=s.flashBlock,d=s.removeBlocks,f=s.replaceBlocks,m=gs(),v=l().__experimentalCanUserUseUnfilteredHTML,g=function(e){var t=i();if(0!==t.length){if(!a())if("copy"===e.type||"cut"===e.type?Object(hr.documentHasUncollapsedSelection)():Object(hr.documentHasSelection)())return;if(n.current.contains(e.target)){if(e.preventDefault(),"copy"===e.type||"cut"===e.type){1===t.length&&u(t[0]),m(e.type,t);var r=o(t),l=Object(c.serialize)(r);e.clipboardData.setData("text/plain",l),e.clipboardData.setData("text/html",l)}if("cut"===e.type)d(t);else if("paste"===e.type){var s=function(e){var t=e.clipboardData,n=t.items,r=t.files;n=Object(p.isNil)(n)?[]:n,r=Object(p.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(p.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'')})).join(""),o=""),{html:c,plainText:o}}(e),b=s.plainText,O=s.html,g=Object(c.pasteHandler)({HTML:O,plainText:b,mode:"BLOCKS",canUserUseUnfilteredHTML:v});f(t,g,g.length-1,-1)}}}};return Object(b.createElement)("div",{ref:n,onCopy:g,onCut:g,onPaste:g},t)};function js(e){var t=e.clientIds,n=e.children,r=e.__experimentalUpdateSelection,o=Object(O.useSelect)((function(e){return e("core/block-editor")}),[]),i=o.canInsertBlockType,a=o.getBlockRootClientId,l=o.getBlocksByClientId,s=o.getTemplateLock,u=Object(O.useSelect)((function(e){return e("core/blocks")}),[]),b=u.getDefaultBlockName,d=u.getGroupingBlockName,f=l(t),m=a(t[0]),v=Object(p.every)(f,(function(e){return!!e&&Object(c.hasBlockSupport)(e.name,"multiple",!0)&&i(e.name,m)})),g=i(b(),m),h=Object(O.useDispatch)("core/block-editor"),j=h.removeBlocks,k=h.replaceBlocks,y=h.duplicateBlocks,_=h.insertAfterBlock,E=h.insertBeforeBlock,C=h.flashBlock,S=h.setBlockMovingClientId,w=h.setNavigationMode,I=gs();return n({canDuplicate:v,canInsertDefaultBlock:g,isLocked:!!s(m),rootClientId:m,blocks:f,onDuplicate:function(){return y(t,r)},onRemove:function(){return j(t,r)},onInsertBefore:function(){E(Object(p.first)(Object(p.castArray)(t)))},onInsertAfter:function(){_(Object(p.last)(Object(p.castArray)(t)))},onMoveTo:function(){w(!0),S(t[0])},onGroup:function(){if(f.length){var e=d(),n=Object(c.switchToBlockType)(f,e);n&&k(t,n)}},onUngroup:function(){if(f.length){var e=f[0].innerBlocks;e.length&&k(t,e)}},onCopy:function(){var e=f.map((function(e){return e.clientId}));1===f.length&&C(e[0]),I("copy",e)}})}var ks=Object(m.compose)([Object(O.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(O.withDispatch)((function(e,t){var n=t.onToggle,r=void 0===n?p.noop:n,o=t.clientId;return{onToggleMode:function(){e("core/block-editor").toggleBlockMode(o),r()}}}))])((function(e){var t=e.blockType,n=e.mode,r=e.onToggleMode,o=e.small,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(I.__)("Edit as HTML"):Object(I.__)("Edit visually");return Object(b.createElement)(g.MenuItem,{onClick:r},!i&&s)}));function ys(e){var t=e.shouldRender,n=e.onClick,r=e.small;if(!t)return null;var o=Object(I.__)("Convert to Blocks");return Object(b.createElement)(g.MenuItem,{onClick:n},!r&&o)}var _s=Object(m.compose)(Object(O.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(O.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)}))}}})))(ys),Es=Object(m.compose)(Object(O.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor").getBlock(n);return{block:r,shouldRender:r&&r.name===Object(c.getFreeformContentHandlerName)()}})),Object(O.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.serialize)(n)}))}}})))(ys),Cs=Object(g.createSlotFill)("__experimentalBlockSettingsMenuFirstItem"),Ss=Cs.Fill,ws=Cs.Slot;Ss.Slot=ws;var Is=Ss;function Bs(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;tc){var a=Math.max(o-c-50,0),l=Math.max(i-c-50,0)/a;n.current=25*l}else if(e.clientY1,C=f()("block-editor-block-toolbar",y&&"is-showing-movers");return Object(b.createElement)("div",{className:C},Object(b.createElement)("div",Object(s.a)({className:"block-editor-block-toolbar__mover-switcher-container",ref:v},j),!E&&Object(b.createElement)("div",{className:"block-editor-block-toolbar__block-parent-selector-wrapper"},Object(b.createElement)(ns,{clientIds:r})),(_||E)&&Object(b.createElement)(Vs,{clientIds:r,cloneClassname:"block-editor-block-toolbar__drag-clone"},(function(e){var n=e.isDraggable,o=e.onDraggableStart,c=e.onDraggableEnd;return Object(b.createElement)("div",{className:"block-editor-block-toolbar__block-switcher-wrapper",draggable:n&&!t,onDragStart:o,onDragEnd:c},Object(b.createElement)(vs,{clientIds:r}),Object(b.createElement)(ts,{clientIds:r}))}))),_&&Object(b.createElement)(b.Fragment,null,Object(b.createElement)(w.Slot,{bubblesVirtually:!0,className:"block-editor-block-toolbar__slot"}),Object(b.createElement)(fr.Slot,{bubblesVirtually:!0,className:"block-editor-block-toolbar__slot"})),Object(b.createElement)(Ms,{clientIds:r}))}var Ws=function(e){var t=e.focusOnMount,n=Object(ke.a)(e,["focusOnMount"]),r=Object(O.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(b.createElement)("div",{className:"block-editor-block-contextual-toolbar-wrapper"},Object(b.createElement)(Zl,Object(s.a)({focusOnMount:t,className:"block-editor-block-contextual-toolbar","aria-label":Object(I.__)("Block tools")},n),Object(b.createElement)(Ks,null)))};function qs(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 $s(e){var t=e.clientId,n=e.rootClientId,r=e.isValid,o=e.isEmptyDefaultBlock,c=e.capturingClientId,i=Object(O.useSelect)(qs,[]),a=i.isNavigationMode,s=i.isMultiSelecting,u=i.isTyping,d=i.isCaretWithinFormattedText,p=i.hasMultiSelection,v=i.hasFixedToolbar,h=i.lastClientId,j=Object(m.useViewportMatch)("medium"),k=Object(b.useState)(!1),y=Object(le.a)(k,2),_=y[0],E=y[1],C=Object(b.useState)(!1),S=Object(le.a)(C,2),w=S[0],I=S[1],B=Object(b.useContext)(Zs),x=!a&&o&&r,P=a,T=!a&&!v&&j&&!x&&!s&&(!u||d),N=!(a||T||v||o);if(Object(l.useShortcut)("core/block-editor/focus-toolbar",Object(b.useCallback)((function(){return E(!0)}),[]),{bindGlobal:!0,eventName:"keydown",isDisabled:!N}),!(P||T||_||x))return null;var R=B[t];if(c&&(R=document.getElementById("block-"+c)),!R)return null;var D=R;if(p){var A=B[h];if(!A)return null;D={top:R,bottom:A}}var M=x?"top left right":"top right left";return Object(b.createElement)(g.Popover,{noArrow:!0,animate:!1,position:M,focusOnMount:!1,anchorRef:D,className:"block-editor-block-list__block-popover",__unstableSticky:!x,__unstableSlotName:"block-toolbar",__unstableBoundaryParent:!0,__unstableObserveElement:R,onBlur:function(){return E(!1)},shouldAnchorIncludePadding:!0},(T||_)&&Object(b.createElement)("div",{onFocus:function(){I(!0)},onBlur:function(){I(!1)},tabIndex:-1,className:f()("block-editor-block-list__block-popover-inserter",{"is-visible":w})},Object(b.createElement)(Ml,{clientId:t,rootClientId:n,__experimentalIsQuick:!0})),(T||_)&&Object(b.createElement)(Ws,{focusOnMount:_}),P&&Object(b.createElement)(Yl,{clientId:t,rootClientId:n}),x&&Object(b.createElement)("div",{className:"block-editor-block-list__empty-block-inserter"},Object(b.createElement)(Ml,{position:"bottom right",rootClientId:n,clientId:t,__experimentalIsQuick:!0})))}function Ys(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,b=i(s)||{},d=b.name,f=b.attributes,m=void 0===f?{}:f,v=b.isValid,O=a(s),g=l(O),h=Object(p.findIndex)(g,["__experimentalCaptureToolbars",!0]);return-1!==h&&(u=O[h]),{clientId:s,rootClientId:o(s),name:d,isValid:v,isEmptyDefaultBlock:d&&Object(c.isUnmodifiedDefaultBlock)({name:d,attributes:m}),capturingClientId:u}}}function Xs(){var e=Object(O.useSelect)(Ys,[]);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(b.createElement)($s,{clientId:t,rootClientId:n,isValid:o,isEmptyDefaultBlock:c,capturingClientId:i}):null}var Qs=Object(b.createContext)(),Zs=Object(b.createContext)(),Js=Object(b.createContext)();function eu(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.hasMultiSelection;return{selectedBlockClientId:n(),hasMultiSelection:r()}}function tu(e){Ye(e.target)&&e.preventDefault()}var nu=Object(b.forwardRef)((function(e,t){var n=e.children,r=e.className,o=Object(O.useSelect)(eu,[]),c=o.selectedBlockClientId,i=o.hasMultiSelection,a=Object(O.useDispatch)("core/block-editor").selectBlock,l=function(e){var t=Object(O.useSelect)(to,[]),n=t.isSelectionEnabled,r=t.isMultiSelecting,o=t.multiSelectedBlockClientIds,c=t.hasMultiSelection,i=t.getBlockParents,a=t.selectedBlockClientId,l=Object(O.useDispatch)("core/block-editor"),s=l.startMultiSelect,u=l.stopMultiSelect,d=l.multiSelect,f=l.selectBlock,p=Object(b.useRef)(),m=Object(b.useRef)(),v=Object(b.useRef)();Object(b.useEffect)((function(){if(c&&!r){var e=o.length;if(!(e<2)){var t=o[0],n=o[e-1],i=qe(t),l=qe(n),s=window.getSelection(),u=document.createRange();i=eo(i,"start"),l=eo(l,"end"),u.setStartBefore(i),u.setEndAfter(l),s.removeAllRanges(),s.addRange(u)}}else{if(!a||r)return;var b=window.getSelection();if(b.rangeCount&&!b.isCollapsed){var d=qe(a),f=b.getRangeAt(0),p=f.startContainer,m=f.endContainer;!d||d.contains(p)&&d.contains(m)||b.removeAllRanges()}}}),[c,r,o,f,a]);var g=Object(b.useCallback)((function(t){var n=t.isSelectionEnd,r=window.getSelection();if(r.rangeCount&&!r.isCollapsed){var o=Ye(r.focusNode);if(m.current===o){if(f(o),n&&(no(e.current,!0),r.rangeCount)){var c=r.getRangeAt(0).commonAncestorContainer;v.current.contains(c)&&v.current.focus()}}else{var a=[].concat(Object(ae.a)(i(m.current)),[m.current]),l=[].concat(Object(ae.a)(i(o)),[o]),s=Math.min(a.length,l.length)-1;d(a[s],l[s])}}else no(e.current,!0)}),[f,i,d]),h=Object(b.useCallback)((function(){document.removeEventListener("selectionchange",g),window.removeEventListener("mouseup",h),p.current=window.requestAnimationFrame((function(){g({isSelectionEnd:!0}),u()}))}),[g,u]);return Object(b.useEffect)((function(){return function(){document.removeEventListener("selectionchange",g),window.removeEventListener("mouseup",h),window.cancelAnimationFrame(p.current)}}),[g,h]),Object(b.useCallback)((function(t){n&&(m.current=t,v.current=document.activeElement,s(),document.addEventListener("selectionchange",g),window.addEventListener("mouseup",h),no(e.current,!1))}),[n,s,h])}(t),s=Object(b.useState)({}),u=Object(le.a)(s,2),d=u[0],p=u[1];return Object(b.createElement)($l,{containerRef:t},Object(b.createElement)(Zs.Provider,{value:d},Object(b.createElement)(Xs,null),Object(b.createElement)("div",{ref:t,className:f()(r,"is-root-container"),onFocus:function(e){if(!i){var t=Ye(e.target);t&&t!==c&&a(t)}},onDragStart:tu},Object(b.createElement)(Js.Provider,{value:p},Object(b.createElement)(Qs.Provider,{value:l},n)))))})),ru=["p","div","h1","h2","h3","h4","h5","h6","ol","ul","li","figure","nav","pre","header","section","aside","footer","main"];function ou(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 cu(e){for(var t=1;t1,w=m||k,B=f()("block-editor-block-navigation-block__mover-cell",{"is-visible":w}),x=Mr().__experimentalFeatures,P=f()("block-editor-block-navigation-block__menu-cell",{"is-visible":w});return Object(b.useEffect)((function(){x&&n&&u.current.focus()}),[x,n]),Object(b.createElement)(Er,{className:f()({"is-selected":n}),onMouseEnter:function(){return v(!0)},onMouseLeave:function(){return v(!1)},onFocus:function(){return y(!0)},onBlur:function(){return y(!1)},level:c,position:o,rowCount:i,path:s},Object(b.createElement)(g.__experimentalTreeGridCell,{className:"block-editor-block-navigation-block__contents-cell",colSpan:S?void 0:2,ref:u},(function(e){var a=e.ref,s=e.tabIndex,u=e.onFocus;return Object(b.createElement)("div",{className:"block-editor-block-navigation-block__contents-container"},Object(b.createElement)(Dr,{level:c,isLastRow:o===i,terminatedLevels:l}),Object(b.createElement)(ju,{block:t,onClick:function(){return r(t.clientId)},isSelected:n,position:o,siblingCount:C,level:c,ref:a,tabIndex:s,onFocus:u}))})),S&&Object(b.createElement)(b.Fragment,null,Object(b.createElement)(g.__experimentalTreeGridCell,{className:B,withoutGridItem:!0},Object(b.createElement)(g.__experimentalTreeGridItem,null,(function(e){var t=e.ref,n=e.tabIndex,r=e.onFocus;return Object(b.createElement)(Nr,{__experimentalOrientation:"vertical",clientIds:[E],ref:t,tabIndex:n,onFocus:r})})),Object(b.createElement)(g.__experimentalTreeGridItem,null,(function(e){var t=e.ref,n=e.tabIndex,r=e.onFocus;return Object(b.createElement)(Rr,{__experimentalOrientation:"vertical",clientIds:[E],ref:t,tabIndex:n,onFocus:r})})))),x&&Object(b.createElement)(g.__experimentalTreeGridCell,{className:P},(function(e){var t=e.ref,n=e.tabIndex,o=e.onFocus;return Object(b.createElement)(As,{clientIds:[E],icon:Or.a,toggleProps:{ref:t,tabIndex:n,onFocus:o},disableOpenOnArrowDown:!0,__experimentalSelectBlock:r},(function(e){var t=e.onClose;return Object(b.createElement)(g.MenuGroup,null,Object(b.createElement)(g.MenuItem,{onClick:Object(vr.a)(mr.a.mark((function e(){return mr.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,_(null);case 2:return e.next=4,_(E);case 4:t();case 5:case"end":return e.stop()}}),e)})))},Object(I.__)("Go to block")))}))})))}function yu(e){var t=e.parentBlockClientId,n=e.position,r=e.level,o=e.rowCount,c=e.terminatedLevels,i=e.path,a=Object(m.useInstanceId)(yu),l="block-navigation-appender-row__description_".concat(a),s=Object(I.sprintf)(Object(I.__)("Add block at position %1$d, Level %2$d"),n,r);return Object(b.createElement)(Er,{level:r,position:n,rowCount:o,path:i},Object(b.createElement)(g.__experimentalTreeGridCell,{className:"block-editor-block-navigation-appender__cell",colSpan:"3"},(function(e){var i=e.ref,a=e.tabIndex,u=e.onFocus;return Object(b.createElement)("div",{className:"block-editor-block-navigation-appender__container"},Object(b.createElement)(Dr,{level:r,isLastRow:n===o,terminatedLevels:c}),Object(b.createElement)(Ml,{rootClientId:t,__experimentalSelectBlockOnInsert:!1,"aria-describedby":l,toggleProps:{ref:i,tabIndex:a,onFocus:u}}),Object(b.createElement)("div",{className:"block-editor-block-navigation-appender__description",id:l},s))})))}function _u(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,u=e.terminatedLevels,d=void 0===u?[]:u,f=e.path,m=void 0===f?[]:f,v=!a,O=Object(p.compact)(t),g=function(e){return o&&!v&&r===e},h=g(a),j=h?O.length+1:O.length,k=j;return Object(b.createElement)(b.Fragment,null,Object(p.map)(O,(function(e,t){var a=e.clientId,l=e.innerBlocks,u=t+1,f=j===u?[].concat(Object(ae.a)(d),[s]):d,p=[].concat(Object(ae.a)(m),[u]),v=i&&!!l&&!!l.length,O=g(a);return Object(b.createElement)(b.Fragment,{key:a},Object(b.createElement)(ku,{block:e,onClick:n,isSelected:r===a,level:s,position:u,rowCount:j,showBlockMovers:c,terminatedLevels:d,path:p}),(v||O)&&Object(b.createElement)(_u,{blocks:l,selectedBlockClientId:r,selectBlock:n,showAppender:o,showBlockMovers:c,showNestedBlocks:i,parentBlockClientId:a,level:s+1,terminatedLevels:f,path:p}))})),h&&Object(b.createElement)(yu,{parentBlockClientId:a,position:j,rowCount:k,level:s,terminatedLevels:d,path:[].concat(Object(ae.a)(m),[k])}))}function Eu(e){var t=e.__experimentalFeatures,n=Object(ke.a)(e,["__experimentalFeatures"]),r=Object(b.useMemo)((function(){return{__experimentalFeatures:t}}),[t]);return Object(b.createElement)(g.__experimentalTreeGrid,{className:"block-editor-block-navigation-tree","aria-label":Object(I.__)("Block navigation structure")},Object(b.createElement)(Ar.Provider,{value:r},Object(b.createElement)(_u,n)))}_u.defaultProps={selectBlock:function(){}};var Cu=Object(m.compose)(Object(O.withSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getBlockHierarchyRootClientId,o=t.getBlock,c=t.getBlocks,i=n();return{rootBlocks:c(),rootBlock:i?o(r(i)):null,selectedBlockClientId:i}})),Object(O.withDispatch)((function(e,t){var n=t.onSelect,r=void 0===n?p.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(b.createElement)("div",{className:"block-editor-block-navigation__container"},Object(b.createElement)("p",{className:"block-editor-block-navigation__label"},Object(I.__)("Block navigation")),i&&Object(b.createElement)(Eu,{blocks:[t],selectedBlockClientId:r,selectBlock:o,__experimentalFeatures:c,showNestedBlocks:!0}),!i&&Object(b.createElement)(Eu,{blocks:n,selectedBlockClientId:r,selectBlock:o,__experimentalFeatures:c}))})),Su=Object(b.createElement)(g.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},Object(b.createElement)(g.Path,{d:"M13.8 5.2H3v1.5h10.8V5.2zm-3.6 12v1.5H21v-1.5H10.2zm7.2-6H6.6v1.5h10.8v-1.5z"}));function wu(e){var t=e.isEnabled,n=e.onToggle,r=e.isOpen,o=e.innerRef,c=Object(ke.a)(e,["isEnabled","onToggle","isOpen","innerRef"]);Object(l.useShortcut)("core/edit-post/toggle-block-navigation",Object(b.useCallback)(n,[n]),{bindGlobal:!0,isDisabled:!t});var i=Object(O.useSelect)((function(e){return e("core/keyboard-shortcuts").getShortcutRepresentation("core/edit-post/toggle-block-navigation")}),[]);return Object(b.createElement)(g.Button,Object(s.a)({},c,{ref:o,icon:Su,"aria-expanded":r,onClick:t?n:void 0,label:Object(I.__)("Block navigation"),className:"block-editor-block-navigation",shortcut:i,"aria-disabled":!t}))}var Iu=Object(b.forwardRef)((function(e,t){var n=e.isDisabled,r=e.__experimentalFeatures,o=Object(ke.a)(e,["isDisabled","__experimentalFeatures"]),c=Object(O.useSelect)((function(e){return!!e("core/block-editor").getBlockCount()}),[])&&!n;return Object(b.createElement)(g.Dropdown,{contentClassName:"block-editor-block-navigation__popover",position:"bottom right",renderToggle:function(e){var n=e.isOpen,r=e.onToggle;return Object(b.createElement)(wu,Object(s.a)({},o,{innerRef:t,isOpen:n,onToggle:r,isEnabled:c}))},renderContent:function(e){var t=e.onClose;return Object(b.createElement)(Cu,{onSelect:t,__experimentalFeatures:r})}})})),Bu=n(125),xu=[it.rawShortcut.primary("z"),it.rawShortcut.primaryShift("z"),it.rawShortcut.primary("y")],Pu=Object(b.createElement)(g.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(p.fromPairs)(xu.map((function(e){return[e,function(e){return e.preventDefault()}]})))}),Tu=function(){return Pu};function Nu(e){return e.filter((function(e){var t=e.type;return/^image\/(?:jpe?g|png|gif)$/.test(t)})).map((function(e){return'')})).join("")}var Ru={position:"bottom right",isAlternate:!0},Du=function(){return Object(b.createElement)("div",{className:"block-editor-format-toolbar"},Object(b.createElement)(g.ToolbarGroup,null,["bold","italic","link","text-color"].map((function(e){return Object(b.createElement)(g.Slot,{name:"RichText.ToolbarControls.".concat(e),key:e})})),Object(b.createElement)(g.Slot,{name:"RichText.ToolbarControls"},(function(e){return 0!==e.length&&Object(b.createElement)(g.__experimentalToolbarItem,null,(function(t){return Object(b.createElement)(g.DropdownMenu,{icon:Ir.a,label:Object(I.__)("More rich text controls"),toggleProps:t,controls:Object(p.orderBy)(e.map((function(e){return Object(le.a)(e,1)[0].props})),"title"),popoverProps:Ru})}))}))))},Au=function(e){var t=e.inline,n=e.anchorRef;return t?Object(b.createElement)(g.Popover,{noArrow:!0,position:"top center",focusOnMount:!1,anchorRef:n,className:"block-editor-rich-text__inline-format-toolbar"},Object(b.createElement)(Du,null)):Object(b.createElement)(fr,null,Object(b.createElement)(Du,null))};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 Lu(e){if(!0===e||"p"===e||"li"===e)return!0===e?"p":e}function Fu(e){var t=e.allowedFormats,n=e.formattingControls;return e.disableFormats?Fu.EMPTY_ARRAY:t||n?t||(cr()("wp.blockEditor.RichText formattingControls prop",{alternative:"allowedFormats"}),n.map((function(e){return"core/".concat(e)}))):void 0}Fu.EMPTY_ARRAY=[];var Vu=Object(b.forwardRef)((function e(t,n){var r=t.children,o=t.tagName,a=t.value,l=t.onChange,d=t.isSelected,p=t.multiline,v=t.inlineToolbar,g=t.wrapperClassName,h=t.className,j=t.autocompleters,y=t.onReplace,_=t.placeholder,E=t.keepPlaceholderOnFocus,C=t.allowedFormats,S=t.formattingControls,w=t.withoutInteractiveFormatting,I=t.onRemove,B=t.onMerge,x=t.onSplit,P=t.__unstableOnSplitAtEnd,T=t.__unstableOnSplitMiddle,N=t.identifier,R=t.start,D=t.reversed,A=t.style,M=t.preserveWhiteSpace,L=t.__unstableEmbedURLOnPaste,F=t.__unstableDisableFormats,V=t.disableLineBreaks,H=Object(ke.a)(t,["children","tagName","value","onChange","isSelected","multiline","inlineToolbar","wrapperClassName","className","autocompleters","onReplace","placeholder","keepPlaceholderOnFocus","allowedFormats","formattingControls","withoutInteractiveFormatting","onRemove","onMerge","onSplit","__unstableOnSplitAtEnd","__unstableOnSplitMiddle","identifier","start","reversed","style","preserveWhiteSpace","__unstableEmbedURLOnPaste","__unstableDisableFormats","disableLineBreaks"]),z=Object(m.useInstanceId)(e);N=N||z;var U=Object(b.useRef)(),G=n||U,K=k(),W=K.clientId,q=K.onCaretVerticalPositionChange,$=K.isSelected,Y=Object(O.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,f=n.isMultiSelecting,p=n.hasMultiSelection,m=o(),v=i(),O=a().__experimentalUndo;void 0===d?t=m.clientId===W&&m.attributeKey===N:d&&(t=m.clientId===W);var g={};if("native"===b.Platform.OS){var h=W&&s(W);g={shouldBlurOnUnmount:h&&t&&Object(c.isUnmodifiedDefaultBlock)(h)}}return function(e){for(var t=1;t0,me=a,ve=l;Array.isArray(a)&&(me=c.children.toHTML(a),ve=function(e){return l(c.children.fromDOM(Object(i.__unstableCreateElement)(document,e).childNodes))});var Oe=Object(b.useCallback)((function(e,t){ue(W,N,e,t)}),[W,N]),ge=Object(b.useCallback)((function(e){var t=e.value,n=e.isReverse;B&&B(!n),I&&Object(i.isEmpty)(t)&&n&&I(!n)}),[B,I]),he=Object(b.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(y&&x){var n=[],r=Object(i.split)(e),o=Object(le.a)(r,2),c=o[0],a=o[1],l=t.length>0,s=-1;l&&Object(i.isEmpty)(c)||(n.push(x(Object(i.toHTMLString)({value:c,multilineTag:de}))),s+=1),l?(n.push.apply(n,Object(ae.a)(t)),s+=t.length):T&&n.push(T()),(l||T)&&Object(i.isEmpty)(a)||n.push(x(Object(i.toHTMLString)({value:a,multilineTag:de})));var u=l?s:1,b=l?-1:null;y(n,u,b)}}),[y,x,de,T]),je=Object(b.useCallback)((function(e){var t=e.value,n=e.onChange,r=e.shiftKey,o=y&&x;if(y){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&&(y([l.transform({content:t.text})]),be())}if(p)r?V||n(Object(i.insert)(t,"\n")):o&&Object(i.__unstableIsEmptyLine)(t)?he(t):n(Object(i.__unstableInsertLineSeparator)(t));else{var s=t.text,u=t.start,b=t.end,d=P&&u===b&&b===s.length;r||!o&&!d?V||n(Object(i.insert)(t,"\n")):!o&&d?P():o&&he(t)}}),[y,x,be,p,he,P]),ye=Object(b.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:Nu(l),mode:"BLOCKS",tagName:o});return window.console.log("Received items:\n\n",l),void(y&&Object(i.isEmpty)(t)?y(u):he(t,u))}var b,d=y&&x?"AUTO":"INLINE";"AUTO"===d&&Object(i.isEmpty)(t)&&(b=a,Object(Bu.regexp)(".*").test(b))&&(d="BLOCKS"),L&&Object(i.isEmpty)(t)&&Object(hl.isURL)(a.trim())&&(d="BLOCKS");var f=Object(c.pasteHandler)({HTML:r,plainText:a,mode:d,tagName:o});if("string"==typeof f){var m=Object(i.create)({html:f});if(s.length)for(var v=m.formats.length;v--;)m.formats[v]=[].concat(Object(ae.a)(s),Object(ae.a)(m.formats[v]||[]));p&&(m=Object(i.replace)(m,/\n+/g,i.__UNSTABLE_LINE_SEPARATOR)),n(Object(i.insert)(t,m))}else f.length>0&&(y&&Object(i.isEmpty)(t)?y(f,f.length-1,-1):he(t,f))}),[o,y,x,he,L,p]),_e=Object(b.useCallback)((function(e,t){if(y){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);y([u]),be()}}}}),[y,be]),Ee=Object(b.createElement)(i.__experimentalRichText,Object(s.a)({},H,{clientId:W,identifier:N,ref:G,value:me,onChange:ve,selectionStart:Q,selectionEnd:Z,onSelectionChange:Oe,tagName:o,className:f()("block-editor-rich-text__editable",h,{"keep-placeholder-on-focus":E}),placeholder:_,allowedFormats:fe,withoutInteractiveFormatting:w,onEnter:je,onDelete:ge,onPaste:ye,__unstableIsSelected:J,__unstableInputRule:_e,__unstableMultilineTag:de,__unstableIsCaretWithinFormattedText:X,__unstableOnEnterFormattedText:ie,__unstableOnExitFormattedText:se,__unstableOnCreateUndoLevel:ce,__unstableMarkAutomaticChange:be,__unstableDidAutomaticChange:ee,__unstableUndo:ne,__unstableDisableFormats:F,style:A,preserveWhiteSpace:M,disabled:te,start:R,reversed:D,onCaretVerticalPositionChange:q,blockIsSelected:void 0!==d?d:$,shouldBlurOnUnmount:re}),(function(e){var t=e.isSelected,n=e.value,o=e.onChange,c=e.onFocus,i=e.editableProps,a=e.editableTagName;return Object(b.createElement)(b.Fragment,null,r&&r({value:n,onChange:o,onFocus:c}),t&&pe&&Object(b.createElement)(Au,{inline:v,anchorRef:G.current}),t&&Object(b.createElement)(Tu,null),Object(b.createElement)(qn,{onReplace:y,completers:j,record:n,onChange:o,isSelected:t},(function(e){var t=e.listBoxId,n=e.activeId,r=e.onKeyDown;return Object(b.createElement)(a,Object(s.a)({},i,{"aria-autocomplete":t?"list":void 0,"aria-owns":t,"aria-activedescendant":n,start:R,reversed:D,onKeyDown:function(e){r(e),i.onKeyDown(e)}}))})))}));return g?(cr()("wp.blockEditor.RichText wrapperClassName prop",{alternative:"className prop or create your own wrapper div"}),Object(b.createElement)("div",{className:f()("block-editor-rich-text",g)},Ee)):Ee}));Vu.Content=function(e){var t=e.value,n=e.tagName,r=e.multiline,o=Object(ke.a)(e,["value","tagName","multiline"]);Array.isArray(t)&&(t=c.children.toHTML(t));var i=Lu(r);!t&&i&&(t="<".concat(i,">"));var a=Object(b.createElement)(b.RawHTML,null,t);return n?Object(b.createElement)(n,Object(p.omit)(o,["format"]),a):a},Vu.isEmpty=function(e){return!e||0===e.length},Vu.Content.defaultProps={format:"string",value:""};var Hu=Vu;function zu(e){var t=e.value,n=e.onChange;return Object(b.createElement)(hu,null,Object(b.createElement)(Hu,{value:t,onChange:n,placeholder:Object(I.__)("Navigation item"),keepPlaceholderOnFocus:!0,withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic","core/image","core/strikethrough"]}))}var Uu=n(299);var Gu=function(e){var t=e.icon,n=void 0===t?Uu.a:t,r=e.label,o=void 0===r?Object(I.__)("Choose variation"):r,c=e.instructions,i=void 0===c?Object(I.__)("Select a variation to start with."):c,a=e.variations,l=e.onSelect,s=e.allowSkip,u=f()("block-editor-block-variation-picker",{"has-many-variations":a.length>4});return Object(b.createElement)(g.Placeholder,{icon:n,label:o,instructions:i,className:u},Object(b.createElement)("ul",{className:"block-editor-block-variation-picker__variations",role:"list","aria-label":Object(I.__)("Block variations")},a.map((function(e){return Object(b.createElement)("li",{key:e.name},Object(b.createElement)(g.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(b.createElement)("span",{className:"block-editor-block-variation-picker__variation-label",role:"presentation"},e.title))}))),s&&Object(b.createElement)("div",{className:"block-editor-block-variation-picker__skip"},Object(b.createElement)(g.Button,{isLink:!0,onClick:function(){return l()}},Object(I.__)("Skip"))))},Ku=Object(b.createElement)(g.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(b.createElement)(g.Path,{d:"M15 4H9v11h6V4zM4 18.5V20h16v-1.5H4z"})),Wu=Object(b.createElement)(g.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(b.createElement)(g.Path,{d:"M20 11h-5V4H9v7H4v1.5h5V20h6v-7.5h5z"}));function qu(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 $u={top:{icon:Object(b.createElement)(g.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(b.createElement)(g.Path,{d:"M9 20h6V9H9v11zM4 4v1.5h16V4H4z"})),title:Object(I._x)("Vertically Align Top","Block vertical alignment setting")},center:{icon:Wu,title:Object(I._x)("Vertically Align Middle","Block vertical alignment setting")},bottom:{icon:Ku,title:Object(I._x)("Vertically Align Bottom","Block vertical alignment setting")}},Yu=["top","center","bottom"],Xu={isAlternate:!0};var Qu=function(e){var t=e.value,n=e.onChange,r=e.controls,o=void 0===r?Yu:r,c=e.isCollapsed,i=void 0===c||c,a=$u[t],l=$u.top;return Object(b.createElement)(g.ToolbarGroup,{popoverProps:Xu,isCollapsed:i,icon:a?a.icon:l.icon,label:Object(I._x)("Change vertical alignment","Block vertical alignment setting label"),controls:o.map((function(e){return function(e){for(var t=1;t0&&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(hl.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(I.sprintf)(Object(I._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(I.__)("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 it.UP:e.stopPropagation(),e.preventDefault();var a=r?r-1:o.length-1;this.setState({selectedSuggestion:a});break;case it.DOWN:e.stopPropagation(),e.preventDefault();var l=null===r||r===o.length-1?0:r+1;this.setState({selectedSuggestion:l});break;case it.TAB:null!==this.state.selectedSuggestion&&(this.selectLink(i),this.props.speak(Object(I.__)("Link selected.")));break;case it.ENTER:null!==this.state.selectedSuggestion&&(e.stopPropagation(),this.selectLink(i))}}else switch(e.keyCode){case it.UP:0!==e.target.selectionStart&&(e.stopPropagation(),e.preventDefault(),e.target.setSelectionRange(0,0));break;case it.DOWN:this.props.value.length!==e.target.selectionStart&&(e.stopPropagation(),e.preventDefault(),e.target.setSelectionRange(this.props.value.length,this.props.value.length))}}},{key:"selectLink",value:function(e){this.props.onChange(e.url,e),this.setState({selectedSuggestion:null,showSuggestions:!1})}},{key:"handleOnClick",value:function(e){this.selectLink(e),this.inputRef.current.focus()}},{key:"render",value:function(){var e=this,t=this.props,n=t.label,r=t.instanceId,o=t.className,c=t.isFullWidth,i=t.__experimentalRenderSuggestions,a=t.placeholder,l=void 0===a?Object(I.__)("Paste URL or type to search"):a,u=t.value,d=void 0===u?"":u,m=t.autoFocus,v=void 0===m||m,O=t.__experimentalShowInitialSuggestions,h=void 0!==O&&O,j=this.state,k=j.showSuggestions,y=j.suggestions,_=j.selectedSuggestion,E=j.loading,C="url-input-control-".concat(r),S="block-editor-url-input-suggestions-".concat(r),w="block-editor-url-input-suggestion-".concat(r),B={id:S,ref:this.autocompleteRef,role:"listbox"},x=function(t,n){return{role:"option",tabIndex:"-1",id:"".concat(w,"-").concat(n),ref:e.bindSuggestionNode(n),"aria-selected":n===_}};return Object(b.createElement)(g.BaseControl,{label:n,id:C,className:f()("block-editor-url-input",o,{"is-full-width":c})},Object(b.createElement)("input",{className:"block-editor-url-input__input",autoFocus:v,type:"text","aria-label":Object(I.__)("URL"),required:!0,value:d,onChange:this.onChange,onFocus:this.onFocus,onInput:wb,placeholder:l,onKeyDown:this.onKeyDown,role:"combobox","aria-expanded":k,"aria-autocomplete":"list","aria-owns":S,"aria-activedescendant":null!==_?"".concat(w,"-").concat(_):void 0,ref:this.inputRef}),E&&Object(b.createElement)(g.Spinner,null),Object(p.isFunction)(i)&&k&&!!y.length&&i({suggestions:y,selectedSuggestion:_,suggestionsListProps:B,buildSuggestionItemProps:x,isLoading:E,handleSuggestionClick:this.handleOnClick,isInitialSuggestions:h&&!(d&&d.length)}),!Object(p.isFunction)(i)&&k&&!!y.length&&Object(b.createElement)(g.Popover,{position:"bottom",noArrow:!0,focusOnMount:!1},Object(b.createElement)("div",Object(s.a)({},B,{className:f()("block-editor-url-input__suggestions","".concat(o,"__suggestions"))}),y.map((function(t,n){return Object(b.createElement)(g.Button,Object(s.a)({},x(0,n),{key:t.id,className:f()("block-editor-url-input__suggestion",{"is-selected":n===_}),onClick:function(){return e.handleOnClick(t)}}),t.title)})))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.value,r=e.disableSuggestions,o=e.__experimentalShowInitialSuggestions,c=void 0!==o&&o,i=t.showSuggestions,a=n&&n.length;return c||a||(i=!1),!0===r&&(i=!1),{showSuggestions:i}}}]),r}(b.Component),Bb=Object(m.compose)(m.withSafeTimeout,g.withSpokenMessages,m.withInstanceId,Object(O.withSelect)((function(e,t){if(!Object(p.isFunction)(t.__experimentalFetchLinkSuggestions))return{__experimentalFetchLinkSuggestions:(0,e("core/block-editor").getSettings)().__experimentalFetchLinkSuggestions}})))(Ib),xb=function(e){var t=e.placeholder,n=e.value,r=e.onChange,o=e.onSelect,c=e.renderSuggestions,i=e.fetchSuggestions,a=e.showInitialSuggestions,l=e.errorMessage,s=Object(b.useState)(),u=Object(le.a)(s,2),d=u[0],f=u[1];return Object(b.createElement)("form",{onSubmit:function(e){e.preventDefault(),o(d||{url:n})}},Object(b.createElement)("div",{className:"block-editor-link-control__search-input-wrapper"},Object(b.createElement)(Bb,{className:"block-editor-link-control__search-input",value:n,onChange:function(e,t){r(e),f(t)},placeholder:null!=t?t:Object(I.__)("Search or type url"),__experimentalRenderSuggestions:c,__experimentalFetchLinkSuggestions:i,__experimentalHandleURLSuggestions:!0,__experimentalShowInitialSuggestions:a}),Object(b.createElement)("div",{className:"block-editor-link-control__search-actions"},Object(b.createElement)(g.Button,{type:"submit",label:Object(I.__)("Submit"),icon:_b.a,className:"block-editor-link-control__search-submit"}))),l&&Object(b.createElement)(g.Notice,{className:"block-editor-link-control__search-error",status:"error",isDismissible:!1},l))},Pb=function(e){var t=e.searchTerm,n=e.onClick,r=e.itemProps,o=e.isSelected;return t?Object(b.createElement)(g.Button,Object(s.a)({},r,{className:f()("block-editor-link-control__search-create block-editor-link-control__search-item",{"is-selected":o}),onClick:n}),Object(b.createElement)(g.Icon,{className:"block-editor-link-control__search-item-icon",icon:"insert"}),Object(b.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(b.createElement)("span",{className:"block-editor-link-control__search-item-title"},Object(b.createInterpolateElement)(Object(I.sprintf)(Object(I.__)("New page: %s"),t),{mark:Object(b.createElement)("mark",null)})))):null};function Tb(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 Nb(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};T(!1);var n=Nb({},t);delete n.type,delete n.id,c(Nb({},n,{},e))};return Object(b.createElement)("div",{tabIndex:-1,ref:y,className:"block-editor-link-control"},D&&Object(b.createElement)("div",{className:"block-editor-link-control__loading"},Object(b.createElement)(g.Spinner,null)," ",Object(I.__)("Creating"),"…"),(P||!n)&&!D&&Object(b.createElement)(xb,{placeholder:t,value:S,onChange:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";w(e)},onSelect:function(){var e=Object(vr.a)(mr.a.mark((function e(t){return mr.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("__CREATE__"!==t.type){e.next=5;break}return e.next=3,Y(S);case 3:e.next=6;break;case 5:(!a||Object.keys(t).length>1)&&(X(t,n),W());case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),renderSuggestions:u?function(e){var t=e.suggestionsListProps,r=e.buildSuggestionItemProps,o=e.suggestions,i=e.selectedSuggestion,a=e.isLoading,l=e.isInitialSuggestions,u=f()("block-editor-link-control__search-results",{"is-loading":a}),d=["url","mailto","tel","internal"],p=1===o.length&&d.includes(o[0].type.toLowerCase()),m=h&&!p&&!l,v="block-editor-link-control-search-results-label-".concat(_),O=l?Object(I.__)("Recently updated"):Object(I.sprintf)(Object(I.__)('Search results for "%s"'),S),j=Object(b.createElement)(l?b.Fragment:g.VisuallyHidden,{},Object(b.createElement)("span",{className:"block-editor-link-control__search-results-label",id:v},O));return Object(b.createElement)("div",{className:"block-editor-link-control__search-results-wrapper"},j,Object(b.createElement)("div",Object(s.a)({},t,{className:u,"aria-labelledby":v}),o.map((function(e,t){return m&&"__CREATE__"===e.type?Object(b.createElement)(Pb,{searchTerm:S,onClick:Object(vr.a)(mr.a.mark((function t(){return mr.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Y(e.title);case 2:case"end":return t.stop()}}),t)}))),key:e.type,itemProps:r(e,t),isSelected:t===i}):"__CREATE__"===e.type?null:Object(b.createElement)(yb,{key:"".concat(e.id,"-").concat(e.type),itemProps:r(e,t),suggestion:e,index:t,onClick:function(){W(),c(Nb({},n,{},e))},isSelected:t===i,isURL:d.includes(e.type.toLowerCase()),searchTerm:S})}))))}:null,fetchSuggestions:$,showInitialSuggestions:d,errorMessage:F}),n&&!P&&!D&&Object(b.createElement)(b.Fragment,null,Object(b.createElement)("div",{"aria-label":Object(I.__)("Currently selected"),"aria-selected":"true",className:f()("block-editor-link-control__search-item",{"is-current":!0})},Object(b.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(b.createElement)(g.ExternalLink,{className:"block-editor-link-control__search-item-title",href:n.url},n&&n.title||U),n&&n.title&&Object(b.createElement)("span",{className:"block-editor-link-control__search-item-info"},U)),Object(b.createElement)(g.Button,{isSecondary:!0,onClick:function(){return T(!0)},className:"block-editor-link-control__search-item-action"},Object(I.__)("Edit")),Object(b.createElement)(Db,{fillProps:n}))),Object(b.createElement)(jb,{value:n,settings:r,onChange:c}))}Lb.ViewerFill=Ab;var Fb=Lb,Vb=Object(b.createElement)(B.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(b.createElement)(B.Path,{d:"M13 11V4c0-.55-.45-1-1-1h-1.67L9 1H5L3.67 3H2c-.55 0-1 .45-1 1v7c0 .55.45 1 1 1h10c.55 0 1-.45 1-1zM7 4.5c1.38 0 2.5 1.12 2.5 2.5S8.38 9.5 7 9.5 4.5 8.38 4.5 7 5.62 4.5 7 4.5zM14 6h5v10.5c0 1.38-1.12 2.5-2.5 2.5S14 17.88 14 16.5s1.12-2.5 2.5-2.5c.17 0 .34.02.5.05V9h-3V6zm-4 8.05V13h2v3.5c0 1.38-1.12 2.5-2.5 2.5S7 17.88 7 16.5 8.12 14 9.5 14c.17 0 .34.02.5.05z"})),Hb=n(203),zb=Object(g.withFilters)("editor.MediaUpload")((function(){return null}));var Ub=Object(O.withSelect)((function(e){return{hasUploadPermissions:!!(0,e("core/block-editor").getSettings)().mediaUpload}}))((function(e){var t=e.hasUploadPermissions,n=e.fallback,r=void 0===n?null:n,o=e.children;return t?o:r})),Gb=Object(m.compose)([Object(O.withDispatch)((function(e){var t=e("core/notices");return{createNotice:t.createNotice,removeNotice:t.removeNotice}})),Object(g.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?p.noop:a,s=e.name,u=void 0===s?Object(I.__)("Replace"):s,d=e.createNotice,f=e.removeNotice,m=Object(b.useState)(t),v=Object(le.a)(m,2),h=v[0],j=v[1],k=Object(O.useSelect)((function(e){return e("core/block-editor").getSettings().mediaUpload}),[]),y=Object(b.createRef)(),_=Object(p.uniqueId)("block-editor/media-replace-flow/error-notice/"),E=function(e){var t=document.createElement("div");t.innerHTML=Object(b.renderToString)(e);var n=t.textContent||t.innerText||"";setTimeout((function(){d("error",n,{speak:!0,id:_,isDismissible:!0})}),1e3)},C=function(e){c(e),j(e.url),Object(Fe.speak)(Object(I.__)("The media file has been replaced")),f(_)},S=function(e){e.keyCode===it.DOWN&&(e.preventDefault(),e.stopPropagation(),e.target.click())};return Object(b.createElement)(g.Dropdown,{popoverProps:{isAlternate:!0},contentClassName:"block-editor-media-replace-flow__options",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(b.createElement)(g.ToolbarGroup,{className:"media-replace-flow"},Object(b.createElement)(g.ToolbarButton,{ref:y,"aria-expanded":t,onClick:n,onKeyDown:S},u))},renderContent:function(e){e.onClose;return Object(b.createElement)(b.Fragment,null,Object(b.createElement)(g.NavigableMenu,{className:"block-editor-media-replace-flow__media-upload-menu"},Object(b.createElement)(zb,{value:n,onSelect:function(e){return C(e)},allowedTypes:r,render:function(e){var t=e.open;return Object(b.createElement)(g.MenuItem,{icon:Vb,onClick:t},Object(I.__)("Open Media Library"))}}),Object(b.createElement)(Ub,null,Object(b.createElement)(g.FormFileUpload,{onChange:function(e){!function(e){var t=e.target.files;l(t);k({allowedTypes:r,filesList:t,onFileChange:function(e){var t=Object(le.a)(e,1)[0];C(t)},onError:E})}(e)},accept:o,render:function(e){var t=e.openFileDialog;return Object(b.createElement)(g.MenuItem,{icon:Hb.a,onClick:function(){t()}},Object(I.__)("Upload"))}}))),i&&Object(b.createElement)("form",{className:"block-editor-media-flow__url-input",onKeyDown:function(e){e.stopPropagation()},onKeyPress:function(e){e.stopPropagation()}},Object(b.createElement)("span",{className:"block-editor-media-replace-flow__image-url-label"},Object(I.__)("Current media URL:")),Object(b.createElement)(Fb,{value:{url:h},settings:[],showSuggestions:!1,onChange:function(e){var t=e.url;j(t),i(t),y.current.focus()}})))}})})),Kb=n(300);function Wb(e){var t=e.url,n=e.urlLabel,r=e.className,o=f()(r,"block-editor-url-popover__link-viewer-url");return t?Object(b.createElement)(g.ExternalLink,{className:o,href:t},n||Object(hl.filterURLForDisplay)(Object(hl.safeDecodeURI)(t))):Object(b.createElement)("span",{className:o})}function qb(){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}}var $b=function(e){Object(qt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Wt.a)(t);if(qb()){var r=Object(Wt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Kt.a)(this,e)});function r(){var e;return Object(zt.a)(this,r),(e=n.apply(this,arguments)).toggleSettingsVisibility=e.toggleSettingsVisibility.bind(Object(Gt.a)(e)),e.state={isSettingsExpanded:!1},e}return Object(Ut.a)(r,[{key:"toggleSettingsVisibility",value:function(){this.setState({isSettingsExpanded:!this.state.isSettingsExpanded})}},{key:"render",value:function(){var e=this.props,t=e.additionalControls,n=e.children,r=e.renderSettings,o=e.position,c=void 0===o?"bottom center":o,i=e.focusOnMount,a=void 0===i?"firstElement":i,l=Object(ke.a)(e,["additionalControls","children","renderSettings","position","focusOnMount"]),u=this.state.isSettingsExpanded,d=!!r&&u;return Object(b.createElement)(g.Popover,Object(s.a)({className:"block-editor-url-popover",focusOnMount:a,position:c},l),Object(b.createElement)("div",{className:"block-editor-url-popover__input-container"},Object(b.createElement)("div",{className:"block-editor-url-popover__row"},n,!!r&&Object(b.createElement)(g.Button,{className:"block-editor-url-popover__settings-toggle",icon:Ir.a,label:Object(I.__)("Link settings"),onClick:this.toggleSettingsVisibility,"aria-expanded":u})),d&&Object(b.createElement)("div",{className:"block-editor-url-popover__row block-editor-url-popover__settings"},r())),t&&!d&&Object(b.createElement)("div",{className:"block-editor-url-popover__additional-controls"},t))}}]),r}(b.Component);$b.LinkEditor=function(e){var t=e.autocompleteRef,n=e.className,r=e.onChangeInputValue,o=e.value,c=Object(ke.a)(e,["autocompleteRef","className","onChangeInputValue","value"]);return Object(b.createElement)("form",Object(s.a)({className:f()("block-editor-url-popover__link-editor",n)},c),Object(b.createElement)(Bb,{value:o,onChange:r,autocompleteRef:t}),Object(b.createElement)(g.Button,{icon:_b.a,label:Object(I.__)("Apply"),type:"submit"}))},$b.LinkViewer=function(e){var t=e.className,n=e.linkClassName,r=e.onEditLinkClick,o=e.url,c=e.urlLabel,i=Object(ke.a)(e,["className","linkClassName","onEditLinkClick","url","urlLabel"]);return Object(b.createElement)("div",Object(s.a)({className:f()("block-editor-url-popover__link-viewer",t)},i),Object(b.createElement)(Wb,{url:o,urlLabel:c,className:n}),r&&Object(b.createElement)(g.Button,{icon:Kb.a,label:Object(I.__)("Edit"),onClick:r}))};var Yb=$b;function Xb(){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}}var Qb=function(e){var t=e.src,n=e.onChange,r=e.onSubmit,o=e.onClose;return Object(b.createElement)(Yb,{onClose:o},Object(b.createElement)("form",{className:"block-editor-media-placeholder__url-input-form",onSubmit:r},Object(b.createElement)("input",{className:"block-editor-media-placeholder__url-input-field",type:"url","aria-label":Object(I.__)("URL"),placeholder:Object(I.__)("Paste or type URL"),onChange:n,value:t}),Object(b.createElement)(g.Button,{className:"block-editor-media-placeholder__url-input-submit-button",icon:_b.a,label:Object(I.__)("Apply"),type:"submit"})))},Zb=function(e){Object(qt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Wt.a)(t);if(Xb()){var r=Object(Wt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Kt.a)(this,e)});function r(){var e;return Object(zt.a)(this,r),(e=n.apply(this,arguments)).state={src:"",isURLInputVisible:!1},e.onChangeSrc=e.onChangeSrc.bind(Object(Gt.a)(e)),e.onSubmitSrc=e.onSubmitSrc.bind(Object(Gt.a)(e)),e.onUpload=e.onUpload.bind(Object(Gt.a)(e)),e.onFilesUpload=e.onFilesUpload.bind(Object(Gt.a)(e)),e.openURLInput=e.openURLInput.bind(Object(Gt.a)(e)),e.closeURLInput=e.closeURLInput.bind(Object(Gt.a)(e)),e}return Object(Ut.a)(r,[{key:"onlyAllowsImages",value:function(){var e=this.props.allowedTypes;return!!e&&Object(p.every)(e,(function(e){return"image"===e||Object(p.startsWith)(e,"image/")}))}},{key:"componentDidMount",value:function(){this.setState({src:Object(p.get)(this.props.value,["src"],"")})}},{key:"componentDidUpdate",value:function(e){Object(p.get)(e.value,["src"],"")!==Object(p.get)(this.props.value,["src"],"")&&this.setState({src:Object(p.get)(this.props.value,["src"],"")})}},{key:"onChangeSrc",value:function(e){this.setState({src:e.target.value})}},{key:"onSubmitSrc",value:function(e){e.preventDefault(),this.state.src&&this.props.onSelectURL&&(this.props.onSelectURL(this.state.src),this.closeURLInput())}},{key:"onUpload",value:function(e){this.onFilesUpload(e.target.files)}},{key:"onFilesUpload",value:function(e){var t,n=this,r=this.props,o=r.addToGallery,c=r.allowedTypes,i=r.mediaUpload,a=r.multiple,l=r.onError,s=r.onSelect,u=r.onFilesPreUpload;if((void 0===u?p.noop:u)(e),a)if(o){var b=[];t=function(e){var t=(n.props.value||[]).filter((function(e){return e.id?!b.some((function(t){var n=t.id;return Number(n)===Number(e.id)})):!b.some((function(t){var n=t.urlSlug;return e.url.includes(n)}))}));s(t.concat(e)),b=e.map((function(e){var t=e.url.lastIndexOf("."),n=e.url.slice(0,t);return{id:e.id,urlSlug:n}}))}}else t=s;else t=function(e){var t=Object(le.a)(e,1)[0];return s(t)};i({allowedTypes:c,filesList:e,onFileChange:t,onError:l})}},{key:"openURLInput",value:function(){this.setState({isURLInputVisible:!0})}},{key:"closeURLInput",value:function(){this.setState({isURLInputVisible:!1})}},{key:"renderPlaceholder",value:function(e,t){var n=this.props,r=n.allowedTypes,o=void 0===r?[]:r,c=n.className,i=n.icon,a=n.isAppender,l=n.labels,s=void 0===l?{}:l,u=n.onDoubleClick,d=n.mediaPreview,p=n.notices,m=n.onSelectURL,v=n.mediaUpload,O=n.children,h=s.instructions,j=s.title;if(v||m||(h=Object(I.__)("To edit this block, you need permission to upload media.")),void 0===h||void 0===j){var k=1===o.length,y=k&&"audio"===o[0],_=k&&"image"===o[0],E=k&&"video"===o[0];void 0===h&&v&&(h=Object(I.__)("Upload a media file or pick one from your media library."),y?h=Object(I.__)("Upload an audio file, pick one from your media library, or add one with a URL."):_?h=Object(I.__)("Upload an image file, pick one from your media library, or add one with a URL."):E&&(h=Object(I.__)("Upload a video file, pick one from your media library, or add one with a URL."))),void 0===j&&(j=Object(I.__)("Media"),y?j=Object(I.__)("Audio"):_?j=Object(I.__)("Image"):E&&(j=Object(I.__)("Video")))}var C=f()("block-editor-media-placeholder",c,{"is-appender":a});return Object(b.createElement)(g.Placeholder,{icon:i,label:j,instructions:h,className:C,notices:p,onClick:t,onDoubleClick:u,preview:d},e,O)}},{key:"renderDropZone",value:function(){var e=this.props,t=e.disableDropZone,n=e.onHTMLDrop,r=void 0===n?p.noop:n;return t?null:Object(b.createElement)(g.DropZone,{onFilesDrop:this.onFilesUpload,onHTMLDrop:r})}},{key:"renderCancelLink",value:function(){var e=this.props.onCancel;return e&&Object(b.createElement)(g.Button,{className:"block-editor-media-placeholder__cancel-button",title:Object(I.__)("Cancel"),isLink:!0,onClick:e},Object(I.__)("Cancel"))}},{key:"renderUrlSelectionUI",value:function(){if(!this.props.onSelectURL)return null;var e=this.state,t=e.isURLInputVisible,n=e.src;return Object(b.createElement)("div",{className:"block-editor-media-placeholder__url-input-container"},Object(b.createElement)(g.Button,{className:"block-editor-media-placeholder__button",onClick:this.openURLInput,isPressed:t,isTertiary:!0},Object(I.__)("Insert from URL")),t&&Object(b.createElement)(Qb,{src:n,onChange:this.onChangeSrc,onSubmit:this.onSubmitSrc,onClose:this.closeURLInput}))}},{key:"renderMediaUploadChecked",value:function(){var e=this,t=this.props,n=t.accept,r=t.addToGallery,o=t.allowedTypes,c=void 0===o?[]:o,i=t.isAppender,a=t.mediaUpload,l=t.multiple,s=void 0!==l&&l,u=t.onSelect,d=t.value,m=void 0===d?{}:d,v=Object(b.createElement)(zb,{addToGallery:r,gallery:s&&this.onlyAllowsImages(),multiple:s,onSelect:u,allowedTypes:c,value:Object(p.isArray)(m)?m.map((function(e){return e.id})):m.id,render:function(e){var t=e.open;return Object(b.createElement)(g.Button,{isTertiary:!0,onClick:function(e){e.stopPropagation(),t()}},Object(I.__)("Media Library"))}});if(a&&i)return Object(b.createElement)(b.Fragment,null,this.renderDropZone(),Object(b.createElement)(g.FormFileUpload,{onChange:this.onUpload,accept:n,multiple:s,render:function(t){var n=t.openFileDialog,r=Object(b.createElement)(b.Fragment,null,Object(b.createElement)(g.Button,{isPrimary:!0,className:f()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button")},Object(I.__)("Upload")),v,e.renderUrlSelectionUI(),e.renderCancelLink());return e.renderPlaceholder(r,n)}}));if(a){var O=Object(b.createElement)(b.Fragment,null,this.renderDropZone(),Object(b.createElement)(g.FormFileUpload,{isPrimary:!0,className:f()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),onChange:this.onUpload,accept:n,multiple:s},Object(I.__)("Upload")),v,this.renderUrlSelectionUI(),this.renderCancelLink());return this.renderPlaceholder(O)}return this.renderPlaceholder(v)}},{key:"render",value:function(){var e=this.props,t=e.disableMediaButtons,n=e.dropZoneUIOnly;return n||t?(n&&cr()("wp.blockEditor.MediaPlaceholder dropZoneUIOnly prop",{alternative:"disableMediaButtons"}),Object(b.createElement)(Ub,null,this.renderDropZone())):Object(b.createElement)(Ub,{fallback:this.renderPlaceholder(this.renderUrlSelectionUI())},this.renderMediaUploadChecked())}}]),r}(b.Component),Jb=Object(O.withSelect)((function(e){return{mediaUpload:(0,e("core/block-editor").getSettings)().mediaUpload}})),ed=Object(m.compose)(Jb,Object(g.withFilters)("editor.MediaPlaceholder"))(Zb),td=Object(b.forwardRef)((function(e,t){return Object(b.createElement)(Hu,Object(s.a)({ref:t},e,{__unstableDisableFormats:!0,preserveWhiteSpace:!0}))}));td.Content=function(e){var t=e.value,n=void 0===t?"":t,r=e.tagName,o=void 0===r?"div":r,c=Object(ke.a)(e,["value","tagName"]);return Object(b.createElement)(o,c,n)};var nd=td,rd=Object(b.forwardRef)((function(e,t){var n=e.__experimentalVersion,r=Object(ke.a)(e,["__experimentalVersion"]);if(2===n)return Object(b.createElement)(nd,Object(s.a)({ref:t},r));var o=r.className,c=r.onChange,i=Object(ke.a)(r,["className","onChange"]);return Object(b.createElement)(Zr.a,Object(s.a)({ref:t,className:f()("block-editor-plain-text",o),onChange:function(e){return c(e.target.value)}},i))}));function od(e){var t=e.property,n=e.viewport,r=e.desc,o=Object(m.useInstanceId)(od),c=r||Object(I.sprintf)(Object(I._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(b.createElement)(b.Fragment,null,Object(b.createElement)("span",{"aria-describedby":"rbc-desc-".concat(o)},n.label),Object(b.createElement)(g.VisuallyHidden,{as:"span",id:"rbc-desc-".concat(o)},c))}var cd=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,u=void 0===s?{id:"all",label:Object(I.__)("All")}:s,d=e.viewports,p=void 0===d?[{id:"small",label:Object(I.__)("Small screens")},{id:"medium",label:Object(I.__)("Medium screens")},{id:"large",label:Object(I.__)("Large screens")}]:d;if(!t||!n||!c)return null;var m=r||Object(I.sprintf)(Object(I.__)("Use the same %s on all screensizes."),n),v=Object(I.__)("Toggle between using the same value for all screen sizes or using a unique value per screen size."),O=c(Object(b.createElement)(od,{property:n,viewport:u}),u);return Object(b.createElement)("fieldset",{className:"block-editor-responsive-block-control"},Object(b.createElement)("legend",{className:"block-editor-responsive-block-control__title"},t),Object(b.createElement)("div",{className:"block-editor-responsive-block-control__inner"},Object(b.createElement)(g.ToggleControl,{className:"block-editor-responsive-block-control__toggle",label:m,checked:!l,onChange:o,help:v}),Object(b.createElement)("div",{className:f()("block-editor-responsive-block-control__group",{"is-responsive":l})},!l&&O,l&&(i?i(p):p.map((function(e){return Object(b.createElement)(b.Fragment,{key:e.id},c(Object(b.createElement)(od,{property:n,viewport:e}),e))}))))))};function id(e){var t=e.character,n=e.type,r=e.onUse;return Object(m.useKeyboardShortcut)(it.rawShortcut[n](t),(function(){return r(),!1}),{bindGlobal:!0}),null}function ad(e){var t,n=e.name,r=e.shortcutType,o=e.shortcutCharacter,c=Object(ke.a)(e,["name","shortcutType","shortcutCharacter"]),i="RichText.ToolbarControls";return n&&(i+=".".concat(n)),r&&o&&(t=it.displayShortcut[r](o)),Object(b.createElement)(g.Fill,{name:i},Object(b.createElement)(g.ToolbarButton,Object(s.a)({},c,{shortcut:t})))}function ld(){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}}var sd=function(e){Object(qt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Wt.a)(t);if(ld()){var r=Object(Wt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Kt.a)(this,e)});function r(){var e;return Object(zt.a)(this,r),(e=n.apply(this,arguments)).onInput=e.onInput.bind(Object(Gt.a)(e)),e}return Object(Ut.a)(r,[{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}}]),r}(b.Component),ud=n(301),bd=Object(b.createElement)(g.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(b.createElement)(g.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 dd=Object(b.forwardRef)((function(e,t){var n=Object(O.useSelect)((function(e){return e("core/block-editor").isNavigationMode()}),[]),r=Object(O.useDispatch)("core/block-editor").setNavigationMode,o=function(e){r("edit"!==e)};return Object(b.createElement)(g.Dropdown,{renderToggle:function(r){var o=r.isOpen,c=r.onToggle;return Object(b.createElement)(g.Button,Object(s.a)({},e,{ref:t,icon:n?bd:ud.a,"aria-expanded":o,onClick:c,label:Object(I.__)("Tools")}))},position:"bottom right",renderContent:function(){return Object(b.createElement)(b.Fragment,null,Object(b.createElement)(g.NavigableMenu,{role:"menu","aria-label":Object(I.__)("Tools")},Object(b.createElement)(g.MenuItemsChoice,{value:n?"select":"edit",onSelect:o,choices:[{value:"edit",label:Object(b.createElement)(b.Fragment,null,Object(b.createElement)(ao.a,{icon:ud.a}),Object(I.__)("Edit"))},{value:"select",label:Object(b.createElement)(b.Fragment,null,bd,Object(I.__)("Select"))}]})),Object(b.createElement)("div",{className:"block-editor-tool-selector__help"},Object(I.__)("Tools offer different interactions for block selection & editing. To select, press Escape, to go back to editing, press Enter.")))}})})),fd=n(179),pd=Object(b.createElement)(B.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(b.createElement)(B.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 md(){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}}var vd=function(e){Object(qt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Wt.a)(t);if(md()){var r=Object(Wt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Kt.a)(this,e)});function r(){var e;return Object(zt.a)(this,r),(e=n.apply(this,arguments)).toggle=e.toggle.bind(Object(Gt.a)(e)),e.submitLink=e.submitLink.bind(Object(Gt.a)(e)),e.state={expanded:!1},e}return Object(Ut.a)(r,[{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(I.__)("Edit link"):Object(I.__)("Insert link");return Object(b.createElement)("div",{className:"block-editor-url-input__button"},Object(b.createElement)(g.Button,{icon:fd.a,label:o,onClick:this.toggle,className:"components-toolbar__control",isPressed:!!t}),r&&Object(b.createElement)("form",{className:"block-editor-url-input__button-modal",onSubmit:this.submitLink},Object(b.createElement)("div",{className:"block-editor-url-input__button-modal-line"},Object(b.createElement)(g.Button,{className:"block-editor-url-input__back",icon:pd,label:Object(I.__)("Close"),onClick:this.toggle}),Object(b.createElement)(Bb,{value:t||"",onChange:n}),Object(b.createElement)(g.Button,{icon:_b.a,label:Object(I.__)("Submit"),type:"submit"}))))}}]),r}(b.Component),Od=n(153),gd=["noreferrer","noopener"],hd=Object(b.createElement)(g.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(b.createElement)(g.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(b.createElement)(g.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(b.createElement)(g.Path,{d:"m14.14 11.86l-3 3.87-2.14-2.59-3 3.86h12l-3.86-5.14z"})),jd=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,u=e.rel,d=Object(b.useState)(!1),f=Object(le.a)(d,2),m=f[0],v=f[1],O=Object(b.useCallback)((function(){v(!0)})),h=Object(b.useState)(!1),j=Object(le.a)(h,2),k=j[0],y=j[1],_=Object(b.useState)(null),E=Object(le.a)(_,2),C=E[0],S=E[1],w=Object(b.useRef)(null),B=function(e){e.stopPropagation()},x=function(e){[it.LEFT,it.DOWN,it.RIGHT,it.UP,it.BACKSPACE,it.ENTER].indexOf(e.keyCode)>-1&&e.stopPropagation()},P=Object(b.useCallback)((function(){"media"!==t&&"attachment"!==t||S(""),y(!0)})),T=Object(b.useCallback)((function(){y(!1)})),N=Object(b.useCallback)((function(){S(null),T(),v(!1)})),R=function(e){var t=e;return void 0===e||Object(p.isEmpty)(t)||Object(p.isEmpty)(t)||(Object(p.each)(gd,(function(e){var n=new RegExp("\\b"+e+"\\b","gi");t=t.replace(n,"")})),t!==e&&(t=t.trim()),Object(p.isEmpty)(t)&&(t=void 0)),t},D=Object(b.useCallback)((function(){return function(e){var t=w.current;t&&t.contains(e.target)||(v(!1),S(null),T())}})),A=Object(b.useCallback)((function(){return function(e){C&&n({href:C}),T(),S(null),e.preventDefault()}})),M=Object(b.useCallback)((function(){n({linkDestination:"none",href:""})})),L=function(){return[{linkDestination:"media",title:Object(I.__)("Media File"),url:"image"===c?i:void 0,icon:hd},{linkDestination:"attachment",title:Object(I.__)("Attachment Page"),url:"image"===c?a:void 0,icon:Object(b.createElement)(g.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(b.createElement)(g.Path,{d:"M0 0h24v24H0V0z",fill:"none"}),Object(b.createElement)(g.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"}))}]},F=Object(b.createElement)(b.Fragment,null,Object(b.createElement)(g.ToggleControl,{label:Object(I.__)("Open in new tab"),onChange:function(e){var t=function(e){var t=e?"_blank":void 0;return{linkTarget:t,rel:t||u?R(u):void 0}}(e);n(t)},checked:"_blank"===l}),Object(b.createElement)(g.TextControl,{label:Object(I.__)("Link Rel"),value:R(u)||"",onChange:function(e){n({rel:e})},onKeyPress:B,onKeyDown:x}),Object(b.createElement)(g.TextControl,{label:Object(I.__)("Link CSS Class"),value:s||"",onKeyPress:B,onKeyDown:x,onChange:function(e){n({linkClass:e})}})),V=null!==C?C:r,H=(Object(p.find)(L(),["linkDestination",t])||{}).title;return Object(b.createElement)(b.Fragment,null,Object(b.createElement)(g.ToolbarButton,{icon:fd.a,className:"components-toolbar__control",label:r?Object(I.__)("Edit link"):Object(I.__)("Insert link"),"aria-expanded":m,onClick:O}),m&&Object(b.createElement)(Yb,{onFocusOutside:D(),onClose:N,renderSettings:function(){return F},additionalControls:!V&&Object(b.createElement)(g.NavigableMenu,null,Object(p.map)(L(),(function(e){return Object(b.createElement)(g.MenuItem,{key:e.linkDestination,icon:e.icon,onClick:function(){var t,r,o;S(null),t=e.url,o=L(),r=t?(Object(p.find)(o,(function(e){return e.url===t}))||{linkDestination:"custom"}).linkDestination:"none",n({linkDestination:r,href:t}),T()}},e.title)})))},(!r||k)&&Object(b.createElement)(Yb.LinkEditor,{className:"block-editor-format-toolbar__link-container-content",value:V,onChangeInputValue:S,onKeyDown:x,onKeyPress:B,onSubmit:A(),autocompleteRef:w}),r&&!k&&Object(b.createElement)(b.Fragment,null,Object(b.createElement)(Yb.LinkViewer,{className:"block-editor-format-toolbar__link-container-content",onKeyPress:B,url:r,onEditLinkClick:P,urlLabel:H}),Object(b.createElement)(g.Button,{icon:Od.a,label:Object(I.__)("Remove link"),onClick:M}))))},kd=n(154);function yd(e){var t=e.children,n=e.className,r=e.isEnabled,o=void 0===r||r,c=e.deviceType,i=e.setDeviceType;return Object(b.createElement)(g.Dropdown,{className:"block-editor-post-preview__dropdown",contentClassName:f()(n,"block-editor-post-preview__dropdown-content"),popoverProps:{role:"menu"},position:"bottom left",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(b.createElement)(g.Button,{isTertiary:!0,onClick:n,className:"block-editor-post-preview__button-toggle","aria-expanded":t,disabled:!o},Object(I.__)("Preview"))},renderContent:function(){return Object(b.createElement)(b.Fragment,null,Object(b.createElement)(g.MenuGroup,null,Object(b.createElement)(g.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:function(){return i("Desktop")},icon:"Desktop"===c&&kd.a},Object(I.__)("Desktop")),Object(b.createElement)(g.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:function(){return i("Tablet")},icon:"Tablet"===c&&kd.a},Object(I.__)("Tablet")),Object(b.createElement)(g.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:function(){return i("Mobile")},icon:"Mobile"===c&&kd.a},Object(I.__)("Mobile"))),t)}})}var _d=n(264),Ed=/\((min|max)-width:[^\(]*?\)/g;function Cd(e){return!!e.media&&!!e.media.mediaText.match(Ed)}function Sd(e,t,n){e.deleteRule(n),e.insertRule(t,n)}function wd(e,t){return e.replace(Ed,(function(e){return Object(_d.match)(e,{type:"screen",width:t})?"(min-width:0px)":"(min-width:999999px)"}))}function Id(e,t){Object(b.useEffect)((function(){if(t){var n="undefined"==typeof window?[]:Object(p.filter)(Object(p.get)(window,["document","styleSheets"],[]),(function(e){return!!e.href&&Object(hl.getProtocol)(e.href)===window.location.protocol&&Object(hl.getAuthority)(e.href)===window.location.host})),r=[];return n.forEach((function(n,o){for(var c=!1,i=0;i0,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;if(n>1)return Object(b.createElement)("div",{className:"block-editor-block-inspector"},Object(b.createElement)(Td,null),Object(b.createElement)(We.Slot,{bubblesVirtually:!0}));var s=i===Object(c.getUnregisteredTypeHandlerName)();return t&&o&&!s?Object(b.createElement)("div",{className:"block-editor-block-inspector"},Object(b.createElement)(uo,{blockType:t}),r&&Object(b.createElement)("div",null,Object(b.createElement)(g.PanelBody,{title:Object(I.__)("Styles")},Object(b.createElement)(ss,{clientId:o}),Object(c.hasBlockSupport)(t.name,"defaultStylePicker",!0)&&Object(b.createElement)(Nd,{blockName:t.name}))),Object(b.createElement)(We.Slot,{bubblesVirtually:!0}),Object(b.createElement)("div",null,Object(b.createElement)(Rd,{slotName:ee.slotName})),Object(b.createElement)(xd,{key:"back"})):l?Object(b.createElement)("span",{className:"block-editor-block-inspector__no-blocks"},Object(I.__)("No block selected.")):null}));function Ad(){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}}var Md=function(e){Object(qt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Wt.a)(t);if(Ad()){var r=Object(Wt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Kt.a)(this,e)});function r(){var e;return Object(zt.a)(this,r),(e=n.apply(this,arguments)).bindContainer=e.bindContainer.bind(Object(Gt.a)(e)),e.clearSelectionIfFocusTarget=e.clearSelectionIfFocusTarget.bind(Object(Gt.a)(e)),e}return Object(Ut.a)(r,[{key:"bindContainer",value:function(e){this.container=e}},{key:"clearSelectionIfFocusTarget",value:function(e){var t=this.props,n=t.hasSelectedBlock,r=t.hasMultiSelection,o=t.clearSelectedBlock,c=n||r;e.target===this.container&&c&&o()}},{key:"render",value:function(){return Object(b.createElement)("div",Object(s.a)({tabIndex:-1,onFocus:this.clearSelectionIfFocusTarget,ref:this.bindContainer},Object(p.omit)(this.props,["clearSelectedBlock","hasSelectedBlock","hasMultiSelection"])))}}]),r}(b.Component),Ld=Object(m.compose)([Object(O.withSelect)((function(e){var t=e("core/block-editor"),n=t.hasSelectedBlock,r=t.hasMultiSelection;return{hasSelectedBlock:n(),hasMultiSelection:r()}})),Object(O.withDispatch)((function(e){return{clearSelectedBlock:e("core/block-editor").clearSelectedBlock}}))])(Md),Fd=n(265),Vd=n.n(Fd),Hd=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,zd=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 d(/^{\s*/)}function u(){return d(/^}/)}function b(){var t,n=[];for(f(),p(n);e.length&&"}"!==e.charAt(0)&&(t=C()||S());)!1!==t&&(n.push(t),p(n));return n}function d(t){var n=t.exec(e);if(n){var r=n[0];return o(r),e=e.slice(r.length),n}}function f(){d(/^\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=d(/^([^{]+)/);if(e)return Ud(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=d(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(t){if(t=Ud(t[0]),!d(/^:\s*/))return l("property missing ':'");var n=d(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),r=e({type:"declaration",property:t.replace(Hd,""),value:n?Ud(n[0]).replace(Hd,""):""});return d(/^[;\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=d(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),d(/^,\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=d(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=d(/^@([-\w]+)?keyframes\s*/);if(t){var n=t[1];if(!(t=d(/^([-\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=d(/^@media *([^{]+)/);if(t){var n=Ud(t[1]);if(!s())return l("@media missing '{'");var r=p().concat(b());return u()?e({type:"media",media:n,rules:r}):l("@media missing '}'")}}()||function(){var e=c(),t=d(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(t)return e({type:"custom-media",name:Ud(t[1]),media:Ud(t[2])})}()||function(){var e=c(),t=d(/^@supports *([^{]+)/);if(t){var n=Ud(t[1]);if(!s())return l("@supports missing '{'");var r=p().concat(b());return u()?e({type:"supports",supports:n,rules:r}):l("@supports missing '}'")}}()||k()||y()||_()||function(){var e=c(),t=d(/^@([-\w]+)?document *([^{]+)/);if(t){var n=Ud(t[1]),r=Ud(t[2]);if(!s())return l("@document missing '{'");var o=p().concat(b());return u()?e({type:"document",document:r,vendor:n,rules:o}):l("@document missing '}'")}}()||function(){var e=c();if(d(/^@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(d(/^@host\s*/)){if(!s())return l("@host missing '{'");var t=p().concat(b());return u()?e({type:"host",rules:t}):l("@host missing '}'")}}()||function(){var e=c();if(d(/^@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 S(){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(No.a)(i)&&e(i,o)}r&&Object.defineProperty(t,"parent",{configurable:!0,writable:!0,enumerable:!1,value:n||null});return t}((j=b(),{type:"stylesheet",stylesheet:{source:t.source,rules:j,parsingErrors:a}}))};function Ud(e){return e?e.replace(/^\s+|\s+$/g,""):""}var Gd=n(164),Kd=n.n(Gd),Wd=qd;function qd(e){this.options=e||{}}qd.prototype.emit=function(e){return e},qd.prototype.visit=function(e){return this[e.type](e)},qd.prototype.mapVisit=function(e,t){var n="";t=t||"";for(var r=0,o=e.length;r1&&void 0!==arguments[1]?arguments[1]:[];return function(n){return"rule"===n.type?cf({},n,{selectors:n.selectors.map((function(n){return t.includes(n.trim())?n:n.match(af)?n.replace(/^(body|html|:root)/,e):e+" "+n}))}):n}},sf=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object(p.map)(e,(function(e){var n=e.css,r=e.baseURL,o=[];return t&&o.push(lf(t)),r&&o.push(rf(r)),o.length?Zd(n,Object(m.compose)(o)):n}))};var uf=function(e){var t=e.styles;return Object(b.useEffect)((function(){var e=sf(t,".editor-styles-wrapper"),n=Object(p.map)(Object(p.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 bf=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.onSelect,s=void 0===l?p.noop:l,u=Object(O.useSelect)((function(e){var r=e("core/block-editor").getBlockRootClientId;return t||r(n)||void 0}),[n,t]);return Object(b.createElement)(Bl,{onSelect:s,rootClientId:u,clientId:n,isAppender:r,showInserterHelpPanel:o,showMostUsedBlocks:i,__experimentalSelectBlockOnInsert:a})};function df(){var e=Object(O.useSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientIds,r=t.getBlockOrder,o=t.getBlockRootClientId,c=n(),i=Object(le.a)(c,1)[0];return{clientIds:c,rootBlocksClientIds:r(),rootClientId:o(i)}}),[]),t=e.clientIds,n=e.rootBlocksClientIds,r=e.rootClientId,o=Object(O.useDispatch)("core/block-editor"),c=o.duplicateBlocks,i=o.removeBlocks,a=o.insertAfterBlock,s=o.insertBeforeBlock,u=o.multiSelect,d=o.clearSelectedBlock,f=o.moveBlocksUp,m=o.moveBlocksDown;return Object(l.useShortcut)("core/block-editor/move-up",Object(b.useCallback)((function(e){e.preventDefault(),f(t,r)}),[t,f]),{bindGlobal:!0,isDisabled:0===t.length}),Object(l.useShortcut)("core/block-editor/move-down",Object(b.useCallback)((function(e){e.preventDefault(),m(t,r)}),[t,m]),{bindGlobal:!0,isDisabled:0===t.length}),Object(l.useShortcut)("core/block-editor/duplicate",Object(b.useCallback)((function(e){e.preventDefault(),c(t)}),[t,c]),{bindGlobal:!0,isDisabled:0===t.length}),Object(l.useShortcut)("core/block-editor/remove",Object(b.useCallback)((function(e){e.preventDefault(),i(t)}),[t,i]),{bindGlobal:!0,isDisabled:0===t.length}),Object(l.useShortcut)("core/block-editor/insert-after",Object(b.useCallback)((function(e){e.preventDefault(),a(Object(p.last)(t))}),[t,a]),{bindGlobal:!0,isDisabled:0===t.length}),Object(l.useShortcut)("core/block-editor/insert-before",Object(b.useCallback)((function(e){e.preventDefault(),s(Object(p.first)(t))}),[t,s]),{bindGlobal:!0,isDisabled:0===t.length}),Object(l.useShortcut)("core/block-editor/delete-multi-selection",Object(b.useCallback)((function(e){e.preventDefault(),i(t)}),[t,i]),{isDisabled:t.length<2}),Object(l.useShortcut)("core/block-editor/select-all",Object(b.useCallback)((function(e){e.preventDefault(),u(Object(p.first)(n),Object(p.last)(n))}),[n,u])),Object(l.useShortcut)("core/block-editor/unselect",Object(b.useCallback)((function(e){e.preventDefault(),d(),window.getSelection().removeAllRanges()}),[t,d]),{isDisabled:t.length<2}),null}df.Register=function(){var e=Object(O.useDispatch)("core/keyboard-shortcuts").registerShortcut;return Object(b.useEffect)((function(){e({name:"core/block-editor/duplicate",category:"block",description:Object(I.__)("Duplicate the selected block(s)."),keyCombination:{modifier:"primaryShift",character:"d"}}),e({name:"core/block-editor/remove",category:"block",description:Object(I.__)("Remove the selected block(s)."),keyCombination:{modifier:"access",character:"z"}}),e({name:"core/block-editor/insert-before",category:"block",description:Object(I.__)("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(I.__)("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(I.__)("Remove multiple selected blocks."),keyCombination:{character:"del"},aliases:[{character:"backspace"}]}),e({name:"core/block-editor/select-all",category:"selection",description:Object(I.__)("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(I.__)("Clear selection."),keyCombination:{character:"escape"}}),e({name:"core/block-editor/focus-toolbar",category:"global",description:Object(I.__)("Navigate to the nearest toolbar."),keyCombination:{modifier:"alt",character:"F10"}}),e({name:"core/block-editor/move-up",category:"block",description:Object(I.__)("Move the selected block(s) up."),keyCombination:{modifier:"secondary",character:"t"}}),e({name:"core/block-editor/move-down",category:"block",description:Object(I.__)("Move the selected block(s) down."),keyCombination:{modifier:"secondary",character:"y"}})}),[e]),null};var ff=df;function pf(){var e=Object(O.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(b.useEffect)((function(){if(n&&!r&&t){var e=qe(n);if(e){var o=Object(hr.getScrollContainer)(e);o&&Cb()(e,o,{onlyScrollIfNeeded:!0})}}}),[t,n,r]),null}var mf=[it.UP,it.RIGHT,it.DOWN,it.LEFT,it.ENTER,it.BACKSPACE];var vf=Object(m.withSafeTimeout)((function(e){var t=e.children,n=e.setTimeout,r=Object(b.useRef)(),o=Object(b.useRef)(),c=Object(O.useSelect)((function(e){return e("core/block-editor").isTyping()})),i=Object(O.useDispatch)("core/block-editor"),a=i.startTyping,l=i.stopTyping;function s(e){var t=e?"addEventListener":"removeEventListener";document[t]("selectionchange",d),document[t]("mousemove",u)}function u(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 d(){var e=window.getSelection();e.rangeCount>0&&e.getRangeAt(0).collapsed||l()}function f(e){var t=e.type,n=e.target;!c&&Object(hr.isTextField)(n)&&r.current.contains(n)&&("keydown"!==t||function(e){var t=e.keyCode;return!e.shiftKey&&mf.includes(t)}(e))&&a()}return Object(b.useEffect)((function(){return s(c),function(){return s(!1)}}),[c]),Object(b.createElement)("div",{ref:r,onFocus:function(e){var t=e.target;n((function(){c&&!Object(hr.isTextField)(t)&&l()}))},onKeyPress:f,onKeyDown:Object(p.over)([f,function(e){!c||e.keyCode!==it.ESCAPE&&e.keyCode!==it.TAB||l()}])},t)}));function Of(){return cr()("PreserveScrollInReorder component",{hint:"This behavior is now built-in the block list"}),null}function gf(){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}}var hf=-1!==window.navigator.userAgent.indexOf("Trident"),jf=new Set([it.UP,it.DOWN,it.LEFT,it.RIGHT]),kf=function(e){Object(qt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Wt.a)(t);if(gf()){var r=Object(Wt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Kt.a)(this,e)});function r(){var e;return Object(zt.a)(this,r),(e=n.apply(this,arguments)).ref=Object(b.createRef)(),e.onKeyDown=e.onKeyDown.bind(Object(Gt.a)(e)),e.addSelectionChangeListener=e.addSelectionChangeListener.bind(Object(Gt.a)(e)),e.computeCaretRectOnSelectionChange=e.computeCaretRectOnSelectionChange.bind(Object(Gt.a)(e)),e.maintainCaretPosition=e.maintainCaretPosition.bind(Object(Gt.a)(e)),e.computeCaretRect=e.computeCaretRect.bind(Object(Gt.a)(e)),e.onScrollResize=e.onScrollResize.bind(Object(Gt.a)(e)),e.isSelectionEligibleForScroll=e.isSelectionEligibleForScroll.bind(Object(Gt.a)(e)),e}return Object(Ut.a)(r,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.onScrollResize,!0),window.addEventListener("resize",this.onScrollResize,!0)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("scroll",this.onScrollResize,!0),window.removeEventListener("resize",this.onScrollResize,!0),document.removeEventListener("selectionchange",this.computeCaretRectOnSelectionChange),this.onScrollResize.rafId&&window.cancelAnimationFrame(this.onScrollResize.rafId),this.onKeyDown.rafId&&window.cancelAnimationFrame(this.onKeyDown.rafId)}},{key:"computeCaretRect",value:function(){this.isSelectionEligibleForScroll()&&(this.caretRect=Object(hr.computeCaretRect)())}},{key:"computeCaretRectOnSelectionChange",value:function(){document.removeEventListener("selectionchange",this.computeCaretRectOnSelectionChange),this.computeCaretRect()}},{key:"onScrollResize",value:function(){var e=this;this.onScrollResize.rafId||(this.onScrollResize.rafId=window.requestAnimationFrame((function(){e.computeCaretRect(),delete e.onScrollResize.rafId})))}},{key:"isSelectionEligibleForScroll",value:function(){return this.props.selectedBlockClientId&&this.ref.current.contains(document.activeElement)&&document.activeElement.isContentEditable}},{key:"isLastEditableNode",value:function(){var e=this.ref.current.querySelectorAll('[contenteditable="true"]');return e[e.length-1]===document.activeElement}},{key:"maintainCaretPosition",value:function(e){var t=e.keyCode;if(this.isSelectionEligibleForScroll()){var n=Object(hr.computeCaretRect)();if(n)if(this.caretRect)if(jf.has(t))this.caretRect=n;else{var r=n.top-this.caretRect.top;if(0!==r){var o=Object(hr.getScrollContainer)(this.ref.current);if(o){var c=o===document.body,i=c?window.scrollY:o.scrollTop,a=c?0:o.getBoundingClientRect().top,l=c?this.caretRect.top/window.innerHeight:(this.caretRect.top-a)/(window.innerHeight-a);if(0===i&&l<.75&&this.isLastEditableNode())this.caretRect=n;else{var s=c?window.innerHeight:o.clientHeight;this.caretRect.top+this.caretRect.height>a+s||this.caretRect.top=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},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,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 a(e){for(var t=1;t=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=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";n.d(t,"a",(function(){return i}));var r=n(26);var o=n(35),a=n(29);function i(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(o.a)(e)||Object(a.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,n){"use strict";function r(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}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 r,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 p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);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";n.d(t,"a",(function(){return a}));var r=n(13),o=n(59);function a(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(74);function a(e,t){Object(r.useDebugValue)(e);var n=Object(r.useContext)(o.a);return null!=n[e]?n[e]:t}var i=n(54);var c=n(55);function s(e){var t,n,o,s=(o=e.compose,Array.isArray(o)?o:void 0!==o?[o]:[]),l=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=a(o);return c?Object(i.a)(Object(i.a)({},t),c(t,n)):t}(e.name,t,n)),e.compose)for(var o,c=Object(i.c)(s);!(o=c()).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=l(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=a(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 c,u=Object(i.c)(s);!(c=u()).done;){n=(0,c.value)(t,n,!0)}var d={},f=n||{};for(var h in f)void 0!==f[h]&&(d[h]=f[h]);return d};u.__useOptions=l;var d=s.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=s[0])||void 0===n?void 0:n.unstable_propsAreEqual)||c.a,u}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(13),o=n(54),a=n(78);function i(e,t){for(var n={},r={},o=0,a=Object.keys(e);o=0?n[i]=e[i]:r[i]=e[i]}return[n,r]}var c=n(55);function s(e){var t,n=e.as,s=e.useHook,l=e.memo,u=e.propsAreEqual,d=void 0===u?null==s?void 0:s.unstable_propsAreEqual:u,f=e.keys,h=void 0===f?(null==s?void 0:s.__keys)||[]:f,p=e.useCreateElement,b=void 0===p?a.a:p,v=function(e,t){var r=e.as,a=void 0===r?n:r,c=Object(o.b)(e,["as"]);if(s){var l,u=i(c,h),d=u[0],f=u[1],p=s(d,Object(o.a)({ref:t},f)),v=p.wrapElement,m=Object(o.b)(p,["wrapElement"]),y=(null===(l=a.render)||void 0===l?void 0:l.__keys)||a.__keys,g=y&&i(c,y)[0],O=g?Object(o.a)(Object(o.a)({},m),g):m,j=b(a,O);return v?v(j):j}return b(a,Object(o.a)({ref:t},c))};return t=v,v=Object(r.forwardRef)(t),l&&(v=function(e,t){return Object(r.memo)(e,t)}(v,d)),v.__keys=h,v.unstable_propsAreEqual=d||c.a,v}},function(e,t,n){"use strict";function r(e,t,n,r,o,a,i){try{var c=e[a](i),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,a){var i=e.apply(t,n);function c(e){r(i,o,a,c,s,"next",e)}function s(e){r(i,o,a,c,s,"throw",e)}c(void 0)}))}}n.d(t,"a",(function(){return o}))},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 p})),n.d(t,"d",(function(){return h})),n.d(t,"e",(function(){return g})),n.d(t,"f",(function(){return l})),n.d(t,"g",(function(){return C}));var r=n(17),o=n(13),a=n(59),i=n(62),c=n(61),s=n(65);function l(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 f(e,t){return t?e.find((function(e){return!e.disabled&&e.id!==t})):e.find((function(e){return!e.disabled}))}function h(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])},a=Object(r.c)(e);!(t=a()).done;)o();return n}function b(e){for(var t,n=0,o=Object(r.c)(e);!(t=o()).done;){var a=t.value.length;a>n&&(n=a)}return n}function v(e){for(var t=p(e),n=b(t),o=[],a=0;a=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=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,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 a=0,i=n;a1&&"boolean"!=typeof t)throw new TypeError('"allowMissing" argument must be a boolean');for(var n=b(e),a=v("%"+(n.length>0?n[0]:"")+"%",t),i=1;i=n.length){var c=o(a,n[i]);if(!t&&!(n[i]in a))throw new r("base intrinsic for "+e+" exists, but the property is not available.");a=c?c.get||c.value:a[n[i]]}else a=a[n[i]];return a}},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 a}));var r=n(13);function o(e,t){void 0===t&&(t=null),e&&("function"==typeof e?e(t):e.current=t)}function a(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),a=n(68);function i(e){void 0===e&&(e={});var t=Object(o.a)(e).baseId,n=Object(r.useContext)(a.a),i=Object(r.useRef)(0),c=Object(r.useState)((function(){return t||n()}));return{baseId:c[0],unstable_setBaseId:c[1],unstable_idCountRef:i}}i.__keys=["baseId","unstable_setBaseId","unstable_idCountRef"]},function(e,t,n){var r;!function(o){var a=/^\s+/,i=/\s+$/,c=0,s=o.round,l=o.min,u=o.max,d=o.random;function f(e,t){if(t=t||{},(e=e||"")instanceof f)return e;if(!(this instanceof f))return new f(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,r=null,c=null,s=null,d=!1,f=!1;"string"==typeof e&&(e=function(e){e=e.replace(a,"").replace(i,"").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:R(t[1]),g:R(t[2]),b:R(t[3]),a:L(t[4]),format:n?"name":"hex8"};if(t=K.hex6.exec(e))return{r:R(t[1]),g:R(t[2]),b:R(t[3]),format:n?"name":"hex"};if(t=K.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:n?"name":"hex8"};if(t=K.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&&(W(e.r)&&W(e.g)&&W(e.b)?(h=e.r,p=e.g,b=e.b,t={r:255*T(h,255),g:255*T(p,255),b:255*T(b,255)},d=!0,f="%"===String(e.r).substr(-1)?"prgb":"rgb"):W(e.h)&&W(e.s)&&W(e.v)?(r=A(e.s),c=A(e.v),t=function(e,t,n){e=6*T(e,360),t=T(t,100),n=T(n,100);var r=o.floor(e),a=e-r,i=n*(1-t),c=n*(1-a*t),s=n*(1-(1-a)*t),l=r%6;return{r:255*[n,c,i,i,s,n][l],g:255*[s,n,n,c,i,i][l],b:255*[i,i,s,n,n,c][l]}}(e.h,r,c),d=!0,f="hsv"):W(e.h)&&W(e.s)&&W(e.l)&&(r=A(e.s),s=A(e.l),t=function(e,t,n){var r,o,a;function i(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=T(e,360),t=T(t,100),n=T(n,100),0===t)r=o=a=n;else{var c=n<.5?n*(1+t):n+t-n*t,s=2*n-c;r=i(s,c,e+1/3),o=i(s,c,e),a=i(s,c,e-1/3)}return{r:255*r,g:255*o,b:255*a}}(e.h,r,s),d=!0,f="hsl"),e.hasOwnProperty("a")&&(n=e.a));var h,p,b;return n=z(n),{ok:d,format:e.format||f,r:l(255,u(t.r,0)),g:l(255,u(t.g,0)),b:l(255,u(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=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 h(e,t,n){e=T(e,255),t=T(t,255),n=T(n,255);var r,o,a=u(e,t,n),i=l(e,t,n),c=(a+i)/2;if(a==i)r=o=0;else{var s=a-i;switch(o=c>.5?s/(2-a-i):s/(a+i),a){case e:r=(t-n)/s+(t>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(f(r));return a}function x(e,t){t=t||6;for(var n=f(e).toHsv(),r=n.h,o=n.s,a=n.v,i=[],c=1/t;t--;)i.push(f({h:r,s:o,v:a})),a=(a+c)%1;return i}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=z(e),this._roundA=s(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=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=h(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=h(this._r,this._g,this._b),t=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 b(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var a=[N(s(e).toString(16)),N(s(t).toString(16)),N(s(n).toString(16)),N(H(r))];if(o&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1))return a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0);return a.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r: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*T(this._r,255))+"%",g:s(100*T(this._g,255))+"%",b:s(100*T(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+s(100*T(this._r,255))+"%, "+s(100*T(this._g,255))+"%, "+s(100*T(this._b,255))+"%)":"rgba("+s(100*T(this._r,255))+"%, "+s(100*T(this._g,255))+"%, "+s(100*T(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(P[b(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(M,arguments)},complement:function(){return this._applyCombination(_,arguments)},monochromatic:function(){return this._applyCombination(x,arguments)},splitcomplement:function(){return this._applyCombination(C,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]:A(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(),a=n/100;return f({r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a})},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,a=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=a>=4.5;break;case"AAlarge":o=a>=3;break;case"AAAsmall":o=a>=7}return o},f.mostReadable=function(e,t,n){var r,o,a,i,c=null,s=0;o=(n=n||{}).includeFallbackColors,a=n.level,i=n.size;for(var l=0;ls&&(s=r,c=f(t[l]));return f.isReadable(e,c,{level:a,size:i})||!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"},P=f.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(D);function z(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function T(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=l(t,u(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function I(e){return l(1,u(0,e))}function R(e){return parseInt(e,16)}function N(e){return 1==e.length?"0"+e:""+e}function A(e){return e<=1&&(e=100*e+"%"),e}function H(e){return o.round(255*parseFloat(e)).toString(16)}function L(e){return R(e)/255}var V,F,B,K=(F="[\\s|\\(]+("+(V="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",B="[\\s|\\(]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",{CSS_UNIT:new RegExp(V),rgb:new RegExp("rgb"+F),rgba:new RegExp("rgba"+B),hsl:new RegExp("hsl"+F),hsla:new RegExp("hsla"+B),hsv:new RegExp("hsv"+F),hsva:new RegExp("hsva"+B),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function W(e){return!!K.CSS_UNIT.exec(e)}e.exports?e.exports=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(17),o=n(49),a=n(48),i=n(55),c=Object(a.a)({name:"Box",keys:["unstable_system"],propsAreEqual:function(e,t){var n=e.unstable_system,o=Object(r.a)(e,["unstable_system"]),a=t.unstable_system,c=Object(r.a)(t,["unstable_system"]);return!(n!==a&&!Object(i.a)(n,a))&&Object(i.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(56);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 s}));var a=n(56),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 c(e){return r(e,i)&&function(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0}(e)}function s(e){for(;e&&!c(e);)e=o(e,i);return e}function l(e){return Object(a.a)(e)===e}function u(e,t){var n=void 0===t?{}:t,r=n.isActive,o=void 0===r?l:r,a=n.preventScroll;return o(e)?-1:(e.focus({preventScroll:a}),o(e)?-1:requestAnimationFrame((function(){e.focus({preventScroll:a})})))}},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(17),o=n(49),a=n(48),i=n(67),c=n(13),s=n(63),l=n(70),u=(n(80),n(46)),d=n(59),f=n(69),h=n(72),p=n(56),b=n(71);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(a.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,a=t.onClick,i=t.onMouseDown,f=t.style,v=Object(r.a)(t,["ref","tabIndex","onClick","onMouseDown","style"]),g=Object(c.useRef)(null),O=Object(u.a)(a),j=Object(u.a)(i),w=e.disabled&&!e.focusable,k=Object(c.useState)(!0),_=k[0],S=k[1],E=_?o:o||0,C=e.disabled?Object(r.b)({pointerEvents:"none"},f):f,M=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(h.a)(e)&&Object(l.a)(t)){var r=Object(p.a)(t);if(r){var o="BODY"===r.tagName,a=Object(b.b)(t.parentElement);if(r===a||o&&!a)n(t);else if(a){a.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 x=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==M||M(t)}),[e.disabled,M]);return Object(r.b)({ref:Object(s.a)(g,n),style:C,tabIndex:w?void 0:E,disabled:!(!w||!_)||void 0,"aria-disabled":!!e.disabled||void 0,onClick:x,onMouseDown:D},v)}});Object(o.a)({as:"div",useHook:g})},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 i}));var r=n(13),o=n(74),a=n(54);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(a.b)(t,["children"]))}return Object(r.createElement)(e,t,n)}},,function(e,t,n){"use strict";n(106),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,a=t.onKeyDown,i=t.shouldKeyDown,c=void 0===i?function(){return!0}:i,s=t.preventDefault,l=void 0===s||s;return function(e){if(n){var t,i="function"==typeof n?n(e):n,s="function"==typeof l?l(e):l,u="function"==typeof o?o(e):o;if(e.key in i){var d=i[e.key];if("function"==typeof d&&c(e))return s&&e.preventDefault(),u&&e.stopPropagation(),r&&r(e),void d(e)}if(a&&"current"in a)null===(t=a.current)||void 0===t||t.call(a,e);else null==a||a(e)}}}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(17),o=n(49),a=n(48),i=n(13),c=n(70),s=(n(80),n(46)),l=n(53),u=n(73);var d=Object(a.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,a=void 0===o||o,i=Object(r.a)(e,["unstable_clickOnEnter","unstable_clickOnSpace"]);return Object(r.b)({unstable_clickOnEnter:n,unstable_clickOnSpace:a},i)},useProps:function(e,t){var n=t.onKeyDown,o=t.onKeyUp,a=Object(r.a)(t,["onKeyDown","onKeyUp"]),u=Object(i.useState)(!1),d=u[0],f=u[1],h=Object(s.a)(n),p=Object(s.a)(o),b=Object(i.useCallback)((function(t){var n;if(null===(n=h.current)||void 0===n||n.call(h,t),!t.defaultPrevented&&!e.disabled&&!t.metaKey&&Object(l.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(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&&(f(!1),t.currentTarget.click())}}),[e.disabled,e.unstable_clickOnSpace,d]);return Object(r.b)({"data-active":d||void 0,onKeyDown:b,onKeyUp:v},a)}});Object(o.a)({as:"button",memo:!0,useHook:d})},function(e,t,n){e.exports=n(357)},function(e,t,n){"use strict";var r=n(20),o=n(19),a=n(23),i=n(16),c=n(22),s=n(0),l=n(2),u=n(112),d=n(165);function f(){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}}var h=function(e){Object(c.a)(h,e);var t,n=(t=h,function(){var e,n=Object(i.a)(t);if(f()){var r=Object(i.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(a.a)(this,e)});function h(){var e;return Object(r.a)(this,h),(e=n.apply(this,arguments)).delayedSetIsOver=Object(l.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)(h,[{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(l.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 a=s.Children.only(t),i=this.state.isOver;return Object(s.cloneElement)(a,{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)(a.props.children,i&&Object(s.createElement)(u.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})))})}}]),h}(s.Component);t.a=h},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(5),o=n(8),a=n(15),i=n(0),c=n(6),s=n(148);function l(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 u(e){for(var t=1;t2?arguments[2]:{},a=r(t);o&&(a=i.call(a,Object.getOwnPropertySymbols(t)));for(var c=0;c1&&void 0!==arguments[1]?arguments[1]:{},n=t.stylesPropName,c=void 0===n?"styles":n,u=t.themePropName,f=void 0===u?"theme":u,m=t.cssPropName,w=void 0===m?"css":m,k=t.flushBefore,_=void 0!==k&&k,S=t.pureComponent,E=void 0!==S&&S,C=void 0,M=void 0,x=void 0,D=void 0,P=g(E);function z(e){return e===l.DIRECTIONS.LTR?d.default.resolveLTR:d.default.resolveRTL}function T(e){return e===l.DIRECTIONS.LTR?x:D}function I(t,n){var r=T(t),o=t===l.DIRECTIONS.LTR?C:M,a=d.default.get();return o&&r===a||(t===l.DIRECTIONS.RTL?(M=e?d.default.createRTL(e):y,D=a,o=M):(C=e?d.default.createLTR(e):y,x=a,o=C)),o}function R(e,t){return{resolveMethod:z(e),styleDef:I(e)}}return function(e){var t=e.displayName||e.name||"Component",n=function(t){function n(e,t){h(this,n);var r=p(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t)),o=r.context[l.CHANNEL]?r.context[l.CHANNEL].getState():j;return r.state=R(o),r}return b(n,t),o(n,[{key:"componentDidMount",value:function(){var e=this;this.context[l.CHANNEL]&&(this.channelUnsubscribe=this.context[l.CHANNEL].subscribe((function(t){e.setState(R(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,a=n.styleDef;return i.default.createElement(e,r({},this.props,(v(t={},f,d.default.get()),v(t,c,a()),v(t,w,o),t)))}}]),n}(P);return n.WrappedComponent=e,n.displayName="withStyles("+String(t)+")",n.contextTypes=O,e.propTypes&&(n.propTypes=(0,a.default)({},e.propTypes),delete n.propTypes[c],delete n.propTypes[f],delete n.propTypes[w]),e.defaultProps&&(n.defaultProps=(0,a.default)({},e.defaultProps)),(0,s.default)(n,e)}};var a=f(n(92)),i=f(n(13)),c=f(n(28)),s=f(n(371)),l=n(374),u=f(n(375)),d=f(n(223));function f(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(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 b(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(!i.default.PureComponent)throw new ReferenceError("withStyles() pureComponent option requires React 15.3.0 or later");return i.default.PureComponent}return i.default.Component}var O=v({},l.CHANNEL,u.default),j=l.DIRECTIONS.LTR},,function(e,t,n){"use strict";var r=n(8),o=n(20),a=n(19),i=n(12),c=n(23),s=n(16),l=n(22),u=n(0),d=n(2),f=n(9);function h(){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}}var p=["button","submit"];t.a=Object(f.createHigherOrderComponent)((function(e){return function(t){Object(l.a)(b,t);var n,f=(n=b,function(){var e,t=Object(s.a)(n);if(h()){var r=Object(s.a)(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return Object(c.a)(this,e)});function b(){var e;return Object(o.a)(this,b),(e=f.apply(this,arguments)).bindNode=e.bindNode.bind(Object(i.a)(e)),e.cancelBlurCheck=e.cancelBlurCheck.bind(Object(i.a)(e)),e.queueBlurCheck=e.queueBlurCheck.bind(Object(i.a)(e)),e.normalizeButtonFocus=e.normalizeButtonFocus.bind(Object(i.a)(e)),e}return Object(a.a)(b,[{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)(p,e.type)}return!1}(n)&&(this.preventBlurCheck=!0)}},{key:"render",value:function(){return Object(u.createElement)("div",{onFocus:this.cancelBlurCheck,onMouseDown:this.normalizeButtonFocus,onMouseUp:this.normalizeButtonFocus,onTouchStart:this.normalizeButtonFocus,onTouchEnd:this.normalizeButtonFocus,onBlur:this.queueBlurCheck},Object(u.createElement)(e,Object(r.a)({ref:this.bindNode},this.props)))}}]),b}(u.Component)}),"withFocusOutside")},function(e,t,n){"use strict";var r=n(8),o=n(14),a=n(15),i=n(0),c=n(11),s=n.n(c),l=n(30),u=n(21),d=n(37),f=n.n(d),h=n(9),p=n(153),b=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;t0?c/2:l)+(l+c/2>window.innerWidth?window.innerWidth-l:c/2)},d=e.left;"right"===r?d=e.right:"middle"!==a&&(d=l);var f=e.right;"left"===r?f=e.left:"middle"!==a&&(f=l);var h,p={popoverLeft:d,contentWidth:d-c>0?c:d},b={popoverLeft:f,contentWidth:f+c>window.innerWidth?window.innerWidth-f:c},v=n,m=null;if(!o)if("center"===n&&u.contentWidth===c)v="center";else if("left"===n&&p.contentWidth===c)v="left";else if("right"===n&&b.contentWidth===c)v="right";else{var y="left"===(v=p.contentWidth>b.contentWidth?"left":"right")?p.contentWidth:b.contentWidth;m=y!==c?y:null}if(h="center"===v?u.popoverLeft:"left"===v?p.popoverLeft:b.popoverLeft,i){var g=i.getBoundingClientRect();h=Math.min(h,g.right-c)}return{xAxis:v,popoverLeft:h,contentWidth:m}}function g(e,t,n,r,o,a,i){var c=t.height;if(o){var s=(Object(l.getScrollContainer)(a)||document.body).getBoundingClientRect().top+c-i;if(e.top<=s)return{yAxis:n,popoverTop:Math.min(e.bottom,s)}}var u=e.top+e.height/2;"bottom"===r?u=e.bottom:"top"===r&&(u=e.top);var d={popoverTop:u,contentHeight:(u-c/2>0?c/2:u)+(u+c/2>window.innerHeight?window.innerHeight-u:c/2)},f={popoverTop:e.top,contentHeight:e.top-10-c>0?c:e.top-10},h={popoverTop:e.bottom,contentHeight:e.bottom+10+c>window.innerHeight?window.innerHeight-10-e.bottom:c},p=n,b=null;if(!o)if("middle"===n&&d.contentHeight===c)p="middle";else if("top"===n&&f.contentHeight===c)p="top";else if("bottom"===n&&h.contentHeight===c)p="bottom";else{var v="top"===(p=f.contentHeight>h.contentHeight?"top":"bottom")?f.contentHeight:h.contentHeight;b=v!==c?v:null}return{yAxis:p,popoverTop:"middle"===p?d.popoverTop:"top"===p?f.popoverTop:h.popoverTop,contentHeight:b}}var O=n(130),j=n(129),w=n(20),k=n(19),_=n(23),S=n(16),E=n(22),C=n(111);function M(){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}}var x=function(e){Object(E.a)(r,e);var t,n=(t=r,function(){var e,n=Object(S.a)(t);if(M()){var r=Object(S.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(_.a)(this,e)});function r(){return Object(w.a)(this,r),n.apply(this,arguments)}return Object(k.a)(r,[{key:"handleFocusOutside",value:function(e){this.props.onFocusOutside(e)}},{key:"render",value:function(){return this.props.children}}]),r}(i.Component),D=Object(C.a)(x),P=n(34),z=n(160),T=n(131),I=n(158),R=n(121),N=n(159),A=Object(j.a)(Object(O.a)((function(e){return e.children})));function H(e,t){var n=window.getComputedStyle(t),r=n.paddingTop,o=n.paddingBottom,a=n.paddingLeft,i=n.paddingRight,c=r?parseInt(r,10):0,s=o?parseInt(o,10):0,l=a?parseInt(a,10):0,u=i?parseInt(i,10):0;return{x:e.left+l,y:e.top+c,width:e.width-l-u,height:e.height-c-s,left:e.left+l,right:e.right-u,top:e.top+c,bottom:e.bottom-s}}function L(e,t,n){n?e.getAttribute(t)!==n&&e.setAttribute(t,n):e.hasAttribute(t)&&e.removeAttribute(t)}function V(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";e.style[t]!==n&&(e.style[t]=n)}function F(e,t,n){n?e.classList.contains(t)||e.classList.add(t):e.classList.contains(t)&&e.classList.remove(t)}var B=function(e){var t=e.headerTitle,n=e.onClose,c=e.onKeyDown,d=e.children,b=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,C=e.shouldAnchorIncludePadding,M=e.anchorRect,x=e.getAnchorRect,B=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(a.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(i.useRef)(null),ee=Object(i.useRef)(null),te=Object(i.useRef)(),ne=Object(h.useViewportMatch)("medium","<"),re=Object(i.useState)(),oe=Object(o.a)(re,2),ae=oe[0],ie=oe[1],ce=Object(I.a)(Y),se=B&&ne,le=Object(h.useResizeObserver)(),ue=Object(o.a)(le,2),de=ue[0],fe=ue[1];O=se||O,Object(i.useLayoutEffect)((function(){if(se)return F(te.current,"is-without-arrow",O),F(te.current,"is-alternate",j),L(te.current,"data-x-axis"),L(te.current,"data-y-axis"),V(te.current,"top"),V(te.current,"left"),V(ee.current,"maxHeight"),void V(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(l.getRectangleFromRange)(r);if(r instanceof window.Element){var a=r.getBoundingClientRect();return o?a:H(a,r)}var i=r.top,c=r.bottom,s=i.getBoundingClientRect(),u=c.getBoundingClientRect(),d=new window.DOMRect(s.left,s.top,s.width,u.bottom-s.top);return o?d:H(d,r)}if(e.current){var f=e.current.parentNode,h=f.getBoundingClientRect();return o?h:H(h,f)}}(Q,M,x,E,C);if(e){var t,n,r=te.current,a=r.offsetParent,i=r.ownerDocument,c=0;if(a&&a!==i.body){var s=a.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 u=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"top",r=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0,c=arguments.length>6?arguments[6]:void 0,s=n.split(" "),l=Object(o.a)(s,3),u=l[0],d=l[1],f=void 0===d?"center":d,h=l[2],p=g(e,t,u,h,r,a,i),b=y(e,t,f,h,r,p.yAxis,c);return m({},b,{},p)}(e,fe.height?fe:ee.current.getBoundingClientRect(),k,$,te.current,c,t),d=u.popoverTop,f=u.popoverLeft,h=u.xAxis,p=u.yAxis,b=u.contentHeight,v=u.contentWidth;"number"==typeof d&&"number"==typeof f&&(V(te.current,"top",d+"px"),V(te.current,"left",f+"px")),F(te.current,"is-without-arrow",O||"center"===h&&"middle"===p),F(te.current,"is-alternate",j),L(te.current,"data-x-axis",h),L(te.current,"data-y-axis",p),V(ee.current,"maxHeight","number"==typeof b?b+"px":""),V(ee.current,"maxWidth","number"==typeof v?v+"px":"");ie(({left:"right",right:"left"}[h]||"center")+" "+({top:"bottom",bottom:"top"}[p]||"middle"))}}};e();var t,n,r=window.setInterval(e,500),a=function(){window.cancelAnimationFrame(t),t=window.requestAnimationFrame(e)};return window.addEventListener("click",a),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",a),window.cancelAnimationFrame(t),n&&n.disconnect()}}),[se,M,x,E,C,k,fe,$,Z,X]),function(e,t){Object(i.useEffect)((function(){var n=setTimeout((function(){if(e&&t.current)if("firstElement"!==e)"container"===e&&t.current.focus();else{var n=l.focus.tabbable.find(t.current)[0];n?n.focus():t.current.focus()}}),0);return function(){return clearTimeout(n)}}),[])}(S,ee);var he=function(e){e.keyCode===u.ESCAPE&&n&&(e.stopPropagation(),n()),c&&c(e)};var pe=Object(i.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(i.createElement)(N.a,{type:W&&ae?"appear":null,options:{origin:ae}},(function(e){var o=e.className;return Object(i.createElement)(T.a,Object(r.a)({className:s()("components-popover",b,o,{"is-expanded":se,"is-without-arrow":O,"is-alternate":j})},J,{onKeyDown:he,ref:te}),se&&Object(i.createElement)(z.a,null),se&&Object(i.createElement)("div",{className:"components-popover__header"},Object(i.createElement)("span",{className:"components-popover__header-title"},t),Object(i.createElement)(P.a,{className:"components-popover__close",icon:p.a,onClick:n})),Object(i.createElement)("div",{ref:ee,className:"components-popover__content",tabIndex:"-1"},Object(i.createElement)("div",{style:{position:"relative"}},de,d)))})));return S&&(pe=Object(i.createElement)(A,null,pe)),ce.ref&&(pe=Object(i.createElement)(R.a,{name:Y},pe)),E||M?pe:Object(i.createElement)("span",{ref:Q},pe)};B.Slot=function(e){var t=e.name,n=void 0===t?"Popover":t;return Object(i.createElement)(R.b,{bubblesVirtually:!0,name:n,className:"popover-slot"})};t.a=B},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(169)),a=r(n(170)),i=n(13),c=r(i),s=r(n(145)),l=r(n(171)),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 f(e,t){return u.und(e)||u.nul(e)?t:e}function h(e){return u.und(e)?[]:u.arr(e)?e:[e]}function p(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=n.length)break;a=n[o++]}else{if((o=n.next()).done)break;a=o.value}for(var i=a,c=!1,s=0;s=h.startTime+l.duration;else if(l.decay)v=p+g/(1-.998)*(1-Math.exp(-(1-.998)*(t-h.startTime))),(u=Math.abs(h.lastPosition-v)<.1)&&(b=v);else{d=void 0!==h.lastTime?h.lastTime:t,g=void 0!==h.lastVelocity?h.lastVelocity:l.initialVelocity,t>d+64&&(d=t);for(var O=Math.floor(t-d),j=0;jb:v=e);++n);return n-1}(e,a);return function(e,t,n,r,o,a,i,c,s){var l=s?s(e):e;if(ln){if("identity"===c)return l;"clamp"===c&&(l=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?l=-l:n===1/0?l-=t:l=(l-t)/(n-t);l=a(l),r===-1/0?l=-l:o===1/0?l+=r:l=l*(o-r)+r;return l}(e,a[t],a[t+1],o[t],o[t+1],s,i,c,r.map)}}var V=function(e){function t(n,r,o,a){var i;return(i=e.call(this)||this).calc=void 0,i.payload=n instanceof g&&!(n instanceof t)?n.getPayload():Array.isArray(n)?n:[n],i.calc=L(r,o,a),i}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=L(e,t,n)},n.interpolate=function(e,n,r){return new t(this,e,n,r)},t}(g);var F=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 V(this,e,t,n)},t}(y),B=function(e){function t(t){var n;return(n=e.call(this)||this).payload=t.map((function(e){return new F(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 V(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=b(e),n=t.delay,r=void 0===n?0:n,i=t.to,c=a(t,["delay","to"]);if(u.arr(i)||u.fun(i))this.queue.push(o({},c,{delay:r,to:i}));else if(i){var s={};Object.entries(i).forEach((function(e){var t,n=e[0],a=e[1],i=o({to:(t={},t[n]=a,t),delay:p(r,n)},c),l=s[i.delay]&&s[i.delay].to;s[i.delay]=o({},s[i.delay],i,{to:o({},l,i.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,a=e.to,i=void 0===a?{}:a;u.obj(r)&&(n.merged=o({},r,n.merged)),u.obj(i)&&(n.merged=o({},n.merged,i))}));var r=this.local=++this.guid,i=this.localQueue=this.queue;this.queue=[],i.forEach((function(t,o){var c=t.delay,s=a(t,["delay"]),l=function(t){o===i.length-1&&r===n.guid&&t&&(n.idle=!0,n.props.onRest&&n.props.onRest(n.merged)),e&&e()},d=u.arr(s.to)||u.fun(s.to);c?setTimeout((function(){r===n.guid&&(d?n.runAsync(s,l):n.diff(s).start(l))}),c):d?n.runAsync(s,l):n.diff(s).start(l)}))}else u.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,A.has(t)||A.add(t),N||(N=!0,_(P||H));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,A.has(t)&&A.delete(t)),this},t.runAsync=function(e,t){var n=this,r=(e.delay,a(e,["delay"])),i=this.local,c=Promise.resolve(void 0);if(u.arr(r.to))for(var s=function(e){var t=e,a=o({},r,b(r.to[t]));u.arr(a.config)&&(a.config=a.config[t]),c=c.then((function(){if(i===n.guid)return new Promise((function(e){return n.diff(a).start(e)}))}))},l=0;l=r.length)return"break";i=r[a++]}else{if((a=r.next()).done)return"break";i=a.value}var n=i.key,c=function(e){return e.key!==n};(u.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),a=0;for(r=o?r:r[Symbol.iterator]();;){var i;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;n1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function le(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,a=se(o,r,e+1/3),i=se(o,r,e),c=se(o,r,e-1/3);return Math.round(255*a)<<24|Math.round(255*i)<<16|Math.round(255*c)<<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 fe(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function he(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:X.hasOwnProperty(t)?X[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|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=ae.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|le(de(n[1]),he(n[2]),he(n[3])))>>>0:(n=re.exec(t))?(le(de(n[1]),he(n[2]),he(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 be=/[+\-]?(?: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={};T((function(e){return new Z(e)})),x("div"),E((function(e){var t=e.output.map((function(e){return e.replace(ve,pe)})).map((function(e){return e.replace(me,pe)})),n=t[0].match(be).map((function(){return[]}));t.forEach((function(e){e.match(be).forEach((function(e,t){return n[t].push(+e)}))}));var r=t[0].match(be).map((function(t,r){return L(o({},e,{output:n[r]}))}));return function(e){var n=0;return t[0].replace(be,(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,i=t.scrollLeft,c=a(t,["style","children","scrollTop","scrollLeft"]),s="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;for(var l in void 0!==o&&(e.scrollTop=o),void 0!==i&&(e.scrollLeft=i),void 0!==r&&(e.textContent=r),n)if(n.hasOwnProperty(l)){var u=0===l.indexOf("--"),d=Oe(l,n[l],u);"float"===l&&(l="cssFloat"),u?e.style.setProperty(l,d):e.style[l]=d}for(var f in c){var h=s?f:je[f]||(je[f]=f.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(h)&&e.setAttribute(h,c[f])}}),(function(e){return e}));var we,ke,_e=(we=function(e){return i.forwardRef((function(t,n){var r=d(),s=i.useRef(!0),l=i.useRef(null),f=i.useRef(null),h=i.useCallback((function(e){var t=l.current;l.current=new R(e,(function(){var e=!1;f.current&&(e=v.fn(f.current,l.current.getAnimatedValue())),f.current&&!1!==e||r()})),t&&t.detach()}),[]);i.useEffect((function(){return function(){s.current=!1,l.current&&l.current.detach()}}),[]),i.useImperativeHandle(n,(function(){return z(f,s,r)})),h(t);var p,b=l.current.getValue(),m=(b.scrollTop,b.scrollLeft,a(b,["scrollTop","scrollLeft"])),y=(p=e,!u.fun(p)||p.prototype instanceof c.Component?function(e){return f.current=function(e,t){return t&&(u.fun(t)?t(e):u.obj(t)&&(t.current=e)),e}(e,n)}:void 0);return c.createElement(e,o({},m,{ref:y}))}))},void 0===(ke=!1)&&(ke=!0),function(e){return(u.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=H,t.animated=Se,t.a=Se,t.interpolate=function(e,t,n){return e&&new V(e,t,n)},t.Globals=I,t.useSpring=function(e){var t=u.fun(e),n=U(1,t?e:[e]),r=n[0],o=n[1],a=n[2];return t?[r[0],o,a]:r},t.useTrail=function(e,t){var n=i.useRef(!1),r=u.fun(t),a=p(t),c=i.useRef(),s=U(e,(function(e,t){return 0===e&&(c.current=[]),c.current.push(t),o({},a,{config:p(a.config,e),attach:e>0&&function(){return c.current[e-1]}})})),l=s[0],d=s[1],f=s[2],h=i.useMemo((function(){return function(e){return d((function(t,n){e.reverse;var r=e.reverse?t+1:t-1,i=c.current[r];return o({},e,{config:p(e.config||a.config,t),attach:i&&function(){return i}})}))}}),[e,a.reverse]);return i.useEffect((function(){n.current&&!r&&h(t)})),i.useEffect((function(){n.current=!0}),[]),r?[l,h,f]:l},t.useTransition=function(e,t,n){var r=o({items:e,keys:t||function(e){return e}},n),c=q(r),s=c.lazy,l=void 0!==s&&s,u=(c.unique,c.reset),f=void 0!==u&&u,h=(c.enter,c.leave,c.update,c.onDestroyed),b=(c.keys,c.items,c.onFrame),v=c.onRest,m=c.onStart,y=c.ref,g=a(c,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),O=d(),j=i.useRef(!1),w=i.useRef({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!r.ref,instances:!j.current&&new Map,forceUpdate:O});return i.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,i=a(e,["first","prevProps"]),c=q(t),s=c.items,l=c.keys,u=c.initial,d=c.from,f=c.enter,h=c.leave,b=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({},i.current),E=[].concat(i.deleted),C=Object.keys(S),M=new Set(C),x=new Set(l),D=l.filter((function(e){return!M.has(e)})),P=i.transitions.filter((function(e){return!e.destroyed&&!x.has(e.originalKey)})).map((function(e){return e.originalKey})),z=l.filter((function(e){return M.has(e)})),T=-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=l.indexOf(e),o=s[r],a=n&&void 0!==u?"initial":"enter";S[e]={slot:a,originalKey:e,key:y?String(e):G++,item:o,trail:T+=m,config:p(g,o,a),from:p(n&&void 0!==u?u||{}:d,o),to:p(f,o)}}));break;case"leave":P.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:T+=m,config:p(g,n,"leave"),to:p(h,n)})),delete S[e]}));break;case"update":z.forEach((function(e){var t=l.indexOf(e),n=s[t];S[e]=o({},S[e],{item:n,slot:"update",trail:T+=m,config:p(g,n,"update"),to:p(b,n)})}))}}var I=l.map((function(e){return S[e]}));return E.forEach((function(e){var t,n=e.left,r=(e.right,a(e,["left","right"]));-1!==(t=I.findIndex((function(e){return e.originalKey===n})))&&(t+=1),t=Math.max(0,t),I=[].concat(I.slice(0,t),[r],I.slice(t))})),o({},i,{changed:D.length||P.length||z.length,first:n&&0===D.length,transitions:I,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,a=e.config,i=e.trail,c=e.key,s=e.item;w.current.instances.has(c)||w.current.instances.set(c,new W);var u=w.current.instances.get(c),d=o({},g,{to:r,from:n,config:a,ref:y,onRest:function(n){w.current.mounted&&(e.destroyed&&(y||l||Y(w,c),h&&h(s)),!Array.from(w.current.instances).some((function(e){return!e[1].idle}))&&(y||l)&&w.current.deleted.length>0&&Y(w),v&&v(s,t,n))},onStart:m&&function(){return m(s,t)},onFrame:b&&function(e){return b(s,t,e)},delay:i,reset:f&&"enter"===t});u.update(d),w.current.paused||u.start()})),i.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=i.useRef();i.useEffect((function(){u.equ(e,r.current)?e.forEach((function(e){var t=e.current;return t&&t.start()})):t?e.forEach((function(e,r){var a=e.current;if(a){var i=a.controllers;if(i.length){var c=n*t[r];i.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,a=null==(o=r)||"number"==typeof o||"boolean"==typeof o?r:n(r),i=t.get(a);return void 0===i&&(i=e.call(this,r),t.set(a,i)),i}function r(e,t,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),a=t.get(o);return void 0===a&&(a=e.apply(this,r),t.set(o,a)),a}function o(e,t,n,r,o){return n.bind(t,e,r,o)}function a(e,t){return o(e,this,1===e.length?n:r,t.cache.create(),t.serializer)}function i(){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:i;return(t&&t.strategy?t.strategy:a)(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){var n,r,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function c(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var s,l=[],u=!1,d=-1;function f(){u&&s&&(u=!1,s.length?l=s.concat(l):d=-1,l.length&&h())}function h(){if(!u){var e=c(f);u=!0;for(var t=l.length;t;){for(s=l,l=[];++d1)for(var n=1;n2?n-2:0),o=2;o0&&void 0!==arguments[0]?arguments[0]:{},t=e.htmlDocument,n=void 0===t?document:t,a=e.className,i=void 0===a?"lockscroll":a,u=0,d=0;function f(e){var t=n.scrollingElement||n.body;e&&(d=t.scrollTop);var r=e?"add":"remove";t.classList[r](i),n.documentElement.classList[r](i),e||(t.scrollTop=d)}function h(){0===u&&f(!0),++u}function p(){1===u&&f(!1),--u}return function(e){Object(c.a)(n,e);var t=l(n);function n(){return Object(r.a)(this,n),t.apply(this,arguments)}return Object(o.a)(n,[{key:"componentDidMount",value:function(){h()}},{key:"componentWillUnmount",value:function(){p()}},{key:"render",value:function(){return null}}]),n}(s.Component)}()},function(e,t,n){"use strict";(function(e){var r=n(0),o=n(2),a=n(11),i=n.n(a),c=n(57),s=n(1),l=(n(104),n(34));t.a=Object(r.forwardRef)((function(t,n){var a=t.className,u=t.children,d=t.spokenMessage,f=void 0===d?u:d,h=t.politeness,p=void 0===h?"polite":h,b=t.actions,v=void 0===b?[]:b,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,p),Object(r.useEffect)((function(){var e=setTimeout((function(){y()}),1e4);return function(){return clearTimeout(e)}}),[]);var g=i()(a,"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"},u,v.map((function(e,t){var n=e.label,o=e.onClick,a=e.url;return Object(r.createElement)(l.a,{key:t,href:a,isTertiary:!0,onClick:function(e){e.stopPropagation(),o&&o(e)},className:"components-snackbar__action"},n)}))))}))}).call(this,n(117))},,,,function(e,t,n){"use strict";var r=n(0),o=n(2);t.a=function(e){var t,n,a=e.shortcut,i=e.className;return a?(Object(o.isString)(a)&&(t=a),Object(o.isObject)(a)&&(t=a.display,n=a.ariaLabel),Object(r.createElement)("span",{className:i,"aria-label":n},t)):null}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(17),o=(n(13),n(62)),a=n(51);function i(e){void 0===e&&(e={});var t=Object(o.a)(e),n=t.orientation,i=void 0===n?"horizontal":n,c=Object(r.a)(t,["orientation"]);return Object(a.g)(Object(r.b)({orientation:i},c))}var c=[].concat(a.g.__keys);i.__keys=c},,,function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t=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(178);e.exports=function(e,t,n){n=n||{},9===t.nodeType&&(t=r.getWindow(t));var o=n.allowHorizontalScroll,a=n.onlyScrollIfNeeded,i=n.alignWithTop,c=n.alignWithLeft,s=n.offsetTop||0,l=n.offsetLeft||0,u=n.offsetBottom||0,d=n.offsetRight||0;o=void 0===o||o;var f=r.isWindow(t),h=r.offset(e),p=r.outerHeight(e),b=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:h.left-k.left-l,top:h.top-k.top-s},j={left:h.left+b-(k.left+_)+d,top:h.top+p-(k.top+S)+u},g=k):(v=r.offset(t),m=t.clientHeight,y=t.clientWidth,g={left:t.scrollLeft,top:t.scrollTop},O={left:h.left-(v.left+(parseFloat(r.css(t,"borderLeftWidth"))||0))-l,top:h.top-(v.top+(parseFloat(r.css(t,"borderTopWidth"))||0))-s},j={left:h.left+b-(v.left+y+(parseFloat(r.css(t,"borderRightWidth"))||0))+d,top:h.top+p-(v.top+m+(parseFloat(r.css(t,"borderBottomWidth"))||0))+u}),O.top<0||j.top>0?!0===i?r.scrollTop(t,g.top+O.top):!1===i?r.scrollTop(t,g.top+j.top):O.top<0?r.scrollTop(t,g.top+O.top):r.scrollTop(t,g.top+j.top):a||((i=void 0===i||!!i)?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):a||((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;t1&&"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!(!a.default.isMoment(e)||!a.default.isMoment(t))&&(e.date()===t.date()&&e.month()===t.month()&&e.year()===t.year())};var r,o=n(43),a=(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(a.ISO_MONTH_FORMAT):null};var r=i(n(43)),o=i(n(240)),a=n(77);function i(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 b}));var r=n(18),o=n(20),a=n(19),i=n(12),c=n(23),s=n(16),l=n(22),u=n(0),d=n(2);function f(){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}}var h=Object(u.createContext)({focusHistory:[]}),p=h.Provider,b=h.Consumer;p.displayName="FocusReturnProvider",b.displayName="FocusReturnConsumer";var v=function(e){Object(l.a)(h,e);var t,n=(t=h,function(){var e,n=Object(s.a)(t);if(f()){var r=Object(s.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(c.a)(this,e)});function h(){var e;return Object(o.a)(this,h),(e=n.apply(this,arguments)).onFocus=e.onFocus.bind(Object(i.a)(e)),e.state={focusHistory:[]},e}return Object(a.a)(h,[{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(u.createElement)(p,{value:this.state},Object(u.createElement)("div",{onFocus:this.onFocus,className:n},t))}}]),h}(u.Component);t.b=v},function(e,t,n){"use strict";e.exports=n(305)},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,a=/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,i=/^(left|center|right|top|bottom)/i,c=/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,s=/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,l=/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,u=/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,d=/^\(/,f=/^\)/,h=/^,/,p=/^\#([0-9a-fA-F]+)/,b=/^([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&&(N(h)||O("Missing comma before color stops")),{type:e,orientation:r,colorStops:D(P)}}))}function _(e,t){var n=N(e);if(n)return N(d)||O("Missing ("),result=t(n),N(f)||O("Missing )"),result}function S(){return R("directional",o,1)||R("angular",u,1)}function E(){var e,t,n=C();return n&&((e=[]).push(n),t=g,N(h)&&((n=C())?e.push(n):g=t)),e}function C(){var e=function(){var e=R("shape",/^(circle)/i,0);e&&(e.style=I()||M());return e}()||function(){var e=R("shape",/^(ellipse)/i,0);e&&(e.style=T()||M());return e}();if(e)e.at=function(){if(R("position",/^at/,0)){var e=x();return e||O("Missing positioning value"),e}}();else{var t=x();t&&(e={type:"default-radial",at:t})}return e}function M(){return R("extent-keyword",a,1)}function x(){var e={x:T(),y:T()};if(e.x||e.y)return{type:"position",value:e}}function D(e){var t=e(),n=[];if(t)for(n.push(t);N(h);)(t=e())?n.push(t):O("One extra comma");return n}function P(){var e=R("hex",p,1)||_(m,(function(){return{type:"rgba",value:D(z)}}))||_(v,(function(){return{type:"rgb",value:D(z)}}))||R("literal",b,0);return e||O("Expected color definition"),e.length=T(),e}function z(){return N(y)[1]}function T(){return R("%",s,1)||R("position-keyword",i,1)||I()}function I(){return R("px",c,1)||R("em",l,1)}function R(e,t,n){var r=N(t);if(r)return{type:e,value:r[n]}}function N(e){var t,n;return(n=/^[\n\r\t\s]+/.exec(g))&&A(n[0].length),(t=e.exec(g))&&A(t[0].length),t}function A(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(6),a=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=a},function(e,t,n){"use strict";var r=n(0),o=n(6),a=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=a},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(314);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}}).call(this,n(127))},function(e,t,n){"use strict";var r=n(315),o=n(325),a=n(182),i=n(219),c=n(218),s=n(345);e.exports=function(){var e=s(this),t=c(a(e,"length")),n=1;arguments.length>0&&void 0!==arguments[0]&&(n=i(arguments[0]));var l=r(e,0);return o(l,e,t,0,n),l}},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(140)("Object.prototype.propertyIsEnumerable");e.exports=function(e,t,n,a,i,c){if(!r){if(!e(c))return!1;if(!c["[[Configurable]]"]||!c["[[Writable]]"])return!1;if(i in a&&o(a,i)!==!!c["[[Enumerable]]"])return!1;var s=c["[[Value]]"];return a[i]=s,t(a[i],s)}return r(a,i,n(c)),!0}},function(e,t,n){"use strict";var r=n(184),o=n(90);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(91),o=n(184),a=n(90);e.exports=function(e){return void 0!==e&&(o(a,"Property Descriptor","Desc",e),!(!r(e,"[[Value]]")&&!r(e,"[[Writable]]")))}},function(e,t,n){"use strict";var r=n(185);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(91),o=n(58)("%TypeError%"),a=n(90),i=n(213),c=n(323);e.exports=function(e){if("Object"!==a(e))throw new o("ToPropertyDescriptor requires an object");var t={};if(r(e,"enumerable")&&(t["[[Enumerable]]"]=i(e.enumerable)),r(e,"configurable")&&(t["[[Configurable]]"]=i(e.configurable)),r(e,"value")&&(t["[[Value]]"]=e.value),r(e,"writable")&&(t["[[Writable]]"]=i(e.writable)),r(e,"get")){var n=e.get;if(void 0!==n&&!c(n))throw new TypeError("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,a=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{r=Object.defineProperty({},"length",{get:function(){throw o}}),o={}}catch(e){i=null}else i=null;var c=/^\s*class\b/,s=function(e){try{var t=a.call(e);return c.test(t)}catch(e){return!1}},l=Object.prototype.toString,u="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=i?function(e){if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;try{i(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(u)return function(e){try{return!s(e)&&(a.call(e),!0)}catch(e){return!1}}(e);if(s(e))return!1;var t=l.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%"),a=r("%Number%");e.exports=a.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(216),o=n(219);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(335),o=n(338);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,a="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(e){return"object"==typeof e&&null!==e&&(a?function(e){try{return r.call(e),!0}catch(e){return!1}}(e):"[object Date]"===o.call(e))}},function(e,t,n){"use strict";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(207);e.exports=function(){return Array.prototype.flat||r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=void 0,o=void 0;function a(e,t){var n=t(e(o));return function(){return n}}function i(e){return a(e,r.createLTR||r.create)}function c(){for(var e=arguments.length,t=Array(e),n=0;n=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(228);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,a.default)(e,t))};var r=i(n(43)),o=i(n(239)),a=i(n(189));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){if(!a.default.isMoment(e)||!a.default.isMoment(t))return!1;var n=e.year(),r=e.month(),o=t.year(),i=t.month(),c=n===o,s=r===i;return c&&s?e.date()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",a="width"===t?"Right":"Bottom",i=!n||r?window.getComputedStyle(e):null,c=e.offsetWidth,s=e.offsetHeight,l="width"===t?c:s;n||(l-=parseFloat(i["padding"+o])+parseFloat(i["padding"+a])+parseFloat(i["border"+o+"Width"])+parseFloat(i["border"+a+"Width"]));r&&(l+=parseFloat(i["margin"+o])+parseFloat(i["margin"+a]));return l}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),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!(!a.default.isMoment(e)||!a.default.isMoment(t))&&(e.month()===t.month()&&e.year()===t.year())};var r,o=n(43),a=(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 it})),n.d(t,"Animate",(function(){return ct.a})),n.d(t,"AnglePickerControl",(function(){return dt})),n.d(t,"Autocomplete",(function(){return xt})),n.d(t,"BaseControl",(function(){return lt})),n.d(t,"__experimentalBoxControl",(function(){return ra})),n.d(t,"Button",(function(){return jt.a})),n.d(t,"ButtonGroup",(function(){return oa})),n.d(t,"Card",(function(){return wa})),n.d(t,"CardBody",(function(){return Sa})),n.d(t,"CardDivider",(function(){return Ea})),n.d(t,"CardFooter",(function(){return xa})),n.d(t,"CardHeader",(function(){return za})),n.d(t,"CardMedia",(function(){return Ta})),n.d(t,"CheckboxControl",(function(){return Na})),n.d(t,"ClipboardButton",(function(){return Aa})),n.d(t,"ColorIndicator",(function(){return Ha})),n.d(t,"ColorPalette",(function(){return bi})),n.d(t,"ColorPicker",(function(){return fi})),n.d(t,"CustomSelectControl",(function(){return uc})),n.d(t,"Dashicon",(function(){return dc.a})),n.d(t,"DateTimePicker",(function(){return jc})),n.d(t,"DatePicker",(function(){return mc})),n.d(t,"TimePicker",(function(){return gc})),n.d(t,"__experimentalDimensionControl",(function(){return Sc})),n.d(t,"Disabled",(function(){return Tc})),n.d(t,"Draggable",(function(){return Nc})),n.d(t,"DropZone",(function(){return Yc})),n.d(t,"__unstableUseDropZone",(function(){return $c})),n.d(t,"DropZoneProvider",(function(){return Gc})),n.d(t,"Dropdown",(function(){return hi})),n.d(t,"DropdownMenu",(function(){return cs})),n.d(t,"ExternalLink",(function(){return ls})),n.d(t,"Flex",(function(){return Sn})),n.d(t,"FlexBlock",(function(){return Rt})),n.d(t,"FlexItem",(function(){return It})),n.d(t,"FocalPointPicker",(function(){return hs})),n.d(t,"FocusableIframe",(function(){return ms})),n.d(t,"FontSizePicker",(function(){return Ys})),n.d(t,"FormFileUpload",(function(){return Zs})),n.d(t,"FormToggle",(function(){return Xs})),n.d(t,"FormTokenField",(function(){return fl})),n.d(t,"__experimentalGradientPicker",(function(){return ou})),n.d(t,"__experimentalCustomGradientPicker",(function(){return ru})),n.d(t,"Guide",(function(){return Su})),n.d(t,"GuidePage",(function(){return Eu})),n.d(t,"Icon",(function(){return wc.a})),n.d(t,"IconButton",(function(){return Cu})),n.d(t,"__experimentalInputControl",(function(){return Mr})),n.d(t,"KeyboardShortcuts",(function(){return Ka})),n.d(t,"MenuGroup",(function(){return Mu})),n.d(t,"MenuItem",(function(){return Du})),n.d(t,"MenuItemsChoice",(function(){return Pu})),n.d(t,"Modal",(function(){return ju})),n.d(t,"ScrollLock",(function(){return zu.a})),n.d(t,"NavigableMenu",(function(){return rs})),n.d(t,"TabbableContainer",(function(){return Tu})),n.d(t,"Notice",(function(){return Iu})),n.d(t,"__experimentalNumberControl",(function(){return Ar})),n.d(t,"NoticeList",(function(){return Ru})),n.d(t,"Panel",(function(){return Au})),n.d(t,"PanelBody",(function(){return Bu})),n.d(t,"PanelHeader",(function(){return Nu})),n.d(t,"PanelRow",(function(){return Ku})),n.d(t,"Placeholder",(function(){return Wu})),n.d(t,"Popover",(function(){return wt.a})),n.d(t,"QueryControls",(function(){return Xu})),n.d(t,"__experimentalRadio",(function(){return sd})),n.d(t,"__experimentalRadioGroup",(function(){return hd})),n.d(t,"RadioControl",(function(){return pd})),n.d(t,"RangeControl",(function(){return $s})),n.d(t,"ResizableBox",(function(){return Xd})),n.d(t,"ResponsiveWrapper",(function(){return Jd})),n.d(t,"SandBox",(function(){return tf})),n.d(t,"SelectControl",(function(){return kc})),n.d(t,"Snackbar",(function(){return nf.a})),n.d(t,"SnackbarList",(function(){return sf})),n.d(t,"Spinner",(function(){return lf})),n.d(t,"TabPanel",(function(){return df})),n.d(t,"__experimentalText",(function(){return or})),n.d(t,"TextControl",(function(){return Xa})),n.d(t,"TextareaControl",(function(){return ff})),n.d(t,"TextHighlight",(function(){return hf})),n.d(t,"Tip",(function(){return pf})),n.d(t,"ToggleControl",(function(){return bf})),n.d(t,"Toolbar",(function(){return Of})),n.d(t,"ToolbarButton",(function(){return $l})),n.d(t,"__experimentalToolbarContext",(function(){return Ul.a})),n.d(t,"ToolbarGroup",(function(){return Jl})),n.d(t,"__experimentalToolbarItem",(function(){return Wl.a})),n.d(t,"Tooltip",(function(){return M.a})),n.d(t,"__experimentalTreeGrid",(function(){return Sf})),n.d(t,"__experimentalTreeGridRow",(function(){return Ef})),n.d(t,"__experimentalTreeGridCell",(function(){return Df})),n.d(t,"__experimentalTreeGridItem",(function(){return xf})),n.d(t,"TreeSelect",(function(){return qu})),n.d(t,"__experimentalUnitControl",(function(){return to})),n.d(t,"VisuallyHidden",(function(){return P})),n.d(t,"IsolatedEventContainer",(function(){return au.a})),n.d(t,"createSlotFill",(function(){return Pf.c})),n.d(t,"Slot",(function(){return Pf.b})),n.d(t,"Fill",(function(){return Pf.a})),n.d(t,"SlotFillProvider",(function(){return zf.b})),n.d(t,"__experimentalUseSlot",(function(){return Tf.a})),n.d(t,"navigateRegions",(function(){return Rf})),n.d(t,"withConstrainedTabbing",(function(){return cu.a})),n.d(t,"withFallbackStyles",(function(){return Af})),n.d(t,"withFilters",(function(){return Vf})),n.d(t,"withFocusOutside",(function(){return us.a})),n.d(t,"withFocusReturn",(function(){return iu.a})),n.d(t,"FocusReturnProvider",(function(){return Ff.b})),n.d(t,"withNotices",(function(){return Xf})),n.d(t,"withSpokenMessages",(function(){return St}));var r=n(6),o=n(8),a=n(14),i=n(15),c=n(0),s=n(2),l=n(11),u=n.n(l),d=n(51),f=n(119),h=n(17),p=n(49),b=n(48),v=n(13),m=n.n(v),y=n(63),g=n(59),O=n(67),j=Object(b.a)({name:"Group",compose:O.a,useProps:function(e,t){return Object(h.b)({role:"group"},t)}}),w=(Object(p.a)({as:"div",useHook:j}),n(93)),k=Object(b.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(h.a)(e,["currentId","unstable_moves"])),o=t.currentId,a=(t.unstable_moves,Object(h.a)(t,["currentId","unstable_moves"]));if(e.items&&t.items){var i=Object(d.d)(e.items,n),c=Object(d.d)(t.items,o),s=null==i?void 0:i.groupId,l=null==c?void 0:c.groupId;if(t.id===l||t.id===s)return!1}return j.unstable_propsAreEqual(r,a)},useProps:function(e,t){var n=t.ref,r=Object(h.a)(t,["ref"]),o=Object(v.useRef)(null),a=e.id;return Object(g.a)((function(){var t;if(a)return null===(t=e.registerGroup)||void 0===t||t.call(e,{id:a,ref:o}),function(){var t;null===(t=e.unregisterGroup)||void 0===t||t.call(e,a)}}),[a,e.registerGroup,e.unregisterGroup]),Object(h.b)({ref:Object(y.a)(o,n)},r)}}),_=Object(p.a)({as:"div",useHook:k}),S=n(1),E=n(9),C=n(120),M=n(86),x=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 P=function(e){var t=e.as,n=void 0===t?"div":t,r=e.className,o=Object(i.a)(e,["as","className"]);return function(e){var t=e.as,n=void 0===t?"div":t,r=Object(i.a)(e,["as"]);return"function"==typeof r.children?r.children(r):Object(c.createElement)(n,r)}(function(e){for(var t=1;tr&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(b,"$1"+e.trim());case 58:return e.trim()+t.replace(b,"$1"+e.trim());default:if(0<1*n&&0s.charCodeAt(8))break;case 115:i=i.replace(s,"-webkit-"+s)+";"+i;break;case 207:case 102:i=i.replace(s,"-webkit-"+(102c.charCodeAt(0)&&(c=c.trim()),c=[c],0h)&&(L=(B=B.replace(" ",":")).length),0=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=L((function(e){return ne(e)?e:e.replace(ee,"-$&").toLowerCase()})),ae=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 ie(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;o96?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;t0&&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,a=n.b;return"rgba(".concat(r,", ").concat(o,", ").concat(a,", ").concat(t,")")}function Ae(e){return Object(s.get)(Re,e,"#000")}function He(){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 Le={name:"1xiracb",styles:"border-radius:2px;box-sizing:border-box;display:grid;grid-template-columns:repeat( 3,1fr );outline:none;"},Ve=function(){return Le},Fe=je("div",{target:"e1od1u4s0",label:"Root"})(Ve,";border:1px solid transparent;cursor:pointer;grid-template-columns:auto;",(function(e){var t=e.size,n=void 0===t?92:t;return ue("grid-template-rows:repeat( 3,calc( ",n,"px / 3 ) );width:",n,"px;")}),";"),Be=je("div",{target:"e1od1u4s1",label:"Row"})({name:"1177s8r",styles:"box-sizing:border-box;display:grid;grid-template-columns:repeat( 3,1fr );"}),Ke=function(e){return ue("background:currentColor;box-sizing:border-box;display:grid;margin:auto;transition:all 120ms linear;",He("transition")," ",(t=e.isActive,n=t?"0 0 0 2px ".concat(Ae("black")):null,r=Ae(t?"black":"lightGray.800"),o=Ae(t?"black":"blue.medium.focus"),ue("box-shadow:",n,";color:",r,";*:hover > &{color:",o,";}")),"");var t,n,r,o},We=je("span",{target:"e1od1u4s2",label:"Point"})("height:6px;width:6px;",Ke,""),Ue=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 Ge(e){var t=e.isActive,n=void 0!==t&&t,r=e.value,a=Object(i.a)(e,["isActive","value"]),s=T[r];return Object(c.createElement)(M.a,{text:s},Object(c.createElement)(C.a,Object(o.a)({as:Ue,role:"gridcell"},a),Object(c.createElement)(P,null,r),Object(c.createElement)(We,{isActive:n,role:"presentation"})))}var $e=new RegExp(/-left/g),qe=new RegExp(/-right/g),Ye=new RegExp(/Left/g),Ze=new RegExp(/Right/g);function Xe(){return!(!document||"rtl"!==document.documentElement.dir)}function Je(){return Xe()}function Qe(e){return"left"===e?"right":"right"===e?"left":$e.test(e)?e.replace($e,"-right"):qe.test(e)?e.replace(qe,"-left"):Ye.test(e)?e.replace(Ye,"Right"):Ze.test(e)?e.replace(Ze,"Left"):e}var et=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(s.mapKeys)(e,(function(e,t){return Qe(t)}))};function tt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return function(){var n=Xe();return ue(t?n?t:e:n?et(e):e,"")}}je("div",{target:"elqsdmc0",label:"Wrapper"})({name:"co61ta",styles:"box-sizing:border-box;padding:2px;"});var nt=je("div",{target:"elqsdmc1",label:"Root"})("transform-origin:top left;height:100%;width:100%;",Ve,";",(function(){return ue({gridTemplateRows:"repeat( 3, calc( ".concat(21,"px / 3))"),padding:1.5,maxHeight:24,maxWidth:24},"")}),";",(function(e){var t=e.disablePointerEvents;return ue({pointerEvents:t?"none":null},"")}),";"),rt=je("span",{target:"elqsdmc2",label:"Point"})("height:2px;width:2px;",Ke,";",(function(e){var t=e.isActive;return ue("box-shadow:",t?"0 0 0 1px currentColor":null,";color:currentColor;*:hover > &{color:currentColor;}")}),";"),ot=Ue;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 it(e){var t=e.className,n=e.id,r=e.label,l=void 0===r?Object(S.__)("Alignment Matrix Control"):r,h=e.defaultValue,p=void 0===h?"center center":h,b=e.value,v=e.onChange,m=void 0===v?s.noop:v,y=e.width,g=void 0===y?92:y,O=Object(i.a)(e,["className","id","label","defaultValue","value","onChange","width"]),j=Object(c.useState)(null!=b?b:p),w=Object(a.a)(j,1)[0],k=Je(),C=function(e){var t=Object(E.useInstanceId)(it,"alignment-matrix-control");return e||t}(n),M=N(C,w),x=Object(d.g)({baseId:C,currentId:M,rtl:k});Object(c.useEffect)((function(){void 0!==b&&x.setCurrentId(N(C,b))}),[b,x.setCurrentId]);var D=u()("component-alignment-matrix-control",t);return Object(c.createElement)(f.a,Object(o.a)({},O,x,{"aria-label":l,as:Fe,className:D,role:"grid",width:g}),z.map((function(e,t){return Object(c.createElement)(_,Object(o.a)({},x,{as:Be,role:"row",key:t}),e.map((function(e){var t=N(C,e),n=x.currentId===t;return Object(c.createElement)(Ge,Object(o.a)({},x,{id:t,isActive:n,key:e,value:e,onFocus:function(){m(e)}}))})))})))}it.Icon=function(e){var t=e.className,n=e.disablePointerEvents,r=void 0===n||n,a=e.size,s=void 0===a?24:a,l=e.style,d=void 0===l?{}:l,f=e.value,h=void 0===f?"center":f,p=Object(i.a)(e,["className","disablePointerEvents","size","style","value"]),b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"center",t=R(e).replace("-"," "),n=I.indexOf(t);return n>-1?n:void 0}(h),v=(s/24).toFixed(2),m=u()("component-alignment-matrix-control-icon",t),y=function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"polite";Object(kt.speak)(e,t)}},{key:"componentWillUnmount",value:function(){this.debouncedSpeak.cancel()}},{key:"render",value:function(){return Object(c.createElement)(e,Object(o.a)({},this.props,{speak:this.speak,debouncedSpeak:this.debouncedSpeak}))}}]),a}(c.Component)}),"withSpokenMessages");function Et(){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}}var Ct=function(e){var t=e.useItems?e.useItems:function(t){var n=Object(c.useState)([]),r=Object(a.a)(n,2),o=r[0],i=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)}})),a=new RegExp("(?:\\b|\\s|^)"+Object(s.escapeRegExp)(t),"i");i(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;o0?null:Object(c.createElement)(wt.a,{focusOnMount:!1,onClose:p,position:"top right",className:"components-autocomplete__popover",anchorRef:(n=window.getSelection(),n.rangeCount?n.getRangeAt(0):null)},Object(c.createElement)("div",{id:i,role:"listbox",className:"components-autocomplete__results"},Object(s.map)(v,(function(e,t){return Object(c.createElement)(jt.a,{key:e.key,id:"components-autocomplete-item-".concat(o,"-").concat(e.key),role:"option","aria-selected":t===d,disabled:e.isDisabled,className:u()("components-autocomplete__result",l,{"is-selected":t===d}),onClick:function(){return h(e)}},e.label)}))))}},Mt=function(e){Object(mt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(vt.a)(t);if(Et()){var r=Object(vt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(bt.a)(this,e)});function r(){var e;return Object(ft.a)(this,r),(e=n.apply(this,arguments)).select=e.select.bind(Object(ht.a)(e)),e.reset=e.reset.bind(Object(ht.a)(e)),e.onChangeOptions=e.onChangeOptions.bind(Object(ht.a)(e)),e.handleKeyDown=e.handleKeyDown.bind(Object(ht.a)(e)),e.state=e.constructor.getInitialState(),e}return Object(pt.a)(r,null,[{key:"getInitialState",value:function(){return{selectedIndex:0,filteredOptions:[],filterValue:"",autocompleter:null,AutocompleterUI:null}}}]),Object(pt.a)(r,[{key:"insertCompletion",value:function(e){var t=this.state,n=t.autocompleter,r=t.filterValue,o=this.props,a=o.record,i=o.onChange,s=a.start,l=s-n.triggerPrefix.length-r.length,u=Object(Ot.create)({html:Object(c.renderToString)(e)});i(Object(Ot.insert)(a,u,l,s))}},{key:"select",value:function(e){var t=this.props.onReplace,n=this.state,r=n.autocompleter,o=n.filterValue,a=(r||{}).getOptionCompletion;if(!e.isDisabled){if(a){var i=a(e.value,o),c=void 0===i.action||void 0===i.value?{action:"insert-at-caret",value:i}:i,s=c.action,l=c.value;"replace"===s?t([l]):"insert-at-caret"===s&&this.insertCompletion(l)}this.reset()}}},{key:"reset",value:function(){this.setState(this.constructor.getInitialState())}},{key:"announce",value:function(e){var t=this.props.debouncedSpeak;t&&(e.length?t(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"):t(Object(S.__)("No results."),"assertive"))}},{key:"onChangeOptions",value:function(e){var t=e.length===this.state.filteredOptions.length?this.state.selectedIndex:0;this.setState({filteredOptions:e,selectedIndex:t}),this.announce(e)}},{key:"handleKeyDown",value:function(e){var t=this.state,n=t.autocompleter,r=t.selectedIndex,o=t.filteredOptions;if(n&&0!==o.length){var a;switch(e.keyCode){case gt.UP:a=(0===r?o.length:r)-1,this.setState({selectedIndex:a});break;case gt.DOWN:a=(r+1)%o.length,this.setState({selectedIndex:a});break;case gt.ESCAPE:this.setState({autocompleter:null,AutocompleterUI:null});break;case gt.ENTER:this.select(o[r]);break;case gt.LEFT:case gt.RIGHT:return void this.reset();default:return}e.preventDefault(),e.stopPropagation()}}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.record,r=t.completers,o=e.record;if(Object(Ot.isCollapsed)(n)){var a=Object(s.deburr)(Object(Ot.getTextContent)(Object(Ot.slice)(n,0))),i=Object(s.deburr)(Object(Ot.getTextContent)(Object(Ot.slice)(o,0)));if(a!==i){var c=Object(Ot.getTextContent)(Object(Ot.slice)(n,void 0,Object(Ot.getTextContent)(n).length)),l=Object(s.find)(r,(function(e){var t=e.triggerPrefix,n=e.allowContext,r=a.lastIndexOf(t);return-1!==r&&(!(n&&!n(a.slice(0,r),c))&&/^\S*$/.test(a.slice(r+t.length)))}));if(!l)return void this.reset();var u=Object(s.escapeRegExp)(l.triggerPrefix),d=a.match(new RegExp("".concat(u,"(\\S*)$"))),f=d&&d[1];this.setState({autocompleter:l,AutocompleterUI:l!==this.state.autocompleter?Ct(l):this.state.AutocompleterUI,filterValue:f})}}}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.instanceId,r=e.isSelected,o=this.state,a=o.autocompleter,i=o.selectedIndex,s=o.filteredOptions,l=o.AutocompleterUI,u=o.filterValue,d=(s[i]||{}).key,f=void 0===d?"":d,h=(a||{}).className,p=!!a&&s.length>0,b=p?"components-autocomplete-listbox-".concat(n):null,v=p?"components-autocomplete-item-".concat(n,"-").concat(f):null;return Object(c.createElement)(c.Fragment,null,t({isExpanded:p,listBoxId:b,activeId:v,onKeyDown:this.handleKeyDown}),r&&l&&Object(c.createElement)(l,{className:h,filterValue:u,instanceId:n,listBoxId:b,selectedIndex:i,onChangeOptions:this.onChangeOptions,onSelect:this.select,onReset:this.onReset}))}}]),r}(c.Component),xt=Object(E.compose)([St,E.withInstanceId])(Mt);var Dt={name:"8kj89b",styles:"flex-direction:row-reverse;"},Pt=je("div",{target:"eboqfv50",label:"Flex"})("box-sizing:border-box;display:flex;",(function(e){var t=e.align;return ue({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),ue({justifyContent:o},"")}),";",(function(e){var t=e.gap,n=e.isReversed,r="number"==typeof t?4*t:4,o="padding-".concat(n?"left":"right");return ue("> *{",o,":",r,"px;&:last-child{",o,":0;}}")}),";",(function(e){return e.isReversed?Dt:""}),";"),zt=je("div",{target:"eboqfv51",label:"Item"})({name:"13luw5d",styles:"box-sizing:border-box;min-width:0;max-width:100%;"}),Tt=je(zt,{target:"eboqfv52",label:"Block"})({name:"1rr4qq7",styles:"flex:1;"});var It=Object(c.forwardRef)((function(e,t){var n=e.className,r=Object(i.a)(e,["className"]),a=u()("components-flex__item",n);return Object(c.createElement)(zt,Object(o.a)({},r,{className:a,ref:t}))}));var Rt=Object(c.forwardRef)((function(e,t){var n=e.className,r=Object(i.a)(e,["className"]),a=u()("components-flex__block",n);return Object(c.createElement)(Tt,Object(o.a)({},r,{className:a,ref:t}))}));function Nt(e,t){return e.map((function(e,n){return e+t[n]}))}function At(e,t){return e.map((function(e,n){return e-t[n]}))}function Ht(e,t,n){return n=n||Math.hypot.apply(Math,e),t?n/t:0}function Lt(e,t){return t?e.map((function(e){return e/t})):Array(e.length).fill(0)}function Vt(e){return Math.hypot.apply(Math,e)}function Ft(e,t){return t=t||Math.hypot.apply(Math,e)||1,e.map((function(e){return e/t}))}function Bt(e,t,n){var r=Math.hypot.apply(Math,t);return{velocities:Lt(t,n),velocity:Ht(t,n,r),distance:Vt(e),direction:Ft(t,r)}}function Kt(e,t){return Math.abs(e)>=t&&Math.sign(e)*t}function Wt(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 Ut(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):en?Wt(e-n,n-t,r)+n:e}function Gt(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}function Zt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=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 Jt(){}var Qt=function(){for(var e=arguments.length,t=new Array(e),n=0;n0?t:n}return null}function un(e){var t="buttons"in e?e.buttons:0,n=ln(e),r=n&&n.length||0;return $t({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 dn(e){var t=ln(e),n=t?t[0]:e;return{values:[n.clientX,n.clientY]}}var fn=function(){var e=this;this.state=on(),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&&(sn(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,cn(e.config.window,n,e.config.eventOptions))},this.removeWindowListeners=function(t){if(e.config.window){var n=e.windowListeners[t];n&&(sn(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(),Qt.apply(void 0,r)])})),cn(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],a=Array.isArray(o)?o:[o];t[r+n]=Qt.apply(void 0,a)})),t},this.getBind=function(){if(e.config.domTarget){var t=e.getDomTarget();return t&&e.addDomTargetListeners(t),e.clean}return e.getBindings()}};function hn(e,t,n,r){var o=m.a.useMemo((function(){var e=new fn;return{nativeRefs:r,current:e,bind:function(){e.resetBindings();for(var n=arguments.length,r=new Array(n),a=0;a2?o-2:0),i=2;id?"x":u0?(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=un(e);if(t.down){r.updateSharedState(t);var n=dn(e).values,o=r.getKinematics(n,e),a=r.state._isTap;a&&Vt(o._movement)>=3&&(a=!1),r.updateGestureState($t({},r.getGenericPayload(e),{},o,{_isTap:a,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,a=t.velocities,i=a[0],c=a[1],s=t.movement,l=s[0],u=s[1],d=t._intentional,f=d[0],h=d[1],p=$t({},r.getGenericPayload(e),{},r.getMovement(o)),b=p.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];b<220&&(!1!==f&&Math.abs(i)>y&&Math.abs(l)>j&&(k[0]=Math.sign(i)),!1!==h&&Math.abs(c)>g&&Math.abs(u)>w&&(k[1]=Math.sign(c))),r.updateGestureState($t({event:e},p,{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:Jt}),r.state._active=!1,r.updateSharedState({down:!1,buttons:0,touches:0}),requestAnimationFrame((function(){return r.fireGestureHandler()}))},r}qt(t,e);var n=t.prototype;return n.startDrag=function(e){var t=this,n=dn(e).values;this.updateSharedState(un(e));var r=$t({},this.getStartGestureState(n,e),{},this.getGenericPayload(e,!0));this.updateGestureState($t({},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}(bn),mn="undefined"!=typeof window?window:void 0,yn={lockDirection:!1,axis:void 0,bounds:void 0};function gn(e){void 0===e&&(e={});var t=e,n=t.eventOptions,r=(n=void 0===n?{}:n).passive,o=void 0===r||r,a=n.capture,i=void 0!==a&&a,c=n.pointer,s=void 0!==c&&c,l=t.window,u=void 0===l?mn:l,d=t.domTarget,f=void 0===d?void 0:d,h=t.enabled,p=void 0===h||h;return $t({},Yt(t,["eventOptions","window","domTarget","enabled"]),{enabled:p,domTarget:f,window:u,eventOptions:{passive:!f||!!o,capture:!!i},captureString:i?"Capture":"",pointer:!!s})}function On(e){var t=e.threshold,n=void 0===t?void 0:t,r=e.rubberband,o=void 0===r?0:r,a=e.enabled,i=void 0===a||a,c=e.initial;return"boolean"==typeof o&&(o=o?.15:0),void 0===n&&(n=0),{enabled:i,initial:void 0===c?[0,0]:c,threshold:en(n),rubberband:en(o)}}function jn(e){void 0===e&&(e={});var t=e,n=t.axis,r=t.lockDirection,o=t.bounds,a=void 0===o?{}:o,i=Yt(t,["axis","lockDirection","bounds"]),c=[[tn(a.left,-1/0),tn(a.right,1/0)],[tn(a.top,-1/0),tn(a.bottom,1/0)]];return $t({},On(i),{},yn,{},nn({axis:n,lockDirection:r},e),{bounds:c})}function wn(e){void 0===e&&(e={});var t=e,n=t.enabled,r=t.threshold,o=t.bounds,a=t.rubberband,i=t.initial,c=Yt(t,["enabled","threshold","bounds","rubberband","initial"]),s=c.swipeVelocity,l=void 0===s?.5:s,u=c.swipeDistance,d=void 0===u?60:u,f=c.delay,h=void 0!==f&&f,p=c.filterTaps,b=void 0!==p&&p,v=c.axis,m=c.lockDirection;void 0===r?r=Math.max(0,b?3:0,m||v?1:0):b=!0;var y=jn(nn({enabled:n,threshold:r,bounds:o,rubberband:a,axis:v,lockDirection:m,initial:i},e));return $t({},y,{filterTaps:b||y.threshold[0]+y.threshold[1]>0,swipeVelocity:en(l),swipeDistance:en(d),delay:"number"==typeof h?h:h?180:0})}var kn=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=dn(e).values;r.updateSharedState(un(e));var n=$t({},r.getStartGestureState(t,e),{},r.getGenericPayload(e,!0));r.updateGestureState($t({},n,{},r.getMovement(t,n))),r.fireGestureHandler()},r.onMoveChange=function(e){var t=un(e);r.updateSharedState(t);var n=dn(e).values,o=r.getKinematics(n,e);r.updateGestureState($t({},r.getGenericPayload(e),{},o)),r.fireGestureHandler()},r.onMoveEnd=function(){r.state._active=!1,r.updateGestureState($t({},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=dn(e).values,n=$t({},r.controller.state.shared,{},r.state,{},r.getGenericPayload(e,!0),{values:t,active:!0,hovering:!0});r.controller.handlers.hover($t({},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=dn(e).values,n=$t({},r.controller.state.shared,{},r.state,{},r.getGenericPayload(e),{values:t,active:!1});r.controller.handlers.hover($t({},n,{},r.mapStateValues(n)))}},r}return qt(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}(bn);var _n=Object(c.forwardRef)((function(e,t){var n=e.align,r=void 0===n?"center":n,a=e.className,s=e.gap,l=void 0===s?2:s,d=e.justify,f=void 0===d?"space-between":d,h=e.isReversed,p=void 0!==h&&h,b=Object(i.a)(e,["align","className","gap","justify","isReversed"]),v=u()("components-flex",a);return Object(c.createElement)(Pt,Object(o.a)({},b,{align:r,className:v,ref:t,gap:l,justify:f,isReversed:p}))})),Sn=_n;function En(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 Cn(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:xn,t=e.value;return Cn({},xn,{},e,{initialValue:t})}var Tn=function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:"body";switch(e){case"title.large":return Nn(Un(),Gn,$n);case"title.medium":return Nn(Wn(),Gn,qn);case"title.small":return Nn(Kn(),Gn,Yn);case"subtitle":return Nn(Bn(),Zn,"\n\tfont-size: 16px;\n\tline-height: 24px;\n");case"subtitle.small":return Nn(Fn(),Zn,"\n\tfont-size: 14px;\n\tline-height: 20px;\n");case"body":return Nn(Vn(),Xn);case"body.large":return Nn(Ln(),Xn,Jn);case"body.small":return Nn(Hn(),Xn,Qn);case"button":return er;case"caption":return tr;case"label":return nr}}(e.variant))},or=je("p",{target:"e15wbhsk0",label:"Text"})("\n\tbox-sizing: border-box;\n\tmargin: 0;\n",rr,"");var ar={name:"r6z5ec",styles:"z-index:1;"},ir=je("div",{target:"e1cr7zh10",label:"Root"})("box-sizing:border-box;position:relative;border-radius:2px;",(function(e){var t=e.isFloatingLabel;return ue({paddingTop:t?5:0},"")}),";",(function(e){return e.isFocused?ar:""}),";"),cr=je("div",{target:"e1cr7zh11",label:"Container"})("align-items:center;box-sizing:border-box;border-radius:inherit;display:flex;position:relative;",(function(e){var t=Ae(e.disabled?"ui.backgroundDisabled":"ui.background");return ue({backgroundColor:t},"")}),";"),sr=je("input",{target:"e1cr7zh12",label:"Input"})("&&&{background-color:transparent;box-sizing:border-box;border:none;box-shadow:none !important;color:",Ae("black"),";display:block;outline:none;padding-left:8px;padding-right:8px;width:100%;",(function(e){var t=e.isDragging,n=e.dragCursor,r="",o="";return t&&(r=ue("cursor:",n,";user-select:none;&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none !important;margin:0 !important;}")),t&&n&&(o=ue("&:active{cursor:",n,";}")),ue(r,";",o,";")}),";",(function(e){return e.disabled?ue({color:Ae("ui.textDisabled")},""):""}),";",(function(e){var t={default:"13px",small:"11px"}[e.size];return t?ue("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 ue(n[t]||n.default,"")}),";",(function(e){var t=e.isFilled,n=e.isFloating,r=1;return e.isFloatingLabel&&(t||n||(r=0)),ue("&::placeholder{opacity:",r,";}&::-webkit-input-placeholder{line-height:normal;}")}),";}"),lr=function(e){var t=e.isFloatingLabel,n=e.isFilled,r=e.isFloating,o=t&&!n||r?Ae("ui.textDisabled"):"currentColor";return ue({color:o},"")},ur=function(e){var t=e.isFloatingLabel,n=e.size;return ue({fontSize:{default:"13px",small:"11px"}[n],lineHeight:t?1.2:null},"")},dr=function(e){var t=e.isFloatingLabel,n=e.isFloating,r=t?0:4,o=t?"absolute":null,a=n?null:"none",i="small"===e.size,c=n?0:i?1:2,s=t?8:0,l=n?"translate( 0, calc(-100% + ".concat(i?"-1px":"-3px",") ) scale( 0.75 )"):"translate( 0, -50%) scale(1)";t||(l=null);var u=t?"transform ".concat("60ms"," linear"):null;return ue({marginTop:c,paddingBottom:r,position:o,pointerEvents:a,transition:u,transform:l},tt({marginLeft:s})(),tt({transformOrigin:"top left"},{transformOrigin:"top right"})(),"")},fr={name:"fjfd5j",styles:"max-width:calc( 100% - 10px );overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"},hr=function(e){return e.isFloating?"":fr},pr=je(or,{target:"e1cr7zh13",label:"BaseLabel"})("&&&{box-sizing:border-box;display:block;margin:0;max-width:100%;padding:0;pointer-events:none;top:50%;transition:transform ","60ms"," linear,max-width ","60ms"," linear;z-index:1;",lr,";",ur,";",dr,";",hr,";",He("transition"),";",tt({left:0}),"}"),br=function(e){return Object(c.createElement)(pr,Object(o.a)({},e,{as:"label"}))},vr=je("fieldset",{target:"e1cr7zh14",label:"Fieldset"})("&&&{box-sizing:border-box;border-radius:inherit;bottom:0;left:0;margin:0;padding:0;pointer-events:none;position:absolute;right:0;",(function(e){var t=e.disabled,n=e.isFocused,r=Ae(n?"ui.borderFocus":"ui.border");t&&(r="ui.borderDisabled");return ue({borderColor:r,borderStyle:"solid",borderWidth:n?2:1},"")}),";",(function(e){var t=e.isFloatingLabel;return ue({top:t?-5:0},"")}),";",tt({paddingLeft:2}),"}"),mr=je("legend",{target:"e1cr7zh15",label:"Legend"})("&&&{box-sizing:border-box;display:block;height:11px;line-height:11px;margin:0;padding:0;transition:max-width ","60ms"," linear;visibility:hidden;width:auto;",(function(e){var t=e.isFloating,n=e.size;return ue({fontSize:{default:9.75,small:8.25}[n],maxWidth:t?1e3:.01},"")}),";",He("transition"),";}"),yr=je(or,{target:"e1cr7zh16",label:"BaseLegendText"})("box-sizing:border-box;display:inline-block;",tt({paddingLeft:4,paddingRight:5}),""),gr=function(e){return Object(c.createElement)(yr,Object(o.a)({},e,{as:"span"}))},Or=je("span",{target:"e1cr7zh17",label:"Suffix"})({name:"1pxuk39",styles:"box-sizing:border-box;display:block;"});var jr=Object(c.memo)((function(e){var t=e.disabled,n=void 0!==t&&t,r=e.isFloating,o=void 0!==r&&r,a=e.isFloatingLabel,i=void 0!==a&&a,s=e.isFocused,l=void 0!==s&&s,u=e.label,d=e.size,f=void 0===d?"default":d;return Object(c.createElement)(vr,{"aria-hidden":"true",className:"components-input-control__backdrop",disabled:n,isFloatingLabel:i,isFocused:l},i&&Object(c.createElement)(mr,{"aria-hidden":"true",className:"components-input-control__backdrop-label",isFloating:o,size:f},Object(c.createElement)(gr,{className:"components-input-control__backdrop-text"},u)))}));function wr(e){return null!=e}function kr(e){var t=""===e;return!wr(e)||t}function _r(){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(wr))&&void 0!==e?e:n}var Sr=Object(c.forwardRef)((function(e,t){var n=e.disabled,r=void 0!==n&&n,l=e.dragDirection,u=void 0===l?"n":l,d=e.dragThreshold,f=void 0===d?10:d,h=e.id,p=e.isDragEnabled,b=void 0!==p&&p,v=e.isFloating,m=void 0!==v&&v,y=e.isFloatingLabelSet,g=void 0!==y&&y,O=e.isPressEnterToChange,j=void 0!==O&&O,w=e.onBlur,k=void 0===w?s.noop:w,_=e.onChange,S=void 0===_?s.noop:_,E=e.onDrag,C=void 0===E?s.noop:E,M=e.onDragEnd,x=void 0===M?s.noop:M,D=e.onDragStart,P=void 0===D?s.noop:D,z=e.onFocus,T=void 0===z?s.noop:z,I=e.onKeyDown,R=void 0===I?s.noop:I,N=e.onUpdateValue,A=e.onValidate,H=void 0===A?s.noop:A,L=e.size,V=void 0===L?"default":L,F=e.stateReducer,B=void 0===F?function(e){return e}:F,K=e.value,W=Object(i.a)(e,["disabled","dragDirection","dragThreshold","id","isDragEnabled","isFloating","isFloatingLabelSet","isPressEnterToChange","onBlur","onChange","onDrag","onDragEnd","onDragStart","onFocus","onKeyDown","onUpdateValue","onValidate","size","stateReducer","value"]),U=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Mn,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:xn,n=Object(c.useReducer)(In(e),zn(t)),r=Object(a.a)(n,2),o=r[0],i=r[1],s=function(e){return function(t,n){n&&n.persist&&n.persist(),i({type:e,payload:{value:t,event:n}})}},l=function(e){return function(t){t&&t.persist&&t.persist(),i({type:e,payload:{event:t}})}},u=function(e){return function(t){i({type:e,payload:t})}},d=s(Dn.CHANGE),f=s(Dn.INVALIDATE),h=s(Dn.RESET),p=s(Dn.COMMIT),b=s(Dn.UPDATE),v=u(Dn.DRAG_START),m=u(Dn.DRAG),y=u(Dn.DRAG_END),g=l(Dn.PRESS_UP),O=l(Dn.PRESS_DOWN),j=l(Dn.PRESS_ENTER);return{change:d,commit:p,dispatch:i,drag:m,dragEnd:y,dragStart:v,inValidate:f,pressDown:O,pressEnter:j,pressUp:g,reset:h,state:o,update:b}}(B,{isDragEnabled:b,value:K,isPressEnterToChange:j}),G=U.state,$=U.change,q=U.commit,Y=U.drag,Z=U.dragEnd,X=U.dragStart,J=U.invalidate,Q=U.pressDown,ee=U.pressEnter,te=U.pressUp,ne=U.reset,re=U.update,oe=G._event,ae=G.value,ie=G.isDragging,ce=G.isDirty,se=Object(c.useRef)(ae),le=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}(ie,u);Object(c.useEffect)((function(){if(K!==se.current)return re(K),void(se.current=K);ae===se.current||ce||(S(ae,{event:oe}),N(!kr(ae)),se.current=ae)}),[ae,ce,K]);var ue=function(e){var t=e.target.value;try{H(t,{event:e}),q(t,e)}catch(t){J(t,{event:e})}},de=function(e,t){void 0===t&&(t={});var n=t,r=n.domTarget,o=n.eventOptions,a=n.window,i=Yt(n,["domTarget","eventOptions","window"]),c=$t({},gn({domTarget:r,eventOptions:o,window:a}),{drag:wn(i)});return hn({drag:e},[vn],c)}((function(e){var t=e.distance,n=e.dragging,r=e.event;if(b&&t){if(r.stopPropagation(),!n)return x(e),void Z(e);C(e),Y(e),ie||(P(e),X(e))}}),{threshold:f,enabled:b});return Object(c.createElement)(sr,Object(o.a)({},W,de(),{className:"components-input-control__input",disabled:r,dragCursor:le,isDragging:ie,id:h,isFloating:m,isFloatingLabel:g,onBlur:function(e){k(e),j&&ce&&(kr(ae)?ne(K):ue({target:{value:ae}},e))},onChange:function(e){var t=e.target.value;$(t,e)},onFocus:function(e){T(e)},onKeyDown:function(e){var t=e.keyCode;switch(R(e),t){case gt.UP:te(e);break;case gt.DOWN:Q(e);break;case gt.ENTER:ee(e),j&&(e.preventDefault(),ue(e))}},ref:t,size:V,value:ae}))}));function Er(e){var t=e.children,n=e.hideLabelFromVision,r=e.htmlFor,a=Object(i.a)(e,["children","hideLabelFromVision","htmlFor"]);return t?n?Object(c.createElement)(P,{as:"label",htmlFor:r},t):Object(c.createElement)(br,Object(o.a)({htmlFor:r},a),t):null}function Cr(e,t){var n=e.__unstableStateReducer,r=void 0===n?function(e){return e}:n,l=e.children,d=e.className,f=e.disabled,h=void 0!==f&&f,p=e.hideLabelFromVision,b=void 0!==p&&p,v=e.id,m=e.isPressEnterToChange,y=void 0!==m&&m,g=e.isFloatingLabel,O=void 0!==g&&g,j=e.label,w=e.onBlur,k=void 0===w?s.noop:w,_=e.onChange,S=void 0===_?s.noop:_,C=e.onFocus,M=void 0===C?s.noop:C,x=e.onValidate,D=void 0===x?s.noop:x,P=e.onKeyDown,z=void 0===P?s.noop:P,T=e.size,I=void 0===T?"default":T,R=e.suffix,N=e.value,A=Object(i.a)(e,["__unstableStateReducer","children","className","disabled","hideLabelFromVision","id","isPressEnterToChange","isFloatingLabel","label","onBlur","onChange","onFocus","onValidate","onKeyDown","size","suffix","value"]),H=Object(c.useState)(!1),L=Object(a.a)(H,2),V=L[0],F=L[1],B=Object(c.useState)(!kr(N)),K=Object(a.a)(B,2),W=K[0],U=K[1],G=function(e){var t=Object(E.useInstanceId)(Cr),n="inspector-input-control-".concat(t);return e||n}(v),$=u()("components-input-control",d),q=W||!kr(N),Y=!!O&&(q||V),Z=!b&&O&&j;return Object(c.createElement)(ir,{className:$,isFloatingLabel:Z,isFocused:V},Object(c.createElement)(Er,{className:"components-input-control__label",hideLabelFromVision:b,htmlFor:G,isFilled:W,isFloating:Y,isFloatingLabel:O,size:I},j),Object(c.createElement)(cr,{className:"components-input-control__container",disabled:h,isFocused:V},Object(c.createElement)(Sr,Object(o.a)({},A,{className:"components-input-control__input",disabled:h,id:G,isFloating:Y,isFloatingLabelSet:Z,isPressEnterToChange:y,onBlur:function(e){k(e),F(!1)},onChange:S,onFocus:function(e){M(e),F(!0)},onKeyDown:z,onUpdateValue:U,onValidate:D,ref:t,setIsFocused:F,size:I,stateReducer:r,value:N})),R&&Object(c.createElement)(Or,{className:"components-input-control__suffix"},R),Object(c.createElement)(jr,{"aria-hidden":"true",disabled:h,isFloating:Y,isFloatingLabel:Z,isFocused:V,label:j,size:I}),l))}var Mr=Object(c.forwardRef)(Cr);var xr={name:"1b9wwt5",styles:"&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none !important;margin:0 !important;}"},Dr=function(e){return e.hideHTMLArrows?xr:""},Pr=je(Mr,{target:"ep48uk90",label:"Input"})(Dr,";");function zr(e){var t=Number(e);return isNaN(t)?0:t}function Tr(){for(var e=arguments.length,t=new Array(e),n=0;n0&&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=zr(e),a=zr(r),i=Ir(r),c=Math.round(o/a)*a,l=Object(s.clamp)(c,t,n);return i?zr(l.toFixed(i)):l}var Nr=function(e){var t=e.isShiftStepEnabled,n=void 0===t||t,r=e.shiftStep,o=void 0===r?10:r,i=e.step,s=void 0===i?1:i,l=Object(c.useState)(!1),u=Object(a.a)(l,2),d=u[0],f=u[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 Ar=Object(c.forwardRef)((function(e,t){var n=e.__unstableStateReducer,r=void 0===n?function(e){return e}:n,s=e.className,l=e.dragDirection,d=void 0===l?"n":l,f=e.hideHTMLArrows,h=void 0!==f&&f,p=e.isDragEnabled,b=void 0===p||p,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,C=e.type,M=void 0===C?"number":C,x=e.value,D=Object(i.a)(e,["__unstableStateReducer","className","dragDirection","hideHTMLArrows","isDragEnabled","isShiftStepEnabled","label","max","min","shiftStep","step","type","value"]),P=Je(),z=Rr(0,w,O,E),T=Nr({step:E,shiftStep:_,isShiftStepEnabled:m}),I="number"===M?"off":null,R=u()("components-number-control",s);return Object(c.createElement)(Pr,Object(o.a)({autoComplete:I,inputMode:"numeric"},D,{className:R,dragDirection:d,hideHTMLArrows:h,isDragEnabled:b,label:y,max:O,min:w,ref:t,step:T,type:M,value:x,__unstableStateReducer:Tn((function(e,t){var n=t.type,r=t.payload,o=null==r?void 0:r.event,i=e.value;if(n===Pn.PRESS_UP||n===Pn.PRESS_DOWN){var c=o.shiftKey&&m?parseFloat(_)*parseFloat(E):parseFloat(E),s=kr(i)?z:i;(null==o?void 0:o.preventDefault)&&o.preventDefault(),n===Pn.PRESS_UP&&(s=Tr(s,c)),n===Pn.PRESS_DOWN&&(s=function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&!1!==e}function qr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Gr,n=String(e).trim(),r=parseFloat(n,10);r=isNaN(r)?"":r;var o=n.match(/[\d.\-\+]*\s*(.*)/)[1],a=void 0!==o?o:"";if(a=a.toLowerCase(),$r(t)){var i=t.find((function(e){return e.value===a}));a=null==i?void 0:i.value}return[r,a]}function Yr(e,t,n,r){var o,i,c=qr(e,t),s=Object(a.a)(c,2),l=s[0],u=s[1],d=l;((isNaN(l)||""===l)&&(d=n),o=u||r,$r(t)&&!o)&&(o=null===(i=t[0])||void 0===i?void 0:i.value);return[d,o]}function Zr(e){var t=e.className,n=e.isTabbable,r=void 0===n||n,a=e.options,l=void 0===a?Gr:a,d=e.onChange,f=void 0===d?s.noop:d,h=e.size,p=void 0===h?"default":h,b=e.value,v=void 0===b?"px":b,m=Object(i.a)(e,["className","isTabbable","options","onChange","size","value"]);if(!$r(l))return Object(c.createElement)(Wr,{className:"components-unit-control__unit-label",size:p},v);var y=u()("components-unit-control__select",t);return Object(c.createElement)(Ur,Object(o.a)({className:y,onChange:function(e){var t=e.target.value,n=l.find((function(e){return e.value===t}));f(t,{event:e,data:n})},size:p,tabIndex:r?null:"-1",value:v},m),l.map((function(e){return Object(c.createElement)("option",{value:e.value,key:e.value},e.label)})))}function Xr(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 Jr(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:Qr,n=Jr({},Qr,{},t),r=n.initial,o=n.fallback,i=Object(c.useState)(e),s=Object(a.a)(i,2),l=s[0],u=s[1],d=wr(e),f=_r([e,l,r],o),h=function(e){d||u(e)};return[f,h]};var to=Object(c.forwardRef)((function(e,t){var n=e.__unstableStateReducer,r=void 0===n?function(e){return e}:n,l=e.autoComplete,d=void 0===l?"off":l,f=e.className,h=e.disabled,p=void 0!==h&&h,b=e.disableUnits,v=void 0!==b&&b,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,C=void 0===E?s.noop:E,M=e.size,x=void 0===M?"default":M,D=e.style,P=e.unit,z=e.units,T=void 0===z?Gr:z,I=e.value,R=Object(i.a)(e,["__unstableStateReducer","autoComplete","className","disabled","disableUnits","isPressEnterToChange","isResetValueOnUnitChange","isUnitSelectTabbable","label","onChange","onUnitChange","size","style","unit","units","value"]),N=function(e,t,n){return qr(t?"".concat(e).concat(t):e,n)}(I,P,T),A=Object(a.a)(N,2),H=A[0],L=A[1],V=eo(P,{initial:L}),F=Object(a.a)(V,2),B=F[0],K=F[1],W=u()("components-unit-control",f),U=function(e,t){var n=t.data,r="".concat(H).concat(e);O&&void 0!==(null==n?void 0:n.default)&&(r="".concat(n.default).concat(e)),S(r,t),C(e,t),K(e)},G=v?null:Object(c.createElement)(Zr,{disabled:p,isTabbable:w,options:T,onChange:U,size:x,value:B});return Object(c.createElement)(Hr,{className:"components-unit-control-wrapper",style:D},Object(c.createElement)(Br,Object(o.a)({"aria-label":k,type:y?"text":"number"},R,{autoComplete:d,className:W,disabled:p,disableUnits:v,isPressEnterToChange:y,label:k,onChange:function(e,t){var n=Yr(e,T,H,B),r=Object(a.a)(n,2),o=r[0],i=r[1],c="".concat(o).concat(i);S(c,t)},ref:t,size:x,suffix:G,value:H,__unstableStateReducer:Tn((function(e,t){var n=t.type,r=t.payload,o=null==r?void 0:r.event;if(n===Pn.COMMIT){var i,c=Yr(null==o||null===(i=o.target)||void 0===i?void 0:i.value,T,H,B),s=Object(a.a)(c,2),l=s[0],u=s[1];e.value=l,B!==u&&U(u,{event:o})}return e}),r)})))}));var no=je("div",{target:"e7pk0lh0",label:"Root"})({name:"vho1ao",styles:"box-sizing:border-box;max-width:235px;padding-bottom:12px;width:100%;"}),ro=je(_n,{target:"e7pk0lh1",label:"Header"})("color:",Ae("ui.label"),";padding-bottom:8px;"),oo=je(_n,{target:"e7pk0lh2",label:"HeaderControlWrapper"})({name:"19de7qh",styles:"min-height:30px;"}),ao=je("div",{target:"e7pk0lh3",label:"UnitControlWrapper"})({name:"zypm0w",styles:"box-sizing:border-box;max-width:80px;"}),io=je(_n,{target:"e7pk0lh4",label:"LayoutContainer"})({name:"39f89t",styles:"justify-content:center;padding-top:8px;"}),co=je(_n,{target:"e7pk0lh5",label:"Layout"})({name:"ojqyia",styles:"position:relative;height:100%;width:100%;"}),so={name:"icip60",styles:"border-radius:2px;"},lo={name:"1k07npk",styles:"border-radius:0;"},uo=function(e){var t=e.isFirst,n=e.isLast,r=e.isOnly;return t?tt({borderTopRightRadius:0,borderBottomRightRadius:0})():n?tt({borderTopLeftRadius:0,borderBottomLeftRadius:0})():r?so:lo},fo=function(e){return tt({marginLeft:e.isFirst?0:-1})()},ho=je(to,{target:"e7pk0lh6",label:"UnitControl"})("max-width:60px;",uo,";",fo,";");function po(e){var t=e.isFirst,n=e.isLast,r=e.isOnly,a=e.onHoverOn,l=void 0===a?s.noop:a,u=e.onHoverOff,d=void 0===u?s.noop:u,f=e.label,h=e.value,p=Object(i.a)(e,["isFirst","isLast","isOnly","onHoverOn","onHoverOff","label","value"]),b=function(e,t){void 0===t&&(t={});var n=t,r=n.domTarget,o=n.eventOptions,a=n.window,i=Yt(n,["domTarget","eventOptions","window"]),c=$t({},gn({domTarget:r,eventOptions:o,window:a}),{hover:$t({enabled:!0},i)});return hn({hover:e},[kn],c)}((function(e){var t=e.event,n=Object(i.a)(e,["event"]);n.hovering?l(t,n):d(t,n)}));return Object(c.createElement)(ao,Object(o.a)({"aria-label":f},b()),Object(c.createElement)(bo,{text:f},Object(c.createElement)(ho,Object(o.a)({className:"component-box-control__unit-control",hideHTMLArrows:!0,isFirst:t,isLast:n,isOnly:r,isPressEnterToChange:!0,isFloatingLabel:!0,isResetValueOnUnitChange:!1,value:h},p))))}function bo(e){var t=e.children,n=e.text;return n?Object(c.createElement)(M.a,{text:n,position:"top"},t):t}var vo={all:Object(S.__)("All"),top:Object(S.__)("Top"),bottom:Object(S.__)("Bottom"),left:Object(S.__)("Left"),right:Object(S.__)("Right"),mixed:Object(S.__)("Mixed")},mo={top:null,right:null,bottom:null,left:null},yo={top:!1,right:!1,bottom:!1,left:!1};function go(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 Oo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.values(e).map(qr),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]:"",a=go(r),i=Object(s.isNumber)(o)?"".concat(o).concat(a):null;return i}function jo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Oo(e),n=isNaN(parseFloat(t));return n}function wo(e){return void 0!==e&&!Object(s.isEmpty)(Object.values(e).filter(Boolean))}function ko(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 _o(e){var t=e.onChange,n=void 0===t?s.noop:t,r=e.onFocus,a=void 0===r?s.noop:r,l=e.onHoverOn,u=void 0===l?s.noop:l,d=e.onHoverOff,f=void 0===d?s.noop:d,h=e.values,p=Object(i.a)(e,["onChange","onFocus","onHoverOn","onHoverOff","values"]),b=Oo(h),v=wo(h)&&jo(h),m=v?vo.mixed:null;return Object(c.createElement)(po,Object(o.a)({},p,{disableUnits:v,isOnly:!0,value:b,onChange:function(e){var t=function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};u(ta({},yo,{},e))},onHoverOff:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};u(ta({},yo,{},e))},isLinked:x,units:p,values:g});return Object(c.createElement)(no,{id:R,role:"region","aria-labelledby":N},Object(c.createElement)(ro,{className:"component-box-control__header"},Object(c.createElement)(It,null,Object(c.createElement)(or,{id:N,className:"component-box-control__label"},f)),Object(c.createElement)(It,null,Object(c.createElement)(jt.a,{className:"component-box-control__reset-button",isSecondary:!0,isSmall:!0,onClick:function(){var e=mo;i(e),y(e),_(!1)},disabled:!k},Object(S.__)("Reset")))),Object(c.createElement)(oo,{className:"component-box-control__header-control-wrapper"},Object(c.createElement)(It,null,Object(c.createElement)(No,{side:T})),x&&Object(c.createElement)(Rt,null,Object(c.createElement)(_o,A)),Object(c.createElement)(It,null,Object(c.createElement)(Vo,{onClick:function(){D(!x),I(x?"top":"all")},isLinked:x}))),!x&&Object(c.createElement)(Eo,A))}ra.__Visualizer=function(e){var t=e.children,n=e.showValues,r=void 0===n?yo:n,a=e.values,s=void 0===a?mo:a,l=Object(i.a)(e,["children","showValues","values"]),u=!t;return Object(c.createElement)(Bo,Object(o.a)({},l,{isPositionAbsolute:u,"aria-hidden":"true"}),Object(c.createElement)(qo,{showValues:r,values:s}),t)};var oa=Object(c.forwardRef)((function(e,t){var n=e.className,r=Object(i.a)(e,["className"]),a=u()("components-button-group",n);return Object(c.createElement)("div",Object(o.a)({ref:t,role:"group",className:a},r))})),aa=Object(c.createContext)({}),ia=function(){return Object(c.useContext)(aa)};function ca(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return isNaN(e)?"".concat(8,"px"):"".concat(8*e,"px")}var sa={borderColor:Ae("lightGray.500"),borderRadius:"3px",backgroundShady:Ae("lightGray.200")},la=sa.borderColor,ua=sa.borderRadius,da=sa.backgroundShady,fa=je("div",{target:"e1q7k77g0",label:"CardUI"})("background:",Ae("white"),";box-sizing:border-box;border-radius:",ua,";border:1px solid ",la,";",ga,";&.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 );}"),ha=je(Sn,{target:"e1q7k77g1",label:"HeaderUI"})("border-bottom:1px solid ",la,";border-top-left-radius:",ua,";border-top-right-radius:",ua,";box-sizing:border-box;&:last-child{border-bottom:none;}",ya,";",ga,";",Oa,";"),pa=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:",ua,";border-top-right-radius:",ua,";}&:last-of-type{border-bottom-left-radius:",ua,";border-bottom-right-radius:",ua,";}"),ba=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(ca(3)," ").concat(ca(4),";\n\t\t\t}\n\t\t\t&-medium {\n\t\t\t\tpadding: ").concat(ca(2)," ").concat(ca(3),";\n\t\t\t}\n\t\t\t&-small {\n\t\t\t\tpadding: ").concat(ca(2),";\n\t\t\t}\n\t\t\t&-extraSmall {\n\t\t\t\tpadding: ").concat(ca(1),";\n\t\t\t}\n\t\t}\n\t")}),";",Oa,";"),va=je(Sn,{target:"e1q7k77g4",label:"FooterUI"})("border-top:1px solid ",la,";border-bottom-left-radius:",ua,";border-bottom-right-radius:",ua,";box-sizing:border-box;&:first-of-type{border-top:none;}",ya,";",ga,";",Oa,";"),ma=je(r.HorizontalRule,{target:"e1q7k77g5",label:"DividerUI"})("all:unset;border-top:1px solid ",la,";box-sizing:border-box;display:block;height:0;width:100%;");function ya(){return"\n\t\t&.is-size {\n\t\t\t&-large {\n\t\t\t\tpadding: ".concat(ca(3)," ").concat(ca(4),";\n\t\t\t}\n\t\t\t&-medium {\n\t\t\t\tpadding: ").concat(ca(2)," ").concat(ca(3),";\n\t\t\t}\n\t\t\t&-small {\n\t\t\t\tpadding: ").concat(ca(2),";\n\t\t\t}\n\t\t\t&-extraSmall {\n\t\t\t\tpadding: ").concat(ca(1),";\n\t\t\t}\n\t\t}\n\t")}function ga(){return"\n\t\t&.is-borderless {\n\t\t\tborder: none;\n\t\t}\n\t"}function Oa(){return"\n\t\t&.is-shady {\n\t\t\tbackground: ".concat(da,";\n\t\t}\n\t")}function ja(e){var t=e.className,n=e.isBorderless,r=e.isElevated,a=e.size,s=Object(i.a)(e,["className","isBorderless","isElevated","size"]),l=aa.Provider,d={isBorderless:n,isElevated:r,size:a},f=u()("components-card",n&&"is-borderless",r&&"is-elevated",a&&"is-size-".concat(a),t);return Object(c.createElement)(l,{value:d},Object(c.createElement)(fa,Object(o.a)({},s,{className:f})))}ja.defaultProps={isBorderless:!1,isElevated:!1,size:"medium"};var wa=ja;function ka(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 _a={isShady:!1,size:"medium"};var Sa=function(e){var t=e.className,n=e.isShady,r=Object(i.a)(e,["className","isShady"]),a=function(e){for(var t=1;t0&&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 a=n.toRgb(),i=n.toHex();0===r.s&&(r.h=t||0,o.h=t||0);var c="000000"===i&&0===a.a;return{color:n,hex:c?"transparent":"#".concat(i),hsl:r,hsv:o,oldHue:e.h||t||r.h,rgb:a,source:e.source}}function Va(e,t){e.preventDefault();var n=t.getBoundingClientRect(),r=n.left,o=n.top,a=n.width,i=n.height,c="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,s="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,l=c-(r+window.pageXOffset),u=s-(o+window.pageYOffset);return l<0?l=0:l>a?l=a:u<0?u=0:u>i&&(u=i),{top:u,left:l,width:a,height:i}}function Fa(e){var t="#"===String(e).charAt(0)?1:0;return e.length!==4+t&&e.length<7+t&&ke()(e).isValid()}function Ba(e){var t=e.target,n=e.callback,r=e.shortcut,o=e.bindGlobal,a=e.eventName;return Object(E.useKeyboardShortcut)(r,n,{bindGlobal:o,target:t,eventName:a}),null}var Ka=function(e){var t=e.children,n=e.shortcuts,r=e.bindGlobal,o=e.eventName,a=Object(c.useRef)(),i=Object(s.map)(n,(function(e,t){return Object(c.createElement)(Ba,{key:t,shortcut:t,callback:e,bindGlobal:r,eventName:o,target:a})}));return c.Children.count(t)?Object(c.createElement)("div",{ref:a},i,t):i};function Wa(){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}}var Ua=function(e){Object(mt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(vt.a)(t);if(Wa()){var r=Object(vt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(bt.a)(this,e)});function r(){var e;return Object(ft.a)(this,r),(e=n.apply(this,arguments)).container=Object(c.createRef)(),e.increase=e.increase.bind(Object(ht.a)(e)),e.decrease=e.decrease.bind(Object(ht.a)(e)),e.handleChange=e.handleChange.bind(Object(ht.a)(e)),e.handleMouseDown=e.handleMouseDown.bind(Object(ht.a)(e)),e.handleMouseUp=e.handleMouseUp.bind(Object(ht.a)(e)),e}return Object(pt.a)(r,[{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 a={h:n.h,s:n.s,l:n.l,a:(parseInt(100*n.a,10)+e)/100,source:"rgb"};o(a)}},{key:"decrease",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01,t=this.props,n=t.hsl,r=t.onChange,o=void 0===r?s.noop:r,a=parseInt(100*n.a,10)-parseInt(100*e,10),i={h:n.h,s:n.s,l:n.l,a:n.a<=e?0:a/100,source:"rgb"};o(i)}},{key:"handleChange",value:function(e){var t=this.props.onChange,n=void 0===t?s.noop:t,r=function(e,t,n){var r=Va(e,n),o=r.left,a=r.width,i=o<0?0:Math.round(100*o/a)/100;return t.hsl.a!==i?{h:t.hsl.h,s:t.hsl.s,l:t.hsl.l,a:i,source:"rgb"}:null}(e,this.props,this.container.current);r&&n(r,e)}},{key:"handleMouseDown",value:function(e){this.handleChange(e),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)}},{key:"handleMouseUp",value:function(){this.unbindEventListeners()}},{key:"preventKeyEvents",value:function(e){e.keyCode!==gt.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,"%")},a={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)(Ka,{shortcuts:a},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}))))}}]),r}(c.Component),Ga=Object(E.pure)(Ua);function $a(){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}}var qa=function(e){Object(mt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(vt.a)(t);if($a()){var r=Object(vt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(bt.a)(this,e)});function r(){var e;return Object(ft.a)(this,r),(e=n.apply(this,arguments)).container=Object(c.createRef)(),e.increase=e.increase.bind(Object(ht.a)(e)),e.decrease=e.decrease.bind(Object(ht.a)(e)),e.handleChange=e.handleChange.bind(Object(ht.a)(e)),e.handleMouseDown=e.handleMouseDown.bind(Object(ht.a)(e)),e.handleMouseUp=e.handleMouseUp.bind(Object(ht.a)(e)),e}return Object(pt.a)(r,[{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,a={h:n.h+e>=359?359:n.h+e,s:n.s,l:n.l,a:n.a,source:"rgb"};o(a)}},{key:"decrease",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=this.props,n=t.hsl,r=t.onChange,o=void 0===r?s.noop:r,a={h:n.h<=e?0:n.h-e,s:n.s,l:n.l,a:n.a,source:"rgb"};o(a)}},{key:"handleChange",value:function(e){var t=this.props.onChange,n=void 0===t?s.noop:t,r=function(e,t,n){var r=Va(e,n),o=r.left,a=r.width,i=o>=a?359:360*(100*o/a)/100;return t.hsl.h!==i?{h:i,s:t.hsl.s,l:t.hsl.l,a:t.hsl.a,source:"rgb"}:null}(e,this.props,this.container.current);r&&n(r,e)}},{key:"handleMouseDown",value:function(e){this.handleChange(e),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)}},{key:"handleMouseUp",value:function(){this.unbindEventListeners()}},{key:"preventKeyEvents",value:function(e){e.keyCode!==gt.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,a={left:"".concat(100*r.h/360,"%")},i={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)(Ka,{shortcuts:i},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:a,onKeyDown:this.preventKeyEvents}),Object(c.createElement)(P,{as:"p",id:"components-color-picker__hue-description-".concat(o)},Object(S.__)("Move the arrow left or right to change hue.")))))}}]),r}(c.Component),Ya=Object(E.compose)(E.pure,E.withInstanceId)(qa),Za=n(296);function Xa(e){var t=e.label,n=e.hideLabelFromVision,r=e.value,a=e.help,s=e.className,l=e.onChange,u=e.type,d=void 0===u?"text":u,f=Object(i.a)(e,["label","hideLabelFromVision","value","help","className","onChange","type"]),h=Object(E.useInstanceId)(Xa),p="inspector-text-control-".concat(h);return Object(c.createElement)(lt,{label:t,hideLabelFromVision:n,id:p,help:a,className:s},Object(c.createElement)("input",Object(o.a)({className:"components-text-control__input",type:d,id:p,value:r,onChange:function(e){return l(e.target.value)},"aria-describedby":a?p+"__help":void 0},f)))}function Ja(e){return function(){var t,n=Object(vt.a)(e);if(Qa()){var r=Object(vt.a)(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return Object(bt.a)(this,t)}}function Qa(){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}}var ei=function(e){Object(mt.a)(n,e);var t=Ja(n);function n(){var e;return Object(ft.a)(this,n),(e=t.apply(this,arguments)).handleBlur=e.handleBlur.bind(Object(ht.a)(e)),e.handleChange=e.handleChange.bind(Object(ht.a)(e)),e.handleKeyDown=e.handleKeyDown.bind(Object(ht.a)(e)),e}return Object(pt.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&&Fa(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===gt.ENTER||t===gt.UP||t===gt.DOWN){var n=this.props,r=n.value,o=n.valueKey;(0,n.onChange)({source:n.source,state:"commit",value:r,valueKey:o})}}},{key:"render",value:function(){var e=this,t=this.props,n=t.label,r=t.value,a=Object(i.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)(a,["onChange","valueKey","source"])))}}]),n}(c.Component),ti=Object(E.pure)(jt.a),ni=function(e){Object(mt.a)(n,e);var t=Ja(n);function n(e){var r,o=e.hsl;Object(ft.a)(this,n),r=t.apply(this,arguments);var a=1===o.a?"hex":"rgb";return r.state={view:a},r.toggleViews=r.toggleViews.bind(Object(ht.a)(r)),r.resetDraftValues=r.resetDraftValues.bind(Object(ht.a)(r)),r.handleChange=r.handleChange.bind(Object(ht.a)(r)),r.normalizeValue=r.normalizeValue.bind(Object(ht.a)(r)),r}return Object(pt.a)(n,[{key:"toggleViews",value:function(){"hex"===this.state.view?(this.setState({view:"rgb"},this.resetDraftValues),Object(kt.speak)(Object(S.__)("RGB mode active"))):"rgb"===this.state.view?(this.setState({view:"hsl"},this.resetDraftValues),Object(kt.speak)(Object(S.__)("Hue/saturation/lightness mode active"))):"hsl"===this.state.view&&(1===this.props.hsl.a?(this.setState({view:"hex"},this.resetDraftValues),Object(kt.speak)(Object(S.__)("Hex color mode active"))):(this.setState({view:"rgb"},this.resetDraftValues),Object(kt.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)(ei,{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)(P,{as:"legend"},n),Object(c.createElement)("div",{className:"components-color-picker__inputs-fields"},Object(c.createElement)(ei,{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)(ei,{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)(ei,{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)(ei,{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)(P,{as:"legend"},r),Object(c.createElement)("div",{className:"components-color-picker__inputs-fields"},Object(c.createElement)(ei,{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)(ei,{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)(ei,{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)(ei,{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)(ti,{className:"components-color-picker__inputs-toggle",icon:Za.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 ri(){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}}var oi=function(e){Object(mt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(vt.a)(t);if(ri()){var r=Object(vt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(bt.a)(this,e)});function r(e){var t;return Object(ft.a)(this,r),(t=n.call(this,e)).throttle=Object(s.throttle)((function(e,t,n){e(t,n)}),50),t.container=Object(c.createRef)(),t.saturate=t.saturate.bind(Object(ht.a)(t)),t.brighten=t.brighten.bind(Object(ht.a)(t)),t.handleChange=t.handleChange.bind(Object(ht.a)(t)),t.handleMouseDown=t.handleMouseDown.bind(Object(ht.a)(t)),t.handleMouseUp=t.handleMouseUp.bind(Object(ht.a)(t)),t}return Object(pt.a)(r,[{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,a=Object(s.clamp)(n.s+Math.round(100*e),0,100),i={h:n.h,s:a,v:n.v,a:n.a,source:"rgb"};o(i)}},{key:"brighten",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01,t=this.props,n=t.hsv,r=t.onChange,o=void 0===r?s.noop:r,a=Object(s.clamp)(n.v+Math.round(100*e),0,100),i={h:n.h,s:n.s,v:a,a:n.a,source:"rgb"};o(i)}},{key:"handleChange",value:function(e){var t=this.props.onChange,n=void 0===t?s.noop:t,r=function(e,t,n){var r=Va(e,n),o=r.top,a=r.left,i=r.width,c=r.height,s=a<0?0:100*a/i,l=o>=c?0:-100*o/c+100;return l<1&&(l=0),{h:t.hsl.h,s:s,v:l,a:t.hsl.a,source:"rgb"}}(e,this.props,this.container.current);this.throttle(n,r,e)}},{key:"handleMouseDown",value:function(e){this.handleChange(e),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)}},{key:"handleMouseUp",value:function(){this.unbindEventListeners()}},{key:"preventKeyEvents",value:function(e){e.keyCode!==gt.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,a={top:"".concat(100-n.v,"%"),left:"".concat(n.s,"%")},i={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)(Ka,{shortcuts:i},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)(jt.a,{"aria-label":Object(S.__)("Choose a shade"),"aria-describedby":"color-picker-saturation-".concat(o),className:"components-color-picker__saturation-pointer",style:a,onKeyDown:this.preventKeyEvents}),Object(c.createElement)(P,{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."))))}}]),r}(c.Component),ai=Object(E.compose)(E.pure,E.withInstanceId)(oi);function ii(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function ci(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 si(e){for(var t=1;tt||a>e&&i=t&&c>=n?a-e-r:i>t&&cn?i-t+o:0}var ki=0;function _i(e,t){e&&function(e,t){var n=t.scrollMode,r=t.block,o=t.inline,a=t.boundary,i=t.skipOverflowHiddenElements,c="function"==typeof a?a:function(e){return e!==a};if(!gi(e))throw new TypeError("Invalid target");for(var s=document.scrollingElement||document.documentElement,l=[],u=e;gi(u)&&c(u);){if((u=u.parentNode)===s){l.push(u);break}u===document.body&&ji(u)&&!ji(document.documentElement)||ji(u,i)&&l.push(u)}for(var d=window.visualViewport?visualViewport.width:innerWidth,f=window.visualViewport?visualViewport.height:innerHeight,h=window.scrollX||pageXOffset,p=window.scrollY||pageYOffset,b=e.getBoundingClientRect(),v=b.height,m=b.width,y=b.top,g=b.right,O=b.bottom,j=b.left,w="start"===r||"nearest"===r?y:"end"===r?O:y+v/2,k="center"===o?j+m/2:"end"===o?g:j,_=[],S=0;S=0&&j>=0&&O<=f&&g<=d&&y>=D&&O<=z&&j>=T&&g<=P)return _;var I=getComputedStyle(E),R=parseInt(I.borderLeftWidth,10),N=parseInt(I.borderTopWidth,10),A=parseInt(I.borderRightWidth,10),H=parseInt(I.borderBottomWidth,10),L=0,V=0,F="offsetWidth"in E?E.offsetWidth-E.clientWidth-R-A:0,B="offsetHeight"in E?E.offsetHeight-E.clientHeight-N-H:0;if(s===E)L="start"===r?w:"end"===r?w-f:"nearest"===r?wi(p,p+f,f,N,H,p+w,p+w+v,v):w-f/2,V="start"===o?k:"center"===o?k-d/2:"end"===o?k-d:wi(h,h+d,d,R,A,h+k,h+k+m,m),L=Math.max(0,L+p),V=Math.max(0,V+h);else{L="start"===r?w-D-N:"end"===r?w-z+H+B:"nearest"===r?wi(D,z,M,N,H+B,w,w+v,v):w-(D+M/2)+B/2,V="start"===o?k-T-R:"center"===o?k-(T+x/2)+F/2:"end"===o?k-P+A+F:wi(T,P,x,R,A+F,k,k+m,m);var K=E.scrollLeft,W=E.scrollTop;w+=W-(L=Math.max(0,Math.min(W+L,E.scrollHeight-M+B))),k+=K-(V=Math.max(0,Math.min(K+V,E.scrollWidth-x+F)))}_.push({el:E,top:L,left:V})}return _}(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 Si(e,t){return e===t||e.contains&&e.contains(t)}function Ei(e,t){var n;function r(){n&&clearTimeout(n)}function o(){for(var o=arguments.length,a=new Array(o),i=0;i1?n-1:0),o=1;o=37&&n<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t}function Ii(e,t,n,r,o){if(void 0===o&&(o=!0),0===n)return-1;var a=n-1;("number"!=typeof t||t<0||t>=n)&&(t=e>0?-1:a+1);var i=t+e;i<0?i=o?a:0:i>a&&(i=o?0:a);var c=Ri(e,i,n,r,o);return-1===c?t>=n?-1:t:c}function Ri(e,t,n,r,o){var a=r(t);if(!a||!a.hasAttribute("disabled"))return t;if(e>0){for(var i=t+1;i=0;c--)if(!r(c).hasAttribute("disabled"))return c;return o?e>0?Ri(1,0,n,r,!1):Ri(-1,n-1,n,r,!1):-1}function Ni(e,t,n,r){return void 0===r&&(r=!0),t.some((function(t){return t&&(Si(t,e)||r&&Si(t,n.activeElement))}))}var Ai=Ei((function(){Li().textContent=""}),500);function Hi(e,t){var n=Li(t);e&&(n.textContent=e,Ai())}function Li(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 Vi={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function Fi(e,t,n){var r=e.props,a=e.type,i={};Object.keys(t).forEach((function(e){!function(e,t,n,r){var o="on"+Gi(e)+"Change";t[o]&&void 0!==r[e]&&r[e]!==n[e]&&t[o](r)}(e,r,t,n),n[e]!==t[e]&&(i[e]=n[e])})),r.onStateChange&&Object.keys(i).length&&r.onStateChange(Object(o.a)({type:a},i))}var Bi=Ei((function(e,t){Hi(e(),t)}),200);function Ki(e){var t=e.id,n=e.labelId,r=e.menuId,o=e.getItemId,a=e.toggleButtonId,i=void 0===t?"downshift-"+xi():t;return{labelId:n||i+"-label",menuId:r||i+"-menu",getItemId:o||function(e){return i+"-item-"+e},toggleButtonId:a||i+"-toggle-button"}}function Wi(e,t,n){return void 0!==e?e:0===n.length?-1:n.indexOf(t)}function Ui(e){return/^\S{1}$/.test(e)}function Gi(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function $i(e){var t=Object(v.useRef)(e);return t.current=e,t}function qi(e,t,n){var r=Object(v.useRef)(),a=Object(v.useRef)(),i=Object(v.useCallback)((function(t,n){a.current=n,t=Pi(t,n.props);var r=e(t,n);return n.props.stateReducer(t,Object(o.a)({},n,{changes:r}))}),[e]),c=Object(v.useReducer)(i,t),s=c[0],l=c[1],u=$i(n),d=Object(v.useCallback)((function(e){return l(Object(o.a)({props:u.current},e))}),[u]),f=a.current;return Object(v.useEffect)((function(){f&&r.current&&r.current!==s&&Fi(f,Pi(r.current,f.props),s),r.current=s}),[s,n,f]),[s,d]}function Yi(e,t,n){var r=qi(e,t,n),o=r[0],a=r[1];return[Pi(o,n),a]}var Zi={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:_i,circularNavigation:!1,environment:"undefined"==typeof window?{}:window};function Xi(e,t,n){void 0===n&&(n=Vi);var r="default"+Gi(t);return r in e?e[r]:n[t]}function Ji(e,t,n){if(void 0===n&&(n=Vi),t in e)return e[t];var r="initial"+Gi(t);return r in e?e[r]:Xi(e,t,n)}function Qi(e){var t=Ji(e,"selectedItem"),n=Ji(e,"isOpen"),r=Ji(e,"highlightedIndex"),o=Ji(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:o}}function ec(e,t,n,r){var o=e.items,a=e.initialHighlightedIndex,i=e.defaultHighlightedIndex,c=t.selectedItem,s=t.highlightedIndex;return 0===o.length?-1:void 0!==a&&s===a?a:void 0!==i?i:c?0===n?o.indexOf(c):Ii(n,o.indexOf(c),o.length,r,!1):0===n?-1:n<0?o.length-1:0}function tc(e,t,n,r){var o=Object(v.useRef)({isMouseDown:!1,isTouchMove:!1});return Object(v.useEffect)((function(){var a=function(){o.current.isMouseDown=!0},i=function(a){o.current.isMouseDown=!1,e&&!Ni(a.target,t.map((function(e){return e.current})),n.document)&&r()},c=function(){o.current.isTouchMove=!1},s=function(){o.current.isTouchMove=!0},l=function(a){!e||o.current.isTouchMove||Ni(a.target,t.map((function(e){return e.current})),n.document,!1)||r()};return n.addEventListener("mousedown",a),n.addEventListener("mouseup",i),n.addEventListener("touchstart",c),n.addEventListener("touchmove",s),n.addEventListener("touchend",l),function(){n.removeEventListener("mousedown",a),n.removeEventListener("mouseup",i),n.removeEventListener("touchstart",c),n.removeEventListener("touchmove",s),n.removeEventListener("touchend",l)}}),[e,n]),o}function nc(){for(var e=!1,t=Object(v.useRef)(!0),n=arguments.length,r=new Array(n),o=0;o=0&&{selectedItem:a.items[l]});break;case 13:n={highlightedIndex:ec(a,e,1,t.getItemNodeFromIndex),isOpen:!0};break;case 14:n={highlightedIndex:ec(a,e,-1,t.getItemNodeFromIndex),isOpen:!0};break;case 5:case 6:n=Object(o.a)({isOpen:Xi(a,"isOpen"),highlightedIndex:Xi(a,"highlightedIndex")},e.highlightedIndex>=0&&{selectedItem:a.items[e.highlightedIndex]});break;case 3:n={highlightedIndex:Ri(1,0,a.items.length,t.getItemNodeFromIndex,!1)};break;case 4:n={highlightedIndex:Ri(-1,a.items.length-1,a.items.length,t.getItemNodeFromIndex,!1)};break;case 2:case 8:n={isOpen:!1,highlightedIndex:-1};break;case 7:var u=t.key,d=""+e.inputValue+u,f=rc(d,e.highlightedIndex,a.items,a.itemToString,t.getItemNodeFromIndex);n=Object(o.a)({inputValue:d},f>=0&&{highlightedIndex:f});break;case 0:n={highlightedIndex:Ii(i?5:1,e.highlightedIndex,a.items.length,t.getItemNodeFromIndex,a.circularNavigation)};break;case 1:n={highlightedIndex:Ii(i?-5:-1,e.highlightedIndex,a.items.length,t.getItemNodeFromIndex,a.circularNavigation)};break;case 9:n={highlightedIndex:-1};break;case 12:case 16:n={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:ec(a,e,0)};break;case 17:n={isOpen:!0,highlightedIndex:ec(a,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:Xi(a,"highlightedIndex"),isOpen:Xi(a,"isOpen"),selectedItem:Xi(a,"selectedItem"),inputValue:Xi(a,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return Object(o.a)({},e,n)}function cc(e){void 0===e&&(e={});var t=Object(o.a)({},oc,e),n=t.items,r=t.scrollIntoView,a=t.environment,i=t.initialIsOpen,c=t.defaultIsOpen,s=t.itemToString,l=t.getA11ySelectionMessage,u=t.getA11yStatusMessage,d=Yi(ic,Qi(t),t),f=d[0],h=d[1],p=f.isOpen,b=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)(Ki(t)),E=Object(v.useRef)(),C=Object(v.useRef)(!0),M=Object(v.useRef)(t),x=$i({state:f,props:t}),D=function(e){return j.current[S.current.getItemId(e)]};Object(v.useEffect)((function(){if(!C.current){var e=E.current;Bi((function(){return u({isOpen:p,highlightedIndex:b,selectedItem:m,inputValue:y,highlightedItem:n[b],resultCount:n.length,itemToString:s,previousResultCount:e})}),a.document)}}),[p,b,y,n]),Object(v.useEffect)((function(){if(!C.current){var e=E.current;Bi((function(){return l({isOpen:p,highlightedIndex:b,selectedItem:m,inputValue:y,highlightedItem:n[b],resultCount:n.length,itemToString:s,previousResultCount:e})}),a.document)}}),[m]),Object(v.useEffect)((function(){C.current&&(_.current=Ei((function(e){e({type:21,inputValue:""})}),500)),y&&_.current(h)}),[y]),Object(v.useEffect)((function(){C.current?(i||c||p)&&O.current&&O.current.focus():p?O.current&&O.current.focus():a.document.activeElement===O.current&&g.current&&(k.current=!1,g.current.focus())}),[p]),Object(v.useEffect)((function(){b<0||!p||!Object.keys(j.current).length||(!1===w.current?w.current=!0:r(D(b),O.current))}),[b]),Object(v.useEffect)((function(){C.current||(E.current=n.length)})),Object(v.useEffect)((function(){C.current||(M.current,M.current=t)}),[f,t]);var P=tc(p,[O,g],a,(function(){h({type:8})})),z=nc("getMenuProps","getToggleButtonProps");Object(v.useEffect)((function(){C.current=!1}),[]);var T=Object(v.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),h({type:13,getItemNodeFromIndex:D,shiftKey:e.shiftKey})},ArrowUp:function(e){e.preventDefault(),h({type:14,getItemNodeFromIndex:D,shiftKey:e.shiftKey})}}}),[h]),I=Object(v.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),h({type:0,getItemNodeFromIndex:D,shiftKey:e.shiftKey})},ArrowUp:function(e){e.preventDefault(),h({type:1,getItemNodeFromIndex:D,shiftKey:e.shiftKey})},Home:function(e){e.preventDefault(),h({type:3,getItemNodeFromIndex:D})},End:function(e){e.preventDefault(),h({type:4,getItemNodeFromIndex:D})},Escape:function(){h({type:2})},Enter:function(e){e.preventDefault(),h({type:5})}," ":function(e){e.preventDefault(),h({type:6})}}}),[h]),R=Object(v.useCallback)((function(){h({type:16})}),[h]),N=Object(v.useCallback)((function(){h({type:18})}),[h]),A=Object(v.useCallback)((function(){h({type:17})}),[h]),H=Object(v.useCallback)((function(e){h({type:19,highlightedIndex:e})}),[h]),L=Object(v.useCallback)((function(e){h({type:20,selectedItem:e})}),[h]),V=Object(v.useCallback)((function(){h({type:22})}),[h]),F=Object(v.useCallback)((function(e){h({type:21,inputValue:e})}),[h]),B=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,a=r.onMouseLeave,i=r.refKey,c=void 0===i?"ref":i,s=r.onKeyDown,l=r.onBlur,u=r.ref,d=Object(vi.a)(r,["onMouseLeave","refKey","onKeyDown","onBlur","ref"]),f=(void 0===t?{}:t).suppressRefError,p=void 0!==f&&f,b=x.current.state;return z("getMenuProps",p,c,O),Object(o.a)(((n={})[c]=Mi(u,(function(e){O.current=e})),n.id=S.current.menuId,n.role="listbox",n["aria-labelledby"]=S.current.labelId,n.tabIndex=-1,n),b.isOpen&&b.highlightedIndex>-1&&{"aria-activedescendant":S.current.getItemId(b.highlightedIndex)},{onMouseLeave:Ci(a,(function(){h({type:9})})),onKeyDown:Ci(s,(function(e){var t=Ti(e);t&&I[t]?I[t](e):Ui(t)&&h({type:7,key:t,getItemNodeFromIndex:D})})),onBlur:Ci(l,(function(){!1!==k.current?!P.current.isMouseDown&&h({type:8}):k.current=!0}))},d)}),[h,x,I,P,z]);return{getToggleButtonProps:Object(v.useCallback)((function(e,t){var n,r=void 0===e?{}:e,a=r.onClick,i=r.onKeyDown,c=r.refKey,s=void 0===c?"ref":c,l=r.ref,u=Object(vi.a)(r,["onClick","onKeyDown","refKey","ref"]),d=(void 0===t?{}:t).suppressRefError,f=void 0!==d&&d,p=Object(o.a)(((n={})[s]=Mi(l,(function(e){g.current=e})),n.id=S.current.toggleButtonId,n["aria-haspopup"]="listbox",n["aria-expanded"]=x.current.state.isOpen,n["aria-labelledby"]=S.current.labelId+" "+S.current.toggleButtonId,n),u);return u.disabled||(p.onClick=Ci(a,(function(){h({type:12})})),p.onKeyDown=Ci(i,(function(e){var t=Ti(e);t&&T[t]?T[t](e):Ui(t)&&h({type:15,key:t,getItemNodeFromIndex:D})}))),z("getToggleButtonProps",f,s,g),p}),[h,x,T,z]),getLabelProps:B,getMenuProps:K,getItemProps:Object(v.useCallback)((function(e){var t,n=void 0===e?{}:e,r=n.item,a=n.index,i=n.onMouseMove,c=n.onClick,s=n.refKey,l=void 0===s?"ref":s,u=n.ref,d=Object(vi.a)(n,["item","index","onMouseMove","onClick","refKey","ref"]),f=x.current,p=f.state,b=f.props,v=Wi(a,r,b.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===p.highlightedIndex),id:S.current.getItemId(v)})[l]=Mi(u,(function(e){e&&(j.current[S.current.getItemId(v)]=e)})),t),d);return d.disabled||(m.onMouseMove=Ci(i,(function(){a!==p.highlightedIndex&&(w.current=!1,h({type:10,index:a}))})),m.onClick=Ci(c,(function(){h({type:11,index:a})}))),m}),[h,x]),toggleMenu:R,openMenu:A,closeMenu:N,setHighlightedIndex:H,selectItem:L,reset:V,setInputValue:F,highlightedIndex:b,isOpen:p,selectedItem:m,inputValue:y}}cc.stateChangeTypes=ac;yi.a.array.isRequired,yi.a.func,yi.a.func,yi.a.func,yi.a.bool,yi.a.number,yi.a.number,yi.a.number,yi.a.bool,yi.a.bool,yi.a.bool,yi.a.any,yi.a.any,yi.a.any,yi.a.string,yi.a.string,yi.a.string,yi.a.string,yi.a.string,yi.a.string,yi.a.func,yi.a.string,yi.a.string,yi.a.func,yi.a.func,yi.a.func,yi.a.func,yi.a.func,yi.a.func,yi.a.shape({addEventListener:yi.a.func,removeEventListener:yi.a.func,document:yi.a.shape({getElementById:yi.a.func,activeElement:yi.a.any,body:yi.a.any})});Object(o.a)({},Zi,{getA11yStatusMessage:Di,circularNavigation:!0});yi.a.array,yi.a.array,yi.a.array,yi.a.func,yi.a.func,yi.a.func,yi.a.number,yi.a.number,yi.a.number,yi.a.func,yi.a.func,yi.a.string,yi.a.string,yi.a.shape({addEventListener:yi.a.func,removeEventListener:yi.a.func,document:yi.a.shape({getElementById:yi.a.func,activeElement:yi.a.any,body:yi.a.any})});var sc=function(e){return e&&e.name},lc=function(e,t){var n=e.selectedItem,r=t.type,o=t.changes,a=t.props.items;switch(r){case cc.stateChangeTypes.ToggleButtonKeyDownArrowDown:return{selectedItem:a[n?Math.min(a.indexOf(n)+1,a.length-1):0]};case cc.stateChangeTypes.ToggleButtonKeyDownArrowUp:return{selectedItem:a[n?Math.max(a.indexOf(n)-1,0):a.length-1]};default:return o}};function uc(e){var t=e.className,n=e.hideLabelFromVision,r=e.label,a=e.options,i=e.onChange,s=e.value,l=cc({initialSelectedItem:a[0],items:a,itemToString:sc,onSelectedItemChange:i,selectedItem:s,stateReducer:lc}),d=l.getLabelProps,f=l.getToggleButtonProps,h=l.getMenuProps,p=l.getItemProps,b=l.isOpen,v=l.highlightedIndex,m=l.selectedItem,y=h({className:"components-custom-select-control__menu","aria-hidden":!b});return y["aria-activedescendant"]&&"downshift-null"===y["aria-activedescendant"].slice(0,"downshift-null".length)&&delete y["aria-activedescendant"],Object(c.createElement)("div",{className:u()("components-custom-select-control",t)},n?Object(c.createElement)(P,Object(o.a)({as:"label"},d()),r):Object(c.createElement)("label",d({className:"components-custom-select-control__label"}),r),Object(c.createElement)(jt.a,f({"aria-label":r,"aria-labelledby":void 0,className:"components-custom-select-control__button",isSmall:!0}),sc(m),Object(c.createElement)(Ia.a,{icon:Za.a,className:"components-custom-select-control__button-icon"})),Object(c.createElement)("ul",y,b&&a.map((function(e,t){return Object(c.createElement)("li",p({item:e,index:t,key:e.key,className:u()(e.className,"components-custom-select-control__item",{"is-highlighted":t===v}),style:e.style}),e===m&&Object(c.createElement)(Ia.a,{icon:Ra.a,className:"components-custom-select-control__item-icon"}),e.name)}))))}var dc=n(148),fc=(n(306),n(43)),hc=n.n(fc),pc=n(270),bc=n.n(pc);function vc(){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}}var mc=function(e){Object(mt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(vt.a)(t);if(vc()){var r=Object(vt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(bt.a)(this,e)});function r(){var e;return Object(ft.a)(this,r),(e=n.apply(this,arguments)).onChangeMoment=e.onChangeMoment.bind(Object(ht.a)(e)),e.nodeRef=Object(c.createRef)(),e.keepFocusInside=e.keepFocusInside.bind(Object(ht.a)(e)),e}return Object(pt.a)(r,[{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?hc()(n):hc()(),a={hours:o.hours(),minutes:o.minutes(),seconds:0};r(e.set(a).format("YYYY-MM-DDTHH:mm:ss"))}},{key:"getMomentDate",value:function(e){return null===e?null:e?hc()(e):hc()()}},{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)(bc.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())},onPrevMonthClick:this.keepFocusInside,onNextMonthClick:this.keepFocusInside}))}}]),r}(c.Component);function yc(){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}}var gc=function(e){Object(mt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(vt.a)(t);if(yc()){var r=Object(vt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(bt.a)(this,e)});function r(){var e;return Object(ft.a)(this,r),(e=n.apply(this,arguments)).state={day:"",month:"",year:"",hours:"",minutes:"",am:"",date:null},e.changeDate=e.changeDate.bind(Object(ht.a)(e)),e.updateMonth=e.updateMonth.bind(Object(ht.a)(e)),e.onChangeMonth=e.onChangeMonth.bind(Object(ht.a)(e)),e.updateDay=e.updateDay.bind(Object(ht.a)(e)),e.onChangeDay=e.onChangeDay.bind(Object(ht.a)(e)),e.updateYear=e.updateYear.bind(Object(ht.a)(e)),e.onChangeYear=e.onChangeYear.bind(Object(ht.a)(e)),e.updateHours=e.updateHours.bind(Object(ht.a)(e)),e.updateMinutes=e.updateMinutes.bind(Object(ht.a)(e)),e.onChangeHours=e.onChangeHours.bind(Object(ht.a)(e)),e.onChangeMinutes=e.onChangeMinutes.bind(Object(ht.a)(e)),e.renderMonth=e.renderMonth.bind(Object(ht.a)(e)),e.renderDay=e.renderDay.bind(Object(ht.a)(e)),e.renderDayMonthFormat=e.renderDayMonthFormat.bind(Object(ht.a)(e)),e}return Object(pt.a)(r,[{key:"componentDidMount",value:function(){this.syncState(this.props)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.currentTime,r=t.is12Hour;n===e.currentTime&&r===e.is12Hour||this.syncState(this.props)}},{key:"changeDate",value:function(e){var t=e.clone().startOf("minute");this.setState({date:t}),this.props.onChange(e.format("YYYY-MM-DDTHH:mm:ss"))}},{key:"getMaxHours",value:function(){return this.props.is12Hour?12:23}},{key:"getMinHours",value:function(){return this.props.is12Hour?1:0}},{key:"syncState",value:function(e){var t=e.currentTime,n=e.is12Hour,r=t?hc()(t):hc()(),o=r.format("DD"),a=r.format("MM"),i=r.format("YYYY"),c=r.format("mm"),s=r.format("H")<=11?"AM":"PM",l=r.format(n?"hh":"HH"),u=t?hc()(t):hc()();this.setState({day:o,month:a,year:i,minutes:c,hours:l,am:s,date:u})}},{key:"updateHours",value:function(){var e=this.props.is12Hour,t=this.state,n=t.am,r=t.hours,o=t.date,a=parseInt(r,10);if(a!==o.hour())if(!Object(s.isInteger)(a)||e&&(a<1||a>12)||!e&&(a<0||a>23))this.syncState(this.props);else{var i=e?o.clone().hours("AM"===n?a%12:(a%12+12)%24):o.clone().hours(a);this.changeDate(i)}}},{key:"updateMinutes",value:function(){var e=this.state,t=e.minutes,n=e.date,r=parseInt(t,10);if(r!==n.minute())if(!Object(s.isInteger)(r)||r<0||r>59)this.syncState(this.props);else{var o=n.clone().minutes(r);this.changeDate(o)}}},{key:"updateDay",value:function(){var e=this.state,t=e.day,n=e.date,r=parseInt(t,10);if(r!==n.date())if(!Object(s.isInteger)(r)||r<1||r>31)this.syncState(this.props);else{var o=n.clone().date(r);this.changeDate(o)}}},{key:"updateMonth",value:function(){var e=this.state,t=e.month,n=e.date,r=parseInt(t,10);if(r!==n.month()+1)if(!Object(s.isInteger)(r)||r<1||r>12)this.syncState(this.props);else{var o=n.clone().month(r-1);this.changeDate(o)}}},{key:"updateYear",value:function(){var e=this.state,t=e.year,n=e.date,r=parseInt(t,10);if(r!==n.year())if(!Object(s.isInteger)(r)||r<0||r>9999)this.syncState(this.props);else{var o=n.clone().year(r);this.changeDate(o)}}},{key:"updateAmPm",value:function(e){var t=this;return function(){var n,r=t.state,o=r.am,a=r.date,i=r.hours;o!==e&&(n="PM"===e?a.clone().hours((parseInt(i,10)%12+12)%24):a.clone().hours(parseInt(i,10)%12),t.changeDate(n))}}},{key:"onChangeDay",value:function(e){this.setState({day:e.target.value})}},{key:"onChangeMonth",value:function(e){this.setState({month:e.target.value})}},{key:"onChangeYear",value:function(e){this.setState({year:e.target.value})}},{key:"onChangeHours",value:function(e){this.setState({hours:e.target.value})}},{key:"onChangeMinutes",value:function(e){var t=e.target.value;this.setState({minutes:""===t?"":("0"+t).slice(-2)})}},{key:"renderMonth",value:function(e){return Object(c.createElement)("div",{key:"render-month",className:"components-datetime__time-field components-datetime__time-field-month"},Object(c.createElement)("select",{"aria-label":Object(S.__)("Month"),className:"components-datetime__time-field-month-select",value:e,onChange:this.onChangeMonth,onBlur:this.updateMonth},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"))))}},{key:"renderDay",value:function(e){return Object(c.createElement)("div",{key:"render-day",className:"components-datetime__time-field components-datetime__time-field-day"},Object(c.createElement)("input",{"aria-label":Object(S.__)("Day"),className:"components-datetime__time-field-day-input",type:"number",value:e,step:1,min:1,onChange:this.onChangeDay,onBlur:this.updateDay}))}},{key:"renderDayMonthFormat",value:function(e){var t=this.state,n=t.day,r=t.month,o=[this.renderDay(n),this.renderMonth(r)];return e?o:o.reverse()}},{key:"render",value:function(){var e=this.props.is12Hour,t=this.state,n=t.year,r=t.minutes,o=t.hours,a=t.am;return Object(c.createElement)("div",{className:u()("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"},this.renderDayMonthFormat(e),Object(c.createElement)("div",{className:"components-datetime__time-field components-datetime__time-field-year"},Object(c.createElement)("input",{"aria-label":Object(S.__)("Year"),className:"components-datetime__time-field-year-input",type:"number",step:1,value:n,onChange:this.onChangeYear,onBlur:this.updateYear})))),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)("input",{"aria-label":Object(S.__)("Hours"),className:"components-datetime__time-field-hours-input",type:"number",step:1,min:this.getMinHours(),max:this.getMaxHours(),value:o,onChange:this.onChangeHours,onBlur:this.updateHours}),Object(c.createElement)("span",{className:"components-datetime__time-separator","aria-hidden":"true"},":"),Object(c.createElement)("input",{"aria-label":Object(S.__)("Minutes"),className:"components-datetime__time-field-minutes-input",type:"number",min:0,max:59,value:r,onChange:this.onChangeMinutes,onBlur:this.updateMinutes})),e&&Object(c.createElement)(oa,{className:"components-datetime__time-field components-datetime__time-field-am-pm"},Object(c.createElement)(jt.a,{isPrimary:"AM"===a,isSecondary:"AM"!==a,onClick:this.updateAmPm("AM"),className:"components-datetime__time-am-button"},Object(S.__)("AM")),Object(c.createElement)(jt.a,{isPrimary:"PM"===a,isSecondary:"PM"!==a,onClick:this.updateAmPm("PM"),className:"components-datetime__time-pm-button"},Object(S.__)("PM"))))))}}]),r}(c.Component);function Oc(){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}}var jc=function(e){Object(mt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(vt.a)(t);if(Oc()){var r=Object(vt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(bt.a)(this,e)});function r(){var e;return Object(ft.a)(this,r),(e=n.apply(this,arguments)).state={calendarHelpIsVisible:!1},e.onClickDescriptionToggle=e.onClickDescriptionToggle.bind(Object(ht.a)(e)),e}return Object(pt.a)(r,[{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.onChange;return Object(c.createElement)("div",{className:"components-datetime"},!this.state.calendarHelpIsVisible&&Object(c.createElement)(c.Fragment,null,Object(c.createElement)(gc,{currentTime:t,onChange:o,is12Hour:n}),Object(c.createElement)(mc,{currentDate:t,onChange:o,isInvalidDate:r})),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)(jt.a,{className:"components-datetime__date-reset-button",isLink:!0,onClick:function(){return o(null)}},Object(S.__)("Reset")),Object(c.createElement)(jt.a,{className:"components-datetime__date-help-toggle",isLink:!0,onClick:this.onClickDescriptionToggle},this.state.calendarHelpIsVisible?Object(S.__)("Close"):Object(S.__)("Calendar Help"))))}}]),r}(c.Component),wc=n(88);function kc(e){var t=e.help,n=e.label,r=e.multiple,a=void 0!==r&&r,l=e.onChange,u=e.options,d=void 0===u?[]:u,f=e.className,h=e.hideLabelFromVision,p=Object(i.a)(e,["help","label","multiple","onChange","options","className","hideLabelFromVision"]),b=Object(E.useInstanceId)(kc),v="inspector-select-control-".concat(b);return!Object(s.isEmpty)(d)&&Object(c.createElement)(lt,{label:n,hideLabelFromVision:h,id:v,help:t,className:f},Object(c.createElement)("select",Object(o.a)({id:v,className:"components-select-control__input",onChange:function(e){if(a){var t=Object(yt.a)(e.target.options).filter((function(e){return e.selected})).map((function(e){return e.value}));l(t)}else l(e.target.value)},"aria-describedby":t?"".concat(v,"__help"):void 0,multiple:a},p),d.map((function(e,t){return Object(c.createElement)("option",{key:"".concat(e.label,"-").concat(e.value,"-").concat(t),value:e.value,disabled:e.disabled},e.label)}))))}var _c=[{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 Sc=function(e){var t,n,r=e.label,o=e.value,a=e.sizes,i=void 0===a?_c:a,l=e.icon,d=e.onChange,f=e.className,h=void 0===f?"":f,p=Object(c.createElement)(c.Fragment,null,l&&Object(c.createElement)(wc.a,{icon:l}),r);return Object(c.createElement)(kc,{className:u()(h,"block-editor-dimension-control"),label:p,hideLabelFromVision:!1,value:o,onChange:function(e){var t=function(e,t){return e.find((function(e){return t===e.slug}))}(i,e);t&&o!==t.slug?Object(s.isFunction)(d)&&d(t.slug):d(void 0)},options:(t=i,n=t.map((function(e){return{label:e.name,value:e.slug}})),[{label:Object(S.__)("Default"),value:""}].concat(n))})},Ec=n(30);function Cc(){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}}var Mc=Object(c.createContext)(!1),xc=Mc.Consumer,Dc=Mc.Provider,Pc=["BUTTON","FIELDSET","INPUT","OPTGROUP","OPTION","SELECT","TEXTAREA"],zc=function(e){Object(mt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(vt.a)(t);if(Cc()){var r=Object(vt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(bt.a)(this,e)});function r(){var e;return Object(ft.a)(this,r),(e=n.apply(this,arguments)).bindNode=e.bindNode.bind(Object(ht.a)(e)),e.disable=e.disable.bind(Object(ht.a)(e)),e.debouncedDisable=Object(s.debounce)(e.disable,{leading:!0}),e}return Object(pt.a)(r,[{key:"componentDidMount",value:function(){this.disable(),this.observer=new window.MutationObserver(this.debouncedDisable),this.observer.observe(this.node,{childList:!0,attributes:!0,subtree:!0})}},{key:"componentWillUnmount",value:function(){this.observer.disconnect(),this.debouncedDisable.cancel()}},{key:"bindNode",value:function(e){this.node=e}},{key:"disable",value:function(){Ec.focus.focusable.find(this.node).forEach((function(e){Object(s.includes)(Pc,e.nodeName)&&e.setAttribute("disabled",""),e.hasAttribute("tabindex")&&e.removeAttribute("tabindex"),e.hasAttribute("contenteditable")&&e.setAttribute("contenteditable","false")}))}},{key:"render",value:function(){var e=this.props,t=e.className,n=Object(i.a)(e,["className"]);return Object(c.createElement)(Dc,{value:!0},Object(c.createElement)("div",Object(o.a)({ref:this.bindNode,className:u()(t,"components-disabled")},n),this.props.children))}}]),r}(c.Component);zc.Consumer=xc;var Tc=zc;function Ic(){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}}var Rc=function(e){Object(mt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(vt.a)(t);if(Ic()){var r=Object(vt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(bt.a)(this,e)});function r(){var e;return Object(ft.a)(this,r),(e=n.apply(this,arguments)).onDragStart=e.onDragStart.bind(Object(ht.a)(e)),e.onDragOver=e.onDragOver.bind(Object(ht.a)(e)),e.onDragEnd=e.onDragEnd.bind(Object(ht.a)(e)),e.resetDragState=e.resetDragState.bind(Object(ht.a)(e)),e.dragComponentRef=Object(c.createRef)(),e}return Object(pt.a)(r,[{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,a=t.onDragStart,i=void 0===a?s.noop:a,c=document.getElementById(r);if(c){if("function"==typeof e.dataTransfer.setDragImage){var l=document.createElement("div");l.id="drag-image-".concat(r),l.classList.add("components-draggable__invisible-drag-image"),document.body.appendChild(l),e.dataTransfer.setDragImage(l,0,0),this.props.setTimeout((function(){document.body.removeChild(l)}))}e.dataTransfer.setData("text",JSON.stringify(o));var u=c.getBoundingClientRect(),d=c.parentNode,f=parseInt(u.top,10),h=parseInt(u.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(u.width+0,"px"),this.dragComponentRef.current){this.cloneWrapper.style.top="".concat(f-0,"px"),this.cloneWrapper.style.left="".concat(h-0,"px");var p=document.createElement("div");p.innerHTML=this.dragComponentRef.current.innerHTML,this.cloneWrapper.appendChild(p)}else{var b=c.cloneNode(!0);b.id="clone-".concat(r),u.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(h-0,"px")),Array.from(b.querySelectorAll("iframe")).forEach((function(e){return e.parentNode.removeChild(e)})),this.cloneWrapper.appendChild(b)}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(i.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))}}]),r}(c.Component),Nc=Object(E.withSafeTimeout)(Rc),Ac=n(203),Hc=n(64),Lc=n.n(Hc);function Vc(){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}}var Fc=Object(c.createContext)({addDropZone:function(){},removeDropZone:function(){}}),Bc=Fc.Provider,Kc=Fc.Consumer,Wc=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"},Uc=function(e,t){return"file"===e&&t.onFilesDrop||"html"===e&&t.onHTMLDrop||"default"===e&&t.onDrop},Gc=function(e){Object(mt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(vt.a)(t);if(Vc()){var r=Object(vt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(bt.a)(this,e)});function r(){var e;return Object(ft.a)(this,r),(e=n.apply(this,arguments)).onDragOver=e.onDragOver.bind(Object(ht.a)(e)),e.onDrop=e.onDrop.bind(Object(ht.a)(e)),e.addDropZone=e.addDropZone.bind(Object(ht.a)(e)),e.removeDropZone=e.removeDropZone.bind(Object(ht.a)(e)),e.resetDragState=e.resetDragState.bind(Object(ht.a)(e)),e.toggleDraggingOverDocument=Object(s.throttle)(e.toggleDraggingOverDocument.bind(Object(ht.a)(e)),200),e.dropZones=[],e.dropZoneCallbacks={addDropZone:e.addDropZone,removeDropZone:e.removeDropZone},e.state={hoveredDropZone:-1,isDraggingOverDocument:!1,position:null},e}return Object(pt.a)(r,[{key:"componentDidMount",value:function(){window.addEventListener("dragover",this.onDragOver),window.addEventListener("mouseup",this.resetDragState)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragover",this.onDragOver),window.removeEventListener("mouseup",this.resetDragState)}},{key:"addDropZone",value:function(e){this.dropZones.push(e)}},{key:"removeDropZone",value:function(e){this.dropZones=Object(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 Uc(t,e)&&(n=e.element.current,o=r.clientX,a=r.clientY,(i=n.getBoundingClientRect()).bottom!==i.top&&i.left!==i.right&&o>=i.left&&o<=i.right&&a>=i.top&&a<=i.bottom);var n,o,a,i})),a=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)}))})),i=this.dropZones.indexOf(a),c=null;a&&a.withPosition&&(c={x:r.clientX,y:r.clientY});var l=[];this.state.isDraggingOverDocument?i!==this.state.hoveredDropZone?(-1!==this.state.hoveredDropZone&&l.push(this.dropZones[this.state.hoveredDropZone]),a&&l.push(a)):a&&i===this.state.hoveredDropZone&&!Object(s.isEqual)(c,this.state.position)&&l.push(a):l=this.dropZones,l.forEach((function(e){var r=n.dropZones.indexOf(e)===i;e.setState({isDraggingOverDocument:Uc(t,e),isDraggingOverElement:r,position:r?c:null,type:r?t:null})}));var u={isDraggingOverDocument:!0,hoveredDropZone:i,position:c};Lc()(u,this.state)||this.setState(u)}},{key:"onDragOver",value:function(e){this.toggleDraggingOverDocument(e,Wc(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=Wc(e),a=this.dropZones[r];if(this.resetDragState(),a)switch(o){case"file":a.onFilesDrop(Object(yt.a)(e.dataTransfer.files),n);break;case"html":a.onHTMLDrop(e.dataTransfer.getData("text/html"),n);break;case"default":a.onDrop(e,n)}e.stopPropagation(),e.preventDefault()}},{key:"render",value:function(){return Object(c.createElement)("div",{onDrop:this.onDrop,className:"components-drop-zone__provider"},Object(c.createElement)(Bc,{value:this.dropZoneCallbacks},this.props.children))}}]),r}(c.Component);function $c(e){var t=e.element,n=e.onFilesDrop,r=e.onHTMLDrop,o=e.onDrop,i=e.isDisabled,s=e.withPosition,l=e.__unstableIsRelative,u=void 0!==l&&l,d=Object(c.useContext)(Fc),f=d.addDropZone,h=d.removeDropZone,p=Object(c.useState)({isDraggingOverDocument:!1,isDraggingOverElement:!1,type:null}),b=Object(a.a)(p,2),v=b[0],m=b[1];return Object(c.useEffect)((function(){if(!i){var e={element:t,onDrop:o,onFilesDrop:n,onHTMLDrop:r,setState:m,withPosition:s,isRelative:u};return f(e),function(){h(e)}}}),[i,o,n,r,s]),v}function qc(e){var t,n=e.className,r=e.label,o=e.onFilesDrop,a=e.onHTMLDrop,i=e.onDrop,s=Object(c.useRef)(),l=$c({element:s,onFilesDrop:o,onHTMLDrop:a,onDrop:i,__unstableIsRelative:!0}),d=l.isDraggingOverDocument,f=l.isDraggingOverElement,h=l.type;f&&(t=Object(c.createElement)("div",{className:"components-drop-zone__content"},Object(c.createElement)(Ia.a,{icon:Ac.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 p=u()("components-drop-zone",n,Object(x.a)({"is-active":(d||f)&&("file"===h&&o||"html"===h&&a||"default"===h&&i),"is-dragging-over-document":d,"is-dragging-over-element":f},"is-dragging-".concat(h),!!h));return Object(c.createElement)("div",{ref:s,className:p},t)}var Yc=function(e){return Object(c.createElement)(Kc,null,(function(t){var n=t.addDropZone,r=t.removeDropZone;return Object(c.createElement)(qc,Object(o.a)({addDropZone:n,removeDropZone:r},e))}))},Zc=n(37),Xc=n.n(Zc);function Jc(){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}}var Qc=["menuitem","menuitemradio","menuitemcheckbox"];var es=function(e){Object(mt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(vt.a)(t);if(Jc()){var r=Object(vt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(bt.a)(this,e)});function r(){var e;return Object(ft.a)(this,r),(e=n.apply(this,arguments)).onKeyDown=e.onKeyDown.bind(Object(ht.a)(e)),e.bindContainer=e.bindContainer.bind(Object(ht.a)(e)),e.getFocusableContext=e.getFocusableContext.bind(Object(ht.a)(e)),e.getFocusableIndex=e.getFocusableIndex.bind(Object(ht.a)(e)),e}return Object(pt.a)(r,[{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?Ec.focus.tabbable:Ec.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,a=n.eventToOffset,i=n.onNavigate,c=void 0===i?s.noop:i,l=n.stopNavigationEvents,u=a(e);if(void 0!==u&&l){e.stopImmediatePropagation();var d=e.target.getAttribute("role");Qc.includes(d)&&e.preventDefault()}if(u){var f=t(document.activeElement);if(f){var h=f.index,p=f.focusables,b=o?function(e,t,n){var r=e+n;return r<0?t+r:r>=t?r-t:r}(h,p.length,u):h+u;b>=0&&b0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=as({},e,{},t);return t.className&&e.className&&(n.className=u()(t.className,e.className)),n}var cs=function(e){var t,n=e.children,r=e.className,a=e.controls,i=e.icon,l=void 0===i?"menu":i,d=e.label,f=e.popoverProps,h=e.toggleProps,p=e.menuProps,b=e.disableOpenOnArrowDown,v=void 0!==b&&b,m=e.menuLabel,y=e.position,g=e.noIcons;if(m&&Xc()("`menuLabel` prop in `DropdownComponent`",{alternative:"`menuProps` object and its `aria-label` property",plugin:"Gutenberg"}),y&&Xc()("`position` prop in `DropdownComponent`",{alternative:"`popoverProps` object and its `position` property",plugin:"Gutenberg"}),Object(s.isEmpty)(a)&&!Object(s.isFunction)(n))return null;Object(s.isEmpty)(a)||(t=a,Array.isArray(t[0])||(t=[t]));var O=is({className:"components-dropdown-menu__popover",position:y},f);return Object(c.createElement)(hi,{className:u()("components-dropdown-menu",r),popoverProps:O,renderToggle:function(e){var t=e.isOpen,n=e.onToggle,r=is({className:u()("components-dropdown-menu__toggle",{"is-opened":t})},h);return Object(c.createElement)(jt.a,Object(o.a)({},r,{icon:l,onClick:function(e){n(e),r.onClick&&r.onClick(e)},onKeyDown:function(e){!function(e){v||t||e.keyCode!==gt.DOWN||(e.preventDefault(),e.stopPropagation(),n())}(e),r.onKeyDown&&r.onKeyDown(e)},"aria-haspopup":"true","aria-expanded":t,label:d,showTooltip:!0}),r.children)},renderContent:function(e){var r=is({"aria-label":m||d,className:u()("components-dropdown-menu__menu",{"no-icons":g})},p);return Object(c.createElement)(rs,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)(jt.a,{key:[n,r].join(),onClick:function(n){n.stopPropagation(),e.onClose(),t.onClick&&t.onClick()},className:u()("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)}))})))}})},ss=n(410);var ls=Object(c.forwardRef)((function(e,t){var n=e.href,r=e.children,a=e.className,l=e.rel,d=void 0===l?"":l,f=Object(i.a)(e,["href","children","className","rel"]);d=Object(s.uniq)(Object(s.compact)([].concat(Object(yt.a)(d.split(" ")),["external","noreferrer","noopener"]))).join(" ");var h=u()("components-external-link",a);return Object(c.createElement)("a",Object(o.a)({},f,{className:h,href:n,target:"_blank",rel:d,ref:t}),r,Object(c.createElement)(P,{as:"span"},Object(S.__)("(opens in a new tab)")),Object(c.createElement)(Ia.a,{icon:ss.a,className:"components-external-link__icon"}))})),us=n(111);function ds(){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}}var fs=function(e){Object(mt.a)(o,e);var t,n=(t=o,function(){var e,n=Object(vt.a)(t);if(ds()){var r=Object(vt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(bt.a)(this,e)});function o(e){var t;return Object(ft.a)(this,o),(t=n.call(this,e)).onMouseMove=t.onMouseMove.bind(Object(ht.a)(t)),t.state={isDragging:!1,bounds:{},percentages:e.value},t.containerRef=Object(c.createRef)(),t.imageRef=Object(c.createRef)(),t.horizontalPositionChanged=t.horizontalPositionChanged.bind(Object(ht.a)(t)),t.verticalPositionChanged=t.verticalPositionChanged.bind(Object(ht.a)(t)),t.onLoad=t.onLoad.bind(Object(ht.a)(t)),t}return Object(pt.a)(o,[{key:"componentDidUpdate",value:function(e){e.url!==this.props.url&&this.setState({isDragging:!1})}},{key:"calculateBounds",value:function(){var e={top:0,left:0,bottom:0,right:0,width:0,height:0};if(!this.imageRef.current)return e;var t=this.imageRef.current.clientWidth,n=this.imageRef.current.clientHeight,r=this.pickerDimensions(),o=r.width/t,a=r.height/n;return a>=o?(e.width=e.right=r.width,e.height=n*o,e.top=(r.height-e.height)/2,e.bottom=e.top+e.height):(e.height=e.bottom=r.height,e.width=t*a,e.left=(r.width-e.width)/2,e.right=e.left+e.width),e}},{key:"onLoad",value:function(){this.setState({bounds:this.calculateBounds()})}},{key:"onMouseMove",value:function(e){var t=this.state,n=t.isDragging,r=t.bounds,o=this.props.onChange;if(n){var a=this.pickerDimensions(),i={left:e.pageX-a.left,top:e.pageY-a.top},c=Math.max(r.left,Math.min(i.left,r.right)),s=Math.max(r.top,Math.min(i.top,r.bottom)),l={x:((c-r.left)/(a.width-2*r.left)).toFixed(2),y:((s-r.top)/(a.height-2*r.top)).toFixed(2)};this.setState({percentages:l},(function(){o({x:this.state.percentages.x,y:this.state.percentages.y})}))}}},{key:"fractionToPercentage",value:function(e){return Math.round(100*e)}},{key:"horizontalPositionChanged",value:function(e){this.positionChangeFromTextControl("x",e.target.value)}},{key:"verticalPositionChanged",value:function(e){this.positionChangeFromTextControl("y",e.target.value)}},{key:"positionChangeFromTextControl",value:function(e,t){var n=this.props.onChange,r=this.state.percentages,o=Math.max(Math.min(parseInt(t),100),0);r[e]=(o?o/100:0).toFixed(2),this.setState({percentages:r},(function(){n({x:this.state.percentages.x,y:this.state.percentages.y})}))}},{key:"pickerDimensions",value:function(){return this.containerRef.current?{width:this.containerRef.current.clientWidth,height:this.containerRef.current.clientHeight,top:this.containerRef.current.getBoundingClientRect().top+document.body.scrollTop,left:this.containerRef.current.getBoundingClientRect().left}:{width:0,height:0,left:0,top:0}}},{key:"handleFocusOutside",value:function(){this.setState({isDragging:!1})}},{key:"render",value:function(){var e=this,t=this.props,n=t.instanceId,o=t.url,a=t.value,i=t.label,s=t.help,l=t.className,d=this.state,f=d.bounds,h=d.isDragging,p=d.percentages,b=this.pickerDimensions(),v={left:a.x*(b.width-2*f.left)+f.left,top:a.y*(b.height-2*f.top)+f.top},m={left:"".concat(v.left,"px"),top:"".concat(v.top,"px")},y=u()("components-focal-point-picker__icon_container",h?"is-dragging":null),g="inspector-focal-point-picker-control-".concat(n),O="inspector-focal-point-picker-control-horizontal-position-".concat(n),j="inspector-focal-point-picker-control-vertical-position-".concat(n);return Object(c.createElement)(lt,{label:i,id:g,help:s,className:l},Object(c.createElement)("div",{className:"components-focal-point-picker-wrapper"},Object(c.createElement)("div",{className:"components-focal-point-picker",onMouseDown:function(){return e.setState({isDragging:!0})},onDragStart:function(){return e.setState({isDragging:!0})},onMouseUp:function(){return e.setState({isDragging:!1})},onDrop:function(){return e.setState({isDragging:!1})},onMouseMove:this.onMouseMove,ref:this.containerRef,role:"button",tabIndex:"-1"},Object(c.createElement)("img",{alt:"Dimensions helper",onLoad:this.onLoad,ref:this.imageRef,src:o,draggable:"false"}),Object(c.createElement)("div",{className:y,style:m},Object(c.createElement)(r.SVG,{className:"components-focal-point-picker__icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30 30"},Object(c.createElement)(r.Path,{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)(r.Path,{className:"components-focal-point-picker__icon-fill",d:"M15 3C8.4 3 3 8.4 3 15s5.4 12 12 12 12-5.4 12-12S21.6 3 15 3zm0 22C9.5 25 5 20.5 5 15S9.5 5 15 5s10 4.5 10 10-4.5 10-10 10z"}))))),Object(c.createElement)("div",{className:"components-focal-point-picker_position-display-container"},Object(c.createElement)(lt,{label:Object(S.__)("Horizontal pos."),id:O},Object(c.createElement)("input",{className:"components-text-control__input",id:O,max:100,min:0,onChange:this.horizontalPositionChanged,type:"number",value:this.fractionToPercentage(p.x)}),Object(c.createElement)("span",null,"%")),Object(c.createElement)(lt,{label:Object(S.__)("Vertical pos."),id:j},Object(c.createElement)("input",{className:"components-text-control__input",id:j,max:100,min:0,onChange:this.verticalPositionChanged,type:"number",value:this.fractionToPercentage(p.y)}),Object(c.createElement)("span",null,"%"))))}}]),o}(c.Component);fs.defaultProps={url:null,value:{x:.5,y:.5},onChange:function(){}};var hs=Object(E.compose)([E.withInstanceId,us.a])(fs);function ps(){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}}var bs=window.FocusEvent,vs=function(e){Object(mt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(vt.a)(t);if(ps()){var r=Object(vt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(bt.a)(this,e)});function r(e){var t;return Object(ft.a)(this,r),(t=n.apply(this,arguments)).checkFocus=t.checkFocus.bind(Object(ht.a)(t)),t.node=e.iframeRef||Object(c.createRef)(),t}return Object(pt.a)(r,[{key:"checkFocus",value:function(){var e=this.node.current;if(document.activeElement===e){var t=new bs("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"])))}}]),r}(c.Component),ms=Object(E.withGlobalEvents)({blur:"checkFocus"})(vs),ys=n(411);function gs(e,t,n){return"number"!=typeof e?null:parseFloat(Object(s.clamp)(e,t,n))}var Os={name:"tdik1c",styles:"height:30px;min-height:30px;"},js=function(){return Os},ws=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%;"}),ks=je("span",{target:"exqw8y21",label:"Wrapper"})("box-sizing:border-box;color:",Ae("blue.medium.focus"),";display:block;flex:1;padding-top:15px;position:relative;width:100%;",(function(e){var t=e.color,n=void 0===t?Ae("ui.borderFocus"):t;return ue({color:n},"")}),";",js,";",(function(e){var t=e.marks;return ue({marginBottom:t?16:null},"")}),";",tt({marginLeft:10}),""),_s=je("span",{target:"exqw8y22",label:"BeforeIconWrapper"})("margin-top:3px;",tt({marginRight:6}),""),Ss=je("span",{target:"exqw8y23",label:"AfterIconWrapper"})("margin-top:3px;",tt({marginLeft:16}),""),Es=je("span",{target:"exqw8y24",label:"Rail"})("background-color:",Ae("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=Ae("lightGray.400")),ue({background:n},"")}),";"),Cs=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=Ae("lightGray.800")),ue({background:n},"")}),";"),Ms=je("span",{target:"exqw8y26",label:"MarksWrapper"})({name:"sx8y8z",styles:"box-sizing:border-box;display:block;position:relative;width:100%;user-select:none;"}),xs=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":Ae("lightGray.600");return t&&(n=Ae("lightGray.800")),ue({backgroundColor:n},"")}),";"),Ds=je("span",{target:"exqw8y28",label:"MarkLabel"})("box-sizing:border-box;color:",Ae("lightGray.600"),";left:0;font-size:11px;position:absolute;top:12px;transform:translateX( -50% );white-space:nowrap;",(function(e){var t=e.isFilled;return ue({color:Ae(t?"darkGray.300":"lightGray.600")},"")}),";"),Ps=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;",tt({marginLeft:-10}),""),zs=je("span",{target:"exqw8y210",label:"Thumb"})("align-items:center;background-color:white;border-radius:50%;border:1px solid ",Ae("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 ue({borderColor:Ae(t?"ui.borderFocus":"darkGray.200"),boxShadow:t?"\n\t\t\t\t0 0 0 1px ".concat(Ae("ui.borderFocus"),"\n\t\t\t"):"\n\t\t\t\t0 0 0 rgba(0, 0, 0, 0)\n\t\t\t"},"")}),";"),Ts=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%;"}),Is={name:"5qqmyx",styles:"top:-80%;"},Rs={name:"eda4eg",styles:"bottom:-80%;"},Ns=je("span",{target:"exqw8y212",label:"Tooltip"})("background:",Ae("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 ue({opacity:t?1:0},"")}),";",(function(e){return"top"===e.position?Is:Rs}),";",He("transition"),";",tt({transform:"translateX(-50%)"},{transform:"translateX(50%)"}),""),As=je(Ar,{target:"exqw8y213",label:"InputNumber"})("box-sizing:border-box;display:inline-block;font-size:13px;margin-top:0;width:",ca(8),";input[type='number']&{",js,";}",tt({marginLeft:ca(2)}),""),Hs=je("span",{target:"exqw8y214",label:"ActionRightWrapper"})("box-sizing:border-box;display:block;margin-top:0;button,button.is-small{margin-left:0;",js,";}",tt({marginLeft:8}),"");var Ls=Object(c.forwardRef)((function(e,t){var n=e.describedBy,r=e.isShiftStepEnabled,l=void 0===r||r,u=e.label,d=e.onHideTooltip,f=void 0===d?s.noop:d,h=e.onMouseLeave,p=void 0===h?s.noop:h,b=e.step,v=void 0===b?1:b,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,C=e.shiftStep,M=void 0===C?10:C,x=e.value,D=Object(i.a)(e,["describedBy","isShiftStepEnabled","label","onHideTooltip","onMouseLeave","step","onBlur","onChange","onFocus","onMouseMove","onShowTooltip","shiftStep","value"]),P=Nr({step:v,shiftStep:M,isShiftStepEnabled:l}),z=function(e){var t=e.onHide,n=void 0===t?s.noop:t,r=e.onMouseLeave,o=void 0===r?s.noop:r,i=e.onMouseMove,l=void 0===i?s.noop:i,u=e.onShow,d=void 0===u?s.noop:u,f=e.timeout,h=void 0===f?300:f,p=Object(c.useState)(!1),b=Object(a.a)(p,2),v=b[0],m=b[1],y=Object(c.useRef)(),g=Object(c.useCallback)((function(e){window.clearTimeout(y.current),y.current=setTimeout(e,h)}),[h]),O=Object(c.useCallback)((function(e){l(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:p,onMouseMove:_,onShow:E});return Object(c.createElement)(Ts,Object(o.a)({},D,z,{"aria-describedby":n,"aria-label":u,"aria-hidden":!1,onBlur:y,onChange:O,onFocus:w,ref:t,step:P,tabIndex:0,type:"range",value:x}))}));function Vs(e){var t=e.className,n=e.isFilled,r=void 0!==n&&n,a=e.label,s=e.style,l=void 0===s?{}:s,d=Object(i.a)(e,["className","isFilled","label","style"]),f=u()("components-range-control__mark",r&&"is-filled",t),h=u()("components-range-control__mark-label",r&&"is-filled");return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(xs,Object(o.a)({},d,{"aria-hidden":"true",className:f,isFilled:r,style:l})),a&&Object(c.createElement)(Ds,{"aria-hidden":"true",className:h,isFilled:r,style:l},a))}function Fs(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 Bs(e){var t=e.disabled,n=void 0!==t&&t,r=e.marks,a=void 0!==r&&r,s=e.min,l=void 0===s?0:s,u=e.max,d=void 0===u?100:u,f=e.step,h=void 0===f?1:f,p=e.value,b=void 0===p?0:p,v=Object(i.a)(e,["disabled","marks","min","max","step","value"]);return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(Es,Object(o.a)({disabled:n},v)),a&&Object(c.createElement)(Ks,{disabled:n,marks:a,min:l,max:d,step:h,value:b}))}function Ks(e){var t=e.disabled,n=void 0!==t&&t,r=e.marks,a=void 0!==r&&r,i=e.min,s=void 0===i?0:i,l=e.max,u=void 0===l?100:l,d=e.step,f=void 0===d?1:d,h=e.value,p=function(e){var t=e.marks,n=e.min,r=void 0===n?0:n,o=e.max,a=void 0===o?100:o,i=e.step,c=void 0===i?1:i,s=e.value,l=void 0===s?0:s,u="rtl"===document.documentElement.dir;if(!t)return[];var d=Array.isArray(t),f=Math.round((a-r)/c);return(d?t:Object(yt.a)(Array(f+1)).map((function(e,t){return{value:t}}))).map((function(e,t){var n=void 0!==e.value?e.value:l,o="mark-".concat(t),a=n*c+r<=l,i="".concat(n/f*100,"%");return function(e){for(var t=1;t0&&Object(c.createElement)(uc,{className:"components-font-size-picker__select",label:Object(S.__)("Preset size"),options:f,value:f.find((function(e){return e.key===h})),onChange:function(e){var t=e.selectedItem,n=t.style&&t.style.fontSize;i(Number(n))}}),!u&&!a&&Object(c.createElement)("div",{className:"components-font-size-picker__number-container"},Object(c.createElement)("label",{htmlFor:p},Object(S.__)("Custom")),Object(c.createElement)("input",{id:p,className:"components-font-size-picker__number",type:"number",min:1,onChange:function(e){i(Number(e.target.value))},"aria-label":Object(S.__)("Custom"),value:s||""})),Object(c.createElement)(jt.a,{className:"components-color-palette__clear",disabled:void 0===s,onClick:function(){i(void 0)},isSmall:!0,isSecondary:!0},Object(S.__)("Reset"))),u&&Object(c.createElement)($s,{className:"components-font-size-picker__custom-input",label:Object(S.__)("Custom Size"),value:s||"",initialPosition:t,onChange:function(e){i(e)},min:12,max:100,beforeIcon:ys.a,afterIcon:ys.a}))}var Zs=function(e){var t=e.accept,n=e.children,r=e.multiple,a=void 0!==r&&r,s=e.onChange,l=e.render,u=Object(i.a)(e,["accept","children","multiple","onChange","render"]),d=Object(c.useRef)(),f=function(){d.current.click()},h=l?l({openFileDialog:f}):Object(c.createElement)(jt.a,Object(o.a)({onClick:f},u),n);return Object(c.createElement)("div",{className:"components-form-file-upload"},h,Object(c.createElement)("input",{type:"file",ref:d,multiple:a,style:{display:"none"},accept:t,onChange:s}))};var Xs=function(e){var t=e.className,n=e.checked,r=e.id,a=e.onChange,l=void 0===a?s.noop:a,d=Object(i.a)(e,["className","checked","id","onChange"]),f=u()("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:l},d)),Object(c.createElement)("span",{className:"components-form-toggle__track"}),Object(c.createElement)("span",{className:"components-form-toggle__thumb"}))},Js=n(40),Qs=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 el(e){var t=e.value,n=e.status,r=e.title,o=e.displayTransform,a=e.isBorderless,i=void 0!==a&&a,l=e.disabled,d=void 0!==l&&l,f=e.onClickRemove,h=void 0===f?s.noop:f,p=e.onMouseEnter,b=e.onMouseLeave,v=e.messages,m=e.termPosition,y=e.termsCount,g=Object(E.useInstanceId)(el),O=u()("components-form-token-field__token",{"is-error":"error"===n,"is-success":"success"===n,"is-validating":"validating"===n,"is-borderless":i,"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:p,onMouseLeave:b,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)(P,{as:"span"},w),Object(c.createElement)("span",{"aria-hidden":"true"},j)),Object(c.createElement)(jt.a,{className:"components-form-token-field__remove-token",icon:Qs,onClick:!d&&function(){return h({value:t})},label:v.remove,"aria-describedby":"components-form-token-field__token-text-".concat(g)}))}function tl(){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}}var nl=function(e){Object(mt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(vt.a)(t);if(tl()){var r=Object(vt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(bt.a)(this,e)});function r(){var e;return Object(ft.a)(this,r),(e=n.apply(this,arguments)).onChange=e.onChange.bind(Object(ht.a)(e)),e.bindInput=e.bindInput.bind(Object(ht.a)(e)),e}return Object(pt.a)(r,[{key:"focus",value:function(){this.input.focus()}},{key:"hasFocus",value:function(){return this.input===document.activeElement}},{key:"bindInput",value:function(e){this.input=e}},{key:"onChange",value:function(e){this.props.onChange({value:e.target.value})}},{key:"render",value:function(){var e=this.props,t=e.value,n=e.isExpanded,r=e.instanceId,a=e.selectedSuggestionIndex,s=Object(i.a)(e,["value","isExpanded","instanceId","selectedSuggestionIndex"]),l=t.length+1;return Object(c.createElement)("input",Object(o.a)({ref:this.bindInput,id:"components-form-token-input-".concat(r),type:"text"},s,{value:t,onChange:this.onChange,size:l,className:"components-form-token-field__input",role:"combobox","aria-expanded":n,"aria-autocomplete":"list","aria-owns":n?"components-form-token-suggestions-".concat(r):void 0,"aria-activedescendant":-1!==a?"components-form-token-suggestions-".concat(r,"-").concat(a):void 0,"aria-describedby":"components-form-token-suggestions-howto-".concat(r)}))}}]),r}(c.Component),rl=n(123),ol=n.n(rl);function al(){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}}var il=function(e){Object(mt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(vt.a)(t);if(al()){var r=Object(vt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(bt.a)(this,e)});function r(){var e;return Object(ft.a)(this,r),(e=n.apply(this,arguments)).handleMouseDown=e.handleMouseDown.bind(Object(ht.a)(e)),e.bindList=e.bindList.bind(Object(ht.a)(e)),e}return Object(pt.a)(r,[{key:"componentDidUpdate",value:function(){var e=this;this.props.selectedIndex>-1&&this.props.scrollIntoView&&(this.scrollingIntoView=!0,ol()(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=u()("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: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))})))}}]),r}(c.Component);il.defaultProps={match:"",onHover:function(){},onSelect:function(){},suggestions:Object.freeze([])};var cl=Object(E.withSafeTimeout)(il);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 ll(){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}}var ul={incompleteTokenValue:"",inputOffsetFromEnd:0,isActive:!1,isExpanded:!1,selectedSuggestionIndex:-1,selectedSuggestionScroll:!1},dl=function(e){Object(mt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(vt.a)(t);if(ll()){var r=Object(vt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(bt.a)(this,e)});function r(){var e;return Object(ft.a)(this,r),(e=n.apply(this,arguments)).state=ul,e.onKeyDown=e.onKeyDown.bind(Object(ht.a)(e)),e.onKeyPress=e.onKeyPress.bind(Object(ht.a)(e)),e.onFocus=e.onFocus.bind(Object(ht.a)(e)),e.onBlur=e.onBlur.bind(Object(ht.a)(e)),e.deleteTokenBeforeInput=e.deleteTokenBeforeInput.bind(Object(ht.a)(e)),e.deleteTokenAfterInput=e.deleteTokenAfterInput.bind(Object(ht.a)(e)),e.addCurrentToken=e.addCurrentToken.bind(Object(ht.a)(e)),e.onContainerTouched=e.onContainerTouched.bind(Object(ht.a)(e)),e.renderToken=e.renderToken.bind(Object(ht.a)(e)),e.onTokenClickRemove=e.onTokenClickRemove.bind(Object(ht.a)(e)),e.onSuggestionHovered=e.onSuggestionHovered.bind(Object(ht.a)(e)),e.onSuggestionSelected=e.onSuggestionSelected.bind(Object(ht.a)(e)),e.onInputChange=e.onInputChange.bind(Object(ht.a)(e)),e.bindInput=e.bindInput.bind(Object(ht.a)(e)),e.bindTokensAndInput=e.bindTokensAndInput.bind(Object(ht.a)(e)),e.updateSuggestions=e.updateSuggestions.bind(Object(ht.a)(e)),e}return Object(pt.a)(r,[{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=!Lc()(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(ul)}},{key:"onKeyDown",value:function(e){var t=!1;switch(e.keyCode){case gt.BACKSPACE:t=this.handleDeleteKey(this.deleteTokenBeforeInput);break;case gt.ENTER:t=this.addCurrentToken();break;case gt.LEFT:t=this.handleLeftArrowKey();break;case gt.UP:t=this.handleUpArrowKey();break;case gt.RIGHT:t=this.handleRightArrowKey();break;case gt.DOWN:t=this.handleDownArrowKey();break;case gt.DELETE:t=this.handleDeleteKey(this.deleteTokenAfterInput);break;case gt.SPACE:this.props.tokenizeOnSpace&&(t=this.addCurrentToken());break;case gt.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();e0){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(Js.a)(e)?e.value:e}},{key:"getMatchingSuggestions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.incompleteTokenValue,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props.suggestions,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.props.value,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.props.maxSuggestions,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.props.saveTransform,a=o(e),i=[],c=[];return 0===a.length?t=Object(s.difference)(t,n):(a=a.toLocaleLowerCase(),Object(s.each)(t,(function(e){var t=e.toLocaleLowerCase().indexOf(a);-1===n.indexOf(e)&&(0===t?i.push(e):t>0&&c.push(e))})),t=i.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,a={isExpanded:n&&o};if(e&&(a.selectedSuggestionIndex=-1,a.selectedSuggestionScroll=!1),this.setState(a),n){var i=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.");i(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,a=t+1,i=n.length;return Object(c.createElement)(el,{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:i,termPosition:a})}},{key:"renderInput",value:function(){var e=this.props,t=e.autoCapitalize,n=e.autoComplete,r=e.maxLength,o=e.value,a={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||(a=function(e){for(var t=1;t=5&&(l.current.significantMoveHappened=!0)}xl(a,n,i)||o(Ml(a,i,n))},d=function e(){window&&window.removeEventListener&&l.current&&l.current.listenersActivated&&(window.removeEventListener("mousemove",u),window.removeEventListener("mouseup",e),s(),l.current.listenersActivated=!1)};return Object(c.useEffect)((function(){return function(){d()}}),[]),r.map((function(e,t){return e&&n!==e.positionValue&&Object(c.createElement)(hi,{key:t,onClose:s,renderToggle:function(n){var r=n.isOpen,f=n.onToggle;return Object(c.createElement)(Hl,{key:t,onClick:function(){l.current&&l.current.significantMoveHappened||(r?s():i(),f())},onMouseDown:function(){window&&window.addEventListener&&(l.current={gradientAST:a,position:t,significantMoveHappened:!1,listenersActivated:!0},i(),window.addEventListener("mousemove",u),window.addEventListener("mouseup",d))},isOpen:r,position:e.position,color:e.color,onChange:o,gradientAST:a,gradientIndex:t})},renderContent:function(n){var r=n.onClose;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(fi,{color:e.color,onChangeComplete:function(e){var n=e.rgb;o(Pl(a,t,n))}}),Object(c.createElement)(jt.a,{className:"components-custom-gradient-picker__remove-control-point",onClick:function(){o(function(e,t){return El({},e,{colorStops:e.colorStops.filter((function(e,n){return n!==t}))})}(a,t)),r()},isLink:!0},Object(S.__)("Remove Control Point")))},popoverProps:gl})}))}function Vl(e){var t=e.onChange,n=e.gradientAST,r=e.onOpenInserter,o=e.onCloseInserter,i=e.insertPosition,l=Object(c.useState)(!1),u=Object(a.a)(l,2),d=u[0],f=u[1];return Object(c.createElement)(hi,{className:"components-custom-gradient-picker__inserter",onClose:function(){o()},renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(c.createElement)(jt.a,{"aria-expanded":t,onClick:function(){t?o():(f(!1),r()),n()},className:"components-custom-gradient-picker__insert-point",icon:bl,style:{left:null!==i?"".concat(i,"%"):void 0}})},renderContent:function(){return Object(c.createElement)(fi,{onChangeComplete:function(e){var r,o=e.rgb;d?r=function(e,t,n){return Pl(e,Object(s.findIndex)(e.colorStops,(function(e){return e&&e.length&&"%"===e.length.type&&e.length.value===t.toString()})),n)}(n,i,o):(r=function(e,t,n){var r=Cl(n);return r.length={type:"%",value:t},El({},e,{colorStops:[].concat(Object(yt.a)(e.colorStops),[r])})}(n,i,o),f(!0)),t(r)}})},popoverProps:gl})}function Fl(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 Bl={id:"IDLE"};function Kl(e){var t=e.value,n=e.onChange,r=Rl(t),o=r.gradientAST,i=r.gradientValue,l=r.hasGradient,d=function(e){n(_l(e))},f=Object(c.useRef)(),h=function(e){return e?Object(s.map)(e.colorStops,(function(e){return e&&e.length&&"%"===e.length.type?{color:jl(e),position:wl(e.length),positionValue:parseInt(e.length.value)}:null})):[]}(o),p=Object(c.useReducer)(Fl,Bl),b=Object(a.a)(p,2),v=b[0],m=b[1],y=function(e){var t=zl(e.clientX,f.current,23);Object(s.some)(h,(function(e){var n=e.positionValue;return Math.abs(t-n)<9}))?"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:u()("components-custom-gradient-picker__gradient-bar",{"has-gradient":l}),onMouseEnter:y,onMouseMove:y,style:{background:"radial-gradient"===o.type?Tl(o):i},onMouseLeave:function(){m({type:"STOP_INSERTER_MOVE"})}},Object(c.createElement)("div",{className:"components-custom-gradient-picker__markers-container"},(g||O)&&Object(c.createElement)(Vl,{insertPosition:v.insertPosition,onChange:d,gradientAST:o,onOpenInserter:function(){m({type:"OPEN_INSERTER"})},onCloseInserter:function(){m({type:"CLOSE_INSERTER"})}}),Object(c.createElement)(Ll,{gradientPickerDomRef:f,ignoreMarkerPosition:O?v.insertPosition:void 0,markerPoints:h,onChange:d,gradientAST:o,onStartControlPointChange:function(){m({type:"START_CONTROL_CHANGE"})},onStopControlPointChange:function(){m({type:"STOP_CONTROL_CHANGE"})}})))}var Wl=n(132),Ul=n(87),Gl=function(e){return Object(c.createElement)("div",{className:e.className},e.children)};var $l=Object(c.forwardRef)((function(e,t){var n=e.containerClassName,r=e.className,a=e.extraProps,s=e.children,l=e.title,d=e.isActive,f=e.isDisabled,h=Object(i.a)(e,["containerClassName","className","extraProps","children","title","isActive","isDisabled"]);return Object(c.useContext)(Ul.a)?Object(c.createElement)(Wl.a,Object(o.a)({className:u()("components-toolbar-button",r)},a,h,{ref:t}),(function(e){return Object(c.createElement)(jt.a,Object(o.a)({label:l,isPressed:d,disabled:f},e),s)})):Object(c.createElement)(Gl,{className:n},Object(c.createElement)(jt.a,Object(o.a)({ref:t,icon:h.icon,label:l,shortcut:h.shortcut,"data-subscript":h.subscript,onClick:function(e){e.stopPropagation(),h.onClick&&h.onClick(e)},className:u()("components-toolbar__control",r),isPressed:d,disabled:f,"data-experimental-toolbar-item":!0},a,h),s))})),ql=function(e){var t=e.className,n=e.children,r=Object(i.a)(e,["className","children"]);return Object(c.createElement)("div",Object(o.a)({className:t},r),n)};function Yl(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 Zl(e){for(var t=1;t0&&0===n?"has-left-divider":null},e))}))})),r)};function Ql(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",{alternative:"the `pages` prop"})}),[t]),c.Children.count(t)&&(l=c.Children.map(t,(function(e){return{content:e}})));var b=h>0,v=h",{alternative:"the `pages` prop in "})}),[]),Object(c.createElement)("div",e)}var Cu=Object(c.forwardRef)((function(e,t){var n=e.labelPosition,r=e.size,a=e.tooltip,s=e.label,l=Object(i.a)(e,["labelPosition","size","tooltip","label"]);return Xc()("wp.components.IconButton",{alternative:"wp.components.Button"}),Object(c.createElement)(jt.a,Object(o.a)({},l,{ref:t,tooltipPosition:n,iconSize:r,showTooltip:void 0!==a?!!a:void 0,label:a||s}))}));var Mu=function e(t){var n=t.children,r=t.className,o=void 0===r?"":r,a=t.label,i=Object(E.useInstanceId)(e);if(!c.Children.count(n))return null;var s="components-menu-group-label-".concat(i),l=u()(o,"components-menu-group");return Object(c.createElement)("div",{className:l},a&&Object(c.createElement)("div",{className:"components-menu-group__label",id:s,"aria-hidden":"true"},a),Object(c.createElement)("div",{role:"group","aria-labelledby":a?s:null},n))},xu=n(165);var Du=Object(c.forwardRef)((function(e,t){var n=e.children,r=e.info,a=e.className,l=e.icon,d=e.shortcut,f=e.isSelected,h=e.role,p=void 0===h?"menuitem":h,b=Object(i.a)(e,["children","info","className","icon","shortcut","isSelected","role"]);return a=u()("components-menu-item__button",a),r&&(n=Object(c.createElement)("span",{className:"components-menu-item__info-wrapper"},n,Object(c.createElement)("span",{className:"components-menu-item__info"},r))),l&&!Object(s.isString)(l)&&(l=Object(c.cloneElement)(l,{className:"components-menu-items__item-icon"})),Object(c.createElement)(jt.a,Object(o.a)({ref:t,icon:l,"aria-checked":"menuitemcheckbox"===p||"menuitemradio"===p?f:void 0,role:p,className:a},b),n,Object(c.createElement)(xu.a,{className:"components-menu-item__shortcut",shortcut:d}))}));function Pu(e){var t=e.choices,n=void 0===t?[]:t,r=e.onHover,o=void 0===r?s.noop:r,a=e.onSelect,i=e.value;return n.map((function(e){var t=i===e.value;return Object(c.createElement)(Du,{key:e.value,role:"menuitemradio",icon:t&&Ra.a,isSelected:t,shortcut:e.shortcut,className:"components-menu-items-choice",onClick:function(){t||a(e.value)},onMouseEnter:function(){return o(e.value)},onMouseLeave:function(){return o(null)}},e.label)}))}var zu=n(160);var Tu=Object(c.forwardRef)((function(e,t){var n=e.eventToOffset,r=Object(i.a)(e,["eventToOffset"]);return Object(c.createElement)(ns,Object(o.a)({ref:t,stopNavigationEvents:!0,onlyBrowserTabstops:!0,eventToOffset:function(e){var t=e.keyCode,r=e.shiftKey;return gt.TAB===t?r?-1:1:n?n(e):void 0}},r))}));var Iu=function(e){var t=e.className,n=e.status,r=void 0===n?"info":n,o=e.children,a=e.spokenMessage,i=void 0===a?o:a,l=e.onRemove,d=void 0===l?s.noop:l,f=e.isDismissible,h=void 0===f||f,p=e.actions,b=void 0===p?[]:p,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(kt.speak)(n,t)}),[n,t])}(i,m);var g=u()(t,"components-notice","is-"+r,{"is-dismissible":h});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,b.map((function(e,t){var n=e.className,r=e.label,o=e.isPrimary,a=e.noDefaultClasses,i=void 0!==a&&a,s=e.onClick,l=e.url;return Object(c.createElement)(jt.a,{key:t,href:l,isPrimary:o,isSecondary:!i&&!l,isLink:!i&&!!l,onClick:l?void 0:s,className:u()("components-notice__action",n)},r)}))),h&&Object(c.createElement)(jt.a,{className:"components-notice__dismiss",icon:du.a,label:Object(S.__)("Dismiss this notice"),onClick:d,showTooltip:!1}))};var Ru=function(e){var t=e.notices,n=e.onRemove,r=void 0===n?s.noop:n,a=e.className,i=e.children;return a=u()("components-notice-list",a),Object(c.createElement)("div",{className:a},i,Object(yt.a)(t).reverse().map((function(e){return Object(c.createElement)(Iu,Object(o.a)({},Object(s.omit)(e,["content"]),{key:e.id,onRemove:(t=e.id,function(){return r(t)})}),e.content);var t})))};var Nu=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 Au=function(e){var t=e.header,n=e.className,r=e.children,o=u()(n,"components-panel");return Object(c.createElement)("div",{className:o},t&&Object(c.createElement)(Nu,{label:t}),r)},Hu=n(295);function Lu(){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}}var Vu=function(e){Object(mt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(vt.a)(t);if(Lu()){var r=Object(vt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(bt.a)(this,e)});function r(e){var t;return Object(ft.a)(this,r),(t=n.apply(this,arguments)).state={opened:void 0===e.initialOpen||e.initialOpen},t.toggle=t.toggle.bind(Object(ht.a)(t)),t}return Object(pt.a)(r,[{key:"toggle",value:function(e){e.preventDefault(),void 0===this.props.opened&&this.setState((function(e){return{opened:!e.opened}})),this.props.onToggle&&this.props.onToggle()}},{key:"render",value:function(){var e=this.props,t=e.title,n=e.children,r=e.opened,o=e.className,a=e.icon,i=e.forwardedRef,s=void 0===r?this.state.opened:r,l=u()("components-panel__body",o,{"is-opened":s});return Object(c.createElement)("div",{className:l,ref:i},!!t&&Object(c.createElement)("h2",{className:"components-panel__body-title"},Object(c.createElement)(jt.a,{className:"components-panel__body-toggle",onClick:this.toggle,"aria-expanded":s},Object(c.createElement)("span",{"aria-hidden":"true"},Object(c.createElement)(wc.a,{className:"components-panel__arrow",icon:s?Hu.a:Za.a})),t,a&&Object(c.createElement)(wc.a,{icon:a,className:"components-panel__icon",size:20}))),s&&n)}}]),r}(c.Component),Fu=function(e,t){return Object(c.createElement)(Vu,Object(o.a)({},e,{forwardedRef:t}))};Fu.displayName="PanelBody";var Bu=Object(c.forwardRef)(Fu);var Ku=function(e){var t=e.className,n=e.children,r=u()("components-panel__row",t);return Object(c.createElement)("div",{className:r},n)};var Wu=function(e){var t,n=e.icon,r=e.children,s=e.label,l=e.instructions,d=e.className,f=e.notices,h=e.preview,p=e.isColumnLayout,b=Object(i.a)(e,["icon","children","label","instructions","className","notices","preview","isColumnLayout"]),v=Object(E.useResizeObserver)(),m=Object(a.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=u()("components-placeholder",d,t),j=u()("components-placeholder__fieldset",{"is-column-layout":p});return Object(c.createElement)("div",Object(o.a)({},b,{className:O}),y,f,h&&Object(c.createElement)("div",{className:"components-placeholder__preview"},h),Object(c.createElement)("div",{className:"components-placeholder__label"},Object(c.createElement)(wc.a,{icon:n}),s),!!l&&Object(c.createElement)("div",{className:"components-placeholder__instructions"},l),Object(c.createElement)("div",{className:j},r))};function Uu(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 Gu(e){for(var t=1;t1&&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(yt.a)(e(t.children||[],n+1)))}))}(l))));return Object(c.createElement)(kc,Object(o.a)({label:t,options:d,onChange:r},{value:a},u))}function Yu(e){var t=e.label,n=e.noOptionLabel,r=e.categoriesList,a=e.selectedCategoryId,s=e.onChange,l=Object(i.a)(e,["label","noOptionLabel","categoriesList","selectedCategoryId","onChange"]),u=$u(r);return Object(c.createElement)(qu,Object(o.a)({label:t,noOptionLabel:n,onChange:s},{tree:u,selectedId:a},l))}function Zu(e){var t=e.label,n=e.noOptionLabel,r=e.authorList,a=e.selectedAuthorId,i=e.onChange,s=$u(r);return Object(c.createElement)(qu,Object(o.a)({label:t,noOptionLabel:n,onChange:i},{tree:s,selectedId:a}))}function Xu(e){var t=e.authorList,n=e.selectedAuthorId,r=e.categoriesList,o=e.selectedCategoryId,i=e.categorySuggestions,s=e.selectedCategories,l=e.numberOfItems,u=e.order,d=e.orderBy,f=e.maxItems,h=void 0===f?100:f,p=e.minItems,b=void 0===p?1:p,v=e.onCategoryChange,m=e.onAuthorChange,y=e.onNumberOfItemsChange,g=e.onOrderChange,O=e.onOrderByChange;return[g&&O&&Object(c.createElement)(kc,{key:"query-controls-order-select",label:Object(S.__)("Order by"),value:"".concat(d,"/").concat(u),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(a.a)(t,2),r=n[0],o=n[1];o!==u&&g(o),r!==d&&O(r)}}),r&&v&&Object(c.createElement)(Yu,{key:"query-controls-category-select",categoriesList:r,label:Object(S.__)("Category"),noOptionLabel:Object(S.__)("All"),selectedCategoryId:o}),i&&v&&Object(c.createElement)(fl,{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(i),onChange:v,maxSuggestions:20}),m&&Object(c.createElement)(Zu,{key:"query-controls-author-select",authorList:t,label:Object(S.__)("Author"),noOptionLabel:Object(S.__)("All"),selectedAuthorId:n,onChange:m}),y&&Object(c.createElement)($s,{key:"query-controls-range-control",label:Object(S.__)("Number of items"),value:l,onChange:y,min:b,max:h,required:!0})]}n(80);var Ju=n(46),Qu=n(122),ed=(n(106),n(62));function td(e){void 0===e&&(e={});var t=Object(ed.a)(e),n=t.state,r=t.loop,o=void 0===r||r,a=Object(h.a)(t,["state","loop"]),i=Object(v.useState)(n),c=i[0],s=i[1],l=Object(d.g)(Object(h.b)(Object(h.b)({},a),{},{loop:o}));return Object(h.b)(Object(h.b)({},l),{},{state:c,setState:s})}var nd=[].concat(d.g.__keys,["state","setState"]);function rd(e){return void 0!==e.checked?e.checked:void 0!==e.value&&e.state===e.value}function od(e,t){var n=Object(Qu.a)(e,"change");Object.defineProperties(n,{type:{value:"change"},target:{value:e},currentTarget:{value:e}}),null==t||t(n)}td.__keys=nd;var ad=Object(b.a)({name:"Radio",compose:C.b,useState:td,keys:["value","checked","unstable_checkOnFocus"],useOptions:function(e,t){var n,r=t.value,o=t.checked,a=e.unstable_clickOnEnter,i=void 0!==a&&a,c=e.unstable_checkOnFocus,s=void 0===c||c,l=Object(h.a)(e,["unstable_clickOnEnter","unstable_checkOnFocus"]);return Object(h.b)(Object(h.b)({checked:o,unstable_clickOnEnter:i,unstable_checkOnFocus:s},l),{},{value:null!=(n=l.value)?n:r})},useProps:function(e,t){var n=t.ref,r=t.onChange,o=t.onClick,a=Object(h.a)(t,["ref","onChange","onClick"]),i=Object(v.useRef)(null),c=Object(v.useState)(!0),s=c[0],l=c[1],u=rd(e),d=Object(Ju.a)(e.currentId===e.id),f=Object(Ju.a)(r),p=Object(Ju.a)(o);!function(e){var t=Object(v.useState)((function(){return rd(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=i.current;e&&("INPUT"===e.tagName&&"radio"===e.type||l(!1))}),[]);var b=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=p.current)||void 0===t||t.call(p,e),e.defaultPrevented||od(e.currentTarget,b)}),[b]);return Object(v.useEffect)((function(){var t=i.current;t&&e.unstable_moves&&d.current&&e.unstable_checkOnFocus&&od(t,b)}),[e.unstable_moves,e.unstable_checkOnFocus,b]),Object(h.b)({ref:Object(y.a)(i,n),role:s?void 0:"radio",type:s?"radio":void 0,value:s?e.value:void 0,"aria-checked":u,checked:u,onChange:b,onClick:m},a)}}),id=Object(p.a)({as:"input",memo:!0,useHook:ad}),cd=Object(c.createContext)({state:null,setState:function(){}});var sd=Object(c.forwardRef)((function(e,t){var n=e.children,r=e.value,a=Object(i.a)(e,["children","value"]),s=Object(c.useContext)(cd),l=s.state===r;return Object(c.createElement)(id,Object(o.a)({ref:t,as:jt.a,isPrimary:l,isSecondary:!l,value:r},s,a),n||r)})),ld=n(78),ud=Object(b.a)({name:"RadioGroup",compose:f.b,useState:td,useProps:function(e,t){return Object(h.b)({role:"radiogroup"},t)}}),dd=Object(p.a)({as:"div",useHook:ud,useCreateElement:function(e,t,n){return Object(ld.a)(e,t,n)}});function fd(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 hd=Object(c.forwardRef)((function(e,t){var n=e.accessibilityLabel,r=e.checked,a=e.defaultChecked,s=e.disabled,l=e.onChange,u=Object(i.a)(e,["accessibilityLabel","checked","defaultChecked","disabled","onChange"]),d=td({state:a,baseId:u.id}),f=function(e){for(var t=1;t0&&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})})))),a=this.iframe.current.contentWindow.document;a.open(),a.write(""+Object(c.renderToString)(o)),a.close()}}}},{key:"render",value:function(){var e=this.props,t=e.title,n=e.onFocus;return Object(c.createElement)(ms,{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:""}}}]),r}(c.Component),tf=ef=Object(E.withGlobalEvents)({message:"checkMessageForResize"})(ef),nf=n(161),rf=n(24),of=n.n(rf),af=n(50),cf=n(113);var sf=function(e){var t=e.notices,n=e.className,r=e.children,i=e.onRemove,l=void 0===i?s.noop:i,d=Object(E.useReducedMotion)(),f=Object(c.useState)((function(){return new WeakMap})),h=Object(a.a)(f,1)[0],p=Object(cf.useTransition)(t,(function(e){return e.id}),{from:{opacity:0,height:0},enter:function(e){return function(){var t=Object(af.a)(of.a.mark((function t(n){return of.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n({opacity:1,height:h.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(af.a)(of.a.mark((function e(t){return of.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=u()("components-snackbar-list",n);var b=function(e){return function(){return l(e.id)}};return Object(c.createElement)("div",{className:n},r,p.map((function(e){var t=e.item,n=e.key,r=e.props;return Object(c.createElement)(cf.animated.div,{key:n,style:r},Object(c.createElement)("div",{className:"components-snackbar-list__notice-container",ref:function(e){return e&&h.set(t,e)}},Object(c.createElement)(nf.a,Object(o.a)({},Object(s.omit)(t,["content"]),{onRemove:b(t)}),t.content)))})))};function lf(){return Object(c.createElement)("span",{className:"components-spinner"})}var uf=function(e){var t=e.tabId,n=e.onClick,r=e.children,a=e.selected,s=Object(i.a)(e,["tabId","onClick","children","selected"]);return Object(c.createElement)(jt.a,Object(o.a)({role:"tab",tabIndex:a?null:-1,"aria-selected":a,id:t,onClick:n},s),r)};function df(e){var t,n=e.className,r=e.children,o=e.tabs,i=e.initialTabName,l=e.orientation,d=void 0===l?"horizontal":l,f=e.activeClass,h=void 0===f?"is-active":f,p=e.onSelect,b=void 0===p?s.noop:p,v=Object(E.useInstanceId)(df,"tab-panel"),m=Object(c.useState)(null),y=Object(a.a)(m,2),g=y[0],O=y[1],j=function(e){O(e),b(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(i||(o.length>0?o[0].name:null))}),[o]),Object(c.createElement)("div",{className:n},Object(c.createElement)(rs,{role:"tablist",orientation:d,onNavigate:function(e,t){t.click()},className:"components-tab-panel__tabs"},o.map((function(e){return Object(c.createElement)(uf,{className:u()("components-tab-panel__tabs-item",e.className,Object(x.a)({},h,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)))}function ff(e){var t=e.label,n=e.hideLabelFromVision,r=e.value,a=e.help,s=e.onChange,l=e.rows,u=void 0===l?4:l,d=e.className,f=Object(i.a)(e,["label","hideLabelFromVision","value","help","onChange","rows","className"]),h=Object(E.useInstanceId)(ff),p="inspector-textarea-control-".concat(h);return Object(c.createElement)(lt,{label:t,hideLabelFromVision:n,id:p,help:a,className:d},Object(c.createElement)("textarea",Object(o.a)({className:"components-textarea-control__input",id:p,rows:u,onChange:function(e){return s(e.target.value)},"aria-describedby":a?p+"__help":void 0,value:r},f)))}var hf=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 a=new RegExp("(".concat(Object(s.escapeRegExp)(o),")"),"gi");return Object(c.createInterpolateElement)(n.replace(a,"$&"),{mark:Object(c.createElement)("mark",null)})};var pf=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 bf(e){var t=e.label,n=e.checked,r=e.help,o=e.className,a=e.onChange;var i,l,d=Object(E.useInstanceId)(bf),f="inspector-toggle-control-".concat(d);return r&&(i=f+"__help",l=Object(s.isFunction)(r)?r(n):r),Object(c.createElement)(lt,{id:f,help:l,className:u()("components-toggle-control",o)},Object(c.createElement)(Xs,{id:f,checked:n,onChange:function(e){a(e.target.checked)},"aria-describedby":i}),Object(c.createElement)("label",{htmlFor:f,className:"components-toggle-control__label"},t))}var vf=n(166),mf=Object(b.a)({name:"Toolbar",compose:f.b,useState:vf.a,useProps:function(e,t){return Object(h.b)({role:"toolbar","aria-orientation":e.orientation},t)}}),yf=Object(p.a)({as:"div",useHook:mf,useCreateElement:function(e,t,n){return Object(ld.a)(e,t,n)}});var gf=Object(c.forwardRef)((function(e,t){var n=e.accessibilityLabel,r=Object(i.a)(e,["accessibilityLabel"]),a=Object(vf.a)({loop:!0,baseId:r.id,rtl:Xe()});return Object(c.createElement)(Ul.a.Provider,{value:a},Object(c.createElement)(yf,Object(o.a)({ref:t,"aria-label":n},a,r)))}));var Of=Object(c.forwardRef)((function(e,t){var n=e.className,r=e.__experimentalAccessibilityLabel,a=Object(i.a)(e,["className","__experimentalAccessibilityLabel"]);return r?Object(c.createElement)(gf,Object(o.a)({className:u()("components-accessible-toolbar",n),accessibilityLabel:r,ref:t},a)):Object(c.createElement)(Jl,Object(o.a)({},a,{className:n}))})),jf=Object(c.createContext)(),wf=jf.Provider;function kf(e){var t=e.children,n=Object(c.useState)(),r=Object(a.a)(n,2),o=r[0],i=r[1],s=Object(c.useMemo)((function(){return{lastFocusedElement:o,setLastFocusedElement:i}}),[o]);return Object(c.createElement)(wf,{value:s},t)}function _f(e){var t=Ec.focus.focusable.find(e);if(t&&t.length)return t.filter((function(t){return t.closest('[role="row"]')===e}))}function Sf(e){var t=e.children,n=Object(i.a)(e,["children"]),r=Object(c.useCallback)((function(e){var t=e.keyCode,n=e.metaKey,r=e.ctrlKey,o=e.altKey,a=e.shiftKey;if(!(n||r||o||a)&&Object(s.includes)([gt.UP,gt.DOWN,gt.LEFT,gt.RIGHT],t)){e.stopPropagation();var i=document.activeElement,c=e.currentTarget;if(c.contains(i)){var l=i.closest('[role="row"]'),u=_f(l),d=u.indexOf(i);if(Object(s.includes)([gt.LEFT,gt.RIGHT],t)){var f;if((f=t===gt.LEFT?Math.max(0,d-1):Math.min(d+1,u.length-1))===d)return void e.preventDefault();u[f].focus(),e.preventDefault()}else if(Object(s.includes)([gt.UP,gt.DOWN],t)){var h,p=Array.from(c.querySelectorAll('[role="row"]')),b=p.indexOf(l);if((h=t===gt.UP?Math.max(0,b-1):Math.min(b+1,p.length-1))===b)return void e.preventDefault();var v=_f(p[h]);if(!v||!v.length)return void e.preventDefault();v[Math.min(d,v.length-1)].focus(),e.preventDefault()}}}}),[]);return Object(c.createElement)(kf,null,Object(c.createElement)("table",Object(o.a)({},n,{role:"treegrid",onKeyDown:r}),Object(c.createElement)("tbody",null,t)))}var Ef=Object(c.forwardRef)((function(e,t){var n=e.children,r=e.level,a=e.positionInSet,s=e.setSize,l=e.isExpanded,u=Object(i.a)(e,["children","level","positionInSet","setSize","isExpanded"]);return Object(c.createElement)("tr",Object(o.a)({},u,{ref:t,role:"row","aria-level":r,"aria-posinset":a,"aria-setsize":s,"aria-expanded":l}),n)}));function Cf(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 Mf=Object(c.forwardRef)((function(e,t){var n,r=e.children,o=e.as,a=Object(i.a)(e,["children","as"]),s=Object(c.useRef)(),l=t||s,u=Object(c.useContext)(jf),d=u.lastFocusedElement,f=u.setLastFocusedElement;d&&(n=d===l.current?0:-1);var h=function(e){for(var t=1;t0&&Object(c.createElement)(Ru,{className:"components-with-notices-ui",notices:this.state.noticeList,onRemove:this.removeNotice})},this.props))}}]),a}(c.Component)}))},,,,,,,,,,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,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&c.return&&c.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n0&&this.setState({visibleDays:(0,a.default)({},k,P)})}},{key:"componentWillUpdate",value:function(){this.today=(0,u.default)()}},{key:"onDayClick",value:function(e,t){if(t&&t.preventDefault(),!this.isBlocked(e)){var n=this.props,r=n.onDateChange,o=n.keepOpenOnDateSelect,a=n.onFocusChange,i=n.onClose;r(e),o||(a({focused:!1}),i({date:e}))}}},{key:"onDayMouseEnter",value:function(e){if(!this.isTouchDevice){var t=this.state,n=t.hoverDate,r=t.visibleDays,o=this.deleteModifier({},n,"hovered");o=this.addModifier(o,e,"hovered"),this.setState({hoverDate:e,visibleDays:(0,a.default)({},r,o)})}}},{key:"onDayMouseLeave",value:function(){var e=this.state,t=e.hoverDate,n=e.visibleDays;if(!this.isTouchDevice&&t){var r=this.deleteModifier({},t,"hovered");this.setState({hoverDate:null,visibleDays:(0,a.default)({},n,r)})}}},{key:"onPrevMonthClick",value:function(){var e=this.props,t=e.onPrevMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,i=o.currentMonth,c=o.visibleDays,s={};Object.keys(c).sort().slice(0,n+1).forEach((function(e){s[e]=c[e]}));var l=i.clone().subtract(1,"month"),u=(0,m.default)(l,1,r);this.setState({currentMonth:l,visibleDays:(0,a.default)({},s,this.getModifiers(u))},(function(){t(l.clone())}))}},{key:"onNextMonthClick",value:function(){var e=this.props,t=e.onNextMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,i=o.currentMonth,c=o.visibleDays,s={};Object.keys(c).sort().slice(1).forEach((function(e){s[e]=c[e]}));var l=i.clone().add(n,"month"),u=(0,m.default)(l,1,r),d=i.clone().add(1,"month");this.setState({currentMonth:d,visibleDays:(0,a.default)({},s,this.getModifiers(u))},(function(){t(d.clone())}))}},{key:"onMonthChange",value:function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===_.VERTICAL_SCROLLABLE,a=(0,m.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(a)})}},{key:"onYearChange",value:function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===_.VERTICAL_SCROLLABLE,a=(0,m.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(a)})}},{key:"getFirstFocusableDay",value:function(e){var t=this,n=this.props,o=n.date,a=n.numberOfMonths,i=e.clone().startOf("month");if(o&&(i=o.clone()),this.isBlocked(i)){for(var c=[],s=e.clone().add(a-1,"months").endOf("month"),l=i.clone();!(0,v.default)(l,s);)l=l.clone().add(1,"day"),c.push(l);var u=c.filter((function(e){return!t.isBlocked(e)&&(0,v.default)(e,i)}));if(u.length>0){var d=r(u,1);i=d[0]}}return i}},{key:"getModifiers",value:function(e){var t=this,n={};return Object.keys(e).forEach((function(r){n[r]={},e[r].forEach((function(e){n[r][(0,g.default)(e)]=t.getModifiersForDay(e)}))})),n}},{key:"getModifiersForDay",value:function(e){var t=this;return new Set(Object.keys(this.modifiers).filter((function(n){return t.modifiers[n](e)})))}},{key:"getStateForNewMonth",value:function(e){var t=this,n=e.initialVisibleMonth,r=e.date,o=e.numberOfMonths,a=e.enableOutsideDays,i=(n||(r?function(){return r}:function(){return t.today}))();return{currentMonth:i,visibleDays:this.getModifiers((0,m.default)(i,o,a))}}},{key:"addModifier",value:function(e,t,n){var r=this.props,o=r.numberOfMonths,i=r.enableOutsideDays,c=r.orientation,s=this.state,l=s.currentMonth,u=s.visibleDays,d=l,f=o;if(c===_.VERTICAL_SCROLLABLE?f=Object.keys(u).length:(d=d.clone().subtract(1,"month"),f+=2),!t||!(0,y.default)(t,d,f,i))return e;var h=(0,g.default)(t),p=(0,a.default)({},e);if(i)p=Object.keys(u).filter((function(e){return Object.keys(u[e]).indexOf(h)>-1})).reduce((function(t,r){var o=e[r]||u[r],i=new Set(o[h]);return i.add(n),(0,a.default)({},t,C({},r,(0,a.default)({},o,C({},h,i))))}),p);else{var b=(0,O.default)(t),v=e[b]||u[b],m=new Set(v[h]);m.add(n),p=(0,a.default)({},p,C({},b,(0,a.default)({},v,C({},h,m))))}return p}},{key:"deleteModifier",value:function(e,t,n){var r=this.props,o=r.numberOfMonths,i=r.enableOutsideDays,c=r.orientation,s=this.state,l=s.currentMonth,u=s.visibleDays,d=l,f=o;if(c===_.VERTICAL_SCROLLABLE?f=Object.keys(u).length:(d=d.clone().subtract(1,"month"),f+=2),!t||!(0,y.default)(t,d,f,i))return e;var h=(0,g.default)(t),p=(0,a.default)({},e);if(i)p=Object.keys(u).filter((function(e){return Object.keys(u[e]).indexOf(h)>-1})).reduce((function(t,r){var o=e[r]||u[r],i=new Set(o[h]);return i.delete(n),(0,a.default)({},t,C({},r,(0,a.default)({},o,C({},h,i))))}),p);else{var b=(0,O.default)(t),v=e[b]||u[b],m=new Set(v[h]);m.delete(n),p=(0,a.default)({},p,C({},b,(0,a.default)({},v,C({},h,m))))}return p}},{key:"isBlocked",value:function(e){var t=this.props,n=t.isDayBlocked,r=t.isOutsideRange;return n(e)||r(e)}},{key:"isHovered",value:function(e){var t=(this.state||{}).hoverDate;return(0,b.default)(e,t)}},{key:"isSelected",value:function(e){var t=this.props.date;return(0,b.default)(e,t)}},{key:"isToday",value:function(e){return(0,b.default)(e,this.today)}},{key:"isFirstDayOfWeek",value:function(e){var t=this.props.firstDayOfWeek;return e.day()===(t||u.default.localeData().firstDayOfWeek())}},{key:"isLastDayOfWeek",value:function(e){var t=this.props.firstDayOfWeek;return e.day()===((t||u.default.localeData().firstDayOfWeek())+6)%7}},{key:"render",value:function(){var e=this.props,t=e.numberOfMonths,n=e.orientation,r=e.monthFormat,o=e.renderMonthText,a=e.navPrev,c=e.navNext,s=e.onOutsideClick,l=e.withPortal,u=e.focused,d=e.enableOutsideDays,f=e.hideKeyboardShortcutsPanel,h=e.daySize,p=e.firstDayOfWeek,b=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,C=e.weekDayFormat,M=e.verticalHeight,x=e.noBorder,D=e.transitionDuration,P=e.verticalBorderSpacing,z=e.horizontalMonthPadding,T=this.state,I=T.currentMonth,R=T.visibleDays;return i.default.createElement(S.default,{orientation:n,enableOutsideDays:d,modifiers:R,numberOfMonths:t,onDayClick:this.onDayClick,onDayMouseEnter:this.onDayMouseEnter,onDayMouseLeave:this.onDayMouseLeave,onPrevMonthClick:this.onPrevMonthClick,onNextMonthClick:this.onNextMonthClick,onMonthChange:this.onMonthChange,onYearChange:this.onYearChange,monthFormat:r,withPortal:l,hidden:!u,hideKeyboardShortcutsPanel:f,initialVisibleMonth:function(){return I},firstDayOfWeek:p,onOutsideClick:s,navPrev:a,navNext:c,renderMonthText:o,renderCalendarDay:b,renderDayContents:v,renderCalendarInfo:m,renderMonthElement:y,calendarInfoPosition:g,isFocused:O,getFirstFocusableDay:this.getFirstFocusableDay,onBlur:_,phrases:w,daySize:h,isRTL:j,showKeyboardShortcuts:E,weekDayFormat:C,dayAriaLabelFormat:k,verticalHeight:M,noBorder:x,transitionDuration:D,verticalBorderSpacing:P,horizontalMonthPadding:z})}}]),t}(i.default.Component);t.default=D,D.propTypes=M,D.defaultProps=x},,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(0),o=n(6),a=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M12 8l-6 5.4 1 1.2 5-4.6 5 4.6 1-1.2z"}));t.a=a},function(e,t,n){"use strict";var r=n(0),o=n(6),a=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M17 9.4L12 14 7 9.4l-1 1.2 6 5.4 6-5.4z"}));t.a=a},,,,,,,,,function(e,t,n){"use strict"; +*/!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},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,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 a(e){for(var t=1;t=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=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";n.d(t,"a",(function(){return i}));var r=n(26);var o=n(35),a=n(29);function i(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(o.a)(e)||Object(a.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,n){"use strict";function r(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}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 r,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 p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);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";n.d(t,"a",(function(){return a}));var r=n(13),o=n(59);function a(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(74);function a(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 c=n(56);function s(e){var t,n,o,s=(o=e.compose,Array.isArray(o)?o:void 0!==o?[o]:[]),l=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=a(o);return c?Object(i.a)(Object(i.a)({},t),c(t,n)):t}(e.name,t,n)),e.compose)for(var o,c=Object(i.c)(s);!(o=c()).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=l(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=a(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 c,u=Object(i.c)(s);!(c=u()).done;){n=(0,c.value)(t,n,!0)}var d={},f=n||{};for(var h in f)void 0!==f[h]&&(d[h]=f[h]);return d};u.__useOptions=l;var d=s.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=s[0])||void 0===n?void 0:n.unstable_propsAreEqual)||c.a,u}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(13),o=n(55),a=n(78);function i(e,t){for(var n={},r={},o=0,a=Object.keys(e);o=0?n[i]=e[i]:r[i]=e[i]}return[n,r]}var c=n(56);function s(e){var t,n=e.as,s=e.useHook,l=e.memo,u=e.propsAreEqual,d=void 0===u?null==s?void 0:s.unstable_propsAreEqual:u,f=e.keys,h=void 0===f?(null==s?void 0:s.__keys)||[]:f,p=e.useCreateElement,b=void 0===p?a.a:p,v=function(e,t){var r=e.as,a=void 0===r?n:r,c=Object(o.b)(e,["as"]);if(s){var l,u=i(c,h),d=u[0],f=u[1],p=s(d,Object(o.a)({ref:t},f)),v=p.wrapElement,m=Object(o.b)(p,["wrapElement"]),y=(null===(l=a.render)||void 0===l?void 0:l.__keys)||a.__keys,g=y&&i(c,y)[0],O=g?Object(o.a)(Object(o.a)({},m),g):m,j=b(a,O);return v?v(j):j}return b(a,Object(o.a)({ref:t},c))};return t=v,v=Object(r.forwardRef)(t),l&&(v=function(e,t){return Object(r.memo)(e,t)}(v,d)),v.__keys=h,v.unstable_propsAreEqual=d||c.a,v}},function(e,t,n){"use strict";function r(e,t,n,r,o,a,i){try{var c=e[a](i),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,a){var i=e.apply(t,n);function c(e){r(i,o,a,c,s,"next",e)}function s(e){r(i,o,a,c,s,"throw",e)}c(void 0)}))}}n.d(t,"a",(function(){return o}))},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 p})),n.d(t,"d",(function(){return h})),n.d(t,"e",(function(){return g})),n.d(t,"f",(function(){return l})),n.d(t,"g",(function(){return C}));var r=n(17),o=n(13),a=n(59),i=n(62),c=n(61),s=n(65);function l(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 f(e,t){return t?e.find((function(e){return!e.disabled&&e.id!==t})):e.find((function(e){return!e.disabled}))}function h(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])},a=Object(r.c)(e);!(t=a()).done;)o();return n}function b(e){for(var t,n=0,o=Object(r.c)(e);!(t=o()).done;){var a=t.value.length;a>n&&(n=a)}return n}function v(e){for(var t=p(e),n=b(t),o=[],a=0;a=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=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,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 a=0,i=n;a1&&"boolean"!=typeof t)throw new TypeError('"allowMissing" argument must be a boolean');for(var n=b(e),a=v("%"+(n.length>0?n[0]:"")+"%",t),i=1;i=n.length){var c=o(a,n[i]);if(!t&&!(n[i]in a))throw new r("base intrinsic for "+e+" exists, but the property is not available.");a=c?c.get||c.value:a[n[i]]}else a=a[n[i]];return a}},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 a}));var r=n(13);function o(e,t){void 0===t&&(t=null),e&&("function"==typeof e?e(t):e.current=t)}function a(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),a=n(68);function i(e){void 0===e&&(e={});var t=Object(o.a)(e).baseId,n=Object(r.useContext)(a.a),i=Object(r.useRef)(0),c=Object(r.useState)((function(){return t||n()}));return{baseId:c[0],unstable_setBaseId:c[1],unstable_idCountRef:i}}i.__keys=["baseId","unstable_setBaseId","unstable_idCountRef"]},function(e,t,n){var r;!function(o){var a=/^\s+/,i=/\s+$/,c=0,s=o.round,l=o.min,u=o.max,d=o.random;function f(e,t){if(t=t||{},(e=e||"")instanceof f)return e;if(!(this instanceof f))return new f(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,r=null,c=null,s=null,d=!1,f=!1;"string"==typeof e&&(e=function(e){e=e.replace(a,"").replace(i,"").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:R(t[1]),g:R(t[2]),b:R(t[3]),a:L(t[4]),format:n?"name":"hex8"};if(t=K.hex6.exec(e))return{r:R(t[1]),g:R(t[2]),b:R(t[3]),format:n?"name":"hex"};if(t=K.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:n?"name":"hex8"};if(t=K.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&&(W(e.r)&&W(e.g)&&W(e.b)?(h=e.r,p=e.g,b=e.b,t={r:255*T(h,255),g:255*T(p,255),b:255*T(b,255)},d=!0,f="%"===String(e.r).substr(-1)?"prgb":"rgb"):W(e.h)&&W(e.s)&&W(e.v)?(r=A(e.s),c=A(e.v),t=function(e,t,n){e=6*T(e,360),t=T(t,100),n=T(n,100);var r=o.floor(e),a=e-r,i=n*(1-t),c=n*(1-a*t),s=n*(1-(1-a)*t),l=r%6;return{r:255*[n,c,i,i,s,n][l],g:255*[s,n,n,c,i,i][l],b:255*[i,i,s,n,n,c][l]}}(e.h,r,c),d=!0,f="hsv"):W(e.h)&&W(e.s)&&W(e.l)&&(r=A(e.s),s=A(e.l),t=function(e,t,n){var r,o,a;function i(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=T(e,360),t=T(t,100),n=T(n,100),0===t)r=o=a=n;else{var c=n<.5?n*(1+t):n+t-n*t,s=2*n-c;r=i(s,c,e+1/3),o=i(s,c,e),a=i(s,c,e-1/3)}return{r:255*r,g:255*o,b:255*a}}(e.h,r,s),d=!0,f="hsl"),e.hasOwnProperty("a")&&(n=e.a));var h,p,b;return n=z(n),{ok:d,format:e.format||f,r:l(255,u(t.r,0)),g:l(255,u(t.g,0)),b:l(255,u(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=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 h(e,t,n){e=T(e,255),t=T(t,255),n=T(n,255);var r,o,a=u(e,t,n),i=l(e,t,n),c=(a+i)/2;if(a==i)r=o=0;else{var s=a-i;switch(o=c>.5?s/(2-a-i):s/(a+i),a){case e:r=(t-n)/s+(t>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(f(r));return a}function x(e,t){t=t||6;for(var n=f(e).toHsv(),r=n.h,o=n.s,a=n.v,i=[],c=1/t;t--;)i.push(f({h:r,s:o,v:a})),a=(a+c)%1;return i}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=z(e),this._roundA=s(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=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=h(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=h(this._r,this._g,this._b),t=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 b(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var a=[N(s(e).toString(16)),N(s(t).toString(16)),N(s(n).toString(16)),N(H(r))];if(o&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1))return a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0);return a.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r: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*T(this._r,255))+"%",g:s(100*T(this._g,255))+"%",b:s(100*T(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+s(100*T(this._r,255))+"%, "+s(100*T(this._g,255))+"%, "+s(100*T(this._b,255))+"%)":"rgba("+s(100*T(this._r,255))+"%, "+s(100*T(this._g,255))+"%, "+s(100*T(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(P[b(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(M,arguments)},complement:function(){return this._applyCombination(_,arguments)},monochromatic:function(){return this._applyCombination(x,arguments)},splitcomplement:function(){return this._applyCombination(C,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]:A(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(),a=n/100;return f({r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a})},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,a=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=a>=4.5;break;case"AAlarge":o=a>=3;break;case"AAAsmall":o=a>=7}return o},f.mostReadable=function(e,t,n){var r,o,a,i,c=null,s=0;o=(n=n||{}).includeFallbackColors,a=n.level,i=n.size;for(var l=0;ls&&(s=r,c=f(t[l]));return f.isReadable(e,c,{level:a,size:i})||!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"},P=f.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(D);function z(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function T(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=l(t,u(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function I(e){return l(1,u(0,e))}function R(e){return parseInt(e,16)}function N(e){return 1==e.length?"0"+e:""+e}function A(e){return e<=1&&(e=100*e+"%"),e}function H(e){return o.round(255*parseFloat(e)).toString(16)}function L(e){return R(e)/255}var V,F,B,K=(F="[\\s|\\(]+("+(V="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",B="[\\s|\\(]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",{CSS_UNIT:new RegExp(V),rgb:new RegExp("rgb"+F),rgba:new RegExp("rgba"+B),hsl:new RegExp("hsl"+F),hsla:new RegExp("hsla"+B),hsv:new RegExp("hsv"+F),hsva:new RegExp("hsva"+B),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function W(e){return!!K.CSS_UNIT.exec(e)}e.exports?e.exports=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(17),o=n(49),a=n(48),i=n(56),c=Object(a.a)({name:"Box",keys:["unstable_system"],propsAreEqual:function(e,t){var n=e.unstable_system,o=Object(r.a)(e,["unstable_system"]),a=t.unstable_system,c=Object(r.a)(t,["unstable_system"]);return!(n!==a&&!Object(i.a)(n,a))&&Object(i.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 u})),n.d(t,"b",(function(){return s}));var a=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 c(e){return r(e,i)&&function(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0}(e)}function s(e){for(;e&&!c(e);)e=o(e,i);return e}function l(e){return Object(a.a)(e)===e}function u(e,t){var n=void 0===t?{}:t,r=n.isActive,o=void 0===r?l:r,a=n.preventScroll;return o(e)?-1:(e.focus({preventScroll:a}),o(e)?-1:requestAnimationFrame((function(){e.focus({preventScroll:a})})))}},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(17),o=n(49),a=n(48),i=n(67),c=n(13),s=n(63),l=n(70),u=(n(80),n(46)),d=n(59),f=n(69),h=n(72),p=n(57),b=n(71);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(a.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,a=t.onClick,i=t.onMouseDown,f=t.style,v=Object(r.a)(t,["ref","tabIndex","onClick","onMouseDown","style"]),g=Object(c.useRef)(null),O=Object(u.a)(a),j=Object(u.a)(i),w=e.disabled&&!e.focusable,k=Object(c.useState)(!0),_=k[0],S=k[1],E=_?o:o||0,C=e.disabled?Object(r.b)({pointerEvents:"none"},f):f,M=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(h.a)(e)&&Object(l.a)(t)){var r=Object(p.a)(t);if(r){var o="BODY"===r.tagName,a=Object(b.b)(t.parentElement);if(r===a||o&&!a)n(t);else if(a){a.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 x=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==M||M(t)}),[e.disabled,M]);return Object(r.b)({ref:Object(s.a)(g,n),style:C,tabIndex:w?void 0:E,disabled:!(!w||!_)||void 0,"aria-disabled":!!e.disabled||void 0,onClick:x,onMouseDown:D},v)}});Object(o.a)({as:"div",useHook:g})},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 i}));var r=n(13),o=n(74),a=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(a.b)(t,["children"]))}return Object(r.createElement)(e,t,n)}},,function(e,t,n){"use strict";n(106),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,a=t.onKeyDown,i=t.shouldKeyDown,c=void 0===i?function(){return!0}:i,s=t.preventDefault,l=void 0===s||s;return function(e){if(n){var t,i="function"==typeof n?n(e):n,s="function"==typeof l?l(e):l,u="function"==typeof o?o(e):o;if(e.key in i){var d=i[e.key];if("function"==typeof d&&c(e))return s&&e.preventDefault(),u&&e.stopPropagation(),r&&r(e),void d(e)}if(a&&"current"in a)null===(t=a.current)||void 0===t||t.call(a,e);else null==a||a(e)}}}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(17),o=n(49),a=n(48),i=n(13),c=n(70),s=(n(80),n(46)),l=n(53),u=n(73);var d=Object(a.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,a=void 0===o||o,i=Object(r.a)(e,["unstable_clickOnEnter","unstable_clickOnSpace"]);return Object(r.b)({unstable_clickOnEnter:n,unstable_clickOnSpace:a},i)},useProps:function(e,t){var n=t.onKeyDown,o=t.onKeyUp,a=Object(r.a)(t,["onKeyDown","onKeyUp"]),u=Object(i.useState)(!1),d=u[0],f=u[1],h=Object(s.a)(n),p=Object(s.a)(o),b=Object(i.useCallback)((function(t){var n;if(null===(n=h.current)||void 0===n||n.call(h,t),!t.defaultPrevented&&!e.disabled&&!t.metaKey&&Object(l.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(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&&(f(!1),t.currentTarget.click())}}),[e.disabled,e.unstable_clickOnSpace,d]);return Object(r.b)({"data-active":d||void 0,onKeyDown:b,onKeyUp:v},a)}});Object(o.a)({as:"button",memo:!0,useHook:d})},function(e,t,n){e.exports=n(357)},function(e,t,n){"use strict";var r=n(20),o=n(19),a=n(23),i=n(16),c=n(22),s=n(0),l=n(2),u=n(112),d=n(165);function f(){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}}var h=function(e){Object(c.a)(h,e);var t,n=(t=h,function(){var e,n=Object(i.a)(t);if(f()){var r=Object(i.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(a.a)(this,e)});function h(){var e;return Object(r.a)(this,h),(e=n.apply(this,arguments)).delayedSetIsOver=Object(l.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)(h,[{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(l.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 a=s.Children.only(t),i=this.state.isOver;return Object(s.cloneElement)(a,{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)(a.props.children,i&&Object(s.createElement)(u.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})))})}}]),h}(s.Component);t.a=h},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(5),o=n(8),a=n(15),i=n(0),c=n(6),s=n(148);function l(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 u(e){for(var t=1;t2?arguments[2]:{},a=r(t);o&&(a=i.call(a,Object.getOwnPropertySymbols(t)));for(var c=0;c1&&void 0!==arguments[1]?arguments[1]:{},n=t.stylesPropName,c=void 0===n?"styles":n,u=t.themePropName,f=void 0===u?"theme":u,m=t.cssPropName,w=void 0===m?"css":m,k=t.flushBefore,_=void 0!==k&&k,S=t.pureComponent,E=void 0!==S&&S,C=void 0,M=void 0,x=void 0,D=void 0,P=g(E);function z(e){return e===l.DIRECTIONS.LTR?d.default.resolveLTR:d.default.resolveRTL}function T(e){return e===l.DIRECTIONS.LTR?x:D}function I(t,n){var r=T(t),o=t===l.DIRECTIONS.LTR?C:M,a=d.default.get();return o&&r===a||(t===l.DIRECTIONS.RTL?(M=e?d.default.createRTL(e):y,D=a,o=M):(C=e?d.default.createLTR(e):y,x=a,o=C)),o}function R(e,t){return{resolveMethod:z(e),styleDef:I(e)}}return function(e){var t=e.displayName||e.name||"Component",n=function(t){function n(e,t){h(this,n);var r=p(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t)),o=r.context[l.CHANNEL]?r.context[l.CHANNEL].getState():j;return r.state=R(o),r}return b(n,t),o(n,[{key:"componentDidMount",value:function(){var e=this;this.context[l.CHANNEL]&&(this.channelUnsubscribe=this.context[l.CHANNEL].subscribe((function(t){e.setState(R(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,a=n.styleDef;return i.default.createElement(e,r({},this.props,(v(t={},f,d.default.get()),v(t,c,a()),v(t,w,o),t)))}}]),n}(P);return n.WrappedComponent=e,n.displayName="withStyles("+String(t)+")",n.contextTypes=O,e.propTypes&&(n.propTypes=(0,a.default)({},e.propTypes),delete n.propTypes[c],delete n.propTypes[f],delete n.propTypes[w]),e.defaultProps&&(n.defaultProps=(0,a.default)({},e.defaultProps)),(0,s.default)(n,e)}};var a=f(n(92)),i=f(n(13)),c=f(n(28)),s=f(n(371)),l=n(374),u=f(n(375)),d=f(n(223));function f(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(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 b(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(!i.default.PureComponent)throw new ReferenceError("withStyles() pureComponent option requires React 15.3.0 or later");return i.default.PureComponent}return i.default.Component}var O=v({},l.CHANNEL,u.default),j=l.DIRECTIONS.LTR},,function(e,t,n){"use strict";var r=n(8),o=n(20),a=n(19),i=n(12),c=n(23),s=n(16),l=n(22),u=n(0),d=n(2),f=n(9);function h(){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}}var p=["button","submit"];t.a=Object(f.createHigherOrderComponent)((function(e){return function(t){Object(l.a)(b,t);var n,f=(n=b,function(){var e,t=Object(s.a)(n);if(h()){var r=Object(s.a)(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return Object(c.a)(this,e)});function b(){var e;return Object(o.a)(this,b),(e=f.apply(this,arguments)).bindNode=e.bindNode.bind(Object(i.a)(e)),e.cancelBlurCheck=e.cancelBlurCheck.bind(Object(i.a)(e)),e.queueBlurCheck=e.queueBlurCheck.bind(Object(i.a)(e)),e.normalizeButtonFocus=e.normalizeButtonFocus.bind(Object(i.a)(e)),e}return Object(a.a)(b,[{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)(p,e.type)}return!1}(n)&&(this.preventBlurCheck=!0)}},{key:"render",value:function(){return Object(u.createElement)("div",{onFocus:this.cancelBlurCheck,onMouseDown:this.normalizeButtonFocus,onMouseUp:this.normalizeButtonFocus,onTouchStart:this.normalizeButtonFocus,onTouchEnd:this.normalizeButtonFocus,onBlur:this.queueBlurCheck},Object(u.createElement)(e,Object(r.a)({ref:this.bindNode},this.props)))}}]),b}(u.Component)}),"withFocusOutside")},function(e,t,n){"use strict";var r=n(8),o=n(14),a=n(15),i=n(0),c=n(11),s=n.n(c),l=n(30),u=n(21),d=n(37),f=n.n(d),h=n(9),p=n(153),b=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;t0?c/2:l)+(l+c/2>window.innerWidth?window.innerWidth-l:c/2)},d=e.left;"right"===r?d=e.right:"middle"!==a&&(d=l);var f=e.right;"left"===r?f=e.left:"middle"!==a&&(f=l);var h,p={popoverLeft:d,contentWidth:d-c>0?c:d},b={popoverLeft:f,contentWidth:f+c>window.innerWidth?window.innerWidth-f:c},v=n,m=null;if(!o)if("center"===n&&u.contentWidth===c)v="center";else if("left"===n&&p.contentWidth===c)v="left";else if("right"===n&&b.contentWidth===c)v="right";else{var y="left"===(v=p.contentWidth>b.contentWidth?"left":"right")?p.contentWidth:b.contentWidth;m=y!==c?y:null}if(h="center"===v?u.popoverLeft:"left"===v?p.popoverLeft:b.popoverLeft,i){var g=i.getBoundingClientRect();h=Math.min(h,g.right-c)}return{xAxis:v,popoverLeft:h,contentWidth:m}}function g(e,t,n,r,o,a,i){var c=t.height;if(o){var s=(Object(l.getScrollContainer)(a)||document.body).getBoundingClientRect().top+c-i;if(e.top<=s)return{yAxis:n,popoverTop:Math.min(e.bottom,s)}}var u=e.top+e.height/2;"bottom"===r?u=e.bottom:"top"===r&&(u=e.top);var d={popoverTop:u,contentHeight:(u-c/2>0?c/2:u)+(u+c/2>window.innerHeight?window.innerHeight-u:c/2)},f={popoverTop:e.top,contentHeight:e.top-10-c>0?c:e.top-10},h={popoverTop:e.bottom,contentHeight:e.bottom+10+c>window.innerHeight?window.innerHeight-10-e.bottom:c},p=n,b=null;if(!o)if("middle"===n&&d.contentHeight===c)p="middle";else if("top"===n&&f.contentHeight===c)p="top";else if("bottom"===n&&h.contentHeight===c)p="bottom";else{var v="top"===(p=f.contentHeight>h.contentHeight?"top":"bottom")?f.contentHeight:h.contentHeight;b=v!==c?v:null}return{yAxis:p,popoverTop:"middle"===p?d.popoverTop:"top"===p?f.popoverTop:h.popoverTop,contentHeight:b}}var O=n(130),j=n(129),w=n(20),k=n(19),_=n(23),S=n(16),E=n(22),C=n(111);function M(){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}}var x=function(e){Object(E.a)(r,e);var t,n=(t=r,function(){var e,n=Object(S.a)(t);if(M()){var r=Object(S.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(_.a)(this,e)});function r(){return Object(w.a)(this,r),n.apply(this,arguments)}return Object(k.a)(r,[{key:"handleFocusOutside",value:function(e){this.props.onFocusOutside(e)}},{key:"render",value:function(){return this.props.children}}]),r}(i.Component),D=Object(C.a)(x),P=n(34),z=n(160),T=n(131),I=n(158),R=n(121),N=n(159),A=Object(j.a)(Object(O.a)((function(e){return e.children})));function H(e,t){var n=window.getComputedStyle(t),r=n.paddingTop,o=n.paddingBottom,a=n.paddingLeft,i=n.paddingRight,c=r?parseInt(r,10):0,s=o?parseInt(o,10):0,l=a?parseInt(a,10):0,u=i?parseInt(i,10):0;return{x:e.left+l,y:e.top+c,width:e.width-l-u,height:e.height-c-s,left:e.left+l,right:e.right-u,top:e.top+c,bottom:e.bottom-s}}function L(e,t,n){n?e.getAttribute(t)!==n&&e.setAttribute(t,n):e.hasAttribute(t)&&e.removeAttribute(t)}function V(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";e.style[t]!==n&&(e.style[t]=n)}function F(e,t,n){n?e.classList.contains(t)||e.classList.add(t):e.classList.contains(t)&&e.classList.remove(t)}var B=function(e){var t=e.headerTitle,n=e.onClose,c=e.onKeyDown,d=e.children,b=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,C=e.shouldAnchorIncludePadding,M=e.anchorRect,x=e.getAnchorRect,B=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(a.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(i.useRef)(null),ee=Object(i.useRef)(null),te=Object(i.useRef)(),ne=Object(h.useViewportMatch)("medium","<"),re=Object(i.useState)(),oe=Object(o.a)(re,2),ae=oe[0],ie=oe[1],ce=Object(I.a)(Y),se=B&&ne,le=Object(h.useResizeObserver)(),ue=Object(o.a)(le,2),de=ue[0],fe=ue[1];O=se||O,Object(i.useLayoutEffect)((function(){if(se)return F(te.current,"is-without-arrow",O),F(te.current,"is-alternate",j),L(te.current,"data-x-axis"),L(te.current,"data-y-axis"),V(te.current,"top"),V(te.current,"left"),V(ee.current,"maxHeight"),void V(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(l.getRectangleFromRange)(r);if(r instanceof window.Element){var a=r.getBoundingClientRect();return o?a:H(a,r)}var i=r.top,c=r.bottom,s=i.getBoundingClientRect(),u=c.getBoundingClientRect(),d=new window.DOMRect(s.left,s.top,s.width,u.bottom-s.top);return o?d:H(d,r)}if(e.current){var f=e.current.parentNode,h=f.getBoundingClientRect();return o?h:H(h,f)}}(Q,M,x,E,C);if(e){var t,n,r=te.current,a=r.offsetParent,i=r.ownerDocument,c=0;if(a&&a!==i.body){var s=a.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 u=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"top",r=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0,c=arguments.length>6?arguments[6]:void 0,s=n.split(" "),l=Object(o.a)(s,3),u=l[0],d=l[1],f=void 0===d?"center":d,h=l[2],p=g(e,t,u,h,r,a,i),b=y(e,t,f,h,r,p.yAxis,c);return m({},b,{},p)}(e,fe.height?fe:ee.current.getBoundingClientRect(),k,$,te.current,c,t),d=u.popoverTop,f=u.popoverLeft,h=u.xAxis,p=u.yAxis,b=u.contentHeight,v=u.contentWidth;"number"==typeof d&&"number"==typeof f&&(V(te.current,"top",d+"px"),V(te.current,"left",f+"px")),F(te.current,"is-without-arrow",O||"center"===h&&"middle"===p),F(te.current,"is-alternate",j),L(te.current,"data-x-axis",h),L(te.current,"data-y-axis",p),V(ee.current,"maxHeight","number"==typeof b?b+"px":""),V(ee.current,"maxWidth","number"==typeof v?v+"px":"");ie(({left:"right",right:"left"}[h]||"center")+" "+({top:"bottom",bottom:"top"}[p]||"middle"))}}};e();var t,n,r=window.setInterval(e,500),a=function(){window.cancelAnimationFrame(t),t=window.requestAnimationFrame(e)};return window.addEventListener("click",a),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",a),window.cancelAnimationFrame(t),n&&n.disconnect()}}),[se,M,x,E,C,k,fe,$,Z,X]),function(e,t){Object(i.useEffect)((function(){var n=setTimeout((function(){if(e&&t.current)if("firstElement"!==e)"container"===e&&t.current.focus();else{var n=l.focus.tabbable.find(t.current)[0];n?n.focus():t.current.focus()}}),0);return function(){return clearTimeout(n)}}),[])}(S,ee);var he=function(e){e.keyCode===u.ESCAPE&&n&&(e.stopPropagation(),n()),c&&c(e)};var pe=Object(i.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(i.createElement)(N.a,{type:W&&ae?"appear":null,options:{origin:ae}},(function(e){var o=e.className;return Object(i.createElement)(T.a,Object(r.a)({className:s()("components-popover",b,o,{"is-expanded":se,"is-without-arrow":O,"is-alternate":j})},J,{onKeyDown:he,ref:te}),se&&Object(i.createElement)(z.a,null),se&&Object(i.createElement)("div",{className:"components-popover__header"},Object(i.createElement)("span",{className:"components-popover__header-title"},t),Object(i.createElement)(P.a,{className:"components-popover__close",icon:p.a,onClick:n})),Object(i.createElement)("div",{ref:ee,className:"components-popover__content",tabIndex:"-1"},Object(i.createElement)("div",{style:{position:"relative"}},de,d)))})));return S&&(pe=Object(i.createElement)(A,null,pe)),ce.ref&&(pe=Object(i.createElement)(R.a,{name:Y},pe)),E||M?pe:Object(i.createElement)("span",{ref:Q},pe)};B.Slot=function(e){var t=e.name,n=void 0===t?"Popover":t;return Object(i.createElement)(R.b,{bubblesVirtually:!0,name:n,className:"popover-slot"})};t.a=B},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(169)),a=r(n(170)),i=n(13),c=r(i),s=r(n(145)),l=r(n(171)),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 f(e,t){return u.und(e)||u.nul(e)?t:e}function h(e){return u.und(e)?[]:u.arr(e)?e:[e]}function p(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=n.length)break;a=n[o++]}else{if((o=n.next()).done)break;a=o.value}for(var i=a,c=!1,s=0;s=h.startTime+l.duration;else if(l.decay)v=p+g/(1-.998)*(1-Math.exp(-(1-.998)*(t-h.startTime))),(u=Math.abs(h.lastPosition-v)<.1)&&(b=v);else{d=void 0!==h.lastTime?h.lastTime:t,g=void 0!==h.lastVelocity?h.lastVelocity:l.initialVelocity,t>d+64&&(d=t);for(var O=Math.floor(t-d),j=0;jb:v=e);++n);return n-1}(e,a);return function(e,t,n,r,o,a,i,c,s){var l=s?s(e):e;if(ln){if("identity"===c)return l;"clamp"===c&&(l=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?l=-l:n===1/0?l-=t:l=(l-t)/(n-t);l=a(l),r===-1/0?l=-l:o===1/0?l+=r:l=l*(o-r)+r;return l}(e,a[t],a[t+1],o[t],o[t+1],s,i,c,r.map)}}var V=function(e){function t(n,r,o,a){var i;return(i=e.call(this)||this).calc=void 0,i.payload=n instanceof g&&!(n instanceof t)?n.getPayload():Array.isArray(n)?n:[n],i.calc=L(r,o,a),i}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=L(e,t,n)},n.interpolate=function(e,n,r){return new t(this,e,n,r)},t}(g);var F=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 V(this,e,t,n)},t}(y),B=function(e){function t(t){var n;return(n=e.call(this)||this).payload=t.map((function(e){return new F(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 V(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=b(e),n=t.delay,r=void 0===n?0:n,i=t.to,c=a(t,["delay","to"]);if(u.arr(i)||u.fun(i))this.queue.push(o({},c,{delay:r,to:i}));else if(i){var s={};Object.entries(i).forEach((function(e){var t,n=e[0],a=e[1],i=o({to:(t={},t[n]=a,t),delay:p(r,n)},c),l=s[i.delay]&&s[i.delay].to;s[i.delay]=o({},s[i.delay],i,{to:o({},l,i.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,a=e.to,i=void 0===a?{}:a;u.obj(r)&&(n.merged=o({},r,n.merged)),u.obj(i)&&(n.merged=o({},n.merged,i))}));var r=this.local=++this.guid,i=this.localQueue=this.queue;this.queue=[],i.forEach((function(t,o){var c=t.delay,s=a(t,["delay"]),l=function(t){o===i.length-1&&r===n.guid&&t&&(n.idle=!0,n.props.onRest&&n.props.onRest(n.merged)),e&&e()},d=u.arr(s.to)||u.fun(s.to);c?setTimeout((function(){r===n.guid&&(d?n.runAsync(s,l):n.diff(s).start(l))}),c):d?n.runAsync(s,l):n.diff(s).start(l)}))}else u.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,A.has(t)||A.add(t),N||(N=!0,_(P||H));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,A.has(t)&&A.delete(t)),this},t.runAsync=function(e,t){var n=this,r=(e.delay,a(e,["delay"])),i=this.local,c=Promise.resolve(void 0);if(u.arr(r.to))for(var s=function(e){var t=e,a=o({},r,b(r.to[t]));u.arr(a.config)&&(a.config=a.config[t]),c=c.then((function(){if(i===n.guid)return new Promise((function(e){return n.diff(a).start(e)}))}))},l=0;l=r.length)return"break";i=r[a++]}else{if((a=r.next()).done)return"break";i=a.value}var n=i.key,c=function(e){return e.key!==n};(u.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),a=0;for(r=o?r:r[Symbol.iterator]();;){var i;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;n1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function le(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,a=se(o,r,e+1/3),i=se(o,r,e),c=se(o,r,e-1/3);return Math.round(255*a)<<24|Math.round(255*i)<<16|Math.round(255*c)<<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 fe(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function he(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:X.hasOwnProperty(t)?X[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|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=ae.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|le(de(n[1]),he(n[2]),he(n[3])))>>>0:(n=re.exec(t))?(le(de(n[1]),he(n[2]),he(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 be=/[+\-]?(?: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={};T((function(e){return new Z(e)})),x("div"),E((function(e){var t=e.output.map((function(e){return e.replace(ve,pe)})).map((function(e){return e.replace(me,pe)})),n=t[0].match(be).map((function(){return[]}));t.forEach((function(e){e.match(be).forEach((function(e,t){return n[t].push(+e)}))}));var r=t[0].match(be).map((function(t,r){return L(o({},e,{output:n[r]}))}));return function(e){var n=0;return t[0].replace(be,(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,i=t.scrollLeft,c=a(t,["style","children","scrollTop","scrollLeft"]),s="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;for(var l in void 0!==o&&(e.scrollTop=o),void 0!==i&&(e.scrollLeft=i),void 0!==r&&(e.textContent=r),n)if(n.hasOwnProperty(l)){var u=0===l.indexOf("--"),d=Oe(l,n[l],u);"float"===l&&(l="cssFloat"),u?e.style.setProperty(l,d):e.style[l]=d}for(var f in c){var h=s?f:je[f]||(je[f]=f.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(h)&&e.setAttribute(h,c[f])}}),(function(e){return e}));var we,ke,_e=(we=function(e){return i.forwardRef((function(t,n){var r=d(),s=i.useRef(!0),l=i.useRef(null),f=i.useRef(null),h=i.useCallback((function(e){var t=l.current;l.current=new R(e,(function(){var e=!1;f.current&&(e=v.fn(f.current,l.current.getAnimatedValue())),f.current&&!1!==e||r()})),t&&t.detach()}),[]);i.useEffect((function(){return function(){s.current=!1,l.current&&l.current.detach()}}),[]),i.useImperativeHandle(n,(function(){return z(f,s,r)})),h(t);var p,b=l.current.getValue(),m=(b.scrollTop,b.scrollLeft,a(b,["scrollTop","scrollLeft"])),y=(p=e,!u.fun(p)||p.prototype instanceof c.Component?function(e){return f.current=function(e,t){return t&&(u.fun(t)?t(e):u.obj(t)&&(t.current=e)),e}(e,n)}:void 0);return c.createElement(e,o({},m,{ref:y}))}))},void 0===(ke=!1)&&(ke=!0),function(e){return(u.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=H,t.animated=Se,t.a=Se,t.interpolate=function(e,t,n){return e&&new V(e,t,n)},t.Globals=I,t.useSpring=function(e){var t=u.fun(e),n=U(1,t?e:[e]),r=n[0],o=n[1],a=n[2];return t?[r[0],o,a]:r},t.useTrail=function(e,t){var n=i.useRef(!1),r=u.fun(t),a=p(t),c=i.useRef(),s=U(e,(function(e,t){return 0===e&&(c.current=[]),c.current.push(t),o({},a,{config:p(a.config,e),attach:e>0&&function(){return c.current[e-1]}})})),l=s[0],d=s[1],f=s[2],h=i.useMemo((function(){return function(e){return d((function(t,n){e.reverse;var r=e.reverse?t+1:t-1,i=c.current[r];return o({},e,{config:p(e.config||a.config,t),attach:i&&function(){return i}})}))}}),[e,a.reverse]);return i.useEffect((function(){n.current&&!r&&h(t)})),i.useEffect((function(){n.current=!0}),[]),r?[l,h,f]:l},t.useTransition=function(e,t,n){var r=o({items:e,keys:t||function(e){return e}},n),c=q(r),s=c.lazy,l=void 0!==s&&s,u=(c.unique,c.reset),f=void 0!==u&&u,h=(c.enter,c.leave,c.update,c.onDestroyed),b=(c.keys,c.items,c.onFrame),v=c.onRest,m=c.onStart,y=c.ref,g=a(c,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),O=d(),j=i.useRef(!1),w=i.useRef({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!r.ref,instances:!j.current&&new Map,forceUpdate:O});return i.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,i=a(e,["first","prevProps"]),c=q(t),s=c.items,l=c.keys,u=c.initial,d=c.from,f=c.enter,h=c.leave,b=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({},i.current),E=[].concat(i.deleted),C=Object.keys(S),M=new Set(C),x=new Set(l),D=l.filter((function(e){return!M.has(e)})),P=i.transitions.filter((function(e){return!e.destroyed&&!x.has(e.originalKey)})).map((function(e){return e.originalKey})),z=l.filter((function(e){return M.has(e)})),T=-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=l.indexOf(e),o=s[r],a=n&&void 0!==u?"initial":"enter";S[e]={slot:a,originalKey:e,key:y?String(e):G++,item:o,trail:T+=m,config:p(g,o,a),from:p(n&&void 0!==u?u||{}:d,o),to:p(f,o)}}));break;case"leave":P.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:T+=m,config:p(g,n,"leave"),to:p(h,n)})),delete S[e]}));break;case"update":z.forEach((function(e){var t=l.indexOf(e),n=s[t];S[e]=o({},S[e],{item:n,slot:"update",trail:T+=m,config:p(g,n,"update"),to:p(b,n)})}))}}var I=l.map((function(e){return S[e]}));return E.forEach((function(e){var t,n=e.left,r=(e.right,a(e,["left","right"]));-1!==(t=I.findIndex((function(e){return e.originalKey===n})))&&(t+=1),t=Math.max(0,t),I=[].concat(I.slice(0,t),[r],I.slice(t))})),o({},i,{changed:D.length||P.length||z.length,first:n&&0===D.length,transitions:I,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,a=e.config,i=e.trail,c=e.key,s=e.item;w.current.instances.has(c)||w.current.instances.set(c,new W);var u=w.current.instances.get(c),d=o({},g,{to:r,from:n,config:a,ref:y,onRest:function(n){w.current.mounted&&(e.destroyed&&(y||l||Y(w,c),h&&h(s)),!Array.from(w.current.instances).some((function(e){return!e[1].idle}))&&(y||l)&&w.current.deleted.length>0&&Y(w),v&&v(s,t,n))},onStart:m&&function(){return m(s,t)},onFrame:b&&function(e){return b(s,t,e)},delay:i,reset:f&&"enter"===t});u.update(d),w.current.paused||u.start()})),i.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=i.useRef();i.useEffect((function(){u.equ(e,r.current)?e.forEach((function(e){var t=e.current;return t&&t.start()})):t?e.forEach((function(e,r){var a=e.current;if(a){var i=a.controllers;if(i.length){var c=n*t[r];i.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,a=null==(o=r)||"number"==typeof o||"boolean"==typeof o?r:n(r),i=t.get(a);return void 0===i&&(i=e.call(this,r),t.set(a,i)),i}function r(e,t,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),a=t.get(o);return void 0===a&&(a=e.apply(this,r),t.set(o,a)),a}function o(e,t,n,r,o){return n.bind(t,e,r,o)}function a(e,t){return o(e,this,1===e.length?n:r,t.cache.create(),t.serializer)}function i(){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:i;return(t&&t.strategy?t.strategy:a)(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){var n,r,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function c(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var s,l=[],u=!1,d=-1;function f(){u&&s&&(u=!1,s.length?l=s.concat(l):d=-1,l.length&&h())}function h(){if(!u){var e=c(f);u=!0;for(var t=l.length;t;){for(s=l,l=[];++d1)for(var n=1;n2?n-2:0),o=2;o0&&void 0!==arguments[0]?arguments[0]:{},t=e.htmlDocument,n=void 0===t?document:t,a=e.className,i=void 0===a?"lockscroll":a,u=0,d=0;function f(e){var t=n.scrollingElement||n.body;e&&(d=t.scrollTop);var r=e?"add":"remove";t.classList[r](i),n.documentElement.classList[r](i),e||(t.scrollTop=d)}function h(){0===u&&f(!0),++u}function p(){1===u&&f(!1),--u}return function(e){Object(c.a)(n,e);var t=l(n);function n(){return Object(r.a)(this,n),t.apply(this,arguments)}return Object(o.a)(n,[{key:"componentDidMount",value:function(){h()}},{key:"componentWillUnmount",value:function(){p()}},{key:"render",value:function(){return null}}]),n}(s.Component)}()},function(e,t,n){"use strict";(function(e){var r=n(0),o=n(2),a=n(11),i=n.n(a),c=n(54),s=n(1),l=(n(104),n(34));t.a=Object(r.forwardRef)((function(t,n){var a=t.className,u=t.children,d=t.spokenMessage,f=void 0===d?u:d,h=t.politeness,p=void 0===h?"polite":h,b=t.actions,v=void 0===b?[]:b,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,p),Object(r.useEffect)((function(){var e=setTimeout((function(){y()}),1e4);return function(){return clearTimeout(e)}}),[]);var g=i()(a,"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"},u,v.map((function(e,t){var n=e.label,o=e.onClick,a=e.url;return Object(r.createElement)(l.a,{key:t,href:a,isTertiary:!0,onClick:function(e){e.stopPropagation(),o&&o(e)},className:"components-snackbar__action"},n)}))))}))}).call(this,n(117))},,,,function(e,t,n){"use strict";var r=n(0),o=n(2);t.a=function(e){var t,n,a=e.shortcut,i=e.className;return a?(Object(o.isString)(a)&&(t=a),Object(o.isObject)(a)&&(t=a.display,n=a.ariaLabel),Object(r.createElement)("span",{className:i,"aria-label":n},t)):null}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(17),o=(n(13),n(62)),a=n(51);function i(e){void 0===e&&(e={});var t=Object(o.a)(e),n=t.orientation,i=void 0===n?"horizontal":n,c=Object(r.a)(t,["orientation"]);return Object(a.g)(Object(r.b)({orientation:i},c))}var c=[].concat(a.g.__keys);i.__keys=c},,,function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t=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(178);e.exports=function(e,t,n){n=n||{},9===t.nodeType&&(t=r.getWindow(t));var o=n.allowHorizontalScroll,a=n.onlyScrollIfNeeded,i=n.alignWithTop,c=n.alignWithLeft,s=n.offsetTop||0,l=n.offsetLeft||0,u=n.offsetBottom||0,d=n.offsetRight||0;o=void 0===o||o;var f=r.isWindow(t),h=r.offset(e),p=r.outerHeight(e),b=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:h.left-k.left-l,top:h.top-k.top-s},j={left:h.left+b-(k.left+_)+d,top:h.top+p-(k.top+S)+u},g=k):(v=r.offset(t),m=t.clientHeight,y=t.clientWidth,g={left:t.scrollLeft,top:t.scrollTop},O={left:h.left-(v.left+(parseFloat(r.css(t,"borderLeftWidth"))||0))-l,top:h.top-(v.top+(parseFloat(r.css(t,"borderTopWidth"))||0))-s},j={left:h.left+b-(v.left+y+(parseFloat(r.css(t,"borderRightWidth"))||0))+d,top:h.top+p-(v.top+m+(parseFloat(r.css(t,"borderBottomWidth"))||0))+u}),O.top<0||j.top>0?!0===i?r.scrollTop(t,g.top+O.top):!1===i?r.scrollTop(t,g.top+j.top):O.top<0?r.scrollTop(t,g.top+O.top):r.scrollTop(t,g.top+j.top):a||((i=void 0===i||!!i)?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):a||((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;t1&&"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!(!a.default.isMoment(e)||!a.default.isMoment(t))&&(e.date()===t.date()&&e.month()===t.month()&&e.year()===t.year())};var r,o=n(43),a=(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(a.ISO_MONTH_FORMAT):null};var r=i(n(43)),o=i(n(240)),a=n(77);function i(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 b}));var r=n(18),o=n(20),a=n(19),i=n(12),c=n(23),s=n(16),l=n(22),u=n(0),d=n(2);function f(){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}}var h=Object(u.createContext)({focusHistory:[]}),p=h.Provider,b=h.Consumer;p.displayName="FocusReturnProvider",b.displayName="FocusReturnConsumer";var v=function(e){Object(l.a)(h,e);var t,n=(t=h,function(){var e,n=Object(s.a)(t);if(f()){var r=Object(s.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(c.a)(this,e)});function h(){var e;return Object(o.a)(this,h),(e=n.apply(this,arguments)).onFocus=e.onFocus.bind(Object(i.a)(e)),e.state={focusHistory:[]},e}return Object(a.a)(h,[{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(u.createElement)(p,{value:this.state},Object(u.createElement)("div",{onFocus:this.onFocus,className:n},t))}}]),h}(u.Component);t.b=v},function(e,t,n){"use strict";e.exports=n(305)},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,a=/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,i=/^(left|center|right|top|bottom)/i,c=/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,s=/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,l=/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,u=/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,d=/^\(/,f=/^\)/,h=/^,/,p=/^\#([0-9a-fA-F]+)/,b=/^([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&&(N(h)||O("Missing comma before color stops")),{type:e,orientation:r,colorStops:D(P)}}))}function _(e,t){var n=N(e);if(n)return N(d)||O("Missing ("),result=t(n),N(f)||O("Missing )"),result}function S(){return R("directional",o,1)||R("angular",u,1)}function E(){var e,t,n=C();return n&&((e=[]).push(n),t=g,N(h)&&((n=C())?e.push(n):g=t)),e}function C(){var e=function(){var e=R("shape",/^(circle)/i,0);e&&(e.style=I()||M());return e}()||function(){var e=R("shape",/^(ellipse)/i,0);e&&(e.style=T()||M());return e}();if(e)e.at=function(){if(R("position",/^at/,0)){var e=x();return e||O("Missing positioning value"),e}}();else{var t=x();t&&(e={type:"default-radial",at:t})}return e}function M(){return R("extent-keyword",a,1)}function x(){var e={x:T(),y:T()};if(e.x||e.y)return{type:"position",value:e}}function D(e){var t=e(),n=[];if(t)for(n.push(t);N(h);)(t=e())?n.push(t):O("One extra comma");return n}function P(){var e=R("hex",p,1)||_(m,(function(){return{type:"rgba",value:D(z)}}))||_(v,(function(){return{type:"rgb",value:D(z)}}))||R("literal",b,0);return e||O("Expected color definition"),e.length=T(),e}function z(){return N(y)[1]}function T(){return R("%",s,1)||R("position-keyword",i,1)||I()}function I(){return R("px",c,1)||R("em",l,1)}function R(e,t,n){var r=N(t);if(r)return{type:e,value:r[n]}}function N(e){var t,n;return(n=/^[\n\r\t\s]+/.exec(g))&&A(n[0].length),(t=e.exec(g))&&A(t[0].length),t}function A(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(6),a=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=a},function(e,t,n){"use strict";var r=n(0),o=n(6),a=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=a},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(314);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}}).call(this,n(127))},function(e,t,n){"use strict";var r=n(315),o=n(325),a=n(182),i=n(219),c=n(218),s=n(345);e.exports=function(){var e=s(this),t=c(a(e,"length")),n=1;arguments.length>0&&void 0!==arguments[0]&&(n=i(arguments[0]));var l=r(e,0);return o(l,e,t,0,n),l}},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(140)("Object.prototype.propertyIsEnumerable");e.exports=function(e,t,n,a,i,c){if(!r){if(!e(c))return!1;if(!c["[[Configurable]]"]||!c["[[Writable]]"])return!1;if(i in a&&o(a,i)!==!!c["[[Enumerable]]"])return!1;var s=c["[[Value]]"];return a[i]=s,t(a[i],s)}return r(a,i,n(c)),!0}},function(e,t,n){"use strict";var r=n(184),o=n(90);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(91),o=n(184),a=n(90);e.exports=function(e){return void 0!==e&&(o(a,"Property Descriptor","Desc",e),!(!r(e,"[[Value]]")&&!r(e,"[[Writable]]")))}},function(e,t,n){"use strict";var r=n(185);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(91),o=n(58)("%TypeError%"),a=n(90),i=n(213),c=n(323);e.exports=function(e){if("Object"!==a(e))throw new o("ToPropertyDescriptor requires an object");var t={};if(r(e,"enumerable")&&(t["[[Enumerable]]"]=i(e.enumerable)),r(e,"configurable")&&(t["[[Configurable]]"]=i(e.configurable)),r(e,"value")&&(t["[[Value]]"]=e.value),r(e,"writable")&&(t["[[Writable]]"]=i(e.writable)),r(e,"get")){var n=e.get;if(void 0!==n&&!c(n))throw new TypeError("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,a=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{r=Object.defineProperty({},"length",{get:function(){throw o}}),o={}}catch(e){i=null}else i=null;var c=/^\s*class\b/,s=function(e){try{var t=a.call(e);return c.test(t)}catch(e){return!1}},l=Object.prototype.toString,u="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=i?function(e){if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;try{i(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(u)return function(e){try{return!s(e)&&(a.call(e),!0)}catch(e){return!1}}(e);if(s(e))return!1;var t=l.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%"),a=r("%Number%");e.exports=a.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(216),o=n(219);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(335),o=n(338);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,a="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(e){return"object"==typeof e&&null!==e&&(a?function(e){try{return r.call(e),!0}catch(e){return!1}}(e):"[object Date]"===o.call(e))}},function(e,t,n){"use strict";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(207);e.exports=function(){return Array.prototype.flat||r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=void 0,o=void 0;function a(e,t){var n=t(e(o));return function(){return n}}function i(e){return a(e,r.createLTR||r.create)}function c(){for(var e=arguments.length,t=Array(e),n=0;n=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(228);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,a.default)(e,t))};var r=i(n(43)),o=i(n(239)),a=i(n(189));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){if(!a.default.isMoment(e)||!a.default.isMoment(t))return!1;var n=e.year(),r=e.month(),o=t.year(),i=t.month(),c=n===o,s=r===i;return c&&s?e.date()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",a="width"===t?"Right":"Bottom",i=!n||r?window.getComputedStyle(e):null,c=e.offsetWidth,s=e.offsetHeight,l="width"===t?c:s;n||(l-=parseFloat(i["padding"+o])+parseFloat(i["padding"+a])+parseFloat(i["border"+o+"Width"])+parseFloat(i["border"+a+"Width"]));r&&(l+=parseFloat(i["margin"+o])+parseFloat(i["margin"+a]));return l}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),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!(!a.default.isMoment(e)||!a.default.isMoment(t))&&(e.month()===t.month()&&e.year()===t.year())};var r,o=n(43),a=(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 it})),n.d(t,"Animate",(function(){return ct.a})),n.d(t,"AnglePickerControl",(function(){return dt})),n.d(t,"Autocomplete",(function(){return xt})),n.d(t,"BaseControl",(function(){return lt})),n.d(t,"__experimentalBoxControl",(function(){return ra})),n.d(t,"Button",(function(){return jt.a})),n.d(t,"ButtonGroup",(function(){return oa})),n.d(t,"Card",(function(){return wa})),n.d(t,"CardBody",(function(){return Sa})),n.d(t,"CardDivider",(function(){return Ea})),n.d(t,"CardFooter",(function(){return xa})),n.d(t,"CardHeader",(function(){return za})),n.d(t,"CardMedia",(function(){return Ta})),n.d(t,"CheckboxControl",(function(){return Na})),n.d(t,"ClipboardButton",(function(){return Aa})),n.d(t,"ColorIndicator",(function(){return Ha})),n.d(t,"ColorPalette",(function(){return bi})),n.d(t,"ColorPicker",(function(){return fi})),n.d(t,"CustomSelectControl",(function(){return uc})),n.d(t,"Dashicon",(function(){return dc.a})),n.d(t,"DateTimePicker",(function(){return jc})),n.d(t,"DatePicker",(function(){return mc})),n.d(t,"TimePicker",(function(){return gc})),n.d(t,"__experimentalDimensionControl",(function(){return Sc})),n.d(t,"Disabled",(function(){return Tc})),n.d(t,"Draggable",(function(){return Nc})),n.d(t,"DropZone",(function(){return Yc})),n.d(t,"__unstableUseDropZone",(function(){return $c})),n.d(t,"DropZoneProvider",(function(){return Gc})),n.d(t,"Dropdown",(function(){return hi})),n.d(t,"DropdownMenu",(function(){return cs})),n.d(t,"ExternalLink",(function(){return ls})),n.d(t,"Flex",(function(){return Sn})),n.d(t,"FlexBlock",(function(){return Rt})),n.d(t,"FlexItem",(function(){return It})),n.d(t,"FocalPointPicker",(function(){return hs})),n.d(t,"FocusableIframe",(function(){return ms})),n.d(t,"FontSizePicker",(function(){return Ys})),n.d(t,"FormFileUpload",(function(){return Zs})),n.d(t,"FormToggle",(function(){return Xs})),n.d(t,"FormTokenField",(function(){return fl})),n.d(t,"__experimentalGradientPicker",(function(){return ou})),n.d(t,"__experimentalCustomGradientPicker",(function(){return ru})),n.d(t,"Guide",(function(){return Su})),n.d(t,"GuidePage",(function(){return Eu})),n.d(t,"Icon",(function(){return wc.a})),n.d(t,"IconButton",(function(){return Cu})),n.d(t,"__experimentalInputControl",(function(){return Mr})),n.d(t,"KeyboardShortcuts",(function(){return Ka})),n.d(t,"MenuGroup",(function(){return Mu})),n.d(t,"MenuItem",(function(){return Du})),n.d(t,"MenuItemsChoice",(function(){return Pu})),n.d(t,"Modal",(function(){return ju})),n.d(t,"ScrollLock",(function(){return zu.a})),n.d(t,"NavigableMenu",(function(){return rs})),n.d(t,"TabbableContainer",(function(){return Tu})),n.d(t,"Notice",(function(){return Iu})),n.d(t,"__experimentalNumberControl",(function(){return Ar})),n.d(t,"NoticeList",(function(){return Ru})),n.d(t,"Panel",(function(){return Au})),n.d(t,"PanelBody",(function(){return Bu})),n.d(t,"PanelHeader",(function(){return Nu})),n.d(t,"PanelRow",(function(){return Ku})),n.d(t,"Placeholder",(function(){return Wu})),n.d(t,"Popover",(function(){return wt.a})),n.d(t,"QueryControls",(function(){return Xu})),n.d(t,"__experimentalRadio",(function(){return sd})),n.d(t,"__experimentalRadioGroup",(function(){return hd})),n.d(t,"RadioControl",(function(){return pd})),n.d(t,"RangeControl",(function(){return $s})),n.d(t,"ResizableBox",(function(){return Xd})),n.d(t,"ResponsiveWrapper",(function(){return Jd})),n.d(t,"SandBox",(function(){return tf})),n.d(t,"SelectControl",(function(){return kc})),n.d(t,"Snackbar",(function(){return nf.a})),n.d(t,"SnackbarList",(function(){return sf})),n.d(t,"Spinner",(function(){return lf})),n.d(t,"TabPanel",(function(){return df})),n.d(t,"__experimentalText",(function(){return or})),n.d(t,"TextControl",(function(){return Xa})),n.d(t,"TextareaControl",(function(){return ff})),n.d(t,"TextHighlight",(function(){return hf})),n.d(t,"Tip",(function(){return pf})),n.d(t,"ToggleControl",(function(){return bf})),n.d(t,"Toolbar",(function(){return Of})),n.d(t,"ToolbarButton",(function(){return $l})),n.d(t,"__experimentalToolbarContext",(function(){return Ul.a})),n.d(t,"ToolbarGroup",(function(){return Jl})),n.d(t,"__experimentalToolbarItem",(function(){return Wl.a})),n.d(t,"Tooltip",(function(){return M.a})),n.d(t,"__experimentalTreeGrid",(function(){return Sf})),n.d(t,"__experimentalTreeGridRow",(function(){return Ef})),n.d(t,"__experimentalTreeGridCell",(function(){return Df})),n.d(t,"__experimentalTreeGridItem",(function(){return xf})),n.d(t,"TreeSelect",(function(){return qu})),n.d(t,"__experimentalUnitControl",(function(){return to})),n.d(t,"VisuallyHidden",(function(){return P})),n.d(t,"IsolatedEventContainer",(function(){return au.a})),n.d(t,"createSlotFill",(function(){return Pf.c})),n.d(t,"Slot",(function(){return Pf.b})),n.d(t,"Fill",(function(){return Pf.a})),n.d(t,"SlotFillProvider",(function(){return zf.b})),n.d(t,"__experimentalUseSlot",(function(){return Tf.a})),n.d(t,"navigateRegions",(function(){return Rf})),n.d(t,"withConstrainedTabbing",(function(){return cu.a})),n.d(t,"withFallbackStyles",(function(){return Af})),n.d(t,"withFilters",(function(){return Vf})),n.d(t,"withFocusOutside",(function(){return us.a})),n.d(t,"withFocusReturn",(function(){return iu.a})),n.d(t,"FocusReturnProvider",(function(){return Ff.b})),n.d(t,"withNotices",(function(){return Xf})),n.d(t,"withSpokenMessages",(function(){return St}));var r=n(6),o=n(8),a=n(14),i=n(15),c=n(0),s=n(2),l=n(11),u=n.n(l),d=n(51),f=n(119),h=n(17),p=n(49),b=n(48),v=n(13),m=n.n(v),y=n(63),g=n(59),O=n(67),j=Object(b.a)({name:"Group",compose:O.a,useProps:function(e,t){return Object(h.b)({role:"group"},t)}}),w=(Object(p.a)({as:"div",useHook:j}),n(93)),k=Object(b.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(h.a)(e,["currentId","unstable_moves"])),o=t.currentId,a=(t.unstable_moves,Object(h.a)(t,["currentId","unstable_moves"]));if(e.items&&t.items){var i=Object(d.d)(e.items,n),c=Object(d.d)(t.items,o),s=null==i?void 0:i.groupId,l=null==c?void 0:c.groupId;if(t.id===l||t.id===s)return!1}return j.unstable_propsAreEqual(r,a)},useProps:function(e,t){var n=t.ref,r=Object(h.a)(t,["ref"]),o=Object(v.useRef)(null),a=e.id;return Object(g.a)((function(){var t;if(a)return null===(t=e.registerGroup)||void 0===t||t.call(e,{id:a,ref:o}),function(){var t;null===(t=e.unregisterGroup)||void 0===t||t.call(e,a)}}),[a,e.registerGroup,e.unregisterGroup]),Object(h.b)({ref:Object(y.a)(o,n)},r)}}),_=Object(p.a)({as:"div",useHook:k}),S=n(1),E=n(9),C=n(120),M=n(86),x=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 P=function(e){var t=e.as,n=void 0===t?"div":t,r=e.className,o=Object(i.a)(e,["as","className"]);return function(e){var t=e.as,n=void 0===t?"div":t,r=Object(i.a)(e,["as"]);return"function"==typeof r.children?r.children(r):Object(c.createElement)(n,r)}(function(e){for(var t=1;tr&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(b,"$1"+e.trim());case 58:return e.trim()+t.replace(b,"$1"+e.trim());default:if(0<1*n&&0s.charCodeAt(8))break;case 115:i=i.replace(s,"-webkit-"+s)+";"+i;break;case 207:case 102:i=i.replace(s,"-webkit-"+(102c.charCodeAt(0)&&(c=c.trim()),c=[c],0h)&&(L=(B=B.replace(" ",":")).length),0=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=L((function(e){return ne(e)?e:e.replace(ee,"-$&").toLowerCase()})),ae=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 ie(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;o96?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;t0&&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,a=n.b;return"rgba(".concat(r,", ").concat(o,", ").concat(a,", ").concat(t,")")}function Ae(e){return Object(s.get)(Re,e,"#000")}function He(){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 Le={name:"1xiracb",styles:"border-radius:2px;box-sizing:border-box;display:grid;grid-template-columns:repeat( 3,1fr );outline:none;"},Ve=function(){return Le},Fe=je("div",{target:"e1od1u4s0",label:"Root"})(Ve,";border:1px solid transparent;cursor:pointer;grid-template-columns:auto;",(function(e){var t=e.size,n=void 0===t?92:t;return ue("grid-template-rows:repeat( 3,calc( ",n,"px / 3 ) );width:",n,"px;")}),";"),Be=je("div",{target:"e1od1u4s1",label:"Row"})({name:"1177s8r",styles:"box-sizing:border-box;display:grid;grid-template-columns:repeat( 3,1fr );"}),Ke=function(e){return ue("background:currentColor;box-sizing:border-box;display:grid;margin:auto;transition:all 120ms linear;",He("transition")," ",(t=e.isActive,n=t?"0 0 0 2px ".concat(Ae("black")):null,r=Ae(t?"black":"lightGray.800"),o=Ae(t?"black":"blue.medium.focus"),ue("box-shadow:",n,";color:",r,";*:hover > &{color:",o,";}")),"");var t,n,r,o},We=je("span",{target:"e1od1u4s2",label:"Point"})("height:6px;width:6px;",Ke,""),Ue=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 Ge(e){var t=e.isActive,n=void 0!==t&&t,r=e.value,a=Object(i.a)(e,["isActive","value"]),s=T[r];return Object(c.createElement)(M.a,{text:s},Object(c.createElement)(C.a,Object(o.a)({as:Ue,role:"gridcell"},a),Object(c.createElement)(P,null,r),Object(c.createElement)(We,{isActive:n,role:"presentation"})))}var $e=new RegExp(/-left/g),qe=new RegExp(/-right/g),Ye=new RegExp(/Left/g),Ze=new RegExp(/Right/g);function Xe(){return!(!document||"rtl"!==document.documentElement.dir)}function Je(){return Xe()}function Qe(e){return"left"===e?"right":"right"===e?"left":$e.test(e)?e.replace($e,"-right"):qe.test(e)?e.replace(qe,"-left"):Ye.test(e)?e.replace(Ye,"Right"):Ze.test(e)?e.replace(Ze,"Left"):e}var et=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(s.mapKeys)(e,(function(e,t){return Qe(t)}))};function tt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return function(){var n=Xe();return ue(t?n?t:e:n?et(e):e,"")}}je("div",{target:"elqsdmc0",label:"Wrapper"})({name:"co61ta",styles:"box-sizing:border-box;padding:2px;"});var nt=je("div",{target:"elqsdmc1",label:"Root"})("transform-origin:top left;height:100%;width:100%;",Ve,";",(function(){return ue({gridTemplateRows:"repeat( 3, calc( ".concat(21,"px / 3))"),padding:1.5,maxHeight:24,maxWidth:24},"")}),";",(function(e){var t=e.disablePointerEvents;return ue({pointerEvents:t?"none":null},"")}),";"),rt=je("span",{target:"elqsdmc2",label:"Point"})("height:2px;width:2px;",Ke,";",(function(e){var t=e.isActive;return ue("box-shadow:",t?"0 0 0 1px currentColor":null,";color:currentColor;*:hover > &{color:currentColor;}")}),";"),ot=Ue;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 it(e){var t=e.className,n=e.id,r=e.label,l=void 0===r?Object(S.__)("Alignment Matrix Control"):r,h=e.defaultValue,p=void 0===h?"center center":h,b=e.value,v=e.onChange,m=void 0===v?s.noop:v,y=e.width,g=void 0===y?92:y,O=Object(i.a)(e,["className","id","label","defaultValue","value","onChange","width"]),j=Object(c.useState)(null!=b?b:p),w=Object(a.a)(j,1)[0],k=Je(),C=function(e){var t=Object(E.useInstanceId)(it,"alignment-matrix-control");return e||t}(n),M=N(C,w),x=Object(d.g)({baseId:C,currentId:M,rtl:k});Object(c.useEffect)((function(){void 0!==b&&x.setCurrentId(N(C,b))}),[b,x.setCurrentId]);var D=u()("component-alignment-matrix-control",t);return Object(c.createElement)(f.a,Object(o.a)({},O,x,{"aria-label":l,as:Fe,className:D,role:"grid",width:g}),z.map((function(e,t){return Object(c.createElement)(_,Object(o.a)({},x,{as:Be,role:"row",key:t}),e.map((function(e){var t=N(C,e),n=x.currentId===t;return Object(c.createElement)(Ge,Object(o.a)({},x,{id:t,isActive:n,key:e,value:e,onFocus:function(){m(e)}}))})))})))}it.Icon=function(e){var t=e.className,n=e.disablePointerEvents,r=void 0===n||n,a=e.size,s=void 0===a?24:a,l=e.style,d=void 0===l?{}:l,f=e.value,h=void 0===f?"center":f,p=Object(i.a)(e,["className","disablePointerEvents","size","style","value"]),b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"center",t=R(e).replace("-"," "),n=I.indexOf(t);return n>-1?n:void 0}(h),v=(s/24).toFixed(2),m=u()("component-alignment-matrix-control-icon",t),y=function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"polite";Object(kt.speak)(e,t)}},{key:"componentWillUnmount",value:function(){this.debouncedSpeak.cancel()}},{key:"render",value:function(){return Object(c.createElement)(e,Object(o.a)({},this.props,{speak:this.speak,debouncedSpeak:this.debouncedSpeak}))}}]),a}(c.Component)}),"withSpokenMessages");function Et(){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}}var Ct=function(e){var t=e.useItems?e.useItems:function(t){var n=Object(c.useState)([]),r=Object(a.a)(n,2),o=r[0],i=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)}})),a=new RegExp("(?:\\b|\\s|^)"+Object(s.escapeRegExp)(t),"i");i(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;o0?null:Object(c.createElement)(wt.a,{focusOnMount:!1,onClose:p,position:"top right",className:"components-autocomplete__popover",anchorRef:(n=window.getSelection(),n.rangeCount?n.getRangeAt(0):null)},Object(c.createElement)("div",{id:i,role:"listbox",className:"components-autocomplete__results"},Object(s.map)(v,(function(e,t){return Object(c.createElement)(jt.a,{key:e.key,id:"components-autocomplete-item-".concat(o,"-").concat(e.key),role:"option","aria-selected":t===d,disabled:e.isDisabled,className:u()("components-autocomplete__result",l,{"is-selected":t===d}),onClick:function(){return h(e)}},e.label)}))))}},Mt=function(e){Object(mt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(vt.a)(t);if(Et()){var r=Object(vt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(bt.a)(this,e)});function r(){var e;return Object(ft.a)(this,r),(e=n.apply(this,arguments)).select=e.select.bind(Object(ht.a)(e)),e.reset=e.reset.bind(Object(ht.a)(e)),e.onChangeOptions=e.onChangeOptions.bind(Object(ht.a)(e)),e.handleKeyDown=e.handleKeyDown.bind(Object(ht.a)(e)),e.state=e.constructor.getInitialState(),e}return Object(pt.a)(r,null,[{key:"getInitialState",value:function(){return{selectedIndex:0,filteredOptions:[],filterValue:"",autocompleter:null,AutocompleterUI:null}}}]),Object(pt.a)(r,[{key:"insertCompletion",value:function(e){var t=this.state,n=t.autocompleter,r=t.filterValue,o=this.props,a=o.record,i=o.onChange,s=a.start,l=s-n.triggerPrefix.length-r.length,u=Object(Ot.create)({html:Object(c.renderToString)(e)});i(Object(Ot.insert)(a,u,l,s))}},{key:"select",value:function(e){var t=this.props.onReplace,n=this.state,r=n.autocompleter,o=n.filterValue,a=(r||{}).getOptionCompletion;if(!e.isDisabled){if(a){var i=a(e.value,o),c=void 0===i.action||void 0===i.value?{action:"insert-at-caret",value:i}:i,s=c.action,l=c.value;"replace"===s?t([l]):"insert-at-caret"===s&&this.insertCompletion(l)}this.reset()}}},{key:"reset",value:function(){this.setState(this.constructor.getInitialState())}},{key:"announce",value:function(e){var t=this.props.debouncedSpeak;t&&(e.length?t(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"):t(Object(S.__)("No results."),"assertive"))}},{key:"onChangeOptions",value:function(e){var t=e.length===this.state.filteredOptions.length?this.state.selectedIndex:0;this.setState({filteredOptions:e,selectedIndex:t}),this.announce(e)}},{key:"handleKeyDown",value:function(e){var t=this.state,n=t.autocompleter,r=t.selectedIndex,o=t.filteredOptions;if(n&&0!==o.length){var a;switch(e.keyCode){case gt.UP:a=(0===r?o.length:r)-1,this.setState({selectedIndex:a});break;case gt.DOWN:a=(r+1)%o.length,this.setState({selectedIndex:a});break;case gt.ESCAPE:this.setState({autocompleter:null,AutocompleterUI:null});break;case gt.ENTER:this.select(o[r]);break;case gt.LEFT:case gt.RIGHT:return void this.reset();default:return}e.preventDefault(),e.stopPropagation()}}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.record,r=t.completers,o=e.record;if(Object(Ot.isCollapsed)(n)){var a=Object(s.deburr)(Object(Ot.getTextContent)(Object(Ot.slice)(n,0))),i=Object(s.deburr)(Object(Ot.getTextContent)(Object(Ot.slice)(o,0)));if(a!==i){var c=Object(Ot.getTextContent)(Object(Ot.slice)(n,void 0,Object(Ot.getTextContent)(n).length)),l=Object(s.find)(r,(function(e){var t=e.triggerPrefix,n=e.allowContext,r=a.lastIndexOf(t);return-1!==r&&(!(n&&!n(a.slice(0,r),c))&&/^\S*$/.test(a.slice(r+t.length)))}));if(!l)return void this.reset();var u=Object(s.escapeRegExp)(l.triggerPrefix),d=a.match(new RegExp("".concat(u,"(\\S*)$"))),f=d&&d[1];this.setState({autocompleter:l,AutocompleterUI:l!==this.state.autocompleter?Ct(l):this.state.AutocompleterUI,filterValue:f})}}}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.instanceId,r=e.isSelected,o=this.state,a=o.autocompleter,i=o.selectedIndex,s=o.filteredOptions,l=o.AutocompleterUI,u=o.filterValue,d=(s[i]||{}).key,f=void 0===d?"":d,h=(a||{}).className,p=!!a&&s.length>0,b=p?"components-autocomplete-listbox-".concat(n):null,v=p?"components-autocomplete-item-".concat(n,"-").concat(f):null;return Object(c.createElement)(c.Fragment,null,t({isExpanded:p,listBoxId:b,activeId:v,onKeyDown:this.handleKeyDown}),r&&l&&Object(c.createElement)(l,{className:h,filterValue:u,instanceId:n,listBoxId:b,selectedIndex:i,onChangeOptions:this.onChangeOptions,onSelect:this.select,onReset:this.onReset}))}}]),r}(c.Component),xt=Object(E.compose)([St,E.withInstanceId])(Mt);var Dt={name:"8kj89b",styles:"flex-direction:row-reverse;"},Pt=je("div",{target:"eboqfv50",label:"Flex"})("box-sizing:border-box;display:flex;",(function(e){var t=e.align;return ue({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),ue({justifyContent:o},"")}),";",(function(e){var t=e.gap,n=e.isReversed,r="number"==typeof t?4*t:4,o="padding-".concat(n?"left":"right");return ue("> *{",o,":",r,"px;&:last-child{",o,":0;}}")}),";",(function(e){return e.isReversed?Dt:""}),";"),zt=je("div",{target:"eboqfv51",label:"Item"})({name:"13luw5d",styles:"box-sizing:border-box;min-width:0;max-width:100%;"}),Tt=je(zt,{target:"eboqfv52",label:"Block"})({name:"1rr4qq7",styles:"flex:1;"});var It=Object(c.forwardRef)((function(e,t){var n=e.className,r=Object(i.a)(e,["className"]),a=u()("components-flex__item",n);return Object(c.createElement)(zt,Object(o.a)({},r,{className:a,ref:t}))}));var Rt=Object(c.forwardRef)((function(e,t){var n=e.className,r=Object(i.a)(e,["className"]),a=u()("components-flex__block",n);return Object(c.createElement)(Tt,Object(o.a)({},r,{className:a,ref:t}))}));function Nt(e,t){return e.map((function(e,n){return e+t[n]}))}function At(e,t){return e.map((function(e,n){return e-t[n]}))}function Ht(e,t,n){return n=n||Math.hypot.apply(Math,e),t?n/t:0}function Lt(e,t){return t?e.map((function(e){return e/t})):Array(e.length).fill(0)}function Vt(e){return Math.hypot.apply(Math,e)}function Ft(e,t){return t=t||Math.hypot.apply(Math,e)||1,e.map((function(e){return e/t}))}function Bt(e,t,n){var r=Math.hypot.apply(Math,t);return{velocities:Lt(t,n),velocity:Ht(t,n,r),distance:Vt(e),direction:Ft(t,r)}}function Kt(e,t){return Math.abs(e)>=t&&Math.sign(e)*t}function Wt(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 Ut(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):en?Wt(e-n,n-t,r)+n:e}function Gt(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}function Zt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=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 Jt(){}var Qt=function(){for(var e=arguments.length,t=new Array(e),n=0;n0?t:n}return null}function un(e){var t="buttons"in e?e.buttons:0,n=ln(e),r=n&&n.length||0;return $t({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 dn(e){var t=ln(e),n=t?t[0]:e;return{values:[n.clientX,n.clientY]}}var fn=function(){var e=this;this.state=on(),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&&(sn(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,cn(e.config.window,n,e.config.eventOptions))},this.removeWindowListeners=function(t){if(e.config.window){var n=e.windowListeners[t];n&&(sn(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(),Qt.apply(void 0,r)])})),cn(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],a=Array.isArray(o)?o:[o];t[r+n]=Qt.apply(void 0,a)})),t},this.getBind=function(){if(e.config.domTarget){var t=e.getDomTarget();return t&&e.addDomTargetListeners(t),e.clean}return e.getBindings()}};function hn(e,t,n,r){var o=m.a.useMemo((function(){var e=new fn;return{nativeRefs:r,current:e,bind:function(){e.resetBindings();for(var n=arguments.length,r=new Array(n),a=0;a2?o-2:0),i=2;id?"x":u0?(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=un(e);if(t.down){r.updateSharedState(t);var n=dn(e).values,o=r.getKinematics(n,e),a=r.state._isTap;a&&Vt(o._movement)>=3&&(a=!1),r.updateGestureState($t({},r.getGenericPayload(e),{},o,{_isTap:a,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,a=t.velocities,i=a[0],c=a[1],s=t.movement,l=s[0],u=s[1],d=t._intentional,f=d[0],h=d[1],p=$t({},r.getGenericPayload(e),{},r.getMovement(o)),b=p.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];b<220&&(!1!==f&&Math.abs(i)>y&&Math.abs(l)>j&&(k[0]=Math.sign(i)),!1!==h&&Math.abs(c)>g&&Math.abs(u)>w&&(k[1]=Math.sign(c))),r.updateGestureState($t({event:e},p,{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:Jt}),r.state._active=!1,r.updateSharedState({down:!1,buttons:0,touches:0}),requestAnimationFrame((function(){return r.fireGestureHandler()}))},r}qt(t,e);var n=t.prototype;return n.startDrag=function(e){var t=this,n=dn(e).values;this.updateSharedState(un(e));var r=$t({},this.getStartGestureState(n,e),{},this.getGenericPayload(e,!0));this.updateGestureState($t({},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}(bn),mn="undefined"!=typeof window?window:void 0,yn={lockDirection:!1,axis:void 0,bounds:void 0};function gn(e){void 0===e&&(e={});var t=e,n=t.eventOptions,r=(n=void 0===n?{}:n).passive,o=void 0===r||r,a=n.capture,i=void 0!==a&&a,c=n.pointer,s=void 0!==c&&c,l=t.window,u=void 0===l?mn:l,d=t.domTarget,f=void 0===d?void 0:d,h=t.enabled,p=void 0===h||h;return $t({},Yt(t,["eventOptions","window","domTarget","enabled"]),{enabled:p,domTarget:f,window:u,eventOptions:{passive:!f||!!o,capture:!!i},captureString:i?"Capture":"",pointer:!!s})}function On(e){var t=e.threshold,n=void 0===t?void 0:t,r=e.rubberband,o=void 0===r?0:r,a=e.enabled,i=void 0===a||a,c=e.initial;return"boolean"==typeof o&&(o=o?.15:0),void 0===n&&(n=0),{enabled:i,initial:void 0===c?[0,0]:c,threshold:en(n),rubberband:en(o)}}function jn(e){void 0===e&&(e={});var t=e,n=t.axis,r=t.lockDirection,o=t.bounds,a=void 0===o?{}:o,i=Yt(t,["axis","lockDirection","bounds"]),c=[[tn(a.left,-1/0),tn(a.right,1/0)],[tn(a.top,-1/0),tn(a.bottom,1/0)]];return $t({},On(i),{},yn,{},nn({axis:n,lockDirection:r},e),{bounds:c})}function wn(e){void 0===e&&(e={});var t=e,n=t.enabled,r=t.threshold,o=t.bounds,a=t.rubberband,i=t.initial,c=Yt(t,["enabled","threshold","bounds","rubberband","initial"]),s=c.swipeVelocity,l=void 0===s?.5:s,u=c.swipeDistance,d=void 0===u?60:u,f=c.delay,h=void 0!==f&&f,p=c.filterTaps,b=void 0!==p&&p,v=c.axis,m=c.lockDirection;void 0===r?r=Math.max(0,b?3:0,m||v?1:0):b=!0;var y=jn(nn({enabled:n,threshold:r,bounds:o,rubberband:a,axis:v,lockDirection:m,initial:i},e));return $t({},y,{filterTaps:b||y.threshold[0]+y.threshold[1]>0,swipeVelocity:en(l),swipeDistance:en(d),delay:"number"==typeof h?h:h?180:0})}var kn=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=dn(e).values;r.updateSharedState(un(e));var n=$t({},r.getStartGestureState(t,e),{},r.getGenericPayload(e,!0));r.updateGestureState($t({},n,{},r.getMovement(t,n))),r.fireGestureHandler()},r.onMoveChange=function(e){var t=un(e);r.updateSharedState(t);var n=dn(e).values,o=r.getKinematics(n,e);r.updateGestureState($t({},r.getGenericPayload(e),{},o)),r.fireGestureHandler()},r.onMoveEnd=function(){r.state._active=!1,r.updateGestureState($t({},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=dn(e).values,n=$t({},r.controller.state.shared,{},r.state,{},r.getGenericPayload(e,!0),{values:t,active:!0,hovering:!0});r.controller.handlers.hover($t({},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=dn(e).values,n=$t({},r.controller.state.shared,{},r.state,{},r.getGenericPayload(e),{values:t,active:!1});r.controller.handlers.hover($t({},n,{},r.mapStateValues(n)))}},r}return qt(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}(bn);var _n=Object(c.forwardRef)((function(e,t){var n=e.align,r=void 0===n?"center":n,a=e.className,s=e.gap,l=void 0===s?2:s,d=e.justify,f=void 0===d?"space-between":d,h=e.isReversed,p=void 0!==h&&h,b=Object(i.a)(e,["align","className","gap","justify","isReversed"]),v=u()("components-flex",a);return Object(c.createElement)(Pt,Object(o.a)({},b,{align:r,className:v,ref:t,gap:l,justify:f,isReversed:p}))})),Sn=_n;function En(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 Cn(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:xn,t=e.value;return Cn({},xn,{},e,{initialValue:t})}var Tn=function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:"body";switch(e){case"title.large":return Nn(Un(),Gn,$n);case"title.medium":return Nn(Wn(),Gn,qn);case"title.small":return Nn(Kn(),Gn,Yn);case"subtitle":return Nn(Bn(),Zn,"\n\tfont-size: 16px;\n\tline-height: 24px;\n");case"subtitle.small":return Nn(Fn(),Zn,"\n\tfont-size: 14px;\n\tline-height: 20px;\n");case"body":return Nn(Vn(),Xn);case"body.large":return Nn(Ln(),Xn,Jn);case"body.small":return Nn(Hn(),Xn,Qn);case"button":return er;case"caption":return tr;case"label":return nr}}(e.variant))},or=je("p",{target:"e15wbhsk0",label:"Text"})("\n\tbox-sizing: border-box;\n\tmargin: 0;\n",rr,"");var ar={name:"r6z5ec",styles:"z-index:1;"},ir=je("div",{target:"e1cr7zh10",label:"Root"})("box-sizing:border-box;position:relative;border-radius:2px;",(function(e){var t=e.isFloatingLabel;return ue({paddingTop:t?5:0},"")}),";",(function(e){return e.isFocused?ar:""}),";"),cr=je("div",{target:"e1cr7zh11",label:"Container"})("align-items:center;box-sizing:border-box;border-radius:inherit;display:flex;position:relative;",(function(e){var t=Ae(e.disabled?"ui.backgroundDisabled":"ui.background");return ue({backgroundColor:t},"")}),";"),sr=je("input",{target:"e1cr7zh12",label:"Input"})("&&&{background-color:transparent;box-sizing:border-box;border:none;box-shadow:none !important;color:",Ae("black"),";display:block;outline:none;padding-left:8px;padding-right:8px;width:100%;",(function(e){var t=e.isDragging,n=e.dragCursor,r="",o="";return t&&(r=ue("cursor:",n,";user-select:none;&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none !important;margin:0 !important;}")),t&&n&&(o=ue("&:active{cursor:",n,";}")),ue(r,";",o,";")}),";",(function(e){return e.disabled?ue({color:Ae("ui.textDisabled")},""):""}),";",(function(e){var t={default:"13px",small:"11px"}[e.size];return t?ue("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 ue(n[t]||n.default,"")}),";",(function(e){var t=e.isFilled,n=e.isFloating,r=1;return e.isFloatingLabel&&(t||n||(r=0)),ue("&::placeholder{opacity:",r,";}&::-webkit-input-placeholder{line-height:normal;}")}),";}"),lr=function(e){var t=e.isFloatingLabel,n=e.isFilled,r=e.isFloating,o=t&&!n||r?Ae("ui.textDisabled"):"currentColor";return ue({color:o},"")},ur=function(e){var t=e.isFloatingLabel,n=e.size;return ue({fontSize:{default:"13px",small:"11px"}[n],lineHeight:t?1.2:null},"")},dr=function(e){var t=e.isFloatingLabel,n=e.isFloating,r=t?0:4,o=t?"absolute":null,a=n?null:"none",i="small"===e.size,c=n?0:i?1:2,s=t?8:0,l=n?"translate( 0, calc(-100% + ".concat(i?"-1px":"-3px",") ) scale( 0.75 )"):"translate( 0, -50%) scale(1)";t||(l=null);var u=t?"transform ".concat("60ms"," linear"):null;return ue({marginTop:c,paddingBottom:r,position:o,pointerEvents:a,transition:u,transform:l},tt({marginLeft:s})(),tt({transformOrigin:"top left"},{transformOrigin:"top right"})(),"")},fr={name:"fjfd5j",styles:"max-width:calc( 100% - 10px );overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"},hr=function(e){return e.isFloating?"":fr},pr=je(or,{target:"e1cr7zh13",label:"BaseLabel"})("&&&{box-sizing:border-box;display:block;margin:0;max-width:100%;padding:0;pointer-events:none;top:50%;transition:transform ","60ms"," linear,max-width ","60ms"," linear;z-index:1;",lr,";",ur,";",dr,";",hr,";",He("transition"),";",tt({left:0}),"}"),br=function(e){return Object(c.createElement)(pr,Object(o.a)({},e,{as:"label"}))},vr=je("fieldset",{target:"e1cr7zh14",label:"Fieldset"})("&&&{box-sizing:border-box;border-radius:inherit;bottom:0;left:0;margin:0;padding:0;pointer-events:none;position:absolute;right:0;",(function(e){var t=e.disabled,n=e.isFocused,r=Ae(n?"ui.borderFocus":"ui.border");t&&(r="ui.borderDisabled");return ue({borderColor:r,borderStyle:"solid",borderWidth:n?2:1},"")}),";",(function(e){var t=e.isFloatingLabel;return ue({top:t?-5:0},"")}),";",tt({paddingLeft:2}),"}"),mr=je("legend",{target:"e1cr7zh15",label:"Legend"})("&&&{box-sizing:border-box;display:block;height:11px;line-height:11px;margin:0;padding:0;transition:max-width ","60ms"," linear;visibility:hidden;width:auto;",(function(e){var t=e.isFloating,n=e.size;return ue({fontSize:{default:9.75,small:8.25}[n],maxWidth:t?1e3:.01},"")}),";",He("transition"),";}"),yr=je(or,{target:"e1cr7zh16",label:"BaseLegendText"})("box-sizing:border-box;display:inline-block;",tt({paddingLeft:4,paddingRight:5}),""),gr=function(e){return Object(c.createElement)(yr,Object(o.a)({},e,{as:"span"}))},Or=je("span",{target:"e1cr7zh17",label:"Suffix"})({name:"1pxuk39",styles:"box-sizing:border-box;display:block;"});var jr=Object(c.memo)((function(e){var t=e.disabled,n=void 0!==t&&t,r=e.isFloating,o=void 0!==r&&r,a=e.isFloatingLabel,i=void 0!==a&&a,s=e.isFocused,l=void 0!==s&&s,u=e.label,d=e.size,f=void 0===d?"default":d;return Object(c.createElement)(vr,{"aria-hidden":"true",className:"components-input-control__backdrop",disabled:n,isFloatingLabel:i,isFocused:l},i&&Object(c.createElement)(mr,{"aria-hidden":"true",className:"components-input-control__backdrop-label",isFloating:o,size:f},Object(c.createElement)(gr,{className:"components-input-control__backdrop-text"},u)))}));function wr(e){return null!=e}function kr(e){var t=""===e;return!wr(e)||t}function _r(){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(wr))&&void 0!==e?e:n}var Sr=Object(c.forwardRef)((function(e,t){var n=e.disabled,r=void 0!==n&&n,l=e.dragDirection,u=void 0===l?"n":l,d=e.dragThreshold,f=void 0===d?10:d,h=e.id,p=e.isDragEnabled,b=void 0!==p&&p,v=e.isFloating,m=void 0!==v&&v,y=e.isFloatingLabelSet,g=void 0!==y&&y,O=e.isPressEnterToChange,j=void 0!==O&&O,w=e.onBlur,k=void 0===w?s.noop:w,_=e.onChange,S=void 0===_?s.noop:_,E=e.onDrag,C=void 0===E?s.noop:E,M=e.onDragEnd,x=void 0===M?s.noop:M,D=e.onDragStart,P=void 0===D?s.noop:D,z=e.onFocus,T=void 0===z?s.noop:z,I=e.onKeyDown,R=void 0===I?s.noop:I,N=e.onUpdateValue,A=e.onValidate,H=void 0===A?s.noop:A,L=e.size,V=void 0===L?"default":L,F=e.stateReducer,B=void 0===F?function(e){return e}:F,K=e.value,W=Object(i.a)(e,["disabled","dragDirection","dragThreshold","id","isDragEnabled","isFloating","isFloatingLabelSet","isPressEnterToChange","onBlur","onChange","onDrag","onDragEnd","onDragStart","onFocus","onKeyDown","onUpdateValue","onValidate","size","stateReducer","value"]),U=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Mn,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:xn,n=Object(c.useReducer)(In(e),zn(t)),r=Object(a.a)(n,2),o=r[0],i=r[1],s=function(e){return function(t,n){n&&n.persist&&n.persist(),i({type:e,payload:{value:t,event:n}})}},l=function(e){return function(t){t&&t.persist&&t.persist(),i({type:e,payload:{event:t}})}},u=function(e){return function(t){i({type:e,payload:t})}},d=s(Dn.CHANGE),f=s(Dn.INVALIDATE),h=s(Dn.RESET),p=s(Dn.COMMIT),b=s(Dn.UPDATE),v=u(Dn.DRAG_START),m=u(Dn.DRAG),y=u(Dn.DRAG_END),g=l(Dn.PRESS_UP),O=l(Dn.PRESS_DOWN),j=l(Dn.PRESS_ENTER);return{change:d,commit:p,dispatch:i,drag:m,dragEnd:y,dragStart:v,inValidate:f,pressDown:O,pressEnter:j,pressUp:g,reset:h,state:o,update:b}}(B,{isDragEnabled:b,value:K,isPressEnterToChange:j}),G=U.state,$=U.change,q=U.commit,Y=U.drag,Z=U.dragEnd,X=U.dragStart,J=U.invalidate,Q=U.pressDown,ee=U.pressEnter,te=U.pressUp,ne=U.reset,re=U.update,oe=G._event,ae=G.value,ie=G.isDragging,ce=G.isDirty,se=Object(c.useRef)(ae),le=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}(ie,u);Object(c.useEffect)((function(){if(K!==se.current)return re(K),void(se.current=K);ae===se.current||ce||(S(ae,{event:oe}),N(!kr(ae)),se.current=ae)}),[ae,ce,K]);var ue=function(e){var t=e.target.value;try{H(t,{event:e}),q(t,e)}catch(t){J(t,{event:e})}},de=function(e,t){void 0===t&&(t={});var n=t,r=n.domTarget,o=n.eventOptions,a=n.window,i=Yt(n,["domTarget","eventOptions","window"]),c=$t({},gn({domTarget:r,eventOptions:o,window:a}),{drag:wn(i)});return hn({drag:e},[vn],c)}((function(e){var t=e.distance,n=e.dragging,r=e.event;if(b&&t){if(r.stopPropagation(),!n)return x(e),void Z(e);C(e),Y(e),ie||(P(e),X(e))}}),{threshold:f,enabled:b});return Object(c.createElement)(sr,Object(o.a)({},W,de(),{className:"components-input-control__input",disabled:r,dragCursor:le,isDragging:ie,id:h,isFloating:m,isFloatingLabel:g,onBlur:function(e){k(e),j&&ce&&(kr(ae)?ne(K):ue({target:{value:ae}},e))},onChange:function(e){var t=e.target.value;$(t,e)},onFocus:function(e){T(e)},onKeyDown:function(e){var t=e.keyCode;switch(R(e),t){case gt.UP:te(e);break;case gt.DOWN:Q(e);break;case gt.ENTER:ee(e),j&&(e.preventDefault(),ue(e))}},ref:t,size:V,value:ae}))}));function Er(e){var t=e.children,n=e.hideLabelFromVision,r=e.htmlFor,a=Object(i.a)(e,["children","hideLabelFromVision","htmlFor"]);return t?n?Object(c.createElement)(P,{as:"label",htmlFor:r},t):Object(c.createElement)(br,Object(o.a)({htmlFor:r},a),t):null}function Cr(e,t){var n=e.__unstableStateReducer,r=void 0===n?function(e){return e}:n,l=e.children,d=e.className,f=e.disabled,h=void 0!==f&&f,p=e.hideLabelFromVision,b=void 0!==p&&p,v=e.id,m=e.isPressEnterToChange,y=void 0!==m&&m,g=e.isFloatingLabel,O=void 0!==g&&g,j=e.label,w=e.onBlur,k=void 0===w?s.noop:w,_=e.onChange,S=void 0===_?s.noop:_,C=e.onFocus,M=void 0===C?s.noop:C,x=e.onValidate,D=void 0===x?s.noop:x,P=e.onKeyDown,z=void 0===P?s.noop:P,T=e.size,I=void 0===T?"default":T,R=e.suffix,N=e.value,A=Object(i.a)(e,["__unstableStateReducer","children","className","disabled","hideLabelFromVision","id","isPressEnterToChange","isFloatingLabel","label","onBlur","onChange","onFocus","onValidate","onKeyDown","size","suffix","value"]),H=Object(c.useState)(!1),L=Object(a.a)(H,2),V=L[0],F=L[1],B=Object(c.useState)(!kr(N)),K=Object(a.a)(B,2),W=K[0],U=K[1],G=function(e){var t=Object(E.useInstanceId)(Cr),n="inspector-input-control-".concat(t);return e||n}(v),$=u()("components-input-control",d),q=W||!kr(N),Y=!!O&&(q||V),Z=!b&&O&&j;return Object(c.createElement)(ir,{className:$,isFloatingLabel:Z,isFocused:V},Object(c.createElement)(Er,{className:"components-input-control__label",hideLabelFromVision:b,htmlFor:G,isFilled:W,isFloating:Y,isFloatingLabel:O,size:I},j),Object(c.createElement)(cr,{className:"components-input-control__container",disabled:h,isFocused:V},Object(c.createElement)(Sr,Object(o.a)({},A,{className:"components-input-control__input",disabled:h,id:G,isFloating:Y,isFloatingLabelSet:Z,isPressEnterToChange:y,onBlur:function(e){k(e),F(!1)},onChange:S,onFocus:function(e){M(e),F(!0)},onKeyDown:z,onUpdateValue:U,onValidate:D,ref:t,setIsFocused:F,size:I,stateReducer:r,value:N})),R&&Object(c.createElement)(Or,{className:"components-input-control__suffix"},R),Object(c.createElement)(jr,{"aria-hidden":"true",disabled:h,isFloating:Y,isFloatingLabel:Z,isFocused:V,label:j,size:I}),l))}var Mr=Object(c.forwardRef)(Cr);var xr={name:"1b9wwt5",styles:"&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none !important;margin:0 !important;}"},Dr=function(e){return e.hideHTMLArrows?xr:""},Pr=je(Mr,{target:"ep48uk90",label:"Input"})(Dr,";");function zr(e){var t=Number(e);return isNaN(t)?0:t}function Tr(){for(var e=arguments.length,t=new Array(e),n=0;n0&&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=zr(e),a=zr(r),i=Ir(r),c=Math.round(o/a)*a,l=Object(s.clamp)(c,t,n);return i?zr(l.toFixed(i)):l}var Nr=function(e){var t=e.isShiftStepEnabled,n=void 0===t||t,r=e.shiftStep,o=void 0===r?10:r,i=e.step,s=void 0===i?1:i,l=Object(c.useState)(!1),u=Object(a.a)(l,2),d=u[0],f=u[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 Ar=Object(c.forwardRef)((function(e,t){var n=e.__unstableStateReducer,r=void 0===n?function(e){return e}:n,s=e.className,l=e.dragDirection,d=void 0===l?"n":l,f=e.hideHTMLArrows,h=void 0!==f&&f,p=e.isDragEnabled,b=void 0===p||p,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,C=e.type,M=void 0===C?"number":C,x=e.value,D=Object(i.a)(e,["__unstableStateReducer","className","dragDirection","hideHTMLArrows","isDragEnabled","isShiftStepEnabled","label","max","min","shiftStep","step","type","value"]),P=Je(),z=Rr(0,w,O,E),T=Nr({step:E,shiftStep:_,isShiftStepEnabled:m}),I="number"===M?"off":null,R=u()("components-number-control",s);return Object(c.createElement)(Pr,Object(o.a)({autoComplete:I,inputMode:"numeric"},D,{className:R,dragDirection:d,hideHTMLArrows:h,isDragEnabled:b,label:y,max:O,min:w,ref:t,step:T,type:M,value:x,__unstableStateReducer:Tn((function(e,t){var n=t.type,r=t.payload,o=null==r?void 0:r.event,i=e.value;if(n===Pn.PRESS_UP||n===Pn.PRESS_DOWN){var c=o.shiftKey&&m?parseFloat(_)*parseFloat(E):parseFloat(E),s=kr(i)?z:i;(null==o?void 0:o.preventDefault)&&o.preventDefault(),n===Pn.PRESS_UP&&(s=Tr(s,c)),n===Pn.PRESS_DOWN&&(s=function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&!1!==e}function qr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Gr,n=String(e).trim(),r=parseFloat(n,10);r=isNaN(r)?"":r;var o=n.match(/[\d.\-\+]*\s*(.*)/)[1],a=void 0!==o?o:"";if(a=a.toLowerCase(),$r(t)){var i=t.find((function(e){return e.value===a}));a=null==i?void 0:i.value}return[r,a]}function Yr(e,t,n,r){var o,i,c=qr(e,t),s=Object(a.a)(c,2),l=s[0],u=s[1],d=l;((isNaN(l)||""===l)&&(d=n),o=u||r,$r(t)&&!o)&&(o=null===(i=t[0])||void 0===i?void 0:i.value);return[d,o]}function Zr(e){var t=e.className,n=e.isTabbable,r=void 0===n||n,a=e.options,l=void 0===a?Gr:a,d=e.onChange,f=void 0===d?s.noop:d,h=e.size,p=void 0===h?"default":h,b=e.value,v=void 0===b?"px":b,m=Object(i.a)(e,["className","isTabbable","options","onChange","size","value"]);if(!$r(l))return Object(c.createElement)(Wr,{className:"components-unit-control__unit-label",size:p},v);var y=u()("components-unit-control__select",t);return Object(c.createElement)(Ur,Object(o.a)({className:y,onChange:function(e){var t=e.target.value,n=l.find((function(e){return e.value===t}));f(t,{event:e,data:n})},size:p,tabIndex:r?null:"-1",value:v},m),l.map((function(e){return Object(c.createElement)("option",{value:e.value,key:e.value},e.label)})))}function Xr(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 Jr(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:Qr,n=Jr({},Qr,{},t),r=n.initial,o=n.fallback,i=Object(c.useState)(e),s=Object(a.a)(i,2),l=s[0],u=s[1],d=wr(e),f=_r([e,l,r],o),h=function(e){d||u(e)};return[f,h]};var to=Object(c.forwardRef)((function(e,t){var n=e.__unstableStateReducer,r=void 0===n?function(e){return e}:n,l=e.autoComplete,d=void 0===l?"off":l,f=e.className,h=e.disabled,p=void 0!==h&&h,b=e.disableUnits,v=void 0!==b&&b,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,C=void 0===E?s.noop:E,M=e.size,x=void 0===M?"default":M,D=e.style,P=e.unit,z=e.units,T=void 0===z?Gr:z,I=e.value,R=Object(i.a)(e,["__unstableStateReducer","autoComplete","className","disabled","disableUnits","isPressEnterToChange","isResetValueOnUnitChange","isUnitSelectTabbable","label","onChange","onUnitChange","size","style","unit","units","value"]),N=function(e,t,n){return qr(t?"".concat(e).concat(t):e,n)}(I,P,T),A=Object(a.a)(N,2),H=A[0],L=A[1],V=eo(P,{initial:L}),F=Object(a.a)(V,2),B=F[0],K=F[1],W=u()("components-unit-control",f),U=function(e,t){var n=t.data,r="".concat(H).concat(e);O&&void 0!==(null==n?void 0:n.default)&&(r="".concat(n.default).concat(e)),S(r,t),C(e,t),K(e)},G=v?null:Object(c.createElement)(Zr,{disabled:p,isTabbable:w,options:T,onChange:U,size:x,value:B});return Object(c.createElement)(Hr,{className:"components-unit-control-wrapper",style:D},Object(c.createElement)(Br,Object(o.a)({"aria-label":k,type:y?"text":"number"},R,{autoComplete:d,className:W,disabled:p,disableUnits:v,isPressEnterToChange:y,label:k,onChange:function(e,t){var n=Yr(e,T,H,B),r=Object(a.a)(n,2),o=r[0],i=r[1],c="".concat(o).concat(i);S(c,t)},ref:t,size:x,suffix:G,value:H,__unstableStateReducer:Tn((function(e,t){var n=t.type,r=t.payload,o=null==r?void 0:r.event;if(n===Pn.COMMIT){var i,c=Yr(null==o||null===(i=o.target)||void 0===i?void 0:i.value,T,H,B),s=Object(a.a)(c,2),l=s[0],u=s[1];e.value=l,B!==u&&U(u,{event:o})}return e}),r)})))}));var no=je("div",{target:"e7pk0lh0",label:"Root"})({name:"vho1ao",styles:"box-sizing:border-box;max-width:235px;padding-bottom:12px;width:100%;"}),ro=je(_n,{target:"e7pk0lh1",label:"Header"})("color:",Ae("ui.label"),";padding-bottom:8px;"),oo=je(_n,{target:"e7pk0lh2",label:"HeaderControlWrapper"})({name:"19de7qh",styles:"min-height:30px;"}),ao=je("div",{target:"e7pk0lh3",label:"UnitControlWrapper"})({name:"zypm0w",styles:"box-sizing:border-box;max-width:80px;"}),io=je(_n,{target:"e7pk0lh4",label:"LayoutContainer"})({name:"39f89t",styles:"justify-content:center;padding-top:8px;"}),co=je(_n,{target:"e7pk0lh5",label:"Layout"})({name:"ojqyia",styles:"position:relative;height:100%;width:100%;"}),so={name:"icip60",styles:"border-radius:2px;"},lo={name:"1k07npk",styles:"border-radius:0;"},uo=function(e){var t=e.isFirst,n=e.isLast,r=e.isOnly;return t?tt({borderTopRightRadius:0,borderBottomRightRadius:0})():n?tt({borderTopLeftRadius:0,borderBottomLeftRadius:0})():r?so:lo},fo=function(e){return tt({marginLeft:e.isFirst?0:-1})()},ho=je(to,{target:"e7pk0lh6",label:"UnitControl"})("max-width:60px;",uo,";",fo,";");function po(e){var t=e.isFirst,n=e.isLast,r=e.isOnly,a=e.onHoverOn,l=void 0===a?s.noop:a,u=e.onHoverOff,d=void 0===u?s.noop:u,f=e.label,h=e.value,p=Object(i.a)(e,["isFirst","isLast","isOnly","onHoverOn","onHoverOff","label","value"]),b=function(e,t){void 0===t&&(t={});var n=t,r=n.domTarget,o=n.eventOptions,a=n.window,i=Yt(n,["domTarget","eventOptions","window"]),c=$t({},gn({domTarget:r,eventOptions:o,window:a}),{hover:$t({enabled:!0},i)});return hn({hover:e},[kn],c)}((function(e){var t=e.event,n=Object(i.a)(e,["event"]);n.hovering?l(t,n):d(t,n)}));return Object(c.createElement)(ao,Object(o.a)({"aria-label":f},b()),Object(c.createElement)(bo,{text:f},Object(c.createElement)(ho,Object(o.a)({className:"component-box-control__unit-control",hideHTMLArrows:!0,isFirst:t,isLast:n,isOnly:r,isPressEnterToChange:!0,isFloatingLabel:!0,isResetValueOnUnitChange:!1,value:h},p))))}function bo(e){var t=e.children,n=e.text;return n?Object(c.createElement)(M.a,{text:n,position:"top"},t):t}var vo={all:Object(S.__)("All"),top:Object(S.__)("Top"),bottom:Object(S.__)("Bottom"),left:Object(S.__)("Left"),right:Object(S.__)("Right"),mixed:Object(S.__)("Mixed")},mo={top:null,right:null,bottom:null,left:null},yo={top:!1,right:!1,bottom:!1,left:!1};function go(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 Oo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.values(e).map(qr),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]:"",a=go(r),i=Object(s.isNumber)(o)?"".concat(o).concat(a):null;return i}function jo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Oo(e),n=isNaN(parseFloat(t));return n}function wo(e){return void 0!==e&&!Object(s.isEmpty)(Object.values(e).filter(Boolean))}function ko(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 _o(e){var t=e.onChange,n=void 0===t?s.noop:t,r=e.onFocus,a=void 0===r?s.noop:r,l=e.onHoverOn,u=void 0===l?s.noop:l,d=e.onHoverOff,f=void 0===d?s.noop:d,h=e.values,p=Object(i.a)(e,["onChange","onFocus","onHoverOn","onHoverOff","values"]),b=Oo(h),v=wo(h)&&jo(h),m=v?vo.mixed:null;return Object(c.createElement)(po,Object(o.a)({},p,{disableUnits:v,isOnly:!0,value:b,onChange:function(e){var t=function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};u(ta({},yo,{},e))},onHoverOff:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};u(ta({},yo,{},e))},isLinked:x,units:p,values:g});return Object(c.createElement)(no,{id:R,role:"region","aria-labelledby":N},Object(c.createElement)(ro,{className:"component-box-control__header"},Object(c.createElement)(It,null,Object(c.createElement)(or,{id:N,className:"component-box-control__label"},f)),Object(c.createElement)(It,null,Object(c.createElement)(jt.a,{className:"component-box-control__reset-button",isSecondary:!0,isSmall:!0,onClick:function(){var e=mo;i(e),y(e),_(!1)},disabled:!k},Object(S.__)("Reset")))),Object(c.createElement)(oo,{className:"component-box-control__header-control-wrapper"},Object(c.createElement)(It,null,Object(c.createElement)(No,{side:T})),x&&Object(c.createElement)(Rt,null,Object(c.createElement)(_o,A)),Object(c.createElement)(It,null,Object(c.createElement)(Vo,{onClick:function(){D(!x),I(x?"top":"all")},isLinked:x}))),!x&&Object(c.createElement)(Eo,A))}ra.__Visualizer=function(e){var t=e.children,n=e.showValues,r=void 0===n?yo:n,a=e.values,s=void 0===a?mo:a,l=Object(i.a)(e,["children","showValues","values"]),u=!t;return Object(c.createElement)(Bo,Object(o.a)({},l,{isPositionAbsolute:u,"aria-hidden":"true"}),Object(c.createElement)(qo,{showValues:r,values:s}),t)};var oa=Object(c.forwardRef)((function(e,t){var n=e.className,r=Object(i.a)(e,["className"]),a=u()("components-button-group",n);return Object(c.createElement)("div",Object(o.a)({ref:t,role:"group",className:a},r))})),aa=Object(c.createContext)({}),ia=function(){return Object(c.useContext)(aa)};function ca(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return isNaN(e)?"".concat(8,"px"):"".concat(8*e,"px")}var sa={borderColor:Ae("lightGray.500"),borderRadius:"3px",backgroundShady:Ae("lightGray.200")},la=sa.borderColor,ua=sa.borderRadius,da=sa.backgroundShady,fa=je("div",{target:"e1q7k77g0",label:"CardUI"})("background:",Ae("white"),";box-sizing:border-box;border-radius:",ua,";border:1px solid ",la,";",ga,";&.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 );}"),ha=je(Sn,{target:"e1q7k77g1",label:"HeaderUI"})("border-bottom:1px solid ",la,";border-top-left-radius:",ua,";border-top-right-radius:",ua,";box-sizing:border-box;&:last-child{border-bottom:none;}",ya,";",ga,";",Oa,";"),pa=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:",ua,";border-top-right-radius:",ua,";}&:last-of-type{border-bottom-left-radius:",ua,";border-bottom-right-radius:",ua,";}"),ba=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(ca(3)," ").concat(ca(4),";\n\t\t\t}\n\t\t\t&-medium {\n\t\t\t\tpadding: ").concat(ca(2)," ").concat(ca(3),";\n\t\t\t}\n\t\t\t&-small {\n\t\t\t\tpadding: ").concat(ca(2),";\n\t\t\t}\n\t\t\t&-extraSmall {\n\t\t\t\tpadding: ").concat(ca(1),";\n\t\t\t}\n\t\t}\n\t")}),";",Oa,";"),va=je(Sn,{target:"e1q7k77g4",label:"FooterUI"})("border-top:1px solid ",la,";border-bottom-left-radius:",ua,";border-bottom-right-radius:",ua,";box-sizing:border-box;&:first-of-type{border-top:none;}",ya,";",ga,";",Oa,";"),ma=je(r.HorizontalRule,{target:"e1q7k77g5",label:"DividerUI"})("all:unset;border-top:1px solid ",la,";box-sizing:border-box;display:block;height:0;width:100%;");function ya(){return"\n\t\t&.is-size {\n\t\t\t&-large {\n\t\t\t\tpadding: ".concat(ca(3)," ").concat(ca(4),";\n\t\t\t}\n\t\t\t&-medium {\n\t\t\t\tpadding: ").concat(ca(2)," ").concat(ca(3),";\n\t\t\t}\n\t\t\t&-small {\n\t\t\t\tpadding: ").concat(ca(2),";\n\t\t\t}\n\t\t\t&-extraSmall {\n\t\t\t\tpadding: ").concat(ca(1),";\n\t\t\t}\n\t\t}\n\t")}function ga(){return"\n\t\t&.is-borderless {\n\t\t\tborder: none;\n\t\t}\n\t"}function Oa(){return"\n\t\t&.is-shady {\n\t\t\tbackground: ".concat(da,";\n\t\t}\n\t")}function ja(e){var t=e.className,n=e.isBorderless,r=e.isElevated,a=e.size,s=Object(i.a)(e,["className","isBorderless","isElevated","size"]),l=aa.Provider,d={isBorderless:n,isElevated:r,size:a},f=u()("components-card",n&&"is-borderless",r&&"is-elevated",a&&"is-size-".concat(a),t);return Object(c.createElement)(l,{value:d},Object(c.createElement)(fa,Object(o.a)({},s,{className:f})))}ja.defaultProps={isBorderless:!1,isElevated:!1,size:"medium"};var wa=ja;function ka(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 _a={isShady:!1,size:"medium"};var Sa=function(e){var t=e.className,n=e.isShady,r=Object(i.a)(e,["className","isShady"]),a=function(e){for(var t=1;t0&&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 a=n.toRgb(),i=n.toHex();0===r.s&&(r.h=t||0,o.h=t||0);var c="000000"===i&&0===a.a;return{color:n,hex:c?"transparent":"#".concat(i),hsl:r,hsv:o,oldHue:e.h||t||r.h,rgb:a,source:e.source}}function Va(e,t){e.preventDefault();var n=t.getBoundingClientRect(),r=n.left,o=n.top,a=n.width,i=n.height,c="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,s="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,l=c-(r+window.pageXOffset),u=s-(o+window.pageYOffset);return l<0?l=0:l>a?l=a:u<0?u=0:u>i&&(u=i),{top:u,left:l,width:a,height:i}}function Fa(e){var t="#"===String(e).charAt(0)?1:0;return e.length!==4+t&&e.length<7+t&&ke()(e).isValid()}function Ba(e){var t=e.target,n=e.callback,r=e.shortcut,o=e.bindGlobal,a=e.eventName;return Object(E.useKeyboardShortcut)(r,n,{bindGlobal:o,target:t,eventName:a}),null}var Ka=function(e){var t=e.children,n=e.shortcuts,r=e.bindGlobal,o=e.eventName,a=Object(c.useRef)(),i=Object(s.map)(n,(function(e,t){return Object(c.createElement)(Ba,{key:t,shortcut:t,callback:e,bindGlobal:r,eventName:o,target:a})}));return c.Children.count(t)?Object(c.createElement)("div",{ref:a},i,t):i};function Wa(){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}}var Ua=function(e){Object(mt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(vt.a)(t);if(Wa()){var r=Object(vt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(bt.a)(this,e)});function r(){var e;return Object(ft.a)(this,r),(e=n.apply(this,arguments)).container=Object(c.createRef)(),e.increase=e.increase.bind(Object(ht.a)(e)),e.decrease=e.decrease.bind(Object(ht.a)(e)),e.handleChange=e.handleChange.bind(Object(ht.a)(e)),e.handleMouseDown=e.handleMouseDown.bind(Object(ht.a)(e)),e.handleMouseUp=e.handleMouseUp.bind(Object(ht.a)(e)),e}return Object(pt.a)(r,[{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 a={h:n.h,s:n.s,l:n.l,a:(parseInt(100*n.a,10)+e)/100,source:"rgb"};o(a)}},{key:"decrease",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01,t=this.props,n=t.hsl,r=t.onChange,o=void 0===r?s.noop:r,a=parseInt(100*n.a,10)-parseInt(100*e,10),i={h:n.h,s:n.s,l:n.l,a:n.a<=e?0:a/100,source:"rgb"};o(i)}},{key:"handleChange",value:function(e){var t=this.props.onChange,n=void 0===t?s.noop:t,r=function(e,t,n){var r=Va(e,n),o=r.left,a=r.width,i=o<0?0:Math.round(100*o/a)/100;return t.hsl.a!==i?{h:t.hsl.h,s:t.hsl.s,l:t.hsl.l,a:i,source:"rgb"}:null}(e,this.props,this.container.current);r&&n(r,e)}},{key:"handleMouseDown",value:function(e){this.handleChange(e),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)}},{key:"handleMouseUp",value:function(){this.unbindEventListeners()}},{key:"preventKeyEvents",value:function(e){e.keyCode!==gt.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,"%")},a={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)(Ka,{shortcuts:a},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}))))}}]),r}(c.Component),Ga=Object(E.pure)(Ua);function $a(){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}}var qa=function(e){Object(mt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(vt.a)(t);if($a()){var r=Object(vt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(bt.a)(this,e)});function r(){var e;return Object(ft.a)(this,r),(e=n.apply(this,arguments)).container=Object(c.createRef)(),e.increase=e.increase.bind(Object(ht.a)(e)),e.decrease=e.decrease.bind(Object(ht.a)(e)),e.handleChange=e.handleChange.bind(Object(ht.a)(e)),e.handleMouseDown=e.handleMouseDown.bind(Object(ht.a)(e)),e.handleMouseUp=e.handleMouseUp.bind(Object(ht.a)(e)),e}return Object(pt.a)(r,[{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,a={h:n.h+e>=359?359:n.h+e,s:n.s,l:n.l,a:n.a,source:"rgb"};o(a)}},{key:"decrease",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=this.props,n=t.hsl,r=t.onChange,o=void 0===r?s.noop:r,a={h:n.h<=e?0:n.h-e,s:n.s,l:n.l,a:n.a,source:"rgb"};o(a)}},{key:"handleChange",value:function(e){var t=this.props.onChange,n=void 0===t?s.noop:t,r=function(e,t,n){var r=Va(e,n),o=r.left,a=r.width,i=o>=a?359:360*(100*o/a)/100;return t.hsl.h!==i?{h:i,s:t.hsl.s,l:t.hsl.l,a:t.hsl.a,source:"rgb"}:null}(e,this.props,this.container.current);r&&n(r,e)}},{key:"handleMouseDown",value:function(e){this.handleChange(e),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)}},{key:"handleMouseUp",value:function(){this.unbindEventListeners()}},{key:"preventKeyEvents",value:function(e){e.keyCode!==gt.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,a={left:"".concat(100*r.h/360,"%")},i={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)(Ka,{shortcuts:i},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:a,onKeyDown:this.preventKeyEvents}),Object(c.createElement)(P,{as:"p",id:"components-color-picker__hue-description-".concat(o)},Object(S.__)("Move the arrow left or right to change hue.")))))}}]),r}(c.Component),Ya=Object(E.compose)(E.pure,E.withInstanceId)(qa),Za=n(296);function Xa(e){var t=e.label,n=e.hideLabelFromVision,r=e.value,a=e.help,s=e.className,l=e.onChange,u=e.type,d=void 0===u?"text":u,f=Object(i.a)(e,["label","hideLabelFromVision","value","help","className","onChange","type"]),h=Object(E.useInstanceId)(Xa),p="inspector-text-control-".concat(h);return Object(c.createElement)(lt,{label:t,hideLabelFromVision:n,id:p,help:a,className:s},Object(c.createElement)("input",Object(o.a)({className:"components-text-control__input",type:d,id:p,value:r,onChange:function(e){return l(e.target.value)},"aria-describedby":a?p+"__help":void 0},f)))}function Ja(e){return function(){var t,n=Object(vt.a)(e);if(Qa()){var r=Object(vt.a)(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return Object(bt.a)(this,t)}}function Qa(){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}}var ei=function(e){Object(mt.a)(n,e);var t=Ja(n);function n(){var e;return Object(ft.a)(this,n),(e=t.apply(this,arguments)).handleBlur=e.handleBlur.bind(Object(ht.a)(e)),e.handleChange=e.handleChange.bind(Object(ht.a)(e)),e.handleKeyDown=e.handleKeyDown.bind(Object(ht.a)(e)),e}return Object(pt.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&&Fa(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===gt.ENTER||t===gt.UP||t===gt.DOWN){var n=this.props,r=n.value,o=n.valueKey;(0,n.onChange)({source:n.source,state:"commit",value:r,valueKey:o})}}},{key:"render",value:function(){var e=this,t=this.props,n=t.label,r=t.value,a=Object(i.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)(a,["onChange","valueKey","source"])))}}]),n}(c.Component),ti=Object(E.pure)(jt.a),ni=function(e){Object(mt.a)(n,e);var t=Ja(n);function n(e){var r,o=e.hsl;Object(ft.a)(this,n),r=t.apply(this,arguments);var a=1===o.a?"hex":"rgb";return r.state={view:a},r.toggleViews=r.toggleViews.bind(Object(ht.a)(r)),r.resetDraftValues=r.resetDraftValues.bind(Object(ht.a)(r)),r.handleChange=r.handleChange.bind(Object(ht.a)(r)),r.normalizeValue=r.normalizeValue.bind(Object(ht.a)(r)),r}return Object(pt.a)(n,[{key:"toggleViews",value:function(){"hex"===this.state.view?(this.setState({view:"rgb"},this.resetDraftValues),Object(kt.speak)(Object(S.__)("RGB mode active"))):"rgb"===this.state.view?(this.setState({view:"hsl"},this.resetDraftValues),Object(kt.speak)(Object(S.__)("Hue/saturation/lightness mode active"))):"hsl"===this.state.view&&(1===this.props.hsl.a?(this.setState({view:"hex"},this.resetDraftValues),Object(kt.speak)(Object(S.__)("Hex color mode active"))):(this.setState({view:"rgb"},this.resetDraftValues),Object(kt.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)(ei,{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)(P,{as:"legend"},n),Object(c.createElement)("div",{className:"components-color-picker__inputs-fields"},Object(c.createElement)(ei,{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)(ei,{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)(ei,{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)(ei,{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)(P,{as:"legend"},r),Object(c.createElement)("div",{className:"components-color-picker__inputs-fields"},Object(c.createElement)(ei,{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)(ei,{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)(ei,{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)(ei,{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)(ti,{className:"components-color-picker__inputs-toggle",icon:Za.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 ri(){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}}var oi=function(e){Object(mt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(vt.a)(t);if(ri()){var r=Object(vt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(bt.a)(this,e)});function r(e){var t;return Object(ft.a)(this,r),(t=n.call(this,e)).throttle=Object(s.throttle)((function(e,t,n){e(t,n)}),50),t.container=Object(c.createRef)(),t.saturate=t.saturate.bind(Object(ht.a)(t)),t.brighten=t.brighten.bind(Object(ht.a)(t)),t.handleChange=t.handleChange.bind(Object(ht.a)(t)),t.handleMouseDown=t.handleMouseDown.bind(Object(ht.a)(t)),t.handleMouseUp=t.handleMouseUp.bind(Object(ht.a)(t)),t}return Object(pt.a)(r,[{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,a=Object(s.clamp)(n.s+Math.round(100*e),0,100),i={h:n.h,s:a,v:n.v,a:n.a,source:"rgb"};o(i)}},{key:"brighten",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01,t=this.props,n=t.hsv,r=t.onChange,o=void 0===r?s.noop:r,a=Object(s.clamp)(n.v+Math.round(100*e),0,100),i={h:n.h,s:n.s,v:a,a:n.a,source:"rgb"};o(i)}},{key:"handleChange",value:function(e){var t=this.props.onChange,n=void 0===t?s.noop:t,r=function(e,t,n){var r=Va(e,n),o=r.top,a=r.left,i=r.width,c=r.height,s=a<0?0:100*a/i,l=o>=c?0:-100*o/c+100;return l<1&&(l=0),{h:t.hsl.h,s:s,v:l,a:t.hsl.a,source:"rgb"}}(e,this.props,this.container.current);this.throttle(n,r,e)}},{key:"handleMouseDown",value:function(e){this.handleChange(e),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)}},{key:"handleMouseUp",value:function(){this.unbindEventListeners()}},{key:"preventKeyEvents",value:function(e){e.keyCode!==gt.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,a={top:"".concat(100-n.v,"%"),left:"".concat(n.s,"%")},i={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)(Ka,{shortcuts:i},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)(jt.a,{"aria-label":Object(S.__)("Choose a shade"),"aria-describedby":"color-picker-saturation-".concat(o),className:"components-color-picker__saturation-pointer",style:a,onKeyDown:this.preventKeyEvents}),Object(c.createElement)(P,{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."))))}}]),r}(c.Component),ai=Object(E.compose)(E.pure,E.withInstanceId)(oi);function ii(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function ci(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 si(e){for(var t=1;tt||a>e&&i=t&&c>=n?a-e-r:i>t&&cn?i-t+o:0}var ki=0;function _i(e,t){e&&function(e,t){var n=t.scrollMode,r=t.block,o=t.inline,a=t.boundary,i=t.skipOverflowHiddenElements,c="function"==typeof a?a:function(e){return e!==a};if(!gi(e))throw new TypeError("Invalid target");for(var s=document.scrollingElement||document.documentElement,l=[],u=e;gi(u)&&c(u);){if((u=u.parentNode)===s){l.push(u);break}u===document.body&&ji(u)&&!ji(document.documentElement)||ji(u,i)&&l.push(u)}for(var d=window.visualViewport?visualViewport.width:innerWidth,f=window.visualViewport?visualViewport.height:innerHeight,h=window.scrollX||pageXOffset,p=window.scrollY||pageYOffset,b=e.getBoundingClientRect(),v=b.height,m=b.width,y=b.top,g=b.right,O=b.bottom,j=b.left,w="start"===r||"nearest"===r?y:"end"===r?O:y+v/2,k="center"===o?j+m/2:"end"===o?g:j,_=[],S=0;S=0&&j>=0&&O<=f&&g<=d&&y>=D&&O<=z&&j>=T&&g<=P)return _;var I=getComputedStyle(E),R=parseInt(I.borderLeftWidth,10),N=parseInt(I.borderTopWidth,10),A=parseInt(I.borderRightWidth,10),H=parseInt(I.borderBottomWidth,10),L=0,V=0,F="offsetWidth"in E?E.offsetWidth-E.clientWidth-R-A:0,B="offsetHeight"in E?E.offsetHeight-E.clientHeight-N-H:0;if(s===E)L="start"===r?w:"end"===r?w-f:"nearest"===r?wi(p,p+f,f,N,H,p+w,p+w+v,v):w-f/2,V="start"===o?k:"center"===o?k-d/2:"end"===o?k-d:wi(h,h+d,d,R,A,h+k,h+k+m,m),L=Math.max(0,L+p),V=Math.max(0,V+h);else{L="start"===r?w-D-N:"end"===r?w-z+H+B:"nearest"===r?wi(D,z,M,N,H+B,w,w+v,v):w-(D+M/2)+B/2,V="start"===o?k-T-R:"center"===o?k-(T+x/2)+F/2:"end"===o?k-P+A+F:wi(T,P,x,R,A+F,k,k+m,m);var K=E.scrollLeft,W=E.scrollTop;w+=W-(L=Math.max(0,Math.min(W+L,E.scrollHeight-M+B))),k+=K-(V=Math.max(0,Math.min(K+V,E.scrollWidth-x+F)))}_.push({el:E,top:L,left:V})}return _}(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 Si(e,t){return e===t||e.contains&&e.contains(t)}function Ei(e,t){var n;function r(){n&&clearTimeout(n)}function o(){for(var o=arguments.length,a=new Array(o),i=0;i1?n-1:0),o=1;o=37&&n<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t}function Ii(e,t,n,r,o){if(void 0===o&&(o=!0),0===n)return-1;var a=n-1;("number"!=typeof t||t<0||t>=n)&&(t=e>0?-1:a+1);var i=t+e;i<0?i=o?a:0:i>a&&(i=o?0:a);var c=Ri(e,i,n,r,o);return-1===c?t>=n?-1:t:c}function Ri(e,t,n,r,o){var a=r(t);if(!a||!a.hasAttribute("disabled"))return t;if(e>0){for(var i=t+1;i=0;c--)if(!r(c).hasAttribute("disabled"))return c;return o?e>0?Ri(1,0,n,r,!1):Ri(-1,n-1,n,r,!1):-1}function Ni(e,t,n,r){return void 0===r&&(r=!0),t.some((function(t){return t&&(Si(t,e)||r&&Si(t,n.activeElement))}))}var Ai=Ei((function(){Li().textContent=""}),500);function Hi(e,t){var n=Li(t);e&&(n.textContent=e,Ai())}function Li(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 Vi={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function Fi(e,t,n){var r=e.props,a=e.type,i={};Object.keys(t).forEach((function(e){!function(e,t,n,r){var o="on"+Gi(e)+"Change";t[o]&&void 0!==r[e]&&r[e]!==n[e]&&t[o](r)}(e,r,t,n),n[e]!==t[e]&&(i[e]=n[e])})),r.onStateChange&&Object.keys(i).length&&r.onStateChange(Object(o.a)({type:a},i))}var Bi=Ei((function(e,t){Hi(e(),t)}),200);function Ki(e){var t=e.id,n=e.labelId,r=e.menuId,o=e.getItemId,a=e.toggleButtonId,i=void 0===t?"downshift-"+xi():t;return{labelId:n||i+"-label",menuId:r||i+"-menu",getItemId:o||function(e){return i+"-item-"+e},toggleButtonId:a||i+"-toggle-button"}}function Wi(e,t,n){return void 0!==e?e:0===n.length?-1:n.indexOf(t)}function Ui(e){return/^\S{1}$/.test(e)}function Gi(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function $i(e){var t=Object(v.useRef)(e);return t.current=e,t}function qi(e,t,n){var r=Object(v.useRef)(),a=Object(v.useRef)(),i=Object(v.useCallback)((function(t,n){a.current=n,t=Pi(t,n.props);var r=e(t,n);return n.props.stateReducer(t,Object(o.a)({},n,{changes:r}))}),[e]),c=Object(v.useReducer)(i,t),s=c[0],l=c[1],u=$i(n),d=Object(v.useCallback)((function(e){return l(Object(o.a)({props:u.current},e))}),[u]),f=a.current;return Object(v.useEffect)((function(){f&&r.current&&r.current!==s&&Fi(f,Pi(r.current,f.props),s),r.current=s}),[s,n,f]),[s,d]}function Yi(e,t,n){var r=qi(e,t,n),o=r[0],a=r[1];return[Pi(o,n),a]}var Zi={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:_i,circularNavigation:!1,environment:"undefined"==typeof window?{}:window};function Xi(e,t,n){void 0===n&&(n=Vi);var r="default"+Gi(t);return r in e?e[r]:n[t]}function Ji(e,t,n){if(void 0===n&&(n=Vi),t in e)return e[t];var r="initial"+Gi(t);return r in e?e[r]:Xi(e,t,n)}function Qi(e){var t=Ji(e,"selectedItem"),n=Ji(e,"isOpen"),r=Ji(e,"highlightedIndex"),o=Ji(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:o}}function ec(e,t,n,r){var o=e.items,a=e.initialHighlightedIndex,i=e.defaultHighlightedIndex,c=t.selectedItem,s=t.highlightedIndex;return 0===o.length?-1:void 0!==a&&s===a?a:void 0!==i?i:c?0===n?o.indexOf(c):Ii(n,o.indexOf(c),o.length,r,!1):0===n?-1:n<0?o.length-1:0}function tc(e,t,n,r){var o=Object(v.useRef)({isMouseDown:!1,isTouchMove:!1});return Object(v.useEffect)((function(){var a=function(){o.current.isMouseDown=!0},i=function(a){o.current.isMouseDown=!1,e&&!Ni(a.target,t.map((function(e){return e.current})),n.document)&&r()},c=function(){o.current.isTouchMove=!1},s=function(){o.current.isTouchMove=!0},l=function(a){!e||o.current.isTouchMove||Ni(a.target,t.map((function(e){return e.current})),n.document,!1)||r()};return n.addEventListener("mousedown",a),n.addEventListener("mouseup",i),n.addEventListener("touchstart",c),n.addEventListener("touchmove",s),n.addEventListener("touchend",l),function(){n.removeEventListener("mousedown",a),n.removeEventListener("mouseup",i),n.removeEventListener("touchstart",c),n.removeEventListener("touchmove",s),n.removeEventListener("touchend",l)}}),[e,n]),o}function nc(){for(var e=!1,t=Object(v.useRef)(!0),n=arguments.length,r=new Array(n),o=0;o=0&&{selectedItem:a.items[l]});break;case 13:n={highlightedIndex:ec(a,e,1,t.getItemNodeFromIndex),isOpen:!0};break;case 14:n={highlightedIndex:ec(a,e,-1,t.getItemNodeFromIndex),isOpen:!0};break;case 5:case 6:n=Object(o.a)({isOpen:Xi(a,"isOpen"),highlightedIndex:Xi(a,"highlightedIndex")},e.highlightedIndex>=0&&{selectedItem:a.items[e.highlightedIndex]});break;case 3:n={highlightedIndex:Ri(1,0,a.items.length,t.getItemNodeFromIndex,!1)};break;case 4:n={highlightedIndex:Ri(-1,a.items.length-1,a.items.length,t.getItemNodeFromIndex,!1)};break;case 2:case 8:n={isOpen:!1,highlightedIndex:-1};break;case 7:var u=t.key,d=""+e.inputValue+u,f=rc(d,e.highlightedIndex,a.items,a.itemToString,t.getItemNodeFromIndex);n=Object(o.a)({inputValue:d},f>=0&&{highlightedIndex:f});break;case 0:n={highlightedIndex:Ii(i?5:1,e.highlightedIndex,a.items.length,t.getItemNodeFromIndex,a.circularNavigation)};break;case 1:n={highlightedIndex:Ii(i?-5:-1,e.highlightedIndex,a.items.length,t.getItemNodeFromIndex,a.circularNavigation)};break;case 9:n={highlightedIndex:-1};break;case 12:case 16:n={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:ec(a,e,0)};break;case 17:n={isOpen:!0,highlightedIndex:ec(a,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:Xi(a,"highlightedIndex"),isOpen:Xi(a,"isOpen"),selectedItem:Xi(a,"selectedItem"),inputValue:Xi(a,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return Object(o.a)({},e,n)}function cc(e){void 0===e&&(e={});var t=Object(o.a)({},oc,e),n=t.items,r=t.scrollIntoView,a=t.environment,i=t.initialIsOpen,c=t.defaultIsOpen,s=t.itemToString,l=t.getA11ySelectionMessage,u=t.getA11yStatusMessage,d=Yi(ic,Qi(t),t),f=d[0],h=d[1],p=f.isOpen,b=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)(Ki(t)),E=Object(v.useRef)(),C=Object(v.useRef)(!0),M=Object(v.useRef)(t),x=$i({state:f,props:t}),D=function(e){return j.current[S.current.getItemId(e)]};Object(v.useEffect)((function(){if(!C.current){var e=E.current;Bi((function(){return u({isOpen:p,highlightedIndex:b,selectedItem:m,inputValue:y,highlightedItem:n[b],resultCount:n.length,itemToString:s,previousResultCount:e})}),a.document)}}),[p,b,y,n]),Object(v.useEffect)((function(){if(!C.current){var e=E.current;Bi((function(){return l({isOpen:p,highlightedIndex:b,selectedItem:m,inputValue:y,highlightedItem:n[b],resultCount:n.length,itemToString:s,previousResultCount:e})}),a.document)}}),[m]),Object(v.useEffect)((function(){C.current&&(_.current=Ei((function(e){e({type:21,inputValue:""})}),500)),y&&_.current(h)}),[y]),Object(v.useEffect)((function(){C.current?(i||c||p)&&O.current&&O.current.focus():p?O.current&&O.current.focus():a.document.activeElement===O.current&&g.current&&(k.current=!1,g.current.focus())}),[p]),Object(v.useEffect)((function(){b<0||!p||!Object.keys(j.current).length||(!1===w.current?w.current=!0:r(D(b),O.current))}),[b]),Object(v.useEffect)((function(){C.current||(E.current=n.length)})),Object(v.useEffect)((function(){C.current||(M.current,M.current=t)}),[f,t]);var P=tc(p,[O,g],a,(function(){h({type:8})})),z=nc("getMenuProps","getToggleButtonProps");Object(v.useEffect)((function(){C.current=!1}),[]);var T=Object(v.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),h({type:13,getItemNodeFromIndex:D,shiftKey:e.shiftKey})},ArrowUp:function(e){e.preventDefault(),h({type:14,getItemNodeFromIndex:D,shiftKey:e.shiftKey})}}}),[h]),I=Object(v.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),h({type:0,getItemNodeFromIndex:D,shiftKey:e.shiftKey})},ArrowUp:function(e){e.preventDefault(),h({type:1,getItemNodeFromIndex:D,shiftKey:e.shiftKey})},Home:function(e){e.preventDefault(),h({type:3,getItemNodeFromIndex:D})},End:function(e){e.preventDefault(),h({type:4,getItemNodeFromIndex:D})},Escape:function(){h({type:2})},Enter:function(e){e.preventDefault(),h({type:5})}," ":function(e){e.preventDefault(),h({type:6})}}}),[h]),R=Object(v.useCallback)((function(){h({type:16})}),[h]),N=Object(v.useCallback)((function(){h({type:18})}),[h]),A=Object(v.useCallback)((function(){h({type:17})}),[h]),H=Object(v.useCallback)((function(e){h({type:19,highlightedIndex:e})}),[h]),L=Object(v.useCallback)((function(e){h({type:20,selectedItem:e})}),[h]),V=Object(v.useCallback)((function(){h({type:22})}),[h]),F=Object(v.useCallback)((function(e){h({type:21,inputValue:e})}),[h]),B=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,a=r.onMouseLeave,i=r.refKey,c=void 0===i?"ref":i,s=r.onKeyDown,l=r.onBlur,u=r.ref,d=Object(vi.a)(r,["onMouseLeave","refKey","onKeyDown","onBlur","ref"]),f=(void 0===t?{}:t).suppressRefError,p=void 0!==f&&f,b=x.current.state;return z("getMenuProps",p,c,O),Object(o.a)(((n={})[c]=Mi(u,(function(e){O.current=e})),n.id=S.current.menuId,n.role="listbox",n["aria-labelledby"]=S.current.labelId,n.tabIndex=-1,n),b.isOpen&&b.highlightedIndex>-1&&{"aria-activedescendant":S.current.getItemId(b.highlightedIndex)},{onMouseLeave:Ci(a,(function(){h({type:9})})),onKeyDown:Ci(s,(function(e){var t=Ti(e);t&&I[t]?I[t](e):Ui(t)&&h({type:7,key:t,getItemNodeFromIndex:D})})),onBlur:Ci(l,(function(){!1!==k.current?!P.current.isMouseDown&&h({type:8}):k.current=!0}))},d)}),[h,x,I,P,z]);return{getToggleButtonProps:Object(v.useCallback)((function(e,t){var n,r=void 0===e?{}:e,a=r.onClick,i=r.onKeyDown,c=r.refKey,s=void 0===c?"ref":c,l=r.ref,u=Object(vi.a)(r,["onClick","onKeyDown","refKey","ref"]),d=(void 0===t?{}:t).suppressRefError,f=void 0!==d&&d,p=Object(o.a)(((n={})[s]=Mi(l,(function(e){g.current=e})),n.id=S.current.toggleButtonId,n["aria-haspopup"]="listbox",n["aria-expanded"]=x.current.state.isOpen,n["aria-labelledby"]=S.current.labelId+" "+S.current.toggleButtonId,n),u);return u.disabled||(p.onClick=Ci(a,(function(){h({type:12})})),p.onKeyDown=Ci(i,(function(e){var t=Ti(e);t&&T[t]?T[t](e):Ui(t)&&h({type:15,key:t,getItemNodeFromIndex:D})}))),z("getToggleButtonProps",f,s,g),p}),[h,x,T,z]),getLabelProps:B,getMenuProps:K,getItemProps:Object(v.useCallback)((function(e){var t,n=void 0===e?{}:e,r=n.item,a=n.index,i=n.onMouseMove,c=n.onClick,s=n.refKey,l=void 0===s?"ref":s,u=n.ref,d=Object(vi.a)(n,["item","index","onMouseMove","onClick","refKey","ref"]),f=x.current,p=f.state,b=f.props,v=Wi(a,r,b.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===p.highlightedIndex),id:S.current.getItemId(v)})[l]=Mi(u,(function(e){e&&(j.current[S.current.getItemId(v)]=e)})),t),d);return d.disabled||(m.onMouseMove=Ci(i,(function(){a!==p.highlightedIndex&&(w.current=!1,h({type:10,index:a}))})),m.onClick=Ci(c,(function(){h({type:11,index:a})}))),m}),[h,x]),toggleMenu:R,openMenu:A,closeMenu:N,setHighlightedIndex:H,selectItem:L,reset:V,setInputValue:F,highlightedIndex:b,isOpen:p,selectedItem:m,inputValue:y}}cc.stateChangeTypes=ac;yi.a.array.isRequired,yi.a.func,yi.a.func,yi.a.func,yi.a.bool,yi.a.number,yi.a.number,yi.a.number,yi.a.bool,yi.a.bool,yi.a.bool,yi.a.any,yi.a.any,yi.a.any,yi.a.string,yi.a.string,yi.a.string,yi.a.string,yi.a.string,yi.a.string,yi.a.func,yi.a.string,yi.a.string,yi.a.func,yi.a.func,yi.a.func,yi.a.func,yi.a.func,yi.a.func,yi.a.shape({addEventListener:yi.a.func,removeEventListener:yi.a.func,document:yi.a.shape({getElementById:yi.a.func,activeElement:yi.a.any,body:yi.a.any})});Object(o.a)({},Zi,{getA11yStatusMessage:Di,circularNavigation:!0});yi.a.array,yi.a.array,yi.a.array,yi.a.func,yi.a.func,yi.a.func,yi.a.number,yi.a.number,yi.a.number,yi.a.func,yi.a.func,yi.a.string,yi.a.string,yi.a.shape({addEventListener:yi.a.func,removeEventListener:yi.a.func,document:yi.a.shape({getElementById:yi.a.func,activeElement:yi.a.any,body:yi.a.any})});var sc=function(e){return e&&e.name},lc=function(e,t){var n=e.selectedItem,r=t.type,o=t.changes,a=t.props.items;switch(r){case cc.stateChangeTypes.ToggleButtonKeyDownArrowDown:return{selectedItem:a[n?Math.min(a.indexOf(n)+1,a.length-1):0]};case cc.stateChangeTypes.ToggleButtonKeyDownArrowUp:return{selectedItem:a[n?Math.max(a.indexOf(n)-1,0):a.length-1]};default:return o}};function uc(e){var t=e.className,n=e.hideLabelFromVision,r=e.label,a=e.options,i=e.onChange,s=e.value,l=cc({initialSelectedItem:a[0],items:a,itemToString:sc,onSelectedItemChange:i,selectedItem:s,stateReducer:lc}),d=l.getLabelProps,f=l.getToggleButtonProps,h=l.getMenuProps,p=l.getItemProps,b=l.isOpen,v=l.highlightedIndex,m=l.selectedItem,y=h({className:"components-custom-select-control__menu","aria-hidden":!b});return y["aria-activedescendant"]&&"downshift-null"===y["aria-activedescendant"].slice(0,"downshift-null".length)&&delete y["aria-activedescendant"],Object(c.createElement)("div",{className:u()("components-custom-select-control",t)},n?Object(c.createElement)(P,Object(o.a)({as:"label"},d()),r):Object(c.createElement)("label",d({className:"components-custom-select-control__label"}),r),Object(c.createElement)(jt.a,f({"aria-label":r,"aria-labelledby":void 0,className:"components-custom-select-control__button",isSmall:!0}),sc(m),Object(c.createElement)(Ia.a,{icon:Za.a,className:"components-custom-select-control__button-icon"})),Object(c.createElement)("ul",y,b&&a.map((function(e,t){return Object(c.createElement)("li",p({item:e,index:t,key:e.key,className:u()(e.className,"components-custom-select-control__item",{"is-highlighted":t===v}),style:e.style}),e===m&&Object(c.createElement)(Ia.a,{icon:Ra.a,className:"components-custom-select-control__item-icon"}),e.name)}))))}var dc=n(148),fc=(n(306),n(43)),hc=n.n(fc),pc=n(270),bc=n.n(pc);function vc(){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}}var mc=function(e){Object(mt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(vt.a)(t);if(vc()){var r=Object(vt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(bt.a)(this,e)});function r(){var e;return Object(ft.a)(this,r),(e=n.apply(this,arguments)).onChangeMoment=e.onChangeMoment.bind(Object(ht.a)(e)),e.nodeRef=Object(c.createRef)(),e.keepFocusInside=e.keepFocusInside.bind(Object(ht.a)(e)),e}return Object(pt.a)(r,[{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?hc()(n):hc()(),a={hours:o.hours(),minutes:o.minutes(),seconds:0};r(e.set(a).format("YYYY-MM-DDTHH:mm:ss"))}},{key:"getMomentDate",value:function(e){return null===e?null:e?hc()(e):hc()()}},{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)(bc.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())},onPrevMonthClick:this.keepFocusInside,onNextMonthClick:this.keepFocusInside}))}}]),r}(c.Component);function yc(){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}}var gc=function(e){Object(mt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(vt.a)(t);if(yc()){var r=Object(vt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(bt.a)(this,e)});function r(){var e;return Object(ft.a)(this,r),(e=n.apply(this,arguments)).state={day:"",month:"",year:"",hours:"",minutes:"",am:"",date:null},e.changeDate=e.changeDate.bind(Object(ht.a)(e)),e.updateMonth=e.updateMonth.bind(Object(ht.a)(e)),e.onChangeMonth=e.onChangeMonth.bind(Object(ht.a)(e)),e.updateDay=e.updateDay.bind(Object(ht.a)(e)),e.onChangeDay=e.onChangeDay.bind(Object(ht.a)(e)),e.updateYear=e.updateYear.bind(Object(ht.a)(e)),e.onChangeYear=e.onChangeYear.bind(Object(ht.a)(e)),e.updateHours=e.updateHours.bind(Object(ht.a)(e)),e.updateMinutes=e.updateMinutes.bind(Object(ht.a)(e)),e.onChangeHours=e.onChangeHours.bind(Object(ht.a)(e)),e.onChangeMinutes=e.onChangeMinutes.bind(Object(ht.a)(e)),e.renderMonth=e.renderMonth.bind(Object(ht.a)(e)),e.renderDay=e.renderDay.bind(Object(ht.a)(e)),e.renderDayMonthFormat=e.renderDayMonthFormat.bind(Object(ht.a)(e)),e}return Object(pt.a)(r,[{key:"componentDidMount",value:function(){this.syncState(this.props)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.currentTime,r=t.is12Hour;n===e.currentTime&&r===e.is12Hour||this.syncState(this.props)}},{key:"changeDate",value:function(e){var t=e.clone().startOf("minute");this.setState({date:t}),this.props.onChange(e.format("YYYY-MM-DDTHH:mm:ss"))}},{key:"getMaxHours",value:function(){return this.props.is12Hour?12:23}},{key:"getMinHours",value:function(){return this.props.is12Hour?1:0}},{key:"syncState",value:function(e){var t=e.currentTime,n=e.is12Hour,r=t?hc()(t):hc()(),o=r.format("DD"),a=r.format("MM"),i=r.format("YYYY"),c=r.format("mm"),s=r.format("H")<=11?"AM":"PM",l=r.format(n?"hh":"HH"),u=t?hc()(t):hc()();this.setState({day:o,month:a,year:i,minutes:c,hours:l,am:s,date:u})}},{key:"updateHours",value:function(){var e=this.props.is12Hour,t=this.state,n=t.am,r=t.hours,o=t.date,a=parseInt(r,10);if(a!==o.hour())if(!Object(s.isInteger)(a)||e&&(a<1||a>12)||!e&&(a<0||a>23))this.syncState(this.props);else{var i=e?o.clone().hours("AM"===n?a%12:(a%12+12)%24):o.clone().hours(a);this.changeDate(i)}}},{key:"updateMinutes",value:function(){var e=this.state,t=e.minutes,n=e.date,r=parseInt(t,10);if(r!==n.minute())if(!Object(s.isInteger)(r)||r<0||r>59)this.syncState(this.props);else{var o=n.clone().minutes(r);this.changeDate(o)}}},{key:"updateDay",value:function(){var e=this.state,t=e.day,n=e.date,r=parseInt(t,10);if(r!==n.date())if(!Object(s.isInteger)(r)||r<1||r>31)this.syncState(this.props);else{var o=n.clone().date(r);this.changeDate(o)}}},{key:"updateMonth",value:function(){var e=this.state,t=e.month,n=e.date,r=parseInt(t,10);if(r!==n.month()+1)if(!Object(s.isInteger)(r)||r<1||r>12)this.syncState(this.props);else{var o=n.clone().month(r-1);this.changeDate(o)}}},{key:"updateYear",value:function(){var e=this.state,t=e.year,n=e.date,r=parseInt(t,10);if(r!==n.year())if(!Object(s.isInteger)(r)||r<0||r>9999)this.syncState(this.props);else{var o=n.clone().year(r);this.changeDate(o)}}},{key:"updateAmPm",value:function(e){var t=this;return function(){var n,r=t.state,o=r.am,a=r.date,i=r.hours;o!==e&&(n="PM"===e?a.clone().hours((parseInt(i,10)%12+12)%24):a.clone().hours(parseInt(i,10)%12),t.changeDate(n))}}},{key:"onChangeDay",value:function(e){this.setState({day:e.target.value})}},{key:"onChangeMonth",value:function(e){this.setState({month:e.target.value})}},{key:"onChangeYear",value:function(e){this.setState({year:e.target.value})}},{key:"onChangeHours",value:function(e){this.setState({hours:e.target.value})}},{key:"onChangeMinutes",value:function(e){var t=e.target.value;this.setState({minutes:""===t?"":("0"+t).slice(-2)})}},{key:"renderMonth",value:function(e){return Object(c.createElement)("div",{key:"render-month",className:"components-datetime__time-field components-datetime__time-field-month"},Object(c.createElement)("select",{"aria-label":Object(S.__)("Month"),className:"components-datetime__time-field-month-select",value:e,onChange:this.onChangeMonth,onBlur:this.updateMonth},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"))))}},{key:"renderDay",value:function(e){return Object(c.createElement)("div",{key:"render-day",className:"components-datetime__time-field components-datetime__time-field-day"},Object(c.createElement)("input",{"aria-label":Object(S.__)("Day"),className:"components-datetime__time-field-day-input",type:"number",value:e,step:1,min:1,onChange:this.onChangeDay,onBlur:this.updateDay}))}},{key:"renderDayMonthFormat",value:function(e){var t=this.state,n=t.day,r=t.month,o=[this.renderDay(n),this.renderMonth(r)];return e?o:o.reverse()}},{key:"render",value:function(){var e=this.props.is12Hour,t=this.state,n=t.year,r=t.minutes,o=t.hours,a=t.am;return Object(c.createElement)("div",{className:u()("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"},this.renderDayMonthFormat(e),Object(c.createElement)("div",{className:"components-datetime__time-field components-datetime__time-field-year"},Object(c.createElement)("input",{"aria-label":Object(S.__)("Year"),className:"components-datetime__time-field-year-input",type:"number",step:1,value:n,onChange:this.onChangeYear,onBlur:this.updateYear})))),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)("input",{"aria-label":Object(S.__)("Hours"),className:"components-datetime__time-field-hours-input",type:"number",step:1,min:this.getMinHours(),max:this.getMaxHours(),value:o,onChange:this.onChangeHours,onBlur:this.updateHours}),Object(c.createElement)("span",{className:"components-datetime__time-separator","aria-hidden":"true"},":"),Object(c.createElement)("input",{"aria-label":Object(S.__)("Minutes"),className:"components-datetime__time-field-minutes-input",type:"number",min:0,max:59,value:r,onChange:this.onChangeMinutes,onBlur:this.updateMinutes})),e&&Object(c.createElement)(oa,{className:"components-datetime__time-field components-datetime__time-field-am-pm"},Object(c.createElement)(jt.a,{isPrimary:"AM"===a,isSecondary:"AM"!==a,onClick:this.updateAmPm("AM"),className:"components-datetime__time-am-button"},Object(S.__)("AM")),Object(c.createElement)(jt.a,{isPrimary:"PM"===a,isSecondary:"PM"!==a,onClick:this.updateAmPm("PM"),className:"components-datetime__time-pm-button"},Object(S.__)("PM"))))))}}]),r}(c.Component);function Oc(){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}}var jc=function(e){Object(mt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(vt.a)(t);if(Oc()){var r=Object(vt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(bt.a)(this,e)});function r(){var e;return Object(ft.a)(this,r),(e=n.apply(this,arguments)).state={calendarHelpIsVisible:!1},e.onClickDescriptionToggle=e.onClickDescriptionToggle.bind(Object(ht.a)(e)),e}return Object(pt.a)(r,[{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.onChange;return Object(c.createElement)("div",{className:"components-datetime"},!this.state.calendarHelpIsVisible&&Object(c.createElement)(c.Fragment,null,Object(c.createElement)(gc,{currentTime:t,onChange:o,is12Hour:n}),Object(c.createElement)(mc,{currentDate:t,onChange:o,isInvalidDate:r})),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)(jt.a,{className:"components-datetime__date-reset-button",isLink:!0,onClick:function(){return o(null)}},Object(S.__)("Reset")),Object(c.createElement)(jt.a,{className:"components-datetime__date-help-toggle",isLink:!0,onClick:this.onClickDescriptionToggle},this.state.calendarHelpIsVisible?Object(S.__)("Close"):Object(S.__)("Calendar Help"))))}}]),r}(c.Component),wc=n(88);function kc(e){var t=e.help,n=e.label,r=e.multiple,a=void 0!==r&&r,l=e.onChange,u=e.options,d=void 0===u?[]:u,f=e.className,h=e.hideLabelFromVision,p=Object(i.a)(e,["help","label","multiple","onChange","options","className","hideLabelFromVision"]),b=Object(E.useInstanceId)(kc),v="inspector-select-control-".concat(b);return!Object(s.isEmpty)(d)&&Object(c.createElement)(lt,{label:n,hideLabelFromVision:h,id:v,help:t,className:f},Object(c.createElement)("select",Object(o.a)({id:v,className:"components-select-control__input",onChange:function(e){if(a){var t=Object(yt.a)(e.target.options).filter((function(e){return e.selected})).map((function(e){return e.value}));l(t)}else l(e.target.value)},"aria-describedby":t?"".concat(v,"__help"):void 0,multiple:a},p),d.map((function(e,t){return Object(c.createElement)("option",{key:"".concat(e.label,"-").concat(e.value,"-").concat(t),value:e.value,disabled:e.disabled},e.label)}))))}var _c=[{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 Sc=function(e){var t,n,r=e.label,o=e.value,a=e.sizes,i=void 0===a?_c:a,l=e.icon,d=e.onChange,f=e.className,h=void 0===f?"":f,p=Object(c.createElement)(c.Fragment,null,l&&Object(c.createElement)(wc.a,{icon:l}),r);return Object(c.createElement)(kc,{className:u()(h,"block-editor-dimension-control"),label:p,hideLabelFromVision:!1,value:o,onChange:function(e){var t=function(e,t){return e.find((function(e){return t===e.slug}))}(i,e);t&&o!==t.slug?Object(s.isFunction)(d)&&d(t.slug):d(void 0)},options:(t=i,n=t.map((function(e){return{label:e.name,value:e.slug}})),[{label:Object(S.__)("Default"),value:""}].concat(n))})},Ec=n(30);function Cc(){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}}var Mc=Object(c.createContext)(!1),xc=Mc.Consumer,Dc=Mc.Provider,Pc=["BUTTON","FIELDSET","INPUT","OPTGROUP","OPTION","SELECT","TEXTAREA"],zc=function(e){Object(mt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(vt.a)(t);if(Cc()){var r=Object(vt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(bt.a)(this,e)});function r(){var e;return Object(ft.a)(this,r),(e=n.apply(this,arguments)).bindNode=e.bindNode.bind(Object(ht.a)(e)),e.disable=e.disable.bind(Object(ht.a)(e)),e.debouncedDisable=Object(s.debounce)(e.disable,{leading:!0}),e}return Object(pt.a)(r,[{key:"componentDidMount",value:function(){this.disable(),this.observer=new window.MutationObserver(this.debouncedDisable),this.observer.observe(this.node,{childList:!0,attributes:!0,subtree:!0})}},{key:"componentWillUnmount",value:function(){this.observer.disconnect(),this.debouncedDisable.cancel()}},{key:"bindNode",value:function(e){this.node=e}},{key:"disable",value:function(){Ec.focus.focusable.find(this.node).forEach((function(e){Object(s.includes)(Pc,e.nodeName)&&e.setAttribute("disabled",""),e.hasAttribute("tabindex")&&e.removeAttribute("tabindex"),e.hasAttribute("contenteditable")&&e.setAttribute("contenteditable","false")}))}},{key:"render",value:function(){var e=this.props,t=e.className,n=Object(i.a)(e,["className"]);return Object(c.createElement)(Dc,{value:!0},Object(c.createElement)("div",Object(o.a)({ref:this.bindNode,className:u()(t,"components-disabled")},n),this.props.children))}}]),r}(c.Component);zc.Consumer=xc;var Tc=zc;function Ic(){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}}var Rc=function(e){Object(mt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(vt.a)(t);if(Ic()){var r=Object(vt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(bt.a)(this,e)});function r(){var e;return Object(ft.a)(this,r),(e=n.apply(this,arguments)).onDragStart=e.onDragStart.bind(Object(ht.a)(e)),e.onDragOver=e.onDragOver.bind(Object(ht.a)(e)),e.onDragEnd=e.onDragEnd.bind(Object(ht.a)(e)),e.resetDragState=e.resetDragState.bind(Object(ht.a)(e)),e.dragComponentRef=Object(c.createRef)(),e}return Object(pt.a)(r,[{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,a=t.onDragStart,i=void 0===a?s.noop:a,c=document.getElementById(r);if(c){if("function"==typeof e.dataTransfer.setDragImage){var l=document.createElement("div");l.id="drag-image-".concat(r),l.classList.add("components-draggable__invisible-drag-image"),document.body.appendChild(l),e.dataTransfer.setDragImage(l,0,0),this.props.setTimeout((function(){document.body.removeChild(l)}))}e.dataTransfer.setData("text",JSON.stringify(o));var u=c.getBoundingClientRect(),d=c.parentNode,f=parseInt(u.top,10),h=parseInt(u.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(u.width+0,"px"),this.dragComponentRef.current){this.cloneWrapper.style.top="".concat(f-0,"px"),this.cloneWrapper.style.left="".concat(h-0,"px");var p=document.createElement("div");p.innerHTML=this.dragComponentRef.current.innerHTML,this.cloneWrapper.appendChild(p)}else{var b=c.cloneNode(!0);b.id="clone-".concat(r),u.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(h-0,"px")),Array.from(b.querySelectorAll("iframe")).forEach((function(e){return e.parentNode.removeChild(e)})),this.cloneWrapper.appendChild(b)}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(i.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))}}]),r}(c.Component),Nc=Object(E.withSafeTimeout)(Rc),Ac=n(203),Hc=n(64),Lc=n.n(Hc);function Vc(){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}}var Fc=Object(c.createContext)({addDropZone:function(){},removeDropZone:function(){}}),Bc=Fc.Provider,Kc=Fc.Consumer,Wc=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"},Uc=function(e,t){return"file"===e&&t.onFilesDrop||"html"===e&&t.onHTMLDrop||"default"===e&&t.onDrop},Gc=function(e){Object(mt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(vt.a)(t);if(Vc()){var r=Object(vt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(bt.a)(this,e)});function r(){var e;return Object(ft.a)(this,r),(e=n.apply(this,arguments)).onDragOver=e.onDragOver.bind(Object(ht.a)(e)),e.onDrop=e.onDrop.bind(Object(ht.a)(e)),e.addDropZone=e.addDropZone.bind(Object(ht.a)(e)),e.removeDropZone=e.removeDropZone.bind(Object(ht.a)(e)),e.resetDragState=e.resetDragState.bind(Object(ht.a)(e)),e.toggleDraggingOverDocument=Object(s.throttle)(e.toggleDraggingOverDocument.bind(Object(ht.a)(e)),200),e.dropZones=[],e.dropZoneCallbacks={addDropZone:e.addDropZone,removeDropZone:e.removeDropZone},e.state={hoveredDropZone:-1,isDraggingOverDocument:!1,position:null},e}return Object(pt.a)(r,[{key:"componentDidMount",value:function(){window.addEventListener("dragover",this.onDragOver),window.addEventListener("mouseup",this.resetDragState)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragover",this.onDragOver),window.removeEventListener("mouseup",this.resetDragState)}},{key:"addDropZone",value:function(e){this.dropZones.push(e)}},{key:"removeDropZone",value:function(e){this.dropZones=Object(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 Uc(t,e)&&(n=e.element.current,o=r.clientX,a=r.clientY,(i=n.getBoundingClientRect()).bottom!==i.top&&i.left!==i.right&&o>=i.left&&o<=i.right&&a>=i.top&&a<=i.bottom);var n,o,a,i})),a=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)}))})),i=this.dropZones.indexOf(a),c=null;a&&a.withPosition&&(c={x:r.clientX,y:r.clientY});var l=[];this.state.isDraggingOverDocument?i!==this.state.hoveredDropZone?(-1!==this.state.hoveredDropZone&&l.push(this.dropZones[this.state.hoveredDropZone]),a&&l.push(a)):a&&i===this.state.hoveredDropZone&&!Object(s.isEqual)(c,this.state.position)&&l.push(a):l=this.dropZones,l.forEach((function(e){var r=n.dropZones.indexOf(e)===i;e.setState({isDraggingOverDocument:Uc(t,e),isDraggingOverElement:r,position:r?c:null,type:r?t:null})}));var u={isDraggingOverDocument:!0,hoveredDropZone:i,position:c};Lc()(u,this.state)||this.setState(u)}},{key:"onDragOver",value:function(e){this.toggleDraggingOverDocument(e,Wc(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=Wc(e),a=this.dropZones[r];if(this.resetDragState(),a)switch(o){case"file":a.onFilesDrop(Object(yt.a)(e.dataTransfer.files),n);break;case"html":a.onHTMLDrop(e.dataTransfer.getData("text/html"),n);break;case"default":a.onDrop(e,n)}e.stopPropagation(),e.preventDefault()}},{key:"render",value:function(){return Object(c.createElement)("div",{onDrop:this.onDrop,className:"components-drop-zone__provider"},Object(c.createElement)(Bc,{value:this.dropZoneCallbacks},this.props.children))}}]),r}(c.Component);function $c(e){var t=e.element,n=e.onFilesDrop,r=e.onHTMLDrop,o=e.onDrop,i=e.isDisabled,s=e.withPosition,l=e.__unstableIsRelative,u=void 0!==l&&l,d=Object(c.useContext)(Fc),f=d.addDropZone,h=d.removeDropZone,p=Object(c.useState)({isDraggingOverDocument:!1,isDraggingOverElement:!1,type:null}),b=Object(a.a)(p,2),v=b[0],m=b[1];return Object(c.useEffect)((function(){if(!i){var e={element:t,onDrop:o,onFilesDrop:n,onHTMLDrop:r,setState:m,withPosition:s,isRelative:u};return f(e),function(){h(e)}}}),[i,o,n,r,s]),v}function qc(e){var t,n=e.className,r=e.label,o=e.onFilesDrop,a=e.onHTMLDrop,i=e.onDrop,s=Object(c.useRef)(),l=$c({element:s,onFilesDrop:o,onHTMLDrop:a,onDrop:i,__unstableIsRelative:!0}),d=l.isDraggingOverDocument,f=l.isDraggingOverElement,h=l.type;f&&(t=Object(c.createElement)("div",{className:"components-drop-zone__content"},Object(c.createElement)(Ia.a,{icon:Ac.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 p=u()("components-drop-zone",n,Object(x.a)({"is-active":(d||f)&&("file"===h&&o||"html"===h&&a||"default"===h&&i),"is-dragging-over-document":d,"is-dragging-over-element":f},"is-dragging-".concat(h),!!h));return Object(c.createElement)("div",{ref:s,className:p},t)}var Yc=function(e){return Object(c.createElement)(Kc,null,(function(t){var n=t.addDropZone,r=t.removeDropZone;return Object(c.createElement)(qc,Object(o.a)({addDropZone:n,removeDropZone:r},e))}))},Zc=n(37),Xc=n.n(Zc);function Jc(){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}}var Qc=["menuitem","menuitemradio","menuitemcheckbox"];var es=function(e){Object(mt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(vt.a)(t);if(Jc()){var r=Object(vt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(bt.a)(this,e)});function r(){var e;return Object(ft.a)(this,r),(e=n.apply(this,arguments)).onKeyDown=e.onKeyDown.bind(Object(ht.a)(e)),e.bindContainer=e.bindContainer.bind(Object(ht.a)(e)),e.getFocusableContext=e.getFocusableContext.bind(Object(ht.a)(e)),e.getFocusableIndex=e.getFocusableIndex.bind(Object(ht.a)(e)),e}return Object(pt.a)(r,[{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?Ec.focus.tabbable:Ec.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,a=n.eventToOffset,i=n.onNavigate,c=void 0===i?s.noop:i,l=n.stopNavigationEvents,u=a(e);if(void 0!==u&&l){e.stopImmediatePropagation();var d=e.target.getAttribute("role");Qc.includes(d)&&e.preventDefault()}if(u){var f=t(document.activeElement);if(f){var h=f.index,p=f.focusables,b=o?function(e,t,n){var r=e+n;return r<0?t+r:r>=t?r-t:r}(h,p.length,u):h+u;b>=0&&b0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=as({},e,{},t);return t.className&&e.className&&(n.className=u()(t.className,e.className)),n}var cs=function(e){var t,n=e.children,r=e.className,a=e.controls,i=e.icon,l=void 0===i?"menu":i,d=e.label,f=e.popoverProps,h=e.toggleProps,p=e.menuProps,b=e.disableOpenOnArrowDown,v=void 0!==b&&b,m=e.menuLabel,y=e.position,g=e.noIcons;if(m&&Xc()("`menuLabel` prop in `DropdownComponent`",{alternative:"`menuProps` object and its `aria-label` property",plugin:"Gutenberg"}),y&&Xc()("`position` prop in `DropdownComponent`",{alternative:"`popoverProps` object and its `position` property",plugin:"Gutenberg"}),Object(s.isEmpty)(a)&&!Object(s.isFunction)(n))return null;Object(s.isEmpty)(a)||(t=a,Array.isArray(t[0])||(t=[t]));var O=is({className:"components-dropdown-menu__popover",position:y},f);return Object(c.createElement)(hi,{className:u()("components-dropdown-menu",r),popoverProps:O,renderToggle:function(e){var t=e.isOpen,n=e.onToggle,r=is({className:u()("components-dropdown-menu__toggle",{"is-opened":t})},h);return Object(c.createElement)(jt.a,Object(o.a)({},r,{icon:l,onClick:function(e){n(e),r.onClick&&r.onClick(e)},onKeyDown:function(e){!function(e){v||t||e.keyCode!==gt.DOWN||(e.preventDefault(),e.stopPropagation(),n())}(e),r.onKeyDown&&r.onKeyDown(e)},"aria-haspopup":"true","aria-expanded":t,label:d,showTooltip:!0}),r.children)},renderContent:function(e){var r=is({"aria-label":m||d,className:u()("components-dropdown-menu__menu",{"no-icons":g})},p);return Object(c.createElement)(rs,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)(jt.a,{key:[n,r].join(),onClick:function(n){n.stopPropagation(),e.onClose(),t.onClick&&t.onClick()},className:u()("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)}))})))}})},ss=n(410);var ls=Object(c.forwardRef)((function(e,t){var n=e.href,r=e.children,a=e.className,l=e.rel,d=void 0===l?"":l,f=Object(i.a)(e,["href","children","className","rel"]);d=Object(s.uniq)(Object(s.compact)([].concat(Object(yt.a)(d.split(" ")),["external","noreferrer","noopener"]))).join(" ");var h=u()("components-external-link",a);return Object(c.createElement)("a",Object(o.a)({},f,{className:h,href:n,target:"_blank",rel:d,ref:t}),r,Object(c.createElement)(P,{as:"span"},Object(S.__)("(opens in a new tab)")),Object(c.createElement)(Ia.a,{icon:ss.a,className:"components-external-link__icon"}))})),us=n(111);function ds(){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}}var fs=function(e){Object(mt.a)(o,e);var t,n=(t=o,function(){var e,n=Object(vt.a)(t);if(ds()){var r=Object(vt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(bt.a)(this,e)});function o(e){var t;return Object(ft.a)(this,o),(t=n.call(this,e)).onMouseMove=t.onMouseMove.bind(Object(ht.a)(t)),t.state={isDragging:!1,bounds:{},percentages:e.value},t.containerRef=Object(c.createRef)(),t.imageRef=Object(c.createRef)(),t.horizontalPositionChanged=t.horizontalPositionChanged.bind(Object(ht.a)(t)),t.verticalPositionChanged=t.verticalPositionChanged.bind(Object(ht.a)(t)),t.onLoad=t.onLoad.bind(Object(ht.a)(t)),t}return Object(pt.a)(o,[{key:"componentDidUpdate",value:function(e){e.url!==this.props.url&&this.setState({isDragging:!1})}},{key:"calculateBounds",value:function(){var e={top:0,left:0,bottom:0,right:0,width:0,height:0};if(!this.imageRef.current)return e;var t=this.imageRef.current.clientWidth,n=this.imageRef.current.clientHeight,r=this.pickerDimensions(),o=r.width/t,a=r.height/n;return a>=o?(e.width=e.right=r.width,e.height=n*o,e.top=(r.height-e.height)/2,e.bottom=e.top+e.height):(e.height=e.bottom=r.height,e.width=t*a,e.left=(r.width-e.width)/2,e.right=e.left+e.width),e}},{key:"onLoad",value:function(){this.setState({bounds:this.calculateBounds()})}},{key:"onMouseMove",value:function(e){var t=this.state,n=t.isDragging,r=t.bounds,o=this.props.onChange;if(n){var a=this.pickerDimensions(),i={left:e.pageX-a.left,top:e.pageY-a.top},c=Math.max(r.left,Math.min(i.left,r.right)),s=Math.max(r.top,Math.min(i.top,r.bottom)),l={x:((c-r.left)/(a.width-2*r.left)).toFixed(2),y:((s-r.top)/(a.height-2*r.top)).toFixed(2)};this.setState({percentages:l},(function(){o({x:this.state.percentages.x,y:this.state.percentages.y})}))}}},{key:"fractionToPercentage",value:function(e){return Math.round(100*e)}},{key:"horizontalPositionChanged",value:function(e){this.positionChangeFromTextControl("x",e.target.value)}},{key:"verticalPositionChanged",value:function(e){this.positionChangeFromTextControl("y",e.target.value)}},{key:"positionChangeFromTextControl",value:function(e,t){var n=this.props.onChange,r=this.state.percentages,o=Math.max(Math.min(parseInt(t),100),0);r[e]=(o?o/100:0).toFixed(2),this.setState({percentages:r},(function(){n({x:this.state.percentages.x,y:this.state.percentages.y})}))}},{key:"pickerDimensions",value:function(){return this.containerRef.current?{width:this.containerRef.current.clientWidth,height:this.containerRef.current.clientHeight,top:this.containerRef.current.getBoundingClientRect().top+document.body.scrollTop,left:this.containerRef.current.getBoundingClientRect().left}:{width:0,height:0,left:0,top:0}}},{key:"handleFocusOutside",value:function(){this.setState({isDragging:!1})}},{key:"render",value:function(){var e=this,t=this.props,n=t.instanceId,o=t.url,a=t.value,i=t.label,s=t.help,l=t.className,d=this.state,f=d.bounds,h=d.isDragging,p=d.percentages,b=this.pickerDimensions(),v={left:a.x*(b.width-2*f.left)+f.left,top:a.y*(b.height-2*f.top)+f.top},m={left:"".concat(v.left,"px"),top:"".concat(v.top,"px")},y=u()("components-focal-point-picker__icon_container",h?"is-dragging":null),g="inspector-focal-point-picker-control-".concat(n),O="inspector-focal-point-picker-control-horizontal-position-".concat(n),j="inspector-focal-point-picker-control-vertical-position-".concat(n);return Object(c.createElement)(lt,{label:i,id:g,help:s,className:l},Object(c.createElement)("div",{className:"components-focal-point-picker-wrapper"},Object(c.createElement)("div",{className:"components-focal-point-picker",onMouseDown:function(){return e.setState({isDragging:!0})},onDragStart:function(){return e.setState({isDragging:!0})},onMouseUp:function(){return e.setState({isDragging:!1})},onDrop:function(){return e.setState({isDragging:!1})},onMouseMove:this.onMouseMove,ref:this.containerRef,role:"button",tabIndex:"-1"},Object(c.createElement)("img",{alt:"Dimensions helper",onLoad:this.onLoad,ref:this.imageRef,src:o,draggable:"false"}),Object(c.createElement)("div",{className:y,style:m},Object(c.createElement)(r.SVG,{className:"components-focal-point-picker__icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30 30"},Object(c.createElement)(r.Path,{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)(r.Path,{className:"components-focal-point-picker__icon-fill",d:"M15 3C8.4 3 3 8.4 3 15s5.4 12 12 12 12-5.4 12-12S21.6 3 15 3zm0 22C9.5 25 5 20.5 5 15S9.5 5 15 5s10 4.5 10 10-4.5 10-10 10z"}))))),Object(c.createElement)("div",{className:"components-focal-point-picker_position-display-container"},Object(c.createElement)(lt,{label:Object(S.__)("Horizontal pos."),id:O},Object(c.createElement)("input",{className:"components-text-control__input",id:O,max:100,min:0,onChange:this.horizontalPositionChanged,type:"number",value:this.fractionToPercentage(p.x)}),Object(c.createElement)("span",null,"%")),Object(c.createElement)(lt,{label:Object(S.__)("Vertical pos."),id:j},Object(c.createElement)("input",{className:"components-text-control__input",id:j,max:100,min:0,onChange:this.verticalPositionChanged,type:"number",value:this.fractionToPercentage(p.y)}),Object(c.createElement)("span",null,"%"))))}}]),o}(c.Component);fs.defaultProps={url:null,value:{x:.5,y:.5},onChange:function(){}};var hs=Object(E.compose)([E.withInstanceId,us.a])(fs);function ps(){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}}var bs=window.FocusEvent,vs=function(e){Object(mt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(vt.a)(t);if(ps()){var r=Object(vt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(bt.a)(this,e)});function r(e){var t;return Object(ft.a)(this,r),(t=n.apply(this,arguments)).checkFocus=t.checkFocus.bind(Object(ht.a)(t)),t.node=e.iframeRef||Object(c.createRef)(),t}return Object(pt.a)(r,[{key:"checkFocus",value:function(){var e=this.node.current;if(document.activeElement===e){var t=new bs("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"])))}}]),r}(c.Component),ms=Object(E.withGlobalEvents)({blur:"checkFocus"})(vs),ys=n(411);function gs(e,t,n){return"number"!=typeof e?null:parseFloat(Object(s.clamp)(e,t,n))}var Os={name:"tdik1c",styles:"height:30px;min-height:30px;"},js=function(){return Os},ws=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%;"}),ks=je("span",{target:"exqw8y21",label:"Wrapper"})("box-sizing:border-box;color:",Ae("blue.medium.focus"),";display:block;flex:1;padding-top:15px;position:relative;width:100%;",(function(e){var t=e.color,n=void 0===t?Ae("ui.borderFocus"):t;return ue({color:n},"")}),";",js,";",(function(e){var t=e.marks;return ue({marginBottom:t?16:null},"")}),";",tt({marginLeft:10}),""),_s=je("span",{target:"exqw8y22",label:"BeforeIconWrapper"})("margin-top:3px;",tt({marginRight:6}),""),Ss=je("span",{target:"exqw8y23",label:"AfterIconWrapper"})("margin-top:3px;",tt({marginLeft:16}),""),Es=je("span",{target:"exqw8y24",label:"Rail"})("background-color:",Ae("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=Ae("lightGray.400")),ue({background:n},"")}),";"),Cs=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=Ae("lightGray.800")),ue({background:n},"")}),";"),Ms=je("span",{target:"exqw8y26",label:"MarksWrapper"})({name:"sx8y8z",styles:"box-sizing:border-box;display:block;position:relative;width:100%;user-select:none;"}),xs=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":Ae("lightGray.600");return t&&(n=Ae("lightGray.800")),ue({backgroundColor:n},"")}),";"),Ds=je("span",{target:"exqw8y28",label:"MarkLabel"})("box-sizing:border-box;color:",Ae("lightGray.600"),";left:0;font-size:11px;position:absolute;top:12px;transform:translateX( -50% );white-space:nowrap;",(function(e){var t=e.isFilled;return ue({color:Ae(t?"darkGray.300":"lightGray.600")},"")}),";"),Ps=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;",tt({marginLeft:-10}),""),zs=je("span",{target:"exqw8y210",label:"Thumb"})("align-items:center;background-color:white;border-radius:50%;border:1px solid ",Ae("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 ue({borderColor:Ae(t?"ui.borderFocus":"darkGray.200"),boxShadow:t?"\n\t\t\t\t0 0 0 1px ".concat(Ae("ui.borderFocus"),"\n\t\t\t"):"\n\t\t\t\t0 0 0 rgba(0, 0, 0, 0)\n\t\t\t"},"")}),";"),Ts=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%;"}),Is={name:"5qqmyx",styles:"top:-80%;"},Rs={name:"eda4eg",styles:"bottom:-80%;"},Ns=je("span",{target:"exqw8y212",label:"Tooltip"})("background:",Ae("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 ue({opacity:t?1:0},"")}),";",(function(e){return"top"===e.position?Is:Rs}),";",He("transition"),";",tt({transform:"translateX(-50%)"},{transform:"translateX(50%)"}),""),As=je(Ar,{target:"exqw8y213",label:"InputNumber"})("box-sizing:border-box;display:inline-block;font-size:13px;margin-top:0;width:",ca(8),";input[type='number']&{",js,";}",tt({marginLeft:ca(2)}),""),Hs=je("span",{target:"exqw8y214",label:"ActionRightWrapper"})("box-sizing:border-box;display:block;margin-top:0;button,button.is-small{margin-left:0;",js,";}",tt({marginLeft:8}),"");var Ls=Object(c.forwardRef)((function(e,t){var n=e.describedBy,r=e.isShiftStepEnabled,l=void 0===r||r,u=e.label,d=e.onHideTooltip,f=void 0===d?s.noop:d,h=e.onMouseLeave,p=void 0===h?s.noop:h,b=e.step,v=void 0===b?1:b,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,C=e.shiftStep,M=void 0===C?10:C,x=e.value,D=Object(i.a)(e,["describedBy","isShiftStepEnabled","label","onHideTooltip","onMouseLeave","step","onBlur","onChange","onFocus","onMouseMove","onShowTooltip","shiftStep","value"]),P=Nr({step:v,shiftStep:M,isShiftStepEnabled:l}),z=function(e){var t=e.onHide,n=void 0===t?s.noop:t,r=e.onMouseLeave,o=void 0===r?s.noop:r,i=e.onMouseMove,l=void 0===i?s.noop:i,u=e.onShow,d=void 0===u?s.noop:u,f=e.timeout,h=void 0===f?300:f,p=Object(c.useState)(!1),b=Object(a.a)(p,2),v=b[0],m=b[1],y=Object(c.useRef)(),g=Object(c.useCallback)((function(e){window.clearTimeout(y.current),y.current=setTimeout(e,h)}),[h]),O=Object(c.useCallback)((function(e){l(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:p,onMouseMove:_,onShow:E});return Object(c.createElement)(Ts,Object(o.a)({},D,z,{"aria-describedby":n,"aria-label":u,"aria-hidden":!1,onBlur:y,onChange:O,onFocus:w,ref:t,step:P,tabIndex:0,type:"range",value:x}))}));function Vs(e){var t=e.className,n=e.isFilled,r=void 0!==n&&n,a=e.label,s=e.style,l=void 0===s?{}:s,d=Object(i.a)(e,["className","isFilled","label","style"]),f=u()("components-range-control__mark",r&&"is-filled",t),h=u()("components-range-control__mark-label",r&&"is-filled");return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(xs,Object(o.a)({},d,{"aria-hidden":"true",className:f,isFilled:r,style:l})),a&&Object(c.createElement)(Ds,{"aria-hidden":"true",className:h,isFilled:r,style:l},a))}function Fs(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 Bs(e){var t=e.disabled,n=void 0!==t&&t,r=e.marks,a=void 0!==r&&r,s=e.min,l=void 0===s?0:s,u=e.max,d=void 0===u?100:u,f=e.step,h=void 0===f?1:f,p=e.value,b=void 0===p?0:p,v=Object(i.a)(e,["disabled","marks","min","max","step","value"]);return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(Es,Object(o.a)({disabled:n},v)),a&&Object(c.createElement)(Ks,{disabled:n,marks:a,min:l,max:d,step:h,value:b}))}function Ks(e){var t=e.disabled,n=void 0!==t&&t,r=e.marks,a=void 0!==r&&r,i=e.min,s=void 0===i?0:i,l=e.max,u=void 0===l?100:l,d=e.step,f=void 0===d?1:d,h=e.value,p=function(e){var t=e.marks,n=e.min,r=void 0===n?0:n,o=e.max,a=void 0===o?100:o,i=e.step,c=void 0===i?1:i,s=e.value,l=void 0===s?0:s,u="rtl"===document.documentElement.dir;if(!t)return[];var d=Array.isArray(t),f=Math.round((a-r)/c);return(d?t:Object(yt.a)(Array(f+1)).map((function(e,t){return{value:t}}))).map((function(e,t){var n=void 0!==e.value?e.value:l,o="mark-".concat(t),a=n*c+r<=l,i="".concat(n/f*100,"%");return function(e){for(var t=1;t0&&Object(c.createElement)(uc,{className:"components-font-size-picker__select",label:Object(S.__)("Preset size"),options:f,value:f.find((function(e){return e.key===h})),onChange:function(e){var t=e.selectedItem,n=t.style&&t.style.fontSize;i(Number(n))}}),!u&&!a&&Object(c.createElement)("div",{className:"components-font-size-picker__number-container"},Object(c.createElement)("label",{htmlFor:p},Object(S.__)("Custom")),Object(c.createElement)("input",{id:p,className:"components-font-size-picker__number",type:"number",min:1,onChange:function(e){i(Number(e.target.value))},"aria-label":Object(S.__)("Custom"),value:s||""})),Object(c.createElement)(jt.a,{className:"components-color-palette__clear",disabled:void 0===s,onClick:function(){i(void 0)},isSmall:!0,isSecondary:!0},Object(S.__)("Reset"))),u&&Object(c.createElement)($s,{className:"components-font-size-picker__custom-input",label:Object(S.__)("Custom Size"),value:s||"",initialPosition:t,onChange:function(e){i(e)},min:12,max:100,beforeIcon:ys.a,afterIcon:ys.a}))}var Zs=function(e){var t=e.accept,n=e.children,r=e.multiple,a=void 0!==r&&r,s=e.onChange,l=e.render,u=Object(i.a)(e,["accept","children","multiple","onChange","render"]),d=Object(c.useRef)(),f=function(){d.current.click()},h=l?l({openFileDialog:f}):Object(c.createElement)(jt.a,Object(o.a)({onClick:f},u),n);return Object(c.createElement)("div",{className:"components-form-file-upload"},h,Object(c.createElement)("input",{type:"file",ref:d,multiple:a,style:{display:"none"},accept:t,onChange:s}))};var Xs=function(e){var t=e.className,n=e.checked,r=e.id,a=e.onChange,l=void 0===a?s.noop:a,d=Object(i.a)(e,["className","checked","id","onChange"]),f=u()("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:l},d)),Object(c.createElement)("span",{className:"components-form-toggle__track"}),Object(c.createElement)("span",{className:"components-form-toggle__thumb"}))},Js=n(40),Qs=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 el(e){var t=e.value,n=e.status,r=e.title,o=e.displayTransform,a=e.isBorderless,i=void 0!==a&&a,l=e.disabled,d=void 0!==l&&l,f=e.onClickRemove,h=void 0===f?s.noop:f,p=e.onMouseEnter,b=e.onMouseLeave,v=e.messages,m=e.termPosition,y=e.termsCount,g=Object(E.useInstanceId)(el),O=u()("components-form-token-field__token",{"is-error":"error"===n,"is-success":"success"===n,"is-validating":"validating"===n,"is-borderless":i,"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:p,onMouseLeave:b,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)(P,{as:"span"},w),Object(c.createElement)("span",{"aria-hidden":"true"},j)),Object(c.createElement)(jt.a,{className:"components-form-token-field__remove-token",icon:Qs,onClick:!d&&function(){return h({value:t})},label:v.remove,"aria-describedby":"components-form-token-field__token-text-".concat(g)}))}function tl(){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}}var nl=function(e){Object(mt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(vt.a)(t);if(tl()){var r=Object(vt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(bt.a)(this,e)});function r(){var e;return Object(ft.a)(this,r),(e=n.apply(this,arguments)).onChange=e.onChange.bind(Object(ht.a)(e)),e.bindInput=e.bindInput.bind(Object(ht.a)(e)),e}return Object(pt.a)(r,[{key:"focus",value:function(){this.input.focus()}},{key:"hasFocus",value:function(){return this.input===document.activeElement}},{key:"bindInput",value:function(e){this.input=e}},{key:"onChange",value:function(e){this.props.onChange({value:e.target.value})}},{key:"render",value:function(){var e=this.props,t=e.value,n=e.isExpanded,r=e.instanceId,a=e.selectedSuggestionIndex,s=Object(i.a)(e,["value","isExpanded","instanceId","selectedSuggestionIndex"]),l=t.length+1;return Object(c.createElement)("input",Object(o.a)({ref:this.bindInput,id:"components-form-token-input-".concat(r),type:"text"},s,{value:t,onChange:this.onChange,size:l,className:"components-form-token-field__input",role:"combobox","aria-expanded":n,"aria-autocomplete":"list","aria-owns":n?"components-form-token-suggestions-".concat(r):void 0,"aria-activedescendant":-1!==a?"components-form-token-suggestions-".concat(r,"-").concat(a):void 0,"aria-describedby":"components-form-token-suggestions-howto-".concat(r)}))}}]),r}(c.Component),rl=n(123),ol=n.n(rl);function al(){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}}var il=function(e){Object(mt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(vt.a)(t);if(al()){var r=Object(vt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(bt.a)(this,e)});function r(){var e;return Object(ft.a)(this,r),(e=n.apply(this,arguments)).handleMouseDown=e.handleMouseDown.bind(Object(ht.a)(e)),e.bindList=e.bindList.bind(Object(ht.a)(e)),e}return Object(pt.a)(r,[{key:"componentDidUpdate",value:function(){var e=this;this.props.selectedIndex>-1&&this.props.scrollIntoView&&(this.scrollingIntoView=!0,ol()(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=u()("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: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))})))}}]),r}(c.Component);il.defaultProps={match:"",onHover:function(){},onSelect:function(){},suggestions:Object.freeze([])};var cl=Object(E.withSafeTimeout)(il);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 ll(){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}}var ul={incompleteTokenValue:"",inputOffsetFromEnd:0,isActive:!1,isExpanded:!1,selectedSuggestionIndex:-1,selectedSuggestionScroll:!1},dl=function(e){Object(mt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(vt.a)(t);if(ll()){var r=Object(vt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(bt.a)(this,e)});function r(){var e;return Object(ft.a)(this,r),(e=n.apply(this,arguments)).state=ul,e.onKeyDown=e.onKeyDown.bind(Object(ht.a)(e)),e.onKeyPress=e.onKeyPress.bind(Object(ht.a)(e)),e.onFocus=e.onFocus.bind(Object(ht.a)(e)),e.onBlur=e.onBlur.bind(Object(ht.a)(e)),e.deleteTokenBeforeInput=e.deleteTokenBeforeInput.bind(Object(ht.a)(e)),e.deleteTokenAfterInput=e.deleteTokenAfterInput.bind(Object(ht.a)(e)),e.addCurrentToken=e.addCurrentToken.bind(Object(ht.a)(e)),e.onContainerTouched=e.onContainerTouched.bind(Object(ht.a)(e)),e.renderToken=e.renderToken.bind(Object(ht.a)(e)),e.onTokenClickRemove=e.onTokenClickRemove.bind(Object(ht.a)(e)),e.onSuggestionHovered=e.onSuggestionHovered.bind(Object(ht.a)(e)),e.onSuggestionSelected=e.onSuggestionSelected.bind(Object(ht.a)(e)),e.onInputChange=e.onInputChange.bind(Object(ht.a)(e)),e.bindInput=e.bindInput.bind(Object(ht.a)(e)),e.bindTokensAndInput=e.bindTokensAndInput.bind(Object(ht.a)(e)),e.updateSuggestions=e.updateSuggestions.bind(Object(ht.a)(e)),e}return Object(pt.a)(r,[{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=!Lc()(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(ul)}},{key:"onKeyDown",value:function(e){var t=!1;switch(e.keyCode){case gt.BACKSPACE:t=this.handleDeleteKey(this.deleteTokenBeforeInput);break;case gt.ENTER:t=this.addCurrentToken();break;case gt.LEFT:t=this.handleLeftArrowKey();break;case gt.UP:t=this.handleUpArrowKey();break;case gt.RIGHT:t=this.handleRightArrowKey();break;case gt.DOWN:t=this.handleDownArrowKey();break;case gt.DELETE:t=this.handleDeleteKey(this.deleteTokenAfterInput);break;case gt.SPACE:this.props.tokenizeOnSpace&&(t=this.addCurrentToken());break;case gt.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();e0){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(Js.a)(e)?e.value:e}},{key:"getMatchingSuggestions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.incompleteTokenValue,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props.suggestions,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.props.value,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.props.maxSuggestions,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.props.saveTransform,a=o(e),i=[],c=[];return 0===a.length?t=Object(s.difference)(t,n):(a=a.toLocaleLowerCase(),Object(s.each)(t,(function(e){var t=e.toLocaleLowerCase().indexOf(a);-1===n.indexOf(e)&&(0===t?i.push(e):t>0&&c.push(e))})),t=i.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,a={isExpanded:n&&o};if(e&&(a.selectedSuggestionIndex=-1,a.selectedSuggestionScroll=!1),this.setState(a),n){var i=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.");i(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,a=t+1,i=n.length;return Object(c.createElement)(el,{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:i,termPosition:a})}},{key:"renderInput",value:function(){var e=this.props,t=e.autoCapitalize,n=e.autoComplete,r=e.maxLength,o=e.value,a={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||(a=function(e){for(var t=1;t=5&&(l.current.significantMoveHappened=!0)}xl(a,n,i)||o(Ml(a,i,n))},d=function e(){window&&window.removeEventListener&&l.current&&l.current.listenersActivated&&(window.removeEventListener("mousemove",u),window.removeEventListener("mouseup",e),s(),l.current.listenersActivated=!1)};return Object(c.useEffect)((function(){return function(){d()}}),[]),r.map((function(e,t){return e&&n!==e.positionValue&&Object(c.createElement)(hi,{key:t,onClose:s,renderToggle:function(n){var r=n.isOpen,f=n.onToggle;return Object(c.createElement)(Hl,{key:t,onClick:function(){l.current&&l.current.significantMoveHappened||(r?s():i(),f())},onMouseDown:function(){window&&window.addEventListener&&(l.current={gradientAST:a,position:t,significantMoveHappened:!1,listenersActivated:!0},i(),window.addEventListener("mousemove",u),window.addEventListener("mouseup",d))},isOpen:r,position:e.position,color:e.color,onChange:o,gradientAST:a,gradientIndex:t})},renderContent:function(n){var r=n.onClose;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(fi,{color:e.color,onChangeComplete:function(e){var n=e.rgb;o(Pl(a,t,n))}}),Object(c.createElement)(jt.a,{className:"components-custom-gradient-picker__remove-control-point",onClick:function(){o(function(e,t){return El({},e,{colorStops:e.colorStops.filter((function(e,n){return n!==t}))})}(a,t)),r()},isLink:!0},Object(S.__)("Remove Control Point")))},popoverProps:gl})}))}function Vl(e){var t=e.onChange,n=e.gradientAST,r=e.onOpenInserter,o=e.onCloseInserter,i=e.insertPosition,l=Object(c.useState)(!1),u=Object(a.a)(l,2),d=u[0],f=u[1];return Object(c.createElement)(hi,{className:"components-custom-gradient-picker__inserter",onClose:function(){o()},renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(c.createElement)(jt.a,{"aria-expanded":t,onClick:function(){t?o():(f(!1),r()),n()},className:"components-custom-gradient-picker__insert-point",icon:bl,style:{left:null!==i?"".concat(i,"%"):void 0}})},renderContent:function(){return Object(c.createElement)(fi,{onChangeComplete:function(e){var r,o=e.rgb;d?r=function(e,t,n){return Pl(e,Object(s.findIndex)(e.colorStops,(function(e){return e&&e.length&&"%"===e.length.type&&e.length.value===t.toString()})),n)}(n,i,o):(r=function(e,t,n){var r=Cl(n);return r.length={type:"%",value:t},El({},e,{colorStops:[].concat(Object(yt.a)(e.colorStops),[r])})}(n,i,o),f(!0)),t(r)}})},popoverProps:gl})}function Fl(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 Bl={id:"IDLE"};function Kl(e){var t=e.value,n=e.onChange,r=Rl(t),o=r.gradientAST,i=r.gradientValue,l=r.hasGradient,d=function(e){n(_l(e))},f=Object(c.useRef)(),h=function(e){return e?Object(s.map)(e.colorStops,(function(e){return e&&e.length&&"%"===e.length.type?{color:jl(e),position:wl(e.length),positionValue:parseInt(e.length.value)}:null})):[]}(o),p=Object(c.useReducer)(Fl,Bl),b=Object(a.a)(p,2),v=b[0],m=b[1],y=function(e){var t=zl(e.clientX,f.current,23);Object(s.some)(h,(function(e){var n=e.positionValue;return Math.abs(t-n)<9}))?"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:u()("components-custom-gradient-picker__gradient-bar",{"has-gradient":l}),onMouseEnter:y,onMouseMove:y,style:{background:"radial-gradient"===o.type?Tl(o):i},onMouseLeave:function(){m({type:"STOP_INSERTER_MOVE"})}},Object(c.createElement)("div",{className:"components-custom-gradient-picker__markers-container"},(g||O)&&Object(c.createElement)(Vl,{insertPosition:v.insertPosition,onChange:d,gradientAST:o,onOpenInserter:function(){m({type:"OPEN_INSERTER"})},onCloseInserter:function(){m({type:"CLOSE_INSERTER"})}}),Object(c.createElement)(Ll,{gradientPickerDomRef:f,ignoreMarkerPosition:O?v.insertPosition:void 0,markerPoints:h,onChange:d,gradientAST:o,onStartControlPointChange:function(){m({type:"START_CONTROL_CHANGE"})},onStopControlPointChange:function(){m({type:"STOP_CONTROL_CHANGE"})}})))}var Wl=n(132),Ul=n(87),Gl=function(e){return Object(c.createElement)("div",{className:e.className},e.children)};var $l=Object(c.forwardRef)((function(e,t){var n=e.containerClassName,r=e.className,a=e.extraProps,s=e.children,l=e.title,d=e.isActive,f=e.isDisabled,h=Object(i.a)(e,["containerClassName","className","extraProps","children","title","isActive","isDisabled"]);return Object(c.useContext)(Ul.a)?Object(c.createElement)(Wl.a,Object(o.a)({className:u()("components-toolbar-button",r)},a,h,{ref:t}),(function(e){return Object(c.createElement)(jt.a,Object(o.a)({label:l,isPressed:d,disabled:f},e),s)})):Object(c.createElement)(Gl,{className:n},Object(c.createElement)(jt.a,Object(o.a)({ref:t,icon:h.icon,label:l,shortcut:h.shortcut,"data-subscript":h.subscript,onClick:function(e){e.stopPropagation(),h.onClick&&h.onClick(e)},className:u()("components-toolbar__control",r),isPressed:d,disabled:f,"data-experimental-toolbar-item":!0},a,h),s))})),ql=function(e){var t=e.className,n=e.children,r=Object(i.a)(e,["className","children"]);return Object(c.createElement)("div",Object(o.a)({className:t},r),n)};function Yl(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 Zl(e){for(var t=1;t0&&0===n?"has-left-divider":null},e))}))})),r)};function Ql(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",{alternative:"the `pages` prop"})}),[t]),c.Children.count(t)&&(l=c.Children.map(t,(function(e){return{content:e}})));var b=h>0,v=h",{alternative:"the `pages` prop in "})}),[]),Object(c.createElement)("div",e)}var Cu=Object(c.forwardRef)((function(e,t){var n=e.labelPosition,r=e.size,a=e.tooltip,s=e.label,l=Object(i.a)(e,["labelPosition","size","tooltip","label"]);return Xc()("wp.components.IconButton",{alternative:"wp.components.Button"}),Object(c.createElement)(jt.a,Object(o.a)({},l,{ref:t,tooltipPosition:n,iconSize:r,showTooltip:void 0!==a?!!a:void 0,label:a||s}))}));var Mu=function e(t){var n=t.children,r=t.className,o=void 0===r?"":r,a=t.label,i=Object(E.useInstanceId)(e);if(!c.Children.count(n))return null;var s="components-menu-group-label-".concat(i),l=u()(o,"components-menu-group");return Object(c.createElement)("div",{className:l},a&&Object(c.createElement)("div",{className:"components-menu-group__label",id:s,"aria-hidden":"true"},a),Object(c.createElement)("div",{role:"group","aria-labelledby":a?s:null},n))},xu=n(165);var Du=Object(c.forwardRef)((function(e,t){var n=e.children,r=e.info,a=e.className,l=e.icon,d=e.shortcut,f=e.isSelected,h=e.role,p=void 0===h?"menuitem":h,b=Object(i.a)(e,["children","info","className","icon","shortcut","isSelected","role"]);return a=u()("components-menu-item__button",a),r&&(n=Object(c.createElement)("span",{className:"components-menu-item__info-wrapper"},n,Object(c.createElement)("span",{className:"components-menu-item__info"},r))),l&&!Object(s.isString)(l)&&(l=Object(c.cloneElement)(l,{className:"components-menu-items__item-icon"})),Object(c.createElement)(jt.a,Object(o.a)({ref:t,icon:l,"aria-checked":"menuitemcheckbox"===p||"menuitemradio"===p?f:void 0,role:p,className:a},b),n,Object(c.createElement)(xu.a,{className:"components-menu-item__shortcut",shortcut:d}))}));function Pu(e){var t=e.choices,n=void 0===t?[]:t,r=e.onHover,o=void 0===r?s.noop:r,a=e.onSelect,i=e.value;return n.map((function(e){var t=i===e.value;return Object(c.createElement)(Du,{key:e.value,role:"menuitemradio",icon:t&&Ra.a,isSelected:t,shortcut:e.shortcut,className:"components-menu-items-choice",onClick:function(){t||a(e.value)},onMouseEnter:function(){return o(e.value)},onMouseLeave:function(){return o(null)}},e.label)}))}var zu=n(160);var Tu=Object(c.forwardRef)((function(e,t){var n=e.eventToOffset,r=Object(i.a)(e,["eventToOffset"]);return Object(c.createElement)(ns,Object(o.a)({ref:t,stopNavigationEvents:!0,onlyBrowserTabstops:!0,eventToOffset:function(e){var t=e.keyCode,r=e.shiftKey;return gt.TAB===t?r?-1:1:n?n(e):void 0}},r))}));var Iu=function(e){var t=e.className,n=e.status,r=void 0===n?"info":n,o=e.children,a=e.spokenMessage,i=void 0===a?o:a,l=e.onRemove,d=void 0===l?s.noop:l,f=e.isDismissible,h=void 0===f||f,p=e.actions,b=void 0===p?[]:p,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(kt.speak)(n,t)}),[n,t])}(i,m);var g=u()(t,"components-notice","is-"+r,{"is-dismissible":h});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,b.map((function(e,t){var n=e.className,r=e.label,o=e.isPrimary,a=e.noDefaultClasses,i=void 0!==a&&a,s=e.onClick,l=e.url;return Object(c.createElement)(jt.a,{key:t,href:l,isPrimary:o,isSecondary:!i&&!l,isLink:!i&&!!l,onClick:l?void 0:s,className:u()("components-notice__action",n)},r)}))),h&&Object(c.createElement)(jt.a,{className:"components-notice__dismiss",icon:du.a,label:Object(S.__)("Dismiss this notice"),onClick:d,showTooltip:!1}))};var Ru=function(e){var t=e.notices,n=e.onRemove,r=void 0===n?s.noop:n,a=e.className,i=e.children;return a=u()("components-notice-list",a),Object(c.createElement)("div",{className:a},i,Object(yt.a)(t).reverse().map((function(e){return Object(c.createElement)(Iu,Object(o.a)({},Object(s.omit)(e,["content"]),{key:e.id,onRemove:(t=e.id,function(){return r(t)})}),e.content);var t})))};var Nu=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 Au=function(e){var t=e.header,n=e.className,r=e.children,o=u()(n,"components-panel");return Object(c.createElement)("div",{className:o},t&&Object(c.createElement)(Nu,{label:t}),r)},Hu=n(295);function Lu(){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}}var Vu=function(e){Object(mt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(vt.a)(t);if(Lu()){var r=Object(vt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(bt.a)(this,e)});function r(e){var t;return Object(ft.a)(this,r),(t=n.apply(this,arguments)).state={opened:void 0===e.initialOpen||e.initialOpen},t.toggle=t.toggle.bind(Object(ht.a)(t)),t}return Object(pt.a)(r,[{key:"toggle",value:function(e){e.preventDefault(),void 0===this.props.opened&&this.setState((function(e){return{opened:!e.opened}})),this.props.onToggle&&this.props.onToggle()}},{key:"render",value:function(){var e=this.props,t=e.title,n=e.children,r=e.opened,o=e.className,a=e.icon,i=e.forwardedRef,s=void 0===r?this.state.opened:r,l=u()("components-panel__body",o,{"is-opened":s});return Object(c.createElement)("div",{className:l,ref:i},!!t&&Object(c.createElement)("h2",{className:"components-panel__body-title"},Object(c.createElement)(jt.a,{className:"components-panel__body-toggle",onClick:this.toggle,"aria-expanded":s},Object(c.createElement)("span",{"aria-hidden":"true"},Object(c.createElement)(wc.a,{className:"components-panel__arrow",icon:s?Hu.a:Za.a})),t,a&&Object(c.createElement)(wc.a,{icon:a,className:"components-panel__icon",size:20}))),s&&n)}}]),r}(c.Component),Fu=function(e,t){return Object(c.createElement)(Vu,Object(o.a)({},e,{forwardedRef:t}))};Fu.displayName="PanelBody";var Bu=Object(c.forwardRef)(Fu);var Ku=function(e){var t=e.className,n=e.children,r=u()("components-panel__row",t);return Object(c.createElement)("div",{className:r},n)};var Wu=function(e){var t,n=e.icon,r=e.children,s=e.label,l=e.instructions,d=e.className,f=e.notices,h=e.preview,p=e.isColumnLayout,b=Object(i.a)(e,["icon","children","label","instructions","className","notices","preview","isColumnLayout"]),v=Object(E.useResizeObserver)(),m=Object(a.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=u()("components-placeholder",d,t),j=u()("components-placeholder__fieldset",{"is-column-layout":p});return Object(c.createElement)("div",Object(o.a)({},b,{className:O}),y,f,h&&Object(c.createElement)("div",{className:"components-placeholder__preview"},h),Object(c.createElement)("div",{className:"components-placeholder__label"},Object(c.createElement)(wc.a,{icon:n}),s),!!l&&Object(c.createElement)("div",{className:"components-placeholder__instructions"},l),Object(c.createElement)("div",{className:j},r))};function Uu(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 Gu(e){for(var t=1;t1&&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(yt.a)(e(t.children||[],n+1)))}))}(l))));return Object(c.createElement)(kc,Object(o.a)({label:t,options:d,onChange:r},{value:a},u))}function Yu(e){var t=e.label,n=e.noOptionLabel,r=e.categoriesList,a=e.selectedCategoryId,s=e.onChange,l=Object(i.a)(e,["label","noOptionLabel","categoriesList","selectedCategoryId","onChange"]),u=$u(r);return Object(c.createElement)(qu,Object(o.a)({label:t,noOptionLabel:n,onChange:s},{tree:u,selectedId:a},l))}function Zu(e){var t=e.label,n=e.noOptionLabel,r=e.authorList,a=e.selectedAuthorId,i=e.onChange,s=$u(r);return Object(c.createElement)(qu,Object(o.a)({label:t,noOptionLabel:n,onChange:i},{tree:s,selectedId:a}))}function Xu(e){var t=e.authorList,n=e.selectedAuthorId,r=e.categoriesList,o=e.selectedCategoryId,i=e.categorySuggestions,s=e.selectedCategories,l=e.numberOfItems,u=e.order,d=e.orderBy,f=e.maxItems,h=void 0===f?100:f,p=e.minItems,b=void 0===p?1:p,v=e.onCategoryChange,m=e.onAuthorChange,y=e.onNumberOfItemsChange,g=e.onOrderChange,O=e.onOrderByChange;return[g&&O&&Object(c.createElement)(kc,{key:"query-controls-order-select",label:Object(S.__)("Order by"),value:"".concat(d,"/").concat(u),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(a.a)(t,2),r=n[0],o=n[1];o!==u&&g(o),r!==d&&O(r)}}),r&&v&&Object(c.createElement)(Yu,{key:"query-controls-category-select",categoriesList:r,label:Object(S.__)("Category"),noOptionLabel:Object(S.__)("All"),selectedCategoryId:o}),i&&v&&Object(c.createElement)(fl,{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(i),onChange:v,maxSuggestions:20}),m&&Object(c.createElement)(Zu,{key:"query-controls-author-select",authorList:t,label:Object(S.__)("Author"),noOptionLabel:Object(S.__)("All"),selectedAuthorId:n,onChange:m}),y&&Object(c.createElement)($s,{key:"query-controls-range-control",label:Object(S.__)("Number of items"),value:l,onChange:y,min:b,max:h,required:!0})]}n(80);var Ju=n(46),Qu=n(122),ed=(n(106),n(62));function td(e){void 0===e&&(e={});var t=Object(ed.a)(e),n=t.state,r=t.loop,o=void 0===r||r,a=Object(h.a)(t,["state","loop"]),i=Object(v.useState)(n),c=i[0],s=i[1],l=Object(d.g)(Object(h.b)(Object(h.b)({},a),{},{loop:o}));return Object(h.b)(Object(h.b)({},l),{},{state:c,setState:s})}var nd=[].concat(d.g.__keys,["state","setState"]);function rd(e){return void 0!==e.checked?e.checked:void 0!==e.value&&e.state===e.value}function od(e,t){var n=Object(Qu.a)(e,"change");Object.defineProperties(n,{type:{value:"change"},target:{value:e},currentTarget:{value:e}}),null==t||t(n)}td.__keys=nd;var ad=Object(b.a)({name:"Radio",compose:C.b,useState:td,keys:["value","checked","unstable_checkOnFocus"],useOptions:function(e,t){var n,r=t.value,o=t.checked,a=e.unstable_clickOnEnter,i=void 0!==a&&a,c=e.unstable_checkOnFocus,s=void 0===c||c,l=Object(h.a)(e,["unstable_clickOnEnter","unstable_checkOnFocus"]);return Object(h.b)(Object(h.b)({checked:o,unstable_clickOnEnter:i,unstable_checkOnFocus:s},l),{},{value:null!=(n=l.value)?n:r})},useProps:function(e,t){var n=t.ref,r=t.onChange,o=t.onClick,a=Object(h.a)(t,["ref","onChange","onClick"]),i=Object(v.useRef)(null),c=Object(v.useState)(!0),s=c[0],l=c[1],u=rd(e),d=Object(Ju.a)(e.currentId===e.id),f=Object(Ju.a)(r),p=Object(Ju.a)(o);!function(e){var t=Object(v.useState)((function(){return rd(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=i.current;e&&("INPUT"===e.tagName&&"radio"===e.type||l(!1))}),[]);var b=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=p.current)||void 0===t||t.call(p,e),e.defaultPrevented||od(e.currentTarget,b)}),[b]);return Object(v.useEffect)((function(){var t=i.current;t&&e.unstable_moves&&d.current&&e.unstable_checkOnFocus&&od(t,b)}),[e.unstable_moves,e.unstable_checkOnFocus,b]),Object(h.b)({ref:Object(y.a)(i,n),role:s?void 0:"radio",type:s?"radio":void 0,value:s?e.value:void 0,"aria-checked":u,checked:u,onChange:b,onClick:m},a)}}),id=Object(p.a)({as:"input",memo:!0,useHook:ad}),cd=Object(c.createContext)({state:null,setState:function(){}});var sd=Object(c.forwardRef)((function(e,t){var n=e.children,r=e.value,a=Object(i.a)(e,["children","value"]),s=Object(c.useContext)(cd),l=s.state===r;return Object(c.createElement)(id,Object(o.a)({ref:t,as:jt.a,isPrimary:l,isSecondary:!l,value:r},s,a),n||r)})),ld=n(78),ud=Object(b.a)({name:"RadioGroup",compose:f.b,useState:td,useProps:function(e,t){return Object(h.b)({role:"radiogroup"},t)}}),dd=Object(p.a)({as:"div",useHook:ud,useCreateElement:function(e,t,n){return Object(ld.a)(e,t,n)}});function fd(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 hd=Object(c.forwardRef)((function(e,t){var n=e.accessibilityLabel,r=e.checked,a=e.defaultChecked,s=e.disabled,l=e.onChange,u=Object(i.a)(e,["accessibilityLabel","checked","defaultChecked","disabled","onChange"]),d=td({state:a,baseId:u.id}),f=function(e){for(var t=1;t0&&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})})))),a=this.iframe.current.contentWindow.document;a.open(),a.write(""+Object(c.renderToString)(o)),a.close()}}}},{key:"render",value:function(){var e=this.props,t=e.title,n=e.onFocus;return Object(c.createElement)(ms,{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:""}}}]),r}(c.Component),tf=ef=Object(E.withGlobalEvents)({message:"checkMessageForResize"})(ef),nf=n(161),rf=n(24),of=n.n(rf),af=n(50),cf=n(113);var sf=function(e){var t=e.notices,n=e.className,r=e.children,i=e.onRemove,l=void 0===i?s.noop:i,d=Object(E.useReducedMotion)(),f=Object(c.useState)((function(){return new WeakMap})),h=Object(a.a)(f,1)[0],p=Object(cf.useTransition)(t,(function(e){return e.id}),{from:{opacity:0,height:0},enter:function(e){return function(){var t=Object(af.a)(of.a.mark((function t(n){return of.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n({opacity:1,height:h.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(af.a)(of.a.mark((function e(t){return of.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=u()("components-snackbar-list",n);var b=function(e){return function(){return l(e.id)}};return Object(c.createElement)("div",{className:n},r,p.map((function(e){var t=e.item,n=e.key,r=e.props;return Object(c.createElement)(cf.animated.div,{key:n,style:r},Object(c.createElement)("div",{className:"components-snackbar-list__notice-container",ref:function(e){return e&&h.set(t,e)}},Object(c.createElement)(nf.a,Object(o.a)({},Object(s.omit)(t,["content"]),{onRemove:b(t)}),t.content)))})))};function lf(){return Object(c.createElement)("span",{className:"components-spinner"})}var uf=function(e){var t=e.tabId,n=e.onClick,r=e.children,a=e.selected,s=Object(i.a)(e,["tabId","onClick","children","selected"]);return Object(c.createElement)(jt.a,Object(o.a)({role:"tab",tabIndex:a?null:-1,"aria-selected":a,id:t,onClick:n},s),r)};function df(e){var t,n=e.className,r=e.children,o=e.tabs,i=e.initialTabName,l=e.orientation,d=void 0===l?"horizontal":l,f=e.activeClass,h=void 0===f?"is-active":f,p=e.onSelect,b=void 0===p?s.noop:p,v=Object(E.useInstanceId)(df,"tab-panel"),m=Object(c.useState)(null),y=Object(a.a)(m,2),g=y[0],O=y[1],j=function(e){O(e),b(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(i||(o.length>0?o[0].name:null))}),[o]),Object(c.createElement)("div",{className:n},Object(c.createElement)(rs,{role:"tablist",orientation:d,onNavigate:function(e,t){t.click()},className:"components-tab-panel__tabs"},o.map((function(e){return Object(c.createElement)(uf,{className:u()("components-tab-panel__tabs-item",e.className,Object(x.a)({},h,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)))}function ff(e){var t=e.label,n=e.hideLabelFromVision,r=e.value,a=e.help,s=e.onChange,l=e.rows,u=void 0===l?4:l,d=e.className,f=Object(i.a)(e,["label","hideLabelFromVision","value","help","onChange","rows","className"]),h=Object(E.useInstanceId)(ff),p="inspector-textarea-control-".concat(h);return Object(c.createElement)(lt,{label:t,hideLabelFromVision:n,id:p,help:a,className:d},Object(c.createElement)("textarea",Object(o.a)({className:"components-textarea-control__input",id:p,rows:u,onChange:function(e){return s(e.target.value)},"aria-describedby":a?p+"__help":void 0,value:r},f)))}var hf=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 a=new RegExp("(".concat(Object(s.escapeRegExp)(o),")"),"gi");return Object(c.createInterpolateElement)(n.replace(a,"$&"),{mark:Object(c.createElement)("mark",null)})};var pf=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 bf(e){var t=e.label,n=e.checked,r=e.help,o=e.className,a=e.onChange;var i,l,d=Object(E.useInstanceId)(bf),f="inspector-toggle-control-".concat(d);return r&&(i=f+"__help",l=Object(s.isFunction)(r)?r(n):r),Object(c.createElement)(lt,{id:f,help:l,className:u()("components-toggle-control",o)},Object(c.createElement)(Xs,{id:f,checked:n,onChange:function(e){a(e.target.checked)},"aria-describedby":i}),Object(c.createElement)("label",{htmlFor:f,className:"components-toggle-control__label"},t))}var vf=n(166),mf=Object(b.a)({name:"Toolbar",compose:f.b,useState:vf.a,useProps:function(e,t){return Object(h.b)({role:"toolbar","aria-orientation":e.orientation},t)}}),yf=Object(p.a)({as:"div",useHook:mf,useCreateElement:function(e,t,n){return Object(ld.a)(e,t,n)}});var gf=Object(c.forwardRef)((function(e,t){var n=e.accessibilityLabel,r=Object(i.a)(e,["accessibilityLabel"]),a=Object(vf.a)({loop:!0,baseId:r.id,rtl:Xe()});return Object(c.createElement)(Ul.a.Provider,{value:a},Object(c.createElement)(yf,Object(o.a)({ref:t,"aria-label":n},a,r)))}));var Of=Object(c.forwardRef)((function(e,t){var n=e.className,r=e.__experimentalAccessibilityLabel,a=Object(i.a)(e,["className","__experimentalAccessibilityLabel"]);return r?Object(c.createElement)(gf,Object(o.a)({className:u()("components-accessible-toolbar",n),accessibilityLabel:r,ref:t},a)):Object(c.createElement)(Jl,Object(o.a)({},a,{className:n}))})),jf=Object(c.createContext)(),wf=jf.Provider;function kf(e){var t=e.children,n=Object(c.useState)(),r=Object(a.a)(n,2),o=r[0],i=r[1],s=Object(c.useMemo)((function(){return{lastFocusedElement:o,setLastFocusedElement:i}}),[o]);return Object(c.createElement)(wf,{value:s},t)}function _f(e){var t=Ec.focus.focusable.find(e);if(t&&t.length)return t.filter((function(t){return t.closest('[role="row"]')===e}))}function Sf(e){var t=e.children,n=Object(i.a)(e,["children"]),r=Object(c.useCallback)((function(e){var t=e.keyCode,n=e.metaKey,r=e.ctrlKey,o=e.altKey,a=e.shiftKey;if(!(n||r||o||a)&&Object(s.includes)([gt.UP,gt.DOWN,gt.LEFT,gt.RIGHT],t)){e.stopPropagation();var i=document.activeElement,c=e.currentTarget;if(c.contains(i)){var l=i.closest('[role="row"]'),u=_f(l),d=u.indexOf(i);if(Object(s.includes)([gt.LEFT,gt.RIGHT],t)){var f;if((f=t===gt.LEFT?Math.max(0,d-1):Math.min(d+1,u.length-1))===d)return void e.preventDefault();u[f].focus(),e.preventDefault()}else if(Object(s.includes)([gt.UP,gt.DOWN],t)){var h,p=Array.from(c.querySelectorAll('[role="row"]')),b=p.indexOf(l);if((h=t===gt.UP?Math.max(0,b-1):Math.min(b+1,p.length-1))===b)return void e.preventDefault();var v=_f(p[h]);if(!v||!v.length)return void e.preventDefault();v[Math.min(d,v.length-1)].focus(),e.preventDefault()}}}}),[]);return Object(c.createElement)(kf,null,Object(c.createElement)("table",Object(o.a)({},n,{role:"treegrid",onKeyDown:r}),Object(c.createElement)("tbody",null,t)))}var Ef=Object(c.forwardRef)((function(e,t){var n=e.children,r=e.level,a=e.positionInSet,s=e.setSize,l=e.isExpanded,u=Object(i.a)(e,["children","level","positionInSet","setSize","isExpanded"]);return Object(c.createElement)("tr",Object(o.a)({},u,{ref:t,role:"row","aria-level":r,"aria-posinset":a,"aria-setsize":s,"aria-expanded":l}),n)}));function Cf(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 Mf=Object(c.forwardRef)((function(e,t){var n,r=e.children,o=e.as,a=Object(i.a)(e,["children","as"]),s=Object(c.useRef)(),l=t||s,u=Object(c.useContext)(jf),d=u.lastFocusedElement,f=u.setLastFocusedElement;d&&(n=d===l.current?0:-1);var h=function(e){for(var t=1;t0&&Object(c.createElement)(Ru,{className:"components-with-notices-ui",notices:this.state.noticeList,onRemove:this.removeNotice})},this.props))}}]),a}(c.Component)}))},,,,,,,,,,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,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&c.return&&c.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n0&&this.setState({visibleDays:(0,a.default)({},k,P)})}},{key:"componentWillUpdate",value:function(){this.today=(0,u.default)()}},{key:"onDayClick",value:function(e,t){if(t&&t.preventDefault(),!this.isBlocked(e)){var n=this.props,r=n.onDateChange,o=n.keepOpenOnDateSelect,a=n.onFocusChange,i=n.onClose;r(e),o||(a({focused:!1}),i({date:e}))}}},{key:"onDayMouseEnter",value:function(e){if(!this.isTouchDevice){var t=this.state,n=t.hoverDate,r=t.visibleDays,o=this.deleteModifier({},n,"hovered");o=this.addModifier(o,e,"hovered"),this.setState({hoverDate:e,visibleDays:(0,a.default)({},r,o)})}}},{key:"onDayMouseLeave",value:function(){var e=this.state,t=e.hoverDate,n=e.visibleDays;if(!this.isTouchDevice&&t){var r=this.deleteModifier({},t,"hovered");this.setState({hoverDate:null,visibleDays:(0,a.default)({},n,r)})}}},{key:"onPrevMonthClick",value:function(){var e=this.props,t=e.onPrevMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,i=o.currentMonth,c=o.visibleDays,s={};Object.keys(c).sort().slice(0,n+1).forEach((function(e){s[e]=c[e]}));var l=i.clone().subtract(1,"month"),u=(0,m.default)(l,1,r);this.setState({currentMonth:l,visibleDays:(0,a.default)({},s,this.getModifiers(u))},(function(){t(l.clone())}))}},{key:"onNextMonthClick",value:function(){var e=this.props,t=e.onNextMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,i=o.currentMonth,c=o.visibleDays,s={};Object.keys(c).sort().slice(1).forEach((function(e){s[e]=c[e]}));var l=i.clone().add(n,"month"),u=(0,m.default)(l,1,r),d=i.clone().add(1,"month");this.setState({currentMonth:d,visibleDays:(0,a.default)({},s,this.getModifiers(u))},(function(){t(d.clone())}))}},{key:"onMonthChange",value:function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===_.VERTICAL_SCROLLABLE,a=(0,m.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(a)})}},{key:"onYearChange",value:function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===_.VERTICAL_SCROLLABLE,a=(0,m.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(a)})}},{key:"getFirstFocusableDay",value:function(e){var t=this,n=this.props,o=n.date,a=n.numberOfMonths,i=e.clone().startOf("month");if(o&&(i=o.clone()),this.isBlocked(i)){for(var c=[],s=e.clone().add(a-1,"months").endOf("month"),l=i.clone();!(0,v.default)(l,s);)l=l.clone().add(1,"day"),c.push(l);var u=c.filter((function(e){return!t.isBlocked(e)&&(0,v.default)(e,i)}));if(u.length>0){var d=r(u,1);i=d[0]}}return i}},{key:"getModifiers",value:function(e){var t=this,n={};return Object.keys(e).forEach((function(r){n[r]={},e[r].forEach((function(e){n[r][(0,g.default)(e)]=t.getModifiersForDay(e)}))})),n}},{key:"getModifiersForDay",value:function(e){var t=this;return new Set(Object.keys(this.modifiers).filter((function(n){return t.modifiers[n](e)})))}},{key:"getStateForNewMonth",value:function(e){var t=this,n=e.initialVisibleMonth,r=e.date,o=e.numberOfMonths,a=e.enableOutsideDays,i=(n||(r?function(){return r}:function(){return t.today}))();return{currentMonth:i,visibleDays:this.getModifiers((0,m.default)(i,o,a))}}},{key:"addModifier",value:function(e,t,n){var r=this.props,o=r.numberOfMonths,i=r.enableOutsideDays,c=r.orientation,s=this.state,l=s.currentMonth,u=s.visibleDays,d=l,f=o;if(c===_.VERTICAL_SCROLLABLE?f=Object.keys(u).length:(d=d.clone().subtract(1,"month"),f+=2),!t||!(0,y.default)(t,d,f,i))return e;var h=(0,g.default)(t),p=(0,a.default)({},e);if(i)p=Object.keys(u).filter((function(e){return Object.keys(u[e]).indexOf(h)>-1})).reduce((function(t,r){var o=e[r]||u[r],i=new Set(o[h]);return i.add(n),(0,a.default)({},t,C({},r,(0,a.default)({},o,C({},h,i))))}),p);else{var b=(0,O.default)(t),v=e[b]||u[b],m=new Set(v[h]);m.add(n),p=(0,a.default)({},p,C({},b,(0,a.default)({},v,C({},h,m))))}return p}},{key:"deleteModifier",value:function(e,t,n){var r=this.props,o=r.numberOfMonths,i=r.enableOutsideDays,c=r.orientation,s=this.state,l=s.currentMonth,u=s.visibleDays,d=l,f=o;if(c===_.VERTICAL_SCROLLABLE?f=Object.keys(u).length:(d=d.clone().subtract(1,"month"),f+=2),!t||!(0,y.default)(t,d,f,i))return e;var h=(0,g.default)(t),p=(0,a.default)({},e);if(i)p=Object.keys(u).filter((function(e){return Object.keys(u[e]).indexOf(h)>-1})).reduce((function(t,r){var o=e[r]||u[r],i=new Set(o[h]);return i.delete(n),(0,a.default)({},t,C({},r,(0,a.default)({},o,C({},h,i))))}),p);else{var b=(0,O.default)(t),v=e[b]||u[b],m=new Set(v[h]);m.delete(n),p=(0,a.default)({},p,C({},b,(0,a.default)({},v,C({},h,m))))}return p}},{key:"isBlocked",value:function(e){var t=this.props,n=t.isDayBlocked,r=t.isOutsideRange;return n(e)||r(e)}},{key:"isHovered",value:function(e){var t=(this.state||{}).hoverDate;return(0,b.default)(e,t)}},{key:"isSelected",value:function(e){var t=this.props.date;return(0,b.default)(e,t)}},{key:"isToday",value:function(e){return(0,b.default)(e,this.today)}},{key:"isFirstDayOfWeek",value:function(e){var t=this.props.firstDayOfWeek;return e.day()===(t||u.default.localeData().firstDayOfWeek())}},{key:"isLastDayOfWeek",value:function(e){var t=this.props.firstDayOfWeek;return e.day()===((t||u.default.localeData().firstDayOfWeek())+6)%7}},{key:"render",value:function(){var e=this.props,t=e.numberOfMonths,n=e.orientation,r=e.monthFormat,o=e.renderMonthText,a=e.navPrev,c=e.navNext,s=e.onOutsideClick,l=e.withPortal,u=e.focused,d=e.enableOutsideDays,f=e.hideKeyboardShortcutsPanel,h=e.daySize,p=e.firstDayOfWeek,b=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,C=e.weekDayFormat,M=e.verticalHeight,x=e.noBorder,D=e.transitionDuration,P=e.verticalBorderSpacing,z=e.horizontalMonthPadding,T=this.state,I=T.currentMonth,R=T.visibleDays;return i.default.createElement(S.default,{orientation:n,enableOutsideDays:d,modifiers:R,numberOfMonths:t,onDayClick:this.onDayClick,onDayMouseEnter:this.onDayMouseEnter,onDayMouseLeave:this.onDayMouseLeave,onPrevMonthClick:this.onPrevMonthClick,onNextMonthClick:this.onNextMonthClick,onMonthChange:this.onMonthChange,onYearChange:this.onYearChange,monthFormat:r,withPortal:l,hidden:!u,hideKeyboardShortcutsPanel:f,initialVisibleMonth:function(){return I},firstDayOfWeek:p,onOutsideClick:s,navPrev:a,navNext:c,renderMonthText:o,renderCalendarDay:b,renderDayContents:v,renderCalendarInfo:m,renderMonthElement:y,calendarInfoPosition:g,isFocused:O,getFirstFocusableDay:this.getFirstFocusableDay,onBlur:_,phrases:w,daySize:h,isRTL:j,showKeyboardShortcuts:E,weekDayFormat:C,dayAriaLabelFormat:k,verticalHeight:M,noBorder:x,transitionDuration:D,verticalBorderSpacing:P,horizontalMonthPadding:z})}}]),t}(i.default.Component);t.default=D,D.propTypes=M,D.defaultProps=x},,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(0),o=n(6),a=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M12 8l-6 5.4 1 1.2 5-4.6 5 4.6 1-1.2z"}));t.a=a},function(e,t,n){"use strict";var r=n(0),o=n(6),a=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M17 9.4L12 14 7 9.4l-1 1.2 6 5.4 6-5.4z"}));t.a=a},,,,,,,,,function(e,t,n){"use strict"; /** @license React v16.13.1 * react-is.production.min.js * diff --git a/wp-includes/js/dist/edit-post.js b/wp-includes/js/dist/edit-post.js index c69010fb51..c5c5636d61 100644 --- a/wp-includes/js/dist/edit-post.js +++ b/wp-includes/js/dist/edit-post.js @@ -2373,7 +2373,7 @@ var refx_default = /*#__PURE__*/__webpack_require__.n(refx); var slicedToArray = __webpack_require__(14); // EXTERNAL MODULE: external {"this":["wp","a11y"]} -var external_this_wp_a11y_ = __webpack_require__(57); +var external_this_wp_a11y_ = __webpack_require__(54); // EXTERNAL MODULE: external {"this":["wp","apiFetch"]} var external_this_wp_apiFetch_ = __webpack_require__(45); @@ -8810,7 +8810,7 @@ function _defineProperty(obj, key, value) { /***/ }), -/***/ 57: +/***/ 54: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["a11y"]; }()); diff --git a/wp-includes/js/dist/edit-post.min.js b/wp-includes/js/dist/edit-post.min.js index 20285f949a..1eee6d93c8 100644 --- a/wp-includes/js/dist/edit-post.min.js +++ b/wp-includes/js/dist/edit-post.min.js @@ -4,4 +4,4 @@ this.wp=this.wp||{},this.wp.editPost=function(e){var t={};function r(n){if(t[n]) Copyright (c) 2017 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t1)for(var r=1;r=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}},151:function(e,t){!function(){e.exports=this.wp.mediaUtils}()},153:function(e,t,r){"use strict";var n=r(0),i=r(6),o=Object(n.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(i.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=o},154:function(e,t,r){"use strict";var n=r(0),i=r(6),o=Object(n.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(i.Path,{d:"M9 18.6L3.5 13l1-1L9 16.4l9.5-9.9 1 1z"}));t.a=o},16:function(e,t,r){"use strict";function n(e){return(n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}r.d(t,"a",(function(){return n}))},163:function(e,t,r){"use strict";(function(e){var n=r(0),i=r(3),o=r(9),a=r(76),A=r(4),c=(r(104),r(471)),u=Object(i.createSlotFill)("PluginDocumentSettingPanel"),l=u.Fill,s=u.Slot,m=Object(o.compose)(Object(a.withPluginContext)((function(t,r){return void 0===r.name&&void 0!==e&&e.env,{icon:r.icon||t.icon,panelName:"".concat(t.name,"/").concat(r.name)}})),Object(A.withSelect)((function(e,t){var r=t.panelName;return{opened:e("core/edit-post").isEditorPanelOpened(r),isEnabled:e("core/edit-post").isEditorPanelEnabled(r)}})),Object(A.withDispatch)((function(e,t){var r=t.panelName;return{onToggle:function(){return e("core/edit-post").toggleEditorPanelOpened(r)}}})))((function(e){var t=e.isEnabled,r=e.panelName,o=e.opened,a=e.onToggle,A=e.className,u=e.title,s=e.icon,m=e.children;return Object(n.createElement)(n.Fragment,null,Object(n.createElement)(c.a,{label:u,panelName:r}),Object(n.createElement)(l,null,t&&Object(n.createElement)(i.PanelBody,{className:A,title:u,icon:s,opened:o,onToggle:a},m)))}));m.Slot=s,t.a=m}).call(this,r(117))},176:function(e,t,r){"use strict";var n=r(0),i=r(6),o=Object(n.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(i.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=o},18:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(26);var i=r(35),o=r(29);function a(e){return function(e){if(Array.isArray(e))return Object(n.a)(e)}(e)||Object(i.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.")}()}},19:function(e,t,r){"use strict";function n(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||(i[r]=e[r]);return i}r.d(t,"a",(function(){return n}))},410:function(e,t,r){"use strict";var n=r(0),i=r(6),o=Object(n.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(i.Path,{d:"M18.2 17c0 .7-.6 1.2-1.2 1.2H7c-.7 0-1.2-.6-1.2-1.2V7c0-.7.6-1.2 1.2-1.2h3.2V4.2H7C5.5 4.2 4.2 5.5 4.2 7v10c0 1.5 1.2 2.8 2.8 2.8h10c1.5 0 2.8-1.2 2.8-2.8v-3.6h-1.5V17zM14.9 3v1.5h3.7l-6.4 6.4 1.1 1.1 6.4-6.4v3.7h1.5V3h-6.3z"}));t.a=o},42:function(e,t,r){"use strict";var n,i;function o(e){return[e]}function a(){var e={clear:function(){e.head=null}};return e}function A(e,t,r){var n;if(e.length!==t.length)return!1;for(n=r;n0})))((function(e){var t=e.createNotice,r=e.editedPostContent,n=Object(A.useRef)(),i=Object(j.useCopyOnClick)(n,r);return Object(A.useEffect)((function(){i&&t("info",Object(h.__)("All content copied."),{isDismissible:!0,type:"snackbar"})}),[i]),Object(A.createElement)(g.MenuItem,{ref:n},i?Object(h.__)("Copied!"):Object(h.__)("Copy all content"))}));var S=Object(v.withDispatch)((function(e){return{openModal:e("core/edit-post").openModal}}))((function(e){var t=e.openModal;return Object(A.createElement)(g.MenuItem,{onClick:function(){t("edit-post/manage-blocks")}},Object(h.__)("Block Manager"))})),M=r(21);var Z=Object(v.withDispatch)((function(e){return{openModal:e("core/edit-post").openModal}}))((function(e){var t=e.openModal;return Object(A.createElement)(g.MenuItem,{onClick:function(){t("edit-post/keyboard-shortcut-help")},shortcut:M.displayShortcut.access("h")},Object(h.__)("Keyboard shortcuts"))})),z=Object(g.createSlotFill)("ToolsMoreMenuGroup"),w=z.Fill,B=z.Slot;w.Slot=function(e){var t=e.fillProps;return Object(A.createElement)(B,{fillProps:t},(function(e){return!Object(O.isEmpty)(e)&&Object(A.createElement)(g.MenuGroup,{label:Object(h.__)("Tools")},e)}))};var G=w;function Y(){var e=Object(v.useDispatch)("core/edit-post").toggleFeature;return Object(A.createElement)(g.MenuItem,{onClick:function(){return e("welcomeGuide")}},Object(h.__)("Welcome Guide"))}Object(K.registerPlugin)("edit-post",{render:function(){return Object(A.createElement)(A.Fragment,null,Object(A.createElement)(G,null,(function(e){var t=e.onClose;return Object(A.createElement)(A.Fragment,null,Object(A.createElement)(S,{onSelect:t}),Object(A.createElement)(g.MenuItem,{role:"menuitem",href:Object(E.addQueryArgs)("edit.php",{post_type:"wp_block"})},Object(h.__)("Manage all reusable blocks")),Object(A.createElement)(Z,{onSelect:t}),Object(A.createElement)(Y,null),Object(A.createElement)(f,null),Object(A.createElement)(g.MenuItem,{role:"menuitem",href:Object(h.__)("https://wordpress.org/support/article/wordpress-editor/"),target:"_blank",rel:"noopener noreferrer"},Object(h.__)("Help")))})))}});var k=r(5),Q=r(36),W=r(18);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 D(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:N,r=arguments.length>1?arguments[1]:void 0;return e(t,r)}})])({panels:function(e,t){switch(t.type){case"TOGGLE_PANEL_ENABLED":var r=t.panelName;return D({},e,Object(k.a)({},r,D({},e[r],{enabled:!Object(O.get)(e,[r,"enabled"],!0)})));case"TOGGLE_PANEL_OPENED":var n=t.panelName,i=!0===e[n]||Object(O.get)(e,[n,"opened"],!1);return D({},e,Object(k.a)({},n,D({},e[n],{opened:!i})))}return e},features:function(e,t){return"TOGGLE_FEATURE"===t.type?D({},e,Object(k.a)({},t.feature,!e[t.feature])):e},editorMode:function(e,t){return"SWITCH_MODE"===t.type?t.mode:e},hiddenBlockTypes:function(e,t){switch(t.type){case"SHOW_BLOCK_TYPES":return O.without.apply(void 0,[e].concat(Object(W.a)(t.blockNames)));case"HIDE_BLOCK_TYPES":return Object(O.union)(e,t.blockNames)}return e},preferredStyleVariations:function(e,t){switch(t.type){case"UPDATE_PREFERRED_STYLE_VARIATIONS":return t.blockName?t.blockStyle?D({},e,Object(k.a)({},t.blockName,t.blockStyle)):Object(O.omit)(e,[t.blockName]):e}return e},localAutosaveInterval:function(e,t){switch(t.type){case"UPDATE_LOCAL_AUTOSAVE_INTERVAL":return t.interval}return e}});var P=Object(v.combineReducers)({isSaving:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REQUEST_META_BOX_UPDATES":return!0;case"META_BOX_UPDATES_SUCCESS":return!1;default:return e}},locations:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_META_BOXES_PER_LOCATIONS":return t.metaBoxesPerLocation}return e}}),x=Object(v.combineReducers)({activeModal:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"OPEN_MODAL":return t.name;case"CLOSE_MODAL":return null}return e},metaBoxes:P,preferences:J,publishSidebarActive:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"OPEN_PUBLISH_SIDEBAR":return!0;case"CLOSE_PUBLISH_SIDEBAR":return!1;case"TOGGLE_PUBLISH_SIDEBAR":return!e}return e},removedPanels:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REMOVE_PANEL":if(!Object(O.includes)(e,t.panelName))return[].concat(Object(W.a)(e),[t.panelName])}return e},deviceType:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Desktop",t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_PREVIEW_DEVICE_TYPE":return t.deviceType}return e},isInserterOpened:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_IS_INSERTER_OPENED":return t.value}return e}}),H=r(110),R=r.n(H),T=r(14),F=r(57),U=r(45),X=r.n(U),V=r(24),_=r.n(V),$=_.a.mark(te),ee=_.a.mark(re);function te(e){return _.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(Q.dispatch)("core/interface","enableComplementaryArea","core/edit-post",e);case 2:case"end":return t.stop()}}),$)}function re(){return _.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(Q.dispatch)("core/interface","disableComplementaryArea","core/edit-post");case 2:case"end":return e.stop()}}),ee)}function ne(e){return{type:"OPEN_MODAL",name:e}}function ie(){return{type:"CLOSE_MODAL"}}function oe(){return{type:"OPEN_PUBLISH_SIDEBAR"}}function ae(){return{type:"CLOSE_PUBLISH_SIDEBAR"}}function Ae(){return{type:"TOGGLE_PUBLISH_SIDEBAR"}}function ce(e){return{type:"TOGGLE_PANEL_ENABLED",panelName:e}}function ue(e){return{type:"TOGGLE_PANEL_OPENED",panelName:e}}function le(e){return{type:"REMOVE_PANEL",panelName:e}}function se(e){return{type:"TOGGLE_FEATURE",feature:e}}function me(e){return{type:"SWITCH_MODE",mode:e}}function qe(e){return{type:"TOGGLE_PINNED_PLUGIN_ITEM",pluginName:e}}function pe(e){return{type:"HIDE_BLOCK_TYPES",blockNames:Object(O.castArray)(e)}}function de(e,t){return{type:"UPDATE_PREFERRED_STYLE_VARIATIONS",blockName:e,blockStyle:t}}function Ie(e){return{type:"UPDATE_LOCAL_AUTOSAVE_INTERVAL",interval:e}}function Oe(e){return{type:"SHOW_BLOCK_TYPES",blockNames:Object(O.castArray)(e)}}function be(e){return{type:"SET_META_BOXES_PER_LOCATIONS",metaBoxesPerLocation:e}}function ge(){return{type:"REQUEST_META_BOX_UPDATES"}}function ve(){return{type:"META_BOX_UPDATES_SUCCESS"}}function he(e){return{type:"SET_PREVIEW_DEVICE_TYPE",deviceType:e}}function je(e){return{type:"SET_IS_INSERTER_OPENED",value:e}}var Ce=r(42);function ye(e){return Me(e,"editorMode","visual")}var Ke=Object(v.createRegistrySelector)((function(e){return function(){var t=e("core/interface").getActiveComplementaryArea("core/edit-post");return Object(O.includes)(["edit-post/document","edit-post/block"],t)}})),Ee=Object(v.createRegistrySelector)((function(e){return function(){var t=e("core/interface").getActiveComplementaryArea("core/edit-post");return!!t&&!Object(O.includes)(["edit-post/document","edit-post/block"],t)}})),fe=Object(v.createRegistrySelector)((function(e){return function(){return e("core/interface").getActiveComplementaryArea("core/edit-post")}}));function Se(e){return e.preferences}function Me(e,t,r){var n=Se(e)[t];return void 0===n?r:n}function Ze(e){return e.publishSidebarActive}function ze(e,t){return Object(O.includes)(e.removedPanels,t)}function we(e,t){var r=Me(e,"panels");return!ze(e,t)&&Object(O.get)(r,[t,"enabled"],!0)}function Be(e,t){var r=Me(e,"panels");return!0===Object(O.get)(r,[t])||!0===Object(O.get)(r,[t,"opened"])}function Ge(e,t){return e.activeModal===t}function Ye(e,t){return Object(O.get)(e.preferences.features,[t],!1)}var ke=Object(v.createRegistrySelector)((function(e){return function(t){return e("core/interface").isItemPinned("core/edit-post",t)}})),Qe=Object(Ce.a)((function(e){return Object.keys(e.metaBoxes.locations).filter((function(t){return Le(e,t)}))}),(function(e){return[e.metaBoxes.locations]}));function We(e,t){return Le(e,t)&&Object(O.some)(De(e,t),(function(t){var r=t.id;return we(e,"meta-box-".concat(r))}))}function Le(e,t){var r=De(e,t);return!!r&&0!==r.length}function De(e,t){return e.metaBoxes.locations[t]}var Ne=Object(Ce.a)((function(e){return Object(O.flatten)(Object(O.values)(e.metaBoxes.locations))}),(function(e){return[e.metaBoxes.locations]}));function Je(e){return Qe(e).length>0}function Pe(e){return e.metaBoxes.isSaving}function xe(e){return e.deviceType}function He(e){return e.isInserterOpened}var Re;function Te(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(!e)return;if("string"==typeof e)return Fe(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(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Fe(e,t)}(e))){var t=0,r=function(){};return{s:r,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f: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.")}var n,i,o=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){a=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(a)throw i}}}}function Fe(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.itemType,i=t.scope,o=t.item;return"SET_SINGLE_ENABLE_ITEM"===r&&n&&i?st({},e,Object(k.a)({},n,st({},e[n],Object(k.a)({},i,o||null)))):e},multipleEnableItems:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.itemType,i=t.scope,o=t.item,a=t.isEnable;if("SET_MULTIPLE_ENABLE_ITEM"!==r||!n||!i||!o||Object(O.get)(e,[n,i,o])===a)return e;var A=e[n]||{},c=A[i]||{};return st({},e,Object(k.a)({},n,st({},A,Object(k.a)({},i,st({},c,Object(k.a)({},o,a||!1))))))}}),qt=Object(v.combineReducers)({enableItems:mt});function pt(e,t,r){return{type:"SET_SINGLE_ENABLE_ITEM",itemType:e,scope:t,item:r}}function dt(e,t){return pt("complementaryArea",e,t)}function It(e){return pt("complementaryArea",e,void 0)}function Ot(e,t,r,n){return{type:"SET_MULTIPLE_ENABLE_ITEM",itemType:e,scope:t,item:r,isEnable:n}}function bt(e,t){return Ot("pinnedItems",e,t,!0)}function gt(e,t){return Ot("pinnedItems",e,t,!1)}function vt(e,t){return function(e,t,r){return Object(O.get)(e.enableItems.singleEnableItems,[t,r])}(e,"complementaryArea",t)}function ht(e,t,r){return!1!==function(e,t,r,n){return Object(O.get)(e.enableItems.multipleEnableItems,[t,r,n])}(e,"pinnedItems",t,r)}Object(v.registerStore)("core/interface",{reducer:qt,actions:o,selectors:a,persist:["enableItems"]});var jt=r(286),Ct=r(287),yt=r(176),Kt=Object(K.withPluginContext)((function(e,t){return{icon:t.icon||e.icon,identifier:t.identifier||"".concat(e.name,"/").concat(t.name)}}));var Et=Kt((function(e){var t=e.as,r=void 0===t?g.Button:t,n=e.scope,i=e.identifier,o=e.icon,a=e.selectedIcon,c=Object(I.a)(e,["as","scope","identifier","icon","selectedIcon"]),u=r,l=Object(v.useSelect)((function(e){return e("core/interface").getActiveComplementaryArea(n)===i}),[i]),s=Object(v.useDispatch)("core/interface"),m=s.enableComplementaryArea,q=s.disableComplementaryArea;return Object(A.createElement)(u,Object(d.a)({icon:a&&l?a:o,onClick:function(){l?q(n):m(n,i)}},Object(O.omit)(c,["name"])))})),ft=function(e){var t=e.smallScreenTitle,r=e.children,n=e.className,i=e.toggleButtonProps,o=Object(A.createElement)(Et,Object(d.a)({icon:yt.a},i));return Object(A.createElement)(A.Fragment,null,Object(A.createElement)("div",{className:"components-panel__header interface-complementary-area-header__small"},t&&Object(A.createElement)("span",{className:"interface-complementary-area-header__small-title"},t),o),Object(A.createElement)("div",{className:ut()("components-panel__header","interface-complementary-area-header",n),tabIndex:-1},r,o))};function St(e){var t=e.scope,r=Object(I.a)(e,["scope"]);return Object(A.createElement)(g.Fill,Object(d.a)({name:"PinnedItems/".concat(t)},r))}St.Slot=function(e){var t=e.scope,r=e.className,n=Object(I.a)(e,["scope","className"]);return Object(A.createElement)(g.Slot,Object(d.a)({name:"PinnedItems/".concat(t)},n),(function(e){return!Object(O.isEmpty)(e)&&Object(A.createElement)("div",{className:ut()(r,"interface-pinned-items")},e)}))};var Mt=St;function Zt(e){var t=e.scope,r=e.children,n=e.className;return Object(A.createElement)(g.Fill,{name:"ComplementaryArea/".concat(t)},Object(A.createElement)(g.Animate,{type:"slide-in",options:{origin:"left"}},(function(){return Object(A.createElement)("div",{className:n},r)})))}var zt=Kt((function(e){var t=e.children,r=e.className,n=e.closeLabel,i=void 0===n?Object(h.__)("Close plugin"):n,o=e.identifier,a=e.header,c=e.headerClassName,u=e.icon,l=e.isPinnable,s=void 0===l||l,m=e.panelClassName,q=e.scope,p=e.smallScreenTitle,d=e.title,I=e.toggleShortcut,O=e.isActiveByDefault,b=Object(v.useSelect)((function(e){var t=e("core/interface"),r=t.getActiveComplementaryArea,n=t.isItemPinned,i=r(q);return{isActive:i===o,isPinned:n(q,o),activeArea:i,isSmall:e("core/viewport").isViewportMatch("< medium")}}),[o,q]),j=b.isActive,C=b.isPinned,y=b.activeArea,K=b.isSmall;!function(e,t,r,n,i){var o=Object(A.useRef)(!1),a=Object(A.useRef)(!1),c=Object(v.useDispatch)("core/interface"),u=c.enableComplementaryArea,l=c.disableComplementaryArea;Object(A.useEffect)((function(){n&&i&&!o.current?(l(e),a.current=!0):a.current&&!i&&o.current?(a.current=!1,u(e,t)):a.current&&r&&r!==t&&(a.current=!1),i!==o.current&&(o.current=i)}),[n,i,e,t,r])}(q,o,y,j,K);var E=Object(v.useDispatch)("core/interface"),f=E.enableComplementaryArea,S=E.disableComplementaryArea,M=E.pinItem,Z=E.unpinItem;return Object(A.useEffect)((function(){O&&void 0===y&&!K&&f(q,o)}),[y,O,q,o,K]),Object(A.createElement)(A.Fragment,null,C&&s&&Object(A.createElement)(Mt,{scope:q},Object(A.createElement)(Et,{scope:q,identifier:o,isPressed:j,"aria-expanded":j,label:d,icon:u})),j&&Object(A.createElement)(Zt,{className:ut()("interface-complementary-area",r),scope:q},Object(A.createElement)(ft,{className:c,closeLabel:i,onClose:function(){return S(q)},smallScreenTitle:p,toggleButtonProps:{label:i,shortcut:I,scope:q,identifier:o}},a||Object(A.createElement)(A.Fragment,null,Object(A.createElement)("strong",null,d),s&&Object(A.createElement)(g.Button,{className:"interface-complementary-area__pin-unpin-item",icon:C?jt.a:Ct.a,label:C?Object(h.__)("Unpin from toolbar"):Object(h.__)("Pin to toolbar"),onClick:function(){return(C?Z:M)(q,o)},isPressed:C,"aria-expanded":C}))),Object(A.createElement)(g.Panel,{className:m},t)))}));zt.Slot=function(e){var t=e.scope,r=Object(I.a)(e,["scope"]);return Object(A.createElement)(g.Slot,Object(d.a)({name:"ComplementaryArea/".concat(t)},r))};var wt=zt,Bt=r(154);function Gt(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;t0?"mixed":"false",Object(A.createElement)("div",{role:"group","aria-labelledby":m,className:"edit-post-manage-blocks-modal__category"},Object(A.createElement)(g.CheckboxControl,{checked:q,onChange:a,className:"edit-post-manage-blocks-modal__category-title","aria-checked":l,label:Object(A.createElement)("span",{id:m},r)}),Object(A.createElement)(ur,{blockTypes:u,value:s,onItemChange:o}))}));var mr=Object(j.compose)([Object(j.withState)({search:""}),Object(v.withSelect)((function(e){var t=e("core/blocks"),r=t.getBlockTypes,n=t.getCategories,i=t.hasBlockSupport,o=t.isMatchingSearchTerm,a=(0,e("core/edit-post").getPreference)("hiddenBlockTypes"),A=Object(O.isArray)(a)&&a.length;return{blockTypes:r(),categories:n(),hasBlockSupport:i,isMatchingSearchTerm:o,numberOfHiddenBlocks:A}}))])((function(e){var t=e.search,r=e.setState,n=e.blockTypes,i=e.categories,o=e.hasBlockSupport,a=e.isMatchingSearchTerm,c=e.numberOfHiddenBlocks;return n=n.filter((function(e){return o(e,"inserter",!0)&&(!t||a(e,t))&&(!e.parent||Object(O.includes)(e.parent,"core/post-content"))})),Object(A.createElement)("div",{className:"edit-post-manage-blocks-modal__content"},Object(A.createElement)(g.TextControl,{type:"search",label:Object(h.__)("Search for a block"),value:t,onChange:function(e){return r({search:e})},className:"edit-post-manage-blocks-modal__search"}),!!c&&Object(A.createElement)("div",{className:"edit-post-manage-blocks-modal__disabled-blocks-count"},Object(h.sprintf)(Object(h._n)("%d block is disabled.","%d blocks are disabled.",c),c)),Object(A.createElement)("div",{tabIndex:"0",role:"region","aria-label":Object(h.__)("Available block types"),className:"edit-post-manage-blocks-modal__results"},0===n.length&&Object(A.createElement)("p",{className:"edit-post-manage-blocks-modal__no-results"},Object(h.__)("No blocks found.")),i.map((function(e){return Object(A.createElement)(sr,{key:e.slug,title:e.title,blockTypes:Object(O.filter)(n,{category:e.slug})})})),Object(A.createElement)(sr,{title:Object(h.__)("Uncategorized"),blockTypes:Object(O.filter)(n,(function(e){return!e.category}))})))}));var qr=Object(j.compose)([Object(v.withSelect)((function(e){return{isActive:(0,e("core/edit-post").isModalActive)("edit-post/manage-blocks")}})),Object(v.withDispatch)((function(e){return{closeModal:e("core/edit-post").closeModal}}))])((function(e){var t=e.isActive,r=e.closeModal;return t?Object(A.createElement)(g.Modal,{className:"edit-post-manage-blocks-modal",title:Object(h.__)("Block Manager"),closeLabel:Object(h.__)("Close"),onRequestClose:r},Object(A.createElement)(mr,null)):null})),pr=function(e){var t=e.title,r=e.children;return Object(A.createElement)("section",{className:"edit-post-options-modal__section"},Object(A.createElement)("h2",{className:"edit-post-options-modal__section-title"},t),r)},dr=r(114),Ir=Object(j.compose)(Object(v.withSelect)((function(e){return{isChecked:e("core/editor").isPublishSidebarEnabled()}})),Object(v.withDispatch)((function(e){var t=e("core/editor"),r=t.enablePublishSidebar,n=t.disablePublishSidebar;return{onChange:function(e){return e?r():n()}}})),Object(s.ifViewportMatches)("medium"))(dr.a),Or=Object(j.compose)(Object(v.withSelect)((function(e,t){var r=t.featureName;return{isChecked:(0,e("core/edit-post").isFeatureActive)(r)}})),Object(v.withDispatch)((function(e,t){var r=t.featureName;return{onChange:function(){return e("core/edit-post").toggleFeature(r)}}})))(dr.a),br=r(471),gr=r(472);function vr(e){var t=e.willEnable,r=Object(A.useState)(!1),n=Object(T.a)(r,2),i=n[0],o=n[1];return Object(A.createElement)(A.Fragment,null,Object(A.createElement)("p",{className:"edit-post-options-modal__custom-fields-confirmation-message"},Object(h.__)("A page reload is required for this change. Make sure your content is saved before reloading.")),Object(A.createElement)(g.Button,{className:"edit-post-options-modal__custom-fields-confirmation-button",isSecondary:!0,isBusy:i,disabled:i,onClick:function(){o(!0),document.getElementById("toggle-custom-fields-form").submit()}},t?Object(h.__)("Enable & Reload"):Object(h.__)("Disable & Reload")))}var hr=Object(v.withSelect)((function(e){return{areCustomFieldsEnabled:!!e("core/editor").getEditorSettings().enableCustomFields}}))((function(e){var t=e.label,r=e.areCustomFieldsEnabled,n=Object(A.useState)(r),i=Object(T.a)(n,2),o=i[0],a=i[1];return Object(A.createElement)(dr.a,{label:t,isChecked:o,onChange:a},o!==r&&Object(A.createElement)(vr,{willEnable:o}))}));var jr=Object(v.withSelect)((function(e){var t=e("core/editor").getEditorSettings,r=e("core/edit-post").getAllMetaBoxes;return{areCustomFieldsRegistered:void 0!==t().enableCustomFields,metaBoxes:r()}}))((function(e){var t=e.areCustomFieldsRegistered,r=e.metaBoxes,n=Object(I.a)(e,["areCustomFieldsRegistered","metaBoxes"]),i=Object(O.filter)(r,(function(e){return"postcustom"!==e.id}));return t||0!==i.length?Object(A.createElement)(pr,n,t&&Object(A.createElement)(hr,{label:Object(h.__)("Custom fields")}),Object(O.map)(i,(function(e){var t=e.id,r=e.title;return Object(A.createElement)(gr.a,{key:t,label:r,panelName:"meta-box-".concat(t)})}))):null}));var Cr=Object(j.compose)(Object(v.withSelect)((function(e){var t=e("core/editor").getEditedPostAttribute,r=(0,e("core").getPostType)(t("type"));return{isModalActive:e("core/edit-post").isModalActive("edit-post/options"),isViewable:Object(O.get)(r,["viewable"],!1)}})),Object(v.withDispatch)((function(e){return{closeModal:function(){return e("core/edit-post").closeModal()}}})))((function(e){var t=e.isModalActive,r=e.isViewable,n=e.closeModal;return t?Object(A.createElement)(g.Modal,{className:"edit-post-options-modal",title:Object(h.__)("Options"),closeLabel:Object(h.__)("Close"),onRequestClose:n},Object(A.createElement)(pr,{title:Object(h.__)("General")},Object(A.createElement)(Ir,{label:Object(h.__)("Pre-publish checks")}),Object(A.createElement)(Or,{featureName:"mostUsedBlocks",label:Object(h.__)("Enable the Most Used Blocks category in the block library")})),Object(A.createElement)(pr,{title:Object(h.__)("Keyboard options")},Object(A.createElement)(Or,{featureName:"keepCaretInsideBlock",label:Object(h.__)("Contain text cursor inside active block")})),Object(A.createElement)(pr,{title:Object(h.__)("Document panels")},Object(A.createElement)(br.a.Slot,null),r&&Object(A.createElement)(gr.a,{label:Object(h.__)("Permalink"),panelName:"post-link"}),Object(A.createElement)(u.PostTaxonomies,{taxonomyWrapper:function(e,t){return Object(A.createElement)(gr.a,{label:Object(O.get)(t,["labels","menu_name"]),panelName:"taxonomy-panel-".concat(t.slug)})}}),Object(A.createElement)(u.PostFeaturedImageCheck,null,Object(A.createElement)(gr.a,{label:Object(h.__)("Featured image"),panelName:"featured-image"})),Object(A.createElement)(u.PostExcerptCheck,null,Object(A.createElement)(gr.a,{label:Object(h.__)("Excerpt"),panelName:"post-excerpt"})),Object(A.createElement)(u.PostTypeSupportCheck,{supportKeys:["comments","trackbacks"]},Object(A.createElement)(gr.a,{label:Object(h.__)("Discussion"),panelName:"discussion-panel"})),Object(A.createElement)(u.PageAttributesCheck,null,Object(A.createElement)(gr.a,{label:Object(h.__)("Page attributes"),panelName:"page-attributes"}))),Object(A.createElement)(jr,{title:Object(h.__)("Advanced panels")})):null}));function yr(){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}}var Kr=function(e){Object(it.a)(n,e);var t,r=(t=n,function(){var e,r=Object(nt.a)(t);if(yr()){var n=Object(nt.a)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return Object(rt.a)(this,e)});function n(){var e;return Object(et.a)(this,n),(e=r.apply(this,arguments)).state={historyId:null},e}return Object(tt.a)(n,[{key:"componentDidUpdate",value:function(e){var t=this.props,r=t.postId,n=t.postStatus,i=t.postType,o=t.isSavingPost,a=this.state.historyId;"trash"!==n||o?r===e.postId&&r===a||"auto-draft"===n||this.setBrowserURL(r):this.setTrashURL(r,i)}},{key:"setTrashURL",value:function(e,t){window.location.href=function(e,t){return Object(E.addQueryArgs)("edit.php",{trashed:1,post_type:t,ids:e})}(e,t)}},{key:"setBrowserURL",value:function(e){window.history.replaceState({id:e},"Post "+e,function(e){return Object(E.addQueryArgs)("post.php",{post:e,action:"edit"})}(e)),this.setState((function(){return{historyId:e}}))}},{key:"render",value:function(){return null}}]),n}(A.Component),Er=Object(v.withSelect)((function(e){var t=e("core/editor"),r=t.getCurrentPost,n=t.isSavingPost,i=r();return{postId:i.id,postStatus:i.status,postType:i.type,isSavingPost:n()}}))(Kr),fr=r(6),Sr=Object(A.createElement)(fr.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(A.createElement)(fr.Path,{d:"M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"}));var Mr=function(){var e=Object(v.useSelect)((function(e){var t=e("core/editor").getCurrentPostType,r=e("core/edit-post").isFeatureActive,n=e("core").getPostType;return{isActive:r("fullscreenMode"),postType:n(t())}}),[]),t=e.isActive,r=e.postType;return t&&r?Object(A.createElement)(g.Button,{className:"edit-post-fullscreen-mode-close",icon:Sr,iconSize:36,href:Object(E.addQueryArgs)("edit.php",{post_type:r.slug}),label:Object(O.get)(r,["labels","view_items"],Object(h.__)("Back"))}):null},Zr=r(291);var zr=function(){var e=Object(v.useDispatch)("core/edit-post").setIsInserterOpened,t=Object(v.useSelect)((function(e){var t=e("core/block-editor"),r=t.hasInserterItems,n=t.getBlockRootClientId,i=t.getBlockSelectionEnd;return{hasFixedToolbar:e("core/edit-post").isFeatureActive("fixedToolbar"),isInserterEnabled:"visual"===e("core/edit-post").getEditorMode()&&e("core/editor").getEditorSettings().richEditingEnabled&&r(n(i())),isInserterOpened:e("core/edit-post").isInserterOpened(),isTextModeEnabled:"text"===e("core/edit-post").getEditorMode(),previewDeviceType:e("core/edit-post").__experimentalGetPreviewDeviceType()}}),[]),r=t.hasFixedToolbar,n=t.isInserterEnabled,i=t.isInserterOpened,o=t.isTextModeEnabled,a=t.previewDeviceType,l=Object(j.useViewportMatch)("medium"),s=!l||"Desktop"!==a||r,m=s?Object(h.__)("Document and block tools"):Object(h.__)("Document tools");return Object(A.createElement)(c.NavigableToolbar,{className:"edit-post-header-toolbar","aria-label":m},Object(A.createElement)(g.__experimentalToolbarItem,{as:g.Button,className:"edit-post-header-toolbar__inserter-toggle",isPrimary:!0,isPressed:i,onClick:function(){return e(!i)},disabled:!n,icon:Zr.a,label:Object(h._x)("Add block","Generic label for block inserter button")}),l&&Object(A.createElement)(g.__experimentalToolbarItem,{as:c.ToolSelector}),Object(A.createElement)(g.__experimentalToolbarItem,{as:u.EditorHistoryUndo}),Object(A.createElement)(g.__experimentalToolbarItem,{as:u.EditorHistoryRedo}),Object(A.createElement)(g.__experimentalToolbarItem,{as:u.TableOfContents,hasOutlineItemsDisabled:o}),Object(A.createElement)(g.__experimentalToolbarItem,{as:c.BlockNavigationDropdown,isDisabled:o}),s&&Object(A.createElement)("div",{className:"edit-post-header-toolbar__block-toolbar"},Object(A.createElement)(c.BlockToolbar,{hideDragHandle:!0})))},wr=r(298);function Br(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 Gr=[{value:"visual",label:Object(h.__)("Visual editor")},{value:"text",label:Object(h.__)("Code editor")}];var Yr=function(){var e=Object(v.useSelect)((function(e){return{shortcut:e("core/keyboard-shortcuts").getShortcutRepresentation("core/edit-post/toggle-mode"),isRichEditingEnabled:e("core/editor").getEditorSettings().richEditingEnabled,isCodeEditingEnabled:e("core/editor").getEditorSettings().codeEditingEnabled,mode:e("core/edit-post").getEditorMode()}}),[]),t=e.shortcut,r=e.isRichEditingEnabled,n=e.isCodeEditingEnabled,i=e.mode,o=Object(v.useDispatch)("core/edit-post").switchEditorMode;if(!r||!n)return null;var a=Gr.map((function(e){return e.value!==i?function(e){for(var t=1;t icon."),{InserterIconImage:Object(A.createElement)(Qn,{className:"edit-post-welcome-guide__inserter-icon"})})))},{image:Object(A.createElement)(kn,null),content:Object(A.createElement)(A.Fragment,null,Object(A.createElement)("h1",{className:"edit-post-welcome-guide__heading"},Object(h.__)("Learn how to use the block editor")),Object(A.createElement)("p",{className:"edit-post-welcome-guide__text"},Object(h.__)("New to the block editor? Want to learn more about using it? "),Object(A.createElement)(g.ExternalLink,{href:Object(h.__)("https://wordpress.org/support/article/wordpress-editor/")},Object(h.__)("Here's a detailed guide."))))}]}):null}var Ln=Object(g.createSlotFill)("PluginPostPublishPanel"),Dn=Ln.Fill,Nn=Ln.Slot,Jn=Object(j.compose)(Object(K.withPluginContext)((function(e,t){return{icon:t.icon||e.icon}})))((function(e){var t=e.children,r=e.className,n=e.title,i=e.initialOpen,o=void 0!==i&&i,a=e.icon;return Object(A.createElement)(Dn,null,Object(A.createElement)(g.PanelBody,{className:r,initialOpen:o||!n,title:n,icon:a},t))}));Jn.Slot=Nn;var Pn=Jn,xn=Object(g.createSlotFill)("PluginPrePublishPanel"),Hn=xn.Fill,Rn=xn.Slot,Tn=Object(j.compose)(Object(K.withPluginContext)((function(e,t){return{icon:t.icon||e.icon}})))((function(e){var t=e.children,r=e.className,n=e.title,i=e.initialOpen,o=void 0!==i&&i,a=e.icon;return Object(A.createElement)(Hn,null,Object(A.createElement)(g.PanelBody,{className:r,initialOpen:o||!n,title:n,icon:a},t))}));Tn.Slot=Rn;var Fn=Tn;function Un(e){var t,r=e.setEntitiesSavedStatesCallback,n=e.closeEntitiesSavedStates,i=e.isEntitiesSavedStatesOpen,o=Object(v.useDispatch)("core/edit-post"),a=o.closePublishSidebar,c=o.togglePublishSidebar,l=Object(v.useSelect)((function(e){return{publishSidebarOpened:e("core/edit-post").isPublishSidebarOpened(),hasActiveMetaboxes:e("core/edit-post").hasMetaBoxes(),isSavingMetaBoxes:e("core/edit-post").isSavingMetaBoxes(),hasNonPostEntityChanges:e("core/editor").hasNonPostEntityChanges()}}),[]),s=l.publishSidebarOpened,m=l.hasActiveMetaboxes,q=l.isSavingMetaBoxes,p=l.hasNonPostEntityChanges,d=Object(A.useCallback)((function(){return r(!0)}),[]);return t=s?Object(A.createElement)(u.PostPublishPanel,{onClose:a,forceIsDirty:m,forceIsSaving:q,PrePublishExtension:Fn.Slot,PostPublishExtension:Pn.Slot}):p?Object(A.createElement)("div",{className:"edit-post-layout__toggle-entities-saved-states-panel"},Object(A.createElement)(g.Button,{isSecondary:!0,className:"edit-post-layout__toggle-entities-saved-states-panel-button",onClick:d,"aria-expanded":!1},Object(h.__)("Open save panel"))):Object(A.createElement)("div",{className:"edit-post-layout__toggle-publish-panel"},Object(A.createElement)(g.Button,{isSecondary:!0,className:"edit-post-layout__toggle-publish-panel-button",onClick:c,"aria-expanded":!1},Object(h.__)("Open publish panel"))),Object(A.createElement)(A.Fragment,null,Object(A.createElement)(u.EntitiesSavedStates,{isOpen:i,close:n}),!i&&t)}var Xn={leftSidebar:Object(h.__)("Block library"),header:Object(h.__)("Editor top bar"),body:Object(h.__)("Editor content"),sidebar:Object(h.__)("Editor settings"),actions:Object(h.__)("Editor publish"),footer:Object(h.__)("Editor footer")};var Vn=function(){var e=Object(j.useViewportMatch)("medium","<"),t=Object(j.useViewportMatch)("huge",">="),r=Object(v.useDispatch)("core/edit-post"),n=r.openGeneralSidebar,i=r.closeGeneralSidebar,o=r.setIsInserterOpened,a=Object(v.useSelect)((function(e){return{hasFixedToolbar:e("core/edit-post").isFeatureActive("fixedToolbar"),sidebarIsOpened:!(!e("core/interface").getActiveComplementaryArea("core/edit-post")&&!e("core/edit-post").isPublishSidebarOpened()),isFullscreenActive:e("core/edit-post").isFeatureActive("fullscreenMode"),showMostUsedBlocks:e("core/edit-post").isFeatureActive("mostUsedBlocks"),isInserterOpened:e("core/edit-post").isInserterOpened(),mode:e("core/edit-post").getEditorMode(),isRichEditingEnabled:e("core/editor").getEditorSettings().richEditingEnabled,hasActiveMetaboxes:e("core/edit-post").hasMetaBoxes(),previousShortcut:e("core/keyboard-shortcuts").getAllShortcutRawKeyCombinations("core/edit-post/previous-region"),nextShortcut:e("core/keyboard-shortcuts").getAllShortcutRawKeyCombinations("core/edit-post/next-region")}}),[]),l=a.mode,s=a.isFullscreenActive,m=a.isRichEditingEnabled,q=a.sidebarIsOpened,p=a.hasActiveMetaboxes,d=a.hasFixedToolbar,I=a.previousShortcut,O=a.nextShortcut,b=a.hasBlockSelected,C=a.showMostUsedBlocks,y=a.isInserterOpened,E=ut()("edit-post-layout","is-mode-"+l,{"is-sidebar-opened":q,"has-fixed-toolbar":d,"has-metaboxes":p});Object(A.useEffect)((function(){q&&!t&&o(!1)}),[q,t]),Object(A.useEffect)((function(){y&&!t&&i()}),[y,t]);var f=Object(A.useState)(!1),S=Object(T.a)(f,2),M=S[0],Z=S[1],z=Object(A.useCallback)((function(e){"function"==typeof M&&M(e),Z(!1)}),[M]);return Object(A.createElement)(A.Fragment,null,Object(A.createElement)(Dt,{isActive:s}),Object(A.createElement)(Er,null),Object(A.createElement)(u.UnsavedChangesWarning,null),Object(A.createElement)(u.AutosaveMonitor,null),Object(A.createElement)(u.LocalAutosaveMonitor,null),Object(A.createElement)($t,null),Object(A.createElement)(u.EditorKeyboardShortcutsRegister,null),Object(A.createElement)(wn,null),Object(A.createElement)(g.FocusReturnProvider,null,Object(A.createElement)(Jt,{className:E,labels:Xn,header:Object(A.createElement)(Hr,{setEntitiesSavedStatesCallback:Z}),leftSidebar:"visual"===l&&y&&Object(A.createElement)("div",{className:"edit-post-layout__inserter-panel"},Object(A.createElement)("div",{className:"edit-post-layout__inserter-panel-header"},Object(A.createElement)(g.Button,{icon:Ut.a,onClick:function(){return o(!1)}})),Object(A.createElement)("div",{className:"edit-post-layout__inserter-panel-content"},Object(A.createElement)(c.__experimentalLibrary,{showMostUsedBlocks:C,showInserterHelpPanel:!0,onSelect:function(){e&&o(!1)}}))),sidebar:(!e||q)&&Object(A.createElement)(A.Fragment,null,!e&&!q&&Object(A.createElement)("div",{className:"edit-post-layout__toogle-sidebar-panel"},Object(A.createElement)(g.Button,{isSecondary:!0,className:"edit-post-layout__toogle-sidebar-panel-button",onClick:function(){return n(b?"edit-post/block":"edit-post/document")},"aria-expanded":!1},b?Object(h.__)("Open block settings"):Object(h.__)("Open document settings"))),Object(A.createElement)(wt.Slot,{scope:"core/edit-post"})),content:Object(A.createElement)(A.Fragment,null,Object(A.createElement)(u.EditorNotices,null),("text"===l||!m)&&Object(A.createElement)(Xt,null),m&&"visual"===l&&Object(A.createElement)(_t,null),Object(A.createElement)("div",{className:"edit-post-layout__metaboxes"},Object(A.createElement)(Sn,{location:"normal"}),Object(A.createElement)(Sn,{location:"advanced"})),e&&q&&Object(A.createElement)(g.ScrollLock,null)),footer:!e&&m&&"visual"===l&&Object(A.createElement)("div",{className:"edit-post-layout__footer"},Object(A.createElement)(c.BlockBreadcrumb,null)),actions:Object(A.createElement)(Un,{closeEntitiesSavedStates:z,isEntitiesSavedStatesOpen:M,setEntitiesSavedStatesCallback:Z}),shortcuts:{previous:I,next:O}}),Object(A.createElement)(qr,null),Object(A.createElement)(Cr,null),Object(A.createElement)(cr,null),Object(A.createElement)(Wn,null),Object(A.createElement)(g.Popover.Slot,null),Object(A.createElement)(K.PluginArea,null)))};function _n(e){var t=e.postId;return function(e){var t=Object(v.useSelect)((function(e){return{hasBlockSelection:!!e("core/block-editor").getBlockSelectionStart(),isEditorSidebarOpened:e("core/edit-post").isEditorSidebarOpened()}}),[e]),r=t.hasBlockSelection,n=t.isEditorSidebarOpened,i=Object(v.useDispatch)("core/edit-post").openGeneralSidebar;Object(A.useEffect)((function(){n&&i(r?"edit-post/block":"edit-post/document")}),[r,n])}(t),function(e){var t=Object(v.useSelect)((function(e){return{newPermalink:e("core/editor").getCurrentPost().link}}),[e]).newPermalink,r=Object(A.useRef)();Object(A.useEffect)((function(){r.current=document.querySelector("#wp-admin-bar-preview a")||document.querySelector("#wp-admin-bar-view a")}),[e]),Object(A.useEffect)((function(){t&&r.current&&r.current.setAttribute("href",t)}),[t])}(t),null}function $n(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(){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}}var ti=function(e){Object(it.a)(n,e);var t,r=(t=n,function(){var e,r=Object(nt.a)(t);if(ei()){var n=Object(nt.a)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return Object(rt.a)(this,e)});function n(){var e;return Object(et.a)(this,n),(e=r.apply(this,arguments)).getEditorSettings=at()(e.getEditorSettings,{maxSize:1}),e}return Object(tt.a)(n,[{key:"getEditorSettings",value:function(e,t,r,n,i,o,a,A,c,u){if(e=function(e){for(var t=1;t0){var l=!0===e.allowedBlockTypes?Object(O.map)(i,"name"):e.allowedBlockTypes||[];e.allowedBlockTypes=O.without.apply(void 0,[l].concat(Object(W.a)(n)))}return e}},{key:"render",value:function(){var e=this.props,t=e.settings,r=e.hasFixedToolbar,n=e.focusMode,i=e.post,o=e.postId,a=e.initialEdits,c=e.onError,l=e.hiddenBlockTypes,s=e.blockTypes,m=e.preferredStyleVariations,q=e.__experimentalLocalAutosaveInterval,p=e.setIsInserterOpened,O=e.updatePreferredStyleVariations,b=e.keepCaretInsideBlock,v=Object(I.a)(e,["settings","hasFixedToolbar","focusMode","post","postId","initialEdits","onError","hiddenBlockTypes","blockTypes","preferredStyleVariations","__experimentalLocalAutosaveInterval","setIsInserterOpened","updatePreferredStyleVariations","keepCaretInsideBlock"]);if(!i)return null;var h=this.getEditorSettings(t,r,n,l,s,m,q,p,O,b);return Object(A.createElement)(A.StrictMode,null,Object(A.createElement)(lr.Provider,{value:t},Object(A.createElement)(g.SlotFillProvider,null,Object(A.createElement)(g.DropZoneProvider,null,Object(A.createElement)(u.EditorProvider,Object(d.a)({settings:h,post:i,initialEdits:a,useSubRegistry:!1},v),Object(A.createElement)(u.ErrorBoundary,{onError:c},Object(A.createElement)(_n,{postId:o}),Object(A.createElement)(Vn,null),Object(A.createElement)(g.KeyboardShortcuts,{shortcuts:At})),Object(A.createElement)(u.PostLockedModal,null))))))}}]),n}(A.Component),ri=Object(j.compose)([Object(v.withSelect)((function(e,t){var r=t.postId,n=t.postType,i=e("core/edit-post"),o=i.isFeatureActive,a=i.getPreference,A=i.__experimentalGetPreviewDeviceType,c=e("core").getEntityRecord,u=e("core/blocks").getBlockTypes;return{hasFixedToolbar:o("fixedToolbar")||"Desktop"!==A(),focusMode:o("focusMode"),post:c("postType",n,r),preferredStyleVariations:a("preferredStyleVariations"),hiddenBlockTypes:a("hiddenBlockTypes"),blockTypes:u(),__experimentalLocalAutosaveInterval:a("localAutosaveInterval"),keepCaretInsideBlock:o("keepCaretInsideBlock")}})),Object(v.withDispatch)((function(e){var t=e("core/edit-post");return{updatePreferredStyleVariations:t.updatePreferredStyleVariations,setIsInserterOpened:t.setIsInserterOpened}}))])(ti),ni=r(421),ii=function(e,t){return!Array.isArray(t)||(r=e,n=t,0===Object(O.difference)(r,n).length);var r,n},oi=function(e){var t=e.allowedBlocks,r=e.icon,n=e.label,i=e.onClick,o=e.small,a=e.role;return Object(A.createElement)(c.BlockSettingsMenuControls,null,(function(e){var c=e.selectedBlocks,u=e.onClose;return ii(c,t)?Object(A.createElement)(g.MenuItem,{onClick:Object(j.compose)(i,u),icon:r||ni.a,label:o?n:void 0,role:a},!o&&n):null}))},ai=Object(j.compose)(Object(K.withPluginContext)((function(e,t){return{icon:t.icon||e.icon,name:"core/edit-post/plugin-more-menu"}})))(Qt);function Ai(e){return Object(A.createElement)(Wt,Object(d.a)({scope:"core/edit-post"},e))}function ci(e,t,r,n,i){Object(A.unmountComponentAtNode)(r);var o=ci.bind(null,e,t,r,n,i);Object(A.render)(Object(A.createElement)(ri,{settings:n,onError:o,postId:t,postType:e,initialEdits:i,recovery:!0}),r)}function ui(e,t,r,n,i){var o=document.getElementById(e),a=ci.bind(null,t,r,o,n,i);Object(m.registerCoreBlocks)(),"Standards"!==("CSS1Compat"===document.compatMode?"Standards":"Quirks")&&console.warn("Your browser is using Quirks Mode. \nThis can cause rendering issues such as blocks overlaying meta boxes in the editor. Quirks Mode can be triggered by PHP errors or HTML code appearing before the opening . Try checking the raw page source or your site's PHP error log and resolving errors there, removing any HTML before the doctype, or disabling plugins."),-1!==window.navigator.userAgent.indexOf("iPhone")&&window.addEventListener("scroll",(function(e){var t=document.getElementsByClassName("interface-interface-skeleton__body")[0];e.target===document&&(window.scrollY>100&&(t.scrollTop=t.scrollTop+window.scrollY),document.getElementsByClassName("is-mode-visual")[0]&&window.scrollTo(0,0))})),Object(A.render)(Object(A.createElement)(ri,{settings:n,onError:a,postId:r,postType:t,initialEdits:i}),o)}},45:function(e,t){!function(){e.exports=this.wp.apiFetch}()},471:function(e,t,r){"use strict";var n=r(0),i=r(3),o=r(472),a=Object(i.createSlotFill)("EnablePluginDocumentSettingPanelOption"),A=a.Fill,c=a.Slot,u=function(e){var t=e.label,r=e.panelName;return Object(n.createElement)(A,null,Object(n.createElement)(o.a,{label:t,panelName:r}))};u.Slot=c,t.a=u},472:function(e,t,r){"use strict";var n=r(9),i=r(4),o=r(114);t.a=Object(n.compose)(Object(i.withSelect)((function(e,t){var r=t.panelName,n=e("core/edit-post"),i=n.isEditorPanelEnabled;return{isRemoved:(0,n.isEditorPanelRemoved)(r),isChecked:i(r)}})),Object(n.ifCondition)((function(e){return!e.isRemoved})),Object(i.withDispatch)((function(e,t){var r=t.panelName;return{onChange:function(){return e("core/edit-post").toggleEditorPanelEnabled(r)}}})))(o.a)},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}))},52:function(e,t){!function(){e.exports=this.wp.keyboardShortcuts}()},57:function(e,t){!function(){e.exports=this.wp.a11y}()},6:function(e,t){!function(){e.exports=this.wp.primitives}()},60:function(e,t,r){e.exports=function(e,t){var r,n,i=0;function o(){var o,a,A=r,c=arguments.length;e:for(;A;){if(A.args.length===arguments.length){for(a=0;a1)for(var r=1;r=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}},151:function(e,t){!function(){e.exports=this.wp.mediaUtils}()},153:function(e,t,r){"use strict";var n=r(0),i=r(6),o=Object(n.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(i.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=o},154:function(e,t,r){"use strict";var n=r(0),i=r(6),o=Object(n.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(i.Path,{d:"M9 18.6L3.5 13l1-1L9 16.4l9.5-9.9 1 1z"}));t.a=o},16:function(e,t,r){"use strict";function n(e){return(n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}r.d(t,"a",(function(){return n}))},163:function(e,t,r){"use strict";(function(e){var n=r(0),i=r(3),o=r(9),a=r(76),A=r(4),c=(r(104),r(471)),u=Object(i.createSlotFill)("PluginDocumentSettingPanel"),l=u.Fill,s=u.Slot,m=Object(o.compose)(Object(a.withPluginContext)((function(t,r){return void 0===r.name&&void 0!==e&&e.env,{icon:r.icon||t.icon,panelName:"".concat(t.name,"/").concat(r.name)}})),Object(A.withSelect)((function(e,t){var r=t.panelName;return{opened:e("core/edit-post").isEditorPanelOpened(r),isEnabled:e("core/edit-post").isEditorPanelEnabled(r)}})),Object(A.withDispatch)((function(e,t){var r=t.panelName;return{onToggle:function(){return e("core/edit-post").toggleEditorPanelOpened(r)}}})))((function(e){var t=e.isEnabled,r=e.panelName,o=e.opened,a=e.onToggle,A=e.className,u=e.title,s=e.icon,m=e.children;return Object(n.createElement)(n.Fragment,null,Object(n.createElement)(c.a,{label:u,panelName:r}),Object(n.createElement)(l,null,t&&Object(n.createElement)(i.PanelBody,{className:A,title:u,icon:s,opened:o,onToggle:a},m)))}));m.Slot=s,t.a=m}).call(this,r(117))},176:function(e,t,r){"use strict";var n=r(0),i=r(6),o=Object(n.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(i.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=o},18:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(26);var i=r(35),o=r(29);function a(e){return function(e){if(Array.isArray(e))return Object(n.a)(e)}(e)||Object(i.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.")}()}},19:function(e,t,r){"use strict";function n(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||(i[r]=e[r]);return i}r.d(t,"a",(function(){return n}))},410:function(e,t,r){"use strict";var n=r(0),i=r(6),o=Object(n.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(i.Path,{d:"M18.2 17c0 .7-.6 1.2-1.2 1.2H7c-.7 0-1.2-.6-1.2-1.2V7c0-.7.6-1.2 1.2-1.2h3.2V4.2H7C5.5 4.2 4.2 5.5 4.2 7v10c0 1.5 1.2 2.8 2.8 2.8h10c1.5 0 2.8-1.2 2.8-2.8v-3.6h-1.5V17zM14.9 3v1.5h3.7l-6.4 6.4 1.1 1.1 6.4-6.4v3.7h1.5V3h-6.3z"}));t.a=o},42:function(e,t,r){"use strict";var n,i;function o(e){return[e]}function a(){var e={clear:function(){e.head=null}};return e}function A(e,t,r){var n;if(e.length!==t.length)return!1;for(n=r;n0})))((function(e){var t=e.createNotice,r=e.editedPostContent,n=Object(A.useRef)(),i=Object(j.useCopyOnClick)(n,r);return Object(A.useEffect)((function(){i&&t("info",Object(h.__)("All content copied."),{isDismissible:!0,type:"snackbar"})}),[i]),Object(A.createElement)(g.MenuItem,{ref:n},i?Object(h.__)("Copied!"):Object(h.__)("Copy all content"))}));var S=Object(v.withDispatch)((function(e){return{openModal:e("core/edit-post").openModal}}))((function(e){var t=e.openModal;return Object(A.createElement)(g.MenuItem,{onClick:function(){t("edit-post/manage-blocks")}},Object(h.__)("Block Manager"))})),M=r(21);var Z=Object(v.withDispatch)((function(e){return{openModal:e("core/edit-post").openModal}}))((function(e){var t=e.openModal;return Object(A.createElement)(g.MenuItem,{onClick:function(){t("edit-post/keyboard-shortcut-help")},shortcut:M.displayShortcut.access("h")},Object(h.__)("Keyboard shortcuts"))})),z=Object(g.createSlotFill)("ToolsMoreMenuGroup"),w=z.Fill,B=z.Slot;w.Slot=function(e){var t=e.fillProps;return Object(A.createElement)(B,{fillProps:t},(function(e){return!Object(O.isEmpty)(e)&&Object(A.createElement)(g.MenuGroup,{label:Object(h.__)("Tools")},e)}))};var G=w;function Y(){var e=Object(v.useDispatch)("core/edit-post").toggleFeature;return Object(A.createElement)(g.MenuItem,{onClick:function(){return e("welcomeGuide")}},Object(h.__)("Welcome Guide"))}Object(K.registerPlugin)("edit-post",{render:function(){return Object(A.createElement)(A.Fragment,null,Object(A.createElement)(G,null,(function(e){var t=e.onClose;return Object(A.createElement)(A.Fragment,null,Object(A.createElement)(S,{onSelect:t}),Object(A.createElement)(g.MenuItem,{role:"menuitem",href:Object(E.addQueryArgs)("edit.php",{post_type:"wp_block"})},Object(h.__)("Manage all reusable blocks")),Object(A.createElement)(Z,{onSelect:t}),Object(A.createElement)(Y,null),Object(A.createElement)(f,null),Object(A.createElement)(g.MenuItem,{role:"menuitem",href:Object(h.__)("https://wordpress.org/support/article/wordpress-editor/"),target:"_blank",rel:"noopener noreferrer"},Object(h.__)("Help")))})))}});var k=r(5),Q=r(36),W=r(18);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 D(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:N,r=arguments.length>1?arguments[1]:void 0;return e(t,r)}})])({panels:function(e,t){switch(t.type){case"TOGGLE_PANEL_ENABLED":var r=t.panelName;return D({},e,Object(k.a)({},r,D({},e[r],{enabled:!Object(O.get)(e,[r,"enabled"],!0)})));case"TOGGLE_PANEL_OPENED":var n=t.panelName,i=!0===e[n]||Object(O.get)(e,[n,"opened"],!1);return D({},e,Object(k.a)({},n,D({},e[n],{opened:!i})))}return e},features:function(e,t){return"TOGGLE_FEATURE"===t.type?D({},e,Object(k.a)({},t.feature,!e[t.feature])):e},editorMode:function(e,t){return"SWITCH_MODE"===t.type?t.mode:e},hiddenBlockTypes:function(e,t){switch(t.type){case"SHOW_BLOCK_TYPES":return O.without.apply(void 0,[e].concat(Object(W.a)(t.blockNames)));case"HIDE_BLOCK_TYPES":return Object(O.union)(e,t.blockNames)}return e},preferredStyleVariations:function(e,t){switch(t.type){case"UPDATE_PREFERRED_STYLE_VARIATIONS":return t.blockName?t.blockStyle?D({},e,Object(k.a)({},t.blockName,t.blockStyle)):Object(O.omit)(e,[t.blockName]):e}return e},localAutosaveInterval:function(e,t){switch(t.type){case"UPDATE_LOCAL_AUTOSAVE_INTERVAL":return t.interval}return e}});var P=Object(v.combineReducers)({isSaving:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REQUEST_META_BOX_UPDATES":return!0;case"META_BOX_UPDATES_SUCCESS":return!1;default:return e}},locations:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_META_BOXES_PER_LOCATIONS":return t.metaBoxesPerLocation}return e}}),x=Object(v.combineReducers)({activeModal:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"OPEN_MODAL":return t.name;case"CLOSE_MODAL":return null}return e},metaBoxes:P,preferences:J,publishSidebarActive:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"OPEN_PUBLISH_SIDEBAR":return!0;case"CLOSE_PUBLISH_SIDEBAR":return!1;case"TOGGLE_PUBLISH_SIDEBAR":return!e}return e},removedPanels:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REMOVE_PANEL":if(!Object(O.includes)(e,t.panelName))return[].concat(Object(W.a)(e),[t.panelName])}return e},deviceType:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Desktop",t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_PREVIEW_DEVICE_TYPE":return t.deviceType}return e},isInserterOpened:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_IS_INSERTER_OPENED":return t.value}return e}}),H=r(110),R=r.n(H),T=r(14),F=r(54),U=r(45),X=r.n(U),V=r(24),_=r.n(V),$=_.a.mark(te),ee=_.a.mark(re);function te(e){return _.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(Q.dispatch)("core/interface","enableComplementaryArea","core/edit-post",e);case 2:case"end":return t.stop()}}),$)}function re(){return _.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(Q.dispatch)("core/interface","disableComplementaryArea","core/edit-post");case 2:case"end":return e.stop()}}),ee)}function ne(e){return{type:"OPEN_MODAL",name:e}}function ie(){return{type:"CLOSE_MODAL"}}function oe(){return{type:"OPEN_PUBLISH_SIDEBAR"}}function ae(){return{type:"CLOSE_PUBLISH_SIDEBAR"}}function Ae(){return{type:"TOGGLE_PUBLISH_SIDEBAR"}}function ce(e){return{type:"TOGGLE_PANEL_ENABLED",panelName:e}}function ue(e){return{type:"TOGGLE_PANEL_OPENED",panelName:e}}function le(e){return{type:"REMOVE_PANEL",panelName:e}}function se(e){return{type:"TOGGLE_FEATURE",feature:e}}function me(e){return{type:"SWITCH_MODE",mode:e}}function qe(e){return{type:"TOGGLE_PINNED_PLUGIN_ITEM",pluginName:e}}function pe(e){return{type:"HIDE_BLOCK_TYPES",blockNames:Object(O.castArray)(e)}}function de(e,t){return{type:"UPDATE_PREFERRED_STYLE_VARIATIONS",blockName:e,blockStyle:t}}function Ie(e){return{type:"UPDATE_LOCAL_AUTOSAVE_INTERVAL",interval:e}}function Oe(e){return{type:"SHOW_BLOCK_TYPES",blockNames:Object(O.castArray)(e)}}function be(e){return{type:"SET_META_BOXES_PER_LOCATIONS",metaBoxesPerLocation:e}}function ge(){return{type:"REQUEST_META_BOX_UPDATES"}}function ve(){return{type:"META_BOX_UPDATES_SUCCESS"}}function he(e){return{type:"SET_PREVIEW_DEVICE_TYPE",deviceType:e}}function je(e){return{type:"SET_IS_INSERTER_OPENED",value:e}}var Ce=r(42);function ye(e){return Me(e,"editorMode","visual")}var Ke=Object(v.createRegistrySelector)((function(e){return function(){var t=e("core/interface").getActiveComplementaryArea("core/edit-post");return Object(O.includes)(["edit-post/document","edit-post/block"],t)}})),Ee=Object(v.createRegistrySelector)((function(e){return function(){var t=e("core/interface").getActiveComplementaryArea("core/edit-post");return!!t&&!Object(O.includes)(["edit-post/document","edit-post/block"],t)}})),fe=Object(v.createRegistrySelector)((function(e){return function(){return e("core/interface").getActiveComplementaryArea("core/edit-post")}}));function Se(e){return e.preferences}function Me(e,t,r){var n=Se(e)[t];return void 0===n?r:n}function Ze(e){return e.publishSidebarActive}function ze(e,t){return Object(O.includes)(e.removedPanels,t)}function we(e,t){var r=Me(e,"panels");return!ze(e,t)&&Object(O.get)(r,[t,"enabled"],!0)}function Be(e,t){var r=Me(e,"panels");return!0===Object(O.get)(r,[t])||!0===Object(O.get)(r,[t,"opened"])}function Ge(e,t){return e.activeModal===t}function Ye(e,t){return Object(O.get)(e.preferences.features,[t],!1)}var ke=Object(v.createRegistrySelector)((function(e){return function(t){return e("core/interface").isItemPinned("core/edit-post",t)}})),Qe=Object(Ce.a)((function(e){return Object.keys(e.metaBoxes.locations).filter((function(t){return Le(e,t)}))}),(function(e){return[e.metaBoxes.locations]}));function We(e,t){return Le(e,t)&&Object(O.some)(De(e,t),(function(t){var r=t.id;return we(e,"meta-box-".concat(r))}))}function Le(e,t){var r=De(e,t);return!!r&&0!==r.length}function De(e,t){return e.metaBoxes.locations[t]}var Ne=Object(Ce.a)((function(e){return Object(O.flatten)(Object(O.values)(e.metaBoxes.locations))}),(function(e){return[e.metaBoxes.locations]}));function Je(e){return Qe(e).length>0}function Pe(e){return e.metaBoxes.isSaving}function xe(e){return e.deviceType}function He(e){return e.isInserterOpened}var Re;function Te(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(!e)return;if("string"==typeof e)return Fe(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(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Fe(e,t)}(e))){var t=0,r=function(){};return{s:r,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f: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.")}var n,i,o=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){a=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(a)throw i}}}}function Fe(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.itemType,i=t.scope,o=t.item;return"SET_SINGLE_ENABLE_ITEM"===r&&n&&i?st({},e,Object(k.a)({},n,st({},e[n],Object(k.a)({},i,o||null)))):e},multipleEnableItems:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.itemType,i=t.scope,o=t.item,a=t.isEnable;if("SET_MULTIPLE_ENABLE_ITEM"!==r||!n||!i||!o||Object(O.get)(e,[n,i,o])===a)return e;var A=e[n]||{},c=A[i]||{};return st({},e,Object(k.a)({},n,st({},A,Object(k.a)({},i,st({},c,Object(k.a)({},o,a||!1))))))}}),qt=Object(v.combineReducers)({enableItems:mt});function pt(e,t,r){return{type:"SET_SINGLE_ENABLE_ITEM",itemType:e,scope:t,item:r}}function dt(e,t){return pt("complementaryArea",e,t)}function It(e){return pt("complementaryArea",e,void 0)}function Ot(e,t,r,n){return{type:"SET_MULTIPLE_ENABLE_ITEM",itemType:e,scope:t,item:r,isEnable:n}}function bt(e,t){return Ot("pinnedItems",e,t,!0)}function gt(e,t){return Ot("pinnedItems",e,t,!1)}function vt(e,t){return function(e,t,r){return Object(O.get)(e.enableItems.singleEnableItems,[t,r])}(e,"complementaryArea",t)}function ht(e,t,r){return!1!==function(e,t,r,n){return Object(O.get)(e.enableItems.multipleEnableItems,[t,r,n])}(e,"pinnedItems",t,r)}Object(v.registerStore)("core/interface",{reducer:qt,actions:o,selectors:a,persist:["enableItems"]});var jt=r(286),Ct=r(287),yt=r(176),Kt=Object(K.withPluginContext)((function(e,t){return{icon:t.icon||e.icon,identifier:t.identifier||"".concat(e.name,"/").concat(t.name)}}));var Et=Kt((function(e){var t=e.as,r=void 0===t?g.Button:t,n=e.scope,i=e.identifier,o=e.icon,a=e.selectedIcon,c=Object(I.a)(e,["as","scope","identifier","icon","selectedIcon"]),u=r,l=Object(v.useSelect)((function(e){return e("core/interface").getActiveComplementaryArea(n)===i}),[i]),s=Object(v.useDispatch)("core/interface"),m=s.enableComplementaryArea,q=s.disableComplementaryArea;return Object(A.createElement)(u,Object(d.a)({icon:a&&l?a:o,onClick:function(){l?q(n):m(n,i)}},Object(O.omit)(c,["name"])))})),ft=function(e){var t=e.smallScreenTitle,r=e.children,n=e.className,i=e.toggleButtonProps,o=Object(A.createElement)(Et,Object(d.a)({icon:yt.a},i));return Object(A.createElement)(A.Fragment,null,Object(A.createElement)("div",{className:"components-panel__header interface-complementary-area-header__small"},t&&Object(A.createElement)("span",{className:"interface-complementary-area-header__small-title"},t),o),Object(A.createElement)("div",{className:ut()("components-panel__header","interface-complementary-area-header",n),tabIndex:-1},r,o))};function St(e){var t=e.scope,r=Object(I.a)(e,["scope"]);return Object(A.createElement)(g.Fill,Object(d.a)({name:"PinnedItems/".concat(t)},r))}St.Slot=function(e){var t=e.scope,r=e.className,n=Object(I.a)(e,["scope","className"]);return Object(A.createElement)(g.Slot,Object(d.a)({name:"PinnedItems/".concat(t)},n),(function(e){return!Object(O.isEmpty)(e)&&Object(A.createElement)("div",{className:ut()(r,"interface-pinned-items")},e)}))};var Mt=St;function Zt(e){var t=e.scope,r=e.children,n=e.className;return Object(A.createElement)(g.Fill,{name:"ComplementaryArea/".concat(t)},Object(A.createElement)(g.Animate,{type:"slide-in",options:{origin:"left"}},(function(){return Object(A.createElement)("div",{className:n},r)})))}var zt=Kt((function(e){var t=e.children,r=e.className,n=e.closeLabel,i=void 0===n?Object(h.__)("Close plugin"):n,o=e.identifier,a=e.header,c=e.headerClassName,u=e.icon,l=e.isPinnable,s=void 0===l||l,m=e.panelClassName,q=e.scope,p=e.smallScreenTitle,d=e.title,I=e.toggleShortcut,O=e.isActiveByDefault,b=Object(v.useSelect)((function(e){var t=e("core/interface"),r=t.getActiveComplementaryArea,n=t.isItemPinned,i=r(q);return{isActive:i===o,isPinned:n(q,o),activeArea:i,isSmall:e("core/viewport").isViewportMatch("< medium")}}),[o,q]),j=b.isActive,C=b.isPinned,y=b.activeArea,K=b.isSmall;!function(e,t,r,n,i){var o=Object(A.useRef)(!1),a=Object(A.useRef)(!1),c=Object(v.useDispatch)("core/interface"),u=c.enableComplementaryArea,l=c.disableComplementaryArea;Object(A.useEffect)((function(){n&&i&&!o.current?(l(e),a.current=!0):a.current&&!i&&o.current?(a.current=!1,u(e,t)):a.current&&r&&r!==t&&(a.current=!1),i!==o.current&&(o.current=i)}),[n,i,e,t,r])}(q,o,y,j,K);var E=Object(v.useDispatch)("core/interface"),f=E.enableComplementaryArea,S=E.disableComplementaryArea,M=E.pinItem,Z=E.unpinItem;return Object(A.useEffect)((function(){O&&void 0===y&&!K&&f(q,o)}),[y,O,q,o,K]),Object(A.createElement)(A.Fragment,null,C&&s&&Object(A.createElement)(Mt,{scope:q},Object(A.createElement)(Et,{scope:q,identifier:o,isPressed:j,"aria-expanded":j,label:d,icon:u})),j&&Object(A.createElement)(Zt,{className:ut()("interface-complementary-area",r),scope:q},Object(A.createElement)(ft,{className:c,closeLabel:i,onClose:function(){return S(q)},smallScreenTitle:p,toggleButtonProps:{label:i,shortcut:I,scope:q,identifier:o}},a||Object(A.createElement)(A.Fragment,null,Object(A.createElement)("strong",null,d),s&&Object(A.createElement)(g.Button,{className:"interface-complementary-area__pin-unpin-item",icon:C?jt.a:Ct.a,label:C?Object(h.__)("Unpin from toolbar"):Object(h.__)("Pin to toolbar"),onClick:function(){return(C?Z:M)(q,o)},isPressed:C,"aria-expanded":C}))),Object(A.createElement)(g.Panel,{className:m},t)))}));zt.Slot=function(e){var t=e.scope,r=Object(I.a)(e,["scope"]);return Object(A.createElement)(g.Slot,Object(d.a)({name:"ComplementaryArea/".concat(t)},r))};var wt=zt,Bt=r(154);function Gt(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;t0?"mixed":"false",Object(A.createElement)("div",{role:"group","aria-labelledby":m,className:"edit-post-manage-blocks-modal__category"},Object(A.createElement)(g.CheckboxControl,{checked:q,onChange:a,className:"edit-post-manage-blocks-modal__category-title","aria-checked":l,label:Object(A.createElement)("span",{id:m},r)}),Object(A.createElement)(ur,{blockTypes:u,value:s,onItemChange:o}))}));var mr=Object(j.compose)([Object(j.withState)({search:""}),Object(v.withSelect)((function(e){var t=e("core/blocks"),r=t.getBlockTypes,n=t.getCategories,i=t.hasBlockSupport,o=t.isMatchingSearchTerm,a=(0,e("core/edit-post").getPreference)("hiddenBlockTypes"),A=Object(O.isArray)(a)&&a.length;return{blockTypes:r(),categories:n(),hasBlockSupport:i,isMatchingSearchTerm:o,numberOfHiddenBlocks:A}}))])((function(e){var t=e.search,r=e.setState,n=e.blockTypes,i=e.categories,o=e.hasBlockSupport,a=e.isMatchingSearchTerm,c=e.numberOfHiddenBlocks;return n=n.filter((function(e){return o(e,"inserter",!0)&&(!t||a(e,t))&&(!e.parent||Object(O.includes)(e.parent,"core/post-content"))})),Object(A.createElement)("div",{className:"edit-post-manage-blocks-modal__content"},Object(A.createElement)(g.TextControl,{type:"search",label:Object(h.__)("Search for a block"),value:t,onChange:function(e){return r({search:e})},className:"edit-post-manage-blocks-modal__search"}),!!c&&Object(A.createElement)("div",{className:"edit-post-manage-blocks-modal__disabled-blocks-count"},Object(h.sprintf)(Object(h._n)("%d block is disabled.","%d blocks are disabled.",c),c)),Object(A.createElement)("div",{tabIndex:"0",role:"region","aria-label":Object(h.__)("Available block types"),className:"edit-post-manage-blocks-modal__results"},0===n.length&&Object(A.createElement)("p",{className:"edit-post-manage-blocks-modal__no-results"},Object(h.__)("No blocks found.")),i.map((function(e){return Object(A.createElement)(sr,{key:e.slug,title:e.title,blockTypes:Object(O.filter)(n,{category:e.slug})})})),Object(A.createElement)(sr,{title:Object(h.__)("Uncategorized"),blockTypes:Object(O.filter)(n,(function(e){return!e.category}))})))}));var qr=Object(j.compose)([Object(v.withSelect)((function(e){return{isActive:(0,e("core/edit-post").isModalActive)("edit-post/manage-blocks")}})),Object(v.withDispatch)((function(e){return{closeModal:e("core/edit-post").closeModal}}))])((function(e){var t=e.isActive,r=e.closeModal;return t?Object(A.createElement)(g.Modal,{className:"edit-post-manage-blocks-modal",title:Object(h.__)("Block Manager"),closeLabel:Object(h.__)("Close"),onRequestClose:r},Object(A.createElement)(mr,null)):null})),pr=function(e){var t=e.title,r=e.children;return Object(A.createElement)("section",{className:"edit-post-options-modal__section"},Object(A.createElement)("h2",{className:"edit-post-options-modal__section-title"},t),r)},dr=r(114),Ir=Object(j.compose)(Object(v.withSelect)((function(e){return{isChecked:e("core/editor").isPublishSidebarEnabled()}})),Object(v.withDispatch)((function(e){var t=e("core/editor"),r=t.enablePublishSidebar,n=t.disablePublishSidebar;return{onChange:function(e){return e?r():n()}}})),Object(s.ifViewportMatches)("medium"))(dr.a),Or=Object(j.compose)(Object(v.withSelect)((function(e,t){var r=t.featureName;return{isChecked:(0,e("core/edit-post").isFeatureActive)(r)}})),Object(v.withDispatch)((function(e,t){var r=t.featureName;return{onChange:function(){return e("core/edit-post").toggleFeature(r)}}})))(dr.a),br=r(471),gr=r(472);function vr(e){var t=e.willEnable,r=Object(A.useState)(!1),n=Object(T.a)(r,2),i=n[0],o=n[1];return Object(A.createElement)(A.Fragment,null,Object(A.createElement)("p",{className:"edit-post-options-modal__custom-fields-confirmation-message"},Object(h.__)("A page reload is required for this change. Make sure your content is saved before reloading.")),Object(A.createElement)(g.Button,{className:"edit-post-options-modal__custom-fields-confirmation-button",isSecondary:!0,isBusy:i,disabled:i,onClick:function(){o(!0),document.getElementById("toggle-custom-fields-form").submit()}},t?Object(h.__)("Enable & Reload"):Object(h.__)("Disable & Reload")))}var hr=Object(v.withSelect)((function(e){return{areCustomFieldsEnabled:!!e("core/editor").getEditorSettings().enableCustomFields}}))((function(e){var t=e.label,r=e.areCustomFieldsEnabled,n=Object(A.useState)(r),i=Object(T.a)(n,2),o=i[0],a=i[1];return Object(A.createElement)(dr.a,{label:t,isChecked:o,onChange:a},o!==r&&Object(A.createElement)(vr,{willEnable:o}))}));var jr=Object(v.withSelect)((function(e){var t=e("core/editor").getEditorSettings,r=e("core/edit-post").getAllMetaBoxes;return{areCustomFieldsRegistered:void 0!==t().enableCustomFields,metaBoxes:r()}}))((function(e){var t=e.areCustomFieldsRegistered,r=e.metaBoxes,n=Object(I.a)(e,["areCustomFieldsRegistered","metaBoxes"]),i=Object(O.filter)(r,(function(e){return"postcustom"!==e.id}));return t||0!==i.length?Object(A.createElement)(pr,n,t&&Object(A.createElement)(hr,{label:Object(h.__)("Custom fields")}),Object(O.map)(i,(function(e){var t=e.id,r=e.title;return Object(A.createElement)(gr.a,{key:t,label:r,panelName:"meta-box-".concat(t)})}))):null}));var Cr=Object(j.compose)(Object(v.withSelect)((function(e){var t=e("core/editor").getEditedPostAttribute,r=(0,e("core").getPostType)(t("type"));return{isModalActive:e("core/edit-post").isModalActive("edit-post/options"),isViewable:Object(O.get)(r,["viewable"],!1)}})),Object(v.withDispatch)((function(e){return{closeModal:function(){return e("core/edit-post").closeModal()}}})))((function(e){var t=e.isModalActive,r=e.isViewable,n=e.closeModal;return t?Object(A.createElement)(g.Modal,{className:"edit-post-options-modal",title:Object(h.__)("Options"),closeLabel:Object(h.__)("Close"),onRequestClose:n},Object(A.createElement)(pr,{title:Object(h.__)("General")},Object(A.createElement)(Ir,{label:Object(h.__)("Pre-publish checks")}),Object(A.createElement)(Or,{featureName:"mostUsedBlocks",label:Object(h.__)("Enable the Most Used Blocks category in the block library")})),Object(A.createElement)(pr,{title:Object(h.__)("Keyboard options")},Object(A.createElement)(Or,{featureName:"keepCaretInsideBlock",label:Object(h.__)("Contain text cursor inside active block")})),Object(A.createElement)(pr,{title:Object(h.__)("Document panels")},Object(A.createElement)(br.a.Slot,null),r&&Object(A.createElement)(gr.a,{label:Object(h.__)("Permalink"),panelName:"post-link"}),Object(A.createElement)(u.PostTaxonomies,{taxonomyWrapper:function(e,t){return Object(A.createElement)(gr.a,{label:Object(O.get)(t,["labels","menu_name"]),panelName:"taxonomy-panel-".concat(t.slug)})}}),Object(A.createElement)(u.PostFeaturedImageCheck,null,Object(A.createElement)(gr.a,{label:Object(h.__)("Featured image"),panelName:"featured-image"})),Object(A.createElement)(u.PostExcerptCheck,null,Object(A.createElement)(gr.a,{label:Object(h.__)("Excerpt"),panelName:"post-excerpt"})),Object(A.createElement)(u.PostTypeSupportCheck,{supportKeys:["comments","trackbacks"]},Object(A.createElement)(gr.a,{label:Object(h.__)("Discussion"),panelName:"discussion-panel"})),Object(A.createElement)(u.PageAttributesCheck,null,Object(A.createElement)(gr.a,{label:Object(h.__)("Page attributes"),panelName:"page-attributes"}))),Object(A.createElement)(jr,{title:Object(h.__)("Advanced panels")})):null}));function yr(){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}}var Kr=function(e){Object(it.a)(n,e);var t,r=(t=n,function(){var e,r=Object(nt.a)(t);if(yr()){var n=Object(nt.a)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return Object(rt.a)(this,e)});function n(){var e;return Object(et.a)(this,n),(e=r.apply(this,arguments)).state={historyId:null},e}return Object(tt.a)(n,[{key:"componentDidUpdate",value:function(e){var t=this.props,r=t.postId,n=t.postStatus,i=t.postType,o=t.isSavingPost,a=this.state.historyId;"trash"!==n||o?r===e.postId&&r===a||"auto-draft"===n||this.setBrowserURL(r):this.setTrashURL(r,i)}},{key:"setTrashURL",value:function(e,t){window.location.href=function(e,t){return Object(E.addQueryArgs)("edit.php",{trashed:1,post_type:t,ids:e})}(e,t)}},{key:"setBrowserURL",value:function(e){window.history.replaceState({id:e},"Post "+e,function(e){return Object(E.addQueryArgs)("post.php",{post:e,action:"edit"})}(e)),this.setState((function(){return{historyId:e}}))}},{key:"render",value:function(){return null}}]),n}(A.Component),Er=Object(v.withSelect)((function(e){var t=e("core/editor"),r=t.getCurrentPost,n=t.isSavingPost,i=r();return{postId:i.id,postStatus:i.status,postType:i.type,isSavingPost:n()}}))(Kr),fr=r(6),Sr=Object(A.createElement)(fr.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(A.createElement)(fr.Path,{d:"M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"}));var Mr=function(){var e=Object(v.useSelect)((function(e){var t=e("core/editor").getCurrentPostType,r=e("core/edit-post").isFeatureActive,n=e("core").getPostType;return{isActive:r("fullscreenMode"),postType:n(t())}}),[]),t=e.isActive,r=e.postType;return t&&r?Object(A.createElement)(g.Button,{className:"edit-post-fullscreen-mode-close",icon:Sr,iconSize:36,href:Object(E.addQueryArgs)("edit.php",{post_type:r.slug}),label:Object(O.get)(r,["labels","view_items"],Object(h.__)("Back"))}):null},Zr=r(291);var zr=function(){var e=Object(v.useDispatch)("core/edit-post").setIsInserterOpened,t=Object(v.useSelect)((function(e){var t=e("core/block-editor"),r=t.hasInserterItems,n=t.getBlockRootClientId,i=t.getBlockSelectionEnd;return{hasFixedToolbar:e("core/edit-post").isFeatureActive("fixedToolbar"),isInserterEnabled:"visual"===e("core/edit-post").getEditorMode()&&e("core/editor").getEditorSettings().richEditingEnabled&&r(n(i())),isInserterOpened:e("core/edit-post").isInserterOpened(),isTextModeEnabled:"text"===e("core/edit-post").getEditorMode(),previewDeviceType:e("core/edit-post").__experimentalGetPreviewDeviceType()}}),[]),r=t.hasFixedToolbar,n=t.isInserterEnabled,i=t.isInserterOpened,o=t.isTextModeEnabled,a=t.previewDeviceType,l=Object(j.useViewportMatch)("medium"),s=!l||"Desktop"!==a||r,m=s?Object(h.__)("Document and block tools"):Object(h.__)("Document tools");return Object(A.createElement)(c.NavigableToolbar,{className:"edit-post-header-toolbar","aria-label":m},Object(A.createElement)(g.__experimentalToolbarItem,{as:g.Button,className:"edit-post-header-toolbar__inserter-toggle",isPrimary:!0,isPressed:i,onClick:function(){return e(!i)},disabled:!n,icon:Zr.a,label:Object(h._x)("Add block","Generic label for block inserter button")}),l&&Object(A.createElement)(g.__experimentalToolbarItem,{as:c.ToolSelector}),Object(A.createElement)(g.__experimentalToolbarItem,{as:u.EditorHistoryUndo}),Object(A.createElement)(g.__experimentalToolbarItem,{as:u.EditorHistoryRedo}),Object(A.createElement)(g.__experimentalToolbarItem,{as:u.TableOfContents,hasOutlineItemsDisabled:o}),Object(A.createElement)(g.__experimentalToolbarItem,{as:c.BlockNavigationDropdown,isDisabled:o}),s&&Object(A.createElement)("div",{className:"edit-post-header-toolbar__block-toolbar"},Object(A.createElement)(c.BlockToolbar,{hideDragHandle:!0})))},wr=r(298);function Br(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 Gr=[{value:"visual",label:Object(h.__)("Visual editor")},{value:"text",label:Object(h.__)("Code editor")}];var Yr=function(){var e=Object(v.useSelect)((function(e){return{shortcut:e("core/keyboard-shortcuts").getShortcutRepresentation("core/edit-post/toggle-mode"),isRichEditingEnabled:e("core/editor").getEditorSettings().richEditingEnabled,isCodeEditingEnabled:e("core/editor").getEditorSettings().codeEditingEnabled,mode:e("core/edit-post").getEditorMode()}}),[]),t=e.shortcut,r=e.isRichEditingEnabled,n=e.isCodeEditingEnabled,i=e.mode,o=Object(v.useDispatch)("core/edit-post").switchEditorMode;if(!r||!n)return null;var a=Gr.map((function(e){return e.value!==i?function(e){for(var t=1;t icon."),{InserterIconImage:Object(A.createElement)(Qn,{className:"edit-post-welcome-guide__inserter-icon"})})))},{image:Object(A.createElement)(kn,null),content:Object(A.createElement)(A.Fragment,null,Object(A.createElement)("h1",{className:"edit-post-welcome-guide__heading"},Object(h.__)("Learn how to use the block editor")),Object(A.createElement)("p",{className:"edit-post-welcome-guide__text"},Object(h.__)("New to the block editor? Want to learn more about using it? "),Object(A.createElement)(g.ExternalLink,{href:Object(h.__)("https://wordpress.org/support/article/wordpress-editor/")},Object(h.__)("Here's a detailed guide."))))}]}):null}var Ln=Object(g.createSlotFill)("PluginPostPublishPanel"),Dn=Ln.Fill,Nn=Ln.Slot,Jn=Object(j.compose)(Object(K.withPluginContext)((function(e,t){return{icon:t.icon||e.icon}})))((function(e){var t=e.children,r=e.className,n=e.title,i=e.initialOpen,o=void 0!==i&&i,a=e.icon;return Object(A.createElement)(Dn,null,Object(A.createElement)(g.PanelBody,{className:r,initialOpen:o||!n,title:n,icon:a},t))}));Jn.Slot=Nn;var Pn=Jn,xn=Object(g.createSlotFill)("PluginPrePublishPanel"),Hn=xn.Fill,Rn=xn.Slot,Tn=Object(j.compose)(Object(K.withPluginContext)((function(e,t){return{icon:t.icon||e.icon}})))((function(e){var t=e.children,r=e.className,n=e.title,i=e.initialOpen,o=void 0!==i&&i,a=e.icon;return Object(A.createElement)(Hn,null,Object(A.createElement)(g.PanelBody,{className:r,initialOpen:o||!n,title:n,icon:a},t))}));Tn.Slot=Rn;var Fn=Tn;function Un(e){var t,r=e.setEntitiesSavedStatesCallback,n=e.closeEntitiesSavedStates,i=e.isEntitiesSavedStatesOpen,o=Object(v.useDispatch)("core/edit-post"),a=o.closePublishSidebar,c=o.togglePublishSidebar,l=Object(v.useSelect)((function(e){return{publishSidebarOpened:e("core/edit-post").isPublishSidebarOpened(),hasActiveMetaboxes:e("core/edit-post").hasMetaBoxes(),isSavingMetaBoxes:e("core/edit-post").isSavingMetaBoxes(),hasNonPostEntityChanges:e("core/editor").hasNonPostEntityChanges()}}),[]),s=l.publishSidebarOpened,m=l.hasActiveMetaboxes,q=l.isSavingMetaBoxes,p=l.hasNonPostEntityChanges,d=Object(A.useCallback)((function(){return r(!0)}),[]);return t=s?Object(A.createElement)(u.PostPublishPanel,{onClose:a,forceIsDirty:m,forceIsSaving:q,PrePublishExtension:Fn.Slot,PostPublishExtension:Pn.Slot}):p?Object(A.createElement)("div",{className:"edit-post-layout__toggle-entities-saved-states-panel"},Object(A.createElement)(g.Button,{isSecondary:!0,className:"edit-post-layout__toggle-entities-saved-states-panel-button",onClick:d,"aria-expanded":!1},Object(h.__)("Open save panel"))):Object(A.createElement)("div",{className:"edit-post-layout__toggle-publish-panel"},Object(A.createElement)(g.Button,{isSecondary:!0,className:"edit-post-layout__toggle-publish-panel-button",onClick:c,"aria-expanded":!1},Object(h.__)("Open publish panel"))),Object(A.createElement)(A.Fragment,null,Object(A.createElement)(u.EntitiesSavedStates,{isOpen:i,close:n}),!i&&t)}var Xn={leftSidebar:Object(h.__)("Block library"),header:Object(h.__)("Editor top bar"),body:Object(h.__)("Editor content"),sidebar:Object(h.__)("Editor settings"),actions:Object(h.__)("Editor publish"),footer:Object(h.__)("Editor footer")};var Vn=function(){var e=Object(j.useViewportMatch)("medium","<"),t=Object(j.useViewportMatch)("huge",">="),r=Object(v.useDispatch)("core/edit-post"),n=r.openGeneralSidebar,i=r.closeGeneralSidebar,o=r.setIsInserterOpened,a=Object(v.useSelect)((function(e){return{hasFixedToolbar:e("core/edit-post").isFeatureActive("fixedToolbar"),sidebarIsOpened:!(!e("core/interface").getActiveComplementaryArea("core/edit-post")&&!e("core/edit-post").isPublishSidebarOpened()),isFullscreenActive:e("core/edit-post").isFeatureActive("fullscreenMode"),showMostUsedBlocks:e("core/edit-post").isFeatureActive("mostUsedBlocks"),isInserterOpened:e("core/edit-post").isInserterOpened(),mode:e("core/edit-post").getEditorMode(),isRichEditingEnabled:e("core/editor").getEditorSettings().richEditingEnabled,hasActiveMetaboxes:e("core/edit-post").hasMetaBoxes(),previousShortcut:e("core/keyboard-shortcuts").getAllShortcutRawKeyCombinations("core/edit-post/previous-region"),nextShortcut:e("core/keyboard-shortcuts").getAllShortcutRawKeyCombinations("core/edit-post/next-region")}}),[]),l=a.mode,s=a.isFullscreenActive,m=a.isRichEditingEnabled,q=a.sidebarIsOpened,p=a.hasActiveMetaboxes,d=a.hasFixedToolbar,I=a.previousShortcut,O=a.nextShortcut,b=a.hasBlockSelected,C=a.showMostUsedBlocks,y=a.isInserterOpened,E=ut()("edit-post-layout","is-mode-"+l,{"is-sidebar-opened":q,"has-fixed-toolbar":d,"has-metaboxes":p});Object(A.useEffect)((function(){q&&!t&&o(!1)}),[q,t]),Object(A.useEffect)((function(){y&&!t&&i()}),[y,t]);var f=Object(A.useState)(!1),S=Object(T.a)(f,2),M=S[0],Z=S[1],z=Object(A.useCallback)((function(e){"function"==typeof M&&M(e),Z(!1)}),[M]);return Object(A.createElement)(A.Fragment,null,Object(A.createElement)(Dt,{isActive:s}),Object(A.createElement)(Er,null),Object(A.createElement)(u.UnsavedChangesWarning,null),Object(A.createElement)(u.AutosaveMonitor,null),Object(A.createElement)(u.LocalAutosaveMonitor,null),Object(A.createElement)($t,null),Object(A.createElement)(u.EditorKeyboardShortcutsRegister,null),Object(A.createElement)(wn,null),Object(A.createElement)(g.FocusReturnProvider,null,Object(A.createElement)(Jt,{className:E,labels:Xn,header:Object(A.createElement)(Hr,{setEntitiesSavedStatesCallback:Z}),leftSidebar:"visual"===l&&y&&Object(A.createElement)("div",{className:"edit-post-layout__inserter-panel"},Object(A.createElement)("div",{className:"edit-post-layout__inserter-panel-header"},Object(A.createElement)(g.Button,{icon:Ut.a,onClick:function(){return o(!1)}})),Object(A.createElement)("div",{className:"edit-post-layout__inserter-panel-content"},Object(A.createElement)(c.__experimentalLibrary,{showMostUsedBlocks:C,showInserterHelpPanel:!0,onSelect:function(){e&&o(!1)}}))),sidebar:(!e||q)&&Object(A.createElement)(A.Fragment,null,!e&&!q&&Object(A.createElement)("div",{className:"edit-post-layout__toogle-sidebar-panel"},Object(A.createElement)(g.Button,{isSecondary:!0,className:"edit-post-layout__toogle-sidebar-panel-button",onClick:function(){return n(b?"edit-post/block":"edit-post/document")},"aria-expanded":!1},b?Object(h.__)("Open block settings"):Object(h.__)("Open document settings"))),Object(A.createElement)(wt.Slot,{scope:"core/edit-post"})),content:Object(A.createElement)(A.Fragment,null,Object(A.createElement)(u.EditorNotices,null),("text"===l||!m)&&Object(A.createElement)(Xt,null),m&&"visual"===l&&Object(A.createElement)(_t,null),Object(A.createElement)("div",{className:"edit-post-layout__metaboxes"},Object(A.createElement)(Sn,{location:"normal"}),Object(A.createElement)(Sn,{location:"advanced"})),e&&q&&Object(A.createElement)(g.ScrollLock,null)),footer:!e&&m&&"visual"===l&&Object(A.createElement)("div",{className:"edit-post-layout__footer"},Object(A.createElement)(c.BlockBreadcrumb,null)),actions:Object(A.createElement)(Un,{closeEntitiesSavedStates:z,isEntitiesSavedStatesOpen:M,setEntitiesSavedStatesCallback:Z}),shortcuts:{previous:I,next:O}}),Object(A.createElement)(qr,null),Object(A.createElement)(Cr,null),Object(A.createElement)(cr,null),Object(A.createElement)(Wn,null),Object(A.createElement)(g.Popover.Slot,null),Object(A.createElement)(K.PluginArea,null)))};function _n(e){var t=e.postId;return function(e){var t=Object(v.useSelect)((function(e){return{hasBlockSelection:!!e("core/block-editor").getBlockSelectionStart(),isEditorSidebarOpened:e("core/edit-post").isEditorSidebarOpened()}}),[e]),r=t.hasBlockSelection,n=t.isEditorSidebarOpened,i=Object(v.useDispatch)("core/edit-post").openGeneralSidebar;Object(A.useEffect)((function(){n&&i(r?"edit-post/block":"edit-post/document")}),[r,n])}(t),function(e){var t=Object(v.useSelect)((function(e){return{newPermalink:e("core/editor").getCurrentPost().link}}),[e]).newPermalink,r=Object(A.useRef)();Object(A.useEffect)((function(){r.current=document.querySelector("#wp-admin-bar-preview a")||document.querySelector("#wp-admin-bar-view a")}),[e]),Object(A.useEffect)((function(){t&&r.current&&r.current.setAttribute("href",t)}),[t])}(t),null}function $n(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(){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}}var ti=function(e){Object(it.a)(n,e);var t,r=(t=n,function(){var e,r=Object(nt.a)(t);if(ei()){var n=Object(nt.a)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return Object(rt.a)(this,e)});function n(){var e;return Object(et.a)(this,n),(e=r.apply(this,arguments)).getEditorSettings=at()(e.getEditorSettings,{maxSize:1}),e}return Object(tt.a)(n,[{key:"getEditorSettings",value:function(e,t,r,n,i,o,a,A,c,u){if(e=function(e){for(var t=1;t0){var l=!0===e.allowedBlockTypes?Object(O.map)(i,"name"):e.allowedBlockTypes||[];e.allowedBlockTypes=O.without.apply(void 0,[l].concat(Object(W.a)(n)))}return e}},{key:"render",value:function(){var e=this.props,t=e.settings,r=e.hasFixedToolbar,n=e.focusMode,i=e.post,o=e.postId,a=e.initialEdits,c=e.onError,l=e.hiddenBlockTypes,s=e.blockTypes,m=e.preferredStyleVariations,q=e.__experimentalLocalAutosaveInterval,p=e.setIsInserterOpened,O=e.updatePreferredStyleVariations,b=e.keepCaretInsideBlock,v=Object(I.a)(e,["settings","hasFixedToolbar","focusMode","post","postId","initialEdits","onError","hiddenBlockTypes","blockTypes","preferredStyleVariations","__experimentalLocalAutosaveInterval","setIsInserterOpened","updatePreferredStyleVariations","keepCaretInsideBlock"]);if(!i)return null;var h=this.getEditorSettings(t,r,n,l,s,m,q,p,O,b);return Object(A.createElement)(A.StrictMode,null,Object(A.createElement)(lr.Provider,{value:t},Object(A.createElement)(g.SlotFillProvider,null,Object(A.createElement)(g.DropZoneProvider,null,Object(A.createElement)(u.EditorProvider,Object(d.a)({settings:h,post:i,initialEdits:a,useSubRegistry:!1},v),Object(A.createElement)(u.ErrorBoundary,{onError:c},Object(A.createElement)(_n,{postId:o}),Object(A.createElement)(Vn,null),Object(A.createElement)(g.KeyboardShortcuts,{shortcuts:At})),Object(A.createElement)(u.PostLockedModal,null))))))}}]),n}(A.Component),ri=Object(j.compose)([Object(v.withSelect)((function(e,t){var r=t.postId,n=t.postType,i=e("core/edit-post"),o=i.isFeatureActive,a=i.getPreference,A=i.__experimentalGetPreviewDeviceType,c=e("core").getEntityRecord,u=e("core/blocks").getBlockTypes;return{hasFixedToolbar:o("fixedToolbar")||"Desktop"!==A(),focusMode:o("focusMode"),post:c("postType",n,r),preferredStyleVariations:a("preferredStyleVariations"),hiddenBlockTypes:a("hiddenBlockTypes"),blockTypes:u(),__experimentalLocalAutosaveInterval:a("localAutosaveInterval"),keepCaretInsideBlock:o("keepCaretInsideBlock")}})),Object(v.withDispatch)((function(e){var t=e("core/edit-post");return{updatePreferredStyleVariations:t.updatePreferredStyleVariations,setIsInserterOpened:t.setIsInserterOpened}}))])(ti),ni=r(421),ii=function(e,t){return!Array.isArray(t)||(r=e,n=t,0===Object(O.difference)(r,n).length);var r,n},oi=function(e){var t=e.allowedBlocks,r=e.icon,n=e.label,i=e.onClick,o=e.small,a=e.role;return Object(A.createElement)(c.BlockSettingsMenuControls,null,(function(e){var c=e.selectedBlocks,u=e.onClose;return ii(c,t)?Object(A.createElement)(g.MenuItem,{onClick:Object(j.compose)(i,u),icon:r||ni.a,label:o?n:void 0,role:a},!o&&n):null}))},ai=Object(j.compose)(Object(K.withPluginContext)((function(e,t){return{icon:t.icon||e.icon,name:"core/edit-post/plugin-more-menu"}})))(Qt);function Ai(e){return Object(A.createElement)(Wt,Object(d.a)({scope:"core/edit-post"},e))}function ci(e,t,r,n,i){Object(A.unmountComponentAtNode)(r);var o=ci.bind(null,e,t,r,n,i);Object(A.render)(Object(A.createElement)(ri,{settings:n,onError:o,postId:t,postType:e,initialEdits:i,recovery:!0}),r)}function ui(e,t,r,n,i){var o=document.getElementById(e),a=ci.bind(null,t,r,o,n,i);Object(m.registerCoreBlocks)(),"Standards"!==("CSS1Compat"===document.compatMode?"Standards":"Quirks")&&console.warn("Your browser is using Quirks Mode. \nThis can cause rendering issues such as blocks overlaying meta boxes in the editor. Quirks Mode can be triggered by PHP errors or HTML code appearing before the opening . Try checking the raw page source or your site's PHP error log and resolving errors there, removing any HTML before the doctype, or disabling plugins."),-1!==window.navigator.userAgent.indexOf("iPhone")&&window.addEventListener("scroll",(function(e){var t=document.getElementsByClassName("interface-interface-skeleton__body")[0];e.target===document&&(window.scrollY>100&&(t.scrollTop=t.scrollTop+window.scrollY),document.getElementsByClassName("is-mode-visual")[0]&&window.scrollTo(0,0))})),Object(A.render)(Object(A.createElement)(ri,{settings:n,onError:a,postId:r,postType:t,initialEdits:i}),o)}},45:function(e,t){!function(){e.exports=this.wp.apiFetch}()},471:function(e,t,r){"use strict";var n=r(0),i=r(3),o=r(472),a=Object(i.createSlotFill)("EnablePluginDocumentSettingPanelOption"),A=a.Fill,c=a.Slot,u=function(e){var t=e.label,r=e.panelName;return Object(n.createElement)(A,null,Object(n.createElement)(o.a,{label:t,panelName:r}))};u.Slot=c,t.a=u},472:function(e,t,r){"use strict";var n=r(9),i=r(4),o=r(114);t.a=Object(n.compose)(Object(i.withSelect)((function(e,t){var r=t.panelName,n=e("core/edit-post"),i=n.isEditorPanelEnabled;return{isRemoved:(0,n.isEditorPanelRemoved)(r),isChecked:i(r)}})),Object(n.ifCondition)((function(e){return!e.isRemoved})),Object(i.withDispatch)((function(e,t){var r=t.panelName;return{onChange:function(){return e("core/edit-post").toggleEditorPanelEnabled(r)}}})))(o.a)},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}))},52:function(e,t){!function(){e.exports=this.wp.keyboardShortcuts}()},54:function(e,t){!function(){e.exports=this.wp.a11y}()},6:function(e,t){!function(){e.exports=this.wp.primitives}()},60:function(e,t,r){e.exports=function(e,t){var r,n,i=0;function o(){var o,a,A=r,c=arguments.length;e:for(;A;){if(A.args.length===arguments.length){for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}},18:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(26);var a=r(35),o=r(29);function c(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}()},21:function(e,t){!function(){e.exports=this.wp.keycodes}()},26: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=0||(a[r]=e[r]);return a}r.d(t,"a",(function(){return n}))},42:function(e,t,r){"use strict";var n,a;function o(e){return[e]}function c(){var e={clear:function(){e.head=null}};return e}function i(e,t,r){var n;if(e.length!==t.length)return!1;for(n=r;n0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_FORMAT_TYPES":return s({},e,{},Object(i.keyBy)(t.formatTypes,"name"));case"REMOVE_FORMAT_TYPES":return Object(i.omit)(e,t.names)}return e}}),f=r(42),p=Object(f.a)((function(e){return Object.values(e.formatTypes)}),(function(e){return[e.formatTypes]}));function d(e,t){return e.formatTypes[t]}function b(e,t){return Object(i.find)(p(e),(function(e){var r=e.className,n=e.tagName;return null===r&&t===n}))}function m(e,t){return Object(i.find)(p(e),(function(e){var r=e.className;return null!==r&&" ".concat(t," ").indexOf(" ".concat(r," "))>=0}))}function v(e){return{type:"ADD_FORMAT_TYPES",formatTypes:Object(i.castArray)(e)}}function g(e){return{type:"REMOVE_FORMAT_TYPES",names:Object(i.castArray)(e)}}Object(o.registerStore)("core/rich-text",{reducer:l,selectors:n,actions:a});var h=r(18);function O(e,t){if(e===t)return!0;if(!e||!t)return!1;if(e.type!==t.type)return!1;var r=e.attributes,n=t.attributes;if(r===n)return!0;if(!r||!n)return!1;var a=Object.keys(r),o=Object.keys(n);if(a.length!==o.length)return!1;for(var c=a.length,i=0;i2&&void 0!==arguments[2]?arguments[2]:e.start,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.end,a=e.formats,o=e.activeFormats,c=a.slice();if(r===n){var u=Object(i.find)(c[r],{type:t.type});if(u){for(var s=c[r].indexOf(u);c[r]&&c[r][s]===u;)c[r]=T(c[r],s,t),r--;for(n++;c[n]&&c[n][s]===u;)c[n]=T(c[n],s,t),n++}}else{for(var l=1/0,f=r;f0&&void 0!==arguments[0]?arguments[0]:{},t=e.element,r=e.text,n=e.html,a=e.range,o=e.multilineTag,c=e.multilineWrapperTags,i=e.__unstableIsEditableTree,u=e.preserveWhiteSpace;return"string"==typeof r&&r.length>0?{formats:Array(r.length),replacements:Array(r.length),text:r}:("string"==typeof n&&n.length>0&&(t=P(document,n)),"object"!==Object(E.a)(t)?{formats:[],replacements:[],text:""}:o?R({element:t,range:a,multilineTag:o,multilineWrapperTags:c,isEditableTree:i,preserveWhiteSpace:u}):I({element:t,range:a,isEditableTree:i,preserveWhiteSpace:u}))}function A(e,t,r,n){if(r){var a=t.parentNode,o=r.startContainer,c=r.startOffset,i=r.endContainer,u=r.endOffset,s=e.text.length;void 0!==n.start?e.start=s+n.start:t===o&&t.nodeType===t.TEXT_NODE?e.start=s+c:a===o&&t===o.childNodes[c]?e.start=s:a===o&&t===o.childNodes[c-1]?e.start=s+n.text.length:t===o&&(e.start=s),void 0!==n.end?e.end=s+n.end:t===i&&t.nodeType===t.TEXT_NODE?e.end=s+u:a===i&&t===i.childNodes[u-1]?e.end=s+n.text.length:a===i&&t===i.childNodes[u]?e.end=s:t===i&&(e.end=s+u)}}var N=new RegExp("\ufeff","g");function k(e){return e.replace(N,"")}function I(e){var t=e.element,r=e.range,n=e.multilineTag,a=e.multilineWrapperTags,i=e.currentWrapperTags,u=void 0===i?[]:i,s=e.isEditableTree,l=e.preserveWhiteSpace,f={formats:[],replacements:[],text:""};if(!t)return f;if(!t.hasChildNodes())return A(f,t,r,{formats:[],replacements:[],text:""}),f;for(var p=t.childNodes.length,d=function(e){var i=t.childNodes[e],p=i.nodeName.toLowerCase();if(i.nodeType===i.TEXT_NODE){var d=k;l||(d=function(e){return k(function(e){return e.replace(/[\n\r\t]+/g," ")}(e))});var b=d(i.nodeValue);return r=function(e,t,r){if(t){var n=t.startContainer,a=t.endContainer,o=t.startOffset,c=t.endOffset;return e===n&&(o=r(e.nodeValue.slice(0,o)).length),e===a&&(c=r(e.nodeValue.slice(0,c)).length),{startContainer:n,startOffset:o,endContainer:a,endOffset:c}}}(i,r,d),A(f,i,r,{text:b}),f.formats.length+=b.length,f.replacements.length+=b.length,f.text+=b,"continue"}if(i.nodeType!==i.ELEMENT_NODE)return"continue";if(s&&(i.getAttribute("data-rich-text-placeholder")||"br"===p&&!i.getAttribute("data-rich-text-line-break")))return A(f,i,r,{formats:[],replacements:[],text:""}),"continue";if("br"===p)return A(f,i,r,{formats:[],replacements:[],text:""}),L(f,C({text:"\n"})),"continue";var m=f.formats[f.formats.length-1],v=m&&m[m.length-1],g=function(e){var t,r=e.type,n=e.attributes;if(n&&n.class&&(t=Object(o.select)("core/rich-text").getFormatTypeForClassName(n.class))&&(n.class=" ".concat(n.class," ").replace(" ".concat(t.className," ")," ").trim(),n.class||delete n.class),t||(t=Object(o.select)("core/rich-text").getFormatTypeForBareElement(r)),!t)return n?{type:r,attributes:n}:{type:r};if(t.__experimentalCreatePrepareEditableTree&&!t.__experimentalCreateOnChangeEditableValue)return null;if(!n)return{type:t.name};var a={},c={};for(var i in n){var u=F(t.attributes,i);u?a[u]=n[i]:c[i]=n[i]}return{type:t.name,attributes:a,unregisteredAttributes:c}}({type:p,attributes:W({element:i})}),y=O(g,v)?v:g;if(a&&-1!==a.indexOf(p)){var j=R({element:i,range:r,multilineTag:n,multilineWrapperTags:a,currentWrapperTags:[].concat(Object(h.a)(u),[y]),isEditableTree:s,preserveWhiteSpace:l});return A(f,i,r,j),L(f,j),"continue"}var w=I({element:i,range:r,multilineTag:n,multilineWrapperTags:a,isEditableTree:s,preserveWhiteSpace:l});if(A(f,i,r,w),y)if(0===w.text.length)y.attributes&&L(f,{formats:[,],replacements:[y],text:""});else{function x(e){if(x.formats===e)return x.newFormats;var t=e?[y].concat(Object(h.a)(e)):[y];return x.formats=e,x.newFormats=t,t}x.newFormats=[y],L(f,function(e){for(var t=1;t0)&&L(s,{formats:[,],replacements:c.length>0?[c]:[,],text:D}),A(s,p,r,d),L(s,d)}}return s}function W(e){var t=e.element;if(t.hasAttributes()){for(var r,n=t.attributes.length,a=0;a1&&void 0!==arguments[1]?arguments[1]:[];if(void 0===r)return o;if(r===n){if(a)return a;var c=t[r-1]||o,i=t[r]||o;return c.length1&&void 0!==arguments[1]?arguments[1]:t,a=n;a--;)if(r[a]===D)return a}function z(e){var t=e.replacements[U(e,e.start)];return!t||t.length<1}function G(e,t,r){var n=e.replacements[U(e,e.start)];return n&&0!==n.length?n[n.length-1].type===t:t===r}function q(e){var t=e.start,r=e.end;if(void 0!==t&&void 0!==r)return t===r}function X(e){return 0===e.text.length}function Y(e){var t=e.text,r=e.start,n=e.end;return r===n&&(0===t.length||(0===r&&t.slice(0,1)===D||(r===t.length&&t.slice(-1)===D||t.slice(r-1,n+1)==="".concat(D).concat(D))))}function $(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"string"==typeof t&&(t=C({text:t})),j(e.reduce((function(e,r){var n=r.formats,a=r.replacements,o=r.text;return{formats:e.formats.concat(t.formats,n),replacements:e.replacements.concat(t.replacements,a),text:e.text+t.text+o}})))}function Z(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 J(e,t){if("string"==typeof(t=function(e){for(var t=1;t3)window.console.error('The format "'+t.name+'" can have a maximum of 3 keywords.');else{if("string"==typeof t.title)return Object(o.dispatch)("core/rich-text").addFormatTypes(t),t;window.console.error("Format titles must be strings.")}else window.console.error('The format "'+t.name+'" must have a title.')}else window.console.error("A class name must begin with a letter, followed by any number of hyphens, letters, or numbers.");else window.console.error("Format class names must be a string, or null to handle bare elements.");else window.console.error("Format tag names must be a string.");else window.console.error("Format names must contain a namespace prefix, include only lowercase alphanumeric characters or dashes, and start with a letter. Example: my-plugin/my-custom-format");else window.console.error("Format names must be strings.")}function Q(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 ee(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:e.start,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.end,a=e.formats,o=e.activeFormats,c=a.slice();if(r===n){var u=Object(i.find)(c[r],{type:t});if(u){for(;Object(i.find)(c[r],u);)re(c,r,t),r--;for(n++;Object(i.find)(c[n],u);)re(c,n,t),n++}}else for(var s=r;s2&&void 0!==arguments[2]?arguments[2]:e.start,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.end,a=e.formats,o=e.replacements,c=e.text;"string"==typeof t&&(t=C({text:t}));var i=r+t.text.length;return j({formats:a.slice(0,r).concat(t.formats,a.slice(n)),replacements:o.slice(0,r).concat(t.replacements,o.slice(n)),text:c.slice(0,r)+t.text+c.slice(n),start:i,end:i})}function ae(e,t,r){return ne(e,C(),t,r)}function oe(e,t,r){var n=e.formats,a=e.replacements,o=e.text,c=e.start,i=e.end;return o=o.replace(t,(function(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),u=1;u1&&void 0!==arguments[1]?arguments[1]:e.start,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.end,n=B(e).slice(0,t),a=n.lastIndexOf(D),o=e.replacements[a],c=[,];o&&(c=[o]);var i={formats:[,],replacements:c,text:D};return ne(e,i,t,r)}function ie(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 ue(e){for(var t=1;t1&&void 0!==arguments[1])||arguments[1],r=e.replacements,n=e.text,a=e.start,o=e.end,c=q(e),i=a-1,u=c?a-1:a,s=o;if(t||(i=o,u=a,s=c?o+1:o),n[i]===D){var l;if(c&&r[i]&&r[i].length){var f=r.slice();f[i]=r[i].slice(0,-1),l=ue({},e,{replacements:f})}else l=ae(e,u,s);return l}}function le(e,t,r,n){return ne(e,{formats:[,],replacements:[t],text:""},r,n)}function fe(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 pe(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:e.start,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.end,n=e.formats,a=e.replacements,o=e.text;return void 0===t||void 0===r?pe({},e):{formats:n.slice(t,r),replacements:a.slice(t,r),text:o.slice(t,r)}}function be(e,t){var r=e.formats,n=e.replacements,a=e.text,o=e.start,c=e.end;if("string"!=typeof t)return me.apply(void 0,arguments);var i=0;return a.split(t).map((function(e){var a=i,u={formats:r.slice(a,a+e.length),replacements:n.slice(a,a+e.length),text:e};return i+=t.length+e.length,void 0!==o&&void 0!==c&&(o>=a&&oa&&(u.start=0),c>=a&&ci&&(u.end=e.length)),u}))}function me(e){var t=e.formats,r=e.replacements,n=e.text,a=e.start,o=e.end,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o,u={formats:t.slice(0,c),replacements:r.slice(0,c),text:n.slice(0,c)},s={formats:t.slice(i),replacements:r.slice(i),text:n.slice(i),start:0,end:0};return[oe(u,/\u2028+$/,""),oe(s,/^\u2028+/,"")]}function ve(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 ge(e){for(var t=1;t1;)e=e.childNodes[t.shift()];return{node:e,offset:t[0]}}function xe(e,t){"string"==typeof t&&(t=e.ownerDocument.createTextNode(t));var r=t,n=r.type,a=r.attributes;if(n)for(var o in t=e.ownerDocument.createElement(n),a)t.setAttribute(o,a[o]);return e.appendChild(t)}function Te(e,t){e.appendData(t)}function _e(e){return e.lastChild}function Ee(e){return e.parentNode}function Pe(e){return e.nodeType===e.TEXT_NODE}function De(e){return e.nodeValue}function Se(e){return e.parentNode.removeChild(e)}function Fe(e){var t=e.value,r=e.multilineTag,n=e.prepareEditableTree,a=e.isEditableTree,o=void 0===a||a,i=e.placeholder,u=e.doc,s=void 0===u?document:u,l=[],f=[];n&&(t=function(e){for(var t=1;t0){if(m=d,v=p.getRangeAt(0),m.startContainer===v.startContainer&&m.startOffset===v.startOffset&&m.endContainer===v.endContainer&&m.endOffset===v.endOffset)return;p.removeAllRanges()}var m,v;p.addRange(d),b!==l.activeElement&&b instanceof f.HTMLElement&&b.focus()}(u,r)}var Ae=r(89);function Ne(e){return Be(Oe({value:e.value,multilineTag:e.multilineTag,preserveWhiteSpace:e.preserveWhiteSpace,createEmpty:ke,append:Re,getLastChild:Ie,getParent:Le,isText:Me,getText:He,remove:Ke,appendText:We}).children)}function ke(){return{}}function Ie(e){var t=e.children;return t&&t[t.length-1]}function Re(e,t){return"string"==typeof t&&(t={text:t}),t.parent=e,e.children=e.children||[],e.children.push(t),t}function We(e,t){e.text+=t}function Le(e){return e.parent}function Me(e){return"string"==typeof e.text}function He(e){return e.text}function Ke(e){var t=e.parent.children.indexOf(e);return-1!==t&&e.parent.children.splice(t,1),e}function Ve(e){var t=e.type,r=e.attributes,n=e.object,a=e.children,o="";for(var c in r)Object(Ae.isValidAttributeName)(c)&&(o+=" ".concat(c,'="').concat(Object(Ae.escapeAttribute)(r[c]),'"'));return n?"<".concat(t).concat(o,">"):"<".concat(t).concat(o,">").concat(Be(a),"")}function Be(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map((function(e){return void 0===e.text?Ve(e):Object(Ae.escapeEditableHTML)(e.text)})).join("")}function Ue(e,t){return K(e,t.type)?te(e,t.type):_(e,t)}function ze(e){var t=Object(o.select)("core/rich-text").getFormatType(e);if(t)return Object(o.dispatch)("core/rich-text").removeFormatTypes(e),t;window.console.error("Format ".concat(e," is not registered."))}function Ge(e){var t=U(e);if(void 0===t)return!1;var r=e.replacements,n=U(e,t),a=r[t]||[],o=r[n]||[];return a.length<=o.length}function qe(e){return void 0!==e.replacements[U(e,e.start)]}function Xe(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 Ye(e,t){if(!Ge(e))return e;for(var r=U(e),n=U(e,r),a=e.text,o=e.replacements,i=e.end,u=o.slice(),s=function(e,t){for(var r=e.text,n=e.replacements,a=n[t]||[],o=t;o-- >=0;)if(r[o]===D){var c=n[o]||[];if(c.length===a.length+1)return o;if(c.length<=a.length)return}}(e,r),l=r;l=0;){if(r[o]===D)if((n[o]||[]).length===a.length-1)return o}}function Ze(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 Je(e){if(!qe(e))return e;for(var t=e.text,r=e.replacements,n=e.start,a=e.end,o=U(e,n),i=r.slice(0),u=r[$e(e,o)]||[],s=function(e,t){for(var r=e.text,n=e.replacements,a=n[t]||[],o=t,c=t||0;c=a.length))return o;o=c}return o}(e,U(e,a)),l=o;l<=s;l++)if(t[l]===D){var f=i[l]||[];i[l]=u.concat(f.slice(u.length+1)),0===i[l].length&&delete i[l]}return function(e){for(var t=1;tb?e:t})))}return r?function(e){for(var t=1;t0?e.getRangeAt(0):null;return C({element:U.current,range:t,multilineTag:S,multilineWrapperTags:"li"===S?["ul","ol"]:void 0,__unstableIsEditableTree:!0,preserveWhiteSpace:v})}function fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.domOnly;Ce({value:e,current:U.current,multilineTag:S,multilineWrapperTags:"li"===S?["ul","ol"]:void 0,prepareEditableTree:yt(z,"format_prepare_functions"),__unstableDomOnly:r,placeholder:b})}var pe=Object(at.useRef)(a);function de(){pe.current!==ie.current&&(V(),pe.current=ie.current)}var be=Object(at.useRef)(!1),me=Object(at.useRef)();function ve(e){var t;if(!be.current)if(e&&(t=e.inputType),!t&&e&&e.nativeEvent&&(t=e.nativeEvent.inputType),!t||0!==t.indexOf("format")&&!gt.has(t)){var r=le(),n=ue.current,a=n.start,o=n.activeFormats,c=void 0===o?[]:o,i=function(e){var t=e.value,r=e.start,n=e.end,a=e.formats,o=t.formats[r-1]||[],c=t.formats[n]||[];for(t.activeFormats=a.map((function(e,t){if(o[t]){if(O(e,o[t]))return o[t]}else if(c[t]&&O(e,c[t]))return c[t];return e}));--n>=r;)t.activeFormats.length>0?t.formats[n]=t.activeFormats:delete t.formats[n];return t}({value:r,start:a,end:r.start,formats:c});if(Oe(i,{withoutHistory:!0}),ee().clearTimeout(me.current),me.current=ee().setTimeout(de,1e3),"insertText"===t){R&&k&&k(i,ce);var u=f.reduce((function(e,t){var r=t.__unstableInputRule;return r&&(e=r(e)),e}),i);u!==i&&(de(),Oe(vt({},u,{activeFormats:c})),I())}}else fe(ue.current)}var ge=Object(at.useRef)(!1);function he(e){if(U.current&&document.activeElement===U.current&&("selectionchange"===e.type||B)&&!m&&!be.current){var t=le(),r=t.start,n=t.end,a=t.text,o=ue.current;if(a===o.text)if(r!==o.start||n!==o.end){var c=vt({},o,{start:r,end:n,activeFormats:void 0}),i=H(c,Ot);c.activeFormats=i,!L&&i.length?M():L&&!i.length&&K(),ue.current=c,fe(c,{domOnly:!0}),x(r,n),J(i)}else 0===o.text.length&&0===r&&function(e){var t=e.getSelection(),r=t.anchorNode,n=t.anchorOffset;if(r.nodeType===r.ELEMENT_NODE){var a=r.childNodes[n];a&&a.nodeType===a.ELEMENT_NODE&&a.getAttribute("data-rich-text-placeholder")&&t.collapseToStart()}}(ee());else ve()}}function Oe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.withoutHistory;A&&(e.formats=Array(e.text.length),e.replacements=Array(e.text.length)),fe(e);var n=e.start,a=e.end,o=e.activeFormats,c=void 0===o?[]:o,u=Object(i.pickBy)(z,(function(e,t){return t.startsWith("format_on_change_functions_")}));Object.values(u).forEach((function(t){t(e.formats,e.text)})),ie.current=ce(e),ue.current=e,x(n,a),T(ie.current),J(c),r||de()}function ye(e){var t=e.target;if(t!==U.current&&!t.textContent){var r=t.parentNode,n=Array.from(r.childNodes).indexOf(t),a=Q().createRange(),o=ee().getSelection();a.setStart(t.parentNode,n),a.setEnd(t.parentNode,n+1),o.removeAllRanges(),o.addRange(a)}}var je=Object(at.useRef)();function we(){ie.current=a,ue.current=re(a),ue.current.start=o,ue.current.end=c,fe(ue.current)}Object(at.useEffect)((function(){ge.current&&we()}),[r,b]),Object(at.useEffect)((function(){ge.current&&a!==ie.current&&we()}),[a]),Object(at.useEffect)((function(){ge.current&&(!B||o===ue.current.start&&c===ue.current.end?ue.current=vt({},ue.current,{start:o,end:c}):we())}),[o,c,B]);var xe=Object(i.pickBy)(z,(function(e,t){return t.startsWith("format_prepare_props_")}));function Te(){U.current.focus(),fe(ue.current)}Object(at.useEffect)((function(){ge.current&&we()}),Object.values(xe)),Object(at.useLayoutEffect)((function(){return fe(ue.current,{domOnly:!0}),ge.current=!0,function(){Q().removeEventListener("selectionchange",he),ee().cancelAnimationFrame(je.current),ee().clearTimeout(me.current)}}),[]);var _e=Object(i.pickBy)(z,(function(e,t){return Object(i.startsWith)(t,"aria-")})),Ee=vt({role:"textbox","aria-multiline":!0,"aria-label":b},_e,{ref:U,style:p?vt({},p,{whiteSpace:"pre-wrap"}):ht,className:ct()("rich-text",d),onPaste:function(e){if(B){var t=e.clipboardData,r=t.items,n=t.files;r=Object(i.isNil)(r)?[]:r,n=Object(i.isNil)(n)?[]:n;var a="",o="";try{a=t.getData("text/plain"),o=t.getData("text/html")}catch(e){try{o=t.getData("Text")}catch(e){return}}if(e.preventDefault(),window.console.log("Received HTML:\n\n",o),window.console.log("Received plain text:\n\n",a),A)Oe(ne(ue.current,a));else{var c=f.reduce((function(e,t){var r=t.__unstablePasteRule;return r&&e===ue.current&&(e=r(ue.current,{html:o,plainText:a})),e}),ue.current);c===ue.current?g&&(n=Array.from(n),Array.from(r).forEach((function(e){if(e.getAsFile){var t=e.getAsFile();if(t){var r=t.name,a=t.type,o=t.size;Object(i.find)(n,{name:r,type:a,size:o})||n.push(t)}}})),g({value:oe(ue.current),onChange:Oe,html:o,plainText:a,files:n,activeFormats:Z})):Oe(c)}}else e.preventDefault()},onInput:ve,onCompositionStart:function(){be.current=!0,Q().removeEventListener("selectionchange",he)},onCompositionEnd:function(){be.current=!1,ve({inputType:"insertText"}),Q().addEventListener("selectionchange",he)},onKeyDown:function(e){e.defaultPrevented||(function(e){var t=e.keyCode;if(t===it.DELETE||t===it.BACKSPACE||t===it.ESCAPE){if(N)return e.preventDefault(),void W();if(t!==it.ESCAPE){var r,n=le(),a=n.start,o=n.end,c=n.text,i=t===it.BACKSPACE;if(0===a&&0!==o&&o===c.length)return Oe(ae(n)),void e.preventDefault();if(S&&(r=i&&0===n.start&&0===n.end&&Y(n)?se(n,!i):se(n,i)))return Oe(r),void e.preventDefault();!j||!q(n)||Z.length||i&&0!==a||!i&&o!==c.length||(j({isReverse:i,value:n}),e.preventDefault())}}}(e),function(e){e.keyCode===it.ENTER&&(e.preventDefault(),w&&w({value:oe(le()),onChange:Oe,shiftKey:e.shiftKey}))}(e),function(e){var t=e.keyCode,r=e.shiftKey,n=e.altKey,a=e.metaKey,o=e.ctrlKey;if(!(r||n||a||o||t!==it.SPACE||"li"!==S)){var c=le();if(q(c)){var i=c.text[c.start-1];i&&i!==D||(Oe(Ye(c,{type:F})),e.preventDefault())}}}(e),function(e){var t=e.keyCode,r=e.shiftKey,n=e.altKey,a=e.metaKey,o=e.ctrlKey;if(!(r||n||a||o||t!==it.LEFT&&t!==it.RIGHT)){var c=ue.current,i=c.text,u=c.formats,s=c.start,l=c.end,f=c.activeFormats,p=void 0===f?[]:f,d=q(ue.current),b="rtl"===ee().getComputedStyle(U.current).direction?it.RIGHT:it.LEFT,m=e.keyCode===b;if(d&&0===p.length){if(0===s&&m)return;if(l===i.length&&!m)return}if(d){e.preventDefault();var v=u[s-1]||Ot,g=u[s]||Ot,h=p.length,O=g;if(v.length>g.length&&(O=v),v.lengthv.length&&h--):v.length>g.length&&(!m&&p.length>g.length&&h--,m&&p.length=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}},18:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(26);var a=r(35),o=r(29);function c(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}()},21:function(e,t){!function(){e.exports=this.wp.keycodes}()},26: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=0||(a[r]=e[r]);return a}r.d(t,"a",(function(){return n}))},42:function(e,t,r){"use strict";var n,a;function o(e){return[e]}function c(){var e={clear:function(){e.head=null}};return e}function i(e,t,r){var n;if(e.length!==t.length)return!1;for(n=r;n0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_FORMAT_TYPES":return s({},e,{},Object(i.keyBy)(t.formatTypes,"name"));case"REMOVE_FORMAT_TYPES":return Object(i.omit)(e,t.names)}return e}}),f=r(42),p=Object(f.a)((function(e){return Object.values(e.formatTypes)}),(function(e){return[e.formatTypes]}));function d(e,t){return e.formatTypes[t]}function b(e,t){return Object(i.find)(p(e),(function(e){var r=e.className,n=e.tagName;return null===r&&t===n}))}function m(e,t){return Object(i.find)(p(e),(function(e){var r=e.className;return null!==r&&" ".concat(t," ").indexOf(" ".concat(r," "))>=0}))}function v(e){return{type:"ADD_FORMAT_TYPES",formatTypes:Object(i.castArray)(e)}}function g(e){return{type:"REMOVE_FORMAT_TYPES",names:Object(i.castArray)(e)}}Object(o.registerStore)("core/rich-text",{reducer:l,selectors:n,actions:a});var h=r(18);function O(e,t){if(e===t)return!0;if(!e||!t)return!1;if(e.type!==t.type)return!1;var r=e.attributes,n=t.attributes;if(r===n)return!0;if(!r||!n)return!1;var a=Object.keys(r),o=Object.keys(n);if(a.length!==o.length)return!1;for(var c=a.length,i=0;i2&&void 0!==arguments[2]?arguments[2]:e.start,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.end,a=e.formats,o=e.activeFormats,c=a.slice();if(r===n){var u=Object(i.find)(c[r],{type:t.type});if(u){for(var s=c[r].indexOf(u);c[r]&&c[r][s]===u;)c[r]=T(c[r],s,t),r--;for(n++;c[n]&&c[n][s]===u;)c[n]=T(c[n],s,t),n++}}else{for(var l=1/0,f=r;f0&&void 0!==arguments[0]?arguments[0]:{},t=e.element,r=e.text,n=e.html,a=e.range,o=e.multilineTag,c=e.multilineWrapperTags,i=e.__unstableIsEditableTree,u=e.preserveWhiteSpace;return"string"==typeof r&&r.length>0?{formats:Array(r.length),replacements:Array(r.length),text:r}:("string"==typeof n&&n.length>0&&(t=P(document,n)),"object"!==Object(E.a)(t)?{formats:[],replacements:[],text:""}:o?R({element:t,range:a,multilineTag:o,multilineWrapperTags:c,isEditableTree:i,preserveWhiteSpace:u}):I({element:t,range:a,isEditableTree:i,preserveWhiteSpace:u}))}function A(e,t,r,n){if(r){var a=t.parentNode,o=r.startContainer,c=r.startOffset,i=r.endContainer,u=r.endOffset,s=e.text.length;void 0!==n.start?e.start=s+n.start:t===o&&t.nodeType===t.TEXT_NODE?e.start=s+c:a===o&&t===o.childNodes[c]?e.start=s:a===o&&t===o.childNodes[c-1]?e.start=s+n.text.length:t===o&&(e.start=s),void 0!==n.end?e.end=s+n.end:t===i&&t.nodeType===t.TEXT_NODE?e.end=s+u:a===i&&t===i.childNodes[u-1]?e.end=s+n.text.length:a===i&&t===i.childNodes[u]?e.end=s:t===i&&(e.end=s+u)}}var N=new RegExp("\ufeff","g");function k(e){return e.replace(N,"")}function I(e){var t=e.element,r=e.range,n=e.multilineTag,a=e.multilineWrapperTags,i=e.currentWrapperTags,u=void 0===i?[]:i,s=e.isEditableTree,l=e.preserveWhiteSpace,f={formats:[],replacements:[],text:""};if(!t)return f;if(!t.hasChildNodes())return A(f,t,r,{formats:[],replacements:[],text:""}),f;for(var p=t.childNodes.length,d=function(e){var i=t.childNodes[e],p=i.nodeName.toLowerCase();if(i.nodeType===i.TEXT_NODE){var d=k;l||(d=function(e){return k(function(e){return e.replace(/[\n\r\t]+/g," ")}(e))});var b=d(i.nodeValue);return r=function(e,t,r){if(t){var n=t.startContainer,a=t.endContainer,o=t.startOffset,c=t.endOffset;return e===n&&(o=r(e.nodeValue.slice(0,o)).length),e===a&&(c=r(e.nodeValue.slice(0,c)).length),{startContainer:n,startOffset:o,endContainer:a,endOffset:c}}}(i,r,d),A(f,i,r,{text:b}),f.formats.length+=b.length,f.replacements.length+=b.length,f.text+=b,"continue"}if(i.nodeType!==i.ELEMENT_NODE)return"continue";if(s&&(i.getAttribute("data-rich-text-placeholder")||"br"===p&&!i.getAttribute("data-rich-text-line-break")))return A(f,i,r,{formats:[],replacements:[],text:""}),"continue";if("br"===p)return A(f,i,r,{formats:[],replacements:[],text:""}),L(f,C({text:"\n"})),"continue";var m=f.formats[f.formats.length-1],v=m&&m[m.length-1],g=function(e){var t,r=e.type,n=e.attributes;if(n&&n.class&&(t=Object(o.select)("core/rich-text").getFormatTypeForClassName(n.class))&&(n.class=" ".concat(n.class," ").replace(" ".concat(t.className," ")," ").trim(),n.class||delete n.class),t||(t=Object(o.select)("core/rich-text").getFormatTypeForBareElement(r)),!t)return n?{type:r,attributes:n}:{type:r};if(t.__experimentalCreatePrepareEditableTree&&!t.__experimentalCreateOnChangeEditableValue)return null;if(!n)return{type:t.name};var a={},c={};for(var i in n){var u=F(t.attributes,i);u?a[u]=n[i]:c[i]=n[i]}return{type:t.name,attributes:a,unregisteredAttributes:c}}({type:p,attributes:W({element:i})}),y=O(g,v)?v:g;if(a&&-1!==a.indexOf(p)){var j=R({element:i,range:r,multilineTag:n,multilineWrapperTags:a,currentWrapperTags:[].concat(Object(h.a)(u),[y]),isEditableTree:s,preserveWhiteSpace:l});return A(f,i,r,j),L(f,j),"continue"}var w=I({element:i,range:r,multilineTag:n,multilineWrapperTags:a,isEditableTree:s,preserveWhiteSpace:l});if(A(f,i,r,w),y)if(0===w.text.length)y.attributes&&L(f,{formats:[,],replacements:[y],text:""});else{function x(e){if(x.formats===e)return x.newFormats;var t=e?[y].concat(Object(h.a)(e)):[y];return x.formats=e,x.newFormats=t,t}x.newFormats=[y],L(f,function(e){for(var t=1;t0)&&L(s,{formats:[,],replacements:c.length>0?[c]:[,],text:D}),A(s,p,r,d),L(s,d)}}return s}function W(e){var t=e.element;if(t.hasAttributes()){for(var r,n=t.attributes.length,a=0;a1&&void 0!==arguments[1]?arguments[1]:[];if(void 0===r)return o;if(r===n){if(a)return a;var c=t[r-1]||o,i=t[r]||o;return c.length1&&void 0!==arguments[1]?arguments[1]:t,a=n;a--;)if(r[a]===D)return a}function z(e){var t=e.replacements[U(e,e.start)];return!t||t.length<1}function G(e,t,r){var n=e.replacements[U(e,e.start)];return n&&0!==n.length?n[n.length-1].type===t:t===r}function q(e){var t=e.start,r=e.end;if(void 0!==t&&void 0!==r)return t===r}function X(e){return 0===e.text.length}function Y(e){var t=e.text,r=e.start,n=e.end;return r===n&&(0===t.length||(0===r&&t.slice(0,1)===D||(r===t.length&&t.slice(-1)===D||t.slice(r-1,n+1)==="".concat(D).concat(D))))}function $(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"string"==typeof t&&(t=C({text:t})),j(e.reduce((function(e,r){var n=r.formats,a=r.replacements,o=r.text;return{formats:e.formats.concat(t.formats,n),replacements:e.replacements.concat(t.replacements,a),text:e.text+t.text+o}})))}function Z(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 J(e,t){if("string"==typeof(t=function(e){for(var t=1;t3)window.console.error('The format "'+t.name+'" can have a maximum of 3 keywords.');else{if("string"==typeof t.title)return Object(o.dispatch)("core/rich-text").addFormatTypes(t),t;window.console.error("Format titles must be strings.")}else window.console.error('The format "'+t.name+'" must have a title.')}else window.console.error("A class name must begin with a letter, followed by any number of hyphens, letters, or numbers.");else window.console.error("Format class names must be a string, or null to handle bare elements.");else window.console.error("Format tag names must be a string.");else window.console.error("Format names must contain a namespace prefix, include only lowercase alphanumeric characters or dashes, and start with a letter. Example: my-plugin/my-custom-format");else window.console.error("Format names must be strings.")}function Q(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 ee(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:e.start,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.end,a=e.formats,o=e.activeFormats,c=a.slice();if(r===n){var u=Object(i.find)(c[r],{type:t});if(u){for(;Object(i.find)(c[r],u);)re(c,r,t),r--;for(n++;Object(i.find)(c[n],u);)re(c,n,t),n++}}else for(var s=r;s2&&void 0!==arguments[2]?arguments[2]:e.start,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.end,a=e.formats,o=e.replacements,c=e.text;"string"==typeof t&&(t=C({text:t}));var i=r+t.text.length;return j({formats:a.slice(0,r).concat(t.formats,a.slice(n)),replacements:o.slice(0,r).concat(t.replacements,o.slice(n)),text:c.slice(0,r)+t.text+c.slice(n),start:i,end:i})}function ae(e,t,r){return ne(e,C(),t,r)}function oe(e,t,r){var n=e.formats,a=e.replacements,o=e.text,c=e.start,i=e.end;return o=o.replace(t,(function(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),u=1;u1&&void 0!==arguments[1]?arguments[1]:e.start,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.end,n=B(e).slice(0,t),a=n.lastIndexOf(D),o=e.replacements[a],c=[,];o&&(c=[o]);var i={formats:[,],replacements:c,text:D};return ne(e,i,t,r)}function ie(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 ue(e){for(var t=1;t1&&void 0!==arguments[1])||arguments[1],r=e.replacements,n=e.text,a=e.start,o=e.end,c=q(e),i=a-1,u=c?a-1:a,s=o;if(t||(i=o,u=a,s=c?o+1:o),n[i]===D){var l;if(c&&r[i]&&r[i].length){var f=r.slice();f[i]=r[i].slice(0,-1),l=ue({},e,{replacements:f})}else l=ae(e,u,s);return l}}function le(e,t,r,n){return ne(e,{formats:[,],replacements:[t],text:""},r,n)}function fe(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 pe(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:e.start,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.end,n=e.formats,a=e.replacements,o=e.text;return void 0===t||void 0===r?pe({},e):{formats:n.slice(t,r),replacements:a.slice(t,r),text:o.slice(t,r)}}function be(e,t){var r=e.formats,n=e.replacements,a=e.text,o=e.start,c=e.end;if("string"!=typeof t)return me.apply(void 0,arguments);var i=0;return a.split(t).map((function(e){var a=i,u={formats:r.slice(a,a+e.length),replacements:n.slice(a,a+e.length),text:e};return i+=t.length+e.length,void 0!==o&&void 0!==c&&(o>=a&&oa&&(u.start=0),c>=a&&ci&&(u.end=e.length)),u}))}function me(e){var t=e.formats,r=e.replacements,n=e.text,a=e.start,o=e.end,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o,u={formats:t.slice(0,c),replacements:r.slice(0,c),text:n.slice(0,c)},s={formats:t.slice(i),replacements:r.slice(i),text:n.slice(i),start:0,end:0};return[oe(u,/\u2028+$/,""),oe(s,/^\u2028+/,"")]}function ve(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 ge(e){for(var t=1;t1;)e=e.childNodes[t.shift()];return{node:e,offset:t[0]}}function xe(e,t){"string"==typeof t&&(t=e.ownerDocument.createTextNode(t));var r=t,n=r.type,a=r.attributes;if(n)for(var o in t=e.ownerDocument.createElement(n),a)t.setAttribute(o,a[o]);return e.appendChild(t)}function Te(e,t){e.appendData(t)}function _e(e){return e.lastChild}function Ee(e){return e.parentNode}function Pe(e){return e.nodeType===e.TEXT_NODE}function De(e){return e.nodeValue}function Se(e){return e.parentNode.removeChild(e)}function Fe(e){var t=e.value,r=e.multilineTag,n=e.prepareEditableTree,a=e.isEditableTree,o=void 0===a||a,i=e.placeholder,u=e.doc,s=void 0===u?document:u,l=[],f=[];n&&(t=function(e){for(var t=1;t0){if(m=d,v=p.getRangeAt(0),m.startContainer===v.startContainer&&m.startOffset===v.startOffset&&m.endContainer===v.endContainer&&m.endOffset===v.endOffset)return;p.removeAllRanges()}var m,v;p.addRange(d),b!==l.activeElement&&b instanceof f.HTMLElement&&b.focus()}(u,r)}var Ae=r(89);function Ne(e){return Be(Oe({value:e.value,multilineTag:e.multilineTag,preserveWhiteSpace:e.preserveWhiteSpace,createEmpty:ke,append:Re,getLastChild:Ie,getParent:Le,isText:Me,getText:He,remove:Ke,appendText:We}).children)}function ke(){return{}}function Ie(e){var t=e.children;return t&&t[t.length-1]}function Re(e,t){return"string"==typeof t&&(t={text:t}),t.parent=e,e.children=e.children||[],e.children.push(t),t}function We(e,t){e.text+=t}function Le(e){return e.parent}function Me(e){return"string"==typeof e.text}function He(e){return e.text}function Ke(e){var t=e.parent.children.indexOf(e);return-1!==t&&e.parent.children.splice(t,1),e}function Ve(e){var t=e.type,r=e.attributes,n=e.object,a=e.children,o="";for(var c in r)Object(Ae.isValidAttributeName)(c)&&(o+=" ".concat(c,'="').concat(Object(Ae.escapeAttribute)(r[c]),'"'));return n?"<".concat(t).concat(o,">"):"<".concat(t).concat(o,">").concat(Be(a),"")}function Be(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map((function(e){return void 0===e.text?Ve(e):Object(Ae.escapeEditableHTML)(e.text)})).join("")}function Ue(e,t){return K(e,t.type)?te(e,t.type):_(e,t)}function ze(e){var t=Object(o.select)("core/rich-text").getFormatType(e);if(t)return Object(o.dispatch)("core/rich-text").removeFormatTypes(e),t;window.console.error("Format ".concat(e," is not registered."))}function Ge(e){var t=U(e);if(void 0===t)return!1;var r=e.replacements,n=U(e,t),a=r[t]||[],o=r[n]||[];return a.length<=o.length}function qe(e){return void 0!==e.replacements[U(e,e.start)]}function Xe(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 Ye(e,t){if(!Ge(e))return e;for(var r=U(e),n=U(e,r),a=e.text,o=e.replacements,i=e.end,u=o.slice(),s=function(e,t){for(var r=e.text,n=e.replacements,a=n[t]||[],o=t;o-- >=0;)if(r[o]===D){var c=n[o]||[];if(c.length===a.length+1)return o;if(c.length<=a.length)return}}(e,r),l=r;l=0;){if(r[o]===D)if((n[o]||[]).length===a.length-1)return o}}function Ze(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 Je(e){if(!qe(e))return e;for(var t=e.text,r=e.replacements,n=e.start,a=e.end,o=U(e,n),i=r.slice(0),u=r[$e(e,o)]||[],s=function(e,t){for(var r=e.text,n=e.replacements,a=n[t]||[],o=t,c=t||0;c=a.length))return o;o=c}return o}(e,U(e,a)),l=o;l<=s;l++)if(t[l]===D){var f=i[l]||[];i[l]=u.concat(f.slice(u.length+1)),0===i[l].length&&delete i[l]}return function(e){for(var t=1;tb?e:t})))}return r?function(e){for(var t=1;t0?e.getRangeAt(0):null;return C({element:U.current,range:t,multilineTag:S,multilineWrapperTags:"li"===S?["ul","ol"]:void 0,__unstableIsEditableTree:!0,preserveWhiteSpace:v})}function fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.domOnly;Ce({value:e,current:U.current,multilineTag:S,multilineWrapperTags:"li"===S?["ul","ol"]:void 0,prepareEditableTree:yt(z,"format_prepare_functions"),__unstableDomOnly:r,placeholder:b})}var pe=Object(at.useRef)(a);function de(){pe.current!==ie.current&&(V(),pe.current=ie.current)}var be=Object(at.useRef)(!1),me=Object(at.useRef)();function ve(e){var t;if(!be.current)if(e&&(t=e.inputType),!t&&e&&e.nativeEvent&&(t=e.nativeEvent.inputType),!t||0!==t.indexOf("format")&&!gt.has(t)){var r=le(),n=ue.current,a=n.start,o=n.activeFormats,c=void 0===o?[]:o,i=function(e){var t=e.value,r=e.start,n=e.end,a=e.formats,o=t.formats[r-1]||[],c=t.formats[n]||[];for(t.activeFormats=a.map((function(e,t){if(o[t]){if(O(e,o[t]))return o[t]}else if(c[t]&&O(e,c[t]))return c[t];return e}));--n>=r;)t.activeFormats.length>0?t.formats[n]=t.activeFormats:delete t.formats[n];return t}({value:r,start:a,end:r.start,formats:c});if(Oe(i,{withoutHistory:!0}),ee().clearTimeout(me.current),me.current=ee().setTimeout(de,1e3),"insertText"===t){R&&k&&k(i,ce);var u=f.reduce((function(e,t){var r=t.__unstableInputRule;return r&&(e=r(e)),e}),i);u!==i&&(de(),Oe(vt({},u,{activeFormats:c})),I())}}else fe(ue.current)}var ge=Object(at.useRef)(!1);function he(e){if(U.current&&document.activeElement===U.current&&("selectionchange"===e.type||B)&&!m&&!be.current){var t=le(),r=t.start,n=t.end,a=t.text,o=ue.current;if(a===o.text)if(r!==o.start||n!==o.end){var c=vt({},o,{start:r,end:n,activeFormats:void 0}),i=H(c,Ot);c.activeFormats=i,!L&&i.length?M():L&&!i.length&&K(),ue.current=c,fe(c,{domOnly:!0}),x(r,n),J(i)}else 0===o.text.length&&0===r&&function(e){var t=e.getSelection(),r=t.anchorNode,n=t.anchorOffset;if(r.nodeType===r.ELEMENT_NODE){var a=r.childNodes[n];a&&a.nodeType===a.ELEMENT_NODE&&a.getAttribute("data-rich-text-placeholder")&&t.collapseToStart()}}(ee());else ve()}}function Oe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.withoutHistory;A&&(e.formats=Array(e.text.length),e.replacements=Array(e.text.length)),fe(e);var n=e.start,a=e.end,o=e.activeFormats,c=void 0===o?[]:o,u=Object(i.pickBy)(z,(function(e,t){return t.startsWith("format_on_change_functions_")}));Object.values(u).forEach((function(t){t(e.formats,e.text)})),ie.current=ce(e),ue.current=e,x(n,a),T(ie.current),J(c),r||de()}function ye(e){var t=e.target;if(t!==U.current&&!t.textContent){var r=t.parentNode,n=Array.from(r.childNodes).indexOf(t),a=Q().createRange(),o=ee().getSelection();a.setStart(t.parentNode,n),a.setEnd(t.parentNode,n+1),o.removeAllRanges(),o.addRange(a)}}var je=Object(at.useRef)();function we(){ie.current=a,ue.current=re(a),ue.current.start=o,ue.current.end=c,fe(ue.current)}Object(at.useEffect)((function(){ge.current&&we()}),[r,b]),Object(at.useEffect)((function(){ge.current&&a!==ie.current&&we()}),[a]),Object(at.useEffect)((function(){ge.current&&(!B||o===ue.current.start&&c===ue.current.end?ue.current=vt({},ue.current,{start:o,end:c}):we())}),[o,c,B]);var xe=Object(i.pickBy)(z,(function(e,t){return t.startsWith("format_prepare_props_")}));function Te(){U.current.focus(),fe(ue.current)}Object(at.useEffect)((function(){ge.current&&we()}),Object.values(xe)),Object(at.useLayoutEffect)((function(){return fe(ue.current,{domOnly:!0}),ge.current=!0,function(){Q().removeEventListener("selectionchange",he),ee().cancelAnimationFrame(je.current),ee().clearTimeout(me.current)}}),[]);var _e=Object(i.pickBy)(z,(function(e,t){return Object(i.startsWith)(t,"aria-")})),Ee=vt({role:"textbox","aria-multiline":!0,"aria-label":b},_e,{ref:U,style:p?vt({},p,{whiteSpace:"pre-wrap"}):ht,className:ct()("rich-text",d),onPaste:function(e){if(B){var t=e.clipboardData,r=t.items,n=t.files;r=Object(i.isNil)(r)?[]:r,n=Object(i.isNil)(n)?[]:n;var a="",o="";try{a=t.getData("text/plain"),o=t.getData("text/html")}catch(e){try{o=t.getData("Text")}catch(e){return}}if(e.preventDefault(),window.console.log("Received HTML:\n\n",o),window.console.log("Received plain text:\n\n",a),A)Oe(ne(ue.current,a));else{var c=f.reduce((function(e,t){var r=t.__unstablePasteRule;return r&&e===ue.current&&(e=r(ue.current,{html:o,plainText:a})),e}),ue.current);c===ue.current?g&&(n=Array.from(n),Array.from(r).forEach((function(e){if(e.getAsFile){var t=e.getAsFile();if(t){var r=t.name,a=t.type,o=t.size;Object(i.find)(n,{name:r,type:a,size:o})||n.push(t)}}})),g({value:oe(ue.current),onChange:Oe,html:o,plainText:a,files:n,activeFormats:Z})):Oe(c)}}else e.preventDefault()},onInput:ve,onCompositionStart:function(){be.current=!0,Q().removeEventListener("selectionchange",he)},onCompositionEnd:function(){be.current=!1,ve({inputType:"insertText"}),Q().addEventListener("selectionchange",he)},onKeyDown:function(e){e.defaultPrevented||(function(e){var t=e.keyCode;if(t===it.DELETE||t===it.BACKSPACE||t===it.ESCAPE){if(N)return e.preventDefault(),void W();if(t!==it.ESCAPE){var r,n=le(),a=n.start,o=n.end,c=n.text,i=t===it.BACKSPACE;if(0===a&&0!==o&&o===c.length)return Oe(ae(n)),void e.preventDefault();if(S&&(r=i&&0===n.start&&0===n.end&&Y(n)?se(n,!i):se(n,i)))return Oe(r),void e.preventDefault();!j||!q(n)||Z.length||i&&0!==a||!i&&o!==c.length||(j({isReverse:i,value:n}),e.preventDefault())}}}(e),function(e){e.keyCode===it.ENTER&&(e.preventDefault(),w&&w({value:oe(le()),onChange:Oe,shiftKey:e.shiftKey}))}(e),function(e){var t=e.keyCode,r=e.shiftKey,n=e.altKey,a=e.metaKey,o=e.ctrlKey;if(!(r||n||a||o||t!==it.SPACE||"li"!==S)){var c=le();if(q(c)){var i=c.text[c.start-1];i&&i!==D||(Oe(Ye(c,{type:F})),e.preventDefault())}}}(e),function(e){var t=e.keyCode,r=e.shiftKey,n=e.altKey,a=e.metaKey,o=e.ctrlKey;if(!(r||n||a||o||t!==it.LEFT&&t!==it.RIGHT)){var c=ue.current,i=c.text,u=c.formats,s=c.start,l=c.end,f=c.activeFormats,p=void 0===f?[]:f,d=q(ue.current),b="rtl"===ee().getComputedStyle(U.current).direction?it.RIGHT:it.LEFT,m=e.keyCode===b;if(d&&0===p.length){if(0===s&&m)return;if(l===i.length&&!m)return}if(d){e.preventDefault();var v=u[s-1]||Ot,g=u[s]||Ot,h=p.length,O=g;if(v.length>g.length&&(O=v),v.lengthv.length&&h--):v.length>g.length&&(!m&&p.length>g.length&&h--,m&&p.length