From d6cff7965a10c89e629a87eb6e4ecb0ed9614d50 Mon Sep 17 00:00:00 2001 From: youknowriad Date: Tue, 20 Oct 2020 13:36:16 +0000 Subject: [PATCH] Block Editor: Update the WordPress Packages to the latest version. This includes the packages that match the Gutenberg 9.2 Release. It is going to be the last block-editor features update for WordPress 5.6. It also updates the block-supports code base to the latest APIs. Props isabel_brison, noisysocks, desrosj. Fixes #51570. Built from https://develop.svn.wordpress.org/trunk@49226 git-svn-id: http://core.svn.wordpress.org/trunk@48988 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/assets/script-loader-packages.php | 2 +- wp-includes/block-supports/align.php | 21 +- wp-includes/block-supports/colors.php | 56 +- .../block-supports/custom-classname.php | 21 +- .../block-supports/generated-classname.php | 20 +- wp-includes/block-supports/index.php | 137 - wp-includes/block-supports/typography.php | 75 +- wp-includes/blocks.php | 22 +- wp-includes/blocks/archives.php | 6 +- wp-includes/blocks/archives/block.json | 1 + wp-includes/blocks/audio/block.json | 4 +- wp-includes/blocks/block/block.json | 1 + wp-includes/blocks/button/block.json | 3 +- wp-includes/blocks/buttons/block.json | 4 +- wp-includes/blocks/calendar.php | 6 +- wp-includes/blocks/calendar/block.json | 1 + wp-includes/blocks/categories.php | 8 +- wp-includes/blocks/categories/block.json | 1 + wp-includes/blocks/classic/block.json | 1 + wp-includes/blocks/code/block.json | 4 +- wp-includes/blocks/column/block.json | 11 +- wp-includes/blocks/columns/block.json | 6 +- wp-includes/blocks/embed/block.json | 1 + wp-includes/blocks/file/block.json | 1 + wp-includes/blocks/group/block.json | 13 +- wp-includes/blocks/heading/block.json | 11 +- wp-includes/blocks/html/block.json | 1 + wp-includes/blocks/image/block.json | 4 +- wp-includes/blocks/latest-comments.php | 10 +- wp-includes/blocks/latest-comments/block.json | 1 + wp-includes/blocks/latest-posts.php | 6 +- wp-includes/blocks/list/block.json | 6 +- wp-includes/blocks/media-text/block.json | 6 +- wp-includes/blocks/missing/block.json | 1 + wp-includes/blocks/more/block.json | 1 + wp-includes/blocks/nextpage/block.json | 1 + wp-includes/blocks/paragraph/block.json | 10 +- wp-includes/blocks/preformatted/block.json | 4 +- wp-includes/blocks/pullquote/block.json | 1 + wp-includes/blocks/quote/block.json | 4 +- wp-includes/blocks/rss.php | 3 +- wp-includes/blocks/rss/block.json | 1 + wp-includes/blocks/search.php | 13 +- wp-includes/blocks/search/block.json | 8 +- wp-includes/blocks/separator/block.json | 4 +- wp-includes/blocks/shortcode/block.json | 1 + wp-includes/blocks/social-link.php | 6 +- wp-includes/blocks/social-link/block.json | 4 +- wp-includes/blocks/social-links/block.json | 2 +- wp-includes/blocks/spacer/block.json | 1 + wp-includes/blocks/subhead/block.json | 1 + wp-includes/blocks/table/block.json | 4 +- wp-includes/blocks/tag-cloud.php | 5 +- wp-includes/blocks/tag-cloud/block.json | 1 + wp-includes/blocks/text-columns/block.json | 1 + wp-includes/blocks/verse/block.json | 4 +- wp-includes/blocks/video/block.json | 11 +- wp-includes/class-wp-block-supports.php | 211 + wp-includes/class-wp-block.php | 13 +- .../css/dist/block-editor/style-rtl.css | 450 +- .../css/dist/block-editor/style-rtl.min.css | 2 +- wp-includes/css/dist/block-editor/style.css | 450 +- .../css/dist/block-editor/style.min.css | 4 +- .../css/dist/block-library/editor-rtl.css | 185 +- .../css/dist/block-library/editor-rtl.min.css | 2 +- wp-includes/css/dist/block-library/editor.css | 185 +- .../css/dist/block-library/editor.min.css | 2 +- .../css/dist/block-library/style-rtl.css | 169 +- .../css/dist/block-library/style-rtl.min.css | 2 +- wp-includes/css/dist/block-library/style.css | 169 +- .../css/dist/block-library/style.min.css | 4 +- wp-includes/css/dist/components/style-rtl.css | 119 +- .../css/dist/components/style-rtl.min.css | 2 +- wp-includes/css/dist/components/style.css | 119 +- wp-includes/css/dist/components/style.min.css | 6 +- wp-includes/css/dist/edit-post/style-rtl.css | 176 +- .../css/dist/edit-post/style-rtl.min.css | 2 +- wp-includes/css/dist/edit-post/style.css | 176 +- wp-includes/css/dist/edit-post/style.min.css | 2 +- .../css/dist/editor/editor-styles-rtl.css | 28 +- .../css/dist/editor/editor-styles-rtl.min.css | 2 +- wp-includes/css/dist/editor/editor-styles.css | 28 +- .../css/dist/editor/editor-styles.min.css | 2 +- wp-includes/css/dist/editor/style-rtl.css | 14 +- wp-includes/css/dist/editor/style-rtl.min.css | 2 +- wp-includes/css/dist/editor/style.css | 14 +- wp-includes/css/dist/editor/style.min.css | 2 +- wp-includes/default-filters.php | 1 + wp-includes/js/dist/a11y.js | 8 +- wp-includes/js/dist/a11y.min.js | 2 +- wp-includes/js/dist/annotations.js | 16 +- wp-includes/js/dist/annotations.min.js | 2 +- wp-includes/js/dist/api-fetch.js | 100 +- wp-includes/js/dist/api-fetch.min.js | 2 +- wp-includes/js/dist/autop.js | 4 +- wp-includes/js/dist/autop.min.js | 2 +- wp-includes/js/dist/blob.js | 20 +- wp-includes/js/dist/blob.min.js | 2 +- wp-includes/js/dist/block-directory.js | 268 +- wp-includes/js/dist/block-directory.min.js | 2 +- wp-includes/js/dist/block-editor.js | 1900 ++--- wp-includes/js/dist/block-editor.min.js | 6 +- wp-includes/js/dist/block-library.js | 6442 ++++++++--------- wp-includes/js/dist/block-library.min.js | 10 +- .../block-serialization-default-parser.js | 4 +- .../block-serialization-default-parser.min.js | 2 +- wp-includes/js/dist/blocks.js | 266 +- wp-includes/js/dist/blocks.min.js | 4 +- wp-includes/js/dist/components.js | 3779 +++++----- wp-includes/js/dist/components.min.js | 8 +- wp-includes/js/dist/compose.js | 204 +- wp-includes/js/dist/compose.min.js | 4 +- wp-includes/js/dist/core-data.js | 76 +- wp-includes/js/dist/core-data.min.js | 2 +- wp-includes/js/dist/data-controls.js | 261 +- wp-includes/js/dist/data-controls.min.js | 2 +- wp-includes/js/dist/data.js | 611 +- wp-includes/js/dist/data.min.js | 2 +- wp-includes/js/dist/date.js | 22 +- wp-includes/js/dist/date.min.js | 6 +- wp-includes/js/dist/deprecated.js | 4 +- wp-includes/js/dist/deprecated.min.js | 2 +- wp-includes/js/dist/dom-ready.js | 4 +- wp-includes/js/dist/dom-ready.min.js | 2 +- wp-includes/js/dist/dom.js | 4 +- wp-includes/js/dist/dom.min.js | 2 +- wp-includes/js/dist/edit-post.js | 761 +- wp-includes/js/dist/edit-post.min.js | 4 +- wp-includes/js/dist/editor.js | 4682 +++++------- wp-includes/js/dist/editor.min.js | 6 +- wp-includes/js/dist/element.js | 12 +- wp-includes/js/dist/element.min.js | 2 +- wp-includes/js/dist/escape-html.js | 4 +- wp-includes/js/dist/escape-html.min.js | 2 +- wp-includes/js/dist/format-library.js | 174 +- wp-includes/js/dist/format-library.min.js | 2 +- wp-includes/js/dist/hooks.js | 8 +- wp-includes/js/dist/hooks.min.js | 2 +- wp-includes/js/dist/html-entities.js | 4 +- wp-includes/js/dist/html-entities.min.js | 2 +- wp-includes/js/dist/i18n.js | 8 +- wp-includes/js/dist/i18n.min.js | 2 +- wp-includes/js/dist/is-shallow-equal.js | 12 +- wp-includes/js/dist/is-shallow-equal.min.js | 2 +- wp-includes/js/dist/keyboard-shortcuts.js | 16 +- wp-includes/js/dist/keyboard-shortcuts.min.js | 2 +- wp-includes/js/dist/keycodes.js | 8 +- wp-includes/js/dist/keycodes.min.js | 2 +- wp-includes/js/dist/list-reusable-blocks.js | 84 +- .../js/dist/list-reusable-blocks.min.js | 2 +- wp-includes/js/dist/media-utils.js | 116 +- wp-includes/js/dist/media-utils.min.js | 2 +- wp-includes/js/dist/notices.js | 8 +- wp-includes/js/dist/notices.min.js | 2 +- wp-includes/js/dist/nux.js | 20 +- wp-includes/js/dist/nux.min.js | 2 +- wp-includes/js/dist/plugins.js | 56 +- wp-includes/js/dist/plugins.min.js | 2 +- wp-includes/js/dist/primitives.js | 13 +- wp-includes/js/dist/primitives.min.js | 2 +- wp-includes/js/dist/priority-queue.js | 4 +- wp-includes/js/dist/priority-queue.min.js | 2 +- wp-includes/js/dist/redux-routine.js | 54 +- wp-includes/js/dist/redux-routine.min.js | 2 +- wp-includes/js/dist/reusable-blocks.js | 884 +++ wp-includes/js/dist/reusable-blocks.min.js | 2 + wp-includes/js/dist/rich-text.js | 156 +- wp-includes/js/dist/rich-text.min.js | 7 +- wp-includes/js/dist/server-side-render.js | 62 +- wp-includes/js/dist/server-side-render.min.js | 2 +- wp-includes/js/dist/shortcode.js | 4 +- wp-includes/js/dist/shortcode.min.js | 2 +- wp-includes/js/dist/token-list.js | 48 +- wp-includes/js/dist/token-list.min.js | 2 +- wp-includes/js/dist/url.js | 28 +- wp-includes/js/dist/url.min.js | 2 +- wp-includes/js/dist/viewport.js | 4 +- wp-includes/js/dist/viewport.min.js | 2 +- wp-includes/js/dist/warning.js | 4 +- wp-includes/js/dist/warning.min.js | 2 +- wp-includes/js/dist/wordcount.js | 214 +- wp-includes/js/dist/wordcount.min.js | 2 +- wp-includes/version.php | 2 +- wp-settings.php | 7 +- 184 files changed, 12625 insertions(+), 12062 deletions(-) delete mode 100644 wp-includes/block-supports/index.php create mode 100644 wp-includes/class-wp-block-supports.php create mode 100644 wp-includes/js/dist/reusable-blocks.js create mode 100644 wp-includes/js/dist/reusable-blocks.min.js diff --git a/wp-includes/assets/script-loader-packages.php b/wp-includes/assets/script-loader-packages.php index bcbc7cfcde..c9acc6700e 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' => 'dc7ee381aff6a9dc3ad4cf2c9ca120b7'), 'annotations.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => '27155380a815188dd577492812951589'), 'api-fetch.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '070b6ecb852dc55922d59eb13a63389c'), 'autop.js' => array('dependencies' => array('wp-polyfill'), 'version' => '1c7dffba3d995fbccc86b411aa5cc562'), 'blob.js' => array('dependencies' => array('wp-polyfill'), 'version' => '01833b47de938f0f8e85794557bc18c3'), '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-hooks', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives'), 'version' => '24354d8553ddfbcbf461b57065fe0771'), 'block-editor.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-a11y', 'wp-blob', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-shortcode', 'wp-token-list', 'wp-url', 'wp-viewport', 'wp-warning', 'wp-wordcount'), 'version' => '9ae821cc38d2f7ff7d6ca9a589b6fc36'), 'block-library.js' => array('dependencies' => array('lodash', 'moment', 'react', 'wp-api-fetch', 'wp-autop', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport'), 'version' => '8f2089e3053fa95dc345070ec7eb2ac4'), 'block-serialization-default-parser.js' => array('dependencies' => array('wp-polyfill'), 'version' => '977fd3dd81047b7e745ecfac846b263c'), 'blocks.js' => array('dependencies' => array('lodash', 'wp-autop', 'wp-blob', 'wp-block-serialization-default-parser', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-primitives', 'wp-shortcode'), 'version' => 'a77a2680e229cc69e8e426a83346f998'), 'components.js' => array('dependencies' => array('lodash', 'moment', 'react', 'wp-a11y', 'wp-compose', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-warning'), 'version' => '7427e0fb448bf552a7823b18c60929fb'), 'compose.js' => array('dependencies' => array('lodash', 'react', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-priority-queue'), 'version' => '64ab8597aec30a2cc5ead65bfe1608e7'), 'core-data.js' => array('dependencies' => array('lodash', 'wp-blocks', 'wp-data', 'wp-data-controls', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-url'), 'version' => '695e210b1278a073277be30612b012ab'), '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' => '9bc8bd6eb4596eb3dd6d088aee3c650b'), 'data-controls.js' => array('dependencies' => array('wp-api-fetch', 'wp-data', 'wp-polyfill'), 'version' => '16df67879fd40c06d062009d705eae7e'), 'date.js' => array('dependencies' => array('moment', 'wp-polyfill'), 'version' => 'e4df6fe4e75e764950f212c46ae11c6b'), 'deprecated.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '56955507424d4f29407ed209d1ffb277'), 'dom.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'dff9d26a46cbd6f46e2d4895ccb23c46'), 'dom-ready.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'd6291b37a9b4f1368d9444f5aeb8d78a'), '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' => '5985400224db41e89fc807c1feec5f98'), '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' => '5ce5c9cde413b48409ee5168cfa4937d'), 'element.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-escape-html', 'wp-polyfill'), 'version' => '1ea7443c7ed64cad48b984f226b278ea'), 'escape-html.js' => array('dependencies' => array('wp-polyfill'), 'version' => '067f1a106c08a603bdb1a96c3fa196f1'), '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' => '44fb9984a420dec846b07658bb9ee111'), 'hooks.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'a899efa38966fd49729dc1de80e394ec'), 'html-entities.js' => array('dependencies' => array('wp-polyfill'), 'version' => '765bf227a85016fff816aa3b28158b82'), 'i18n.js' => array('dependencies' => array('wp-polyfill'), 'version' => '947c3285333752cf16a7b22b01af1ce0'), 'is-shallow-equal.js' => array('dependencies' => array('wp-polyfill'), 'version' => '935962abdcbf9cb9fcc644c7da72b14e'), 'keyboard-shortcuts.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-keycodes', 'wp-polyfill'), 'version' => '8a9f8bdb2f352208c0583c5e9d7f9f64'), 'keycodes.js' => array('dependencies' => array('lodash', 'wp-i18n', 'wp-polyfill'), 'version' => '5633b88a2f66da4cf68426d8c9ccbb3e'), 'list-reusable-blocks.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '9dd575a5aef56788369426613e26a342'), 'media-utils.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blob', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '5ae039ac87f0079983e21a0dd33b212c'), 'notices.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-polyfill'), 'version' => '653f8218a30cebf85619ca99eb33115d'), 'nux.js' => array('dependencies' => array('lodash', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => 'da59059e91898057d9589da458c2b6b5'), 'plugins.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-polyfill', 'wp-primitives'), 'version' => '31b1e6878ecada5283e79f43cd4aa475'), 'primitives.js' => array('dependencies' => array('wp-element', 'wp-polyfill'), 'version' => 'd2b0458b408f1299f9fcde6db10b1b71'), 'priority-queue.js' => array('dependencies' => array('wp-polyfill'), 'version' => '9f53ee3ebd8d9c9ee570e4368fe61952'), 'redux-routine.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '52a66a11b096e9f964677ff1bedbba47'), 'rich-text.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-escape-html', 'wp-keycodes', 'wp-polyfill'), 'version' => 'ca63fa8d70b2d06ee4e89c51e373ac81'), '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' => 'f8b8a12701f5fcd0cbf36306afcd338c'), 'shortcode.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'adb76b9fb90e39f9c4e0fbc1c6b84a2d'), 'token-list.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '35ec0396c3210102f96e0660bbd1d957'), 'url.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '5e4305728fb1ee90de4dd5acb95ccb1a'), 'viewport.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-element', 'wp-polyfill'), 'version' => '4469c293d800f4b1655e1127043abd39'), 'warning.js' => array('dependencies' => array('wp-polyfill'), 'version' => '5d3e954781d75c81dfcced5cb1d04d96'), 'wordcount.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'f729e1a9cd1c6d92b514a4ad3f020624')); \ No newline at end of file + array('dependencies' => array('wp-dom-ready', 'wp-i18n', 'wp-polyfill'), 'version' => 'a7dc4c94ca05d79fe1926acd3be57f4f'), 'annotations.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => '35785b35bbbf3c4a5e979ba733e4043c'), 'api-fetch.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => 'c6d9f25f1de157546a0f81062ea2ac93'), 'autop.js' => array('dependencies' => array('wp-polyfill'), 'version' => '7e5ea82c279cc0758ca567a01e229432'), 'blob.js' => array('dependencies' => array('wp-polyfill'), 'version' => '9ee6dca7fc448e120c3452ade58163b5'), 'block-directory.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-edit-post', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives'), 'version' => 'b98e73240099ffe30081af3ac4d55534'), 'block-editor.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-a11y', 'wp-blob', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-shortcode', 'wp-token-list', 'wp-url', 'wp-viewport', 'wp-warning', 'wp-wordcount'), 'version' => '77ad7098c5c1fadffab1e25fd092c188'), 'block-library.js' => array('dependencies' => array('lodash', 'moment', 'react', 'wp-api-fetch', 'wp-autop', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport'), 'version' => '0ad76e3e460ed7ea8748a9dd3d220501'), 'block-serialization-default-parser.js' => array('dependencies' => array('wp-polyfill'), 'version' => '7b92d77a790023414a5002a1622853fb'), 'blocks.js' => array('dependencies' => array('lodash', 'wp-autop', 'wp-blob', 'wp-block-serialization-default-parser', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-primitives', 'wp-shortcode'), 'version' => 'a9d91a848c8d7ecfbf9763af14e96e7c'), 'components.js' => array('dependencies' => array('lodash', 'moment', 'react', 'wp-a11y', 'wp-compose', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-warning'), 'version' => 'c18e6ad614a17e689215751a7890020a'), 'compose.js' => array('dependencies' => array('lodash', 'react', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-priority-queue'), 'version' => 'cfe93f0de5c7d6a661ec04f38fa041e5'), 'core-data.js' => array('dependencies' => array('lodash', 'wp-blocks', 'wp-data', 'wp-data-controls', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-url'), 'version' => 'f184b156c783f1137f65064a60bef9bf'), 'data.js' => array('dependencies' => array('lodash', 'react', 'wp-compose', 'wp-deprecated', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-priority-queue', 'wp-redux-routine'), 'version' => 'a2473f40010c4d566eb3a42192f647a0'), 'data-controls.js' => array('dependencies' => array('wp-api-fetch', 'wp-data', 'wp-polyfill'), 'version' => '71c8a675e946cb9ba2a5d5b7d6a2c993'), 'date.js' => array('dependencies' => array('moment', 'wp-polyfill'), 'version' => '236d956f797e6baf94e5bb412df1620e'), 'deprecated.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '5480dd7574d6b15f781387ca82f38c98'), 'dom.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '658b42390dd73c64306c372f824bb538'), 'dom-ready.js' => array('dependencies' => array('wp-polyfill'), 'version' => '0673a12cd64681bf831177bdbbc8c17c'), 'edit-post.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-url', 'wp-viewport', 'wp-warning'), 'version' => '49211272938d4db22529c44039c9dae5'), 'editor.js' => array('dependencies' => array('lodash', 'react', 'wp-api-fetch', 'wp-autop', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-date', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport', 'wp-wordcount'), 'version' => '6b08d8c160639cf8f02bf71e08fb2f7d'), 'element.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-escape-html', 'wp-polyfill'), 'version' => 'ac1269eb3eb7c6c8191705bfc2031910'), 'escape-html.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'b8bd7b8863ae9d136fdd9ee31e2e7402'), 'format-library.js' => array('dependencies' => array('lodash', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-dom', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-url'), 'version' => 'fe3749d9d581ac84e5a1d510c55ed959'), 'hooks.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'b4d5f3ad41c327f5896429baf9266da9'), 'html-entities.js' => array('dependencies' => array('wp-polyfill'), 'version' => '8e8652a4cc634a7a5b32f2d664c0e0cc'), 'i18n.js' => array('dependencies' => array('wp-polyfill'), 'version' => '74259306f29940dfc0d175b259792d2c'), 'is-shallow-equal.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'e7be680b2f3d7a7149e5b8686fd3949b'), 'keyboard-shortcuts.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-keycodes', 'wp-polyfill'), 'version' => '1e85c18d6ef4e27b12213145e9e9679f'), 'keycodes.js' => array('dependencies' => array('lodash', 'wp-i18n', 'wp-polyfill'), 'version' => 'e886991b733ab6256b674d45b18e43ef'), 'list-reusable-blocks.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '13150f9453afa9c4d4e4380f65be0de2'), 'media-utils.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blob', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '98fccf5949d023c28f3bd71045621f60'), 'notices.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-polyfill'), 'version' => '7cae25e674c0dc3d1c4e8d42f89bd2e2'), 'nux.js' => array('dependencies' => array('lodash', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => '107217d4c19489a0d1f21e08526331c6'), 'plugins.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-polyfill', 'wp-primitives'), 'version' => '8f249a8adc2954966031702a8b29f498'), 'primitives.js' => array('dependencies' => array('wp-element', 'wp-polyfill'), 'version' => '4dba7bfcd17579030d4b93ea97a24db4'), 'priority-queue.js' => array('dependencies' => array('wp-polyfill'), 'version' => '59111ff6019a7401dba22121e795e543'), 'redux-routine.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '9441cdf8abe5a0f364cc6a8345068058'), 'reusable-blocks.js' => array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-polyfill', 'wp-primitives'), 'version' => '7675569cdeea817fb322bd60bb0532a2'), 'rich-text.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-escape-html', 'wp-keycodes', 'wp-polyfill'), 'version' => '4b38b5f9c11b52d85670239acb3fa0fc'), 'server-side-render.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => 'd78510caa4ce58473139a15b782b67e9'), 'shortcode.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '760ef1dc15a1da975ce384ac38245584'), 'token-list.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '9c3b2205ac79cc76094def2dd76a5cfa'), 'url.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '76613c4e7c046883554d789ee1af3c7a'), 'viewport.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-element', 'wp-polyfill'), 'version' => '2046fe168e829732d56285e317e158dd'), 'warning.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'e93e31a3954c2b1e23e96280b27d3715'), 'wordcount.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '5808f9da0ba314c3e34b085ac6194a69')); \ No newline at end of file diff --git a/wp-includes/block-supports/align.php b/wp-includes/block-supports/align.php index 52392c76ef..d81663d5c4 100644 --- a/wp-includes/block-supports/align.php +++ b/wp-includes/block-supports/align.php @@ -8,6 +8,8 @@ /** * Registers the align block attribute for block types that support it. * + * @access private + * * @param WP_Block_Type $block_type Block Type. */ function wp_register_alignment_support( $block_type ) { @@ -33,13 +35,15 @@ function wp_register_alignment_support( $block_type ) { * Add CSS classes for block alignment to the incoming attributes array. * This will be applied to the block markup in the front-end. * - * @param array $attributes Comprehensive list of attributes to be applied. - * @param array $block_attributes Block attributes. + * @access private + * * @param WP_Block_Type $block_type Block Type. + * @param array $block_attributes Block attributes. * * @return array Block alignment CSS classes and inline styles. */ -function wp_apply_alignment_support( $attributes, $block_attributes, $block_type ) { +function wp_apply_alignment_support( $block_type, $block_attributes ) { + $attributes = array(); $has_align_support = false; if ( property_exists( $block_type, 'supports' ) ) { $has_align_support = wp_array_get( $block_type->supports, array( 'align' ), false ); @@ -48,9 +52,18 @@ function wp_apply_alignment_support( $attributes, $block_attributes, $block_type $has_block_alignment = array_key_exists( 'align', $block_attributes ); if ( $has_block_alignment ) { - $attributes['css_classes'][] = sprintf( 'align%s', $block_attributes['align'] ); + $attributes['class'] = sprintf( 'align%s', $block_attributes['align'] ); } } return $attributes; } + +// Register the block support. +WP_Block_Supports::get_instance()->register( + 'align', + array( + 'register_attribute' => 'wp_register_alignment_support', + 'apply' => 'wp_apply_alignment_support', + ) +); diff --git a/wp-includes/block-supports/colors.php b/wp-includes/block-supports/colors.php index 76c0d48b6a..71cbcec64b 100644 --- a/wp-includes/block-supports/colors.php +++ b/wp-includes/block-supports/colors.php @@ -8,6 +8,8 @@ /** * Registers the style and colors block attributes for block types that support it. * + * @access private + * * @param WP_Block_Type $block_type Block Type. */ function wp_register_colors_support( $block_type ) { @@ -53,18 +55,21 @@ function wp_register_colors_support( $block_type ) { * Add CSS classes and inline styles for colors to the incoming attributes array. * This will be applied to the block markup in the front-end. * - * @param array $attributes Comprehensive list of attributes to be applied. - * @param array $block_attributes Block attributes. + * @access private + * * @param WP_Block_Type $block_type Block type. +* @param array $block_attributes Block attributes. * * @return array Colors CSS classes and inline styles. */ -function wp_apply_colors_support( $attributes, $block_attributes, $block_type ) { +function wp_apply_colors_support( $block_type, $block_attributes ) { $color_support = wp_array_get( $block_type->supports, array( '__experimentalColor' ), false ); $has_text_colors_support = true === $color_support || ( is_array( $color_support ) && wp_array_get( $color_support, array( 'text' ), true ) ); $has_background_colors_support = true === $color_support || ( is_array( $color_support ) && wp_array_get( $color_support, array( 'background' ), true ) ); $has_link_colors_support = wp_array_get( $color_support, array( 'linkColor' ), false ); $has_gradients_support = wp_array_get( $color_support, array( 'gradients' ), false ); + $classes = array(); + $styles = array(); // Text Colors. // Check support for text colors. @@ -74,13 +79,13 @@ function wp_apply_colors_support( $attributes, $block_attributes, $block_type ) // Apply required generic class. if ( $has_custom_text_color || $has_named_text_color ) { - $attributes['css_classes'][] = 'has-text-color'; + $classes[] = 'has-text-color'; } // Apply color class or inline style. if ( $has_named_text_color ) { - $attributes['css_classes'][] = sprintf( 'has-%s-color', $block_attributes['textColor'] ); + $classes[] = sprintf( 'has-%s-color', $block_attributes['textColor'] ); } elseif ( $has_custom_text_color ) { - $attributes['inline_styles'][] = sprintf( 'color: %s;', $block_attributes['style']['color']['text'] ); + $styles[] = sprintf( 'color: %s;', $block_attributes['style']['color']['text'] ); } } @@ -89,15 +94,15 @@ function wp_apply_colors_support( $attributes, $block_attributes, $block_type ) $has_link_color = isset( $block_attributes['style']['color']['link'] ); // Apply required class and style. if ( $has_link_color ) { - $attributes['css_classes'][] = 'has-link-color'; + $classes[] = 'has-link-color'; // If link is a named color. if ( strpos( $block_attributes['style']['color']['link'], 'var:preset|color|' ) !== false ) { // Get the name from the string and add proper styles. - $index_to_splice = strrpos( $block_attributes['style']['color']['link'], '|' ) + 1; - $link_color_name = substr( $block_attributes['style']['color']['link'], $index_to_splice ); - $attributes['inline_styles'][] = sprintf( '--wp--style--color--link:var(--wp--preset--color--%s);', $link_color_name ); + $index_to_splice = strrpos( $block_attributes['style']['color']['link'], '|' ) + 1; + $link_color_name = substr( $block_attributes['style']['color']['link'], $index_to_splice ); + $styles[] = sprintf( '--wp--style--color--link: var(--wp--preset--color--%s);', $link_color_name ); } else { - $attributes['inline_styles'][] = sprintf( '--wp--style--color--link: %s;', $block_attributes['style']['color']['link'] ); + $styles[] = sprintf( '--wp--style--color--link: %s;', $block_attributes['style']['color']['link'] ); } } } @@ -109,13 +114,13 @@ function wp_apply_colors_support( $attributes, $block_attributes, $block_type ) // Apply required background class. if ( $has_custom_background_color || $has_named_background_color ) { - $attributes['css_classes'][] = 'has-background'; + $classes[] = 'has-background'; } // Apply background color classes or styles. if ( $has_named_background_color ) { - $attributes['css_classes'][] = sprintf( 'has-%s-background-color', $block_attributes['backgroundColor'] ); + $classes[] = sprintf( 'has-%s-background-color', $block_attributes['backgroundColor'] ); } elseif ( $has_custom_background_color ) { - $attributes['inline_styles'][] = sprintf( 'background-color: %s;', $block_attributes['style']['color']['background'] ); + $styles[] = sprintf( 'background-color: %s;', $block_attributes['style']['color']['background'] ); } } @@ -125,15 +130,32 @@ function wp_apply_colors_support( $attributes, $block_attributes, $block_type ) $has_custom_gradient = isset( $block_attributes['style']['color']['gradient'] ); if ( $has_named_gradient || $has_custom_gradient ) { - $attributes['css_classes'][] = 'has-background'; + $classes[] = 'has-background'; } // Apply required background class. if ( $has_named_gradient ) { - $attributes['css_classes'][] = sprintf( 'has-%s-gradient-background', $block_attributes['gradient'] ); + $classes[] = sprintf( 'has-%s-gradient-background', $block_attributes['gradient'] ); } elseif ( $has_custom_gradient ) { - $attributes['inline_styles'][] = sprintf( 'background: %s;', $block_attributes['style']['color']['gradient'] ); + $styles[] = sprintf( 'background: %s;', $block_attributes['style']['color']['gradient'] ); } } + $attributes = array(); + if ( ! empty( $classes ) ) { + $attributes['class'] = implode( ' ', $classes ); + } + if ( ! empty( $styles ) ) { + $attributes['style'] = implode( ' ', $styles ); + } + return $attributes; } + +// Register the block support. +WP_Block_Supports::get_instance()->register( + 'colors', + array( + 'register_attribute' => 'wp_register_colors_support', + 'apply' => 'wp_apply_colors_support', + ) +); diff --git a/wp-includes/block-supports/custom-classname.php b/wp-includes/block-supports/custom-classname.php index 33d90e76fd..7d45738afa 100644 --- a/wp-includes/block-supports/custom-classname.php +++ b/wp-includes/block-supports/custom-classname.php @@ -8,6 +8,8 @@ /** * Registers the custom classname block attribute for block types that support it. * + * @access private + * * @param WP_Block_Type $block_type Block Type. */ function wp_register_custom_classname_support( $block_type ) { @@ -31,14 +33,16 @@ function wp_register_custom_classname_support( $block_type ) { /** * Add the custom classnames to the output. * - * @param array $attributes Comprehensive list of attributes to be applied. - * @param array $block_attributes Block attributes. + * @access private + * * @param WP_Block_Type $block_type Block Type. + * @param array $block_attributes Block attributes. * * @return array Block CSS classes and inline styles. */ -function wp_apply_custom_classname_support( $attributes, $block_attributes, $block_type ) { +function wp_apply_custom_classname_support( $block_type, $block_attributes ) { $has_custom_classname_support = true; + $attributes = array(); if ( property_exists( $block_type, 'supports' ) ) { $has_custom_classname_support = wp_array_get( $block_type->supports, array( 'customClassName' ), true ); } @@ -46,9 +50,18 @@ function wp_apply_custom_classname_support( $attributes, $block_attributes, $blo $has_custom_classnames = array_key_exists( 'className', $block_attributes ); if ( $has_custom_classnames ) { - $attributes['css_classes'][] = $block_attributes['className']; + $attributes['class'] = $block_attributes['className']; } } return $attributes; } + +// Register the block support. +WP_Block_Supports::get_instance()->register( + 'custom-classname', + array( + 'register_attribute' => 'wp_register_custom_classname_support', + 'apply' => 'wp_apply_custom_classname_support', + ) +); diff --git a/wp-includes/block-supports/generated-classname.php b/wp-includes/block-supports/generated-classname.php index c510bb094b..5bb1a14ae7 100644 --- a/wp-includes/block-supports/generated-classname.php +++ b/wp-includes/block-supports/generated-classname.php @@ -8,6 +8,8 @@ /** * Get the generated classname from a given block name. * + * @access private + * * @param string $block_name Block Name. * @return string Generated classname. */ @@ -34,14 +36,16 @@ function wp_get_block_default_classname( $block_name ) { /** * Add the generated classnames to the output. * - * @param array $attributes Comprehensive list of attributes to be applied. - * @param array $block_attributes Block attributes. + * @access private + * * @param WP_Block_Type $block_type Block Type. + * @param array $block_attributes Block attributes. * * @return array Block CSS classes and inline styles. */ -function wp_apply_generated_classname_support( $attributes, $block_attributes, $block_type ) { +function wp_apply_generated_classname_support( $block_type, $block_attributes ) { $has_generated_classname_support = true; + $attributes = array(); if ( property_exists( $block_type, 'supports' ) ) { $has_generated_classname_support = wp_array_get( $block_type->supports, array( 'className' ), true ); } @@ -49,9 +53,17 @@ function wp_apply_generated_classname_support( $attributes, $block_attributes, $ $block_classname = wp_get_block_default_classname( $block_type->name ); if ( $block_classname ) { - $attributes['css_classes'][] = $block_classname; + $attributes['class'] = $block_classname; } } return $attributes; } + +// Register the block support. +WP_Block_Supports::get_instance()->register( + 'generated-classname', + array( + 'apply' => 'wp_apply_generated_classname_support', + ) +); diff --git a/wp-includes/block-supports/index.php b/wp-includes/block-supports/index.php deleted file mode 100644 index e66807c5b1..0000000000 --- a/wp-includes/block-supports/index.php +++ /dev/null @@ -1,137 +0,0 @@ -get_all_registered(); - // Ideally we need a hook to extend the block registration - // instead of mutating the block type. - foreach ( $registered_block_types as $block_type ) { - wp_register_alignment_support( $block_type ); - wp_register_colors_support( $block_type ); - wp_register_typography_support( $block_type ); - wp_register_custom_classname_support( $block_type ); - } -} - -add_action( 'init', 'wp_register_block_supports', 21 ); - -/** - * Filters the frontend output of blocks and apply the block support flags transformations. - * - * @param string $block_content rendered block content. - * @param array $block block object. - * @return string filtered block content. - */ -function wp_apply_block_supports( $block_content, $block ) { - if ( ! isset( $block['attrs'] ) ) { - return $block_content; - } - - $block_type = WP_Block_Type_Registry::get_instance()->get_registered( $block['blockName'] ); - // If no render_callback, assume styles have been previously handled. - if ( ! $block_type || ! $block_type->render_callback ) { - return $block_content; - } - - $attributes = array(); - $attributes = wp_apply_generated_classname_support( $attributes, $block['attrs'], $block_type ); - $attributes = wp_apply_colors_support( $attributes, $block['attrs'], $block_type ); - $attributes = wp_apply_typography_support( $attributes, $block['attrs'], $block_type ); - $attributes = wp_apply_alignment_support( $attributes, $block['attrs'], $block_type ); - $attributes = wp_apply_custom_classname_support( $attributes, $block['attrs'], $block_type ); - - if ( ! count( $attributes ) ) { - return $block_content; - } - - $dom = new DOMDocument( '1.0', 'utf-8' ); - - // Suppress DOMDocument::loadHTML warnings from polluting the front-end. - $previous = libxml_use_internal_errors( true ); - - // We need to wrap the block in order to handle UTF-8 properly. - $wrapped_block_html = - '' - . $block_content - . ''; - - $success = $dom->loadHTML( $wrapped_block_html, LIBXML_HTML_NODEFDTD | LIBXML_COMPACT ); - - // Clear errors and reset the use_errors setting. - libxml_clear_errors(); - libxml_use_internal_errors( $previous ); - - if ( ! $success ) { - return $block_content; - } - - // Structure is like ``, so body is the `lastChild` of our document. - $body_element = $dom->documentElement->lastChild; // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase - - $xpath = new DOMXPath( $dom ); - $block_root = $xpath->query( './*', $body_element )[0]; - - // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase - if ( empty( $block_root ) ) { - return $block_content; - } - - // Merge and dedupe new and existing classes and styles. - $current_classes = explode( ' ', trim( $block_root->getAttribute( 'class' ) ) ); - $classes_to_add = array_key_exists( 'css_classes', $attributes ) ? $attributes['css_classes'] : array(); - $new_classes = array_unique( array_filter( array_merge( $current_classes, $classes_to_add ) ) ); - - $current_styles = preg_split( '/\s*;\s*/', trim( $block_root->getAttribute( 'style' ) ) ); - $styles_to_add = array_key_exists( 'inline_styles', $attributes ) ? $attributes['inline_styles'] : array(); - $new_styles = array_unique( array_map( 'wp_normalize_css_rule', array_filter( array_merge( $current_styles, $styles_to_add ) ) ) ); - - // Apply new styles and classes. - if ( ! empty( $new_classes ) ) { - // `DOMElement::setAttribute` handles attribute value escaping. - $block_root->setAttribute( 'class', implode( ' ', $new_classes ) ); - } - - if ( ! empty( $new_styles ) ) { - // `DOMElement::setAttribute` handles attribute value escaping. - $block_root->setAttribute( 'style', implode( '; ', $new_styles ) . ';' ); - } - - // Avoid using `$dom->saveHtml( $node )` because the node results may not produce consistent - // whitespace for PHP < 7.3. Saving the root HTML `$dom->saveHtml()` prevents this behavior. - $full_html = $dom->saveHtml(); - - // Find the open/close tags. The open tag needs to be adjusted so we get inside the tag - // and not the tag itself. - $start = strpos( $full_html, '', 0 ) + strlen( '' ); - $end = strpos( $full_html, '', $start ); - return trim( substr( $full_html, $start, $end - $start ) ); -} -add_filter( 'render_block', 'wp_apply_block_supports', 10, 2 ); - -/** - * Normalizes spacing in a string representing a CSS rule - * - * @example - * 'color :red;' becomes 'color:red' - * - * @param string $css_rule_string CSS rule. - * @return string Normalized CSS rule. - */ -function wp_normalize_css_rule( $css_rule_string ) { - return trim( implode( ': ', preg_split( '/\s*:\s*/', $css_rule_string, 2 ) ), ';' ); -} diff --git a/wp-includes/block-supports/typography.php b/wp-includes/block-supports/typography.php index d2dd4e74f7..3fbfd2f068 100644 --- a/wp-includes/block-supports/typography.php +++ b/wp-includes/block-supports/typography.php @@ -8,6 +8,8 @@ /** * Registers the style and typography block attributes for block types that support it. * + * @access private + * * @param WP_Block_Type $block_type Block Type. */ function wp_register_typography_support( $block_type ) { @@ -16,11 +18,6 @@ function wp_register_typography_support( $block_type ) { $has_font_size_support = wp_array_get( $block_type->supports, array( '__experimentalFontSize' ), false ); } - $has_font_style_support = false; - if ( property_exists( $block_type, 'supports' ) ) { - $has_font_style_support = wp_array_get( $block_type->supports, array( '__experimentalFontStyle' ), false ); - } - $has_line_height_support = false; if ( property_exists( $block_type, 'supports' ) ) { $has_line_height_support = wp_array_get( $block_type->supports, array( '__experimentalLineHeight' ), false ); @@ -30,7 +27,7 @@ function wp_register_typography_support( $block_type ) { $block_type->attributes = array(); } - if ( ( $has_font_size_support || $has_font_style_support || $has_line_height_support ) && ! array_key_exists( 'style', $block_type->attributes ) ) { + if ( ( $has_font_size_support || $has_line_height_support ) && ! array_key_exists( 'style', $block_type->attributes ) ) { $block_type->attributes['style'] = array( 'type' => 'object', ); @@ -47,26 +44,24 @@ function wp_register_typography_support( $block_type ) { * Add CSS classes and inline styles for font sizes to the incoming attributes array. * This will be applied to the block markup in the front-end. * - * @param array $attributes Comprehensive list of attributes to be applied. - * @param array $block_attributes Block attributes. + * @access private + * * @param WP_Block_Type $block_type Block type. + * @param array $block_attributes Block attributes. * * @return array Font size CSS classes and inline styles. */ -function wp_apply_typography_support( $attributes, $block_attributes, $block_type ) { +function wp_apply_typography_support( $block_type, $block_attributes ) { $has_font_size_support = false; + $classes = array(); + $styles = array(); if ( property_exists( $block_type, 'supports' ) ) { - $has_font_size_support = wp_array_get( $block_type->supports, array( '__experimentalFontSize' ), false ); - } - - $has_font_style_support = false; - if ( property_exists( $block_type, 'supports' ) ) { - $has_font_style_support = wp_array_get( $block_type->supports, array( '__experimentalFontStyle' ), false ); + $has_font_size_support = wp_array_get( $block_type->supports, array( 'fontSize' ), false ); } $has_line_height_support = false; if ( property_exists( $block_type, 'supports' ) ) { - $has_line_height_support = wp_array_get( $block_type->supports, array( '__experimentalLineHeight' ), false ); + $has_line_height_support = wp_array_get( $block_type->supports, array( 'lineHeight' ), false ); } // Font Size. @@ -76,35 +71,9 @@ function wp_apply_typography_support( $attributes, $block_attributes, $block_typ // Apply required class or style. if ( $has_named_font_size ) { - $attributes['css_classes'][] = sprintf( 'has-%s-font-size', $block_attributes['fontSize'] ); + $classes[] = sprintf( 'has-%s-font-size', $block_attributes['fontSize'] ); } elseif ( $has_custom_font_size ) { - $attributes['inline_styles'][] = sprintf( 'font-size: %spx;', $block_attributes['style']['typography']['fontSize'] ); - } - } - - // Font Styles e.g. bold, italic, underline & strikethrough. - if ( $has_font_style_support ) { - $has_font_styles = isset( $block_attributes['style']['typography']['fontStyles'] ); - - // Apply required CSS classes. - if ( $has_font_styles ) { - $attributes['css_classes'][] = 'has-font-style'; - - // CSS class names chosen to be more explicit than generic `has--font-style`. - $font_style_classes = array( - 'bold' => 'has-bold-font-weight', - 'italic' => 'has-italic-font-style', - 'underline' => 'has-underline-text-decoration', - 'strikethrough' => 'has-strikethrough-text-decoration', - ); - - $style_selections = $block_attributes['style']['typography']['fontStyles']; - - foreach ( $style_selections as $style => $turned_on ) { - if ( $turned_on ) { - $attributes['css_classes'][] = $font_style_classes[ $style ]; - } - } + $styles[] = sprintf( 'font-size: %spx;', $block_attributes['style']['typography']['fontSize'] ); } } @@ -113,9 +82,25 @@ function wp_apply_typography_support( $attributes, $block_attributes, $block_typ $has_line_height = isset( $block_attributes['style']['typography']['lineHeight'] ); // Add the style (no classes for line-height). if ( $has_line_height ) { - $attributes['inline_styles'][] = sprintf( 'line-height: %s;', $block_attributes['style']['typography']['lineHeight'] ); + $styles[] = sprintf( 'line-height: %s;', $block_attributes['style']['typography']['lineHeight'] ); } } + $attributes = array(); + if ( ! empty( $classes ) ) { + $attributes['class'] = implode( ' ', $classes ); + } + if ( ! empty( $styles ) ) { + $attributes['style'] = implode( ' ', $styles ); + } + return $attributes; } + +WP_Block_Supports::get_instance()->register( + 'typography', + array( + 'register_attribute' => 'wp_register_typography_support', + 'apply' => 'wp_apply_typography_support', + ) +); diff --git a/wp-includes/blocks.php b/wp-includes/blocks.php index f6e023c67f..206e7d3991 100644 --- a/wp-includes/blocks.php +++ b/wp-includes/blocks.php @@ -647,19 +647,33 @@ function _excerpt_render_inner_columns_blocks( $columns, $allowed_blocks ) { return $output; } +/** + * Block currently being parsed. + * + * @type array +*/ +global $current_parsed_block; + +$current_parsed_block = array( + 'blockName' => null, + 'attributes' => null, +); + /** * Renders a single block into a HTML string. * * @since 5.0.0 * - * @global WP_Post $post The post to edit. - * @global WP_Query $wp_query WordPress Query object. + * @global array $current_parsed_block Block currently being parsed. + * @global WP_Post $post The post to edit. + * @global WP_Query $wp_query WordPress Query object. + * @global WP_Query $wp_query WordPress Query object. * * @param array $parsed_block A single parsed block object. * @return string String of rendered HTML. */ function render_block( $parsed_block ) { - global $post, $wp_query; + global $post, $wp_query, $current_parsed_block; /** * Allows render_block() to be short-circuited, by returning a non-null value. @@ -674,6 +688,8 @@ function render_block( $parsed_block ) { return $pre_render; } + $current_parsed_block = $parsed_block; + $source_block = $parsed_block; /** diff --git a/wp-includes/blocks/archives.php b/wp-includes/blocks/archives.php index 3b7b2d1d39..04e7e4957c 100644 --- a/wp-includes/blocks/archives.php +++ b/wp-includes/blocks/archives.php @@ -97,9 +97,11 @@ function render_block_core_archives( $attributes ) { ); } + $wrapper_attributes = get_block_wrapper_attributes( array( 'class' => $classnames ) ); + return sprintf( - '', - $classnames, + '', + $wrapper_attributes, $archives ); } diff --git a/wp-includes/blocks/archives/block.json b/wp-includes/blocks/archives/block.json index 14a9451e1b..7be2a90e41 100644 --- a/wp-includes/blocks/archives/block.json +++ b/wp-includes/blocks/archives/block.json @@ -1,4 +1,5 @@ { + "apiVersion": 2, "name": "core/archives", "category": "widgets", "attributes": { diff --git a/wp-includes/blocks/audio/block.json b/wp-includes/blocks/audio/block.json index 30b165e51c..a077767932 100644 --- a/wp-includes/blocks/audio/block.json +++ b/wp-includes/blocks/audio/block.json @@ -1,4 +1,5 @@ { + "apiVersion": 2, "name": "core/audio", "category": "media", "attributes": { @@ -37,7 +38,6 @@ }, "supports": { "anchor": true, - "align": true, - "lightBlockWrapper": true + "align": true } } diff --git a/wp-includes/blocks/block/block.json b/wp-includes/blocks/block/block.json index c6a21217ae..97afcca2e5 100644 --- a/wp-includes/blocks/block/block.json +++ b/wp-includes/blocks/block/block.json @@ -1,4 +1,5 @@ { + "apiVersion": 2, "name": "core/block", "category": "reusable", "attributes": { diff --git a/wp-includes/blocks/button/block.json b/wp-includes/blocks/button/block.json index 4e44f9d876..b0cff94836 100644 --- a/wp-includes/blocks/button/block.json +++ b/wp-includes/blocks/button/block.json @@ -1,4 +1,5 @@ { + "apiVersion": 2, "name": "core/button", "category": "design", "parent": [ @@ -58,6 +59,6 @@ "align": true, "alignWide": false, "reusable": false, - "lightBlockWrapper": true + "__experimentalSelector": ".wp-block-button > a" } } diff --git a/wp-includes/blocks/buttons/block.json b/wp-includes/blocks/buttons/block.json index ce5c22427a..a1e4c33c2e 100644 --- a/wp-includes/blocks/buttons/block.json +++ b/wp-includes/blocks/buttons/block.json @@ -1,10 +1,10 @@ { + "apiVersion": 2, "name": "core/buttons", "category": "design", "supports": { "anchor": true, "align": true, - "alignWide": false, - "lightBlockWrapper": true + "alignWide": false } } diff --git a/wp-includes/blocks/calendar.php b/wp-includes/blocks/calendar.php index 41968b4099..6e0c52886a 100644 --- a/wp-includes/blocks/calendar.php +++ b/wp-includes/blocks/calendar.php @@ -31,8 +31,10 @@ function render_block_core_calendar( $attributes ) { } } - $output = sprintf( - '
%1$s
', + $wrapper_attributes = get_block_wrapper_attributes(); + $output = sprintf( + '
%2$s
', + $wrapper_attributes, get_calendar( true, false ) ); diff --git a/wp-includes/blocks/calendar/block.json b/wp-includes/blocks/calendar/block.json index 698140a333..eb585dec70 100644 --- a/wp-includes/blocks/calendar/block.json +++ b/wp-includes/blocks/calendar/block.json @@ -1,4 +1,5 @@ { + "apiVersion": 2, "name": "core/calendar", "category": "widgets", "attributes": { diff --git a/wp-includes/blocks/categories.php b/wp-includes/blocks/categories.php index 7a42daccc5..c820b7bd76 100644 --- a/wp-includes/blocks/categories.php +++ b/wp-includes/blocks/categories.php @@ -28,7 +28,7 @@ function render_block_core_categories( $attributes ) { $id = 'wp-block-categories-' . $block_id; $args['id'] = $id; $args['show_option_none'] = __( 'Select Category' ); - $wrapper_markup = '
%2$s
'; + $wrapper_markup = '
%2$s
'; $items_markup = wp_dropdown_categories( $args ); $type = 'dropdown'; @@ -42,16 +42,16 @@ function render_block_core_categories( $attributes ) { ); } } else { - $wrapper_markup = ''; + $wrapper_markup = ''; $items_markup = wp_list_categories( $args ); $type = 'list'; } - $class = "wp-block-categories-{$type}"; + $wrapper_attributes = get_block_wrapper_attributes( array( 'class' => "wp-block-categories-{$type}" ) ); return sprintf( $wrapper_markup, - esc_attr( $class ), + $wrapper_attributes, $items_markup ); } diff --git a/wp-includes/blocks/categories/block.json b/wp-includes/blocks/categories/block.json index d4fee5e064..be8e9d1c21 100644 --- a/wp-includes/blocks/categories/block.json +++ b/wp-includes/blocks/categories/block.json @@ -1,4 +1,5 @@ { + "apiVersion": 2, "name": "core/categories", "category": "widgets", "attributes": { diff --git a/wp-includes/blocks/classic/block.json b/wp-includes/blocks/classic/block.json index 63d2c9f37e..0ee6ba171b 100644 --- a/wp-includes/blocks/classic/block.json +++ b/wp-includes/blocks/classic/block.json @@ -1,4 +1,5 @@ { + "apiVersion": 2, "name": "core/freeform", "category": "text", "attributes": { diff --git a/wp-includes/blocks/code/block.json b/wp-includes/blocks/code/block.json index 9b3916f146..d9f37ed061 100644 --- a/wp-includes/blocks/code/block.json +++ b/wp-includes/blocks/code/block.json @@ -1,4 +1,5 @@ { + "apiVersion": 2, "name": "core/code", "category": "text", "attributes": { @@ -9,7 +10,6 @@ } }, "supports": { - "anchor": true, - "lightBlockWrapper": true + "anchor": true } } diff --git a/wp-includes/blocks/column/block.json b/wp-includes/blocks/column/block.json index bc8d16aa96..02c2084dab 100644 --- a/wp-includes/blocks/column/block.json +++ b/wp-includes/blocks/column/block.json @@ -1,4 +1,5 @@ { + "apiVersion": 2, "name": "core/column", "category": "text", "parent": [ @@ -9,15 +10,15 @@ "type": "string" }, "width": { - "type": "number", - "min": 0, - "max": 100 + "type": "string" + }, + "templateLock": { + "type": "string" } }, "supports": { "anchor": true, "reusable": false, - "html": false, - "lightBlockWrapper": true + "html": false } } diff --git a/wp-includes/blocks/columns/block.json b/wp-includes/blocks/columns/block.json index 0a84a4a35d..0cc93b718a 100644 --- a/wp-includes/blocks/columns/block.json +++ b/wp-includes/blocks/columns/block.json @@ -1,4 +1,5 @@ { + "apiVersion": 2, "name": "core/columns", "category": "design", "attributes": { @@ -13,10 +14,9 @@ "full" ], "html": false, - "lightBlockWrapper": true, - "__experimentalColor": { + "color": { "gradients": true, - "linkColor": true + "link": true } } } diff --git a/wp-includes/blocks/embed/block.json b/wp-includes/blocks/embed/block.json index 34d8838770..3f6531af57 100644 --- a/wp-includes/blocks/embed/block.json +++ b/wp-includes/blocks/embed/block.json @@ -1,4 +1,5 @@ { + "apiVersion": 2, "name": "core/embed", "category": "embed", "attributes": { diff --git a/wp-includes/blocks/file/block.json b/wp-includes/blocks/file/block.json index c19ba5f714..230942f76a 100644 --- a/wp-includes/blocks/file/block.json +++ b/wp-includes/blocks/file/block.json @@ -1,4 +1,5 @@ { + "apiVersion": 2, "name": "core/file", "category": "media", "attributes": { diff --git a/wp-includes/blocks/group/block.json b/wp-includes/blocks/group/block.json index a2d0cc083a..6014985192 100644 --- a/wp-includes/blocks/group/block.json +++ b/wp-includes/blocks/group/block.json @@ -1,10 +1,14 @@ { + "apiVersion": 2, "name": "core/group", "category": "design", "attributes": { "tagName": { "type": "string", "default": "div" + }, + "templateLock": { + "type": "string" } }, "supports": { @@ -14,11 +18,12 @@ ], "anchor": true, "html": false, - "lightBlockWrapper": true, - "__experimentalColor": { + "color": { "gradients": true, - "linkColor": true + "link": true }, - "__experimentalPadding": true + "spacing": { + "padding": true + } } } diff --git a/wp-includes/blocks/heading/block.json b/wp-includes/blocks/heading/block.json index fd03a4487e..e1dd4b78db 100644 --- a/wp-includes/blocks/heading/block.json +++ b/wp-includes/blocks/heading/block.json @@ -1,4 +1,5 @@ { + "apiVersion": 2, "name": "core/heading", "category": "text", "attributes": { @@ -20,14 +21,14 @@ } }, "supports": { + "align": [ "wide", "full" ], "anchor": true, "className": false, - "lightBlockWrapper": true, - "__experimentalColor": { - "linkColor": true + "color": { + "link": true }, - "__experimentalFontSize": true, - "__experimentalLineHeight": true, + "fontSize": true, + "lineHeight": true, "__experimentalSelector": { "core/heading/h1": "h1", "core/heading/h2": "h2", diff --git a/wp-includes/blocks/html/block.json b/wp-includes/blocks/html/block.json index b9624b4b3e..13aa611346 100644 --- a/wp-includes/blocks/html/block.json +++ b/wp-includes/blocks/html/block.json @@ -1,4 +1,5 @@ { + "apiVersion": 2, "name": "core/html", "category": "widgets", "attributes": { diff --git a/wp-includes/blocks/image/block.json b/wp-includes/blocks/image/block.json index 798210cbd5..ec80dc4c9e 100644 --- a/wp-includes/blocks/image/block.json +++ b/wp-includes/blocks/image/block.json @@ -1,4 +1,5 @@ { + "apiVersion": 2, "name": "core/image", "category": "media", "attributes": { @@ -70,7 +71,6 @@ } }, "supports": { - "anchor": true, - "lightBlockWrapper": true + "anchor": true } } diff --git a/wp-includes/blocks/latest-comments.php b/wp-includes/blocks/latest-comments.php index 448677066c..555a125c4a 100644 --- a/wp-includes/blocks/latest-comments.php +++ b/wp-includes/blocks/latest-comments.php @@ -129,15 +129,15 @@ function render_block_core_latest_comments( $attributes = array() ) { if ( empty( $comments ) ) { $classnames[] = 'no-comments'; } - $class = esc_attr( implode( ' ', $classnames ) ); + $wrapper_attributes = get_block_wrapper_attributes( array( 'class' => implode( ' ', $classnames ) ) ); return ! empty( $comments ) ? sprintf( - '
    %2$s
', - $class, + '
    %2$s
', + $wrapper_attributes, $list_items_markup ) : sprintf( - '
%2$s
', - $class, + '
%2$s
', + $wrapper_attributes, __( 'No comments to show.' ) ); } diff --git a/wp-includes/blocks/latest-comments/block.json b/wp-includes/blocks/latest-comments/block.json index dd208ee726..8ad73394cd 100644 --- a/wp-includes/blocks/latest-comments/block.json +++ b/wp-includes/blocks/latest-comments/block.json @@ -1,4 +1,5 @@ { + "apiVersion": 2, "name": "core/latest-comments", "category": "widgets", "attributes": { diff --git a/wp-includes/blocks/latest-posts.php b/wp-includes/blocks/latest-posts.php index 8486b05b6b..a43646edd7 100644 --- a/wp-includes/blocks/latest-posts.php +++ b/wp-includes/blocks/latest-posts.php @@ -171,9 +171,11 @@ function render_block_core_latest_posts( $attributes ) { $class .= ' has-author'; } + $wrapper_attributes = get_block_wrapper_attributes( array( 'class' => $class ) ); + return sprintf( - '', - esc_attr( $class ), + '', + $wrapper_attributes, $list_items_markup ); } diff --git a/wp-includes/blocks/list/block.json b/wp-includes/blocks/list/block.json index 3fa10c51a1..848c017842 100644 --- a/wp-includes/blocks/list/block.json +++ b/wp-includes/blocks/list/block.json @@ -1,4 +1,5 @@ { + "apiVersion": 2, "name": "core/list", "category": "text", "attributes": { @@ -27,10 +28,9 @@ "supports": { "anchor": true, "className": false, - "__experimentalColor": { + "color": { "gradients": true }, - "__unstablePasteTextInline": true, - "lightBlockWrapper": true + "__unstablePasteTextInline": true } } diff --git a/wp-includes/blocks/media-text/block.json b/wp-includes/blocks/media-text/block.json index 9911c4d35e..e88b1b1d1b 100644 --- a/wp-includes/blocks/media-text/block.json +++ b/wp-includes/blocks/media-text/block.json @@ -1,4 +1,5 @@ { + "apiVersion": 2, "name": "core/media-text", "category": "media", "attributes": { @@ -84,10 +85,9 @@ "anchor": true, "align": [ "wide", "full" ], "html": false, - "lightBlockWrapper": true, - "__experimentalColor": { + "color": { "gradients": true, - "linkColor": true + "link": true } } } diff --git a/wp-includes/blocks/missing/block.json b/wp-includes/blocks/missing/block.json index 57a246966d..f60bb8c9da 100644 --- a/wp-includes/blocks/missing/block.json +++ b/wp-includes/blocks/missing/block.json @@ -1,4 +1,5 @@ { + "apiVersion": 2, "name": "core/missing", "category": "text", "attributes": { diff --git a/wp-includes/blocks/more/block.json b/wp-includes/blocks/more/block.json index 7697b06ac4..4279443517 100644 --- a/wp-includes/blocks/more/block.json +++ b/wp-includes/blocks/more/block.json @@ -1,4 +1,5 @@ { + "apiVersion": 2, "name": "core/more", "category": "design", "attributes": { diff --git a/wp-includes/blocks/nextpage/block.json b/wp-includes/blocks/nextpage/block.json index ed9293b2a9..2236627dbb 100644 --- a/wp-includes/blocks/nextpage/block.json +++ b/wp-includes/blocks/nextpage/block.json @@ -1,4 +1,5 @@ { + "apiVersion": 2, "name": "core/nextpage", "category": "design", "parent": [ "core/post-content" ], diff --git a/wp-includes/blocks/paragraph/block.json b/wp-includes/blocks/paragraph/block.json index 91d8ad357f..44118c165c 100644 --- a/wp-includes/blocks/paragraph/block.json +++ b/wp-includes/blocks/paragraph/block.json @@ -1,4 +1,5 @@ { + "apiVersion": 2, "name": "core/paragraph", "category": "text", "attributes": { @@ -29,12 +30,11 @@ "supports": { "anchor": true, "className": false, - "lightBlockWrapper": true, - "__experimentalColor": { - "linkColor": true + "color": { + "link": true }, - "__experimentalFontSize": true, - "__experimentalLineHeight": true, + "fontSize": true, + "lineHeight": true, "__experimentalSelector": "p", "__unstablePasteTextInline": true } diff --git a/wp-includes/blocks/preformatted/block.json b/wp-includes/blocks/preformatted/block.json index 4eb99004f7..d235d33ccf 100644 --- a/wp-includes/blocks/preformatted/block.json +++ b/wp-includes/blocks/preformatted/block.json @@ -1,4 +1,5 @@ { + "apiVersion": 2, "name": "core/preformatted", "category": "text", "attributes": { @@ -11,7 +12,6 @@ } }, "supports": { - "anchor": true, - "lightBlockWrapper": true + "anchor": true } } diff --git a/wp-includes/blocks/pullquote/block.json b/wp-includes/blocks/pullquote/block.json index 7591b123f8..fa49196bec 100644 --- a/wp-includes/blocks/pullquote/block.json +++ b/wp-includes/blocks/pullquote/block.json @@ -1,4 +1,5 @@ { + "apiVersion": 2, "name": "core/pullquote", "category": "text", "attributes": { diff --git a/wp-includes/blocks/quote/block.json b/wp-includes/blocks/quote/block.json index a03b93b0db..9de3a338c9 100644 --- a/wp-includes/blocks/quote/block.json +++ b/wp-includes/blocks/quote/block.json @@ -1,4 +1,5 @@ { + "apiVersion": 2, "name": "core/quote", "category": "text", "attributes": { @@ -20,7 +21,6 @@ } }, "supports": { - "anchor": true, - "lightBlockWrapper": true + "anchor": true } } diff --git a/wp-includes/blocks/rss.php b/wp-includes/blocks/rss.php index a3dbd0d431..b0a31bf2bb 100644 --- a/wp-includes/blocks/rss.php +++ b/wp-includes/blocks/rss.php @@ -87,8 +87,9 @@ function render_block_core_rss( $attributes ) { if ( isset( $attributes['columns'] ) && 'grid' === $attributes['blockLayout'] ) { $classnames[] = 'columns-' . $attributes['columns']; } + $wrapper_attributes = get_block_wrapper_attributes( array( 'class' => implode( ' ', $classnames ) ) ); - return sprintf( '', esc_attr( implode( ' ', $classnames ) ), $list_items ); + return sprintf( '', $wrapper_attributes, $list_items ); } /** diff --git a/wp-includes/blocks/rss/block.json b/wp-includes/blocks/rss/block.json index 88ad78c596..49555c41cb 100644 --- a/wp-includes/blocks/rss/block.json +++ b/wp-includes/blocks/rss/block.json @@ -1,4 +1,5 @@ { + "apiVersion": 2, "name": "core/rss", "category": "widgets", "attributes": { diff --git a/wp-includes/blocks/search.php b/wp-includes/blocks/search.php index 08c8652839..36607188ff 100644 --- a/wp-includes/blocks/search.php +++ b/wp-includes/blocks/search.php @@ -65,20 +65,22 @@ function render_block_core_search( $attributes ) { if ( $show_button ) { $button_internal_markup = ''; + $button_classes = ''; if ( ! $use_icon_button ) { if ( ! empty( $attributes['buttonText'] ) ) { $button_internal_markup = $attributes['buttonText']; } } else { + $button_classes .= 'has-icon'; $button_internal_markup = - ' + ' '; } $button_markup = sprintf( - '', + '', $button_internal_markup ); } @@ -89,16 +91,17 @@ function render_block_core_search( $attributes ) { } } - $field_markup = sprintf( + $field_markup = sprintf( '
%s
', $width_styles, $input_markup . $button_markup ); + $wrapper_attributes = get_block_wrapper_attributes( array( 'class' => $classnames ) ); return sprintf( - '', + '
%s
', esc_url( home_url( '/' ) ), - $classnames, + $wrapper_attributes, $label_markup . $field_markup ); } diff --git a/wp-includes/blocks/search/block.json b/wp-includes/blocks/search/block.json index 92de1d6f02..d57ba7fd9c 100644 --- a/wp-includes/blocks/search/block.json +++ b/wp-includes/blocks/search/block.json @@ -1,4 +1,5 @@ { + "apiVersion": 2, "name": "core/search", "category": "widgets", "attributes": { @@ -6,7 +7,7 @@ "type": "string" }, "showLabel": { - "type": "bool", + "type": "boolean", "default": true }, "placeholder": { @@ -27,13 +28,12 @@ "default": "button-outside" }, "buttonUseIcon": { - "type": "bool", + "type": "boolean", "default": false } }, "supports": { "align": [ "left", "center", "right" ], - "html": false, - "lightBlockWrapper": true + "html": false } } diff --git a/wp-includes/blocks/separator/block.json b/wp-includes/blocks/separator/block.json index 52a05abf93..3cf6ae1b50 100644 --- a/wp-includes/blocks/separator/block.json +++ b/wp-includes/blocks/separator/block.json @@ -1,4 +1,5 @@ { + "apiVersion": 2, "name": "core/separator", "category": "design", "attributes": { @@ -10,6 +11,7 @@ } }, "supports": { - "anchor": true + "anchor": true, + "align": ["center","wide","full"] } } diff --git a/wp-includes/blocks/shortcode/block.json b/wp-includes/blocks/shortcode/block.json index 31a2d34896..8c41976373 100644 --- a/wp-includes/blocks/shortcode/block.json +++ b/wp-includes/blocks/shortcode/block.json @@ -1,4 +1,5 @@ { + "apiVersion": 2, "name": "core/shortcode", "category": "widgets", "attributes": { diff --git a/wp-includes/blocks/social-link.php b/wp-includes/blocks/social-link.php index d5168e95c1..f2320da312 100644 --- a/wp-includes/blocks/social-link.php +++ b/wp-includes/blocks/social-link.php @@ -32,8 +32,10 @@ function render_block_core_social_link( $attributes, $content, $block ) { $attribute = 'rel="noopener nofollow" target="_blank"'; } - $icon = block_core_social_link_get_icon( $service ); - return ''; + $icon = block_core_social_link_get_icon( $service ); + $wrapper_attributes = get_block_wrapper_attributes( array( 'class' => 'wp-social-link wp-social-link-' . $service . $class_name ) ); + + return '
  • ' . $icon . '
  • '; } /** diff --git a/wp-includes/blocks/social-link/block.json b/wp-includes/blocks/social-link/block.json index 5539298ec3..0b9072548b 100644 --- a/wp-includes/blocks/social-link/block.json +++ b/wp-includes/blocks/social-link/block.json @@ -1,4 +1,5 @@ { + "apiVersion": 2, "name": "core/social-link", "category": "widgets", "parent": [ @@ -20,7 +21,6 @@ ], "supports": { "reusable": false, - "html": false, - "lightBlockWrapper": true + "html": false } } diff --git a/wp-includes/blocks/social-links/block.json b/wp-includes/blocks/social-links/block.json index 46a31ce065..d0ed132031 100644 --- a/wp-includes/blocks/social-links/block.json +++ b/wp-includes/blocks/social-links/block.json @@ -1,4 +1,5 @@ { + "apiVersion": 2, "name": "core/social-links", "category": "widgets", "attributes": { @@ -16,7 +17,6 @@ "center", "right" ], - "lightBlockWrapper": true, "anchor": true } } diff --git a/wp-includes/blocks/spacer/block.json b/wp-includes/blocks/spacer/block.json index 7ea6c98944..9882f53dfa 100644 --- a/wp-includes/blocks/spacer/block.json +++ b/wp-includes/blocks/spacer/block.json @@ -1,4 +1,5 @@ { + "apiVersion": 2, "name": "core/spacer", "category": "design", "attributes": { diff --git a/wp-includes/blocks/subhead/block.json b/wp-includes/blocks/subhead/block.json index b79fdf6a8f..6fe2bf287f 100644 --- a/wp-includes/blocks/subhead/block.json +++ b/wp-includes/blocks/subhead/block.json @@ -1,4 +1,5 @@ { + "apiVersion": 2, "name": "core/subhead", "category": "text", "attributes": { diff --git a/wp-includes/blocks/table/block.json b/wp-includes/blocks/table/block.json index 9b031f56e5..3e94d2abf5 100644 --- a/wp-includes/blocks/table/block.json +++ b/wp-includes/blocks/table/block.json @@ -1,4 +1,5 @@ { + "apiVersion": 2, "name": "core/table", "category": "text", "attributes": { @@ -123,6 +124,7 @@ }, "supports": { "anchor": true, - "align": true + "align": true, + "__experimentalSelector": ".wp-block-button > table" } } diff --git a/wp-includes/blocks/tag-cloud.php b/wp-includes/blocks/tag-cloud.php index f417b786c4..cdebc92271 100644 --- a/wp-includes/blocks/tag-cloud.php +++ b/wp-includes/blocks/tag-cloud.php @@ -31,8 +31,11 @@ function render_block_core_tag_cloud( $attributes ) { ); } + $wrapper_attributes = get_block_wrapper_attributes(); + return sprintf( - '

    %1$s

    ', + '

    %2$s

    ', + $wrapper_attributes, $tag_cloud ); } diff --git a/wp-includes/blocks/tag-cloud/block.json b/wp-includes/blocks/tag-cloud/block.json index 7116bb43dd..3ec21ed276 100644 --- a/wp-includes/blocks/tag-cloud/block.json +++ b/wp-includes/blocks/tag-cloud/block.json @@ -1,4 +1,5 @@ { + "apiVersion": 2, "name": "core/tag-cloud", "category": "widgets", "attributes": { diff --git a/wp-includes/blocks/text-columns/block.json b/wp-includes/blocks/text-columns/block.json index 32f1651d40..5cfe5e4712 100644 --- a/wp-includes/blocks/text-columns/block.json +++ b/wp-includes/blocks/text-columns/block.json @@ -1,4 +1,5 @@ { + "apiVersion": 2, "name": "core/text-columns", "icon": "columns", "category": "design", diff --git a/wp-includes/blocks/verse/block.json b/wp-includes/blocks/verse/block.json index 57084b270b..eec9404d7a 100644 --- a/wp-includes/blocks/verse/block.json +++ b/wp-includes/blocks/verse/block.json @@ -1,4 +1,5 @@ { + "apiVersion": 2, "name": "core/verse", "category": "text", "attributes": { @@ -14,7 +15,6 @@ } }, "supports": { - "anchor": true, - "lightBlockWrapper": true + "anchor": true } } diff --git a/wp-includes/blocks/video/block.json b/wp-includes/blocks/video/block.json index f35e400362..e2b7eab175 100644 --- a/wp-includes/blocks/video/block.json +++ b/wp-includes/blocks/video/block.json @@ -1,4 +1,5 @@ { + "apiVersion": 2, "name": "core/video", "category": "media", "attributes": { @@ -59,11 +60,17 @@ "source": "attribute", "selector": "video", "attribute": "playsinline" + }, + "tracks": { + "type": "array", + "items": { + "type": "object" + }, + "default": [] } }, "supports": { "anchor": true, - "align": true, - "lightBlockWrapper": true + "align": true } } diff --git a/wp-includes/class-wp-block-supports.php b/wp-includes/class-wp-block-supports.php new file mode 100644 index 0000000000..7bec60b85d --- /dev/null +++ b/wp-includes/class-wp-block-supports.php @@ -0,0 +1,211 @@ +register_attributes(); + } + + /** + * Registers a block support. + * + * @since 5.6.0 + * + * @param string $block_support_name Block support name. + * @param array $block_support_config Array containing the properties of the block support. + */ + public function register( $block_support_name, $block_support_config ) { + $this->block_supports[ $block_support_name ] = array_merge( + $block_support_config, + array( 'name' => $block_support_name ) + ); + } + + + /** + * Generates an array of HTML attributes, such as classes, by applying to + * the given block all of the features that the block supports. + * + * @since 5.6.0 + * + * @param array $parsed_block Block as parsed from content. + * @return array Array of HTML attributes. + */ + public function apply_block_supports( $parsed_block ) { + $block_attributes = $parsed_block['attrs']; + $block_type = WP_Block_Type_Registry::get_instance()->get_registered( + $parsed_block['blockName'] + ); + + // If no render_callback, assume styles have been previously handled. + if ( ! $block_type || empty( $block_type ) ) { + return array(); + } + + $output = array(); + foreach ( $this->block_supports as $name => $block_support_config ) { + if ( ! isset( $block_support_config['apply'] ) ) { + continue; + } + + $new_attributes = call_user_func( + $block_support_config['apply'], + $block_type, + $block_attributes + ); + + if ( ! empty( $new_attributes ) ) { + foreach ( $new_attributes as $attribute_name => $attribute_value ) { + if ( empty( $output[ $attribute_name ] ) ) { + $output[ $attribute_name ] = $attribute_value; + } else { + $output[ $attribute_name ] .= " $attribute_value"; + } + } + } + } + + return $output; + } + + /** + * Registers the block attributes required by the different block supports. + * + * @since 5.6.0 + */ + private function register_attributes() { + $block_registry = WP_Block_Type_Registry::get_instance(); + $registered_block_types = $block_registry->get_all_registered(); + foreach ( $registered_block_types as $block_type ) { + if ( ! property_exists( $block_type, 'supports' ) ) { + continue; + } + if ( ! $block_type->attributes ) { + $block_type->attributes = array(); + } + + foreach ( $this->block_supports as $name => $block_support_config ) { + if ( ! isset( $block_support_config['register_attribute'] ) ) { + continue; + } + + call_user_func( + $block_support_config['register_attribute'], + $block_type + ); + } + } + } +} + +/** + * Generates a string of attributes by applying to the current block being + * rendered all of the features that the block supports. + * + * @since 5.6.0 + * + * @global array $current_parsed_block Block currently being parsed. + * + * @param array $extra_attributes Optional. Extra attributes to render on the block wrapper. + * + * @return string String of HTML classes. + */ +function get_block_wrapper_attributes( $extra_attributes = array() ) { + global $current_parsed_block; + $new_attributes = WP_Block_Supports::get_instance()->apply_block_supports( $current_parsed_block ); + + if ( empty( $new_attributes ) && empty( $extra_attributes ) ) { + return ''; + } + + // This is hardcoded on purpose. + // We only support a fixed list of attributes. + $attributes_to_merge = array( 'style', 'class' ); + $attributes = array(); + foreach ( $attributes_to_merge as $attribute_name ) { + if ( empty( $new_attributes[ $attribute_name ] ) && empty( $extra_attributes[ $attribute_name ] ) ) { + continue; + } + + if ( empty( $new_attributes[ $attribute_name ] ) ) { + $attributes[ $attribute_name ] = $extra_attributes[ $attribute_name ]; + continue; + } + + if ( empty( $extra_attributes[ $attribute_name ] ) ) { + $attributes[ $attribute_name ] = $new_attributes[ $attribute_name ]; + continue; + } + + $attributes[ $attribute_name ] = $extra_attributes[ $attribute_name ] . ' ' . $new_attributes[ $attribute_name ]; + } + + foreach ( $extra_attributes as $attribute_name => $value ) { + if ( ! in_array( $attribute_name, $attributes_to_merge, true ) ) { + $attributes[ $attribute_name ] = $value; + } + } + + if ( empty( $attributes ) ) { + return ''; + } + + $normalized_attributes = array(); + foreach ( $attributes as $key => $value ) { + $normalized_attributes[] = $key . '="' . esc_attr( $value ) . '"'; + } + + return implode( ' ', $normalized_attributes ); +} + diff --git a/wp-includes/class-wp-block.php b/wp-includes/class-wp-block.php index 325ca6e65c..135bad0d33 100644 --- a/wp-includes/class-wp-block.php +++ b/wp-includes/class-wp-block.php @@ -192,7 +192,7 @@ class WP_Block { * @return string Rendered block output. */ public function render( $options = array() ) { - global $post; + global $post, $current_parsed_block; $options = wp_parse_args( $options, array( @@ -206,9 +206,14 @@ class WP_Block { if ( ! $options['dynamic'] || empty( $this->block_type->skip_inner_blocks ) ) { $index = 0; foreach ( $this->inner_content as $chunk ) { - $block_content .= is_string( $chunk ) ? - $chunk : - $this->inner_blocks[ $index++ ]->render(); + if ( is_string( $chunk ) ) { + $block_content .= $chunk; + } else { + $parent_parsed_block = $current_parsed_block; + $current_parsed_block = $this->inner_blocks[ $index ]->parsed_block; + $block_content .= $this->inner_blocks[ $index++ ]->render(); + $current_parsed_block = $parent_parsed_block; + } } } diff --git a/wp-includes/css/dist/block-editor/style-rtl.css b/wp-includes/css/dist/block-editor/style-rtl.css index ae876e195a..c8aba2e7d6 100644 --- a/wp-includes/css/dist/block-editor/style-rtl.css +++ b/wp-includes/css/dist/block-editor/style-rtl.css @@ -111,59 +111,12 @@ 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; } /** * Notices & Block Selected/Hover Styles. */ -.block-editor-block-list__layout .block-editor-block-list__block { - position: relative; - overflow-wrap: break-word; - /** - * Notices - */ - /** - * Block Layout - */ } - .block-editor-block-list__layout .block-editor-block-list__block .components-placeholder .components-with-notices-ui { - margin: -10px 0 12px 0; } - .block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui { - margin: 0 0 12px 0; - 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: 0.5; - transition: opacity 0.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):not(.is-focused) .block-editor-block-list__block, .block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected).is-focused { - opacity: 1; } - .block-editor-block-list__layout .block-editor-block-list__block, .block-editor-block-list__layout .block-list-appender { position: relative; } @@ -204,22 +157,11 @@ top: 1px; bottom: 1px; right: 1px; - left: 1px; } - .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected::after, - .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered::after, - .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 { + 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; - transition: box-shadow 0.2s ease-out; outline: 2px solid transparent; } - @media (prefers-reduced-motion: reduce) { - .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected::after, - .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered::after, - .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 { - transition-duration: 0s; } } .is-dark-theme .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected::after, .is-dark-theme .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered::after, .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted::after, .is-dark-theme @@ -259,64 +201,106 @@ height: 1px; padding: 0; } -/** - * Block styles and alignments - */ -.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 0.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: rgba(255, 255, 255, 0.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 .block-editor-block-list__block { + position: relative; + overflow-wrap: break-word; + /** + * Notices + */ + /** + * Block Layout + */ + /** + * Block styles and alignments + */ } + .block-editor-block-list__layout .block-editor-block-list__block .reusable-block-edit-panel * { + z-index: 1; } + .block-editor-block-list__layout .block-editor-block-list__block .components-placeholder .components-with-notices-ui { + margin: -10px 0 12px 0; } + .block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui { + margin: 0 0 12px 0; + 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: 0.5; + transition: opacity 0.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):not(.is-focused) .block-editor-block-list__block, .block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected).is-focused { + opacity: 1; } + .block-editor-block-list__layout .block-editor-block-list__block.has-active-entity:not(.is-focus-mode) { + opacity: 0.5; + transition: opacity 0.1s linear; } + @media (prefers-reduced-motion: reduce) { + .block-editor-block-list__layout .block-editor-block-list__block.has-active-entity:not(.is-focus-mode) { + transition-duration: 0s; } } + .block-editor-block-list__layout .block-editor-block-list__block.has-active-entity:not(.is-focus-mode).is-active-entity, .block-editor-block-list__layout .block-editor-block-list__block.has-active-entity:not(.is-focus-mode).has-child-selected, + .block-editor-block-list__layout .block-editor-block-list__block.has-active-entity:not(.is-focus-mode):not(.has-child-selected) .block-editor-block-list__block, + .block-editor-block-list__layout .block-editor-block-list__block.has-active-entity:not(.is-focus-mode).is-active-entity .block-editor-block-list__block, + .block-editor-block-list__layout .block-editor-block-list__block.has-active-entity:not(.is-focus-mode) .is-active-entity .block-editor-block-list__block { + opacity: 1; } + .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; } + .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.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: rgba(255, 255, 255, 0.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; @@ -354,7 +338,9 @@ .block-editor-block-list__insertion-point { position: relative; z-index: 6; - margin-top: -28px; } + margin-top: -14px; } + .block-editor-block-list__insertion-point.is-insert-after { + margin-top: 14px; } .block-editor-block-list__insertion-point-indicator { position: absolute; @@ -447,10 +433,12 @@ .block-editor-block-list__block .block-editor-block-list__block-html-textarea { display: block; margin: 0; + padding: 12px; width: 100%; border: none; outline: none; - box-shadow: none; + border-radius: 2px; + box-shadow: inset 0 0 0 1px #1e1e1e; resize: none; overflow: hidden; font-family: Menlo, Consolas, monaco, monospace; @@ -461,7 +449,8 @@ .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; } + box-shadow: inset 0 0 0 1.5px #007cba; + box-shadow: inset 0 0 0 1.5px var(--wp-admin-theme-color); } /** * Block Toolbar when contextual. @@ -478,36 +467,10 @@ .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button { min-width: 24px; width: 24px; } - .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-up-button svg { - transition: ease-in-out transform 0.1s; } - @media (prefers-reduced-motion: reduce) { - .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-up-button svg { - transition-duration: 0s; } } - .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-up-button:focus svg, .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-up-button:hover svg { - transform: translateX(2px); } - .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-down-button svg { - transition: ease-in-out transform 0.1s; } - @media (prefers-reduced-motion: reduce) { - .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-down-button svg { - transition-duration: 0s; } } - .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-down-button:focus svg, .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-down-button:hover svg { - transform: translateX(-2px); } .block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-up-button svg { - margin-top: 2px; - transition: ease-in-out transform 0.1s; } - @media (prefers-reduced-motion: reduce) { - .block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-up-button svg { - transition-duration: 0s; } } - .block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-up-button:focus svg, .block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-up-button:hover svg { - transform: translateY(-2px); } + margin-top: 2px; } .block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-down-button svg { - margin-bottom: 3px; - transition: ease-in-out transform 0.1s; } - @media (prefers-reduced-motion: reduce) { - .block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-down-button svg { - transition-duration: 0s; } } - .block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-down-button:focus svg, .block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-down-button:hover svg { - transform: translateY(2px); } + 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; @@ -565,6 +528,7 @@ .components-popover.block-editor-block-list__block-popover .components-popover__content { margin: 0 !important; min-width: auto; + width: -webkit-max-content; width: max-content; background: none; border: none; @@ -777,100 +741,86 @@ .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 .block-editor-block-mover__move-button-container, -.block-editor-block-mover .components-toolbar { - flex: 1; - flex-direction: row; - border-left: none !important; } - @media (min-width: 600px) { - .block-editor-block-mover .block-editor-block-mover__move-button-container, - .block-editor-block-mover .components-toolbar { - flex-direction: column; } } - -.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container, -.block-editor-block-mover.is-horizontal .components-toolbar { +.block-editor-block-mover { + display: inline-flex; flex-direction: row; } - -@media (min-width: 600px) { - .block-editor-block-mover .block-editor-block-mover-button { - height: 24px; - width: 42px; - padding-left: 11px !important; - padding-right: 6px !important; } } - -@media (min-width: 600px) { - .block-editor-block-mover .block-editor-block-mover-button::before { - right: 8px !important; - left: 8px !important; } } - -.block-editor-block-mover .block-editor-block-mover__drag-handle { - width: 24px; - cursor: grab; - min-width: 24px !important; - padding: 0 !important; } - .block-editor-block-mover .block-editor-block-mover__drag-handle:focus::before { + .block-editor-block-mover .block-editor-block-mover__move-button-container, + .block-editor-block-mover .components-toolbar { + flex: 1; + flex-direction: row; + border-left: none !important; } + @media (min-width: 600px) { + .block-editor-block-mover .block-editor-block-mover__move-button-container, + .block-editor-block-mover .components-toolbar { + flex-direction: column; } } + .block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container, + .block-editor-block-mover.is-horizontal .components-toolbar { + flex-direction: row; } + @media (min-width: 600px) { + .block-editor-block-mover .block-editor-block-mover-button { + height: 24px; + width: 42px; + padding-left: 11px !important; + padding-right: 6px !important; } } + @media (min-width: 600px) { + .block-editor-block-mover .block-editor-block-mover-button::before { + right: 8px !important; + left: 8px !important; } } + .block-editor-block-mover .block-editor-block-mover__drag-handle { + width: 24px; + cursor: grab; + min-width: 24px !important; + padding: 0 !important; } + .block-editor-block-mover .block-editor-block-mover__drag-handle:focus::before { + right: 0 !important; + left: 0 !important; } + @media (min-width: 600px) { + .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% - 1px); } + .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% - 1px); } } + .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.has-icon { + height: 48px; + width: 24px; + padding-right: 0; + padding-left: 0; } + .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.has-icon::before { + top: 1px; + bottom: 1px; + 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: 0 !important; left: 0 !important; } - -@media (min-width: 600px) { - .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% - 1px); } - .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% - 1px); } } - -.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.has-icon { - height: 48px; - width: 24px; - padding-right: 0; - padding-left: 0; } - .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.has-icon::before { - top: 1px; - bottom: 1px; - 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: 0 !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: 0 !important; - width: calc(100% + 1px); } - -.block-editor-block-navigation__container { - padding: 7px; } + .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: 0 !important; + width: calc(100% + 1px); } .block-editor-block-navigation__label { margin: 0 0 12px; @@ -1309,23 +1259,21 @@ font-size: 11px; font-weight: 500; } -.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle, -.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon { - 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; +.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 .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-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; @@ -1659,8 +1607,6 @@ 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: 0.2em; @@ -2301,6 +2247,7 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before line-height: 1.4; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 13px; + color: #1e1e1e; margin: 0 0 1em; } .block-editor-warning p.block-editor-warning__message.block-editor-warning__message { min-height: auto; } @@ -2405,8 +2352,6 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before .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-animated-width-container { position: relative; @@ -2733,8 +2678,11 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before border-radius: 0; } .block-editor-inserter__quick-inserter-expand.components-button:hover { color: #fff; } + .block-editor-inserter__quick-inserter-expand.components-button:active { + color: #ccc; } .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; } + box-shadow: inset 0 0 0 1.5px #007cba, inset 0 0 0 3px #fff; + box-shadow: inset 0 0 0 1.5px var(--wp-admin-theme-color), inset 0 0 0 3px #fff; } .block-editor-post-preview__dropdown { padding: 0; } 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 a07bd5b526..6cdf3270c1 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 #e0e0e0}.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:-28px}.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}@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:1.5;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{border-left-color:#1e1e1e}.block-editor-block-contextual-toolbar .block-editor-block-mover-button{overflow:hidden}.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button{min-width:24px;width:24px}.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-up-button svg{transition:transform .1s ease-in-out}@media (prefers-reduced-motion:reduce){.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-up-button svg{transition-duration:0s}}.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-up-button:focus svg,.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-up-button:hover svg{transform:translateX(2px)}.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-down-button svg{transition:transform .1s ease-in-out}@media (prefers-reduced-motion:reduce){.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-down-button svg{transition-duration:0s}}.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-down-button:focus svg,.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-down-button:hover svg{transform:translateX(-2px)}.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-up-button svg{margin-top:2px;transition:transform .1s ease-in-out}@media (prefers-reduced-motion:reduce){.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-up-button svg{transition-duration:0s}}.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-up-button:focus svg,.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-up-button:hover svg{transform:translateY(-2px)}.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-down-button svg{margin-bottom:3px;transition:transform .1s ease-in-out}@media (prefers-reduced-motion:reduce){.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-down-button svg{transition-duration:0s}}.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-down-button:focus svg,.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-down-button:hover svg{transform:translateY(2px)}.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:100%}.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}@keyframes hide-during-dragging{to{position:fixed;transform:translate(-9999px,9999px)}}.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;animation:hide-during-dragging 1ms linear forwards}.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 #ddd;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:#cc1818}.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:-24px;right:0}.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{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 .block-editor-block-mover__move-button-container,.block-editor-block-mover .components-toolbar{flex:1;flex-direction:row;border-left:none!important}@media (min-width:600px){.block-editor-block-mover .block-editor-block-mover__move-button-container,.block-editor-block-mover .components-toolbar{flex-direction:column}}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container,.block-editor-block-mover.is-horizontal .components-toolbar{flex-direction:row}@media (min-width:600px){.block-editor-block-mover .block-editor-block-mover-button{height:24px;width:42px;padding-left:11px!important;padding-right:6px!important}}@media (min-width:600px){.block-editor-block-mover .block-editor-block-mover-button:before{right:8px!important;left:8px!important}}.block-editor-block-mover .block-editor-block-mover__drag-handle{width:24px;cursor:grab;min-width:24px!important;padding:0!important}.block-editor-block-mover .block-editor-block-mover__drag-handle:focus:before{right:0!important;left:0!important}@media (min-width:600px){.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% - 1px)}.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% - 1px)}}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.has-icon{height:48px;width:24px;padding-right:0;padding-left:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.has-icon:before{top:1px;bottom:1px;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:0!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:0!important;width:calc(100% + 1px)}.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.is-dragging{display:none}.block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents{display:flex;align-items:center;width:100%;height:auto;padding:12px 6px;margin-top:auto;margin-bottom:auto;text-align:right;color:#1e1e1e;border-radius:2px;position:relative}.block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents.is-dropping-before:before{content:"";position:absolute;pointer-events:none;transition:border-color .1s linear,border-style .1s linear,box-shadow .1s linear;top:-2px;left:0;right:0;border-top:4px solid #007cba;border-top:4px solid var(--wp-admin-theme-color)}.block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents.is-dropping-after:before{content:"";position:absolute;pointer-events:none;transition:border-color .1s linear,border-style .1s linear,box-shadow .1s linear;bottom:-2px;left:0;right:0;border-bottom:4px solid #007cba;border-bottom:4px solid var(--wp-admin-theme-color)}.block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents.is-dropping-to-inner-blocks:before{content:"";position:absolute;pointer-events:none;transition:border-color .1s linear,border-style .1s linear,box-shadow .1s linear;bottom:-2px;left:0;right:24px;border-bottom:4px solid #007cba;border-bottom:4px solid var(--wp-admin-theme-color)}.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.is-selected .block-editor-block-icon svg,.block-editor-block-navigation-leaf.is-selected:focus .block-editor-block-icon svg{color:#fff;background:#1e1e1e;box-shadow:0 0 0 1px #1e1e1e;border-radius:1px}.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{line-height:0;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:48px}.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 #949494}.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 #949494}.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{margin:0;border:2px solid #1e1e1e}.block-editor-block-styles__item-preview{outline:1px solid transparent;padding:0;margin:2px;border-radius:2px;display:flex;overflow:hidden;background:#fff;align-items:center;flex-grow:1;min-height:80px;max-height:160px}.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}.block-editor-block-switcher__popover{margin-right:6px}.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-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 #e0e0e0}.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 20px;flex-shrink:1;max-width:100px;text-align:center}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations>li button{display:inline-flex;margin-left:0}.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}.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 .block-editor-color-gradient-control__color-indicator{margin-bottom:12px}.block-editor-color-gradient-control .block-editor-color-gradient-control__button-tabs{display:block;margin-bottom:12px}.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:#757575;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:#1e1e1e;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-flow__url-input{border-top:1px solid #1e1e1e;margin-top:12px;margin-left:-12px;margin-right:-12px;padding:12px 24px 0}.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 #ccc;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:#757575}.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:#757575;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:#cc1818}.block-editor-warning{align-items:center;display:flex;flex-wrap:wrap;padding:1em;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}.block-editor-warning .block-editor-warning__message{line-height:1.4;font-size:13px;margin:0 0 1em}.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 8px auto 0}.components-popover.block-editor-warning__dropdown{z-index:99998}.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__block-controls{height:auto!important;padding:0!important}.block-editor-block-toolbar__block-controls .block-editor-block-switcher .components-dropdown-menu__toggle .block-editor-block-icon,.block-editor-block-toolbar__block-controls .block-editor-block-switcher__no-switcher-icon .block-editor-block-icon{width:24px!important;margin:0!important}.block-editor-block-toolbar__block-controls .block-editor-block-switcher .components-dropdown-menu__toggle:focus:before,.block-editor-block-toolbar__block-controls .block-editor-block-switcher__no-switcher-icon:focus:before{left:4px!important}.block-editor-block-toolbar__block-controls .block-editor-block-mover{margin-right:-6px}.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-animated-width-container{position:relative;overflow:hidden;transition:width .3s}.block-editor-block-toolbar-content-enter{position:absolute;top:0;right:0;width:auto;opacity:0}.block-editor-block-toolbar-content-enter-active{position:absolute;opacity:1;transition:opacity .3s}.block-editor-block-toolbar-content-exit{width:auto;opacity:1;pointer-events:none}.block-editor-block-toolbar-content-exit-active{opacity:0;transition:opacity .3s}.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:0}@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:99999}.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:#757575}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::placeholder{color:#757575}.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-header-patterns{padding:16px 8px 0 16px}.block-editor-inserter__panel-content{padding:16px}.block-editor-inserter__panel-title,.block-editor-inserter__panel-title button,.components-custom-select-control__menu li{margin:0 0 0 12px;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500}.block-editor-inserter__panel-dropdown select.components-select-control__input.components-select-control__input.components-select-control__input{line-height:1.2}.block-editor-inserter__panel-dropdown select{border:none}.block-editor-inserter__block-list{flex-grow:1;position:relative}.block-editor-inserter__popover .block-editor-block-types-list{margin:-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:#949494}.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);max-height:calc(100% - 32px);overflow-y:hidden}@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:#757575;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%;max-width:100%}@media (min-width:782px){.block-editor-inserter__quick-inserter{width:350px}}.block-editor-inserter__quick-inserter-results .block-editor-inserter__panel-header{height:0;padding:0;float:right}.block-editor-inserter__quick-inserter .block-editor-inserter__panel-content{padding:8px}.block-editor-inserter__quick-inserter.has-expand .block-editor-inserter__panel-content,.block-editor-inserter__quick-inserter.has-search .block-editor-inserter__panel-content{padding:16px}.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{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.edit-post-post-preview-dropdown .components-menu-group:first-child{padding-bottom:8px}.block-editor-post-preview__dropdown-content.edit-post-post-preview-dropdown .components-menu-group:last-child{margin-bottom:0}.block-editor-post-preview__dropdown-content .components-menu-group+.components-menu-group{padding:8px}@media (min-width:600px){.edit-post-header__settings .editor-post-preview,.edit-site-header__actions .editor-post-preview{display:none}} \ 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 #e0e0e0}.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-styles .block-editor-block-list__block{margin:0}.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;box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);border-radius:1px;outline:2px solid transparent}.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{position:relative;overflow-wrap:break-word}.block-editor-block-list__layout .block-editor-block-list__block .reusable-block-edit-panel *{z-index:1}.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.has-active-entity:not(.is-focus-mode){opacity:.5;transition:opacity .1s linear}@media (prefers-reduced-motion:reduce){.block-editor-block-list__layout .block-editor-block-list__block.has-active-entity:not(.is-focus-mode){transition-duration:0s}}.block-editor-block-list__layout .block-editor-block-list__block.has-active-entity:not(.is-focus-mode).has-child-selected,.block-editor-block-list__layout .block-editor-block-list__block.has-active-entity:not(.is-focus-mode).is-active-entity,.block-editor-block-list__layout .block-editor-block-list__block.has-active-entity:not(.is-focus-mode).is-active-entity .block-editor-block-list__block,.block-editor-block-list__layout .block-editor-block-list__block.has-active-entity:not(.is-focus-mode) .is-active-entity .block-editor-block-list__block,.block-editor-block-list__layout .block-editor-block-list__block.has-active-entity:not(.is-focus-mode):not(.has-child-selected) .block-editor-block-list__block{opacity:1}.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}.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.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.is-insert-after{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}@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;padding:12px;width:100%;border:none;outline:none;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;resize:none;overflow:hidden;font-family:Menlo,Consolas,monaco,monospace;font-size:15px;line-height:1.5;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:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color)}.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{border-left-color:#1e1e1e}.block-editor-block-contextual-toolbar .block-editor-block-mover-button{overflow:hidden}.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .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.is-up-button svg{margin-top:2px}.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:100%}.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}@keyframes hide-during-dragging{to{position:fixed;transform:translate(-9999px,9999px)}}.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:-webkit-max-content;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;animation:hide-during-dragging 1ms linear forwards}.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 #ddd;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:#cc1818}.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:-24px;right:0}.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{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-button__description{display:none}.block-editor-block-mover-button.has-icon{padding:0}.block-editor-block-mover{display:inline-flex;flex-direction:row}.block-editor-block-mover .block-editor-block-mover__move-button-container,.block-editor-block-mover .components-toolbar{flex:1;flex-direction:row;border-left:none!important}@media (min-width:600px){.block-editor-block-mover .block-editor-block-mover__move-button-container,.block-editor-block-mover .components-toolbar{flex-direction:column}}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container,.block-editor-block-mover.is-horizontal .components-toolbar{flex-direction:row}@media (min-width:600px){.block-editor-block-mover .block-editor-block-mover-button{height:24px;width:42px;padding-left:11px!important;padding-right:6px!important}}@media (min-width:600px){.block-editor-block-mover .block-editor-block-mover-button:before{right:8px!important;left:8px!important}}.block-editor-block-mover .block-editor-block-mover__drag-handle{width:24px;cursor:grab;min-width:24px!important;padding:0!important}.block-editor-block-mover .block-editor-block-mover__drag-handle:focus:before{right:0!important;left:0!important}@media (min-width:600px){.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% - 1px)}.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% - 1px)}}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.has-icon{height:48px;width:24px;padding-right:0;padding-left:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.has-icon:before{top:1px;bottom:1px;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:0!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:0!important;width:calc(100% + 1px)}.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.is-dragging{display:none}.block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents{display:flex;align-items:center;width:100%;height:auto;padding:12px 6px;margin-top:auto;margin-bottom:auto;text-align:right;color:#1e1e1e;border-radius:2px;position:relative}.block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents.is-dropping-before:before{content:"";position:absolute;pointer-events:none;transition:border-color .1s linear,border-style .1s linear,box-shadow .1s linear;top:-2px;left:0;right:0;border-top:4px solid #007cba;border-top:4px solid var(--wp-admin-theme-color)}.block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents.is-dropping-after:before{content:"";position:absolute;pointer-events:none;transition:border-color .1s linear,border-style .1s linear,box-shadow .1s linear;bottom:-2px;left:0;right:0;border-bottom:4px solid #007cba;border-bottom:4px solid var(--wp-admin-theme-color)}.block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents.is-dropping-to-inner-blocks:before{content:"";position:absolute;pointer-events:none;transition:border-color .1s linear,border-style .1s linear,box-shadow .1s linear;bottom:-2px;left:0;right:24px;border-bottom:4px solid #007cba;border-bottom:4px solid var(--wp-admin-theme-color)}.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.is-selected .block-editor-block-icon svg,.block-editor-block-navigation-leaf.is-selected:focus .block-editor-block-icon svg{color:#fff;background:#1e1e1e;box-shadow:0 0 0 1px #1e1e1e;border-radius:1px}.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{line-height:0;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:48px}.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 #949494}.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 #949494}.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{margin:0;border:2px solid #1e1e1e}.block-editor-block-styles__item-preview{outline:1px solid transparent;padding:0;margin:2px;border-radius:2px;display:flex;overflow:hidden;background:#fff;align-items:center;flex-grow:1;min-height:80px;max-height:160px}.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}.block-editor-block-switcher__popover{margin-right:6px}.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-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 #e0e0e0}.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{width:48px}.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 .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 20px;flex-shrink:1;max-width:100px;text-align:center}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations>li button{display:inline-flex;margin-left:0}.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}.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 .block-editor-color-gradient-control__color-indicator{margin-bottom:12px}.block-editor-color-gradient-control .block-editor-color-gradient-control__button-tabs{display:block;margin-bottom:12px}.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{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:#757575;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:#1e1e1e;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-flow__url-input{border-top:1px solid #1e1e1e;margin-top:12px;margin-left:-12px;margin-right:-12px;padding:12px 24px 0}.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 #ccc;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:#757575}.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:#757575;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:#cc1818}.block-editor-warning{align-items:center;display:flex;flex-wrap:wrap;padding:1em;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}.block-editor-warning .block-editor-warning__message{line-height:1.4;font-size:13px;color:#1e1e1e;margin:0 0 1em}.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 8px auto 0}.components-popover.block-editor-warning__dropdown{z-index:99998}.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__block-controls{height:auto!important;padding:0!important}.block-editor-block-toolbar__block-controls .block-editor-block-switcher .components-dropdown-menu__toggle .block-editor-block-icon,.block-editor-block-toolbar__block-controls .block-editor-block-switcher__no-switcher-icon .block-editor-block-icon{width:24px!important;margin:0!important}.block-editor-block-toolbar__block-controls .block-editor-block-switcher .components-dropdown-menu__toggle:focus:before,.block-editor-block-toolbar__block-controls .block-editor-block-switcher__no-switcher-icon:focus:before{left:4px!important}.block-editor-block-toolbar__block-controls .block-editor-block-mover{margin-right:-6px}.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)}.block-editor-block-toolbar-animated-width-container{position:relative;overflow:hidden;transition:width .3s}.block-editor-block-toolbar-content-enter{position:absolute;top:0;right:0;width:auto;opacity:0}.block-editor-block-toolbar-content-enter-active{position:absolute;opacity:1;transition:opacity .3s}.block-editor-block-toolbar-content-exit{width:auto;opacity:1;pointer-events:none}.block-editor-block-toolbar-content-exit-active{opacity:0;transition:opacity .3s}.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:0}@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:99999}.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:#757575}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::placeholder{color:#757575}.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-header-patterns{padding:16px 8px 0 16px}.block-editor-inserter__panel-content{padding:16px}.block-editor-inserter__panel-title,.block-editor-inserter__panel-title button,.components-custom-select-control__menu li{margin:0 0 0 12px;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500}.block-editor-inserter__panel-dropdown select.components-select-control__input.components-select-control__input.components-select-control__input{line-height:1.2}.block-editor-inserter__panel-dropdown select{border:none}.block-editor-inserter__block-list{flex-grow:1;position:relative}.block-editor-inserter__popover .block-editor-block-types-list{margin:-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:#949494}.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);max-height:calc(100% - 32px);overflow-y:hidden}@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:#757575;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%;max-width:100%}@media (min-width:782px){.block-editor-inserter__quick-inserter{width:350px}}.block-editor-inserter__quick-inserter-results .block-editor-inserter__panel-header{height:0;padding:0;float:right}.block-editor-inserter__quick-inserter .block-editor-inserter__panel-content{padding:8px}.block-editor-inserter__quick-inserter.has-expand .block-editor-inserter__panel-content,.block-editor-inserter__quick-inserter.has-search .block-editor-inserter__panel-content{padding:16px}.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:active{color:#ccc}.block-editor-inserter__quick-inserter-expand.components-button:focus:not(:disabled){box-shadow:inset 0 0 0 1.5px #007cba,inset 0 0 0 3px #fff;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 0 0 3px #fff}.block-editor-post-preview__dropdown{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.edit-post-post-preview-dropdown .components-menu-group:first-child{padding-bottom:8px}.block-editor-post-preview__dropdown-content.edit-post-post-preview-dropdown .components-menu-group:last-child{margin-bottom:0}.block-editor-post-preview__dropdown-content .components-menu-group+.components-menu-group{padding:8px}@media (min-width:600px){.edit-post-header__settings .editor-post-preview,.edit-site-header__actions .editor-post-preview{display:none}} \ 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 bcbbfe2f30..20135aa1fe 100644 --- a/wp-includes/css/dist/block-editor/style.css +++ b/wp-includes/css/dist/block-editor/style.css @@ -111,59 +111,12 @@ 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; } /** * Notices & Block Selected/Hover Styles. */ -.block-editor-block-list__layout .block-editor-block-list__block { - position: relative; - overflow-wrap: break-word; - /** - * Notices - */ - /** - * Block Layout - */ } - .block-editor-block-list__layout .block-editor-block-list__block .components-placeholder .components-with-notices-ui { - margin: -10px 0 12px 0; } - .block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui { - margin: 0 0 12px 0; - width: 100%; } - .block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice { - margin-left: 0; - margin-right: 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; - left: 1px; - right: 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: 0.5; - transition: opacity 0.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):not(.is-focused) .block-editor-block-list__block, .block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected).is-focused { - opacity: 1; } - .block-editor-block-list__layout .block-editor-block-list__block, .block-editor-block-list__layout .block-list-appender { position: relative; } @@ -204,22 +157,11 @@ top: 1px; bottom: 1px; left: 1px; - right: 1px; } - .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected::after, - .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered::after, - .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 { + right: 1px; 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 0.2s ease-out; outline: 2px solid transparent; } - @media (prefers-reduced-motion: reduce) { - .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected::after, - .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered::after, - .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 { - transition-duration: 0s; } } .is-dark-theme .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected::after, .is-dark-theme .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered::after, .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted::after, .is-dark-theme @@ -259,64 +201,106 @@ height: 1px; padding: 0; } -/** - * Block styles and alignments - */ -.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; - right: 0; - bottom: 0; - left: 0; - border-radius: 2px; - box-shadow: 0 0 0 1.5px transparent; - transition: box-shadow 0.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; - right: 0; - bottom: 0; - left: 0; - border-radius: 2px; - background-color: rgba(255, 255, 255, 0.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 { - left: auto; - right: 8px; } +.block-editor-block-list__layout .block-editor-block-list__block { + position: relative; + overflow-wrap: break-word; + /** + * Notices + */ + /** + * Block Layout + */ + /** + * Block styles and alignments + */ } + .block-editor-block-list__layout .block-editor-block-list__block .reusable-block-edit-panel * { + z-index: 1; } + .block-editor-block-list__layout .block-editor-block-list__block .components-placeholder .components-with-notices-ui { + margin: -10px 0 12px 0; } + .block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui { + margin: 0 0 12px 0; + width: 100%; } + .block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice { + margin-left: 0; + margin-right: 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; + left: 1px; + right: 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: 0.5; + transition: opacity 0.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):not(.is-focused) .block-editor-block-list__block, .block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected).is-focused { + opacity: 1; } + .block-editor-block-list__layout .block-editor-block-list__block.has-active-entity:not(.is-focus-mode) { + opacity: 0.5; + transition: opacity 0.1s linear; } + @media (prefers-reduced-motion: reduce) { + .block-editor-block-list__layout .block-editor-block-list__block.has-active-entity:not(.is-focus-mode) { + transition-duration: 0s; } } + .block-editor-block-list__layout .block-editor-block-list__block.has-active-entity:not(.is-focus-mode).is-active-entity, .block-editor-block-list__layout .block-editor-block-list__block.has-active-entity:not(.is-focus-mode).has-child-selected, + .block-editor-block-list__layout .block-editor-block-list__block.has-active-entity:not(.is-focus-mode):not(.has-child-selected) .block-editor-block-list__block, + .block-editor-block-list__layout .block-editor-block-list__block.has-active-entity:not(.is-focus-mode).is-active-entity .block-editor-block-list__block, + .block-editor-block-list__layout .block-editor-block-list__block.has-active-entity:not(.is-focus-mode) .is-active-entity .block-editor-block-list__block { + opacity: 1; } + .block-editor-block-list__layout .block-editor-block-list__block::after { + content: ""; + pointer-events: none; + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + border-radius: 2px; + box-shadow: 0 0 0 1.5px transparent; } + .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.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; + right: 0; + bottom: 0; + left: 0; + border-radius: 2px; + background-color: rgba(255, 255, 255, 0.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 { + left: auto; + right: 8px; } .block-editor-block-list__layout .wp-block { margin-left: auto; @@ -358,7 +342,9 @@ .block-editor-block-list__insertion-point { position: relative; z-index: 6; - margin-top: -28px; } + margin-top: -14px; } + .block-editor-block-list__insertion-point.is-insert-after { + margin-top: 14px; } .block-editor-block-list__insertion-point-indicator { position: absolute; @@ -451,10 +437,12 @@ .block-editor-block-list__block .block-editor-block-list__block-html-textarea { display: block; margin: 0; + padding: 12px; width: 100%; border: none; outline: none; - box-shadow: none; + border-radius: 2px; + box-shadow: inset 0 0 0 1px #1e1e1e; resize: none; overflow: hidden; font-family: Menlo, Consolas, monaco, monospace; @@ -465,7 +453,8 @@ .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; } + box-shadow: inset 0 0 0 1.5px #007cba; + box-shadow: inset 0 0 0 1.5px var(--wp-admin-theme-color); } /** * Block Toolbar when contextual. @@ -482,36 +471,10 @@ .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button { min-width: 24px; width: 24px; } - .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-up-button svg { - transition: ease-in-out transform 0.1s; } - @media (prefers-reduced-motion: reduce) { - .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-up-button svg { - transition-duration: 0s; } } - .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-up-button:focus svg, .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-up-button:hover svg { - transform: translateX(-2px); } - .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-down-button svg { - transition: ease-in-out transform 0.1s; } - @media (prefers-reduced-motion: reduce) { - .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-down-button svg { - transition-duration: 0s; } } - .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-down-button:focus svg, .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-down-button:hover svg { - transform: translateX(2px); } .block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-up-button svg { - margin-top: 2px; - transition: ease-in-out transform 0.1s; } - @media (prefers-reduced-motion: reduce) { - .block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-up-button svg { - transition-duration: 0s; } } - .block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-up-button:focus svg, .block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-up-button:hover svg { - transform: translateY(-2px); } + margin-top: 2px; } .block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-down-button svg { - margin-bottom: 3px; - transition: ease-in-out transform 0.1s; } - @media (prefers-reduced-motion: reduce) { - .block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-down-button svg { - transition-duration: 0s; } } - .block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-down-button:focus svg, .block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-down-button:hover svg { - transform: translateY(2px); } + 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; @@ -569,6 +532,7 @@ .components-popover.block-editor-block-list__block-popover .components-popover__content { margin: 0 !important; min-width: auto; + width: -webkit-max-content; width: max-content; background: none; border: none; @@ -781,100 +745,86 @@ .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 .block-editor-block-mover__move-button-container, -.block-editor-block-mover .components-toolbar { - flex: 1; - flex-direction: row; - border-right: none !important; } - @media (min-width: 600px) { - .block-editor-block-mover .block-editor-block-mover__move-button-container, - .block-editor-block-mover .components-toolbar { - flex-direction: column; } } - -.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container, -.block-editor-block-mover.is-horizontal .components-toolbar { +.block-editor-block-mover { + display: inline-flex; flex-direction: row; } - -@media (min-width: 600px) { - .block-editor-block-mover .block-editor-block-mover-button { - height: 24px; - width: 42px; - padding-right: 11px !important; - padding-left: 6px !important; } } - -@media (min-width: 600px) { - .block-editor-block-mover .block-editor-block-mover-button::before { - left: 8px !important; - right: 8px !important; } } - -.block-editor-block-mover .block-editor-block-mover__drag-handle { - width: 24px; - cursor: grab; - min-width: 24px !important; - padding: 0 !important; } - .block-editor-block-mover .block-editor-block-mover__drag-handle:focus::before { + .block-editor-block-mover .block-editor-block-mover__move-button-container, + .block-editor-block-mover .components-toolbar { + flex: 1; + flex-direction: row; + border-right: none !important; } + @media (min-width: 600px) { + .block-editor-block-mover .block-editor-block-mover__move-button-container, + .block-editor-block-mover .components-toolbar { + flex-direction: column; } } + .block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container, + .block-editor-block-mover.is-horizontal .components-toolbar { + flex-direction: row; } + @media (min-width: 600px) { + .block-editor-block-mover .block-editor-block-mover-button { + height: 24px; + width: 42px; + padding-right: 11px !important; + padding-left: 6px !important; } } + @media (min-width: 600px) { + .block-editor-block-mover .block-editor-block-mover-button::before { + left: 8px !important; + right: 8px !important; } } + .block-editor-block-mover .block-editor-block-mover__drag-handle { + width: 24px; + cursor: grab; + min-width: 24px !important; + padding: 0 !important; } + .block-editor-block-mover .block-editor-block-mover__drag-handle:focus::before { + left: 0 !important; + right: 0 !important; } + @media (min-width: 600px) { + .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% - 1px); } + .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% - 1px); } } + .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.has-icon { + height: 48px; + width: 24px; + padding-left: 0; + padding-right: 0; } + .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.has-icon::before { + top: 1px; + bottom: 1px; + 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: 0 !important; right: 0 !important; } - -@media (min-width: 600px) { - .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% - 1px); } - .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% - 1px); } } - -.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.has-icon { - height: 48px; - width: 24px; - padding-left: 0; - padding-right: 0; } - .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.has-icon::before { - top: 1px; - bottom: 1px; - 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: 0 !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: 0 !important; - width: calc(100% + 1px); } - -.block-editor-block-navigation__container { - padding: 7px; } + .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: 0 !important; + width: calc(100% + 1px); } .block-editor-block-navigation__label { margin: 0 0 12px; @@ -1313,23 +1263,21 @@ font-size: 11px; font-weight: 500; } -.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle, -.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon { - 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; +.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 .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-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; @@ -1663,8 +1611,6 @@ 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: 0.2em; @@ -2305,6 +2251,7 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before line-height: 1.4; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 13px; + color: #1e1e1e; margin: 0 0 1em; } .block-editor-warning p.block-editor-warning__message.block-editor-warning__message { min-height: auto; } @@ -2409,8 +2356,6 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before .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-animated-width-container { position: relative; @@ -2737,8 +2682,11 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before border-radius: 0; } .block-editor-inserter__quick-inserter-expand.components-button:hover { color: #fff; } + .block-editor-inserter__quick-inserter-expand.components-button:active { + color: #ccc; } .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; } + box-shadow: inset 0 0 0 1.5px #007cba, inset 0 0 0 3px #fff; + box-shadow: inset 0 0 0 1.5px var(--wp-admin-theme-color), inset 0 0 0 3px #fff; } .block-editor-post-preview__dropdown { padding: 0; } diff --git a/wp-includes/css/dist/block-editor/style.min.css b/wp-includes/css/dist/block-editor/style.min.css index 76c8f92b97..d5bf0337fa 100644 --- a/wp-includes/css/dist/block-editor/style.min.css +++ b/wp-includes/css/dist/block-editor/style.min.css @@ -1,5 +1,5 @@ -@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-right: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 #e0e0e0}.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-left:0;margin-right: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;left:1px;right: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;right:0;left: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;left:-6px;border-top:none;border-left:4px solid #007cba;border-left: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;left:1px;right: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;right:0;left: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;right:0;bottom:0;left: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;right:0;bottom:0;left: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{left:auto;right:8px}.block-editor-block-list__layout .wp-block{margin-left:auto;margin-right: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]>*{ +@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-right: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 #e0e0e0}.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-styles .block-editor-block-list__block{margin:0}.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;right:0;left: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;left:-6px;border-top:none;border-left:4px solid #007cba;border-left: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;left:1px;right:1px;box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);border-radius:1px;outline:2px solid transparent}.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;right:0;left: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{position:relative;overflow-wrap:break-word}.block-editor-block-list__layout .block-editor-block-list__block .reusable-block-edit-panel *{z-index:1}.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-left:0;margin-right: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;left:1px;right: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.has-active-entity:not(.is-focus-mode){opacity:.5;transition:opacity .1s linear}@media (prefers-reduced-motion:reduce){.block-editor-block-list__layout .block-editor-block-list__block.has-active-entity:not(.is-focus-mode){transition-duration:0s}}.block-editor-block-list__layout .block-editor-block-list__block.has-active-entity:not(.is-focus-mode).has-child-selected,.block-editor-block-list__layout .block-editor-block-list__block.has-active-entity:not(.is-focus-mode).is-active-entity,.block-editor-block-list__layout .block-editor-block-list__block.has-active-entity:not(.is-focus-mode).is-active-entity .block-editor-block-list__block,.block-editor-block-list__layout .block-editor-block-list__block.has-active-entity:not(.is-focus-mode) .is-active-entity .block-editor-block-list__block,.block-editor-block-list__layout .block-editor-block-list__block.has-active-entity:not(.is-focus-mode):not(.has-child-selected) .block-editor-block-list__block{opacity:1}.block-editor-block-list__layout .block-editor-block-list__block:after{content:"";pointer-events:none;position:absolute;top:0;right:0;bottom:0;left:0;border-radius:2px;box-shadow:0 0 0 1.5px transparent}.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.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;right:0;bottom:0;left: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{left:auto;right:8px}.block-editor-block-list__layout .wp-block{margin-left:auto;margin-right: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]>*{ /*!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:-28px}.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}@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:1.5;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{border-right-color:#1e1e1e}.block-editor-block-contextual-toolbar .block-editor-block-mover-button{overflow:hidden}.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button{min-width:24px;width:24px}.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-up-button svg{transition:transform .1s ease-in-out}@media (prefers-reduced-motion:reduce){.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-up-button svg{transition-duration:0s}}.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-up-button:focus svg,.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-up-button:hover svg{transform:translateX(-2px)}.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-down-button svg{transition:transform .1s ease-in-out}@media (prefers-reduced-motion:reduce){.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-down-button svg{transition-duration:0s}}.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-down-button:focus svg,.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-down-button:hover svg{transform:translateX(2px)}.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-up-button svg{margin-top:2px;transition:transform .1s ease-in-out}@media (prefers-reduced-motion:reduce){.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-up-button svg{transition-duration:0s}}.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-up-button:focus svg,.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-up-button:hover svg{transform:translateY(-2px)}.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-down-button svg{margin-bottom:3px;transition:transform .1s ease-in-out}@media (prefers-reduced-motion:reduce){.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-down-button svg{transition-duration:0s}}.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-down-button:focus svg,.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-down-button:hover svg{transform:translateY(2px)}.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:100%}.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}@keyframes hide-during-dragging{to{position:fixed;transform:translate(9999px,9999px)}}.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;animation:hide-during-dragging 1ms linear forwards}.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 #ddd;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:#cc1818}.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:-24px;left:0}.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{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 .block-editor-block-mover__move-button-container,.block-editor-block-mover .components-toolbar{flex:1;flex-direction:row;border-right:none!important}@media (min-width:600px){.block-editor-block-mover .block-editor-block-mover__move-button-container,.block-editor-block-mover .components-toolbar{flex-direction:column}}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container,.block-editor-block-mover.is-horizontal .components-toolbar{flex-direction:row}@media (min-width:600px){.block-editor-block-mover .block-editor-block-mover-button{height:24px;width:42px;padding-right:11px!important;padding-left:6px!important}}@media (min-width:600px){.block-editor-block-mover .block-editor-block-mover-button:before{left:8px!important;right:8px!important}}.block-editor-block-mover .block-editor-block-mover__drag-handle{width:24px;cursor:grab;min-width:24px!important;padding:0!important}.block-editor-block-mover .block-editor-block-mover__drag-handle:focus:before{left:0!important;right:0!important}@media (min-width:600px){.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% - 1px)}.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% - 1px)}}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.has-icon{height:48px;width:24px;padding-left:0;padding-right:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.has-icon:before{top:1px;bottom:1px;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:0!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:0!important;width:calc(100% + 1px)}.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.is-dragging{display:none}.block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents{display:flex;align-items:center;width:100%;height:auto;padding:12px 6px;margin-top:auto;margin-bottom:auto;text-align:left;color:#1e1e1e;border-radius:2px;position:relative}.block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents.is-dropping-before:before{content:"";position:absolute;pointer-events:none;transition:border-color .1s linear,border-style .1s linear,box-shadow .1s linear;top:-2px;right:0;left:0;border-top:4px solid #007cba;border-top:4px solid var(--wp-admin-theme-color)}.block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents.is-dropping-after:before{content:"";position:absolute;pointer-events:none;transition:border-color .1s linear,border-style .1s linear,box-shadow .1s linear;bottom:-2px;right:0;left:0;border-bottom:4px solid #007cba;border-bottom:4px solid var(--wp-admin-theme-color)}.block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents.is-dropping-to-inner-blocks:before{content:"";position:absolute;pointer-events:none;transition:border-color .1s linear,border-style .1s linear,box-shadow .1s linear;bottom:-2px;right:0;left:24px;border-bottom:4px solid #007cba;border-bottom:4px solid var(--wp-admin-theme-color)}.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.is-selected .block-editor-block-icon svg,.block-editor-block-navigation-leaf.is-selected:focus .block-editor-block-icon svg{color:#fff;background:#1e1e1e;box-shadow:0 0 0 1px #1e1e1e;border-radius:1px}.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{line-height:0;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:48px}.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 #949494}.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 #949494}.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{margin:0;border:2px solid #1e1e1e}.block-editor-block-styles__item-preview{outline:1px solid transparent;padding:0;margin:2px;border-radius:2px;display:flex;overflow:hidden;background:#fff;align-items:center;flex-grow:1;min-height:80px;max-height:160px}.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}.block-editor-block-switcher__popover{margin-left:6px}.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-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 #e0e0e0}.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 20px 0 0;flex-shrink:1;max-width:100px;text-align:center}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations>li button{display:inline-flex;margin-right:0}.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}.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 .block-editor-color-gradient-control__color-indicator{margin-bottom:12px}.block-editor-color-gradient-control .block-editor-color-gradient-control__button-tabs{display:block;margin-bottom:12px}.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:#757575;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:#1e1e1e;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-flow__url-input{border-top:1px solid #1e1e1e;margin-top:12px;margin-right:-12px;margin-left:-12px;padding:12px 24px 0}.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 #ccc;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:#757575}.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:#757575;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:#cc1818}.block-editor-warning{align-items:center;display:flex;flex-wrap:wrap;padding:1em;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}.block-editor-warning .block-editor-warning__message{line-height:1.4;font-size:13px;margin:0 0 1em}.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 0 auto 8px}.components-popover.block-editor-warning__dropdown{z-index:99998}.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__block-controls{height:auto!important;padding:0!important}.block-editor-block-toolbar__block-controls .block-editor-block-switcher .components-dropdown-menu__toggle .block-editor-block-icon,.block-editor-block-toolbar__block-controls .block-editor-block-switcher__no-switcher-icon .block-editor-block-icon{width:24px!important;margin:0!important}.block-editor-block-toolbar__block-controls .block-editor-block-switcher .components-dropdown-menu__toggle:focus:before,.block-editor-block-toolbar__block-controls .block-editor-block-switcher__no-switcher-icon:focus:before{right:4px!important}.block-editor-block-toolbar__block-controls .block-editor-block-mover{margin-left:-6px}.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-animated-width-container{position:relative;overflow:hidden;transition:width .3s}.block-editor-block-toolbar-content-enter{position:absolute;top:0;left:0;width:auto;opacity:0}.block-editor-block-toolbar-content-enter-active{position:absolute;opacity:1;transition:opacity .3s}.block-editor-block-toolbar-content-exit{width:auto;opacity:1;pointer-events:none}.block-editor-block-toolbar-content-exit-active{opacity:0;transition:opacity .3s}.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:0}@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:99999}.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:#757575}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::placeholder{color:#757575}.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-header-patterns{padding:16px 16px 0 8px}.block-editor-inserter__panel-content{padding:16px}.block-editor-inserter__panel-title,.block-editor-inserter__panel-title button,.components-custom-select-control__menu li{margin:0 12px 0 0;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500}.block-editor-inserter__panel-dropdown select.components-select-control__input.components-select-control__input.components-select-control__input{line-height:1.2}.block-editor-inserter__panel-dropdown select{border:none}.block-editor-inserter__block-list{flex-grow:1;position:relative}.block-editor-inserter__popover .block-editor-block-types-list{margin:-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:#949494}.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);max-height:calc(100% - 32px);overflow-y:hidden}@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:#757575;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%;max-width:100%}@media (min-width:782px){.block-editor-inserter__quick-inserter{width:350px}}.block-editor-inserter__quick-inserter-results .block-editor-inserter__panel-header{height:0;padding:0;float:left}.block-editor-inserter__quick-inserter .block-editor-inserter__panel-content{padding:8px}.block-editor-inserter__quick-inserter.has-expand .block-editor-inserter__panel-content,.block-editor-inserter__quick-inserter.has-search .block-editor-inserter__panel-content{padding:16px}.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{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.edit-post-post-preview-dropdown .components-menu-group:first-child{padding-bottom:8px}.block-editor-post-preview__dropdown-content.edit-post-post-preview-dropdown .components-menu-group:last-child{margin-bottom:0}.block-editor-post-preview__dropdown-content .components-menu-group+.components-menu-group{padding:8px}@media (min-width:600px){.edit-post-header__settings .editor-post-preview,.edit-site-header__actions .editor-post-preview{display:none}} \ 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.is-insert-after{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}@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;padding:12px;width:100%;border:none;outline:none;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;resize:none;overflow:hidden;font-family:Menlo,Consolas,monaco,monospace;font-size:15px;line-height:1.5;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:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color)}.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{border-right-color:#1e1e1e}.block-editor-block-contextual-toolbar .block-editor-block-mover-button{overflow:hidden}.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .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.is-up-button svg{margin-top:2px}.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:100%}.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}@keyframes hide-during-dragging{to{position:fixed;transform:translate(9999px,9999px)}}.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:-webkit-max-content;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;animation:hide-during-dragging 1ms linear forwards}.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 #ddd;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:#cc1818}.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:-24px;left:0}.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{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-button__description{display:none}.block-editor-block-mover-button.has-icon{padding:0}.block-editor-block-mover{display:inline-flex;flex-direction:row}.block-editor-block-mover .block-editor-block-mover__move-button-container,.block-editor-block-mover .components-toolbar{flex:1;flex-direction:row;border-right:none!important}@media (min-width:600px){.block-editor-block-mover .block-editor-block-mover__move-button-container,.block-editor-block-mover .components-toolbar{flex-direction:column}}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container,.block-editor-block-mover.is-horizontal .components-toolbar{flex-direction:row}@media (min-width:600px){.block-editor-block-mover .block-editor-block-mover-button{height:24px;width:42px;padding-right:11px!important;padding-left:6px!important}}@media (min-width:600px){.block-editor-block-mover .block-editor-block-mover-button:before{left:8px!important;right:8px!important}}.block-editor-block-mover .block-editor-block-mover__drag-handle{width:24px;cursor:grab;min-width:24px!important;padding:0!important}.block-editor-block-mover .block-editor-block-mover__drag-handle:focus:before{left:0!important;right:0!important}@media (min-width:600px){.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% - 1px)}.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% - 1px)}}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.has-icon{height:48px;width:24px;padding-left:0;padding-right:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.has-icon:before{top:1px;bottom:1px;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:0!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:0!important;width:calc(100% + 1px)}.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.is-dragging{display:none}.block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents{display:flex;align-items:center;width:100%;height:auto;padding:12px 6px;margin-top:auto;margin-bottom:auto;text-align:left;color:#1e1e1e;border-radius:2px;position:relative}.block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents.is-dropping-before:before{content:"";position:absolute;pointer-events:none;transition:border-color .1s linear,border-style .1s linear,box-shadow .1s linear;top:-2px;right:0;left:0;border-top:4px solid #007cba;border-top:4px solid var(--wp-admin-theme-color)}.block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents.is-dropping-after:before{content:"";position:absolute;pointer-events:none;transition:border-color .1s linear,border-style .1s linear,box-shadow .1s linear;bottom:-2px;right:0;left:0;border-bottom:4px solid #007cba;border-bottom:4px solid var(--wp-admin-theme-color)}.block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents.is-dropping-to-inner-blocks:before{content:"";position:absolute;pointer-events:none;transition:border-color .1s linear,border-style .1s linear,box-shadow .1s linear;bottom:-2px;right:0;left:24px;border-bottom:4px solid #007cba;border-bottom:4px solid var(--wp-admin-theme-color)}.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.is-selected .block-editor-block-icon svg,.block-editor-block-navigation-leaf.is-selected:focus .block-editor-block-icon svg{color:#fff;background:#1e1e1e;box-shadow:0 0 0 1px #1e1e1e;border-radius:1px}.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{line-height:0;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:48px}.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 #949494}.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 #949494}.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{margin:0;border:2px solid #1e1e1e}.block-editor-block-styles__item-preview{outline:1px solid transparent;padding:0;margin:2px;border-radius:2px;display:flex;overflow:hidden;background:#fff;align-items:center;flex-grow:1;min-height:80px;max-height:160px}.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}.block-editor-block-switcher__popover{margin-left:6px}.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-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 #e0e0e0}.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{width:48px}.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 .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 20px 0 0;flex-shrink:1;max-width:100px;text-align:center}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations>li button{display:inline-flex;margin-right:0}.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}.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 .block-editor-color-gradient-control__color-indicator{margin-bottom:12px}.block-editor-color-gradient-control .block-editor-color-gradient-control__button-tabs{display:block;margin-bottom:12px}.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{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:#757575;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:#1e1e1e;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-flow__url-input{border-top:1px solid #1e1e1e;margin-top:12px;margin-right:-12px;margin-left:-12px;padding:12px 24px 0}.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 #ccc;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:#757575}.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:#757575;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:#cc1818}.block-editor-warning{align-items:center;display:flex;flex-wrap:wrap;padding:1em;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}.block-editor-warning .block-editor-warning__message{line-height:1.4;font-size:13px;color:#1e1e1e;margin:0 0 1em}.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 0 auto 8px}.components-popover.block-editor-warning__dropdown{z-index:99998}.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__block-controls{height:auto!important;padding:0!important}.block-editor-block-toolbar__block-controls .block-editor-block-switcher .components-dropdown-menu__toggle .block-editor-block-icon,.block-editor-block-toolbar__block-controls .block-editor-block-switcher__no-switcher-icon .block-editor-block-icon{width:24px!important;margin:0!important}.block-editor-block-toolbar__block-controls .block-editor-block-switcher .components-dropdown-menu__toggle:focus:before,.block-editor-block-toolbar__block-controls .block-editor-block-switcher__no-switcher-icon:focus:before{right:4px!important}.block-editor-block-toolbar__block-controls .block-editor-block-mover{margin-left:-6px}.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)}.block-editor-block-toolbar-animated-width-container{position:relative;overflow:hidden;transition:width .3s}.block-editor-block-toolbar-content-enter{position:absolute;top:0;left:0;width:auto;opacity:0}.block-editor-block-toolbar-content-enter-active{position:absolute;opacity:1;transition:opacity .3s}.block-editor-block-toolbar-content-exit{width:auto;opacity:1;pointer-events:none}.block-editor-block-toolbar-content-exit-active{opacity:0;transition:opacity .3s}.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:0}@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:99999}.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:#757575}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::placeholder{color:#757575}.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-header-patterns{padding:16px 16px 0 8px}.block-editor-inserter__panel-content{padding:16px}.block-editor-inserter__panel-title,.block-editor-inserter__panel-title button,.components-custom-select-control__menu li{margin:0 12px 0 0;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500}.block-editor-inserter__panel-dropdown select.components-select-control__input.components-select-control__input.components-select-control__input{line-height:1.2}.block-editor-inserter__panel-dropdown select{border:none}.block-editor-inserter__block-list{flex-grow:1;position:relative}.block-editor-inserter__popover .block-editor-block-types-list{margin:-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:#949494}.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);max-height:calc(100% - 32px);overflow-y:hidden}@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:#757575;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%;max-width:100%}@media (min-width:782px){.block-editor-inserter__quick-inserter{width:350px}}.block-editor-inserter__quick-inserter-results .block-editor-inserter__panel-header{height:0;padding:0;float:left}.block-editor-inserter__quick-inserter .block-editor-inserter__panel-content{padding:8px}.block-editor-inserter__quick-inserter.has-expand .block-editor-inserter__panel-content,.block-editor-inserter__quick-inserter.has-search .block-editor-inserter__panel-content{padding:16px}.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:active{color:#ccc}.block-editor-inserter__quick-inserter-expand.components-button:focus:not(:disabled){box-shadow:inset 0 0 0 1.5px #007cba,inset 0 0 0 3px #fff;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 0 0 3px #fff}.block-editor-post-preview__dropdown{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.edit-post-post-preview-dropdown .components-menu-group:first-child{padding-bottom:8px}.block-editor-post-preview__dropdown-content.edit-post-post-preview-dropdown .components-menu-group:last-child{margin-bottom:0}.block-editor-post-preview__dropdown-content .components-menu-group+.components-menu-group{padding:8px}@media (min-width:600px){.edit-post-header__settings .editor-post-preview,.edit-site-header__actions .editor-post-preview{display:none}} \ No newline at end of file diff --git a/wp-includes/css/dist/block-library/editor-rtl.css b/wp-includes/css/dist/block-library/editor-rtl.css index ee4ad36083..240053ffed 100644 --- a/wp-includes/css/dist/block-library/editor-rtl.css +++ b/wp-includes/css/dist/block-library/editor-rtl.css @@ -182,6 +182,16 @@ div[data-type="core/button"] { padding: 0 !important; } .wp-block-cover.components-placeholder h2 { color: inherit; } + .wp-block-cover.is-transient::before { + background-color: #fff; + opacity: 0.3; } + .wp-block-cover .components-spinner { + position: absolute; + z-index: 1; + top: 50%; + right: 50%; + transform: translate(50%, -50%); + margin: 0; } .wp-block-cover .block-editor-block-list__layout { width: 100%; } .wp-block-cover .wp-block-cover__inner-container { @@ -909,8 +919,7 @@ ul.has-background.has-background { border-radius: 4px; } .block-library-colors-selector .block-library-colors-selector__state-selection { margin-right: auto; - margin-left: auto; } - .block-library-colors-selector .block-library-colors-selector__state-selection { + margin-left: auto; border-radius: 11px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2); width: 22px; @@ -951,9 +960,6 @@ ul.has-background.has-background { vertical-align: middle; margin-left: 7px; } -.wp-block-navigation-placeholder .components-custom-select-control__label { - margin-bottom: 1rem; } - .wp-block-navigation-placeholder .components-custom-select-control__button { height: auto; padding: 0.375rem 1.5rem 0.375rem 0.75rem; @@ -972,6 +978,7 @@ ul.has-background.has-background { border-top: 1px solid #757575; } .wp-block-navigation-placeholder .components-custom-select-control__label { + margin-bottom: 1rem; font-size: 13px; font-weight: normal; } @@ -1283,8 +1290,34 @@ ul.has-background.has-background { .editor-styles-wrapper .wp-block-social-links { padding: 0; } +.wp-block-social-links__social-placeholder { + display: flex; } + .wp-block-social-links__social-placeholder .wp-block-social-link { + display: inline-flex; + align-items: center; + justify-content: center; + margin: 0 0 8px 8px; + width: 36px; + height: 36px; + border-radius: 50%; + opacity: 0.8; } + +.is-style-logos-only .wp-block-social-links__social-placeholder .wp-block-social-link::before { + content: ""; + display: block; + width: 18px; + height: 18px; + border-radius: 50%; + opacity: 0.8; + background: currentColor; } + +.is-style-pill-shape .wp-block-social-links__social-placeholder .wp-block-social-link { + border-radius: 9999px; + padding-right: 28px; + padding-left: 28px; } + .wp-block-social-links .block-list-appender { - margin: 0; + margin: 0 0 8px 0; display: flex; align-items: center; } @@ -1297,17 +1330,6 @@ ul.has-background.has-background { [data-type="core/social-links"]:not(.is-selected):not(.has-child-selected) .wp-block-social-links { min-height: 36px; } -[data-type="core/social-links"] .wp-social-link__is-incomplete { - transition: transform 0.1s ease; - transform-origin: center center; } - -[data-type="core/social-links"]:not(.is-selected):not(.has-child-selected) .wp-social-link__is-incomplete { - opacity: 0; - transform: scale(0); - width: 0; - padding: 0; - margin-left: 0; } - .wp-social-link.wp-social-link__is-incomplete { opacity: 0.5; } @media (prefers-reduced-motion: reduce) { @@ -1353,29 +1375,27 @@ ul.has-background.has-background { font-size: 1.1em; font-style: italic; } -.wp-block[data-align="left"] > .wp-block-table, -.wp-block[data-align="right"] > .wp-block-table, -.wp-block[data-align="center"] > .wp-block-table { - height: auto; } - .wp-block[data-align="left"] > .wp-block-table table, - .wp-block[data-align="right"] > .wp-block-table table, - .wp-block[data-align="center"] > .wp-block-table table { - width: auto; } - .wp-block[data-align="left"] > .wp-block-table td, - .wp-block[data-align="left"] > .wp-block-table th, - .wp-block[data-align="right"] > .wp-block-table td, - .wp-block[data-align="right"] > .wp-block-table th, - .wp-block[data-align="center"] > .wp-block-table td, - .wp-block[data-align="center"] > .wp-block-table th { - word-break: break-word; } - -.wp-block[data-align="center"] > .wp-block-table { - text-align: initial; } - .wp-block[data-align="center"] > .wp-block-table table { - margin: 0 auto; } - .wp-block-table { margin: 0; } + .wp-block[data-align="left"] > .wp-block-table, + .wp-block[data-align="right"] > .wp-block-table, + .wp-block[data-align="center"] > .wp-block-table { + height: auto; } + .wp-block[data-align="left"] > .wp-block-table table, + .wp-block[data-align="right"] > .wp-block-table table, + .wp-block[data-align="center"] > .wp-block-table table { + width: auto; } + .wp-block[data-align="left"] > .wp-block-table td, + .wp-block[data-align="left"] > .wp-block-table th, + .wp-block[data-align="right"] > .wp-block-table td, + .wp-block[data-align="right"] > .wp-block-table th, + .wp-block[data-align="center"] > .wp-block-table td, + .wp-block[data-align="center"] > .wp-block-table th { + word-break: break-word; } + .wp-block[data-align="center"] > .wp-block-table { + text-align: initial; } + .wp-block[data-align="center"] > .wp-block-table table { + margin: 0 auto; } .wp-block-table table { border-collapse: collapse; } .wp-block-table td, @@ -1441,7 +1461,9 @@ ul.has-background.has-background { cursor: pointer; margin-top: 16px; transition: all 0.05s ease-in-out; - border: 1px solid transparent; } + border: 1px solid transparent; + width: 100%; + background-color: #fff; } .wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item:hover { border: 1px solid #007cba; border: 1px solid var(--wp-admin-theme-color); } @@ -1524,17 +1546,66 @@ pre.wp-block-verse { .editor-video-poster-control .components-button { margin-left: 8px; } -.wp-block[data-type="core/widget-area"] { - max-width: 700px; } +.block-library-video-tracks-editor { + z-index: 159990; } -.wp-block-widget-area > .components-panel__body.is-opened:not(.widget-area-is-opened) { +.block-library-video-tracks-editor > .components-popover__content { + width: 360px; } + +.block-library-video-tracks-editor__track-list-track { + display: flex; + place-content: space-between; + align-items: baseline; + padding-right: 12px; } + +.block-library-video-tracks-editor__single-track-editor-label-language { + display: flex; + margin-top: 12px; } + .block-library-video-tracks-editor__single-track-editor-label-language > .components-base-control { + width: 50%; } + .block-library-video-tracks-editor__single-track-editor-label-language > .components-base-control:first-child { + margin-left: 16px; } + +.block-library-video-tracks-editor__single-track-editor-kind-select { + max-width: 240px; } + +.block-library-video-tracks-editor__single-track-editor-buttons-container { + display: flex; + place-content: space-between; + margin-top: 32px; } + +.block-library-video-tracks-editor__single-track-editor-edit-track-label { + margin-top: 4px; + margin-bottom: 12px; + color: #757575; + text-transform: uppercase; + font-size: 11px; + font-weight: 500; + display: block; } + +.block-library-video-tracks-editor > .components-popover__content > div { padding: 0; } - .wp-block-widget-area > .components-panel__body.is-opened:not(.widget-area-is-opened) > .components-panel__body-title { - padding: 0; - margin: 0; } -.wp-block-widget-area > .components-panel__body > .block-editor-inner-blocks { - padding-top: 24px; } +.block-library-video-tracks-editor__track-list .components-menu-group__label, +.block-library-video-tracks-editor__add-tracks-container .components-menu-group__label { + padding: 0; } + +.block-library-video-tracks-editor__single-track-editor, +.block-library-video-tracks-editor__track-list, +.block-library-video-tracks-editor__add-tracks-container { + padding: 12px; } + +.block-library-video-tracks-editor__single-track-editor .components-base-control .components-base-control__label { + margin-bottom: 4px; } + +.block-library-video-tracks-editor__single-track-editor .components-base-control .components-base-control__field { + margin-bottom: 12px; } + +.block-library-video-tracks-editor__single-track-editor .components-base-control .components-text-control__input { + margin-right: 0; } + +.block-library-video-tracks-editor__single-track-editor .components-base-control .components-input-control__label { + margin-bottom: 4px; } .editor-styles-wrapper .wp-block.wp-block-query-loop { max-width: 100%; } @@ -1542,6 +1613,26 @@ pre.wp-block-verse { .editor-styles-wrapper .wp-block.wp-block-query { max-width: 100%; } +div[data-type="core/post-featured-image"] .post-featured-image_placeholder { + display: flex; + flex-direction: row; + align-items: flex-start; + border-radius: 2px; + background-color: #fff; + box-shadow: inset 0 0 0 1px #1e1e1e; + padding: 12px; } + div[data-type="core/post-featured-image"] .post-featured-image_placeholder svg { + margin-left: 12px; } + div[data-type="core/post-featured-image"] .post-featured-image_placeholder p { + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + font-size: 13px; + margin: 0; } + +div[data-type="core/post-featured-image"] img { + max-width: 100%; + height: auto; + display: block; } + /** * Import styles from internal editor components used by the blocks. */ diff --git a/wp-includes/css/dist/block-library/editor-rtl.min.css b/wp-includes/css/dist/block-library/editor-rtl.min.css index 7b39902e4a..9301df77ec 100644 --- a/wp-includes/css/dist/block-library/editor-rtl.min.css +++ b/wp-includes/css/dist/block-library/editor-rtl.min.css @@ -1 +1 @@ -: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 ul.wp-block-archives{padding-right:2.5em}.wp-block-audio{margin-right:0;margin-left:0}.edit-post-visual-editor .block-library-block__reusable-block-container .block-editor-writing-flow__click-redirect{min-height:auto}.edit-post-visual-editor .block-library-block__reusable-block-container .is-root-container{padding-right:0;padding-left:0}.edit-post-visual-editor .block-library-block__reusable-block-container .block-editor-writing-flow{display:block}.edit-post-visual-editor .block-library-block__reusable-block-container .components-disabled .block-list-appender{display:none}.wp-block[data-align=center]>.wp-block-button{text-align:center;margin-right:auto;margin-left:auto}.wp-block[data-align=right]>.wp-block-button{text-align:right}.wp-block-button{position:relative;cursor:text}.wp-block-button:not(.has-text-color):not(.is-style-outline) [data-rich-text-placeholder]:after{color:#fff}.wp-block-button:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px #007cba;box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:-2px}.wp-block-button[data-rich-text-placeholder]:after{opacity:.8}.wp-block-button__inline-link{color:#757575;height:0;overflow:hidden;max-width:290px}.wp-block-button__inline-link-input__suggestions{max-width:290px}@media (min-width:782px){.wp-block-button__inline-link,.wp-block-button__inline-link-input__suggestions{max-width:260px}}@media (min-width:960px){.wp-block-button__inline-link,.wp-block-button__inline-link-input__suggestions{max-width:290px}}.is-selected .wp-block-button__inline-link{height:auto;overflow:visible;margin-top:16px}div[data-type="core/button"]{display:table}.wp-block-buttons>.wp-block{margin-right:0}.wp-block[data-align=center]>.wp-block-buttons{display:flex;align-items:center;flex-wrap:wrap;justify-content:center}.wp-block[data-align=right]>.wp-block-buttons{display:flex;justify-content:flex-end}.wp-block-buttons>.block-list-appender{display:inline-block}.block-editor .wp-block-categories ul{padding-right:2.5em}.block-editor .wp-block-categories ul ul{margin-top:6px}.wp-block-code>code{display:block}.wp-block-columns .wp-block{max-width:none}@media (min-width:600px){.editor-styles-wrapper .block-editor-block-list__block.wp-block-column:nth-child(2n){margin-right:32px}}@media (min-width:782px){.editor-styles-wrapper .block-editor-block-list__block.wp-block-column:not(:first-child){margin-right:32px}}.block-editor-block-list__block.wp-block-column.wp-block-column{margin-top:0;margin-bottom:0}.wp-block-cover{position:relative}.wp-block-cover.is-placeholder{min-height:auto!important;padding:0!important}.wp-block-cover.components-placeholder h2{color:inherit}.wp-block-cover .block-editor-block-list__layout{width:100%}.wp-block-cover .wp-block-cover__inner-container{text-align:right;margin-right:0;margin-left:0}.wp-block-cover .wp-block-cover__placeholder-background-options{width:100%}[data-align=left]>.wp-block-cover,[data-align=right]>.wp-block-cover{max-width:290px;width:100%}.block-library-cover__reset-button{margin-right:auto}.block-library-cover__resize-container{position:absolute!important;top:0;right:0;left:0;bottom:0}.block-library-cover__resize-container:not(.is-resizing){height:auto!important}.wp-block-embed{margin-right:0;margin-left:0;clear:both}.wp-block-embed.is-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1em;min-height:200px;text-align:center;border-radius:2px;background-color:#fff;box-shadow:inset 0 0 0 1px #1e1e1e}.wp-block-embed.is-loading p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.wp-block-embed .components-placeholder__error{word-break:break-word}.wp-block-embed .components-placeholder__learn-more{margin-top:1em}.block-library-embed__interactive-overlay{position:absolute;top:0;right:0;left:0;bottom:0;opacity:0}.wp-block-file{display:flex;justify-content:space-between;align-items:center;margin-bottom:0}.wp-block-file .wp-block-file__content-wrapper{flex-grow:1}.wp-block-file .wp-block-file__textlink{display:inline-block;min-width:1em}.wp-block-file .wp-block-file__textlink:focus{box-shadow:none}.wp-block-file .wp-block-file__button-richtext-wrapper{display:inline-block;margin-right:.75em}.wp-block-file .wp-block-file__copy-url-button{margin-right:1em}.wp-block-freeform.block-library-rich-text__tinymce{height:auto}.wp-block-freeform.block-library-rich-text__tinymce li,.wp-block-freeform.block-library-rich-text__tinymce p{line-height:1.8}.wp-block-freeform.block-library-rich-text__tinymce ol,.wp-block-freeform.block-library-rich-text__tinymce ul{padding-right:2.5em;margin-right:0}.wp-block-freeform.block-library-rich-text__tinymce blockquote{margin:0;box-shadow:inset 0 0 0 0 #ddd;border-right:4px solid #000;padding-right:1em}.wp-block-freeform.block-library-rich-text__tinymce pre{white-space:pre-wrap;font-family:Menlo,Consolas,monaco,monospace;font-size:15px;color:#1e1e1e}.wp-block-freeform.block-library-rich-text__tinymce>:first-child{margin-top:0}.wp-block-freeform.block-library-rich-text__tinymce>:last-child{margin-bottom:0}.wp-block-freeform.block-library-rich-text__tinymce.mce-edit-focus{outline:none}.wp-block-freeform.block-library-rich-text__tinymce a{color:#007cba;color:var(--wp-admin-theme-color)}.wp-block-freeform.block-library-rich-text__tinymce:focus a[data-mce-selected]{padding:0 2px;margin:0 -2px;border-radius:2px;box-shadow:0 0 0 1px #e5f5fa;background:#e5f5fa}.wp-block-freeform.block-library-rich-text__tinymce code{padding:2px;border-radius:2px;color:#1e1e1e;background:#f0f0f0;font-family:Menlo,Consolas,monaco,monospace;font-size:14px}.wp-block-freeform.block-library-rich-text__tinymce:focus code[data-mce-selected]{background:#ddd}.wp-block-freeform.block-library-rich-text__tinymce .alignright{float:right;margin:.5em 0 .5em 1em}.wp-block-freeform.block-library-rich-text__tinymce .alignleft{float:left;margin:.5em 1em .5em 0}.wp-block-freeform.block-library-rich-text__tinymce .aligncenter{display:block;margin-right:auto;margin-left:auto}.wp-block-freeform.block-library-rich-text__tinymce .wp-more-tag{width:96%;height:20px;display:block;margin:15px auto;outline:0;cursor:default;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAADtgAAAAoBAMAAAA86gLBAAAAJFBMVEVMaXG7u7vBwcHDw8POzs68vLzGxsbMzMy+vr7AwMDQ0NDGxsYKLGzpAAAADHRSTlMA///zWf+/f///TMxNVGuqAAABwklEQVR4Ae3dMXLaQBTH4bfj8UCpx8hq0vgKvgFNemhT6Qo6gg6R+0ZahM2QLmyBJ99XWP9V5+o3jIUcLQEAAAAAAAAAAAAAAAAAAAAAAABQ8j0WL9lfTtlt18uNXAUA8O/KVtfa1tdcrOdSh9gCQAMlh1hMNbZZ1bsrsQWABsrhLRbz7z5in/32UbfUMUbkMQCAh5RfGYv82UdMdZ6HS2wjT2ILAI8r3XmM2B3WvM59vfO2xXYW2yYAENuPU8S+X/N67mKxzy225yaxBQCxLV392UdcvwV0jPVUj98ntkBWT7C7+9u2/V/vGtvXIWJ6/4rtbottWa6Ri0NUT/u72LYttrb97LHdvUXMxxrb8TO2W2TF1rYbbLG1bbGNjMi4+2Sbi1FsbbvNFlvbFtt5fDnE3d9sP1/XeIyV2Nr2U2/guZUuptNrH/dPI9eLB6SaAEBs6wPJf3/PNk9tYgsAYrv/8TFuzx/fvkFqGtrEFgDEdpcZUb7ejXy6ntrEFgDENvL6gsas4vbdyKt4DACI7TxElJv/Z7udpqFNbAFAbKduy2uU2trttM/x28UWAAAAAAAAAAAAAAAAAAAAAAAAAADgDyPwGmGTCZp7AAAAAElFTkSuQmCC);background-size:1900px 20px;background-repeat:no-repeat;background-position:50%}.wp-block-freeform.block-library-rich-text__tinymce img::selection{background-color:transparent}.wp-block-freeform.block-library-rich-text__tinymce div.mceTemp{-ms-user-select:element}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption{margin:0;max-width:100%}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption a,.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption img{display:block}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption,.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption *{-webkit-user-drag:none}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption .wp-caption-dd{padding-top:.5em;margin:0}.wp-block-freeform.block-library-rich-text__tinymce .wpview{width:99.99%;position:relative;clear:both;margin-bottom:16px;border:1px solid transparent}.wp-block-freeform.block-library-rich-text__tinymce .wpview iframe{display:block;max-width:100%;background:transparent}.wp-block-freeform.block-library-rich-text__tinymce .wpview .mce-shim{position:absolute;top:0;left:0;bottom:0;right:0}.wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected="2"] .mce-shim{display:none}.wp-block-freeform.block-library-rich-text__tinymce .wpview .loading-placeholder{border:1px dashed #ddd;padding:10px}.wp-block-freeform.block-library-rich-text__tinymce .wpview .wpview-error{border:1px solid #ddd;padding:1em 0;margin:0;word-wrap:break-word}.wp-block-freeform.block-library-rich-text__tinymce .wpview .wpview-error p{margin:0;text-align:center}.wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected] .loading-placeholder,.wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected] .wpview-error{border-color:transparent}.wp-block-freeform.block-library-rich-text__tinymce .wpview .dashicons{display:block;margin:0 auto;width:32px;height:32px;font-size:32px}.wp-block-freeform.block-library-rich-text__tinymce .wpview.wpview-type-gallery:after{content:"";display:table;clear:both}.wp-block-freeform.block-library-rich-text__tinymce .gallery img[data-mce-selected]:focus{outline:none}.wp-block-freeform.block-library-rich-text__tinymce .gallery a{cursor:default}.wp-block-freeform.block-library-rich-text__tinymce .gallery{margin:auto -6px;padding:6px 0;line-height:1;overflow-x:hidden}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-item{float:right;margin:0;text-align:center;padding:6px;box-sizing:border-box}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-caption,.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-icon{margin:0}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-caption{font-size:13px;margin:4px 0}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-1 .gallery-item{width:100%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-2 .gallery-item{width:50%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-3 .gallery-item{width:33.33333%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-4 .gallery-item{width:25%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-5 .gallery-item{width:20%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-6 .gallery-item{width:16.66667%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-7 .gallery-item{width:14.28571%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-8 .gallery-item{width:12.5%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-9 .gallery-item{width:11.11111%}.wp-block-freeform.block-library-rich-text__tinymce .gallery img{max-width:100%;height:auto;border:none;padding:0}div[data-type="core/freeform"]:before{transition:border-color .1s linear,box-shadow .1s linear;border:1px solid #ddd;outline:1px solid transparent}@media (prefers-reduced-motion:reduce){div[data-type="core/freeform"]:before{transition-duration:0s}}div[data-type="core/freeform"].is-selected:before{border-color:#1e1e1e}div[data-type="core/freeform"] .block-editor-block-contextual-toolbar+div{margin-top:0;padding-top:0}div[data-type="core/freeform"].is-selected .block-library-rich-text__tinymce:after{content:"";display:table;clear:both}.mce-toolbar-grp .mce-btn.mce-active:hover button,.mce-toolbar-grp .mce-btn.mce-active:hover i,.mce-toolbar-grp .mce-btn.mce-active button,.mce-toolbar-grp .mce-btn.mce-active i{color:#1e1e1e}.mce-toolbar-grp .mce-rtl .mce-flow-layout-item.mce-last{margin-left:0;margin-right:8px}.mce-toolbar-grp .mce-btn i{font-style:normal}.block-library-classic__toolbar{display:none;width:auto;position:-webkit-sticky;position:sticky;z-index:31;top:0;border:1px solid #ddd;border-bottom:none;border-radius:2px;margin:0 0 8px;padding:0}div[data-type="core/freeform"].is-selected .block-library-classic__toolbar,div[data-type="core/freeform"].is-typing .block-library-classic__toolbar{display:block;border-color:#1e1e1e}.block-library-classic__toolbar .mce-tinymce{box-shadow:none}@media (min-width:600px){.block-library-classic__toolbar{padding:0}}.block-library-classic__toolbar:empty{display:block;background:#f5f5f5;border-bottom:1px solid #e2e4e7}.block-library-classic__toolbar:empty:before{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;content:attr(data-placeholder);color:#555d66;line-height:37px;padding:14px}.block-library-classic__toolbar div.mce-toolbar-grp{border-bottom:1px solid #1e1e1e}.block-library-classic__toolbar .mce-menubar,.block-library-classic__toolbar .mce-menubar>div,.block-library-classic__toolbar .mce-tinymce-inline,.block-library-classic__toolbar .mce-tinymce-inline>div,.block-library-classic__toolbar div.mce-toolbar-grp,.block-library-classic__toolbar div.mce-toolbar-grp>div{height:auto!important;width:100%!important}.block-library-classic__toolbar .mce-container-body.mce-abs-layout{overflow:visible}.block-library-classic__toolbar .mce-menubar,.block-library-classic__toolbar div.mce-toolbar-grp{position:static}.block-library-classic__toolbar .mce-toolbar-grp>div{padding:1px 3px}.block-library-classic__toolbar .mce-toolbar-grp .mce-toolbar:not(:first-child){display:none}.block-library-classic__toolbar.has-advanced-toolbar .mce-toolbar-grp .mce-toolbar{display:block}.wp-block-gallery li{list-style-type:none}.wp-block-gallery .block-editor-media-placeholder{margin-bottom:12px;padding:12px}.wp-block-gallery .block-editor-media-placeholder .components-placeholder__label{display:none}.wp-block-gallery .block-editor-media-placeholder .components-button{margin-bottom:0}figure.wp-block-gallery{display:block;margin:0}.blocks-gallery-grid.blocks-gallery-grid{padding-right:0;margin-right:0;margin-bottom:0}.blocks-gallery-item figure:not(.is-selected):focus,.blocks-gallery-item img:focus{outline:none}.blocks-gallery-item figure.is-selected{box-shadow:0 0 0 1px #fff,0 0 0 3px #007cba;box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color);border-radius:2px;outline:2px solid transparent}.blocks-gallery-item figure.is-selected img{border-radius:2px}.blocks-gallery-item figure.is-transient img{opacity:.3}.blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu{display:inline-flex}.blocks-gallery-item .block-editor-media-placeholder{margin:0;height:100%}.blocks-gallery-item .block-editor-media-placeholder .components-placeholder__label{display:flex}.block-library-gallery-item__inline-menu{display:none;position:absolute;top:-2px;margin:8px;z-index:20;transition:box-shadow .2s ease-out;border-radius:2px;background:#fff;border:1px solid #1e1e1e}@media (prefers-reduced-motion:reduce){.block-library-gallery-item__inline-menu{transition-duration:0s}}.block-library-gallery-item__inline-menu:hover{box-shadow:0 2px 6px rgba(0,0,0,.05)}@media (min-width:600px){.columns-7 .block-library-gallery-item__inline-menu,.columns-8 .block-library-gallery-item__inline-menu{padding:2px}}.block-library-gallery-item__inline-menu .components-button.has-icon:not(:focus){border:none;box-shadow:none}@media (min-width:600px){.columns-7 .block-library-gallery-item__inline-menu .components-button.has-icon,.columns-8 .block-library-gallery-item__inline-menu .components-button.has-icon{padding:0;width:inherit;height:inherit}}.block-library-gallery-item__inline-menu.is-left{right:-2px}.block-library-gallery-item__inline-menu.is-right{left:-2px}.blocks-gallery-item .components-spinner{position:absolute;top:50%;right:50%;margin-top:-9px;margin-right:-9px}.wp-block-group .block-editor-block-list__insertion-point{right:0;left:0}.wp-block-group>.wp-block-group__inner-container>[data-align=full]{margin-right:auto;margin-left:auto}.wp-block-group.has-background>.wp-block-group__inner-container>[data-align=full]{margin-right:-30px;width:calc(100% + 60px)}[data-align=full] .wp-block-group>.wp-block-group__inner-container>.wp-block{padding-right:14px;padding-left:14px}@media (min-width:600px){[data-align=full] .wp-block-group>.wp-block-group__inner-container>.wp-block{padding-right:0;padding-left:0}}[data-align=full] .wp-block-group>.wp-block-group__inner-container>[data-align=full]{padding-left:0;padding-right:0;right:0;width:100%;max-width:none}[data-align=full] .wp-block-group.has-background>.wp-block-group__inner-container>[data-align=full]{width:calc(100% + 60px)}[data-type="core/group"].is-selected .block-list-appender{margin-right:0;margin-left:0}[data-type="core/group"].is-selected .has-background .block-list-appender{margin-top:18px;margin-bottom:18px}.block-library-heading-level-dropdown .components-popover__content{min-width:230px}.block-library-heading-level-dropdown .components-popover__content>div{padding:0}.block-library-heading-level-toolbar{border:none}.wp-block-html{margin-bottom:28px}.wp-block-html .block-library-html__preview-overlay{position:absolute;width:100%;height:100%;top:0;right:0}.wp-block-html .block-editor-plain-text{font-family:Menlo,Consolas,monaco,monospace;color:#1e1e1e;padding:.8em 1em;border:1px solid #ddd;border-radius:4px;max-height:250px;font-size:16px}@media (min-width:600px){.wp-block-html .block-editor-plain-text{font-size:13px}}.wp-block-html .block-editor-plain-text:focus{box-shadow:none}figure.wp-block-image:not(.wp-block){margin:0}.wp-block-image{position:relative}.wp-block-image .is-applying img,.wp-block-image.is-transient img{opacity:.3}.wp-block-image figcaption img{display:inline}.wp-block-image .components-spinner{position:absolute;top:50%;right:50%;margin-top:-9px;margin-right:-9px}.wp-block-image .components-resizable-box__container{display:inline-block}.wp-block-image .components-resizable-box__container img{display:block;width:inherit;height:inherit}.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{position:absolute;right:0;left:0;margin:-1px 0}@media (min-width:600px){.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{margin:-1px}}[data-align=full]>.wp-block-image img,[data-align=wide]>.wp-block-image img{width:100%}.wp-block[data-align=left]>.wp-block-image{margin:.5em 0 .5em 1em}.wp-block[data-align=right]>.wp-block-image{margin:.5em 1em .5em 0}.wp-block[data-align=center]>.wp-block-image{margin-right:auto;margin-left:auto;text-align:center}.wp-block-image__crop-area{position:relative;max-width:100%;width:100%}.wp-block-image__crop-icon{padding:0 8px;min-width:48px;display:flex;justify-content:center;align-items:center}.wp-block-image__crop-icon svg{fill:currentColor}.wp-block-image__zoom .components-popover__content{overflow:visible}.wp-block-image__zoom .components-range-control{flex:1}.wp-block-image__zoom .components-base-control__field{display:flex;margin-bottom:0}.wp-block-image__aspect-ratio{height:46px;margin-bottom:-8px;display:flex;align-items:center}.wp-block-image__aspect-ratio .components-button{width:36px;padding-right:0;padding-left:0}.wp-block-latest-comments.has-avatars .avatar{margin-left:10px}.wp-block-latest-comments__comment-excerpt p{font-size:14px;line-height:1.8;margin:5px 0 20px;padding-top:0}.wp-block-latest-comments.has-avatars .wp-block-latest-comments__comment{min-height:36px}.block-editor .wp-block-latest-posts{padding-right:2.5em}.block-editor .wp-block-latest-posts.is-grid{padding-right:0}.wp-block-latest-posts li a>div{display:inline}.edit-post-visual-editor .wp-block-latest-posts.is-grid li{margin-bottom:20px}ol.has-background.has-background,ul.has-background.has-background{padding:1.25em 2.375em}.wp-block-media-text .__resizable_base__{-ms-grid-column:1;-ms-grid-column-span:2;grid-column:1/span 2;-ms-grid-row:2;grid-row:2}.wp-block-media-text .editor-media-container__resizer{width:100%!important}.wp-block-media-text.is-image-fill .editor-media-container__resizer{height:100%!important}.wp-block-media-text>.block-editor-block-list__layout>.block-editor-block-list__block{max-width:unset}.block-editor-block-list__block[data-type="core/more"]{max-width:100%;text-align:center;margin-top:28px;margin-bottom:28px}.block-editor .wp-block-more{display:block;text-align:center;white-space:nowrap}.block-editor .wp-block-more input[type=text]{position:relative;font-size:13px;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#757575;border:none;box-shadow:none;white-space:nowrap;text-align:center;margin:0;border-radius:4px;background:#fff;padding:6px 8px;height:24px;max-width:100%}.block-editor .wp-block-more input[type=text]:focus{box-shadow:none}.block-editor .wp-block-more:before{content:"";position:absolute;top:50%;right:0;left:0;border-top:3px dashed #ccc}.editor-styles-wrapper .wp-block-navigation ol,.editor-styles-wrapper .wp-block-navigation ul{margin-bottom:0;margin-right:0;padding-right:0}.editor-styles-wrapper .wp-block-navigation .block-editor-block-list__block{margin:0}.wp-block-navigation .block-list-appender{margin:0;display:flex;align-items:center}.wp-block-navigation.is-vertical .block-list-appender{margin:8px}.wp-block-navigation__inserter-content{padding:16px}.wp-block-navigation__container{min-height:46px}.wp-block-navigation__container.is-parent-of-selected-block{visibility:visible;opacity:1}.has-child:hover>.wp-block-navigation__container,.has-child>.wp-block-navigation__container{opacity:0;visibility:hidden}.has-child.has-child-selected>.wp-block-navigation__container,.has-child.is-selected>.wp-block-navigation__container,.is-dragging-components-draggable .has-child.is-dragging-within>.wp-block-navigation__container{opacity:1;visibility:visible}.is-dragging-components-draggable .wp-block-navigation-link>.wp-block-navigation__container{opacity:1;visibility:hidden}.is-dragging-components-draggable .wp-block-navigation-link>.wp-block-navigation__container .block-editor-block-draggable-chip-wrapper{visibility:visible}.block-library-colors-selector{width:auto}.block-library-colors-selector .block-library-colors-selector__toggle{display:block;margin:0 auto;padding:3px;width:auto}.block-library-colors-selector .block-library-colors-selector__icon-container{height:30px;position:relative;margin:0 auto;padding:3px;display:flex;align-items:center;border-radius:4px}.block-library-colors-selector .block-library-colors-selector__state-selection{margin-right:auto;margin-left:auto;border-radius:11px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);width:22px;min-width:22px;height:22px;min-height:22px;line-height:20px;padding:2px}.block-library-colors-selector .block-library-colors-selector__state-selection>svg{min-width:auto!important}.block-library-colors-selector .block-library-colors-selector__state-selection.has-text-color>svg,.block-library-colors-selector .block-library-colors-selector__state-selection.has-text-color>svg path{color:inherit}.block-library-colors-selector__popover .color-palette-controller-container{padding:16px}.block-library-colors-selector__popover .components-base-control__label{height:20px;line-height:20px}.block-library-colors-selector__popover .component-color-indicator{float:left;margin-top:2px}.block-library-colors-selector__popover .components-panel__body-title{display:none}.is-editing>.wp-block-navigation__container{visibility:visible;opacity:1;display:flex;flex-direction:column}.wp-block-navigation-placeholder .components-spinner{margin-top:-4px;margin-right:4px;vertical-align:middle;margin-left:7px}.wp-block-navigation-placeholder .components-custom-select-control__label{margin-bottom:1rem}.wp-block-navigation-placeholder .components-custom-select-control__button{height:auto;padding:.375rem 1.5rem .375rem .75rem;min-width:13.75rem}.wp-block-navigation-placeholder .components-custom-select-control.has-menus .components-custom-select-control__item.is-create-empty-option{position:relative;margin-top:20px}.wp-block-navigation-placeholder .components-custom-select-control.has-menus .components-custom-select-control__item.is-create-empty-option:before{content:"";position:absolute;top:-10px;right:25px;left:25px;height:15px;border-top:1px solid #757575}.wp-block-navigation-placeholder .components-custom-select-control__label{font-size:13px;font-weight:400}.wp-block-navigation-placeholder .components-custom-select-control__menu{margin:0;max-height:none;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.wp-block-navigation .block-editor-button-block-appender{justify-content:flex-start}.wp-block-navigation-link__container,.wp-block-navigation-link__field .components-text-control__input.components-text-control__input{border-radius:0;line-height:36px;min-height:36px}.wp-block-navigation-link .block-editor-block-list__layout{display:block}.wp-block-navigation-link.is-editing,.wp-block-navigation-link.is-selected{min-width:20px}.wp-block-navigation-link .block-editor-rich-text__editable.is-selected:not(.keep-placeholder-on-focus):not(:focus)[data-rich-text-placeholder]:after{display:inline-block}.wp-block-navigation-link .block-list-appender{margin:10px 10px 16px 16px}.wp-block-navigation-link__separator{margin:8px 0;border-top:1px solid #ddd}.components-popover.wp-block-navigation-link__dropdown-content{margin-top:-1px;margin-right:-4px}.wp-block-navigation-link__dropdown-content .components-popover__content>div{padding:8px 0}.wp-block-navigation .block-editor-block-list__block[data-type="core/navigation-link"]>.block-editor-block-list__insertion-point{display:none}.block-editor-block-list__block[data-type="core/nextpage"]{max-width:100%;margin-top:28px;margin-bottom:28px}.wp-block-nextpage{display:block;text-align:center;white-space:nowrap}.wp-block-nextpage>span{font-size:13px;position:relative;display:inline-block;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#757575;border-radius:4px;background:#fff;padding:6px 8px;height:24px}.wp-block-nextpage:before{content:"";position:absolute;top:50%;right:0;left:0;border-top:3px dashed #ccc}.block-editor-block-list__block[data-type="core/paragraph"].has-drop-cap:focus{min-height:auto!important}.wp-block-post-content__placeholder{height:100px;border:1px dashed;display:flex;justify-content:center;align-items:center}.wp-block-post-content__placeholder span{font-style:italic}.wp-block-post-excerpt .wp-block-post-excerpt__excerpt.is-inline{display:inline-block}.wp-block-post-author{display:flex;flex-wrap:wrap}.wp-block-post-author .wp-block-post-author__byline{font-size:.5em;margin-top:0;position:relative;font-style:normal}.wp-block-post-author .wp-block-post-author__content{flex-grow:1;flex-basis:0}.wp-block-post-author .wp-block-post-author__avatar img{margin:0}.wp-block-post-author .wp-block-post-author__avatar{margin-bottom:-8px}.wp-block-post-author .wp-block-post-author__name{margin:0;font-weight:700}.wp-block-post-author .wp-block-post-author__bio{margin:0 0 8px;font-size:.7em}.wp-block[data-align=left]>.wp-block-pullquote p,.wp-block[data-align=right]>.wp-block-pullquote p{font-size:20px}.wp-block-pullquote blockquote p{font-size:28px;line-height:1.6}.wp-block-pullquote.is-style-solid-color{margin-right:0;margin-left:0}.wp-block-pullquote.is-style-solid-color blockquote p{font-size:32px}.wp-block-pullquote.is-style-solid-color .wp-block-pullquote__citation{text-transform:none;font-style:normal}.wp-block-pullquote .wp-block-pullquote__citation{color:inherit}.wp-block-quote__citation{font-size:13px}.block-editor .wp-block-rss{padding-right:2.5em}.block-editor .wp-block-rss.is-grid{padding-right:0}.wp-block-rss li a>div{display:inline}.wp-block-rss__placeholder-form{display:flex;align-items:stretch}.wp-block-rss__placeholder-form>*{margin-bottom:8px}@media (min-width:782px){.wp-block-rss__placeholder-form>*{margin-bottom:0}}.wp-block-rss__placeholder-input{display:flex;align-items:stretch;flex-grow:1}.wp-block-rss__placeholder-input .components-base-control__field{display:flex;align-items:stretch;flex-grow:1;margin:0 0 0 8px}.wp-block-search .wp-block-search__input{padding:8px}.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper{padding:4px}.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper,.wp-block-search .wp-block-search__input{border-radius:2px;border:1px solid #949494;color:rgba(30,30,30,.62);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;background-color:#fff}.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper:focus,.wp-block-search .wp-block-search__input:focus{outline:none}.wp-block-search .wp-block-search__button{background:#f7f7f7;border-radius:2px;border:1px solid #ccc;box-shadow:inset 0 -1px 0 #ccc;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:6px 10px;color:#32373c}.wp-block-search__components-button-group{margin-top:10px}.block-editor-block-list__block[data-type="core/separator"]{padding-top:.1px;padding-bottom:.1px}.block-editor-block-list__block[data-type="core/separator"].block-editor-block-list__block{margin-top:0;margin-bottom:0}.wp-block-shortcode{display:flex;flex-direction:column;padding:14px;font-size:13px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;margin-bottom:28px}.wp-block-shortcode label{display:flex;align-items:center;white-space:nowrap;font-weight:600;flex-shrink:0}.wp-block-shortcode .block-editor-plain-text{max-height:250px}.wp-block-shortcode .dashicon{margin-left:8px}.block-editor .blocks-shortcode__textarea,.blocks-shortcode__textarea{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 .blocks-shortcode__textarea,.blocks-shortcode__textarea{transition-duration:0s}}@media (min-width:600px){.block-editor .blocks-shortcode__textarea,.blocks-shortcode__textarea{font-size:13px;line-height:normal}}.block-editor .blocks-shortcode__textarea:focus,.blocks-shortcode__textarea: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 .blocks-shortcode__textarea::-webkit-input-placeholder,.blocks-shortcode__textarea::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.block-editor .blocks-shortcode__textarea::-moz-placeholder,.blocks-shortcode__textarea::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.block-editor .blocks-shortcode__textarea:-ms-input-placeholder,.blocks-shortcode__textarea:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .block-editor .blocks-shortcode__textarea::-webkit-input-placeholder,.is-dark-theme .blocks-shortcode__textarea::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor .blocks-shortcode__textarea::-moz-placeholder,.is-dark-theme .blocks-shortcode__textarea::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor .blocks-shortcode__textarea:-ms-input-placeholder,.is-dark-theme .blocks-shortcode__textarea:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.wp-block[data-align=center]>.wp-block-site-logo{margin-right:auto;margin-left:auto;text-align:center}.wp-block-site-logo.is-resized{display:table}.wp-block-site-logo .custom-logo-link{cursor:inherit}.wp-block-site-logo .custom-logo-link:focus{box-shadow:none}.wp-block-site-logo .custom-logo-link.is-transient img{opacity:.3}.wp-block-site-logo img{display:block;max-width:100%}.wp-block-social-links .wp-social-link button{color:currentColor;padding:6px}.wp-block-social-links.is-style-pill-shape .wp-social-link button{padding-right:16px;padding-left:16px}.wp-block-social-links div.block-editor-url-input{display:inline-block;margin-right:8px}.editor-styles-wrapper .wp-block-social-link{margin:0 0 8px 8px}.editor-styles-wrapper .wp-block-social-link.is-hovered,.editor-styles-wrapper .wp-block-social-link.is-selected{transform:none}.editor-styles-wrapper .wp-block-social-links{padding:0}.wp-block-social-links .block-list-appender{margin:0;display:flex;align-items:center}.wp-block[data-align=center]>.wp-block-social-links{justify-content:center}.block-editor-block-preview__content .wp-social-link:disabled{opacity:1}[data-type="core/social-links"]:not(.is-selected):not(.has-child-selected) .wp-block-social-links{min-height:36px}[data-type="core/social-links"] .wp-social-link__is-incomplete{transition:transform .1s ease;transform-origin:center center}[data-type="core/social-links"]:not(.is-selected):not(.has-child-selected) .wp-social-link__is-incomplete{opacity:0;transform:scale(0);width:0;padding:0;margin-left:0}.wp-social-link.wp-social-link__is-incomplete{opacity:.5}@media (prefers-reduced-motion:reduce){.wp-social-link.wp-social-link__is-incomplete{transition-duration:0s}}.wp-block-social-links .is-selected .wp-social-link__is-incomplete,.wp-social-link.wp-social-link__is-incomplete:focus,.wp-social-link.wp-social-link__is-incomplete:hover{opacity:1}[data-type="core/social-links"] .wp-social-link:focus{opacity:1;box-shadow:0 0 0 2px #fff,0 0 0 4px #007cba;box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-block-list__layout .block-editor-block-list__block[data-type="core/social-link"]:not([contenteditable]):focus:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block[data-type="core/social-link"].is-selected:after{left:8px}.block-editor-block-list__block[data-type="core/spacer"]:before{content:"";display:block;position:absolute;width:100%;height:24px;transform:translateY(-12px)}.block-library-spacer__resize-container.has-show-handle{background:#f0f0f0}.is-dark-theme .block-library-spacer__resize-container.has-show-handle{background:hsla(0,0%,100%,.15)}.block-library-spacer__resize-container{clear:both;margin-bottom:28px}.block-library-spacer__resize-container .components-resizable-box__handle:before{content:none}.edit-post-visual-editor p.wp-block-subhead{color:#555;font-size:1.1em;font-style:italic}.wp-block[data-align=center]>.wp-block-table,.wp-block[data-align=left]>.wp-block-table,.wp-block[data-align=right]>.wp-block-table{height:auto}.wp-block[data-align=center]>.wp-block-table table,.wp-block[data-align=left]>.wp-block-table table,.wp-block[data-align=right]>.wp-block-table table{width:auto}.wp-block[data-align=center]>.wp-block-table td,.wp-block[data-align=center]>.wp-block-table th,.wp-block[data-align=left]>.wp-block-table td,.wp-block[data-align=left]>.wp-block-table th,.wp-block[data-align=right]>.wp-block-table td,.wp-block[data-align=right]>.wp-block-table th{word-break:break-word}.wp-block[data-align=center]>.wp-block-table{text-align:initial}.wp-block[data-align=center]>.wp-block-table table{margin:0 auto}.wp-block-table{margin:0}.wp-block-table table{border-collapse:collapse}.wp-block-table td,.wp-block-table th{border:1px solid}.wp-block-table td.is-selected,.wp-block-table th.is-selected{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:inset 0 0 0 1px #007cba;box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color);border-style:double}.wp-block-table figcaption{color:#555;font-size:13px;text-align:center}.blocks-table__placeholder-form.blocks-table__placeholder-form{display:flex;flex-direction:column;align-items:flex-start}.blocks-table__placeholder-form.blocks-table__placeholder-form>*{margin-bottom:8px}@media (min-width:782px){.blocks-table__placeholder-form.blocks-table__placeholder-form{flex-direction:row;align-items:flex-end}.blocks-table__placeholder-form.blocks-table__placeholder-form>*{margin-bottom:0}}.blocks-table__placeholder-input{width:112px;margin-left:8px;margin-bottom:0}.blocks-table__placeholder-input input{height:36px}.blocks-table__placeholder-input .components-base-control__field{margin-bottom:0}.block-editor .wp-block-tag-cloud a{display:inline-block;margin-left:5px}.block-editor .wp-block-tag-cloud span{display:inline-block;margin-right:5px;color:#757575;text-decoration:none}.wp-block-template-part__placeholder-preview-dropdown-content .components-popover__content,.wp-block-template-part__preview-dropdown-content .components-popover__content{min-width:320px;padding:0}.wp-block-template-part__selection-preview-search-form{border-bottom:1px solid #ddd}.wp-block-template-part__selection-preview-container{background:#fff;padding-bottom:16px}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item{border-radius:2px;cursor:pointer;margin-top:16px;transition:all .05s ease-in-out;border:1px solid transparent}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item:hover{border:1px solid #007cba;border:1px solid var(--wp-admin-theme-color)}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-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}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item.is-placeholder{min-height:100px}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item-title{padding:4px;font-size:12px;text-align:right}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-panel-group-header{padding:16px 16px 0}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-panel-group-content{padding:0 16px}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-panel-group-title{color:#007cba;color:var(--wp-admin-theme-color);text-transform:uppercase;font-size:11px;font-weight:500}.wp-block-template-part__block-control-group{display:flex}.wp-block-template-part__block-control-group .wp-block-template-part__name-panel{outline:1px solid transparent;padding:8px 12px 8px 0}.wp-block-template-part__block-control-group .wp-block-template-part__name-panel .components-base-control__field{align-items:center;display:flex;margin-bottom:0}.wp-block-template-part__block-control-group .wp-block-template-part__name-panel .components-base-control__label{margin-bottom:0;margin-left:8px}.is-dark-theme .is-navigate-mode .is-selected .wp-block-template-part__name-panel,.is-navigate-mode .is-selected .wp-block-template-part__name-panel{box-shadow:0 0 0 1px #007cba;box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.block-editor-block-list__block[data-type="core/template-part"].has-child-selected:after,.block-editor-block-list__block[data-type="core/template-part"].is-selected:after{top:1px;bottom:1px;right:1px;left:1px;border-radius:1px}.block-editor-block-list__block[data-type="core/template-part"].is-selected:after{box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color)}.is-dark-theme .block-editor-block-list__block[data-type="core/template-part"].is-selected:after{box-shadow:0 0 0 1.5px #fff}.block-editor-block-list__block[data-type="core/template-part"].has-child-selected:after{box-shadow:0 0 0 1px #ddd}.is-dark-theme .block-editor-block-list__block[data-type="core/template-part"].has-child-selected:after{box-shadow:0 0 0 1.5px #757575}.wp-block-text-columns .block-editor-rich-text__editable:focus{outline:1px solid #ddd}pre.wp-block-verse{color:#1e1e1e;white-space:nowrap;font-family:inherit;font-size:inherit;padding:1em;overflow:auto}.wp-block[data-align=center]>.wp-block-video{text-align:center}.editor-video-poster-control .components-base-control__label{display:block}.editor-video-poster-control .components-button{margin-left:8px}.wp-block[data-type="core/widget-area"]{max-width:700px}.wp-block-widget-area>.components-panel__body.is-opened:not(.widget-area-is-opened){padding:0}.wp-block-widget-area>.components-panel__body.is-opened:not(.widget-area-is-opened)>.components-panel__body-title{padding:0;margin:0}.wp-block-widget-area>.components-panel__body>.block-editor-inner-blocks{padding-top:24px}.editor-styles-wrapper .wp-block.wp-block-query,.editor-styles-wrapper .wp-block.wp-block-query-loop{max-width:100%}.block-editor-block-list__layout .reusable-block-edit-panel{align-items:center;display:flex;flex-wrap:wrap;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:6px 12px;border-radius:2px;background-color:#fff;box-shadow:0 0 0 1px #1e1e1e;outline:1px solid transparent}.block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__info{margin-left:auto}.block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__label{margin-left:8px;white-space:nowrap;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__title{flex:1 1 100%}.block-editor-block-list__layout .reusable-block-edit-panel .components-button.reusable-block-edit-panel__button{flex-shrink:0}@media (min-width:960px){.block-editor-block-list__layout .reusable-block-edit-panel{flex-wrap:nowrap}.block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__title{margin:0}.block-editor-block-list__layout .reusable-block-edit-panel .components-button.reusable-block-edit-panel__button{margin:0 8px 0 0}}.reusable-block-edit-panel__title[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){.reusable-block-edit-panel__title[type=text]{transition-duration:0s}}@media (min-width:600px){.reusable-block-edit-panel__title[type=text]{font-size:13px;line-height:normal}}.reusable-block-edit-panel__title[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}.reusable-block-edit-panel__title[type=text]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.reusable-block-edit-panel__title[type=text]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.reusable-block-edit-panel__title[type=text]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .reusable-block-edit-panel__title[type=text]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .reusable-block-edit-panel__title[type=text]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .reusable-block-edit-panel__title[type=text]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .is-navigate-mode .is-selected .reusable-block-edit-panel,.is-navigate-mode .is-selected .reusable-block-edit-panel{box-shadow:0 0 0 1px #007cba;box-shadow:0 0 0 1px var(--wp-admin-theme-color)}:root .editor-styles-wrapper .has-pale-pink-background-color{background-color:#f78da7}:root .editor-styles-wrapper .has-vivid-red-background-color{background-color:#cf2e2e}:root .editor-styles-wrapper .has-luminous-vivid-orange-background-color{background-color:#ff6900}:root .editor-styles-wrapper .has-luminous-vivid-amber-background-color{background-color:#fcb900}:root .editor-styles-wrapper .has-light-green-cyan-background-color{background-color:#7bdcb5}:root .editor-styles-wrapper .has-vivid-green-cyan-background-color{background-color:#00d084}:root .editor-styles-wrapper .has-pale-cyan-blue-background-color{background-color:#8ed1fc}:root .editor-styles-wrapper .has-vivid-cyan-blue-background-color{background-color:#0693e3}:root .editor-styles-wrapper .has-vivid-purple-background-color{background-color:#9b51e0}:root .editor-styles-wrapper .has-white-background-color{background-color:#fff}:root .editor-styles-wrapper .has-very-light-gray-background-color{background-color:#eee}:root .editor-styles-wrapper .has-cyan-bluish-gray-background-color{background-color:#abb8c3}:root .editor-styles-wrapper .has-very-dark-gray-background-color{background-color:#313131}:root .editor-styles-wrapper .has-black-background-color{background-color:#000}:root .editor-styles-wrapper .has-pale-pink-color{color:#f78da7}:root .editor-styles-wrapper .has-vivid-red-color{color:#cf2e2e}:root .editor-styles-wrapper .has-luminous-vivid-orange-color{color:#ff6900}:root .editor-styles-wrapper .has-luminous-vivid-amber-color{color:#fcb900}:root .editor-styles-wrapper .has-light-green-cyan-color{color:#7bdcb5}:root .editor-styles-wrapper .has-vivid-green-cyan-color{color:#00d084}:root .editor-styles-wrapper .has-pale-cyan-blue-color{color:#8ed1fc}:root .editor-styles-wrapper .has-vivid-cyan-blue-color{color:#0693e3}:root .editor-styles-wrapper .has-vivid-purple-color{color:#9b51e0}:root .editor-styles-wrapper .has-white-color{color:#fff}:root .editor-styles-wrapper .has-very-light-gray-color{color:#eee}:root .editor-styles-wrapper .has-cyan-bluish-gray-color{color:#abb8c3}:root .editor-styles-wrapper .has-very-dark-gray-color{color:#313131}:root .editor-styles-wrapper .has-black-color{color:#000}:root .editor-styles-wrapper .has-vivid-cyan-blue-to-vivid-purple-gradient-background{background:linear-gradient(-135deg,#0693e3,#9b51e0)}:root .editor-styles-wrapper .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(-135deg,#00d084,#0693e3)}:root .editor-styles-wrapper .has-light-green-cyan-to-vivid-green-cyan-gradient-background{background:linear-gradient(-135deg,#7adcb4,#00d082)}:root .editor-styles-wrapper .has-luminous-vivid-amber-to-luminous-vivid-orange-gradient-background{background:linear-gradient(-135deg,#fcb900,#ff6900)}:root .editor-styles-wrapper .has-luminous-vivid-orange-to-vivid-red-gradient-background{background:linear-gradient(-135deg,#ff6900,#cf2e2e)}:root .editor-styles-wrapper .has-very-light-gray-to-cyan-bluish-gray-gradient-background{background:linear-gradient(-135deg,#eee,#a9b8c3)}:root .editor-styles-wrapper .has-cool-to-warm-spectrum-gradient-background{background:linear-gradient(-135deg,#4aeadc,#9778d1 20%,#cf2aba 40%,#ee2c82 60%,#fb6962 80%,#fef84c)}:root .editor-styles-wrapper .has-blush-light-purple-gradient-background{background:linear-gradient(-135deg,#ffceec,#9896f0)}:root .editor-styles-wrapper .has-blush-bordeaux-gradient-background{background:linear-gradient(-135deg,#fecda5,#fe2d2d 50%,#6b003e)}:root .editor-styles-wrapper .has-purple-crush-gradient-background{background:linear-gradient(-135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .editor-styles-wrapper .has-luminous-dusk-gradient-background{background:linear-gradient(-135deg,#ffcb70,#c751c0 50%,#4158d0)}:root .editor-styles-wrapper .has-hazy-dawn-gradient-background{background:linear-gradient(-135deg,#faaca8,#dad0ec)}:root .editor-styles-wrapper .has-pale-ocean-gradient-background{background:linear-gradient(-135deg,#fff5cb,#b6e3d4 50%,#33a7b5)}:root .editor-styles-wrapper .has-electric-grass-gradient-background{background:linear-gradient(-135deg,#caf880,#71ce7e)}:root .editor-styles-wrapper .has-subdued-olive-gradient-background{background:linear-gradient(-135deg,#fafae1,#67a671)}:root .editor-styles-wrapper .has-atomic-cream-gradient-background{background:linear-gradient(-135deg,#fdd79a,#004a59)}:root .editor-styles-wrapper .has-nightshade-gradient-background{background:linear-gradient(-135deg,#330968,#31cdcf)}:root .editor-styles-wrapper .has-midnight-gradient-background{background:linear-gradient(-135deg,#020381,#2874fc)}.editor-styles-wrapper .has-small-font-size{font-size:13px}.editor-styles-wrapper .has-normal-font-size,.editor-styles-wrapper .has-regular-font-size{font-size:16px}.editor-styles-wrapper .has-medium-font-size{font-size:20px}.editor-styles-wrapper .has-large-font-size{font-size:36px}.editor-styles-wrapper .has-huge-font-size,.editor-styles-wrapper .has-larger-font-size{font-size:42px}.block-editor-block-list__block{margin-top:28px;margin-bottom:28px}#end-resizable-editor-section{display:none} \ No newline at end of file +: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 ul.wp-block-archives{padding-right:2.5em}.wp-block-audio{margin-right:0;margin-left:0}.edit-post-visual-editor .block-library-block__reusable-block-container .block-editor-writing-flow__click-redirect{min-height:auto}.edit-post-visual-editor .block-library-block__reusable-block-container .is-root-container{padding-right:0;padding-left:0}.edit-post-visual-editor .block-library-block__reusable-block-container .block-editor-writing-flow{display:block}.edit-post-visual-editor .block-library-block__reusable-block-container .components-disabled .block-list-appender{display:none}.wp-block[data-align=center]>.wp-block-button{text-align:center;margin-right:auto;margin-left:auto}.wp-block[data-align=right]>.wp-block-button{text-align:right}.wp-block-button{position:relative;cursor:text}.wp-block-button:not(.has-text-color):not(.is-style-outline) [data-rich-text-placeholder]:after{color:#fff}.wp-block-button:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px #007cba;box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:-2px}.wp-block-button[data-rich-text-placeholder]:after{opacity:.8}.wp-block-button__inline-link{color:#757575;height:0;overflow:hidden;max-width:290px}.wp-block-button__inline-link-input__suggestions{max-width:290px}@media (min-width:782px){.wp-block-button__inline-link,.wp-block-button__inline-link-input__suggestions{max-width:260px}}@media (min-width:960px){.wp-block-button__inline-link,.wp-block-button__inline-link-input__suggestions{max-width:290px}}.is-selected .wp-block-button__inline-link{height:auto;overflow:visible;margin-top:16px}div[data-type="core/button"]{display:table}.wp-block-buttons>.wp-block{margin-right:0}.wp-block[data-align=center]>.wp-block-buttons{display:flex;align-items:center;flex-wrap:wrap;justify-content:center}.wp-block[data-align=right]>.wp-block-buttons{display:flex;justify-content:flex-end}.wp-block-buttons>.block-list-appender{display:inline-block}.block-editor .wp-block-categories ul{padding-right:2.5em}.block-editor .wp-block-categories ul ul{margin-top:6px}.wp-block-code>code{display:block}.wp-block-columns .wp-block{max-width:none}@media (min-width:600px){.editor-styles-wrapper .block-editor-block-list__block.wp-block-column:nth-child(2n){margin-right:32px}}@media (min-width:782px){.editor-styles-wrapper .block-editor-block-list__block.wp-block-column:not(:first-child){margin-right:32px}}.block-editor-block-list__block.wp-block-column.wp-block-column{margin-top:0;margin-bottom:0}.wp-block-cover{position:relative}.wp-block-cover.is-placeholder{min-height:auto!important;padding:0!important}.wp-block-cover.components-placeholder h2{color:inherit}.wp-block-cover.is-transient:before{background-color:#fff;opacity:.3}.wp-block-cover .components-spinner{position:absolute;z-index:1;top:50%;right:50%;transform:translate(50%,-50%);margin:0}.wp-block-cover .block-editor-block-list__layout{width:100%}.wp-block-cover .wp-block-cover__inner-container{text-align:right;margin-right:0;margin-left:0}.wp-block-cover .wp-block-cover__placeholder-background-options{width:100%}[data-align=left]>.wp-block-cover,[data-align=right]>.wp-block-cover{max-width:290px;width:100%}.block-library-cover__reset-button{margin-right:auto}.block-library-cover__resize-container{position:absolute!important;top:0;right:0;left:0;bottom:0}.block-library-cover__resize-container:not(.is-resizing){height:auto!important}.wp-block-embed{margin-right:0;margin-left:0;clear:both}.wp-block-embed.is-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1em;min-height:200px;text-align:center;border-radius:2px;background-color:#fff;box-shadow:inset 0 0 0 1px #1e1e1e}.wp-block-embed.is-loading p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.wp-block-embed .components-placeholder__error{word-break:break-word}.wp-block-embed .components-placeholder__learn-more{margin-top:1em}.block-library-embed__interactive-overlay{position:absolute;top:0;right:0;left:0;bottom:0;opacity:0}.wp-block-file{display:flex;justify-content:space-between;align-items:center;margin-bottom:0}.wp-block-file .wp-block-file__content-wrapper{flex-grow:1}.wp-block-file .wp-block-file__textlink{display:inline-block;min-width:1em}.wp-block-file .wp-block-file__textlink:focus{box-shadow:none}.wp-block-file .wp-block-file__button-richtext-wrapper{display:inline-block;margin-right:.75em}.wp-block-file .wp-block-file__copy-url-button{margin-right:1em}.wp-block-freeform.block-library-rich-text__tinymce{height:auto}.wp-block-freeform.block-library-rich-text__tinymce li,.wp-block-freeform.block-library-rich-text__tinymce p{line-height:1.8}.wp-block-freeform.block-library-rich-text__tinymce ol,.wp-block-freeform.block-library-rich-text__tinymce ul{padding-right:2.5em;margin-right:0}.wp-block-freeform.block-library-rich-text__tinymce blockquote{margin:0;box-shadow:inset 0 0 0 0 #ddd;border-right:4px solid #000;padding-right:1em}.wp-block-freeform.block-library-rich-text__tinymce pre{white-space:pre-wrap;font-family:Menlo,Consolas,monaco,monospace;font-size:15px;color:#1e1e1e}.wp-block-freeform.block-library-rich-text__tinymce>:first-child{margin-top:0}.wp-block-freeform.block-library-rich-text__tinymce>:last-child{margin-bottom:0}.wp-block-freeform.block-library-rich-text__tinymce.mce-edit-focus{outline:none}.wp-block-freeform.block-library-rich-text__tinymce a{color:#007cba;color:var(--wp-admin-theme-color)}.wp-block-freeform.block-library-rich-text__tinymce:focus a[data-mce-selected]{padding:0 2px;margin:0 -2px;border-radius:2px;box-shadow:0 0 0 1px #e5f5fa;background:#e5f5fa}.wp-block-freeform.block-library-rich-text__tinymce code{padding:2px;border-radius:2px;color:#1e1e1e;background:#f0f0f0;font-family:Menlo,Consolas,monaco,monospace;font-size:14px}.wp-block-freeform.block-library-rich-text__tinymce:focus code[data-mce-selected]{background:#ddd}.wp-block-freeform.block-library-rich-text__tinymce .alignright{float:right;margin:.5em 0 .5em 1em}.wp-block-freeform.block-library-rich-text__tinymce .alignleft{float:left;margin:.5em 1em .5em 0}.wp-block-freeform.block-library-rich-text__tinymce .aligncenter{display:block;margin-right:auto;margin-left:auto}.wp-block-freeform.block-library-rich-text__tinymce .wp-more-tag{width:96%;height:20px;display:block;margin:15px auto;outline:0;cursor:default;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAADtgAAAAoBAMAAAA86gLBAAAAJFBMVEVMaXG7u7vBwcHDw8POzs68vLzGxsbMzMy+vr7AwMDQ0NDGxsYKLGzpAAAADHRSTlMA///zWf+/f///TMxNVGuqAAABwklEQVR4Ae3dMXLaQBTH4bfj8UCpx8hq0vgKvgFNemhT6Qo6gg6R+0ZahM2QLmyBJ99XWP9V5+o3jIUcLQEAAAAAAAAAAAAAAAAAAAAAAABQ8j0WL9lfTtlt18uNXAUA8O/KVtfa1tdcrOdSh9gCQAMlh1hMNbZZ1bsrsQWABsrhLRbz7z5in/32UbfUMUbkMQCAh5RfGYv82UdMdZ6HS2wjT2ILAI8r3XmM2B3WvM59vfO2xXYW2yYAENuPU8S+X/N67mKxzy225yaxBQCxLV392UdcvwV0jPVUj98ntkBWT7C7+9u2/V/vGtvXIWJ6/4rtbottWa6Ri0NUT/u72LYttrb97LHdvUXMxxrb8TO2W2TF1rYbbLG1bbGNjMi4+2Sbi1FsbbvNFlvbFtt5fDnE3d9sP1/XeIyV2Nr2U2/guZUuptNrH/dPI9eLB6SaAEBs6wPJf3/PNk9tYgsAYrv/8TFuzx/fvkFqGtrEFgDEdpcZUb7ejXy6ntrEFgDENvL6gsas4vbdyKt4DACI7TxElJv/Z7udpqFNbAFAbKduy2uU2trttM/x28UWAAAAAAAAAAAAAAAAAAAAAAAAAADgDyPwGmGTCZp7AAAAAElFTkSuQmCC);background-size:1900px 20px;background-repeat:no-repeat;background-position:50%}.wp-block-freeform.block-library-rich-text__tinymce img::selection{background-color:transparent}.wp-block-freeform.block-library-rich-text__tinymce div.mceTemp{-ms-user-select:element}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption{margin:0;max-width:100%}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption a,.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption img{display:block}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption,.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption *{-webkit-user-drag:none}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption .wp-caption-dd{padding-top:.5em;margin:0}.wp-block-freeform.block-library-rich-text__tinymce .wpview{width:99.99%;position:relative;clear:both;margin-bottom:16px;border:1px solid transparent}.wp-block-freeform.block-library-rich-text__tinymce .wpview iframe{display:block;max-width:100%;background:transparent}.wp-block-freeform.block-library-rich-text__tinymce .wpview .mce-shim{position:absolute;top:0;left:0;bottom:0;right:0}.wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected="2"] .mce-shim{display:none}.wp-block-freeform.block-library-rich-text__tinymce .wpview .loading-placeholder{border:1px dashed #ddd;padding:10px}.wp-block-freeform.block-library-rich-text__tinymce .wpview .wpview-error{border:1px solid #ddd;padding:1em 0;margin:0;word-wrap:break-word}.wp-block-freeform.block-library-rich-text__tinymce .wpview .wpview-error p{margin:0;text-align:center}.wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected] .loading-placeholder,.wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected] .wpview-error{border-color:transparent}.wp-block-freeform.block-library-rich-text__tinymce .wpview .dashicons{display:block;margin:0 auto;width:32px;height:32px;font-size:32px}.wp-block-freeform.block-library-rich-text__tinymce .wpview.wpview-type-gallery:after{content:"";display:table;clear:both}.wp-block-freeform.block-library-rich-text__tinymce .gallery img[data-mce-selected]:focus{outline:none}.wp-block-freeform.block-library-rich-text__tinymce .gallery a{cursor:default}.wp-block-freeform.block-library-rich-text__tinymce .gallery{margin:auto -6px;padding:6px 0;line-height:1;overflow-x:hidden}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-item{float:right;margin:0;text-align:center;padding:6px;box-sizing:border-box}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-caption,.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-icon{margin:0}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-caption{font-size:13px;margin:4px 0}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-1 .gallery-item{width:100%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-2 .gallery-item{width:50%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-3 .gallery-item{width:33.33333%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-4 .gallery-item{width:25%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-5 .gallery-item{width:20%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-6 .gallery-item{width:16.66667%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-7 .gallery-item{width:14.28571%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-8 .gallery-item{width:12.5%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-9 .gallery-item{width:11.11111%}.wp-block-freeform.block-library-rich-text__tinymce .gallery img{max-width:100%;height:auto;border:none;padding:0}div[data-type="core/freeform"]:before{transition:border-color .1s linear,box-shadow .1s linear;border:1px solid #ddd;outline:1px solid transparent}@media (prefers-reduced-motion:reduce){div[data-type="core/freeform"]:before{transition-duration:0s}}div[data-type="core/freeform"].is-selected:before{border-color:#1e1e1e}div[data-type="core/freeform"] .block-editor-block-contextual-toolbar+div{margin-top:0;padding-top:0}div[data-type="core/freeform"].is-selected .block-library-rich-text__tinymce:after{content:"";display:table;clear:both}.mce-toolbar-grp .mce-btn.mce-active:hover button,.mce-toolbar-grp .mce-btn.mce-active:hover i,.mce-toolbar-grp .mce-btn.mce-active button,.mce-toolbar-grp .mce-btn.mce-active i{color:#1e1e1e}.mce-toolbar-grp .mce-rtl .mce-flow-layout-item.mce-last{margin-left:0;margin-right:8px}.mce-toolbar-grp .mce-btn i{font-style:normal}.block-library-classic__toolbar{display:none;width:auto;position:-webkit-sticky;position:sticky;z-index:31;top:0;border:1px solid #ddd;border-bottom:none;border-radius:2px;margin:0 0 8px;padding:0}div[data-type="core/freeform"].is-selected .block-library-classic__toolbar,div[data-type="core/freeform"].is-typing .block-library-classic__toolbar{display:block;border-color:#1e1e1e}.block-library-classic__toolbar .mce-tinymce{box-shadow:none}@media (min-width:600px){.block-library-classic__toolbar{padding:0}}.block-library-classic__toolbar:empty{display:block;background:#f5f5f5;border-bottom:1px solid #e2e4e7}.block-library-classic__toolbar:empty:before{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;content:attr(data-placeholder);color:#555d66;line-height:37px;padding:14px}.block-library-classic__toolbar div.mce-toolbar-grp{border-bottom:1px solid #1e1e1e}.block-library-classic__toolbar .mce-menubar,.block-library-classic__toolbar .mce-menubar>div,.block-library-classic__toolbar .mce-tinymce-inline,.block-library-classic__toolbar .mce-tinymce-inline>div,.block-library-classic__toolbar div.mce-toolbar-grp,.block-library-classic__toolbar div.mce-toolbar-grp>div{height:auto!important;width:100%!important}.block-library-classic__toolbar .mce-container-body.mce-abs-layout{overflow:visible}.block-library-classic__toolbar .mce-menubar,.block-library-classic__toolbar div.mce-toolbar-grp{position:static}.block-library-classic__toolbar .mce-toolbar-grp>div{padding:1px 3px}.block-library-classic__toolbar .mce-toolbar-grp .mce-toolbar:not(:first-child){display:none}.block-library-classic__toolbar.has-advanced-toolbar .mce-toolbar-grp .mce-toolbar{display:block}.wp-block-gallery li{list-style-type:none}.wp-block-gallery .block-editor-media-placeholder{margin-bottom:12px;padding:12px}.wp-block-gallery .block-editor-media-placeholder .components-placeholder__label{display:none}.wp-block-gallery .block-editor-media-placeholder .components-button{margin-bottom:0}figure.wp-block-gallery{display:block;margin:0}.blocks-gallery-grid.blocks-gallery-grid{padding-right:0;margin-right:0;margin-bottom:0}.blocks-gallery-item figure:not(.is-selected):focus,.blocks-gallery-item img:focus{outline:none}.blocks-gallery-item figure.is-selected{box-shadow:0 0 0 1px #fff,0 0 0 3px #007cba;box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color);border-radius:2px;outline:2px solid transparent}.blocks-gallery-item figure.is-selected img{border-radius:2px}.blocks-gallery-item figure.is-transient img{opacity:.3}.blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu{display:inline-flex}.blocks-gallery-item .block-editor-media-placeholder{margin:0;height:100%}.blocks-gallery-item .block-editor-media-placeholder .components-placeholder__label{display:flex}.block-library-gallery-item__inline-menu{display:none;position:absolute;top:-2px;margin:8px;z-index:20;transition:box-shadow .2s ease-out;border-radius:2px;background:#fff;border:1px solid #1e1e1e}@media (prefers-reduced-motion:reduce){.block-library-gallery-item__inline-menu{transition-duration:0s}}.block-library-gallery-item__inline-menu:hover{box-shadow:0 2px 6px rgba(0,0,0,.05)}@media (min-width:600px){.columns-7 .block-library-gallery-item__inline-menu,.columns-8 .block-library-gallery-item__inline-menu{padding:2px}}.block-library-gallery-item__inline-menu .components-button.has-icon:not(:focus){border:none;box-shadow:none}@media (min-width:600px){.columns-7 .block-library-gallery-item__inline-menu .components-button.has-icon,.columns-8 .block-library-gallery-item__inline-menu .components-button.has-icon{padding:0;width:inherit;height:inherit}}.block-library-gallery-item__inline-menu.is-left{right:-2px}.block-library-gallery-item__inline-menu.is-right{left:-2px}.blocks-gallery-item .components-spinner{position:absolute;top:50%;right:50%;margin-top:-9px;margin-right:-9px}.wp-block-group .block-editor-block-list__insertion-point{right:0;left:0}.wp-block-group>.wp-block-group__inner-container>[data-align=full]{margin-right:auto;margin-left:auto}.wp-block-group.has-background>.wp-block-group__inner-container>[data-align=full]{margin-right:-30px;width:calc(100% + 60px)}[data-align=full] .wp-block-group>.wp-block-group__inner-container>.wp-block{padding-right:14px;padding-left:14px}@media (min-width:600px){[data-align=full] .wp-block-group>.wp-block-group__inner-container>.wp-block{padding-right:0;padding-left:0}}[data-align=full] .wp-block-group>.wp-block-group__inner-container>[data-align=full]{padding-left:0;padding-right:0;right:0;width:100%;max-width:none}[data-align=full] .wp-block-group.has-background>.wp-block-group__inner-container>[data-align=full]{width:calc(100% + 60px)}[data-type="core/group"].is-selected .block-list-appender{margin-right:0;margin-left:0}[data-type="core/group"].is-selected .has-background .block-list-appender{margin-top:18px;margin-bottom:18px}.block-library-heading-level-dropdown .components-popover__content{min-width:230px}.block-library-heading-level-dropdown .components-popover__content>div{padding:0}.block-library-heading-level-toolbar{border:none}.wp-block-html{margin-bottom:28px}.wp-block-html .block-library-html__preview-overlay{position:absolute;width:100%;height:100%;top:0;right:0}.wp-block-html .block-editor-plain-text{font-family:Menlo,Consolas,monaco,monospace;color:#1e1e1e;padding:.8em 1em;border:1px solid #ddd;border-radius:4px;max-height:250px;font-size:16px}@media (min-width:600px){.wp-block-html .block-editor-plain-text{font-size:13px}}.wp-block-html .block-editor-plain-text:focus{box-shadow:none}figure.wp-block-image:not(.wp-block){margin:0}.wp-block-image{position:relative}.wp-block-image .is-applying img,.wp-block-image.is-transient img{opacity:.3}.wp-block-image figcaption img{display:inline}.wp-block-image .components-spinner{position:absolute;top:50%;right:50%;margin-top:-9px;margin-right:-9px}.wp-block-image .components-resizable-box__container{display:inline-block}.wp-block-image .components-resizable-box__container img{display:block;width:inherit;height:inherit}.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{position:absolute;right:0;left:0;margin:-1px 0}@media (min-width:600px){.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{margin:-1px}}[data-align=full]>.wp-block-image img,[data-align=wide]>.wp-block-image img{width:100%}.wp-block[data-align=left]>.wp-block-image{margin:.5em 0 .5em 1em}.wp-block[data-align=right]>.wp-block-image{margin:.5em 1em .5em 0}.wp-block[data-align=center]>.wp-block-image{margin-right:auto;margin-left:auto;text-align:center}.wp-block-image__crop-area{position:relative;max-width:100%;width:100%}.wp-block-image__crop-icon{padding:0 8px;min-width:48px;display:flex;justify-content:center;align-items:center}.wp-block-image__crop-icon svg{fill:currentColor}.wp-block-image__zoom .components-popover__content{overflow:visible}.wp-block-image__zoom .components-range-control{flex:1}.wp-block-image__zoom .components-base-control__field{display:flex;margin-bottom:0}.wp-block-image__aspect-ratio{height:46px;margin-bottom:-8px;display:flex;align-items:center}.wp-block-image__aspect-ratio .components-button{width:36px;padding-right:0;padding-left:0}.wp-block-latest-comments.has-avatars .avatar{margin-left:10px}.wp-block-latest-comments__comment-excerpt p{font-size:14px;line-height:1.8;margin:5px 0 20px;padding-top:0}.wp-block-latest-comments.has-avatars .wp-block-latest-comments__comment{min-height:36px}.block-editor .wp-block-latest-posts{padding-right:2.5em}.block-editor .wp-block-latest-posts.is-grid{padding-right:0}.wp-block-latest-posts li a>div{display:inline}.edit-post-visual-editor .wp-block-latest-posts.is-grid li{margin-bottom:20px}ol.has-background.has-background,ul.has-background.has-background{padding:1.25em 2.375em}.wp-block-media-text .__resizable_base__{-ms-grid-column:1;-ms-grid-column-span:2;grid-column:1/span 2;-ms-grid-row:2;grid-row:2}.wp-block-media-text .editor-media-container__resizer{width:100%!important}.wp-block-media-text.is-image-fill .editor-media-container__resizer{height:100%!important}.wp-block-media-text>.block-editor-block-list__layout>.block-editor-block-list__block{max-width:unset}.block-editor-block-list__block[data-type="core/more"]{max-width:100%;text-align:center;margin-top:28px;margin-bottom:28px}.block-editor .wp-block-more{display:block;text-align:center;white-space:nowrap}.block-editor .wp-block-more input[type=text]{position:relative;font-size:13px;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#757575;border:none;box-shadow:none;white-space:nowrap;text-align:center;margin:0;border-radius:4px;background:#fff;padding:6px 8px;height:24px;max-width:100%}.block-editor .wp-block-more input[type=text]:focus{box-shadow:none}.block-editor .wp-block-more:before{content:"";position:absolute;top:50%;right:0;left:0;border-top:3px dashed #ccc}.editor-styles-wrapper .wp-block-navigation ol,.editor-styles-wrapper .wp-block-navigation ul{margin-bottom:0;margin-right:0;padding-right:0}.editor-styles-wrapper .wp-block-navigation .block-editor-block-list__block{margin:0}.wp-block-navigation .block-list-appender{margin:0;display:flex;align-items:center}.wp-block-navigation.is-vertical .block-list-appender{margin:8px}.wp-block-navigation__inserter-content{padding:16px}.wp-block-navigation__container{min-height:46px}.wp-block-navigation__container.is-parent-of-selected-block{visibility:visible;opacity:1}.has-child:hover>.wp-block-navigation__container,.has-child>.wp-block-navigation__container{opacity:0;visibility:hidden}.has-child.has-child-selected>.wp-block-navigation__container,.has-child.is-selected>.wp-block-navigation__container,.is-dragging-components-draggable .has-child.is-dragging-within>.wp-block-navigation__container{opacity:1;visibility:visible}.is-dragging-components-draggable .wp-block-navigation-link>.wp-block-navigation__container{opacity:1;visibility:hidden}.is-dragging-components-draggable .wp-block-navigation-link>.wp-block-navigation__container .block-editor-block-draggable-chip-wrapper{visibility:visible}.block-library-colors-selector{width:auto}.block-library-colors-selector .block-library-colors-selector__toggle{display:block;margin:0 auto;padding:3px;width:auto}.block-library-colors-selector .block-library-colors-selector__icon-container{height:30px;position:relative;margin:0 auto;padding:3px;display:flex;align-items:center;border-radius:4px}.block-library-colors-selector .block-library-colors-selector__state-selection{margin-right:auto;margin-left:auto;border-radius:11px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);width:22px;min-width:22px;height:22px;min-height:22px;line-height:20px;padding:2px}.block-library-colors-selector .block-library-colors-selector__state-selection>svg{min-width:auto!important}.block-library-colors-selector .block-library-colors-selector__state-selection.has-text-color>svg,.block-library-colors-selector .block-library-colors-selector__state-selection.has-text-color>svg path{color:inherit}.block-library-colors-selector__popover .color-palette-controller-container{padding:16px}.block-library-colors-selector__popover .components-base-control__label{height:20px;line-height:20px}.block-library-colors-selector__popover .component-color-indicator{float:left;margin-top:2px}.block-library-colors-selector__popover .components-panel__body-title{display:none}.is-editing>.wp-block-navigation__container{visibility:visible;opacity:1;display:flex;flex-direction:column}.wp-block-navigation-placeholder .components-spinner{margin-top:-4px;margin-right:4px;vertical-align:middle;margin-left:7px}.wp-block-navigation-placeholder .components-custom-select-control__button{height:auto;padding:.375rem 1.5rem .375rem .75rem;min-width:13.75rem}.wp-block-navigation-placeholder .components-custom-select-control.has-menus .components-custom-select-control__item.is-create-empty-option{position:relative;margin-top:20px}.wp-block-navigation-placeholder .components-custom-select-control.has-menus .components-custom-select-control__item.is-create-empty-option:before{content:"";position:absolute;top:-10px;right:25px;left:25px;height:15px;border-top:1px solid #757575}.wp-block-navigation-placeholder .components-custom-select-control__label{margin-bottom:1rem;font-size:13px;font-weight:400}.wp-block-navigation-placeholder .components-custom-select-control__menu{margin:0;max-height:none;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.wp-block-navigation .block-editor-button-block-appender{justify-content:flex-start}.wp-block-navigation-link__container,.wp-block-navigation-link__field .components-text-control__input.components-text-control__input{border-radius:0;line-height:36px;min-height:36px}.wp-block-navigation-link .block-editor-block-list__layout{display:block}.wp-block-navigation-link.is-editing,.wp-block-navigation-link.is-selected{min-width:20px}.wp-block-navigation-link .block-editor-rich-text__editable.is-selected:not(.keep-placeholder-on-focus):not(:focus)[data-rich-text-placeholder]:after{display:inline-block}.wp-block-navigation-link .block-list-appender{margin:10px 10px 16px 16px}.wp-block-navigation-link__separator{margin:8px 0;border-top:1px solid #ddd}.components-popover.wp-block-navigation-link__dropdown-content{margin-top:-1px;margin-right:-4px}.wp-block-navigation-link__dropdown-content .components-popover__content>div{padding:8px 0}.wp-block-navigation .block-editor-block-list__block[data-type="core/navigation-link"]>.block-editor-block-list__insertion-point{display:none}.block-editor-block-list__block[data-type="core/nextpage"]{max-width:100%;margin-top:28px;margin-bottom:28px}.wp-block-nextpage{display:block;text-align:center;white-space:nowrap}.wp-block-nextpage>span{font-size:13px;position:relative;display:inline-block;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#757575;border-radius:4px;background:#fff;padding:6px 8px;height:24px}.wp-block-nextpage:before{content:"";position:absolute;top:50%;right:0;left:0;border-top:3px dashed #ccc}.block-editor-block-list__block[data-type="core/paragraph"].has-drop-cap:focus{min-height:auto!important}.wp-block-post-content__placeholder{height:100px;border:1px dashed;display:flex;justify-content:center;align-items:center}.wp-block-post-content__placeholder span{font-style:italic}.wp-block-post-excerpt .wp-block-post-excerpt__excerpt.is-inline{display:inline-block}.wp-block-post-author{display:flex;flex-wrap:wrap}.wp-block-post-author .wp-block-post-author__byline{font-size:.5em;margin-top:0;position:relative;font-style:normal}.wp-block-post-author .wp-block-post-author__content{flex-grow:1;flex-basis:0}.wp-block-post-author .wp-block-post-author__avatar img{margin:0}.wp-block-post-author .wp-block-post-author__avatar{margin-bottom:-8px}.wp-block-post-author .wp-block-post-author__name{margin:0;font-weight:700}.wp-block-post-author .wp-block-post-author__bio{margin:0 0 8px;font-size:.7em}.wp-block[data-align=left]>.wp-block-pullquote p,.wp-block[data-align=right]>.wp-block-pullquote p{font-size:20px}.wp-block-pullquote blockquote p{font-size:28px;line-height:1.6}.wp-block-pullquote.is-style-solid-color{margin-right:0;margin-left:0}.wp-block-pullquote.is-style-solid-color blockquote p{font-size:32px}.wp-block-pullquote.is-style-solid-color .wp-block-pullquote__citation{text-transform:none;font-style:normal}.wp-block-pullquote .wp-block-pullquote__citation{color:inherit}.wp-block-quote__citation{font-size:13px}.block-editor .wp-block-rss{padding-right:2.5em}.block-editor .wp-block-rss.is-grid{padding-right:0}.wp-block-rss li a>div{display:inline}.wp-block-rss__placeholder-form{display:flex;align-items:stretch}.wp-block-rss__placeholder-form>*{margin-bottom:8px}@media (min-width:782px){.wp-block-rss__placeholder-form>*{margin-bottom:0}}.wp-block-rss__placeholder-input{display:flex;align-items:stretch;flex-grow:1}.wp-block-rss__placeholder-input .components-base-control__field{display:flex;align-items:stretch;flex-grow:1;margin:0 0 0 8px}.wp-block-search .wp-block-search__input{padding:8px}.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper{padding:4px}.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper,.wp-block-search .wp-block-search__input{border-radius:2px;border:1px solid #949494;color:rgba(30,30,30,.62);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;background-color:#fff}.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper:focus,.wp-block-search .wp-block-search__input:focus{outline:none}.wp-block-search .wp-block-search__button{background:#f7f7f7;border-radius:2px;border:1px solid #ccc;box-shadow:inset 0 -1px 0 #ccc;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:6px 10px;color:#32373c}.wp-block-search__components-button-group{margin-top:10px}.block-editor-block-list__block[data-type="core/separator"]{padding-top:.1px;padding-bottom:.1px}.block-editor-block-list__block[data-type="core/separator"].block-editor-block-list__block{margin-top:0;margin-bottom:0}.wp-block-shortcode{display:flex;flex-direction:column;padding:14px;font-size:13px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;margin-bottom:28px}.wp-block-shortcode label{display:flex;align-items:center;white-space:nowrap;font-weight:600;flex-shrink:0}.wp-block-shortcode .block-editor-plain-text{max-height:250px}.wp-block-shortcode .dashicon{margin-left:8px}.block-editor .blocks-shortcode__textarea,.blocks-shortcode__textarea{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 .blocks-shortcode__textarea,.blocks-shortcode__textarea{transition-duration:0s}}@media (min-width:600px){.block-editor .blocks-shortcode__textarea,.blocks-shortcode__textarea{font-size:13px;line-height:normal}}.block-editor .blocks-shortcode__textarea:focus,.blocks-shortcode__textarea: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 .blocks-shortcode__textarea::-webkit-input-placeholder,.blocks-shortcode__textarea::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.block-editor .blocks-shortcode__textarea::-moz-placeholder,.blocks-shortcode__textarea::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.block-editor .blocks-shortcode__textarea:-ms-input-placeholder,.blocks-shortcode__textarea:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .block-editor .blocks-shortcode__textarea::-webkit-input-placeholder,.is-dark-theme .blocks-shortcode__textarea::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor .blocks-shortcode__textarea::-moz-placeholder,.is-dark-theme .blocks-shortcode__textarea::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor .blocks-shortcode__textarea:-ms-input-placeholder,.is-dark-theme .blocks-shortcode__textarea:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.wp-block[data-align=center]>.wp-block-site-logo{margin-right:auto;margin-left:auto;text-align:center}.wp-block-site-logo.is-resized{display:table}.wp-block-site-logo .custom-logo-link{cursor:inherit}.wp-block-site-logo .custom-logo-link:focus{box-shadow:none}.wp-block-site-logo .custom-logo-link.is-transient img{opacity:.3}.wp-block-site-logo img{display:block;max-width:100%}.wp-block-social-links .wp-social-link button{color:currentColor;padding:6px}.wp-block-social-links.is-style-pill-shape .wp-social-link button{padding-right:16px;padding-left:16px}.wp-block-social-links div.block-editor-url-input{display:inline-block;margin-right:8px}.editor-styles-wrapper .wp-block-social-link{margin:0 0 8px 8px}.editor-styles-wrapper .wp-block-social-link.is-hovered,.editor-styles-wrapper .wp-block-social-link.is-selected{transform:none}.editor-styles-wrapper .wp-block-social-links{padding:0}.wp-block-social-links__social-placeholder{display:flex}.wp-block-social-links__social-placeholder .wp-block-social-link{display:inline-flex;align-items:center;justify-content:center;margin:0 0 8px 8px;width:36px;height:36px;border-radius:50%;opacity:.8}.is-style-logos-only .wp-block-social-links__social-placeholder .wp-block-social-link:before{content:"";display:block;width:18px;height:18px;border-radius:50%;opacity:.8;background:currentColor}.is-style-pill-shape .wp-block-social-links__social-placeholder .wp-block-social-link{border-radius:9999px;padding-right:28px;padding-left:28px}.wp-block-social-links .block-list-appender{margin:0 0 8px;display:flex;align-items:center}.wp-block[data-align=center]>.wp-block-social-links{justify-content:center}.block-editor-block-preview__content .wp-social-link:disabled{opacity:1}[data-type="core/social-links"]:not(.is-selected):not(.has-child-selected) .wp-block-social-links{min-height:36px}.wp-social-link.wp-social-link__is-incomplete{opacity:.5}@media (prefers-reduced-motion:reduce){.wp-social-link.wp-social-link__is-incomplete{transition-duration:0s}}.wp-block-social-links .is-selected .wp-social-link__is-incomplete,.wp-social-link.wp-social-link__is-incomplete:focus,.wp-social-link.wp-social-link__is-incomplete:hover{opacity:1}[data-type="core/social-links"] .wp-social-link:focus{opacity:1;box-shadow:0 0 0 2px #fff,0 0 0 4px #007cba;box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-block-list__layout .block-editor-block-list__block[data-type="core/social-link"]:not([contenteditable]):focus:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block[data-type="core/social-link"].is-selected:after{left:8px}.block-editor-block-list__block[data-type="core/spacer"]:before{content:"";display:block;position:absolute;width:100%;height:24px;transform:translateY(-12px)}.block-library-spacer__resize-container.has-show-handle{background:#f0f0f0}.is-dark-theme .block-library-spacer__resize-container.has-show-handle{background:hsla(0,0%,100%,.15)}.block-library-spacer__resize-container{clear:both;margin-bottom:28px}.block-library-spacer__resize-container .components-resizable-box__handle:before{content:none}.edit-post-visual-editor p.wp-block-subhead{color:#555;font-size:1.1em;font-style:italic}.wp-block-table{margin:0}.wp-block[data-align=center]>.wp-block-table,.wp-block[data-align=left]>.wp-block-table,.wp-block[data-align=right]>.wp-block-table{height:auto}.wp-block[data-align=center]>.wp-block-table table,.wp-block[data-align=left]>.wp-block-table table,.wp-block[data-align=right]>.wp-block-table table{width:auto}.wp-block[data-align=center]>.wp-block-table td,.wp-block[data-align=center]>.wp-block-table th,.wp-block[data-align=left]>.wp-block-table td,.wp-block[data-align=left]>.wp-block-table th,.wp-block[data-align=right]>.wp-block-table td,.wp-block[data-align=right]>.wp-block-table th{word-break:break-word}.wp-block[data-align=center]>.wp-block-table{text-align:initial}.wp-block[data-align=center]>.wp-block-table table{margin:0 auto}.wp-block-table table{border-collapse:collapse}.wp-block-table td,.wp-block-table th{border:1px solid}.wp-block-table td.is-selected,.wp-block-table th.is-selected{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:inset 0 0 0 1px #007cba;box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color);border-style:double}.wp-block-table figcaption{color:#555;font-size:13px;text-align:center}.blocks-table__placeholder-form.blocks-table__placeholder-form{display:flex;flex-direction:column;align-items:flex-start}.blocks-table__placeholder-form.blocks-table__placeholder-form>*{margin-bottom:8px}@media (min-width:782px){.blocks-table__placeholder-form.blocks-table__placeholder-form{flex-direction:row;align-items:flex-end}.blocks-table__placeholder-form.blocks-table__placeholder-form>*{margin-bottom:0}}.blocks-table__placeholder-input{width:112px;margin-left:8px;margin-bottom:0}.blocks-table__placeholder-input input{height:36px}.blocks-table__placeholder-input .components-base-control__field{margin-bottom:0}.block-editor .wp-block-tag-cloud a{display:inline-block;margin-left:5px}.block-editor .wp-block-tag-cloud span{display:inline-block;margin-right:5px;color:#757575;text-decoration:none}.wp-block-template-part__placeholder-preview-dropdown-content .components-popover__content,.wp-block-template-part__preview-dropdown-content .components-popover__content{min-width:320px;padding:0}.wp-block-template-part__selection-preview-search-form{border-bottom:1px solid #ddd}.wp-block-template-part__selection-preview-container{background:#fff;padding-bottom:16px}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item{border-radius:2px;cursor:pointer;margin-top:16px;transition:all .05s ease-in-out;border:1px solid transparent;width:100%;background-color:#fff}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item:hover{border:1px solid #007cba;border:1px solid var(--wp-admin-theme-color)}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-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}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item.is-placeholder{min-height:100px}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item-title{padding:4px;font-size:12px;text-align:right}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-panel-group-header{padding:16px 16px 0}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-panel-group-content{padding:0 16px}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-panel-group-title{color:#007cba;color:var(--wp-admin-theme-color);text-transform:uppercase;font-size:11px;font-weight:500}.wp-block-template-part__block-control-group{display:flex}.wp-block-template-part__block-control-group .wp-block-template-part__name-panel{outline:1px solid transparent;padding:8px 12px 8px 0}.wp-block-template-part__block-control-group .wp-block-template-part__name-panel .components-base-control__field{align-items:center;display:flex;margin-bottom:0}.wp-block-template-part__block-control-group .wp-block-template-part__name-panel .components-base-control__label{margin-bottom:0;margin-left:8px}.is-dark-theme .is-navigate-mode .is-selected .wp-block-template-part__name-panel,.is-navigate-mode .is-selected .wp-block-template-part__name-panel{box-shadow:0 0 0 1px #007cba;box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.block-editor-block-list__block[data-type="core/template-part"].has-child-selected:after,.block-editor-block-list__block[data-type="core/template-part"].is-selected:after{top:1px;bottom:1px;right:1px;left:1px;border-radius:1px}.block-editor-block-list__block[data-type="core/template-part"].is-selected:after{box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color)}.is-dark-theme .block-editor-block-list__block[data-type="core/template-part"].is-selected:after{box-shadow:0 0 0 1.5px #fff}.block-editor-block-list__block[data-type="core/template-part"].has-child-selected:after{box-shadow:0 0 0 1px #ddd}.is-dark-theme .block-editor-block-list__block[data-type="core/template-part"].has-child-selected:after{box-shadow:0 0 0 1.5px #757575}.wp-block-text-columns .block-editor-rich-text__editable:focus{outline:1px solid #ddd}pre.wp-block-verse{color:#1e1e1e;white-space:nowrap;font-family:inherit;font-size:inherit;padding:1em;overflow:auto}.wp-block[data-align=center]>.wp-block-video{text-align:center}.editor-video-poster-control .components-base-control__label{display:block}.editor-video-poster-control .components-button{margin-left:8px}.block-library-video-tracks-editor{z-index:159990}.block-library-video-tracks-editor>.components-popover__content{width:360px}.block-library-video-tracks-editor__track-list-track{display:flex;place-content:space-between;align-items:baseline;padding-right:12px}.block-library-video-tracks-editor__single-track-editor-label-language{display:flex;margin-top:12px}.block-library-video-tracks-editor__single-track-editor-label-language>.components-base-control{width:50%}.block-library-video-tracks-editor__single-track-editor-label-language>.components-base-control:first-child{margin-left:16px}.block-library-video-tracks-editor__single-track-editor-kind-select{max-width:240px}.block-library-video-tracks-editor__single-track-editor-buttons-container{display:flex;place-content:space-between;margin-top:32px}.block-library-video-tracks-editor__single-track-editor-edit-track-label{margin-top:4px;margin-bottom:12px;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500;display:block}.block-library-video-tracks-editor>.components-popover__content>div{padding:0}.block-library-video-tracks-editor__add-tracks-container .components-menu-group__label,.block-library-video-tracks-editor__track-list .components-menu-group__label{padding:0}.block-library-video-tracks-editor__add-tracks-container,.block-library-video-tracks-editor__single-track-editor,.block-library-video-tracks-editor__track-list{padding:12px}.block-library-video-tracks-editor__single-track-editor .components-base-control .components-base-control__label{margin-bottom:4px}.block-library-video-tracks-editor__single-track-editor .components-base-control .components-base-control__field{margin-bottom:12px}.block-library-video-tracks-editor__single-track-editor .components-base-control .components-text-control__input{margin-right:0}.block-library-video-tracks-editor__single-track-editor .components-base-control .components-input-control__label{margin-bottom:4px}.editor-styles-wrapper .wp-block.wp-block-query,.editor-styles-wrapper .wp-block.wp-block-query-loop{max-width:100%}div[data-type="core/post-featured-image"] .post-featured-image_placeholder{display:flex;flex-direction:row;align-items:flex-start;border-radius:2px;background-color:#fff;box-shadow:inset 0 0 0 1px #1e1e1e;padding:12px}div[data-type="core/post-featured-image"] .post-featured-image_placeholder svg{margin-left:12px}div[data-type="core/post-featured-image"] .post-featured-image_placeholder p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;margin:0}div[data-type="core/post-featured-image"] img{max-width:100%;height:auto;display:block}.block-editor-block-list__layout .reusable-block-edit-panel{align-items:center;display:flex;flex-wrap:wrap;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:6px 12px;border-radius:2px;background-color:#fff;box-shadow:0 0 0 1px #1e1e1e;outline:1px solid transparent}.block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__info{margin-left:auto}.block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__label{margin-left:8px;white-space:nowrap;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__title{flex:1 1 100%}.block-editor-block-list__layout .reusable-block-edit-panel .components-button.reusable-block-edit-panel__button{flex-shrink:0}@media (min-width:960px){.block-editor-block-list__layout .reusable-block-edit-panel{flex-wrap:nowrap}.block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__title{margin:0}.block-editor-block-list__layout .reusable-block-edit-panel .components-button.reusable-block-edit-panel__button{margin:0 8px 0 0}}.reusable-block-edit-panel__title[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){.reusable-block-edit-panel__title[type=text]{transition-duration:0s}}@media (min-width:600px){.reusable-block-edit-panel__title[type=text]{font-size:13px;line-height:normal}}.reusable-block-edit-panel__title[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}.reusable-block-edit-panel__title[type=text]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.reusable-block-edit-panel__title[type=text]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.reusable-block-edit-panel__title[type=text]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .reusable-block-edit-panel__title[type=text]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .reusable-block-edit-panel__title[type=text]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .reusable-block-edit-panel__title[type=text]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .is-navigate-mode .is-selected .reusable-block-edit-panel,.is-navigate-mode .is-selected .reusable-block-edit-panel{box-shadow:0 0 0 1px #007cba;box-shadow:0 0 0 1px var(--wp-admin-theme-color)}:root .editor-styles-wrapper .has-pale-pink-background-color{background-color:#f78da7}:root .editor-styles-wrapper .has-vivid-red-background-color{background-color:#cf2e2e}:root .editor-styles-wrapper .has-luminous-vivid-orange-background-color{background-color:#ff6900}:root .editor-styles-wrapper .has-luminous-vivid-amber-background-color{background-color:#fcb900}:root .editor-styles-wrapper .has-light-green-cyan-background-color{background-color:#7bdcb5}:root .editor-styles-wrapper .has-vivid-green-cyan-background-color{background-color:#00d084}:root .editor-styles-wrapper .has-pale-cyan-blue-background-color{background-color:#8ed1fc}:root .editor-styles-wrapper .has-vivid-cyan-blue-background-color{background-color:#0693e3}:root .editor-styles-wrapper .has-vivid-purple-background-color{background-color:#9b51e0}:root .editor-styles-wrapper .has-white-background-color{background-color:#fff}:root .editor-styles-wrapper .has-very-light-gray-background-color{background-color:#eee}:root .editor-styles-wrapper .has-cyan-bluish-gray-background-color{background-color:#abb8c3}:root .editor-styles-wrapper .has-very-dark-gray-background-color{background-color:#313131}:root .editor-styles-wrapper .has-black-background-color{background-color:#000}:root .editor-styles-wrapper .has-pale-pink-color{color:#f78da7}:root .editor-styles-wrapper .has-vivid-red-color{color:#cf2e2e}:root .editor-styles-wrapper .has-luminous-vivid-orange-color{color:#ff6900}:root .editor-styles-wrapper .has-luminous-vivid-amber-color{color:#fcb900}:root .editor-styles-wrapper .has-light-green-cyan-color{color:#7bdcb5}:root .editor-styles-wrapper .has-vivid-green-cyan-color{color:#00d084}:root .editor-styles-wrapper .has-pale-cyan-blue-color{color:#8ed1fc}:root .editor-styles-wrapper .has-vivid-cyan-blue-color{color:#0693e3}:root .editor-styles-wrapper .has-vivid-purple-color{color:#9b51e0}:root .editor-styles-wrapper .has-white-color{color:#fff}:root .editor-styles-wrapper .has-very-light-gray-color{color:#eee}:root .editor-styles-wrapper .has-cyan-bluish-gray-color{color:#abb8c3}:root .editor-styles-wrapper .has-very-dark-gray-color{color:#313131}:root .editor-styles-wrapper .has-black-color{color:#000}:root .editor-styles-wrapper .has-vivid-cyan-blue-to-vivid-purple-gradient-background{background:linear-gradient(-135deg,#0693e3,#9b51e0)}:root .editor-styles-wrapper .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(-135deg,#00d084,#0693e3)}:root .editor-styles-wrapper .has-light-green-cyan-to-vivid-green-cyan-gradient-background{background:linear-gradient(-135deg,#7adcb4,#00d082)}:root .editor-styles-wrapper .has-luminous-vivid-amber-to-luminous-vivid-orange-gradient-background{background:linear-gradient(-135deg,#fcb900,#ff6900)}:root .editor-styles-wrapper .has-luminous-vivid-orange-to-vivid-red-gradient-background{background:linear-gradient(-135deg,#ff6900,#cf2e2e)}:root .editor-styles-wrapper .has-very-light-gray-to-cyan-bluish-gray-gradient-background{background:linear-gradient(-135deg,#eee,#a9b8c3)}:root .editor-styles-wrapper .has-cool-to-warm-spectrum-gradient-background{background:linear-gradient(-135deg,#4aeadc,#9778d1 20%,#cf2aba 40%,#ee2c82 60%,#fb6962 80%,#fef84c)}:root .editor-styles-wrapper .has-blush-light-purple-gradient-background{background:linear-gradient(-135deg,#ffceec,#9896f0)}:root .editor-styles-wrapper .has-blush-bordeaux-gradient-background{background:linear-gradient(-135deg,#fecda5,#fe2d2d 50%,#6b003e)}:root .editor-styles-wrapper .has-purple-crush-gradient-background{background:linear-gradient(-135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .editor-styles-wrapper .has-luminous-dusk-gradient-background{background:linear-gradient(-135deg,#ffcb70,#c751c0 50%,#4158d0)}:root .editor-styles-wrapper .has-hazy-dawn-gradient-background{background:linear-gradient(-135deg,#faaca8,#dad0ec)}:root .editor-styles-wrapper .has-pale-ocean-gradient-background{background:linear-gradient(-135deg,#fff5cb,#b6e3d4 50%,#33a7b5)}:root .editor-styles-wrapper .has-electric-grass-gradient-background{background:linear-gradient(-135deg,#caf880,#71ce7e)}:root .editor-styles-wrapper .has-subdued-olive-gradient-background{background:linear-gradient(-135deg,#fafae1,#67a671)}:root .editor-styles-wrapper .has-atomic-cream-gradient-background{background:linear-gradient(-135deg,#fdd79a,#004a59)}:root .editor-styles-wrapper .has-nightshade-gradient-background{background:linear-gradient(-135deg,#330968,#31cdcf)}:root .editor-styles-wrapper .has-midnight-gradient-background{background:linear-gradient(-135deg,#020381,#2874fc)}.editor-styles-wrapper .has-small-font-size{font-size:13px}.editor-styles-wrapper .has-normal-font-size,.editor-styles-wrapper .has-regular-font-size{font-size:16px}.editor-styles-wrapper .has-medium-font-size{font-size:20px}.editor-styles-wrapper .has-large-font-size{font-size:36px}.editor-styles-wrapper .has-huge-font-size,.editor-styles-wrapper .has-larger-font-size{font-size:42px}.block-editor-block-list__block{margin-top:28px;margin-bottom:28px}#end-resizable-editor-section{display:none} \ No newline at end of file diff --git a/wp-includes/css/dist/block-library/editor.css b/wp-includes/css/dist/block-library/editor.css index ebdcfc42b6..32ec87c70f 100644 --- a/wp-includes/css/dist/block-library/editor.css +++ b/wp-includes/css/dist/block-library/editor.css @@ -183,6 +183,16 @@ div[data-type="core/button"] { padding: 0 !important; } .wp-block-cover.components-placeholder h2 { color: inherit; } + .wp-block-cover.is-transient::before { + background-color: #fff; + opacity: 0.3; } + .wp-block-cover .components-spinner { + position: absolute; + z-index: 1; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + margin: 0; } .wp-block-cover .block-editor-block-list__layout { width: 100%; } .wp-block-cover .wp-block-cover__inner-container { @@ -914,8 +924,7 @@ ul.has-background.has-background { border-radius: 4px; } .block-library-colors-selector .block-library-colors-selector__state-selection { margin-left: auto; - margin-right: auto; } - .block-library-colors-selector .block-library-colors-selector__state-selection { + margin-right: auto; border-radius: 11px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2); width: 22px; @@ -956,9 +965,6 @@ ul.has-background.has-background { vertical-align: middle; margin-right: 7px; } -.wp-block-navigation-placeholder .components-custom-select-control__label { - margin-bottom: 1rem; } - .wp-block-navigation-placeholder .components-custom-select-control__button { height: auto; padding: 0.375rem 0.75rem 0.375rem 1.5rem; @@ -977,6 +983,7 @@ ul.has-background.has-background { border-top: 1px solid #757575; } .wp-block-navigation-placeholder .components-custom-select-control__label { + margin-bottom: 1rem; font-size: 13px; font-weight: normal; } @@ -1288,8 +1295,34 @@ ul.has-background.has-background { .editor-styles-wrapper .wp-block-social-links { padding: 0; } +.wp-block-social-links__social-placeholder { + display: flex; } + .wp-block-social-links__social-placeholder .wp-block-social-link { + display: inline-flex; + align-items: center; + justify-content: center; + margin: 0 8px 8px 0; + width: 36px; + height: 36px; + border-radius: 50%; + opacity: 0.8; } + +.is-style-logos-only .wp-block-social-links__social-placeholder .wp-block-social-link::before { + content: ""; + display: block; + width: 18px; + height: 18px; + border-radius: 50%; + opacity: 0.8; + background: currentColor; } + +.is-style-pill-shape .wp-block-social-links__social-placeholder .wp-block-social-link { + border-radius: 9999px; + padding-left: 28px; + padding-right: 28px; } + .wp-block-social-links .block-list-appender { - margin: 0; + margin: 0 0 8px 0; display: flex; align-items: center; } @@ -1302,17 +1335,6 @@ ul.has-background.has-background { [data-type="core/social-links"]:not(.is-selected):not(.has-child-selected) .wp-block-social-links { min-height: 36px; } -[data-type="core/social-links"] .wp-social-link__is-incomplete { - transition: transform 0.1s ease; - transform-origin: center center; } - -[data-type="core/social-links"]:not(.is-selected):not(.has-child-selected) .wp-social-link__is-incomplete { - opacity: 0; - transform: scale(0); - width: 0; - padding: 0; - margin-right: 0; } - .wp-social-link.wp-social-link__is-incomplete { opacity: 0.5; } @media (prefers-reduced-motion: reduce) { @@ -1358,29 +1380,27 @@ ul.has-background.has-background { font-size: 1.1em; font-style: italic; } -.wp-block[data-align="left"] > .wp-block-table, -.wp-block[data-align="right"] > .wp-block-table, -.wp-block[data-align="center"] > .wp-block-table { - height: auto; } - .wp-block[data-align="left"] > .wp-block-table table, - .wp-block[data-align="right"] > .wp-block-table table, - .wp-block[data-align="center"] > .wp-block-table table { - width: auto; } - .wp-block[data-align="left"] > .wp-block-table td, - .wp-block[data-align="left"] > .wp-block-table th, - .wp-block[data-align="right"] > .wp-block-table td, - .wp-block[data-align="right"] > .wp-block-table th, - .wp-block[data-align="center"] > .wp-block-table td, - .wp-block[data-align="center"] > .wp-block-table th { - word-break: break-word; } - -.wp-block[data-align="center"] > .wp-block-table { - text-align: initial; } - .wp-block[data-align="center"] > .wp-block-table table { - margin: 0 auto; } - .wp-block-table { margin: 0; } + .wp-block[data-align="left"] > .wp-block-table, + .wp-block[data-align="right"] > .wp-block-table, + .wp-block[data-align="center"] > .wp-block-table { + height: auto; } + .wp-block[data-align="left"] > .wp-block-table table, + .wp-block[data-align="right"] > .wp-block-table table, + .wp-block[data-align="center"] > .wp-block-table table { + width: auto; } + .wp-block[data-align="left"] > .wp-block-table td, + .wp-block[data-align="left"] > .wp-block-table th, + .wp-block[data-align="right"] > .wp-block-table td, + .wp-block[data-align="right"] > .wp-block-table th, + .wp-block[data-align="center"] > .wp-block-table td, + .wp-block[data-align="center"] > .wp-block-table th { + word-break: break-word; } + .wp-block[data-align="center"] > .wp-block-table { + text-align: initial; } + .wp-block[data-align="center"] > .wp-block-table table { + margin: 0 auto; } .wp-block-table table { border-collapse: collapse; } .wp-block-table td, @@ -1446,7 +1466,9 @@ ul.has-background.has-background { cursor: pointer; margin-top: 16px; transition: all 0.05s ease-in-out; - border: 1px solid transparent; } + border: 1px solid transparent; + width: 100%; + background-color: #fff; } .wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item:hover { border: 1px solid #007cba; border: 1px solid var(--wp-admin-theme-color); } @@ -1529,17 +1551,66 @@ pre.wp-block-verse { .editor-video-poster-control .components-button { margin-right: 8px; } -.wp-block[data-type="core/widget-area"] { - max-width: 700px; } +.block-library-video-tracks-editor { + z-index: 159990; } -.wp-block-widget-area > .components-panel__body.is-opened:not(.widget-area-is-opened) { +.block-library-video-tracks-editor > .components-popover__content { + width: 360px; } + +.block-library-video-tracks-editor__track-list-track { + display: flex; + place-content: space-between; + align-items: baseline; + padding-left: 12px; } + +.block-library-video-tracks-editor__single-track-editor-label-language { + display: flex; + margin-top: 12px; } + .block-library-video-tracks-editor__single-track-editor-label-language > .components-base-control { + width: 50%; } + .block-library-video-tracks-editor__single-track-editor-label-language > .components-base-control:first-child { + margin-right: 16px; } + +.block-library-video-tracks-editor__single-track-editor-kind-select { + max-width: 240px; } + +.block-library-video-tracks-editor__single-track-editor-buttons-container { + display: flex; + place-content: space-between; + margin-top: 32px; } + +.block-library-video-tracks-editor__single-track-editor-edit-track-label { + margin-top: 4px; + margin-bottom: 12px; + color: #757575; + text-transform: uppercase; + font-size: 11px; + font-weight: 500; + display: block; } + +.block-library-video-tracks-editor > .components-popover__content > div { padding: 0; } - .wp-block-widget-area > .components-panel__body.is-opened:not(.widget-area-is-opened) > .components-panel__body-title { - padding: 0; - margin: 0; } -.wp-block-widget-area > .components-panel__body > .block-editor-inner-blocks { - padding-top: 24px; } +.block-library-video-tracks-editor__track-list .components-menu-group__label, +.block-library-video-tracks-editor__add-tracks-container .components-menu-group__label { + padding: 0; } + +.block-library-video-tracks-editor__single-track-editor, +.block-library-video-tracks-editor__track-list, +.block-library-video-tracks-editor__add-tracks-container { + padding: 12px; } + +.block-library-video-tracks-editor__single-track-editor .components-base-control .components-base-control__label { + margin-bottom: 4px; } + +.block-library-video-tracks-editor__single-track-editor .components-base-control .components-base-control__field { + margin-bottom: 12px; } + +.block-library-video-tracks-editor__single-track-editor .components-base-control .components-text-control__input { + margin-left: 0; } + +.block-library-video-tracks-editor__single-track-editor .components-base-control .components-input-control__label { + margin-bottom: 4px; } .editor-styles-wrapper .wp-block.wp-block-query-loop { max-width: 100%; } @@ -1547,6 +1618,26 @@ pre.wp-block-verse { .editor-styles-wrapper .wp-block.wp-block-query { max-width: 100%; } +div[data-type="core/post-featured-image"] .post-featured-image_placeholder { + display: flex; + flex-direction: row; + align-items: flex-start; + border-radius: 2px; + background-color: #fff; + box-shadow: inset 0 0 0 1px #1e1e1e; + padding: 12px; } + div[data-type="core/post-featured-image"] .post-featured-image_placeholder svg { + margin-right: 12px; } + div[data-type="core/post-featured-image"] .post-featured-image_placeholder p { + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + font-size: 13px; + margin: 0; } + +div[data-type="core/post-featured-image"] img { + max-width: 100%; + height: auto; + display: block; } + /** * Import styles from internal editor components used by the blocks. */ diff --git a/wp-includes/css/dist/block-library/editor.min.css b/wp-includes/css/dist/block-library/editor.min.css index 025a94020b..1023f0b22f 100644 --- a/wp-includes/css/dist/block-library/editor.min.css +++ b/wp-includes/css/dist/block-library/editor.min.css @@ -1,2 +1,2 @@ :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 ul.wp-block-archives{padding-left:2.5em}.wp-block-audio{margin-left:0;margin-right:0}.edit-post-visual-editor .block-library-block__reusable-block-container .block-editor-writing-flow__click-redirect{min-height:auto}.edit-post-visual-editor .block-library-block__reusable-block-container .is-root-container{padding-left:0;padding-right:0}.edit-post-visual-editor .block-library-block__reusable-block-container .block-editor-writing-flow{display:block}.edit-post-visual-editor .block-library-block__reusable-block-container .components-disabled .block-list-appender{display:none}.wp-block[data-align=center]>.wp-block-button{text-align:center;margin-left:auto;margin-right:auto}.wp-block[data-align=right]>.wp-block-button{ - /*!rtl:ignore*/text-align:right}.wp-block-button{position:relative;cursor:text}.wp-block-button:not(.has-text-color):not(.is-style-outline) [data-rich-text-placeholder]:after{color:#fff}.wp-block-button:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px #007cba;box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:-2px}.wp-block-button[data-rich-text-placeholder]:after{opacity:.8}.wp-block-button__inline-link{color:#757575;height:0;overflow:hidden;max-width:290px}.wp-block-button__inline-link-input__suggestions{max-width:290px}@media (min-width:782px){.wp-block-button__inline-link,.wp-block-button__inline-link-input__suggestions{max-width:260px}}@media (min-width:960px){.wp-block-button__inline-link,.wp-block-button__inline-link-input__suggestions{max-width:290px}}.is-selected .wp-block-button__inline-link{height:auto;overflow:visible;margin-top:16px}div[data-type="core/button"]{display:table}.wp-block-buttons>.wp-block{margin-left:0}.wp-block[data-align=center]>.wp-block-buttons{display:flex;align-items:center;flex-wrap:wrap;justify-content:center}.wp-block[data-align=right]>.wp-block-buttons{display:flex;justify-content:flex-end}.wp-block-buttons>.block-list-appender{display:inline-block}.block-editor .wp-block-categories ul{padding-left:2.5em}.block-editor .wp-block-categories ul ul{margin-top:6px}.wp-block-code>code{display:block}.wp-block-columns .wp-block{max-width:none}@media (min-width:600px){.editor-styles-wrapper .block-editor-block-list__block.wp-block-column:nth-child(2n){margin-left:32px}}@media (min-width:782px){.editor-styles-wrapper .block-editor-block-list__block.wp-block-column:not(:first-child){margin-left:32px}}.block-editor-block-list__block.wp-block-column.wp-block-column{margin-top:0;margin-bottom:0}.wp-block-cover{position:relative}.wp-block-cover.is-placeholder{min-height:auto!important;padding:0!important}.wp-block-cover.components-placeholder h2{color:inherit}.wp-block-cover .block-editor-block-list__layout{width:100%}.wp-block-cover .wp-block-cover__inner-container{text-align:left;margin-left:0;margin-right:0}.wp-block-cover .wp-block-cover__placeholder-background-options{width:100%}[data-align=left]>.wp-block-cover,[data-align=right]>.wp-block-cover{max-width:290px;width:100%}.block-library-cover__reset-button{margin-left:auto}.block-library-cover__resize-container{position:absolute!important;top:0;left:0;right:0;bottom:0}.block-library-cover__resize-container:not(.is-resizing){height:auto!important}.wp-block-embed{margin-left:0;margin-right:0;clear:both}.wp-block-embed.is-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1em;min-height:200px;text-align:center;border-radius:2px;background-color:#fff;box-shadow:inset 0 0 0 1px #1e1e1e}.wp-block-embed.is-loading p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.wp-block-embed .components-placeholder__error{word-break:break-word}.wp-block-embed .components-placeholder__learn-more{margin-top:1em}.block-library-embed__interactive-overlay{position:absolute;top:0;left:0;right:0;bottom:0;opacity:0}.wp-block-file{display:flex;justify-content:space-between;align-items:center;margin-bottom:0}.wp-block-file .wp-block-file__content-wrapper{flex-grow:1}.wp-block-file .wp-block-file__textlink{display:inline-block;min-width:1em}.wp-block-file .wp-block-file__textlink:focus{box-shadow:none}.wp-block-file .wp-block-file__button-richtext-wrapper{display:inline-block;margin-left:.75em}.wp-block-file .wp-block-file__copy-url-button{margin-left:1em}.wp-block-freeform.block-library-rich-text__tinymce{height:auto}.wp-block-freeform.block-library-rich-text__tinymce li,.wp-block-freeform.block-library-rich-text__tinymce p{line-height:1.8}.wp-block-freeform.block-library-rich-text__tinymce ol,.wp-block-freeform.block-library-rich-text__tinymce ul{padding-left:2.5em;margin-left:0}.wp-block-freeform.block-library-rich-text__tinymce blockquote{margin:0;box-shadow:inset 0 0 0 0 #ddd;border-left:4px solid #000;padding-left:1em}.wp-block-freeform.block-library-rich-text__tinymce pre{white-space:pre-wrap;font-family:Menlo,Consolas,monaco,monospace;font-size:15px;color:#1e1e1e}.wp-block-freeform.block-library-rich-text__tinymce>:first-child{margin-top:0}.wp-block-freeform.block-library-rich-text__tinymce>:last-child{margin-bottom:0}.wp-block-freeform.block-library-rich-text__tinymce.mce-edit-focus{outline:none}.wp-block-freeform.block-library-rich-text__tinymce a{color:#007cba;color:var(--wp-admin-theme-color)}.wp-block-freeform.block-library-rich-text__tinymce:focus a[data-mce-selected]{padding:0 2px;margin:0 -2px;border-radius:2px;box-shadow:0 0 0 1px #e5f5fa;background:#e5f5fa}.wp-block-freeform.block-library-rich-text__tinymce code{padding:2px;border-radius:2px;color:#1e1e1e;background:#f0f0f0;font-family:Menlo,Consolas,monaco,monospace;font-size:14px}.wp-block-freeform.block-library-rich-text__tinymce:focus code[data-mce-selected]{background:#ddd}.wp-block-freeform.block-library-rich-text__tinymce .alignright{float:right;margin:.5em 0 .5em 1em}.wp-block-freeform.block-library-rich-text__tinymce .alignleft{float:left;margin:.5em 1em .5em 0}.wp-block-freeform.block-library-rich-text__tinymce .aligncenter{display:block;margin-left:auto;margin-right:auto}.wp-block-freeform.block-library-rich-text__tinymce .wp-more-tag{width:96%;height:20px;display:block;margin:15px auto;outline:0;cursor:default;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAADtgAAAAoBAMAAAA86gLBAAAAJFBMVEVMaXG7u7vBwcHDw8POzs68vLzGxsbMzMy+vr7AwMDQ0NDGxsYKLGzpAAAADHRSTlMA///zWf+/f///TMxNVGuqAAABwklEQVR4Ae3dMXLaQBTH4bfj8UCpx8hq0vgKvgFNemhT6Qo6gg6R+0ZahM2QLmyBJ99XWP9V5+o3jIUcLQEAAAAAAAAAAAAAAAAAAAAAAABQ8j0WL9lfTtlt18uNXAUA8O/KVtfa1tdcrOdSh9gCQAMlh1hMNbZZ1bsrsQWABsrhLRbz7z5in/32UbfUMUbkMQCAh5RfGYv82UdMdZ6HS2wjT2ILAI8r3XmM2B3WvM59vfO2xXYW2yYAENuPU8S+X/N67mKxzy225yaxBQCxLV392UdcvwV0jPVUj98ntkBWT7C7+9u2/V/vGtvXIWJ6/4rtbottWa6Ri0NUT/u72LYttrb97LHdvUXMxxrb8TO2W2TF1rYbbLG1bbGNjMi4+2Sbi1FsbbvNFlvbFtt5fDnE3d9sP1/XeIyV2Nr2U2/guZUuptNrH/dPI9eLB6SaAEBs6wPJf3/PNk9tYgsAYrv/8TFuzx/fvkFqGtrEFgDEdpcZUb7ejXy6ntrEFgDENvL6gsas4vbdyKt4DACI7TxElJv/Z7udpqFNbAFAbKduy2uU2trttM/x28UWAAAAAAAAAAAAAAAAAAAAAAAAAADgDyPwGmGTCZp7AAAAAElFTkSuQmCC);background-size:1900px 20px;background-repeat:no-repeat;background-position:50%}.wp-block-freeform.block-library-rich-text__tinymce img::selection{background-color:transparent}.wp-block-freeform.block-library-rich-text__tinymce div.mceTemp{-ms-user-select:element}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption{margin:0;max-width:100%}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption a,.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption img{display:block}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption,.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption *{-webkit-user-drag:none}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption .wp-caption-dd{padding-top:.5em;margin:0}.wp-block-freeform.block-library-rich-text__tinymce .wpview{width:99.99%;position:relative;clear:both;margin-bottom:16px;border:1px solid transparent}.wp-block-freeform.block-library-rich-text__tinymce .wpview iframe{display:block;max-width:100%;background:transparent}.wp-block-freeform.block-library-rich-text__tinymce .wpview .mce-shim{position:absolute;top:0;right:0;bottom:0;left:0}.wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected="2"] .mce-shim{display:none}.wp-block-freeform.block-library-rich-text__tinymce .wpview .loading-placeholder{border:1px dashed #ddd;padding:10px}.wp-block-freeform.block-library-rich-text__tinymce .wpview .wpview-error{border:1px solid #ddd;padding:1em 0;margin:0;word-wrap:break-word}.wp-block-freeform.block-library-rich-text__tinymce .wpview .wpview-error p{margin:0;text-align:center}.wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected] .loading-placeholder,.wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected] .wpview-error{border-color:transparent}.wp-block-freeform.block-library-rich-text__tinymce .wpview .dashicons{display:block;margin:0 auto;width:32px;height:32px;font-size:32px}.wp-block-freeform.block-library-rich-text__tinymce .wpview.wpview-type-gallery:after{content:"";display:table;clear:both}.wp-block-freeform.block-library-rich-text__tinymce .gallery img[data-mce-selected]:focus{outline:none}.wp-block-freeform.block-library-rich-text__tinymce .gallery a{cursor:default}.wp-block-freeform.block-library-rich-text__tinymce .gallery{margin:auto -6px;padding:6px 0;line-height:1;overflow-x:hidden}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-item{float:left;margin:0;text-align:center;padding:6px;box-sizing:border-box}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-caption,.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-icon{margin:0}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-caption{font-size:13px;margin:4px 0}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-1 .gallery-item{width:100%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-2 .gallery-item{width:50%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-3 .gallery-item{width:33.33333%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-4 .gallery-item{width:25%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-5 .gallery-item{width:20%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-6 .gallery-item{width:16.66667%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-7 .gallery-item{width:14.28571%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-8 .gallery-item{width:12.5%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-9 .gallery-item{width:11.11111%}.wp-block-freeform.block-library-rich-text__tinymce .gallery img{max-width:100%;height:auto;border:none;padding:0}div[data-type="core/freeform"]:before{transition:border-color .1s linear,box-shadow .1s linear;border:1px solid #ddd;outline:1px solid transparent}@media (prefers-reduced-motion:reduce){div[data-type="core/freeform"]:before{transition-duration:0s}}div[data-type="core/freeform"].is-selected:before{border-color:#1e1e1e}div[data-type="core/freeform"] .block-editor-block-contextual-toolbar+div{margin-top:0;padding-top:0}div[data-type="core/freeform"].is-selected .block-library-rich-text__tinymce:after{content:"";display:table;clear:both}.mce-toolbar-grp .mce-btn.mce-active:hover button,.mce-toolbar-grp .mce-btn.mce-active:hover i,.mce-toolbar-grp .mce-btn.mce-active button,.mce-toolbar-grp .mce-btn.mce-active i{color:#1e1e1e}.mce-toolbar-grp .mce-rtl .mce-flow-layout-item.mce-last{margin-right:0;margin-left:8px}.mce-toolbar-grp .mce-btn i{font-style:normal}.block-library-classic__toolbar{display:none;width:auto;position:-webkit-sticky;position:sticky;z-index:31;top:0;border:1px solid #ddd;border-bottom:none;border-radius:2px;margin:0 0 8px;padding:0}div[data-type="core/freeform"].is-selected .block-library-classic__toolbar,div[data-type="core/freeform"].is-typing .block-library-classic__toolbar{display:block;border-color:#1e1e1e}.block-library-classic__toolbar .mce-tinymce{box-shadow:none}@media (min-width:600px){.block-library-classic__toolbar{padding:0}}.block-library-classic__toolbar:empty{display:block;background:#f5f5f5;border-bottom:1px solid #e2e4e7}.block-library-classic__toolbar:empty:before{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;content:attr(data-placeholder);color:#555d66;line-height:37px;padding:14px}.block-library-classic__toolbar div.mce-toolbar-grp{border-bottom:1px solid #1e1e1e}.block-library-classic__toolbar .mce-menubar,.block-library-classic__toolbar .mce-menubar>div,.block-library-classic__toolbar .mce-tinymce-inline,.block-library-classic__toolbar .mce-tinymce-inline>div,.block-library-classic__toolbar div.mce-toolbar-grp,.block-library-classic__toolbar div.mce-toolbar-grp>div{height:auto!important;width:100%!important}.block-library-classic__toolbar .mce-container-body.mce-abs-layout{overflow:visible}.block-library-classic__toolbar .mce-menubar,.block-library-classic__toolbar div.mce-toolbar-grp{position:static}.block-library-classic__toolbar .mce-toolbar-grp>div{padding:1px 3px}.block-library-classic__toolbar .mce-toolbar-grp .mce-toolbar:not(:first-child){display:none}.block-library-classic__toolbar.has-advanced-toolbar .mce-toolbar-grp .mce-toolbar{display:block}.wp-block-gallery li{list-style-type:none}.wp-block-gallery .block-editor-media-placeholder{margin-bottom:12px;padding:12px}.wp-block-gallery .block-editor-media-placeholder .components-placeholder__label{display:none}.wp-block-gallery .block-editor-media-placeholder .components-button{margin-bottom:0}figure.wp-block-gallery{display:block;margin:0}.blocks-gallery-grid.blocks-gallery-grid{padding-left:0;margin-left:0;margin-bottom:0}.blocks-gallery-item figure:not(.is-selected):focus,.blocks-gallery-item img:focus{outline:none}.blocks-gallery-item figure.is-selected{box-shadow:0 0 0 1px #fff,0 0 0 3px #007cba;box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color);border-radius:2px;outline:2px solid transparent}.blocks-gallery-item figure.is-selected img{border-radius:2px}.blocks-gallery-item figure.is-transient img{opacity:.3}.blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu{display:inline-flex}.blocks-gallery-item .block-editor-media-placeholder{margin:0;height:100%}.blocks-gallery-item .block-editor-media-placeholder .components-placeholder__label{display:flex}.block-library-gallery-item__inline-menu{display:none;position:absolute;top:-2px;margin:8px;z-index:20;transition:box-shadow .2s ease-out;border-radius:2px;background:#fff;border:1px solid #1e1e1e}@media (prefers-reduced-motion:reduce){.block-library-gallery-item__inline-menu{transition-duration:0s}}.block-library-gallery-item__inline-menu:hover{box-shadow:0 2px 6px rgba(0,0,0,.05)}@media (min-width:600px){.columns-7 .block-library-gallery-item__inline-menu,.columns-8 .block-library-gallery-item__inline-menu{padding:2px}}.block-library-gallery-item__inline-menu .components-button.has-icon:not(:focus){border:none;box-shadow:none}@media (min-width:600px){.columns-7 .block-library-gallery-item__inline-menu .components-button.has-icon,.columns-8 .block-library-gallery-item__inline-menu .components-button.has-icon{padding:0;width:inherit;height:inherit}}.block-library-gallery-item__inline-menu.is-left{left:-2px}.block-library-gallery-item__inline-menu.is-right{right:-2px}.blocks-gallery-item .components-spinner{position:absolute;top:50%;left:50%;margin-top:-9px;margin-left:-9px}.wp-block-group .block-editor-block-list__insertion-point{left:0;right:0}.wp-block-group>.wp-block-group__inner-container>[data-align=full]{margin-left:auto;margin-right:auto}.wp-block-group.has-background>.wp-block-group__inner-container>[data-align=full]{margin-left:-30px;width:calc(100% + 60px)}[data-align=full] .wp-block-group>.wp-block-group__inner-container>.wp-block{padding-left:14px;padding-right:14px}@media (min-width:600px){[data-align=full] .wp-block-group>.wp-block-group__inner-container>.wp-block{padding-left:0;padding-right:0}}[data-align=full] .wp-block-group>.wp-block-group__inner-container>[data-align=full]{padding-right:0;padding-left:0;left:0;width:100%;max-width:none}[data-align=full] .wp-block-group.has-background>.wp-block-group__inner-container>[data-align=full]{width:calc(100% + 60px)}[data-type="core/group"].is-selected .block-list-appender{margin-left:0;margin-right:0}[data-type="core/group"].is-selected .has-background .block-list-appender{margin-top:18px;margin-bottom:18px}.block-library-heading-level-dropdown .components-popover__content{min-width:230px}.block-library-heading-level-dropdown .components-popover__content>div{padding:0}.block-library-heading-level-toolbar{border:none}.wp-block-html{margin-bottom:28px}.wp-block-html .block-library-html__preview-overlay{position:absolute;width:100%;height:100%;top:0;left:0}.wp-block-html .block-editor-plain-text{font-family:Menlo,Consolas,monaco,monospace;color:#1e1e1e;padding:.8em 1em;border:1px solid #ddd;border-radius:4px;max-height:250px;font-size:16px}@media (min-width:600px){.wp-block-html .block-editor-plain-text{font-size:13px}}.wp-block-html .block-editor-plain-text:focus{box-shadow:none}figure.wp-block-image:not(.wp-block){margin:0}.wp-block-image{position:relative}.wp-block-image .is-applying img,.wp-block-image.is-transient img{opacity:.3}.wp-block-image figcaption img{display:inline}.wp-block-image .components-spinner{position:absolute;top:50%;left:50%;margin-top:-9px;margin-left:-9px}.wp-block-image .components-resizable-box__container{display:inline-block}.wp-block-image .components-resizable-box__container img{display:block;width:inherit;height:inherit}.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{position:absolute;left:0;right:0;margin:-1px 0}@media (min-width:600px){.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{margin:-1px}}[data-align=full]>.wp-block-image img,[data-align=wide]>.wp-block-image img{width:100%}.wp-block[data-align=left]>.wp-block-image{margin:.5em 1em .5em 0}.wp-block[data-align=right]>.wp-block-image{margin:.5em 0 .5em 1em}.wp-block[data-align=center]>.wp-block-image{margin-left:auto;margin-right:auto;text-align:center}.wp-block-image__crop-area{position:relative;max-width:100%;width:100%}.wp-block-image__crop-icon{padding:0 8px;min-width:48px;display:flex;justify-content:center;align-items:center}.wp-block-image__crop-icon svg{fill:currentColor}.wp-block-image__zoom .components-popover__content{overflow:visible}.wp-block-image__zoom .components-range-control{flex:1}.wp-block-image__zoom .components-base-control__field{display:flex;margin-bottom:0}.wp-block-image__aspect-ratio{height:46px;margin-bottom:-8px;display:flex;align-items:center}.wp-block-image__aspect-ratio .components-button{width:36px;padding-left:0;padding-right:0}.wp-block-latest-comments.has-avatars .avatar{margin-right:10px}.wp-block-latest-comments__comment-excerpt p{font-size:14px;line-height:1.8;margin:5px 0 20px;padding-top:0}.wp-block-latest-comments.has-avatars .wp-block-latest-comments__comment{min-height:36px}.block-editor .wp-block-latest-posts{padding-left:2.5em}.block-editor .wp-block-latest-posts.is-grid{padding-left:0}.wp-block-latest-posts li a>div{display:inline}.edit-post-visual-editor .wp-block-latest-posts.is-grid li{margin-bottom:20px}ol.has-background.has-background,ul.has-background.has-background{padding:1.25em 2.375em}.wp-block-media-text .__resizable_base__{-ms-grid-column:1;-ms-grid-column-span:2;grid-column:1/span 2;-ms-grid-row:2;grid-row:2}.wp-block-media-text .editor-media-container__resizer{width:100%!important}.wp-block-media-text.is-image-fill .editor-media-container__resizer{height:100%!important}.wp-block-media-text>.block-editor-block-list__layout>.block-editor-block-list__block{max-width:unset}.block-editor-block-list__block[data-type="core/more"]{max-width:100%;text-align:center;margin-top:28px;margin-bottom:28px}.block-editor .wp-block-more{display:block;text-align:center;white-space:nowrap}.block-editor .wp-block-more input[type=text]{position:relative;font-size:13px;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#757575;border:none;box-shadow:none;white-space:nowrap;text-align:center;margin:0;border-radius:4px;background:#fff;padding:6px 8px;height:24px;max-width:100%}.block-editor .wp-block-more input[type=text]:focus{box-shadow:none}.block-editor .wp-block-more:before{content:"";position:absolute;top:50%;left:0;right:0;border-top:3px dashed #ccc}.editor-styles-wrapper .wp-block-navigation ol,.editor-styles-wrapper .wp-block-navigation ul{margin-bottom:0;margin-left:0;padding-left:0}.editor-styles-wrapper .wp-block-navigation .block-editor-block-list__block{margin:0}.wp-block-navigation .block-list-appender{margin:0;display:flex;align-items:center}.wp-block-navigation.is-vertical .block-list-appender{margin:8px}.wp-block-navigation__inserter-content{padding:16px}.wp-block-navigation__container{min-height:46px}.wp-block-navigation__container.is-parent-of-selected-block{visibility:visible;opacity:1}.has-child:hover>.wp-block-navigation__container,.has-child>.wp-block-navigation__container{opacity:0;visibility:hidden}.has-child.has-child-selected>.wp-block-navigation__container,.has-child.is-selected>.wp-block-navigation__container,.is-dragging-components-draggable .has-child.is-dragging-within>.wp-block-navigation__container{opacity:1;visibility:visible}.is-dragging-components-draggable .wp-block-navigation-link>.wp-block-navigation__container{opacity:1;visibility:hidden}.is-dragging-components-draggable .wp-block-navigation-link>.wp-block-navigation__container .block-editor-block-draggable-chip-wrapper{visibility:visible}.block-library-colors-selector{width:auto}.block-library-colors-selector .block-library-colors-selector__toggle{display:block;margin:0 auto;padding:3px;width:auto}.block-library-colors-selector .block-library-colors-selector__icon-container{height:30px;position:relative;margin:0 auto;padding:3px;display:flex;align-items:center;border-radius:4px}.block-library-colors-selector .block-library-colors-selector__state-selection{margin-left:auto;margin-right:auto;border-radius:11px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);width:22px;min-width:22px;height:22px;min-height:22px;line-height:20px;padding:2px}.block-library-colors-selector .block-library-colors-selector__state-selection>svg{min-width:auto!important}.block-library-colors-selector .block-library-colors-selector__state-selection.has-text-color>svg,.block-library-colors-selector .block-library-colors-selector__state-selection.has-text-color>svg path{color:inherit}.block-library-colors-selector__popover .color-palette-controller-container{padding:16px}.block-library-colors-selector__popover .components-base-control__label{height:20px;line-height:20px}.block-library-colors-selector__popover .component-color-indicator{float:right;margin-top:2px}.block-library-colors-selector__popover .components-panel__body-title{display:none}.is-editing>.wp-block-navigation__container{visibility:visible;opacity:1;display:flex;flex-direction:column}.wp-block-navigation-placeholder .components-spinner{margin-top:-4px;margin-left:4px;vertical-align:middle;margin-right:7px}.wp-block-navigation-placeholder .components-custom-select-control__label{margin-bottom:1rem}.wp-block-navigation-placeholder .components-custom-select-control__button{height:auto;padding:.375rem .75rem .375rem 1.5rem;min-width:13.75rem}.wp-block-navigation-placeholder .components-custom-select-control.has-menus .components-custom-select-control__item.is-create-empty-option{position:relative;margin-top:20px}.wp-block-navigation-placeholder .components-custom-select-control.has-menus .components-custom-select-control__item.is-create-empty-option:before{content:"";position:absolute;top:-10px;left:25px;right:25px;height:15px;border-top:1px solid #757575}.wp-block-navigation-placeholder .components-custom-select-control__label{font-size:13px;font-weight:400}.wp-block-navigation-placeholder .components-custom-select-control__menu{margin:0;max-height:none;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.wp-block-navigation .block-editor-button-block-appender{justify-content:flex-start}.wp-block-navigation-link__container,.wp-block-navigation-link__field .components-text-control__input.components-text-control__input{border-radius:0;line-height:36px;min-height:36px}.wp-block-navigation-link .block-editor-block-list__layout{display:block}.wp-block-navigation-link.is-editing,.wp-block-navigation-link.is-selected{min-width:20px}.wp-block-navigation-link .block-editor-rich-text__editable.is-selected:not(.keep-placeholder-on-focus):not(:focus)[data-rich-text-placeholder]:after{display:inline-block}.wp-block-navigation-link .block-list-appender{margin:10px 16px 16px 10px}.wp-block-navigation-link__separator{margin:8px 0;border-top:1px solid #ddd}.components-popover.wp-block-navigation-link__dropdown-content{margin-top:-1px;margin-left:-4px}.wp-block-navigation-link__dropdown-content .components-popover__content>div{padding:8px 0}.wp-block-navigation .block-editor-block-list__block[data-type="core/navigation-link"]>.block-editor-block-list__insertion-point{display:none}.block-editor-block-list__block[data-type="core/nextpage"]{max-width:100%;margin-top:28px;margin-bottom:28px}.wp-block-nextpage{display:block;text-align:center;white-space:nowrap}.wp-block-nextpage>span{font-size:13px;position:relative;display:inline-block;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#757575;border-radius:4px;background:#fff;padding:6px 8px;height:24px}.wp-block-nextpage:before{content:"";position:absolute;top:50%;left:0;right:0;border-top:3px dashed #ccc}.block-editor-block-list__block[data-type="core/paragraph"].has-drop-cap:focus{min-height:auto!important}.wp-block-post-content__placeholder{height:100px;border:1px dashed;display:flex;justify-content:center;align-items:center}.wp-block-post-content__placeholder span{font-style:italic}.wp-block-post-excerpt .wp-block-post-excerpt__excerpt.is-inline{display:inline-block}.wp-block-post-author{display:flex;flex-wrap:wrap}.wp-block-post-author .wp-block-post-author__byline{font-size:.5em;margin-top:0;position:relative;font-style:normal}.wp-block-post-author .wp-block-post-author__content{flex-grow:1;flex-basis:0}.wp-block-post-author .wp-block-post-author__avatar img{margin:0}.wp-block-post-author .wp-block-post-author__avatar{margin-bottom:-8px}.wp-block-post-author .wp-block-post-author__name{margin:0;font-weight:700}.wp-block-post-author .wp-block-post-author__bio{margin:0 0 8px;font-size:.7em}.wp-block[data-align=left]>.wp-block-pullquote p,.wp-block[data-align=right]>.wp-block-pullquote p{font-size:20px}.wp-block-pullquote blockquote p{font-size:28px;line-height:1.6}.wp-block-pullquote.is-style-solid-color{margin-left:0;margin-right:0}.wp-block-pullquote.is-style-solid-color blockquote p{font-size:32px}.wp-block-pullquote.is-style-solid-color .wp-block-pullquote__citation{text-transform:none;font-style:normal}.wp-block-pullquote .wp-block-pullquote__citation{color:inherit}.wp-block-quote__citation{font-size:13px}.block-editor .wp-block-rss{padding-left:2.5em}.block-editor .wp-block-rss.is-grid{padding-left:0}.wp-block-rss li a>div{display:inline}.wp-block-rss__placeholder-form{display:flex;align-items:stretch}.wp-block-rss__placeholder-form>*{margin-bottom:8px}@media (min-width:782px){.wp-block-rss__placeholder-form>*{margin-bottom:0}}.wp-block-rss__placeholder-input{display:flex;align-items:stretch;flex-grow:1}.wp-block-rss__placeholder-input .components-base-control__field{display:flex;align-items:stretch;flex-grow:1;margin:0 8px 0 0}.wp-block-search .wp-block-search__input{padding:8px}.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper{padding:4px}.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper,.wp-block-search .wp-block-search__input{border-radius:2px;border:1px solid #949494;color:rgba(30,30,30,.62);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;background-color:#fff}.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper:focus,.wp-block-search .wp-block-search__input:focus{outline:none}.wp-block-search .wp-block-search__button{background:#f7f7f7;border-radius:2px;border:1px solid #ccc;box-shadow:inset 0 -1px 0 #ccc;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:6px 10px;color:#32373c}.wp-block-search__components-button-group{margin-top:10px}.block-editor-block-list__block[data-type="core/separator"]{padding-top:.1px;padding-bottom:.1px}.block-editor-block-list__block[data-type="core/separator"].block-editor-block-list__block{margin-top:0;margin-bottom:0}.wp-block-shortcode{display:flex;flex-direction:column;padding:14px;font-size:13px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;margin-bottom:28px}.wp-block-shortcode label{display:flex;align-items:center;white-space:nowrap;font-weight:600;flex-shrink:0}.wp-block-shortcode .block-editor-plain-text{max-height:250px}.wp-block-shortcode .dashicon{margin-right:8px}.block-editor .blocks-shortcode__textarea,.blocks-shortcode__textarea{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 .blocks-shortcode__textarea,.blocks-shortcode__textarea{transition-duration:0s}}@media (min-width:600px){.block-editor .blocks-shortcode__textarea,.blocks-shortcode__textarea{font-size:13px;line-height:normal}}.block-editor .blocks-shortcode__textarea:focus,.blocks-shortcode__textarea: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 .blocks-shortcode__textarea::-webkit-input-placeholder,.blocks-shortcode__textarea::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.block-editor .blocks-shortcode__textarea::-moz-placeholder,.blocks-shortcode__textarea::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.block-editor .blocks-shortcode__textarea:-ms-input-placeholder,.blocks-shortcode__textarea:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .block-editor .blocks-shortcode__textarea::-webkit-input-placeholder,.is-dark-theme .blocks-shortcode__textarea::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor .blocks-shortcode__textarea::-moz-placeholder,.is-dark-theme .blocks-shortcode__textarea::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor .blocks-shortcode__textarea:-ms-input-placeholder,.is-dark-theme .blocks-shortcode__textarea:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.wp-block[data-align=center]>.wp-block-site-logo{margin-left:auto;margin-right:auto;text-align:center}.wp-block-site-logo.is-resized{display:table}.wp-block-site-logo .custom-logo-link{cursor:inherit}.wp-block-site-logo .custom-logo-link:focus{box-shadow:none}.wp-block-site-logo .custom-logo-link.is-transient img{opacity:.3}.wp-block-site-logo img{display:block;max-width:100%}.wp-block-social-links .wp-social-link button{color:currentColor;padding:6px}.wp-block-social-links.is-style-pill-shape .wp-social-link button{padding-left:16px;padding-right:16px}.wp-block-social-links div.block-editor-url-input{display:inline-block;margin-left:8px}.editor-styles-wrapper .wp-block-social-link{margin:0 8px 8px 0}.editor-styles-wrapper .wp-block-social-link.is-hovered,.editor-styles-wrapper .wp-block-social-link.is-selected{transform:none}.editor-styles-wrapper .wp-block-social-links{padding:0}.wp-block-social-links .block-list-appender{margin:0;display:flex;align-items:center}.wp-block[data-align=center]>.wp-block-social-links{justify-content:center}.block-editor-block-preview__content .wp-social-link:disabled{opacity:1}[data-type="core/social-links"]:not(.is-selected):not(.has-child-selected) .wp-block-social-links{min-height:36px}[data-type="core/social-links"] .wp-social-link__is-incomplete{transition:transform .1s ease;transform-origin:center center}[data-type="core/social-links"]:not(.is-selected):not(.has-child-selected) .wp-social-link__is-incomplete{opacity:0;transform:scale(0);width:0;padding:0;margin-right:0}.wp-social-link.wp-social-link__is-incomplete{opacity:.5}@media (prefers-reduced-motion:reduce){.wp-social-link.wp-social-link__is-incomplete{transition-duration:0s}}.wp-block-social-links .is-selected .wp-social-link__is-incomplete,.wp-social-link.wp-social-link__is-incomplete:focus,.wp-social-link.wp-social-link__is-incomplete:hover{opacity:1}[data-type="core/social-links"] .wp-social-link:focus{opacity:1;box-shadow:0 0 0 2px #fff,0 0 0 4px #007cba;box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-block-list__layout .block-editor-block-list__block[data-type="core/social-link"]:not([contenteditable]):focus:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block[data-type="core/social-link"].is-selected:after{right:8px}.block-editor-block-list__block[data-type="core/spacer"]:before{content:"";display:block;position:absolute;width:100%;height:24px;transform:translateY(-12px)}.block-library-spacer__resize-container.has-show-handle{background:#f0f0f0}.is-dark-theme .block-library-spacer__resize-container.has-show-handle{background:hsla(0,0%,100%,.15)}.block-library-spacer__resize-container{clear:both;margin-bottom:28px}.block-library-spacer__resize-container .components-resizable-box__handle:before{content:none}.edit-post-visual-editor p.wp-block-subhead{color:#555;font-size:1.1em;font-style:italic}.wp-block[data-align=center]>.wp-block-table,.wp-block[data-align=left]>.wp-block-table,.wp-block[data-align=right]>.wp-block-table{height:auto}.wp-block[data-align=center]>.wp-block-table table,.wp-block[data-align=left]>.wp-block-table table,.wp-block[data-align=right]>.wp-block-table table{width:auto}.wp-block[data-align=center]>.wp-block-table td,.wp-block[data-align=center]>.wp-block-table th,.wp-block[data-align=left]>.wp-block-table td,.wp-block[data-align=left]>.wp-block-table th,.wp-block[data-align=right]>.wp-block-table td,.wp-block[data-align=right]>.wp-block-table th{word-break:break-word}.wp-block[data-align=center]>.wp-block-table{text-align:initial}.wp-block[data-align=center]>.wp-block-table table{margin:0 auto}.wp-block-table{margin:0}.wp-block-table table{border-collapse:collapse}.wp-block-table td,.wp-block-table th{border:1px solid}.wp-block-table td.is-selected,.wp-block-table th.is-selected{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:inset 0 0 0 1px #007cba;box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color);border-style:double}.wp-block-table figcaption{color:#555;font-size:13px;text-align:center}.blocks-table__placeholder-form.blocks-table__placeholder-form{display:flex;flex-direction:column;align-items:flex-start}.blocks-table__placeholder-form.blocks-table__placeholder-form>*{margin-bottom:8px}@media (min-width:782px){.blocks-table__placeholder-form.blocks-table__placeholder-form{flex-direction:row;align-items:flex-end}.blocks-table__placeholder-form.blocks-table__placeholder-form>*{margin-bottom:0}}.blocks-table__placeholder-input{width:112px;margin-right:8px;margin-bottom:0}.blocks-table__placeholder-input input{height:36px}.blocks-table__placeholder-input .components-base-control__field{margin-bottom:0}.block-editor .wp-block-tag-cloud a{display:inline-block;margin-right:5px}.block-editor .wp-block-tag-cloud span{display:inline-block;margin-left:5px;color:#757575;text-decoration:none}.wp-block-template-part__placeholder-preview-dropdown-content .components-popover__content,.wp-block-template-part__preview-dropdown-content .components-popover__content{min-width:320px;padding:0}.wp-block-template-part__selection-preview-search-form{border-bottom:1px solid #ddd}.wp-block-template-part__selection-preview-container{background:#fff;padding-bottom:16px}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item{border-radius:2px;cursor:pointer;margin-top:16px;transition:all .05s ease-in-out;border:1px solid transparent}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item:hover{border:1px solid #007cba;border:1px solid var(--wp-admin-theme-color)}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-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}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item.is-placeholder{min-height:100px}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item-title{padding:4px;font-size:12px;text-align:left}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-panel-group-header{padding:16px 16px 0}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-panel-group-content{padding:0 16px}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-panel-group-title{color:#007cba;color:var(--wp-admin-theme-color);text-transform:uppercase;font-size:11px;font-weight:500}.wp-block-template-part__block-control-group{display:flex}.wp-block-template-part__block-control-group .wp-block-template-part__name-panel{outline:1px solid transparent;padding:8px 0 8px 12px}.wp-block-template-part__block-control-group .wp-block-template-part__name-panel .components-base-control__field{align-items:center;display:flex;margin-bottom:0}.wp-block-template-part__block-control-group .wp-block-template-part__name-panel .components-base-control__label{margin-bottom:0;margin-right:8px}.is-dark-theme .is-navigate-mode .is-selected .wp-block-template-part__name-panel,.is-navigate-mode .is-selected .wp-block-template-part__name-panel{box-shadow:0 0 0 1px #007cba;box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.block-editor-block-list__block[data-type="core/template-part"].has-child-selected:after,.block-editor-block-list__block[data-type="core/template-part"].is-selected:after{top:1px;bottom:1px;left:1px;right:1px;border-radius:1px}.block-editor-block-list__block[data-type="core/template-part"].is-selected:after{box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color)}.is-dark-theme .block-editor-block-list__block[data-type="core/template-part"].is-selected:after{box-shadow:0 0 0 1.5px #fff}.block-editor-block-list__block[data-type="core/template-part"].has-child-selected:after{box-shadow:0 0 0 1px #ddd}.is-dark-theme .block-editor-block-list__block[data-type="core/template-part"].has-child-selected:after{box-shadow:0 0 0 1.5px #757575}.wp-block-text-columns .block-editor-rich-text__editable:focus{outline:1px solid #ddd}pre.wp-block-verse{color:#1e1e1e;white-space:nowrap;font-family:inherit;font-size:inherit;padding:1em;overflow:auto}.wp-block[data-align=center]>.wp-block-video{text-align:center}.editor-video-poster-control .components-base-control__label{display:block}.editor-video-poster-control .components-button{margin-right:8px}.wp-block[data-type="core/widget-area"]{max-width:700px}.wp-block-widget-area>.components-panel__body.is-opened:not(.widget-area-is-opened){padding:0}.wp-block-widget-area>.components-panel__body.is-opened:not(.widget-area-is-opened)>.components-panel__body-title{padding:0;margin:0}.wp-block-widget-area>.components-panel__body>.block-editor-inner-blocks{padding-top:24px}.editor-styles-wrapper .wp-block.wp-block-query,.editor-styles-wrapper .wp-block.wp-block-query-loop{max-width:100%}.block-editor-block-list__layout .reusable-block-edit-panel{align-items:center;display:flex;flex-wrap:wrap;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:6px 12px;border-radius:2px;background-color:#fff;box-shadow:0 0 0 1px #1e1e1e;outline:1px solid transparent}.block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__info{margin-right:auto}.block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__label{margin-right:8px;white-space:nowrap;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__title{flex:1 1 100%}.block-editor-block-list__layout .reusable-block-edit-panel .components-button.reusable-block-edit-panel__button{flex-shrink:0}@media (min-width:960px){.block-editor-block-list__layout .reusable-block-edit-panel{flex-wrap:nowrap}.block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__title{margin:0}.block-editor-block-list__layout .reusable-block-edit-panel .components-button.reusable-block-edit-panel__button{margin:0 0 0 8px}}.reusable-block-edit-panel__title[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){.reusable-block-edit-panel__title[type=text]{transition-duration:0s}}@media (min-width:600px){.reusable-block-edit-panel__title[type=text]{font-size:13px;line-height:normal}}.reusable-block-edit-panel__title[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}.reusable-block-edit-panel__title[type=text]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.reusable-block-edit-panel__title[type=text]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.reusable-block-edit-panel__title[type=text]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .reusable-block-edit-panel__title[type=text]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .reusable-block-edit-panel__title[type=text]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .reusable-block-edit-panel__title[type=text]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .is-navigate-mode .is-selected .reusable-block-edit-panel,.is-navigate-mode .is-selected .reusable-block-edit-panel{box-shadow:0 0 0 1px #007cba;box-shadow:0 0 0 1px var(--wp-admin-theme-color)}:root .editor-styles-wrapper .has-pale-pink-background-color{background-color:#f78da7}:root .editor-styles-wrapper .has-vivid-red-background-color{background-color:#cf2e2e}:root .editor-styles-wrapper .has-luminous-vivid-orange-background-color{background-color:#ff6900}:root .editor-styles-wrapper .has-luminous-vivid-amber-background-color{background-color:#fcb900}:root .editor-styles-wrapper .has-light-green-cyan-background-color{background-color:#7bdcb5}:root .editor-styles-wrapper .has-vivid-green-cyan-background-color{background-color:#00d084}:root .editor-styles-wrapper .has-pale-cyan-blue-background-color{background-color:#8ed1fc}:root .editor-styles-wrapper .has-vivid-cyan-blue-background-color{background-color:#0693e3}:root .editor-styles-wrapper .has-vivid-purple-background-color{background-color:#9b51e0}:root .editor-styles-wrapper .has-white-background-color{background-color:#fff}:root .editor-styles-wrapper .has-very-light-gray-background-color{background-color:#eee}:root .editor-styles-wrapper .has-cyan-bluish-gray-background-color{background-color:#abb8c3}:root .editor-styles-wrapper .has-very-dark-gray-background-color{background-color:#313131}:root .editor-styles-wrapper .has-black-background-color{background-color:#000}:root .editor-styles-wrapper .has-pale-pink-color{color:#f78da7}:root .editor-styles-wrapper .has-vivid-red-color{color:#cf2e2e}:root .editor-styles-wrapper .has-luminous-vivid-orange-color{color:#ff6900}:root .editor-styles-wrapper .has-luminous-vivid-amber-color{color:#fcb900}:root .editor-styles-wrapper .has-light-green-cyan-color{color:#7bdcb5}:root .editor-styles-wrapper .has-vivid-green-cyan-color{color:#00d084}:root .editor-styles-wrapper .has-pale-cyan-blue-color{color:#8ed1fc}:root .editor-styles-wrapper .has-vivid-cyan-blue-color{color:#0693e3}:root .editor-styles-wrapper .has-vivid-purple-color{color:#9b51e0}:root .editor-styles-wrapper .has-white-color{color:#fff}:root .editor-styles-wrapper .has-very-light-gray-color{color:#eee}:root .editor-styles-wrapper .has-cyan-bluish-gray-color{color:#abb8c3}:root .editor-styles-wrapper .has-very-dark-gray-color{color:#313131}:root .editor-styles-wrapper .has-black-color{color:#000}:root .editor-styles-wrapper .has-vivid-cyan-blue-to-vivid-purple-gradient-background{background:linear-gradient(135deg,#0693e3,#9b51e0)}:root .editor-styles-wrapper .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(135deg,#00d084,#0693e3)}:root .editor-styles-wrapper .has-light-green-cyan-to-vivid-green-cyan-gradient-background{background:linear-gradient(135deg,#7adcb4,#00d082)}:root .editor-styles-wrapper .has-luminous-vivid-amber-to-luminous-vivid-orange-gradient-background{background:linear-gradient(135deg,#fcb900,#ff6900)}:root .editor-styles-wrapper .has-luminous-vivid-orange-to-vivid-red-gradient-background{background:linear-gradient(135deg,#ff6900,#cf2e2e)}:root .editor-styles-wrapper .has-very-light-gray-to-cyan-bluish-gray-gradient-background{background:linear-gradient(135deg,#eee,#a9b8c3)}:root .editor-styles-wrapper .has-cool-to-warm-spectrum-gradient-background{background:linear-gradient(135deg,#4aeadc,#9778d1 20%,#cf2aba 40%,#ee2c82 60%,#fb6962 80%,#fef84c)}:root .editor-styles-wrapper .has-blush-light-purple-gradient-background{background:linear-gradient(135deg,#ffceec,#9896f0)}:root .editor-styles-wrapper .has-blush-bordeaux-gradient-background{background:linear-gradient(135deg,#fecda5,#fe2d2d 50%,#6b003e)}:root .editor-styles-wrapper .has-purple-crush-gradient-background{background:linear-gradient(135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .editor-styles-wrapper .has-luminous-dusk-gradient-background{background:linear-gradient(135deg,#ffcb70,#c751c0 50%,#4158d0)}:root .editor-styles-wrapper .has-hazy-dawn-gradient-background{background:linear-gradient(135deg,#faaca8,#dad0ec)}:root .editor-styles-wrapper .has-pale-ocean-gradient-background{background:linear-gradient(135deg,#fff5cb,#b6e3d4 50%,#33a7b5)}:root .editor-styles-wrapper .has-electric-grass-gradient-background{background:linear-gradient(135deg,#caf880,#71ce7e)}:root .editor-styles-wrapper .has-subdued-olive-gradient-background{background:linear-gradient(135deg,#fafae1,#67a671)}:root .editor-styles-wrapper .has-atomic-cream-gradient-background{background:linear-gradient(135deg,#fdd79a,#004a59)}:root .editor-styles-wrapper .has-nightshade-gradient-background{background:linear-gradient(135deg,#330968,#31cdcf)}:root .editor-styles-wrapper .has-midnight-gradient-background{background:linear-gradient(135deg,#020381,#2874fc)}.editor-styles-wrapper .has-small-font-size{font-size:13px}.editor-styles-wrapper .has-normal-font-size,.editor-styles-wrapper .has-regular-font-size{font-size:16px}.editor-styles-wrapper .has-medium-font-size{font-size:20px}.editor-styles-wrapper .has-large-font-size{font-size:36px}.editor-styles-wrapper .has-huge-font-size,.editor-styles-wrapper .has-larger-font-size{font-size:42px}.block-editor-block-list__block{margin-top:28px;margin-bottom:28px}#end-resizable-editor-section{display:none} \ No newline at end of file + /*!rtl:ignore*/text-align:right}.wp-block-button{position:relative;cursor:text}.wp-block-button:not(.has-text-color):not(.is-style-outline) [data-rich-text-placeholder]:after{color:#fff}.wp-block-button:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px #007cba;box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:-2px}.wp-block-button[data-rich-text-placeholder]:after{opacity:.8}.wp-block-button__inline-link{color:#757575;height:0;overflow:hidden;max-width:290px}.wp-block-button__inline-link-input__suggestions{max-width:290px}@media (min-width:782px){.wp-block-button__inline-link,.wp-block-button__inline-link-input__suggestions{max-width:260px}}@media (min-width:960px){.wp-block-button__inline-link,.wp-block-button__inline-link-input__suggestions{max-width:290px}}.is-selected .wp-block-button__inline-link{height:auto;overflow:visible;margin-top:16px}div[data-type="core/button"]{display:table}.wp-block-buttons>.wp-block{margin-left:0}.wp-block[data-align=center]>.wp-block-buttons{display:flex;align-items:center;flex-wrap:wrap;justify-content:center}.wp-block[data-align=right]>.wp-block-buttons{display:flex;justify-content:flex-end}.wp-block-buttons>.block-list-appender{display:inline-block}.block-editor .wp-block-categories ul{padding-left:2.5em}.block-editor .wp-block-categories ul ul{margin-top:6px}.wp-block-code>code{display:block}.wp-block-columns .wp-block{max-width:none}@media (min-width:600px){.editor-styles-wrapper .block-editor-block-list__block.wp-block-column:nth-child(2n){margin-left:32px}}@media (min-width:782px){.editor-styles-wrapper .block-editor-block-list__block.wp-block-column:not(:first-child){margin-left:32px}}.block-editor-block-list__block.wp-block-column.wp-block-column{margin-top:0;margin-bottom:0}.wp-block-cover{position:relative}.wp-block-cover.is-placeholder{min-height:auto!important;padding:0!important}.wp-block-cover.components-placeholder h2{color:inherit}.wp-block-cover.is-transient:before{background-color:#fff;opacity:.3}.wp-block-cover .components-spinner{position:absolute;z-index:1;top:50%;left:50%;transform:translate(-50%,-50%);margin:0}.wp-block-cover .block-editor-block-list__layout{width:100%}.wp-block-cover .wp-block-cover__inner-container{text-align:left;margin-left:0;margin-right:0}.wp-block-cover .wp-block-cover__placeholder-background-options{width:100%}[data-align=left]>.wp-block-cover,[data-align=right]>.wp-block-cover{max-width:290px;width:100%}.block-library-cover__reset-button{margin-left:auto}.block-library-cover__resize-container{position:absolute!important;top:0;left:0;right:0;bottom:0}.block-library-cover__resize-container:not(.is-resizing){height:auto!important}.wp-block-embed{margin-left:0;margin-right:0;clear:both}.wp-block-embed.is-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1em;min-height:200px;text-align:center;border-radius:2px;background-color:#fff;box-shadow:inset 0 0 0 1px #1e1e1e}.wp-block-embed.is-loading p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.wp-block-embed .components-placeholder__error{word-break:break-word}.wp-block-embed .components-placeholder__learn-more{margin-top:1em}.block-library-embed__interactive-overlay{position:absolute;top:0;left:0;right:0;bottom:0;opacity:0}.wp-block-file{display:flex;justify-content:space-between;align-items:center;margin-bottom:0}.wp-block-file .wp-block-file__content-wrapper{flex-grow:1}.wp-block-file .wp-block-file__textlink{display:inline-block;min-width:1em}.wp-block-file .wp-block-file__textlink:focus{box-shadow:none}.wp-block-file .wp-block-file__button-richtext-wrapper{display:inline-block;margin-left:.75em}.wp-block-file .wp-block-file__copy-url-button{margin-left:1em}.wp-block-freeform.block-library-rich-text__tinymce{height:auto}.wp-block-freeform.block-library-rich-text__tinymce li,.wp-block-freeform.block-library-rich-text__tinymce p{line-height:1.8}.wp-block-freeform.block-library-rich-text__tinymce ol,.wp-block-freeform.block-library-rich-text__tinymce ul{padding-left:2.5em;margin-left:0}.wp-block-freeform.block-library-rich-text__tinymce blockquote{margin:0;box-shadow:inset 0 0 0 0 #ddd;border-left:4px solid #000;padding-left:1em}.wp-block-freeform.block-library-rich-text__tinymce pre{white-space:pre-wrap;font-family:Menlo,Consolas,monaco,monospace;font-size:15px;color:#1e1e1e}.wp-block-freeform.block-library-rich-text__tinymce>:first-child{margin-top:0}.wp-block-freeform.block-library-rich-text__tinymce>:last-child{margin-bottom:0}.wp-block-freeform.block-library-rich-text__tinymce.mce-edit-focus{outline:none}.wp-block-freeform.block-library-rich-text__tinymce a{color:#007cba;color:var(--wp-admin-theme-color)}.wp-block-freeform.block-library-rich-text__tinymce:focus a[data-mce-selected]{padding:0 2px;margin:0 -2px;border-radius:2px;box-shadow:0 0 0 1px #e5f5fa;background:#e5f5fa}.wp-block-freeform.block-library-rich-text__tinymce code{padding:2px;border-radius:2px;color:#1e1e1e;background:#f0f0f0;font-family:Menlo,Consolas,monaco,monospace;font-size:14px}.wp-block-freeform.block-library-rich-text__tinymce:focus code[data-mce-selected]{background:#ddd}.wp-block-freeform.block-library-rich-text__tinymce .alignright{float:right;margin:.5em 0 .5em 1em}.wp-block-freeform.block-library-rich-text__tinymce .alignleft{float:left;margin:.5em 1em .5em 0}.wp-block-freeform.block-library-rich-text__tinymce .aligncenter{display:block;margin-left:auto;margin-right:auto}.wp-block-freeform.block-library-rich-text__tinymce .wp-more-tag{width:96%;height:20px;display:block;margin:15px auto;outline:0;cursor:default;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAADtgAAAAoBAMAAAA86gLBAAAAJFBMVEVMaXG7u7vBwcHDw8POzs68vLzGxsbMzMy+vr7AwMDQ0NDGxsYKLGzpAAAADHRSTlMA///zWf+/f///TMxNVGuqAAABwklEQVR4Ae3dMXLaQBTH4bfj8UCpx8hq0vgKvgFNemhT6Qo6gg6R+0ZahM2QLmyBJ99XWP9V5+o3jIUcLQEAAAAAAAAAAAAAAAAAAAAAAABQ8j0WL9lfTtlt18uNXAUA8O/KVtfa1tdcrOdSh9gCQAMlh1hMNbZZ1bsrsQWABsrhLRbz7z5in/32UbfUMUbkMQCAh5RfGYv82UdMdZ6HS2wjT2ILAI8r3XmM2B3WvM59vfO2xXYW2yYAENuPU8S+X/N67mKxzy225yaxBQCxLV392UdcvwV0jPVUj98ntkBWT7C7+9u2/V/vGtvXIWJ6/4rtbottWa6Ri0NUT/u72LYttrb97LHdvUXMxxrb8TO2W2TF1rYbbLG1bbGNjMi4+2Sbi1FsbbvNFlvbFtt5fDnE3d9sP1/XeIyV2Nr2U2/guZUuptNrH/dPI9eLB6SaAEBs6wPJf3/PNk9tYgsAYrv/8TFuzx/fvkFqGtrEFgDEdpcZUb7ejXy6ntrEFgDENvL6gsas4vbdyKt4DACI7TxElJv/Z7udpqFNbAFAbKduy2uU2trttM/x28UWAAAAAAAAAAAAAAAAAAAAAAAAAADgDyPwGmGTCZp7AAAAAElFTkSuQmCC);background-size:1900px 20px;background-repeat:no-repeat;background-position:50%}.wp-block-freeform.block-library-rich-text__tinymce img::selection{background-color:transparent}.wp-block-freeform.block-library-rich-text__tinymce div.mceTemp{-ms-user-select:element}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption{margin:0;max-width:100%}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption a,.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption img{display:block}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption,.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption *{-webkit-user-drag:none}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption .wp-caption-dd{padding-top:.5em;margin:0}.wp-block-freeform.block-library-rich-text__tinymce .wpview{width:99.99%;position:relative;clear:both;margin-bottom:16px;border:1px solid transparent}.wp-block-freeform.block-library-rich-text__tinymce .wpview iframe{display:block;max-width:100%;background:transparent}.wp-block-freeform.block-library-rich-text__tinymce .wpview .mce-shim{position:absolute;top:0;right:0;bottom:0;left:0}.wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected="2"] .mce-shim{display:none}.wp-block-freeform.block-library-rich-text__tinymce .wpview .loading-placeholder{border:1px dashed #ddd;padding:10px}.wp-block-freeform.block-library-rich-text__tinymce .wpview .wpview-error{border:1px solid #ddd;padding:1em 0;margin:0;word-wrap:break-word}.wp-block-freeform.block-library-rich-text__tinymce .wpview .wpview-error p{margin:0;text-align:center}.wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected] .loading-placeholder,.wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected] .wpview-error{border-color:transparent}.wp-block-freeform.block-library-rich-text__tinymce .wpview .dashicons{display:block;margin:0 auto;width:32px;height:32px;font-size:32px}.wp-block-freeform.block-library-rich-text__tinymce .wpview.wpview-type-gallery:after{content:"";display:table;clear:both}.wp-block-freeform.block-library-rich-text__tinymce .gallery img[data-mce-selected]:focus{outline:none}.wp-block-freeform.block-library-rich-text__tinymce .gallery a{cursor:default}.wp-block-freeform.block-library-rich-text__tinymce .gallery{margin:auto -6px;padding:6px 0;line-height:1;overflow-x:hidden}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-item{float:left;margin:0;text-align:center;padding:6px;box-sizing:border-box}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-caption,.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-icon{margin:0}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-caption{font-size:13px;margin:4px 0}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-1 .gallery-item{width:100%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-2 .gallery-item{width:50%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-3 .gallery-item{width:33.33333%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-4 .gallery-item{width:25%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-5 .gallery-item{width:20%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-6 .gallery-item{width:16.66667%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-7 .gallery-item{width:14.28571%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-8 .gallery-item{width:12.5%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-9 .gallery-item{width:11.11111%}.wp-block-freeform.block-library-rich-text__tinymce .gallery img{max-width:100%;height:auto;border:none;padding:0}div[data-type="core/freeform"]:before{transition:border-color .1s linear,box-shadow .1s linear;border:1px solid #ddd;outline:1px solid transparent}@media (prefers-reduced-motion:reduce){div[data-type="core/freeform"]:before{transition-duration:0s}}div[data-type="core/freeform"].is-selected:before{border-color:#1e1e1e}div[data-type="core/freeform"] .block-editor-block-contextual-toolbar+div{margin-top:0;padding-top:0}div[data-type="core/freeform"].is-selected .block-library-rich-text__tinymce:after{content:"";display:table;clear:both}.mce-toolbar-grp .mce-btn.mce-active:hover button,.mce-toolbar-grp .mce-btn.mce-active:hover i,.mce-toolbar-grp .mce-btn.mce-active button,.mce-toolbar-grp .mce-btn.mce-active i{color:#1e1e1e}.mce-toolbar-grp .mce-rtl .mce-flow-layout-item.mce-last{margin-right:0;margin-left:8px}.mce-toolbar-grp .mce-btn i{font-style:normal}.block-library-classic__toolbar{display:none;width:auto;position:-webkit-sticky;position:sticky;z-index:31;top:0;border:1px solid #ddd;border-bottom:none;border-radius:2px;margin:0 0 8px;padding:0}div[data-type="core/freeform"].is-selected .block-library-classic__toolbar,div[data-type="core/freeform"].is-typing .block-library-classic__toolbar{display:block;border-color:#1e1e1e}.block-library-classic__toolbar .mce-tinymce{box-shadow:none}@media (min-width:600px){.block-library-classic__toolbar{padding:0}}.block-library-classic__toolbar:empty{display:block;background:#f5f5f5;border-bottom:1px solid #e2e4e7}.block-library-classic__toolbar:empty:before{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;content:attr(data-placeholder);color:#555d66;line-height:37px;padding:14px}.block-library-classic__toolbar div.mce-toolbar-grp{border-bottom:1px solid #1e1e1e}.block-library-classic__toolbar .mce-menubar,.block-library-classic__toolbar .mce-menubar>div,.block-library-classic__toolbar .mce-tinymce-inline,.block-library-classic__toolbar .mce-tinymce-inline>div,.block-library-classic__toolbar div.mce-toolbar-grp,.block-library-classic__toolbar div.mce-toolbar-grp>div{height:auto!important;width:100%!important}.block-library-classic__toolbar .mce-container-body.mce-abs-layout{overflow:visible}.block-library-classic__toolbar .mce-menubar,.block-library-classic__toolbar div.mce-toolbar-grp{position:static}.block-library-classic__toolbar .mce-toolbar-grp>div{padding:1px 3px}.block-library-classic__toolbar .mce-toolbar-grp .mce-toolbar:not(:first-child){display:none}.block-library-classic__toolbar.has-advanced-toolbar .mce-toolbar-grp .mce-toolbar{display:block}.wp-block-gallery li{list-style-type:none}.wp-block-gallery .block-editor-media-placeholder{margin-bottom:12px;padding:12px}.wp-block-gallery .block-editor-media-placeholder .components-placeholder__label{display:none}.wp-block-gallery .block-editor-media-placeholder .components-button{margin-bottom:0}figure.wp-block-gallery{display:block;margin:0}.blocks-gallery-grid.blocks-gallery-grid{padding-left:0;margin-left:0;margin-bottom:0}.blocks-gallery-item figure:not(.is-selected):focus,.blocks-gallery-item img:focus{outline:none}.blocks-gallery-item figure.is-selected{box-shadow:0 0 0 1px #fff,0 0 0 3px #007cba;box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color);border-radius:2px;outline:2px solid transparent}.blocks-gallery-item figure.is-selected img{border-radius:2px}.blocks-gallery-item figure.is-transient img{opacity:.3}.blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu{display:inline-flex}.blocks-gallery-item .block-editor-media-placeholder{margin:0;height:100%}.blocks-gallery-item .block-editor-media-placeholder .components-placeholder__label{display:flex}.block-library-gallery-item__inline-menu{display:none;position:absolute;top:-2px;margin:8px;z-index:20;transition:box-shadow .2s ease-out;border-radius:2px;background:#fff;border:1px solid #1e1e1e}@media (prefers-reduced-motion:reduce){.block-library-gallery-item__inline-menu{transition-duration:0s}}.block-library-gallery-item__inline-menu:hover{box-shadow:0 2px 6px rgba(0,0,0,.05)}@media (min-width:600px){.columns-7 .block-library-gallery-item__inline-menu,.columns-8 .block-library-gallery-item__inline-menu{padding:2px}}.block-library-gallery-item__inline-menu .components-button.has-icon:not(:focus){border:none;box-shadow:none}@media (min-width:600px){.columns-7 .block-library-gallery-item__inline-menu .components-button.has-icon,.columns-8 .block-library-gallery-item__inline-menu .components-button.has-icon{padding:0;width:inherit;height:inherit}}.block-library-gallery-item__inline-menu.is-left{left:-2px}.block-library-gallery-item__inline-menu.is-right{right:-2px}.blocks-gallery-item .components-spinner{position:absolute;top:50%;left:50%;margin-top:-9px;margin-left:-9px}.wp-block-group .block-editor-block-list__insertion-point{left:0;right:0}.wp-block-group>.wp-block-group__inner-container>[data-align=full]{margin-left:auto;margin-right:auto}.wp-block-group.has-background>.wp-block-group__inner-container>[data-align=full]{margin-left:-30px;width:calc(100% + 60px)}[data-align=full] .wp-block-group>.wp-block-group__inner-container>.wp-block{padding-left:14px;padding-right:14px}@media (min-width:600px){[data-align=full] .wp-block-group>.wp-block-group__inner-container>.wp-block{padding-left:0;padding-right:0}}[data-align=full] .wp-block-group>.wp-block-group__inner-container>[data-align=full]{padding-right:0;padding-left:0;left:0;width:100%;max-width:none}[data-align=full] .wp-block-group.has-background>.wp-block-group__inner-container>[data-align=full]{width:calc(100% + 60px)}[data-type="core/group"].is-selected .block-list-appender{margin-left:0;margin-right:0}[data-type="core/group"].is-selected .has-background .block-list-appender{margin-top:18px;margin-bottom:18px}.block-library-heading-level-dropdown .components-popover__content{min-width:230px}.block-library-heading-level-dropdown .components-popover__content>div{padding:0}.block-library-heading-level-toolbar{border:none}.wp-block-html{margin-bottom:28px}.wp-block-html .block-library-html__preview-overlay{position:absolute;width:100%;height:100%;top:0;left:0}.wp-block-html .block-editor-plain-text{font-family:Menlo,Consolas,monaco,monospace;color:#1e1e1e;padding:.8em 1em;border:1px solid #ddd;border-radius:4px;max-height:250px;font-size:16px}@media (min-width:600px){.wp-block-html .block-editor-plain-text{font-size:13px}}.wp-block-html .block-editor-plain-text:focus{box-shadow:none}figure.wp-block-image:not(.wp-block){margin:0}.wp-block-image{position:relative}.wp-block-image .is-applying img,.wp-block-image.is-transient img{opacity:.3}.wp-block-image figcaption img{display:inline}.wp-block-image .components-spinner{position:absolute;top:50%;left:50%;margin-top:-9px;margin-left:-9px}.wp-block-image .components-resizable-box__container{display:inline-block}.wp-block-image .components-resizable-box__container img{display:block;width:inherit;height:inherit}.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{position:absolute;left:0;right:0;margin:-1px 0}@media (min-width:600px){.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{margin:-1px}}[data-align=full]>.wp-block-image img,[data-align=wide]>.wp-block-image img{width:100%}.wp-block[data-align=left]>.wp-block-image{margin:.5em 1em .5em 0}.wp-block[data-align=right]>.wp-block-image{margin:.5em 0 .5em 1em}.wp-block[data-align=center]>.wp-block-image{margin-left:auto;margin-right:auto;text-align:center}.wp-block-image__crop-area{position:relative;max-width:100%;width:100%}.wp-block-image__crop-icon{padding:0 8px;min-width:48px;display:flex;justify-content:center;align-items:center}.wp-block-image__crop-icon svg{fill:currentColor}.wp-block-image__zoom .components-popover__content{overflow:visible}.wp-block-image__zoom .components-range-control{flex:1}.wp-block-image__zoom .components-base-control__field{display:flex;margin-bottom:0}.wp-block-image__aspect-ratio{height:46px;margin-bottom:-8px;display:flex;align-items:center}.wp-block-image__aspect-ratio .components-button{width:36px;padding-left:0;padding-right:0}.wp-block-latest-comments.has-avatars .avatar{margin-right:10px}.wp-block-latest-comments__comment-excerpt p{font-size:14px;line-height:1.8;margin:5px 0 20px;padding-top:0}.wp-block-latest-comments.has-avatars .wp-block-latest-comments__comment{min-height:36px}.block-editor .wp-block-latest-posts{padding-left:2.5em}.block-editor .wp-block-latest-posts.is-grid{padding-left:0}.wp-block-latest-posts li a>div{display:inline}.edit-post-visual-editor .wp-block-latest-posts.is-grid li{margin-bottom:20px}ol.has-background.has-background,ul.has-background.has-background{padding:1.25em 2.375em}.wp-block-media-text .__resizable_base__{-ms-grid-column:1;-ms-grid-column-span:2;grid-column:1/span 2;-ms-grid-row:2;grid-row:2}.wp-block-media-text .editor-media-container__resizer{width:100%!important}.wp-block-media-text.is-image-fill .editor-media-container__resizer{height:100%!important}.wp-block-media-text>.block-editor-block-list__layout>.block-editor-block-list__block{max-width:unset}.block-editor-block-list__block[data-type="core/more"]{max-width:100%;text-align:center;margin-top:28px;margin-bottom:28px}.block-editor .wp-block-more{display:block;text-align:center;white-space:nowrap}.block-editor .wp-block-more input[type=text]{position:relative;font-size:13px;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#757575;border:none;box-shadow:none;white-space:nowrap;text-align:center;margin:0;border-radius:4px;background:#fff;padding:6px 8px;height:24px;max-width:100%}.block-editor .wp-block-more input[type=text]:focus{box-shadow:none}.block-editor .wp-block-more:before{content:"";position:absolute;top:50%;left:0;right:0;border-top:3px dashed #ccc}.editor-styles-wrapper .wp-block-navigation ol,.editor-styles-wrapper .wp-block-navigation ul{margin-bottom:0;margin-left:0;padding-left:0}.editor-styles-wrapper .wp-block-navigation .block-editor-block-list__block{margin:0}.wp-block-navigation .block-list-appender{margin:0;display:flex;align-items:center}.wp-block-navigation.is-vertical .block-list-appender{margin:8px}.wp-block-navigation__inserter-content{padding:16px}.wp-block-navigation__container{min-height:46px}.wp-block-navigation__container.is-parent-of-selected-block{visibility:visible;opacity:1}.has-child:hover>.wp-block-navigation__container,.has-child>.wp-block-navigation__container{opacity:0;visibility:hidden}.has-child.has-child-selected>.wp-block-navigation__container,.has-child.is-selected>.wp-block-navigation__container,.is-dragging-components-draggable .has-child.is-dragging-within>.wp-block-navigation__container{opacity:1;visibility:visible}.is-dragging-components-draggable .wp-block-navigation-link>.wp-block-navigation__container{opacity:1;visibility:hidden}.is-dragging-components-draggable .wp-block-navigation-link>.wp-block-navigation__container .block-editor-block-draggable-chip-wrapper{visibility:visible}.block-library-colors-selector{width:auto}.block-library-colors-selector .block-library-colors-selector__toggle{display:block;margin:0 auto;padding:3px;width:auto}.block-library-colors-selector .block-library-colors-selector__icon-container{height:30px;position:relative;margin:0 auto;padding:3px;display:flex;align-items:center;border-radius:4px}.block-library-colors-selector .block-library-colors-selector__state-selection{margin-left:auto;margin-right:auto;border-radius:11px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);width:22px;min-width:22px;height:22px;min-height:22px;line-height:20px;padding:2px}.block-library-colors-selector .block-library-colors-selector__state-selection>svg{min-width:auto!important}.block-library-colors-selector .block-library-colors-selector__state-selection.has-text-color>svg,.block-library-colors-selector .block-library-colors-selector__state-selection.has-text-color>svg path{color:inherit}.block-library-colors-selector__popover .color-palette-controller-container{padding:16px}.block-library-colors-selector__popover .components-base-control__label{height:20px;line-height:20px}.block-library-colors-selector__popover .component-color-indicator{float:right;margin-top:2px}.block-library-colors-selector__popover .components-panel__body-title{display:none}.is-editing>.wp-block-navigation__container{visibility:visible;opacity:1;display:flex;flex-direction:column}.wp-block-navigation-placeholder .components-spinner{margin-top:-4px;margin-left:4px;vertical-align:middle;margin-right:7px}.wp-block-navigation-placeholder .components-custom-select-control__button{height:auto;padding:.375rem .75rem .375rem 1.5rem;min-width:13.75rem}.wp-block-navigation-placeholder .components-custom-select-control.has-menus .components-custom-select-control__item.is-create-empty-option{position:relative;margin-top:20px}.wp-block-navigation-placeholder .components-custom-select-control.has-menus .components-custom-select-control__item.is-create-empty-option:before{content:"";position:absolute;top:-10px;left:25px;right:25px;height:15px;border-top:1px solid #757575}.wp-block-navigation-placeholder .components-custom-select-control__label{margin-bottom:1rem;font-size:13px;font-weight:400}.wp-block-navigation-placeholder .components-custom-select-control__menu{margin:0;max-height:none;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.wp-block-navigation .block-editor-button-block-appender{justify-content:flex-start}.wp-block-navigation-link__container,.wp-block-navigation-link__field .components-text-control__input.components-text-control__input{border-radius:0;line-height:36px;min-height:36px}.wp-block-navigation-link .block-editor-block-list__layout{display:block}.wp-block-navigation-link.is-editing,.wp-block-navigation-link.is-selected{min-width:20px}.wp-block-navigation-link .block-editor-rich-text__editable.is-selected:not(.keep-placeholder-on-focus):not(:focus)[data-rich-text-placeholder]:after{display:inline-block}.wp-block-navigation-link .block-list-appender{margin:10px 16px 16px 10px}.wp-block-navigation-link__separator{margin:8px 0;border-top:1px solid #ddd}.components-popover.wp-block-navigation-link__dropdown-content{margin-top:-1px;margin-left:-4px}.wp-block-navigation-link__dropdown-content .components-popover__content>div{padding:8px 0}.wp-block-navigation .block-editor-block-list__block[data-type="core/navigation-link"]>.block-editor-block-list__insertion-point{display:none}.block-editor-block-list__block[data-type="core/nextpage"]{max-width:100%;margin-top:28px;margin-bottom:28px}.wp-block-nextpage{display:block;text-align:center;white-space:nowrap}.wp-block-nextpage>span{font-size:13px;position:relative;display:inline-block;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#757575;border-radius:4px;background:#fff;padding:6px 8px;height:24px}.wp-block-nextpage:before{content:"";position:absolute;top:50%;left:0;right:0;border-top:3px dashed #ccc}.block-editor-block-list__block[data-type="core/paragraph"].has-drop-cap:focus{min-height:auto!important}.wp-block-post-content__placeholder{height:100px;border:1px dashed;display:flex;justify-content:center;align-items:center}.wp-block-post-content__placeholder span{font-style:italic}.wp-block-post-excerpt .wp-block-post-excerpt__excerpt.is-inline{display:inline-block}.wp-block-post-author{display:flex;flex-wrap:wrap}.wp-block-post-author .wp-block-post-author__byline{font-size:.5em;margin-top:0;position:relative;font-style:normal}.wp-block-post-author .wp-block-post-author__content{flex-grow:1;flex-basis:0}.wp-block-post-author .wp-block-post-author__avatar img{margin:0}.wp-block-post-author .wp-block-post-author__avatar{margin-bottom:-8px}.wp-block-post-author .wp-block-post-author__name{margin:0;font-weight:700}.wp-block-post-author .wp-block-post-author__bio{margin:0 0 8px;font-size:.7em}.wp-block[data-align=left]>.wp-block-pullquote p,.wp-block[data-align=right]>.wp-block-pullquote p{font-size:20px}.wp-block-pullquote blockquote p{font-size:28px;line-height:1.6}.wp-block-pullquote.is-style-solid-color{margin-left:0;margin-right:0}.wp-block-pullquote.is-style-solid-color blockquote p{font-size:32px}.wp-block-pullquote.is-style-solid-color .wp-block-pullquote__citation{text-transform:none;font-style:normal}.wp-block-pullquote .wp-block-pullquote__citation{color:inherit}.wp-block-quote__citation{font-size:13px}.block-editor .wp-block-rss{padding-left:2.5em}.block-editor .wp-block-rss.is-grid{padding-left:0}.wp-block-rss li a>div{display:inline}.wp-block-rss__placeholder-form{display:flex;align-items:stretch}.wp-block-rss__placeholder-form>*{margin-bottom:8px}@media (min-width:782px){.wp-block-rss__placeholder-form>*{margin-bottom:0}}.wp-block-rss__placeholder-input{display:flex;align-items:stretch;flex-grow:1}.wp-block-rss__placeholder-input .components-base-control__field{display:flex;align-items:stretch;flex-grow:1;margin:0 8px 0 0}.wp-block-search .wp-block-search__input{padding:8px}.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper{padding:4px}.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper,.wp-block-search .wp-block-search__input{border-radius:2px;border:1px solid #949494;color:rgba(30,30,30,.62);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;background-color:#fff}.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper:focus,.wp-block-search .wp-block-search__input:focus{outline:none}.wp-block-search .wp-block-search__button{background:#f7f7f7;border-radius:2px;border:1px solid #ccc;box-shadow:inset 0 -1px 0 #ccc;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:6px 10px;color:#32373c}.wp-block-search__components-button-group{margin-top:10px}.block-editor-block-list__block[data-type="core/separator"]{padding-top:.1px;padding-bottom:.1px}.block-editor-block-list__block[data-type="core/separator"].block-editor-block-list__block{margin-top:0;margin-bottom:0}.wp-block-shortcode{display:flex;flex-direction:column;padding:14px;font-size:13px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;margin-bottom:28px}.wp-block-shortcode label{display:flex;align-items:center;white-space:nowrap;font-weight:600;flex-shrink:0}.wp-block-shortcode .block-editor-plain-text{max-height:250px}.wp-block-shortcode .dashicon{margin-right:8px}.block-editor .blocks-shortcode__textarea,.blocks-shortcode__textarea{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 .blocks-shortcode__textarea,.blocks-shortcode__textarea{transition-duration:0s}}@media (min-width:600px){.block-editor .blocks-shortcode__textarea,.blocks-shortcode__textarea{font-size:13px;line-height:normal}}.block-editor .blocks-shortcode__textarea:focus,.blocks-shortcode__textarea: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 .blocks-shortcode__textarea::-webkit-input-placeholder,.blocks-shortcode__textarea::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.block-editor .blocks-shortcode__textarea::-moz-placeholder,.blocks-shortcode__textarea::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.block-editor .blocks-shortcode__textarea:-ms-input-placeholder,.blocks-shortcode__textarea:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .block-editor .blocks-shortcode__textarea::-webkit-input-placeholder,.is-dark-theme .blocks-shortcode__textarea::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor .blocks-shortcode__textarea::-moz-placeholder,.is-dark-theme .blocks-shortcode__textarea::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor .blocks-shortcode__textarea:-ms-input-placeholder,.is-dark-theme .blocks-shortcode__textarea:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.wp-block[data-align=center]>.wp-block-site-logo{margin-left:auto;margin-right:auto;text-align:center}.wp-block-site-logo.is-resized{display:table}.wp-block-site-logo .custom-logo-link{cursor:inherit}.wp-block-site-logo .custom-logo-link:focus{box-shadow:none}.wp-block-site-logo .custom-logo-link.is-transient img{opacity:.3}.wp-block-site-logo img{display:block;max-width:100%}.wp-block-social-links .wp-social-link button{color:currentColor;padding:6px}.wp-block-social-links.is-style-pill-shape .wp-social-link button{padding-left:16px;padding-right:16px}.wp-block-social-links div.block-editor-url-input{display:inline-block;margin-left:8px}.editor-styles-wrapper .wp-block-social-link{margin:0 8px 8px 0}.editor-styles-wrapper .wp-block-social-link.is-hovered,.editor-styles-wrapper .wp-block-social-link.is-selected{transform:none}.editor-styles-wrapper .wp-block-social-links{padding:0}.wp-block-social-links__social-placeholder{display:flex}.wp-block-social-links__social-placeholder .wp-block-social-link{display:inline-flex;align-items:center;justify-content:center;margin:0 8px 8px 0;width:36px;height:36px;border-radius:50%;opacity:.8}.is-style-logos-only .wp-block-social-links__social-placeholder .wp-block-social-link:before{content:"";display:block;width:18px;height:18px;border-radius:50%;opacity:.8;background:currentColor}.is-style-pill-shape .wp-block-social-links__social-placeholder .wp-block-social-link{border-radius:9999px;padding-left:28px;padding-right:28px}.wp-block-social-links .block-list-appender{margin:0 0 8px;display:flex;align-items:center}.wp-block[data-align=center]>.wp-block-social-links{justify-content:center}.block-editor-block-preview__content .wp-social-link:disabled{opacity:1}[data-type="core/social-links"]:not(.is-selected):not(.has-child-selected) .wp-block-social-links{min-height:36px}.wp-social-link.wp-social-link__is-incomplete{opacity:.5}@media (prefers-reduced-motion:reduce){.wp-social-link.wp-social-link__is-incomplete{transition-duration:0s}}.wp-block-social-links .is-selected .wp-social-link__is-incomplete,.wp-social-link.wp-social-link__is-incomplete:focus,.wp-social-link.wp-social-link__is-incomplete:hover{opacity:1}[data-type="core/social-links"] .wp-social-link:focus{opacity:1;box-shadow:0 0 0 2px #fff,0 0 0 4px #007cba;box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-block-list__layout .block-editor-block-list__block[data-type="core/social-link"]:not([contenteditable]):focus:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block[data-type="core/social-link"].is-selected:after{right:8px}.block-editor-block-list__block[data-type="core/spacer"]:before{content:"";display:block;position:absolute;width:100%;height:24px;transform:translateY(-12px)}.block-library-spacer__resize-container.has-show-handle{background:#f0f0f0}.is-dark-theme .block-library-spacer__resize-container.has-show-handle{background:hsla(0,0%,100%,.15)}.block-library-spacer__resize-container{clear:both;margin-bottom:28px}.block-library-spacer__resize-container .components-resizable-box__handle:before{content:none}.edit-post-visual-editor p.wp-block-subhead{color:#555;font-size:1.1em;font-style:italic}.wp-block-table{margin:0}.wp-block[data-align=center]>.wp-block-table,.wp-block[data-align=left]>.wp-block-table,.wp-block[data-align=right]>.wp-block-table{height:auto}.wp-block[data-align=center]>.wp-block-table table,.wp-block[data-align=left]>.wp-block-table table,.wp-block[data-align=right]>.wp-block-table table{width:auto}.wp-block[data-align=center]>.wp-block-table td,.wp-block[data-align=center]>.wp-block-table th,.wp-block[data-align=left]>.wp-block-table td,.wp-block[data-align=left]>.wp-block-table th,.wp-block[data-align=right]>.wp-block-table td,.wp-block[data-align=right]>.wp-block-table th{word-break:break-word}.wp-block[data-align=center]>.wp-block-table{text-align:initial}.wp-block[data-align=center]>.wp-block-table table{margin:0 auto}.wp-block-table table{border-collapse:collapse}.wp-block-table td,.wp-block-table th{border:1px solid}.wp-block-table td.is-selected,.wp-block-table th.is-selected{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:inset 0 0 0 1px #007cba;box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color);border-style:double}.wp-block-table figcaption{color:#555;font-size:13px;text-align:center}.blocks-table__placeholder-form.blocks-table__placeholder-form{display:flex;flex-direction:column;align-items:flex-start}.blocks-table__placeholder-form.blocks-table__placeholder-form>*{margin-bottom:8px}@media (min-width:782px){.blocks-table__placeholder-form.blocks-table__placeholder-form{flex-direction:row;align-items:flex-end}.blocks-table__placeholder-form.blocks-table__placeholder-form>*{margin-bottom:0}}.blocks-table__placeholder-input{width:112px;margin-right:8px;margin-bottom:0}.blocks-table__placeholder-input input{height:36px}.blocks-table__placeholder-input .components-base-control__field{margin-bottom:0}.block-editor .wp-block-tag-cloud a{display:inline-block;margin-right:5px}.block-editor .wp-block-tag-cloud span{display:inline-block;margin-left:5px;color:#757575;text-decoration:none}.wp-block-template-part__placeholder-preview-dropdown-content .components-popover__content,.wp-block-template-part__preview-dropdown-content .components-popover__content{min-width:320px;padding:0}.wp-block-template-part__selection-preview-search-form{border-bottom:1px solid #ddd}.wp-block-template-part__selection-preview-container{background:#fff;padding-bottom:16px}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item{border-radius:2px;cursor:pointer;margin-top:16px;transition:all .05s ease-in-out;border:1px solid transparent;width:100%;background-color:#fff}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item:hover{border:1px solid #007cba;border:1px solid var(--wp-admin-theme-color)}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-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}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item.is-placeholder{min-height:100px}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item-title{padding:4px;font-size:12px;text-align:left}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-panel-group-header{padding:16px 16px 0}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-panel-group-content{padding:0 16px}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-panel-group-title{color:#007cba;color:var(--wp-admin-theme-color);text-transform:uppercase;font-size:11px;font-weight:500}.wp-block-template-part__block-control-group{display:flex}.wp-block-template-part__block-control-group .wp-block-template-part__name-panel{outline:1px solid transparent;padding:8px 0 8px 12px}.wp-block-template-part__block-control-group .wp-block-template-part__name-panel .components-base-control__field{align-items:center;display:flex;margin-bottom:0}.wp-block-template-part__block-control-group .wp-block-template-part__name-panel .components-base-control__label{margin-bottom:0;margin-right:8px}.is-dark-theme .is-navigate-mode .is-selected .wp-block-template-part__name-panel,.is-navigate-mode .is-selected .wp-block-template-part__name-panel{box-shadow:0 0 0 1px #007cba;box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.block-editor-block-list__block[data-type="core/template-part"].has-child-selected:after,.block-editor-block-list__block[data-type="core/template-part"].is-selected:after{top:1px;bottom:1px;left:1px;right:1px;border-radius:1px}.block-editor-block-list__block[data-type="core/template-part"].is-selected:after{box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color)}.is-dark-theme .block-editor-block-list__block[data-type="core/template-part"].is-selected:after{box-shadow:0 0 0 1.5px #fff}.block-editor-block-list__block[data-type="core/template-part"].has-child-selected:after{box-shadow:0 0 0 1px #ddd}.is-dark-theme .block-editor-block-list__block[data-type="core/template-part"].has-child-selected:after{box-shadow:0 0 0 1.5px #757575}.wp-block-text-columns .block-editor-rich-text__editable:focus{outline:1px solid #ddd}pre.wp-block-verse{color:#1e1e1e;white-space:nowrap;font-family:inherit;font-size:inherit;padding:1em;overflow:auto}.wp-block[data-align=center]>.wp-block-video{text-align:center}.editor-video-poster-control .components-base-control__label{display:block}.editor-video-poster-control .components-button{margin-right:8px}.block-library-video-tracks-editor{z-index:159990}.block-library-video-tracks-editor>.components-popover__content{width:360px}.block-library-video-tracks-editor__track-list-track{display:flex;place-content:space-between;align-items:baseline;padding-left:12px}.block-library-video-tracks-editor__single-track-editor-label-language{display:flex;margin-top:12px}.block-library-video-tracks-editor__single-track-editor-label-language>.components-base-control{width:50%}.block-library-video-tracks-editor__single-track-editor-label-language>.components-base-control:first-child{margin-right:16px}.block-library-video-tracks-editor__single-track-editor-kind-select{max-width:240px}.block-library-video-tracks-editor__single-track-editor-buttons-container{display:flex;place-content:space-between;margin-top:32px}.block-library-video-tracks-editor__single-track-editor-edit-track-label{margin-top:4px;margin-bottom:12px;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500;display:block}.block-library-video-tracks-editor>.components-popover__content>div{padding:0}.block-library-video-tracks-editor__add-tracks-container .components-menu-group__label,.block-library-video-tracks-editor__track-list .components-menu-group__label{padding:0}.block-library-video-tracks-editor__add-tracks-container,.block-library-video-tracks-editor__single-track-editor,.block-library-video-tracks-editor__track-list{padding:12px}.block-library-video-tracks-editor__single-track-editor .components-base-control .components-base-control__label{margin-bottom:4px}.block-library-video-tracks-editor__single-track-editor .components-base-control .components-base-control__field{margin-bottom:12px}.block-library-video-tracks-editor__single-track-editor .components-base-control .components-text-control__input{margin-left:0}.block-library-video-tracks-editor__single-track-editor .components-base-control .components-input-control__label{margin-bottom:4px}.editor-styles-wrapper .wp-block.wp-block-query,.editor-styles-wrapper .wp-block.wp-block-query-loop{max-width:100%}div[data-type="core/post-featured-image"] .post-featured-image_placeholder{display:flex;flex-direction:row;align-items:flex-start;border-radius:2px;background-color:#fff;box-shadow:inset 0 0 0 1px #1e1e1e;padding:12px}div[data-type="core/post-featured-image"] .post-featured-image_placeholder svg{margin-right:12px}div[data-type="core/post-featured-image"] .post-featured-image_placeholder p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;margin:0}div[data-type="core/post-featured-image"] img{max-width:100%;height:auto;display:block}.block-editor-block-list__layout .reusable-block-edit-panel{align-items:center;display:flex;flex-wrap:wrap;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:6px 12px;border-radius:2px;background-color:#fff;box-shadow:0 0 0 1px #1e1e1e;outline:1px solid transparent}.block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__info{margin-right:auto}.block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__label{margin-right:8px;white-space:nowrap;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__title{flex:1 1 100%}.block-editor-block-list__layout .reusable-block-edit-panel .components-button.reusable-block-edit-panel__button{flex-shrink:0}@media (min-width:960px){.block-editor-block-list__layout .reusable-block-edit-panel{flex-wrap:nowrap}.block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__title{margin:0}.block-editor-block-list__layout .reusable-block-edit-panel .components-button.reusable-block-edit-panel__button{margin:0 0 0 8px}}.reusable-block-edit-panel__title[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){.reusable-block-edit-panel__title[type=text]{transition-duration:0s}}@media (min-width:600px){.reusable-block-edit-panel__title[type=text]{font-size:13px;line-height:normal}}.reusable-block-edit-panel__title[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}.reusable-block-edit-panel__title[type=text]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.reusable-block-edit-panel__title[type=text]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.reusable-block-edit-panel__title[type=text]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .reusable-block-edit-panel__title[type=text]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .reusable-block-edit-panel__title[type=text]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .reusable-block-edit-panel__title[type=text]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .is-navigate-mode .is-selected .reusable-block-edit-panel,.is-navigate-mode .is-selected .reusable-block-edit-panel{box-shadow:0 0 0 1px #007cba;box-shadow:0 0 0 1px var(--wp-admin-theme-color)}:root .editor-styles-wrapper .has-pale-pink-background-color{background-color:#f78da7}:root .editor-styles-wrapper .has-vivid-red-background-color{background-color:#cf2e2e}:root .editor-styles-wrapper .has-luminous-vivid-orange-background-color{background-color:#ff6900}:root .editor-styles-wrapper .has-luminous-vivid-amber-background-color{background-color:#fcb900}:root .editor-styles-wrapper .has-light-green-cyan-background-color{background-color:#7bdcb5}:root .editor-styles-wrapper .has-vivid-green-cyan-background-color{background-color:#00d084}:root .editor-styles-wrapper .has-pale-cyan-blue-background-color{background-color:#8ed1fc}:root .editor-styles-wrapper .has-vivid-cyan-blue-background-color{background-color:#0693e3}:root .editor-styles-wrapper .has-vivid-purple-background-color{background-color:#9b51e0}:root .editor-styles-wrapper .has-white-background-color{background-color:#fff}:root .editor-styles-wrapper .has-very-light-gray-background-color{background-color:#eee}:root .editor-styles-wrapper .has-cyan-bluish-gray-background-color{background-color:#abb8c3}:root .editor-styles-wrapper .has-very-dark-gray-background-color{background-color:#313131}:root .editor-styles-wrapper .has-black-background-color{background-color:#000}:root .editor-styles-wrapper .has-pale-pink-color{color:#f78da7}:root .editor-styles-wrapper .has-vivid-red-color{color:#cf2e2e}:root .editor-styles-wrapper .has-luminous-vivid-orange-color{color:#ff6900}:root .editor-styles-wrapper .has-luminous-vivid-amber-color{color:#fcb900}:root .editor-styles-wrapper .has-light-green-cyan-color{color:#7bdcb5}:root .editor-styles-wrapper .has-vivid-green-cyan-color{color:#00d084}:root .editor-styles-wrapper .has-pale-cyan-blue-color{color:#8ed1fc}:root .editor-styles-wrapper .has-vivid-cyan-blue-color{color:#0693e3}:root .editor-styles-wrapper .has-vivid-purple-color{color:#9b51e0}:root .editor-styles-wrapper .has-white-color{color:#fff}:root .editor-styles-wrapper .has-very-light-gray-color{color:#eee}:root .editor-styles-wrapper .has-cyan-bluish-gray-color{color:#abb8c3}:root .editor-styles-wrapper .has-very-dark-gray-color{color:#313131}:root .editor-styles-wrapper .has-black-color{color:#000}:root .editor-styles-wrapper .has-vivid-cyan-blue-to-vivid-purple-gradient-background{background:linear-gradient(135deg,#0693e3,#9b51e0)}:root .editor-styles-wrapper .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(135deg,#00d084,#0693e3)}:root .editor-styles-wrapper .has-light-green-cyan-to-vivid-green-cyan-gradient-background{background:linear-gradient(135deg,#7adcb4,#00d082)}:root .editor-styles-wrapper .has-luminous-vivid-amber-to-luminous-vivid-orange-gradient-background{background:linear-gradient(135deg,#fcb900,#ff6900)}:root .editor-styles-wrapper .has-luminous-vivid-orange-to-vivid-red-gradient-background{background:linear-gradient(135deg,#ff6900,#cf2e2e)}:root .editor-styles-wrapper .has-very-light-gray-to-cyan-bluish-gray-gradient-background{background:linear-gradient(135deg,#eee,#a9b8c3)}:root .editor-styles-wrapper .has-cool-to-warm-spectrum-gradient-background{background:linear-gradient(135deg,#4aeadc,#9778d1 20%,#cf2aba 40%,#ee2c82 60%,#fb6962 80%,#fef84c)}:root .editor-styles-wrapper .has-blush-light-purple-gradient-background{background:linear-gradient(135deg,#ffceec,#9896f0)}:root .editor-styles-wrapper .has-blush-bordeaux-gradient-background{background:linear-gradient(135deg,#fecda5,#fe2d2d 50%,#6b003e)}:root .editor-styles-wrapper .has-purple-crush-gradient-background{background:linear-gradient(135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .editor-styles-wrapper .has-luminous-dusk-gradient-background{background:linear-gradient(135deg,#ffcb70,#c751c0 50%,#4158d0)}:root .editor-styles-wrapper .has-hazy-dawn-gradient-background{background:linear-gradient(135deg,#faaca8,#dad0ec)}:root .editor-styles-wrapper .has-pale-ocean-gradient-background{background:linear-gradient(135deg,#fff5cb,#b6e3d4 50%,#33a7b5)}:root .editor-styles-wrapper .has-electric-grass-gradient-background{background:linear-gradient(135deg,#caf880,#71ce7e)}:root .editor-styles-wrapper .has-subdued-olive-gradient-background{background:linear-gradient(135deg,#fafae1,#67a671)}:root .editor-styles-wrapper .has-atomic-cream-gradient-background{background:linear-gradient(135deg,#fdd79a,#004a59)}:root .editor-styles-wrapper .has-nightshade-gradient-background{background:linear-gradient(135deg,#330968,#31cdcf)}:root .editor-styles-wrapper .has-midnight-gradient-background{background:linear-gradient(135deg,#020381,#2874fc)}.editor-styles-wrapper .has-small-font-size{font-size:13px}.editor-styles-wrapper .has-normal-font-size,.editor-styles-wrapper .has-regular-font-size{font-size:16px}.editor-styles-wrapper .has-medium-font-size{font-size:20px}.editor-styles-wrapper .has-large-font-size{font-size:36px}.editor-styles-wrapper .has-huge-font-size,.editor-styles-wrapper .has-larger-font-size{font-size:42px}.block-editor-block-list__block{margin-top:28px;margin-bottom:28px}#end-resizable-editor-section{display:none} \ No newline at end of file diff --git a/wp-includes/css/dist/block-library/style-rtl.css b/wp-includes/css/dist/block-library/style-rtl.css index 89758acca9..f7c5086f7a 100644 --- a/wp-includes/css/dist/block-library/style-rtl.css +++ b/wp-includes/css/dist/block-library/style-rtl.css @@ -104,7 +104,7 @@ .wp-block-button__link.no-border-radius { border-radius: 0 !important; } -.is-style-outline .wp-block-button__link, +.is-style-outline > .wp-block-button__link, .wp-block-button__link.is-style-outline { color: #32373c; background-color: transparent; @@ -162,18 +162,30 @@ .wp-block-columns { display: flex; margin-bottom: 1.75em; - flex-wrap: wrap; } + flex-wrap: wrap; + /** + * All Columns Alignment + */ } @media (min-width: 782px) { .wp-block-columns { flex-wrap: nowrap; } } .wp-block-columns.has-background { padding: 1.25em 2.375em; } + .wp-block-columns.are-vertically-aligned-top { + align-items: flex-start; } + .wp-block-columns.are-vertically-aligned-center { + align-items: center; } + .wp-block-columns.are-vertically-aligned-bottom { + align-items: flex-end; } .wp-block-column { flex-grow: 1; min-width: 0; word-break: break-word; - overflow-wrap: break-word; } + overflow-wrap: break-word; + /** + * Individual Column Alignment + */ } @media (max-width: 599px) { .wp-block-column { flex-basis: 100% !important; } } @@ -191,34 +203,15 @@ flex-grow: 0; } .wp-block-column:not(:first-child) { margin-right: 2em; } } - -/** - * All Columns Alignment - */ -.wp-block-columns.are-vertically-aligned-top { - align-items: flex-start; } - -.wp-block-columns.are-vertically-aligned-center { - align-items: center; } - -.wp-block-columns.are-vertically-aligned-bottom { - align-items: flex-end; } - -/** - * Individual Column Alignment - */ -.wp-block-column.is-vertically-aligned-top { - align-self: flex-start; } - -.wp-block-column.is-vertically-aligned-center { - -ms-grid-row-align: center; - align-self: center; } - -.wp-block-column.is-vertically-aligned-bottom { - align-self: flex-end; } - -.wp-block-column.is-vertically-aligned-top, .wp-block-column.is-vertically-aligned-center, .wp-block-column.is-vertically-aligned-bottom { - width: 100%; } + .wp-block-column.is-vertically-aligned-top { + align-self: flex-start; } + .wp-block-column.is-vertically-aligned-center { + -ms-grid-row-align: center; + align-self: center; } + .wp-block-column.is-vertically-aligned-bottom { + align-self: flex-end; } + .wp-block-column.is-vertically-aligned-top, .wp-block-column.is-vertically-aligned-center, .wp-block-column.is-vertically-aligned-bottom { + width: 100%; } .wp-block-cover-image, .wp-block-cover { @@ -244,13 +237,14 @@ .wp-block-cover-image.has-parallax, .wp-block-cover.has-parallax { background-attachment: scroll; } } - .wp-block-cover-image.has-background-dim, - .wp-block-cover.has-background-dim { - background-color: #000; } - .wp-block-cover-image.has-background-dim::before, - .wp-block-cover.has-background-dim::before { - content: ""; - background-color: inherit; } + .wp-block-cover-image.is-repeated, + .wp-block-cover.is-repeated { + background-repeat: repeat; + background-size: auto; } + .wp-block-cover-image.has-background-dim::before, + .wp-block-cover.has-background-dim::before { + content: ""; + background-color: inherit; } .wp-block-cover-image.has-background-dim:not(.has-background-gradient)::before, .wp-block-cover-image .wp-block-cover__gradient-background, .wp-block-cover.has-background-dim:not(.has-background-gradient)::before, @@ -260,70 +254,56 @@ right: 0; bottom: 0; left: 0; - z-index: 1; } - .wp-block-cover-image.has-background-dim:not(.has-background-gradient)::before, - .wp-block-cover-image .wp-block-cover__gradient-background, - .wp-block-cover.has-background-dim:not(.has-background-gradient)::before, - .wp-block-cover .wp-block-cover__gradient-background { + z-index: 1; opacity: 0.5; } .wp-block-cover-image.has-background-dim.has-background-dim-10:not(.has-background-gradient)::before, - .wp-block-cover.has-background-dim.has-background-dim-10:not(.has-background-gradient)::before { - opacity: 0.1; } .wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background, + .wp-block-cover.has-background-dim.has-background-dim-10:not(.has-background-gradient)::before, .wp-block-cover.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background { opacity: 0.1; } .wp-block-cover-image.has-background-dim.has-background-dim-20:not(.has-background-gradient)::before, - .wp-block-cover.has-background-dim.has-background-dim-20:not(.has-background-gradient)::before { - opacity: 0.2; } .wp-block-cover-image.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background, + .wp-block-cover.has-background-dim.has-background-dim-20:not(.has-background-gradient)::before, .wp-block-cover.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background { opacity: 0.2; } .wp-block-cover-image.has-background-dim.has-background-dim-30:not(.has-background-gradient)::before, - .wp-block-cover.has-background-dim.has-background-dim-30:not(.has-background-gradient)::before { - opacity: 0.3; } .wp-block-cover-image.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background, + .wp-block-cover.has-background-dim.has-background-dim-30:not(.has-background-gradient)::before, .wp-block-cover.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background { opacity: 0.3; } .wp-block-cover-image.has-background-dim.has-background-dim-40:not(.has-background-gradient)::before, - .wp-block-cover.has-background-dim.has-background-dim-40:not(.has-background-gradient)::before { - opacity: 0.4; } .wp-block-cover-image.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background, + .wp-block-cover.has-background-dim.has-background-dim-40:not(.has-background-gradient)::before, .wp-block-cover.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background { opacity: 0.4; } .wp-block-cover-image.has-background-dim.has-background-dim-50:not(.has-background-gradient)::before, - .wp-block-cover.has-background-dim.has-background-dim-50:not(.has-background-gradient)::before { - opacity: 0.5; } .wp-block-cover-image.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background, + .wp-block-cover.has-background-dim.has-background-dim-50:not(.has-background-gradient)::before, .wp-block-cover.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background { opacity: 0.5; } .wp-block-cover-image.has-background-dim.has-background-dim-60:not(.has-background-gradient)::before, - .wp-block-cover.has-background-dim.has-background-dim-60:not(.has-background-gradient)::before { - opacity: 0.6; } .wp-block-cover-image.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background, + .wp-block-cover.has-background-dim.has-background-dim-60:not(.has-background-gradient)::before, .wp-block-cover.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background { opacity: 0.6; } .wp-block-cover-image.has-background-dim.has-background-dim-70:not(.has-background-gradient)::before, - .wp-block-cover.has-background-dim.has-background-dim-70:not(.has-background-gradient)::before { - opacity: 0.7; } .wp-block-cover-image.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background, + .wp-block-cover.has-background-dim.has-background-dim-70:not(.has-background-gradient)::before, .wp-block-cover.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background { opacity: 0.7; } .wp-block-cover-image.has-background-dim.has-background-dim-80:not(.has-background-gradient)::before, - .wp-block-cover.has-background-dim.has-background-dim-80:not(.has-background-gradient)::before { - opacity: 0.8; } .wp-block-cover-image.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background, + .wp-block-cover.has-background-dim.has-background-dim-80:not(.has-background-gradient)::before, .wp-block-cover.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background { opacity: 0.8; } .wp-block-cover-image.has-background-dim.has-background-dim-90:not(.has-background-gradient)::before, - .wp-block-cover.has-background-dim.has-background-dim-90:not(.has-background-gradient)::before { - opacity: 0.9; } .wp-block-cover-image.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background, + .wp-block-cover.has-background-dim.has-background-dim-90:not(.has-background-gradient)::before, .wp-block-cover.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background { opacity: 0.9; } .wp-block-cover-image.has-background-dim.has-background-dim-100:not(.has-background-gradient)::before, - .wp-block-cover.has-background-dim.has-background-dim-100:not(.has-background-gradient)::before { - opacity: 1; } .wp-block-cover-image.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background, + .wp-block-cover.has-background-dim.has-background-dim-100:not(.has-background-gradient)::before, .wp-block-cover.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background { opacity: 1; } .wp-block-cover-image.alignleft, .wp-block-cover-image.alignright, @@ -348,6 +328,7 @@ display: flex; } .wp-block-cover-image .wp-block-cover__inner-container, .wp-block-cover .wp-block-cover__inner-container { + width: 100%; z-index: 1; color: #fff; } .wp-block-cover-image p:not(.has-text-color), @@ -519,8 +500,8 @@ section.wp-block-cover-image > h2, .wp-embed-responsive .wp-embed-aspect-1-1 .wp-block-embed__wrapper::before { padding-top: 100%; } -.wp-embed-responsive .wp-embed-aspect-9-6 .wp-block-embed__wrapper::before { - padding-top: 66.66%; } +.wp-embed-responsive .wp-embed-aspect-9-16 .wp-block-embed__wrapper::before { + padding-top: 177.77%; } .wp-embed-responsive .wp-embed-aspect-1-2 .wp-block-embed__wrapper::before { padding-top: 200%; } @@ -563,7 +544,13 @@ section.wp-block-cover-image > h2, flex-grow: 1; flex-direction: column; justify-content: center; - position: relative; } + position: relative; + width: calc(50% - 1em); } + .wp-block-gallery .blocks-gallery-image:nth-of-type(even), + .wp-block-gallery .blocks-gallery-item:nth-of-type(even), + .blocks-gallery-grid .blocks-gallery-image:nth-of-type(even), + .blocks-gallery-grid .blocks-gallery-item:nth-of-type(even) { + margin-left: 0; } .wp-block-gallery .blocks-gallery-image figure, .wp-block-gallery .blocks-gallery-item figure, .blocks-gallery-grid .blocks-gallery-image figure, @@ -584,11 +571,7 @@ section.wp-block-cover-image > h2, .blocks-gallery-grid .blocks-gallery-item img { display: block; max-width: 100%; - height: auto; } - .wp-block-gallery .blocks-gallery-image img, - .wp-block-gallery .blocks-gallery-item img, - .blocks-gallery-grid .blocks-gallery-image img, - .blocks-gallery-grid .blocks-gallery-item img { + height: auto; width: 100%; } @supports ((position: -webkit-sticky) or (position: sticky)) { .wp-block-gallery .blocks-gallery-image img, @@ -610,12 +593,16 @@ section.wp-block-cover-image > h2, text-align: center; font-size: 0.8em; background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0, rgba(0, 0, 0, 0.3) 70%, transparent); - box-sizing: border-box; } + box-sizing: border-box; + margin: 0; } .wp-block-gallery .blocks-gallery-image figcaption img, .wp-block-gallery .blocks-gallery-item figcaption img, .blocks-gallery-grid .blocks-gallery-image figcaption img, .blocks-gallery-grid .blocks-gallery-item figcaption img { display: inline; } + .wp-block-gallery figcaption, + .blocks-gallery-grid figcaption { + flex-grow: 1; } .wp-block-gallery.is-cropped .blocks-gallery-image a, .wp-block-gallery.is-cropped .blocks-gallery-image img, .wp-block-gallery.is-cropped .blocks-gallery-item a, @@ -637,16 +624,6 @@ section.wp-block-cover-image > h2, height: 100%; flex: 1; object-fit: cover; } } - .wp-block-gallery .blocks-gallery-image, - .wp-block-gallery .blocks-gallery-item, - .blocks-gallery-grid .blocks-gallery-image, - .blocks-gallery-grid .blocks-gallery-item { - width: calc(50% - 1em); } - .wp-block-gallery .blocks-gallery-image:nth-of-type(even), - .wp-block-gallery .blocks-gallery-item:nth-of-type(even), - .blocks-gallery-grid .blocks-gallery-image:nth-of-type(even), - .blocks-gallery-grid .blocks-gallery-item:nth-of-type(even) { - margin-left: 0; } .wp-block-gallery.columns-1 .blocks-gallery-image, .wp-block-gallery.columns-1 .blocks-gallery-item, .blocks-gallery-grid.columns-1 .blocks-gallery-image, @@ -865,15 +842,25 @@ h6.has-background { @media (min-width: 600px) { .wp-block-latest-posts.columns-2 li { - width: calc((100% / 2) - 1.25em); } + width: calc((100% / 2) - 1.25em + (1.25em / 2)); } + .wp-block-latest-posts.columns-2 li:nth-child(2n) { + margin-left: 0; } .wp-block-latest-posts.columns-3 li { - width: calc((100% / 3) - 1.25em); } + width: calc((100% / 3) - 1.25em + (1.25em / 3)); } + .wp-block-latest-posts.columns-3 li:nth-child(3n) { + margin-left: 0; } .wp-block-latest-posts.columns-4 li { - width: calc((100% / 4) - 1.25em); } + width: calc((100% / 4) - 1.25em + (1.25em / 4)); } + .wp-block-latest-posts.columns-4 li:nth-child(4n) { + margin-left: 0; } .wp-block-latest-posts.columns-5 li { - width: calc((100% / 5) - 1.25em); } + width: calc((100% / 5) - 1.25em + (1.25em / 5)); } + .wp-block-latest-posts.columns-5 li:nth-child(5n) { + margin-left: 0; } .wp-block-latest-posts.columns-6 li { - width: calc((100% / 6) - 1.25em); } } + width: calc((100% / 6) - 1.25em + (1.25em / 6)); } + .wp-block-latest-posts.columns-6 li:nth-child(6n) { + margin-left: 0; } } .wp-block-latest-posts__post-date, .wp-block-latest-posts__post-author { @@ -1055,6 +1042,8 @@ ul.has-background { position: absolute; right: 0; top: 100%; + width: -webkit-fit-content; + width: -moz-fit-content; width: fit-content; z-index: 2; opacity: 0; @@ -1314,6 +1303,7 @@ p.has-text-color a { justify-content: flex-start; padding-right: 0; padding-left: 0; + text-indent: 0; margin-right: 0; } .wp-block-social-links .wp-social-link a, .wp-block-social-links .wp-social-link a:hover { @@ -1325,7 +1315,7 @@ p.has-text-color a { display: block; width: 36px; height: 36px; - border-radius: 36px; + border-radius: 9999px; margin: 0 0 8px 8px; transition: transform 0.1s ease; } @media (prefers-reduced-motion: reduce) { @@ -1708,6 +1698,9 @@ p.wp-block-subhead { margin-top: 0.5em; margin-bottom: 1em; } +.wp-block-post-featured-image a { + display: inline-block; } + :root { /* stylelint-disable function-comma-space-after */ /* stylelint-enable function-comma-space-after */ } diff --git a/wp-includes/css/dist/block-library/style-rtl.min.css b/wp-includes/css/dist/block-library/style-rtl.min.css index d62387d50a..3e1b25e2e2 100644 --- a/wp-includes/css/dist/block-library/style-rtl.min.css +++ b/wp-includes/css/dist/block-library/style-rtl.min.css @@ -1 +1 @@ -: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}.wp-block-audio figcaption{margin-top:.5em;margin-bottom:1em}.wp-block-audio audio{width:100%;min-width:300px}.wp-block-button__link{color:#fff;background-color:#32373c;border:none;border-radius:1.55em;box-shadow:none;cursor:pointer;display:inline-block;font-size:1.125em;padding:.667em 1.333em;text-align:center;text-decoration:none;overflow-wrap:break-word}.wp-block-button__link:active,.wp-block-button__link:focus,.wp-block-button__link:hover,.wp-block-button__link:visited{color:#fff}.wp-block-button__link.aligncenter{text-align:center}.wp-block-button__link.alignright{text-align:right}.wp-block-button.is-style-squared,.wp-block-button__link.wp-block-button.is-style-squared{border-radius:0}.wp-block-button.no-border-radius,.wp-block-button__link.no-border-radius{border-radius:0!important}.is-style-outline .wp-block-button__link,.wp-block-button__link.is-style-outline{color:#32373c;background-color:transparent;border:2px solid}.wp-block-buttons .wp-block-button{display:inline-block;margin-left:.5em;margin-bottom:.5em}.wp-block-buttons .wp-block-button:last-child{margin-left:0}.wp-block-buttons.alignright .wp-block-button{margin-right:0;margin-left:.5em}.wp-block-buttons.alignright .wp-block-button:first-child{margin-right:0}.wp-block-buttons.alignleft .wp-block-button{margin-left:0;margin-right:.5em}.wp-block-buttons.alignleft .wp-block-button:last-child{margin-left:0}.wp-block-button.aligncenter,.wp-block-buttons.aligncenter,.wp-block-calendar{text-align:center}.wp-block-calendar tbody td,.wp-block-calendar th{padding:.25em;border:1px solid #ddd}.wp-block-calendar tfoot td{border:none}.wp-block-calendar table{width:100%;border-collapse:collapse}.wp-block-calendar table th{font-weight:400;background:#ddd}.wp-block-calendar a{text-decoration:underline}.wp-block-calendar table caption,.wp-block-calendar table tbody{color:#40464d}.wp-block-categories.alignleft{margin-right:2em}.wp-block-categories.alignright{margin-left:2em}.wp-block-columns{display:flex;margin-bottom:1.75em;flex-wrap:wrap}@media (min-width:782px){.wp-block-columns{flex-wrap:nowrap}}.wp-block-columns.has-background{padding:1.25em 2.375em}.wp-block-column{flex-grow:1;min-width:0;word-break:break-word;overflow-wrap:break-word}@media (max-width:599px){.wp-block-column{flex-basis:100%!important}}@media (min-width:600px) and (max-width:781px){.wp-block-column{flex-basis:calc(50% - 1em)!important;flex-grow:0}.wp-block-column:nth-child(2n){margin-right:2em}}@media (min-width:782px){.wp-block-column{flex-basis:0;flex-grow:1}.wp-block-column[style*=flex-basis]{flex-grow:0}.wp-block-column:not(:first-child){margin-right:2em}}.wp-block-columns.are-vertically-aligned-top{align-items:flex-start}.wp-block-columns.are-vertically-aligned-center{align-items:center}.wp-block-columns.are-vertically-aligned-bottom{align-items:flex-end}.wp-block-column.is-vertically-aligned-top{align-self:flex-start}.wp-block-column.is-vertically-aligned-center{-ms-grid-row-align:center;align-self:center}.wp-block-column.is-vertically-aligned-bottom{align-self:flex-end}.wp-block-column.is-vertically-aligned-bottom,.wp-block-column.is-vertically-aligned-center,.wp-block-column.is-vertically-aligned-top{width:100%}.wp-block-cover,.wp-block-cover-image{position:relative;background-size:cover;background-position:50%;min-height:430px;height:100%;width:100%;display:flex;justify-content:center;align-items:center;padding:1em;box-sizing:border-box}.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax{background-attachment:fixed}@supports (-webkit-overflow-scrolling:touch){.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax{background-attachment:scroll}}@media (prefers-reduced-motion:reduce){.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax{background-attachment:scroll}}.wp-block-cover-image.has-background-dim,.wp-block-cover.has-background-dim{background-color:#000}.wp-block-cover-image.has-background-dim:before,.wp-block-cover.has-background-dim:before{content:"";background-color:inherit}.wp-block-cover-image.has-background-dim:not(.has-background-gradient):before,.wp-block-cover-image .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim:not(.has-background-gradient):before,.wp-block-cover .wp-block-cover__gradient-background{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1}.wp-block-cover-image.has-background-dim:not(.has-background-gradient):before,.wp-block-cover-image .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim:not(.has-background-gradient):before,.wp-block-cover .wp-block-cover__gradient-background{opacity:.5}.wp-block-cover-image.has-background-dim.has-background-dim-10:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-10:not(.has-background-gradient):before{opacity:.1}.wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background{opacity:.1}.wp-block-cover-image.has-background-dim.has-background-dim-20:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-20:not(.has-background-gradient):before{opacity:.2}.wp-block-cover-image.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background{opacity:.2}.wp-block-cover-image.has-background-dim.has-background-dim-30:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-30:not(.has-background-gradient):before{opacity:.3}.wp-block-cover-image.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background{opacity:.3}.wp-block-cover-image.has-background-dim.has-background-dim-40:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-40:not(.has-background-gradient):before{opacity:.4}.wp-block-cover-image.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background{opacity:.4}.wp-block-cover-image.has-background-dim.has-background-dim-50:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-50:not(.has-background-gradient):before{opacity:.5}.wp-block-cover-image.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background{opacity:.5}.wp-block-cover-image.has-background-dim.has-background-dim-60:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-60:not(.has-background-gradient):before{opacity:.6}.wp-block-cover-image.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background{opacity:.6}.wp-block-cover-image.has-background-dim.has-background-dim-70:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-70:not(.has-background-gradient):before{opacity:.7}.wp-block-cover-image.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background{opacity:.7}.wp-block-cover-image.has-background-dim.has-background-dim-80:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-80:not(.has-background-gradient):before{opacity:.8}.wp-block-cover-image.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background{opacity:.8}.wp-block-cover-image.has-background-dim.has-background-dim-90:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-90:not(.has-background-gradient):before{opacity:.9}.wp-block-cover-image.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background{opacity:.9}.wp-block-cover-image.has-background-dim.has-background-dim-100:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-100:not(.has-background-gradient):before{opacity:1}.wp-block-cover-image.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background{opacity:1}.wp-block-cover-image.alignleft,.wp-block-cover-image.alignright,.wp-block-cover.alignleft,.wp-block-cover.alignright{max-width:290px;width:100%}.wp-block-cover-image:after,.wp-block-cover:after{display:block;content:"";font-size:0;min-height:inherit}@supports ((position:-webkit-sticky) or (position:sticky)){.wp-block-cover-image:after,.wp-block-cover:after{content:none}}.wp-block-cover-image.aligncenter,.wp-block-cover-image.alignleft,.wp-block-cover-image.alignright,.wp-block-cover.aligncenter,.wp-block-cover.alignleft,.wp-block-cover.alignright{display:flex}.wp-block-cover-image .wp-block-cover__inner-container,.wp-block-cover .wp-block-cover__inner-container{z-index:1;color:#fff}.wp-block-cover-image .wp-block-subhead:not(.has-text-color),.wp-block-cover-image h1:not(.has-text-color),.wp-block-cover-image h2:not(.has-text-color),.wp-block-cover-image h3:not(.has-text-color),.wp-block-cover-image h4:not(.has-text-color),.wp-block-cover-image h5:not(.has-text-color),.wp-block-cover-image h6:not(.has-text-color),.wp-block-cover-image p:not(.has-text-color),.wp-block-cover .wp-block-subhead:not(.has-text-color),.wp-block-cover h1:not(.has-text-color),.wp-block-cover h2:not(.has-text-color),.wp-block-cover h3:not(.has-text-color),.wp-block-cover h4:not(.has-text-color),.wp-block-cover h5:not(.has-text-color),.wp-block-cover h6:not(.has-text-color),.wp-block-cover p:not(.has-text-color){color:inherit}.wp-block-cover-image.is-position-top-left,.wp-block-cover.is-position-top-left{align-items:flex-start;justify-content:flex-start}.wp-block-cover-image.is-position-top-center,.wp-block-cover.is-position-top-center{align-items:flex-start;justify-content:center}.wp-block-cover-image.is-position-top-right,.wp-block-cover.is-position-top-right{align-items:flex-start;justify-content:flex-end}.wp-block-cover-image.is-position-center-left,.wp-block-cover.is-position-center-left{align-items:center;justify-content:flex-start}.wp-block-cover-image.is-position-center-center,.wp-block-cover.is-position-center-center{align-items:center;justify-content:center}.wp-block-cover-image.is-position-center-right,.wp-block-cover.is-position-center-right{align-items:center;justify-content:flex-end}.wp-block-cover-image.is-position-bottom-left,.wp-block-cover.is-position-bottom-left{align-items:flex-end;justify-content:flex-start}.wp-block-cover-image.is-position-bottom-center,.wp-block-cover.is-position-bottom-center{align-items:flex-end;justify-content:center}.wp-block-cover-image.is-position-bottom-right,.wp-block-cover.is-position-bottom-right{align-items:flex-end;justify-content:flex-end}.wp-block-cover-image.has-custom-content-position.has-custom-content-position .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position .wp-block-cover__inner-container{margin:0;width:auto}.wp-block-cover__video-background{position:absolute;top:50%;right:50%;transform:translateX(50%) translateY(-50%);width:100%;height:100%;z-index:0;object-fit:cover}.wp-block-cover-image-text,.wp-block-cover-text,section.wp-block-cover-image h2{color:#fff}.wp-block-cover-image-text a,.wp-block-cover-image-text a:active,.wp-block-cover-image-text a:focus,.wp-block-cover-image-text a:hover,.wp-block-cover-text a,.wp-block-cover-text a:active,.wp-block-cover-text a:focus,.wp-block-cover-text a:hover,section.wp-block-cover-image h2 a,section.wp-block-cover-image h2 a:active,section.wp-block-cover-image h2 a:focus,section.wp-block-cover-image h2 a:hover{color:#fff}.wp-block-cover-image .wp-block-cover.has-left-content{justify-content:flex-start}.wp-block-cover-image .wp-block-cover.has-right-content{justify-content:flex-end}.wp-block-cover-image.has-left-content .wp-block-cover-image-text,.wp-block-cover.has-left-content .wp-block-cover-text,section.wp-block-cover-image.has-left-content>h2{margin-right:0;text-align:right}.wp-block-cover-image.has-right-content .wp-block-cover-image-text,.wp-block-cover.has-right-content .wp-block-cover-text,section.wp-block-cover-image.has-right-content>h2{margin-left:0;text-align:left}.wp-block-cover-image .wp-block-cover-image-text,.wp-block-cover .wp-block-cover-text,section.wp-block-cover-image>h2{font-size:2em;line-height:1.25;z-index:1;margin-bottom:0;max-width:580px;padding:.44em;text-align:center}.wp-block-embed.alignleft,.wp-block-embed.alignright,.wp-block[data-align=left]>[data-type="core/embed"],.wp-block[data-align=right]>[data-type="core/embed"]{max-width:360px;width:100%}.wp-block-embed.alignleft .wp-block-embed__wrapper,.wp-block-embed.alignright .wp-block-embed__wrapper,.wp-block[data-align=left]>[data-type="core/embed"] .wp-block-embed__wrapper,.wp-block[data-align=right]>[data-type="core/embed"] .wp-block-embed__wrapper{min-width:280px}.wp-block-embed{margin-bottom:1em}.wp-block-embed figcaption{margin-top:.5em;margin-bottom:1em}.wp-block-embed iframe{max-width:100%}.wp-block-embed__wrapper{position:relative}.wp-embed-responsive .wp-has-aspect-ratio .wp-block-embed__wrapper:before{content:"";display:block;padding-top:50%}.wp-embed-responsive .wp-has-aspect-ratio iframe{position:absolute;top:0;left:0;bottom:0;right:0;height:100%;width:100%}.wp-embed-responsive .wp-embed-aspect-21-9 .wp-block-embed__wrapper:before{padding-top:42.85%}.wp-embed-responsive .wp-embed-aspect-18-9 .wp-block-embed__wrapper:before{padding-top:50%}.wp-embed-responsive .wp-embed-aspect-16-9 .wp-block-embed__wrapper:before{padding-top:56.25%}.wp-embed-responsive .wp-embed-aspect-4-3 .wp-block-embed__wrapper:before{padding-top:75%}.wp-embed-responsive .wp-embed-aspect-1-1 .wp-block-embed__wrapper:before{padding-top:100%}.wp-embed-responsive .wp-embed-aspect-9-6 .wp-block-embed__wrapper:before{padding-top:66.66%}.wp-embed-responsive .wp-embed-aspect-1-2 .wp-block-embed__wrapper:before{padding-top:200%}.wp-block-file{margin-bottom:1.5em}.wp-block-file.aligncenter{text-align:center}.wp-block-file.alignright{text-align:right}.wp-block-file .wp-block-file__button{background:#32373c;border-radius:2em;color:#fff;font-size:.8em;padding:.5em 1em}.wp-block-file a.wp-block-file__button{text-decoration:none}.wp-block-file a.wp-block-file__button:active,.wp-block-file a.wp-block-file__button:focus,.wp-block-file a.wp-block-file__button:hover,.wp-block-file a.wp-block-file__button:visited{box-shadow:none;color:#fff;opacity:.85;text-decoration:none}.wp-block-file *+.wp-block-file__button{margin-right:.75em}.blocks-gallery-grid,.wp-block-gallery{display:flex;flex-wrap:wrap;list-style-type:none;padding:0;margin:0}.blocks-gallery-grid .blocks-gallery-image,.blocks-gallery-grid .blocks-gallery-item,.wp-block-gallery .blocks-gallery-image,.wp-block-gallery .blocks-gallery-item{margin:0 0 1em 1em;display:flex;flex-grow:1;flex-direction:column;justify-content:center;position:relative}.blocks-gallery-grid .blocks-gallery-image figure,.blocks-gallery-grid .blocks-gallery-item figure,.wp-block-gallery .blocks-gallery-image figure,.wp-block-gallery .blocks-gallery-item figure{margin:0;height:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.blocks-gallery-grid .blocks-gallery-image figure,.blocks-gallery-grid .blocks-gallery-item figure,.wp-block-gallery .blocks-gallery-image figure,.wp-block-gallery .blocks-gallery-item figure{display:flex;align-items:flex-end;justify-content:flex-start}}.blocks-gallery-grid .blocks-gallery-image img,.blocks-gallery-grid .blocks-gallery-item img,.wp-block-gallery .blocks-gallery-image img,.wp-block-gallery .blocks-gallery-item img{display:block;max-width:100%;height:auto;width:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.blocks-gallery-grid .blocks-gallery-image img,.blocks-gallery-grid .blocks-gallery-item img,.wp-block-gallery .blocks-gallery-image img,.wp-block-gallery .blocks-gallery-item img{width:auto}}.blocks-gallery-grid .blocks-gallery-image figcaption,.blocks-gallery-grid .blocks-gallery-item figcaption,.wp-block-gallery .blocks-gallery-image figcaption,.wp-block-gallery .blocks-gallery-item figcaption{position:absolute;bottom:0;width:100%;max-height:100%;overflow:auto;padding:3em .77em .7em;color:#fff;text-align:center;font-size:.8em;background:linear-gradient(0deg,rgba(0,0,0,.7),rgba(0,0,0,.3) 70%,transparent);box-sizing:border-box}.blocks-gallery-grid .blocks-gallery-image figcaption img,.blocks-gallery-grid .blocks-gallery-item figcaption img,.wp-block-gallery .blocks-gallery-image figcaption img,.wp-block-gallery .blocks-gallery-item figcaption img{display:inline}.blocks-gallery-grid.is-cropped .blocks-gallery-image a,.blocks-gallery-grid.is-cropped .blocks-gallery-image img,.blocks-gallery-grid.is-cropped .blocks-gallery-item a,.blocks-gallery-grid.is-cropped .blocks-gallery-item img,.wp-block-gallery.is-cropped .blocks-gallery-image a,.wp-block-gallery.is-cropped .blocks-gallery-image img,.wp-block-gallery.is-cropped .blocks-gallery-item a,.wp-block-gallery.is-cropped .blocks-gallery-item img{width:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.blocks-gallery-grid.is-cropped .blocks-gallery-image a,.blocks-gallery-grid.is-cropped .blocks-gallery-image img,.blocks-gallery-grid.is-cropped .blocks-gallery-item a,.blocks-gallery-grid.is-cropped .blocks-gallery-item img,.wp-block-gallery.is-cropped .blocks-gallery-image a,.wp-block-gallery.is-cropped .blocks-gallery-image img,.wp-block-gallery.is-cropped .blocks-gallery-item a,.wp-block-gallery.is-cropped .blocks-gallery-item img{height:100%;flex:1;object-fit:cover}}.blocks-gallery-grid .blocks-gallery-image,.blocks-gallery-grid .blocks-gallery-item,.wp-block-gallery .blocks-gallery-image,.wp-block-gallery .blocks-gallery-item{width:calc(50% - 1em)}.blocks-gallery-grid .blocks-gallery-image:nth-of-type(2n),.blocks-gallery-grid .blocks-gallery-item:nth-of-type(2n),.wp-block-gallery .blocks-gallery-image:nth-of-type(2n),.wp-block-gallery .blocks-gallery-item:nth-of-type(2n){margin-left:0}.blocks-gallery-grid.columns-1 .blocks-gallery-image,.blocks-gallery-grid.columns-1 .blocks-gallery-item,.wp-block-gallery.columns-1 .blocks-gallery-image,.wp-block-gallery.columns-1 .blocks-gallery-item{width:100%;margin-left:0}@media (min-width:600px){.blocks-gallery-grid.columns-3 .blocks-gallery-image,.blocks-gallery-grid.columns-3 .blocks-gallery-item,.wp-block-gallery.columns-3 .blocks-gallery-image,.wp-block-gallery.columns-3 .blocks-gallery-item{width:calc(33.33333% - .66667em);margin-left:1em}.blocks-gallery-grid.columns-4 .blocks-gallery-image,.blocks-gallery-grid.columns-4 .blocks-gallery-item,.wp-block-gallery.columns-4 .blocks-gallery-image,.wp-block-gallery.columns-4 .blocks-gallery-item{width:calc(25% - .75em);margin-left:1em}.blocks-gallery-grid.columns-5 .blocks-gallery-image,.blocks-gallery-grid.columns-5 .blocks-gallery-item,.wp-block-gallery.columns-5 .blocks-gallery-image,.wp-block-gallery.columns-5 .blocks-gallery-item{width:calc(20% - .8em);margin-left:1em}.blocks-gallery-grid.columns-6 .blocks-gallery-image,.blocks-gallery-grid.columns-6 .blocks-gallery-item,.wp-block-gallery.columns-6 .blocks-gallery-image,.wp-block-gallery.columns-6 .blocks-gallery-item{width:calc(16.66667% - .83333em);margin-left:1em}.blocks-gallery-grid.columns-7 .blocks-gallery-image,.blocks-gallery-grid.columns-7 .blocks-gallery-item,.wp-block-gallery.columns-7 .blocks-gallery-image,.wp-block-gallery.columns-7 .blocks-gallery-item{width:calc(14.28571% - .85714em);margin-left:1em}.blocks-gallery-grid.columns-8 .blocks-gallery-image,.blocks-gallery-grid.columns-8 .blocks-gallery-item,.wp-block-gallery.columns-8 .blocks-gallery-image,.wp-block-gallery.columns-8 .blocks-gallery-item{width:calc(12.5% - .875em);margin-left:1em}.blocks-gallery-grid.columns-1 .blocks-gallery-image:nth-of-type(1n),.blocks-gallery-grid.columns-1 .blocks-gallery-item:nth-of-type(1n),.wp-block-gallery.columns-1 .blocks-gallery-image:nth-of-type(1n),.wp-block-gallery.columns-1 .blocks-gallery-item:nth-of-type(1n){margin-left:0}.blocks-gallery-grid.columns-2 .blocks-gallery-image:nth-of-type(2n),.blocks-gallery-grid.columns-2 .blocks-gallery-item:nth-of-type(2n),.wp-block-gallery.columns-2 .blocks-gallery-image:nth-of-type(2n),.wp-block-gallery.columns-2 .blocks-gallery-item:nth-of-type(2n){margin-left:0}.blocks-gallery-grid.columns-3 .blocks-gallery-image:nth-of-type(3n),.blocks-gallery-grid.columns-3 .blocks-gallery-item:nth-of-type(3n),.wp-block-gallery.columns-3 .blocks-gallery-image:nth-of-type(3n),.wp-block-gallery.columns-3 .blocks-gallery-item:nth-of-type(3n){margin-left:0}.blocks-gallery-grid.columns-4 .blocks-gallery-image:nth-of-type(4n),.blocks-gallery-grid.columns-4 .blocks-gallery-item:nth-of-type(4n),.wp-block-gallery.columns-4 .blocks-gallery-image:nth-of-type(4n),.wp-block-gallery.columns-4 .blocks-gallery-item:nth-of-type(4n){margin-left:0}.blocks-gallery-grid.columns-5 .blocks-gallery-image:nth-of-type(5n),.blocks-gallery-grid.columns-5 .blocks-gallery-item:nth-of-type(5n),.wp-block-gallery.columns-5 .blocks-gallery-image:nth-of-type(5n),.wp-block-gallery.columns-5 .blocks-gallery-item:nth-of-type(5n){margin-left:0}.blocks-gallery-grid.columns-6 .blocks-gallery-image:nth-of-type(6n),.blocks-gallery-grid.columns-6 .blocks-gallery-item:nth-of-type(6n),.wp-block-gallery.columns-6 .blocks-gallery-image:nth-of-type(6n),.wp-block-gallery.columns-6 .blocks-gallery-item:nth-of-type(6n){margin-left:0}.blocks-gallery-grid.columns-7 .blocks-gallery-image:nth-of-type(7n),.blocks-gallery-grid.columns-7 .blocks-gallery-item:nth-of-type(7n),.wp-block-gallery.columns-7 .blocks-gallery-image:nth-of-type(7n),.wp-block-gallery.columns-7 .blocks-gallery-item:nth-of-type(7n){margin-left:0}.blocks-gallery-grid.columns-8 .blocks-gallery-image:nth-of-type(8n),.blocks-gallery-grid.columns-8 .blocks-gallery-item:nth-of-type(8n),.wp-block-gallery.columns-8 .blocks-gallery-image:nth-of-type(8n),.wp-block-gallery.columns-8 .blocks-gallery-item:nth-of-type(8n){margin-left:0}}.blocks-gallery-grid .blocks-gallery-image:last-child,.blocks-gallery-grid .blocks-gallery-item:last-child,.wp-block-gallery .blocks-gallery-image:last-child,.wp-block-gallery .blocks-gallery-item:last-child{margin-left:0}.blocks-gallery-grid.alignleft,.blocks-gallery-grid.alignright,.wp-block-gallery.alignleft,.wp-block-gallery.alignright{max-width:290px;width:100%}.blocks-gallery-grid.aligncenter .blocks-gallery-item figure,.wp-block-gallery.aligncenter .blocks-gallery-item figure{justify-content:center}.wp-block-group{box-sizing:border-box}h1.has-background,h2.has-background,h3.has-background,h4.has-background,h5.has-background,h6.has-background{padding:1.25em 2.375em}.wp-block-image{margin-bottom:1em}.wp-block-image img{max-width:100%}.wp-block-image.aligncenter{text-align:center}.wp-block-image.alignfull img,.wp-block-image.alignwide img{width:100%}.wp-block-image .aligncenter,.wp-block-image .alignleft,.wp-block-image .alignright,.wp-block-image.is-resized{display:table}.wp-block-image .aligncenter>figcaption,.wp-block-image .alignleft>figcaption,.wp-block-image .alignright>figcaption,.wp-block-image.is-resized>figcaption{display:table-caption;caption-side:bottom}.wp-block-image .alignleft{float:left;margin-left:1em;margin-top:.5em;margin-bottom:.5em}.wp-block-image .alignright{float:right;margin-right:1em;margin-top:.5em;margin-bottom:.5em}.wp-block-image .aligncenter{margin-right:auto;margin-left:auto}.wp-block-image figcaption{margin-top:.5em;margin-bottom:1em}.is-style-circle-mask img,.is-style-rounded img{border-radius:9999px}@supports ((-webkit-mask-image:none) or (mask-image:none)) or (-webkit-mask-image:none){.is-style-circle-mask img{-webkit-mask-image:url('data:image/svg+xml;utf8,');mask-image:url('data:image/svg+xml;utf8,');mask-mode:alpha;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-position:center;mask-position:center;border-radius:0}}.wp-block-latest-comments__comment{line-height:1.1;list-style:none;margin-bottom:1em}.has-avatars .wp-block-latest-comments__comment{min-height:2.25em;list-style:none}.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-excerpt,.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-meta{margin-right:3.25em}.has-dates .wp-block-latest-comments__comment,.has-excerpts .wp-block-latest-comments__comment{line-height:1.5}.wp-block-latest-comments__comment-excerpt p{font-size:.875em;line-height:1.8;margin:.36em 0 1.4em}.wp-block-latest-comments__comment-date{display:block;font-size:.75em}.wp-block-latest-comments .avatar,.wp-block-latest-comments__comment-avatar{border-radius:1.5em;display:block;float:right;height:2.5em;margin-left:.75em;width:2.5em}.wp-block-latest-posts.alignleft{margin-right:2em}.wp-block-latest-posts.alignright{margin-left:2em}.wp-block-latest-posts.wp-block-latest-posts__list{list-style:none}.wp-block-latest-posts.wp-block-latest-posts__list li{clear:both}.wp-block-latest-posts.is-grid{display:flex;flex-wrap:wrap;padding:0}.wp-block-latest-posts.is-grid li{margin:0 0 1.25em 1.25em;width:100%}@media (min-width:600px){.wp-block-latest-posts.columns-2 li{width:calc(50% - 1.25em)}.wp-block-latest-posts.columns-3 li{width:calc(33.33333% - 1.25em)}.wp-block-latest-posts.columns-4 li{width:calc(25% - 1.25em)}.wp-block-latest-posts.columns-5 li{width:calc(20% - 1.25em)}.wp-block-latest-posts.columns-6 li{width:calc(16.66667% - 1.25em)}}.wp-block-latest-posts__post-author,.wp-block-latest-posts__post-date{display:block;color:#555;font-size:.8125em}.wp-block-latest-posts__post-excerpt{margin-top:.5em;margin-bottom:1em}.wp-block-latest-posts__featured-image a{display:inline-block}.wp-block-latest-posts__featured-image img{height:auto;width:auto}.wp-block-latest-posts__featured-image.alignleft{margin-right:1em}.wp-block-latest-posts__featured-image.alignright{margin-left:1em}.wp-block-latest-posts__featured-image.aligncenter{margin-bottom:1em;text-align:center}.block-editor-image-alignment-control__row .components-base-control__field{display:flex;justify-content:space-between;align-items:center}.block-editor-image-alignment-control__row .components-base-control__field .components-base-control__label{margin-bottom:0}ol.has-background,ul.has-background{padding:1.25em 2.375em}.wp-block-media-text{direction:ltr;display:-ms-grid;display:grid;-ms-grid-columns:50% 1fr;grid-template-columns:50% 1fr;-ms-grid-rows:auto;grid-template-rows:auto}.wp-block-media-text.has-media-on-the-right{-ms-grid-columns:1fr 50%;grid-template-columns:1fr 50%}.wp-block-media-text.is-vertically-aligned-top .wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-top .wp-block-media-text__media{-ms-grid-row-align:start;align-self:start}.wp-block-media-text.is-vertically-aligned-center .wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-center .wp-block-media-text__media,.wp-block-media-text .wp-block-media-text__content,.wp-block-media-text .wp-block-media-text__media{-ms-grid-row-align:center;align-self:center}.wp-block-media-text.is-vertically-aligned-bottom .wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-bottom .wp-block-media-text__media{-ms-grid-row-align:end;align-self:end}.wp-block-media-text .wp-block-media-text__media{-ms-grid-column:1;grid-column:1;-ms-grid-row:1;grid-row:1;margin:0}.wp-block-media-text .wp-block-media-text__content{direction:rtl;padding:0 8%;word-break:break-word}.wp-block-media-text.has-media-on-the-right .wp-block-media-text__media,.wp-block-media-text .wp-block-media-text__content{-ms-grid-column:2;grid-column:2;-ms-grid-row:1;grid-row:1}.wp-block-media-text.has-media-on-the-right .wp-block-media-text__content{-ms-grid-column:1;grid-column:1;-ms-grid-row:1;grid-row:1}.wp-block-media-text__media img,.wp-block-media-text__media video{max-width:unset;width:100%;vertical-align:middle}.wp-block-media-text.is-image-fill figure.wp-block-media-text__media{height:100%;min-height:250px;background-size:cover}.wp-block-media-text.is-image-fill figure.wp-block-media-text__media>img{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}@media (max-width:600px){.wp-block-media-text.is-stacked-on-mobile{-ms-grid-columns:100%!important;grid-template-columns:100%!important}.wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__media{-ms-grid-column:1;grid-column:1;-ms-grid-row:1;grid-row:1}.wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content{-ms-grid-column:1;grid-column:1;-ms-grid-row:2;grid-row:2}}.wp-block-navigation:not(.has-background) .wp-block-navigation__container .wp-block-navigation-link:not(.has-text-color){color:#1e1e1e}.wp-block-navigation:not(.has-background) .wp-block-navigation__container .wp-block-navigation__container{background-color:#fff}.items-justified-left>ul{justify-content:flex-start}.items-justified-center>ul{justify-content:center}.items-justified-right>ul{justify-content:flex-end}.wp-block-navigation-link{display:flex;align-items:center;position:relative;margin:0}.wp-block-navigation-link .wp-block-navigation__container:empty{display:none}.wp-block-navigation__container{list-style:none;margin:0;padding-right:0;display:flex;flex-wrap:wrap}.is-vertical .wp-block-navigation__container{display:block}.has-child>.wp-block-navigation-link__content{padding-left:.5em}.has-child .wp-block-navigation__container{border:1px solid rgba(0,0,0,.15);background-color:inherit;color:inherit;position:absolute;right:0;top:100%;width:fit-content;z-index:2;opacity:0;transition:opacity .1s linear;visibility:hidden}.has-child .wp-block-navigation__container>.wp-block-navigation-link>.wp-block-navigation-link__content{flex-grow:1}.has-child .wp-block-navigation__container>.wp-block-navigation-link>.wp-block-navigation-link__submenu-icon{padding-left:.5em}@media (min-width:782px){.has-child .wp-block-navigation__container{right:1.5em}.has-child .wp-block-navigation__container .wp-block-navigation__container{right:100%;top:-1px}.has-child .wp-block-navigation__container .wp-block-navigation__container:before{content:"";position:absolute;left:100%;height:100%;display:block;width:.5em;background:transparent}.has-child .wp-block-navigation__container .wp-block-navigation-link__submenu-icon svg{transform:rotate(0)}}.has-child:hover{cursor:pointer}.has-child:hover>.wp-block-navigation__container{visibility:visible;opacity:1;display:flex;flex-direction:column}.has-child:focus-within{cursor:pointer}.has-child:focus-within>.wp-block-navigation__container{visibility:visible;opacity:1;display:flex;flex-direction:column}.wp-block-navigation-link__content{color:inherit;text-decoration:none;padding:.5em 1em}.wp-block-navigation-link__content+.wp-block-navigation-link__content{padding-top:0}.has-text-color .wp-block-navigation-link__content{color:inherit}.wp-block-navigation-link__label{word-break:normal;overflow-wrap:break-word}.wp-block-navigation-link__submenu-icon{height:inherit;padding:.375em 0 .375em 1em}.wp-block-navigation-link__submenu-icon svg{fill:currentColor}@media (min-width:782px){.wp-block-navigation-link__submenu-icon svg{transform:rotate(-90deg)}}.is-small-text{font-size:.875em}.is-regular-text{font-size:1em}.is-large-text{font-size:2.25em}.is-larger-text{font-size:3em}.has-drop-cap:not(:focus):first-letter{float:right;font-size:8.4em;line-height:.68;font-weight:100;margin:.05em 0 0 .1em;text-transform:uppercase;font-style:normal}p.has-background{padding:1.25em 2.375em}p.has-text-color a{color:inherit}.wp-block-post-author{display:flex;flex-wrap:wrap}.wp-block-post-author__byline{width:100%;margin-top:0;margin-bottom:0;font-size:.5em}.wp-block-post-author__avatar{margin-left:1em}.wp-block-post-author__bio{margin-bottom:.7em;font-size:.7em}.wp-block-post-author__content{flex-grow:1;flex-basis:0}.wp-block-post-author__name{font-weight:700;margin:0}.wp-block-pullquote{padding:3em 0;margin-right:0;margin-left:0;text-align:center}.wp-block-pullquote.alignleft,.wp-block-pullquote.alignright{max-width:290px}.wp-block-pullquote.alignleft p,.wp-block-pullquote.alignright p{font-size:1.25em}.wp-block-pullquote p{font-size:1.75em;line-height:1.6}.wp-block-pullquote cite,.wp-block-pullquote footer{position:relative}.wp-block-pullquote .has-text-color a{color:inherit}.wp-block-pullquote:not(.is-style-solid-color){background:none}.wp-block-pullquote.is-style-solid-color{border:none}.wp-block-pullquote.is-style-solid-color blockquote{margin-right:auto;margin-left:auto;text-align:right;max-width:60%}.wp-block-pullquote.is-style-solid-color blockquote p{margin-top:0;margin-bottom:0;font-size:2em}.wp-block-pullquote.is-style-solid-color blockquote cite{text-transform:none;font-style:normal}.wp-block-pullquote cite{color:inherit}.wp-block-quote.is-large,.wp-block-quote.is-style-large{margin:0 0 1em;padding:0 1em}.wp-block-quote.is-large p,.wp-block-quote.is-style-large p{font-size:1.5em;font-style:italic;line-height:1.6}.wp-block-quote.is-large cite,.wp-block-quote.is-large footer,.wp-block-quote.is-style-large cite,.wp-block-quote.is-style-large footer{font-size:1.125em;text-align:left}.wp-block-rss.alignleft{margin-right:2em}.wp-block-rss.alignright{margin-left:2em}.wp-block-rss.is-grid{display:flex;flex-wrap:wrap;padding:0;list-style:none}.wp-block-rss.is-grid li{margin:0 0 1em 1em;width:100%}@media (min-width:600px){.wp-block-rss.columns-2 li{width:calc(50% - 1em)}.wp-block-rss.columns-3 li{width:calc(33.33333% - 1em)}.wp-block-rss.columns-4 li{width:calc(25% - 1em)}.wp-block-rss.columns-5 li{width:calc(20% - 1em)}.wp-block-rss.columns-6 li{width:calc(16.66667% - 1em)}}.wp-block-rss__item-author,.wp-block-rss__item-publish-date{display:block;color:#555;font-size:.8125em}.wp-block-search .wp-block-search__inside-wrapper{display:flex;flex:auto;flex-wrap:nowrap;max-width:100%}.wp-block-search .wp-block-search__label{width:100%}.wp-block-search .wp-block-search__input{flex-grow:1;min-width:3em;border:1px solid #949494}.wp-block-search .wp-block-search__button{margin-right:.625em;word-break:normal}.wp-block-search .wp-block-search__button svg{min-width:1.5em;min-height:1.5em}.wp-block-search.wp-block-search__button-only .wp-block-search__button{margin-right:0}.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper{padding:4px;border:1px solid #949494}.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper .wp-block-search__input{border-radius:0;border:none;padding:0 .25em 0 0}.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper .wp-block-search__input:focus{outline:none}.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper .wp-block-search__button{padding:.125em .5em}.wp-block-separator.is-style-wide{border-bottom-width:1px}.wp-block-separator.is-style-dots{background:none!important;border:none;text-align:center;max-width:none;line-height:1;height:auto}.wp-block-separator.is-style-dots:before{content:"\00b7 \00b7 \00b7";color:currentColor;font-size:1.5em;letter-spacing:2em;padding-left:2em;font-family:serif}.wp-block-custom-logo .aligncenter{display:table}.wp-block-social-links{display:flex;flex-wrap:wrap;justify-content:flex-start;padding-right:0;padding-left:0;margin-right:0}.wp-block-social-links .wp-social-link a,.wp-block-social-links .wp-social-link a:hover{text-decoration:none;border-bottom:0;box-shadow:none}.wp-social-link{display:block;width:36px;height:36px;border-radius:36px;margin:0 0 8px 8px;transition:transform .1s ease}@media (prefers-reduced-motion:reduce){.wp-social-link{transition-duration:0s}}.wp-social-link a{padding:6px;display:block;line-height:0;transition:transform .1s ease}.wp-social-link a,.wp-social-link a:active,.wp-social-link a:hover,.wp-social-link a:visited,.wp-social-link svg{color:currentColor;fill:currentColor}.wp-social-link:hover{transform:scale(1.1)}.wp-block-social-links.aligncenter{justify-content:center;display:flex}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link{background-color:#f0f0f0;color:#444}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-amazon{background-color:#f90;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-bandcamp{background-color:#1ea0c3;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-behance{background-color:#0757fe;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-codepen{background-color:#1e1f26;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-deviantart{background-color:#02e49b;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-dribbble{background-color:#e94c89;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-dropbox{background-color:#4280ff;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-etsy{background-color:#f45800;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-facebook{background-color:#1778f2;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-fivehundredpx{background-color:#000;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-flickr{background-color:#0461dd;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-foursquare{background-color:#e65678;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-github{background-color:#24292d;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-goodreads{background-color:#eceadd;color:#382110}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-google{background-color:#ea4434;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-instagram{background-color:#f00075;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-lastfm{background-color:#e21b24;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-linkedin{background-color:#0d66c2;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-mastodon{background-color:#3288d4;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-medium{background-color:#02ab6c;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-meetup{background-color:#f6405f;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-pinterest{background-color:#e60122;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-pocket{background-color:#ef4155;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-reddit{background-color:#fe4500;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-skype{background-color:#0478d7;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-snapchat{background-color:#fefc00;color:#fff;stroke:#000}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-soundcloud{background-color:#ff5600;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-spotify{background-color:#1bd760;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-tumblr{background-color:#011835;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-twitch{background-color:#6440a4;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-twitter{background-color:#1da1f2;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-vimeo{background-color:#1eb7ea;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-vk{background-color:#4680c2;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-wordpress{background-color:#3499cd;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-yelp{background-color:#d32422;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-youtube{background-color:red;color:#fff}.wp-block-social-links.is-style-logos-only .wp-social-link{background:none;padding:4px}.wp-block-social-links.is-style-logos-only .wp-social-link svg{width:28px;height:28px}.wp-block-social-links.is-style-logos-only .wp-social-link-amazon{color:#f90}.wp-block-social-links.is-style-logos-only .wp-social-link-bandcamp{color:#1ea0c3}.wp-block-social-links.is-style-logos-only .wp-social-link-behance{color:#0757fe}.wp-block-social-links.is-style-logos-only .wp-social-link-codepen{color:#1e1f26}.wp-block-social-links.is-style-logos-only .wp-social-link-deviantart{color:#02e49b}.wp-block-social-links.is-style-logos-only .wp-social-link-dribbble{color:#e94c89}.wp-block-social-links.is-style-logos-only .wp-social-link-dropbox{color:#4280ff}.wp-block-social-links.is-style-logos-only .wp-social-link-etsy{color:#f45800}.wp-block-social-links.is-style-logos-only .wp-social-link-facebook{color:#1778f2}.wp-block-social-links.is-style-logos-only .wp-social-link-fivehundredpx{color:#000}.wp-block-social-links.is-style-logos-only .wp-social-link-flickr{color:#0461dd}.wp-block-social-links.is-style-logos-only .wp-social-link-foursquare{color:#e65678}.wp-block-social-links.is-style-logos-only .wp-social-link-github{color:#24292d}.wp-block-social-links.is-style-logos-only .wp-social-link-goodreads{color:#382110}.wp-block-social-links.is-style-logos-only .wp-social-link-google{color:#ea4434}.wp-block-social-links.is-style-logos-only .wp-social-link-instagram{color:#f00075}.wp-block-social-links.is-style-logos-only .wp-social-link-lastfm{color:#e21b24}.wp-block-social-links.is-style-logos-only .wp-social-link-linkedin{color:#0d66c2}.wp-block-social-links.is-style-logos-only .wp-social-link-mastodon{color:#3288d4}.wp-block-social-links.is-style-logos-only .wp-social-link-medium{color:#02ab6c}.wp-block-social-links.is-style-logos-only .wp-social-link-meetup{color:#f6405f}.wp-block-social-links.is-style-logos-only .wp-social-link-pinterest{color:#e60122}.wp-block-social-links.is-style-logos-only .wp-social-link-pocket{color:#ef4155}.wp-block-social-links.is-style-logos-only .wp-social-link-reddit{color:#fe4500}.wp-block-social-links.is-style-logos-only .wp-social-link-skype{color:#0478d7}.wp-block-social-links.is-style-logos-only .wp-social-link-snapchat{color:#fff;stroke:#000}.wp-block-social-links.is-style-logos-only .wp-social-link-soundcloud{color:#ff5600}.wp-block-social-links.is-style-logos-only .wp-social-link-spotify{color:#1bd760}.wp-block-social-links.is-style-logos-only .wp-social-link-tumblr{color:#011835}.wp-block-social-links.is-style-logos-only .wp-social-link-twitch{color:#6440a4}.wp-block-social-links.is-style-logos-only .wp-social-link-twitter{color:#1da1f2}.wp-block-social-links.is-style-logos-only .wp-social-link-vimeo{color:#1eb7ea}.wp-block-social-links.is-style-logos-only .wp-social-link-vk{color:#4680c2}.wp-block-social-links.is-style-logos-only .wp-social-link-wordpress{color:#3499cd}.wp-block-social-links.is-style-logos-only .wp-social-link-yelp{background-color:#d32422;color:#fff}.wp-block-social-links.is-style-logos-only .wp-social-link-youtube{color:red}.wp-block-social-links.is-style-pill-shape .wp-social-link{width:auto}.wp-block-social-links.is-style-pill-shape .wp-social-link a{padding-right:16px;padding-left:16px}.wp-block-spacer{clear:both}p.wp-block-subhead{font-size:1.1em;font-style:italic;opacity:.75}.wp-block-table{overflow-x:auto}.wp-block-table table{width:100%}.wp-block-table .has-fixed-layout{table-layout:fixed;width:100%}.wp-block-table .has-fixed-layout td,.wp-block-table .has-fixed-layout th{word-break:break-word}.wp-block-table.aligncenter,.wp-block-table.alignleft,.wp-block-table.alignright{display:table;width:auto}.wp-block-table.aligncenter td,.wp-block-table.aligncenter th,.wp-block-table.alignleft td,.wp-block-table.alignleft th,.wp-block-table.alignright td,.wp-block-table.alignright th{word-break:break-word}.wp-block-table .has-subtle-light-gray-background-color{background-color:#f3f4f5}.wp-block-table .has-subtle-pale-green-background-color{background-color:#e9fbe5}.wp-block-table .has-subtle-pale-blue-background-color{background-color:#e7f5fe}.wp-block-table .has-subtle-pale-pink-background-color{background-color:#fcf0ef}.wp-block-table.is-style-stripes{border-spacing:0;border-collapse:inherit;background-color:transparent;border-bottom:1px solid #f0f0f0}.wp-block-table.is-style-stripes tbody tr:nth-child(odd){background-color:#f0f0f0}.wp-block-table.is-style-stripes.has-subtle-light-gray-background-color tbody tr:nth-child(odd){background-color:#f3f4f5}.wp-block-table.is-style-stripes.has-subtle-pale-green-background-color tbody tr:nth-child(odd){background-color:#e9fbe5}.wp-block-table.is-style-stripes.has-subtle-pale-blue-background-color tbody tr:nth-child(odd){background-color:#e7f5fe}.wp-block-table.is-style-stripes.has-subtle-pale-pink-background-color tbody tr:nth-child(odd){background-color:#fcf0ef}.wp-block-table.is-style-stripes td,.wp-block-table.is-style-stripes th{border-color:transparent}.wp-block-text-columns,.wp-block-text-columns.aligncenter{display:flex}.wp-block-text-columns .wp-block-column{margin:0 1em;padding:0}.wp-block-text-columns .wp-block-column:first-child{margin-right:0}.wp-block-text-columns .wp-block-column:last-child{margin-left:0}.wp-block-text-columns.columns-2 .wp-block-column{width:50%}.wp-block-text-columns.columns-3 .wp-block-column{width:33.33333%}.wp-block-text-columns.columns-4 .wp-block-column{width:25%}.wp-block-video{margin-right:0;margin-left:0}.wp-block-video video{max-width:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.wp-block-video [poster]{object-fit:cover}}.wp-block-video.aligncenter{text-align:center}.wp-block-video figcaption{margin-top:.5em;margin-bottom:1em}:root .has-pale-pink-background-color{background-color:#f78da7}:root .has-vivid-red-background-color{background-color:#cf2e2e}:root .has-luminous-vivid-orange-background-color{background-color:#ff6900}:root .has-luminous-vivid-amber-background-color{background-color:#fcb900}:root .has-light-green-cyan-background-color{background-color:#7bdcb5}:root .has-vivid-green-cyan-background-color{background-color:#00d084}:root .has-pale-cyan-blue-background-color{background-color:#8ed1fc}:root .has-vivid-cyan-blue-background-color{background-color:#0693e3}:root .has-vivid-purple-background-color{background-color:#9b51e0}:root .has-white-background-color{background-color:#fff}:root .has-very-light-gray-background-color{background-color:#eee}:root .has-cyan-bluish-gray-background-color{background-color:#abb8c3}:root .has-very-dark-gray-background-color{background-color:#313131}:root .has-black-background-color{background-color:#000}:root .has-pale-pink-color{color:#f78da7}:root .has-vivid-red-color{color:#cf2e2e}:root .has-luminous-vivid-orange-color{color:#ff6900}:root .has-luminous-vivid-amber-color{color:#fcb900}:root .has-light-green-cyan-color{color:#7bdcb5}:root .has-vivid-green-cyan-color{color:#00d084}:root .has-pale-cyan-blue-color{color:#8ed1fc}:root .has-vivid-cyan-blue-color{color:#0693e3}:root .has-vivid-purple-color{color:#9b51e0}:root .has-white-color{color:#fff}:root .has-very-light-gray-color{color:#eee}:root .has-cyan-bluish-gray-color{color:#abb8c3}:root .has-very-dark-gray-color{color:#313131}:root .has-black-color{color:#000}:root .has-vivid-cyan-blue-to-vivid-purple-gradient-background{background:linear-gradient(-135deg,#0693e3,#9b51e0)}:root .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(-135deg,#00d084,#0693e3)}:root .has-light-green-cyan-to-vivid-green-cyan-gradient-background{background:linear-gradient(-135deg,#7adcb4,#00d082)}:root .has-luminous-vivid-amber-to-luminous-vivid-orange-gradient-background{background:linear-gradient(-135deg,#fcb900,#ff6900)}:root .has-luminous-vivid-orange-to-vivid-red-gradient-background{background:linear-gradient(-135deg,#ff6900,#cf2e2e)}:root .has-very-light-gray-to-cyan-bluish-gray-gradient-background{background:linear-gradient(-135deg,#eee,#a9b8c3)}:root .has-cool-to-warm-spectrum-gradient-background{background:linear-gradient(-135deg,#4aeadc,#9778d1 20%,#cf2aba 40%,#ee2c82 60%,#fb6962 80%,#fef84c)}:root .has-blush-light-purple-gradient-background{background:linear-gradient(-135deg,#ffceec,#9896f0)}:root .has-blush-bordeaux-gradient-background{background:linear-gradient(-135deg,#fecda5,#fe2d2d 50%,#6b003e)}:root .has-purple-crush-gradient-background{background:linear-gradient(-135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .has-luminous-dusk-gradient-background{background:linear-gradient(-135deg,#ffcb70,#c751c0 50%,#4158d0)}:root .has-hazy-dawn-gradient-background{background:linear-gradient(-135deg,#faaca8,#dad0ec)}:root .has-pale-ocean-gradient-background{background:linear-gradient(-135deg,#fff5cb,#b6e3d4 50%,#33a7b5)}:root .has-electric-grass-gradient-background{background:linear-gradient(-135deg,#caf880,#71ce7e)}:root .has-subdued-olive-gradient-background{background:linear-gradient(-135deg,#fafae1,#67a671)}:root .has-atomic-cream-gradient-background{background:linear-gradient(-135deg,#fdd79a,#004a59)}:root .has-nightshade-gradient-background{background:linear-gradient(-135deg,#330968,#31cdcf)}:root .has-midnight-gradient-background{background:linear-gradient(-135deg,#020381,#2874fc)}:root .has-link-color a{color:#00e;color:var(--wp--style--color--link,#00e)}.has-small-font-size{font-size:.8125em}.has-normal-font-size,.has-regular-font-size{font-size:1em}.has-medium-font-size{font-size:1.25em}.has-large-font-size{font-size:2.25em}.has-huge-font-size,.has-larger-font-size{font-size:2.625em}.has-text-align-center{text-align:center}.has-text-align-left{text-align:left}.has-text-align-right{text-align:right}#end-resizable-editor-section{display:none}.aligncenter{clear:both} \ No newline at end of file +: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}.wp-block-audio figcaption{margin-top:.5em;margin-bottom:1em}.wp-block-audio audio{width:100%;min-width:300px}.wp-block-button__link{color:#fff;background-color:#32373c;border:none;border-radius:1.55em;box-shadow:none;cursor:pointer;display:inline-block;font-size:1.125em;padding:.667em 1.333em;text-align:center;text-decoration:none;overflow-wrap:break-word}.wp-block-button__link:active,.wp-block-button__link:focus,.wp-block-button__link:hover,.wp-block-button__link:visited{color:#fff}.wp-block-button__link.aligncenter{text-align:center}.wp-block-button__link.alignright{text-align:right}.wp-block-button.is-style-squared,.wp-block-button__link.wp-block-button.is-style-squared{border-radius:0}.wp-block-button.no-border-radius,.wp-block-button__link.no-border-radius{border-radius:0!important}.is-style-outline>.wp-block-button__link,.wp-block-button__link.is-style-outline{color:#32373c;background-color:transparent;border:2px solid}.wp-block-buttons .wp-block-button{display:inline-block;margin-left:.5em;margin-bottom:.5em}.wp-block-buttons .wp-block-button:last-child{margin-left:0}.wp-block-buttons.alignright .wp-block-button{margin-right:0;margin-left:.5em}.wp-block-buttons.alignright .wp-block-button:first-child{margin-right:0}.wp-block-buttons.alignleft .wp-block-button{margin-left:0;margin-right:.5em}.wp-block-buttons.alignleft .wp-block-button:last-child{margin-left:0}.wp-block-button.aligncenter,.wp-block-buttons.aligncenter,.wp-block-calendar{text-align:center}.wp-block-calendar tbody td,.wp-block-calendar th{padding:.25em;border:1px solid #ddd}.wp-block-calendar tfoot td{border:none}.wp-block-calendar table{width:100%;border-collapse:collapse}.wp-block-calendar table th{font-weight:400;background:#ddd}.wp-block-calendar a{text-decoration:underline}.wp-block-calendar table caption,.wp-block-calendar table tbody{color:#40464d}.wp-block-categories.alignleft{margin-right:2em}.wp-block-categories.alignright{margin-left:2em}.wp-block-columns{display:flex;margin-bottom:1.75em;flex-wrap:wrap}@media (min-width:782px){.wp-block-columns{flex-wrap:nowrap}}.wp-block-columns.has-background{padding:1.25em 2.375em}.wp-block-columns.are-vertically-aligned-top{align-items:flex-start}.wp-block-columns.are-vertically-aligned-center{align-items:center}.wp-block-columns.are-vertically-aligned-bottom{align-items:flex-end}.wp-block-column{flex-grow:1;min-width:0;word-break:break-word;overflow-wrap:break-word}@media (max-width:599px){.wp-block-column{flex-basis:100%!important}}@media (min-width:600px) and (max-width:781px){.wp-block-column{flex-basis:calc(50% - 1em)!important;flex-grow:0}.wp-block-column:nth-child(2n){margin-right:2em}}@media (min-width:782px){.wp-block-column{flex-basis:0;flex-grow:1}.wp-block-column[style*=flex-basis]{flex-grow:0}.wp-block-column:not(:first-child){margin-right:2em}}.wp-block-column.is-vertically-aligned-top{align-self:flex-start}.wp-block-column.is-vertically-aligned-center{-ms-grid-row-align:center;align-self:center}.wp-block-column.is-vertically-aligned-bottom{align-self:flex-end}.wp-block-column.is-vertically-aligned-bottom,.wp-block-column.is-vertically-aligned-center,.wp-block-column.is-vertically-aligned-top{width:100%}.wp-block-cover,.wp-block-cover-image{position:relative;background-size:cover;background-position:50%;min-height:430px;height:100%;width:100%;display:flex;justify-content:center;align-items:center;padding:1em;box-sizing:border-box}.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax{background-attachment:fixed}@supports (-webkit-overflow-scrolling:touch){.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax{background-attachment:scroll}}@media (prefers-reduced-motion:reduce){.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax{background-attachment:scroll}}.wp-block-cover-image.is-repeated,.wp-block-cover.is-repeated{background-repeat:repeat;background-size:auto}.wp-block-cover-image.has-background-dim:before,.wp-block-cover.has-background-dim:before{content:"";background-color:inherit}.wp-block-cover-image.has-background-dim:not(.has-background-gradient):before,.wp-block-cover-image .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim:not(.has-background-gradient):before,.wp-block-cover .wp-block-cover__gradient-background{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;opacity:.5}.wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-10:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-10:not(.has-background-gradient):before{opacity:.1}.wp-block-cover-image.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-20:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-20:not(.has-background-gradient):before{opacity:.2}.wp-block-cover-image.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-30:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-30:not(.has-background-gradient):before{opacity:.3}.wp-block-cover-image.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-40:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-40:not(.has-background-gradient):before{opacity:.4}.wp-block-cover-image.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-50:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-50:not(.has-background-gradient):before{opacity:.5}.wp-block-cover-image.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-60:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-60:not(.has-background-gradient):before{opacity:.6}.wp-block-cover-image.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-70:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-70:not(.has-background-gradient):before{opacity:.7}.wp-block-cover-image.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-80:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-80:not(.has-background-gradient):before{opacity:.8}.wp-block-cover-image.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-90:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-90:not(.has-background-gradient):before{opacity:.9}.wp-block-cover-image.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-100:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-100:not(.has-background-gradient):before{opacity:1}.wp-block-cover-image.alignleft,.wp-block-cover-image.alignright,.wp-block-cover.alignleft,.wp-block-cover.alignright{max-width:290px;width:100%}.wp-block-cover-image:after,.wp-block-cover:after{display:block;content:"";font-size:0;min-height:inherit}@supports ((position:-webkit-sticky) or (position:sticky)){.wp-block-cover-image:after,.wp-block-cover:after{content:none}}.wp-block-cover-image.aligncenter,.wp-block-cover-image.alignleft,.wp-block-cover-image.alignright,.wp-block-cover.aligncenter,.wp-block-cover.alignleft,.wp-block-cover.alignright{display:flex}.wp-block-cover-image .wp-block-cover__inner-container,.wp-block-cover .wp-block-cover__inner-container{width:100%;z-index:1;color:#fff}.wp-block-cover-image .wp-block-subhead:not(.has-text-color),.wp-block-cover-image h1:not(.has-text-color),.wp-block-cover-image h2:not(.has-text-color),.wp-block-cover-image h3:not(.has-text-color),.wp-block-cover-image h4:not(.has-text-color),.wp-block-cover-image h5:not(.has-text-color),.wp-block-cover-image h6:not(.has-text-color),.wp-block-cover-image p:not(.has-text-color),.wp-block-cover .wp-block-subhead:not(.has-text-color),.wp-block-cover h1:not(.has-text-color),.wp-block-cover h2:not(.has-text-color),.wp-block-cover h3:not(.has-text-color),.wp-block-cover h4:not(.has-text-color),.wp-block-cover h5:not(.has-text-color),.wp-block-cover h6:not(.has-text-color),.wp-block-cover p:not(.has-text-color){color:inherit}.wp-block-cover-image.is-position-top-left,.wp-block-cover.is-position-top-left{align-items:flex-start;justify-content:flex-start}.wp-block-cover-image.is-position-top-center,.wp-block-cover.is-position-top-center{align-items:flex-start;justify-content:center}.wp-block-cover-image.is-position-top-right,.wp-block-cover.is-position-top-right{align-items:flex-start;justify-content:flex-end}.wp-block-cover-image.is-position-center-left,.wp-block-cover.is-position-center-left{align-items:center;justify-content:flex-start}.wp-block-cover-image.is-position-center-center,.wp-block-cover.is-position-center-center{align-items:center;justify-content:center}.wp-block-cover-image.is-position-center-right,.wp-block-cover.is-position-center-right{align-items:center;justify-content:flex-end}.wp-block-cover-image.is-position-bottom-left,.wp-block-cover.is-position-bottom-left{align-items:flex-end;justify-content:flex-start}.wp-block-cover-image.is-position-bottom-center,.wp-block-cover.is-position-bottom-center{align-items:flex-end;justify-content:center}.wp-block-cover-image.is-position-bottom-right,.wp-block-cover.is-position-bottom-right{align-items:flex-end;justify-content:flex-end}.wp-block-cover-image.has-custom-content-position.has-custom-content-position .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position .wp-block-cover__inner-container{margin:0;width:auto}.wp-block-cover__video-background{position:absolute;top:50%;right:50%;transform:translateX(50%) translateY(-50%);width:100%;height:100%;z-index:0;object-fit:cover}.wp-block-cover-image-text,.wp-block-cover-text,section.wp-block-cover-image h2{color:#fff}.wp-block-cover-image-text a,.wp-block-cover-image-text a:active,.wp-block-cover-image-text a:focus,.wp-block-cover-image-text a:hover,.wp-block-cover-text a,.wp-block-cover-text a:active,.wp-block-cover-text a:focus,.wp-block-cover-text a:hover,section.wp-block-cover-image h2 a,section.wp-block-cover-image h2 a:active,section.wp-block-cover-image h2 a:focus,section.wp-block-cover-image h2 a:hover{color:#fff}.wp-block-cover-image .wp-block-cover.has-left-content{justify-content:flex-start}.wp-block-cover-image .wp-block-cover.has-right-content{justify-content:flex-end}.wp-block-cover-image.has-left-content .wp-block-cover-image-text,.wp-block-cover.has-left-content .wp-block-cover-text,section.wp-block-cover-image.has-left-content>h2{margin-right:0;text-align:right}.wp-block-cover-image.has-right-content .wp-block-cover-image-text,.wp-block-cover.has-right-content .wp-block-cover-text,section.wp-block-cover-image.has-right-content>h2{margin-left:0;text-align:left}.wp-block-cover-image .wp-block-cover-image-text,.wp-block-cover .wp-block-cover-text,section.wp-block-cover-image>h2{font-size:2em;line-height:1.25;z-index:1;margin-bottom:0;max-width:580px;padding:.44em;text-align:center}.wp-block-embed.alignleft,.wp-block-embed.alignright,.wp-block[data-align=left]>[data-type="core/embed"],.wp-block[data-align=right]>[data-type="core/embed"]{max-width:360px;width:100%}.wp-block-embed.alignleft .wp-block-embed__wrapper,.wp-block-embed.alignright .wp-block-embed__wrapper,.wp-block[data-align=left]>[data-type="core/embed"] .wp-block-embed__wrapper,.wp-block[data-align=right]>[data-type="core/embed"] .wp-block-embed__wrapper{min-width:280px}.wp-block-embed{margin-bottom:1em}.wp-block-embed figcaption{margin-top:.5em;margin-bottom:1em}.wp-block-embed iframe{max-width:100%}.wp-block-embed__wrapper{position:relative}.wp-embed-responsive .wp-has-aspect-ratio .wp-block-embed__wrapper:before{content:"";display:block;padding-top:50%}.wp-embed-responsive .wp-has-aspect-ratio iframe{position:absolute;top:0;left:0;bottom:0;right:0;height:100%;width:100%}.wp-embed-responsive .wp-embed-aspect-21-9 .wp-block-embed__wrapper:before{padding-top:42.85%}.wp-embed-responsive .wp-embed-aspect-18-9 .wp-block-embed__wrapper:before{padding-top:50%}.wp-embed-responsive .wp-embed-aspect-16-9 .wp-block-embed__wrapper:before{padding-top:56.25%}.wp-embed-responsive .wp-embed-aspect-4-3 .wp-block-embed__wrapper:before{padding-top:75%}.wp-embed-responsive .wp-embed-aspect-1-1 .wp-block-embed__wrapper:before{padding-top:100%}.wp-embed-responsive .wp-embed-aspect-9-16 .wp-block-embed__wrapper:before{padding-top:177.77%}.wp-embed-responsive .wp-embed-aspect-1-2 .wp-block-embed__wrapper:before{padding-top:200%}.wp-block-file{margin-bottom:1.5em}.wp-block-file.aligncenter{text-align:center}.wp-block-file.alignright{text-align:right}.wp-block-file .wp-block-file__button{background:#32373c;border-radius:2em;color:#fff;font-size:.8em;padding:.5em 1em}.wp-block-file a.wp-block-file__button{text-decoration:none}.wp-block-file a.wp-block-file__button:active,.wp-block-file a.wp-block-file__button:focus,.wp-block-file a.wp-block-file__button:hover,.wp-block-file a.wp-block-file__button:visited{box-shadow:none;color:#fff;opacity:.85;text-decoration:none}.wp-block-file *+.wp-block-file__button{margin-right:.75em}.blocks-gallery-grid,.wp-block-gallery{display:flex;flex-wrap:wrap;list-style-type:none;padding:0;margin:0}.blocks-gallery-grid .blocks-gallery-image,.blocks-gallery-grid .blocks-gallery-item,.wp-block-gallery .blocks-gallery-image,.wp-block-gallery .blocks-gallery-item{margin:0 0 1em 1em;display:flex;flex-grow:1;flex-direction:column;justify-content:center;position:relative;width:calc(50% - 1em)}.blocks-gallery-grid .blocks-gallery-image:nth-of-type(2n),.blocks-gallery-grid .blocks-gallery-item:nth-of-type(2n),.wp-block-gallery .blocks-gallery-image:nth-of-type(2n),.wp-block-gallery .blocks-gallery-item:nth-of-type(2n){margin-left:0}.blocks-gallery-grid .blocks-gallery-image figure,.blocks-gallery-grid .blocks-gallery-item figure,.wp-block-gallery .blocks-gallery-image figure,.wp-block-gallery .blocks-gallery-item figure{margin:0;height:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.blocks-gallery-grid .blocks-gallery-image figure,.blocks-gallery-grid .blocks-gallery-item figure,.wp-block-gallery .blocks-gallery-image figure,.wp-block-gallery .blocks-gallery-item figure{display:flex;align-items:flex-end;justify-content:flex-start}}.blocks-gallery-grid .blocks-gallery-image img,.blocks-gallery-grid .blocks-gallery-item img,.wp-block-gallery .blocks-gallery-image img,.wp-block-gallery .blocks-gallery-item img{display:block;max-width:100%;height:auto;width:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.blocks-gallery-grid .blocks-gallery-image img,.blocks-gallery-grid .blocks-gallery-item img,.wp-block-gallery .blocks-gallery-image img,.wp-block-gallery .blocks-gallery-item img{width:auto}}.blocks-gallery-grid .blocks-gallery-image figcaption,.blocks-gallery-grid .blocks-gallery-item figcaption,.wp-block-gallery .blocks-gallery-image figcaption,.wp-block-gallery .blocks-gallery-item figcaption{position:absolute;bottom:0;width:100%;max-height:100%;overflow:auto;padding:3em .77em .7em;color:#fff;text-align:center;font-size:.8em;background:linear-gradient(0deg,rgba(0,0,0,.7),rgba(0,0,0,.3) 70%,transparent);box-sizing:border-box;margin:0}.blocks-gallery-grid .blocks-gallery-image figcaption img,.blocks-gallery-grid .blocks-gallery-item figcaption img,.wp-block-gallery .blocks-gallery-image figcaption img,.wp-block-gallery .blocks-gallery-item figcaption img{display:inline}.blocks-gallery-grid figcaption,.wp-block-gallery figcaption{flex-grow:1}.blocks-gallery-grid.is-cropped .blocks-gallery-image a,.blocks-gallery-grid.is-cropped .blocks-gallery-image img,.blocks-gallery-grid.is-cropped .blocks-gallery-item a,.blocks-gallery-grid.is-cropped .blocks-gallery-item img,.wp-block-gallery.is-cropped .blocks-gallery-image a,.wp-block-gallery.is-cropped .blocks-gallery-image img,.wp-block-gallery.is-cropped .blocks-gallery-item a,.wp-block-gallery.is-cropped .blocks-gallery-item img{width:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.blocks-gallery-grid.is-cropped .blocks-gallery-image a,.blocks-gallery-grid.is-cropped .blocks-gallery-image img,.blocks-gallery-grid.is-cropped .blocks-gallery-item a,.blocks-gallery-grid.is-cropped .blocks-gallery-item img,.wp-block-gallery.is-cropped .blocks-gallery-image a,.wp-block-gallery.is-cropped .blocks-gallery-image img,.wp-block-gallery.is-cropped .blocks-gallery-item a,.wp-block-gallery.is-cropped .blocks-gallery-item img{height:100%;flex:1;object-fit:cover}}.blocks-gallery-grid.columns-1 .blocks-gallery-image,.blocks-gallery-grid.columns-1 .blocks-gallery-item,.wp-block-gallery.columns-1 .blocks-gallery-image,.wp-block-gallery.columns-1 .blocks-gallery-item{width:100%;margin-left:0}@media (min-width:600px){.blocks-gallery-grid.columns-3 .blocks-gallery-image,.blocks-gallery-grid.columns-3 .blocks-gallery-item,.wp-block-gallery.columns-3 .blocks-gallery-image,.wp-block-gallery.columns-3 .blocks-gallery-item{width:calc(33.33333% - .66667em);margin-left:1em}.blocks-gallery-grid.columns-4 .blocks-gallery-image,.blocks-gallery-grid.columns-4 .blocks-gallery-item,.wp-block-gallery.columns-4 .blocks-gallery-image,.wp-block-gallery.columns-4 .blocks-gallery-item{width:calc(25% - .75em);margin-left:1em}.blocks-gallery-grid.columns-5 .blocks-gallery-image,.blocks-gallery-grid.columns-5 .blocks-gallery-item,.wp-block-gallery.columns-5 .blocks-gallery-image,.wp-block-gallery.columns-5 .blocks-gallery-item{width:calc(20% - .8em);margin-left:1em}.blocks-gallery-grid.columns-6 .blocks-gallery-image,.blocks-gallery-grid.columns-6 .blocks-gallery-item,.wp-block-gallery.columns-6 .blocks-gallery-image,.wp-block-gallery.columns-6 .blocks-gallery-item{width:calc(16.66667% - .83333em);margin-left:1em}.blocks-gallery-grid.columns-7 .blocks-gallery-image,.blocks-gallery-grid.columns-7 .blocks-gallery-item,.wp-block-gallery.columns-7 .blocks-gallery-image,.wp-block-gallery.columns-7 .blocks-gallery-item{width:calc(14.28571% - .85714em);margin-left:1em}.blocks-gallery-grid.columns-8 .blocks-gallery-image,.blocks-gallery-grid.columns-8 .blocks-gallery-item,.wp-block-gallery.columns-8 .blocks-gallery-image,.wp-block-gallery.columns-8 .blocks-gallery-item{width:calc(12.5% - .875em);margin-left:1em}.blocks-gallery-grid.columns-1 .blocks-gallery-image:nth-of-type(1n),.blocks-gallery-grid.columns-1 .blocks-gallery-item:nth-of-type(1n),.wp-block-gallery.columns-1 .blocks-gallery-image:nth-of-type(1n),.wp-block-gallery.columns-1 .blocks-gallery-item:nth-of-type(1n){margin-left:0}.blocks-gallery-grid.columns-2 .blocks-gallery-image:nth-of-type(2n),.blocks-gallery-grid.columns-2 .blocks-gallery-item:nth-of-type(2n),.wp-block-gallery.columns-2 .blocks-gallery-image:nth-of-type(2n),.wp-block-gallery.columns-2 .blocks-gallery-item:nth-of-type(2n){margin-left:0}.blocks-gallery-grid.columns-3 .blocks-gallery-image:nth-of-type(3n),.blocks-gallery-grid.columns-3 .blocks-gallery-item:nth-of-type(3n),.wp-block-gallery.columns-3 .blocks-gallery-image:nth-of-type(3n),.wp-block-gallery.columns-3 .blocks-gallery-item:nth-of-type(3n){margin-left:0}.blocks-gallery-grid.columns-4 .blocks-gallery-image:nth-of-type(4n),.blocks-gallery-grid.columns-4 .blocks-gallery-item:nth-of-type(4n),.wp-block-gallery.columns-4 .blocks-gallery-image:nth-of-type(4n),.wp-block-gallery.columns-4 .blocks-gallery-item:nth-of-type(4n){margin-left:0}.blocks-gallery-grid.columns-5 .blocks-gallery-image:nth-of-type(5n),.blocks-gallery-grid.columns-5 .blocks-gallery-item:nth-of-type(5n),.wp-block-gallery.columns-5 .blocks-gallery-image:nth-of-type(5n),.wp-block-gallery.columns-5 .blocks-gallery-item:nth-of-type(5n){margin-left:0}.blocks-gallery-grid.columns-6 .blocks-gallery-image:nth-of-type(6n),.blocks-gallery-grid.columns-6 .blocks-gallery-item:nth-of-type(6n),.wp-block-gallery.columns-6 .blocks-gallery-image:nth-of-type(6n),.wp-block-gallery.columns-6 .blocks-gallery-item:nth-of-type(6n){margin-left:0}.blocks-gallery-grid.columns-7 .blocks-gallery-image:nth-of-type(7n),.blocks-gallery-grid.columns-7 .blocks-gallery-item:nth-of-type(7n),.wp-block-gallery.columns-7 .blocks-gallery-image:nth-of-type(7n),.wp-block-gallery.columns-7 .blocks-gallery-item:nth-of-type(7n){margin-left:0}.blocks-gallery-grid.columns-8 .blocks-gallery-image:nth-of-type(8n),.blocks-gallery-grid.columns-8 .blocks-gallery-item:nth-of-type(8n),.wp-block-gallery.columns-8 .blocks-gallery-image:nth-of-type(8n),.wp-block-gallery.columns-8 .blocks-gallery-item:nth-of-type(8n){margin-left:0}}.blocks-gallery-grid .blocks-gallery-image:last-child,.blocks-gallery-grid .blocks-gallery-item:last-child,.wp-block-gallery .blocks-gallery-image:last-child,.wp-block-gallery .blocks-gallery-item:last-child{margin-left:0}.blocks-gallery-grid.alignleft,.blocks-gallery-grid.alignright,.wp-block-gallery.alignleft,.wp-block-gallery.alignright{max-width:290px;width:100%}.blocks-gallery-grid.aligncenter .blocks-gallery-item figure,.wp-block-gallery.aligncenter .blocks-gallery-item figure{justify-content:center}.wp-block-group{box-sizing:border-box}h1.has-background,h2.has-background,h3.has-background,h4.has-background,h5.has-background,h6.has-background{padding:1.25em 2.375em}.wp-block-image{margin-bottom:1em}.wp-block-image img{max-width:100%}.wp-block-image.aligncenter{text-align:center}.wp-block-image.alignfull img,.wp-block-image.alignwide img{width:100%}.wp-block-image .aligncenter,.wp-block-image .alignleft,.wp-block-image .alignright,.wp-block-image.is-resized{display:table}.wp-block-image .aligncenter>figcaption,.wp-block-image .alignleft>figcaption,.wp-block-image .alignright>figcaption,.wp-block-image.is-resized>figcaption{display:table-caption;caption-side:bottom}.wp-block-image .alignleft{float:left;margin-left:1em;margin-top:.5em;margin-bottom:.5em}.wp-block-image .alignright{float:right;margin-right:1em;margin-top:.5em;margin-bottom:.5em}.wp-block-image .aligncenter{margin-right:auto;margin-left:auto}.wp-block-image figcaption{margin-top:.5em;margin-bottom:1em}.is-style-circle-mask img,.is-style-rounded img{border-radius:9999px}@supports ((-webkit-mask-image:none) or (mask-image:none)) or (-webkit-mask-image:none){.is-style-circle-mask img{-webkit-mask-image:url('data:image/svg+xml;utf8,');mask-image:url('data:image/svg+xml;utf8,');mask-mode:alpha;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-position:center;mask-position:center;border-radius:0}}.wp-block-latest-comments__comment{line-height:1.1;list-style:none;margin-bottom:1em}.has-avatars .wp-block-latest-comments__comment{min-height:2.25em;list-style:none}.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-excerpt,.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-meta{margin-right:3.25em}.has-dates .wp-block-latest-comments__comment,.has-excerpts .wp-block-latest-comments__comment{line-height:1.5}.wp-block-latest-comments__comment-excerpt p{font-size:.875em;line-height:1.8;margin:.36em 0 1.4em}.wp-block-latest-comments__comment-date{display:block;font-size:.75em}.wp-block-latest-comments .avatar,.wp-block-latest-comments__comment-avatar{border-radius:1.5em;display:block;float:right;height:2.5em;margin-left:.75em;width:2.5em}.wp-block-latest-posts.alignleft{margin-right:2em}.wp-block-latest-posts.alignright{margin-left:2em}.wp-block-latest-posts.wp-block-latest-posts__list{list-style:none}.wp-block-latest-posts.wp-block-latest-posts__list li{clear:both}.wp-block-latest-posts.is-grid{display:flex;flex-wrap:wrap;padding:0}.wp-block-latest-posts.is-grid li{margin:0 0 1.25em 1.25em;width:100%}@media (min-width:600px){.wp-block-latest-posts.columns-2 li{width:calc(50% - .625em)}.wp-block-latest-posts.columns-2 li:nth-child(2n){margin-left:0}.wp-block-latest-posts.columns-3 li{width:calc(33.33333% - .83333em)}.wp-block-latest-posts.columns-3 li:nth-child(3n){margin-left:0}.wp-block-latest-posts.columns-4 li{width:calc(25% - .9375em)}.wp-block-latest-posts.columns-4 li:nth-child(4n){margin-left:0}.wp-block-latest-posts.columns-5 li{width:calc(20% - 1em)}.wp-block-latest-posts.columns-5 li:nth-child(5n){margin-left:0}.wp-block-latest-posts.columns-6 li{width:calc(16.66667% - 1.04167em)}.wp-block-latest-posts.columns-6 li:nth-child(6n){margin-left:0}}.wp-block-latest-posts__post-author,.wp-block-latest-posts__post-date{display:block;color:#555;font-size:.8125em}.wp-block-latest-posts__post-excerpt{margin-top:.5em;margin-bottom:1em}.wp-block-latest-posts__featured-image a{display:inline-block}.wp-block-latest-posts__featured-image img{height:auto;width:auto}.wp-block-latest-posts__featured-image.alignleft{margin-right:1em}.wp-block-latest-posts__featured-image.alignright{margin-left:1em}.wp-block-latest-posts__featured-image.aligncenter{margin-bottom:1em;text-align:center}.block-editor-image-alignment-control__row .components-base-control__field{display:flex;justify-content:space-between;align-items:center}.block-editor-image-alignment-control__row .components-base-control__field .components-base-control__label{margin-bottom:0}ol.has-background,ul.has-background{padding:1.25em 2.375em}.wp-block-media-text{direction:ltr;display:-ms-grid;display:grid;-ms-grid-columns:50% 1fr;grid-template-columns:50% 1fr;-ms-grid-rows:auto;grid-template-rows:auto}.wp-block-media-text.has-media-on-the-right{-ms-grid-columns:1fr 50%;grid-template-columns:1fr 50%}.wp-block-media-text.is-vertically-aligned-top .wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-top .wp-block-media-text__media{-ms-grid-row-align:start;align-self:start}.wp-block-media-text.is-vertically-aligned-center .wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-center .wp-block-media-text__media,.wp-block-media-text .wp-block-media-text__content,.wp-block-media-text .wp-block-media-text__media{-ms-grid-row-align:center;align-self:center}.wp-block-media-text.is-vertically-aligned-bottom .wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-bottom .wp-block-media-text__media{-ms-grid-row-align:end;align-self:end}.wp-block-media-text .wp-block-media-text__media{-ms-grid-column:1;grid-column:1;-ms-grid-row:1;grid-row:1;margin:0}.wp-block-media-text .wp-block-media-text__content{direction:rtl;padding:0 8%;word-break:break-word}.wp-block-media-text.has-media-on-the-right .wp-block-media-text__media,.wp-block-media-text .wp-block-media-text__content{-ms-grid-column:2;grid-column:2;-ms-grid-row:1;grid-row:1}.wp-block-media-text.has-media-on-the-right .wp-block-media-text__content{-ms-grid-column:1;grid-column:1;-ms-grid-row:1;grid-row:1}.wp-block-media-text__media img,.wp-block-media-text__media video{max-width:unset;width:100%;vertical-align:middle}.wp-block-media-text.is-image-fill figure.wp-block-media-text__media{height:100%;min-height:250px;background-size:cover}.wp-block-media-text.is-image-fill figure.wp-block-media-text__media>img{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}@media (max-width:600px){.wp-block-media-text.is-stacked-on-mobile{-ms-grid-columns:100%!important;grid-template-columns:100%!important}.wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__media{-ms-grid-column:1;grid-column:1;-ms-grid-row:1;grid-row:1}.wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content{-ms-grid-column:1;grid-column:1;-ms-grid-row:2;grid-row:2}}.wp-block-navigation:not(.has-background) .wp-block-navigation__container .wp-block-navigation-link:not(.has-text-color){color:#1e1e1e}.wp-block-navigation:not(.has-background) .wp-block-navigation__container .wp-block-navigation__container{background-color:#fff}.items-justified-left>ul{justify-content:flex-start}.items-justified-center>ul{justify-content:center}.items-justified-right>ul{justify-content:flex-end}.wp-block-navigation-link{display:flex;align-items:center;position:relative;margin:0}.wp-block-navigation-link .wp-block-navigation__container:empty{display:none}.wp-block-navigation__container{list-style:none;margin:0;padding-right:0;display:flex;flex-wrap:wrap}.is-vertical .wp-block-navigation__container{display:block}.has-child>.wp-block-navigation-link__content{padding-left:.5em}.has-child .wp-block-navigation__container{border:1px solid rgba(0,0,0,.15);background-color:inherit;color:inherit;position:absolute;right:0;top:100%;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;z-index:2;opacity:0;transition:opacity .1s linear;visibility:hidden}.has-child .wp-block-navigation__container>.wp-block-navigation-link>.wp-block-navigation-link__content{flex-grow:1}.has-child .wp-block-navigation__container>.wp-block-navigation-link>.wp-block-navigation-link__submenu-icon{padding-left:.5em}@media (min-width:782px){.has-child .wp-block-navigation__container{right:1.5em}.has-child .wp-block-navigation__container .wp-block-navigation__container{right:100%;top:-1px}.has-child .wp-block-navigation__container .wp-block-navigation__container:before{content:"";position:absolute;left:100%;height:100%;display:block;width:.5em;background:transparent}.has-child .wp-block-navigation__container .wp-block-navigation-link__submenu-icon svg{transform:rotate(0)}}.has-child:hover{cursor:pointer}.has-child:hover>.wp-block-navigation__container{visibility:visible;opacity:1;display:flex;flex-direction:column}.has-child:focus-within{cursor:pointer}.has-child:focus-within>.wp-block-navigation__container{visibility:visible;opacity:1;display:flex;flex-direction:column}.wp-block-navigation-link__content{color:inherit;text-decoration:none;padding:.5em 1em}.wp-block-navigation-link__content+.wp-block-navigation-link__content{padding-top:0}.has-text-color .wp-block-navigation-link__content{color:inherit}.wp-block-navigation-link__label{word-break:normal;overflow-wrap:break-word}.wp-block-navigation-link__submenu-icon{height:inherit;padding:.375em 0 .375em 1em}.wp-block-navigation-link__submenu-icon svg{fill:currentColor}@media (min-width:782px){.wp-block-navigation-link__submenu-icon svg{transform:rotate(-90deg)}}.is-small-text{font-size:.875em}.is-regular-text{font-size:1em}.is-large-text{font-size:2.25em}.is-larger-text{font-size:3em}.has-drop-cap:not(:focus):first-letter{float:right;font-size:8.4em;line-height:.68;font-weight:100;margin:.05em 0 0 .1em;text-transform:uppercase;font-style:normal}p.has-background{padding:1.25em 2.375em}p.has-text-color a{color:inherit}.wp-block-post-author{display:flex;flex-wrap:wrap}.wp-block-post-author__byline{width:100%;margin-top:0;margin-bottom:0;font-size:.5em}.wp-block-post-author__avatar{margin-left:1em}.wp-block-post-author__bio{margin-bottom:.7em;font-size:.7em}.wp-block-post-author__content{flex-grow:1;flex-basis:0}.wp-block-post-author__name{font-weight:700;margin:0}.wp-block-pullquote{padding:3em 0;margin-right:0;margin-left:0;text-align:center}.wp-block-pullquote.alignleft,.wp-block-pullquote.alignright{max-width:290px}.wp-block-pullquote.alignleft p,.wp-block-pullquote.alignright p{font-size:1.25em}.wp-block-pullquote p{font-size:1.75em;line-height:1.6}.wp-block-pullquote cite,.wp-block-pullquote footer{position:relative}.wp-block-pullquote .has-text-color a{color:inherit}.wp-block-pullquote:not(.is-style-solid-color){background:none}.wp-block-pullquote.is-style-solid-color{border:none}.wp-block-pullquote.is-style-solid-color blockquote{margin-right:auto;margin-left:auto;text-align:right;max-width:60%}.wp-block-pullquote.is-style-solid-color blockquote p{margin-top:0;margin-bottom:0;font-size:2em}.wp-block-pullquote.is-style-solid-color blockquote cite{text-transform:none;font-style:normal}.wp-block-pullquote cite{color:inherit}.wp-block-quote.is-large,.wp-block-quote.is-style-large{margin:0 0 1em;padding:0 1em}.wp-block-quote.is-large p,.wp-block-quote.is-style-large p{font-size:1.5em;font-style:italic;line-height:1.6}.wp-block-quote.is-large cite,.wp-block-quote.is-large footer,.wp-block-quote.is-style-large cite,.wp-block-quote.is-style-large footer{font-size:1.125em;text-align:left}.wp-block-rss.alignleft{margin-right:2em}.wp-block-rss.alignright{margin-left:2em}.wp-block-rss.is-grid{display:flex;flex-wrap:wrap;padding:0;list-style:none}.wp-block-rss.is-grid li{margin:0 0 1em 1em;width:100%}@media (min-width:600px){.wp-block-rss.columns-2 li{width:calc(50% - 1em)}.wp-block-rss.columns-3 li{width:calc(33.33333% - 1em)}.wp-block-rss.columns-4 li{width:calc(25% - 1em)}.wp-block-rss.columns-5 li{width:calc(20% - 1em)}.wp-block-rss.columns-6 li{width:calc(16.66667% - 1em)}}.wp-block-rss__item-author,.wp-block-rss__item-publish-date{display:block;color:#555;font-size:.8125em}.wp-block-search .wp-block-search__inside-wrapper{display:flex;flex:auto;flex-wrap:nowrap;max-width:100%}.wp-block-search .wp-block-search__label{width:100%}.wp-block-search .wp-block-search__input{flex-grow:1;min-width:3em;border:1px solid #949494}.wp-block-search .wp-block-search__button{margin-right:.625em;word-break:normal}.wp-block-search .wp-block-search__button svg{min-width:1.5em;min-height:1.5em}.wp-block-search.wp-block-search__button-only .wp-block-search__button{margin-right:0}.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper{padding:4px;border:1px solid #949494}.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper .wp-block-search__input{border-radius:0;border:none;padding:0 .25em 0 0}.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper .wp-block-search__input:focus{outline:none}.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper .wp-block-search__button{padding:.125em .5em}.wp-block-separator.is-style-wide{border-bottom-width:1px}.wp-block-separator.is-style-dots{background:none!important;border:none;text-align:center;max-width:none;line-height:1;height:auto}.wp-block-separator.is-style-dots:before{content:"\00b7 \00b7 \00b7";color:currentColor;font-size:1.5em;letter-spacing:2em;padding-left:2em;font-family:serif}.wp-block-custom-logo .aligncenter{display:table}.wp-block-social-links{display:flex;flex-wrap:wrap;justify-content:flex-start;padding-right:0;padding-left:0;text-indent:0;margin-right:0}.wp-block-social-links .wp-social-link a,.wp-block-social-links .wp-social-link a:hover{text-decoration:none;border-bottom:0;box-shadow:none}.wp-social-link{display:block;width:36px;height:36px;border-radius:9999px;margin:0 0 8px 8px;transition:transform .1s ease}@media (prefers-reduced-motion:reduce){.wp-social-link{transition-duration:0s}}.wp-social-link a{padding:6px;display:block;line-height:0;transition:transform .1s ease}.wp-social-link a,.wp-social-link a:active,.wp-social-link a:hover,.wp-social-link a:visited,.wp-social-link svg{color:currentColor;fill:currentColor}.wp-social-link:hover{transform:scale(1.1)}.wp-block-social-links.aligncenter{justify-content:center;display:flex}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link{background-color:#f0f0f0;color:#444}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-amazon{background-color:#f90;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-bandcamp{background-color:#1ea0c3;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-behance{background-color:#0757fe;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-codepen{background-color:#1e1f26;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-deviantart{background-color:#02e49b;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-dribbble{background-color:#e94c89;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-dropbox{background-color:#4280ff;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-etsy{background-color:#f45800;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-facebook{background-color:#1778f2;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-fivehundredpx{background-color:#000;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-flickr{background-color:#0461dd;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-foursquare{background-color:#e65678;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-github{background-color:#24292d;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-goodreads{background-color:#eceadd;color:#382110}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-google{background-color:#ea4434;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-instagram{background-color:#f00075;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-lastfm{background-color:#e21b24;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-linkedin{background-color:#0d66c2;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-mastodon{background-color:#3288d4;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-medium{background-color:#02ab6c;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-meetup{background-color:#f6405f;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-pinterest{background-color:#e60122;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-pocket{background-color:#ef4155;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-reddit{background-color:#fe4500;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-skype{background-color:#0478d7;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-snapchat{background-color:#fefc00;color:#fff;stroke:#000}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-soundcloud{background-color:#ff5600;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-spotify{background-color:#1bd760;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-tumblr{background-color:#011835;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-twitch{background-color:#6440a4;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-twitter{background-color:#1da1f2;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-vimeo{background-color:#1eb7ea;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-vk{background-color:#4680c2;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-wordpress{background-color:#3499cd;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-yelp{background-color:#d32422;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-youtube{background-color:red;color:#fff}.wp-block-social-links.is-style-logos-only .wp-social-link{background:none;padding:4px}.wp-block-social-links.is-style-logos-only .wp-social-link svg{width:28px;height:28px}.wp-block-social-links.is-style-logos-only .wp-social-link-amazon{color:#f90}.wp-block-social-links.is-style-logos-only .wp-social-link-bandcamp{color:#1ea0c3}.wp-block-social-links.is-style-logos-only .wp-social-link-behance{color:#0757fe}.wp-block-social-links.is-style-logos-only .wp-social-link-codepen{color:#1e1f26}.wp-block-social-links.is-style-logos-only .wp-social-link-deviantart{color:#02e49b}.wp-block-social-links.is-style-logos-only .wp-social-link-dribbble{color:#e94c89}.wp-block-social-links.is-style-logos-only .wp-social-link-dropbox{color:#4280ff}.wp-block-social-links.is-style-logos-only .wp-social-link-etsy{color:#f45800}.wp-block-social-links.is-style-logos-only .wp-social-link-facebook{color:#1778f2}.wp-block-social-links.is-style-logos-only .wp-social-link-fivehundredpx{color:#000}.wp-block-social-links.is-style-logos-only .wp-social-link-flickr{color:#0461dd}.wp-block-social-links.is-style-logos-only .wp-social-link-foursquare{color:#e65678}.wp-block-social-links.is-style-logos-only .wp-social-link-github{color:#24292d}.wp-block-social-links.is-style-logos-only .wp-social-link-goodreads{color:#382110}.wp-block-social-links.is-style-logos-only .wp-social-link-google{color:#ea4434}.wp-block-social-links.is-style-logos-only .wp-social-link-instagram{color:#f00075}.wp-block-social-links.is-style-logos-only .wp-social-link-lastfm{color:#e21b24}.wp-block-social-links.is-style-logos-only .wp-social-link-linkedin{color:#0d66c2}.wp-block-social-links.is-style-logos-only .wp-social-link-mastodon{color:#3288d4}.wp-block-social-links.is-style-logos-only .wp-social-link-medium{color:#02ab6c}.wp-block-social-links.is-style-logos-only .wp-social-link-meetup{color:#f6405f}.wp-block-social-links.is-style-logos-only .wp-social-link-pinterest{color:#e60122}.wp-block-social-links.is-style-logos-only .wp-social-link-pocket{color:#ef4155}.wp-block-social-links.is-style-logos-only .wp-social-link-reddit{color:#fe4500}.wp-block-social-links.is-style-logos-only .wp-social-link-skype{color:#0478d7}.wp-block-social-links.is-style-logos-only .wp-social-link-snapchat{color:#fff;stroke:#000}.wp-block-social-links.is-style-logos-only .wp-social-link-soundcloud{color:#ff5600}.wp-block-social-links.is-style-logos-only .wp-social-link-spotify{color:#1bd760}.wp-block-social-links.is-style-logos-only .wp-social-link-tumblr{color:#011835}.wp-block-social-links.is-style-logos-only .wp-social-link-twitch{color:#6440a4}.wp-block-social-links.is-style-logos-only .wp-social-link-twitter{color:#1da1f2}.wp-block-social-links.is-style-logos-only .wp-social-link-vimeo{color:#1eb7ea}.wp-block-social-links.is-style-logos-only .wp-social-link-vk{color:#4680c2}.wp-block-social-links.is-style-logos-only .wp-social-link-wordpress{color:#3499cd}.wp-block-social-links.is-style-logos-only .wp-social-link-yelp{background-color:#d32422;color:#fff}.wp-block-social-links.is-style-logos-only .wp-social-link-youtube{color:red}.wp-block-social-links.is-style-pill-shape .wp-social-link{width:auto}.wp-block-social-links.is-style-pill-shape .wp-social-link a{padding-right:16px;padding-left:16px}.wp-block-spacer{clear:both}p.wp-block-subhead{font-size:1.1em;font-style:italic;opacity:.75}.wp-block-table{overflow-x:auto}.wp-block-table table{width:100%}.wp-block-table .has-fixed-layout{table-layout:fixed;width:100%}.wp-block-table .has-fixed-layout td,.wp-block-table .has-fixed-layout th{word-break:break-word}.wp-block-table.aligncenter,.wp-block-table.alignleft,.wp-block-table.alignright{display:table;width:auto}.wp-block-table.aligncenter td,.wp-block-table.aligncenter th,.wp-block-table.alignleft td,.wp-block-table.alignleft th,.wp-block-table.alignright td,.wp-block-table.alignright th{word-break:break-word}.wp-block-table .has-subtle-light-gray-background-color{background-color:#f3f4f5}.wp-block-table .has-subtle-pale-green-background-color{background-color:#e9fbe5}.wp-block-table .has-subtle-pale-blue-background-color{background-color:#e7f5fe}.wp-block-table .has-subtle-pale-pink-background-color{background-color:#fcf0ef}.wp-block-table.is-style-stripes{border-spacing:0;border-collapse:inherit;background-color:transparent;border-bottom:1px solid #f0f0f0}.wp-block-table.is-style-stripes tbody tr:nth-child(odd){background-color:#f0f0f0}.wp-block-table.is-style-stripes.has-subtle-light-gray-background-color tbody tr:nth-child(odd){background-color:#f3f4f5}.wp-block-table.is-style-stripes.has-subtle-pale-green-background-color tbody tr:nth-child(odd){background-color:#e9fbe5}.wp-block-table.is-style-stripes.has-subtle-pale-blue-background-color tbody tr:nth-child(odd){background-color:#e7f5fe}.wp-block-table.is-style-stripes.has-subtle-pale-pink-background-color tbody tr:nth-child(odd){background-color:#fcf0ef}.wp-block-table.is-style-stripes td,.wp-block-table.is-style-stripes th{border-color:transparent}.wp-block-text-columns,.wp-block-text-columns.aligncenter{display:flex}.wp-block-text-columns .wp-block-column{margin:0 1em;padding:0}.wp-block-text-columns .wp-block-column:first-child{margin-right:0}.wp-block-text-columns .wp-block-column:last-child{margin-left:0}.wp-block-text-columns.columns-2 .wp-block-column{width:50%}.wp-block-text-columns.columns-3 .wp-block-column{width:33.33333%}.wp-block-text-columns.columns-4 .wp-block-column{width:25%}.wp-block-video{margin-right:0;margin-left:0}.wp-block-video video{max-width:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.wp-block-video [poster]{object-fit:cover}}.wp-block-video.aligncenter{text-align:center}.wp-block-video figcaption{margin-top:.5em;margin-bottom:1em}.wp-block-post-featured-image a{display:inline-block}:root .has-pale-pink-background-color{background-color:#f78da7}:root .has-vivid-red-background-color{background-color:#cf2e2e}:root .has-luminous-vivid-orange-background-color{background-color:#ff6900}:root .has-luminous-vivid-amber-background-color{background-color:#fcb900}:root .has-light-green-cyan-background-color{background-color:#7bdcb5}:root .has-vivid-green-cyan-background-color{background-color:#00d084}:root .has-pale-cyan-blue-background-color{background-color:#8ed1fc}:root .has-vivid-cyan-blue-background-color{background-color:#0693e3}:root .has-vivid-purple-background-color{background-color:#9b51e0}:root .has-white-background-color{background-color:#fff}:root .has-very-light-gray-background-color{background-color:#eee}:root .has-cyan-bluish-gray-background-color{background-color:#abb8c3}:root .has-very-dark-gray-background-color{background-color:#313131}:root .has-black-background-color{background-color:#000}:root .has-pale-pink-color{color:#f78da7}:root .has-vivid-red-color{color:#cf2e2e}:root .has-luminous-vivid-orange-color{color:#ff6900}:root .has-luminous-vivid-amber-color{color:#fcb900}:root .has-light-green-cyan-color{color:#7bdcb5}:root .has-vivid-green-cyan-color{color:#00d084}:root .has-pale-cyan-blue-color{color:#8ed1fc}:root .has-vivid-cyan-blue-color{color:#0693e3}:root .has-vivid-purple-color{color:#9b51e0}:root .has-white-color{color:#fff}:root .has-very-light-gray-color{color:#eee}:root .has-cyan-bluish-gray-color{color:#abb8c3}:root .has-very-dark-gray-color{color:#313131}:root .has-black-color{color:#000}:root .has-vivid-cyan-blue-to-vivid-purple-gradient-background{background:linear-gradient(-135deg,#0693e3,#9b51e0)}:root .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(-135deg,#00d084,#0693e3)}:root .has-light-green-cyan-to-vivid-green-cyan-gradient-background{background:linear-gradient(-135deg,#7adcb4,#00d082)}:root .has-luminous-vivid-amber-to-luminous-vivid-orange-gradient-background{background:linear-gradient(-135deg,#fcb900,#ff6900)}:root .has-luminous-vivid-orange-to-vivid-red-gradient-background{background:linear-gradient(-135deg,#ff6900,#cf2e2e)}:root .has-very-light-gray-to-cyan-bluish-gray-gradient-background{background:linear-gradient(-135deg,#eee,#a9b8c3)}:root .has-cool-to-warm-spectrum-gradient-background{background:linear-gradient(-135deg,#4aeadc,#9778d1 20%,#cf2aba 40%,#ee2c82 60%,#fb6962 80%,#fef84c)}:root .has-blush-light-purple-gradient-background{background:linear-gradient(-135deg,#ffceec,#9896f0)}:root .has-blush-bordeaux-gradient-background{background:linear-gradient(-135deg,#fecda5,#fe2d2d 50%,#6b003e)}:root .has-purple-crush-gradient-background{background:linear-gradient(-135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .has-luminous-dusk-gradient-background{background:linear-gradient(-135deg,#ffcb70,#c751c0 50%,#4158d0)}:root .has-hazy-dawn-gradient-background{background:linear-gradient(-135deg,#faaca8,#dad0ec)}:root .has-pale-ocean-gradient-background{background:linear-gradient(-135deg,#fff5cb,#b6e3d4 50%,#33a7b5)}:root .has-electric-grass-gradient-background{background:linear-gradient(-135deg,#caf880,#71ce7e)}:root .has-subdued-olive-gradient-background{background:linear-gradient(-135deg,#fafae1,#67a671)}:root .has-atomic-cream-gradient-background{background:linear-gradient(-135deg,#fdd79a,#004a59)}:root .has-nightshade-gradient-background{background:linear-gradient(-135deg,#330968,#31cdcf)}:root .has-midnight-gradient-background{background:linear-gradient(-135deg,#020381,#2874fc)}:root .has-link-color a{color:#00e;color:var(--wp--style--color--link,#00e)}.has-small-font-size{font-size:.8125em}.has-normal-font-size,.has-regular-font-size{font-size:1em}.has-medium-font-size{font-size:1.25em}.has-large-font-size{font-size:2.25em}.has-huge-font-size,.has-larger-font-size{font-size:2.625em}.has-text-align-center{text-align:center}.has-text-align-left{text-align:left}.has-text-align-right{text-align:right}#end-resizable-editor-section{display:none}.aligncenter{clear:both} \ No newline at end of file diff --git a/wp-includes/css/dist/block-library/style.css b/wp-includes/css/dist/block-library/style.css index 7f60f0ab7a..a4150f8583 100644 --- a/wp-includes/css/dist/block-library/style.css +++ b/wp-includes/css/dist/block-library/style.css @@ -105,7 +105,7 @@ .wp-block-button__link.no-border-radius { border-radius: 0 !important; } -.is-style-outline .wp-block-button__link, +.is-style-outline > .wp-block-button__link, .wp-block-button__link.is-style-outline { color: #32373c; background-color: transparent; @@ -169,18 +169,30 @@ .wp-block-columns { display: flex; margin-bottom: 1.75em; - flex-wrap: wrap; } + flex-wrap: wrap; + /** + * All Columns Alignment + */ } @media (min-width: 782px) { .wp-block-columns { flex-wrap: nowrap; } } .wp-block-columns.has-background { padding: 1.25em 2.375em; } + .wp-block-columns.are-vertically-aligned-top { + align-items: flex-start; } + .wp-block-columns.are-vertically-aligned-center { + align-items: center; } + .wp-block-columns.are-vertically-aligned-bottom { + align-items: flex-end; } .wp-block-column { flex-grow: 1; min-width: 0; word-break: break-word; - overflow-wrap: break-word; } + overflow-wrap: break-word; + /** + * Individual Column Alignment + */ } @media (max-width: 599px) { .wp-block-column { flex-basis: 100% !important; } } @@ -198,34 +210,15 @@ flex-grow: 0; } .wp-block-column:not(:first-child) { margin-left: 2em; } } - -/** - * All Columns Alignment - */ -.wp-block-columns.are-vertically-aligned-top { - align-items: flex-start; } - -.wp-block-columns.are-vertically-aligned-center { - align-items: center; } - -.wp-block-columns.are-vertically-aligned-bottom { - align-items: flex-end; } - -/** - * Individual Column Alignment - */ -.wp-block-column.is-vertically-aligned-top { - align-self: flex-start; } - -.wp-block-column.is-vertically-aligned-center { - -ms-grid-row-align: center; - align-self: center; } - -.wp-block-column.is-vertically-aligned-bottom { - align-self: flex-end; } - -.wp-block-column.is-vertically-aligned-top, .wp-block-column.is-vertically-aligned-center, .wp-block-column.is-vertically-aligned-bottom { - width: 100%; } + .wp-block-column.is-vertically-aligned-top { + align-self: flex-start; } + .wp-block-column.is-vertically-aligned-center { + -ms-grid-row-align: center; + align-self: center; } + .wp-block-column.is-vertically-aligned-bottom { + align-self: flex-end; } + .wp-block-column.is-vertically-aligned-top, .wp-block-column.is-vertically-aligned-center, .wp-block-column.is-vertically-aligned-bottom { + width: 100%; } .wp-block-cover-image, .wp-block-cover { @@ -251,13 +244,14 @@ .wp-block-cover-image.has-parallax, .wp-block-cover.has-parallax { background-attachment: scroll; } } - .wp-block-cover-image.has-background-dim, - .wp-block-cover.has-background-dim { - background-color: #000; } - .wp-block-cover-image.has-background-dim::before, - .wp-block-cover.has-background-dim::before { - content: ""; - background-color: inherit; } + .wp-block-cover-image.is-repeated, + .wp-block-cover.is-repeated { + background-repeat: repeat; + background-size: auto; } + .wp-block-cover-image.has-background-dim::before, + .wp-block-cover.has-background-dim::before { + content: ""; + background-color: inherit; } .wp-block-cover-image.has-background-dim:not(.has-background-gradient)::before, .wp-block-cover-image .wp-block-cover__gradient-background, .wp-block-cover.has-background-dim:not(.has-background-gradient)::before, @@ -267,70 +261,56 @@ left: 0; bottom: 0; right: 0; - z-index: 1; } - .wp-block-cover-image.has-background-dim:not(.has-background-gradient)::before, - .wp-block-cover-image .wp-block-cover__gradient-background, - .wp-block-cover.has-background-dim:not(.has-background-gradient)::before, - .wp-block-cover .wp-block-cover__gradient-background { + z-index: 1; opacity: 0.5; } .wp-block-cover-image.has-background-dim.has-background-dim-10:not(.has-background-gradient)::before, - .wp-block-cover.has-background-dim.has-background-dim-10:not(.has-background-gradient)::before { - opacity: 0.1; } .wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background, + .wp-block-cover.has-background-dim.has-background-dim-10:not(.has-background-gradient)::before, .wp-block-cover.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background { opacity: 0.1; } .wp-block-cover-image.has-background-dim.has-background-dim-20:not(.has-background-gradient)::before, - .wp-block-cover.has-background-dim.has-background-dim-20:not(.has-background-gradient)::before { - opacity: 0.2; } .wp-block-cover-image.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background, + .wp-block-cover.has-background-dim.has-background-dim-20:not(.has-background-gradient)::before, .wp-block-cover.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background { opacity: 0.2; } .wp-block-cover-image.has-background-dim.has-background-dim-30:not(.has-background-gradient)::before, - .wp-block-cover.has-background-dim.has-background-dim-30:not(.has-background-gradient)::before { - opacity: 0.3; } .wp-block-cover-image.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background, + .wp-block-cover.has-background-dim.has-background-dim-30:not(.has-background-gradient)::before, .wp-block-cover.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background { opacity: 0.3; } .wp-block-cover-image.has-background-dim.has-background-dim-40:not(.has-background-gradient)::before, - .wp-block-cover.has-background-dim.has-background-dim-40:not(.has-background-gradient)::before { - opacity: 0.4; } .wp-block-cover-image.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background, + .wp-block-cover.has-background-dim.has-background-dim-40:not(.has-background-gradient)::before, .wp-block-cover.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background { opacity: 0.4; } .wp-block-cover-image.has-background-dim.has-background-dim-50:not(.has-background-gradient)::before, - .wp-block-cover.has-background-dim.has-background-dim-50:not(.has-background-gradient)::before { - opacity: 0.5; } .wp-block-cover-image.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background, + .wp-block-cover.has-background-dim.has-background-dim-50:not(.has-background-gradient)::before, .wp-block-cover.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background { opacity: 0.5; } .wp-block-cover-image.has-background-dim.has-background-dim-60:not(.has-background-gradient)::before, - .wp-block-cover.has-background-dim.has-background-dim-60:not(.has-background-gradient)::before { - opacity: 0.6; } .wp-block-cover-image.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background, + .wp-block-cover.has-background-dim.has-background-dim-60:not(.has-background-gradient)::before, .wp-block-cover.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background { opacity: 0.6; } .wp-block-cover-image.has-background-dim.has-background-dim-70:not(.has-background-gradient)::before, - .wp-block-cover.has-background-dim.has-background-dim-70:not(.has-background-gradient)::before { - opacity: 0.7; } .wp-block-cover-image.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background, + .wp-block-cover.has-background-dim.has-background-dim-70:not(.has-background-gradient)::before, .wp-block-cover.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background { opacity: 0.7; } .wp-block-cover-image.has-background-dim.has-background-dim-80:not(.has-background-gradient)::before, - .wp-block-cover.has-background-dim.has-background-dim-80:not(.has-background-gradient)::before { - opacity: 0.8; } .wp-block-cover-image.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background, + .wp-block-cover.has-background-dim.has-background-dim-80:not(.has-background-gradient)::before, .wp-block-cover.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background { opacity: 0.8; } .wp-block-cover-image.has-background-dim.has-background-dim-90:not(.has-background-gradient)::before, - .wp-block-cover.has-background-dim.has-background-dim-90:not(.has-background-gradient)::before { - opacity: 0.9; } .wp-block-cover-image.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background, + .wp-block-cover.has-background-dim.has-background-dim-90:not(.has-background-gradient)::before, .wp-block-cover.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background { opacity: 0.9; } .wp-block-cover-image.has-background-dim.has-background-dim-100:not(.has-background-gradient)::before, - .wp-block-cover.has-background-dim.has-background-dim-100:not(.has-background-gradient)::before { - opacity: 1; } .wp-block-cover-image.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background, + .wp-block-cover.has-background-dim.has-background-dim-100:not(.has-background-gradient)::before, .wp-block-cover.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background { opacity: 1; } .wp-block-cover-image.alignleft, .wp-block-cover-image.alignright, @@ -355,6 +335,7 @@ display: flex; } .wp-block-cover-image .wp-block-cover__inner-container, .wp-block-cover .wp-block-cover__inner-container { + width: 100%; z-index: 1; color: #fff; } .wp-block-cover-image p:not(.has-text-color), @@ -526,8 +507,8 @@ section.wp-block-cover-image > h2, .wp-embed-responsive .wp-embed-aspect-1-1 .wp-block-embed__wrapper::before { padding-top: 100%; } -.wp-embed-responsive .wp-embed-aspect-9-6 .wp-block-embed__wrapper::before { - padding-top: 66.66%; } +.wp-embed-responsive .wp-embed-aspect-9-16 .wp-block-embed__wrapper::before { + padding-top: 177.77%; } .wp-embed-responsive .wp-embed-aspect-1-2 .wp-block-embed__wrapper::before { padding-top: 200%; } @@ -571,7 +552,13 @@ section.wp-block-cover-image > h2, flex-grow: 1; flex-direction: column; justify-content: center; - position: relative; } + position: relative; + width: calc(50% - 1em); } + .wp-block-gallery .blocks-gallery-image:nth-of-type(even), + .wp-block-gallery .blocks-gallery-item:nth-of-type(even), + .blocks-gallery-grid .blocks-gallery-image:nth-of-type(even), + .blocks-gallery-grid .blocks-gallery-item:nth-of-type(even) { + margin-right: 0; } .wp-block-gallery .blocks-gallery-image figure, .wp-block-gallery .blocks-gallery-item figure, .blocks-gallery-grid .blocks-gallery-image figure, @@ -592,11 +579,7 @@ section.wp-block-cover-image > h2, .blocks-gallery-grid .blocks-gallery-item img { display: block; max-width: 100%; - height: auto; } - .wp-block-gallery .blocks-gallery-image img, - .wp-block-gallery .blocks-gallery-item img, - .blocks-gallery-grid .blocks-gallery-image img, - .blocks-gallery-grid .blocks-gallery-item img { + height: auto; width: 100%; } @supports ((position: -webkit-sticky) or (position: sticky)) { .wp-block-gallery .blocks-gallery-image img, @@ -618,12 +601,16 @@ section.wp-block-cover-image > h2, text-align: center; font-size: 0.8em; background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0, rgba(0, 0, 0, 0.3) 70%, transparent); - box-sizing: border-box; } + box-sizing: border-box; + margin: 0; } .wp-block-gallery .blocks-gallery-image figcaption img, .wp-block-gallery .blocks-gallery-item figcaption img, .blocks-gallery-grid .blocks-gallery-image figcaption img, .blocks-gallery-grid .blocks-gallery-item figcaption img { display: inline; } + .wp-block-gallery figcaption, + .blocks-gallery-grid figcaption { + flex-grow: 1; } .wp-block-gallery.is-cropped .blocks-gallery-image a, .wp-block-gallery.is-cropped .blocks-gallery-image img, .wp-block-gallery.is-cropped .blocks-gallery-item a, @@ -645,16 +632,6 @@ section.wp-block-cover-image > h2, height: 100%; flex: 1; object-fit: cover; } } - .wp-block-gallery .blocks-gallery-image, - .wp-block-gallery .blocks-gallery-item, - .blocks-gallery-grid .blocks-gallery-image, - .blocks-gallery-grid .blocks-gallery-item { - width: calc(50% - 1em); } - .wp-block-gallery .blocks-gallery-image:nth-of-type(even), - .wp-block-gallery .blocks-gallery-item:nth-of-type(even), - .blocks-gallery-grid .blocks-gallery-image:nth-of-type(even), - .blocks-gallery-grid .blocks-gallery-item:nth-of-type(even) { - margin-right: 0; } .wp-block-gallery.columns-1 .blocks-gallery-image, .wp-block-gallery.columns-1 .blocks-gallery-item, .blocks-gallery-grid.columns-1 .blocks-gallery-image, @@ -879,15 +856,25 @@ h6.has-background { @media (min-width: 600px) { .wp-block-latest-posts.columns-2 li { - width: calc((100% / 2) - 1.25em); } + width: calc((100% / 2) - 1.25em + (1.25em / 2)); } + .wp-block-latest-posts.columns-2 li:nth-child(2n) { + margin-right: 0; } .wp-block-latest-posts.columns-3 li { - width: calc((100% / 3) - 1.25em); } + width: calc((100% / 3) - 1.25em + (1.25em / 3)); } + .wp-block-latest-posts.columns-3 li:nth-child(3n) { + margin-right: 0; } .wp-block-latest-posts.columns-4 li { - width: calc((100% / 4) - 1.25em); } + width: calc((100% / 4) - 1.25em + (1.25em / 4)); } + .wp-block-latest-posts.columns-4 li:nth-child(4n) { + margin-right: 0; } .wp-block-latest-posts.columns-5 li { - width: calc((100% / 5) - 1.25em); } + width: calc((100% / 5) - 1.25em + (1.25em / 5)); } + .wp-block-latest-posts.columns-5 li:nth-child(5n) { + margin-right: 0; } .wp-block-latest-posts.columns-6 li { - width: calc((100% / 6) - 1.25em); } } + width: calc((100% / 6) - 1.25em + (1.25em / 6)); } + .wp-block-latest-posts.columns-6 li:nth-child(6n) { + margin-right: 0; } } .wp-block-latest-posts__post-date, .wp-block-latest-posts__post-author { @@ -1081,6 +1068,8 @@ ul.has-background { position: absolute; left: 0; top: 100%; + width: -webkit-fit-content; + width: -moz-fit-content; width: fit-content; z-index: 2; opacity: 0; @@ -1343,6 +1332,7 @@ p.has-text-color a { justify-content: flex-start; padding-left: 0; padding-right: 0; + text-indent: 0; margin-left: 0; } .wp-block-social-links .wp-social-link a, .wp-block-social-links .wp-social-link a:hover { @@ -1354,7 +1344,7 @@ p.has-text-color a { display: block; width: 36px; height: 36px; - border-radius: 36px; + border-radius: 9999px; margin: 0 8px 8px 0; transition: transform 0.1s ease; } @media (prefers-reduced-motion: reduce) { @@ -1737,6 +1727,9 @@ p.wp-block-subhead { margin-top: 0.5em; margin-bottom: 1em; } +.wp-block-post-featured-image a { + display: inline-block; } + :root { /* stylelint-disable function-comma-space-after */ /* stylelint-enable function-comma-space-after */ } diff --git a/wp-includes/css/dist/block-library/style.min.css b/wp-includes/css/dist/block-library/style.min.css index 847b5dd263..10a8f9315b 100644 --- a/wp-includes/css/dist/block-library/style.min.css +++ b/wp-includes/css/dist/block-library/style.min.css @@ -1,4 +1,4 @@ -: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}.wp-block-audio figcaption{margin-top:.5em;margin-bottom:1em}.wp-block-audio audio{width:100%;min-width:300px}.wp-block-button__link{color:#fff;background-color:#32373c;border:none;border-radius:1.55em;box-shadow:none;cursor:pointer;display:inline-block;font-size:1.125em;padding:.667em 1.333em;text-align:center;text-decoration:none;overflow-wrap:break-word}.wp-block-button__link:active,.wp-block-button__link:focus,.wp-block-button__link:hover,.wp-block-button__link:visited{color:#fff}.wp-block-button__link.aligncenter{text-align:center}.wp-block-button__link.alignright{text-align:right}.wp-block-button.is-style-squared,.wp-block-button__link.wp-block-button.is-style-squared{border-radius:0}.wp-block-button.no-border-radius,.wp-block-button__link.no-border-radius{border-radius:0!important}.is-style-outline .wp-block-button__link,.wp-block-button__link.is-style-outline{color:#32373c;background-color:transparent;border:2px solid}.wp-block-buttons .wp-block-button{display:inline-block;margin-right:.5em;margin-bottom:.5em}.wp-block-buttons .wp-block-button:last-child{margin-right:0}.wp-block-buttons.alignright .wp-block-button{margin-right:0;margin-left:.5em}.wp-block-buttons.alignright .wp-block-button:first-child{margin-left:0}.wp-block-buttons.alignleft .wp-block-button{margin-left:0;margin-right:.5em}.wp-block-buttons.alignleft .wp-block-button:last-child{margin-right:0}.wp-block-button.aligncenter,.wp-block-buttons.aligncenter,.wp-block-calendar{text-align:center}.wp-block-calendar tbody td,.wp-block-calendar th{padding:.25em;border:1px solid #ddd}.wp-block-calendar tfoot td{border:none}.wp-block-calendar table{width:100%;border-collapse:collapse}.wp-block-calendar table th{font-weight:400;background:#ddd}.wp-block-calendar a{text-decoration:underline}.wp-block-calendar table caption,.wp-block-calendar table tbody{color:#40464d}.wp-block-categories.alignleft{margin-right:2em}.wp-block-categories.alignright{margin-left:2em}.wp-block-columns{display:flex;margin-bottom:1.75em;flex-wrap:wrap}@media (min-width:782px){.wp-block-columns{flex-wrap:nowrap}}.wp-block-columns.has-background{padding:1.25em 2.375em}.wp-block-column{flex-grow:1;min-width:0;word-break:break-word;overflow-wrap:break-word}@media (max-width:599px){.wp-block-column{flex-basis:100%!important}}@media (min-width:600px) and (max-width:781px){.wp-block-column{flex-basis:calc(50% - 1em)!important;flex-grow:0}.wp-block-column:nth-child(2n){margin-left:2em}}@media (min-width:782px){.wp-block-column{flex-basis:0;flex-grow:1}.wp-block-column[style*=flex-basis]{flex-grow:0}.wp-block-column:not(:first-child){margin-left:2em}}.wp-block-columns.are-vertically-aligned-top{align-items:flex-start}.wp-block-columns.are-vertically-aligned-center{align-items:center}.wp-block-columns.are-vertically-aligned-bottom{align-items:flex-end}.wp-block-column.is-vertically-aligned-top{align-self:flex-start}.wp-block-column.is-vertically-aligned-center{-ms-grid-row-align:center;align-self:center}.wp-block-column.is-vertically-aligned-bottom{align-self:flex-end}.wp-block-column.is-vertically-aligned-bottom,.wp-block-column.is-vertically-aligned-center,.wp-block-column.is-vertically-aligned-top{width:100%}.wp-block-cover,.wp-block-cover-image{position:relative;background-size:cover;background-position:50%;min-height:430px;height:100%;width:100%;display:flex;justify-content:center;align-items:center;padding:1em;box-sizing:border-box}.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax{background-attachment:fixed}@supports (-webkit-overflow-scrolling:touch){.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax{background-attachment:scroll}}@media (prefers-reduced-motion:reduce){.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax{background-attachment:scroll}}.wp-block-cover-image.has-background-dim,.wp-block-cover.has-background-dim{background-color:#000}.wp-block-cover-image.has-background-dim:before,.wp-block-cover.has-background-dim:before{content:"";background-color:inherit}.wp-block-cover-image.has-background-dim:not(.has-background-gradient):before,.wp-block-cover-image .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim:not(.has-background-gradient):before,.wp-block-cover .wp-block-cover__gradient-background{position:absolute;top:0;left:0;bottom:0;right:0;z-index:1}.wp-block-cover-image.has-background-dim:not(.has-background-gradient):before,.wp-block-cover-image .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim:not(.has-background-gradient):before,.wp-block-cover .wp-block-cover__gradient-background{opacity:.5}.wp-block-cover-image.has-background-dim.has-background-dim-10:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-10:not(.has-background-gradient):before{opacity:.1}.wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background{opacity:.1}.wp-block-cover-image.has-background-dim.has-background-dim-20:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-20:not(.has-background-gradient):before{opacity:.2}.wp-block-cover-image.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background{opacity:.2}.wp-block-cover-image.has-background-dim.has-background-dim-30:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-30:not(.has-background-gradient):before{opacity:.3}.wp-block-cover-image.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background{opacity:.3}.wp-block-cover-image.has-background-dim.has-background-dim-40:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-40:not(.has-background-gradient):before{opacity:.4}.wp-block-cover-image.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background{opacity:.4}.wp-block-cover-image.has-background-dim.has-background-dim-50:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-50:not(.has-background-gradient):before{opacity:.5}.wp-block-cover-image.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background{opacity:.5}.wp-block-cover-image.has-background-dim.has-background-dim-60:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-60:not(.has-background-gradient):before{opacity:.6}.wp-block-cover-image.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background{opacity:.6}.wp-block-cover-image.has-background-dim.has-background-dim-70:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-70:not(.has-background-gradient):before{opacity:.7}.wp-block-cover-image.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background{opacity:.7}.wp-block-cover-image.has-background-dim.has-background-dim-80:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-80:not(.has-background-gradient):before{opacity:.8}.wp-block-cover-image.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background{opacity:.8}.wp-block-cover-image.has-background-dim.has-background-dim-90:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-90:not(.has-background-gradient):before{opacity:.9}.wp-block-cover-image.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background{opacity:.9}.wp-block-cover-image.has-background-dim.has-background-dim-100:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-100:not(.has-background-gradient):before{opacity:1}.wp-block-cover-image.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background{opacity:1}.wp-block-cover-image.alignleft,.wp-block-cover-image.alignright,.wp-block-cover.alignleft,.wp-block-cover.alignright{max-width:290px;width:100%}.wp-block-cover-image:after,.wp-block-cover:after{display:block;content:"";font-size:0;min-height:inherit}@supports ((position:-webkit-sticky) or (position:sticky)){.wp-block-cover-image:after,.wp-block-cover:after{content:none}}.wp-block-cover-image.aligncenter,.wp-block-cover-image.alignleft,.wp-block-cover-image.alignright,.wp-block-cover.aligncenter,.wp-block-cover.alignleft,.wp-block-cover.alignright{display:flex}.wp-block-cover-image .wp-block-cover__inner-container,.wp-block-cover .wp-block-cover__inner-container{z-index:1;color:#fff}.wp-block-cover-image .wp-block-subhead:not(.has-text-color),.wp-block-cover-image h1:not(.has-text-color),.wp-block-cover-image h2:not(.has-text-color),.wp-block-cover-image h3:not(.has-text-color),.wp-block-cover-image h4:not(.has-text-color),.wp-block-cover-image h5:not(.has-text-color),.wp-block-cover-image h6:not(.has-text-color),.wp-block-cover-image p:not(.has-text-color),.wp-block-cover .wp-block-subhead:not(.has-text-color),.wp-block-cover h1:not(.has-text-color),.wp-block-cover h2:not(.has-text-color),.wp-block-cover h3:not(.has-text-color),.wp-block-cover h4:not(.has-text-color),.wp-block-cover h5:not(.has-text-color),.wp-block-cover h6:not(.has-text-color),.wp-block-cover p:not(.has-text-color){color:inherit}.wp-block-cover-image.is-position-top-left,.wp-block-cover.is-position-top-left{align-items:flex-start;justify-content:flex-start}.wp-block-cover-image.is-position-top-center,.wp-block-cover.is-position-top-center{align-items:flex-start;justify-content:center}.wp-block-cover-image.is-position-top-right,.wp-block-cover.is-position-top-right{align-items:flex-start;justify-content:flex-end}.wp-block-cover-image.is-position-center-left,.wp-block-cover.is-position-center-left{align-items:center;justify-content:flex-start}.wp-block-cover-image.is-position-center-center,.wp-block-cover.is-position-center-center{align-items:center;justify-content:center}.wp-block-cover-image.is-position-center-right,.wp-block-cover.is-position-center-right{align-items:center;justify-content:flex-end}.wp-block-cover-image.is-position-bottom-left,.wp-block-cover.is-position-bottom-left{align-items:flex-end;justify-content:flex-start}.wp-block-cover-image.is-position-bottom-center,.wp-block-cover.is-position-bottom-center{align-items:flex-end;justify-content:center}.wp-block-cover-image.is-position-bottom-right,.wp-block-cover.is-position-bottom-right{align-items:flex-end;justify-content:flex-end}.wp-block-cover-image.has-custom-content-position.has-custom-content-position .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position .wp-block-cover__inner-container{margin:0;width:auto}.wp-block-cover__video-background{position:absolute;top:50%;left:50%;transform:translateX(-50%) translateY(-50%);width:100%;height:100%;z-index:0;object-fit:cover}.wp-block-cover-image-text,.wp-block-cover-text,section.wp-block-cover-image h2{color:#fff}.wp-block-cover-image-text a,.wp-block-cover-image-text a:active,.wp-block-cover-image-text a:focus,.wp-block-cover-image-text a:hover,.wp-block-cover-text a,.wp-block-cover-text a:active,.wp-block-cover-text a:focus,.wp-block-cover-text a:hover,section.wp-block-cover-image h2 a,section.wp-block-cover-image h2 a:active,section.wp-block-cover-image h2 a:focus,section.wp-block-cover-image h2 a:hover{color:#fff}.wp-block-cover-image .wp-block-cover.has-left-content{justify-content:flex-start}.wp-block-cover-image .wp-block-cover.has-right-content{justify-content:flex-end}.wp-block-cover-image.has-left-content .wp-block-cover-image-text,.wp-block-cover.has-left-content .wp-block-cover-text,section.wp-block-cover-image.has-left-content>h2{margin-left:0;text-align:left}.wp-block-cover-image.has-right-content .wp-block-cover-image-text,.wp-block-cover.has-right-content .wp-block-cover-text,section.wp-block-cover-image.has-right-content>h2{margin-right:0;text-align:right}.wp-block-cover-image .wp-block-cover-image-text,.wp-block-cover .wp-block-cover-text,section.wp-block-cover-image>h2{font-size:2em;line-height:1.25;z-index:1;margin-bottom:0;max-width:580px;padding:.44em;text-align:center}.wp-block-embed.alignleft,.wp-block-embed.alignright,.wp-block[data-align=left]>[data-type="core/embed"],.wp-block[data-align=right]>[data-type="core/embed"]{max-width:360px;width:100%}.wp-block-embed.alignleft .wp-block-embed__wrapper,.wp-block-embed.alignright .wp-block-embed__wrapper,.wp-block[data-align=left]>[data-type="core/embed"] .wp-block-embed__wrapper,.wp-block[data-align=right]>[data-type="core/embed"] .wp-block-embed__wrapper{min-width:280px}.wp-block-embed{margin-bottom:1em}.wp-block-embed figcaption{margin-top:.5em;margin-bottom:1em}.wp-block-embed iframe{max-width:100%}.wp-block-embed__wrapper{position:relative}.wp-embed-responsive .wp-has-aspect-ratio .wp-block-embed__wrapper:before{content:"";display:block;padding-top:50%}.wp-embed-responsive .wp-has-aspect-ratio iframe{position:absolute;top:0;right:0;bottom:0;left:0;height:100%;width:100%}.wp-embed-responsive .wp-embed-aspect-21-9 .wp-block-embed__wrapper:before{padding-top:42.85%}.wp-embed-responsive .wp-embed-aspect-18-9 .wp-block-embed__wrapper:before{padding-top:50%}.wp-embed-responsive .wp-embed-aspect-16-9 .wp-block-embed__wrapper:before{padding-top:56.25%}.wp-embed-responsive .wp-embed-aspect-4-3 .wp-block-embed__wrapper:before{padding-top:75%}.wp-embed-responsive .wp-embed-aspect-1-1 .wp-block-embed__wrapper:before{padding-top:100%}.wp-embed-responsive .wp-embed-aspect-9-6 .wp-block-embed__wrapper:before{padding-top:66.66%}.wp-embed-responsive .wp-embed-aspect-1-2 .wp-block-embed__wrapper:before{padding-top:200%}.wp-block-file{margin-bottom:1.5em}.wp-block-file.aligncenter{text-align:center}.wp-block-file.alignright{text-align:right}.wp-block-file .wp-block-file__button{background:#32373c;border-radius:2em;color:#fff;font-size:.8em;padding:.5em 1em}.wp-block-file a.wp-block-file__button{text-decoration:none}.wp-block-file a.wp-block-file__button:active,.wp-block-file a.wp-block-file__button:focus,.wp-block-file a.wp-block-file__button:hover,.wp-block-file a.wp-block-file__button:visited{box-shadow:none;color:#fff;opacity:.85;text-decoration:none}.wp-block-file *+.wp-block-file__button{margin-left:.75em}.blocks-gallery-grid,.wp-block-gallery{display:flex;flex-wrap:wrap;list-style-type:none;padding:0;margin:0}.blocks-gallery-grid .blocks-gallery-image,.blocks-gallery-grid .blocks-gallery-item,.wp-block-gallery .blocks-gallery-image,.wp-block-gallery .blocks-gallery-item{margin:0 1em 1em 0;display:flex;flex-grow:1;flex-direction:column;justify-content:center;position:relative}.blocks-gallery-grid .blocks-gallery-image figure,.blocks-gallery-grid .blocks-gallery-item figure,.wp-block-gallery .blocks-gallery-image figure,.wp-block-gallery .blocks-gallery-item figure{margin:0;height:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.blocks-gallery-grid .blocks-gallery-image figure,.blocks-gallery-grid .blocks-gallery-item figure,.wp-block-gallery .blocks-gallery-image figure,.wp-block-gallery .blocks-gallery-item figure{display:flex;align-items:flex-end;justify-content:flex-start}}.blocks-gallery-grid .blocks-gallery-image img,.blocks-gallery-grid .blocks-gallery-item img,.wp-block-gallery .blocks-gallery-image img,.wp-block-gallery .blocks-gallery-item img{display:block;max-width:100%;height:auto;width:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.blocks-gallery-grid .blocks-gallery-image img,.blocks-gallery-grid .blocks-gallery-item img,.wp-block-gallery .blocks-gallery-image img,.wp-block-gallery .blocks-gallery-item img{width:auto}}.blocks-gallery-grid .blocks-gallery-image figcaption,.blocks-gallery-grid .blocks-gallery-item figcaption,.wp-block-gallery .blocks-gallery-image figcaption,.wp-block-gallery .blocks-gallery-item figcaption{position:absolute;bottom:0;width:100%;max-height:100%;overflow:auto;padding:3em .77em .7em;color:#fff;text-align:center;font-size:.8em;background:linear-gradient(0deg,rgba(0,0,0,.7),rgba(0,0,0,.3) 70%,transparent);box-sizing:border-box}.blocks-gallery-grid .blocks-gallery-image figcaption img,.blocks-gallery-grid .blocks-gallery-item figcaption img,.wp-block-gallery .blocks-gallery-image figcaption img,.wp-block-gallery .blocks-gallery-item figcaption img{display:inline}.blocks-gallery-grid.is-cropped .blocks-gallery-image a,.blocks-gallery-grid.is-cropped .blocks-gallery-image img,.blocks-gallery-grid.is-cropped .blocks-gallery-item a,.blocks-gallery-grid.is-cropped .blocks-gallery-item img,.wp-block-gallery.is-cropped .blocks-gallery-image a,.wp-block-gallery.is-cropped .blocks-gallery-image img,.wp-block-gallery.is-cropped .blocks-gallery-item a,.wp-block-gallery.is-cropped .blocks-gallery-item img{width:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.blocks-gallery-grid.is-cropped .blocks-gallery-image a,.blocks-gallery-grid.is-cropped .blocks-gallery-image img,.blocks-gallery-grid.is-cropped .blocks-gallery-item a,.blocks-gallery-grid.is-cropped .blocks-gallery-item img,.wp-block-gallery.is-cropped .blocks-gallery-image a,.wp-block-gallery.is-cropped .blocks-gallery-image img,.wp-block-gallery.is-cropped .blocks-gallery-item a,.wp-block-gallery.is-cropped .blocks-gallery-item img{height:100%;flex:1;object-fit:cover}}.blocks-gallery-grid .blocks-gallery-image,.blocks-gallery-grid .blocks-gallery-item,.wp-block-gallery .blocks-gallery-image,.wp-block-gallery .blocks-gallery-item{width:calc(50% - 1em)}.blocks-gallery-grid .blocks-gallery-image:nth-of-type(2n),.blocks-gallery-grid .blocks-gallery-item:nth-of-type(2n),.wp-block-gallery .blocks-gallery-image:nth-of-type(2n),.wp-block-gallery .blocks-gallery-item:nth-of-type(2n){margin-right:0}.blocks-gallery-grid.columns-1 .blocks-gallery-image,.blocks-gallery-grid.columns-1 .blocks-gallery-item,.wp-block-gallery.columns-1 .blocks-gallery-image,.wp-block-gallery.columns-1 .blocks-gallery-item{width:100%;margin-right:0}@media (min-width:600px){.blocks-gallery-grid.columns-3 .blocks-gallery-image,.blocks-gallery-grid.columns-3 .blocks-gallery-item,.wp-block-gallery.columns-3 .blocks-gallery-image,.wp-block-gallery.columns-3 .blocks-gallery-item{width:calc(33.33333% - .66667em);margin-right:1em}.blocks-gallery-grid.columns-4 .blocks-gallery-image,.blocks-gallery-grid.columns-4 .blocks-gallery-item,.wp-block-gallery.columns-4 .blocks-gallery-image,.wp-block-gallery.columns-4 .blocks-gallery-item{width:calc(25% - .75em);margin-right:1em}.blocks-gallery-grid.columns-5 .blocks-gallery-image,.blocks-gallery-grid.columns-5 .blocks-gallery-item,.wp-block-gallery.columns-5 .blocks-gallery-image,.wp-block-gallery.columns-5 .blocks-gallery-item{width:calc(20% - .8em);margin-right:1em}.blocks-gallery-grid.columns-6 .blocks-gallery-image,.blocks-gallery-grid.columns-6 .blocks-gallery-item,.wp-block-gallery.columns-6 .blocks-gallery-image,.wp-block-gallery.columns-6 .blocks-gallery-item{width:calc(16.66667% - .83333em);margin-right:1em}.blocks-gallery-grid.columns-7 .blocks-gallery-image,.blocks-gallery-grid.columns-7 .blocks-gallery-item,.wp-block-gallery.columns-7 .blocks-gallery-image,.wp-block-gallery.columns-7 .blocks-gallery-item{width:calc(14.28571% - .85714em);margin-right:1em}.blocks-gallery-grid.columns-8 .blocks-gallery-image,.blocks-gallery-grid.columns-8 .blocks-gallery-item,.wp-block-gallery.columns-8 .blocks-gallery-image,.wp-block-gallery.columns-8 .blocks-gallery-item{width:calc(12.5% - .875em);margin-right:1em}.blocks-gallery-grid.columns-1 .blocks-gallery-image:nth-of-type(1n),.blocks-gallery-grid.columns-1 .blocks-gallery-item:nth-of-type(1n),.wp-block-gallery.columns-1 .blocks-gallery-image:nth-of-type(1n),.wp-block-gallery.columns-1 .blocks-gallery-item:nth-of-type(1n){margin-right:0}.blocks-gallery-grid.columns-2 .blocks-gallery-image:nth-of-type(2n),.blocks-gallery-grid.columns-2 .blocks-gallery-item:nth-of-type(2n),.wp-block-gallery.columns-2 .blocks-gallery-image:nth-of-type(2n),.wp-block-gallery.columns-2 .blocks-gallery-item:nth-of-type(2n){margin-right:0}.blocks-gallery-grid.columns-3 .blocks-gallery-image:nth-of-type(3n),.blocks-gallery-grid.columns-3 .blocks-gallery-item:nth-of-type(3n),.wp-block-gallery.columns-3 .blocks-gallery-image:nth-of-type(3n),.wp-block-gallery.columns-3 .blocks-gallery-item:nth-of-type(3n){margin-right:0}.blocks-gallery-grid.columns-4 .blocks-gallery-image:nth-of-type(4n),.blocks-gallery-grid.columns-4 .blocks-gallery-item:nth-of-type(4n),.wp-block-gallery.columns-4 .blocks-gallery-image:nth-of-type(4n),.wp-block-gallery.columns-4 .blocks-gallery-item:nth-of-type(4n){margin-right:0}.blocks-gallery-grid.columns-5 .blocks-gallery-image:nth-of-type(5n),.blocks-gallery-grid.columns-5 .blocks-gallery-item:nth-of-type(5n),.wp-block-gallery.columns-5 .blocks-gallery-image:nth-of-type(5n),.wp-block-gallery.columns-5 .blocks-gallery-item:nth-of-type(5n){margin-right:0}.blocks-gallery-grid.columns-6 .blocks-gallery-image:nth-of-type(6n),.blocks-gallery-grid.columns-6 .blocks-gallery-item:nth-of-type(6n),.wp-block-gallery.columns-6 .blocks-gallery-image:nth-of-type(6n),.wp-block-gallery.columns-6 .blocks-gallery-item:nth-of-type(6n){margin-right:0}.blocks-gallery-grid.columns-7 .blocks-gallery-image:nth-of-type(7n),.blocks-gallery-grid.columns-7 .blocks-gallery-item:nth-of-type(7n),.wp-block-gallery.columns-7 .blocks-gallery-image:nth-of-type(7n),.wp-block-gallery.columns-7 .blocks-gallery-item:nth-of-type(7n){margin-right:0}.blocks-gallery-grid.columns-8 .blocks-gallery-image:nth-of-type(8n),.blocks-gallery-grid.columns-8 .blocks-gallery-item:nth-of-type(8n),.wp-block-gallery.columns-8 .blocks-gallery-image:nth-of-type(8n),.wp-block-gallery.columns-8 .blocks-gallery-item:nth-of-type(8n){margin-right:0}}.blocks-gallery-grid .blocks-gallery-image:last-child,.blocks-gallery-grid .blocks-gallery-item:last-child,.wp-block-gallery .blocks-gallery-image:last-child,.wp-block-gallery .blocks-gallery-item:last-child{margin-right:0}.blocks-gallery-grid.alignleft,.blocks-gallery-grid.alignright,.wp-block-gallery.alignleft,.wp-block-gallery.alignright{max-width:290px;width:100%}.blocks-gallery-grid.aligncenter .blocks-gallery-item figure,.wp-block-gallery.aligncenter .blocks-gallery-item figure{justify-content:center}.wp-block-group{box-sizing:border-box}h1.has-background,h2.has-background,h3.has-background,h4.has-background,h5.has-background,h6.has-background{padding:1.25em 2.375em}.wp-block-image{margin-bottom:1em}.wp-block-image img{max-width:100%}.wp-block-image.aligncenter{text-align:center}.wp-block-image.alignfull img,.wp-block-image.alignwide img{width:100%}.wp-block-image .aligncenter,.wp-block-image .alignleft,.wp-block-image .alignright,.wp-block-image.is-resized{display:table}.wp-block-image .aligncenter>figcaption,.wp-block-image .alignleft>figcaption,.wp-block-image .alignright>figcaption,.wp-block-image.is-resized>figcaption{display:table-caption;caption-side:bottom}.wp-block-image .alignleft{float:left;margin:.5em 1em .5em 0}.wp-block-image .alignright{float:right;margin:.5em 0 .5em 1em}.wp-block-image .aligncenter{margin-left:auto;margin-right:auto}.wp-block-image figcaption{margin-top:.5em;margin-bottom:1em}.is-style-circle-mask img,.is-style-rounded img{border-radius:9999px}@supports ((-webkit-mask-image:none) or (mask-image:none)) or (-webkit-mask-image:none){.is-style-circle-mask img{-webkit-mask-image:url('data:image/svg+xml;utf8,');mask-image:url('data:image/svg+xml;utf8,');mask-mode:alpha;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-position:center;mask-position:center;border-radius:0}}.wp-block-latest-comments__comment{line-height:1.1;list-style:none;margin-bottom:1em}.has-avatars .wp-block-latest-comments__comment{min-height:2.25em;list-style:none}.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-excerpt,.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-meta{margin-left:3.25em}.has-dates .wp-block-latest-comments__comment,.has-excerpts .wp-block-latest-comments__comment{line-height:1.5}.wp-block-latest-comments__comment-excerpt p{font-size:.875em;line-height:1.8;margin:.36em 0 1.4em}.wp-block-latest-comments__comment-date{display:block;font-size:.75em}.wp-block-latest-comments .avatar,.wp-block-latest-comments__comment-avatar{border-radius:1.5em;display:block;float:left;height:2.5em;margin-right:.75em;width:2.5em}.wp-block-latest-posts.alignleft{margin-right:2em}.wp-block-latest-posts.alignright{margin-left:2em}.wp-block-latest-posts.wp-block-latest-posts__list{list-style:none}.wp-block-latest-posts.wp-block-latest-posts__list li{clear:both}.wp-block-latest-posts.is-grid{display:flex;flex-wrap:wrap;padding:0}.wp-block-latest-posts.is-grid li{margin:0 1.25em 1.25em 0;width:100%}@media (min-width:600px){.wp-block-latest-posts.columns-2 li{width:calc(50% - 1.25em)}.wp-block-latest-posts.columns-3 li{width:calc(33.33333% - 1.25em)}.wp-block-latest-posts.columns-4 li{width:calc(25% - 1.25em)}.wp-block-latest-posts.columns-5 li{width:calc(20% - 1.25em)}.wp-block-latest-posts.columns-6 li{width:calc(16.66667% - 1.25em)}}.wp-block-latest-posts__post-author,.wp-block-latest-posts__post-date{display:block;color:#555;font-size:.8125em}.wp-block-latest-posts__post-excerpt{margin-top:.5em;margin-bottom:1em}.wp-block-latest-posts__featured-image a{display:inline-block}.wp-block-latest-posts__featured-image img{height:auto;width:auto}.wp-block-latest-posts__featured-image.alignleft{margin-right:1em}.wp-block-latest-posts__featured-image.alignright{margin-left:1em}.wp-block-latest-posts__featured-image.aligncenter{margin-bottom:1em;text-align:center}.block-editor-image-alignment-control__row .components-base-control__field{display:flex;justify-content:space-between;align-items:center}.block-editor-image-alignment-control__row .components-base-control__field .components-base-control__label{margin-bottom:0}ol.has-background,ul.has-background{padding:1.25em 2.375em}.wp-block-media-text{ +: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}.wp-block-audio figcaption{margin-top:.5em;margin-bottom:1em}.wp-block-audio audio{width:100%;min-width:300px}.wp-block-button__link{color:#fff;background-color:#32373c;border:none;border-radius:1.55em;box-shadow:none;cursor:pointer;display:inline-block;font-size:1.125em;padding:.667em 1.333em;text-align:center;text-decoration:none;overflow-wrap:break-word}.wp-block-button__link:active,.wp-block-button__link:focus,.wp-block-button__link:hover,.wp-block-button__link:visited{color:#fff}.wp-block-button__link.aligncenter{text-align:center}.wp-block-button__link.alignright{text-align:right}.wp-block-button.is-style-squared,.wp-block-button__link.wp-block-button.is-style-squared{border-radius:0}.wp-block-button.no-border-radius,.wp-block-button__link.no-border-radius{border-radius:0!important}.is-style-outline>.wp-block-button__link,.wp-block-button__link.is-style-outline{color:#32373c;background-color:transparent;border:2px solid}.wp-block-buttons .wp-block-button{display:inline-block;margin-right:.5em;margin-bottom:.5em}.wp-block-buttons .wp-block-button:last-child{margin-right:0}.wp-block-buttons.alignright .wp-block-button{margin-right:0;margin-left:.5em}.wp-block-buttons.alignright .wp-block-button:first-child{margin-left:0}.wp-block-buttons.alignleft .wp-block-button{margin-left:0;margin-right:.5em}.wp-block-buttons.alignleft .wp-block-button:last-child{margin-right:0}.wp-block-button.aligncenter,.wp-block-buttons.aligncenter,.wp-block-calendar{text-align:center}.wp-block-calendar tbody td,.wp-block-calendar th{padding:.25em;border:1px solid #ddd}.wp-block-calendar tfoot td{border:none}.wp-block-calendar table{width:100%;border-collapse:collapse}.wp-block-calendar table th{font-weight:400;background:#ddd}.wp-block-calendar a{text-decoration:underline}.wp-block-calendar table caption,.wp-block-calendar table tbody{color:#40464d}.wp-block-categories.alignleft{margin-right:2em}.wp-block-categories.alignright{margin-left:2em}.wp-block-columns{display:flex;margin-bottom:1.75em;flex-wrap:wrap}@media (min-width:782px){.wp-block-columns{flex-wrap:nowrap}}.wp-block-columns.has-background{padding:1.25em 2.375em}.wp-block-columns.are-vertically-aligned-top{align-items:flex-start}.wp-block-columns.are-vertically-aligned-center{align-items:center}.wp-block-columns.are-vertically-aligned-bottom{align-items:flex-end}.wp-block-column{flex-grow:1;min-width:0;word-break:break-word;overflow-wrap:break-word}@media (max-width:599px){.wp-block-column{flex-basis:100%!important}}@media (min-width:600px) and (max-width:781px){.wp-block-column{flex-basis:calc(50% - 1em)!important;flex-grow:0}.wp-block-column:nth-child(2n){margin-left:2em}}@media (min-width:782px){.wp-block-column{flex-basis:0;flex-grow:1}.wp-block-column[style*=flex-basis]{flex-grow:0}.wp-block-column:not(:first-child){margin-left:2em}}.wp-block-column.is-vertically-aligned-top{align-self:flex-start}.wp-block-column.is-vertically-aligned-center{-ms-grid-row-align:center;align-self:center}.wp-block-column.is-vertically-aligned-bottom{align-self:flex-end}.wp-block-column.is-vertically-aligned-bottom,.wp-block-column.is-vertically-aligned-center,.wp-block-column.is-vertically-aligned-top{width:100%}.wp-block-cover,.wp-block-cover-image{position:relative;background-size:cover;background-position:50%;min-height:430px;height:100%;width:100%;display:flex;justify-content:center;align-items:center;padding:1em;box-sizing:border-box}.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax{background-attachment:fixed}@supports (-webkit-overflow-scrolling:touch){.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax{background-attachment:scroll}}@media (prefers-reduced-motion:reduce){.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax{background-attachment:scroll}}.wp-block-cover-image.is-repeated,.wp-block-cover.is-repeated{background-repeat:repeat;background-size:auto}.wp-block-cover-image.has-background-dim:before,.wp-block-cover.has-background-dim:before{content:"";background-color:inherit}.wp-block-cover-image.has-background-dim:not(.has-background-gradient):before,.wp-block-cover-image .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim:not(.has-background-gradient):before,.wp-block-cover .wp-block-cover__gradient-background{position:absolute;top:0;left:0;bottom:0;right:0;z-index:1;opacity:.5}.wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-10:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-10:not(.has-background-gradient):before{opacity:.1}.wp-block-cover-image.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-20:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-20:not(.has-background-gradient):before{opacity:.2}.wp-block-cover-image.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-30:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-30:not(.has-background-gradient):before{opacity:.3}.wp-block-cover-image.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-40:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-40:not(.has-background-gradient):before{opacity:.4}.wp-block-cover-image.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-50:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-50:not(.has-background-gradient):before{opacity:.5}.wp-block-cover-image.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-60:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-60:not(.has-background-gradient):before{opacity:.6}.wp-block-cover-image.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-70:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-70:not(.has-background-gradient):before{opacity:.7}.wp-block-cover-image.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-80:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-80:not(.has-background-gradient):before{opacity:.8}.wp-block-cover-image.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-90:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-90:not(.has-background-gradient):before{opacity:.9}.wp-block-cover-image.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-100:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-100:not(.has-background-gradient):before{opacity:1}.wp-block-cover-image.alignleft,.wp-block-cover-image.alignright,.wp-block-cover.alignleft,.wp-block-cover.alignright{max-width:290px;width:100%}.wp-block-cover-image:after,.wp-block-cover:after{display:block;content:"";font-size:0;min-height:inherit}@supports ((position:-webkit-sticky) or (position:sticky)){.wp-block-cover-image:after,.wp-block-cover:after{content:none}}.wp-block-cover-image.aligncenter,.wp-block-cover-image.alignleft,.wp-block-cover-image.alignright,.wp-block-cover.aligncenter,.wp-block-cover.alignleft,.wp-block-cover.alignright{display:flex}.wp-block-cover-image .wp-block-cover__inner-container,.wp-block-cover .wp-block-cover__inner-container{width:100%;z-index:1;color:#fff}.wp-block-cover-image .wp-block-subhead:not(.has-text-color),.wp-block-cover-image h1:not(.has-text-color),.wp-block-cover-image h2:not(.has-text-color),.wp-block-cover-image h3:not(.has-text-color),.wp-block-cover-image h4:not(.has-text-color),.wp-block-cover-image h5:not(.has-text-color),.wp-block-cover-image h6:not(.has-text-color),.wp-block-cover-image p:not(.has-text-color),.wp-block-cover .wp-block-subhead:not(.has-text-color),.wp-block-cover h1:not(.has-text-color),.wp-block-cover h2:not(.has-text-color),.wp-block-cover h3:not(.has-text-color),.wp-block-cover h4:not(.has-text-color),.wp-block-cover h5:not(.has-text-color),.wp-block-cover h6:not(.has-text-color),.wp-block-cover p:not(.has-text-color){color:inherit}.wp-block-cover-image.is-position-top-left,.wp-block-cover.is-position-top-left{align-items:flex-start;justify-content:flex-start}.wp-block-cover-image.is-position-top-center,.wp-block-cover.is-position-top-center{align-items:flex-start;justify-content:center}.wp-block-cover-image.is-position-top-right,.wp-block-cover.is-position-top-right{align-items:flex-start;justify-content:flex-end}.wp-block-cover-image.is-position-center-left,.wp-block-cover.is-position-center-left{align-items:center;justify-content:flex-start}.wp-block-cover-image.is-position-center-center,.wp-block-cover.is-position-center-center{align-items:center;justify-content:center}.wp-block-cover-image.is-position-center-right,.wp-block-cover.is-position-center-right{align-items:center;justify-content:flex-end}.wp-block-cover-image.is-position-bottom-left,.wp-block-cover.is-position-bottom-left{align-items:flex-end;justify-content:flex-start}.wp-block-cover-image.is-position-bottom-center,.wp-block-cover.is-position-bottom-center{align-items:flex-end;justify-content:center}.wp-block-cover-image.is-position-bottom-right,.wp-block-cover.is-position-bottom-right{align-items:flex-end;justify-content:flex-end}.wp-block-cover-image.has-custom-content-position.has-custom-content-position .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position .wp-block-cover__inner-container{margin:0;width:auto}.wp-block-cover__video-background{position:absolute;top:50%;left:50%;transform:translateX(-50%) translateY(-50%);width:100%;height:100%;z-index:0;object-fit:cover}.wp-block-cover-image-text,.wp-block-cover-text,section.wp-block-cover-image h2{color:#fff}.wp-block-cover-image-text a,.wp-block-cover-image-text a:active,.wp-block-cover-image-text a:focus,.wp-block-cover-image-text a:hover,.wp-block-cover-text a,.wp-block-cover-text a:active,.wp-block-cover-text a:focus,.wp-block-cover-text a:hover,section.wp-block-cover-image h2 a,section.wp-block-cover-image h2 a:active,section.wp-block-cover-image h2 a:focus,section.wp-block-cover-image h2 a:hover{color:#fff}.wp-block-cover-image .wp-block-cover.has-left-content{justify-content:flex-start}.wp-block-cover-image .wp-block-cover.has-right-content{justify-content:flex-end}.wp-block-cover-image.has-left-content .wp-block-cover-image-text,.wp-block-cover.has-left-content .wp-block-cover-text,section.wp-block-cover-image.has-left-content>h2{margin-left:0;text-align:left}.wp-block-cover-image.has-right-content .wp-block-cover-image-text,.wp-block-cover.has-right-content .wp-block-cover-text,section.wp-block-cover-image.has-right-content>h2{margin-right:0;text-align:right}.wp-block-cover-image .wp-block-cover-image-text,.wp-block-cover .wp-block-cover-text,section.wp-block-cover-image>h2{font-size:2em;line-height:1.25;z-index:1;margin-bottom:0;max-width:580px;padding:.44em;text-align:center}.wp-block-embed.alignleft,.wp-block-embed.alignright,.wp-block[data-align=left]>[data-type="core/embed"],.wp-block[data-align=right]>[data-type="core/embed"]{max-width:360px;width:100%}.wp-block-embed.alignleft .wp-block-embed__wrapper,.wp-block-embed.alignright .wp-block-embed__wrapper,.wp-block[data-align=left]>[data-type="core/embed"] .wp-block-embed__wrapper,.wp-block[data-align=right]>[data-type="core/embed"] .wp-block-embed__wrapper{min-width:280px}.wp-block-embed{margin-bottom:1em}.wp-block-embed figcaption{margin-top:.5em;margin-bottom:1em}.wp-block-embed iframe{max-width:100%}.wp-block-embed__wrapper{position:relative}.wp-embed-responsive .wp-has-aspect-ratio .wp-block-embed__wrapper:before{content:"";display:block;padding-top:50%}.wp-embed-responsive .wp-has-aspect-ratio iframe{position:absolute;top:0;right:0;bottom:0;left:0;height:100%;width:100%}.wp-embed-responsive .wp-embed-aspect-21-9 .wp-block-embed__wrapper:before{padding-top:42.85%}.wp-embed-responsive .wp-embed-aspect-18-9 .wp-block-embed__wrapper:before{padding-top:50%}.wp-embed-responsive .wp-embed-aspect-16-9 .wp-block-embed__wrapper:before{padding-top:56.25%}.wp-embed-responsive .wp-embed-aspect-4-3 .wp-block-embed__wrapper:before{padding-top:75%}.wp-embed-responsive .wp-embed-aspect-1-1 .wp-block-embed__wrapper:before{padding-top:100%}.wp-embed-responsive .wp-embed-aspect-9-16 .wp-block-embed__wrapper:before{padding-top:177.77%}.wp-embed-responsive .wp-embed-aspect-1-2 .wp-block-embed__wrapper:before{padding-top:200%}.wp-block-file{margin-bottom:1.5em}.wp-block-file.aligncenter{text-align:center}.wp-block-file.alignright{text-align:right}.wp-block-file .wp-block-file__button{background:#32373c;border-radius:2em;color:#fff;font-size:.8em;padding:.5em 1em}.wp-block-file a.wp-block-file__button{text-decoration:none}.wp-block-file a.wp-block-file__button:active,.wp-block-file a.wp-block-file__button:focus,.wp-block-file a.wp-block-file__button:hover,.wp-block-file a.wp-block-file__button:visited{box-shadow:none;color:#fff;opacity:.85;text-decoration:none}.wp-block-file *+.wp-block-file__button{margin-left:.75em}.blocks-gallery-grid,.wp-block-gallery{display:flex;flex-wrap:wrap;list-style-type:none;padding:0;margin:0}.blocks-gallery-grid .blocks-gallery-image,.blocks-gallery-grid .blocks-gallery-item,.wp-block-gallery .blocks-gallery-image,.wp-block-gallery .blocks-gallery-item{margin:0 1em 1em 0;display:flex;flex-grow:1;flex-direction:column;justify-content:center;position:relative;width:calc(50% - 1em)}.blocks-gallery-grid .blocks-gallery-image:nth-of-type(2n),.blocks-gallery-grid .blocks-gallery-item:nth-of-type(2n),.wp-block-gallery .blocks-gallery-image:nth-of-type(2n),.wp-block-gallery .blocks-gallery-item:nth-of-type(2n){margin-right:0}.blocks-gallery-grid .blocks-gallery-image figure,.blocks-gallery-grid .blocks-gallery-item figure,.wp-block-gallery .blocks-gallery-image figure,.wp-block-gallery .blocks-gallery-item figure{margin:0;height:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.blocks-gallery-grid .blocks-gallery-image figure,.blocks-gallery-grid .blocks-gallery-item figure,.wp-block-gallery .blocks-gallery-image figure,.wp-block-gallery .blocks-gallery-item figure{display:flex;align-items:flex-end;justify-content:flex-start}}.blocks-gallery-grid .blocks-gallery-image img,.blocks-gallery-grid .blocks-gallery-item img,.wp-block-gallery .blocks-gallery-image img,.wp-block-gallery .blocks-gallery-item img{display:block;max-width:100%;height:auto;width:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.blocks-gallery-grid .blocks-gallery-image img,.blocks-gallery-grid .blocks-gallery-item img,.wp-block-gallery .blocks-gallery-image img,.wp-block-gallery .blocks-gallery-item img{width:auto}}.blocks-gallery-grid .blocks-gallery-image figcaption,.blocks-gallery-grid .blocks-gallery-item figcaption,.wp-block-gallery .blocks-gallery-image figcaption,.wp-block-gallery .blocks-gallery-item figcaption{position:absolute;bottom:0;width:100%;max-height:100%;overflow:auto;padding:3em .77em .7em;color:#fff;text-align:center;font-size:.8em;background:linear-gradient(0deg,rgba(0,0,0,.7),rgba(0,0,0,.3) 70%,transparent);box-sizing:border-box;margin:0}.blocks-gallery-grid .blocks-gallery-image figcaption img,.blocks-gallery-grid .blocks-gallery-item figcaption img,.wp-block-gallery .blocks-gallery-image figcaption img,.wp-block-gallery .blocks-gallery-item figcaption img{display:inline}.blocks-gallery-grid figcaption,.wp-block-gallery figcaption{flex-grow:1}.blocks-gallery-grid.is-cropped .blocks-gallery-image a,.blocks-gallery-grid.is-cropped .blocks-gallery-image img,.blocks-gallery-grid.is-cropped .blocks-gallery-item a,.blocks-gallery-grid.is-cropped .blocks-gallery-item img,.wp-block-gallery.is-cropped .blocks-gallery-image a,.wp-block-gallery.is-cropped .blocks-gallery-image img,.wp-block-gallery.is-cropped .blocks-gallery-item a,.wp-block-gallery.is-cropped .blocks-gallery-item img{width:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.blocks-gallery-grid.is-cropped .blocks-gallery-image a,.blocks-gallery-grid.is-cropped .blocks-gallery-image img,.blocks-gallery-grid.is-cropped .blocks-gallery-item a,.blocks-gallery-grid.is-cropped .blocks-gallery-item img,.wp-block-gallery.is-cropped .blocks-gallery-image a,.wp-block-gallery.is-cropped .blocks-gallery-image img,.wp-block-gallery.is-cropped .blocks-gallery-item a,.wp-block-gallery.is-cropped .blocks-gallery-item img{height:100%;flex:1;object-fit:cover}}.blocks-gallery-grid.columns-1 .blocks-gallery-image,.blocks-gallery-grid.columns-1 .blocks-gallery-item,.wp-block-gallery.columns-1 .blocks-gallery-image,.wp-block-gallery.columns-1 .blocks-gallery-item{width:100%;margin-right:0}@media (min-width:600px){.blocks-gallery-grid.columns-3 .blocks-gallery-image,.blocks-gallery-grid.columns-3 .blocks-gallery-item,.wp-block-gallery.columns-3 .blocks-gallery-image,.wp-block-gallery.columns-3 .blocks-gallery-item{width:calc(33.33333% - .66667em);margin-right:1em}.blocks-gallery-grid.columns-4 .blocks-gallery-image,.blocks-gallery-grid.columns-4 .blocks-gallery-item,.wp-block-gallery.columns-4 .blocks-gallery-image,.wp-block-gallery.columns-4 .blocks-gallery-item{width:calc(25% - .75em);margin-right:1em}.blocks-gallery-grid.columns-5 .blocks-gallery-image,.blocks-gallery-grid.columns-5 .blocks-gallery-item,.wp-block-gallery.columns-5 .blocks-gallery-image,.wp-block-gallery.columns-5 .blocks-gallery-item{width:calc(20% - .8em);margin-right:1em}.blocks-gallery-grid.columns-6 .blocks-gallery-image,.blocks-gallery-grid.columns-6 .blocks-gallery-item,.wp-block-gallery.columns-6 .blocks-gallery-image,.wp-block-gallery.columns-6 .blocks-gallery-item{width:calc(16.66667% - .83333em);margin-right:1em}.blocks-gallery-grid.columns-7 .blocks-gallery-image,.blocks-gallery-grid.columns-7 .blocks-gallery-item,.wp-block-gallery.columns-7 .blocks-gallery-image,.wp-block-gallery.columns-7 .blocks-gallery-item{width:calc(14.28571% - .85714em);margin-right:1em}.blocks-gallery-grid.columns-8 .blocks-gallery-image,.blocks-gallery-grid.columns-8 .blocks-gallery-item,.wp-block-gallery.columns-8 .blocks-gallery-image,.wp-block-gallery.columns-8 .blocks-gallery-item{width:calc(12.5% - .875em);margin-right:1em}.blocks-gallery-grid.columns-1 .blocks-gallery-image:nth-of-type(1n),.blocks-gallery-grid.columns-1 .blocks-gallery-item:nth-of-type(1n),.wp-block-gallery.columns-1 .blocks-gallery-image:nth-of-type(1n),.wp-block-gallery.columns-1 .blocks-gallery-item:nth-of-type(1n){margin-right:0}.blocks-gallery-grid.columns-2 .blocks-gallery-image:nth-of-type(2n),.blocks-gallery-grid.columns-2 .blocks-gallery-item:nth-of-type(2n),.wp-block-gallery.columns-2 .blocks-gallery-image:nth-of-type(2n),.wp-block-gallery.columns-2 .blocks-gallery-item:nth-of-type(2n){margin-right:0}.blocks-gallery-grid.columns-3 .blocks-gallery-image:nth-of-type(3n),.blocks-gallery-grid.columns-3 .blocks-gallery-item:nth-of-type(3n),.wp-block-gallery.columns-3 .blocks-gallery-image:nth-of-type(3n),.wp-block-gallery.columns-3 .blocks-gallery-item:nth-of-type(3n){margin-right:0}.blocks-gallery-grid.columns-4 .blocks-gallery-image:nth-of-type(4n),.blocks-gallery-grid.columns-4 .blocks-gallery-item:nth-of-type(4n),.wp-block-gallery.columns-4 .blocks-gallery-image:nth-of-type(4n),.wp-block-gallery.columns-4 .blocks-gallery-item:nth-of-type(4n){margin-right:0}.blocks-gallery-grid.columns-5 .blocks-gallery-image:nth-of-type(5n),.blocks-gallery-grid.columns-5 .blocks-gallery-item:nth-of-type(5n),.wp-block-gallery.columns-5 .blocks-gallery-image:nth-of-type(5n),.wp-block-gallery.columns-5 .blocks-gallery-item:nth-of-type(5n){margin-right:0}.blocks-gallery-grid.columns-6 .blocks-gallery-image:nth-of-type(6n),.blocks-gallery-grid.columns-6 .blocks-gallery-item:nth-of-type(6n),.wp-block-gallery.columns-6 .blocks-gallery-image:nth-of-type(6n),.wp-block-gallery.columns-6 .blocks-gallery-item:nth-of-type(6n){margin-right:0}.blocks-gallery-grid.columns-7 .blocks-gallery-image:nth-of-type(7n),.blocks-gallery-grid.columns-7 .blocks-gallery-item:nth-of-type(7n),.wp-block-gallery.columns-7 .blocks-gallery-image:nth-of-type(7n),.wp-block-gallery.columns-7 .blocks-gallery-item:nth-of-type(7n){margin-right:0}.blocks-gallery-grid.columns-8 .blocks-gallery-image:nth-of-type(8n),.blocks-gallery-grid.columns-8 .blocks-gallery-item:nth-of-type(8n),.wp-block-gallery.columns-8 .blocks-gallery-image:nth-of-type(8n),.wp-block-gallery.columns-8 .blocks-gallery-item:nth-of-type(8n){margin-right:0}}.blocks-gallery-grid .blocks-gallery-image:last-child,.blocks-gallery-grid .blocks-gallery-item:last-child,.wp-block-gallery .blocks-gallery-image:last-child,.wp-block-gallery .blocks-gallery-item:last-child{margin-right:0}.blocks-gallery-grid.alignleft,.blocks-gallery-grid.alignright,.wp-block-gallery.alignleft,.wp-block-gallery.alignright{max-width:290px;width:100%}.blocks-gallery-grid.aligncenter .blocks-gallery-item figure,.wp-block-gallery.aligncenter .blocks-gallery-item figure{justify-content:center}.wp-block-group{box-sizing:border-box}h1.has-background,h2.has-background,h3.has-background,h4.has-background,h5.has-background,h6.has-background{padding:1.25em 2.375em}.wp-block-image{margin-bottom:1em}.wp-block-image img{max-width:100%}.wp-block-image.aligncenter{text-align:center}.wp-block-image.alignfull img,.wp-block-image.alignwide img{width:100%}.wp-block-image .aligncenter,.wp-block-image .alignleft,.wp-block-image .alignright,.wp-block-image.is-resized{display:table}.wp-block-image .aligncenter>figcaption,.wp-block-image .alignleft>figcaption,.wp-block-image .alignright>figcaption,.wp-block-image.is-resized>figcaption{display:table-caption;caption-side:bottom}.wp-block-image .alignleft{float:left;margin:.5em 1em .5em 0}.wp-block-image .alignright{float:right;margin:.5em 0 .5em 1em}.wp-block-image .aligncenter{margin-left:auto;margin-right:auto}.wp-block-image figcaption{margin-top:.5em;margin-bottom:1em}.is-style-circle-mask img,.is-style-rounded img{border-radius:9999px}@supports ((-webkit-mask-image:none) or (mask-image:none)) or (-webkit-mask-image:none){.is-style-circle-mask img{-webkit-mask-image:url('data:image/svg+xml;utf8,');mask-image:url('data:image/svg+xml;utf8,');mask-mode:alpha;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-position:center;mask-position:center;border-radius:0}}.wp-block-latest-comments__comment{line-height:1.1;list-style:none;margin-bottom:1em}.has-avatars .wp-block-latest-comments__comment{min-height:2.25em;list-style:none}.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-excerpt,.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-meta{margin-left:3.25em}.has-dates .wp-block-latest-comments__comment,.has-excerpts .wp-block-latest-comments__comment{line-height:1.5}.wp-block-latest-comments__comment-excerpt p{font-size:.875em;line-height:1.8;margin:.36em 0 1.4em}.wp-block-latest-comments__comment-date{display:block;font-size:.75em}.wp-block-latest-comments .avatar,.wp-block-latest-comments__comment-avatar{border-radius:1.5em;display:block;float:left;height:2.5em;margin-right:.75em;width:2.5em}.wp-block-latest-posts.alignleft{margin-right:2em}.wp-block-latest-posts.alignright{margin-left:2em}.wp-block-latest-posts.wp-block-latest-posts__list{list-style:none}.wp-block-latest-posts.wp-block-latest-posts__list li{clear:both}.wp-block-latest-posts.is-grid{display:flex;flex-wrap:wrap;padding:0}.wp-block-latest-posts.is-grid li{margin:0 1.25em 1.25em 0;width:100%}@media (min-width:600px){.wp-block-latest-posts.columns-2 li{width:calc(50% - .625em)}.wp-block-latest-posts.columns-2 li:nth-child(2n){margin-right:0}.wp-block-latest-posts.columns-3 li{width:calc(33.33333% - .83333em)}.wp-block-latest-posts.columns-3 li:nth-child(3n){margin-right:0}.wp-block-latest-posts.columns-4 li{width:calc(25% - .9375em)}.wp-block-latest-posts.columns-4 li:nth-child(4n){margin-right:0}.wp-block-latest-posts.columns-5 li{width:calc(20% - 1em)}.wp-block-latest-posts.columns-5 li:nth-child(5n){margin-right:0}.wp-block-latest-posts.columns-6 li{width:calc(16.66667% - 1.04167em)}.wp-block-latest-posts.columns-6 li:nth-child(6n){margin-right:0}}.wp-block-latest-posts__post-author,.wp-block-latest-posts__post-date{display:block;color:#555;font-size:.8125em}.wp-block-latest-posts__post-excerpt{margin-top:.5em;margin-bottom:1em}.wp-block-latest-posts__featured-image a{display:inline-block}.wp-block-latest-posts__featured-image img{height:auto;width:auto}.wp-block-latest-posts__featured-image.alignleft{margin-right:1em}.wp-block-latest-posts__featured-image.alignright{margin-left:1em}.wp-block-latest-posts__featured-image.aligncenter{margin-bottom:1em;text-align:center}.block-editor-image-alignment-control__row .components-base-control__field{display:flex;justify-content:space-between;align-items:center}.block-editor-image-alignment-control__row .components-base-control__field .components-base-control__label{margin-bottom:0}ol.has-background,ul.has-background{padding:1.25em 2.375em}.wp-block-media-text{ /*!rtl:begin:ignore*/direction:ltr; /*!rtl:end:ignore*/display:-ms-grid;display:grid;-ms-grid-columns:50% 1fr;grid-template-columns:50% 1fr;-ms-grid-rows:auto;grid-template-rows:auto}.wp-block-media-text.has-media-on-the-right{-ms-grid-columns:1fr 50%;grid-template-columns:1fr 50%}.wp-block-media-text.is-vertically-aligned-top .wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-top .wp-block-media-text__media{-ms-grid-row-align:start;align-self:start}.wp-block-media-text.is-vertically-aligned-center .wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-center .wp-block-media-text__media,.wp-block-media-text .wp-block-media-text__content,.wp-block-media-text .wp-block-media-text__media{-ms-grid-row-align:center;align-self:center}.wp-block-media-text.is-vertically-aligned-bottom .wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-bottom .wp-block-media-text__media{-ms-grid-row-align:end;align-self:end}.wp-block-media-text .wp-block-media-text__media{ /*!rtl:begin:ignore*/-ms-grid-column:1;grid-column:1;-ms-grid-row:1;grid-row:1; @@ -8,4 +8,4 @@ /*!rtl:begin:ignore*/-ms-grid-column:2;grid-column:2;-ms-grid-row:1;grid-row:1 /*!rtl:end:ignore*/}.wp-block-media-text.has-media-on-the-right .wp-block-media-text__content{ /*!rtl:begin:ignore*/-ms-grid-column:1;grid-column:1;-ms-grid-row:1;grid-row:1 - /*!rtl:end:ignore*/}.wp-block-media-text__media img,.wp-block-media-text__media video{max-width:unset;width:100%;vertical-align:middle}.wp-block-media-text.is-image-fill figure.wp-block-media-text__media{height:100%;min-height:250px;background-size:cover}.wp-block-media-text.is-image-fill figure.wp-block-media-text__media>img{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}@media (max-width:600px){.wp-block-media-text.is-stacked-on-mobile{-ms-grid-columns:100%!important;grid-template-columns:100%!important}.wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__media{-ms-grid-column:1;grid-column:1;-ms-grid-row:1;grid-row:1}.wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content{-ms-grid-column:1;grid-column:1;-ms-grid-row:2;grid-row:2}}.wp-block-navigation:not(.has-background) .wp-block-navigation__container .wp-block-navigation-link:not(.has-text-color){color:#1e1e1e}.wp-block-navigation:not(.has-background) .wp-block-navigation__container .wp-block-navigation__container{background-color:#fff}.items-justified-left>ul{justify-content:flex-start}.items-justified-center>ul{justify-content:center}.items-justified-right>ul{justify-content:flex-end}.wp-block-navigation-link{display:flex;align-items:center;position:relative;margin:0}.wp-block-navigation-link .wp-block-navigation__container:empty{display:none}.wp-block-navigation__container{list-style:none;margin:0;padding-left:0;display:flex;flex-wrap:wrap}.is-vertical .wp-block-navigation__container{display:block}.has-child>.wp-block-navigation-link__content{padding-right:.5em}.has-child .wp-block-navigation__container{border:1px solid rgba(0,0,0,.15);background-color:inherit;color:inherit;position:absolute;left:0;top:100%;width:fit-content;z-index:2;opacity:0;transition:opacity .1s linear;visibility:hidden}.has-child .wp-block-navigation__container>.wp-block-navigation-link>.wp-block-navigation-link__content{flex-grow:1}.has-child .wp-block-navigation__container>.wp-block-navigation-link>.wp-block-navigation-link__submenu-icon{padding-right:.5em}@media (min-width:782px){.has-child .wp-block-navigation__container{left:1.5em}.has-child .wp-block-navigation__container .wp-block-navigation__container{left:100%;top:-1px}.has-child .wp-block-navigation__container .wp-block-navigation__container:before{content:"";position:absolute;right:100%;height:100%;display:block;width:.5em;background:transparent}.has-child .wp-block-navigation__container .wp-block-navigation-link__submenu-icon svg{transform:rotate(0)}}.has-child:hover{cursor:pointer}.has-child:hover>.wp-block-navigation__container{visibility:visible;opacity:1;display:flex;flex-direction:column}.has-child:focus-within{cursor:pointer}.has-child:focus-within>.wp-block-navigation__container{visibility:visible;opacity:1;display:flex;flex-direction:column}.wp-block-navigation-link__content{color:inherit;text-decoration:none;padding:.5em 1em}.wp-block-navigation-link__content+.wp-block-navigation-link__content{padding-top:0}.has-text-color .wp-block-navigation-link__content{color:inherit}.wp-block-navigation-link__label{word-break:normal;overflow-wrap:break-word}.wp-block-navigation-link__submenu-icon{height:inherit;padding:.375em 1em .375em 0}.wp-block-navigation-link__submenu-icon svg{fill:currentColor}@media (min-width:782px){.wp-block-navigation-link__submenu-icon svg{transform:rotate(90deg)}}.is-small-text{font-size:.875em}.is-regular-text{font-size:1em}.is-large-text{font-size:2.25em}.is-larger-text{font-size:3em}.has-drop-cap:not(:focus):first-letter{float:left;font-size:8.4em;line-height:.68;font-weight:100;margin:.05em .1em 0 0;text-transform:uppercase;font-style:normal}p.has-background{padding:1.25em 2.375em}p.has-text-color a{color:inherit}.wp-block-post-author{display:flex;flex-wrap:wrap}.wp-block-post-author__byline{width:100%;margin-top:0;margin-bottom:0;font-size:.5em}.wp-block-post-author__avatar{margin-right:1em}.wp-block-post-author__bio{margin-bottom:.7em;font-size:.7em}.wp-block-post-author__content{flex-grow:1;flex-basis:0}.wp-block-post-author__name{font-weight:700;margin:0}.wp-block-pullquote{padding:3em 0;margin-left:0;margin-right:0;text-align:center}.wp-block-pullquote.alignleft,.wp-block-pullquote.alignright{max-width:290px}.wp-block-pullquote.alignleft p,.wp-block-pullquote.alignright p{font-size:1.25em}.wp-block-pullquote p{font-size:1.75em;line-height:1.6}.wp-block-pullquote cite,.wp-block-pullquote footer{position:relative}.wp-block-pullquote .has-text-color a{color:inherit}.wp-block-pullquote:not(.is-style-solid-color){background:none}.wp-block-pullquote.is-style-solid-color{border:none}.wp-block-pullquote.is-style-solid-color blockquote{margin-left:auto;margin-right:auto;text-align:left;max-width:60%}.wp-block-pullquote.is-style-solid-color blockquote p{margin-top:0;margin-bottom:0;font-size:2em}.wp-block-pullquote.is-style-solid-color blockquote cite{text-transform:none;font-style:normal}.wp-block-pullquote cite{color:inherit}.wp-block-quote.is-large,.wp-block-quote.is-style-large{margin:0 0 1em;padding:0 1em}.wp-block-quote.is-large p,.wp-block-quote.is-style-large p{font-size:1.5em;font-style:italic;line-height:1.6}.wp-block-quote.is-large cite,.wp-block-quote.is-large footer,.wp-block-quote.is-style-large cite,.wp-block-quote.is-style-large footer{font-size:1.125em;text-align:right}.wp-block-rss.alignleft{margin-right:2em}.wp-block-rss.alignright{margin-left:2em}.wp-block-rss.is-grid{display:flex;flex-wrap:wrap;padding:0;list-style:none}.wp-block-rss.is-grid li{margin:0 1em 1em 0;width:100%}@media (min-width:600px){.wp-block-rss.columns-2 li{width:calc(50% - 1em)}.wp-block-rss.columns-3 li{width:calc(33.33333% - 1em)}.wp-block-rss.columns-4 li{width:calc(25% - 1em)}.wp-block-rss.columns-5 li{width:calc(20% - 1em)}.wp-block-rss.columns-6 li{width:calc(16.66667% - 1em)}}.wp-block-rss__item-author,.wp-block-rss__item-publish-date{display:block;color:#555;font-size:.8125em}.wp-block-search .wp-block-search__inside-wrapper{display:flex;flex:auto;flex-wrap:nowrap;max-width:100%}.wp-block-search .wp-block-search__label{width:100%}.wp-block-search .wp-block-search__input{flex-grow:1;min-width:3em;border:1px solid #949494}.wp-block-search .wp-block-search__button{margin-left:.625em;word-break:normal}.wp-block-search .wp-block-search__button svg{min-width:1.5em;min-height:1.5em}.wp-block-search.wp-block-search__button-only .wp-block-search__button{margin-left:0}.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper{padding:4px;border:1px solid #949494}.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper .wp-block-search__input{border-radius:0;border:none;padding:0 0 0 .25em}.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper .wp-block-search__input:focus{outline:none}.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper .wp-block-search__button{padding:.125em .5em}.wp-block-separator.is-style-wide{border-bottom-width:1px}.wp-block-separator.is-style-dots{background:none!important;border:none;text-align:center;max-width:none;line-height:1;height:auto}.wp-block-separator.is-style-dots:before{content:"\00b7 \00b7 \00b7";color:currentColor;font-size:1.5em;letter-spacing:2em;padding-left:2em;font-family:serif}.wp-block-custom-logo .aligncenter{display:table}.wp-block-social-links{display:flex;flex-wrap:wrap;justify-content:flex-start;padding-left:0;padding-right:0;margin-left:0}.wp-block-social-links .wp-social-link a,.wp-block-social-links .wp-social-link a:hover{text-decoration:none;border-bottom:0;box-shadow:none}.wp-social-link{display:block;width:36px;height:36px;border-radius:36px;margin:0 8px 8px 0;transition:transform .1s ease}@media (prefers-reduced-motion:reduce){.wp-social-link{transition-duration:0s}}.wp-social-link a{padding:6px;display:block;line-height:0;transition:transform .1s ease}.wp-social-link a,.wp-social-link a:active,.wp-social-link a:hover,.wp-social-link a:visited,.wp-social-link svg{color:currentColor;fill:currentColor}.wp-social-link:hover{transform:scale(1.1)}.wp-block-social-links.aligncenter{justify-content:center;display:flex}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link{background-color:#f0f0f0;color:#444}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-amazon{background-color:#f90;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-bandcamp{background-color:#1ea0c3;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-behance{background-color:#0757fe;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-codepen{background-color:#1e1f26;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-deviantart{background-color:#02e49b;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-dribbble{background-color:#e94c89;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-dropbox{background-color:#4280ff;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-etsy{background-color:#f45800;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-facebook{background-color:#1778f2;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-fivehundredpx{background-color:#000;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-flickr{background-color:#0461dd;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-foursquare{background-color:#e65678;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-github{background-color:#24292d;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-goodreads{background-color:#eceadd;color:#382110}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-google{background-color:#ea4434;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-instagram{background-color:#f00075;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-lastfm{background-color:#e21b24;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-linkedin{background-color:#0d66c2;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-mastodon{background-color:#3288d4;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-medium{background-color:#02ab6c;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-meetup{background-color:#f6405f;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-pinterest{background-color:#e60122;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-pocket{background-color:#ef4155;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-reddit{background-color:#fe4500;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-skype{background-color:#0478d7;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-snapchat{background-color:#fefc00;color:#fff;stroke:#000}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-soundcloud{background-color:#ff5600;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-spotify{background-color:#1bd760;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-tumblr{background-color:#011835;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-twitch{background-color:#6440a4;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-twitter{background-color:#1da1f2;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-vimeo{background-color:#1eb7ea;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-vk{background-color:#4680c2;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-wordpress{background-color:#3499cd;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-yelp{background-color:#d32422;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-youtube{background-color:red;color:#fff}.wp-block-social-links.is-style-logos-only .wp-social-link{background:none;padding:4px}.wp-block-social-links.is-style-logos-only .wp-social-link svg{width:28px;height:28px}.wp-block-social-links.is-style-logos-only .wp-social-link-amazon{color:#f90}.wp-block-social-links.is-style-logos-only .wp-social-link-bandcamp{color:#1ea0c3}.wp-block-social-links.is-style-logos-only .wp-social-link-behance{color:#0757fe}.wp-block-social-links.is-style-logos-only .wp-social-link-codepen{color:#1e1f26}.wp-block-social-links.is-style-logos-only .wp-social-link-deviantart{color:#02e49b}.wp-block-social-links.is-style-logos-only .wp-social-link-dribbble{color:#e94c89}.wp-block-social-links.is-style-logos-only .wp-social-link-dropbox{color:#4280ff}.wp-block-social-links.is-style-logos-only .wp-social-link-etsy{color:#f45800}.wp-block-social-links.is-style-logos-only .wp-social-link-facebook{color:#1778f2}.wp-block-social-links.is-style-logos-only .wp-social-link-fivehundredpx{color:#000}.wp-block-social-links.is-style-logos-only .wp-social-link-flickr{color:#0461dd}.wp-block-social-links.is-style-logos-only .wp-social-link-foursquare{color:#e65678}.wp-block-social-links.is-style-logos-only .wp-social-link-github{color:#24292d}.wp-block-social-links.is-style-logos-only .wp-social-link-goodreads{color:#382110}.wp-block-social-links.is-style-logos-only .wp-social-link-google{color:#ea4434}.wp-block-social-links.is-style-logos-only .wp-social-link-instagram{color:#f00075}.wp-block-social-links.is-style-logos-only .wp-social-link-lastfm{color:#e21b24}.wp-block-social-links.is-style-logos-only .wp-social-link-linkedin{color:#0d66c2}.wp-block-social-links.is-style-logos-only .wp-social-link-mastodon{color:#3288d4}.wp-block-social-links.is-style-logos-only .wp-social-link-medium{color:#02ab6c}.wp-block-social-links.is-style-logos-only .wp-social-link-meetup{color:#f6405f}.wp-block-social-links.is-style-logos-only .wp-social-link-pinterest{color:#e60122}.wp-block-social-links.is-style-logos-only .wp-social-link-pocket{color:#ef4155}.wp-block-social-links.is-style-logos-only .wp-social-link-reddit{color:#fe4500}.wp-block-social-links.is-style-logos-only .wp-social-link-skype{color:#0478d7}.wp-block-social-links.is-style-logos-only .wp-social-link-snapchat{color:#fff;stroke:#000}.wp-block-social-links.is-style-logos-only .wp-social-link-soundcloud{color:#ff5600}.wp-block-social-links.is-style-logos-only .wp-social-link-spotify{color:#1bd760}.wp-block-social-links.is-style-logos-only .wp-social-link-tumblr{color:#011835}.wp-block-social-links.is-style-logos-only .wp-social-link-twitch{color:#6440a4}.wp-block-social-links.is-style-logos-only .wp-social-link-twitter{color:#1da1f2}.wp-block-social-links.is-style-logos-only .wp-social-link-vimeo{color:#1eb7ea}.wp-block-social-links.is-style-logos-only .wp-social-link-vk{color:#4680c2}.wp-block-social-links.is-style-logos-only .wp-social-link-wordpress{color:#3499cd}.wp-block-social-links.is-style-logos-only .wp-social-link-yelp{background-color:#d32422;color:#fff}.wp-block-social-links.is-style-logos-only .wp-social-link-youtube{color:red}.wp-block-social-links.is-style-pill-shape .wp-social-link{width:auto}.wp-block-social-links.is-style-pill-shape .wp-social-link a{padding-left:16px;padding-right:16px}.wp-block-spacer{clear:both}p.wp-block-subhead{font-size:1.1em;font-style:italic;opacity:.75}.wp-block-table{overflow-x:auto}.wp-block-table table{width:100%}.wp-block-table .has-fixed-layout{table-layout:fixed;width:100%}.wp-block-table .has-fixed-layout td,.wp-block-table .has-fixed-layout th{word-break:break-word}.wp-block-table.aligncenter,.wp-block-table.alignleft,.wp-block-table.alignright{display:table;width:auto}.wp-block-table.aligncenter td,.wp-block-table.aligncenter th,.wp-block-table.alignleft td,.wp-block-table.alignleft th,.wp-block-table.alignright td,.wp-block-table.alignright th{word-break:break-word}.wp-block-table .has-subtle-light-gray-background-color{background-color:#f3f4f5}.wp-block-table .has-subtle-pale-green-background-color{background-color:#e9fbe5}.wp-block-table .has-subtle-pale-blue-background-color{background-color:#e7f5fe}.wp-block-table .has-subtle-pale-pink-background-color{background-color:#fcf0ef}.wp-block-table.is-style-stripes{border-spacing:0;border-collapse:inherit;background-color:transparent;border-bottom:1px solid #f0f0f0}.wp-block-table.is-style-stripes tbody tr:nth-child(odd){background-color:#f0f0f0}.wp-block-table.is-style-stripes.has-subtle-light-gray-background-color tbody tr:nth-child(odd){background-color:#f3f4f5}.wp-block-table.is-style-stripes.has-subtle-pale-green-background-color tbody tr:nth-child(odd){background-color:#e9fbe5}.wp-block-table.is-style-stripes.has-subtle-pale-blue-background-color tbody tr:nth-child(odd){background-color:#e7f5fe}.wp-block-table.is-style-stripes.has-subtle-pale-pink-background-color tbody tr:nth-child(odd){background-color:#fcf0ef}.wp-block-table.is-style-stripes td,.wp-block-table.is-style-stripes th{border-color:transparent}.wp-block-text-columns,.wp-block-text-columns.aligncenter{display:flex}.wp-block-text-columns .wp-block-column{margin:0 1em;padding:0}.wp-block-text-columns .wp-block-column:first-child{margin-left:0}.wp-block-text-columns .wp-block-column:last-child{margin-right:0}.wp-block-text-columns.columns-2 .wp-block-column{width:50%}.wp-block-text-columns.columns-3 .wp-block-column{width:33.33333%}.wp-block-text-columns.columns-4 .wp-block-column{width:25%}.wp-block-video{margin-left:0;margin-right:0}.wp-block-video video{max-width:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.wp-block-video [poster]{object-fit:cover}}.wp-block-video.aligncenter{text-align:center}.wp-block-video figcaption{margin-top:.5em;margin-bottom:1em}:root .has-pale-pink-background-color{background-color:#f78da7}:root .has-vivid-red-background-color{background-color:#cf2e2e}:root .has-luminous-vivid-orange-background-color{background-color:#ff6900}:root .has-luminous-vivid-amber-background-color{background-color:#fcb900}:root .has-light-green-cyan-background-color{background-color:#7bdcb5}:root .has-vivid-green-cyan-background-color{background-color:#00d084}:root .has-pale-cyan-blue-background-color{background-color:#8ed1fc}:root .has-vivid-cyan-blue-background-color{background-color:#0693e3}:root .has-vivid-purple-background-color{background-color:#9b51e0}:root .has-white-background-color{background-color:#fff}:root .has-very-light-gray-background-color{background-color:#eee}:root .has-cyan-bluish-gray-background-color{background-color:#abb8c3}:root .has-very-dark-gray-background-color{background-color:#313131}:root .has-black-background-color{background-color:#000}:root .has-pale-pink-color{color:#f78da7}:root .has-vivid-red-color{color:#cf2e2e}:root .has-luminous-vivid-orange-color{color:#ff6900}:root .has-luminous-vivid-amber-color{color:#fcb900}:root .has-light-green-cyan-color{color:#7bdcb5}:root .has-vivid-green-cyan-color{color:#00d084}:root .has-pale-cyan-blue-color{color:#8ed1fc}:root .has-vivid-cyan-blue-color{color:#0693e3}:root .has-vivid-purple-color{color:#9b51e0}:root .has-white-color{color:#fff}:root .has-very-light-gray-color{color:#eee}:root .has-cyan-bluish-gray-color{color:#abb8c3}:root .has-very-dark-gray-color{color:#313131}:root .has-black-color{color:#000}:root .has-vivid-cyan-blue-to-vivid-purple-gradient-background{background:linear-gradient(135deg,#0693e3,#9b51e0)}:root .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(135deg,#00d084,#0693e3)}:root .has-light-green-cyan-to-vivid-green-cyan-gradient-background{background:linear-gradient(135deg,#7adcb4,#00d082)}:root .has-luminous-vivid-amber-to-luminous-vivid-orange-gradient-background{background:linear-gradient(135deg,#fcb900,#ff6900)}:root .has-luminous-vivid-orange-to-vivid-red-gradient-background{background:linear-gradient(135deg,#ff6900,#cf2e2e)}:root .has-very-light-gray-to-cyan-bluish-gray-gradient-background{background:linear-gradient(135deg,#eee,#a9b8c3)}:root .has-cool-to-warm-spectrum-gradient-background{background:linear-gradient(135deg,#4aeadc,#9778d1 20%,#cf2aba 40%,#ee2c82 60%,#fb6962 80%,#fef84c)}:root .has-blush-light-purple-gradient-background{background:linear-gradient(135deg,#ffceec,#9896f0)}:root .has-blush-bordeaux-gradient-background{background:linear-gradient(135deg,#fecda5,#fe2d2d 50%,#6b003e)}:root .has-purple-crush-gradient-background{background:linear-gradient(135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .has-luminous-dusk-gradient-background{background:linear-gradient(135deg,#ffcb70,#c751c0 50%,#4158d0)}:root .has-hazy-dawn-gradient-background{background:linear-gradient(135deg,#faaca8,#dad0ec)}:root .has-pale-ocean-gradient-background{background:linear-gradient(135deg,#fff5cb,#b6e3d4 50%,#33a7b5)}:root .has-electric-grass-gradient-background{background:linear-gradient(135deg,#caf880,#71ce7e)}:root .has-subdued-olive-gradient-background{background:linear-gradient(135deg,#fafae1,#67a671)}:root .has-atomic-cream-gradient-background{background:linear-gradient(135deg,#fdd79a,#004a59)}:root .has-nightshade-gradient-background{background:linear-gradient(135deg,#330968,#31cdcf)}:root .has-midnight-gradient-background{background:linear-gradient(135deg,#020381,#2874fc)}:root .has-link-color a{color:#00e;color:var(--wp--style--color--link,#00e)}.has-small-font-size{font-size:.8125em}.has-normal-font-size,.has-regular-font-size{font-size:1em}.has-medium-font-size{font-size:1.25em}.has-large-font-size{font-size:2.25em}.has-huge-font-size,.has-larger-font-size{font-size:2.625em}.has-text-align-center{text-align:center}.has-text-align-left{text-align:left}.has-text-align-right{text-align:right}#end-resizable-editor-section{display:none}.aligncenter{clear:both} \ No newline at end of file + /*!rtl:end:ignore*/}.wp-block-media-text__media img,.wp-block-media-text__media video{max-width:unset;width:100%;vertical-align:middle}.wp-block-media-text.is-image-fill figure.wp-block-media-text__media{height:100%;min-height:250px;background-size:cover}.wp-block-media-text.is-image-fill figure.wp-block-media-text__media>img{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}@media (max-width:600px){.wp-block-media-text.is-stacked-on-mobile{-ms-grid-columns:100%!important;grid-template-columns:100%!important}.wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__media{-ms-grid-column:1;grid-column:1;-ms-grid-row:1;grid-row:1}.wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content{-ms-grid-column:1;grid-column:1;-ms-grid-row:2;grid-row:2}}.wp-block-navigation:not(.has-background) .wp-block-navigation__container .wp-block-navigation-link:not(.has-text-color){color:#1e1e1e}.wp-block-navigation:not(.has-background) .wp-block-navigation__container .wp-block-navigation__container{background-color:#fff}.items-justified-left>ul{justify-content:flex-start}.items-justified-center>ul{justify-content:center}.items-justified-right>ul{justify-content:flex-end}.wp-block-navigation-link{display:flex;align-items:center;position:relative;margin:0}.wp-block-navigation-link .wp-block-navigation__container:empty{display:none}.wp-block-navigation__container{list-style:none;margin:0;padding-left:0;display:flex;flex-wrap:wrap}.is-vertical .wp-block-navigation__container{display:block}.has-child>.wp-block-navigation-link__content{padding-right:.5em}.has-child .wp-block-navigation__container{border:1px solid rgba(0,0,0,.15);background-color:inherit;color:inherit;position:absolute;left:0;top:100%;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;z-index:2;opacity:0;transition:opacity .1s linear;visibility:hidden}.has-child .wp-block-navigation__container>.wp-block-navigation-link>.wp-block-navigation-link__content{flex-grow:1}.has-child .wp-block-navigation__container>.wp-block-navigation-link>.wp-block-navigation-link__submenu-icon{padding-right:.5em}@media (min-width:782px){.has-child .wp-block-navigation__container{left:1.5em}.has-child .wp-block-navigation__container .wp-block-navigation__container{left:100%;top:-1px}.has-child .wp-block-navigation__container .wp-block-navigation__container:before{content:"";position:absolute;right:100%;height:100%;display:block;width:.5em;background:transparent}.has-child .wp-block-navigation__container .wp-block-navigation-link__submenu-icon svg{transform:rotate(0)}}.has-child:hover{cursor:pointer}.has-child:hover>.wp-block-navigation__container{visibility:visible;opacity:1;display:flex;flex-direction:column}.has-child:focus-within{cursor:pointer}.has-child:focus-within>.wp-block-navigation__container{visibility:visible;opacity:1;display:flex;flex-direction:column}.wp-block-navigation-link__content{color:inherit;text-decoration:none;padding:.5em 1em}.wp-block-navigation-link__content+.wp-block-navigation-link__content{padding-top:0}.has-text-color .wp-block-navigation-link__content{color:inherit}.wp-block-navigation-link__label{word-break:normal;overflow-wrap:break-word}.wp-block-navigation-link__submenu-icon{height:inherit;padding:.375em 1em .375em 0}.wp-block-navigation-link__submenu-icon svg{fill:currentColor}@media (min-width:782px){.wp-block-navigation-link__submenu-icon svg{transform:rotate(90deg)}}.is-small-text{font-size:.875em}.is-regular-text{font-size:1em}.is-large-text{font-size:2.25em}.is-larger-text{font-size:3em}.has-drop-cap:not(:focus):first-letter{float:left;font-size:8.4em;line-height:.68;font-weight:100;margin:.05em .1em 0 0;text-transform:uppercase;font-style:normal}p.has-background{padding:1.25em 2.375em}p.has-text-color a{color:inherit}.wp-block-post-author{display:flex;flex-wrap:wrap}.wp-block-post-author__byline{width:100%;margin-top:0;margin-bottom:0;font-size:.5em}.wp-block-post-author__avatar{margin-right:1em}.wp-block-post-author__bio{margin-bottom:.7em;font-size:.7em}.wp-block-post-author__content{flex-grow:1;flex-basis:0}.wp-block-post-author__name{font-weight:700;margin:0}.wp-block-pullquote{padding:3em 0;margin-left:0;margin-right:0;text-align:center}.wp-block-pullquote.alignleft,.wp-block-pullquote.alignright{max-width:290px}.wp-block-pullquote.alignleft p,.wp-block-pullquote.alignright p{font-size:1.25em}.wp-block-pullquote p{font-size:1.75em;line-height:1.6}.wp-block-pullquote cite,.wp-block-pullquote footer{position:relative}.wp-block-pullquote .has-text-color a{color:inherit}.wp-block-pullquote:not(.is-style-solid-color){background:none}.wp-block-pullquote.is-style-solid-color{border:none}.wp-block-pullquote.is-style-solid-color blockquote{margin-left:auto;margin-right:auto;text-align:left;max-width:60%}.wp-block-pullquote.is-style-solid-color blockquote p{margin-top:0;margin-bottom:0;font-size:2em}.wp-block-pullquote.is-style-solid-color blockquote cite{text-transform:none;font-style:normal}.wp-block-pullquote cite{color:inherit}.wp-block-quote.is-large,.wp-block-quote.is-style-large{margin:0 0 1em;padding:0 1em}.wp-block-quote.is-large p,.wp-block-quote.is-style-large p{font-size:1.5em;font-style:italic;line-height:1.6}.wp-block-quote.is-large cite,.wp-block-quote.is-large footer,.wp-block-quote.is-style-large cite,.wp-block-quote.is-style-large footer{font-size:1.125em;text-align:right}.wp-block-rss.alignleft{margin-right:2em}.wp-block-rss.alignright{margin-left:2em}.wp-block-rss.is-grid{display:flex;flex-wrap:wrap;padding:0;list-style:none}.wp-block-rss.is-grid li{margin:0 1em 1em 0;width:100%}@media (min-width:600px){.wp-block-rss.columns-2 li{width:calc(50% - 1em)}.wp-block-rss.columns-3 li{width:calc(33.33333% - 1em)}.wp-block-rss.columns-4 li{width:calc(25% - 1em)}.wp-block-rss.columns-5 li{width:calc(20% - 1em)}.wp-block-rss.columns-6 li{width:calc(16.66667% - 1em)}}.wp-block-rss__item-author,.wp-block-rss__item-publish-date{display:block;color:#555;font-size:.8125em}.wp-block-search .wp-block-search__inside-wrapper{display:flex;flex:auto;flex-wrap:nowrap;max-width:100%}.wp-block-search .wp-block-search__label{width:100%}.wp-block-search .wp-block-search__input{flex-grow:1;min-width:3em;border:1px solid #949494}.wp-block-search .wp-block-search__button{margin-left:.625em;word-break:normal}.wp-block-search .wp-block-search__button svg{min-width:1.5em;min-height:1.5em}.wp-block-search.wp-block-search__button-only .wp-block-search__button{margin-left:0}.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper{padding:4px;border:1px solid #949494}.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper .wp-block-search__input{border-radius:0;border:none;padding:0 0 0 .25em}.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper .wp-block-search__input:focus{outline:none}.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper .wp-block-search__button{padding:.125em .5em}.wp-block-separator.is-style-wide{border-bottom-width:1px}.wp-block-separator.is-style-dots{background:none!important;border:none;text-align:center;max-width:none;line-height:1;height:auto}.wp-block-separator.is-style-dots:before{content:"\00b7 \00b7 \00b7";color:currentColor;font-size:1.5em;letter-spacing:2em;padding-left:2em;font-family:serif}.wp-block-custom-logo .aligncenter{display:table}.wp-block-social-links{display:flex;flex-wrap:wrap;justify-content:flex-start;padding-left:0;padding-right:0;text-indent:0;margin-left:0}.wp-block-social-links .wp-social-link a,.wp-block-social-links .wp-social-link a:hover{text-decoration:none;border-bottom:0;box-shadow:none}.wp-social-link{display:block;width:36px;height:36px;border-radius:9999px;margin:0 8px 8px 0;transition:transform .1s ease}@media (prefers-reduced-motion:reduce){.wp-social-link{transition-duration:0s}}.wp-social-link a{padding:6px;display:block;line-height:0;transition:transform .1s ease}.wp-social-link a,.wp-social-link a:active,.wp-social-link a:hover,.wp-social-link a:visited,.wp-social-link svg{color:currentColor;fill:currentColor}.wp-social-link:hover{transform:scale(1.1)}.wp-block-social-links.aligncenter{justify-content:center;display:flex}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link{background-color:#f0f0f0;color:#444}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-amazon{background-color:#f90;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-bandcamp{background-color:#1ea0c3;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-behance{background-color:#0757fe;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-codepen{background-color:#1e1f26;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-deviantart{background-color:#02e49b;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-dribbble{background-color:#e94c89;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-dropbox{background-color:#4280ff;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-etsy{background-color:#f45800;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-facebook{background-color:#1778f2;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-fivehundredpx{background-color:#000;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-flickr{background-color:#0461dd;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-foursquare{background-color:#e65678;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-github{background-color:#24292d;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-goodreads{background-color:#eceadd;color:#382110}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-google{background-color:#ea4434;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-instagram{background-color:#f00075;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-lastfm{background-color:#e21b24;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-linkedin{background-color:#0d66c2;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-mastodon{background-color:#3288d4;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-medium{background-color:#02ab6c;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-meetup{background-color:#f6405f;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-pinterest{background-color:#e60122;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-pocket{background-color:#ef4155;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-reddit{background-color:#fe4500;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-skype{background-color:#0478d7;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-snapchat{background-color:#fefc00;color:#fff;stroke:#000}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-soundcloud{background-color:#ff5600;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-spotify{background-color:#1bd760;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-tumblr{background-color:#011835;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-twitch{background-color:#6440a4;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-twitter{background-color:#1da1f2;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-vimeo{background-color:#1eb7ea;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-vk{background-color:#4680c2;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-wordpress{background-color:#3499cd;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-yelp{background-color:#d32422;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-youtube{background-color:red;color:#fff}.wp-block-social-links.is-style-logos-only .wp-social-link{background:none;padding:4px}.wp-block-social-links.is-style-logos-only .wp-social-link svg{width:28px;height:28px}.wp-block-social-links.is-style-logos-only .wp-social-link-amazon{color:#f90}.wp-block-social-links.is-style-logos-only .wp-social-link-bandcamp{color:#1ea0c3}.wp-block-social-links.is-style-logos-only .wp-social-link-behance{color:#0757fe}.wp-block-social-links.is-style-logos-only .wp-social-link-codepen{color:#1e1f26}.wp-block-social-links.is-style-logos-only .wp-social-link-deviantart{color:#02e49b}.wp-block-social-links.is-style-logos-only .wp-social-link-dribbble{color:#e94c89}.wp-block-social-links.is-style-logos-only .wp-social-link-dropbox{color:#4280ff}.wp-block-social-links.is-style-logos-only .wp-social-link-etsy{color:#f45800}.wp-block-social-links.is-style-logos-only .wp-social-link-facebook{color:#1778f2}.wp-block-social-links.is-style-logos-only .wp-social-link-fivehundredpx{color:#000}.wp-block-social-links.is-style-logos-only .wp-social-link-flickr{color:#0461dd}.wp-block-social-links.is-style-logos-only .wp-social-link-foursquare{color:#e65678}.wp-block-social-links.is-style-logos-only .wp-social-link-github{color:#24292d}.wp-block-social-links.is-style-logos-only .wp-social-link-goodreads{color:#382110}.wp-block-social-links.is-style-logos-only .wp-social-link-google{color:#ea4434}.wp-block-social-links.is-style-logos-only .wp-social-link-instagram{color:#f00075}.wp-block-social-links.is-style-logos-only .wp-social-link-lastfm{color:#e21b24}.wp-block-social-links.is-style-logos-only .wp-social-link-linkedin{color:#0d66c2}.wp-block-social-links.is-style-logos-only .wp-social-link-mastodon{color:#3288d4}.wp-block-social-links.is-style-logos-only .wp-social-link-medium{color:#02ab6c}.wp-block-social-links.is-style-logos-only .wp-social-link-meetup{color:#f6405f}.wp-block-social-links.is-style-logos-only .wp-social-link-pinterest{color:#e60122}.wp-block-social-links.is-style-logos-only .wp-social-link-pocket{color:#ef4155}.wp-block-social-links.is-style-logos-only .wp-social-link-reddit{color:#fe4500}.wp-block-social-links.is-style-logos-only .wp-social-link-skype{color:#0478d7}.wp-block-social-links.is-style-logos-only .wp-social-link-snapchat{color:#fff;stroke:#000}.wp-block-social-links.is-style-logos-only .wp-social-link-soundcloud{color:#ff5600}.wp-block-social-links.is-style-logos-only .wp-social-link-spotify{color:#1bd760}.wp-block-social-links.is-style-logos-only .wp-social-link-tumblr{color:#011835}.wp-block-social-links.is-style-logos-only .wp-social-link-twitch{color:#6440a4}.wp-block-social-links.is-style-logos-only .wp-social-link-twitter{color:#1da1f2}.wp-block-social-links.is-style-logos-only .wp-social-link-vimeo{color:#1eb7ea}.wp-block-social-links.is-style-logos-only .wp-social-link-vk{color:#4680c2}.wp-block-social-links.is-style-logos-only .wp-social-link-wordpress{color:#3499cd}.wp-block-social-links.is-style-logos-only .wp-social-link-yelp{background-color:#d32422;color:#fff}.wp-block-social-links.is-style-logos-only .wp-social-link-youtube{color:red}.wp-block-social-links.is-style-pill-shape .wp-social-link{width:auto}.wp-block-social-links.is-style-pill-shape .wp-social-link a{padding-left:16px;padding-right:16px}.wp-block-spacer{clear:both}p.wp-block-subhead{font-size:1.1em;font-style:italic;opacity:.75}.wp-block-table{overflow-x:auto}.wp-block-table table{width:100%}.wp-block-table .has-fixed-layout{table-layout:fixed;width:100%}.wp-block-table .has-fixed-layout td,.wp-block-table .has-fixed-layout th{word-break:break-word}.wp-block-table.aligncenter,.wp-block-table.alignleft,.wp-block-table.alignright{display:table;width:auto}.wp-block-table.aligncenter td,.wp-block-table.aligncenter th,.wp-block-table.alignleft td,.wp-block-table.alignleft th,.wp-block-table.alignright td,.wp-block-table.alignright th{word-break:break-word}.wp-block-table .has-subtle-light-gray-background-color{background-color:#f3f4f5}.wp-block-table .has-subtle-pale-green-background-color{background-color:#e9fbe5}.wp-block-table .has-subtle-pale-blue-background-color{background-color:#e7f5fe}.wp-block-table .has-subtle-pale-pink-background-color{background-color:#fcf0ef}.wp-block-table.is-style-stripes{border-spacing:0;border-collapse:inherit;background-color:transparent;border-bottom:1px solid #f0f0f0}.wp-block-table.is-style-stripes tbody tr:nth-child(odd){background-color:#f0f0f0}.wp-block-table.is-style-stripes.has-subtle-light-gray-background-color tbody tr:nth-child(odd){background-color:#f3f4f5}.wp-block-table.is-style-stripes.has-subtle-pale-green-background-color tbody tr:nth-child(odd){background-color:#e9fbe5}.wp-block-table.is-style-stripes.has-subtle-pale-blue-background-color tbody tr:nth-child(odd){background-color:#e7f5fe}.wp-block-table.is-style-stripes.has-subtle-pale-pink-background-color tbody tr:nth-child(odd){background-color:#fcf0ef}.wp-block-table.is-style-stripes td,.wp-block-table.is-style-stripes th{border-color:transparent}.wp-block-text-columns,.wp-block-text-columns.aligncenter{display:flex}.wp-block-text-columns .wp-block-column{margin:0 1em;padding:0}.wp-block-text-columns .wp-block-column:first-child{margin-left:0}.wp-block-text-columns .wp-block-column:last-child{margin-right:0}.wp-block-text-columns.columns-2 .wp-block-column{width:50%}.wp-block-text-columns.columns-3 .wp-block-column{width:33.33333%}.wp-block-text-columns.columns-4 .wp-block-column{width:25%}.wp-block-video{margin-left:0;margin-right:0}.wp-block-video video{max-width:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.wp-block-video [poster]{object-fit:cover}}.wp-block-video.aligncenter{text-align:center}.wp-block-video figcaption{margin-top:.5em;margin-bottom:1em}.wp-block-post-featured-image a{display:inline-block}:root .has-pale-pink-background-color{background-color:#f78da7}:root .has-vivid-red-background-color{background-color:#cf2e2e}:root .has-luminous-vivid-orange-background-color{background-color:#ff6900}:root .has-luminous-vivid-amber-background-color{background-color:#fcb900}:root .has-light-green-cyan-background-color{background-color:#7bdcb5}:root .has-vivid-green-cyan-background-color{background-color:#00d084}:root .has-pale-cyan-blue-background-color{background-color:#8ed1fc}:root .has-vivid-cyan-blue-background-color{background-color:#0693e3}:root .has-vivid-purple-background-color{background-color:#9b51e0}:root .has-white-background-color{background-color:#fff}:root .has-very-light-gray-background-color{background-color:#eee}:root .has-cyan-bluish-gray-background-color{background-color:#abb8c3}:root .has-very-dark-gray-background-color{background-color:#313131}:root .has-black-background-color{background-color:#000}:root .has-pale-pink-color{color:#f78da7}:root .has-vivid-red-color{color:#cf2e2e}:root .has-luminous-vivid-orange-color{color:#ff6900}:root .has-luminous-vivid-amber-color{color:#fcb900}:root .has-light-green-cyan-color{color:#7bdcb5}:root .has-vivid-green-cyan-color{color:#00d084}:root .has-pale-cyan-blue-color{color:#8ed1fc}:root .has-vivid-cyan-blue-color{color:#0693e3}:root .has-vivid-purple-color{color:#9b51e0}:root .has-white-color{color:#fff}:root .has-very-light-gray-color{color:#eee}:root .has-cyan-bluish-gray-color{color:#abb8c3}:root .has-very-dark-gray-color{color:#313131}:root .has-black-color{color:#000}:root .has-vivid-cyan-blue-to-vivid-purple-gradient-background{background:linear-gradient(135deg,#0693e3,#9b51e0)}:root .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(135deg,#00d084,#0693e3)}:root .has-light-green-cyan-to-vivid-green-cyan-gradient-background{background:linear-gradient(135deg,#7adcb4,#00d082)}:root .has-luminous-vivid-amber-to-luminous-vivid-orange-gradient-background{background:linear-gradient(135deg,#fcb900,#ff6900)}:root .has-luminous-vivid-orange-to-vivid-red-gradient-background{background:linear-gradient(135deg,#ff6900,#cf2e2e)}:root .has-very-light-gray-to-cyan-bluish-gray-gradient-background{background:linear-gradient(135deg,#eee,#a9b8c3)}:root .has-cool-to-warm-spectrum-gradient-background{background:linear-gradient(135deg,#4aeadc,#9778d1 20%,#cf2aba 40%,#ee2c82 60%,#fb6962 80%,#fef84c)}:root .has-blush-light-purple-gradient-background{background:linear-gradient(135deg,#ffceec,#9896f0)}:root .has-blush-bordeaux-gradient-background{background:linear-gradient(135deg,#fecda5,#fe2d2d 50%,#6b003e)}:root .has-purple-crush-gradient-background{background:linear-gradient(135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .has-luminous-dusk-gradient-background{background:linear-gradient(135deg,#ffcb70,#c751c0 50%,#4158d0)}:root .has-hazy-dawn-gradient-background{background:linear-gradient(135deg,#faaca8,#dad0ec)}:root .has-pale-ocean-gradient-background{background:linear-gradient(135deg,#fff5cb,#b6e3d4 50%,#33a7b5)}:root .has-electric-grass-gradient-background{background:linear-gradient(135deg,#caf880,#71ce7e)}:root .has-subdued-olive-gradient-background{background:linear-gradient(135deg,#fafae1,#67a671)}:root .has-atomic-cream-gradient-background{background:linear-gradient(135deg,#fdd79a,#004a59)}:root .has-nightshade-gradient-background{background:linear-gradient(135deg,#330968,#31cdcf)}:root .has-midnight-gradient-background{background:linear-gradient(135deg,#020381,#2874fc)}:root .has-link-color a{color:#00e;color:var(--wp--style--color--link,#00e)}.has-small-font-size{font-size:.8125em}.has-normal-font-size,.has-regular-font-size{font-size:1em}.has-medium-font-size{font-size:1.25em}.has-large-font-size{font-size:2.25em}.has-huge-font-size,.has-larger-font-size{font-size:2.625em}.has-text-align-center{text-align:center}.has-text-align-left{text-align:left}.has-text-align-right{text-align:right}#end-resizable-editor-section{display:none}.aligncenter{clear:both} \ No newline at end of file diff --git a/wp-includes/css/dist/components/style-rtl.css b/wp-includes/css/dist/components/style-rtl.css index 05391d32d2..597ce402d2 100644 --- a/wp-includes/css/dist/components/style-rtl.css +++ b/wp-includes/css/dist/components/style-rtl.css @@ -125,20 +125,6 @@ box-shadow: 0 0 0 2px #007cba; box-shadow: 0 0 0 2px var(--wp-admin-theme-color); } -.components-base-control { - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; - font-size: 13px; } - .components-base-control .components-base-control__field { - margin-bottom: 8px; } - .components-panel__row .components-base-control .components-base-control__field { - margin-bottom: inherit; } - .components-base-control .components-base-control__label { - display: inline-block; - margin-bottom: 8px; } - .components-base-control .components-base-control__help { - margin-top: -8px; - font-style: italic; } - .components-button-group { display: inline-block; } .components-button-group .components-button { @@ -361,6 +347,7 @@ box-shadow: inset 0 0 0 1px #fff, 0 0 0 1.5px var(--wp-admin-theme-color); outline: 2px solid transparent; } .components-button.is-pressed:hover:not(:disabled) { + color: #fff; background: #1e1e1e; } .components-button svg { fill: currentColor; @@ -401,6 +388,7 @@ width: 24px; height: 24px; -webkit-appearance: none; + -moz-appearance: none; appearance: none; transition: 0.1s border-color ease-in-out; } @media (prefers-reduced-motion: reduce) { @@ -621,6 +609,40 @@ svg.components-checkbox-control__checked { .components-circular-option-picker__dropdown-link-action .components-button { line-height: 22px; } +.components-color-edit__color-option-main-area { + display: flex; + align-items: center; } + .components-color-edit__color-option-main-area .components-circular-option-picker__option-wrapper { + margin: 8px; } + +.components-color-edit__color-option.is-hover { + background: #e0e0e0; } + +.components-color-edit__cancel-button { + float: left; } + +.components-color-edit__color-option-color-name { + width: 100%; } + +.components-color-edit__label-and-insert-container { + display: flex; + align-items: center; + justify-content: space-between; } + +.components-color-edit__insert-button { + margin-top: -8px; } + +.components-color-edit__hidden-control { + position: relative; + right: -9999px; } + +.components-color-edit__color-option-color-name-input .components-base-control__field { + margin-bottom: 0; + margin-left: 8px; } + +.components-color-edit__slug-input { + margin-right: 8px; } + .component-color-indicator { width: 25px; height: 16px; @@ -903,6 +925,12 @@ input.components-combobox-control__input[type="text"] { box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); outline: 2px solid transparent; } +.components-combobox-control__reset.components-button { + display: flex; + height: 24px; + min-width: 24px; + padding: 0; } + .components-custom-gradient-picker__gradient-bar:not(.has-gradient) { opacity: 0.4; } @@ -1961,7 +1989,8 @@ input.components-combobox-control__input[type="text"] { .components-datetime__timezone { line-height: 30px; margin-right: 4px; - text-decoration: underline dotted; } + -webkit-text-decoration: underline dotted; + text-decoration: underline dotted; } .components-datetime__time-legend { font-weight: 600; @@ -2165,13 +2194,6 @@ body.is-dragging-components-draggable { .is-alternate .components-dropdown-menu__menu .components-menu-group + .components-menu-group { border-color: #1e1e1e; } -.components-external-link__icon { - width: 1.4em; - height: 1.4em; - margin: -0.2em 0.1em 0; - vertical-align: middle; - fill: currentColor; } - .components-font-size-picker__controls { max-width: 248px; display: flex; @@ -2391,7 +2413,9 @@ body.is-dragging-components-draggable { margin-bottom: 4px; } .components-form-token-field__help { - font-style: italic; } + font-size: 12px; + font-style: normal; + color: #757575; } .components-form-token-field__token { font-size: 13px; @@ -3315,7 +3339,8 @@ body.is-dragging-components-draggable { .components-resizable-box__handle { display: none; width: 23px; - height: 23px; } + height: 23px; + z-index: 2; } .components-resizable-box__container.has-show-handle .components-resizable-box__handle { display: block; } @@ -3355,9 +3380,6 @@ body.is-dragging-components-draggable { .is-dark-theme .components-resizable-box__handle::after { border-color: #ddd; } -.components-resizable-box__handle { - z-index: 2; } - .components-resizable-box__side-handle { z-index: 2; } @@ -3507,6 +3529,8 @@ body.lockscroll { cursor: pointer; } @media (min-width: 600px) { .components-snackbar { + width: -webkit-fit-content; + width: -moz-fit-content; width: fit-content; } } .components-snackbar:focus { box-shadow: 0 0 0 1px #fff, 0 0 0 3px #007cba; @@ -3789,47 +3813,6 @@ body.lockscroll { .components-text-control__input[type="number"]:-ms-input-placeholder { color: rgba(255, 255, 255, 0.65); } -.components-textarea-control__input { - width: 100%; - 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 0.1s linear; - border-radius: 2px; - border: 1px solid #757575; - /* Fonts smaller than 16px causes mobile safari to zoom. */ - font-size: 16px; - /* Override core line-height. To be reviewed. */ - line-height: normal; } - @media (prefers-reduced-motion: reduce) { - .components-textarea-control__input { - transition-duration: 0s; } } - @media (min-width: 600px) { - .components-textarea-control__input { - font-size: 13px; - /* Override core line-height. To be reviewed. */ - line-height: normal; } } - .components-textarea-control__input:focus { - border-color: #007cba; - border-color: var(--wp-admin-theme-color); - box-shadow: 0 0 0 0.5px #007cba; - box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); - outline: 2px solid transparent; } - .components-textarea-control__input::-webkit-input-placeholder { - color: rgba(30, 30, 30, 0.62); } - .components-textarea-control__input::-moz-placeholder { - opacity: 1; - color: rgba(30, 30, 30, 0.62); } - .components-textarea-control__input:-ms-input-placeholder { - color: rgba(30, 30, 30, 0.62); } - .is-dark-theme .components-textarea-control__input::-webkit-input-placeholder { - color: rgba(255, 255, 255, 0.65); } - .is-dark-theme .components-textarea-control__input::-moz-placeholder { - opacity: 1; - color: rgba(255, 255, 255, 0.65); } - .is-dark-theme .components-textarea-control__input:-ms-input-placeholder { - color: rgba(255, 255, 255, 0.65); } - .components-tip { display: flex; color: #757575; } diff --git a/wp-includes/css/dist/components/style-rtl.min.css b/wp-includes/css/dist/components/style-rtl.min.css index c8366d7461..5af8ddfb29 100644 --- a/wp-includes/css/dist/components/style-rtl.min.css +++ b/wp-includes/css/dist/components/style-rtl.min.css @@ -1 +1 @@ -:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87}.components-animate__appear{animation:components-animate__appear-animation .1s cubic-bezier(0,0,.2,1) 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-animate__appear{animation-duration:1ms}}.components-animate__appear.is-from-top,.components-animate__appear.is-from-top.is-from-left{transform-origin:top right}.components-animate__appear.is-from-top.is-from-right{transform-origin:top left}.components-animate__appear.is-from-bottom,.components-animate__appear.is-from-bottom.is-from-left{transform-origin:bottom right}.components-animate__appear.is-from-bottom.is-from-right{transform-origin:bottom left}@keyframes components-animate__appear-animation{0%{transform:translateY(-2em) scaleY(0) scaleX(0)}to{transform:translateY(0) scaleY(1) scaleX(1)}}.components-animate__slide-in{animation:components-animate__slide-in-animation .1s cubic-bezier(0,0,.2,1);animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-animate__slide-in{animation-duration:1ms}}.components-animate__slide-in.is-from-left{transform:translateX(-100%)}.components-animate__slide-in.is-from-right{transform:translateX(100%)}@keyframes components-animate__slide-in-animation{to{transform:translateX(0)}}.components-animate__loading{animation:components-animate__loading 1.6s ease-in-out infinite}@keyframes components-animate__loading{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}.components-autocomplete__popover .components-popover__content>div{padding:16px}.components-autocomplete__result.components-button{display:flex;height:auto;min-height:36px;text-align:right;width:100%}.components-autocomplete__result.components-button.is-selected{box-shadow:0 0 0 2px #007cba;box-shadow:0 0 0 2px var(--wp-admin-theme-color)}.components-base-control{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-base-control .components-base-control__field{margin-bottom:8px}.components-panel__row .components-base-control .components-base-control__field{margin-bottom:inherit}.components-base-control .components-base-control__label{display:inline-block;margin-bottom:8px}.components-base-control .components-base-control__help{margin-top:-8px;font-style:italic}.components-button-group{display:inline-block}.components-button-group .components-button{border-radius:0;display:inline-flex;color:#1e1e1e;box-shadow:inset 0 0 0 1px #1e1e1e}.components-button-group .components-button+.components-button{margin-right:-1px}.components-button-group .components-button:first-child{border-radius:0 2px 2px 0}.components-button-group .components-button:last-child{border-radius:2px 0 0 2px}.components-button-group .components-button.is-primary,.components-button-group .components-button:focus{position:relative;z-index:1}.components-button-group .components-button.is-primary{box-shadow:inset 0 0 0 1px #1e1e1e}.components-button{display:inline-flex;text-decoration:none;font-size:13px;margin:0;border:0;cursor:pointer;-webkit-appearance:none;background:none;transition:box-shadow .1s linear;height:36px;align-items:center;box-sizing:border-box;padding:6px 12px;border-radius:2px;color:#1e1e1e}@media (prefers-reduced-motion:reduce){.components-button{transition-duration:0s}}.components-button:hover,.components-button[aria-expanded=true]{color:#007cba;color:var(--wp-admin-theme-color)}.components-button[aria-disabled=true]:hover{color:initial}.components-button:focus:not(:disabled){box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);outline:1px solid transparent}.components-button.is-primary{white-space:nowrap;background:#007cba;background:var(--wp-admin-theme-color);color:#fff;text-decoration:none;text-shadow:none}.components-button.is-primary:hover:not(:disabled){background:#006ba1;background:var(--wp-admin-theme-color-darker-10);color:#fff}.components-button.is-primary:active:not(:disabled){background:#005a87;background:var(--wp-admin-theme-color-darker-20);border-color:#005a87;border-color:var(--wp-admin-theme-color-darker-20);color:#fff}.components-button.is-primary:focus:not(:disabled){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:1px solid transparent}.components-button.is-primary:disabled,.components-button.is-primary:disabled:active:enabled,.components-button.is-primary[aria-disabled=true],.components-button.is-primary[aria-disabled=true]:active:enabled,.components-button.is-primary[aria-disabled=true]:enabled{color:hsla(0,0%,100%,.4);background:#007cba;background:var(--wp-admin-theme-color);border-color:#007cba;border-color:var(--wp-admin-theme-color);opacity:1}.components-button.is-primary:disabled:active:enabled:focus:enabled,.components-button.is-primary:disabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:active:enabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:enabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:focus:enabled{box-shadow:0 0 0 1px #fff,0 0 0 3px #007cba;box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color)}.components-button.is-primary.is-busy,.components-button.is-primary.is-busy:disabled,.components-button.is-primary.is-busy[aria-disabled=true]{color:#fff;background-size:100px 100%;background-image:linear-gradient(45deg,#007cba 28%,#005a87 0,#005a87 72%,#007cba 0);background-image:linear-gradient(45deg,var(--wp-admin-theme-color) 28%,var(--wp-admin-theme-color-darker-20) 0,var(--wp-admin-theme-color-darker-20) 72%,var(--wp-admin-theme-color) 0);border-color:#007cba;border-color:var(--wp-admin-theme-color)}.components-button.is-secondary:active:not(:disabled),.components-button.is-tertiary:active:not(:disabled){background:#ddd;color:#006ba1;color:var(--wp-admin-theme-color-darker-10);box-shadow:none}.components-button.is-secondary:hover:not(:disabled),.components-button.is-tertiary:hover:not(:disabled){color:#006ba1;color:var(--wp-admin-theme-color-darker-10);box-shadow:inset 0 0 0 1px #006ba1;box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color-darker-10)}.components-button.is-secondary:disabled,.components-button.is-secondary[aria-disabled=true],.components-button.is-secondary[aria-disabled=true]:hover,.components-button.is-tertiary:disabled,.components-button.is-tertiary[aria-disabled=true],.components-button.is-tertiary[aria-disabled=true]:hover{color:#828282;background:#eaeaea;transform:none;opacity:1;box-shadow:none}.components-button.is-secondary{box-shadow:inset 0 0 0 1px #007cba;box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color);outline:1px solid transparent}.components-button.is-secondary,.components-button.is-tertiary{white-space:nowrap;color:#007cba;color:var(--wp-admin-theme-color);background:transparent}.components-button.is-tertiary{padding:6px;outline:1px dotted transparent}.components-button.is-tertiary .dashicon{display:inline-block;flex:0 0 auto}.components-button.is-destructive{color:#cc1818;box-shadow:inset 0 0 0 1px #cc1818}.components-button.is-destructive:hover:not(:disabled){color:#710d0d;box-shadow:inset 0 0 0 1px #710d0d}.components-button.is-destructive:focus:not(:disabled){color:#007cba;color:var(--wp-admin-theme-color)}.components-button.is-destructive:active:not(:disabled){background:#ccc}.components-button.is-link{margin:0;padding:0;box-shadow:none;border:0;border-radius:0;background:none;outline:none;text-align:right;color:#0073aa;text-decoration:underline;transition-property:border,background,color;transition-duration:.05s;transition-timing-function:ease-in-out;height:auto}@media (prefers-reduced-motion:reduce){.components-button.is-link{transition-duration:0s}}.components-button.is-link:active:not(:disabled),.components-button.is-link:hover:not(:disabled){color:#00a0d2;box-shadow:none}.components-button.is-link:focus{color:#124964;box-shadow:0 0 0 1px #5b9dd9,0 0 1.5px 1px rgba(30,140,190,.8)}.components-button.is-link.is-destructive{color:#cc1818}.components-button.is-link.is-destructive:active:not(:disabled),.components-button.is-link.is-destructive:hover:not(:disabled){color:#710d0d;background:none}.components-button.is-link.is-destructive:focus:not(:disabled){color:#007cba;color:var(--wp-admin-theme-color)}.components-button:not([aria-disabled=true]):active{color:inherit}.components-button:disabled,.components-button[aria-disabled=true]{cursor:default;opacity:.3}.components-button.is-busy,.components-button.is-secondary.is-busy,.components-button.is-secondary.is-busy:disabled,.components-button.is-secondary.is-busy[aria-disabled=true]{animation:components-button__busy-animation 2.5s linear infinite;opacity:1;background-size:100px 100%;background-image:linear-gradient(45deg,#fafafa 28%,#e0e0e0 0,#e0e0e0 72%,#fafafa 0)}.components-button.is-small{height:24px;line-height:22px;padding:0 8px;font-size:11px}.components-button.is-small.has-icon:not(.has-text){padding:0 8px;width:24px}.components-button.has-icon{padding:6px;min-width:36px;justify-content:center}.components-button.has-icon .dashicon{display:inline-block;flex:0 0 auto}.components-button.has-icon.has-text{justify-content:left}.components-button.has-icon.has-text svg{margin-left:8px}.components-button.is-pressed{color:#fff;background:#1e1e1e}.components-button.is-pressed:focus:not(:disabled){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}.components-button.is-pressed:hover:not(:disabled){background:#1e1e1e}.components-button svg{fill:currentColor;outline:none}.components-button .components-visually-hidden{height:auto}@keyframes components-button__busy-animation{0%{background-position:200px 0}}.components-checkbox-control__input[type=checkbox]{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;font-size:16px;line-height:normal;border:1px solid #1e1e1e;transition:none;border-radius:2px;background:#fff;color:#1e1e1e;clear:none;cursor:pointer;display:inline-block;line-height:0;margin:0 0 0 4px;outline:0;padding:0!important;text-align:center;vertical-align:top;width:24px;height:24px;-webkit-appearance:none;appearance:none;transition:border-color .1s ease-in-out}@media (min-width:600px){.components-checkbox-control__input[type=checkbox]{font-size:13px;line-height:normal}}.components-checkbox-control__input[type=checkbox]: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)}.components-checkbox-control__input[type=checkbox]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-checkbox-control__input[type=checkbox]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-checkbox-control__input[type=checkbox]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-checkbox-control__input[type=checkbox]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-checkbox-control__input[type=checkbox]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-checkbox-control__input[type=checkbox]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-checkbox-control__input[type=checkbox]:checked:before,.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{margin:-3px -5px;color:#fff}@media (min-width:782px){.components-checkbox-control__input[type=checkbox]:checked:before,.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{margin:-4px -5px 0 0}}.components-checkbox-control__input[type=checkbox][aria-checked=mixed]{background:#007cba;background:var(--wp-admin-theme-color);border-color:#007cba;border-color:var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{content:"\f460";float:right;display:inline-block;vertical-align:middle;width:16px;font:normal 30px/1 dashicons;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (min-width:782px){.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{float:none;font-size:21px}}@media (min-width:600px){.components-checkbox-control__input[type=checkbox]{height:20px;width:20px}}@media (prefers-reduced-motion:reduce){.components-checkbox-control__input[type=checkbox]{transition-duration:0s}}.components-checkbox-control__input[type=checkbox]:focus{box-shadow:0 0 0 2px #fff,0 0 0 3.5px #007cba;box-shadow:0 0 0 2px #fff,0 0 0 3.5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-checkbox-control__input[type=checkbox]:checked{background:#007cba;background:var(--wp-admin-theme-color);border-color:#007cba;border-color:var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox]:checked::-ms-check{opacity:0}.components-checkbox-control__input[type=checkbox]:checked:before{content:none}.components-checkbox-control__input-container{position:relative;display:inline-block;margin-left:12px;vertical-align:middle;width:24px;height:24px}@media (min-width:600px){.components-checkbox-control__input-container{width:20px;height:20px}}svg.components-checkbox-control__checked{fill:#fff;cursor:pointer;position:absolute;right:0;top:0;width:24px;height:24px;-webkit-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}@media (min-width:600px){svg.components-checkbox-control__checked{right:-2px;top:-2px}}.components-circular-option-picker{display:inline-block;width:100%;margin-left:-10px}.components-circular-option-picker .components-circular-option-picker__custom-clear-wrapper{display:flex;justify-content:flex-end}.components-circular-option-picker .components-circular-option-picker__swatches{margin-left:-16px}.components-circular-option-picker__option-wrapper{display:inline-block;height:28px;width:28px;margin-left:16px;margin-bottom:12px;vertical-align:top;transform:scale(1);transition:transform .1s ease}@media (prefers-reduced-motion:reduce){.components-circular-option-picker__option-wrapper{transition-duration:0s}}.components-circular-option-picker__option-wrapper:hover{transform:scale(1.2)}.components-circular-option-picker__option-wrapper>div{height:100%;width:100%}.components-circular-option-picker__option-wrapper:before{content:"";position:absolute;top:1px;right:1px;bottom:1px;left:1px;border-radius:50%;z-index:-1;background:url("data:image/svg+xml;charset=utf-8,%3Csvg width='28' height='28' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 8V6H4v2h2zm2 0V6h2v2H8zm2 8H8v-2h2v2zm2 0v-2h2v2h-2zm0 2v-2h-2v2H8v2h2v-2h2zm2 0v2h-2v-2h2zm2 0h-2v-2h2v2z' fill='%23555D65'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M18 18h2v-2h-2v-2h2v-2h-2v-2h2V8h-2v2h-2V8h-2v2h2v2h-2v2h2v2h2v2zm-2-4v-2h2v2h-2z' fill='%23555D65'/%3E%3Cpath d='M18 18v2h-2v-2h2z' fill='%23555D65'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M8 10V8H6v2H4v2h2v2H4v2h2v2H4v2h2v2H4v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2v2h-2V4h-2v2h-2V4h-2v2h-2V4h-2v2h2v2h-2v2H8zm0 2v-2H6v2h2zm2 0v-2h2v2h-2zm0 2v-2H8v2H6v2h2v2H6v2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h-2v2h-2V6h-2v2h-2v2h2v2h-2v2h-2z' fill='%23555D65'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M4 0H2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2V2h2V0h-2v2h-2V0h-2v2h-2V0h-2v2h-2V0h-2v2h-2V0h-2v2H8V0H6v2H4V0zm0 4V2H2v2h2zm2 0V2h2v2H6zm0 2V4H4v2H2v2h2v2H2v2h2v2H2v2h2v2H2v2h2v2H2v2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2V2h-2v2h-2V2h-2v2h-2V2h-2v2h-2V2h-2v2H8v2H6z' fill='%23555D65'/%3E%3C/svg%3E")}.components-circular-option-picker__option{display:inline-block;vertical-align:top;height:100%;width:100%;border:none;border-radius:50%;background:transparent;box-shadow:inset 0 0 0 14px;transition:box-shadow .1s ease;cursor:pointer}@media (prefers-reduced-motion:reduce){.components-circular-option-picker__option{transition-duration:0s}}.components-circular-option-picker__option:hover{box-shadow:inset 0 0 0 14px!important}.components-circular-option-picker__option.is-pressed{box-shadow:inset 0 0 0 4px;position:relative;z-index:1;overflow:visible}.components-circular-option-picker__option.is-pressed+svg{position:absolute;right:2px;top:2px;border-radius:50%;z-index:2;pointer-events:none}.components-circular-option-picker__option:after{content:"";position:absolute;top:-1px;right:-1px;bottom:-1px;left:-1px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);border:1px solid transparent}.components-circular-option-picker__option:focus:after{content:"";border:2px solid #757575;width:32px;height:32px;position:absolute;top:-2px;right:-2px;border-radius:50%;box-shadow:inset 0 0 0 2px #fff}.components-circular-option-picker__option.components-button:focus{background-color:transparent;box-shadow:inset 0 0 0 14px;outline:none}.components-circular-option-picker__button-action .components-circular-option-picker__option{color:#fff;background:#fff}.components-circular-option-picker__dropdown-link-action{margin-left:16px}.components-circular-option-picker__dropdown-link-action .components-button{line-height:22px}.component-color-indicator{width:25px;height:16px;margin-right:.8rem;border:1px solid #dadada;display:inline-block}.component-color-indicator+.component-color-indicator{margin-right:.5rem}.components-color-picker{width:100%}.components-color-picker *{box-sizing:border-box}.components-color-picker__saturation{width:100%;padding-bottom:55%;position:relative}.components-color-picker__body{padding:16px 16px 12px}.components-color-picker__controls{display:flex}.components-color-picker__alpha-pointer,.components-color-picker__hue-pointer,.components-color-picker__saturation-pointer{padding:0;position:absolute;cursor:pointer;box-shadow:none;border:none}.components-color-picker__swatch{margin-left:8px;width:32px;height:32px;border-radius:50%;position:relative;overflow:hidden;background-image:linear-gradient(-45deg,#ddd 25%,transparent 0),linear-gradient(45deg,#ddd 25%,transparent 0),linear-gradient(-45deg,transparent 75%,#ddd 0),linear-gradient(45deg,transparent 75%,#ddd 0);background-size:10px 10px;background-position:100% 0,100% 5px,5px -5px,-5px 0}.is-alpha-disabled .components-color-picker__swatch{width:12px;height:12px;margin-top:0}.components-color-picker__active{border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1);z-index:2}.components-color-picker__active,.components-color-picker__saturation-black,.components-color-picker__saturation-color,.components-color-picker__saturation-white{position:absolute;top:0;right:0;left:0;bottom:0}.components-color-picker__saturation-color{overflow:visible}.components-color-picker__saturation-white{background:linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.components-color-picker__saturation-black{background:linear-gradient(0deg,#000,transparent)}.components-button.components-color-picker__saturation-pointer{width:14px;height:14px;padding:0;border-radius:50%;background-color:transparent;transform:translate(50%,-50%);box-shadow:0 0 0 1px #fff,inset 0 0 0 1px #000,0 0 0 2px #000}.components-button.components-color-picker__saturation-pointer:focus:not(:disabled){box-shadow:0 0 0 2px #fff,inset 0 0 0 1px #000,0 0 0 3px #000}.components-color-picker__toggles{flex:1}.components-color-picker__alpha{background-image:linear-gradient(-45deg,#ddd 25%,transparent 0),linear-gradient(45deg,#ddd 25%,transparent 0),linear-gradient(-45deg,transparent 75%,#ddd 0),linear-gradient(45deg,transparent 75%,#ddd 0);background-size:10px 10px;background-position:100% 0,100% 5px,5px -5px,-5px 0}.components-color-picker__alpha-gradient,.components-color-picker__hue-gradient{position:absolute;top:0;right:0;left:0;bottom:0}.components-color-picker__alpha,.components-color-picker__hue{height:12px;position:relative}.is-alpha-enabled .components-color-picker__hue{margin-bottom:8px}.components-color-picker__alpha-bar,.components-color-picker__hue-bar{position:relative;margin:0 3px;height:100%;padding:0 2px}.components-color-picker__hue-gradient{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.components-color-picker__alpha-pointer,.components-color-picker__hue-pointer{left:0;width:14px;height:14px;border-radius:50%;box-shadow:0 1px 4px 0 rgba(0,0,0,.37);background:#fff;transform:translate(7px,-1px)}.components-color-picker__hue-pointer,.components-color-picker__saturation-pointer{transition:box-shadow .1s linear}@media (prefers-reduced-motion:reduce){.components-color-picker__hue-pointer,.components-color-picker__saturation-pointer{transition-duration:0s}}.components-color-picker__saturation-pointer:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #007cba,0 0 5px 0 #007cba,inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4);box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color),0 0 5px 0 var(--wp-admin-theme-color),inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4)}.components-color-picker__alpha-pointer:focus,.components-color-picker__hue-pointer:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 2px #007cba,0 0 3px 0 #007cba;box-shadow:0 0 0 2px var(--wp-admin-theme-color),0 0 3px 0 var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:-2px}.components-color-picker__inputs-wrapper{margin:0 -4px;padding-top:16px;display:flex;align-items:flex-end;min-width:255px}.components-color-picker__inputs-wrapper fieldset{flex:1;border:none;margin:0;padding:0}.components-color-picker__inputs-wrapper .components-color-picker__inputs-fields .components-text-control__input[type=number]{padding:6px 3px;margin:0}.components-color-picker__inputs-field{width:100%}.components-color-picker__inputs-fields{display:flex;direction:ltr;flex-grow:1;margin-left:4px}.components-color-picker__inputs-fields .components-base-control+.components-base-control{margin-top:0}.components-color-picker__inputs-fields .components-base-control__field{margin:0 2px}.components-color-picker__inputs-toggle{height:30px;padding:0 5px}.components-combobox-control{width:100%}input.components-combobox-control__input[type=text]{width:100%;border:none;box-shadow:none;padding:2px;margin:0;line-height:inherit;min-height:auto}input.components-combobox-control__input[type=text]:focus{outline:none;box-shadow:none}.components-combobox-control__suggestions-container{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;border:1px solid #757575;font-size:16px;line-height:normal;display:flex;flex-wrap:wrap;align-items:flex-start;width:100%;margin:0 0 8px;padding:4px}@media (prefers-reduced-motion:reduce){.components-combobox-control__suggestions-container{transition-duration:0s}}@media (min-width:600px){.components-combobox-control__suggestions-container{font-size:13px;line-height:normal}}.components-combobox-control__suggestions-container: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}.components-combobox-control__suggestions-container::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-combobox-control__suggestions-container::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-combobox-control__suggestions-container:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-combobox-control__suggestions-container::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-combobox-control__suggestions-container::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-combobox-control__suggestions-container:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-combobox-control__suggestions-container:focus-within{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}.components-custom-gradient-picker__gradient-bar:not(.has-gradient){opacity:.4}.components-custom-gradient-picker__gradient-bar{margin-top:12px;width:100%;height:36px;border-radius:36px;margin-bottom:12px;padding-right:6px;padding-left:30px}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__markers-container{position:relative}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point{border-radius:50%;background:#fff;padding:2px;top:6px;min-width:24px;width:24px;height:24px;position:relative;color:#1e1e1e}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point svg{height:100%;width:100%}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button{border:2px solid transparent;box-shadow:inset 0 0 0 1.5px #fff;border-radius:50%;height:24px;width:24px;padding:0;position:absolute;top:6px}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button.is-active,.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px #1e1e1e}.components-custom-gradient-picker__color-picker-popover .components-custom-gradient-picker__remove-control-point{margin-right:auto;margin-left:auto;display:block;margin-bottom:8px}.components-custom-gradient-picker__inserter{width:100%}.components-custom-gradient-picker__liner-gradient-indicator{display:inline-block;flex:0 auto;width:20px;height:20px}.components-custom-gradient-picker .components-custom-gradient-picker__ui-line{margin-bottom:16px}.components-custom-gradient-picker .components-custom-gradient-picker__ui-line .components-base-control.components-angle-picker,.components-custom-gradient-picker .components-custom-gradient-picker__ui-line .components-base-control.components-custom-gradient-picker__type-picker{margin-bottom:0}.components-custom-gradient-picker .components-custom-gradient-picker__toolbar{border:none}.components-custom-gradient-picker .components-custom-gradient-picker__toolbar>div+div{margin-right:1px}.components-custom-gradient-picker .components-custom-gradient-picker__toolbar button.is-pressed>svg{background:#fff;border:1px solid #949494;border-radius:2px}.components-custom-select-control{position:relative}.components-custom-select-control__label{display:block;margin-bottom:8px}.components-custom-select-control__button{border:1px solid #757575;border-radius:2px;min-height:30px;min-width:130px;position:relative;text-align:right}.components-custom-select-control__button.components-custom-select-control__button{padding-left:24px}.components-custom-select-control__button:focus:not(:disabled){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)}.components-custom-select-control__button .components-custom-select-control__button-icon{height:100%;padding:0;position:absolute;left:0;top:0}.components-custom-select-control__menu{background-color:#fff;max-height:400px;min-width:100%;overflow:auto;padding:0;position:absolute;z-index:1000000}.components-custom-select-control__menu:focus{border:1px solid #1e1e1e;border-radius:2px;outline:none;transition:none}.components-custom-select-control__item{align-items:center;display:flex;list-style-type:none;padding:10px 25px 10px 5px;cursor:default}.components-custom-select-control__item.is-highlighted{background:#ddd}.components-custom-select-control__item-icon{margin-right:-20px;margin-left:0}.PresetDateRangePicker_panel{padding:0 22px 11px}.PresetDateRangePicker_button{position:relative;height:100%;text-align:center;background:0 0;border:2px solid #00a699;color:#00a699;padding:4px 12px;margin-right:8px;font:inherit;font-weight:700;line-height:normal;overflow:visible;box-sizing:border-box;cursor:pointer}.PresetDateRangePicker_button:active{outline:0}.PresetDateRangePicker_button__selected{color:#fff;background:#00a699}.SingleDatePickerInput{display:inline-block;background-color:#fff}.SingleDatePickerInput__withBorder{border-radius:2px;border:1px solid #dbdbdb}.SingleDatePickerInput__rtl{direction:rtl}.SingleDatePickerInput__disabled{background-color:#f2f2f2}.SingleDatePickerInput__block{display:block}.SingleDatePickerInput__showClearDate{padding-right:30px}.SingleDatePickerInput_clearDate{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;padding:10px;margin:0 10px 0 5px;position:absolute;right:0;top:50%;transform:translateY(-50%)}.SingleDatePickerInput_clearDate__default:focus,.SingleDatePickerInput_clearDate__default:hover{background:#dbdbdb;border-radius:50%}.SingleDatePickerInput_clearDate__small{padding:6px}.SingleDatePickerInput_clearDate__hide{visibility:hidden}.SingleDatePickerInput_clearDate_svg{fill:#82888a;height:12px;width:15px;vertical-align:middle}.SingleDatePickerInput_clearDate_svg__small{height:9px}.SingleDatePickerInput_calendarIcon{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;display:inline-block;vertical-align:middle;padding:10px;margin:0 5px 0 10px}.SingleDatePickerInput_calendarIcon_svg{fill:#82888a;height:15px;width:14px;vertical-align:middle}.SingleDatePicker{position:relative;display:inline-block}.SingleDatePicker__block{display:block}.SingleDatePicker_picker{z-index:1;background-color:#fff;position:absolute}.SingleDatePicker_picker__rtl{direction:rtl}.SingleDatePicker_picker__directionLeft{left:0}.SingleDatePicker_picker__directionRight{right:0}.SingleDatePicker_picker__portal{background-color:rgba(0,0,0,.3);position:fixed;top:0;left:0;height:100%;width:100%}.SingleDatePicker_picker__fullScreenPortal{background-color:#fff}.SingleDatePicker_closeButton{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;position:absolute;top:0;right:0;padding:15px;z-index:2}.SingleDatePicker_closeButton:focus,.SingleDatePicker_closeButton:hover{color:#b0b3b4;text-decoration:none}.SingleDatePicker_closeButton_svg{height:15px;width:15px;fill:#cacccd}.DayPickerKeyboardShortcuts_buttonReset{background:0 0;border:0;border-radius:0;color:inherit;font:inherit;line-height:normal;overflow:visible;padding:0;cursor:pointer;font-size:14px}.DayPickerKeyboardShortcuts_buttonReset:active{outline:0}.DayPickerKeyboardShortcuts_show{width:22px;position:absolute;z-index:2}.DayPickerKeyboardShortcuts_show__bottomRight{border-top:26px solid transparent;border-right:33px solid #00a699;bottom:0;right:0}.DayPickerKeyboardShortcuts_show__bottomRight:hover{border-right:33px solid #008489}.DayPickerKeyboardShortcuts_show__topRight{border-bottom:26px solid transparent;border-right:33px solid #00a699;top:0;right:0}.DayPickerKeyboardShortcuts_show__topRight:hover{border-right:33px solid #008489}.DayPickerKeyboardShortcuts_show__topLeft{border-bottom:26px solid transparent;border-left:33px solid #00a699;top:0;left:0}.DayPickerKeyboardShortcuts_show__topLeft:hover{border-left:33px solid #008489}.DayPickerKeyboardShortcuts_showSpan{color:#fff;position:absolute}.DayPickerKeyboardShortcuts_showSpan__bottomRight{bottom:0;right:-28px}.DayPickerKeyboardShortcuts_showSpan__topRight{top:1px;right:-28px}.DayPickerKeyboardShortcuts_showSpan__topLeft{top:1px;left:-28px}.DayPickerKeyboardShortcuts_panel{overflow:auto;background:#fff;border:1px solid #dbdbdb;border-radius:2px;position:absolute;top:0;bottom:0;right:0;left:0;z-index:2;padding:22px;margin:33px}.DayPickerKeyboardShortcuts_title{font-size:16px;font-weight:700;margin:0}.DayPickerKeyboardShortcuts_list{list-style:none;padding:0;font-size:14px}.DayPickerKeyboardShortcuts_close{position:absolute;right:22px;top:22px;z-index:2}.DayPickerKeyboardShortcuts_close:active{outline:0}.DayPickerKeyboardShortcuts_closeSvg{height:15px;width:15px;fill:#cacccd}.DayPickerKeyboardShortcuts_closeSvg:focus,.DayPickerKeyboardShortcuts_closeSvg:hover{fill:#82888a}.CalendarDay{box-sizing:border-box;cursor:pointer;font-size:14px;text-align:center}.CalendarDay:active{outline:0}.CalendarDay__defaultCursor{cursor:default}.CalendarDay__default{border:1px solid #e4e7e7;color:#484848;background:#fff}.CalendarDay__default:hover{background:#e4e7e7;border:1px double #e4e7e7;color:inherit}.CalendarDay__hovered_offset{background:#f4f5f5;border:1px double #e4e7e7;color:inherit}.CalendarDay__outside{border:0;background:#fff;color:#484848}.CalendarDay__outside:hover{border:0}.CalendarDay__blocked_minimum_nights{background:#fff;border:1px solid #eceeee;color:#cacccd}.CalendarDay__blocked_minimum_nights:active,.CalendarDay__blocked_minimum_nights:hover{background:#fff;color:#cacccd}.CalendarDay__highlighted_calendar{background:#ffe8bc;color:#484848}.CalendarDay__highlighted_calendar:active,.CalendarDay__highlighted_calendar:hover{background:#ffce71;color:#484848}.CalendarDay__selected_span{background:#66e2da;border:1px solid #33dacd;color:#fff}.CalendarDay__selected_span:active,.CalendarDay__selected_span:hover{background:#33dacd;border:1px solid #33dacd;color:#fff}.CalendarDay__last_in_range{border-right:#00a699}.CalendarDay__selected,.CalendarDay__selected:active,.CalendarDay__selected:hover{background:#00a699;border:1px solid #00a699;color:#fff}.CalendarDay__hovered_span,.CalendarDay__hovered_span:hover{background:#b2f1ec;border:1px solid #80e8e0;color:#007a87}.CalendarDay__hovered_span:active{background:#80e8e0;border:1px solid #80e8e0;color:#007a87}.CalendarDay__blocked_calendar,.CalendarDay__blocked_calendar:active,.CalendarDay__blocked_calendar:hover{background:#cacccd;border:1px solid #cacccd;color:#82888a}.CalendarDay__blocked_out_of_range,.CalendarDay__blocked_out_of_range:active,.CalendarDay__blocked_out_of_range:hover{background:#fff;border:1px solid #e4e7e7;color:#cacccd}.CalendarMonth{background:#fff;text-align:center;vertical-align:top;-webkit-user-select:none;-ms-user-select:none;user-select:none}.CalendarMonth_table{border-collapse:collapse;border-spacing:0}.CalendarMonth_verticalSpacing{border-collapse:separate}.CalendarMonth_caption{color:#484848;font-size:18px;text-align:center;padding-top:22px;padding-bottom:37px;caption-side:top}.CalendarMonth_caption__verticalScrollable{padding-top:12px;padding-bottom:7px}.CalendarMonthGrid{background:#fff;text-align:left;z-index:0}.CalendarMonthGrid__animating{z-index:1}.CalendarMonthGrid__horizontal{position:absolute;left:9px}.CalendarMonthGrid__vertical{margin:0 auto}.CalendarMonthGrid__vertical_scrollable{margin:0 auto;overflow-y:scroll}.CalendarMonthGrid_month__horizontal{display:inline-block;vertical-align:top;min-height:100%}.CalendarMonthGrid_month__hideForAnimation{position:absolute;z-index:-1;opacity:0;pointer-events:none}.CalendarMonthGrid_month__hidden{visibility:hidden}.DayPickerNavigation{position:relative;z-index:2}.DayPickerNavigation__horizontal{height:0}.DayPickerNavigation__verticalDefault{position:absolute;width:100%;height:52px;bottom:0;left:0}.DayPickerNavigation__verticalScrollableDefault{position:relative}.DayPickerNavigation_button{cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none;border:0;padding:0;margin:0}.DayPickerNavigation_button__default{border:1px solid #e4e7e7;background-color:#fff;color:#757575}.DayPickerNavigation_button__default:focus,.DayPickerNavigation_button__default:hover{border:1px solid #c4c4c4}.DayPickerNavigation_button__default:active{background:#f2f2f2}.DayPickerNavigation_button__horizontalDefault{position:absolute;top:18px;line-height:.78;border-radius:3px;padding:6px 9px}.DayPickerNavigation_leftButton__horizontalDefault{left:22px}.DayPickerNavigation_rightButton__horizontalDefault{right:22px}.DayPickerNavigation_button__verticalDefault{padding:5px;background:#fff;box-shadow:0 0 5px 2px rgba(0,0,0,.1);position:relative;display:inline-block;height:100%;width:50%}.DayPickerNavigation_nextButton__verticalDefault{border-left:0}.DayPickerNavigation_nextButton__verticalScrollableDefault{width:100%}.DayPickerNavigation_svg__horizontal{height:19px;width:19px;fill:#82888a;display:block}.DayPickerNavigation_svg__vertical{height:42px;width:42px;fill:#484848;display:block}.DayPicker{position:relative;text-align:left}.DayPicker,.DayPicker__horizontal{background:#fff}.DayPicker__verticalScrollable{height:100%}.DayPicker__hidden{visibility:hidden}.DayPicker__withBorder{box-shadow:0 2px 6px rgba(0,0,0,.05),0 0 0 1px rgba(0,0,0,.07);border-radius:3px}.DayPicker_portal__horizontal{box-shadow:none;position:absolute;left:50%;top:50%}.DayPicker_portal__vertical{position:static}.DayPicker_focusRegion{outline:0}.DayPicker_calendarInfo__horizontal,.DayPicker_wrapper__horizontal{display:inline-block;vertical-align:top}.DayPicker_weekHeaders{position:relative}.DayPicker_weekHeaders__horizontal{margin-left:9px}.DayPicker_weekHeader{color:#757575;position:absolute;top:62px;z-index:2;text-align:left}.DayPicker_weekHeader__vertical{left:50%}.DayPicker_weekHeader__verticalScrollable{top:0;display:table-row;border-bottom:1px solid #dbdbdb;background:#fff;margin-left:0;left:0;width:100%;text-align:center}.DayPicker_weekHeader_ul{list-style:none;margin:1px 0;padding-left:0;padding-right:0;font-size:14px}.DayPicker_weekHeader_li{display:inline-block;text-align:center}.DayPicker_transitionContainer{position:relative;overflow:hidden;border-radius:3px}.DayPicker_transitionContainer__horizontal{transition:height .2s ease-in-out}.DayPicker_transitionContainer__vertical{width:100%}.DayPicker_transitionContainer__verticalScrollable{padding-top:20px;height:100%;position:absolute;top:0;bottom:0;right:0;left:0;overflow-y:scroll}.DateInput{margin:0;padding:0;background:#fff;position:relative;display:inline-block;width:130px;vertical-align:middle}.DateInput__small{width:97px}.DateInput__block{width:100%}.DateInput__disabled{background:#f2f2f2;color:#dbdbdb}.DateInput_input{font-weight:200;font-size:19px;line-height:24px;color:#484848;background-color:#fff;width:100%;padding:11px 11px 9px;border:0;border-bottom:2px solid transparent;border-radius:0}.DateInput_input__small{font-size:15px;line-height:18px;letter-spacing:.2px;padding:7px 7px 5px}.DateInput_input__regular{font-weight:auto}.DateInput_input__readOnly{-webkit-user-select:none;-ms-user-select:none;user-select:none}.DateInput_input__focused{outline:0;background:#fff;border:0;border-bottom:2px solid #008489}.DateInput_input__disabled{background:#f2f2f2;font-style:italic}.DateInput_screenReaderMessage{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.DateInput_fang{position:absolute;width:20px;height:10px;left:22px;z-index:2}.DateInput_fangShape{fill:#fff}.DateInput_fangStroke{stroke:#dbdbdb;fill:transparent}.DateRangePickerInput{background-color:#fff;display:inline-block}.DateRangePickerInput__disabled{background:#f2f2f2}.DateRangePickerInput__withBorder{border-radius:2px;border:1px solid #dbdbdb}.DateRangePickerInput__rtl{direction:rtl}.DateRangePickerInput__block{display:block}.DateRangePickerInput__showClearDates{padding-right:30px}.DateRangePickerInput_arrow{display:inline-block;vertical-align:middle;color:#484848}.DateRangePickerInput_arrow_svg{vertical-align:middle;fill:#484848;height:24px;width:24px}.DateRangePickerInput_clearDates{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;padding:10px;margin:0 10px 0 5px;position:absolute;right:0;top:50%;transform:translateY(-50%)}.DateRangePickerInput_clearDates__small{padding:6px}.DateRangePickerInput_clearDates_default:focus,.DateRangePickerInput_clearDates_default:hover{background:#dbdbdb;border-radius:50%}.DateRangePickerInput_clearDates__hide{visibility:hidden}.DateRangePickerInput_clearDates_svg{fill:#82888a;height:12px;width:15px;vertical-align:middle}.DateRangePickerInput_clearDates_svg__small{height:9px}.DateRangePickerInput_calendarIcon{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;display:inline-block;vertical-align:middle;padding:10px;margin:0 5px 0 10px}.DateRangePickerInput_calendarIcon_svg{fill:#82888a;height:15px;width:14px;vertical-align:middle}.DateRangePicker{position:relative;display:inline-block}.DateRangePicker__block{display:block}.DateRangePicker_picker{z-index:1;background-color:#fff;position:absolute}.DateRangePicker_picker__rtl{direction:rtl}.DateRangePicker_picker__directionLeft{left:0}.DateRangePicker_picker__directionRight{right:0}.DateRangePicker_picker__portal{background-color:rgba(0,0,0,.3);position:fixed;top:0;left:0;height:100%;width:100%}.DateRangePicker_picker__fullScreenPortal{background-color:#fff}.DateRangePicker_closeButton{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;position:absolute;top:0;right:0;padding:15px;z-index:2}.DateRangePicker_closeButton:focus,.DateRangePicker_closeButton:hover{color:#b0b3b4;text-decoration:none}.DateRangePicker_closeButton_svg{height:15px;width:15px;fill:#cacccd}.components-datetime{padding:0}.components-datetime .components-datetime__calendar-help{padding:16px}.components-datetime .components-datetime__calendar-help h4{margin:0}.components-datetime .components-datetime__buttons{display:flex;justify-content:space-between}.components-datetime .components-datetime__date-help-toggle{display:block;margin-right:auto}.components-datetime fieldset{border:0;padding:0;margin:0}.components-datetime input,.components-datetime select{box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575}@media (prefers-reduced-motion:reduce){.components-datetime input,.components-datetime select{transition-duration:0s}}.components-datetime .components-button,.components-datetime input[type=number],.components-datetime select{height:30px;margin-top:0;margin-bottom:0}.components-datetime__date{min-height:236px;border-top:1px solid #ddd}.components-datetime__date .DayPickerNavigation_leftButton__horizontalDefault{right:0}.components-datetime__date .CalendarMonth_caption{font-size:13px}.components-datetime__date .CalendarMonth_table{border-collapse:separate;border-spacing:2px}.components-datetime__date .CalendarDay{font-size:13px;border:none;border-radius:50%;text-align:center}.components-datetime__date .CalendarDay:focus{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 0 0 2.5px #fff;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 0 0 2.5px #fff;outline:2px solid transparent}.components-datetime__date .CalendarDay__selected{background:#007cba;background:var(--wp-admin-theme-color);border:2px solid transparent}.components-datetime__date .CalendarDay__selected:hover{background:#005a87;background:var(--wp-admin-theme-color-darker-20)}.components-datetime__date .CalendarDay__selected:focus{box-shadow:inset 0 0 0 1px #fff}.components-datetime__date .DayPickerNavigation_button__horizontalDefault{padding:2px 8px;top:20px}.components-datetime__date .DayPickerNavigation_button__horizontalDefault: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}.components-datetime__date .DayPicker_weekHeader{top:50px}.components-datetime__date .DayPicker_weekHeader .DayPicker_weekHeader_ul{margin:1px 0;padding-right:0;padding-left:0}.components-datetime__date.is-description-visible .DayPicker{visibility:hidden}.components-datetime__time{padding-bottom:16px}.components-datetime__time fieldset{position:relative;margin-bottom:.5em}.components-datetime__time fieldset+fieldset{margin-bottom:0}.components-datetime__time .components-datetime__time-field-am-pm fieldset{margin-top:0}.components-datetime__time .components-datetime__time-wrapper{display:flex}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-separator{display:inline-block;padding:0 0 0 3px}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field-time{direction:ltr}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select{margin-left:4px}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select:focus{position:relative;z-index:1}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]{padding:2px;margin-left:4px;text-align:center;-moz-appearance:textfield}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]:focus{position:relative;z-index:1}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.components-datetime__time.is-12-hour .components-datetime__time-field-day input{margin:-4px 0 0!important;border-radius:0 2px 2px 0!important}.components-datetime__time.is-12-hour .components-datetime__time-field-year input{border-radius:2px 0 0 2px!important}.components-datetime__timezone{line-height:30px;margin-right:4px;text-decoration:underline dotted}.components-datetime__time-legend{font-weight:600;margin-top:.5em}.components-datetime__time-legend.invisible{position:absolute;top:-999em;right:-999em}.components-datetime__time-field-day-input,.components-datetime__time-field-hours-input,.components-datetime__time-field-minutes-input{width:35px}.components-datetime__time-field-year-input{width:55px}.components-datetime__time-field-month-select{max-width:145px}.components-popover .components-datetime__date{padding-right:4px}.block-editor-dimension-control .components-base-control__field{display:flex;align-items:center}.block-editor-dimension-control .components-base-control__label{display:flex;align-items:center;margin-left:1em;margin-bottom:0}.block-editor-dimension-control .components-base-control__label .dashicon{margin-left:.5em}.block-editor-dimension-control.is-manual .components-base-control__label{width:10em}.components-disabled{position:relative;pointer-events:none}.components-disabled:after{content:"";position:absolute;top:0;left:0;bottom:0;right:0}.components-disabled *{pointer-events:none}body.is-dragging-components-draggable{cursor:move;cursor:grabbing!important}.components-draggable__invisible-drag-image{position:fixed;right:-1000px;height:50px;width:50px}.components-draggable__clone{position:fixed;padding:0;background:transparent;pointer-events:none;z-index:1000000000}.components-drop-zone{position:absolute;top:0;left:0;bottom:0;right:0;z-index:40;visibility:hidden;opacity:0;transition:opacity .3s,background-color .3s,visibility 0s .3s;border:2px solid #007cba;border:2px solid var(--wp-admin-theme-color);border-radius:2px}@media (prefers-reduced-motion:reduce){.components-drop-zone{transition-duration:0s}}.components-drop-zone.is-active{opacity:1;visibility:visible;transition:opacity .3s,background-color .3s}@media (prefers-reduced-motion:reduce){.components-drop-zone.is-active{transition-duration:0s}}.components-drop-zone.is-dragging-over-element{background-color:#007cba;background-color:var(--wp-admin-theme-color)}.components-drop-zone__content{position:absolute;top:50%;right:0;left:0;z-index:50;transform:translateY(-50%);width:100%;text-align:center;color:#fff;transition:transform .2s ease-in-out}@media (prefers-reduced-motion:reduce){.components-drop-zone__content{transition-duration:0s}}.components-drop-zone.is-dragging-over-element .components-drop-zone__content{transform:translateY(-50%) scale(1.05)}.components-drop-zone__content-icon,.components-drop-zone__content-text{display:block}.components-drop-zone__content-icon{margin:0 auto;line-height:0;fill:currentColor}.components-drop-zone__content-text{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.components-drop-zone__provider{height:100%}.components-dropdown{display:inline-block}.components-dropdown__content .components-popover__content>div{padding:12px}.components-dropdown-menu__popover .components-popover__content{width:200px}.components-dropdown-menu__menu{width:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:1.4}.components-dropdown-menu__menu .components-dropdown-menu__menu-item,.components-dropdown-menu__menu .components-menu-item{width:100%;padding:6px;outline:none;cursor:pointer}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator,.components-dropdown-menu__menu .components-menu-item.has-separator{margin-top:6px;position:relative;overflow:visible}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator:before,.components-dropdown-menu__menu .components-menu-item.has-separator:before{display:block;content:"";box-sizing:content-box;background-color:#ddd;position:absolute;top:-3px;right:0;left:0;height:1px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-active svg,.components-dropdown-menu__menu .components-menu-item.is-active svg{color:#fff;background:#1e1e1e;box-shadow:0 0 0 1px #1e1e1e;border-radius:1px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item>svg,.components-dropdown-menu__menu .components-menu-item>svg{border-radius:2px;width:24px;height:24px}.components-dropdown-menu__menu .components-menu-item__button,.components-dropdown-menu__menu .components-menu-item__button.components-button{min-height:36px;height:auto;text-align:right;padding-right:8px;padding-left:8px}.components-dropdown-menu__menu .components-menu-item__button.components-button .components-menu-item__info-wrapper,.components-dropdown-menu__menu .components-menu-item__button .components-menu-item__info-wrapper{max-width:calc(100% - 32px)}.components-dropdown-menu__menu .components-menu-group{padding:12px;margin:0 -12px}.components-dropdown-menu__menu .components-menu-group:first-child{margin-top:-12px}.components-dropdown-menu__menu .components-menu-group:last-child{margin-bottom:-12px}.components-dropdown-menu__menu .components-menu-group+.components-menu-group{margin-top:0;border-top:1px solid #ccc;padding:12px}.is-alternate .components-dropdown-menu__menu .components-menu-group+.components-menu-group{border-color:#1e1e1e}.components-external-link__icon{width:1.4em;height:1.4em;margin:-.2em .1em 0;vertical-align:middle;fill:currentColor}.components-font-size-picker__controls{max-width:248px;display:flex;flex-wrap:wrap;align-items:center;margin-bottom:24px}.components-font-size-picker__controls .components-font-size-picker__number{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;display:inline-block;font-weight:500;height:30px;margin:8px 0 0 8px;width:54px}@media (prefers-reduced-motion:reduce){.components-font-size-picker__controls .components-font-size-picker__number{transition-duration:0s}}@media (min-width:600px){.components-font-size-picker__controls .components-font-size-picker__number{font-size:13px;line-height:normal}}.components-font-size-picker__controls .components-font-size-picker__number: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}.components-font-size-picker__controls .components-font-size-picker__number::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-font-size-picker__controls .components-font-size-picker__number::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-font-size-picker__controls .components-font-size-picker__number:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-font-size-picker__controls .components-font-size-picker__number::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-font-size-picker__controls .components-font-size-picker__number::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-font-size-picker__controls .components-font-size-picker__number:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-font-size-picker__controls .components-font-size-picker__number[value=""]+.components-button{cursor:default;opacity:.3;pointer-events:none}.components-font-size-picker__controls .components-font-size-picker__number-container{display:flex;flex-direction:column}.components-font-size-picker__controls .components-font-size-picker__select{margin-left:8px}.components-font-size-picker__controls .components-color-palette__clear{height:30px;margin-top:26px}.components-font-size-picker__custom-input .components-range-control__slider+.dashicon{width:30px;height:30px}.components-font-size-picker{border:0;padding:0;margin:0}.components-form-toggle{position:relative;display:inline-block}.components-form-toggle .components-form-toggle__track{content:"";display:inline-block;box-sizing:border-box;vertical-align:top;background-color:#fff;border:1px solid #1e1e1e;width:36px;height:18px;border-radius:9px;transition:background .2s ease}@media (prefers-reduced-motion:reduce){.components-form-toggle .components-form-toggle__track{transition-duration:0s}}.components-form-toggle .components-form-toggle__thumb{display:block;position:absolute;box-sizing:border-box;top:3px;right:3px;width:12px;height:12px;border-radius:50%;transition:transform .1s ease;background-color:#1e1e1e;border:5px solid #1e1e1e}@media (prefers-reduced-motion:reduce){.components-form-toggle .components-form-toggle__thumb{transition-duration:0s}}.components-form-toggle.is-checked .components-form-toggle__track{background-color:#007cba;background-color:var(--wp-admin-theme-color);border:9px solid transparent}.components-form-toggle .components-form-toggle__input:focus+.components-form-toggle__track{box-shadow:0 0 0 2px #fff,0 0 0 3.5px #007cba;box-shadow:0 0 0 2px #fff,0 0 0 3.5px var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:2px}.components-form-toggle.is-checked .components-form-toggle__thumb{background-color:#fff;border-width:0;transform:translateX(-18px)}.components-disabled .components-form-toggle{opacity:.3}.components-form-toggle input.components-form-toggle__input[type=checkbox]{position:absolute;top:0;right:0;width:100%;height:100%;opacity:0;margin:0;padding:0;z-index:1;border:none}.components-form-toggle input.components-form-toggle__input[type=checkbox]:checked{background:none}.components-form-toggle input.components-form-toggle__input[type=checkbox]:before{content:""}.components-form-token-field__input-container{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;border:1px solid #757575;font-size:16px;line-height:normal;display:flex;flex-wrap:wrap;align-items:flex-start;width:100%;margin:0 0 8px;padding:4px;cursor:text}@media (prefers-reduced-motion:reduce){.components-form-token-field__input-container{transition-duration:0s}}@media (min-width:600px){.components-form-token-field__input-container{font-size:13px;line-height:normal}}.components-form-token-field__input-container: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}.components-form-token-field__input-container::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-form-token-field__input-container::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-form-token-field__input-container:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-form-token-field__input-container::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-form-token-field__input-container::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-form-token-field__input-container:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-form-token-field__input-container.is-disabled{background:#ddd;border-color:#ddd}.components-form-token-field__input-container.is-active{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}.components-form-token-field__input-container input[type=text].components-form-token-field__input{display:inline-block;width:100%;max-width:100%;margin-right:4px;padding:0;min-height:24px;background:inherit;border:0;color:#1e1e1e;box-shadow:none}.components-form-token-field.is-active .components-form-token-field__input-container input[type=text].components-form-token-field__input,.components-form-token-field__input-container input[type=text].components-form-token-field__input:focus{outline:none;box-shadow:none}.components-form-token-field__input-container .components-form-token-field__token+input[type=text].components-form-token-field__input{width:auto}.components-form-token-field__label{display:inline-block;margin-bottom:4px}.components-form-token-field__help{font-style:italic}.components-form-token-field__token{font-size:13px;display:flex;margin:2px 0 2px 4px;color:#1e1e1e;max-width:100%}.components-form-token-field__token.is-success .components-form-token-field__remove-token,.components-form-token-field__token.is-success .components-form-token-field__token-text{background:#4ab866}.components-form-token-field__token.is-error .components-form-token-field__remove-token,.components-form-token-field__token.is-error .components-form-token-field__token-text{background:#cc1818}.components-form-token-field__token.is-validating .components-form-token-field__remove-token,.components-form-token-field__token.is-validating .components-form-token-field__token-text{color:#757575}.components-form-token-field__token.is-borderless{position:relative;padding:0 0 0 16px}.components-form-token-field__token.is-borderless .components-form-token-field__token-text{background:transparent;color:#007cba;color:var(--wp-admin-theme-color)}.components-form-token-field__token.is-borderless .components-form-token-field__remove-token{background:transparent;color:#757575;position:absolute;top:1px;left:0}.components-form-token-field__token.is-borderless.is-success .components-form-token-field__token-text{color:#4ab866}.components-form-token-field__token.is-borderless.is-error .components-form-token-field__token-text{color:#cc1818;border-radius:0 4px 4px 0;padding:0 6px 0 4px}.components-form-token-field__token.is-borderless.is-validating .components-form-token-field__token-text{color:#1e1e1e}.components-form-token-field__token.is-disabled .components-form-token-field__remove-token{cursor:default}.components-form-token-field__remove-token.components-button,.components-form-token-field__token-text{display:inline-block;line-height:24px;height:auto;background:#ddd;transition:all .2s cubic-bezier(.4,1,.4,1)}@media (prefers-reduced-motion:reduce){.components-form-token-field__remove-token.components-button,.components-form-token-field__token-text{transition-duration:0s;animation-duration:1ms}}.components-form-token-field__token-text{border-radius:0 12px 12px 0;padding:0 8px 0 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.components-form-token-field__remove-token.components-button{cursor:pointer;border-radius:12px 0 0 12px;padding:0 2px;color:#757575;line-height:10px;overflow:initial}.components-form-token-field__remove-token.components-button:hover{color:#1e1e1e}.components-form-token-field__suggestions-list{flex:1 0 100%;min-width:100%;max-height:9em;overflow-y:auto;transition:all .15s ease-in-out;list-style:none;border-top:1px solid #757575;margin:4px -4px -4px;padding:0}@media (prefers-reduced-motion:reduce){.components-form-token-field__suggestions-list{transition-duration:0s}}.components-form-token-field__suggestion{color:#757575;display:block;font-size:13px;padding:4px 8px;margin:0;cursor:pointer}.components-form-token-field__suggestion.is-selected{background:#007cba;background:var(--wp-admin-theme-color);color:#fff}.components-form-token-field__suggestion-match{text-decoration:underline}@media (min-width:600px){.components-guide{width:600px}}.components-guide .components-modal__header{background:none;border-bottom:none;width:100%;padding:0;margin:0}.components-guide .components-modal__header .components-button{align-self:flex-start;margin:8px 0 0 8px;position:static}.components-guide .components-modal__header .components-button:hover svg{fill:#fff}.components-guide__container{display:flex;flex-direction:column;justify-content:space-between;margin-top:-60px;min-height:100%}.components-guide__page{display:flex;flex-direction:column;justify-content:center;position:relative}@media (min-width:600px){.components-guide__page{min-height:300px}}.components-guide__footer{align-content:center;display:flex;height:30px;justify-content:center;margin:0 0 24px;padding:0 32px;position:relative;width:100%}@media (max-width:600px){.components-guide__footer{position:absolute;bottom:0}}.components-guide__page-control{margin:8px 0;text-align:center}.components-guide__page-control li{display:inline-block}.components-guide__page-control .components-button{height:30px;min-width:20px}.components-guide .components-modal__content{padding:0}.components-modal__frame.components-guide{border:none;min-width:312px;height:80vh;max-height:575px}@media (max-width:600px){.components-modal__frame.components-guide{bottom:5%;right:16px;left:16px;top:5%;margin:0 auto}}.components-button.components-guide__back-button,.components-button.components-guide__finish-button,.components-button.components-guide__forward-button{height:30px;position:absolute}.components-button.components-guide__back-button,.components-button.components-guide__forward-button{font-size:13px;padding:4px 2px}.components-button.components-guide__back-button.has-text svg,.components-button.components-guide__forward-button.has-text svg{margin:0}.components-button.components-guide__back-button:hover,.components-button.components-guide__forward-button:hover{text-decoration:underline}.components-button.components-guide__back-button{right:32px}.components-button.components-guide__forward-button{left:32px;color:#1386bf;font-weight:700}.components-button.components-guide__finish-button{left:32px}.components-button.components-guide__inline-finish-button{display:none}.components-navigate-regions.is-focusing-regions [role=region]{position:relative}.components-navigate-regions.is-focusing-regions [role=region]:focus:after{content:"";position:absolute;top:0;bottom:0;right:0;left:0;pointer-events:none;outline:4px solid transparent;box-shadow:inset 0 0 0 4px #007cba;box-shadow:inset 0 0 0 4px var(--wp-admin-theme-color)}@supports (outline-offset:1px){.components-navigate-regions.is-focusing-regions [role=region]:focus:after{content:none}.components-navigate-regions.is-focusing-regions [role=region]:focus{outline-style:solid;outline-color:#007cba;outline-color:var(--wp-admin-theme-color);outline-width:4px;outline-offset:-4px}}.components-menu-group+.components-menu-group{margin-top:8px;padding-top:8px;border-top:1px solid #1e1e1e}.components-menu-group__label{padding:0 8px;margin-top:4px;margin-bottom:12px;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500}.components-menu-item__button,.components-menu-item__button.components-button{width:100%}.components-menu-item__button.components-button .components-menu-items__item-icon,.components-menu-item__button .components-menu-items__item-icon{margin-left:-2px;margin-right:auto;display:inline-block;flex:0 0 auto}.components-menu-item__button.components-button .components-menu-item__shortcut+.components-menu-items__item-icon,.components-menu-item__button .components-menu-item__shortcut+.components-menu-items__item-icon{margin-right:8px}.components-menu-item__button .block-editor-block-icon,.components-menu-item__button.components-button .block-editor-block-icon{margin-right:-2px;margin-left:8px}.components-menu-item__info-wrapper{display:flex;flex-direction:column}.components-menu-item__info{margin-top:4px;font-size:12px;color:#757575}.components-menu-item__shortcut{-ms-grid-row-align:center;align-self:center;margin-left:0;margin-right:auto;padding-right:12px;color:currentColor;display:none}@media (min-width:480px){.components-menu-item__shortcut{display:inline}}.components-menu-items-choice.components-button svg,.components-menu-items-choice svg{margin-left:12px}.components-menu-items-choice.components-button.has-icon,.components-menu-items-choice.has-icon{padding-right:12px}.components-modal__screen-overlay{position:fixed;top:0;left:0;bottom:0;right:0;background-color:rgba(0,0,0,.7);z-index:100000;animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-modal__screen-overlay{animation-duration:1ms}}.components-modal__frame{position:absolute;top:0;left:0;bottom:0;right:0;box-sizing:border-box;margin:0;border:1px solid #ddd;background:#fff;box-shadow:0 3px 30px rgba(0,0,0,.2);overflow:auto}@media (min-width:600px){.components-modal__frame{top:50%;left:auto;bottom:auto;right:50%;min-width:360px;max-width:calc(100% - 32px);max-height:calc(100% - 120px);transform:translate(50%,-50%);animation:components-modal__appear-animation .1s ease-out;animation-fill-mode:forwards}}@media (min-width:600px) and (prefers-reduced-motion:reduce){.components-modal__frame{animation-duration:1ms}}@keyframes components-modal__appear-animation{0%{margin-top:32px}to{margin-top:0}}.components-modal__header{box-sizing:border-box;border-bottom:1px solid #ddd;padding:0 24px;display:flex;flex-direction:row;justify-content:space-between;background:#fff;align-items:center;height:60px;z-index:10;position:relative;position:-webkit-sticky;position:sticky;top:0;margin:0 -24px 24px}@supports (-ms-ime-align:auto){.components-modal__header{position:fixed;width:100%}}.components-modal__header .components-modal__header-heading{font-size:1rem;font-weight:600}.components-modal__header h1{line-height:1;margin:0}.components-modal__header .components-button{position:relative;right:8px}.components-modal__header-heading-container{align-items:center;flex-grow:1;display:flex;flex-direction:row;justify-content:left}.components-modal__header-icon-container{display:inline-block}.components-modal__header-icon-container svg{max-width:36px;max-height:36px;padding:8px}.components-modal__content{box-sizing:border-box;height:100%;padding:0 24px 24px}@supports (-ms-ime-align:auto){.components-modal__content{padding-top:60px}}.components-notice{display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;background-color:#fff;border-right:4px solid #007cba;border-right:4px solid var(--wp-admin-theme-color);margin:5px 15px 2px;padding:8px 12px;align-items:center}.components-notice.is-dismissible{padding-left:36px;position:relative}.components-notice.is-success{border-right-color:#4ab866;background-color:#eff9f1}.components-notice.is-warning{border-right-color:#f0b849;background-color:#fef8ee}.components-notice.is-error{border-right-color:#cc1818;background-color:#f4a2a2}.components-notice__content{flex-grow:1;margin:4px 0 4px 25px}.components-notice__action.components-button,.components-notice__action.components-button.is-link{margin-right:12px}.components-notice__action.components-button.is-secondary{vertical-align:initial}.components-notice__dismiss{color:#757575;align-self:flex-start;flex-shrink:0}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):focus,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):active,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{color:#1e1e1e;background-color:transparent}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{box-shadow:none}.components-notice-list{max-width:100vw;box-sizing:border-box;z-index:29}.components-notice-list .components-notice__content{margin-top:12px;margin-bottom:12px;line-height:2}.components-notice-list .components-notice__action.components-button{display:block;margin-right:0;margin-top:8px}.components-panel{background:#fff;border:1px solid #e0e0e0}.components-panel>.components-panel__body:first-child,.components-panel>.components-panel__header:first-child{margin-top:-1px}.components-panel>.components-panel__body:last-child,.components-panel>.components-panel__header:last-child{border-bottom-width:0}.components-panel+.components-panel{margin-top:-1px}.components-panel__body{border-top:1px solid #e0e0e0;border-bottom:1px solid #e0e0e0}.components-panel__body h3{margin:0 0 .5em}.components-panel__body.is-opened{padding:16px}.components-panel__header{display:flex;justify-content:space-between;align-items:center;padding:0 16px;height:48px;border-top:1px solid #ddd;border-bottom:1px solid #ddd}.components-panel__header h2{margin:0;font-size:inherit;color:inherit}.components-panel__body+.components-panel__body,.components-panel__body+.components-panel__header,.components-panel__header+.components-panel__body,.components-panel__header+.components-panel__header{margin-top:-1px}.components-panel__body>.components-panel__body-title{display:block;padding:0;font-size:inherit;margin-top:0;margin-bottom:0;transition:background .1s ease-in-out}@media (prefers-reduced-motion:reduce){.components-panel__body>.components-panel__body-title{transition-duration:0s}}.components-panel__body.is-opened>.components-panel__body-title{margin:-16px -16px 5px}.components-panel__body>.components-panel__body-title:hover{background:#f0f0f0;border:none}.components-panel__body-toggle.components-button{position:relative;padding:16px;outline:none;width:100%;font-weight:500;text-align:right;color:#1e1e1e;border:none;box-shadow:none;transition:background .1s ease-in-out;height:auto}@media (prefers-reduced-motion:reduce){.components-panel__body-toggle.components-button{transition-duration:0s}}.components-panel__body-toggle.components-button:focus{box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color);border-radius:0}.components-panel__body-toggle.components-button .components-panel__arrow{position:absolute;left:16px;top:50%;transform:translateY(-50%);color:#1e1e1e;fill:currentColor;transition:color .1s ease-in-out}@media (prefers-reduced-motion:reduce){.components-panel__body-toggle.components-button .components-panel__arrow{transition-duration:0s}}body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right{transform:scaleX(-1);-ms-filter:fliph;filter:FlipH;margin-top:-10px}.components-panel__icon{color:#757575;margin:-2px 6px -2px 0}.components-panel__body-toggle-icon{margin-left:-5px}.components-panel__color-title{float:right;height:19px}.components-panel__row{display:flex;justify-content:space-between;align-items:center;margin-top:8px;min-height:36px}.components-panel__row select{min-width:0}.components-panel__row label{margin-left:12px;flex-shrink:0;max-width:75%}.components-panel__row:empty,.components-panel__row:first-of-type{margin-top:0}.components-panel .circle-picker{padding-bottom:20px}.components-placeholder.components-placeholder{box-sizing:border-box;position:relative;padding:1em;min-height:200px;width:100%;text-align:right;margin:0;color:#1e1e1e;-moz-font-smoothing:subpixel-antialiased;-webkit-font-smoothing:subpixel-antialiased;border-radius:2px;background-color:#fff;box-shadow:inset 0 0 0 1px #1e1e1e;outline:1px solid transparent}@supports ((position:-webkit-sticky) or (position:sticky)){.components-placeholder.components-placeholder{display:flex;flex-direction:column;justify-content:center;align-items:flex-start}}.components-placeholder.components-placeholder .components-base-control__label{font-size:13px}.components-placeholder__error,.components-placeholder__fieldset,.components-placeholder__instructions,.components-placeholder__label{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-placeholder__label{display:flex;font-weight:600;margin-bottom:16px;align-items:center}.components-placeholder__label .block-editor-block-icon,.components-placeholder__label .dashicon,.components-placeholder__label>svg{fill:currentColor;margin-left:1ch}.components-placeholder__fieldset,.components-placeholder__fieldset form{display:flex;flex-direction:row;width:100%;flex-wrap:wrap}.components-placeholder__fieldset form p,.components-placeholder__fieldset p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-placeholder__fieldset.is-column-layout,.components-placeholder__fieldset.is-column-layout form{flex-direction:column}.components-placeholder__input[type=url]{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;margin:0 0 0 8px;flex:1 1 auto}@media (prefers-reduced-motion:reduce){.components-placeholder__input[type=url]{transition-duration:0s}}@media (min-width:600px){.components-placeholder__input[type=url]{font-size:13px;line-height:normal}}.components-placeholder__input[type=url]: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}.components-placeholder__input[type=url]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-placeholder__input[type=url]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-placeholder__input[type=url]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-placeholder__input[type=url]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-placeholder__input[type=url]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-placeholder__input[type=url]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-placeholder__instructions{margin-bottom:1em}.components-placeholder__error{margin-top:1em;width:100%}.components-placeholder__preview img{margin:3%;width:50%}.components-placeholder__fieldset .components-button{margin-left:12px;margin-bottom:12px}.components-placeholder__fieldset .components-button:last-child{margin-bottom:0;margin-left:0}.components-placeholder__fieldset .components-button:not(.is-link)~.components-button.is-link{margin-right:10px;margin-left:10px}.components-placeholder__fieldset .components-button:not(.is-link)~.components-button.is-link:last-child{margin-left:0}.components-placeholder.is-large .components-placeholder__label{font-size:18pt;font-weight:400}.components-placeholder.is-medium .components-placeholder__instructions,.components-placeholder.is-small .components-placeholder__instructions{display:none}.components-placeholder.is-medium .components-placeholder__fieldset,.components-placeholder.is-medium .components-placeholder__fieldset form,.components-placeholder.is-small .components-placeholder__fieldset,.components-placeholder.is-small .components-placeholder__fieldset form{flex-direction:column}.components-placeholder.is-medium .components-placeholder__fieldset .components-button,.components-placeholder.is-small .components-placeholder__fieldset .components-button{margin-left:auto}.components-placeholder.is-small .components-button{padding:0 8px 2px}.components-popover{position:fixed;z-index:1000000;top:0;left:0;opacity:0}.components-popover.is-expanded,.components-popover[data-x-axis][data-y-axis]{opacity:1}.components-popover.is-expanded{top:0;left:0;right:0;bottom:0;z-index:1000000!important}.components-popover:not(.is-without-arrow){margin-left:2px}.components-popover:not(.is-without-arrow):before{border:8px solid #ccc}.components-popover:not(.is-without-arrow).is-alternate:before{border-color:#1e1e1e}.components-popover:not(.is-without-arrow):after{border:8px solid #fff}.components-popover:not(.is-without-arrow):after,.components-popover:not(.is-without-arrow):before{content:"";position:absolute;height:0;width:0;line-height:0}.components-popover:not(.is-without-arrow)[data-y-axis=top]{margin-top:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=top]:before{bottom:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=top]:after{bottom:-6px}.components-popover:not(.is-without-arrow)[data-y-axis=top]:after,.components-popover:not(.is-without-arrow)[data-y-axis=top]:before{border-bottom:none;border-left-color:transparent;border-right-color:transparent;border-top-style:solid;margin-left:-10px}.components-popover:not(.is-without-arrow)[data-y-axis=bottom]{margin-top:8px}.components-popover:not(.is-without-arrow)[data-y-axis=bottom]:before{top:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=bottom]:after{top:-6px}.components-popover:not(.is-without-arrow)[data-y-axis=bottom]:after,.components-popover:not(.is-without-arrow)[data-y-axis=bottom]:before{border-bottom-style:solid;border-left-color:transparent;border-right-color:transparent;border-top:none;margin-left:-10px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=left]{margin-left:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=left]:before{right:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=left]:after{right:-6px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=left]:after,.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=left]:before{border-bottom-color:transparent;border-left-style:solid;border-right:none;border-top-color:transparent}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=right]{margin-left:8px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=right]:before{left:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=right]:after{left:-6px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=right]:after,.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=right]:before{border-bottom-color:transparent;border-left:none;border-right-style:solid;border-top-color:transparent}.components-popover[data-y-axis=top]{bottom:100%}.components-popover[data-y-axis=bottom]{top:100%}.components-popover[data-y-axis=middle]{align-items:center;display:flex}.components-popover.is-from-top{margin-top:12px}.components-popover.is-from-bottom{margin-top:-12px}.components-popover.is-from-left:not(.is-from-top):not(.is-from-bottom){margin-left:12px}.components-popover.is-from-right:not(.is-from-top):not(.is-from-bottom){margin-right:12px}.components-popover__content{height:100%;background:#fff;border:1px solid #ccc;box-shadow:0 2px 6px rgba(0,0,0,.05);border-radius:2px}.is-alternate .components-popover__content{border:1px solid #1e1e1e;box-shadow:none}.components-popover .components-popover__content{position:absolute;height:auto;overflow-y:auto;min-width:260px}.components-popover.is-expanded .components-popover__content{position:static;height:calc(100% - 48px);overflow-y:visible;min-width:auto;border:none;border-top:1px solid #1e1e1e}.components-popover[data-y-axis=top] .components-popover__content{bottom:100%}.components-popover[data-x-axis=center] .components-popover__content{left:50%;transform:translateX(-50%)}.components-popover[data-x-axis=right] .components-popover__content{position:absolute;left:100%}.components-popover:not([data-y-axis=middle])[data-x-axis=right] .components-popover__content{margin-left:-25px}.components-popover[data-x-axis=left] .components-popover__content{position:absolute;right:100%}.components-popover:not([data-y-axis=middle])[data-x-axis=left] .components-popover__content{margin-right:-25px}.components-popover__header{align-items:center;background:#fff;display:flex;height:48px;justify-content:space-between;padding:0 8px 0 16px}.components-popover__header-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.components-popover__close.components-button{z-index:5}.components-radio-control{display:flex;flex-direction:column}.components-radio-control .components-base-control__help{margin-top:0}.components-radio-control .components-base-control__field{margin-bottom:0}.components-radio-control__option:not(:last-child){margin-bottom:4px}.components-radio-control__input[type=radio]{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;font-size:16px;line-height:normal;border:1px solid #1e1e1e;transition:none;border-radius:50%;margin-top:0;margin-left:6px}@media (prefers-reduced-motion:reduce){.components-radio-control__input[type=radio]{transition-duration:0s}}@media (min-width:600px){.components-radio-control__input[type=radio]{font-size:13px;line-height:normal}}.components-radio-control__input[type=radio]: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)}.components-radio-control__input[type=radio]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-radio-control__input[type=radio]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-radio-control__input[type=radio]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-radio-control__input[type=radio]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-radio-control__input[type=radio]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-radio-control__input[type=radio]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-radio-control__input[type=radio]:checked:before{width:7px;height:7px;margin:8px 8px 0 0;background-color:#fff;border:3px solid #fff}@media (min-width:782px){.components-radio-control__input[type=radio]:checked:before{width:6px;height:6px;margin:4px 4px 0 0}}.components-radio-control__input[type=radio]:focus{box-shadow:0 0 0 2px #fff,0 0 0 3.5px #007cba;box-shadow:0 0 0 2px #fff,0 0 0 3.5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-radio-control__input[type=radio]:checked{background:#007cba;background:var(--wp-admin-theme-color);border-color:#007cba;border-color:var(--wp-admin-theme-color)}.components-resizable-box__handle{display:none;width:23px;height:23px}.components-resizable-box__container.has-show-handle .components-resizable-box__handle{display:block}.components-resizable-box__handle:after{display:block;content:"";width:15px;height:15px;border:2px solid #fff;border-radius:50%;background:#007cba;background:var(--wp-admin-theme-color);cursor:inherit;position:absolute;top:calc(50% - 8px);left:calc(50% - 8px)}.components-resizable-box__side-handle:before{display:block;content:"";width:7px;height:7px;border:2px solid #fff;background:#007cba;background:var(--wp-admin-theme-color);cursor:inherit;position:absolute;top:calc(50% - 4px);left:calc(50% - 4px);transition:transform .1s ease-in;opacity:0}@media (prefers-reduced-motion:reduce){.components-resizable-box__side-handle:before{transition-duration:0s}}.is-dark-theme .components-resizable-box__handle:after,.is-dark-theme .components-resizable-box__side-handle:before{border-color:#ddd}.components-resizable-box__corner-handle,.components-resizable-box__handle,.components-resizable-box__side-handle{z-index:2}.components-resizable-box__side-handle.components-resizable-box__handle-bottom,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:before,.components-resizable-box__side-handle.components-resizable-box__handle-top,.components-resizable-box__side-handle.components-resizable-box__handle-top:before{width:100%;right:0;border-right:0;border-left:0}.components-resizable-box__side-handle.components-resizable-box__handle-left,.components-resizable-box__side-handle.components-resizable-box__handle-left:before,.components-resizable-box__side-handle.components-resizable-box__handle-right,.components-resizable-box__side-handle.components-resizable-box__handle-right:before{height:100%;top:0;border-top:0;border-bottom:0}.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation:components-resizable-box__top-bottom-animation .1s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation-duration:1ms}}.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before{animation:components-resizable-box__left-right-animation .1s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before{animation-duration:1ms}}@media not all and (min-resolution:0.001dpcm){@supports (-webkit-appearance:none){.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation:none}.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before{animation:none}}}@keyframes components-resizable-box__top-bottom-animation{0%{transform:scaleX(0);opacity:0}to{transform:scaleX(1);opacity:1}}@keyframes components-resizable-box__left-right-animation{0%{transform:scaleY(0);opacity:0}to{transform:scaleY(1);opacity:1}}.components-resizable-box__handle-right{right:-11.5px}.components-resizable-box__handle-left{left:-11.5px}.components-resizable-box__handle-top{top:-11.5px}.components-resizable-box__handle-bottom{bottom:-11.5px}.components-responsive-wrapper{position:relative;max-width:100%}.components-responsive-wrapper,.components-responsive-wrapper>span{display:block}.components-responsive-wrapper__content{position:absolute;top:0;left:0;bottom:0;right:0;width:100%;height:100%;margin:auto}.components-sandbox{overflow:hidden}iframe.components-sandbox{width:100%}body.lockscroll,html.lockscroll{overflow:hidden}.components-select-control__input{background:#fff;height:36px;line-height:36px;margin:1px;outline:0;width:100%;-webkit-tap-highlight-color:rgba(0,0,0,0)!important}@media (min-width:782px){.components-select-control__input{height:28px;line-height:28px}}@media (max-width:782px){.components-base-control .components-base-control__field .components-select-control__input{font-size:16px}}.components-snackbar{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;background-color:#1e1e1e;border-radius:2px;box-shadow:0 2px 4px rgba(0,0,0,.3);color:#fff;padding:16px 24px;width:100%;max-width:600px;box-sizing:border-box;cursor:pointer}@media (min-width:600px){.components-snackbar{width:fit-content}}.components-snackbar:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px #007cba;box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color)}.components-snackbar__action.components-button{margin-right:32px;color:#fff;height:auto;flex-shrink:0;line-height:1.4;padding:0}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary){text-decoration:underline;background-color:transparent}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):focus{color:#fff;box-shadow:none;outline:1px dotted #fff}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{color:#007cba;color:var(--wp-admin-theme-color)}.components-snackbar__content{display:flex;align-items:baseline;justify-content:space-between;line-height:1.4}.components-snackbar-list{position:absolute;z-index:100000;width:100%;box-sizing:border-box}.components-snackbar-list__notice-container{position:relative;padding-top:8px}.components-spinner{display:inline-block;background-color:#949494;width:18px;height:18px;opacity:.7;margin:5px 11px 0;border-radius:100%;position:relative}.components-spinner:before{content:"";position:absolute;background-color:#fff;top:3px;left:3px;width:4px;height:4px;border-radius:100%;transform-origin:6px 6px;animation:components-spinner__animation 1s linear infinite}@keyframes components-spinner__animation{0%{transform:rotate(0deg)}to{transform:rotate(-1turn)}}.components-tab-panel__tabs{display:flex;align-items:stretch}.components-tab-panel__tabs-item{background:transparent;border:none;box-shadow:none;border-radius:0;cursor:pointer;height:48px;padding:3px 16px;margin-right:0;font-weight:500;transition:box-shadow .1s linear;box-sizing:border-box}.components-tab-panel__tabs-item:after{content:attr(data-label);display:block;height:0;overflow:hidden;speak:none;visibility:hidden}.components-tab-panel__tabs-item:focus:not(:disabled){box-shadow:inset 0 1.5px #007cba;box-shadow:inset 0 1.5px var(--wp-admin-theme-color)}.components-tab-panel__tabs-item.is-active{box-shadow:inset 0 0 0 1.5px transparent,inset 0 -4px 0 0 #007cba;box-shadow:inset 0 0 0 1.5px transparent,inset 0 -4px 0 0 var(--wp-admin-theme-color);position:relative}.components-tab-panel__tabs-item.is-active:before{content:"";position:absolute;top:0;bottom:1px;left:0;right:0;border-bottom:4px solid transparent}.components-tab-panel__tabs-item:focus{box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color)}.components-tab-panel__tabs-item.is-active:focus{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 -4px 0 0 #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 -4px 0 0 var(--wp-admin-theme-color)}.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{width:100%;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){.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{transition-duration:0s}}@media (min-width:600px){.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{font-size:13px;line-height:normal}}.components-text-control__input:focus,.components-text-control__input[type=color]:focus,.components-text-control__input[type=date]:focus,.components-text-control__input[type=datetime-local]:focus,.components-text-control__input[type=datetime]:focus,.components-text-control__input[type=email]:focus,.components-text-control__input[type=month]:focus,.components-text-control__input[type=number]:focus,.components-text-control__input[type=password]:focus,.components-text-control__input[type=tel]:focus,.components-text-control__input[type=text]:focus,.components-text-control__input[type=time]:focus,.components-text-control__input[type=url]:focus,.components-text-control__input[type=week]: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}.components-text-control__input::-webkit-input-placeholder,.components-text-control__input[type=color]::-webkit-input-placeholder,.components-text-control__input[type=date]::-webkit-input-placeholder,.components-text-control__input[type=datetime-local]::-webkit-input-placeholder,.components-text-control__input[type=datetime]::-webkit-input-placeholder,.components-text-control__input[type=email]::-webkit-input-placeholder,.components-text-control__input[type=month]::-webkit-input-placeholder,.components-text-control__input[type=number]::-webkit-input-placeholder,.components-text-control__input[type=password]::-webkit-input-placeholder,.components-text-control__input[type=tel]::-webkit-input-placeholder,.components-text-control__input[type=text]::-webkit-input-placeholder,.components-text-control__input[type=time]::-webkit-input-placeholder,.components-text-control__input[type=url]::-webkit-input-placeholder,.components-text-control__input[type=week]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-text-control__input::-moz-placeholder,.components-text-control__input[type=color]::-moz-placeholder,.components-text-control__input[type=date]::-moz-placeholder,.components-text-control__input[type=datetime-local]::-moz-placeholder,.components-text-control__input[type=datetime]::-moz-placeholder,.components-text-control__input[type=email]::-moz-placeholder,.components-text-control__input[type=month]::-moz-placeholder,.components-text-control__input[type=number]::-moz-placeholder,.components-text-control__input[type=password]::-moz-placeholder,.components-text-control__input[type=tel]::-moz-placeholder,.components-text-control__input[type=text]::-moz-placeholder,.components-text-control__input[type=time]::-moz-placeholder,.components-text-control__input[type=url]::-moz-placeholder,.components-text-control__input[type=week]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-text-control__input:-ms-input-placeholder,.components-text-control__input[type=color]:-ms-input-placeholder,.components-text-control__input[type=date]:-ms-input-placeholder,.components-text-control__input[type=datetime-local]:-ms-input-placeholder,.components-text-control__input[type=datetime]:-ms-input-placeholder,.components-text-control__input[type=email]:-ms-input-placeholder,.components-text-control__input[type=month]:-ms-input-placeholder,.components-text-control__input[type=number]:-ms-input-placeholder,.components-text-control__input[type=password]:-ms-input-placeholder,.components-text-control__input[type=tel]:-ms-input-placeholder,.components-text-control__input[type=text]:-ms-input-placeholder,.components-text-control__input[type=time]:-ms-input-placeholder,.components-text-control__input[type=url]:-ms-input-placeholder,.components-text-control__input[type=week]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-text-control__input::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=color]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=date]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=datetime-local]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=datetime]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=email]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=month]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=number]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=password]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=tel]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=text]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=time]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=url]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=week]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-text-control__input::-moz-placeholder,.is-dark-theme .components-text-control__input[type=color]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=date]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=datetime-local]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=datetime]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=email]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=month]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=number]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=password]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=tel]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=text]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=time]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=url]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=week]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-text-control__input:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=color]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=date]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=datetime-local]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=datetime]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=email]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=month]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=number]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=password]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=tel]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=text]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=time]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=url]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=week]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-textarea-control__input{width:100%;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){.components-textarea-control__input{transition-duration:0s}}@media (min-width:600px){.components-textarea-control__input{font-size:13px;line-height:normal}}.components-textarea-control__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}.components-textarea-control__input::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-textarea-control__input::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-textarea-control__input:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-textarea-control__input::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-textarea-control__input::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-textarea-control__input:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-tip{display:flex;color:#757575}.components-tip svg{-ms-grid-row-align:center;align-self:center;fill:#f0b849;flex-shrink:0;margin-left:16px}.components-tip p{margin:0}.components-toggle-control .components-base-control__field{display:flex;margin-bottom:12px;line-height:normal;align-items:center}.components-toggle-control .components-base-control__field .components-form-toggle{margin-left:12px}.components-toggle-control .components-base-control__field .components-toggle-control__label{display:block}.components-accessible-toolbar{display:inline-flex;border:1px solid #1e1e1e;border-radius:2px;flex-shrink:0}.components-accessible-toolbar>.components-toolbar-group:last-child{border-left:none}.components-accessible-toolbar .components-button,.components-toolbar .components-button{position:relative;height:48px;z-index:1;padding-right:16px;padding-left:16px}.components-accessible-toolbar .components-button:focus:enabled,.components-toolbar .components-button:focus:enabled{box-shadow:none;outline:none}.components-accessible-toolbar .components-button:before,.components-toolbar .components-button:before{content:"";position:absolute;display:block;border-radius:2px;height:32px;right:8px;left:8px;z-index:-1;animation:components-button__appear-animation .1s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-accessible-toolbar .components-button:before,.components-toolbar .components-button:before{animation-duration:1ms}}.components-accessible-toolbar .components-button svg,.components-toolbar .components-button svg{position:relative;margin-right:auto;margin-left:auto}.components-accessible-toolbar .components-button.is-pressed,.components-toolbar .components-button.is-pressed{background:transparent}.components-accessible-toolbar .components-button.is-pressed:hover,.components-toolbar .components-button.is-pressed:hover{background:transparent}.components-accessible-toolbar .components-button.is-pressed:before,.components-toolbar .components-button.is-pressed:before{background:#1e1e1e}.components-accessible-toolbar .components-button:focus:before,.components-toolbar .components-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}.components-accessible-toolbar .components-button.has-icon,.components-toolbar .components-button.has-icon{padding-right:8px;padding-left:8px;min-width:48px;justify-content:center}.components-accessible-toolbar .components-button.components-tab-button,.components-toolbar .components-button.components-tab-button{font-weight:500}.components-accessible-toolbar .components-button.components-tab-button span,.components-toolbar .components-button.components-tab-button span{display:inline-block;padding-right:0;padding-left:0;position:relative}@keyframes components-button__appear-animation{0%{transform:scaleY(0)}to{transform:scaleY(1)}}.components-toolbar__control.components-button{position:relative}.components-toolbar__control.components-button[data-subscript] svg{padding:5px 0 5px 10px}.components-toolbar__control.components-button[data-subscript]:after{content:attr(data-subscript);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:600;line-height:12px;position:absolute;left:8px;bottom:10px}.components-toolbar__control.components-button:active:before{display:none}.components-toolbar__control.components-button:not(:disabled).is-pressed[data-subscript]:after{color:#fff}.components-toolbar-group{min-height:48px;border-left:1px solid #1e1e1e;background-color:#fff;display:inline-flex;flex-shrink:0;flex-wrap:wrap;line-height:0}.components-toolbar-group .components-toolbar-group.components-toolbar-group{border-width:0;margin:0}.components-toolbar{min-height:48px;margin:0;border:1px solid #1e1e1e;background-color:#fff;display:inline-flex;flex-shrink:0;flex-wrap:wrap}.components-toolbar .components-toolbar.components-toolbar{border-width:0;margin:0}div.components-toolbar>div{display:block;margin:0}@supports ((position:-webkit-sticky) or (position:sticky)){div.components-toolbar>div{display:flex}}div.components-toolbar>div+div.has-left-divider{margin-right:6px;position:relative;overflow:visible}div.components-toolbar>div+div.has-left-divider:before{display:inline-block;content:"";box-sizing:content-box;background-color:#ddd;position:absolute;top:8px;right:-3px;width:1px;height:20px}.components-accessible-toolbar .components-toolbar-group>.components-button.components-button.has-icon,.components-toolbar div>.components-button.components-button.has-icon{min-width:36px;padding-right:6px;padding-left:6px}.components-accessible-toolbar .components-toolbar-group>.components-button.components-button.has-icon svg,.components-toolbar div>.components-button.components-button.has-icon svg{min-width:24px}.components-accessible-toolbar .components-toolbar-group>.components-button.components-button.has-icon:before,.components-toolbar div>.components-button.components-button.has-icon:before{right:2px;left:2px}.components-accessible-toolbar .components-toolbar-group>.components-button:first-child.has-icon,.components-accessible-toolbar .components-toolbar-group>div:first-child>.components-button.has-icon,.components-toolbar div:first-child .components-button.has-icon{min-width:42px;padding-right:11px;padding-left:6px}.components-accessible-toolbar .components-toolbar-group>.components-button:first-child.has-icon:before,.components-accessible-toolbar .components-toolbar-group>div:first-child>.components-button.has-icon:before,.components-toolbar div:first-child .components-button.has-icon:before{right:8px;left:2px}.components-accessible-toolbar .components-toolbar-group>.components-button:last-of-type.has-icon,.components-accessible-toolbar .components-toolbar-group>div:last-child>.components-button.has-icon,.components-toolbar div:last-child .components-button.has-icon{min-width:42px;padding-right:6px;padding-left:11px}.components-accessible-toolbar .components-toolbar-group>.components-button:last-of-type.has-icon:before,.components-accessible-toolbar .components-toolbar-group>div:last-child>.components-button.has-icon:before,.components-toolbar div:last-child .components-button.has-icon:before{right:2px;left:8px}.components-accessible-toolbar .components-toolbar-group>.components-button:first-of-type:last-of-type.has-icon,.components-accessible-toolbar .components-toolbar-group>div:first-child:last-child>.components-button.has-icon,.components-toolbar div:first-child:last-child>.components-button.has-icon{min-width:48px;padding-right:12px;padding-left:12px}.components-accessible-toolbar .components-toolbar-group>.components-button:first-of-type:last-of-type.has-icon:before,.components-accessible-toolbar .components-toolbar-group>div:first-child:last-child>.components-button.has-icon:before,.components-toolbar div:first-child:last-child>.components-button.has-icon:before{right:8px;left:8px}.components-tooltip.components-popover{z-index:1000002}.components-tooltip.components-popover .components-popover__content{min-width:0}.components-tooltip .components-popover__content{background:#1e1e1e;border-radius:2px;border-width:0;color:#fff;white-space:nowrap;text-align:center;line-height:1.4;font-size:12px;box-shadow:none}.components-tooltip .components-popover__content>div{padding:4px 8px}.components-tooltip__shortcut{display:inline-block;margin-right:8px}.components-visually-hidden{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}.components-visually-hidden:focus{background-color:#ddd;clip:auto!important;-webkit-clip-path:none;clip-path:none;color:#444;display:block;font-size:1em;height:auto;right:5px;line-height:normal;padding:15px 23px 14px;text-decoration:none;top:5px;width:auto;z-index:100000} \ No newline at end of file +:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87}.components-animate__appear{animation:components-animate__appear-animation .1s cubic-bezier(0,0,.2,1) 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-animate__appear{animation-duration:1ms}}.components-animate__appear.is-from-top,.components-animate__appear.is-from-top.is-from-left{transform-origin:top right}.components-animate__appear.is-from-top.is-from-right{transform-origin:top left}.components-animate__appear.is-from-bottom,.components-animate__appear.is-from-bottom.is-from-left{transform-origin:bottom right}.components-animate__appear.is-from-bottom.is-from-right{transform-origin:bottom left}@keyframes components-animate__appear-animation{0%{transform:translateY(-2em) scaleY(0) scaleX(0)}to{transform:translateY(0) scaleY(1) scaleX(1)}}.components-animate__slide-in{animation:components-animate__slide-in-animation .1s cubic-bezier(0,0,.2,1);animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-animate__slide-in{animation-duration:1ms}}.components-animate__slide-in.is-from-left{transform:translateX(-100%)}.components-animate__slide-in.is-from-right{transform:translateX(100%)}@keyframes components-animate__slide-in-animation{to{transform:translateX(0)}}.components-animate__loading{animation:components-animate__loading 1.6s ease-in-out infinite}@keyframes components-animate__loading{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}.components-autocomplete__popover .components-popover__content>div{padding:16px}.components-autocomplete__result.components-button{display:flex;height:auto;min-height:36px;text-align:right;width:100%}.components-autocomplete__result.components-button.is-selected{box-shadow:0 0 0 2px #007cba;box-shadow:0 0 0 2px var(--wp-admin-theme-color)}.components-button-group{display:inline-block}.components-button-group .components-button{border-radius:0;display:inline-flex;color:#1e1e1e;box-shadow:inset 0 0 0 1px #1e1e1e}.components-button-group .components-button+.components-button{margin-right:-1px}.components-button-group .components-button:first-child{border-radius:0 2px 2px 0}.components-button-group .components-button:last-child{border-radius:2px 0 0 2px}.components-button-group .components-button.is-primary,.components-button-group .components-button:focus{position:relative;z-index:1}.components-button-group .components-button.is-primary{box-shadow:inset 0 0 0 1px #1e1e1e}.components-button{display:inline-flex;text-decoration:none;font-size:13px;margin:0;border:0;cursor:pointer;-webkit-appearance:none;background:none;transition:box-shadow .1s linear;height:36px;align-items:center;box-sizing:border-box;padding:6px 12px;border-radius:2px;color:#1e1e1e}@media (prefers-reduced-motion:reduce){.components-button{transition-duration:0s}}.components-button:hover,.components-button[aria-expanded=true]{color:#007cba;color:var(--wp-admin-theme-color)}.components-button[aria-disabled=true]:hover{color:initial}.components-button:focus:not(:disabled){box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);outline:1px solid transparent}.components-button.is-primary{white-space:nowrap;background:#007cba;background:var(--wp-admin-theme-color);color:#fff;text-decoration:none;text-shadow:none}.components-button.is-primary:hover:not(:disabled){background:#006ba1;background:var(--wp-admin-theme-color-darker-10);color:#fff}.components-button.is-primary:active:not(:disabled){background:#005a87;background:var(--wp-admin-theme-color-darker-20);border-color:#005a87;border-color:var(--wp-admin-theme-color-darker-20);color:#fff}.components-button.is-primary:focus:not(:disabled){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:1px solid transparent}.components-button.is-primary:disabled,.components-button.is-primary:disabled:active:enabled,.components-button.is-primary[aria-disabled=true],.components-button.is-primary[aria-disabled=true]:active:enabled,.components-button.is-primary[aria-disabled=true]:enabled{color:hsla(0,0%,100%,.4);background:#007cba;background:var(--wp-admin-theme-color);border-color:#007cba;border-color:var(--wp-admin-theme-color);opacity:1}.components-button.is-primary:disabled:active:enabled:focus:enabled,.components-button.is-primary:disabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:active:enabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:enabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:focus:enabled{box-shadow:0 0 0 1px #fff,0 0 0 3px #007cba;box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color)}.components-button.is-primary.is-busy,.components-button.is-primary.is-busy:disabled,.components-button.is-primary.is-busy[aria-disabled=true]{color:#fff;background-size:100px 100%;background-image:linear-gradient(45deg,#007cba 28%,#005a87 0,#005a87 72%,#007cba 0);background-image:linear-gradient(45deg,var(--wp-admin-theme-color) 28%,var(--wp-admin-theme-color-darker-20) 0,var(--wp-admin-theme-color-darker-20) 72%,var(--wp-admin-theme-color) 0);border-color:#007cba;border-color:var(--wp-admin-theme-color)}.components-button.is-secondary:active:not(:disabled),.components-button.is-tertiary:active:not(:disabled){background:#ddd;color:#006ba1;color:var(--wp-admin-theme-color-darker-10);box-shadow:none}.components-button.is-secondary:hover:not(:disabled),.components-button.is-tertiary:hover:not(:disabled){color:#006ba1;color:var(--wp-admin-theme-color-darker-10);box-shadow:inset 0 0 0 1px #006ba1;box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color-darker-10)}.components-button.is-secondary:disabled,.components-button.is-secondary[aria-disabled=true],.components-button.is-secondary[aria-disabled=true]:hover,.components-button.is-tertiary:disabled,.components-button.is-tertiary[aria-disabled=true],.components-button.is-tertiary[aria-disabled=true]:hover{color:#828282;background:#eaeaea;transform:none;opacity:1;box-shadow:none}.components-button.is-secondary{box-shadow:inset 0 0 0 1px #007cba;box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color);outline:1px solid transparent}.components-button.is-secondary,.components-button.is-tertiary{white-space:nowrap;color:#007cba;color:var(--wp-admin-theme-color);background:transparent}.components-button.is-tertiary{padding:6px;outline:1px dotted transparent}.components-button.is-tertiary .dashicon{display:inline-block;flex:0 0 auto}.components-button.is-destructive{color:#cc1818;box-shadow:inset 0 0 0 1px #cc1818}.components-button.is-destructive:hover:not(:disabled){color:#710d0d;box-shadow:inset 0 0 0 1px #710d0d}.components-button.is-destructive:focus:not(:disabled){color:#007cba;color:var(--wp-admin-theme-color)}.components-button.is-destructive:active:not(:disabled){background:#ccc}.components-button.is-link{margin:0;padding:0;box-shadow:none;border:0;border-radius:0;background:none;outline:none;text-align:right;color:#0073aa;text-decoration:underline;transition-property:border,background,color;transition-duration:.05s;transition-timing-function:ease-in-out;height:auto}@media (prefers-reduced-motion:reduce){.components-button.is-link{transition-duration:0s}}.components-button.is-link:active:not(:disabled),.components-button.is-link:hover:not(:disabled){color:#00a0d2;box-shadow:none}.components-button.is-link:focus{color:#124964;box-shadow:0 0 0 1px #5b9dd9,0 0 1.5px 1px rgba(30,140,190,.8)}.components-button.is-link.is-destructive{color:#cc1818}.components-button.is-link.is-destructive:active:not(:disabled),.components-button.is-link.is-destructive:hover:not(:disabled){color:#710d0d;background:none}.components-button.is-link.is-destructive:focus:not(:disabled){color:#007cba;color:var(--wp-admin-theme-color)}.components-button:not([aria-disabled=true]):active{color:inherit}.components-button:disabled,.components-button[aria-disabled=true]{cursor:default;opacity:.3}.components-button.is-busy,.components-button.is-secondary.is-busy,.components-button.is-secondary.is-busy:disabled,.components-button.is-secondary.is-busy[aria-disabled=true]{animation:components-button__busy-animation 2.5s linear infinite;opacity:1;background-size:100px 100%;background-image:linear-gradient(45deg,#fafafa 28%,#e0e0e0 0,#e0e0e0 72%,#fafafa 0)}.components-button.is-small{height:24px;line-height:22px;padding:0 8px;font-size:11px}.components-button.is-small.has-icon:not(.has-text){padding:0 8px;width:24px}.components-button.has-icon{padding:6px;min-width:36px;justify-content:center}.components-button.has-icon .dashicon{display:inline-block;flex:0 0 auto}.components-button.has-icon.has-text{justify-content:left}.components-button.has-icon.has-text svg{margin-left:8px}.components-button.is-pressed{color:#fff;background:#1e1e1e}.components-button.is-pressed:focus:not(:disabled){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}.components-button.is-pressed:hover:not(:disabled){color:#fff;background:#1e1e1e}.components-button svg{fill:currentColor;outline:none}.components-button .components-visually-hidden{height:auto}@keyframes components-button__busy-animation{0%{background-position:200px 0}}.components-checkbox-control__input[type=checkbox]{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;font-size:16px;line-height:normal;border:1px solid #1e1e1e;transition:none;border-radius:2px;background:#fff;color:#1e1e1e;clear:none;cursor:pointer;display:inline-block;line-height:0;margin:0 0 0 4px;outline:0;padding:0!important;text-align:center;vertical-align:top;width:24px;height:24px;-webkit-appearance:none;-moz-appearance:none;appearance:none;transition:border-color .1s ease-in-out}@media (min-width:600px){.components-checkbox-control__input[type=checkbox]{font-size:13px;line-height:normal}}.components-checkbox-control__input[type=checkbox]: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)}.components-checkbox-control__input[type=checkbox]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-checkbox-control__input[type=checkbox]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-checkbox-control__input[type=checkbox]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-checkbox-control__input[type=checkbox]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-checkbox-control__input[type=checkbox]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-checkbox-control__input[type=checkbox]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-checkbox-control__input[type=checkbox]:checked:before,.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{margin:-3px -5px;color:#fff}@media (min-width:782px){.components-checkbox-control__input[type=checkbox]:checked:before,.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{margin:-4px -5px 0 0}}.components-checkbox-control__input[type=checkbox][aria-checked=mixed]{background:#007cba;background:var(--wp-admin-theme-color);border-color:#007cba;border-color:var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{content:"\f460";float:right;display:inline-block;vertical-align:middle;width:16px;font:normal 30px/1 dashicons;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (min-width:782px){.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{float:none;font-size:21px}}@media (min-width:600px){.components-checkbox-control__input[type=checkbox]{height:20px;width:20px}}@media (prefers-reduced-motion:reduce){.components-checkbox-control__input[type=checkbox]{transition-duration:0s}}.components-checkbox-control__input[type=checkbox]:focus{box-shadow:0 0 0 2px #fff,0 0 0 3.5px #007cba;box-shadow:0 0 0 2px #fff,0 0 0 3.5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-checkbox-control__input[type=checkbox]:checked{background:#007cba;background:var(--wp-admin-theme-color);border-color:#007cba;border-color:var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox]:checked::-ms-check{opacity:0}.components-checkbox-control__input[type=checkbox]:checked:before{content:none}.components-checkbox-control__input-container{position:relative;display:inline-block;margin-left:12px;vertical-align:middle;width:24px;height:24px}@media (min-width:600px){.components-checkbox-control__input-container{width:20px;height:20px}}svg.components-checkbox-control__checked{fill:#fff;cursor:pointer;position:absolute;right:0;top:0;width:24px;height:24px;-webkit-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}@media (min-width:600px){svg.components-checkbox-control__checked{right:-2px;top:-2px}}.components-circular-option-picker{display:inline-block;width:100%;margin-left:-10px}.components-circular-option-picker .components-circular-option-picker__custom-clear-wrapper{display:flex;justify-content:flex-end}.components-circular-option-picker .components-circular-option-picker__swatches{margin-left:-16px}.components-circular-option-picker__option-wrapper{display:inline-block;height:28px;width:28px;margin-left:16px;margin-bottom:12px;vertical-align:top;transform:scale(1);transition:transform .1s ease}@media (prefers-reduced-motion:reduce){.components-circular-option-picker__option-wrapper{transition-duration:0s}}.components-circular-option-picker__option-wrapper:hover{transform:scale(1.2)}.components-circular-option-picker__option-wrapper>div{height:100%;width:100%}.components-circular-option-picker__option-wrapper:before{content:"";position:absolute;top:1px;right:1px;bottom:1px;left:1px;border-radius:50%;z-index:-1;background:url("data:image/svg+xml;charset=utf-8,%3Csvg width='28' height='28' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 8V6H4v2h2zm2 0V6h2v2H8zm2 8H8v-2h2v2zm2 0v-2h2v2h-2zm0 2v-2h-2v2H8v2h2v-2h2zm2 0v2h-2v-2h2zm2 0h-2v-2h2v2z' fill='%23555D65'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M18 18h2v-2h-2v-2h2v-2h-2v-2h2V8h-2v2h-2V8h-2v2h2v2h-2v2h2v2h2v2zm-2-4v-2h2v2h-2z' fill='%23555D65'/%3E%3Cpath d='M18 18v2h-2v-2h2z' fill='%23555D65'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M8 10V8H6v2H4v2h2v2H4v2h2v2H4v2h2v2H4v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2v2h-2V4h-2v2h-2V4h-2v2h-2V4h-2v2h2v2h-2v2H8zm0 2v-2H6v2h2zm2 0v-2h2v2h-2zm0 2v-2H8v2H6v2h2v2H6v2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h-2v2h-2V6h-2v2h-2v2h2v2h-2v2h-2z' fill='%23555D65'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M4 0H2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2V2h2V0h-2v2h-2V0h-2v2h-2V0h-2v2h-2V0h-2v2h-2V0h-2v2H8V0H6v2H4V0zm0 4V2H2v2h2zm2 0V2h2v2H6zm0 2V4H4v2H2v2h2v2H2v2h2v2H2v2h2v2H2v2h2v2H2v2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2V2h-2v2h-2V2h-2v2h-2V2h-2v2h-2V2h-2v2H8v2H6z' fill='%23555D65'/%3E%3C/svg%3E")}.components-circular-option-picker__option{display:inline-block;vertical-align:top;height:100%;width:100%;border:none;border-radius:50%;background:transparent;box-shadow:inset 0 0 0 14px;transition:box-shadow .1s ease;cursor:pointer}@media (prefers-reduced-motion:reduce){.components-circular-option-picker__option{transition-duration:0s}}.components-circular-option-picker__option:hover{box-shadow:inset 0 0 0 14px!important}.components-circular-option-picker__option.is-pressed{box-shadow:inset 0 0 0 4px;position:relative;z-index:1;overflow:visible}.components-circular-option-picker__option.is-pressed+svg{position:absolute;right:2px;top:2px;border-radius:50%;z-index:2;pointer-events:none}.components-circular-option-picker__option:after{content:"";position:absolute;top:-1px;right:-1px;bottom:-1px;left:-1px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);border:1px solid transparent}.components-circular-option-picker__option:focus:after{content:"";border:2px solid #757575;width:32px;height:32px;position:absolute;top:-2px;right:-2px;border-radius:50%;box-shadow:inset 0 0 0 2px #fff}.components-circular-option-picker__option.components-button:focus{background-color:transparent;box-shadow:inset 0 0 0 14px;outline:none}.components-circular-option-picker__button-action .components-circular-option-picker__option{color:#fff;background:#fff}.components-circular-option-picker__dropdown-link-action{margin-left:16px}.components-circular-option-picker__dropdown-link-action .components-button{line-height:22px}.components-color-edit__color-option-main-area{display:flex;align-items:center}.components-color-edit__color-option-main-area .components-circular-option-picker__option-wrapper{margin:8px}.components-color-edit__color-option.is-hover{background:#e0e0e0}.components-color-edit__cancel-button{float:left}.components-color-edit__color-option-color-name{width:100%}.components-color-edit__label-and-insert-container{display:flex;align-items:center;justify-content:space-between}.components-color-edit__insert-button{margin-top:-8px}.components-color-edit__hidden-control{position:relative;right:-9999px}.components-color-edit__color-option-color-name-input .components-base-control__field{margin-bottom:0;margin-left:8px}.components-color-edit__slug-input{margin-right:8px}.component-color-indicator{width:25px;height:16px;margin-right:.8rem;border:1px solid #dadada;display:inline-block}.component-color-indicator+.component-color-indicator{margin-right:.5rem}.components-color-picker{width:100%}.components-color-picker *{box-sizing:border-box}.components-color-picker__saturation{width:100%;padding-bottom:55%;position:relative}.components-color-picker__body{padding:16px 16px 12px}.components-color-picker__controls{display:flex}.components-color-picker__alpha-pointer,.components-color-picker__hue-pointer,.components-color-picker__saturation-pointer{padding:0;position:absolute;cursor:pointer;box-shadow:none;border:none}.components-color-picker__swatch{margin-left:8px;width:32px;height:32px;border-radius:50%;position:relative;overflow:hidden;background-image:linear-gradient(-45deg,#ddd 25%,transparent 0),linear-gradient(45deg,#ddd 25%,transparent 0),linear-gradient(-45deg,transparent 75%,#ddd 0),linear-gradient(45deg,transparent 75%,#ddd 0);background-size:10px 10px;background-position:100% 0,100% 5px,5px -5px,-5px 0}.is-alpha-disabled .components-color-picker__swatch{width:12px;height:12px;margin-top:0}.components-color-picker__active{border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1);z-index:2}.components-color-picker__active,.components-color-picker__saturation-black,.components-color-picker__saturation-color,.components-color-picker__saturation-white{position:absolute;top:0;right:0;left:0;bottom:0}.components-color-picker__saturation-color{overflow:visible}.components-color-picker__saturation-white{background:linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.components-color-picker__saturation-black{background:linear-gradient(0deg,#000,transparent)}.components-button.components-color-picker__saturation-pointer{width:14px;height:14px;padding:0;border-radius:50%;background-color:transparent;transform:translate(50%,-50%);box-shadow:0 0 0 1px #fff,inset 0 0 0 1px #000,0 0 0 2px #000}.components-button.components-color-picker__saturation-pointer:focus:not(:disabled){box-shadow:0 0 0 2px #fff,inset 0 0 0 1px #000,0 0 0 3px #000}.components-color-picker__toggles{flex:1}.components-color-picker__alpha{background-image:linear-gradient(-45deg,#ddd 25%,transparent 0),linear-gradient(45deg,#ddd 25%,transparent 0),linear-gradient(-45deg,transparent 75%,#ddd 0),linear-gradient(45deg,transparent 75%,#ddd 0);background-size:10px 10px;background-position:100% 0,100% 5px,5px -5px,-5px 0}.components-color-picker__alpha-gradient,.components-color-picker__hue-gradient{position:absolute;top:0;right:0;left:0;bottom:0}.components-color-picker__alpha,.components-color-picker__hue{height:12px;position:relative}.is-alpha-enabled .components-color-picker__hue{margin-bottom:8px}.components-color-picker__alpha-bar,.components-color-picker__hue-bar{position:relative;margin:0 3px;height:100%;padding:0 2px}.components-color-picker__hue-gradient{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.components-color-picker__alpha-pointer,.components-color-picker__hue-pointer{left:0;width:14px;height:14px;border-radius:50%;box-shadow:0 1px 4px 0 rgba(0,0,0,.37);background:#fff;transform:translate(7px,-1px)}.components-color-picker__hue-pointer,.components-color-picker__saturation-pointer{transition:box-shadow .1s linear}@media (prefers-reduced-motion:reduce){.components-color-picker__hue-pointer,.components-color-picker__saturation-pointer{transition-duration:0s}}.components-color-picker__saturation-pointer:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #007cba,0 0 5px 0 #007cba,inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4);box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color),0 0 5px 0 var(--wp-admin-theme-color),inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4)}.components-color-picker__alpha-pointer:focus,.components-color-picker__hue-pointer:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 2px #007cba,0 0 3px 0 #007cba;box-shadow:0 0 0 2px var(--wp-admin-theme-color),0 0 3px 0 var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:-2px}.components-color-picker__inputs-wrapper{margin:0 -4px;padding-top:16px;display:flex;align-items:flex-end;min-width:255px}.components-color-picker__inputs-wrapper fieldset{flex:1;border:none;margin:0;padding:0}.components-color-picker__inputs-wrapper .components-color-picker__inputs-fields .components-text-control__input[type=number]{padding:6px 3px;margin:0}.components-color-picker__inputs-field{width:100%}.components-color-picker__inputs-fields{display:flex;direction:ltr;flex-grow:1;margin-left:4px}.components-color-picker__inputs-fields .components-base-control+.components-base-control{margin-top:0}.components-color-picker__inputs-fields .components-base-control__field{margin:0 2px}.components-color-picker__inputs-toggle{height:30px;padding:0 5px}.components-combobox-control{width:100%}input.components-combobox-control__input[type=text]{width:100%;border:none;box-shadow:none;padding:2px;margin:0;line-height:inherit;min-height:auto}input.components-combobox-control__input[type=text]:focus{outline:none;box-shadow:none}.components-combobox-control__suggestions-container{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;border:1px solid #757575;font-size:16px;line-height:normal;display:flex;flex-wrap:wrap;align-items:flex-start;width:100%;margin:0 0 8px;padding:4px}@media (prefers-reduced-motion:reduce){.components-combobox-control__suggestions-container{transition-duration:0s}}@media (min-width:600px){.components-combobox-control__suggestions-container{font-size:13px;line-height:normal}}.components-combobox-control__suggestions-container: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}.components-combobox-control__suggestions-container::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-combobox-control__suggestions-container::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-combobox-control__suggestions-container:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-combobox-control__suggestions-container::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-combobox-control__suggestions-container::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-combobox-control__suggestions-container:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-combobox-control__suggestions-container:focus-within{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}.components-combobox-control__reset.components-button{display:flex;height:24px;min-width:24px;padding:0}.components-custom-gradient-picker__gradient-bar:not(.has-gradient){opacity:.4}.components-custom-gradient-picker__gradient-bar{margin-top:12px;width:100%;height:36px;border-radius:36px;margin-bottom:12px;padding-right:6px;padding-left:30px}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__markers-container{position:relative}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point{border-radius:50%;background:#fff;padding:2px;top:6px;min-width:24px;width:24px;height:24px;position:relative;color:#1e1e1e}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point svg{height:100%;width:100%}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button{border:2px solid transparent;box-shadow:inset 0 0 0 1.5px #fff;border-radius:50%;height:24px;width:24px;padding:0;position:absolute;top:6px}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button.is-active,.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px #1e1e1e}.components-custom-gradient-picker__color-picker-popover .components-custom-gradient-picker__remove-control-point{margin-right:auto;margin-left:auto;display:block;margin-bottom:8px}.components-custom-gradient-picker__inserter{width:100%}.components-custom-gradient-picker__liner-gradient-indicator{display:inline-block;flex:0 auto;width:20px;height:20px}.components-custom-gradient-picker .components-custom-gradient-picker__ui-line{margin-bottom:16px}.components-custom-gradient-picker .components-custom-gradient-picker__ui-line .components-base-control.components-angle-picker,.components-custom-gradient-picker .components-custom-gradient-picker__ui-line .components-base-control.components-custom-gradient-picker__type-picker{margin-bottom:0}.components-custom-gradient-picker .components-custom-gradient-picker__toolbar{border:none}.components-custom-gradient-picker .components-custom-gradient-picker__toolbar>div+div{margin-right:1px}.components-custom-gradient-picker .components-custom-gradient-picker__toolbar button.is-pressed>svg{background:#fff;border:1px solid #949494;border-radius:2px}.components-custom-select-control{position:relative}.components-custom-select-control__label{display:block;margin-bottom:8px}.components-custom-select-control__button{border:1px solid #757575;border-radius:2px;min-height:30px;min-width:130px;position:relative;text-align:right}.components-custom-select-control__button.components-custom-select-control__button{padding-left:24px}.components-custom-select-control__button:focus:not(:disabled){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)}.components-custom-select-control__button .components-custom-select-control__button-icon{height:100%;padding:0;position:absolute;left:0;top:0}.components-custom-select-control__menu{background-color:#fff;max-height:400px;min-width:100%;overflow:auto;padding:0;position:absolute;z-index:1000000}.components-custom-select-control__menu:focus{border:1px solid #1e1e1e;border-radius:2px;outline:none;transition:none}.components-custom-select-control__item{align-items:center;display:flex;list-style-type:none;padding:10px 25px 10px 5px;cursor:default}.components-custom-select-control__item.is-highlighted{background:#ddd}.components-custom-select-control__item-icon{margin-right:-20px;margin-left:0}.PresetDateRangePicker_panel{padding:0 22px 11px}.PresetDateRangePicker_button{position:relative;height:100%;text-align:center;background:0 0;border:2px solid #00a699;color:#00a699;padding:4px 12px;margin-right:8px;font:inherit;font-weight:700;line-height:normal;overflow:visible;box-sizing:border-box;cursor:pointer}.PresetDateRangePicker_button:active{outline:0}.PresetDateRangePicker_button__selected{color:#fff;background:#00a699}.SingleDatePickerInput{display:inline-block;background-color:#fff}.SingleDatePickerInput__withBorder{border-radius:2px;border:1px solid #dbdbdb}.SingleDatePickerInput__rtl{direction:rtl}.SingleDatePickerInput__disabled{background-color:#f2f2f2}.SingleDatePickerInput__block{display:block}.SingleDatePickerInput__showClearDate{padding-right:30px}.SingleDatePickerInput_clearDate{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;padding:10px;margin:0 10px 0 5px;position:absolute;right:0;top:50%;transform:translateY(-50%)}.SingleDatePickerInput_clearDate__default:focus,.SingleDatePickerInput_clearDate__default:hover{background:#dbdbdb;border-radius:50%}.SingleDatePickerInput_clearDate__small{padding:6px}.SingleDatePickerInput_clearDate__hide{visibility:hidden}.SingleDatePickerInput_clearDate_svg{fill:#82888a;height:12px;width:15px;vertical-align:middle}.SingleDatePickerInput_clearDate_svg__small{height:9px}.SingleDatePickerInput_calendarIcon{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;display:inline-block;vertical-align:middle;padding:10px;margin:0 5px 0 10px}.SingleDatePickerInput_calendarIcon_svg{fill:#82888a;height:15px;width:14px;vertical-align:middle}.SingleDatePicker{position:relative;display:inline-block}.SingleDatePicker__block{display:block}.SingleDatePicker_picker{z-index:1;background-color:#fff;position:absolute}.SingleDatePicker_picker__rtl{direction:rtl}.SingleDatePicker_picker__directionLeft{left:0}.SingleDatePicker_picker__directionRight{right:0}.SingleDatePicker_picker__portal{background-color:rgba(0,0,0,.3);position:fixed;top:0;left:0;height:100%;width:100%}.SingleDatePicker_picker__fullScreenPortal{background-color:#fff}.SingleDatePicker_closeButton{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;position:absolute;top:0;right:0;padding:15px;z-index:2}.SingleDatePicker_closeButton:focus,.SingleDatePicker_closeButton:hover{color:#b0b3b4;text-decoration:none}.SingleDatePicker_closeButton_svg{height:15px;width:15px;fill:#cacccd}.DayPickerKeyboardShortcuts_buttonReset{background:0 0;border:0;border-radius:0;color:inherit;font:inherit;line-height:normal;overflow:visible;padding:0;cursor:pointer;font-size:14px}.DayPickerKeyboardShortcuts_buttonReset:active{outline:0}.DayPickerKeyboardShortcuts_show{width:22px;position:absolute;z-index:2}.DayPickerKeyboardShortcuts_show__bottomRight{border-top:26px solid transparent;border-right:33px solid #00a699;bottom:0;right:0}.DayPickerKeyboardShortcuts_show__bottomRight:hover{border-right:33px solid #008489}.DayPickerKeyboardShortcuts_show__topRight{border-bottom:26px solid transparent;border-right:33px solid #00a699;top:0;right:0}.DayPickerKeyboardShortcuts_show__topRight:hover{border-right:33px solid #008489}.DayPickerKeyboardShortcuts_show__topLeft{border-bottom:26px solid transparent;border-left:33px solid #00a699;top:0;left:0}.DayPickerKeyboardShortcuts_show__topLeft:hover{border-left:33px solid #008489}.DayPickerKeyboardShortcuts_showSpan{color:#fff;position:absolute}.DayPickerKeyboardShortcuts_showSpan__bottomRight{bottom:0;right:-28px}.DayPickerKeyboardShortcuts_showSpan__topRight{top:1px;right:-28px}.DayPickerKeyboardShortcuts_showSpan__topLeft{top:1px;left:-28px}.DayPickerKeyboardShortcuts_panel{overflow:auto;background:#fff;border:1px solid #dbdbdb;border-radius:2px;position:absolute;top:0;bottom:0;right:0;left:0;z-index:2;padding:22px;margin:33px}.DayPickerKeyboardShortcuts_title{font-size:16px;font-weight:700;margin:0}.DayPickerKeyboardShortcuts_list{list-style:none;padding:0;font-size:14px}.DayPickerKeyboardShortcuts_close{position:absolute;right:22px;top:22px;z-index:2}.DayPickerKeyboardShortcuts_close:active{outline:0}.DayPickerKeyboardShortcuts_closeSvg{height:15px;width:15px;fill:#cacccd}.DayPickerKeyboardShortcuts_closeSvg:focus,.DayPickerKeyboardShortcuts_closeSvg:hover{fill:#82888a}.CalendarDay{box-sizing:border-box;cursor:pointer;font-size:14px;text-align:center}.CalendarDay:active{outline:0}.CalendarDay__defaultCursor{cursor:default}.CalendarDay__default{border:1px solid #e4e7e7;color:#484848;background:#fff}.CalendarDay__default:hover{background:#e4e7e7;border:1px double #e4e7e7;color:inherit}.CalendarDay__hovered_offset{background:#f4f5f5;border:1px double #e4e7e7;color:inherit}.CalendarDay__outside{border:0;background:#fff;color:#484848}.CalendarDay__outside:hover{border:0}.CalendarDay__blocked_minimum_nights{background:#fff;border:1px solid #eceeee;color:#cacccd}.CalendarDay__blocked_minimum_nights:active,.CalendarDay__blocked_minimum_nights:hover{background:#fff;color:#cacccd}.CalendarDay__highlighted_calendar{background:#ffe8bc;color:#484848}.CalendarDay__highlighted_calendar:active,.CalendarDay__highlighted_calendar:hover{background:#ffce71;color:#484848}.CalendarDay__selected_span{background:#66e2da;border:1px solid #33dacd;color:#fff}.CalendarDay__selected_span:active,.CalendarDay__selected_span:hover{background:#33dacd;border:1px solid #33dacd;color:#fff}.CalendarDay__last_in_range{border-right:#00a699}.CalendarDay__selected,.CalendarDay__selected:active,.CalendarDay__selected:hover{background:#00a699;border:1px solid #00a699;color:#fff}.CalendarDay__hovered_span,.CalendarDay__hovered_span:hover{background:#b2f1ec;border:1px solid #80e8e0;color:#007a87}.CalendarDay__hovered_span:active{background:#80e8e0;border:1px solid #80e8e0;color:#007a87}.CalendarDay__blocked_calendar,.CalendarDay__blocked_calendar:active,.CalendarDay__blocked_calendar:hover{background:#cacccd;border:1px solid #cacccd;color:#82888a}.CalendarDay__blocked_out_of_range,.CalendarDay__blocked_out_of_range:active,.CalendarDay__blocked_out_of_range:hover{background:#fff;border:1px solid #e4e7e7;color:#cacccd}.CalendarMonth{background:#fff;text-align:center;vertical-align:top;-webkit-user-select:none;-ms-user-select:none;user-select:none}.CalendarMonth_table{border-collapse:collapse;border-spacing:0}.CalendarMonth_verticalSpacing{border-collapse:separate}.CalendarMonth_caption{color:#484848;font-size:18px;text-align:center;padding-top:22px;padding-bottom:37px;caption-side:top}.CalendarMonth_caption__verticalScrollable{padding-top:12px;padding-bottom:7px}.CalendarMonthGrid{background:#fff;text-align:left;z-index:0}.CalendarMonthGrid__animating{z-index:1}.CalendarMonthGrid__horizontal{position:absolute;left:9px}.CalendarMonthGrid__vertical{margin:0 auto}.CalendarMonthGrid__vertical_scrollable{margin:0 auto;overflow-y:scroll}.CalendarMonthGrid_month__horizontal{display:inline-block;vertical-align:top;min-height:100%}.CalendarMonthGrid_month__hideForAnimation{position:absolute;z-index:-1;opacity:0;pointer-events:none}.CalendarMonthGrid_month__hidden{visibility:hidden}.DayPickerNavigation{position:relative;z-index:2}.DayPickerNavigation__horizontal{height:0}.DayPickerNavigation__verticalDefault{position:absolute;width:100%;height:52px;bottom:0;left:0}.DayPickerNavigation__verticalScrollableDefault{position:relative}.DayPickerNavigation_button{cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none;border:0;padding:0;margin:0}.DayPickerNavigation_button__default{border:1px solid #e4e7e7;background-color:#fff;color:#757575}.DayPickerNavigation_button__default:focus,.DayPickerNavigation_button__default:hover{border:1px solid #c4c4c4}.DayPickerNavigation_button__default:active{background:#f2f2f2}.DayPickerNavigation_button__horizontalDefault{position:absolute;top:18px;line-height:.78;border-radius:3px;padding:6px 9px}.DayPickerNavigation_leftButton__horizontalDefault{left:22px}.DayPickerNavigation_rightButton__horizontalDefault{right:22px}.DayPickerNavigation_button__verticalDefault{padding:5px;background:#fff;box-shadow:0 0 5px 2px rgba(0,0,0,.1);position:relative;display:inline-block;height:100%;width:50%}.DayPickerNavigation_nextButton__verticalDefault{border-left:0}.DayPickerNavigation_nextButton__verticalScrollableDefault{width:100%}.DayPickerNavigation_svg__horizontal{height:19px;width:19px;fill:#82888a;display:block}.DayPickerNavigation_svg__vertical{height:42px;width:42px;fill:#484848;display:block}.DayPicker{position:relative;text-align:left}.DayPicker,.DayPicker__horizontal{background:#fff}.DayPicker__verticalScrollable{height:100%}.DayPicker__hidden{visibility:hidden}.DayPicker__withBorder{box-shadow:0 2px 6px rgba(0,0,0,.05),0 0 0 1px rgba(0,0,0,.07);border-radius:3px}.DayPicker_portal__horizontal{box-shadow:none;position:absolute;left:50%;top:50%}.DayPicker_portal__vertical{position:static}.DayPicker_focusRegion{outline:0}.DayPicker_calendarInfo__horizontal,.DayPicker_wrapper__horizontal{display:inline-block;vertical-align:top}.DayPicker_weekHeaders{position:relative}.DayPicker_weekHeaders__horizontal{margin-left:9px}.DayPicker_weekHeader{color:#757575;position:absolute;top:62px;z-index:2;text-align:left}.DayPicker_weekHeader__vertical{left:50%}.DayPicker_weekHeader__verticalScrollable{top:0;display:table-row;border-bottom:1px solid #dbdbdb;background:#fff;margin-left:0;left:0;width:100%;text-align:center}.DayPicker_weekHeader_ul{list-style:none;margin:1px 0;padding-left:0;padding-right:0;font-size:14px}.DayPicker_weekHeader_li{display:inline-block;text-align:center}.DayPicker_transitionContainer{position:relative;overflow:hidden;border-radius:3px}.DayPicker_transitionContainer__horizontal{transition:height .2s ease-in-out}.DayPicker_transitionContainer__vertical{width:100%}.DayPicker_transitionContainer__verticalScrollable{padding-top:20px;height:100%;position:absolute;top:0;bottom:0;right:0;left:0;overflow-y:scroll}.DateInput{margin:0;padding:0;background:#fff;position:relative;display:inline-block;width:130px;vertical-align:middle}.DateInput__small{width:97px}.DateInput__block{width:100%}.DateInput__disabled{background:#f2f2f2;color:#dbdbdb}.DateInput_input{font-weight:200;font-size:19px;line-height:24px;color:#484848;background-color:#fff;width:100%;padding:11px 11px 9px;border:0;border-bottom:2px solid transparent;border-radius:0}.DateInput_input__small{font-size:15px;line-height:18px;letter-spacing:.2px;padding:7px 7px 5px}.DateInput_input__regular{font-weight:auto}.DateInput_input__readOnly{-webkit-user-select:none;-ms-user-select:none;user-select:none}.DateInput_input__focused{outline:0;background:#fff;border:0;border-bottom:2px solid #008489}.DateInput_input__disabled{background:#f2f2f2;font-style:italic}.DateInput_screenReaderMessage{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.DateInput_fang{position:absolute;width:20px;height:10px;left:22px;z-index:2}.DateInput_fangShape{fill:#fff}.DateInput_fangStroke{stroke:#dbdbdb;fill:transparent}.DateRangePickerInput{background-color:#fff;display:inline-block}.DateRangePickerInput__disabled{background:#f2f2f2}.DateRangePickerInput__withBorder{border-radius:2px;border:1px solid #dbdbdb}.DateRangePickerInput__rtl{direction:rtl}.DateRangePickerInput__block{display:block}.DateRangePickerInput__showClearDates{padding-right:30px}.DateRangePickerInput_arrow{display:inline-block;vertical-align:middle;color:#484848}.DateRangePickerInput_arrow_svg{vertical-align:middle;fill:#484848;height:24px;width:24px}.DateRangePickerInput_clearDates{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;padding:10px;margin:0 10px 0 5px;position:absolute;right:0;top:50%;transform:translateY(-50%)}.DateRangePickerInput_clearDates__small{padding:6px}.DateRangePickerInput_clearDates_default:focus,.DateRangePickerInput_clearDates_default:hover{background:#dbdbdb;border-radius:50%}.DateRangePickerInput_clearDates__hide{visibility:hidden}.DateRangePickerInput_clearDates_svg{fill:#82888a;height:12px;width:15px;vertical-align:middle}.DateRangePickerInput_clearDates_svg__small{height:9px}.DateRangePickerInput_calendarIcon{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;display:inline-block;vertical-align:middle;padding:10px;margin:0 5px 0 10px}.DateRangePickerInput_calendarIcon_svg{fill:#82888a;height:15px;width:14px;vertical-align:middle}.DateRangePicker{position:relative;display:inline-block}.DateRangePicker__block{display:block}.DateRangePicker_picker{z-index:1;background-color:#fff;position:absolute}.DateRangePicker_picker__rtl{direction:rtl}.DateRangePicker_picker__directionLeft{left:0}.DateRangePicker_picker__directionRight{right:0}.DateRangePicker_picker__portal{background-color:rgba(0,0,0,.3);position:fixed;top:0;left:0;height:100%;width:100%}.DateRangePicker_picker__fullScreenPortal{background-color:#fff}.DateRangePicker_closeButton{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;position:absolute;top:0;right:0;padding:15px;z-index:2}.DateRangePicker_closeButton:focus,.DateRangePicker_closeButton:hover{color:#b0b3b4;text-decoration:none}.DateRangePicker_closeButton_svg{height:15px;width:15px;fill:#cacccd}.components-datetime{padding:0}.components-datetime .components-datetime__calendar-help{padding:16px}.components-datetime .components-datetime__calendar-help h4{margin:0}.components-datetime .components-datetime__buttons{display:flex;justify-content:space-between}.components-datetime .components-datetime__date-help-toggle{display:block;margin-right:auto}.components-datetime fieldset{border:0;padding:0;margin:0}.components-datetime input,.components-datetime select{box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575}@media (prefers-reduced-motion:reduce){.components-datetime input,.components-datetime select{transition-duration:0s}}.components-datetime .components-button,.components-datetime input[type=number],.components-datetime select{height:30px;margin-top:0;margin-bottom:0}.components-datetime__date{min-height:236px;border-top:1px solid #ddd}.components-datetime__date .DayPickerNavigation_leftButton__horizontalDefault{right:0}.components-datetime__date .CalendarMonth_caption{font-size:13px}.components-datetime__date .CalendarMonth_table{border-collapse:separate;border-spacing:2px}.components-datetime__date .CalendarDay{font-size:13px;border:none;border-radius:50%;text-align:center}.components-datetime__date .CalendarDay:focus{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 0 0 2.5px #fff;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 0 0 2.5px #fff;outline:2px solid transparent}.components-datetime__date .CalendarDay__selected{background:#007cba;background:var(--wp-admin-theme-color);border:2px solid transparent}.components-datetime__date .CalendarDay__selected:hover{background:#005a87;background:var(--wp-admin-theme-color-darker-20)}.components-datetime__date .CalendarDay__selected:focus{box-shadow:inset 0 0 0 1px #fff}.components-datetime__date .DayPickerNavigation_button__horizontalDefault{padding:2px 8px;top:20px}.components-datetime__date .DayPickerNavigation_button__horizontalDefault: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}.components-datetime__date .DayPicker_weekHeader{top:50px}.components-datetime__date .DayPicker_weekHeader .DayPicker_weekHeader_ul{margin:1px 0;padding-right:0;padding-left:0}.components-datetime__date.is-description-visible .DayPicker{visibility:hidden}.components-datetime__time{padding-bottom:16px}.components-datetime__time fieldset{position:relative;margin-bottom:.5em}.components-datetime__time fieldset+fieldset{margin-bottom:0}.components-datetime__time .components-datetime__time-field-am-pm fieldset{margin-top:0}.components-datetime__time .components-datetime__time-wrapper{display:flex}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-separator{display:inline-block;padding:0 0 0 3px}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field-time{direction:ltr}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select{margin-left:4px}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select:focus{position:relative;z-index:1}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]{padding:2px;margin-left:4px;text-align:center;-moz-appearance:textfield}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]:focus{position:relative;z-index:1}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.components-datetime__time.is-12-hour .components-datetime__time-field-day input{margin:-4px 0 0!important;border-radius:0 2px 2px 0!important}.components-datetime__time.is-12-hour .components-datetime__time-field-year input{border-radius:2px 0 0 2px!important}.components-datetime__timezone{line-height:30px;margin-right:4px;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.components-datetime__time-legend{font-weight:600;margin-top:.5em}.components-datetime__time-legend.invisible{position:absolute;top:-999em;right:-999em}.components-datetime__time-field-day-input,.components-datetime__time-field-hours-input,.components-datetime__time-field-minutes-input{width:35px}.components-datetime__time-field-year-input{width:55px}.components-datetime__time-field-month-select{max-width:145px}.components-popover .components-datetime__date{padding-right:4px}.block-editor-dimension-control .components-base-control__field{display:flex;align-items:center}.block-editor-dimension-control .components-base-control__label{display:flex;align-items:center;margin-left:1em;margin-bottom:0}.block-editor-dimension-control .components-base-control__label .dashicon{margin-left:.5em}.block-editor-dimension-control.is-manual .components-base-control__label{width:10em}.components-disabled{position:relative;pointer-events:none}.components-disabled:after{content:"";position:absolute;top:0;left:0;bottom:0;right:0}.components-disabled *{pointer-events:none}body.is-dragging-components-draggable{cursor:move;cursor:grabbing!important}.components-draggable__invisible-drag-image{position:fixed;right:-1000px;height:50px;width:50px}.components-draggable__clone{position:fixed;padding:0;background:transparent;pointer-events:none;z-index:1000000000}.components-drop-zone{position:absolute;top:0;left:0;bottom:0;right:0;z-index:40;visibility:hidden;opacity:0;transition:opacity .3s,background-color .3s,visibility 0s .3s;border:2px solid #007cba;border:2px solid var(--wp-admin-theme-color);border-radius:2px}@media (prefers-reduced-motion:reduce){.components-drop-zone{transition-duration:0s}}.components-drop-zone.is-active{opacity:1;visibility:visible;transition:opacity .3s,background-color .3s}@media (prefers-reduced-motion:reduce){.components-drop-zone.is-active{transition-duration:0s}}.components-drop-zone.is-dragging-over-element{background-color:#007cba;background-color:var(--wp-admin-theme-color)}.components-drop-zone__content{position:absolute;top:50%;right:0;left:0;z-index:50;transform:translateY(-50%);width:100%;text-align:center;color:#fff;transition:transform .2s ease-in-out}@media (prefers-reduced-motion:reduce){.components-drop-zone__content{transition-duration:0s}}.components-drop-zone.is-dragging-over-element .components-drop-zone__content{transform:translateY(-50%) scale(1.05)}.components-drop-zone__content-icon,.components-drop-zone__content-text{display:block}.components-drop-zone__content-icon{margin:0 auto;line-height:0;fill:currentColor}.components-drop-zone__content-text{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.components-drop-zone__provider{height:100%}.components-dropdown{display:inline-block}.components-dropdown__content .components-popover__content>div{padding:12px}.components-dropdown-menu__popover .components-popover__content{width:200px}.components-dropdown-menu__menu{width:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:1.4}.components-dropdown-menu__menu .components-dropdown-menu__menu-item,.components-dropdown-menu__menu .components-menu-item{width:100%;padding:6px;outline:none;cursor:pointer}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator,.components-dropdown-menu__menu .components-menu-item.has-separator{margin-top:6px;position:relative;overflow:visible}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator:before,.components-dropdown-menu__menu .components-menu-item.has-separator:before{display:block;content:"";box-sizing:content-box;background-color:#ddd;position:absolute;top:-3px;right:0;left:0;height:1px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-active svg,.components-dropdown-menu__menu .components-menu-item.is-active svg{color:#fff;background:#1e1e1e;box-shadow:0 0 0 1px #1e1e1e;border-radius:1px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item>svg,.components-dropdown-menu__menu .components-menu-item>svg{border-radius:2px;width:24px;height:24px}.components-dropdown-menu__menu .components-menu-item__button,.components-dropdown-menu__menu .components-menu-item__button.components-button{min-height:36px;height:auto;text-align:right;padding-right:8px;padding-left:8px}.components-dropdown-menu__menu .components-menu-item__button.components-button .components-menu-item__info-wrapper,.components-dropdown-menu__menu .components-menu-item__button .components-menu-item__info-wrapper{max-width:calc(100% - 32px)}.components-dropdown-menu__menu .components-menu-group{padding:12px;margin:0 -12px}.components-dropdown-menu__menu .components-menu-group:first-child{margin-top:-12px}.components-dropdown-menu__menu .components-menu-group:last-child{margin-bottom:-12px}.components-dropdown-menu__menu .components-menu-group+.components-menu-group{margin-top:0;border-top:1px solid #ccc;padding:12px}.is-alternate .components-dropdown-menu__menu .components-menu-group+.components-menu-group{border-color:#1e1e1e}.components-font-size-picker__controls{max-width:248px;display:flex;flex-wrap:wrap;align-items:center;margin-bottom:24px}.components-font-size-picker__controls .components-font-size-picker__number{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;display:inline-block;font-weight:500;height:30px;margin:8px 0 0 8px;width:54px}@media (prefers-reduced-motion:reduce){.components-font-size-picker__controls .components-font-size-picker__number{transition-duration:0s}}@media (min-width:600px){.components-font-size-picker__controls .components-font-size-picker__number{font-size:13px;line-height:normal}}.components-font-size-picker__controls .components-font-size-picker__number: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}.components-font-size-picker__controls .components-font-size-picker__number::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-font-size-picker__controls .components-font-size-picker__number::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-font-size-picker__controls .components-font-size-picker__number:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-font-size-picker__controls .components-font-size-picker__number::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-font-size-picker__controls .components-font-size-picker__number::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-font-size-picker__controls .components-font-size-picker__number:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-font-size-picker__controls .components-font-size-picker__number[value=""]+.components-button{cursor:default;opacity:.3;pointer-events:none}.components-font-size-picker__controls .components-font-size-picker__number-container{display:flex;flex-direction:column}.components-font-size-picker__controls .components-font-size-picker__select{margin-left:8px}.components-font-size-picker__controls .components-color-palette__clear{height:30px;margin-top:26px}.components-font-size-picker__custom-input .components-range-control__slider+.dashicon{width:30px;height:30px}.components-font-size-picker{border:0;padding:0;margin:0}.components-form-toggle{position:relative;display:inline-block}.components-form-toggle .components-form-toggle__track{content:"";display:inline-block;box-sizing:border-box;vertical-align:top;background-color:#fff;border:1px solid #1e1e1e;width:36px;height:18px;border-radius:9px;transition:background .2s ease}@media (prefers-reduced-motion:reduce){.components-form-toggle .components-form-toggle__track{transition-duration:0s}}.components-form-toggle .components-form-toggle__thumb{display:block;position:absolute;box-sizing:border-box;top:3px;right:3px;width:12px;height:12px;border-radius:50%;transition:transform .1s ease;background-color:#1e1e1e;border:5px solid #1e1e1e}@media (prefers-reduced-motion:reduce){.components-form-toggle .components-form-toggle__thumb{transition-duration:0s}}.components-form-toggle.is-checked .components-form-toggle__track{background-color:#007cba;background-color:var(--wp-admin-theme-color);border:9px solid transparent}.components-form-toggle .components-form-toggle__input:focus+.components-form-toggle__track{box-shadow:0 0 0 2px #fff,0 0 0 3.5px #007cba;box-shadow:0 0 0 2px #fff,0 0 0 3.5px var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:2px}.components-form-toggle.is-checked .components-form-toggle__thumb{background-color:#fff;border-width:0;transform:translateX(-18px)}.components-disabled .components-form-toggle{opacity:.3}.components-form-toggle input.components-form-toggle__input[type=checkbox]{position:absolute;top:0;right:0;width:100%;height:100%;opacity:0;margin:0;padding:0;z-index:1;border:none}.components-form-toggle input.components-form-toggle__input[type=checkbox]:checked{background:none}.components-form-toggle input.components-form-toggle__input[type=checkbox]:before{content:""}.components-form-token-field__input-container{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;border:1px solid #757575;font-size:16px;line-height:normal;display:flex;flex-wrap:wrap;align-items:flex-start;width:100%;margin:0 0 8px;padding:4px;cursor:text}@media (prefers-reduced-motion:reduce){.components-form-token-field__input-container{transition-duration:0s}}@media (min-width:600px){.components-form-token-field__input-container{font-size:13px;line-height:normal}}.components-form-token-field__input-container: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}.components-form-token-field__input-container::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-form-token-field__input-container::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-form-token-field__input-container:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-form-token-field__input-container::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-form-token-field__input-container::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-form-token-field__input-container:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-form-token-field__input-container.is-disabled{background:#ddd;border-color:#ddd}.components-form-token-field__input-container.is-active{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}.components-form-token-field__input-container input[type=text].components-form-token-field__input{display:inline-block;width:100%;max-width:100%;margin-right:4px;padding:0;min-height:24px;background:inherit;border:0;color:#1e1e1e;box-shadow:none}.components-form-token-field.is-active .components-form-token-field__input-container input[type=text].components-form-token-field__input,.components-form-token-field__input-container input[type=text].components-form-token-field__input:focus{outline:none;box-shadow:none}.components-form-token-field__input-container .components-form-token-field__token+input[type=text].components-form-token-field__input{width:auto}.components-form-token-field__label{display:inline-block;margin-bottom:4px}.components-form-token-field__help{font-size:12px;font-style:normal;color:#757575}.components-form-token-field__token{font-size:13px;display:flex;margin:2px 0 2px 4px;color:#1e1e1e;max-width:100%}.components-form-token-field__token.is-success .components-form-token-field__remove-token,.components-form-token-field__token.is-success .components-form-token-field__token-text{background:#4ab866}.components-form-token-field__token.is-error .components-form-token-field__remove-token,.components-form-token-field__token.is-error .components-form-token-field__token-text{background:#cc1818}.components-form-token-field__token.is-validating .components-form-token-field__remove-token,.components-form-token-field__token.is-validating .components-form-token-field__token-text{color:#757575}.components-form-token-field__token.is-borderless{position:relative;padding:0 0 0 16px}.components-form-token-field__token.is-borderless .components-form-token-field__token-text{background:transparent;color:#007cba;color:var(--wp-admin-theme-color)}.components-form-token-field__token.is-borderless .components-form-token-field__remove-token{background:transparent;color:#757575;position:absolute;top:1px;left:0}.components-form-token-field__token.is-borderless.is-success .components-form-token-field__token-text{color:#4ab866}.components-form-token-field__token.is-borderless.is-error .components-form-token-field__token-text{color:#cc1818;border-radius:0 4px 4px 0;padding:0 6px 0 4px}.components-form-token-field__token.is-borderless.is-validating .components-form-token-field__token-text{color:#1e1e1e}.components-form-token-field__token.is-disabled .components-form-token-field__remove-token{cursor:default}.components-form-token-field__remove-token.components-button,.components-form-token-field__token-text{display:inline-block;line-height:24px;height:auto;background:#ddd;transition:all .2s cubic-bezier(.4,1,.4,1)}@media (prefers-reduced-motion:reduce){.components-form-token-field__remove-token.components-button,.components-form-token-field__token-text{transition-duration:0s;animation-duration:1ms}}.components-form-token-field__token-text{border-radius:0 12px 12px 0;padding:0 8px 0 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.components-form-token-field__remove-token.components-button{cursor:pointer;border-radius:12px 0 0 12px;padding:0 2px;color:#757575;line-height:10px;overflow:initial}.components-form-token-field__remove-token.components-button:hover{color:#1e1e1e}.components-form-token-field__suggestions-list{flex:1 0 100%;min-width:100%;max-height:9em;overflow-y:auto;transition:all .15s ease-in-out;list-style:none;border-top:1px solid #757575;margin:4px -4px -4px;padding:0}@media (prefers-reduced-motion:reduce){.components-form-token-field__suggestions-list{transition-duration:0s}}.components-form-token-field__suggestion{color:#757575;display:block;font-size:13px;padding:4px 8px;margin:0;cursor:pointer}.components-form-token-field__suggestion.is-selected{background:#007cba;background:var(--wp-admin-theme-color);color:#fff}.components-form-token-field__suggestion-match{text-decoration:underline}@media (min-width:600px){.components-guide{width:600px}}.components-guide .components-modal__header{background:none;border-bottom:none;width:100%;padding:0;margin:0}.components-guide .components-modal__header .components-button{align-self:flex-start;margin:8px 0 0 8px;position:static}.components-guide .components-modal__header .components-button:hover svg{fill:#fff}.components-guide__container{display:flex;flex-direction:column;justify-content:space-between;margin-top:-60px;min-height:100%}.components-guide__page{display:flex;flex-direction:column;justify-content:center;position:relative}@media (min-width:600px){.components-guide__page{min-height:300px}}.components-guide__footer{align-content:center;display:flex;height:30px;justify-content:center;margin:0 0 24px;padding:0 32px;position:relative;width:100%}@media (max-width:600px){.components-guide__footer{position:absolute;bottom:0}}.components-guide__page-control{margin:8px 0;text-align:center}.components-guide__page-control li{display:inline-block}.components-guide__page-control .components-button{height:30px;min-width:20px}.components-guide .components-modal__content{padding:0}.components-modal__frame.components-guide{border:none;min-width:312px;height:80vh;max-height:575px}@media (max-width:600px){.components-modal__frame.components-guide{bottom:5%;right:16px;left:16px;top:5%;margin:0 auto}}.components-button.components-guide__back-button,.components-button.components-guide__finish-button,.components-button.components-guide__forward-button{height:30px;position:absolute}.components-button.components-guide__back-button,.components-button.components-guide__forward-button{font-size:13px;padding:4px 2px}.components-button.components-guide__back-button.has-text svg,.components-button.components-guide__forward-button.has-text svg{margin:0}.components-button.components-guide__back-button:hover,.components-button.components-guide__forward-button:hover{text-decoration:underline}.components-button.components-guide__back-button{right:32px}.components-button.components-guide__forward-button{left:32px;color:#1386bf;font-weight:700}.components-button.components-guide__finish-button{left:32px}.components-button.components-guide__inline-finish-button{display:none}.components-navigate-regions.is-focusing-regions [role=region]{position:relative}.components-navigate-regions.is-focusing-regions [role=region]:focus:after{content:"";position:absolute;top:0;bottom:0;right:0;left:0;pointer-events:none;outline:4px solid transparent;box-shadow:inset 0 0 0 4px #007cba;box-shadow:inset 0 0 0 4px var(--wp-admin-theme-color)}@supports (outline-offset:1px){.components-navigate-regions.is-focusing-regions [role=region]:focus:after{content:none}.components-navigate-regions.is-focusing-regions [role=region]:focus{outline-style:solid;outline-color:#007cba;outline-color:var(--wp-admin-theme-color);outline-width:4px;outline-offset:-4px}}.components-menu-group+.components-menu-group{margin-top:8px;padding-top:8px;border-top:1px solid #1e1e1e}.components-menu-group__label{padding:0 8px;margin-top:4px;margin-bottom:12px;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500}.components-menu-item__button,.components-menu-item__button.components-button{width:100%}.components-menu-item__button.components-button .components-menu-items__item-icon,.components-menu-item__button .components-menu-items__item-icon{margin-left:-2px;margin-right:auto;display:inline-block;flex:0 0 auto}.components-menu-item__button.components-button .components-menu-item__shortcut+.components-menu-items__item-icon,.components-menu-item__button .components-menu-item__shortcut+.components-menu-items__item-icon{margin-right:8px}.components-menu-item__button .block-editor-block-icon,.components-menu-item__button.components-button .block-editor-block-icon{margin-right:-2px;margin-left:8px}.components-menu-item__info-wrapper{display:flex;flex-direction:column}.components-menu-item__info{margin-top:4px;font-size:12px;color:#757575}.components-menu-item__shortcut{-ms-grid-row-align:center;align-self:center;margin-left:0;margin-right:auto;padding-right:12px;color:currentColor;display:none}@media (min-width:480px){.components-menu-item__shortcut{display:inline}}.components-menu-items-choice.components-button svg,.components-menu-items-choice svg{margin-left:12px}.components-menu-items-choice.components-button.has-icon,.components-menu-items-choice.has-icon{padding-right:12px}.components-modal__screen-overlay{position:fixed;top:0;left:0;bottom:0;right:0;background-color:rgba(0,0,0,.7);z-index:100000;animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-modal__screen-overlay{animation-duration:1ms}}.components-modal__frame{position:absolute;top:0;left:0;bottom:0;right:0;box-sizing:border-box;margin:0;border:1px solid #ddd;background:#fff;box-shadow:0 3px 30px rgba(0,0,0,.2);overflow:auto}@media (min-width:600px){.components-modal__frame{top:50%;left:auto;bottom:auto;right:50%;min-width:360px;max-width:calc(100% - 32px);max-height:calc(100% - 120px);transform:translate(50%,-50%);animation:components-modal__appear-animation .1s ease-out;animation-fill-mode:forwards}}@media (min-width:600px) and (prefers-reduced-motion:reduce){.components-modal__frame{animation-duration:1ms}}@keyframes components-modal__appear-animation{0%{margin-top:32px}to{margin-top:0}}.components-modal__header{box-sizing:border-box;border-bottom:1px solid #ddd;padding:0 24px;display:flex;flex-direction:row;justify-content:space-between;background:#fff;align-items:center;height:60px;z-index:10;position:relative;position:-webkit-sticky;position:sticky;top:0;margin:0 -24px 24px}@supports (-ms-ime-align:auto){.components-modal__header{position:fixed;width:100%}}.components-modal__header .components-modal__header-heading{font-size:1rem;font-weight:600}.components-modal__header h1{line-height:1;margin:0}.components-modal__header .components-button{position:relative;right:8px}.components-modal__header-heading-container{align-items:center;flex-grow:1;display:flex;flex-direction:row;justify-content:left}.components-modal__header-icon-container{display:inline-block}.components-modal__header-icon-container svg{max-width:36px;max-height:36px;padding:8px}.components-modal__content{box-sizing:border-box;height:100%;padding:0 24px 24px}@supports (-ms-ime-align:auto){.components-modal__content{padding-top:60px}}.components-notice{display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;background-color:#fff;border-right:4px solid #007cba;border-right:4px solid var(--wp-admin-theme-color);margin:5px 15px 2px;padding:8px 12px;align-items:center}.components-notice.is-dismissible{padding-left:36px;position:relative}.components-notice.is-success{border-right-color:#4ab866;background-color:#eff9f1}.components-notice.is-warning{border-right-color:#f0b849;background-color:#fef8ee}.components-notice.is-error{border-right-color:#cc1818;background-color:#f4a2a2}.components-notice__content{flex-grow:1;margin:4px 0 4px 25px}.components-notice__action.components-button,.components-notice__action.components-button.is-link{margin-right:12px}.components-notice__action.components-button.is-secondary{vertical-align:initial}.components-notice__dismiss{color:#757575;align-self:flex-start;flex-shrink:0}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):focus,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):active,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{color:#1e1e1e;background-color:transparent}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{box-shadow:none}.components-notice-list{max-width:100vw;box-sizing:border-box;z-index:29}.components-notice-list .components-notice__content{margin-top:12px;margin-bottom:12px;line-height:2}.components-notice-list .components-notice__action.components-button{display:block;margin-right:0;margin-top:8px}.components-panel{background:#fff;border:1px solid #e0e0e0}.components-panel>.components-panel__body:first-child,.components-panel>.components-panel__header:first-child{margin-top:-1px}.components-panel>.components-panel__body:last-child,.components-panel>.components-panel__header:last-child{border-bottom-width:0}.components-panel+.components-panel{margin-top:-1px}.components-panel__body{border-top:1px solid #e0e0e0;border-bottom:1px solid #e0e0e0}.components-panel__body h3{margin:0 0 .5em}.components-panel__body.is-opened{padding:16px}.components-panel__header{display:flex;justify-content:space-between;align-items:center;padding:0 16px;height:48px;border-top:1px solid #ddd;border-bottom:1px solid #ddd}.components-panel__header h2{margin:0;font-size:inherit;color:inherit}.components-panel__body+.components-panel__body,.components-panel__body+.components-panel__header,.components-panel__header+.components-panel__body,.components-panel__header+.components-panel__header{margin-top:-1px}.components-panel__body>.components-panel__body-title{display:block;padding:0;font-size:inherit;margin-top:0;margin-bottom:0;transition:background .1s ease-in-out}@media (prefers-reduced-motion:reduce){.components-panel__body>.components-panel__body-title{transition-duration:0s}}.components-panel__body.is-opened>.components-panel__body-title{margin:-16px -16px 5px}.components-panel__body>.components-panel__body-title:hover{background:#f0f0f0;border:none}.components-panel__body-toggle.components-button{position:relative;padding:16px;outline:none;width:100%;font-weight:500;text-align:right;color:#1e1e1e;border:none;box-shadow:none;transition:background .1s ease-in-out;height:auto}@media (prefers-reduced-motion:reduce){.components-panel__body-toggle.components-button{transition-duration:0s}}.components-panel__body-toggle.components-button:focus{box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color);border-radius:0}.components-panel__body-toggle.components-button .components-panel__arrow{position:absolute;left:16px;top:50%;transform:translateY(-50%);color:#1e1e1e;fill:currentColor;transition:color .1s ease-in-out}@media (prefers-reduced-motion:reduce){.components-panel__body-toggle.components-button .components-panel__arrow{transition-duration:0s}}body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right{transform:scaleX(-1);-ms-filter:fliph;filter:FlipH;margin-top:-10px}.components-panel__icon{color:#757575;margin:-2px 6px -2px 0}.components-panel__body-toggle-icon{margin-left:-5px}.components-panel__color-title{float:right;height:19px}.components-panel__row{display:flex;justify-content:space-between;align-items:center;margin-top:8px;min-height:36px}.components-panel__row select{min-width:0}.components-panel__row label{margin-left:12px;flex-shrink:0;max-width:75%}.components-panel__row:empty,.components-panel__row:first-of-type{margin-top:0}.components-panel .circle-picker{padding-bottom:20px}.components-placeholder.components-placeholder{box-sizing:border-box;position:relative;padding:1em;min-height:200px;width:100%;text-align:right;margin:0;color:#1e1e1e;-moz-font-smoothing:subpixel-antialiased;-webkit-font-smoothing:subpixel-antialiased;border-radius:2px;background-color:#fff;box-shadow:inset 0 0 0 1px #1e1e1e;outline:1px solid transparent}@supports ((position:-webkit-sticky) or (position:sticky)){.components-placeholder.components-placeholder{display:flex;flex-direction:column;justify-content:center;align-items:flex-start}}.components-placeholder.components-placeholder .components-base-control__label{font-size:13px}.components-placeholder__error,.components-placeholder__fieldset,.components-placeholder__instructions,.components-placeholder__label{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-placeholder__label{display:flex;font-weight:600;margin-bottom:16px;align-items:center}.components-placeholder__label .block-editor-block-icon,.components-placeholder__label .dashicon,.components-placeholder__label>svg{fill:currentColor;margin-left:1ch}.components-placeholder__fieldset,.components-placeholder__fieldset form{display:flex;flex-direction:row;width:100%;flex-wrap:wrap}.components-placeholder__fieldset form p,.components-placeholder__fieldset p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-placeholder__fieldset.is-column-layout,.components-placeholder__fieldset.is-column-layout form{flex-direction:column}.components-placeholder__input[type=url]{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;margin:0 0 0 8px;flex:1 1 auto}@media (prefers-reduced-motion:reduce){.components-placeholder__input[type=url]{transition-duration:0s}}@media (min-width:600px){.components-placeholder__input[type=url]{font-size:13px;line-height:normal}}.components-placeholder__input[type=url]: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}.components-placeholder__input[type=url]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-placeholder__input[type=url]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-placeholder__input[type=url]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-placeholder__input[type=url]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-placeholder__input[type=url]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-placeholder__input[type=url]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-placeholder__instructions{margin-bottom:1em}.components-placeholder__error{margin-top:1em;width:100%}.components-placeholder__preview img{margin:3%;width:50%}.components-placeholder__fieldset .components-button{margin-left:12px;margin-bottom:12px}.components-placeholder__fieldset .components-button:last-child{margin-bottom:0;margin-left:0}.components-placeholder__fieldset .components-button:not(.is-link)~.components-button.is-link{margin-right:10px;margin-left:10px}.components-placeholder__fieldset .components-button:not(.is-link)~.components-button.is-link:last-child{margin-left:0}.components-placeholder.is-large .components-placeholder__label{font-size:18pt;font-weight:400}.components-placeholder.is-medium .components-placeholder__instructions,.components-placeholder.is-small .components-placeholder__instructions{display:none}.components-placeholder.is-medium .components-placeholder__fieldset,.components-placeholder.is-medium .components-placeholder__fieldset form,.components-placeholder.is-small .components-placeholder__fieldset,.components-placeholder.is-small .components-placeholder__fieldset form{flex-direction:column}.components-placeholder.is-medium .components-placeholder__fieldset .components-button,.components-placeholder.is-small .components-placeholder__fieldset .components-button{margin-left:auto}.components-placeholder.is-small .components-button{padding:0 8px 2px}.components-popover{position:fixed;z-index:1000000;top:0;left:0;opacity:0}.components-popover.is-expanded,.components-popover[data-x-axis][data-y-axis]{opacity:1}.components-popover.is-expanded{top:0;left:0;right:0;bottom:0;z-index:1000000!important}.components-popover:not(.is-without-arrow){margin-left:2px}.components-popover:not(.is-without-arrow):before{border:8px solid #ccc}.components-popover:not(.is-without-arrow).is-alternate:before{border-color:#1e1e1e}.components-popover:not(.is-without-arrow):after{border:8px solid #fff}.components-popover:not(.is-without-arrow):after,.components-popover:not(.is-without-arrow):before{content:"";position:absolute;height:0;width:0;line-height:0}.components-popover:not(.is-without-arrow)[data-y-axis=top]{margin-top:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=top]:before{bottom:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=top]:after{bottom:-6px}.components-popover:not(.is-without-arrow)[data-y-axis=top]:after,.components-popover:not(.is-without-arrow)[data-y-axis=top]:before{border-bottom:none;border-left-color:transparent;border-right-color:transparent;border-top-style:solid;margin-left:-10px}.components-popover:not(.is-without-arrow)[data-y-axis=bottom]{margin-top:8px}.components-popover:not(.is-without-arrow)[data-y-axis=bottom]:before{top:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=bottom]:after{top:-6px}.components-popover:not(.is-without-arrow)[data-y-axis=bottom]:after,.components-popover:not(.is-without-arrow)[data-y-axis=bottom]:before{border-bottom-style:solid;border-left-color:transparent;border-right-color:transparent;border-top:none;margin-left:-10px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=left]{margin-left:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=left]:before{right:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=left]:after{right:-6px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=left]:after,.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=left]:before{border-bottom-color:transparent;border-left-style:solid;border-right:none;border-top-color:transparent}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=right]{margin-left:8px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=right]:before{left:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=right]:after{left:-6px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=right]:after,.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=right]:before{border-bottom-color:transparent;border-left:none;border-right-style:solid;border-top-color:transparent}.components-popover[data-y-axis=top]{bottom:100%}.components-popover[data-y-axis=bottom]{top:100%}.components-popover[data-y-axis=middle]{align-items:center;display:flex}.components-popover.is-from-top{margin-top:12px}.components-popover.is-from-bottom{margin-top:-12px}.components-popover.is-from-left:not(.is-from-top):not(.is-from-bottom){margin-left:12px}.components-popover.is-from-right:not(.is-from-top):not(.is-from-bottom){margin-right:12px}.components-popover__content{height:100%;background:#fff;border:1px solid #ccc;box-shadow:0 2px 6px rgba(0,0,0,.05);border-radius:2px}.is-alternate .components-popover__content{border:1px solid #1e1e1e;box-shadow:none}.components-popover .components-popover__content{position:absolute;height:auto;overflow-y:auto;min-width:260px}.components-popover.is-expanded .components-popover__content{position:static;height:calc(100% - 48px);overflow-y:visible;min-width:auto;border:none;border-top:1px solid #1e1e1e}.components-popover[data-y-axis=top] .components-popover__content{bottom:100%}.components-popover[data-x-axis=center] .components-popover__content{left:50%;transform:translateX(-50%)}.components-popover[data-x-axis=right] .components-popover__content{position:absolute;left:100%}.components-popover:not([data-y-axis=middle])[data-x-axis=right] .components-popover__content{margin-left:-25px}.components-popover[data-x-axis=left] .components-popover__content{position:absolute;right:100%}.components-popover:not([data-y-axis=middle])[data-x-axis=left] .components-popover__content{margin-right:-25px}.components-popover__header{align-items:center;background:#fff;display:flex;height:48px;justify-content:space-between;padding:0 8px 0 16px}.components-popover__header-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.components-popover__close.components-button{z-index:5}.components-radio-control{display:flex;flex-direction:column}.components-radio-control .components-base-control__help{margin-top:0}.components-radio-control .components-base-control__field{margin-bottom:0}.components-radio-control__option:not(:last-child){margin-bottom:4px}.components-radio-control__input[type=radio]{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;font-size:16px;line-height:normal;border:1px solid #1e1e1e;transition:none;border-radius:50%;margin-top:0;margin-left:6px}@media (prefers-reduced-motion:reduce){.components-radio-control__input[type=radio]{transition-duration:0s}}@media (min-width:600px){.components-radio-control__input[type=radio]{font-size:13px;line-height:normal}}.components-radio-control__input[type=radio]: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)}.components-radio-control__input[type=radio]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-radio-control__input[type=radio]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-radio-control__input[type=radio]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-radio-control__input[type=radio]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-radio-control__input[type=radio]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-radio-control__input[type=radio]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-radio-control__input[type=radio]:checked:before{width:7px;height:7px;margin:8px 8px 0 0;background-color:#fff;border:3px solid #fff}@media (min-width:782px){.components-radio-control__input[type=radio]:checked:before{width:6px;height:6px;margin:4px 4px 0 0}}.components-radio-control__input[type=radio]:focus{box-shadow:0 0 0 2px #fff,0 0 0 3.5px #007cba;box-shadow:0 0 0 2px #fff,0 0 0 3.5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-radio-control__input[type=radio]:checked{background:#007cba;background:var(--wp-admin-theme-color);border-color:#007cba;border-color:var(--wp-admin-theme-color)}.components-resizable-box__handle{display:none;width:23px;height:23px;z-index:2}.components-resizable-box__container.has-show-handle .components-resizable-box__handle{display:block}.components-resizable-box__handle:after{display:block;content:"";width:15px;height:15px;border:2px solid #fff;border-radius:50%;background:#007cba;background:var(--wp-admin-theme-color);cursor:inherit;position:absolute;top:calc(50% - 8px);left:calc(50% - 8px)}.components-resizable-box__side-handle:before{display:block;content:"";width:7px;height:7px;border:2px solid #fff;background:#007cba;background:var(--wp-admin-theme-color);cursor:inherit;position:absolute;top:calc(50% - 4px);left:calc(50% - 4px);transition:transform .1s ease-in;opacity:0}@media (prefers-reduced-motion:reduce){.components-resizable-box__side-handle:before{transition-duration:0s}}.is-dark-theme .components-resizable-box__handle:after,.is-dark-theme .components-resizable-box__side-handle:before{border-color:#ddd}.components-resizable-box__corner-handle,.components-resizable-box__side-handle{z-index:2}.components-resizable-box__side-handle.components-resizable-box__handle-bottom,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:before,.components-resizable-box__side-handle.components-resizable-box__handle-top,.components-resizable-box__side-handle.components-resizable-box__handle-top:before{width:100%;right:0;border-right:0;border-left:0}.components-resizable-box__side-handle.components-resizable-box__handle-left,.components-resizable-box__side-handle.components-resizable-box__handle-left:before,.components-resizable-box__side-handle.components-resizable-box__handle-right,.components-resizable-box__side-handle.components-resizable-box__handle-right:before{height:100%;top:0;border-top:0;border-bottom:0}.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation:components-resizable-box__top-bottom-animation .1s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation-duration:1ms}}.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before{animation:components-resizable-box__left-right-animation .1s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before{animation-duration:1ms}}@media not all and (min-resolution:0.001dpcm){@supports (-webkit-appearance:none){.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation:none}.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before{animation:none}}}@keyframes components-resizable-box__top-bottom-animation{0%{transform:scaleX(0);opacity:0}to{transform:scaleX(1);opacity:1}}@keyframes components-resizable-box__left-right-animation{0%{transform:scaleY(0);opacity:0}to{transform:scaleY(1);opacity:1}}.components-resizable-box__handle-right{right:-11.5px}.components-resizable-box__handle-left{left:-11.5px}.components-resizable-box__handle-top{top:-11.5px}.components-resizable-box__handle-bottom{bottom:-11.5px}.components-responsive-wrapper{position:relative;max-width:100%}.components-responsive-wrapper,.components-responsive-wrapper>span{display:block}.components-responsive-wrapper__content{position:absolute;top:0;left:0;bottom:0;right:0;width:100%;height:100%;margin:auto}.components-sandbox{overflow:hidden}iframe.components-sandbox{width:100%}body.lockscroll,html.lockscroll{overflow:hidden}.components-select-control__input{background:#fff;height:36px;line-height:36px;margin:1px;outline:0;width:100%;-webkit-tap-highlight-color:rgba(0,0,0,0)!important}@media (min-width:782px){.components-select-control__input{height:28px;line-height:28px}}@media (max-width:782px){.components-base-control .components-base-control__field .components-select-control__input{font-size:16px}}.components-snackbar{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;background-color:#1e1e1e;border-radius:2px;box-shadow:0 2px 4px rgba(0,0,0,.3);color:#fff;padding:16px 24px;width:100%;max-width:600px;box-sizing:border-box;cursor:pointer}@media (min-width:600px){.components-snackbar{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}}.components-snackbar:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px #007cba;box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color)}.components-snackbar__action.components-button{margin-right:32px;color:#fff;height:auto;flex-shrink:0;line-height:1.4;padding:0}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary){text-decoration:underline;background-color:transparent}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):focus{color:#fff;box-shadow:none;outline:1px dotted #fff}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{color:#007cba;color:var(--wp-admin-theme-color)}.components-snackbar__content{display:flex;align-items:baseline;justify-content:space-between;line-height:1.4}.components-snackbar-list{position:absolute;z-index:100000;width:100%;box-sizing:border-box}.components-snackbar-list__notice-container{position:relative;padding-top:8px}.components-spinner{display:inline-block;background-color:#949494;width:18px;height:18px;opacity:.7;margin:5px 11px 0;border-radius:100%;position:relative}.components-spinner:before{content:"";position:absolute;background-color:#fff;top:3px;left:3px;width:4px;height:4px;border-radius:100%;transform-origin:6px 6px;animation:components-spinner__animation 1s linear infinite}@keyframes components-spinner__animation{0%{transform:rotate(0deg)}to{transform:rotate(-1turn)}}.components-tab-panel__tabs{display:flex;align-items:stretch}.components-tab-panel__tabs-item{background:transparent;border:none;box-shadow:none;border-radius:0;cursor:pointer;height:48px;padding:3px 16px;margin-right:0;font-weight:500;transition:box-shadow .1s linear;box-sizing:border-box}.components-tab-panel__tabs-item:after{content:attr(data-label);display:block;height:0;overflow:hidden;speak:none;visibility:hidden}.components-tab-panel__tabs-item:focus:not(:disabled){box-shadow:inset 0 1.5px #007cba;box-shadow:inset 0 1.5px var(--wp-admin-theme-color)}.components-tab-panel__tabs-item.is-active{box-shadow:inset 0 0 0 1.5px transparent,inset 0 -4px 0 0 #007cba;box-shadow:inset 0 0 0 1.5px transparent,inset 0 -4px 0 0 var(--wp-admin-theme-color);position:relative}.components-tab-panel__tabs-item.is-active:before{content:"";position:absolute;top:0;bottom:1px;left:0;right:0;border-bottom:4px solid transparent}.components-tab-panel__tabs-item:focus{box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color)}.components-tab-panel__tabs-item.is-active:focus{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 -4px 0 0 #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 -4px 0 0 var(--wp-admin-theme-color)}.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{width:100%;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){.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{transition-duration:0s}}@media (min-width:600px){.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{font-size:13px;line-height:normal}}.components-text-control__input:focus,.components-text-control__input[type=color]:focus,.components-text-control__input[type=date]:focus,.components-text-control__input[type=datetime-local]:focus,.components-text-control__input[type=datetime]:focus,.components-text-control__input[type=email]:focus,.components-text-control__input[type=month]:focus,.components-text-control__input[type=number]:focus,.components-text-control__input[type=password]:focus,.components-text-control__input[type=tel]:focus,.components-text-control__input[type=text]:focus,.components-text-control__input[type=time]:focus,.components-text-control__input[type=url]:focus,.components-text-control__input[type=week]: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}.components-text-control__input::-webkit-input-placeholder,.components-text-control__input[type=color]::-webkit-input-placeholder,.components-text-control__input[type=date]::-webkit-input-placeholder,.components-text-control__input[type=datetime-local]::-webkit-input-placeholder,.components-text-control__input[type=datetime]::-webkit-input-placeholder,.components-text-control__input[type=email]::-webkit-input-placeholder,.components-text-control__input[type=month]::-webkit-input-placeholder,.components-text-control__input[type=number]::-webkit-input-placeholder,.components-text-control__input[type=password]::-webkit-input-placeholder,.components-text-control__input[type=tel]::-webkit-input-placeholder,.components-text-control__input[type=text]::-webkit-input-placeholder,.components-text-control__input[type=time]::-webkit-input-placeholder,.components-text-control__input[type=url]::-webkit-input-placeholder,.components-text-control__input[type=week]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-text-control__input::-moz-placeholder,.components-text-control__input[type=color]::-moz-placeholder,.components-text-control__input[type=date]::-moz-placeholder,.components-text-control__input[type=datetime-local]::-moz-placeholder,.components-text-control__input[type=datetime]::-moz-placeholder,.components-text-control__input[type=email]::-moz-placeholder,.components-text-control__input[type=month]::-moz-placeholder,.components-text-control__input[type=number]::-moz-placeholder,.components-text-control__input[type=password]::-moz-placeholder,.components-text-control__input[type=tel]::-moz-placeholder,.components-text-control__input[type=text]::-moz-placeholder,.components-text-control__input[type=time]::-moz-placeholder,.components-text-control__input[type=url]::-moz-placeholder,.components-text-control__input[type=week]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-text-control__input:-ms-input-placeholder,.components-text-control__input[type=color]:-ms-input-placeholder,.components-text-control__input[type=date]:-ms-input-placeholder,.components-text-control__input[type=datetime-local]:-ms-input-placeholder,.components-text-control__input[type=datetime]:-ms-input-placeholder,.components-text-control__input[type=email]:-ms-input-placeholder,.components-text-control__input[type=month]:-ms-input-placeholder,.components-text-control__input[type=number]:-ms-input-placeholder,.components-text-control__input[type=password]:-ms-input-placeholder,.components-text-control__input[type=tel]:-ms-input-placeholder,.components-text-control__input[type=text]:-ms-input-placeholder,.components-text-control__input[type=time]:-ms-input-placeholder,.components-text-control__input[type=url]:-ms-input-placeholder,.components-text-control__input[type=week]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-text-control__input::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=color]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=date]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=datetime-local]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=datetime]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=email]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=month]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=number]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=password]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=tel]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=text]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=time]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=url]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=week]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-text-control__input::-moz-placeholder,.is-dark-theme .components-text-control__input[type=color]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=date]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=datetime-local]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=datetime]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=email]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=month]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=number]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=password]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=tel]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=text]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=time]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=url]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=week]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-text-control__input:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=color]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=date]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=datetime-local]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=datetime]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=email]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=month]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=number]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=password]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=tel]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=text]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=time]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=url]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=week]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-tip{display:flex;color:#757575}.components-tip svg{-ms-grid-row-align:center;align-self:center;fill:#f0b849;flex-shrink:0;margin-left:16px}.components-tip p{margin:0}.components-toggle-control .components-base-control__field{display:flex;margin-bottom:12px;line-height:normal;align-items:center}.components-toggle-control .components-base-control__field .components-form-toggle{margin-left:12px}.components-toggle-control .components-base-control__field .components-toggle-control__label{display:block}.components-accessible-toolbar{display:inline-flex;border:1px solid #1e1e1e;border-radius:2px;flex-shrink:0}.components-accessible-toolbar>.components-toolbar-group:last-child{border-left:none}.components-accessible-toolbar .components-button,.components-toolbar .components-button{position:relative;height:48px;z-index:1;padding-right:16px;padding-left:16px}.components-accessible-toolbar .components-button:focus:enabled,.components-toolbar .components-button:focus:enabled{box-shadow:none;outline:none}.components-accessible-toolbar .components-button:before,.components-toolbar .components-button:before{content:"";position:absolute;display:block;border-radius:2px;height:32px;right:8px;left:8px;z-index:-1;animation:components-button__appear-animation .1s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-accessible-toolbar .components-button:before,.components-toolbar .components-button:before{animation-duration:1ms}}.components-accessible-toolbar .components-button svg,.components-toolbar .components-button svg{position:relative;margin-right:auto;margin-left:auto}.components-accessible-toolbar .components-button.is-pressed,.components-toolbar .components-button.is-pressed{background:transparent}.components-accessible-toolbar .components-button.is-pressed:hover,.components-toolbar .components-button.is-pressed:hover{background:transparent}.components-accessible-toolbar .components-button.is-pressed:before,.components-toolbar .components-button.is-pressed:before{background:#1e1e1e}.components-accessible-toolbar .components-button:focus:before,.components-toolbar .components-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}.components-accessible-toolbar .components-button.has-icon,.components-toolbar .components-button.has-icon{padding-right:8px;padding-left:8px;min-width:48px;justify-content:center}.components-accessible-toolbar .components-button.components-tab-button,.components-toolbar .components-button.components-tab-button{font-weight:500}.components-accessible-toolbar .components-button.components-tab-button span,.components-toolbar .components-button.components-tab-button span{display:inline-block;padding-right:0;padding-left:0;position:relative}@keyframes components-button__appear-animation{0%{transform:scaleY(0)}to{transform:scaleY(1)}}.components-toolbar__control.components-button{position:relative}.components-toolbar__control.components-button[data-subscript] svg{padding:5px 0 5px 10px}.components-toolbar__control.components-button[data-subscript]:after{content:attr(data-subscript);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:600;line-height:12px;position:absolute;left:8px;bottom:10px}.components-toolbar__control.components-button:active:before{display:none}.components-toolbar__control.components-button:not(:disabled).is-pressed[data-subscript]:after{color:#fff}.components-toolbar-group{min-height:48px;border-left:1px solid #1e1e1e;background-color:#fff;display:inline-flex;flex-shrink:0;flex-wrap:wrap;line-height:0}.components-toolbar-group .components-toolbar-group.components-toolbar-group{border-width:0;margin:0}.components-toolbar{min-height:48px;margin:0;border:1px solid #1e1e1e;background-color:#fff;display:inline-flex;flex-shrink:0;flex-wrap:wrap}.components-toolbar .components-toolbar.components-toolbar{border-width:0;margin:0}div.components-toolbar>div{display:block;margin:0}@supports ((position:-webkit-sticky) or (position:sticky)){div.components-toolbar>div{display:flex}}div.components-toolbar>div+div.has-left-divider{margin-right:6px;position:relative;overflow:visible}div.components-toolbar>div+div.has-left-divider:before{display:inline-block;content:"";box-sizing:content-box;background-color:#ddd;position:absolute;top:8px;right:-3px;width:1px;height:20px}.components-accessible-toolbar .components-toolbar-group>.components-button.components-button.has-icon,.components-toolbar div>.components-button.components-button.has-icon{min-width:36px;padding-right:6px;padding-left:6px}.components-accessible-toolbar .components-toolbar-group>.components-button.components-button.has-icon svg,.components-toolbar div>.components-button.components-button.has-icon svg{min-width:24px}.components-accessible-toolbar .components-toolbar-group>.components-button.components-button.has-icon:before,.components-toolbar div>.components-button.components-button.has-icon:before{right:2px;left:2px}.components-accessible-toolbar .components-toolbar-group>.components-button:first-child.has-icon,.components-accessible-toolbar .components-toolbar-group>div:first-child>.components-button.has-icon,.components-toolbar div:first-child .components-button.has-icon{min-width:42px;padding-right:11px;padding-left:6px}.components-accessible-toolbar .components-toolbar-group>.components-button:first-child.has-icon:before,.components-accessible-toolbar .components-toolbar-group>div:first-child>.components-button.has-icon:before,.components-toolbar div:first-child .components-button.has-icon:before{right:8px;left:2px}.components-accessible-toolbar .components-toolbar-group>.components-button:last-of-type.has-icon,.components-accessible-toolbar .components-toolbar-group>div:last-child>.components-button.has-icon,.components-toolbar div:last-child .components-button.has-icon{min-width:42px;padding-right:6px;padding-left:11px}.components-accessible-toolbar .components-toolbar-group>.components-button:last-of-type.has-icon:before,.components-accessible-toolbar .components-toolbar-group>div:last-child>.components-button.has-icon:before,.components-toolbar div:last-child .components-button.has-icon:before{right:2px;left:8px}.components-accessible-toolbar .components-toolbar-group>.components-button:first-of-type:last-of-type.has-icon,.components-accessible-toolbar .components-toolbar-group>div:first-child:last-child>.components-button.has-icon,.components-toolbar div:first-child:last-child>.components-button.has-icon{min-width:48px;padding-right:12px;padding-left:12px}.components-accessible-toolbar .components-toolbar-group>.components-button:first-of-type:last-of-type.has-icon:before,.components-accessible-toolbar .components-toolbar-group>div:first-child:last-child>.components-button.has-icon:before,.components-toolbar div:first-child:last-child>.components-button.has-icon:before{right:8px;left:8px}.components-tooltip.components-popover{z-index:1000002}.components-tooltip.components-popover .components-popover__content{min-width:0}.components-tooltip .components-popover__content{background:#1e1e1e;border-radius:2px;border-width:0;color:#fff;white-space:nowrap;text-align:center;line-height:1.4;font-size:12px;box-shadow:none}.components-tooltip .components-popover__content>div{padding:4px 8px}.components-tooltip__shortcut{display:inline-block;margin-right:8px}.components-visually-hidden{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}.components-visually-hidden:focus{background-color:#ddd;clip:auto!important;-webkit-clip-path:none;clip-path:none;color:#444;display:block;font-size:1em;height:auto;right:5px;line-height:normal;padding:15px 23px 14px;text-decoration:none;top:5px;width:auto;z-index:100000} \ No newline at end of file diff --git a/wp-includes/css/dist/components/style.css b/wp-includes/css/dist/components/style.css index d3beca4cba..ec263325ad 100644 --- a/wp-includes/css/dist/components/style.css +++ b/wp-includes/css/dist/components/style.css @@ -125,20 +125,6 @@ box-shadow: 0 0 0 2px #007cba; box-shadow: 0 0 0 2px var(--wp-admin-theme-color); } -.components-base-control { - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; - font-size: 13px; } - .components-base-control .components-base-control__field { - margin-bottom: 8px; } - .components-panel__row .components-base-control .components-base-control__field { - margin-bottom: inherit; } - .components-base-control .components-base-control__label { - display: inline-block; - margin-bottom: 8px; } - .components-base-control .components-base-control__help { - margin-top: -8px; - font-style: italic; } - .components-button-group { display: inline-block; } .components-button-group .components-button { @@ -361,6 +347,7 @@ box-shadow: inset 0 0 0 1px #fff, 0 0 0 1.5px var(--wp-admin-theme-color); outline: 2px solid transparent; } .components-button.is-pressed:hover:not(:disabled) { + color: #fff; background: #1e1e1e; } .components-button svg { fill: currentColor; @@ -401,6 +388,7 @@ width: 24px; height: 24px; -webkit-appearance: none; + -moz-appearance: none; appearance: none; transition: 0.1s border-color ease-in-out; } @media (prefers-reduced-motion: reduce) { @@ -621,6 +609,40 @@ svg.components-checkbox-control__checked { .components-circular-option-picker__dropdown-link-action .components-button { line-height: 22px; } +.components-color-edit__color-option-main-area { + display: flex; + align-items: center; } + .components-color-edit__color-option-main-area .components-circular-option-picker__option-wrapper { + margin: 8px; } + +.components-color-edit__color-option.is-hover { + background: #e0e0e0; } + +.components-color-edit__cancel-button { + float: right; } + +.components-color-edit__color-option-color-name { + width: 100%; } + +.components-color-edit__label-and-insert-container { + display: flex; + align-items: center; + justify-content: space-between; } + +.components-color-edit__insert-button { + margin-top: -8px; } + +.components-color-edit__hidden-control { + position: relative; + left: -9999px; } + +.components-color-edit__color-option-color-name-input .components-base-control__field { + margin-bottom: 0; + margin-right: 8px; } + +.components-color-edit__slug-input { + margin-left: 8px; } + .component-color-indicator { width: 25px; height: 16px; @@ -907,6 +929,12 @@ input.components-combobox-control__input[type="text"] { box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); outline: 2px solid transparent; } +.components-combobox-control__reset.components-button { + display: flex; + height: 24px; + min-width: 24px; + padding: 0; } + .components-custom-gradient-picker__gradient-bar:not(.has-gradient) { opacity: 0.4; } @@ -1970,7 +1998,8 @@ input.components-combobox-control__input[type="text"] { .components-datetime__timezone { line-height: 30px; margin-left: 4px; - text-decoration: underline dotted; } + -webkit-text-decoration: underline dotted; + text-decoration: underline dotted; } .components-datetime__time-legend { font-weight: 600; @@ -2174,13 +2203,6 @@ body.is-dragging-components-draggable { .is-alternate .components-dropdown-menu__menu .components-menu-group + .components-menu-group { border-color: #1e1e1e; } -.components-external-link__icon { - width: 1.4em; - height: 1.4em; - margin: -0.2em 0.1em 0; - vertical-align: middle; - fill: currentColor; } - .components-font-size-picker__controls { max-width: 248px; display: flex; @@ -2400,7 +2422,9 @@ body.is-dragging-components-draggable { margin-bottom: 4px; } .components-form-token-field__help { - font-style: italic; } + font-size: 12px; + font-style: normal; + color: #757575; } .components-form-token-field__token { font-size: 13px; @@ -3330,7 +3354,8 @@ body.is-dragging-components-draggable { .components-resizable-box__handle { display: none; width: 23px; - height: 23px; } + height: 23px; + z-index: 2; } .components-resizable-box__container.has-show-handle .components-resizable-box__handle { display: block; } @@ -3370,9 +3395,6 @@ body.is-dragging-components-draggable { .is-dark-theme .components-resizable-box__handle::after { border-color: #ddd; } -.components-resizable-box__handle { - z-index: 2; } - .components-resizable-box__side-handle { z-index: 2; } @@ -3526,6 +3548,8 @@ body.lockscroll { cursor: pointer; } @media (min-width: 600px) { .components-snackbar { + width: -webkit-fit-content; + width: -moz-fit-content; width: fit-content; } } .components-snackbar:focus { box-shadow: 0 0 0 1px #fff, 0 0 0 3px #007cba; @@ -3810,47 +3834,6 @@ body.lockscroll { .components-text-control__input[type="number"]:-ms-input-placeholder { color: rgba(255, 255, 255, 0.65); } -.components-textarea-control__input { - width: 100%; - 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 0.1s linear; - border-radius: 2px; - border: 1px solid #757575; - /* Fonts smaller than 16px causes mobile safari to zoom. */ - font-size: 16px; - /* Override core line-height. To be reviewed. */ - line-height: normal; } - @media (prefers-reduced-motion: reduce) { - .components-textarea-control__input { - transition-duration: 0s; } } - @media (min-width: 600px) { - .components-textarea-control__input { - font-size: 13px; - /* Override core line-height. To be reviewed. */ - line-height: normal; } } - .components-textarea-control__input:focus { - border-color: #007cba; - border-color: var(--wp-admin-theme-color); - box-shadow: 0 0 0 0.5px #007cba; - box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); - outline: 2px solid transparent; } - .components-textarea-control__input::-webkit-input-placeholder { - color: rgba(30, 30, 30, 0.62); } - .components-textarea-control__input::-moz-placeholder { - opacity: 1; - color: rgba(30, 30, 30, 0.62); } - .components-textarea-control__input:-ms-input-placeholder { - color: rgba(30, 30, 30, 0.62); } - .is-dark-theme .components-textarea-control__input::-webkit-input-placeholder { - color: rgba(255, 255, 255, 0.65); } - .is-dark-theme .components-textarea-control__input::-moz-placeholder { - opacity: 1; - color: rgba(255, 255, 255, 0.65); } - .is-dark-theme .components-textarea-control__input:-ms-input-placeholder { - color: rgba(255, 255, 255, 0.65); } - .components-tip { display: flex; color: #757575; } diff --git a/wp-includes/css/dist/components/style.min.css b/wp-includes/css/dist/components/style.min.css index 0e74fde7f7..5cf5b109b9 100644 --- a/wp-includes/css/dist/components/style.min.css +++ b/wp-includes/css/dist/components/style.min.css @@ -1,9 +1,9 @@ -:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87}.components-animate__appear{animation:components-animate__appear-animation .1s cubic-bezier(0,0,.2,1) 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-animate__appear{animation-duration:1ms}}.components-animate__appear.is-from-top,.components-animate__appear.is-from-top.is-from-left{transform-origin:top left}.components-animate__appear.is-from-top.is-from-right{transform-origin:top right}.components-animate__appear.is-from-bottom,.components-animate__appear.is-from-bottom.is-from-left{transform-origin:bottom left}.components-animate__appear.is-from-bottom.is-from-right{transform-origin:bottom right}@keyframes components-animate__appear-animation{0%{transform:translateY(-2em) scaleY(0) scaleX(0)}to{transform:translateY(0) scaleY(1) scaleX(1)}}.components-animate__slide-in{animation:components-animate__slide-in-animation .1s cubic-bezier(0,0,.2,1);animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-animate__slide-in{animation-duration:1ms}}.components-animate__slide-in.is-from-left{transform:translateX(100%)}.components-animate__slide-in.is-from-right{transform:translateX(-100%)}@keyframes components-animate__slide-in-animation{to{transform:translateX(0)}}.components-animate__loading{animation:components-animate__loading 1.6s ease-in-out infinite}@keyframes components-animate__loading{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}.components-autocomplete__popover .components-popover__content>div{padding:16px}.components-autocomplete__result.components-button{display:flex;height:auto;min-height:36px;text-align:left;width:100%}.components-autocomplete__result.components-button.is-selected{box-shadow:0 0 0 2px #007cba;box-shadow:0 0 0 2px var(--wp-admin-theme-color)}.components-base-control{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-base-control .components-base-control__field{margin-bottom:8px}.components-panel__row .components-base-control .components-base-control__field{margin-bottom:inherit}.components-base-control .components-base-control__label{display:inline-block;margin-bottom:8px}.components-base-control .components-base-control__help{margin-top:-8px;font-style:italic}.components-button-group{display:inline-block}.components-button-group .components-button{border-radius:0;display:inline-flex;color:#1e1e1e;box-shadow:inset 0 0 0 1px #1e1e1e}.components-button-group .components-button+.components-button{margin-left:-1px}.components-button-group .components-button:first-child{border-radius:2px 0 0 2px}.components-button-group .components-button:last-child{border-radius:0 2px 2px 0}.components-button-group .components-button.is-primary,.components-button-group .components-button:focus{position:relative;z-index:1}.components-button-group .components-button.is-primary{box-shadow:inset 0 0 0 1px #1e1e1e}.components-button{display:inline-flex;text-decoration:none;font-size:13px;margin:0;border:0;cursor:pointer;-webkit-appearance:none;background:none;transition:box-shadow .1s linear;height:36px;align-items:center;box-sizing:border-box;padding:6px 12px;border-radius:2px;color:#1e1e1e}@media (prefers-reduced-motion:reduce){.components-button{transition-duration:0s}}.components-button:hover,.components-button[aria-expanded=true]{color:#007cba;color:var(--wp-admin-theme-color)}.components-button[aria-disabled=true]:hover{color:initial}.components-button:focus:not(:disabled){box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);outline:1px solid transparent}.components-button.is-primary{white-space:nowrap;background:#007cba;background:var(--wp-admin-theme-color);color:#fff;text-decoration:none;text-shadow:none}.components-button.is-primary:hover:not(:disabled){background:#006ba1;background:var(--wp-admin-theme-color-darker-10);color:#fff}.components-button.is-primary:active:not(:disabled){background:#005a87;background:var(--wp-admin-theme-color-darker-20);border-color:#005a87;border-color:var(--wp-admin-theme-color-darker-20);color:#fff}.components-button.is-primary:focus:not(:disabled){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:1px solid transparent}.components-button.is-primary:disabled,.components-button.is-primary:disabled:active:enabled,.components-button.is-primary[aria-disabled=true],.components-button.is-primary[aria-disabled=true]:active:enabled,.components-button.is-primary[aria-disabled=true]:enabled{color:hsla(0,0%,100%,.4);background:#007cba;background:var(--wp-admin-theme-color);border-color:#007cba;border-color:var(--wp-admin-theme-color);opacity:1}.components-button.is-primary:disabled:active:enabled:focus:enabled,.components-button.is-primary:disabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:active:enabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:enabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:focus:enabled{box-shadow:0 0 0 1px #fff,0 0 0 3px #007cba;box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color)}.components-button.is-primary.is-busy,.components-button.is-primary.is-busy:disabled,.components-button.is-primary.is-busy[aria-disabled=true]{color:#fff;background-size:100px 100%;background-image:linear-gradient(-45deg,#007cba 28%,#005a87 0,#005a87 72%,#007cba 0);background-image:linear-gradient(-45deg,var(--wp-admin-theme-color) 28%,var(--wp-admin-theme-color-darker-20) 0,var(--wp-admin-theme-color-darker-20) 72%,var(--wp-admin-theme-color) 0);border-color:#007cba;border-color:var(--wp-admin-theme-color)}.components-button.is-secondary:active:not(:disabled),.components-button.is-tertiary:active:not(:disabled){background:#ddd;color:#006ba1;color:var(--wp-admin-theme-color-darker-10);box-shadow:none}.components-button.is-secondary:hover:not(:disabled),.components-button.is-tertiary:hover:not(:disabled){color:#006ba1;color:var(--wp-admin-theme-color-darker-10);box-shadow:inset 0 0 0 1px #006ba1;box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color-darker-10)}.components-button.is-secondary:disabled,.components-button.is-secondary[aria-disabled=true],.components-button.is-secondary[aria-disabled=true]:hover,.components-button.is-tertiary:disabled,.components-button.is-tertiary[aria-disabled=true],.components-button.is-tertiary[aria-disabled=true]:hover{color:#828282;background:#eaeaea;transform:none;opacity:1;box-shadow:none}.components-button.is-secondary{box-shadow:inset 0 0 0 1px #007cba;box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color);outline:1px solid transparent}.components-button.is-secondary,.components-button.is-tertiary{white-space:nowrap;color:#007cba;color:var(--wp-admin-theme-color);background:transparent}.components-button.is-tertiary{padding:6px;outline:1px dotted transparent}.components-button.is-tertiary .dashicon{display:inline-block;flex:0 0 auto}.components-button.is-destructive{color:#cc1818;box-shadow:inset 0 0 0 1px #cc1818}.components-button.is-destructive:hover:not(:disabled){color:#710d0d;box-shadow:inset 0 0 0 1px #710d0d}.components-button.is-destructive:focus:not(:disabled){color:#007cba;color:var(--wp-admin-theme-color)}.components-button.is-destructive:active:not(:disabled){background:#ccc}.components-button.is-link{margin:0;padding:0;box-shadow:none;border:0;border-radius:0;background:none;outline:none;text-align:left;color:#0073aa;text-decoration:underline;transition-property:border,background,color;transition-duration:.05s;transition-timing-function:ease-in-out;height:auto}@media (prefers-reduced-motion:reduce){.components-button.is-link{transition-duration:0s}}.components-button.is-link:active:not(:disabled),.components-button.is-link:hover:not(:disabled){color:#00a0d2;box-shadow:none}.components-button.is-link:focus{color:#124964;box-shadow:0 0 0 1px #5b9dd9,0 0 1.5px 1px rgba(30,140,190,.8)}.components-button.is-link.is-destructive{color:#cc1818}.components-button.is-link.is-destructive:active:not(:disabled),.components-button.is-link.is-destructive:hover:not(:disabled){color:#710d0d;background:none}.components-button.is-link.is-destructive:focus:not(:disabled){color:#007cba;color:var(--wp-admin-theme-color)}.components-button:not([aria-disabled=true]):active{color:inherit}.components-button:disabled,.components-button[aria-disabled=true]{cursor:default;opacity:.3}.components-button.is-busy,.components-button.is-secondary.is-busy,.components-button.is-secondary.is-busy:disabled,.components-button.is-secondary.is-busy[aria-disabled=true]{animation:components-button__busy-animation 2.5s linear infinite;opacity:1;background-size:100px 100%;background-image:linear-gradient(-45deg,#fafafa 28%,#e0e0e0 0,#e0e0e0 72%,#fafafa 0)}.components-button.is-small{height:24px;line-height:22px;padding:0 8px;font-size:11px}.components-button.is-small.has-icon:not(.has-text){padding:0 8px;width:24px}.components-button.has-icon{padding:6px;min-width:36px;justify-content:center}.components-button.has-icon .dashicon{display:inline-block;flex:0 0 auto}.components-button.has-icon.has-text{justify-content:left}.components-button.has-icon.has-text svg{margin-right:8px}.components-button.is-pressed{color:#fff;background:#1e1e1e}.components-button.is-pressed:focus:not(:disabled){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}.components-button.is-pressed:hover:not(:disabled){background:#1e1e1e}.components-button svg{fill:currentColor;outline:none}.components-button .components-visually-hidden{height:auto}@keyframes components-button__busy-animation{0%{background-position:200px 0}}.components-checkbox-control__input[type=checkbox]{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;font-size:16px;line-height:normal;border:1px solid #1e1e1e;transition:none;border-radius:2px;background:#fff;color:#1e1e1e;clear:none;cursor:pointer;display:inline-block;line-height:0;margin:0 4px 0 0;outline:0;padding:0!important;text-align:center;vertical-align:top;width:24px;height:24px;-webkit-appearance:none;appearance:none;transition:border-color .1s ease-in-out}@media (min-width:600px){.components-checkbox-control__input[type=checkbox]{font-size:13px;line-height:normal}}.components-checkbox-control__input[type=checkbox]: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)}.components-checkbox-control__input[type=checkbox]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-checkbox-control__input[type=checkbox]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-checkbox-control__input[type=checkbox]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-checkbox-control__input[type=checkbox]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-checkbox-control__input[type=checkbox]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-checkbox-control__input[type=checkbox]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-checkbox-control__input[type=checkbox]:checked:before,.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{margin:-3px -5px;color:#fff}@media (min-width:782px){.components-checkbox-control__input[type=checkbox]:checked:before,.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{margin:-4px 0 0 -5px}}.components-checkbox-control__input[type=checkbox][aria-checked=mixed]{background:#007cba;background:var(--wp-admin-theme-color);border-color:#007cba;border-color:var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{content:"\f460";float:left;display:inline-block;vertical-align:middle;width:16px;font:normal 30px/1 dashicons;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (min-width:782px){.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{float:none;font-size:21px}}@media (min-width:600px){.components-checkbox-control__input[type=checkbox]{height:20px;width:20px}}@media (prefers-reduced-motion:reduce){.components-checkbox-control__input[type=checkbox]{transition-duration:0s}}.components-checkbox-control__input[type=checkbox]:focus{box-shadow:0 0 0 2px #fff,0 0 0 3.5px #007cba;box-shadow:0 0 0 2px #fff,0 0 0 3.5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-checkbox-control__input[type=checkbox]:checked{background:#007cba;background:var(--wp-admin-theme-color);border-color:#007cba;border-color:var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox]:checked::-ms-check{opacity:0}.components-checkbox-control__input[type=checkbox]:checked:before{content:none}.components-checkbox-control__input-container{position:relative;display:inline-block;margin-right:12px;vertical-align:middle;width:24px;height:24px}@media (min-width:600px){.components-checkbox-control__input-container{width:20px;height:20px}}svg.components-checkbox-control__checked{fill:#fff;cursor:pointer;position:absolute;left:0;top:0;width:24px;height:24px;-webkit-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}@media (min-width:600px){svg.components-checkbox-control__checked{left:-2px;top:-2px}}.components-circular-option-picker{display:inline-block;width:100%;margin-right:-10px}.components-circular-option-picker .components-circular-option-picker__custom-clear-wrapper{display:flex;justify-content:flex-end}.components-circular-option-picker .components-circular-option-picker__swatches{margin-right:-16px}.components-circular-option-picker__option-wrapper{display:inline-block;height:28px;width:28px;margin-right:16px;margin-bottom:12px;vertical-align:top;transform:scale(1);transition:transform .1s ease}@media (prefers-reduced-motion:reduce){.components-circular-option-picker__option-wrapper{transition-duration:0s}}.components-circular-option-picker__option-wrapper:hover{transform:scale(1.2)}.components-circular-option-picker__option-wrapper>div{height:100%;width:100%}.components-circular-option-picker__option-wrapper:before{content:"";position:absolute;top:1px;left:1px;bottom:1px;right:1px;border-radius:50%;z-index:-1;background:url("data:image/svg+xml;charset=utf-8,%3Csvg width='28' height='28' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 8V6H4v2h2zm2 0V6h2v2H8zm2 8H8v-2h2v2zm2 0v-2h2v2h-2zm0 2v-2h-2v2H8v2h2v-2h2zm2 0v2h-2v-2h2zm2 0h-2v-2h2v2z' fill='%23555D65'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M18 18h2v-2h-2v-2h2v-2h-2v-2h2V8h-2v2h-2V8h-2v2h2v2h-2v2h2v2h2v2zm-2-4v-2h2v2h-2z' fill='%23555D65'/%3E%3Cpath d='M18 18v2h-2v-2h2z' fill='%23555D65'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M8 10V8H6v2H4v2h2v2H4v2h2v2H4v2h2v2H4v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2v2h-2V4h-2v2h-2V4h-2v2h-2V4h-2v2h2v2h-2v2H8zm0 2v-2H6v2h2zm2 0v-2h2v2h-2zm0 2v-2H8v2H6v2h2v2H6v2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h-2v2h-2V6h-2v2h-2v2h2v2h-2v2h-2z' fill='%23555D65'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M4 0H2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2V2h2V0h-2v2h-2V0h-2v2h-2V0h-2v2h-2V0h-2v2h-2V0h-2v2H8V0H6v2H4V0zm0 4V2H2v2h2zm2 0V2h2v2H6zm0 2V4H4v2H2v2h2v2H2v2h2v2H2v2h2v2H2v2h2v2H2v2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2V2h-2v2h-2V2h-2v2h-2V2h-2v2h-2V2h-2v2H8v2H6z' fill='%23555D65'/%3E%3C/svg%3E")}.components-circular-option-picker__option{display:inline-block;vertical-align:top;height:100%;width:100%;border:none;border-radius:50%;background:transparent;box-shadow:inset 0 0 0 14px;transition:box-shadow .1s ease;cursor:pointer}@media (prefers-reduced-motion:reduce){.components-circular-option-picker__option{transition-duration:0s}}.components-circular-option-picker__option:hover{box-shadow:inset 0 0 0 14px!important}.components-circular-option-picker__option.is-pressed{box-shadow:inset 0 0 0 4px;position:relative;z-index:1;overflow:visible}.components-circular-option-picker__option.is-pressed+svg{position:absolute;left:2px;top:2px;border-radius:50%;z-index:2;pointer-events:none}.components-circular-option-picker__option:after{content:"";position:absolute;top:-1px;left:-1px;bottom:-1px;right:-1px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);border:1px solid transparent}.components-circular-option-picker__option:focus:after{content:"";border:2px solid #757575;width:32px;height:32px;position:absolute;top:-2px;left:-2px;border-radius:50%;box-shadow:inset 0 0 0 2px #fff}.components-circular-option-picker__option.components-button:focus{background-color:transparent;box-shadow:inset 0 0 0 14px;outline:none}.components-circular-option-picker__button-action .components-circular-option-picker__option{color:#fff;background:#fff}.components-circular-option-picker__dropdown-link-action{margin-right:16px}.components-circular-option-picker__dropdown-link-action .components-button{line-height:22px}.component-color-indicator{width:25px;height:16px;margin-left:.8rem;border:1px solid #dadada;display:inline-block}.component-color-indicator+.component-color-indicator{margin-left:.5rem}.components-color-picker{width:100%}.components-color-picker *{box-sizing:border-box}.components-color-picker__saturation{width:100%;padding-bottom:55%;position:relative}.components-color-picker__body{padding:16px 16px 12px}.components-color-picker__controls{display:flex}.components-color-picker__alpha-pointer,.components-color-picker__hue-pointer,.components-color-picker__saturation-pointer{padding:0;position:absolute;cursor:pointer;box-shadow:none;border:none}.components-color-picker__swatch{margin-right:8px;width:32px;height:32px;border-radius:50%;position:relative;overflow:hidden;background-image:linear-gradient(45deg,#ddd 25%,transparent 0),linear-gradient(-45deg,#ddd 25%,transparent 0),linear-gradient(45deg,transparent 75%,#ddd 0),linear-gradient(-45deg,transparent 75%,#ddd 0);background-size:10px 10px;background-position:0 0,0 5px,5px -5px,-5px 0}.is-alpha-disabled .components-color-picker__swatch{width:12px;height:12px;margin-top:0}.components-color-picker__active{border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1);z-index:2}.components-color-picker__active,.components-color-picker__saturation-black,.components-color-picker__saturation-color,.components-color-picker__saturation-white{position:absolute;top:0;left:0;right:0;bottom:0}.components-color-picker__saturation-color{overflow:visible}.components-color-picker__saturation-white{background:linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.components-color-picker__saturation-black{background:linear-gradient(0deg,#000,transparent)}.components-button.components-color-picker__saturation-pointer{width:14px;height:14px;padding:0;border-radius:50%;background-color:transparent;transform:translate(-50%,-50%);box-shadow:0 0 0 1px #fff,inset 0 0 0 1px #000,0 0 0 2px #000}.components-button.components-color-picker__saturation-pointer:focus:not(:disabled){box-shadow:0 0 0 2px #fff,inset 0 0 0 1px #000,0 0 0 3px #000}.components-color-picker__toggles{flex:1}.components-color-picker__alpha{background-image:linear-gradient(45deg,#ddd 25%,transparent 0),linear-gradient(-45deg,#ddd 25%,transparent 0),linear-gradient(45deg,transparent 75%,#ddd 0),linear-gradient(-45deg,transparent 75%,#ddd 0);background-size:10px 10px;background-position:0 0,0 5px,5px -5px,-5px 0}.components-color-picker__alpha-gradient,.components-color-picker__hue-gradient{position:absolute;top:0;left:0;right:0;bottom:0}.components-color-picker__alpha,.components-color-picker__hue{height:12px;position:relative}.is-alpha-enabled .components-color-picker__hue{margin-bottom:8px}.components-color-picker__alpha-bar,.components-color-picker__hue-bar{position:relative;margin:0 3px;height:100%;padding:0 2px}.components-color-picker__hue-gradient{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.components-color-picker__alpha-pointer,.components-color-picker__hue-pointer{left:0;width:14px;height:14px;border-radius:50%;box-shadow:0 1px 4px 0 rgba(0,0,0,.37);background:#fff;transform:translate(-7px,-1px)}.components-color-picker__hue-pointer,.components-color-picker__saturation-pointer{transition:box-shadow .1s linear}@media (prefers-reduced-motion:reduce){.components-color-picker__hue-pointer,.components-color-picker__saturation-pointer{transition-duration:0s}}.components-color-picker__saturation-pointer:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #007cba,0 0 5px 0 #007cba,inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4);box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color),0 0 5px 0 var(--wp-admin-theme-color),inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4)}.components-color-picker__alpha-pointer:focus,.components-color-picker__hue-pointer:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 2px #007cba,0 0 3px 0 #007cba;box-shadow:0 0 0 2px var(--wp-admin-theme-color),0 0 3px 0 var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:-2px}.components-color-picker__inputs-wrapper{margin:0 -4px;padding-top:16px;display:flex;align-items:flex-end;min-width:255px}.components-color-picker__inputs-wrapper fieldset{flex:1;border:none;margin:0;padding:0}.components-color-picker__inputs-wrapper .components-color-picker__inputs-fields .components-text-control__input[type=number]{padding:6px 3px;margin:0}.components-color-picker__inputs-field{width:100%}.components-color-picker__inputs-fields{display:flex;direction:ltr;flex-grow:1;margin-right:4px}.components-color-picker__inputs-fields .components-base-control+.components-base-control{margin-top:0}.components-color-picker__inputs-fields .components-base-control__field{margin:0 2px}.components-color-picker__inputs-toggle{height:30px;padding:0 5px}.components-combobox-control{width:100%}input.components-combobox-control__input[type=text]{width:100%;border:none;box-shadow:none;padding:2px;margin:0;line-height:inherit;min-height:auto}input.components-combobox-control__input[type=text]:focus{outline:none;box-shadow:none}.components-combobox-control__suggestions-container{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;border:1px solid #757575;font-size:16px;line-height:normal;display:flex;flex-wrap:wrap;align-items:flex-start;width:100%;margin:0 0 8px;padding:4px}@media (prefers-reduced-motion:reduce){.components-combobox-control__suggestions-container{transition-duration:0s}}@media (min-width:600px){.components-combobox-control__suggestions-container{font-size:13px;line-height:normal}}.components-combobox-control__suggestions-container: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}.components-combobox-control__suggestions-container::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-combobox-control__suggestions-container::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-combobox-control__suggestions-container:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-combobox-control__suggestions-container::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-combobox-control__suggestions-container::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-combobox-control__suggestions-container:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-combobox-control__suggestions-container:focus-within{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}.components-custom-gradient-picker__gradient-bar:not(.has-gradient){opacity:.4}.components-custom-gradient-picker__gradient-bar{margin-top:12px;width:100%;height:36px;border-radius:36px;margin-bottom:12px;padding-left:6px;padding-right:30px}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__markers-container{position:relative}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point{border-radius:50%;background:#fff;padding:2px;top:6px;min-width:24px;width:24px;height:24px;position:relative;color:#1e1e1e}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point svg{height:100%;width:100%}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button{border:2px solid transparent;box-shadow:inset 0 0 0 1.5px #fff;border-radius:50%;height:24px;width:24px;padding:0;position:absolute;top:6px}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button.is-active,.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px #1e1e1e}.components-custom-gradient-picker__color-picker-popover .components-custom-gradient-picker__remove-control-point{margin-left:auto;margin-right:auto;display:block;margin-bottom:8px}.components-custom-gradient-picker__inserter{width:100%}.components-custom-gradient-picker__liner-gradient-indicator{display:inline-block;flex:0 auto;width:20px;height:20px}.components-custom-gradient-picker .components-custom-gradient-picker__ui-line{margin-bottom:16px}.components-custom-gradient-picker .components-custom-gradient-picker__ui-line .components-base-control.components-angle-picker,.components-custom-gradient-picker .components-custom-gradient-picker__ui-line .components-base-control.components-custom-gradient-picker__type-picker{margin-bottom:0}.components-custom-gradient-picker .components-custom-gradient-picker__toolbar{border:none}.components-custom-gradient-picker .components-custom-gradient-picker__toolbar>div+div{margin-left:1px}.components-custom-gradient-picker .components-custom-gradient-picker__toolbar button.is-pressed>svg{background:#fff;border:1px solid #949494;border-radius:2px}.components-custom-select-control{position:relative}.components-custom-select-control__label{display:block;margin-bottom:8px}.components-custom-select-control__button{border:1px solid #757575;border-radius:2px;min-height:30px;min-width:130px;position:relative;text-align:left}.components-custom-select-control__button.components-custom-select-control__button{padding-right:24px}.components-custom-select-control__button:focus:not(:disabled){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)}.components-custom-select-control__button .components-custom-select-control__button-icon{height:100%;padding:0;position:absolute;right:0;top:0}.components-custom-select-control__menu{background-color:#fff;max-height:400px;min-width:100%;overflow:auto;padding:0;position:absolute;z-index:1000000}.components-custom-select-control__menu:focus{border:1px solid #1e1e1e;border-radius:2px;outline:none;transition:none}.components-custom-select-control__item{align-items:center;display:flex;list-style-type:none;padding:10px 5px 10px 25px;cursor:default}.components-custom-select-control__item.is-highlighted{background:#ddd}.components-custom-select-control__item-icon{margin-left:-20px;margin-right:0}.PresetDateRangePicker_panel{padding:0 22px 11px}.PresetDateRangePicker_button{position:relative;height:100%;text-align:center;background:0 0;border:2px solid #00a699;color:#00a699;padding:4px 12px;margin-right:8px;font:inherit;font-weight:700;line-height:normal;overflow:visible;box-sizing:border-box;cursor:pointer}.PresetDateRangePicker_button:active{outline:0}.PresetDateRangePicker_button__selected{color:#fff;background:#00a699}.SingleDatePickerInput{display:inline-block;background-color:#fff}.SingleDatePickerInput__withBorder{border-radius:2px;border:1px solid #dbdbdb}.SingleDatePickerInput__rtl{direction:rtl}.SingleDatePickerInput__disabled{background-color:#f2f2f2}.SingleDatePickerInput__block{display:block}.SingleDatePickerInput__showClearDate{padding-right:30px}.SingleDatePickerInput_clearDate{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;padding:10px;margin:0 10px 0 5px;position:absolute;right:0;top:50%;transform:translateY(-50%)}.SingleDatePickerInput_clearDate__default:focus,.SingleDatePickerInput_clearDate__default:hover{background:#dbdbdb;border-radius:50%}.SingleDatePickerInput_clearDate__small{padding:6px}.SingleDatePickerInput_clearDate__hide{visibility:hidden}.SingleDatePickerInput_clearDate_svg{fill:#82888a;height:12px;width:15px;vertical-align:middle}.SingleDatePickerInput_clearDate_svg__small{height:9px}.SingleDatePickerInput_calendarIcon{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;display:inline-block;vertical-align:middle;padding:10px;margin:0 5px 0 10px}.SingleDatePickerInput_calendarIcon_svg{fill:#82888a;height:15px;width:14px;vertical-align:middle}.SingleDatePicker{position:relative;display:inline-block}.SingleDatePicker__block{display:block}.SingleDatePicker_picker{z-index:1;background-color:#fff;position:absolute}.SingleDatePicker_picker__rtl{direction:rtl}.SingleDatePicker_picker__directionLeft{left:0}.SingleDatePicker_picker__directionRight{right:0}.SingleDatePicker_picker__portal{background-color:rgba(0,0,0,.3);position:fixed;top:0;left:0;height:100%;width:100%}.SingleDatePicker_picker__fullScreenPortal{background-color:#fff}.SingleDatePicker_closeButton{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;position:absolute;top:0;right:0;padding:15px;z-index:2}.SingleDatePicker_closeButton:focus,.SingleDatePicker_closeButton:hover{color:#b0b3b4;text-decoration:none}.SingleDatePicker_closeButton_svg{height:15px;width:15px;fill:#cacccd}.DayPickerKeyboardShortcuts_buttonReset{background:0 0;border:0;border-radius:0;color:inherit;font:inherit;line-height:normal;overflow:visible;padding:0;cursor:pointer;font-size:14px}.DayPickerKeyboardShortcuts_buttonReset:active{outline:0}.DayPickerKeyboardShortcuts_show{width:22px;position:absolute;z-index:2}.DayPickerKeyboardShortcuts_show__bottomRight{border-top:26px solid transparent;border-right:33px solid #00a699;bottom:0;right:0}.DayPickerKeyboardShortcuts_show__bottomRight:hover{border-right:33px solid #008489}.DayPickerKeyboardShortcuts_show__topRight{border-bottom:26px solid transparent;border-right:33px solid #00a699;top:0;right:0}.DayPickerKeyboardShortcuts_show__topRight:hover{border-right:33px solid #008489}.DayPickerKeyboardShortcuts_show__topLeft{border-bottom:26px solid transparent;border-left:33px solid #00a699;top:0;left:0}.DayPickerKeyboardShortcuts_show__topLeft:hover{border-left:33px solid #008489}.DayPickerKeyboardShortcuts_showSpan{color:#fff;position:absolute}.DayPickerKeyboardShortcuts_showSpan__bottomRight{bottom:0;right:-28px}.DayPickerKeyboardShortcuts_showSpan__topRight{top:1px;right:-28px}.DayPickerKeyboardShortcuts_showSpan__topLeft{top:1px;left:-28px}.DayPickerKeyboardShortcuts_panel{overflow:auto;background:#fff;border:1px solid #dbdbdb;border-radius:2px;position:absolute;top:0;bottom:0;right:0;left:0;z-index:2;padding:22px;margin:33px}.DayPickerKeyboardShortcuts_title{font-size:16px;font-weight:700;margin:0}.DayPickerKeyboardShortcuts_list{list-style:none;padding:0;font-size:14px}.DayPickerKeyboardShortcuts_close{position:absolute;right:22px;top:22px;z-index:2}.DayPickerKeyboardShortcuts_close:active{outline:0}.DayPickerKeyboardShortcuts_closeSvg{height:15px;width:15px;fill:#cacccd}.DayPickerKeyboardShortcuts_closeSvg:focus,.DayPickerKeyboardShortcuts_closeSvg:hover{fill:#82888a}.CalendarDay{box-sizing:border-box;cursor:pointer;font-size:14px;text-align:center}.CalendarDay:active{outline:0}.CalendarDay__defaultCursor{cursor:default}.CalendarDay__default{border:1px solid #e4e7e7;color:#484848;background:#fff}.CalendarDay__default:hover{background:#e4e7e7;border:1px double #e4e7e7;color:inherit}.CalendarDay__hovered_offset{background:#f4f5f5;border:1px double #e4e7e7;color:inherit}.CalendarDay__outside{border:0;background:#fff;color:#484848}.CalendarDay__outside:hover{border:0}.CalendarDay__blocked_minimum_nights{background:#fff;border:1px solid #eceeee;color:#cacccd}.CalendarDay__blocked_minimum_nights:active,.CalendarDay__blocked_minimum_nights:hover{background:#fff;color:#cacccd}.CalendarDay__highlighted_calendar{background:#ffe8bc;color:#484848}.CalendarDay__highlighted_calendar:active,.CalendarDay__highlighted_calendar:hover{background:#ffce71;color:#484848}.CalendarDay__selected_span{background:#66e2da;border:1px solid #33dacd;color:#fff}.CalendarDay__selected_span:active,.CalendarDay__selected_span:hover{background:#33dacd;border:1px solid #33dacd;color:#fff}.CalendarDay__last_in_range{border-right:#00a699}.CalendarDay__selected,.CalendarDay__selected:active,.CalendarDay__selected:hover{background:#00a699;border:1px solid #00a699;color:#fff}.CalendarDay__hovered_span,.CalendarDay__hovered_span:hover{background:#b2f1ec;border:1px solid #80e8e0;color:#007a87}.CalendarDay__hovered_span:active{background:#80e8e0;border:1px solid #80e8e0;color:#007a87}.CalendarDay__blocked_calendar,.CalendarDay__blocked_calendar:active,.CalendarDay__blocked_calendar:hover{background:#cacccd;border:1px solid #cacccd;color:#82888a}.CalendarDay__blocked_out_of_range,.CalendarDay__blocked_out_of_range:active,.CalendarDay__blocked_out_of_range:hover{background:#fff;border:1px solid #e4e7e7;color:#cacccd}.CalendarMonth{background:#fff;text-align:center;vertical-align:top;-webkit-user-select:none;-ms-user-select:none;user-select:none}.CalendarMonth_table{border-collapse:collapse;border-spacing:0}.CalendarMonth_verticalSpacing{border-collapse:separate}.CalendarMonth_caption{color:#484848;font-size:18px;text-align:center;padding-top:22px;padding-bottom:37px;caption-side:top}.CalendarMonth_caption__verticalScrollable{padding-top:12px;padding-bottom:7px}.CalendarMonthGrid{background:#fff;text-align:left;z-index:0}.CalendarMonthGrid__animating{z-index:1}.CalendarMonthGrid__horizontal{position:absolute;left:9px}.CalendarMonthGrid__vertical{margin:0 auto}.CalendarMonthGrid__vertical_scrollable{margin:0 auto;overflow-y:scroll}.CalendarMonthGrid_month__horizontal{display:inline-block;vertical-align:top;min-height:100%}.CalendarMonthGrid_month__hideForAnimation{position:absolute;z-index:-1;opacity:0;pointer-events:none}.CalendarMonthGrid_month__hidden{visibility:hidden}.DayPickerNavigation{position:relative;z-index:2}.DayPickerNavigation__horizontal{height:0}.DayPickerNavigation__verticalDefault{position:absolute;width:100%;height:52px;bottom:0;left:0}.DayPickerNavigation__verticalScrollableDefault{position:relative}.DayPickerNavigation_button{cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none;border:0;padding:0;margin:0}.DayPickerNavigation_button__default{border:1px solid #e4e7e7;background-color:#fff;color:#757575}.DayPickerNavigation_button__default:focus,.DayPickerNavigation_button__default:hover{border:1px solid #c4c4c4}.DayPickerNavigation_button__default:active{background:#f2f2f2}.DayPickerNavigation_button__horizontalDefault{position:absolute;top:18px;line-height:.78;border-radius:3px;padding:6px 9px}.DayPickerNavigation_leftButton__horizontalDefault{left:22px}.DayPickerNavigation_rightButton__horizontalDefault{right:22px}.DayPickerNavigation_button__verticalDefault{padding:5px;background:#fff;box-shadow:0 0 5px 2px rgba(0,0,0,.1);position:relative;display:inline-block;height:100%;width:50%}.DayPickerNavigation_nextButton__verticalDefault{border-left:0}.DayPickerNavigation_nextButton__verticalScrollableDefault{width:100%}.DayPickerNavigation_svg__horizontal{height:19px;width:19px;fill:#82888a;display:block}.DayPickerNavigation_svg__vertical{height:42px;width:42px;fill:#484848;display:block}.DayPicker{position:relative;text-align:left}.DayPicker,.DayPicker__horizontal{background:#fff}.DayPicker__verticalScrollable{height:100%}.DayPicker__hidden{visibility:hidden}.DayPicker__withBorder{box-shadow:0 2px 6px rgba(0,0,0,.05),0 0 0 1px rgba(0,0,0,.07);border-radius:3px}.DayPicker_portal__horizontal{box-shadow:none;position:absolute;left:50%;top:50%}.DayPicker_portal__vertical{position:static}.DayPicker_focusRegion{outline:0}.DayPicker_calendarInfo__horizontal,.DayPicker_wrapper__horizontal{display:inline-block;vertical-align:top}.DayPicker_weekHeaders{position:relative}.DayPicker_weekHeaders__horizontal{margin-left:9px}.DayPicker_weekHeader{color:#757575;position:absolute;top:62px;z-index:2;text-align:left}.DayPicker_weekHeader__vertical{left:50%}.DayPicker_weekHeader__verticalScrollable{top:0;display:table-row;border-bottom:1px solid #dbdbdb;background:#fff;margin-left:0;left:0;width:100%;text-align:center}.DayPicker_weekHeader_ul{list-style:none;margin:1px 0;padding-left:0;padding-right:0;font-size:14px}.DayPicker_weekHeader_li{display:inline-block;text-align:center}.DayPicker_transitionContainer{position:relative;overflow:hidden;border-radius:3px}.DayPicker_transitionContainer__horizontal{transition:height .2s ease-in-out}.DayPicker_transitionContainer__vertical{width:100%}.DayPicker_transitionContainer__verticalScrollable{padding-top:20px;height:100%;position:absolute;top:0;bottom:0;right:0;left:0;overflow-y:scroll}.DateInput{margin:0;padding:0;background:#fff;position:relative;display:inline-block;width:130px;vertical-align:middle}.DateInput__small{width:97px}.DateInput__block{width:100%}.DateInput__disabled{background:#f2f2f2;color:#dbdbdb}.DateInput_input{font-weight:200;font-size:19px;line-height:24px;color:#484848;background-color:#fff;width:100%;padding:11px 11px 9px;border:0;border-bottom:2px solid transparent;border-radius:0}.DateInput_input__small{font-size:15px;line-height:18px;letter-spacing:.2px;padding:7px 7px 5px}.DateInput_input__regular{font-weight:auto}.DateInput_input__readOnly{-webkit-user-select:none;-ms-user-select:none;user-select:none}.DateInput_input__focused{outline:0;background:#fff;border:0;border-bottom:2px solid #008489}.DateInput_input__disabled{background:#f2f2f2;font-style:italic}.DateInput_screenReaderMessage{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.DateInput_fang{position:absolute;width:20px;height:10px;left:22px;z-index:2}.DateInput_fangShape{fill:#fff}.DateInput_fangStroke{stroke:#dbdbdb;fill:transparent}.DateRangePickerInput{background-color:#fff;display:inline-block}.DateRangePickerInput__disabled{background:#f2f2f2}.DateRangePickerInput__withBorder{border-radius:2px;border:1px solid #dbdbdb}.DateRangePickerInput__rtl{direction:rtl}.DateRangePickerInput__block{display:block}.DateRangePickerInput__showClearDates{padding-right:30px}.DateRangePickerInput_arrow{display:inline-block;vertical-align:middle;color:#484848}.DateRangePickerInput_arrow_svg{vertical-align:middle;fill:#484848;height:24px;width:24px}.DateRangePickerInput_clearDates{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;padding:10px;margin:0 10px 0 5px;position:absolute;right:0;top:50%;transform:translateY(-50%)}.DateRangePickerInput_clearDates__small{padding:6px}.DateRangePickerInput_clearDates_default:focus,.DateRangePickerInput_clearDates_default:hover{background:#dbdbdb;border-radius:50%}.DateRangePickerInput_clearDates__hide{visibility:hidden}.DateRangePickerInput_clearDates_svg{fill:#82888a;height:12px;width:15px;vertical-align:middle}.DateRangePickerInput_clearDates_svg__small{height:9px}.DateRangePickerInput_calendarIcon{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;display:inline-block;vertical-align:middle;padding:10px;margin:0 5px 0 10px}.DateRangePickerInput_calendarIcon_svg{fill:#82888a;height:15px;width:14px;vertical-align:middle}.DateRangePicker{position:relative;display:inline-block}.DateRangePicker__block{display:block}.DateRangePicker_picker{z-index:1;background-color:#fff;position:absolute}.DateRangePicker_picker__rtl{direction:rtl}.DateRangePicker_picker__directionLeft{left:0}.DateRangePicker_picker__directionRight{right:0}.DateRangePicker_picker__portal{background-color:rgba(0,0,0,.3);position:fixed;top:0;left:0;height:100%;width:100%}.DateRangePicker_picker__fullScreenPortal{background-color:#fff}.DateRangePicker_closeButton{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;position:absolute;top:0;right:0;padding:15px;z-index:2}.DateRangePicker_closeButton:focus,.DateRangePicker_closeButton:hover{color:#b0b3b4;text-decoration:none}.DateRangePicker_closeButton_svg{height:15px;width:15px;fill:#cacccd}.components-datetime{padding:0}.components-datetime .components-datetime__calendar-help{padding:16px}.components-datetime .components-datetime__calendar-help h4{margin:0}.components-datetime .components-datetime__buttons{display:flex;justify-content:space-between}.components-datetime .components-datetime__date-help-toggle{display:block;margin-left:auto}.components-datetime fieldset{border:0;padding:0;margin:0}.components-datetime input,.components-datetime select{box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575}@media (prefers-reduced-motion:reduce){.components-datetime input,.components-datetime select{transition-duration:0s}}.components-datetime .components-button,.components-datetime input[type=number],.components-datetime select{height:30px;margin-top:0;margin-bottom:0}.components-datetime__date{min-height:236px;border-top:1px solid #ddd}.components-datetime__date .DayPickerNavigation_leftButton__horizontalDefault{left:0}.components-datetime__date .CalendarMonth_caption{font-size:13px}.components-datetime__date .CalendarMonth_table{border-collapse:separate;border-spacing:2px}.components-datetime__date .CalendarDay{font-size:13px;border:none;border-radius:50%;text-align:center}.components-datetime__date .CalendarDay:focus{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 0 0 2.5px #fff;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 0 0 2.5px #fff;outline:2px solid transparent}.components-datetime__date .CalendarDay__selected{background:#007cba;background:var(--wp-admin-theme-color);border:2px solid transparent}.components-datetime__date .CalendarDay__selected:hover{background:#005a87;background:var(--wp-admin-theme-color-darker-20)}.components-datetime__date .CalendarDay__selected:focus{box-shadow:inset 0 0 0 1px #fff}.components-datetime__date .DayPickerNavigation_button__horizontalDefault{padding:2px 8px;top:20px}.components-datetime__date .DayPickerNavigation_button__horizontalDefault: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}.components-datetime__date .DayPicker_weekHeader{top:50px}.components-datetime__date .DayPicker_weekHeader .DayPicker_weekHeader_ul{margin:1px 0;padding-left:0;padding-right:0}.components-datetime__date.is-description-visible .DayPicker{visibility:hidden}.components-datetime__time{padding-bottom:16px}.components-datetime__time fieldset{position:relative;margin-bottom:.5em}.components-datetime__time fieldset+fieldset{margin-bottom:0}.components-datetime__time .components-datetime__time-field-am-pm fieldset{margin-top:0}.components-datetime__time .components-datetime__time-wrapper{display:flex}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-separator{display:inline-block;padding:0 3px 0 0}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field-time{direction:ltr}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select{margin-right:4px}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select:focus{position:relative;z-index:1}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]{padding:2px;margin-right:4px;text-align:center;-moz-appearance:textfield}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]:focus{position:relative;z-index:1}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.components-datetime__time.is-12-hour .components-datetime__time-field-day input{margin:-4px 0 0!important;border-radius:2px 0 0 2px!important}.components-datetime__time.is-12-hour .components-datetime__time-field-year input{border-radius:0 2px 2px 0!important}.components-datetime__timezone{line-height:30px;margin-left:4px;text-decoration:underline dotted}.components-datetime__time-legend{font-weight:600;margin-top:.5em}.components-datetime__time-legend.invisible{position:absolute;top:-999em;left:-999em}.components-datetime__time-field-day-input,.components-datetime__time-field-hours-input,.components-datetime__time-field-minutes-input{width:35px}.components-datetime__time-field-year-input{width:55px}.components-datetime__time-field-month-select{max-width:145px}.components-popover .components-datetime__date{padding-left:4px}.block-editor-dimension-control .components-base-control__field{display:flex;align-items:center}.block-editor-dimension-control .components-base-control__label{display:flex;align-items:center;margin-right:1em;margin-bottom:0}.block-editor-dimension-control .components-base-control__label .dashicon{margin-right:.5em}.block-editor-dimension-control.is-manual .components-base-control__label{width:10em}.components-disabled{position:relative;pointer-events:none}.components-disabled:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0}.components-disabled *{pointer-events:none}body.is-dragging-components-draggable{cursor:move;cursor:grabbing!important}.components-draggable__invisible-drag-image{position:fixed;left:-1000px;height:50px;width:50px}.components-draggable__clone{position:fixed;padding:0;background:transparent;pointer-events:none;z-index:1000000000}.components-drop-zone{position:absolute;top:0;right:0;bottom:0;left:0;z-index:40;visibility:hidden;opacity:0;transition:opacity .3s,background-color .3s,visibility 0s .3s;border:2px solid #007cba;border:2px solid var(--wp-admin-theme-color);border-radius:2px}@media (prefers-reduced-motion:reduce){.components-drop-zone{transition-duration:0s}}.components-drop-zone.is-active{opacity:1;visibility:visible;transition:opacity .3s,background-color .3s}@media (prefers-reduced-motion:reduce){.components-drop-zone.is-active{transition-duration:0s}}.components-drop-zone.is-dragging-over-element{background-color:#007cba;background-color:var(--wp-admin-theme-color)}.components-drop-zone__content{position:absolute;top:50%;left:0;right:0;z-index:50;transform:translateY(-50%);width:100%;text-align:center;color:#fff;transition:transform .2s ease-in-out}@media (prefers-reduced-motion:reduce){.components-drop-zone__content{transition-duration:0s}}.components-drop-zone.is-dragging-over-element .components-drop-zone__content{transform:translateY(-50%) scale(1.05)}.components-drop-zone__content-icon,.components-drop-zone__content-text{display:block}.components-drop-zone__content-icon{margin:0 auto;line-height:0;fill:currentColor}.components-drop-zone__content-text{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.components-drop-zone__provider{height:100%}.components-dropdown{display:inline-block}.components-dropdown__content .components-popover__content>div{padding:12px}.components-dropdown-menu__popover .components-popover__content{width:200px}.components-dropdown-menu__menu{width:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:1.4}.components-dropdown-menu__menu .components-dropdown-menu__menu-item,.components-dropdown-menu__menu .components-menu-item{width:100%;padding:6px;outline:none;cursor:pointer}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator,.components-dropdown-menu__menu .components-menu-item.has-separator{margin-top:6px;position:relative;overflow:visible}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator:before,.components-dropdown-menu__menu .components-menu-item.has-separator:before{display:block;content:"";box-sizing:content-box;background-color:#ddd;position:absolute;top:-3px;left:0;right:0;height:1px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-active svg,.components-dropdown-menu__menu .components-menu-item.is-active svg{color:#fff;background:#1e1e1e;box-shadow:0 0 0 1px #1e1e1e;border-radius:1px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item>svg,.components-dropdown-menu__menu .components-menu-item>svg{border-radius:2px;width:24px;height:24px}.components-dropdown-menu__menu .components-menu-item__button,.components-dropdown-menu__menu .components-menu-item__button.components-button{min-height:36px;height:auto;text-align:left;padding-left:8px;padding-right:8px}.components-dropdown-menu__menu .components-menu-item__button.components-button .components-menu-item__info-wrapper,.components-dropdown-menu__menu .components-menu-item__button .components-menu-item__info-wrapper{max-width:calc(100% - 32px)}.components-dropdown-menu__menu .components-menu-group{padding:12px;margin:0 -12px}.components-dropdown-menu__menu .components-menu-group:first-child{margin-top:-12px}.components-dropdown-menu__menu .components-menu-group:last-child{margin-bottom:-12px}.components-dropdown-menu__menu .components-menu-group+.components-menu-group{margin-top:0;border-top:1px solid #ccc;padding:12px}.is-alternate .components-dropdown-menu__menu .components-menu-group+.components-menu-group{border-color:#1e1e1e}.components-external-link__icon{width:1.4em;height:1.4em;margin:-.2em .1em 0;vertical-align:middle;fill:currentColor}.components-font-size-picker__controls{max-width:248px;display:flex;flex-wrap:wrap;align-items:center;margin-bottom:24px}.components-font-size-picker__controls .components-font-size-picker__number{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;display:inline-block;font-weight:500;height:30px;margin:8px 8px 0 0;width:54px}@media (prefers-reduced-motion:reduce){.components-font-size-picker__controls .components-font-size-picker__number{transition-duration:0s}}@media (min-width:600px){.components-font-size-picker__controls .components-font-size-picker__number{font-size:13px;line-height:normal}}.components-font-size-picker__controls .components-font-size-picker__number: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}.components-font-size-picker__controls .components-font-size-picker__number::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-font-size-picker__controls .components-font-size-picker__number::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-font-size-picker__controls .components-font-size-picker__number:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-font-size-picker__controls .components-font-size-picker__number::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-font-size-picker__controls .components-font-size-picker__number::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-font-size-picker__controls .components-font-size-picker__number:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-font-size-picker__controls .components-font-size-picker__number[value=""]+.components-button{cursor:default;opacity:.3;pointer-events:none}.components-font-size-picker__controls .components-font-size-picker__number-container{display:flex;flex-direction:column}.components-font-size-picker__controls .components-font-size-picker__select{margin-right:8px}.components-font-size-picker__controls .components-color-palette__clear{height:30px;margin-top:26px}.components-font-size-picker__custom-input .components-range-control__slider+.dashicon{width:30px;height:30px}.components-font-size-picker{border:0;padding:0;margin:0}.components-form-toggle{position:relative;display:inline-block}.components-form-toggle .components-form-toggle__track{content:"";display:inline-block;box-sizing:border-box;vertical-align:top;background-color:#fff;border:1px solid #1e1e1e;width:36px;height:18px;border-radius:9px;transition:background .2s ease}@media (prefers-reduced-motion:reduce){.components-form-toggle .components-form-toggle__track{transition-duration:0s}}.components-form-toggle .components-form-toggle__thumb{display:block;position:absolute;box-sizing:border-box;top:3px;left:3px;width:12px;height:12px;border-radius:50%;transition:transform .1s ease;background-color:#1e1e1e;border:5px solid #1e1e1e}@media (prefers-reduced-motion:reduce){.components-form-toggle .components-form-toggle__thumb{transition-duration:0s}}.components-form-toggle.is-checked .components-form-toggle__track{background-color:#007cba;background-color:var(--wp-admin-theme-color);border:9px solid transparent}.components-form-toggle .components-form-toggle__input:focus+.components-form-toggle__track{box-shadow:0 0 0 2px #fff,0 0 0 3.5px #007cba;box-shadow:0 0 0 2px #fff,0 0 0 3.5px var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:2px}.components-form-toggle.is-checked .components-form-toggle__thumb{background-color:#fff;border-width:0;transform:translateX(18px)}.components-disabled .components-form-toggle{opacity:.3}.components-form-toggle input.components-form-toggle__input[type=checkbox]{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;margin:0;padding:0;z-index:1;border:none}.components-form-toggle input.components-form-toggle__input[type=checkbox]:checked{background:none}.components-form-toggle input.components-form-toggle__input[type=checkbox]:before{content:""}.components-form-token-field__input-container{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;border:1px solid #757575;font-size:16px;line-height:normal;display:flex;flex-wrap:wrap;align-items:flex-start;width:100%;margin:0 0 8px;padding:4px;cursor:text}@media (prefers-reduced-motion:reduce){.components-form-token-field__input-container{transition-duration:0s}}@media (min-width:600px){.components-form-token-field__input-container{font-size:13px;line-height:normal}}.components-form-token-field__input-container: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}.components-form-token-field__input-container::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-form-token-field__input-container::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-form-token-field__input-container:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-form-token-field__input-container::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-form-token-field__input-container::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-form-token-field__input-container:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-form-token-field__input-container.is-disabled{background:#ddd;border-color:#ddd}.components-form-token-field__input-container.is-active{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}.components-form-token-field__input-container input[type=text].components-form-token-field__input{display:inline-block;width:100%;max-width:100%;margin-left:4px;padding:0;min-height:24px;background:inherit;border:0;color:#1e1e1e;box-shadow:none}.components-form-token-field.is-active .components-form-token-field__input-container input[type=text].components-form-token-field__input,.components-form-token-field__input-container input[type=text].components-form-token-field__input:focus{outline:none;box-shadow:none}.components-form-token-field__input-container .components-form-token-field__token+input[type=text].components-form-token-field__input{width:auto}.components-form-token-field__label{display:inline-block;margin-bottom:4px}.components-form-token-field__help{font-style:italic}.components-form-token-field__token{font-size:13px;display:flex;margin:2px 4px 2px 0;color:#1e1e1e;max-width:100%}.components-form-token-field__token.is-success .components-form-token-field__remove-token,.components-form-token-field__token.is-success .components-form-token-field__token-text{background:#4ab866}.components-form-token-field__token.is-error .components-form-token-field__remove-token,.components-form-token-field__token.is-error .components-form-token-field__token-text{background:#cc1818}.components-form-token-field__token.is-validating .components-form-token-field__remove-token,.components-form-token-field__token.is-validating .components-form-token-field__token-text{color:#757575}.components-form-token-field__token.is-borderless{position:relative;padding:0 16px 0 0}.components-form-token-field__token.is-borderless .components-form-token-field__token-text{background:transparent;color:#007cba;color:var(--wp-admin-theme-color)}.components-form-token-field__token.is-borderless .components-form-token-field__remove-token{background:transparent;color:#757575;position:absolute;top:1px;right:0}.components-form-token-field__token.is-borderless.is-success .components-form-token-field__token-text{color:#4ab866}.components-form-token-field__token.is-borderless.is-error .components-form-token-field__token-text{color:#cc1818;border-radius:4px 0 0 4px;padding:0 4px 0 6px}.components-form-token-field__token.is-borderless.is-validating .components-form-token-field__token-text{color:#1e1e1e}.components-form-token-field__token.is-disabled .components-form-token-field__remove-token{cursor:default}.components-form-token-field__remove-token.components-button,.components-form-token-field__token-text{display:inline-block;line-height:24px;height:auto;background:#ddd;transition:all .2s cubic-bezier(.4,1,.4,1)}@media (prefers-reduced-motion:reduce){.components-form-token-field__remove-token.components-button,.components-form-token-field__token-text{transition-duration:0s;animation-duration:1ms}}.components-form-token-field__token-text{border-radius:12px 0 0 12px;padding:0 4px 0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.components-form-token-field__remove-token.components-button{cursor:pointer;border-radius:0 12px 12px 0;padding:0 2px;color:#757575;line-height:10px;overflow:initial}.components-form-token-field__remove-token.components-button:hover{color:#1e1e1e}.components-form-token-field__suggestions-list{flex:1 0 100%;min-width:100%;max-height:9em;overflow-y:auto;transition:all .15s ease-in-out;list-style:none;border-top:1px solid #757575;margin:4px -4px -4px;padding:0}@media (prefers-reduced-motion:reduce){.components-form-token-field__suggestions-list{transition-duration:0s}}.components-form-token-field__suggestion{color:#757575;display:block;font-size:13px;padding:4px 8px;margin:0;cursor:pointer}.components-form-token-field__suggestion.is-selected{background:#007cba;background:var(--wp-admin-theme-color);color:#fff}.components-form-token-field__suggestion-match{text-decoration:underline}@media (min-width:600px){.components-guide{width:600px}}.components-guide .components-modal__header{background:none;border-bottom:none;width:100%;padding:0;margin:0}.components-guide .components-modal__header .components-button{align-self:flex-start;margin:8px 8px 0 0;position:static}.components-guide .components-modal__header .components-button:hover svg{fill:#fff}.components-guide__container{display:flex;flex-direction:column;justify-content:space-between;margin-top:-60px;min-height:100%}.components-guide__page{display:flex;flex-direction:column;justify-content:center;position:relative}@media (min-width:600px){.components-guide__page{min-height:300px}}.components-guide__footer{align-content:center;display:flex;height:30px;justify-content:center;margin:0 0 24px;padding:0 32px;position:relative;width:100%}@media (max-width:600px){.components-guide__footer{position:absolute;bottom:0}}.components-guide__page-control{margin:8px 0;text-align:center}.components-guide__page-control li{display:inline-block}.components-guide__page-control .components-button{height:30px;min-width:20px}.components-guide .components-modal__content{padding:0}.components-modal__frame.components-guide{border:none;min-width:312px;height:80vh;max-height:575px}@media (max-width:600px){.components-modal__frame.components-guide{bottom:5%;left:16px;right:16px;top:5%;margin:0 auto}}.components-button.components-guide__back-button,.components-button.components-guide__finish-button,.components-button.components-guide__forward-button{height:30px;position:absolute}.components-button.components-guide__back-button,.components-button.components-guide__forward-button{font-size:13px;padding:4px 2px}.components-button.components-guide__back-button.has-text svg,.components-button.components-guide__forward-button.has-text svg{margin:0}.components-button.components-guide__back-button:hover,.components-button.components-guide__forward-button:hover{text-decoration:underline}.components-button.components-guide__back-button{left:32px}.components-button.components-guide__forward-button{right:32px;color:#1386bf;font-weight:700}.components-button.components-guide__finish-button{right:32px}.components-button.components-guide__inline-finish-button{display:none}.components-navigate-regions.is-focusing-regions [role=region]{position:relative}.components-navigate-regions.is-focusing-regions [role=region]:focus:after{content:"";position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:none;outline:4px solid transparent;box-shadow:inset 0 0 0 4px #007cba;box-shadow:inset 0 0 0 4px var(--wp-admin-theme-color)}@supports (outline-offset:1px){.components-navigate-regions.is-focusing-regions [role=region]:focus:after{content:none}.components-navigate-regions.is-focusing-regions [role=region]:focus{outline-style:solid;outline-color:#007cba;outline-color:var(--wp-admin-theme-color);outline-width:4px;outline-offset:-4px}}.components-menu-group+.components-menu-group{margin-top:8px;padding-top:8px;border-top:1px solid #1e1e1e}.components-menu-group__label{padding:0 8px;margin-top:4px;margin-bottom:12px;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500}.components-menu-item__button,.components-menu-item__button.components-button{width:100%}.components-menu-item__button.components-button .components-menu-items__item-icon,.components-menu-item__button .components-menu-items__item-icon{margin-right:-2px;margin-left:auto;display:inline-block;flex:0 0 auto}.components-menu-item__button.components-button .components-menu-item__shortcut+.components-menu-items__item-icon,.components-menu-item__button .components-menu-item__shortcut+.components-menu-items__item-icon{margin-left:8px}.components-menu-item__button .block-editor-block-icon,.components-menu-item__button.components-button .block-editor-block-icon{margin-left:-2px;margin-right:8px}.components-menu-item__info-wrapper{display:flex;flex-direction:column}.components-menu-item__info{margin-top:4px;font-size:12px;color:#757575}.components-menu-item__shortcut{-ms-grid-row-align:center;align-self:center;margin-right:0;margin-left:auto;padding-left:12px;color:currentColor;display:none}@media (min-width:480px){.components-menu-item__shortcut{display:inline}}.components-menu-items-choice.components-button svg,.components-menu-items-choice svg{margin-right:12px}.components-menu-items-choice.components-button.has-icon,.components-menu-items-choice.has-icon{padding-left:12px}.components-modal__screen-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0,0,0,.7);z-index:100000;animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-modal__screen-overlay{animation-duration:1ms}}.components-modal__frame{position:absolute;top:0;right:0;bottom:0;left:0;box-sizing:border-box;margin:0;border:1px solid #ddd;background:#fff;box-shadow:0 3px 30px rgba(0,0,0,.2);overflow:auto}@media (min-width:600px){.components-modal__frame{top:50%;right:auto;bottom:auto;left:50%;min-width:360px;max-width:calc(100% - 32px);max-height:calc(100% - 120px);transform:translate(-50%,-50%);animation:components-modal__appear-animation .1s ease-out;animation-fill-mode:forwards}}@media (min-width:600px) and (prefers-reduced-motion:reduce){.components-modal__frame{animation-duration:1ms}}@keyframes components-modal__appear-animation{0%{margin-top:32px}to{margin-top:0}}.components-modal__header{box-sizing:border-box;border-bottom:1px solid #ddd;padding:0 24px;display:flex;flex-direction:row;justify-content:space-between;background:#fff;align-items:center;height:60px;z-index:10;position:relative;position:-webkit-sticky;position:sticky;top:0;margin:0 -24px 24px}@supports (-ms-ime-align:auto){.components-modal__header{position:fixed;width:100%}}.components-modal__header .components-modal__header-heading{font-size:1rem;font-weight:600}.components-modal__header h1{line-height:1;margin:0}.components-modal__header .components-button{position:relative;left:8px}.components-modal__header-heading-container{align-items:center;flex-grow:1;display:flex;flex-direction:row;justify-content:left}.components-modal__header-icon-container{display:inline-block}.components-modal__header-icon-container svg{max-width:36px;max-height:36px;padding:8px}.components-modal__content{box-sizing:border-box;height:100%;padding:0 24px 24px}@supports (-ms-ime-align:auto){.components-modal__content{padding-top:60px}}.components-notice{display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;background-color:#fff;border-left:4px solid #007cba;border-left:4px solid var(--wp-admin-theme-color);margin:5px 15px 2px;padding:8px 12px;align-items:center}.components-notice.is-dismissible{padding-right:36px;position:relative}.components-notice.is-success{border-left-color:#4ab866;background-color:#eff9f1}.components-notice.is-warning{border-left-color:#f0b849;background-color:#fef8ee}.components-notice.is-error{border-left-color:#cc1818;background-color:#f4a2a2}.components-notice__content{flex-grow:1;margin:4px 25px 4px 0}.components-notice__action.components-button,.components-notice__action.components-button.is-link{margin-left:12px}.components-notice__action.components-button.is-secondary{vertical-align:initial}.components-notice__dismiss{color:#757575;align-self:flex-start;flex-shrink:0}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):focus,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):active,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{color:#1e1e1e;background-color:transparent}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{box-shadow:none}.components-notice-list{max-width:100vw;box-sizing:border-box;z-index:29}.components-notice-list .components-notice__content{margin-top:12px;margin-bottom:12px;line-height:2}.components-notice-list .components-notice__action.components-button{display:block;margin-left:0;margin-top:8px}.components-panel{background:#fff;border:1px solid #e0e0e0}.components-panel>.components-panel__body:first-child,.components-panel>.components-panel__header:first-child{margin-top:-1px}.components-panel>.components-panel__body:last-child,.components-panel>.components-panel__header:last-child{border-bottom-width:0}.components-panel+.components-panel{margin-top:-1px}.components-panel__body{border-top:1px solid #e0e0e0;border-bottom:1px solid #e0e0e0}.components-panel__body h3{margin:0 0 .5em}.components-panel__body.is-opened{padding:16px}.components-panel__header{display:flex;justify-content:space-between;align-items:center;padding:0 16px;height:48px;border-top:1px solid #ddd;border-bottom:1px solid #ddd}.components-panel__header h2{margin:0;font-size:inherit;color:inherit}.components-panel__body+.components-panel__body,.components-panel__body+.components-panel__header,.components-panel__header+.components-panel__body,.components-panel__header+.components-panel__header{margin-top:-1px}.components-panel__body>.components-panel__body-title{display:block;padding:0;font-size:inherit;margin-top:0;margin-bottom:0;transition:background .1s ease-in-out}@media (prefers-reduced-motion:reduce){.components-panel__body>.components-panel__body-title{transition-duration:0s}}.components-panel__body.is-opened>.components-panel__body-title{margin:-16px -16px 5px}.components-panel__body>.components-panel__body-title:hover{background:#f0f0f0;border:none}.components-panel__body-toggle.components-button{position:relative;padding:16px;outline:none;width:100%;font-weight:500;text-align:left;color:#1e1e1e;border:none;box-shadow:none;transition:background .1s ease-in-out;height:auto}@media (prefers-reduced-motion:reduce){.components-panel__body-toggle.components-button{transition-duration:0s}}.components-panel__body-toggle.components-button:focus{box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color);border-radius:0}.components-panel__body-toggle.components-button .components-panel__arrow{position:absolute;right:16px;top:50%;transform:translateY(-50%);color:#1e1e1e;fill:currentColor;transition:color .1s ease-in-out}@media (prefers-reduced-motion:reduce){.components-panel__body-toggle.components-button .components-panel__arrow{transition-duration:0s}}body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right{transform:scaleX(-1);-ms-filter:fliph;filter:FlipH;margin-top:-10px}.components-panel__icon{color:#757575;margin:-2px 0 -2px 6px}.components-panel__body-toggle-icon{margin-right:-5px}.components-panel__color-title{float:left;height:19px}.components-panel__row{display:flex;justify-content:space-between;align-items:center;margin-top:8px;min-height:36px}.components-panel__row select{min-width:0}.components-panel__row label{margin-right:12px;flex-shrink:0;max-width:75%}.components-panel__row:empty,.components-panel__row:first-of-type{margin-top:0}.components-panel .circle-picker{padding-bottom:20px}.components-placeholder.components-placeholder{box-sizing:border-box;position:relative;padding:1em;min-height:200px;width:100%;text-align:left;margin:0;color:#1e1e1e;-moz-font-smoothing:subpixel-antialiased;-webkit-font-smoothing:subpixel-antialiased;border-radius:2px;background-color:#fff;box-shadow:inset 0 0 0 1px #1e1e1e;outline:1px solid transparent}@supports ((position:-webkit-sticky) or (position:sticky)){.components-placeholder.components-placeholder{display:flex;flex-direction:column;justify-content:center;align-items:flex-start}}.components-placeholder.components-placeholder .components-base-control__label{font-size:13px}.components-placeholder__error,.components-placeholder__fieldset,.components-placeholder__instructions,.components-placeholder__label{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-placeholder__label{display:flex;font-weight:600;margin-bottom:16px;align-items:center}.components-placeholder__label .block-editor-block-icon,.components-placeholder__label .dashicon,.components-placeholder__label>svg{fill:currentColor;margin-right:1ch}.components-placeholder__fieldset,.components-placeholder__fieldset form{display:flex;flex-direction:row;width:100%;flex-wrap:wrap}.components-placeholder__fieldset form p,.components-placeholder__fieldset p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-placeholder__fieldset.is-column-layout,.components-placeholder__fieldset.is-column-layout form{flex-direction:column}.components-placeholder__input[type=url]{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;margin:0 8px 0 0;flex:1 1 auto}@media (prefers-reduced-motion:reduce){.components-placeholder__input[type=url]{transition-duration:0s}}@media (min-width:600px){.components-placeholder__input[type=url]{font-size:13px;line-height:normal}}.components-placeholder__input[type=url]: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}.components-placeholder__input[type=url]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-placeholder__input[type=url]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-placeholder__input[type=url]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-placeholder__input[type=url]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-placeholder__input[type=url]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-placeholder__input[type=url]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-placeholder__instructions{margin-bottom:1em}.components-placeholder__error{margin-top:1em;width:100%}.components-placeholder__preview img{margin:3%;width:50%}.components-placeholder__fieldset .components-button{margin-right:12px;margin-bottom:12px}.components-placeholder__fieldset .components-button:last-child{margin-bottom:0;margin-right:0}.components-placeholder__fieldset .components-button:not(.is-link)~.components-button.is-link{margin-left:10px;margin-right:10px}.components-placeholder__fieldset .components-button:not(.is-link)~.components-button.is-link:last-child{margin-right:0}.components-placeholder.is-large .components-placeholder__label{font-size:18pt;font-weight:400}.components-placeholder.is-medium .components-placeholder__instructions,.components-placeholder.is-small .components-placeholder__instructions{display:none}.components-placeholder.is-medium .components-placeholder__fieldset,.components-placeholder.is-medium .components-placeholder__fieldset form,.components-placeholder.is-small .components-placeholder__fieldset,.components-placeholder.is-small .components-placeholder__fieldset form{flex-direction:column}.components-placeholder.is-medium .components-placeholder__fieldset .components-button,.components-placeholder.is-small .components-placeholder__fieldset .components-button{margin-right:auto}.components-placeholder.is-small .components-button{padding:0 8px 2px} +:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87}.components-animate__appear{animation:components-animate__appear-animation .1s cubic-bezier(0,0,.2,1) 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-animate__appear{animation-duration:1ms}}.components-animate__appear.is-from-top,.components-animate__appear.is-from-top.is-from-left{transform-origin:top left}.components-animate__appear.is-from-top.is-from-right{transform-origin:top right}.components-animate__appear.is-from-bottom,.components-animate__appear.is-from-bottom.is-from-left{transform-origin:bottom left}.components-animate__appear.is-from-bottom.is-from-right{transform-origin:bottom right}@keyframes components-animate__appear-animation{0%{transform:translateY(-2em) scaleY(0) scaleX(0)}to{transform:translateY(0) scaleY(1) scaleX(1)}}.components-animate__slide-in{animation:components-animate__slide-in-animation .1s cubic-bezier(0,0,.2,1);animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-animate__slide-in{animation-duration:1ms}}.components-animate__slide-in.is-from-left{transform:translateX(100%)}.components-animate__slide-in.is-from-right{transform:translateX(-100%)}@keyframes components-animate__slide-in-animation{to{transform:translateX(0)}}.components-animate__loading{animation:components-animate__loading 1.6s ease-in-out infinite}@keyframes components-animate__loading{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}.components-autocomplete__popover .components-popover__content>div{padding:16px}.components-autocomplete__result.components-button{display:flex;height:auto;min-height:36px;text-align:left;width:100%}.components-autocomplete__result.components-button.is-selected{box-shadow:0 0 0 2px #007cba;box-shadow:0 0 0 2px var(--wp-admin-theme-color)}.components-button-group{display:inline-block}.components-button-group .components-button{border-radius:0;display:inline-flex;color:#1e1e1e;box-shadow:inset 0 0 0 1px #1e1e1e}.components-button-group .components-button+.components-button{margin-left:-1px}.components-button-group .components-button:first-child{border-radius:2px 0 0 2px}.components-button-group .components-button:last-child{border-radius:0 2px 2px 0}.components-button-group .components-button.is-primary,.components-button-group .components-button:focus{position:relative;z-index:1}.components-button-group .components-button.is-primary{box-shadow:inset 0 0 0 1px #1e1e1e}.components-button{display:inline-flex;text-decoration:none;font-size:13px;margin:0;border:0;cursor:pointer;-webkit-appearance:none;background:none;transition:box-shadow .1s linear;height:36px;align-items:center;box-sizing:border-box;padding:6px 12px;border-radius:2px;color:#1e1e1e}@media (prefers-reduced-motion:reduce){.components-button{transition-duration:0s}}.components-button:hover,.components-button[aria-expanded=true]{color:#007cba;color:var(--wp-admin-theme-color)}.components-button[aria-disabled=true]:hover{color:initial}.components-button:focus:not(:disabled){box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);outline:1px solid transparent}.components-button.is-primary{white-space:nowrap;background:#007cba;background:var(--wp-admin-theme-color);color:#fff;text-decoration:none;text-shadow:none}.components-button.is-primary:hover:not(:disabled){background:#006ba1;background:var(--wp-admin-theme-color-darker-10);color:#fff}.components-button.is-primary:active:not(:disabled){background:#005a87;background:var(--wp-admin-theme-color-darker-20);border-color:#005a87;border-color:var(--wp-admin-theme-color-darker-20);color:#fff}.components-button.is-primary:focus:not(:disabled){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:1px solid transparent}.components-button.is-primary:disabled,.components-button.is-primary:disabled:active:enabled,.components-button.is-primary[aria-disabled=true],.components-button.is-primary[aria-disabled=true]:active:enabled,.components-button.is-primary[aria-disabled=true]:enabled{color:hsla(0,0%,100%,.4);background:#007cba;background:var(--wp-admin-theme-color);border-color:#007cba;border-color:var(--wp-admin-theme-color);opacity:1}.components-button.is-primary:disabled:active:enabled:focus:enabled,.components-button.is-primary:disabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:active:enabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:enabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:focus:enabled{box-shadow:0 0 0 1px #fff,0 0 0 3px #007cba;box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color)}.components-button.is-primary.is-busy,.components-button.is-primary.is-busy:disabled,.components-button.is-primary.is-busy[aria-disabled=true]{color:#fff;background-size:100px 100%;background-image:linear-gradient(-45deg,#007cba 28%,#005a87 0,#005a87 72%,#007cba 0);background-image:linear-gradient(-45deg,var(--wp-admin-theme-color) 28%,var(--wp-admin-theme-color-darker-20) 0,var(--wp-admin-theme-color-darker-20) 72%,var(--wp-admin-theme-color) 0);border-color:#007cba;border-color:var(--wp-admin-theme-color)}.components-button.is-secondary:active:not(:disabled),.components-button.is-tertiary:active:not(:disabled){background:#ddd;color:#006ba1;color:var(--wp-admin-theme-color-darker-10);box-shadow:none}.components-button.is-secondary:hover:not(:disabled),.components-button.is-tertiary:hover:not(:disabled){color:#006ba1;color:var(--wp-admin-theme-color-darker-10);box-shadow:inset 0 0 0 1px #006ba1;box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color-darker-10)}.components-button.is-secondary:disabled,.components-button.is-secondary[aria-disabled=true],.components-button.is-secondary[aria-disabled=true]:hover,.components-button.is-tertiary:disabled,.components-button.is-tertiary[aria-disabled=true],.components-button.is-tertiary[aria-disabled=true]:hover{color:#828282;background:#eaeaea;transform:none;opacity:1;box-shadow:none}.components-button.is-secondary{box-shadow:inset 0 0 0 1px #007cba;box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color);outline:1px solid transparent}.components-button.is-secondary,.components-button.is-tertiary{white-space:nowrap;color:#007cba;color:var(--wp-admin-theme-color);background:transparent}.components-button.is-tertiary{padding:6px;outline:1px dotted transparent}.components-button.is-tertiary .dashicon{display:inline-block;flex:0 0 auto}.components-button.is-destructive{color:#cc1818;box-shadow:inset 0 0 0 1px #cc1818}.components-button.is-destructive:hover:not(:disabled){color:#710d0d;box-shadow:inset 0 0 0 1px #710d0d}.components-button.is-destructive:focus:not(:disabled){color:#007cba;color:var(--wp-admin-theme-color)}.components-button.is-destructive:active:not(:disabled){background:#ccc}.components-button.is-link{margin:0;padding:0;box-shadow:none;border:0;border-radius:0;background:none;outline:none;text-align:left;color:#0073aa;text-decoration:underline;transition-property:border,background,color;transition-duration:.05s;transition-timing-function:ease-in-out;height:auto}@media (prefers-reduced-motion:reduce){.components-button.is-link{transition-duration:0s}}.components-button.is-link:active:not(:disabled),.components-button.is-link:hover:not(:disabled){color:#00a0d2;box-shadow:none}.components-button.is-link:focus{color:#124964;box-shadow:0 0 0 1px #5b9dd9,0 0 1.5px 1px rgba(30,140,190,.8)}.components-button.is-link.is-destructive{color:#cc1818}.components-button.is-link.is-destructive:active:not(:disabled),.components-button.is-link.is-destructive:hover:not(:disabled){color:#710d0d;background:none}.components-button.is-link.is-destructive:focus:not(:disabled){color:#007cba;color:var(--wp-admin-theme-color)}.components-button:not([aria-disabled=true]):active{color:inherit}.components-button:disabled,.components-button[aria-disabled=true]{cursor:default;opacity:.3}.components-button.is-busy,.components-button.is-secondary.is-busy,.components-button.is-secondary.is-busy:disabled,.components-button.is-secondary.is-busy[aria-disabled=true]{animation:components-button__busy-animation 2.5s linear infinite;opacity:1;background-size:100px 100%;background-image:linear-gradient(-45deg,#fafafa 28%,#e0e0e0 0,#e0e0e0 72%,#fafafa 0)}.components-button.is-small{height:24px;line-height:22px;padding:0 8px;font-size:11px}.components-button.is-small.has-icon:not(.has-text){padding:0 8px;width:24px}.components-button.has-icon{padding:6px;min-width:36px;justify-content:center}.components-button.has-icon .dashicon{display:inline-block;flex:0 0 auto}.components-button.has-icon.has-text{justify-content:left}.components-button.has-icon.has-text svg{margin-right:8px}.components-button.is-pressed{color:#fff;background:#1e1e1e}.components-button.is-pressed:focus:not(:disabled){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}.components-button.is-pressed:hover:not(:disabled){color:#fff;background:#1e1e1e}.components-button svg{fill:currentColor;outline:none}.components-button .components-visually-hidden{height:auto}@keyframes components-button__busy-animation{0%{background-position:200px 0}}.components-checkbox-control__input[type=checkbox]{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;font-size:16px;line-height:normal;border:1px solid #1e1e1e;transition:none;border-radius:2px;background:#fff;color:#1e1e1e;clear:none;cursor:pointer;display:inline-block;line-height:0;margin:0 4px 0 0;outline:0;padding:0!important;text-align:center;vertical-align:top;width:24px;height:24px;-webkit-appearance:none;-moz-appearance:none;appearance:none;transition:border-color .1s ease-in-out}@media (min-width:600px){.components-checkbox-control__input[type=checkbox]{font-size:13px;line-height:normal}}.components-checkbox-control__input[type=checkbox]: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)}.components-checkbox-control__input[type=checkbox]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-checkbox-control__input[type=checkbox]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-checkbox-control__input[type=checkbox]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-checkbox-control__input[type=checkbox]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-checkbox-control__input[type=checkbox]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-checkbox-control__input[type=checkbox]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-checkbox-control__input[type=checkbox]:checked:before,.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{margin:-3px -5px;color:#fff}@media (min-width:782px){.components-checkbox-control__input[type=checkbox]:checked:before,.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{margin:-4px 0 0 -5px}}.components-checkbox-control__input[type=checkbox][aria-checked=mixed]{background:#007cba;background:var(--wp-admin-theme-color);border-color:#007cba;border-color:var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{content:"\f460";float:left;display:inline-block;vertical-align:middle;width:16px;font:normal 30px/1 dashicons;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (min-width:782px){.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{float:none;font-size:21px}}@media (min-width:600px){.components-checkbox-control__input[type=checkbox]{height:20px;width:20px}}@media (prefers-reduced-motion:reduce){.components-checkbox-control__input[type=checkbox]{transition-duration:0s}}.components-checkbox-control__input[type=checkbox]:focus{box-shadow:0 0 0 2px #fff,0 0 0 3.5px #007cba;box-shadow:0 0 0 2px #fff,0 0 0 3.5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-checkbox-control__input[type=checkbox]:checked{background:#007cba;background:var(--wp-admin-theme-color);border-color:#007cba;border-color:var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox]:checked::-ms-check{opacity:0}.components-checkbox-control__input[type=checkbox]:checked:before{content:none}.components-checkbox-control__input-container{position:relative;display:inline-block;margin-right:12px;vertical-align:middle;width:24px;height:24px}@media (min-width:600px){.components-checkbox-control__input-container{width:20px;height:20px}}svg.components-checkbox-control__checked{fill:#fff;cursor:pointer;position:absolute;left:0;top:0;width:24px;height:24px;-webkit-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}@media (min-width:600px){svg.components-checkbox-control__checked{left:-2px;top:-2px}}.components-circular-option-picker{display:inline-block;width:100%;margin-right:-10px}.components-circular-option-picker .components-circular-option-picker__custom-clear-wrapper{display:flex;justify-content:flex-end}.components-circular-option-picker .components-circular-option-picker__swatches{margin-right:-16px}.components-circular-option-picker__option-wrapper{display:inline-block;height:28px;width:28px;margin-right:16px;margin-bottom:12px;vertical-align:top;transform:scale(1);transition:transform .1s ease}@media (prefers-reduced-motion:reduce){.components-circular-option-picker__option-wrapper{transition-duration:0s}}.components-circular-option-picker__option-wrapper:hover{transform:scale(1.2)}.components-circular-option-picker__option-wrapper>div{height:100%;width:100%}.components-circular-option-picker__option-wrapper:before{content:"";position:absolute;top:1px;left:1px;bottom:1px;right:1px;border-radius:50%;z-index:-1;background:url("data:image/svg+xml;charset=utf-8,%3Csvg width='28' height='28' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 8V6H4v2h2zm2 0V6h2v2H8zm2 8H8v-2h2v2zm2 0v-2h2v2h-2zm0 2v-2h-2v2H8v2h2v-2h2zm2 0v2h-2v-2h2zm2 0h-2v-2h2v2z' fill='%23555D65'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M18 18h2v-2h-2v-2h2v-2h-2v-2h2V8h-2v2h-2V8h-2v2h2v2h-2v2h2v2h2v2zm-2-4v-2h2v2h-2z' fill='%23555D65'/%3E%3Cpath d='M18 18v2h-2v-2h2z' fill='%23555D65'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M8 10V8H6v2H4v2h2v2H4v2h2v2H4v2h2v2H4v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2v2h-2V4h-2v2h-2V4h-2v2h-2V4h-2v2h2v2h-2v2H8zm0 2v-2H6v2h2zm2 0v-2h2v2h-2zm0 2v-2H8v2H6v2h2v2H6v2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h-2v2h-2V6h-2v2h-2v2h2v2h-2v2h-2z' fill='%23555D65'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M4 0H2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2V2h2V0h-2v2h-2V0h-2v2h-2V0h-2v2h-2V0h-2v2h-2V0h-2v2H8V0H6v2H4V0zm0 4V2H2v2h2zm2 0V2h2v2H6zm0 2V4H4v2H2v2h2v2H2v2h2v2H2v2h2v2H2v2h2v2H2v2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2V2h-2v2h-2V2h-2v2h-2V2h-2v2h-2V2h-2v2H8v2H6z' fill='%23555D65'/%3E%3C/svg%3E")}.components-circular-option-picker__option{display:inline-block;vertical-align:top;height:100%;width:100%;border:none;border-radius:50%;background:transparent;box-shadow:inset 0 0 0 14px;transition:box-shadow .1s ease;cursor:pointer}@media (prefers-reduced-motion:reduce){.components-circular-option-picker__option{transition-duration:0s}}.components-circular-option-picker__option:hover{box-shadow:inset 0 0 0 14px!important}.components-circular-option-picker__option.is-pressed{box-shadow:inset 0 0 0 4px;position:relative;z-index:1;overflow:visible}.components-circular-option-picker__option.is-pressed+svg{position:absolute;left:2px;top:2px;border-radius:50%;z-index:2;pointer-events:none}.components-circular-option-picker__option:after{content:"";position:absolute;top:-1px;left:-1px;bottom:-1px;right:-1px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);border:1px solid transparent}.components-circular-option-picker__option:focus:after{content:"";border:2px solid #757575;width:32px;height:32px;position:absolute;top:-2px;left:-2px;border-radius:50%;box-shadow:inset 0 0 0 2px #fff}.components-circular-option-picker__option.components-button:focus{background-color:transparent;box-shadow:inset 0 0 0 14px;outline:none}.components-circular-option-picker__button-action .components-circular-option-picker__option{color:#fff;background:#fff}.components-circular-option-picker__dropdown-link-action{margin-right:16px}.components-circular-option-picker__dropdown-link-action .components-button{line-height:22px}.components-color-edit__color-option-main-area{display:flex;align-items:center}.components-color-edit__color-option-main-area .components-circular-option-picker__option-wrapper{margin:8px}.components-color-edit__color-option.is-hover{background:#e0e0e0}.components-color-edit__cancel-button{float:right}.components-color-edit__color-option-color-name{width:100%}.components-color-edit__label-and-insert-container{display:flex;align-items:center;justify-content:space-between}.components-color-edit__insert-button{margin-top:-8px}.components-color-edit__hidden-control{position:relative;left:-9999px}.components-color-edit__color-option-color-name-input .components-base-control__field{margin-bottom:0;margin-right:8px}.components-color-edit__slug-input{margin-left:8px}.component-color-indicator{width:25px;height:16px;margin-left:.8rem;border:1px solid #dadada;display:inline-block}.component-color-indicator+.component-color-indicator{margin-left:.5rem}.components-color-picker{width:100%}.components-color-picker *{box-sizing:border-box}.components-color-picker__saturation{width:100%;padding-bottom:55%;position:relative}.components-color-picker__body{padding:16px 16px 12px}.components-color-picker__controls{display:flex}.components-color-picker__alpha-pointer,.components-color-picker__hue-pointer,.components-color-picker__saturation-pointer{padding:0;position:absolute;cursor:pointer;box-shadow:none;border:none}.components-color-picker__swatch{margin-right:8px;width:32px;height:32px;border-radius:50%;position:relative;overflow:hidden;background-image:linear-gradient(45deg,#ddd 25%,transparent 0),linear-gradient(-45deg,#ddd 25%,transparent 0),linear-gradient(45deg,transparent 75%,#ddd 0),linear-gradient(-45deg,transparent 75%,#ddd 0);background-size:10px 10px;background-position:0 0,0 5px,5px -5px,-5px 0}.is-alpha-disabled .components-color-picker__swatch{width:12px;height:12px;margin-top:0}.components-color-picker__active{border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1);z-index:2}.components-color-picker__active,.components-color-picker__saturation-black,.components-color-picker__saturation-color,.components-color-picker__saturation-white{position:absolute;top:0;left:0;right:0;bottom:0}.components-color-picker__saturation-color{overflow:visible}.components-color-picker__saturation-white{background:linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.components-color-picker__saturation-black{background:linear-gradient(0deg,#000,transparent)}.components-button.components-color-picker__saturation-pointer{width:14px;height:14px;padding:0;border-radius:50%;background-color:transparent;transform:translate(-50%,-50%);box-shadow:0 0 0 1px #fff,inset 0 0 0 1px #000,0 0 0 2px #000}.components-button.components-color-picker__saturation-pointer:focus:not(:disabled){box-shadow:0 0 0 2px #fff,inset 0 0 0 1px #000,0 0 0 3px #000}.components-color-picker__toggles{flex:1}.components-color-picker__alpha{background-image:linear-gradient(45deg,#ddd 25%,transparent 0),linear-gradient(-45deg,#ddd 25%,transparent 0),linear-gradient(45deg,transparent 75%,#ddd 0),linear-gradient(-45deg,transparent 75%,#ddd 0);background-size:10px 10px;background-position:0 0,0 5px,5px -5px,-5px 0}.components-color-picker__alpha-gradient,.components-color-picker__hue-gradient{position:absolute;top:0;left:0;right:0;bottom:0}.components-color-picker__alpha,.components-color-picker__hue{height:12px;position:relative}.is-alpha-enabled .components-color-picker__hue{margin-bottom:8px}.components-color-picker__alpha-bar,.components-color-picker__hue-bar{position:relative;margin:0 3px;height:100%;padding:0 2px}.components-color-picker__hue-gradient{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.components-color-picker__alpha-pointer,.components-color-picker__hue-pointer{left:0;width:14px;height:14px;border-radius:50%;box-shadow:0 1px 4px 0 rgba(0,0,0,.37);background:#fff;transform:translate(-7px,-1px)}.components-color-picker__hue-pointer,.components-color-picker__saturation-pointer{transition:box-shadow .1s linear}@media (prefers-reduced-motion:reduce){.components-color-picker__hue-pointer,.components-color-picker__saturation-pointer{transition-duration:0s}}.components-color-picker__saturation-pointer:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #007cba,0 0 5px 0 #007cba,inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4);box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color),0 0 5px 0 var(--wp-admin-theme-color),inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4)}.components-color-picker__alpha-pointer:focus,.components-color-picker__hue-pointer:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 2px #007cba,0 0 3px 0 #007cba;box-shadow:0 0 0 2px var(--wp-admin-theme-color),0 0 3px 0 var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:-2px}.components-color-picker__inputs-wrapper{margin:0 -4px;padding-top:16px;display:flex;align-items:flex-end;min-width:255px}.components-color-picker__inputs-wrapper fieldset{flex:1;border:none;margin:0;padding:0}.components-color-picker__inputs-wrapper .components-color-picker__inputs-fields .components-text-control__input[type=number]{padding:6px 3px;margin:0}.components-color-picker__inputs-field{width:100%}.components-color-picker__inputs-fields{display:flex;direction:ltr;flex-grow:1;margin-right:4px}.components-color-picker__inputs-fields .components-base-control+.components-base-control{margin-top:0}.components-color-picker__inputs-fields .components-base-control__field{margin:0 2px}.components-color-picker__inputs-toggle{height:30px;padding:0 5px}.components-combobox-control{width:100%}input.components-combobox-control__input[type=text]{width:100%;border:none;box-shadow:none;padding:2px;margin:0;line-height:inherit;min-height:auto}input.components-combobox-control__input[type=text]:focus{outline:none;box-shadow:none}.components-combobox-control__suggestions-container{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;border:1px solid #757575;font-size:16px;line-height:normal;display:flex;flex-wrap:wrap;align-items:flex-start;width:100%;margin:0 0 8px;padding:4px}@media (prefers-reduced-motion:reduce){.components-combobox-control__suggestions-container{transition-duration:0s}}@media (min-width:600px){.components-combobox-control__suggestions-container{font-size:13px;line-height:normal}}.components-combobox-control__suggestions-container: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}.components-combobox-control__suggestions-container::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-combobox-control__suggestions-container::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-combobox-control__suggestions-container:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-combobox-control__suggestions-container::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-combobox-control__suggestions-container::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-combobox-control__suggestions-container:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-combobox-control__suggestions-container:focus-within{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}.components-combobox-control__reset.components-button{display:flex;height:24px;min-width:24px;padding:0}.components-custom-gradient-picker__gradient-bar:not(.has-gradient){opacity:.4}.components-custom-gradient-picker__gradient-bar{margin-top:12px;width:100%;height:36px;border-radius:36px;margin-bottom:12px;padding-left:6px;padding-right:30px}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__markers-container{position:relative}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point{border-radius:50%;background:#fff;padding:2px;top:6px;min-width:24px;width:24px;height:24px;position:relative;color:#1e1e1e}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point svg{height:100%;width:100%}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button{border:2px solid transparent;box-shadow:inset 0 0 0 1.5px #fff;border-radius:50%;height:24px;width:24px;padding:0;position:absolute;top:6px}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button.is-active,.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px #1e1e1e}.components-custom-gradient-picker__color-picker-popover .components-custom-gradient-picker__remove-control-point{margin-left:auto;margin-right:auto;display:block;margin-bottom:8px}.components-custom-gradient-picker__inserter{width:100%}.components-custom-gradient-picker__liner-gradient-indicator{display:inline-block;flex:0 auto;width:20px;height:20px}.components-custom-gradient-picker .components-custom-gradient-picker__ui-line{margin-bottom:16px}.components-custom-gradient-picker .components-custom-gradient-picker__ui-line .components-base-control.components-angle-picker,.components-custom-gradient-picker .components-custom-gradient-picker__ui-line .components-base-control.components-custom-gradient-picker__type-picker{margin-bottom:0}.components-custom-gradient-picker .components-custom-gradient-picker__toolbar{border:none}.components-custom-gradient-picker .components-custom-gradient-picker__toolbar>div+div{margin-left:1px}.components-custom-gradient-picker .components-custom-gradient-picker__toolbar button.is-pressed>svg{background:#fff;border:1px solid #949494;border-radius:2px}.components-custom-select-control{position:relative}.components-custom-select-control__label{display:block;margin-bottom:8px}.components-custom-select-control__button{border:1px solid #757575;border-radius:2px;min-height:30px;min-width:130px;position:relative;text-align:left}.components-custom-select-control__button.components-custom-select-control__button{padding-right:24px}.components-custom-select-control__button:focus:not(:disabled){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)}.components-custom-select-control__button .components-custom-select-control__button-icon{height:100%;padding:0;position:absolute;right:0;top:0}.components-custom-select-control__menu{background-color:#fff;max-height:400px;min-width:100%;overflow:auto;padding:0;position:absolute;z-index:1000000}.components-custom-select-control__menu:focus{border:1px solid #1e1e1e;border-radius:2px;outline:none;transition:none}.components-custom-select-control__item{align-items:center;display:flex;list-style-type:none;padding:10px 5px 10px 25px;cursor:default}.components-custom-select-control__item.is-highlighted{background:#ddd}.components-custom-select-control__item-icon{margin-left:-20px;margin-right:0}.PresetDateRangePicker_panel{padding:0 22px 11px}.PresetDateRangePicker_button{position:relative;height:100%;text-align:center;background:0 0;border:2px solid #00a699;color:#00a699;padding:4px 12px;margin-right:8px;font:inherit;font-weight:700;line-height:normal;overflow:visible;box-sizing:border-box;cursor:pointer}.PresetDateRangePicker_button:active{outline:0}.PresetDateRangePicker_button__selected{color:#fff;background:#00a699}.SingleDatePickerInput{display:inline-block;background-color:#fff}.SingleDatePickerInput__withBorder{border-radius:2px;border:1px solid #dbdbdb}.SingleDatePickerInput__rtl{direction:rtl}.SingleDatePickerInput__disabled{background-color:#f2f2f2}.SingleDatePickerInput__block{display:block}.SingleDatePickerInput__showClearDate{padding-right:30px}.SingleDatePickerInput_clearDate{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;padding:10px;margin:0 10px 0 5px;position:absolute;right:0;top:50%;transform:translateY(-50%)}.SingleDatePickerInput_clearDate__default:focus,.SingleDatePickerInput_clearDate__default:hover{background:#dbdbdb;border-radius:50%}.SingleDatePickerInput_clearDate__small{padding:6px}.SingleDatePickerInput_clearDate__hide{visibility:hidden}.SingleDatePickerInput_clearDate_svg{fill:#82888a;height:12px;width:15px;vertical-align:middle}.SingleDatePickerInput_clearDate_svg__small{height:9px}.SingleDatePickerInput_calendarIcon{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;display:inline-block;vertical-align:middle;padding:10px;margin:0 5px 0 10px}.SingleDatePickerInput_calendarIcon_svg{fill:#82888a;height:15px;width:14px;vertical-align:middle}.SingleDatePicker{position:relative;display:inline-block}.SingleDatePicker__block{display:block}.SingleDatePicker_picker{z-index:1;background-color:#fff;position:absolute}.SingleDatePicker_picker__rtl{direction:rtl}.SingleDatePicker_picker__directionLeft{left:0}.SingleDatePicker_picker__directionRight{right:0}.SingleDatePicker_picker__portal{background-color:rgba(0,0,0,.3);position:fixed;top:0;left:0;height:100%;width:100%}.SingleDatePicker_picker__fullScreenPortal{background-color:#fff}.SingleDatePicker_closeButton{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;position:absolute;top:0;right:0;padding:15px;z-index:2}.SingleDatePicker_closeButton:focus,.SingleDatePicker_closeButton:hover{color:#b0b3b4;text-decoration:none}.SingleDatePicker_closeButton_svg{height:15px;width:15px;fill:#cacccd}.DayPickerKeyboardShortcuts_buttonReset{background:0 0;border:0;border-radius:0;color:inherit;font:inherit;line-height:normal;overflow:visible;padding:0;cursor:pointer;font-size:14px}.DayPickerKeyboardShortcuts_buttonReset:active{outline:0}.DayPickerKeyboardShortcuts_show{width:22px;position:absolute;z-index:2}.DayPickerKeyboardShortcuts_show__bottomRight{border-top:26px solid transparent;border-right:33px solid #00a699;bottom:0;right:0}.DayPickerKeyboardShortcuts_show__bottomRight:hover{border-right:33px solid #008489}.DayPickerKeyboardShortcuts_show__topRight{border-bottom:26px solid transparent;border-right:33px solid #00a699;top:0;right:0}.DayPickerKeyboardShortcuts_show__topRight:hover{border-right:33px solid #008489}.DayPickerKeyboardShortcuts_show__topLeft{border-bottom:26px solid transparent;border-left:33px solid #00a699;top:0;left:0}.DayPickerKeyboardShortcuts_show__topLeft:hover{border-left:33px solid #008489}.DayPickerKeyboardShortcuts_showSpan{color:#fff;position:absolute}.DayPickerKeyboardShortcuts_showSpan__bottomRight{bottom:0;right:-28px}.DayPickerKeyboardShortcuts_showSpan__topRight{top:1px;right:-28px}.DayPickerKeyboardShortcuts_showSpan__topLeft{top:1px;left:-28px}.DayPickerKeyboardShortcuts_panel{overflow:auto;background:#fff;border:1px solid #dbdbdb;border-radius:2px;position:absolute;top:0;bottom:0;right:0;left:0;z-index:2;padding:22px;margin:33px}.DayPickerKeyboardShortcuts_title{font-size:16px;font-weight:700;margin:0}.DayPickerKeyboardShortcuts_list{list-style:none;padding:0;font-size:14px}.DayPickerKeyboardShortcuts_close{position:absolute;right:22px;top:22px;z-index:2}.DayPickerKeyboardShortcuts_close:active{outline:0}.DayPickerKeyboardShortcuts_closeSvg{height:15px;width:15px;fill:#cacccd}.DayPickerKeyboardShortcuts_closeSvg:focus,.DayPickerKeyboardShortcuts_closeSvg:hover{fill:#82888a}.CalendarDay{box-sizing:border-box;cursor:pointer;font-size:14px;text-align:center}.CalendarDay:active{outline:0}.CalendarDay__defaultCursor{cursor:default}.CalendarDay__default{border:1px solid #e4e7e7;color:#484848;background:#fff}.CalendarDay__default:hover{background:#e4e7e7;border:1px double #e4e7e7;color:inherit}.CalendarDay__hovered_offset{background:#f4f5f5;border:1px double #e4e7e7;color:inherit}.CalendarDay__outside{border:0;background:#fff;color:#484848}.CalendarDay__outside:hover{border:0}.CalendarDay__blocked_minimum_nights{background:#fff;border:1px solid #eceeee;color:#cacccd}.CalendarDay__blocked_minimum_nights:active,.CalendarDay__blocked_minimum_nights:hover{background:#fff;color:#cacccd}.CalendarDay__highlighted_calendar{background:#ffe8bc;color:#484848}.CalendarDay__highlighted_calendar:active,.CalendarDay__highlighted_calendar:hover{background:#ffce71;color:#484848}.CalendarDay__selected_span{background:#66e2da;border:1px solid #33dacd;color:#fff}.CalendarDay__selected_span:active,.CalendarDay__selected_span:hover{background:#33dacd;border:1px solid #33dacd;color:#fff}.CalendarDay__last_in_range{border-right:#00a699}.CalendarDay__selected,.CalendarDay__selected:active,.CalendarDay__selected:hover{background:#00a699;border:1px solid #00a699;color:#fff}.CalendarDay__hovered_span,.CalendarDay__hovered_span:hover{background:#b2f1ec;border:1px solid #80e8e0;color:#007a87}.CalendarDay__hovered_span:active{background:#80e8e0;border:1px solid #80e8e0;color:#007a87}.CalendarDay__blocked_calendar,.CalendarDay__blocked_calendar:active,.CalendarDay__blocked_calendar:hover{background:#cacccd;border:1px solid #cacccd;color:#82888a}.CalendarDay__blocked_out_of_range,.CalendarDay__blocked_out_of_range:active,.CalendarDay__blocked_out_of_range:hover{background:#fff;border:1px solid #e4e7e7;color:#cacccd}.CalendarMonth{background:#fff;text-align:center;vertical-align:top;-webkit-user-select:none;-ms-user-select:none;user-select:none}.CalendarMonth_table{border-collapse:collapse;border-spacing:0}.CalendarMonth_verticalSpacing{border-collapse:separate}.CalendarMonth_caption{color:#484848;font-size:18px;text-align:center;padding-top:22px;padding-bottom:37px;caption-side:top}.CalendarMonth_caption__verticalScrollable{padding-top:12px;padding-bottom:7px}.CalendarMonthGrid{background:#fff;text-align:left;z-index:0}.CalendarMonthGrid__animating{z-index:1}.CalendarMonthGrid__horizontal{position:absolute;left:9px}.CalendarMonthGrid__vertical{margin:0 auto}.CalendarMonthGrid__vertical_scrollable{margin:0 auto;overflow-y:scroll}.CalendarMonthGrid_month__horizontal{display:inline-block;vertical-align:top;min-height:100%}.CalendarMonthGrid_month__hideForAnimation{position:absolute;z-index:-1;opacity:0;pointer-events:none}.CalendarMonthGrid_month__hidden{visibility:hidden}.DayPickerNavigation{position:relative;z-index:2}.DayPickerNavigation__horizontal{height:0}.DayPickerNavigation__verticalDefault{position:absolute;width:100%;height:52px;bottom:0;left:0}.DayPickerNavigation__verticalScrollableDefault{position:relative}.DayPickerNavigation_button{cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none;border:0;padding:0;margin:0}.DayPickerNavigation_button__default{border:1px solid #e4e7e7;background-color:#fff;color:#757575}.DayPickerNavigation_button__default:focus,.DayPickerNavigation_button__default:hover{border:1px solid #c4c4c4}.DayPickerNavigation_button__default:active{background:#f2f2f2}.DayPickerNavigation_button__horizontalDefault{position:absolute;top:18px;line-height:.78;border-radius:3px;padding:6px 9px}.DayPickerNavigation_leftButton__horizontalDefault{left:22px}.DayPickerNavigation_rightButton__horizontalDefault{right:22px}.DayPickerNavigation_button__verticalDefault{padding:5px;background:#fff;box-shadow:0 0 5px 2px rgba(0,0,0,.1);position:relative;display:inline-block;height:100%;width:50%}.DayPickerNavigation_nextButton__verticalDefault{border-left:0}.DayPickerNavigation_nextButton__verticalScrollableDefault{width:100%}.DayPickerNavigation_svg__horizontal{height:19px;width:19px;fill:#82888a;display:block}.DayPickerNavigation_svg__vertical{height:42px;width:42px;fill:#484848;display:block}.DayPicker{position:relative;text-align:left}.DayPicker,.DayPicker__horizontal{background:#fff}.DayPicker__verticalScrollable{height:100%}.DayPicker__hidden{visibility:hidden}.DayPicker__withBorder{box-shadow:0 2px 6px rgba(0,0,0,.05),0 0 0 1px rgba(0,0,0,.07);border-radius:3px}.DayPicker_portal__horizontal{box-shadow:none;position:absolute;left:50%;top:50%}.DayPicker_portal__vertical{position:static}.DayPicker_focusRegion{outline:0}.DayPicker_calendarInfo__horizontal,.DayPicker_wrapper__horizontal{display:inline-block;vertical-align:top}.DayPicker_weekHeaders{position:relative}.DayPicker_weekHeaders__horizontal{margin-left:9px}.DayPicker_weekHeader{color:#757575;position:absolute;top:62px;z-index:2;text-align:left}.DayPicker_weekHeader__vertical{left:50%}.DayPicker_weekHeader__verticalScrollable{top:0;display:table-row;border-bottom:1px solid #dbdbdb;background:#fff;margin-left:0;left:0;width:100%;text-align:center}.DayPicker_weekHeader_ul{list-style:none;margin:1px 0;padding-left:0;padding-right:0;font-size:14px}.DayPicker_weekHeader_li{display:inline-block;text-align:center}.DayPicker_transitionContainer{position:relative;overflow:hidden;border-radius:3px}.DayPicker_transitionContainer__horizontal{transition:height .2s ease-in-out}.DayPicker_transitionContainer__vertical{width:100%}.DayPicker_transitionContainer__verticalScrollable{padding-top:20px;height:100%;position:absolute;top:0;bottom:0;right:0;left:0;overflow-y:scroll}.DateInput{margin:0;padding:0;background:#fff;position:relative;display:inline-block;width:130px;vertical-align:middle}.DateInput__small{width:97px}.DateInput__block{width:100%}.DateInput__disabled{background:#f2f2f2;color:#dbdbdb}.DateInput_input{font-weight:200;font-size:19px;line-height:24px;color:#484848;background-color:#fff;width:100%;padding:11px 11px 9px;border:0;border-bottom:2px solid transparent;border-radius:0}.DateInput_input__small{font-size:15px;line-height:18px;letter-spacing:.2px;padding:7px 7px 5px}.DateInput_input__regular{font-weight:auto}.DateInput_input__readOnly{-webkit-user-select:none;-ms-user-select:none;user-select:none}.DateInput_input__focused{outline:0;background:#fff;border:0;border-bottom:2px solid #008489}.DateInput_input__disabled{background:#f2f2f2;font-style:italic}.DateInput_screenReaderMessage{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.DateInput_fang{position:absolute;width:20px;height:10px;left:22px;z-index:2}.DateInput_fangShape{fill:#fff}.DateInput_fangStroke{stroke:#dbdbdb;fill:transparent}.DateRangePickerInput{background-color:#fff;display:inline-block}.DateRangePickerInput__disabled{background:#f2f2f2}.DateRangePickerInput__withBorder{border-radius:2px;border:1px solid #dbdbdb}.DateRangePickerInput__rtl{direction:rtl}.DateRangePickerInput__block{display:block}.DateRangePickerInput__showClearDates{padding-right:30px}.DateRangePickerInput_arrow{display:inline-block;vertical-align:middle;color:#484848}.DateRangePickerInput_arrow_svg{vertical-align:middle;fill:#484848;height:24px;width:24px}.DateRangePickerInput_clearDates{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;padding:10px;margin:0 10px 0 5px;position:absolute;right:0;top:50%;transform:translateY(-50%)}.DateRangePickerInput_clearDates__small{padding:6px}.DateRangePickerInput_clearDates_default:focus,.DateRangePickerInput_clearDates_default:hover{background:#dbdbdb;border-radius:50%}.DateRangePickerInput_clearDates__hide{visibility:hidden}.DateRangePickerInput_clearDates_svg{fill:#82888a;height:12px;width:15px;vertical-align:middle}.DateRangePickerInput_clearDates_svg__small{height:9px}.DateRangePickerInput_calendarIcon{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;display:inline-block;vertical-align:middle;padding:10px;margin:0 5px 0 10px}.DateRangePickerInput_calendarIcon_svg{fill:#82888a;height:15px;width:14px;vertical-align:middle}.DateRangePicker{position:relative;display:inline-block}.DateRangePicker__block{display:block}.DateRangePicker_picker{z-index:1;background-color:#fff;position:absolute}.DateRangePicker_picker__rtl{direction:rtl}.DateRangePicker_picker__directionLeft{left:0}.DateRangePicker_picker__directionRight{right:0}.DateRangePicker_picker__portal{background-color:rgba(0,0,0,.3);position:fixed;top:0;left:0;height:100%;width:100%}.DateRangePicker_picker__fullScreenPortal{background-color:#fff}.DateRangePicker_closeButton{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;position:absolute;top:0;right:0;padding:15px;z-index:2}.DateRangePicker_closeButton:focus,.DateRangePicker_closeButton:hover{color:#b0b3b4;text-decoration:none}.DateRangePicker_closeButton_svg{height:15px;width:15px;fill:#cacccd}.components-datetime{padding:0}.components-datetime .components-datetime__calendar-help{padding:16px}.components-datetime .components-datetime__calendar-help h4{margin:0}.components-datetime .components-datetime__buttons{display:flex;justify-content:space-between}.components-datetime .components-datetime__date-help-toggle{display:block;margin-left:auto}.components-datetime fieldset{border:0;padding:0;margin:0}.components-datetime input,.components-datetime select{box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575}@media (prefers-reduced-motion:reduce){.components-datetime input,.components-datetime select{transition-duration:0s}}.components-datetime .components-button,.components-datetime input[type=number],.components-datetime select{height:30px;margin-top:0;margin-bottom:0}.components-datetime__date{min-height:236px;border-top:1px solid #ddd}.components-datetime__date .DayPickerNavigation_leftButton__horizontalDefault{left:0}.components-datetime__date .CalendarMonth_caption{font-size:13px}.components-datetime__date .CalendarMonth_table{border-collapse:separate;border-spacing:2px}.components-datetime__date .CalendarDay{font-size:13px;border:none;border-radius:50%;text-align:center}.components-datetime__date .CalendarDay:focus{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 0 0 2.5px #fff;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 0 0 2.5px #fff;outline:2px solid transparent}.components-datetime__date .CalendarDay__selected{background:#007cba;background:var(--wp-admin-theme-color);border:2px solid transparent}.components-datetime__date .CalendarDay__selected:hover{background:#005a87;background:var(--wp-admin-theme-color-darker-20)}.components-datetime__date .CalendarDay__selected:focus{box-shadow:inset 0 0 0 1px #fff}.components-datetime__date .DayPickerNavigation_button__horizontalDefault{padding:2px 8px;top:20px}.components-datetime__date .DayPickerNavigation_button__horizontalDefault: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}.components-datetime__date .DayPicker_weekHeader{top:50px}.components-datetime__date .DayPicker_weekHeader .DayPicker_weekHeader_ul{margin:1px 0;padding-left:0;padding-right:0}.components-datetime__date.is-description-visible .DayPicker{visibility:hidden}.components-datetime__time{padding-bottom:16px}.components-datetime__time fieldset{position:relative;margin-bottom:.5em}.components-datetime__time fieldset+fieldset{margin-bottom:0}.components-datetime__time .components-datetime__time-field-am-pm fieldset{margin-top:0}.components-datetime__time .components-datetime__time-wrapper{display:flex}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-separator{display:inline-block;padding:0 3px 0 0}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field-time{direction:ltr}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select{margin-right:4px}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select:focus{position:relative;z-index:1}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]{padding:2px;margin-right:4px;text-align:center;-moz-appearance:textfield}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]:focus{position:relative;z-index:1}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.components-datetime__time.is-12-hour .components-datetime__time-field-day input{margin:-4px 0 0!important;border-radius:2px 0 0 2px!important}.components-datetime__time.is-12-hour .components-datetime__time-field-year input{border-radius:0 2px 2px 0!important}.components-datetime__timezone{line-height:30px;margin-left:4px;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.components-datetime__time-legend{font-weight:600;margin-top:.5em}.components-datetime__time-legend.invisible{position:absolute;top:-999em;left:-999em}.components-datetime__time-field-day-input,.components-datetime__time-field-hours-input,.components-datetime__time-field-minutes-input{width:35px}.components-datetime__time-field-year-input{width:55px}.components-datetime__time-field-month-select{max-width:145px}.components-popover .components-datetime__date{padding-left:4px}.block-editor-dimension-control .components-base-control__field{display:flex;align-items:center}.block-editor-dimension-control .components-base-control__label{display:flex;align-items:center;margin-right:1em;margin-bottom:0}.block-editor-dimension-control .components-base-control__label .dashicon{margin-right:.5em}.block-editor-dimension-control.is-manual .components-base-control__label{width:10em}.components-disabled{position:relative;pointer-events:none}.components-disabled:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0}.components-disabled *{pointer-events:none}body.is-dragging-components-draggable{cursor:move;cursor:grabbing!important}.components-draggable__invisible-drag-image{position:fixed;left:-1000px;height:50px;width:50px}.components-draggable__clone{position:fixed;padding:0;background:transparent;pointer-events:none;z-index:1000000000}.components-drop-zone{position:absolute;top:0;right:0;bottom:0;left:0;z-index:40;visibility:hidden;opacity:0;transition:opacity .3s,background-color .3s,visibility 0s .3s;border:2px solid #007cba;border:2px solid var(--wp-admin-theme-color);border-radius:2px}@media (prefers-reduced-motion:reduce){.components-drop-zone{transition-duration:0s}}.components-drop-zone.is-active{opacity:1;visibility:visible;transition:opacity .3s,background-color .3s}@media (prefers-reduced-motion:reduce){.components-drop-zone.is-active{transition-duration:0s}}.components-drop-zone.is-dragging-over-element{background-color:#007cba;background-color:var(--wp-admin-theme-color)}.components-drop-zone__content{position:absolute;top:50%;left:0;right:0;z-index:50;transform:translateY(-50%);width:100%;text-align:center;color:#fff;transition:transform .2s ease-in-out}@media (prefers-reduced-motion:reduce){.components-drop-zone__content{transition-duration:0s}}.components-drop-zone.is-dragging-over-element .components-drop-zone__content{transform:translateY(-50%) scale(1.05)}.components-drop-zone__content-icon,.components-drop-zone__content-text{display:block}.components-drop-zone__content-icon{margin:0 auto;line-height:0;fill:currentColor}.components-drop-zone__content-text{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.components-drop-zone__provider{height:100%}.components-dropdown{display:inline-block}.components-dropdown__content .components-popover__content>div{padding:12px}.components-dropdown-menu__popover .components-popover__content{width:200px}.components-dropdown-menu__menu{width:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:1.4}.components-dropdown-menu__menu .components-dropdown-menu__menu-item,.components-dropdown-menu__menu .components-menu-item{width:100%;padding:6px;outline:none;cursor:pointer}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator,.components-dropdown-menu__menu .components-menu-item.has-separator{margin-top:6px;position:relative;overflow:visible}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator:before,.components-dropdown-menu__menu .components-menu-item.has-separator:before{display:block;content:"";box-sizing:content-box;background-color:#ddd;position:absolute;top:-3px;left:0;right:0;height:1px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-active svg,.components-dropdown-menu__menu .components-menu-item.is-active svg{color:#fff;background:#1e1e1e;box-shadow:0 0 0 1px #1e1e1e;border-radius:1px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item>svg,.components-dropdown-menu__menu .components-menu-item>svg{border-radius:2px;width:24px;height:24px}.components-dropdown-menu__menu .components-menu-item__button,.components-dropdown-menu__menu .components-menu-item__button.components-button{min-height:36px;height:auto;text-align:left;padding-left:8px;padding-right:8px}.components-dropdown-menu__menu .components-menu-item__button.components-button .components-menu-item__info-wrapper,.components-dropdown-menu__menu .components-menu-item__button .components-menu-item__info-wrapper{max-width:calc(100% - 32px)}.components-dropdown-menu__menu .components-menu-group{padding:12px;margin:0 -12px}.components-dropdown-menu__menu .components-menu-group:first-child{margin-top:-12px}.components-dropdown-menu__menu .components-menu-group:last-child{margin-bottom:-12px}.components-dropdown-menu__menu .components-menu-group+.components-menu-group{margin-top:0;border-top:1px solid #ccc;padding:12px}.is-alternate .components-dropdown-menu__menu .components-menu-group+.components-menu-group{border-color:#1e1e1e}.components-font-size-picker__controls{max-width:248px;display:flex;flex-wrap:wrap;align-items:center;margin-bottom:24px}.components-font-size-picker__controls .components-font-size-picker__number{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;display:inline-block;font-weight:500;height:30px;margin:8px 8px 0 0;width:54px}@media (prefers-reduced-motion:reduce){.components-font-size-picker__controls .components-font-size-picker__number{transition-duration:0s}}@media (min-width:600px){.components-font-size-picker__controls .components-font-size-picker__number{font-size:13px;line-height:normal}}.components-font-size-picker__controls .components-font-size-picker__number: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}.components-font-size-picker__controls .components-font-size-picker__number::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-font-size-picker__controls .components-font-size-picker__number::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-font-size-picker__controls .components-font-size-picker__number:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-font-size-picker__controls .components-font-size-picker__number::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-font-size-picker__controls .components-font-size-picker__number::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-font-size-picker__controls .components-font-size-picker__number:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-font-size-picker__controls .components-font-size-picker__number[value=""]+.components-button{cursor:default;opacity:.3;pointer-events:none}.components-font-size-picker__controls .components-font-size-picker__number-container{display:flex;flex-direction:column}.components-font-size-picker__controls .components-font-size-picker__select{margin-right:8px}.components-font-size-picker__controls .components-color-palette__clear{height:30px;margin-top:26px}.components-font-size-picker__custom-input .components-range-control__slider+.dashicon{width:30px;height:30px}.components-font-size-picker{border:0;padding:0;margin:0}.components-form-toggle{position:relative;display:inline-block}.components-form-toggle .components-form-toggle__track{content:"";display:inline-block;box-sizing:border-box;vertical-align:top;background-color:#fff;border:1px solid #1e1e1e;width:36px;height:18px;border-radius:9px;transition:background .2s ease}@media (prefers-reduced-motion:reduce){.components-form-toggle .components-form-toggle__track{transition-duration:0s}}.components-form-toggle .components-form-toggle__thumb{display:block;position:absolute;box-sizing:border-box;top:3px;left:3px;width:12px;height:12px;border-radius:50%;transition:transform .1s ease;background-color:#1e1e1e;border:5px solid #1e1e1e}@media (prefers-reduced-motion:reduce){.components-form-toggle .components-form-toggle__thumb{transition-duration:0s}}.components-form-toggle.is-checked .components-form-toggle__track{background-color:#007cba;background-color:var(--wp-admin-theme-color);border:9px solid transparent}.components-form-toggle .components-form-toggle__input:focus+.components-form-toggle__track{box-shadow:0 0 0 2px #fff,0 0 0 3.5px #007cba;box-shadow:0 0 0 2px #fff,0 0 0 3.5px var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:2px}.components-form-toggle.is-checked .components-form-toggle__thumb{background-color:#fff;border-width:0;transform:translateX(18px)}.components-disabled .components-form-toggle{opacity:.3}.components-form-toggle input.components-form-toggle__input[type=checkbox]{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;margin:0;padding:0;z-index:1;border:none}.components-form-toggle input.components-form-toggle__input[type=checkbox]:checked{background:none}.components-form-toggle input.components-form-toggle__input[type=checkbox]:before{content:""}.components-form-token-field__input-container{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;border:1px solid #757575;font-size:16px;line-height:normal;display:flex;flex-wrap:wrap;align-items:flex-start;width:100%;margin:0 0 8px;padding:4px;cursor:text}@media (prefers-reduced-motion:reduce){.components-form-token-field__input-container{transition-duration:0s}}@media (min-width:600px){.components-form-token-field__input-container{font-size:13px;line-height:normal}}.components-form-token-field__input-container: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}.components-form-token-field__input-container::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-form-token-field__input-container::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-form-token-field__input-container:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-form-token-field__input-container::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-form-token-field__input-container::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-form-token-field__input-container:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-form-token-field__input-container.is-disabled{background:#ddd;border-color:#ddd}.components-form-token-field__input-container.is-active{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}.components-form-token-field__input-container input[type=text].components-form-token-field__input{display:inline-block;width:100%;max-width:100%;margin-left:4px;padding:0;min-height:24px;background:inherit;border:0;color:#1e1e1e;box-shadow:none}.components-form-token-field.is-active .components-form-token-field__input-container input[type=text].components-form-token-field__input,.components-form-token-field__input-container input[type=text].components-form-token-field__input:focus{outline:none;box-shadow:none}.components-form-token-field__input-container .components-form-token-field__token+input[type=text].components-form-token-field__input{width:auto}.components-form-token-field__label{display:inline-block;margin-bottom:4px}.components-form-token-field__help{font-size:12px;font-style:normal;color:#757575}.components-form-token-field__token{font-size:13px;display:flex;margin:2px 4px 2px 0;color:#1e1e1e;max-width:100%}.components-form-token-field__token.is-success .components-form-token-field__remove-token,.components-form-token-field__token.is-success .components-form-token-field__token-text{background:#4ab866}.components-form-token-field__token.is-error .components-form-token-field__remove-token,.components-form-token-field__token.is-error .components-form-token-field__token-text{background:#cc1818}.components-form-token-field__token.is-validating .components-form-token-field__remove-token,.components-form-token-field__token.is-validating .components-form-token-field__token-text{color:#757575}.components-form-token-field__token.is-borderless{position:relative;padding:0 16px 0 0}.components-form-token-field__token.is-borderless .components-form-token-field__token-text{background:transparent;color:#007cba;color:var(--wp-admin-theme-color)}.components-form-token-field__token.is-borderless .components-form-token-field__remove-token{background:transparent;color:#757575;position:absolute;top:1px;right:0}.components-form-token-field__token.is-borderless.is-success .components-form-token-field__token-text{color:#4ab866}.components-form-token-field__token.is-borderless.is-error .components-form-token-field__token-text{color:#cc1818;border-radius:4px 0 0 4px;padding:0 4px 0 6px}.components-form-token-field__token.is-borderless.is-validating .components-form-token-field__token-text{color:#1e1e1e}.components-form-token-field__token.is-disabled .components-form-token-field__remove-token{cursor:default}.components-form-token-field__remove-token.components-button,.components-form-token-field__token-text{display:inline-block;line-height:24px;height:auto;background:#ddd;transition:all .2s cubic-bezier(.4,1,.4,1)}@media (prefers-reduced-motion:reduce){.components-form-token-field__remove-token.components-button,.components-form-token-field__token-text{transition-duration:0s;animation-duration:1ms}}.components-form-token-field__token-text{border-radius:12px 0 0 12px;padding:0 4px 0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.components-form-token-field__remove-token.components-button{cursor:pointer;border-radius:0 12px 12px 0;padding:0 2px;color:#757575;line-height:10px;overflow:initial}.components-form-token-field__remove-token.components-button:hover{color:#1e1e1e}.components-form-token-field__suggestions-list{flex:1 0 100%;min-width:100%;max-height:9em;overflow-y:auto;transition:all .15s ease-in-out;list-style:none;border-top:1px solid #757575;margin:4px -4px -4px;padding:0}@media (prefers-reduced-motion:reduce){.components-form-token-field__suggestions-list{transition-duration:0s}}.components-form-token-field__suggestion{color:#757575;display:block;font-size:13px;padding:4px 8px;margin:0;cursor:pointer}.components-form-token-field__suggestion.is-selected{background:#007cba;background:var(--wp-admin-theme-color);color:#fff}.components-form-token-field__suggestion-match{text-decoration:underline}@media (min-width:600px){.components-guide{width:600px}}.components-guide .components-modal__header{background:none;border-bottom:none;width:100%;padding:0;margin:0}.components-guide .components-modal__header .components-button{align-self:flex-start;margin:8px 8px 0 0;position:static}.components-guide .components-modal__header .components-button:hover svg{fill:#fff}.components-guide__container{display:flex;flex-direction:column;justify-content:space-between;margin-top:-60px;min-height:100%}.components-guide__page{display:flex;flex-direction:column;justify-content:center;position:relative}@media (min-width:600px){.components-guide__page{min-height:300px}}.components-guide__footer{align-content:center;display:flex;height:30px;justify-content:center;margin:0 0 24px;padding:0 32px;position:relative;width:100%}@media (max-width:600px){.components-guide__footer{position:absolute;bottom:0}}.components-guide__page-control{margin:8px 0;text-align:center}.components-guide__page-control li{display:inline-block}.components-guide__page-control .components-button{height:30px;min-width:20px}.components-guide .components-modal__content{padding:0}.components-modal__frame.components-guide{border:none;min-width:312px;height:80vh;max-height:575px}@media (max-width:600px){.components-modal__frame.components-guide{bottom:5%;left:16px;right:16px;top:5%;margin:0 auto}}.components-button.components-guide__back-button,.components-button.components-guide__finish-button,.components-button.components-guide__forward-button{height:30px;position:absolute}.components-button.components-guide__back-button,.components-button.components-guide__forward-button{font-size:13px;padding:4px 2px}.components-button.components-guide__back-button.has-text svg,.components-button.components-guide__forward-button.has-text svg{margin:0}.components-button.components-guide__back-button:hover,.components-button.components-guide__forward-button:hover{text-decoration:underline}.components-button.components-guide__back-button{left:32px}.components-button.components-guide__forward-button{right:32px;color:#1386bf;font-weight:700}.components-button.components-guide__finish-button{right:32px}.components-button.components-guide__inline-finish-button{display:none}.components-navigate-regions.is-focusing-regions [role=region]{position:relative}.components-navigate-regions.is-focusing-regions [role=region]:focus:after{content:"";position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:none;outline:4px solid transparent;box-shadow:inset 0 0 0 4px #007cba;box-shadow:inset 0 0 0 4px var(--wp-admin-theme-color)}@supports (outline-offset:1px){.components-navigate-regions.is-focusing-regions [role=region]:focus:after{content:none}.components-navigate-regions.is-focusing-regions [role=region]:focus{outline-style:solid;outline-color:#007cba;outline-color:var(--wp-admin-theme-color);outline-width:4px;outline-offset:-4px}}.components-menu-group+.components-menu-group{margin-top:8px;padding-top:8px;border-top:1px solid #1e1e1e}.components-menu-group__label{padding:0 8px;margin-top:4px;margin-bottom:12px;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500}.components-menu-item__button,.components-menu-item__button.components-button{width:100%}.components-menu-item__button.components-button .components-menu-items__item-icon,.components-menu-item__button .components-menu-items__item-icon{margin-right:-2px;margin-left:auto;display:inline-block;flex:0 0 auto}.components-menu-item__button.components-button .components-menu-item__shortcut+.components-menu-items__item-icon,.components-menu-item__button .components-menu-item__shortcut+.components-menu-items__item-icon{margin-left:8px}.components-menu-item__button .block-editor-block-icon,.components-menu-item__button.components-button .block-editor-block-icon{margin-left:-2px;margin-right:8px}.components-menu-item__info-wrapper{display:flex;flex-direction:column}.components-menu-item__info{margin-top:4px;font-size:12px;color:#757575}.components-menu-item__shortcut{-ms-grid-row-align:center;align-self:center;margin-right:0;margin-left:auto;padding-left:12px;color:currentColor;display:none}@media (min-width:480px){.components-menu-item__shortcut{display:inline}}.components-menu-items-choice.components-button svg,.components-menu-items-choice svg{margin-right:12px}.components-menu-items-choice.components-button.has-icon,.components-menu-items-choice.has-icon{padding-left:12px}.components-modal__screen-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0,0,0,.7);z-index:100000;animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-modal__screen-overlay{animation-duration:1ms}}.components-modal__frame{position:absolute;top:0;right:0;bottom:0;left:0;box-sizing:border-box;margin:0;border:1px solid #ddd;background:#fff;box-shadow:0 3px 30px rgba(0,0,0,.2);overflow:auto}@media (min-width:600px){.components-modal__frame{top:50%;right:auto;bottom:auto;left:50%;min-width:360px;max-width:calc(100% - 32px);max-height:calc(100% - 120px);transform:translate(-50%,-50%);animation:components-modal__appear-animation .1s ease-out;animation-fill-mode:forwards}}@media (min-width:600px) and (prefers-reduced-motion:reduce){.components-modal__frame{animation-duration:1ms}}@keyframes components-modal__appear-animation{0%{margin-top:32px}to{margin-top:0}}.components-modal__header{box-sizing:border-box;border-bottom:1px solid #ddd;padding:0 24px;display:flex;flex-direction:row;justify-content:space-between;background:#fff;align-items:center;height:60px;z-index:10;position:relative;position:-webkit-sticky;position:sticky;top:0;margin:0 -24px 24px}@supports (-ms-ime-align:auto){.components-modal__header{position:fixed;width:100%}}.components-modal__header .components-modal__header-heading{font-size:1rem;font-weight:600}.components-modal__header h1{line-height:1;margin:0}.components-modal__header .components-button{position:relative;left:8px}.components-modal__header-heading-container{align-items:center;flex-grow:1;display:flex;flex-direction:row;justify-content:left}.components-modal__header-icon-container{display:inline-block}.components-modal__header-icon-container svg{max-width:36px;max-height:36px;padding:8px}.components-modal__content{box-sizing:border-box;height:100%;padding:0 24px 24px}@supports (-ms-ime-align:auto){.components-modal__content{padding-top:60px}}.components-notice{display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;background-color:#fff;border-left:4px solid #007cba;border-left:4px solid var(--wp-admin-theme-color);margin:5px 15px 2px;padding:8px 12px;align-items:center}.components-notice.is-dismissible{padding-right:36px;position:relative}.components-notice.is-success{border-left-color:#4ab866;background-color:#eff9f1}.components-notice.is-warning{border-left-color:#f0b849;background-color:#fef8ee}.components-notice.is-error{border-left-color:#cc1818;background-color:#f4a2a2}.components-notice__content{flex-grow:1;margin:4px 25px 4px 0}.components-notice__action.components-button,.components-notice__action.components-button.is-link{margin-left:12px}.components-notice__action.components-button.is-secondary{vertical-align:initial}.components-notice__dismiss{color:#757575;align-self:flex-start;flex-shrink:0}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):focus,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):active,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{color:#1e1e1e;background-color:transparent}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{box-shadow:none}.components-notice-list{max-width:100vw;box-sizing:border-box;z-index:29}.components-notice-list .components-notice__content{margin-top:12px;margin-bottom:12px;line-height:2}.components-notice-list .components-notice__action.components-button{display:block;margin-left:0;margin-top:8px}.components-panel{background:#fff;border:1px solid #e0e0e0}.components-panel>.components-panel__body:first-child,.components-panel>.components-panel__header:first-child{margin-top:-1px}.components-panel>.components-panel__body:last-child,.components-panel>.components-panel__header:last-child{border-bottom-width:0}.components-panel+.components-panel{margin-top:-1px}.components-panel__body{border-top:1px solid #e0e0e0;border-bottom:1px solid #e0e0e0}.components-panel__body h3{margin:0 0 .5em}.components-panel__body.is-opened{padding:16px}.components-panel__header{display:flex;justify-content:space-between;align-items:center;padding:0 16px;height:48px;border-top:1px solid #ddd;border-bottom:1px solid #ddd}.components-panel__header h2{margin:0;font-size:inherit;color:inherit}.components-panel__body+.components-panel__body,.components-panel__body+.components-panel__header,.components-panel__header+.components-panel__body,.components-panel__header+.components-panel__header{margin-top:-1px}.components-panel__body>.components-panel__body-title{display:block;padding:0;font-size:inherit;margin-top:0;margin-bottom:0;transition:background .1s ease-in-out}@media (prefers-reduced-motion:reduce){.components-panel__body>.components-panel__body-title{transition-duration:0s}}.components-panel__body.is-opened>.components-panel__body-title{margin:-16px -16px 5px}.components-panel__body>.components-panel__body-title:hover{background:#f0f0f0;border:none}.components-panel__body-toggle.components-button{position:relative;padding:16px;outline:none;width:100%;font-weight:500;text-align:left;color:#1e1e1e;border:none;box-shadow:none;transition:background .1s ease-in-out;height:auto}@media (prefers-reduced-motion:reduce){.components-panel__body-toggle.components-button{transition-duration:0s}}.components-panel__body-toggle.components-button:focus{box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color);border-radius:0}.components-panel__body-toggle.components-button .components-panel__arrow{position:absolute;right:16px;top:50%;transform:translateY(-50%);color:#1e1e1e;fill:currentColor;transition:color .1s ease-in-out}@media (prefers-reduced-motion:reduce){.components-panel__body-toggle.components-button .components-panel__arrow{transition-duration:0s}}body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right{transform:scaleX(-1);-ms-filter:fliph;filter:FlipH;margin-top:-10px}.components-panel__icon{color:#757575;margin:-2px 0 -2px 6px}.components-panel__body-toggle-icon{margin-right:-5px}.components-panel__color-title{float:left;height:19px}.components-panel__row{display:flex;justify-content:space-between;align-items:center;margin-top:8px;min-height:36px}.components-panel__row select{min-width:0}.components-panel__row label{margin-right:12px;flex-shrink:0;max-width:75%}.components-panel__row:empty,.components-panel__row:first-of-type{margin-top:0}.components-panel .circle-picker{padding-bottom:20px}.components-placeholder.components-placeholder{box-sizing:border-box;position:relative;padding:1em;min-height:200px;width:100%;text-align:left;margin:0;color:#1e1e1e;-moz-font-smoothing:subpixel-antialiased;-webkit-font-smoothing:subpixel-antialiased;border-radius:2px;background-color:#fff;box-shadow:inset 0 0 0 1px #1e1e1e;outline:1px solid transparent}@supports ((position:-webkit-sticky) or (position:sticky)){.components-placeholder.components-placeholder{display:flex;flex-direction:column;justify-content:center;align-items:flex-start}}.components-placeholder.components-placeholder .components-base-control__label{font-size:13px}.components-placeholder__error,.components-placeholder__fieldset,.components-placeholder__instructions,.components-placeholder__label{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-placeholder__label{display:flex;font-weight:600;margin-bottom:16px;align-items:center}.components-placeholder__label .block-editor-block-icon,.components-placeholder__label .dashicon,.components-placeholder__label>svg{fill:currentColor;margin-right:1ch}.components-placeholder__fieldset,.components-placeholder__fieldset form{display:flex;flex-direction:row;width:100%;flex-wrap:wrap}.components-placeholder__fieldset form p,.components-placeholder__fieldset p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-placeholder__fieldset.is-column-layout,.components-placeholder__fieldset.is-column-layout form{flex-direction:column}.components-placeholder__input[type=url]{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;margin:0 8px 0 0;flex:1 1 auto}@media (prefers-reduced-motion:reduce){.components-placeholder__input[type=url]{transition-duration:0s}}@media (min-width:600px){.components-placeholder__input[type=url]{font-size:13px;line-height:normal}}.components-placeholder__input[type=url]: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}.components-placeholder__input[type=url]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-placeholder__input[type=url]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-placeholder__input[type=url]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-placeholder__input[type=url]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-placeholder__input[type=url]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-placeholder__input[type=url]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-placeholder__instructions{margin-bottom:1em}.components-placeholder__error{margin-top:1em;width:100%}.components-placeholder__preview img{margin:3%;width:50%}.components-placeholder__fieldset .components-button{margin-right:12px;margin-bottom:12px}.components-placeholder__fieldset .components-button:last-child{margin-bottom:0;margin-right:0}.components-placeholder__fieldset .components-button:not(.is-link)~.components-button.is-link{margin-left:10px;margin-right:10px}.components-placeholder__fieldset .components-button:not(.is-link)~.components-button.is-link:last-child{margin-right:0}.components-placeholder.is-large .components-placeholder__label{font-size:18pt;font-weight:400}.components-placeholder.is-medium .components-placeholder__instructions,.components-placeholder.is-small .components-placeholder__instructions{display:none}.components-placeholder.is-medium .components-placeholder__fieldset,.components-placeholder.is-medium .components-placeholder__fieldset form,.components-placeholder.is-small .components-placeholder__fieldset,.components-placeholder.is-small .components-placeholder__fieldset form{flex-direction:column}.components-placeholder.is-medium .components-placeholder__fieldset .components-button,.components-placeholder.is-small .components-placeholder__fieldset .components-button{margin-right:auto}.components-placeholder.is-small .components-button{padding:0 8px 2px} /*!rtl:begin:ignore*/.components-popover{position:fixed;z-index:1000000;top:0;left:0;opacity:0}.components-popover.is-expanded,.components-popover[data-x-axis][data-y-axis]{opacity:1}.components-popover.is-expanded{top:0;left:0;right:0;bottom:0;z-index:1000000!important}.components-popover:not(.is-without-arrow){margin-left:2px}.components-popover:not(.is-without-arrow):before{border:8px solid #ccc}.components-popover:not(.is-without-arrow).is-alternate:before{border-color:#1e1e1e}.components-popover:not(.is-without-arrow):after{border:8px solid #fff}.components-popover:not(.is-without-arrow):after,.components-popover:not(.is-without-arrow):before{content:"";position:absolute;height:0;width:0;line-height:0}.components-popover:not(.is-without-arrow)[data-y-axis=top]{margin-top:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=top]:before{bottom:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=top]:after{bottom:-6px}.components-popover:not(.is-without-arrow)[data-y-axis=top]:after,.components-popover:not(.is-without-arrow)[data-y-axis=top]:before{border-bottom:none;border-left-color:transparent;border-right-color:transparent;border-top-style:solid;margin-left:-10px}.components-popover:not(.is-without-arrow)[data-y-axis=bottom]{margin-top:8px}.components-popover:not(.is-without-arrow)[data-y-axis=bottom]:before{top:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=bottom]:after{top:-6px}.components-popover:not(.is-without-arrow)[data-y-axis=bottom]:after,.components-popover:not(.is-without-arrow)[data-y-axis=bottom]:before{border-bottom-style:solid;border-left-color:transparent;border-right-color:transparent;border-top:none;margin-left:-10px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=left]{margin-left:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=left]:before{right:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=left]:after{right:-6px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=left]:after,.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=left]:before{border-bottom-color:transparent;border-left-style:solid;border-right:none;border-top-color:transparent}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=right]{margin-left:8px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=right]:before{left:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=right]:after{left:-6px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=right]:after,.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=right]:before{border-bottom-color:transparent;border-left:none;border-right-style:solid;border-top-color:transparent}.components-popover[data-y-axis=top]{bottom:100%}.components-popover[data-y-axis=bottom]{top:100%}.components-popover[data-y-axis=middle]{align-items:center;display:flex}.components-popover.is-from-top{margin-top:12px}.components-popover.is-from-bottom{margin-top:-12px}.components-popover.is-from-left:not(.is-from-top):not(.is-from-bottom){margin-left:12px}.components-popover.is-from-right:not(.is-from-top):not(.is-from-bottom){margin-right:12px}.components-popover__content{height:100%;background:#fff;border:1px solid #ccc;box-shadow:0 2px 6px rgba(0,0,0,.05);border-radius:2px}.is-alternate .components-popover__content{border:1px solid #1e1e1e;box-shadow:none}.components-popover .components-popover__content{position:absolute;height:auto;overflow-y:auto;min-width:260px}.components-popover.is-expanded .components-popover__content{position:static;height:calc(100% - 48px);overflow-y:visible;min-width:auto;border:none;border-top:1px solid #1e1e1e}.components-popover[data-y-axis=top] .components-popover__content{bottom:100%}.components-popover[data-x-axis=center] .components-popover__content{left:50%;transform:translateX(-50%)}.components-popover[data-x-axis=right] .components-popover__content{position:absolute;left:100%}.components-popover:not([data-y-axis=middle])[data-x-axis=right] .components-popover__content{margin-left:-25px}.components-popover[data-x-axis=left] .components-popover__content{position:absolute;right:100%}.components-popover:not([data-y-axis=middle])[data-x-axis=left] .components-popover__content{margin-right:-25px}.components-popover__header{align-items:center;background:#fff;display:flex;height:48px;justify-content:space-between;padding:0 8px 0 16px}.components-popover__header-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.components-popover__close.components-button{z-index:5} -/*!rtl:end:ignore*/.components-radio-control{display:flex;flex-direction:column}.components-radio-control .components-base-control__help{margin-top:0}.components-radio-control .components-base-control__field{margin-bottom:0}.components-radio-control__option:not(:last-child){margin-bottom:4px}.components-radio-control__input[type=radio]{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;font-size:16px;line-height:normal;border:1px solid #1e1e1e;transition:none;border-radius:50%;margin-top:0;margin-right:6px}@media (prefers-reduced-motion:reduce){.components-radio-control__input[type=radio]{transition-duration:0s}}@media (min-width:600px){.components-radio-control__input[type=radio]{font-size:13px;line-height:normal}}.components-radio-control__input[type=radio]: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)}.components-radio-control__input[type=radio]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-radio-control__input[type=radio]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-radio-control__input[type=radio]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-radio-control__input[type=radio]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-radio-control__input[type=radio]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-radio-control__input[type=radio]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-radio-control__input[type=radio]:checked:before{width:7px;height:7px;margin:8px 0 0 8px;background-color:#fff;border:3px solid #fff}@media (min-width:782px){.components-radio-control__input[type=radio]:checked:before{width:6px;height:6px;margin:4px 0 0 4px}}.components-radio-control__input[type=radio]:focus{box-shadow:0 0 0 2px #fff,0 0 0 3.5px #007cba;box-shadow:0 0 0 2px #fff,0 0 0 3.5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-radio-control__input[type=radio]:checked{background:#007cba;background:var(--wp-admin-theme-color);border-color:#007cba;border-color:var(--wp-admin-theme-color)}.components-resizable-box__handle{display:none;width:23px;height:23px}.components-resizable-box__container.has-show-handle .components-resizable-box__handle{display:block}.components-resizable-box__handle:after{display:block;content:"";width:15px;height:15px;border:2px solid #fff;border-radius:50%;background:#007cba;background:var(--wp-admin-theme-color);cursor:inherit;position:absolute;top:calc(50% - 8px);right:calc(50% - 8px)}.components-resizable-box__side-handle:before{display:block;content:"";width:7px;height:7px;border:2px solid #fff;background:#007cba;background:var(--wp-admin-theme-color);cursor:inherit;position:absolute;top:calc(50% - 4px);right:calc(50% - 4px);transition:transform .1s ease-in;opacity:0}@media (prefers-reduced-motion:reduce){.components-resizable-box__side-handle:before{transition-duration:0s}}.is-dark-theme .components-resizable-box__handle:after,.is-dark-theme .components-resizable-box__side-handle:before{border-color:#ddd}.components-resizable-box__corner-handle,.components-resizable-box__handle,.components-resizable-box__side-handle{z-index:2}.components-resizable-box__side-handle.components-resizable-box__handle-bottom,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:before,.components-resizable-box__side-handle.components-resizable-box__handle-top,.components-resizable-box__side-handle.components-resizable-box__handle-top:before{width:100%;left:0;border-left:0;border-right:0}.components-resizable-box__side-handle.components-resizable-box__handle-left,.components-resizable-box__side-handle.components-resizable-box__handle-left:before,.components-resizable-box__side-handle.components-resizable-box__handle-right,.components-resizable-box__side-handle.components-resizable-box__handle-right:before{height:100%;top:0;border-top:0;border-bottom:0}.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation:components-resizable-box__top-bottom-animation .1s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation-duration:1ms}}.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before{animation:components-resizable-box__left-right-animation .1s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before{animation-duration:1ms}}@media not all and (min-resolution:0.001dpcm){@supports (-webkit-appearance:none){.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation:none}.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before{animation:none}}}@keyframes components-resizable-box__top-bottom-animation{0%{transform:scaleX(0);opacity:0}to{transform:scaleX(1);opacity:1}}@keyframes components-resizable-box__left-right-animation{0%{transform:scaleY(0);opacity:0}to{transform:scaleY(1);opacity:1}} +/*!rtl:end:ignore*/.components-radio-control{display:flex;flex-direction:column}.components-radio-control .components-base-control__help{margin-top:0}.components-radio-control .components-base-control__field{margin-bottom:0}.components-radio-control__option:not(:last-child){margin-bottom:4px}.components-radio-control__input[type=radio]{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;font-size:16px;line-height:normal;border:1px solid #1e1e1e;transition:none;border-radius:50%;margin-top:0;margin-right:6px}@media (prefers-reduced-motion:reduce){.components-radio-control__input[type=radio]{transition-duration:0s}}@media (min-width:600px){.components-radio-control__input[type=radio]{font-size:13px;line-height:normal}}.components-radio-control__input[type=radio]: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)}.components-radio-control__input[type=radio]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-radio-control__input[type=radio]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-radio-control__input[type=radio]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-radio-control__input[type=radio]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-radio-control__input[type=radio]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-radio-control__input[type=radio]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-radio-control__input[type=radio]:checked:before{width:7px;height:7px;margin:8px 0 0 8px;background-color:#fff;border:3px solid #fff}@media (min-width:782px){.components-radio-control__input[type=radio]:checked:before{width:6px;height:6px;margin:4px 0 0 4px}}.components-radio-control__input[type=radio]:focus{box-shadow:0 0 0 2px #fff,0 0 0 3.5px #007cba;box-shadow:0 0 0 2px #fff,0 0 0 3.5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-radio-control__input[type=radio]:checked{background:#007cba;background:var(--wp-admin-theme-color);border-color:#007cba;border-color:var(--wp-admin-theme-color)}.components-resizable-box__handle{display:none;width:23px;height:23px;z-index:2}.components-resizable-box__container.has-show-handle .components-resizable-box__handle{display:block}.components-resizable-box__handle:after{display:block;content:"";width:15px;height:15px;border:2px solid #fff;border-radius:50%;background:#007cba;background:var(--wp-admin-theme-color);cursor:inherit;position:absolute;top:calc(50% - 8px);right:calc(50% - 8px)}.components-resizable-box__side-handle:before{display:block;content:"";width:7px;height:7px;border:2px solid #fff;background:#007cba;background:var(--wp-admin-theme-color);cursor:inherit;position:absolute;top:calc(50% - 4px);right:calc(50% - 4px);transition:transform .1s ease-in;opacity:0}@media (prefers-reduced-motion:reduce){.components-resizable-box__side-handle:before{transition-duration:0s}}.is-dark-theme .components-resizable-box__handle:after,.is-dark-theme .components-resizable-box__side-handle:before{border-color:#ddd}.components-resizable-box__corner-handle,.components-resizable-box__side-handle{z-index:2}.components-resizable-box__side-handle.components-resizable-box__handle-bottom,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:before,.components-resizable-box__side-handle.components-resizable-box__handle-top,.components-resizable-box__side-handle.components-resizable-box__handle-top:before{width:100%;left:0;border-left:0;border-right:0}.components-resizable-box__side-handle.components-resizable-box__handle-left,.components-resizable-box__side-handle.components-resizable-box__handle-left:before,.components-resizable-box__side-handle.components-resizable-box__handle-right,.components-resizable-box__side-handle.components-resizable-box__handle-right:before{height:100%;top:0;border-top:0;border-bottom:0}.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation:components-resizable-box__top-bottom-animation .1s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation-duration:1ms}}.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before{animation:components-resizable-box__left-right-animation .1s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before{animation-duration:1ms}}@media not all and (min-resolution:0.001dpcm){@supports (-webkit-appearance:none){.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation:none}.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before{animation:none}}}@keyframes components-resizable-box__top-bottom-animation{0%{transform:scaleX(0);opacity:0}to{transform:scaleX(1);opacity:1}}@keyframes components-resizable-box__left-right-animation{0%{transform:scaleY(0);opacity:0}to{transform:scaleY(1);opacity:1}} /*!rtl:begin:ignore*/.components-resizable-box__handle-right{right:-11.5px}.components-resizable-box__handle-left{left:-11.5px}.components-resizable-box__handle-top{top:-11.5px}.components-resizable-box__handle-bottom{bottom:-11.5px} -/*!rtl:end:ignore*/.components-responsive-wrapper{position:relative;max-width:100%}.components-responsive-wrapper,.components-responsive-wrapper>span{display:block}.components-responsive-wrapper__content{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;margin:auto}.components-sandbox{overflow:hidden}iframe.components-sandbox{width:100%}body.lockscroll,html.lockscroll{overflow:hidden}.components-select-control__input{background:#fff;height:36px;line-height:36px;margin:1px;outline:0;width:100%;-webkit-tap-highlight-color:rgba(0,0,0,0)!important}@media (min-width:782px){.components-select-control__input{height:28px;line-height:28px}}@media (max-width:782px){.components-base-control .components-base-control__field .components-select-control__input{font-size:16px}}.components-snackbar{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;background-color:#1e1e1e;border-radius:2px;box-shadow:0 2px 4px rgba(0,0,0,.3);color:#fff;padding:16px 24px;width:100%;max-width:600px;box-sizing:border-box;cursor:pointer}@media (min-width:600px){.components-snackbar{width:fit-content}}.components-snackbar:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px #007cba;box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color)}.components-snackbar__action.components-button{margin-left:32px;color:#fff;height:auto;flex-shrink:0;line-height:1.4;padding:0}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary){text-decoration:underline;background-color:transparent}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):focus{color:#fff;box-shadow:none;outline:1px dotted #fff}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{color:#007cba;color:var(--wp-admin-theme-color)}.components-snackbar__content{display:flex;align-items:baseline;justify-content:space-between;line-height:1.4}.components-snackbar-list{position:absolute;z-index:100000;width:100%;box-sizing:border-box}.components-snackbar-list__notice-container{position:relative;padding-top:8px}.components-spinner{display:inline-block;background-color:#949494;width:18px;height:18px;opacity:.7;margin:5px 11px 0;border-radius:100%;position:relative}.components-spinner:before{content:"";position:absolute;background-color:#fff;top:3px;left:3px;width:4px;height:4px;border-radius:100%;transform-origin:6px 6px;animation:components-spinner__animation 1s linear infinite}@keyframes components-spinner__animation{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.components-tab-panel__tabs{display:flex;align-items:stretch}.components-tab-panel__tabs-item{background:transparent;border:none;box-shadow:none;border-radius:0;cursor:pointer;height:48px;padding:3px 16px;margin-left:0;font-weight:500;transition:box-shadow .1s linear;box-sizing:border-box}.components-tab-panel__tabs-item:after{content:attr(data-label);display:block;height:0;overflow:hidden;speak:none;visibility:hidden}.components-tab-panel__tabs-item:focus:not(:disabled){box-shadow:inset 0 1.5px #007cba;box-shadow:inset 0 1.5px var(--wp-admin-theme-color)}.components-tab-panel__tabs-item.is-active{box-shadow:inset 0 0 0 1.5px transparent,inset 0 -4px 0 0 #007cba;box-shadow:inset 0 0 0 1.5px transparent,inset 0 -4px 0 0 var(--wp-admin-theme-color);position:relative}.components-tab-panel__tabs-item.is-active:before{content:"";position:absolute;top:0;bottom:1px;right:0;left:0;border-bottom:4px solid transparent}.components-tab-panel__tabs-item:focus{box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color)}.components-tab-panel__tabs-item.is-active:focus{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 -4px 0 0 #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 -4px 0 0 var(--wp-admin-theme-color)}.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{width:100%;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){.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{transition-duration:0s}}@media (min-width:600px){.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{font-size:13px;line-height:normal}}.components-text-control__input:focus,.components-text-control__input[type=color]:focus,.components-text-control__input[type=date]:focus,.components-text-control__input[type=datetime-local]:focus,.components-text-control__input[type=datetime]:focus,.components-text-control__input[type=email]:focus,.components-text-control__input[type=month]:focus,.components-text-control__input[type=number]:focus,.components-text-control__input[type=password]:focus,.components-text-control__input[type=tel]:focus,.components-text-control__input[type=text]:focus,.components-text-control__input[type=time]:focus,.components-text-control__input[type=url]:focus,.components-text-control__input[type=week]: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}.components-text-control__input::-webkit-input-placeholder,.components-text-control__input[type=color]::-webkit-input-placeholder,.components-text-control__input[type=date]::-webkit-input-placeholder,.components-text-control__input[type=datetime-local]::-webkit-input-placeholder,.components-text-control__input[type=datetime]::-webkit-input-placeholder,.components-text-control__input[type=email]::-webkit-input-placeholder,.components-text-control__input[type=month]::-webkit-input-placeholder,.components-text-control__input[type=number]::-webkit-input-placeholder,.components-text-control__input[type=password]::-webkit-input-placeholder,.components-text-control__input[type=tel]::-webkit-input-placeholder,.components-text-control__input[type=text]::-webkit-input-placeholder,.components-text-control__input[type=time]::-webkit-input-placeholder,.components-text-control__input[type=url]::-webkit-input-placeholder,.components-text-control__input[type=week]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-text-control__input::-moz-placeholder,.components-text-control__input[type=color]::-moz-placeholder,.components-text-control__input[type=date]::-moz-placeholder,.components-text-control__input[type=datetime-local]::-moz-placeholder,.components-text-control__input[type=datetime]::-moz-placeholder,.components-text-control__input[type=email]::-moz-placeholder,.components-text-control__input[type=month]::-moz-placeholder,.components-text-control__input[type=number]::-moz-placeholder,.components-text-control__input[type=password]::-moz-placeholder,.components-text-control__input[type=tel]::-moz-placeholder,.components-text-control__input[type=text]::-moz-placeholder,.components-text-control__input[type=time]::-moz-placeholder,.components-text-control__input[type=url]::-moz-placeholder,.components-text-control__input[type=week]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-text-control__input:-ms-input-placeholder,.components-text-control__input[type=color]:-ms-input-placeholder,.components-text-control__input[type=date]:-ms-input-placeholder,.components-text-control__input[type=datetime-local]:-ms-input-placeholder,.components-text-control__input[type=datetime]:-ms-input-placeholder,.components-text-control__input[type=email]:-ms-input-placeholder,.components-text-control__input[type=month]:-ms-input-placeholder,.components-text-control__input[type=number]:-ms-input-placeholder,.components-text-control__input[type=password]:-ms-input-placeholder,.components-text-control__input[type=tel]:-ms-input-placeholder,.components-text-control__input[type=text]:-ms-input-placeholder,.components-text-control__input[type=time]:-ms-input-placeholder,.components-text-control__input[type=url]:-ms-input-placeholder,.components-text-control__input[type=week]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-text-control__input::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=color]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=date]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=datetime-local]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=datetime]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=email]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=month]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=number]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=password]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=tel]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=text]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=time]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=url]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=week]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-text-control__input::-moz-placeholder,.is-dark-theme .components-text-control__input[type=color]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=date]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=datetime-local]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=datetime]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=email]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=month]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=number]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=password]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=tel]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=text]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=time]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=url]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=week]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-text-control__input:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=color]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=date]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=datetime-local]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=datetime]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=email]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=month]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=number]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=password]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=tel]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=text]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=time]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=url]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=week]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-textarea-control__input{width:100%;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){.components-textarea-control__input{transition-duration:0s}}@media (min-width:600px){.components-textarea-control__input{font-size:13px;line-height:normal}}.components-textarea-control__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}.components-textarea-control__input::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-textarea-control__input::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-textarea-control__input:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-textarea-control__input::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-textarea-control__input::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-textarea-control__input:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-tip{display:flex;color:#757575}.components-tip svg{-ms-grid-row-align:center;align-self:center;fill:#f0b849;flex-shrink:0;margin-right:16px}.components-tip p{margin:0}.components-toggle-control .components-base-control__field{display:flex;margin-bottom:12px;line-height:normal;align-items:center}.components-toggle-control .components-base-control__field .components-form-toggle{margin-right:12px}.components-toggle-control .components-base-control__field .components-toggle-control__label{display:block}.components-accessible-toolbar{display:inline-flex;border:1px solid #1e1e1e;border-radius:2px;flex-shrink:0}.components-accessible-toolbar>.components-toolbar-group:last-child{border-right:none}.components-accessible-toolbar .components-button,.components-toolbar .components-button{position:relative;height:48px;z-index:1;padding-left:16px;padding-right:16px}.components-accessible-toolbar .components-button:focus:enabled,.components-toolbar .components-button:focus:enabled{box-shadow:none;outline:none}.components-accessible-toolbar .components-button:before,.components-toolbar .components-button:before{content:"";position:absolute;display:block;border-radius:2px;height:32px;left:8px;right:8px;z-index:-1;animation:components-button__appear-animation .1s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-accessible-toolbar .components-button:before,.components-toolbar .components-button:before{animation-duration:1ms}}.components-accessible-toolbar .components-button svg,.components-toolbar .components-button svg{position:relative;margin-left:auto;margin-right:auto}.components-accessible-toolbar .components-button.is-pressed,.components-toolbar .components-button.is-pressed{background:transparent}.components-accessible-toolbar .components-button.is-pressed:hover,.components-toolbar .components-button.is-pressed:hover{background:transparent}.components-accessible-toolbar .components-button.is-pressed:before,.components-toolbar .components-button.is-pressed:before{background:#1e1e1e}.components-accessible-toolbar .components-button:focus:before,.components-toolbar .components-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}.components-accessible-toolbar .components-button.has-icon,.components-toolbar .components-button.has-icon{padding-left:8px;padding-right:8px;min-width:48px;justify-content:center}.components-accessible-toolbar .components-button.components-tab-button,.components-toolbar .components-button.components-tab-button{font-weight:500}.components-accessible-toolbar .components-button.components-tab-button span,.components-toolbar .components-button.components-tab-button span{display:inline-block;padding-left:0;padding-right:0;position:relative}@keyframes components-button__appear-animation{0%{transform:scaleY(0)}to{transform:scaleY(1)}}.components-toolbar__control.components-button{position:relative}.components-toolbar__control.components-button[data-subscript] svg{padding:5px 10px 5px 0}.components-toolbar__control.components-button[data-subscript]:after{content:attr(data-subscript);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:600;line-height:12px;position:absolute;right:8px;bottom:10px}.components-toolbar__control.components-button:active:before{display:none}.components-toolbar__control.components-button:not(:disabled).is-pressed[data-subscript]:after{color:#fff}.components-toolbar-group{min-height:48px;border-right:1px solid #1e1e1e;background-color:#fff;display:inline-flex;flex-shrink:0;flex-wrap:wrap;line-height:0}.components-toolbar-group .components-toolbar-group.components-toolbar-group{border-width:0;margin:0}.components-toolbar{min-height:48px;margin:0;border:1px solid #1e1e1e;background-color:#fff;display:inline-flex;flex-shrink:0;flex-wrap:wrap}.components-toolbar .components-toolbar.components-toolbar{border-width:0;margin:0}div.components-toolbar>div{display:block;margin:0}@supports ((position:-webkit-sticky) or (position:sticky)){div.components-toolbar>div{display:flex}}div.components-toolbar>div+div.has-left-divider{margin-left:6px;position:relative;overflow:visible}div.components-toolbar>div+div.has-left-divider:before{display:inline-block;content:"";box-sizing:content-box;background-color:#ddd;position:absolute;top:8px;left:-3px;width:1px;height:20px}.components-accessible-toolbar .components-toolbar-group>.components-button.components-button.has-icon,.components-toolbar div>.components-button.components-button.has-icon{min-width:36px;padding-left:6px;padding-right:6px}.components-accessible-toolbar .components-toolbar-group>.components-button.components-button.has-icon svg,.components-toolbar div>.components-button.components-button.has-icon svg{min-width:24px}.components-accessible-toolbar .components-toolbar-group>.components-button.components-button.has-icon:before,.components-toolbar div>.components-button.components-button.has-icon:before{left:2px;right:2px}.components-accessible-toolbar .components-toolbar-group>.components-button:first-child.has-icon,.components-accessible-toolbar .components-toolbar-group>div:first-child>.components-button.has-icon,.components-toolbar div:first-child .components-button.has-icon{min-width:42px;padding-left:11px;padding-right:6px}.components-accessible-toolbar .components-toolbar-group>.components-button:first-child.has-icon:before,.components-accessible-toolbar .components-toolbar-group>div:first-child>.components-button.has-icon:before,.components-toolbar div:first-child .components-button.has-icon:before{left:8px;right:2px}.components-accessible-toolbar .components-toolbar-group>.components-button:last-of-type.has-icon,.components-accessible-toolbar .components-toolbar-group>div:last-child>.components-button.has-icon,.components-toolbar div:last-child .components-button.has-icon{min-width:42px;padding-left:6px;padding-right:11px}.components-accessible-toolbar .components-toolbar-group>.components-button:last-of-type.has-icon:before,.components-accessible-toolbar .components-toolbar-group>div:last-child>.components-button.has-icon:before,.components-toolbar div:last-child .components-button.has-icon:before{left:2px;right:8px}.components-accessible-toolbar .components-toolbar-group>.components-button:first-of-type:last-of-type.has-icon,.components-accessible-toolbar .components-toolbar-group>div:first-child:last-child>.components-button.has-icon,.components-toolbar div:first-child:last-child>.components-button.has-icon{min-width:48px;padding-left:12px;padding-right:12px}.components-accessible-toolbar .components-toolbar-group>.components-button:first-of-type:last-of-type.has-icon:before,.components-accessible-toolbar .components-toolbar-group>div:first-child:last-child>.components-button.has-icon:before,.components-toolbar div:first-child:last-child>.components-button.has-icon:before{left:8px;right:8px}.components-tooltip.components-popover{z-index:1000002}.components-tooltip.components-popover .components-popover__content{min-width:0}.components-tooltip .components-popover__content{background:#1e1e1e;border-radius:2px;border-width:0;color:#fff;white-space:nowrap;text-align:center;line-height:1.4;font-size:12px;box-shadow:none}.components-tooltip .components-popover__content>div{padding:4px 8px}.components-tooltip__shortcut{display:inline-block;margin-left:8px}.components-visually-hidden{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}.components-visually-hidden:focus{background-color:#ddd;clip:auto!important;-webkit-clip-path:none;clip-path:none;color:#444;display:block;font-size:1em;height:auto;left:5px;line-height:normal;padding:15px 23px 14px;text-decoration:none;top:5px;width:auto;z-index:100000} \ No newline at end of file +/*!rtl:end:ignore*/.components-responsive-wrapper{position:relative;max-width:100%}.components-responsive-wrapper,.components-responsive-wrapper>span{display:block}.components-responsive-wrapper__content{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;margin:auto}.components-sandbox{overflow:hidden}iframe.components-sandbox{width:100%}body.lockscroll,html.lockscroll{overflow:hidden}.components-select-control__input{background:#fff;height:36px;line-height:36px;margin:1px;outline:0;width:100%;-webkit-tap-highlight-color:rgba(0,0,0,0)!important}@media (min-width:782px){.components-select-control__input{height:28px;line-height:28px}}@media (max-width:782px){.components-base-control .components-base-control__field .components-select-control__input{font-size:16px}}.components-snackbar{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;background-color:#1e1e1e;border-radius:2px;box-shadow:0 2px 4px rgba(0,0,0,.3);color:#fff;padding:16px 24px;width:100%;max-width:600px;box-sizing:border-box;cursor:pointer}@media (min-width:600px){.components-snackbar{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}}.components-snackbar:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px #007cba;box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color)}.components-snackbar__action.components-button{margin-left:32px;color:#fff;height:auto;flex-shrink:0;line-height:1.4;padding:0}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary){text-decoration:underline;background-color:transparent}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):focus{color:#fff;box-shadow:none;outline:1px dotted #fff}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{color:#007cba;color:var(--wp-admin-theme-color)}.components-snackbar__content{display:flex;align-items:baseline;justify-content:space-between;line-height:1.4}.components-snackbar-list{position:absolute;z-index:100000;width:100%;box-sizing:border-box}.components-snackbar-list__notice-container{position:relative;padding-top:8px}.components-spinner{display:inline-block;background-color:#949494;width:18px;height:18px;opacity:.7;margin:5px 11px 0;border-radius:100%;position:relative}.components-spinner:before{content:"";position:absolute;background-color:#fff;top:3px;left:3px;width:4px;height:4px;border-radius:100%;transform-origin:6px 6px;animation:components-spinner__animation 1s linear infinite}@keyframes components-spinner__animation{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.components-tab-panel__tabs{display:flex;align-items:stretch}.components-tab-panel__tabs-item{background:transparent;border:none;box-shadow:none;border-radius:0;cursor:pointer;height:48px;padding:3px 16px;margin-left:0;font-weight:500;transition:box-shadow .1s linear;box-sizing:border-box}.components-tab-panel__tabs-item:after{content:attr(data-label);display:block;height:0;overflow:hidden;speak:none;visibility:hidden}.components-tab-panel__tabs-item:focus:not(:disabled){box-shadow:inset 0 1.5px #007cba;box-shadow:inset 0 1.5px var(--wp-admin-theme-color)}.components-tab-panel__tabs-item.is-active{box-shadow:inset 0 0 0 1.5px transparent,inset 0 -4px 0 0 #007cba;box-shadow:inset 0 0 0 1.5px transparent,inset 0 -4px 0 0 var(--wp-admin-theme-color);position:relative}.components-tab-panel__tabs-item.is-active:before{content:"";position:absolute;top:0;bottom:1px;right:0;left:0;border-bottom:4px solid transparent}.components-tab-panel__tabs-item:focus{box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color)}.components-tab-panel__tabs-item.is-active:focus{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 -4px 0 0 #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 -4px 0 0 var(--wp-admin-theme-color)}.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{width:100%;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){.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{transition-duration:0s}}@media (min-width:600px){.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{font-size:13px;line-height:normal}}.components-text-control__input:focus,.components-text-control__input[type=color]:focus,.components-text-control__input[type=date]:focus,.components-text-control__input[type=datetime-local]:focus,.components-text-control__input[type=datetime]:focus,.components-text-control__input[type=email]:focus,.components-text-control__input[type=month]:focus,.components-text-control__input[type=number]:focus,.components-text-control__input[type=password]:focus,.components-text-control__input[type=tel]:focus,.components-text-control__input[type=text]:focus,.components-text-control__input[type=time]:focus,.components-text-control__input[type=url]:focus,.components-text-control__input[type=week]: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}.components-text-control__input::-webkit-input-placeholder,.components-text-control__input[type=color]::-webkit-input-placeholder,.components-text-control__input[type=date]::-webkit-input-placeholder,.components-text-control__input[type=datetime-local]::-webkit-input-placeholder,.components-text-control__input[type=datetime]::-webkit-input-placeholder,.components-text-control__input[type=email]::-webkit-input-placeholder,.components-text-control__input[type=month]::-webkit-input-placeholder,.components-text-control__input[type=number]::-webkit-input-placeholder,.components-text-control__input[type=password]::-webkit-input-placeholder,.components-text-control__input[type=tel]::-webkit-input-placeholder,.components-text-control__input[type=text]::-webkit-input-placeholder,.components-text-control__input[type=time]::-webkit-input-placeholder,.components-text-control__input[type=url]::-webkit-input-placeholder,.components-text-control__input[type=week]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-text-control__input::-moz-placeholder,.components-text-control__input[type=color]::-moz-placeholder,.components-text-control__input[type=date]::-moz-placeholder,.components-text-control__input[type=datetime-local]::-moz-placeholder,.components-text-control__input[type=datetime]::-moz-placeholder,.components-text-control__input[type=email]::-moz-placeholder,.components-text-control__input[type=month]::-moz-placeholder,.components-text-control__input[type=number]::-moz-placeholder,.components-text-control__input[type=password]::-moz-placeholder,.components-text-control__input[type=tel]::-moz-placeholder,.components-text-control__input[type=text]::-moz-placeholder,.components-text-control__input[type=time]::-moz-placeholder,.components-text-control__input[type=url]::-moz-placeholder,.components-text-control__input[type=week]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-text-control__input:-ms-input-placeholder,.components-text-control__input[type=color]:-ms-input-placeholder,.components-text-control__input[type=date]:-ms-input-placeholder,.components-text-control__input[type=datetime-local]:-ms-input-placeholder,.components-text-control__input[type=datetime]:-ms-input-placeholder,.components-text-control__input[type=email]:-ms-input-placeholder,.components-text-control__input[type=month]:-ms-input-placeholder,.components-text-control__input[type=number]:-ms-input-placeholder,.components-text-control__input[type=password]:-ms-input-placeholder,.components-text-control__input[type=tel]:-ms-input-placeholder,.components-text-control__input[type=text]:-ms-input-placeholder,.components-text-control__input[type=time]:-ms-input-placeholder,.components-text-control__input[type=url]:-ms-input-placeholder,.components-text-control__input[type=week]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-text-control__input::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=color]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=date]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=datetime-local]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=datetime]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=email]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=month]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=number]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=password]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=tel]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=text]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=time]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=url]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=week]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-text-control__input::-moz-placeholder,.is-dark-theme .components-text-control__input[type=color]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=date]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=datetime-local]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=datetime]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=email]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=month]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=number]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=password]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=tel]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=text]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=time]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=url]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=week]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-text-control__input:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=color]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=date]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=datetime-local]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=datetime]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=email]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=month]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=number]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=password]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=tel]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=text]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=time]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=url]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=week]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-tip{display:flex;color:#757575}.components-tip svg{-ms-grid-row-align:center;align-self:center;fill:#f0b849;flex-shrink:0;margin-right:16px}.components-tip p{margin:0}.components-toggle-control .components-base-control__field{display:flex;margin-bottom:12px;line-height:normal;align-items:center}.components-toggle-control .components-base-control__field .components-form-toggle{margin-right:12px}.components-toggle-control .components-base-control__field .components-toggle-control__label{display:block}.components-accessible-toolbar{display:inline-flex;border:1px solid #1e1e1e;border-radius:2px;flex-shrink:0}.components-accessible-toolbar>.components-toolbar-group:last-child{border-right:none}.components-accessible-toolbar .components-button,.components-toolbar .components-button{position:relative;height:48px;z-index:1;padding-left:16px;padding-right:16px}.components-accessible-toolbar .components-button:focus:enabled,.components-toolbar .components-button:focus:enabled{box-shadow:none;outline:none}.components-accessible-toolbar .components-button:before,.components-toolbar .components-button:before{content:"";position:absolute;display:block;border-radius:2px;height:32px;left:8px;right:8px;z-index:-1;animation:components-button__appear-animation .1s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-accessible-toolbar .components-button:before,.components-toolbar .components-button:before{animation-duration:1ms}}.components-accessible-toolbar .components-button svg,.components-toolbar .components-button svg{position:relative;margin-left:auto;margin-right:auto}.components-accessible-toolbar .components-button.is-pressed,.components-toolbar .components-button.is-pressed{background:transparent}.components-accessible-toolbar .components-button.is-pressed:hover,.components-toolbar .components-button.is-pressed:hover{background:transparent}.components-accessible-toolbar .components-button.is-pressed:before,.components-toolbar .components-button.is-pressed:before{background:#1e1e1e}.components-accessible-toolbar .components-button:focus:before,.components-toolbar .components-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}.components-accessible-toolbar .components-button.has-icon,.components-toolbar .components-button.has-icon{padding-left:8px;padding-right:8px;min-width:48px;justify-content:center}.components-accessible-toolbar .components-button.components-tab-button,.components-toolbar .components-button.components-tab-button{font-weight:500}.components-accessible-toolbar .components-button.components-tab-button span,.components-toolbar .components-button.components-tab-button span{display:inline-block;padding-left:0;padding-right:0;position:relative}@keyframes components-button__appear-animation{0%{transform:scaleY(0)}to{transform:scaleY(1)}}.components-toolbar__control.components-button{position:relative}.components-toolbar__control.components-button[data-subscript] svg{padding:5px 10px 5px 0}.components-toolbar__control.components-button[data-subscript]:after{content:attr(data-subscript);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:600;line-height:12px;position:absolute;right:8px;bottom:10px}.components-toolbar__control.components-button:active:before{display:none}.components-toolbar__control.components-button:not(:disabled).is-pressed[data-subscript]:after{color:#fff}.components-toolbar-group{min-height:48px;border-right:1px solid #1e1e1e;background-color:#fff;display:inline-flex;flex-shrink:0;flex-wrap:wrap;line-height:0}.components-toolbar-group .components-toolbar-group.components-toolbar-group{border-width:0;margin:0}.components-toolbar{min-height:48px;margin:0;border:1px solid #1e1e1e;background-color:#fff;display:inline-flex;flex-shrink:0;flex-wrap:wrap}.components-toolbar .components-toolbar.components-toolbar{border-width:0;margin:0}div.components-toolbar>div{display:block;margin:0}@supports ((position:-webkit-sticky) or (position:sticky)){div.components-toolbar>div{display:flex}}div.components-toolbar>div+div.has-left-divider{margin-left:6px;position:relative;overflow:visible}div.components-toolbar>div+div.has-left-divider:before{display:inline-block;content:"";box-sizing:content-box;background-color:#ddd;position:absolute;top:8px;left:-3px;width:1px;height:20px}.components-accessible-toolbar .components-toolbar-group>.components-button.components-button.has-icon,.components-toolbar div>.components-button.components-button.has-icon{min-width:36px;padding-left:6px;padding-right:6px}.components-accessible-toolbar .components-toolbar-group>.components-button.components-button.has-icon svg,.components-toolbar div>.components-button.components-button.has-icon svg{min-width:24px}.components-accessible-toolbar .components-toolbar-group>.components-button.components-button.has-icon:before,.components-toolbar div>.components-button.components-button.has-icon:before{left:2px;right:2px}.components-accessible-toolbar .components-toolbar-group>.components-button:first-child.has-icon,.components-accessible-toolbar .components-toolbar-group>div:first-child>.components-button.has-icon,.components-toolbar div:first-child .components-button.has-icon{min-width:42px;padding-left:11px;padding-right:6px}.components-accessible-toolbar .components-toolbar-group>.components-button:first-child.has-icon:before,.components-accessible-toolbar .components-toolbar-group>div:first-child>.components-button.has-icon:before,.components-toolbar div:first-child .components-button.has-icon:before{left:8px;right:2px}.components-accessible-toolbar .components-toolbar-group>.components-button:last-of-type.has-icon,.components-accessible-toolbar .components-toolbar-group>div:last-child>.components-button.has-icon,.components-toolbar div:last-child .components-button.has-icon{min-width:42px;padding-left:6px;padding-right:11px}.components-accessible-toolbar .components-toolbar-group>.components-button:last-of-type.has-icon:before,.components-accessible-toolbar .components-toolbar-group>div:last-child>.components-button.has-icon:before,.components-toolbar div:last-child .components-button.has-icon:before{left:2px;right:8px}.components-accessible-toolbar .components-toolbar-group>.components-button:first-of-type:last-of-type.has-icon,.components-accessible-toolbar .components-toolbar-group>div:first-child:last-child>.components-button.has-icon,.components-toolbar div:first-child:last-child>.components-button.has-icon{min-width:48px;padding-left:12px;padding-right:12px}.components-accessible-toolbar .components-toolbar-group>.components-button:first-of-type:last-of-type.has-icon:before,.components-accessible-toolbar .components-toolbar-group>div:first-child:last-child>.components-button.has-icon:before,.components-toolbar div:first-child:last-child>.components-button.has-icon:before{left:8px;right:8px}.components-tooltip.components-popover{z-index:1000002}.components-tooltip.components-popover .components-popover__content{min-width:0}.components-tooltip .components-popover__content{background:#1e1e1e;border-radius:2px;border-width:0;color:#fff;white-space:nowrap;text-align:center;line-height:1.4;font-size:12px;box-shadow:none}.components-tooltip .components-popover__content>div{padding:4px 8px}.components-tooltip__shortcut{display:inline-block;margin-left:8px}.components-visually-hidden{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}.components-visually-hidden:focus{background-color:#ddd;clip:auto!important;-webkit-clip-path:none;clip-path:none;color:#444;display:block;font-size:1em;height:auto;left:5px;line-height:normal;padding:15px 23px 14px;text-decoration:none;top:5px;width:auto;z-index:100000} \ No newline at end of file diff --git a/wp-includes/css/dist/edit-post/style-rtl.css b/wp-includes/css/dist/edit-post/style-rtl.css index f577a590a6..ec55ba9d87 100644 --- a/wp-includes/css/dist/edit-post/style-rtl.css +++ b/wp-includes/css/dist/edit-post/style-rtl.css @@ -175,7 +175,7 @@ html.interface-interface-skeleton__html-container { .interface-interface-skeleton { display: flex; - flex-direction: column; + flex-direction: row; height: auto; max-height: 100%; position: fixed; @@ -189,6 +189,11 @@ html.interface-interface-skeleton__html-container { .is-fullscreen-mode .interface-interface-skeleton { top: 0; } } +.interface-interface-skeleton__editor { + display: flex; + flex-direction: column; + flex-grow: 1; } + .interface-interface-skeleton { /* Set left position when auto-fold is not on the body element. */ right: 0; } @@ -284,6 +289,11 @@ body.is-fullscreen-mode .interface-interface-skeleton { flex-shrink: 0; border-top: 1px solid #e0e0e0; color: #1e1e1e; + position: fixed; + bottom: 0; + width: 100%; + background-color: #fff; + z-index: 90; display: none; } @media (min-width: 782px) { .interface-interface-skeleton__footer { @@ -336,11 +346,7 @@ body.is-fullscreen-mode .interface-interface-skeleton { .edit-post-header__toolbar { display: flex; - flex-grow: 1; - padding-right: 8px; } - @media (min-width: 600px) { - .edit-post-header__toolbar { - padding-right: 24px; } } + flex-grow: 1; } .edit-post-header__toolbar .table-of-contents { display: none; } @media (min-width: 600px) { @@ -351,29 +357,26 @@ body.is-fullscreen-mode .interface-interface-skeleton { display: inline-flex; align-items: center; flex-wrap: wrap; - padding-left: 4px; } + padding-left: 4px; + /** + * Buttons in the Toolbar + */ } @media (min-width: 600px) { .edit-post-header__settings { padding-left: 16px; } } - -/** - * Buttons in the Toolbar - */ -.edit-post-header__settings .editor-post-saved-state, -.edit-post-header__settings .components-button.components-button { - margin-left: 4px; } - @media (min-width: 600px) { - .edit-post-header__settings .editor-post-saved-state, - .edit-post-header__settings .components-button.components-button { - margin-left: 12px; } } - -.edit-post-header__settings .editor-post-saved-state, -.edit-post-header__settings .components-button.is-tertiary { - padding: 0 6px; } - -.edit-post-header__settings .edit-post-more-menu .components-button, -.edit-post-header__settings .interface-pinned-items .components-button { - margin-left: 0; } + .edit-post-header__settings .editor-post-saved-state, + .edit-post-header__settings .components-button.components-button { + margin-left: 4px; } + @media (min-width: 600px) { + .edit-post-header__settings .editor-post-saved-state, + .edit-post-header__settings .components-button.components-button { + margin-left: 12px; } } + .edit-post-header__settings .editor-post-saved-state, + .edit-post-header__settings .components-button.is-tertiary { + padding: 0 6px; } + .edit-post-header__settings .edit-post-more-menu .components-button, + .edit-post-header__settings .interface-pinned-items .components-button { + margin-left: 0; } .edit-post-header-preview__grouping-external { display: flex; @@ -534,7 +537,8 @@ body.is-fullscreen-mode .interface-interface-skeleton { .edit-post-fullscreen-mode-close.has-icon { display: flex; align-items: center; - align-self: stretch; + -ms-grid-row-align: stretch; + align-self: stretch; border: none; background: #23282e; color: #fff; @@ -556,35 +560,46 @@ body.is-fullscreen-mode .interface-interface-skeleton { display: inline-flex; align-items: center; border: none; } - .edit-post-header-toolbar > .components-button { + .edit-post-header-toolbar .edit-post-header-toolbar__left > .components-button { display: none; } @media (min-width: 600px) { - .edit-post-header-toolbar > .components-button { + .edit-post-header-toolbar .edit-post-header-toolbar__left > .components-button { display: inline-flex; } } - .edit-post-header-toolbar > .edit-post-header-toolbar__inserter-toggle { + .edit-post-header-toolbar .edit-post-header-toolbar__left > .edit-post-header-toolbar__inserter-toggle { display: inline-flex; } .edit-post-header-toolbar .block-editor-block-navigation { display: none; } @media (min-width: 600px) { .edit-post-header-toolbar .block-editor-block-navigation { display: flex; } } - .edit-post-header-toolbar > .components-button.has-icon, - .edit-post-header-toolbar > .components-dropdown > .components-button.has-icon { + .edit-post-header-toolbar .edit-post-header-toolbar__left > .components-button.has-icon, + .edit-post-header-toolbar .edit-post-header-toolbar__left > .components-dropdown > .components-button.has-icon { height: 36px; min-width: 36px; padding: 6px; } - .edit-post-header-toolbar > .components-button.has-icon.is-pressed, - .edit-post-header-toolbar > .components-dropdown > .components-button.has-icon.is-pressed { + .edit-post-header-toolbar .edit-post-header-toolbar__left > .components-button.has-icon.is-pressed, + .edit-post-header-toolbar .edit-post-header-toolbar__left > .components-dropdown > .components-button.has-icon.is-pressed { background: #1e1e1e; } - .edit-post-header-toolbar > .components-button.has-icon:focus:not(:disabled), - .edit-post-header-toolbar > .components-dropdown > .components-button.has-icon:focus:not(:disabled) { + .edit-post-header-toolbar .edit-post-header-toolbar__left > .components-button.has-icon:focus:not(:disabled), + .edit-post-header-toolbar .edit-post-header-toolbar__left > .components-dropdown > .components-button.has-icon:focus:not(:disabled) { box-shadow: 0 0 0 1.5px #007cba, inset 0 0 0 1px #fff; box-shadow: 0 0 0 1.5px var(--wp-admin-theme-color), inset 0 0 0 1px #fff; outline: 1px solid transparent; } - .edit-post-header-toolbar > .components-button.has-icon::before, - .edit-post-header-toolbar > .components-dropdown > .components-button.has-icon::before { + .edit-post-header-toolbar .edit-post-header-toolbar__left > .components-button.has-icon::before, + .edit-post-header-toolbar .edit-post-header-toolbar__left > .components-dropdown > .components-button.has-icon::before { display: none; } +.edit-post-header-toolbar__left { + display: inline-flex; + align-items: center; + padding-right: 8px; } + @media (min-width: 600px) { + .edit-post-header-toolbar__left { + padding-right: 24px; } } + @media (min-width: 1280px) { + .edit-post-header-toolbar__left { + padding-left: 8px; } } + .edit-post-header-toolbar__block-toolbar { position: absolute; top: 61px; @@ -600,13 +615,14 @@ body.is-fullscreen-mode .interface-interface-skeleton { border-bottom: none; } .is-sidebar-opened .edit-post-header-toolbar__block-toolbar { display: none; } + .edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar__block-parent-selector-wrapper { + display: none; } @media (min-width: 782px) { .is-sidebar-opened .edit-post-header-toolbar__block-toolbar { display: block; left: 280px; } } @media (min-width: 1280px) { .edit-post-header-toolbar__block-toolbar { - padding-right: 8px; position: static; right: auto; left: auto; @@ -621,12 +637,14 @@ body.is-fullscreen-mode .interface-interface-skeleton { height: 60px; padding: 6px 0; } } -.edit-post-header-toolbar .edit-post-header-toolbar__inserter-toggle.has-icon { +.edit-post-header-toolbar .edit-post-header-toolbar__left > .edit-post-header-toolbar__inserter-toggle.has-icon { margin-left: 8px; min-width: 32px; width: 32px; height: 32px; padding: 0; } + .show-icon-labels .edit-post-header-toolbar .edit-post-header-toolbar__left > .edit-post-header-toolbar__inserter-toggle.has-icon { + height: 36px; } @media (min-width: 1280px) { .show-icon-labels .edit-post-header-toolbar__block-toolbar { @@ -642,9 +660,6 @@ body.is-fullscreen-mode .interface-interface-skeleton { height: auto; padding: 0; } } -.show-icon-labels .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle { - height: 36px; } - .edit-post-more-menu { margin-right: -4px; } .edit-post-more-menu .components-button { @@ -821,22 +836,12 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar { display: flex; justify-content: center; } .interface-interface-skeleton__actions:focus .edit-post-layout__toggle-publish-panel, - .interface-interface-skeleton__actions:focus-within .edit-post-layout__toggle-publish-panel, - .interface-interface-skeleton__actions:focus .edit-post-layout__toggle-publish-panel, .interface-interface-skeleton__actions:focus-within .edit-post-layout__toggle-publish-panel, .interface-interface-skeleton__actions:focus .edit-post-layout__toogle-sidebar-panel, .interface-interface-skeleton__actions:focus-within - .edit-post-layout__toogle-sidebar-panel, - .interface-interface-skeleton__actions:focus - .edit-post-layout__toogle-sidebar-panel, - .interface-interface-skeleton__actions:focus-within .edit-post-layout__toogle-sidebar-panel, .interface-interface-skeleton__actions:focus .edit-post-layout__toggle-entities-saved-states-panel, .interface-interface-skeleton__actions:focus-within - .edit-post-layout__toggle-entities-saved-states-panel, - .interface-interface-skeleton__actions:focus - .edit-post-layout__toggle-entities-saved-states-panel, - .interface-interface-skeleton__actions:focus-within .edit-post-layout__toggle-entities-saved-states-panel { top: auto; bottom: 0; } @@ -1038,6 +1043,43 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar { .edit-post-meta-boxes-area__clear { clear: both; } +.edit-post-preferences-modal__section { + margin: 0 0 2.5rem 0; } + +.edit-post-preferences-modal__section-title { + font-size: 0.9rem; + font-weight: 600; } + +.edit-post-preferences-modal__option .components-base-control__field { + align-items: center; + display: flex; + margin: 0; } + +.edit-post-preferences-modal__option .components-checkbox-control__label { + flex-grow: 1; + padding: 0.6rem 10px 0.6rem 0; } + +.edit-post-preferences-modal__custom-fields-confirmation-message, .edit-post-preferences-modal__custom-fields-confirmation-button { + margin: 0 48px 0.6rem 0; } + @media (min-width: 782px) { + .edit-post-preferences-modal__custom-fields-confirmation-message, .edit-post-preferences-modal__custom-fields-confirmation-button { + margin-right: 38px; } } + @media (min-width: 600px) { + .edit-post-preferences-modal__custom-fields-confirmation-message, .edit-post-preferences-modal__custom-fields-confirmation-button { + max-width: 300px; } } + +.edit-post-preferences-modal .components-base-control__help { + margin: -8px 42px 8px 0; + font-size: 12px; + font-style: normal; + color: #757575; } + +.edit-post-preferences-modal .edit-post-preferences-modal__section-description { + margin: -8px 0 8px 0; + font-size: 12px; + font-style: normal; + color: #757575; } + .components-panel__header.edit-post-sidebar__panel-tabs { justify-content: flex-start; padding-right: 0; @@ -1275,34 +1317,6 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar { margin-left: auto; margin-bottom: 32px; } -.edit-post-options-modal__section { - margin: 0 0 2rem 0; } - -.edit-post-options-modal__section-title { - font-size: 0.9rem; - font-weight: 600; } - -.edit-post-options-modal__option { - border-top: 1px solid #ddd; } - .edit-post-options-modal__option:last-child { - border-bottom: 1px solid #ddd; } - .edit-post-options-modal__option .components-base-control__field { - align-items: center; - display: flex; - margin: 0; } - .edit-post-options-modal__option .components-checkbox-control__label { - flex-grow: 1; - padding: 0.6rem 10px 0.6rem 0; } - -.edit-post-options-modal__custom-fields-confirmation-message, .edit-post-options-modal__custom-fields-confirmation-button { - margin: 0 48px 0.6rem 0; } - @media (min-width: 782px) { - .edit-post-options-modal__custom-fields-confirmation-message, .edit-post-options-modal__custom-fields-confirmation-button { - margin-right: 38px; } } - @media (min-width: 600px) { - .edit-post-options-modal__custom-fields-confirmation-message, .edit-post-options-modal__custom-fields-confirmation-button { - max-width: 300px; } } - .edit-post-welcome-guide { width: 312px; } .edit-post-welcome-guide__image { diff --git a/wp-includes/css/dist/edit-post/style-rtl.min.css b/wp-includes/css/dist/edit-post/style-rtl.min.css index 056932eba1..1e85b79712 100644 --- a/wp-includes/css/dist/edit-post/style-rtl.min.css +++ b/wp-includes/css/dist/edit-post/style-rtl.min.css @@ -1 +1 @@ -:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87}.components-panel__header.interface-complementary-area-header__small{background:#fff;padding-left:4px}.components-panel__header.interface-complementary-area-header__small .interface-complementary-area-header__small-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}@media (min-width:782px){.components-panel__header.interface-complementary-area-header__small{display:none}}.interface-complementary-area-header{background:#fff;padding-left:4px}.interface-complementary-area-header .components-button.has-icon{display:none;margin-right:auto}.interface-complementary-area-header .components-button.has-icon~.components-button{margin-right:0}@media (min-width:782px){.interface-complementary-area-header .components-button.has-icon{display:flex}}.interface-complementary-area{background:#fff;color:#1e1e1e;overflow:visible}@media (min-width:600px){.interface-complementary-area{z-index:auto;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}}@media (min-width:782px){.interface-complementary-area{width:280px}}.interface-complementary-area>.components-panel{border-right:none;border-left:none;overflow:auto;-webkit-overflow-scrolling:touch;height:auto;max-height:calc(100vh - 142px);margin-top:-1px;margin-bottom:-1px;position:relative}@media (min-width:600px){.interface-complementary-area>.components-panel{overflow:visible;height:auto;max-height:none}}.interface-complementary-area>.components-panel .components-panel__header{position:fixed;z-index:1;top:0;right:0;left:0;height:48px}@media (min-width:600px){.interface-complementary-area>.components-panel .components-panel__header{position:inherit;top:auto;right:auto;left:auto}}.interface-complementary-area p{margin-top:0}.interface-complementary-area h2,.interface-complementary-area h3{font-size:13px;color:#1e1e1e;margin-bottom:1.5em}.interface-complementary-area hr{border-top:none;border-bottom:1px solid #f0f0f0;margin:1.5em 0}.interface-complementary-area div.components-toolbar,.interface-complementary-area div.components-toolbar-group{box-shadow:none;margin-bottom:1.5em}.interface-complementary-area div.components-toolbar-group:last-child,.interface-complementary-area div.components-toolbar:last-child{margin-bottom:0}.interface-complementary-area .block-editor-skip-to-selected-block:focus{top:auto;left:10px;bottom:10px;right:auto}@media (min-width:782px){body.js.is-fullscreen-mode{margin-top:-32px;height:calc(100% + 32px)}body.js.is-fullscreen-mode #adminmenumain,body.js.is-fullscreen-mode #wpadminbar{display:none}body.js.is-fullscreen-mode #wpcontent,body.js.is-fullscreen-mode #wpfooter{margin-right:0}}html.interface-interface-skeleton__html-container{position:fixed;width:100%}@media (min-width:782px){html.interface-interface-skeleton__html-container{position:static;width:auto}}.interface-interface-skeleton{display:flex;flex-direction:column;height:auto;max-height:100%;position:fixed;top:46px;left:0;bottom:0}@media (min-width:783px){.interface-interface-skeleton{top:32px}.is-fullscreen-mode .interface-interface-skeleton{top:0}}.interface-interface-skeleton{right:0}@media (min-width:783px){.interface-interface-skeleton{right:160px}}@media (min-width:783px){.auto-fold .interface-interface-skeleton{right:36px}}@media (min-width:961px){.auto-fold .interface-interface-skeleton{right:160px}}.folded .interface-interface-skeleton{right:0}@media (min-width:783px){.folded .interface-interface-skeleton{right:36px}}@media (max-width:783px){.auto-fold .wp-responsive-open .interface-interface-skeleton{right:190px}}@media (max-width:600px){.auto-fold .wp-responsive-open .interface-interface-skeleton{margin-right:-18px}}body.is-fullscreen-mode .interface-interface-skeleton{right:0!important}.interface-interface-skeleton__body{flex-grow:1;display:flex;overflow:auto;overscroll-behavior-y:none}.interface-interface-skeleton__content{flex-grow:1;display:flex;flex-direction:column;overflow:auto}.interface-interface-skeleton__left-sidebar,.interface-interface-skeleton__sidebar{display:block;width:auto;flex-shrink:0;position:absolute;z-index:100000;top:0;left:0;bottom:0;right:0;background:#fff;color:#1e1e1e}@media (min-width:782px){.interface-interface-skeleton__left-sidebar,.interface-interface-skeleton__sidebar{position:relative!important;z-index:90}}@media (min-width:782px){.interface-interface-skeleton__sidebar{overflow:auto;border-right:1px solid #e0e0e0}}@media (min-width:782px){.interface-interface-skeleton__left-sidebar{border-left:1px solid #e0e0e0}}.interface-interface-skeleton__header{flex-shrink:0;height:auto;border-bottom:1px solid #e0e0e0;z-index:30;color:#1e1e1e;position:-webkit-sticky;position:sticky;top:0}@media (min-width:600px){.interface-interface-skeleton__header{position:static;top:0}}.interface-interface-skeleton__footer{height:auto;flex-shrink:0;border-top:1px solid #e0e0e0;color:#1e1e1e;display:none}@media (min-width:782px){.interface-interface-skeleton__footer{display:flex}}.interface-interface-skeleton__footer .block-editor-block-breadcrumb{z-index:30;display:flex;background:#fff;height:24px;align-items:center;font-size:13px;padding:0 18px}.interface-interface-skeleton__actions{z-index:100000;position:fixed!important;top:-9999em;bottom:auto;right:auto;left:0;width:280px;color:#1e1e1e}.interface-interface-skeleton__actions:focus{top:auto;bottom:0}.interface-pinned-items{display:flex}.interface-pinned-items .components-button{margin-right:4px}.interface-pinned-items .components-button svg{max-width:24px;max-height:24px}.edit-post-header{height:60px;background:#fff;display:flex;flex-wrap:wrap;align-items:center;max-width:100vw}@media (min-width:280px){.edit-post-header{flex-wrap:nowrap}}.edit-post-header>.edit-post-header__settings{order:1}@supports ((position:-webkit-sticky) or (position:sticky)){.edit-post-header>.edit-post-header__settings{order:0}}.edit-post-header__toolbar{display:flex;flex-grow:1;padding-right:8px}@media (min-width:600px){.edit-post-header__toolbar{padding-right:24px}}.edit-post-header__toolbar .table-of-contents{display:none}@media (min-width:600px){.edit-post-header__toolbar .table-of-contents{display:block}}.edit-post-header__settings{display:inline-flex;align-items:center;flex-wrap:wrap;padding-left:4px}@media (min-width:600px){.edit-post-header__settings{padding-left:16px}}.edit-post-header__settings .components-button.components-button,.edit-post-header__settings .editor-post-saved-state{margin-left:4px}@media (min-width:600px){.edit-post-header__settings .components-button.components-button,.edit-post-header__settings .editor-post-saved-state{margin-left:12px}}.edit-post-header__settings .components-button.is-tertiary,.edit-post-header__settings .editor-post-saved-state{padding:0 6px}.edit-post-header__settings .edit-post-more-menu .components-button,.edit-post-header__settings .interface-pinned-items .components-button{margin-left:0}.edit-post-header-preview__grouping-external{display:flex;position:relative;padding-bottom:0}.edit-post-header-preview__button-external{padding-right:8px;margin-left:auto;width:100%;display:flex;justify-content:flex-start}.edit-post-header-preview__button-external svg{margin-right:auto}.edit-post-post-preview-dropdown .components-popover__content>div{padding-bottom:0}.edit-post-header__dropdown .components-button.has-icon,.show-icon-labels .edit-post-header .components-button.has-icon,.show-icon-labels.interface-pinned-items .components-button.has-icon{width:auto}.edit-post-header__dropdown .components-button.has-icon svg,.show-icon-labels .edit-post-header .components-button.has-icon svg,.show-icon-labels.interface-pinned-items .components-button.has-icon svg{display:none}.edit-post-header__dropdown .components-button.has-icon:after,.show-icon-labels .edit-post-header .components-button.has-icon:after,.show-icon-labels.interface-pinned-items .components-button.has-icon:after{content:attr(aria-label)}.edit-post-header__dropdown .components-button.has-icon[aria-disabled=true],.show-icon-labels .edit-post-header .components-button.has-icon[aria-disabled=true],.show-icon-labels.interface-pinned-items .components-button.has-icon[aria-disabled=true]{background-color:transparent}.edit-post-header__dropdown .is-tertiary:active,.show-icon-labels .edit-post-header .is-tertiary:active,.show-icon-labels.interface-pinned-items .is-tertiary:active{box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);background-color:transparent}.edit-post-header__dropdown .components-button.has-icon.button-toggle svg,.edit-post-header__dropdown .edit-post-fullscreen-mode-close.has-icon svg,.edit-post-header__dropdown .edit-post-header-toolbar__block-toolbar .components-button.has-icon svg,.show-icon-labels .edit-post-header .components-button.has-icon.button-toggle svg,.show-icon-labels .edit-post-header .edit-post-fullscreen-mode-close.has-icon svg,.show-icon-labels .edit-post-header .edit-post-header-toolbar__block-toolbar .components-button.has-icon svg,.show-icon-labels.interface-pinned-items .components-button.has-icon.button-toggle svg,.show-icon-labels.interface-pinned-items .edit-post-fullscreen-mode-close.has-icon svg,.show-icon-labels.interface-pinned-items .edit-post-header-toolbar__block-toolbar .components-button.has-icon svg{display:block}.edit-post-header__dropdown .components-button.has-icon.button-toggle:after,.edit-post-header__dropdown .edit-post-fullscreen-mode-close.has-icon:after,.edit-post-header__dropdown .edit-post-header-toolbar__block-toolbar .components-button.has-icon:after,.show-icon-labels .edit-post-header .components-button.has-icon.button-toggle:after,.show-icon-labels .edit-post-header .edit-post-fullscreen-mode-close.has-icon:after,.show-icon-labels .edit-post-header .edit-post-header-toolbar__block-toolbar .components-button.has-icon:after,.show-icon-labels.interface-pinned-items .components-button.has-icon.button-toggle:after,.show-icon-labels.interface-pinned-items .edit-post-fullscreen-mode-close.has-icon:after,.show-icon-labels.interface-pinned-items .edit-post-header-toolbar__block-toolbar .components-button.has-icon:after{content:none}.edit-post-header__dropdown .edit-post-fullscreen-mode-close.has-icon,.show-icon-labels .edit-post-header .edit-post-fullscreen-mode-close.has-icon,.show-icon-labels.interface-pinned-items .edit-post-fullscreen-mode-close.has-icon{width:60px}.edit-post-header__dropdown .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon,.show-icon-labels .edit-post-header .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon,.show-icon-labels.interface-pinned-items .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon{display:block}.edit-post-header__dropdown .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.edit-post-header__dropdown .interface-pinned-items .components-button,.show-icon-labels .edit-post-header .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.show-icon-labels .edit-post-header .interface-pinned-items .components-button,.show-icon-labels.interface-pinned-items .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.show-icon-labels.interface-pinned-items .interface-pinned-items .components-button{padding-right:8px;padding-left:8px}@media (min-width:600px){.edit-post-header__dropdown .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.edit-post-header__dropdown .interface-pinned-items .components-button,.show-icon-labels .edit-post-header .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.show-icon-labels .edit-post-header .interface-pinned-items .components-button,.show-icon-labels.interface-pinned-items .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.show-icon-labels.interface-pinned-items .interface-pinned-items .components-button{padding-right:12px;padding-left:12px}}.edit-post-header__dropdown .components-dropdown-menu__toggle,.show-icon-labels .edit-post-header .components-dropdown-menu__toggle,.show-icon-labels.interface-pinned-items .components-dropdown-menu__toggle{margin-right:8px;padding-right:8px;padding-left:8px}@media (min-width:600px){.edit-post-header__dropdown .components-dropdown-menu__toggle,.show-icon-labels .edit-post-header .components-dropdown-menu__toggle,.show-icon-labels.interface-pinned-items .components-dropdown-menu__toggle{margin-right:12px;padding-right:12px;padding-left:12px}}.edit-post-header__dropdown .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle:after,.show-icon-labels .edit-post-header .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle:after,.show-icon-labels.interface-pinned-items .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle:after{content:none}.edit-post-header__dropdown .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels .edit-post-header .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels.interface-pinned-items .editor-post-save-draft.editor-post-save-draft:after{content:none}@media (min-width:600px){.edit-post-header__dropdown .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels .edit-post-header .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels.interface-pinned-items .editor-post-save-draft.editor-post-save-draft:after{content:attr(aria-label)}}.edit-post-header__dropdown .components-button.block-editor-block-navigation,.edit-post-header__dropdown .components-button.editor-history__redo,.edit-post-header__dropdown .components-button.editor-history__undo,.edit-post-header__dropdown .components-menu-item__button.components-menu-item__button,.edit-post-header__dropdown .table-of-contents .components-button{margin:0;padding:6px 40px 6px 6px;width:14.625rem;text-align:right;justify-content:flex-start}.show-icon-labels.interface-pinned-items{padding:6px 12px 12px;margin:0 -12px;border-bottom:1px solid #ccc;display:block}.show-icon-labels.interface-pinned-items>.components-button.has-icon{margin:0;padding:6px 8px 6px 6px;width:14.625rem;justify-content:flex-start}.show-icon-labels.interface-pinned-items>.components-button.has-icon[aria-expanded=true] svg{display:block;max-width:24px}.show-icon-labels.interface-pinned-items>.components-button.has-icon[aria-expanded=false]{padding-right:40px}.show-icon-labels.interface-pinned-items>.components-button.has-icon svg{margin-left:8px}.edit-post-fullscreen-mode-close.has-icon{display:none}@media (min-width:782px){.edit-post-fullscreen-mode-close.has-icon{display:flex;align-items:center;align-self:stretch;border:none;background:#23282e;color:#fff;border-radius:0;height:auto;width:60px}.edit-post-fullscreen-mode-close.has-icon:hover{background:#32373d}.edit-post-fullscreen-mode-close.has-icon:active{color:#fff}.edit-post-fullscreen-mode-close.has-icon:focus{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 0 0 2.5px #fff;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 0 0 2.5px #fff}}.edit-post-fullscreen-mode-close_site-icon{width:36px}.edit-post-header-toolbar{display:inline-flex;align-items:center;border:none}.edit-post-header-toolbar>.components-button{display:none}@media (min-width:600px){.edit-post-header-toolbar>.components-button{display:inline-flex}}.edit-post-header-toolbar>.edit-post-header-toolbar__inserter-toggle{display:inline-flex}.edit-post-header-toolbar .block-editor-block-navigation{display:none}@media (min-width:600px){.edit-post-header-toolbar .block-editor-block-navigation{display:flex}}.edit-post-header-toolbar>.components-button.has-icon,.edit-post-header-toolbar>.components-dropdown>.components-button.has-icon{height:36px;min-width:36px;padding:6px}.edit-post-header-toolbar>.components-button.has-icon.is-pressed,.edit-post-header-toolbar>.components-dropdown>.components-button.has-icon.is-pressed{background:#1e1e1e}.edit-post-header-toolbar>.components-button.has-icon:focus:not(:disabled),.edit-post-header-toolbar>.components-dropdown>.components-button.has-icon:focus:not(:disabled){box-shadow:0 0 0 1.5px #007cba,inset 0 0 0 1px #fff;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color),inset 0 0 0 1px #fff;outline:1px solid transparent}.edit-post-header-toolbar>.components-button.has-icon:before,.edit-post-header-toolbar>.components-dropdown>.components-button.has-icon:before{display:none}.edit-post-header-toolbar__block-toolbar{position:absolute;top:61px;right:0;left:0;background:#fff;border-bottom:1px solid #ddd}.edit-post-header-toolbar__block-toolbar:empty{display:none}.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar,.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar-group{border-top:none;border-bottom:none}.is-sidebar-opened .edit-post-header-toolbar__block-toolbar{display:none}@media (min-width:782px){.is-sidebar-opened .edit-post-header-toolbar__block-toolbar{display:block;left:280px}}@media (min-width:1280px){.edit-post-header-toolbar__block-toolbar{padding-right:8px;position:static;right:auto;left:auto;background:none;border-bottom:none}.is-sidebar-opened .edit-post-header-toolbar__block-toolbar{left:auto}.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar{border-right:1px solid #ddd}.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar,.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar-group{height:60px;padding:6px 0}}.edit-post-header-toolbar .edit-post-header-toolbar__inserter-toggle.has-icon{margin-left:8px;min-width:32px;width:32px;height:32px;padding:0}@media (min-width:1280px){.show-icon-labels .edit-post-header-toolbar__block-toolbar{position:absolute;top:61px;right:0;left:0;border-bottom:1px solid #ddd;padding:0;background-color:#fff}.show-icon-labels .edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar,.show-icon-labels .edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar-group{height:auto;padding:0}}.show-icon-labels .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle{height:36px}.edit-post-more-menu{margin-right:-4px}.edit-post-more-menu .components-button{width:auto;padding:0 2px}@media (min-width:600px){.edit-post-more-menu{margin-right:0}.edit-post-more-menu .components-button{padding:0 4px}}.edit-post-more-menu__content .components-popover__content{min-width:280px}@media (min-width:480px){.edit-post-more-menu__content .components-popover__content{width:auto;max-width:480px}}.edit-post-more-menu__content .components-popover__content .components-dropdown-menu__menu{padding:0}.components-popover.edit-post-more-menu__content{z-index:99998}.edit-post-keyboard-shortcut-help-modal__section{margin:0 0 2rem}.edit-post-keyboard-shortcut-help-modal__main-shortcuts .edit-post-keyboard-shortcut-help-modal__shortcut-list{margin-top:-25px}.edit-post-keyboard-shortcut-help-modal__section-title{font-size:.9rem;font-weight:600}.edit-post-keyboard-shortcut-help-modal__shortcut{display:flex;align-items:baseline;padding:.6rem 0;border-top:1px solid #ddd;margin-bottom:0}.edit-post-keyboard-shortcut-help-modal__shortcut:last-child{border-bottom:1px solid #ddd}.edit-post-keyboard-shortcut-help-modal__shortcut:empty{display:none}.edit-post-keyboard-shortcut-help-modal__shortcut-term{font-weight:600;margin:0 1rem 0 0;text-align:left}.edit-post-keyboard-shortcut-help-modal__shortcut-description{flex:1;margin:0;flex-basis:auto}.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination{display:block;background:none;margin:0;padding:0}.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination+.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination{margin-top:10px}.edit-post-keyboard-shortcut-help-modal__shortcut-key{padding:.25rem .5rem;border-radius:8%;margin:0 .2rem}.edit-post-keyboard-shortcut-help-modal__shortcut-key:last-child{margin:0 .2rem 0 0}.edit-post-layout__metaboxes{flex-shrink:0}.edit-post-layout__metaboxes:not(:empty){border-top:1px solid #ddd;padding:10px 0;clear:both}.edit-post-layout__metaboxes:not(:empty) .edit-post-meta-boxes-area{margin:auto 20px}.edit-post-layout .components-editor-notices__snackbar{position:fixed;left:0;bottom:40px;padding-right:16px;padding-left:16px;right:0}@media (min-width:783px){.edit-post-layout .components-editor-notices__snackbar{right:160px}}@media (min-width:783px){.auto-fold .edit-post-layout .components-editor-notices__snackbar{right:36px}}@media (min-width:961px){.auto-fold .edit-post-layout .components-editor-notices__snackbar{right:160px}}.folded .edit-post-layout .components-editor-notices__snackbar{right:0}@media (min-width:783px){.folded .edit-post-layout .components-editor-notices__snackbar{right:36px}}@media (max-width:783px){.auto-fold .wp-responsive-open .edit-post-layout .components-editor-notices__snackbar{right:190px}}@media (max-width:600px){.auto-fold .wp-responsive-open .edit-post-layout .components-editor-notices__snackbar{margin-right:-18px}}body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar{right:0!important}.edit-post-layout .editor-post-publish-panel{position:fixed;z-index:100001;top:46px;bottom:0;left:0;right:0;overflow:auto}@media (min-width:782px){.edit-post-layout .editor-post-publish-panel{z-index:99998;top:32px;right:auto;width:281px;border-right:1px solid #ddd;transform:translateX(-100%);animation:edit-post-post-publish-panel__slide-in-animation .1s forwards}}@media (min-width:782px) and (prefers-reduced-motion:reduce){.edit-post-layout .editor-post-publish-panel{animation-duration:1ms}}@media (min-width:782px){body.is-fullscreen-mode .edit-post-layout .editor-post-publish-panel{top:0}.is-focusing-regions .edit-post-layout .editor-post-publish-panel{transform:translateX(0)}}@keyframes edit-post-post-publish-panel__slide-in-animation{to{transform:translateX(0)}}.interface-interface-skeleton__sidebar>div{height:100%;padding-bottom:48px}.edit-post-layout .editor-post-publish-panel__header-publish-button{justify-content:center}.edit-post-layout__toggle-entities-saved-states-panel,.edit-post-layout__toggle-publish-panel,.edit-post-layout__toogle-sidebar-panel{z-index:100000;position:fixed!important;top:-9999em;bottom:auto;right:auto;left:0;width:280px;background-color:#fff;border:1px dotted #ddd;height:auto!important;padding:24px;display:flex;justify-content:center}.interface-interface-skeleton__actions:focus-within .edit-post-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus-within .edit-post-layout__toggle-publish-panel,.interface-interface-skeleton__actions:focus-within .edit-post-layout__toogle-sidebar-panel,.interface-interface-skeleton__actions:focus .edit-post-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus .edit-post-layout__toggle-publish-panel,.interface-interface-skeleton__actions:focus .edit-post-layout__toogle-sidebar-panel{top:auto;bottom:0}.edit-post-layout .interface-interface-skeleton__content{background-color:#ccc}.edit-post-layout__inserter-panel-popover-wrapper,.edit-post-layout__inserter-panel-popover-wrapper>div,.edit-post-layout__inserter-panel-popover-wrapper>div>div,.edit-post-layout__inserter-panel-popover-wrapper>div>div>div{height:100%}.edit-post-layout__inserter-panel{height:100%;display:flex;flex-direction:column}.edit-post-layout__inserter-panel-header{padding-top:8px;padding-left:8px;display:flex;justify-content:flex-end}@media (min-width:782px){.edit-post-layout__inserter-panel-header{display:none}}.edit-post-layout__inserter-panel-content{height:calc(100% - 44px)}@media (min-width:782px){.edit-post-layout__inserter-panel-content{height:100%}}@media (min-width:600px){.edit-post-manage-blocks-modal{height:calc(100% - 120px)}}.edit-post-manage-blocks-modal .components-modal__content{padding-bottom:0;display:flex;flex-direction:column}.edit-post-manage-blocks-modal .components-modal__header{flex-shrink:0;margin-bottom:0}.edit-post-manage-blocks-modal__content{display:flex;flex-direction:column;flex:0 1 100%;min-height:0}.edit-post-manage-blocks-modal__no-results{font-style:italic;padding:24px 0;text-align:center}.edit-post-manage-blocks-modal__search{margin:16px 0}.edit-post-manage-blocks-modal__search .components-base-control__field{margin-bottom:0}.edit-post-manage-blocks-modal__search .components-base-control__label{margin-top:-4px}.edit-post-manage-blocks-modal__search input[type=search].components-text-control__input{padding:8px;border-radius:2px}.edit-post-manage-blocks-modal__disabled-blocks-count{border-top:1px solid #ddd;margin-right:-24px;margin-left:-24px;padding:.6rem 24px;background-color:#f0f0f0}.edit-post-manage-blocks-modal__category{margin:0 0 2rem}.edit-post-manage-blocks-modal__category-title{position:-webkit-sticky;position:sticky;top:0;padding:16px 0;background-color:#fff;z-index:1}.edit-post-manage-blocks-modal__category-title .components-base-control__field{margin-bottom:0}.edit-post-manage-blocks-modal__category-title .components-checkbox-control__label{font-size:.9rem;font-weight:600}.edit-post-manage-blocks-modal__show-all{margin-left:8px}.edit-post-manage-blocks-modal__checklist{margin-top:0}.edit-post-manage-blocks-modal__checklist-item{margin-bottom:0;padding-right:16px;border-top:1px solid #ddd}.edit-post-manage-blocks-modal__checklist-item:last-child{border-bottom:1px solid #ddd}.edit-post-manage-blocks-modal__checklist-item .components-base-control__field{align-items:center;display:flex;margin:0}.components-modal__content .edit-post-manage-blocks-modal__checklist-item.components-checkbox-control__input-container{margin:0 8px}.edit-post-manage-blocks-modal__checklist-item .components-checkbox-control__label{display:flex;align-items:center;justify-content:space-between;flex-grow:1;padding:.6rem 10px .6rem 0}.edit-post-manage-blocks-modal__checklist-item .block-editor-block-icon{margin-left:10px;fill:#1e1e1e}.edit-post-manage-blocks-modal__results{height:100%;overflow:auto;margin-right:-24px;margin-left:-24px;padding-right:24px;padding-left:24px;border-top:1px solid #ddd}.edit-post-meta-boxes-area{position:relative}.edit-post-meta-boxes-area .inside,.edit-post-meta-boxes-area__container{box-sizing:content-box}.edit-post-meta-boxes-area input,.edit-post-meta-boxes-area textarea{box-sizing:border-box}.edit-post-meta-boxes-area #poststuff{margin:0 auto;padding-top:0;min-width:auto}.edit-post-meta-boxes-area #poststuff .stuffbox>h3,.edit-post-meta-boxes-area #poststuff h2.hndle,.edit-post-meta-boxes-area #poststuff h3.hndle{box-sizing:border-box;color:inherit;font-weight:600;outline:none;padding:15px;position:relative;width:100%}.edit-post-meta-boxes-area .postbox{border:0;color:inherit;margin-bottom:0}.edit-post-meta-boxes-area .postbox>.inside{border-bottom:1px solid #ddd;color:inherit;padding:0 14px 14px;margin:0}.edit-post-meta-boxes-area .postbox .handlediv{height:44px;width:44px}.edit-post-meta-boxes-area.is-loading:before{position:absolute;top:0;right:0;left:0;bottom:0;content:"";background:transparent;z-index:1}.edit-post-meta-boxes-area .components-spinner{position:absolute;top:10px;left:20px;z-index:5}.edit-post-meta-boxes-area .is-hidden{display:none}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]{border:1px solid #757575}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]:checked{background:#fff;border-color:#757575}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]:before{margin:-3px -4px}.edit-post-meta-boxes-area__clear{clear:both}.components-panel__header.edit-post-sidebar__panel-tabs{justify-content:flex-start;padding-right:0;padding-left:16px;border-top:0;margin-top:0}.components-panel__header.edit-post-sidebar__panel-tabs ul{display:flex}.components-panel__header.edit-post-sidebar__panel-tabs li{margin:0}.components-panel__header.edit-post-sidebar__panel-tabs .components-button.has-icon{display:none;margin:0 auto 0 0;padding:0;min-width:24px;height:24px}@media (min-width:782px){.components-panel__header.edit-post-sidebar__panel-tabs .components-button.has-icon{display:flex}}.components-panel__body.is-opened.edit-post-last-revision__panel{padding:0;height:48px}.editor-post-last-revision__title.components-button{padding:16px}.editor-post-author__select{margin:-5px 0;width:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.editor-post-author__select{width:auto}}.edit-post-post-link__link-post-name{font-weight:600}.edit-post-post-link__preview-label{font-weight:400;margin:0}.edit-post-post-link__link{text-align:right;word-wrap:break-word;display:block}.edit-post-post-link__preview-link-container{direction:ltr}.edit-post-post-schedule{width:100%;position:relative;justify-content:left}.edit-post-post-schedule span{display:block;width:45%}.components-button.edit-post-post-schedule__toggle{text-align:left}.editor-post-slug__input{margin:-5px 0;padding:2px}.edit-post-post-status .edit-post-post-publish-dropdown__switch-to-draft{margin-top:15px;width:100%;text-align:center}.edit-post-post-visibility{width:100%;justify-content:left}.edit-post-post-visibility span{display:block;width:45%}@media (min-width:782px){.edit-post-post-visibility__dialog .components-popover__content{width:257px}}.edit-post-post-visibility__dialog-legend{font-weight:600}.edit-post-post-visibility__choice{margin:10px 0}.edit-post-post-visibility__dialog-label,.edit-post-post-visibility__dialog-radio{vertical-align:top}.edit-post-post-visibility__dialog-password-input{width:calc(100% - 20px);margin-right:20px}.edit-post-post-visibility__dialog-info{color:#757575;padding-right:20px;font-style:italic;margin:4px 0 0;line-height:1.4}.components-button.edit-post-sidebar__panel-tab{border-radius:0;height:48px;background:transparent;border:none;box-shadow:none;cursor:pointer;display:inline-block;padding:3px 15px;margin-right:0;font-weight:500}.components-button.edit-post-sidebar__panel-tab:after{content:attr(data-label);display:block;font-weight:600;height:0;overflow:hidden;speak:none;visibility:hidden}.components-button.edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 0 0 1.5px transparent,inset 0 -4px 0 0 #007cba;box-shadow:inset 0 0 0 1.5px transparent,inset 0 -4px 0 0 var(--wp-admin-theme-color);position:relative;z-index:1}.components-button.edit-post-sidebar__panel-tab.is-active:before{content:"";position:absolute;top:0;bottom:1px;left:0;right:0;border-bottom:4px solid transparent}.components-button.edit-post-sidebar__panel-tab:focus{box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color);position:relative;z-index:1}.components-button.edit-post-sidebar__panel-tab.is-active:focus{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 -4px 0 0 #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 -4px 0 0 var(--wp-admin-theme-color)}.edit-post-text-editor{position:relative;width:100%;background-color:#fff;flex-grow:1}.edit-post-text-editor .wp-block.editor-post-title{max-width:none;line-height:1.4}.edit-post-text-editor .wp-block.editor-post-title .editor-post-title__input.editor-post-title__input.editor-post-title__input{font-family:Menlo,Consolas,monaco,monospace;font-size:2.5em;font-weight:400}.edit-post-text-editor .wp-block.editor-post-title .editor-post-title__input{border:1px solid #949494;margin-bottom:-1px;padding:16px}@media (min-width:600px){.edit-post-text-editor .wp-block.editor-post-title .editor-post-title__input{padding:24px}}.edit-post-text-editor .wp-block.editor-post-title .editor-post-title__input:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color)}@media (min-width:600px){.edit-post-text-editor .wp-block.editor-post-title{padding:0}}.edit-post-text-editor__body{width:100%;padding:0 12px 12px;max-width:1080px;margin-right:auto;margin-left:auto}@media (min-width:960px){.edit-post-text-editor__body{padding:0 24px 24px}}.edit-post-text-editor__toolbar{position:-webkit-sticky;position:sticky;z-index:1;top:0;right:0;left:0;display:flex;background:hsla(0,0%,100%,.8);padding:4px 12px}@media (min-width:600px){.edit-post-text-editor__toolbar{padding:12px}}@media (min-width:960px){.edit-post-text-editor__toolbar{padding:12px 24px}}.edit-post-text-editor__toolbar h2{line-height:36px;margin:0 0 0 auto;font-size:13px;color:#1e1e1e}.edit-post-text-editor__toolbar .components-button svg{order:1}.edit-post-visual-editor{position:relative;padding-top:50px;background-color:#fff;flex:1 1 auto}.edit-post-visual-editor .components-button{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:6px 12px}.edit-post-visual-editor .components-button.has-icon,.edit-post-visual-editor .components-button.is-tertiary{padding:6px}@supports ((position:-webkit-sticky) or (position:sticky)){.edit-post-visual-editor{flex-basis:100%}}.edit-post-visual-editor>.block-editor__typewriter,.edit-post-visual-editor>.block-editor__typewriter>div,.edit-post-visual-editor>.block-editor__typewriter>div>.block-editor-writing-flow,.edit-post-visual-editor>.block-editor__typewriter>div>.block-editor-writing-flow>.block-editor-writing-flow__click-redirect{height:100%}.edit-post-visual-editor .block-editor-writing-flow__click-redirect{min-height:40vh;width:100%}.has-metaboxes .edit-post-visual-editor .block-editor-writing-flow__click-redirect{height:0}.edit-post-visual-editor__post-title-wrapper .editor-post-title{margin:2em auto 32px}.edit-post-options-modal__section{margin:0 0 2rem}.edit-post-options-modal__section-title{font-size:.9rem;font-weight:600}.edit-post-options-modal__option{border-top:1px solid #ddd}.edit-post-options-modal__option:last-child{border-bottom:1px solid #ddd}.edit-post-options-modal__option .components-base-control__field{align-items:center;display:flex;margin:0}.edit-post-options-modal__option .components-checkbox-control__label{flex-grow:1;padding:.6rem 10px .6rem 0}.edit-post-options-modal__custom-fields-confirmation-button,.edit-post-options-modal__custom-fields-confirmation-message{margin:0 48px .6rem 0}@media (min-width:782px){.edit-post-options-modal__custom-fields-confirmation-button,.edit-post-options-modal__custom-fields-confirmation-message{margin-right:38px}}@media (min-width:600px){.edit-post-options-modal__custom-fields-confirmation-button,.edit-post-options-modal__custom-fields-confirmation-message{max-width:300px}}.edit-post-welcome-guide{width:312px}.edit-post-welcome-guide__image{background:#00a0d2;height:240px}.edit-post-welcome-guide__image__prm-r{display:none}@media (prefers-reduced-motion:reduce){.edit-post-welcome-guide__image__prm-r{display:block}.edit-post-welcome-guide__image__prm-np{display:none}}.edit-post-welcome-guide__heading{font-family:"Noto Serif",serif;font-size:24px;line-height:1.4;margin:0 0 16px;padding:0 32px}.edit-post-welcome-guide__text{font-size:13px;line-height:1.4;margin:0 0 24px;padding:0 32px}.edit-post-welcome-guide__inserter-icon{margin:0 4px;vertical-align:text-top}@keyframes edit-post__fade-in-animation{0%{opacity:0}to{opacity:1}}body.block-editor-page,html.wp-toolbar{background:#fff}body.block-editor-page #wpcontent{padding-right:0}body.block-editor-page #wpbody-content{padding-bottom:0}body.block-editor-page #wpbody-content>div:not(.block-editor):not(#screen-meta){display:none}body.block-editor-page #wpfooter{display:none}body.block-editor-page .a11y-speak-region{right:-1px;top:-1px}body.block-editor-page ul#adminmenu>li.current>a.current:after,body.block-editor-page ul#adminmenu a.wp-has-current-submenu:after{border-left-color:#fff}body.block-editor-page .media-frame select.attachment-filters:last-of-type{width:auto;max-width:100%}.components-modal__frame,.components-popover,.edit-post-header,.edit-post-layout__inserter-panel,.edit-post-sidebar,.edit-post-text-editor,.edit-post-visual-editor,.editor-post-publish-panel{box-sizing:border-box}.components-modal__frame *,.components-modal__frame :after,.components-modal__frame :before,.components-popover *,.components-popover :after,.components-popover :before,.edit-post-header *,.edit-post-header :after,.edit-post-header :before,.edit-post-layout__inserter-panel *,.edit-post-layout__inserter-panel :after,.edit-post-layout__inserter-panel :before,.edit-post-sidebar *,.edit-post-sidebar :after,.edit-post-sidebar :before,.edit-post-text-editor *,.edit-post-text-editor :after,.edit-post-text-editor :before,.edit-post-visual-editor *,.edit-post-visual-editor :after,.edit-post-visual-editor :before,.editor-post-publish-panel *,.editor-post-publish-panel :after,.editor-post-publish-panel :before{box-sizing:inherit}@media (min-width:600px){.block-editor__container{position:absolute;top:0;left:0;bottom:0;right:0;min-height:calc(100vh - 46px)}}@media (min-width:782px){.block-editor__container{min-height:calc(100vh - 32px)}body.is-fullscreen-mode .block-editor__container{min-height:100vh}}.block-editor__container img{max-width:100%;height:auto}.block-editor__container iframe{width:100%}.block-editor__container .components-navigate-regions{height:100%}.wp-block{max-width:580px}.wp-block[data-align=wide]{max-width:1100px}.wp-block[data-align=full]{max-width:none}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-20:#006187}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-20:#183ad6}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-20:#064054}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-20:#2b2724}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-20:#3a2c4d}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-20:#d02c21}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-20:#4c6066}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-20:#c36922} \ No newline at end of file +:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87}.components-panel__header.interface-complementary-area-header__small{background:#fff;padding-left:4px}.components-panel__header.interface-complementary-area-header__small .interface-complementary-area-header__small-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}@media (min-width:782px){.components-panel__header.interface-complementary-area-header__small{display:none}}.interface-complementary-area-header{background:#fff;padding-left:4px}.interface-complementary-area-header .components-button.has-icon{display:none;margin-right:auto}.interface-complementary-area-header .components-button.has-icon~.components-button{margin-right:0}@media (min-width:782px){.interface-complementary-area-header .components-button.has-icon{display:flex}}.interface-complementary-area{background:#fff;color:#1e1e1e;overflow:visible}@media (min-width:600px){.interface-complementary-area{z-index:auto;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}}@media (min-width:782px){.interface-complementary-area{width:280px}}.interface-complementary-area>.components-panel{border-right:none;border-left:none;overflow:auto;-webkit-overflow-scrolling:touch;height:auto;max-height:calc(100vh - 142px);margin-top:-1px;margin-bottom:-1px;position:relative}@media (min-width:600px){.interface-complementary-area>.components-panel{overflow:visible;height:auto;max-height:none}}.interface-complementary-area>.components-panel .components-panel__header{position:fixed;z-index:1;top:0;right:0;left:0;height:48px}@media (min-width:600px){.interface-complementary-area>.components-panel .components-panel__header{position:inherit;top:auto;right:auto;left:auto}}.interface-complementary-area p{margin-top:0}.interface-complementary-area h2,.interface-complementary-area h3{font-size:13px;color:#1e1e1e;margin-bottom:1.5em}.interface-complementary-area hr{border-top:none;border-bottom:1px solid #f0f0f0;margin:1.5em 0}.interface-complementary-area div.components-toolbar,.interface-complementary-area div.components-toolbar-group{box-shadow:none;margin-bottom:1.5em}.interface-complementary-area div.components-toolbar-group:last-child,.interface-complementary-area div.components-toolbar:last-child{margin-bottom:0}.interface-complementary-area .block-editor-skip-to-selected-block:focus{top:auto;left:10px;bottom:10px;right:auto}@media (min-width:782px){body.js.is-fullscreen-mode{margin-top:-32px;height:calc(100% + 32px)}body.js.is-fullscreen-mode #adminmenumain,body.js.is-fullscreen-mode #wpadminbar{display:none}body.js.is-fullscreen-mode #wpcontent,body.js.is-fullscreen-mode #wpfooter{margin-right:0}}html.interface-interface-skeleton__html-container{position:fixed;width:100%}@media (min-width:782px){html.interface-interface-skeleton__html-container{position:static;width:auto}}.interface-interface-skeleton{display:flex;flex-direction:row;height:auto;max-height:100%;position:fixed;top:46px;left:0;bottom:0}@media (min-width:783px){.interface-interface-skeleton{top:32px}.is-fullscreen-mode .interface-interface-skeleton{top:0}}.interface-interface-skeleton__editor{display:flex;flex-direction:column;flex-grow:1}.interface-interface-skeleton{right:0}@media (min-width:783px){.interface-interface-skeleton{right:160px}}@media (min-width:783px){.auto-fold .interface-interface-skeleton{right:36px}}@media (min-width:961px){.auto-fold .interface-interface-skeleton{right:160px}}.folded .interface-interface-skeleton{right:0}@media (min-width:783px){.folded .interface-interface-skeleton{right:36px}}@media (max-width:783px){.auto-fold .wp-responsive-open .interface-interface-skeleton{right:190px}}@media (max-width:600px){.auto-fold .wp-responsive-open .interface-interface-skeleton{margin-right:-18px}}body.is-fullscreen-mode .interface-interface-skeleton{right:0!important}.interface-interface-skeleton__body{flex-grow:1;display:flex;overflow:auto;overscroll-behavior-y:none}.interface-interface-skeleton__content{flex-grow:1;display:flex;flex-direction:column;overflow:auto}.interface-interface-skeleton__left-sidebar,.interface-interface-skeleton__sidebar{display:block;width:auto;flex-shrink:0;position:absolute;z-index:100000;top:0;left:0;bottom:0;right:0;background:#fff;color:#1e1e1e}@media (min-width:782px){.interface-interface-skeleton__left-sidebar,.interface-interface-skeleton__sidebar{position:relative!important;z-index:90}}@media (min-width:782px){.interface-interface-skeleton__sidebar{overflow:auto;border-right:1px solid #e0e0e0}}@media (min-width:782px){.interface-interface-skeleton__left-sidebar{border-left:1px solid #e0e0e0}}.interface-interface-skeleton__header{flex-shrink:0;height:auto;border-bottom:1px solid #e0e0e0;z-index:30;color:#1e1e1e;position:-webkit-sticky;position:sticky;top:0}@media (min-width:600px){.interface-interface-skeleton__header{position:static;top:0}}.interface-interface-skeleton__footer{height:auto;flex-shrink:0;border-top:1px solid #e0e0e0;color:#1e1e1e;position:fixed;bottom:0;width:100%;background-color:#fff;z-index:90;display:none}@media (min-width:782px){.interface-interface-skeleton__footer{display:flex}}.interface-interface-skeleton__footer .block-editor-block-breadcrumb{z-index:30;display:flex;background:#fff;height:24px;align-items:center;font-size:13px;padding:0 18px}.interface-interface-skeleton__actions{z-index:100000;position:fixed!important;top:-9999em;bottom:auto;right:auto;left:0;width:280px;color:#1e1e1e}.interface-interface-skeleton__actions:focus{top:auto;bottom:0}.interface-pinned-items{display:flex}.interface-pinned-items .components-button{margin-right:4px}.interface-pinned-items .components-button svg{max-width:24px;max-height:24px}.edit-post-header{height:60px;background:#fff;display:flex;flex-wrap:wrap;align-items:center;max-width:100vw}@media (min-width:280px){.edit-post-header{flex-wrap:nowrap}}.edit-post-header>.edit-post-header__settings{order:1}@supports ((position:-webkit-sticky) or (position:sticky)){.edit-post-header>.edit-post-header__settings{order:0}}.edit-post-header__toolbar{display:flex;flex-grow:1}.edit-post-header__toolbar .table-of-contents{display:none}@media (min-width:600px){.edit-post-header__toolbar .table-of-contents{display:block}}.edit-post-header__settings{display:inline-flex;align-items:center;flex-wrap:wrap;padding-left:4px}@media (min-width:600px){.edit-post-header__settings{padding-left:16px}}.edit-post-header__settings .components-button.components-button,.edit-post-header__settings .editor-post-saved-state{margin-left:4px}@media (min-width:600px){.edit-post-header__settings .components-button.components-button,.edit-post-header__settings .editor-post-saved-state{margin-left:12px}}.edit-post-header__settings .components-button.is-tertiary,.edit-post-header__settings .editor-post-saved-state{padding:0 6px}.edit-post-header__settings .edit-post-more-menu .components-button,.edit-post-header__settings .interface-pinned-items .components-button{margin-left:0}.edit-post-header-preview__grouping-external{display:flex;position:relative;padding-bottom:0}.edit-post-header-preview__button-external{padding-right:8px;margin-left:auto;width:100%;display:flex;justify-content:flex-start}.edit-post-header-preview__button-external svg{margin-right:auto}.edit-post-post-preview-dropdown .components-popover__content>div{padding-bottom:0}.edit-post-header__dropdown .components-button.has-icon,.show-icon-labels .edit-post-header .components-button.has-icon,.show-icon-labels.interface-pinned-items .components-button.has-icon{width:auto}.edit-post-header__dropdown .components-button.has-icon svg,.show-icon-labels .edit-post-header .components-button.has-icon svg,.show-icon-labels.interface-pinned-items .components-button.has-icon svg{display:none}.edit-post-header__dropdown .components-button.has-icon:after,.show-icon-labels .edit-post-header .components-button.has-icon:after,.show-icon-labels.interface-pinned-items .components-button.has-icon:after{content:attr(aria-label)}.edit-post-header__dropdown .components-button.has-icon[aria-disabled=true],.show-icon-labels .edit-post-header .components-button.has-icon[aria-disabled=true],.show-icon-labels.interface-pinned-items .components-button.has-icon[aria-disabled=true]{background-color:transparent}.edit-post-header__dropdown .is-tertiary:active,.show-icon-labels .edit-post-header .is-tertiary:active,.show-icon-labels.interface-pinned-items .is-tertiary:active{box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);background-color:transparent}.edit-post-header__dropdown .components-button.has-icon.button-toggle svg,.edit-post-header__dropdown .edit-post-fullscreen-mode-close.has-icon svg,.edit-post-header__dropdown .edit-post-header-toolbar__block-toolbar .components-button.has-icon svg,.show-icon-labels .edit-post-header .components-button.has-icon.button-toggle svg,.show-icon-labels .edit-post-header .edit-post-fullscreen-mode-close.has-icon svg,.show-icon-labels .edit-post-header .edit-post-header-toolbar__block-toolbar .components-button.has-icon svg,.show-icon-labels.interface-pinned-items .components-button.has-icon.button-toggle svg,.show-icon-labels.interface-pinned-items .edit-post-fullscreen-mode-close.has-icon svg,.show-icon-labels.interface-pinned-items .edit-post-header-toolbar__block-toolbar .components-button.has-icon svg{display:block}.edit-post-header__dropdown .components-button.has-icon.button-toggle:after,.edit-post-header__dropdown .edit-post-fullscreen-mode-close.has-icon:after,.edit-post-header__dropdown .edit-post-header-toolbar__block-toolbar .components-button.has-icon:after,.show-icon-labels .edit-post-header .components-button.has-icon.button-toggle:after,.show-icon-labels .edit-post-header .edit-post-fullscreen-mode-close.has-icon:after,.show-icon-labels .edit-post-header .edit-post-header-toolbar__block-toolbar .components-button.has-icon:after,.show-icon-labels.interface-pinned-items .components-button.has-icon.button-toggle:after,.show-icon-labels.interface-pinned-items .edit-post-fullscreen-mode-close.has-icon:after,.show-icon-labels.interface-pinned-items .edit-post-header-toolbar__block-toolbar .components-button.has-icon:after{content:none}.edit-post-header__dropdown .edit-post-fullscreen-mode-close.has-icon,.show-icon-labels .edit-post-header .edit-post-fullscreen-mode-close.has-icon,.show-icon-labels.interface-pinned-items .edit-post-fullscreen-mode-close.has-icon{width:60px}.edit-post-header__dropdown .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon,.show-icon-labels .edit-post-header .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon,.show-icon-labels.interface-pinned-items .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon{display:block}.edit-post-header__dropdown .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.edit-post-header__dropdown .interface-pinned-items .components-button,.show-icon-labels .edit-post-header .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.show-icon-labels .edit-post-header .interface-pinned-items .components-button,.show-icon-labels.interface-pinned-items .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.show-icon-labels.interface-pinned-items .interface-pinned-items .components-button{padding-right:8px;padding-left:8px}@media (min-width:600px){.edit-post-header__dropdown .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.edit-post-header__dropdown .interface-pinned-items .components-button,.show-icon-labels .edit-post-header .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.show-icon-labels .edit-post-header .interface-pinned-items .components-button,.show-icon-labels.interface-pinned-items .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.show-icon-labels.interface-pinned-items .interface-pinned-items .components-button{padding-right:12px;padding-left:12px}}.edit-post-header__dropdown .components-dropdown-menu__toggle,.show-icon-labels .edit-post-header .components-dropdown-menu__toggle,.show-icon-labels.interface-pinned-items .components-dropdown-menu__toggle{margin-right:8px;padding-right:8px;padding-left:8px}@media (min-width:600px){.edit-post-header__dropdown .components-dropdown-menu__toggle,.show-icon-labels .edit-post-header .components-dropdown-menu__toggle,.show-icon-labels.interface-pinned-items .components-dropdown-menu__toggle{margin-right:12px;padding-right:12px;padding-left:12px}}.edit-post-header__dropdown .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle:after,.show-icon-labels .edit-post-header .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle:after,.show-icon-labels.interface-pinned-items .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle:after{content:none}.edit-post-header__dropdown .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels .edit-post-header .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels.interface-pinned-items .editor-post-save-draft.editor-post-save-draft:after{content:none}@media (min-width:600px){.edit-post-header__dropdown .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels .edit-post-header .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels.interface-pinned-items .editor-post-save-draft.editor-post-save-draft:after{content:attr(aria-label)}}.edit-post-header__dropdown .components-button.block-editor-block-navigation,.edit-post-header__dropdown .components-button.editor-history__redo,.edit-post-header__dropdown .components-button.editor-history__undo,.edit-post-header__dropdown .components-menu-item__button.components-menu-item__button,.edit-post-header__dropdown .table-of-contents .components-button{margin:0;padding:6px 40px 6px 6px;width:14.625rem;text-align:right;justify-content:flex-start}.show-icon-labels.interface-pinned-items{padding:6px 12px 12px;margin:0 -12px;border-bottom:1px solid #ccc;display:block}.show-icon-labels.interface-pinned-items>.components-button.has-icon{margin:0;padding:6px 8px 6px 6px;width:14.625rem;justify-content:flex-start}.show-icon-labels.interface-pinned-items>.components-button.has-icon[aria-expanded=true] svg{display:block;max-width:24px}.show-icon-labels.interface-pinned-items>.components-button.has-icon[aria-expanded=false]{padding-right:40px}.show-icon-labels.interface-pinned-items>.components-button.has-icon svg{margin-left:8px}.edit-post-fullscreen-mode-close.has-icon{display:none}@media (min-width:782px){.edit-post-fullscreen-mode-close.has-icon{display:flex;align-items:center;-ms-grid-row-align:stretch;align-self:stretch;border:none;background:#23282e;color:#fff;border-radius:0;height:auto;width:60px}.edit-post-fullscreen-mode-close.has-icon:hover{background:#32373d}.edit-post-fullscreen-mode-close.has-icon:active{color:#fff}.edit-post-fullscreen-mode-close.has-icon:focus{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 0 0 2.5px #fff;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 0 0 2.5px #fff}}.edit-post-fullscreen-mode-close_site-icon{width:36px}.edit-post-header-toolbar{display:inline-flex;align-items:center;border:none}.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-button{display:none}@media (min-width:600px){.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-button{display:inline-flex}}.edit-post-header-toolbar .edit-post-header-toolbar__left>.edit-post-header-toolbar__inserter-toggle{display:inline-flex}.edit-post-header-toolbar .block-editor-block-navigation{display:none}@media (min-width:600px){.edit-post-header-toolbar .block-editor-block-navigation{display:flex}}.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-button.has-icon,.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-dropdown>.components-button.has-icon{height:36px;min-width:36px;padding:6px}.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-button.has-icon.is-pressed,.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-dropdown>.components-button.has-icon.is-pressed{background:#1e1e1e}.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-button.has-icon:focus:not(:disabled),.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-dropdown>.components-button.has-icon:focus:not(:disabled){box-shadow:0 0 0 1.5px #007cba,inset 0 0 0 1px #fff;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color),inset 0 0 0 1px #fff;outline:1px solid transparent}.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-button.has-icon:before,.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-dropdown>.components-button.has-icon:before{display:none}.edit-post-header-toolbar__left{display:inline-flex;align-items:center;padding-right:8px}@media (min-width:600px){.edit-post-header-toolbar__left{padding-right:24px}}@media (min-width:1280px){.edit-post-header-toolbar__left{padding-left:8px}}.edit-post-header-toolbar__block-toolbar{position:absolute;top:61px;right:0;left:0;background:#fff;border-bottom:1px solid #ddd}.edit-post-header-toolbar__block-toolbar:empty{display:none}.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar,.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar-group{border-top:none;border-bottom:none}.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar__block-parent-selector-wrapper,.is-sidebar-opened .edit-post-header-toolbar__block-toolbar{display:none}@media (min-width:782px){.is-sidebar-opened .edit-post-header-toolbar__block-toolbar{display:block;left:280px}}@media (min-width:1280px){.edit-post-header-toolbar__block-toolbar{position:static;right:auto;left:auto;background:none;border-bottom:none}.is-sidebar-opened .edit-post-header-toolbar__block-toolbar{left:auto}.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar{border-right:1px solid #ddd}.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar,.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar-group{height:60px;padding:6px 0}}.edit-post-header-toolbar .edit-post-header-toolbar__left>.edit-post-header-toolbar__inserter-toggle.has-icon{margin-left:8px;min-width:32px;width:32px;height:32px;padding:0}.show-icon-labels .edit-post-header-toolbar .edit-post-header-toolbar__left>.edit-post-header-toolbar__inserter-toggle.has-icon{height:36px}@media (min-width:1280px){.show-icon-labels .edit-post-header-toolbar__block-toolbar{position:absolute;top:61px;right:0;left:0;border-bottom:1px solid #ddd;padding:0;background-color:#fff}.show-icon-labels .edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar,.show-icon-labels .edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar-group{height:auto;padding:0}}.edit-post-more-menu{margin-right:-4px}.edit-post-more-menu .components-button{width:auto;padding:0 2px}@media (min-width:600px){.edit-post-more-menu{margin-right:0}.edit-post-more-menu .components-button{padding:0 4px}}.edit-post-more-menu__content .components-popover__content{min-width:280px}@media (min-width:480px){.edit-post-more-menu__content .components-popover__content{width:auto;max-width:480px}}.edit-post-more-menu__content .components-popover__content .components-dropdown-menu__menu{padding:0}.components-popover.edit-post-more-menu__content{z-index:99998}.edit-post-keyboard-shortcut-help-modal__section{margin:0 0 2rem}.edit-post-keyboard-shortcut-help-modal__main-shortcuts .edit-post-keyboard-shortcut-help-modal__shortcut-list{margin-top:-25px}.edit-post-keyboard-shortcut-help-modal__section-title{font-size:.9rem;font-weight:600}.edit-post-keyboard-shortcut-help-modal__shortcut{display:flex;align-items:baseline;padding:.6rem 0;border-top:1px solid #ddd;margin-bottom:0}.edit-post-keyboard-shortcut-help-modal__shortcut:last-child{border-bottom:1px solid #ddd}.edit-post-keyboard-shortcut-help-modal__shortcut:empty{display:none}.edit-post-keyboard-shortcut-help-modal__shortcut-term{font-weight:600;margin:0 1rem 0 0;text-align:left}.edit-post-keyboard-shortcut-help-modal__shortcut-description{flex:1;margin:0;flex-basis:auto}.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination{display:block;background:none;margin:0;padding:0}.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination+.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination{margin-top:10px}.edit-post-keyboard-shortcut-help-modal__shortcut-key{padding:.25rem .5rem;border-radius:8%;margin:0 .2rem}.edit-post-keyboard-shortcut-help-modal__shortcut-key:last-child{margin:0 .2rem 0 0}.edit-post-layout__metaboxes{flex-shrink:0}.edit-post-layout__metaboxes:not(:empty){border-top:1px solid #ddd;padding:10px 0;clear:both}.edit-post-layout__metaboxes:not(:empty) .edit-post-meta-boxes-area{margin:auto 20px}.edit-post-layout .components-editor-notices__snackbar{position:fixed;left:0;bottom:40px;padding-right:16px;padding-left:16px;right:0}@media (min-width:783px){.edit-post-layout .components-editor-notices__snackbar{right:160px}}@media (min-width:783px){.auto-fold .edit-post-layout .components-editor-notices__snackbar{right:36px}}@media (min-width:961px){.auto-fold .edit-post-layout .components-editor-notices__snackbar{right:160px}}.folded .edit-post-layout .components-editor-notices__snackbar{right:0}@media (min-width:783px){.folded .edit-post-layout .components-editor-notices__snackbar{right:36px}}@media (max-width:783px){.auto-fold .wp-responsive-open .edit-post-layout .components-editor-notices__snackbar{right:190px}}@media (max-width:600px){.auto-fold .wp-responsive-open .edit-post-layout .components-editor-notices__snackbar{margin-right:-18px}}body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar{right:0!important}.edit-post-layout .editor-post-publish-panel{position:fixed;z-index:100001;top:46px;bottom:0;left:0;right:0;overflow:auto}@media (min-width:782px){.edit-post-layout .editor-post-publish-panel{z-index:99998;top:32px;right:auto;width:281px;border-right:1px solid #ddd;transform:translateX(-100%);animation:edit-post-post-publish-panel__slide-in-animation .1s forwards}}@media (min-width:782px) and (prefers-reduced-motion:reduce){.edit-post-layout .editor-post-publish-panel{animation-duration:1ms}}@media (min-width:782px){body.is-fullscreen-mode .edit-post-layout .editor-post-publish-panel{top:0}.is-focusing-regions .edit-post-layout .editor-post-publish-panel{transform:translateX(0)}}@keyframes edit-post-post-publish-panel__slide-in-animation{to{transform:translateX(0)}}.interface-interface-skeleton__sidebar>div{height:100%;padding-bottom:48px}.edit-post-layout .editor-post-publish-panel__header-publish-button{justify-content:center}.edit-post-layout__toggle-entities-saved-states-panel,.edit-post-layout__toggle-publish-panel,.edit-post-layout__toogle-sidebar-panel{z-index:100000;position:fixed!important;top:-9999em;bottom:auto;right:auto;left:0;width:280px;background-color:#fff;border:1px dotted #ddd;height:auto!important;padding:24px;display:flex;justify-content:center}.interface-interface-skeleton__actions:focus-within .edit-post-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus-within .edit-post-layout__toggle-publish-panel,.interface-interface-skeleton__actions:focus-within .edit-post-layout__toogle-sidebar-panel,.interface-interface-skeleton__actions:focus .edit-post-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus .edit-post-layout__toggle-publish-panel,.interface-interface-skeleton__actions:focus .edit-post-layout__toogle-sidebar-panel{top:auto;bottom:0}.edit-post-layout .interface-interface-skeleton__content{background-color:#ccc}.edit-post-layout__inserter-panel-popover-wrapper,.edit-post-layout__inserter-panel-popover-wrapper>div,.edit-post-layout__inserter-panel-popover-wrapper>div>div,.edit-post-layout__inserter-panel-popover-wrapper>div>div>div{height:100%}.edit-post-layout__inserter-panel{height:100%;display:flex;flex-direction:column}.edit-post-layout__inserter-panel-header{padding-top:8px;padding-left:8px;display:flex;justify-content:flex-end}@media (min-width:782px){.edit-post-layout__inserter-panel-header{display:none}}.edit-post-layout__inserter-panel-content{height:calc(100% - 44px)}@media (min-width:782px){.edit-post-layout__inserter-panel-content{height:100%}}@media (min-width:600px){.edit-post-manage-blocks-modal{height:calc(100% - 120px)}}.edit-post-manage-blocks-modal .components-modal__content{padding-bottom:0;display:flex;flex-direction:column}.edit-post-manage-blocks-modal .components-modal__header{flex-shrink:0;margin-bottom:0}.edit-post-manage-blocks-modal__content{display:flex;flex-direction:column;flex:0 1 100%;min-height:0}.edit-post-manage-blocks-modal__no-results{font-style:italic;padding:24px 0;text-align:center}.edit-post-manage-blocks-modal__search{margin:16px 0}.edit-post-manage-blocks-modal__search .components-base-control__field{margin-bottom:0}.edit-post-manage-blocks-modal__search .components-base-control__label{margin-top:-4px}.edit-post-manage-blocks-modal__search input[type=search].components-text-control__input{padding:8px;border-radius:2px}.edit-post-manage-blocks-modal__disabled-blocks-count{border-top:1px solid #ddd;margin-right:-24px;margin-left:-24px;padding:.6rem 24px;background-color:#f0f0f0}.edit-post-manage-blocks-modal__category{margin:0 0 2rem}.edit-post-manage-blocks-modal__category-title{position:-webkit-sticky;position:sticky;top:0;padding:16px 0;background-color:#fff;z-index:1}.edit-post-manage-blocks-modal__category-title .components-base-control__field{margin-bottom:0}.edit-post-manage-blocks-modal__category-title .components-checkbox-control__label{font-size:.9rem;font-weight:600}.edit-post-manage-blocks-modal__show-all{margin-left:8px}.edit-post-manage-blocks-modal__checklist{margin-top:0}.edit-post-manage-blocks-modal__checklist-item{margin-bottom:0;padding-right:16px;border-top:1px solid #ddd}.edit-post-manage-blocks-modal__checklist-item:last-child{border-bottom:1px solid #ddd}.edit-post-manage-blocks-modal__checklist-item .components-base-control__field{align-items:center;display:flex;margin:0}.components-modal__content .edit-post-manage-blocks-modal__checklist-item.components-checkbox-control__input-container{margin:0 8px}.edit-post-manage-blocks-modal__checklist-item .components-checkbox-control__label{display:flex;align-items:center;justify-content:space-between;flex-grow:1;padding:.6rem 10px .6rem 0}.edit-post-manage-blocks-modal__checklist-item .block-editor-block-icon{margin-left:10px;fill:#1e1e1e}.edit-post-manage-blocks-modal__results{height:100%;overflow:auto;margin-right:-24px;margin-left:-24px;padding-right:24px;padding-left:24px;border-top:1px solid #ddd}.edit-post-meta-boxes-area{position:relative}.edit-post-meta-boxes-area .inside,.edit-post-meta-boxes-area__container{box-sizing:content-box}.edit-post-meta-boxes-area input,.edit-post-meta-boxes-area textarea{box-sizing:border-box}.edit-post-meta-boxes-area #poststuff{margin:0 auto;padding-top:0;min-width:auto}.edit-post-meta-boxes-area #poststuff .stuffbox>h3,.edit-post-meta-boxes-area #poststuff h2.hndle,.edit-post-meta-boxes-area #poststuff h3.hndle{box-sizing:border-box;color:inherit;font-weight:600;outline:none;padding:15px;position:relative;width:100%}.edit-post-meta-boxes-area .postbox{border:0;color:inherit;margin-bottom:0}.edit-post-meta-boxes-area .postbox>.inside{border-bottom:1px solid #ddd;color:inherit;padding:0 14px 14px;margin:0}.edit-post-meta-boxes-area .postbox .handlediv{height:44px;width:44px}.edit-post-meta-boxes-area.is-loading:before{position:absolute;top:0;right:0;left:0;bottom:0;content:"";background:transparent;z-index:1}.edit-post-meta-boxes-area .components-spinner{position:absolute;top:10px;left:20px;z-index:5}.edit-post-meta-boxes-area .is-hidden{display:none}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]{border:1px solid #757575}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]:checked{background:#fff;border-color:#757575}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]:before{margin:-3px -4px}.edit-post-meta-boxes-area__clear{clear:both}.edit-post-preferences-modal__section{margin:0 0 2.5rem}.edit-post-preferences-modal__section-title{font-size:.9rem;font-weight:600}.edit-post-preferences-modal__option .components-base-control__field{align-items:center;display:flex;margin:0}.edit-post-preferences-modal__option .components-checkbox-control__label{flex-grow:1;padding:.6rem 10px .6rem 0}.edit-post-preferences-modal__custom-fields-confirmation-button,.edit-post-preferences-modal__custom-fields-confirmation-message{margin:0 48px .6rem 0}@media (min-width:782px){.edit-post-preferences-modal__custom-fields-confirmation-button,.edit-post-preferences-modal__custom-fields-confirmation-message{margin-right:38px}}@media (min-width:600px){.edit-post-preferences-modal__custom-fields-confirmation-button,.edit-post-preferences-modal__custom-fields-confirmation-message{max-width:300px}}.edit-post-preferences-modal .components-base-control__help{margin:-8px 42px 8px 0;font-size:12px;font-style:normal;color:#757575}.edit-post-preferences-modal .edit-post-preferences-modal__section-description{margin:-8px 0 8px;font-size:12px;font-style:normal;color:#757575}.components-panel__header.edit-post-sidebar__panel-tabs{justify-content:flex-start;padding-right:0;padding-left:16px;border-top:0;margin-top:0}.components-panel__header.edit-post-sidebar__panel-tabs ul{display:flex}.components-panel__header.edit-post-sidebar__panel-tabs li{margin:0}.components-panel__header.edit-post-sidebar__panel-tabs .components-button.has-icon{display:none;margin:0 auto 0 0;padding:0;min-width:24px;height:24px}@media (min-width:782px){.components-panel__header.edit-post-sidebar__panel-tabs .components-button.has-icon{display:flex}}.components-panel__body.is-opened.edit-post-last-revision__panel{padding:0;height:48px}.editor-post-last-revision__title.components-button{padding:16px}.editor-post-author__select{margin:-5px 0;width:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.editor-post-author__select{width:auto}}.edit-post-post-link__link-post-name{font-weight:600}.edit-post-post-link__preview-label{font-weight:400;margin:0}.edit-post-post-link__link{text-align:right;word-wrap:break-word;display:block}.edit-post-post-link__preview-link-container{direction:ltr}.edit-post-post-schedule{width:100%;position:relative;justify-content:left}.edit-post-post-schedule span{display:block;width:45%}.components-button.edit-post-post-schedule__toggle{text-align:left}.editor-post-slug__input{margin:-5px 0;padding:2px}.edit-post-post-status .edit-post-post-publish-dropdown__switch-to-draft{margin-top:15px;width:100%;text-align:center}.edit-post-post-visibility{width:100%;justify-content:left}.edit-post-post-visibility span{display:block;width:45%}@media (min-width:782px){.edit-post-post-visibility__dialog .components-popover__content{width:257px}}.edit-post-post-visibility__dialog-legend{font-weight:600}.edit-post-post-visibility__choice{margin:10px 0}.edit-post-post-visibility__dialog-label,.edit-post-post-visibility__dialog-radio{vertical-align:top}.edit-post-post-visibility__dialog-password-input{width:calc(100% - 20px);margin-right:20px}.edit-post-post-visibility__dialog-info{color:#757575;padding-right:20px;font-style:italic;margin:4px 0 0;line-height:1.4}.components-button.edit-post-sidebar__panel-tab{border-radius:0;height:48px;background:transparent;border:none;box-shadow:none;cursor:pointer;display:inline-block;padding:3px 15px;margin-right:0;font-weight:500}.components-button.edit-post-sidebar__panel-tab:after{content:attr(data-label);display:block;font-weight:600;height:0;overflow:hidden;speak:none;visibility:hidden}.components-button.edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 0 0 1.5px transparent,inset 0 -4px 0 0 #007cba;box-shadow:inset 0 0 0 1.5px transparent,inset 0 -4px 0 0 var(--wp-admin-theme-color);position:relative;z-index:1}.components-button.edit-post-sidebar__panel-tab.is-active:before{content:"";position:absolute;top:0;bottom:1px;left:0;right:0;border-bottom:4px solid transparent}.components-button.edit-post-sidebar__panel-tab:focus{box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color);position:relative;z-index:1}.components-button.edit-post-sidebar__panel-tab.is-active:focus{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 -4px 0 0 #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 -4px 0 0 var(--wp-admin-theme-color)}.edit-post-text-editor{position:relative;width:100%;background-color:#fff;flex-grow:1}.edit-post-text-editor .wp-block.editor-post-title{max-width:none;line-height:1.4}.edit-post-text-editor .wp-block.editor-post-title .editor-post-title__input.editor-post-title__input.editor-post-title__input{font-family:Menlo,Consolas,monaco,monospace;font-size:2.5em;font-weight:400}.edit-post-text-editor .wp-block.editor-post-title .editor-post-title__input{border:1px solid #949494;margin-bottom:-1px;padding:16px}@media (min-width:600px){.edit-post-text-editor .wp-block.editor-post-title .editor-post-title__input{padding:24px}}.edit-post-text-editor .wp-block.editor-post-title .editor-post-title__input:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color)}@media (min-width:600px){.edit-post-text-editor .wp-block.editor-post-title{padding:0}}.edit-post-text-editor__body{width:100%;padding:0 12px 12px;max-width:1080px;margin-right:auto;margin-left:auto}@media (min-width:960px){.edit-post-text-editor__body{padding:0 24px 24px}}.edit-post-text-editor__toolbar{position:-webkit-sticky;position:sticky;z-index:1;top:0;right:0;left:0;display:flex;background:hsla(0,0%,100%,.8);padding:4px 12px}@media (min-width:600px){.edit-post-text-editor__toolbar{padding:12px}}@media (min-width:960px){.edit-post-text-editor__toolbar{padding:12px 24px}}.edit-post-text-editor__toolbar h2{line-height:36px;margin:0 0 0 auto;font-size:13px;color:#1e1e1e}.edit-post-text-editor__toolbar .components-button svg{order:1}.edit-post-visual-editor{position:relative;padding-top:50px;background-color:#fff;flex:1 1 auto}.edit-post-visual-editor .components-button{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:6px 12px}.edit-post-visual-editor .components-button.has-icon,.edit-post-visual-editor .components-button.is-tertiary{padding:6px}@supports ((position:-webkit-sticky) or (position:sticky)){.edit-post-visual-editor{flex-basis:100%}}.edit-post-visual-editor>.block-editor__typewriter,.edit-post-visual-editor>.block-editor__typewriter>div,.edit-post-visual-editor>.block-editor__typewriter>div>.block-editor-writing-flow,.edit-post-visual-editor>.block-editor__typewriter>div>.block-editor-writing-flow>.block-editor-writing-flow__click-redirect{height:100%}.edit-post-visual-editor .block-editor-writing-flow__click-redirect{min-height:40vh;width:100%}.has-metaboxes .edit-post-visual-editor .block-editor-writing-flow__click-redirect{height:0}.edit-post-visual-editor__post-title-wrapper .editor-post-title{margin:2em auto 32px}.edit-post-welcome-guide{width:312px}.edit-post-welcome-guide__image{background:#00a0d2;height:240px}.edit-post-welcome-guide__image__prm-r{display:none}@media (prefers-reduced-motion:reduce){.edit-post-welcome-guide__image__prm-r{display:block}.edit-post-welcome-guide__image__prm-np{display:none}}.edit-post-welcome-guide__heading{font-family:"Noto Serif",serif;font-size:24px;line-height:1.4;margin:0 0 16px;padding:0 32px}.edit-post-welcome-guide__text{font-size:13px;line-height:1.4;margin:0 0 24px;padding:0 32px}.edit-post-welcome-guide__inserter-icon{margin:0 4px;vertical-align:text-top}@keyframes edit-post__fade-in-animation{0%{opacity:0}to{opacity:1}}body.block-editor-page,html.wp-toolbar{background:#fff}body.block-editor-page #wpcontent{padding-right:0}body.block-editor-page #wpbody-content{padding-bottom:0}body.block-editor-page #wpbody-content>div:not(.block-editor):not(#screen-meta){display:none}body.block-editor-page #wpfooter{display:none}body.block-editor-page .a11y-speak-region{right:-1px;top:-1px}body.block-editor-page ul#adminmenu>li.current>a.current:after,body.block-editor-page ul#adminmenu a.wp-has-current-submenu:after{border-left-color:#fff}body.block-editor-page .media-frame select.attachment-filters:last-of-type{width:auto;max-width:100%}.components-modal__frame,.components-popover,.edit-post-header,.edit-post-layout__inserter-panel,.edit-post-sidebar,.edit-post-text-editor,.edit-post-visual-editor,.editor-post-publish-panel{box-sizing:border-box}.components-modal__frame *,.components-modal__frame :after,.components-modal__frame :before,.components-popover *,.components-popover :after,.components-popover :before,.edit-post-header *,.edit-post-header :after,.edit-post-header :before,.edit-post-layout__inserter-panel *,.edit-post-layout__inserter-panel :after,.edit-post-layout__inserter-panel :before,.edit-post-sidebar *,.edit-post-sidebar :after,.edit-post-sidebar :before,.edit-post-text-editor *,.edit-post-text-editor :after,.edit-post-text-editor :before,.edit-post-visual-editor *,.edit-post-visual-editor :after,.edit-post-visual-editor :before,.editor-post-publish-panel *,.editor-post-publish-panel :after,.editor-post-publish-panel :before{box-sizing:inherit}@media (min-width:600px){.block-editor__container{position:absolute;top:0;left:0;bottom:0;right:0;min-height:calc(100vh - 46px)}}@media (min-width:782px){.block-editor__container{min-height:calc(100vh - 32px)}body.is-fullscreen-mode .block-editor__container{min-height:100vh}}.block-editor__container img{max-width:100%;height:auto}.block-editor__container iframe{width:100%}.block-editor__container .components-navigate-regions{height:100%}.wp-block{max-width:580px}.wp-block[data-align=wide]{max-width:1100px}.wp-block[data-align=full]{max-width:none}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-20:#006187}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-20:#183ad6}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-20:#064054}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-20:#2b2724}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-20:#3a2c4d}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-20:#d02c21}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-20:#4c6066}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-20:#c36922} \ No newline at end of file diff --git a/wp-includes/css/dist/edit-post/style.css b/wp-includes/css/dist/edit-post/style.css index 3a77ef0f26..1ba8d38a58 100644 --- a/wp-includes/css/dist/edit-post/style.css +++ b/wp-includes/css/dist/edit-post/style.css @@ -175,7 +175,7 @@ html.interface-interface-skeleton__html-container { .interface-interface-skeleton { display: flex; - flex-direction: column; + flex-direction: row; height: auto; max-height: 100%; position: fixed; @@ -189,6 +189,11 @@ html.interface-interface-skeleton__html-container { .is-fullscreen-mode .interface-interface-skeleton { top: 0; } } +.interface-interface-skeleton__editor { + display: flex; + flex-direction: column; + flex-grow: 1; } + .interface-interface-skeleton { /* Set left position when auto-fold is not on the body element. */ left: 0; } @@ -284,6 +289,11 @@ body.is-fullscreen-mode .interface-interface-skeleton { flex-shrink: 0; border-top: 1px solid #e0e0e0; color: #1e1e1e; + position: fixed; + bottom: 0; + width: 100%; + background-color: #fff; + z-index: 90; display: none; } @media (min-width: 782px) { .interface-interface-skeleton__footer { @@ -336,11 +346,7 @@ body.is-fullscreen-mode .interface-interface-skeleton { .edit-post-header__toolbar { display: flex; - flex-grow: 1; - padding-left: 8px; } - @media (min-width: 600px) { - .edit-post-header__toolbar { - padding-left: 24px; } } + flex-grow: 1; } .edit-post-header__toolbar .table-of-contents { display: none; } @media (min-width: 600px) { @@ -351,29 +357,26 @@ body.is-fullscreen-mode .interface-interface-skeleton { display: inline-flex; align-items: center; flex-wrap: wrap; - padding-right: 4px; } + padding-right: 4px; + /** + * Buttons in the Toolbar + */ } @media (min-width: 600px) { .edit-post-header__settings { padding-right: 16px; } } - -/** - * Buttons in the Toolbar - */ -.edit-post-header__settings .editor-post-saved-state, -.edit-post-header__settings .components-button.components-button { - margin-right: 4px; } - @media (min-width: 600px) { - .edit-post-header__settings .editor-post-saved-state, - .edit-post-header__settings .components-button.components-button { - margin-right: 12px; } } - -.edit-post-header__settings .editor-post-saved-state, -.edit-post-header__settings .components-button.is-tertiary { - padding: 0 6px; } - -.edit-post-header__settings .edit-post-more-menu .components-button, -.edit-post-header__settings .interface-pinned-items .components-button { - margin-right: 0; } + .edit-post-header__settings .editor-post-saved-state, + .edit-post-header__settings .components-button.components-button { + margin-right: 4px; } + @media (min-width: 600px) { + .edit-post-header__settings .editor-post-saved-state, + .edit-post-header__settings .components-button.components-button { + margin-right: 12px; } } + .edit-post-header__settings .editor-post-saved-state, + .edit-post-header__settings .components-button.is-tertiary { + padding: 0 6px; } + .edit-post-header__settings .edit-post-more-menu .components-button, + .edit-post-header__settings .interface-pinned-items .components-button { + margin-right: 0; } .edit-post-header-preview__grouping-external { display: flex; @@ -534,7 +537,8 @@ body.is-fullscreen-mode .interface-interface-skeleton { .edit-post-fullscreen-mode-close.has-icon { display: flex; align-items: center; - align-self: stretch; + -ms-grid-row-align: stretch; + align-self: stretch; border: none; background: #23282e; color: #fff; @@ -556,35 +560,46 @@ body.is-fullscreen-mode .interface-interface-skeleton { display: inline-flex; align-items: center; border: none; } - .edit-post-header-toolbar > .components-button { + .edit-post-header-toolbar .edit-post-header-toolbar__left > .components-button { display: none; } @media (min-width: 600px) { - .edit-post-header-toolbar > .components-button { + .edit-post-header-toolbar .edit-post-header-toolbar__left > .components-button { display: inline-flex; } } - .edit-post-header-toolbar > .edit-post-header-toolbar__inserter-toggle { + .edit-post-header-toolbar .edit-post-header-toolbar__left > .edit-post-header-toolbar__inserter-toggle { display: inline-flex; } .edit-post-header-toolbar .block-editor-block-navigation { display: none; } @media (min-width: 600px) { .edit-post-header-toolbar .block-editor-block-navigation { display: flex; } } - .edit-post-header-toolbar > .components-button.has-icon, - .edit-post-header-toolbar > .components-dropdown > .components-button.has-icon { + .edit-post-header-toolbar .edit-post-header-toolbar__left > .components-button.has-icon, + .edit-post-header-toolbar .edit-post-header-toolbar__left > .components-dropdown > .components-button.has-icon { height: 36px; min-width: 36px; padding: 6px; } - .edit-post-header-toolbar > .components-button.has-icon.is-pressed, - .edit-post-header-toolbar > .components-dropdown > .components-button.has-icon.is-pressed { + .edit-post-header-toolbar .edit-post-header-toolbar__left > .components-button.has-icon.is-pressed, + .edit-post-header-toolbar .edit-post-header-toolbar__left > .components-dropdown > .components-button.has-icon.is-pressed { background: #1e1e1e; } - .edit-post-header-toolbar > .components-button.has-icon:focus:not(:disabled), - .edit-post-header-toolbar > .components-dropdown > .components-button.has-icon:focus:not(:disabled) { + .edit-post-header-toolbar .edit-post-header-toolbar__left > .components-button.has-icon:focus:not(:disabled), + .edit-post-header-toolbar .edit-post-header-toolbar__left > .components-dropdown > .components-button.has-icon:focus:not(:disabled) { box-shadow: 0 0 0 1.5px #007cba, inset 0 0 0 1px #fff; box-shadow: 0 0 0 1.5px var(--wp-admin-theme-color), inset 0 0 0 1px #fff; outline: 1px solid transparent; } - .edit-post-header-toolbar > .components-button.has-icon::before, - .edit-post-header-toolbar > .components-dropdown > .components-button.has-icon::before { + .edit-post-header-toolbar .edit-post-header-toolbar__left > .components-button.has-icon::before, + .edit-post-header-toolbar .edit-post-header-toolbar__left > .components-dropdown > .components-button.has-icon::before { display: none; } +.edit-post-header-toolbar__left { + display: inline-flex; + align-items: center; + padding-left: 8px; } + @media (min-width: 600px) { + .edit-post-header-toolbar__left { + padding-left: 24px; } } + @media (min-width: 1280px) { + .edit-post-header-toolbar__left { + padding-right: 8px; } } + .edit-post-header-toolbar__block-toolbar { position: absolute; top: 61px; @@ -600,13 +615,14 @@ body.is-fullscreen-mode .interface-interface-skeleton { border-bottom: none; } .is-sidebar-opened .edit-post-header-toolbar__block-toolbar { display: none; } + .edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar__block-parent-selector-wrapper { + display: none; } @media (min-width: 782px) { .is-sidebar-opened .edit-post-header-toolbar__block-toolbar { display: block; right: 280px; } } @media (min-width: 1280px) { .edit-post-header-toolbar__block-toolbar { - padding-left: 8px; position: static; left: auto; right: auto; @@ -621,12 +637,14 @@ body.is-fullscreen-mode .interface-interface-skeleton { height: 60px; padding: 6px 0; } } -.edit-post-header-toolbar .edit-post-header-toolbar__inserter-toggle.has-icon { +.edit-post-header-toolbar .edit-post-header-toolbar__left > .edit-post-header-toolbar__inserter-toggle.has-icon { margin-right: 8px; min-width: 32px; width: 32px; height: 32px; padding: 0; } + .show-icon-labels .edit-post-header-toolbar .edit-post-header-toolbar__left > .edit-post-header-toolbar__inserter-toggle.has-icon { + height: 36px; } @media (min-width: 1280px) { .show-icon-labels .edit-post-header-toolbar__block-toolbar { @@ -642,9 +660,6 @@ body.is-fullscreen-mode .interface-interface-skeleton { height: auto; padding: 0; } } -.show-icon-labels .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle { - height: 36px; } - .edit-post-more-menu { margin-left: -4px; } .edit-post-more-menu .components-button { @@ -821,22 +836,12 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar { display: flex; justify-content: center; } .interface-interface-skeleton__actions:focus .edit-post-layout__toggle-publish-panel, - .interface-interface-skeleton__actions:focus-within .edit-post-layout__toggle-publish-panel, - .interface-interface-skeleton__actions:focus .edit-post-layout__toggle-publish-panel, .interface-interface-skeleton__actions:focus-within .edit-post-layout__toggle-publish-panel, .interface-interface-skeleton__actions:focus .edit-post-layout__toogle-sidebar-panel, .interface-interface-skeleton__actions:focus-within - .edit-post-layout__toogle-sidebar-panel, - .interface-interface-skeleton__actions:focus - .edit-post-layout__toogle-sidebar-panel, - .interface-interface-skeleton__actions:focus-within .edit-post-layout__toogle-sidebar-panel, .interface-interface-skeleton__actions:focus .edit-post-layout__toggle-entities-saved-states-panel, .interface-interface-skeleton__actions:focus-within - .edit-post-layout__toggle-entities-saved-states-panel, - .interface-interface-skeleton__actions:focus - .edit-post-layout__toggle-entities-saved-states-panel, - .interface-interface-skeleton__actions:focus-within .edit-post-layout__toggle-entities-saved-states-panel { top: auto; bottom: 0; } @@ -1038,6 +1043,43 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar { .edit-post-meta-boxes-area__clear { clear: both; } +.edit-post-preferences-modal__section { + margin: 0 0 2.5rem 0; } + +.edit-post-preferences-modal__section-title { + font-size: 0.9rem; + font-weight: 600; } + +.edit-post-preferences-modal__option .components-base-control__field { + align-items: center; + display: flex; + margin: 0; } + +.edit-post-preferences-modal__option .components-checkbox-control__label { + flex-grow: 1; + padding: 0.6rem 0 0.6rem 10px; } + +.edit-post-preferences-modal__custom-fields-confirmation-message, .edit-post-preferences-modal__custom-fields-confirmation-button { + margin: 0 0 0.6rem 48px; } + @media (min-width: 782px) { + .edit-post-preferences-modal__custom-fields-confirmation-message, .edit-post-preferences-modal__custom-fields-confirmation-button { + margin-left: 38px; } } + @media (min-width: 600px) { + .edit-post-preferences-modal__custom-fields-confirmation-message, .edit-post-preferences-modal__custom-fields-confirmation-button { + max-width: 300px; } } + +.edit-post-preferences-modal .components-base-control__help { + margin: -8px 0 8px 42px; + font-size: 12px; + font-style: normal; + color: #757575; } + +.edit-post-preferences-modal .edit-post-preferences-modal__section-description { + margin: -8px 0 8px 0; + font-size: 12px; + font-style: normal; + color: #757575; } + .components-panel__header.edit-post-sidebar__panel-tabs { justify-content: flex-start; padding-left: 0; @@ -1279,34 +1321,6 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar { margin-right: auto; margin-bottom: 32px; } -.edit-post-options-modal__section { - margin: 0 0 2rem 0; } - -.edit-post-options-modal__section-title { - font-size: 0.9rem; - font-weight: 600; } - -.edit-post-options-modal__option { - border-top: 1px solid #ddd; } - .edit-post-options-modal__option:last-child { - border-bottom: 1px solid #ddd; } - .edit-post-options-modal__option .components-base-control__field { - align-items: center; - display: flex; - margin: 0; } - .edit-post-options-modal__option .components-checkbox-control__label { - flex-grow: 1; - padding: 0.6rem 0 0.6rem 10px; } - -.edit-post-options-modal__custom-fields-confirmation-message, .edit-post-options-modal__custom-fields-confirmation-button { - margin: 0 0 0.6rem 48px; } - @media (min-width: 782px) { - .edit-post-options-modal__custom-fields-confirmation-message, .edit-post-options-modal__custom-fields-confirmation-button { - margin-left: 38px; } } - @media (min-width: 600px) { - .edit-post-options-modal__custom-fields-confirmation-message, .edit-post-options-modal__custom-fields-confirmation-button { - max-width: 300px; } } - .edit-post-welcome-guide { width: 312px; } .edit-post-welcome-guide__image { diff --git a/wp-includes/css/dist/edit-post/style.min.css b/wp-includes/css/dist/edit-post/style.min.css index 26a4909362..62bc629d77 100644 --- a/wp-includes/css/dist/edit-post/style.min.css +++ b/wp-includes/css/dist/edit-post/style.min.css @@ -1 +1 @@ -:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87}.components-panel__header.interface-complementary-area-header__small{background:#fff;padding-right:4px}.components-panel__header.interface-complementary-area-header__small .interface-complementary-area-header__small-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}@media (min-width:782px){.components-panel__header.interface-complementary-area-header__small{display:none}}.interface-complementary-area-header{background:#fff;padding-right:4px}.interface-complementary-area-header .components-button.has-icon{display:none;margin-left:auto}.interface-complementary-area-header .components-button.has-icon~.components-button{margin-left:0}@media (min-width:782px){.interface-complementary-area-header .components-button.has-icon{display:flex}}.interface-complementary-area{background:#fff;color:#1e1e1e;overflow:visible}@media (min-width:600px){.interface-complementary-area{z-index:auto;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}}@media (min-width:782px){.interface-complementary-area{width:280px}}.interface-complementary-area>.components-panel{border-left:none;border-right:none;overflow:auto;-webkit-overflow-scrolling:touch;height:auto;max-height:calc(100vh - 142px);margin-top:-1px;margin-bottom:-1px;position:relative}@media (min-width:600px){.interface-complementary-area>.components-panel{overflow:visible;height:auto;max-height:none}}.interface-complementary-area>.components-panel .components-panel__header{position:fixed;z-index:1;top:0;left:0;right:0;height:48px}@media (min-width:600px){.interface-complementary-area>.components-panel .components-panel__header{position:inherit;top:auto;left:auto;right:auto}}.interface-complementary-area p{margin-top:0}.interface-complementary-area h2,.interface-complementary-area h3{font-size:13px;color:#1e1e1e;margin-bottom:1.5em}.interface-complementary-area hr{border-top:none;border-bottom:1px solid #f0f0f0;margin:1.5em 0}.interface-complementary-area div.components-toolbar,.interface-complementary-area div.components-toolbar-group{box-shadow:none;margin-bottom:1.5em}.interface-complementary-area div.components-toolbar-group:last-child,.interface-complementary-area div.components-toolbar:last-child{margin-bottom:0}.interface-complementary-area .block-editor-skip-to-selected-block:focus{top:auto;right:10px;bottom:10px;left:auto}@media (min-width:782px){body.js.is-fullscreen-mode{margin-top:-32px;height:calc(100% + 32px)}body.js.is-fullscreen-mode #adminmenumain,body.js.is-fullscreen-mode #wpadminbar{display:none}body.js.is-fullscreen-mode #wpcontent,body.js.is-fullscreen-mode #wpfooter{margin-left:0}}html.interface-interface-skeleton__html-container{position:fixed;width:100%}@media (min-width:782px){html.interface-interface-skeleton__html-container{position:static;width:auto}}.interface-interface-skeleton{display:flex;flex-direction:column;height:auto;max-height:100%;position:fixed;top:46px;right:0;bottom:0}@media (min-width:783px){.interface-interface-skeleton{top:32px}.is-fullscreen-mode .interface-interface-skeleton{top:0}}.interface-interface-skeleton{left:0}@media (min-width:783px){.interface-interface-skeleton{left:160px}}@media (min-width:783px){.auto-fold .interface-interface-skeleton{left:36px}}@media (min-width:961px){.auto-fold .interface-interface-skeleton{left:160px}}.folded .interface-interface-skeleton{left:0}@media (min-width:783px){.folded .interface-interface-skeleton{left:36px}}@media (max-width:783px){.auto-fold .wp-responsive-open .interface-interface-skeleton{left:190px}}@media (max-width:600px){.auto-fold .wp-responsive-open .interface-interface-skeleton{margin-left:-18px}}body.is-fullscreen-mode .interface-interface-skeleton{left:0!important}.interface-interface-skeleton__body{flex-grow:1;display:flex;overflow:auto;overscroll-behavior-y:none}.interface-interface-skeleton__content{flex-grow:1;display:flex;flex-direction:column;overflow:auto}.interface-interface-skeleton__left-sidebar,.interface-interface-skeleton__sidebar{display:block;width:auto;flex-shrink:0;position:absolute;z-index:100000;top:0;right:0;bottom:0;left:0;background:#fff;color:#1e1e1e}@media (min-width:782px){.interface-interface-skeleton__left-sidebar,.interface-interface-skeleton__sidebar{position:relative!important;z-index:90}}@media (min-width:782px){.interface-interface-skeleton__sidebar{overflow:auto;border-left:1px solid #e0e0e0}}@media (min-width:782px){.interface-interface-skeleton__left-sidebar{border-right:1px solid #e0e0e0}}.interface-interface-skeleton__header{flex-shrink:0;height:auto;border-bottom:1px solid #e0e0e0;z-index:30;color:#1e1e1e;position:-webkit-sticky;position:sticky;top:0}@media (min-width:600px){.interface-interface-skeleton__header{position:static;top:0}}.interface-interface-skeleton__footer{height:auto;flex-shrink:0;border-top:1px solid #e0e0e0;color:#1e1e1e;display:none}@media (min-width:782px){.interface-interface-skeleton__footer{display:flex}}.interface-interface-skeleton__footer .block-editor-block-breadcrumb{z-index:30;display:flex;background:#fff;height:24px;align-items:center;font-size:13px;padding:0 18px}.interface-interface-skeleton__actions{z-index:100000;position:fixed!important;top:-9999em;bottom:auto;left:auto;right:0;width:280px;color:#1e1e1e}.interface-interface-skeleton__actions:focus{top:auto;bottom:0}.interface-pinned-items{display:flex}.interface-pinned-items .components-button{margin-left:4px}.interface-pinned-items .components-button svg{max-width:24px;max-height:24px}.edit-post-header{height:60px;background:#fff;display:flex;flex-wrap:wrap;align-items:center;max-width:100vw}@media (min-width:280px){.edit-post-header{flex-wrap:nowrap}}.edit-post-header>.edit-post-header__settings{order:1}@supports ((position:-webkit-sticky) or (position:sticky)){.edit-post-header>.edit-post-header__settings{order:0}}.edit-post-header__toolbar{display:flex;flex-grow:1;padding-left:8px}@media (min-width:600px){.edit-post-header__toolbar{padding-left:24px}}.edit-post-header__toolbar .table-of-contents{display:none}@media (min-width:600px){.edit-post-header__toolbar .table-of-contents{display:block}}.edit-post-header__settings{display:inline-flex;align-items:center;flex-wrap:wrap;padding-right:4px}@media (min-width:600px){.edit-post-header__settings{padding-right:16px}}.edit-post-header__settings .components-button.components-button,.edit-post-header__settings .editor-post-saved-state{margin-right:4px}@media (min-width:600px){.edit-post-header__settings .components-button.components-button,.edit-post-header__settings .editor-post-saved-state{margin-right:12px}}.edit-post-header__settings .components-button.is-tertiary,.edit-post-header__settings .editor-post-saved-state{padding:0 6px}.edit-post-header__settings .edit-post-more-menu .components-button,.edit-post-header__settings .interface-pinned-items .components-button{margin-right:0}.edit-post-header-preview__grouping-external{display:flex;position:relative;padding-bottom:0}.edit-post-header-preview__button-external{padding-left:8px;margin-right:auto;width:100%;display:flex;justify-content:flex-start}.edit-post-header-preview__button-external svg{margin-left:auto}.edit-post-post-preview-dropdown .components-popover__content>div{padding-bottom:0}.edit-post-header__dropdown .components-button.has-icon,.show-icon-labels .edit-post-header .components-button.has-icon,.show-icon-labels.interface-pinned-items .components-button.has-icon{width:auto}.edit-post-header__dropdown .components-button.has-icon svg,.show-icon-labels .edit-post-header .components-button.has-icon svg,.show-icon-labels.interface-pinned-items .components-button.has-icon svg{display:none}.edit-post-header__dropdown .components-button.has-icon:after,.show-icon-labels .edit-post-header .components-button.has-icon:after,.show-icon-labels.interface-pinned-items .components-button.has-icon:after{content:attr(aria-label)}.edit-post-header__dropdown .components-button.has-icon[aria-disabled=true],.show-icon-labels .edit-post-header .components-button.has-icon[aria-disabled=true],.show-icon-labels.interface-pinned-items .components-button.has-icon[aria-disabled=true]{background-color:transparent}.edit-post-header__dropdown .is-tertiary:active,.show-icon-labels .edit-post-header .is-tertiary:active,.show-icon-labels.interface-pinned-items .is-tertiary:active{box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);background-color:transparent}.edit-post-header__dropdown .components-button.has-icon.button-toggle svg,.edit-post-header__dropdown .edit-post-fullscreen-mode-close.has-icon svg,.edit-post-header__dropdown .edit-post-header-toolbar__block-toolbar .components-button.has-icon svg,.show-icon-labels .edit-post-header .components-button.has-icon.button-toggle svg,.show-icon-labels .edit-post-header .edit-post-fullscreen-mode-close.has-icon svg,.show-icon-labels .edit-post-header .edit-post-header-toolbar__block-toolbar .components-button.has-icon svg,.show-icon-labels.interface-pinned-items .components-button.has-icon.button-toggle svg,.show-icon-labels.interface-pinned-items .edit-post-fullscreen-mode-close.has-icon svg,.show-icon-labels.interface-pinned-items .edit-post-header-toolbar__block-toolbar .components-button.has-icon svg{display:block}.edit-post-header__dropdown .components-button.has-icon.button-toggle:after,.edit-post-header__dropdown .edit-post-fullscreen-mode-close.has-icon:after,.edit-post-header__dropdown .edit-post-header-toolbar__block-toolbar .components-button.has-icon:after,.show-icon-labels .edit-post-header .components-button.has-icon.button-toggle:after,.show-icon-labels .edit-post-header .edit-post-fullscreen-mode-close.has-icon:after,.show-icon-labels .edit-post-header .edit-post-header-toolbar__block-toolbar .components-button.has-icon:after,.show-icon-labels.interface-pinned-items .components-button.has-icon.button-toggle:after,.show-icon-labels.interface-pinned-items .edit-post-fullscreen-mode-close.has-icon:after,.show-icon-labels.interface-pinned-items .edit-post-header-toolbar__block-toolbar .components-button.has-icon:after{content:none}.edit-post-header__dropdown .edit-post-fullscreen-mode-close.has-icon,.show-icon-labels .edit-post-header .edit-post-fullscreen-mode-close.has-icon,.show-icon-labels.interface-pinned-items .edit-post-fullscreen-mode-close.has-icon{width:60px}.edit-post-header__dropdown .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon,.show-icon-labels .edit-post-header .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon,.show-icon-labels.interface-pinned-items .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon{display:block}.edit-post-header__dropdown .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.edit-post-header__dropdown .interface-pinned-items .components-button,.show-icon-labels .edit-post-header .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.show-icon-labels .edit-post-header .interface-pinned-items .components-button,.show-icon-labels.interface-pinned-items .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.show-icon-labels.interface-pinned-items .interface-pinned-items .components-button{padding-left:8px;padding-right:8px}@media (min-width:600px){.edit-post-header__dropdown .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.edit-post-header__dropdown .interface-pinned-items .components-button,.show-icon-labels .edit-post-header .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.show-icon-labels .edit-post-header .interface-pinned-items .components-button,.show-icon-labels.interface-pinned-items .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.show-icon-labels.interface-pinned-items .interface-pinned-items .components-button{padding-left:12px;padding-right:12px}}.edit-post-header__dropdown .components-dropdown-menu__toggle,.show-icon-labels .edit-post-header .components-dropdown-menu__toggle,.show-icon-labels.interface-pinned-items .components-dropdown-menu__toggle{margin-left:8px;padding-left:8px;padding-right:8px}@media (min-width:600px){.edit-post-header__dropdown .components-dropdown-menu__toggle,.show-icon-labels .edit-post-header .components-dropdown-menu__toggle,.show-icon-labels.interface-pinned-items .components-dropdown-menu__toggle{margin-left:12px;padding-left:12px;padding-right:12px}}.edit-post-header__dropdown .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle:after,.show-icon-labels .edit-post-header .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle:after,.show-icon-labels.interface-pinned-items .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle:after{content:none}.edit-post-header__dropdown .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels .edit-post-header .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels.interface-pinned-items .editor-post-save-draft.editor-post-save-draft:after{content:none}@media (min-width:600px){.edit-post-header__dropdown .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels .edit-post-header .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels.interface-pinned-items .editor-post-save-draft.editor-post-save-draft:after{content:attr(aria-label)}}.edit-post-header__dropdown .components-button.block-editor-block-navigation,.edit-post-header__dropdown .components-button.editor-history__redo,.edit-post-header__dropdown .components-button.editor-history__undo,.edit-post-header__dropdown .components-menu-item__button.components-menu-item__button,.edit-post-header__dropdown .table-of-contents .components-button{margin:0;padding:6px 6px 6px 40px;width:14.625rem;text-align:left;justify-content:flex-start}.show-icon-labels.interface-pinned-items{padding:6px 12px 12px;margin:0 -12px;border-bottom:1px solid #ccc;display:block}.show-icon-labels.interface-pinned-items>.components-button.has-icon{margin:0;padding:6px 6px 6px 8px;width:14.625rem;justify-content:flex-start}.show-icon-labels.interface-pinned-items>.components-button.has-icon[aria-expanded=true] svg{display:block;max-width:24px}.show-icon-labels.interface-pinned-items>.components-button.has-icon[aria-expanded=false]{padding-left:40px}.show-icon-labels.interface-pinned-items>.components-button.has-icon svg{margin-right:8px}.edit-post-fullscreen-mode-close.has-icon{display:none}@media (min-width:782px){.edit-post-fullscreen-mode-close.has-icon{display:flex;align-items:center;align-self:stretch;border:none;background:#23282e;color:#fff;border-radius:0;height:auto;width:60px}.edit-post-fullscreen-mode-close.has-icon:hover{background:#32373d}.edit-post-fullscreen-mode-close.has-icon:active{color:#fff}.edit-post-fullscreen-mode-close.has-icon:focus{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 0 0 2.5px #fff;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 0 0 2.5px #fff}}.edit-post-fullscreen-mode-close_site-icon{width:36px}.edit-post-header-toolbar{display:inline-flex;align-items:center;border:none}.edit-post-header-toolbar>.components-button{display:none}@media (min-width:600px){.edit-post-header-toolbar>.components-button{display:inline-flex}}.edit-post-header-toolbar>.edit-post-header-toolbar__inserter-toggle{display:inline-flex}.edit-post-header-toolbar .block-editor-block-navigation{display:none}@media (min-width:600px){.edit-post-header-toolbar .block-editor-block-navigation{display:flex}}.edit-post-header-toolbar>.components-button.has-icon,.edit-post-header-toolbar>.components-dropdown>.components-button.has-icon{height:36px;min-width:36px;padding:6px}.edit-post-header-toolbar>.components-button.has-icon.is-pressed,.edit-post-header-toolbar>.components-dropdown>.components-button.has-icon.is-pressed{background:#1e1e1e}.edit-post-header-toolbar>.components-button.has-icon:focus:not(:disabled),.edit-post-header-toolbar>.components-dropdown>.components-button.has-icon:focus:not(:disabled){box-shadow:0 0 0 1.5px #007cba,inset 0 0 0 1px #fff;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color),inset 0 0 0 1px #fff;outline:1px solid transparent}.edit-post-header-toolbar>.components-button.has-icon:before,.edit-post-header-toolbar>.components-dropdown>.components-button.has-icon:before{display:none}.edit-post-header-toolbar__block-toolbar{position:absolute;top:61px;left:0;right:0;background:#fff;border-bottom:1px solid #ddd}.edit-post-header-toolbar__block-toolbar:empty{display:none}.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar,.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar-group{border-top:none;border-bottom:none}.is-sidebar-opened .edit-post-header-toolbar__block-toolbar{display:none}@media (min-width:782px){.is-sidebar-opened .edit-post-header-toolbar__block-toolbar{display:block;right:280px}}@media (min-width:1280px){.edit-post-header-toolbar__block-toolbar{padding-left:8px;position:static;left:auto;right:auto;background:none;border-bottom:none}.is-sidebar-opened .edit-post-header-toolbar__block-toolbar{right:auto}.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar{border-left:1px solid #ddd}.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar,.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar-group{height:60px;padding:6px 0}}.edit-post-header-toolbar .edit-post-header-toolbar__inserter-toggle.has-icon{margin-right:8px;min-width:32px;width:32px;height:32px;padding:0}@media (min-width:1280px){.show-icon-labels .edit-post-header-toolbar__block-toolbar{position:absolute;top:61px;left:0;right:0;border-bottom:1px solid #ddd;padding:0;background-color:#fff}.show-icon-labels .edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar,.show-icon-labels .edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar-group{height:auto;padding:0}}.show-icon-labels .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle{height:36px}.edit-post-more-menu{margin-left:-4px}.edit-post-more-menu .components-button{width:auto;padding:0 2px}@media (min-width:600px){.edit-post-more-menu{margin-left:0}.edit-post-more-menu .components-button{padding:0 4px}}.edit-post-more-menu__content .components-popover__content{min-width:280px}@media (min-width:480px){.edit-post-more-menu__content .components-popover__content{width:auto;max-width:480px}}.edit-post-more-menu__content .components-popover__content .components-dropdown-menu__menu{padding:0}.components-popover.edit-post-more-menu__content{z-index:99998}.edit-post-keyboard-shortcut-help-modal__section{margin:0 0 2rem}.edit-post-keyboard-shortcut-help-modal__main-shortcuts .edit-post-keyboard-shortcut-help-modal__shortcut-list{margin-top:-25px}.edit-post-keyboard-shortcut-help-modal__section-title{font-size:.9rem;font-weight:600}.edit-post-keyboard-shortcut-help-modal__shortcut{display:flex;align-items:baseline;padding:.6rem 0;border-top:1px solid #ddd;margin-bottom:0}.edit-post-keyboard-shortcut-help-modal__shortcut:last-child{border-bottom:1px solid #ddd}.edit-post-keyboard-shortcut-help-modal__shortcut:empty{display:none}.edit-post-keyboard-shortcut-help-modal__shortcut-term{font-weight:600;margin:0 0 0 1rem;text-align:right}.edit-post-keyboard-shortcut-help-modal__shortcut-description{flex:1;margin:0;flex-basis:auto}.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination{display:block;background:none;margin:0;padding:0}.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination+.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination{margin-top:10px}.edit-post-keyboard-shortcut-help-modal__shortcut-key{padding:.25rem .5rem;border-radius:8%;margin:0 .2rem}.edit-post-keyboard-shortcut-help-modal__shortcut-key:last-child{margin:0 0 0 .2rem}.edit-post-layout__metaboxes{flex-shrink:0}.edit-post-layout__metaboxes:not(:empty){border-top:1px solid #ddd;padding:10px 0;clear:both}.edit-post-layout__metaboxes:not(:empty) .edit-post-meta-boxes-area{margin:auto 20px}.edit-post-layout .components-editor-notices__snackbar{position:fixed;right:0;bottom:40px;padding-left:16px;padding-right:16px;left:0}@media (min-width:783px){.edit-post-layout .components-editor-notices__snackbar{left:160px}}@media (min-width:783px){.auto-fold .edit-post-layout .components-editor-notices__snackbar{left:36px}}@media (min-width:961px){.auto-fold .edit-post-layout .components-editor-notices__snackbar{left:160px}}.folded .edit-post-layout .components-editor-notices__snackbar{left:0}@media (min-width:783px){.folded .edit-post-layout .components-editor-notices__snackbar{left:36px}}@media (max-width:783px){.auto-fold .wp-responsive-open .edit-post-layout .components-editor-notices__snackbar{left:190px}}@media (max-width:600px){.auto-fold .wp-responsive-open .edit-post-layout .components-editor-notices__snackbar{margin-left:-18px}}body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar{left:0!important}.edit-post-layout .editor-post-publish-panel{position:fixed;z-index:100001;top:46px;bottom:0;right:0;left:0;overflow:auto}@media (min-width:782px){.edit-post-layout .editor-post-publish-panel{z-index:99998;top:32px;left:auto;width:281px;border-left:1px solid #ddd;transform:translateX(100%);animation:edit-post-post-publish-panel__slide-in-animation .1s forwards}}@media (min-width:782px) and (prefers-reduced-motion:reduce){.edit-post-layout .editor-post-publish-panel{animation-duration:1ms}}@media (min-width:782px){body.is-fullscreen-mode .edit-post-layout .editor-post-publish-panel{top:0}.is-focusing-regions .edit-post-layout .editor-post-publish-panel{transform:translateX(0)}}@keyframes edit-post-post-publish-panel__slide-in-animation{to{transform:translateX(0)}}.interface-interface-skeleton__sidebar>div{height:100%;padding-bottom:48px}.edit-post-layout .editor-post-publish-panel__header-publish-button{justify-content:center}.edit-post-layout__toggle-entities-saved-states-panel,.edit-post-layout__toggle-publish-panel,.edit-post-layout__toogle-sidebar-panel{z-index:100000;position:fixed!important;top:-9999em;bottom:auto;left:auto;right:0;width:280px;background-color:#fff;border:1px dotted #ddd;height:auto!important;padding:24px;display:flex;justify-content:center}.interface-interface-skeleton__actions:focus-within .edit-post-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus-within .edit-post-layout__toggle-publish-panel,.interface-interface-skeleton__actions:focus-within .edit-post-layout__toogle-sidebar-panel,.interface-interface-skeleton__actions:focus .edit-post-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus .edit-post-layout__toggle-publish-panel,.interface-interface-skeleton__actions:focus .edit-post-layout__toogle-sidebar-panel{top:auto;bottom:0}.edit-post-layout .interface-interface-skeleton__content{background-color:#ccc}.edit-post-layout__inserter-panel-popover-wrapper,.edit-post-layout__inserter-panel-popover-wrapper>div,.edit-post-layout__inserter-panel-popover-wrapper>div>div,.edit-post-layout__inserter-panel-popover-wrapper>div>div>div{height:100%}.edit-post-layout__inserter-panel{height:100%;display:flex;flex-direction:column}.edit-post-layout__inserter-panel-header{padding-top:8px;padding-right:8px;display:flex;justify-content:flex-end}@media (min-width:782px){.edit-post-layout__inserter-panel-header{display:none}}.edit-post-layout__inserter-panel-content{height:calc(100% - 44px)}@media (min-width:782px){.edit-post-layout__inserter-panel-content{height:100%}}@media (min-width:600px){.edit-post-manage-blocks-modal{height:calc(100% - 120px)}}.edit-post-manage-blocks-modal .components-modal__content{padding-bottom:0;display:flex;flex-direction:column}.edit-post-manage-blocks-modal .components-modal__header{flex-shrink:0;margin-bottom:0}.edit-post-manage-blocks-modal__content{display:flex;flex-direction:column;flex:0 1 100%;min-height:0}.edit-post-manage-blocks-modal__no-results{font-style:italic;padding:24px 0;text-align:center}.edit-post-manage-blocks-modal__search{margin:16px 0}.edit-post-manage-blocks-modal__search .components-base-control__field{margin-bottom:0}.edit-post-manage-blocks-modal__search .components-base-control__label{margin-top:-4px}.edit-post-manage-blocks-modal__search input[type=search].components-text-control__input{padding:8px;border-radius:2px}.edit-post-manage-blocks-modal__disabled-blocks-count{border-top:1px solid #ddd;margin-left:-24px;margin-right:-24px;padding:.6rem 24px;background-color:#f0f0f0}.edit-post-manage-blocks-modal__category{margin:0 0 2rem}.edit-post-manage-blocks-modal__category-title{position:-webkit-sticky;position:sticky;top:0;padding:16px 0;background-color:#fff;z-index:1}.edit-post-manage-blocks-modal__category-title .components-base-control__field{margin-bottom:0}.edit-post-manage-blocks-modal__category-title .components-checkbox-control__label{font-size:.9rem;font-weight:600}.edit-post-manage-blocks-modal__show-all{margin-right:8px}.edit-post-manage-blocks-modal__checklist{margin-top:0}.edit-post-manage-blocks-modal__checklist-item{margin-bottom:0;padding-left:16px;border-top:1px solid #ddd}.edit-post-manage-blocks-modal__checklist-item:last-child{border-bottom:1px solid #ddd}.edit-post-manage-blocks-modal__checklist-item .components-base-control__field{align-items:center;display:flex;margin:0}.components-modal__content .edit-post-manage-blocks-modal__checklist-item.components-checkbox-control__input-container{margin:0 8px}.edit-post-manage-blocks-modal__checklist-item .components-checkbox-control__label{display:flex;align-items:center;justify-content:space-between;flex-grow:1;padding:.6rem 0 .6rem 10px}.edit-post-manage-blocks-modal__checklist-item .block-editor-block-icon{margin-right:10px;fill:#1e1e1e}.edit-post-manage-blocks-modal__results{height:100%;overflow:auto;margin-left:-24px;margin-right:-24px;padding-left:24px;padding-right:24px;border-top:1px solid #ddd}.edit-post-meta-boxes-area{position:relative}.edit-post-meta-boxes-area .inside,.edit-post-meta-boxes-area__container{box-sizing:content-box}.edit-post-meta-boxes-area input,.edit-post-meta-boxes-area textarea{box-sizing:border-box}.edit-post-meta-boxes-area #poststuff{margin:0 auto;padding-top:0;min-width:auto}.edit-post-meta-boxes-area #poststuff .stuffbox>h3,.edit-post-meta-boxes-area #poststuff h2.hndle,.edit-post-meta-boxes-area #poststuff h3.hndle{box-sizing:border-box;color:inherit;font-weight:600;outline:none;padding:15px;position:relative;width:100%}.edit-post-meta-boxes-area .postbox{border:0;color:inherit;margin-bottom:0}.edit-post-meta-boxes-area .postbox>.inside{border-bottom:1px solid #ddd;color:inherit;padding:0 14px 14px;margin:0}.edit-post-meta-boxes-area .postbox .handlediv{height:44px;width:44px}.edit-post-meta-boxes-area.is-loading:before{position:absolute;top:0;left:0;right:0;bottom:0;content:"";background:transparent;z-index:1}.edit-post-meta-boxes-area .components-spinner{position:absolute;top:10px;right:20px;z-index:5}.edit-post-meta-boxes-area .is-hidden{display:none}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]{border:1px solid #757575}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]:checked{background:#fff;border-color:#757575}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]:before{margin:-3px -4px}.edit-post-meta-boxes-area__clear{clear:both}.components-panel__header.edit-post-sidebar__panel-tabs{justify-content:flex-start;padding-left:0;padding-right:16px;border-top:0;margin-top:0}.components-panel__header.edit-post-sidebar__panel-tabs ul{display:flex}.components-panel__header.edit-post-sidebar__panel-tabs li{margin:0}.components-panel__header.edit-post-sidebar__panel-tabs .components-button.has-icon{display:none;margin:0 0 0 auto;padding:0;min-width:24px;height:24px}@media (min-width:782px){.components-panel__header.edit-post-sidebar__panel-tabs .components-button.has-icon{display:flex}}.components-panel__body.is-opened.edit-post-last-revision__panel{padding:0;height:48px}.editor-post-last-revision__title.components-button{padding:16px}.editor-post-author__select{margin:-5px 0;width:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.editor-post-author__select{width:auto}}.edit-post-post-link__link-post-name{font-weight:600}.edit-post-post-link__preview-label{font-weight:400;margin:0}.edit-post-post-link__link{text-align:left;word-wrap:break-word;display:block}.edit-post-post-link__preview-link-container{direction:ltr}.edit-post-post-schedule{width:100%;position:relative;justify-content:left}.edit-post-post-schedule span{display:block;width:45%}.components-button.edit-post-post-schedule__toggle{text-align:right}.editor-post-slug__input{margin:-5px 0;padding:2px}.edit-post-post-status .edit-post-post-publish-dropdown__switch-to-draft{margin-top:15px;width:100%;text-align:center}.edit-post-post-visibility{width:100%;justify-content:left}.edit-post-post-visibility span{display:block;width:45%}@media (min-width:782px){.edit-post-post-visibility__dialog .components-popover__content{width:257px}}.edit-post-post-visibility__dialog-legend{font-weight:600}.edit-post-post-visibility__choice{margin:10px 0}.edit-post-post-visibility__dialog-label,.edit-post-post-visibility__dialog-radio{vertical-align:top}.edit-post-post-visibility__dialog-password-input{width:calc(100% - 20px);margin-left:20px}.edit-post-post-visibility__dialog-info{color:#757575;padding-left:20px;font-style:italic;margin:4px 0 0;line-height:1.4}.components-button.edit-post-sidebar__panel-tab{border-radius:0;height:48px;background:transparent;border:none;box-shadow:none;cursor:pointer;display:inline-block;padding:3px 15px;margin-left:0;font-weight:500}.components-button.edit-post-sidebar__panel-tab:after{content:attr(data-label);display:block;font-weight:600;height:0;overflow:hidden;speak:none;visibility:hidden}.components-button.edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 0 0 1.5px transparent,inset 0 -4px 0 0 #007cba;box-shadow:inset 0 0 0 1.5px transparent,inset 0 -4px 0 0 var(--wp-admin-theme-color);position:relative;z-index:1}.components-button.edit-post-sidebar__panel-tab.is-active:before{content:"";position:absolute;top:0;bottom:1px;right:0;left:0;border-bottom:4px solid transparent}.components-button.edit-post-sidebar__panel-tab:focus{box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color);position:relative;z-index:1}.components-button.edit-post-sidebar__panel-tab.is-active:focus{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 -4px 0 0 #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 -4px 0 0 var(--wp-admin-theme-color)}.edit-post-text-editor{position:relative;width:100%;background-color:#fff;flex-grow:1}.edit-post-text-editor .wp-block.editor-post-title{max-width:none;line-height:1.4}.edit-post-text-editor .wp-block.editor-post-title .editor-post-title__input.editor-post-title__input.editor-post-title__input{font-family:Menlo,Consolas,monaco,monospace;font-size:2.5em;font-weight:400}.edit-post-text-editor .wp-block.editor-post-title .editor-post-title__input{border:1px solid #949494;margin-bottom:-1px;padding:16px}@media (min-width:600px){.edit-post-text-editor .wp-block.editor-post-title .editor-post-title__input{padding:24px}}.edit-post-text-editor .wp-block.editor-post-title .editor-post-title__input:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color)}@media (min-width:600px){.edit-post-text-editor .wp-block.editor-post-title{padding:0}}.edit-post-text-editor__body{width:100%;padding:0 12px 12px;max-width:1080px;margin-left:auto;margin-right:auto}@media (min-width:960px){.edit-post-text-editor__body{padding:0 24px 24px}}.edit-post-text-editor__toolbar{position:-webkit-sticky;position:sticky;z-index:1;top:0;left:0;right:0;display:flex;background:hsla(0,0%,100%,.8);padding:4px 12px}@media (min-width:600px){.edit-post-text-editor__toolbar{padding:12px}}@media (min-width:960px){.edit-post-text-editor__toolbar{padding:12px 24px}}.edit-post-text-editor__toolbar h2{line-height:36px;margin:0 auto 0 0;font-size:13px;color:#1e1e1e}.edit-post-text-editor__toolbar .components-button svg{order:1}.edit-post-visual-editor{position:relative;padding-top:50px;background-color:#fff;flex:1 1 auto}.edit-post-visual-editor .components-button{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:6px 12px}.edit-post-visual-editor .components-button.has-icon,.edit-post-visual-editor .components-button.is-tertiary{padding:6px}@supports ((position:-webkit-sticky) or (position:sticky)){.edit-post-visual-editor{flex-basis:100%}}.edit-post-visual-editor>.block-editor__typewriter,.edit-post-visual-editor>.block-editor__typewriter>div,.edit-post-visual-editor>.block-editor__typewriter>div>.block-editor-writing-flow,.edit-post-visual-editor>.block-editor__typewriter>div>.block-editor-writing-flow>.block-editor-writing-flow__click-redirect{height:100%}.edit-post-visual-editor .block-editor-writing-flow__click-redirect{min-height:40vh;width:100%}.has-metaboxes .edit-post-visual-editor .block-editor-writing-flow__click-redirect{height:0}.edit-post-visual-editor__post-title-wrapper .editor-post-title{margin:2em auto 32px}.edit-post-options-modal__section{margin:0 0 2rem}.edit-post-options-modal__section-title{font-size:.9rem;font-weight:600}.edit-post-options-modal__option{border-top:1px solid #ddd}.edit-post-options-modal__option:last-child{border-bottom:1px solid #ddd}.edit-post-options-modal__option .components-base-control__field{align-items:center;display:flex;margin:0}.edit-post-options-modal__option .components-checkbox-control__label{flex-grow:1;padding:.6rem 0 .6rem 10px}.edit-post-options-modal__custom-fields-confirmation-button,.edit-post-options-modal__custom-fields-confirmation-message{margin:0 0 .6rem 48px}@media (min-width:782px){.edit-post-options-modal__custom-fields-confirmation-button,.edit-post-options-modal__custom-fields-confirmation-message{margin-left:38px}}@media (min-width:600px){.edit-post-options-modal__custom-fields-confirmation-button,.edit-post-options-modal__custom-fields-confirmation-message{max-width:300px}}.edit-post-welcome-guide{width:312px}.edit-post-welcome-guide__image{background:#00a0d2;height:240px}.edit-post-welcome-guide__image__prm-r{display:none}@media (prefers-reduced-motion:reduce){.edit-post-welcome-guide__image__prm-r{display:block}.edit-post-welcome-guide__image__prm-np{display:none}}.edit-post-welcome-guide__heading{font-family:"Noto Serif",serif;font-size:24px;line-height:1.4;margin:0 0 16px;padding:0 32px}.edit-post-welcome-guide__text{font-size:13px;line-height:1.4;margin:0 0 24px;padding:0 32px}.edit-post-welcome-guide__inserter-icon{margin:0 4px;vertical-align:text-top}@keyframes edit-post__fade-in-animation{0%{opacity:0}to{opacity:1}}body.block-editor-page,html.wp-toolbar{background:#fff}body.block-editor-page #wpcontent{padding-left:0}body.block-editor-page #wpbody-content{padding-bottom:0}body.block-editor-page #wpbody-content>div:not(.block-editor):not(#screen-meta){display:none}body.block-editor-page #wpfooter{display:none}body.block-editor-page .a11y-speak-region{left:-1px;top:-1px}body.block-editor-page ul#adminmenu>li.current>a.current:after,body.block-editor-page ul#adminmenu a.wp-has-current-submenu:after{border-right-color:#fff}body.block-editor-page .media-frame select.attachment-filters:last-of-type{width:auto;max-width:100%}.components-modal__frame,.components-popover,.edit-post-header,.edit-post-layout__inserter-panel,.edit-post-sidebar,.edit-post-text-editor,.edit-post-visual-editor,.editor-post-publish-panel{box-sizing:border-box}.components-modal__frame *,.components-modal__frame :after,.components-modal__frame :before,.components-popover *,.components-popover :after,.components-popover :before,.edit-post-header *,.edit-post-header :after,.edit-post-header :before,.edit-post-layout__inserter-panel *,.edit-post-layout__inserter-panel :after,.edit-post-layout__inserter-panel :before,.edit-post-sidebar *,.edit-post-sidebar :after,.edit-post-sidebar :before,.edit-post-text-editor *,.edit-post-text-editor :after,.edit-post-text-editor :before,.edit-post-visual-editor *,.edit-post-visual-editor :after,.edit-post-visual-editor :before,.editor-post-publish-panel *,.editor-post-publish-panel :after,.editor-post-publish-panel :before{box-sizing:inherit}@media (min-width:600px){.block-editor__container{position:absolute;top:0;right:0;bottom:0;left:0;min-height:calc(100vh - 46px)}}@media (min-width:782px){.block-editor__container{min-height:calc(100vh - 32px)}body.is-fullscreen-mode .block-editor__container{min-height:100vh}}.block-editor__container img{max-width:100%;height:auto}.block-editor__container iframe{width:100%}.block-editor__container .components-navigate-regions{height:100%}.wp-block{max-width:580px}.wp-block[data-align=wide]{max-width:1100px}.wp-block[data-align=full]{max-width:none}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-20:#006187}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-20:#183ad6}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-20:#064054}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-20:#2b2724}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-20:#3a2c4d}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-20:#d02c21}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-20:#4c6066}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-20:#c36922} \ No newline at end of file +:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87}.components-panel__header.interface-complementary-area-header__small{background:#fff;padding-right:4px}.components-panel__header.interface-complementary-area-header__small .interface-complementary-area-header__small-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}@media (min-width:782px){.components-panel__header.interface-complementary-area-header__small{display:none}}.interface-complementary-area-header{background:#fff;padding-right:4px}.interface-complementary-area-header .components-button.has-icon{display:none;margin-left:auto}.interface-complementary-area-header .components-button.has-icon~.components-button{margin-left:0}@media (min-width:782px){.interface-complementary-area-header .components-button.has-icon{display:flex}}.interface-complementary-area{background:#fff;color:#1e1e1e;overflow:visible}@media (min-width:600px){.interface-complementary-area{z-index:auto;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}}@media (min-width:782px){.interface-complementary-area{width:280px}}.interface-complementary-area>.components-panel{border-left:none;border-right:none;overflow:auto;-webkit-overflow-scrolling:touch;height:auto;max-height:calc(100vh - 142px);margin-top:-1px;margin-bottom:-1px;position:relative}@media (min-width:600px){.interface-complementary-area>.components-panel{overflow:visible;height:auto;max-height:none}}.interface-complementary-area>.components-panel .components-panel__header{position:fixed;z-index:1;top:0;left:0;right:0;height:48px}@media (min-width:600px){.interface-complementary-area>.components-panel .components-panel__header{position:inherit;top:auto;left:auto;right:auto}}.interface-complementary-area p{margin-top:0}.interface-complementary-area h2,.interface-complementary-area h3{font-size:13px;color:#1e1e1e;margin-bottom:1.5em}.interface-complementary-area hr{border-top:none;border-bottom:1px solid #f0f0f0;margin:1.5em 0}.interface-complementary-area div.components-toolbar,.interface-complementary-area div.components-toolbar-group{box-shadow:none;margin-bottom:1.5em}.interface-complementary-area div.components-toolbar-group:last-child,.interface-complementary-area div.components-toolbar:last-child{margin-bottom:0}.interface-complementary-area .block-editor-skip-to-selected-block:focus{top:auto;right:10px;bottom:10px;left:auto}@media (min-width:782px){body.js.is-fullscreen-mode{margin-top:-32px;height:calc(100% + 32px)}body.js.is-fullscreen-mode #adminmenumain,body.js.is-fullscreen-mode #wpadminbar{display:none}body.js.is-fullscreen-mode #wpcontent,body.js.is-fullscreen-mode #wpfooter{margin-left:0}}html.interface-interface-skeleton__html-container{position:fixed;width:100%}@media (min-width:782px){html.interface-interface-skeleton__html-container{position:static;width:auto}}.interface-interface-skeleton{display:flex;flex-direction:row;height:auto;max-height:100%;position:fixed;top:46px;right:0;bottom:0}@media (min-width:783px){.interface-interface-skeleton{top:32px}.is-fullscreen-mode .interface-interface-skeleton{top:0}}.interface-interface-skeleton__editor{display:flex;flex-direction:column;flex-grow:1}.interface-interface-skeleton{left:0}@media (min-width:783px){.interface-interface-skeleton{left:160px}}@media (min-width:783px){.auto-fold .interface-interface-skeleton{left:36px}}@media (min-width:961px){.auto-fold .interface-interface-skeleton{left:160px}}.folded .interface-interface-skeleton{left:0}@media (min-width:783px){.folded .interface-interface-skeleton{left:36px}}@media (max-width:783px){.auto-fold .wp-responsive-open .interface-interface-skeleton{left:190px}}@media (max-width:600px){.auto-fold .wp-responsive-open .interface-interface-skeleton{margin-left:-18px}}body.is-fullscreen-mode .interface-interface-skeleton{left:0!important}.interface-interface-skeleton__body{flex-grow:1;display:flex;overflow:auto;overscroll-behavior-y:none}.interface-interface-skeleton__content{flex-grow:1;display:flex;flex-direction:column;overflow:auto}.interface-interface-skeleton__left-sidebar,.interface-interface-skeleton__sidebar{display:block;width:auto;flex-shrink:0;position:absolute;z-index:100000;top:0;right:0;bottom:0;left:0;background:#fff;color:#1e1e1e}@media (min-width:782px){.interface-interface-skeleton__left-sidebar,.interface-interface-skeleton__sidebar{position:relative!important;z-index:90}}@media (min-width:782px){.interface-interface-skeleton__sidebar{overflow:auto;border-left:1px solid #e0e0e0}}@media (min-width:782px){.interface-interface-skeleton__left-sidebar{border-right:1px solid #e0e0e0}}.interface-interface-skeleton__header{flex-shrink:0;height:auto;border-bottom:1px solid #e0e0e0;z-index:30;color:#1e1e1e;position:-webkit-sticky;position:sticky;top:0}@media (min-width:600px){.interface-interface-skeleton__header{position:static;top:0}}.interface-interface-skeleton__footer{height:auto;flex-shrink:0;border-top:1px solid #e0e0e0;color:#1e1e1e;position:fixed;bottom:0;width:100%;background-color:#fff;z-index:90;display:none}@media (min-width:782px){.interface-interface-skeleton__footer{display:flex}}.interface-interface-skeleton__footer .block-editor-block-breadcrumb{z-index:30;display:flex;background:#fff;height:24px;align-items:center;font-size:13px;padding:0 18px}.interface-interface-skeleton__actions{z-index:100000;position:fixed!important;top:-9999em;bottom:auto;left:auto;right:0;width:280px;color:#1e1e1e}.interface-interface-skeleton__actions:focus{top:auto;bottom:0}.interface-pinned-items{display:flex}.interface-pinned-items .components-button{margin-left:4px}.interface-pinned-items .components-button svg{max-width:24px;max-height:24px}.edit-post-header{height:60px;background:#fff;display:flex;flex-wrap:wrap;align-items:center;max-width:100vw}@media (min-width:280px){.edit-post-header{flex-wrap:nowrap}}.edit-post-header>.edit-post-header__settings{order:1}@supports ((position:-webkit-sticky) or (position:sticky)){.edit-post-header>.edit-post-header__settings{order:0}}.edit-post-header__toolbar{display:flex;flex-grow:1}.edit-post-header__toolbar .table-of-contents{display:none}@media (min-width:600px){.edit-post-header__toolbar .table-of-contents{display:block}}.edit-post-header__settings{display:inline-flex;align-items:center;flex-wrap:wrap;padding-right:4px}@media (min-width:600px){.edit-post-header__settings{padding-right:16px}}.edit-post-header__settings .components-button.components-button,.edit-post-header__settings .editor-post-saved-state{margin-right:4px}@media (min-width:600px){.edit-post-header__settings .components-button.components-button,.edit-post-header__settings .editor-post-saved-state{margin-right:12px}}.edit-post-header__settings .components-button.is-tertiary,.edit-post-header__settings .editor-post-saved-state{padding:0 6px}.edit-post-header__settings .edit-post-more-menu .components-button,.edit-post-header__settings .interface-pinned-items .components-button{margin-right:0}.edit-post-header-preview__grouping-external{display:flex;position:relative;padding-bottom:0}.edit-post-header-preview__button-external{padding-left:8px;margin-right:auto;width:100%;display:flex;justify-content:flex-start}.edit-post-header-preview__button-external svg{margin-left:auto}.edit-post-post-preview-dropdown .components-popover__content>div{padding-bottom:0}.edit-post-header__dropdown .components-button.has-icon,.show-icon-labels .edit-post-header .components-button.has-icon,.show-icon-labels.interface-pinned-items .components-button.has-icon{width:auto}.edit-post-header__dropdown .components-button.has-icon svg,.show-icon-labels .edit-post-header .components-button.has-icon svg,.show-icon-labels.interface-pinned-items .components-button.has-icon svg{display:none}.edit-post-header__dropdown .components-button.has-icon:after,.show-icon-labels .edit-post-header .components-button.has-icon:after,.show-icon-labels.interface-pinned-items .components-button.has-icon:after{content:attr(aria-label)}.edit-post-header__dropdown .components-button.has-icon[aria-disabled=true],.show-icon-labels .edit-post-header .components-button.has-icon[aria-disabled=true],.show-icon-labels.interface-pinned-items .components-button.has-icon[aria-disabled=true]{background-color:transparent}.edit-post-header__dropdown .is-tertiary:active,.show-icon-labels .edit-post-header .is-tertiary:active,.show-icon-labels.interface-pinned-items .is-tertiary:active{box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);background-color:transparent}.edit-post-header__dropdown .components-button.has-icon.button-toggle svg,.edit-post-header__dropdown .edit-post-fullscreen-mode-close.has-icon svg,.edit-post-header__dropdown .edit-post-header-toolbar__block-toolbar .components-button.has-icon svg,.show-icon-labels .edit-post-header .components-button.has-icon.button-toggle svg,.show-icon-labels .edit-post-header .edit-post-fullscreen-mode-close.has-icon svg,.show-icon-labels .edit-post-header .edit-post-header-toolbar__block-toolbar .components-button.has-icon svg,.show-icon-labels.interface-pinned-items .components-button.has-icon.button-toggle svg,.show-icon-labels.interface-pinned-items .edit-post-fullscreen-mode-close.has-icon svg,.show-icon-labels.interface-pinned-items .edit-post-header-toolbar__block-toolbar .components-button.has-icon svg{display:block}.edit-post-header__dropdown .components-button.has-icon.button-toggle:after,.edit-post-header__dropdown .edit-post-fullscreen-mode-close.has-icon:after,.edit-post-header__dropdown .edit-post-header-toolbar__block-toolbar .components-button.has-icon:after,.show-icon-labels .edit-post-header .components-button.has-icon.button-toggle:after,.show-icon-labels .edit-post-header .edit-post-fullscreen-mode-close.has-icon:after,.show-icon-labels .edit-post-header .edit-post-header-toolbar__block-toolbar .components-button.has-icon:after,.show-icon-labels.interface-pinned-items .components-button.has-icon.button-toggle:after,.show-icon-labels.interface-pinned-items .edit-post-fullscreen-mode-close.has-icon:after,.show-icon-labels.interface-pinned-items .edit-post-header-toolbar__block-toolbar .components-button.has-icon:after{content:none}.edit-post-header__dropdown .edit-post-fullscreen-mode-close.has-icon,.show-icon-labels .edit-post-header .edit-post-fullscreen-mode-close.has-icon,.show-icon-labels.interface-pinned-items .edit-post-fullscreen-mode-close.has-icon{width:60px}.edit-post-header__dropdown .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon,.show-icon-labels .edit-post-header .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon,.show-icon-labels.interface-pinned-items .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon{display:block}.edit-post-header__dropdown .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.edit-post-header__dropdown .interface-pinned-items .components-button,.show-icon-labels .edit-post-header .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.show-icon-labels .edit-post-header .interface-pinned-items .components-button,.show-icon-labels.interface-pinned-items .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.show-icon-labels.interface-pinned-items .interface-pinned-items .components-button{padding-left:8px;padding-right:8px}@media (min-width:600px){.edit-post-header__dropdown .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.edit-post-header__dropdown .interface-pinned-items .components-button,.show-icon-labels .edit-post-header .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.show-icon-labels .edit-post-header .interface-pinned-items .components-button,.show-icon-labels.interface-pinned-items .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.show-icon-labels.interface-pinned-items .interface-pinned-items .components-button{padding-left:12px;padding-right:12px}}.edit-post-header__dropdown .components-dropdown-menu__toggle,.show-icon-labels .edit-post-header .components-dropdown-menu__toggle,.show-icon-labels.interface-pinned-items .components-dropdown-menu__toggle{margin-left:8px;padding-left:8px;padding-right:8px}@media (min-width:600px){.edit-post-header__dropdown .components-dropdown-menu__toggle,.show-icon-labels .edit-post-header .components-dropdown-menu__toggle,.show-icon-labels.interface-pinned-items .components-dropdown-menu__toggle{margin-left:12px;padding-left:12px;padding-right:12px}}.edit-post-header__dropdown .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle:after,.show-icon-labels .edit-post-header .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle:after,.show-icon-labels.interface-pinned-items .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle:after{content:none}.edit-post-header__dropdown .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels .edit-post-header .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels.interface-pinned-items .editor-post-save-draft.editor-post-save-draft:after{content:none}@media (min-width:600px){.edit-post-header__dropdown .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels .edit-post-header .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels.interface-pinned-items .editor-post-save-draft.editor-post-save-draft:after{content:attr(aria-label)}}.edit-post-header__dropdown .components-button.block-editor-block-navigation,.edit-post-header__dropdown .components-button.editor-history__redo,.edit-post-header__dropdown .components-button.editor-history__undo,.edit-post-header__dropdown .components-menu-item__button.components-menu-item__button,.edit-post-header__dropdown .table-of-contents .components-button{margin:0;padding:6px 6px 6px 40px;width:14.625rem;text-align:left;justify-content:flex-start}.show-icon-labels.interface-pinned-items{padding:6px 12px 12px;margin:0 -12px;border-bottom:1px solid #ccc;display:block}.show-icon-labels.interface-pinned-items>.components-button.has-icon{margin:0;padding:6px 6px 6px 8px;width:14.625rem;justify-content:flex-start}.show-icon-labels.interface-pinned-items>.components-button.has-icon[aria-expanded=true] svg{display:block;max-width:24px}.show-icon-labels.interface-pinned-items>.components-button.has-icon[aria-expanded=false]{padding-left:40px}.show-icon-labels.interface-pinned-items>.components-button.has-icon svg{margin-right:8px}.edit-post-fullscreen-mode-close.has-icon{display:none}@media (min-width:782px){.edit-post-fullscreen-mode-close.has-icon{display:flex;align-items:center;-ms-grid-row-align:stretch;align-self:stretch;border:none;background:#23282e;color:#fff;border-radius:0;height:auto;width:60px}.edit-post-fullscreen-mode-close.has-icon:hover{background:#32373d}.edit-post-fullscreen-mode-close.has-icon:active{color:#fff}.edit-post-fullscreen-mode-close.has-icon:focus{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 0 0 2.5px #fff;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 0 0 2.5px #fff}}.edit-post-fullscreen-mode-close_site-icon{width:36px}.edit-post-header-toolbar{display:inline-flex;align-items:center;border:none}.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-button{display:none}@media (min-width:600px){.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-button{display:inline-flex}}.edit-post-header-toolbar .edit-post-header-toolbar__left>.edit-post-header-toolbar__inserter-toggle{display:inline-flex}.edit-post-header-toolbar .block-editor-block-navigation{display:none}@media (min-width:600px){.edit-post-header-toolbar .block-editor-block-navigation{display:flex}}.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-button.has-icon,.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-dropdown>.components-button.has-icon{height:36px;min-width:36px;padding:6px}.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-button.has-icon.is-pressed,.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-dropdown>.components-button.has-icon.is-pressed{background:#1e1e1e}.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-button.has-icon:focus:not(:disabled),.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-dropdown>.components-button.has-icon:focus:not(:disabled){box-shadow:0 0 0 1.5px #007cba,inset 0 0 0 1px #fff;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color),inset 0 0 0 1px #fff;outline:1px solid transparent}.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-button.has-icon:before,.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-dropdown>.components-button.has-icon:before{display:none}.edit-post-header-toolbar__left{display:inline-flex;align-items:center;padding-left:8px}@media (min-width:600px){.edit-post-header-toolbar__left{padding-left:24px}}@media (min-width:1280px){.edit-post-header-toolbar__left{padding-right:8px}}.edit-post-header-toolbar__block-toolbar{position:absolute;top:61px;left:0;right:0;background:#fff;border-bottom:1px solid #ddd}.edit-post-header-toolbar__block-toolbar:empty{display:none}.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar,.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar-group{border-top:none;border-bottom:none}.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar__block-parent-selector-wrapper,.is-sidebar-opened .edit-post-header-toolbar__block-toolbar{display:none}@media (min-width:782px){.is-sidebar-opened .edit-post-header-toolbar__block-toolbar{display:block;right:280px}}@media (min-width:1280px){.edit-post-header-toolbar__block-toolbar{position:static;left:auto;right:auto;background:none;border-bottom:none}.is-sidebar-opened .edit-post-header-toolbar__block-toolbar{right:auto}.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar{border-left:1px solid #ddd}.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar,.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar-group{height:60px;padding:6px 0}}.edit-post-header-toolbar .edit-post-header-toolbar__left>.edit-post-header-toolbar__inserter-toggle.has-icon{margin-right:8px;min-width:32px;width:32px;height:32px;padding:0}.show-icon-labels .edit-post-header-toolbar .edit-post-header-toolbar__left>.edit-post-header-toolbar__inserter-toggle.has-icon{height:36px}@media (min-width:1280px){.show-icon-labels .edit-post-header-toolbar__block-toolbar{position:absolute;top:61px;left:0;right:0;border-bottom:1px solid #ddd;padding:0;background-color:#fff}.show-icon-labels .edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar,.show-icon-labels .edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar-group{height:auto;padding:0}}.edit-post-more-menu{margin-left:-4px}.edit-post-more-menu .components-button{width:auto;padding:0 2px}@media (min-width:600px){.edit-post-more-menu{margin-left:0}.edit-post-more-menu .components-button{padding:0 4px}}.edit-post-more-menu__content .components-popover__content{min-width:280px}@media (min-width:480px){.edit-post-more-menu__content .components-popover__content{width:auto;max-width:480px}}.edit-post-more-menu__content .components-popover__content .components-dropdown-menu__menu{padding:0}.components-popover.edit-post-more-menu__content{z-index:99998}.edit-post-keyboard-shortcut-help-modal__section{margin:0 0 2rem}.edit-post-keyboard-shortcut-help-modal__main-shortcuts .edit-post-keyboard-shortcut-help-modal__shortcut-list{margin-top:-25px}.edit-post-keyboard-shortcut-help-modal__section-title{font-size:.9rem;font-weight:600}.edit-post-keyboard-shortcut-help-modal__shortcut{display:flex;align-items:baseline;padding:.6rem 0;border-top:1px solid #ddd;margin-bottom:0}.edit-post-keyboard-shortcut-help-modal__shortcut:last-child{border-bottom:1px solid #ddd}.edit-post-keyboard-shortcut-help-modal__shortcut:empty{display:none}.edit-post-keyboard-shortcut-help-modal__shortcut-term{font-weight:600;margin:0 0 0 1rem;text-align:right}.edit-post-keyboard-shortcut-help-modal__shortcut-description{flex:1;margin:0;flex-basis:auto}.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination{display:block;background:none;margin:0;padding:0}.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination+.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination{margin-top:10px}.edit-post-keyboard-shortcut-help-modal__shortcut-key{padding:.25rem .5rem;border-radius:8%;margin:0 .2rem}.edit-post-keyboard-shortcut-help-modal__shortcut-key:last-child{margin:0 0 0 .2rem}.edit-post-layout__metaboxes{flex-shrink:0}.edit-post-layout__metaboxes:not(:empty){border-top:1px solid #ddd;padding:10px 0;clear:both}.edit-post-layout__metaboxes:not(:empty) .edit-post-meta-boxes-area{margin:auto 20px}.edit-post-layout .components-editor-notices__snackbar{position:fixed;right:0;bottom:40px;padding-left:16px;padding-right:16px;left:0}@media (min-width:783px){.edit-post-layout .components-editor-notices__snackbar{left:160px}}@media (min-width:783px){.auto-fold .edit-post-layout .components-editor-notices__snackbar{left:36px}}@media (min-width:961px){.auto-fold .edit-post-layout .components-editor-notices__snackbar{left:160px}}.folded .edit-post-layout .components-editor-notices__snackbar{left:0}@media (min-width:783px){.folded .edit-post-layout .components-editor-notices__snackbar{left:36px}}@media (max-width:783px){.auto-fold .wp-responsive-open .edit-post-layout .components-editor-notices__snackbar{left:190px}}@media (max-width:600px){.auto-fold .wp-responsive-open .edit-post-layout .components-editor-notices__snackbar{margin-left:-18px}}body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar{left:0!important}.edit-post-layout .editor-post-publish-panel{position:fixed;z-index:100001;top:46px;bottom:0;right:0;left:0;overflow:auto}@media (min-width:782px){.edit-post-layout .editor-post-publish-panel{z-index:99998;top:32px;left:auto;width:281px;border-left:1px solid #ddd;transform:translateX(100%);animation:edit-post-post-publish-panel__slide-in-animation .1s forwards}}@media (min-width:782px) and (prefers-reduced-motion:reduce){.edit-post-layout .editor-post-publish-panel{animation-duration:1ms}}@media (min-width:782px){body.is-fullscreen-mode .edit-post-layout .editor-post-publish-panel{top:0}.is-focusing-regions .edit-post-layout .editor-post-publish-panel{transform:translateX(0)}}@keyframes edit-post-post-publish-panel__slide-in-animation{to{transform:translateX(0)}}.interface-interface-skeleton__sidebar>div{height:100%;padding-bottom:48px}.edit-post-layout .editor-post-publish-panel__header-publish-button{justify-content:center}.edit-post-layout__toggle-entities-saved-states-panel,.edit-post-layout__toggle-publish-panel,.edit-post-layout__toogle-sidebar-panel{z-index:100000;position:fixed!important;top:-9999em;bottom:auto;left:auto;right:0;width:280px;background-color:#fff;border:1px dotted #ddd;height:auto!important;padding:24px;display:flex;justify-content:center}.interface-interface-skeleton__actions:focus-within .edit-post-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus-within .edit-post-layout__toggle-publish-panel,.interface-interface-skeleton__actions:focus-within .edit-post-layout__toogle-sidebar-panel,.interface-interface-skeleton__actions:focus .edit-post-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus .edit-post-layout__toggle-publish-panel,.interface-interface-skeleton__actions:focus .edit-post-layout__toogle-sidebar-panel{top:auto;bottom:0}.edit-post-layout .interface-interface-skeleton__content{background-color:#ccc}.edit-post-layout__inserter-panel-popover-wrapper,.edit-post-layout__inserter-panel-popover-wrapper>div,.edit-post-layout__inserter-panel-popover-wrapper>div>div,.edit-post-layout__inserter-panel-popover-wrapper>div>div>div{height:100%}.edit-post-layout__inserter-panel{height:100%;display:flex;flex-direction:column}.edit-post-layout__inserter-panel-header{padding-top:8px;padding-right:8px;display:flex;justify-content:flex-end}@media (min-width:782px){.edit-post-layout__inserter-panel-header{display:none}}.edit-post-layout__inserter-panel-content{height:calc(100% - 44px)}@media (min-width:782px){.edit-post-layout__inserter-panel-content{height:100%}}@media (min-width:600px){.edit-post-manage-blocks-modal{height:calc(100% - 120px)}}.edit-post-manage-blocks-modal .components-modal__content{padding-bottom:0;display:flex;flex-direction:column}.edit-post-manage-blocks-modal .components-modal__header{flex-shrink:0;margin-bottom:0}.edit-post-manage-blocks-modal__content{display:flex;flex-direction:column;flex:0 1 100%;min-height:0}.edit-post-manage-blocks-modal__no-results{font-style:italic;padding:24px 0;text-align:center}.edit-post-manage-blocks-modal__search{margin:16px 0}.edit-post-manage-blocks-modal__search .components-base-control__field{margin-bottom:0}.edit-post-manage-blocks-modal__search .components-base-control__label{margin-top:-4px}.edit-post-manage-blocks-modal__search input[type=search].components-text-control__input{padding:8px;border-radius:2px}.edit-post-manage-blocks-modal__disabled-blocks-count{border-top:1px solid #ddd;margin-left:-24px;margin-right:-24px;padding:.6rem 24px;background-color:#f0f0f0}.edit-post-manage-blocks-modal__category{margin:0 0 2rem}.edit-post-manage-blocks-modal__category-title{position:-webkit-sticky;position:sticky;top:0;padding:16px 0;background-color:#fff;z-index:1}.edit-post-manage-blocks-modal__category-title .components-base-control__field{margin-bottom:0}.edit-post-manage-blocks-modal__category-title .components-checkbox-control__label{font-size:.9rem;font-weight:600}.edit-post-manage-blocks-modal__show-all{margin-right:8px}.edit-post-manage-blocks-modal__checklist{margin-top:0}.edit-post-manage-blocks-modal__checklist-item{margin-bottom:0;padding-left:16px;border-top:1px solid #ddd}.edit-post-manage-blocks-modal__checklist-item:last-child{border-bottom:1px solid #ddd}.edit-post-manage-blocks-modal__checklist-item .components-base-control__field{align-items:center;display:flex;margin:0}.components-modal__content .edit-post-manage-blocks-modal__checklist-item.components-checkbox-control__input-container{margin:0 8px}.edit-post-manage-blocks-modal__checklist-item .components-checkbox-control__label{display:flex;align-items:center;justify-content:space-between;flex-grow:1;padding:.6rem 0 .6rem 10px}.edit-post-manage-blocks-modal__checklist-item .block-editor-block-icon{margin-right:10px;fill:#1e1e1e}.edit-post-manage-blocks-modal__results{height:100%;overflow:auto;margin-left:-24px;margin-right:-24px;padding-left:24px;padding-right:24px;border-top:1px solid #ddd}.edit-post-meta-boxes-area{position:relative}.edit-post-meta-boxes-area .inside,.edit-post-meta-boxes-area__container{box-sizing:content-box}.edit-post-meta-boxes-area input,.edit-post-meta-boxes-area textarea{box-sizing:border-box}.edit-post-meta-boxes-area #poststuff{margin:0 auto;padding-top:0;min-width:auto}.edit-post-meta-boxes-area #poststuff .stuffbox>h3,.edit-post-meta-boxes-area #poststuff h2.hndle,.edit-post-meta-boxes-area #poststuff h3.hndle{box-sizing:border-box;color:inherit;font-weight:600;outline:none;padding:15px;position:relative;width:100%}.edit-post-meta-boxes-area .postbox{border:0;color:inherit;margin-bottom:0}.edit-post-meta-boxes-area .postbox>.inside{border-bottom:1px solid #ddd;color:inherit;padding:0 14px 14px;margin:0}.edit-post-meta-boxes-area .postbox .handlediv{height:44px;width:44px}.edit-post-meta-boxes-area.is-loading:before{position:absolute;top:0;left:0;right:0;bottom:0;content:"";background:transparent;z-index:1}.edit-post-meta-boxes-area .components-spinner{position:absolute;top:10px;right:20px;z-index:5}.edit-post-meta-boxes-area .is-hidden{display:none}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]{border:1px solid #757575}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]:checked{background:#fff;border-color:#757575}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]:before{margin:-3px -4px}.edit-post-meta-boxes-area__clear{clear:both}.edit-post-preferences-modal__section{margin:0 0 2.5rem}.edit-post-preferences-modal__section-title{font-size:.9rem;font-weight:600}.edit-post-preferences-modal__option .components-base-control__field{align-items:center;display:flex;margin:0}.edit-post-preferences-modal__option .components-checkbox-control__label{flex-grow:1;padding:.6rem 0 .6rem 10px}.edit-post-preferences-modal__custom-fields-confirmation-button,.edit-post-preferences-modal__custom-fields-confirmation-message{margin:0 0 .6rem 48px}@media (min-width:782px){.edit-post-preferences-modal__custom-fields-confirmation-button,.edit-post-preferences-modal__custom-fields-confirmation-message{margin-left:38px}}@media (min-width:600px){.edit-post-preferences-modal__custom-fields-confirmation-button,.edit-post-preferences-modal__custom-fields-confirmation-message{max-width:300px}}.edit-post-preferences-modal .components-base-control__help{margin:-8px 0 8px 42px;font-size:12px;font-style:normal;color:#757575}.edit-post-preferences-modal .edit-post-preferences-modal__section-description{margin:-8px 0 8px;font-size:12px;font-style:normal;color:#757575}.components-panel__header.edit-post-sidebar__panel-tabs{justify-content:flex-start;padding-left:0;padding-right:16px;border-top:0;margin-top:0}.components-panel__header.edit-post-sidebar__panel-tabs ul{display:flex}.components-panel__header.edit-post-sidebar__panel-tabs li{margin:0}.components-panel__header.edit-post-sidebar__panel-tabs .components-button.has-icon{display:none;margin:0 0 0 auto;padding:0;min-width:24px;height:24px}@media (min-width:782px){.components-panel__header.edit-post-sidebar__panel-tabs .components-button.has-icon{display:flex}}.components-panel__body.is-opened.edit-post-last-revision__panel{padding:0;height:48px}.editor-post-last-revision__title.components-button{padding:16px}.editor-post-author__select{margin:-5px 0;width:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.editor-post-author__select{width:auto}}.edit-post-post-link__link-post-name{font-weight:600}.edit-post-post-link__preview-label{font-weight:400;margin:0}.edit-post-post-link__link{text-align:left;word-wrap:break-word;display:block}.edit-post-post-link__preview-link-container{direction:ltr}.edit-post-post-schedule{width:100%;position:relative;justify-content:left}.edit-post-post-schedule span{display:block;width:45%}.components-button.edit-post-post-schedule__toggle{text-align:right}.editor-post-slug__input{margin:-5px 0;padding:2px}.edit-post-post-status .edit-post-post-publish-dropdown__switch-to-draft{margin-top:15px;width:100%;text-align:center}.edit-post-post-visibility{width:100%;justify-content:left}.edit-post-post-visibility span{display:block;width:45%}@media (min-width:782px){.edit-post-post-visibility__dialog .components-popover__content{width:257px}}.edit-post-post-visibility__dialog-legend{font-weight:600}.edit-post-post-visibility__choice{margin:10px 0}.edit-post-post-visibility__dialog-label,.edit-post-post-visibility__dialog-radio{vertical-align:top}.edit-post-post-visibility__dialog-password-input{width:calc(100% - 20px);margin-left:20px}.edit-post-post-visibility__dialog-info{color:#757575;padding-left:20px;font-style:italic;margin:4px 0 0;line-height:1.4}.components-button.edit-post-sidebar__panel-tab{border-radius:0;height:48px;background:transparent;border:none;box-shadow:none;cursor:pointer;display:inline-block;padding:3px 15px;margin-left:0;font-weight:500}.components-button.edit-post-sidebar__panel-tab:after{content:attr(data-label);display:block;font-weight:600;height:0;overflow:hidden;speak:none;visibility:hidden}.components-button.edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 0 0 1.5px transparent,inset 0 -4px 0 0 #007cba;box-shadow:inset 0 0 0 1.5px transparent,inset 0 -4px 0 0 var(--wp-admin-theme-color);position:relative;z-index:1}.components-button.edit-post-sidebar__panel-tab.is-active:before{content:"";position:absolute;top:0;bottom:1px;right:0;left:0;border-bottom:4px solid transparent}.components-button.edit-post-sidebar__panel-tab:focus{box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color);position:relative;z-index:1}.components-button.edit-post-sidebar__panel-tab.is-active:focus{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 -4px 0 0 #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 -4px 0 0 var(--wp-admin-theme-color)}.edit-post-text-editor{position:relative;width:100%;background-color:#fff;flex-grow:1}.edit-post-text-editor .wp-block.editor-post-title{max-width:none;line-height:1.4}.edit-post-text-editor .wp-block.editor-post-title .editor-post-title__input.editor-post-title__input.editor-post-title__input{font-family:Menlo,Consolas,monaco,monospace;font-size:2.5em;font-weight:400}.edit-post-text-editor .wp-block.editor-post-title .editor-post-title__input{border:1px solid #949494;margin-bottom:-1px;padding:16px}@media (min-width:600px){.edit-post-text-editor .wp-block.editor-post-title .editor-post-title__input{padding:24px}}.edit-post-text-editor .wp-block.editor-post-title .editor-post-title__input:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color)}@media (min-width:600px){.edit-post-text-editor .wp-block.editor-post-title{padding:0}}.edit-post-text-editor__body{width:100%;padding:0 12px 12px;max-width:1080px;margin-left:auto;margin-right:auto}@media (min-width:960px){.edit-post-text-editor__body{padding:0 24px 24px}}.edit-post-text-editor__toolbar{position:-webkit-sticky;position:sticky;z-index:1;top:0;left:0;right:0;display:flex;background:hsla(0,0%,100%,.8);padding:4px 12px}@media (min-width:600px){.edit-post-text-editor__toolbar{padding:12px}}@media (min-width:960px){.edit-post-text-editor__toolbar{padding:12px 24px}}.edit-post-text-editor__toolbar h2{line-height:36px;margin:0 auto 0 0;font-size:13px;color:#1e1e1e}.edit-post-text-editor__toolbar .components-button svg{order:1}.edit-post-visual-editor{position:relative;padding-top:50px;background-color:#fff;flex:1 1 auto}.edit-post-visual-editor .components-button{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:6px 12px}.edit-post-visual-editor .components-button.has-icon,.edit-post-visual-editor .components-button.is-tertiary{padding:6px}@supports ((position:-webkit-sticky) or (position:sticky)){.edit-post-visual-editor{flex-basis:100%}}.edit-post-visual-editor>.block-editor__typewriter,.edit-post-visual-editor>.block-editor__typewriter>div,.edit-post-visual-editor>.block-editor__typewriter>div>.block-editor-writing-flow,.edit-post-visual-editor>.block-editor__typewriter>div>.block-editor-writing-flow>.block-editor-writing-flow__click-redirect{height:100%}.edit-post-visual-editor .block-editor-writing-flow__click-redirect{min-height:40vh;width:100%}.has-metaboxes .edit-post-visual-editor .block-editor-writing-flow__click-redirect{height:0}.edit-post-visual-editor__post-title-wrapper .editor-post-title{margin:2em auto 32px}.edit-post-welcome-guide{width:312px}.edit-post-welcome-guide__image{background:#00a0d2;height:240px}.edit-post-welcome-guide__image__prm-r{display:none}@media (prefers-reduced-motion:reduce){.edit-post-welcome-guide__image__prm-r{display:block}.edit-post-welcome-guide__image__prm-np{display:none}}.edit-post-welcome-guide__heading{font-family:"Noto Serif",serif;font-size:24px;line-height:1.4;margin:0 0 16px;padding:0 32px}.edit-post-welcome-guide__text{font-size:13px;line-height:1.4;margin:0 0 24px;padding:0 32px}.edit-post-welcome-guide__inserter-icon{margin:0 4px;vertical-align:text-top}@keyframes edit-post__fade-in-animation{0%{opacity:0}to{opacity:1}}body.block-editor-page,html.wp-toolbar{background:#fff}body.block-editor-page #wpcontent{padding-left:0}body.block-editor-page #wpbody-content{padding-bottom:0}body.block-editor-page #wpbody-content>div:not(.block-editor):not(#screen-meta){display:none}body.block-editor-page #wpfooter{display:none}body.block-editor-page .a11y-speak-region{left:-1px;top:-1px}body.block-editor-page ul#adminmenu>li.current>a.current:after,body.block-editor-page ul#adminmenu a.wp-has-current-submenu:after{border-right-color:#fff}body.block-editor-page .media-frame select.attachment-filters:last-of-type{width:auto;max-width:100%}.components-modal__frame,.components-popover,.edit-post-header,.edit-post-layout__inserter-panel,.edit-post-sidebar,.edit-post-text-editor,.edit-post-visual-editor,.editor-post-publish-panel{box-sizing:border-box}.components-modal__frame *,.components-modal__frame :after,.components-modal__frame :before,.components-popover *,.components-popover :after,.components-popover :before,.edit-post-header *,.edit-post-header :after,.edit-post-header :before,.edit-post-layout__inserter-panel *,.edit-post-layout__inserter-panel :after,.edit-post-layout__inserter-panel :before,.edit-post-sidebar *,.edit-post-sidebar :after,.edit-post-sidebar :before,.edit-post-text-editor *,.edit-post-text-editor :after,.edit-post-text-editor :before,.edit-post-visual-editor *,.edit-post-visual-editor :after,.edit-post-visual-editor :before,.editor-post-publish-panel *,.editor-post-publish-panel :after,.editor-post-publish-panel :before{box-sizing:inherit}@media (min-width:600px){.block-editor__container{position:absolute;top:0;right:0;bottom:0;left:0;min-height:calc(100vh - 46px)}}@media (min-width:782px){.block-editor__container{min-height:calc(100vh - 32px)}body.is-fullscreen-mode .block-editor__container{min-height:100vh}}.block-editor__container img{max-width:100%;height:auto}.block-editor__container iframe{width:100%}.block-editor__container .components-navigate-regions{height:100%}.wp-block{max-width:580px}.wp-block[data-align=wide]{max-width:1100px}.wp-block[data-align=full]{max-width:none}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-20:#006187}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-20:#183ad6}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-20:#064054}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-20:#2b2724}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-20:#3a2c4d}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-20:#d02c21}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-20:#4c6066}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-20:#c36922} \ No newline at end of file diff --git a/wp-includes/css/dist/editor/editor-styles-rtl.css b/wp-includes/css/dist/editor/editor-styles-rtl.css index 87e4b33476..1499e6a368 100644 --- a/wp-includes/css/dist/editor/editor-styles-rtl.css +++ b/wp-includes/css/dist/editor/editor-styles-rtl.css @@ -81,53 +81,39 @@ body { margin-left: -10px; } /* Headings */ -h1 { - font-size: 2.44em; } - -h2 { - font-size: 1.95em; } - -h3 { - font-size: 1.56em; } - -h4 { - font-size: 1.25em; } - -h5 { - font-size: 1em; } - -h6 { - font-size: 0.8em; } - h1, h2, h3 { line-height: 1.4; } -h4 { - line-height: 1.5; } - h1 { + font-size: 2.44em; margin-top: 0.67em; margin-bottom: 0.67em; } h2 { + font-size: 1.95em; margin-top: 0.83em; margin-bottom: 0.83em; } h3 { + font-size: 1.56em; margin-top: 1em; margin-bottom: 1em; } h4 { + font-size: 1.25em; + line-height: 1.5; margin-top: 1.33em; margin-bottom: 1.33em; } h5 { + font-size: 1em; margin-top: 1.67em; margin-bottom: 1.67em; } h6 { + font-size: 0.8em; margin-top: 2.33em; margin-bottom: 2.33em; } diff --git a/wp-includes/css/dist/editor/editor-styles-rtl.min.css b/wp-includes/css/dist/editor/editor-styles-rtl.min.css index 9839cba9ab..4307830a81 100644 --- a/wp-includes/css/dist/editor/editor-styles-rtl.min.css +++ b/wp-includes/css/dist/editor/editor-styles-rtl.min.css @@ -1 +1 @@ -body{font-family:"Noto Serif",serif;font-size:16px;line-height:1.8;color:#1e1e1e;padding:10px}.block-editor-block-list__layout.is-root-container>.wp-block[data-align=full]{margin-right:-10px;margin-left:-10px}h1{font-size:2.44em}h2{font-size:1.95em}h3{font-size:1.56em}h4{font-size:1.25em}h5{font-size:1em}h6{font-size:.8em}h1,h2,h3{line-height:1.4}h4{line-height:1.5}h1{margin-top:.67em;margin-bottom:.67em}h2{margin-top:.83em;margin-bottom:.83em}h3{margin-top:1em;margin-bottom:1em}h4{margin-top:1.33em;margin-bottom:1.33em}h5{margin-top:1.67em;margin-bottom:1.67em}h6{margin-top:2.33em;margin-bottom:2.33em}h1,h2,h3,h4,h5,h6{color:inherit}p{font-size:inherit;line-height:inherit;margin-top:28px}ol,p,ul{margin-bottom:28px}ol,ul{padding-right:1.3em;margin-right:1.3em}ol li,ol ol,ol ul,ul li,ul ol,ul ul{margin-bottom:0}ul{list-style-type:disc}ol{list-style-type:decimal}ol ul,ul ul{list-style-type:circle}.wp-align-wrapper{max-width:580px}.wp-align-wrapper.wp-align-full,.wp-align-wrapper>.wp-block{max-width:none}.wp-align-wrapper.wp-align-wide{max-width:1100px}a{transition:none}code,kbd{padding:0;margin:0;background:inherit;font-size:inherit;font-family:monospace} \ No newline at end of file +body{font-family:"Noto Serif",serif;font-size:16px;line-height:1.8;color:#1e1e1e;padding:10px}.block-editor-block-list__layout.is-root-container>.wp-block[data-align=full]{margin-right:-10px;margin-left:-10px}h1,h2,h3{line-height:1.4}h1{font-size:2.44em;margin-top:.67em;margin-bottom:.67em}h2{font-size:1.95em;margin-top:.83em;margin-bottom:.83em}h3{font-size:1.56em;margin-top:1em;margin-bottom:1em}h4{font-size:1.25em;line-height:1.5;margin-top:1.33em;margin-bottom:1.33em}h5{font-size:1em;margin-top:1.67em;margin-bottom:1.67em}h6{font-size:.8em;margin-top:2.33em;margin-bottom:2.33em}h1,h2,h3,h4,h5,h6{color:inherit}p{font-size:inherit;line-height:inherit;margin-top:28px}ol,p,ul{margin-bottom:28px}ol,ul{padding-right:1.3em;margin-right:1.3em}ol li,ol ol,ol ul,ul li,ul ol,ul ul{margin-bottom:0}ul{list-style-type:disc}ol{list-style-type:decimal}ol ul,ul ul{list-style-type:circle}.wp-align-wrapper{max-width:580px}.wp-align-wrapper.wp-align-full,.wp-align-wrapper>.wp-block{max-width:none}.wp-align-wrapper.wp-align-wide{max-width:1100px}a{transition:none}code,kbd{padding:0;margin:0;background:inherit;font-size:inherit;font-family:monospace} \ No newline at end of file diff --git a/wp-includes/css/dist/editor/editor-styles.css b/wp-includes/css/dist/editor/editor-styles.css index f64844e758..46834cf238 100644 --- a/wp-includes/css/dist/editor/editor-styles.css +++ b/wp-includes/css/dist/editor/editor-styles.css @@ -81,53 +81,39 @@ body { margin-right: -10px; } /* Headings */ -h1 { - font-size: 2.44em; } - -h2 { - font-size: 1.95em; } - -h3 { - font-size: 1.56em; } - -h4 { - font-size: 1.25em; } - -h5 { - font-size: 1em; } - -h6 { - font-size: 0.8em; } - h1, h2, h3 { line-height: 1.4; } -h4 { - line-height: 1.5; } - h1 { + font-size: 2.44em; margin-top: 0.67em; margin-bottom: 0.67em; } h2 { + font-size: 1.95em; margin-top: 0.83em; margin-bottom: 0.83em; } h3 { + font-size: 1.56em; margin-top: 1em; margin-bottom: 1em; } h4 { + font-size: 1.25em; + line-height: 1.5; margin-top: 1.33em; margin-bottom: 1.33em; } h5 { + font-size: 1em; margin-top: 1.67em; margin-bottom: 1.67em; } h6 { + font-size: 0.8em; margin-top: 2.33em; margin-bottom: 2.33em; } diff --git a/wp-includes/css/dist/editor/editor-styles.min.css b/wp-includes/css/dist/editor/editor-styles.min.css index 80f6b3e42e..e86f15bf19 100644 --- a/wp-includes/css/dist/editor/editor-styles.min.css +++ b/wp-includes/css/dist/editor/editor-styles.min.css @@ -1 +1 @@ -body{font-family:"Noto Serif",serif;font-size:16px;line-height:1.8;color:#1e1e1e;padding:10px}.block-editor-block-list__layout.is-root-container>.wp-block[data-align=full]{margin-left:-10px;margin-right:-10px}h1{font-size:2.44em}h2{font-size:1.95em}h3{font-size:1.56em}h4{font-size:1.25em}h5{font-size:1em}h6{font-size:.8em}h1,h2,h3{line-height:1.4}h4{line-height:1.5}h1{margin-top:.67em;margin-bottom:.67em}h2{margin-top:.83em;margin-bottom:.83em}h3{margin-top:1em;margin-bottom:1em}h4{margin-top:1.33em;margin-bottom:1.33em}h5{margin-top:1.67em;margin-bottom:1.67em}h6{margin-top:2.33em;margin-bottom:2.33em}h1,h2,h3,h4,h5,h6{color:inherit}p{font-size:inherit;line-height:inherit;margin-top:28px}ol,p,ul{margin-bottom:28px}ol,ul{padding-left:1.3em;margin-left:1.3em}ol li,ol ol,ol ul,ul li,ul ol,ul ul{margin-bottom:0}ul{list-style-type:disc}ol{list-style-type:decimal}ol ul,ul ul{list-style-type:circle}.wp-align-wrapper{max-width:580px}.wp-align-wrapper.wp-align-full,.wp-align-wrapper>.wp-block{max-width:none}.wp-align-wrapper.wp-align-wide{max-width:1100px}a{transition:none}code,kbd{padding:0;margin:0;background:inherit;font-size:inherit;font-family:monospace} \ No newline at end of file +body{font-family:"Noto Serif",serif;font-size:16px;line-height:1.8;color:#1e1e1e;padding:10px}.block-editor-block-list__layout.is-root-container>.wp-block[data-align=full]{margin-left:-10px;margin-right:-10px}h1,h2,h3{line-height:1.4}h1{font-size:2.44em;margin-top:.67em;margin-bottom:.67em}h2{font-size:1.95em;margin-top:.83em;margin-bottom:.83em}h3{font-size:1.56em;margin-top:1em;margin-bottom:1em}h4{font-size:1.25em;line-height:1.5;margin-top:1.33em;margin-bottom:1.33em}h5{font-size:1em;margin-top:1.67em;margin-bottom:1.67em}h6{font-size:.8em;margin-top:2.33em;margin-bottom:2.33em}h1,h2,h3,h4,h5,h6{color:inherit}p{font-size:inherit;line-height:inherit;margin-top:28px}ol,p,ul{margin-bottom:28px}ol,ul{padding-left:1.3em;margin-left:1.3em}ol li,ol ol,ol ul,ul li,ul ol,ul ul{margin-bottom:0}ul{list-style-type:disc}ol{list-style-type:decimal}ol ul,ul ul{list-style-type:circle}.wp-align-wrapper{max-width:580px}.wp-align-wrapper.wp-align-full,.wp-align-wrapper>.wp-block{max-width:none}.wp-align-wrapper.wp-align-wide{max-width:1100px}a{transition:none}code,kbd{padding:0;margin:0;background:inherit;font-size:inherit;font-family:monospace} \ No newline at end of file diff --git a/wp-includes/css/dist/editor/style-rtl.css b/wp-includes/css/dist/editor/style-rtl.css index 704a3f15cc..ea62a85021 100644 --- a/wp-includes/css/dist/editor/style-rtl.css +++ b/wp-includes/css/dist/editor/style-rtl.css @@ -189,8 +189,9 @@ width: 100%; } @media (min-width: 782px) { .components-editor-notices__snackbar { - width: fit-content; - width: -moz-fit-content; } } + width: -webkit-fit-content; + width: -moz-fit-content; + width: fit-content; } } .entities-saved-states__panel { box-sizing: border-box; @@ -758,6 +759,13 @@ opacity: 1; } .editor-post-title .editor-post-title__input:-ms-input-placeholder { color: rgba(30, 30, 30, 0.62); } + .is-dark-theme .editor-post-title .editor-post-title__input::-webkit-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .editor-post-title .editor-post-title__input::-moz-placeholder { + opacity: 1; + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .editor-post-title .editor-post-title__input:-ms-input-placeholder { + color: rgba(255, 255, 255, 0.65); } .editor-post-title .editor-post-title__input:focus { border: 1px solid transparent; outline: 1px solid transparent; @@ -809,7 +817,7 @@ margin-top: -8px; } .table-of-contents__count { - flex-basis: 25%; + flex-basis: 33%; display: flex; flex-direction: column; font-size: 13px; diff --git a/wp-includes/css/dist/editor/style-rtl.min.css b/wp-includes/css/dist/editor/style-rtl.min.css index 2ad6083489..87e14de909 100644 --- a/wp-includes/css/dist/editor/style-rtl.min.css +++ b/wp-includes/css/dist/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}.editor-autocompleters__user .editor-autocompleters__no-avatar:before{font:normal 20px/1 dashicons;content:"\f110";margin-left:5px;vertical-align:middle}.editor-autocompleters__user .editor-autocompleters__user-avatar{margin-left:8px;flex-grow:0;flex-shrink:0;max-width:none;width:24px;height:24px}.editor-autocompleters__user .editor-autocompleters__user-name{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:200px;flex-shrink:0;flex-grow:1}.editor-autocompleters__user .editor-autocompleters__user-slug{margin-right:8px;color:#757575;white-space:nowrap;text-overflow:ellipsis;overflow:none;max-width:100px;flex-grow:0;flex-shrink:0}.editor-autocompleters__user:hover .editor-autocompleters__user-slug{color:#007cba;color:var(--wp-admin-theme-color)}.document-outline{margin:20px 0}.document-outline ul{margin:0;padding:0}.document-outline__item{display:flex;margin:4px 0}.document-outline__item a{text-decoration:none}.document-outline__item .document-outline__emdash:before{color:#ddd;margin-left:4px}.document-outline__item.is-h2 .document-outline__emdash:before{content:"—"}.document-outline__item.is-h3 .document-outline__emdash:before{content:"——"}.document-outline__item.is-h4 .document-outline__emdash:before{content:"———"}.document-outline__item.is-h5 .document-outline__emdash:before{content:"————"}.document-outline__item.is-h6 .document-outline__emdash:before{content:"—————"}.document-outline__button{cursor:pointer;background:none;border:none;display:flex;align-items:flex-start;margin:0 -1px 0 0;padding:2px 1px 2px 5px;color:#1e1e1e;text-align:right;border-radius:2px}.document-outline__button:disabled{cursor:default}.document-outline__button: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}.document-outline__level{background:#ddd;color:#1e1e1e;border-radius:3px;font-size:13px;padding:1px 6px;margin-left:4px}.is-invalid .document-outline__level{background:#f0b849}.document-outline__item-content{padding:1px 0}.components-editor-notices__dismissible{position:-webkit-sticky;position:sticky;top:0;left:0;color:#1e1e1e}.components-editor-notices__pinned{position:relative;right:0;top:0;left:0;color:#1e1e1e}.components-editor-notices__dismissible .components-notice,.components-editor-notices__pinned .components-notice{box-sizing:border-box;margin:0;border-bottom:1px solid rgba(0,0,0,.2);padding:0 12px;min-height:60px}.components-editor-notices__dismissible .components-notice .components-notice__dismiss,.components-editor-notices__pinned .components-notice .components-notice__dismiss{margin-top:12px}.components-editor-notices__snackbar{width:100%}@media (min-width:782px){.components-editor-notices__snackbar{width:fit-content;width:-moz-fit-content}}.entities-saved-states__panel{background:#fff;position:fixed;z-index:100001;top:46px;bottom:0;left:0;right:0;overflow:auto;box-sizing:border-box}.entities-saved-states__panel *,.entities-saved-states__panel :after,.entities-saved-states__panel :before{box-sizing:inherit}.entities-saved-states__panel .entities-saved-states__find-entity{display:none}.entities-saved-states__panel .entities-saved-states__find-entity-small{display:block}@media (min-width:782px){.entities-saved-states__panel{z-index:99998;top:32px;right:auto;width:280px;border-right:1px solid #ddd}body.is-fullscreen-mode .entities-saved-states__panel{top:0}.entities-saved-states__panel .entities-saved-states__find-entity{display:block}.entities-saved-states__panel .entities-saved-states__find-entity-small{display:none}}.entities-saved-states__panel .entities-saved-states__panel-header{background:#fff;padding-right:8px;padding-left:8px;height:61px;border-bottom:1px solid #ddd;display:flex;align-items:center;align-content:space-between}.entities-saved-states__panel .entities-saved-states__panel-header .editor-entities-saved-states__save-button{margin:auto}.entities-saved-states__panel .entities-saved-states__panel-header .components-button.has-icon{position:absolute;left:8px}.entities-saved-states__panel .entities-saved-states__text-prompt{border-bottom:1px solid #ddd;padding:16px 16px 4px}.editor-error-boundary{max-width:780px;padding:20px;margin:60px auto auto;box-shadow:0 3px 30px rgba(0,0,0,.2)}.editor-page-attributes__template{margin-bottom:10px}.editor-page-attributes__order,.editor-page-attributes__template label,.editor-page-attributes__template select{width:100%}.editor-page-attributes__order .components-base-control__field{display:flex;justify-content:space-between;align-items:center}.editor-page-attributes__order input{width:66px}.editor-post-excerpt__textarea{width:100%;margin-bottom:10px}.editor-post-featured-image{padding:0}.editor-post-featured-image__container{margin-bottom:1em;position:relative}.editor-post-featured-image .components-spinner{position:absolute;top:50%;right:50%;margin-top:-9px;margin-right:-9px}.editor-post-featured-image .components-button+.components-button{display:block;margin-top:1em}.editor-post-featured-image .components-responsive-wrapper__content{max-width:100%;width:auto}.editor-post-featured-image__preview,.editor-post-featured-image__toggle{display:block;width:100%;padding:0;transition:all .1s ease-out;box-shadow:0 0 0 0 #007cba;box-shadow:0 0 0 0 var(--wp-admin-theme-color)}@media (prefers-reduced-motion:reduce){.editor-post-featured-image__preview,.editor-post-featured-image__toggle{transition-duration:0s}}.editor-post-featured-image__preview{height:auto}.editor-post-featured-image__preview:not(:disabled):not([aria-disabled=true]):focus{box-shadow:0 0 0 4px #007cba;box-shadow:0 0 0 4px var(--wp-admin-theme-color)}.editor-post-featured-image__toggle{border-radius:2px;background-color:#f0f0f0;min-height:90px;line-height:20px;padding:8px 0;text-align:center}.editor-post-featured-image__toggle:hover{background:#ddd;color:#1e1e1e}.editor-post-format{flex-direction:column;align-items:stretch;width:100%}.editor-post-format__content{display:inline-flex;justify-content:space-between;align-items:center;width:100%}.editor-post-format__suggestion{text-align:left;font-size:13px}.editor-post-last-revision__title{width:100%;font-weight:600}.editor-post-last-revision__title .dashicon{margin-left:5px}.components-button.editor-post-last-revision__title{height:100%}.components-button.editor-post-last-revision__title:active,.components-button.editor-post-last-revision__title:hover{background:#f0f0f0}.components-button.editor-post-last-revision__title:focus{box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color);border-radius:0}.editor-post-locked-modal{height:auto;padding-left:10px;padding-right:10px;padding-top:10px;max-width:480px}.editor-post-locked-modal .components-modal__header{height:36px}.editor-post-locked-modal .components-modal__content{height:auto}.editor-post-locked-modal__buttons{margin-top:10px}.editor-post-locked-modal__buttons .components-button{margin-left:5px}.editor-post-locked-modal__avatar{float:right;margin:5px 5px 5px 15px}.editor-post-publish-button__button.has-changes-dot:before{background:currentcolor;border-radius:4px;content:"";height:8px;margin:auto -3px auto 5px;width:8px}.editor-post-publish-panel{background:#fff}.editor-post-publish-panel__content{min-height:calc(100% - 144px)}.editor-post-publish-panel__content .components-spinner{display:block;margin:100px auto 0}.editor-post-publish-panel__header{background:#fff;padding-right:16px;padding-left:16px;height:61px;border-bottom:1px solid #ddd;display:flex;align-items:center;align-content:space-between}.editor-post-publish-panel__header .components-button{width:100%;justify-content:center}.editor-post-publish-panel__header .has-icon{margin-right:auto;width:auto}.editor-post-publish-panel__header-cancel-button,.editor-post-publish-panel__header-publish-button{flex-grow:1}@media (min-width:480px){.editor-post-publish-panel__header-cancel-button,.editor-post-publish-panel__header-publish-button{max-width:160px}}.editor-post-publish-panel__header-publish-button{padding-left:4px}.editor-post-publish-panel__header-cancel-button{padding-right:4px}.editor-post-publish-panel__header-published{flex-grow:1}.editor-post-publish-panel__footer{padding:16px}.components-button.editor-post-publish-panel__toggle.is-primary{display:inline-flex;align-items:center}.components-button.editor-post-publish-panel__toggle.is-primary.is-busy .dashicon{display:none}.components-button.editor-post-publish-panel__toggle.is-primary .dashicon{margin-left:-4px}.editor-post-publish-panel__link{font-weight:400;padding-right:4px}.editor-post-publish-panel__prepublish{padding:16px}.editor-post-publish-panel__prepublish strong{color:#1e1e1e}.editor-post-publish-panel__prepublish .components-panel__body{background:#fff;margin-right:-16px;margin-left:-16px}.editor-post-publish-panel__prepublish .editor-post-visibility__dialog-legend{display:none}.post-publish-panel__postpublish .components-panel__body{border-bottom:1px solid #e0e0e0;border-top:none}.post-publish-panel__postpublish-buttons{display:flex;align-content:space-between;flex-wrap:wrap;margin:-5px}.post-publish-panel__postpublish-buttons>*{flex-grow:1;margin:5px}.post-publish-panel__postpublish-buttons .components-button{height:auto;justify-content:center;padding:3px 10px 4px;line-height:1.6;text-align:center;white-space:normal}.post-publish-panel__postpublish-buttons .components-clipboard-button{width:100%}.post-publish-panel__postpublish-post-address{margin-bottom:16px}.post-publish-panel__postpublish-post-address input[readonly]{padding:10px;background:#ddd;overflow:hidden;text-overflow:ellipsis}.post-publish-panel__postpublish-header{font-weight:500}.post-publish-panel__postpublish-subheader{margin:0 0 8px}.post-publish-panel__tip{color:#f0b849}.editor-post-saved-state{display:flex;align-items:center;width:28px;padding:12px 4px;color:#757575;overflow:hidden;white-space:nowrap}.editor-post-saved-state svg{display:inline-block;flex:0 0 auto;fill:currentColor;margin-left:8px}@media (min-width:600px){.editor-post-saved-state{width:auto;padding:8px 12px;text-indent:inherit}.editor-post-saved-state svg{margin-left:4px}}.editor-post-taxonomies__hierarchical-terms-list{max-height:14em;overflow:auto;margin-right:-5.5px;padding-right:5.5px;margin-top:-5.5px;padding-top:5.5px}.editor-post-taxonomies__hierarchical-terms-choice{margin-bottom:8px}.editor-post-taxonomies__hierarchical-terms-subchoices{margin-top:8px;margin-right:16px}.components-button.editor-post-taxonomies__hierarchical-terms-add,.components-button.editor-post-taxonomies__hierarchical-terms-submit{margin-top:12px}.editor-post-taxonomies__hierarchical-terms-label{display:inline-block;margin-top:12px}.editor-post-taxonomies__hierarchical-terms-input{margin-top:8px;width:100%}.editor-post-taxonomies__hierarchical-terms-filter{margin-bottom:8px;width:100%}.edit-post-text-editor__body textarea.editor-post-text-editor{border:1px solid #949494;border-radius:0;display:block;margin:0;width:100%;box-shadow:none;resize:none;overflow:hidden;font-family:Menlo,Consolas,monaco,monospace;line-height:2.4;min-height:200px;transition:border .1s ease-out,box-shadow .1s linear;padding:16px;font-size:16px!important}@media (prefers-reduced-motion:reduce){.edit-post-text-editor__body textarea.editor-post-text-editor{transition-duration:0s}}@media (min-width:600px){.edit-post-text-editor__body textarea.editor-post-text-editor{padding:24px;font-size:15px!important}}.edit-post-text-editor__body textarea.editor-post-text-editor:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);position:relative}.edit-post-text-editor__body textarea.editor-post-text-editor::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.edit-post-text-editor__body textarea.editor-post-text-editor::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}.edit-post-text-editor__body textarea.editor-post-text-editor:-ms-input-placeholder{color:rgba(30,30,30,.62)}.edit-post-post-visibility__dialog,.editor-post-visibility__dialog-fieldset{padding:0 4px 4px}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-legend,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-legend{font-weight:600;margin-bottom:1em;margin-top:.5em;padding:0}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio],.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]{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;font-size:16px;line-height:normal;border:1px solid #1e1e1e;margin-left:12px;transition:none;border-radius:50%;margin-top:2px}@media (prefers-reduced-motion:reduce){.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio],.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]{transition-duration:0s}}@media (min-width:600px){.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio],.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]{font-size:13px;line-height:normal}}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:focus,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]: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)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]::-webkit-input-placeholder,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]::-moz-placeholder,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:-ms-input-placeholder,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]::-webkit-input-placeholder,.is-dark-theme .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]::-moz-placeholder,.is-dark-theme .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:-ms-input-placeholder,.is-dark-theme .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:checked:before,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:checked:before{width:7px;height:7px;margin:8px 8px 0 0;background-color:#fff;border:3px solid #fff}@media (min-width:782px){.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:checked:before,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:checked:before{width:6px;height:6px;margin:4px 4px 0 0}}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:focus,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:focus{box-shadow:0 0 0 2px #fff,0 0 0 3.5px #007cba;box-shadow:0 0 0 2px #fff,0 0 0 3.5px var(--wp-admin-theme-color);outline:2px solid transparent}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:checked,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:checked{background:#007cba;background:var(--wp-admin-theme-color);border-color:#007cba;border-color:var(--wp-admin-theme-color)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-label,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-label{font-weight:600}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-info,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-info{margin-top:0;margin-right:28px}.edit-post-post-visibility__dialog .editor-post-visibility__choice:last-child .editor-post-visibility__dialog-info,.editor-post-visibility__dialog-fieldset .editor-post-visibility__choice:last-child .editor-post-visibility__dialog-info{margin-bottom:0}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text],.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-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;margin-right:28px}@media (prefers-reduced-motion:reduce){.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text],.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]{transition-duration:0s}}@media (min-width:600px){.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text],.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]{font-size:13px;line-height:normal}}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]:focus,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-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}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]::-webkit-input-placeholder,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]::-moz-placeholder,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]:-ms-input-placeholder,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]::-webkit-input-placeholder,.is-dark-theme .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]::-moz-placeholder,.is-dark-theme .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]:-ms-input-placeholder,.is-dark-theme .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.editor-post-title{position:relative}.editor-post-title .editor-post-title__input{display:block;width:100%;margin:0;box-shadow:none;background:transparent;transition:border .1s ease-out,box-shadow .1s linear;padding:19px 0;word-break:keep-all;font-family:inherit;color:inherit;border-color:transparent;border-style:solid;border-width:1px 0;border-radius:0;outline:1px solid transparent;font-size:2.44em;font-weight:700;line-height:1.4}@media (prefers-reduced-motion:reduce){.editor-post-title .editor-post-title__input{transition-duration:0s}}@media (min-width:600px){.editor-post-title .editor-post-title__input{border-width:1px}}.editor-post-title .editor-post-title__input::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.editor-post-title .editor-post-title__input::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}.editor-post-title .editor-post-title__input:-ms-input-placeholder{color:rgba(30,30,30,.62)}.editor-post-title .editor-post-title__input:focus{border:1px solid transparent;outline:1px solid transparent;box-shadow:none}.editor-post-title.is-focus-mode .editor-post-title__input{opacity:.5;transition:opacity .1s linear}@media (prefers-reduced-motion:reduce){.editor-post-title.is-focus-mode .editor-post-title__input{transition-duration:0s}}.editor-post-title.is-focus-mode .editor-post-title__input:focus{opacity:1}.editor-post-trash.components-button{margin-top:4px}.table-of-contents__popover.components-popover .components-popover__content{min-width:380px}.components-popover.table-of-contents__popover{z-index:99998}.table-of-contents__popover .components-popover__content>div{padding:16px}@media (min-width:600px){.table-of-contents__popover .components-popover__content{max-height:calc(100vh - 120px);overflow-y:auto}}.table-of-contents__popover hr{margin:10px -16px 0}.table-of-contents__wrapper:focus:before{content:"";display:block;position:absolute;top:0;left:0;bottom:0;right:0;box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color)}.table-of-contents__counts{display:flex;flex-wrap:wrap;margin:-8px 0 0}.table-of-contents__count{flex-basis:25%;display:flex;flex-direction:column;font-size:13px;color:#1e1e1e;padding-left:8px;margin-bottom:0;margin-top:8px}.table-of-contents__count:nth-child(4n){padding-left:0}.table-of-contents__number,.table-of-contents__popover .word-count{font-size:21px;font-weight:400;line-height:30px;color:#1e1e1e}.table-of-contents__title{display:block;margin-top:20px;font-size:15px;font-weight:600}.editor-template-validation-notice{display:flex;justify-content:space-between;align-items:center}.editor-template-validation-notice .components-button{margin-right:5px} \ 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}.editor-autocompleters__user .editor-autocompleters__no-avatar:before{font:normal 20px/1 dashicons;content:"\f110";margin-left:5px;vertical-align:middle}.editor-autocompleters__user .editor-autocompleters__user-avatar{margin-left:8px;flex-grow:0;flex-shrink:0;max-width:none;width:24px;height:24px}.editor-autocompleters__user .editor-autocompleters__user-name{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:200px;flex-shrink:0;flex-grow:1}.editor-autocompleters__user .editor-autocompleters__user-slug{margin-right:8px;color:#757575;white-space:nowrap;text-overflow:ellipsis;overflow:none;max-width:100px;flex-grow:0;flex-shrink:0}.editor-autocompleters__user:hover .editor-autocompleters__user-slug{color:#007cba;color:var(--wp-admin-theme-color)}.document-outline{margin:20px 0}.document-outline ul{margin:0;padding:0}.document-outline__item{display:flex;margin:4px 0}.document-outline__item a{text-decoration:none}.document-outline__item .document-outline__emdash:before{color:#ddd;margin-left:4px}.document-outline__item.is-h2 .document-outline__emdash:before{content:"—"}.document-outline__item.is-h3 .document-outline__emdash:before{content:"——"}.document-outline__item.is-h4 .document-outline__emdash:before{content:"———"}.document-outline__item.is-h5 .document-outline__emdash:before{content:"————"}.document-outline__item.is-h6 .document-outline__emdash:before{content:"—————"}.document-outline__button{cursor:pointer;background:none;border:none;display:flex;align-items:flex-start;margin:0 -1px 0 0;padding:2px 1px 2px 5px;color:#1e1e1e;text-align:right;border-radius:2px}.document-outline__button:disabled{cursor:default}.document-outline__button: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}.document-outline__level{background:#ddd;color:#1e1e1e;border-radius:3px;font-size:13px;padding:1px 6px;margin-left:4px}.is-invalid .document-outline__level{background:#f0b849}.document-outline__item-content{padding:1px 0}.components-editor-notices__dismissible{position:-webkit-sticky;position:sticky;top:0;left:0;color:#1e1e1e}.components-editor-notices__pinned{position:relative;right:0;top:0;left:0;color:#1e1e1e}.components-editor-notices__dismissible .components-notice,.components-editor-notices__pinned .components-notice{box-sizing:border-box;margin:0;border-bottom:1px solid rgba(0,0,0,.2);padding:0 12px;min-height:60px}.components-editor-notices__dismissible .components-notice .components-notice__dismiss,.components-editor-notices__pinned .components-notice .components-notice__dismiss{margin-top:12px}.components-editor-notices__snackbar{width:100%}@media (min-width:782px){.components-editor-notices__snackbar{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}}.entities-saved-states__panel{background:#fff;position:fixed;z-index:100001;top:46px;bottom:0;left:0;right:0;overflow:auto;box-sizing:border-box}.entities-saved-states__panel *,.entities-saved-states__panel :after,.entities-saved-states__panel :before{box-sizing:inherit}.entities-saved-states__panel .entities-saved-states__find-entity{display:none}.entities-saved-states__panel .entities-saved-states__find-entity-small{display:block}@media (min-width:782px){.entities-saved-states__panel{z-index:99998;top:32px;right:auto;width:280px;border-right:1px solid #ddd}body.is-fullscreen-mode .entities-saved-states__panel{top:0}.entities-saved-states__panel .entities-saved-states__find-entity{display:block}.entities-saved-states__panel .entities-saved-states__find-entity-small{display:none}}.entities-saved-states__panel .entities-saved-states__panel-header{background:#fff;padding-right:8px;padding-left:8px;height:61px;border-bottom:1px solid #ddd;display:flex;align-items:center;align-content:space-between}.entities-saved-states__panel .entities-saved-states__panel-header .editor-entities-saved-states__save-button{margin:auto}.entities-saved-states__panel .entities-saved-states__panel-header .components-button.has-icon{position:absolute;left:8px}.entities-saved-states__panel .entities-saved-states__text-prompt{border-bottom:1px solid #ddd;padding:16px 16px 4px}.editor-error-boundary{max-width:780px;padding:20px;margin:60px auto auto;box-shadow:0 3px 30px rgba(0,0,0,.2)}.editor-page-attributes__template{margin-bottom:10px}.editor-page-attributes__order,.editor-page-attributes__template label,.editor-page-attributes__template select{width:100%}.editor-page-attributes__order .components-base-control__field{display:flex;justify-content:space-between;align-items:center}.editor-page-attributes__order input{width:66px}.editor-post-excerpt__textarea{width:100%;margin-bottom:10px}.editor-post-featured-image{padding:0}.editor-post-featured-image__container{margin-bottom:1em;position:relative}.editor-post-featured-image .components-spinner{position:absolute;top:50%;right:50%;margin-top:-9px;margin-right:-9px}.editor-post-featured-image .components-button+.components-button{display:block;margin-top:1em}.editor-post-featured-image .components-responsive-wrapper__content{max-width:100%;width:auto}.editor-post-featured-image__preview,.editor-post-featured-image__toggle{display:block;width:100%;padding:0;transition:all .1s ease-out;box-shadow:0 0 0 0 #007cba;box-shadow:0 0 0 0 var(--wp-admin-theme-color)}@media (prefers-reduced-motion:reduce){.editor-post-featured-image__preview,.editor-post-featured-image__toggle{transition-duration:0s}}.editor-post-featured-image__preview{height:auto}.editor-post-featured-image__preview:not(:disabled):not([aria-disabled=true]):focus{box-shadow:0 0 0 4px #007cba;box-shadow:0 0 0 4px var(--wp-admin-theme-color)}.editor-post-featured-image__toggle{border-radius:2px;background-color:#f0f0f0;min-height:90px;line-height:20px;padding:8px 0;text-align:center}.editor-post-featured-image__toggle:hover{background:#ddd;color:#1e1e1e}.editor-post-format{flex-direction:column;align-items:stretch;width:100%}.editor-post-format__content{display:inline-flex;justify-content:space-between;align-items:center;width:100%}.editor-post-format__suggestion{text-align:left;font-size:13px}.editor-post-last-revision__title{width:100%;font-weight:600}.editor-post-last-revision__title .dashicon{margin-left:5px}.components-button.editor-post-last-revision__title{height:100%}.components-button.editor-post-last-revision__title:active,.components-button.editor-post-last-revision__title:hover{background:#f0f0f0}.components-button.editor-post-last-revision__title:focus{box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color);border-radius:0}.editor-post-locked-modal{height:auto;padding-left:10px;padding-right:10px;padding-top:10px;max-width:480px}.editor-post-locked-modal .components-modal__header{height:36px}.editor-post-locked-modal .components-modal__content{height:auto}.editor-post-locked-modal__buttons{margin-top:10px}.editor-post-locked-modal__buttons .components-button{margin-left:5px}.editor-post-locked-modal__avatar{float:right;margin:5px 5px 5px 15px}.editor-post-publish-button__button.has-changes-dot:before{background:currentcolor;border-radius:4px;content:"";height:8px;margin:auto -3px auto 5px;width:8px}.editor-post-publish-panel{background:#fff}.editor-post-publish-panel__content{min-height:calc(100% - 144px)}.editor-post-publish-panel__content .components-spinner{display:block;margin:100px auto 0}.editor-post-publish-panel__header{background:#fff;padding-right:16px;padding-left:16px;height:61px;border-bottom:1px solid #ddd;display:flex;align-items:center;align-content:space-between}.editor-post-publish-panel__header .components-button{width:100%;justify-content:center}.editor-post-publish-panel__header .has-icon{margin-right:auto;width:auto}.editor-post-publish-panel__header-cancel-button,.editor-post-publish-panel__header-publish-button{flex-grow:1}@media (min-width:480px){.editor-post-publish-panel__header-cancel-button,.editor-post-publish-panel__header-publish-button{max-width:160px}}.editor-post-publish-panel__header-publish-button{padding-left:4px}.editor-post-publish-panel__header-cancel-button{padding-right:4px}.editor-post-publish-panel__header-published{flex-grow:1}.editor-post-publish-panel__footer{padding:16px}.components-button.editor-post-publish-panel__toggle.is-primary{display:inline-flex;align-items:center}.components-button.editor-post-publish-panel__toggle.is-primary.is-busy .dashicon{display:none}.components-button.editor-post-publish-panel__toggle.is-primary .dashicon{margin-left:-4px}.editor-post-publish-panel__link{font-weight:400;padding-right:4px}.editor-post-publish-panel__prepublish{padding:16px}.editor-post-publish-panel__prepublish strong{color:#1e1e1e}.editor-post-publish-panel__prepublish .components-panel__body{background:#fff;margin-right:-16px;margin-left:-16px}.editor-post-publish-panel__prepublish .editor-post-visibility__dialog-legend{display:none}.post-publish-panel__postpublish .components-panel__body{border-bottom:1px solid #e0e0e0;border-top:none}.post-publish-panel__postpublish-buttons{display:flex;align-content:space-between;flex-wrap:wrap;margin:-5px}.post-publish-panel__postpublish-buttons>*{flex-grow:1;margin:5px}.post-publish-panel__postpublish-buttons .components-button{height:auto;justify-content:center;padding:3px 10px 4px;line-height:1.6;text-align:center;white-space:normal}.post-publish-panel__postpublish-buttons .components-clipboard-button{width:100%}.post-publish-panel__postpublish-post-address{margin-bottom:16px}.post-publish-panel__postpublish-post-address input[readonly]{padding:10px;background:#ddd;overflow:hidden;text-overflow:ellipsis}.post-publish-panel__postpublish-header{font-weight:500}.post-publish-panel__postpublish-subheader{margin:0 0 8px}.post-publish-panel__tip{color:#f0b849}.editor-post-saved-state{display:flex;align-items:center;width:28px;padding:12px 4px;color:#757575;overflow:hidden;white-space:nowrap}.editor-post-saved-state svg{display:inline-block;flex:0 0 auto;fill:currentColor;margin-left:8px}@media (min-width:600px){.editor-post-saved-state{width:auto;padding:8px 12px;text-indent:inherit}.editor-post-saved-state svg{margin-left:4px}}.editor-post-taxonomies__hierarchical-terms-list{max-height:14em;overflow:auto;margin-right:-5.5px;padding-right:5.5px;margin-top:-5.5px;padding-top:5.5px}.editor-post-taxonomies__hierarchical-terms-choice{margin-bottom:8px}.editor-post-taxonomies__hierarchical-terms-subchoices{margin-top:8px;margin-right:16px}.components-button.editor-post-taxonomies__hierarchical-terms-add,.components-button.editor-post-taxonomies__hierarchical-terms-submit{margin-top:12px}.editor-post-taxonomies__hierarchical-terms-label{display:inline-block;margin-top:12px}.editor-post-taxonomies__hierarchical-terms-input{margin-top:8px;width:100%}.editor-post-taxonomies__hierarchical-terms-filter{margin-bottom:8px;width:100%}.edit-post-text-editor__body textarea.editor-post-text-editor{border:1px solid #949494;border-radius:0;display:block;margin:0;width:100%;box-shadow:none;resize:none;overflow:hidden;font-family:Menlo,Consolas,monaco,monospace;line-height:2.4;min-height:200px;transition:border .1s ease-out,box-shadow .1s linear;padding:16px;font-size:16px!important}@media (prefers-reduced-motion:reduce){.edit-post-text-editor__body textarea.editor-post-text-editor{transition-duration:0s}}@media (min-width:600px){.edit-post-text-editor__body textarea.editor-post-text-editor{padding:24px;font-size:15px!important}}.edit-post-text-editor__body textarea.editor-post-text-editor:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);position:relative}.edit-post-text-editor__body textarea.editor-post-text-editor::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.edit-post-text-editor__body textarea.editor-post-text-editor::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}.edit-post-text-editor__body textarea.editor-post-text-editor:-ms-input-placeholder{color:rgba(30,30,30,.62)}.edit-post-post-visibility__dialog,.editor-post-visibility__dialog-fieldset{padding:0 4px 4px}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-legend,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-legend{font-weight:600;margin-bottom:1em;margin-top:.5em;padding:0}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio],.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]{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;font-size:16px;line-height:normal;border:1px solid #1e1e1e;margin-left:12px;transition:none;border-radius:50%;margin-top:2px}@media (prefers-reduced-motion:reduce){.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio],.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]{transition-duration:0s}}@media (min-width:600px){.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio],.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]{font-size:13px;line-height:normal}}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:focus,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]: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)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]::-webkit-input-placeholder,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]::-moz-placeholder,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:-ms-input-placeholder,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]::-webkit-input-placeholder,.is-dark-theme .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]::-moz-placeholder,.is-dark-theme .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:-ms-input-placeholder,.is-dark-theme .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:checked:before,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:checked:before{width:7px;height:7px;margin:8px 8px 0 0;background-color:#fff;border:3px solid #fff}@media (min-width:782px){.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:checked:before,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:checked:before{width:6px;height:6px;margin:4px 4px 0 0}}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:focus,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:focus{box-shadow:0 0 0 2px #fff,0 0 0 3.5px #007cba;box-shadow:0 0 0 2px #fff,0 0 0 3.5px var(--wp-admin-theme-color);outline:2px solid transparent}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:checked,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:checked{background:#007cba;background:var(--wp-admin-theme-color);border-color:#007cba;border-color:var(--wp-admin-theme-color)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-label,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-label{font-weight:600}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-info,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-info{margin-top:0;margin-right:28px}.edit-post-post-visibility__dialog .editor-post-visibility__choice:last-child .editor-post-visibility__dialog-info,.editor-post-visibility__dialog-fieldset .editor-post-visibility__choice:last-child .editor-post-visibility__dialog-info{margin-bottom:0}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text],.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-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;margin-right:28px}@media (prefers-reduced-motion:reduce){.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text],.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]{transition-duration:0s}}@media (min-width:600px){.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text],.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]{font-size:13px;line-height:normal}}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]:focus,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-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}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]::-webkit-input-placeholder,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]::-moz-placeholder,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]:-ms-input-placeholder,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]::-webkit-input-placeholder,.is-dark-theme .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]::-moz-placeholder,.is-dark-theme .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]:-ms-input-placeholder,.is-dark-theme .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.editor-post-title{position:relative}.editor-post-title .editor-post-title__input{display:block;width:100%;margin:0;box-shadow:none;background:transparent;transition:border .1s ease-out,box-shadow .1s linear;padding:19px 0;word-break:keep-all;font-family:inherit;color:inherit;border-color:transparent;border-style:solid;border-width:1px 0;border-radius:0;outline:1px solid transparent;font-size:2.44em;font-weight:700;line-height:1.4}@media (prefers-reduced-motion:reduce){.editor-post-title .editor-post-title__input{transition-duration:0s}}@media (min-width:600px){.editor-post-title .editor-post-title__input{border-width:1px}}.editor-post-title .editor-post-title__input::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.editor-post-title .editor-post-title__input::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}.editor-post-title .editor-post-title__input:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .editor-post-title .editor-post-title__input::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .editor-post-title .editor-post-title__input::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .editor-post-title .editor-post-title__input:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.editor-post-title .editor-post-title__input:focus{border:1px solid transparent;outline:1px solid transparent;box-shadow:none}.editor-post-title.is-focus-mode .editor-post-title__input{opacity:.5;transition:opacity .1s linear}@media (prefers-reduced-motion:reduce){.editor-post-title.is-focus-mode .editor-post-title__input{transition-duration:0s}}.editor-post-title.is-focus-mode .editor-post-title__input:focus{opacity:1}.editor-post-trash.components-button{margin-top:4px}.table-of-contents__popover.components-popover .components-popover__content{min-width:380px}.components-popover.table-of-contents__popover{z-index:99998}.table-of-contents__popover .components-popover__content>div{padding:16px}@media (min-width:600px){.table-of-contents__popover .components-popover__content{max-height:calc(100vh - 120px);overflow-y:auto}}.table-of-contents__popover hr{margin:10px -16px 0}.table-of-contents__wrapper:focus:before{content:"";display:block;position:absolute;top:0;left:0;bottom:0;right:0;box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color)}.table-of-contents__counts{display:flex;flex-wrap:wrap;margin:-8px 0 0}.table-of-contents__count{flex-basis:33%;display:flex;flex-direction:column;font-size:13px;color:#1e1e1e;padding-left:8px;margin-bottom:0;margin-top:8px}.table-of-contents__count:nth-child(4n){padding-left:0}.table-of-contents__number,.table-of-contents__popover .word-count{font-size:21px;font-weight:400;line-height:30px;color:#1e1e1e}.table-of-contents__title{display:block;margin-top:20px;font-size:15px;font-weight:600}.editor-template-validation-notice{display:flex;justify-content:space-between;align-items:center}.editor-template-validation-notice .components-button{margin-right:5px} \ No newline at end of file diff --git a/wp-includes/css/dist/editor/style.css b/wp-includes/css/dist/editor/style.css index 0d4d88c8bd..76e613b636 100644 --- a/wp-includes/css/dist/editor/style.css +++ b/wp-includes/css/dist/editor/style.css @@ -189,8 +189,9 @@ width: 100%; } @media (min-width: 782px) { .components-editor-notices__snackbar { - width: fit-content; - width: -moz-fit-content; } } + width: -webkit-fit-content; + width: -moz-fit-content; + width: fit-content; } } .entities-saved-states__panel { box-sizing: border-box; @@ -758,6 +759,13 @@ opacity: 1; } .editor-post-title .editor-post-title__input:-ms-input-placeholder { color: rgba(30, 30, 30, 0.62); } + .is-dark-theme .editor-post-title .editor-post-title__input::-webkit-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .editor-post-title .editor-post-title__input::-moz-placeholder { + opacity: 1; + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .editor-post-title .editor-post-title__input:-ms-input-placeholder { + color: rgba(255, 255, 255, 0.65); } .editor-post-title .editor-post-title__input:focus { border: 1px solid transparent; outline: 1px solid transparent; @@ -809,7 +817,7 @@ margin-top: -8px; } .table-of-contents__count { - flex-basis: 25%; + flex-basis: 33%; display: flex; flex-direction: column; font-size: 13px; diff --git a/wp-includes/css/dist/editor/style.min.css b/wp-includes/css/dist/editor/style.min.css index 5d7f5986fa..1e65dd248f 100644 --- a/wp-includes/css/dist/editor/style.min.css +++ b/wp-includes/css/dist/editor/style.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}.editor-autocompleters__user .editor-autocompleters__no-avatar:before{font:normal 20px/1 dashicons;content:"\f110";margin-right:5px;vertical-align:middle}.editor-autocompleters__user .editor-autocompleters__user-avatar{margin-right:8px;flex-grow:0;flex-shrink:0;max-width:none;width:24px;height:24px}.editor-autocompleters__user .editor-autocompleters__user-name{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:200px;flex-shrink:0;flex-grow:1}.editor-autocompleters__user .editor-autocompleters__user-slug{margin-left:8px;color:#757575;white-space:nowrap;text-overflow:ellipsis;overflow:none;max-width:100px;flex-grow:0;flex-shrink:0}.editor-autocompleters__user:hover .editor-autocompleters__user-slug{color:#007cba;color:var(--wp-admin-theme-color)}.document-outline{margin:20px 0}.document-outline ul{margin:0;padding:0}.document-outline__item{display:flex;margin:4px 0}.document-outline__item a{text-decoration:none}.document-outline__item .document-outline__emdash:before{color:#ddd;margin-right:4px}.document-outline__item.is-h2 .document-outline__emdash:before{content:"—"}.document-outline__item.is-h3 .document-outline__emdash:before{content:"——"}.document-outline__item.is-h4 .document-outline__emdash:before{content:"———"}.document-outline__item.is-h5 .document-outline__emdash:before{content:"————"}.document-outline__item.is-h6 .document-outline__emdash:before{content:"—————"}.document-outline__button{cursor:pointer;background:none;border:none;display:flex;align-items:flex-start;margin:0 0 0 -1px;padding:2px 5px 2px 1px;color:#1e1e1e;text-align:left;border-radius:2px}.document-outline__button:disabled{cursor:default}.document-outline__button: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}.document-outline__level{background:#ddd;color:#1e1e1e;border-radius:3px;font-size:13px;padding:1px 6px;margin-right:4px}.is-invalid .document-outline__level{background:#f0b849}.document-outline__item-content{padding:1px 0}.components-editor-notices__dismissible{position:-webkit-sticky;position:sticky;top:0;right:0;color:#1e1e1e}.components-editor-notices__pinned{position:relative;left:0;top:0;right:0;color:#1e1e1e}.components-editor-notices__dismissible .components-notice,.components-editor-notices__pinned .components-notice{box-sizing:border-box;margin:0;border-bottom:1px solid rgba(0,0,0,.2);padding:0 12px;min-height:60px}.components-editor-notices__dismissible .components-notice .components-notice__dismiss,.components-editor-notices__pinned .components-notice .components-notice__dismiss{margin-top:12px}.components-editor-notices__snackbar{width:100%}@media (min-width:782px){.components-editor-notices__snackbar{width:fit-content;width:-moz-fit-content}}.entities-saved-states__panel{background:#fff;position:fixed;z-index:100001;top:46px;bottom:0;right:0;left:0;overflow:auto;box-sizing:border-box}.entities-saved-states__panel *,.entities-saved-states__panel :after,.entities-saved-states__panel :before{box-sizing:inherit}.entities-saved-states__panel .entities-saved-states__find-entity{display:none}.entities-saved-states__panel .entities-saved-states__find-entity-small{display:block}@media (min-width:782px){.entities-saved-states__panel{z-index:99998;top:32px;left:auto;width:280px;border-left:1px solid #ddd}body.is-fullscreen-mode .entities-saved-states__panel{top:0}.entities-saved-states__panel .entities-saved-states__find-entity{display:block}.entities-saved-states__panel .entities-saved-states__find-entity-small{display:none}}.entities-saved-states__panel .entities-saved-states__panel-header{background:#fff;padding-left:8px;padding-right:8px;height:61px;border-bottom:1px solid #ddd;display:flex;align-items:center;align-content:space-between}.entities-saved-states__panel .entities-saved-states__panel-header .editor-entities-saved-states__save-button{margin:auto}.entities-saved-states__panel .entities-saved-states__panel-header .components-button.has-icon{position:absolute;right:8px}.entities-saved-states__panel .entities-saved-states__text-prompt{border-bottom:1px solid #ddd;padding:16px 16px 4px}.editor-error-boundary{max-width:780px;padding:20px;margin:60px auto auto;box-shadow:0 3px 30px rgba(0,0,0,.2)}.editor-page-attributes__template{margin-bottom:10px}.editor-page-attributes__order,.editor-page-attributes__template label,.editor-page-attributes__template select{width:100%}.editor-page-attributes__order .components-base-control__field{display:flex;justify-content:space-between;align-items:center}.editor-page-attributes__order input{width:66px}.editor-post-excerpt__textarea{width:100%;margin-bottom:10px}.editor-post-featured-image{padding:0}.editor-post-featured-image__container{margin-bottom:1em;position:relative}.editor-post-featured-image .components-spinner{position:absolute;top:50%;left:50%;margin-top:-9px;margin-left:-9px}.editor-post-featured-image .components-button+.components-button{display:block;margin-top:1em}.editor-post-featured-image .components-responsive-wrapper__content{max-width:100%;width:auto}.editor-post-featured-image__preview,.editor-post-featured-image__toggle{display:block;width:100%;padding:0;transition:all .1s ease-out;box-shadow:0 0 0 0 #007cba;box-shadow:0 0 0 0 var(--wp-admin-theme-color)}@media (prefers-reduced-motion:reduce){.editor-post-featured-image__preview,.editor-post-featured-image__toggle{transition-duration:0s}}.editor-post-featured-image__preview{height:auto}.editor-post-featured-image__preview:not(:disabled):not([aria-disabled=true]):focus{box-shadow:0 0 0 4px #007cba;box-shadow:0 0 0 4px var(--wp-admin-theme-color)}.editor-post-featured-image__toggle{border-radius:2px;background-color:#f0f0f0;min-height:90px;line-height:20px;padding:8px 0;text-align:center}.editor-post-featured-image__toggle:hover{background:#ddd;color:#1e1e1e}.editor-post-format{flex-direction:column;align-items:stretch;width:100%}.editor-post-format__content{display:inline-flex;justify-content:space-between;align-items:center;width:100%}.editor-post-format__suggestion{text-align:right;font-size:13px}.editor-post-last-revision__title{width:100%;font-weight:600}.editor-post-last-revision__title .dashicon{margin-right:5px}.components-button.editor-post-last-revision__title{height:100%}.components-button.editor-post-last-revision__title:active,.components-button.editor-post-last-revision__title:hover{background:#f0f0f0}.components-button.editor-post-last-revision__title:focus{box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color);border-radius:0}.editor-post-locked-modal{height:auto;padding-right:10px;padding-left:10px;padding-top:10px;max-width:480px}.editor-post-locked-modal .components-modal__header{height:36px}.editor-post-locked-modal .components-modal__content{height:auto}.editor-post-locked-modal__buttons{margin-top:10px}.editor-post-locked-modal__buttons .components-button{margin-right:5px}.editor-post-locked-modal__avatar{float:left;margin:5px 15px 5px 5px}.editor-post-publish-button__button.has-changes-dot:before{background:currentcolor;border-radius:4px;content:"";height:8px;margin:auto 5px auto -3px;width:8px}.editor-post-publish-panel{background:#fff}.editor-post-publish-panel__content{min-height:calc(100% - 144px)}.editor-post-publish-panel__content .components-spinner{display:block;margin:100px auto 0}.editor-post-publish-panel__header{background:#fff;padding-left:16px;padding-right:16px;height:61px;border-bottom:1px solid #ddd;display:flex;align-items:center;align-content:space-between}.editor-post-publish-panel__header .components-button{width:100%;justify-content:center}.editor-post-publish-panel__header .has-icon{margin-left:auto;width:auto}.editor-post-publish-panel__header-cancel-button,.editor-post-publish-panel__header-publish-button{flex-grow:1}@media (min-width:480px){.editor-post-publish-panel__header-cancel-button,.editor-post-publish-panel__header-publish-button{max-width:160px}}.editor-post-publish-panel__header-publish-button{padding-right:4px}.editor-post-publish-panel__header-cancel-button{padding-left:4px}.editor-post-publish-panel__header-published{flex-grow:1}.editor-post-publish-panel__footer{padding:16px}.components-button.editor-post-publish-panel__toggle.is-primary{display:inline-flex;align-items:center}.components-button.editor-post-publish-panel__toggle.is-primary.is-busy .dashicon{display:none}.components-button.editor-post-publish-panel__toggle.is-primary .dashicon{margin-right:-4px}.editor-post-publish-panel__link{font-weight:400;padding-left:4px}.editor-post-publish-panel__prepublish{padding:16px}.editor-post-publish-panel__prepublish strong{color:#1e1e1e}.editor-post-publish-panel__prepublish .components-panel__body{background:#fff;margin-left:-16px;margin-right:-16px}.editor-post-publish-panel__prepublish .editor-post-visibility__dialog-legend{display:none}.post-publish-panel__postpublish .components-panel__body{border-bottom:1px solid #e0e0e0;border-top:none}.post-publish-panel__postpublish-buttons{display:flex;align-content:space-between;flex-wrap:wrap;margin:-5px}.post-publish-panel__postpublish-buttons>*{flex-grow:1;margin:5px}.post-publish-panel__postpublish-buttons .components-button{height:auto;justify-content:center;padding:3px 10px 4px;line-height:1.6;text-align:center;white-space:normal}.post-publish-panel__postpublish-buttons .components-clipboard-button{width:100%}.post-publish-panel__postpublish-post-address{margin-bottom:16px}.post-publish-panel__postpublish-post-address input[readonly]{padding:10px;background:#ddd;overflow:hidden;text-overflow:ellipsis}.post-publish-panel__postpublish-header{font-weight:500}.post-publish-panel__postpublish-subheader{margin:0 0 8px}.post-publish-panel__tip{color:#f0b849}.editor-post-saved-state{display:flex;align-items:center;width:28px;padding:12px 4px;color:#757575;overflow:hidden;white-space:nowrap}.editor-post-saved-state svg{display:inline-block;flex:0 0 auto;fill:currentColor;margin-right:8px}@media (min-width:600px){.editor-post-saved-state{width:auto;padding:8px 12px;text-indent:inherit}.editor-post-saved-state svg{margin-right:4px}}.editor-post-taxonomies__hierarchical-terms-list{max-height:14em;overflow:auto;margin-left:-5.5px;padding-left:5.5px;margin-top:-5.5px;padding-top:5.5px}.editor-post-taxonomies__hierarchical-terms-choice{margin-bottom:8px}.editor-post-taxonomies__hierarchical-terms-subchoices{margin-top:8px;margin-left:16px}.components-button.editor-post-taxonomies__hierarchical-terms-add,.components-button.editor-post-taxonomies__hierarchical-terms-submit{margin-top:12px}.editor-post-taxonomies__hierarchical-terms-label{display:inline-block;margin-top:12px}.editor-post-taxonomies__hierarchical-terms-input{margin-top:8px;width:100%}.editor-post-taxonomies__hierarchical-terms-filter{margin-bottom:8px;width:100%}.edit-post-text-editor__body textarea.editor-post-text-editor{border:1px solid #949494;border-radius:0;display:block;margin:0;width:100%;box-shadow:none;resize:none;overflow:hidden;font-family:Menlo,Consolas,monaco,monospace;line-height:2.4;min-height:200px;transition:border .1s ease-out,box-shadow .1s linear;padding:16px;font-size:16px!important}@media (prefers-reduced-motion:reduce){.edit-post-text-editor__body textarea.editor-post-text-editor{transition-duration:0s}}@media (min-width:600px){.edit-post-text-editor__body textarea.editor-post-text-editor{padding:24px;font-size:15px!important}}.edit-post-text-editor__body textarea.editor-post-text-editor:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);position:relative}.edit-post-text-editor__body textarea.editor-post-text-editor::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.edit-post-text-editor__body textarea.editor-post-text-editor::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}.edit-post-text-editor__body textarea.editor-post-text-editor:-ms-input-placeholder{color:rgba(30,30,30,.62)}.edit-post-post-visibility__dialog,.editor-post-visibility__dialog-fieldset{padding:0 4px 4px}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-legend,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-legend{font-weight:600;margin-bottom:1em;margin-top:.5em;padding:0}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio],.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]{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;font-size:16px;line-height:normal;border:1px solid #1e1e1e;margin-right:12px;transition:none;border-radius:50%;margin-top:2px}@media (prefers-reduced-motion:reduce){.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio],.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]{transition-duration:0s}}@media (min-width:600px){.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio],.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]{font-size:13px;line-height:normal}}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:focus,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]: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)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]::-webkit-input-placeholder,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]::-moz-placeholder,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:-ms-input-placeholder,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]::-webkit-input-placeholder,.is-dark-theme .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]::-moz-placeholder,.is-dark-theme .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:-ms-input-placeholder,.is-dark-theme .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:checked:before,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:checked:before{width:7px;height:7px;margin:8px 0 0 8px;background-color:#fff;border:3px solid #fff}@media (min-width:782px){.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:checked:before,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:checked:before{width:6px;height:6px;margin:4px 0 0 4px}}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:focus,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:focus{box-shadow:0 0 0 2px #fff,0 0 0 3.5px #007cba;box-shadow:0 0 0 2px #fff,0 0 0 3.5px var(--wp-admin-theme-color);outline:2px solid transparent}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:checked,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:checked{background:#007cba;background:var(--wp-admin-theme-color);border-color:#007cba;border-color:var(--wp-admin-theme-color)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-label,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-label{font-weight:600}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-info,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-info{margin-top:0;margin-left:28px}.edit-post-post-visibility__dialog .editor-post-visibility__choice:last-child .editor-post-visibility__dialog-info,.editor-post-visibility__dialog-fieldset .editor-post-visibility__choice:last-child .editor-post-visibility__dialog-info{margin-bottom:0}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text],.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-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;margin-left:28px}@media (prefers-reduced-motion:reduce){.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text],.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]{transition-duration:0s}}@media (min-width:600px){.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text],.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]{font-size:13px;line-height:normal}}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]:focus,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-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}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]::-webkit-input-placeholder,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]::-moz-placeholder,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]:-ms-input-placeholder,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]::-webkit-input-placeholder,.is-dark-theme .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]::-moz-placeholder,.is-dark-theme .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]:-ms-input-placeholder,.is-dark-theme .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.editor-post-title{position:relative}.editor-post-title .editor-post-title__input{display:block;width:100%;margin:0;box-shadow:none;background:transparent;transition:border .1s ease-out,box-shadow .1s linear;padding:19px 0;word-break:keep-all;font-family:inherit;color:inherit;border-color:transparent;border-style:solid;border-width:1px 0;border-radius:0;outline:1px solid transparent;font-size:2.44em;font-weight:700;line-height:1.4}@media (prefers-reduced-motion:reduce){.editor-post-title .editor-post-title__input{transition-duration:0s}}@media (min-width:600px){.editor-post-title .editor-post-title__input{border-width:1px}}.editor-post-title .editor-post-title__input::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.editor-post-title .editor-post-title__input::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}.editor-post-title .editor-post-title__input:-ms-input-placeholder{color:rgba(30,30,30,.62)}.editor-post-title .editor-post-title__input:focus{border:1px solid transparent;outline:1px solid transparent;box-shadow:none}.editor-post-title.is-focus-mode .editor-post-title__input{opacity:.5;transition:opacity .1s linear}@media (prefers-reduced-motion:reduce){.editor-post-title.is-focus-mode .editor-post-title__input{transition-duration:0s}}.editor-post-title.is-focus-mode .editor-post-title__input:focus{opacity:1}.editor-post-trash.components-button{margin-top:4px}.table-of-contents__popover.components-popover .components-popover__content{min-width:380px}.components-popover.table-of-contents__popover{z-index:99998}.table-of-contents__popover .components-popover__content>div{padding:16px}@media (min-width:600px){.table-of-contents__popover .components-popover__content{max-height:calc(100vh - 120px);overflow-y:auto}}.table-of-contents__popover hr{margin:10px -16px 0}.table-of-contents__wrapper:focus:before{content:"";display:block;position:absolute;top:0;right:0;bottom:0;left:0;box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color)}.table-of-contents__counts{display:flex;flex-wrap:wrap;margin:-8px 0 0}.table-of-contents__count{flex-basis:25%;display:flex;flex-direction:column;font-size:13px;color:#1e1e1e;padding-right:8px;margin-bottom:0;margin-top:8px}.table-of-contents__count:nth-child(4n){padding-right:0}.table-of-contents__number,.table-of-contents__popover .word-count{font-size:21px;font-weight:400;line-height:30px;color:#1e1e1e}.table-of-contents__title{display:block;margin-top:20px;font-size:15px;font-weight:600}.editor-template-validation-notice{display:flex;justify-content:space-between;align-items:center}.editor-template-validation-notice .components-button{margin-left:5px} \ 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}.editor-autocompleters__user .editor-autocompleters__no-avatar:before{font:normal 20px/1 dashicons;content:"\f110";margin-right:5px;vertical-align:middle}.editor-autocompleters__user .editor-autocompleters__user-avatar{margin-right:8px;flex-grow:0;flex-shrink:0;max-width:none;width:24px;height:24px}.editor-autocompleters__user .editor-autocompleters__user-name{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:200px;flex-shrink:0;flex-grow:1}.editor-autocompleters__user .editor-autocompleters__user-slug{margin-left:8px;color:#757575;white-space:nowrap;text-overflow:ellipsis;overflow:none;max-width:100px;flex-grow:0;flex-shrink:0}.editor-autocompleters__user:hover .editor-autocompleters__user-slug{color:#007cba;color:var(--wp-admin-theme-color)}.document-outline{margin:20px 0}.document-outline ul{margin:0;padding:0}.document-outline__item{display:flex;margin:4px 0}.document-outline__item a{text-decoration:none}.document-outline__item .document-outline__emdash:before{color:#ddd;margin-right:4px}.document-outline__item.is-h2 .document-outline__emdash:before{content:"—"}.document-outline__item.is-h3 .document-outline__emdash:before{content:"——"}.document-outline__item.is-h4 .document-outline__emdash:before{content:"———"}.document-outline__item.is-h5 .document-outline__emdash:before{content:"————"}.document-outline__item.is-h6 .document-outline__emdash:before{content:"—————"}.document-outline__button{cursor:pointer;background:none;border:none;display:flex;align-items:flex-start;margin:0 0 0 -1px;padding:2px 5px 2px 1px;color:#1e1e1e;text-align:left;border-radius:2px}.document-outline__button:disabled{cursor:default}.document-outline__button: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}.document-outline__level{background:#ddd;color:#1e1e1e;border-radius:3px;font-size:13px;padding:1px 6px;margin-right:4px}.is-invalid .document-outline__level{background:#f0b849}.document-outline__item-content{padding:1px 0}.components-editor-notices__dismissible{position:-webkit-sticky;position:sticky;top:0;right:0;color:#1e1e1e}.components-editor-notices__pinned{position:relative;left:0;top:0;right:0;color:#1e1e1e}.components-editor-notices__dismissible .components-notice,.components-editor-notices__pinned .components-notice{box-sizing:border-box;margin:0;border-bottom:1px solid rgba(0,0,0,.2);padding:0 12px;min-height:60px}.components-editor-notices__dismissible .components-notice .components-notice__dismiss,.components-editor-notices__pinned .components-notice .components-notice__dismiss{margin-top:12px}.components-editor-notices__snackbar{width:100%}@media (min-width:782px){.components-editor-notices__snackbar{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}}.entities-saved-states__panel{background:#fff;position:fixed;z-index:100001;top:46px;bottom:0;right:0;left:0;overflow:auto;box-sizing:border-box}.entities-saved-states__panel *,.entities-saved-states__panel :after,.entities-saved-states__panel :before{box-sizing:inherit}.entities-saved-states__panel .entities-saved-states__find-entity{display:none}.entities-saved-states__panel .entities-saved-states__find-entity-small{display:block}@media (min-width:782px){.entities-saved-states__panel{z-index:99998;top:32px;left:auto;width:280px;border-left:1px solid #ddd}body.is-fullscreen-mode .entities-saved-states__panel{top:0}.entities-saved-states__panel .entities-saved-states__find-entity{display:block}.entities-saved-states__panel .entities-saved-states__find-entity-small{display:none}}.entities-saved-states__panel .entities-saved-states__panel-header{background:#fff;padding-left:8px;padding-right:8px;height:61px;border-bottom:1px solid #ddd;display:flex;align-items:center;align-content:space-between}.entities-saved-states__panel .entities-saved-states__panel-header .editor-entities-saved-states__save-button{margin:auto}.entities-saved-states__panel .entities-saved-states__panel-header .components-button.has-icon{position:absolute;right:8px}.entities-saved-states__panel .entities-saved-states__text-prompt{border-bottom:1px solid #ddd;padding:16px 16px 4px}.editor-error-boundary{max-width:780px;padding:20px;margin:60px auto auto;box-shadow:0 3px 30px rgba(0,0,0,.2)}.editor-page-attributes__template{margin-bottom:10px}.editor-page-attributes__order,.editor-page-attributes__template label,.editor-page-attributes__template select{width:100%}.editor-page-attributes__order .components-base-control__field{display:flex;justify-content:space-between;align-items:center}.editor-page-attributes__order input{width:66px}.editor-post-excerpt__textarea{width:100%;margin-bottom:10px}.editor-post-featured-image{padding:0}.editor-post-featured-image__container{margin-bottom:1em;position:relative}.editor-post-featured-image .components-spinner{position:absolute;top:50%;left:50%;margin-top:-9px;margin-left:-9px}.editor-post-featured-image .components-button+.components-button{display:block;margin-top:1em}.editor-post-featured-image .components-responsive-wrapper__content{max-width:100%;width:auto}.editor-post-featured-image__preview,.editor-post-featured-image__toggle{display:block;width:100%;padding:0;transition:all .1s ease-out;box-shadow:0 0 0 0 #007cba;box-shadow:0 0 0 0 var(--wp-admin-theme-color)}@media (prefers-reduced-motion:reduce){.editor-post-featured-image__preview,.editor-post-featured-image__toggle{transition-duration:0s}}.editor-post-featured-image__preview{height:auto}.editor-post-featured-image__preview:not(:disabled):not([aria-disabled=true]):focus{box-shadow:0 0 0 4px #007cba;box-shadow:0 0 0 4px var(--wp-admin-theme-color)}.editor-post-featured-image__toggle{border-radius:2px;background-color:#f0f0f0;min-height:90px;line-height:20px;padding:8px 0;text-align:center}.editor-post-featured-image__toggle:hover{background:#ddd;color:#1e1e1e}.editor-post-format{flex-direction:column;align-items:stretch;width:100%}.editor-post-format__content{display:inline-flex;justify-content:space-between;align-items:center;width:100%}.editor-post-format__suggestion{text-align:right;font-size:13px}.editor-post-last-revision__title{width:100%;font-weight:600}.editor-post-last-revision__title .dashicon{margin-right:5px}.components-button.editor-post-last-revision__title{height:100%}.components-button.editor-post-last-revision__title:active,.components-button.editor-post-last-revision__title:hover{background:#f0f0f0}.components-button.editor-post-last-revision__title:focus{box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color);border-radius:0}.editor-post-locked-modal{height:auto;padding-right:10px;padding-left:10px;padding-top:10px;max-width:480px}.editor-post-locked-modal .components-modal__header{height:36px}.editor-post-locked-modal .components-modal__content{height:auto}.editor-post-locked-modal__buttons{margin-top:10px}.editor-post-locked-modal__buttons .components-button{margin-right:5px}.editor-post-locked-modal__avatar{float:left;margin:5px 15px 5px 5px}.editor-post-publish-button__button.has-changes-dot:before{background:currentcolor;border-radius:4px;content:"";height:8px;margin:auto 5px auto -3px;width:8px}.editor-post-publish-panel{background:#fff}.editor-post-publish-panel__content{min-height:calc(100% - 144px)}.editor-post-publish-panel__content .components-spinner{display:block;margin:100px auto 0}.editor-post-publish-panel__header{background:#fff;padding-left:16px;padding-right:16px;height:61px;border-bottom:1px solid #ddd;display:flex;align-items:center;align-content:space-between}.editor-post-publish-panel__header .components-button{width:100%;justify-content:center}.editor-post-publish-panel__header .has-icon{margin-left:auto;width:auto}.editor-post-publish-panel__header-cancel-button,.editor-post-publish-panel__header-publish-button{flex-grow:1}@media (min-width:480px){.editor-post-publish-panel__header-cancel-button,.editor-post-publish-panel__header-publish-button{max-width:160px}}.editor-post-publish-panel__header-publish-button{padding-right:4px}.editor-post-publish-panel__header-cancel-button{padding-left:4px}.editor-post-publish-panel__header-published{flex-grow:1}.editor-post-publish-panel__footer{padding:16px}.components-button.editor-post-publish-panel__toggle.is-primary{display:inline-flex;align-items:center}.components-button.editor-post-publish-panel__toggle.is-primary.is-busy .dashicon{display:none}.components-button.editor-post-publish-panel__toggle.is-primary .dashicon{margin-right:-4px}.editor-post-publish-panel__link{font-weight:400;padding-left:4px}.editor-post-publish-panel__prepublish{padding:16px}.editor-post-publish-panel__prepublish strong{color:#1e1e1e}.editor-post-publish-panel__prepublish .components-panel__body{background:#fff;margin-left:-16px;margin-right:-16px}.editor-post-publish-panel__prepublish .editor-post-visibility__dialog-legend{display:none}.post-publish-panel__postpublish .components-panel__body{border-bottom:1px solid #e0e0e0;border-top:none}.post-publish-panel__postpublish-buttons{display:flex;align-content:space-between;flex-wrap:wrap;margin:-5px}.post-publish-panel__postpublish-buttons>*{flex-grow:1;margin:5px}.post-publish-panel__postpublish-buttons .components-button{height:auto;justify-content:center;padding:3px 10px 4px;line-height:1.6;text-align:center;white-space:normal}.post-publish-panel__postpublish-buttons .components-clipboard-button{width:100%}.post-publish-panel__postpublish-post-address{margin-bottom:16px}.post-publish-panel__postpublish-post-address input[readonly]{padding:10px;background:#ddd;overflow:hidden;text-overflow:ellipsis}.post-publish-panel__postpublish-header{font-weight:500}.post-publish-panel__postpublish-subheader{margin:0 0 8px}.post-publish-panel__tip{color:#f0b849}.editor-post-saved-state{display:flex;align-items:center;width:28px;padding:12px 4px;color:#757575;overflow:hidden;white-space:nowrap}.editor-post-saved-state svg{display:inline-block;flex:0 0 auto;fill:currentColor;margin-right:8px}@media (min-width:600px){.editor-post-saved-state{width:auto;padding:8px 12px;text-indent:inherit}.editor-post-saved-state svg{margin-right:4px}}.editor-post-taxonomies__hierarchical-terms-list{max-height:14em;overflow:auto;margin-left:-5.5px;padding-left:5.5px;margin-top:-5.5px;padding-top:5.5px}.editor-post-taxonomies__hierarchical-terms-choice{margin-bottom:8px}.editor-post-taxonomies__hierarchical-terms-subchoices{margin-top:8px;margin-left:16px}.components-button.editor-post-taxonomies__hierarchical-terms-add,.components-button.editor-post-taxonomies__hierarchical-terms-submit{margin-top:12px}.editor-post-taxonomies__hierarchical-terms-label{display:inline-block;margin-top:12px}.editor-post-taxonomies__hierarchical-terms-input{margin-top:8px;width:100%}.editor-post-taxonomies__hierarchical-terms-filter{margin-bottom:8px;width:100%}.edit-post-text-editor__body textarea.editor-post-text-editor{border:1px solid #949494;border-radius:0;display:block;margin:0;width:100%;box-shadow:none;resize:none;overflow:hidden;font-family:Menlo,Consolas,monaco,monospace;line-height:2.4;min-height:200px;transition:border .1s ease-out,box-shadow .1s linear;padding:16px;font-size:16px!important}@media (prefers-reduced-motion:reduce){.edit-post-text-editor__body textarea.editor-post-text-editor{transition-duration:0s}}@media (min-width:600px){.edit-post-text-editor__body textarea.editor-post-text-editor{padding:24px;font-size:15px!important}}.edit-post-text-editor__body textarea.editor-post-text-editor:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);position:relative}.edit-post-text-editor__body textarea.editor-post-text-editor::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.edit-post-text-editor__body textarea.editor-post-text-editor::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}.edit-post-text-editor__body textarea.editor-post-text-editor:-ms-input-placeholder{color:rgba(30,30,30,.62)}.edit-post-post-visibility__dialog,.editor-post-visibility__dialog-fieldset{padding:0 4px 4px}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-legend,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-legend{font-weight:600;margin-bottom:1em;margin-top:.5em;padding:0}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio],.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]{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;font-size:16px;line-height:normal;border:1px solid #1e1e1e;margin-right:12px;transition:none;border-radius:50%;margin-top:2px}@media (prefers-reduced-motion:reduce){.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio],.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]{transition-duration:0s}}@media (min-width:600px){.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio],.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]{font-size:13px;line-height:normal}}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:focus,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]: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)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]::-webkit-input-placeholder,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]::-moz-placeholder,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:-ms-input-placeholder,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]::-webkit-input-placeholder,.is-dark-theme .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]::-moz-placeholder,.is-dark-theme .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:-ms-input-placeholder,.is-dark-theme .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:checked:before,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:checked:before{width:7px;height:7px;margin:8px 0 0 8px;background-color:#fff;border:3px solid #fff}@media (min-width:782px){.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:checked:before,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:checked:before{width:6px;height:6px;margin:4px 0 0 4px}}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:focus,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:focus{box-shadow:0 0 0 2px #fff,0 0 0 3.5px #007cba;box-shadow:0 0 0 2px #fff,0 0 0 3.5px var(--wp-admin-theme-color);outline:2px solid transparent}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:checked,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:checked{background:#007cba;background:var(--wp-admin-theme-color);border-color:#007cba;border-color:var(--wp-admin-theme-color)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-label,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-label{font-weight:600}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-info,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-info{margin-top:0;margin-left:28px}.edit-post-post-visibility__dialog .editor-post-visibility__choice:last-child .editor-post-visibility__dialog-info,.editor-post-visibility__dialog-fieldset .editor-post-visibility__choice:last-child .editor-post-visibility__dialog-info{margin-bottom:0}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text],.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-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;margin-left:28px}@media (prefers-reduced-motion:reduce){.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text],.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]{transition-duration:0s}}@media (min-width:600px){.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text],.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]{font-size:13px;line-height:normal}}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]:focus,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-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}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]::-webkit-input-placeholder,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]::-moz-placeholder,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]:-ms-input-placeholder,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]::-webkit-input-placeholder,.is-dark-theme .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]::-moz-placeholder,.is-dark-theme .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]:-ms-input-placeholder,.is-dark-theme .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.editor-post-title{position:relative}.editor-post-title .editor-post-title__input{display:block;width:100%;margin:0;box-shadow:none;background:transparent;transition:border .1s ease-out,box-shadow .1s linear;padding:19px 0;word-break:keep-all;font-family:inherit;color:inherit;border-color:transparent;border-style:solid;border-width:1px 0;border-radius:0;outline:1px solid transparent;font-size:2.44em;font-weight:700;line-height:1.4}@media (prefers-reduced-motion:reduce){.editor-post-title .editor-post-title__input{transition-duration:0s}}@media (min-width:600px){.editor-post-title .editor-post-title__input{border-width:1px}}.editor-post-title .editor-post-title__input::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.editor-post-title .editor-post-title__input::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}.editor-post-title .editor-post-title__input:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .editor-post-title .editor-post-title__input::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .editor-post-title .editor-post-title__input::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .editor-post-title .editor-post-title__input:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.editor-post-title .editor-post-title__input:focus{border:1px solid transparent;outline:1px solid transparent;box-shadow:none}.editor-post-title.is-focus-mode .editor-post-title__input{opacity:.5;transition:opacity .1s linear}@media (prefers-reduced-motion:reduce){.editor-post-title.is-focus-mode .editor-post-title__input{transition-duration:0s}}.editor-post-title.is-focus-mode .editor-post-title__input:focus{opacity:1}.editor-post-trash.components-button{margin-top:4px}.table-of-contents__popover.components-popover .components-popover__content{min-width:380px}.components-popover.table-of-contents__popover{z-index:99998}.table-of-contents__popover .components-popover__content>div{padding:16px}@media (min-width:600px){.table-of-contents__popover .components-popover__content{max-height:calc(100vh - 120px);overflow-y:auto}}.table-of-contents__popover hr{margin:10px -16px 0}.table-of-contents__wrapper:focus:before{content:"";display:block;position:absolute;top:0;right:0;bottom:0;left:0;box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color)}.table-of-contents__counts{display:flex;flex-wrap:wrap;margin:-8px 0 0}.table-of-contents__count{flex-basis:33%;display:flex;flex-direction:column;font-size:13px;color:#1e1e1e;padding-right:8px;margin-bottom:0;margin-top:8px}.table-of-contents__count:nth-child(4n){padding-right:0}.table-of-contents__number,.table-of-contents__popover .word-count{font-size:21px;font-weight:400;line-height:30px;color:#1e1e1e}.table-of-contents__title{display:block;margin-top:20px;font-size:15px;font-weight:600}.editor-template-validation-notice{display:flex;justify-content:space-between;align-items:center}.editor-template-validation-notice .components-button{margin-left:5px} \ No newline at end of file diff --git a/wp-includes/default-filters.php b/wp-includes/default-filters.php index 32727445dc..96ef7d82eb 100644 --- a/wp-includes/default-filters.php +++ b/wp-includes/default-filters.php @@ -305,6 +305,7 @@ add_action( 'template_redirect', 'wp_shortlink_header', 11, 0 ); add_action( 'wp_print_footer_scripts', '_wp_footer_scripts' ); add_action( 'init', '_register_core_block_patterns_and_categories' ); add_action( 'init', 'check_theme_switched', 99 ); +add_action( 'init', array( 'WP_Block_Supports', 'init' ), 22 ); add_action( 'after_switch_theme', '_wp_menus_changed' ); add_action( 'after_switch_theme', '_wp_sidebars_changed' ); add_action( 'wp_print_styles', 'print_emoji_styles' ); diff --git a/wp-includes/js/dist/a11y.js b/wp-includes/js/dist/a11y.js index e11b3b6e5d..7d963d459c 100644 --- a/wp-includes/js/dist/a11y.js +++ b/wp-includes/js/dist/a11y.js @@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["a11y"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 473); +/******/ return __webpack_require__(__webpack_require__.s = 478); /******/ }) /************************************************************************/ /******/ ({ @@ -94,14 +94,14 @@ this["wp"] = this["wp"] || {}; this["wp"]["a11y"] = /***/ }), -/***/ 273: +/***/ 275: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["domReady"]; }()); /***/ }), -/***/ 473: +/***/ 478: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -113,7 +113,7 @@ __webpack_require__.d(__webpack_exports__, "setup", function() { return /* bindi __webpack_require__.d(__webpack_exports__, "speak", function() { return /* binding */ speak; }); // EXTERNAL MODULE: external {"this":["wp","domReady"]} -var external_this_wp_domReady_ = __webpack_require__(273); +var external_this_wp_domReady_ = __webpack_require__(275); var external_this_wp_domReady_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_domReady_); // EXTERNAL MODULE: external {"this":["wp","i18n"]} diff --git a/wp-includes/js/dist/a11y.min.js b/wp-includes/js/dist/a11y.min.js index 45ebc51ea1..e0a3713959 100644 --- a/wp-includes/js/dist/a11y.min.js +++ b/wp-includes/js/dist/a11y.min.js @@ -1,2 +1,2 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.a11y=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=473)}({1:function(t,e){!function(){t.exports=this.wp.i18n}()},273:function(t,e){!function(){t.exports=this.wp.domReady}()},473:function(t,e,n){"use strict";n.r(e),n.d(e,"setup",(function(){return p})),n.d(e,"speak",(function(){return d}));var r=n(273),i=n.n(r),o=n(1);function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"polite",e=document.createElement("div");e.id="a11y-speak-".concat(t),e.className="a11y-speak-region",e.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),e.setAttribute("aria-live",t),e.setAttribute("aria-relevant","additions text"),e.setAttribute("aria-atomic","true");var n=document,r=n.body;return r&&r.appendChild(e),e}var u="";function p(){var t=document.getElementById("a11y-speak-intro-text"),e=document.getElementById("a11y-speak-assertive"),n=document.getElementById("a11y-speak-polite");null===t&&function(){var t=document.createElement("p");t.id="a11y-speak-intro-text",t.className="a11y-speak-intro-text",t.textContent=Object(o.__)("Notifications"),t.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),t.setAttribute("hidden","hidden");var e=document.body;e&&e.appendChild(t)}(),null===e&&a("assertive"),null===n&&a("polite")}function d(t,e){!function(){for(var t=document.getElementsByClassName("a11y-speak-region"),e=document.getElementById("a11y-speak-intro-text"),n=0;n]+>/g," "),u===t&&(t+=" "),u=t,t}(t);var n=document.getElementById("a11y-speak-intro-text"),r=document.getElementById("a11y-speak-assertive"),i=document.getElementById("a11y-speak-polite");r&&"assertive"===e?r.textContent=t:i&&(i.textContent=t),n&&n.removeAttribute("hidden")}i()(p)}}); \ No newline at end of file +this.wp=this.wp||{},this.wp.a11y=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=478)}({1:function(t,e){!function(){t.exports=this.wp.i18n}()},275:function(t,e){!function(){t.exports=this.wp.domReady}()},478:function(t,e,n){"use strict";n.r(e),n.d(e,"setup",(function(){return p})),n.d(e,"speak",(function(){return d}));var r=n(275),i=n.n(r),o=n(1);function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"polite",e=document.createElement("div");e.id="a11y-speak-".concat(t),e.className="a11y-speak-region",e.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),e.setAttribute("aria-live",t),e.setAttribute("aria-relevant","additions text"),e.setAttribute("aria-atomic","true");var n=document,r=n.body;return r&&r.appendChild(e),e}var u="";function p(){var t=document.getElementById("a11y-speak-intro-text"),e=document.getElementById("a11y-speak-assertive"),n=document.getElementById("a11y-speak-polite");null===t&&function(){var t=document.createElement("p");t.id="a11y-speak-intro-text",t.className="a11y-speak-intro-text",t.textContent=Object(o.__)("Notifications"),t.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),t.setAttribute("hidden","hidden");var e=document.body;e&&e.appendChild(t)}(),null===e&&a("assertive"),null===n&&a("polite")}function d(t,e){!function(){for(var t=document.getElementsByClassName("a11y-speak-region"),e=document.getElementById("a11y-speak-intro-text"),n=0;n]+>/g," "),u===t&&(t+=" "),u=t,t}(t);var n=document.getElementById("a11y-speak-intro-text"),r=document.getElementById("a11y-speak-assertive"),i=document.getElementById("a11y-speak-polite");r&&"assertive"===e?r.textContent=t:i&&(i.textContent=t),n&&n.removeAttribute("hidden")}i()(p)}}); \ No newline at end of file diff --git a/wp-includes/js/dist/annotations.js b/wp-includes/js/dist/annotations.js index 8e50ab2899..6b4a95826b 100644 --- a/wp-includes/js/dist/annotations.js +++ b/wp-includes/js/dist/annotations.js @@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["annotations"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 462); +/******/ return __webpack_require__(__webpack_require__.s = 467); /******/ }) /************************************************************************/ /******/ ({ @@ -99,7 +99,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["annotations"] = "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutProperties; }); -/* harmony import */ var _objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(42); +/* harmony import */ var _objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(43); function _objectWithoutProperties(source, excluded) { if (source == null) return {}; @@ -122,7 +122,7 @@ function _objectWithoutProperties(source, excluded) { /***/ }), -/***/ 18: +/***/ 17: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -233,7 +233,7 @@ function _iterableToArray(iter) { /***/ }), -/***/ 41: +/***/ 42: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -515,7 +515,7 @@ function isShallowEqual( a, b, fromIndex ) { /***/ }), -/***/ 42: +/***/ 43: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -537,7 +537,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { /***/ }), -/***/ 462: +/***/ 467: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -564,7 +564,7 @@ __webpack_require__.d(actions_namespaceObject, "__experimentalRemoveAnnotationsB var external_this_wp_data_ = __webpack_require__(4); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules -var toConsumableArray = __webpack_require__(18); +var toConsumableArray = __webpack_require__(17); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js var defineProperty = __webpack_require__(5); @@ -686,7 +686,7 @@ function reducer_annotations() { var objectWithoutProperties = __webpack_require__(14); // EXTERNAL MODULE: ./node_modules/rememo/es/rememo.js -var rememo = __webpack_require__(41); +var rememo = __webpack_require__(42); // CONCATENATED MODULE: ./node_modules/@wordpress/annotations/build-module/store/selectors.js diff --git a/wp-includes/js/dist/annotations.min.js b/wp-includes/js/dist/annotations.min.js index 839945999d..9a690d12d4 100644 --- a/wp-includes/js/dist/annotations.min.js +++ b/wp-includes/js/dist/annotations.min.js @@ -1,2 +1,2 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.annotations=function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=462)}({1:function(t,n){!function(){t.exports=this.wp.i18n}()},14:function(t,n,e){"use strict";e.d(n,"a",(function(){return o}));var r=e(42);function o(t,n){if(null==t)return{};var e,o,a=Object(r.a)(t,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(a[e]=t[e])}return a}},18:function(t,n,e){"use strict";e.d(n,"a",(function(){return i}));var r=e(27);var o=e(37),a=e(30);function i(t){return function(t){if(Array.isArray(t))return Object(r.a)(t)}(t)||Object(o.a)(t)||Object(a.a)(t)||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(t,n){!function(){t.exports=this.lodash}()},25:function(t,n){!function(){t.exports=this.wp.richText}()},27:function(t,n,e){"use strict";function r(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e=0||(o[e]=t[e]);return o}e.d(n,"a",(function(){return r}))},462:function(t,n,e){"use strict";e.r(n);var r={};e.r(r),e.d(r,"__experimentalGetAnnotationsForBlock",(function(){return g})),e.d(r,"__experimentalGetAllAnnotationsForBlock",(function(){return h})),e.d(r,"__experimentalGetAnnotationsForRichText",(function(){return j})),e.d(r,"__experimentalGetAnnotations",(function(){return A}));var o={};e.r(o),e.d(o,"__experimentalAddAnnotation",(function(){return I})),e.d(o,"__experimentalRemoveAnnotation",(function(){return R})),e.d(o,"__experimentalUpdateAnnotationRange",(function(){return S})),e.d(o,"__experimentalRemoveAnnotationsBySource",(function(){return k}));var a=e(4),i=e(18),u=e(5),c=e(2);function l(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function f(t){for(var n=1;n0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"ANNOTATION_ADD":var r=e.blockClientId,o={id:e.id,blockClientId:r,richTextIdentifier:e.richTextIdentifier,source:e.source,selector:e.selector,range:e.range};if("range"===o.selector&&!d(o.range))return n;var a=null!==(t=null==n?void 0:n[r])&&void 0!==t?t:[];return f(f({},n),{},Object(u.a)({},r,[].concat(Object(i.a)(a),[o])));case"ANNOTATION_REMOVE":return Object(c.mapValues)(n,(function(t){return s(t,(function(t){return t.id!==e.annotationId}))}));case"ANNOTATION_UPDATE_RANGE":return Object(c.mapValues)(n,(function(t){var n=!1,r=t.map((function(t){return t.id===e.annotationId?(n=!0,f(f({},t),{},{range:{start:e.start,end:e.end}})):t}));return n?r:t}));case"ANNOTATION_REMOVE_SOURCE":return Object(c.mapValues)(n,(function(t){return s(t,(function(t){return t.source!==e.source}))}))}return n},v=e(14),b=e(41);function O(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function y(t){for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:[];return n.forEach((function(n){var e=n.start,r=n.end;e>t.text.length&&(e=t.text.length),r>t.text.length&&(r=t.text.length);var o="annotation-text-"+n.source,a="annotation-text-"+n.id;t=Object(D.applyFormat)(t,{type:"core/annotation",attributes:{className:o,id:a}},e,r)})),t}(r,n)).formats}},__experimentalGetPropsForEditableTreeChangeHandler:function(t){return{removeAnnotation:t("core/annotations").__experimentalRemoveAnnotation,updateAnnotationRange:t("core/annotations").__experimentalUpdateAnnotationRange}},__experimentalCreateOnChangeEditableValue:function(t){return function(n){var e=function(t){var n={};return t.forEach((function(t,e){(t=(t=t||[]).filter((function(t){return"core/annotation"===t.type}))).forEach((function(t){var r=t.attributes.id;r=r.replace("annotation-text-",""),n.hasOwnProperty(r)||(n[r]={start:e}),n[r].end=e+1}))})),n}(n),r=t.removeAnnotation,o=t.updateAnnotationRange;!function(t,n,e){var r=e.removeAnnotation,o=e.updateAnnotationRange;t.forEach((function(t){var e=n[t.id];if(e){var a=t.start,i=t.end;a===e.start&&i===e.end||o(t.id,e.start,e.end)}else r(t.id)}))}(t.annotations,e,{removeAnnotation:r,updateAnnotationRange:o})}}},V=M.name,F=Object(v.a)(M,["name"]);Object(D.registerFormatType)(V,F);var G=e(33);Object(G.addFilter)("editor.BlockListBlock","core/annotations",(function(t){return Object(a.withSelect)((function(t,n){var e=n.clientId,r=n.className;return{className:t("core/annotations").__experimentalGetAnnotationsForBlock(e).map((function(t){return"is-annotated-by-"+t.source})).concat(r).filter(Boolean).join(" ")}}))(t)}))},5:function(t,n,e){"use strict";function r(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}e.d(n,"a",(function(){return r}))}}); \ No newline at end of file +this.wp=this.wp||{},this.wp.annotations=function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=467)}({1:function(t,n){!function(){t.exports=this.wp.i18n}()},14:function(t,n,e){"use strict";e.d(n,"a",(function(){return o}));var r=e(43);function o(t,n){if(null==t)return{};var e,o,a=Object(r.a)(t,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(a[e]=t[e])}return a}},17:function(t,n,e){"use strict";e.d(n,"a",(function(){return i}));var r=e(27);var o=e(37),a=e(30);function i(t){return function(t){if(Array.isArray(t))return Object(r.a)(t)}(t)||Object(o.a)(t)||Object(a.a)(t)||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(t,n){!function(){t.exports=this.lodash}()},25:function(t,n){!function(){t.exports=this.wp.richText}()},27:function(t,n,e){"use strict";function r(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e=0||(o[e]=t[e]);return o}e.d(n,"a",(function(){return r}))},467:function(t,n,e){"use strict";e.r(n);var r={};e.r(r),e.d(r,"__experimentalGetAnnotationsForBlock",(function(){return g})),e.d(r,"__experimentalGetAllAnnotationsForBlock",(function(){return h})),e.d(r,"__experimentalGetAnnotationsForRichText",(function(){return j})),e.d(r,"__experimentalGetAnnotations",(function(){return A}));var o={};e.r(o),e.d(o,"__experimentalAddAnnotation",(function(){return I})),e.d(o,"__experimentalRemoveAnnotation",(function(){return R})),e.d(o,"__experimentalUpdateAnnotationRange",(function(){return S})),e.d(o,"__experimentalRemoveAnnotationsBySource",(function(){return k}));var a=e(4),i=e(17),u=e(5),c=e(2);function l(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function f(t){for(var n=1;n0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"ANNOTATION_ADD":var r=e.blockClientId,o={id:e.id,blockClientId:r,richTextIdentifier:e.richTextIdentifier,source:e.source,selector:e.selector,range:e.range};if("range"===o.selector&&!d(o.range))return n;var a=null!==(t=null==n?void 0:n[r])&&void 0!==t?t:[];return f(f({},n),{},Object(u.a)({},r,[].concat(Object(i.a)(a),[o])));case"ANNOTATION_REMOVE":return Object(c.mapValues)(n,(function(t){return s(t,(function(t){return t.id!==e.annotationId}))}));case"ANNOTATION_UPDATE_RANGE":return Object(c.mapValues)(n,(function(t){var n=!1,r=t.map((function(t){return t.id===e.annotationId?(n=!0,f(f({},t),{},{range:{start:e.start,end:e.end}})):t}));return n?r:t}));case"ANNOTATION_REMOVE_SOURCE":return Object(c.mapValues)(n,(function(t){return s(t,(function(t){return t.source!==e.source}))}))}return n},v=e(14),b=e(42);function O(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function y(t){for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:[];return n.forEach((function(n){var e=n.start,r=n.end;e>t.text.length&&(e=t.text.length),r>t.text.length&&(r=t.text.length);var o="annotation-text-"+n.source,a="annotation-text-"+n.id;t=Object(D.applyFormat)(t,{type:"core/annotation",attributes:{className:o,id:a}},e,r)})),t}(r,n)).formats}},__experimentalGetPropsForEditableTreeChangeHandler:function(t){return{removeAnnotation:t("core/annotations").__experimentalRemoveAnnotation,updateAnnotationRange:t("core/annotations").__experimentalUpdateAnnotationRange}},__experimentalCreateOnChangeEditableValue:function(t){return function(n){var e=function(t){var n={};return t.forEach((function(t,e){(t=(t=t||[]).filter((function(t){return"core/annotation"===t.type}))).forEach((function(t){var r=t.attributes.id;r=r.replace("annotation-text-",""),n.hasOwnProperty(r)||(n[r]={start:e}),n[r].end=e+1}))})),n}(n),r=t.removeAnnotation,o=t.updateAnnotationRange;!function(t,n,e){var r=e.removeAnnotation,o=e.updateAnnotationRange;t.forEach((function(t){var e=n[t.id];if(e){var a=t.start,i=t.end;a===e.start&&i===e.end||o(t.id,e.start,e.end)}else r(t.id)}))}(t.annotations,e,{removeAnnotation:r,updateAnnotationRange:o})}}},V=M.name,F=Object(v.a)(M,["name"]);Object(D.registerFormatType)(V,F);var G=e(33);Object(G.addFilter)("editor.BlockListBlock","core/annotations",(function(t){return Object(a.withSelect)((function(t,n){var e=n.clientId,r=n.className;return{className:t("core/annotations").__experimentalGetAnnotationsForBlock(e).map((function(t){return"is-annotated-by-"+t.source})).concat(r).filter(Boolean).join(" ")}}))(t)}))},5:function(t,n,e){"use strict";function r(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}e.d(n,"a",(function(){return r}))}}); \ No newline at end of file diff --git a/wp-includes/js/dist/api-fetch.js b/wp-includes/js/dist/api-fetch.js index 68a0b6b0d7..11587f16ee 100644 --- a/wp-includes/js/dist/api-fetch.js +++ b/wp-includes/js/dist/api-fetch.js @@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["apiFetch"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 465); +/******/ return __webpack_require__(__webpack_require__.s = 470); /******/ }) /************************************************************************/ /******/ ({ @@ -99,7 +99,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["apiFetch"] = "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutProperties; }); -/* harmony import */ var _objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(42); +/* harmony import */ var _objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(43); function _objectWithoutProperties(source, excluded) { if (source == null) return {}; @@ -122,7 +122,7 @@ function _objectWithoutProperties(source, excluded) { /***/ }), -/***/ 24: +/***/ 20: /***/ (function(module, exports) { (function() { module.exports = this["regeneratorRuntime"]; }()); @@ -136,7 +136,7 @@ function _objectWithoutProperties(source, excluded) { /***/ }), -/***/ 42: +/***/ 43: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -158,7 +158,50 @@ function _objectWithoutPropertiesLoose(source, excluded) { /***/ }), -/***/ 465: +/***/ 45: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _asyncToGenerator; }); +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { + try { + var info = gen[key](arg); + var value = info.value; + } catch (error) { + reject(error); + return; + } + + if (info.done) { + resolve(value); + } else { + Promise.resolve(value).then(_next, _throw); + } +} + +function _asyncToGenerator(fn) { + return function () { + var self = this, + args = arguments; + return new Promise(function (resolve, reject) { + var gen = fn.apply(self, args); + + function _next(value) { + asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); + } + + function _throw(err) { + asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); + } + + _next(undefined); + }); + }; +} + +/***/ }), + +/***/ 470: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -350,11 +393,11 @@ function createPreloadingMiddleware(preloadedData) { /* harmony default export */ var preloading = (createPreloadingMiddleware); // EXTERNAL MODULE: external {"this":"regeneratorRuntime"} -var external_this_regeneratorRuntime_ = __webpack_require__(24); +var external_this_regeneratorRuntime_ = __webpack_require__(20); var external_this_regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(external_this_regeneratorRuntime_); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js -var asyncToGenerator = __webpack_require__(47); +var asyncToGenerator = __webpack_require__(45); // EXTERNAL MODULE: external {"this":["wp","url"]} var external_this_wp_url_ = __webpack_require__(31); @@ -913,49 +956,6 @@ apiFetch.mediaUploadMiddleware = media_upload; /* harmony default export */ var build_module = __webpack_exports__["default"] = (apiFetch); -/***/ }), - -/***/ 47: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _asyncToGenerator; }); -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { - try { - var info = gen[key](arg); - var value = info.value; - } catch (error) { - reject(error); - return; - } - - if (info.done) { - resolve(value); - } else { - Promise.resolve(value).then(_next, _throw); - } -} - -function _asyncToGenerator(fn) { - return function () { - var self = this, - args = arguments; - return new Promise(function (resolve, reject) { - var gen = fn.apply(self, args); - - function _next(value) { - asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); - } - - function _throw(err) { - asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); - } - - _next(undefined); - }); - }; -} - /***/ }), /***/ 5: diff --git a/wp-includes/js/dist/api-fetch.min.js b/wp-includes/js/dist/api-fetch.min.js index 9cffd019ad..11f2889dbe 100644 --- a/wp-includes/js/dist/api-fetch.min.js +++ b/wp-includes/js/dist/api-fetch.min.js @@ -1,2 +1,2 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.apiFetch=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=465)}({1:function(e,t){!function(){e.exports=this.wp.i18n}()},14:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(42);function o(e,t){if(null==e)return{};var r,o,c=Object(n.a)(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(c[r]=e[r])}return c}},24:function(e,t){!function(){e.exports=this.regeneratorRuntime}()},31:function(e,t){!function(){e.exports=this.wp.url}()},42:function(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r,n,o={},c=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}r.d(t,"a",(function(){return n}))},465:function(e,t,r){"use strict";r.r(t);var n=r(5),o=r(14),c=r(1);function i(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 u(e){for(var t=1;t]+)>; rel="next"/);return t?{next:t[1]}:{}}(e.headers.get("link")).next},D=function(e){var t=e.path&&-1!==e.path.indexOf("per_page=-1"),r=e.url&&-1!==e.url.indexOf("per_page=-1");return t||r},S=function(){var e=Object(v.a)(h.a.mark((function e(t,r){var n,c,i,u,a,s;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!1!==t.parse){e.next=2;break}return e.abrupt("return",r(t));case 2:if(D(t)){e.next=4;break}return e.abrupt("return",r(t));case 4:return e.next=6,q(P(P({},(f={per_page:100},l=void 0,O=void 0,l=(p=t).path,O=p.url,P(P({},Object(o.a)(p,["path","url"])),{},{url:O&&Object(g.addQueryArgs)(O,f),path:l&&Object(g.addQueryArgs)(l,f)}))),{},{parse:!1}));case 6:return n=e.sent,e.next=9,m(n);case 9:if(c=e.sent,Array.isArray(c)){e.next=12;break}return e.abrupt("return",c);case 12:if(i=x(n)){e.next=15;break}return e.abrupt("return",c);case 15:u=[].concat(c);case 16:if(!i){e.next=27;break}return e.next=19,q(P(P({},t),{},{path:void 0,url:i,parse:!1}));case 19:return a=e.sent,e.next=22,m(a);case 22:s=e.sent,u=u.concat(s),i=x(a),e.next=16;break;case 27:return e.abrupt("return",u);case 28:case"end":return e.stop()}var p,f,l,O}),e)})));return function(t,r){return e.apply(this,arguments)}}();function _(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 E(e){for(var t=1;t1&&void 0!==arguments[1])||arguments[1];return t?204===e.status?null:e.json?e.json():Promise.reject(e):e},A=function(e){var t={code:"invalid_json",message:Object(c.__)("The response is not a valid JSON response.")};if(!e||!e.json)throw t;return e.json().catch((function(){throw t}))},M=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Promise.resolve(T(e,t)).catch((function(e){return C(e,t)}))};function C(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!t)throw e;return A(e).then((function(e){var t={code:"unknown_error",message:Object(c.__)("An unknown error occurred.")};throw e||t}))}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 Q(e){for(var t=1;t=500&&n.status<600&&o?function e(n){return r++,t({path:"/wp/v2/media/".concat(n,"/post-process"),method:"POST",data:{action:"create-image-subsizes"},parse:!1}).catch((function(){return r<5?e(n):(t({path:"/wp/v2/media/".concat(n,"?force=true"),method:"DELETE"}),Promise.reject())}))}(o).catch((function(){return!1!==e.parse?Promise.reject({code:"post_process",message:Object(c.__)("Media upload failed. If this is a photo or a large image, please scale it down and try again.")}):Promise.reject(n)})):C(n,e.parse)})).then((function(t){return M(t,e.parse)}))};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 U(e){for(var t=1;t=200&&e.status<300)return e;throw e},F=function(e){var t=e.url,r=e.path,n=e.data,i=e.parse,u=void 0===i||i,a=Object(o.a)(e,["url","path","data","parse"]),s=e.body,p=e.headers;return p=U(U({},G),p),n&&(s=JSON.stringify(n),p["Content-Type"]="application/json"),window.fetch(t||r,U(U(U({},H),a),{},{body:s,headers:p})).then((function(e){return Promise.resolve(e).then(J).catch((function(e){return C(e,u)})).then((function(e){return M(e,u)}))}),(function(){throw{code:"fetch_error",message:Object(c.__)("You are probably offline.")}}))};function X(e){return I.reduceRight((function(e,t){return function(r){return t(r,e)}}),F)(e).catch((function(t){return"rest_cookie_invalid_nonce"!==t.code?Promise.reject(t):window.fetch(X.nonceEndpoint).then(J).then((function(e){return e.text()})).then((function(t){return X.nonceMiddleware.nonce=t,X(e)}))}))}X.use=function(e){I.unshift(e)},X.setFetchHandler=function(e){F=e},X.createNonceMiddleware=a,X.createPreloadingMiddleware=j,X.createRootURLMiddleware=b,X.fetchAllMiddleware=S,X.mediaUploadMiddleware=R;var q=t.default=X},47:function(e,t,r){"use strict";function n(e,t,r,n,o,c,i){try{var u=e[c](i),a=u.value}catch(e){return void r(e)}u.done?t(a):Promise.resolve(a).then(n,o)}function o(e){return function(){var t=this,r=arguments;return new Promise((function(o,c){var i=e.apply(t,r);function u(e){n(i,o,c,u,a,"next",e)}function a(e){n(i,o,c,u,a,"throw",e)}u(void 0)}))}}r.d(t,"a",(function(){return o}))},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}))}}).default; \ No newline at end of file +this.wp=this.wp||{},this.wp.apiFetch=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=470)}({1:function(e,t){!function(){e.exports=this.wp.i18n}()},14:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(43);function o(e,t){if(null==e)return{};var r,o,c=Object(n.a)(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(c[r]=e[r])}return c}},20:function(e,t){!function(){e.exports=this.regeneratorRuntime}()},31:function(e,t){!function(){e.exports=this.wp.url}()},43:function(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r,n,o={},c=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}r.d(t,"a",(function(){return n}))},45:function(e,t,r){"use strict";function n(e,t,r,n,o,c,i){try{var u=e[c](i),a=u.value}catch(e){return void r(e)}u.done?t(a):Promise.resolve(a).then(n,o)}function o(e){return function(){var t=this,r=arguments;return new Promise((function(o,c){var i=e.apply(t,r);function u(e){n(i,o,c,u,a,"next",e)}function a(e){n(i,o,c,u,a,"throw",e)}u(void 0)}))}}r.d(t,"a",(function(){return o}))},470:function(e,t,r){"use strict";r.r(t);var n=r(5),o=r(14),c=r(1);function i(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 u(e){for(var t=1;t]+)>; rel="next"/);return t?{next:t[1]}:{}}(e.headers.get("link")).next},D=function(e){var t=e.path&&-1!==e.path.indexOf("per_page=-1"),r=e.url&&-1!==e.url.indexOf("per_page=-1");return t||r},S=function(){var e=Object(v.a)(h.a.mark((function e(t,r){var n,c,i,u,a,s;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!1!==t.parse){e.next=2;break}return e.abrupt("return",r(t));case 2:if(D(t)){e.next=4;break}return e.abrupt("return",r(t));case 4:return e.next=6,q(P(P({},(f={per_page:100},l=void 0,O=void 0,l=(p=t).path,O=p.url,P(P({},Object(o.a)(p,["path","url"])),{},{url:O&&Object(g.addQueryArgs)(O,f),path:l&&Object(g.addQueryArgs)(l,f)}))),{},{parse:!1}));case 6:return n=e.sent,e.next=9,m(n);case 9:if(c=e.sent,Array.isArray(c)){e.next=12;break}return e.abrupt("return",c);case 12:if(i=x(n)){e.next=15;break}return e.abrupt("return",c);case 15:u=[].concat(c);case 16:if(!i){e.next=27;break}return e.next=19,q(P(P({},t),{},{path:void 0,url:i,parse:!1}));case 19:return a=e.sent,e.next=22,m(a);case 22:s=e.sent,u=u.concat(s),i=x(a),e.next=16;break;case 27:return e.abrupt("return",u);case 28:case"end":return e.stop()}var p,f,l,O}),e)})));return function(t,r){return e.apply(this,arguments)}}();function _(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 E(e){for(var t=1;t1&&void 0!==arguments[1])||arguments[1];return t?204===e.status?null:e.json?e.json():Promise.reject(e):e},A=function(e){var t={code:"invalid_json",message:Object(c.__)("The response is not a valid JSON response.")};if(!e||!e.json)throw t;return e.json().catch((function(){throw t}))},M=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Promise.resolve(T(e,t)).catch((function(e){return C(e,t)}))};function C(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!t)throw e;return A(e).then((function(e){var t={code:"unknown_error",message:Object(c.__)("An unknown error occurred.")};throw e||t}))}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 Q(e){for(var t=1;t=500&&n.status<600&&o?function e(n){return r++,t({path:"/wp/v2/media/".concat(n,"/post-process"),method:"POST",data:{action:"create-image-subsizes"},parse:!1}).catch((function(){return r<5?e(n):(t({path:"/wp/v2/media/".concat(n,"?force=true"),method:"DELETE"}),Promise.reject())}))}(o).catch((function(){return!1!==e.parse?Promise.reject({code:"post_process",message:Object(c.__)("Media upload failed. If this is a photo or a large image, please scale it down and try again.")}):Promise.reject(n)})):C(n,e.parse)})).then((function(t){return M(t,e.parse)}))};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 U(e){for(var t=1;t=200&&e.status<300)return e;throw e},F=function(e){var t=e.url,r=e.path,n=e.data,i=e.parse,u=void 0===i||i,a=Object(o.a)(e,["url","path","data","parse"]),s=e.body,p=e.headers;return p=U(U({},G),p),n&&(s=JSON.stringify(n),p["Content-Type"]="application/json"),window.fetch(t||r,U(U(U({},H),a),{},{body:s,headers:p})).then((function(e){return Promise.resolve(e).then(J).catch((function(e){return C(e,u)})).then((function(e){return M(e,u)}))}),(function(){throw{code:"fetch_error",message:Object(c.__)("You are probably offline.")}}))};function X(e){return I.reduceRight((function(e,t){return function(r){return t(r,e)}}),F)(e).catch((function(t){return"rest_cookie_invalid_nonce"!==t.code?Promise.reject(t):window.fetch(X.nonceEndpoint).then(J).then((function(e){return e.text()})).then((function(t){return X.nonceMiddleware.nonce=t,X(e)}))}))}X.use=function(e){I.unshift(e)},X.setFetchHandler=function(e){F=e},X.createNonceMiddleware=a,X.createPreloadingMiddleware=j,X.createRootURLMiddleware=b,X.fetchAllMiddleware=S,X.mediaUploadMiddleware=R;var q=t.default=X},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}))}}).default; \ No newline at end of file diff --git a/wp-includes/js/dist/autop.js b/wp-includes/js/dist/autop.js index 8c03a9c4e8..5e669c94d8 100644 --- a/wp-includes/js/dist/autop.js +++ b/wp-includes/js/dist/autop.js @@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["autop"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 296); +/******/ return __webpack_require__(__webpack_require__.s = 299); /******/ }) /************************************************************************/ /******/ ({ @@ -159,7 +159,7 @@ function _arrayLikeToArray(arr, len) { /***/ }), -/***/ 296: +/***/ 299: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; diff --git a/wp-includes/js/dist/autop.min.js b/wp-includes/js/dist/autop.min.js index bd8f2e714b..d710de5226 100644 --- a/wp-includes/js/dist/autop.min.js +++ b/wp-includes/js/dist/autop.min.js @@ -1,2 +1,2 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.autop=function(e){var r={};function n(t){if(r[t])return r[t].exports;var p=r[t]={i:t,l:!1,exports:{}};return e[t].call(p.exports,p,p.exports,n),p.l=!0,p.exports}return n.m=e,n.c=r,n.d=function(e,r,t){n.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,r){if(1&r&&(e=n(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(n.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var p in e)n.d(t,p,function(r){return e[r]}.bind(null,p));return t},n.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(r,"a",r),r},n.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},n.p="",n(n.s=296)}({12:function(e,r,n){"use strict";n.d(r,"a",(function(){return a}));var t=n(38);var p=n(30),c=n(39);function a(e,r){return Object(t.a)(e)||function(e,r){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],t=!0,p=!1,c=void 0;try{for(var a,i=e[Symbol.iterator]();!(t=(a=i.next()).done)&&(n.push(a.value),!r||n.length!==r);t=!0);}catch(e){p=!0,c=e}finally{try{t||null==i.return||i.return()}finally{if(p)throw c}}return n}}(e,r)||Object(p.a)(e,r)||Object(c.a)()}},27:function(e,r,n){"use strict";function t(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n)[^\\-]*)*(?:--\x3e)?|!\\[CDATA\\[[^\\]]*(?:](?!]>)[^\\]]*)*?(?:]]>)?)|[^>]*>?))");function c(e,r){for(var n=function(e){for(var r,n=[],t=e;r=t.match(p);){var c=r.index;n.push(t.slice(0,c)),n.push(r[0]),t=t.slice(c+r[0].length)}return t.length&&n.push(t),n}(e),t=!1,c=Object.keys(r),a=1;a1&&void 0!==arguments[1])||arguments[1],n=[];if(""===e.trim())return"";if(-1!==(e+="\n").indexOf(""),a=p.pop();e="";for(var i=0;i";n.push([u,o.substr(l)+""]),e+=o.substr(0,l)+u}else e+=o}e+=a}var s="(?:table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|form|map|area|blockquote|address|math|style|p|h[1-6]|hr|fieldset|legend|section|article|aside|hgroup|header|footer|nav|figure|figcaption|details|menu|summary)";-1!==(e=c(e=(e=(e=(e=e.replace(/\s*/g,"\n\n")).replace(new RegExp("(<"+s+"[\\s/>])","g"),"\n\n$1")).replace(new RegExp("()","g"),"$1\n\n")).replace(/\r\n|\r/g,"\n"),{"\n":" \x3c!-- wpnl --\x3e "})).indexOf("\s*/g,"")),-1!==e.indexOf("")&&(e=(e=(e=e.replace(/(]*>)\s*/g,"$1")).replace(/\s*<\/object>/g,"")).replace(/\s*(<\/?(?:param|embed)[^>]*>)\s*/g,"$1")),-1===e.indexOf("\]]*[>\]])\s*/g,"$1")).replace(/\s*([<\[]\/(?:audio|video)[>\]])/g,"$1")).replace(/\s*(<(?:source|track)[^>]*>)\s*/g,"$1")),-1!==e.indexOf("]*>)/,"$1")).replace(/<\/figcaption>\s*/,""));var f=(e=e.replace(/\n\n+/g,"\n\n")).split(/\n\s*\n/).filter(Boolean);return e="",f.forEach((function(r){e+="

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

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

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

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

    $1

    ")).replace(new RegExp("

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

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

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

    ]*)>/gi,"

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

    ")).replace(new RegExp("

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

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

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

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

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

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

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

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

    ]+>[\s\S]*?<\/p>)/g,"\n$1")).replace(/^\s+/,"")).replace(/[\s\u00a0]+$/,""),c&&(e=e.replace(//g,"\n")),a&&(e=e.replace(/]*)>/g,"")),p.length&&(e=e.replace(//g,(function(){return p.shift()}))),e):""}},30:function(e,r,n){"use strict";n.d(r,"a",(function(){return p}));var t=n(27);function p(e,r){if(e){if("string"==typeof e)return Object(t.a)(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(t.a)(e,r):void 0}}},38:function(e,r,n){"use strict";function t(e){if(Array.isArray(e))return e}n.d(r,"a",(function(){return t}))},39:function(e,r,n){"use strict";function t(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(r,"a",(function(){return t}))}}); \ No newline at end of file +this.wp=this.wp||{},this.wp.autop=function(e){var r={};function n(t){if(r[t])return r[t].exports;var p=r[t]={i:t,l:!1,exports:{}};return e[t].call(p.exports,p,p.exports,n),p.l=!0,p.exports}return n.m=e,n.c=r,n.d=function(e,r,t){n.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,r){if(1&r&&(e=n(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(n.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var p in e)n.d(t,p,function(r){return e[r]}.bind(null,p));return t},n.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(r,"a",r),r},n.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},n.p="",n(n.s=299)}({12:function(e,r,n){"use strict";n.d(r,"a",(function(){return a}));var t=n(38);var p=n(30),c=n(39);function a(e,r){return Object(t.a)(e)||function(e,r){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],t=!0,p=!1,c=void 0;try{for(var a,i=e[Symbol.iterator]();!(t=(a=i.next()).done)&&(n.push(a.value),!r||n.length!==r);t=!0);}catch(e){p=!0,c=e}finally{try{t||null==i.return||i.return()}finally{if(p)throw c}}return n}}(e,r)||Object(p.a)(e,r)||Object(c.a)()}},27:function(e,r,n){"use strict";function t(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n)[^\\-]*)*(?:--\x3e)?|!\\[CDATA\\[[^\\]]*(?:](?!]>)[^\\]]*)*?(?:]]>)?)|[^>]*>?))");function c(e,r){for(var n=function(e){for(var r,n=[],t=e;r=t.match(p);){var c=r.index;n.push(t.slice(0,c)),n.push(r[0]),t=t.slice(c+r[0].length)}return t.length&&n.push(t),n}(e),t=!1,c=Object.keys(r),a=1;a1&&void 0!==arguments[1])||arguments[1],n=[];if(""===e.trim())return"";if(-1!==(e+="\n").indexOf(""),a=p.pop();e="";for(var i=0;i";n.push([u,o.substr(l)+""]),e+=o.substr(0,l)+u}else e+=o}e+=a}var s="(?:table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|form|map|area|blockquote|address|math|style|p|h[1-6]|hr|fieldset|legend|section|article|aside|hgroup|header|footer|nav|figure|figcaption|details|menu|summary)";-1!==(e=c(e=(e=(e=(e=e.replace(/\s*/g,"\n\n")).replace(new RegExp("(<"+s+"[\\s/>])","g"),"\n\n$1")).replace(new RegExp("()","g"),"$1\n\n")).replace(/\r\n|\r/g,"\n"),{"\n":" \x3c!-- wpnl --\x3e "})).indexOf("\s*/g,"")),-1!==e.indexOf("")&&(e=(e=(e=e.replace(/(]*>)\s*/g,"$1")).replace(/\s*<\/object>/g,"")).replace(/\s*(<\/?(?:param|embed)[^>]*>)\s*/g,"$1")),-1===e.indexOf("\]]*[>\]])\s*/g,"$1")).replace(/\s*([<\[]\/(?:audio|video)[>\]])/g,"$1")).replace(/\s*(<(?:source|track)[^>]*>)\s*/g,"$1")),-1!==e.indexOf("]*>)/,"$1")).replace(/<\/figcaption>\s*/,""));var f=(e=e.replace(/\n\n+/g,"\n\n")).split(/\n\s*\n/).filter(Boolean);return e="",f.forEach((function(r){e+="

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

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

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

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

    $1

    ")).replace(new RegExp("

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

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

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

    ]*)>/gi,"

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

    ")).replace(new RegExp("

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

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

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

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

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

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

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

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

    ]+>[\s\S]*?<\/p>)/g,"\n$1")).replace(/^\s+/,"")).replace(/[\s\u00a0]+$/,""),c&&(e=e.replace(//g,"\n")),a&&(e=e.replace(/]*)>/g,"")),p.length&&(e=e.replace(//g,(function(){return p.shift()}))),e):""}},30:function(e,r,n){"use strict";n.d(r,"a",(function(){return p}));var t=n(27);function p(e,r){if(e){if("string"==typeof e)return Object(t.a)(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(t.a)(e,r):void 0}}},38:function(e,r,n){"use strict";function t(e){if(Array.isArray(e))return e}n.d(r,"a",(function(){return t}))},39:function(e,r,n){"use strict";function t(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(r,"a",(function(){return t}))}}); \ No newline at end of file diff --git a/wp-includes/js/dist/blob.js b/wp-includes/js/dist/blob.js index ae7e955e57..b338206a14 100644 --- a/wp-includes/js/dist/blob.js +++ b/wp-includes/js/dist/blob.js @@ -82,18 +82,19 @@ this["wp"] = this["wp"] || {}; this["wp"]["blob"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 297); +/******/ return __webpack_require__(__webpack_require__.s = 300); /******/ }) /************************************************************************/ /******/ ({ -/***/ 297: +/***/ 300: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createBlobURL", function() { return createBlobURL; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getBlobByURL", function() { return getBlobByURL; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getBlobTypeByURL", function() { return getBlobTypeByURL; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "revokeBlobURL", function() { return revokeBlobURL; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isBlobURL", function() { return isBlobURL; }); /** @@ -133,6 +134,21 @@ function createBlobURL(file) { function getBlobByURL(url) { return cache[url]; } +/** + * Retrieve a blob type based on URL. The file must have been created by + * `createBlobURL` and not removed by `revokeBlobURL`, otherwise it will return + * `undefined`. + * + * @param {string} url The blob URL. + * + * @return {string|undefined} The blob type. + */ + +function getBlobTypeByURL(url) { + var _getBlobByURL; + + return (_getBlobByURL = getBlobByURL(url)) === null || _getBlobByURL === void 0 ? void 0 : _getBlobByURL.type.split('/')[0]; // 0: media type , 1: file extension eg ( type: 'image/jpeg' ). +} /** * Remove the resource and file cache from memory. * diff --git a/wp-includes/js/dist/blob.min.js b/wp-includes/js/dist/blob.min.js index de0b2100b1..736262c821 100644 --- a/wp-includes/js/dist/blob.min.js +++ b/wp-includes/js/dist/blob.min.js @@ -1,2 +1,2 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.blob=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=297)}({297:function(e,t,n){"use strict";n.r(t),n.d(t,"createBlobURL",(function(){return f})),n.d(t,"getBlobByURL",(function(){return c})),n.d(t,"revokeBlobURL",(function(){return l})),n.d(t,"isBlobURL",(function(){return d}));var r=window.URL,o=r.createObjectURL,u=r.revokeObjectURL,i={};function f(e){var t=o(e);return i[t]=e,t}function c(e){return i[e]}function l(e){i[e]&&u(e),delete i[e]}function d(e){return!(!e||!e.indexOf)&&0===e.indexOf("blob:")}}}); \ No newline at end of file +this.wp=this.wp||{},this.wp.blob=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=300)}({300:function(e,t,n){"use strict";n.r(t),n.d(t,"createBlobURL",(function(){return f})),n.d(t,"getBlobByURL",(function(){return c})),n.d(t,"getBlobTypeByURL",(function(){return l})),n.d(t,"revokeBlobURL",(function(){return d})),n.d(t,"isBlobURL",(function(){return a}));var r=window.URL,o=r.createObjectURL,u=r.revokeObjectURL,i={};function f(e){var t=o(e);return i[t]=e,t}function c(e){return i[e]}function l(e){var t;return null===(t=c(e))||void 0===t?void 0:t.type.split("/")[0]}function d(e){i[e]&&u(e),delete i[e]}function a(e){return!(!e||!e.indexOf)&&0===e.indexOf("blob:")}}}); \ No newline at end of file diff --git a/wp-includes/js/dist/block-directory.js b/wp-includes/js/dist/block-directory.js index 24ca2f4940..b4a99dccc6 100644 --- a/wp-includes/js/dist/block-directory.js +++ b/wp-includes/js/dist/block-directory.js @@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["blockDirectory"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 456); +/******/ return __webpack_require__(__webpack_require__.s = 460); /******/ }) /************************************************************************/ /******/ ({ @@ -108,13 +108,6 @@ this["wp"] = this["wp"] || {}; this["wp"]["blockDirectory"] = /***/ }), -/***/ 101: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["notices"]; }()); - -/***/ }), - /***/ 11: /***/ (function(module, exports) { @@ -182,7 +175,7 @@ function _slicedToArray(arr, i) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutProperties; }); -/* harmony import */ var _objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(42); +/* harmony import */ var _objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(43); function _objectWithoutProperties(source, excluded) { if (source == null) return {}; @@ -205,7 +198,7 @@ function _objectWithoutProperties(source, excluded) { /***/ }), -/***/ 142: +/***/ 141: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -223,9 +216,8 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va /** * WordPress dependencies */ - // Disable reason: JSDoc linter doesn't seem to parse the union (`&`) correctly. -/** @typedef {{icon: JSX.Element, size?: number} & import('react').ComponentPropsWithoutRef<'SVG'>} IconProps */ +/** @typedef {{icon: JSX.Element, size?: number} & import('@wordpress/primitives').SVGProps} IconProps */ /** * Return an SVG icon. @@ -254,7 +246,7 @@ function Icon(_ref) { /***/ }), -/***/ 18: +/***/ 17: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -298,7 +290,14 @@ function _toConsumableArray(arr) { /***/ }), -/***/ 207: +/***/ 20: +/***/ (function(module, exports) { + +(function() { module.exports = this["regeneratorRuntime"]; }()); + +/***/ }), + +/***/ 208: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -321,13 +320,6 @@ var blockDefault = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["creat /* harmony default export */ __webpack_exports__["a"] = (blockDefault); -/***/ }), - -/***/ 24: -/***/ (function(module, exports) { - -(function() { module.exports = this["regeneratorRuntime"]; }()); - /***/ }), /***/ 27: @@ -347,63 +339,11 @@ function _arrayLikeToArray(arr, len) { /***/ }), -/***/ 274: +/***/ 276: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["editPost"]; }()); -/***/ }), - -/***/ 298: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); - - -/** - * WordPress dependencies - */ - -var starFilled = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" -}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { - d: "M11.776 4.454a.25.25 0 01.448 0l2.069 4.192a.25.25 0 00.188.137l4.626.672a.25.25 0 01.139.426l-3.348 3.263a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.362.263l-4.138-2.175a.25.25 0 00-.232 0l-4.138 2.175a.25.25 0 01-.363-.263l.79-4.607a.25.25 0 00-.071-.222L4.754 9.881a.25.25 0 01.139-.426l4.626-.672a.25.25 0 00.188-.137l2.069-4.192z" -})); -/* harmony default export */ __webpack_exports__["a"] = (starFilled); - - -/***/ }), - -/***/ 299: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); - - -/** - * WordPress dependencies - */ - -var starEmpty = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" -}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { - fillRule: "evenodd", - d: "M9.706 8.646a.25.25 0 01-.188.137l-4.626.672a.25.25 0 00-.139.427l3.348 3.262a.25.25 0 01.072.222l-.79 4.607a.25.25 0 00.362.264l4.138-2.176a.25.25 0 01.233 0l4.137 2.175a.25.25 0 00.363-.263l-.79-4.607a.25.25 0 01.072-.222l3.347-3.262a.25.25 0 00-.139-.427l-4.626-.672a.25.25 0 01-.188-.137l-2.069-4.192a.25.25 0 00-.448 0L9.706 8.646zM12 7.39l-.948 1.921a1.75 1.75 0 01-1.317.957l-2.12.308 1.534 1.495c.412.402.6.982.503 1.55l-.362 2.11 1.896-.997a1.75 1.75 0 011.629 0l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39z", - clipRule: "evenodd" -})); -/* harmony default export */ __webpack_exports__["a"] = (starEmpty); - - /***/ }), /***/ 3: @@ -429,6 +369,58 @@ function _unsupportedIterableToArray(o, minLen) { if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Object(_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen); } +/***/ }), + +/***/ 301: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); + + +/** + * WordPress dependencies + */ + +var starFilled = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { + d: "M11.776 4.454a.25.25 0 01.448 0l2.069 4.192a.25.25 0 00.188.137l4.626.672a.25.25 0 01.139.426l-3.348 3.263a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.362.263l-4.138-2.175a.25.25 0 00-.232 0l-4.138 2.175a.25.25 0 01-.363-.263l.79-4.607a.25.25 0 00-.071-.222L4.754 9.881a.25.25 0 01.139-.426l4.626-.672a.25.25 0 00.188-.137l2.069-4.192z" +})); +/* harmony default export */ __webpack_exports__["a"] = (starFilled); + + +/***/ }), + +/***/ 302: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); + + +/** + * WordPress dependencies + */ + +var starEmpty = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { + fillRule: "evenodd", + d: "M9.706 8.646a.25.25 0 01-.188.137l-4.626.672a.25.25 0 00-.139.427l3.348 3.262a.25.25 0 01.072.222l-.79 4.607a.25.25 0 00.362.264l4.138-2.176a.25.25 0 01.233 0l4.137 2.175a.25.25 0 00.363-.263l-.79-4.607a.25.25 0 01.072-.222l3.347-3.262a.25.25 0 00-.139-.427l-4.626-.672a.25.25 0 01-.188-.137l-2.069-4.192a.25.25 0 00-.448 0L9.706 8.646zM12 7.39l-.948 1.921a1.75 1.75 0 01-1.317.957l-2.12.308 1.534 1.495c.412.402.6.982.503 1.55l-.362 2.11 1.896-.997a1.75 1.75 0 011.629 0l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39z", + clipRule: "evenodd" +})); +/* harmony default export */ __webpack_exports__["a"] = (starEmpty); + + /***/ }), /***/ 32: @@ -485,7 +477,7 @@ function _nonIterableRest() { /***/ }), -/***/ 42: +/***/ 43: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -508,13 +500,56 @@ function _objectWithoutPropertiesLoose(source, excluded) { /***/ }), /***/ 45: -/***/ (function(module, exports) { +/***/ (function(module, __webpack_exports__, __webpack_require__) { -(function() { module.exports = this["wp"]["apiFetch"]; }()); +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _asyncToGenerator; }); +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { + try { + var info = gen[key](arg); + var value = info.value; + } catch (error) { + reject(error); + return; + } + + if (info.done) { + resolve(value); + } else { + Promise.resolve(value).then(_next, _throw); + } +} + +function _asyncToGenerator(fn) { + return function () { + var self = this, + args = arguments; + return new Promise(function (resolve, reject) { + var gen = fn.apply(self, args); + + function _next(value) { + asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); + } + + function _throw(err) { + asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); + } + + _next(undefined); + }); + }; +} /***/ }), -/***/ 456: +/***/ 46: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["a11y"]; }()); + +/***/ }), + +/***/ 460: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -547,7 +582,7 @@ __webpack_require__.d(actions_namespaceObject, "setErrorNotice", function() { re __webpack_require__.d(actions_namespaceObject, "clearErrorNotice", function() { return clearErrorNotice; }); // EXTERNAL MODULE: external {"this":["wp","notices"]} -var external_this_wp_notices_ = __webpack_require__(101); +var external_this_wp_notices_ = __webpack_require__(92); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js var defineProperty = __webpack_require__(5); @@ -559,7 +594,7 @@ var external_this_wp_data_ = __webpack_require__(4); var external_this_wp_dataControls_ = __webpack_require__(32); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules -var toConsumableArray = __webpack_require__(18); +var toConsumableArray = __webpack_require__(17); // EXTERNAL MODULE: external {"this":"lodash"} var external_this_lodash_ = __webpack_require__(2); @@ -838,17 +873,17 @@ function getErrorNoticeForBlock(state, blockId) { } // EXTERNAL MODULE: external {"this":"regeneratorRuntime"} -var external_this_regeneratorRuntime_ = __webpack_require__(24); +var external_this_regeneratorRuntime_ = __webpack_require__(20); var external_this_regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(external_this_regeneratorRuntime_); // EXTERNAL MODULE: external {"this":["wp","i18n"]} var external_this_wp_i18n_ = __webpack_require__(1); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js -var asyncToGenerator = __webpack_require__(47); +var asyncToGenerator = __webpack_require__(45); // EXTERNAL MODULE: external {"this":["wp","apiFetch"]} -var external_this_wp_apiFetch_ = __webpack_require__(45); +var external_this_wp_apiFetch_ = __webpack_require__(47); var external_this_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_apiFetch_); // CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/store/controls.js @@ -1490,6 +1525,9 @@ var external_this_wp_compose_ = __webpack_require__(10); // EXTERNAL MODULE: external {"this":["wp","components"]} var external_this_wp_components_ = __webpack_require__(3); +// EXTERNAL MODULE: external {"this":["wp","a11y"]} +var external_this_wp_a11y_ = __webpack_require__(46); + // CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/components/downloadable-block-author-info/index.js @@ -1522,10 +1560,10 @@ function DownloadableBlockAuthorInfo(_ref) { var external_this_wp_htmlEntities_ = __webpack_require__(69); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/icon/index.js -var build_module_icon = __webpack_require__(142); +var build_module_icon = __webpack_require__(141); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/star-filled.js -var star_filled = __webpack_require__(298); +var star_filled = __webpack_require__(301); // EXTERNAL MODULE: external {"this":["wp","primitives"]} var external_this_wp_primitives_ = __webpack_require__(7); @@ -1546,7 +1584,7 @@ var starHalf = Object(external_this_wp_element_["createElement"])(external_this_ /* harmony default export */ var star_half = (starHalf); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/star-empty.js -var star_empty = __webpack_require__(299); +var star_empty = __webpack_require__(302); // CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/components/block-ratings/stars.js @@ -1973,6 +2011,7 @@ function DownloadableBlocksList(_ref) { + /** * Internal dependencies */ @@ -1985,8 +2024,8 @@ function DownloadableBlocksPanel(_ref) { onHover = _ref.onHover, hasPermission = _ref.hasPermission, isLoading = _ref.isLoading, - isWaiting = _ref.isWaiting, - debouncedSpeak = _ref.debouncedSpeak; + isWaiting = _ref.isWaiting; + var debouncedSpeak = Object(external_this_wp_compose_["useDebounce"])(external_this_wp_a11y_["speak"], 500); if (false === hasPermission) { debouncedSpeak(Object(external_this_wp_i18n_["__"])('No blocks found in your library.')); @@ -2020,7 +2059,7 @@ function DownloadableBlocksPanel(_ref) { })); } -/* harmony default export */ var downloadable_blocks_panel = (Object(external_this_wp_compose_["compose"])([external_this_wp_components_["withSpokenMessages"], Object(external_this_wp_data_["withSelect"])(function (select, _ref2) { +/* harmony default export */ var downloadable_blocks_panel = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select, _ref2) { var filterValue = _ref2.filterValue; var _select = select('core/block-directory'), @@ -2090,10 +2129,10 @@ function InserterMenuDownloadableBlocksPanel() { /* harmony default export */ var inserter_menu_downloadable_blocks_panel = (InserterMenuDownloadableBlocksPanel); // EXTERNAL MODULE: external {"this":["wp","editPost"]} -var external_this_wp_editPost_ = __webpack_require__(274); +var external_this_wp_editPost_ = __webpack_require__(276); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/block-default.js -var block_default = __webpack_require__(207); +var block_default = __webpack_require__(208); // CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/components/compact-list/index.js @@ -2355,45 +2394,9 @@ Object(external_this_wp_hooks_["addFilter"])('blocks.registerBlockType', 'block- /***/ }), /***/ 47: -/***/ (function(module, __webpack_exports__, __webpack_require__) { +/***/ (function(module, exports) { -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _asyncToGenerator; }); -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { - try { - var info = gen[key](arg); - var value = info.value; - } catch (error) { - reject(error); - return; - } - - if (info.done) { - resolve(value); - } else { - Promise.resolve(value).then(_next, _throw); - } -} - -function _asyncToGenerator(fn) { - return function () { - var self = this, - args = arguments; - return new Promise(function (resolve, reject) { - var gen = fn.apply(self, args); - - function _next(value) { - asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); - } - - function _throw(err) { - asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); - } - - _next(undefined); - }); - }; -} +(function() { module.exports = this["wp"]["apiFetch"]; }()); /***/ }), @@ -2445,6 +2448,13 @@ function _defineProperty(obj, key, value) { (function() { module.exports = this["wp"]["plugins"]; }()); +/***/ }), + +/***/ 92: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["notices"]; }()); + /***/ }) /******/ }); \ No newline at end of file diff --git a/wp-includes/js/dist/block-directory.min.js b/wp-includes/js/dist/block-directory.min.js index 704f8c29e9..2e298c7214 100644 --- a/wp-includes/js/dist/block-directory.min.js +++ b/wp-includes/js/dist/block-directory.min.js @@ -1,2 +1,2 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.blockDirectory=function(e){var t={};function n(r){if(t[r])return t[r].exports;var c=t[r]={i:r,l:!1,exports:{}};return e[r].call(c.exports,c,c.exports,n),c.l=!0,c.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var c in e)n.d(r,c,function(t){return e[t]}.bind(null,c));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=456)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},10:function(e,t){!function(){e.exports=this.wp.compose}()},101:function(e,t){!function(){e.exports=this.wp.notices}()},11:function(e,t){!function(){e.exports=this.wp.blocks}()},12:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(38);var c=n(30),o=n(39);function a(e,t){return Object(r.a)(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,c=!1,o=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){c=!0,o=e}finally{try{r||null==i.return||i.return()}finally{if(c)throw o}}return n}}(e,t)||Object(c.a)(e,t)||Object(o.a)()}},14:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(42);function c(e,t){if(null==e)return{};var n,c,o=Object(r.a)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(c=0;c=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},142:function(e,t,n){"use strict";var r=n(5),c=n(14),o=n(0);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.a=function(e){var t=e.icon,n=e.size,i=void 0===n?24:n,l=Object(c.a)(e,["icon","size"]);return Object(o.cloneElement)(t,function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(c[n]=e[n]);return c}n.d(t,"a",(function(){return r}))},45:function(e,t){!function(){e.exports=this.wp.apiFetch}()},456:function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"isRequestingDownloadableBlocks",(function(){return O})),n.d(r,"getDownloadableBlocks",(function(){return p})),n.d(r,"getInstalledBlockTypes",(function(){return m})),n.d(r,"getNewBlockTypes",(function(){return j})),n.d(r,"getUnusedBlockTypes",(function(){return k})),n.d(r,"isInstalling",(function(){return h})),n.d(r,"getErrorNotices",(function(){return y})),n.d(r,"getErrorNoticeForBlock",(function(){return v}));var c={};n.r(c),n.d(c,"fetchDownloadableBlocks",(function(){return A})),n.d(c,"receiveDownloadableBlocks",(function(){return R})),n.d(c,"installBlockType",(function(){return M})),n.d(c,"uninstallBlockType",(function(){return F})),n.d(c,"addInstalledBlockType",(function(){return V})),n.d(c,"removeInstalledBlockType",(function(){return z})),n.d(c,"setIsInstalling",(function(){return H})),n.d(c,"setErrorNotice",(function(){return K})),n.d(c,"clearErrorNotice",(function(){return U}));n(101);var o=n(5),a=n(4),i=n(32),l=n(18),s=n(2);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"FETCH_DOWNLOADABLE_BLOCKS":return b(b({},e),{},Object(o.a)({},t.filterValue,{isRequesting:!0}));case"RECEIVE_DOWNLOADABLE_BLOCKS":return b(b({},e),{},Object(o.a)({},t.filterValue,{results:t.downloadableBlocks,isRequesting:!1}))}return e},blockManagement:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{installedBlockTypes:[],isInstalling:{}},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_INSTALLED_BLOCK_TYPE":return b(b({},e),{},{installedBlockTypes:[].concat(Object(l.a)(e.installedBlockTypes),[t.item])});case"REMOVE_INSTALLED_BLOCK_TYPE":return b(b({},e),{},{installedBlockTypes:e.installedBlockTypes.filter((function(e){return e.name!==t.item.name}))});case"SET_INSTALLING_BLOCK":return b(b({},e),{},{isInstalling:b(b({},e.isInstalling),{},Object(o.a)({},t.blockId,t.isInstalling))})}return e},errorNotices: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_ERROR_NOTICE":return b(b({},e),{},Object(o.a)({},t.blockId,{message:t.message,isFatal:t.isFatal}));case"CLEAR_ERROR_NOTICE":return Object(s.omit)(e,t.blockId)}return e}});function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!t.length)return!1;if(t.some((function(t){return t.name===e.name})))return!0;for(var n=0;n2&&void 0!==arguments[2]&&arguments[2];return{type:"SET_ERROR_NOTICE",blockId:e,message:t,isFatal:n}}function U(e){return{type:"CLEAR_ERROR_NOTICE",blockId:e}}var W={getDownloadableBlocks:w.a.mark((function e(t){var n,r;return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,e.next=5,A(t);case 5:return e.next=7,Object(i.apiFetch)({path:"wp/v2/block-directory/search?term=".concat(t)});case 7:return n=e.sent,r=n.map((function(e){return Object(s.mapKeys)(e,(function(e,t){return Object(s.camelCase)(t)}))})),e.next=11,R(r,t);case 11:e.next=15;break;case 13:e.prev=13,e.t0=e.catch(2);case 15:case"end":return e.stop()}}),e,null,[[2,13]])}))};function Y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function G(e){for(var t=1;t0?Object(_.sprintf)(Object(_._n)("This author has %1$d block, with an average rating of %2$.1f.","This author has %1$d blocks, with an average rating of %2$.1f.",n),n,r):Object(_.sprintf)(Object(_._n)("This author has %1$d block.","This author has %1$d blocks.",n),n)))},oe=n(69),ae=n(142),ie=n(298),le=n(7),se=Object(q.createElement)(le.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(q.createElement)(le.Path,{d:"M9.518 8.783a.25.25 0 00.188-.137l2.069-4.192a.25.25 0 01.448 0l2.07 4.192a.25.25 0 00.187.137l4.626.672a.25.25 0 01.139.427l-3.347 3.262a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.363.264l-4.137-2.176a.25.25 0 00-.233 0l-4.138 2.175a.25.25 0 01-.362-.263l.79-4.607a.25.25 0 00-.072-.222L4.753 9.882a.25.25 0 01.14-.427l4.625-.672zM12 14.533c.28 0 .559.067.814.2l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39v7.143z"})),ue=n(299);var be=function(e){var t=e.rating,n=.5*Math.round(t/.5),r=Math.floor(t),c=Math.ceil(t-r),o=5-(r+c);return Object(q.createElement)("div",{"aria-label":Object(_.sprintf)(Object(_.__)("%s out of 5 stars"),n)},Object(s.times)(r,(function(e){return Object(q.createElement)(ae.a,{key:"full_stars_".concat(e),icon:ie.a,size:16})})),Object(s.times)(c,(function(e){return Object(q.createElement)(ae.a,{key:"half_stars_".concat(e),icon:se,size:16})})),Object(s.times)(o,(function(e){return Object(q.createElement)(ae.a,{key:"empty_stars_".concat(e),icon:ue.a,size:16})})))},de=function(e){var t=e.rating,n=e.ratingCount;return Object(q.createElement)("div",{className:"block-directory-block-ratings"},Object(q.createElement)(be,{rating:t}),Object(q.createElement)("span",{className:"block-directory-block-ratings__rating-count","aria-label":Object(_.sprintf)(Object(_._n)("%d total rating","%d total ratings",n),n)},"(",n,")"))};var fe=function(e){var t=e.icon,n=e.title;return Object(q.createElement)("div",{className:"block-directory-downloadable-block-icon"},null!==t.match(/\.(jpeg|jpg|gif|png|svg)(?:\?.*)?$/)?Object(q.createElement)("img",{src:t,alt:Object(_.sprintf)(Object(_.__)("%s block icon"),n)}):Object(q.createElement)(te.BlockIcon,{icon:t,showColors:!0}))};var Oe=function(e){var t=e.icon,n=e.title,r=e.rating,c=e.ratingCount,o=e.isLoading,a=void 0!==o&&o,i=e.isInstallable,l=void 0===i||i,s=e.onClick;return Object(q.createElement)("div",{className:"block-directory-downloadable-block-header__row"},Object(q.createElement)(fe,{icon:t,title:n}),Object(q.createElement)("div",{className:"block-directory-downloadable-block-header__column"},Object(q.createElement)("h2",{className:"block-directory-downloadable-block-header__title"},Object(oe.decodeEntities)(n)),Object(q.createElement)(de,{rating:r,ratingCount:c})),Object(q.createElement)(re.Button,{isSecondary:!0,isBusy:a,disabled:a||!l,onClick:function(e){e.preventDefault(),!a&&l&&s()}},a?Object(_.__)("Adding…"):Object(_.__)("Add block")))},pe=Object(q.createElement)(le.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(q.createElement)(le.Path,{d:"M18 3.5c0 .62-.38 1.16-.92 1.38v13.11H1.99l4.22-6.73c-.13-.23-.21-.48-.21-.76C6 9.67 6.67 9 7.5 9S9 9.67 9 10.5c0 .13-.02.25-.05.37l1.44.63c.27-.3.67-.5 1.11-.5.18 0 .35.04.51.09l3.58-6.41c-.36-.27-.59-.7-.59-1.18 0-.83.67-1.5 1.5-1.5.19 0 .36.04.53.1l.05-.09v.11c.54.22.92.76.92 1.38zm-1.92 13.49V5.85l-3.29 5.89c.13.23.21.48.21.76 0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5l.01-.07-1.63-.72c-.25.18-.55.29-.88.29-.18 0-.35-.04-.51-.1l-3.2 5.09h12.29z"})),me=Object(q.createElement)(le.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(q.createElement)(le.Path,{d:"M10.2 3.28c3.53 0 6.43 2.61 6.92 6h2.08l-3.5 4-3.5-4h2.32c-.45-1.97-2.21-3.45-4.32-3.45-1.45 0-2.73.71-3.54 1.78L4.95 5.66C6.23 4.2 8.11 3.28 10.2 3.28zm-.4 13.44c-3.52 0-6.43-2.61-6.92-6H.8l3.5-4c1.17 1.33 2.33 2.67 3.5 4H5.48c.45 1.97 2.21 3.45 4.32 3.45 1.45 0 2.73-.71 3.54-1.78l1.71 1.95c-1.28 1.46-3.15 2.38-5.25 2.38z"}));var je=function(e){var t,n=e.activeInstalls,r=e.description,c=e.humanizedUpdated;return t=n>1e6?Object(_.sprintf)(Object(_.__)("%d+ Million active installations"),Math.floor(n/1e6)):0===n?Object(_.__)("Less than 10 active installations"):Object(_.sprintf)(Object(_.__)("%d+ active installations"),n),Object(q.createElement)(q.Fragment,null,Object(q.createElement)("p",{className:"block-directory-downloadable-block-info__content"},Object(oe.decodeEntities)(r)),Object(q.createElement)("div",{className:"block-directory-downloadable-block-info__meta"},Object(q.createElement)(ae.a,{className:"block-directory-downloadable-block-info__icon",icon:pe}),t),Object(q.createElement)("div",{className:"block-directory-downloadable-block-info__meta"},Object(q.createElement)(ae.a,{className:"block-directory-downloadable-block-info__icon",icon:me}),Object(_.sprintf)(Object(_.__)("Updated %s"),c)))},ke=function(e){var t=e.block,n=e.onClick,r=Object(a.useSelect)((function(e){return e("core/block-directory").getErrorNoticeForBlock(t.id)}),[t]);return r?Object(q.createElement)(re.Notice,{status:"error",isDismissible:!1,className:"block-directory-downloadable-block-notice"},Object(q.createElement)("div",{className:"block-directory-downloadable-block-notice__content"},r.message),Object(q.createElement)(re.Button,{isSmall:!0,isPrimary:!0,onClick:function(){if(r.isFatal)return window.location.reload(),!1;n(t)}},r.isFatal?Object(_.__)("Reload"):Object(_.__)("Retry"))):null};function he(e){var t=e.item,n=e.onClick,r=Object(a.useSelect)((function(e){var n=e("core/block-directory"),r=n.isInstalling,c=(0,n.getErrorNoticeForBlock)(t.id),o=c&&c.isFatal;return{isLoading:r(t.id),isInstallable:!o}}),[t]),c=r.isLoading,o=r.isInstallable,i=t.icon,l=t.title,s=t.description,u=t.rating,b=t.activeInstalls,d=t.ratingCount,f=t.author,O=t.humanizedUpdated,p=t.authorBlockCount,m=t.authorBlockRating;return Object(q.createElement)("li",{className:"block-directory-downloadable-block-list-item"},Object(q.createElement)("article",{className:"block-directory-downloadable-block-list-item__panel"},Object(q.createElement)("header",{className:"block-directory-downloadable-block-list-item__header"},Object(q.createElement)(Oe,{icon:i,onClick:n,title:l,rating:u,ratingCount:d,isLoading:c,isInstallable:o})),Object(q.createElement)("section",{className:"block-directory-downloadable-block-list-item__body"},Object(q.createElement)(ke,{onClick:n,block:t}),Object(q.createElement)(je,{activeInstalls:b,description:s,humanizedUpdated:O})),Object(q.createElement)("footer",{className:"block-directory-downloadable-block-list-item__footer"},Object(q.createElement)(ce,{author:f,authorBlockCount:p,authorBlockRating:m}))))}var ye=function(e){var t=e.items,n=e.onHover,r=void 0===n?s.noop:n,c=e.onSelect,o=Object(a.useDispatch)("core/block-directory").installBlockType,i=Object(a.useDispatch)("core/edit-post").setIsInserterOpened;return t.length?Object(q.createElement)("ul",{role:"list",className:"block-directory-downloadable-blocks-list"},t.map((function(e){return Object(q.createElement)(he,{key:e.id,onClick:function(){o(e).then((function(t){t&&(c(e),i(!1))})),r(null)},item:e})}))):null};var ve=Object(ne.compose)([re.withSpokenMessages,Object(a.withSelect)((function(e,t){var n=t.filterValue,r=e("core/block-directory"),c=r.getDownloadableBlocks,o=r.isRequestingDownloadableBlocks,a=e("core").canUser("read","block-directory/search");return{downloadableItems:a?c(n):[],hasPermission:a,isLoading:o(n)}}))])((function(e){var t=e.downloadableItems,n=e.onSelect,r=e.onHover,c=e.hasPermission,o=e.isLoading,a=e.isWaiting,i=e.debouncedSpeak;return!1===c?(i(Object(_.__)("No blocks found in your library.")),Object(q.createElement)("p",{className:"block-directory-downloadable-blocks-panel__description has-no-results"},Object(_.__)("No blocks found in your library."))):void 0===c||o||a?Object(q.createElement)("p",{className:"block-directory-downloadable-blocks-panel__description has-no-results"},Object(q.createElement)(re.Spinner,null)):t.length?(i(Object(_.sprintf)(Object(_._n)("No blocks found in your library. We did find %d block available for download.","No blocks found in your library. We did find %d blocks available for download.",t.length),t.length)),Object(q.createElement)(q.Fragment,null,Object(q.createElement)("p",{className:"block-directory-downloadable-blocks-panel__description"},Object(_.__)("No blocks found in your library. These blocks can be downloaded and installed:")),Object(q.createElement)(ye,{items:t,onSelect:n,onHover:r}))):Object(q.createElement)("p",{className:"block-directory-downloadable-blocks-panel__description has-no-results"},Object(_.__)("No blocks found in your library."))}));var ge=function(){var e=Object(q.useState)(""),t=Object(ee.a)(e,2),n=t[0],r=t[1],c=Object(s.debounce)(r,400);return Object(q.createElement)(te.__experimentalInserterMenuExtension,null,(function(e){var t=e.onSelect,r=e.onHover,o=e.filterValue;return e.hasItems||!o?null:(n!==o&&c(o),Object(q.createElement)(ve,{onSelect:t,onHover:r,filterValue:n,isWaiting:o!==n}))}))},we=n(274),_e=n(207);function Ee(e){var t=e.items;return t.length?Object(q.createElement)("ul",{className:"block-directory-compact-list"},t.map((function(e){var t=e.icon,n=e.id,r=e.title,c=e.author;return Object(q.createElement)("li",{key:n,className:"block-directory-compact-list__item"},Object(q.createElement)(fe,{icon:t,title:r}),Object(q.createElement)("div",{className:"block-directory-compact-list__item-details"},Object(q.createElement)("div",{className:"block-directory-compact-list__item-title"},r),Object(q.createElement)("div",{className:"block-directory-compact-list__item-author"},Object(_.sprintf)(Object(_.__)("By %s"),c))))}))):null}function Be(){var e=Object(a.useSelect)((function(e){return e("core/block-directory").getNewBlockTypes()}),[]);return e.length?Object(q.createElement)(we.PluginPrePublishPanel,{icon:_e.a,title:Object(_.sprintf)(Object(_._n)("Added: %d block","Added: %d blocks",e.length),e.length),initialOpen:!0},Object(q.createElement)("p",{className:"installed-blocks-pre-publish-panel__copy"},Object(_._n)("The following block has been added to your site.","The following blocks have been added to your site.",e.length)),Object(q.createElement)(Ee,{items:e})):null}function Se(e){var t=e.attributes,n=e.block,r=e.clientId,c=Object(a.useSelect)((function(e){return e("core/block-directory").isInstalling(n.id)})),o=Object(a.useDispatch)("core/block-directory").installBlockType,i=Object(a.useDispatch)("core/block-editor").replaceBlock;return Object(q.createElement)(re.Button,{onClick:function(){return o(n).then((function(e){if(e){var c=Object(X.getBlockType)(n.name),o=Object(X.parse)(t.originalContent),a=Object(ee.a)(o,1)[0];a&&i(r,Object(X.createBlock)(c.name,a.attributes,a.innerBlocks))}}))},disabled:c,isBusy:c,isPrimary:!0},Object(_.sprintf)(Object(_.__)("Install %s"),n.title))}var xe=function(e){return function(t){var n=t.attributes,r=n.originalName,c=n.originalUndelimitedContent,o=Object(a.useSelect)((function(e){var t=(0,e("core/block-directory").getDownloadableBlocks)("block:"+r).filter((function(e){var t=e.name;return r===t}));return{hasPermission:e("core").canUser("read","block-directory/search"),block:t.length&&t[0]}}),[r]),i=o.block,l=o.hasPermission,s=Object(a.useDispatch)("core/block-editor").replaceBlock;if(!l||!i)return Object(q.createElement)(e,t);var u=!!c,b=Object(X.getBlockType)("core/html"),d=Object(_.sprintf)(Object(_.__)("Your site doesn’t include support for the %s block. You can try installing the block or remove it entirely."),i.title||r),f=[Object(q.createElement)(Se,{key:"install",block:i,attributes:t.attributes,clientId:t.clientId})];return u&&b&&(d=Object(_.sprintf)(Object(_.__)("Your site doesn’t include support for the %s block. You can try installing the block, convert it to a Custom HTML block, or remove it entirely."),i.title||r),f.push(Object(q.createElement)(re.Button,{key:"convert",onClick:function(){s(t.clientId,Object(X.createBlock)("core/html",{content:c}))},isLink:!0},Object(_.__)("Keep as HTML")))),Object(q.createElement)(q.Fragment,null,Object(q.createElement)(te.Warning,{actions:f},d),Object(q.createElement)(q.RawHTML,null,c))}};Object(J.registerPlugin)("block-directory",{render:function(){return Object(q.createElement)(q.Fragment,null,Object(q.createElement)(Z,null),Object(q.createElement)(ge,null),Object(q.createElement)(Be,null))}}),Object(Q.addFilter)("blocks.registerBlockType","block-directory/fallback",(function(e,t){return"core/missing"!==t||(e.edit=xe(e.edit)),e}))},47:function(e,t,n){"use strict";function r(e,t,n,r,c,o,a){try{var i=e[o](a),l=i.value}catch(e){return void n(e)}i.done?t(l):Promise.resolve(l).then(r,c)}function c(e){return function(){var t=this,n=arguments;return new Promise((function(c,o){var a=e.apply(t,n);function i(e){r(a,c,o,i,l,"next",e)}function l(e){r(a,c,o,i,l,"throw",e)}i(void 0)}))}}n.d(t,"a",(function(){return c}))},5:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},6:function(e,t){!function(){e.exports=this.wp.blockEditor}()},69:function(e,t){!function(){e.exports=this.wp.htmlEntities}()},7:function(e,t){!function(){e.exports=this.wp.primitives}()},77:function(e,t){!function(){e.exports=this.wp.plugins}()}}); \ No newline at end of file +this.wp=this.wp||{},this.wp.blockDirectory=function(e){var t={};function n(r){if(t[r])return t[r].exports;var c=t[r]={i:r,l:!1,exports:{}};return e[r].call(c.exports,c,c.exports,n),c.l=!0,c.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var c in e)n.d(r,c,function(t){return e[t]}.bind(null,c));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=460)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},10:function(e,t){!function(){e.exports=this.wp.compose}()},11:function(e,t){!function(){e.exports=this.wp.blocks}()},12:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(38);var c=n(30),o=n(39);function a(e,t){return Object(r.a)(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,c=!1,o=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){c=!0,o=e}finally{try{r||null==i.return||i.return()}finally{if(c)throw o}}return n}}(e,t)||Object(c.a)(e,t)||Object(o.a)()}},14:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(43);function c(e,t){if(null==e)return{};var n,c,o=Object(r.a)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(c=0;c=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},141:function(e,t,n){"use strict";var r=n(5),c=n(14),o=n(0);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.a=function(e){var t=e.icon,n=e.size,i=void 0===n?24:n,l=Object(c.a)(e,["icon","size"]);return Object(o.cloneElement)(t,function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(c[n]=e[n]);return c}n.d(t,"a",(function(){return r}))},45:function(e,t,n){"use strict";function r(e,t,n,r,c,o,a){try{var i=e[o](a),l=i.value}catch(e){return void n(e)}i.done?t(l):Promise.resolve(l).then(r,c)}function c(e){return function(){var t=this,n=arguments;return new Promise((function(c,o){var a=e.apply(t,n);function i(e){r(a,c,o,i,l,"next",e)}function l(e){r(a,c,o,i,l,"throw",e)}i(void 0)}))}}n.d(t,"a",(function(){return c}))},46:function(e,t){!function(){e.exports=this.wp.a11y}()},460:function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"isRequestingDownloadableBlocks",(function(){return O})),n.d(r,"getDownloadableBlocks",(function(){return p})),n.d(r,"getInstalledBlockTypes",(function(){return m})),n.d(r,"getNewBlockTypes",(function(){return j})),n.d(r,"getUnusedBlockTypes",(function(){return k})),n.d(r,"isInstalling",(function(){return h})),n.d(r,"getErrorNotices",(function(){return y})),n.d(r,"getErrorNoticeForBlock",(function(){return v}));var c={};n.r(c),n.d(c,"fetchDownloadableBlocks",(function(){return A})),n.d(c,"receiveDownloadableBlocks",(function(){return R})),n.d(c,"installBlockType",(function(){return M})),n.d(c,"uninstallBlockType",(function(){return F})),n.d(c,"addInstalledBlockType",(function(){return V})),n.d(c,"removeInstalledBlockType",(function(){return z})),n.d(c,"setIsInstalling",(function(){return H})),n.d(c,"setErrorNotice",(function(){return K})),n.d(c,"clearErrorNotice",(function(){return U}));n(92);var o=n(5),a=n(4),i=n(32),l=n(17),s=n(2);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"FETCH_DOWNLOADABLE_BLOCKS":return b(b({},e),{},Object(o.a)({},t.filterValue,{isRequesting:!0}));case"RECEIVE_DOWNLOADABLE_BLOCKS":return b(b({},e),{},Object(o.a)({},t.filterValue,{results:t.downloadableBlocks,isRequesting:!1}))}return e},blockManagement:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{installedBlockTypes:[],isInstalling:{}},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_INSTALLED_BLOCK_TYPE":return b(b({},e),{},{installedBlockTypes:[].concat(Object(l.a)(e.installedBlockTypes),[t.item])});case"REMOVE_INSTALLED_BLOCK_TYPE":return b(b({},e),{},{installedBlockTypes:e.installedBlockTypes.filter((function(e){return e.name!==t.item.name}))});case"SET_INSTALLING_BLOCK":return b(b({},e),{},{isInstalling:b(b({},e.isInstalling),{},Object(o.a)({},t.blockId,t.isInstalling))})}return e},errorNotices: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_ERROR_NOTICE":return b(b({},e),{},Object(o.a)({},t.blockId,{message:t.message,isFatal:t.isFatal}));case"CLEAR_ERROR_NOTICE":return Object(s.omit)(e,t.blockId)}return e}});function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!t.length)return!1;if(t.some((function(t){return t.name===e.name})))return!0;for(var n=0;n2&&void 0!==arguments[2]&&arguments[2];return{type:"SET_ERROR_NOTICE",blockId:e,message:t,isFatal:n}}function U(e){return{type:"CLEAR_ERROR_NOTICE",blockId:e}}var W={getDownloadableBlocks:w.a.mark((function e(t){var n,r;return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,e.next=5,A(t);case 5:return e.next=7,Object(i.apiFetch)({path:"wp/v2/block-directory/search?term=".concat(t)});case 7:return n=e.sent,r=n.map((function(e){return Object(s.mapKeys)(e,(function(e,t){return Object(s.camelCase)(t)}))})),e.next=11,R(r,t);case 11:e.next=15;break;case 13:e.prev=13,e.t0=e.catch(2);case 15:case"end":return e.stop()}}),e,null,[[2,13]])}))};function Y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function G(e){for(var t=1;t0?Object(_.sprintf)(Object(_._n)("This author has %1$d block, with an average rating of %2$.1f.","This author has %1$d blocks, with an average rating of %2$.1f.",n),n,r):Object(_.sprintf)(Object(_._n)("This author has %1$d block.","This author has %1$d blocks.",n),n)))},ae=n(69),ie=n(141),le=n(301),se=n(7),ue=Object(q.createElement)(se.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(q.createElement)(se.Path,{d:"M9.518 8.783a.25.25 0 00.188-.137l2.069-4.192a.25.25 0 01.448 0l2.07 4.192a.25.25 0 00.187.137l4.626.672a.25.25 0 01.139.427l-3.347 3.262a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.363.264l-4.137-2.176a.25.25 0 00-.233 0l-4.138 2.175a.25.25 0 01-.362-.263l.79-4.607a.25.25 0 00-.072-.222L4.753 9.882a.25.25 0 01.14-.427l4.625-.672zM12 14.533c.28 0 .559.067.814.2l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39v7.143z"})),be=n(302);var de=function(e){var t=e.rating,n=.5*Math.round(t/.5),r=Math.floor(t),c=Math.ceil(t-r),o=5-(r+c);return Object(q.createElement)("div",{"aria-label":Object(_.sprintf)(Object(_.__)("%s out of 5 stars"),n)},Object(s.times)(r,(function(e){return Object(q.createElement)(ie.a,{key:"full_stars_".concat(e),icon:le.a,size:16})})),Object(s.times)(c,(function(e){return Object(q.createElement)(ie.a,{key:"half_stars_".concat(e),icon:ue,size:16})})),Object(s.times)(o,(function(e){return Object(q.createElement)(ie.a,{key:"empty_stars_".concat(e),icon:be.a,size:16})})))},fe=function(e){var t=e.rating,n=e.ratingCount;return Object(q.createElement)("div",{className:"block-directory-block-ratings"},Object(q.createElement)(de,{rating:t}),Object(q.createElement)("span",{className:"block-directory-block-ratings__rating-count","aria-label":Object(_.sprintf)(Object(_._n)("%d total rating","%d total ratings",n),n)},"(",n,")"))};var Oe=function(e){var t=e.icon,n=e.title;return Object(q.createElement)("div",{className:"block-directory-downloadable-block-icon"},null!==t.match(/\.(jpeg|jpg|gif|png|svg)(?:\?.*)?$/)?Object(q.createElement)("img",{src:t,alt:Object(_.sprintf)(Object(_.__)("%s block icon"),n)}):Object(q.createElement)(te.BlockIcon,{icon:t,showColors:!0}))};var pe=function(e){var t=e.icon,n=e.title,r=e.rating,c=e.ratingCount,o=e.isLoading,a=void 0!==o&&o,i=e.isInstallable,l=void 0===i||i,s=e.onClick;return Object(q.createElement)("div",{className:"block-directory-downloadable-block-header__row"},Object(q.createElement)(Oe,{icon:t,title:n}),Object(q.createElement)("div",{className:"block-directory-downloadable-block-header__column"},Object(q.createElement)("h2",{className:"block-directory-downloadable-block-header__title"},Object(ae.decodeEntities)(n)),Object(q.createElement)(fe,{rating:r,ratingCount:c})),Object(q.createElement)(re.Button,{isSecondary:!0,isBusy:a,disabled:a||!l,onClick:function(e){e.preventDefault(),!a&&l&&s()}},a?Object(_.__)("Adding…"):Object(_.__)("Add block")))},me=Object(q.createElement)(se.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(q.createElement)(se.Path,{d:"M18 3.5c0 .62-.38 1.16-.92 1.38v13.11H1.99l4.22-6.73c-.13-.23-.21-.48-.21-.76C6 9.67 6.67 9 7.5 9S9 9.67 9 10.5c0 .13-.02.25-.05.37l1.44.63c.27-.3.67-.5 1.11-.5.18 0 .35.04.51.09l3.58-6.41c-.36-.27-.59-.7-.59-1.18 0-.83.67-1.5 1.5-1.5.19 0 .36.04.53.1l.05-.09v.11c.54.22.92.76.92 1.38zm-1.92 13.49V5.85l-3.29 5.89c.13.23.21.48.21.76 0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5l.01-.07-1.63-.72c-.25.18-.55.29-.88.29-.18 0-.35-.04-.51-.1l-3.2 5.09h12.29z"})),je=Object(q.createElement)(se.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(q.createElement)(se.Path,{d:"M10.2 3.28c3.53 0 6.43 2.61 6.92 6h2.08l-3.5 4-3.5-4h2.32c-.45-1.97-2.21-3.45-4.32-3.45-1.45 0-2.73.71-3.54 1.78L4.95 5.66C6.23 4.2 8.11 3.28 10.2 3.28zm-.4 13.44c-3.52 0-6.43-2.61-6.92-6H.8l3.5-4c1.17 1.33 2.33 2.67 3.5 4H5.48c.45 1.97 2.21 3.45 4.32 3.45 1.45 0 2.73-.71 3.54-1.78l1.71 1.95c-1.28 1.46-3.15 2.38-5.25 2.38z"}));var ke=function(e){var t,n=e.activeInstalls,r=e.description,c=e.humanizedUpdated;return t=n>1e6?Object(_.sprintf)(Object(_.__)("%d+ Million active installations"),Math.floor(n/1e6)):0===n?Object(_.__)("Less than 10 active installations"):Object(_.sprintf)(Object(_.__)("%d+ active installations"),n),Object(q.createElement)(q.Fragment,null,Object(q.createElement)("p",{className:"block-directory-downloadable-block-info__content"},Object(ae.decodeEntities)(r)),Object(q.createElement)("div",{className:"block-directory-downloadable-block-info__meta"},Object(q.createElement)(ie.a,{className:"block-directory-downloadable-block-info__icon",icon:me}),t),Object(q.createElement)("div",{className:"block-directory-downloadable-block-info__meta"},Object(q.createElement)(ie.a,{className:"block-directory-downloadable-block-info__icon",icon:je}),Object(_.sprintf)(Object(_.__)("Updated %s"),c)))},he=function(e){var t=e.block,n=e.onClick,r=Object(a.useSelect)((function(e){return e("core/block-directory").getErrorNoticeForBlock(t.id)}),[t]);return r?Object(q.createElement)(re.Notice,{status:"error",isDismissible:!1,className:"block-directory-downloadable-block-notice"},Object(q.createElement)("div",{className:"block-directory-downloadable-block-notice__content"},r.message),Object(q.createElement)(re.Button,{isSmall:!0,isPrimary:!0,onClick:function(){if(r.isFatal)return window.location.reload(),!1;n(t)}},r.isFatal?Object(_.__)("Reload"):Object(_.__)("Retry"))):null};function ye(e){var t=e.item,n=e.onClick,r=Object(a.useSelect)((function(e){var n=e("core/block-directory"),r=n.isInstalling,c=(0,n.getErrorNoticeForBlock)(t.id),o=c&&c.isFatal;return{isLoading:r(t.id),isInstallable:!o}}),[t]),c=r.isLoading,o=r.isInstallable,i=t.icon,l=t.title,s=t.description,u=t.rating,b=t.activeInstalls,d=t.ratingCount,f=t.author,O=t.humanizedUpdated,p=t.authorBlockCount,m=t.authorBlockRating;return Object(q.createElement)("li",{className:"block-directory-downloadable-block-list-item"},Object(q.createElement)("article",{className:"block-directory-downloadable-block-list-item__panel"},Object(q.createElement)("header",{className:"block-directory-downloadable-block-list-item__header"},Object(q.createElement)(pe,{icon:i,onClick:n,title:l,rating:u,ratingCount:d,isLoading:c,isInstallable:o})),Object(q.createElement)("section",{className:"block-directory-downloadable-block-list-item__body"},Object(q.createElement)(he,{onClick:n,block:t}),Object(q.createElement)(ke,{activeInstalls:b,description:s,humanizedUpdated:O})),Object(q.createElement)("footer",{className:"block-directory-downloadable-block-list-item__footer"},Object(q.createElement)(oe,{author:f,authorBlockCount:p,authorBlockRating:m}))))}var ve=function(e){var t=e.items,n=e.onHover,r=void 0===n?s.noop:n,c=e.onSelect,o=Object(a.useDispatch)("core/block-directory").installBlockType,i=Object(a.useDispatch)("core/edit-post").setIsInserterOpened;return t.length?Object(q.createElement)("ul",{role:"list",className:"block-directory-downloadable-blocks-list"},t.map((function(e){return Object(q.createElement)(ye,{key:e.id,onClick:function(){o(e).then((function(t){t&&(c(e),i(!1))})),r(null)},item:e})}))):null};var ge=Object(ne.compose)([Object(a.withSelect)((function(e,t){var n=t.filterValue,r=e("core/block-directory"),c=r.getDownloadableBlocks,o=r.isRequestingDownloadableBlocks,a=e("core").canUser("read","block-directory/search");return{downloadableItems:a?c(n):[],hasPermission:a,isLoading:o(n)}}))])((function(e){var t=e.downloadableItems,n=e.onSelect,r=e.onHover,c=e.hasPermission,o=e.isLoading,a=e.isWaiting,i=Object(ne.useDebounce)(ce.speak,500);return!1===c?(i(Object(_.__)("No blocks found in your library.")),Object(q.createElement)("p",{className:"block-directory-downloadable-blocks-panel__description has-no-results"},Object(_.__)("No blocks found in your library."))):void 0===c||o||a?Object(q.createElement)("p",{className:"block-directory-downloadable-blocks-panel__description has-no-results"},Object(q.createElement)(re.Spinner,null)):t.length?(i(Object(_.sprintf)(Object(_._n)("No blocks found in your library. We did find %d block available for download.","No blocks found in your library. We did find %d blocks available for download.",t.length),t.length)),Object(q.createElement)(q.Fragment,null,Object(q.createElement)("p",{className:"block-directory-downloadable-blocks-panel__description"},Object(_.__)("No blocks found in your library. These blocks can be downloaded and installed:")),Object(q.createElement)(ve,{items:t,onSelect:n,onHover:r}))):Object(q.createElement)("p",{className:"block-directory-downloadable-blocks-panel__description has-no-results"},Object(_.__)("No blocks found in your library."))}));var we=function(){var e=Object(q.useState)(""),t=Object(ee.a)(e,2),n=t[0],r=t[1],c=Object(s.debounce)(r,400);return Object(q.createElement)(te.__experimentalInserterMenuExtension,null,(function(e){var t=e.onSelect,r=e.onHover,o=e.filterValue;return e.hasItems||!o?null:(n!==o&&c(o),Object(q.createElement)(ge,{onSelect:t,onHover:r,filterValue:n,isWaiting:o!==n}))}))},_e=n(276),Ee=n(208);function Be(e){var t=e.items;return t.length?Object(q.createElement)("ul",{className:"block-directory-compact-list"},t.map((function(e){var t=e.icon,n=e.id,r=e.title,c=e.author;return Object(q.createElement)("li",{key:n,className:"block-directory-compact-list__item"},Object(q.createElement)(Oe,{icon:t,title:r}),Object(q.createElement)("div",{className:"block-directory-compact-list__item-details"},Object(q.createElement)("div",{className:"block-directory-compact-list__item-title"},r),Object(q.createElement)("div",{className:"block-directory-compact-list__item-author"},Object(_.sprintf)(Object(_.__)("By %s"),c))))}))):null}function xe(){var e=Object(a.useSelect)((function(e){return e("core/block-directory").getNewBlockTypes()}),[]);return e.length?Object(q.createElement)(_e.PluginPrePublishPanel,{icon:Ee.a,title:Object(_.sprintf)(Object(_._n)("Added: %d block","Added: %d blocks",e.length),e.length),initialOpen:!0},Object(q.createElement)("p",{className:"installed-blocks-pre-publish-panel__copy"},Object(_._n)("The following block has been added to your site.","The following blocks have been added to your site.",e.length)),Object(q.createElement)(Be,{items:e})):null}function Se(e){var t=e.attributes,n=e.block,r=e.clientId,c=Object(a.useSelect)((function(e){return e("core/block-directory").isInstalling(n.id)})),o=Object(a.useDispatch)("core/block-directory").installBlockType,i=Object(a.useDispatch)("core/block-editor").replaceBlock;return Object(q.createElement)(re.Button,{onClick:function(){return o(n).then((function(e){if(e){var c=Object(X.getBlockType)(n.name),o=Object(X.parse)(t.originalContent),a=Object(ee.a)(o,1)[0];a&&i(r,Object(X.createBlock)(c.name,a.attributes,a.innerBlocks))}}))},disabled:c,isBusy:c,isPrimary:!0},Object(_.sprintf)(Object(_.__)("Install %s"),n.title))}var Pe=function(e){return function(t){var n=t.attributes,r=n.originalName,c=n.originalUndelimitedContent,o=Object(a.useSelect)((function(e){var t=(0,e("core/block-directory").getDownloadableBlocks)("block:"+r).filter((function(e){var t=e.name;return r===t}));return{hasPermission:e("core").canUser("read","block-directory/search"),block:t.length&&t[0]}}),[r]),i=o.block,l=o.hasPermission,s=Object(a.useDispatch)("core/block-editor").replaceBlock;if(!l||!i)return Object(q.createElement)(e,t);var u=!!c,b=Object(X.getBlockType)("core/html"),d=Object(_.sprintf)(Object(_.__)("Your site doesn’t include support for the %s block. You can try installing the block or remove it entirely."),i.title||r),f=[Object(q.createElement)(Se,{key:"install",block:i,attributes:t.attributes,clientId:t.clientId})];return u&&b&&(d=Object(_.sprintf)(Object(_.__)("Your site doesn’t include support for the %s block. You can try installing the block, convert it to a Custom HTML block, or remove it entirely."),i.title||r),f.push(Object(q.createElement)(re.Button,{key:"convert",onClick:function(){s(t.clientId,Object(X.createBlock)("core/html",{content:c}))},isLink:!0},Object(_.__)("Keep as HTML")))),Object(q.createElement)(q.Fragment,null,Object(q.createElement)(te.Warning,{actions:f},d),Object(q.createElement)(q.RawHTML,null,c))}};Object(J.registerPlugin)("block-directory",{render:function(){return Object(q.createElement)(q.Fragment,null,Object(q.createElement)(Z,null),Object(q.createElement)(we,null),Object(q.createElement)(xe,null))}}),Object(Q.addFilter)("blocks.registerBlockType","block-directory/fallback",(function(e,t){return"core/missing"!==t||(e.edit=Pe(e.edit)),e}))},47:function(e,t){!function(){e.exports=this.wp.apiFetch}()},5:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},6:function(e,t){!function(){e.exports=this.wp.blockEditor}()},69:function(e,t){!function(){e.exports=this.wp.htmlEntities}()},7:function(e,t){!function(){e.exports=this.wp.primitives}()},77:function(e,t){!function(){e.exports=this.wp.plugins}()},92:function(e,t){!function(){e.exports=this.wp.notices}()}}); \ 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 9650e3f03b..79ad14bda8 100644 --- a/wp-includes/js/dist/block-editor.js +++ b/wp-includes/js/dist/block-editor.js @@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["blockEditor"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 451); +/******/ return __webpack_require__(__webpack_require__.s = 455); /******/ }) /************************************************************************/ /******/ ([ @@ -302,7 +302,7 @@ function _slicedToArray(arr, i) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutProperties; }); -/* harmony import */ var _objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(42); +/* harmony import */ var _objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(43); function _objectWithoutProperties(source, excluded) { if (source == null) return {}; @@ -327,20 +327,6 @@ function _objectWithoutProperties(source, excluded) { /* 15 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _assertThisInitialized; }); -function _assertThisInitialized(self) { - if (self === void 0) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } - - return self; -} - -/***/ }), -/* 16 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutPropertiesLoose; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return _objectSpread2; }); @@ -455,20 +441,21 @@ function _createForOfIteratorHelperLoose(o, allowArrayLike) { /***/ }), -/* 17 */ +/* 16 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _getPrototypeOf; }); -function _getPrototypeOf(o) { - _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { - return o.__proto__ || Object.getPrototypeOf(o); - }; - return _getPrototypeOf(o); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _assertThisInitialized; }); +function _assertThisInitialized(self) { + if (self === void 0) { + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + } + + return self; } /***/ }), -/* 18 */ +/* 17 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -504,13 +491,44 @@ function _toConsumableArray(arr) { } /***/ }), -/* 19 */ +/* 18 */ /***/ (function(module, exports) { (function() { module.exports = this["wp"]["keycodes"]; }()); +/***/ }), +/* 19 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _getPrototypeOf; }); +function _getPrototypeOf(o) { + _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }; + return _getPrototypeOf(o); +} + /***/ }), /* 20 */ +/***/ (function(module, exports) { + +(function() { module.exports = this["regeneratorRuntime"]; }()); + +/***/ }), +/* 21 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _classCallCheck; }); +function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError("Cannot call a class as a function"); + } +} + +/***/ }), +/* 22 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -532,19 +550,7 @@ function _createClass(Constructor, protoProps, staticProps) { } /***/ }), -/* 21 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _classCallCheck; }); -function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } -} - -/***/ }), -/* 22 */ +/* 23 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -579,13 +585,13 @@ function _inherits(subClass, superClass) { } /***/ }), -/* 23 */ +/* 24 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _possibleConstructorReturn; }); /* harmony import */ var _helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(40); -/* harmony import */ var _assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(15); +/* harmony import */ var _assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(16); function _possibleConstructorReturn(self, call) { @@ -596,12 +602,6 @@ function _possibleConstructorReturn(self, call) { return Object(_assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(self); } -/***/ }), -/* 24 */ -/***/ (function(module, exports) { - -(function() { module.exports = this["regeneratorRuntime"]; }()); - /***/ }), /* 25 */ /***/ (function(module, exports) { @@ -639,7 +639,7 @@ function _arrayLikeToArray(arr, len) { if (false) { var throwOnDirectAccess, ReactIs; } else { // By explicitly using `prop-types` you are opting into new production behavior. // http://fb.me/prop-types-in-prod - module.exports = __webpack_require__(143)(); + module.exports = __webpack_require__(142)(); } @@ -681,13 +681,13 @@ function _unsupportedIterableToArray(o, minLen) { /***/ }), /* 34 */, -/* 35 */ +/* 35 */, +/* 36 */ /***/ (function(module, exports) { (function() { module.exports = this["wp"]["deprecated"]; }()); /***/ }), -/* 36 */, /* 37 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -741,6 +741,12 @@ function _typeof(obj) { /***/ }), /* 41 */ +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["blob"]; }()); + +/***/ }), +/* 42 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -1021,7 +1027,7 @@ function isShallowEqual( a, b, fromIndex ) { /***/ }), -/* 42 */ +/* 43 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -1041,43 +1047,9 @@ function _objectWithoutPropertiesLoose(source, excluded) { return target; } -/***/ }), -/* 43 */ -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["blob"]; }()); - /***/ }), /* 44 */, -/* 45 */, -/* 46 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return useLiveRef; }); -/* 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 _useIsomorphicEffect_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(59); - - - -/** - * A `React.Ref` that keeps track of the passed `value`. - */ - -function useLiveRef(value) { - var ref = Object(react__WEBPACK_IMPORTED_MODULE_0__["useRef"])(value); - Object(_useIsomorphicEffect_js__WEBPACK_IMPORTED_MODULE_1__[/* useIsomorphicEffect */ "a"])(function () { - ref.current = value; - }); - return ref; -} - - - - -/***/ }), -/* 47 */ +/* 45 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -1119,9 +1091,43 @@ function _asyncToGenerator(fn) { } /***/ }), +/* 46 */ +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["a11y"]; }()); + +/***/ }), +/* 47 */, /* 48 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return useLiveRef; }); +/* 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 _useIsomorphicEffect_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(59); + + + +/** + * A `React.Ref` that keeps track of the passed `value`. + */ + +function useLiveRef(value) { + var ref = Object(react__WEBPACK_IMPORTED_MODULE_0__["useRef"])(value); + Object(_useIsomorphicEffect_js__WEBPACK_IMPORTED_MODULE_1__[/* useIsomorphicEffect */ "a"])(function () { + ref.current = value; + }); + return ref; +} + + + + +/***/ }), +/* 49 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getDocument; }); /** @@ -1135,7 +1141,7 @@ function getDocument(element) { /***/ }), -/* 49 */ +/* 50 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -1466,7 +1472,7 @@ function createHook(options) { /***/ }), -/* 50 */ +/* 51 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -1608,7 +1614,7 @@ function createComponent(_ref) { /***/ }), -/* 51 */ +/* 52 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -1619,7 +1625,7 @@ function createComponent(_ref) { /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return getCurrentId; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return reverse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return useCompositeState; }); -/* harmony import */ var _rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16); +/* harmony import */ var _rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(13); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var reakit_utils_useIsomorphicEffect__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(59); @@ -2460,12 +2466,6 @@ useCompositeState.__keys = keys; -/***/ }), -/* 52 */ -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["a11y"]; }()); - /***/ }), /* 53 */ /***/ (function(module, exports) { @@ -2653,7 +2653,7 @@ function shallowEqual(objA, objB) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getActiveElement; }); -/* harmony import */ var _getDocument_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(48); +/* harmony import */ var _getDocument_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(49); /** @@ -4223,9 +4223,9 @@ else {} "use strict"; /* unused harmony export Box */ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return useBox; }); -/* harmony import */ var _rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16); -/* harmony import */ var reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(50); -/* harmony import */ var reakit_system_createHook__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(49); +/* harmony import */ var _rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15); +/* harmony import */ var reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(51); +/* harmony import */ var reakit_system_createHook__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(50); /* harmony import */ var reakit_utils_shallowEqual__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(56); @@ -4708,16 +4708,16 @@ function isPortalEvent(event) { "use strict"; /* unused harmony export Tabbable */ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return useTabbable; }); -/* harmony import */ var _rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16); -/* harmony import */ var reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(50); -/* harmony import */ var reakit_system_createHook__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(49); +/* harmony import */ var _rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15); +/* harmony import */ var reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(51); +/* harmony import */ var reakit_system_createHook__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(50); /* harmony import */ var _Box_Box_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(67); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(13); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var reakit_utils_useForkRef__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(63); /* harmony import */ var reakit_utils_isButton__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(71); /* harmony import */ var reakit_warning__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(81); -/* harmony import */ var reakit_utils_useLiveRef__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(46); +/* harmony import */ var reakit_utils_useLiveRef__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(48); /* 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__(70); /* harmony import */ var reakit_utils_isPortalEvent__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(73); @@ -5162,20 +5162,21 @@ function createOnKeyDown(_temp) { /* 84 */, /* 85 */, /* 86 */, -/* 87 */ +/* 87 */, +/* 88 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* unused harmony export Clickable */ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return useClickable; }); -/* harmony import */ var _rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16); -/* harmony import */ var reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(50); -/* harmony import */ var reakit_system_createHook__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(49); +/* harmony import */ var _rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15); +/* harmony import */ var reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(51); +/* harmony import */ var reakit_system_createHook__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(50); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(13); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var reakit_utils_isButton__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(71); /* harmony import */ var reakit_warning__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(81); -/* harmony import */ var reakit_utils_useLiveRef__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(46); +/* harmony import */ var reakit_utils_useLiveRef__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(48); /* harmony import */ var reakit_utils_isSelfTarget__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(54); /* harmony import */ var _Tabbable_Tabbable_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(74); @@ -5283,13 +5284,7 @@ var Clickable = Object(reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1_ /***/ }), -/* 88 */, -/* 89 */ -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["viewport"]; }()); - -/***/ }), +/* 89 */, /* 90 */ /***/ (function(module, exports) { @@ -5297,18 +5292,24 @@ var Clickable = Object(reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1_ /***/ }), /* 91 */, -/* 92 */, +/* 92 */ +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["notices"]; }()); + +/***/ }), /* 93 */, /* 94 */, -/* 95 */ +/* 95 */, +/* 96 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* unused harmony export unstable_Id */ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return unstable_useId; }); -/* harmony import */ var _rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16); -/* harmony import */ var reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(50); -/* harmony import */ var reakit_system_createHook__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(49); +/* harmony import */ var _rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15); +/* harmony import */ var reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(51); +/* harmony import */ var reakit_system_createHook__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(50); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(13); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var _IdProvider_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(68); @@ -5371,12 +5372,12 @@ var unstable_Id = Object(reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_ /***/ }), -/* 96 */ +/* 97 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return fireEvent; }); -/* harmony import */ var _createEvent_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(125); +/* harmony import */ var _createEvent_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(126); @@ -5400,7 +5401,7 @@ function fireEvent(element, type, eventInit) { /***/ }), -/* 97 */ +/* 98 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -5432,7 +5433,7 @@ function isTextField(element) { /***/ }), -/* 98 */ +/* 99 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -5445,22 +5446,21 @@ function setTextFieldValue(element, value) { /***/ }), -/* 99 */ +/* 100 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; exports.__esModule = true; -var TextareaAutosize_1 = __webpack_require__(177); +var TextareaAutosize_1 = __webpack_require__(180); exports["default"] = TextareaAutosize_1["default"]; /***/ }), -/* 100 */, /* 101 */ /***/ (function(module, exports) { -(function() { module.exports = this["wp"]["notices"]; }()); +(function() { module.exports = this["wp"]["viewport"]; }()); /***/ }), /* 102 */ @@ -5663,7 +5663,7 @@ process.umask = function() { return 0; }; __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ fireKeyboardEvent; }); // EXTERNAL MODULE: ./node_modules/reakit-utils/es/getDocument.js -var getDocument = __webpack_require__(48); +var getDocument = __webpack_require__(49); // CONCATENATED MODULE: ./node_modules/reakit-utils/es/getDefaultView.js @@ -5771,64 +5771,9 @@ function warning(condition) { /* 110 */, /* 111 */, /* 112 */, -/* 113 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -function flattenIntoMap( map, effects ) { - var i; - if ( Array.isArray( effects ) ) { - for ( i = 0; i < effects.length; i++ ) { - flattenIntoMap( map, effects[ i ] ); - } - } else { - for ( i in effects ) { - map[ i ] = ( map[ i ] || [] ).concat( effects[ i ] ); - } - } -} - -function refx( effects ) { - var map = {}, - middleware; - - flattenIntoMap( map, effects ); - - middleware = function( store ) { - return function( next ) { - return function( action ) { - var handlers = map[ action.type ], - result = next( action ), - i, handlerAction; - - if ( handlers ) { - for ( i = 0; i < handlers.length; i++ ) { - handlerAction = handlers[ i ]( action, store ); - if ( handlerAction ) { - store.dispatch( handlerAction ); - } - } - } - - return result; - }; - }; - }; - - middleware.effects = map; - - return middleware; -} - -module.exports = refx; - - -/***/ }), +/* 113 */, /* 114 */, -/* 115 */, -/* 116 */ +/* 115 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -5838,12 +5783,12 @@ Object.defineProperty(exports, '__esModule', { value: true }); function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } -var _extends = _interopDefault(__webpack_require__(174)); -var _objectWithoutPropertiesLoose = _interopDefault(__webpack_require__(175)); +var _extends = _interopDefault(__webpack_require__(177)); +var _objectWithoutPropertiesLoose = _interopDefault(__webpack_require__(178)); var React = __webpack_require__(13); var React__default = _interopDefault(React); -var _inheritsLoose = _interopDefault(__webpack_require__(149)); -var _assertThisInitialized = _interopDefault(__webpack_require__(176)); +var _inheritsLoose = _interopDefault(__webpack_require__(148)); +var _assertThisInitialized = _interopDefault(__webpack_require__(179)); var is = { arr: Array.isArray, @@ -8158,6 +8103,7 @@ exports.useSprings = useSprings; /***/ }), +/* 116 */, /* 117 */, /* 118 */, /* 119 */, @@ -8169,24 +8115,24 @@ exports.useSprings = useSprings; "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Composite; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return useComposite; }); -/* harmony import */ var _rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16); -/* harmony import */ var reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(50); -/* harmony import */ var reakit_system_createHook__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(49); +/* harmony import */ var _rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15); +/* harmony import */ var reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(51); +/* harmony import */ var reakit_system_createHook__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(50); /* harmony import */ var _Box_Box_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(67); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(13); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var reakit_utils_useForkRef__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(63); /* harmony import */ var reakit_warning__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(81); -/* harmony import */ var reakit_utils_useLiveRef__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(46); +/* harmony import */ var reakit_utils_useLiveRef__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(48); /* harmony import */ var reakit_utils_isSelfTarget__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(54); /* 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__(74); /* harmony import */ var reakit_system_useCreateElement__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(79); /* harmony import */ var reakit_utils_createOnKeyDown__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(82); -/* harmony import */ var reakit_utils_getDocument__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(48); -/* harmony import */ var reakit_utils_fireEvent__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(96); +/* harmony import */ var reakit_utils_getDocument__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(49); +/* harmony import */ var reakit_utils_fireEvent__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(97); /* harmony import */ var reakit_utils_fireKeyboardEvent__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(104); -/* harmony import */ var _CompositeState_3a25dcee_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(51); +/* harmony import */ var _CompositeState_3a25dcee_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(52); @@ -8529,25 +8475,25 @@ var Composite = Object(reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1_ "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CompositeItem; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return useCompositeItem; }); -/* harmony import */ var _rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16); -/* harmony import */ var reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(50); -/* harmony import */ var reakit_system_createHook__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(49); +/* harmony import */ var _rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15); +/* harmony import */ var reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(51); +/* harmony import */ var reakit_system_createHook__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(50); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(13); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var reakit_utils_useForkRef__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(63); /* harmony import */ var reakit_warning__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(81); -/* harmony import */ var reakit_utils_useLiveRef__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(46); +/* harmony import */ var reakit_utils_useLiveRef__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(48); /* harmony import */ var reakit_utils_isSelfTarget__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(54); /* harmony import */ var reakit_utils_hasFocusWithin__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(70); /* harmony import */ var reakit_utils_isPortalEvent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(73); /* harmony import */ var reakit_utils_tabbable__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(72); -/* harmony import */ var _Clickable_Clickable_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(87); +/* harmony import */ var _Clickable_Clickable_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(88); /* harmony import */ var reakit_utils_createOnKeyDown__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(82); -/* harmony import */ var reakit_utils_getDocument__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(48); -/* harmony import */ var _CompositeState_3a25dcee_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(51); -/* harmony import */ var _Id_Id_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(95); -/* harmony import */ var reakit_utils_isTextField__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(97); -/* harmony import */ var _setTextFieldValue_78ab5d56_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(98); +/* harmony import */ var reakit_utils_getDocument__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(49); +/* harmony import */ var _CompositeState_3a25dcee_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(52); +/* harmony import */ var _Id_Id_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(96); +/* harmony import */ var reakit_utils_isTextField__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(98); +/* harmony import */ var _setTextFieldValue_78ab5d56_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(99); @@ -8887,12 +8833,13 @@ var CompositeItem = Object(reakit_system_createComponent__WEBPACK_IMPORTED_MODUL /***/ }), /* 124 */, -/* 125 */ +/* 125 */, +/* 126 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return createEvent; }); -/* harmony import */ var _getDocument_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(48); +/* harmony import */ var _getDocument_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(49); /** @@ -8926,31 +8873,31 @@ function createEvent(element, type, eventInit) { /***/ }), -/* 126 */ +/* 127 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -module.exports = __webpack_require__(182); +module.exports = __webpack_require__(184); /***/ }), -/* 127 */ +/* 128 */ /***/ (function(module, exports) { (function() { module.exports = this["wp"]["wordcount"]; }()); /***/ }), -/* 128 */, -/* 129 */ +/* 129 */, +/* 130 */ /***/ (function(module, exports) { (function() { module.exports = this["wp"]["shortcode"]; }()); /***/ }), -/* 130 */, /* 131 */, -/* 132 */ +/* 132 */, +/* 133 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -8962,7 +8909,7 @@ module.exports = __webpack_require__(182); /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(3); /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _use_display_block_controls__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(167); +/* harmony import */ var _use_display_block_controls__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(170); @@ -9034,7 +8981,6 @@ BlockControls.Slot = BlockControlsSlot; /***/ }), -/* 133 */, /* 134 */, /* 135 */, /* 136 */, @@ -9042,8 +8988,7 @@ BlockControls.Slot = BlockControlsSlot; /* 138 */, /* 139 */, /* 140 */, -/* 141 */, -/* 142 */ +/* 141 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -9061,9 +9006,8 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va /** * WordPress dependencies */ - // Disable reason: JSDoc linter doesn't seem to parse the union (`&`) correctly. -/** @typedef {{icon: JSX.Element, size?: number} & import('react').ComponentPropsWithoutRef<'SVG'>} IconProps */ +/** @typedef {{icon: JSX.Element, size?: number} & import('@wordpress/primitives').SVGProps} IconProps */ /** * Return an SVG icon. @@ -9091,7 +9035,7 @@ function Icon(_ref) { /***/ }), -/* 143 */ +/* 142 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -9104,7 +9048,7 @@ function Icon(_ref) { -var ReactPropTypesSecret = __webpack_require__(144); +var ReactPropTypesSecret = __webpack_require__(143); function emptyFunction() {} function emptyFunctionWithReset() {} @@ -9162,7 +9106,7 @@ module.exports = function() { /***/ }), -/* 144 */ +/* 143 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -9181,11 +9125,11 @@ module.exports = ReactPropTypesSecret; /***/ }), +/* 144 */, /* 145 */, /* 146 */, /* 147 */, -/* 148 */, -/* 149 */ +/* 148 */ /***/ (function(module, exports) { function _inheritsLoose(subClass, superClass) { @@ -9197,7 +9141,7 @@ function _inheritsLoose(subClass, superClass) { module.exports = _inheritsLoose; /***/ }), -/* 150 */ +/* 149 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -9214,19 +9158,100 @@ function _toArray(arr) { return Object(_arrayWithHoles__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(arr) || Object(_iterableToArray__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(arr) || Object(_unsupportedIterableToArray__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(arr) || Object(_nonIterableRest__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(); } +/***/ }), +/* 150 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +function flattenIntoMap( map, effects ) { + var i; + if ( Array.isArray( effects ) ) { + for ( i = 0; i < effects.length; i++ ) { + flattenIntoMap( map, effects[ i ] ); + } + } else { + for ( i in effects ) { + map[ i ] = ( map[ i ] || [] ).concat( effects[ i ] ); + } + } +} + +function refx( effects ) { + var map = {}, + middleware; + + flattenIntoMap( map, effects ); + + middleware = function( store ) { + return function( next ) { + return function( action ) { + var handlers = map[ action.type ], + result = next( action ), + i, handlerAction; + + if ( handlers ) { + for ( i = 0; i < handlers.length; i++ ) { + handlerAction = handlers[ i ]( action, store ); + if ( handlerAction ) { + store.dispatch( handlerAction ); + } + } + } + + return result; + }; + }; + }; + + middleware.effects = map; + + return middleware; +} + +module.exports = refx; + + /***/ }), /* 151 */, /* 152 */, /* 153 */, /* 154 */, /* 155 */, -/* 156 */ +/* 156 */, +/* 157 */ /***/ (function(module, exports) { (function() { module.exports = this["wp"]["tokenList"]; }()); /***/ }), -/* 157 */ +/* 158 */, +/* 159 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); + + +/** + * WordPress dependencies + */ + +var closeSmall = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["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" +})); +/* harmony default export */ __webpack_exports__["a"] = (closeSmall); + + +/***/ }), +/* 160 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -9250,7 +9275,7 @@ var close = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElemen /***/ }), -/* 158 */ +/* 161 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -9274,15 +9299,15 @@ var check = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElemen /***/ }), -/* 159 */, -/* 160 */, -/* 161 */, /* 162 */, /* 163 */, /* 164 */, /* 165 */, /* 166 */, -/* 167 */ +/* 167 */, +/* 168 */, +/* 169 */, +/* 170 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -9329,7 +9354,7 @@ function useDisplayBlockControls() { /***/ }), -/* 168 */ +/* 171 */ /***/ (function(module, exports) { if (typeof Object.create === 'function') { @@ -9362,21 +9387,21 @@ if (typeof Object.create === 'function') { /***/ }), -/* 169 */, -/* 170 */, -/* 171 */ +/* 172 */, +/* 173 */, +/* 174 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var _CSSTransition = _interopRequireDefault(__webpack_require__(304)); +var _CSSTransition = _interopRequireDefault(__webpack_require__(307)); -var _ReplaceTransition = _interopRequireDefault(__webpack_require__(309)); +var _ReplaceTransition = _interopRequireDefault(__webpack_require__(312)); -var _TransitionGroup = _interopRequireDefault(__webpack_require__(212)); +var _TransitionGroup = _interopRequireDefault(__webpack_require__(213)); -var _Transition = _interopRequireDefault(__webpack_require__(209)); +var _Transition = _interopRequireDefault(__webpack_require__(210)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -9388,9 +9413,9 @@ module.exports = { }; /***/ }), -/* 172 */, -/* 173 */, -/* 174 */ +/* 175 */, +/* 176 */, +/* 177 */ /***/ (function(module, exports) { function _extends() { @@ -9414,7 +9439,7 @@ function _extends() { module.exports = _extends; /***/ }), -/* 175 */ +/* 178 */ /***/ (function(module, exports) { function _objectWithoutPropertiesLoose(source, excluded) { @@ -9435,7 +9460,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { module.exports = _objectWithoutPropertiesLoose; /***/ }), -/* 176 */ +/* 179 */ /***/ (function(module, exports) { function _assertThisInitialized(self) { @@ -9449,7 +9474,7 @@ function _assertThisInitialized(self) { module.exports = _assertThisInitialized; /***/ }), -/* 177 */ +/* 180 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -9484,8 +9509,8 @@ var __rest = (this && this.__rest) || function (s, e) { exports.__esModule = true; var React = __webpack_require__(13); var PropTypes = __webpack_require__(28); -var autosize = __webpack_require__(178); -var _getLineHeight = __webpack_require__(179); +var autosize = __webpack_require__(181); +var _getLineHeight = __webpack_require__(182); var getLineHeight = _getLineHeight; var UPDATE = 'autosize:update'; var DESTROY = 'autosize:destroy'; @@ -9577,7 +9602,7 @@ exports["default"] = TextareaAutosize; /***/ }), -/* 178 */ +/* 181 */ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! @@ -9865,11 +9890,11 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ }); /***/ }), -/* 179 */ +/* 182 */ /***/ (function(module, exports, __webpack_require__) { // Load in dependencies -var computedStyle = __webpack_require__(180); +var computedStyle = __webpack_require__(183); /** * Calculate the `line-height` of a given node @@ -9968,7 +9993,7 @@ module.exports = lineHeight; /***/ }), -/* 180 */ +/* 183 */ /***/ (function(module, exports) { // This code has been refactored for 140 bytes @@ -10001,37 +10026,13 @@ module.exports = computedStyle; /***/ }), -/* 181 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); - - -/** - * WordPress dependencies - */ - -var closeSmall = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" -}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["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" -})); -/* harmony default export */ __webpack_exports__["a"] = (closeSmall); - - -/***/ }), -/* 182 */ +/* 184 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var util = __webpack_require__(183); +var util = __webpack_require__(185); function scrollIntoView(elem, container, config) { config = config || {}; @@ -10160,7 +10161,7 @@ function scrollIntoView(elem, container, config) { module.exports = scrollIntoView; /***/ }), -/* 183 */ +/* 185 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -10605,7 +10606,7 @@ module.exports = _extends({ }, domUtils); /***/ }), -/* 184 */ +/* 186 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -10629,8 +10630,6 @@ var link = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement /***/ }), -/* 185 */, -/* 186 */, /* 187 */, /* 188 */, /* 189 */, @@ -10651,7 +10650,8 @@ var link = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement /* 204 */, /* 205 */, /* 206 */, -/* 207 */ +/* 207 */, +/* 208 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -10675,7 +10675,7 @@ var blockDefault = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["creat /***/ }), -/* 208 */ +/* 209 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -10699,7 +10699,7 @@ var plus = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement /***/ }), -/* 209 */ +/* 210 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -10714,9 +10714,9 @@ var _react = _interopRequireDefault(__webpack_require__(13)); var _reactDom = _interopRequireDefault(__webpack_require__(109)); -var _reactLifecyclesCompat = __webpack_require__(210); +var _reactLifecyclesCompat = __webpack_require__(211); -var _PropTypes = __webpack_require__(211); +var _PropTypes = __webpack_require__(212); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -11163,7 +11163,7 @@ var _default = (0, _reactLifecyclesCompat.polyfill)(Transition); exports.default = _default; /***/ }), -/* 210 */ +/* 211 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -11330,7 +11330,7 @@ function polyfill(Component) { /***/ }), -/* 211 */ +/* 212 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -11349,7 +11349,7 @@ var classNamesShape = false ? undefined : null; exports.classNamesShape = classNamesShape; /***/ }), -/* 212 */ +/* 213 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -11362,9 +11362,9 @@ var _propTypes = _interopRequireDefault(__webpack_require__(28)); var _react = _interopRequireDefault(__webpack_require__(13)); -var _reactLifecyclesCompat = __webpack_require__(210); +var _reactLifecyclesCompat = __webpack_require__(211); -var _ChildMapping = __webpack_require__(310); +var _ChildMapping = __webpack_require__(313); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -11506,7 +11506,7 @@ exports.default = _default; module.exports = exports["default"]; /***/ }), -/* 213 */ +/* 214 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -11530,7 +11530,7 @@ var chevronRight = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["creat /***/ }), -/* 214 */ +/* 215 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -11554,7 +11554,7 @@ var chevronLeft = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["create /***/ }), -/* 215 */ +/* 216 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -11578,7 +11578,7 @@ var keyboardReturn = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["cre /***/ }), -/* 216 */ +/* 217 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -11602,7 +11602,6 @@ var upload = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEleme /***/ }), -/* 217 */, /* 218 */, /* 219 */, /* 220 */, @@ -11659,8 +11658,44 @@ var upload = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEleme /* 271 */, /* 272 */, /* 273 */, -/* 274 */, -/* 275 */ +/* 274 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; + +// EXTERNAL MODULE: external {"this":["wp","element"]} +var external_this_wp_element_ = __webpack_require__(0); + +// EXTERNAL MODULE: external {"this":["wp","primitives"]} +var external_this_wp_primitives_ = __webpack_require__(7); + +// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/pencil.js + + +/** + * WordPress dependencies + */ + +var pencil = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { + d: "M20.1 5.1L16.9 2 6.2 12.7l-1.3 4.4 4.5-1.3L20.1 5.1zM4 20.8h8v-1.5H4v1.5z" +})); +/* harmony default export */ var library_pencil = (pencil); + +// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/edit.js +/** + * Internal dependencies + */ + +/* harmony default export */ var edit = __webpack_exports__["a"] = (library_pencil); + + +/***/ }), +/* 275 */, +/* 276 */, +/* 277 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -11690,7 +11725,7 @@ function multi(_ref) { exports.default = multi; /***/ }), -/* 276 */ +/* 278 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -11698,13 +11733,13 @@ exports.default = multi; /* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(0); /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var react_transition_group__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(171); +/* harmony import */ var react_transition_group__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(174); /* harmony import */ var react_transition_group__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_transition_group__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2); /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var _wordpress_warning__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(90); /* harmony import */ var _wordpress_warning__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_warning__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _block_controls__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(132); +/* harmony import */ var _block_controls__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(133); @@ -11824,7 +11859,7 @@ function ExpandedBlockControlsHandler(_ref2) { /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(102))) /***/ }), -/* 277 */ +/* 279 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -11840,7 +11875,7 @@ exports.characterDiff = void 0; /*istanbul ignore end*/ var /*istanbul ignore start*/ -_base = _interopRequireDefault(__webpack_require__(314)) +_base = _interopRequireDefault(__webpack_require__(317)) /*istanbul ignore end*/ ; @@ -11867,7 +11902,7 @@ function diffChars(oldStr, newStr, options) { /***/ }), -/* 278 */ +/* 280 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -12031,7 +12066,7 @@ function toPx(length) { /***/ }), -/* 279 */ +/* 281 */ /***/ (function(module, exports) { var traverse = module.exports = function (obj) { @@ -12351,8 +12386,6 @@ var hasOwnProperty = Object.hasOwnProperty || function (obj, key) { /***/ }), -/* 280 */, -/* 281 */, /* 282 */, /* 283 */, /* 284 */, @@ -12371,7 +12404,10 @@ var hasOwnProperty = Object.hasOwnProperty || function (obj, key) { /* 297 */, /* 298 */, /* 299 */, -/* 300 */ +/* 300 */, +/* 301 */, +/* 302 */, +/* 303 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -12395,7 +12431,7 @@ var alignLeft = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEl /***/ }), -/* 301 */ +/* 304 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -12419,7 +12455,7 @@ var alignCenter = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["create /***/ }), -/* 302 */ +/* 305 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -12443,7 +12479,7 @@ var alignRight = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createE /***/ }), -/* 303 */ +/* 306 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -12467,7 +12503,7 @@ var search = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEleme /***/ }), -/* 304 */ +/* 307 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -12478,15 +12514,15 @@ exports.default = void 0; var PropTypes = _interopRequireWildcard(__webpack_require__(28)); -var _addClass = _interopRequireDefault(__webpack_require__(305)); +var _addClass = _interopRequireDefault(__webpack_require__(308)); -var _removeClass = _interopRequireDefault(__webpack_require__(308)); +var _removeClass = _interopRequireDefault(__webpack_require__(311)); var _react = _interopRequireDefault(__webpack_require__(13)); -var _Transition = _interopRequireDefault(__webpack_require__(209)); +var _Transition = _interopRequireDefault(__webpack_require__(210)); -var _PropTypes = __webpack_require__(211); +var _PropTypes = __webpack_require__(212); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -12730,18 +12766,18 @@ exports.default = _default; module.exports = exports["default"]; /***/ }), -/* 305 */ +/* 308 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var _interopRequireDefault = __webpack_require__(306); +var _interopRequireDefault = __webpack_require__(309); exports.__esModule = true; exports.default = addClass; -var _hasClass = _interopRequireDefault(__webpack_require__(307)); +var _hasClass = _interopRequireDefault(__webpack_require__(310)); function addClass(element, className) { if (element.classList) element.classList.add(className);else if (!(0, _hasClass.default)(element, className)) if (typeof element.className === 'string') element.className = element.className + ' ' + className;else element.setAttribute('class', (element.className && element.className.baseVal || '') + ' ' + className); @@ -12750,7 +12786,7 @@ function addClass(element, className) { module.exports = exports["default"]; /***/ }), -/* 306 */ +/* 309 */ /***/ (function(module, exports) { function _interopRequireDefault(obj) { @@ -12762,7 +12798,7 @@ function _interopRequireDefault(obj) { module.exports = _interopRequireDefault; /***/ }), -/* 307 */ +/* 310 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -12778,7 +12814,7 @@ function hasClass(element, className) { module.exports = exports["default"]; /***/ }), -/* 308 */ +/* 311 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -12793,7 +12829,7 @@ module.exports = function removeClass(element, className) { }; /***/ }), -/* 309 */ +/* 312 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -12808,7 +12844,7 @@ var _react = _interopRequireDefault(__webpack_require__(13)); var _reactDom = __webpack_require__(109); -var _TransitionGroup = _interopRequireDefault(__webpack_require__(212)); +var _TransitionGroup = _interopRequireDefault(__webpack_require__(213)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -12943,7 +12979,7 @@ exports.default = _default; module.exports = exports["default"]; /***/ }), -/* 310 */ +/* 313 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -13099,7 +13135,7 @@ function getNextChildMapping(nextProps, prevChildMapping, onExited) { } /***/ }), -/* 311 */ +/* 314 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -13123,7 +13159,7 @@ var chevronUp = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEl /***/ }), -/* 312 */ +/* 315 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -13147,7 +13183,7 @@ var chevronDown = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["create /***/ }), -/* 313 */ +/* 316 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -13171,7 +13207,7 @@ var moreVertical = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["creat /***/ }), -/* 314 */ +/* 317 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -13481,7 +13517,7 @@ function clonePath(path) { /***/ }), -/* 315 */ +/* 318 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -13505,10 +13541,30 @@ var layout = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEleme /***/ }), -/* 316 */, -/* 317 */, -/* 318 */, -/* 319 */, +/* 319 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); + + +/** + * WordPress dependencies + */ + +var media = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { + d: "M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h13.4c.4 0 .8.4.8.8v13.4zM10 15l5-3-5-3v6z" +})); +/* harmony default export */ __webpack_exports__["a"] = (media); + + +/***/ }), /* 320 */, /* 321 */, /* 322 */, @@ -13640,7 +13696,11 @@ var layout = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEleme /* 448 */, /* 449 */, /* 450 */, -/* 451 */ +/* 451 */, +/* 452 */, +/* 453 */, +/* 454 */, +/* 455 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -13694,10 +13754,14 @@ __webpack_require__.d(__webpack_exports__, "__experimentalColorGradientControl", __webpack_require__.d(__webpack_exports__, "__experimentalPanelColorGradientSettings", function() { return /* reexport */ panel_color_gradient_settings; }); __webpack_require__.d(__webpack_exports__, "__experimentalImageSizeControl", function() { return /* reexport */ ImageSizeControl; }); __webpack_require__.d(__webpack_exports__, "InnerBlocks", function() { return /* reexport */ inner_blocks; }); +__webpack_require__.d(__webpack_exports__, "__experimentalUseInnerBlocksProps", function() { return /* reexport */ useInnerBlocksProps; }); __webpack_require__.d(__webpack_exports__, "InspectorAdvancedControls", function() { return /* reexport */ inspector_advanced_controls; }); __webpack_require__.d(__webpack_exports__, "InspectorControls", function() { return /* reexport */ inspector_controls; }); __webpack_require__.d(__webpack_exports__, "__experimentalLinkControl", function() { return /* reexport */ link_control; }); -__webpack_require__.d(__webpack_exports__, "__experimentalLineHeightControl", function() { return /* reexport */ LineHeightControl; }); +__webpack_require__.d(__webpack_exports__, "__experimentalLinkControlSearchInput", function() { return /* reexport */ search_input; }); +__webpack_require__.d(__webpack_exports__, "__experimentalLinkControlSearchResults", function() { return /* reexport */ LinkControlSearchResults; }); +__webpack_require__.d(__webpack_exports__, "__experimentalLinkControlSearchItem", function() { return /* reexport */ search_item; }); +__webpack_require__.d(__webpack_exports__, "LineHeightControl", function() { return /* reexport */ LineHeightControl; }); __webpack_require__.d(__webpack_exports__, "MediaReplaceFlow", function() { return /* reexport */ media_replace_flow; }); __webpack_require__.d(__webpack_exports__, "MediaPlaceholder", function() { return /* reexport */ media_placeholder; }); __webpack_require__.d(__webpack_exports__, "MediaUpload", function() { return /* reexport */ media_upload; }); @@ -13723,10 +13787,10 @@ __webpack_require__.d(__webpack_exports__, "__experimentalUseResizeCanvas", func __webpack_require__.d(__webpack_exports__, "BlockInspector", function() { return /* reexport */ block_inspector; }); __webpack_require__.d(__webpack_exports__, "BlockList", function() { return /* reexport */ block_list; }); __webpack_require__.d(__webpack_exports__, "__experimentalBlock", function() { return /* reexport */ Block; }); -__webpack_require__.d(__webpack_exports__, "__experimentalUseBlockWrapperProps", function() { return /* reexport */ useBlockWrapperProps; }); +__webpack_require__.d(__webpack_exports__, "useBlockProps", function() { return /* reexport */ useBlockProps; }); __webpack_require__.d(__webpack_exports__, "BlockMover", function() { return /* reexport */ block_mover; }); __webpack_require__.d(__webpack_exports__, "BlockPreview", function() { return /* reexport */ block_preview; }); -__webpack_require__.d(__webpack_exports__, "BlockSelectionClearer", function() { return /* reexport */ block_selection_clearer; }); +__webpack_require__.d(__webpack_exports__, "BlockSelectionClearer", function() { return /* reexport */ BlockSelectionClearer; }); __webpack_require__.d(__webpack_exports__, "BlockSettingsMenu", function() { return /* reexport */ block_settings_menu; }); __webpack_require__.d(__webpack_exports__, "BlockSettingsMenuControls", function() { return /* reexport */ block_settings_menu_controls; }); __webpack_require__.d(__webpack_exports__, "BlockTitle", function() { return /* reexport */ BlockTitle; }); @@ -13891,6 +13955,7 @@ __webpack_require__.d(selectors_namespaceObject, "hasBlockMovingClientId", funct __webpack_require__.d(selectors_namespaceObject, "didAutomaticChange", function() { return selectors_didAutomaticChange; }); __webpack_require__.d(selectors_namespaceObject, "isBlockHighlighted", function() { return isBlockHighlighted; }); __webpack_require__.d(selectors_namespaceObject, "areInnerBlocksControlled", function() { return areInnerBlocksControlled; }); +__webpack_require__.d(selectors_namespaceObject, "__experimentalGetActiveBlockIdByBlockNames", function() { return __experimentalGetActiveBlockIdByBlockNames; }); // EXTERNAL MODULE: external {"this":["wp","blocks"]} var external_this_wp_blocks_ = __webpack_require__(11); @@ -13899,13 +13964,13 @@ var external_this_wp_blocks_ = __webpack_require__(11); var external_this_wp_richText_ = __webpack_require__(25); // EXTERNAL MODULE: external {"this":["wp","viewport"]} -var external_this_wp_viewport_ = __webpack_require__(89); +var external_this_wp_viewport_ = __webpack_require__(101); // EXTERNAL MODULE: external {"this":["wp","keyboardShortcuts"]} var external_this_wp_keyboardShortcuts_ = __webpack_require__(53); // EXTERNAL MODULE: external {"this":["wp","notices"]} -var external_this_wp_notices_ = __webpack_require__(101); +var external_this_wp_notices_ = __webpack_require__(92); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js var esm_extends = __webpack_require__(8); @@ -13933,7 +13998,7 @@ var external_this_wp_hooks_ = __webpack_require__(33); var external_this_wp_data_ = __webpack_require__(4); // EXTERNAL MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-controls/index.js -var block_controls = __webpack_require__(132); +var block_controls = __webpack_require__(133); // EXTERNAL MODULE: external {"this":["wp","i18n"]} var external_this_wp_i18n_ = __webpack_require__(1); @@ -14241,8 +14306,10 @@ var withToolbarControls = Object(external_this_wp_compose_["createHigherOrderCom var updateAlignment = function updateAlignment(nextAlign) { if (!nextAlign) { + var _blockType$attributes, _blockType$attributes2; + var blockType = Object(external_this_wp_blocks_["getBlockType"])(props.name); - var blockDefaultAlign = Object(external_this_lodash_["get"])(blockType, ['attributes', 'align', 'default']); + var blockDefaultAlign = (_blockType$attributes = blockType.attributes) === null || _blockType$attributes === void 0 ? void 0 : (_blockType$attributes2 = _blockType$attributes.align) === null || _blockType$attributes2 === void 0 ? void 0 : _blockType$attributes2.default; if (blockDefaultAlign) { nextAlign = ''; @@ -14362,6 +14429,10 @@ function InspectorAdvancedControls(_ref) { InspectorAdvancedControls.slotName = inspector_advanced_controls_name; InspectorAdvancedControls.Slot = Slot; +/** + * @see https://github.com/WordPress/gutenberg/blob/master/packages/block-editor/src/components/inspector-controls-advanced/README.md + */ + /* harmony default export */ var inspector_advanced_controls = (InspectorAdvancedControls); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/anchor.js @@ -14639,7 +14710,7 @@ Object(external_this_wp_hooks_["addFilter"])('blocks.getSaveContent.extraProps', Object(external_this_wp_hooks_["addFilter"])('blocks.getBlockAttributes', 'core/custom-class-name/addParsedDifference', addParsedDifference); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules -var toConsumableArray = __webpack_require__(18); +var toConsumableArray = __webpack_require__(17); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/generated-class-name.js @@ -14687,7 +14758,7 @@ Object(external_this_wp_hooks_["addFilter"])('blocks.getSaveContent.extraProps', var slicedToArray = __webpack_require__(12); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toArray.js -var toArray = __webpack_require__(150); +var toArray = __webpack_require__(149); // EXTERNAL MODULE: ./node_modules/tinycolor2/tinycolor.js var tinycolor = __webpack_require__(66); @@ -15301,7 +15372,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__(52); +var external_this_wp_a11y_ = __webpack_require__(46); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/contrast-checker/index.js @@ -15375,7 +15446,7 @@ function ContrastChecker(_ref2) { /* harmony default export */ var contrast_checker = (ContrastChecker); // EXTERNAL MODULE: ./node_modules/@wordpress/block-editor/build-module/components/use-display-block-controls/index.js -var use_display_block_controls = __webpack_require__(167); +var use_display_block_controls = __webpack_require__(170); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inspector-controls/index.js @@ -15621,7 +15692,7 @@ function color_objectSpread(target) { for (var i = 1; i < arguments.length; i++) -var COLOR_SUPPORT_KEY = '__experimentalColor'; +var COLOR_SUPPORT_KEY = 'color'; var color_EMPTY_ARRAY = []; var color_hasColorSupport = function hasColorSupport(blockType) { @@ -15630,7 +15701,7 @@ var color_hasColorSupport = function hasColorSupport(blockType) { } var colorSupport = Object(external_this_wp_blocks_["getBlockSupport"])(blockType, COLOR_SUPPORT_KEY); - return colorSupport && (colorSupport.linkColor === true || colorSupport.gradient === true || colorSupport.background !== false || colorSupport.text !== false); + return colorSupport && (colorSupport.link === true || colorSupport.gradient === true || colorSupport.background !== false || colorSupport.text !== false); }; var color_hasLinkColorSupport = function hasLinkColorSupport(blockType) { @@ -15639,7 +15710,7 @@ var color_hasLinkColorSupport = function hasLinkColorSupport(blockType) { } var colorSupport = Object(external_this_wp_blocks_["getBlockSupport"])(blockType, COLOR_SUPPORT_KEY); - return Object(external_this_lodash_["isObject"])(colorSupport) && !!colorSupport.linkColor; + return Object(external_this_lodash_["isObject"])(colorSupport) && !!colorSupport.link; }; var color_hasGradientSupport = function hasGradientSupport(blockType) { @@ -15958,7 +16029,7 @@ Object(external_this_wp_hooks_["addFilter"])('blocks.registerBlockType', 'core/c Object(external_this_wp_hooks_["addFilter"])('editor.BlockListBlock', 'core/color/with-color-palette-styles', withColorPaletteStyles); // EXTERNAL MODULE: external {"this":["wp","keycodes"]} -var external_this_wp_keycodes_ = __webpack_require__(19); +var external_this_wp_keycodes_ = __webpack_require__(18); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/line-height-control/utils.js var BASE_DEFAULT_VALUE = 1.5; @@ -16086,7 +16157,7 @@ function line_height_objectSpread(target) { for (var i = 1; i < arguments.length -var LINE_HEIGHT_SUPPORT_KEY = '__experimentalLineHeight'; +var LINE_HEIGHT_SUPPORT_KEY = 'lineHeight'; /** * Inspector control panel containing the line height related configuration * @@ -16138,7 +16209,7 @@ function useIsLineHeightDisabled() { } // EXTERNAL MODULE: external {"this":["wp","tokenList"]} -var external_this_wp_tokenList_ = __webpack_require__(156); +var external_this_wp_tokenList_ = __webpack_require__(157); var external_this_wp_tokenList_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_tokenList_); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/font-sizes/utils.js @@ -16259,7 +16330,7 @@ function font_size_objectSpread(target) { for (var i = 1; i < arguments.length; -var FONT_SIZE_SUPPORT_KEY = '__experimentalFontSize'; +var FONT_SIZE_SUPPORT_KEY = 'fontSize'; /** * Filters registered block settings, extending attributes to include * `fontSize` and `fontWeight` attributes. @@ -16388,7 +16459,7 @@ function useIsFontSizeDisabled() { blockName = _ref.name; var fontSizes = useEditorFeature('typography.fontSizes'); - var hasFontSizes = fontSizes.length; + var hasFontSizes = !!(fontSizes === null || fontSizes === void 0 ? void 0 : fontSizes.length); return !Object(external_this_wp_blocks_["hasBlockSupport"])(blockName, FONT_SIZE_SUPPORT_KEY) || !hasFontSizes; } /** @@ -16549,7 +16620,12 @@ function padding_objectSpread(target) { for (var i = 1; i < arguments.length; i+ -var PADDING_SUPPORT_KEY = '__experimentalPadding'; +var SPACING_SUPPORT_KEY = 'spacing'; + +var padding_hasPaddingSupport = function hasPaddingSupport(blockName) { + var spacingSupport = Object(external_this_wp_blocks_["getBlockSupport"])(blockName, SPACING_SUPPORT_KEY); + return spacingSupport && spacingSupport.padding !== false; +}; /** * Inspector control panel containing the line height related configuration * @@ -16558,6 +16634,7 @@ var PADDING_SUPPORT_KEY = '__experimentalPadding'; * @return {WPElement} Line height edit element. */ + function PaddingEdit(props) { var _style$spacing; @@ -16566,7 +16643,7 @@ function PaddingEdit(props) { setAttributes = props.setAttributes; var units = useCustomUnits(); - if (!Object(external_this_wp_blocks_["hasBlockSupport"])(blockName, PADDING_SUPPORT_KEY)) { + if (!padding_hasPaddingSupport(blockName)) { return null; } @@ -16663,7 +16740,7 @@ function style_objectSpread(target) { for (var i = 1; i < arguments.length; i++) -var styleSupportKeys = [].concat(Object(toConsumableArray["a" /* default */])(TYPOGRAPHY_SUPPORT_KEYS), [COLOR_SUPPORT_KEY, PADDING_SUPPORT_KEY]); +var styleSupportKeys = [].concat(Object(toConsumableArray["a" /* default */])(TYPOGRAPHY_SUPPORT_KEYS), [COLOR_SUPPORT_KEY, SPACING_SUPPORT_KEY]); var style_hasStyleSupport = function hasStyleSupport(blockType) { return styleSupportKeys.some(function (key) { @@ -16788,14 +16865,14 @@ function style_addEditProps(settings) { var withBlockControls = Object(external_this_wp_compose_["createHigherOrderComponent"])(function (BlockEdit) { return function (props) { var blockName = props.name; - var hasPaddingSupport = Object(external_this_wp_blocks_["hasBlockSupport"])(blockName, PADDING_SUPPORT_KEY); + var hasSpacingSupport = Object(external_this_wp_blocks_["hasBlockSupport"])(blockName, SPACING_SUPPORT_KEY); return [Object(external_this_wp_element_["createElement"])(TypographyPanel, Object(esm_extends["a" /* default */])({ key: "typography" }, props)), Object(external_this_wp_element_["createElement"])(ColorEdit, Object(esm_extends["a" /* default */])({ key: "colors" }, props)), Object(external_this_wp_element_["createElement"])(BlockEdit, Object(esm_extends["a" /* default */])({ key: "edit" - }, props)), hasPaddingSupport && Object(external_this_wp_element_["createElement"])(SpacingPanelControl, { + }, props)), hasSpacingSupport && Object(external_this_wp_element_["createElement"])(SpacingPanelControl, { key: "spacing" }, Object(external_this_wp_element_["createElement"])(PaddingEdit, props))]; }; @@ -16822,19 +16899,19 @@ Object(external_this_wp_hooks_["addFilter"])('editor.BlockEdit', 'core/style/wit var classCallCheck = __webpack_require__(21); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js -var createClass = __webpack_require__(20); +var createClass = __webpack_require__(22); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js -var assertThisInitialized = __webpack_require__(15); +var assertThisInitialized = __webpack_require__(16); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules -var inherits = __webpack_require__(22); +var inherits = __webpack_require__(23); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js -var possibleConstructorReturn = __webpack_require__(23); +var possibleConstructorReturn = __webpack_require__(24); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js -var getPrototypeOf = __webpack_require__(17); +var getPrototypeOf = __webpack_require__(19); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/colors/with-colors.js @@ -16991,7 +17068,7 @@ function createColorHOC(colorTypes, withColorPalette) { return Object(external_this_lodash_["reduce"])(colorMap, function (newState, colorContext, colorAttributeName) { var colorObject = utils_getColorObjectByAttributeValues(colors, attributes[colorAttributeName], attributes["custom".concat(Object(external_this_lodash_["upperFirst"])(colorAttributeName))]); var previousColorObject = previousState[colorAttributeName]; - var previousColor = Object(external_this_lodash_["get"])(previousColorObject, ['color']); + var previousColor = previousColorObject === null || previousColorObject === void 0 ? void 0 : previousColorObject.color; /** * The "and previousColorObject" condition checks that a previous color object was already computed. * At the start previousColorObject and colorValue are both equal to undefined @@ -17645,13 +17722,13 @@ var DEFAULT_FONT_SIZES = []; // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/align-left.js -var align_left = __webpack_require__(300); +var align_left = __webpack_require__(303); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/align-center.js -var align_center = __webpack_require__(301); +var align_center = __webpack_require__(304); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/align-right.js -var align_right = __webpack_require__(302); +var align_right = __webpack_require__(305); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/alignment-toolbar/index.js @@ -17941,31 +18018,11 @@ function getItemSearchRank(item, searchTerm) { } // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/hooks/use-block-types-state.js - - -/** - * External dependencies - */ - /** * WordPress dependencies */ - - // Copied over from the Columns block. It seems like it should become part of public API. - -var use_block_types_state_createBlocksFromInnerBlocksTemplate = function createBlocksFromInnerBlocksTemplate(innerBlocksTemplate) { - return Object(external_this_lodash_["map"])(innerBlocksTemplate, function (_ref) { - var _ref2 = Object(slicedToArray["a" /* default */])(_ref, 3), - name = _ref2[0], - attributes = _ref2[1], - _ref2$ = _ref2[2], - innerBlocks = _ref2$ === void 0 ? [] : _ref2$; - - return Object(external_this_wp_blocks_["createBlock"])(name, attributes, createBlocksFromInnerBlocksTemplate(innerBlocks)); - }); -}; /** * Retrieves the block types inserter state. * @@ -17974,44 +18031,30 @@ var use_block_types_state_createBlocksFromInnerBlocksTemplate = function createB * @return {Array} Returns the block types state. (block types, categories, collections, onSelect handler) */ - var use_block_types_state_useBlockTypesState = function useBlockTypesState(rootClientId, onInsert) { var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { var _select = select('core/block-editor'), - getInserterItems = _select.getInserterItems, - getSettings = _select.getSettings; + getInserterItems = _select.getInserterItems; var _select2 = select('core/blocks'), getCategories = _select2.getCategories, getCollections = _select2.getCollections; - var _getSettings = getSettings(), - __experimentalFetchReusableBlocks = _getSettings.__experimentalFetchReusableBlocks; - return { categories: getCategories(), collections: getCollections(), - items: getInserterItems(rootClientId), - fetchReusableBlocks: __experimentalFetchReusableBlocks + items: getInserterItems(rootClientId) }; }, [rootClientId]), categories = _useSelect.categories, collections = _useSelect.collections, - items = _useSelect.items, - fetchReusableBlocks = _useSelect.fetchReusableBlocks; // Fetch resuable blocks on mount + items = _useSelect.items; - - Object(external_this_wp_element_["useEffect"])(function () { - if (fetchReusableBlocks) { - fetchReusableBlocks(); - } - }, []); - - var onSelectItem = function onSelectItem(_ref3) { - var name = _ref3.name, - initialAttributes = _ref3.initialAttributes, - innerBlocks = _ref3.innerBlocks; - var insertedBlock = Object(external_this_wp_blocks_["createBlock"])(name, initialAttributes, use_block_types_state_createBlocksFromInnerBlocksTemplate(innerBlocks)); + var onSelectItem = function onSelectItem(_ref) { + var name = _ref.name, + initialAttributes = _ref.initialAttributes, + innerBlocks = _ref.innerBlocks; + var insertedBlock = Object(external_this_wp_blocks_["createBlock"])(name, initialAttributes, Object(external_this_wp_blocks_["createBlocksFromInnerBlocksTemplate"])(innerBlocks)); onInsert(insertedBlock); }; @@ -18021,7 +18064,7 @@ var use_block_types_state_useBlockTypesState = function useBlockTypesState(rootC /* harmony default export */ var use_block_types_state = (use_block_types_state_useBlockTypesState); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/block-default.js -var block_default = __webpack_require__(207); +var block_default = __webpack_require__(208); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-icon/index.js @@ -18030,7 +18073,6 @@ var block_default = __webpack_require__(207); * External dependencies */ - /** * WordPress dependencies */ @@ -18038,12 +18080,14 @@ var block_default = __webpack_require__(207); function BlockIcon(_ref) { + var _icon; + var icon = _ref.icon, _ref$showColors = _ref.showColors, showColors = _ref$showColors === void 0 ? false : _ref$showColors, className = _ref.className; - if (Object(external_this_lodash_["get"])(icon, ['src']) === 'block-default') { + if (((_icon = icon) === null || _icon === void 0 ? void 0 : _icon.src) === 'block-default') { icon = { src: block_default["a" /* default */] }; @@ -18087,18 +18131,6 @@ function BlockIcon(_ref) { var SHOWN_BLOCK_TYPES = 9; - -var block_createBlocksFromInnerBlocksTemplate = function createBlocksFromInnerBlocksTemplate(innerBlocksTemplate) { - return Object(external_this_lodash_["map"])(innerBlocksTemplate, function (_ref) { - var _ref2 = Object(slicedToArray["a" /* default */])(_ref, 3), - name = _ref2[0], - attributes = _ref2[1], - _ref2$ = _ref2[2], - innerBlocks = _ref2$ === void 0 ? [] : _ref2$; - - return Object(external_this_wp_blocks_["createBlock"])(name, attributes, createBlocksFromInnerBlocksTemplate(innerBlocks)); - }); -}; /** @typedef {import('@wordpress/block-editor').WPEditorInserterItem} WPEditorInserterItem */ /** @typedef {import('@wordpress/components').WPCompleter} WPCompleter */ @@ -18114,7 +18146,6 @@ var block_createBlocksFromInnerBlocksTemplate = function createBlocksFromInnerBl * @return {WPCompleter} A blocks completer. */ - function createBlockCompleter() { return { name: 'blocks', @@ -18176,7 +18207,7 @@ function createBlockCompleter() { innerBlocks = inserterItem.innerBlocks; return { action: 'replace', - value: Object(external_this_wp_blocks_["createBlock"])(name, initialAttributes, block_createBlocksFromInnerBlocksTemplate(innerBlocks)) + value: Object(external_this_wp_blocks_["createBlock"])(name, initialAttributes, Object(external_this_wp_blocks_["createBlocksFromInnerBlocksTemplate"])(innerBlocks)) }; } }; @@ -18673,9 +18704,8 @@ var edit_Edit = function Edit(props) { var Component = blockType.edit || blockType.save; - var lightBlockWrapper = Object(external_this_wp_blocks_["hasBlockSupport"])(blockType, 'lightBlockWrapper', false); - if (lightBlockWrapper) { + if (blockType.apiVersion > 1 || Object(external_this_wp_blocks_["hasBlockSupport"])(blockType, 'lightBlockWrapper', false)) { return Object(external_this_wp_element_["createElement"])(Component, Object(esm_extends["a" /* default */])({}, props, { context: context })); @@ -18780,17 +18810,17 @@ BlockFormatControls.Slot = BlockFormatControlsSlot; /* harmony default export */ var block_format_controls = (BlockFormatControls); // EXTERNAL MODULE: external {"this":"regeneratorRuntime"} -var external_this_regeneratorRuntime_ = __webpack_require__(24); +var external_this_regeneratorRuntime_ = __webpack_require__(20); var external_this_regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(external_this_regeneratorRuntime_); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js -var asyncToGenerator = __webpack_require__(47); +var asyncToGenerator = __webpack_require__(45); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/more-vertical.js -var more_vertical = __webpack_require__(313); +var more_vertical = __webpack_require__(316); // EXTERNAL MODULE: ./node_modules/react-spring/web.cjs.js -var web_cjs = __webpack_require__(116); +var web_cjs = __webpack_require__(115); // EXTERNAL MODULE: external {"this":["wp","dom"]} var external_this_wp_dom_ = __webpack_require__(29); @@ -19022,16 +19052,16 @@ function BlockNavigationLeaf(_ref) { } // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-right.js -var chevron_right = __webpack_require__(213); +var chevron_right = __webpack_require__(214); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-left.js -var chevron_left = __webpack_require__(214); +var chevron_left = __webpack_require__(215); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-up.js -var chevron_up = __webpack_require__(311); +var chevron_up = __webpack_require__(314); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-down.js -var chevron_down = __webpack_require__(312); +var chevron_down = __webpack_require__(315); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-mover/mover-description.js /** @@ -19475,7 +19505,7 @@ function Warning(_ref) { /* harmony default export */ var warning = (Warning); // EXTERNAL MODULE: ./node_modules/@wordpress/block-editor/node_modules/diff/lib/diff/character.js -var diff_character = __webpack_require__(277); +var diff_character = __webpack_require__(279); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-compare/block-view.js @@ -19802,7 +19832,7 @@ var block_crash_boundary_BlockCrashBoundary = /*#__PURE__*/function (_Component) /* harmony default export */ var block_crash_boundary = (block_crash_boundary_BlockCrashBoundary); // EXTERNAL MODULE: ./node_modules/react-autosize-textarea/lib/index.js -var lib = __webpack_require__(99); +var lib = __webpack_require__(100); var lib_default = /*#__PURE__*/__webpack_require__.n(lib); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list/block-html.js @@ -19871,7 +19901,7 @@ function BlockHTML(_ref) { /* harmony default export */ var block_html = (BlockHTML); // EXTERNAL MODULE: external {"this":["wp","deprecated"]} -var external_this_wp_deprecated_ = __webpack_require__(35); +var external_this_wp_deprecated_ = __webpack_require__(36); var external_this_wp_deprecated_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_deprecated_); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list/use-multi-selection.js @@ -20113,7 +20143,7 @@ function useMultiSelection(ref) { } // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/plus.js -var plus = __webpack_require__(208); +var plus = __webpack_require__(209); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/tips.js @@ -20146,13 +20176,13 @@ function Tips() { /* harmony default export */ var tips = (Tips); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/close-small.js -var close_small = __webpack_require__(181); +var close_small = __webpack_require__(159); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/icon/index.js -var build_module_icon = __webpack_require__(142); +var build_module_icon = __webpack_require__(141); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/search.js -var search = __webpack_require__(303); +var search = __webpack_require__(306); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/search-form.js @@ -20263,7 +20293,6 @@ var PREFERENCES_DEFAULTS = { * @property {number} maxWidth Max width to constraint resizing * @property {boolean|Array} allowedBlockTypes Allowed block types * @property {boolean} hasFixedToolbar Whether or not the editor toolbar is fixed - * @property {boolean} hasPermissionsToManageWidgets Whether or not the user is able to manage widgets. * @property {boolean} focusMode Whether the focus mode is enabled or not * @property {Array} styles Editor Styles * @property {boolean} isRTL Whether the editor is in RTL mode @@ -20380,7 +20409,6 @@ var SETTINGS_DEFAULTS = { // List of allowed mime types and file extensions. allowedMimeTypes: null, availableLegacyWidgets: {}, - hasPermissionsToManageWidgets: false, __experimentalCanUserUseUnfilteredHTML: false, __experimentalBlockDirectory: false, __experimentalEnableFullSiteEditing: false, @@ -20388,6 +20416,7 @@ var SETTINGS_DEFAULTS = { __mobileEnablePageTemplates: false, __experimentalBlockPatterns: [], __experimentalBlockPatternCategories: [], + __experimentalSpotlightEntityBlocks: [], // gradients setting is not used anymore now defaults are passed from theme.json on the server and core has its own defaults. // The setting is only kept for backward compatibility purposes. gradients: [{ @@ -20848,8 +20877,10 @@ function withPersistentBlockChange(reducer) { // explicitly marking as persistent. if (state === nextState && !isExplicitPersistentChange) { + var _state$isPersistentCh; + markNextChangeAsNotPersistent = action.type === 'MARK_NEXT_CHANGE_AS_NOT_PERSISTENT'; - var nextIsPersistentChange = Object(external_this_lodash_["get"])(state, ['isPersistentChange'], true); + var nextIsPersistentChange = (_state$isPersistentCh = state === null || state === void 0 ? void 0 : state.isPersistentChange) !== null && _state$isPersistentCh !== void 0 ? _state$isPersistentCh : true; if (state.isPersistentChange === nextIsPersistentChange) { return state; @@ -22048,65 +22079,16 @@ function highlightedBlock(state, action) { })); // EXTERNAL MODULE: ./node_modules/refx/refx.js -var refx = __webpack_require__(113); +var refx = __webpack_require__(150); var refx_default = /*#__PURE__*/__webpack_require__.n(refx); // EXTERNAL MODULE: ./node_modules/redux-multi/lib/index.js -var redux_multi_lib = __webpack_require__(275); +var redux_multi_lib = __webpack_require__(277); var redux_multi_lib_default = /*#__PURE__*/__webpack_require__.n(redux_multi_lib); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js var esm_typeof = __webpack_require__(40); -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/store/controls.js - - -/** - * WordPress dependencies - */ - -/** - * Calls a selector using the current state. - * - * @param {string} storeName Store name. - * @param {string} selectorName Selector name. - * @param {Array} args Selector arguments. - * - * @return {Object} control descriptor. - */ - -function controls_select(storeName, selectorName) { - for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { - args[_key - 2] = arguments[_key]; - } - - return { - type: 'SELECT', - storeName: storeName, - selectorName: selectorName, - args: args - }; -} -var controls_controls = { - SELECT: Object(external_this_wp_data_["createRegistryControl"])(function (registry) { - return function (_ref) { - var _registry$select; - - var storeName = _ref.storeName, - selectorName = _ref.selectorName, - args = _ref.args; - return (_registry$select = registry.select(storeName))[selectorName].apply(_registry$select, Object(toConsumableArray["a" /* default */])(args)); - }; - }), - SLEEP: function SLEEP(_ref2) { - var duration = _ref2.duration; - return new Promise(function (resolve) { - setTimeout(resolve, duration); - }); - } -}; -/* harmony default export */ var store_controls = (controls_controls); - // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/store/actions.js @@ -22147,10 +22129,6 @@ var _marked = /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(ensur -/** - * Internal dependencies - */ - /** * Generator which will yield a default block insert action if there @@ -22166,7 +22144,7 @@ function ensureDefaultBlock() { switch (_context.prev = _context.next) { case 0: _context.next = 2; - return controls_select('core/block-editor', 'getBlockCount'); + return external_this_wp_data_["controls"].select('core/block-editor', 'getBlockCount'); case 2: count = _context.sent; @@ -22319,7 +22297,7 @@ function selectPreviousBlock(clientId) { switch (_context2.prev = _context2.next) { case 0: _context2.next = 2; - return controls_select('core/block-editor', 'getPreviousBlockClientId', clientId); + return external_this_wp_data_["controls"].select('core/block-editor', 'getPreviousBlockClientId', clientId); case 2: previousBlockClientId = _context2.sent; @@ -22356,7 +22334,7 @@ function selectNextBlock(clientId) { switch (_context3.prev = _context3.next) { case 0: _context3.next = 2; - return controls_select('core/block-editor', 'getNextBlockClientId', clientId); + return external_this_wp_data_["controls"].select('core/block-editor', 'getNextBlockClientId', clientId); case 2: nextBlockClientId = _context3.sent; @@ -22446,8 +22424,12 @@ function actions_toggleSelection() { } function getBlocksWithDefaultStylesApplied(blocks, blockEditorSettings) { - var preferredStyleVariations = Object(external_this_lodash_["get"])(blockEditorSettings, ['__experimentalPreferredStyleVariations', 'value'], {}); + var _blockEditorSettings$, _blockEditorSettings$2; + + var preferredStyleVariations = (_blockEditorSettings$ = blockEditorSettings === null || blockEditorSettings === void 0 ? void 0 : (_blockEditorSettings$2 = blockEditorSettings.__experimentalPreferredStyleVariations) === null || _blockEditorSettings$2 === void 0 ? void 0 : _blockEditorSettings$2.value) !== null && _blockEditorSettings$ !== void 0 ? _blockEditorSettings$ : {}; return blocks.map(function (block) { + var _block$attributes; + var blockName = block.name; if (!Object(external_this_wp_blocks_["hasBlockSupport"])(blockName, 'defaultStylePicker', true)) { @@ -22458,14 +22440,14 @@ function getBlocksWithDefaultStylesApplied(blocks, blockEditorSettings) { return block; } - var className = Object(external_this_lodash_["get"])(block, ['attributes', 'className']); + var className = (_block$attributes = block.attributes) === null || _block$attributes === void 0 ? void 0 : _block$attributes.className; if (className === null || className === void 0 ? void 0 : className.includes('is-style-')) { return block; } - var _block$attributes = block.attributes, - attributes = _block$attributes === void 0 ? {} : _block$attributes; + var _block$attributes2 = block.attributes, + attributes = _block$attributes2 === void 0 ? {} : _block$attributes2; var blockStyle = preferredStyleVariations[blockName]; return actions_objectSpread(actions_objectSpread({}, block), {}, { attributes: actions_objectSpread(actions_objectSpread({}, attributes), {}, { @@ -22498,13 +22480,13 @@ function actions_replaceBlocks(clientIds, blocks, indexToSelect, initialPosition _context4.t0 = getBlocksWithDefaultStylesApplied; _context4.t1 = Object(external_this_lodash_["castArray"])(blocks); _context4.next = 5; - return controls_select('core/block-editor', 'getSettings'); + return external_this_wp_data_["controls"].select('core/block-editor', 'getSettings'); case 5: _context4.t2 = _context4.sent; blocks = (0, _context4.t0)(_context4.t1, _context4.t2); _context4.next = 9; - return controls_select('core/block-editor', 'getBlockRootClientId', Object(external_this_lodash_["first"])(clientIds)); + return external_this_wp_data_["controls"].select('core/block-editor', 'getBlockRootClientId', Object(external_this_lodash_["first"])(clientIds)); case 9: rootClientId = _context4.sent; @@ -22518,7 +22500,7 @@ function actions_replaceBlocks(clientIds, blocks, indexToSelect, initialPosition block = blocks[index]; _context4.next = 15; - return controls_select('core/block-editor', 'canInsertBlockType', block.name, rootClientId); + return external_this_wp_data_["controls"].select('core/block-editor', 'canInsertBlockType', block.name, rootClientId); case 15: canInsertBlock = _context4.sent; @@ -22619,7 +22601,7 @@ function actions_moveBlocksToPosition(clientIds) { toRootClientId = _args5.length > 2 && _args5[2] !== undefined ? _args5[2] : ''; index = _args5.length > 3 ? _args5[3] : undefined; _context5.next = 5; - return controls_select('core/block-editor', 'getTemplateLock', fromRootClientId); + return external_this_wp_data_["controls"].select('core/block-editor', 'getTemplateLock', fromRootClientId); case 5: templateLock = _context5.sent; @@ -22661,7 +22643,7 @@ function actions_moveBlocksToPosition(clientIds) { case 15: _context5.next = 17; - return controls_select('core/block-editor', 'canInsertBlocks', clientIds, toRootClientId); + return external_this_wp_data_["controls"].select('core/block-editor', 'canInsertBlocks', clientIds, toRootClientId); case 17: canInsertBlocks = _context5.sent; @@ -22763,7 +22745,7 @@ function actions_insertBlocks(blocks, index, rootClientId) { _context7.t0 = getBlocksWithDefaultStylesApplied; _context7.t1 = Object(external_this_lodash_["castArray"])(blocks); _context7.next = 6; - return controls_select('core/block-editor', 'getSettings'); + return external_this_wp_data_["controls"].select('core/block-editor', 'getSettings'); case 6: _context7.t2 = _context7.sent; @@ -22782,7 +22764,7 @@ function actions_insertBlocks(blocks, index, rootClientId) { block = _step.value; _context7.next = 16; - return controls_select('core/block-editor', 'canInsertBlockType', block.name, rootClientId); + return external_this_wp_data_["controls"].select('core/block-editor', 'canInsertBlockType', block.name, rootClientId); case 16: isValid = _context7.sent; @@ -22936,12 +22918,12 @@ function actions_removeBlocks(clientIds) { case 3: clientIds = Object(external_this_lodash_["castArray"])(clientIds); _context8.next = 6; - return controls_select('core/block-editor', 'getBlockRootClientId', clientIds[0]); + return external_this_wp_data_["controls"].select('core/block-editor', 'getBlockRootClientId', clientIds[0]); case 6: rootClientId = _context8.sent; _context8.next = 9; - return controls_select('core/block-editor', 'getTemplateLock', rootClientId); + return external_this_wp_data_["controls"].select('core/block-editor', 'getTemplateLock', rootClientId); case 9: isLocked = _context8.sent; @@ -22969,7 +22951,7 @@ function actions_removeBlocks(clientIds) { case 18: _context8.next = 20; - return controls_select('core/block-editor', 'getPreviousBlockClientId', clientIds[0]); + return external_this_wp_data_["controls"].select('core/block-editor', 'getPreviousBlockClientId', clientIds[0]); case 20: previousBlockId = _context8.sent; @@ -23341,12 +23323,12 @@ function actions_duplicateBlocks(clientIds) { case 3: _context11.next = 5; - return controls_select('core/block-editor', 'getBlocksByClientId', clientIds); + return external_this_wp_data_["controls"].select('core/block-editor', 'getBlocksByClientId', clientIds); case 5: blocks = _context11.sent; _context11.next = 8; - return controls_select('core/block-editor', 'getBlockRootClientId', clientIds[0]); + return external_this_wp_data_["controls"].select('core/block-editor', 'getBlockRootClientId', clientIds[0]); case 8: rootClientId = _context11.sent; @@ -23376,7 +23358,7 @@ function actions_duplicateBlocks(clientIds) { case 14: _context11.next = 16; - return controls_select('core/block-editor', 'getBlockIndex', Object(external_this_lodash_["last"])(Object(external_this_lodash_["castArray"])(clientIds)), rootClientId); + return external_this_wp_data_["controls"].select('core/block-editor', 'getBlockIndex', Object(external_this_lodash_["last"])(Object(external_this_lodash_["castArray"])(clientIds)), rootClientId); case 16: lastSelectedIndex = _context11.sent; @@ -23428,12 +23410,12 @@ function actions_insertBeforeBlock(clientId) { case 2: _context12.next = 4; - return controls_select('core/block-editor', 'getBlockRootClientId', clientId); + return external_this_wp_data_["controls"].select('core/block-editor', 'getBlockRootClientId', clientId); case 4: rootClientId = _context12.sent; _context12.next = 7; - return controls_select('core/block-editor', 'getTemplateLock', rootClientId); + return external_this_wp_data_["controls"].select('core/block-editor', 'getTemplateLock', rootClientId); case 7: isLocked = _context12.sent; @@ -23447,7 +23429,7 @@ function actions_insertBeforeBlock(clientId) { case 10: _context12.next = 12; - return controls_select('core/block-editor', 'getBlockIndex', clientId, rootClientId); + return external_this_wp_data_["controls"].select('core/block-editor', 'getBlockIndex', clientId, rootClientId); case 12: firstSelectedIndex = _context12.sent; @@ -23485,12 +23467,12 @@ function actions_insertAfterBlock(clientId) { case 2: _context13.next = 4; - return controls_select('core/block-editor', 'getBlockRootClientId', clientId); + return external_this_wp_data_["controls"].select('core/block-editor', 'getBlockRootClientId', clientId); case 4: rootClientId = _context13.sent; _context13.next = 7; - return controls_select('core/block-editor', 'getTemplateLock', rootClientId); + return external_this_wp_data_["controls"].select('core/block-editor', 'getTemplateLock', rootClientId); case 7: isLocked = _context13.sent; @@ -23504,7 +23486,7 @@ function actions_insertAfterBlock(clientId) { case 10: _context13.next = 12; - return controls_select('core/block-editor', 'getBlockIndex', clientId, rootClientId); + return external_this_wp_data_["controls"].select('core/block-editor', 'getBlockIndex', clientId, rootClientId); case 12: firstSelectedIndex = _context13.sent; @@ -23584,7 +23566,7 @@ function actions_setHasControlledInnerBlocks(clientId, hasControlledInnerBlocks) } // EXTERNAL MODULE: ./node_modules/rememo/es/rememo.js -var rememo = __webpack_require__(41); +var rememo = __webpack_require__(42); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/store/selectors.js @@ -24063,14 +24045,16 @@ var selectors_getBlockParents = Object(rememo["a" /* default */])(function (stat return [state.blocks.parents]; }); /** - * Given a block client ID and a block name, - * returns the list of all its parents from top to bottom, - * filtered by the given name. + * Given a block client ID and a block name, returns the list of all its parents + * from top to bottom, filtered by the given name(s). For example, if passed + * 'core/group' as the blockName, it will only return parents which are group + * blocks. If passed `[ 'core/group', 'core/cover']`, as the blockName, it will + * return parents which are group blocks and parents which are cover blocks. * - * @param {Object} state Editor state. - * @param {string} clientId Block from which to find root client ID. - * @param {string} blockName Block name to filter. - * @param {boolean} ascending Order results from bottom to top (true) or top to bottom (false). + * @param {Object} state Editor state. + * @param {string} clientId Block from which to find root client ID. + * @param {string|string[]} blockName Block name(s) to filter. + * @param {boolean} ascending Order results from bottom to top (true) or top to bottom (false). * * @return {Array} ClientIDs of the parent blocks. */ @@ -24083,10 +24067,16 @@ var getBlockParentsByBlockName = Object(rememo["a" /* default */])(function (sta id: id, name: selectors_getBlockName(state, id) }; - }), { - name: blockName }), function (_ref) { - var id = _ref.id; + var name = _ref.name; + + if (Array.isArray(blockName)) { + return blockName.includes(name); + } + + return name === blockName; + }), function (_ref2) { + var id = _ref2.id; return id; }); }, function (state) { @@ -24816,7 +24806,7 @@ var selectors_canInsertBlockTypeUnmemoized = function canInsertBlockTypeUnmemoiz return false; } - var parentAllowedBlocks = Object(external_this_lodash_["get"])(parentBlockListSettings, ['allowedBlocks']); + var parentAllowedBlocks = parentBlockListSettings === null || parentBlockListSettings === void 0 ? void 0 : parentBlockListSettings.allowedBlocks; var hasParentAllowedBlock = checkAllowList(parentAllowedBlocks, blockName); var blockAllowedParentBlocks = blockType.parent; var parentName = selectors_getBlockName(state, rootClientId); @@ -24875,7 +24865,9 @@ function selectors_canInsertBlocks(state, clientIds) { */ function getInsertUsage(state, id) { - return Object(external_this_lodash_["get"])(state.preferences.insertUsage, [id], null); + var _state$preferences$in, _state$preferences$in2; + + return (_state$preferences$in = (_state$preferences$in2 = state.preferences.insertUsage) === null || _state$preferences$in2 === void 0 ? void 0 : _state$preferences$in2[id]) !== null && _state$preferences$in !== void 0 ? _state$preferences$in : null; } /** * Returns whether we can show a block type in the inserter @@ -24986,13 +24978,13 @@ var selectors_getInserterItems = Object(rememo["a" /* default */])(function (sta }); } - var _ref2 = getInsertUsage(state, id) || {}, - time = _ref2.time, - _ref2$count = _ref2.count, - count = _ref2$count === void 0 ? 0 : _ref2$count; + var _ref3 = getInsertUsage(state, id) || {}, + time = _ref3.time, + _ref3$count = _ref3.count, + count = _ref3$count === void 0 ? 0 : _ref3$count; - var inserterVariations = blockType.variations.filter(function (_ref3) { - var scope = _ref3.scope; + var inserterVariations = blockType.variations.filter(function (_ref4) { + var scope = _ref4.scope; return !scope || scope.includes('inserter'); }); return { @@ -25024,10 +25016,10 @@ var selectors_getInserterItems = Object(rememo["a" /* default */])(function (sta referencedBlockType = Object(external_this_wp_blocks_["getBlockType"])(referencedBlocks[0].name); } - var _ref4 = getInsertUsage(state, id) || {}, - time = _ref4.time, - _ref4$count = _ref4.count, - count = _ref4$count === void 0 ? 0 : _ref4$count; + var _ref5 = getInsertUsage(state, id) || {}, + time = _ref5.time, + _ref5$count = _ref5.count, + count = _ref5$count === void 0 ? 0 : _ref5$count; var frecency = calculateFrecency(time, count); return { @@ -25036,7 +25028,7 @@ var selectors_getInserterItems = Object(rememo["a" /* default */])(function (sta initialAttributes: { ref: reusableBlock.id }, - title: reusableBlock.title, + title: reusableBlock.title.raw, icon: referencedBlockType ? referencedBlockType.icon : templateIcon, category: 'reusable', keywords: [], @@ -25053,11 +25045,11 @@ var selectors_getInserterItems = Object(rememo["a" /* default */])(function (sta var reusableBlockInserterItems = selectors_canInsertBlockTypeUnmemoized(state, 'core/block', rootClientId) ? getReusableBlocks(state).map(buildReusableBlockInserterItem) : []; // Exclude any block type item that is to be replaced by a default // variation. - var visibleBlockTypeInserterItems = blockTypeInserterItems.filter(function (_ref5) { - var _ref5$variations = _ref5.variations, - variations = _ref5$variations === void 0 ? [] : _ref5$variations; - return !variations.some(function (_ref6) { - var isDefault = _ref6.isDefault; + var visibleBlockTypeInserterItems = blockTypeInserterItems.filter(function (_ref6) { + var _ref6$variations = _ref6.variations, + variations = _ref6$variations === void 0 ? [] : _ref6$variations; + return !variations.some(function (_ref7) { + var isDefault = _ref7.isDefault; return isDefault; }); }); @@ -25201,9 +25193,11 @@ var __experimentalGetParsedReusableBlock = Object(rememo["a" /* default */])(fun if (!reusableBlock) { return null; - } + } // Only reusableBlock.content.raw should be used here, `reusableBlock.content` is a + // workaround until #22127 is fixed. - return Object(external_this_wp_blocks_["parse"])(reusableBlock.content); + + return Object(external_this_wp_blocks_["parse"])(reusableBlock.content.raw || reusableBlock.content); }, function (state) { return [getReusableBlocks(state)]; }); @@ -25247,7 +25241,9 @@ function __experimentalGetLastBlockAttributeChanges(state) { */ function getReusableBlocks(state) { - return Object(external_this_lodash_["get"])(state, ['settings', '__experimentalReusableBlocks'], selectors_EMPTY_ARRAY); + var _state$settings$__exp, _state$settings; + + return (_state$settings$__exp = state === null || state === void 0 ? void 0 : (_state$settings = state.settings) === null || _state$settings === void 0 ? void 0 : _state$settings.__experimentalReusableBlocks) !== null && _state$settings$__exp !== void 0 ? _state$settings$__exp : selectors_EMPTY_ARRAY; } /** * Returns whether the navigation mode is enabled. @@ -25307,6 +25303,42 @@ function isBlockHighlighted(state, clientId) { function areInnerBlocksControlled(state, clientId) { return !!state.blocks.controlledInnerBlocks[clientId]; } +/** + * Returns the clientId for the first 'active' block of a given array of block names. + * A block is 'active' if it (or a child) is the selected block. + * Returns the first match moving up the DOM from the selected block. + * + * @param {Object} state Global application state. + * @param {string[]} validBlocksNames The names of block types to check for. + * + * @return {string} The matching block's clientId. + */ + +var __experimentalGetActiveBlockIdByBlockNames = Object(rememo["a" /* default */])(function (state, validBlockNames) { + if (!validBlockNames.length) { + return null; + } // Check if selected block is a valid entity area. + + + var selectedBlockClientId = selectors_getSelectedBlockClientId(state); + + if (validBlockNames.includes(selectors_getBlockName(state, selectedBlockClientId))) { + return selectedBlockClientId; + } // Check if first selected block is a child of a valid entity area. + + + var multiSelectedBlockClientIds = getMultiSelectedBlockClientIds(state); + var entityAreaParents = getBlockParentsByBlockName(state, selectedBlockClientId || multiSelectedBlockClientIds[0], validBlockNames); + + if (entityAreaParents) { + // Last parent closest/most interior. + return Object(external_this_lodash_["last"])(entityAreaParents); + } + + return null; +}, function (state, validBlockNames) { + return [state.selectionStart.clientId, state.selectionEnd.clientId, validBlockNames]; +}); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/store/effects.js @@ -25545,6 +25577,17 @@ function applyMiddlewares(store) { /* harmony default export */ var store_middlewares = (applyMiddlewares); +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/store/controls.js +var controls_controls = { + SLEEP: function SLEEP(_ref) { + var duration = _ref.duration; + return new Promise(function (resolve) { + setTimeout(resolve, duration); + }); + } +}; +/* harmony default export */ var store_controls = (controls_controls); + // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/store/index.js @@ -26087,12 +26130,15 @@ function button_block_appender_ButtonBlockAppender(_ref, ref) { + /** * Internal dependencies */ + // A Context to store the map of the appender map. +var AppenderNodesContext = Object(external_this_wp_element_["createContext"])(); function block_list_appender_stopPropagation(event) { event.stopPropagation(); @@ -26108,6 +26154,7 @@ function BlockListAppender(_ref) { selectedBlockClientId = _ref.selectedBlockClientId, _ref$tagName = _ref.tagName, TagName = _ref$tagName === void 0 ? 'div' : _ref$tagName; + var appenderNodesMap = Object(external_this_wp_element_["useContext"])(AppenderNodesContext); if (isLocked || CustomAppender === false) { return null; @@ -26157,12 +26204,21 @@ function BlockListAppender(_ref) { // clicked. , onFocus: block_list_appender_stopPropagation, - className: classnames_default()('block-list-appender', className) + className: classnames_default()('block-list-appender', 'wp-block', className), + ref: function ref(_ref2) { + if (_ref2) { + // Set the reference of the "Appender" with `rootClientId` as key. + appenderNodesMap.set(rootClientId || '', _ref2); + } else { + // If it un-mounts, cleanup the map. + appenderNodesMap.delete(rootClientId || ''); + } + } }, appender); } -/* harmony default export */ var block_list_appender = (Object(external_this_wp_data_["withSelect"])(function (select, _ref2) { - var rootClientId = _ref2.rootClientId; +/* harmony default export */ var block_list_appender = (Object(external_this_wp_data_["withSelect"])(function (select, _ref3) { + var rootClientId = _ref3.rootClientId; var _select = select('core/block-editor'), getBlockOrder = _select.getBlockOrder, @@ -26570,7 +26626,6 @@ function useBlockDropZone(_ref) { // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list/index.js - /** * External dependencies */ @@ -26589,6 +26644,11 @@ function useBlockDropZone(_ref) { +/** + * A map to store the reference of each "Appenders" rendered with `rootClientId` as key. + */ + +var block_list_appenderNodesMap = new Map(); /** * If the block count exceeds the threshold, we disable the reordering animation * to avoid laginess. @@ -26598,13 +26658,31 @@ var BLOCK_ANIMATION_THRESHOLD = 200; function BlockList(_ref, ref) { var className = _ref.className, + placeholder = _ref.placeholder, rootClientId = _ref.rootClientId, - renderAppender = _ref.renderAppender, - _ref$__experimentalTa = _ref.__experimentalTagName, - __experimentalTagName = _ref$__experimentalTa === void 0 ? 'div' : _ref$__experimentalTa, - __experimentalAppenderTagName = _ref.__experimentalAppenderTagName, - _ref$__experimentalPa = _ref.__experimentalPassedProps, - __experimentalPassedProps = _ref$__experimentalPa === void 0 ? {} : _ref$__experimentalPa; + renderAppender = _ref.renderAppender; + var Container = rootClientId ? 'div' : root_container; + var fallbackRef = Object(external_this_wp_element_["useRef"])(); + var wrapperRef = ref || fallbackRef; + return Object(external_this_wp_element_["createElement"])(AppenderNodesContext.Provider, { + value: block_list_appenderNodesMap + }, Object(external_this_wp_element_["createElement"])(Container, { + ref: wrapperRef, + className: classnames_default()('block-editor-block-list__layout', className) + }, Object(external_this_wp_element_["createElement"])(BlockListItems, { + placeholder: placeholder, + rootClientId: rootClientId, + renderAppender: renderAppender, + wrapperRef: wrapperRef + }))); +} + +function Items(_ref2) { + var placeholder = _ref2.placeholder, + rootClientId = _ref2.rootClientId, + renderAppender = _ref2.renderAppender, + __experimentalAppenderTagName = _ref2.__experimentalAppenderTagName, + wrapperRef = _ref2.wrapperRef; function selector(select) { var _getBlockListSettings; @@ -26612,12 +26690,17 @@ function BlockList(_ref, ref) { var _select = select('core/block-editor'), getBlockOrder = _select.getBlockOrder, getBlockListSettings = _select.getBlockListSettings, + getSettings = _select.getSettings, getSelectedBlockClientId = _select.getSelectedBlockClientId, getMultiSelectedBlockClientIds = _select.getMultiSelectedBlockClientIds, hasMultiSelection = _select.hasMultiSelection, getGlobalBlockCount = _select.getGlobalBlockCount, isTyping = _select.isTyping, - isDraggingBlocks = _select.isDraggingBlocks; + isDraggingBlocks = _select.isDraggingBlocks, + __experimentalGetActiveBlockIdByBlockNames = _select.__experimentalGetActiveBlockIdByBlockNames; // Determine if there is an active entity area to spotlight. + + + var activeEntityBlockId = __experimentalGetActiveBlockIdByBlockNames(getSettings().__experimentalSpotlightEntityBlocks); return { blockClientIds: getBlockOrder(rootClientId), @@ -26626,7 +26709,8 @@ function BlockList(_ref, ref) { orientation: (_getBlockListSettings = getBlockListSettings(rootClientId)) === null || _getBlockListSettings === void 0 ? void 0 : _getBlockListSettings.orientation, hasMultiSelection: hasMultiSelection(), enableAnimation: !isTyping() && getGlobalBlockCount() <= BLOCK_ANIMATION_THRESHOLD, - isDraggingBlocks: isDraggingBlocks() + isDraggingBlocks: isDraggingBlocks(), + activeEntityBlockId: activeEntityBlockId }; } @@ -26637,20 +26721,15 @@ function BlockList(_ref, ref) { orientation = _useSelect.orientation, hasMultiSelection = _useSelect.hasMultiSelection, enableAnimation = _useSelect.enableAnimation, - isDraggingBlocks = _useSelect.isDraggingBlocks; + isDraggingBlocks = _useSelect.isDraggingBlocks, + activeEntityBlockId = _useSelect.activeEntityBlockId; - var fallbackRef = Object(external_this_wp_element_["useRef"])(); - var element = __experimentalPassedProps.ref || ref || fallbackRef; - var Container = rootClientId ? __experimentalTagName : root_container; var dropTargetIndex = useBlockDropZone({ - element: element, + element: wrapperRef, rootClientId: rootClientId }); var isAppenderDropTarget = dropTargetIndex === blockClientIds.length && isDraggingBlocks; - return Object(external_this_wp_element_["createElement"])(Container, Object(esm_extends["a" /* default */])({}, __experimentalPassedProps, { - ref: element, - className: classnames_default()('block-editor-block-list__layout', className, __experimentalPassedProps.className) - }), blockClientIds.map(function (clientId, index) { + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, blockClientIds.map(function (clientId, index) { var isBlockInSelection = hasMultiSelection ? multiSelectedBlockClientIds.includes(clientId) : selectedBlockClientId === clientId; var isDropTarget = dropTargetIndex === index && isDraggingBlocks; return Object(external_this_wp_element_["createElement"])(external_this_wp_data_["AsyncModeProvider"], { @@ -26666,10 +26745,12 @@ function BlockList(_ref, ref) { enableAnimation: enableAnimation, className: classnames_default()({ 'is-drop-target': isDropTarget, - 'is-dropping-horizontally': isDropTarget && orientation === 'horizontal' - }) + 'is-dropping-horizontally': isDropTarget && orientation === 'horizontal', + 'has-active-entity': activeEntityBlockId + }), + activeEntityBlockId: activeEntityBlockId })); - }), Object(external_this_wp_element_["createElement"])(block_list_appender, { + }), blockClientIds.length < 1 && placeholder, Object(external_this_wp_element_["createElement"])(block_list_appender, { tagName: __experimentalAppenderTagName, rootClientId: rootClientId, renderAppender: renderAppender, @@ -26680,17 +26761,14 @@ function BlockList(_ref, ref) { })); } -var ForwardedBlockList = Object(external_this_wp_element_["forwardRef"])(BlockList); // This component needs to always be synchronous -// as it's the one changing the async mode -// depending on the block selection. - -/* harmony default export */ var block_list = (Object(external_this_wp_element_["forwardRef"])(function (props, ref) { +function BlockListItems(props) { + // This component needs to always be synchronous as it's the one changing + // the async mode depending on the block selection. return Object(external_this_wp_element_["createElement"])(external_this_wp_data_["AsyncModeProvider"], { value: false - }, Object(external_this_wp_element_["createElement"])(ForwardedBlockList, Object(esm_extends["a" /* default */])({ - ref: ref - }, props))); -})); + }, Object(external_this_wp_element_["createElement"])(Items, props)); +} +/* harmony default export */ var block_list = (Object(external_this_wp_element_["forwardRef"])(BlockList)); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-preview/live.js @@ -26879,7 +26957,7 @@ function InserterPreviewPanel(_ref) { /* harmony default export */ var preview_panel = (InserterPreviewPanel); // EXTERNAL MODULE: ./node_modules/reakit/es/CompositeState-3a25dcee.js -var CompositeState_3a25dcee = __webpack_require__(51); +var CompositeState_3a25dcee = __webpack_require__(52); // EXTERNAL MODULE: ./node_modules/reakit/es/Composite/Composite.js var Composite = __webpack_require__(122); @@ -27801,7 +27879,8 @@ function useInsertionPoint(_ref) { rootClientId = _ref.rootClientId, clientId = _ref.clientId, isAppender = _ref.isAppender, - selectBlockOnInsert = _ref.selectBlockOnInsert; + selectBlockOnInsert = _ref.selectBlockOnInsert, + insertionIndex = _ref.insertionIndex; var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { var _getSettings$__experi; @@ -27839,10 +27918,14 @@ function useInsertionPoint(_ref) { hideInsertionPoint = _useDispatch.hideInsertionPoint; function getInsertionIndex() { - // If the clientId is defined, we insert at the position of the block. + if (insertionIndex !== undefined) { + return insertionIndex; + } // If the clientId is defined, we insert at the position of the block. + + if (clientId) { return getBlockIndex(clientId, destinationRootClientId); - } // If there a selected block, we insert after the selected block. + } // If there's a selected block, and the selected block is not the destination root block, we insert after the selected block. var end = getBlockSelectionEnd(); @@ -27977,6 +28060,7 @@ function InserterMenu(_ref) { clientId = _ref.clientId, isAppender = _ref.isAppender, __experimentalSelectBlockOnInsert = _ref.__experimentalSelectBlockOnInsert, + __experimentalInsertionIndex = _ref.__experimentalInsertionIndex, onSelect = _ref.onSelect, showInserterHelpPanel = _ref.showInserterHelpPanel, showMostUsedBlocks = _ref.showMostUsedBlocks; @@ -28005,7 +28089,8 @@ function InserterMenu(_ref) { rootClientId: rootClientId, clientId: clientId, isAppender: isAppender, - selectBlockOnInsert: __experimentalSelectBlockOnInsert + selectBlockOnInsert: __experimentalSelectBlockOnInsert, + insertionIndex: __experimentalInsertionIndex }), _useInsertionPoint2 = Object(slicedToArray["a" /* default */])(_useInsertionPoint, 3), destinationRootClientId = _useInsertionPoint2[0], @@ -28153,6 +28238,8 @@ function InserterMenu(_ref) { + + /** * Internal dependencies */ @@ -28220,8 +28307,8 @@ function QuickInserter(_ref2) { rootClientId = _ref2.rootClientId, clientId = _ref2.clientId, isAppender = _ref2.isAppender, - selectBlockOnInsert = _ref2.selectBlockOnInsert, - debouncedSpeak = _ref2.debouncedSpeak; + selectBlockOnInsert = _ref2.selectBlockOnInsert; + var debouncedSpeak = Object(external_this_wp_compose_["useDebounce"])(external_this_wp_a11y_["speak"], 500); var _useState = Object(external_this_wp_element_["useState"])(''), _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), @@ -28334,8 +28421,6 @@ function QuickInserter(_ref2) { /* eslint-enable jsx-a11y/no-autofocus, jsx-a11y/no-static-element-interactions */ } -/* harmony default export */ var quick_inserter = (Object(external_this_wp_components_["withSpokenMessages"])(QuickInserter)); - // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/index.js @@ -28500,7 +28585,7 @@ var inserter_Inserter = /*#__PURE__*/function (_Component) { isQuick = _this$props2.__experimentalIsQuick; if (isQuick) { - return Object(external_this_wp_element_["createElement"])(quick_inserter, { + return Object(external_this_wp_element_["createElement"])(QuickInserter, { onSelect: onClose, rootClientId: rootClientId, clientId: clientId, @@ -29388,6 +29473,7 @@ function WritingFlow(_ref) { + function InsertionPointInserter(_ref) { var clientId = _ref.clientId, setIsInserterForced = _ref.setIsInserterForced, @@ -29398,7 +29484,15 @@ function InsertionPointInserter(_ref) { var _select = select('core/block-editor'), getMultiSelectedBlockClientIds = _select.getMultiSelectedBlockClientIds, getSelectedBlockClientId = _select.getSelectedBlockClientId, - hasMultiSelection = _select.hasMultiSelection; + hasMultiSelection = _select.hasMultiSelection, + getSettings = _select.getSettings; + + var _getSettings = getSettings(), + hasReducedUI = _getSettings.hasReducedUI; + + if (hasReducedUI) { + return true; + } var multiSelectedBlockClientIds = getMultiSelectedBlockClientIds(); var selectedBlockClientId = getSelectedBlockClientId(); @@ -29455,12 +29549,23 @@ function InsertionPointInserter(_ref) { function InsertionPointPopover(_ref2) { var clientId = _ref2.clientId, + rootClientId = _ref2.rootClientId, isInserterShown = _ref2.isInserterShown, isInserterForced = _ref2.isInserterForced, setIsInserterForced = _ref2.setIsInserterForced, containerRef = _ref2.containerRef, showInsertionPoint = _ref2.showInsertionPoint; - var element = getBlockDOMNode(clientId); + var appenderNodesMap = Object(external_this_wp_element_["useContext"])(AppenderNodesContext); + var element = Object(external_this_wp_element_["useMemo"])(function () { + if (clientId) { + return getBlockDOMNode(clientId); + } // Can't find the element, might be at the end of the block list, or inside an empty block list. + // We instead try to find the "Appender" and place the indicator above it. + // `rootClientId` could be null or undefined when there's no parent block, we normalize it to an empty string. + + + return appenderNodesMap.get(rootClientId || ''); + }, [clientId, rootClientId, appenderNodesMap]); return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Popover"], { noArrow: true, animate: false, @@ -29514,12 +29619,14 @@ function InsertionPoint(_ref3) { return { isMultiSelecting: _isMultiSelecting(), isInserterVisible: isBlockInsertionPointVisible(), - selectedClientId: order[insertionPoint.index] + selectedClientId: order[insertionPoint.index], + selectedRootClientId: insertionPoint.rootClientId }; }, []), isMultiSelecting = _useSelect.isMultiSelecting, isInserterVisible = _useSelect.isInserterVisible, - selectedClientId = _useSelect.selectedClientId; + selectedClientId = _useSelect.selectedClientId, + selectedRootClientId = _useSelect.selectedRootClientId; function onMouseMove(event) { if (!event.target.classList.contains('block-editor-block-list__layout')) { @@ -29538,6 +29645,16 @@ function InsertionPoint(_ref3) { if (!element) { return; + } // The block may be in an alignment wrapper, so check the first direct + // child if the element has no ID. + + + if (!element.id) { + element = element.firstElementChild; + + if (!element) { + return; + } } var clientId = element.id.slice('block-'.length); @@ -29563,6 +29680,7 @@ function InsertionPoint(_ref3) { var isVisible = isInserterShown || isInserterForced || isInserterVisible; return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, !isMultiSelecting && isVisible && Object(external_this_wp_element_["createElement"])(InsertionPointPopover, { clientId: isInserterVisible ? selectedClientId : inserterClientId, + rootClientId: selectedRootClientId, isInserterShown: isInserterShown, isInserterForced: isInserterForced, setIsInserterForced: setIsInserterForced, @@ -30261,17 +30379,29 @@ function BlockParentSelector() { getBlockParents = _select.getBlockParents, getSelectedBlockClientId = _select.getSelectedBlockClientId; + var _select2 = select('core/blocks'), + hasBlockSupport = _select2.hasBlockSupport; + var selectedBlockClientId = getSelectedBlockClientId(); var parents = getBlockParents(selectedBlockClientId); var _firstParentClientId = parents[parents.length - 1]; var parentBlockName = getBlockName(_firstParentClientId); + + var _parentBlockType = Object(external_this_wp_blocks_["getBlockType"])(parentBlockName); + return { - parentBlockType: Object(external_this_wp_blocks_["getBlockType"])(parentBlockName), - firstParentClientId: _firstParentClientId + parentBlockType: _parentBlockType, + firstParentClientId: _firstParentClientId, + shouldHide: !hasBlockSupport(parentBlockType, '__experimentalParentSelector', true) }; }, []), parentBlockType = _useSelect.parentBlockType, - firstParentClientId = _useSelect.firstParentClientId; + firstParentClientId = _useSelect.firstParentClientId, + shouldHide = _useSelect.shouldHide; + + if (shouldHide) { + return null; + } if (firstParentClientId !== undefined) { return Object(external_this_wp_element_["createElement"])("div", { @@ -30820,7 +30950,7 @@ var block_switcher_BlockSwitcher = /*#__PURE__*/function (_Component) { }))(block_switcher_BlockSwitcher)); // EXTERNAL MODULE: external {"this":["wp","blob"]} -var external_this_wp_blob_ = __webpack_require__(43); +var external_this_wp_blob_ = __webpack_require__(41); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/utils/get-paste-event-data.js /** @@ -31537,9 +31667,9 @@ function BlockSettingsMenu(_ref) { */ -var _window = window, - utils_clearTimeout = _window.clearTimeout, - utils_setTimeout = _window.setTimeout; +var utils_window = window, + utils_clearTimeout = utils_window.clearTimeout, + utils_setTimeout = utils_window.setTimeout; var DEBOUNCE_TIMEOUT = 200; /** * Hook that creates a showMover state, as well as debounced show/hide callbacks. @@ -31710,7 +31840,7 @@ function useShowMoversGestures(_ref2) { } // EXTERNAL MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-toolbar/expanded-block-controls-container.js -var expanded_block_controls_container = __webpack_require__(276); +var expanded_block_controls_container = __webpack_require__(278); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-toolbar/index.js @@ -31758,11 +31888,13 @@ function BlockToolbar(_ref) { var selectedBlockClientIds = getSelectedBlockClientIds(); var selectedBlockClientId = selectedBlockClientIds[0]; var blockRootClientId = getBlockRootClientId(selectedBlockClientId); + var settings = getSettings(); return { blockClientIds: selectedBlockClientIds, blockClientId: selectedBlockClientId, blockType: selectedBlockClientId && Object(external_this_wp_blocks_["getBlockType"])(getBlockName(selectedBlockClientId)), - hasFixedToolbar: getSettings().hasFixedToolbar, + hasFixedToolbar: settings.hasFixedToolbar, + hasReducedUI: settings.hasReducedUI, rootClientId: blockRootClientId, isValid: selectedBlockClientIds.every(function (id) { return isBlockValid(id); @@ -31776,6 +31908,7 @@ function BlockToolbar(_ref) { blockClientId = _useSelect.blockClientId, blockType = _useSelect.blockType, hasFixedToolbar = _useSelect.hasFixedToolbar, + hasReducedUI = _useSelect.hasReducedUI, isValid = _useSelect.isValid, isVisual = _useSelect.isVisual; @@ -31787,6 +31920,10 @@ function BlockToolbar(_ref) { var _useShowMoversGesture = useShowMoversGestures({ ref: nodeRef, onChange: function onChange(isFocused) { + if (isFocused && hasReducedUI) { + return; + } + toggleBlockHighlight(blockClientId, isFocused); } }), @@ -31825,7 +31962,7 @@ function BlockToolbar(_ref) { clientIds: blockClientIds }), Object(external_this_wp_element_["createElement"])(block_mover, { clientIds: blockClientIds, - hideDragHandle: hideDragHandle + hideDragHandle: hideDragHandle || hasReducedUI }))), shouldShowVisualToolbar && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(block_controls["a" /* default */].Slot, { bubblesVirtually: true, className: "block-editor-block-toolbar__slot" @@ -31971,8 +32108,10 @@ function BlockPopover(_ref) { isInserterShown = _useState4[0], setIsInserterShown = _useState4[1]; - var blockNodes = Object(external_this_wp_element_["useContext"])(BlockNodes); - var showEmptyBlockSideInserter = !isNavigationMode && isEmptyDefaultBlock && isValid; + var blockNodes = Object(external_this_wp_element_["useContext"])(BlockNodes); // Controls when the side inserter on empty lines should + // be shown, including writing and selection modes. + + var showEmptyBlockSideInserter = !isTyping && !isNavigationMode && isEmptyDefaultBlock && isValid; var shouldShowBreadcrumb = isNavigationMode; var shouldShowContextualToolbar = !isNavigationMode && !hasFixedToolbar && isLargeViewport && !showEmptyBlockSideInserter && !isMultiSelecting && (!isTyping || isCaretWithinFormattedText); var canFocusHiddenToolbar = !isNavigationMode && !shouldShowContextualToolbar && !hasFixedToolbar && !isEmptyDefaultBlock; @@ -32294,6 +32433,7 @@ function block_wrapper_objectSpread(target) { for (var i = 1; i < arguments.leng + /** * Internal dependencies */ @@ -32304,12 +32444,13 @@ function block_wrapper_objectSpread(target) { for (var i = 1; i < arguments.leng /** - * This hook is used to lighly mark an element as a block element. Call this - * hook and pass the returned props to the element to mark as a block. If you - * define a ref for the element, it is important to pass the ref to this hook, - * which the hooks in turn will pass to the component through the props it - * returns. Optionally, you can also pass any other props through this hook, and - * they will be merged and returned. + * This hook is used to lightly mark an element as a block element. The element + * should be the outermost element of a block. Call this hook and pass the + * returned props to the element to mark as a block. If you define a ref for the + * element, it is important to pass the ref to this hook, which the hook in turn + * will pass to the component through the props it returns. Optionally, you can + * also pass any other props through this hook, and they will be merged and + * returned. * * @param {Object} props Optional. Props to pass to the element. Must contain * the ref if one is defined. @@ -32319,7 +32460,7 @@ function block_wrapper_objectSpread(target) { for (var i = 1; i < arguments.leng * @return {Object} Props to pass to the element to mark as a block. */ -function useBlockWrapperProps() { +function useBlockProps() { var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, @@ -32546,6 +32687,13 @@ function useBlockWrapperProps() { style: block_wrapper_objectSpread(block_wrapper_objectSpread({}, wrapperProps.style), props.style) }); } +/** + * Call within a save function to get the props for the block wrapper. + * + * @param {Object} props Optional. Props to pass to the element. + */ + +useBlockProps.save = external_this_wp_blocks_["__unstableGetBlockProps"]; var BlockComponent = Object(external_this_wp_element_["forwardRef"])(function (_ref3, ref) { var children = _ref3.children, _ref3$tagName = _ref3.tagName, @@ -32553,12 +32701,12 @@ var BlockComponent = Object(external_this_wp_element_["forwardRef"])(function (_ props = Object(objectWithoutProperties["a" /* default */])(_ref3, ["children", "tagName"]); external_this_wp_deprecated_default()('wp.blockEditor.__experimentalBlock', { - alternative: 'wp.blockEditor.__experimentalUseBlockWrapperProps' + alternative: 'wp.blockEditor.useBlockProps' }); - var blockWrapperProps = useBlockWrapperProps(block_wrapper_objectSpread(block_wrapper_objectSpread({}, props), {}, { + var blockProps = useBlockProps(block_wrapper_objectSpread(block_wrapper_objectSpread({}, props), {}, { ref: ref })); - return Object(external_this_wp_element_["createElement"])(TagName, blockWrapperProps, children); + return Object(external_this_wp_element_["createElement"])(TagName, blockProps, children); }); var ExtendedBlockComponent = block_wrapper_elements.reduce(function (acc, element) { acc[element] = Object(external_this_wp_element_["forwardRef"])(function (props, ref) { @@ -32596,7 +32744,6 @@ function block_objectSpread(target) { for (var i = 1; i < arguments.length; i++) - /** * Internal dependencies */ @@ -32636,14 +32783,13 @@ function block_Block(_ref) { isHtml = _ref.isHtml, props = Object(objectWithoutProperties["a" /* default */])(_ref, ["children", "isHtml"]); - return Object(external_this_wp_element_["createElement"])("div", useBlockWrapperProps(props, { + return Object(external_this_wp_element_["createElement"])("div", useBlockProps(props, { __unstableIsHtml: isHtml }), children); } function block_BlockListBlock(_ref2) { var mode = _ref2.mode, - isFocusMode = _ref2.isFocusMode, isLocked = _ref2.isLocked, clientId = _ref2.clientId, rootClientId = _ref2.rootClientId, @@ -32666,23 +32812,27 @@ function block_BlockListBlock(_ref2) { onMerge = _ref2.onMerge, toggleSelection = _ref2.toggleSelection, index = _ref2.index, - enableAnimation = _ref2.enableAnimation; - - // In addition to withSelect, we should favor using useSelect in this + enableAnimation = _ref2.enableAnimation, + activeEntityBlockId = _ref2.activeEntityBlockId; + var isLargeViewport = Object(external_this_wp_compose_["useViewportMatch"])('medium'); // In addition to withSelect, we should favor using useSelect in this // component going forward to avoid leaking new props to the public API // (editor.BlockListBlock filter) + var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { var _select = select('core/block-editor'), isBlockBeingDragged = _select.isBlockBeingDragged, - isBlockHighlighted = _select.isBlockHighlighted; + isBlockHighlighted = _select.isBlockHighlighted, + getSettings = _select.getSettings; return { isDragging: isBlockBeingDragged(clientId), - isHighlighted: isBlockHighlighted(clientId) + isHighlighted: isBlockHighlighted(clientId), + isFocusMode: getSettings().focusMode }; }, [clientId]), isDragging = _useSelect.isDragging, - isHighlighted = _useSelect.isHighlighted; + isHighlighted = _useSelect.isHighlighted, + isFocusMode = _useSelect.isFocusMode; var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), removeBlock = _useDispatch.removeBlock; @@ -32701,7 +32851,7 @@ function block_BlockListBlock(_ref2) { }; var blockType = Object(external_this_wp_blocks_["getBlockType"])(name); - var lightBlockWrapper = Object(external_this_wp_blocks_["hasBlockSupport"])(blockType, 'lightBlockWrapper', false); + var lightBlockWrapper = blockType.apiVersion > 1 || Object(external_this_wp_blocks_["hasBlockSupport"])(blockType, 'lightBlockWrapper', false); var isUnregisteredBlock = name === Object(external_this_wp_blocks_["getUnregisteredTypeHandlerName"])(); // Determine whether the block has props to apply to the wrapper. if (blockType.getEditWrapperProps) { @@ -32723,9 +32873,10 @@ function block_BlockListBlock(_ref2) { 'is-reusable': Object(external_this_wp_blocks_["isReusableBlock"])(blockType), 'is-dragging': isDragging, 'is-typing': isTypingWithinBlock, - 'is-focused': isFocusMode && (isSelected || isAncestorOfSelectedBlock), - 'is-focus-mode': isFocusMode, - 'has-child-selected': isAncestorOfSelectedBlock && !isDragging + 'is-focused': isFocusMode && isLargeViewport && (isSelected || isAncestorOfSelectedBlock), + 'is-focus-mode': isFocusMode && isLargeViewport, + 'has-child-selected': isAncestorOfSelectedBlock && !isDragging, + 'is-active-entity': activeEntityBlockId === clientId }, className); // We wrap the BlockEdit component in a div that hides it when editing in // HTML mode. This allows us to render all of the ancillary pieces // (InspectorControls, etc.) which are inside `BlockEdit` but not @@ -32807,8 +32958,7 @@ function block_BlockListBlock(_ref2) { var applyWithSelect = Object(external_this_wp_data_["withSelect"])(function (select, _ref3) { var clientId = _ref3.clientId, - rootClientId = _ref3.rootClientId, - isLargeViewport = _ref3.isLargeViewport; + rootClientId = _ref3.rootClientId; var _select2 = select('core/block-editor'), isBlockSelected = _select2.isBlockSelected, @@ -32819,7 +32969,6 @@ var applyWithSelect = Object(external_this_wp_data_["withSelect"])(function (sel isTyping = _select2.isTyping, getBlockMode = _select2.getBlockMode, isSelectionEnabled = _select2.isSelectionEnabled, - getSettings = _select2.getSettings, hasSelectedInnerBlock = _select2.hasSelectedInnerBlock, getTemplateLock = _select2.getTemplateLock, __unstableGetBlockWithoutInnerBlocks = _select2.__unstableGetBlockWithoutInnerBlocks, @@ -32828,11 +32977,6 @@ var applyWithSelect = Object(external_this_wp_data_["withSelect"])(function (sel var block = __unstableGetBlockWithoutInnerBlocks(clientId); var isSelected = isBlockSelected(clientId); - - var _getSettings = getSettings(), - focusMode = _getSettings.focusMode, - isRTL = _getSettings.isRTL; - var templateLock = getTemplateLock(rootClientId); var checkDeep = true; // "ancestor" is the more appropriate label due to "deep" check @@ -32862,8 +33006,6 @@ var applyWithSelect = Object(external_this_wp_data_["withSelect"])(function (sel mode: getBlockMode(clientId), isSelectionEnabled: isSelectionEnabled(), isLocked: !!templateLock, - isFocusMode: focusMode && isLargeViewport, - isRTL: isRTL, // Users of the editor.BlockListBlock filter used to be able to // access the block prop. // Ideally these blocks would rely on the clientId prop only. @@ -32944,9 +33086,7 @@ var applyWithDispatch = Object(external_this_wp_data_["withDispatch"])(function } }; }); -/* harmony default export */ var block_list_block = (Object(external_this_wp_compose_["compose"])(external_this_wp_compose_["pure"], Object(external_this_wp_viewport_["withViewportMatch"])({ - isLargeViewport: 'medium' -}), applyWithSelect, applyWithDispatch, // block is sometimes not mounted at the right time, causing it be undefined +/* harmony default export */ var block_list_block = (Object(external_this_wp_compose_["compose"])(external_this_wp_compose_["pure"], applyWithSelect, applyWithDispatch, // block is sometimes not mounted at the right time, causing it be undefined // see issue for more info // https://github.com/WordPress/gutenberg/issues/17013 Object(external_this_wp_compose_["ifCondition"])(function (_ref6) { @@ -34113,7 +34253,7 @@ function BlockNavigationDropdown(_ref2, ref) { /* harmony default export */ var dropdown = (Object(external_this_wp_element_["forwardRef"])(BlockNavigationDropdown)); // EXTERNAL MODULE: external {"this":["wp","shortcode"]} -var external_this_wp_shortcode_ = __webpack_require__(129); +var external_this_wp_shortcode_ = __webpack_require__(130); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/remove-browser-shortcuts.js @@ -34357,7 +34497,6 @@ function RichTextWrapper(_ref2, forwardedRef) { multiline = _ref2.multiline, inlineToolbar = _ref2.inlineToolbar, wrapperClassName = _ref2.wrapperClassName, - className = _ref2.className, autocompleters = _ref2.autocompleters, onReplace = _ref2.onReplace, placeholder = _ref2.placeholder, @@ -34371,9 +34510,6 @@ function RichTextWrapper(_ref2, forwardedRef) { onSplitAtEnd = _ref2.__unstableOnSplitAtEnd, onSplitMiddle = _ref2.__unstableOnSplitMiddle, identifier = _ref2.identifier, - startAttr = _ref2.start, - reversed = _ref2.reversed, - style = _ref2.style, preserveWhiteSpace = _ref2.preserveWhiteSpace, __unstableEmbedURLOnPaste = _ref2.__unstableEmbedURLOnPaste, disableFormats = _ref2.__unstableDisableFormats, @@ -34397,7 +34533,7 @@ function RichTextWrapper(_ref2, forwardedRef) { maxWidth = _ref2.maxWidth, onBlur = _ref2.onBlur, setRef = _ref2.setRef, - props = Object(objectWithoutProperties["a" /* default */])(_ref2, ["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", "unstableOnFocus", "__unstableAllowPrefixTransformations", "__unstableMultilineRootTag", "__unstableMobileNoFocusOnMount", "deleteEnter", "placeholderTextColor", "textAlign", "selectionColor", "tagsToEliminate", "rootTagsToEliminate", "disableEditingMenu", "fontSize", "fontFamily", "fontWeight", "fontStyle", "minWidth", "maxWidth", "onBlur", "setRef"]); + props = Object(objectWithoutProperties["a" /* default */])(_ref2, ["children", "tagName", "value", "onChange", "isSelected", "multiline", "inlineToolbar", "wrapperClassName", "autocompleters", "onReplace", "placeholder", "keepPlaceholderOnFocus", "allowedFormats", "formattingControls", "withoutInteractiveFormatting", "onRemove", "onMerge", "onSplit", "__unstableOnSplitAtEnd", "__unstableOnSplitMiddle", "identifier", "preserveWhiteSpace", "__unstableEmbedURLOnPaste", "__unstableDisableFormats", "disableLineBreaks", "unstableOnFocus", "__unstableAllowPrefixTransformations", "__unstableMultilineRootTag", "__unstableMobileNoFocusOnMount", "deleteEnter", "placeholderTextColor", "textAlign", "selectionColor", "tagsToEliminate", "rootTagsToEliminate", "disableEditingMenu", "fontSize", "fontFamily", "fontWeight", "fontStyle", "minWidth", "maxWidth", "onBlur", "setRef"]); var instanceId = Object(external_this_wp_compose_["useInstanceId"])(RichTextWrapper); identifier = identifier || instanceId; @@ -34753,9 +34889,6 @@ function RichTextWrapper(_ref2, forwardedRef) { selectionEnd: selectionEnd, onSelectionChange: onSelectionChange, tagName: tagName, - className: classnames_default()(rich_text_classes, className, { - 'keep-placeholder-on-focus': keepPlaceholderOnFocus - }), placeholder: placeholder, allowedFormats: adjustedAllowedFormats, withoutInteractiveFormatting: withoutInteractiveFormatting, @@ -34773,11 +34906,8 @@ function RichTextWrapper(_ref2, forwardedRef) { __unstableDidAutomaticChange: didAutomaticChange, __unstableUndo: undo, __unstableDisableFormats: disableFormats, - style: style, preserveWhiteSpace: preserveWhiteSpace, disabled: disabled, - start: startAttr, - reversed: reversed, unstableOnFocus: unstableOnFocus, __unstableAllowPrefixTransformations: __unstableAllowPrefixTransformations, __unstableMultilineRootTag: __unstableMultilineRootTag // Native props. @@ -34800,10 +34930,12 @@ function RichTextWrapper(_ref2, forwardedRef) { minWidth: minWidth, maxWidth: maxWidth, onBlur: onBlur, - setRef: setRef // Destructuring the id prop before { ...props } doesn't work - // correctly on web https://github.com/WordPress/gutenberg/pull/25624 + setRef: setRef // Props to be set on the editable container are destructured on the + // element itself for web (see below), but passed through rich text + // for native. , - id: props.id + id: props.id, + style: props.style }, function (_ref9) { var nestedIsSelected = _ref9.isSelected, value = _ref9.value, @@ -34829,11 +34961,13 @@ function RichTextWrapper(_ref2, forwardedRef) { activeId = _ref10.activeId, _onKeyDown = _ref10.onKeyDown; return Object(external_this_wp_element_["createElement"])(TagName, Object(esm_extends["a" /* default */])({}, editableProps, props, { + style: props.style ? rich_text_objectSpread(rich_text_objectSpread({}, props.style), editableProps.style) : editableProps.style, + className: classnames_default()(rich_text_classes, props.className, editableProps.className, { + 'keep-placeholder-on-focus': keepPlaceholderOnFocus + }), "aria-autocomplete": listBoxId ? 'list' : undefined, "aria-owns": listBoxId, "aria-activedescendant": activeId, - start: startAttr, - reversed: reversed, onKeyDown: function onKeyDown(event) { _onKeyDown(event); @@ -34927,7 +35061,7 @@ function BlockNavigationEditor(_ref) { } // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/layout.js -var layout = __webpack_require__(315); +var layout = __webpack_require__(318); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-variation-picker/index.js @@ -35667,58 +35801,36 @@ function UncontrolledInnerBlocks(props) { allowedBlocks = props.allowedBlocks, template = props.template, templateLock = props.templateLock, - forwardedRef = props.forwardedRef, + wrapperRef = props.wrapperRef, templateInsertUpdatesSelection = props.templateInsertUpdatesSelection, captureToolbars = props.__experimentalCaptureToolbars, - orientation = props.orientation; - var isSmallScreen = Object(external_this_wp_compose_["useViewportMatch"])('medium', '<'); - - var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { - var _select = select('core/block-editor'), - getBlock = _select.getBlock, - isBlockSelected = _select.isBlockSelected, - hasSelectedInnerBlock = _select.hasSelectedInnerBlock, - isNavigationMode = _select.isNavigationMode; - - var theBlock = getBlock(clientId); - return { - block: theBlock, - hasOverlay: theBlock.name !== 'core/template' && !isBlockSelected(clientId) && !hasSelectedInnerBlock(clientId, true), - enableClickThrough: isNavigationMode() || isSmallScreen - }; - }), - hasOverlay = _useSelect.hasOverlay, - block = _useSelect.block, - enableClickThrough = _useSelect.enableClickThrough; - + __experimentalAppenderTagName = props.__experimentalAppenderTagName, + renderAppender = props.renderAppender, + orientation = props.orientation, + placeholder = props.placeholder; useNestedSettingsUpdate(clientId, allowedBlocks, templateLock, captureToolbars, orientation); useInnerBlockTemplateSync(clientId, template, templateLock, templateInsertUpdatesSelection); - var classes = classnames_default()({ - 'has-overlay': enableClickThrough && hasOverlay, - 'is-capturing-toolbar': captureToolbars - }); - var blockList = Object(external_this_wp_element_["createElement"])(block_list, Object(esm_extends["a" /* default */])({}, props, { - ref: forwardedRef, + var context = Object(external_this_wp_data_["useSelect"])(function (select) { + var block = select('core/block-editor').getBlock(clientId); + var blockType = Object(external_this_wp_blocks_["getBlockType"])(block.name); + + if (!blockType || !blockType.providesContext) { + return; + } + + return getBlockContext(block.attributes, blockType); + }, [clientId]); // This component needs to always be synchronous as it's the one changing + // the async mode depending on the block selection. + + return Object(external_this_wp_element_["createElement"])(BlockContextProvider, { + value: context + }, Object(external_this_wp_element_["createElement"])(BlockListItems, { rootClientId: clientId, - className: classes - })); // Wrap context provider if (and only if) block has context to provide. - - var blockType = Object(external_this_wp_blocks_["getBlockType"])(block.name); - - if (blockType && blockType.providesContext) { - var context = getBlockContext(block.attributes, blockType); - blockList = Object(external_this_wp_element_["createElement"])(BlockContextProvider, { - value: context - }, blockList); - } - - if (props.__experimentalTagName) { - return blockList; - } - - return Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-inner-blocks" - }, blockList); + renderAppender: renderAppender, + __experimentalAppenderTagName: __experimentalAppenderTagName, + wrapperRef: wrapperRef, + placeholder: placeholder + })); } /** * The controlled inner blocks component wraps the uncontrolled inner blocks @@ -35735,31 +35847,63 @@ function ControlledInnerBlocks(props) { useBlockSync(props); return Object(external_this_wp_element_["createElement"])(UncontrolledInnerBlocks, props); } -/** - * Wrapped InnerBlocks component which detects whether to use the controlled or - * uncontrolled variations of the InnerBlocks component. This is the component - * which should be used throughout the application. - */ - var ForwardedInnerBlocks = Object(external_this_wp_element_["forwardRef"])(function (props, ref) { + var innerBlocksProps = useInnerBlocksProps({ + ref: ref + }, props); + return Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-inner-blocks" + }, Object(external_this_wp_element_["createElement"])("div", innerBlocksProps)); +}); +/** + * This hook is used to lightly mark an element as an inner blocks wrapper + * element. Call this hook and pass the returned props to the element to mark as + * an inner blocks wrapper, automatically rendering inner blocks as children. If + * you define a ref for the element, it is important to pass the ref to this + * hook, which the hook in turn will pass to the component through the props it + * returns. Optionally, you can also pass any other props through this hook, and + * they will be merged and returned. + * + * @param {Object} props Optional. Props to pass to the element. Must contain + * the ref if one is defined. + * @param {Object} options Optional. Inner blocks options. + * + * @see https://github.com/WordPress/gutenberg/blob/master/packages/block-editor/src/components/inner-blocks/README.md + */ + +function useInnerBlocksProps() { + var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var fallbackRef = Object(external_this_wp_element_["useRef"])(); + var _useBlockEditContext = Object(block_edit_context["b" /* useBlockEditContext */])(), clientId = _useBlockEditContext.clientId; - var fallbackRef = Object(external_this_wp_element_["useRef"])(); + var isSmallScreen = Object(external_this_wp_compose_["useViewportMatch"])('medium', '<'); + var hasOverlay = Object(external_this_wp_data_["useSelect"])(function (select) { + var _select = select('core/block-editor'), + getBlockName = _select.getBlockName, + isBlockSelected = _select.isBlockSelected, + hasSelectedInnerBlock = _select.hasSelectedInnerBlock, + isNavigationMode = _select.isNavigationMode; - var allProps = inner_blocks_objectSpread({ - clientId: clientId, - forwardedRef: ref || fallbackRef - }, props); // Detects if the InnerBlocks should be controlled by an incoming value. - - - if (props.value && props.onChange) { - return Object(external_this_wp_element_["createElement"])(ControlledInnerBlocks, allProps); - } - - return Object(external_this_wp_element_["createElement"])(UncontrolledInnerBlocks, allProps); -}); // Expose default appender placeholders as components. + var enableClickThrough = isNavigationMode() || isSmallScreen; + return getBlockName(clientId) !== 'core/template' && !isBlockSelected(clientId) && !hasSelectedInnerBlock(clientId, true) && enableClickThrough; + }, [clientId, isSmallScreen]); + var ref = props.ref || fallbackRef; + var InnerBlocks = options.value && options.onChange ? ControlledInnerBlocks : UncontrolledInnerBlocks; + return inner_blocks_objectSpread(inner_blocks_objectSpread({}, props), {}, { + ref: ref, + className: classnames_default()(props.className, 'block-editor-block-list__layout', { + 'has-overlay': hasOverlay + }), + children: Object(external_this_wp_element_["createElement"])(InnerBlocks, Object(esm_extends["a" /* default */])({}, options, { + clientId: clientId, + wrapperRef: ref + })) + }); +} // Expose default appender placeholders as components. ForwardedInnerBlocks.DefaultBlockAppender = inner_blocks_default_block_appender; ForwardedInnerBlocks.ButtonBlockAppender = inner_blocks_button_block_appender; @@ -35774,7 +35918,7 @@ ForwardedInnerBlocks.Content = Object(external_this_wp_blocks_["withBlockContent /* harmony default export */ var inner_blocks = (ForwardedInnerBlocks); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/keyboard-return.js -var keyboard_return = __webpack_require__(215); +var keyboard_return = __webpack_require__(216); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/link-control/settings-drawer.js @@ -35835,7 +35979,7 @@ var settings_drawer_LinkControlSettingsDrawer = function LinkControlSettingsDraw /* harmony default export */ var settings_drawer = (settings_drawer_LinkControlSettingsDrawer); // EXTERNAL MODULE: ./node_modules/dom-scroll-into-view/lib/index.js -var dom_scroll_into_view_lib = __webpack_require__(126); +var dom_scroll_into_view_lib = __webpack_require__(127); var dom_scroll_into_view_lib_default = /*#__PURE__*/__webpack_require__.n(dom_scroll_into_view_lib); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/url-input/index.js @@ -37372,23 +37516,11 @@ function LinkControl(_ref) { LinkControl.ViewerFill = ViewerFill; /* harmony default export */ var link_control = (LinkControl); -// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/media.js - - -/** - * WordPress dependencies - */ - -var media_media = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { - d: "M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h13.4c.4 0 .8.4.8.8v13.4zM10 15l5-3-5-3v6z" -})); -/* harmony default export */ var library_media = (media_media); +// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/media.js +var library_media = __webpack_require__(319); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/upload.js -var upload = __webpack_require__(216); +var upload = __webpack_require__(217); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/media-upload/index.js /** @@ -37582,7 +37714,7 @@ var media_replace_flow_MediaReplaceFlow = function MediaReplaceFlow(_ref) { render: function render(_ref6) { var open = _ref6.open; return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { - icon: library_media, + icon: library_media["a" /* default */], onClick: open }, Object(external_this_wp_i18n_["__"])('Open Media Library')); } @@ -37640,7 +37772,7 @@ var media_replace_flow_MediaReplaceFlow = function MediaReplaceFlow(_ref) { }), Object(external_this_wp_components_["withFilters"])('editor.MediaReplaceFlow')])(media_replace_flow_MediaReplaceFlow)); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/edit.js + 1 modules -var library_edit = __webpack_require__(483); +var library_edit = __webpack_require__(274); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/url-popover/link-viewer-url.js @@ -37927,7 +38059,7 @@ function MediaPlaceholder(_ref2) { var _value$src; setSrc((_value$src = value === null || value === void 0 ? void 0 : value.src) !== null && _value$src !== void 0 ? _value$src : ''); - }, [value]); + }, [value === null || value === void 0 ? void 0 : value.src]); var onlyAllowsImages = function onlyAllowsImages() { if (!allowedTypes || allowedTypes.length === 0) { @@ -38596,7 +38728,7 @@ function ToolSelector(props, ref) { /* harmony default export */ var tool_selector = (Object(external_this_wp_element_["forwardRef"])(ToolSelector)); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/link.js -var library_link = __webpack_require__(184); +var library_link = __webpack_require__(186); // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/arrow-left.js @@ -38718,7 +38850,7 @@ var button_URLInputButton = /*#__PURE__*/function (_Component) { /* harmony default export */ var url_input_button = (button_URLInputButton); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/close.js -var library_close = __webpack_require__(157); +var library_close = __webpack_require__(160); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/url-popover/image-url-input-ui.js @@ -38896,25 +39028,31 @@ var image_url_input_ui_ImageURLInputUI = function ImageURLInputUI(_ref) { }); var getLinkDestinations = function getLinkDestinations() { - return [{ + var linkDestinations = [{ linkDestination: LINK_DESTINATION_MEDIA, title: Object(external_this_wp_i18n_["__"])('Media File'), url: mediaType === 'image' ? mediaUrl : undefined, icon: image_url_input_ui_icon - }, { - linkDestination: LINK_DESTINATION_ATTACHMENT, - title: Object(external_this_wp_i18n_["__"])('Attachment Page'), - url: mediaType === 'image' ? mediaLink : undefined, - icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M0 0h24v24H0V0z", - fill: "none" - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zM6 20V4h7v5h5v11H6z" - })) }]; + + if (mediaType === 'image' && mediaLink) { + linkDestinations.push({ + linkDestination: LINK_DESTINATION_ATTACHMENT, + title: Object(external_this_wp_i18n_["__"])('Attachment Page'), + url: mediaType === 'image' ? mediaLink : undefined, + icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M0 0h24v24H0V0z", + fill: "none" + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zM6 20V4h7v5h5v11H6z" + })) + }); + } + + return linkDestinations; }; var onSetHref = function onSetHref(value) { @@ -39020,7 +39158,7 @@ var image_url_input_ui_ImageURLInputUI = function ImageURLInputUI(_ref) { // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/check.js -var library_check = __webpack_require__(158); +var library_check = __webpack_require__(161); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/preview-options/index.js @@ -39087,7 +39225,7 @@ function PreviewOptions(_ref) { } // EXTERNAL MODULE: ./node_modules/css-mediaquery/index.js -var css_mediaquery = __webpack_require__(278); +var css_mediaquery = __webpack_require__(280); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/use-simulated-media-query/index.js /** @@ -39106,11 +39244,13 @@ var DISABLED_MEDIA_QUERY = '(min-width:999999px)'; var VALID_MEDIA_QUERY_REGEX = /\((min|max)-width:[^\(]*?\)/g; function getStyleSheetsThatMatchHostname() { + var _window$document$styl, _window, _window$document; + if (typeof window === 'undefined') { return []; } - return Object(external_this_lodash_["filter"])(Object(external_this_lodash_["get"])(window, ['document', 'styleSheets'], []), function (styleSheet) { + return Object(external_this_lodash_["filter"])((_window$document$styl = (_window = window) === null || _window === void 0 ? void 0 : (_window$document = _window.document) === null || _window$document === void 0 ? void 0 : _window$document.styleSheets) !== null && _window$document$styl !== void 0 ? _window$document$styl : [], function (styleSheet) { if (!styleSheet.href) { return false; } @@ -39340,7 +39480,7 @@ var skip_to_selected_block_SkipToSelectedBlock = function SkipToSelectedBlock(_r })(skip_to_selected_block_SkipToSelectedBlock)); // EXTERNAL MODULE: external {"this":["wp","wordcount"]} -var external_this_wp_wordcount_ = __webpack_require__(127); +var external_this_wp_wordcount_ = __webpack_require__(128); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/multi-selection-inspector/index.js @@ -39393,10 +39533,6 @@ function MultiSelectionInspector(_ref) { -/** - * External dependencies - */ - /** * WordPress dependencies */ @@ -39404,16 +39540,17 @@ function MultiSelectionInspector(_ref) { - function DefaultStylePicker(_ref) { var blockName = _ref.blockName; var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { + var _preferredStyleVariat, _preferredStyleVariat2; + var settings = select('core/block-editor').getSettings(); var preferredStyleVariations = settings.__experimentalPreferredStyleVariations; return { - preferredStyle: Object(external_this_lodash_["get"])(preferredStyleVariations, ['value', blockName]), - onUpdatePreferredStyleVariations: Object(external_this_lodash_["get"])(preferredStyleVariations, ['onChange'], null), + preferredStyle: preferredStyleVariations === null || preferredStyleVariations === void 0 ? void 0 : (_preferredStyleVariat = preferredStyleVariations.value) === null || _preferredStyleVariat === void 0 ? void 0 : _preferredStyleVariat[blockName], + onUpdatePreferredStyleVariations: (_preferredStyleVariat2 = preferredStyleVariations === null || preferredStyleVariations === void 0 ? void 0 : preferredStyleVariations.onChange) !== null && _preferredStyleVariat2 !== void 0 ? _preferredStyleVariat2 : null, styles: select('core/blocks').getBlockStyles(blockName) }; }, [blockName]), @@ -39567,104 +39704,40 @@ var block_inspector_AdvancedControls = function AdvancedControls(_ref2) { - - - - - - -function block_selection_clearer_createSuper(Derived) { var hasNativeReflectConstruct = block_selection_clearer_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; } - -function block_selection_clearer_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } - -/** - * External dependencies - */ - /** * WordPress dependencies */ +function useBlockSelectionClearer() { + var hasSelection = Object(external_this_wp_data_["useSelect"])(function (select) { + var _select = select('core/block-editor'), + hasSelectedBlock = _select.hasSelectedBlock, + hasMultiSelection = _select.hasMultiSelection; + return hasSelectedBlock() || hasMultiSelection(); + }); + var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), + clearSelectedBlock = _useDispatch.clearSelectedBlock; -var block_selection_clearer_BlockSelectionClearer = /*#__PURE__*/function (_Component) { - Object(inherits["a" /* default */])(BlockSelectionClearer, _Component); - - var _super = block_selection_clearer_createSuper(BlockSelectionClearer); - - function BlockSelectionClearer() { - var _this; - - Object(classCallCheck["a" /* default */])(this, BlockSelectionClearer); - - _this = _super.apply(this, arguments); - _this.bindContainer = _this.bindContainer.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.clearSelectionIfFocusTarget = _this.clearSelectionIfFocusTarget.bind(Object(assertThisInitialized["a" /* default */])(_this)); - return _this; - } - - Object(createClass["a" /* default */])(BlockSelectionClearer, [{ - key: "bindContainer", - value: function bindContainer(ref) { - this.container = ref; + return function (event) { + if (event.target === event.currentTarget && hasSelection) { + clearSelectedBlock(); } - /** - * Clears the selected block on focus if the container is the target of the - * focus. This assumes no other descendents have received focus until event - * has bubbled to the container. - * - * @param {FocusEvent} event Focus event. - */ - - }, { - key: "clearSelectionIfFocusTarget", - value: function clearSelectionIfFocusTarget(event) { - var _this$props = this.props, - hasSelectedBlock = _this$props.hasSelectedBlock, - hasMultiSelection = _this$props.hasMultiSelection, - clearSelectedBlock = _this$props.clearSelectedBlock; - var hasSelection = hasSelectedBlock || hasMultiSelection; - - if (event.target === this.container && hasSelection) { - clearSelectedBlock(); - } - } - }, { - key: "render", - value: function render() { - return Object(external_this_wp_element_["createElement"])("div", Object(esm_extends["a" /* default */])({ - tabIndex: -1, - onFocus: this.clearSelectionIfFocusTarget, - ref: this.bindContainer - }, Object(external_this_lodash_["omit"])(this.props, ['clearSelectedBlock', 'hasSelectedBlock', 'hasMultiSelection']))); - } - }]); - - return BlockSelectionClearer; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var block_selection_clearer = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select) { - var _select = select('core/block-editor'), - hasSelectedBlock = _select.hasSelectedBlock, - hasMultiSelection = _select.hasMultiSelection; - - return { - hasSelectedBlock: hasSelectedBlock(), - hasMultiSelection: hasMultiSelection() }; -}), Object(external_this_wp_data_["withDispatch"])(function (dispatch) { - var _dispatch = dispatch('core/block-editor'), - clearSelectedBlock = _dispatch.clearSelectedBlock; +} - return { - clearSelectedBlock: clearSelectedBlock - }; -})])(block_selection_clearer_BlockSelectionClearer)); +function BlockSelectionClearer(props) { + var onFocus = useBlockSelectionClearer(); + return Object(external_this_wp_element_["createElement"])("div", Object(esm_extends["a" /* default */])({ + tabIndex: -1, + onFocus: onFocus + }, props)); +} // EXTERNAL MODULE: ./node_modules/traverse/index.js -var traverse = __webpack_require__(279); +var traverse = __webpack_require__(281); var traverse_default = /*#__PURE__*/__webpack_require__.n(traverse); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/utils/transform-styles/ast/parse.js @@ -40364,7 +40437,7 @@ function addParent(obj, parent) { /* eslint-enable @wordpress/no-unused-vars-before-return */ // EXTERNAL MODULE: ./node_modules/inherits/inherits_browser.js -var inherits_browser = __webpack_require__(168); +var inherits_browser = __webpack_require__(171); var inherits_browser_default = /*#__PURE__*/__webpack_require__.n(inherits_browser); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/utils/transform-styles/ast/stringify/compiler.js @@ -41144,7 +41217,8 @@ function InserterLibrary(_ref) { showInserterHelpPanel = _ref.showInserterHelpPanel, _ref$showMostUsedBloc = _ref.showMostUsedBlocks, showMostUsedBlocks = _ref$showMostUsedBloc === void 0 ? false : _ref$showMostUsedBloc, - selectBlockOnInsert = _ref.__experimentalSelectBlockOnInsert, + __experimentalSelectBlockOnInsert = _ref.__experimentalSelectBlockOnInsert, + __experimentalInsertionIndex = _ref.__experimentalInsertionIndex, _ref$onSelect = _ref.onSelect, onSelect = _ref$onSelect === void 0 ? external_this_lodash_["noop"] : _ref$onSelect; var destinationRootClientId = Object(external_this_wp_data_["useSelect"])(function (select) { @@ -41160,7 +41234,8 @@ function InserterLibrary(_ref) { isAppender: isAppender, showInserterHelpPanel: showInserterHelpPanel, showMostUsedBlocks: showMostUsedBlocks, - __experimentalSelectBlockOnInsert: selectBlockOnInsert + __experimentalSelectBlockOnInsert: __experimentalSelectBlockOnInsert, + __experimentalInsertionIndex: __experimentalInsertionIndex }); } @@ -42005,6 +42080,9 @@ var TypewriterOrIEBypass = isIE ? function (props) { + + + @@ -42133,71 +42211,5 @@ function validateThemeGradients(gradients) { -/***/ }), -/* 452 */, -/* 453 */, -/* 454 */, -/* 455 */, -/* 456 */, -/* 457 */, -/* 458 */, -/* 459 */, -/* 460 */, -/* 461 */, -/* 462 */, -/* 463 */, -/* 464 */, -/* 465 */, -/* 466 */, -/* 467 */, -/* 468 */, -/* 469 */, -/* 470 */, -/* 471 */, -/* 472 */, -/* 473 */, -/* 474 */, -/* 475 */, -/* 476 */, -/* 477 */, -/* 478 */, -/* 479 */, -/* 480 */, -/* 481 */, -/* 482 */, -/* 483 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; - -// EXTERNAL MODULE: external {"this":["wp","element"]} -var external_this_wp_element_ = __webpack_require__(0); - -// EXTERNAL MODULE: external {"this":["wp","primitives"]} -var external_this_wp_primitives_ = __webpack_require__(7); - -// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/pencil.js - - -/** - * WordPress dependencies - */ - -var pencil = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { - d: "M20.1 5.1L16.9 2 6.2 12.7l-1.3 4.4 4.5-1.3L20.1 5.1zM4 20.8h8v-1.5H4v1.5z" -})); -/* harmony default export */ var library_pencil = (pencil); - -// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/edit.js -/** - * Internal dependencies - */ - -/* harmony default export */ var edit = __webpack_exports__["a"] = (library_pencil); - - /***/ }) /******/ ]); \ No newline at end of file diff --git a/wp-includes/js/dist/block-editor.min.js b/wp-includes/js/dist/block-editor.min.js index f8618052de..24a3c8e752 100644 --- a/wp-includes/js/dist/block-editor.min.js +++ b/wp-includes/js/dist/block-editor.min.js @@ -1,12 +1,12 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.blockEditor=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=451)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.lodash}()},function(e,t){!function(){e.exports=this.wp.components}()},function(e,t){!function(){e.exports=this.wp.data}()},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},,function(e,t){!function(){e.exports=this.wp.primitives}()},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(c[n]=e[n])}return c}},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";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";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";n.d(t,"a",(function(){return i}));var r=n(27);var o=n(37),c=n(30);function i(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(o.a)(e)||Object(c.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t){!function(){e.exports=this.wp.keycodes}()},function(e,t,n){"use strict";function r(e,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){!function(){e.exports=this.wp.blob}()},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(13),o=n(59);function c(e){var t=Object(r.useRef)(e);return Object(o.a)((function(){t.current=e})),t}},function(e,t,n){"use strict";function r(e,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";function r(e){return e?e.ownerDocument||e:window.document}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(13),o=n(76);function c(e,t){Object(r.useDebugValue)(e);var n=Object(r.useContext)(o.a);return null!=n[e]?n[e]:t}var i=n(55);var a=n(56);function l(e){var t,n,o,l=(o=e.compose,Array.isArray(o)?o:void 0!==o?[o]:[]),s=function(t,n){if(e.useOptions&&(t=e.useOptions(t,n)),e.name&&(t=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var o="use"+e+"Options";Object(r.useDebugValue)(o);var a=c(o);return a?Object(i.a)(Object(i.a)({},t),a(t,n)):t}(e.name,t,n)),e.compose)for(var o,a=Object(i.c)(l);!(o=a()).done;){t=o.value.__useOptions(t,n)}return t},u=function(t,n,o){if(void 0===t&&(t={}),void 0===n&&(n={}),void 0===o&&(o=!1),o||(t=s(t,n)),e.useProps&&(n=e.useProps(t,n)),e.name&&(n=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var o="use"+e+"Props";Object(r.useDebugValue)(o);var i=c(o);return i?i(t,n):n}(e.name,t,n)),e.compose)if(e.useComposeOptions&&(t=e.useComposeOptions(t,n)),e.useComposeProps)n=e.useComposeProps(t,n);else for(var a,u=Object(i.c)(l);!(a=u()).done;){n=(0,a.value)(t,n,!0)}var d={},b=n||{};for(var f in b)void 0!==b[f]&&(d[f]=b[f]);return d};u.__useOptions=s;var d=l.reduce((function(e,t){return e.push.apply(e,t.__keys||[]),e}),[]);return u.__keys=[].concat(d,(null===(t=e.useState)||void 0===t?void 0:t.__keys)||[],e.keys||[]),u.unstable_propsAreEqual=e.propsAreEqual||(null===(n=l[0])||void 0===n?void 0:n.unstable_propsAreEqual)||a.a,u}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(13),o=n(55),c=n(79);function i(e,t){for(var n={},r={},o=0,c=Object.keys(e);o=0?n[i]=e[i]:r[i]=e[i]}return[n,r]}var a=n(56);function l(e){var t,n=e.as,l=e.useHook,s=e.memo,u=e.propsAreEqual,d=void 0===u?null==l?void 0:l.unstable_propsAreEqual:u,b=e.keys,f=void 0===b?(null==l?void 0:l.__keys)||[]:b,p=e.useCreateElement,m=void 0===p?c.a:p,v=function(e,t){var r=e.as,c=void 0===r?n:r,a=Object(o.b)(e,["as"]);if(l){var s,u=i(a,f),d=u[0],b=u[1],p=l(d,Object(o.a)({ref:t},b)),v=p.wrapElement,O=Object(o.b)(p,["wrapElement"]),g=(null===(s=c.render)||void 0===s?void 0:s.__keys)||c.__keys,h=g&&i(a,g)[0],j=h?Object(o.a)(Object(o.a)({},O),h):O,k=m(c,j);return v?v(k):k}return m(c,Object(o.a)({ref:t},a))};return t=v,v=Object(r.forwardRef)(t),s&&(v=function(e,t){return Object(r.memo)(e,t)}(v,d)),v.__keys=f,v.unstable_propsAreEqual=d||a.a,v}},function(e,t,n){"use strict";n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return O})),n.d(t,"c",(function(){return p})),n.d(t,"d",(function(){return f})),n.d(t,"e",(function(){return h})),n.d(t,"f",(function(){return s})),n.d(t,"g",(function(){return w}));var r=n(16),o=n(13),c=n(59),i=n(62),a=n(61),l=n(65);function s(e){return e.slice().reverse()}function u(e,t){return Boolean(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function d(e,t){return e.findIndex((function(e){return!(!e.ref.current||!t.ref.current)&&u(t.ref.current,e.ref.current)}))}function b(e,t){return t?e.find((function(e){return!e.disabled&&e.id!==t})):e.find((function(e){return!e.disabled}))}function f(e,t){if(t)return null==e?void 0:e.find((function(e){return e.id===t&&!e.disabled}))}function p(e){for(var t,n=[[]],o=function(){var e=t.value,r=n.find((function(t){return!t[0]||t[0].groupId===e.groupId}));r?r.push(e):n.push([e])},c=Object(r.c)(e);!(t=c()).done;)o();return n}function m(e){for(var t,n=0,o=Object(r.c)(e);!(t=o()).done;){var c=t.value.length;c>n&&(n=c)}return n}function v(e){for(var t=p(e),n=m(t),o=[],c=0;c=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),d=!0,b="hsl"),e.hasOwnProperty("a")&&(n=e.a));var f,p,m;return n=T(n),{ok:d,format:e.format||b,r:s(255,u(t.r,0)),g:s(255,u(t.g,0)),b:s(255,u(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=l(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=l(this._r)),this._g<1&&(this._g=l(this._g)),this._b<1&&(this._b=l(this._b)),this._ok=n.ok,this._tc_id=a++}function f(e,t,n){e=N(e,255),t=N(t,255),n=N(n,255);var r,o,c=u(e,t,n),i=s(e,t,n),a=(c+i)/2;if(c==i)r=o=0;else{var l=c-i;switch(o=a>.5?l/(2-c-i):l/(c+i),c){case e:r=(t-n)/l+(t>1)+720)%360;--t;)r.h=(r.h+o)%360,c.push(b(r));return c}function B(e,t){t=t||6;for(var n=b(e).toHsv(),r=n.h,o=n.s,c=n.v,i=[],a=1/t;t--;)i.push(b({h:r,s:o,v:c})),c=(c+a)%1;return i}b.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:o.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=T(e),this._roundA=l(100*this._a)/100,this},toHsv:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=p(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=f(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=f(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return m(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var c=[A(l(e).toString(16)),A(l(t).toString(16)),A(l(n).toString(16)),A(L(r))];if(o&&c[0].charAt(0)==c[0].charAt(1)&&c[1].charAt(0)==c[1].charAt(1)&&c[2].charAt(0)==c[2].charAt(1)&&c[3].charAt(0)==c[3].charAt(1))return c[0].charAt(0)+c[1].charAt(0)+c[2].charAt(0)+c[3].charAt(0);return c.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:l(this._r),g:l(this._g),b:l(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+l(this._r)+", "+l(this._g)+", "+l(this._b)+")":"rgba("+l(this._r)+", "+l(this._g)+", "+l(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:l(100*N(this._r,255))+"%",g:l(100*N(this._g,255))+"%",b:l(100*N(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+l(100*N(this._r,255))+"%, "+l(100*N(this._g,255))+"%, "+l(100*N(this._b,255))+"%)":"rgba("+l(100*N(this._r,255))+"%, "+l(100*N(this._g,255))+"%, "+l(100*N(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(P[m(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+v(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=b(e);n="#"+v(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return b(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(j,arguments)},brighten:function(){return this._applyModification(k,arguments)},darken:function(){return this._applyModification(y,arguments)},desaturate:function(){return this._applyModification(O,arguments)},saturate:function(){return this._applyModification(g,arguments)},greyscale:function(){return this._applyModification(h,arguments)},spin:function(){return this._applyModification(_,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(I,arguments)},complement:function(){return this._applyCombination(E,arguments)},monochromatic:function(){return this._applyCombination(B,arguments)},splitcomplement:function(){return this._applyCombination(w,arguments)},triad:function(){return this._applyCombination(C,arguments)},tetrad:function(){return this._applyCombination(S,arguments)}},b.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:M(e[r]));e=n}return b(e,t)},b.equals=function(e,t){return!(!e||!t)&&b(e).toRgbString()==b(t).toRgbString()},b.random=function(){return b.fromRatio({r:d(),g:d(),b:d()})},b.mix=function(e,t,n){n=0===n?0:n||50;var r=b(e).toRgb(),o=b(t).toRgb(),c=n/100;return b({r:(o.r-r.r)*c+r.r,g:(o.g-r.g)*c+r.g,b:(o.b-r.b)*c+r.b,a:(o.a-r.a)*c+r.a})},b.readability=function(e,t){var n=b(e),r=b(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},b.isReadable=function(e,t,n){var r,o,c=b.readability(e,t);switch(o=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=c>=4.5;break;case"AAlarge":o=c>=3;break;case"AAAsmall":o=c>=7}return o},b.mostReadable=function(e,t,n){var r,o,c,i,a=null,l=0;o=(n=n||{}).includeFallbackColors,c=n.level,i=n.size;for(var s=0;sl&&(l=r,a=b(t[s]));return b.isReadable(e,a,{level:c,size:i})||!o?a:(n.includeFallbackColors=!1,b.mostReadable(e,["#fff","#000"],n))};var x=b.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},P=b.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(x);function T(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function N(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=s(t,u(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function D(e){return s(1,u(0,e))}function R(e){return parseInt(e,16)}function A(e){return 1==e.length?"0"+e:""+e}function M(e){return e<=1&&(e=100*e+"%"),e}function L(e){return o.round(255*parseFloat(e)).toString(16)}function F(e){return R(e)/255}var V,H,z,U=(H="[\\s|\\(]+("+(V="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",z="[\\s|\\(]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",{CSS_UNIT:new RegExp(V),rgb:new RegExp("rgb"+H),rgba:new RegExp("rgba"+z),hsl:new RegExp("hsl"+H),hsla:new RegExp("hsla"+z),hsv:new RegExp("hsv"+H),hsva:new RegExp("hsva"+z),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function G(e){return!!U.CSS_UNIT.exec(e)}e.exports?e.exports=b:void 0===(r=function(){return b}.call(t,n,t,e))||(e.exports=r)}(Math)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(16),o=n(50),c=n(49),i=n(56),a=Object(c.a)({name:"Box",keys:["unstable_system"],propsAreEqual:function(e,t){var n=e.unstable_system,o=Object(r.a)(e,["unstable_system"]),c=t.unstable_system,a=Object(r.a)(t,["unstable_system"]);return!(n!==c&&!Object(i.a)(n,c))&&Object(i.a)(o,a)}});Object(o.a)({as:"div",useHook:a})},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(13);var o=Object(r.createContext)((function(e){return void 0===e&&(e="id"),(e?e+"-":"")+Math.random().toString(32).substr(2,6)}))},function(e,t){!function(){e.exports=this.wp.htmlEntities}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(57);function o(e){var t=Object(r.a)(e);if(!t)return!1;if(e.contains(t))return!0;var n=t.getAttribute("aria-activedescendant");return!!n&&(n===e.id||!!e.querySelector("#"+n))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=["button","color","file","image","reset","submit"];function o(e){if("BUTTON"===e.tagName)return!0;if("INPUT"===e.tagName){var t=e;return-1!==r.indexOf(t.type)}return!1}},function(e,t,n){"use strict";function r(e,t){return"matches"in e?e.matches(t):"msMatchesSelector"in e?e.msMatchesSelector(t):e.webkitMatchesSelector(t)}function o(e,t){if("closest"in e)return e.closest(t);do{if(r(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return l}));var c=n(57),i="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])";function a(e){return r(e,i)&&function(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0}(e)}function l(e){for(;e&&!a(e);)e=o(e,i);return e}function s(e){return Object(c.a)(e)===e}function u(e,t){var n=void 0===t?{}:t,r=n.isActive,o=void 0===r?s:r,c=n.preventScroll;return o(e)?-1:(e.focus({preventScroll:c}),o(e)?-1:requestAnimationFrame((function(){e.focus({preventScroll:c})})))}},function(e,t,n){"use strict";function r(e){return t=e.currentTarget,n=e.target,!(t===n||t.contains(n));var t,n}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(16),o=n(50),c=n(49),i=n(67),a=n(13),l=n(63),s=n(71),u=(n(81),n(46)),d=n(59),b=n(70),f=n(73),p=n(57),m=n(72);function v(e){return"undefined"!=typeof window&&-1!==window.navigator.userAgent.indexOf(e)}var O=v("Mac")&&!v("Chrome")&&(v("Safari")||v("Firefox"));function g(e){Object(b.a)(e)||e.focus()}var h=Object(c.a)({name:"Tabbable",compose:i.a,keys:["disabled","focusable"],useOptions:function(e,t){var n=t.disabled;return Object(r.b)({disabled:n},e)},useProps:function(e,t){var n=t.ref,o=t.tabIndex,c=t.onClick,i=t.onMouseDown,b=t.style,v=Object(r.a)(t,["ref","tabIndex","onClick","onMouseDown","style"]),h=Object(a.useRef)(null),j=Object(u.a)(c),k=Object(u.a)(i),y=e.disabled&&!e.focusable,_=Object(a.useState)(!0),E=_[0],C=_[1],S=E?o:o||0,w=e.disabled?Object(r.b)({pointerEvents:"none"},b):b,I=function(){if(O){var e=Object(a.useState)(null),t=e[0],n=e[1];return Object(a.useEffect)((function(){t&&(g(t),n(null))}),[t]),Object(a.useCallback)((function(e){var t=e.currentTarget;if(!Object(f.a)(e)&&Object(s.a)(t)){var r=Object(p.a)(t);if(r){var o="BODY"===r.tagName,c=Object(m.b)(t.parentElement);if(r===c||o&&!c)n(t);else if(c){c.addEventListener("focusin",(function(){return n(t)}),{once:!0})}else{r.addEventListener("blur",(function(){return g(t)}),{once:!0})}}}}),[])}}();Object(d.a)((function(){var e,t=h.current;t&&("BUTTON"!==(e=t).tagName&&"INPUT"!==e.tagName&&"SELECT"!==e.tagName&&"TEXTAREA"!==e.tagName&&"A"!==e.tagName&&"AUDIO"!==e.tagName&&"VIDEO"!==e.tagName&&C(!1))}),[]);var B=Object(a.useCallback)((function(t){var n;if(e.disabled)return t.stopPropagation(),void t.preventDefault();null===(n=j.current)||void 0===n||n.call(j,t)}),[e.disabled]),x=Object(a.useCallback)((function(t){var n;if(e.disabled)return t.stopPropagation(),void t.preventDefault();null===(n=k.current)||void 0===n||n.call(k,t),t.defaultPrevented||null==I||I(t)}),[e.disabled,I]);return Object(r.b)({ref:Object(l.a)(h,n),style: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,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(13),o=n(76),c=n(55);var i=function(e,t,n){void 0===n&&(n=t.children);var i=Object(r.useContext)(o.a);if(i.useCreateElement)return i.useCreateElement(e,t,n);if("string"==typeof e&&function(e){return"function"==typeof e}(n)){t.children;return n(Object(c.b)(t,["children"]))}return Object(r.createElement)(e,t,n)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));var r=n(2),o=n(0),c=Object(o.createContext)({name:"",isSelected:!1,focusedElement:null,setFocusedElement:r.noop,clientId:null}),i=c.Provider;function a(){return Object(o.useContext)(c)}},function(e,t,n){"use strict";n(108),n(13)},function(e,t,n){"use strict";function r(e){var t=void 0===e?{}:e,n=t.keyMap,r=t.onKey,o=t.stopPropagation,c=t.onKeyDown,i=t.shouldKeyDown,a=void 0===i?function(){return!0}:i,l=t.preventDefault,s=void 0===l||l;return function(e){if(n){var t,i="function"==typeof n?n(e):n,l="function"==typeof s?s(e):s,u="function"==typeof o?o(e):o;if(e.key in i){var d=i[e.key];if("function"==typeof d&&a(e))return l&&e.preventDefault(),u&&e.stopPropagation(),r&&r(e),void d(e)}if(c&&"current"in c)null===(t=c.current)||void 0===t||t.call(c,e);else null==c||c(e)}}}n.d(t,"a",(function(){return r}))},,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(16),o=n(50),c=n(49),i=n(13),a=n(71),l=(n(81),n(46)),s=n(54),u=n(74);var d=Object(c.a)({name:"Clickable",compose:u.a,keys:["unstable_clickOnEnter","unstable_clickOnSpace"],useOptions:function(e){var t=e.unstable_clickOnEnter,n=void 0===t||t,o=e.unstable_clickOnSpace,c=void 0===o||o,i=Object(r.a)(e,["unstable_clickOnEnter","unstable_clickOnSpace"]);return Object(r.b)({unstable_clickOnEnter:n,unstable_clickOnSpace:c},i)},useProps:function(e,t){var n=t.onKeyDown,o=t.onKeyUp,c=Object(r.a)(t,["onKeyDown","onKeyUp"]),u=Object(i.useState)(!1),d=u[0],b=u[1],f=Object(l.a)(n),p=Object(l.a)(o),m=Object(i.useCallback)((function(t){var n;if(null===(n=f.current)||void 0===n||n.call(f,t),!t.defaultPrevented&&!e.disabled&&!t.metaKey&&Object(s.a)(t)){var r=e.unstable_clickOnEnter&&"Enter"===t.key,o=e.unstable_clickOnSpace&&" "===t.key;if(r||o){if(function(e){var t=e.currentTarget;return!!e.isTrusted&&(Object(a.a)(t)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||"A"===t.tagName||"SELECT"===t.tagName)}(t))return;t.preventDefault(),r?t.currentTarget.click():o&&b(!0)}}}),[e.disabled,e.unstable_clickOnEnter,e.unstable_clickOnSpace]),v=Object(i.useCallback)((function(t){var n;if(null===(n=p.current)||void 0===n||n.call(p,t),!t.defaultPrevented&&!e.disabled&&!t.metaKey){var r=e.unstable_clickOnSpace&&" "===t.key;d&&r&&(b(!1),t.currentTarget.click())}}),[e.disabled,e.unstable_clickOnSpace,d]);return Object(r.b)({"data-active":d||void 0,onKeyDown:m,onKeyUp:v},c)}});Object(o.a)({as:"button",memo:!0,useHook:d})},,function(e,t){!function(){e.exports=this.wp.viewport}()},function(e,t){!function(){e.exports=this.wp.warning}()},,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(16),o=n(50),c=n(49),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(125);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(177);t.default=r.default},,function(e,t){!function(){e.exports=this.wp.notices}()},function(e,t){var n,r,o=e.exports={};function c(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===c||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:c}catch(e){n=c}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var l,s=[],u=!1,d=-1;function b(){u&&l&&(u=!1,l.length?s=l.concat(s):d=-1,s.length&&f())}function f(){if(!u){var e=a(b);u=!0;for(var t=s.length;t;){for(l=s,s=[];++d1)for(var n=1;n1?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{d=void 0!==f.lastTime?f.lastTime:t,h=void 0!==f.lastVelocity?f.lastVelocity:s.initialVelocity,t>d+64&&(d=t);for(var j=Math.floor(t-d),k=0;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()},d=u.arr(l.to)||u.fun(l.to);a?setTimeout((function(){r===n.guid&&(d?n.runAsync(l,s):n.diff(l).start(s))}),a):d?n.runAsync(l,s):n.diff(l).start(s)}))}else u.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,M.has(t)||M.add(t),A||(A=!0,E(P||L));return this},t.stop=function(e){return this.listeners.forEach((function(t){return t(e)})),this.listeners=[],this},t.pause=function(e){var t;return this.stop(!0),e&&(t=this,M.has(t)&&M.delete(t)),this},t.runAsync=function(e,t){var n=this,r=(e.delay,c(e,["delay"])),i=this.local,a=Promise.resolve(void 0);if(u.arr(r.to))for(var l=function(e){var t=e,c=o({},r,m(r.to[t]));u.arr(c.config)&&(c.config=c.config[t]),a=a.then((function(){if(i===n.guid)return new Promise((function(e){return n.diff(c).start(e)}))}))},s=0;s=r.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 de(e){return(parseFloat(e)%360+360)%360/360}function be(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function fe(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function pe(e){var t,n,r="number"==typeof(t=e)?t>>>0===t&&t>=0&&t<=4294967295?t:null:(n=ie.exec(t))?parseInt(n[1]+"ff",16)>>>0:Q.hasOwnProperty(t)?Q[t]:(n=ee.exec(t))?(ue(n[1])<<24|ue(n[2])<<16|ue(n[3])<<8|255)>>>0:(n=te.exec(t))?(ue(n[1])<<24|ue(n[2])<<16|ue(n[3])<<8|be(n[4]))>>>0:(n=oe.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+"ff",16)>>>0:(n=ae.exec(t))?parseInt(n[1],16)>>>0:(n=ce.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+n[4]+n[4],16)>>>0:(n=ne.exec(t))?(255|se(de(n[1]),fe(n[2]),fe(n[3])))>>>0:(n=re.exec(t))?(se(de(n[1]),fe(n[2]),fe(n[3]))|be(n[4]))>>>0:null;return null===r?e:"rgba("+((4278190080&(r=r||0))>>>24)+", "+((16711680&r)>>>16)+", "+((65280&r)>>>8)+", "+(255&r)/255+")"}var me=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ve=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Oe=new RegExp("("+Object.keys(Q).join("|")+")","g"),ge={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","Ms","Moz","O"];function je(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ge.hasOwnProperty(e)&&ge[e]?(""+t).trim():t+"px"}ge=Object.keys(ge).reduce((function(e,t){return he.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),ge);var ke={};N((function(e){return new X(e)})),B("div"),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("--"),d=je(s,n[s],u);"float"===s&&(s="cssFloat"),u?e.style.setProperty(s,d):e.style[s]=d}for(var b in a){var f=l?b:ke[b]||(ke[b]=b.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(f)&&e.setAttribute(f,a[b])}}),(function(e){return e}));var ye,_e,Ee=(ye=function(e){return i.forwardRef((function(t,n){var r=d(),l=i.useRef(!0),s=i.useRef(null),b=i.useRef(null),f=i.useCallback((function(e){var t=s.current;s.current=new R(e,(function(){var e=!1;b.current&&(e=v.fn(b.current,s.current.getAnimatedValue())),b.current&&!1!==e||r()})),t&&t.detach()}),[]);i.useEffect((function(){return function(){l.current=!1,s.current&&s.current.detach()}}),[]),i.useImperativeHandle(n,(function(){return T(b,l,r)})),f(t);var p,m=s.current.getValue(),O=(m.scrollTop,m.scrollLeft,c(m,["scrollTop","scrollLeft"])),g=(p=e,!u.fun(p)||p.prototype instanceof a.Component?function(e){return b.current=function(e,t){return t&&(u.fun(t)?t(e):u.obj(t)&&(t.current=e)),e}(e,n)}:void 0);return a.createElement(e,o({},O,{ref:g}))}))},void 0===(_e=!1)&&(_e=!0),function(e){return(u.arr(e)?e:Object.keys(e)).reduce((function(e,t){var n=_e?t[0].toLowerCase()+t.substring(1):t;return e[n]=ye(n),e}),ye)}),Ce=Ee(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]);t.apply=Ee,t.config={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},t.update=L,t.animated=Ce,t.a=Ce,t.interpolate=function(e,t,n){return e&&new V(e,t,n)},t.Globals=D,t.useSpring=function(e){var t=u.fun(e),n=W(1,t?e:[e]),r=n[0],o=n[1],c=n[2];return t?[r[0],o,c]:r},t.useTrail=function(e,t){var n=i.useRef(!1),r=u.fun(t),c=p(t),a=i.useRef(),l=W(e,(function(e,t){return 0===e&&(a.current=[]),a.current.push(t),o({},c,{config:p(c.config,e),attach:e>0&&function(){return a.current[e-1]}})})),s=l[0],d=l[1],b=l[2],f=i.useMemo((function(){return function(e){return d((function(t,n){e.reverse;var r=e.reverse?t+1:t-1,i=a.current[r];return o({},e,{config:p(e.config||c.config,t),attach:i&&function(){return i}})}))}}),[e,c.reverse]);return i.useEffect((function(){n.current&&!r&&f(t)})),i.useEffect((function(){n.current=!0}),[]),r?[s,f,b]:s},t.useTransition=function(e,t,n){var r=o({items:e,keys:t||function(e){return e}},n),a=$(r),l=a.lazy,s=void 0!==l&&l,u=(a.unique,a.reset),b=void 0!==u&&u,f=(a.enter,a.leave,a.update,a.onDestroyed),m=(a.keys,a.items,a.onFrame),v=a.onRest,O=a.onStart,g=a.ref,h=c(a,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),j=d(),k=i.useRef(!1),y=i.useRef({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!r.ref,instances:!k.current&&new Map,forceUpdate:j});return i.useImperativeHandle(r.ref,(function(){return{start:function(){return Promise.all(Array.from(y.current.instances).map((function(e){var t=e[1];return new Promise((function(e){return t.start(e)}))})))},stop:function(e){return Array.from(y.current.instances).forEach((function(t){return t[1].stop(e)}))},get controllers(){return Array.from(y.current.instances).map((function(e){return e[1]}))}}})),y.current=function(e,t){var n=e.first,r=e.prevProps,i=c(e,["first","prevProps"]),a=$(t),l=a.items,s=a.keys,u=a.initial,d=a.from,b=a.enter,f=a.leave,m=a.update,v=a.trail,O=void 0===v?0:v,g=a.unique,h=a.config,j=a.order,k=void 0===j?["enter","leave","update"]:j,y=$(r),_=y.keys,E=y.items,C=o({},i.current),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):K++,item:o,trail:N+=O,config:p(h,o,c),from:p(n&&void 0!==u?u||{}:d,o),to:p(b,o)}}));break;case"leave":P.forEach((function(e){var t=_.indexOf(e),n=E[t];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 D=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=D.findIndex((function(e){return e.originalKey===n})))&&(t+=1),t=Math.max(0,t),D=[].concat(D.slice(0,t),[r],D.slice(t))})),o({},i,{changed:x.length||P.length||T.length,first:n&&0===x.length,transitions:D,current:C,deleted: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),d=o({},h,{to:r,from:n,config:c,ref:g,onRest:function(n){y.current.mounted&&(e.destroyed&&(g||s||Y(y,a),f&&f(l)),!Array.from(y.current.instances).some((function(e){return!e[1].idle}))&&(g||s)&&y.current.deleted.length>0&&Y(y),v&&v(l,t,n))},onStart:O&&function(){return O(l,t)},onFrame:m&&function(e){return m(l,t,e)},delay:i,reset:b&&"enter"===t});u.update(d),y.current.paused||u.start()})),i.useEffect((function(){return y.current.mounted=k.current=!0,function(){y.current.mounted=k.current=!1,Array.from(y.current.instances).map((function(e){return e[1].destroy()})),y.current.instances.clear()}}),[]),y.current.transitions.map((function(e){var t=e.item,n=e.slot,r=e.key;return{item:t,key:r,state:n,props:y.current.instances.get(r).getValues()}}))},t.useChain=function(e,t,n){void 0===n&&(n=1e3);var r=i.useRef();i.useEffect((function(){u.equ(e,r.current)?e.forEach((function(e){var t=e.current;return t&&t.start()})):t?e.forEach((function(e,r){var c=e.current;if(c){var i=c.controllers;if(i.length){var a=n*t[r];i.forEach((function(e){e.queue=e.queue.map((function(e){return o({},e,{delay:e.delay+a})})),e.start()}))}}})):e.reduce((function(e,t,n){var r=t.current;return e.then((function(){return r.start()}))}),Promise.resolve()),r.current=e}))},t.useSprings=W},,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return E})),n.d(t,"b",(function(){return _}));var r=n(16),o=n(50),c=n(49),i=n(67),a=n(13),l=n(63),s=(n(81),n(46)),u=n(54),d=n(57),b=n(74),f=n(79),p=n(82),m=n(48),v=n(96),O=n(104),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:[b.a],useState:g.g,useOptions:function(e){return Object(r.b)(Object(r.b)({},e),{},{currentId:Object(g.e)(e)})},useProps:function(e,t){var n=t.ref,o=t.onFocus,c=t.onBlur,i=t.onKeyDown,b=t.onKeyUp,f=Object(r.a)(t,["ref","onFocus","onBlur","onKeyDown","onKeyUp"]),O=Object(a.useRef)(null),_=Object(g.d)(e.items,e.currentId),E=Object(a.useRef)(void 0),C=Object(s.a)(o),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,_,b),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(d.a)(e.target):e.relatedTarget}(t),i=y(e.items,c);if(Object(u.a)(t)&&i)return(null===(r=E.current)||void 0===r?void 0:r.ref.current)&&Object(v.a)(E.current.ref.current,"blur",t),E.current=_,void t.stopPropagation();o?E.current=_:((null==_?void 0:_.ref.current)&&Object(v.a)(_.ref.current,"blur",t),E.current=void 0)}null===(n=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(b.a)(e,t,!0);return e.unstable_virtual||null===e.currentId?n:Object(r.b)(Object(r.b)({},t),{},{ref:n.ref})}}),E=Object(o.a)({as:"div",useHook:_,useCreateElement:function(e,t,n){return Object(f.a)(e,t,n)}})},function(e,t,n){"use strict";n.d(t,"a",(function(){return y})),n.d(t,"b",(function(){return k}));var r=n(16),o=n(50),c=n(49),i=n(13),a=n(63),l=(n(81),n(46)),s=n(54),u=n(70),d=n(73),b=n(72),f=n(87),p=n(82),m=n(48),v=n(51),O=n(95),g=n(97),h=n(98);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),D=Object(l.a)(y),R=!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(d.a)(t)&&C&&!function(e,t){if(Object(s.a)(e))return!1;for(var n,o=Object(r.c)(t);!(n=o()).done;){if(n.value.ref.current===e.target)return!0}return!1}(t,e.items)&&(null===(o=e.setCurrentId)||void 0===o||o.call(e,C),e.unstable_virtual&&e.baseId&&Object(s.a)(t))){var c=t.target,i=Object(m.a)(c).getElementById(e.baseId);i&&(B.current=!0,Object(b.a)(i))}}),[C,e.items,e.setCurrentId,e.unstable_virtual,e.baseId]),M=Object(i.useCallback)((function(t){var n;if(e.unstable_virtual&&B.current)return B.current=!1,t.preventDefault(),void t.stopPropagation();null===(n=T.current)||void 0===n||n.call(T,t)}),[e.unstable_virtual]),L=Object(i.useCallback)((function(e){var t;if(null===(t=N.current)||void 0===t||t.call(N,e),Object(s.a)(e)&&1===e.key.length&&" "!==e.key){var n=j(e.currentTarget);if(n&&Object(g.a)(n)){n.focus();var r=e.key;window.requestAnimationFrame((function(){Object(h.a)(n,r)}))}}}),[]),F=Object(i.useMemo)((function(){return Object(p.a)({onKeyDown:L,stopPropagation:!0,shouldKeyDown:s.a,keyMap:function(){var t="horizontal"!==e.orientation,n="vertical"!==e.orientation,r=!!(null==x?void 0:x.groupId),o=function(e){var t=j(e.currentTarget);t&&Object(g.a)(t)&&Object(h.a)(t,"")},c=e.up&&function(){return e.up()},i=e.next&&function(){return e.next()},a=e.down&&function(){return e.down()},l=e.previous&&function(){return e.previous()};return{Delete:o,Backspace:o,ArrowUp:(r||t)&&c,ArrowRight:(r||n)&&i,ArrowDown:(r||t)&&a,ArrowLeft:(r||n)&&l,Home:function(t){var n,o;!r||t.ctrlKey?null===(n=e.first)||void 0===n||n.call(e):null===(o=e.previous)||void 0===o||o.call(e,!0)},End:function(t){var n,o;!r||t.ctrlKey?null===(n=e.last)||void 0===n||n.call(e):null===(o=e.next)||void 0===o||o.call(e,!0)},PageUp:function(){var t,n;r?null===(t=e.up)||void 0===t||t.call(e,!0):null===(n=e.first)||void 0===n||n.call(e)},PageDown:function(){var t,n;r?null===(t=e.down)||void 0===t||t.call(e,!0):null===(n=e.last)||void 0===n||n.call(e)}}}})}),[L,e.orientation,x,e.up,e.next,e.down,e.previous,e.first,e.last]),V=Object(i.useCallback)((function(e){var t;if(null===(t=D.current)||void 0===t||t.call(D,e),!e.defaultPrevented){var n=j(e.currentTarget);n&&!Object(u.a)(n)&&n.focus()}}),[]);return Object(r.b)({ref:Object(a.a)(E,o),id:C,tabIndex:R?f:-1,"aria-selected":!(!e.unstable_virtual||!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(48);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(182)},function(e,t){!function(){e.exports=this.wp.wordcount}()},,function(e,t){!function(){e.exports=this.wp.shortcode}()},,,function(e,t,n){"use strict";var r=n(8),o=n(14),c=n(0),i=n(2),a=n(3),l=n(167),s=Object(a.createSlotFill)("BlockControls"),u=s.Fill,d=s.Slot;var b=function(e){return"BlockControls".concat(e?"-expanded":"")},f=function(e){var t=e.controls,n=e.__experimentalIsExpanded,r=e.children;return Object(l.a)()?Object(c.createElement)(u,{name:b(n)},(function(e){var n=Object(i.isEmpty)(e)?null:e;return Object(c.createElement)(a.__experimentalToolbarContext.Provider,{value:n},Object(c.createElement)(a.ToolbarGroup,{controls:t}),r)})):null};f.Slot=function(e){var t=e.__experimentalIsExpanded,n=void 0!==t&&t,i=Object(o.a)(e,["__experimentalIsExpanded"]),l=Object(c.useContext)(a.__experimentalToolbarContext);return Object(c.createElement)(d,Object(r.a)({name:b(n)},i,{fillProps:l}))},t.a=f},,,,,,,,,,function(e,t,n){"use strict";var r=n(5),o=n(14),c=n(0);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.a=function(e){var t=e.icon,n=e.size,a=void 0===n?24:n,l=Object(o.a)(e,["icon","size"]);return Object(c.cloneElement)(t,function(e){for(var t=1;t=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,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";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(27);var o=n(37),c=n(30);function i(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(o.a)(e)||Object(c.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t){!function(){e.exports=this.wp.keycodes}()},function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return r}))},function(e,t){!function(){e.exports=this.regeneratorRuntime}()},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){for(var n=0;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";function r(e,t,n,r,o,c,i){try{var a=e[c](i),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,c){var i=e.apply(t,n);function a(e){r(i,o,c,a,l,"next",e)}function l(e){r(i,o,c,a,l,"throw",e)}a(void 0)}))}}n.d(t,"a",(function(){return o}))},function(e,t){!function(){e.exports=this.wp.a11y}()},,function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(13),o=n(59);function c(e){var t=Object(r.useRef)(e);return Object(o.a)((function(){t.current=e})),t}},function(e,t,n){"use strict";function r(e){return e?e.ownerDocument||e:window.document}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(13),o=n(76);function c(e,t){Object(r.useDebugValue)(e);var n=Object(r.useContext)(o.a);return null!=n[e]?n[e]:t}var i=n(55);var a=n(56);function l(e){var t,n,o,l=(o=e.compose,Array.isArray(o)?o:void 0!==o?[o]:[]),s=function(t,n){if(e.useOptions&&(t=e.useOptions(t,n)),e.name&&(t=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var o="use"+e+"Options";Object(r.useDebugValue)(o);var a=c(o);return a?Object(i.a)(Object(i.a)({},t),a(t,n)):t}(e.name,t,n)),e.compose)for(var o,a=Object(i.c)(l);!(o=a()).done;){t=o.value.__useOptions(t,n)}return t},u=function(t,n,o){if(void 0===t&&(t={}),void 0===n&&(n={}),void 0===o&&(o=!1),o||(t=s(t,n)),e.useProps&&(n=e.useProps(t,n)),e.name&&(n=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var o="use"+e+"Props";Object(r.useDebugValue)(o);var i=c(o);return i?i(t,n):n}(e.name,t,n)),e.compose)if(e.useComposeOptions&&(t=e.useComposeOptions(t,n)),e.useComposeProps)n=e.useComposeProps(t,n);else for(var a,u=Object(i.c)(l);!(a=u()).done;){n=(0,a.value)(t,n,!0)}var d={},b=n||{};for(var f in b)void 0!==b[f]&&(d[f]=b[f]);return d};u.__useOptions=s;var d=l.reduce((function(e,t){return e.push.apply(e,t.__keys||[]),e}),[]);return u.__keys=[].concat(d,(null===(t=e.useState)||void 0===t?void 0:t.__keys)||[],e.keys||[]),u.unstable_propsAreEqual=e.propsAreEqual||(null===(n=l[0])||void 0===n?void 0:n.unstable_propsAreEqual)||a.a,u}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(13),o=n(55),c=n(79);function i(e,t){for(var n={},r={},o=0,c=Object.keys(e);o=0?n[i]=e[i]:r[i]=e[i]}return[n,r]}var a=n(56);function l(e){var t,n=e.as,l=e.useHook,s=e.memo,u=e.propsAreEqual,d=void 0===u?null==l?void 0:l.unstable_propsAreEqual:u,b=e.keys,f=void 0===b?(null==l?void 0:l.__keys)||[]:b,p=e.useCreateElement,m=void 0===p?c.a:p,v=function(e,t){var r=e.as,c=void 0===r?n:r,a=Object(o.b)(e,["as"]);if(l){var s,u=i(a,f),d=u[0],b=u[1],p=l(d,Object(o.a)({ref:t},b)),v=p.wrapElement,O=Object(o.b)(p,["wrapElement"]),g=(null===(s=c.render)||void 0===s?void 0:s.__keys)||c.__keys,h=g&&i(a,g)[0],j=h?Object(o.a)(Object(o.a)({},O),h):O,k=m(c,j);return v?v(k):k}return m(c,Object(o.a)({ref:t},a))};return t=v,v=Object(r.forwardRef)(t),s&&(v=function(e,t){return Object(r.memo)(e,t)}(v,d)),v.__keys=f,v.unstable_propsAreEqual=d||a.a,v}},function(e,t,n){"use strict";n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return O})),n.d(t,"c",(function(){return p})),n.d(t,"d",(function(){return f})),n.d(t,"e",(function(){return h})),n.d(t,"f",(function(){return s})),n.d(t,"g",(function(){return S}));var r=n(15),o=n(13),c=n(59),i=n(62),a=n(61),l=n(65);function s(e){return e.slice().reverse()}function u(e,t){return Boolean(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function d(e,t){return e.findIndex((function(e){return!(!e.ref.current||!t.ref.current)&&u(t.ref.current,e.ref.current)}))}function b(e,t){return t?e.find((function(e){return!e.disabled&&e.id!==t})):e.find((function(e){return!e.disabled}))}function f(e,t){if(t)return null==e?void 0:e.find((function(e){return e.id===t&&!e.disabled}))}function p(e){for(var t,n=[[]],o=function(){var e=t.value,r=n.find((function(t){return!t[0]||t[0].groupId===e.groupId}));r?r.push(e):n.push([e])},c=Object(r.c)(e);!(t=c()).done;)o();return n}function m(e){for(var t,n=0,o=Object(r.c)(e);!(t=o()).done;){var c=t.value.length;c>n&&(n=c)}return n}function v(e){for(var t=p(e),n=m(t),o=[],c=0;c=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),d=!0,b="hsl"),e.hasOwnProperty("a")&&(n=e.a));var f,p,m;return n=T(n),{ok:d,format:e.format||b,r:s(255,u(t.r,0)),g:s(255,u(t.g,0)),b:s(255,u(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=l(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=l(this._r)),this._g<1&&(this._g=l(this._g)),this._b<1&&(this._b=l(this._b)),this._ok=n.ok,this._tc_id=a++}function f(e,t,n){e=N(e,255),t=N(t,255),n=N(n,255);var r,o,c=u(e,t,n),i=s(e,t,n),a=(c+i)/2;if(c==i)r=o=0;else{var l=c-i;switch(o=a>.5?l/(2-c-i):l/(c+i),c){case e:r=(t-n)/l+(t>1)+720)%360;--t;)r.h=(r.h+o)%360,c.push(b(r));return c}function B(e,t){t=t||6;for(var n=b(e).toHsv(),r=n.h,o=n.s,c=n.v,i=[],a=1/t;t--;)i.push(b({h:r,s:o,v:c})),c=(c+a)%1;return i}b.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:o.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=T(e),this._roundA=l(100*this._a)/100,this},toHsv:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=p(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=f(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=f(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return m(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var c=[A(l(e).toString(16)),A(l(t).toString(16)),A(l(n).toString(16)),A(L(r))];if(o&&c[0].charAt(0)==c[0].charAt(1)&&c[1].charAt(0)==c[1].charAt(1)&&c[2].charAt(0)==c[2].charAt(1)&&c[3].charAt(0)==c[3].charAt(1))return c[0].charAt(0)+c[1].charAt(0)+c[2].charAt(0)+c[3].charAt(0);return c.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:l(this._r),g:l(this._g),b:l(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+l(this._r)+", "+l(this._g)+", "+l(this._b)+")":"rgba("+l(this._r)+", "+l(this._g)+", "+l(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:l(100*N(this._r,255))+"%",g:l(100*N(this._g,255))+"%",b:l(100*N(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+l(100*N(this._r,255))+"%, "+l(100*N(this._g,255))+"%, "+l(100*N(this._b,255))+"%)":"rgba("+l(100*N(this._r,255))+"%, "+l(100*N(this._g,255))+"%, "+l(100*N(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(P[m(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+v(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=b(e);n="#"+v(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return b(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(j,arguments)},brighten:function(){return this._applyModification(k,arguments)},darken:function(){return this._applyModification(y,arguments)},desaturate:function(){return this._applyModification(O,arguments)},saturate:function(){return this._applyModification(g,arguments)},greyscale:function(){return this._applyModification(h,arguments)},spin:function(){return this._applyModification(_,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(I,arguments)},complement:function(){return this._applyCombination(E,arguments)},monochromatic:function(){return this._applyCombination(B,arguments)},splitcomplement:function(){return this._applyCombination(S,arguments)},triad:function(){return this._applyCombination(C,arguments)},tetrad:function(){return this._applyCombination(w,arguments)}},b.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:M(e[r]));e=n}return b(e,t)},b.equals=function(e,t){return!(!e||!t)&&b(e).toRgbString()==b(t).toRgbString()},b.random=function(){return b.fromRatio({r:d(),g:d(),b:d()})},b.mix=function(e,t,n){n=0===n?0:n||50;var r=b(e).toRgb(),o=b(t).toRgb(),c=n/100;return b({r:(o.r-r.r)*c+r.r,g:(o.g-r.g)*c+r.g,b:(o.b-r.b)*c+r.b,a:(o.a-r.a)*c+r.a})},b.readability=function(e,t){var n=b(e),r=b(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},b.isReadable=function(e,t,n){var r,o,c=b.readability(e,t);switch(o=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=c>=4.5;break;case"AAlarge":o=c>=3;break;case"AAAsmall":o=c>=7}return o},b.mostReadable=function(e,t,n){var r,o,c,i,a=null,l=0;o=(n=n||{}).includeFallbackColors,c=n.level,i=n.size;for(var s=0;sl&&(l=r,a=b(t[s]));return b.isReadable(e,a,{level:c,size:i})||!o?a:(n.includeFallbackColors=!1,b.mostReadable(e,["#fff","#000"],n))};var x=b.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},P=b.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(x);function T(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function N(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=s(t,u(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function D(e){return s(1,u(0,e))}function R(e){return parseInt(e,16)}function A(e){return 1==e.length?"0"+e:""+e}function M(e){return e<=1&&(e=100*e+"%"),e}function L(e){return o.round(255*parseFloat(e)).toString(16)}function F(e){return R(e)/255}var V,H,z,U=(H="[\\s|\\(]+("+(V="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",z="[\\s|\\(]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",{CSS_UNIT:new RegExp(V),rgb:new RegExp("rgb"+H),rgba:new RegExp("rgba"+z),hsl:new RegExp("hsl"+H),hsla:new RegExp("hsla"+z),hsv:new RegExp("hsv"+H),hsva:new RegExp("hsva"+z),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function G(e){return!!U.CSS_UNIT.exec(e)}e.exports?e.exports=b:void 0===(r=function(){return b}.call(t,n,t,e))||(e.exports=r)}(Math)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(15),o=n(51),c=n(50),i=n(56),a=Object(c.a)({name:"Box",keys:["unstable_system"],propsAreEqual:function(e,t){var n=e.unstable_system,o=Object(r.a)(e,["unstable_system"]),c=t.unstable_system,a=Object(r.a)(t,["unstable_system"]);return!(n!==c&&!Object(i.a)(n,c))&&Object(i.a)(o,a)}});Object(o.a)({as:"div",useHook:a})},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(13);var o=Object(r.createContext)((function(e){return void 0===e&&(e="id"),(e?e+"-":"")+Math.random().toString(32).substr(2,6)}))},function(e,t){!function(){e.exports=this.wp.htmlEntities}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(57);function o(e){var t=Object(r.a)(e);if(!t)return!1;if(e.contains(t))return!0;var n=t.getAttribute("aria-activedescendant");return!!n&&(n===e.id||!!e.querySelector("#"+n))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=["button","color","file","image","reset","submit"];function o(e){if("BUTTON"===e.tagName)return!0;if("INPUT"===e.tagName){var t=e;return-1!==r.indexOf(t.type)}return!1}},function(e,t,n){"use strict";function r(e,t){return"matches"in e?e.matches(t):"msMatchesSelector"in e?e.msMatchesSelector(t):e.webkitMatchesSelector(t)}function o(e,t){if("closest"in e)return e.closest(t);do{if(r(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return l}));var c=n(57),i="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])";function a(e){return r(e,i)&&function(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0}(e)}function l(e){for(;e&&!a(e);)e=o(e,i);return e}function s(e){return Object(c.a)(e)===e}function u(e,t){var n=void 0===t?{}:t,r=n.isActive,o=void 0===r?s:r,c=n.preventScroll;return o(e)?-1:(e.focus({preventScroll:c}),o(e)?-1:requestAnimationFrame((function(){e.focus({preventScroll:c})})))}},function(e,t,n){"use strict";function r(e){return t=e.currentTarget,n=e.target,!(t===n||t.contains(n));var t,n}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(15),o=n(51),c=n(50),i=n(67),a=n(13),l=n(63),s=n(71),u=(n(81),n(48)),d=n(59),b=n(70),f=n(73),p=n(57),m=n(72);function v(e){return"undefined"!=typeof window&&-1!==window.navigator.userAgent.indexOf(e)}var O=v("Mac")&&!v("Chrome")&&(v("Safari")||v("Firefox"));function g(e){Object(b.a)(e)||e.focus()}var h=Object(c.a)({name:"Tabbable",compose:i.a,keys:["disabled","focusable"],useOptions:function(e,t){var n=t.disabled;return Object(r.b)({disabled:n},e)},useProps:function(e,t){var n=t.ref,o=t.tabIndex,c=t.onClick,i=t.onMouseDown,b=t.style,v=Object(r.a)(t,["ref","tabIndex","onClick","onMouseDown","style"]),h=Object(a.useRef)(null),j=Object(u.a)(c),k=Object(u.a)(i),y=e.disabled&&!e.focusable,_=Object(a.useState)(!0),E=_[0],C=_[1],w=E?o:o||0,S=e.disabled?Object(r.b)({pointerEvents:"none"},b):b,I=function(){if(O){var e=Object(a.useState)(null),t=e[0],n=e[1];return Object(a.useEffect)((function(){t&&(g(t),n(null))}),[t]),Object(a.useCallback)((function(e){var t=e.currentTarget;if(!Object(f.a)(e)&&Object(s.a)(t)){var r=Object(p.a)(t);if(r){var o="BODY"===r.tagName,c=Object(m.b)(t.parentElement);if(r===c||o&&!c)n(t);else if(c){c.addEventListener("focusin",(function(){return n(t)}),{once:!0})}else{r.addEventListener("blur",(function(){return g(t)}),{once:!0})}}}}),[])}}();Object(d.a)((function(){var e,t=h.current;t&&("BUTTON"!==(e=t).tagName&&"INPUT"!==e.tagName&&"SELECT"!==e.tagName&&"TEXTAREA"!==e.tagName&&"A"!==e.tagName&&"AUDIO"!==e.tagName&&"VIDEO"!==e.tagName&&C(!1))}),[]);var B=Object(a.useCallback)((function(t){var n;if(e.disabled)return t.stopPropagation(),void t.preventDefault();null===(n=j.current)||void 0===n||n.call(j,t)}),[e.disabled]),x=Object(a.useCallback)((function(t){var n;if(e.disabled)return t.stopPropagation(),void t.preventDefault();null===(n=k.current)||void 0===n||n.call(k,t),t.defaultPrevented||null==I||I(t)}),[e.disabled,I]);return Object(r.b)({ref:Object(l.a)(h,n),style:S,tabIndex:y?void 0:w,disabled:!(!y||!E)||void 0,"aria-disabled":!!e.disabled||void 0,onClick:B,onMouseDown:x},v)}});Object(o.a)({as:"div",useHook:h})},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(13),o=Object(r.createContext)({})},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(13),o=n(76),c=n(55);var i=function(e,t,n){void 0===n&&(n=t.children);var i=Object(r.useContext)(o.a);if(i.useCreateElement)return i.useCreateElement(e,t,n);if("string"==typeof e&&function(e){return"function"==typeof e}(n)){t.children;return n(Object(c.b)(t,["children"]))}return Object(r.createElement)(e,t,n)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));var r=n(2),o=n(0),c=Object(o.createContext)({name:"",isSelected:!1,focusedElement:null,setFocusedElement:r.noop,clientId:null}),i=c.Provider;function a(){return Object(o.useContext)(c)}},function(e,t,n){"use strict";n(108),n(13)},function(e,t,n){"use strict";function r(e){var t=void 0===e?{}:e,n=t.keyMap,r=t.onKey,o=t.stopPropagation,c=t.onKeyDown,i=t.shouldKeyDown,a=void 0===i?function(){return!0}:i,l=t.preventDefault,s=void 0===l||l;return function(e){if(n){var t,i="function"==typeof n?n(e):n,l="function"==typeof s?s(e):s,u="function"==typeof o?o(e):o;if(e.key in i){var d=i[e.key];if("function"==typeof d&&a(e))return l&&e.preventDefault(),u&&e.stopPropagation(),r&&r(e),void d(e)}if(c&&"current"in c)null===(t=c.current)||void 0===t||t.call(c,e);else null==c||c(e)}}}n.d(t,"a",(function(){return r}))},,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(15),o=n(51),c=n(50),i=n(13),a=n(71),l=(n(81),n(48)),s=n(54),u=n(74);var d=Object(c.a)({name:"Clickable",compose:u.a,keys:["unstable_clickOnEnter","unstable_clickOnSpace"],useOptions:function(e){var t=e.unstable_clickOnEnter,n=void 0===t||t,o=e.unstable_clickOnSpace,c=void 0===o||o,i=Object(r.a)(e,["unstable_clickOnEnter","unstable_clickOnSpace"]);return Object(r.b)({unstable_clickOnEnter:n,unstable_clickOnSpace:c},i)},useProps:function(e,t){var n=t.onKeyDown,o=t.onKeyUp,c=Object(r.a)(t,["onKeyDown","onKeyUp"]),u=Object(i.useState)(!1),d=u[0],b=u[1],f=Object(l.a)(n),p=Object(l.a)(o),m=Object(i.useCallback)((function(t){var n;if(null===(n=f.current)||void 0===n||n.call(f,t),!t.defaultPrevented&&!e.disabled&&!t.metaKey&&Object(s.a)(t)){var r=e.unstable_clickOnEnter&&"Enter"===t.key,o=e.unstable_clickOnSpace&&" "===t.key;if(r||o){if(function(e){var t=e.currentTarget;return!!e.isTrusted&&(Object(a.a)(t)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||"A"===t.tagName||"SELECT"===t.tagName)}(t))return;t.preventDefault(),r?t.currentTarget.click():o&&b(!0)}}}),[e.disabled,e.unstable_clickOnEnter,e.unstable_clickOnSpace]),v=Object(i.useCallback)((function(t){var n;if(null===(n=p.current)||void 0===n||n.call(p,t),!t.defaultPrevented&&!e.disabled&&!t.metaKey){var r=e.unstable_clickOnSpace&&" "===t.key;d&&r&&(b(!1),t.currentTarget.click())}}),[e.disabled,e.unstable_clickOnSpace,d]);return Object(r.b)({"data-active":d||void 0,onKeyDown:m,onKeyUp:v},c)}});Object(o.a)({as:"button",memo:!0,useHook:d})},,function(e,t){!function(){e.exports=this.wp.warning}()},,function(e,t){!function(){e.exports=this.wp.notices}()},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(15),o=n(51),c=n(50),i=n(13),a=n(68),l=n(65),s=Object(c.a)({useState:l.a,keys:["id"],useOptions:function(e,t){var n=Object(i.useContext)(a.a),o=Object(i.useState)((function(){return e.unstable_idCountRef?(e.unstable_idCountRef.current+=1,"-"+e.unstable_idCountRef.current):e.baseId?"-"+n(""):""}))[0],c=Object(i.useMemo)((function(){return e.baseId||n()}),[e.baseId,n]),l=t.id||e.id||""+c+o;return Object(r.b)(Object(r.b)({},e),{},{id:l})},useProps:function(e,t){return Object(r.b)({id:e.id},t)}});Object(o.a)({as:"div",useHook:s})},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(126);function o(e,t,n){return e.dispatchEvent(Object(r.a)(e,t,n))}},function(e,t,n){"use strict";function r(e){try{var t=e instanceof HTMLInputElement&&null!==e.selectionStart,n="TEXTAREA"===e.tagName,r="true"===e.contentEditable;return t||n||r||!1}catch(e){return!1}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){e.value=t}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";t.__esModule=!0;var r=n(180);t.default=r.default},function(e,t){!function(){e.exports=this.wp.viewport}()},function(e,t){var n,r,o=e.exports={};function c(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===c||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:c}catch(e){n=c}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var l,s=[],u=!1,d=-1;function b(){u&&l&&(u=!1,l.length?s=l.concat(s):d=-1,s.length&&f())}function f(){if(!u){var e=a(b);u=!0;for(var t=s.length;t;){for(l=s,s=[];++d1)for(var n=1;n1?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{d=void 0!==f.lastTime?f.lastTime:t,h=void 0!==f.lastVelocity?f.lastVelocity:s.initialVelocity,t>d+64&&(d=t);for(var j=Math.floor(t-d),k=0;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()},d=u.arr(l.to)||u.fun(l.to);a?setTimeout((function(){r===n.guid&&(d?n.runAsync(l,s):n.diff(l).start(s))}),a):d?n.runAsync(l,s):n.diff(l).start(s)}))}else u.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,M.has(t)||M.add(t),A||(A=!0,E(P||L));return this},t.stop=function(e){return this.listeners.forEach((function(t){return t(e)})),this.listeners=[],this},t.pause=function(e){var t;return this.stop(!0),e&&(t=this,M.has(t)&&M.delete(t)),this},t.runAsync=function(e,t){var n=this,r=(e.delay,c(e,["delay"])),i=this.local,a=Promise.resolve(void 0);if(u.arr(r.to))for(var l=function(e){var t=e,c=o({},r,m(r.to[t]));u.arr(c.config)&&(c.config=c.config[t]),a=a.then((function(){if(i===n.guid)return new Promise((function(e){return n.diff(c).start(e)}))}))},s=0;s=r.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 de(e){return(parseFloat(e)%360+360)%360/360}function be(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function fe(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function pe(e){var t,n,r="number"==typeof(t=e)?t>>>0===t&&t>=0&&t<=4294967295?t:null:(n=ie.exec(t))?parseInt(n[1]+"ff",16)>>>0:Q.hasOwnProperty(t)?Q[t]:(n=ee.exec(t))?(ue(n[1])<<24|ue(n[2])<<16|ue(n[3])<<8|255)>>>0:(n=te.exec(t))?(ue(n[1])<<24|ue(n[2])<<16|ue(n[3])<<8|be(n[4]))>>>0:(n=oe.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+"ff",16)>>>0:(n=ae.exec(t))?parseInt(n[1],16)>>>0:(n=ce.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+n[4]+n[4],16)>>>0:(n=ne.exec(t))?(255|se(de(n[1]),fe(n[2]),fe(n[3])))>>>0:(n=re.exec(t))?(se(de(n[1]),fe(n[2]),fe(n[3]))|be(n[4]))>>>0:null;return null===r?e:"rgba("+((4278190080&(r=r||0))>>>24)+", "+((16711680&r)>>>16)+", "+((65280&r)>>>8)+", "+(255&r)/255+")"}var me=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ve=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Oe=new RegExp("("+Object.keys(Q).join("|")+")","g"),ge={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","Ms","Moz","O"];function je(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ge.hasOwnProperty(e)&&ge[e]?(""+t).trim():t+"px"}ge=Object.keys(ge).reduce((function(e,t){return he.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),ge);var ke={};N((function(e){return new X(e)})),B("div"),w((function(e){var t=e.output.map((function(e){return e.replace(ve,pe)})).map((function(e){return e.replace(Oe,pe)})),n=t[0].match(me).map((function(){return[]}));t.forEach((function(e){e.match(me).forEach((function(e,t){return n[t].push(+e)}))}));var r=t[0].match(me).map((function(t,r){return F(o({},e,{output:n[r]}))}));return function(e){var n=0;return t[0].replace(me,(function(){return r[n++](e)})).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(function(e,t,n,r,o){return"rgba("+Math.round(t)+", "+Math.round(n)+", "+Math.round(r)+", "+o+")"}))}})),y(Q),k((function(e,t){if(!e.nodeType||void 0===e.setAttribute)return!1;var n=t.style,r=t.children,o=t.scrollTop,i=t.scrollLeft,a=c(t,["style","children","scrollTop","scrollLeft"]),l="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;for(var s in void 0!==o&&(e.scrollTop=o),void 0!==i&&(e.scrollLeft=i),void 0!==r&&(e.textContent=r),n)if(n.hasOwnProperty(s)){var u=0===s.indexOf("--"),d=je(s,n[s],u);"float"===s&&(s="cssFloat"),u?e.style.setProperty(s,d):e.style[s]=d}for(var b in a){var f=l?b:ke[b]||(ke[b]=b.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(f)&&e.setAttribute(f,a[b])}}),(function(e){return e}));var ye,_e,Ee=(ye=function(e){return i.forwardRef((function(t,n){var r=d(),l=i.useRef(!0),s=i.useRef(null),b=i.useRef(null),f=i.useCallback((function(e){var t=s.current;s.current=new R(e,(function(){var e=!1;b.current&&(e=v.fn(b.current,s.current.getAnimatedValue())),b.current&&!1!==e||r()})),t&&t.detach()}),[]);i.useEffect((function(){return function(){l.current=!1,s.current&&s.current.detach()}}),[]),i.useImperativeHandle(n,(function(){return T(b,l,r)})),f(t);var p,m=s.current.getValue(),O=(m.scrollTop,m.scrollLeft,c(m,["scrollTop","scrollLeft"])),g=(p=e,!u.fun(p)||p.prototype instanceof a.Component?function(e){return b.current=function(e,t){return t&&(u.fun(t)?t(e):u.obj(t)&&(t.current=e)),e}(e,n)}:void 0);return a.createElement(e,o({},O,{ref:g}))}))},void 0===(_e=!1)&&(_e=!0),function(e){return(u.arr(e)?e:Object.keys(e)).reduce((function(e,t){var n=_e?t[0].toLowerCase()+t.substring(1):t;return e[n]=ye(n),e}),ye)}),Ce=Ee(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]);t.apply=Ee,t.config={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},t.update=L,t.animated=Ce,t.a=Ce,t.interpolate=function(e,t,n){return e&&new V(e,t,n)},t.Globals=D,t.useSpring=function(e){var t=u.fun(e),n=K(1,t?e:[e]),r=n[0],o=n[1],c=n[2];return t?[r[0],o,c]:r},t.useTrail=function(e,t){var n=i.useRef(!1),r=u.fun(t),c=p(t),a=i.useRef(),l=K(e,(function(e,t){return 0===e&&(a.current=[]),a.current.push(t),o({},c,{config:p(c.config,e),attach:e>0&&function(){return a.current[e-1]}})})),s=l[0],d=l[1],b=l[2],f=i.useMemo((function(){return function(e){return d((function(t,n){e.reverse;var r=e.reverse?t+1:t-1,i=a.current[r];return o({},e,{config:p(e.config||c.config,t),attach:i&&function(){return i}})}))}}),[e,c.reverse]);return i.useEffect((function(){n.current&&!r&&f(t)})),i.useEffect((function(){n.current=!0}),[]),r?[s,f,b]:s},t.useTransition=function(e,t,n){var r=o({items:e,keys:t||function(e){return e}},n),a=$(r),l=a.lazy,s=void 0!==l&&l,u=(a.unique,a.reset),b=void 0!==u&&u,f=(a.enter,a.leave,a.update,a.onDestroyed),m=(a.keys,a.items,a.onFrame),v=a.onRest,O=a.onStart,g=a.ref,h=c(a,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),j=d(),k=i.useRef(!1),y=i.useRef({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!r.ref,instances:!k.current&&new Map,forceUpdate:j});return i.useImperativeHandle(r.ref,(function(){return{start:function(){return Promise.all(Array.from(y.current.instances).map((function(e){var t=e[1];return new Promise((function(e){return t.start(e)}))})))},stop:function(e){return Array.from(y.current.instances).forEach((function(t){return t[1].stop(e)}))},get controllers(){return Array.from(y.current.instances).map((function(e){return e[1]}))}}})),y.current=function(e,t){var n=e.first,r=e.prevProps,i=c(e,["first","prevProps"]),a=$(t),l=a.items,s=a.keys,u=a.initial,d=a.from,b=a.enter,f=a.leave,m=a.update,v=a.trail,O=void 0===v?0:v,g=a.unique,h=a.config,j=a.order,k=void 0===j?["enter","leave","update"]:j,y=$(r),_=y.keys,E=y.items,C=o({},i.current),w=[].concat(i.deleted),S=Object.keys(C),I=new Set(S),B=new Set(s),x=s.filter((function(e){return!I.has(e)})),P=i.transitions.filter((function(e){return!e.destroyed&&!B.has(e.originalKey)})).map((function(e){return e.originalKey})),T=s.filter((function(e){return I.has(e)})),N=-O;for(;k.length;){switch(k.shift()){case"enter":x.forEach((function(e,t){g&&w.find((function(t){return t.originalKey===e}))&&(w=w.filter((function(t){return t.originalKey!==e})));var r=s.indexOf(e),o=l[r],c=n&&void 0!==u?"initial":"enter";C[e]={slot:c,originalKey:e,key:g?String(e):W++,item:o,trail:N+=O,config:p(h,o,c),from:p(n&&void 0!==u?u||{}:d,o),to:p(b,o)}}));break;case"leave":P.forEach((function(e){var t=_.indexOf(e),n=E[t];w.unshift(o({},C[e],{slot:"leave",destroyed:!0,left:_[Math.max(0,t-1)],right:_[Math.min(_.length,t+1)],trail:N+=O,config:p(h,n,"leave"),to:p(f,n)})),delete C[e]}));break;case"update":T.forEach((function(e){var t=s.indexOf(e),n=l[t];C[e]=o({},C[e],{item:n,slot:"update",trail:N+=O,config:p(h,n,"update"),to:p(m,n)})}))}}var D=s.map((function(e){return C[e]}));return w.forEach((function(e){var t,n=e.left,r=(e.right,c(e,["left","right"]));-1!==(t=D.findIndex((function(e){return e.originalKey===n})))&&(t+=1),t=Math.max(0,t),D=[].concat(D.slice(0,t),[r],D.slice(t))})),o({},i,{changed:x.length||P.length||T.length,first:n&&0===x.length,transitions:D,current:C,deleted:w,prevProps:t})}(y.current,r),y.current.changed&&y.current.transitions.forEach((function(e){var t=e.slot,n=e.from,r=e.to,c=e.config,i=e.trail,a=e.key,l=e.item;y.current.instances.has(a)||y.current.instances.set(a,new G);var u=y.current.instances.get(a),d=o({},h,{to:r,from:n,config:c,ref:g,onRest:function(n){y.current.mounted&&(e.destroyed&&(g||s||Y(y,a),f&&f(l)),!Array.from(y.current.instances).some((function(e){return!e[1].idle}))&&(g||s)&&y.current.deleted.length>0&&Y(y),v&&v(l,t,n))},onStart:O&&function(){return O(l,t)},onFrame:m&&function(e){return m(l,t,e)},delay:i,reset:b&&"enter"===t});u.update(d),y.current.paused||u.start()})),i.useEffect((function(){return y.current.mounted=k.current=!0,function(){y.current.mounted=k.current=!1,Array.from(y.current.instances).map((function(e){return e[1].destroy()})),y.current.instances.clear()}}),[]),y.current.transitions.map((function(e){var t=e.item,n=e.slot,r=e.key;return{item:t,key:r,state:n,props:y.current.instances.get(r).getValues()}}))},t.useChain=function(e,t,n){void 0===n&&(n=1e3);var r=i.useRef();i.useEffect((function(){u.equ(e,r.current)?e.forEach((function(e){var t=e.current;return t&&t.start()})):t?e.forEach((function(e,r){var c=e.current;if(c){var i=c.controllers;if(i.length){var a=n*t[r];i.forEach((function(e){e.queue=e.queue.map((function(e){return o({},e,{delay:e.delay+a})})),e.start()}))}}})):e.reduce((function(e,t,n){var r=t.current;return e.then((function(){return r.start()}))}),Promise.resolve()),r.current=e}))},t.useSprings=K},,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return E})),n.d(t,"b",(function(){return _}));var r=n(15),o=n(51),c=n(50),i=n(67),a=n(13),l=n(63),s=(n(81),n(48)),u=n(54),d=n(57),b=n(74),f=n(79),p=n(82),m=n(49),v=n(97),O=n(104),g=n(52),h="undefined"!=typeof window&&"msCrypto"in window;var j="undefined"!=typeof window&&"msCrypto"in window;function k(e,t,n){var r=Object(s.a)(n);return Object(a.useCallback)((function(n){var o;if(e&&function(e){return!!Object(u.a)(e)&&(!e.metaKey&&"Tab"!==e.key)}(n)){var c=null==t?void 0:t.ref.current;if(c&&(Object(O.a)(c,n.type,n),n.currentTarget.contains(c)))return n.stopPropagation(),void n.preventDefault()}null===(o=r.current)||void 0===o||o.call(r,n)}),[e,t])}function y(e,t){return null==e?void 0:e.some((function(e){return!!t&&e.ref.current===t}))}var _=Object(c.a)({name:"Composite",compose:[b.a],useState:g.g,useOptions:function(e){return Object(r.b)(Object(r.b)({},e),{},{currentId:Object(g.e)(e)})},useProps:function(e,t){var n=t.ref,o=t.onFocus,c=t.onBlur,i=t.onKeyDown,b=t.onKeyUp,f=Object(r.a)(t,["ref","onFocus","onBlur","onKeyDown","onKeyUp"]),O=Object(a.useRef)(null),_=Object(g.d)(e.items,e.currentId),E=Object(a.useRef)(void 0),C=Object(s.a)(o),w=Object(s.a)(c),S=j?function(e){var t=Object(a.useRef)(null);return Object(a.useEffect)((function(){var n=Object(m.a)(e.current),r=function(e){var n=e.target;t.current=n};return n.addEventListener("focus",r,!0),function(){n.removeEventListener("focus",r,!0)}}),[]),t}(O):void 0;Object(a.useEffect)((function(){var t=O.current;t&&e.unstable_moves&&!_&&t.focus()}),[e.unstable_moves,_]);var I=k(e.unstable_virtual,_,i),B=k(e.unstable_virtual,_,b),x=Object(a.useCallback)((function(t){var n;if(e.unstable_virtual){var r,o,c=(null==S?void 0:S.current)||t.relatedTarget,i=y(e.items,c);if(Object(u.a)(t)&&!i)return null===(r=C.current)||void 0===r||r.call(C,t),void(null==_||null===(o=_.ref.current)||void 0===o||o.focus());if(i)return void t.stopPropagation()}else if(Object(u.a)(t)){var a;null===(a=e.setCurrentId)||void 0===a||a.call(e,null)}null===(n=C.current)||void 0===n||n.call(C,t)}),[e.unstable_virtual,e.items,_,e.setCurrentId]),P=Object(a.useCallback)((function(t){var n;if(e.unstable_virtual){var r,o=y(e.items,t.target),c=function(e){return h?Object(d.a)(e.target):e.relatedTarget}(t),i=y(e.items,c);if(Object(u.a)(t)&&i)return(null===(r=E.current)||void 0===r?void 0:r.ref.current)&&Object(v.a)(E.current.ref.current,"blur",t),E.current=_,void t.stopPropagation();o?E.current=_:((null==_?void 0:_.ref.current)&&Object(v.a)(_.ref.current,"blur",t),E.current=void 0)}null===(n=w.current)||void 0===n||n.call(w,t)}),[e.unstable_virtual,e.items,_]),T=Object(a.useMemo)((function(){return Object(p.a)({onKeyDown:I,stopPropagation:!0,shouldKeyDown:function(t){return Object(u.a)(t)&&null===e.currentId},keyMap:function(){var t,n="horizontal"!==e.orientation,r="vertical"!==e.orientation,o=!!(null===(t=e.groups)||void 0===t?void 0:t.length),c=e.first&&function(){return e.first()},i=e.last&&function(){return e.last()};return{ArrowUp:(o||n)&&function(){if(o){var t,n=(c=e.items,Object(g.a)(Object(g.b)(Object(g.f)(Object(g.c)(c)))));if(null==n?void 0:n.id)null===(t=e.move)||void 0===t||t.call(e,n.id)}else{var r;null===(r=e.last)||void 0===r||r.call(e)}var c},ArrowRight:(o||r)&&c,ArrowDown:(o||n)&&c,ArrowLeft:(o||r)&&i,Home:c,End:i,PageUp:c,PageDown:i}}})}),[I,e.currentId,e.orientation,e.groups,e.items,e.move,e.last,e.first]);return Object(r.b)({ref:Object(l.a)(O,n),id:e.baseId,onFocus:x,onBlur:P,onKeyDown:T,onKeyUp:B,"aria-activedescendant":e.unstable_virtual&&(null==_?void 0:_.id)||void 0},f)},useComposeProps:function(e,t){t=Object(i.a)(e,t,!0);var n=Object(b.a)(e,t,!0);return e.unstable_virtual||null===e.currentId?n:Object(r.b)(Object(r.b)({},t),{},{ref:n.ref})}}),E=Object(o.a)({as:"div",useHook:_,useCreateElement:function(e,t,n){return Object(f.a)(e,t,n)}})},function(e,t,n){"use strict";n.d(t,"a",(function(){return y})),n.d(t,"b",(function(){return k}));var r=n(15),o=n(51),c=n(50),i=n(13),a=n(63),l=(n(81),n(48)),s=n(54),u=n(70),d=n(73),b=n(72),f=n(88),p=n(82),m=n(49),v=n(52),O=n(96),g=n(98),h=n(99);function j(e){return e.querySelector("[data-composite-item-widget]")}var k=Object(c.a)({name:"CompositeItem",compose:[f.a,O.a],useState:v.g,propsAreEqual:function(e,t){if(!t.id||e.id!==t.id)return f.a.unstable_propsAreEqual(e,t);var n=e.currentId,o=e.unstable_moves,c=Object(r.a)(e,["currentId","unstable_moves"]),i=t.currentId,a=t.unstable_moves,l=Object(r.a)(t,["currentId","unstable_moves"]);if(i!==n){if(t.id===i||t.id===n)return!1}else if(o!==a)return!1;return f.a.unstable_propsAreEqual(c,l)},useOptions:function(e){return Object(r.b)(Object(r.b)({},e),{},{id:e.id,currentId:Object(v.e)(e),unstable_clickOnSpace:!e.unstable_hasActiveWidget&&e.unstable_clickOnSpace})},useProps:function(e,t){var n,o=t.ref,c=t.tabIndex,f=void 0===c?0:c,v=t.onFocus,O=t.onBlur,k=t.onKeyDown,y=t.onClick,_=Object(r.a)(t,["ref","tabIndex","onFocus","onBlur","onKeyDown","onClick"]),E=Object(i.useRef)(null),C=e.id,w=e.disabled&&!e.focusable,S=e.currentId===C,I=Object(l.a)(S),B=Object(i.useRef)(!1),x=function(e){return Object(i.useMemo)((function(){var t;return null===(t=e.items)||void 0===t?void 0:t.find((function(t){return e.id&&t.id===e.id}))}),[e.items,e.id])}(e),P=Object(l.a)(v),T=Object(l.a)(O),N=Object(l.a)(k),D=Object(l.a)(y),R=!e.unstable_virtual&&!e.unstable_hasActiveWidget&&S||!(null===(n=e.items)||void 0===n?void 0:n.length);Object(i.useEffect)((function(){var t;if(C)return null===(t=e.registerItem)||void 0===t||t.call(e,{id:C,ref:E,disabled:!!w}),function(){var t;null===(t=e.unregisterItem)||void 0===t||t.call(e,C)}}),[C,w,e.registerItem,e.unregisterItem]),Object(i.useEffect)((function(){var t=E.current;t&&e.unstable_moves&&I.current&&t.focus()}),[e.unstable_moves]);var A=Object(i.useCallback)((function(t){var n,o;if(null===(n=P.current)||void 0===n||n.call(P,t),!t.defaultPrevented&&!Object(d.a)(t)&&C&&!function(e,t){if(Object(s.a)(e))return!1;for(var n,o=Object(r.c)(t);!(n=o()).done;){if(n.value.ref.current===e.target)return!0}return!1}(t,e.items)&&(null===(o=e.setCurrentId)||void 0===o||o.call(e,C),e.unstable_virtual&&e.baseId&&Object(s.a)(t))){var c=t.target,i=Object(m.a)(c).getElementById(e.baseId);i&&(B.current=!0,Object(b.a)(i))}}),[C,e.items,e.setCurrentId,e.unstable_virtual,e.baseId]),M=Object(i.useCallback)((function(t){var n;if(e.unstable_virtual&&B.current)return B.current=!1,t.preventDefault(),void t.stopPropagation();null===(n=T.current)||void 0===n||n.call(T,t)}),[e.unstable_virtual]),L=Object(i.useCallback)((function(e){var t;if(null===(t=N.current)||void 0===t||t.call(N,e),Object(s.a)(e)&&1===e.key.length&&" "!==e.key){var n=j(e.currentTarget);if(n&&Object(g.a)(n)){n.focus();var r=e.key;window.requestAnimationFrame((function(){Object(h.a)(n,r)}))}}}),[]),F=Object(i.useMemo)((function(){return Object(p.a)({onKeyDown:L,stopPropagation:!0,shouldKeyDown:s.a,keyMap:function(){var t="horizontal"!==e.orientation,n="vertical"!==e.orientation,r=!!(null==x?void 0:x.groupId),o=function(e){var t=j(e.currentTarget);t&&Object(g.a)(t)&&Object(h.a)(t,"")},c=e.up&&function(){return e.up()},i=e.next&&function(){return e.next()},a=e.down&&function(){return e.down()},l=e.previous&&function(){return e.previous()};return{Delete:o,Backspace:o,ArrowUp:(r||t)&&c,ArrowRight:(r||n)&&i,ArrowDown:(r||t)&&a,ArrowLeft:(r||n)&&l,Home:function(t){var n,o;!r||t.ctrlKey?null===(n=e.first)||void 0===n||n.call(e):null===(o=e.previous)||void 0===o||o.call(e,!0)},End:function(t){var n,o;!r||t.ctrlKey?null===(n=e.last)||void 0===n||n.call(e):null===(o=e.next)||void 0===o||o.call(e,!0)},PageUp:function(){var t,n;r?null===(t=e.up)||void 0===t||t.call(e,!0):null===(n=e.first)||void 0===n||n.call(e)},PageDown:function(){var t,n;r?null===(t=e.down)||void 0===t||t.call(e,!0):null===(n=e.last)||void 0===n||n.call(e)}}}})}),[L,e.orientation,x,e.up,e.next,e.down,e.previous,e.first,e.last]),V=Object(i.useCallback)((function(e){var t;if(null===(t=D.current)||void 0===t||t.call(D,e),!e.defaultPrevented){var n=j(e.currentTarget);n&&!Object(u.a)(n)&&n.focus()}}),[]);return Object(r.b)({ref:Object(a.a)(E,o),id:C,tabIndex:R?f:-1,"aria-selected":!(!e.unstable_virtual||!S)||void 0,onFocus:A,onBlur:M,onKeyDown:F,onClick:V},_)}}),y=Object(o.a)({as:"button",memo:!0,useHook:k})},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(49);function o(e,t,n){var o,c;if(void 0===n&&(n={}),"function"==typeof Event)return new Event(t,n);var i=Object(r.a)(e).createEvent("Event");return i.initEvent(t,null===(o=n)||void 0===o?void 0:o.bubbles,null===(c=n)||void 0===c?void 0:c.cancelable),i}},function(e,t,n){"use strict";e.exports=n(184)},function(e,t){!function(){e.exports=this.wp.wordcount}()},,function(e,t){!function(){e.exports=this.wp.shortcode}()},,,function(e,t,n){"use strict";var r=n(8),o=n(14),c=n(0),i=n(2),a=n(3),l=n(170),s=Object(a.createSlotFill)("BlockControls"),u=s.Fill,d=s.Slot;var b=function(e){return"BlockControls".concat(e?"-expanded":"")},f=function(e){var t=e.controls,n=e.__experimentalIsExpanded,r=e.children;return Object(l.a)()?Object(c.createElement)(u,{name:b(n)},(function(e){var n=Object(i.isEmpty)(e)?null:e;return Object(c.createElement)(a.__experimentalToolbarContext.Provider,{value:n},Object(c.createElement)(a.ToolbarGroup,{controls:t}),r)})):null};f.Slot=function(e){var t=e.__experimentalIsExpanded,n=void 0!==t&&t,i=Object(o.a)(e,["__experimentalIsExpanded"]),l=Object(c.useContext)(a.__experimentalToolbarContext);return Object(c.createElement)(d,Object(r.a)({name:b(n)},i,{fillProps:l}))},t.a=f},,,,,,,,function(e,t,n){"use strict";var r=n(5),o=n(14),c=n(0);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.a=function(e){var t=e.icon,n=e.size,a=void 0===n?24:n,l=Object(o.a)(e,["icon","size"]);return Object(c.cloneElement)(t,function(e){for(var t=1;t=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&&d()},l=function(t){window.removeEventListener("resize",a,!1),e.removeEventListener("input",d,!1),e.removeEventListener("keyup",d,!1),e.removeEventListener("autosize:destroy",l,!1),e.removeEventListener("autosize:update",d,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),o.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",l,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",d,!1),window.addEventListener("resize",a,!1),e.addEventListener("input",d,!1),e.addEventListener("autosize:update",d,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",o.set(e,{destroy:l,update:d}),"vertical"===(t=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),n="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(n)&&(n=0),d()}function s(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function u(){if(0!==e.scrollHeight){var t=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),o=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",r=e.clientWidth,t.forEach((function(e){e.node.scrollTop=e.scrollTop})),o&&(document.documentElement.scrollTop=o)}}function d(){u();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),r="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(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=0||(o[n]=e[n]);return o}(t,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"==typeof n)return n(e,r);var c=o.default.Children.only(n);return o.default.cloneElement(c,r)},r}(o.default.Component);function s(){}l.contextTypes={transitionGroup:r.object},l.childContextTypes={transitionGroup:function(){}},l.propTypes={},l.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:s,onEntering:s,onEntered:s,onExit:s,onExiting:s,onExited:s},l.UNMOUNTED=0,l.EXITED=1,l.ENTERING=2,l.ENTERED=3,l.EXITING=4;var u=(0,i.polyfill)(l);t.default=u},function(e,t,n){"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function o(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function c(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function i(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,i=null,a=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?i="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(i="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?a="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(a="UNSAFE_componentWillUpdate"),null!==n||null!==i||null!==a){var l=e.displayName||e.name,s="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+l+" uses "+s+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==i?"\n "+i:"")+(null!==a?"\n "+a:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=o),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=c;var u=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;u.call(this,e,t,r)}}return e}n.r(t),n.d(t,"polyfill",(function(){return i})),r.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,c.__suppressDeprecationWarning=!0},function(e,t,n){"use strict";t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0;var r;(r=n(28))&&r.__esModule;t.timeoutsShape=null;t.classNamesShape=null},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=a(n(28)),o=a(n(13)),c=n(210),i=n(310);function a(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,["component","childFactory"]),c=u(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?c:o.default.createElement(t,r,c)},r}(o.default.Component);d.childContextTypes={transitionGroup:r.default.object.isRequired},d.propTypes={},d.defaultProps={component:"div",childFactory:function(e){return e}};var b=(0,c.polyfill)(d);t.default=b,e.exports=t.default},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));t.a=c},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));t.a=c},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(o.Path,{d:"M16 4h2v9H7v3l-5-4 5-4v3h9V4z"}));t.a=c},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"}));t.a=c},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.dispatch;return function(e){return function(n){return Array.isArray(n)?n.filter(Boolean).map(t):e(n)}}}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l}));var r=n(12),o=n(0),c=n(171),i=n(2),a=(n(90),n(132));function l(e){var t=e.children,n=e.className;return Object(o.createElement)(a.a.Slot,{__experimentalIsExpanded:!0},(function(e){return Object(o.createElement)(s,{className:n,fills:e},t)}))}function s(t){var n=t.fills,a=t.className,l=void 0===a?"":a,s=t.children,u=Object(o.useRef)(),d=Object(o.useRef)(),b=Object(o.useRef)(),f=Object(o.useState)({}),p=Object(r.a)(f,2),m=p[0],v=p[1],O=Object(o.useRef)();O.current=n;var g=Object(o.useCallback)(Object(i.throttle)((function(){var e=O.current.length?d.current:b.current;if(e){e.style.position="absolute",e.style.width="auto";var t,n=(t=e).ownerDocument.defaultView.getComputedStyle(t);v({width:n.getPropertyValue("width"),height:n.getPropertyValue("height")}),e.style.position="",e.style.width=""}}),100),[]);Object(o.useEffect)((function(){var e=new window.MutationObserver((function(e){e.find((function(e){return"childList"===e.type}))&&g()}));return e.observe(u.current,{childList:!0,subtree:!0}),function(){return e.disconnect()}}),[]),Object(o.useEffect)((function(){n.length>1&&void 0!==e&&e.env}),[n.length]);var h=n[0];return Object(o.createElement)("div",{className:"block-editor-block-toolbar-animated-width-container",ref:u,style:m},Object(o.createElement)(c.TransitionGroup,null,h?Object(o.createElement)(c.CSSTransition,{key:"fills",timeout:300,classNames:"block-editor-block-toolbar-content"},Object(o.createElement)("div",{className:l,ref:d},h)):Object(o.createElement)(c.CSSTransition,{key:"default",timeout:300,classNames:"block-editor-block-toolbar-content"},Object(o.createElement)("div",{className:l,ref:b},s))))}}).call(this,n(102))},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.diffChars=function(e,t,n){return o.diff(e,t,n)},t.characterDiff=void 0;var o=new(((r=n(314))&&r.__esModule?r:{default:r}).default);t.characterDiff=o},function(e,t,n){"use strict";t.match=function(e,t){return l(e).some((function(e){var n=e.inverse,r="all"===e.type||t.type===e.type;if(r&&n||!r&&!n)return!1;var o=e.expressions.every((function(e){var n=e.feature,r=e.modifier,o=e.value,c=t[n];if(!c)return!1;switch(n){case"orientation":case"scan":return c.toLowerCase()===o.toLowerCase();case"width":case"height":case"device-width":case"device-height":o=d(o),c=d(c);break;case"resolution":o=u(o),c=u(c);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":o=s(o),c=s(c);break;case"grid":case"color":case"color-index":case"monochrome":o=parseInt(o,10)||1,c=parseInt(c,10)||0}switch(r){case"min":return c>=o;case"max":return c<=o;default:return c===o}}));return o&&!n||!o&&n}))},t.parse=l;var r=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,o=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,c=/^(?:(min|max)-)?(.+)/,i=/(em|rem|px|cm|mm|in|pt|pc)?$/,a=/(dpi|dpcm|dppx)?$/;function l(e){return e.split(",").map((function(e){var t=(e=e.trim()).match(r),n=t[1],i=t[2],a=t[3]||"",l={};return l.inverse=!!n&&"not"===n.toLowerCase(),l.type=i?i.toLowerCase():"all",a=a.match(/\([^\)]+\)/g)||[],l.expressions=a.map((function(e){var t=e.match(o),n=t[1].toLowerCase().match(c);return{modifier:n[1],feature:n[2],value:t[2]}})),l}))}function s(e){var t,n=Number(e);return n||(n=(t=e.match(/^(\d+)\s*\/\s*(\d+)$/))[1]/t[2]),n}function u(e){var t=parseFloat(e);switch(String(e).match(a)[1]){case"dpcm":return t/2.54;case"dppx":return 96*t;default:return t}}function d(e){var t=parseFloat(e);switch(String(e).match(i)[1]){case"em":case"rem":return 16*t;case"cm":return 96*t/2.54;case"mm":return 96*t/2.54/10;case"in":return 96*t;case"pt":return 72*t;case"pc":return 72*t/12;default:return t}}},function(e,t){var n=e.exports=function(e){return new r(e)};function r(e){this.value=e}function o(e,t,n){var r=[],o=[],a=!0;return function e(d){var b=n?c(d):d,f={},p=!0,m={node:b,node_:d,path:[].concat(r),parent:o[o.length-1],parents:o,key:r.slice(-1)[0],isRoot:0===r.length,level:r.length,circular:null,update:function(e,t){m.isRoot||(m.parent.node[m.key]=e),m.node=e,t&&(p=!1)},delete:function(e){delete m.parent.node[m.key],e&&(p=!1)},remove:function(e){l(m.parent.node)?m.parent.node.splice(m.key,1):delete m.parent.node[m.key],e&&(p=!1)},keys:null,before:function(e){f.before=e},after:function(e){f.after=e},pre:function(e){f.pre=e},post:function(e){f.post=e},stop:function(){a=!1},block:function(){p=!1}};if(!a)return m;function v(){if("object"==typeof m.node&&null!==m.node){m.keys&&m.node_===m.node||(m.keys=i(m.node)),m.isLeaf=0==m.keys.length;for(var e=0;e=0||(o[n]=e[n]);return o}(e,["children","in"]),i=r.default.Children.toArray(t),a=i[0],l=i[1];return delete o.onEnter,delete o.onEntering,delete o.onEntered,delete o.onExit,delete o.onExiting,delete o.onExited,r.default.createElement(c.default,o,n?r.default.cloneElement(a,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):r.default.cloneElement(l,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},i}(r.default.Component);a.propTypes={};var l=a;t.default=l,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.getChildMapping=o,t.mergeChildMappings=c,t.getInitialChildMapping=function(e,t){return o(e.children,(function(n){return(0,r.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:i(n,"appear",e),enter:i(n,"enter",e),exit:i(n,"exit",e)})}))},t.getNextChildMapping=function(e,t,n){var a=o(e.children),l=c(t,a);return Object.keys(l).forEach((function(o){var c=l[o];if((0,r.isValidElement)(c)){var s=o in t,u=o in a,d=t[o],b=(0,r.isValidElement)(d)&&!d.props.in;!u||s&&!b?u||!s||b?u&&s&&(0,r.isValidElement)(d)&&(l[o]=(0,r.cloneElement)(c,{onExited:n.bind(null,c),in:d.props.in,exit:i(c,"exit",e),enter:i(c,"enter",e)})):l[o]=(0,r.cloneElement)(c,{in:!1}):l[o]=(0,r.cloneElement)(c,{onExited:n.bind(null,c),in:!0,exit:i(c,"exit",e),enter:i(c,"enter",e)})}})),l};var r=n(13);function o(e,t){var n=Object.create(null);return e&&r.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,r.isValidElement)(e)?t(e):e}(e)})),n}function c(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),c=[];for(var i in e)i in t?c.length&&(o[i]=c,c=[]):c.push(i);var a={};for(var l in t){if(o[l])for(r=0;re.length?n:e})),s.value=e.join(d)}else s.value=e.join(n.slice(a,a+s.count));a+=s.count,s.added||(l+=s.count)}}var b=t[i-1];return i>1&&"string"==typeof b.value&&(b.added||b.removed)&&e.equals("",b.value)&&(t[i-2].value+=b.value,t.pop()),t}function c(e){return{newPos:e.newPos,components:e.components.slice(0)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,r.prototype={diff:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.callback;"function"==typeof n&&(r=n,n={}),this.options=n;var i=this;function a(e){return r?(setTimeout((function(){r(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var l=(t=this.removeEmpty(this.tokenize(t))).length,s=e.length,u=1,d=l+s,b=[{newPos:-1,components:[]}],f=this.extractCommon(b[0],t,e,0);if(b[0].newPos+1>=l&&f+1>=s)return a([{value:this.join(t),count:t.length}]);function p(){for(var n=-1*u;n<=u;n+=2){var r=void 0,d=b[n-1],f=b[n+1],p=(f?f.newPos:0)-n;d&&(b[n-1]=void 0);var m=d&&d.newPos+1=l&&p+1>=s)return a(o(i,r.components,t,e,i.useLongestToken));b[n]=r}else b[n]=void 0}u++}if(r)!function e(){setTimeout((function(){if(u>d)return r();p()||e()}),0)}();else for(;u<=d;){var m=p();if(m)return m}},pushComponent:function(e,t,n){var r=e[e.length-1];r&&r.added===t&&r.removed===n?e[e.length-1]={count:r.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,r){for(var o=t.length,c=n.length,i=e.newPos,a=i-r,l=0;i+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?A:[],!r||!0===e&&!n?p.without.apply(void 0,[t].concat(M)):t}var F=Object(d.createContext)({}),V=F.Provider,H=Object(m.createHigherOrderComponent)((function(e){return function(t){var n=Object(d.useContext)(F).isEmbedButton,r=t.name,o=n?[]:L(Object(c.getBlockSupport)(r,"align"),Object(c.hasBlockSupport)(r,"alignWide",!0));return[o.length>0&&t.isSelected&&Object(d.createElement)(g.a,{key:"align-controls"},Object(d.createElement)(N,{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(d.createElement)(e,Object(s.a)({key:"edit"},t))]}}),"withToolbarControls"),z=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(d.createElement)(e,t);var i=L(Object(c.getBlockSupport)(n,"align"),Object(c.hasBlockSupport)(n,"alignWide",!0),o),a=t.wrapperProps;return i.includes(r)&&(a=R(R({},a),{},{"data-align":r})),Object(d.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=R(R({},e.attributes),{},{align:{type:"string",enum:[].concat(A,[""])}})),e})),Object(v.addFilter)("editor.BlockListBlock","core/editor/align/with-data-align",z),Object(v.addFilter)("editor.BlockEdit","core/editor/align/with-toolbar-controls",H),Object(v.addFilter)("blocks.getSaveContent.extraProps","core/align/addAssignedAlign",(function(e,t,n){var r=n.align;return L(Object(c.getBlockSupport)(t,"align"),Object(c.hasBlockSupport)(t,"alignWide",!0)).includes(r)&&(e.className=f()("align".concat(r),e.className)),e}));var U=n(80),G=Object(j.createSlotFill)("InspectorAdvancedControls"),W=G.Fill,K=G.Slot;function q(e){var t=e.children;return Object(U.b)().isSelected?Object(d.createElement)(W,null,t):null}q.slotName="InspectorAdvancedControls",q.Slot=K;var $=q;function Y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function X(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=ee(ee({},e.attributes),{},{className:{type:"string"}})),e})),Object(v.addFilter)("editor.BlockEdit","core/editor/custom-class-name/with-inspector-control",te),Object(v.addFilter)("blocks.getSaveContent.extraProps","core/custom-class-name/save-props",(function(e,t,n){return Object(c.hasBlockSupport)(t,"customClassName",!0)&&n.className&&(e.className=f()(e.className,n.className)),e})),Object(v.addFilter)("blocks.getBlockAttributes","core/custom-class-name/addParsedDifference",(function(e,t,n){if(Object(c.hasBlockSupport)(t,"customClassName",!0)){var r=Object(p.omit)(e,["className"]),o=Object(c.getSaveContent)(t,r),i=ne(o),a=ne(n),l=Object(p.difference)(a,i);l.length?e.className=l.join(" "):o&&delete e.className}return e}));var re=n(18);Object(v.addFilter)("blocks.getSaveContent.extraProps","core/generated-class-name/save-props",(function(e,t){return Object(c.hasBlockSupport)(t,"className",!0)&&("string"==typeof e.className?e.className=Object(p.uniq)([Object(c.getBlockDefaultClassName)(t.name)].concat(Object(re.a)(e.className.split(" ")))).join(" ").trim():e.className=Object(c.getBlockDefaultClassName)(t.name)),e}));var oe=n(12),ce=n(150),ie=n(66),ae=n.n(ie),le=function(e,t,n){if(t){var r=Object(p.find)(e,{slug:t});if(r)return r}return{color:n}},se=function(e,t){return Object(p.find)(e,{color:t})};function ue(e,t){if(e&&t)return"has-".concat(Object(p.kebabCase)(t),"-").concat(e)}var de={"color.palette":function(e){return void 0===e.colors?void 0:e.colors},"color.gradients":function(e){return void 0===e.gradients?void 0:e.gradients},"color.custom":function(e){return void 0===e.disableCustomColors?void 0:!e.disableCustomColors},"color.customGradient":function(e){return void 0===e.disableCustomGradients?void 0:!e.disableCustomGradients},"typography.fontSizes":function(e){return void 0===e.fontSizes?void 0:e.fontSizes},"typography.customFontSize":function(e){return void 0===e.disableCustomFontSizes?void 0:!e.disableCustomFontSizes},"typography.customLineHeight":function(e){return e.enableCustomLineHeight},"spacing.units":function(e){if(void 0!==e.enableCustomUnits)return!0===e.enableCustomUnits?["px","em","rem","vh","vw"]:e.enableCustomUnits}};function be(e){var t=Object(U.b)().name;return Object(O.useSelect)((function(n){var r,o=n("core/block-editor").getSettings(),c="__experimentalFeatures.global.".concat(e),i="__experimentalFeatures.".concat(t,".").concat(e),a=null!==(r=Object(p.get)(o,i))&&void 0!==r?r:Object(p.get)(o,c);if(void 0!==a)return a;var l=de[e]?de[e](o):void 0;return void 0!==l?l:"typography.dropCap"===e||void 0}),[t,e])}var fe=[];function pe(e){if(e)return"has-".concat(e,"-gradient-background")}function me(e,t){var n=Object(p.find)(e,["slug",t]);return n&&n.gradient}function ve(e,t){return Object(p.find)(e,["gradient",t])}function Oe(e,t){var n=ve(e,t);return n&&n.slug}function ge(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.gradientAttribute,n=void 0===t?"gradient":t,r=e.customGradientAttribute,o=void 0===r?"customGradient":r,c=Object(U.b)(),i=c.clientId,a=be("color.gradients")||fe,l=Object(O.useSelect)((function(e){var t=(0,e("core/block-editor").getBlockAttributes)(i);return{customGradient:t[o],gradient:t[n]}}),[i,n,o]),s=l.gradient,b=l.customGradient,f=Object(O.useDispatch)("core/block-editor"),p=f.updateBlockAttributes,m=Object(d.useCallback)((function(e){var t,r,c=Oe(a,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))}),[a,i,p]),v=pe(s);return{gradientClass:v,gradientValue:s?me(a,s):b,setGradient:m}}var he=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},je=n(14);function ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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 ye(e){for(var t=1;t=24?"large":"small"})?null:Object(d.createElement)(Ve,{backgroundColor:t,textColor:i,tinyBackgroundColor:a,tinyTextColor:l})},ze=n(167),Ue=Object(j.createSlotFill)("InspectorControls"),Ge=Ue.Fill,We=Ue.Slot;function Ke(e){var t=e.children;return Object(ze.a)()?Object(d.createElement)(Ge,null,t):null}Ke.Slot=We;var qe=Ke;function $e(e){return document.getElementById("block-"+e)}function Ye(e,t){return t.closest(".block-editor-block-list__block")===e}function Xe(e){for(;e&&e.nodeType!==e.ELEMENT_NODE;)e=e.parentNode;if(e){var t=e.closest(".block-editor-block-list__block");if(t)return t.id.slice("block-".length)}}function Qe(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function Ze(e){var t=e.settings,n=e.clientId,r=e.enableContrastChecking,o=void 0===r||r,c=Object(d.useState)(),i=Object(oe.a)(c,2),a=i[0],l=i[1],s=Object(d.useState)(),u=Object(oe.a)(s,2),b=u[0],f=u[1];return Object(d.useEffect)((function(){if(o){var e=$e(n);if(e){f(Qe(e).color);for(var t=e,r=Qe(t).backgroundColor;"rgba(0, 0, 0, 0)"===r&&t.parentNode&&t.parentNode.nodeType===t.parentNode.ELEMENT_NODE;)r=Qe(t=t.parentNode).backgroundColor;l(r)}}})),Object(d.createElement)(qe,null,Object(d.createElement)(Le,{title:Object(h.__)("Color settings"),initialOpen:!1,settings:t},o&&Object(d.createElement)(He,{backgroundColor:a,textColor:b})))}function Je(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function et(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=!be("typography.customLineHeight");return!Object(c.hasBlockSupport)(t,"__experimentalLineHeight")||n}var vt=n(156),Ot=n.n(vt),gt=function(e,t,n){if(t){var r=Object(p.find)(e,{slug:t});if(r)return r}return{size:n}};function ht(e,t){var n=Object(p.find)(e,{size:t});return n||{size:t}}function jt(e){if(e)return"has-".concat(Object(p.kebabCase)(e),"-font-size")}var kt=function(e){var t=be("typography.fontSizes"),n=!be("typography.customFontSize");return Object(d.createElement)(j.FontSizePicker,Object(s.a)({},e,{fontSizes:t,disableCustomFontSizes:n}))};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 _t(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=be("typography.fontSizes"),r=n.length;return!Object(c.hasBlockSupport)(t,"__experimentalFontSize")||!r}var wt=Object(m.createHigherOrderComponent)((function(e){return function(t){var n,r=be("typography.fontSizes"),o=t.name,i=t.attributes,a=i.fontSize,l=i.style,s=t.wrapperProps,u=_t({},t);if(Object(c.hasBlockSupport)(o,"__experimentalFontSize")&&a&&!(null==l||null===(n=l.typography)||void 0===n?void 0:n.fontSize)){var b,f=gt(r,a,null==l||null===(b=l.typography)||void 0===b?void 0:b.fontSize).size;u.wrapperProps=_t(_t({},s),{},{style:_t({fontSize:f},null==s?void 0:s.style)})}return Object(d.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",Et),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)),Et(r,e,n)},e})),Object(v.addFilter)("editor.BlockListBlock","core/font-size/with-font-size-inline-styles",wt);var It=["__experimentalLineHeight","__experimentalFontSize"];function Bt(e){var t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=[St(e),mt(e)];return t.filter(Boolean).length===t.length}(e),n=xt(e.name);return t||!n?null:Object(d.createElement)(qe,null,Object(d.createElement)(j.PanelBody,{title:Object(h.__)("Typography")},Object(d.createElement)(Ct,e),Object(d.createElement)(pt,e)))}var xt=function(e){return"web"===d.Platform.OS&&It.some((function(t){return Object(c.hasBlockSupport)(e,t)}))};function Pt(e){var t=e.units,n=Object(je.a)(e,["units"]),r=Tt(t);return Object(d.createElement)(j.__experimentalUnitControl,Object(s.a)({units:r},n))}function Tt(e){var t=be("spacing.units"),n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.filter((function(t){return e.includes(t.value)}))}(t||[],e);return 0!==n.length&&n}function Nt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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 Dt(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t={};return Object.entries(c.__EXPERIMENTAL_STYLE_PROPERTY).forEach((function(n){var r=Object(ce.a)(n),o=r[0],c=r.slice(1),i=Object(oe.a)(c,1)[0];Object(p.has)(e,i)&&(t[o]=Ht(Object(p.get)(e,i)))})),t}(r)),e.style),e}var Ut=Object(m.createHigherOrderComponent)((function(e){return function(t){var n=t.name,r=Object(c.hasBlockSupport)(n,"__experimentalPadding");return[Object(d.createElement)(Bt,Object(s.a)({key:"typography"},t)),Object(d.createElement)(lt,Object(s.a)({key:"colors"},t)),Object(d.createElement)(e,Object(s.a)({key:"edit"},t)),r&&Object(d.createElement)(At,{key:"spacing"},Object(d.createElement)(Rt,t))]}}),"withToolbarControls");Object(v.addFilter)("blocks.registerBlockType","core/style/addAttribute",(function(e){return Vt(e)?(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e):e})),Object(v.addFilter)("blocks.getSaveContent.extraProps","core/style/addSaveProps",zt),Object(v.addFilter)("blocks.registerBlockType","core/style/addEditProps",(function(e){if(!Vt(e))return e;var t=e.getEditWrapperProps;return e.getEditWrapperProps=function(n){var r={};return t&&(r=t(n)),zt(r,e,n)},e})),Object(v.addFilter)("editor.BlockEdit","core/style/with-block-controls",Ut);var Gt=n(21),Wt=n(20),Kt=n(15),qt=n(22),$t=n(23),Yt=n(17);function Xt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Yt.a)(e);if(t){var o=Object(Yt.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object($t.a)(this,n)}}function Qt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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 Zt(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}function pn(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(h.__)("Color settings")},n=t.panelTitle,r=void 0===n?Object(h.__)("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,b=void 0===s?l:s,m=a.textColorTargetRef,v=void 0===m?l:m,g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],j=Object(U.b)(),k=j.clientId,y=be("color.palette")||gn,_=Object(O.useSelect)((function(e){return{attributes:(0,e("core/block-editor").getBlockAttributes)(k)}}),[k]),E=_.attributes,C=Object(O.useDispatch)("core/block-editor"),S=C.updateBlockAttributes,w=Object(d.useCallback)((function(e){return S(k,e)}),[S,k]),I=Object(d.useMemo)((function(){return an()((function(e,t,n,r,o,c){return function(i){var a,l=i.children,s=i.className,b=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()(b,(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:vn(vn({},O),v)};return Object(p.isFunction)(l)?l(g):d.Children.map(l,(function(e){return Object(d.cloneElement)(e,{className:f()(e.props.className,g.className),style:vn(vn({},g.style),e.props.style||{})})}))}}),{maxSize:e.length})}),[e.length]),B=Object(d.useMemo)((function(){return an()((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]),x=Object(d.useState)(),P=Object(oe.a)(x,2),T=P[0],N=P[1],D=Object(d.useState)(),R=Object(oe.a)(D,2),A=R[0],M=R[1];return Object(d.useEffect)((function(){if(c){var e,t=!1,n=!1,r=fn(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&&M(On(v.current).color),t){for(var l=b.current,s=On(l).backgroundColor;"rgba(0, 0, 0, 0)"===s&&l.parentNode&&l.parentNode.nodeType===l.parentNode.ELEMENT_NODE;)s=On(l=l.parentNode).backgroundColor;N(s)}}}),[e.reduce((function(e,t){return"".concat(e," | ").concat(E[t.name]," | ").concat(E[Object(p.camelCase)("custom ".concat(t.name))])}),"")].concat(Object(re.a)(g))),Object(d.useMemo)((function(){var t={},n=e.reduce((function(e,n){"string"==typeof n&&(n={name:n});var r=vn(vn({},n),{},{color:E[n.name]}),o=r.name,c=r.property,i=void 0===c?o:c,a=r.className,l=r.panelLabel,s=void 0===l?n.label||hn[o]||Object(p.startCase)(o):l,u=r.componentName,d=void 0===u?Object(p.startCase)(o).replace(/\s/g,""):u,b=r.color,f=void 0===b?n.color:b,m=r.colors,v=void 0===m?y:m,O=E[Object(p.camelCase)("custom ".concat(o))],g=O?void 0:v.find((function(e){return e.slug===f}));return e[d]=I(o,i,a,f,g&&g.color,O),e[d].displayName=d,e[d].color=O||g&&g.color,e[d].slug=f,e[d].setColor=B(o,v),t[d]={value:g?g.color:E[Object(p.camelCase)("custom ".concat(o))],onChange:e[d].setColor,label:s,colors:v},v||delete t[d].colors,e}),{}),a={title:r,initialOpen:!1,colorSettings:t,colorPanelProps:o,contrastCheckers:c,detectedBackgroundColor:T,detectedColor:A,panelChildren:i};return vn(vn({},n),{},{ColorPanel:Object(d.createElement)(bn,a),InspectorControlsColorPanel:Object(d.createElement)(jn,a)})}),[E,w,A,T].concat(Object(re.a)(g)))}function yn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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 _n(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"";return e=(e=(e=Object(p.deburr)(e)).replace(/^\//,"")).toLowerCase()}var Hn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Object(p.words)(Vn(e))},zn=function(e,t){return Object(p.differenceWith)(e,Hn(t),(function(e,t){return t.includes(e)}))},Un=function(e,t,n,r){return 0===Hn(r).length?e:Gn(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){var t=e.variations,n=void 0===t?[]:t;return Array.from(n.reduce((function(e,t){var n=t.title,r=t.keywords,o=void 0===r?[]:r;return e.add(n),o.forEach((function(t){return e.add(t)})),e}),new Set))}})},Gn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Hn(t);if(0===r.length)return e;var o=e.map((function(e){return[e,Wn(e,t,n)]})).filter((function(e){return Object(oe.a)(e,2)[1]>0}));return o.sort((function(e,t){var n=Object(oe.a)(e,2)[1];return Object(oe.a)(t,2)[1]-n})),o.map((function(e){return Object(oe.a)(e,1)[0]}))};function Wn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.getName,o=void 0===r?Rn:r,c=n.getTitle,i=void 0===c?An:c,a=n.getKeywords,l=void 0===a?Mn:a,s=n.getCategory,u=void 0===s?Ln:s,d=n.getCollection,b=void 0===d?Fn:d,f=o(e),m=i(e),v=l(e),O=u(e),g=b(e),h=Vn(t),j=Vn(m),k=0;if(h===j)k+=30;else if(j.startsWith(h))k+=20;else{var y=[f,m].concat(Object(re.a)(v),[O,g]).join(" "),_=Object(p.words)(h),E=zn(_,y);0===E.length&&(k+=10)}return 0!==k&&f.startsWith("core/")&&k++,k}var Kn=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(d.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(oe.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)}]},qn=n(207);function $n(e){var t=e.icon,n=e.showColors,r=void 0!==n&&n,o=e.className;"block-default"===Object(p.get)(t,["src"])&&(t={src:qn.a});var c=Object(d.createElement)(j.Icon,{icon:t&&t.src?t.src:t}),i=r?{backgroundColor:t&&t.background,color:t&&t.foreground}:{};return Object(d.createElement)("span",{style:i,className:f()("block-editor-block-icon",o,{"has-colors":r})},c)}var Yn=function e(t){return Object(p.map)(t,(function(t){var n=Object(oe.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))}))};var Xn={name:"blocks",className:"block-editor-autocompleters__block",triggerPrefix:"/",useItems:function(e){var t=Object(O.useSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getBlockName,o=t.getBlockInsertionPoint,c=n();return{selectedBlockName:c?r(c):null,rootClientId:o().rootClientId}}),[]),n=t.rootClientId,r=t.selectedBlockName,o=Kn(n,p.noop),c=Object(oe.a)(o,3),i=c[0],a=c[1],l=c[2],s=Object(d.useMemo)((function(){return(e.trim()?Un(i,a,l,e):Object(p.orderBy)(i,["frecency"],["desc"])).filter((function(e){return e.name!==r})).slice(0,9)}),[e,r,i,a,l]);return[Object(d.useMemo)((function(){return s.map((function(e){var t=e.title,n=e.icon,r=e.isDisabled;return{key:"block-".concat(e.id),value:e,label:Object(d.createElement)(d.Fragment,null,Object(d.createElement)($n,{key:"icon",icon:n,showColors:!0}),t),isDisabled:r}}))}),[s])]},allowContext:function(e,t){return!(/\S/.test(e)||/\S/.test(t))},getOptionCompletion:function(e){var t=e.name,n=e.initialAttributes,r=e.innerBlocks;return{action:"replace",value:Object(c.createBlock)(t,n,Yn(r))}}},Qn=[];var Zn=function(e){var t=Object(U.b)().name,n=e.completers,r=void 0===n?Qn:n;return r=Object(d.useMemo)((function(){var e=r;return t===Object(c.getDefaultBlockName)()&&(e=e.concat([Xn])),Object(v.hasFilter)("editor.Autocomplete.completers")&&(e===r&&(e=e.map(p.clone)),e=Object(v.applyFilters)("editor.Autocomplete.completers",e,t)),e}),[r,t]),Object(d.createElement)(j.Autocomplete,Object(s.a)({},e,{completers:r}))};var Jn=function(e){var t=e.label,n=void 0===t?Object(h.__)("Change matrix alignment"):t,r=e.onChange,o=void 0===r?p.noop:r,c=e.value,i=void 0===c?"center":c,a=Object(d.createElement)(j.__experimentalAlignmentMatrixControl.Icon,{value:i}),l="block-editor-block-alignment-matrix-toolbar",s="".concat(l,"__popover");return Object(d.createElement)(j.Dropdown,{position:"bottom right",className:l,popoverProps:{className:s,isAlternate:!0},renderToggle:function(e){var t=e.onToggle,r=e.isOpen;return Object(d.createElement)(j.ToolbarGroup,null,Object(d.createElement)(j.ToolbarButton,{onClick:t,"aria-haspopup":"true","aria-expanded":r,onKeyDown:function(e){r||e.keyCode!==ut.DOWN||(e.preventDefault(),e.stopPropagation(),t())},label:n,icon:a,showTooltip:!0}))},renderContent:function(){return Object(d.createElement)(j.__experimentalAlignmentMatrixControl,{hasFocusBorder:!1,onChange:o,value:i})}})};function er(e){var t=e.clientId,n=Object(O.useSelect)((function(e){if(!t)return{};var n=e("core/block-editor"),r=n.getBlockName;return{attributes:(0,n.getBlockAttributes)(t),name:r(t)}}),[t]),r=n.attributes,o=n.name;if(!o)return null;var i=Object(c.getBlockType)(o);if(!i)return null;var a=i.title,l=Object(c.__experimentalGetBlockLabel)(i,r);return l!==a?"".concat(a,": ").concat(Object(p.truncate)(l,{length:15})):a}var tr=function(){var e=Object(O.useDispatch)("core/block-editor"),t=e.selectBlock,n=e.clearSelectedBlock,r=Object(O.useSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectionStart,r=t.getSelectedBlockClientId,o=t.getBlockParents,c=r();return{parents:o(c),clientId:c,hasSelection:!!n().clientId}}),[]),o=r.clientId,c=r.parents,i=r.hasSelection;return Object(d.createElement)("ul",{className:"block-editor-block-breadcrumb",role:"list","aria-label":Object(h.__)("Block breadcrumb")},Object(d.createElement)("li",{className:i?void 0:"block-editor-block-breadcrumb__current","aria-current":i?void 0:"true"},i&&Object(d.createElement)(j.Button,{className:"block-editor-block-breadcrumb__button",isTertiary:!0,onClick:n},Object(h.__)("Document")),!i&&Object(h.__)("Document")),c.map((function(e){return Object(d.createElement)("li",{key:e},Object(d.createElement)(j.Button,{className:"block-editor-block-breadcrumb__button",isTertiary:!0,onClick:function(){return t(e)}},Object(d.createElement)(er,{clientId:e})))})),!!o&&Object(d.createElement)("li",{className:"block-editor-block-breadcrumb__current","aria-current":"true"},Object(d.createElement)(er,{clientId:o})))};function nr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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 rr(e){for(var t=1;t1)return function(e,t,n,r,o){var c=t+1;if(o<0&&n)return Object(h.__)("Blocks cannot be moved up as they are already at the top");if(o>0&&r)return Object(h.__)("Blocks cannot be moved down as they are already at the bottom");if(o<0&&!n)return Object(h.sprintf)(Object(h._n)("Move %1$d block from position %2$d up by one place","Move %1$d blocks from position %2$d up by one place",e),e,c);if(o>0&&!r)return Object(h.sprintf)(Object(h._n)("Move %1$d block from position %2$d down by one place","Move %1$d blocks from position %2$d down by one place",e),e,c)}(e,n,r,o,c);if(r&&o)return Object(h.sprintf)(Object(h.__)("Block %s is the only block, and cannot be moved"),t);if(c>0&&!o){var u=s("down");if("down"===u)return Object(h.sprintf)(Object(h.__)("Move %1$s block from position %2$d down to position %3$d"),t,l,l+1);if("left"===u)return Object(h.sprintf)(Object(h.__)("Move %1$s block from position %2$d left to position %3$d"),t,l,l+1);if("right"===u)return Object(h.sprintf)(Object(h.__)("Move %1$s block from position %2$d right to position %3$d"),t,l,l+1)}if(c>0&&o){var d=s("down");if("down"===d)return Object(h.sprintf)(Object(h.__)("Block %1$s is at the end of the content and can’t be moved down"),t);if("left"===d)return Object(h.sprintf)(Object(h.__)("Block %1$s is at the end of the content and can’t be moved left"),t);if("right"===d)return Object(h.sprintf)(Object(h.__)("Block %1$s is at the end of the content and can’t be moved right"),t)}if(c<0&&!r){var b=s("up");if("up"===b)return Object(h.sprintf)(Object(h.__)("Move %1$s block from position %2$d up to position %3$d"),t,l,l-1);if("left"===b)return Object(h.sprintf)(Object(h.__)("Move %1$s block from position %2$d left to position %3$d"),t,l,l-1);if("right"===b)return Object(h.sprintf)(Object(h.__)("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(h.sprintf)(Object(h.__)("Block %1$s is at the beginning of the content and can’t be moved up"),t);if("left"===f)return Object(h.sprintf)(Object(h.__)("Block %1$s is at the beginning of the content and can’t be moved left"),t);if("right"===f)return Object(h.sprintf)(Object(h.__)("Block %1$s is at the beginning of the content and can’t be moved right"),t)}}var Dr=function(e,t,n){return"up"===e?"horizontal"===t?n?Br.a:xr.a:Pr.a:"down"===e?"horizontal"===t?n?xr.a:Br.a:Tr.a:null},Rr=function(e,t,n){return"up"===e?"horizontal"===t?n?Object(h.__)("Move right"):Object(h.__)("Move left"):Object(h.__)("Move up"):"down"===e?"horizontal"===t?n?Object(h.__)("Move left"):Object(h.__)("Move right"):Object(h.__)("Move down"):null},Ar=Object(d.forwardRef)((function(e,t){var n=e.clientIds,r=e.direction,o=e.orientation,i=Object(je.a)(e,["clientIds","direction","orientation"]),a=Object(m.useInstanceId)(Ar),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,d=t.getBlockListSettings,b=Object(p.castArray)(n),f=Object(p.first)(b),m=a(f),v=i(f,m),O=i(Object(p.last)(b),m),g=l(m),h=s(f),j=0===v,k=O===g.length-1,y=(d(m)||{}).orientation;return{blockType:h?Object(c.getBlockType)(h.name):null,isDisabled:"up"===r?j:k,rootClientId:m,firstIndex:v,isFirst:j,isLast:k,isRTL:u().isRTL,orientation:o||y}}),[n,r]),b=u.blockType,v=u.isDisabled,g=u.rootClientId,h=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(d.createElement)(d.Fragment,null,Object(d.createElement)(j.Button,Object(s.a)({ref:t,className:f()("block-editor-block-mover-button","is-".concat(r,"-button")),icon:Dr(r,C,_),label:Rr(r,C,_),"aria-describedby":x},i,{onClick:v?null:function(e){B(n,g),i.onClick&&i.onClick(e)},"aria-disabled":v})),Object(d.createElement)("span",{id:x,className:"block-editor-block-mover-button__description"},Nr(l,b&&b.title,y,h,k,"up"===r?-1:1,C,_)))})),Mr=Object(d.forwardRef)((function(e,t){return Object(d.createElement)(Ar,Object(s.a)({direction:"up",ref:t},e))})),Lr=Object(d.forwardRef)((function(e,t){return Object(d.createElement)(Ar,Object(s.a)({direction:"down",ref:t},e))}));function Fr(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(d.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 Vr=Object(d.createContext)({__experimentalFeatures:!1}),Hr=function(){return Object(d.useContext)(Vr)},zr=Object(d.createElement)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(k.Path,{d:"M11 13h2v-2h-2v2zm-6 0h2v-2H5v2zm12-2v2h2v-2h-2z"}));var Ur=function(e){var t=e.className,n=e.actions,r=e.children,o=e.secondaryActions;return Object(d.createElement)("div",{className:f()(t,"block-editor-warning")},Object(d.createElement)("div",{className:"block-editor-warning__contents"},Object(d.createElement)("p",{className:"block-editor-warning__message"},r),(d.Children.count(n)>0||o)&&Object(d.createElement)("div",{className:"block-editor-warning__actions"},d.Children.count(n)>0&&d.Children.map(n,(function(e,t){return Object(d.createElement)("span",{key:t,className:"block-editor-warning__action"},e)})),o&&Object(d.createElement)(j.DropdownMenu,{className:"block-editor-warning__secondary",icon:zr,label:Object(h.__)("More options"),popoverProps:{position:"bottom left",className:"block-editor-warning__dropdown"},noIcons:!0},(function(){return Object(d.createElement)(j.MenuGroup,null,o.map((function(e,t){return Object(d.createElement)(j.MenuItem,{onClick:e.onClick,key:t},e.title)})))})))))},Gr=n(277),Wr=function(e){var t=e.title,n=e.rawContent,r=e.renderedContent,o=e.action,c=e.actionText,i=e.className;return Object(d.createElement)("div",{className:i},Object(d.createElement)("div",{className:"block-editor-block-compare__content"},Object(d.createElement)("h2",{className:"block-editor-block-compare__heading"},t),Object(d.createElement)("div",{className:"block-editor-block-compare__html"},n),Object(d.createElement)("div",{className:"block-editor-block-compare__preview edit-post-visual-editor"},r)),Object(d.createElement)("div",{className:"block-editor-block-compare__action"},Object(d.createElement)(j.Button,{isSecondary:!0,tabIndex:"0",onClick:o},c)))};var Kr=function(e){var t,n,r,o,i=e.block,a=e.onKeep,l=e.onConvert,s=e.convertor,u=e.convertButtonText,b={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(Gr.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(d.createElement)("span",{key:t,className:n},e.value)}))}(b.rawContent,m.rawContent);return Object(d.createElement)("div",{className:"block-editor-block-compare__wrapper"},Object(d.createElement)(Wr,{title:Object(h.__)("Current"),className:"block-editor-block-compare__current",action:a,actionText:Object(h.__)("Convert to HTML"),rawContent:b.rawContent,renderedContent:b.renderedContent}),Object(d.createElement)(Wr,{title:Object(h.__)("After Conversion"),className:"block-editor-block-compare__converted",action:l,actionText:u,rawContent:v,renderedContent:m.renderedContent}))};var qr=function(e){return Object(c.rawHandler)({HTML:e.originalContent})},$r=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,qr(n))},attemptBlockRecovery:function(){var e,t,o,i;r(n.clientId,(t=(e=n).name,o=e.attributes,i=e.innerBlocks,Object(c.createBlock)(t,o,i)))}}}))])((function(e){var t=e.convertToHTML,n=e.convertToBlocks,r=e.convertToClassic,o=e.attemptBlockRecovery,i=e.block,a=!!Object(c.getBlockType)("core/html"),l=Object(d.useState)(!1),s=Object(oe.a)(l,2),u=s[0],b=s[1],f=Object(d.useCallback)((function(){return b(!0)}),[]),p=Object(d.useCallback)((function(){return b(!1)}),[]),m=Object(d.useMemo)((function(){return[{title:Object(h._x)("Resolve","imperative verb"),onClick:f},a&&{title:Object(h.__)("Convert to HTML"),onClick:t},{title:Object(h.__)("Convert to Classic Block"),onClick:r}].filter(Boolean)}),[f,t,r]);return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(Ur,{actions:[Object(d.createElement)(j.Button,{key:"recover",onClick:o,isPrimary:!0},Object(h.__)("Attempt Block Recovery"))],secondaryActions:m},Object(h.__)("This block contains unexpected or invalid content.")),u&&Object(d.createElement)(j.Modal,{title:Object(h.__)("Resolve Block"),onRequestClose:p,className:"block-editor-block-compare"},Object(d.createElement)(Kr,{block:i,onKeep:t,onConvert:n,convertor:qr,convertButtonText:Object(h.__)("Convert to Blocks")})))})),Yr=Object(d.createElement)(Ur,{className:"block-editor-block-list__block-crash-warning"},Object(h.__)("This block has encountered an error and cannot be previewed.")),Xr=function(){return Yr};function Qr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Yt.a)(e);if(t){var o=Object(Yt.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object($t.a)(this,n)}}var Zr=function(e){Object(qt.a)(n,e);var t=Qr(n);function n(){var e;return Object(Gt.a)(this,n),(e=t.apply(this,arguments)).state={hasError:!1},e}return Object(Wt.a)(n,[{key:"componentDidCatch",value:function(e){this.props.onError(e),this.setState({hasError:!0})}},{key:"render",value:function(){return this.state.hasError?null:this.props.children}}]),n}(d.Component),Jr=n(99),eo=n.n(Jr);var to=function(e){var t=e.clientId,n=Object(d.useState)(""),r=Object(oe.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(d.useEffect)((function(){i(Object(c.getBlockContent)(a))}),[a]),Object(d.createElement)(eo.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)}})},no=n(35),ro=n.n(no);function oo(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 co(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 io(e,t){Array.from(e.querySelectorAll(".rich-text")).forEach((function(e){t?e.setAttribute("contenteditable",!0):e.removeAttribute("contenteditable")}))}var ao=n(208),lo=[Object(d.createInterpolateElement)(Object(h.__)("While writing, you can press / to quickly insert new blocks."),{kbd:Object(d.createElement)("kbd",null)}),Object(d.createInterpolateElement)(Object(h.__)("Indent a list by pressing space at the beginning of a line."),{kbd:Object(d.createElement)("kbd",null)}),Object(d.createInterpolateElement)(Object(h.__)("Outdent a list by pressing backspace at the beginning of a line."),{kbd:Object(d.createElement)("kbd",null)}),Object(h.__)("Drag files into the editor to automatically insert media blocks."),Object(h.__)("Change a block's type by pressing the block icon on the toolbar.")];var so=function(){var e=Object(d.useState)(Math.floor(Math.random()*lo.length)),t=Object(oe.a)(e,1)[0];return Object(d.createElement)(j.Tip,null,lo[t])},uo=n(181),bo=n(142),fo=n(303);var po=function e(t){var n=t.className,r=t.onChange,o=t.value,c=t.placeholder,i=Object(m.useInstanceId)(e),a=Object(d.useRef)();return Object(d.createElement)("div",{className:f()("block-editor-inserter__search",n)},Object(d.createElement)(j.VisuallyHidden,{as:"label",htmlFor:"block-editor-inserter__search-".concat(i)},c),Object(d.createElement)("input",{ref:a,className:"block-editor-inserter__search-input",id:"block-editor-inserter__search-".concat(i),type:"search",placeholder:c,autoFocus:!0,onChange:function(e){return r(e.target.value)},autoComplete:"off",value:o||""}),Object(d.createElement)("div",{className:"block-editor-inserter__search-icon"},!!o&&Object(d.createElement)(j.Button,{icon:uo.a,label:Object(h.__)("Reset search"),onClick:function(){r(""),a.current.focus()}}),!o&&Object(d.createElement)(bo.a,{icon:fo.a})))};var mo=function(e){var t=e.blockType;return Object(d.createElement)("div",{className:"block-editor-block-card"},Object(d.createElement)($n,{icon:t.icon,showColors:!0}),Object(d.createElement)("div",{className:"block-editor-block-card__content"},Object(d.createElement)("h2",{className:"block-editor-block-card__title"},t.title),Object(d.createElement)("span",{className:"block-editor-block-card__description"},t.description)))},vo={insertUsage:{}},Oo={alignWide:!1,colors:[{name:Object(h.__)("Black"),slug:"black",color:"#000000"},{name:Object(h.__)("Cyan bluish gray"),slug:"cyan-bluish-gray",color:"#abb8c3"},{name:Object(h.__)("White"),slug:"white",color:"#ffffff"},{name:Object(h.__)("Pale pink"),slug:"pale-pink",color:"#f78da7"},{name:Object(h.__)("Vivid red"),slug:"vivid-red",color:"#cf2e2e"},{name:Object(h.__)("Luminous vivid orange"),slug:"luminous-vivid-orange",color:"#ff6900"},{name:Object(h.__)("Luminous vivid amber"),slug:"luminous-vivid-amber",color:"#fcb900"},{name:Object(h.__)("Light green cyan"),slug:"light-green-cyan",color:"#7bdcb5"},{name:Object(h.__)("Vivid green cyan"),slug:"vivid-green-cyan",color:"#00d084"},{name:Object(h.__)("Pale cyan blue"),slug:"pale-cyan-blue",color:"#8ed1fc"},{name:Object(h.__)("Vivid cyan blue"),slug:"vivid-cyan-blue",color:"#0693e3"},{name:Object(h.__)("Vivid purple"),slug:"vivid-purple",color:"#9b51e0"}],fontSizes:[{name:Object(h._x)("Small","font size name"),size:13,slug:"small"},{name:Object(h._x)("Normal","font size name"),size:16,slug:"normal"},{name:Object(h._x)("Medium","font size name"),size:20,slug:"medium"},{name:Object(h._x)("Large","font size name"),size:36,slug:"large"},{name:Object(h._x)("Huge","font size name"),size:42,slug:"huge"}],imageSizes:[{slug:"thumbnail",name:Object(h.__)("Thumbnail")},{slug:"medium",name:Object(h.__)("Medium")},{slug:"large",name:Object(h.__)("Large")},{slug:"full",name:Object(h.__)("Full Size")}],imageEditing:!0,maxWidth:580,allowedBlockTypes:!0,maxUploadFileSize:0,allowedMimeTypes:null,availableLegacyWidgets:{},hasPermissionsToManageWidgets:!1,__experimentalCanUserUseUnfilteredHTML:!1,__experimentalBlockDirectory:!1,__experimentalEnableFullSiteEditing:!1,__experimentalEnableFullSiteEditingDemo:!1,__mobileEnablePageTemplates:!1,__experimentalBlockPatterns:[],__experimentalBlockPatternCategories:[],gradients:[{name:Object(h.__)("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(h.__)("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(h.__)("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(h.__)("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(h.__)("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(h.__)("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(h.__)("Blush light purple"),gradient:"linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%)",slug:"blush-light-purple"},{name:Object(h.__)("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(h.__)("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(h.__)("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(h.__)("Electric grass"),gradient:"linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%)",slug:"electric-grass"},{name:Object(h.__)("Midnight"),gradient:"linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%)",slug:"midnight"}]};function go(e,t,n){return[].concat(Object(re.a)(e.slice(0,n)),Object(re.a)(Object(p.castArray)(t)),Object(re.a)(e.slice(n)))}function ho(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=Object(re.a)(e);return o.splice(t,r),go(o,e.slice(t,t+r),n)}function jo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ko(e){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,yo(o,r))})),n}function _o(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),_o(n.innerBlocks,n.clientId))}),{})}function Eo(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.identity,n={},r=Object(re.a)(e);r.length;){var o=r.shift(),c=o.innerBlocks,i=Object(je.a)(o,["innerBlocks"]);r.push.apply(r,Object(re.a)(c)),n[i.clientId]=t(i)}return n}function Co(e){return Eo(e,(function(e){return Object(p.omit)(e,"attributes")}))}function So(e){return Eo(e,(function(e){return e.attributes}))}function wo(e,t){return e===t?ko({},e):t}function Io(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 Bo=function(e){return e.reduce((function(e,t){return e[t]={},e}),{})};var xo=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=ko({},t)).attributes=Object(p.mapValues)(t.attributes,(function(e,n){return"core/block"===t.byClientId[n].name&&e.ref===r?ko(ko({},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)(Eo(n.blocks),(function(){return{}}));break;case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":var c=Object(p.keys)(Eo(n.blocks));n.rootClientId&&!t.controlledInnerBlocks[n.rootClientId]&&c.push(n.rootClientId),r.cache=ko(ko({},r.cache),Bo(o(c)));break;case"UPDATE_BLOCK":r.cache=ko(ko({},r.cache),Bo(o([n.clientId])));break;case"UPDATE_BLOCK_ATTRIBUTES":r.cache=ko(ko({},r.cache),Bo(o(n.clientIds)));break;case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":var i=Bo(o(n.replacedClientIds));r.cache=ko(ko(ko({},Object(p.omit)(r.cache,n.replacedClientIds)),Object(p.omit)(i,n.replacedClientIds)),Bo(Object(p.keys)(Eo(n.blocks))));break;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":r.cache=ko(ko({},Object(p.omit)(r.cache,n.removedClientIds)),Bo(Object(p.difference)(o(n.clientIds),n.clientIds)));break;case"MOVE_BLOCKS_TO_POSITION":var a=Object(re.a)(n.clientIds);n.fromRootClientId&&a.push(n.fromRootClientId),n.toRootClientId&&a.push(n.toRootClientId),r.cache=ko(ko({},r.cache),Bo(o(a)));break;case"MOVE_BLOCKS_UP":case"MOVE_BLOCKS_DOWN":var l=[];n.rootClientId&&l.push(n.rootClientId),r.cache=ko(ko({},r.cache),Bo(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=ko(ko({},r.cache),Bo(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(re.a)(n),[o],Object(re.a)(e(t,o)))}),[])}(t.order,"",t.controlledInnerBlocks),o=Object.keys(Object(p.pickBy)(t.controlledInnerBlocks));return ko(ko({},t),{},{byClientId:ko(ko({},Object(p.omit)(t.byClientId,r)),Co(n.blocks)),attributes:ko(ko({},Object(p.omit)(t.attributes,r)),So(n.blocks)),order:ko(ko({},Object(p.omit)(t.order,r)),Object(p.omit)(yo(n.blocks),o)),parents:ko(ko({},Object(p.omit)(t.parents,r)),_o(n.blocks)),cache:ko(ko({},Object(p.omit)(t.cache,r)),Object(p.omit)(Object(p.mapValues)(Eo(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:ko(ko({},c),{},{isPersistentChange:a})}return c=ko(ko({},c),{},{isPersistentChange:i?!n:!Io(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 Co(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return ko(ko({},e),Co(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:ko(ko({},e),{},Object(u.a)({},t.clientId,ko(ko({},e[t.clientId]),n)));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?ko(ko({},Object(p.omit)(e,t.replacedClientIds)),Co(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 So(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return ko(ko({},e),So(t.blocks));case"UPDATE_BLOCK":return e[t.clientId]&&t.updates.attributes?ko(ko({},e),{},Object(u.a)({},t.clientId,ko(ko({},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 ko(ko({},n),{},Object(u.a)({},r,Object(p.reduce)(t.attributes,(function(t,n,o){return n!==t[o]&&((t=wo(e[r],t))[o]=n),t}),e[r])))}),{});return t.clientIds.every((function(t){return n[t]===e[t]}))?e:ko(ko({},e),n);case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?ko(ko({},Object(p.omit)(e,t.replacedClientIds)),So(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 yo(t.blocks);case"RECEIVE_BLOCKS":return ko(ko({},e),Object(p.omit)(yo(t.blocks),""));case"INSERT_BLOCKS":var n=t.rootClientId,r=void 0===n?"":n,o=e[r]||[],c=yo(t.blocks,r),i=t.index,a=void 0===i?o.length:i;return ko(ko(ko({},e),c),{},Object(u.a)({},r,go(o,c[r],a)));case"MOVE_BLOCKS_TO_POSITION":var l,s=t.fromRootClientId,d=void 0===s?"":s,b=t.toRootClientId,f=void 0===b?"":b,m=t.clientIds,v=t.index,O=void 0===v?e[f].length:v;if(d===f){var g=e[f],h=g.indexOf(m[0]);return ko(ko({},e),{},Object(u.a)({},f,ho(e[f],h,O,m.length)))}return ko(ko({},e),{},(l={},Object(u.a)(l,d,p.without.apply(void 0,[e[d]].concat(Object(re.a)(m)))),Object(u.a)(l,f,go(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 ko(ko({},e),{},Object(u.a)({},y,ho(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 ko(ko({},e),{},Object(u.a)({},I,ho(P,T,T+1,S.length)));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":var N=t.clientIds;if(!t.blocks)return e;var D=yo(t.blocks);return Object(p.flow)([function(e){return Object(p.omit)(e,t.replacedClientIds)},function(e){return ko(ko({},e),Object(p.omit)(D,""))},function(e){return Object(p.mapValues)(e,(function(e){return Object(p.reduce)(e,(function(e,t){return t===N[0]?[].concat(Object(re.a)(e),Object(re.a)(D[""])):(-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(re.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 _o(t.blocks);case"RECEIVE_BLOCKS":return ko(ko({},e),_o(t.blocks));case"INSERT_BLOCKS":return ko(ko({},e),_o(t.blocks,t.rootClientId||""));case"MOVE_BLOCKS_TO_POSITION":return ko(ko({},e),t.clientIds.reduce((function(e,n){return e[n]=t.toRootClientId||"",e}),{}));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return ko(ko({},Object(p.omit)(e,t.replacedClientIds)),_o(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?ko(ko({},e),{},Object(u.a)({},r,o)):e}});function Po(){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 To=Object(O.combineReducers)({blocks:xo,isTyping:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_TYPING":return!0;case"STOP_TYPING":return!1}return e},draggedBlocks:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_DRAGGING_BLOCKS":return t.clientIds;case"STOP_DRAGGING_BLOCKS":return[]}return e},isCaretWithinFormattedText:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ENTER_FORMATTED_TEXT":return!0;case"EXIT_FORMATTED_TEXT":return!1}return e},selectionStart:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SELECTION_CHANGE":return{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.startOffset};case"RESET_SELECTION":return t.selectionStart;case"MULTI_SELECT":return{clientId:t.start}}return Po(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 Po(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 ko(ko({},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:ko(ko({},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 ko(ko({},e),{},{isValid:t.isValid})}return e},settings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Oo,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_SETTINGS":return ko(ko({},e),t.settings)}return e},preferences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:vo,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),ko(ko({},e),{},{insertUsage:ko(ko({},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 ko(ko({},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}}),No=n(113),Do=n.n(No),Ro=n(275),Ao=n.n(Ro),Mo=n(40);function Lo(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[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}function Ho(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 dc(e){var t;return hr.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Lo("core/block-editor","getPreviousBlockClientId",e);case 2:if(!(t=n.sent)){n.next=7;break}return n.next=6,uc(t,-1);case 6:return n.abrupt("return",[t]);case 7:case"end":return n.stop()}}),Wo)}function bc(e){var t;return hr.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Lo("core/block-editor","getNextBlockClientId",e);case 2:if(!(t=n.sent)){n.next=7;break}return n.next=6,uc(t);case 6:return n.abrupt("return",[t]);case 7:case"end":return n.stop()}}),Ko)}function fc(){return{type:"START_MULTI_SELECT"}}function pc(){return{type:"STOP_MULTI_SELECT"}}function mc(e,t){return{type:"MULTI_SELECT",start:e,end:t}}function vc(){return{type:"CLEAR_SELECTED_BLOCK"}}function Oc(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return{type:"TOGGLE_SELECTION",isSelectionEnabled:e}}function gc(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 Uo(Uo({},e),{},{attributes:Uo(Uo({},i),{},{className:"".concat(r||""," is-style-").concat(a).trim()})})}))}function hc(e,t,n,r,o){var c,i,a;return hr.a.wrap((function(l){for(;;)switch(l.prev=l.next){case 0:return e=Object(p.castArray)(e),l.t0=gc,l.t1=Object(p.castArray)(t),l.next=5,Lo("core/block-editor","getSettings");case 5:return l.t2=l.sent,t=(0,l.t0)(l.t1,l.t2),l.next=9,Lo("core/block-editor","getBlockRootClientId",Object(p.first)(e));case 9:c=l.sent,i=0;case 11:if(!(i1&&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,Lo("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,Lo("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()}}),$o)}function Cc(e){var t,n,r,o=arguments;return hr.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,Ec([e],t,n,r);case 5:case"end":return c.stop()}}),Yo)}function Sc(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return wc([e],t,n,r)}function wc(e,t,n){var r,o,c,i,a,l,s=arguments;return hr.a.wrap((function(u){for(;;)switch(u.prev=u.next){case 0:return r=!(s.length>3&&void 0!==s[3])||s[3],o=s.length>4?s[4]:void 0,u.t0=gc,u.t1=Object(p.castArray)(e),u.next=6,Lo("core/block-editor","getSettings");case 6:u.t2=u.sent,e=(0,u.t0)(u.t1,u.t2),c=[],i=Vo(e),u.prev=10,i.s();case 12:if((a=i.n()).done){u.next=20;break}return l=a.value,u.next=16,Lo("core/block-editor","canInsertBlockType",l.name,n);case 16:u.sent&&c.push(l);case 18:u.next=12;break;case 20:u.next=25;break;case 22:u.prev=22,u.t3=u.catch(10),i.e(u.t3);case 25:return u.prev=25,i.f(),u.finish(25);case 28:if(!c.length){u.next=30;break}return u.abrupt("return",{type:"INSERT_BLOCKS",blocks:c,index:t,rootClientId:n,time:Date.now(),updateSelection:r,meta:o});case 30:case"end":return u.stop()}}),Xo,null,[[10,22,25,28]])}function Ic(e,t){return{type:"SHOW_INSERTION_POINT",rootClientId:e,index:t}}function Bc(){return{type:"HIDE_INSERTION_POINT"}}function xc(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}function Pc(){return{type:"SYNCHRONIZE_TEMPLATE"}}function Tc(e,t){return{type:"MERGE_BLOCKS",blocks:[e,t]}}function Nc(e){var t,n,r,o,c=arguments;return hr.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,Lo("core/block-editor","getBlockRootClientId",e[0]);case 6:return n=i.sent,i.next=9,Lo("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,dc(e[0]);case 15:r=i.sent,i.next=21;break;case 18:return i.next=20,Lo("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(oc(),"t0",24);case 24:return o=i.t0,i.abrupt("return",[r||o]);case 26:case"end":return i.stop()}}),Qo)}function Dc(e,t){return Nc([e],t)}function Rc(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 Ac(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function Mc(){return{type:"START_TYPING"}}function Lc(){return{type:"STOP_TYPING"}}function Fc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{type:"START_DRAGGING_BLOCKS",clientIds:e}}function Vc(){return{type:"STOP_DRAGGING_BLOCKS"}}function Hc(){return{type:"ENTER_FORMATTED_TEXT"}}function zc(){return{type:"EXIT_FORMATTED_TEXT"}}function Uc(e,t,n,r){return{type:"SELECTION_CHANGE",clientId:e,attributeKey:t,startOffset:n,endOffset:r}}function Gc(e,t,n){var r=Object(c.getDefaultBlockName)();if(r)return Sc(Object(c.createBlock)(r,e),n,t)}function Wc(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function Kc(e){return{type:"UPDATE_SETTINGS",settings:e}}function qc(e,t){return{type:"SAVE_REUSABLE_BLOCK_SUCCESS",id:e,updatedId:t}}function $c(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}function Yc(){return{type:"MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"}}function Xc(){return{type:"MARK_AUTOMATIC_CHANGE"}}function Qc(){var e,t=arguments;return hr.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(h.__)("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(h.__)("You are currently in edit mode. To return to the navigation mode, press Escape."));case 4:case"end":return n.stop()}}),Zo)}function Zc(){var e,t=arguments;return hr.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(h.__)("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()}}),Jo)}function Jc(e){var t,n,r,o,i,a,l=arguments;return hr.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,Lo("core/block-editor","getBlocksByClientId",e);case 5:return n=s.sent,s.next=8,Lo("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,Lo("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,wc(a,i+1,r,t);case 20:if(!(a.length>1&&t)){s.next=23;break}return s.next=23,mc(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()}}),ec)}function ei(e){var t,n;return hr.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,Lo("core/block-editor","getBlockRootClientId",e);case 4:return t=r.sent,r.next=7,Lo("core/block-editor","getTemplateLock",t);case 7:if(!r.sent){r.next=10;break}return r.abrupt("return");case 10:return r.next=12,Lo("core/block-editor","getBlockIndex",e,t);case 12:return n=r.sent,r.next=15,Gc({},t,n);case 15:return r.abrupt("return",r.sent);case 16:case"end":return r.stop()}}),tc)}function ti(e){var t,n;return hr.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,Lo("core/block-editor","getBlockRootClientId",e);case 4:return t=r.sent,r.next=7,Lo("core/block-editor","getTemplateLock",t);case 7:if(!r.sent){r.next=10;break}return r.abrupt("return");case 10:return r.next=12,Lo("core/block-editor","getBlockIndex",e,t);case 12:return n=r.sent,r.next=15,Gc({},t,n+1);case 15:return r.abrupt("return",r.sent);case 16:case"end":return r.stop()}}),nc)}function ni(e,t){return{type:"TOGGLE_BLOCK_HIGHLIGHT",clientId:e,isHighlighted:t}}function ri(e){return hr.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ni(e,!0);case 2:return t.next=4,{type:"SLEEP",duration:150};case 4:return t.next=6,ni(e,!1);case 6:case"end":return t.stop()}}),rc)}function oi(e,t){return{type:"SET_HAS_CONTROLLED_INNER_BLOCKS",hasControlledInnerBlocks:t,clientId:e}}var ci=n(41);function ii(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return ai(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ai(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}function ai(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]:"";return Object(p.map)(Zi(e,t),(function(t){return gi(e,t)}))}),(function(e){return[e.blocks.byClientId,e.blocks.order,e.blocks.attributes]})),ji=function e(t,n){return Object(p.flatMap)(n,(function(n){var r=Zi(t,n);return[].concat(Object(re.a)(r),Object(re.a)(e(t,r)))}))},ki=Object(ci.a)((function(e){var t=Zi(e);return[].concat(Object(re.a)(t),Object(re.a)(ji(e,t)))}),(function(e){return[e.blocks.order]})),yi=Object(ci.a)((function(e,t){var n=ki(e);return t?Object(p.reduce)(n,(function(n,r){return e.blocks.byClientId[r].name===t?n+1:n}),0):n.length}),(function(e){return[e.blocks.order,e.blocks.byClientId]})),_i=Object(ci.a)((function(e,t){return Object(p.map)(Object(p.castArray)(t),(function(t){return mi(e,t)}))}),(function(e){return[e.blocks.byClientId,e.blocks.order,e.blocks.attributes]}));function Ei(e,t){return Zi(e,t).length}function Ci(e){return e.selectionStart}function Si(e){return e.selectionEnd}function wi(e){return e.selectionStart.clientId}function Ii(e){return e.selectionEnd.clientId}function Bi(e){var t=Ui(e).length;return t||(e.selectionStart.clientId?1:0)}function xi(e){var t=e.selectionStart,n=e.selectionEnd;return!!t.clientId&&t.clientId===n.clientId}function Pi(e){var t=e.selectionStart,n=e.selectionEnd,r=t.clientId;return r&&r===n.clientId?r:null}function Ti(e){var t=Pi(e);return t?mi(e,t):null}function Ni(e,t){return void 0!==e.blocks.parents[t]?e.blocks.parents[t]:null}var Di=Object(ci.a)((function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=[],o=t;e.blocks.parents[o];)o=e.blocks.parents[o],r.push(o);return n?r:r.reverse()}),(function(e){return[e.blocks.parents]})),Ri=Object(ci.a)((function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=Di(e,t,r);return Object(p.map)(Object(p.filter)(Object(p.map)(o,(function(t){return{id:t,name:bi(e,t)}})),{name:n}),(function(e){return e.id}))}),(function(e){return[e.blocks.parents]}));function Ai(e,t){var n,r=t;do{n=r,r=e.blocks.parents[r]}while(r);return n}function Mi(e,t){for(var n,r=Pi(e),o=[].concat(Object(re.a)(Di(e,t)),[t]),c=[].concat(Object(re.a)(Di(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=Pi(e)),void 0===t&&(t=n<0?Wi(e):Ki(e)),!t)return null;var r=Ni(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 Fi(e,t){return Li(e,t,-1)}function Vi(e,t){return Li(e,t,1)}function Hi(e){return e.initialPosition}var zi=Object(ci.a)((function(e){var t=e.selectionStart,n=e.selectionEnd;if(void 0===t.clientId||void 0===n.clientId)return di;if(t.clientId===n.clientId)return[t.clientId];var r=Ni(e,t.clientId);if(null===r)return di;var o=Zi(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 Ui(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId===n.clientId?di:zi(e)}var Gi=Object(ci.a)((function(e){var t=Ui(e);return t.length?t.map((function(t){return mi(e,t)})):di}),(function(e){return[].concat(Object(re.a)(zi.getDependants(e)),[e.blocks.byClientId,e.blocks.order,e.blocks.attributes])}));function Wi(e){return Object(p.first)(Ui(e))||null}function Ki(e){return Object(p.last)(Ui(e))||null}function qi(e,t){return Wi(e)===t}function $i(e,t){return-1!==Ui(e).indexOf(t)}var Yi=Object(ci.a)((function(e,t){for(var n=t,r=!1;n&&!r;)r=$i(e,n=Ni(e,n));return r}),(function(e){return[e.blocks.order,e.selectionStart.clientId,e.selectionEnd.clientId]}));function Xi(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId===n.clientId?null:t.clientId||null}function Qi(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId===n.clientId?null:n.clientId||null}function Zi(e,t){return e.blocks.order[t||""]||di}function Ji(e,t,n){return Zi(e,n).indexOf(t)}function ea(e,t){var n=e.selectionStart,r=e.selectionEnd;return n.clientId===r.clientId&&n.clientId===t}function ta(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Object(p.some)(Zi(e,t),(function(t){return ea(e,t)||$i(e,t)||n&&ta(e,t,n)}))}function na(e,t){if(!t)return!1;var n=Ui(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=Ia(e),a=i.allowedBlockTypes,l=r(a,t,!0);if(!l)return!1;var s=!!Oa(e,n);if(s)return!1;var u=wa(e,n);if(n&&void 0===u)return!1;var d=Object(p.get)(u,["allowedBlocks"]),b=r(d,t),f=o.parent,m=bi(e,n),v=r(f,m);return null!==b&&null!==v?b||v:null!==b?b:null===v||v},ha=Object(ci.a)(ga,(function(e,t,n){return[e.blockListSettings[n],e.blocks.byClientId[n],e.settings.allowedBlockTypes,e.settings.templateLock]}));function ja(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return t.every((function(t){return ha(e,bi(e,t),n)}))}function ka(e,t){return Object(p.get)(e.preferences.insertUsage,[t],null)}var ya=function(e,t,n){return!!Object(c.hasBlockSupport)(t,"inserter",!0)&&ga(e,t.name,n)},_a=function(e){return function(t){return si(si({},e),{},{id:"".concat(e.id,"-").concat(t.name),icon:t.icon||e.icon,title:t.title||e.title,description:t.description||e.description,example:t.hasOwnProperty("example")?t.example:e.example,initialAttributes:si(si({},e.initialAttributes),t.attributes),innerBlocks:t.innerBlocks,keywords:t.keywords||e.keywords})}},Ea=Object(ci.a)((function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=function(e,t){if(!e)return t;var n=Date.now()-e;switch(!0){case n<36e5:return 4*t;case n<864e5:return 2*t;case n<6048e5:return t/2;default:return t/4}},o=function(t){var n=t.name,o=!1;Object(c.hasBlockSupport)(t.name,"multiple",!0)||(o=Object(p.some)(_i(e,ki(e)),{name:t.name}));var i=ka(e,n)||{},a=i.time,l=i.count,s=void 0===l?0:l,u=t.variations.filter((function(e){var t=e.scope;return!t||t.includes("inserter")}));return{id:n,name:t.name,initialAttributes:{},title:t.title,description:t.description,icon:t.icon,category:t.category,keywords:t.keywords,variations:u,example:t.example,isDisabled:o,utility:1,frecency:r(a,s)}},i=function(t){var n,o="core/block/".concat(t.id),i=Pa(e,t.id);1===i.length&&(n=Object(c.getBlockType)(i[0].name));var a=ka(e,o)||{},l=a.time,s=a.count,u=r(l,void 0===s?0:s);return{id:o,name:"core/block",initialAttributes:{ref:t.id},title:t.title,icon:n?n.icon:ui,category:"reusable",keywords:[],isDisabled:!1,utility:1,frecency:u}},a=Object(c.getBlockTypes)().filter((function(t){return ya(e,t,n)})).map(o),l=ga(e,"core/block",n)?Da(e).map(i):[],s=a.filter((function(e){var t=e.variations;return!(void 0===t?[]:t).some((function(e){return e.isDefault}))})),u=[],d=ii(a);try{for(d.s();!(t=d.n()).done;){var b=t.value,f=b.variations,m=void 0===f?[]:f;if(m.length){var v=_a(b);u.push.apply(u,Object(re.a)(m.map(v)))}}}catch(e){d.e(e)}finally{d.f()}return[].concat(Object(re.a)(s),u,Object(re.a)(l))}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.blocks.order,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,Da(e),Object(c.getBlockTypes)()]})),Ca=Object(ci.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 ya(e,n,t)}));if(n)return!0;var r=ga(e,"core/block",t)&&Da(e).length>0;return r}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,Da(e),Object(c.getBlockTypes)()]})),Sa=Object(ci.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 ya(e,n,t)}))}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,Object(c.getBlockTypes)()]}));function wa(e,t){return e.blockListSettings[t]}function Ia(e){return e.settings}function Ba(e){return e.blocks.isPersistentChange}var xa=Object(ci.a)((function(e,t){return Object(p.filter)(e.blockListSettings,(function(e,n){return t.includes(n)}))}),(function(e){return[e.blockListSettings]})),Pa=Object(ci.a)((function(e,t){var n=Object(p.find)(Da(e),(function(e){return e.id===t}));return n?Object(c.parse)(n.content):null}),(function(e){return[Da(e)]}));function Ta(e){return e.blocks.isIgnoredChange}function Na(e){return e.lastBlockAttributesChange}function Da(e){return Object(p.get)(e,["settings","__experimentalReusableBlocks"],di)}function Ra(e){return e.isNavigationMode}function Aa(e){return e.hasBlockMovingClientId}function Ma(e){return!!e.automaticChangeStatus}function La(e,t){return e.highlightedBlock===t}function Fa(e,t){return!!e.blocks.controlledInnerBlocks[t]}function Va(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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 Ha(e){for(var t=1;t=s&&a<=u?a:a2&&void 0!==arguments[2]?arguments[2]:["top","bottom","left","right"];return o.forEach((function(o){var c=cl(e,t,o);(void 0===n||c6||_.length>6,N=Object(d.useMemo)((function(){return Un(_,E,C,s)}),[s,_,E,C]),D=Object(d.useMemo)((function(){return Gn(B,s)}),[s,B]),R=Object(O.useSelect)((function(e){return e("core/block-editor").getSettings().__experimentalSetIsInserterOpened}),[]),A=Object(O.useSelect)((function(e){return e("core/block-editor").getPreviousBlockClientId(r)}),[r]);Object(d.useEffect)((function(){R&&R(!1)}),[R]);var M=Object(O.useDispatch)("core/block-editor").selectBlock;return Object(d.useEffect)((function(){if(s){var e=N.length+D.length,t=Object(h.sprintf)(Object(h._n)("%d result found.","%d results found.",e),e);i(t)}}),[s,i]),Object(d.createElement)("div",{className:f()("block-editor-inserter__quick-inserter",{"has-search":T,"has-expand":R}),onKeyPress:Zl,onKeyDown:Ql},T&&Object(d.createElement)(po,{value:s,onChange:function(e){u(e)},placeholder:Object(h.__)("Search for a block")}),Object(d.createElement)(Jl,{blockTypes:N,blockPatterns:P?D:[],onSelectBlockPattern:x,onSelectBlockType:S,onHover:g}),R&&Object(d.createElement)(j.Button,{className:"block-editor-inserter__quick-inserter-expand",onClick:function(){M(A),setTimeout((function(){R(!0)}))},"aria-label":Object(h.__)("Browse all. This will open the main inserter panel in the editor toolbar.")},Object(h.__)("Browse all")))}));function ts(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Yt.a)(e);if(t){var o=Object(Yt.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object($t.a)(this,n)}}var ns=function(e){var t,n=e.onToggle,r=e.disabled,o=e.isOpen,c=e.blockTitle,i=e.hasSingleBlockType,a=e.toggleProps,l=void 0===a?{}:a;t=i?Object(h.sprintf)(Object(h._x)("Add %s","directly add the only allowed block"),c):Object(h._x)("Add block","Generic label for block inserter button");var u=l.onClick,b=Object(je.a)(l,["onClick"]);return Object(d.createElement)(j.Button,Object(s.a)({icon:ao.a,label:t,tooltipPosition:"bottom",onClick:function(e){n&&n(e),u&&u(e)},className:"block-editor-inserter__toggle","aria-haspopup":!i&&"true","aria-expanded":!i&&o,disabled:r},b))},rs=function(e){Object(qt.a)(n,e);var t=ts(n);function n(){var e;return Object(Gt.a)(this,n),(e=t.apply(this,arguments)).onToggle=e.onToggle.bind(Object(Kt.a)(e)),e.renderToggle=e.renderToggle.bind(Object(Kt.a)(e)),e.renderContent=e.renderContent.bind(Object(Kt.a)(e)),e}return Object(Wt.a)(n,[{key:"onToggle",value:function(e){var t=this.props.onToggle;t&&t(e)}},{key:"renderToggle",value:function(e){var t=e.onToggle,n=e.isOpen,r=this.props,o=r.disabled,c=r.blockTitle,i=r.hasSingleBlockType,a=r.toggleProps,l=r.hasItems,s=r.renderToggle,u=void 0===s?ns:s;return u({onToggle:t,isOpen:n,disabled:o||!l,blockTitle:c,hasSingleBlockType:i,toggleProps:a})}},{key:"renderContent",value:function(e){var t=e.onClose,n=this.props,r=n.rootClientId,o=n.clientId,c=n.isAppender,i=n.showInserterHelpPanel,a=n.__experimentalSelectBlockOnInsert;return n.__experimentalIsQuick?Object(d.createElement)(es,{onSelect:t,rootClientId:r,clientId:o,isAppender:c,selectBlockOnInsert:a}):Object(d.createElement)(Xl,{onSelect:t,rootClientId:r,clientId:o,isAppender:c,showInserterHelpPanel:i,__experimentalSelectBlockOnInsert:a})}},{key:"render",value:function(){var e=this.props,t=e.position,n=e.hasSingleBlockType,r=e.insertOnlyAllowedBlock,o=e.__experimentalIsQuick;return n?this.renderToggle({onToggle:r}):Object(d.createElement)(j.Dropdown,{className:"block-editor-inserter",contentClassName:f()("block-editor-inserter__popover",{"is-quick":o}),position:t,onToggle:this.onToggle,expandOnMobile:!0,headerTitle:Object(h.__)("Add a block"),renderToggle:this.renderToggle,renderContent:this.renderContent})}}]),n}(d.Component),os=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")),d=!1;return u&&(d=s[0]),{hasItems:i(r),hasSingleBlockType:u,blockTitle:d?d.title:"",allowedBlockType:d,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(h.sprintf)(Object(h.__)("%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}))])(rs),cs=Object(d.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(d.createElement)("div",{ref:t,tabIndex:l?void 0:"0",onFocus:function(){if(c.current)c.current=null;else if(n){var e=$e(n);if(r){var t=_r.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=_r.focus.tabbable.find(o.current);l.length&&(r?Object(p.last)(l).focus():Object(p.first)(l).focus())}},style:{position:"fixed"}})}));var is=Object(p.overEvery)([_r.isTextField,_r.focus.tabbable.isTabbableIndex]);function as(e,t,n,r){var o,c=_r.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(!_r.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(_r.isTextField)(n))return!0;if(!n.classList.contains("block-editor-block-list__block"))return!1;if(function(e){return e.classList.contains("block-editor-block-list__layout")||!!e.querySelector(".block-editor-block-list__layout")}(n))return!0;if(n.contains(e))return!1;for(var l,s=1;(l=i[c+s])&&n.contains(l);s++)if(t(l,c+s,i))return!1;return!0}))}function ls(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getMultiSelectedBlocksStartClientId,o=t.getMultiSelectedBlocksEndClientId,c=t.getPreviousBlockClientId,i=t.getNextBlockClientId,a=t.getFirstMultiSelectedBlockClientId,l=t.getLastMultiSelectedBlockClientId,s=t.hasMultiSelection,u=t.getBlockOrder,d=t.isNavigationMode,b=t.hasBlockMovingClientId,f=t.getBlockIndex,p=t.getBlockRootClientId,m=t.getClientIdsOfDescendants,v=t.canInsertBlockType,O=t.getBlockName,g=t.isSelectionEnabled,h=t.getBlockSelectionStart,j=t.isMultiSelecting,k=t.getSettings,y=n(),_=r(),E=o();return{selectedBlockClientId:y,selectionStartClientId:_,selectionBeforeEndClientId:c(E||y),selectionAfterEndClientId:i(E||y),selectedFirstClientId:a(),selectedLastClientId:l(),hasMultiSelection:s(),blocks:u(),isNavigationMode:d(),hasBlockMovingClientId:b,getBlockIndex:f,getBlockRootClientId:p,getClientIdsOfDescendants:m,canInsertBlockType:v,getBlockName:O,isSelectionEnabled:g(),blockSelectionStart:h(),isMultiSelecting:j(),keepCaretInsideBlock:k().keepCaretInsideBlock}}function ss(e){var t=e.children,n=Object(d.useRef)(),r=Object(d.useRef)(),o=Object(d.useRef)(),c=Object(d.useRef)(),i=Object(d.useRef)(),a=Object(d.useRef)(),l=Object(d.useRef)(),s=Object(O.useSelect)(ls,[]),u=s.selectedBlockClientId,b=s.selectionStartClientId,m=s.selectionBeforeEndClientId,v=s.selectionAfterEndClientId,g=s.selectedFirstClientId,j=s.selectedLastClientId,k=s.hasMultiSelection,y=s.blocks,_=s.isNavigationMode,E=s.hasBlockMovingClientId,C=s.isSelectionEnabled,S=s.blockSelectionStart,w=s.isMultiSelecting,I=s.getBlockIndex,B=s.getBlockRootClientId,x=s.getClientIdsOfDescendants,P=s.canInsertBlockType,T=s.getBlockName,N=s.keepCaretInsideBlock,D=Object(O.useDispatch)("core/block-editor"),R=D.multiSelect,A=D.selectBlock,M=D.clearSelectedBlock,L=D.setNavigationMode,F=D.setBlockMovingClientId,V=D.moveBlockToPosition,H=Object(d.useState)(!1),z=Object(oe.a)(H,2),U=z[0],G=z[1];Object(d.useEffect)((function(){k&&!w&&c.current.focus()}),[k,w]);var W=f()("block-editor-writing-flow",{"is-navigate-mode":_,"is-block-moving-mode":!!E(),"can-insert-moving-block":U});return Object(d.createElement)("div",{className:W},Object(d.createElement)(cs,{ref:r,selectedClientId:u,containerRef:n,noCapture:a,hasMultiSelection:k,multiSelectionContainer:c}),Object(d.createElement)("div",{ref:n,onKeyDown:function(e){var t=e.keyCode,s=e.target,d=t===ut.UP,f=t===ut.DOWN,O=t===ut.LEFT,h=t===ut.RIGHT,C=t===ut.TAB,S=t===ut.ESCAPE,w=t===ut.ENTER,D=t===ut.SPACE,H=d||O,z=O||h,U=d||f,W=z||U,K=e.shiftKey,q=K||e.ctrlKey||e.altKey||e.metaKey,$=U?_r.isVerticalEdge:_r.isHorizontalEdge;if(_){var Y,X=C&&K||d,Q=C&&!K||f,Z=O,J=h;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=E();if(ne&&Y&&G(P(T(ne),B(Y))),S&&ne&&(F(null),G(!1)),(w||D)&&ne){var re=B(ne),oe=B(u),ce=I(ne,re),ie=I(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 h=Object(c.getBlockType)(a),k=Object(c.__experimentalGetAccessibleBlockLabel)(h,l,i+1,b),y=f()("block-editor-block-list__block-selection-button",{"is-block-moving-mode":!!u});return Object(d.createElement)("div",Object(s.a)({className:y},r),Object(d.createElement)(j.Button,{ref:g,onClick:function(){return m(!1)},onKeyDown:function(e){var n=e.keyCode;n!==ut.BACKSPACE&&n!==ut.DELETE||(v(t),e.preventDefault())},label:k},Object(d.createElement)(er,{clientId:t})))};function ps(e,t,n){var r=Object(d.useState)(t),o=Object(oe.a)(r,1)[0],c=Object(d.useCallback)((function(){var t,n,r;t=e.current,n=_r.focus.tabbable.find(t),(r=Object(oe.a)(n,1)[0])&&r.focus()}),[]);Object(l.useShortcut)("core/block-editor/focus-toolbar",c,{bindGlobal:!0,eventName:"keydown"}),Object(d.useEffect)((function(){o&&c()}),[n,o,c])}var ms=function(e){var t=e.children,n=e.focusOnMount,r=Object(je.a)(e,["children","focusOnMount"]),o=Object(d.useRef)(),c=function(e){var t=Object(d.useState)(!0),n=Object(oe.a)(t,2),r=n[0],o=n[1],c=Object(d.useCallback)((function(){var t=_r.focus.tabbable.find(e.current),n=!t.some((function(e){return!("toolbarItem"in e.dataset)}));n||ro()("Using custom components as toolbar controls",{alternative:"ToolbarItem or ToolbarButton components",link:"https://developer.wordpress.org/block-editor/components/toolbar-button/#inside-blockcontrols"}),o(n)}),[]);return Object(d.useLayoutEffect)((function(){var t=new window.MutationObserver(c);return t.observe(e.current,{childList:!0,subtree:!0}),function(){return t.disconnect()}}),[r]),r}(o);return ps(o,n,c),c?Object(d.createElement)(j.Toolbar,Object(s.a)({label:r["aria-label"],ref:o},r),t):Object(d.createElement)(j.NavigableMenu,Object(s.a)({orientation:"horizontal",role:"toolbar",ref:o},r),t)},vs=Object(d.createElement)(k.SVG,{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},Object(d.createElement)(k.Path,{d:"M5 4h2V2H5v2zm6-2v2h2V2h-2zm-6 8h2V8H5v2zm6 0h2V8h-2v2zm-6 6h2v-2H5v2zm6 0h2v-2h-2v2z"}));function Os(e){var t=e.clientIds,n=Object(O.useSelect)((function(e){var n;if(1===t.length){var r=(0,e("core/block-editor").getBlockName)(Object(oe.a)(t,1)[0]);return null===(n=Object(c.getBlockType)(r))||void 0===n?void 0:n.icon}}),[t]);return Object(d.createElement)("div",{className:"block-editor-block-draggable-chip-wrapper"},Object(d.createElement)("div",{className:"block-editor-block-draggable-chip"},Object(d.createElement)(j.Flex,{justify:"center",className:"block-editor-block-draggable-chip__content"},Object(d.createElement)(j.FlexItem,null,n?Object(d.createElement)($n,{icon:n}):Object(h.sprintf)(Object(h._n)("%d block","%d blocks",t.length),t.length)),Object(d.createElement)(j.FlexItem,null,Object(d.createElement)($n,{icon:vs})))))}var gs=function(e){var t,n,r,o,c=e.children,i=e.clientIds,a=e.cloneClassname,l=e.onDragStart,s=e.onDragEnd,u=e.elementId,b=Object(O.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockRootClientId,r=t.getTemplateLock,o=n(i[0]);return{srcRootClientId:o,isDraggable:"all"!==(o?r(o):null)}}),[i]),f=b.srcRootClientId,p=b.isDraggable,m=Object(d.useRef)(!1),v=(t=Object(d.useRef)(null),n=Object(d.useRef)(null),r=Object(d.useRef)(null),o=Object(d.useRef)(null),Object(d.useEffect)((function(){return function(){o.current&&(clearInterval(o.current),o.current=null)}}),[]),[Object(d.useCallback)((function(e){t.current=e.clientY,r.current=Object(_r.getScrollContainer)(e.target),o.current=setInterval((function(){if(r.current&&n.current){var e=r.current.scrollTop+n.current;r.current.scroll({top:e})}}),25)}),[]),Object(d.useCallback)((function(e){if(r.current){var o=r.current.offsetHeight,c=t.current-r.current.offsetTop,i=e.clientY-r.current.offsetTop;if(e.clientY>c){var a=Math.max(o-c-50,0),l=Math.max(i-c-50,0)/a;n.current=25*l}else if(e.clientY=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}function _s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0}})),Object(O.withDispatch)((function(e,t){return{onTransform:function(n,r){e("core/block-editor").replaceBlocks(t.clientIds,Object(c.switchToBlockType)(n,r))}}})))(Ns),Rs=n(43);function As(){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(d.useCallback)((function(r,o){var c="";if(1===o.length){var i=o[0],a=t(e(i)).title;c="copy"===r?Object(h.sprintf)(Object(h.__)('Copied "%s" to clipboard.'),a):Object(h.sprintf)(Object(h.__)('Moved "%s" to clipboard.'),a)}else c="copy"===r?Object(h.sprintf)(Object(h._n)("Copied %d block to clipboard.","Copied %d blocks to clipboard.",o.length),o.length):Object(h.sprintf)(Object(h._n)("Moved %d block to clipboard.","Moved %d blocks to clipboard.",o.length),o.length);n(c,{type:"snackbar"})}),[])}var Ms=function(e){var t=e.children,n=Object(d.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,b=s.removeBlocks,f=s.replaceBlocks,m=As(),v=l().__experimentalCanUserUseUnfilteredHTML,g=function(e){var t=i();if(0!==t.length){if(!a()){var r=e.target.ownerDocument;if("copy"===e.type||"cut"===e.type?Object(_r.documentHasUncollapsedSelection)(r):Object(_r.documentHasSelection)(r))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 l=o(t),s=Object(c.serialize)(l);e.clipboardData.setData("text/plain",s),e.clipboardData.setData("text/html",s)}if("cut"===e.type)b(t);else if("paste"===e.type){var d=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),O=d.plainText,g=d.html,h=Object(c.pasteHandler)({HTML:g,plainText:O,mode:"BLOCKS",canUserUseUnfilteredHTML:v});f(t,h,h.length-1,-1)}}}};return Object(d.createElement)("div",{ref:n,onCopy:g,onCut:g,onPaste:g},t)};function Ls(e){var t=e.clientIds,n=e.children,r=e.__experimentalUpdateSelection,o=Object(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")}),[]),d=u.getDefaultBlockName,b=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(d(),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=h.selectBlock,B=As();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),I(t[0]),S(t[0])},onGroup:function(){if(f.length){var e=b(),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]),B("copy",e)}})}var Fs=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(h.__)("Edit as HTML"):Object(h.__)("Edit visually");return Object(d.createElement)(j.MenuItem,{onClick:r},!i&&s)}));var Vs=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)}))}}})))((function(e){var t=e.shouldRender,n=e.onClick,r=e.small;if(!t)return null;var o=Object(h.__)("Convert to Blocks");return Object(d.createElement)(j.MenuItem,{onClick:n},!r&&o)})),Hs=Object(j.createSlotFill)("__experimentalBlockSettingsMenuFirstItem"),zs=Hs.Fill,Us=Hs.Slot;zs.Slot=Us;var Gs=zs;function Ws(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ks(e){for(var t=1;t1,B=f()("block-editor-block-toolbar",S&&"is-showing-movers"),x=r?ou.a:"div";return Object(d.createElement)(x,{className:B},Object(d.createElement)("div",Object(s.a)({ref:k},E),!I&&Object(d.createElement)("div",{className:"block-editor-block-toolbar__block-parent-selector-wrapper"},Object(d.createElement)(js,{clientIds:i})),(w||I)&&Object(d.createElement)(j.ToolbarGroup,{className:"block-editor-block-toolbar__block-controls"},Object(d.createElement)(Ds,{clientIds:i}),Object(d.createElement)(hs,{clientIds:i,hideDragHandle:t}))),w&&Object(d.createElement)(d.Fragment,null,Object(d.createElement)(g.a.Slot,{bubblesVirtually:!0,className:"block-editor-block-toolbar__slot"}),Object(d.createElement)(Or.Slot,{bubblesVirtually:!0,className:"block-editor-block-toolbar__slot"})),Object(d.createElement)(Js,{clientIds:i}))}var iu=function(e){var t=e.focusOnMount,n=Object(je.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(d.createElement)("div",{className:"block-editor-block-contextual-toolbar-wrapper"},Object(d.createElement)(ms,Object(s.a)({focusOnMount:t,className:"block-editor-block-contextual-toolbar","aria-label":Object(h.__)("Block tools")},n),Object(d.createElement)(cu,null)))};function au(e){var t=e("core/block-editor"),n=t.isNavigationMode,r=t.isMultiSelecting,o=t.hasMultiSelection,c=t.isTyping,i=t.isCaretWithinFormattedText,a=t.getSettings,l=t.getLastMultiSelectedBlockClientId;return{isNavigationMode:n(),isMultiSelecting:r(),isTyping:c(),isCaretWithinFormattedText:i(),hasMultiSelection:o(),hasFixedToolbar:a().hasFixedToolbar,lastClientId:l()}}function lu(e){var t=e.clientId,n=e.rootClientId,r=e.isValid,o=e.isEmptyDefaultBlock,c=e.capturingClientId,i=Object(O.useSelect)(au,[]),a=i.isNavigationMode,s=i.isMultiSelecting,u=i.isTyping,b=i.isCaretWithinFormattedText,p=i.hasMultiSelection,v=i.hasFixedToolbar,g=i.lastClientId,h=Object(m.useViewportMatch)("medium"),k=Object(d.useState)(!1),y=Object(oe.a)(k,2),_=y[0],E=y[1],C=Object(d.useState)(!1),S=Object(oe.a)(C,2),w=S[0],I=S[1],B=Object(d.useContext)(bu),x=!a&&o&&r,P=a,T=!a&&!v&&h&&!x&&!s&&(!u||b),N=!(a||T||v||o);if(Object(l.useShortcut)("core/block-editor/focus-toolbar",Object(d.useCallback)((function(){return E(!0)}),[]),{bindGlobal:!0,eventName:"keydown",isDisabled:!N}),!(P||T||_||x))return null;var D=B[t];if(c&&(D=document.getElementById("block-"+c)),!D)return null;var R=D;if(p){var A=B[g];if(!A)return null;R={top:D,bottom:A}}var M=x?"top left right":"top right left";return Object(d.createElement)(j.Popover,{noArrow:!0,animate:!1,position:M,focusOnMount:!1,anchorRef:R,className:"block-editor-block-list__block-popover",__unstableSticky:!x,__unstableSlotName:"block-toolbar",__unstableBoundaryParent:!0,__unstableObserveElement:D,onBlur:function(){return E(!1)},shouldAnchorIncludePadding:!0},(T||_)&&Object(d.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(d.createElement)(os,{clientId:t,rootClientId:n,__experimentalIsQuick:!0})),(T||_)&&Object(d.createElement)(iu,{focusOnMount:_}),P&&Object(d.createElement)(fs,{clientId:t,rootClientId:n}),x&&Object(d.createElement)("div",{className:"block-editor-block-list__empty-block-inserter"},Object(d.createElement)(os,{position:"bottom right",rootClientId:n,clientId:t,__experimentalIsQuick:!0})))}function su(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getFirstMultiSelectedBlockClientId,o=t.getBlockRootClientId,i=t.__unstableGetBlockWithoutInnerBlocks,a=t.getBlockParents,l=t.__experimentalGetBlockListSettingsForBlocks,s=n()||r();if(s){var u,d=i(s)||{},b=d.name,f=d.attributes,m=void 0===f?{}:f,v=d.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:b,isValid:v,isEmptyDefaultBlock:b&&Object(c.isUnmodifiedDefaultBlock)({name:b,attributes:m}),capturingClientId:u}}}function uu(){var e=Object(O.useSelect)(su,[]);if(!e)return null;var t=e.clientId,n=e.rootClientId,r=e.name,o=e.isValid,c=e.isEmptyDefaultBlock,i=e.capturingClientId;return r?Object(d.createElement)(lu,{clientId:t,rootClientId:n,isValid:o,isEmptyDefaultBlock:c,capturingClientId:i}):null}var du=Object(d.createContext)(),bu=Object(d.createContext)(),fu=Object(d.createContext)();function pu(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.hasMultiSelection;return{selectedBlockClientId:n(),hasMultiSelection:r()}}function mu(e){Xe(e.target)&&e.preventDefault()}var vu=Object(d.forwardRef)((function(e,t){var n=e.children,r=e.className,o=Object(O.useSelect)(pu,[]),c=o.selectedBlockClientId,i=o.hasMultiSelection,a=Object(O.useDispatch)("core/block-editor").selectBlock,l=function(e){var t=Object(O.useSelect)(co,[]),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,b=l.multiSelect,f=l.selectBlock,p=Object(d.useRef)(),m=Object(d.useRef)(),v=Object(d.useRef)();Object(d.useEffect)((function(){var t=e.current.ownerDocument,n=t.defaultView;if(c&&!r){var i=o.length;if(!(i<2)){var l=o[0],s=o[i-1],u=$e(l),d=$e(s),b=n.getSelection(),f=t.createRange();u=oo(u,"start"),d=oo(d,"end"),f.setStartBefore(u),f.setEndAfter(d),b.removeAllRanges(),b.addRange(f)}}else{if(!a||r)return;var p=n.getSelection();if(p.rangeCount&&!p.isCollapsed){var m=$e(a),v=p.getRangeAt(0),O=v.startContainer,g=v.endContainer;!m||m.contains(O)&&m.contains(g)||p.removeAllRanges()}}}),[c,r,o,f,a]);var g=Object(d.useCallback)((function(t){var n=t.isSelectionEnd,r=e.current.ownerDocument.defaultView.getSelection();if(r.rangeCount&&!r.isCollapsed){var o=Xe(r.focusNode);if(m.current===o){if(f(o),n&&(io(e.current,!0),r.rangeCount)){var c=r.getRangeAt(0).commonAncestorContainer;v.current.contains(c)&&v.current.focus()}}else{var a=[].concat(Object(re.a)(i(m.current)),[m.current]),l=[].concat(Object(re.a)(i(o)),[o]),s=Math.min(a.length,l.length)-1;b(a[s],l[s])}}else io(e.current,!0)}),[f,i,b]),h=Object(d.useCallback)((function(){var t=e.current.ownerDocument,n=t.defaultView;t.removeEventListener("selectionchange",g),n.removeEventListener("mouseup",h),p.current=n.requestAnimationFrame((function(){g({isSelectionEnd:!0}),u()}))}),[g,u]);return Object(d.useEffect)((function(){var t=e.current.ownerDocument,n=t.defaultView;return function(){t.removeEventListener("selectionchange",g),n.removeEventListener("mouseup",h),n.cancelAnimationFrame(p.current)}}),[g,h]),Object(d.useCallback)((function(t){if(n){var r=e.current.ownerDocument,o=r.defaultView;m.current=t,v.current=r.activeElement,s(),r.addEventListener("selectionchange",g),o.addEventListener("mouseup",h),io(e.current,!1)}}),[n,s,h])}(t),s=Object(d.useState)({}),u=Object(oe.a)(s,2),b=u[0],p=u[1];return Object(d.createElement)(bs,{containerRef:t},Object(d.createElement)(bu.Provider,{value:b},Object(d.createElement)(uu,null),Object(d.createElement)("div",{ref:t,className:f()(r,"is-root-container"),onFocus:function(e){if(!i){var t=Xe(e.target);t&&t!==c&&a(t)}},onDragStart:mu},Object(d.createElement)(fu.Provider,{value:p},Object(d.createElement)(du.Provider,{value:l},n)))))})),Ou=["p","div","h1","h2","h3","h4","h5","h6","ol","ul","li","figure","nav","pre","header","section","aside","footer","main"];function gu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hu(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.__unstableIsHtml,r=Object(d.useRef)(),o=e.ref||r,c=Object(d.useContext)(du),i=Object(d.useContext)(fu),a=Object(d.useContext)(Cu),l=a.clientId,s=a.rootClientId,b=a.isSelected,m=a.isFirstMultiSelected,v=a.isLastMultiSelected,g=a.isPartOfMultiSelection,j=a.enableAnimation,k=a.index,y=a.className,_=a.name,E=a.mode,C=a.blockTitle,S=a.wrapperProps,w=void 0===S?{}:S,I=Object(O.useSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlocksInitialCaretPosition,r=t.isMultiSelecting,o=t.isNavigationMode;return{shouldFocusFirstElement:b&&!r()&&!o(),initialPosition:b?n():void 0,isNavigationMode:o}}),[b]),B=I.initialPosition,x=I.shouldFocusFirstElement,P=I.isNavigationMode,T=Object(O.useDispatch)("core/block-editor"),N=T.insertDefaultBlock,D=T.removeBlock,R=Object(d.useState)(!1),A=Object(oe.a)(R,2),M=A[0],L=A[1];Object(d.useEffect)((function(){if(b||m||v){var e=o.current;return i((function(t){return hu(hu({},t),{},Object(u.a)({},l,e))})),function(){i((function(e){return Object(p.omit)(e,l)}))}}}),[b,m,v]),Object(d.useEffect)((function(){var e=o.current;i((function(t){return t[l]&&t[l]!==e?hu(hu({},t),{},Object(u.a)({},l,e)):t}))}));var F=Object(h.sprintf)(Object(h.__)("Block: %s"),C),V=function(){var e=o.current.ownerDocument;if(!e.activeElement||!Ye(o.current,e.activeElement)){var t=_r.focus.tabbable.find(o.current).filter((function(e){return Object(_r.isTextField)(e)&&Ye(o.current,e)&&!e.closest(".block-list-appender")})),n=-1===B,r=(n?p.last:p.first)(t)||o.current;Object(_r.placeCaretAtHorizontalEdge)(r,n)}};Object(d.useEffect)((function(){x&&V()}),[x]),Sr(o,b||g,b||m,j,k),Object(d.useEffect)((function(){if(b)return o.current.addEventListener("keydown",e),o.current.addEventListener("mouseleave",t),function(){o.current.removeEventListener("mouseleave",t),o.current.removeEventListener("keydown",e)};function e(e){var t=e.keyCode,n=e.target;t!==ut.ENTER&&t!==ut.BACKSPACE&&t!==ut.DELETE||n!==o.current||Object(_r.isTextField)(n)||(e.preventDefault(),t===ut.ENTER?N({},s,k+1):D(l))}function t(e){1===e.buttons&&c(l)}}),[b,c,N,D]),Object(d.useEffect)((function(){if(P)return o.current.addEventListener("mouseover",e),o.current.addEventListener("mouseout",t),function(){o.current.removeEventListener("mouseover",e),o.current.removeEventListener("mouseout",t)};function e(e){e.defaultPrevented||(e.preventDefault(),M||L(!0))}function t(e){e.defaultPrevented||(e.preventDefault(),M&&L(!1))}}),[P,M,L]);var H="html"!==E||n?"":"-visual";return hu(hu(hu({},w),e),{},{ref:o,id:"block-".concat(l).concat(H),tabIndex:0,role:"group","aria-label":F,"data-block":l,"data-type":_,"data-title":C,className:f()(y,e.className,w.className,{"is-hovered":M}),style:hu(hu({},w.style),e.style)})}var ku=Object(d.forwardRef)((function(e,t){var n=e.children,r=e.tagName,o=void 0===r?"div":r,c=Object(je.a)(e,["children","tagName"]);ro()("wp.blockEditor.__experimentalBlock",{alternative:"wp.blockEditor.__experimentalUseBlockWrapperProps"});var i=ju(hu(hu({},c),{},{ref:t}));return Object(d.createElement)(o,i,n)})),yu=Ou.reduce((function(e,t){return e[t]=Object(d.forwardRef)((function(e,n){return Object(d.createElement)(ku,Object(s.a)({},e,{ref:n,tagName:t}))})),e}),ku);function _u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Eu(e){for(var t=1;t0,B=v||_,x=f()("block-editor-block-navigation-block__mover-cell",{"is-visible":B}),P=Hr().__experimentalFeatures,T=f()("block-editor-block-navigation-block__menu-cell",{"is-visible":B});return Object(d.useEffect)((function(){P&&n&&b.current.focus()}),[P,n]),Object(d.createElement)(Ir,{className:f()({"is-selected":n,"is-dragging":S}),onMouseEnter:function(){return g(!0)},onMouseLeave:function(){return g(!1)},onFocus:function(){return E(!0)},onBlur:function(){return E(!1)},level:c,position:o,rowCount:i,path:u,id:"block-navigation-block-".concat(C),"data-block":C},Object(d.createElement)(j.__experimentalTreeGridCell,{className:"block-editor-block-navigation-block__contents-cell",colSpan:I?void 0:2,ref:b},(function(e){var l=e.ref,u=e.tabIndex,b=e.onFocus;return Object(d.createElement)("div",{className:"block-editor-block-navigation-block__contents-container"},Object(d.createElement)(Fr,{level:c,isLastRow:o===i,terminatedLevels:s}),Object(d.createElement)(Mu,{block:t,onClick:function(){return r(t.clientId)},isSelected:n,position:o,siblingBlockCount:a,level:c,ref:l,tabIndex:u,onFocus:b}))})),I&&Object(d.createElement)(d.Fragment,null,Object(d.createElement)(j.__experimentalTreeGridCell,{className:x,withoutGridItem:!0},Object(d.createElement)(j.__experimentalTreeGridItem,null,(function(e){var t=e.ref,n=e.tabIndex,r=e.onFocus;return Object(d.createElement)(Mr,{orientation:"vertical",clientIds:[C],ref:t,tabIndex:n,onFocus:r})})),Object(d.createElement)(j.__experimentalTreeGridItem,null,(function(e){var t=e.ref,n=e.tabIndex,r=e.onFocus;return Object(d.createElement)(Lr,{orientation:"vertical",clientIds:[C],ref:t,tabIndex:n,onFocus:r})})))),P&&Object(d.createElement)(j.__experimentalTreeGridCell,{className:T},(function(e){var t=e.ref,n=e.tabIndex,o=e.onFocus;return Object(d.createElement)(Zs,{clientIds:[C],icon:kr.a,toggleProps:{ref:t,tabIndex:n,onFocus:o},disableOpenOnArrowDown:!0,__experimentalSelectBlock:r},(function(e){var t=e.onClose;return Object(d.createElement)(j.MenuGroup,null,Object(d.createElement)(j.MenuItem,{onClick:Object(jr.a)(hr.a.mark((function e(){return hr.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,w(null);case 2:return e.next=4,w(C);case 4:t();case 5:case"end":return e.stop()}}),e)})))},Object(h.__)("Go to block")))}))})))}function Fu(e){var t=e.parentBlockClientId,n=e.position,r=e.level,o=e.rowCount,c=e.terminatedLevels,i=e.path,a=Object(O.useSelect)((function(e){var n=e("core/block-editor"),r=n.isBlockBeingDragged,o=n.isAncestorBeingDragged;return r(t)||o(t)}),[t]),l=Object(m.useInstanceId)(Fu),s="block-navigation-appender-row__description_".concat(l),u=Object(h.sprintf)(Object(h.__)("Add block at position %1$d, Level %2$d"),n,r);return Object(d.createElement)(Ir,{className:f()({"is-dragging":a}),level:r,position:n,rowCount:o,path:i},Object(d.createElement)(j.__experimentalTreeGridCell,{className:"block-editor-block-navigation-appender__cell",colSpan:"3"},(function(e){var i=e.ref,a=e.tabIndex,l=e.onFocus;return Object(d.createElement)("div",{className:"block-editor-block-navigation-appender__container"},Object(d.createElement)(Fr,{level:r,isLastRow:n===o,terminatedLevels:c}),Object(d.createElement)(os,{rootClientId:t,__experimentalIsQuick:!0,__experimentalSelectBlockOnInsert:!1,"aria-describedby":s,toggleProps:{ref:i,tabIndex:a,onFocus:l}}),Object(d.createElement)("div",{className:"block-editor-block-navigation-appender__description",id:s},u))})))}function Vu(e){var t=e.blocks,n=e.selectBlock,r=e.selectedBlockClientId,o=e.showAppender,c=e.showBlockMovers,i=e.showNestedBlocks,a=e.parentBlockClientId,l=e.level,s=void 0===l?1:l,u=e.terminatedLevels,b=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=O.length,k=h?j+1:j,y=k;return Object(d.createElement)(d.Fragment,null,Object(p.map)(O,(function(e,t){var a=e.clientId,l=e.innerBlocks,u=t+1,f=k===u?[].concat(Object(re.a)(b),[s]):b,p=[].concat(Object(re.a)(m),[u]),v=i&&!!l&&!!l.length,O=g(a);return Object(d.createElement)(d.Fragment,{key:a},Object(d.createElement)(Lu,{block:e,onClick:n,isSelected:r===a,level:s,position:u,rowCount:k,siblingBlockCount:j,showBlockMovers:c,terminatedLevels:b,path:p}),(v||O)&&Object(d.createElement)(Vu,{blocks:l,selectedBlockClientId:r,selectBlock:n,showAppender:o,showBlockMovers:c,showNestedBlocks:i,parentBlockClientId:a,level:s+1,terminatedLevels:f,path:p}))})),h&&Object(d.createElement)(Fu,{parentBlockClientId:a,position:k,rowCount:y,level:s,terminatedLevels:b,path:[].concat(Object(re.a)(m),[y])}))}function Hu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zu(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Uu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Uu(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}function Uu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.x&&t.top<=e.y&&t.bottom>=e.y}Vu.defaultProps={selectBlock:function(){}};var Wu=["top","bottom"];function Ku(e){var t=Object(d.useState)(),n=Object(oe.a)(t,2),r=n[0],o=void 0===r?{}:r,c=n[1],i=ol(o.rootClientId,o.blockIndex),a=Object(j.__unstableUseDropZone)(function(e){for(var t=1;t0||function(e,t){var n=t.left+t.width/2;return e.x>n}(t,c)))return{rootClientId:r.clientId,blockIndex:0,dropPosition:"inside"};if(r.canInsertDraggedBlocksAsSibling){var g=O?1:0;return{rootClientId:r.rootClientId,clientId:r.clientId,blockIndex:r.blockIndex+g,dropPosition:n}}}}(b.current,l);e&&c(e)}}),[b,l]),l)return o}function qu(e){var t=e.__experimentalFeatures,n=Object(je.a)(e,["__experimentalFeatures"]),r=Object(d.useRef)(),o=Ku(r);t||(o=void 0);var c=Object(d.useMemo)((function(){return{__experimentalFeatures:t,blockDropTarget:o}}),[t,o]);return Object(d.createElement)(j.__experimentalTreeGrid,{className:"block-editor-block-navigation-tree","aria-label":Object(h.__)("Block navigation structure"),ref:r},Object(d.createElement)(Vr.Provider,{value:c},Object(d.createElement)(Vu,n)))}var $u=Object(m.compose)(Object(O.withSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getBlockHierarchyRootClientId,o=t.__unstableGetBlockWithBlockTree,c=t.__unstableGetBlockTree,i=n();return{rootBlocks:c(),rootBlock:i?o(r(i)):null,selectedBlockClientId:i}})),Object(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(d.createElement)("div",{className:"block-editor-block-navigation__container"},Object(d.createElement)("p",{className:"block-editor-block-navigation__label"},Object(h.__)("List view")),i&&Object(d.createElement)(qu,{blocks:[t],selectedBlockClientId:r,selectBlock:o,__experimentalFeatures:c,showNestedBlocks:!0}),!i&&Object(d.createElement)(qu,{blocks:n,selectedBlockClientId:r,selectBlock:o,__experimentalFeatures:c}))})),Yu=Object(d.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},Object(d.createElement)(j.Path,{d:"M13.8 5.2H3v1.5h10.8V5.2zm-3.6 12v1.5H21v-1.5H10.2zm7.2-6H6.6v1.5h10.8v-1.5z"}));function Xu(e){var t=e.isEnabled,n=e.onToggle,r=e.isOpen,o=e.innerRef,c=Object(je.a)(e,["isEnabled","onToggle","isOpen","innerRef"]);Object(l.useShortcut)("core/edit-post/toggle-block-navigation",Object(d.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(d.createElement)(j.Button,Object(s.a)({},c,{ref:o,icon:Yu,"aria-expanded":r,"aria-haspopup":"true",onClick:t?n:void 0,label:Object(h.__)("Outline"),className:"block-editor-block-navigation",shortcut:i,"aria-disabled":!t}))}var Qu=Object(d.forwardRef)((function(e,t){var n=e.isDisabled,r=e.__experimentalFeatures,o=Object(je.a)(e,["isDisabled","__experimentalFeatures"]),c=Object(O.useSelect)((function(e){return!!e("core/block-editor").getBlockCount()}),[])&&!n;return Object(d.createElement)(j.Dropdown,{contentClassName:"block-editor-block-navigation__popover",position:"bottom right",renderToggle:function(e){var n=e.isOpen,r=e.onToggle;return Object(d.createElement)(Xu,Object(s.a)({},o,{innerRef:t,isOpen:n,onToggle:r,isEnabled:c}))},renderContent:function(e){var t=e.onClose;return Object(d.createElement)($u,{onSelect:t,__experimentalFeatures:r})}})})),Zu=n(129),Ju=[ut.rawShortcut.primary("z"),ut.rawShortcut.primaryShift("z"),ut.rawShortcut.primary("y")],ed=Object(d.createElement)(j.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(p.fromPairs)(Ju.map((function(e){return[e,function(e){return e.preventDefault()}]})))}),td=function(){return ed};function nd(e){return e.filter((function(e){var t=e.type;return/^image\/(?:jpe?g|png|gif)$/.test(t)})).map((function(e){return'')})).join("")}var rd={position:"bottom right",isAlternate:!0},od=function(){return Object(d.createElement)("div",{className:"block-editor-format-toolbar"},Object(d.createElement)(j.ToolbarGroup,null,["bold","italic","link","text-color"].map((function(e){return Object(d.createElement)(j.Slot,{name:"RichText.ToolbarControls.".concat(e),key:e})})),Object(d.createElement)(j.Slot,{name:"RichText.ToolbarControls"},(function(e){return 0!==e.length&&Object(d.createElement)(j.ToolbarItem,null,(function(t){return Object(d.createElement)(j.DropdownMenu,{icon:Tr.a,label:Object(h.__)("More rich text controls"),toggleProps:t,controls:Object(p.orderBy)(e.map((function(e){return Object(oe.a)(e,1)[0].props})),"title"),popoverProps:rd})}))}))))},cd=function(e){var t=e.inline,n=e.anchorRef;return t?Object(d.createElement)(j.Popover,{noArrow:!0,position:"top center",focusOnMount:!1,anchorRef:n,className:"block-editor-rich-text__inline-format-toolbar"},Object(d.createElement)(od,null)):Object(d.createElement)(Or,null,Object(d.createElement)(od,null))};function id(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ad(e){if(!0===e||"p"===e||"li"===e)return!0===e?"p":e}function ld(e){var t=e.allowedFormats,n=e.formattingControls;return e.disableFormats?ld.EMPTY_ARRAY:t||n?t||(ro()("wp.blockEditor.RichText formattingControls prop",{alternative:"allowedFormats"}),n.map((function(e){return"core/".concat(e)}))):void 0}ld.EMPTY_ARRAY=[];var sd=Object(d.forwardRef)((function e(t,n){var r=t.children,o=t.tagName,a=t.value,l=t.onChange,b=t.isSelected,p=t.multiline,v=t.inlineToolbar,g=t.wrapperClassName,h=t.className,j=t.autocompleters,k=t.onReplace,y=t.placeholder,_=t.keepPlaceholderOnFocus,E=t.allowedFormats,C=t.formattingControls,S=t.withoutInteractiveFormatting,w=t.onRemove,I=t.onMerge,B=t.onSplit,x=t.__unstableOnSplitAtEnd,P=t.__unstableOnSplitMiddle,T=t.identifier,N=t.start,D=t.reversed,R=t.style,A=t.preserveWhiteSpace,M=t.__unstableEmbedURLOnPaste,L=t.__unstableDisableFormats,F=t.disableLineBreaks,V=t.unstableOnFocus,H=t.__unstableAllowPrefixTransformations,z=t.__unstableMultilineRootTag,G=t.__unstableMobileNoFocusOnMount,W=t.deleteEnter,K=t.placeholderTextColor,q=t.textAlign,$=t.selectionColor,Y=t.tagsToEliminate,X=t.rootTagsToEliminate,Q=t.disableEditingMenu,Z=t.fontSize,J=t.fontFamily,ee=t.fontWeight,te=t.fontStyle,ne=t.minWidth,ce=t.maxWidth,ie=t.onBlur,ae=t.setRef,le=Object(je.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","unstableOnFocus","__unstableAllowPrefixTransformations","__unstableMultilineRootTag","__unstableMobileNoFocusOnMount","deleteEnter","placeholderTextColor","textAlign","selectionColor","tagsToEliminate","rootTagsToEliminate","disableEditingMenu","fontSize","fontFamily","fontWeight","fontStyle","minWidth","maxWidth","onBlur","setRef"]),se=Object(m.useInstanceId)(e);T=T||se;var ue=Object(d.useRef)(),de=n||ue,be=Object(U.b)(),fe=be.clientId,pe=be.onCaretVerticalPositionChange,me=be.isSelected,ve=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===b?t=m.clientId===fe&&m.attributeKey===T:b&&(t=m.clientId===fe);var g={};if("native"===d.Platform.OS){var h=fe&&s(fe);g={shouldBlurOnUnmount:h&&t&&Object(c.isUnmodifiedDefaultBlock)(h)}}return function(e){for(var t=1;t0,Re=a,Ae=l;Array.isArray(a)&&(Re=c.children.toHTML(a),Ae=function(e){return l(c.children.fromDOM(Object(i.__unstableCreateElement)(document,e).childNodes))});var Me=Object(d.useCallback)((function(e,t){xe(fe,T,e,t)}),[fe,T]),Le=Object(d.useCallback)((function(e){var t=e.value,n=e.isReverse;I&&I(!n),w&&Object(i.isEmpty)(t)&&n&&w(!n)}),[I,w]),Fe=Object(d.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(k&&B){var n=[],r=Object(i.split)(e),o=Object(oe.a)(r,2),c=o[0],a=o[1],l=t.length>0,s=-1;l&&Object(i.isEmpty)(c)||(n.push(B(Object(i.toHTMLString)({value:c,multilineTag:Te}))),s+=1),l?(n.push.apply(n,Object(re.a)(t)),s+=t.length):P&&n.push(P()),(l||P)&&Object(i.isEmpty)(a)||n.push(B(Object(i.toHTMLString)({value:a,multilineTag:Te})));var u=l?s:1,d=l?-1:null;k(n,u,d)}}),[k,B,Te,P]),Ve=Object(d.useCallback)((function(e){var t=e.value,n=e.onChange,r=e.shiftKey,o=k&&B;if(k){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&&(k([l.transform({content:t.text})]),Pe())}if(p)r?F||n(Object(i.insert)(t,"\n")):o&&Object(i.__unstableIsEmptyLine)(t)?Fe(t):n(Object(i.__unstableInsertLineSeparator)(t));else{var s=t.text,u=t.start,d=t.end,b=x&&u===d&&d===s.length;r||!o&&!b?F||n(Object(i.insert)(t,"\n")):!o&&b?x():o&&Fe(t)}}),[k,B,Pe,p,Fe,x]),He=Object(d.useCallback)((function(e){var t=e.value,n=e.onChange,r=e.html,a=e.plainText,l=e.files,s=e.activeFormats;if(l&&l.length&&!r){var u=Object(c.pasteHandler)({HTML:nd(l),mode:"BLOCKS",tagName:o});return window.console.log("Received items:\n\n",l),void(k&&Object(i.isEmpty)(t)?k(u):Fe(t,u))}var d,b=k&&B?"AUTO":"INLINE";"AUTO"===b&&Object(i.isEmpty)(t)&&(d=a,Object(Zu.regexp)(".*").test(d))&&(b="BLOCKS"),M&&Object(i.isEmpty)(t)&&Object(Vl.isURL)(a.trim())&&(b="BLOCKS");var f=Object(c.pasteHandler)({HTML:r,plainText:a,mode:b,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(re.a)(s),Object(re.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&&(k&&Object(i.isEmpty)(t)?k(f,f.length-1,-1):Fe(t,f))}),[o,k,B,Fe,M,p]),ze=Object(d.useCallback)((function(e,t){if(k){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);k([u]),Pe()}}}}),[k,Pe]),Ue=Object(d.createElement)(i.__experimentalRichText,{clientId:fe,identifier:T,ref:de,value:Re,onChange:Ae,selectionStart:ge,selectionEnd:he,onSelectionChange:Me,tagName:o,className:f()("block-editor-rich-text__editable",h,{"keep-placeholder-on-focus":_}),placeholder:y,allowedFormats:Ne,withoutInteractiveFormatting:S,onEnter:Ve,onDelete:Le,onPaste:He,__unstableIsSelected:ke,__unstableInputRule:ze,__unstableMultilineTag:Te,__unstableIsCaretWithinFormattedText:Oe,__unstableOnEnterFormattedText:Ie,__unstableOnExitFormattedText:Be,__unstableOnCreateUndoLevel:we,__unstableMarkAutomaticChange:Pe,__unstableDidAutomaticChange:ye,__unstableUndo:Ee,__unstableDisableFormats:L,style:R,preserveWhiteSpace:A,disabled:_e,start:N,reversed:D,unstableOnFocus:V,__unstableAllowPrefixTransformations:H,__unstableMultilineRootTag:z,onCaretVerticalPositionChange:pe,blockIsSelected:void 0!==b?b:me,shouldBlurOnUnmount:Ce,__unstableMobileNoFocusOnMount:G,deleteEnter:W,placeholderTextColor:K,textAlign:q,selectionColor:$,tagsToEliminate:Y,rootTagsToEliminate:X,disableEditingMenu:Q,fontSize:Z,fontFamily:J,fontWeight:ee,fontStyle:te,minWidth:ne,maxWidth:ce,onBlur:ie,setRef:ae,id:le.id},(function(e){var t=e.isSelected,n=e.value,o=e.onChange,c=e.onFocus,i=e.editableProps,a=e.editableTagName;return Object(d.createElement)(d.Fragment,null,r&&r({value:n,onChange:o,onFocus:c}),t&&De&&Object(d.createElement)(cd,{inline:v,anchorRef:de.current}),t&&Object(d.createElement)(td,null),Object(d.createElement)(Zn,{onReplace:k,completers:j,record:n,onChange:o,isSelected:t},(function(e){var t=e.listBoxId,n=e.activeId,r=e.onKeyDown;return Object(d.createElement)(a,Object(s.a)({},i,le,{"aria-autocomplete":t?"list":void 0,"aria-owns":t,"aria-activedescendant":n,start:N,reversed:D,onKeyDown:function(e){r(e),i.onKeyDown(e)}}))})))}));return g?(ro()("wp.blockEditor.RichText wrapperClassName prop",{alternative:"className prop or create your own wrapper div"}),Object(d.createElement)("div",{className:f()("block-editor-rich-text",g)},Ue)):Ue}));sd.Content=function(e){var t=e.value,n=e.tagName,r=e.multiline,o=Object(je.a)(e,["value","tagName","multiline"]);Array.isArray(t)&&(t=c.children.toHTML(t));var i=ad(r);!t&&i&&(t="<".concat(i,">"));var a=Object(d.createElement)(d.RawHTML,null,t);return n?Object(d.createElement)(n,Object(p.omit)(o,["format"]),a):a},sd.isEmpty=function(e){return!e||0===e.length},sd.Content.defaultProps={format:"string",value:""};var ud=sd;function dd(e){var t=e.value,n=e.onChange;return Object(d.createElement)(Au,null,Object(d.createElement)(ud,{value:t,onChange:n,placeholder:Object(h.__)("Navigation item"),keepPlaceholderOnFocus:!0,withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic","core/image","core/strikethrough"]}))}var bd=n(315);var fd=function(e){var t=e.icon,n=void 0===t?bd.a:t,r=e.label,o=void 0===r?Object(h.__)("Choose variation"):r,c=e.instructions,i=void 0===c?Object(h.__)("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(d.createElement)(j.Placeholder,{icon:n,label:o,instructions:i,className:u},Object(d.createElement)("ul",{className:"block-editor-block-variation-picker__variations",role:"list","aria-label":Object(h.__)("Block variations")},a.map((function(e){return Object(d.createElement)("li",{key:e.name},Object(d.createElement)(j.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(d.createElement)("span",{className:"block-editor-block-variation-picker__variation-label",role:"presentation"},e.title))}))),s&&Object(d.createElement)("div",{className:"block-editor-block-variation-picker__skip"},Object(d.createElement)(j.Button,{isLink:!0,onClick:function(){return l()}},Object(h.__)("Skip"))))},pd=Object(d.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(j.Path,{d:"M15 4H9v11h6V4zM4 18.5V20h16v-1.5H4z"})),md=Object(d.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(j.Path,{d:"M20 11h-5V4H9v7H4v1.5h5V20h6v-7.5h5z"}));function vd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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 Od(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(Vl.isURL)(t))){this.isUpdatingSuggestions=!0,this.setState({selectedSuggestion:null,loading:!0});var i=r(t,{isInitialSuggestions:c});i.then((function(t){e.suggestionsRequest===i&&(e.setState({suggestions:t,loading:!1,showSuggestions:!!t.length}),t.length?e.props.debouncedSpeak(Object(h.sprintf)(Object(h._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",t.length),t.length),"assertive"):e.props.debouncedSpeak(Object(h.__)("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 ut.UP:e.stopPropagation(),e.preventDefault();var a=r?r-1:o.length-1;this.setState({selectedSuggestion:a});break;case ut.DOWN:e.stopPropagation(),e.preventDefault();var l=null===r||r===o.length-1?0:r+1;this.setState({selectedSuggestion:l});break;case ut.TAB:null!==this.state.selectedSuggestion&&(this.selectLink(i),this.props.speak(Object(h.__)("Link selected.")));break;case ut.ENTER:null!==this.state.selectedSuggestion&&(e.stopPropagation(),this.selectLink(i))}}else switch(e.keyCode){case ut.UP:0!==e.target.selectionStart&&(e.stopPropagation(),e.preventDefault(),e.target.setSelectionRange(0,0));break;case ut.DOWN:this.props.value.length!==e.target.selectionStart&&(e.stopPropagation(),e.preventDefault(),e.target.setSelectionRange(this.props.value.length,this.props.value.length))}}},{key:"selectLink",value:function(e){this.props.onChange(e.url,e),this.setState({selectedSuggestion:null,showSuggestions:!1})}},{key:"handleOnClick",value:function(e){this.selectLink(e),this.inputRef.current.focus()}},{key:"render",value:function(){return Object(d.createElement)(d.Fragment,null,this.renderControl(),this.renderSuggestions())}},{key:"renderControl",value:function(){var e=this.props,t=e.label,n=e.className,r=e.isFullWidth,o=e.instanceId,c=e.placeholder,i=void 0===c?Object(h.__)("Paste URL or type to search"):c,a=e.__experimentalRenderControl,l=e.value,s=void 0===l?"":l,u=e.autoFocus,b=void 0===u||u,p=this.state,m=p.loading,v=p.showSuggestions,O=p.selectedSuggestion,g=p.suggestionsListboxId,k=p.suggestionOptionIdPrefix,y={id:"url-input-control-".concat(o),label:t,className:f()("block-editor-url-input",n,{"is-full-width":r})},_={value:s,required:!0,autoFocus:b,className:"block-editor-url-input__input",type:"text",onChange:this.onChange,onFocus:this.onFocus,onInput:Jd,placeholder:i,onKeyDown:this.onKeyDown,role:"combobox","aria-label":Object(h.__)("URL"),"aria-expanded":v,"aria-autocomplete":"list","aria-owns":g,"aria-activedescendant":null!==O?"".concat(k,"-").concat(O):void 0,ref:this.inputRef};return a?a(y,_,m):Object(d.createElement)(j.BaseControl,y,Object(d.createElement)("input",_),m&&Object(d.createElement)(j.Spinner,null))}},{key:"renderSuggestions",value:function(){var e=this,t=this.props,n=t.className,r=t.__experimentalRenderSuggestions,o=t.value,c=void 0===o?"":o,i=t.__experimentalShowInitialSuggestions,a=void 0!==i&&i,l=this.state,u=l.showSuggestions,b=l.suggestions,m=l.selectedSuggestion,v=l.suggestionsListboxId,O=l.suggestionOptionIdPrefix,g=l.loading,h={id:v,ref:this.autocompleteRef,role:"listbox"},k=function(t,n){return{role:"option",tabIndex:"-1",id:"".concat(O,"-").concat(n),ref:e.bindSuggestionNode(n),"aria-selected":n===m}};return Object(p.isFunction)(r)&&u&&b.length?r({suggestions:b,selectedSuggestion:m,suggestionsListProps:h,buildSuggestionItemProps:k,isLoading:g,handleSuggestionClick:this.handleOnClick,isInitialSuggestions:a&&!(c&&c.length)}):!Object(p.isFunction)(r)&&u&&b.length?Object(d.createElement)(j.Popover,{position:"bottom",noArrow:!0,focusOnMount:!1},Object(d.createElement)("div",Object(s.a)({},h,{className:f()("block-editor-url-input__suggestions","".concat(n,"__suggestions"))}),b.map((function(t,n){return Object(d.createElement)(j.Button,Object(s.a)({},k(0,n),{key:t.id,className:f()("block-editor-url-input__suggestion",{"is-selected":n===m}),onClick:function(){return e.handleOnClick(t)}}),t.title)})))):null}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.value,r=e.instanceId,o=e.disableSuggestions,c=e.__experimentalShowInitialSuggestions,i=void 0!==c&&c,a=t.showSuggestions,l=n&&n.length;return i||l||(a=!1),!0===o&&(a=!1),{showSuggestions:a,suggestionsListboxId:"block-editor-url-input-suggestions-".concat(r),suggestionOptionIdPrefix:"block-editor-url-input-suggestion-".concat(r)}}}]),n}(d.Component),tb=Object(m.compose)(m.withSafeTimeout,j.withSpokenMessages,m.withInstanceId,Object(O.withSelect)((function(e,t){if(!Object(p.isFunction)(t.__experimentalFetchLinkSuggestions))return{__experimentalFetchLinkSuggestions:(0,e("core/block-editor").getSettings)().__experimentalFetchLinkSuggestions}})))(eb),nb=Object(d.createElement)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(d.createElement)(k.Path,{d:"M10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm1-11H9v3H6v2h3v3h2v-3h3V9h-3V6zM10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm1-11H9v3H6v2h3v3h2v-3h3V9h-3V6z"})),rb=function(e){var t,n=e.searchTerm,r=e.onClick,o=e.itemProps,c=e.isSelected,i=e.buttonText;return n?(t=i?Object(p.isFunction)(i)?i(n):i:Object(d.createInterpolateElement)(Object(h.sprintf)(Object(h.__)("Create: %s"),n),{mark:Object(d.createElement)("mark",null)}),Object(d.createElement)(j.Button,Object(s.a)({},o,{className:f()("block-editor-link-control__search-create block-editor-link-control__search-item",{"is-selected":c}),onClick:r}),Object(d.createElement)(bo.a,{className:"block-editor-link-control__search-item-icon",icon:nb}),Object(d.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(d.createElement)("span",{className:"block-editor-link-control__search-item-title"},t)))):null},ob=Object(d.createElement)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(d.createElement)(k.Path,{d:"M9 0C4.03 0 0 4.03 0 9s4.03 9 9 9 9-4.03 9-9-4.03-9-9-9zM1.11 9.68h2.51c.04.91.167 1.814.38 2.7H1.84c-.403-.85-.65-1.764-.73-2.7zm8.57-5.4V1.19c.964.366 1.756 1.08 2.22 2 .205.347.386.708.54 1.08l-2.76.01zm3.22 1.35c.232.883.37 1.788.41 2.7H9.68v-2.7h3.22zM8.32 1.19v3.09H5.56c.154-.372.335-.733.54-1.08.462-.924 1.255-1.64 2.22-2.01zm0 4.44v2.7H4.7c.04-.912.178-1.817.41-2.7h3.21zm-4.7 2.69H1.11c.08-.936.327-1.85.73-2.7H4c-.213.886-.34 1.79-.38 2.7zM4.7 9.68h3.62v2.7H5.11c-.232-.883-.37-1.788-.41-2.7zm3.63 4v3.09c-.964-.366-1.756-1.08-2.22-2-.205-.347-.386-.708-.54-1.08l2.76-.01zm1.35 3.09v-3.04h2.76c-.154.372-.335.733-.54 1.08-.464.92-1.256 1.634-2.22 2v-.04zm0-4.44v-2.7h3.62c-.04.912-.178 1.817-.41 2.7H9.68zm4.71-2.7h2.51c-.08.936-.327 1.85-.73 2.7H14c.21-.87.337-1.757.38-2.65l.01-.05zm0-1.35c-.046-.894-.176-1.78-.39-2.65h2.16c.403.85.65 1.764.73 2.7l-2.5-.05zm1-4H13.6c-.324-.91-.793-1.76-1.39-2.52 1.244.56 2.325 1.426 3.14 2.52h.04zm-9.6-2.52c-.597.76-1.066 1.61-1.39 2.52H2.65c.815-1.094 1.896-1.96 3.14-2.52zm-3.15 12H4.4c.324.91.793 1.76 1.39 2.52-1.248-.567-2.33-1.445-3.14-2.55l-.01.03zm9.56 2.52c.597-.76 1.066-1.61 1.39-2.52h1.76c-.82 1.08-1.9 1.933-3.14 2.48l-.01.04z"})),cb=function(e){var t=e.itemProps,n=e.suggestion,r=e.isSelected,o=void 0!==r&&r,c=e.onClick,i=e.isURL,a=void 0!==i&&i,l=e.searchTerm,u=void 0===l?"":l,b=e.shouldShowType,p=void 0!==b&&b;return Object(d.createElement)(j.Button,Object(s.a)({},t,{onClick:c,className:f()("block-editor-link-control__search-item",{"is-selected":o,"is-url":a,"is-entity":!a})}),a&&Object(d.createElement)(bo.a,{className:"block-editor-link-control__search-item-icon",icon:ob}),Object(d.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(d.createElement)("span",{className:"block-editor-link-control__search-item-title"},Object(d.createElement)(j.TextHighlight,{text:n.title,highlight:u})),Object(d.createElement)("span",{"aria-hidden":!a,className:"block-editor-link-control__search-item-info"},!a&&(Object(Vl.filterURLForDisplay)(Object(Vl.safeDecodeURI)(n.url))||""),a&&Object(h.__)("Press ENTER to add this link"))),p&&n.type&&Object(d.createElement)("span",{className:"block-editor-link-control__search-item-type"},"post_tag"===n.type?"tag":n.type))};function ib(e){var t=e.instanceId,n=e.withCreateSuggestion,r=e.currentInputValue,o=e.handleSuggestionClick,c=e.suggestionsListProps,i=e.buildSuggestionItemProps,a=e.suggestions,l=e.selectedSuggestion,u=e.isLoading,b=e.isInitialSuggestions,p=e.createSuggestionButtonText,m=e.suggestionsQuery,v=f()("block-editor-link-control__search-results",{"is-loading":u}),O=["url","mailto","tel","internal"],g=1===a.length&&O.includes(a[0].type.toLowerCase()),k=n&&!g&&!b,y=!(null==m?void 0:m.type),_="block-editor-link-control-search-results-label-".concat(t),E=b?Object(h.__)("Recently updated"):Object(h.sprintf)(Object(h.__)('Search results for "%s"'),r),C=Object(d.createElement)(b?d.Fragment:j.VisuallyHidden,{},Object(d.createElement)("span",{className:"block-editor-link-control__search-results-label",id:_},E));return Object(d.createElement)("div",{className:"block-editor-link-control__search-results-wrapper"},C,Object(d.createElement)("div",Object(s.a)({},c,{className:v,"aria-labelledby":_}),a.map((function(e,t){return k&&"__CREATE__"===e.type?Object(d.createElement)(rb,{searchTerm:r,buttonText:p,onClick:function(){return o(e)},key:e.type,itemProps:i(e,t),isSelected:t===l}):"__CREATE__"===e.type?null:Object(d.createElement)(cb,{key:"".concat(e.id,"-").concat(e.type),itemProps:i(e,t),suggestion:e,index:t,onClick:function(){o(e)},isSelected:t===l,isURL:O.includes(e.type.toLowerCase()),searchTerm:r,shouldShowType:y})}))))}function ab(e){var t=Object(p.startsWith)(e,"#");return Object(Vl.isURL)(e)||e&&e.includes("www.")||t}function lb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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 sb(e){for(var t=1;t=1)&&y(pb(pb({},Object(p.omit)(c,"id","url")),n),n);case 13:case"end":return e.stop()}}),e,null,[[2,9]])})));return function(t){return e.apply(this,arguments)}}();return Object(d.createElement)("form",{onSubmit:function(e){e.preventDefault(),W(U||{url:n})}},Object(d.createElement)(tb,{className:a,value:n,onChange:function(e,t){j(e),G(t)},placeholder:null!=s?s:Object(h.__)("Search or type url"),__experimentalRenderSuggestions:E?function(e){return S(pb(pb({},e),{},{instanceId:V,withCreateSuggestion:b,currentInputValue:n,createSuggestionButtonText:M,suggestionsQuery:D,handleSuggestionClick:function(t){e.handleSuggestionClick&&e.handleSuggestionClick(t),W(t)}}))}:null,__experimentalFetchLinkSuggestions:F,__experimentalHandleURLSuggestions:!0,__experimentalShowInitialSuggestions:T,ref:t}),r)})),Ob=vb,gb=Object(j.createSlotFill)("BlockEditorLinkControlViewer"),hb=gb.Slot,jb=gb.Fill;function kb(e){var t=e.value,n=e.onEditClick,r=t&&Object(Vl.filterURLForDisplay)(Object(Vl.safeDecodeURI)(t.url))||"";return Object(d.createElement)("div",{"aria-label":Object(h.__)("Currently selected"),"aria-selected":"true",className:f()("block-editor-link-control__search-item",{"is-current":!0})},Object(d.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(d.createElement)(j.ExternalLink,{className:"block-editor-link-control__search-item-title",href:t.url},t&&t.title||r),t&&t.title&&Object(d.createElement)("span",{className:"block-editor-link-control__search-item-info"},r)),Object(d.createElement)(j.Button,{isSecondary:!0,onClick:function(){return n()},className:"block-editor-link-control__search-item-action"},Object(h.__)("Edit")),Object(d.createElement)(hb,{fillProps:t}))}var yb=function(e){var t=!1;return{promise:new Promise((function(n,r){e.then((function(e){return t?r({isCanceled:!0}):n(e)}),(function(e){return r(t?{isCanceled:!0}:e)}))})),cancel:function(){t=!0}}};function _b(e){var t=e.searchInputPlaceholder,n=e.value,r=e.settings,o=e.onChange,c=void 0===o?p.noop:o,i=e.noDirectEntry,a=void 0!==i&&i,l=e.showSuggestions,s=void 0===l||l,u=e.showInitialSuggestions,b=e.forceIsEditingLink,f=e.createSuggestion,m=e.withCreateSuggestion,v=e.inputValue,O=void 0===v?"":v,g=e.suggestionsQuery,k=void 0===g?{}:g,y=e.noURLSuggestion,_=void 0!==y&&y,E=e.createSuggestionButtonText;void 0===m&&f&&(m=!0);var C=Object(d.useRef)(),S=Object(d.useState)(n&&n.url||""),w=Object(oe.a)(S,2),I=w[0],B=w[1],x=O||I,P=Object(d.useState)(void 0!==b?b:!n||!n.url),T=Object(oe.a)(P,2),N=T[0],D=T[1],R=Object(d.useRef)(!1);Object(d.useEffect)((function(){void 0!==b&&b!==N&&D(b)}),[b]),Object(d.useEffect)((function(){R.current&&C.current&&!C.current.contains(C.current.ownerDocument.activeElement)&&(_r.focus.focusable.find(C.current)[0]||C.current).focus();R.current=!1}),[N]);var A=function(e){var t=Object(d.useRef)(),n=Object(d.useState)(!1),r=Object(oe.a)(n,2),o=r[0],c=r[1],i=Object(d.useState)(null),a=Object(oe.a)(i,2),l=a[0],s=a[1],u=function(){var n=Object(jr.a)(hr.a.mark((function n(r){return hr.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return c(!0),s(null),n.prev=2,t.current=yb(Promise.resolve(e(r))),n.next=6,t.current.promise;case 6:return n.abrupt("return",n.sent);case 9:if(n.prev=9,n.t0=n.catch(2),!n.t0||!n.t0.isCanceled){n.next=13;break}return n.abrupt("return");case 13:throw s(n.t0.message||Object(h.__)("An unknown error occurred during creation. Please try again.")),n.t0;case 15:return n.prev=15,c(!1),n.finish(15);case 18:case"end":return n.stop()}}),n,null,[[2,9,15,18]])})));return function(e){return n.apply(this,arguments)}}();return Object(d.useEffect)((function(){return function(){t.current&&t.current.cancel()}}),[]),{createPage:u,isCreatingPage:o,errorMessage:l}}(f),M=A.createPage,L=A.isCreatingPage,F=A.errorMessage;return Object(d.createElement)("div",{tabIndex:-1,ref:C,className:"block-editor-link-control"},L&&Object(d.createElement)("div",{className:"block-editor-link-control__loading"},Object(d.createElement)(j.Spinner,null)," ",Object(h.__)("Creating"),"…"),(N||!n)&&!L&&Object(d.createElement)(d.Fragment,null,Object(d.createElement)("div",{className:"block-editor-link-control__search-input-wrapper"},Object(d.createElement)(Ob,{currentLink:n,className:"block-editor-link-control__search-input",placeholder:t,value:x,withCreateSuggestion:m,onCreateSuggestion:M,onChange:B,onSelect:function(e){var t;c(e),R.current=!!(null===(t=C.current)||void 0===t?void 0:t.contains(C.current.ownerDocument.activeElement)),D(!1)},showInitialSuggestions:u,allowDirectEntry:!a,showSuggestions:s,suggestionsQuery:k,withURLSuggestion:!_,createSuggestionButtonText:E},Object(d.createElement)("div",{className:"block-editor-link-control__search-actions"},Object(d.createElement)(j.Button,{type:"submit",label:Object(h.__)("Submit"),icon:Wd.a,className:"block-editor-link-control__search-submit"})))),F&&Object(d.createElement)(j.Notice,{className:"block-editor-link-control__search-error",status:"error",isDismissible:!1},F)),n&&!N&&!L&&Object(d.createElement)(kb,{value:n,onEditClick:function(){return D(!0)}}),Object(d.createElement)(Yd,{value:n,settings:r,onChange:c}))}_b.ViewerFill=jb;var Eb=_b,Cb=Object(d.createElement)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(k.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h13.4c.4 0 .8.4.8.8v13.4zM10 15l5-3-5-3v6z"})),Sb=n(216),wb=Object(j.withFilters)("editor.MediaUpload")((function(){return null}));var Ib=function(e){var t=e.fallback,n=void 0===t?null:t,r=e.children;return Object(O.useSelect)((function(e){return!!(0,e("core/block-editor").getSettings)().mediaUpload}),[])?r:n},Bb=Object(m.compose)([Object(O.withDispatch)((function(e){var t=e("core/notices");return{createNotice:t.createNotice,removeNotice:t.removeNotice}})),Object(j.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(h.__)("Replace"):s,b=e.createNotice,f=e.removeNotice,m=Object(d.useState)(t),v=Object(oe.a)(m,2),g=v[0],k=v[1],y=Object(O.useSelect)((function(e){return e("core/block-editor").getSettings().mediaUpload}),[]),_=Object(d.createRef)(),E=Object(p.uniqueId)("block-editor/media-replace-flow/error-notice/"),C=function(e){var t=document.createElement("div");t.innerHTML=Object(d.renderToString)(e);var n=t.textContent||t.innerText||"";setTimeout((function(){b("error",n,{speak:!0,id:E,isDismissible:!0})}),1e3)},S=function(e){c(e),k(e.url),Object(Fe.speak)(Object(h.__)("The media file has been replaced")),f(E)},w=function(e){e.keyCode===ut.DOWN&&(e.preventDefault(),e.stopPropagation(),e.target.click())};return Object(d.createElement)(j.Dropdown,{popoverProps:{isAlternate:!0},contentClassName:"block-editor-media-replace-flow__options",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(d.createElement)(j.ToolbarGroup,{className:"media-replace-flow"},Object(d.createElement)(j.ToolbarButton,{ref:_,"aria-expanded":t,"aria-haspopup":"true",onClick:n,onKeyDown:w},u))},renderContent:function(e){e.onClose;return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(j.NavigableMenu,{className:"block-editor-media-replace-flow__media-upload-menu"},Object(d.createElement)(wb,{value:n,onSelect:function(e){return S(e)},allowedTypes:r,render:function(e){var t=e.open;return Object(d.createElement)(j.MenuItem,{icon:Cb,onClick:t},Object(h.__)("Open Media Library"))}}),Object(d.createElement)(Ib,null,Object(d.createElement)(j.FormFileUpload,{onChange:function(e){!function(e){var t=e.target.files;l(t);y({allowedTypes:r,filesList:t,onFileChange:function(e){var t=Object(oe.a)(e,1)[0];S(t)},onError:C})}(e)},accept:o,render:function(e){var t=e.openFileDialog;return Object(d.createElement)(j.MenuItem,{icon:Sb.a,onClick:function(){t()}},Object(h.__)("Upload"))}}))),i&&Object(d.createElement)("form",{className:"block-editor-media-flow__url-input",onKeyDown:function(e){e.stopPropagation()},onKeyPress:function(e){e.stopPropagation()}},Object(d.createElement)("span",{className:"block-editor-media-replace-flow__image-url-label"},Object(h.__)("Current media URL:")),Object(d.createElement)(Eb,{value:{url:g},settings:[],showSuggestions:!1,onChange:function(e){var t=e.url;k(t),i(t),_.current.focus()}})))}})})),xb=n(483);function Pb(e){var t=e.url,n=e.urlLabel,r=e.className,o=f()(r,"block-editor-url-popover__link-viewer-url");return t?Object(d.createElement)(j.ExternalLink,{className:o,href:t},n||Object(Vl.filterURLForDisplay)(Object(Vl.safeDecodeURI)(t))):Object(d.createElement)("span",{className:o})}function Tb(e){var t=e.additionalControls,n=e.children,r=e.renderSettings,o=e.position,c=void 0===o?"bottom center":o,i=e.focusOnMount,a=void 0===i?"firstElement":i,l=Object(je.a)(e,["additionalControls","children","renderSettings","position","focusOnMount"]),u=Object(d.useState)(!1),b=Object(oe.a)(u,2),f=b[0],p=b[1],m=!!r&&f;return Object(d.createElement)(j.Popover,Object(s.a)({className:"block-editor-url-popover",focusOnMount:a,position:c},l),Object(d.createElement)("div",{className:"block-editor-url-popover__input-container"},Object(d.createElement)("div",{className:"block-editor-url-popover__row"},n,!!r&&Object(d.createElement)(j.Button,{className:"block-editor-url-popover__settings-toggle",icon:Tr.a,label:Object(h.__)("Link settings"),onClick:function(){p(!f)},"aria-expanded":f})),m&&Object(d.createElement)("div",{className:"block-editor-url-popover__row block-editor-url-popover__settings"},r())),t&&!m&&Object(d.createElement)("div",{className:"block-editor-url-popover__additional-controls"},t))}Tb.LinkEditor=function(e){var t=e.autocompleteRef,n=e.className,r=e.onChangeInputValue,o=e.value,c=Object(je.a)(e,["autocompleteRef","className","onChangeInputValue","value"]);return Object(d.createElement)("form",Object(s.a)({className:f()("block-editor-url-popover__link-editor",n)},c),Object(d.createElement)(tb,{value:o,onChange:r,autocompleteRef:t}),Object(d.createElement)(j.Button,{icon:Wd.a,label:Object(h.__)("Apply"),type:"submit"}))},Tb.LinkViewer=function(e){var t=e.className,n=e.linkClassName,r=e.onEditLinkClick,o=e.url,c=e.urlLabel,i=Object(je.a)(e,["className","linkClassName","onEditLinkClick","url","urlLabel"]);return Object(d.createElement)("div",Object(s.a)({className:f()("block-editor-url-popover__link-viewer",t)},i),Object(d.createElement)(Pb,{url:o,urlLabel:c,className:n}),r&&Object(d.createElement)(j.Button,{icon:xb.a,label:Object(h.__)("Edit"),onClick:r}))};var Nb=Tb,Db=function(e){var t=e.src,n=e.onChange,r=e.onSubmit,o=e.onClose;return Object(d.createElement)(Nb,{onClose:o},Object(d.createElement)("form",{className:"block-editor-media-placeholder__url-input-form",onSubmit:r},Object(d.createElement)("input",{className:"block-editor-media-placeholder__url-input-field",type:"url","aria-label":Object(h.__)("URL"),placeholder:Object(h.__)("Paste or type URL"),onChange:n,value:t}),Object(d.createElement)(j.Button,{className:"block-editor-media-placeholder__url-input-submit-button",icon:Wd.a,label:Object(h.__)("Apply"),type:"submit"})))};var Rb=Object(j.withFilters)("editor.MediaPlaceholder")((function(e){var t=e.value,n=void 0===t?{}:t,r=e.allowedTypes,o=e.className,c=e.icon,i=e.labels,a=void 0===i?{}:i,l=e.mediaPreview,s=e.notices,u=e.isAppender,b=e.accept,m=e.addToGallery,v=e.multiple,g=void 0!==v&&v,k=e.dropZoneUIOnly,y=e.disableDropZone,_=e.disableMediaButtons,E=e.onError,C=e.onSelect,S=e.onCancel,w=e.onSelectURL,I=e.onDoubleClick,B=e.onFilesPreUpload,x=void 0===B?p.noop:B,P=e.onHTMLDrop,T=void 0===P?p.noop:P,N=e.children,D=Object(O.useSelect)((function(e){return(0,e("core/block-editor").getSettings)().mediaUpload}),[]),R=Object(d.useState)(""),A=Object(oe.a)(R,2),M=A[0],L=A[1],F=Object(d.useState)(!1),V=Object(oe.a)(F,2),H=V[0],z=V[1];Object(d.useEffect)((function(){var e;L(null!==(e=null==n?void 0:n.src)&&void 0!==e?e:"")}),[n]);var U=function(e){L(e.target.value)},G=function(){z(!0)},W=function(){z(!1)},K=function(e){e.preventDefault(),M&&w&&(w(M),W())},q=function(e){var t;if(x(e),g)if(m){var o=[];t=function(e){var t=(null!=n?n:[]).filter((function(e){return e.id?!o.some((function(t){var n=t.id;return Number(n)===Number(e.id)})):!o.some((function(t){var n=t.urlSlug;return e.url.includes(n)}))}));C(t.concat(e)),o=e.map((function(e){var t=e.url.lastIndexOf("."),n=e.url.slice(0,t);return{id:e.id,urlSlug:n}}))}}else t=C;else t=function(e){var t=Object(oe.a)(e,1)[0];return C(t)};D({allowedTypes:r,filesList:e,onFileChange:t,onError:E})},$=function(e){q(e.target.files)},Y=function(e,t){var n=a.instructions,i=a.title;if(D||w||(n=Object(h.__)("To edit this block, you need permission to upload media.")),void 0===n||void 0===i){var b=null!=r?r:[],p=Object(oe.a)(b,1)[0],m=1===b.length,v=m&&"audio"===p,O=m&&"image"===p,g=m&&"video"===p;void 0===n&&D&&(n=Object(h.__)("Upload a media file or pick one from your media library."),v?n=Object(h.__)("Upload an audio file, pick one from your media library, or add one with a URL."):O?n=Object(h.__)("Upload an image file, pick one from your media library, or add one with a URL."):g&&(n=Object(h.__)("Upload a video file, pick one from your media library, or add one with a URL."))),void 0===i&&(i=Object(h.__)("Media"),v?i=Object(h.__)("Audio"):O?i=Object(h.__)("Image"):g&&(i=Object(h.__)("Video")))}var k=f()("block-editor-media-placeholder",o,{"is-appender":u});return Object(d.createElement)(j.Placeholder,{icon:c,label:i,instructions:n,className:k,notices:s,onClick:t,onDoubleClick:I,preview:l},e,N)},X=function(){return y?null:Object(d.createElement)(j.DropZone,{onFilesDrop:q,onHTMLDrop:T})},Q=function(){return S&&Object(d.createElement)(j.Button,{className:"block-editor-media-placeholder__cancel-button",title:Object(h.__)("Cancel"),isLink:!0,onClick:S},Object(h.__)("Cancel"))},Z=function(){return w&&Object(d.createElement)("div",{className:"block-editor-media-placeholder__url-input-container"},Object(d.createElement)(j.Button,{className:"block-editor-media-placeholder__button",onClick:G,isPressed:H,isTertiary:!0},Object(h.__)("Insert from URL")),H&&Object(d.createElement)(Db,{src:M,onChange:U,onSubmit:K,onClose:W}))};return k||_?(k&&ro()("wp.blockEditor.MediaPlaceholder dropZoneUIOnly prop",{alternative:"disableMediaButtons"}),Object(d.createElement)(Ib,null,X())):Object(d.createElement)(Ib,{fallback:Y(Z())},function(){var e=Object(d.createElement)(wb,{addToGallery:m,gallery:g&&!(!r||0===r.length)&&r.every((function(e){return"image"===e||e.startsWith("image/")})),multiple:g,onSelect:C,allowedTypes:r,value:Array.isArray(n)?n.map((function(e){return e.id})):n.id,render:function(e){var t=e.open;return Object(d.createElement)(j.Button,{isTertiary:!0,onClick:function(e){e.stopPropagation(),t()}},Object(h.__)("Media Library"))}});if(D&&u)return Object(d.createElement)(d.Fragment,null,X(),Object(d.createElement)(j.FormFileUpload,{onChange:$,accept:b,multiple:g,render:function(t){var n=t.openFileDialog,r=Object(d.createElement)(d.Fragment,null,Object(d.createElement)(j.Button,{isPrimary:!0,className:f()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button")},Object(h.__)("Upload")),e,Z(),Q());return Y(r,n)}}));if(D){var t=Object(d.createElement)(d.Fragment,null,X(),Object(d.createElement)(j.FormFileUpload,{isPrimary:!0,className:f()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),onChange:$,accept:b,multiple:g},Object(h.__)("Upload")),e,Z(),Q());return Y(t)}return Y(e)}())})),Ab=Object(d.forwardRef)((function(e,t){return Object(d.createElement)(ud,Object(s.a)({ref:t},e,{__unstableDisableFormats:!0,preserveWhiteSpace:!0}))}));Ab.Content=function(e){var t=e.value,n=void 0===t?"":t,r=e.tagName,o=void 0===r?"div":r,c=Object(je.a)(e,["value","tagName"]);return Object(d.createElement)(o,c,n)};var Mb=Ab,Lb=Object(d.forwardRef)((function(e,t){var n=e.__experimentalVersion,r=Object(je.a)(e,["__experimentalVersion"]);if(2===n)return Object(d.createElement)(Mb,Object(s.a)({ref:t},r));var o=r.className,c=r.onChange,i=Object(je.a)(r,["className","onChange"]);return Object(d.createElement)(eo.a,Object(s.a)({ref:t,className:f()("block-editor-plain-text",o),onChange:function(e){return c(e.target.value)}},i))}));function Fb(e){var t=e.property,n=e.viewport,r=e.desc,o=Object(m.useInstanceId)(Fb),c=r||Object(h.sprintf)(Object(h._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(d.createElement)(d.Fragment,null,Object(d.createElement)("span",{"aria-describedby":"rbc-desc-".concat(o)},n.label),Object(d.createElement)(j.VisuallyHidden,{as:"span",id:"rbc-desc-".concat(o)},c))}var Vb=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(h.__)("All")}:s,b=e.viewports,p=void 0===b?[{id:"small",label:Object(h.__)("Small screens")},{id:"medium",label:Object(h.__)("Medium screens")},{id:"large",label:Object(h.__)("Large screens")}]:b;if(!t||!n||!c)return null;var m=r||Object(h.sprintf)(Object(h.__)("Use the same %s on all screensizes."),n),v=Object(h.__)("Toggle between using the same value for all screen sizes or using a unique value per screen size."),O=c(Object(d.createElement)(Fb,{property:n,viewport:u}),u);return Object(d.createElement)("fieldset",{className:"block-editor-responsive-block-control"},Object(d.createElement)("legend",{className:"block-editor-responsive-block-control__title"},t),Object(d.createElement)("div",{className:"block-editor-responsive-block-control__inner"},Object(d.createElement)(j.ToggleControl,{className:"block-editor-responsive-block-control__toggle",label:m,checked:!l,onChange:o,help:v}),Object(d.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(d.createElement)(d.Fragment,{key:e.id},c(Object(d.createElement)(Fb,{property:n,viewport:e}),e))}))))))};function Hb(e){var t=e.character,n=e.type,r=e.onUse;return Object(m.useKeyboardShortcut)(ut.rawShortcut[n](t),(function(){return r(),!1}),{bindGlobal:!0}),null}function zb(e){var t,n=e.name,r=e.shortcutType,o=e.shortcutCharacter,c=Object(je.a)(e,["name","shortcutType","shortcutCharacter"]),i="RichText.ToolbarControls";return n&&(i+=".".concat(n)),r&&o&&(t=ut.displayShortcut[r](o)),Object(d.createElement)(j.Fill,{name:i},Object(d.createElement)(j.ToolbarButton,Object(s.a)({},c,{shortcut:t})))}function Ub(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Yt.a)(e);if(t){var o=Object(Yt.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object($t.a)(this,n)}}var Gb=function(e){Object(qt.a)(n,e);var t=Ub(n);function n(){var e;return Object(Gt.a)(this,n),(e=t.apply(this,arguments)).onInput=e.onInput.bind(Object(Kt.a)(e)),e}return Object(Wt.a)(n,[{key:"onInput",value:function(e){e.inputType===this.props.inputType&&this.props.onInput()}},{key:"componentDidMount",value:function(){document.addEventListener("input",this.onInput,!0)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("input",this.onInput,!0)}},{key:"render",value:function(){return null}}]),n}(d.Component),Wb=Object(d.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(d.createElement)(j.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 Kb=Object(d.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(d.createElement)(j.Dropdown,{renderToggle:function(r){var o=r.isOpen,c=r.onToggle;return Object(d.createElement)(j.Button,Object(s.a)({},e,{ref:t,icon:n?Wb:xb.a,"aria-expanded":o,"aria-haspopup":"true",onClick:c,label:Object(h.__)("Modes")}))},position:"bottom right",renderContent:function(){return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(j.NavigableMenu,{role:"menu","aria-label":Object(h.__)("Modes")},Object(d.createElement)(j.MenuItemsChoice,{value:n?"select":"edit",onSelect:o,choices:[{value:"edit",label:Object(d.createElement)(d.Fragment,null,Object(d.createElement)(bo.a,{icon:xb.a}),Object(h.__)("Edit"))},{value:"select",label:Object(d.createElement)(d.Fragment,null,Wb,Object(h.__)("Select"))}]})),Object(d.createElement)("div",{className:"block-editor-tool-selector__help"},Object(h.__)("Tools offer different interactions for block selection & editing. To select, press Escape, to go back to editing, press Enter.")))}})})),qb=n(184),$b=Object(d.createElement)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(k.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 Yb(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Yt.a)(e);if(t){var o=Object(Yt.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object($t.a)(this,n)}}var Xb=function(e){Object(qt.a)(n,e);var t=Yb(n);function n(){var e;return Object(Gt.a)(this,n),(e=t.apply(this,arguments)).toggle=e.toggle.bind(Object(Kt.a)(e)),e.submitLink=e.submitLink.bind(Object(Kt.a)(e)),e.state={expanded:!1},e}return Object(Wt.a)(n,[{key:"toggle",value:function(){this.setState({expanded:!this.state.expanded})}},{key:"submitLink",value:function(e){e.preventDefault(),this.toggle()}},{key:"render",value:function(){var e=this.props,t=e.url,n=e.onChange,r=this.state.expanded,o=t?Object(h.__)("Edit link"):Object(h.__)("Insert link");return Object(d.createElement)("div",{className:"block-editor-url-input__button"},Object(d.createElement)(j.Button,{icon:qb.a,label:o,onClick:this.toggle,className:"components-toolbar__control",isPressed:!!t}),r&&Object(d.createElement)("form",{className:"block-editor-url-input__button-modal",onSubmit:this.submitLink},Object(d.createElement)("div",{className:"block-editor-url-input__button-modal-line"},Object(d.createElement)(j.Button,{className:"block-editor-url-input__back",icon:$b,label:Object(h.__)("Close"),onClick:this.toggle}),Object(d.createElement)(tb,{value:t||"",onChange:n}),Object(d.createElement)(j.Button,{icon:Wd.a,label:Object(h.__)("Submit"),type:"submit"}))))}}]),n}(d.Component),Qb=n(157),Zb=["noreferrer","noopener"],Jb=Object(d.createElement)(j.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(d.createElement)(j.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(d.createElement)(j.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(d.createElement)(j.Path,{d:"m14.14 11.86l-3 3.87-2.14-2.59-3 3.86h12l-3.86-5.14z"})),ef=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,b=Object(d.useState)(!1),f=Object(oe.a)(b,2),m=f[0],v=f[1],O=Object(d.useCallback)((function(){v(!0)})),g=Object(d.useState)(!1),k=Object(oe.a)(g,2),y=k[0],_=k[1],E=Object(d.useState)(null),C=Object(oe.a)(E,2),S=C[0],w=C[1],I=Object(d.useRef)(null),B=function(e){e.stopPropagation()},x=function(e){[ut.LEFT,ut.DOWN,ut.RIGHT,ut.UP,ut.BACKSPACE,ut.ENTER].indexOf(e.keyCode)>-1&&e.stopPropagation()},P=Object(d.useCallback)((function(){"media"!==t&&"attachment"!==t||w(""),_(!0)})),T=Object(d.useCallback)((function(){_(!1)})),N=Object(d.useCallback)((function(){w(null),T(),v(!1)})),D=function(e){var t=e;return void 0===e||Object(p.isEmpty)(t)||Object(p.isEmpty)(t)||(Object(p.each)(Zb,(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},R=Object(d.useCallback)((function(){return function(e){var t=I.current;t&&t.contains(e.target)||(v(!1),w(null),T())}})),A=Object(d.useCallback)((function(){return function(e){S&&n({href:S}),T(),w(null),e.preventDefault()}})),M=Object(d.useCallback)((function(){n({linkDestination:"none",href:""})})),L=function(){return[{linkDestination:"media",title:Object(h.__)("Media File"),url:"image"===c?i:void 0,icon:Jb},{linkDestination:"attachment",title:Object(h.__)("Attachment Page"),url:"image"===c?a:void 0,icon:Object(d.createElement)(j.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(d.createElement)(j.Path,{d:"M0 0h24v24H0V0z",fill:"none"}),Object(d.createElement)(j.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(d.createElement)(d.Fragment,null,Object(d.createElement)(j.ToggleControl,{label:Object(h.__)("Open in new tab"),onChange:function(e){var t=function(e){var t=e?"_blank":void 0;return{linkTarget:t,rel:t||u?D(u):void 0}}(e);n(t)},checked:"_blank"===l}),Object(d.createElement)(j.TextControl,{label:Object(h.__)("Link Rel"),value:D(u)||"",onChange:function(e){n({rel:e})},onKeyPress:B,onKeyDown:x}),Object(d.createElement)(j.TextControl,{label:Object(h.__)("Link CSS Class"),value:s||"",onKeyPress:B,onKeyDown:x,onChange:function(e){n({linkClass:e})}})),V=null!==S?S:r,H=(Object(p.find)(L(),["linkDestination",t])||{}).title;return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(j.ToolbarButton,{icon:qb.a,className:"components-toolbar__control",label:r?Object(h.__)("Edit link"):Object(h.__)("Insert link"),"aria-expanded":m,onClick:O}),m&&Object(d.createElement)(Nb,{onFocusOutside:R(),onClose:N,renderSettings:function(){return F},additionalControls:!V&&Object(d.createElement)(j.NavigableMenu,null,Object(p.map)(L(),(function(e){return Object(d.createElement)(j.MenuItem,{key:e.linkDestination,icon:e.icon,onClick:function(){var t,r,o;w(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||y)&&Object(d.createElement)(Nb.LinkEditor,{className:"block-editor-format-toolbar__link-container-content",value:V,onChangeInputValue:w,onKeyDown:x,onKeyPress:B,onSubmit:A(),autocompleteRef:I}),r&&!y&&Object(d.createElement)(d.Fragment,null,Object(d.createElement)(Nb.LinkViewer,{className:"block-editor-format-toolbar__link-container-content",onKeyPress:B,url:r,onEditLinkClick:P,urlLabel:H}),Object(d.createElement)(j.Button,{icon:Qb.a,label:Object(h.__)("Remove link"),onClick:M}))))},tf=n(158);function nf(e){var t=e.children,n=e.className,r=e.isEnabled,o=void 0===r||r,c=e.deviceType,i=e.setDeviceType;if(Object(m.useViewportMatch)("small","<"))return null;var a={className:f()(n,"block-editor-post-preview__dropdown-content"),position:"bottom left"},l={isTertiary:!0,className:"block-editor-post-preview__button-toggle",disabled:!o,children:Object(h.__)("Preview")};return Object(d.createElement)(j.DropdownMenu,{className:"block-editor-post-preview__dropdown",popoverProps:a,toggleProps:l,icon:null},(function(){return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(j.MenuGroup,null,Object(d.createElement)(j.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:function(){return i("Desktop")},icon:"Desktop"===c&&tf.a},Object(h.__)("Desktop")),Object(d.createElement)(j.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:function(){return i("Tablet")},icon:"Tablet"===c&&tf.a},Object(h.__)("Tablet")),Object(d.createElement)(j.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:function(){return i("Mobile")},icon:"Mobile"===c&&tf.a},Object(h.__)("Mobile"))),t)}))}var rf=n(278),of=/\((min|max)-width:[^\(]*?\)/g;function cf(e){return!!e.media&&!!e.media.mediaText.match(of)}function af(e,t,n){e.deleteRule(n),e.insertRule(t,n)}function lf(e,t){return e.replace(of,(function(e){return Object(rf.match)(e,{type:"screen",width:t})?"(min-width:0px)":"(min-width:999999px)"}))}function sf(e,t){Object(d.useEffect)((function(){if(t){var n="undefined"==typeof window?[]:Object(p.filter)(Object(p.get)(window,["document","styleSheets"],[]),(function(e){return!!e.href&&Object(Vl.getProtocol)(e.href)===window.location.protocol&&Object(Vl.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,s=e.bubblesVirtually,u=void 0===s||s;if(n>1)return Object(d.createElement)("div",{className:"block-editor-block-inspector"},Object(d.createElement)(ff,null),Object(d.createElement)(qe.Slot,{bubblesVirtually:u}));var b=i===Object(c.getUnregisteredTypeHandlerName)();return t&&o&&!b?Object(d.createElement)("div",{className:"block-editor-block-inspector"},Object(d.createElement)(mo,{blockType:t}),r&&Object(d.createElement)("div",null,Object(d.createElement)(j.PanelBody,{title:Object(h.__)("Styles")},Object(d.createElement)(ws,{clientId:o}),Object(c.hasBlockSupport)(t.name,"defaultStylePicker",!0)&&Object(d.createElement)(pf,{blockName:t.name}))),Object(d.createElement)(qe.Slot,{bubblesVirtually:u}),Object(d.createElement)("div",null,Object(d.createElement)(mf,{slotName:$.slotName,bubblesVirtually:u})),Object(d.createElement)(df,{key:"back"})):l?Object(d.createElement)("span",{className:"block-editor-block-inspector__no-blocks"},Object(h.__)("No block selected.")):null}));function Of(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Yt.a)(e);if(t){var o=Object(Yt.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object($t.a)(this,n)}}var gf=function(e){Object(qt.a)(n,e);var t=Of(n);function n(){var e;return Object(Gt.a)(this,n),(e=t.apply(this,arguments)).bindContainer=e.bindContainer.bind(Object(Kt.a)(e)),e.clearSelectionIfFocusTarget=e.clearSelectionIfFocusTarget.bind(Object(Kt.a)(e)),e}return Object(Wt.a)(n,[{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(d.createElement)("div",Object(s.a)({tabIndex:-1,onFocus:this.clearSelectionIfFocusTarget,ref:this.bindContainer},Object(p.omit)(this.props,["clearSelectedBlock","hasSelectedBlock","hasMultiSelection"])))}}]),n}(d.Component),hf=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}}))])(gf),jf=n(279),kf=n.n(jf),yf=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,_f=function(e,t){t=t||{};var n=1,r=1;function o(e){var t=e.match(/\n/g);t&&(n+=t.length);var o=e.lastIndexOf("\n");r=~o?e.length-o:r+e.length}function c(){var e={line:n,column:r};return function(t){return t.position=new i(e),f(),t}}function i(e){this.start=e,this.end={line:n,column:r},this.source=t.source}i.prototype.content=e;var a=[];function l(o){var c=new Error(t.source+":"+n+":"+r+": "+o);if(c.reason=o,c.filename=t.source,c.line=n,c.column=r,c.source=e,!t.silent)throw c;a.push(c)}function s(){return b(/^{\s*/)}function u(){return b(/^}/)}function d(){var t,n=[];for(f(),p(n);e.length&&"}"!==e.charAt(0)&&(t=C()||S());)!1!==t&&(n.push(t),p(n));return n}function b(t){var n=t.exec(e);if(n){var r=n[0];return o(r),e=e.slice(r.length),n}}function f(){b(/^\s*/)}function p(e){var t;for(e=e||[];t=m();)!1!==t&&e.push(t);return e}function m(){var t=c();if("/"===e.charAt(0)&&"*"===e.charAt(1)){for(var n=2;""!==e.charAt(n)&&("*"!==e.charAt(n)||"/"!==e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return l("End of comment missing");var i=e.slice(2,n-2);return r+=2,o(i),e=e.slice(n),r+=2,t({type:"comment",comment:i})}}function v(){var e=b(/^([^{]+)/);if(e)return Ef(e[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,(function(e){return e.replace(/,/g,"‌")})).split(/\s*(?![^(]*\)),\s*/).map((function(e){return e.replace(/\u200C/g,",")}))}function O(){var e=c(),t=b(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(t){if(t=Ef(t[0]),!b(/^:\s*/))return l("property missing ':'");var n=b(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),r=e({type:"declaration",property:t.replace(yf,""),value:n?Ef(n[0]).replace(yf,""):""});return b(/^[;\s]*/),r}}function g(){var e,t=[];if(!s())return l("missing '{'");for(p(t);e=O();)!1!==e&&(t.push(e),p(t));return u()?t:l("missing '}'")}function h(){for(var e,t=[],n=c();e=b(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),b(/^,\s*/);if(t.length)return n({type:"keyframe",values:t,declarations:g()})}var j,k=E("import"),y=E("charset"),_=E("namespace");function E(e){var t=new RegExp("^@"+e+"\\s*([^;]+);");return function(){var n=c(),r=b(t);if(r){var o={type:e};return o[e]=r[1].trim(),n(o)}}}function C(){if("@"===e[0])return function(){var e=c(),t=b(/^@([-\w]+)?keyframes\s*/);if(t){var n=t[1];if(!(t=b(/^([-\w]+)\s*/)))return l("@keyframes missing name");var r,o=t[1];if(!s())return l("@keyframes missing '{'");for(var i=p();r=h();)i.push(r),i=i.concat(p());return u()?e({type:"keyframes",name:o,vendor:n,keyframes:i}):l("@keyframes missing '}'")}}()||function(){var e=c(),t=b(/^@media *([^{]+)/);if(t){var n=Ef(t[1]);if(!s())return l("@media missing '{'");var r=p().concat(d());return u()?e({type:"media",media:n,rules:r}):l("@media missing '}'")}}()||function(){var e=c(),t=b(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(t)return e({type:"custom-media",name:Ef(t[1]),media:Ef(t[2])})}()||function(){var e=c(),t=b(/^@supports *([^{]+)/);if(t){var n=Ef(t[1]);if(!s())return l("@supports missing '{'");var r=p().concat(d());return u()?e({type:"supports",supports:n,rules:r}):l("@supports missing '}'")}}()||k()||y()||_()||function(){var e=c(),t=b(/^@([-\w]+)?document *([^{]+)/);if(t){var n=Ef(t[1]),r=Ef(t[2]);if(!s())return l("@document missing '{'");var o=p().concat(d());return u()?e({type:"document",document:r,vendor:n,rules:o}):l("@document missing '}'")}}()||function(){var e=c();if(b(/^@page */)){var t=v()||[];if(!s())return l("@page missing '{'");for(var n,r=p();n=O();)r.push(n),r=r.concat(p());return u()?e({type:"page",selectors:t,declarations:r}):l("@page missing '}'")}}()||function(){var e=c();if(b(/^@host\s*/)){if(!s())return l("@host missing '{'");var t=p().concat(d());return u()?e({type:"host",rules:t}):l("@host missing '}'")}}()||function(){var e=c();if(b(/^@font-face\s*/)){if(!s())return l("@font-face missing '{'");for(var t,n=p();t=O();)n.push(t),n=n.concat(p());return u()?e({type:"font-face",declarations:n}):l("@font-face missing '}'")}}()}function 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(Mo.a)(i)&&e(i,o)}r&&Object.defineProperty(t,"parent",{configurable:!0,writable:!0,enumerable:!1,value:n||null});return t}((j=d(),{type:"stylesheet",stylesheet:{source:t.source,rules:j,parsingErrors:a}}))};function Ef(e){return e?e.replace(/^\s+|\s+$/g,""):""}var Cf=n(168),Sf=n.n(Cf),wf=If;function If(e){this.options=e||{}}If.prototype.emit=function(e){return e},If.prototype.visit=function(e){return this[e.type](e)},If.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?Vf(Vf({},n),{},{selectors:n.selectors.map((function(n){return t.includes(n.trim())?n:n.match(Hf)?n.replace(/^(body|html|:root)/,e):e+" "+n}))}):n}},Uf=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(zf(t)),r&&o.push(Lf(r)),o.length?Nf(n,Object(m.compose)(o)):n}))};var Gf=function(e){var t=e.styles;return Object(d.useEffect)((function(){var e=Uf(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 Wf=function(e){var t=e.rootClientId,n=e.clientId,r=e.isAppender,o=e.showInserterHelpPanel,c=e.showMostUsedBlocks,i=void 0!==c&&c,a=e.__experimentalSelectBlockOnInsert,l=e.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(d.createElement)(Xl,{onSelect:s,rootClientId:u,clientId:n,isAppender:r,showInserterHelpPanel:o,showMostUsedBlocks:i,__experimentalSelectBlockOnInsert:a})};function Kf(){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(oe.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,b=o.clearSelectedBlock,f=o.moveBlocksUp,m=o.moveBlocksDown;return Object(l.useShortcut)("core/block-editor/move-up",Object(d.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(d.useCallback)((function(e){e.preventDefault(),m(t,r)}),[t,m]),{bindGlobal:!0,isDisabled:0===t.length}),Object(l.useShortcut)("core/block-editor/duplicate",Object(d.useCallback)((function(e){e.preventDefault(),c(t)}),[t,c]),{bindGlobal:!0,isDisabled:0===t.length}),Object(l.useShortcut)("core/block-editor/remove",Object(d.useCallback)((function(e){e.preventDefault(),i(t)}),[t,i]),{bindGlobal:!0,isDisabled:0===t.length}),Object(l.useShortcut)("core/block-editor/insert-after",Object(d.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(d.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(d.useCallback)((function(e){e.preventDefault(),i(t)}),[t,i]),{isDisabled:t.length<2}),Object(l.useShortcut)("core/block-editor/select-all",Object(d.useCallback)((function(e){e.preventDefault(),u(Object(p.first)(n),Object(p.last)(n))}),[n,u])),Object(l.useShortcut)("core/block-editor/unselect",Object(d.useCallback)((function(e){e.preventDefault(),b(),e.target.ownerDocument.defaultView.getSelection().removeAllRanges()}),[t,b]),{isDisabled:t.length<2}),null}Kf.Register=function(){var e=Object(O.useDispatch)("core/keyboard-shortcuts").registerShortcut;return Object(d.useEffect)((function(){e({name:"core/block-editor/duplicate",category:"block",description:Object(h.__)("Duplicate the selected block(s)."),keyCombination:{modifier:"primaryShift",character:"d"}}),e({name:"core/block-editor/remove",category:"block",description:Object(h.__)("Remove the selected block(s)."),keyCombination:{modifier:"access",character:"z"}}),e({name:"core/block-editor/insert-before",category:"block",description:Object(h.__)("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(h.__)("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(h.__)("Remove multiple selected blocks."),keyCombination:{character:"del"},aliases:[{character:"backspace"}]}),e({name:"core/block-editor/select-all",category:"selection",description:Object(h.__)("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(h.__)("Clear selection."),keyCombination:{character:"escape"}}),e({name:"core/block-editor/focus-toolbar",category:"global",description:Object(h.__)("Navigate to the nearest toolbar."),keyCombination:{modifier:"alt",character:"F10"}}),e({name:"core/block-editor/move-up",category:"block",description:Object(h.__)("Move the selected block(s) up."),keyCombination:{modifier:"secondary",character:"t"}}),e({name:"core/block-editor/move-down",category:"block",description:Object(h.__)("Move the selected block(s) down."),keyCombination:{modifier:"secondary",character:"y"}})}),[e]),null};var qf=Kf;function $f(){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(d.useEffect)((function(){if(n&&!r&&t){var e=$e(n);if(e){var o=Object(_r.getScrollContainer)(e);o&&Qd()(e,o,{onlyScrollIfNeeded:!0})}}}),[t,n,r]),null}var Yf=[ut.UP,ut.RIGHT,ut.DOWN,ut.LEFT,ut.ENTER,ut.BACKSPACE];var Xf=Object(m.withSafeTimeout)((function(e){var t=e.children,n=e.setTimeout,r=Object(d.useRef)(),o=Object(d.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";r.current.ownerDocument[t]("selectionchange",b),r.current.ownerDocument[t]("mousemove",u),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 b(e){var t=e.target.defaultView.getSelection();t.rangeCount>0&&t.getRangeAt(0).collapsed||l()}function f(e){var t=e.type,n=e.target;!c&&Object(_r.isTextField)(n)&&r.current.contains(n)&&("keydown"!==t||function(e){var t=e.keyCode;return!e.shiftKey&&Yf.includes(t)}(e))&&a()}return Object(d.useEffect)((function(){return s(c),function(){return s(!1)}}),[c]),Object(d.createElement)("div",{ref:r,onFocus:function(e){var t=e.target;n((function(){c&&!Object(_r.isTextField)(t)&&l()}))},onKeyPress:f,onKeyDown:Object(p.over)([f,function(e){!c||e.keyCode!==ut.ESCAPE&&e.keyCode!==ut.TAB||l()}])},t)}));function Qf(){return ro()("PreserveScrollInReorder component",{hint:"This behavior is now built-in the block list"}),null}function Zf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Yt.a)(e);if(t){var o=Object(Yt.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object($t.a)(this,n)}}var Jf=-1!==window.navigator.userAgent.indexOf("Trident"),ep=new Set([ut.UP,ut.DOWN,ut.LEFT,ut.RIGHT]),tp=function(e){Object(qt.a)(n,e);var t=Zf(n);function n(){var e;return Object(Gt.a)(this,n),(e=t.apply(this,arguments)).ref=Object(d.createRef)(),e.onKeyDown=e.onKeyDown.bind(Object(Kt.a)(e)),e.addSelectionChangeListener=e.addSelectionChangeListener.bind(Object(Kt.a)(e)),e.computeCaretRectOnSelectionChange=e.computeCaretRectOnSelectionChange.bind(Object(Kt.a)(e)),e.maintainCaretPosition=e.maintainCaretPosition.bind(Object(Kt.a)(e)),e.computeCaretRect=e.computeCaretRect.bind(Object(Kt.a)(e)),e.onScrollResize=e.onScrollResize.bind(Object(Kt.a)(e)),e.isSelectionEligibleForScroll=e.isSelectionEligibleForScroll.bind(Object(Kt.a)(e)),e.getDocument=e.getDocument.bind(Object(Kt.a)(e)),e.getWindow=e.getWindow.bind(Object(Kt.a)(e)),e}return Object(Wt.a)(n,[{key:"componentDidMount",value:function(){this.getWindow().addEventListener("scroll",this.onScrollResize,!0),this.getWindow().addEventListener("resize",this.onScrollResize,!0)}},{key:"componentWillUnmount",value:function(){this.getWindow().removeEventListener("scroll",this.onScrollResize,!0),this.getWindow().removeEventListener("resize",this.onScrollResize,!0),this.getDocument().removeEventListener("selectionchange",this.computeCaretRectOnSelectionChange),this.onScrollResize.rafId&&this.getWindow().cancelAnimationFrame(this.onScrollResize.rafId),this.onKeyDown.rafId&&this.getWindow().cancelAnimationFrame(this.onKeyDown.rafId)}},{key:"getDocument",value:function(){return this.ref.current.ownerDocument}},{key:"getWindow",value:function(){return this.getDocument().defaultView}},{key:"computeCaretRect",value:function(){this.isSelectionEligibleForScroll()&&(this.caretRect=Object(_r.computeCaretRect)(this.getWindow()))}},{key:"computeCaretRectOnSelectionChange",value:function(){this.getDocument().removeEventListener("selectionchange",this.computeCaretRectOnSelectionChange),this.computeCaretRect()}},{key:"onScrollResize",value:function(){var e=this;this.onScrollResize.rafId||(this.onScrollResize.rafId=this.getWindow().requestAnimationFrame((function(){e.computeCaretRect(),delete e.onScrollResize.rafId})))}},{key:"isSelectionEligibleForScroll",value:function(){return this.props.selectedBlockClientId&&this.ref.current.contains(this.getDocument().activeElement)&&this.getDocument().activeElement.isContentEditable}},{key:"isLastEditableNode",value:function(){var e=this.ref.current.querySelectorAll('[contenteditable="true"]');return e[e.length-1]===this.getDocument().activeElement}},{key:"maintainCaretPosition",value:function(e){var t=e.keyCode;if(this.isSelectionEligibleForScroll()){var n=Object(_r.computeCaretRect)(this.getWindow());if(n)if(this.caretRect)if(ep.has(t))this.caretRect=n;else{var r=n.top-this.caretRect.top;if(0!==r){var o=Object(_r.getScrollContainer)(this.ref.current);if(o){var c=o===this.getDocument().body,i=c?this.getWindow().scrollY:o.scrollTop,a=c?0:o.getBoundingClientRect().top,l=c?this.caretRect.top/this.getWindow().innerHeight:(this.caretRect.top-a)/(this.getWindow().innerHeight-a);if(0===i&&l<.75&&this.isLastEditableNode())this.caretRect=n;else{var s=c?this.getWindow().innerHeight:o.clientHeight;this.caretRect.top+this.caretRect.height>a+s||this.caretRect.top-1},get:function(e){return r[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),r.push(t))},delete:function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),r.splice(t,1))}}),c=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){c=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function i(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!o.has(e)){var t,n=null,r=null,i=null,a=function(){e.clientWidth!==r&&d()},l=function(t){window.removeEventListener("resize",a,!1),e.removeEventListener("input",d,!1),e.removeEventListener("keyup",d,!1),e.removeEventListener("autosize:destroy",l,!1),e.removeEventListener("autosize:update",d,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),o.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",l,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",d,!1),window.addEventListener("resize",a,!1),e.addEventListener("input",d,!1),e.addEventListener("autosize:update",d,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",o.set(e,{destroy:l,update:d}),"vertical"===(t=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),n="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(n)&&(n=0),d()}function s(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function u(){if(0!==e.scrollHeight){var t=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),o=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",r=e.clientWidth,t.forEach((function(e){e.node.scrollTop=e.scrollTop})),o&&(document.documentElement.scrollTop=o)}}function d(){u();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),r="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(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=0||(o[n]=e[n]);return o}(t,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"==typeof n)return n(e,r);var c=o.default.Children.only(n);return o.default.cloneElement(c,r)},r}(o.default.Component);function s(){}l.contextTypes={transitionGroup:r.object},l.childContextTypes={transitionGroup:function(){}},l.propTypes={},l.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:s,onEntering:s,onEntered:s,onExit:s,onExiting:s,onExited:s},l.UNMOUNTED=0,l.EXITED=1,l.ENTERING=2,l.ENTERED=3,l.EXITING=4;var u=(0,i.polyfill)(l);t.default=u},function(e,t,n){"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function o(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function c(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function i(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,i=null,a=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?i="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(i="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?a="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(a="UNSAFE_componentWillUpdate"),null!==n||null!==i||null!==a){var l=e.displayName||e.name,s="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+l+" uses "+s+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==i?"\n "+i:"")+(null!==a?"\n "+a:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=o),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=c;var u=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;u.call(this,e,t,r)}}return e}n.r(t),n.d(t,"polyfill",(function(){return i})),r.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,c.__suppressDeprecationWarning=!0},function(e,t,n){"use strict";t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0;var r;(r=n(28))&&r.__esModule;t.timeoutsShape=null;t.classNamesShape=null},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=a(n(28)),o=a(n(13)),c=n(211),i=n(313);function a(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,["component","childFactory"]),c=u(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?c:o.default.createElement(t,r,c)},r}(o.default.Component);d.childContextTypes={transitionGroup:r.default.object.isRequired},d.propTypes={},d.defaultProps={component:"div",childFactory:function(e){return e}};var b=(0,c.polyfill)(d);t.default=b,e.exports=t.default},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));t.a=c},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));t.a=c},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(o.Path,{d:"M16 4h2v9H7v3l-5-4 5-4v3h9V4z"}));t.a=c},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"}));t.a=c},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M20.1 5.1L16.9 2 6.2 12.7l-1.3 4.4 4.5-1.3L20.1 5.1zM4 20.8h8v-1.5H4v1.5z"}));t.a=c},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.dispatch;return function(e){return function(n){return Array.isArray(n)?n.filter(Boolean).map(t):e(n)}}}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l}));var r=n(12),o=n(0),c=n(174),i=n(2),a=(n(90),n(133));function l(e){var t=e.children,n=e.className;return Object(o.createElement)(a.a.Slot,{__experimentalIsExpanded:!0},(function(e){return Object(o.createElement)(s,{className:n,fills:e},t)}))}function s(t){var n=t.fills,a=t.className,l=void 0===a?"":a,s=t.children,u=Object(o.useRef)(),d=Object(o.useRef)(),b=Object(o.useRef)(),f=Object(o.useState)({}),p=Object(r.a)(f,2),m=p[0],v=p[1],O=Object(o.useRef)();O.current=n;var g=Object(o.useCallback)(Object(i.throttle)((function(){var e=O.current.length?d.current:b.current;if(e){e.style.position="absolute",e.style.width="auto";var t,n=(t=e).ownerDocument.defaultView.getComputedStyle(t);v({width:n.getPropertyValue("width"),height:n.getPropertyValue("height")}),e.style.position="",e.style.width=""}}),100),[]);Object(o.useEffect)((function(){var e=new window.MutationObserver((function(e){e.find((function(e){return"childList"===e.type}))&&g()}));return e.observe(u.current,{childList:!0,subtree:!0}),function(){return e.disconnect()}}),[]),Object(o.useEffect)((function(){n.length>1&&void 0!==e&&e.env}),[n.length]);var h=n[0];return Object(o.createElement)("div",{className:"block-editor-block-toolbar-animated-width-container",ref:u,style:m},Object(o.createElement)(c.TransitionGroup,null,h?Object(o.createElement)(c.CSSTransition,{key:"fills",timeout:300,classNames:"block-editor-block-toolbar-content"},Object(o.createElement)("div",{className:l,ref:d},h)):Object(o.createElement)(c.CSSTransition,{key:"default",timeout:300,classNames:"block-editor-block-toolbar-content"},Object(o.createElement)("div",{className:l,ref:b},s))))}}).call(this,n(102))},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.diffChars=function(e,t,n){return o.diff(e,t,n)},t.characterDiff=void 0;var o=new(((r=n(317))&&r.__esModule?r:{default:r}).default);t.characterDiff=o},function(e,t,n){"use strict";t.match=function(e,t){return l(e).some((function(e){var n=e.inverse,r="all"===e.type||t.type===e.type;if(r&&n||!r&&!n)return!1;var o=e.expressions.every((function(e){var n=e.feature,r=e.modifier,o=e.value,c=t[n];if(!c)return!1;switch(n){case"orientation":case"scan":return c.toLowerCase()===o.toLowerCase();case"width":case"height":case"device-width":case"device-height":o=d(o),c=d(c);break;case"resolution":o=u(o),c=u(c);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":o=s(o),c=s(c);break;case"grid":case"color":case"color-index":case"monochrome":o=parseInt(o,10)||1,c=parseInt(c,10)||0}switch(r){case"min":return c>=o;case"max":return c<=o;default:return c===o}}));return o&&!n||!o&&n}))},t.parse=l;var r=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,o=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,c=/^(?:(min|max)-)?(.+)/,i=/(em|rem|px|cm|mm|in|pt|pc)?$/,a=/(dpi|dpcm|dppx)?$/;function l(e){return e.split(",").map((function(e){var t=(e=e.trim()).match(r),n=t[1],i=t[2],a=t[3]||"",l={};return l.inverse=!!n&&"not"===n.toLowerCase(),l.type=i?i.toLowerCase():"all",a=a.match(/\([^\)]+\)/g)||[],l.expressions=a.map((function(e){var t=e.match(o),n=t[1].toLowerCase().match(c);return{modifier:n[1],feature:n[2],value:t[2]}})),l}))}function s(e){var t,n=Number(e);return n||(n=(t=e.match(/^(\d+)\s*\/\s*(\d+)$/))[1]/t[2]),n}function u(e){var t=parseFloat(e);switch(String(e).match(a)[1]){case"dpcm":return t/2.54;case"dppx":return 96*t;default:return t}}function d(e){var t=parseFloat(e);switch(String(e).match(i)[1]){case"em":case"rem":return 16*t;case"cm":return 96*t/2.54;case"mm":return 96*t/2.54/10;case"in":return 96*t;case"pt":return 72*t;case"pc":return 72*t/12;default:return t}}},function(e,t){var n=e.exports=function(e){return new r(e)};function r(e){this.value=e}function o(e,t,n){var r=[],o=[],a=!0;return function e(d){var b=n?c(d):d,f={},p=!0,m={node:b,node_:d,path:[].concat(r),parent:o[o.length-1],parents:o,key:r.slice(-1)[0],isRoot:0===r.length,level:r.length,circular:null,update:function(e,t){m.isRoot||(m.parent.node[m.key]=e),m.node=e,t&&(p=!1)},delete:function(e){delete m.parent.node[m.key],e&&(p=!1)},remove:function(e){l(m.parent.node)?m.parent.node.splice(m.key,1):delete m.parent.node[m.key],e&&(p=!1)},keys:null,before:function(e){f.before=e},after:function(e){f.after=e},pre:function(e){f.pre=e},post:function(e){f.post=e},stop:function(){a=!1},block:function(){p=!1}};if(!a)return m;function v(){if("object"==typeof m.node&&null!==m.node){m.keys&&m.node_===m.node||(m.keys=i(m.node)),m.isLeaf=0==m.keys.length;for(var e=0;e=0||(o[n]=e[n]);return o}(e,["children","in"]),i=r.default.Children.toArray(t),a=i[0],l=i[1];return delete o.onEnter,delete o.onEntering,delete o.onEntered,delete o.onExit,delete o.onExiting,delete o.onExited,r.default.createElement(c.default,o,n?r.default.cloneElement(a,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):r.default.cloneElement(l,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},i}(r.default.Component);a.propTypes={};var l=a;t.default=l,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.getChildMapping=o,t.mergeChildMappings=c,t.getInitialChildMapping=function(e,t){return o(e.children,(function(n){return(0,r.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:i(n,"appear",e),enter:i(n,"enter",e),exit:i(n,"exit",e)})}))},t.getNextChildMapping=function(e,t,n){var a=o(e.children),l=c(t,a);return Object.keys(l).forEach((function(o){var c=l[o];if((0,r.isValidElement)(c)){var s=o in t,u=o in a,d=t[o],b=(0,r.isValidElement)(d)&&!d.props.in;!u||s&&!b?u||!s||b?u&&s&&(0,r.isValidElement)(d)&&(l[o]=(0,r.cloneElement)(c,{onExited:n.bind(null,c),in:d.props.in,exit:i(c,"exit",e),enter:i(c,"enter",e)})):l[o]=(0,r.cloneElement)(c,{in:!1}):l[o]=(0,r.cloneElement)(c,{onExited:n.bind(null,c),in:!0,exit:i(c,"exit",e),enter:i(c,"enter",e)})}})),l};var r=n(13);function o(e,t){var n=Object.create(null);return e&&r.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,r.isValidElement)(e)?t(e):e}(e)})),n}function c(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),c=[];for(var i in e)i in t?c.length&&(o[i]=c,c=[]):c.push(i);var a={};for(var l in t){if(o[l])for(r=0;re.length?n:e})),s.value=e.join(d)}else s.value=e.join(n.slice(a,a+s.count));a+=s.count,s.added||(l+=s.count)}}var b=t[i-1];return i>1&&"string"==typeof b.value&&(b.added||b.removed)&&e.equals("",b.value)&&(t[i-2].value+=b.value,t.pop()),t}function c(e){return{newPos:e.newPos,components:e.components.slice(0)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,r.prototype={diff:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.callback;"function"==typeof n&&(r=n,n={}),this.options=n;var i=this;function a(e){return r?(setTimeout((function(){r(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var l=(t=this.removeEmpty(this.tokenize(t))).length,s=e.length,u=1,d=l+s,b=[{newPos:-1,components:[]}],f=this.extractCommon(b[0],t,e,0);if(b[0].newPos+1>=l&&f+1>=s)return a([{value:this.join(t),count:t.length}]);function p(){for(var n=-1*u;n<=u;n+=2){var r=void 0,d=b[n-1],f=b[n+1],p=(f?f.newPos:0)-n;d&&(b[n-1]=void 0);var m=d&&d.newPos+1=l&&p+1>=s)return a(o(i,r.components,t,e,i.useLongestToken));b[n]=r}else b[n]=void 0}u++}if(r)!function e(){setTimeout((function(){if(u>d)return r();p()||e()}),0)}();else for(;u<=d;){var m=p();if(m)return m}},pushComponent:function(e,t,n){var r=e[e.length-1];r&&r.added===t&&r.removed===n?e[e.length-1]={count:r.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,r){for(var o=t.length,c=n.length,i=e.newPos,a=i-r,l=0;i+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?R:[],!r||!0===e&&!n?f.without.apply(void 0,[t].concat(A)):t}var L=Object(u.createContext)({}),F=L.Provider,V=Object(p.createHigherOrderComponent)((function(e){return function(t){var n=Object(u.useContext)(L).isEmbedButton,r=t.name,o=n?[]:M(Object(c.getBlockSupport)(r,"align"),Object(c.hasBlockSupport)(r,"alignWide",!0));return[o.length>0&&t.isSelected&&Object(u.createElement)(O.a,{key:"align-controls"},Object(u.createElement)(T,{value:t.attributes.align,onChange:function(e){var n,r;e||(null===(n=Object(c.getBlockType)(t.name).attributes)||void 0===n||null===(r=n.align)||void 0===r?void 0:r.default)&&(e="");t.setAttributes({align:e})},controls:o})),Object(u.createElement)(e,Object(l.a)({key:"edit"},t))]}}),"withToolbarControls"),H=Object(p.createHigherOrderComponent)((function(e){return function(t){var n=t.name,r=t.attributes.align,o=Object(v.useSelect)((function(e){return!!e("core/block-editor").getSettings().alignWide}),[]);if(void 0===r)return Object(u.createElement)(e,t);var i=M(Object(c.getBlockSupport)(n,"align"),Object(c.hasBlockSupport)(n,"alignWide",!0),o),a=t.wrapperProps;return i.includes(r)&&(a=D(D({},a),{},{"data-align":r})),Object(u.createElement)(e,Object(l.a)({},t,{wrapperProps:a}))}}));Object(m.addFilter)("blocks.registerBlockType","core/align/addAttribute",(function(e){return Object(f.has)(e.attributes,["align","type"])||Object(c.hasBlockSupport)(e,"align")&&(e.attributes=D(D({},e.attributes),{},{align:{type:"string",enum:[].concat(R,[""])}})),e})),Object(m.addFilter)("editor.BlockListBlock","core/editor/align/with-data-align",H),Object(m.addFilter)("editor.BlockEdit","core/editor/align/with-toolbar-controls",V),Object(m.addFilter)("blocks.getSaveContent.extraProps","core/align/addAssignedAlign",(function(e,t,n){var r=n.align;return M(Object(c.getBlockSupport)(t,"align"),Object(c.hasBlockSupport)(t,"alignWide",!0)).includes(r)&&(e.className=b()("align".concat(r),e.className)),e}));var z=n(80),U=Object(h.createSlotFill)("InspectorAdvancedControls"),G=U.Fill,K=U.Slot;function W(e){var t=e.children;return Object(z.b)().isSelected?Object(u.createElement)(G,null,t):null}W.slotName="InspectorAdvancedControls",W.Slot=K;var q=W;function $(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Y(e){for(var t=1;t");var t=Object(c.parseWithAttributeSchema)(e,{type:"string",source:"attribute",selector:"[data-custom-class-name] > *",attribute:"class"});return t?t.trim().split(/\s+/):[]}Object(m.addFilter)("blocks.registerBlockType","core/custom-class-name/attribute",(function(e){return Object(c.hasBlockSupport)(e,"customClassName",!0)&&(e.attributes=J(J({},e.attributes),{},{className:{type:"string"}})),e})),Object(m.addFilter)("editor.BlockEdit","core/editor/custom-class-name/with-inspector-control",ee),Object(m.addFilter)("blocks.getSaveContent.extraProps","core/custom-class-name/save-props",(function(e,t,n){return Object(c.hasBlockSupport)(t,"customClassName",!0)&&n.className&&(e.className=b()(e.className,n.className)),e})),Object(m.addFilter)("blocks.getBlockAttributes","core/custom-class-name/addParsedDifference",(function(e,t,n){if(Object(c.hasBlockSupport)(t,"customClassName",!0)){var r=Object(f.omit)(e,["className"]),o=Object(c.getSaveContent)(t,r),i=te(o),a=te(n),l=Object(f.difference)(a,i);l.length?e.className=l.join(" "):o&&delete e.className}return e}));var ne=n(17);Object(m.addFilter)("blocks.getSaveContent.extraProps","core/generated-class-name/save-props",(function(e,t){return Object(c.hasBlockSupport)(t,"className",!0)&&("string"==typeof e.className?e.className=Object(f.uniq)([Object(c.getBlockDefaultClassName)(t.name)].concat(Object(ne.a)(e.className.split(" ")))).join(" ").trim():e.className=Object(c.getBlockDefaultClassName)(t.name)),e}));var re=n(12),oe=n(149),ce=n(66),ie=n.n(ce),ae=function(e,t,n){if(t){var r=Object(f.find)(e,{slug:t});if(r)return r}return{color:n}},le=function(e,t){return Object(f.find)(e,{color:t})};function se(e,t){if(e&&t)return"has-".concat(Object(f.kebabCase)(t),"-").concat(e)}var ue={"color.palette":function(e){return void 0===e.colors?void 0:e.colors},"color.gradients":function(e){return void 0===e.gradients?void 0:e.gradients},"color.custom":function(e){return void 0===e.disableCustomColors?void 0:!e.disableCustomColors},"color.customGradient":function(e){return void 0===e.disableCustomGradients?void 0:!e.disableCustomGradients},"typography.fontSizes":function(e){return void 0===e.fontSizes?void 0:e.fontSizes},"typography.customFontSize":function(e){return void 0===e.disableCustomFontSizes?void 0:!e.disableCustomFontSizes},"typography.customLineHeight":function(e){return e.enableCustomLineHeight},"spacing.units":function(e){if(void 0!==e.enableCustomUnits)return!0===e.enableCustomUnits?["px","em","rem","vh","vw"]:e.enableCustomUnits}};function de(e){var t=Object(z.b)().name;return Object(v.useSelect)((function(n){var r,o=n("core/block-editor").getSettings(),c="__experimentalFeatures.global.".concat(e),i="__experimentalFeatures.".concat(t,".").concat(e),a=null!==(r=Object(f.get)(o,i))&&void 0!==r?r:Object(f.get)(o,c);if(void 0!==a)return a;var l=ue[e]?ue[e](o):void 0;return void 0!==l?l:"typography.dropCap"===e||void 0}),[t,e])}var be=[];function fe(e){if(e)return"has-".concat(e,"-gradient-background")}function pe(e,t){var n=Object(f.find)(e,["slug",t]);return n&&n.gradient}function me(e,t){return Object(f.find)(e,["gradient",t])}function ve(e,t){var n=me(e,t);return n&&n.slug}function Oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.gradientAttribute,n=void 0===t?"gradient":t,r=e.customGradientAttribute,o=void 0===r?"customGradient":r,c=Object(z.b)(),i=c.clientId,a=de("color.gradients")||be,l=Object(v.useSelect)((function(e){var t=(0,e("core/block-editor").getBlockAttributes)(i);return{customGradient:t[o],gradient:t[n]}}),[i,n,o]),d=l.gradient,b=l.customGradient,f=Object(v.useDispatch)("core/block-editor"),p=f.updateBlockAttributes,m=Object(u.useCallback)((function(e){var t,r,c=ve(a,e);c?p(i,(r={},Object(s.a)(r,n,c),Object(s.a)(r,o,void 0),r)):p(i,(t={},Object(s.a)(t,n,void 0),Object(s.a)(t,o,e),t))}),[a,i,p]),O=fe(d);return{gradientClass:O,gradientValue:d?pe(a,d):b,setGradient:m}}var ge=function e(t){if(!Object(f.isObject)(t))return t;var n=Object(f.pickBy)(Object(f.mapValues)(t,e),f.identity);return Object(f.isEqual)(n,{})?void 0:n},he=n(14);function je(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ke(e){for(var t=1;t=24?"large":"small"})?null:Object(u.createElement)(Fe,{backgroundColor:t,textColor:i,tinyBackgroundColor:a,tinyTextColor:l})},He=n(170),ze=Object(h.createSlotFill)("InspectorControls"),Ue=ze.Fill,Ge=ze.Slot;function Ke(e){var t=e.children;return Object(He.a)()?Object(u.createElement)(Ue,null,t):null}Ke.Slot=Ge;var We=Ke;function qe(e){return document.getElementById("block-"+e)}function $e(e,t){return t.closest(".block-editor-block-list__block")===e}function Ye(e){for(;e&&e.nodeType!==e.ELEMENT_NODE;)e=e.parentNode;if(e){var t=e.closest(".block-editor-block-list__block");if(t)return t.id.slice("block-".length)}}function Xe(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function Qe(e){var t=e.settings,n=e.clientId,r=e.enableContrastChecking,o=void 0===r||r,c=Object(u.useState)(),i=Object(re.a)(c,2),a=i[0],l=i[1],s=Object(u.useState)(),d=Object(re.a)(s,2),b=d[0],f=d[1];return Object(u.useEffect)((function(){if(o){var e=qe(n);if(e){f(Xe(e).color);for(var t=e,r=Xe(t).backgroundColor;"rgba(0, 0, 0, 0)"===r&&t.parentNode&&t.parentNode.nodeType===t.parentNode.ELEMENT_NODE;)r=Xe(t=t.parentNode).backgroundColor;l(r)}}})),Object(u.createElement)(We,null,Object(u.createElement)(Me,{title:Object(g.__)("Color settings"),initialOpen:!1,settings:t},o&&Object(u.createElement)(Ve,{backgroundColor:a,textColor:b})))}function Ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Je(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=!de("typography.customLineHeight");return!Object(c.hasBlockSupport)(t,"lineHeight")||n}var mt=n(157),vt=n.n(mt),Ot=function(e,t,n){if(t){var r=Object(f.find)(e,{slug:t});if(r)return r}return{size:n}};function gt(e,t){var n=Object(f.find)(e,{size:t});return n||{size:t}}function ht(e){if(e)return"has-".concat(Object(f.kebabCase)(e),"-font-size")}var jt=function(e){var t=de("typography.fontSizes"),n=!de("typography.customFontSize");return Object(u.createElement)(h.FontSizePicker,Object(l.a)({},e,{fontSizes:t,disableCustomFontSizes:n}))};function kt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yt(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=de("typography.fontSizes"),r=!!(null==n?void 0:n.length);return!Object(c.hasBlockSupport)(t,"fontSize")||!r}var wt=Object(p.createHigherOrderComponent)((function(e){return function(t){var n,r=de("typography.fontSizes"),o=t.name,i=t.attributes,a=i.fontSize,l=i.style,s=t.wrapperProps,d=yt({},t);if(Object(c.hasBlockSupport)(o,"fontSize")&&a&&!(null==l||null===(n=l.typography)||void 0===n?void 0:n.fontSize)){var b,f=Ot(r,a,null==l||null===(b=l.typography)||void 0===b?void 0:b.fontSize).size;d.wrapperProps=yt(yt({},s),{},{style:yt({fontSize:f},null==s?void 0:s.style)})}return Object(u.createElement)(e,d)}}),"withFontSizeInlineStyles");Object(m.addFilter)("blocks.registerBlockType","core/font/addAttribute",(function(e){return Object(c.hasBlockSupport)(e,"fontSize")?(e.attributes.fontSize||Object.assign(e.attributes,{fontSize:{type:"string"}}),e):e})),Object(m.addFilter)("blocks.getSaveContent.extraProps","core/font/addSaveProps",_t),Object(m.addFilter)("blocks.registerBlockType","core/font/addEditProps",(function(e){if(!Object(c.hasBlockSupport)(e,"fontSize"))return e;var t=e.getEditWrapperProps;return e.getEditWrapperProps=function(n){var r={};return t&&(r=t(n)),_t(r,e,n)},e})),Object(m.addFilter)("editor.BlockListBlock","core/font-size/with-font-size-inline-styles",wt);var St=["lineHeight","fontSize"];function It(e){var t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=[Ct(e),pt(e)];return t.filter(Boolean).length===t.length}(e),n=Bt(e.name);return t||!n?null:Object(u.createElement)(We,null,Object(u.createElement)(h.PanelBody,{title:Object(g.__)("Typography")},Object(u.createElement)(Et,e),Object(u.createElement)(ft,e)))}var Bt=function(e){return"web"===u.Platform.OS&&St.some((function(t){return Object(c.hasBlockSupport)(e,t)}))};function xt(e){var t=e.units,n=Object(he.a)(e,["units"]),r=Pt(t);return Object(u.createElement)(h.__experimentalUnitControl,Object(l.a)({units:r},n))}function Pt(e){var t=de("spacing.units"),n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.filter((function(t){return e.includes(t.value)}))}(t||[],e);return 0!==n.length&&n}function Tt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nt(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t={};return Object.entries(c.__EXPERIMENTAL_STYLE_PROPERTY).forEach((function(n){var r=Object(oe.a)(n),o=r[0],c=r.slice(1),i=Object(re.a)(c,1)[0];Object(f.has)(e,i)&&(t[o]=Vt(Object(f.get)(e,i)))})),t}(r)),e.style),e}var zt=Object(p.createHigherOrderComponent)((function(e){return function(t){var n=t.name,r=Object(c.hasBlockSupport)(n,"spacing");return[Object(u.createElement)(It,Object(l.a)({key:"typography"},t)),Object(u.createElement)(at,Object(l.a)({key:"colors"},t)),Object(u.createElement)(e,Object(l.a)({key:"edit"},t)),r&&Object(u.createElement)(Rt,{key:"spacing"},Object(u.createElement)(Dt,t))]}}),"withToolbarControls");Object(m.addFilter)("blocks.registerBlockType","core/style/addAttribute",(function(e){return Ft(e)?(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e):e})),Object(m.addFilter)("blocks.getSaveContent.extraProps","core/style/addSaveProps",Ht),Object(m.addFilter)("blocks.registerBlockType","core/style/addEditProps",(function(e){if(!Ft(e))return e;var t=e.getEditWrapperProps;return e.getEditWrapperProps=function(n){var r={};return t&&(r=t(n)),Ht(r,e,n)},e})),Object(m.addFilter)("editor.BlockEdit","core/style/with-block-controls",zt);var Ut=n(21),Gt=n(22),Kt=n(16),Wt=n(23),qt=n(24),$t=n(19);function Yt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object($t.a)(e);if(t){var o=Object($t.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(qt.a)(this,n)}}function Xt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qt(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}function fn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{panelTitle:Object(g.__)("Color settings")},n=t.panelTitle,r=void 0===n?Object(g.__)("Color settings"):n,o=t.colorPanelProps,c=t.contrastCheckers,i=t.panelChildren,a=t.colorDetector,l=(a=void 0===a?{}:a).targetRef,d=a.backgroundColorTargetRef,p=void 0===d?l:d,m=a.textColorTargetRef,O=void 0===m?l:m,h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],j=Object(z.b)(),k=j.clientId,y=de("color.palette")||On,_=Object(v.useSelect)((function(e){return{attributes:(0,e("core/block-editor").getBlockAttributes)(k)}}),[k]),E=_.attributes,C=Object(v.useDispatch)("core/block-editor"),w=C.updateBlockAttributes,S=Object(u.useCallback)((function(e){return w(k,e)}),[w,k]),I=Object(u.useMemo)((function(){return cn()((function(e,t,n,r,o,c){return function(i){var a,l=i.children,d=i.className,p=void 0===d?"":d,m=i.style,v=void 0===m?{}:m,O={};r?O=Object(s.a)({},t,o):c&&(O=Object(s.a)({},t,c));var g={className:b()(p,(a={},Object(s.a)(a,"has-".concat(Object(f.kebabCase)(r),"-").concat(Object(f.kebabCase)(t)),r),Object(s.a)(a,n||"has-".concat(Object(f.kebabCase)(e)),r||c),a)),style:mn(mn({},O),v)};return Object(f.isFunction)(l)?l(g):u.Children.map(l,(function(e){return Object(u.cloneElement)(e,{className:b()(e.props.className,g.className),style:mn(mn({},g.style),e.props.style||{})})}))}}),{maxSize:e.length})}),[e.length]),B=Object(u.useMemo)((function(){return cn()((function(e,t){return function(n){var r=t.find((function(e){return e.color===n}));S(Object(s.a)({},r?Object(f.camelCase)("custom ".concat(e)):e,void 0)),S(Object(s.a)({},r?e:Object(f.camelCase)("custom ".concat(e)),r?r.slug:n))}}),{maxSize:e.length})}),[S,e.length]),x=Object(u.useState)(),P=Object(re.a)(x,2),T=P[0],N=P[1],D=Object(u.useState)(),R=Object(re.a)(D,2),A=R[0],M=R[1];return Object(u.useEffect)((function(){if(c){var e,t=!1,n=!1,r=bn(Object(f.castArray)(c));try{for(r.s();!(e=r.n()).done;){var o=e.value,i=o.backgroundColor,a=o.textColor;if(t||(t=!0===i),n||(n=!0===a),t&&n)break}}catch(e){r.e(e)}finally{r.f()}if(n&&M(vn(O.current).color),t){for(var l=p.current,s=vn(l).backgroundColor;"rgba(0, 0, 0, 0)"===s&&l.parentNode&&l.parentNode.nodeType===l.parentNode.ELEMENT_NODE;)s=vn(l=l.parentNode).backgroundColor;N(s)}}}),[e.reduce((function(e,t){return"".concat(e," | ").concat(E[t.name]," | ").concat(E[Object(f.camelCase)("custom ".concat(t.name))])}),"")].concat(Object(ne.a)(h))),Object(u.useMemo)((function(){var t={},n=e.reduce((function(e,n){"string"==typeof n&&(n={name:n});var r=mn(mn({},n),{},{color:E[n.name]}),o=r.name,c=r.property,i=void 0===c?o:c,a=r.className,l=r.panelLabel,s=void 0===l?n.label||gn[o]||Object(f.startCase)(o):l,u=r.componentName,d=void 0===u?Object(f.startCase)(o).replace(/\s/g,""):u,b=r.color,p=void 0===b?n.color:b,m=r.colors,v=void 0===m?y:m,O=E[Object(f.camelCase)("custom ".concat(o))],g=O?void 0:v.find((function(e){return e.slug===p}));return e[d]=I(o,i,a,p,g&&g.color,O),e[d].displayName=d,e[d].color=O||g&&g.color,e[d].slug=p,e[d].setColor=B(o,v),t[d]={value:g?g.color:E[Object(f.camelCase)("custom ".concat(o))],onChange:e[d].setColor,label:s,colors:v},v||delete t[d].colors,e}),{}),a={title:r,initialOpen:!1,colorSettings:t,colorPanelProps:o,contrastCheckers:c,detectedBackgroundColor:T,detectedColor:A,panelChildren:i};return mn(mn({},n),{},{ColorPanel:Object(u.createElement)(dn,a),InspectorControlsColorPanel:Object(u.createElement)(hn,a)})}),[E,S,A,T].concat(Object(ne.a)(h)))}function kn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yn(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"";return e=(e=(e=Object(f.deburr)(e)).replace(/^\//,"")).toLowerCase()}var Vn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Object(f.words)(Fn(e))},Hn=function(e,t){return Object(f.differenceWith)(e,Vn(t),(function(e,t){return t.includes(e)}))},zn=function(e,t,n,r){return 0===Vn(r).length?e:Un(e,r,{getCategory:function(e){var n;return null===(n=Object(f.find)(t,{slug:e.category}))||void 0===n?void 0:n.title},getCollection:function(e){var t;return null===(t=n[e.name.split("/")[0]])||void 0===t?void 0:t.title},getVariations:function(e){var t=e.variations,n=void 0===t?[]:t;return Array.from(n.reduce((function(e,t){var n=t.title,r=t.keywords,o=void 0===r?[]:r;return e.add(n),o.forEach((function(t){return e.add(t)})),e}),new Set))}})},Un=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Vn(t);if(0===r.length)return e;var o=e.map((function(e){return[e,Gn(e,t,n)]})).filter((function(e){return Object(re.a)(e,2)[1]>0}));return o.sort((function(e,t){var n=Object(re.a)(e,2)[1];return Object(re.a)(t,2)[1]-n})),o.map((function(e){return Object(re.a)(e,1)[0]}))};function Gn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.getName,o=void 0===r?Dn:r,c=n.getTitle,i=void 0===c?Rn:c,a=n.getKeywords,l=void 0===a?An:a,s=n.getCategory,u=void 0===s?Mn:s,d=n.getCollection,b=void 0===d?Ln:d,p=o(e),m=i(e),v=l(e),O=u(e),g=b(e),h=Fn(t),j=Fn(m),k=0;if(h===j)k+=30;else if(j.startsWith(h))k+=20;else{var y=[p,m].concat(Object(ne.a)(v),[O,g]).join(" "),_=Object(f.words)(h),E=Hn(_,y);0===E.length&&(k+=10)}return 0!==k&&p.startsWith("core/")&&k++,k}var Kn=function(e,t){var n=Object(v.useSelect)((function(t){var n=t("core/block-editor").getInserterItems,r=t("core/blocks"),o=r.getCategories,c=r.getCollections;return{categories:o(),collections:c(),items:n(e)}}),[e]),r=n.categories,o=n.collections;return[n.items,r,o,function(e){var n=e.name,r=e.initialAttributes,o=e.innerBlocks,i=Object(c.createBlock)(n,r,Object(c.createBlocksFromInnerBlocksTemplate)(o));t(i)}]},Wn=n(208);function qn(e){var t,n=e.icon,r=e.showColors,o=void 0!==r&&r,c=e.className;"block-default"===(null===(t=n)||void 0===t?void 0:t.src)&&(n={src:Wn.a});var i=Object(u.createElement)(h.Icon,{icon:n&&n.src?n.src:n}),a=o?{backgroundColor:n&&n.background,color:n&&n.foreground}:{};return Object(u.createElement)("span",{style:a,className:b()("block-editor-block-icon",c,{"has-colors":o})},i)}var $n={name:"blocks",className:"block-editor-autocompleters__block",triggerPrefix:"/",useItems:function(e){var t=Object(v.useSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getBlockName,o=t.getBlockInsertionPoint,c=n();return{selectedBlockName:c?r(c):null,rootClientId:o().rootClientId}}),[]),n=t.rootClientId,r=t.selectedBlockName,o=Kn(n,f.noop),c=Object(re.a)(o,3),i=c[0],a=c[1],l=c[2],s=Object(u.useMemo)((function(){return(e.trim()?zn(i,a,l,e):Object(f.orderBy)(i,["frecency"],["desc"])).filter((function(e){return e.name!==r})).slice(0,9)}),[e,r,i,a,l]);return[Object(u.useMemo)((function(){return s.map((function(e){var t=e.title,n=e.icon,r=e.isDisabled;return{key:"block-".concat(e.id),value:e,label:Object(u.createElement)(u.Fragment,null,Object(u.createElement)(qn,{key:"icon",icon:n,showColors:!0}),t),isDisabled:r}}))}),[s])]},allowContext:function(e,t){return!(/\S/.test(e)||/\S/.test(t))},getOptionCompletion:function(e){var t=e.name,n=e.initialAttributes,r=e.innerBlocks;return{action:"replace",value:Object(c.createBlock)(t,n,Object(c.createBlocksFromInnerBlocksTemplate)(r))}}},Yn=[];var Xn=function(e){var t=Object(z.b)().name,n=e.completers,r=void 0===n?Yn:n;return r=Object(u.useMemo)((function(){var e=r;return t===Object(c.getDefaultBlockName)()&&(e=e.concat([$n])),Object(m.hasFilter)("editor.Autocomplete.completers")&&(e===r&&(e=e.map(f.clone)),e=Object(m.applyFilters)("editor.Autocomplete.completers",e,t)),e}),[r,t]),Object(u.createElement)(h.Autocomplete,Object(l.a)({},e,{completers:r}))};var Qn=function(e){var t=e.label,n=void 0===t?Object(g.__)("Change matrix alignment"):t,r=e.onChange,o=void 0===r?f.noop:r,c=e.value,i=void 0===c?"center":c,a=Object(u.createElement)(h.__experimentalAlignmentMatrixControl.Icon,{value:i}),l="block-editor-block-alignment-matrix-toolbar",s="".concat(l,"__popover");return Object(u.createElement)(h.Dropdown,{position:"bottom right",className:l,popoverProps:{className:s,isAlternate:!0},renderToggle:function(e){var t=e.onToggle,r=e.isOpen;return Object(u.createElement)(h.ToolbarGroup,null,Object(u.createElement)(h.ToolbarButton,{onClick:t,"aria-haspopup":"true","aria-expanded":r,onKeyDown:function(e){r||e.keyCode!==st.DOWN||(e.preventDefault(),e.stopPropagation(),t())},label:n,icon:a,showTooltip:!0}))},renderContent:function(){return Object(u.createElement)(h.__experimentalAlignmentMatrixControl,{hasFocusBorder:!1,onChange:o,value:i})}})};function Zn(e){var t=e.clientId,n=Object(v.useSelect)((function(e){if(!t)return{};var n=e("core/block-editor"),r=n.getBlockName;return{attributes:(0,n.getBlockAttributes)(t),name:r(t)}}),[t]),r=n.attributes,o=n.name;if(!o)return null;var i=Object(c.getBlockType)(o);if(!i)return null;var a=i.title,l=Object(c.__experimentalGetBlockLabel)(i,r);return l!==a?"".concat(a,": ").concat(Object(f.truncate)(l,{length:15})):a}var Jn=function(){var e=Object(v.useDispatch)("core/block-editor"),t=e.selectBlock,n=e.clearSelectedBlock,r=Object(v.useSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectionStart,r=t.getSelectedBlockClientId,o=t.getBlockParents,c=r();return{parents:o(c),clientId:c,hasSelection:!!n().clientId}}),[]),o=r.clientId,c=r.parents,i=r.hasSelection;return Object(u.createElement)("ul",{className:"block-editor-block-breadcrumb",role:"list","aria-label":Object(g.__)("Block breadcrumb")},Object(u.createElement)("li",{className:i?void 0:"block-editor-block-breadcrumb__current","aria-current":i?void 0:"true"},i&&Object(u.createElement)(h.Button,{className:"block-editor-block-breadcrumb__button",isTertiary:!0,onClick:n},Object(g.__)("Document")),!i&&Object(g.__)("Document")),c.map((function(e){return Object(u.createElement)("li",{key:e},Object(u.createElement)(h.Button,{className:"block-editor-block-breadcrumb__button",isTertiary:!0,onClick:function(){return t(e)}},Object(u.createElement)(Zn,{clientId:e})))})),!!o&&Object(u.createElement)("li",{className:"block-editor-block-breadcrumb__current","aria-current":"true"},Object(u.createElement)(Zn,{clientId:o})))};function er(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tr(e){for(var t=1;t1||Object(c.hasBlockSupport)(o,"lightBlockWrapper",!1))return Object(u.createElement)(s,Object(l.a)({},e,{context:a}));var d=Object(c.hasBlockSupport)(o,"className",!0)?Object(c.getBlockDefaultClassName)(r):null,p=b()(d,n.className);return Object(u.createElement)(s,Object(l.a)({},e,{context:a,className:p}))}));function ur(e){var t={name:e.name,isSelected:e.isSelected,clientId:e.clientId,onFocus:e.onFocus,onCaretVerticalPositionChange:e.onCaretVerticalPositionChange};return Object(u.createElement)(z.a,{value:Object(u.useMemo)((function(){return t}),Object.values(t))},Object(u.createElement)(sr,e))}var dr=Object(h.createSlotFill)("BlockFormatControls"),br=dr.Fill,fr=dr.Slot;var pr=function(e){return Object(z.b)().isSelected?Object(u.createElement)(br,null,(function(t){var n=Object(f.isEmpty)(t)?null:t;return Object(u.createElement)(h.__experimentalToolbarContext.Provider,{value:n},e.children)})):null};pr.Slot=function(e){var t=Object(u.useContext)(h.__experimentalToolbarContext);return Object(u.createElement)(fr,Object(l.a)({},e,{fillProps:t}))};var mr=pr,vr=n(20),Or=n.n(vr),gr=n(45),hr=n(316),jr=n(115),kr=n(29),yr=function(e){return e+1},_r=function(e){return{top:e.offsetTop,left:e.offsetLeft}};var Er=function(e,t,n,r,o){var c=Object(p.useReducedMotion)()||!r,i=Object(u.useReducer)(yr,0),a=Object(re.a)(i,2),l=a[0],s=a[1],d=Object(u.useReducer)(yr,0),b=Object(re.a)(d,2),f=b[0],m=b[1],v=Object(u.useState)({x:0,y:0}),O=Object(re.a)(v,2),g=O[0],h=O[1],j=Object(u.useMemo)((function(){return e.current?_r(e.current):null}),[o]),k=Object(u.useMemo)((function(){if(!n||!e.current)return function(){};var t=Object(kr.getScrollContainer)(e.current);if(!t)return function(){};var r=e.current.getBoundingClientRect();return function(){var n=e.current.getBoundingClientRect().top-r.top;n&&(t.scrollTop+=n)}}),[o,n]);function y(n){var r=n.x,o=n.y;r=Math.round(r),o=Math.round(o),r===y.x&&o===y.y||(!function(n){var r=n.x,o=n.y;if(e.current){var c=0===r&&0===o;e.current.style.transformOrigin=c?"":"center",e.current.style.transform=c?"":"translate3d(".concat(r,"px,").concat(o,"px,0)"),e.current.style.zIndex=!t||c?"":"1",k()}}({x:r,y:o}),y.x=r,y.y=o)}Object(u.useLayoutEffect)((function(){l&&m()}),[l]),Object(u.useLayoutEffect)((function(){if(j)if(c)k();else{e.current.style.transform="";var t=_r(e.current);s(),h({x:Math.round(j.left-t.left),y:Math.round(j.top-t.top)})}}),[o]),y.x=0,y.y=0,Object(jr.useSpring)({from:{x:g.x,y:g.y},to:{x:0,y:0},reset:l!==f,config:{mass:5,tension:2e3,friction:200},immediate:c,onFrame:y})},Cr=Object(jr.animated)(h.__experimentalTreeGridRow);function wr(e){var t=e.isSelected,n=e.position,r=e.level,o=e.rowCount,c=e.children,i=e.className,a=e.path,s=Object(he.a)(e,["isSelected","position","level","rowCount","children","className","path"]),d=Object(u.useRef)(null),f=a.join("_"),p=Er(d,t,!1,!0,f);return Object(u.createElement)(Cr,Object(l.a)({ref:d,style:p,className:b()("block-editor-block-navigation-leaf",i),level:r,positionInSet:n,setSize:o},s),c)}var Sr=n(214),Ir=n(215),Br=n(314),xr=n(315);function Pr(e,t,n,r,o,c,i,a){var l=n+1,s=function(e){return"up"===e?"horizontal"===i?a?"right":"left":"up":"down"===e?"horizontal"===i?a?"left":"right":"down":null};if(e>1)return function(e,t,n,r,o){var c=t+1;if(o<0&&n)return Object(g.__)("Blocks cannot be moved up as they are already at the top");if(o>0&&r)return Object(g.__)("Blocks cannot be moved down as they are already at the bottom");if(o<0&&!n)return Object(g.sprintf)(Object(g._n)("Move %1$d block from position %2$d up by one place","Move %1$d blocks from position %2$d up by one place",e),e,c);if(o>0&&!r)return Object(g.sprintf)(Object(g._n)("Move %1$d block from position %2$d down by one place","Move %1$d blocks from position %2$d down by one place",e),e,c)}(e,n,r,o,c);if(r&&o)return Object(g.sprintf)(Object(g.__)("Block %s is the only block, and cannot be moved"),t);if(c>0&&!o){var u=s("down");if("down"===u)return Object(g.sprintf)(Object(g.__)("Move %1$s block from position %2$d down to position %3$d"),t,l,l+1);if("left"===u)return Object(g.sprintf)(Object(g.__)("Move %1$s block from position %2$d left to position %3$d"),t,l,l+1);if("right"===u)return Object(g.sprintf)(Object(g.__)("Move %1$s block from position %2$d right to position %3$d"),t,l,l+1)}if(c>0&&o){var d=s("down");if("down"===d)return Object(g.sprintf)(Object(g.__)("Block %1$s is at the end of the content and can’t be moved down"),t);if("left"===d)return Object(g.sprintf)(Object(g.__)("Block %1$s is at the end of the content and can’t be moved left"),t);if("right"===d)return Object(g.sprintf)(Object(g.__)("Block %1$s is at the end of the content and can’t be moved right"),t)}if(c<0&&!r){var b=s("up");if("up"===b)return Object(g.sprintf)(Object(g.__)("Move %1$s block from position %2$d up to position %3$d"),t,l,l-1);if("left"===b)return Object(g.sprintf)(Object(g.__)("Move %1$s block from position %2$d left to position %3$d"),t,l,l-1);if("right"===b)return Object(g.sprintf)(Object(g.__)("Move %1$s block from position %2$d right to position %3$d"),t,l,l-1)}if(c<0&&r){var f=s("up");if("up"===f)return Object(g.sprintf)(Object(g.__)("Block %1$s is at the beginning of the content and can’t be moved up"),t);if("left"===f)return Object(g.sprintf)(Object(g.__)("Block %1$s is at the beginning of the content and can’t be moved left"),t);if("right"===f)return Object(g.sprintf)(Object(g.__)("Block %1$s is at the beginning of the content and can’t be moved right"),t)}}var Tr=function(e,t,n){return"up"===e?"horizontal"===t?n?Sr.a:Ir.a:Br.a:"down"===e?"horizontal"===t?n?Ir.a:Sr.a:xr.a:null},Nr=function(e,t,n){return"up"===e?"horizontal"===t?n?Object(g.__)("Move right"):Object(g.__)("Move left"):Object(g.__)("Move up"):"down"===e?"horizontal"===t?n?Object(g.__)("Move left"):Object(g.__)("Move right"):Object(g.__)("Move down"):null},Dr=Object(u.forwardRef)((function(e,t){var n=e.clientIds,r=e.direction,o=e.orientation,i=Object(he.a)(e,["clientIds","direction","orientation"]),a=Object(p.useInstanceId)(Dr),s=Object(f.castArray)(n).length,d=Object(v.useSelect)((function(e){var t=e("core/block-editor"),i=t.getBlockIndex,a=t.getBlockRootClientId,l=t.getBlockOrder,s=t.getBlock,u=t.getSettings,d=t.getBlockListSettings,b=Object(f.castArray)(n),p=Object(f.first)(b),m=a(p),v=i(p,m),O=i(Object(f.last)(b),m),g=l(m),h=s(p),j=0===v,k=O===g.length-1,y=(d(m)||{}).orientation;return{blockType:h?Object(c.getBlockType)(h.name):null,isDisabled:"up"===r?j:k,rootClientId:m,firstIndex:v,isFirst:j,isLast:k,isRTL:u().isRTL,orientation:o||y}}),[n,r]),m=d.blockType,O=d.isDisabled,g=d.rootClientId,j=d.isFirst,k=d.isLast,y=d.firstIndex,_=d.isRTL,E=d.orientation,C=void 0===E?"vertical":E,w=Object(v.useDispatch)("core/block-editor"),S=w.moveBlocksDown,I=w.moveBlocksUp,B="up"===r?I:S,x="block-editor-block-mover-button__description-".concat(a);return Object(u.createElement)(u.Fragment,null,Object(u.createElement)(h.Button,Object(l.a)({ref:t,className:b()("block-editor-block-mover-button","is-".concat(r,"-button")),icon:Tr(r,C,_),label:Nr(r,C,_),"aria-describedby":x},i,{onClick:O?null:function(e){B(n,g),i.onClick&&i.onClick(e)},"aria-disabled":O})),Object(u.createElement)("span",{id:x,className:"block-editor-block-mover-button__description"},Pr(s,m&&m.title,y,j,k,"up"===r?-1:1,C,_)))})),Rr=Object(u.forwardRef)((function(e,t){return Object(u.createElement)(Dr,Object(l.a)({direction:"up",ref:t},e))})),Ar=Object(u.forwardRef)((function(e,t){return Object(u.createElement)(Dr,Object(l.a)({direction:"down",ref:t},e))}));function Mr(e){var t=e.level,n=e.isLastRow,r=e.terminatedLevels;return Object(f.times)(t-1,(function(e){var o=e+2,c=o===t;return Object(u.createElement)("div",{key:e,"aria-hidden":"true",className:b()("block-editor-block-navigator-descender-line",{"has-item":c,"is-last-row":n,"is-terminated":r.includes(o)})})}))}var Lr=Object(u.createContext)({__experimentalFeatures:!1}),Fr=function(){return Object(u.useContext)(Lr)},Vr=Object(u.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(j.Path,{d:"M11 13h2v-2h-2v2zm-6 0h2v-2H5v2zm12-2v2h2v-2h-2z"}));var Hr=function(e){var t=e.className,n=e.actions,r=e.children,o=e.secondaryActions;return Object(u.createElement)("div",{className:b()(t,"block-editor-warning")},Object(u.createElement)("div",{className:"block-editor-warning__contents"},Object(u.createElement)("p",{className:"block-editor-warning__message"},r),(u.Children.count(n)>0||o)&&Object(u.createElement)("div",{className:"block-editor-warning__actions"},u.Children.count(n)>0&&u.Children.map(n,(function(e,t){return Object(u.createElement)("span",{key:t,className:"block-editor-warning__action"},e)})),o&&Object(u.createElement)(h.DropdownMenu,{className:"block-editor-warning__secondary",icon:Vr,label:Object(g.__)("More options"),popoverProps:{position:"bottom left",className:"block-editor-warning__dropdown"},noIcons:!0},(function(){return Object(u.createElement)(h.MenuGroup,null,o.map((function(e,t){return Object(u.createElement)(h.MenuItem,{onClick:e.onClick,key:t},e.title)})))})))))},zr=n(279),Ur=function(e){var t=e.title,n=e.rawContent,r=e.renderedContent,o=e.action,c=e.actionText,i=e.className;return Object(u.createElement)("div",{className:i},Object(u.createElement)("div",{className:"block-editor-block-compare__content"},Object(u.createElement)("h2",{className:"block-editor-block-compare__heading"},t),Object(u.createElement)("div",{className:"block-editor-block-compare__html"},n),Object(u.createElement)("div",{className:"block-editor-block-compare__preview edit-post-visual-editor"},r)),Object(u.createElement)("div",{className:"block-editor-block-compare__action"},Object(u.createElement)(h.Button,{isSecondary:!0,tabIndex:"0",onClick:o},c)))};var Gr=function(e){var t,n,r,o,i=e.block,a=e.onKeep,l=e.onConvert,s=e.convertor,d=e.convertButtonText,p={rawContent:i.originalContent,renderedContent:Object(c.getSaveElement)(i.name,i.attributes)},m=(t=s(i),n=Object(f.castArray)(t),r=n.map((function(e){return Object(c.getSaveContent)(e.name,e.attributes,e.innerBlocks)})),o=n.map((function(e){return Object(c.getSaveElement)(e.name,e.attributes,e.innerBlocks)})),{rawContent:r.join(""),renderedContent:o}),v=function(e,t){return Object(zr.diffChars)(e,t).map((function(e,t){var n=b()({"block-editor-block-compare__added":e.added,"block-editor-block-compare__removed":e.removed});return Object(u.createElement)("span",{key:t,className:n},e.value)}))}(p.rawContent,m.rawContent);return Object(u.createElement)("div",{className:"block-editor-block-compare__wrapper"},Object(u.createElement)(Ur,{title:Object(g.__)("Current"),className:"block-editor-block-compare__current",action:a,actionText:Object(g.__)("Convert to HTML"),rawContent:p.rawContent,renderedContent:p.renderedContent}),Object(u.createElement)(Ur,{title:Object(g.__)("After Conversion"),className:"block-editor-block-compare__converted",action:l,actionText:d,rawContent:v,renderedContent:m.renderedContent}))};var Kr=function(e){return Object(c.rawHandler)({HTML:e.originalContent})},Wr=Object(p.compose)([Object(v.withSelect)((function(e,t){var n=t.clientId;return{block:e("core/block-editor").getBlock(n)}})),Object(v.withDispatch)((function(e,t){var n=t.block,r=e("core/block-editor").replaceBlock;return{convertToClassic:function(){r(n.clientId,function(e){return Object(c.createBlock)("core/freeform",{content:e.originalContent})}(n))},convertToHTML:function(){r(n.clientId,function(e){return Object(c.createBlock)("core/html",{content:e.originalContent})}(n))},convertToBlocks:function(){r(n.clientId,Kr(n))},attemptBlockRecovery:function(){var e,t,o,i;r(n.clientId,(t=(e=n).name,o=e.attributes,i=e.innerBlocks,Object(c.createBlock)(t,o,i)))}}}))])((function(e){var t=e.convertToHTML,n=e.convertToBlocks,r=e.convertToClassic,o=e.attemptBlockRecovery,i=e.block,a=!!Object(c.getBlockType)("core/html"),l=Object(u.useState)(!1),s=Object(re.a)(l,2),d=s[0],b=s[1],f=Object(u.useCallback)((function(){return b(!0)}),[]),p=Object(u.useCallback)((function(){return b(!1)}),[]),m=Object(u.useMemo)((function(){return[{title:Object(g._x)("Resolve","imperative verb"),onClick:f},a&&{title:Object(g.__)("Convert to HTML"),onClick:t},{title:Object(g.__)("Convert to Classic Block"),onClick:r}].filter(Boolean)}),[f,t,r]);return Object(u.createElement)(u.Fragment,null,Object(u.createElement)(Hr,{actions:[Object(u.createElement)(h.Button,{key:"recover",onClick:o,isPrimary:!0},Object(g.__)("Attempt Block Recovery"))],secondaryActions:m},Object(g.__)("This block contains unexpected or invalid content.")),d&&Object(u.createElement)(h.Modal,{title:Object(g.__)("Resolve Block"),onRequestClose:p,className:"block-editor-block-compare"},Object(u.createElement)(Gr,{block:i,onKeep:t,onConvert:n,convertor:Kr,convertButtonText:Object(g.__)("Convert to Blocks")})))})),qr=Object(u.createElement)(Hr,{className:"block-editor-block-list__block-crash-warning"},Object(g.__)("This block has encountered an error and cannot be previewed.")),$r=function(){return qr};function Yr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object($t.a)(e);if(t){var o=Object($t.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(qt.a)(this,n)}}var Xr=function(e){Object(Wt.a)(n,e);var t=Yr(n);function n(){var e;return Object(Ut.a)(this,n),(e=t.apply(this,arguments)).state={hasError:!1},e}return Object(Gt.a)(n,[{key:"componentDidCatch",value:function(e){this.props.onError(e),this.setState({hasError:!0})}},{key:"render",value:function(){return this.state.hasError?null:this.props.children}}]),n}(u.Component),Qr=n(100),Zr=n.n(Qr);var Jr=function(e){var t=e.clientId,n=Object(u.useState)(""),r=Object(re.a)(n,2),o=r[0],i=r[1],a=Object(v.useSelect)((function(e){return e("core/block-editor").getBlock(t)}),[t]),l=Object(v.useDispatch)("core/block-editor").updateBlock;return Object(u.useEffect)((function(){i(Object(c.getBlockContent)(a))}),[a]),Object(u.createElement)(Zr.a,{className:"block-editor-block-list__block-html-textarea",value:o,onBlur:function(){var e=Object(c.getBlockType)(a.name),n=Object(c.getBlockAttributes)(e,o,a.attributes),r=o||Object(c.getSaveContent)(e,n),s=!o||Object(c.isValidBlockContent)(e,n,r);l(t,{attributes:n,originalContent:r,isValid:s}),o||i({content:r})},onChange:function(e){return i(e.target.value)}})},eo=n(36),to=n.n(eo);function no(e,t){for(var n="start"===t?"firstChild":"lastChild",r="start"===t?"nextSibling":"previousSibling";e[n];)for(e=e[n];e.nodeType===e.TEXT_NODE&&/^[ \t\n]*$/.test(e.data)&&e[r];)e=e[r];return e}function ro(e){var t=e("core/block-editor"),n=t.isSelectionEnabled,r=t.isMultiSelecting,o=t.getMultiSelectedBlockClientIds,c=t.hasMultiSelection,i=t.getBlockParents,a=t.getSelectedBlockClientId;return{isSelectionEnabled:n(),isMultiSelecting:r(),multiSelectedBlockClientIds:o(),hasMultiSelection:c(),getBlockParents:i,selectedBlockClientId:a()}}function oo(e,t){Array.from(e.querySelectorAll(".rich-text")).forEach((function(e){t?e.setAttribute("contenteditable",!0):e.removeAttribute("contenteditable")}))}var co=n(209),io=[Object(u.createInterpolateElement)(Object(g.__)("While writing, you can press / to quickly insert new blocks."),{kbd:Object(u.createElement)("kbd",null)}),Object(u.createInterpolateElement)(Object(g.__)("Indent a list by pressing space at the beginning of a line."),{kbd:Object(u.createElement)("kbd",null)}),Object(u.createInterpolateElement)(Object(g.__)("Outdent a list by pressing backspace at the beginning of a line."),{kbd:Object(u.createElement)("kbd",null)}),Object(g.__)("Drag files into the editor to automatically insert media blocks."),Object(g.__)("Change a block's type by pressing the block icon on the toolbar.")];var ao=function(){var e=Object(u.useState)(Math.floor(Math.random()*io.length)),t=Object(re.a)(e,1)[0];return Object(u.createElement)(h.Tip,null,io[t])},lo=n(159),so=n(141),uo=n(306);var bo=function e(t){var n=t.className,r=t.onChange,o=t.value,c=t.placeholder,i=Object(p.useInstanceId)(e),a=Object(u.useRef)();return Object(u.createElement)("div",{className:b()("block-editor-inserter__search",n)},Object(u.createElement)(h.VisuallyHidden,{as:"label",htmlFor:"block-editor-inserter__search-".concat(i)},c),Object(u.createElement)("input",{ref:a,className:"block-editor-inserter__search-input",id:"block-editor-inserter__search-".concat(i),type:"search",placeholder:c,autoFocus:!0,onChange:function(e){return r(e.target.value)},autoComplete:"off",value:o||""}),Object(u.createElement)("div",{className:"block-editor-inserter__search-icon"},!!o&&Object(u.createElement)(h.Button,{icon:lo.a,label:Object(g.__)("Reset search"),onClick:function(){r(""),a.current.focus()}}),!o&&Object(u.createElement)(so.a,{icon:uo.a})))};var fo=function(e){var t=e.blockType;return Object(u.createElement)("div",{className:"block-editor-block-card"},Object(u.createElement)(qn,{icon:t.icon,showColors:!0}),Object(u.createElement)("div",{className:"block-editor-block-card__content"},Object(u.createElement)("h2",{className:"block-editor-block-card__title"},t.title),Object(u.createElement)("span",{className:"block-editor-block-card__description"},t.description)))},po={insertUsage:{}},mo={alignWide:!1,colors:[{name:Object(g.__)("Black"),slug:"black",color:"#000000"},{name:Object(g.__)("Cyan bluish gray"),slug:"cyan-bluish-gray",color:"#abb8c3"},{name:Object(g.__)("White"),slug:"white",color:"#ffffff"},{name:Object(g.__)("Pale pink"),slug:"pale-pink",color:"#f78da7"},{name:Object(g.__)("Vivid red"),slug:"vivid-red",color:"#cf2e2e"},{name:Object(g.__)("Luminous vivid orange"),slug:"luminous-vivid-orange",color:"#ff6900"},{name:Object(g.__)("Luminous vivid amber"),slug:"luminous-vivid-amber",color:"#fcb900"},{name:Object(g.__)("Light green cyan"),slug:"light-green-cyan",color:"#7bdcb5"},{name:Object(g.__)("Vivid green cyan"),slug:"vivid-green-cyan",color:"#00d084"},{name:Object(g.__)("Pale cyan blue"),slug:"pale-cyan-blue",color:"#8ed1fc"},{name:Object(g.__)("Vivid cyan blue"),slug:"vivid-cyan-blue",color:"#0693e3"},{name:Object(g.__)("Vivid purple"),slug:"vivid-purple",color:"#9b51e0"}],fontSizes:[{name:Object(g._x)("Small","font size name"),size:13,slug:"small"},{name:Object(g._x)("Normal","font size name"),size:16,slug:"normal"},{name:Object(g._x)("Medium","font size name"),size:20,slug:"medium"},{name:Object(g._x)("Large","font size name"),size:36,slug:"large"},{name:Object(g._x)("Huge","font size name"),size:42,slug:"huge"}],imageSizes:[{slug:"thumbnail",name:Object(g.__)("Thumbnail")},{slug:"medium",name:Object(g.__)("Medium")},{slug:"large",name:Object(g.__)("Large")},{slug:"full",name:Object(g.__)("Full Size")}],imageEditing:!0,maxWidth:580,allowedBlockTypes:!0,maxUploadFileSize:0,allowedMimeTypes:null,availableLegacyWidgets:{},__experimentalCanUserUseUnfilteredHTML:!1,__experimentalBlockDirectory:!1,__experimentalEnableFullSiteEditing:!1,__experimentalEnableFullSiteEditingDemo:!1,__mobileEnablePageTemplates:!1,__experimentalBlockPatterns:[],__experimentalBlockPatternCategories:[],__experimentalSpotlightEntityBlocks:[],gradients:[{name:Object(g.__)("Vivid cyan blue to vivid purple"),gradient:"linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)",slug:"vivid-cyan-blue-to-vivid-purple"},{name:Object(g.__)("Light green cyan to vivid green cyan"),gradient:"linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%)",slug:"light-green-cyan-to-vivid-green-cyan"},{name:Object(g.__)("Luminous vivid amber to luminous vivid orange"),gradient:"linear-gradient(135deg,rgba(252,185,0,1) 0%,rgba(255,105,0,1) 100%)",slug:"luminous-vivid-amber-to-luminous-vivid-orange"},{name:Object(g.__)("Luminous vivid orange to vivid red"),gradient:"linear-gradient(135deg,rgba(255,105,0,1) 0%,rgb(207,46,46) 100%)",slug:"luminous-vivid-orange-to-vivid-red"},{name:Object(g.__)("Very light gray to cyan bluish gray"),gradient:"linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)",slug:"very-light-gray-to-cyan-bluish-gray"},{name:Object(g.__)("Cool to warm spectrum"),gradient:"linear-gradient(135deg,rgb(74,234,220) 0%,rgb(151,120,209) 20%,rgb(207,42,186) 40%,rgb(238,44,130) 60%,rgb(251,105,98) 80%,rgb(254,248,76) 100%)",slug:"cool-to-warm-spectrum"},{name:Object(g.__)("Blush light purple"),gradient:"linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%)",slug:"blush-light-purple"},{name:Object(g.__)("Blush bordeaux"),gradient:"linear-gradient(135deg,rgb(254,205,165) 0%,rgb(254,45,45) 50%,rgb(107,0,62) 100%)",slug:"blush-bordeaux"},{name:Object(g.__)("Luminous dusk"),gradient:"linear-gradient(135deg,rgb(255,203,112) 0%,rgb(199,81,192) 50%,rgb(65,88,208) 100%)",slug:"luminous-dusk"},{name:Object(g.__)("Pale ocean"),gradient:"linear-gradient(135deg,rgb(255,245,203) 0%,rgb(182,227,212) 50%,rgb(51,167,181) 100%)",slug:"pale-ocean"},{name:Object(g.__)("Electric grass"),gradient:"linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%)",slug:"electric-grass"},{name:Object(g.__)("Midnight"),gradient:"linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%)",slug:"midnight"}]};function vo(e,t,n){return[].concat(Object(ne.a)(e.slice(0,n)),Object(ne.a)(Object(f.castArray)(t)),Object(ne.a)(e.slice(n)))}function Oo(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=Object(ne.a)(e);return o.splice(t,r),vo(o,e.slice(t,t+r),n)}function go(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ho(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"",n=Object(s.a)({},t,[]);return e.forEach((function(e){var r=e.clientId,o=e.innerBlocks;n[t].push(r),Object.assign(n,jo(o,r))})),n}function ko(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.reduce((function(e,n){return Object.assign(e,Object(s.a)({},n.clientId,t),ko(n.innerBlocks,n.clientId))}),{})}function yo(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.identity,n={},r=Object(ne.a)(e);r.length;){var o=r.shift(),c=o.innerBlocks,i=Object(he.a)(o,["innerBlocks"]);r.push.apply(r,Object(ne.a)(c)),n[i.clientId]=t(i)}return n}function _o(e){return yo(e,(function(e){return Object(f.omit)(e,"attributes")}))}function Eo(e){return yo(e,(function(e){return e.attributes}))}function Co(e,t){return e===t?ho({},e):t}function wo(e,t){return"UPDATE_BLOCK_ATTRIBUTES"===e.type&&void 0!==t&&"UPDATE_BLOCK_ATTRIBUTES"===t.type&&Object(f.isEqual)(e.clientIds,t.clientIds)&&(n=e.attributes,r=t.attributes,Object(f.isEqual)(Object(f.keys)(n),Object(f.keys)(r)));var n,r}var So=function(e){return e.reduce((function(e,t){return e[t]={},e}),{})};var Io=Object(f.flow)(v.combineReducers,(function(e){return function(t,n){if(t&&"SAVE_REUSABLE_BLOCK_SUCCESS"===n.type){var r=n.id,o=n.updatedId;if(r===o)return t;(t=ho({},t)).attributes=Object(f.mapValues)(t.attributes,(function(e,n){return"core/block"===t.byClientId[n].name&&e.ref===r?ho(ho({},e),{},{ref:o}):e}))}return e(t,n)}}),(function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=e(t,n);if(r===t)return t;r.cache=t.cache?t.cache:{};var o=function(e){return e.reduce((function(e,n){var r=n;do{e.push(r),r=t.parents[r]}while(r&&!t.controlledInnerBlocks[r]);return e}),[])};switch(n.type){case"RESET_BLOCKS":r.cache=Object(f.mapValues)(yo(n.blocks),(function(){return{}}));break;case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":var c=Object(f.keys)(yo(n.blocks));n.rootClientId&&!t.controlledInnerBlocks[n.rootClientId]&&c.push(n.rootClientId),r.cache=ho(ho({},r.cache),So(o(c)));break;case"UPDATE_BLOCK":r.cache=ho(ho({},r.cache),So(o([n.clientId])));break;case"UPDATE_BLOCK_ATTRIBUTES":r.cache=ho(ho({},r.cache),So(o(n.clientIds)));break;case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":var i=So(o(n.replacedClientIds));r.cache=ho(ho(ho({},Object(f.omit)(r.cache,n.replacedClientIds)),Object(f.omit)(i,n.replacedClientIds)),So(Object(f.keys)(yo(n.blocks))));break;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":r.cache=ho(ho({},Object(f.omit)(r.cache,n.removedClientIds)),So(Object(f.difference)(o(n.clientIds),n.clientIds)));break;case"MOVE_BLOCKS_TO_POSITION":var a=Object(ne.a)(n.clientIds);n.fromRootClientId&&a.push(n.fromRootClientId),n.toRootClientId&&a.push(n.toRootClientId),r.cache=ho(ho({},r.cache),So(o(a)));break;case"MOVE_BLOCKS_UP":case"MOVE_BLOCKS_DOWN":var l=[];n.rootClientId&&l.push(n.rootClientId),r.cache=ho(ho({},r.cache),So(o(l)));break;case"SAVE_REUSABLE_BLOCK_SUCCESS":var s=Object(f.keys)(Object(f.omitBy)(r.attributes,(function(e,t){return"core/block"!==r.byClientId[t].name||e.ref!==n.updatedId})));r.cache=ho(ho({},r.cache),So(o(s)))}return r}}),(function(e){return function(t,n){var r=function(e){for(var r=e,o=0;o1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object(f.reduce)(t[n],(function(n,o){return r[o]?n:[].concat(Object(ne.a)(n),[o],Object(ne.a)(e(t,o)))}),[])}(t.order,"",t.controlledInnerBlocks),o=Object.keys(Object(f.pickBy)(t.controlledInnerBlocks));return ho(ho({},t),{},{byClientId:ho(ho({},Object(f.omit)(t.byClientId,r)),_o(n.blocks)),attributes:ho(ho({},Object(f.omit)(t.attributes,r)),Eo(n.blocks)),order:ho(ho({},Object(f.omit)(t.order,r)),Object(f.omit)(jo(n.blocks),o)),parents:ho(ho({},Object(f.omit)(t.parents,r)),ko(n.blocks)),cache:ho(ho({},Object(f.omit)(t.cache,r)),Object(f.omit)(Object(f.mapValues)(yo(n.blocks),(function(){return{}})),o))})}return e(t,n)}}),(function(e){var t,n=!1;return function(r,o){var c=e(r,o),i="MARK_LAST_CHANGE_AS_PERSISTENT"===o.type||n;if(r===c&&!i){var a;n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===o.type;var l=null===(a=null==r?void 0:r.isPersistentChange)||void 0===a||a;return r.isPersistentChange===l?r:ho(ho({},c),{},{isPersistentChange:l})}return c=ho(ho({},c),{},{isPersistentChange:i?!n:!wo(o,t)}),t=o,n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===o.type,c}}),(function(e){var t=new Set(["RECEIVE_BLOCKS"]);return function(n,r){var o=e(n,r);return o!==n&&(o.isIgnoredChange=t.has(r.type)),o}}))({byClientId:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return _o(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return ho(ho({},e),_o(t.blocks));case"UPDATE_BLOCK":if(!e[t.clientId])return e;var n=Object(f.omit)(t.updates,"attributes");return Object(f.isEmpty)(n)?e:ho(ho({},e),{},Object(s.a)({},t.clientId,ho(ho({},e[t.clientId]),n)));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?ho(ho({},Object(f.omit)(e,t.replacedClientIds)),_o(t.blocks)):e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(f.omit)(e,t.removedClientIds)}return e},attributes:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return Eo(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return ho(ho({},e),Eo(t.blocks));case"UPDATE_BLOCK":return e[t.clientId]&&t.updates.attributes?ho(ho({},e),{},Object(s.a)({},t.clientId,ho(ho({},e[t.clientId]),t.updates.attributes))):e;case"UPDATE_BLOCK_ATTRIBUTES":if(t.clientIds.every((function(t){return!e[t]})))return e;var n=t.clientIds.reduce((function(n,r){return ho(ho({},n),{},Object(s.a)({},r,Object(f.reduce)(t.attributes,(function(t,n,o){return n!==t[o]&&((t=Co(e[r],t))[o]=n),t}),e[r])))}),{});return t.clientIds.every((function(t){return n[t]===e[t]}))?e:ho(ho({},e),n);case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?ho(ho({},Object(f.omit)(e,t.replacedClientIds)),Eo(t.blocks)):e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(f.omit)(e,t.removedClientIds)}return e},order:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return jo(t.blocks);case"RECEIVE_BLOCKS":return ho(ho({},e),Object(f.omit)(jo(t.blocks),""));case"INSERT_BLOCKS":var n=t.rootClientId,r=void 0===n?"":n,o=e[r]||[],c=jo(t.blocks,r),i=t.index,a=void 0===i?o.length:i;return ho(ho(ho({},e),c),{},Object(s.a)({},r,vo(o,c[r],a)));case"MOVE_BLOCKS_TO_POSITION":var l,u=t.fromRootClientId,d=void 0===u?"":u,b=t.toRootClientId,p=void 0===b?"":b,m=t.clientIds,v=t.index,O=void 0===v?e[p].length:v;if(d===p){var g=e[p],h=g.indexOf(m[0]);return ho(ho({},e),{},Object(s.a)({},p,Oo(e[p],h,O,m.length)))}return ho(ho({},e),{},(l={},Object(s.a)(l,d,f.without.apply(void 0,[e[d]].concat(Object(ne.a)(m)))),Object(s.a)(l,p,vo(e[p],m,O)),l));case"MOVE_BLOCKS_UP":var j=t.clientIds,k=t.rootClientId,y=void 0===k?"":k,_=Object(f.first)(j),E=e[y];if(!E.length||_===Object(f.first)(E))return e;var C=E.indexOf(_);return ho(ho({},e),{},Object(s.a)({},y,Oo(E,C,C-1,j.length)));case"MOVE_BLOCKS_DOWN":var w=t.clientIds,S=t.rootClientId,I=void 0===S?"":S,B=Object(f.first)(w),x=Object(f.last)(w),P=e[I];if(!P.length||x===Object(f.last)(P))return e;var T=P.indexOf(B);return ho(ho({},e),{},Object(s.a)({},I,Oo(P,T,T+1,w.length)));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":var N=t.clientIds;if(!t.blocks)return e;var D=jo(t.blocks);return Object(f.flow)([function(e){return Object(f.omit)(e,t.replacedClientIds)},function(e){return ho(ho({},e),Object(f.omit)(D,""))},function(e){return Object(f.mapValues)(e,(function(e){return Object(f.reduce)(e,(function(e,t){return t===N[0]?[].concat(Object(ne.a)(e),Object(ne.a)(D[""])):(-1===N.indexOf(t)&&e.push(t),e)}),[])}))}])(e);case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(f.flow)([function(e){return Object(f.omit)(e,t.removedClientIds)},function(e){return Object(f.mapValues)(e,(function(e){return f.without.apply(void 0,[e].concat(Object(ne.a)(t.removedClientIds)))}))}])(e)}return e},parents:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return ko(t.blocks);case"RECEIVE_BLOCKS":return ho(ho({},e),ko(t.blocks));case"INSERT_BLOCKS":return ho(ho({},e),ko(t.blocks,t.rootClientId||""));case"MOVE_BLOCKS_TO_POSITION":return ho(ho({},e),t.clientIds.reduce((function(e,n){return e[n]=t.toRootClientId||"",e}),{}));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return ho(ho({},Object(f.omit)(e,t.replacedClientIds)),ko(t.blocks,e[t.clientIds[0]]));case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(f.omit)(e,t.removedClientIds)}return e},controlledInnerBlocks:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.clientId,o=t.hasControlledInnerBlocks;return"SET_HAS_CONTROLLED_INNER_BLOCKS"===n?ho(ho({},e),{},Object(s.a)({},r,o)):e}});function Bo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"CLEAR_SELECTED_BLOCK":return e.clientId?{}:e;case"SELECT_BLOCK":return t.clientId===e.clientId?e:{clientId:t.clientId};case"REPLACE_INNER_BLOCKS":case"INSERT_BLOCKS":return t.updateSelection&&t.blocks.length?{clientId:t.blocks[0].clientId}:e;case"REMOVE_BLOCKS":return t.clientIds&&t.clientIds.length&&-1!==t.clientIds.indexOf(e.clientId)?{}:e;case"REPLACE_BLOCKS":if(-1===t.clientIds.indexOf(e.clientId))return e;var n=t.indexToSelect||t.blocks.length-1,r=t.blocks[n];if(!r)return{};if(r.clientId===e.clientId)return e;var o={clientId:r.clientId};return"number"==typeof t.initialPosition&&(o.initialPosition=t.initialPosition),o}return e}var xo=Object(v.combineReducers)({blocks:Io,isTyping:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_TYPING":return!0;case"STOP_TYPING":return!1}return e},draggedBlocks:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_DRAGGING_BLOCKS":return t.clientIds;case"STOP_DRAGGING_BLOCKS":return[]}return e},isCaretWithinFormattedText:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ENTER_FORMATTED_TEXT":return!0;case"EXIT_FORMATTED_TEXT":return!1}return e},selectionStart:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SELECTION_CHANGE":return{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.startOffset};case"RESET_SELECTION":return t.selectionStart;case"MULTI_SELECT":return{clientId:t.start}}return Bo(e,t)},selectionEnd:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SELECTION_CHANGE":return{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.endOffset};case"RESET_SELECTION":return t.selectionEnd;case"MULTI_SELECT":return{clientId:t.end}}return Bo(e,t)},isMultiSelecting:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_MULTI_SELECT":return!0;case"STOP_MULTI_SELECT":return!1}return e},isSelectionEnabled:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"TOGGLE_SELECTION":return t.isSelectionEnabled}return e},initialPosition:function(e,t){return"REPLACE_BLOCKS"===t.type&&"number"==typeof t.initialPosition||"SELECT_BLOCK"===t.type?t.initialPosition:"REMOVE_BLOCKS"===t.type||"START_TYPING"===t.type?e:void 0},blocksMode:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("TOGGLE_BLOCK_MODE"===t.type){var n=t.clientId;return ho(ho({},e),{},Object(s.a)({},n,e[n]&&"html"===e[n]?"visual":"html"))}return e},blockListSettings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REPLACE_BLOCKS":case"REMOVE_BLOCKS":return Object(f.omit)(e,t.clientIds);case"UPDATE_BLOCK_LIST_SETTINGS":var n=t.clientId;return t.settings?Object(f.isEqual)(e[n],t.settings)?e:ho(ho({},e),{},Object(s.a)({},n,t.settings)):e.hasOwnProperty(n)?Object(f.omit)(e,n):e}return e},insertionPoint:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SHOW_INSERTION_POINT":var n=t.rootClientId,r=t.index;return{rootClientId:n,index:r};case"HIDE_INSERTION_POINT":return null}return e},template:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isValid:!0},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_TEMPLATE_VALIDITY":return ho(ho({},e),{},{isValid:t.isValid})}return e},settings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:mo,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_SETTINGS":return ho(ho({},e),t.settings)}return e},preferences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:po,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":return t.blocks.reduce((function(e,n){var r=n.name,o={name:n.name};return Object(c.isReusableBlock)(n)&&(o.ref=n.attributes.ref,r+="/"+n.attributes.ref),ho(ho({},e),{},{insertUsage:ho(ho({},e.insertUsage),{},Object(s.a)({},r,{time:t.time,count:e.insertUsage[r]?e.insertUsage[r].count+1:1,insert:o}))})}),e)}return e},lastBlockAttributesChange:function(e,t){switch(t.type){case"UPDATE_BLOCK":if(!t.updates.attributes)break;return Object(s.a)({},t.clientId,t.updates.attributes);case"UPDATE_BLOCK_ATTRIBUTES":return t.clientIds.reduce((function(e,n){return ho(ho({},e),{},Object(s.a)({},n,t.attributes))}),{})}return null},isNavigationMode:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"INSERT_BLOCKS"!==t.type&&("SET_NAVIGATION_MODE"===t.type?t.isNavigationMode:e)},hasBlockMovingClientId:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return"SET_BLOCK_MOVING_MODE"===t.type?t.hasBlockMovingClientId:e},automaticChangeStatus:function(e,t){switch(t.type){case"MARK_AUTOMATIC_CHANGE":return"pending";case"MARK_AUTOMATIC_CHANGE_FINAL":return"pending"===e?"final":void 0;case"SELECTION_CHANGE":return"final"!==e?e:void 0;case"STOP_TYPING":return e}},highlightedBlock:function(e,t){switch(t.type){case"TOGGLE_BLOCK_HIGHLIGHT":var n=t.clientId;return t.isHighlighted?n:e===n?null:e;case"SELECT_BLOCK":if(t.clientId!==e)return null}return e}}),Po=n(150),To=n.n(Po),No=n(277),Do=n.n(No),Ro=n(40);function Ao(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Mo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Mo(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}function Mo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:null;return{type:"SELECT_BLOCK",initialPosition:t,clientId:e}}function ac(e){var t;return Or.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,v.controls.select("core/block-editor","getPreviousBlockClientId",e);case 2:if(!(t=n.sent)){n.next=7;break}return n.next=6,ic(t,-1);case 6:return n.abrupt("return",[t]);case 7:case"end":return n.stop()}}),Ho)}function lc(e){var t;return Or.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,v.controls.select("core/block-editor","getNextBlockClientId",e);case 2:if(!(t=n.sent)){n.next=7;break}return n.next=6,ic(t);case 6:return n.abrupt("return",[t]);case 7:case"end":return n.stop()}}),zo)}function sc(){return{type:"START_MULTI_SELECT"}}function uc(){return{type:"STOP_MULTI_SELECT"}}function dc(e,t){return{type:"MULTI_SELECT",start:e,end:t}}function bc(){return{type:"CLEAR_SELECTED_BLOCK"}}function fc(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return{type:"TOGGLE_SELECTION",isSelectionEnabled:e}}function pc(e,t){var n,r,o=null!==(n=null==t||null===(r=t.__experimentalPreferredStyleVariations)||void 0===r?void 0:r.value)&&void 0!==n?n:{};return e.map((function(e){var t,n=e.name;if(!Object(c.hasBlockSupport)(n,"defaultStylePicker",!0))return e;if(!o[n])return e;var r=null===(t=e.attributes)||void 0===t?void 0:t.className;if(null==r?void 0:r.includes("is-style-"))return e;var i=e.attributes,a=void 0===i?{}:i,l=o[n];return Fo(Fo({},e),{},{attributes:Fo(Fo({},a),{},{className:"".concat(r||""," is-style-").concat(l).trim()})})}))}function mc(e,t,n,r,o){var c,i,a;return Or.a.wrap((function(l){for(;;)switch(l.prev=l.next){case 0:return e=Object(f.castArray)(e),l.t0=pc,l.t1=Object(f.castArray)(t),l.next=5,v.controls.select("core/block-editor","getSettings");case 5:return l.t2=l.sent,t=(0,l.t0)(l.t1,l.t2),l.next=9,v.controls.select("core/block-editor","getBlockRootClientId",Object(f.first)(e));case 9:c=l.sent,i=0;case 11:if(!(i1&&void 0!==i[1]?i[1]:"",n=i.length>2&&void 0!==i[2]?i[2]:"",r=i.length>3?i[3]:void 0,a.next=5,v.controls.select("core/block-editor","getTemplateLock",t);case 5:if("all"!==(o=a.sent)){a.next=8;break}return a.abrupt("return");case 8:if(c={type:"MOVE_BLOCKS_TO_POSITION",fromRootClientId:t,toRootClientId:n,clientIds:e,index:r},t!==n){a.next=13;break}return a.next=12,c;case 12:return a.abrupt("return");case 13:if("insert"!==o){a.next=15;break}return a.abrupt("return");case 15:return a.next=17,v.controls.select("core/block-editor","canInsertBlocks",e,n);case 17:if(!a.sent){a.next=21;break}return a.next=21,c;case 21:case"end":return a.stop()}}),Go)}function kc(e){var t,n,r,o=arguments;return Or.a.wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return t=o.length>1&&void 0!==o[1]?o[1]:"",n=o.length>2&&void 0!==o[2]?o[2]:"",r=o.length>3?o[3]:void 0,c.next=5,jc([e],t,n,r);case 5:case"end":return c.stop()}}),Ko)}function yc(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return _c([e],t,n,r)}function _c(e,t,n){var r,o,c,i,a,l,s=arguments;return Or.a.wrap((function(u){for(;;)switch(u.prev=u.next){case 0:return r=!(s.length>3&&void 0!==s[3])||s[3],o=s.length>4?s[4]:void 0,u.t0=pc,u.t1=Object(f.castArray)(e),u.next=6,v.controls.select("core/block-editor","getSettings");case 6:u.t2=u.sent,e=(0,u.t0)(u.t1,u.t2),c=[],i=Ao(e),u.prev=10,i.s();case 12:if((a=i.n()).done){u.next=20;break}return l=a.value,u.next=16,v.controls.select("core/block-editor","canInsertBlockType",l.name,n);case 16:u.sent&&c.push(l);case 18:u.next=12;break;case 20:u.next=25;break;case 22:u.prev=22,u.t3=u.catch(10),i.e(u.t3);case 25:return u.prev=25,i.f(),u.finish(25);case 28:if(!c.length){u.next=30;break}return u.abrupt("return",{type:"INSERT_BLOCKS",blocks:c,index:t,rootClientId:n,time:Date.now(),updateSelection:r,meta:o});case 30:case"end":return u.stop()}}),Wo,null,[[10,22,25,28]])}function Ec(e,t){return{type:"SHOW_INSERTION_POINT",rootClientId:e,index:t}}function Cc(){return{type:"HIDE_INSERTION_POINT"}}function wc(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}function Sc(){return{type:"SYNCHRONIZE_TEMPLATE"}}function Ic(e,t){return{type:"MERGE_BLOCKS",blocks:[e,t]}}function Bc(e){var t,n,r,o,c=arguments;return Or.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(t=!(c.length>1&&void 0!==c[1])||c[1],e&&e.length){i.next=3;break}return i.abrupt("return");case 3:return e=Object(f.castArray)(e),i.next=6,v.controls.select("core/block-editor","getBlockRootClientId",e[0]);case 6:return n=i.sent,i.next=9,v.controls.select("core/block-editor","getTemplateLock",n);case 9:if(!i.sent){i.next=12;break}return i.abrupt("return");case 12:if(!t){i.next=18;break}return i.next=15,ac(e[0]);case 15:r=i.sent,i.next=21;break;case 18:return i.next=20,v.controls.select("core/block-editor","getPreviousBlockClientId",e[0]);case 20:r=i.sent;case 21:return i.next=23,{type:"REMOVE_BLOCKS",clientIds:e};case 23:return i.delegateYield(ec(),"t0",24);case 24:return o=i.t0,i.abrupt("return",[r||o]);case 26:case"end":return i.stop()}}),qo)}function xc(e,t){return Bc([e],t)}function Pc(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return{type:"REPLACE_INNER_BLOCKS",rootClientId:e,blocks:t,updateSelection:n,time:Date.now()}}function Tc(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function Nc(){return{type:"START_TYPING"}}function Dc(){return{type:"STOP_TYPING"}}function Rc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{type:"START_DRAGGING_BLOCKS",clientIds:e}}function Ac(){return{type:"STOP_DRAGGING_BLOCKS"}}function Mc(){return{type:"ENTER_FORMATTED_TEXT"}}function Lc(){return{type:"EXIT_FORMATTED_TEXT"}}function Fc(e,t,n,r){return{type:"SELECTION_CHANGE",clientId:e,attributeKey:t,startOffset:n,endOffset:r}}function Vc(e,t,n){var r=Object(c.getDefaultBlockName)();if(r)return yc(Object(c.createBlock)(r,e),n,t)}function Hc(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function zc(e){return{type:"UPDATE_SETTINGS",settings:e}}function Uc(e,t){return{type:"SAVE_REUSABLE_BLOCK_SUCCESS",id:e,updatedId:t}}function Gc(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}function Kc(){return{type:"MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"}}function Wc(){return{type:"MARK_AUTOMATIC_CHANGE"}}function qc(){var e,t=arguments;return Or.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e=!(t.length>0&&void 0!==t[0])||t[0],n.next=3,{type:"SET_NAVIGATION_MODE",isNavigationMode:e};case 3:e?Object(Le.speak)(Object(g.__)("You are currently in navigation mode. Navigate blocks using the Tab key and Arrow keys. Use Left and Right Arrow keys to move between nesting levels. To exit navigation mode and edit the selected block, press Enter.")):Object(Le.speak)(Object(g.__)("You are currently in edit mode. To return to the navigation mode, press Escape."));case 4:case"end":return n.stop()}}),$o)}function $c(){var e,t=arguments;return Or.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e=t.length>0&&void 0!==t[0]?t[0]:null,n.next=3,{type:"SET_BLOCK_MOVING_MODE",hasBlockMovingClientId:e};case 3:e&&Object(Le.speak)(Object(g.__)("Use the Tab key and Arrow keys to choose new block location. Use Left and Right Arrow keys to move between nesting levels. Once location is selected press Enter or Space to move the block."));case 4:case"end":return n.stop()}}),Yo)}function Yc(e){var t,n,r,o,i,a,l=arguments;return Or.a.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:if(t=!(l.length>1&&void 0!==l[1])||l[1],e||e.length){s.next=3;break}return s.abrupt("return");case 3:return s.next=5,v.controls.select("core/block-editor","getBlocksByClientId",e);case 5:return n=s.sent,s.next=8,v.controls.select("core/block-editor","getBlockRootClientId",e[0]);case 8:if(r=s.sent,!Object(f.some)(n,(function(e){return!e}))){s.next=11;break}return s.abrupt("return");case 11:if(o=n.map((function(e){return e.name})),!Object(f.some)(o,(function(e){return!Object(c.hasBlockSupport)(e,"multiple",!0)}))){s.next=14;break}return s.abrupt("return");case 14:return s.next=16,v.controls.select("core/block-editor","getBlockIndex",Object(f.last)(Object(f.castArray)(e)),r);case 16:return i=s.sent,a=n.map((function(e){return Object(c.cloneBlock)(e)})),s.next=20,_c(a,i+1,r,t);case 20:if(!(a.length>1&&t)){s.next=23;break}return s.next=23,dc(Object(f.first)(a).clientId,Object(f.last)(a).clientId);case 23:return s.abrupt("return",a.map((function(e){return e.clientId})));case 24:case"end":return s.stop()}}),Xo)}function Xc(e){var t,n;return Or.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e){r.next=2;break}return r.abrupt("return");case 2:return r.next=4,v.controls.select("core/block-editor","getBlockRootClientId",e);case 4:return t=r.sent,r.next=7,v.controls.select("core/block-editor","getTemplateLock",t);case 7:if(!r.sent){r.next=10;break}return r.abrupt("return");case 10:return r.next=12,v.controls.select("core/block-editor","getBlockIndex",e,t);case 12:return n=r.sent,r.next=15,Vc({},t,n);case 15:return r.abrupt("return",r.sent);case 16:case"end":return r.stop()}}),Qo)}function Qc(e){var t,n;return Or.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e){r.next=2;break}return r.abrupt("return");case 2:return r.next=4,v.controls.select("core/block-editor","getBlockRootClientId",e);case 4:return t=r.sent,r.next=7,v.controls.select("core/block-editor","getTemplateLock",t);case 7:if(!r.sent){r.next=10;break}return r.abrupt("return");case 10:return r.next=12,v.controls.select("core/block-editor","getBlockIndex",e,t);case 12:return n=r.sent,r.next=15,Vc({},t,n+1);case 15:return r.abrupt("return",r.sent);case 16:case"end":return r.stop()}}),Zo)}function Zc(e,t){return{type:"TOGGLE_BLOCK_HIGHLIGHT",clientId:e,isHighlighted:t}}function Jc(e){return Or.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Zc(e,!0);case 2:return t.next=4,{type:"SLEEP",duration:150};case 4:return t.next=6,Zc(e,!1);case 6:case"end":return t.stop()}}),Jo)}function ei(e,t){return{type:"SET_HAS_CONTROLLED_INNER_BLOCKS",hasControlledInnerBlocks:t,clientId:e}}var ti=n(42);function ni(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return ri(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ri(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}function ri(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:"";return Object(f.map)($i(e,t),(function(t){return pi(e,t)}))}),(function(e){return[e.blocks.byClientId,e.blocks.order,e.blocks.attributes]})),vi=function e(t,n){return Object(f.flatMap)(n,(function(n){var r=$i(t,n);return[].concat(Object(ne.a)(r),Object(ne.a)(e(t,r)))}))},Oi=Object(ti.a)((function(e){var t=$i(e);return[].concat(Object(ne.a)(t),Object(ne.a)(vi(e,t)))}),(function(e){return[e.blocks.order]})),gi=Object(ti.a)((function(e,t){var n=Oi(e);return t?Object(f.reduce)(n,(function(n,r){return e.blocks.byClientId[r].name===t?n+1:n}),0):n.length}),(function(e){return[e.blocks.order,e.blocks.byClientId]})),hi=Object(ti.a)((function(e,t){return Object(f.map)(Object(f.castArray)(t),(function(t){return di(e,t)}))}),(function(e){return[e.blocks.byClientId,e.blocks.order,e.blocks.attributes]}));function ji(e,t){return $i(e,t).length}function ki(e){return e.selectionStart}function yi(e){return e.selectionEnd}function _i(e){return e.selectionStart.clientId}function Ei(e){return e.selectionEnd.clientId}function Ci(e){var t=Fi(e).length;return t||(e.selectionStart.clientId?1:0)}function wi(e){var t=e.selectionStart,n=e.selectionEnd;return!!t.clientId&&t.clientId===n.clientId}function Si(e){var t=e.selectionStart,n=e.selectionEnd,r=t.clientId;return r&&r===n.clientId?r:null}function Ii(e){var t=Si(e);return t?di(e,t):null}function Bi(e,t){return void 0!==e.blocks.parents[t]?e.blocks.parents[t]:null}var xi=Object(ti.a)((function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=[],o=t;e.blocks.parents[o];)o=e.blocks.parents[o],r.push(o);return n?r:r.reverse()}),(function(e){return[e.blocks.parents]})),Pi=Object(ti.a)((function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=xi(e,t,r);return Object(f.map)(Object(f.filter)(Object(f.map)(o,(function(t){return{id:t,name:li(e,t)}})),(function(e){var t=e.name;return Array.isArray(n)?n.includes(t):t===n})),(function(e){return e.id}))}),(function(e){return[e.blocks.parents]}));function Ti(e,t){var n,r=t;do{n=r,r=e.blocks.parents[r]}while(r);return n}function Ni(e,t){for(var n,r=Si(e),o=[].concat(Object(ne.a)(xi(e,t)),[t]),c=[].concat(Object(ne.a)(xi(e,r)),[r]),i=Math.min(o.length,c.length),a=0;a2&&void 0!==arguments[2]?arguments[2]:1;if(void 0===t&&(t=Si(e)),void 0===t&&(t=n<0?Hi(e):zi(e)),!t)return null;var r=Bi(e,t);if(null===r)return null;var o=e.blocks.order,c=o[r],i=c.indexOf(t),a=i+1*n;return a<0||a===c.length?null:c[a]}function Ri(e,t){return Di(e,t,-1)}function Ai(e,t){return Di(e,t,1)}function Mi(e){return e.initialPosition}var Li=Object(ti.a)((function(e){var t=e.selectionStart,n=e.selectionEnd;if(void 0===t.clientId||void 0===n.clientId)return ai;if(t.clientId===n.clientId)return[t.clientId];var r=Bi(e,t.clientId);if(null===r)return ai;var o=$i(e,r),c=o.indexOf(t.clientId),i=o.indexOf(n.clientId);return c>i?o.slice(i,c+1):o.slice(c,i+1)}),(function(e){return[e.blocks.order,e.selectionStart.clientId,e.selectionEnd.clientId]}));function Fi(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId===n.clientId?ai:Li(e)}var Vi=Object(ti.a)((function(e){var t=Fi(e);return t.length?t.map((function(t){return di(e,t)})):ai}),(function(e){return[].concat(Object(ne.a)(Li.getDependants(e)),[e.blocks.byClientId,e.blocks.order,e.blocks.attributes])}));function Hi(e){return Object(f.first)(Fi(e))||null}function zi(e){return Object(f.last)(Fi(e))||null}function Ui(e,t){return Hi(e)===t}function Gi(e,t){return-1!==Fi(e).indexOf(t)}var Ki=Object(ti.a)((function(e,t){for(var n=t,r=!1;n&&!r;)r=Gi(e,n=Bi(e,n));return r}),(function(e){return[e.blocks.order,e.selectionStart.clientId,e.selectionEnd.clientId]}));function Wi(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId===n.clientId?null:t.clientId||null}function qi(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId===n.clientId?null:n.clientId||null}function $i(e,t){return e.blocks.order[t||""]||ai}function Yi(e,t,n){return $i(e,n).indexOf(t)}function Xi(e,t){var n=e.selectionStart,r=e.selectionEnd;return n.clientId===r.clientId&&n.clientId===t}function Qi(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Object(f.some)($i(e,t),(function(t){return Xi(e,t)||Gi(e,t)||n&&Qi(e,t,n)}))}function Zi(e,t){if(!t)return!1;var n=Fi(e),r=n.indexOf(t);return r>-1&&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(f.isBoolean)(e)?e:Object(f.isArray)(e)?!(!e.includes("core/post-content")||null!==t)||e.includes(t):n},o=Object(c.getBlockType)(t);if(!o)return!1;var i=Ea(e),a=i.allowedBlockTypes,l=r(a,t,!0);if(!l)return!1;var s=!!fa(e,n);if(s)return!1;var u=_a(e,n);if(n&&void 0===u)return!1;var d=null==u?void 0:u.allowedBlocks,b=r(d,t),p=o.parent,m=li(e,n),v=r(p,m);return null!==b&&null!==v?b||v:null!==b?b:null===v||v},ma=Object(ti.a)(pa,(function(e,t,n){return[e.blockListSettings[n],e.blocks.byClientId[n],e.settings.allowedBlockTypes,e.settings.templateLock]}));function va(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return t.every((function(t){return ma(e,li(e,t),n)}))}function Oa(e,t){var n,r;return null!==(n=null===(r=e.preferences.insertUsage)||void 0===r?void 0:r[t])&&void 0!==n?n:null}var ga=function(e,t,n){return!!Object(c.hasBlockSupport)(t,"inserter",!0)&&pa(e,t.name,n)},ha=function(e){return function(t){return ci(ci({},e),{},{id:"".concat(e.id,"-").concat(t.name),icon:t.icon||e.icon,title:t.title||e.title,description:t.description||e.description,example:t.hasOwnProperty("example")?t.example:e.example,initialAttributes:ci(ci({},e.initialAttributes),t.attributes),innerBlocks:t.innerBlocks,keywords:t.keywords||e.keywords})}},ja=Object(ti.a)((function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=function(e,t){if(!e)return t;var n=Date.now()-e;switch(!0){case n<36e5:return 4*t;case n<864e5:return 2*t;case n<6048e5:return t/2;default:return t/4}},o=function(t){var n=t.name,o=!1;Object(c.hasBlockSupport)(t.name,"multiple",!0)||(o=Object(f.some)(hi(e,Oi(e)),{name:t.name}));var i=Oa(e,n)||{},a=i.time,l=i.count,s=void 0===l?0:l,u=t.variations.filter((function(e){var t=e.scope;return!t||t.includes("inserter")}));return{id:n,name:t.name,initialAttributes:{},title:t.title,description:t.description,icon:t.icon,category:t.category,keywords:t.keywords,variations:u,example:t.example,isDisabled:o,utility:1,frecency:r(a,s)}},i=function(t){var n,o="core/block/".concat(t.id),i=Sa(e,t.id);1===i.length&&(n=Object(c.getBlockType)(i[0].name));var a=Oa(e,o)||{},l=a.time,s=a.count,u=r(l,void 0===s?0:s);return{id:o,name:"core/block",initialAttributes:{ref:t.id},title:t.title.raw,icon:n?n.icon:ii,category:"reusable",keywords:[],isDisabled:!1,utility:1,frecency:u}},a=Object(c.getBlockTypes)().filter((function(t){return ga(e,t,n)})).map(o),l=pa(e,"core/block",n)?xa(e).map(i):[],s=a.filter((function(e){var t=e.variations;return!(void 0===t?[]:t).some((function(e){return e.isDefault}))})),u=[],d=ni(a);try{for(d.s();!(t=d.n()).done;){var b=t.value,p=b.variations,m=void 0===p?[]:p;if(m.length){var v=ha(b);u.push.apply(u,Object(ne.a)(m.map(v)))}}}catch(e){d.e(e)}finally{d.f()}return[].concat(Object(ne.a)(s),u,Object(ne.a)(l))}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.blocks.order,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,xa(e),Object(c.getBlockTypes)()]})),ka=Object(ti.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=Object(f.some)(Object(c.getBlockTypes)(),(function(n){return ga(e,n,t)}));if(n)return!0;var r=pa(e,"core/block",t)&&xa(e).length>0;return r}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,xa(e),Object(c.getBlockTypes)()]})),ya=Object(ti.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t)return Object(f.filter)(Object(c.getBlockTypes)(),(function(n){return ga(e,n,t)}))}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,Object(c.getBlockTypes)()]}));function _a(e,t){return e.blockListSettings[t]}function Ea(e){return e.settings}function Ca(e){return e.blocks.isPersistentChange}var wa=Object(ti.a)((function(e,t){return Object(f.filter)(e.blockListSettings,(function(e,n){return t.includes(n)}))}),(function(e){return[e.blockListSettings]})),Sa=Object(ti.a)((function(e,t){var n=Object(f.find)(xa(e),(function(e){return e.id===t}));return n?Object(c.parse)(n.content.raw||n.content):null}),(function(e){return[xa(e)]}));function Ia(e){return e.blocks.isIgnoredChange}function Ba(e){return e.lastBlockAttributesChange}function xa(e){var t,n;return null!==(t=null==e||null===(n=e.settings)||void 0===n?void 0:n.__experimentalReusableBlocks)&&void 0!==t?t:ai}function Pa(e){return e.isNavigationMode}function Ta(e){return e.hasBlockMovingClientId}function Na(e){return!!e.automaticChangeStatus}function Da(e,t){return e.highlightedBlock===t}function Ra(e,t){return!!e.blocks.controlledInnerBlocks[t]}var Aa=Object(ti.a)((function(e,t){if(!t.length)return null;var n=Si(e);if(t.includes(li(e,n)))return n;var r=Fi(e),o=Pi(e,n||r[0],t);return o?Object(f.last)(o):null}),(function(e,t){return[e.selectionStart.clientId,e.selectionEnd.clientId,t]}));function Ma(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function La(e){for(var t=1;t=s&&a<=u?a:a2&&void 0!==arguments[2]?arguments[2]:["top","bottom","left","right"];return o.forEach((function(o){var c=rl(e,t,o);(void 0===n||c6||E.length>6,D=Object(u.useMemo)((function(){return zn(E,C,w,s)}),[s,E,C,w]),R=Object(u.useMemo)((function(){return Un(x,s)}),[s,x]),A=Object(v.useSelect)((function(e){return e("core/block-editor").getSettings().__experimentalSetIsInserterOpened}),[]),M=Object(v.useSelect)((function(e){return e("core/block-editor").getPreviousBlockClientId(r)}),[r]);Object(u.useEffect)((function(){A&&A(!1)}),[A]);var L=Object(v.useDispatch)("core/block-editor").selectBlock;Object(u.useEffect)((function(){if(s){var e=D.length+R.length,t=Object(g.sprintf)(Object(g._n)("%d result found.","%d results found.",e),e);i(t)}}),[s,i]);return Object(u.createElement)("div",{className:b()("block-editor-inserter__quick-inserter",{"has-search":N,"has-expand":A}),onKeyPress:Zl,onKeyDown:Ql},N&&Object(u.createElement)(bo,{value:s,onChange:function(e){d(e)},placeholder:Object(g.__)("Search for a block")}),Object(u.createElement)(Jl,{blockTypes:D,blockPatterns:T?R:[],onSelectBlockPattern:P,onSelectBlockType:S,onHover:k}),A&&Object(u.createElement)(h.Button,{className:"block-editor-inserter__quick-inserter-expand",onClick:function(){L(M),setTimeout((function(){A(!0)}))},"aria-label":Object(g.__)("Browse all. This will open the main inserter panel in the editor toolbar.")},Object(g.__)("Browse all")))}function ts(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object($t.a)(e);if(t){var o=Object($t.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(qt.a)(this,n)}}var ns=function(e){var t,n=e.onToggle,r=e.disabled,o=e.isOpen,c=e.blockTitle,i=e.hasSingleBlockType,a=e.toggleProps,s=void 0===a?{}:a;t=i?Object(g.sprintf)(Object(g._x)("Add %s","directly add the only allowed block"),c):Object(g._x)("Add block","Generic label for block inserter button");var d=s.onClick,b=Object(he.a)(s,["onClick"]);return Object(u.createElement)(h.Button,Object(l.a)({icon:co.a,label:t,tooltipPosition:"bottom",onClick:function(e){n&&n(e),d&&d(e)},className:"block-editor-inserter__toggle","aria-haspopup":!i&&"true","aria-expanded":!i&&o,disabled:r},b))},rs=function(e){Object(Wt.a)(n,e);var t=ts(n);function n(){var e;return Object(Ut.a)(this,n),(e=t.apply(this,arguments)).onToggle=e.onToggle.bind(Object(Kt.a)(e)),e.renderToggle=e.renderToggle.bind(Object(Kt.a)(e)),e.renderContent=e.renderContent.bind(Object(Kt.a)(e)),e}return Object(Gt.a)(n,[{key:"onToggle",value:function(e){var t=this.props.onToggle;t&&t(e)}},{key:"renderToggle",value:function(e){var t=e.onToggle,n=e.isOpen,r=this.props,o=r.disabled,c=r.blockTitle,i=r.hasSingleBlockType,a=r.toggleProps,l=r.hasItems,s=r.renderToggle,u=void 0===s?ns:s;return u({onToggle:t,isOpen:n,disabled:o||!l,blockTitle:c,hasSingleBlockType:i,toggleProps:a})}},{key:"renderContent",value:function(e){var t=e.onClose,n=this.props,r=n.rootClientId,o=n.clientId,c=n.isAppender,i=n.showInserterHelpPanel,a=n.__experimentalSelectBlockOnInsert;return n.__experimentalIsQuick?Object(u.createElement)(es,{onSelect:t,rootClientId:r,clientId:o,isAppender:c,selectBlockOnInsert:a}):Object(u.createElement)(Xl,{onSelect:t,rootClientId:r,clientId:o,isAppender:c,showInserterHelpPanel:i,__experimentalSelectBlockOnInsert:a})}},{key:"render",value:function(){var e=this.props,t=e.position,n=e.hasSingleBlockType,r=e.insertOnlyAllowedBlock,o=e.__experimentalIsQuick;return n?this.renderToggle({onToggle:r}):Object(u.createElement)(h.Dropdown,{className:"block-editor-inserter",contentClassName:b()("block-editor-inserter__popover",{"is-quick":o}),position:t,onToggle:this.onToggle,expandOnMobile:!0,headerTitle:Object(g.__)("Add a block"),renderToggle:this.renderToggle,renderContent:this.renderContent})}}]),n}(u.Component),os=Object(p.compose)([Object(v.withSelect)((function(e,t){var n=t.clientId,r=t.rootClientId,o=e("core/block-editor"),c=o.getBlockRootClientId,i=o.hasInserterItems,a=o.__experimentalGetAllowedBlocks,l=e("core/blocks").getBlockVariations,s=a(r=r||c(n)||void 0),u=1===Object(f.size)(s)&&0===Object(f.size)(l(s[0].name,"inserter")),d=!1;return u&&(d=s[0]),{hasItems:i(r),hasSingleBlockType:u,blockTitle:d?d.title:"",allowedBlockType:d,rootClientId:r}})),Object(v.withDispatch)((function(e,t,n){var r=n.select;return{insertOnlyAllowedBlock:function(){var n=t.rootClientId,o=t.clientId,i=t.isAppender,a=t.hasSingleBlockType,l=t.allowedBlockType,s=t.__experimentalSelectBlockOnInsert;if(a&&((0,e("core/block-editor").insertBlock)(Object(c.createBlock)(l.name),function(){var e=r("core/block-editor"),t=e.getBlockIndex,c=e.getBlockSelectionEnd,a=e.getBlockOrder;if(o)return t(o,n);var l=c();return!i&&l?t(l,n)+1:a(n).length}(),n,s),!s)){var u=Object(g.sprintf)(Object(g.__)("%s block added"),l.title);Object(Le.speak)(u)}}}})),Object(p.ifCondition)((function(e){var t=e.hasItems,n=e.isAppender,r=e.rootClientId,o=e.clientId;return t||!n&&!r&&!o}))])(rs),cs=Object(u.forwardRef)((function(e,t){var n=e.selectedClientId,r=e.isReverse,o=e.containerRef,c=e.noCapture,i=e.hasMultiSelection,a=e.multiSelectionContainer,l=Object(v.useSelect)((function(e){return e("core/block-editor").isNavigationMode()})),s=Object(v.useDispatch)("core/block-editor").setNavigationMode;return Object(u.createElement)("div",{ref:t,tabIndex:l?void 0:"0",onFocus:function(){if(c.current)c.current=null;else if(n){var e=qe(n);if(r){var t=kr.focus.tabbable.find(e);(Object(f.last)(t)||e).focus()}else e.focus()}else{if(i)return void a.current.focus();s(!0);var l=kr.focus.tabbable.find(o.current);l.length&&(r?Object(f.last)(l).focus():Object(f.first)(l).focus())}},style:{position:"fixed"}})}));var is=Object(f.overEvery)([kr.isTextField,kr.focus.tabbable.isTabbableIndex]);function as(e,t,n,r){var o,c=kr.focus.focusable.find(n);return t&&(c=Object(f.reverse)(c)),c=c.slice(c.indexOf(e)+1),r&&(o=e.getBoundingClientRect()),Object(f.find)(c,(function t(n,c,i){if(!kr.focus.tabbable.isTabbableIndex(n))return!1;if(r){var a=n.getBoundingClientRect();if(a.left>=o.right||a.right<=o.left)return!1}if(Object(kr.isTextField)(n))return!0;if(!n.classList.contains("block-editor-block-list__block"))return!1;if(function(e){return e.classList.contains("block-editor-block-list__layout")||!!e.querySelector(".block-editor-block-list__layout")}(n))return!0;if(n.contains(e))return!1;for(var l,s=1;(l=i[c+s])&&n.contains(l);s++)if(t(l,c+s,i))return!1;return!0}))}function ls(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getMultiSelectedBlocksStartClientId,o=t.getMultiSelectedBlocksEndClientId,c=t.getPreviousBlockClientId,i=t.getNextBlockClientId,a=t.getFirstMultiSelectedBlockClientId,l=t.getLastMultiSelectedBlockClientId,s=t.hasMultiSelection,u=t.getBlockOrder,d=t.isNavigationMode,b=t.hasBlockMovingClientId,f=t.getBlockIndex,p=t.getBlockRootClientId,m=t.getClientIdsOfDescendants,v=t.canInsertBlockType,O=t.getBlockName,g=t.isSelectionEnabled,h=t.getBlockSelectionStart,j=t.isMultiSelecting,k=t.getSettings,y=n(),_=r(),E=o();return{selectedBlockClientId:y,selectionStartClientId:_,selectionBeforeEndClientId:c(E||y),selectionAfterEndClientId:i(E||y),selectedFirstClientId:a(),selectedLastClientId:l(),hasMultiSelection:s(),blocks:u(),isNavigationMode:d(),hasBlockMovingClientId:b,getBlockIndex:f,getBlockRootClientId:p,getClientIdsOfDescendants:m,canInsertBlockType:v,getBlockName:O,isSelectionEnabled:g(),blockSelectionStart:h(),isMultiSelecting:j(),keepCaretInsideBlock:k().keepCaretInsideBlock}}function ss(e){var t=e.children,n=Object(u.useRef)(),r=Object(u.useRef)(),o=Object(u.useRef)(),c=Object(u.useRef)(),i=Object(u.useRef)(),a=Object(u.useRef)(),l=Object(u.useRef)(),s=Object(v.useSelect)(ls,[]),d=s.selectedBlockClientId,p=s.selectionStartClientId,m=s.selectionBeforeEndClientId,O=s.selectionAfterEndClientId,h=s.selectedFirstClientId,j=s.selectedLastClientId,k=s.hasMultiSelection,y=s.blocks,_=s.isNavigationMode,E=s.hasBlockMovingClientId,C=s.isSelectionEnabled,w=s.blockSelectionStart,S=s.isMultiSelecting,I=s.getBlockIndex,B=s.getBlockRootClientId,x=s.getClientIdsOfDescendants,P=s.canInsertBlockType,T=s.getBlockName,N=s.keepCaretInsideBlock,D=Object(v.useDispatch)("core/block-editor"),R=D.multiSelect,A=D.selectBlock,M=D.clearSelectedBlock,L=D.setNavigationMode,F=D.setBlockMovingClientId,V=D.moveBlockToPosition,H=Object(u.useState)(!1),z=Object(re.a)(H,2),U=z[0],G=z[1];Object(u.useEffect)((function(){k&&!S&&c.current.focus()}),[k,S]);var K=b()("block-editor-writing-flow",{"is-navigate-mode":_,"is-block-moving-mode":!!E(),"can-insert-moving-block":U});return Object(u.createElement)("div",{className:K},Object(u.createElement)(cs,{ref:r,selectedClientId:d,containerRef:n,noCapture:a,hasMultiSelection:k,multiSelectionContainer:c}),Object(u.createElement)("div",{ref:n,onKeyDown:function(e){var t=e.keyCode,s=e.target,u=t===st.UP,b=t===st.DOWN,v=t===st.LEFT,g=t===st.RIGHT,C=t===st.TAB,w=t===st.ESCAPE,S=t===st.ENTER,D=t===st.SPACE,H=u||v,z=v||g,U=u||b,K=z||U,W=e.shiftKey,q=W||e.ctrlKey||e.altKey||e.metaKey,$=U?kr.isVerticalEdge:kr.isHorizontalEdge;if(_){var Y,X=C&&W||u,Q=C&&!W||b,Z=v,J=g;if(X)Y=m;else if(Q)Y=O;else if(Z){var ee;Y=null!==(ee=B(d))&&void 0!==ee?ee:d}else if(J){var te;Y=null!==(te=x([d])[0])&&void 0!==te?te:d}var ne=E();if(ne&&Y&&G(P(T(ne),B(Y))),w&&ne&&(F(null),G(!1)),(S||D)&&ne){var re=B(ne),oe=B(d),ce=I(ne,re),ie=I(d,oe);cen}));if(r&&(r.id||(r=r.firstElementChild))){var o=r.id.slice("block-".length);if(o){var a=r.getBoundingClientRect();e.clientX>a.right||e.clientX-1&&Object(Le.speak)(k)}),[]);var j=Object(c.getBlockType)(a),k=Object(c.__experimentalGetAccessibleBlockLabel)(j,s,i+1,f),y=b()("block-editor-block-list__block-selection-button",{"is-block-moving-mode":!!d});return Object(u.createElement)("div",Object(l.a)({className:y},r),Object(u.createElement)(h.Button,{ref:g,onClick:function(){return m(!1)},onKeyDown:function(e){var n=e.keyCode;n!==st.BACKSPACE&&n!==st.DELETE||(O(t),e.preventDefault())},label:k},Object(u.createElement)(Zn,{clientId:t})))};function ps(e,t,n){var r=Object(u.useState)(t),o=Object(re.a)(r,1)[0],c=Object(u.useCallback)((function(){var t,n,r;t=e.current,n=kr.focus.tabbable.find(t),(r=Object(re.a)(n,1)[0])&&r.focus()}),[]);Object(a.useShortcut)("core/block-editor/focus-toolbar",c,{bindGlobal:!0,eventName:"keydown"}),Object(u.useEffect)((function(){o&&c()}),[n,o,c])}var ms=function(e){var t=e.children,n=e.focusOnMount,r=Object(he.a)(e,["children","focusOnMount"]),o=Object(u.useRef)(),c=function(e){var t=Object(u.useState)(!0),n=Object(re.a)(t,2),r=n[0],o=n[1],c=Object(u.useCallback)((function(){var t=kr.focus.tabbable.find(e.current),n=!t.some((function(e){return!("toolbarItem"in e.dataset)}));n||to()("Using custom components as toolbar controls",{alternative:"ToolbarItem or ToolbarButton components",link:"https://developer.wordpress.org/block-editor/components/toolbar-button/#inside-blockcontrols"}),o(n)}),[]);return Object(u.useLayoutEffect)((function(){var t=new window.MutationObserver(c);return t.observe(e.current,{childList:!0,subtree:!0}),function(){return t.disconnect()}}),[r]),r}(o);return ps(o,n,c),c?Object(u.createElement)(h.Toolbar,Object(l.a)({label:r["aria-label"],ref:o},r),t):Object(u.createElement)(h.NavigableMenu,Object(l.a)({orientation:"horizontal",role:"toolbar",ref:o},r),t)},vs=Object(u.createElement)(j.SVG,{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},Object(u.createElement)(j.Path,{d:"M5 4h2V2H5v2zm6-2v2h2V2h-2zm-6 8h2V8H5v2zm6 0h2V8h-2v2zm-6 6h2v-2H5v2zm6 0h2v-2h-2v2z"}));function Os(e){var t=e.clientIds,n=Object(v.useSelect)((function(e){var n;if(1===t.length){var r=(0,e("core/block-editor").getBlockName)(Object(re.a)(t,1)[0]);return null===(n=Object(c.getBlockType)(r))||void 0===n?void 0:n.icon}}),[t]);return Object(u.createElement)("div",{className:"block-editor-block-draggable-chip-wrapper"},Object(u.createElement)("div",{className:"block-editor-block-draggable-chip"},Object(u.createElement)(h.Flex,{justify:"center",className:"block-editor-block-draggable-chip__content"},Object(u.createElement)(h.FlexItem,null,n?Object(u.createElement)(qn,{icon:n}):Object(g.sprintf)(Object(g._n)("%d block","%d blocks",t.length),t.length)),Object(u.createElement)(h.FlexItem,null,Object(u.createElement)(qn,{icon:vs})))))}var gs=function(e){var t,n,r,o,c=e.children,i=e.clientIds,a=e.cloneClassname,l=e.onDragStart,s=e.onDragEnd,d=e.elementId,b=Object(v.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockRootClientId,r=t.getTemplateLock,o=n(i[0]);return{srcRootClientId:o,isDraggable:"all"!==(o?r(o):null)}}),[i]),f=b.srcRootClientId,p=b.isDraggable,m=Object(u.useRef)(!1),O=(t=Object(u.useRef)(null),n=Object(u.useRef)(null),r=Object(u.useRef)(null),o=Object(u.useRef)(null),Object(u.useEffect)((function(){return function(){o.current&&(clearInterval(o.current),o.current=null)}}),[]),[Object(u.useCallback)((function(e){t.current=e.clientY,r.current=Object(kr.getScrollContainer)(e.target),o.current=setInterval((function(){if(r.current&&n.current){var e=r.current.scrollTop+n.current;r.current.scroll({top:e})}}),25)}),[]),Object(u.useCallback)((function(e){if(r.current){var o=r.current.offsetHeight,c=t.current-r.current.offsetTop,i=e.clientY-r.current.offsetTop;if(e.clientY>c){var a=Math.max(o-c-50,0),l=Math.max(i-c-50,0)/a;n.current=25*l}else if(e.clientY=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}function _s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0}})),Object(v.withDispatch)((function(e,t){return{onTransform:function(n,r){e("core/block-editor").replaceBlocks(t.clientIds,Object(c.switchToBlockType)(n,r))}}})))(Ns),Rs=n(41);function As(){var e=Object(v.useSelect)((function(e){return e("core/block-editor")}),[]).getBlockName,t=Object(v.useSelect)((function(e){return e("core/blocks")}),[]).getBlockType,n=Object(v.useDispatch)("core/notices").createSuccessNotice;return Object(u.useCallback)((function(r,o){var c="";if(1===o.length){var i=o[0],a=t(e(i)).title;c="copy"===r?Object(g.sprintf)(Object(g.__)('Copied "%s" to clipboard.'),a):Object(g.sprintf)(Object(g.__)('Moved "%s" to clipboard.'),a)}else c="copy"===r?Object(g.sprintf)(Object(g._n)("Copied %d block to clipboard.","Copied %d blocks to clipboard.",o.length),o.length):Object(g.sprintf)(Object(g._n)("Moved %d block to clipboard.","Moved %d blocks to clipboard.",o.length),o.length);n(c,{type:"snackbar"})}),[])}var Ms=function(e){var t=e.children,n=Object(u.useRef)(),r=Object(v.useSelect)((function(e){return e("core/block-editor")}),[]),o=r.getBlocksByClientId,i=r.getSelectedBlockClientIds,a=r.hasMultiSelection,l=r.getSettings,s=Object(v.useDispatch)("core/block-editor"),d=s.flashBlock,b=s.removeBlocks,p=s.replaceBlocks,m=As(),O=l().__experimentalCanUserUseUnfilteredHTML,g=function(e){var t=i();if(0!==t.length){if(!a()){var r=e.target.ownerDocument;if("copy"===e.type||"cut"===e.type?Object(kr.documentHasUncollapsedSelection)(r):Object(kr.documentHasSelection)(r))return}if(n.current.contains(e.target)){if(e.preventDefault(),"copy"===e.type||"cut"===e.type){1===t.length&&d(t[0]),m(e.type,t);var l=o(t),s=Object(c.serialize)(l);e.clipboardData.setData("text/plain",s),e.clipboardData.setData("text/html",s)}if("cut"===e.type)b(t);else if("paste"===e.type){var u=function(e){var t=e.clipboardData,n=t.items,r=t.files;n=Object(f.isNil)(n)?[]:n,r=Object(f.isNil)(r)?[]:r;var o="",c="";try{o=t.getData("text/plain"),c=t.getData("text/html")}catch(e){try{c=t.getData("Text")}catch(e){return}}return r=Array.from(r),Array.from(n).forEach((function(e){if(e.getAsFile){var t=e.getAsFile();if(t){var n=t.name,o=t.type,c=t.size;Object(f.find)(r,{name:n,type:o,size:c})||r.push(t)}}})),(r=r.filter((function(e){var t=e.type;return/^image\/(?:jpe?g|png|gif)$/.test(t)}))).length&&!c&&(c=r.map((function(e){return'')})).join(""),o=""),{html:c,plainText:o}}(e),v=u.plainText,g=u.html,h=Object(c.pasteHandler)({HTML:g,plainText:v,mode:"BLOCKS",canUserUseUnfilteredHTML:O});p(t,h,h.length-1,-1)}}}};return Object(u.createElement)("div",{ref:n,onCopy:g,onCut:g,onPaste:g},t)};function Ls(e){var t=e.clientIds,n=e.children,r=e.__experimentalUpdateSelection,o=Object(v.useSelect)((function(e){return e("core/block-editor")}),[]),i=o.canInsertBlockType,a=o.getBlockRootClientId,l=o.getBlocksByClientId,s=o.getTemplateLock,u=Object(v.useSelect)((function(e){return e("core/blocks")}),[]),d=u.getDefaultBlockName,b=u.getGroupingBlockName,p=l(t),m=a(t[0]),O=Object(f.every)(p,(function(e){return!!e&&Object(c.hasBlockSupport)(e.name,"multiple",!0)&&i(e.name,m)})),g=i(d(),m),h=Object(v.useDispatch)("core/block-editor"),j=h.removeBlocks,k=h.replaceBlocks,y=h.duplicateBlocks,_=h.insertAfterBlock,E=h.insertBeforeBlock,C=h.flashBlock,w=h.setBlockMovingClientId,S=h.setNavigationMode,I=h.selectBlock,B=As();return n({canDuplicate:O,canInsertDefaultBlock:g,isLocked:!!s(m),rootClientId:m,blocks:p,onDuplicate:function(){return y(t,r)},onRemove:function(){return j(t,r)},onInsertBefore:function(){E(Object(f.first)(Object(f.castArray)(t)))},onInsertAfter:function(){_(Object(f.last)(Object(f.castArray)(t)))},onMoveTo:function(){S(!0),I(t[0]),w(t[0])},onGroup:function(){if(p.length){var e=b(),n=Object(c.switchToBlockType)(p,e);n&&k(t,n)}},onUngroup:function(){if(p.length){var e=p[0].innerBlocks;e.length&&k(t,e)}},onCopy:function(){var e=p.map((function(e){return e.clientId}));1===p.length&&C(e[0]),B("copy",e)}})}var Fs=Object(p.compose)([Object(v.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor"),o=r.getBlock,i=r.getBlockMode,a=r.getSettings,l=o(n),s=a().codeEditingEnabled;return{mode:i(n),blockType:l?Object(c.getBlockType)(l.name):null,isCodeEditingEnabled:s}})),Object(v.withDispatch)((function(e,t){var n=t.onToggle,r=void 0===n?f.noop:n,o=t.clientId;return{onToggleMode:function(){e("core/block-editor").toggleBlockMode(o),r()}}}))])((function(e){var t=e.blockType,n=e.mode,r=e.onToggleMode,o=e.small,i=void 0!==o&&o,a=e.isCodeEditingEnabled,l=void 0===a||a;if(!Object(c.hasBlockSupport)(t,"html",!0)||!l)return null;var s="visual"===n?Object(g.__)("Edit as HTML"):Object(g.__)("Edit visually");return Object(u.createElement)(h.MenuItem,{onClick:r},!i&&s)}));var Vs=Object(p.compose)(Object(v.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor").getBlock(n);return{block:r,shouldRender:r&&"core/html"===r.name}})),Object(v.withDispatch)((function(e,t){var n=t.block;return{onClick:function(){return e("core/block-editor").replaceBlocks(n.clientId,Object(c.rawHandler)({HTML:Object(c.getBlockContent)(n)}))}}})))((function(e){var t=e.shouldRender,n=e.onClick,r=e.small;if(!t)return null;var o=Object(g.__)("Convert to Blocks");return Object(u.createElement)(h.MenuItem,{onClick:n},!r&&o)})),Hs=Object(h.createSlotFill)("__experimentalBlockSettingsMenuFirstItem"),zs=Hs.Fill,Us=Hs.Slot;zs.Slot=Us;var Gs=zs;function Ks(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ws(e){for(var t=1;t1,x=b()("block-editor-block-toolbar",S&&"is-showing-movers"),P=r?ou.a:"div";return Object(u.createElement)(P,{className:x},Object(u.createElement)("div",Object(l.a)({ref:y},C),!B&&Object(u.createElement)("div",{className:"block-editor-block-toolbar__block-parent-selector-wrapper"},Object(u.createElement)(js,{clientIds:i})),(I||B)&&Object(u.createElement)(h.ToolbarGroup,{className:"block-editor-block-toolbar__block-controls"},Object(u.createElement)(Ds,{clientIds:i}),Object(u.createElement)(hs,{clientIds:i,hideDragHandle:t||m}))),I&&Object(u.createElement)(u.Fragment,null,Object(u.createElement)(O.a.Slot,{bubblesVirtually:!0,className:"block-editor-block-toolbar__slot"}),Object(u.createElement)(mr.Slot,{bubblesVirtually:!0,className:"block-editor-block-toolbar__slot"})),Object(u.createElement)(Js,{clientIds:i}))}var iu=function(e){var t=e.focusOnMount,n=Object(he.a)(e,["focusOnMount"]),r=Object(v.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockName,r=t.getSelectedBlockClientIds,o=e("core/blocks").getBlockType,c=r()[0];return{blockType:c&&o(n(c))}}),[]).blockType;return r&&!Object(c.hasBlockSupport)(r,"__experimentalToolbar",!0)?null:Object(u.createElement)("div",{className:"block-editor-block-contextual-toolbar-wrapper"},Object(u.createElement)(ms,Object(l.a)({focusOnMount:t,className:"block-editor-block-contextual-toolbar","aria-label":Object(g.__)("Block tools")},n),Object(u.createElement)(cu,null)))};function au(e){var t=e("core/block-editor"),n=t.isNavigationMode,r=t.isMultiSelecting,o=t.hasMultiSelection,c=t.isTyping,i=t.isCaretWithinFormattedText,a=t.getSettings,l=t.getLastMultiSelectedBlockClientId;return{isNavigationMode:n(),isMultiSelecting:r(),isTyping:c(),isCaretWithinFormattedText:i(),hasMultiSelection:o(),hasFixedToolbar:a().hasFixedToolbar,lastClientId:l()}}function lu(e){var t=e.clientId,n=e.rootClientId,r=e.isValid,o=e.isEmptyDefaultBlock,c=e.capturingClientId,i=Object(v.useSelect)(au,[]),l=i.isNavigationMode,s=i.isMultiSelecting,d=i.isTyping,f=i.isCaretWithinFormattedText,m=i.hasMultiSelection,O=i.hasFixedToolbar,g=i.lastClientId,j=Object(p.useViewportMatch)("medium"),k=Object(u.useState)(!1),y=Object(re.a)(k,2),_=y[0],E=y[1],C=Object(u.useState)(!1),w=Object(re.a)(C,2),S=w[0],I=w[1],B=Object(u.useContext)(bu),x=!d&&!l&&o&&r,P=l,T=!l&&!O&&j&&!x&&!s&&(!d||f),N=!(l||T||O||o);if(Object(a.useShortcut)("core/block-editor/focus-toolbar",Object(u.useCallback)((function(){return E(!0)}),[]),{bindGlobal:!0,eventName:"keydown",isDisabled:!N}),!(P||T||_||x))return null;var D=B[t];if(c&&(D=document.getElementById("block-"+c)),!D)return null;var R=D;if(m){var A=B[g];if(!A)return null;R={top:D,bottom:A}}var M=x?"top left right":"top right left";return Object(u.createElement)(h.Popover,{noArrow:!0,animate:!1,position:M,focusOnMount:!1,anchorRef:R,className:"block-editor-block-list__block-popover",__unstableSticky:!x,__unstableSlotName:"block-toolbar",__unstableBoundaryParent:!0,__unstableObserveElement:D,onBlur:function(){return E(!1)},shouldAnchorIncludePadding:!0},(T||_)&&Object(u.createElement)("div",{onFocus:function(){I(!0)},onBlur:function(){I(!1)},tabIndex:-1,className:b()("block-editor-block-list__block-popover-inserter",{"is-visible":S})},Object(u.createElement)(os,{clientId:t,rootClientId:n,__experimentalIsQuick:!0})),(T||_)&&Object(u.createElement)(iu,{focusOnMount:_}),P&&Object(u.createElement)(fs,{clientId:t,rootClientId:n}),x&&Object(u.createElement)("div",{className:"block-editor-block-list__empty-block-inserter"},Object(u.createElement)(os,{position:"bottom right",rootClientId:n,clientId:t,__experimentalIsQuick:!0})))}function su(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getFirstMultiSelectedBlockClientId,o=t.getBlockRootClientId,i=t.__unstableGetBlockWithoutInnerBlocks,a=t.getBlockParents,l=t.__experimentalGetBlockListSettingsForBlocks,s=n()||r();if(s){var u,d=i(s)||{},b=d.name,p=d.attributes,m=void 0===p?{}:p,v=d.isValid,O=a(s),g=l(O),h=Object(f.findIndex)(g,["__experimentalCaptureToolbars",!0]);return-1!==h&&(u=O[h]),{clientId:s,rootClientId:o(s),name:b,isValid:v,isEmptyDefaultBlock:b&&Object(c.isUnmodifiedDefaultBlock)({name:b,attributes:m}),capturingClientId:u}}}function uu(){var e=Object(v.useSelect)(su,[]);if(!e)return null;var t=e.clientId,n=e.rootClientId,r=e.name,o=e.isValid,c=e.isEmptyDefaultBlock,i=e.capturingClientId;return r?Object(u.createElement)(lu,{clientId:t,rootClientId:n,isValid:o,isEmptyDefaultBlock:c,capturingClientId:i}):null}var du=Object(u.createContext)(),bu=Object(u.createContext)(),fu=Object(u.createContext)();function pu(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.hasMultiSelection;return{selectedBlockClientId:n(),hasMultiSelection:r()}}function mu(e){Ye(e.target)&&e.preventDefault()}var vu=Object(u.forwardRef)((function(e,t){var n=e.children,r=e.className,o=Object(v.useSelect)(pu,[]),c=o.selectedBlockClientId,i=o.hasMultiSelection,a=Object(v.useDispatch)("core/block-editor").selectBlock,l=function(e){var t=Object(v.useSelect)(ro,[]),n=t.isSelectionEnabled,r=t.isMultiSelecting,o=t.multiSelectedBlockClientIds,c=t.hasMultiSelection,i=t.getBlockParents,a=t.selectedBlockClientId,l=Object(v.useDispatch)("core/block-editor"),s=l.startMultiSelect,d=l.stopMultiSelect,b=l.multiSelect,f=l.selectBlock,p=Object(u.useRef)(),m=Object(u.useRef)(),O=Object(u.useRef)();Object(u.useEffect)((function(){var t=e.current.ownerDocument,n=t.defaultView;if(c&&!r){var i=o.length;if(!(i<2)){var l=o[0],s=o[i-1],u=qe(l),d=qe(s),b=n.getSelection(),f=t.createRange();u=no(u,"start"),d=no(d,"end"),f.setStartBefore(u),f.setEndAfter(d),b.removeAllRanges(),b.addRange(f)}}else{if(!a||r)return;var p=n.getSelection();if(p.rangeCount&&!p.isCollapsed){var m=qe(a),v=p.getRangeAt(0),O=v.startContainer,g=v.endContainer;!m||m.contains(O)&&m.contains(g)||p.removeAllRanges()}}}),[c,r,o,f,a]);var g=Object(u.useCallback)((function(t){var n=t.isSelectionEnd,r=e.current.ownerDocument.defaultView.getSelection();if(r.rangeCount&&!r.isCollapsed){var o=Ye(r.focusNode);if(m.current===o){if(f(o),n&&(oo(e.current,!0),r.rangeCount)){var c=r.getRangeAt(0).commonAncestorContainer;O.current.contains(c)&&O.current.focus()}}else{var a=[].concat(Object(ne.a)(i(m.current)),[m.current]),l=[].concat(Object(ne.a)(i(o)),[o]),s=Math.min(a.length,l.length)-1;b(a[s],l[s])}}else oo(e.current,!0)}),[f,i,b]),h=Object(u.useCallback)((function(){var t=e.current.ownerDocument,n=t.defaultView;t.removeEventListener("selectionchange",g),n.removeEventListener("mouseup",h),p.current=n.requestAnimationFrame((function(){g({isSelectionEnd:!0}),d()}))}),[g,d]);return Object(u.useEffect)((function(){var t=e.current.ownerDocument,n=t.defaultView;return function(){t.removeEventListener("selectionchange",g),n.removeEventListener("mouseup",h),n.cancelAnimationFrame(p.current)}}),[g,h]),Object(u.useCallback)((function(t){if(n){var r=e.current.ownerDocument,o=r.defaultView;m.current=t,O.current=r.activeElement,s(),r.addEventListener("selectionchange",g),o.addEventListener("mouseup",h),oo(e.current,!1)}}),[n,s,h])}(t),s=Object(u.useState)({}),d=Object(re.a)(s,2),f=d[0],p=d[1];return Object(u.createElement)(bs,{containerRef:t},Object(u.createElement)(bu.Provider,{value:f},Object(u.createElement)(uu,null),Object(u.createElement)("div",{ref:t,className:b()(r,"is-root-container"),onFocus:function(e){if(!i){var t=Ye(e.target);t&&t!==c&&a(t)}},onDragStart:mu},Object(u.createElement)(fu.Provider,{value:p},Object(u.createElement)(du.Provider,{value:l},n)))))})),Ou=["p","div","h1","h2","h3","h4","h5","h6","ol","ul","li","figure","nav","pre","header","section","aside","footer","main"];function gu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hu(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.__unstableIsHtml,r=Object(u.useRef)(),o=e.ref||r,c=Object(u.useContext)(du),i=Object(u.useContext)(fu),a=Object(u.useContext)(Cu),l=a.clientId,d=a.rootClientId,p=a.isSelected,m=a.isFirstMultiSelected,O=a.isLastMultiSelected,h=a.isPartOfMultiSelection,j=a.enableAnimation,k=a.index,y=a.className,_=a.name,E=a.mode,C=a.blockTitle,w=a.wrapperProps,S=void 0===w?{}:w,I=Object(v.useSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlocksInitialCaretPosition,r=t.isMultiSelecting,o=t.isNavigationMode;return{shouldFocusFirstElement:p&&!r()&&!o(),initialPosition:p?n():void 0,isNavigationMode:o}}),[p]),B=I.initialPosition,x=I.shouldFocusFirstElement,P=I.isNavigationMode,T=Object(v.useDispatch)("core/block-editor"),N=T.insertDefaultBlock,D=T.removeBlock,R=Object(u.useState)(!1),A=Object(re.a)(R,2),M=A[0],L=A[1];Object(u.useEffect)((function(){if(p||m||O){var e=o.current;return i((function(t){return hu(hu({},t),{},Object(s.a)({},l,e))})),function(){i((function(e){return Object(f.omit)(e,l)}))}}}),[p,m,O]),Object(u.useEffect)((function(){var e=o.current;i((function(t){return t[l]&&t[l]!==e?hu(hu({},t),{},Object(s.a)({},l,e)):t}))}));var F=Object(g.sprintf)(Object(g.__)("Block: %s"),C),V=function(){var e=o.current.ownerDocument;if(!e.activeElement||!$e(o.current,e.activeElement)){var t=kr.focus.tabbable.find(o.current).filter((function(e){return Object(kr.isTextField)(e)&&$e(o.current,e)&&!e.closest(".block-list-appender")})),n=-1===B,r=(n?f.last:f.first)(t)||o.current;Object(kr.placeCaretAtHorizontalEdge)(r,n)}};Object(u.useEffect)((function(){x&&V()}),[x]),Er(o,p||h,p||m,j,k),Object(u.useEffect)((function(){if(p)return o.current.addEventListener("keydown",e),o.current.addEventListener("mouseleave",t),function(){o.current.removeEventListener("mouseleave",t),o.current.removeEventListener("keydown",e)};function e(e){var t=e.keyCode,n=e.target;t!==st.ENTER&&t!==st.BACKSPACE&&t!==st.DELETE||n!==o.current||Object(kr.isTextField)(n)||(e.preventDefault(),t===st.ENTER?N({},d,k+1):D(l))}function t(e){1===e.buttons&&c(l)}}),[p,c,N,D]),Object(u.useEffect)((function(){if(P)return o.current.addEventListener("mouseover",e),o.current.addEventListener("mouseout",t),function(){o.current.removeEventListener("mouseover",e),o.current.removeEventListener("mouseout",t)};function e(e){e.defaultPrevented||(e.preventDefault(),M||L(!0))}function t(e){e.defaultPrevented||(e.preventDefault(),M&&L(!1))}}),[P,M,L]);var H="html"!==E||n?"":"-visual";return hu(hu(hu({},S),e),{},{ref:o,id:"block-".concat(l).concat(H),tabIndex:0,role:"group","aria-label":F,"data-block":l,"data-type":_,"data-title":C,className:b()(y,e.className,S.className,{"is-hovered":M}),style:hu(hu({},S.style),e.style)})}ju.save=c.__unstableGetBlockProps;var ku=Object(u.forwardRef)((function(e,t){var n=e.children,r=e.tagName,o=void 0===r?"div":r,c=Object(he.a)(e,["children","tagName"]);to()("wp.blockEditor.__experimentalBlock",{alternative:"wp.blockEditor.useBlockProps"});var i=ju(hu(hu({},c),{},{ref:t}));return Object(u.createElement)(o,i,n)})),yu=Ou.reduce((function(e,t){return e[t]=Object(u.forwardRef)((function(e,n){return Object(u.createElement)(ku,Object(l.a)({},e,{ref:n,tagName:t}))})),e}),ku);function _u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Eu(e){for(var t=1;t1||Object(c.hasBlockSupport)(q,"lightBlockWrapper",!1),Y=E===Object(c.getUnregisteredTypeHandlerName)();q.getEditWrapperProps&&(t=S,n=q.getEditWrapperProps(w),r=Eu(Eu({},t),n),t&&n&&t.className&&n.className&&(r.className=b()(t.className,n.className)),t&&n&&t.style&&n.style&&(r.style=Eu(Eu({},t.style),n.style)),S=r);var X=$&&Object(c.hasBlockSupport)(q,"className",!0)?Object(c.getBlockDefaultClassName)(E):null,Q=$?w.className:null,Z=S&&!!S["data-align"],J=b()(X,Q,"block-editor-block-list__block",{"wp-block":!Z,"has-warning":!C||!!K||Y,"is-selected":d&&!L,"is-highlighted":F,"is-multi-selected":m,"is-reusable":Object(c.isReusableBlock)(q),"is-dragging":L,"is-typing":j,"is-focused":V&&A&&(d||k),"is-focus-mode":V&&A,"has-child-selected":k&&!L,"is-active-entity":R===a},_),ee=Object(u.createElement)(ur,{name:E,isSelected:d,attributes:w,setAttributes:I,insertBlocksAfter:i?void 0:x,onReplace:i?void 0:B,onRemove:i?void 0:z,mergeBlocks:i?void 0:P,clientId:a,isSelectionEnabled:y,toggleSelection:T});if(Z){var te={"data-align":S["data-align"]};ee=Object(u.createElement)("div",Object(l.a)({className:"wp-block"},te),ee)}var ne,oe={clientId:a,rootClientId:s,isSelected:d,isFirstMultiSelected:g,isLastMultiSelected:h,isPartOfMultiSelection:O,enableAnimation:D,index:N,className:J,isLocked:i,name:E,mode:o,blockTitle:q.title,wrapperProps:Object(f.omit)(S,["data-align"])},ce=Object(u.useMemo)((function(){return oe}),Object.values(oe));return ne=C?"html"===o?Object(u.createElement)(u.Fragment,null,Object(u.createElement)("div",{style:{display:"none"}},ee),Object(u.createElement)(wu,{isHtml:!0},Object(u.createElement)(Jr,{clientId:a}))):$?ee:Object(u.createElement)(wu,S,ee):Object(u.createElement)(wu,null,Object(u.createElement)(Wr,{clientId:a}),Object(u.createElement)("div",null,Object(c.getSaveElement)(q,w))),Object(u.createElement)(Cu.Provider,{value:ce},Object(u.createElement)(Xr,{onError:function(){return W(!0)}},ne),!!K&&Object(u.createElement)(wu,null,Object(u.createElement)($r,null)))})),xu=function(e,t,n){return Object(g.sprintf)(Object(g.__)("Block %1$d of %2$d, Level %3$d"),e,t,n)};var Pu=Object(u.forwardRef)((function e(t,n){var r=t.className,o=t.block,i=t.isSelected,a=t.onClick,l=t.position,s=t.siblingBlockCount,d=t.level,f=t.tabIndex,m=t.onFocus,v=t.onDragStart,O=t.onDragEnd,j=t.draggable,k=o.name,y=o.attributes,_=Object(c.getBlockType)(k),E=Object(c.__experimentalGetBlockLabel)(_,y),C=Object(p.useInstanceId)(e),w="block-navigation-block-select-button__".concat(C),S=xu(l,s,d);return Object(u.createElement)(u.Fragment,null,Object(u.createElement)(h.Button,{className:b()("block-editor-block-navigation-block-select-button",r),onClick:a,"aria-describedby":w,ref:n,tabIndex:f,onFocus:m,onDragStart:v,onDragEnd:O,draggable:j},Object(u.createElement)(qn,{icon:_.icon,showColors:!0}),E,i&&Object(u.createElement)(h.VisuallyHidden,null,Object(g.__)("(selected block)"))),Object(u.createElement)("div",{className:"block-editor-block-navigation-block-select-button__description",id:w},S))}));function Tu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nu(e){for(var t=1;t0,B=O||_,x=b()("block-editor-block-navigation-block__mover-cell",{"is-visible":B}),P=Fr().__experimentalFeatures,T=b()("block-editor-block-navigation-block__menu-cell",{"is-visible":B});return Object(u.useEffect)((function(){P&&n&&f.current.focus()}),[P,n]),Object(u.createElement)(wr,{className:b()({"is-selected":n,"is-dragging":w}),onMouseEnter:function(){return j(!0)},onMouseLeave:function(){return j(!1)},onFocus:function(){return E(!0)},onBlur:function(){return E(!1)},level:c,position:o,rowCount:i,path:d,id:"block-navigation-block-".concat(C),"data-block":C},Object(u.createElement)(h.__experimentalTreeGridCell,{className:"block-editor-block-navigation-block__contents-cell",colSpan:I?void 0:2,ref:f},(function(e){var l=e.ref,d=e.tabIndex,b=e.onFocus;return Object(u.createElement)("div",{className:"block-editor-block-navigation-block__contents-container"},Object(u.createElement)(Mr,{level:c,isLastRow:o===i,terminatedLevels:s}),Object(u.createElement)(Mu,{block:t,onClick:function(){return r(t.clientId)},isSelected:n,position:o,siblingBlockCount:a,level:c,ref:l,tabIndex:d,onFocus:b}))})),I&&Object(u.createElement)(u.Fragment,null,Object(u.createElement)(h.__experimentalTreeGridCell,{className:x,withoutGridItem:!0},Object(u.createElement)(h.__experimentalTreeGridItem,null,(function(e){var t=e.ref,n=e.tabIndex,r=e.onFocus;return Object(u.createElement)(Rr,{orientation:"vertical",clientIds:[C],ref:t,tabIndex:n,onFocus:r})})),Object(u.createElement)(h.__experimentalTreeGridItem,null,(function(e){var t=e.ref,n=e.tabIndex,r=e.onFocus;return Object(u.createElement)(Ar,{orientation:"vertical",clientIds:[C],ref:t,tabIndex:n,onFocus:r})})))),P&&Object(u.createElement)(h.__experimentalTreeGridCell,{className:T},(function(e){var t=e.ref,n=e.tabIndex,o=e.onFocus;return Object(u.createElement)(Zs,{clientIds:[C],icon:hr.a,toggleProps:{ref:t,tabIndex:n,onFocus:o},disableOpenOnArrowDown:!0,__experimentalSelectBlock:r},(function(e){var t=e.onClose;return Object(u.createElement)(h.MenuGroup,null,Object(u.createElement)(h.MenuItem,{onClick:Object(gr.a)(Or.a.mark((function e(){return Or.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,S(null);case 2:return e.next=4,S(C);case 4:t();case 5:case"end":return e.stop()}}),e)})))},Object(g.__)("Go to block")))}))})))}function Fu(e){var t=e.parentBlockClientId,n=e.position,r=e.level,o=e.rowCount,c=e.terminatedLevels,i=e.path,a=Object(v.useSelect)((function(e){var n=e("core/block-editor"),r=n.isBlockBeingDragged,o=n.isAncestorBeingDragged;return r(t)||o(t)}),[t]),l=Object(p.useInstanceId)(Fu),s="block-navigation-appender-row__description_".concat(l),d=Object(g.sprintf)(Object(g.__)("Add block at position %1$d, Level %2$d"),n,r);return Object(u.createElement)(wr,{className:b()({"is-dragging":a}),level:r,position:n,rowCount:o,path:i},Object(u.createElement)(h.__experimentalTreeGridCell,{className:"block-editor-block-navigation-appender__cell",colSpan:"3"},(function(e){var i=e.ref,a=e.tabIndex,l=e.onFocus;return Object(u.createElement)("div",{className:"block-editor-block-navigation-appender__container"},Object(u.createElement)(Mr,{level:r,isLastRow:n===o,terminatedLevels:c}),Object(u.createElement)(os,{rootClientId:t,__experimentalIsQuick:!0,__experimentalSelectBlockOnInsert:!1,"aria-describedby":s,toggleProps:{ref:i,tabIndex:a,onFocus:l}}),Object(u.createElement)("div",{className:"block-editor-block-navigation-appender__description",id:s},d))})))}function Vu(e){var t=e.blocks,n=e.selectBlock,r=e.selectedBlockClientId,o=e.showAppender,c=e.showBlockMovers,i=e.showNestedBlocks,a=e.parentBlockClientId,l=e.level,s=void 0===l?1:l,d=e.terminatedLevels,b=void 0===d?[]:d,p=e.path,m=void 0===p?[]:p,v=!a,O=Object(f.compact)(t),g=function(e){return o&&!v&&r===e},h=g(a),j=O.length,k=h?j+1:j,y=k;return Object(u.createElement)(u.Fragment,null,Object(f.map)(O,(function(e,t){var a=e.clientId,l=e.innerBlocks,d=t+1,f=k===d?[].concat(Object(ne.a)(b),[s]):b,p=[].concat(Object(ne.a)(m),[d]),v=i&&!!l&&!!l.length,O=g(a);return Object(u.createElement)(u.Fragment,{key:a},Object(u.createElement)(Lu,{block:e,onClick:n,isSelected:r===a,level:s,position:d,rowCount:k,siblingBlockCount:j,showBlockMovers:c,terminatedLevels:b,path:p}),(v||O)&&Object(u.createElement)(Vu,{blocks:l,selectedBlockClientId:r,selectBlock:n,showAppender:o,showBlockMovers:c,showNestedBlocks:i,parentBlockClientId:a,level:s+1,terminatedLevels:f,path:p}))})),h&&Object(u.createElement)(Fu,{parentBlockClientId:a,position:k,rowCount:y,level:s,terminatedLevels:b,path:[].concat(Object(ne.a)(m),[y])}))}function Hu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zu(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Uu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Uu(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}function Uu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.x&&t.top<=e.y&&t.bottom>=e.y}Vu.defaultProps={selectBlock:function(){}};var Ku=["top","bottom"];function Wu(e){var t=Object(u.useState)(),n=Object(re.a)(t,2),r=n[0],o=void 0===r?{}:r,c=n[1],i=nl(o.rootClientId,o.blockIndex),a=Object(h.__unstableUseDropZone)(function(e){for(var t=1;t0||function(e,t){var n=t.left+t.width/2;return e.x>n}(t,c)))return{rootClientId:r.clientId,blockIndex:0,dropPosition:"inside"};if(r.canInsertDraggedBlocksAsSibling){var g=O?1:0;return{rootClientId:r.rootClientId,clientId:r.clientId,blockIndex:r.blockIndex+g,dropPosition:n}}}}(b.current,l);e&&c(e)}}),[b,l]),l)return o}function qu(e){var t=e.__experimentalFeatures,n=Object(he.a)(e,["__experimentalFeatures"]),r=Object(u.useRef)(),o=Wu(r);t||(o=void 0);var c=Object(u.useMemo)((function(){return{__experimentalFeatures:t,blockDropTarget:o}}),[t,o]);return Object(u.createElement)(h.__experimentalTreeGrid,{className:"block-editor-block-navigation-tree","aria-label":Object(g.__)("Block navigation structure"),ref:r},Object(u.createElement)(Lr.Provider,{value:c},Object(u.createElement)(Vu,n)))}var $u=Object(p.compose)(Object(v.withSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getBlockHierarchyRootClientId,o=t.__unstableGetBlockWithBlockTree,c=t.__unstableGetBlockTree,i=n();return{rootBlocks:c(),rootBlock:i?o(r(i)):null,selectedBlockClientId:i}})),Object(v.withDispatch)((function(e,t){var n=t.onSelect,r=void 0===n?f.noop:n;return{selectBlock:function(t){e("core/block-editor").selectBlock(t),r(t)}}})))((function(e){var t=e.rootBlock,n=e.rootBlocks,r=e.selectedBlockClientId,o=e.selectBlock,c=e.__experimentalFeatures;if(!n||0===n.length)return null;var i=t&&(t.clientId!==r||t.innerBlocks&&0!==t.innerBlocks.length);return Object(u.createElement)("div",{className:"block-editor-block-navigation__container"},Object(u.createElement)("p",{className:"block-editor-block-navigation__label"},Object(g.__)("List view")),i&&Object(u.createElement)(qu,{blocks:[t],selectedBlockClientId:r,selectBlock:o,__experimentalFeatures:c,showNestedBlocks:!0}),!i&&Object(u.createElement)(qu,{blocks:n,selectedBlockClientId:r,selectBlock:o,__experimentalFeatures:c}))})),Yu=Object(u.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},Object(u.createElement)(h.Path,{d:"M13.8 5.2H3v1.5h10.8V5.2zm-3.6 12v1.5H21v-1.5H10.2zm7.2-6H6.6v1.5h10.8v-1.5z"}));function Xu(e){var t=e.isEnabled,n=e.onToggle,r=e.isOpen,o=e.innerRef,c=Object(he.a)(e,["isEnabled","onToggle","isOpen","innerRef"]);Object(a.useShortcut)("core/edit-post/toggle-block-navigation",Object(u.useCallback)(n,[n]),{bindGlobal:!0,isDisabled:!t});var i=Object(v.useSelect)((function(e){return e("core/keyboard-shortcuts").getShortcutRepresentation("core/edit-post/toggle-block-navigation")}),[]);return Object(u.createElement)(h.Button,Object(l.a)({},c,{ref:o,icon:Yu,"aria-expanded":r,"aria-haspopup":"true",onClick:t?n:void 0,label:Object(g.__)("Outline"),className:"block-editor-block-navigation",shortcut:i,"aria-disabled":!t}))}var Qu=Object(u.forwardRef)((function(e,t){var n=e.isDisabled,r=e.__experimentalFeatures,o=Object(he.a)(e,["isDisabled","__experimentalFeatures"]),c=Object(v.useSelect)((function(e){return!!e("core/block-editor").getBlockCount()}),[])&&!n;return Object(u.createElement)(h.Dropdown,{contentClassName:"block-editor-block-navigation__popover",position:"bottom right",renderToggle:function(e){var n=e.isOpen,r=e.onToggle;return Object(u.createElement)(Xu,Object(l.a)({},o,{innerRef:t,isOpen:n,onToggle:r,isEnabled:c}))},renderContent:function(e){var t=e.onClose;return Object(u.createElement)($u,{onSelect:t,__experimentalFeatures:r})}})})),Zu=n(130),Ju=[st.rawShortcut.primary("z"),st.rawShortcut.primaryShift("z"),st.rawShortcut.primary("y")],ed=Object(u.createElement)(h.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(f.fromPairs)(Ju.map((function(e){return[e,function(e){return e.preventDefault()}]})))}),td=function(){return ed};function nd(e){return e.filter((function(e){var t=e.type;return/^image\/(?:jpe?g|png|gif)$/.test(t)})).map((function(e){return'')})).join("")}var rd={position:"bottom right",isAlternate:!0},od=function(){return Object(u.createElement)("div",{className:"block-editor-format-toolbar"},Object(u.createElement)(h.ToolbarGroup,null,["bold","italic","link","text-color"].map((function(e){return Object(u.createElement)(h.Slot,{name:"RichText.ToolbarControls.".concat(e),key:e})})),Object(u.createElement)(h.Slot,{name:"RichText.ToolbarControls"},(function(e){return 0!==e.length&&Object(u.createElement)(h.ToolbarItem,null,(function(t){return Object(u.createElement)(h.DropdownMenu,{icon:xr.a,label:Object(g.__)("More rich text controls"),toggleProps:t,controls:Object(f.orderBy)(e.map((function(e){return Object(re.a)(e,1)[0].props})),"title"),popoverProps:rd})}))}))))},cd=function(e){var t=e.inline,n=e.anchorRef;return t?Object(u.createElement)(h.Popover,{noArrow:!0,position:"top center",focusOnMount:!1,anchorRef:n,className:"block-editor-rich-text__inline-format-toolbar"},Object(u.createElement)(od,null)):Object(u.createElement)(mr,null,Object(u.createElement)(od,null))};function id(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ad(e){for(var t=1;t0,xe=a,Pe=s;Array.isArray(a)&&(xe=c.children.toHTML(a),Pe=function(e){return s(c.children.fromDOM(Object(i.__unstableCreateElement)(document,e).childNodes))});var Te=Object(u.useCallback)((function(e,t){Ce(le,x,e,t)}),[le,x]),Ne=Object(u.useCallback)((function(e){var t=e.value,n=e.isReverse;w&&w(!n),C&&Object(i.isEmpty)(t)&&n&&C(!n)}),[w,C]),De=Object(u.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(h&&S){var n=[],r=Object(i.split)(e),o=Object(re.a)(r,2),c=o[0],a=o[1],l=t.length>0,s=-1;l&&Object(i.isEmpty)(c)||(n.push(S(Object(i.toHTMLString)({value:c,multilineTag:Se}))),s+=1),l?(n.push.apply(n,Object(ne.a)(t)),s+=t.length):B&&n.push(B()),(l||B)&&Object(i.isEmpty)(a)||n.push(S(Object(i.toHTMLString)({value:a,multilineTag:Se})));var u=l?s:1,d=l?-1:null;h(n,u,d)}}),[h,S,Se,B]),Re=Object(u.useCallback)((function(e){var t=e.value,n=e.onChange,r=e.shiftKey,o=h&&S;if(h){var a=Object(c.getBlockTransforms)("from").filter((function(e){return"enter"===e.type})),l=Object(c.findTransform)(a,(function(e){return e.regExp.test(t.text)}));l&&(h([l.transform({content:t.text})]),we())}if(f)r?D||n(Object(i.insert)(t,"\n")):o&&Object(i.__unstableIsEmptyLine)(t)?De(t):n(Object(i.__unstableInsertLineSeparator)(t));else{var s=t.text,u=t.start,d=t.end,b=I&&u===d&&d===s.length;r||!o&&!b?D||n(Object(i.insert)(t,"\n")):!o&&b?I():o&&De(t)}}),[h,S,we,f,De,I]),Ae=Object(u.useCallback)((function(e){var t=e.value,n=e.onChange,r=e.html,a=e.plainText,l=e.files,s=e.activeFormats;if(l&&l.length&&!r){var u=Object(c.pasteHandler)({HTML:nd(l),mode:"BLOCKS",tagName:o});return window.console.log("Received items:\n\n",l),void(h&&Object(i.isEmpty)(t)?h(u):De(t,u))}var d,b=h&&S?"AUTO":"INLINE";"AUTO"===b&&Object(i.isEmpty)(t)&&(d=a,Object(Zu.regexp)(".*").test(d))&&(b="BLOCKS"),T&&Object(i.isEmpty)(t)&&Object(Vl.isURL)(a.trim())&&(b="BLOCKS");var p=Object(c.pasteHandler)({HTML:r,plainText:a,mode:b,tagName:o});if("string"==typeof p){var m=Object(i.create)({html:p});if(s.length)for(var v=m.formats.length;v--;)m.formats[v]=[].concat(Object(ne.a)(s),Object(ne.a)(m.formats[v]||[]));f&&(m=Object(i.replace)(m,/\n+/g,i.__UNSTABLE_LINE_SEPARATOR)),n(Object(i.insert)(t,m))}else p.length>0&&(h&&Object(i.isEmpty)(t)?h(p,p.length-1,-1):De(t,p))}),[o,h,S,De,T,f]),Me=Object(u.useCallback)((function(e,t){if(h){var n=e.start,r=e.text;if(" "===r.slice(n-1,n)){var o=r.slice(0,n).trim(),a=Object(c.getBlockTransforms)("from").filter((function(e){return"prefix"===e.type})),l=Object(c.findTransform)(a,(function(e){var t=e.prefix;return o===t}));if(l){var s=t(Object(i.slice)(e,n,r.length)),u=l.transform(s);h([u]),we()}}}}),[h,we]),Le=Object(u.createElement)(i.__experimentalRichText,{clientId:le,identifier:x,ref:ie,value:xe,onChange:Pe,selectionStart:fe,selectionEnd:pe,onSelectionChange:Te,tagName:o,placeholder:j,allowedFormats:Ie,withoutInteractiveFormatting:E,onEnter:Re,onDelete:Ne,onPaste:Ae,__unstableIsSelected:me,__unstableInputRule:Me,__unstableMultilineTag:Se,__unstableIsCaretWithinFormattedText:be,__unstableOnEnterFormattedText:_e,__unstableOnExitFormattedText:Ee,__unstableOnCreateUndoLevel:ye,__unstableMarkAutomaticChange:we,__unstableDidAutomaticChange:ve,__unstableUndo:ge,__unstableDisableFormats:N,preserveWhiteSpace:P,disabled:Oe,unstableOnFocus:R,__unstableAllowPrefixTransformations:A,__unstableMultilineRootTag:M,onCaretVerticalPositionChange:se,blockIsSelected:void 0!==d?d:ue,shouldBlurOnUnmount:je,__unstableMobileNoFocusOnMount:L,deleteEnter:F,placeholderTextColor:V,textAlign:H,selectionColor:U,tagsToEliminate:G,rootTagsToEliminate:K,disableEditingMenu:W,fontSize:q,fontFamily:$,fontWeight:Y,fontStyle:X,minWidth:Q,maxWidth:Z,onBlur:J,setRef:ee,id:te.id,style:te.style},(function(e){var t=e.isSelected,n=e.value,o=e.onChange,c=e.onFocus,i=e.editableProps,a=e.editableTagName;return Object(u.createElement)(u.Fragment,null,r&&r({value:n,onChange:o,onFocus:c}),t&&Be&&Object(u.createElement)(cd,{inline:m,anchorRef:ie.current}),t&&Object(u.createElement)(td,null),Object(u.createElement)(Xn,{onReplace:h,completers:g,record:n,onChange:o,isSelected:t},(function(e){var t=e.listBoxId,n=e.activeId,r=e.onKeyDown;return Object(u.createElement)(a,Object(l.a)({},i,te,{style:te.style?ad(ad({},te.style),i.style):i.style,className:b()("block-editor-rich-text__editable",te.className,i.className,{"keep-placeholder-on-focus":k}),"aria-autocomplete":t?"list":void 0,"aria-owns":t,"aria-activedescendant":n,onKeyDown:function(e){r(e),i.onKeyDown(e)}}))})))}));return O?(to()("wp.blockEditor.RichText wrapperClassName prop",{alternative:"className prop or create your own wrapper div"}),Object(u.createElement)("div",{className:b()("block-editor-rich-text",O)},Le)):Le}));ud.Content=function(e){var t=e.value,n=e.tagName,r=e.multiline,o=Object(he.a)(e,["value","tagName","multiline"]);Array.isArray(t)&&(t=c.children.toHTML(t));var i=ld(r);!t&&i&&(t="<".concat(i,">"));var a=Object(u.createElement)(u.RawHTML,null,t);return n?Object(u.createElement)(n,Object(f.omit)(o,["format"]),a):a},ud.isEmpty=function(e){return!e||0===e.length},ud.Content.defaultProps={format:"string",value:""};var dd=ud;function bd(e){var t=e.value,n=e.onChange;return Object(u.createElement)(Au,null,Object(u.createElement)(dd,{value:t,onChange:n,placeholder:Object(g.__)("Navigation item"),keepPlaceholderOnFocus:!0,withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic","core/image","core/strikethrough"]}))}var fd=n(318);var pd=function(e){var t=e.icon,n=void 0===t?fd.a:t,r=e.label,o=void 0===r?Object(g.__)("Choose variation"):r,c=e.instructions,i=void 0===c?Object(g.__)("Select a variation to start with."):c,a=e.variations,l=e.onSelect,s=e.allowSkip,d=b()("block-editor-block-variation-picker",{"has-many-variations":a.length>4});return Object(u.createElement)(h.Placeholder,{icon:n,label:o,instructions:i,className:d},Object(u.createElement)("ul",{className:"block-editor-block-variation-picker__variations",role:"list","aria-label":Object(g.__)("Block variations")},a.map((function(e){return Object(u.createElement)("li",{key:e.name},Object(u.createElement)(h.Button,{isSecondary:!0,icon:e.icon,iconSize:48,onClick:function(){return l(e)},className:"block-editor-block-variation-picker__variation",label:e.description||e.title}),Object(u.createElement)("span",{className:"block-editor-block-variation-picker__variation-label",role:"presentation"},e.title))}))),s&&Object(u.createElement)("div",{className:"block-editor-block-variation-picker__skip"},Object(u.createElement)(h.Button,{isLink:!0,onClick:function(){return l()}},Object(g.__)("Skip"))))},md=Object(u.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(h.Path,{d:"M15 4H9v11h6V4zM4 18.5V20h16v-1.5H4z"})),vd=Object(u.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(h.Path,{d:"M20 11h-5V4H9v7H4v1.5h5V20h6v-7.5h5z"}));function Od(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gd(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object(u.useRef)(),r=Object(z.b)(),o=r.clientId,c=Object(p.useViewportMatch)("medium","<"),i=Object(v.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockName,r=t.isBlockSelected,i=t.hasSelectedInnerBlock,a=(0,t.isNavigationMode)()||c;return"core/template"!==n(o)&&!r(o)&&!i(o,!0)&&a}),[o,c]),a=e.ref||n,s=t.value&&t.onChange?Gd:Ud;return zd(zd({},e),{},{ref:a,className:b()(e.className,"block-editor-block-list__layout",{"has-overlay":i}),children:Object(u.createElement)(s,Object(l.a)({},t,{clientId:o,wrapperRef:a}))})}Kd.DefaultBlockAppender=Md,Kd.ButtonBlockAppender=Ad,Kd.Content=Object(c.withBlockContentContext)((function(e){var t=e.BlockContent;return Object(u.createElement)(t,null)}));var qd=Kd,$d=n(216);function Yd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xd(e){for(var t=1;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(Vl.isURL)(t))){this.isUpdatingSuggestions=!0,this.setState({selectedSuggestion:null,loading:!0});var i=r(t,{isInitialSuggestions:c});i.then((function(t){e.suggestionsRequest===i&&(e.setState({suggestions:t,loading:!1,showSuggestions:!!t.length}),t.length?e.props.debouncedSpeak(Object(g.sprintf)(Object(g._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",t.length),t.length),"assertive"):e.props.debouncedSpeak(Object(g.__)("No results."),"assertive"),e.isUpdatingSuggestions=!1)})).catch((function(){e.suggestionsRequest===i&&(e.setState({loading:!1}),e.isUpdatingSuggestions=!1)})),this.suggestionsRequest=i}else this.setState({showSuggestions:!1,selectedSuggestion:null,loading:!1})}}},{key:"onChange",value:function(e){var t=e.target.value;this.props.onChange(t),this.props.disableSuggestions||this.updateSuggestions(t.trim())}},{key:"onFocus",value:function(){var e=this.state.suggestions,t=this.props,n=t.disableSuggestions,r=t.value;!r||n||this.isUpdatingSuggestions||e&&e.length||this.updateSuggestions(r.trim())}},{key:"onKeyDown",value:function(e){var t=this.state,n=t.showSuggestions,r=t.selectedSuggestion,o=t.suggestions,c=t.loading;if(n&&o.length&&!c){var i=this.state.suggestions[this.state.selectedSuggestion];switch(e.keyCode){case st.UP:e.stopPropagation(),e.preventDefault();var a=r?r-1:o.length-1;this.setState({selectedSuggestion:a});break;case st.DOWN:e.stopPropagation(),e.preventDefault();var l=null===r||r===o.length-1?0:r+1;this.setState({selectedSuggestion:l});break;case st.TAB:null!==this.state.selectedSuggestion&&(this.selectLink(i),this.props.speak(Object(g.__)("Link selected.")));break;case st.ENTER:null!==this.state.selectedSuggestion&&(e.stopPropagation(),this.selectLink(i))}}else switch(e.keyCode){case st.UP:0!==e.target.selectionStart&&(e.stopPropagation(),e.preventDefault(),e.target.setSelectionRange(0,0));break;case st.DOWN:this.props.value.length!==e.target.selectionStart&&(e.stopPropagation(),e.preventDefault(),e.target.setSelectionRange(this.props.value.length,this.props.value.length))}}},{key:"selectLink",value:function(e){this.props.onChange(e.url,e),this.setState({selectedSuggestion:null,showSuggestions:!1})}},{key:"handleOnClick",value:function(e){this.selectLink(e),this.inputRef.current.focus()}},{key:"render",value:function(){return Object(u.createElement)(u.Fragment,null,this.renderControl(),this.renderSuggestions())}},{key:"renderControl",value:function(){var e=this.props,t=e.label,n=e.className,r=e.isFullWidth,o=e.instanceId,c=e.placeholder,i=void 0===c?Object(g.__)("Paste URL or type to search"):c,a=e.__experimentalRenderControl,l=e.value,s=void 0===l?"":l,d=e.autoFocus,f=void 0===d||d,p=this.state,m=p.loading,v=p.showSuggestions,O=p.selectedSuggestion,j=p.suggestionsListboxId,k=p.suggestionOptionIdPrefix,y={id:"url-input-control-".concat(o),label:t,className:b()("block-editor-url-input",n,{"is-full-width":r})},_={value:s,required:!0,autoFocus:f,className:"block-editor-url-input__input",type:"text",onChange:this.onChange,onFocus:this.onFocus,onInput:nb,placeholder:i,onKeyDown:this.onKeyDown,role:"combobox","aria-label":Object(g.__)("URL"),"aria-expanded":v,"aria-autocomplete":"list","aria-owns":j,"aria-activedescendant":null!==O?"".concat(k,"-").concat(O):void 0,ref:this.inputRef};return a?a(y,_,m):Object(u.createElement)(h.BaseControl,y,Object(u.createElement)("input",_),m&&Object(u.createElement)(h.Spinner,null))}},{key:"renderSuggestions",value:function(){var e=this,t=this.props,n=t.className,r=t.__experimentalRenderSuggestions,o=t.value,c=void 0===o?"":o,i=t.__experimentalShowInitialSuggestions,a=void 0!==i&&i,s=this.state,d=s.showSuggestions,p=s.suggestions,m=s.selectedSuggestion,v=s.suggestionsListboxId,O=s.suggestionOptionIdPrefix,g=s.loading,j={id:v,ref:this.autocompleteRef,role:"listbox"},k=function(t,n){return{role:"option",tabIndex:"-1",id:"".concat(O,"-").concat(n),ref:e.bindSuggestionNode(n),"aria-selected":n===m}};return Object(f.isFunction)(r)&&d&&p.length?r({suggestions:p,selectedSuggestion:m,suggestionsListProps:j,buildSuggestionItemProps:k,isLoading:g,handleSuggestionClick:this.handleOnClick,isInitialSuggestions:a&&!(c&&c.length)}):!Object(f.isFunction)(r)&&d&&p.length?Object(u.createElement)(h.Popover,{position:"bottom",noArrow:!0,focusOnMount:!1},Object(u.createElement)("div",Object(l.a)({},j,{className:b()("block-editor-url-input__suggestions","".concat(n,"__suggestions"))}),p.map((function(t,n){return Object(u.createElement)(h.Button,Object(l.a)({},k(0,n),{key:t.id,className:b()("block-editor-url-input__suggestion",{"is-selected":n===m}),onClick:function(){return e.handleOnClick(t)}}),t.title)})))):null}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.value,r=e.instanceId,o=e.disableSuggestions,c=e.__experimentalShowInitialSuggestions,i=void 0!==c&&c,a=t.showSuggestions,l=n&&n.length;return i||l||(a=!1),!0===o&&(a=!1),{showSuggestions:a,suggestionsListboxId:"block-editor-url-input-suggestions-".concat(r),suggestionOptionIdPrefix:"block-editor-url-input-suggestion-".concat(r)}}}]),n}(u.Component),ob=Object(p.compose)(p.withSafeTimeout,h.withSpokenMessages,p.withInstanceId,Object(v.withSelect)((function(e,t){if(!Object(f.isFunction)(t.__experimentalFetchLinkSuggestions))return{__experimentalFetchLinkSuggestions:(0,e("core/block-editor").getSettings)().__experimentalFetchLinkSuggestions}})))(rb),cb=Object(u.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(u.createElement)(j.Path,{d:"M10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm1-11H9v3H6v2h3v3h2v-3h3V9h-3V6zM10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm1-11H9v3H6v2h3v3h2v-3h3V9h-3V6z"})),ib=function(e){var t,n=e.searchTerm,r=e.onClick,o=e.itemProps,c=e.isSelected,i=e.buttonText;return n?(t=i?Object(f.isFunction)(i)?i(n):i:Object(u.createInterpolateElement)(Object(g.sprintf)(Object(g.__)("Create: %s"),n),{mark:Object(u.createElement)("mark",null)}),Object(u.createElement)(h.Button,Object(l.a)({},o,{className:b()("block-editor-link-control__search-create block-editor-link-control__search-item",{"is-selected":c}),onClick:r}),Object(u.createElement)(so.a,{className:"block-editor-link-control__search-item-icon",icon:cb}),Object(u.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(u.createElement)("span",{className:"block-editor-link-control__search-item-title"},t)))):null},ab=Object(u.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(u.createElement)(j.Path,{d:"M9 0C4.03 0 0 4.03 0 9s4.03 9 9 9 9-4.03 9-9-4.03-9-9-9zM1.11 9.68h2.51c.04.91.167 1.814.38 2.7H1.84c-.403-.85-.65-1.764-.73-2.7zm8.57-5.4V1.19c.964.366 1.756 1.08 2.22 2 .205.347.386.708.54 1.08l-2.76.01zm3.22 1.35c.232.883.37 1.788.41 2.7H9.68v-2.7h3.22zM8.32 1.19v3.09H5.56c.154-.372.335-.733.54-1.08.462-.924 1.255-1.64 2.22-2.01zm0 4.44v2.7H4.7c.04-.912.178-1.817.41-2.7h3.21zm-4.7 2.69H1.11c.08-.936.327-1.85.73-2.7H4c-.213.886-.34 1.79-.38 2.7zM4.7 9.68h3.62v2.7H5.11c-.232-.883-.37-1.788-.41-2.7zm3.63 4v3.09c-.964-.366-1.756-1.08-2.22-2-.205-.347-.386-.708-.54-1.08l2.76-.01zm1.35 3.09v-3.04h2.76c-.154.372-.335.733-.54 1.08-.464.92-1.256 1.634-2.22 2v-.04zm0-4.44v-2.7h3.62c-.04.912-.178 1.817-.41 2.7H9.68zm4.71-2.7h2.51c-.08.936-.327 1.85-.73 2.7H14c.21-.87.337-1.757.38-2.65l.01-.05zm0-1.35c-.046-.894-.176-1.78-.39-2.65h2.16c.403.85.65 1.764.73 2.7l-2.5-.05zm1-4H13.6c-.324-.91-.793-1.76-1.39-2.52 1.244.56 2.325 1.426 3.14 2.52h.04zm-9.6-2.52c-.597.76-1.066 1.61-1.39 2.52H2.65c.815-1.094 1.896-1.96 3.14-2.52zm-3.15 12H4.4c.324.91.793 1.76 1.39 2.52-1.248-.567-2.33-1.445-3.14-2.55l-.01.03zm9.56 2.52c.597-.76 1.066-1.61 1.39-2.52h1.76c-.82 1.08-1.9 1.933-3.14 2.48l-.01.04z"})),lb=function(e){var t=e.itemProps,n=e.suggestion,r=e.isSelected,o=void 0!==r&&r,c=e.onClick,i=e.isURL,a=void 0!==i&&i,s=e.searchTerm,d=void 0===s?"":s,f=e.shouldShowType,p=void 0!==f&&f;return Object(u.createElement)(h.Button,Object(l.a)({},t,{onClick:c,className:b()("block-editor-link-control__search-item",{"is-selected":o,"is-url":a,"is-entity":!a})}),a&&Object(u.createElement)(so.a,{className:"block-editor-link-control__search-item-icon",icon:ab}),Object(u.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(u.createElement)("span",{className:"block-editor-link-control__search-item-title"},Object(u.createElement)(h.TextHighlight,{text:n.title,highlight:d})),Object(u.createElement)("span",{"aria-hidden":!a,className:"block-editor-link-control__search-item-info"},!a&&(Object(Vl.filterURLForDisplay)(Object(Vl.safeDecodeURI)(n.url))||""),a&&Object(g.__)("Press ENTER to add this link"))),p&&n.type&&Object(u.createElement)("span",{className:"block-editor-link-control__search-item-type"},"post_tag"===n.type?"tag":n.type))};function sb(e){var t=e.instanceId,n=e.withCreateSuggestion,r=e.currentInputValue,o=e.handleSuggestionClick,c=e.suggestionsListProps,i=e.buildSuggestionItemProps,a=e.suggestions,s=e.selectedSuggestion,d=e.isLoading,f=e.isInitialSuggestions,p=e.createSuggestionButtonText,m=e.suggestionsQuery,v=b()("block-editor-link-control__search-results",{"is-loading":d}),O=["url","mailto","tel","internal"],j=1===a.length&&O.includes(a[0].type.toLowerCase()),k=n&&!j&&!f,y=!(null==m?void 0:m.type),_="block-editor-link-control-search-results-label-".concat(t),E=f?Object(g.__)("Recently updated"):Object(g.sprintf)(Object(g.__)('Search results for "%s"'),r),C=Object(u.createElement)(f?u.Fragment:h.VisuallyHidden,{},Object(u.createElement)("span",{className:"block-editor-link-control__search-results-label",id:_},E));return Object(u.createElement)("div",{className:"block-editor-link-control__search-results-wrapper"},C,Object(u.createElement)("div",Object(l.a)({},c,{className:v,"aria-labelledby":_}),a.map((function(e,t){return k&&"__CREATE__"===e.type?Object(u.createElement)(ib,{searchTerm:r,buttonText:p,onClick:function(){return o(e)},key:e.type,itemProps:i(e,t),isSelected:t===s}):"__CREATE__"===e.type?null:Object(u.createElement)(lb,{key:"".concat(e.id,"-").concat(e.type),itemProps:i(e,t),suggestion:e,index:t,onClick:function(){o(e)},isSelected:t===s,isURL:O.includes(e.type.toLowerCase()),searchTerm:r,shouldShowType:y})}))))}function ub(e){var t=Object(f.startsWith)(e,"#");return Object(Vl.isURL)(e)||e&&e.includes("www.")||t}function db(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bb(e){for(var t=1;t=1)&&y(Ob(Ob({},Object(f.omit)(c,"id","url")),n),n);case 13:case"end":return e.stop()}}),e,null,[[2,9]])})));return function(t){return e.apply(this,arguments)}}();return Object(u.createElement)("form",{onSubmit:function(e){e.preventDefault(),K(U||{url:n})}},Object(u.createElement)(ob,{className:a,value:n,onChange:function(e,t){j(e),G(t)},placeholder:null!=s?s:Object(g.__)("Search or type url"),__experimentalRenderSuggestions:E?function(e){return w(Ob(Ob({},e),{},{instanceId:V,withCreateSuggestion:b,currentInputValue:n,createSuggestionButtonText:M,suggestionsQuery:D,handleSuggestionClick:function(t){e.handleSuggestionClick&&e.handleSuggestionClick(t),K(t)}}))}:null,__experimentalFetchLinkSuggestions:F,__experimentalHandleURLSuggestions:!0,__experimentalShowInitialSuggestions:T,ref:t}),r)})),jb=hb,kb=Object(h.createSlotFill)("BlockEditorLinkControlViewer"),yb=kb.Slot,_b=kb.Fill;function Eb(e){var t=e.value,n=e.onEditClick,r=t&&Object(Vl.filterURLForDisplay)(Object(Vl.safeDecodeURI)(t.url))||"";return Object(u.createElement)("div",{"aria-label":Object(g.__)("Currently selected"),"aria-selected":"true",className:b()("block-editor-link-control__search-item",{"is-current":!0})},Object(u.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(u.createElement)(h.ExternalLink,{className:"block-editor-link-control__search-item-title",href:t.url},t&&t.title||r),t&&t.title&&Object(u.createElement)("span",{className:"block-editor-link-control__search-item-info"},r)),Object(u.createElement)(h.Button,{isSecondary:!0,onClick:function(){return n()},className:"block-editor-link-control__search-item-action"},Object(g.__)("Edit")),Object(u.createElement)(yb,{fillProps:t}))}var Cb=function(e){var t=!1;return{promise:new Promise((function(n,r){e.then((function(e){return t?r({isCanceled:!0}):n(e)}),(function(e){return r(t?{isCanceled:!0}:e)}))})),cancel:function(){t=!0}}};function wb(e){var t=e.searchInputPlaceholder,n=e.value,r=e.settings,o=e.onChange,c=void 0===o?f.noop:o,i=e.noDirectEntry,a=void 0!==i&&i,l=e.showSuggestions,s=void 0===l||l,d=e.showInitialSuggestions,b=e.forceIsEditingLink,p=e.createSuggestion,m=e.withCreateSuggestion,v=e.inputValue,O=void 0===v?"":v,j=e.suggestionsQuery,k=void 0===j?{}:j,y=e.noURLSuggestion,_=void 0!==y&&y,E=e.createSuggestionButtonText;void 0===m&&p&&(m=!0);var C=Object(u.useRef)(),w=Object(u.useState)(n&&n.url||""),S=Object(re.a)(w,2),I=S[0],B=S[1],x=O||I,P=Object(u.useState)(void 0!==b?b:!n||!n.url),T=Object(re.a)(P,2),N=T[0],D=T[1],R=Object(u.useRef)(!1);Object(u.useEffect)((function(){void 0!==b&&b!==N&&D(b)}),[b]),Object(u.useEffect)((function(){R.current&&C.current&&!C.current.contains(C.current.ownerDocument.activeElement)&&(kr.focus.focusable.find(C.current)[0]||C.current).focus();R.current=!1}),[N]);var A=function(e){var t=Object(u.useRef)(),n=Object(u.useState)(!1),r=Object(re.a)(n,2),o=r[0],c=r[1],i=Object(u.useState)(null),a=Object(re.a)(i,2),l=a[0],s=a[1],d=function(){var n=Object(gr.a)(Or.a.mark((function n(r){return Or.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return c(!0),s(null),n.prev=2,t.current=Cb(Promise.resolve(e(r))),n.next=6,t.current.promise;case 6:return n.abrupt("return",n.sent);case 9:if(n.prev=9,n.t0=n.catch(2),!n.t0||!n.t0.isCanceled){n.next=13;break}return n.abrupt("return");case 13:throw s(n.t0.message||Object(g.__)("An unknown error occurred during creation. Please try again.")),n.t0;case 15:return n.prev=15,c(!1),n.finish(15);case 18:case"end":return n.stop()}}),n,null,[[2,9,15,18]])})));return function(e){return n.apply(this,arguments)}}();return Object(u.useEffect)((function(){return function(){t.current&&t.current.cancel()}}),[]),{createPage:d,isCreatingPage:o,errorMessage:l}}(p),M=A.createPage,L=A.isCreatingPage,F=A.errorMessage;return Object(u.createElement)("div",{tabIndex:-1,ref:C,className:"block-editor-link-control"},L&&Object(u.createElement)("div",{className:"block-editor-link-control__loading"},Object(u.createElement)(h.Spinner,null)," ",Object(g.__)("Creating"),"…"),(N||!n)&&!L&&Object(u.createElement)(u.Fragment,null,Object(u.createElement)("div",{className:"block-editor-link-control__search-input-wrapper"},Object(u.createElement)(jb,{currentLink:n,className:"block-editor-link-control__search-input",placeholder:t,value:x,withCreateSuggestion:m,onCreateSuggestion:M,onChange:B,onSelect:function(e){var t;c(e),R.current=!!(null===(t=C.current)||void 0===t?void 0:t.contains(C.current.ownerDocument.activeElement)),D(!1)},showInitialSuggestions:d,allowDirectEntry:!a,showSuggestions:s,suggestionsQuery:k,withURLSuggestion:!_,createSuggestionButtonText:E},Object(u.createElement)("div",{className:"block-editor-link-control__search-actions"},Object(u.createElement)(h.Button,{type:"submit",label:Object(g.__)("Submit"),icon:$d.a,className:"block-editor-link-control__search-submit"})))),F&&Object(u.createElement)(h.Notice,{className:"block-editor-link-control__search-error",status:"error",isDismissible:!1},F)),n&&!N&&!L&&Object(u.createElement)(Eb,{value:n,onEditClick:function(){return D(!0)}}),Object(u.createElement)(Zd,{value:n,settings:r,onChange:c}))}wb.ViewerFill=_b;var Sb=wb,Ib=n(319),Bb=n(217),xb=Object(h.withFilters)("editor.MediaUpload")((function(){return null}));var Pb=function(e){var t=e.fallback,n=void 0===t?null:t,r=e.children;return Object(v.useSelect)((function(e){return!!(0,e("core/block-editor").getSettings)().mediaUpload}),[])?r:n},Tb=Object(p.compose)([Object(v.withDispatch)((function(e){var t=e("core/notices");return{createNotice:t.createNotice,removeNotice:t.removeNotice}})),Object(h.withFilters)("editor.MediaReplaceFlow")])((function(e){var t=e.mediaURL,n=e.mediaId,r=e.allowedTypes,o=e.accept,c=e.onSelect,i=e.onSelectURL,a=e.onFilesUpload,l=void 0===a?f.noop:a,s=e.name,d=void 0===s?Object(g.__)("Replace"):s,b=e.createNotice,p=e.removeNotice,m=Object(u.useState)(t),O=Object(re.a)(m,2),j=O[0],k=O[1],y=Object(v.useSelect)((function(e){return e("core/block-editor").getSettings().mediaUpload}),[]),_=Object(u.createRef)(),E=Object(f.uniqueId)("block-editor/media-replace-flow/error-notice/"),C=function(e){var t=document.createElement("div");t.innerHTML=Object(u.renderToString)(e);var n=t.textContent||t.innerText||"";setTimeout((function(){b("error",n,{speak:!0,id:E,isDismissible:!0})}),1e3)},w=function(e){c(e),k(e.url),Object(Le.speak)(Object(g.__)("The media file has been replaced")),p(E)},S=function(e){e.keyCode===st.DOWN&&(e.preventDefault(),e.stopPropagation(),e.target.click())};return Object(u.createElement)(h.Dropdown,{popoverProps:{isAlternate:!0},contentClassName:"block-editor-media-replace-flow__options",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(u.createElement)(h.ToolbarGroup,{className:"media-replace-flow"},Object(u.createElement)(h.ToolbarButton,{ref:_,"aria-expanded":t,"aria-haspopup":"true",onClick:n,onKeyDown:S},d))},renderContent:function(e){e.onClose;return Object(u.createElement)(u.Fragment,null,Object(u.createElement)(h.NavigableMenu,{className:"block-editor-media-replace-flow__media-upload-menu"},Object(u.createElement)(xb,{value:n,onSelect:function(e){return w(e)},allowedTypes:r,render:function(e){var t=e.open;return Object(u.createElement)(h.MenuItem,{icon:Ib.a,onClick:t},Object(g.__)("Open Media Library"))}}),Object(u.createElement)(Pb,null,Object(u.createElement)(h.FormFileUpload,{onChange:function(e){!function(e){var t=e.target.files;l(t);y({allowedTypes:r,filesList:t,onFileChange:function(e){var t=Object(re.a)(e,1)[0];w(t)},onError:C})}(e)},accept:o,render:function(e){var t=e.openFileDialog;return Object(u.createElement)(h.MenuItem,{icon:Bb.a,onClick:function(){t()}},Object(g.__)("Upload"))}}))),i&&Object(u.createElement)("form",{className:"block-editor-media-flow__url-input",onKeyDown:function(e){e.stopPropagation()},onKeyPress:function(e){e.stopPropagation()}},Object(u.createElement)("span",{className:"block-editor-media-replace-flow__image-url-label"},Object(g.__)("Current media URL:")),Object(u.createElement)(Sb,{value:{url:j},settings:[],showSuggestions:!1,onChange:function(e){var t=e.url;k(t),i(t),_.current.focus()}})))}})})),Nb=n(274);function Db(e){var t=e.url,n=e.urlLabel,r=e.className,o=b()(r,"block-editor-url-popover__link-viewer-url");return t?Object(u.createElement)(h.ExternalLink,{className:o,href:t},n||Object(Vl.filterURLForDisplay)(Object(Vl.safeDecodeURI)(t))):Object(u.createElement)("span",{className:o})}function Rb(e){var t=e.additionalControls,n=e.children,r=e.renderSettings,o=e.position,c=void 0===o?"bottom center":o,i=e.focusOnMount,a=void 0===i?"firstElement":i,s=Object(he.a)(e,["additionalControls","children","renderSettings","position","focusOnMount"]),d=Object(u.useState)(!1),b=Object(re.a)(d,2),f=b[0],p=b[1],m=!!r&&f;return Object(u.createElement)(h.Popover,Object(l.a)({className:"block-editor-url-popover",focusOnMount:a,position:c},s),Object(u.createElement)("div",{className:"block-editor-url-popover__input-container"},Object(u.createElement)("div",{className:"block-editor-url-popover__row"},n,!!r&&Object(u.createElement)(h.Button,{className:"block-editor-url-popover__settings-toggle",icon:xr.a,label:Object(g.__)("Link settings"),onClick:function(){p(!f)},"aria-expanded":f})),m&&Object(u.createElement)("div",{className:"block-editor-url-popover__row block-editor-url-popover__settings"},r())),t&&!m&&Object(u.createElement)("div",{className:"block-editor-url-popover__additional-controls"},t))}Rb.LinkEditor=function(e){var t=e.autocompleteRef,n=e.className,r=e.onChangeInputValue,o=e.value,c=Object(he.a)(e,["autocompleteRef","className","onChangeInputValue","value"]);return Object(u.createElement)("form",Object(l.a)({className:b()("block-editor-url-popover__link-editor",n)},c),Object(u.createElement)(ob,{value:o,onChange:r,autocompleteRef:t}),Object(u.createElement)(h.Button,{icon:$d.a,label:Object(g.__)("Apply"),type:"submit"}))},Rb.LinkViewer=function(e){var t=e.className,n=e.linkClassName,r=e.onEditLinkClick,o=e.url,c=e.urlLabel,i=Object(he.a)(e,["className","linkClassName","onEditLinkClick","url","urlLabel"]);return Object(u.createElement)("div",Object(l.a)({className:b()("block-editor-url-popover__link-viewer",t)},i),Object(u.createElement)(Db,{url:o,urlLabel:c,className:n}),r&&Object(u.createElement)(h.Button,{icon:Nb.a,label:Object(g.__)("Edit"),onClick:r}))};var Ab=Rb,Mb=function(e){var t=e.src,n=e.onChange,r=e.onSubmit,o=e.onClose;return Object(u.createElement)(Ab,{onClose:o},Object(u.createElement)("form",{className:"block-editor-media-placeholder__url-input-form",onSubmit:r},Object(u.createElement)("input",{className:"block-editor-media-placeholder__url-input-field",type:"url","aria-label":Object(g.__)("URL"),placeholder:Object(g.__)("Paste or type URL"),onChange:n,value:t}),Object(u.createElement)(h.Button,{className:"block-editor-media-placeholder__url-input-submit-button",icon:$d.a,label:Object(g.__)("Apply"),type:"submit"})))};var Lb=Object(h.withFilters)("editor.MediaPlaceholder")((function(e){var t=e.value,n=void 0===t?{}:t,r=e.allowedTypes,o=e.className,c=e.icon,i=e.labels,a=void 0===i?{}:i,l=e.mediaPreview,s=e.notices,d=e.isAppender,p=e.accept,m=e.addToGallery,O=e.multiple,j=void 0!==O&&O,k=e.dropZoneUIOnly,y=e.disableDropZone,_=e.disableMediaButtons,E=e.onError,C=e.onSelect,w=e.onCancel,S=e.onSelectURL,I=e.onDoubleClick,B=e.onFilesPreUpload,x=void 0===B?f.noop:B,P=e.onHTMLDrop,T=void 0===P?f.noop:P,N=e.children,D=Object(v.useSelect)((function(e){return(0,e("core/block-editor").getSettings)().mediaUpload}),[]),R=Object(u.useState)(""),A=Object(re.a)(R,2),M=A[0],L=A[1],F=Object(u.useState)(!1),V=Object(re.a)(F,2),H=V[0],z=V[1];Object(u.useEffect)((function(){var e;L(null!==(e=null==n?void 0:n.src)&&void 0!==e?e:"")}),[null==n?void 0:n.src]);var U=function(e){L(e.target.value)},G=function(){z(!0)},K=function(){z(!1)},W=function(e){e.preventDefault(),M&&S&&(S(M),K())},q=function(e){var t;if(x(e),j)if(m){var o=[];t=function(e){var t=(null!=n?n:[]).filter((function(e){return e.id?!o.some((function(t){var n=t.id;return Number(n)===Number(e.id)})):!o.some((function(t){var n=t.urlSlug;return e.url.includes(n)}))}));C(t.concat(e)),o=e.map((function(e){var t=e.url.lastIndexOf("."),n=e.url.slice(0,t);return{id:e.id,urlSlug:n}}))}}else t=C;else t=function(e){var t=Object(re.a)(e,1)[0];return C(t)};D({allowedTypes:r,filesList:e,onFileChange:t,onError:E})},$=function(e){q(e.target.files)},Y=function(e,t){var n=a.instructions,i=a.title;if(D||S||(n=Object(g.__)("To edit this block, you need permission to upload media.")),void 0===n||void 0===i){var f=null!=r?r:[],p=Object(re.a)(f,1)[0],m=1===f.length,v=m&&"audio"===p,O=m&&"image"===p,j=m&&"video"===p;void 0===n&&D&&(n=Object(g.__)("Upload a media file or pick one from your media library."),v?n=Object(g.__)("Upload an audio file, pick one from your media library, or add one with a URL."):O?n=Object(g.__)("Upload an image file, pick one from your media library, or add one with a URL."):j&&(n=Object(g.__)("Upload a video file, pick one from your media library, or add one with a URL."))),void 0===i&&(i=Object(g.__)("Media"),v?i=Object(g.__)("Audio"):O?i=Object(g.__)("Image"):j&&(i=Object(g.__)("Video")))}var k=b()("block-editor-media-placeholder",o,{"is-appender":d});return Object(u.createElement)(h.Placeholder,{icon:c,label:i,instructions:n,className:k,notices:s,onClick:t,onDoubleClick:I,preview:l},e,N)},X=function(){return y?null:Object(u.createElement)(h.DropZone,{onFilesDrop:q,onHTMLDrop:T})},Q=function(){return w&&Object(u.createElement)(h.Button,{className:"block-editor-media-placeholder__cancel-button",title:Object(g.__)("Cancel"),isLink:!0,onClick:w},Object(g.__)("Cancel"))},Z=function(){return S&&Object(u.createElement)("div",{className:"block-editor-media-placeholder__url-input-container"},Object(u.createElement)(h.Button,{className:"block-editor-media-placeholder__button",onClick:G,isPressed:H,isTertiary:!0},Object(g.__)("Insert from URL")),H&&Object(u.createElement)(Mb,{src:M,onChange:U,onSubmit:W,onClose:K}))};return k||_?(k&&to()("wp.blockEditor.MediaPlaceholder dropZoneUIOnly prop",{alternative:"disableMediaButtons"}),Object(u.createElement)(Pb,null,X())):Object(u.createElement)(Pb,{fallback:Y(Z())},function(){var e=Object(u.createElement)(xb,{addToGallery:m,gallery:j&&!(!r||0===r.length)&&r.every((function(e){return"image"===e||e.startsWith("image/")})),multiple:j,onSelect:C,allowedTypes:r,value:Array.isArray(n)?n.map((function(e){return e.id})):n.id,render:function(e){var t=e.open;return Object(u.createElement)(h.Button,{isTertiary:!0,onClick:function(e){e.stopPropagation(),t()}},Object(g.__)("Media Library"))}});if(D&&d)return Object(u.createElement)(u.Fragment,null,X(),Object(u.createElement)(h.FormFileUpload,{onChange:$,accept:p,multiple:j,render:function(t){var n=t.openFileDialog,r=Object(u.createElement)(u.Fragment,null,Object(u.createElement)(h.Button,{isPrimary:!0,className:b()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button")},Object(g.__)("Upload")),e,Z(),Q());return Y(r,n)}}));if(D){var t=Object(u.createElement)(u.Fragment,null,X(),Object(u.createElement)(h.FormFileUpload,{isPrimary:!0,className:b()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),onChange:$,accept:p,multiple:j},Object(g.__)("Upload")),e,Z(),Q());return Y(t)}return Y(e)}())})),Fb=Object(u.forwardRef)((function(e,t){return Object(u.createElement)(dd,Object(l.a)({ref:t},e,{__unstableDisableFormats:!0,preserveWhiteSpace:!0}))}));Fb.Content=function(e){var t=e.value,n=void 0===t?"":t,r=e.tagName,o=void 0===r?"div":r,c=Object(he.a)(e,["value","tagName"]);return Object(u.createElement)(o,c,n)};var Vb=Fb,Hb=Object(u.forwardRef)((function(e,t){var n=e.__experimentalVersion,r=Object(he.a)(e,["__experimentalVersion"]);if(2===n)return Object(u.createElement)(Vb,Object(l.a)({ref:t},r));var o=r.className,c=r.onChange,i=Object(he.a)(r,["className","onChange"]);return Object(u.createElement)(Zr.a,Object(l.a)({ref:t,className:b()("block-editor-plain-text",o),onChange:function(e){return c(e.target.value)}},i))}));function zb(e){var t=e.property,n=e.viewport,r=e.desc,o=Object(p.useInstanceId)(zb),c=r||Object(g.sprintf)(Object(g._x)("Controls the %1$s property for %2$s viewports.","Text labelling a interface as controlling a given layout property (eg: margin) for a given screen size."),t,n.label);return Object(u.createElement)(u.Fragment,null,Object(u.createElement)("span",{"aria-describedby":"rbc-desc-".concat(o)},n.label),Object(u.createElement)(h.VisuallyHidden,{as:"span",id:"rbc-desc-".concat(o)},c))}var Ub=function(e){var t=e.title,n=e.property,r=e.toggleLabel,o=e.onIsResponsiveChange,c=e.renderDefaultControl,i=e.renderResponsiveControls,a=e.isResponsive,l=void 0!==a&&a,s=e.defaultLabel,d=void 0===s?{id:"all",label:Object(g.__)("All")}:s,f=e.viewports,p=void 0===f?[{id:"small",label:Object(g.__)("Small screens")},{id:"medium",label:Object(g.__)("Medium screens")},{id:"large",label:Object(g.__)("Large screens")}]:f;if(!t||!n||!c)return null;var m=r||Object(g.sprintf)(Object(g.__)("Use the same %s on all screensizes."),n),v=Object(g.__)("Toggle between using the same value for all screen sizes or using a unique value per screen size."),O=c(Object(u.createElement)(zb,{property:n,viewport:d}),d);return Object(u.createElement)("fieldset",{className:"block-editor-responsive-block-control"},Object(u.createElement)("legend",{className:"block-editor-responsive-block-control__title"},t),Object(u.createElement)("div",{className:"block-editor-responsive-block-control__inner"},Object(u.createElement)(h.ToggleControl,{className:"block-editor-responsive-block-control__toggle",label:m,checked:!l,onChange:o,help:v}),Object(u.createElement)("div",{className:b()("block-editor-responsive-block-control__group",{"is-responsive":l})},!l&&O,l&&(i?i(p):p.map((function(e){return Object(u.createElement)(u.Fragment,{key:e.id},c(Object(u.createElement)(zb,{property:n,viewport:e}),e))}))))))};function Gb(e){var t=e.character,n=e.type,r=e.onUse;return Object(p.useKeyboardShortcut)(st.rawShortcut[n](t),(function(){return r(),!1}),{bindGlobal:!0}),null}function Kb(e){var t,n=e.name,r=e.shortcutType,o=e.shortcutCharacter,c=Object(he.a)(e,["name","shortcutType","shortcutCharacter"]),i="RichText.ToolbarControls";return n&&(i+=".".concat(n)),r&&o&&(t=st.displayShortcut[r](o)),Object(u.createElement)(h.Fill,{name:i},Object(u.createElement)(h.ToolbarButton,Object(l.a)({},c,{shortcut:t})))}function Wb(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object($t.a)(e);if(t){var o=Object($t.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(qt.a)(this,n)}}var qb=function(e){Object(Wt.a)(n,e);var t=Wb(n);function n(){var e;return Object(Ut.a)(this,n),(e=t.apply(this,arguments)).onInput=e.onInput.bind(Object(Kt.a)(e)),e}return Object(Gt.a)(n,[{key:"onInput",value:function(e){e.inputType===this.props.inputType&&this.props.onInput()}},{key:"componentDidMount",value:function(){document.addEventListener("input",this.onInput,!0)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("input",this.onInput,!0)}},{key:"render",value:function(){return null}}]),n}(u.Component),$b=Object(u.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(u.createElement)(h.Path,{d:"M9.4 20.5L5.2 3.8l14.6 9-2 .3c-.2 0-.4.1-.7.1-.9.2-1.6.3-2.2.5-.8.3-1.4.5-1.8.8-.4.3-.8.8-1.3 1.5-.4.5-.8 1.2-1.2 2l-.3.6-.9 1.9zM7.6 7.1l2.4 9.3c.2-.4.5-.8.7-1.1.6-.8 1.1-1.4 1.6-1.8.5-.4 1.3-.8 2.2-1.1l1.2-.3-8.1-5z"}));var Yb=Object(u.forwardRef)((function(e,t){var n=Object(v.useSelect)((function(e){return e("core/block-editor").isNavigationMode()}),[]),r=Object(v.useDispatch)("core/block-editor").setNavigationMode,o=function(e){r("edit"!==e)};return Object(u.createElement)(h.Dropdown,{renderToggle:function(r){var o=r.isOpen,c=r.onToggle;return Object(u.createElement)(h.Button,Object(l.a)({},e,{ref:t,icon:n?$b:Nb.a,"aria-expanded":o,"aria-haspopup":"true",onClick:c,label:Object(g.__)("Modes")}))},position:"bottom right",renderContent:function(){return Object(u.createElement)(u.Fragment,null,Object(u.createElement)(h.NavigableMenu,{role:"menu","aria-label":Object(g.__)("Modes")},Object(u.createElement)(h.MenuItemsChoice,{value:n?"select":"edit",onSelect:o,choices:[{value:"edit",label:Object(u.createElement)(u.Fragment,null,Object(u.createElement)(so.a,{icon:Nb.a}),Object(g.__)("Edit"))},{value:"select",label:Object(u.createElement)(u.Fragment,null,$b,Object(g.__)("Select"))}]})),Object(u.createElement)("div",{className:"block-editor-tool-selector__help"},Object(g.__)("Tools offer different interactions for block selection & editing. To select, press Escape, to go back to editing, press Enter.")))}})})),Xb=n(186),Qb=Object(u.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(j.Path,{d:"M9.737 18.011L3.98 12.255l5.734-6.28 1.107 1.012-4.103 4.494h13.3v1.5H6.828l3.97 3.97-1.06 1.06z"}));function Zb(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object($t.a)(e);if(t){var o=Object($t.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(qt.a)(this,n)}}var Jb=function(e){Object(Wt.a)(n,e);var t=Zb(n);function n(){var e;return Object(Ut.a)(this,n),(e=t.apply(this,arguments)).toggle=e.toggle.bind(Object(Kt.a)(e)),e.submitLink=e.submitLink.bind(Object(Kt.a)(e)),e.state={expanded:!1},e}return Object(Gt.a)(n,[{key:"toggle",value:function(){this.setState({expanded:!this.state.expanded})}},{key:"submitLink",value:function(e){e.preventDefault(),this.toggle()}},{key:"render",value:function(){var e=this.props,t=e.url,n=e.onChange,r=this.state.expanded,o=t?Object(g.__)("Edit link"):Object(g.__)("Insert link");return Object(u.createElement)("div",{className:"block-editor-url-input__button"},Object(u.createElement)(h.Button,{icon:Xb.a,label:o,onClick:this.toggle,className:"components-toolbar__control",isPressed:!!t}),r&&Object(u.createElement)("form",{className:"block-editor-url-input__button-modal",onSubmit:this.submitLink},Object(u.createElement)("div",{className:"block-editor-url-input__button-modal-line"},Object(u.createElement)(h.Button,{className:"block-editor-url-input__back",icon:Qb,label:Object(g.__)("Close"),onClick:this.toggle}),Object(u.createElement)(ob,{value:t||"",onChange:n}),Object(u.createElement)(h.Button,{icon:$d.a,label:Object(g.__)("Submit"),type:"submit"}))))}}]),n}(u.Component),ef=n(160),tf=["noreferrer","noopener"],nf=Object(u.createElement)(h.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(u.createElement)(h.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(u.createElement)(h.Path,{d:"m19 5v14h-14v-14h14m0-2h-14c-1.1 0-2 0.9-2 2v14c0 1.1 0.9 2 2 2h14c1.1 0 2-0.9 2-2v-14c0-1.1-0.9-2-2-2z"}),Object(u.createElement)(h.Path,{d:"m14.14 11.86l-3 3.87-2.14-2.59-3 3.86h12l-3.86-5.14z"})),rf=function(e){var t=e.linkDestination,n=e.onChangeUrl,r=e.url,o=e.mediaType,c=void 0===o?"image":o,i=e.mediaUrl,a=e.mediaLink,l=e.linkTarget,s=e.linkClass,d=e.rel,b=Object(u.useState)(!1),p=Object(re.a)(b,2),m=p[0],v=p[1],O=Object(u.useCallback)((function(){v(!0)})),j=Object(u.useState)(!1),k=Object(re.a)(j,2),y=k[0],_=k[1],E=Object(u.useState)(null),C=Object(re.a)(E,2),w=C[0],S=C[1],I=Object(u.useRef)(null),B=function(e){e.stopPropagation()},x=function(e){[st.LEFT,st.DOWN,st.RIGHT,st.UP,st.BACKSPACE,st.ENTER].indexOf(e.keyCode)>-1&&e.stopPropagation()},P=Object(u.useCallback)((function(){"media"!==t&&"attachment"!==t||S(""),_(!0)})),T=Object(u.useCallback)((function(){_(!1)})),N=Object(u.useCallback)((function(){S(null),T(),v(!1)})),D=function(e){var t=e;return void 0===e||Object(f.isEmpty)(t)||Object(f.isEmpty)(t)||(Object(f.each)(tf,(function(e){var n=new RegExp("\\b"+e+"\\b","gi");t=t.replace(n,"")})),t!==e&&(t=t.trim()),Object(f.isEmpty)(t)&&(t=void 0)),t},R=Object(u.useCallback)((function(){return function(e){var t=I.current;t&&t.contains(e.target)||(v(!1),S(null),T())}})),A=Object(u.useCallback)((function(){return function(e){w&&n({href:w}),T(),S(null),e.preventDefault()}})),M=Object(u.useCallback)((function(){n({linkDestination:"none",href:""})})),L=function(){var e=[{linkDestination:"media",title:Object(g.__)("Media File"),url:"image"===c?i:void 0,icon:nf}];return"image"===c&&a&&e.push({linkDestination:"attachment",title:Object(g.__)("Attachment Page"),url:"image"===c?a:void 0,icon:Object(u.createElement)(h.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(u.createElement)(h.Path,{d:"M0 0h24v24H0V0z",fill:"none"}),Object(u.createElement)(h.Path,{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zM6 20V4h7v5h5v11H6z"}))}),e},F=Object(u.createElement)(u.Fragment,null,Object(u.createElement)(h.ToggleControl,{label:Object(g.__)("Open in new tab"),onChange:function(e){var t=function(e){var t=e?"_blank":void 0;return{linkTarget:t,rel:t||d?D(d):void 0}}(e);n(t)},checked:"_blank"===l}),Object(u.createElement)(h.TextControl,{label:Object(g.__)("Link Rel"),value:D(d)||"",onChange:function(e){n({rel:e})},onKeyPress:B,onKeyDown:x}),Object(u.createElement)(h.TextControl,{label:Object(g.__)("Link CSS Class"),value:s||"",onKeyPress:B,onKeyDown:x,onChange:function(e){n({linkClass:e})}})),V=null!==w?w:r,H=(Object(f.find)(L(),["linkDestination",t])||{}).title;return Object(u.createElement)(u.Fragment,null,Object(u.createElement)(h.ToolbarButton,{icon:Xb.a,className:"components-toolbar__control",label:r?Object(g.__)("Edit link"):Object(g.__)("Insert link"),"aria-expanded":m,onClick:O}),m&&Object(u.createElement)(Ab,{onFocusOutside:R(),onClose:N,renderSettings:function(){return F},additionalControls:!V&&Object(u.createElement)(h.NavigableMenu,null,Object(f.map)(L(),(function(e){return Object(u.createElement)(h.MenuItem,{key:e.linkDestination,icon:e.icon,onClick:function(){var t,r,o;S(null),t=e.url,o=L(),r=t?(Object(f.find)(o,(function(e){return e.url===t}))||{linkDestination:"custom"}).linkDestination:"none",n({linkDestination:r,href:t}),T()}},e.title)})))},(!r||y)&&Object(u.createElement)(Ab.LinkEditor,{className:"block-editor-format-toolbar__link-container-content",value:V,onChangeInputValue:S,onKeyDown:x,onKeyPress:B,onSubmit:A(),autocompleteRef:I}),r&&!y&&Object(u.createElement)(u.Fragment,null,Object(u.createElement)(Ab.LinkViewer,{className:"block-editor-format-toolbar__link-container-content",onKeyPress:B,url:r,onEditLinkClick:P,urlLabel:H}),Object(u.createElement)(h.Button,{icon:ef.a,label:Object(g.__)("Remove link"),onClick:M}))))},of=n(161);function cf(e){var t=e.children,n=e.className,r=e.isEnabled,o=void 0===r||r,c=e.deviceType,i=e.setDeviceType;if(Object(p.useViewportMatch)("small","<"))return null;var a={className:b()(n,"block-editor-post-preview__dropdown-content"),position:"bottom left"},l={isTertiary:!0,className:"block-editor-post-preview__button-toggle",disabled:!o,children:Object(g.__)("Preview")};return Object(u.createElement)(h.DropdownMenu,{className:"block-editor-post-preview__dropdown",popoverProps:a,toggleProps:l,icon:null},(function(){return Object(u.createElement)(u.Fragment,null,Object(u.createElement)(h.MenuGroup,null,Object(u.createElement)(h.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:function(){return i("Desktop")},icon:"Desktop"===c&&of.a},Object(g.__)("Desktop")),Object(u.createElement)(h.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:function(){return i("Tablet")},icon:"Tablet"===c&&of.a},Object(g.__)("Tablet")),Object(u.createElement)(h.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:function(){return i("Mobile")},icon:"Mobile"===c&&of.a},Object(g.__)("Mobile"))),t)}))}var af=n(280),lf=/\((min|max)-width:[^\(]*?\)/g;function sf(e){return!!e.media&&!!e.media.mediaText.match(lf)}function uf(e,t,n){e.deleteRule(n),e.insertRule(t,n)}function df(e,t){return e.replace(lf,(function(e){return Object(af.match)(e,{type:"screen",width:t})?"(min-width:0px)":"(min-width:999999px)"}))}function bf(e,t){Object(u.useEffect)((function(){if(t){var n,r,o,c="undefined"==typeof window?[]:Object(f.filter)(null!==(n=null===(r=window)||void 0===r||null===(o=r.document)||void 0===o?void 0:o.styleSheets)&&void 0!==n?n:[],(function(e){return!!e.href&&Object(Vl.getProtocol)(e.href)===window.location.protocol&&Object(Vl.getAuthority)(e.href)===window.location.host})),i=[];return c.forEach((function(n,r){for(var o=!1,c=0;c0,selectedBlockName:l,selectedBlockClientId:a,blockType:s}}))((function(e){var t=e.blockType,n=e.count,r=e.hasBlockStyles,o=e.selectedBlockClientId,i=e.selectedBlockName,a=e.showNoBlockSelectedMessage,l=void 0===a||a,s=e.bubblesVirtually,d=void 0===s||s;if(n>1)return Object(u.createElement)("div",{className:"block-editor-block-inspector"},Object(u.createElement)(vf,null),Object(u.createElement)(We.Slot,{bubblesVirtually:d}));var b=i===Object(c.getUnregisteredTypeHandlerName)();return t&&o&&!b?Object(u.createElement)("div",{className:"block-editor-block-inspector"},Object(u.createElement)(fo,{blockType:t}),r&&Object(u.createElement)("div",null,Object(u.createElement)(h.PanelBody,{title:Object(g.__)("Styles")},Object(u.createElement)(Ss,{clientId:o}),Object(c.hasBlockSupport)(t.name,"defaultStylePicker",!0)&&Object(u.createElement)(Of,{blockName:t.name}))),Object(u.createElement)(We.Slot,{bubblesVirtually:d}),Object(u.createElement)("div",null,Object(u.createElement)(gf,{slotName:q.slotName,bubblesVirtually:d})),Object(u.createElement)(pf,{key:"back"})):l?Object(u.createElement)("span",{className:"block-editor-block-inspector__no-blocks"},Object(g.__)("No block selected.")):null}));function jf(e){var t,n,r=(t=Object(v.useSelect)((function(e){var t=e("core/block-editor"),n=t.hasSelectedBlock,r=t.hasMultiSelection;return n()||r()})),n=Object(v.useDispatch)("core/block-editor").clearSelectedBlock,function(e){e.target===e.currentTarget&&t&&n()});return Object(u.createElement)("div",Object(l.a)({tabIndex:-1,onFocus:r},e))}var kf=n(281),yf=n.n(kf),_f=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Ef=function(e,t){t=t||{};var n=1,r=1;function o(e){var t=e.match(/\n/g);t&&(n+=t.length);var o=e.lastIndexOf("\n");r=~o?e.length-o:r+e.length}function c(){var e={line:n,column:r};return function(t){return t.position=new i(e),f(),t}}function i(e){this.start=e,this.end={line:n,column:r},this.source=t.source}i.prototype.content=e;var a=[];function l(o){var c=new Error(t.source+":"+n+":"+r+": "+o);if(c.reason=o,c.filename=t.source,c.line=n,c.column=r,c.source=e,!t.silent)throw c;a.push(c)}function s(){return b(/^{\s*/)}function u(){return b(/^}/)}function d(){var t,n=[];for(f(),p(n);e.length&&"}"!==e.charAt(0)&&(t=C()||w());)!1!==t&&(n.push(t),p(n));return n}function b(t){var n=t.exec(e);if(n){var r=n[0];return o(r),e=e.slice(r.length),n}}function f(){b(/^\s*/)}function p(e){var t;for(e=e||[];t=m();)!1!==t&&e.push(t);return e}function m(){var t=c();if("/"===e.charAt(0)&&"*"===e.charAt(1)){for(var n=2;""!==e.charAt(n)&&("*"!==e.charAt(n)||"/"!==e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return l("End of comment missing");var i=e.slice(2,n-2);return r+=2,o(i),e=e.slice(n),r+=2,t({type:"comment",comment:i})}}function v(){var e=b(/^([^{]+)/);if(e)return Cf(e[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,(function(e){return e.replace(/,/g,"‌")})).split(/\s*(?![^(]*\)),\s*/).map((function(e){return e.replace(/\u200C/g,",")}))}function O(){var e=c(),t=b(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(t){if(t=Cf(t[0]),!b(/^:\s*/))return l("property missing ':'");var n=b(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),r=e({type:"declaration",property:t.replace(_f,""),value:n?Cf(n[0]).replace(_f,""):""});return b(/^[;\s]*/),r}}function g(){var e,t=[];if(!s())return l("missing '{'");for(p(t);e=O();)!1!==e&&(t.push(e),p(t));return u()?t:l("missing '}'")}function h(){for(var e,t=[],n=c();e=b(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),b(/^,\s*/);if(t.length)return n({type:"keyframe",values:t,declarations:g()})}var j,k=E("import"),y=E("charset"),_=E("namespace");function E(e){var t=new RegExp("^@"+e+"\\s*([^;]+);");return function(){var n=c(),r=b(t);if(r){var o={type:e};return o[e]=r[1].trim(),n(o)}}}function C(){if("@"===e[0])return function(){var e=c(),t=b(/^@([-\w]+)?keyframes\s*/);if(t){var n=t[1];if(!(t=b(/^([-\w]+)\s*/)))return l("@keyframes missing name");var r,o=t[1];if(!s())return l("@keyframes missing '{'");for(var i=p();r=h();)i.push(r),i=i.concat(p());return u()?e({type:"keyframes",name:o,vendor:n,keyframes:i}):l("@keyframes missing '}'")}}()||function(){var e=c(),t=b(/^@media *([^{]+)/);if(t){var n=Cf(t[1]);if(!s())return l("@media missing '{'");var r=p().concat(d());return u()?e({type:"media",media:n,rules:r}):l("@media missing '}'")}}()||function(){var e=c(),t=b(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(t)return e({type:"custom-media",name:Cf(t[1]),media:Cf(t[2])})}()||function(){var e=c(),t=b(/^@supports *([^{]+)/);if(t){var n=Cf(t[1]);if(!s())return l("@supports missing '{'");var r=p().concat(d());return u()?e({type:"supports",supports:n,rules:r}):l("@supports missing '}'")}}()||k()||y()||_()||function(){var e=c(),t=b(/^@([-\w]+)?document *([^{]+)/);if(t){var n=Cf(t[1]),r=Cf(t[2]);if(!s())return l("@document missing '{'");var o=p().concat(d());return u()?e({type:"document",document:r,vendor:n,rules:o}):l("@document missing '}'")}}()||function(){var e=c();if(b(/^@page */)){var t=v()||[];if(!s())return l("@page missing '{'");for(var n,r=p();n=O();)r.push(n),r=r.concat(p());return u()?e({type:"page",selectors:t,declarations:r}):l("@page missing '}'")}}()||function(){var e=c();if(b(/^@host\s*/)){if(!s())return l("@host missing '{'");var t=p().concat(d());return u()?e({type:"host",rules:t}):l("@host missing '}'")}}()||function(){var e=c();if(b(/^@font-face\s*/)){if(!s())return l("@font-face missing '{'");for(var t,n=p();t=O();)n.push(t),n=n.concat(p());return u()?e({type:"font-face",declarations:n}):l("@font-face missing '}'")}}()}function w(){var e=c(),t=v();return t?(p(),e({type:"rule",selectors:t,declarations:g()})):l("selector missing")}return function e(t,n){var r=t&&"string"==typeof t.type,o=r?t:n;for(var c in t){var i=t[c];Array.isArray(i)?i.forEach((function(t){e(t,o)})):i&&"object"===Object(Ro.a)(i)&&e(i,o)}r&&Object.defineProperty(t,"parent",{configurable:!0,writable:!0,enumerable:!1,value:n||null});return t}((j=d(),{type:"stylesheet",stylesheet:{source:t.source,rules:j,parsingErrors:a}}))};function Cf(e){return e?e.replace(/^\s+|\s+$/g,""):""}var wf=n(171),Sf=n.n(wf),If=Bf;function Bf(e){this.options=e||{}}Bf.prototype.emit=function(e){return e},Bf.prototype.visit=function(e){return this[e.type](e)},Bf.prototype.mapVisit=function(e,t){var n="";t=t||"";for(var r=0,o=e.length;r1&&void 0!==arguments[1]?arguments[1]:[];return function(n){return"rule"===n.type?Hf(Hf({},n),{},{selectors:n.selectors.map((function(n){return t.includes(n.trim())?n:n.match(zf)?n.replace(/^(body|html|:root)/,e):e+" "+n}))}):n}},Gf=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object(f.map)(e,(function(e){var n=e.css,r=e.baseURL,o=[];return t&&o.push(Uf(t)),r&&o.push(Ff(r)),o.length?Df(n,Object(p.compose)(o)):n}))};var Kf=function(e){var t=e.styles;return Object(u.useEffect)((function(){var e=Gf(t,".editor-styles-wrapper"),n=Object(f.map)(Object(f.compact)(e),(function(e){var t=document.createElement("style");return t.innerHTML=e,document.body.appendChild(t),t}));return function(){return n.forEach((function(e){return document.body.removeChild(e)}))}}),[t]),null};var Wf=function(e){var t=e.rootClientId,n=e.clientId,r=e.isAppender,o=e.showInserterHelpPanel,c=e.showMostUsedBlocks,i=void 0!==c&&c,a=e.__experimentalSelectBlockOnInsert,l=e.__experimentalInsertionIndex,s=e.onSelect,d=void 0===s?f.noop:s,b=Object(v.useSelect)((function(e){var r=e("core/block-editor").getBlockRootClientId;return t||r(n)||void 0}),[n,t]);return Object(u.createElement)(Xl,{onSelect:d,rootClientId:b,clientId:n,isAppender:r,showInserterHelpPanel:o,showMostUsedBlocks:i,__experimentalSelectBlockOnInsert:a,__experimentalInsertionIndex:l})};function qf(){var e=Object(v.useSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientIds,r=t.getBlockOrder,o=t.getBlockRootClientId,c=n(),i=Object(re.a)(c,1)[0];return{clientIds:c,rootBlocksClientIds:r(),rootClientId:o(i)}}),[]),t=e.clientIds,n=e.rootBlocksClientIds,r=e.rootClientId,o=Object(v.useDispatch)("core/block-editor"),c=o.duplicateBlocks,i=o.removeBlocks,l=o.insertAfterBlock,s=o.insertBeforeBlock,d=o.multiSelect,b=o.clearSelectedBlock,p=o.moveBlocksUp,m=o.moveBlocksDown;return Object(a.useShortcut)("core/block-editor/move-up",Object(u.useCallback)((function(e){e.preventDefault(),p(t,r)}),[t,p]),{bindGlobal:!0,isDisabled:0===t.length}),Object(a.useShortcut)("core/block-editor/move-down",Object(u.useCallback)((function(e){e.preventDefault(),m(t,r)}),[t,m]),{bindGlobal:!0,isDisabled:0===t.length}),Object(a.useShortcut)("core/block-editor/duplicate",Object(u.useCallback)((function(e){e.preventDefault(),c(t)}),[t,c]),{bindGlobal:!0,isDisabled:0===t.length}),Object(a.useShortcut)("core/block-editor/remove",Object(u.useCallback)((function(e){e.preventDefault(),i(t)}),[t,i]),{bindGlobal:!0,isDisabled:0===t.length}),Object(a.useShortcut)("core/block-editor/insert-after",Object(u.useCallback)((function(e){e.preventDefault(),l(Object(f.last)(t))}),[t,l]),{bindGlobal:!0,isDisabled:0===t.length}),Object(a.useShortcut)("core/block-editor/insert-before",Object(u.useCallback)((function(e){e.preventDefault(),s(Object(f.first)(t))}),[t,s]),{bindGlobal:!0,isDisabled:0===t.length}),Object(a.useShortcut)("core/block-editor/delete-multi-selection",Object(u.useCallback)((function(e){e.preventDefault(),i(t)}),[t,i]),{isDisabled:t.length<2}),Object(a.useShortcut)("core/block-editor/select-all",Object(u.useCallback)((function(e){e.preventDefault(),d(Object(f.first)(n),Object(f.last)(n))}),[n,d])),Object(a.useShortcut)("core/block-editor/unselect",Object(u.useCallback)((function(e){e.preventDefault(),b(),e.target.ownerDocument.defaultView.getSelection().removeAllRanges()}),[t,b]),{isDisabled:t.length<2}),null}qf.Register=function(){var e=Object(v.useDispatch)("core/keyboard-shortcuts").registerShortcut;return Object(u.useEffect)((function(){e({name:"core/block-editor/duplicate",category:"block",description:Object(g.__)("Duplicate the selected block(s)."),keyCombination:{modifier:"primaryShift",character:"d"}}),e({name:"core/block-editor/remove",category:"block",description:Object(g.__)("Remove the selected block(s)."),keyCombination:{modifier:"access",character:"z"}}),e({name:"core/block-editor/insert-before",category:"block",description:Object(g.__)("Insert a new block before the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"t"}}),e({name:"core/block-editor/insert-after",category:"block",description:Object(g.__)("Insert a new block after the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"y"}}),e({name:"core/block-editor/delete-multi-selection",category:"block",description:Object(g.__)("Remove multiple selected blocks."),keyCombination:{character:"del"},aliases:[{character:"backspace"}]}),e({name:"core/block-editor/select-all",category:"selection",description:Object(g.__)("Select all text when typing. Press again to select all blocks."),keyCombination:{modifier:"primary",character:"a"}}),e({name:"core/block-editor/unselect",category:"selection",description:Object(g.__)("Clear selection."),keyCombination:{character:"escape"}}),e({name:"core/block-editor/focus-toolbar",category:"global",description:Object(g.__)("Navigate to the nearest toolbar."),keyCombination:{modifier:"alt",character:"F10"}}),e({name:"core/block-editor/move-up",category:"block",description:Object(g.__)("Move the selected block(s) up."),keyCombination:{modifier:"secondary",character:"t"}}),e({name:"core/block-editor/move-down",category:"block",description:Object(g.__)("Move the selected block(s) down."),keyCombination:{modifier:"secondary",character:"y"}})}),[e]),null};var $f=qf;function Yf(){var e=Object(v.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockSelectionEnd,r=t.hasMultiSelection,o=t.isMultiSelecting;return{selectionEnd:n(),isMultiSelection:r(),isMultiSelecting:o()}}),[]),t=e.isMultiSelection,n=e.selectionEnd,r=e.isMultiSelecting;return Object(u.useEffect)((function(){if(n&&!r&&t){var e=qe(n);if(e){var o=Object(kr.getScrollContainer)(e);o&&eb()(e,o,{onlyScrollIfNeeded:!0})}}}),[t,n,r]),null}var Xf=[st.UP,st.RIGHT,st.DOWN,st.LEFT,st.ENTER,st.BACKSPACE];var Qf=Object(p.withSafeTimeout)((function(e){var t=e.children,n=e.setTimeout,r=Object(u.useRef)(),o=Object(u.useRef)(),c=Object(v.useSelect)((function(e){return e("core/block-editor").isTyping()})),i=Object(v.useDispatch)("core/block-editor"),a=i.startTyping,l=i.stopTyping;function s(e){var t=e?"addEventListener":"removeEventListener";r.current.ownerDocument[t]("selectionchange",b),r.current.ownerDocument[t]("mousemove",d),document[t]("mousemove",d)}function d(e){var t=e.clientX,n=e.clientY;if(o.current){var r=o.current,c=r.clientX,i=r.clientY;c===t&&i===n||l()}o.current={clientX:t,clientY:n}}function b(e){var t=e.target.defaultView.getSelection();t.rangeCount>0&&t.getRangeAt(0).collapsed||l()}function p(e){var t=e.type,n=e.target;!c&&Object(kr.isTextField)(n)&&r.current.contains(n)&&("keydown"!==t||function(e){var t=e.keyCode;return!e.shiftKey&&Xf.includes(t)}(e))&&a()}return Object(u.useEffect)((function(){return s(c),function(){return s(!1)}}),[c]),Object(u.createElement)("div",{ref:r,onFocus:function(e){var t=e.target;n((function(){c&&!Object(kr.isTextField)(t)&&l()}))},onKeyPress:p,onKeyDown:Object(f.over)([p,function(e){!c||e.keyCode!==st.ESCAPE&&e.keyCode!==st.TAB||l()}])},t)}));function Zf(){return to()("PreserveScrollInReorder component",{hint:"This behavior is now built-in the block list"}),null}function Jf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object($t.a)(e);if(t){var o=Object($t.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(qt.a)(this,n)}}var ep=-1!==window.navigator.userAgent.indexOf("Trident"),tp=new Set([st.UP,st.DOWN,st.LEFT,st.RIGHT]),np=function(e){Object(Wt.a)(n,e);var t=Jf(n);function n(){var e;return Object(Ut.a)(this,n),(e=t.apply(this,arguments)).ref=Object(u.createRef)(),e.onKeyDown=e.onKeyDown.bind(Object(Kt.a)(e)),e.addSelectionChangeListener=e.addSelectionChangeListener.bind(Object(Kt.a)(e)),e.computeCaretRectOnSelectionChange=e.computeCaretRectOnSelectionChange.bind(Object(Kt.a)(e)),e.maintainCaretPosition=e.maintainCaretPosition.bind(Object(Kt.a)(e)),e.computeCaretRect=e.computeCaretRect.bind(Object(Kt.a)(e)),e.onScrollResize=e.onScrollResize.bind(Object(Kt.a)(e)),e.isSelectionEligibleForScroll=e.isSelectionEligibleForScroll.bind(Object(Kt.a)(e)),e.getDocument=e.getDocument.bind(Object(Kt.a)(e)),e.getWindow=e.getWindow.bind(Object(Kt.a)(e)),e}return Object(Gt.a)(n,[{key:"componentDidMount",value:function(){this.getWindow().addEventListener("scroll",this.onScrollResize,!0),this.getWindow().addEventListener("resize",this.onScrollResize,!0)}},{key:"componentWillUnmount",value:function(){this.getWindow().removeEventListener("scroll",this.onScrollResize,!0),this.getWindow().removeEventListener("resize",this.onScrollResize,!0),this.getDocument().removeEventListener("selectionchange",this.computeCaretRectOnSelectionChange),this.onScrollResize.rafId&&this.getWindow().cancelAnimationFrame(this.onScrollResize.rafId),this.onKeyDown.rafId&&this.getWindow().cancelAnimationFrame(this.onKeyDown.rafId)}},{key:"getDocument",value:function(){return this.ref.current.ownerDocument}},{key:"getWindow",value:function(){return this.getDocument().defaultView}},{key:"computeCaretRect",value:function(){this.isSelectionEligibleForScroll()&&(this.caretRect=Object(kr.computeCaretRect)(this.getWindow()))}},{key:"computeCaretRectOnSelectionChange",value:function(){this.getDocument().removeEventListener("selectionchange",this.computeCaretRectOnSelectionChange),this.computeCaretRect()}},{key:"onScrollResize",value:function(){var e=this;this.onScrollResize.rafId||(this.onScrollResize.rafId=this.getWindow().requestAnimationFrame((function(){e.computeCaretRect(),delete e.onScrollResize.rafId})))}},{key:"isSelectionEligibleForScroll",value:function(){return this.props.selectedBlockClientId&&this.ref.current.contains(this.getDocument().activeElement)&&this.getDocument().activeElement.isContentEditable}},{key:"isLastEditableNode",value:function(){var e=this.ref.current.querySelectorAll('[contenteditable="true"]');return e[e.length-1]===this.getDocument().activeElement}},{key:"maintainCaretPosition",value:function(e){var t=e.keyCode;if(this.isSelectionEligibleForScroll()){var n=Object(kr.computeCaretRect)(this.getWindow());if(n)if(this.caretRect)if(tp.has(t))this.caretRect=n;else{var r=n.top-this.caretRect.top;if(0!==r){var o=Object(kr.getScrollContainer)(this.ref.current);if(o){var c=o===this.getDocument().body,i=c?this.getWindow().scrollY:o.scrollTop,a=c?0:o.getBoundingClientRect().top,l=c?this.caretRect.top/this.getWindow().innerHeight:(this.caretRect.top-a)/(this.getWindow().innerHeight-a);if(0===i&&l<.75&&this.isLastEditableNode())this.caretRect=n;else{var s=c?this.getWindow().innerHeight:o.clientHeight;this.caretRect.top+this.caretRect.height>a+s||this.caretRect.top} IconProps */ +/** @typedef {{icon: JSX.Element, size?: number} & import('@wordpress/primitives').SVGProps} IconProps */ /** * Return an SVG icon. @@ -391,7 +390,32 @@ function Icon(_ref) { /***/ }), -/***/ 15: +/***/ 159: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); + + +/** + * WordPress dependencies + */ + +var closeSmall = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["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" +})); +/* harmony default export */ __webpack_exports__["a"] = (closeSmall); + + +/***/ }), + +/***/ 16: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -406,7 +430,7 @@ function _assertThisInitialized(self) { /***/ }), -/***/ 158: +/***/ 161: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -434,20 +458,6 @@ var check = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElemen /***/ 17: /***/ (function(module, __webpack_exports__, __webpack_require__) { -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _getPrototypeOf; }); -function _getPrototypeOf(o) { - _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { - return o.__proto__ || Object.getPrototypeOf(o); - }; - return _getPrototypeOf(o); -} - -/***/ }), - -/***/ 18: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - "use strict"; // EXPORTS @@ -482,32 +492,14 @@ function _toConsumableArray(arr) { /***/ }), -/***/ 181: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); - - -/** - * WordPress dependencies - */ - -var closeSmall = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" -}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["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" -})); -/* harmony default export */ __webpack_exports__["a"] = (closeSmall); +/***/ 18: +/***/ (function(module, exports) { +(function() { module.exports = this["wp"]["keycodes"]; }()); /***/ }), -/***/ 184: +/***/ 186: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -533,9 +525,16 @@ var link = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement /***/ }), /***/ 19: -/***/ (function(module, exports) { +/***/ (function(module, __webpack_exports__, __webpack_require__) { -(function() { module.exports = this["wp"]["keycodes"]; }()); +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _getPrototypeOf; }); +function _getPrototypeOf(o) { + _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }; + return _getPrototypeOf(o); +} /***/ }), @@ -547,25 +546,9 @@ var link = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement /***/ }), /***/ 20: -/***/ (function(module, __webpack_exports__, __webpack_require__) { +/***/ (function(module, exports) { -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _createClass; }); -function _defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, descriptor.key, descriptor); - } -} - -function _createClass(Constructor, protoProps, staticProps) { - if (protoProps) _defineProperties(Constructor.prototype, protoProps); - if (staticProps) _defineProperties(Constructor, staticProps); - return Constructor; -} +(function() { module.exports = this["regeneratorRuntime"]; }()); /***/ }), @@ -582,7 +565,7 @@ function _classCallCheck(instance, Constructor) { /***/ }), -/***/ 213: +/***/ 214: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -607,7 +590,7 @@ var chevronRight = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["creat /***/ }), -/***/ 214: +/***/ 215: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -632,7 +615,7 @@ var chevronLeft = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["create /***/ }), -/***/ 215: +/***/ 216: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -657,7 +640,7 @@ var keyboardReturn = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["cre /***/ }), -/***/ 216: +/***/ 217: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -682,7 +665,7 @@ var upload = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEleme /***/ }), -/***/ 217: +/***/ 218: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -710,6 +693,29 @@ var linkOff = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElem /***/ 22: /***/ (function(module, __webpack_exports__, __webpack_require__) { +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _createClass; }); +function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + if ("value" in descriptor) descriptor.writable = true; + Object.defineProperty(target, descriptor.key, descriptor); + } +} + +function _createClass(Constructor, protoProps, staticProps) { + if (protoProps) _defineProperties(Constructor.prototype, protoProps); + if (staticProps) _defineProperties(Constructor, staticProps); + return Constructor; +} + +/***/ }), + +/***/ 23: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + "use strict"; // EXPORTS @@ -743,13 +749,13 @@ function _inherits(subClass, superClass) { /***/ }), -/***/ 23: +/***/ 24: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _possibleConstructorReturn; }); /* harmony import */ var _helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(40); -/* harmony import */ var _assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(15); +/* harmony import */ var _assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(16); function _possibleConstructorReturn(self, call) { @@ -786,7 +792,43 @@ function _arrayLikeToArray(arr, len) { /***/ }), -/***/ 280: +/***/ 274: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; + +// EXTERNAL MODULE: external {"this":["wp","element"]} +var external_this_wp_element_ = __webpack_require__(0); + +// EXTERNAL MODULE: external {"this":["wp","primitives"]} +var external_this_wp_primitives_ = __webpack_require__(7); + +// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/pencil.js + + +/** + * WordPress dependencies + */ + +var pencil = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { + d: "M20.1 5.1L16.9 2 6.2 12.7l-1.3 4.4 4.5-1.3L20.1 5.1zM4 20.8h8v-1.5H4v1.5z" +})); +/* harmony default export */ var library_pencil = (pencil); + +// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/edit.js +/** + * Internal dependencies + */ + +/* harmony default export */ var edit = __webpack_exports__["a"] = (library_pencil); + + +/***/ }), + +/***/ 282: /***/ (function(module, exports, __webpack_require__) { /*! Fast Average Color | © 2019 Denis Seleznev | MIT License | https://github.com/hcodes/fast-average-color/ */ @@ -1266,7 +1308,7 @@ function _unsupportedIterableToArray(o, minLen) { /***/ }), -/***/ 300: +/***/ 303: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -1291,7 +1333,7 @@ var alignLeft = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEl /***/ }), -/***/ 301: +/***/ 304: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -1316,7 +1358,7 @@ var alignCenter = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["create /***/ }), -/***/ 302: +/***/ 305: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -1341,7 +1383,7 @@ var alignRight = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createE /***/ }), -/***/ 303: +/***/ 306: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -1373,7 +1415,32 @@ var search = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEleme /***/ }), -/***/ 316: +/***/ 319: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); + + +/** + * WordPress dependencies + */ + +var media = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { + d: "M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h13.4c.4 0 .8.4.8.8v13.4zM10 15l5-3-5-3v6z" +})); +/* harmony default export */ __webpack_exports__["a"] = (media); + + +/***/ }), + +/***/ 320: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -1398,7 +1465,7 @@ var code = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement /***/ }), -/***/ 35: +/***/ 36: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["deprecated"]; }()); @@ -1468,7 +1535,14 @@ function _typeof(obj) { /***/ }), -/***/ 42: +/***/ 41: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["blob"]; }()); + +/***/ }), + +/***/ 43: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -1490,13 +1564,6 @@ function _objectWithoutPropertiesLoose(source, excluded) { /***/ }), -/***/ 43: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["blob"]; }()); - -/***/ }), - /***/ 44: /***/ (function(module, exports) { @@ -1505,13 +1572,49 @@ function _objectWithoutPropertiesLoose(source, excluded) { /***/ }), /***/ 45: -/***/ (function(module, exports) { +/***/ (function(module, __webpack_exports__, __webpack_require__) { -(function() { module.exports = this["wp"]["apiFetch"]; }()); +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _asyncToGenerator; }); +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { + try { + var info = gen[key](arg); + var value = info.value; + } catch (error) { + reject(error); + return; + } + + if (info.done) { + resolve(value); + } else { + Promise.resolve(value).then(_next, _throw); + } +} + +function _asyncToGenerator(fn) { + return function () { + var self = this, + args = arguments; + return new Promise(function (resolve, reject) { + var gen = fn.apply(self, args); + + function _next(value) { + asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); + } + + function _throw(err) { + asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); + } + + _next(undefined); + }); + }; +} /***/ }), -/***/ 450: +/***/ 454: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -1519,6 +1622,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { __webpack_require__.r(__webpack_exports__); // EXPORTS +__webpack_require__.d(__webpack_exports__, "__experimentalGetCoreBlocks", function() { return /* binding */ build_module_experimentalGetCoreBlocks; }); __webpack_require__.d(__webpack_exports__, "registerCoreBlocks", function() { return /* binding */ build_module_registerCoreBlocks; }); __webpack_require__.d(__webpack_exports__, "__experimentalRegisterExperimentalCoreBlocks", function() { return /* binding */ __experimentalRegisterExperimentalCoreBlocks; }); @@ -1824,20 +1928,23 @@ __webpack_require__.d(social_link_namespaceObject, "name", function() { return s __webpack_require__.d(social_link_namespaceObject, "settings", function() { return social_link_settings; }); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules -var toConsumableArray = __webpack_require__(18); +var toConsumableArray = __webpack_require__(17); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js var defineProperty = __webpack_require__(5); // EXTERNAL MODULE: external {"this":["wp","coreData"]} -var external_this_wp_coreData_ = __webpack_require__(100); +var external_this_wp_coreData_ = __webpack_require__(83); // EXTERNAL MODULE: external {"this":["wp","notices"]} -var external_this_wp_notices_ = __webpack_require__(101); +var external_this_wp_notices_ = __webpack_require__(92); // EXTERNAL MODULE: external {"this":["wp","blockEditor"]} var external_this_wp_blockEditor_ = __webpack_require__(6); +// EXTERNAL MODULE: external {"this":["wp","reusableBlocks"]} +var external_this_wp_reusableBlocks_ = __webpack_require__(121); + // EXTERNAL MODULE: external {"this":["wp","blocks"]} var external_this_wp_blocks_ = __webpack_require__(11); @@ -2195,6 +2302,7 @@ var formatLtr = Object(external_this_wp_element_["createElement"])(external_this + function edit_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } function edit_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { edit_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { edit_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } @@ -2219,9 +2327,7 @@ function getComputedStyle(node, pseudo) { return node.ownerDocument.defaultView.getComputedStyle(node, pseudo); } -var querySelector = window.document.querySelector.bind(document); var edit_name = 'core/paragraph'; -var PARAGRAPH_DROP_CAP_SELECTOR = 'p.has-drop-cap'; function ParagraphRTLToolbar(_ref) { var direction = _ref.direction, @@ -2241,34 +2347,21 @@ function ParagraphRTLToolbar(_ref) { }); } -function useDropCap(isDropCap, fontSize, styleFontSize) { - var isDisabled = !Object(external_this_wp_blockEditor_["__experimentalUseEditorFeature"])('typography.dropCap'); - +function useDropCapMinHeight(ref, isDisabled, dependencies) { var _useState = Object(external_this_wp_element_["useState"])(), _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), - minimumHeight = _useState2[0], - setMinimumHeight = _useState2[1]; + minHeight = _useState2[0], + setMinHeight = _useState2[1]; - var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { - return select('core/block-editor').getSettings(); - }), - fontSizes = _useSelect.fontSizes; - - var fontSizeObject = Object(external_this_wp_blockEditor_["getFontSize"])(fontSizes, fontSize, styleFontSize); Object(external_this_wp_element_["useEffect"])(function () { if (isDisabled) { + setMinHeight(); return; } - var element = querySelector(PARAGRAPH_DROP_CAP_SELECTOR); - - if (isDropCap && element) { - setMinimumHeight(getComputedStyle(element, 'first-letter').lineHeight); - } else if (minimumHeight) { - setMinimumHeight(undefined); - } - }, [isDisabled, isDropCap, minimumHeight, setMinimumHeight, fontSizeObject.size]); - return [!isDisabled, minimumHeight]; + setMinHeight(getComputedStyle(ref.current, 'first-letter').lineHeight); + }, [isDisabled].concat(Object(toConsumableArray["a" /* default */])(dependencies))); + return minHeight; } function ParagraphBlock(_ref2) { @@ -2284,21 +2377,26 @@ function ParagraphBlock(_ref2) { placeholder = attributes.placeholder, fontSize = attributes.fontSize, style = attributes.style; + var isDropCapFeatureEnabled = Object(external_this_wp_blockEditor_["__experimentalUseEditorFeature"])('typography.dropCap'); + var ref = Object(external_this_wp_element_["useRef"])(); + var inlineFontSize = style === null || style === void 0 ? void 0 : style.fontSize; + var size = Object(external_this_wp_data_["useSelect"])(function (select) { + var _select$getSettings = select('core/block-editor').getSettings(), + fontSizes = _select$getSettings.fontSizes; - var _useDropCap = useDropCap(dropCap, fontSize, style === null || style === void 0 ? void 0 : style.fontSize), - _useDropCap2 = Object(slicedToArray["a" /* default */])(_useDropCap, 2), - isDropCapEnabled = _useDropCap2[0], - dropCapMinimumHeight = _useDropCap2[1]; - - var styles = { - direction: direction, - minHeight: dropCapMinimumHeight - }; - var blockWrapperProps = Object(external_this_wp_blockEditor_["__experimentalUseBlockWrapperProps"])({ + return Object(external_this_wp_blockEditor_["getFontSize"])(fontSizes, fontSize, inlineFontSize).size; + }, [fontSize, inlineFontSize]); + var hasDropCap = isDropCapFeatureEnabled && dropCap; + var minHeight = useDropCapMinHeight(ref, !hasDropCap, [size]); + var blockProps = Object(external_this_wp_blockEditor_["useBlockProps"])({ + ref: ref, className: classnames_default()(Object(defineProperty["a" /* default */])({ 'has-drop-cap': dropCap }, "has-text-align-".concat(align), align)), - style: styles + style: { + direction: direction, + minHeight: minHeight + } }); return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["AlignmentToolbar"], { value: align, @@ -2314,7 +2412,7 @@ function ParagraphBlock(_ref2) { direction: newDirection }); } - })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, isDropCapEnabled && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + })), isDropCapFeatureEnabled && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { title: Object(external_this_wp_i18n_["__"])('Text settings') }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { label: Object(external_this_wp_i18n_["__"])('Drop cap'), @@ -2328,7 +2426,7 @@ function ParagraphBlock(_ref2) { }))), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], Object(esm_extends["a" /* default */])({ identifier: "content", tagName: "p" - }, blockWrapperProps, { + }, blockProps, { value: content, onChange: function onChange(newContent) { return setAttributes({ @@ -2378,12 +2476,12 @@ function save_save(_ref) { var className = classnames_default()(Object(defineProperty["a" /* default */])({ 'has-drop-cap': dropCap }, "has-text-align-".concat(align), align)); - return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { - tagName: "p", - className: className ? className : undefined, - value: content, + return Object(external_this_wp_element_["createElement"])("p", external_this_wp_blockEditor_["useBlockProps"].save({ + className: className, dir: direction - }); + }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + value: content + })); } // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/paragraph/transforms.js @@ -2395,7 +2493,8 @@ function save_save(_ref) { * Internal dependencies */ -var _name$category$attrib = { +var _apiVersion$name$cate = { + apiVersion: 2, name: "core/paragraph", category: "text", attributes: { @@ -2423,17 +2522,16 @@ var _name$category$attrib = { supports: { anchor: true, className: false, - lightBlockWrapper: true, - __experimentalColor: { - linkColor: true + color: { + link: true }, - __experimentalFontSize: true, - __experimentalLineHeight: true, + fontSize: true, + lineHeight: true, __experimentalSelector: "p", __unstablePasteTextInline: true } }, - transforms_name = _name$category$attrib.name; + transforms_name = _apiVersion$name$cate.name; var transforms = { from: [{ type: 'raw', @@ -2484,6 +2582,7 @@ var transforms = { var paragraph_metadata = { + apiVersion: 2, name: "core/paragraph", category: "text", attributes: { @@ -2511,12 +2610,11 @@ var paragraph_metadata = { supports: { anchor: true, className: false, - lightBlockWrapper: true, - __experimentalColor: { - linkColor: true + color: { + link: true }, - __experimentalFontSize: true, - __experimentalLineHeight: true, + fontSize: true, + lineHeight: true, __experimentalSelector: "p", __unstablePasteTextInline: true } @@ -2752,7 +2850,7 @@ var deprecated_deprecated = [{ /* harmony default export */ var image_deprecated = (deprecated_deprecated); // EXTERNAL MODULE: external {"this":["wp","blob"]} -var external_this_wp_blob_ = __webpack_require__(43); +var external_this_wp_blob_ = __webpack_require__(41); // EXTERNAL MODULE: external {"this":["wp","compose"]} var external_this_wp_compose_ = __webpack_require__(10); @@ -2776,7 +2874,7 @@ var crop_crop = Object(external_this_wp_element_["createElement"])(external_this /* harmony default export */ var library_crop = (crop_crop); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/upload.js -var upload = __webpack_require__(216); +var upload = __webpack_require__(217); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/constants.js var ASPECT_RATIOS = [// Common video resolutions. @@ -2806,7 +2904,7 @@ var ASPECT_RATIOS = [// Common video resolutions. var WP_EMBED_TYPE = 'wp-embed'; // EXTERNAL MODULE: ./node_modules/classnames/dedupe.js -var dedupe = __webpack_require__(118); +var dedupe = __webpack_require__(117); var dedupe_default = /*#__PURE__*/__webpack_require__.n(dedupe); // EXTERNAL MODULE: ./node_modules/memize/index.js @@ -2843,6 +2941,7 @@ function util_objectSpread(target) { for (var i = 1; i < arguments.length; i++) */ var util_metadata = { + apiVersion: 2, name: "core/embed", category: "embed", attributes: { @@ -4100,7 +4199,7 @@ function (_super) { /* harmony default export */ var index_module = (index_module_Cropper); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/check.js -var check = __webpack_require__(158); +var check = __webpack_require__(161); // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/aspect-ratio.js @@ -4118,7 +4217,7 @@ var aspect_ratio_aspectRatio = Object(external_this_wp_element_["createElement"] /* harmony default export */ var aspect_ratio = (aspect_ratio_aspectRatio); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/search.js -var search = __webpack_require__(303); +var search = __webpack_require__(306); // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/rotate-right.js @@ -4136,7 +4235,7 @@ var rotateRight = Object(external_this_wp_element_["createElement"])(external_th /* harmony default export */ var rotate_right = (rotateRight); // EXTERNAL MODULE: external {"this":["wp","apiFetch"]} -var external_this_wp_apiFetch_ = __webpack_require__(45); +var external_this_wp_apiFetch_ = __webpack_require__(47); var external_this_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_apiFetch_); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/image-editor.js @@ -4766,7 +4865,7 @@ function Image(_ref) { url: href || '', onChangeUrl: onSetHref, linkDestination: linkDestination, - mediaUrl: image && image.source_url, + mediaUrl: image && image.source_url || url, mediaLink: image && image.link, linkTarget: linkTarget, linkClass: linkClass, @@ -5268,11 +5367,11 @@ function ImageEdit(_ref) { 'is-resized': !!width || !!height, 'is-focused': isSelected }, "size-".concat(sizeSlug), sizeSlug)); - var blockWrapperProps = Object(external_this_wp_blockEditor_["__experimentalUseBlockWrapperProps"])({ + var blockProps = Object(external_this_wp_blockEditor_["useBlockProps"])({ ref: ref, className: classes }); - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, controls, Object(external_this_wp_element_["createElement"])("figure", blockWrapperProps, url && Object(external_this_wp_element_["createElement"])(Image, { + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, controls, Object(external_this_wp_element_["createElement"])("figure", blockProps, url && Object(external_this_wp_element_["createElement"])(Image, { attributes: attributes, setAttributes: setAttributes, isSelected: isSelected, @@ -5338,14 +5437,14 @@ function image_save_save(_ref) { })); if ('left' === align || 'right' === align || 'center' === align) { - return Object(external_this_wp_element_["createElement"])("div", null, Object(external_this_wp_element_["createElement"])("figure", { + return Object(external_this_wp_element_["createElement"])("div", external_this_wp_blockEditor_["useBlockProps"].save(), Object(external_this_wp_element_["createElement"])("figure", { className: classes }, figure)); } - return Object(external_this_wp_element_["createElement"])("figure", { + return Object(external_this_wp_element_["createElement"])("figure", external_this_wp_blockEditor_["useBlockProps"].save({ className: classes - }, figure); + }), figure); } // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/transforms.js @@ -5538,6 +5637,7 @@ var transforms_transforms = { var image_metadata = { + apiVersion: 2, name: "core/image", category: "media", attributes: { @@ -5609,8 +5709,7 @@ var image_metadata = { } }, supports: { - anchor: true, - lightBlockWrapper: true + anchor: true } }; @@ -5841,7 +5940,7 @@ var heading_deprecated_deprecated = [{ /* harmony default export */ var heading_deprecated = (heading_deprecated_deprecated); // EXTERNAL MODULE: external {"this":["wp","keycodes"]} -var external_this_wp_keycodes_ = __webpack_require__(19); +var external_this_wp_keycodes_ = __webpack_require__(18); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/heading-level-icon.js @@ -6029,7 +6128,7 @@ function HeadingEdit(_ref) { level = attributes.level, placeholder = attributes.placeholder; var tagName = 'h' + level; - var blockWrapperProps = Object(external_this_wp_blockEditor_["__experimentalUseBlockWrapperProps"])({ + var blockProps = Object(external_this_wp_blockEditor_["useBlockProps"])({ className: classnames_default()(Object(defineProperty["a" /* default */])({}, "has-text-align-".concat(align), align)), style: mergedStyle }); @@ -6072,7 +6171,7 @@ function HeadingEdit(_ref) { }, placeholder: placeholder || Object(external_this_wp_i18n_["__"])('Write heading…'), textAlign: align - }, blockWrapperProps))); + }, blockProps))); } /* harmony default export */ var heading_edit = (HeadingEdit); @@ -6095,13 +6194,13 @@ function heading_save_save(_ref) { var align = attributes.align, content = attributes.content, level = attributes.level; - var tagName = 'h' + level; + var TagName = 'h' + level; var className = classnames_default()(Object(defineProperty["a" /* default */])({}, "has-text-align-".concat(align), align)); - return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { - className: className ? className : undefined, - tagName: tagName, + return Object(external_this_wp_element_["createElement"])(TagName, external_this_wp_blockEditor_["useBlockProps"].save({ + className: className + }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { value: content - }); + })); } // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/shared.js @@ -6128,7 +6227,8 @@ function getLevelFromHeadingNodeName(nodeName) { */ -var transforms_name$category$attrib = { +var transforms_apiVersion$name$cate = { + apiVersion: 2, name: "core/heading", category: "text", attributes: { @@ -6150,14 +6250,14 @@ var transforms_name$category$attrib = { } }, supports: { + align: ["wide", "full"], anchor: true, className: false, - lightBlockWrapper: true, - __experimentalColor: { - linkColor: true + color: { + link: true }, - __experimentalFontSize: true, - __experimentalLineHeight: true, + fontSize: true, + lineHeight: true, __experimentalSelector: { "core/heading/h1": "h1", "core/heading/h2": "h2", @@ -6169,7 +6269,7 @@ var transforms_name$category$attrib = { __unstablePasteTextInline: true } }, - heading_transforms_name = transforms_name$category$attrib.name; + heading_transforms_name = transforms_apiVersion$name$cate.name; var heading_transforms_transforms = { from: [{ type: 'block', @@ -6266,6 +6366,7 @@ var heading_transforms_transforms = { var heading_metadata = { + apiVersion: 2, name: "core/heading", category: "text", attributes: { @@ -6287,14 +6388,14 @@ var heading_metadata = { } }, supports: { + align: ["wide", "full"], anchor: true, className: false, - lightBlockWrapper: true, - __experimentalColor: { - linkColor: true + color: { + link: true }, - __experimentalFontSize: true, - __experimentalLineHeight: true, + fontSize: true, + lineHeight: true, __experimentalSelector: { "core/heading/h1": "h1", "core/heading/h2": "h2", @@ -6515,7 +6616,7 @@ function QuoteEdit(_ref) { var align = attributes.align, value = attributes.value, citation = attributes.citation; - var blockWrapperProps = Object(external_this_wp_blockEditor_["__experimentalUseBlockWrapperProps"])({ + var blockProps = Object(external_this_wp_blockEditor_["useBlockProps"])({ className: classnames_default()(className, Object(defineProperty["a" /* default */])({}, "has-text-align-".concat(align), align)) }); return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["AlignmentToolbar"], { @@ -6525,7 +6626,7 @@ function QuoteEdit(_ref) { align: nextAlign }); } - })), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["BlockQuotation"], blockWrapperProps, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + })), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["BlockQuotation"], blockProps, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { identifier: "value", multiline: true, value: value, @@ -6592,9 +6693,9 @@ function quote_save_save(_ref) { value = attributes.value, citation = attributes.citation; var className = classnames_default()(Object(defineProperty["a" /* default */])({}, "has-text-align-".concat(align), align)); - return Object(external_this_wp_element_["createElement"])("blockquote", { + return Object(external_this_wp_element_["createElement"])("blockquote", external_this_wp_blockEditor_["useBlockProps"].save({ className: className - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { multiline: true, value: value }), !external_this_wp_blockEditor_["RichText"].isEmpty(citation) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { @@ -6825,6 +6926,7 @@ function quote_objectSpread(target) { for (var i = 1; i < arguments.length; i++) var quote_metadata = { + apiVersion: 2, name: "core/quote", category: "text", attributes: { @@ -6846,8 +6948,7 @@ var quote_metadata = { } }, supports: { - anchor: true, - lightBlockWrapper: true + anchor: true } }; @@ -6937,6 +7038,11 @@ var shared_pickRelevantMediaFiles = function pickRelevantMediaFiles(image) { return imageProps; }; +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/constants.js +var constants_LINK_DESTINATION_NONE = 'none'; +var constants_LINK_DESTINATION_MEDIA = 'file'; +var constants_LINK_DESTINATION_ATTACHMENT = 'post'; + // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/deprecated.js @@ -6960,7 +7066,132 @@ function gallery_deprecated_objectSpread(target) { for (var i = 1; i < arguments */ + var gallery_deprecated_deprecated = [{ + attributes: { + images: { + type: 'array', + default: [], + source: 'query', + selector: '.blocks-gallery-item', + query: { + url: { + type: 'string', + source: 'attribute', + selector: 'img', + attribute: 'src' + }, + fullUrl: { + type: 'string', + source: 'attribute', + selector: 'img', + attribute: 'data-full-url' + }, + link: { + type: 'string', + source: 'attribute', + selector: 'img', + attribute: 'data-link' + }, + alt: { + type: 'string', + source: 'attribute', + selector: 'img', + attribute: 'alt', + default: '' + }, + id: { + type: 'string', + source: 'attribute', + selector: 'img', + attribute: 'data-id' + }, + caption: { + type: 'string', + source: 'html', + selector: '.blocks-gallery-item__caption' + } + } + }, + ids: { + type: 'array', + items: { + type: 'number' + }, + default: [] + }, + columns: { + type: 'number', + minimum: 1, + maximum: 8 + }, + caption: { + type: 'string', + source: 'html', + selector: '.blocks-gallery-caption' + }, + imageCrop: { + type: 'boolean', + default: true + }, + linkTo: { + type: 'string' + }, + sizeSlug: { + type: 'string', + default: 'large' + } + }, + save: function save(_ref) { + var attributes = _ref.attributes; + var images = attributes.images, + _attributes$columns = attributes.columns, + columns = _attributes$columns === void 0 ? defaultColumnsNumber(attributes) : _attributes$columns, + imageCrop = attributes.imageCrop, + caption = attributes.caption, + linkTo = attributes.linkTo; + return Object(external_this_wp_element_["createElement"])("figure", { + className: "columns-".concat(columns, " ").concat(imageCrop ? 'is-cropped' : '') + }, Object(external_this_wp_element_["createElement"])("ul", { + className: "blocks-gallery-grid" + }, images.map(function (image) { + var href; + + switch (linkTo) { + case constants_LINK_DESTINATION_MEDIA: + href = image.fullUrl || image.url; + break; + + case constants_LINK_DESTINATION_ATTACHMENT: + href = image.link; + break; + } + + var img = Object(external_this_wp_element_["createElement"])("img", { + src: image.url, + alt: image.alt, + "data-id": image.id, + "data-full-url": image.fullUrl, + "data-link": image.link, + className: image.id ? "wp-image-".concat(image.id) : null + }); + return Object(external_this_wp_element_["createElement"])("li", { + key: image.id || image.url, + className: "blocks-gallery-item" + }, Object(external_this_wp_element_["createElement"])("figure", null, href ? Object(external_this_wp_element_["createElement"])("a", { + href: href + }, img) : img, !external_this_wp_blockEditor_["RichText"].isEmpty(image.caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "figcaption", + className: "blocks-gallery-item__caption", + value: image.caption + }))); + })), !external_this_wp_blockEditor_["RichText"].isEmpty(caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "figcaption", + className: "blocks-gallery-caption", + value: caption + })); + } +}, { attributes: { images: { type: 'array', @@ -7039,8 +7270,8 @@ var gallery_deprecated_deprecated = [{ supports: { align: true }, - isEligible: function isEligible(_ref) { - var linkTo = _ref.linkTo; + isEligible: function isEligible(_ref2) { + var linkTo = _ref2.linkTo; return !linkTo || linkTo === 'attachment' || linkTo === 'media'; }, migrate: function migrate(attributes) { @@ -7058,11 +7289,11 @@ var gallery_deprecated_deprecated = [{ linkTo: linkTo }); }, - save: function save(_ref2) { - var attributes = _ref2.attributes; + save: function save(_ref3) { + var attributes = _ref3.attributes; var images = attributes.images, - _attributes$columns = attributes.columns, - columns = _attributes$columns === void 0 ? defaultColumnsNumber(attributes) : _attributes$columns, + _attributes$columns2 = attributes.columns, + columns = _attributes$columns2 === void 0 ? defaultColumnsNumber(attributes) : _attributes$columns2, imageCrop = attributes.imageCrop, caption = attributes.caption, linkTo = attributes.linkTo; @@ -7172,8 +7403,8 @@ var gallery_deprecated_deprecated = [{ supports: { align: true }, - isEligible: function isEligible(_ref3) { - var ids = _ref3.ids; + isEligible: function isEligible(_ref4) { + var ids = _ref4.ids; return ids && ids.some(function (id) { return typeof id === 'string'; }); @@ -7186,11 +7417,11 @@ var gallery_deprecated_deprecated = [{ }) }); }, - save: function save(_ref4) { - var attributes = _ref4.attributes; + save: function save(_ref5) { + var attributes = _ref5.attributes; var images = attributes.images, - _attributes$columns2 = attributes.columns, - columns = _attributes$columns2 === void 0 ? defaultColumnsNumber(attributes) : _attributes$columns2, + _attributes$columns3 = attributes.columns, + columns = _attributes$columns3 === void 0 ? defaultColumnsNumber(attributes) : _attributes$columns3, imageCrop = attributes.imageCrop, caption = attributes.caption, linkTo = attributes.linkTo; @@ -7295,11 +7526,11 @@ var gallery_deprecated_deprecated = [{ supports: { align: true }, - save: function save(_ref5) { - var attributes = _ref5.attributes; + save: function save(_ref6) { + var attributes = _ref6.attributes; var images = attributes.images, - _attributes$columns3 = attributes.columns, - columns = _attributes$columns3 === void 0 ? defaultColumnsNumber(attributes) : _attributes$columns3, + _attributes$columns4 = attributes.columns, + columns = _attributes$columns4 === void 0 ? defaultColumnsNumber(attributes) : _attributes$columns4, imageCrop = attributes.imageCrop, linkTo = attributes.linkTo; return Object(external_this_wp_element_["createElement"])("ul", { @@ -7384,9 +7615,9 @@ var gallery_deprecated_deprecated = [{ default: 'none' } }, - isEligible: function isEligible(_ref6) { - var images = _ref6.images, - ids = _ref6.ids; + isEligible: function isEligible(_ref7) { + var images = _ref7.images, + ids = _ref7.ids; return images && images.length > 0 && (!ids && images || ids && images && ids.length !== images.length || Object(external_this_lodash_["some"])(images, function (id, index) { if (!id && ids[index] !== null) { return true; @@ -7397,8 +7628,8 @@ var gallery_deprecated_deprecated = [{ }, migrate: function migrate(attributes) { return gallery_deprecated_objectSpread(gallery_deprecated_objectSpread({}, attributes), {}, { - ids: Object(external_this_lodash_["map"])(attributes.images, function (_ref7) { - var id = _ref7.id; + ids: Object(external_this_lodash_["map"])(attributes.images, function (_ref8) { + var id = _ref8.id; if (!id) { return null; @@ -7411,11 +7642,11 @@ var gallery_deprecated_deprecated = [{ supports: { align: true }, - save: function save(_ref8) { - var attributes = _ref8.attributes; + save: function save(_ref9) { + var attributes = _ref9.attributes; var images = attributes.images, - _attributes$columns4 = attributes.columns, - columns = _attributes$columns4 === void 0 ? defaultColumnsNumber(attributes) : _attributes$columns4, + _attributes$columns5 = attributes.columns, + columns = _attributes$columns5 === void 0 ? defaultColumnsNumber(attributes) : _attributes$columns5, imageCrop = attributes.imageCrop, linkTo = attributes.linkTo; return Object(external_this_wp_element_["createElement"])("ul", { @@ -7493,11 +7724,11 @@ var gallery_deprecated_deprecated = [{ supports: { align: true }, - save: function save(_ref9) { - var attributes = _ref9.attributes; + save: function save(_ref10) { + var attributes = _ref10.attributes; var images = attributes.images, - _attributes$columns5 = attributes.columns, - columns = _attributes$columns5 === void 0 ? defaultColumnsNumber(attributes) : _attributes$columns5, + _attributes$columns6 = attributes.columns, + columns = _attributes$columns6 === void 0 ? defaultColumnsNumber(attributes) : _attributes$columns6, align = attributes.align, imageCrop = attributes.imageCrop, linkTo = attributes.linkTo; @@ -7536,26 +7767,8 @@ var gallery_deprecated_deprecated = [{ }]; /* harmony default export */ var gallery_deprecated = (gallery_deprecated_deprecated); -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js -var classCallCheck = __webpack_require__(21); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js -var createClass = __webpack_require__(20); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js -var assertThisInitialized = __webpack_require__(15); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules -var inherits = __webpack_require__(22); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js -var possibleConstructorReturn = __webpack_require__(23); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js -var getPrototypeOf = __webpack_require__(17); - // EXTERNAL MODULE: external {"this":["wp","viewport"]} -var external_this_wp_viewport_ = __webpack_require__(89); +var external_this_wp_viewport_ = __webpack_require__(101); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/shared-icon.js @@ -7569,22 +7782,35 @@ var sharedIcon = Object(external_this_wp_element_["createElement"])(external_thi icon: library_gallery }); +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js +var classCallCheck = __webpack_require__(21); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js +var createClass = __webpack_require__(22); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +var assertThisInitialized = __webpack_require__(16); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules +var inherits = __webpack_require__(23); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +var possibleConstructorReturn = __webpack_require__(24); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +var getPrototypeOf = __webpack_require__(19); + // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-left.js -var chevron_left = __webpack_require__(214); +var chevron_left = __webpack_require__(215); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-right.js -var chevron_right = __webpack_require__(213); +var chevron_right = __webpack_require__(214); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/edit.js + 1 modules -var library_edit = __webpack_require__(483); +var library_edit = __webpack_require__(274); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/close-small.js -var close_small = __webpack_require__(181); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/constants.js -var constants_LINK_DESTINATION_NONE = 'none'; -var constants_LINK_DESTINATION_MEDIA = 'file'; -var constants_LINK_DESTINATION_ATTACHMENT = 'post'; +var close_small = __webpack_require__(159); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/gallery-image.js @@ -8028,19 +8254,10 @@ function RichTextVisibilityHelper(_ref) { - - - - - function gallery_edit_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } function gallery_edit_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { gallery_edit_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { gallery_edit_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } -function edit_createSuper(Derived) { var hasNativeReflectConstruct = edit_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; } - -function edit_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } - /** * External dependencies */ @@ -8088,432 +8305,331 @@ var MOBILE_CONTROL_PROPS_RANGE_CONTROL = external_this_wp_element_["Platform"].s } }); -var edit_GalleryEdit = /*#__PURE__*/function (_Component) { - Object(inherits["a" /* default */])(GalleryEdit, _Component); +function GalleryEdit(props) { + var attributes = props.attributes, + className = props.className, + isSelected = props.isSelected, + noticeUI = props.noticeUI, + noticeOperations = props.noticeOperations, + mediaUpload = props.mediaUpload, + imageSizes = props.imageSizes, + resizedImages = props.resizedImages, + onFocus = props.onFocus; + var _attributes$columns = attributes.columns, + columns = _attributes$columns === void 0 ? defaultColumnsNumber(attributes) : _attributes$columns, + imageCrop = attributes.imageCrop, + images = attributes.images, + linkTo = attributes.linkTo, + sizeSlug = attributes.sizeSlug; - var _super = edit_createSuper(GalleryEdit); + var _useState = Object(external_this_wp_element_["useState"])(), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + selectedImage = _useState2[0], + setSelectedImage = _useState2[1]; - function GalleryEdit() { - var _this; + var _useState3 = Object(external_this_wp_element_["useState"])(), + _useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2), + attachmentCaptions = _useState4[0], + setAttachmentCaptions = _useState4[1]; - Object(classCallCheck["a" /* default */])(this, GalleryEdit); - - _this = _super.apply(this, arguments); - _this.onSelectImage = _this.onSelectImage.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onSelectImages = _this.onSelectImages.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onDeselectImage = _this.onDeselectImage.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.setLinkTo = _this.setLinkTo.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.setColumnsNumber = _this.setColumnsNumber.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.toggleImageCrop = _this.toggleImageCrop.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onMove = _this.onMove.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onMoveForward = _this.onMoveForward.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onMoveBackward = _this.onMoveBackward.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onRemoveImage = _this.onRemoveImage.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onUploadError = _this.onUploadError.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.setImageAttributes = _this.setImageAttributes.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.setAttributes = _this.setAttributes.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onFocusGalleryCaption = _this.onFocusGalleryCaption.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.getImagesSizeOptions = _this.getImagesSizeOptions.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.updateImagesSize = _this.updateImagesSize.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.state = { - selectedImage: null, - attachmentCaptions: null - }; - return _this; - } - - Object(createClass["a" /* default */])(GalleryEdit, [{ - key: "setAttributes", - value: function setAttributes(attributes) { - if (attributes.ids) { - throw new Error('The "ids" attribute should not be changed directly. It is managed automatically when "images" attribute changes'); - } - - if (attributes.images) { - attributes = gallery_edit_objectSpread(gallery_edit_objectSpread({}, attributes), {}, { - // Unlike images[ n ].id which is a string, always ensure the - // ids array contains numbers as per its attribute type. - ids: Object(external_this_lodash_["map"])(attributes.images, function (_ref) { - var id = _ref.id; - return parseInt(id, 10); - }) - }); - } - - this.props.setAttributes(attributes); + function setAttributes(newAttrs) { + if (newAttrs.ids) { + throw new Error('The "ids" attribute should not be changed directly. It is managed automatically when "images" attribute changes'); } - }, { - key: "onSelectImage", - value: function onSelectImage(index) { - var _this2 = this; - return function () { - if (_this2.state.selectedImage !== index) { - _this2.setState({ - selectedImage: index - }); - } - }; - } - }, { - key: "onDeselectImage", - value: function onDeselectImage(index) { - var _this3 = this; - - return function () { - if (_this3.state.selectedImage === index) { - _this3.setState({ - selectedImage: null - }); - } - }; - } - }, { - key: "onMove", - value: function onMove(oldIndex, newIndex) { - var images = Object(toConsumableArray["a" /* default */])(this.props.attributes.images); - - images.splice(newIndex, 1, this.props.attributes.images[oldIndex]); - images.splice(oldIndex, 1, this.props.attributes.images[newIndex]); - this.setState({ - selectedImage: newIndex - }); - this.setAttributes({ - images: images - }); - } - }, { - key: "onMoveForward", - value: function onMoveForward(oldIndex) { - var _this4 = this; - - return function () { - if (oldIndex === _this4.props.attributes.images.length - 1) { - return; - } - - _this4.onMove(oldIndex, oldIndex + 1); - }; - } - }, { - key: "onMoveBackward", - value: function onMoveBackward(oldIndex) { - var _this5 = this; - - return function () { - if (oldIndex === 0) { - return; - } - - _this5.onMove(oldIndex, oldIndex - 1); - }; - } - }, { - key: "onRemoveImage", - value: function onRemoveImage(index) { - var _this6 = this; - - return function () { - var images = Object(external_this_lodash_["filter"])(_this6.props.attributes.images, function (img, i) { - return index !== i; - }); - var columns = _this6.props.attributes.columns; - - _this6.setState({ - selectedImage: null - }); - - _this6.setAttributes({ - images: images, - columns: columns ? Math.min(images.length, columns) : columns - }); - }; - } - }, { - key: "selectCaption", - value: function selectCaption(newImage, images, attachmentCaptions) { - // The image id in both the images and attachmentCaptions arrays is a - // string, so ensure comparison works correctly by converting the - // newImage.id to a string. - var newImageId = Object(external_this_lodash_["toString"])(newImage.id); - var currentImage = Object(external_this_lodash_["find"])(images, { - id: newImageId - }); - var currentImageCaption = currentImage ? currentImage.caption : newImage.caption; - - if (!attachmentCaptions) { - return currentImageCaption; - } - - var attachment = Object(external_this_lodash_["find"])(attachmentCaptions, { - id: newImageId - }); // if the attachment caption is updated - - if (attachment && attachment.caption !== newImage.caption) { - return newImage.caption; - } - - return currentImageCaption; - } - }, { - key: "onSelectImages", - value: function onSelectImages(newImages) { - var _this7 = this; - - var _this$props$attribute = this.props.attributes, - columns = _this$props$attribute.columns, - images = _this$props$attribute.images, - sizeSlug = _this$props$attribute.sizeSlug; - var attachmentCaptions = this.state.attachmentCaptions; - this.setState({ - attachmentCaptions: newImages.map(function (newImage) { - return { - // Store the attachmentCaption id as a string for consistency - // with the type of the id in the images attribute. - id: Object(external_this_lodash_["toString"])(newImage.id), - caption: newImage.caption - }; + if (newAttrs.images) { + newAttrs = gallery_edit_objectSpread(gallery_edit_objectSpread({}, newAttrs), {}, { + // Unlike images[ n ].id which is a string, always ensure the + // ids array contains numbers as per its attribute type. + ids: Object(external_this_lodash_["map"])(newAttrs.images, function (_ref) { + var id = _ref.id; + return parseInt(id, 10); }) }); - this.setAttributes({ - images: newImages.map(function (newImage) { - return gallery_edit_objectSpread(gallery_edit_objectSpread({}, shared_pickRelevantMediaFiles(newImage, sizeSlug)), {}, { - caption: _this7.selectCaption(newImage, images, attachmentCaptions), - // The id value is stored in a data attribute, so when the - // block is parsed it's converted to a string. Converting - // to a string here ensures it's type is consistent. - id: Object(external_this_lodash_["toString"])(newImage.id) - }); - }), - columns: columns ? Math.min(newImages.length, columns) : columns - }); } - }, { - key: "onUploadError", - value: function onUploadError(message) { - var noticeOperations = this.props.noticeOperations; - noticeOperations.removeAllNotices(); - noticeOperations.createErrorNotice(message); - } - }, { - key: "setLinkTo", - value: function setLinkTo(value) { - this.setAttributes({ - linkTo: value - }); - } - }, { - key: "setColumnsNumber", - value: function setColumnsNumber(value) { - this.setAttributes({ - columns: value - }); - } - }, { - key: "toggleImageCrop", - value: function toggleImageCrop() { - this.setAttributes({ - imageCrop: !this.props.attributes.imageCrop - }); - } - }, { - key: "getImageCropHelp", - value: function getImageCropHelp(checked) { - return checked ? Object(external_this_wp_i18n_["__"])('Thumbnails are cropped to align.') : Object(external_this_wp_i18n_["__"])('Thumbnails are not cropped.'); - } - }, { - key: "onFocusGalleryCaption", - value: function onFocusGalleryCaption() { - this.setState({ - selectedImage: null - }); - } - }, { - key: "setImageAttributes", - value: function setImageAttributes(index, attributes) { - var images = this.props.attributes.images; - var setAttributes = this.setAttributes; - if (!images[index]) { + props.setAttributes(newAttrs); + } + + function onSelectImage(index) { + return function () { + setSelectedImage(index); + }; + } + + function onDeselectImage() { + return function () { + setSelectedImage(); + }; + } + + function onMove(oldIndex, newIndex) { + var newImages = Object(toConsumableArray["a" /* default */])(images); + + newImages.splice(newIndex, 1, images[oldIndex]); + newImages.splice(oldIndex, 1, images[newIndex]); + setSelectedImage(newIndex); + setAttributes({ + images: newImages + }); + } + + function onMoveForward(oldIndex) { + return function () { + if (oldIndex === images.length - 1) { return; } + onMove(oldIndex, oldIndex + 1); + }; + } + + function onMoveBackward(oldIndex) { + return function () { + if (oldIndex === 0) { + return; + } + + onMove(oldIndex, oldIndex - 1); + }; + } + + function onRemoveImage(index) { + return function () { + var newImages = Object(external_this_lodash_["filter"])(images, function (img, i) { + return index !== i; + }); + setSelectedImage(); setAttributes({ - images: [].concat(Object(toConsumableArray["a" /* default */])(images.slice(0, index)), [gallery_edit_objectSpread(gallery_edit_objectSpread({}, images[index]), attributes)], Object(toConsumableArray["a" /* default */])(images.slice(index + 1))) + images: newImages, + columns: attributes.columns ? Math.min(newImages.length, attributes.columns) : attributes.columns }); + }; + } + + function selectCaption(newImage) { + // The image id in both the images and attachmentCaptions arrays is a + // string, so ensure comparison works correctly by converting the + // newImage.id to a string. + var newImageId = Object(external_this_lodash_["toString"])(newImage.id); + var currentImage = Object(external_this_lodash_["find"])(images, { + id: newImageId + }); + var currentImageCaption = currentImage ? currentImage.caption : newImage.caption; + + if (!attachmentCaptions) { + return currentImageCaption; } - }, { - key: "getImagesSizeOptions", - value: function getImagesSizeOptions() { - var _this$props = this.props, - imageSizes = _this$props.imageSizes, - resizedImages = _this$props.resizedImages; - return Object(external_this_lodash_["map"])(Object(external_this_lodash_["filter"])(imageSizes, function (_ref2) { - var slug = _ref2.slug; - return Object(external_this_lodash_["some"])(resizedImages, function (sizes) { - return sizes[slug]; + + var attachment = Object(external_this_lodash_["find"])(attachmentCaptions, { + id: newImageId + }); // if the attachment caption is updated + + if (attachment && attachment.caption !== newImage.caption) { + return newImage.caption; + } + + return currentImageCaption; + } + + function onSelectImages(newImages) { + setAttachmentCaptions(newImages.map(function (newImage) { + return { + // Store the attachmentCaption id as a string for consistency + // with the type of the id in the images attribute. + id: Object(external_this_lodash_["toString"])(newImage.id), + caption: newImage.caption + }; + })); + setAttributes({ + images: newImages.map(function (newImage) { + return gallery_edit_objectSpread(gallery_edit_objectSpread({}, shared_pickRelevantMediaFiles(newImage, sizeSlug)), {}, { + caption: selectCaption(newImage, images, attachmentCaptions), + // The id value is stored in a data attribute, so when the + // block is parsed it's converted to a string. Converting + // to a string here ensures it's type is consistent. + id: Object(external_this_lodash_["toString"])(newImage.id) }); - }), function (_ref3) { - var name = _ref3.name, - slug = _ref3.slug; - return { - value: slug, - label: name - }; + }), + columns: attributes.columns ? Math.min(newImages.length, attributes.columns) : attributes.columns + }); + } + + function onUploadError(message) { + noticeOperations.removeAllNotices(); + noticeOperations.createErrorNotice(message); + } + + function setLinkTo(value) { + setAttributes({ + linkTo: value + }); + } + + function setColumnsNumber(value) { + setAttributes({ + columns: value + }); + } + + function toggleImageCrop() { + setAttributes({ + imageCrop: !imageCrop + }); + } + + function getImageCropHelp(checked) { + return checked ? Object(external_this_wp_i18n_["__"])('Thumbnails are cropped to align.') : Object(external_this_wp_i18n_["__"])('Thumbnails are not cropped.'); + } + + function onFocusGalleryCaption() { + setSelectedImage(); + } + + function setImageAttributes(index, newAttributes) { + if (!images[index]) { + return; + } + + setAttributes({ + images: [].concat(Object(toConsumableArray["a" /* default */])(images.slice(0, index)), [gallery_edit_objectSpread(gallery_edit_objectSpread({}, images[index]), newAttributes)], Object(toConsumableArray["a" /* default */])(images.slice(index + 1))) + }); + } + + function getImagesSizeOptions() { + return Object(external_this_lodash_["map"])(Object(external_this_lodash_["filter"])(imageSizes, function (_ref2) { + var slug = _ref2.slug; + return Object(external_this_lodash_["some"])(resizedImages, function (sizes) { + return sizes[slug]; }); - } - }, { - key: "updateImagesSize", - value: function updateImagesSize(sizeSlug) { - var _this$props2 = this.props, - images = _this$props2.attributes.images, - resizedImages = _this$props2.resizedImages; - var updatedImages = Object(external_this_lodash_["map"])(images, function (image) { - if (!image.id) { - return image; - } + }), function (_ref3) { + var name = _ref3.name, + slug = _ref3.slug; + return { + value: slug, + label: name + }; + }); + } - var url = Object(external_this_lodash_["get"])(resizedImages, [parseInt(image.id, 10), sizeSlug]); - return gallery_edit_objectSpread(gallery_edit_objectSpread({}, image), url && { - url: url - }); - }); - this.setAttributes({ - images: updatedImages, - sizeSlug: sizeSlug - }); - } - }, { - key: "componentDidMount", - value: function componentDidMount() { - var _this$props3 = this.props, - attributes = _this$props3.attributes, - mediaUpload = _this$props3.mediaUpload; - var images = attributes.images; - - if (external_this_wp_element_["Platform"].OS === 'web' && images && images.length > 0 && Object(external_this_lodash_["every"])(images, function (_ref4) { - var url = _ref4.url; - return Object(external_this_wp_blob_["isBlobURL"])(url); - })) { - var filesList = Object(external_this_lodash_["map"])(images, function (_ref5) { - var url = _ref5.url; - return Object(external_this_wp_blob_["getBlobByURL"])(url); - }); - Object(external_this_lodash_["forEach"])(images, function (_ref6) { - var url = _ref6.url; - return Object(external_this_wp_blob_["revokeBlobURL"])(url); - }); - mediaUpload({ - filesList: filesList, - onFileChange: this.onSelectImages, - allowedTypes: ['image'] - }); - } - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - // Deselect images when deselecting the block - if (!this.props.isSelected && prevProps.isSelected) { - this.setState({ - selectedImage: null, - captionSelected: false - }); - } // linkTo attribute must be saved so blocks don't break when changing image_default_link_type in options.php - - - if (!this.props.attributes.linkTo) { - var _window, _window$wp, _window$wp$media, _window$wp$media$view, _window$wp$media$view2, _window$wp$media$view3; - - this.setAttributes({ - linkTo: ((_window = window) === null || _window === void 0 ? void 0 : (_window$wp = _window.wp) === null || _window$wp === void 0 ? void 0 : (_window$wp$media = _window$wp.media) === null || _window$wp$media === void 0 ? void 0 : (_window$wp$media$view = _window$wp$media.view) === null || _window$wp$media$view === void 0 ? void 0 : (_window$wp$media$view2 = _window$wp$media$view.settings) === null || _window$wp$media$view2 === void 0 ? void 0 : (_window$wp$media$view3 = _window$wp$media$view2.defaultProps) === null || _window$wp$media$view3 === void 0 ? void 0 : _window$wp$media$view3.link) || constants_LINK_DESTINATION_NONE - }); - } - } - }, { - key: "render", - value: function render() { - var _this$props4 = this.props, - attributes = _this$props4.attributes, - className = _this$props4.className, - isSelected = _this$props4.isSelected, - noticeUI = _this$props4.noticeUI, - insertBlocksAfter = _this$props4.insertBlocksAfter; - var _attributes$columns = attributes.columns, - columns = _attributes$columns === void 0 ? defaultColumnsNumber(attributes) : _attributes$columns, - imageCrop = attributes.imageCrop, - images = attributes.images, - linkTo = attributes.linkTo, - sizeSlug = attributes.sizeSlug; - var hasImages = !!images.length; - var mediaPlaceholder = Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaPlaceholder"], { - addToGallery: hasImages, - isAppender: hasImages, - className: className, - disableMediaButtons: hasImages && !isSelected, - icon: !hasImages && sharedIcon, - labels: { - title: !hasImages && Object(external_this_wp_i18n_["__"])('Gallery'), - instructions: !hasImages && PLACEHOLDER_TEXT - }, - onSelect: this.onSelectImages, - accept: "image/*", - allowedTypes: edit_ALLOWED_MEDIA_TYPES, - multiple: true, - value: images, - onError: this.onUploadError, - notices: hasImages ? undefined : noticeUI, - onFocus: this.props.onFocus - }); - - if (!hasImages) { - return mediaPlaceholder; + function updateImagesSize(newSizeSlug) { + var updatedImages = Object(external_this_lodash_["map"])(images, function (image) { + if (!image.id) { + return image; } - var imageSizeOptions = this.getImagesSizeOptions(); - var shouldShowSizeOptions = hasImages && !Object(external_this_lodash_["isEmpty"])(imageSizeOptions); - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Gallery settings') - }, images.length > 1 && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], Object(esm_extends["a" /* default */])({ - label: Object(external_this_wp_i18n_["__"])('Columns'), - value: columns, - onChange: this.setColumnsNumber, - min: 1, - max: Math.min(MAX_COLUMNS, images.length) - }, MOBILE_CONTROL_PROPS_RANGE_CONTROL, { - required: true - })), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Crop images'), - checked: !!imageCrop, - onChange: this.toggleImageCrop, - help: this.getImageCropHelp - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SelectControl"], { - label: Object(external_this_wp_i18n_["__"])('Link to'), - value: linkTo, - onChange: this.setLinkTo, - options: linkOptions - }), shouldShowSizeOptions && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SelectControl"], { - label: Object(external_this_wp_i18n_["__"])('Image size'), - value: sizeSlug, - options: imageSizeOptions, - onChange: this.updateImagesSize - }))), noticeUI, Object(external_this_wp_element_["createElement"])(gallery_gallery, Object(esm_extends["a" /* default */])({}, this.props, { - selectedImage: this.state.selectedImage, - mediaPlaceholder: mediaPlaceholder, - onMoveBackward: this.onMoveBackward, - onMoveForward: this.onMoveForward, - onRemoveImage: this.onRemoveImage, - onSelectImage: this.onSelectImage, - onDeselectImage: this.onDeselectImage, - onSetImageAttributes: this.setImageAttributes, - onFocusGalleryCaption: this.onFocusGalleryCaption, - insertBlocksAfter: insertBlocksAfter - }))); - } - }]); + var url = Object(external_this_lodash_["get"])(resizedImages, [parseInt(image.id, 10), newSizeSlug]); + return gallery_edit_objectSpread(gallery_edit_objectSpread({}, image), url && { + url: url + }); + }); + setAttributes({ + images: updatedImages, + newSizeSlug: newSizeSlug + }); + } - return GalleryEdit; -}(external_this_wp_element_["Component"]); + Object(external_this_wp_element_["useEffect"])(function () { + if (external_this_wp_element_["Platform"].OS === 'web' && images && images.length > 0 && Object(external_this_lodash_["every"])(images, function (_ref4) { + var url = _ref4.url; + return Object(external_this_wp_blob_["isBlobURL"])(url); + })) { + var filesList = Object(external_this_lodash_["map"])(images, function (_ref5) { + var url = _ref5.url; + return Object(external_this_wp_blob_["getBlobByURL"])(url); + }); + Object(external_this_lodash_["forEach"])(images, function (_ref6) { + var url = _ref6.url; + return Object(external_this_wp_blob_["revokeBlobURL"])(url); + }); + mediaUpload({ + filesList: filesList, + onFileChange: onSelectImages, + allowedTypes: ['image'] + }); + } + }, []); + Object(external_this_wp_element_["useEffect"])(function () { + // Deselect images when deselecting the block + if (!isSelected) { + setSelectedImage(); + } + }, [isSelected]); + Object(external_this_wp_element_["useEffect"])(function () { + // linkTo attribute must be saved so blocks don't break when changing + // image_default_link_type in options.php + if (!linkTo) { + var _window, _window$wp, _window$wp$media, _window$wp$media$view, _window$wp$media$view2, _window$wp$media$view3; + + setAttributes({ + linkTo: ((_window = window) === null || _window === void 0 ? void 0 : (_window$wp = _window.wp) === null || _window$wp === void 0 ? void 0 : (_window$wp$media = _window$wp.media) === null || _window$wp$media === void 0 ? void 0 : (_window$wp$media$view = _window$wp$media.view) === null || _window$wp$media$view === void 0 ? void 0 : (_window$wp$media$view2 = _window$wp$media$view.settings) === null || _window$wp$media$view2 === void 0 ? void 0 : (_window$wp$media$view3 = _window$wp$media$view2.defaultProps) === null || _window$wp$media$view3 === void 0 ? void 0 : _window$wp$media$view3.link) || constants_LINK_DESTINATION_NONE + }); + } + }, [linkTo]); + var hasImages = !!images.length; + var mediaPlaceholder = Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaPlaceholder"], { + addToGallery: hasImages, + isAppender: hasImages, + className: className, + disableMediaButtons: hasImages && !isSelected, + icon: !hasImages && sharedIcon, + labels: { + title: !hasImages && Object(external_this_wp_i18n_["__"])('Gallery'), + instructions: !hasImages && PLACEHOLDER_TEXT + }, + onSelect: onSelectImages, + accept: "image/*", + allowedTypes: edit_ALLOWED_MEDIA_TYPES, + multiple: true, + value: images, + onError: onUploadError, + notices: hasImages ? undefined : noticeUI, + onFocus: onFocus + }); + + if (!hasImages) { + return mediaPlaceholder; + } + + var imageSizeOptions = getImagesSizeOptions(); + var shouldShowSizeOptions = hasImages && !Object(external_this_lodash_["isEmpty"])(imageSizeOptions); + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Gallery settings') + }, images.length > 1 && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], Object(esm_extends["a" /* default */])({ + label: Object(external_this_wp_i18n_["__"])('Columns'), + value: columns, + onChange: setColumnsNumber, + min: 1, + max: Math.min(MAX_COLUMNS, images.length) + }, MOBILE_CONTROL_PROPS_RANGE_CONTROL, { + required: true + })), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Crop images'), + checked: !!imageCrop, + onChange: toggleImageCrop, + help: getImageCropHelp + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SelectControl"], { + label: Object(external_this_wp_i18n_["__"])('Link to'), + value: linkTo, + onChange: setLinkTo, + options: linkOptions + }), shouldShowSizeOptions && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SelectControl"], { + label: Object(external_this_wp_i18n_["__"])('Image size'), + value: sizeSlug, + options: imageSizeOptions, + onChange: updateImagesSize + }))), noticeUI, Object(external_this_wp_element_["createElement"])(gallery_gallery, Object(esm_extends["a" /* default */])({}, props, { + selectedImage: selectedImage, + mediaPlaceholder: mediaPlaceholder, + onMoveBackward: onMoveBackward, + onMoveForward: onMoveForward, + onRemoveImage: onRemoveImage, + onSelectImage: onSelectImage, + onDeselectImage: onDeselectImage, + onSetImageAttributes: setImageAttributes, + onFocusGalleryCaption: onFocusGalleryCaption + }))); +} /* harmony default export */ var gallery_edit = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select, _ref7) { var ids = _ref7.attributes.ids, @@ -8554,7 +8670,7 @@ var edit_GalleryEdit = /*#__PURE__*/function (_Component) { }; }), external_this_wp_components_["withNotices"], Object(external_this_wp_viewport_["withViewportMatch"])({ isNarrow: '< small' -})])(edit_GalleryEdit)); +})])(GalleryEdit)); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/save.js @@ -8596,7 +8712,7 @@ function gallery_save_save(_ref) { var img = Object(external_this_wp_element_["createElement"])("img", { src: image.url, - alt: image.alt, + alt: image.alt !== '' ? image.alt : image.caption, "data-id": image.id, "data-full-url": image.fullUrl, "data-link": image.link, @@ -8915,7 +9031,7 @@ var archive = Object(external_this_wp_element_["createElement"])(external_this_w /* harmony default export */ var library_archive = (archive); // EXTERNAL MODULE: external {"this":["wp","serverSideRender"]} -var external_this_wp_serverSideRender_ = __webpack_require__(86); +var external_this_wp_serverSideRender_ = __webpack_require__(87); var external_this_wp_serverSideRender_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_serverSideRender_); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/archives/edit.js @@ -8951,10 +9067,10 @@ function ArchivesEdit(_ref) { showPostCounts: !showPostCounts }); } - }))), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_serverSideRender_default.a, { + }))), Object(external_this_wp_element_["createElement"])("div", Object(external_this_wp_blockEditor_["useBlockProps"])(), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_serverSideRender_default.a, { block: "core/archives", attributes: attributes - }))); + })))); } // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/archives/index.js @@ -8968,6 +9084,7 @@ function ArchivesEdit(_ref) { */ var archives_metadata = { + apiVersion: 2, name: "core/archives", category: "widgets", attributes: { @@ -9113,7 +9230,7 @@ function AudioEdit(_ref) { loop = attributes.loop, preload = attributes.preload, src = attributes.src; - var blockWrapperProps = Object(external_this_wp_blockEditor_["__experimentalUseBlockWrapperProps"])(); + var blockProps = Object(external_this_wp_blockEditor_["useBlockProps"])(); var mediaUpload = Object(external_this_wp_data_["useSelect"])(function (select) { var _select = select('core/block-editor'), getSettings = _select.getSettings; @@ -9210,7 +9327,7 @@ function AudioEdit(_ref) { } if (!src) { - return Object(external_this_wp_element_["createElement"])("div", blockWrapperProps, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaPlaceholder"], { + return Object(external_this_wp_element_["createElement"])("div", blockProps, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaPlaceholder"], { icon: Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], { icon: library_audio }), @@ -9265,7 +9382,7 @@ function AudioEdit(_ref) { value: 'none', label: Object(external_this_wp_i18n_["__"])('None') }] - }))), Object(external_this_wp_element_["createElement"])("figure", blockWrapperProps, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"], null, Object(external_this_wp_element_["createElement"])("audio", { + }))), Object(external_this_wp_element_["createElement"])("figure", blockProps, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"], null, Object(external_this_wp_element_["createElement"])("audio", { controls: "controls", src: src })), (!external_this_wp_blockEditor_["RichText"].isEmpty(caption) || isSelected) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { @@ -9300,7 +9417,7 @@ function audio_save_save(_ref) { loop = attributes.loop, preload = attributes.preload, src = attributes.src; - return src && Object(external_this_wp_element_["createElement"])("figure", null, Object(external_this_wp_element_["createElement"])("audio", { + return src && Object(external_this_wp_element_["createElement"])("figure", external_this_wp_blockEditor_["useBlockProps"].save(), Object(external_this_wp_element_["createElement"])("audio", { controls: "controls", src: src, autoPlay: autoplay, @@ -9390,6 +9507,7 @@ var audio_transforms_transforms = { var audio_metadata = { + apiVersion: 2, name: "core/audio", category: "media", attributes: { @@ -9428,8 +9546,7 @@ var audio_metadata = { }, supports: { anchor: true, - align: true, - lightBlockWrapper: true + align: true } }; @@ -9471,17 +9588,17 @@ var button_button = Object(external_this_wp_element_["createElement"])(external_ * Internal dependencies */ -var _name$category$suppor = { +var buttons_transforms_apiVersion$name$cate = { + apiVersion: 2, name: "core/buttons", category: "design", supports: { anchor: true, align: true, - alignWide: false, - lightBlockWrapper: true + alignWide: false } }, - buttons_transforms_name = _name$category$suppor.name; + buttons_transforms_name = buttons_transforms_apiVersion$name$cate.name; var buttons_transforms_transforms = { from: [{ type: 'block', @@ -9576,7 +9693,7 @@ var button_deprecated_deprecated = [{ supports: { align: true, alignWide: false, - __experimentalColor: { + color: { gradients: true } }, @@ -9938,10 +10055,10 @@ var button_deprecated_deprecated = [{ /* harmony default export */ var button_deprecated = (button_deprecated_deprecated); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/link.js -var library_link = __webpack_require__(184); +var library_link = __webpack_require__(186); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/link-off.js -var link_off = __webpack_require__(217); +var link_off = __webpack_require__(218); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/button/color-edit.js @@ -10384,8 +10501,8 @@ function ButtonEdit(props) { }); }, [rel, setAttributes]); var colorProps = getColorAndStyleProps(attributes, colors, true); - var blockWrapperProps = Object(external_this_wp_blockEditor_["__experimentalUseBlockWrapperProps"])(); - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(color_edit, props), Object(external_this_wp_element_["createElement"])("div", blockWrapperProps, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + var blockProps = Object(external_this_wp_blockEditor_["useBlockProps"])(); + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(color_edit, props), Object(external_this_wp_element_["createElement"])("div", blockProps, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { placeholder: placeholder || Object(external_this_wp_i18n_["__"])('Add text…'), value: text, onChange: function onChange(value) { @@ -10474,7 +10591,7 @@ function button_save_save(_ref) { // A title will no longer be assigned for new or updated button block links. - return Object(external_this_wp_element_["createElement"])("div", null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + return Object(external_this_wp_element_["createElement"])("div", external_this_wp_blockEditor_["useBlockProps"].save(), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { tagName: "a", className: buttonClasses, href: url, @@ -10505,6 +10622,7 @@ function button_objectSpread(target) { for (var i = 1; i < arguments.length; i++ var button_metadata = { + apiVersion: 2, name: "core/button", category: "design", parent: ["core/buttons"], @@ -10562,7 +10680,7 @@ var button_metadata = { align: true, alignWide: false, reusable: false, - lightBlockWrapper: true + __experimentalSelector: ".wp-block-button > a" } }; @@ -10620,16 +10738,15 @@ var alignmentHooksSetting = { }; function ButtonsEdit() { - var blockWrapperProps = Object(external_this_wp_blockEditor_["__experimentalUseBlockWrapperProps"])(); + var blockProps = Object(external_this_wp_blockEditor_["useBlockProps"])(); + var innerBlocksProps = Object(external_this_wp_blockEditor_["__experimentalUseInnerBlocksProps"])(blockProps, { + allowedBlocks: ALLOWED_BLOCKS, + template: BUTTONS_TEMPLATE, + orientation: 'horizontal' + }); return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalAlignmentHookSettingsProvider"], { value: alignmentHooksSetting - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"], { - allowedBlocks: ALLOWED_BLOCKS, - __experimentalPassedProps: blockWrapperProps, - __experimentalTagName: "div", - template: BUTTONS_TEMPLATE, - orientation: "horizontal" - })); + }, Object(external_this_wp_element_["createElement"])("div", innerBlocksProps)); } /* harmony default export */ var buttons_edit = (ButtonsEdit); @@ -10642,7 +10759,7 @@ function ButtonsEdit() { */ function buttons_save_save() { - return Object(external_this_wp_element_["createElement"])("div", null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"].Content, null)); + return Object(external_this_wp_element_["createElement"])("div", external_this_wp_blockEditor_["useBlockProps"].save(), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"].Content, null)); } // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/buttons/index.js @@ -10658,13 +10775,13 @@ function buttons_save_save() { var buttons_metadata = { + apiVersion: 2, name: "core/buttons", category: "design", supports: { anchor: true, align: true, - alignWide: false, - lightBlockWrapper: true + alignWide: false } }; @@ -10732,6 +10849,7 @@ function calendar_edit_objectSpread(target) { for (var i = 1; i < arguments.leng + var getYearMonth = memize_default()(function (date) { if (!date) { return {}; @@ -10755,10 +10873,10 @@ function CalendarEdit(_ref) { return postType === 'post' ? getEditedPostAttribute('date') : undefined; }, []); - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_serverSideRender_default.a, { + return Object(external_this_wp_element_["createElement"])("div", Object(external_this_wp_blockEditor_["useBlockProps"])(), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_serverSideRender_default.a, { block: "core/calendar", attributes: calendar_edit_objectSpread(calendar_edit_objectSpread({}, attributes), getYearMonth(date)) - })); + }))); } // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/calendar/index.js @@ -10772,6 +10890,7 @@ function CalendarEdit(_ref) { */ var calendar_metadata = { + apiVersion: 2, name: "core/calendar", category: "widgets", attributes: { @@ -10832,15 +10951,6 @@ var pin = Object(external_this_wp_element_["createElement"])(external_this_wp_pr - - - - - -function categories_edit_createSuper(Derived) { var hasNativeReflectConstruct = categories_edit_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; } - -function categories_edit_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } - /** * External dependencies */ @@ -10855,221 +10965,140 @@ function categories_edit_isNativeReflectConstruct() { if (typeof Reflect === "un +function CategoriesEdit(_ref) { + var _ref$attributes = _ref.attributes, + displayAsDropdown = _ref$attributes.displayAsDropdown, + showHierarchy = _ref$attributes.showHierarchy, + showPostCounts = _ref$attributes.showPostCounts, + setAttributes = _ref.setAttributes; + var selectId = Object(external_this_wp_compose_["useInstanceId"])(CategoriesEdit, 'blocks-category-select'); + var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { + var _select = select('core'), + getEntityRecords = _select.getEntityRecords; -var edit_CategoriesEdit = /*#__PURE__*/function (_Component) { - Object(inherits["a" /* default */])(CategoriesEdit, _Component); + var _select2 = select('core/data'), + isResolving = _select2.isResolving; - var _super = categories_edit_createSuper(CategoriesEdit); + var query = { + per_page: -1, + hide_empty: true + }; + return { + categories: getEntityRecords('taxonomy', 'category', query), + isRequesting: isResolving('core', 'getEntityRecords', ['taxonomy', 'category', query]) + }; + }, []), + categories = _useSelect.categories, + isRequesting = _useSelect.isRequesting; - function CategoriesEdit() { - var _this; - - Object(classCallCheck["a" /* default */])(this, CategoriesEdit); - - _this = _super.apply(this, arguments); - _this.toggleDisplayAsDropdown = _this.toggleDisplayAsDropdown.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.toggleShowPostCounts = _this.toggleShowPostCounts.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.toggleShowHierarchy = _this.toggleShowHierarchy.bind(Object(assertThisInitialized["a" /* default */])(_this)); - return _this; - } - - Object(createClass["a" /* default */])(CategoriesEdit, [{ - key: "toggleDisplayAsDropdown", - value: function toggleDisplayAsDropdown() { - var _this$props = this.props, - attributes = _this$props.attributes, - setAttributes = _this$props.setAttributes; - var displayAsDropdown = attributes.displayAsDropdown; - setAttributes({ - displayAsDropdown: !displayAsDropdown - }); + var getCategoriesList = function getCategoriesList(parentId) { + if (!(categories === null || categories === void 0 ? void 0 : categories.length)) { + return []; } - }, { - key: "toggleShowPostCounts", - value: function toggleShowPostCounts() { - var _this$props2 = this.props, - attributes = _this$props2.attributes, - setAttributes = _this$props2.setAttributes; - var showPostCounts = attributes.showPostCounts; - setAttributes({ - showPostCounts: !showPostCounts - }); + + if (parentId === null) { + return categories; } - }, { - key: "toggleShowHierarchy", - value: function toggleShowHierarchy() { - var _this$props3 = this.props, - attributes = _this$props3.attributes, - setAttributes = _this$props3.setAttributes; - var showHierarchy = attributes.showHierarchy; - setAttributes({ - showHierarchy: !showHierarchy - }); - } - }, { - key: "getCategories", - value: function getCategories() { - var parentId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; - var categories = this.props.categories; - if (!categories || !categories.length) { - return []; - } - - if (parentId === null) { - return categories; - } - - return categories.filter(function (category) { - return category.parent === parentId; - }); - } - }, { - key: "getCategoryListClassName", - value: function getCategoryListClassName(level) { - return "wp-block-categories__list wp-block-categories__list-level-".concat(level); - } - }, { - key: "renderCategoryName", - value: function renderCategoryName(category) { - if (!category.name) { - return Object(external_this_wp_i18n_["__"])('(Untitled)'); - } - - return Object(external_this_lodash_["unescape"])(category.name).trim(); - } - }, { - key: "renderCategoryList", - value: function renderCategoryList() { - var _this2 = this; - - var showHierarchy = this.props.attributes.showHierarchy; - var parentId = showHierarchy ? 0 : null; - var categories = this.getCategories(parentId); - return Object(external_this_wp_element_["createElement"])("ul", { - className: this.getCategoryListClassName(0) - }, categories.map(function (category) { - return _this2.renderCategoryListItem(category, 0); - })); - } - }, { - key: "renderCategoryListItem", - value: function renderCategoryListItem(category, level) { - var _this3 = this; - - var _this$props$attribute = this.props.attributes, - showHierarchy = _this$props$attribute.showHierarchy, - showPostCounts = _this$props$attribute.showPostCounts; - var childCategories = this.getCategories(category.id); - return Object(external_this_wp_element_["createElement"])("li", { - key: category.id - }, Object(external_this_wp_element_["createElement"])("a", { - href: category.link, - target: "_blank", - rel: "noreferrer noopener" - }, this.renderCategoryName(category)), showPostCounts && Object(external_this_wp_element_["createElement"])("span", { - className: "wp-block-categories__post-count" - }, ' ', "(", category.count, ")"), showHierarchy && !!childCategories.length && Object(external_this_wp_element_["createElement"])("ul", { - className: this.getCategoryListClassName(level + 1) - }, childCategories.map(function (childCategory) { - return _this3.renderCategoryListItem(childCategory, level + 1); - }))); - } - }, { - key: "renderCategoryDropdown", - value: function renderCategoryDropdown() { - var _this4 = this; - - var instanceId = this.props.instanceId; - var showHierarchy = this.props.attributes.showHierarchy; - var parentId = showHierarchy ? 0 : null; - var categories = this.getCategories(parentId); - var selectId = "blocks-category-select-".concat(instanceId); - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["VisuallyHidden"], { - as: "label", - htmlFor: selectId - }, Object(external_this_wp_i18n_["__"])('Categories')), Object(external_this_wp_element_["createElement"])("select", { - id: selectId, - className: "wp-block-categories__dropdown" - }, categories.map(function (category) { - return _this4.renderCategoryDropdownItem(category, 0); - }))); - } - }, { - key: "renderCategoryDropdownItem", - value: function renderCategoryDropdownItem(category, level) { - var _this5 = this; - - var _this$props$attribute2 = this.props.attributes, - showHierarchy = _this$props$attribute2.showHierarchy, - showPostCounts = _this$props$attribute2.showPostCounts; - var childCategories = this.getCategories(category.id); - return [Object(external_this_wp_element_["createElement"])("option", { - key: category.id - }, Object(external_this_lodash_["times"])(level * 3, function () { - return '\xa0'; - }), this.renderCategoryName(category), !!showPostCounts ? " (".concat(category.count, ")") : ''), showHierarchy && !!childCategories.length && childCategories.map(function (childCategory) { - return _this5.renderCategoryDropdownItem(childCategory, level + 1); - })]; - } - }, { - key: "render", - value: function render() { - var _this$props4 = this.props, - attributes = _this$props4.attributes, - isRequesting = _this$props4.isRequesting; - var displayAsDropdown = attributes.displayAsDropdown, - showHierarchy = attributes.showHierarchy, - showPostCounts = attributes.showPostCounts; - var inspectorControls = Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Categories settings') - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Display as dropdown'), - checked: displayAsDropdown, - onChange: this.toggleDisplayAsDropdown - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Show hierarchy'), - checked: showHierarchy, - onChange: this.toggleShowHierarchy - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Show post counts'), - checked: showPostCounts, - onChange: this.toggleShowPostCounts - }))); - - if (isRequesting) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, inspectorControls, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Placeholder"], { - icon: library_pin, - label: Object(external_this_wp_i18n_["__"])('Categories') - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Spinner"], null))); - } - - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, inspectorControls, Object(external_this_wp_element_["createElement"])("div", { - className: this.props.className - }, displayAsDropdown ? this.renderCategoryDropdown() : this.renderCategoryList())); - } - }]); - - return CategoriesEdit; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var categories_edit = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select) { - var _select = select('core'), - getEntityRecords = _select.getEntityRecords; - - var _select2 = select('core/data'), - isResolving = _select2.isResolving; - - var query = { - per_page: -1, - hide_empty: true + return categories.filter(function (_ref2) { + var parent = _ref2.parent; + return parent === parentId; + }); }; - return { - categories: getEntityRecords('taxonomy', 'category', query), - isRequesting: isResolving('core', 'getEntityRecords', ['taxonomy', 'category', query]) + + var getCategoryListClassName = function getCategoryListClassName(level) { + return "wp-block-categories__list wp-block-categories__list-level-".concat(level); }; -}), external_this_wp_compose_["withInstanceId"])(edit_CategoriesEdit)); + + var toggleAttribute = function toggleAttribute(attributeName) { + return function (newValue) { + return setAttributes(Object(defineProperty["a" /* default */])({}, attributeName, newValue)); + }; + }; + + var renderCategoryName = function renderCategoryName(name) { + return !name ? Object(external_this_wp_i18n_["__"])('(Untitled)') : Object(external_this_lodash_["unescape"])(name).trim(); + }; + + var renderCategoryList = function renderCategoryList() { + var parentId = showHierarchy ? 0 : null; + var categoriesList = getCategoriesList(parentId); + return Object(external_this_wp_element_["createElement"])("ul", { + className: getCategoryListClassName(0) + }, categoriesList.map(function (category) { + return renderCategoryListItem(category, 0); + })); + }; + + var renderCategoryListItem = function renderCategoryListItem(category, level) { + var childCategories = getCategoriesList(category.id); + var id = category.id, + link = category.link, + count = category.count, + name = category.name; + return Object(external_this_wp_element_["createElement"])("li", { + key: id + }, Object(external_this_wp_element_["createElement"])("a", { + href: link, + target: "_blank", + rel: "noreferrer noopener" + }, renderCategoryName(name)), showPostCounts && Object(external_this_wp_element_["createElement"])("span", { + className: "wp-block-categories__post-count" + }, " (".concat(count, ")")), showHierarchy && !!childCategories.length && Object(external_this_wp_element_["createElement"])("ul", { + className: getCategoryListClassName(level + 1) + }, childCategories.map(function (childCategory) { + return renderCategoryListItem(childCategory, level + 1); + }))); + }; + + var renderCategoryDropdown = function renderCategoryDropdown() { + var parentId = showHierarchy ? 0 : null; + var categoriesList = getCategoriesList(parentId); + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["VisuallyHidden"], { + as: "label", + htmlFor: selectId + }, Object(external_this_wp_i18n_["__"])('Categories')), Object(external_this_wp_element_["createElement"])("select", { + id: selectId, + className: "wp-block-categories__dropdown" + }, categoriesList.map(function (category) { + return renderCategoryDropdownItem(category, 0); + }))); + }; + + var renderCategoryDropdownItem = function renderCategoryDropdownItem(category, level) { + var id = category.id, + count = category.count, + name = category.name; + var childCategories = getCategoriesList(id); + return [Object(external_this_wp_element_["createElement"])("option", { + key: id + }, Object(external_this_lodash_["times"])(level * 3, function () { + return '\xa0'; + }), renderCategoryName(name), showPostCounts && " (".concat(count, ")")), showHierarchy && !!childCategories.length && childCategories.map(function (childCategory) { + return renderCategoryDropdownItem(childCategory, level + 1); + })]; + }; + + return Object(external_this_wp_element_["createElement"])("div", Object(external_this_wp_blockEditor_["useBlockProps"])(), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Categories settings') + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Display as dropdown'), + checked: displayAsDropdown, + onChange: toggleAttribute('displayAsDropdown') + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Show hierarchy'), + checked: showHierarchy, + onChange: toggleAttribute('showHierarchy') + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Show post counts'), + checked: showPostCounts, + onChange: toggleAttribute('showPostCounts') + }))), isRequesting && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Placeholder"], { + icon: library_pin, + label: Object(external_this_wp_i18n_["__"])('Categories') + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Spinner"], null)), !isRequesting && (displayAsDropdown ? renderCategoryDropdown() : renderCategoryList())); +} // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/categories/index.js /** @@ -11082,6 +11111,7 @@ var edit_CategoriesEdit = /*#__PURE__*/function (_Component) { */ var categories_metadata = { + apiVersion: 2, name: "core/categories", category: "widgets", attributes: { @@ -11111,11 +11141,11 @@ var categories_settings = { description: Object(external_this_wp_i18n_["__"])('Display a list of all categories.'), icon: library_category, example: {}, - edit: categories_edit + edit: CategoriesEdit }; // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/code.js -var code = __webpack_require__(316); +var code = __webpack_require__(320); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/code/edit.js @@ -11128,8 +11158,8 @@ var code = __webpack_require__(316); function CodeEdit(_ref) { var attributes = _ref.attributes, setAttributes = _ref.setAttributes; - var blockWrapperProps = Object(external_this_wp_blockEditor_["__experimentalUseBlockWrapperProps"])(); - return Object(external_this_wp_element_["createElement"])("pre", blockWrapperProps, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + var blockProps = Object(external_this_wp_blockEditor_["useBlockProps"])(); + return Object(external_this_wp_element_["createElement"])("pre", blockProps, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { tagName: "code", value: attributes.content, onChange: function onChange(content) { @@ -11208,7 +11238,7 @@ function escapeProtocolInIsolatedUrls(content) { function code_save_save(_ref) { var attributes = _ref.attributes; - return Object(external_this_wp_element_["createElement"])("pre", null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + return Object(external_this_wp_element_["createElement"])("pre", external_this_wp_blockEditor_["useBlockProps"].save(), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { tagName: "code", value: utils_escape(attributes.content) })); @@ -11267,6 +11297,7 @@ var code_transforms_transforms = { var code_metadata = { + apiVersion: 2, name: "core/code", category: "text", attributes: { @@ -11277,8 +11308,7 @@ var code_metadata = { } }, supports: { - anchor: true, - lightBlockWrapper: true + anchor: true } }; @@ -11651,7 +11681,6 @@ function getMappedColumnWidths(blocks, widths) { - /** * External dependencies */ @@ -11698,9 +11727,14 @@ function ColumnsEditContainer(_ref) { count = _useSelect.count; var classes = classnames_default()(Object(defineProperty["a" /* default */])({}, "are-vertically-aligned-".concat(verticalAlignment), verticalAlignment)); - var blockWrapperProps = Object(external_this_wp_blockEditor_["__experimentalUseBlockWrapperProps"])({ + var blockProps = Object(external_this_wp_blockEditor_["useBlockProps"])({ className: classes }); + var innerBlocksProps = Object(external_this_wp_blockEditor_["__experimentalUseInnerBlocksProps"])(blockProps, { + allowedBlocks: edit_ALLOWED_BLOCKS, + orientation: 'horizontal', + renderAppender: false + }); return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockVerticalAlignmentToolbar"], { onChange: updateAlignment, value: verticalAlignment @@ -11710,18 +11744,12 @@ function ColumnsEditContainer(_ref) { onChange: function onChange(value) { return updateColumns(count, value); }, - min: 2, + min: 1, max: Math.max(6, count) }), count > 6 && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Notice"], { status: "warning", isDismissible: false - }, Object(external_this_wp_i18n_["__"])('This column count exceeds the recommended amount and may cause visual breakage.')))), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"], { - allowedBlocks: edit_ALLOWED_BLOCKS, - orientation: "horizontal", - __experimentalTagName: "div", - __experimentalPassedProps: blockWrapperProps, - renderAppender: false - })); + }, Object(external_this_wp_i18n_["__"])('This column count exceeds the recommended amount and may cause visual breakage.')))), Object(external_this_wp_element_["createElement"])("div", innerBlocksProps)); } var ColumnsEditContainerWrapper = Object(external_this_wp_data_["withDispatch"])(function (dispatch, ownProps, registry) { @@ -11810,22 +11838,10 @@ var ColumnsEditContainerWrapper = Object(external_this_wp_data_["withDispatch"]) }; })(ColumnsEditContainer); -var edit_createBlocksFromInnerBlocksTemplate = function createBlocksFromInnerBlocksTemplate(innerBlocksTemplate) { - return Object(external_this_lodash_["map"])(innerBlocksTemplate, function (_ref2) { - var _ref3 = Object(slicedToArray["a" /* default */])(_ref2, 3), - name = _ref3[0], - attributes = _ref3[1], - _ref3$ = _ref3[2], - innerBlocks = _ref3$ === void 0 ? [] : _ref3$; - - return Object(external_this_wp_blocks_["createBlock"])(name, attributes, createBlocksFromInnerBlocksTemplate(innerBlocks)); - }); -}; - -function Placeholder(_ref4) { - var clientId = _ref4.clientId, - name = _ref4.name, - setAttributes = _ref4.setAttributes; +function Placeholder(_ref2) { + var clientId = _ref2.clientId, + name = _ref2.name, + setAttributes = _ref2.setAttributes; var _useSelect2 = Object(external_this_wp_data_["useSelect"])(function (select) { var _select = select('core/blocks'), @@ -11846,8 +11862,8 @@ function Placeholder(_ref4) { var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), replaceInnerBlocks = _useDispatch.replaceInnerBlocks; - var blockWrapperProps = Object(external_this_wp_blockEditor_["__experimentalUseBlockWrapperProps"])(); - return Object(external_this_wp_element_["createElement"])("div", blockWrapperProps, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalBlockVariationPicker"], { + var blockProps = Object(external_this_wp_blockEditor_["useBlockProps"])(); + return Object(external_this_wp_element_["createElement"])("div", blockProps, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalBlockVariationPicker"], { icon: Object(external_this_lodash_["get"])(blockType, ['icon', 'src']), label: Object(external_this_lodash_["get"])(blockType, ['title']), variations: variations, @@ -11859,7 +11875,7 @@ function Placeholder(_ref4) { } if (nextVariation.innerBlocks) { - replaceInnerBlocks(clientId, edit_createBlocksFromInnerBlocksTemplate(nextVariation.innerBlocks)); + replaceInnerBlocks(clientId, Object(external_this_wp_blocks_["createBlocksFromInnerBlocksTemplate"])(nextVariation.innerBlocks)); } }, allowSkip: true @@ -11894,9 +11910,9 @@ function columns_save_save(_ref) { var attributes = _ref.attributes; var verticalAlignment = attributes.verticalAlignment; var className = classnames_default()(Object(defineProperty["a" /* default */])({}, "are-vertically-aligned-".concat(verticalAlignment), verticalAlignment)); - return Object(external_this_wp_element_["createElement"])("div", { - className: className ? className : undefined - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"].Content, null)); + return Object(external_this_wp_element_["createElement"])("div", external_this_wp_blockEditor_["useBlockProps"].save({ + className: className + }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"].Content, null)); } // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/columns/variations.js @@ -11916,6 +11932,22 @@ function columns_save_save(_ref) { */ var variations_variations = [{ + name: 'one-column-full', + title: Object(external_this_wp_i18n_["__"])('100'), + description: Object(external_this_wp_i18n_["__"])('One column'), + icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + width: "48", + height: "48", + viewBox: "0 0 48 48", + xmlns: "http://www.w3.org/2000/svg" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + fillRule: "evenodd", + clipRule: "evenodd", + d: "m39.0625 14h-30.0625v20.0938h30.0625zm-30.0625-2c-1.10457 0-2 .8954-2 2v20.0938c0 1.1045.89543 2 2 2h30.0625c1.1046 0 2-.8955 2-2v-20.0938c0-1.1046-.8954-2-2-2z" + })), + innerBlocks: [['core/column']], + scope: ['block'] +}, { name: 'two-columns-equal', title: Object(external_this_wp_i18n_["__"])('50 / 50'), description: Object(external_this_wp_i18n_["__"])('Two columns; equal split'), @@ -11947,9 +11979,9 @@ var variations_variations = [{ d: "M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H20V34H39ZM18 34H9V14H18V34Z" })), innerBlocks: [['core/column', { - width: 33.33 + width: '33.33%' }], ['core/column', { - width: 66.66 + width: '66.66%' }]], scope: ['block'] }, { @@ -11967,9 +11999,9 @@ var variations_variations = [{ d: "M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H30V34H39ZM28 34H9V14H28V34Z" })), innerBlocks: [['core/column', { - width: 66.66 + width: '66.66%' }], ['core/column', { - width: 33.33 + width: '33.33%' }]], scope: ['block'] }, { @@ -12001,16 +12033,53 @@ var variations_variations = [{ d: "M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM31 34H17V14h14v20zm2 0V14h6v20h-6zm-18 0H9V14h6v20z" })), innerBlocks: [['core/column', { - width: 25 + width: '25%' }], ['core/column', { - width: 50 + width: '50%' }], ['core/column', { - width: 25 + width: '25%' }]], scope: ['block'] }]; /* harmony default export */ var columns_variations = (variations_variations); +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/columns/transforms.js + + +function columns_transforms_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function columns_transforms_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { columns_transforms_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { columns_transforms_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * WordPress dependencies + */ + +var MAXIMUM_SELECTED_BLOCKS = 6; +var columns_transforms_transforms = { + from: [{ + type: 'block', + isMultiBlock: true, + blocks: ['*'], + __experimentalConvert: function __experimentalConvert(blocks) { + var columnWidth = +(100 / blocks.length).toFixed(2); + var innerBlocksTemplate = blocks.map(function (_ref) { + var name = _ref.name, + attributes = _ref.attributes, + innerBlocks = _ref.innerBlocks; + return ['core/column', { + width: "".concat(columnWidth, "%") + }, [[name, columns_transforms_objectSpread({}, attributes), innerBlocks]]]; + }); + return Object(external_this_wp_blocks_["createBlock"])('core/columns', {}, Object(external_this_wp_blocks_["createBlocksFromInnerBlocksTemplate"])(innerBlocksTemplate)); + }, + isMatch: function isMatch(_ref2) { + var selectedBlocksLength = _ref2.length; + return selectedBlocksLength && selectedBlocksLength <= MAXIMUM_SELECTED_BLOCKS; + } + }] +}; +/* harmony default export */ var columns_transforms = (columns_transforms_transforms); + // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/columns/index.js /** * WordPress dependencies @@ -12024,6 +12093,7 @@ var variations_variations = [{ var columns_metadata = { + apiVersion: 2, name: "core/columns", category: "design", attributes: { @@ -12035,15 +12105,15 @@ var columns_metadata = { anchor: true, align: ["wide", "full"], html: false, - lightBlockWrapper: true, - __experimentalColor: { + color: { gradients: true, - linkColor: true + link: true } } }; + var columns_name = columns_metadata.name; var columns_settings = { @@ -12091,7 +12161,8 @@ var columns_settings = { }, deprecated: columns_deprecated, edit: columns_edit, - save: columns_save_save + save: columns_save_save, + transforms: columns_transforms }; // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/column.js @@ -12109,6 +12180,60 @@ var column = Object(external_this_wp_element_["createElement"])(external_this_wp })); /* harmony default export */ var library_column = (column); +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/column/deprecated.js + + + +function column_deprecated_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function column_deprecated_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { column_deprecated_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { column_deprecated_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + +var column_deprecated_deprecated = [{ + attributes: { + verticalAlignment: { + type: 'string' + }, + width: { + type: 'number', + min: 0, + max: 100 + } + }, + migrate: function migrate(attributes) { + return column_deprecated_objectSpread(column_deprecated_objectSpread({}, attributes), {}, { + width: "".concat(attributes.width, "%") + }); + }, + save: function save(_ref) { + var attributes = _ref.attributes; + var verticalAlignment = attributes.verticalAlignment, + width = attributes.width; + var wrapperClasses = classnames_default()(Object(defineProperty["a" /* default */])({}, "is-vertically-aligned-".concat(verticalAlignment), verticalAlignment)); + var style; + + if (Number.isFinite(width)) { + style = { + flexBasis: width + '%' + }; + } + + return Object(external_this_wp_element_["createElement"])("div", { + className: wrapperClasses, + style: style + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"].Content, null)); + } +}]; +/* harmony default export */ var column_deprecated = (column_deprecated_deprecated); + // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/column/edit.js @@ -12130,6 +12255,8 @@ function ColumnEdit(_ref) { var _ref$attributes = _ref.attributes, verticalAlignment = _ref$attributes.verticalAlignment, width = _ref$attributes.width, + _ref$attributes$templ = _ref$attributes.templateLock, + templateLock = _ref$attributes$templ === void 0 ? false : _ref$attributes$templ, setAttributes = _ref.setAttributes, clientId = _ref.clientId; var classes = classnames_default()('block-core-columns', Object(defineProperty["a" /* default */])({}, "is-vertically-aligned-".concat(verticalAlignment), verticalAlignment)); @@ -12161,38 +12288,54 @@ function ColumnEdit(_ref) { }); }; - var hasWidth = Number.isFinite(width); - var blockWrapperProps = Object(external_this_wp_blockEditor_["__experimentalUseBlockWrapperProps"])({ + var blockProps = Object(external_this_wp_blockEditor_["useBlockProps"])({ className: classes, - style: hasWidth ? { - flexBasis: width + '%' + style: width ? { + flexBasis: width } : undefined }); + var innerBlocksProps = Object(external_this_wp_blockEditor_["__experimentalUseInnerBlocksProps"])(blockProps, { + templateLock: templateLock, + renderAppender: hasChildBlocks ? undefined : external_this_wp_blockEditor_["InnerBlocks"].ButtonBlockAppender + }); return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockVerticalAlignmentToolbar"], { onChange: updateAlignment, value: verticalAlignment })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { title: Object(external_this_wp_i18n_["__"])('Column settings') - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], { - label: Object(external_this_wp_i18n_["__"])('Percentage width'), + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["__experimentalUnitControl"], { + label: Object(external_this_wp_i18n_["__"])('Width'), + labelPosition: "edge", + __unstableInputWidth: "80px", value: width || '', onChange: function onChange(nextWidth) { + nextWidth = 0 > parseFloat(nextWidth) ? '0' : nextWidth; setAttributes({ width: nextWidth }); }, - min: 0, - max: 100, - step: 0.1, - required: true, - allowReset: true, - placeholder: width === undefined ? Object(external_this_wp_i18n_["__"])('Auto') : undefined - }))), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"], { - templateLock: false, - renderAppender: hasChildBlocks ? undefined : external_this_wp_blockEditor_["InnerBlocks"].ButtonBlockAppender, - __experimentalTagName: "div", - __experimentalPassedProps: blockWrapperProps - })); + units: [{ + value: '%', + label: '%', + default: '' + }, { + value: 'px', + label: 'px', + default: '' + }, { + value: 'em', + label: 'em', + default: '' + }, { + value: 'rem', + label: 'rem', + default: '' + }, { + value: 'vw', + label: 'vw', + default: '' + }] + }))), Object(external_this_wp_element_["createElement"])("div", innerBlocksProps)); } /* harmony default export */ var column_edit = (ColumnEdit); @@ -12217,16 +12360,16 @@ function column_save_save(_ref) { var wrapperClasses = classnames_default()(Object(defineProperty["a" /* default */])({}, "is-vertically-aligned-".concat(verticalAlignment), verticalAlignment)); var style; - if (Number.isFinite(width)) { + if (width) { style = { - flexBasis: width + '%' + flexBasis: width }; } - return Object(external_this_wp_element_["createElement"])("div", { + return Object(external_this_wp_element_["createElement"])("div", external_this_wp_blockEditor_["useBlockProps"].save({ className: wrapperClasses, style: style - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"].Content, null)); + }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"].Content, null)); } // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/column/index.js @@ -12240,7 +12383,9 @@ function column_save_save(_ref) { */ + var column_metadata = { + apiVersion: 2, name: "core/column", category: "text", parent: ["core/columns"], @@ -12249,16 +12394,16 @@ var column_metadata = { type: "string" }, width: { - type: "number", - min: 0, - max: 100 + type: "string" + }, + templateLock: { + type: "string" } }, supports: { anchor: true, reusable: false, - html: false, - lightBlockWrapper: true + html: false } }; @@ -12269,7 +12414,8 @@ var column_settings = { icon: library_column, description: Object(external_this_wp_i18n_["__"])('A single column within a columns block.'), edit: column_edit, - save: column_save_save + save: column_save_save, + deprecated: column_deprecated }; // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/cover.js @@ -12294,6 +12440,10 @@ function shared_ownKeys(object, enumerableOnly) { var keys = Object.keys(object) function shared_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { shared_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { shared_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } +/** + * WordPress dependencies + */ + var POSITION_CLASSNAMES = { 'top left': 'is-position-top-left', 'top center': 'is-position-top-center', @@ -12348,6 +12498,10 @@ function attributesFromMedia(setAttributes) { return; } + if (Object(external_this_wp_blob_["isBlobURL"])(media.url)) { + media.type = Object(external_this_wp_blob_["getBlobTypeByURL"])(media.url); + } + var mediaType; // for media selections originated from a file upload. if (media.media_type) { @@ -12779,7 +12933,7 @@ var cover_deprecated_deprecated = [{ /* harmony default export */ var cover_deprecated = (cover_deprecated_deprecated); // EXTERNAL MODULE: ./node_modules/fast-average-color/dist/index.js -var dist = __webpack_require__(280); +var dist = __webpack_require__(282); var dist_default = /*#__PURE__*/__webpack_require__.n(dist); // EXTERNAL MODULE: ./node_modules/tinycolor2/tinycolor.js @@ -12814,6 +12968,7 @@ function cover_edit_objectSpread(target) { for (var i = 1; i < arguments.length; + /** * Internal dependencies */ @@ -13022,6 +13177,7 @@ function CoverEdit(_ref3) { dimRatio = attributes.dimRatio, focalPoint = attributes.focalPoint, hasParallax = attributes.hasParallax, + isRepeated = attributes.isRepeated, minHeight = attributes.minHeight, minHeightUnit = attributes.minHeightUnit, styleAttribute = attributes.style, @@ -13033,6 +13189,7 @@ function CoverEdit(_ref3) { setGradient = _experimentalUseGrad.setGradient; var onSelectMedia = attributesFromMedia(setAttributes); + var isBlogUrl = Object(external_this_wp_blob_["isBlobURL"])(url); var toggleParallax = function toggleParallax() { setAttributes(cover_edit_objectSpread({ @@ -13042,6 +13199,12 @@ function CoverEdit(_ref3) { } : {})); }; + var toggleIsRepeated = function toggleIsRepeated() { + setAttributes({ + isRepeated: !isRepeated + }); + }; + var isDarkElement = Object(external_this_wp_element_["useRef"])(); var isDark = useCoverIsDark(url, dimRatio, overlayColor.color, isDarkElement); var isImageBackground = IMAGE_BACKGROUND_TYPE === backgroundType; @@ -13075,8 +13238,9 @@ function CoverEdit(_ref3) { } } + var canDim = !!url && (overlayColor.color || gradientValue); var hasBackground = !!(url || overlayColor.color || gradientValue); - var showFocalPointPicker = isVideoBackground || isImageBackground && !hasParallax; + var showFocalPointPicker = isVideoBackground || isImageBackground && (!hasParallax || isRepeated); var controls = Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, hasBackground && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalBlockAlignmentMatrixToolbar"], { label: Object(external_this_wp_i18n_["__"])('Change content position'), value: contentPosition, @@ -13093,11 +13257,15 @@ function CoverEdit(_ref3) { onSelect: onSelectMedia }))), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, !!url && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { title: Object(external_this_wp_i18n_["__"])('Media settings') - }, isImageBackground && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + }, isImageBackground && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { label: Object(external_this_wp_i18n_["__"])('Fixed background'), checked: hasParallax, onChange: toggleParallax - }), showFocalPointPicker && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["FocalPointPicker"], { + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Repeated background'), + checked: isRepeated, + onChange: toggleIsRepeated + })), showFocalPointPicker && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["FocalPointPicker"], { label: Object(external_this_wp_i18n_["__"])('Focal point picker'), url: url, value: focalPoint, @@ -13117,7 +13285,8 @@ function CoverEdit(_ref3) { backgroundType: undefined, dimRatio: undefined, focalPoint: undefined, - hasParallax: undefined + hasParallax: undefined, + isRepeated: undefined }); } }, Object(external_this_wp_i18n_["__"])('Clear Media')))), hasBackground && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { @@ -13145,7 +13314,7 @@ function CoverEdit(_ref3) { onGradientChange: setGradient, label: Object(external_this_wp_i18n_["__"])('Color') }] - }, !!url && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], { + }, canDim && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], { label: Object(external_this_wp_i18n_["__"])('Opacity'), value: dimRatio, onChange: function onChange(newDimRation) { @@ -13155,9 +13324,15 @@ function CoverEdit(_ref3) { }, min: 0, max: 100, + step: 10, required: true }))))); - var blockWrapperProps = Object(external_this_wp_blockEditor_["__experimentalUseBlockWrapperProps"])(); + var blockProps = Object(external_this_wp_blockEditor_["useBlockProps"])(); + var innerBlocksProps = Object(external_this_wp_blockEditor_["__experimentalUseInnerBlocksProps"])({ + className: 'wp-block-cover__inner-container' + }, { + template: INNER_BLOCKS_TEMPLATE + }); if (!hasBackground) { var placeholderIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], { @@ -13166,8 +13341,8 @@ function CoverEdit(_ref3) { var label = Object(external_this_wp_i18n_["__"])('Cover'); - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, controls, Object(external_this_wp_element_["createElement"])("div", Object(esm_extends["a" /* default */])({}, blockWrapperProps, { - className: classnames_default()('is-placeholder', blockWrapperProps.className) + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, controls, Object(external_this_wp_element_["createElement"])("div", Object(esm_extends["a" /* default */])({}, blockProps, { + className: classnames_default()('is-placeholder', blockProps.className) }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaPlaceholder"], { icon: placeholderIcon, labels: { @@ -13195,11 +13370,13 @@ function CoverEdit(_ref3) { var classes = classnames_default()(dimRatioToClass(dimRatio), (_classnames = { 'is-dark-theme': isDark, 'has-background-dim': dimRatio !== 0, - 'has-parallax': hasParallax + 'is-transient': isBlogUrl, + 'has-parallax': hasParallax, + 'is-repeated': isRepeated }, Object(defineProperty["a" /* default */])(_classnames, overlayColor.class, overlayColor.class), Object(defineProperty["a" /* default */])(_classnames, 'has-background-gradient', gradientValue), Object(defineProperty["a" /* default */])(_classnames, gradientClass, !url && gradientClass), Object(defineProperty["a" /* default */])(_classnames, 'has-custom-content-position', !isContentPositionCenter(contentPosition)), _classnames), getPositionClassName(contentPosition)); - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, controls, Object(external_this_wp_element_["createElement"])("div", Object(esm_extends["a" /* default */])({}, blockWrapperProps, { - className: classnames_default()(classes, blockWrapperProps.className), - style: cover_edit_objectSpread(cover_edit_objectSpread({}, style), blockWrapperProps.style), + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, controls, Object(external_this_wp_element_["createElement"])("div", Object(esm_extends["a" /* default */])({}, blockProps, { + className: classnames_default()(classes, blockProps.className), + style: cover_edit_objectSpread(cover_edit_objectSpread({}, style), blockProps.style), "data-url": url }), Object(external_this_wp_element_["createElement"])(BoxControlVisualizer, { values: styleAttribute === null || styleAttribute === void 0 ? void 0 : (_styleAttribute$spaci = styleAttribute.spacing) === null || _styleAttribute$spaci === void 0 ? void 0 : _styleAttribute$spaci.padding, @@ -13246,13 +13423,7 @@ function CoverEdit(_ref3) { style: { objectPosition: positionValue } - }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"], { - __experimentalTagName: "div", - __experimentalPassedProps: { - className: 'wp-block-cover__inner-container' - }, - template: INNER_BLOCKS_TEMPLATE - }))); + }), isBlogUrl && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Spinner"], null), Object(external_this_wp_element_["createElement"])("div", innerBlocksProps))); } /* harmony default export */ var cover_edit = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withDispatch"])(function (dispatch) { @@ -13296,6 +13467,7 @@ function cover_save_save(_ref) { dimRatio = attributes.dimRatio, focalPoint = attributes.focalPoint, hasParallax = attributes.hasParallax, + isRepeated = attributes.isRepeated, overlayColor = attributes.overlayColor, url = attributes.url, minHeightProp = attributes.minHeight, @@ -13336,12 +13508,13 @@ function cover_save_save(_ref) { var classes = classnames_default()(dimRatioToClass(dimRatio), overlayColorClass, (_classnames = { 'has-background-dim': dimRatio !== 0, 'has-parallax': hasParallax, + 'is-repeated': isRepeated, 'has-background-gradient': gradient || customGradient }, Object(defineProperty["a" /* default */])(_classnames, gradientClass, !url && gradientClass), Object(defineProperty["a" /* default */])(_classnames, 'has-custom-content-position', !isContentPositionCenter(contentPosition)), _classnames), getPositionClassName(contentPosition)); - return Object(external_this_wp_element_["createElement"])("div", { + return Object(external_this_wp_element_["createElement"])("div", external_this_wp_blockEditor_["useBlockProps"].save({ className: classes, style: style - }, url && (gradient || customGradient) && dimRatio !== 0 && Object(external_this_wp_element_["createElement"])("span", { + }), url && (gradient || customGradient) && dimRatio !== 0 && Object(external_this_wp_element_["createElement"])("span", { "aria-hidden": "true", className: classnames_default()('wp-block-cover__gradient-background', gradientClass), style: customGradient ? { @@ -13490,6 +13663,7 @@ var cover_transforms_transforms = { var cover_metadata = { + apiVersion: 2, name: "core/cover", category: "media", attributes: { @@ -13503,6 +13677,10 @@ var cover_metadata = { type: "boolean", "default": false }, + isRepeated: { + type: "boolean", + "default": false + }, dimRatio: { type: "number", "default": 50 @@ -13540,8 +13718,9 @@ var cover_metadata = { anchor: true, align: true, html: false, - lightBlockWrapper: true, - __experimentalPadding: true + spacing: { + padding: true + } } }; @@ -14011,6 +14190,7 @@ function embed_edit_objectSpread(target) { for (var i = 1; i < arguments.length; + function edit_getResponsiveHelp(checked) { return checked ? Object(external_this_wp_i18n_["__"])('This embed will preserve its aspect ratio when the browser is resized.') : Object(external_this_wp_i18n_["__"])('This embed may not preserve its aspect ratio when the browser is resized.'); } @@ -14142,9 +14322,10 @@ var edit_EmbedEdit = function EmbedEdit(props) { } } }, [preview, isEditingURL]); + var blockProps = Object(external_this_wp_blockEditor_["useBlockProps"])(); if (fetching) { - return Object(external_this_wp_element_["createElement"])(embed_loading, null); + return Object(external_this_wp_element_["createElement"])("div", blockProps, Object(external_this_wp_element_["createElement"])(embed_loading, null)); } // translators: %s: type of embed e.g: "YouTube", "Twitter", etc. "Embed" is used when no specific type exists @@ -14153,7 +14334,7 @@ var edit_EmbedEdit = function EmbedEdit(props) { var showEmbedPlaceholder = !preview || cannotEmbed || isEditingURL; if (showEmbedPlaceholder) { - return Object(external_this_wp_element_["createElement"])(embed_placeholder, { + return Object(external_this_wp_element_["createElement"])("div", blockProps, Object(external_this_wp_element_["createElement"])(embed_placeholder, { icon: icon, label: label, onSubmit: function onSubmit(event) { @@ -14177,7 +14358,7 @@ var edit_EmbedEdit = function EmbedEdit(props) { tryAgain: function tryAgain() { invalidateResolution('core', 'getEmbedPreview', [url]); } - }); + })); } // Even though we set attributes that get derived from the preview, // we don't access them directly because for the initial render, // the `setAttributes` call will not have taken effect. If we're @@ -14204,7 +14385,7 @@ var edit_EmbedEdit = function EmbedEdit(props) { switchBackToURLInput: function switchBackToURLInput() { return setIsEditingURL(true); } - }), Object(external_this_wp_element_["createElement"])(embed_preview, { + }), Object(external_this_wp_element_["createElement"])("div", blockProps, Object(external_this_wp_element_["createElement"])(embed_preview, { preview: preview, previewable: previewable, className: className, @@ -14220,7 +14401,7 @@ var edit_EmbedEdit = function EmbedEdit(props) { icon: icon, label: label, insertBlocksAfter: insertBlocksAfter - })); + }))); }; /* harmony default export */ var embed_edit = (edit_EmbedEdit); @@ -14251,10 +14432,10 @@ function embed_save_save(_ref) { return null; } - var embedClassName = dedupe_default()('wp-block-embed', (_classnames = {}, Object(defineProperty["a" /* default */])(_classnames, "is-type-".concat(type), type), Object(defineProperty["a" /* default */])(_classnames, "is-provider-".concat(providerNameSlug), providerNameSlug), Object(defineProperty["a" /* default */])(_classnames, "wp-block-embed-".concat(providerNameSlug), providerNameSlug), _classnames)); - return Object(external_this_wp_element_["createElement"])("figure", { - className: embedClassName - }, Object(external_this_wp_element_["createElement"])("div", { + var className = dedupe_default()('wp-block-embed', (_classnames = {}, Object(defineProperty["a" /* default */])(_classnames, "is-type-".concat(type), type), Object(defineProperty["a" /* default */])(_classnames, "is-provider-".concat(providerNameSlug), providerNameSlug), Object(defineProperty["a" /* default */])(_classnames, "wp-block-embed-".concat(providerNameSlug), providerNameSlug), _classnames)); + return Object(external_this_wp_element_["createElement"])("figure", external_this_wp_blockEditor_["useBlockProps"].save({ + className: className + }), Object(external_this_wp_element_["createElement"])("div", { className: "wp-block-embed__wrapper" }, "\n".concat(url, "\n") /* URL needs to be on its own line. */ @@ -14277,6 +14458,7 @@ function embed_save_save(_ref) { */ var transforms_metadata = { + apiVersion: 2, name: "core/embed", category: "embed", attributes: { @@ -14865,6 +15047,7 @@ var embed_variations_variations = [{ */ var deprecated_metadata = { + apiVersion: 2, name: "core/embed", category: "embed", attributes: { @@ -14942,6 +15125,7 @@ var embed_deprecated_deprecated = [{ var embed_metadata = { + apiVersion: 2, name: "core/embed", category: "embed", attributes: { @@ -15074,16 +15258,6 @@ function FileBlockInspector(_ref) { - - - - - - -function file_edit_createSuper(Derived) { var hasNativeReflectConstruct = file_edit_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; } - -function file_edit_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } - /** * External dependencies */ @@ -15099,276 +15273,203 @@ function file_edit_isNativeReflectConstruct() { if (typeof Reflect === "undefine - /** * Internal dependencies */ -var edit_FileEdit = /*#__PURE__*/function (_Component) { - Object(inherits["a" /* default */])(FileEdit, _Component); +function FileEdit(_ref) { + var isSelected = _ref.isSelected, + attributes = _ref.attributes, + setAttributes = _ref.setAttributes, + noticeUI = _ref.noticeUI, + noticeOperations = _ref.noticeOperations; + var id = attributes.id, + fileName = attributes.fileName, + href = attributes.href, + textLinkHref = attributes.textLinkHref, + textLinkTarget = attributes.textLinkTarget, + showDownloadButton = attributes.showDownloadButton, + downloadButtonText = attributes.downloadButtonText; - var _super = file_edit_createSuper(FileEdit); + var _useState = Object(external_this_wp_element_["useState"])(false), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + hasError = _useState2[0], + setHasError = _useState2[1]; - function FileEdit() { - var _this; + var _useState3 = Object(external_this_wp_element_["useState"])(false), + _useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2), + showCopyConfirmation = _useState4[0], + setShowCopyConfirmation = _useState4[1]; - Object(classCallCheck["a" /* default */])(this, FileEdit); - - _this = _super.apply(this, arguments); - _this.onSelectFile = _this.onSelectFile.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.confirmCopyURL = _this.confirmCopyURL.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.resetCopyConfirmation = _this.resetCopyConfirmation.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.changeLinkDestinationOption = _this.changeLinkDestinationOption.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.changeOpenInNewWindow = _this.changeOpenInNewWindow.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.changeShowDownloadButton = _this.changeShowDownloadButton.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onUploadError = _this.onUploadError.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.state = { - hasError: false, - showCopyConfirmation: false + var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { + return { + media: id === undefined ? undefined : select('core').getMedia(id), + mediaUpload: select('core/block-editor').getSettings().mediaUpload }; - return _this; + }, [id]), + media = _useSelect.media, + mediaUpload = _useSelect.mediaUpload; + + Object(external_this_wp_element_["useEffect"])(function () { + // Upload a file drag-and-dropped into the editor + if (Object(external_this_wp_blob_["isBlobURL"])(href)) { + var file = Object(external_this_wp_blob_["getBlobByURL"])(href); + mediaUpload({ + filesList: [file], + onFileChange: function onFileChange(_ref2) { + var _ref3 = Object(slicedToArray["a" /* default */])(_ref2, 1), + newMedia = _ref3[0]; + + return onSelectFile(newMedia); + }, + onError: function onError(message) { + setHasError(true); + noticeOperations.createErrorNotice(message); + } + }); + Object(external_this_wp_blob_["revokeBlobURL"])(href); + } + + if (downloadButtonText === undefined) { + setAttributes({ + downloadButtonText: Object(external_this_wp_i18n_["_x"])('Download', 'button label') + }); + } + }, []); + Object(external_this_wp_element_["useEffect"])(function () { + setShowCopyConfirmation(false); + }, [isSelected]); + + function onSelectFile(newMedia) { + if (newMedia && newMedia.url) { + setHasError(false); + setAttributes({ + href: newMedia.url, + fileName: newMedia.title, + textLinkHref: newMedia.url, + id: newMedia.id + }); + } } - Object(createClass["a" /* default */])(FileEdit, [{ - key: "componentDidMount", - value: function componentDidMount() { - var _this2 = this; + function onUploadError(message) { + setHasError(true); + noticeOperations.removeAllNotices(); + noticeOperations.createErrorNotice(message); + } - var _this$props = this.props, - attributes = _this$props.attributes, - mediaUpload = _this$props.mediaUpload, - noticeOperations = _this$props.noticeOperations, - setAttributes = _this$props.setAttributes; - var downloadButtonText = attributes.downloadButtonText, - href = attributes.href; // Upload a file drag-and-dropped into the editor + function confirmCopyURL() { + setShowCopyConfirmation(true); + } - if (Object(external_this_wp_blob_["isBlobURL"])(href)) { - var file = Object(external_this_wp_blob_["getBlobByURL"])(href); - mediaUpload({ - filesList: [file], - onFileChange: function onFileChange(_ref) { - var _ref2 = Object(slicedToArray["a" /* default */])(_ref, 1), - media = _ref2[0]; + function resetCopyConfirmation() { + setShowCopyConfirmation(false); + } - return _this2.onSelectFile(media); - }, - onError: function onError(message) { - _this2.setState({ - hasError: true - }); + function changeLinkDestinationOption(newHref) { + // Choose Media File or Attachment Page (when file is in Media Library) + setAttributes({ + textLinkHref: newHref + }); + } - noticeOperations.createErrorNotice(message); - } - }); - Object(external_this_wp_blob_["revokeBlobURL"])(href); - } + function changeOpenInNewWindow(newValue) { + setAttributes({ + textLinkTarget: newValue ? '_blank' : false + }); + } - if (downloadButtonText === undefined) { - setAttributes({ - downloadButtonText: Object(external_this_wp_i18n_["_x"])('Download', 'button label') - }); - } + function changeShowDownloadButton(newValue) { + setAttributes({ + showDownloadButton: newValue + }); + } + + var attachmentPage = media && media.link; + var blockProps = Object(external_this_wp_blockEditor_["useBlockProps"])({ + className: classnames_default()(Object(external_this_wp_components_["__unstableUseAnimate"])({ + type: Object(external_this_wp_blob_["isBlobURL"])(href) ? 'loading' : null + }), { + 'is-transient': Object(external_this_wp_blob_["isBlobURL"])(href) + }) + }); + + if (!href || hasError) { + return Object(external_this_wp_element_["createElement"])("div", blockProps, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaPlaceholder"], { + icon: Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], { + icon: library_file + }), + labels: { + title: Object(external_this_wp_i18n_["__"])('File'), + instructions: Object(external_this_wp_i18n_["__"])('Upload a file or pick one from your media library.') + }, + onSelect: onSelectFile, + notices: noticeUI, + onError: onUploadError, + accept: "*" + })); + } + + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(FileBlockInspector, Object(esm_extends["a" /* default */])({ + hrefs: { + href: href, + textLinkHref: textLinkHref, + attachmentPage: attachmentPage } }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - // Reset copy confirmation state when block is deselected - if (prevProps.isSelected && !this.props.isSelected) { - this.setState({ - showCopyConfirmation: false - }); - } - } - }, { - key: "onSelectFile", - value: function onSelectFile(media) { - if (media && media.url) { - this.setState({ - hasError: false - }); - this.props.setAttributes({ - href: media.url, - fileName: media.title, - textLinkHref: media.url, - id: media.id - }); - } - } - }, { - key: "onUploadError", - value: function onUploadError(message) { - var noticeOperations = this.props.noticeOperations; - this.setState({ - hasError: true - }); - noticeOperations.removeAllNotices(); - noticeOperations.createErrorNotice(message); - } - }, { - key: "confirmCopyURL", - value: function confirmCopyURL() { - this.setState({ - showCopyConfirmation: true + openInNewWindow: !!textLinkTarget, + showDownloadButton: showDownloadButton, + changeLinkDestinationOption: changeLinkDestinationOption, + changeOpenInNewWindow: changeOpenInNewWindow, + changeShowDownloadButton: changeShowDownloadButton + })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaReplaceFlow"], { + mediaId: id, + mediaURL: href, + accept: "*", + onSelect: onSelectFile, + onError: onUploadError + })), Object(external_this_wp_element_["createElement"])("div", blockProps, Object(external_this_wp_element_["createElement"])("div", { + className: 'wp-block-file__content-wrapper' + }, Object(external_this_wp_element_["createElement"])("div", { + className: "wp-block-file__textlink" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + tagName: "div" // must be block-level or else cursor disappears + , + value: fileName, + placeholder: Object(external_this_wp_i18n_["__"])('Write file name…'), + withoutInteractiveFormatting: true, + onChange: function onChange(text) { + return setAttributes({ + fileName: text }); } - }, { - key: "resetCopyConfirmation", - value: function resetCopyConfirmation() { - this.setState({ - showCopyConfirmation: false + })), showDownloadButton && Object(external_this_wp_element_["createElement"])("div", { + className: 'wp-block-file__button-richtext-wrapper' + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + tagName: "div" // must be block-level or else cursor disappears + , + className: 'wp-block-file__button', + value: downloadButtonText, + withoutInteractiveFormatting: true, + placeholder: Object(external_this_wp_i18n_["__"])('Add text…'), + onChange: function onChange(text) { + return setAttributes({ + downloadButtonText: text }); } - }, { - key: "changeLinkDestinationOption", - value: function changeLinkDestinationOption(newHref) { - // Choose Media File or Attachment Page (when file is in Media Library) - this.props.setAttributes({ - textLinkHref: newHref - }); - } - }, { - key: "changeOpenInNewWindow", - value: function changeOpenInNewWindow(newValue) { - this.props.setAttributes({ - textLinkTarget: newValue ? '_blank' : false - }); - } - }, { - key: "changeShowDownloadButton", - value: function changeShowDownloadButton(newValue) { - this.props.setAttributes({ - showDownloadButton: newValue - }); - } - }, { - key: "render", - value: function render() { - var _this3 = this; + }))), isSelected && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ClipboardButton"], { + isSecondary: true, + text: href, + className: 'wp-block-file__copy-url-button', + onCopy: confirmCopyURL, + onFinishCopy: resetCopyConfirmation, + disabled: Object(external_this_wp_blob_["isBlobURL"])(href) + }, showCopyConfirmation ? Object(external_this_wp_i18n_["__"])('Copied!') : Object(external_this_wp_i18n_["__"])('Copy URL')))); +} - var _this$props2 = this.props, - className = _this$props2.className, - isSelected = _this$props2.isSelected, - attributes = _this$props2.attributes, - setAttributes = _this$props2.setAttributes, - noticeUI = _this$props2.noticeUI, - media = _this$props2.media; - var id = attributes.id, - fileName = attributes.fileName, - href = attributes.href, - textLinkHref = attributes.textLinkHref, - textLinkTarget = attributes.textLinkTarget, - showDownloadButton = attributes.showDownloadButton, - downloadButtonText = attributes.downloadButtonText; - var _this$state = this.state, - hasError = _this$state.hasError, - showCopyConfirmation = _this$state.showCopyConfirmation; - var attachmentPage = media && media.link; - - if (!href || hasError) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaPlaceholder"], { - icon: Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], { - icon: library_file - }), - labels: { - title: Object(external_this_wp_i18n_["__"])('File'), - instructions: Object(external_this_wp_i18n_["__"])('Upload a file or pick one from your media library.') - }, - onSelect: this.onSelectFile, - notices: noticeUI, - onError: this.onUploadError, - accept: "*" - }); - } - - var classes = classnames_default()(className, { - 'is-transient': Object(external_this_wp_blob_["isBlobURL"])(href) - }); - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(FileBlockInspector, Object(esm_extends["a" /* default */])({ - hrefs: { - href: href, - textLinkHref: textLinkHref, - attachmentPage: attachmentPage - } - }, { - openInNewWindow: !!textLinkTarget, - showDownloadButton: showDownloadButton, - changeLinkDestinationOption: this.changeLinkDestinationOption, - changeOpenInNewWindow: this.changeOpenInNewWindow, - changeShowDownloadButton: this.changeShowDownloadButton - })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaReplaceFlow"], { - mediaId: id, - mediaURL: href, - accept: "*", - onSelect: this.onSelectFile, - onError: this.onUploadError - })), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Animate"], { - type: Object(external_this_wp_blob_["isBlobURL"])(href) ? 'loading' : null - }, function (_ref3) { - var animateClassName = _ref3.className; - return Object(external_this_wp_element_["createElement"])("div", { - className: classnames_default()(classes, animateClassName) - }, Object(external_this_wp_element_["createElement"])("div", { - className: 'wp-block-file__content-wrapper' - }, Object(external_this_wp_element_["createElement"])("div", { - className: "wp-block-file__textlink" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { - tagName: "div" // must be block-level or else cursor disappears - , - value: fileName, - placeholder: Object(external_this_wp_i18n_["__"])('Write file name…'), - withoutInteractiveFormatting: true, - onChange: function onChange(text) { - return setAttributes({ - fileName: text - }); - } - })), showDownloadButton && Object(external_this_wp_element_["createElement"])("div", { - className: 'wp-block-file__button-richtext-wrapper' - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { - tagName: "div" // must be block-level or else cursor disappears - , - className: 'wp-block-file__button', - value: downloadButtonText, - withoutInteractiveFormatting: true, - placeholder: Object(external_this_wp_i18n_["__"])('Add text…'), - onChange: function onChange(text) { - return setAttributes({ - downloadButtonText: text - }); - } - }))), isSelected && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ClipboardButton"], { - isSecondary: true, - text: href, - className: 'wp-block-file__copy-url-button', - onCopy: _this3.confirmCopyURL, - onFinishCopy: _this3.resetCopyConfirmation, - disabled: Object(external_this_wp_blob_["isBlobURL"])(href) - }, showCopyConfirmation ? Object(external_this_wp_i18n_["__"])('Copied!') : Object(external_this_wp_i18n_["__"])('Copy URL'))); - })); - } - }]); - - return FileEdit; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var file_edit = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select, props) { - var _select = select('core'), - getMedia = _select.getMedia; - - var _select2 = select('core/block-editor'), - getSettings = _select2.getSettings; - - var _getSettings = getSettings(), - mediaUpload = _getSettings.mediaUpload; - - var id = props.attributes.id; - return { - media: id === undefined ? undefined : getMedia(id), - mediaUpload: mediaUpload - }; -}), external_this_wp_components_["withNotices"]])(edit_FileEdit)); +/* harmony default export */ var file_edit = (Object(external_this_wp_components_["withNotices"])(FileEdit)); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/file/save.js @@ -15385,7 +15486,7 @@ function file_save_save(_ref) { textLinkTarget = attributes.textLinkTarget, showDownloadButton = attributes.showDownloadButton, downloadButtonText = attributes.downloadButtonText; - return href && Object(external_this_wp_element_["createElement"])("div", null, !external_this_wp_blockEditor_["RichText"].isEmpty(fileName) && Object(external_this_wp_element_["createElement"])("a", { + return href && Object(external_this_wp_element_["createElement"])("div", external_this_wp_blockEditor_["useBlockProps"].save(), !external_this_wp_blockEditor_["RichText"].isEmpty(fileName) && Object(external_this_wp_element_["createElement"])("a", { href: textLinkHref, target: textLinkTarget, rel: textLinkTarget ? 'noreferrer noopener' : false @@ -15559,6 +15660,7 @@ var file_transforms_transforms = { var file_metadata = { + apiVersion: 2, name: "core/file", category: "media", attributes: { @@ -15634,15 +15736,6 @@ var html_html = Object(external_this_wp_element_["createElement"])(external_this - - - - - -function html_edit_createSuper(Derived) { var hasNativeReflectConstruct = html_edit_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; } - -function html_edit_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } - /** * WordPress dependencies */ @@ -15651,104 +15744,57 @@ function html_edit_isNativeReflectConstruct() { if (typeof Reflect === "undefine +function HTMLEdit(_ref) { + var attributes = _ref.attributes, + setAttributes = _ref.setAttributes, + isSelected = _ref.isSelected; -var edit_HTMLEdit = /*#__PURE__*/function (_Component) { - Object(inherits["a" /* default */])(HTMLEdit, _Component); + var _useState = Object(external_this_wp_element_["useState"])(), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + isPreview = _useState2[0], + setIsPreview = _useState2[1]; - var _super = html_edit_createSuper(HTMLEdit); + var styles = Object(external_this_wp_data_["useSelect"])(function (select) { + // Default styles used to unset some of the styles + // that might be inherited from the editor style. + var defaultStyles = "\n\t\t\thtml,body,:root {\n\t\t\t\tmargin: 0 !important;\n\t\t\t\tpadding: 0 !important;\n\t\t\t\toverflow: visible !important;\n\t\t\t\tmin-height: auto !important;\n\t\t\t}\n\t\t"; + return [defaultStyles].concat(Object(toConsumableArray["a" /* default */])(Object(external_this_wp_blockEditor_["transformStyles"])(select('core/block-editor').getSettings().styles))); + }, []); - function HTMLEdit() { - var _this; - - Object(classCallCheck["a" /* default */])(this, HTMLEdit); - - _this = _super.apply(this, arguments); - _this.state = { - isPreview: false, - styles: [] - }; - _this.switchToHTML = _this.switchToHTML.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.switchToPreview = _this.switchToPreview.bind(Object(assertThisInitialized["a" /* default */])(_this)); - return _this; + function switchToPreview() { + setIsPreview(true); } - Object(createClass["a" /* default */])(HTMLEdit, [{ - key: "componentDidMount", - value: function componentDidMount() { - var styles = this.props.styles; // Default styles used to unset some of the styles - // that might be inherited from the editor style. + function switchToHTML() { + setIsPreview(false); + } - var defaultStyles = "\n\t\t\thtml,body,:root {\n\t\t\t\tmargin: 0 !important;\n\t\t\t\tpadding: 0 !important;\n\t\t\t\toverflow: visible !important;\n\t\t\t\tmin-height: auto !important;\n\t\t\t}\n\t\t"; - this.setState({ - styles: [defaultStyles].concat(Object(toConsumableArray["a" /* default */])(Object(external_this_wp_blockEditor_["transformStyles"])(styles))) - }); - } - }, { - key: "switchToPreview", - value: function switchToPreview() { - this.setState({ - isPreview: true - }); - } - }, { - key: "switchToHTML", - value: function switchToHTML() { - this.setState({ - isPreview: false - }); - } - }, { - key: "render", - value: function render() { - var _this2 = this; - - var _this$props = this.props, - attributes = _this$props.attributes, - setAttributes = _this$props.setAttributes; - var _this$state = this.state, - isPreview = _this$state.isPreview, - styles = _this$state.styles; - return Object(external_this_wp_element_["createElement"])("div", { - className: "wp-block-html" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarButton"], { - className: "components-tab-button", - isPressed: !isPreview, - onClick: this.switchToHTML - }, Object(external_this_wp_element_["createElement"])("span", null, "HTML")), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarButton"], { - className: "components-tab-button", - isPressed: isPreview, - onClick: this.switchToPreview - }, Object(external_this_wp_element_["createElement"])("span", null, Object(external_this_wp_i18n_["__"])('Preview'))))), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"].Consumer, null, function (isDisabled) { - return isPreview || isDisabled ? Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SandBox"], { - html: attributes.content, - styles: styles - }), !_this2.props.isSelected && Object(external_this_wp_element_["createElement"])("div", { - className: "block-library-html__preview-overlay" - })) : Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["PlainText"], { - value: attributes.content, - onChange: function onChange(content) { - return setAttributes({ - content: content - }); - }, - placeholder: Object(external_this_wp_i18n_["__"])('Write HTML…'), - "aria-label": Object(external_this_wp_i18n_["__"])('HTML') + return Object(external_this_wp_element_["createElement"])("div", Object(external_this_wp_blockEditor_["useBlockProps"])(), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarButton"], { + className: "components-tab-button", + isPressed: !isPreview, + onClick: switchToHTML + }, Object(external_this_wp_element_["createElement"])("span", null, "HTML")), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarButton"], { + className: "components-tab-button", + isPressed: isPreview, + onClick: switchToPreview + }, Object(external_this_wp_element_["createElement"])("span", null, Object(external_this_wp_i18n_["__"])('Preview'))))), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"].Consumer, null, function (isDisabled) { + return isPreview || isDisabled ? Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SandBox"], { + html: attributes.content, + styles: styles + }), !isSelected && Object(external_this_wp_element_["createElement"])("div", { + className: "block-library-html__preview-overlay" + })) : Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["PlainText"], { + value: attributes.content, + onChange: function onChange(content) { + return setAttributes({ + content: content }); - })); - } - }]); - - return HTMLEdit; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var html_edit = (Object(external_this_wp_data_["withSelect"])(function (select) { - var _select = select('core/block-editor'), - getSettings = _select.getSettings; - - return { - styles: getSettings().styles - }; -})(edit_HTMLEdit)); + }, + placeholder: Object(external_this_wp_i18n_["__"])('Write HTML…'), + "aria-label": Object(external_this_wp_i18n_["__"])('HTML') + }); + })); +} // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/html/save.js @@ -15793,6 +15839,7 @@ var html_transforms_transforms = { var html_metadata = { + apiVersion: 2, name: "core/html", category: "widgets", attributes: { @@ -15821,7 +15868,7 @@ var html_settings = { content: '' + Object(external_this_wp_i18n_["__"])('Welcome to the wonderful world of blocks…') + '' } }, - edit: html_edit, + edit: HTMLEdit, save: html_save_save, transforms: html_transforms }; @@ -16097,7 +16144,7 @@ var baseAttributes = { }, isStackedOnMobile: { type: 'boolean', - default: false + default: true } }; /* harmony default export */ var media_text_deprecated = ([{ @@ -16664,10 +16711,16 @@ function MediaTextEdit(_ref2) { imageSizeOptions: imageSizeOptions, isResizable: false })); - var blockWrapperProps = Object(external_this_wp_blockEditor_["__experimentalUseBlockWrapperProps"])({ + var blockProps = Object(external_this_wp_blockEditor_["useBlockProps"])({ className: classNames, style: style }); + var innerBlocksProps = Object(external_this_wp_blockEditor_["__experimentalUseInnerBlocksProps"])({ + className: 'wp-block-media-text__content' + }, { + template: TEMPLATE, + templateInsertUpdatesSelection: false + }); return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, mediaTextGeneralSettings), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], { controls: toolbarControls }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockVerticalAlignmentToolbar"], { @@ -16683,7 +16736,7 @@ function MediaTextEdit(_ref2) { linkTarget: linkTarget, linkClass: linkClass, rel: rel - }))), Object(external_this_wp_element_["createElement"])("div", blockWrapperProps, Object(external_this_wp_element_["createElement"])(media_container, Object(esm_extends["a" /* default */])({ + }))), Object(external_this_wp_element_["createElement"])("div", blockProps, Object(external_this_wp_element_["createElement"])(media_container, Object(esm_extends["a" /* default */])({ className: "wp-block-media-text__media", onSelectMedia: onSelectMedia, onWidthChange: onWidthChange, @@ -16699,14 +16752,7 @@ function MediaTextEdit(_ref2) { mediaType: mediaType, mediaUrl: mediaUrl, mediaWidth: mediaWidth - })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"], { - __experimentalTagName: "div", - __experimentalPassedProps: { - className: 'wp-block-media-text__content' - }, - template: TEMPLATE, - templateInsertUpdatesSelection: false - }))); + })), Object(external_this_wp_element_["createElement"])("div", innerBlocksProps))); } /* harmony default export */ var media_text_edit = (MediaTextEdit); @@ -16794,10 +16840,10 @@ function media_text_save_save(_ref) { var style = { gridTemplateColumns: gridTemplateColumns }; - return Object(external_this_wp_element_["createElement"])("div", { + return Object(external_this_wp_element_["createElement"])("div", external_this_wp_blockEditor_["useBlockProps"].save({ className: className, style: style - }, Object(external_this_wp_element_["createElement"])("figure", { + }), Object(external_this_wp_element_["createElement"])("figure", { className: "wp-block-media-text__media", style: backgroundStyles }, (mediaTypeRenders[mediaType] || external_this_lodash_["noop"])()), Object(external_this_wp_element_["createElement"])("div", { @@ -16897,6 +16943,7 @@ var media_text_transforms_transforms = { var media_text_metadata = { + apiVersion: 2, name: "core/media-text", category: "media", attributes: { @@ -16982,10 +17029,9 @@ var media_text_metadata = { anchor: true, align: ["wide", "full"], html: false, - lightBlockWrapper: true, - __experimentalColor: { + color: { gradients: true, - linkColor: true + link: true } } }; @@ -17039,17 +17085,6 @@ var comment = Object(external_this_wp_element_["createElement"])(external_this_w // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/latest-comments/edit.js - - - - - - - -function latest_comments_edit_createSuper(Derived) { var hasNativeReflectConstruct = latest_comments_edit_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; } - -function latest_comments_edit_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } - /** * WordPress dependencies */ @@ -17057,7 +17092,6 @@ function latest_comments_edit_isNativeReflectConstruct() { if (typeof Reflect == - /** * Minimum number of comments a user can show using this block. * @@ -17072,86 +17106,55 @@ var MIN_COMMENTS = 1; */ var MAX_COMMENTS = 100; - -var edit_LatestComments = /*#__PURE__*/function (_Component) { - Object(inherits["a" /* default */])(LatestComments, _Component); - - var _super = latest_comments_edit_createSuper(LatestComments); - - function LatestComments() { - var _this; - - Object(classCallCheck["a" /* default */])(this, LatestComments); - - _this = _super.apply(this, arguments); - _this.setCommentsToShow = _this.setCommentsToShow.bind(Object(assertThisInitialized["a" /* default */])(_this)); // Create toggles for each attribute; we create them here rather than - // passing `this.createToggleAttribute( 'displayAvatar' )` directly to - // `onChange` to avoid re-renders. - - _this.toggleDisplayAvatar = _this.createToggleAttribute('displayAvatar'); - _this.toggleDisplayDate = _this.createToggleAttribute('displayDate'); - _this.toggleDisplayExcerpt = _this.createToggleAttribute('displayExcerpt'); - return _this; - } - - Object(createClass["a" /* default */])(LatestComments, [{ - key: "createToggleAttribute", - value: function createToggleAttribute(propName) { - var _this2 = this; - - return function () { - var value = _this2.props.attributes[propName]; - var setAttributes = _this2.props.setAttributes; - setAttributes(Object(defineProperty["a" /* default */])({}, propName, !value)); - }; - } - }, { - key: "setCommentsToShow", - value: function setCommentsToShow(commentsToShow) { - this.props.setAttributes({ - commentsToShow: commentsToShow +function LatestComments(_ref) { + var attributes = _ref.attributes, + setAttributes = _ref.setAttributes; + var commentsToShow = attributes.commentsToShow, + displayAvatar = attributes.displayAvatar, + displayDate = attributes.displayDate, + displayExcerpt = attributes.displayExcerpt; + return Object(external_this_wp_element_["createElement"])("div", Object(external_this_wp_blockEditor_["useBlockProps"])(), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Latest comments settings') + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Display avatar'), + checked: displayAvatar, + onChange: function onChange() { + return setAttributes({ + displayAvatar: !displayAvatar }); } - }, { - key: "render", - value: function render() { - var _this$props$attribute = this.props.attributes, - commentsToShow = _this$props$attribute.commentsToShow, - displayAvatar = _this$props$attribute.displayAvatar, - displayDate = _this$props$attribute.displayDate, - displayExcerpt = _this$props$attribute.displayExcerpt; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Latest comments settings') - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Display avatar'), - checked: displayAvatar, - onChange: this.toggleDisplayAvatar - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Display date'), - checked: displayDate, - onChange: this.toggleDisplayDate - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Display excerpt'), - checked: displayExcerpt, - onChange: this.toggleDisplayExcerpt - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], { - label: Object(external_this_wp_i18n_["__"])('Number of comments'), - value: commentsToShow, - onChange: this.setCommentsToShow, - min: MIN_COMMENTS, - max: MAX_COMMENTS, - required: true - }))), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_serverSideRender_default.a, { - block: "core/latest-comments", - attributes: this.props.attributes - }))); + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Display date'), + checked: displayDate, + onChange: function onChange() { + return setAttributes({ + displayDate: !displayDate + }); } - }]); - - return LatestComments; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var latest_comments_edit = (edit_LatestComments); + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Display excerpt'), + checked: displayExcerpt, + onChange: function onChange() { + return setAttributes({ + displayExcerpt: !displayExcerpt + }); + } + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], { + label: Object(external_this_wp_i18n_["__"])('Number of comments'), + value: commentsToShow, + onChange: function onChange(value) { + return setAttributes({ + commentsToShow: value + }); + }, + min: MIN_COMMENTS, + max: MAX_COMMENTS, + required: true + }))), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_serverSideRender_default.a, { + block: "core/latest-comments", + attributes: attributes + }))); +} // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/latest-comments/index.js /** @@ -17164,6 +17167,7 @@ var edit_LatestComments = /*#__PURE__*/function (_Component) { */ var latest_comments_metadata = { + apiVersion: 2, name: "core/latest-comments", category: "widgets", attributes: { @@ -17200,7 +17204,7 @@ var latest_comments_settings = { icon: library_comment, keywords: [Object(external_this_wp_i18n_["__"])('recent comments')], example: {}, - edit: latest_comments_edit + edit: LatestComments }; // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/post-list.js @@ -17385,18 +17389,10 @@ var MAX_POSTS_COLUMNS = 6; - - - - function latest_posts_edit_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } function latest_posts_edit_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { latest_posts_edit_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { latest_posts_edit_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } -function latest_posts_edit_createSuper(Derived) { var hasNativeReflectConstruct = latest_posts_edit_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; } - -function latest_posts_edit_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } - /** * External dependencies */ @@ -17430,454 +17426,415 @@ var CATEGORIES_LIST_QUERY = { var USERS_LIST_QUERY = { per_page: -1 }; +function LatestPostsEdit(_ref) { + var attributes = _ref.attributes, + setAttributes = _ref.setAttributes; + var postsToShow = attributes.postsToShow, + order = attributes.order, + orderBy = attributes.orderBy, + categories = attributes.categories, + selectedAuthor = attributes.selectedAuthor, + displayFeaturedImage = attributes.displayFeaturedImage, + displayPostContentRadio = attributes.displayPostContentRadio, + displayPostContent = attributes.displayPostContent, + displayPostDate = attributes.displayPostDate, + displayAuthor = attributes.displayAuthor, + postLayout = attributes.postLayout, + columns = attributes.columns, + excerptLength = attributes.excerptLength, + featuredImageAlign = attributes.featuredImageAlign, + featuredImageSizeSlug = attributes.featuredImageSizeSlug, + featuredImageSizeWidth = attributes.featuredImageSizeWidth, + featuredImageSizeHeight = attributes.featuredImageSizeHeight, + addLinkToFeaturedImage = attributes.addLinkToFeaturedImage; -var edit_LatestPostsEdit = /*#__PURE__*/function (_Component) { - Object(inherits["a" /* default */])(LatestPostsEdit, _Component); + var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { + var _select = select('core'), + getEntityRecords = _select.getEntityRecords, + getMedia = _select.getMedia; - var _super = latest_posts_edit_createSuper(LatestPostsEdit); + var _select2 = select('core/block-editor'), + getSettings = _select2.getSettings; - function LatestPostsEdit() { - var _this; + var _getSettings = getSettings(), + imageSizes = _getSettings.imageSizes, + imageDimensions = _getSettings.imageDimensions; - Object(classCallCheck["a" /* default */])(this, LatestPostsEdit); - - _this = _super.apply(this, arguments); - _this.state = { - categoriesList: [], - authorList: [] - }; - return _this; - } - - Object(createClass["a" /* default */])(LatestPostsEdit, [{ - key: "componentDidMount", - value: function componentDidMount() { - var _this2 = this; - - this.isStillMounted = true; - this.fetchRequest = external_this_wp_apiFetch_default()({ - path: Object(external_this_wp_url_["addQueryArgs"])("/wp/v2/categories", CATEGORIES_LIST_QUERY) - }).then(function (categoriesList) { - if (_this2.isStillMounted) { - _this2.setState({ - categoriesList: categoriesList - }); - } - }).catch(function () { - if (_this2.isStillMounted) { - _this2.setState({ - categoriesList: [] - }); - } - }); - this.fetchRequest = external_this_wp_apiFetch_default()({ - path: Object(external_this_wp_url_["addQueryArgs"])("/wp/v2/users", USERS_LIST_QUERY) - }).then(function (authorList) { - if (_this2.isStillMounted) { - _this2.setState({ - authorList: authorList - }); - } - }).catch(function () { - if (_this2.isStillMounted) { - _this2.setState({ - authorList: [] - }); - } - }); - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - this.isStillMounted = false; - } - }, { - key: "render", - value: function render() { - var _this$props = this.props, - attributes = _this$props.attributes, - setAttributes = _this$props.setAttributes, - imageSizeOptions = _this$props.imageSizeOptions, - latestPosts = _this$props.latestPosts, - defaultImageWidth = _this$props.defaultImageWidth, - defaultImageHeight = _this$props.defaultImageHeight; - var _this$state = this.state, - categoriesList = _this$state.categoriesList, - authorList = _this$state.authorList; - var displayFeaturedImage = attributes.displayFeaturedImage, - displayPostContentRadio = attributes.displayPostContentRadio, - displayPostContent = attributes.displayPostContent, - displayPostDate = attributes.displayPostDate, - displayAuthor = attributes.displayAuthor, - postLayout = attributes.postLayout, - columns = attributes.columns, - order = attributes.order, - orderBy = attributes.orderBy, - categories = attributes.categories, - selectedAuthor = attributes.selectedAuthor, - postsToShow = attributes.postsToShow, - excerptLength = attributes.excerptLength, - featuredImageAlign = attributes.featuredImageAlign, - featuredImageSizeSlug = attributes.featuredImageSizeSlug, - featuredImageSizeWidth = attributes.featuredImageSizeWidth, - featuredImageSizeHeight = attributes.featuredImageSizeHeight, - addLinkToFeaturedImage = attributes.addLinkToFeaturedImage; - var categorySuggestions = categoriesList.reduce(function (accumulator, category) { - return latest_posts_edit_objectSpread(latest_posts_edit_objectSpread({}, accumulator), {}, Object(defineProperty["a" /* default */])({}, category.name, category)); - }, {}); - - var selectCategories = function selectCategories(tokens) { - var hasNoSuggestion = tokens.some(function (token) { - return typeof token === 'string' && !categorySuggestions[token]; - }); - - if (hasNoSuggestion) { - return; - } // Categories that are already will be objects, while new additions will be strings (the name). - // allCategories nomalizes the array so that they are all objects. - - - var allCategories = tokens.map(function (token) { - return typeof token === 'string' ? categorySuggestions[token] : token; - }); // We do nothing if the category is not selected - // from suggestions. - - if (Object(external_this_lodash_["includes"])(allCategories, null)) { - return false; - } - - setAttributes({ - categories: allCategories - }); - }; - - var inspectorControls = Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Post content settings') - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Post content'), - checked: displayPostContent, - onChange: function onChange(value) { - return setAttributes({ - displayPostContent: value - }); - } - }), displayPostContent && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RadioControl"], { - label: Object(external_this_wp_i18n_["__"])('Show:'), - selected: displayPostContentRadio, - options: [{ - label: Object(external_this_wp_i18n_["__"])('Excerpt'), - value: 'excerpt' - }, { - label: Object(external_this_wp_i18n_["__"])('Full post'), - value: 'full_post' - }], - onChange: function onChange(value) { - return setAttributes({ - displayPostContentRadio: value - }); - } - }), displayPostContent && displayPostContentRadio === 'excerpt' && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], { - label: Object(external_this_wp_i18n_["__"])('Max number of words in excerpt'), - value: excerptLength, - onChange: function onChange(value) { - return setAttributes({ - excerptLength: value - }); - }, - min: MIN_EXCERPT_LENGTH, - max: MAX_EXCERPT_LENGTH - })), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Post meta settings') - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Display author name'), - checked: displayAuthor, - onChange: function onChange(value) { - return setAttributes({ - displayAuthor: value - }); - } - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Display post date'), - checked: displayPostDate, - onChange: function onChange(value) { - return setAttributes({ - displayPostDate: value - }); - } - })), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Featured image settings') - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Display featured image'), - checked: displayFeaturedImage, - onChange: function onChange(value) { - return setAttributes({ - displayFeaturedImage: value - }); - } - }), displayFeaturedImage && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalImageSizeControl"], { - onChange: function onChange(value) { - var newAttrs = {}; - - if (value.hasOwnProperty('width')) { - newAttrs.featuredImageSizeWidth = value.width; - } - - if (value.hasOwnProperty('height')) { - newAttrs.featuredImageSizeHeight = value.height; - } - - setAttributes(newAttrs); - }, - slug: featuredImageSizeSlug, - width: featuredImageSizeWidth, - height: featuredImageSizeHeight, - imageWidth: defaultImageWidth, - imageHeight: defaultImageHeight, - imageSizeOptions: imageSizeOptions, - onChangeImage: function onChangeImage(value) { - return setAttributes({ - featuredImageSizeSlug: value, - featuredImageSizeWidth: undefined, - featuredImageSizeHeight: undefined - }); - } - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["BaseControl"], { - className: "block-editor-image-alignment-control__row" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["BaseControl"].VisualLabel, null, Object(external_this_wp_i18n_["__"])('Image alignment')), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockAlignmentToolbar"], { - value: featuredImageAlign, - onChange: function onChange(value) { - return setAttributes({ - featuredImageAlign: value - }); - }, - controls: ['left', 'center', 'right'], - isCollapsed: false - })), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Add link to featured image'), - checked: addLinkToFeaturedImage, - onChange: function onChange(value) { - return setAttributes({ - addLinkToFeaturedImage: value - }); - } - }))), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Sorting and filtering') - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["QueryControls"], Object(esm_extends["a" /* default */])({ - order: order, - orderBy: orderBy - }, { - numberOfItems: postsToShow, - onOrderChange: function onOrderChange(value) { - return setAttributes({ - order: value - }); - }, - onOrderByChange: function onOrderByChange(value) { - return setAttributes({ - orderBy: value - }); - }, - onNumberOfItemsChange: function onNumberOfItemsChange(value) { - return setAttributes({ - postsToShow: value - }); - }, - categorySuggestions: categorySuggestions, - onCategoryChange: selectCategories, - selectedCategories: categories, - onAuthorChange: function onAuthorChange(value) { - return setAttributes({ - selectedAuthor: '' !== value ? Number(value) : undefined - }); - }, - authorList: authorList, - selectedAuthorId: selectedAuthor - })), postLayout === 'grid' && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], { - label: Object(external_this_wp_i18n_["__"])('Columns'), - value: columns, - onChange: function onChange(value) { - return setAttributes({ - columns: value - }); - }, - min: 2, - max: !hasPosts ? MAX_POSTS_COLUMNS : Math.min(MAX_POSTS_COLUMNS, latestPosts.length), - required: true - }))); - var hasPosts = Array.isArray(latestPosts) && latestPosts.length; - - if (!hasPosts) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, inspectorControls, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Placeholder"], { - icon: library_pin, - label: Object(external_this_wp_i18n_["__"])('Latest Posts') - }, !Array.isArray(latestPosts) ? Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Spinner"], null) : Object(external_this_wp_i18n_["__"])('No posts found.'))); - } // Removing posts from display should be instant. - - - var displayPosts = latestPosts.length > postsToShow ? latestPosts.slice(0, postsToShow) : latestPosts; - var layoutControls = [{ - icon: library_list, - title: Object(external_this_wp_i18n_["__"])('List view'), - onClick: function onClick() { - return setAttributes({ - postLayout: 'list' - }); - }, - isActive: postLayout === 'list' - }, { - icon: library_grid, - title: Object(external_this_wp_i18n_["__"])('Grid view'), - onClick: function onClick() { - return setAttributes({ - postLayout: 'grid' - }); - }, - isActive: postLayout === 'grid' - }]; - - var dateFormat = Object(external_this_wp_date_["__experimentalGetSettings"])().formats.date; - - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, inspectorControls, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], { - controls: layoutControls - })), Object(external_this_wp_element_["createElement"])("ul", { - className: classnames_default()(this.props.className, Object(defineProperty["a" /* default */])({ - 'wp-block-latest-posts__list': true, - 'is-grid': postLayout === 'grid', - 'has-dates': displayPostDate, - 'has-author': displayAuthor - }, "columns-".concat(columns), postLayout === 'grid')) - }, displayPosts.map(function (post, i) { - var titleTrimmed = Object(external_this_lodash_["invoke"])(post, ['title', 'rendered', 'trim']); - var excerpt = post.excerpt.rendered; - var currentAuthor = authorList.find(function (author) { - return author.id === post.author; - }); - var excerptElement = document.createElement('div'); - excerptElement.innerHTML = excerpt; - excerpt = excerptElement.textContent || excerptElement.innerText || ''; - var _post$featuredImageIn = post.featuredImageInfo; - _post$featuredImageIn = _post$featuredImageIn === void 0 ? {} : _post$featuredImageIn; - var imageSourceUrl = _post$featuredImageIn.url, - featuredImageAlt = _post$featuredImageIn.alt; - var imageClasses = classnames_default()(Object(defineProperty["a" /* default */])({ - 'wp-block-latest-posts__featured-image': true - }, "align".concat(featuredImageAlign), !!featuredImageAlign)); - var renderFeaturedImage = displayFeaturedImage && imageSourceUrl; - var featuredImage = renderFeaturedImage && Object(external_this_wp_element_["createElement"])("img", { - src: imageSourceUrl, - alt: featuredImageAlt, - style: { - maxWidth: featuredImageSizeWidth, - maxHeight: featuredImageSizeHeight - } - }); - var needsReadMore = excerptLength < excerpt.trim().split(' ').length && post.excerpt.raw === ''; - var postExcerpt = needsReadMore ? Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, excerpt.trim().split(' ', excerptLength).join(' '), Object(external_this_wp_i18n_["__"])(' … '), Object(external_this_wp_element_["createElement"])("a", { - href: post.link, - target: "_blank", - rel: "noopener noreferrer" - }, Object(external_this_wp_i18n_["__"])('Read more'))) : excerpt; - return Object(external_this_wp_element_["createElement"])("li", { - key: i - }, renderFeaturedImage && Object(external_this_wp_element_["createElement"])("div", { - className: imageClasses - }, addLinkToFeaturedImage ? Object(external_this_wp_element_["createElement"])("a", { - href: post.link, - target: "_blank", - rel: "noreferrer noopener" - }, featuredImage) : featuredImage), Object(external_this_wp_element_["createElement"])("a", { - href: post.link, - target: "_blank", - rel: "noreferrer noopener" - }, titleTrimmed ? Object(external_this_wp_element_["createElement"])(external_this_wp_element_["RawHTML"], null, titleTrimmed) : Object(external_this_wp_i18n_["__"])('(no title)')), displayAuthor && currentAuthor && Object(external_this_wp_element_["createElement"])("div", { - className: "wp-block-latest-posts__post-author" - }, Object(external_this_wp_i18n_["sprintf"])( - /* translators: byline. %s: current author. */ - Object(external_this_wp_i18n_["__"])('by %s'), currentAuthor.name)), displayPostDate && post.date_gmt && Object(external_this_wp_element_["createElement"])("time", { - dateTime: Object(external_this_wp_date_["format"])('c', post.date_gmt), - className: "wp-block-latest-posts__post-date" - }, Object(external_this_wp_date_["dateI18n"])(dateFormat, post.date_gmt)), displayPostContent && displayPostContentRadio === 'excerpt' && Object(external_this_wp_element_["createElement"])("div", { - className: "wp-block-latest-posts__post-excerpt" - }, postExcerpt), displayPostContent && displayPostContentRadio === 'full_post' && Object(external_this_wp_element_["createElement"])("div", { - className: "wp-block-latest-posts__post-full-content" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_element_["RawHTML"], { - key: "html" - }, post.content.raw.trim()))); - }))); - } - }]); - - return LatestPostsEdit; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var latest_posts_edit = (Object(external_this_wp_data_["withSelect"])(function (select, props) { - var _props$attributes = props.attributes, - featuredImageSizeSlug = _props$attributes.featuredImageSizeSlug, - postsToShow = _props$attributes.postsToShow, - order = _props$attributes.order, - orderBy = _props$attributes.orderBy, - categories = _props$attributes.categories, - selectedAuthor = _props$attributes.selectedAuthor; - - var _select = select('core'), - getEntityRecords = _select.getEntityRecords, - getMedia = _select.getMedia; - - var _select2 = select('core/block-editor'), - getSettings = _select2.getSettings; - - var _getSettings = getSettings(), - imageSizes = _getSettings.imageSizes, - imageDimensions = _getSettings.imageDimensions; - - var catIds = categories && categories.length > 0 ? categories.map(function (cat) { - return cat.id; - }) : []; - var latestPostsQuery = Object(external_this_lodash_["pickBy"])({ - categories: catIds, - author: selectedAuthor, - order: order, - orderby: orderBy, - per_page: postsToShow - }, function (value) { - return !Object(external_this_lodash_["isUndefined"])(value); - }); - var posts = getEntityRecords('postType', 'post', latestPostsQuery); - var imageSizeOptions = imageSizes.filter(function (_ref) { - var slug = _ref.slug; - return slug !== 'full'; - }).map(function (_ref2) { - var name = _ref2.name, - slug = _ref2.slug; + var catIds = categories && categories.length > 0 ? categories.map(function (cat) { + return cat.id; + }) : []; + var latestPostsQuery = Object(external_this_lodash_["pickBy"])({ + categories: catIds, + author: selectedAuthor, + order: order, + orderby: orderBy, + per_page: postsToShow + }, function (value) { + return !Object(external_this_lodash_["isUndefined"])(value); + }); + var posts = getEntityRecords('postType', 'post', latestPostsQuery); return { - value: slug, - label: name - }; - }); - return { - defaultImageWidth: Object(external_this_lodash_["get"])(imageDimensions, [featuredImageSizeSlug, 'width'], 0), - defaultImageHeight: Object(external_this_lodash_["get"])(imageDimensions, [featuredImageSizeSlug, 'height'], 0), - imageSizeOptions: imageSizeOptions, - latestPosts: !Array.isArray(posts) ? posts : posts.map(function (post) { - if (!post.featured_media) return post; - var image = getMedia(post.featured_media); - var url = Object(external_this_lodash_["get"])(image, ['media_details', 'sizes', featuredImageSizeSlug, 'source_url'], null); + defaultImageWidth: Object(external_this_lodash_["get"])(imageDimensions, [featuredImageSizeSlug, 'width'], 0), + defaultImageHeight: Object(external_this_lodash_["get"])(imageDimensions, [featuredImageSizeSlug, 'height'], 0), + imageSizeOptions: imageSizes.filter(function (_ref2) { + var slug = _ref2.slug; + return slug !== 'full'; + }).map(function (_ref3) { + var name = _ref3.name, + slug = _ref3.slug; + return { + value: slug, + label: name + }; + }), + latestPosts: !Array.isArray(posts) ? posts : posts.map(function (post) { + if (!post.featured_media) return post; + var image = getMedia(post.featured_media); + var url = Object(external_this_lodash_["get"])(image, ['media_details', 'sizes', featuredImageSizeSlug, 'source_url'], null); - if (!url) { - url = Object(external_this_lodash_["get"])(image, 'source_url', null); + if (!url) { + url = Object(external_this_lodash_["get"])(image, 'source_url', null); + } + + var featuredImageInfo = { + url: url, + // eslint-disable-next-line camelcase + alt: image === null || image === void 0 ? void 0 : image.alt_text + }; + return latest_posts_edit_objectSpread(latest_posts_edit_objectSpread({}, post), {}, { + featuredImageInfo: featuredImageInfo + }); + }) + }; + }, [featuredImageSizeSlug, postsToShow, order, orderBy, categories, selectedAuthor]), + imageSizeOptions = _useSelect.imageSizeOptions, + latestPosts = _useSelect.latestPosts, + defaultImageWidth = _useSelect.defaultImageWidth, + defaultImageHeight = _useSelect.defaultImageHeight; + + var _useState = Object(external_this_wp_element_["useState"])([]), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + categoriesList = _useState2[0], + setCategoriesList = _useState2[1]; + + var _useState3 = Object(external_this_wp_element_["useState"])([]), + _useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2), + authorList = _useState4[0], + setAuthorList = _useState4[1]; + + var categorySuggestions = categoriesList.reduce(function (accumulator, category) { + return latest_posts_edit_objectSpread(latest_posts_edit_objectSpread({}, accumulator), {}, Object(defineProperty["a" /* default */])({}, category.name, category)); + }, {}); + + var selectCategories = function selectCategories(tokens) { + var hasNoSuggestion = tokens.some(function (token) { + return typeof token === 'string' && !categorySuggestions[token]; + }); + + if (hasNoSuggestion) { + return; + } // Categories that are already will be objects, while new additions will be strings (the name). + // allCategories nomalizes the array so that they are all objects. + + + var allCategories = tokens.map(function (token) { + return typeof token === 'string' ? categorySuggestions[token] : token; + }); // We do nothing if the category is not selected + // from suggestions. + + if (Object(external_this_lodash_["includes"])(allCategories, null)) { + return false; + } + + setAttributes({ + categories: allCategories + }); + }; + + var isStillMounted = Object(external_this_wp_element_["useRef"])(); + Object(external_this_wp_element_["useEffect"])(function () { + isStillMounted.current = true; + external_this_wp_apiFetch_default()({ + path: Object(external_this_wp_url_["addQueryArgs"])("/wp/v2/categories", CATEGORIES_LIST_QUERY) + }).then(function (data) { + if (isStillMounted.current) { + setCategoriesList(data); + } + }).catch(function () { + if (isStillMounted.current) { + setCategoriesList([]); + } + }); + external_this_wp_apiFetch_default()({ + path: Object(external_this_wp_url_["addQueryArgs"])("/wp/v2/users", USERS_LIST_QUERY) + }).then(function (data) { + if (isStillMounted.current) { + setAuthorList(data); + } + }).catch(function () { + if (isStillMounted.current) { + setAuthorList([]); + } + }); + return function () { + isStillMounted.current = false; + }; + }, []); + var inspectorControls = Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Post content settings') + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Post content'), + checked: displayPostContent, + onChange: function onChange(value) { + return setAttributes({ + displayPostContent: value + }); + } + }), displayPostContent && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RadioControl"], { + label: Object(external_this_wp_i18n_["__"])('Show:'), + selected: displayPostContentRadio, + options: [{ + label: Object(external_this_wp_i18n_["__"])('Excerpt'), + value: 'excerpt' + }, { + label: Object(external_this_wp_i18n_["__"])('Full post'), + value: 'full_post' + }], + onChange: function onChange(value) { + return setAttributes({ + displayPostContentRadio: value + }); + } + }), displayPostContent && displayPostContentRadio === 'excerpt' && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], { + label: Object(external_this_wp_i18n_["__"])('Max number of words in excerpt'), + value: excerptLength, + onChange: function onChange(value) { + return setAttributes({ + excerptLength: value + }); + }, + min: MIN_EXCERPT_LENGTH, + max: MAX_EXCERPT_LENGTH + })), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Post meta settings') + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Display author name'), + checked: displayAuthor, + onChange: function onChange(value) { + return setAttributes({ + displayAuthor: value + }); + } + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Display post date'), + checked: displayPostDate, + onChange: function onChange(value) { + return setAttributes({ + displayPostDate: value + }); + } + })), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Featured image settings') + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Display featured image'), + checked: displayFeaturedImage, + onChange: function onChange(value) { + return setAttributes({ + displayFeaturedImage: value + }); + } + }), displayFeaturedImage && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalImageSizeControl"], { + onChange: function onChange(value) { + var newAttrs = {}; + + if (value.hasOwnProperty('width')) { + newAttrs.featuredImageSizeWidth = value.width; } - var featuredImageInfo = { - url: url, - // eslint-disable-next-line camelcase - alt: image === null || image === void 0 ? void 0 : image.alt_text - }; - return latest_posts_edit_objectSpread(latest_posts_edit_objectSpread({}, post), {}, { - featuredImageInfo: featuredImageInfo + if (value.hasOwnProperty('height')) { + newAttrs.featuredImageSizeHeight = value.height; + } + + setAttributes(newAttrs); + }, + slug: featuredImageSizeSlug, + width: featuredImageSizeWidth, + height: featuredImageSizeHeight, + imageWidth: defaultImageWidth, + imageHeight: defaultImageHeight, + imageSizeOptions: imageSizeOptions, + onChangeImage: function onChangeImage(value) { + return setAttributes({ + featuredImageSizeSlug: value, + featuredImageSizeWidth: undefined, + featuredImageSizeHeight: undefined }); - }) - }; -})(edit_LatestPostsEdit)); + } + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["BaseControl"], { + className: "block-editor-image-alignment-control__row" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["BaseControl"].VisualLabel, null, Object(external_this_wp_i18n_["__"])('Image alignment')), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockAlignmentToolbar"], { + value: featuredImageAlign, + onChange: function onChange(value) { + return setAttributes({ + featuredImageAlign: value + }); + }, + controls: ['left', 'center', 'right'], + isCollapsed: false + })), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Add link to featured image'), + checked: addLinkToFeaturedImage, + onChange: function onChange(value) { + return setAttributes({ + addLinkToFeaturedImage: value + }); + } + }))), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Sorting and filtering') + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["QueryControls"], Object(esm_extends["a" /* default */])({ + order: order, + orderBy: orderBy + }, { + numberOfItems: postsToShow, + onOrderChange: function onOrderChange(value) { + return setAttributes({ + order: value + }); + }, + onOrderByChange: function onOrderByChange(value) { + return setAttributes({ + orderBy: value + }); + }, + onNumberOfItemsChange: function onNumberOfItemsChange(value) { + return setAttributes({ + postsToShow: value + }); + }, + categorySuggestions: categorySuggestions, + onCategoryChange: selectCategories, + selectedCategories: categories, + onAuthorChange: function onAuthorChange(value) { + return setAttributes({ + selectedAuthor: '' !== value ? Number(value) : undefined + }); + }, + authorList: authorList, + selectedAuthorId: selectedAuthor + })), postLayout === 'grid' && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], { + label: Object(external_this_wp_i18n_["__"])('Columns'), + value: columns, + onChange: function onChange(value) { + return setAttributes({ + columns: value + }); + }, + min: 2, + max: !hasPosts ? MAX_POSTS_COLUMNS : Math.min(MAX_POSTS_COLUMNS, latestPosts.length), + required: true + }))); + var blockProps = Object(external_this_wp_blockEditor_["useBlockProps"])(); + var hasPosts = Array.isArray(latestPosts) && latestPosts.length; + + if (!hasPosts) { + return Object(external_this_wp_element_["createElement"])("div", blockProps, inspectorControls, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Placeholder"], { + icon: library_pin, + label: Object(external_this_wp_i18n_["__"])('Latest Posts') + }, !Array.isArray(latestPosts) ? Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Spinner"], null) : Object(external_this_wp_i18n_["__"])('No posts found.'))); + } // Removing posts from display should be instant. + + + var displayPosts = latestPosts.length > postsToShow ? latestPosts.slice(0, postsToShow) : latestPosts; + var layoutControls = [{ + icon: library_list, + title: Object(external_this_wp_i18n_["__"])('List view'), + onClick: function onClick() { + return setAttributes({ + postLayout: 'list' + }); + }, + isActive: postLayout === 'list' + }, { + icon: library_grid, + title: Object(external_this_wp_i18n_["__"])('Grid view'), + onClick: function onClick() { + return setAttributes({ + postLayout: 'grid' + }); + }, + isActive: postLayout === 'grid' + }]; + + var dateFormat = Object(external_this_wp_date_["__experimentalGetSettings"])().formats.date; + + return Object(external_this_wp_element_["createElement"])("div", blockProps, inspectorControls, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], { + controls: layoutControls + })), Object(external_this_wp_element_["createElement"])("ul", { + className: classnames_default()(Object(defineProperty["a" /* default */])({ + 'wp-block-latest-posts__list': true, + 'is-grid': postLayout === 'grid', + 'has-dates': displayPostDate, + 'has-author': displayAuthor + }, "columns-".concat(columns), postLayout === 'grid')) + }, displayPosts.map(function (post, i) { + var titleTrimmed = Object(external_this_lodash_["invoke"])(post, ['title', 'rendered', 'trim']); + var excerpt = post.excerpt.rendered; + var currentAuthor = authorList.find(function (author) { + return author.id === post.author; + }); + var excerptElement = document.createElement('div'); + excerptElement.innerHTML = excerpt; + excerpt = excerptElement.textContent || excerptElement.innerText || ''; + var _post$featuredImageIn = post.featuredImageInfo; + _post$featuredImageIn = _post$featuredImageIn === void 0 ? {} : _post$featuredImageIn; + var imageSourceUrl = _post$featuredImageIn.url, + featuredImageAlt = _post$featuredImageIn.alt; + var imageClasses = classnames_default()(Object(defineProperty["a" /* default */])({ + 'wp-block-latest-posts__featured-image': true + }, "align".concat(featuredImageAlign), !!featuredImageAlign)); + var renderFeaturedImage = displayFeaturedImage && imageSourceUrl; + var featuredImage = renderFeaturedImage && Object(external_this_wp_element_["createElement"])("img", { + src: imageSourceUrl, + alt: featuredImageAlt, + style: { + maxWidth: featuredImageSizeWidth, + maxHeight: featuredImageSizeHeight + } + }); + var needsReadMore = excerptLength < excerpt.trim().split(' ').length && post.excerpt.raw === ''; + var postExcerpt = needsReadMore ? Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, excerpt.trim().split(' ', excerptLength).join(' '), Object(external_this_wp_i18n_["__"])(' … '), Object(external_this_wp_element_["createElement"])("a", { + href: post.link, + target: "_blank", + rel: "noopener noreferrer" + }, Object(external_this_wp_i18n_["__"])('Read more'))) : excerpt; + return Object(external_this_wp_element_["createElement"])("li", { + key: i + }, renderFeaturedImage && Object(external_this_wp_element_["createElement"])("div", { + className: imageClasses + }, addLinkToFeaturedImage ? Object(external_this_wp_element_["createElement"])("a", { + href: post.link, + target: "_blank", + rel: "noreferrer noopener" + }, featuredImage) : featuredImage), Object(external_this_wp_element_["createElement"])("a", { + href: post.link, + target: "_blank", + rel: "noreferrer noopener" + }, titleTrimmed ? Object(external_this_wp_element_["createElement"])(external_this_wp_element_["RawHTML"], null, titleTrimmed) : Object(external_this_wp_i18n_["__"])('(no title)')), displayAuthor && currentAuthor && Object(external_this_wp_element_["createElement"])("div", { + className: "wp-block-latest-posts__post-author" + }, Object(external_this_wp_i18n_["sprintf"])( + /* translators: byline. %s: current author. */ + Object(external_this_wp_i18n_["__"])('by %s'), currentAuthor.name)), displayPostDate && post.date_gmt && Object(external_this_wp_element_["createElement"])("time", { + dateTime: Object(external_this_wp_date_["format"])('c', post.date_gmt), + className: "wp-block-latest-posts__post-date" + }, Object(external_this_wp_date_["dateI18n"])(dateFormat, post.date_gmt)), displayPostContent && displayPostContentRadio === 'excerpt' && Object(external_this_wp_element_["createElement"])("div", { + className: "wp-block-latest-posts__post-excerpt" + }, postExcerpt), displayPostContent && displayPostContentRadio === 'full_post' && Object(external_this_wp_element_["createElement"])("div", { + className: "wp-block-latest-posts__post-full-content" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_element_["RawHTML"], { + key: "html" + }, post.content.raw.trim()))); + }))); +} // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/latest-posts/index.js /** @@ -17982,7 +17939,7 @@ var latest_posts_settings = { icon: post_list, keywords: [Object(external_this_wp_i18n_["__"])('recent posts')], example: {}, - edit: latest_posts_edit, + edit: LatestPostsEdit, deprecated: latest_posts_deprecated }; @@ -18279,7 +18236,7 @@ function ListEdit(_ref) { }))); }; - var blockWrapperProps = Object(external_this_wp_blockEditor_["__experimentalUseBlockWrapperProps"])(); + var blockProps = Object(external_this_wp_blockEditor_["useBlockProps"])(); return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], Object(esm_extends["a" /* default */])({ identifier: "values", multiline: "li", @@ -18308,7 +18265,7 @@ function ListEdit(_ref) { start: start, reversed: reversed, type: type - }, blockWrapperProps), controls), ordered && Object(external_this_wp_element_["createElement"])(ordered_list_settings, { + }, blockProps), controls), ordered && Object(external_this_wp_element_["createElement"])(ordered_list_settings, { setAttributes: setAttributes, ordered: ordered, reversed: reversed, @@ -18330,15 +18287,15 @@ function list_save_save(_ref) { type = attributes.type, reversed = attributes.reversed, start = attributes.start; - var tagName = ordered ? 'ol' : 'ul'; - return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { - tagName: tagName, - value: values, + var TagName = ordered ? 'ol' : 'ul'; + return Object(external_this_wp_element_["createElement"])(TagName, external_this_wp_blockEditor_["useBlockProps"].save({ type: type, reversed: reversed, - start: start, + start: start + }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + value: values, multiline: "li" - }); + })); } // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/list/transforms.js @@ -18572,6 +18529,7 @@ function list_objectSpread(target) { for (var i = 1; i < arguments.length; i++) var list_metadata = { + apiVersion: 2, name: "core/list", category: "text", attributes: { @@ -18600,11 +18558,10 @@ var list_metadata = { supports: { anchor: true, className: false, - __experimentalColor: { + color: { gradients: true }, - __unstablePasteTextInline: true, - lightBlockWrapper: true + __unstablePasteTextInline: true } }; @@ -18675,7 +18632,7 @@ function MissingBlockWarning(_ref) { Object(external_this_wp_i18n_["__"])('Your site doesn’t include support for the "%s" block. You can leave this block intact or remove it entirely.'), originalName); } - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["Warning"], { + return Object(external_this_wp_element_["createElement"])("div", Object(external_this_wp_blockEditor_["useBlockProps"])(), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["Warning"], { actions: actions }, messageHTML), Object(external_this_wp_element_["createElement"])(external_this_wp_element_["RawHTML"], null, originalUndelimitedContent)); } @@ -18722,6 +18679,7 @@ function missing_save_save(_ref) { var missing_metadata = { + apiVersion: 2, name: "core/missing", category: "text", attributes: { @@ -18837,7 +18795,7 @@ function MoreEdit(_ref) { checked: !!noTeaser, onChange: toggleHideExcerpt, help: getHideExcerptHelp - }))), Object(external_this_wp_element_["createElement"])("div", { + }))), Object(external_this_wp_element_["createElement"])("div", Object(external_this_wp_blockEditor_["useBlockProps"])(), Object(external_this_wp_element_["createElement"])("div", { className: "wp-block-more" }, Object(external_this_wp_element_["createElement"])("input", { "aria-label": Object(external_this_wp_i18n_["__"])('Read more link text'), @@ -18847,7 +18805,7 @@ function MoreEdit(_ref) { onChange: onChangeInput, onKeyDown: onKeyDown, style: style - }))); + })))); } // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/more/save.js @@ -18920,6 +18878,7 @@ var more_transforms_transforms = { var more_metadata = { + apiVersion: 2, name: "core/more", category: "design", attributes: { @@ -18982,10 +18941,11 @@ var pageBreak = Object(external_this_wp_element_["createElement"])(external_this * WordPress dependencies */ + function NextPageEdit() { - return Object(external_this_wp_element_["createElement"])("div", { + return Object(external_this_wp_element_["createElement"])("div", Object(external_this_wp_blockEditor_["useBlockProps"])(), Object(external_this_wp_element_["createElement"])("div", { className: "wp-block-nextpage" - }, Object(external_this_wp_element_["createElement"])("span", null, Object(external_this_wp_i18n_["__"])('Page break'))); + }, Object(external_this_wp_element_["createElement"])("span", null, Object(external_this_wp_i18n_["__"])('Page break')))); } // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/nextpage/save.js @@ -19034,6 +18994,7 @@ var nextpage_transforms_transforms = { var nextpage_metadata = { + apiVersion: 2, name: "core/nextpage", category: "design", parent: ["core/post-content"], @@ -19087,7 +19048,7 @@ function PreformattedEdit(_ref) { mergeBlocks = _ref.mergeBlocks, setAttributes = _ref.setAttributes; var content = attributes.content; - var blockWrapperProps = Object(external_this_wp_blockEditor_["__experimentalUseBlockWrapperProps"])(); + var blockProps = Object(external_this_wp_blockEditor_["useBlockProps"])(); return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], Object(esm_extends["a" /* default */])({ tagName: "pre", identifier: "content", @@ -19100,7 +19061,7 @@ function PreformattedEdit(_ref) { }, placeholder: Object(external_this_wp_i18n_["__"])('Write preformatted text…'), onMerge: mergeBlocks - }, blockWrapperProps)); + }, blockProps)); } // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/preformatted/save.js @@ -19113,10 +19074,9 @@ function PreformattedEdit(_ref) { function preformatted_save_save(_ref) { var attributes = _ref.attributes; var content = attributes.content; - return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { - tagName: "pre", + return Object(external_this_wp_element_["createElement"])("pre", external_this_wp_blockEditor_["useBlockProps"].save(), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { value: content - }); + })); } // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/preformatted/transforms.js @@ -19178,6 +19138,7 @@ var preformatted_transforms_transforms = { var preformatted_metadata = { + apiVersion: 2, name: "core/preformatted", category: "text", attributes: { @@ -19190,8 +19151,7 @@ var preformatted_metadata = { } }, supports: { - anchor: true, - lightBlockWrapper: true + anchor: true } }; @@ -19507,15 +19467,9 @@ var BlockQuote = 'blockquote'; +function pullquote_edit_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - - - - - -function pullquote_edit_createSuper(Derived) { var hasNativeReflectConstruct = pullquote_edit_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; } - -function pullquote_edit_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } +function pullquote_edit_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { pullquote_edit_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { pullquote_edit_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } /** * External dependencies @@ -19542,173 +19496,137 @@ function pullquote_edit_isNativeReflectConstruct() { if (typeof Reflect === "und -var edit_PullQuoteEdit = /*#__PURE__*/function (_Component) { - Object(inherits["a" /* default */])(PullQuoteEdit, _Component); +function PullQuoteEdit(_ref) { + var colorUtils = _ref.colorUtils, + textColor = _ref.textColor, + _ref$attributes = _ref.attributes, + value = _ref$attributes.value, + citation = _ref$attributes.citation, + setAttributes = _ref.setAttributes, + setTextColor = _ref.setTextColor, + setMainColor = _ref.setMainColor, + mainColor = _ref.mainColor, + isSelected = _ref.isSelected, + insertBlocksAfter = _ref.insertBlocksAfter; + var wasTextColorAutomaticallyComputed = Object(external_this_wp_element_["useRef"])(false); + var blockProps = Object(external_this_wp_blockEditor_["useBlockProps"])(); + var _blockProps$style = blockProps.style, + style = _blockProps$style === void 0 ? {} : _blockProps$style, + className = blockProps.className; + var isSolidColorStyle = Object(external_this_lodash_["includes"])(className, SOLID_COLOR_CLASS); - var _super = pullquote_edit_createSuper(PullQuoteEdit); + var newBlockProps = pullquote_edit_objectSpread(pullquote_edit_objectSpread({}, blockProps), {}, { + className: classnames_default()(className, Object(defineProperty["a" /* default */])({ + 'has-background': isSolidColorStyle && mainColor.color + }, mainColor.class, isSolidColorStyle && mainColor.class)), + style: isSolidColorStyle ? pullquote_edit_objectSpread(pullquote_edit_objectSpread({}, style), {}, { + backgroundColor: mainColor.color + }) : pullquote_edit_objectSpread(pullquote_edit_objectSpread({}, style), {}, { + borderColor: mainColor.color + }) + }); - function PullQuoteEdit(props) { - var _this; + function pullQuoteMainColorSetter(colorValue) { + var needTextColor = !textColor.color || wasTextColorAutomaticallyComputed.current; + var shouldSetTextColor = isSolidColorStyle && needTextColor; - Object(classCallCheck["a" /* default */])(this, PullQuoteEdit); + if (isSolidColorStyle) { + // If we use the solid color style, set the color using the normal mechanism. + setMainColor(colorValue); + } else { + // If we use the default style, set the color as a custom color to force the usage of an inline style. + // Default style uses a border color for which classes are not available. + setAttributes({ + customMainColor: colorValue + }); + } - _this = _super.call(this, props); - _this.wasTextColorAutomaticallyComputed = false; - _this.pullQuoteMainColorSetter = _this.pullQuoteMainColorSetter.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.pullQuoteTextColorSetter = _this.pullQuoteTextColorSetter.bind(Object(assertThisInitialized["a" /* default */])(_this)); - return _this; + if (shouldSetTextColor) { + if (colorValue) { + wasTextColorAutomaticallyComputed.current = true; + setTextColor(colorUtils.getMostReadableColor(colorValue)); + } else if (wasTextColorAutomaticallyComputed.current) { + // We have to unset our previously computed text color on unsetting the main color. + wasTextColorAutomaticallyComputed.current = false; + setTextColor(); + } + } } - Object(createClass["a" /* default */])(PullQuoteEdit, [{ - key: "pullQuoteMainColorSetter", - value: function pullQuoteMainColorSetter(colorValue) { - var _this$props = this.props, - colorUtils = _this$props.colorUtils, - textColor = _this$props.textColor, - setAttributes = _this$props.setAttributes, - setTextColor = _this$props.setTextColor, - setMainColor = _this$props.setMainColor, - className = _this$props.className; - var isSolidColorStyle = Object(external_this_lodash_["includes"])(className, SOLID_COLOR_CLASS); - var needTextColor = !textColor.color || this.wasTextColorAutomaticallyComputed; - var shouldSetTextColor = isSolidColorStyle && needTextColor; + function pullQuoteTextColorSetter(colorValue) { + setTextColor(colorValue); + wasTextColorAutomaticallyComputed.current = false; + } - if (isSolidColorStyle) { - // If we use the solid color style, set the color using the normal mechanism. - setMainColor(colorValue); - } else { - // If we use the default style, set the color as a custom color to force the usage of an inline style. - // Default style uses a border color for which classes are not available. - setAttributes({ - customMainColor: colorValue - }); - } - - if (shouldSetTextColor) { - if (colorValue) { - this.wasTextColorAutomaticallyComputed = true; - setTextColor(colorUtils.getMostReadableColor(colorValue)); - } else if (this.wasTextColorAutomaticallyComputed) { - // We have to unset our previously computed text color on unsetting the main color. - this.wasTextColorAutomaticallyComputed = false; - setTextColor(); - } - } + Object(external_this_wp_element_["useEffect"])(function () { + // If the block includes a named color and we switched from the + // solid color style to the default style. + if (mainColor && !isSolidColorStyle) { + // Remove the named color, and set the color as a custom color. + // This is done because named colors use classes, in the default style we use a border color, + // and themes don't set classes for border colors. + setAttributes({ + mainColor: undefined, + customMainColor: mainColor.color + }); } + }, [isSolidColorStyle, mainColor]); + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(Figure, newBlockProps, Object(external_this_wp_element_["createElement"])(BlockQuote, { + style: { + color: textColor.color + }, + className: textColor.color && classnames_default()('has-text-color', Object(defineProperty["a" /* default */])({}, textColor.class, textColor.class)) + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + identifier: "value", + multiline: true, + value: value, + onChange: function onChange(nextValue) { + return setAttributes({ + value: nextValue + }); + }, + placeholder: // translators: placeholder text used for the quote + Object(external_this_wp_i18n_["__"])('Write quote…'), + textAlign: "center" + }), (!external_this_wp_blockEditor_["RichText"].isEmpty(citation) || isSelected) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + identifier: "citation", + value: citation, + placeholder: // translators: placeholder text used for the citation + Object(external_this_wp_i18n_["__"])('Write citation…'), + onChange: function onChange(nextCitation) { + return setAttributes({ + citation: nextCitation + }); + }, + className: "wp-block-pullquote__citation", + __unstableMobileNoFocusOnMount: true, + textAlign: "center", + __unstableOnSplitAtEnd: function __unstableOnSplitAtEnd() { + return insertBlocksAfter(Object(external_this_wp_blocks_["createBlock"])('core/paragraph')); + } + }))), external_this_wp_element_["Platform"].OS === 'web' && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["PanelColorSettings"], { + title: Object(external_this_wp_i18n_["__"])('Color settings'), + colorSettings: [{ + value: mainColor.color, + onChange: pullQuoteMainColorSetter, + label: Object(external_this_wp_i18n_["__"])('Main color') + }, { + value: textColor.color, + onChange: pullQuoteTextColorSetter, + label: Object(external_this_wp_i18n_["__"])('Text color') + }] + }, isSolidColorStyle && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["ContrastChecker"], Object(esm_extends["a" /* default */])({ + textColor: textColor.color, + backgroundColor: mainColor.color }, { - key: "pullQuoteTextColorSetter", - value: function pullQuoteTextColorSetter(colorValue) { - var setTextColor = this.props.setTextColor; - setTextColor(colorValue); - this.wasTextColorAutomaticallyComputed = false; - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - var _this$props2 = this.props, - attributes = _this$props2.attributes, - className = _this$props2.className, - mainColor = _this$props2.mainColor, - setAttributes = _this$props2.setAttributes; // If the block includes a named color and we switched from the - // solid color style to the default style. - - if (attributes.mainColor && !Object(external_this_lodash_["includes"])(className, SOLID_COLOR_CLASS) && Object(external_this_lodash_["includes"])(prevProps.className, SOLID_COLOR_CLASS)) { - // Remove the named color, and set the color as a custom color. - // This is done because named colors use classes, in the default style we use a border color, - // and themes don't set classes for border colors. - setAttributes({ - mainColor: undefined, - customMainColor: mainColor.color - }); - } - } - }, { - key: "render", - value: function render() { - var _this$props3 = this.props, - attributes = _this$props3.attributes, - mainColor = _this$props3.mainColor, - textColor = _this$props3.textColor, - setAttributes = _this$props3.setAttributes, - isSelected = _this$props3.isSelected, - className = _this$props3.className, - insertBlocksAfter = _this$props3.insertBlocksAfter; - var value = attributes.value, - citation = attributes.citation; - var isSolidColorStyle = Object(external_this_lodash_["includes"])(className, SOLID_COLOR_CLASS); - var figureStyles = isSolidColorStyle ? { - backgroundColor: mainColor.color - } : { - borderColor: mainColor.color - }; - var figureClasses = classnames_default()(className, Object(defineProperty["a" /* default */])({ - 'has-background': isSolidColorStyle && mainColor.color - }, mainColor.class, isSolidColorStyle && mainColor.class)); - var blockquoteStyles = { - color: textColor.color - }; - var blockquoteClasses = textColor.color && classnames_default()('has-text-color', Object(defineProperty["a" /* default */])({}, textColor.class, textColor.class)); - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(Figure, { - style: figureStyles, - className: figureClasses - }, Object(external_this_wp_element_["createElement"])(BlockQuote, { - style: blockquoteStyles, - className: blockquoteClasses - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { - identifier: "value", - multiline: true, - value: value, - onChange: function onChange(nextValue) { - return setAttributes({ - value: nextValue - }); - }, - placeholder: // translators: placeholder text used for the quote - Object(external_this_wp_i18n_["__"])('Write quote…'), - textAlign: "center" - }), (!external_this_wp_blockEditor_["RichText"].isEmpty(citation) || isSelected) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { - identifier: "citation", - value: citation, - placeholder: // translators: placeholder text used for the citation - Object(external_this_wp_i18n_["__"])('Write citation…'), - onChange: function onChange(nextCitation) { - return setAttributes({ - citation: nextCitation - }); - }, - className: "wp-block-pullquote__citation", - __unstableMobileNoFocusOnMount: true, - textAlign: "center", - __unstableOnSplitAtEnd: function __unstableOnSplitAtEnd() { - return insertBlocksAfter(Object(external_this_wp_blocks_["createBlock"])('core/paragraph')); - } - }))), external_this_wp_element_["Platform"].OS === 'web' && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["PanelColorSettings"], { - title: Object(external_this_wp_i18n_["__"])('Color settings'), - colorSettings: [{ - value: mainColor.color, - onChange: this.pullQuoteMainColorSetter, - label: Object(external_this_wp_i18n_["__"])('Main color') - }, { - value: textColor.color, - onChange: this.pullQuoteTextColorSetter, - label: Object(external_this_wp_i18n_["__"])('Text color') - }] - }, isSolidColorStyle && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["ContrastChecker"], Object(esm_extends["a" /* default */])({ - textColor: textColor.color, - backgroundColor: mainColor.color - }, { - isLargeText: false - }))))); - } - }]); - - return PullQuoteEdit; -}(external_this_wp_element_["Component"]); + isLargeText: false + }))))); +} /* harmony default export */ var pullquote_edit = (Object(external_this_wp_blockEditor_["withColors"])({ mainColor: 'background-color', textColor: 'color' -})(edit_PullQuoteEdit)); +})(PullQuoteEdit)); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/pullquote/save.js @@ -19760,10 +19678,10 @@ function pullquote_save_save(_ref) { var blockquoteStyles = blockquoteTextColorClass ? undefined : { color: customTextColor }; - return Object(external_this_wp_element_["createElement"])("figure", { + return Object(external_this_wp_element_["createElement"])("figure", external_this_wp_blockEditor_["useBlockProps"].save({ className: figureClasses, style: figureStyles - }, Object(external_this_wp_element_["createElement"])("blockquote", { + }), Object(external_this_wp_element_["createElement"])("blockquote", { className: blockquoteClasses, style: blockquoteStyles }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { @@ -19914,6 +19832,7 @@ var pullquote_transforms_transforms = { var pullquote_metadata = { + apiVersion: 2, name: "core/pullquote", category: "text", attributes: { @@ -19976,6 +19895,13 @@ var pullquote_settings = { deprecated: pullquote_deprecated }; +// EXTERNAL MODULE: external {"this":"regeneratorRuntime"} +var external_this_regeneratorRuntime_ = __webpack_require__(20); +var external_this_regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(external_this_regeneratorRuntime_); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js +var asyncToGenerator = __webpack_require__(45); + // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/block/edit-panel/index.js @@ -19986,7 +19912,6 @@ var pullquote_settings = { - /** @typedef {import('@wordpress/element').WPComponent} WPComponent */ /** @@ -20025,7 +19950,6 @@ function ReusableBlockEditPanel(_ref) { var isEditDisabled = _ref.isEditDisabled, isEditing = _ref.isEditing, isSaving = _ref.isSaving, - onCancel = _ref.onCancel, onChangeTitle = _ref.onChangeTitle, onEdit = _ref.onEdit, onSave = _ref.onSave, @@ -20057,13 +19981,6 @@ function ReusableBlockEditPanel(_ref) { onChangeTitle(event.target.value); } - function handleTitleKeyDown(event) { - if (event.keyCode === external_this_wp_keycodes_["ESCAPE"]) { - event.stopPropagation(); - onCancel(); - } - } - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, !isEditing && !isSaving && Object(external_this_wp_element_["createElement"])("div", { className: "reusable-block-edit-panel" }, Object(external_this_wp_element_["createElement"])("b", { @@ -20087,7 +20004,6 @@ function ReusableBlockEditPanel(_ref) { className: "reusable-block-edit-panel__title", value: title, onChange: handleTitleChange, - onKeyDown: handleTitleKeyDown, id: "reusable-block-edit-panel__title-".concat(instanceId) }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { type: "submit", @@ -20104,17 +20020,6 @@ function ReusableBlockEditPanel(_ref) { - - - -function block_edit_createSuper(Derived) { var hasNativeReflectConstruct = block_edit_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; } - -function block_edit_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } - -/** - * External dependencies - */ - /** * WordPress dependencies */ @@ -20124,214 +20029,139 @@ function block_edit_isNativeReflectConstruct() { if (typeof Reflect === "undefin - - /** * Internal dependencies */ +function ReusableBlockEdit(_ref) { + var ref = _ref.attributes.ref, + clientId = _ref.clientId, + isSelected = _ref.isSelected; + var recordArgs = ['postType', 'wp_block', ref]; -var edit_ReusableBlockEdit = /*#__PURE__*/function (_Component) { - Object(inherits["a" /* default */])(ReusableBlockEdit, _Component); + var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { + var _select, _select2; - var _super = block_edit_createSuper(ReusableBlockEdit); + return { + reusableBlock: (_select = select('core')).getEditedEntityRecord.apply(_select, recordArgs), + hasResolved: select('core').hasFinishedResolution('getEditedEntityRecord', recordArgs), + isSaving: (_select2 = select('core')).isSavingEntityRecord.apply(_select2, recordArgs), + canUserUpdate: select('core').canUser('update', 'blocks', ref), + isEditing: select('core/reusable-blocks').__experimentalIsEditingReusableBlock(clientId), + settings: select('core/block-editor').getSettings() + }; + }, [ref, clientId]), + reusableBlock = _useSelect.reusableBlock, + hasResolved = _useSelect.hasResolved, + isEditing = _useSelect.isEditing, + isSaving = _useSelect.isSaving, + canUserUpdate = _useSelect.canUserUpdate, + settings = _useSelect.settings; - function ReusableBlockEdit(_ref) { - var _this; + var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core'), + editEntityRecord = _useDispatch.editEntityRecord, + saveEditedEntityRecord = _useDispatch.saveEditedEntityRecord; - var reusableBlock = _ref.reusableBlock; + var _useDispatch2 = Object(external_this_wp_data_["useDispatch"])('core/reusable-blocks'), + __experimentalSetEditingReusableBlock = _useDispatch2.__experimentalSetEditingReusableBlock; - Object(classCallCheck["a" /* default */])(this, ReusableBlockEdit); + var setIsEditing = Object(external_this_wp_element_["useCallback"])(function (value) { + __experimentalSetEditingReusableBlock(clientId, value); + }, [clientId]); - _this = _super.apply(this, arguments); - _this.startEditing = _this.startEditing.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.stopEditing = _this.stopEditing.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.setBlocks = _this.setBlocks.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.setTitle = _this.setTitle.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.save = _this.save.bind(Object(assertThisInitialized["a" /* default */])(_this)); + var _useDispatch3 = Object(external_this_wp_data_["useDispatch"])('core/reusable-blocks'), + convertBlockToStatic = _useDispatch3.__experimentalConvertBlockToStatic; - if (reusableBlock) { - // Start in edit mode when we're working with a newly created reusable block - _this.state = { - isEditing: reusableBlock.isTemporary, - title: reusableBlock.title, - blocks: Object(external_this_wp_blocks_["parse"])(reusableBlock.content) - }; - } else { - // Start in preview mode when we're working with an existing reusable block - _this.state = { - isEditing: false, - title: null, - blocks: [] - }; - } + var _useDispatch4 = Object(external_this_wp_data_["useDispatch"])('core/notices'), + createSuccessNotice = _useDispatch4.createSuccessNotice, + createErrorNotice = _useDispatch4.createErrorNotice; - return _this; + var save = Object(external_this_wp_element_["useCallback"])( /*#__PURE__*/Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(function _callee() { + return external_this_regeneratorRuntime_default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _context.prev = 0; + _context.next = 3; + return saveEditedEntityRecord.apply(void 0, recordArgs); + + case 3: + createSuccessNotice(Object(external_this_wp_i18n_["__"])('Block updated.'), { + type: 'snackbar' + }); + _context.next = 9; + break; + + case 6: + _context.prev = 6; + _context.t0 = _context["catch"](0); + createErrorNotice(_context.t0.message, { + type: 'snackbar' + }); + + case 9: + case "end": + return _context.stop(); + } + } + }, _callee, null, [[0, 6]]); + })), recordArgs); + + var _useEntityBlockEditor = Object(external_this_wp_coreData_["useEntityBlockEditor"])('postType', 'wp_block', { + id: ref + }), + _useEntityBlockEditor2 = Object(slicedToArray["a" /* default */])(_useEntityBlockEditor, 3), + blocks = _useEntityBlockEditor2[0], + onInput = _useEntityBlockEditor2[1], + onChange = _useEntityBlockEditor2[2]; + + var blockProps = Object(external_this_wp_blockEditor_["useBlockProps"])(); + + if (!hasResolved) { + return Object(external_this_wp_element_["createElement"])("div", blockProps, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Placeholder"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Spinner"], null))); } - Object(createClass["a" /* default */])(ReusableBlockEdit, [{ - key: "componentDidMount", - value: function componentDidMount() { - if (!this.props.reusableBlock) { - this.props.fetchReusableBlock(); - } + if (!reusableBlock) { + return Object(external_this_wp_element_["createElement"])("div", blockProps, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Placeholder"], null, Object(external_this_wp_i18n_["__"])('Block has been deleted or is unavailable.'))); + } + + var element = Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockEditorProvider"], { + value: blocks, + onInput: onInput, + onChange: onChange, + settings: settings + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["WritingFlow"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockList"], null))); + + if (!isEditing) { + element = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"], null, element); + } + + return Object(external_this_wp_element_["createElement"])("div", blockProps, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarButton"], { + onClick: function onClick() { + return convertBlockToStatic(clientId); } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - if (prevProps.reusableBlock !== this.props.reusableBlock && this.state.title === null) { - this.setState({ - title: this.props.reusableBlock.title, - blocks: Object(external_this_wp_blocks_["parse"])(this.props.reusableBlock.content) - }); - } - } - }, { - key: "startEditing", - value: function startEditing() { - var reusableBlock = this.props.reusableBlock; - this.setState({ - isEditing: true, - title: reusableBlock.title, - blocks: Object(external_this_wp_blocks_["parse"])(reusableBlock.content) - }); - } - }, { - key: "stopEditing", - value: function stopEditing() { - this.setState({ - isEditing: false, - title: null, - blocks: [] - }); - } - }, { - key: "setBlocks", - value: function setBlocks(blocks) { - this.setState({ - blocks: blocks - }); - } - }, { - key: "setTitle", - value: function setTitle(title) { - this.setState({ + }, Object(external_this_wp_i18n_["__"])('Convert to regular blocks')))), Object(external_this_wp_element_["createElement"])("div", { + className: "block-library-block__reusable-block-container" + }, (isSelected || isEditing) && Object(external_this_wp_element_["createElement"])(ReusableBlockEditPanel, { + isEditing: isEditing, + title: reusableBlock.title, + isSaving: isSaving, + isEditDisabled: !canUserUpdate, + onEdit: function onEdit() { + return setIsEditing(true); + }, + onChangeTitle: function onChangeTitle(title) { + return editEntityRecord.apply(void 0, recordArgs.concat([{ title: title - }); + }])); + }, + onSave: function onSave() { + save(); + setIsEditing(false); } - }, { - key: "save", - value: function save() { - var _this$props = this.props, - onChange = _this$props.onChange, - onSave = _this$props.onSave; - var _this$state = this.state, - blocks = _this$state.blocks, - title = _this$state.title; - var content = Object(external_this_wp_blocks_["serialize"])(blocks); - onChange({ - title: title, - content: content - }); - onSave(); - this.stopEditing(); - } - }, { - key: "render", - value: function render() { - var _this$props2 = this.props, - convertToStatic = _this$props2.convertToStatic, - isSelected = _this$props2.isSelected, - reusableBlock = _this$props2.reusableBlock, - isFetching = _this$props2.isFetching, - isSaving = _this$props2.isSaving, - canUpdateBlock = _this$props2.canUpdateBlock, - settings = _this$props2.settings; - var _this$state2 = this.state, - isEditing = _this$state2.isEditing, - title = _this$state2.title, - blocks = _this$state2.blocks; - - if (!reusableBlock && isFetching) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Placeholder"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Spinner"], null)); - } - - if (!reusableBlock) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Placeholder"], null, Object(external_this_wp_i18n_["__"])('Block has been deleted or is unavailable.')); - } - - var element = Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockEditorProvider"], { - settings: settings, - value: blocks, - onChange: this.setBlocks, - onInput: this.setBlocks - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["WritingFlow"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockList"], null))); - - if (!isEditing) { - element = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"], null, element); - } - - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarButton"], { - onClick: convertToStatic - }, Object(external_this_wp_i18n_["__"])('Convert to regular blocks')))), Object(external_this_wp_element_["createElement"])("div", { - className: "block-library-block__reusable-block-container" - }, (isSelected || isEditing) && Object(external_this_wp_element_["createElement"])(ReusableBlockEditPanel, { - isEditing: isEditing, - title: title !== null ? title : reusableBlock.title, - isSaving: isSaving && !reusableBlock.isTemporary, - isEditDisabled: !canUpdateBlock, - onEdit: this.startEditing, - onChangeTitle: this.setTitle, - onSave: this.save, - onCancel: this.stopEditing - }), element)); - } - }]); - - return ReusableBlockEdit; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var block_edit = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select, ownProps) { - var _select = select('core/editor'), - getReusableBlock = _select.__experimentalGetReusableBlock, - isFetchingReusableBlock = _select.__experimentalIsFetchingReusableBlock, - isSavingReusableBlock = _select.__experimentalIsSavingReusableBlock; - - var _select2 = select('core'), - canUser = _select2.canUser; - - var _select3 = select('core/block-editor'), - __experimentalGetParsedReusableBlock = _select3.__experimentalGetParsedReusableBlock, - getSettings = _select3.getSettings; - - var ref = ownProps.attributes.ref; - var reusableBlock = getReusableBlock(ref); - return { - reusableBlock: reusableBlock, - isFetching: isFetchingReusableBlock(ref), - isSaving: isSavingReusableBlock(ref), - blocks: reusableBlock ? __experimentalGetParsedReusableBlock(reusableBlock.id) : null, - canUpdateBlock: !!reusableBlock && !reusableBlock.isTemporary && !!canUser('update', 'blocks', ref), - settings: getSettings() - }; -}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, ownProps) { - var _dispatch = dispatch('core/editor'), - convertBlockToStatic = _dispatch.__experimentalConvertBlockToStatic, - fetchReusableBlocks = _dispatch.__experimentalFetchReusableBlocks, - updateReusableBlock = _dispatch.__experimentalUpdateReusableBlock, - saveReusableBlock = _dispatch.__experimentalSaveReusableBlock; - - var ref = ownProps.attributes.ref; - return { - fetchReusableBlock: Object(external_this_lodash_["partial"])(fetchReusableBlocks, ref), - onChange: Object(external_this_lodash_["partial"])(updateReusableBlock, ref), - onSave: Object(external_this_lodash_["partial"])(saveReusableBlock, ref), - convertToStatic: function convertToStatic() { - convertBlockToStatic(ownProps.clientId); - } - }; -})])(edit_ReusableBlockEdit)); + }), element)); +} // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/block/index.js /** @@ -20343,6 +20173,7 @@ var edit_ReusableBlockEdit = /*#__PURE__*/function (_Component) { */ var block_metadata = { + apiVersion: 2, name: "core/block", category: "reusable", attributes: { @@ -20362,7 +20193,7 @@ var block_name = block_metadata.name; var block_settings = { title: Object(external_this_wp_i18n_["__"])('Reusable Block'), description: Object(external_this_wp_i18n_["__"])('Create and save content to reuse across your site. Update the block, and the changes apply everywhere it’s used.'), - edit: block_edit + edit: ReusableBlockEdit }; // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/rss.js @@ -20429,8 +20260,10 @@ function RSSEdit(_ref) { } } + var blockProps = Object(external_this_wp_blockEditor_["useBlockProps"])(); + if (isEditing) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Placeholder"], { + return Object(external_this_wp_element_["createElement"])("div", blockProps, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Placeholder"], { icon: library_rss, label: "RSS" }, Object(external_this_wp_element_["createElement"])("form", { @@ -20448,7 +20281,7 @@ function RSSEdit(_ref) { }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { isPrimary: true, type: "submit" - }, Object(external_this_wp_i18n_["__"])('Use URL')))); + }, Object(external_this_wp_i18n_["__"])('Use URL'))))); } var toolbarControls = [{ @@ -20525,10 +20358,10 @@ function RSSEdit(_ref) { min: 2, max: 6, required: true - }))), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_serverSideRender_default.a, { + }))), Object(external_this_wp_element_["createElement"])("div", blockProps, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_serverSideRender_default.a, { block: "core/rss", attributes: attributes - }))); + })))); } // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/rss/index.js @@ -20542,6 +20375,7 @@ function RSSEdit(_ref) { */ var rss_metadata = { + apiVersion: 2, name: "core/rss", category: "widgets", attributes: { @@ -20766,7 +20600,7 @@ function SearchEdit(_ref) { var unitControlInputId = "wp-block-search__width-".concat(unitControlInstanceId); var getBlockClassNames = function getBlockClassNames() { - return classnames_default()(className, 'button-inside' === buttonPosition ? 'wp-block-search__button-inside' : undefined, 'button-outside' === buttonPosition ? 'wp-block-search__button-outside' : undefined, 'no-button' === buttonPosition ? 'wp-block-search__no-button' : undefined, 'button-only' === buttonPosition ? 'wp-block-search__button-only' : undefined, buttonUseIcon && 'no-button' !== buttonPosition ? 'wp-block-search__text-button' : undefined, !buttonUseIcon && 'no-button' !== buttonPosition ? 'wp-block-search__icon-button' : undefined); + return classnames_default()(className, 'button-inside' === buttonPosition ? 'wp-block-search__button-inside' : undefined, 'button-outside' === buttonPosition ? 'wp-block-search__button-outside' : undefined, 'no-button' === buttonPosition ? 'wp-block-search__no-button' : undefined, 'button-only' === buttonPosition ? 'wp-block-search__button-only' : undefined, !buttonUseIcon && 'no-button' !== buttonPosition ? 'wp-block-search__text-button' : undefined, buttonUseIcon && 'no-button' !== buttonPosition ? 'wp-block-search__icon-button' : undefined); }; var getButtonPositionIcon = function getButtonPositionIcon() { @@ -20931,10 +20765,10 @@ function SearchEdit(_ref) { } }, widthValue, "%"); })))))); - var blockWrapperProps = Object(external_this_wp_blockEditor_["__experimentalUseBlockWrapperProps"])({ + var blockProps = Object(external_this_wp_blockEditor_["useBlockProps"])({ className: getBlockClassNames() }); - return Object(external_this_wp_element_["createElement"])("div", blockWrapperProps, controls, showLabel && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + return Object(external_this_wp_element_["createElement"])("div", blockProps, controls, showLabel && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { className: "wp-block-search__label", "aria-label": Object(external_this_wp_i18n_["__"])('Label text'), placeholder: Object(external_this_wp_i18n_["__"])('Add label…'), @@ -20996,6 +20830,7 @@ var search_variations_variations = [{ */ var search_metadata = { + apiVersion: 2, name: "core/search", category: "widgets", attributes: { @@ -21003,7 +20838,7 @@ var search_metadata = { type: "string" }, showLabel: { - type: "bool", + type: "boolean", "default": true }, placeholder: { @@ -21024,14 +20859,13 @@ var search_metadata = { "default": "button-outside" }, buttonUseIcon: { - type: "bool", + type: "boolean", "default": false } }, supports: { align: ["left", "center", "right"], - html: false, - lightBlockWrapper: true + html: false } }; @@ -21258,19 +21092,20 @@ function GroupEdit(_ref) { var block = getBlock(clientId); return !!(block && block.innerBlocks.length); }, [clientId]); - var blockWrapperProps = Object(external_this_wp_blockEditor_["__experimentalUseBlockWrapperProps"])(); + var blockProps = Object(external_this_wp_blockEditor_["useBlockProps"])(); var _attributes$tagName = attributes.tagName, - TagName = _attributes$tagName === void 0 ? 'div' : _attributes$tagName; - return Object(external_this_wp_element_["createElement"])(TagName, blockWrapperProps, Object(external_this_wp_element_["createElement"])(edit_BoxControlVisualizer, { + TagName = _attributes$tagName === void 0 ? 'div' : _attributes$tagName, + templateLock = attributes.templateLock; + var innerBlocksProps = Object(external_this_wp_blockEditor_["__experimentalUseInnerBlocksProps"])({ + className: 'wp-block-group__inner-container' + }, { + templateLock: templateLock, + renderAppender: hasInnerBlocks ? undefined : external_this_wp_blockEditor_["InnerBlocks"].ButtonBlockAppender + }); + return Object(external_this_wp_element_["createElement"])(TagName, blockProps, Object(external_this_wp_element_["createElement"])(edit_BoxControlVisualizer, { values: (_attributes$style = attributes.style) === null || _attributes$style === void 0 ? void 0 : (_attributes$style$spa = _attributes$style.spacing) === null || _attributes$style$spa === void 0 ? void 0 : _attributes$style$spa.padding, showValues: (_attributes$style2 = attributes.style) === null || _attributes$style2 === void 0 ? void 0 : (_attributes$style2$vi = _attributes$style2.visualizers) === null || _attributes$style2$vi === void 0 ? void 0 : _attributes$style2$vi.padding - }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"], { - renderAppender: hasInnerBlocks ? undefined : external_this_wp_blockEditor_["InnerBlocks"].ButtonBlockAppender, - __experimentalTagName: "div", - __experimentalPassedProps: { - className: 'wp-block-group__inner-container' - } - })); + }), Object(external_this_wp_element_["createElement"])("div", innerBlocksProps)); } /* harmony default export */ var group_edit = (GroupEdit); @@ -21285,7 +21120,7 @@ function GroupEdit(_ref) { function group_save_save(_ref) { var attributes = _ref.attributes; var Tag = attributes.tagName; - return Object(external_this_wp_element_["createElement"])(Tag, null, Object(external_this_wp_element_["createElement"])("div", { + return Object(external_this_wp_element_["createElement"])(Tag, external_this_wp_blockEditor_["useBlockProps"].save(), Object(external_this_wp_element_["createElement"])("div", { className: "wp-block-group__inner-container" }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"].Content, null))); } @@ -21304,24 +21139,29 @@ function group_save_save(_ref) { var group_metadata = { + apiVersion: 2, name: "core/group", category: "design", attributes: { tagName: { type: "string", "default": "div" + }, + templateLock: { + type: "string" } }, supports: { align: ["wide", "full"], anchor: true, html: false, - lightBlockWrapper: true, - __experimentalColor: { + color: { gradients: true, - linkColor: true + link: true }, - __experimentalPadding: true + spacing: { + padding: true + } } }; @@ -21484,7 +21324,7 @@ function SeparatorEdit(_ref) { var color = _ref.color, setColor = _ref.setColor, className = _ref.className; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["HorizontalRule"], { + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["HorizontalRule"], Object(external_this_wp_blockEditor_["useBlockProps"])({ className: classnames_default()(className, Object(defineProperty["a" /* default */])({ 'has-background': color.color }, color.class, color.class)), @@ -21492,7 +21332,7 @@ function SeparatorEdit(_ref) { backgroundColor: color.color, color: color.color } - }), Object(external_this_wp_element_["createElement"])(separator_settings, { + })), Object(external_this_wp_element_["createElement"])(separator_settings, { color: color, setColor: setColor })); @@ -21527,17 +21367,17 @@ function separatorSave(_ref) { // using color, not backgroundColor var colorClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', color); - var separatorClasses = classnames_default()((_classnames = { + var className = classnames_default()((_classnames = { 'has-text-color has-background': color || customColor }, Object(defineProperty["a" /* default */])(_classnames, backgroundClass, backgroundClass), Object(defineProperty["a" /* default */])(_classnames, colorClass, colorClass), _classnames)); - var separatorStyle = { + var style = { backgroundColor: backgroundClass ? undefined : customColor, color: colorClass ? undefined : customColor }; - return Object(external_this_wp_element_["createElement"])("hr", { - className: separatorClasses, - style: separatorStyle - }); + return Object(external_this_wp_element_["createElement"])("hr", external_this_wp_blockEditor_["useBlockProps"].save({ + className: className, + style: style + })); } // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/separator/transforms.js @@ -21574,6 +21414,7 @@ var separator_transforms_transforms = { var separator_metadata = { + apiVersion: 2, name: "core/separator", category: "design", attributes: { @@ -21585,7 +21426,8 @@ var separator_metadata = { } }, supports: { - anchor: true + anchor: true, + align: ["center", "wide", "full"] } }; @@ -21635,7 +21477,7 @@ var shortcode_shortcode = Object(external_this_wp_element_["createElement"])(ext /* harmony default export */ var library_shortcode = (shortcode_shortcode); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/icon/index.js -var build_module_icon = __webpack_require__(142); +var build_module_icon = __webpack_require__(141); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/shortcode/edit.js @@ -21652,9 +21494,9 @@ function ShortcodeEdit(_ref) { setAttributes = _ref.setAttributes; var instanceId = Object(external_this_wp_compose_["useInstanceId"])(ShortcodeEdit); var inputId = "blocks-shortcode-input-".concat(instanceId); - return Object(external_this_wp_element_["createElement"])("div", { - className: "wp-block-shortcode components-placeholder" - }, Object(external_this_wp_element_["createElement"])("label", { + return Object(external_this_wp_element_["createElement"])("div", Object(external_this_wp_blockEditor_["useBlockProps"])({ + className: 'components-placeholder' + }), Object(external_this_wp_element_["createElement"])("label", { htmlFor: inputId, className: "components-placeholder__label" }, Object(external_this_wp_element_["createElement"])(build_module_icon["a" /* default */], { @@ -21731,6 +21573,7 @@ var shortcode_transforms_transforms = { var shortcode_metadata = { + apiVersion: 2, name: "core/shortcode", category: "widgets", attributes: { @@ -21789,6 +21632,7 @@ var resizeCornerNE = Object(external_this_wp_element_["createElement"])(external + var MIN_SPACER_HEIGHT = 1; var MAX_SPACER_HEIGHT = 500; @@ -21824,7 +21668,7 @@ var edit_SpacerEdit = function SpacerEdit(_ref) { setIsResizing(false); }; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ResizableBox"], { + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["View"], Object(external_this_wp_blockEditor_["useBlockProps"])(), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ResizableBox"], { className: classnames_default()('block-library-spacer__resize-container', { 'is-selected': isSelected }), @@ -21851,7 +21695,7 @@ var edit_SpacerEdit = function SpacerEdit(_ref) { position: 'bottom', isVisible: isResizing } - }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { title: Object(external_this_wp_i18n_["__"])('Spacer settings') }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], { label: Object(external_this_wp_i18n_["__"])('Height in pixels'), @@ -21878,14 +21722,19 @@ var edit_SpacerEdit = function SpacerEdit(_ref) { // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/spacer/save.js + +/** + * WordPress dependencies + */ + function spacer_save_save(_ref) { var attributes = _ref.attributes; - return Object(external_this_wp_element_["createElement"])("div", { + return Object(external_this_wp_element_["createElement"])("div", external_this_wp_blockEditor_["useBlockProps"].save({ style: { height: attributes.height }, - "aria-hidden": true - }); + 'aria-hidden': true + })); } // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/spacer/index.js @@ -21900,6 +21749,7 @@ function spacer_save_save(_ref) { var spacer_metadata = { + apiVersion: 2, name: "core/spacer", category: "design", attributes: { @@ -21924,7 +21774,7 @@ var spacer_settings = { }; // EXTERNAL MODULE: external {"this":["wp","deprecated"]} -var external_this_wp_deprecated_ = __webpack_require__(35); +var external_this_wp_deprecated_ = __webpack_require__(36); var external_this_wp_deprecated_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_deprecated_); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/subhead/edit.js @@ -21954,7 +21804,7 @@ function SubheadEdit(_ref) { align: nextAlign }); } - })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + })), Object(external_this_wp_element_["createElement"])("div", Object(external_this_wp_blockEditor_["useBlockProps"])(), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { tagName: "p", value: content, onChange: function onChange(nextContent) { @@ -21967,7 +21817,7 @@ function SubheadEdit(_ref) { }, className: className, placeholder: placeholder || Object(external_this_wp_i18n_["__"])('Write subheading…') - })); + }))); } // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/subhead/save.js @@ -21981,13 +21831,13 @@ function subhead_save_save(_ref) { var attributes = _ref.attributes; var align = attributes.align, content = attributes.content; - return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { - tagName: "p", + return Object(external_this_wp_element_["createElement"])("p", external_this_wp_blockEditor_["useBlockProps"].save({ style: { textAlign: align - }, + } + }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { value: content - }); + })); } // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/subhead/transforms.js @@ -22020,6 +21870,7 @@ var subhead_transforms_transforms = { var subhead_metadata = { + apiVersion: 2, name: "core/subhead", category: "text", attributes: { @@ -22249,13 +22100,13 @@ var table_deprecated_deprecated = [{ /* harmony default export */ var table_deprecated = (table_deprecated_deprecated); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/align-left.js -var align_left = __webpack_require__(300); +var align_left = __webpack_require__(303); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/align-center.js -var align_center = __webpack_require__(301); +var align_center = __webpack_require__(304); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/align-right.js -var align_right = __webpack_require__(302); +var align_right = __webpack_require__(305); // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/table-row-before.js @@ -22676,18 +22527,10 @@ function isEmptyRow(row) { - - - - function table_edit_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } function table_edit_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { table_edit_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { table_edit_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } -function table_edit_createSuper(Derived) { var hasNativeReflectConstruct = table_edit_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; } - -function table_edit_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } - /** * External dependencies */ @@ -22738,632 +22581,450 @@ var ALIGNMENT_CONTROLS = [{ align: 'right' }]; var withCustomBackgroundColors = Object(external_this_wp_blockEditor_["createCustomColorsHOC"])(BACKGROUND_COLORS); -var edit_TableEdit = /*#__PURE__*/function (_Component) { - Object(inherits["a" /* default */])(TableEdit, _Component); +var edit_placeholder = { + head: Object(external_this_wp_i18n_["__"])('Header label'), + foot: Object(external_this_wp_i18n_["__"])('Footer label') +}; - var _super = table_edit_createSuper(TableEdit); +function TSection(_ref) { + var name = _ref.name, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["name"]); - function TableEdit() { - var _this; + var TagName = "t".concat(name); + return Object(external_this_wp_element_["createElement"])(TagName, props); +} - Object(classCallCheck["a" /* default */])(this, TableEdit); +function TableEdit(_ref2) { + var attributes = _ref2.attributes, + backgroundColor = _ref2.backgroundColor, + setBackgroundColor = _ref2.setBackgroundColor, + setAttributes = _ref2.setAttributes, + insertBlocksAfter = _ref2.insertBlocksAfter, + isSelected = _ref2.isSelected; + var hasFixedLayout = attributes.hasFixedLayout, + caption = attributes.caption, + head = attributes.head, + foot = attributes.foot; - _this = _super.apply(this, arguments); - _this.onCreateTable = _this.onCreateTable.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onChangeFixedLayout = _this.onChangeFixedLayout.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onChange = _this.onChange.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onChangeInitialColumnCount = _this.onChangeInitialColumnCount.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onChangeInitialRowCount = _this.onChangeInitialRowCount.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.renderSection = _this.renderSection.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.getTableControls = _this.getTableControls.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onInsertRow = _this.onInsertRow.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onInsertRowBefore = _this.onInsertRowBefore.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onInsertRowAfter = _this.onInsertRowAfter.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onDeleteRow = _this.onDeleteRow.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onInsertColumn = _this.onInsertColumn.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onInsertColumnBefore = _this.onInsertColumnBefore.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onInsertColumnAfter = _this.onInsertColumnAfter.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onDeleteColumn = _this.onDeleteColumn.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onToggleHeaderSection = _this.onToggleHeaderSection.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onToggleFooterSection = _this.onToggleFooterSection.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onChangeColumnAlignment = _this.onChangeColumnAlignment.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.getCellAlignment = _this.getCellAlignment.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.state = { - initialRowCount: 2, - initialColumnCount: 2, - selectedCell: null - }; - return _this; - } + var _useState = Object(external_this_wp_element_["useState"])(2), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + initialRowCount = _useState2[0], + setInitialRowCount = _useState2[1]; + + var _useState3 = Object(external_this_wp_element_["useState"])(2), + _useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2), + initialColumnCount = _useState4[0], + setInitialColumnCount = _useState4[1]; + + var _useState5 = Object(external_this_wp_element_["useState"])(), + _useState6 = Object(slicedToArray["a" /* default */])(_useState5, 2), + selectedCell = _useState6[0], + setSelectedCell = _useState6[1]; /** * Updates the initial column count used for table creation. * - * @param {number} initialColumnCount New initial column count. + * @param {number} count New initial column count. */ - Object(createClass["a" /* default */])(TableEdit, [{ - key: "onChangeInitialColumnCount", - value: function onChangeInitialColumnCount(initialColumnCount) { - this.setState({ - initialColumnCount: initialColumnCount + function onChangeInitialColumnCount(count) { + setInitialColumnCount(count); + } + /** + * Updates the initial row count used for table creation. + * + * @param {number} count New initial row count. + */ + + + function onChangeInitialRowCount(count) { + setInitialRowCount(count); + } + /** + * Creates a table based on dimensions in local state. + * + * @param {Object} event Form submit event. + */ + + + function onCreateTable(event) { + event.preventDefault(); + setAttributes(createTable({ + rowCount: parseInt(initialRowCount, 10) || 2, + columnCount: parseInt(initialColumnCount, 10) || 2 + })); + } + /** + * Toggles whether the table has a fixed layout or not. + */ + + + function onChangeFixedLayout() { + setAttributes({ + hasFixedLayout: !hasFixedLayout + }); + } + /** + * Changes the content of the currently selected cell. + * + * @param {Array} content A RichText content value. + */ + + + function onChange(content) { + if (!selectedCell) { + return; + } + + setAttributes(updateSelectedCell(attributes, selectedCell, function (cellAttributes) { + return table_edit_objectSpread(table_edit_objectSpread({}, cellAttributes), {}, { + content: content }); - } - /** - * Updates the initial row count used for table creation. - * - * @param {number} initialRowCount New initial row count. - */ + })); + } + /** + * Align text within the a column. + * + * @param {string} align The new alignment to apply to the column. + */ - }, { - key: "onChangeInitialRowCount", - value: function onChangeInitialRowCount(initialRowCount) { - this.setState({ - initialRowCount: initialRowCount + + function onChangeColumnAlignment(align) { + if (!selectedCell) { + return; + } // Convert the cell selection to a column selection so that alignment + // is applied to the entire column. + + + var columnSelection = { + type: 'column', + columnIndex: selectedCell.columnIndex + }; + var newAttributes = updateSelectedCell(attributes, columnSelection, function (cellAttributes) { + return table_edit_objectSpread(table_edit_objectSpread({}, cellAttributes), {}, { + align: align }); + }); + setAttributes(newAttributes); + } + /** + * Get the alignment of the currently selected cell. + * + * @return {string} The new alignment to apply to the column. + */ + + + function getCellAlignment() { + if (!selectedCell) { + return; } - /** - * Creates a table based on dimensions in local state. - * - * @param {Object} event Form submit event. - */ - }, { - key: "onCreateTable", - value: function onCreateTable(event) { - event.preventDefault(); - var setAttributes = this.props.setAttributes; - var _this$state = this.state, - initialRowCount = _this$state.initialRowCount, - initialColumnCount = _this$state.initialColumnCount; - initialRowCount = parseInt(initialRowCount, 10) || 2; - initialColumnCount = parseInt(initialColumnCount, 10) || 2; - setAttributes(createTable({ - rowCount: initialRowCount, - columnCount: initialColumnCount - })); + return getCellAttribute(attributes, selectedCell, 'align'); + } + /** + * Add or remove a `head` table section. + */ + + + function onToggleHeaderSection() { + setAttributes(toggleSection(attributes, 'head')); + } + /** + * Add or remove a `foot` table section. + */ + + + function onToggleFooterSection() { + setAttributes(toggleSection(attributes, 'foot')); + } + /** + * Inserts a row at the currently selected row index, plus `delta`. + * + * @param {number} delta Offset for selected row index at which to insert. + */ + + + function onInsertRow(delta) { + if (!selectedCell) { + return; } - /** - * Toggles whether the table has a fixed layout or not. - */ - }, { - key: "onChangeFixedLayout", - value: function onChangeFixedLayout() { - var _this$props = this.props, - attributes = _this$props.attributes, - setAttributes = _this$props.setAttributes; - var hasFixedLayout = attributes.hasFixedLayout; - setAttributes({ - hasFixedLayout: !hasFixedLayout - }); + var sectionName = selectedCell.sectionName, + rowIndex = selectedCell.rowIndex; + var newRowIndex = rowIndex + delta; + setAttributes(insertRow(attributes, { + sectionName: sectionName, + rowIndex: newRowIndex + })); // Select the first cell of the new row + + setSelectedCell({ + sectionName: sectionName, + rowIndex: newRowIndex, + columnIndex: 0, + type: 'cell' + }); + } + /** + * Inserts a row before the currently selected row. + */ + + + function onInsertRowBefore() { + onInsertRow(0); + } + /** + * Inserts a row after the currently selected row. + */ + + + function onInsertRowAfter() { + onInsertRow(1); + } + /** + * Deletes the currently selected row. + */ + + + function onDeleteRow() { + if (!selectedCell) { + return; } - /** - * Changes the content of the currently selected cell. - * - * @param {Array} content A RichText content value. - */ + var sectionName = selectedCell.sectionName, + rowIndex = selectedCell.rowIndex; + setSelectedCell(); + setAttributes(deleteRow(attributes, { + sectionName: sectionName, + rowIndex: rowIndex + })); + } + /** + * Inserts a column at the currently selected column index, plus `delta`. + * + * @param {number} delta Offset for selected column index at which to insert. + */ + + + function onInsertColumn() { + var delta = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; + + if (!selectedCell) { + return; + } + + var columnIndex = selectedCell.columnIndex; + var newColumnIndex = columnIndex + delta; + setAttributes(insertColumn(attributes, { + columnIndex: newColumnIndex + })); // Select the first cell of the new column + + setSelectedCell({ + rowIndex: 0, + columnIndex: newColumnIndex, + type: 'cell' + }); + } + /** + * Inserts a column before the currently selected column. + */ + + + function onInsertColumnBefore() { + onInsertColumn(0); + } + /** + * Inserts a column after the currently selected column. + */ + + + function onInsertColumnAfter() { + onInsertColumn(1); + } + /** + * Deletes the currently selected column. + */ + + + function onDeleteColumn() { + if (!selectedCell) { + return; + } + + var sectionName = selectedCell.sectionName, + columnIndex = selectedCell.columnIndex; + setSelectedCell(); + setAttributes(deleteColumn(attributes, { + sectionName: sectionName, + columnIndex: columnIndex + })); + } + + Object(external_this_wp_element_["useEffect"])(function () { + if (!isSelected) { + setSelectedCell(); + } + }, [isSelected]); + var sections = ['head', 'body', 'foot'].filter(function (name) { + return !isEmptyTableSection(attributes[name]); + }); + var tableControls = [{ + icon: table_row_before, + title: Object(external_this_wp_i18n_["__"])('Insert row before'), + isDisabled: !selectedCell, + onClick: onInsertRowBefore }, { - key: "onChange", - value: function onChange(content) { - var selectedCell = this.state.selectedCell; - - if (!selectedCell) { - return; - } - - var _this$props2 = this.props, - attributes = _this$props2.attributes, - setAttributes = _this$props2.setAttributes; - setAttributes(updateSelectedCell(attributes, selectedCell, function (cellAttributes) { - return table_edit_objectSpread(table_edit_objectSpread({}, cellAttributes), {}, { - content: content + icon: table_row_after, + title: Object(external_this_wp_i18n_["__"])('Insert row after'), + isDisabled: !selectedCell, + onClick: onInsertRowAfter + }, { + icon: table_row_delete, + title: Object(external_this_wp_i18n_["__"])('Delete row'), + isDisabled: !selectedCell, + onClick: onDeleteRow + }, { + icon: table_column_before, + title: Object(external_this_wp_i18n_["__"])('Insert column before'), + isDisabled: !selectedCell, + onClick: onInsertColumnBefore + }, { + icon: table_column_after, + title: Object(external_this_wp_i18n_["__"])('Insert column after'), + isDisabled: !selectedCell, + onClick: onInsertColumnAfter + }, { + icon: table_column_delete, + title: Object(external_this_wp_i18n_["__"])('Delete column'), + isDisabled: !selectedCell, + onClick: onDeleteColumn + }]; + var renderedSections = ['head', 'body', 'foot'].map(function (name) { + return Object(external_this_wp_element_["createElement"])(TSection, { + name: name, + key: name + }, attributes[name].map(function (_ref3, rowIndex) { + var cells = _ref3.cells; + return Object(external_this_wp_element_["createElement"])("tr", { + key: rowIndex + }, cells.map(function (_ref4, columnIndex) { + var content = _ref4.content, + CellTag = _ref4.tag, + scope = _ref4.scope, + align = _ref4.align; + return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + tagName: CellTag, + key: columnIndex, + className: classnames_default()(Object(defineProperty["a" /* default */])({}, "has-text-align-".concat(align), align), 'wp-block-table__cell-content'), + scope: CellTag === 'th' ? scope : undefined, + value: content, + onChange: onChange, + unstableOnFocus: function unstableOnFocus() { + setSelectedCell({ + sectionName: name, + rowIndex: rowIndex, + columnIndex: columnIndex, + type: 'cell' + }); + }, + placeholder: edit_placeholder[name] }); })); + })); + }); + var isEmpty = !sections.length; + return Object(external_this_wp_element_["createElement"])("figure", Object(external_this_wp_blockEditor_["useBlockProps"])(), !isEmpty && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarItem"], null, function (toggleProps) { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["DropdownMenu"], { + hasArrowIndicator: true, + icon: library_table, + toggleProps: toggleProps, + label: Object(external_this_wp_i18n_["__"])('Edit table'), + controls: tableControls + }); + })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["AlignmentToolbar"], { + label: Object(external_this_wp_i18n_["__"])('Change column alignment'), + alignmentControls: ALIGNMENT_CONTROLS, + value: getCellAlignment(), + onChange: function onChange(nextAlign) { + return onChangeColumnAlignment(nextAlign); } - /** - * Align text within the a column. - * - * @param {string} align The new alignment to apply to the column. - */ - - }, { - key: "onChangeColumnAlignment", - value: function onChangeColumnAlignment(align) { - var selectedCell = this.state.selectedCell; - - if (!selectedCell) { - return; - } // Convert the cell selection to a column selection so that alignment - // is applied to the entire column. - - - var columnSelection = { - type: 'column', - columnIndex: selectedCell.columnIndex - }; - var _this$props3 = this.props, - attributes = _this$props3.attributes, - setAttributes = _this$props3.setAttributes; - var newAttributes = updateSelectedCell(attributes, columnSelection, function (cellAttributes) { - return table_edit_objectSpread(table_edit_objectSpread({}, cellAttributes), {}, { - align: align - }); + })), !isEmpty && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Table settings'), + className: "blocks-table-settings" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Fixed width table cells'), + checked: !!hasFixedLayout, + onChange: onChangeFixedLayout + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Header section'), + checked: !!(head && head.length), + onChange: onToggleHeaderSection + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Footer section'), + checked: !!(foot && foot.length), + onChange: onToggleFooterSection + })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["PanelColorSettings"], { + title: Object(external_this_wp_i18n_["__"])('Color settings'), + initialOpen: false, + colorSettings: [{ + value: backgroundColor.color, + onChange: setBackgroundColor, + label: Object(external_this_wp_i18n_["__"])('Background color'), + disableCustomColors: true, + colors: BACKGROUND_COLORS + }] + })), !isEmpty && Object(external_this_wp_element_["createElement"])("table", { + className: classnames_default()(backgroundColor.class, { + 'has-fixed-layout': hasFixedLayout, + 'has-background': !!backgroundColor.color + }) + }, renderedSections), !isEmpty && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + tagName: "figcaption", + placeholder: Object(external_this_wp_i18n_["__"])('Write caption…'), + value: caption, + onChange: function onChange(value) { + return setAttributes({ + caption: value }); - setAttributes(newAttributes); + } // Deselect the selected table cell when the caption is focused. + , + unstableOnFocus: function unstableOnFocus() { + return setSelectedCell(); + }, + __unstableOnSplitAtEnd: function __unstableOnSplitAtEnd() { + return insertBlocksAfter(Object(external_this_wp_blocks_["createBlock"])('core/paragraph')); } - /** - * Get the alignment of the currently selected cell. - * - * @return {string} The new alignment to apply to the column. - */ + }), isEmpty && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Placeholder"], { + label: Object(external_this_wp_i18n_["__"])('Table'), + icon: Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], { + icon: block_table, + showColors: true + }), + instructions: Object(external_this_wp_i18n_["__"])('Insert a table for sharing data.') + }, Object(external_this_wp_element_["createElement"])("form", { + className: "blocks-table__placeholder-form", + onSubmit: onCreateTable + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { + type: "number", + label: Object(external_this_wp_i18n_["__"])('Column count'), + value: initialColumnCount, + onChange: onChangeInitialColumnCount, + min: "1", + className: "blocks-table__placeholder-input" + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { + type: "number", + label: Object(external_this_wp_i18n_["__"])('Row count'), + value: initialRowCount, + onChange: onChangeInitialRowCount, + min: "1", + className: "blocks-table__placeholder-input" + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + className: "blocks-table__placeholder-button", + isPrimary: true, + type: "submit" + }, Object(external_this_wp_i18n_["__"])('Create Table'))))); +} - }, { - key: "getCellAlignment", - value: function getCellAlignment() { - var selectedCell = this.state.selectedCell; - - if (!selectedCell) { - return; - } - - var attributes = this.props.attributes; - return getCellAttribute(attributes, selectedCell, 'align'); - } - /** - * Add or remove a `head` table section. - */ - - }, { - key: "onToggleHeaderSection", - value: function onToggleHeaderSection() { - var _this$props4 = this.props, - attributes = _this$props4.attributes, - setAttributes = _this$props4.setAttributes; - setAttributes(toggleSection(attributes, 'head')); - } - /** - * Add or remove a `foot` table section. - */ - - }, { - key: "onToggleFooterSection", - value: function onToggleFooterSection() { - var _this$props5 = this.props, - attributes = _this$props5.attributes, - setAttributes = _this$props5.setAttributes; - setAttributes(toggleSection(attributes, 'foot')); - } - /** - * Inserts a row at the currently selected row index, plus `delta`. - * - * @param {number} delta Offset for selected row index at which to insert. - */ - - }, { - key: "onInsertRow", - value: function onInsertRow(delta) { - var selectedCell = this.state.selectedCell; - - if (!selectedCell) { - return; - } - - var _this$props6 = this.props, - attributes = _this$props6.attributes, - setAttributes = _this$props6.setAttributes; - var sectionName = selectedCell.sectionName, - rowIndex = selectedCell.rowIndex; - var newRowIndex = rowIndex + delta; - setAttributes(insertRow(attributes, { - sectionName: sectionName, - rowIndex: newRowIndex - })); // Select the first cell of the new row - - this.setState({ - selectedCell: { - sectionName: sectionName, - rowIndex: newRowIndex, - columnIndex: 0, - type: 'cell' - } - }); - } - /** - * Inserts a row before the currently selected row. - */ - - }, { - key: "onInsertRowBefore", - value: function onInsertRowBefore() { - this.onInsertRow(0); - } - /** - * Inserts a row after the currently selected row. - */ - - }, { - key: "onInsertRowAfter", - value: function onInsertRowAfter() { - this.onInsertRow(1); - } - /** - * Deletes the currently selected row. - */ - - }, { - key: "onDeleteRow", - value: function onDeleteRow() { - var selectedCell = this.state.selectedCell; - - if (!selectedCell) { - return; - } - - var _this$props7 = this.props, - attributes = _this$props7.attributes, - setAttributes = _this$props7.setAttributes; - var sectionName = selectedCell.sectionName, - rowIndex = selectedCell.rowIndex; - this.setState({ - selectedCell: null - }); - setAttributes(deleteRow(attributes, { - sectionName: sectionName, - rowIndex: rowIndex - })); - } - /** - * Inserts a column at the currently selected column index, plus `delta`. - * - * @param {number} delta Offset for selected column index at which to insert. - */ - - }, { - key: "onInsertColumn", - value: function onInsertColumn() { - var delta = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; - var selectedCell = this.state.selectedCell; - - if (!selectedCell) { - return; - } - - var _this$props8 = this.props, - attributes = _this$props8.attributes, - setAttributes = _this$props8.setAttributes; - var columnIndex = selectedCell.columnIndex; - var newColumnIndex = columnIndex + delta; - setAttributes(insertColumn(attributes, { - columnIndex: newColumnIndex - })); // Select the first cell of the new column - - this.setState({ - selectedCell: { - rowIndex: 0, - columnIndex: newColumnIndex, - type: 'cell' - } - }); - } - /** - * Inserts a column before the currently selected column. - */ - - }, { - key: "onInsertColumnBefore", - value: function onInsertColumnBefore() { - this.onInsertColumn(0); - } - /** - * Inserts a column after the currently selected column. - */ - - }, { - key: "onInsertColumnAfter", - value: function onInsertColumnAfter() { - this.onInsertColumn(1); - } - /** - * Deletes the currently selected column. - */ - - }, { - key: "onDeleteColumn", - value: function onDeleteColumn() { - var selectedCell = this.state.selectedCell; - - if (!selectedCell) { - return; - } - - var _this$props9 = this.props, - attributes = _this$props9.attributes, - setAttributes = _this$props9.setAttributes; - var sectionName = selectedCell.sectionName, - columnIndex = selectedCell.columnIndex; - this.setState({ - selectedCell: null - }); - setAttributes(deleteColumn(attributes, { - sectionName: sectionName, - columnIndex: columnIndex - })); - } - /** - * Creates an onFocus handler for a specified cell. - * - * @param {Object} cellLocation Object with `section`, `rowIndex`, and - * `columnIndex` properties. - * - * @return {Function} Function to call on focus. - */ - - }, { - key: "createOnFocus", - value: function createOnFocus(cellLocation) { - var _this2 = this; - - return function () { - _this2.setState({ - selectedCell: table_edit_objectSpread(table_edit_objectSpread({}, cellLocation), {}, { - type: 'cell' - }) - }); - }; - } - /** - * Gets the table controls to display in the block toolbar. - * - * @return {Array} Table controls. - */ - - }, { - key: "getTableControls", - value: function getTableControls() { - var selectedCell = this.state.selectedCell; - return [{ - icon: table_row_before, - title: Object(external_this_wp_i18n_["__"])('Insert row before'), - isDisabled: !selectedCell, - onClick: this.onInsertRowBefore - }, { - icon: table_row_after, - title: Object(external_this_wp_i18n_["__"])('Insert row after'), - isDisabled: !selectedCell, - onClick: this.onInsertRowAfter - }, { - icon: table_row_delete, - title: Object(external_this_wp_i18n_["__"])('Delete row'), - isDisabled: !selectedCell, - onClick: this.onDeleteRow - }, { - icon: table_column_before, - title: Object(external_this_wp_i18n_["__"])('Insert column before'), - isDisabled: !selectedCell, - onClick: this.onInsertColumnBefore - }, { - icon: table_column_after, - title: Object(external_this_wp_i18n_["__"])('Insert column after'), - isDisabled: !selectedCell, - onClick: this.onInsertColumnAfter - }, { - icon: table_column_delete, - title: Object(external_this_wp_i18n_["__"])('Delete column'), - isDisabled: !selectedCell, - onClick: this.onDeleteColumn - }]; - } - /** - * Renders a table section. - * - * @param {Object} options - * @param {string} options.name Section type: head, body, or foot. - * @param {Array} options.rows The rows to render. - * - * @return {Object} React element for the section. - */ - - }, { - key: "renderSection", - value: function renderSection(_ref) { - var _this3 = this; - - var name = _ref.name, - rows = _ref.rows; - - if (isEmptyTableSection(rows)) { - return null; - } - - var Tag = "t".concat(name); - return Object(external_this_wp_element_["createElement"])(Tag, null, rows.map(function (_ref2, rowIndex) { - var cells = _ref2.cells; - return Object(external_this_wp_element_["createElement"])("tr", { - key: rowIndex - }, cells.map(function (_ref3, columnIndex) { - var content = _ref3.content, - CellTag = _ref3.tag, - scope = _ref3.scope, - align = _ref3.align; - var cellLocation = { - sectionName: name, - rowIndex: rowIndex, - columnIndex: columnIndex - }; - var cellClasses = classnames_default()(Object(defineProperty["a" /* default */])({}, "has-text-align-".concat(align), align), 'wp-block-table__cell-content'); - var placeholder = ''; - - if (name === 'head') { - placeholder = Object(external_this_wp_i18n_["__"])('Header label'); - } else if (name === 'foot') { - placeholder = Object(external_this_wp_i18n_["__"])('Footer label'); - } - - return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { - tagName: CellTag, - key: columnIndex, - className: cellClasses, - scope: CellTag === 'th' ? scope : undefined, - value: content, - onChange: _this3.onChange, - unstableOnFocus: _this3.createOnFocus(cellLocation), - placeholder: placeholder - }); - })); - })); - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate() { - var isSelected = this.props.isSelected; - var selectedCell = this.state.selectedCell; - - if (!isSelected && selectedCell) { - this.setState({ - selectedCell: null - }); - } - } - }, { - key: "render", - value: function render() { - var _this4 = this; - - var _this$props10 = this.props, - attributes = _this$props10.attributes, - className = _this$props10.className, - backgroundColor = _this$props10.backgroundColor, - setBackgroundColor = _this$props10.setBackgroundColor, - setAttributes = _this$props10.setAttributes, - insertBlocksAfter = _this$props10.insertBlocksAfter; - var _this$state2 = this.state, - initialRowCount = _this$state2.initialRowCount, - initialColumnCount = _this$state2.initialColumnCount; - var hasFixedLayout = attributes.hasFixedLayout, - caption = attributes.caption, - head = attributes.head, - body = attributes.body, - foot = attributes.foot; - var isEmpty = isEmptyTableSection(head) && isEmptyTableSection(body) && isEmptyTableSection(foot); - var Section = this.renderSection; - - if (isEmpty) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Placeholder"], { - label: Object(external_this_wp_i18n_["__"])('Table'), - icon: Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], { - icon: block_table, - showColors: true - }), - instructions: Object(external_this_wp_i18n_["__"])('Insert a table for sharing data.') - }, Object(external_this_wp_element_["createElement"])("form", { - className: "blocks-table__placeholder-form", - onSubmit: this.onCreateTable - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { - type: "number", - label: Object(external_this_wp_i18n_["__"])('Column count'), - value: initialColumnCount, - onChange: this.onChangeInitialColumnCount, - min: "1", - className: "blocks-table__placeholder-input" - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { - type: "number", - label: Object(external_this_wp_i18n_["__"])('Row count'), - value: initialRowCount, - onChange: this.onChangeInitialRowCount, - min: "1", - className: "blocks-table__placeholder-input" - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - className: "blocks-table__placeholder-button", - isPrimary: true, - type: "submit" - }, Object(external_this_wp_i18n_["__"])('Create Table')))); - } - - var tableClasses = classnames_default()(backgroundColor.class, { - 'has-fixed-layout': hasFixedLayout, - 'has-background': !!backgroundColor.color - }); - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarItem"], null, function (toggleProps) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["DropdownMenu"], { - hasArrowIndicator: true, - icon: library_table, - toggleProps: toggleProps, - label: Object(external_this_wp_i18n_["__"])('Edit table'), - controls: _this4.getTableControls() - }); - })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["AlignmentToolbar"], { - label: Object(external_this_wp_i18n_["__"])('Change column alignment'), - alignmentControls: ALIGNMENT_CONTROLS, - value: this.getCellAlignment(), - onChange: function onChange(nextAlign) { - return _this4.onChangeColumnAlignment(nextAlign); - }, - onHover: this.onHoverAlignment - })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Table settings'), - className: "blocks-table-settings" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Fixed width table cells'), - checked: !!hasFixedLayout, - onChange: this.onChangeFixedLayout - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Header section'), - checked: !!(head && head.length), - onChange: this.onToggleHeaderSection - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Footer section'), - checked: !!(foot && foot.length), - onChange: this.onToggleFooterSection - })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["PanelColorSettings"], { - title: Object(external_this_wp_i18n_["__"])('Color settings'), - initialOpen: false, - colorSettings: [{ - value: backgroundColor.color, - onChange: setBackgroundColor, - label: Object(external_this_wp_i18n_["__"])('Background color'), - disableCustomColors: true, - colors: BACKGROUND_COLORS - }] - })), Object(external_this_wp_element_["createElement"])("figure", { - className: className - }, Object(external_this_wp_element_["createElement"])("table", { - className: tableClasses - }, Object(external_this_wp_element_["createElement"])(Section, { - name: "head", - rows: head - }), Object(external_this_wp_element_["createElement"])(Section, { - name: "body", - rows: body - }), Object(external_this_wp_element_["createElement"])(Section, { - name: "foot", - rows: foot - })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { - tagName: "figcaption", - placeholder: Object(external_this_wp_i18n_["__"])('Write caption…'), - value: caption, - onChange: function onChange(value) { - return setAttributes({ - caption: value - }); - } // Deselect the selected table cell when the caption is focused. - , - unstableOnFocus: function unstableOnFocus() { - return _this4.setState({ - selectedCell: null - }); - }, - __unstableOnSplitAtEnd: function __unstableOnSplitAtEnd() { - return insertBlocksAfter(Object(external_this_wp_blocks_["createBlock"])('core/paragraph')); - } - }))); - } - }]); - - return TableEdit; -}(external_this_wp_element_["Component"]); -/* harmony default export */ var table_edit = (withCustomBackgroundColors('backgroundColor')(edit_TableEdit)); +/* harmony default export */ var table_edit = (withCustomBackgroundColors('backgroundColor')(TableEdit)); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/table/save.js @@ -23430,7 +23091,7 @@ function table_save_save(_ref) { })); }; - return Object(external_this_wp_element_["createElement"])("figure", null, Object(external_this_wp_element_["createElement"])("table", { + return Object(external_this_wp_element_["createElement"])("figure", external_this_wp_blockEditor_["useBlockProps"].save(), Object(external_this_wp_element_["createElement"])("table", { className: classes === '' ? undefined : classes }, Object(external_this_wp_element_["createElement"])(Section, { type: "head", @@ -23511,6 +23172,7 @@ var table_transforms_transforms = { var table_metadata = { + apiVersion: 2, name: "core/table", category: "text", attributes: { @@ -23635,7 +23297,8 @@ var table_metadata = { }, supports: { anchor: true, - align: true + align: true, + __experimentalSelector: ".wp-block-button > table" } }; @@ -23728,8 +23391,7 @@ var table_settings = { function TextColumnsEdit(_ref) { var attributes = _ref.attributes, - setAttributes = _ref.setAttributes, - className = _ref.className; + setAttributes = _ref.setAttributes; var width = attributes.width, content = attributes.content, columns = attributes.columns; @@ -23756,9 +23418,9 @@ function TextColumnsEdit(_ref) { min: 2, max: 4, required: true - }))), Object(external_this_wp_element_["createElement"])("div", { - className: "".concat(className, " align").concat(width, " columns-").concat(columns) - }, Object(external_this_lodash_["times"])(columns, function (index) { + }))), Object(external_this_wp_element_["createElement"])("div", Object(external_this_wp_blockEditor_["useBlockProps"])({ + className: "align".concat(width, " columns-").concat(columns) + }), Object(external_this_lodash_["times"])(columns, function (index) { return Object(external_this_wp_element_["createElement"])("div", { className: "wp-block-column", key: "column-".concat(index) @@ -23794,9 +23456,9 @@ function text_columns_save_save(_ref) { var width = attributes.width, content = attributes.content, columns = attributes.columns; - return Object(external_this_wp_element_["createElement"])("div", { + return Object(external_this_wp_element_["createElement"])("div", external_this_wp_blockEditor_["useBlockProps"].save({ className: "align".concat(width, " columns-").concat(columns) - }, Object(external_this_lodash_["times"])(columns, function (index) { + }), Object(external_this_lodash_["times"])(columns, function (index) { return Object(external_this_wp_element_["createElement"])("div", { className: "wp-block-column", key: "column-".concat(index) @@ -23847,6 +23509,7 @@ var text_columns_transforms_transforms = { var text_columns_metadata = { + apiVersion: 2, name: "core/text-columns", icon: "columns", category: "design", @@ -23967,7 +23630,7 @@ function VerseEdit(_ref) { mergeBlocks = _ref.mergeBlocks; var textAlign = attributes.textAlign, content = attributes.content; - var blockWrapperProps = Object(external_this_wp_blockEditor_["__experimentalUseBlockWrapperProps"])({ + var blockProps = Object(external_this_wp_blockEditor_["useBlockProps"])({ className: classnames_default()(Object(defineProperty["a" /* default */])({}, "has-text-align-".concat(textAlign), textAlign)) }); return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["AlignmentToolbar"], { @@ -23990,7 +23653,7 @@ function VerseEdit(_ref) { placeholder: Object(external_this_wp_i18n_["__"])('Write…'), onMerge: mergeBlocks, textAlign: textAlign - }, blockWrapperProps))); + }, blockProps))); } // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/verse/save.js @@ -24011,11 +23674,11 @@ function verse_save_save(_ref) { var textAlign = attributes.textAlign, content = attributes.content; var className = classnames_default()(Object(defineProperty["a" /* default */])({}, "has-text-align-".concat(textAlign), textAlign)); - return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { - tagName: "pre", - className: className, + return Object(external_this_wp_element_["createElement"])("pre", external_this_wp_blockEditor_["useBlockProps"].save({ + className: className + }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { value: content - }); + })); } // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/verse/transforms.js @@ -24054,6 +23717,7 @@ var verse_transforms_transforms = { var verse_metadata = { + apiVersion: 2, name: "core/verse", category: "text", attributes: { @@ -24069,8 +23733,7 @@ var verse_metadata = { } }, supports: { - anchor: true, - lightBlockWrapper: true + anchor: true } }; @@ -24191,6 +23854,333 @@ var edit_common_settings_VideoSettings = function VideoSettings(_ref) { /* harmony default export */ var edit_common_settings = (edit_common_settings_VideoSettings); +// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js +function _objectDestructuringEmpty(obj) { + if (obj == null) throw new TypeError("Cannot destructure undefined"); +} +// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/media.js +var library_media = __webpack_require__(319); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/video/tracks-editor.js + + + + + + +function tracks_editor_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function tracks_editor_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { tracks_editor_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { tracks_editor_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * WordPress dependencies + */ + + + + + + +var ALLOWED_TYPES = ['text/vtt']; +var DEFAULT_KIND = 'subtitles'; +var KIND_OPTIONS = [{ + label: Object(external_this_wp_i18n_["__"])('Subtitles'), + value: 'subtitles' +}, { + label: Object(external_this_wp_i18n_["__"])('Captions'), + value: 'captions' +}, { + label: Object(external_this_wp_i18n_["__"])('Descriptions'), + value: 'descriptions' +}, { + label: Object(external_this_wp_i18n_["__"])('Chapters'), + value: 'chapters' +}, { + label: Object(external_this_wp_i18n_["__"])('Metadata'), + value: 'metadata' +}]; +var captionIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + width: "18", + height: "14", + viewBox: "0 0 18 14", + role: "img", + fill: "none" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { + x: "0.75", + y: "0.75", + width: "16.5", + height: "12.5", + rx: "1.25", + stroke: "black", + strokeWidth: "1.5", + fill: "none" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M3 7H15", + stroke: "black", + strokeWidth: "1.5" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M3 10L15 10", + stroke: "black", + strokeWidth: "1.5" +})); + +function TrackList(_ref) { + var tracks = _ref.tracks, + onEditPress = _ref.onEditPress; + var content; + + if (tracks.length === 0) { + content = Object(external_this_wp_element_["createElement"])("p", { + className: "block-library-video-tracks-editor__tracks-informative-message" + }, Object(external_this_wp_i18n_["__"])('Tracks can be subtitles, captions, chapters, or descriptions. They help make your content more accessible to a wider range of users.')); + } else { + content = tracks.map(function (track, index) { + return Object(external_this_wp_element_["createElement"])("div", { + key: index, + className: "block-library-video-tracks-editor__track-list-track" + }, Object(external_this_wp_element_["createElement"])("span", null, track.label, " "), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + isTertiary: true, + onClick: function onClick() { + return onEditPress(index); + }, + "aria-label": Object(external_this_wp_i18n_["sprintf"])( + /* translators: %s: Label of the video text track e.g: "French subtitles" */ + Object(external_this_wp_i18n_["__"])('Edit %s'), track.label) + }, Object(external_this_wp_i18n_["__"])('Edit'))); + }); + } + + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuGroup"], { + label: Object(external_this_wp_i18n_["__"])('Text tracks'), + className: "block-library-video-tracks-editor__track-list" + }, content); +} + +function SingleTrackEditor(_ref2) { + var track = _ref2.track, + _onChange = _ref2.onChange, + onClose = _ref2.onClose, + onRemove = _ref2.onRemove; + var _track$src = track.src, + src = _track$src === void 0 ? '' : _track$src, + _track$label = track.label, + label = _track$label === void 0 ? '' : _track$label, + _track$srcLang = track.srcLang, + srcLang = _track$srcLang === void 0 ? '' : _track$srcLang, + _track$kind = track.kind, + kind = _track$kind === void 0 ? DEFAULT_KIND : _track$kind; + var fileName = src.startsWith('blob:') ? '' : src.substring(src.lastIndexOf('/') + 1); + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["NavigableMenu"], null, Object(external_this_wp_element_["createElement"])("div", { + className: "block-library-video-tracks-editor__single-track-editor" + }, Object(external_this_wp_element_["createElement"])("span", { + className: "block-library-video-tracks-editor__single-track-editor-edit-track-label" + }, Object(external_this_wp_i18n_["__"])('Edit track')), Object(external_this_wp_element_["createElement"])("span", null, Object(external_this_wp_i18n_["__"])('File'), ": ", Object(external_this_wp_element_["createElement"])("b", null, fileName)), Object(external_this_wp_element_["createElement"])("div", { + className: "block-library-video-tracks-editor__single-track-editor-label-language" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"] + /* eslint-disable jsx-a11y/no-autofocus */ + , { + autoFocus: true + /* eslint-enable jsx-a11y/no-autofocus */ + , + onChange: function onChange(newLabel) { + return _onChange(tracks_editor_objectSpread(tracks_editor_objectSpread({}, track), {}, { + label: newLabel + })); + }, + label: Object(external_this_wp_i18n_["__"])('Label'), + value: label, + help: Object(external_this_wp_i18n_["__"])('Title of track') + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { + onChange: function onChange(newSrcLang) { + return _onChange(tracks_editor_objectSpread(tracks_editor_objectSpread({}, track), {}, { + srcLang: newSrcLang + })); + }, + label: Object(external_this_wp_i18n_["__"])('Source language'), + value: srcLang, + help: Object(external_this_wp_i18n_["__"])('Language tag (en, fr, etc.)') + })), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SelectControl"], { + className: "block-library-video-tracks-editor__single-track-editor-kind-select", + options: KIND_OPTIONS, + value: kind, + label: Object(external_this_wp_i18n_["__"])('Kind'), + onChange: function onChange(newKind) { + if (newKind === DEFAULT_KIND) { + newKind = undefined; + } + + _onChange(tracks_editor_objectSpread(tracks_editor_objectSpread({}, track), {}, { + kind: newKind + })); + } + }), Object(external_this_wp_element_["createElement"])("div", { + className: "block-library-video-tracks-editor__single-track-editor-buttons-container" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + isSecondary: true, + onClick: function onClick() { + var changes = {}; + var hasChanges = false; + + if (label === '') { + changes.label = Object(external_this_wp_i18n_["__"])('English'); + hasChanges = true; + } + + if (srcLang === '') { + changes.srcLang = 'en'; + hasChanges = true; + } + + if (hasChanges) { + _onChange(tracks_editor_objectSpread(tracks_editor_objectSpread({}, track), changes)); + } + + onClose(); + } + }, Object(external_this_wp_i18n_["__"])('Close')), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + isDestructive: true, + isLink: true, + onClick: onRemove + }, Object(external_this_wp_i18n_["__"])('Remove track'))))); +} + +function TracksEditor(_ref3) { + var _ref3$tracks = _ref3.tracks, + tracks = _ref3$tracks === void 0 ? [] : _ref3$tracks, + _onChange2 = _ref3.onChange; + var mediaUpload = Object(external_this_wp_data_["useSelect"])(function (select) { + return select('core/block-editor').getSettings().mediaUpload; + }, []); + + var _useState = Object(external_this_wp_element_["useState"])(null), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + trackBeingEdited = _useState2[0], + setTrackBeingEdited = _useState2[1]; + + if (!mediaUpload) { + return null; + } + + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Dropdown"], { + contentClassName: "block-library-video-tracks-editor", + renderToggle: function renderToggle(_ref4) { + var isOpen = _ref4.isOpen, + onToggle = _ref4.onToggle; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarButton"], { + label: Object(external_this_wp_i18n_["__"])('Text tracks'), + showTooltip: true, + "aria-expanded": isOpen, + "aria-haspopup": "true", + onClick: onToggle, + icon: captionIcon + })); + }, + renderContent: function renderContent(_ref5) { + _objectDestructuringEmpty(_ref5); + + if (trackBeingEdited !== null) { + return Object(external_this_wp_element_["createElement"])(SingleTrackEditor, { + track: tracks[trackBeingEdited], + onChange: function onChange(newTrack) { + var newTracks = Object(toConsumableArray["a" /* default */])(tracks); + + newTracks[trackBeingEdited] = newTrack; + + _onChange2(newTracks); + }, + onClose: function onClose() { + return setTrackBeingEdited(null); + }, + onRemove: function onRemove() { + _onChange2(tracks.filter(function (_track, index) { + return index !== trackBeingEdited; + })); + + setTrackBeingEdited(null); + } + }); + } + + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["NavigableMenu"], null, Object(external_this_wp_element_["createElement"])(TrackList, { + tracks: tracks, + onEditPress: setTrackBeingEdited + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuGroup"], { + className: "block-library-video-tracks-editor__add-tracks-container", + label: Object(external_this_wp_i18n_["__"])('Add tracks') + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaUpload"], { + onSelect: function onSelect(_ref6) { + var url = _ref6.url; + var trackIndex = tracks.length; + + _onChange2([].concat(Object(toConsumableArray["a" /* default */])(tracks), [{ + src: url + }])); + + setTrackBeingEdited(trackIndex); + }, + allowedTypes: ALLOWED_TYPES, + render: function render(_ref7) { + var open = _ref7.open; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { + icon: library_media["a" /* default */], + onClick: open + }, Object(external_this_wp_i18n_["__"])('Open Media Library')); + } + }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaUploadCheck"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["FormFileUpload"], { + onChange: function onChange(event) { + var files = event.target.files; + var trackIndex = tracks.length; + mediaUpload({ + allowedTypes: ALLOWED_TYPES, + filesList: files, + onFileChange: function onFileChange(_ref8) { + var _ref9 = Object(slicedToArray["a" /* default */])(_ref8, 1), + url = _ref9[0].url; + + var newTracks = Object(toConsumableArray["a" /* default */])(tracks); + + if (!newTracks[trackIndex]) { + newTracks[trackIndex] = {}; + } + + newTracks[trackIndex] = tracks_editor_objectSpread(tracks_editor_objectSpread({}, tracks[trackIndex]), {}, { + src: url + }); + + _onChange2(newTracks); + + setTrackBeingEdited(trackIndex); + } + }); + }, + accept: ".vtt,text/vtt", + render: function render(_ref10) { + var openFileDialog = _ref10.openFileDialog; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { + icon: upload["a" /* default */], + onClick: function onClick() { + openFileDialog(); + } + }, Object(external_this_wp_i18n_["__"])('Upload')); + } + }))))); + } + }); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/video/tracks.js + + +function Tracks(_ref) { + var _ref$tracks = _ref.tracks, + tracks = _ref$tracks === void 0 ? [] : _ref$tracks; + return tracks.map(function (track) { + return Object(external_this_wp_element_["createElement"])("track", Object(esm_extends["a" /* default */])({ + key: track.src + }, track)); + }); +} + // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/video/edit.js @@ -24213,6 +24203,8 @@ var edit_common_settings_VideoSettings = function VideoSettings(_ref) { + + var video_edit_ALLOWED_MEDIA_TYPES = ['video']; var VIDEO_POSTER_ALLOWED_MEDIA_TYPES = ['image']; @@ -24231,7 +24223,8 @@ function VideoEdit(_ref) { caption = attributes.caption, controls = attributes.controls, poster = attributes.poster, - src = attributes.src; + src = attributes.src, + tracks = attributes.tracks; var mediaUpload = Object(external_this_wp_data_["useSelect"])(function (select) { return select('core/block-editor').getSettings().mediaUpload; }); @@ -24311,10 +24304,10 @@ function VideoEdit(_ref) { noticeOperations.createErrorNotice(message); } - var blockWrapperProps = Object(external_this_wp_blockEditor_["__experimentalUseBlockWrapperProps"])(); + var blockProps = Object(external_this_wp_blockEditor_["useBlockProps"])(); if (!src) { - return Object(external_this_wp_element_["createElement"])("div", blockWrapperProps, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaPlaceholder"], { + return Object(external_this_wp_element_["createElement"])("div", blockProps, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaPlaceholder"], { icon: Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], { icon: library_video }), @@ -24343,7 +24336,14 @@ function VideoEdit(_ref) { } var videoPosterDescription = "video-block__poster-image-description-".concat(instanceId); - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaReplaceFlow"], { + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(TracksEditor, { + tracks: tracks, + onChange: function onChange(newTracks) { + setAttributes({ + tracks: newTracks + }); + } + }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaReplaceFlow"], { mediaId: id, mediaURL: src, allowedTypes: video_edit_ALLOWED_MEDIA_TYPES, @@ -24379,12 +24379,14 @@ function VideoEdit(_ref) { Object(external_this_wp_i18n_["__"])('The current poster image url is %s'), poster) : Object(external_this_wp_i18n_["__"])('There is no poster image currently selected')), !!poster && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { onClick: onRemovePoster, isTertiary: true - }, Object(external_this_wp_i18n_["__"])('Remove')))))), Object(external_this_wp_element_["createElement"])("figure", blockWrapperProps, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"], null, Object(external_this_wp_element_["createElement"])("video", { + }, Object(external_this_wp_i18n_["__"])('Remove')))))), Object(external_this_wp_element_["createElement"])("figure", blockProps, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"], null, Object(external_this_wp_element_["createElement"])("video", { controls: controls, poster: poster, src: src, ref: videoPlayer - })), (!external_this_wp_blockEditor_["RichText"].isEmpty(caption) || isSelected) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + }, Object(external_this_wp_element_["createElement"])(Tracks, { + tracks: tracks + }))), (!external_this_wp_blockEditor_["RichText"].isEmpty(caption) || isSelected) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { tagName: "figcaption", placeholder: Object(external_this_wp_i18n_["__"])('Write caption…'), value: caption, @@ -24409,6 +24411,11 @@ function VideoEdit(_ref) { * WordPress dependencies */ +/** + * Internal dependencies + */ + + function video_save_save(_ref) { var attributes = _ref.attributes; var autoplay = attributes.autoplay, @@ -24419,8 +24426,9 @@ function video_save_save(_ref) { poster = attributes.poster, preload = attributes.preload, src = attributes.src, - playsInline = attributes.playsInline; - return Object(external_this_wp_element_["createElement"])("figure", null, src && Object(external_this_wp_element_["createElement"])("video", { + playsInline = attributes.playsInline, + tracks = attributes.tracks; + return Object(external_this_wp_element_["createElement"])("figure", external_this_wp_blockEditor_["useBlockProps"].save(), src && Object(external_this_wp_element_["createElement"])("video", { autoPlay: autoplay, controls: controls, loop: loop, @@ -24429,7 +24437,9 @@ function video_save_save(_ref) { preload: preload !== 'metadata' ? preload : undefined, src: src, playsInline: playsInline - }), !external_this_wp_blockEditor_["RichText"].isEmpty(caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + }, Object(external_this_wp_element_["createElement"])(Tracks, { + tracks: tracks + })), !external_this_wp_blockEditor_["RichText"].isEmpty(caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { tagName: "figcaption", value: caption })); @@ -24519,6 +24529,7 @@ var video_transforms_transforms = { var video_metadata = { + apiVersion: 2, name: "core/video", category: "media", attributes: { @@ -24579,12 +24590,18 @@ var video_metadata = { source: "attribute", selector: "video", attribute: "playsinline" + }, + tracks: { + type: "array", + items: { + type: "object" + }, + "default": [] } }, supports: { anchor: true, - align: true, - lightBlockWrapper: true + align: true } }; @@ -24676,11 +24693,11 @@ function TagCloudEdit(_ref) { }); } }))); - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, inspectorControls, Object(external_this_wp_element_["createElement"])(external_this_wp_serverSideRender_default.a, { + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, inspectorControls, Object(external_this_wp_element_["createElement"])("div", Object(external_this_wp_blockEditor_["useBlockProps"])(), Object(external_this_wp_element_["createElement"])(external_this_wp_serverSideRender_default.a, { key: "tag-cloud", block: "core/tag-cloud", attributes: attributes - })); + }))); } /* harmony default export */ var tag_cloud_edit = (Object(external_this_wp_data_["withSelect"])(function (select) { @@ -24700,6 +24717,7 @@ function TagCloudEdit(_ref) { */ var tag_cloud_metadata = { + apiVersion: 2, name: "core/tag-cloud", category: "widgets", attributes: { @@ -24778,20 +24796,10 @@ var convert_to_blocks_button_ConvertToBlocksButton = function ConvertToBlocksBut - - - - - - function classic_edit_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } function classic_edit_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { classic_edit_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { classic_edit_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } -function classic_edit_createSuper(Derived) { var hasNativeReflectConstruct = classic_edit_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; } - -function classic_edit_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } - /** * External dependencies */ @@ -24832,89 +24840,36 @@ function isTmceEmpty(editor) { return /^\n?$/.test(body.innerText || body.textContent); } -var edit_ClassicEdit = /*#__PURE__*/function (_Component) { - Object(inherits["a" /* default */])(ClassicEdit, _Component); - - var _super = classic_edit_createSuper(ClassicEdit); - - function ClassicEdit(props) { - var _this; - - Object(classCallCheck["a" /* default */])(this, ClassicEdit); - - _this = _super.call(this, props); - _this.initialize = _this.initialize.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onSetup = _this.onSetup.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.focus = _this.focus.bind(Object(assertThisInitialized["a" /* default */])(_this)); - return _this; - } - - Object(createClass["a" /* default */])(ClassicEdit, [{ - key: "componentDidMount", - value: function componentDidMount() { - var _this2 = this; - - var _window$wpEditorL10n$ = window.wpEditorL10n.tinymce, - baseURL = _window$wpEditorL10n$.baseURL, - suffix = _window$wpEditorL10n$.suffix; - window.tinymce.EditorManager.overrideDefaults({ - base_url: baseURL, - suffix: suffix - }); - - if (document.readyState === 'complete') { - this.initialize(); - } else { - document.addEventListener('readystatechange', function () { - if (document.readyState === 'complete') { - _this2.initialize(); - } - }); - } +function ClassicEdit(_ref) { + var clientId = _ref.clientId, + content = _ref.attributes.content, + setAttributes = _ref.setAttributes, + onReplace = _ref.onReplace; + var didMount = Object(external_this_wp_element_["useRef"])(false); + Object(external_this_wp_element_["useEffect"])(function () { + if (!didMount.current) { + return; } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - window.addEventListener('DOMContentLoaded', this.initialize); - edit_wp.oldEditor.remove("editor-".concat(this.props.clientId)); - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - var _this$props = this.props, - clientId = _this$props.clientId, - content = _this$props.attributes.content; - var editor = window.tinymce.get("editor-".concat(clientId)); - var currentContent = editor === null || editor === void 0 ? void 0 : editor.getContent(); - if (prevProps.attributes.content !== content && currentContent !== content) { - editor.setContent(content || ''); - } - } - }, { - key: "initialize", - value: function initialize() { - var clientId = this.props.clientId; - var settings = window.wpEditorL10n.tinymce.settings; - edit_wp.oldEditor.initialize("editor-".concat(clientId), { - tinymce: classic_edit_objectSpread(classic_edit_objectSpread({}, settings), {}, { - inline: true, - content_css: false, - fixed_toolbar_container: "#toolbar-".concat(clientId), - setup: this.onSetup - }) - }); - } - }, { - key: "onSetup", - value: function onSetup(editor) { - var _this3 = this; + var editor = window.tinymce.get("editor-".concat(clientId)); + var currentContent = editor === null || editor === void 0 ? void 0 : editor.getContent(); - var _this$props2 = this.props, - content = _this$props2.attributes.content, - setAttributes = _this$props2.setAttributes; + if (currentContent !== content) { + editor.setContent(content || ''); + } + }, [content]); + Object(external_this_wp_element_["useEffect"])(function () { + var _window$wpEditorL10n$ = window.wpEditorL10n.tinymce, + baseURL = _window$wpEditorL10n$.baseURL, + suffix = _window$wpEditorL10n$.suffix; + didMount.current = true; + window.tinymce.EditorManager.overrideDefaults({ + base_url: baseURL, + suffix: suffix + }); + + function onSetup(editor) { var bookmark; - this.editor = editor; if (content) { editor.on('loadContent', function () { @@ -24969,8 +24924,7 @@ var edit_ClassicEdit = /*#__PURE__*/function (_Component) { if ((event.keyCode === external_this_wp_keycodes_["BACKSPACE"] || event.keyCode === external_this_wp_keycodes_["DELETE"]) && isTmceEmpty(editor)) { // delete the block - _this3.props.onReplace([]); - + onReplace([]); event.preventDefault(); event.stopImmediatePropagation(); } @@ -24986,64 +24940,83 @@ var edit_ClassicEdit = /*#__PURE__*/function (_Component) { } }); editor.on('init', function () { - var rootNode = _this3.editor.getBody(); // Create the toolbar by refocussing the editor. - + var rootNode = editor.getBody(); // Create the toolbar by refocussing the editor. if (rootNode.ownerDocument.activeElement === rootNode) { rootNode.blur(); - - _this3.editor.focus(); + editor.focus(); } }); } - }, { - key: "focus", - value: function focus() { - if (this.editor) { - this.editor.focus(); + + function initialize() { + var settings = window.wpEditorL10n.tinymce.settings; + edit_wp.oldEditor.initialize("editor-".concat(clientId), { + tinymce: classic_edit_objectSpread(classic_edit_objectSpread({}, settings), {}, { + inline: true, + content_css: false, + fixed_toolbar_container: "#toolbar-".concat(clientId), + setup: onSetup + }) + }); + } + + function onReadyStateChange() { + if (document.readyState === 'complete') { + initialize(); } } - }, { - key: "onToolbarKeyDown", - value: function onToolbarKeyDown(event) { - // Prevent WritingFlow from kicking in and allow arrows navigation on the toolbar. - event.stopPropagation(); // Prevent Mousetrap from moving focus to the top toolbar when pressing `alt+f10` on this block toolbar. - event.nativeEvent.stopImmediatePropagation(); + if (document.readyState === 'complete') { + initialize(); + } else { + document.addEventListener('readystatechange', onReadyStateChange); } - }, { - key: "render", - value: function render() { - var clientId = this.props.clientId; // Disable reasons: - // - // jsx-a11y/no-static-element-interactions - // - the toolbar itself is non-interactive, but must capture events - // from the KeyboardShortcuts component to stop their propagation. - /* eslint-disable jsx-a11y/no-static-element-interactions */ + return function () { + document.removeEventListener('readystatechange', onReadyStateChange); + edit_wp.oldEditor.remove("editor-".concat(clientId)); + }; + }, []); - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], null, Object(external_this_wp_element_["createElement"])(convert_to_blocks_button, { - clientId: clientId - }))), Object(external_this_wp_element_["createElement"])("div", { - key: "toolbar", - id: "toolbar-".concat(clientId), - className: "block-library-classic__toolbar", - onClick: this.focus, - "data-placeholder": Object(external_this_wp_i18n_["__"])('Classic'), - onKeyDown: this.onToolbarKeyDown - }), Object(external_this_wp_element_["createElement"])("div", { - key: "editor", - id: "editor-".concat(clientId), - className: "wp-block-freeform block-library-rich-text__tinymce" - })); - /* eslint-enable jsx-a11y/no-static-element-interactions */ + function focus() { + var editor = window.tinymce.get("editor-".concat(clientId)); + + if (editor) { + editor.focus(); } - }]); + } - return ClassicEdit; -}(external_this_wp_element_["Component"]); + function onToolbarKeyDown(event) { + // Prevent WritingFlow from kicking in and allow arrows navigation on the toolbar. + event.stopPropagation(); // Prevent Mousetrap from moving focus to the top toolbar when pressing `alt+f10` on this block toolbar. + + event.nativeEvent.stopImmediatePropagation(); + } // Disable reasons: + // + // jsx-a11y/no-static-element-interactions + // - the toolbar itself is non-interactive, but must capture events + // from the KeyboardShortcuts component to stop their propagation. + + /* eslint-disable jsx-a11y/no-static-element-interactions */ + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], null, Object(external_this_wp_element_["createElement"])(convert_to_blocks_button, { + clientId: clientId + }))), Object(external_this_wp_element_["createElement"])("div", Object(external_this_wp_blockEditor_["useBlockProps"])(), Object(external_this_wp_element_["createElement"])("div", { + key: "toolbar", + id: "toolbar-".concat(clientId), + className: "block-library-classic__toolbar", + onClick: focus, + "data-placeholder": Object(external_this_wp_i18n_["__"])('Classic'), + onKeyDown: onToolbarKeyDown + }), Object(external_this_wp_element_["createElement"])("div", { + key: "editor", + id: "editor-".concat(clientId), + className: "wp-block-freeform block-library-rich-text__tinymce" + }))); + /* eslint-enable jsx-a11y/no-static-element-interactions */ +} // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/classic/save.js @@ -25070,6 +25043,7 @@ function classic_save_save(_ref) { var classic_metadata = { + apiVersion: 2, name: "core/freeform", category: "text", attributes: { @@ -25091,7 +25065,7 @@ var classic_settings = { title: Object(external_this_wp_i18n_["_x"])('Classic', 'block title'), description: Object(external_this_wp_i18n_["__"])('Use the classic WordPress editor.'), icon: library_classic, - edit: edit_ClassicEdit, + edit: ClassicEdit, save: classic_save_save }; @@ -25120,26 +25094,27 @@ var share = Object(external_this_wp_element_["createElement"])(external_this_wp_ -var social_links_edit_ALLOWED_BLOCKS = ['core/social-link']; // Template contains the links that show when start. - -var edit_TEMPLATE = [['core/social-link', { - service: 'wordpress', - url: 'https://wordpress.org' -}], ['core/social-link', { - service: 'facebook' -}], ['core/social-link', { - service: 'twitter' -}], ['core/social-link', { - service: 'instagram' -}], ['core/social-link', { - service: 'linkedin' -}], ['core/social-link', { - service: 'youtube' -}]]; +var social_links_edit_ALLOWED_BLOCKS = ['core/social-link']; function SocialLinksEdit(props) { var openInNewTab = props.attributes.openInNewTab, setAttributes = props.setAttributes; - var blockWrapperProps = Object(external_this_wp_blockEditor_["__experimentalUseBlockWrapperProps"])(); + var SocialPlaceholder = Object(external_this_wp_element_["createElement"])("div", { + className: "wp-block-social-links__social-placeholder" + }, Object(external_this_wp_element_["createElement"])("div", { + className: "wp-block-social-link wp-social-link-facebook" + }), Object(external_this_wp_element_["createElement"])("div", { + className: "wp-block-social-link wp-social-link-twitter" + }), Object(external_this_wp_element_["createElement"])("div", { + className: "wp-block-social-link wp-social-link-instagram" + })); + var blockProps = Object(external_this_wp_blockEditor_["useBlockProps"])(); + var innerBlocksProps = Object(external_this_wp_blockEditor_["__experimentalUseInnerBlocksProps"])(blockProps, { + allowedBlocks: social_links_edit_ALLOWED_BLOCKS, + orientation: 'horizontal', + placeholder: SocialPlaceholder, + templateLock: false, + __experimentalAppenderTagName: 'li' + }); return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { title: Object(external_this_wp_i18n_["__"])('Link settings') }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { @@ -25150,15 +25125,7 @@ function SocialLinksEdit(props) { openInNewTab: !openInNewTab }); } - }))), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"], { - allowedBlocks: social_links_edit_ALLOWED_BLOCKS, - templateLock: false, - template: edit_TEMPLATE, - orientation: "horizontal", - __experimentalTagName: "ul", - __experimentalPassedProps: blockWrapperProps, - __experimentalAppenderTagName: "li" - })); + }))), Object(external_this_wp_element_["createElement"])("ul", innerBlocksProps)); } /* harmony default export */ var social_links_edit = (SocialLinksEdit); @@ -25169,11 +25136,8 @@ function SocialLinksEdit(props) { * WordPress dependencies */ -function social_links_save_save(_ref) { - var className = _ref.className; - return Object(external_this_wp_element_["createElement"])("ul", { - className: className - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"].Content, null)); +function social_links_save_save() { + return Object(external_this_wp_element_["createElement"])("ul", external_this_wp_blockEditor_["useBlockProps"].save(), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"].Content, null)); } // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-links/index.js @@ -25188,6 +25152,7 @@ function social_links_save_save(_ref) { var social_links_metadata = { + apiVersion: 2, name: "core/social-links", category: "widgets", attributes: { @@ -25201,7 +25166,6 @@ var social_links_metadata = { }, supports: { align: ["left", "center", "right"], - lightBlockWrapper: true, anchor: true } }; @@ -25250,7 +25214,7 @@ var social_links_settings = { }; // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/keyboard-return.js -var keyboard_return = __webpack_require__(215); +var keyboard_return = __webpack_require__(216); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/wordpress.js @@ -26114,6 +26078,7 @@ var social_link_variations_variations = [{ service: 'mail' }, title: 'Mail', + keywords: ['email', 'e-mail'], icon: mail_MailIcon }, { name: 'mastodon', @@ -26323,7 +26288,7 @@ var edit_SocialLinkEdit = function SocialLinkEdit(_ref) { }); var IconComponent = social_list_getIconBySite(service); var socialLinkName = social_list_getNameBySite(service); - var blockWrapperProps = Object(external_this_wp_blockEditor_["__experimentalUseBlockWrapperProps"])({ + var blockProps = Object(external_this_wp_blockEditor_["useBlockProps"])({ className: classes }); return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { @@ -26340,7 +26305,7 @@ var edit_SocialLinkEdit = function SocialLinkEdit(_ref) { label: value }); } - })))), Object(external_this_wp_element_["createElement"])("li", blockWrapperProps, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + })))), Object(external_this_wp_element_["createElement"])("li", blockProps, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { onClick: function onClick() { return setPopover(true); } @@ -26386,6 +26351,7 @@ var edit_SocialLinkEdit = function SocialLinkEdit(_ref) { var social_link_metadata = { + apiVersion: 2, name: "core/social-link", category: "widgets", parent: ["core/social-links"], @@ -26403,8 +26369,7 @@ var social_link_metadata = { usesContext: ["openInNewTab"], supports: { reusable: false, - html: false, - lightBlockWrapper: true + html: false } }; @@ -26429,6 +26394,7 @@ var social_link_settings = { + /** * Internal dependencies */ @@ -26475,7 +26441,6 @@ var social_link_settings = { - // Full Site Editing Blocks @@ -26524,9 +26489,30 @@ var build_module_registerBlock = function registerBlock(block) { Object(external_this_wp_blocks_["registerBlockType"])(name, settings); }; +/** + * Function to get all the core blocks in an array. + * + * @example + * ```js + * import { __experimentalGetCoreBlocks } from '@wordpress/block-library'; + * + * const coreBlocks = __experimentalGetCoreBlocks(); + * ``` + */ + + +var build_module_experimentalGetCoreBlocks = function __experimentalGetCoreBlocks() { + return [// Common blocks are grouped at the top to prioritize their display + // in various contexts — like the inserter and auto-complete components. + build_module_paragraph_namespaceObject, build_module_image_namespaceObject, build_module_heading_namespaceObject, build_module_gallery_namespaceObject, build_module_list_namespaceObject, build_module_quote_namespaceObject, // Register all remaining core blocks. + build_module_shortcode_namespaceObject, archives_namespaceObject, build_module_audio_namespaceObject, build_module_button_namespaceObject, buttons_namespaceObject, build_module_calendar_namespaceObject, categories_namespaceObject, code_namespaceObject, build_module_columns_namespaceObject, build_module_column_namespaceObject, build_module_cover_namespaceObject, embed_namespaceObject, build_module_file_namespaceObject, build_module_group_namespaceObject, window.wp && window.wp.oldEditor ? build_module_classic_namespaceObject : null, // Only add the classic block in WP Context + build_module_html_namespaceObject, media_text_namespaceObject, latest_comments_namespaceObject, latest_posts_namespaceObject, missing_namespaceObject, build_module_more_namespaceObject, nextpage_namespaceObject, build_module_preformatted_namespaceObject, build_module_pullquote_namespaceObject, build_module_rss_namespaceObject, search_namespaceObject, build_module_separator_namespaceObject, block_namespaceObject, social_links_namespaceObject, social_link_namespaceObject, spacer_namespaceObject, subhead_namespaceObject, build_module_table_namespaceObject, tag_cloud_namespaceObject, text_columns_namespaceObject, build_module_verse_namespaceObject, build_module_video_namespaceObject]; +}; /** * Function to register core blocks provided by the block editor. * + * @param {Array} blocks An optional array of the core blocks being registered. + * * @example * ```js * import { registerCoreBlocks } from '@wordpress/block-library'; @@ -26535,13 +26521,9 @@ var build_module_registerBlock = function registerBlock(block) { * ``` */ - var build_module_registerCoreBlocks = function registerCoreBlocks() { - [// Common blocks are grouped at the top to prioritize their display - // in various contexts — like the inserter and auto-complete components. - build_module_paragraph_namespaceObject, build_module_image_namespaceObject, build_module_heading_namespaceObject, build_module_gallery_namespaceObject, build_module_list_namespaceObject, build_module_quote_namespaceObject, // Register all remaining core blocks. - build_module_shortcode_namespaceObject, archives_namespaceObject, build_module_audio_namespaceObject, build_module_button_namespaceObject, buttons_namespaceObject, build_module_calendar_namespaceObject, categories_namespaceObject, code_namespaceObject, build_module_columns_namespaceObject, build_module_column_namespaceObject, build_module_cover_namespaceObject, embed_namespaceObject, build_module_file_namespaceObject, build_module_group_namespaceObject, window.wp && window.wp.oldEditor ? build_module_classic_namespaceObject : null, // Only add the classic block in WP Context - build_module_html_namespaceObject, media_text_namespaceObject, latest_comments_namespaceObject, latest_posts_namespaceObject, missing_namespaceObject, build_module_more_namespaceObject, nextpage_namespaceObject, build_module_preformatted_namespaceObject, build_module_pullquote_namespaceObject, build_module_rss_namespaceObject, search_namespaceObject, build_module_separator_namespaceObject, block_namespaceObject, social_links_namespaceObject, social_link_namespaceObject, spacer_namespaceObject, subhead_namespaceObject, build_module_table_namespaceObject, tag_cloud_namespaceObject, text_columns_namespaceObject, build_module_verse_namespaceObject, build_module_video_namespaceObject].forEach(build_module_registerBlock); + var blocks = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : build_module_experimentalGetCoreBlocks(); + blocks.forEach(build_module_registerBlock); Object(external_this_wp_blocks_["setDefaultBlockName"])(paragraph_name); if (window.wp && window.wp.oldEditor) { @@ -26569,39 +26551,10 @@ var __experimentalRegisterExperimentalCoreBlocks = false ? undefined : undefine /***/ }), -/***/ 483: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; - -// EXTERNAL MODULE: external {"this":["wp","element"]} -var external_this_wp_element_ = __webpack_require__(0); - -// EXTERNAL MODULE: external {"this":["wp","primitives"]} -var external_this_wp_primitives_ = __webpack_require__(7); - -// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/pencil.js - - -/** - * WordPress dependencies - */ - -var pencil = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { - d: "M20.1 5.1L16.9 2 6.2 12.7l-1.3 4.4 4.5-1.3L20.1 5.1zM4 20.8h8v-1.5H4v1.5z" -})); -/* harmony default export */ var library_pencil = (pencil); - -// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/edit.js -/** - * Internal dependencies - */ - -/* harmony default export */ var edit = __webpack_exports__["a"] = (library_pencil); +/***/ 47: +/***/ (function(module, exports) { +(function() { module.exports = this["wp"]["apiFetch"]; }()); /***/ }), @@ -28042,17 +27995,17 @@ function _extends() { /***/ }), -/***/ 86: +/***/ 83: /***/ (function(module, exports) { -(function() { module.exports = this["wp"]["serverSideRender"]; }()); +(function() { module.exports = this["wp"]["coreData"]; }()); /***/ }), -/***/ 89: +/***/ 87: /***/ (function(module, exports) { -(function() { module.exports = this["wp"]["viewport"]; }()); +(function() { module.exports = this["wp"]["serverSideRender"]; }()); /***/ }), @@ -28112,6 +28065,13 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! }()); +/***/ }), + +/***/ 92: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["notices"]; }()); + /***/ }) /******/ }); \ No newline at end of file diff --git a/wp-includes/js/dist/block-library.min.js b/wp-includes/js/dist/block-library.min.js index 719db4aec7..ae7bfa10cf 100644 --- a/wp-includes/js/dist/block-library.min.js +++ b/wp-includes/js/dist/block-library.min.js @@ -1,12 +1,12 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.blockLibrary=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=450)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},10:function(e,t){!function(){e.exports=this.wp.compose}()},100:function(e,t){!function(){e.exports=this.wp.coreData}()},101:function(e,t){!function(){e.exports=this.wp.notices}()},105:function(e,t){!function(){e.exports=this.wp.autop}()},11:function(e,t){!function(){e.exports=this.wp.blocks}()},118:function(e,t,r){var n; +this.wp=this.wp||{},this.wp.blockLibrary=function(e){var t={};function r(n){if(t[n])return t[n].exports;var c=t[n]={i:n,l:!1,exports:{}};return e[n].call(c.exports,c,c.exports,r),c.l=!0,c.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var c in e)r.d(n,c,function(t){return e[t]}.bind(null,c));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=454)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},10:function(e,t){!function(){e.exports=this.wp.compose}()},101:function(e,t){!function(){e.exports=this.wp.viewport}()},105:function(e,t){!function(){e.exports=this.wp.autop}()},11:function(e,t){!function(){e.exports=this.wp.blocks}()},117:function(e,t,r){var n; /*! Copyright (c) 2017 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/!function(){"use strict";var r=function(){function e(){}function t(e,t){for(var r=t.length,n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(c[r]=e[r])}return c}},142:function(e,t,r){"use strict";var n=r(5),o=r(14),c=r(0);function a(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}t.a=function(e){var t=e.icon,r=e.size,i=void 0===r?24:r,l=Object(o.a)(e,["icon","size"]);return Object(c.cloneElement)(t,function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}},141:function(e,t,r){"use strict";var n=r(5),c=r(14),o=r(0);function a(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}t.a=function(e){var t=e.icon,r=e.size,i=void 0===r?24:r,l=Object(c.a)(e,["icon","size"]);return Object(o.cloneElement)(t,function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);ra?(r=c/a,i=100,l=Math.round(i/r)):(r=a/c,l=100,i=Math.round(l/r)),(i>c||l>a||i<10||l<10)&&(i=c,l=a)),{srcLeft:n,srcTop:o,srcWidth:c,srcHeight:a,destWidth:i,destHeight:l}}},{key:"_simpleAlgorithm",value:function(e,t,r){for(var n=0,o=0,c=0,a=0,i=0,l=0;ln?-1:r===n?0:1}))[0],5),m=b[0],d=b[1],p=b[2],g=b[3],h=b[4];return g?[Math.round(m/g),Math.round(d/g),Math.round(p/g),Math.round(g/h)]:[0,0,0,0]}},{key:"_bindImageEvents",value:function(e,t,r){var n=this,o=(r=r||{})&&r.data,c=this._getDefaultColor(r),a=function(){s(),t.call(e,n.getColor(e,r),o)},i=function(){s(),t.call(e,n._prepareResult(c,new Error("Image error")),o)},l=function(){s(),t.call(e,n._prepareResult(c,new Error("Image abort")),o)},s=function(){e.removeEventListener("load",a),e.removeEventListener("error",i),e.removeEventListener("abort",l)};e.addEventListener("load",a),e.addEventListener("error",i),e.addEventListener("abort",l)}},{key:"_prepareResult",value:function(e,t){var r=e.slice(0,3),n=[].concat(r,e[3]/255),o=this._isDark(e);return{error:t,value:e,rgb:"rgb("+r.join(",")+")",rgba:"rgba("+n.join(",")+")",hex:this._arrayToHex(r),hexa:this._arrayToHex(e),isDark:o,isLight:!o}}},{key:"_getOriginalSize",value:function(e){return e instanceof HTMLImageElement?{width:e.naturalWidth,height:e.naturalHeight}:e instanceof HTMLVideoElement?{width:e.videoWidth,height:e.videoHeight}:{width:e.width,height:e.height}}},{key:"_toHex",value:function(e){var t=e.toString(16);return 1===t.length?"0"+t:t}},{key:"_arrayToHex",value:function(e){return"#"+e.map(this._toHex).join("")}},{key:"_isDark",value:function(e){return(299*e[0]+587*e[1]+114*e[2])/1e3<128}},{key:"_makeCanvas",value:function(){return"undefined"==typeof window?new OffscreenCanvas(1,1):document.createElement("canvas")}}])&&e(n.prototype,o),c&&e(n,c),r}()}()},3:function(e,t){!function(){e.exports=this.wp.components}()},30:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(27);function o(e,t){if(e){if("string"==typeof e)return Object(n.a)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Object(n.a)(e,t):void 0}}},300:function(e,t,r){"use strict";var n=r(0),o=r(7),c=Object(n.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(o.Path,{d:"M4 19.8h8.9v-1.5H4v1.5zm8.9-15.6H4v1.5h8.9V4.2zm-8.9 7v1.5h16v-1.5H4z"}));t.a=c},301:function(e,t,r){"use strict";var n=r(0),o=r(7),c=Object(n.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(o.Path,{d:"M16.4 4.2H7.6v1.5h8.9V4.2zM4 11.2v1.5h16v-1.5H4zm3.6 8.6h8.9v-1.5H7.6v1.5z"}));t.a=c},302:function(e,t,r){"use strict";var n=r(0),o=r(7),c=Object(n.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(o.Path,{d:"M11.1 19.8H20v-1.5h-8.9v1.5zm0-15.6v1.5H20V4.2h-8.9zM4 12.8h16v-1.5H4v1.5z"}));t.a=c},303:function(e,t,r){"use strict";var n=r(0),o=r(7),c=Object(n.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(o.Path,{d:"M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"}));t.a=c},31:function(e,t){!function(){e.exports=this.wp.url}()},316:function(e,t,r){"use strict";var n=r(0),o=r(7),c=Object(n.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(n.createElement)(o.Path,{d:"M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"}));t.a=c},35:function(e,t){!function(){e.exports=this.wp.deprecated}()},37:function(e,t,r){"use strict";function n(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}r.d(t,"a",(function(){return n}))},38:function(e,t,r){"use strict";function n(e){if(Array.isArray(e))return e}r.d(t,"a",(function(){return n}))},39:function(e,t,r){"use strict";function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}r.d(t,"a",(function(){return n}))},4:function(e,t){!function(){e.exports=this.wp.data}()},40:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r.d(t,"a",(function(){return n}))},42:function(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r,n,o={},c=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}r.d(t,"a",(function(){return n}))},43:function(e,t){!function(){e.exports=this.wp.blob}()},44:function(e,t){!function(){e.exports=this.moment}()},45:function(e,t){!function(){e.exports=this.wp.apiFetch}()},450:function(e,t,r){"use strict";r.r(t),r.d(t,"registerCoreBlocks",(function(){return Xu})),r.d(t,"__experimentalRegisterExperimentalCoreBlocks",(function(){return eb}));var n={};r.r(n),r.d(n,"metadata",(function(){return je})),r.d(n,"name",(function(){return ye})),r.d(n,"settings",(function(){return we}));var o={};r.r(o),r.d(o,"metadata",(function(){return Tt})),r.d(o,"name",(function(){return Bt})),r.d(o,"settings",(function(){return zt}));var c={};r.r(c),r.d(c,"metadata",(function(){return Kt})),r.d(c,"name",(function(){return Qt})),r.d(c,"settings",(function(){return Yt}));var a={};r.r(a),r.d(a,"metadata",(function(){return mr})),r.d(a,"name",(function(){return dr})),r.d(a,"settings",(function(){return pr}));var i={};r.r(i),r.d(i,"metadata",(function(){return Kr})),r.d(i,"name",(function(){return Qr})),r.d(i,"settings",(function(){return Yr}));var l={};r.r(l),r.d(l,"metadata",(function(){return tn})),r.d(l,"name",(function(){return rn})),r.d(l,"settings",(function(){return nn}));var s={};r.r(s),r.d(s,"metadata",(function(){return un})),r.d(s,"name",(function(){return bn})),r.d(s,"settings",(function(){return mn}));var u={};r.r(u),r.d(u,"metadata",(function(){return Dn})),r.d(u,"name",(function(){return Fn})),r.d(u,"settings",(function(){return Un}));var b={};r.r(b),r.d(b,"metadata",(function(){return $n})),r.d(b,"name",(function(){return Kn})),r.d(b,"settings",(function(){return Qn}));var m={};r.r(m),r.d(m,"metadata",(function(){return no})),r.d(m,"name",(function(){return oo})),r.d(m,"settings",(function(){return co}));var d={};r.r(d),r.d(d,"metadata",(function(){return bo})),r.d(d,"name",(function(){return mo})),r.d(d,"settings",(function(){return po}));var p={};r.r(p),r.d(p,"metadata",(function(){return Oo})),r.d(p,"name",(function(){return jo})),r.d(p,"settings",(function(){return yo}));var g={};r.r(g),r.d(g,"metadata",(function(){return Do})),r.d(g,"name",(function(){return Fo})),r.d(g,"settings",(function(){return Uo}));var h={};r.r(h),r.d(h,"metadata",(function(){return qo})),r.d(h,"name",(function(){return Zo})),r.d(h,"settings",(function(){return $o}));var f={};r.r(f),r.d(f,"metadata",(function(){return _c})),r.d(f,"name",(function(){return kc})),r.d(f,"settings",(function(){return Cc}));var v={};r.r(v),r.d(v,"metadata",(function(){return ia})),r.d(v,"name",(function(){return la})),r.d(v,"settings",(function(){return sa}));var O={};r.r(O),r.d(O,"metadata",(function(){return ha})),r.d(O,"name",(function(){return fa})),r.d(O,"settings",(function(){return va}));var j={};r.r(j),r.d(j,"metadata",(function(){return ka})),r.d(j,"name",(function(){return Ca})),r.d(j,"settings",(function(){return Ea}));var y={};r.r(y),r.d(y,"metadata",(function(){return Za})),r.d(y,"name",(function(){return $a})),r.d(y,"settings",(function(){return Ka}));var w={};r.r(w),r.d(w,"metadata",(function(){return Xa})),r.d(w,"name",(function(){return ei})),r.d(w,"settings",(function(){return ti}));var _={};r.r(_),r.d(_,"metadata",(function(){return hi})),r.d(_,"name",(function(){return fi})),r.d(_,"settings",(function(){return vi}));var k={};r.r(k),r.d(k,"metadata",(function(){return Ai})),r.d(k,"name",(function(){return Ii})),r.d(k,"settings",(function(){return Hi}));var C={};r.r(C),r.d(C,"metadata",(function(){return Vi})),r.d(C,"name",(function(){return Di})),r.d(C,"settings",(function(){return Fi}));var E={};r.r(E),r.d(E,"metadata",(function(){return qi})),r.d(E,"name",(function(){return Zi})),r.d(E,"settings",(function(){return $i}));var x={};r.r(x),r.d(x,"metadata",(function(){return Yi})),r.d(x,"name",(function(){return Ji})),r.d(x,"settings",(function(){return Xi}));var S={};r.r(S),r.d(S,"metadata",(function(){return rl})),r.d(S,"name",(function(){return nl})),r.d(S,"settings",(function(){return ol}));var P={};r.r(P),r.d(P,"metadata",(function(){return vl})),r.d(P,"name",(function(){return Ol})),r.d(P,"settings",(function(){return jl}));var T={};r.r(T),r.d(T,"metadata",(function(){return Cl})),r.d(T,"name",(function(){return El})),r.d(T,"settings",(function(){return xl}));var B={};r.r(B),r.d(B,"metadata",(function(){return Pl})),r.d(B,"name",(function(){return Tl})),r.d(B,"settings",(function(){return Bl}));var z={};r.r(z),r.d(z,"metadata",(function(){return Vl})),r.d(z,"name",(function(){return Dl})),r.d(z,"settings",(function(){return Fl}));var N={};r.r(N),r.d(N,"metadata",(function(){return Ql})),r.d(N,"name",(function(){return Yl})),r.d(N,"settings",(function(){return Jl}));var M={};r.r(M),r.d(M,"metadata",(function(){return ns})),r.d(M,"name",(function(){return os})),r.d(M,"settings",(function(){return cs}));var R={};r.r(R),r.d(R,"metadata",(function(){return us})),r.d(R,"name",(function(){return bs})),r.d(R,"settings",(function(){return ms}));var A={};r.r(A),r.d(A,"metadata",(function(){return gs})),r.d(A,"name",(function(){return hs})),r.d(A,"settings",(function(){return fs}));var I={};r.r(I),r.d(I,"metadata",(function(){return ys})),r.d(I,"name",(function(){return ws})),r.d(I,"settings",(function(){return _s}));var H={};r.r(H),r.d(H,"metadata",(function(){return tu})),r.d(H,"name",(function(){return ru})),r.d(H,"settings",(function(){return nu}));var L={};r.r(L),r.d(L,"metadata",(function(){return cu})),r.d(L,"name",(function(){return au})),r.d(L,"settings",(function(){return iu}));var V={};r.r(V),r.d(V,"metadata",(function(){return bu})),r.d(V,"name",(function(){return mu})),r.d(V,"settings",(function(){return du}));var D={};r.r(D),r.d(D,"metadata",(function(){return ju})),r.d(D,"name",(function(){return yu})),r.d(D,"settings",(function(){return wu}));var F={};r.r(F),r.d(F,"metadata",(function(){return Cu})),r.d(F,"name",(function(){return Eu})),r.d(F,"settings",(function(){return xu}));var U={};r.r(U),r.d(U,"metadata",(function(){return Ru})),r.d(U,"name",(function(){return Au})),r.d(U,"settings",(function(){return Iu}));var G={};r.r(G),r.d(G,"metadata",(function(){return Fu})),r.d(G,"name",(function(){return Uu})),r.d(G,"settings",(function(){return Gu}));var W={};r.r(W),r.d(W,"metadata",(function(){return Ku})),r.d(W,"name",(function(){return Qu})),r.d(W,"settings",(function(){return Yu}));var q=r(18),Z=r(5),$=(r(100),r(101),r(6)),K=r(11),Q=r(2),Y=r(1),J=r(0),X=r(7),ee=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M18.3 4H9.9v-.1l-.9.2c-2.3.4-4 2.4-4 4.8s1.7 4.4 4 4.8l.7.1V20h1.5V5.5h2.9V20h1.5V5.5h2.7V4z"})),te=r(9),re=r.n(te);function ne(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 oe(e){for(var t=1;t a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number"},width:{type:"number"},height:{type:"number"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},Ce=[{attributes:ke,save:function(e){var t,r=e.attributes,n=r.url,o=r.alt,c=r.caption,a=r.align,i=r.href,l=r.width,s=r.height,u=r.id,b=re()((t={},Object(Z.a)(t,"align".concat(a),a),Object(Z.a)(t,"is-resized",l||s),t)),m=Object(J.createElement)("img",{src:n,alt:o,className:u?"wp-image-".concat(u):null,width:l,height:s});return Object(J.createElement)("figure",{className:b},i?Object(J.createElement)("a",{href:i},m):m,!$.RichText.isEmpty(c)&&Object(J.createElement)($.RichText.Content,{tagName:"figcaption",value:c}))}},{attributes:ke,save:function(e){var t=e.attributes,r=t.url,n=t.alt,o=t.caption,c=t.align,a=t.href,i=t.width,l=t.height,s=t.id,u=Object(J.createElement)("img",{src:r,alt:n,className:s?"wp-image-".concat(s):null,width:i,height:l});return Object(J.createElement)("figure",{className:c?"align".concat(c):null},a?Object(J.createElement)("a",{href:a},u):u,!$.RichText.isEmpty(o)&&Object(J.createElement)($.RichText.Content,{tagName:"figcaption",value:o}))}},{attributes:ke,save:function(e){var t=e.attributes,r=t.url,n=t.alt,o=t.caption,c=t.align,a=t.href,i=t.width,l=t.height,s=i||l?{width:i,height:l}:{},u=Object(J.createElement)("img",Object(se.a)({src:r,alt:n},s)),b={};return i?b={width:i}:"left"!==c&&"right"!==c||(b={maxWidth:"50%"}),Object(J.createElement)("figure",{className:c?"align".concat(c):null,style:b},a?Object(J.createElement)("a",{href:a},u):u,!$.RichText.isEmpty(o)&&Object(J.createElement)($.RichText.Content,{tagName:"figcaption",value:o}))}}],Ee=r(43),xe=r(10),Se=r(31),Pe=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M17.5 7v8H19V7c0-1.1-.9-2-2-2H9v1.5h8c.3 0 .5.2.5.5zM7 17.5c-.3 0-.5-.2-.5-.5V1H5v4H1v1.5h4V17c0 1.1.9 2 2 2h10.5v4H19v-4h4v-1.5H7z"})),Te=r(216),Be=[{ratio:"2.33",className:"wp-embed-aspect-21-9"},{ratio:"2.00",className:"wp-embed-aspect-18-9"},{ratio:"1.78",className:"wp-embed-aspect-16-9"},{ratio:"1.33",className:"wp-embed-aspect-4-3"},{ratio:"1.00",className:"wp-embed-aspect-1-1"},{ratio:"0.56",className:"wp-embed-aspect-9-16"},{ratio:"0.50",className:"wp-embed-aspect-1-2"}],ze=r(118),Ne=r.n(ze),Me=r(60),Re=r.n(Me);function Ae(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 Ie(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:[];return t.some((function(t){return e.match(t)}))}(e,r)}))},Le=function(e){return e&&e.includes('class="wp-embedded-content"')},Ve=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.preview,o=e.attributes,c=(o=void 0===o?{}:o).url,a=o.providerNameSlug,i=o.type;if(c&&Object(K.getBlockType)("core/embed")){var l=He(c),s="wordpress"===a||"wp-embed"===i,u=!s&&l&&(l.attributes.providerNameSlug!==a||!a);if(u)return Object(K.createBlock)("core/embed",Ie({url:c},l.attributes));var b=null===(t=Object(K.getBlockVariations)("core/embed"))||void 0===t?void 0:t.find((function(e){return"wordpress"===e.name}));if(b&&n&&Le(n.html)&&!s)return Object(K.createBlock)("core/embed",Ie(Ie({url:c},b.attributes),r))}},De=function(e){var t=Be.reduce((function(e,t){return e[t.className]=!1,e}),{"wp-has-aspect-ratio":!1});return Ne()(e,t)};function Fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!r)return De(t);var n=document.implementation.createHTMLDocument("");n.body.innerHTML=e;var o=n.body.querySelector("iframe");if(o&&o.height&&o.width)for(var c=(o.width/o.height).toFixed(2),a=0;a=i.ratio)return Ne()(De(t),i.className,"wp-has-aspect-ratio")}return t}var Ue=Re()((function(e,t,r,n){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(!e)return{};var c={},a=e.type,i=void 0===a?"rich":a,l=e.html,s=e.provider_name,u=Object(Q.kebabCase)((s||t).toLowerCase());return Le(l)&&(i="wp-embed"),(l||"photo"===i)&&(c.type=i,c.providerNameSlug=u),c.className=Fe(l,r,n&&o),c})); +e.exports=function(){"use strict";function e(e,t){for(var r=0;ra?(r=o/a,i=100,l=Math.round(i/r)):(r=a/o,l=100,i=Math.round(l/r)),(i>o||l>a||i<10||l<10)&&(i=o,l=a)),{srcLeft:n,srcTop:c,srcWidth:o,srcHeight:a,destWidth:i,destHeight:l}}},{key:"_simpleAlgorithm",value:function(e,t,r){for(var n=0,c=0,o=0,a=0,i=0,l=0;ln?-1:r===n?0:1}))[0],5),m=b[0],d=b[1],p=b[2],g=b[3],h=b[4];return g?[Math.round(m/g),Math.round(d/g),Math.round(p/g),Math.round(g/h)]:[0,0,0,0]}},{key:"_bindImageEvents",value:function(e,t,r){var n=this,c=(r=r||{})&&r.data,o=this._getDefaultColor(r),a=function(){s(),t.call(e,n.getColor(e,r),c)},i=function(){s(),t.call(e,n._prepareResult(o,new Error("Image error")),c)},l=function(){s(),t.call(e,n._prepareResult(o,new Error("Image abort")),c)},s=function(){e.removeEventListener("load",a),e.removeEventListener("error",i),e.removeEventListener("abort",l)};e.addEventListener("load",a),e.addEventListener("error",i),e.addEventListener("abort",l)}},{key:"_prepareResult",value:function(e,t){var r=e.slice(0,3),n=[].concat(r,e[3]/255),c=this._isDark(e);return{error:t,value:e,rgb:"rgb("+r.join(",")+")",rgba:"rgba("+n.join(",")+")",hex:this._arrayToHex(r),hexa:this._arrayToHex(e),isDark:c,isLight:!c}}},{key:"_getOriginalSize",value:function(e){return e instanceof HTMLImageElement?{width:e.naturalWidth,height:e.naturalHeight}:e instanceof HTMLVideoElement?{width:e.videoWidth,height:e.videoHeight}:{width:e.width,height:e.height}}},{key:"_toHex",value:function(e){var t=e.toString(16);return 1===t.length?"0"+t:t}},{key:"_arrayToHex",value:function(e){return"#"+e.map(this._toHex).join("")}},{key:"_isDark",value:function(e){return(299*e[0]+587*e[1]+114*e[2])/1e3<128}},{key:"_makeCanvas",value:function(){return"undefined"==typeof window?new OffscreenCanvas(1,1):document.createElement("canvas")}}])&&e(n.prototype,c),o&&e(n,o),r}()}()},3:function(e,t){!function(){e.exports=this.wp.components}()},30:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(27);function c(e,t){if(e){if("string"==typeof e)return Object(n.a)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Object(n.a)(e,t):void 0}}},303:function(e,t,r){"use strict";var n=r(0),c=r(7),o=Object(n.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(c.Path,{d:"M4 19.8h8.9v-1.5H4v1.5zm8.9-15.6H4v1.5h8.9V4.2zm-8.9 7v1.5h16v-1.5H4z"}));t.a=o},304:function(e,t,r){"use strict";var n=r(0),c=r(7),o=Object(n.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(c.Path,{d:"M16.4 4.2H7.6v1.5h8.9V4.2zM4 11.2v1.5h16v-1.5H4zm3.6 8.6h8.9v-1.5H7.6v1.5z"}));t.a=o},305:function(e,t,r){"use strict";var n=r(0),c=r(7),o=Object(n.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(c.Path,{d:"M11.1 19.8H20v-1.5h-8.9v1.5zm0-15.6v1.5H20V4.2h-8.9zM4 12.8h16v-1.5H4v1.5z"}));t.a=o},306:function(e,t,r){"use strict";var n=r(0),c=r(7),o=Object(n.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(c.Path,{d:"M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"}));t.a=o},31:function(e,t){!function(){e.exports=this.wp.url}()},319:function(e,t,r){"use strict";var n=r(0),c=r(7),o=Object(n.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(c.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h13.4c.4 0 .8.4.8.8v13.4zM10 15l5-3-5-3v6z"}));t.a=o},320:function(e,t,r){"use strict";var n=r(0),c=r(7),o=Object(n.createElement)(c.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(n.createElement)(c.Path,{d:"M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"}));t.a=o},36:function(e,t){!function(){e.exports=this.wp.deprecated}()},37:function(e,t,r){"use strict";function n(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}r.d(t,"a",(function(){return n}))},38:function(e,t,r){"use strict";function n(e){if(Array.isArray(e))return e}r.d(t,"a",(function(){return n}))},39:function(e,t,r){"use strict";function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}r.d(t,"a",(function(){return n}))},4:function(e,t){!function(){e.exports=this.wp.data}()},40:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r.d(t,"a",(function(){return n}))},41:function(e,t){!function(){e.exports=this.wp.blob}()},43:function(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r,n,c={},o=Object.keys(e);for(n=0;n=0||(c[r]=e[r]);return c}r.d(t,"a",(function(){return n}))},44:function(e,t){!function(){e.exports=this.moment}()},45:function(e,t,r){"use strict";function n(e,t,r,n,c,o,a){try{var i=e[o](a),l=i.value}catch(e){return void r(e)}i.done?t(l):Promise.resolve(l).then(n,c)}function c(e){return function(){var t=this,r=arguments;return new Promise((function(c,o){var a=e.apply(t,r);function i(e){n(a,c,o,i,l,"next",e)}function l(e){n(a,c,o,i,l,"throw",e)}i(void 0)}))}}r.d(t,"a",(function(){return c}))},454:function(e,t,r){"use strict";r.r(t),r.d(t,"__experimentalGetCoreBlocks",(function(){return Yu})),r.d(t,"registerCoreBlocks",(function(){return Ju})),r.d(t,"__experimentalRegisterExperimentalCoreBlocks",(function(){return Qu}));var n={};r.r(n),r.d(n,"metadata",(function(){return je})),r.d(n,"name",(function(){return ye})),r.d(n,"settings",(function(){return _e}));var c={};r.r(c),r.d(c,"metadata",(function(){return Bt})),r.d(c,"name",(function(){return Tt})),r.d(c,"settings",(function(){return zt}));var o={};r.r(o),r.d(o,"metadata",(function(){return Kt})),r.d(o,"name",(function(){return Yt})),r.d(o,"settings",(function(){return Jt}));var a={};r.r(a),r.d(a,"metadata",(function(){return mr})),r.d(a,"name",(function(){return dr})),r.d(a,"settings",(function(){return pr}));var i={};r.r(i),r.d(i,"metadata",(function(){return Zr})),r.d(i,"name",(function(){return $r})),r.d(i,"settings",(function(){return Kr}));var l={};r.r(l),r.d(l,"metadata",(function(){return Xr})),r.d(l,"name",(function(){return en})),r.d(l,"settings",(function(){return tn}));var s={};r.r(s),r.d(s,"metadata",(function(){return ln})),r.d(s,"name",(function(){return sn})),r.d(s,"settings",(function(){return un}));var u={};r.r(u),r.d(u,"metadata",(function(){return Ln})),r.d(u,"name",(function(){return In})),r.d(u,"settings",(function(){return Dn}));var b={};r.r(b),r.d(b,"metadata",(function(){return Wn})),r.d(b,"name",(function(){return Zn})),r.d(b,"settings",(function(){return $n}));var m={};r.r(m),r.d(m,"metadata",(function(){return tc})),r.d(m,"name",(function(){return rc})),r.d(m,"settings",(function(){return nc}));var d={};r.r(d),r.d(d,"metadata",(function(){return ac})),r.d(d,"name",(function(){return ic})),r.d(d,"settings",(function(){return lc}));var p={};r.r(p),r.d(p,"metadata",(function(){return dc})),r.d(p,"name",(function(){return pc})),r.d(p,"settings",(function(){return gc}));var g={};r.r(g),r.d(g,"metadata",(function(){return Ac})),r.d(g,"name",(function(){return Hc})),r.d(g,"settings",(function(){return Lc}));var h={};r.r(h),r.d(h,"metadata",(function(){return qc})),r.d(h,"name",(function(){return Wc})),r.d(h,"settings",(function(){return Zc}));var f={};r.r(f),r.d(f,"metadata",(function(){return wo})),r.d(f,"name",(function(){return ko})),r.d(f,"settings",(function(){return Eo}));var O={};r.r(O),r.d(O,"metadata",(function(){return ia})),r.d(O,"name",(function(){return la})),r.d(O,"settings",(function(){return sa}));var v={};r.r(v),r.d(v,"metadata",(function(){return pa})),r.d(v,"name",(function(){return ga})),r.d(v,"settings",(function(){return ha}));var j={};r.r(j),r.d(j,"metadata",(function(){return va})),r.d(j,"name",(function(){return ja})),r.d(j,"settings",(function(){return ya}));var y={};r.r(y),r.d(y,"metadata",(function(){return Ga})),r.d(y,"name",(function(){return Fa})),r.d(y,"settings",(function(){return Ua}));var _={};r.r(_),r.d(_,"metadata",(function(){return Wa})),r.d(_,"name",(function(){return Za})),r.d(_,"settings",(function(){return $a}));var w={};r.r(w),r.d(w,"metadata",(function(){return ai})),r.d(w,"name",(function(){return ii})),r.d(w,"settings",(function(){return li}));var k={};r.r(k),r.d(k,"metadata",(function(){return Ci})),r.d(k,"name",(function(){return xi})),r.d(k,"settings",(function(){return Si}));var E={};r.r(E),r.d(E,"metadata",(function(){return Bi})),r.d(E,"name",(function(){return Ti})),r.d(E,"settings",(function(){return zi}));var C={};r.r(C),r.d(C,"metadata",(function(){return Vi})),r.d(C,"name",(function(){return Ai})),r.d(C,"settings",(function(){return Hi}));var x={};r.r(x),r.d(x,"metadata",(function(){return Di})),r.d(x,"name",(function(){return Gi})),r.d(x,"settings",(function(){return Fi}));var S={};r.r(S),r.d(S,"metadata",(function(){return Wi})),r.d(S,"name",(function(){return Zi})),r.d(S,"settings",(function(){return $i}));var P={};r.r(P),r.d(P,"metadata",(function(){return ll})),r.d(P,"name",(function(){return sl})),r.d(P,"settings",(function(){return ul}));var B={};r.r(B),r.d(B,"metadata",(function(){return gl})),r.d(B,"name",(function(){return hl})),r.d(B,"settings",(function(){return fl}));var T={};r.r(T),r.d(T,"metadata",(function(){return vl})),r.d(T,"name",(function(){return jl})),r.d(T,"settings",(function(){return yl}));var z={};r.r(z),r.d(z,"metadata",(function(){return Bl})),r.d(z,"name",(function(){return Tl})),r.d(z,"settings",(function(){return zl}));var N={};r.r(N),r.d(N,"metadata",(function(){return Il})),r.d(N,"name",(function(){return Dl})),r.d(N,"settings",(function(){return Gl}));var M={};r.r(M),r.d(M,"metadata",(function(){return Zl})),r.d(M,"name",(function(){return $l})),r.d(M,"settings",(function(){return Kl}));var R={};r.r(R),r.d(R,"metadata",(function(){return es})),r.d(R,"name",(function(){return ts})),r.d(R,"settings",(function(){return rs}));var V={};r.r(V),r.d(V,"metadata",(function(){return os})),r.d(V,"name",(function(){return as})),r.d(V,"settings",(function(){return is}));var A={};r.r(A),r.d(A,"metadata",(function(){return bs})),r.d(A,"name",(function(){return ms})),r.d(A,"settings",(function(){return ds}));var H={};r.r(H),r.d(H,"metadata",(function(){return qs})),r.d(H,"name",(function(){return Ws})),r.d(H,"settings",(function(){return Zs}));var L={};r.r(L),r.d(L,"metadata",(function(){return Ks})),r.d(L,"name",(function(){return Ys})),r.d(L,"settings",(function(){return Js}));var I={};r.r(I),r.d(I,"metadata",(function(){return tu})),r.d(I,"name",(function(){return ru})),r.d(I,"settings",(function(){return nu}));var D={};r.r(D),r.d(D,"metadata",(function(){return ju})),r.d(D,"name",(function(){return yu})),r.d(D,"settings",(function(){return _u}));var G={};r.r(G),r.d(G,"metadata",(function(){return Eu})),r.d(G,"name",(function(){return Cu})),r.d(G,"settings",(function(){return xu}));var F={};r.r(F),r.d(F,"metadata",(function(){return Nu})),r.d(F,"name",(function(){return Mu})),r.d(F,"settings",(function(){return Ru}));var U={};r.r(U),r.d(U,"metadata",(function(){return Lu})),r.d(U,"name",(function(){return Iu})),r.d(U,"settings",(function(){return Du}));var q={};r.r(q),r.d(q,"metadata",(function(){return Wu})),r.d(q,"name",(function(){return Zu})),r.d(q,"settings",(function(){return $u}));var W=r(17),Z=r(5),$=r(83),K=(r(92),r(6)),Y=(r(121),r(11)),J=r(2),Q=r(1),X=r(0),ee=r(7),te=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ee.Path,{d:"M18.3 4H9.9v-.1l-.9.2c-2.3.4-4 2.4-4 4.8s1.7 4.4 4 4.8l.7.1V20h1.5V5.5h2.9V20h1.5V5.5h2.7V4z"})),re=r(9),ne=r.n(re);function ce(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function oe(e){for(var t=1;t a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number"},width:{type:"number"},height:{type:"number"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},Ee=[{attributes:ke,save:function(e){var t,r=e.attributes,n=r.url,c=r.alt,o=r.caption,a=r.align,i=r.href,l=r.width,s=r.height,u=r.id,b=ne()((t={},Object(Z.a)(t,"align".concat(a),a),Object(Z.a)(t,"is-resized",l||s),t)),m=Object(X.createElement)("img",{src:n,alt:c,className:u?"wp-image-".concat(u):null,width:l,height:s});return Object(X.createElement)("figure",{className:b},i?Object(X.createElement)("a",{href:i},m):m,!K.RichText.isEmpty(o)&&Object(X.createElement)(K.RichText.Content,{tagName:"figcaption",value:o}))}},{attributes:ke,save:function(e){var t=e.attributes,r=t.url,n=t.alt,c=t.caption,o=t.align,a=t.href,i=t.width,l=t.height,s=t.id,u=Object(X.createElement)("img",{src:r,alt:n,className:s?"wp-image-".concat(s):null,width:i,height:l});return Object(X.createElement)("figure",{className:o?"align".concat(o):null},a?Object(X.createElement)("a",{href:a},u):u,!K.RichText.isEmpty(c)&&Object(X.createElement)(K.RichText.Content,{tagName:"figcaption",value:c}))}},{attributes:ke,save:function(e){var t=e.attributes,r=t.url,n=t.alt,c=t.caption,o=t.align,a=t.href,i=t.width,l=t.height,s=i||l?{width:i,height:l}:{},u=Object(X.createElement)("img",Object(ue.a)({src:r,alt:n},s)),b={};return i?b={width:i}:"left"!==o&&"right"!==o||(b={maxWidth:"50%"}),Object(X.createElement)("figure",{className:o?"align".concat(o):null,style:b},a?Object(X.createElement)("a",{href:a},u):u,!K.RichText.isEmpty(c)&&Object(X.createElement)(K.RichText.Content,{tagName:"figcaption",value:c}))}}],Ce=r(41),xe=r(10),Se=r(31),Pe=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ee.Path,{d:"M17.5 7v8H19V7c0-1.1-.9-2-2-2H9v1.5h8c.3 0 .5.2.5.5zM7 17.5c-.3 0-.5-.2-.5-.5V1H5v4H1v1.5h4V17c0 1.1.9 2 2 2h10.5v4H19v-4h4v-1.5H7z"})),Be=r(217),Te=[{ratio:"2.33",className:"wp-embed-aspect-21-9"},{ratio:"2.00",className:"wp-embed-aspect-18-9"},{ratio:"1.78",className:"wp-embed-aspect-16-9"},{ratio:"1.33",className:"wp-embed-aspect-4-3"},{ratio:"1.00",className:"wp-embed-aspect-1-1"},{ratio:"0.56",className:"wp-embed-aspect-9-16"},{ratio:"0.50",className:"wp-embed-aspect-1-2"}],ze=r(117),Ne=r.n(ze),Me=r(60),Re=r.n(Me);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 Ae(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:[];return t.some((function(t){return e.match(t)}))}(e,r)}))},Le=function(e){return e&&e.includes('class="wp-embedded-content"')},Ie=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.preview,c=e.attributes,o=(c=void 0===c?{}:c).url,a=c.providerNameSlug,i=c.type;if(o&&Object(Y.getBlockType)("core/embed")){var l=He(o),s="wordpress"===a||"wp-embed"===i,u=!s&&l&&(l.attributes.providerNameSlug!==a||!a);if(u)return Object(Y.createBlock)("core/embed",Ae({url:o},l.attributes));var b=null===(t=Object(Y.getBlockVariations)("core/embed"))||void 0===t?void 0:t.find((function(e){return"wordpress"===e.name}));if(b&&n&&Le(n.html)&&!s)return Object(Y.createBlock)("core/embed",Ae(Ae({url:o},b.attributes),r))}},De=function(e){var t=Te.reduce((function(e,t){return e[t.className]=!1,e}),{"wp-has-aspect-ratio":!1});return Ne()(e,t)};function Ge(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!r)return De(t);var n=document.implementation.createHTMLDocument("");n.body.innerHTML=e;var c=n.body.querySelector("iframe");if(c&&c.height&&c.width)for(var o=(c.width/c.height).toFixed(2),a=0;a=i.ratio)return Ne()(De(t),i.className,"wp-has-aspect-ratio")}return t}var Fe=Re()((function(e,t,r,n){var c=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(!e)return{};var o={},a=e.type,i=void 0===a?"rich":a,l=e.html,s=e.provider_name,u=Object(J.kebabCase)((s||t).toLowerCase());return Le(l)&&(i="wp-embed"),(l||"photo"===i)&&(o.type=i,o.providerNameSlug=u),o.className=Ge(l,r,n&&c),o})); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. @@ -21,9 +21,9 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ -var Ge=function(e,t){return(Ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};var We=function(){return(We=Object.assign||function(e){for(var t,r=1,n=arguments.length;ru*o?{width:u*o,height:u}:{width:s,height:s/o}}function Ke(e,t,r,n,o){void 0===o&&(o=0);var c=ct(t.width,t.height,o),a=c.width,i=c.height;return{x:Qe(e.x,a,r.width,n),y:Qe(e.y,i,r.height,n)}}function Qe(e,t,r,n){var o=t*n/2-r/2;return Math.min(o,Math.max(e,-o))}function Ye(e,t){return Math.sqrt(Math.pow(e.y-t.y,2)+Math.pow(e.x-t.x,2))}function Je(e,t){return 180*Math.atan2(t.y-e.y,t.x-e.x)/Math.PI}function Xe(e,t,r,n,o,c,a){void 0===c&&(c=0),void 0===a&&(a=!0);var i=a&&0===c?et:tt,l={x:i(100,((t.width-r.width/o)/2-e.x/o)/t.width*100),y:i(100,((t.height-r.height/o)/2-e.y/o)/t.height*100),width:i(100,r.width/t.width*100/o),height:i(100,r.height/t.height*100/o)},s=Math.round(i(t.naturalWidth,l.width*t.naturalWidth/100)),u=Math.round(i(t.naturalHeight,l.height*t.naturalHeight/100)),b=t.naturalWidth>=t.naturalHeight*n?{width:Math.round(u*n),height:u}:{width:s,height:Math.round(s/n)};return{croppedAreaPercentages:l,croppedAreaPixels:We(We({},b),{x:Math.round(i(t.naturalWidth-b.width,l.x*t.naturalWidth/100)),y:Math.round(i(t.naturalHeight-b.height,l.y*t.naturalHeight/100))})}}function et(e,t){return Math.min(e,Math.max(0,t))}function tt(e,t){return t}function rt(e,t,r){var n=t.width/t.naturalWidth,o=function(e,t,r){var n=t.width/t.naturalWidth;if(r)return r.height>r.width?r.height/n/e.height:r.width/n/e.width;var o=e.width/e.height;return t.naturalWidth>=t.naturalHeight*o?t.naturalHeight/e.height:t.naturalWidth/e.width}(e,t,r),c=n*o;return{crop:{x:((t.naturalWidth-e.width)/2-e.x)*c,y:((t.naturalHeight-e.height)/2-e.y)*c},zoom:o}}function nt(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function ot(e,t,r,n,o){var c=Math.cos,a=Math.sin,i=o*Math.PI/180;return[(e-r)*c(i)-(t-n)*a(i)+r,(e-r)*a(i)+(t-n)*c(i)+n]}function ct(e,t,r){var n=e/2,o=t/2,c=[ot(0,0,n,o,r),ot(e,0,n,o,r),ot(e,t,n,o,r),ot(0,t,n,o,r)],a=Math.min.apply(Math,c.map((function(e){return e[0]}))),i=Math.max.apply(Math,c.map((function(e){return e[0]}))),l=Math.min.apply(Math,c.map((function(e){return e[1]})));return{width:i-a,height:Math.max.apply(Math,c.map((function(e){return e[1]})))-l}}function at(){for(var e=[],t=0;t0})).join(" ").trim()}var it=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.imageRef=null,r.videoRef=null,r.containerRef=null,r.styleRef=null,r.containerRect=null,r.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},r.dragStartPosition={x:0,y:0},r.dragStartCrop={x:0,y:0},r.lastPinchDistance=0,r.lastPinchRotation=0,r.rafDragTimeout=null,r.rafPinchTimeout=null,r.wheelTimer=null,r.state={cropSize:null,hasWheelJustStarted:!1},r.preventZoomSafari=function(e){return e.preventDefault()},r.cleanEvents=function(){document.removeEventListener("mousemove",r.onMouseMove),document.removeEventListener("mouseup",r.onDragStopped),document.removeEventListener("touchmove",r.onTouchMove),document.removeEventListener("touchend",r.onDragStopped)},r.clearScrollEvent=function(){r.containerRef&&r.containerRef.removeEventListener("wheel",r.onWheel),r.wheelTimer&&clearTimeout(r.wheelTimer)},r.onMediaLoad=function(){r.computeSizes(),r.emitCropData(),r.setInitialCrop(),r.props.onMediaLoaded&&r.props.onMediaLoaded(r.mediaSize)},r.setInitialCrop=function(){var e=r.props,t=e.initialCroppedAreaPixels,n=e.cropSize;if(t){var o=rt(t,r.mediaSize,n),c=o.crop,a=o.zoom;r.props.onCropChange(c),r.props.onZoomChange&&r.props.onZoomChange(a)}},r.computeSizes=function(){var e,t,n,o,c,a,i=r.imageRef||r.videoRef;if(i&&r.containerRef){r.containerRect=r.containerRef.getBoundingClientRect(),r.mediaSize={width:i.offsetWidth,height:i.offsetHeight,naturalWidth:(null===(e=r.imageRef)||void 0===e?void 0:e.naturalWidth)||(null===(t=r.videoRef)||void 0===t?void 0:t.videoWidth)||0,naturalHeight:(null===(n=r.imageRef)||void 0===n?void 0:n.naturalHeight)||(null===(o=r.videoRef)||void 0===o?void 0:o.videoHeight)||0};var l=r.props.cropSize?r.props.cropSize:$e(i.offsetWidth,i.offsetHeight,r.containerRect.width,r.containerRect.height,r.props.aspect,r.props.rotation);(null===(c=r.state.cropSize)||void 0===c?void 0:c.height)===l.height&&(null===(a=r.state.cropSize)||void 0===a?void 0:a.width)===l.width||r.props.onCropSizeChange&&r.props.onCropSizeChange(l),r.setState({cropSize:l},r.recomputeCropPosition)}},r.onMouseDown=function(e){e.preventDefault(),document.addEventListener("mousemove",r.onMouseMove),document.addEventListener("mouseup",r.onDragStopped),r.onDragStart(t.getMousePoint(e))},r.onMouseMove=function(e){return r.onDrag(t.getMousePoint(e))},r.onTouchStart=function(e){e.preventDefault(),document.addEventListener("touchmove",r.onTouchMove,{passive:!1}),document.addEventListener("touchend",r.onDragStopped),2===e.touches.length?r.onPinchStart(e):1===e.touches.length&&r.onDragStart(t.getTouchPoint(e.touches[0]))},r.onTouchMove=function(e){e.preventDefault(),2===e.touches.length?r.onPinchMove(e):1===e.touches.length&&r.onDrag(t.getTouchPoint(e.touches[0]))},r.onDragStart=function(e){var t,n,o=e.x,c=e.y;r.dragStartPosition={x:o,y:c},r.dragStartCrop=We({},r.props.crop),null===(n=(t=r.props).onInteractionStart)||void 0===n||n.call(t)},r.onDrag=function(e){var t=e.x,n=e.y;r.rafDragTimeout&&window.cancelAnimationFrame(r.rafDragTimeout),r.rafDragTimeout=window.requestAnimationFrame((function(){if(r.state.cropSize&&void 0!==t&&void 0!==n){var e=t-r.dragStartPosition.x,o=n-r.dragStartPosition.y,c={x:r.dragStartCrop.x+e,y:r.dragStartCrop.y+o},a=r.props.restrictPosition?Ke(c,r.mediaSize,r.state.cropSize,r.props.zoom,r.props.rotation):c;r.props.onCropChange(a)}}))},r.onDragStopped=function(){var e,t;r.cleanEvents(),r.emitCropData(),null===(t=(e=r.props).onInteractionEnd)||void 0===t||t.call(e)},r.onWheel=function(e){e.preventDefault();var n=t.getMousePoint(e),o=r.props.zoom-e.deltaY*r.props.zoomSpeed/200;r.setNewZoom(o,n),r.state.hasWheelJustStarted||r.setState({hasWheelJustStarted:!0},(function(){var e,t;return null===(t=(e=r.props).onInteractionStart)||void 0===t?void 0:t.call(e)})),r.wheelTimer&&clearTimeout(r.wheelTimer),r.wheelTimer=window.setTimeout((function(){return r.setState({hasWheelJustStarted:!1},(function(){var e,t;return null===(t=(e=r.props).onInteractionEnd)||void 0===t?void 0:t.call(e)}))}),250)},r.getPointOnContainer=function(e){var t=e.x,n=e.y;if(!r.containerRect)throw new Error("The Cropper is not mounted");return{x:r.containerRect.width/2-(t-r.containerRect.left),y:r.containerRect.height/2-(n-r.containerRect.top)}},r.getPointOnMedia=function(e){var t=e.x,n=e.y,o=r.props,c=o.crop,a=o.zoom;return{x:(t+c.x)/a,y:(n+c.y)/a}},r.setNewZoom=function(e,t){if(r.state.cropSize&&r.props.onZoomChange){var n=r.getPointOnContainer(t),o=r.getPointOnMedia(n),c=Math.min(r.props.maxZoom,Math.max(e,r.props.minZoom)),a={x:o.x*c-n.x,y:o.y*c-n.y},i=r.props.restrictPosition?Ke(a,r.mediaSize,r.state.cropSize,c,r.props.rotation):a;r.props.onCropChange(i),r.props.onZoomChange(c)}},r.emitCropData=function(){if(r.state.cropSize){var e=Xe(r.props.restrictPosition?Ke(r.props.crop,r.mediaSize,r.state.cropSize,r.props.zoom,r.props.rotation):r.props.crop,r.mediaSize,r.state.cropSize,r.getAspect(),r.props.zoom,r.props.rotation,r.props.restrictPosition),t=e.croppedAreaPercentages,n=e.croppedAreaPixels;r.props.onCropComplete&&r.props.onCropComplete(t,n)}},r.recomputeCropPosition=function(){if(r.state.cropSize){var e=r.props.restrictPosition?Ke(r.props.crop,r.mediaSize,r.state.cropSize,r.props.zoom,r.props.rotation):r.props.crop;r.props.onCropChange(e),r.emitCropData()}},r}return function(e,t){function r(){this.constructor=e}Ge(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}(t,e),t.prototype.componentDidMount=function(){window.addEventListener("resize",this.computeSizes),this.containerRef&&(this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.preventZoomSafari),this.containerRef.addEventListener("gesturechange",this.preventZoomSafari)),this.props.disableAutomaticStylesInjection||(this.styleRef=document.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.styleRef.innerHTML=".reactEasyCrop_Container {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n overflow: hidden;\n user-select: none;\n touch-action: none;\n cursor: move;\n}\n\n.reactEasyCrop_Image,\n.reactEasyCrop_Video {\n max-width: 100%;\n max-height: 100%;\n margin: auto;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */\n}\n\n.reactEasyCrop_CropArea {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n border: 1px solid rgba(255, 255, 255, 0.5);\n box-sizing: border-box;\n box-shadow: 0 0 0 9999em;\n color: rgba(0, 0, 0, 0.5);\n overflow: hidden;\n}\n\n.reactEasyCrop_CropAreaRound {\n border-radius: 50%;\n}\n\n.reactEasyCrop_CropAreaGrid::before {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 0;\n bottom: 0;\n left: 33.33%;\n right: 33.33%;\n border-top: 0;\n border-bottom: 0;\n}\n\n.reactEasyCrop_CropAreaGrid::after {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 33.33%;\n bottom: 33.33%;\n left: 0;\n right: 0;\n border-left: 0;\n border-right: 0;\n}\n",document.head.appendChild(this.styleRef)),this.imageRef&&this.imageRef.complete&&this.onMediaLoad()},t.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.computeSizes),this.containerRef&&(this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.containerRef.removeEventListener("gesturechange",this.preventZoomSafari)),this.styleRef&&this.styleRef.remove(),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent()},t.prototype.componentDidUpdate=function(e){var t,r,n,o;e.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):e.aspect!==this.props.aspect?this.computeSizes():e.zoom!==this.props.zoom?this.recomputeCropPosition():(null===(t=e.cropSize)||void 0===t?void 0:t.height)===(null===(r=this.props.cropSize)||void 0===r?void 0:r.height)&&(null===(n=e.cropSize)||void 0===n?void 0:n.width)===(null===(o=this.props.cropSize)||void 0===o?void 0:o.width)||this.computeSizes(),e.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent())},t.prototype.getAspect=function(){var e=this.props,t=e.cropSize,r=e.aspect;return t?t.width/t.height:r},t.prototype.onPinchStart=function(e){var r=t.getTouchPoint(e.touches[0]),n=t.getTouchPoint(e.touches[1]);this.lastPinchDistance=Ye(r,n),this.lastPinchRotation=Je(r,n),this.onDragStart(nt(r,n))},t.prototype.onPinchMove=function(e){var r=this,n=t.getTouchPoint(e.touches[0]),o=t.getTouchPoint(e.touches[1]),c=nt(n,o);this.onDrag(c),this.rafPinchTimeout&&window.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=window.requestAnimationFrame((function(){var e=Ye(n,o),t=r.props.zoom*(e/r.lastPinchDistance);r.setNewZoom(t,c),r.lastPinchDistance=e;var a=Je(n,o),i=r.props.rotation+(a-r.lastPinchRotation);r.props.onRotationChange&&r.props.onRotationChange(i),r.lastPinchRotation=a}))},t.prototype.render=function(){var e=this,t=this.props,r=t.image,n=t.video,o=t.mediaProps,c=t.transform,a=t.crop,i=a.x,l=a.y,s=t.rotation,u=t.zoom,b=t.cropShape,m=t.showGrid,d=t.style,p=d.containerStyle,g=d.cropAreaStyle,h=d.mediaStyle,f=t.classes,v=f.containerClassName,O=f.cropAreaClassName,j=f.mediaClassName;return Ze.a.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(t){return e.containerRef=t},"data-testid":"container",style:p,className:at("reactEasyCrop_Container",v)},r?Ze.a.createElement("img",We({alt:"",className:at("reactEasyCrop_Image",j)},o,{src:r,ref:function(t){return e.imageRef=t},style:We(We({},h),{transform:c||"translate("+i+"px, "+l+"px) rotate("+s+"deg) scale("+u+")"}),onLoad:this.onMediaLoad})):n&&Ze.a.createElement("video",We({autoPlay:!0,loop:!0,muted:!0,className:at("reactEasyCrop_Video",j)},o,{src:n,ref:function(t){return e.videoRef=t},onLoadedMetadata:this.onMediaLoad,style:We(We({},h),{transform:c||"translate("+i+"px, "+l+"px) rotate("+s+"deg) scale("+u+")"}),controls:!1})),this.state.cropSize&&Ze.a.createElement("div",{style:We(We({},g),{width:this.state.cropSize.width,height:this.state.cropSize.height}),"data-testid":"cropper",className:at("reactEasyCrop_CropArea","round"===b&&"reactEasyCrop_CropAreaRound",m&&"reactEasyCrop_CropAreaGrid",O)}))},t.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:3,minZoom:1,cropShape:"rect",showGrid:!0,style:{},classes:{},mediaProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0},t.getMousePoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t.getTouchPoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t}(Ze.a.Component),lt=r(158),st=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M18.5 5.5h-13c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2v-9c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5h-13c-.3 0-.5-.2-.5-.5v-9c0-.3.2-.5.5-.5h13c.3 0 .5.2.5.5v9zM6.5 12H8v-2h2V8.5H6.5V12zm9.5 2h-2v1.5h3.5V12H16v2z"})),ut=r(303),bt=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M15.1 4.8l-3-2.5V4c-4.4 0-8 3.6-8 8 0 3.7 2.5 6.9 6 7.7.3.1.6.1 1 .2l.2-1.5c-.4 0-.7-.1-1.1-.2l-.1.2v-.2c-2.6-.8-4.5-3.3-4.5-6.2 0-3.6 2.9-6.5 6.5-6.5v1.8l3-2.5zM20 11c-.2-1.4-.7-2.7-1.6-3.8l-1.2.8c.7.9 1.1 2 1.3 3.1L20 11zm-1.5 1.8c-.1.5-.2 1.1-.4 1.6s-.5 1-.8 1.5l1.2.9c.4-.5.8-1.1 1-1.8s.5-1.3.5-2l-1.5-.2zm-5.6 5.6l.2 1.5c1.4-.2 2.7-.7 3.8-1.6l-.9-1.1c-.9.7-2 1.1-3.1 1.2z"})),mt=r(45),dt=r.n(mt),pt={position:"bottom right",isAlternate:!0};function gt(e){var t=e.aspectRatios,r=e.isDisabled,n=e.label,o=e.onClick,c=e.value;return Object(J.createElement)(be.MenuGroup,{label:n},t.map((function(e){var t=e.title,n=e.aspect;return Object(J.createElement)(be.MenuItem,{key:n,disabled:r,onClick:function(){o(n)},role:"menuitemradio",isSelected:n===c,icon:n===c?lt.a:void 0},t)})))}function ht(e){var t=e.toggleProps,r=e.isDisabled,n=e.onClick,o=e.value,c=e.defaultValue;return Object(J.createElement)(be.DropdownMenu,{icon:st,label:Object(Y.__)("Aspect Ratio"),popoverProps:pt,toggleProps:t,className:"wp-block-image__aspect-ratio"},(function(e){var t=e.onClose;return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(gt,{isDisabled:r,onClick:function(e){n(e),t()},value:o,aspectRatios:[{title:Object(Y.__)("Original"),aspect:c},{title:Object(Y.__)("Square"),aspect:1}]}),Object(J.createElement)(gt,{label:Object(Y.__)("Landscape"),isDisabled:r,onClick:function(e){n(e),t()},value:o,aspectRatios:[{title:Object(Y.__)("16:10"),aspect:1.6},{title:Object(Y.__)("16:9"),aspect:16/9},{title:Object(Y.__)("4:3"),aspect:4/3},{title:Object(Y.__)("3:2"),aspect:1.5}]}),Object(J.createElement)(gt,{label:Object(Y.__)("Portrait"),isDisabled:r,onClick:function(e){n(e),t()},value:o,aspectRatios:[{title:Object(Y.__)("10:16"),aspect:.625},{title:Object(Y.__)("9:16"),aspect:9/16},{title:Object(Y.__)("3:4"),aspect:3/4},{title:Object(Y.__)("2:3"),aspect:2/3}]}))}))}function ft(e){var t=e.id,r=e.url,n=e.setAttributes,o=e.naturalWidth,c=e.naturalHeight,a=e.width,i=e.height,l=e.clientWidth,s=e.setIsEditingImage,u=Object(me.useDispatch)("core/notices").createErrorNotice,b=Object(J.useState)(!1),m=Object(ue.a)(b,2),d=m[0],p=m[1],g=Object(J.useState)(null),h=Object(ue.a)(g,2),f=h[0],v=h[1],O=Object(J.useState)({x:0,y:0}),j=Object(ue.a)(O,2),y=j[0],w=j[1],_=Object(J.useState)(100),k=Object(ue.a)(_,2),C=k[0],E=k[1],x=Object(J.useState)(o/c),S=Object(ue.a)(x,2),P=S[0],T=S[1],B=Object(J.useState)(0),z=Object(ue.a)(B,2),N=z[0],M=z[1],R=Object(J.useState)(),A=Object(ue.a)(R,2),I=A[0],H=A[1],L=a,V=i||l*c/o,D=o/c;return N%180==90&&(V=l*o/c,D=c/o),Object(J.createElement)(J.Fragment,null,Object(J.createElement)("div",{className:re()("wp-block-image__crop-area",{"is-applying":d}),style:{width:L,height:V}},Object(J.createElement)(it,{image:I||r,disabled:d,minZoom:1,maxZoom:3,crop:y,zoom:C/100,aspect:P,onCropChange:w,onCropComplete:function(e){v(e)},onZoomChange:function(e){E(100*e)}}),d&&Object(J.createElement)(be.Spinner,null)),Object(J.createElement)($.BlockControls,null,Object(J.createElement)(be.ToolbarGroup,null,Object(J.createElement)(be.Dropdown,{contentClassName:"wp-block-image__zoom",popoverProps:pt,renderToggle:function(e){var t=e.isOpen,r=e.onToggle;return Object(J.createElement)(be.ToolbarButton,{icon:ut.a,label:Object(Y.__)("Zoom"),onClick:r,"aria-expanded":t,disabled:d})},renderContent:function(){return Object(J.createElement)(be.RangeControl,{min:100,max:300,value:Math.round(C),onChange:E})}}),Object(J.createElement)(be.ToolbarItem,null,(function(e){return Object(J.createElement)(ht,{toggleProps:e,isDisabled:d,onClick:T,value:P,defaultValue:o/c})}))),Object(J.createElement)(be.ToolbarGroup,null,Object(J.createElement)(be.ToolbarButton,{icon:bt,label:Object(Y.__)("Rotate"),onClick:function(){var e=(N+90)%360;if(0===e)return H(),M(e),T(1/P),void w({x:-y.y*D,y:y.x*D});var t=new window.Image;t.src=r,t.onload=function(t){var r=document.createElement("canvas"),n=0,o=0;e%180?(r.width=t.target.height,r.height=t.target.width):(r.width=t.target.width,r.height=t.target.height),90!==e&&180!==e||(n=r.width),270!==e&&180!==e||(o=r.height);var c=r.getContext("2d");c.translate(n,o),c.rotate(e*Math.PI/180),c.drawImage(t.target,0,0),r.toBlob((function(t){H(URL.createObjectURL(t)),M(e),T(1/P),w({x:-y.y*D,y:y.x*D})}))}},disabled:d})),Object(J.createElement)(be.ToolbarGroup,null,Object(J.createElement)(be.ToolbarButton,{onClick:function(){p(!0);var e={};(f.width<99.9||f.height<99.9)&&(e=f),N>0&&(e.rotation=N),e.src=r,dt()({path:"/wp/v2/media/".concat(t,"/edit"),method:"POST",data:e}).then((function(e){n({id:e.id,url:e.source_url,height:i&&a?a/P:void 0})})).catch((function(e){u(Object(Y.sprintf)(Object(Y.__)("Could not edit image. %s"),e.message),{id:"image-editing-error",type:"snackbar"})})).finally((function(){p(!1),s(!1)}))},disabled:d},Object(Y.__)("Apply")),Object(J.createElement)(be.ToolbarButton,{onClick:function(){return s(!1)}},Object(Y.__)("Cancel")))))}var vt=["image"];function Ot(e){var t=e.attributes,r=t.url,n=void 0===r?"":r,o=t.alt,c=t.caption,a=t.align,i=t.id,l=t.href,s=t.rel,u=t.linkClass,b=t.linkDestination,m=t.title,d=t.width,p=t.height,g=t.linkTarget,h=t.sizeSlug,f=e.setAttributes,v=e.isSelected,O=e.insertBlocksAfter,j=e.onReplace,y=e.onSelectImage,w=e.onSelectURL,_=e.onUploadError,k=e.containerRef,C=Object(J.useRef)(),E=Object(xe.usePrevious)(n),x=Object(me.useSelect)((function(e){var t=e("core").getMedia;return i&&v?t(i):null}),[i,v]),S=Object(me.useSelect)((function(e){var t=e("core/block-editor").getSettings;return Object(Q.pick)(t(),["imageEditing","imageSizes","isRTL","maxWidth","mediaUpload"])})),P=S.imageEditing,T=S.imageSizes,B=S.isRTL,z=S.maxWidth,N=S.mediaUpload,M=Object(me.useDispatch)("core/block-editor").toggleSelection,R=Object(me.useDispatch)("core/notices"),A=R.createErrorNotice,I=R.createSuccessNotice,H=Object(xe.useViewportMatch)("medium"),L=Object(J.useState)(!1),V=Object(ue.a)(L,2),D=V[0],F=V[1],U=Object(Q.includes)(["wide","full"],a),G=Object(J.useState)({}),W=Object(ue.a)(G,2),q=W[0],Z=q.naturalWidth,X=q.naturalHeight,ee=W[1],te=Object(J.useState)(!1),re=Object(ue.a)(te,2),ne=re[0],oe=re[1],ce=Object(J.useState)(),ae=Object(ue.a)(ce,2),ie=ae[0],le=ae[1],se=function(e,t){var r=Object(J.useState)(),n=Object(ue.a)(r,2),o=n[0],c=n[1];function a(){c(e.current.clientWidth)}return Object(J.useEffect)(a,t),Object(J.useEffect)((function(){var t=e.current.ownerDocument.defaultView;return t.addEventListener("resize",a),function(){t.removeEventListener("resize",a)}}),[]),o}(k,[a]),de=!U&&H,pe=Object(Q.map)(Object(Q.filter)(T,(function(e){var t=e.slug;return Object(Q.get)(x,["media_details","sizes",t,"source_url"])})),(function(e){var t=e.name;return{value:e.slug,label:t}}));Object(J.useEffect)((function(){v||F(!1)}),[v]),Object(J.useEffect)((function(){_t(i,n)&&v&&!ie&&window.fetch(n).then((function(e){return e.blob()})).then((function(e){return le(e)}))}),[i,n,v,ie]),Object(J.useEffect)((function(){n&&!E&&v&&C.current.focus()}),[n,E]),Object(J.useEffect)((function(){v||oe(!1)}),[v]);var ge,he=i&&Z&&X&&P,fe=Object(J.createElement)(J.Fragment,null,Object(J.createElement)($.BlockControls,null,!ne&&Object(J.createElement)(be.ToolbarGroup,null,Object(J.createElement)($.__experimentalImageURLInputUI,{url:l||"",onChangeUrl:function(e){f(e)},linkDestination:b,mediaUrl:x&&x.source_url,mediaLink:x&&x.link,linkTarget:g,linkClass:u,rel:s})),he&&!ne&&Object(J.createElement)(be.ToolbarGroup,null,Object(J.createElement)(be.ToolbarButton,{onClick:function(){return oe(!0)},icon:Pe,label:Object(Y.__)("Crop")})),ie&&Object(J.createElement)(be.ToolbarGroup,null,Object(J.createElement)(be.ToolbarButton,{onClick:function(){N({filesList:[ie],onFileChange:function(e){var t=Object(ue.a)(e,1)[0];y(t),Object(Ee.isBlobURL)(t.url)||(le(),I(Object(Y.__)("Image uploaded."),{type:"snackbar"}))},allowedTypes:vt,onError:function(e){A(e,{type:"snackbar"})}})},icon:Te.a,label:Object(Y.__)("Upload external image")})),!ne&&Object(J.createElement)($.MediaReplaceFlow,{mediaId:i,mediaURL:n,allowedTypes:vt,accept:"image/*",onSelect:y,onSelectURL:w,onError:_})),Object(J.createElement)($.InspectorControls,null,Object(J.createElement)(be.PanelBody,{title:Object(Y.__)("Image settings")},Object(J.createElement)(be.TextareaControl,{label:Object(Y.__)("Alt text (alternative text)"),value:o,onChange:function(e){f({alt:e})},help:Object(J.createElement)(J.Fragment,null,Object(J.createElement)(be.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},Object(Y.__)("Describe the purpose of the image")),Object(Y.__)("Leave empty if the image is purely decorative."))}),Object(J.createElement)($.__experimentalImageSizeControl,{onChangeImage:function(e){var t=Object(Q.get)(x,["media_details","sizes",e,"source_url"]);if(!t)return null;f({url:t,width:void 0,height:void 0,sizeSlug:e})},onChange:function(e){return f(e)},slug:h,width:d,height:p,imageSizeOptions:pe,isResizable:de,imageWidth:Z,imageHeight:X}))),Object(J.createElement)($.InspectorAdvancedControls,null,Object(J.createElement)(be.TextControl,{label:Object(Y.__)("Title attribute"),value:m||"",onChange:function(e){f({title:e})},help:Object(J.createElement)(J.Fragment,null,Object(Y.__)("Describe the role of this image on the page."),Object(J.createElement)(be.ExternalLink,{href:"https://www.w3.org/TR/html52/dom.html#the-title-attribute"},Object(Y.__)("(Note: many devices and browsers do not display this text.)")))}))),ve=function(e){var t=Object(Se.getPath)(e);if(t)return Object(Q.last)(t.split("/"))}(n);ge=o||(ve?Object(Y.sprintf)(Object(Y.__)("This image has an empty alt attribute; its file name is %s"),ve):Object(Y.__)("This image has an empty alt attribute"));var Oe,je,ye=Object(J.createElement)(J.Fragment,null,Object(J.createElement)("img",{src:n,alt:ge,onClick:function(){D&&F(!1)},onError:function(){var e;void 0!==(e=Ve({attributes:{url:n}}))&&j(e)},onLoad:function(e){ee(Object(Q.pick)(e.target,["naturalWidth","naturalHeight"]))}}),Object(Ee.isBlobURL)(n)&&Object(J.createElement)(be.Spinner,null));if(se&&Z&&X){var we=Z>se;Oe=we?se:Z,je=we?se*(X/Z):X}if(he&&ne)ye=Object(J.createElement)(ft,{id:i,url:n,setAttributes:f,naturalWidth:Z,naturalHeight:X,width:d,height:p,clientWidth:se,setIsEditingImage:oe});else if(de&&Oe){var _e=d||Oe,ke=p||je,Ce=Z/X,Be=Z a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number"},width:{type:"number"},height:{type:"number"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0,lightBlockWrapper:!0}},Bt=Tt.name,zt={title:Object(Y.__)("Image"),description:Object(Y.__)("Insert an image to make a visual statement."),icon:_e,keywords:["img",Object(Y.__)("photo"),Object(Y.__)("picture")],example:{attributes:{sizeSlug:"large",url:"https://s.w.org/images/core/5.3/MtBlanc1.jpg",caption:Object(Y.__)("Mont Blanc appears—still, snowy, and serene.")}},styles:[{name:"default",label:Object(Y._x)("Default","block style"),isDefault:!0},{name:"rounded",label:Object(Y._x)("Rounded","block style")}],__experimentalLabel:function(e,t){if("accessibility"===t.context){var r=e.caption,n=e.alt;return e.url?n?n+(r?". "+r:""):r||"":Object(Y.__)("Empty")}},getEditWrapperProps:function(e){return{"data-align":e.align}},transforms:Pt,edit:kt,save:function(e){var t,r=e.attributes,n=r.url,o=r.alt,c=r.caption,a=r.align,i=r.href,l=r.rel,s=r.linkClass,u=r.width,b=r.height,m=r.id,d=r.linkTarget,p=r.sizeSlug,g=r.title,h=Object(Q.isEmpty)(l)?void 0:l,f=re()((t={},Object(Z.a)(t,"align".concat(a),a),Object(Z.a)(t,"size-".concat(p),p),Object(Z.a)(t,"is-resized",u||b),t)),v=Object(J.createElement)("img",{src:n,alt:o,className:m?"wp-image-".concat(m):null,width:u,height:b,title:g}),O=Object(J.createElement)(J.Fragment,null,i?Object(J.createElement)("a",{className:s,href:i,target:d,rel:h},v):v,!$.RichText.isEmpty(c)&&Object(J.createElement)($.RichText.Content,{tagName:"figcaption",value:c}));return"left"===a||"right"===a||"center"===a?Object(J.createElement)("div",null,Object(J.createElement)("figure",{className:f},O)):Object(J.createElement)("figure",{className:f},O)},deprecated:Ce},Nt=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M6.2 5.2v13.4l5.8-4.8 5.8 4.8V5.2z"}));function Mt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Rt(e){for(var t=1;t".concat(t,"

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

    ".concat(e,"

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

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

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

    "===t)return Object(K.createBlock)("core/heading",{content:r});var o=Object(ar.split)(Object(ar.create)({html:t,multilineTag:"p"}),"\u2028"),c=Object(K.createBlock)("core/heading",{content:Object(ar.toHTMLString)({value:o[0]})});if(!r&&1===o.length)return c;var a=o.slice(1);return[c,Object(K.createBlock)("core/quote",lr(lr({},n),{},{citation:r,value:Object(ar.toHTMLString)({value:a.length?Object(ar.join)(o.slice(1),"\u2028"):Object(ar.create)(),multilineTag:"p"})}))]}},{type:"block",blocks:["core/pullquote"],transform:function(e){var t=e.value,r=e.citation,n=e.anchor;return Object(K.createBlock)("core/pullquote",{value:t,citation:r,anchor:n})}}]};function ur(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function br(e){for(var t=1;t"+Object(Y.__)("In quoting others, we cite ourselves.")+"

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

    "!==r?{value:e.value+r,citation:n}:{citation:n})},deprecated:rr},gr=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.Path,{d:"M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8h-1.5zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zM4.5 4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1V12l-2.3-1.7c-.3-.2-.6-.2-.9 0l-2.9 2.1L8 11.3c-.2-.1-.5-.1-.7 0l-2.9 1.5V4.6zm0 11.8v-1.8l3.2-1.7 2.4 1.2c.2.1.5.1.8-.1l2.8-2 2.8 2v2.5c0 .1-.1.1-.1.1H4.6c0-.1-.1-.2-.1-.2z"}));function hr(e){return Math.min(3,e.images.length)}var fr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"large",r=Object(Q.pick)(e,["alt","id","link","caption"]);r.url=Object(Q.get)(e,["sizes",t,"url"])||Object(Q.get)(e,["media_details","sizes",t,"source_url"])||e.url;var n=Object(Q.get)(e,["sizes","full","url"])||Object(Q.get)(e,["media_details","sizes","full","source_url"]);return n&&(r.fullUrl=n),r};function vr(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 Or(e){for(var t=1;t0&&Object(J.createElement)($.RichText.Content,{tagName:"figcaption",value:e.caption})))})))}},{attributes:{images:{type:"array",default:[],source:"query",selector:"ul.wp-block-gallery .blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},link:{source:"attribute",selector:"img",attribute:"data-link"},caption:{type:"array",source:"children",selector:"figcaption"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},isEligible:function(e){var t=e.images,r=e.ids;return t&&t.length>0&&(!r&&t||r&&t&&r.length!==t.length||Object(Q.some)(t,(function(e,t){return!e&&null!==r[t]||parseInt(e,10)!==r[t]})))},migrate:function(e){return Or(Or({},e),{},{ids:Object(Q.map)(e.images,(function(e){var t=e.id;return t?parseInt(t,10):null}))})},supports:{align:!0},save:function(e){var t=e.attributes,r=t.images,n=t.columns,o=void 0===n?hr(t):n,c=t.imageCrop,a=t.linkTo;return Object(J.createElement)("ul",{className:"columns-".concat(o," ").concat(c?"is-cropped":"")},r.map((function(e){var t;switch(a){case"media":t=e.url;break;case"attachment":t=e.link}var r=Object(J.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-link":e.link,className:e.id?"wp-image-".concat(e.id):null});return Object(J.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(J.createElement)("figure",null,t?Object(J.createElement)("a",{href:t},r):r,e.caption&&e.caption.length>0&&Object(J.createElement)($.RichText.Content,{tagName:"figcaption",value:e.caption})))})))}},{attributes:{images:{type:"array",default:[],source:"query",selector:"div.wp-block-gallery figure.blocks-gallery-image img",query:{url:{source:"attribute",attribute:"src"},alt:{source:"attribute",attribute:"alt",default:""},id:{source:"attribute",attribute:"data-id"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"},align:{type:"string",default:"none"}},supports:{align:!0},save:function(e){var t=e.attributes,r=t.images,n=t.columns,o=void 0===n?hr(t):n,c=t.align,a=t.imageCrop,i=t.linkTo,l=re()("columns-".concat(o),{alignnone:"none"===c,"is-cropped":a});return Object(J.createElement)("div",{className:l},r.map((function(e){var t;switch(i){case"media":t=e.url;break;case"attachment":t=e.link}var r=Object(J.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id});return Object(J.createElement)("figure",{key:e.id||e.url,className:"blocks-gallery-image"},t?Object(J.createElement)("a",{href:t},r):r)})))}}],yr=r(21),wr=r(20),_r=r(15),kr=r(22),Cr=r(23),Er=r(17),xr=r(89),Sr=Object(J.createElement)($.BlockIcon,{icon:gr}),Pr=r(214),Tr=r(213),Br=r(483),zr=r(181);function Nr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Object(Er.a)(e);if(t){var o=Object(Er.a)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Object(Cr.a)(this,r)}}var Mr=function(e){Object(kr.a)(r,e);var t=Nr(r);function r(){var e;return Object(yr.a)(this,r),(e=t.apply(this,arguments)).onSelectImage=e.onSelectImage.bind(Object(_r.a)(e)),e.onSelectCaption=e.onSelectCaption.bind(Object(_r.a)(e)),e.onRemoveImage=e.onRemoveImage.bind(Object(_r.a)(e)),e.bindContainer=e.bindContainer.bind(Object(_r.a)(e)),e.onEdit=e.onEdit.bind(Object(_r.a)(e)),e.onSelectImageFromLibrary=e.onSelectImageFromLibrary.bind(Object(_r.a)(e)),e.onSelectCustomURL=e.onSelectCustomURL.bind(Object(_r.a)(e)),e.state={captionSelected:!1,isEditing:!1},e}return Object(wr.a)(r,[{key:"bindContainer",value:function(e){this.container=e}},{key:"onSelectCaption",value:function(){this.state.captionSelected||this.setState({captionSelected:!0}),this.props.isSelected||this.props.onSelect()}},{key:"onSelectImage",value:function(){this.props.isSelected||this.props.onSelect(),this.state.captionSelected&&this.setState({captionSelected:!1})}},{key:"onRemoveImage",value:function(e){this.container===document.activeElement&&this.props.isSelected&&-1!==[Vt.BACKSPACE,Vt.DELETE].indexOf(e.keyCode)&&(e.stopPropagation(),e.preventDefault(),this.props.onRemove())}},{key:"onEdit",value:function(){this.setState({isEditing:!0})}},{key:"componentDidUpdate",value:function(e){var t=this.props,r=t.isSelected,n=t.image,o=t.url,c=t.__unstableMarkNextChangeAsNotPersistent;n&&!o&&(c(),this.props.setAttributes({url:n.source_url,alt:n.alt_text})),this.state.captionSelected&&!r&&e.isSelected&&this.setState({captionSelected:!1})}},{key:"deselectOnBlur",value:function(){this.props.onDeselect()}},{key:"onSelectImageFromLibrary",value:function(e){var t=this.props,r=t.setAttributes,n=t.id,o=t.url,c=t.alt,a=t.caption,i=t.sizeSlug;if(e&&e.url){var l=fr(e,i);(function(e,t){return!e&&Object(Ee.isBlobURL)(t)})(n,o)&&c&&(l=Object(Q.omit)(l,["alt"])),a&&!Object(Q.get)(l,["caption"])&&(l=Object(Q.omit)(l,["caption"])),r(l),this.setState({isEditing:!1})}}},{key:"onSelectCustomURL",value:function(e){var t=this.props,r=t.setAttributes;e!==t.url&&(r({url:e,id:void 0}),this.setState({isEditing:!1}))}},{key:"render",value:function(){var e,t=this.props,r=t.url,n=t.alt,o=t.id,c=t.linkTo,a=t.link,i=t.isFirstItem,l=t.isLastItem,s=t.isSelected,u=t.caption,b=t.onRemove,m=t.onMoveForward,d=t.onMoveBackward,p=t.setAttributes,g=t["aria-label"],h=this.state.isEditing;switch(c){case"file":e=r;break;case"post":e=a}var f=Object(J.createElement)(J.Fragment,null,Object(J.createElement)("img",{src:r,alt:n,"data-id":o,onClick:this.onSelectImage,onFocus:this.onSelectImage,onKeyDown:this.onRemoveImage,tabIndex:"0","aria-label":g,ref:this.bindContainer}),Object(Ee.isBlobURL)(r)&&Object(J.createElement)(be.Spinner,null)),v=re()({"is-selected":s,"is-transient":Object(Ee.isBlobURL)(r)});return Object(J.createElement)("figure",{className:v},!h&&(e?Object(J.createElement)("a",{href:e},f):f),h&&Object(J.createElement)($.MediaPlaceholder,{labels:{title:Object(Y.__)("Edit gallery image")},icon:_e,onSelect:this.onSelectImageFromLibrary,onSelectURL:this.onSelectCustomURL,accept:"image/*",allowedTypes:["image"],value:{id:o,src:r}}),Object(J.createElement)(be.ButtonGroup,{className:"block-library-gallery-item__inline-menu is-left"},Object(J.createElement)(be.Button,{icon:Pr.a,onClick:i?void 0:d,label:Object(Y.__)("Move image backward"),"aria-disabled":i,disabled:!s}),Object(J.createElement)(be.Button,{icon:Tr.a,onClick:l?void 0:m,label:Object(Y.__)("Move image forward"),"aria-disabled":l,disabled:!s})),Object(J.createElement)(be.ButtonGroup,{className:"block-library-gallery-item__inline-menu is-right"},Object(J.createElement)(be.Button,{icon:Br.a,onClick:this.onEdit,label:Object(Y.__)("Replace image"),disabled:!s}),Object(J.createElement)(be.Button,{icon:zr.a,onClick:b,label:Object(Y.__)("Remove image"),disabled:!s})),!h&&(s||u)&&Object(J.createElement)($.RichText,{tagName:"figcaption",placeholder:s?Object(Y.__)("Write caption…"):null,value:u,isSelected:this.state.captionSelected,onChange:function(e){return p({caption:e})},unstableOnFocus:this.onSelectCaption,inlineToolbar:!0}))}}]),r}(J.Component),Rr=Object(xe.compose)([Object(me.withSelect)((function(e,t){var r=e("core").getMedia,n=t.id;return{image:n?r(parseInt(n,10)):null}})),Object(me.withDispatch)((function(e){return{__unstableMarkNextChangeAsNotPersistent:e("core/block-editor").__unstableMarkNextChangeAsNotPersistent}}))])(Mr);function Ar(e){var t=e.isHidden,r=Object(cr.a)(e,["isHidden"]);return t?Object(J.createElement)(be.VisuallyHidden,Object(se.a)({as:$.RichText},r)):Object(J.createElement)($.RichText,r)}var Ir=function(e){var t,r=e.attributes,n=e.className,o=e.isSelected,c=e.setAttributes,a=e.selectedImage,i=e.mediaPlaceholder,l=e.onMoveBackward,s=e.onMoveForward,u=e.onRemoveImage,b=e.onSelectImage,m=e.onDeselectImage,d=e.onSetImageAttributes,p=e.onFocusGalleryCaption,g=e.insertBlocksAfter,h=r.align,f=r.columns,v=void 0===f?hr(r):f,O=r.caption,j=r.imageCrop,y=r.images;return Object(J.createElement)("figure",{className:re()(n,(t={},Object(Z.a)(t,"align".concat(h),h),Object(Z.a)(t,"columns-".concat(v),v),Object(Z.a)(t,"is-cropped",j),t))},Object(J.createElement)("ul",{className:"blocks-gallery-grid"},y.map((function(e,t){var n=Object(Y.sprintf)(Object(Y.__)("image %1$d of %2$d in gallery"),t+1,y.length);return Object(J.createElement)("li",{className:"blocks-gallery-item",key:e.id||e.url},Object(J.createElement)(Rr,{url:e.url,alt:e.alt,id:e.id,isFirstItem:0===t,isLastItem:t+1===y.length,isSelected:o&&a===t,onMoveBackward:l(t),onMoveForward:s(t),onRemove:u(t),onSelect:b(t),onDeselect:m(t),setAttributes:function(e){return d(t,e)},caption:e.caption,"aria-label":n,sizeSlug:r.sizeSlug}))}))),i,Object(J.createElement)(Ar,{isHidden:!o&&$.RichText.isEmpty(O),tagName:"figcaption",className:"blocks-gallery-caption",placeholder:Object(Y.__)("Write gallery caption…"),value:O,unstableOnFocus:p,onChange:function(e){return c({caption:e})},inlineToolbar:!0,__unstableOnSplitAtEnd:function(){return g(Object(K.createBlock)("core/paragraph"))}}))};function Hr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Lr(e){for(var t=1;t0&&Object(Q.every)(n,(function(e){var t=e.url;return Object(Ee.isBlobURL)(t)}))){var o=Object(Q.map)(n,(function(e){var t=e.url;return Object(Ee.getBlobByURL)(t)}));Object(Q.forEach)(n,(function(e){var t=e.url;return Object(Ee.revokeBlobURL)(t)})),r({filesList:o,onFileChange:this.onSelectImages,allowedTypes:["image"]})}}},{key:"componentDidUpdate",value:function(e){var t,r,n,o,c,a;(!this.props.isSelected&&e.isSelected&&this.setState({selectedImage:null,captionSelected:!1}),this.props.attributes.linkTo)||this.setAttributes({linkTo:(null===(t=window)||void 0===t||null===(r=t.wp)||void 0===r||null===(n=r.media)||void 0===n||null===(o=n.view)||void 0===o||null===(c=o.settings)||void 0===c||null===(a=c.defaultProps)||void 0===a?void 0:a.link)||"none"})}},{key:"render",value:function(){var e=this.props,t=e.attributes,r=e.className,n=e.isSelected,o=e.noticeUI,c=e.insertBlocksAfter,a=t.columns,i=void 0===a?hr(t):a,l=t.imageCrop,s=t.images,u=t.linkTo,b=t.sizeSlug,m=!!s.length,d=Object(J.createElement)($.MediaPlaceholder,{addToGallery:m,isAppender:m,className:r,disableMediaButtons:m&&!n,icon:!m&&Sr,labels:{title:!m&&Object(Y.__)("Gallery"),instructions:!m&&Ur},onSelect:this.onSelectImages,accept:"image/*",allowedTypes:Fr,multiple:!0,value:s,onError:this.onUploadError,notices:m?void 0:o,onFocus:this.props.onFocus});if(!m)return d;var p=this.getImagesSizeOptions(),g=m&&!Object(Q.isEmpty)(p);return Object(J.createElement)(J.Fragment,null,Object(J.createElement)($.InspectorControls,null,Object(J.createElement)(be.PanelBody,{title:Object(Y.__)("Gallery settings")},s.length>1&&Object(J.createElement)(be.RangeControl,Object(se.a)({label:Object(Y.__)("Columns"),value:i,onChange:this.setColumnsNumber,min:1,max:Math.min(8,s.length)},Gr,{required:!0})),Object(J.createElement)(be.ToggleControl,{label:Object(Y.__)("Crop images"),checked:!!l,onChange:this.toggleImageCrop,help:this.getImageCropHelp}),Object(J.createElement)(be.SelectControl,{label:Object(Y.__)("Link to"),value:u,onChange:this.setLinkTo,options:Dr}),g&&Object(J.createElement)(be.SelectControl,{label:Object(Y.__)("Image size"),value:b,options:p,onChange:this.updateImagesSize}))),o,Object(J.createElement)(Ir,Object(se.a)({},this.props,{selectedImage:this.state.selectedImage,mediaPlaceholder:d,onMoveBackward:this.onMoveBackward,onMoveForward:this.onMoveForward,onRemoveImage:this.onRemoveImage,onSelectImage:this.onSelectImage,onDeselectImage:this.onDeselectImage,onSetImageAttributes:this.setImageAttributes,onFocusGalleryCaption:this.onFocusGalleryCaption,insertBlocksAfter:c})))}}]),r}(J.Component),qr=Object(xe.compose)([Object(me.withSelect)((function(e,t){var r=t.attributes.ids,n=t.isSelected,o=e("core").getMedia,c=(0,e("core/block-editor").getSettings)(),a=c.imageSizes,i=c.mediaUpload,l={};return n&&(l=Object(Q.reduce)(r,(function(e,t){if(!t)return e;var r=o(t),n=Object(Q.reduce)(a,(function(e,t){var n=Object(Q.get)(r,["sizes",t.slug,"url"]),o=Object(Q.get)(r,["media_details","sizes",t.slug,"source_url"]);return Lr(Lr({},e),{},Object(Z.a)({},t.slug,n||o))}),{});return Lr(Lr({},e),{},Object(Z.a)({},parseInt(t,10),n))}),{})),{imageSizes:a,mediaUpload:i,resizedImages:l}})),be.withNotices,Object(xr.withViewportMatch)({isNarrow:"< small"})])(Wr);var Zr=function(e){return e?e.split(",").map((function(e){return parseInt(e,10)})):[]},$r={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:function(e){var t=e[0],r=t.align,n=t.sizeSlug;r=Object(Q.every)(e,["align",r])?r:void 0,n=Object(Q.every)(e,["sizeSlug",n])?n:void 0;var o=Object(Q.filter)(e,(function(e){return e.url}));return Object(K.createBlock)("core/gallery",{images:o.map((function(e){var t=e.id,r=e.url,n=e.alt,o=e.caption;return{id:Object(Q.toString)(t),url:r,alt:n,caption:o}})),ids:o.map((function(e){var t=e.id;return parseInt(t,10)})),align:r,sizeSlug:n})}},{type:"shortcode",tag:"gallery",attributes:{images:{type:"array",shortcode:function(e){var t=e.named.ids;return Zr(t).map((function(e){return{id:Object(Q.toString)(e)}}))}},ids:{type:"array",shortcode:function(e){var t=e.named.ids;return Zr(t)}},columns:{type:"number",shortcode:function(e){var t=e.named.columns;return parseInt(void 0===t?"3":t,10)}},linkTo:{type:"string",shortcode:function(e){var t=e.named.link;return void 0===t?"post":t}}},isMatch:function(e){return void 0!==e.named.ids}},{type:"files",isMatch:function(e){return 1!==e.length&&Object(Q.every)(e,(function(e){return 0===e.type.indexOf("image/")}))},transform:function(e){return Object(K.createBlock)("core/gallery",{images:e.map((function(e){return fr({url:Object(Ee.createBlobURL)(e)})}))})}}],to:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.images,r=e.align,n=e.sizeSlug,o=e.ids;return t.length>0?t.map((function(e,t){var c=e.url,a=e.alt,i=e.caption;return Object(K.createBlock)("core/image",{id:o[t],url:c,alt:a,caption:i,align:r,sizeSlug:n})})):Object(K.createBlock)("core/image",{align:r})}}]},Kr={name:"core/gallery",category:"media",attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},fullUrl:{type:"string",source:"attribute",selector:"img",attribute:"data-full-url"},link:{type:"string",source:"attribute",selector:"img",attribute:"data-link"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},id:{type:"string",source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},columns:{type:"number",minimum:1,maximum:8},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string"},sizeSlug:{type:"string",default:"large"}},supports:{anchor:!0,align:!0}},Qr=Kr.name,Yr={title:Object(Y.__)("Gallery"),description:Object(Y.__)("Display multiple images in a rich gallery."),icon:gr,keywords:[Object(Y.__)("images"),Object(Y.__)("photos")],example:{attributes:{columns:2,images:[{url:"https://s.w.org/images/core/5.3/Glacial_lakes%2C_Bhutan.jpg"},{url:"https://s.w.org/images/core/5.3/Sediment_off_the_Yucatan_Peninsula.jpg"}]}},transforms:$r,edit:qr,save:function(e){var t=e.attributes,r=t.images,n=t.columns,o=void 0===n?hr(t):n,c=t.imageCrop,a=t.caption,i=t.linkTo;return Object(J.createElement)("figure",{className:"columns-".concat(o," ").concat(c?"is-cropped":"")},Object(J.createElement)("ul",{className:"blocks-gallery-grid"},r.map((function(e){var t;switch(i){case"file":t=e.fullUrl||e.url;break;case"post":t=e.link}var r=Object(J.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-full-url":e.fullUrl,"data-link":e.link,className:e.id?"wp-image-".concat(e.id):null});return Object(J.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(J.createElement)("figure",null,t?Object(J.createElement)("a",{href:t},r):r,!$.RichText.isEmpty(e.caption)&&Object(J.createElement)($.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))}))),!$.RichText.isEmpty(a)&&Object(J.createElement)($.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:a}))},deprecated:jr},Jr=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.Path,{d:"M19 6.2h-5.9l-.6-1.1c-.3-.7-1-1.1-1.8-1.1H5c-1.1 0-2 .9-2 2v11.8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8.2c0-1.1-.9-2-2-2zm.5 11.6c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h5.8c.2 0 .4.1.4.3l1 2H19c.3 0 .5.2.5.5v9.5zM8 12.8h8v-1.5H8v1.5zm0 3h8v-1.5H8v1.5z"})),Xr=r(86),en=r.n(Xr);var tn={name:"core/archives",category:"widgets",attributes:{displayAsDropdown:{type:"boolean",default:!1},showPostCounts:{type:"boolean",default:!1}},supports:{align:!0,html:!1}},rn=tn.name,nn={title:Object(Y.__)("Archives"),description:Object(Y.__)("Display a monthly archive of your posts."),icon:Jr,example:{},edit:function(e){var t=e.attributes,r=e.setAttributes,n=t.showPostCounts,o=t.displayAsDropdown;return Object(J.createElement)(J.Fragment,null,Object(J.createElement)($.InspectorControls,null,Object(J.createElement)(be.PanelBody,{title:Object(Y.__)("Archives settings")},Object(J.createElement)(be.ToggleControl,{label:Object(Y.__)("Display as dropdown"),checked:o,onChange:function(){return r({displayAsDropdown:!o})}}),Object(J.createElement)(be.ToggleControl,{label:Object(Y.__)("Show post counts"),checked:n,onChange:function(){return r({showPostCounts:!n})}}))),Object(J.createElement)(be.Disabled,null,Object(J.createElement)(en.a,{block:"core/archives",attributes:t})))}},on=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.Path,{d:"M17.7 4.3c-1.2 0-2.8 0-3.8 1-.6.6-.9 1.5-.9 2.6V14c-.6-.6-1.5-1-2.5-1C8.6 13 7 14.6 7 16.5S8.6 20 10.5 20c1.5 0 2.8-1 3.3-2.3.5-.8.7-1.8.7-2.5V7.9c0-.7.2-1.2.5-1.6.6-.6 1.8-.6 2.8-.6h.3V4.3h-.4z"})),cn=[{attributes:{src:{type:"string",source:"attribute",selector:"audio",attribute:"src"},caption:{type:"string",source:"html",selector:"figcaption"},id:{type:"number"},autoplay:{type:"boolean",source:"attribute",selector:"audio",attribute:"autoplay"},loop:{type:"boolean",source:"attribute",selector:"audio",attribute:"loop"},preload:{type:"string",source:"attribute",selector:"audio",attribute:"preload"}},supports:{align:!0},save:function(e){var t=e.attributes,r=t.autoplay,n=t.caption,o=t.loop,c=t.preload,a=t.src;return Object(J.createElement)("figure",null,Object(J.createElement)("audio",{controls:"controls",src:a,autoPlay:r,loop:o,preload:c}),!$.RichText.isEmpty(n)&&Object(J.createElement)($.RichText.Content,{tagName:"figcaption",value:n}))}}],an=["audio"];var ln=Object(be.withNotices)((function(e){var t=e.attributes,r=e.noticeOperations,n=e.setAttributes,o=e.onReplace,c=e.isSelected,a=e.noticeUI,i=e.insertBlocksAfter,l=t.id,s=t.autoplay,u=t.caption,b=t.loop,m=t.preload,d=t.src,p=Object($.__experimentalUseBlockWrapperProps)(),g=Object(me.useSelect)((function(e){return(0,e("core/block-editor").getSettings)().mediaUpload}),[]);function h(e){return function(t){n(Object(Z.a)({},e,t))}}function f(e){if(e!==d){var t=Ve({attributes:{url:e}});if(void 0!==t)return void o(t);n({src:e,id:void 0})}}function v(e){r.removeAllNotices(),r.createErrorNotice(e)}function O(e){e&&e.url?n({src:e.url,id:e.id}):n({src:void 0,id:void 0})}return Object(J.useEffect)((function(){if(!l&&Object(Ee.isBlobURL)(d)){var e=Object(Ee.getBlobByURL)(d);e&&g({filesList:[e],onFileChange:function(e){var t=Object(ue.a)(e,1)[0],r=t.id,o=t.url;n({id:r,src:o})},onError:function(e){n({src:void 0,id:void 0}),r.createErrorNotice(e)},allowedTypes:an})}}),[]),d?Object(J.createElement)(J.Fragment,null,Object(J.createElement)($.BlockControls,null,Object(J.createElement)($.MediaReplaceFlow,{mediaId:l,mediaURL:d,allowedTypes:an,accept:"audio/*",onSelect:O,onSelectURL:f,onError:v})),Object(J.createElement)($.InspectorControls,null,Object(J.createElement)(be.PanelBody,{title:Object(Y.__)("Audio settings")},Object(J.createElement)(be.ToggleControl,{label:Object(Y.__)("Autoplay"),onChange:h("autoplay"),checked:s,help:function(e){return e?Object(Y.__)("Note: Autoplaying audio may cause usability issues for some visitors."):null}}),Object(J.createElement)(be.ToggleControl,{label:Object(Y.__)("Loop"),onChange:h("loop"),checked:b}),Object(J.createElement)(be.SelectControl,{label:Object(Y.__)("Preload"),value:m||"",onChange:function(e){return n({preload:e||void 0})},options:[{value:"",label:Object(Y.__)("Browser default")},{value:"auto",label:Object(Y.__)("Auto")},{value:"metadata",label:Object(Y.__)("Metadata")},{value:"none",label:Object(Y.__)("None")}]}))),Object(J.createElement)("figure",p,Object(J.createElement)(be.Disabled,null,Object(J.createElement)("audio",{controls:"controls",src:d})),(!$.RichText.isEmpty(u)||c)&&Object(J.createElement)($.RichText,{tagName:"figcaption",placeholder:Object(Y.__)("Write caption…"),value:u,onChange:function(e){return n({caption:e})},inlineToolbar:!0,__unstableOnSplitAtEnd:function(){return i(Object(K.createBlock)("core/paragraph"))}}))):Object(J.createElement)("div",p,Object(J.createElement)($.MediaPlaceholder,{icon:Object(J.createElement)($.BlockIcon,{icon:on}),onSelect:O,onSelectURL:f,accept:"audio/*",allowedTypes:an,value:t,notices:a,onError:v}))}));var sn={from:[{type:"files",isMatch:function(e){return 1===e.length&&0===e[0].type.indexOf("audio/")},transform:function(e){var t=e[0];return Object(K.createBlock)("core/audio",{src:Object(Ee.createBlobURL)(t)})}},{type:"shortcode",tag:"audio",attributes:{src:{type:"string",shortcode:function(e){var t=e.named,r=t.src,n=t.mp3,o=t.m4a,c=t.ogg,a=t.wav,i=t.wma;return r||n||o||c||a||i}},loop:{type:"string",shortcode:function(e){return e.named.loop}},autoplay:{type:"string",shortcode:function(e){return e.named.autoplay}},preload:{type:"string",shortcode:function(e){return e.named.preload}}}}]},un={name:"core/audio",category:"media",attributes:{src:{type:"string",source:"attribute",selector:"audio",attribute:"src"},caption:{type:"string",source:"html",selector:"figcaption"},id:{type:"number"},autoplay:{type:"boolean",source:"attribute",selector:"audio",attribute:"autoplay"},loop:{type:"boolean",source:"attribute",selector:"audio",attribute:"loop"},preload:{type:"string",source:"attribute",selector:"audio",attribute:"preload"}},supports:{anchor:!0,align:!0,lightBlockWrapper:!0}},bn=un.name,mn={title:Object(Y.__)("Audio"),description:Object(Y.__)("Embed a simple audio player."),keywords:[Object(Y.__)("music"),Object(Y.__)("sound"),Object(Y.__)("podcast"),Object(Y.__)("recording")],icon:on,transforms:sn,deprecated:cn,edit:ln,save:function(e){var t=e.attributes,r=t.autoplay,n=t.caption,o=t.loop,c=t.preload,a=t.src;return a&&Object(J.createElement)("figure",null,Object(J.createElement)("audio",{controls:"controls",src:a,autoPlay:r,loop:o,preload:c}),!$.RichText.isEmpty(n)&&Object(J.createElement)($.RichText.Content,{tagName:"figcaption",value:n}))}},dn=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.Path,{d:"M19 6.5H5c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7c0-1.1-.9-2-2-2zm.5 9c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v7zM8 13h8v-1.5H8V13z"})),pn={from:[{type:"block",isMultiBlock:!0,blocks:["core/button"],transform:function(e){return Object(K.createBlock)("core/buttons",{},e.map((function(e){return Object(K.createBlock)("core/button",e)})))}}]};function gn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function hn(e){for(var t=1;t2&&void 0!==arguments[2]&&arguments[2],p=e.backgroundColor,g=e.textColor,h=e.gradient,f=e.style,v=Object($.getColorClassName)("background-color",p),O=Object($.__experimentalGetGradientClass)(h),j=Object($.getColorClassName)("color",g),y=re()(j,O,(a={},Object(Z.a)(a,v,!(null==f||null===(r=f.color)||void 0===r?void 0:r.gradient)&&!!v),Object(Z.a)(a,"has-text-color",g||(null==f||null===(n=f.color)||void 0===n?void 0:n.text)),Object(Z.a)(a,"has-background",p||(null==f||null===(o=f.color)||void 0===o?void 0:o.background)||h||(null==f||null===(c=f.color)||void 0===c?void 0:c.gradient)),a)),w=(null==f||null===(i=f.color)||void 0===i?void 0:i.background)||(null==f||null===(l=f.color)||void 0===l?void 0:l.text)||(null==f||null===(s=f.color)||void 0===s?void 0:s.gradient)?{background:(null==f||null===(u=f.color)||void 0===u?void 0:u.gradient)?f.color.gradient:void 0,backgroundColor:(null==f||null===(b=f.color)||void 0===b?void 0:b.background)?f.color.background:void 0,color:(null==f||null===(m=f.color)||void 0===m?void 0:m.text)?f.color.text:void 0}:{};if(d){if(p){var _=Object($.getColorObjectByAttributeValues)(t,p);w.backgroundColor=_.color}if(g){var k=Object($.getColorObjectByAttributeValues)(t,g);w.color=k.color}}return{className:y||void 0,style:w}}function zn(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 Nn(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:null,t=this.props.categories;return t&&t.length?null===e?t:t.filter((function(t){return t.parent===e})):[]}},{key:"getCategoryListClassName",value:function(e){return"wp-block-categories__list wp-block-categories__list-level-".concat(e)}},{key:"renderCategoryName",value:function(e){return e.name?Object(Q.unescape)(e.name).trim():Object(Y.__)("(Untitled)")}},{key:"renderCategoryList",value:function(){var e=this,t=this.props.attributes.showHierarchy?0:null,r=this.getCategories(t);return Object(J.createElement)("ul",{className:this.getCategoryListClassName(0)},r.map((function(t){return e.renderCategoryListItem(t,0)})))}},{key:"renderCategoryListItem",value:function(e,t){var r=this,n=this.props.attributes,o=n.showHierarchy,c=n.showPostCounts,a=this.getCategories(e.id);return Object(J.createElement)("li",{key:e.id},Object(J.createElement)("a",{href:e.link,target:"_blank",rel:"noreferrer noopener"},this.renderCategoryName(e)),c&&Object(J.createElement)("span",{className:"wp-block-categories__post-count"}," ","(",e.count,")"),o&&!!a.length&&Object(J.createElement)("ul",{className:this.getCategoryListClassName(t+1)},a.map((function(e){return r.renderCategoryListItem(e,t+1)}))))}},{key:"renderCategoryDropdown",value:function(){var e=this,t=this.props.instanceId,r=this.props.attributes.showHierarchy?0:null,n=this.getCategories(r),o="blocks-category-select-".concat(t);return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(be.VisuallyHidden,{as:"label",htmlFor:o},Object(Y.__)("Categories")),Object(J.createElement)("select",{id:o,className:"wp-block-categories__dropdown"},n.map((function(t){return e.renderCategoryDropdownItem(t,0)}))))}},{key:"renderCategoryDropdownItem",value:function(e,t){var r=this,n=this.props.attributes,o=n.showHierarchy,c=n.showPostCounts,a=this.getCategories(e.id);return[Object(J.createElement)("option",{key:e.id},Object(Q.times)(3*t,(function(){return" "})),this.renderCategoryName(e),c?" (".concat(e.count,")"):""),o&&!!a.length&&a.map((function(e){return r.renderCategoryDropdownItem(e,t+1)}))]}},{key:"render",value:function(){var e=this.props,t=e.attributes,r=e.isRequesting,n=t.displayAsDropdown,o=t.showHierarchy,c=t.showPostCounts,a=Object(J.createElement)($.InspectorControls,null,Object(J.createElement)(be.PanelBody,{title:Object(Y.__)("Categories settings")},Object(J.createElement)(be.ToggleControl,{label:Object(Y.__)("Display as dropdown"),checked:n,onChange:this.toggleDisplayAsDropdown}),Object(J.createElement)(be.ToggleControl,{label:Object(Y.__)("Show hierarchy"),checked:o,onChange:this.toggleShowHierarchy}),Object(J.createElement)(be.ToggleControl,{label:Object(Y.__)("Show post counts"),checked:c,onChange:this.toggleShowPostCounts})));return r?Object(J.createElement)(J.Fragment,null,a,Object(J.createElement)(be.Placeholder,{icon:io,label:Object(Y.__)("Categories")},Object(J.createElement)(be.Spinner,null))):Object(J.createElement)(J.Fragment,null,a,Object(J.createElement)("div",{className:this.props.className},n?this.renderCategoryDropdown():this.renderCategoryList()))}}]),r}(J.Component),uo=Object(xe.compose)(Object(me.withSelect)((function(e){var t=e("core").getEntityRecords,r=e("core/data").isResolving,n={per_page:-1,hide_empty:!0};return{categories:t("taxonomy","category",n),isRequesting:r("core","getEntityRecords",["taxonomy","category",n])}})),xe.withInstanceId)(so),bo={name:"core/categories",category:"widgets",attributes:{displayAsDropdown:{type:"boolean",default:!1},showHierarchy:{type:"boolean",default:!1},showPostCounts:{type:"boolean",default:!1}},supports:{align:!0,html:!1}},mo=bo.name,po={title:Object(Y.__)("Categories"),description:Object(Y.__)("Display a list of all categories."),icon:ao,example:{},edit:uo},go=r(316);function ho(e){return e.replace(/\[/g,"[")}function fo(e){return e.replace(/^(\s*https?:)\/\/([^\s<>"]+\s*)$/m,"$1//$2")}var vo={from:[{type:"enter",regExp:/^```$/,transform:function(){return Object(K.createBlock)("core/code")}},{type:"block",blocks:["core/html"],transform:function(e){var t=e.content;return Object(K.createBlock)("core/code",{content:t})}},{type:"raw",isMatch:function(e){return"PRE"===e.nodeName&&1===e.children.length&&"CODE"===e.firstChild.nodeName},schema:{pre:{children:{code:{children:{"#text":{}}}}}}}]},Oo={name:"core/code",category:"text",attributes:{content:{type:"string",source:"html",selector:"code"}},supports:{anchor:!0,lightBlockWrapper:!0}},jo=Oo.name,yo={title:Object(Y.__)("Code"),description:Object(Y.__)("Display code snippets that respect your spacing and tabs."),icon:go.a,example:{attributes:{content:Object(Y.__)('// A "block" is the abstract term used\n// to describe units of markup that\n// when composed together, form the\n// content or layout of a page.\nregisterBlockType( name, settings );')}},transforms:vo,edit:function(e){var t=e.attributes,r=e.setAttributes,n=Object($.__experimentalUseBlockWrapperProps)();return Object(J.createElement)("pre",n,Object(J.createElement)($.RichText,{tagName:"code",value:t.content,onChange:function(e){return r({content:e})},placeholder:Object(Y.__)("Write code…"),"aria-label":Object(Y.__)("Code")}))},save:function(e){var t,r=e.attributes;return Object(J.createElement)("pre",null,Object(J.createElement)($.RichText.Content,{tagName:"code",value:(t=r.content,Object(Q.flow)(ho,fo)(t||""))}))}},wo=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.Path,{d:"M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-4.1 1.5v10H10v-10h4.9zM5.5 17V8c0-.3.2-.5.5-.5h2.5v10H6c-.3 0-.5-.2-.5-.5zm14 0c0 .3-.2.5-.5.5h-2.6v-10H19c.3 0 .5.2.5.5v9z"}));function _o(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 ko(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,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,c=e},f:function(){try{a||null==r.return||r.return()}finally{if(i)throw c}}}}function Eo(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&void 0!==arguments[1]?arguments[1]:e.length;return Object(Q.sumBy)(e,(function(e){return To(e,t)}))}function zo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length;return e.reduce((function(e,r){var n=To(r,t);return Object.assign(e,Object(Z.a)({},r.clientId,n))}),{})}function No(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,n=Bo(e,r),o=t-n,c=o/e.length;return Object(Q.mapValues)(zo(e,r),(function(e){return Po(e+c)}))}function Mo(e,t){return e.map((function(e){return Object(Q.merge)({},e,{attributes:{width:t[e.clientId]}})}))}var Ro=["core/column"];var Ao=Object(me.withDispatch)((function(e,t,r){return{updateAlignment:function(n){var o=t.clientId,c=t.setAttributes,a=e("core/block-editor").updateBlockAttributes,i=r.select("core/block-editor").getBlockOrder;c({verticalAlignment:n}),i(o).forEach((function(e){a(e,{verticalAlignment:n})}))},updateColumns:function(n,o){var c=t.clientId,a=e("core/block-editor").replaceInnerBlocks,i=(0,r.select("core/block-editor").getBlocks)(c),l=i.every((function(e){return Number.isFinite(e.attributes.width)})),s=o>n;if(s&&l){var u=Po(100/o),b=No(i,100-u);i=[].concat(Object(q.a)(Mo(i,b)),Object(q.a)(Object(Q.times)(o-n,(function(){return Object(K.createBlock)("core/column",{width:u})}))))}else if(s)i=[].concat(Object(q.a)(i),Object(q.a)(Object(Q.times)(o-n,(function(){return Object(K.createBlock)("core/column")}))));else{if(i=Object(Q.dropRight)(i,n-o),l)i=Mo(i,No(i,100))}a(c,i,!1)}}}))((function(e){var t=e.attributes,r=e.updateAlignment,n=e.updateColumns,o=e.clientId,c=t.verticalAlignment,a=Object(me.useSelect)((function(e){return{count:e("core/block-editor").getBlockCount(o)}}),[o]).count,i=re()(Object(Z.a)({},"are-vertically-aligned-".concat(c),c)),l=Object($.__experimentalUseBlockWrapperProps)({className:i});return Object(J.createElement)(J.Fragment,null,Object(J.createElement)($.BlockControls,null,Object(J.createElement)($.BlockVerticalAlignmentToolbar,{onChange:r,value:c})),Object(J.createElement)($.InspectorControls,null,Object(J.createElement)(be.PanelBody,null,Object(J.createElement)(be.RangeControl,{label:Object(Y.__)("Columns"),value:a,onChange:function(e){return n(a,e)},min:2,max:Math.max(6,a)}),a>6&&Object(J.createElement)(be.Notice,{status:"warning",isDismissible:!1},Object(Y.__)("This column count exceeds the recommended amount and may cause visual breakage.")))),Object(J.createElement)($.InnerBlocks,{allowedBlocks:Ro,orientation:"horizontal",__experimentalTagName:"div",__experimentalPassedProps:l,renderAppender:!1}))})),Io=function e(t){return Object(Q.map)(t,(function(t){var r=Object(ue.a)(t,3),n=r[0],o=r[1],c=r[2],a=void 0===c?[]:c;return Object(K.createBlock)(n,o,e(a))}))};function Ho(e){var t=e.clientId,r=e.name,n=e.setAttributes,o=Object(me.useSelect)((function(e){var t=e("core/blocks"),n=t.getBlockVariations,o=t.getBlockType,c=t.getDefaultBlockVariation;return{blockType:o(r),defaultVariation:c(r,"block"),variations:n(r,"block")}}),[r]),c=o.blockType,a=o.defaultVariation,i=o.variations,l=Object(me.useDispatch)("core/block-editor").replaceInnerBlocks,s=Object($.__experimentalUseBlockWrapperProps)();return Object(J.createElement)("div",s,Object(J.createElement)($.__experimentalBlockVariationPicker,{icon:Object(Q.get)(c,["icon","src"]),label:Object(Q.get)(c,["title"]),variations:i,onSelect:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a;e.attributes&&n(e.attributes),e.innerBlocks&&l(t,Io(e.innerBlocks))},allowSkip:!0}))}var Lo=function(e){var t=e.clientId,r=Object(me.useSelect)((function(e){return e("core/block-editor").getBlocks(t).length>0}),[t])?Ao:Ho;return Object(J.createElement)(r,e)};var Vo=[{name:"two-columns-equal",title:Object(Y.__)("50 / 50"),description:Object(Y.__)("Two columns; equal split"),icon:Object(J.createElement)(be.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(be.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H25V34H39ZM23 34H9V14H23V34Z"})),isDefault:!0,innerBlocks:[["core/column"],["core/column"]],scope:["block"]},{name:"two-columns-one-third-two-thirds",title:Object(Y.__)("30 / 70"),description:Object(Y.__)("Two columns; one-third, two-thirds split"),icon:Object(J.createElement)(be.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(be.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H20V34H39ZM18 34H9V14H18V34Z"})),innerBlocks:[["core/column",{width:33.33}],["core/column",{width:66.66}]],scope:["block"]},{name:"two-columns-two-thirds-one-third",title:Object(Y.__)("70 / 30"),description:Object(Y.__)("Two columns; two-thirds, one-third split"),icon:Object(J.createElement)(be.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(be.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H30V34H39ZM28 34H9V14H28V34Z"})),innerBlocks:[["core/column",{width:66.66}],["core/column",{width:33.33}]],scope:["block"]},{name:"three-columns-equal",title:Object(Y.__)("33 / 33 / 33"),description:Object(Y.__)("Three columns; equal split"),icon:Object(J.createElement)(be.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(be.Path,{fillRule:"evenodd",d:"M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM28.5 34h-9V14h9v20zm2 0V14H39v20h-8.5zm-13 0H9V14h8.5v20z"})),innerBlocks:[["core/column"],["core/column"],["core/column"]],scope:["block"]},{name:"three-columns-wider-center",title:Object(Y.__)("25 / 50 / 25"),description:Object(Y.__)("Three columns; wide center column"),icon:Object(J.createElement)(be.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(be.Path,{fillRule:"evenodd",d:"M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM31 34H17V14h14v20zm2 0V14h6v20h-6zm-18 0H9V14h6v20z"})),innerBlocks:[["core/column",{width:25}],["core/column",{width:50}],["core/column",{width:25}]],scope:["block"]}],Do={name:"core/columns",category:"design",attributes:{verticalAlignment:{type:"string"}},supports:{anchor:!0,align:["wide","full"],html:!1,lightBlockWrapper:!0,__experimentalColor:{gradients:!0,linkColor:!0}}},Fo=Do.name,Uo={title:Object(Y.__)("Columns"),icon:wo,description:Object(Y.__)("Add a block that displays content in multiple columns, then add whatever content blocks you’d like."),variations:Vo,example:{innerBlocks:[{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:Object(Y.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent et eros eu felis.")}},{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg"}},{name:"core/paragraph",attributes:{content:Object(Y.__)("Suspendisse commodo neque lacus, a dictum orci interdum et.")}}]},{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:Object(Y.__)("Etiam et egestas lorem. Vivamus sagittis sit amet dolor quis lobortis. Integer sed fermentum arcu, id vulputate lacus. Etiam fermentum sem eu quam hendrerit.")}},{name:"core/paragraph",attributes:{content:Object(Y.__)("Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim.")}}]}]},deprecated:So,edit:Lo,save:function(e){var t=e.attributes.verticalAlignment,r=re()(Object(Z.a)({},"are-vertically-aligned-".concat(t),t));return Object(J.createElement)("div",{className:r||void 0},Object(J.createElement)($.InnerBlocks.Content,null))}},Go=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zM6 17.5c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h3v10H6zm13.5-.5c0 .3-.2.5-.5.5h-3v-10h3c.3 0 .5.2.5.5v9z"}));var Wo=function(e){var t=e.attributes,r=t.verticalAlignment,n=t.width,o=e.setAttributes,c=e.clientId,a=re()("block-core-columns",Object(Z.a)({},"is-vertically-aligned-".concat(r),r)),i=Object(me.useSelect)((function(e){var t=e("core/block-editor"),r=t.getBlockOrder,n=t.getBlockRootClientId;return{hasChildBlocks:r(c).length>0,rootClientId:n(c)}}),[c]),l=i.hasChildBlocks,s=i.rootClientId,u=Object(me.useDispatch)("core/block-editor").updateBlockAttributes,b=Number.isFinite(n),m=Object($.__experimentalUseBlockWrapperProps)({className:a,style:b?{flexBasis:n+"%"}:void 0});return Object(J.createElement)(J.Fragment,null,Object(J.createElement)($.BlockControls,null,Object(J.createElement)($.BlockVerticalAlignmentToolbar,{onChange:function(e){o({verticalAlignment:e}),u(s,{verticalAlignment:null})},value:r})),Object(J.createElement)($.InspectorControls,null,Object(J.createElement)(be.PanelBody,{title:Object(Y.__)("Column settings")},Object(J.createElement)(be.RangeControl,{label:Object(Y.__)("Percentage width"),value:n||"",onChange:function(e){o({width:e})},min:0,max:100,step:.1,required:!0,allowReset:!0,placeholder:void 0===n?Object(Y.__)("Auto"):void 0}))),Object(J.createElement)($.InnerBlocks,{templateLock:!1,renderAppender:l?void 0:$.InnerBlocks.ButtonBlockAppender,__experimentalTagName:"div",__experimentalPassedProps:m}))};var qo={name:"core/column",category:"text",parent:["core/columns"],attributes:{verticalAlignment:{type:"string"},width:{type:"number",min:0,max:100}},supports:{anchor:!0,reusable:!1,html:!1,lightBlockWrapper:!0}},Zo=qo.name,$o={title:Object(Y.__)("Column"),icon:Go,description:Object(Y.__)("A single column within a columns block."),edit:Wo,save:function(e){var t,r=e.attributes,n=r.verticalAlignment,o=r.width,c=re()(Object(Z.a)({},"is-vertically-aligned-".concat(n),n));return Number.isFinite(o)&&(t={flexBasis:o+"%"}),Object(J.createElement)("div",{className:c,style:t},Object(J.createElement)($.InnerBlocks.Content,null))}},Ko=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h6.2v8.9l2.5-3.1 2.5 3.1V4.5h2.2c.4 0 .8.4.8.8v13.4z"}));function Qo(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 Yo={"top left":"is-position-top-left","top center":"is-position-top-center","top right":"is-position-top-right","center left":"is-position-center-left","center center":"is-position-center-center",center:"is-position-center-center","center right":"is-position-center-right","bottom left":"is-position-bottom-left","bottom center":"is-position-bottom-center","bottom right":"is-position-bottom-right"};function Jo(e){return e?{backgroundImage:"url(".concat(e,")")}:{}}var Xo=[{value:"px",label:"px",default:430},{value:"em",label:"em",default:20},{value:"rem",label:"rem",default:20},{value:"vw",label:"vw",default:20},{value:"vh",label:"vh",default:50}];function ec(e){return 0!==e&&50!==e&&e?"has-background-dim-"+10*Math.round(e/10):null}function tc(e){return function(t){if(t&&t.url){var r;if(t.media_type)r="image"===t.media_type?"image":"video";else{if("image"!==t.type&&"video"!==t.type)return;r=t.type}e(function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:50,r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,o=Object(J.useState)(!1),c=Object(ue.a)(o,2),a=c[0],i=c[1];return Object(J.useEffect)((function(){e&&t<=50&&n.current&&fc().getColorAsync(n.current,(function(e){i(e.isDark)}))}),[e,e&&t<=50&&n.current,i]),Object(J.useEffect)((function(){if(t>50||!e){if(!r)return void i(!0);i(bc()(r).isDark())}}),[r,t>50||!e,i]),Object(J.useEffect)((function(){e||r||i(!1)}),[!e&&!r,i]),a}(w,h,s.color,S),T="image"===g,B="video"===g,z=Object(J.useState)(null),N=Object(ue.a)(z,2),M=N[0],R=N[1],A=m.removeAllNotices,I=m.createErrorNotice,H=j?"".concat(O).concat(j):O,L=dc(dc({},T?Jo(w):{}),{},{backgroundColor:s.color,minHeight:M||H||void 0});C&&!w&&(L.background=C),f&&(o="".concat(100*f.x,"% ").concat(100*f.y,"%"),T&&(L.backgroundPosition=o));var V=!!(w||s.color||C),D=B||T&&!v,F=Object(J.createElement)(J.Fragment,null,Object(J.createElement)($.BlockControls,null,V&&Object(J.createElement)(J.Fragment,null,Object(J.createElement)($.__experimentalBlockAlignmentMatrixToolbar,{label:Object(Y.__)("Change content position"),value:d,onChange:function(e){return a({contentPosition:e})}}),Object(J.createElement)($.MediaReplaceFlow,{mediaId:p,mediaURL:w,allowedTypes:pc,accept:"image/*,video/*",onSelect:x}))),Object(J.createElement)($.InspectorControls,null,!!w&&Object(J.createElement)(be.PanelBody,{title:Object(Y.__)("Media settings")},T&&Object(J.createElement)(be.ToggleControl,{label:Object(Y.__)("Fixed background"),checked:v,onChange:function(){a(dc({hasParallax:!v},v?{}:{focalPoint:void 0}))}}),D&&Object(J.createElement)(be.FocalPointPicker,{label:Object(Y.__)("Focal point picker"),url:w,value:f,onChange:function(e){return a({focalPoint:e})}}),Object(J.createElement)(be.PanelRow,null,Object(J.createElement)(be.Button,{isSecondary:!0,isSmall:!0,className:"block-library-cover__reset-button",onClick:function(){return a({url:void 0,id:void 0,backgroundType:void 0,dimRatio:void 0,focalPoint:void 0,hasParallax:void 0})}},Object(Y.__)("Clear Media")))),V&&Object(J.createElement)(J.Fragment,null,Object(J.createElement)(be.PanelBody,{title:Object(Y.__)("Dimensions")},Object(J.createElement)(vc,{value:M||O,unit:j,onChange:function(e){return a({minHeight:e})},onUnitChange:function(e){a({minHeightUnit:e})}})),Object(J.createElement)($.__experimentalPanelColorGradientSettings,{title:Object(Y.__)("Overlay"),initialOpen:!0,settings:[{colorValue:s.color,gradientValue:C,onColorChange:u,onGradientChange:E,label:Object(Y.__)("Color")}]},!!w&&Object(J.createElement)(be.RangeControl,{label:Object(Y.__)("Opacity"),value:h,onChange:function(e){return a({dimRatio:e})},min:0,max:100,required:!0}))))),U=Object($.__experimentalUseBlockWrapperProps)();if(!V){var G=Object(J.createElement)($.BlockIcon,{icon:Ko}),W=Object(Y.__)("Cover");return Object(J.createElement)(J.Fragment,null,F,Object(J.createElement)("div",Object(se.a)({},U,{className:re()("is-placeholder",U.className)}),Object(J.createElement)($.MediaPlaceholder,{icon:G,labels:{title:W,instructions:Object(Y.__)("Upload an image or video file, or pick one from your media library.")},onSelect:x,accept:"image/*,video/*",allowedTypes:pc,notices:l,onError:function(e){A(),I(e)}},Object(J.createElement)("div",{className:"wp-block-cover__placeholder-background-options"},Object(J.createElement)($.ColorPalette,{disableCustomColors:!0,value:s.color,onChange:u,clearable:!1})))))}var q=re()(ec(h),(t={"is-dark-theme":P,"has-background-dim":0!==h,"has-parallax":v},Object(Z.a)(t,s.class,s.class),Object(Z.a)(t,"has-background-gradient",C),Object(Z.a)(t,k,!w&&k),Object(Z.a)(t,"has-custom-content-position",!rc(d)),t),nc(d));return Object(J.createElement)(J.Fragment,null,F,Object(J.createElement)("div",Object(se.a)({},U,{className:re()(q,U.className),style:dc(dc({},L),U.style),"data-url":w}),Object(J.createElement)(hc,{values:null==y||null===(r=y.spacing)||void 0===r?void 0:r.padding,showValues:null==y||null===(n=y.visualizers)||void 0===n?void 0:n.padding}),Object(J.createElement)(jc,{className:"block-library-cover__resize-container",onResizeStart:function(){a({minHeightUnit:"px"}),b(!1)},onResize:R,onResizeStop:function(e){b(!0),a({minHeight:e}),R(null)},showHandle:i}),T&&Object(J.createElement)("img",{ref:S,"aria-hidden":!0,alt:"",style:{display:"none"},src:w}),w&&C&&0!==h&&Object(J.createElement)("span",{"aria-hidden":"true",className:re()("wp-block-cover__gradient-background",k),style:{background:C}}),B&&Object(J.createElement)("video",{ref:S,className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:w,style:{objectPosition:o}}),Object(J.createElement)($.InnerBlocks,{__experimentalTagName:"div",__experimentalPassedProps:{className:"wp-block-cover__inner-container"},template:gc})))}));var wc={from:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.caption,r=e.url,n=e.align,o=e.id,c=e.anchor;return Object(K.createBlock)("core/cover",{title:t,url:r,align:n,id:o,anchor:c})}},{type:"block",blocks:["core/video"],transform:function(e){var t=e.caption,r=e.src,n=e.align,o=e.id,c=e.anchor;return Object(K.createBlock)("core/cover",{title:t,url:r,align:n,id:o,backgroundType:"video",anchor:c})}}],to:[{type:"block",blocks:["core/image"],isMatch:function(e){var t=e.backgroundType,r=e.url,n=e.overlayColor,o=e.customOverlayColor,c=e.gradient,a=e.customGradient;return r?"image"===t:!(n||o||c||a)},transform:function(e){var t=e.title,r=e.url,n=e.align,o=e.id,c=e.anchor;return Object(K.createBlock)("core/image",{caption:t,url:r,align:n,id:o,anchor:c})}},{type:"block",blocks:["core/video"],isMatch:function(e){var t=e.backgroundType,r=e.url,n=e.overlayColor,o=e.customOverlayColor,c=e.gradient,a=e.customGradient;return r?"video"===t:!(n||o||c||a)},transform:function(e){var t=e.title,r=e.url,n=e.align,o=e.id,c=e.anchor;return Object(K.createBlock)("core/video",{caption:t,src:r,id:o,align:n,anchor:c})}}]},_c={name:"core/cover",category:"media",attributes:{url:{type:"string"},id:{type:"number"},hasParallax:{type:"boolean",default:!1},dimRatio:{type:"number",default:50},overlayColor:{type:"string"},customOverlayColor:{type:"string"},backgroundType:{type:"string",default:"image"},focalPoint:{type:"object"},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"}},supports:{anchor:!0,align:!0,html:!1,lightBlockWrapper:!0,__experimentalPadding:!0}},kc=_c.name,Cc={title:Object(Y.__)("Cover"),description:Object(Y.__)("Add an image or video with a text overlay — great for headers."),icon:Ko,example:{attributes:{customOverlayColor:"#065174",dimRatio:40,url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg"},innerBlocks:[{name:"core/paragraph",attributes:{customFontSize:48,content:Object(Y.__)("Snow Patrol"),align:"center"}}]},transforms:wc,save:function(e){var t,r,n=e.attributes,o=n.backgroundType,c=n.gradient,a=n.contentPosition,i=n.customGradient,l=n.customOverlayColor,s=n.dimRatio,u=n.focalPoint,b=n.hasParallax,m=n.overlayColor,d=n.url,p=n.minHeight,g=n.minHeightUnit,h=Object($.getColorClassName)("background-color",m),f=Object($.__experimentalGetGradientClass)(c),v=g?"".concat(p).concat(g):p,O="image"===o,j="video"===o,y=O?Jo(d):{},w={};h||(y.backgroundColor=l),i&&!d&&(y.background=i),y.minHeight=v||void 0,u&&(r="".concat(Math.round(100*u.x),"% ").concat(Math.round(100*u.y),"%"),O&&!b&&(y.backgroundPosition=r),j&&(w.objectPosition=r));var _=re()(ec(s),h,(t={"has-background-dim":0!==s,"has-parallax":b,"has-background-gradient":c||i},Object(Z.a)(t,f,!d&&f),Object(Z.a)(t,"has-custom-content-position",!rc(a)),t),nc(a));return Object(J.createElement)("div",{className:_,style:y},d&&(c||i)&&0!==s&&Object(J.createElement)("span",{"aria-hidden":"true",className:re()("wp-block-cover__gradient-background",f),style:i?{background:i}:void 0}),j&&d&&Object(J.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:d,style:w}),Object(J.createElement)("div",{className:"wp-block-cover__inner-container"},Object(J.createElement)($.InnerBlocks.Content,null)))},edit:yc,deprecated:ic},Ec=function(e){var t=e.blockSupportsResponsive,r=e.showEditButton,n=e.themeSupportsResponsive,o=e.allowResponsive,c=e.getResponsiveHelp,a=e.toggleResponsive,i=e.switchBackToURLInput;return Object(J.createElement)(J.Fragment,null,Object(J.createElement)($.BlockControls,null,Object(J.createElement)(be.ToolbarGroup,null,r&&Object(J.createElement)(be.ToolbarButton,{className:"components-toolbar__control",label:Object(Y.__)("Edit URL"),icon:Br.a,onClick:i}))),n&&t&&Object(J.createElement)($.InspectorControls,null,Object(J.createElement)(be.PanelBody,{title:Object(Y.__)("Media settings"),className:"blocks-responsive"},Object(J.createElement)(be.ToggleControl,{label:Object(Y.__)("Resize for smaller devices"),checked:o,help:c,onChange:a}))))},xc=function(){return Object(J.createElement)("div",{className:"wp-block-embed is-loading"},Object(J.createElement)(be.Spinner,null),Object(J.createElement)("p",null,Object(Y.__)("Embedding…")))},Sc=function(e){var t=e.icon,r=e.label,n=e.value,o=e.onSubmit,c=e.onChange,a=e.cannotEmbed,i=e.fallback,l=e.tryAgain;return Object(J.createElement)(be.Placeholder,{icon:Object(J.createElement)($.BlockIcon,{icon:t,showColors:!0}),label:r,className:"wp-block-embed",instructions:Object(Y.__)("Paste a link to the content you want to display on your site.")},Object(J.createElement)("form",{onSubmit:o},Object(J.createElement)("input",{type:"url",value:n||"",className:"components-placeholder__input","aria-label":r,placeholder:Object(Y.__)("Enter URL to embed here…"),onChange:c}),Object(J.createElement)(be.Button,{isPrimary:!0,type:"submit"},Object(Y._x)("Embed","button label"))),Object(J.createElement)("div",{className:"components-placeholder__learn-more"},Object(J.createElement)(be.ExternalLink,{href:Object(Y.__)("https://wordpress.org/support/article/embeds/")},Object(Y.__)("Learn more about embeds"))),a&&Object(J.createElement)("div",{className:"components-placeholder__error"},Object(J.createElement)("div",{className:"components-placeholder__instructions"},Object(Y.__)("Sorry, this content could not be embedded.")),Object(J.createElement)(be.Button,{isSecondary:!0,onClick:l},Object(Y._x)("Try again","button label"))," ",Object(J.createElement)(be.Button,{isSecondary:!0,onClick:i},Object(Y._x)("Convert to link","button label"))))};function Pc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Object(Er.a)(e);if(t){var o=Object(Er.a)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Object(Cr.a)(this,r)}}var Tc=window,Bc=Tc.FocusEvent,zc=Tc.DOMParser,Nc=function(e){Object(kr.a)(r,e);var t=Pc(r);function r(){var e;return Object(yr.a)(this,r),(e=t.apply(this,arguments)).checkFocus=e.checkFocus.bind(Object(_r.a)(e)),e.node=Object(J.createRef)(),e}return Object(wr.a)(r,[{key:"componentDidMount",value:function(){window.addEventListener("message",this.resizeWPembeds)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("message",this.resizeWPembeds)}},{key:"resizeWPembeds",value:function(e){var t=e.data,r=(t=void 0===t?{}:t).secret,n=t.message,o=t.value;[r,n,o].some((function(e){return!e}))||"height"!==n||document.querySelectorAll('iframe[data-secret="'.concat(r,'"')).forEach((function(e){+e.height!==o&&(e.height=o)}))}},{key:"checkFocus",value:function(){var e=document.activeElement;if("IFRAME"===e.tagName&&e.parentNode===this.node.current){var t=new Bc("focus",{bubbles:!0});e.dispatchEvent(t)}}},{key:"render",value:function(){var e=this.props.html,t=(new zc).parseFromString(e,"text/html"),r=t.querySelector("iframe");r&&r.removeAttribute("style");var n=t.querySelector("blockquote");return n&&(n.style.display="none"),Object(J.createElement)("div",{ref:this.node,className:"wp-block-embed__wrapper",dangerouslySetInnerHTML:{__html:t.body.innerHTML}})}}]),r}(J.Component),Mc=Object(xe.withGlobalEvents)({blur:"checkFocus"})(Nc);function Rc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Object(Er.a)(e);if(t){var o=Object(Er.a)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Object(Cr.a)(this,r)}}var Ac=function(e){Object(kr.a)(r,e);var t=Rc(r);function r(){var e;return Object(yr.a)(this,r),(e=t.apply(this,arguments)).hideOverlay=e.hideOverlay.bind(Object(_r.a)(e)),e.state={interactive:!1},e}return Object(wr.a)(r,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"render",value:function(){var e,t,r,n=this.props,o=n.preview,c=n.previewable,a=n.url,i=n.type,l=n.caption,s=n.onCaptionChange,u=n.isSelected,b=n.className,m=n.icon,d=n.label,p=n.insertBlocksAfter,g=o.scripts,h=this.state.interactive,f="photo"===i?(t=(e=o).thumbnail_url||e.url,r=Object(J.createElement)("p",null,Object(J.createElement)("img",{src:t,alt:e.title,width:"100%"})),Object(J.renderToString)(r)):o.html,v=new URL(a).host.split("."),O=v.splice(v.length-2,v.length-1).join("."),j=Object(Y.sprintf)(Object(Y.__)("Embedded content from %s"),O),y=Ne()(i,b,"wp-block-embed__wrapper"),w="wp-embed"===i?Object(J.createElement)(Mc,{html:f}):Object(J.createElement)("div",{className:"wp-block-embed__wrapper"},Object(J.createElement)(be.SandBox,{html:f,scripts:g,title:j,type:y,onFocus:this.hideOverlay}),!h&&Object(J.createElement)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}));return Object(J.createElement)("figure",{className:Ne()(b,"wp-block-embed",{"is-type-video":"video"===i})},c?w:Object(J.createElement)(be.Placeholder,{icon:Object(J.createElement)($.BlockIcon,{icon:m,showColors:!0}),label:d},Object(J.createElement)("p",{className:"components-placeholder__error"},Object(J.createElement)("a",{href:a},a)),Object(J.createElement)("p",{className:"components-placeholder__error"},Object(Y.sprintf)(Object(Y.__)("Embedded content from %s can't be previewed in the editor."),O))),(!$.RichText.isEmpty(l)||u)&&Object(J.createElement)($.RichText,{tagName:"figcaption",placeholder:Object(Y.__)("Write caption…"),value:l,onChange:s,inlineToolbar:!0,__unstableOnSplitAtEnd:function(){return p(Object(K.createBlock)("core/paragraph"))}}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),r}(J.Component);function Ic(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 Hc(e){for(var t=1;t0},priority:15,transform:function(e){var t=[];return e.forEach((function(e){var r=Object(Ee.createBlobURL)(e);t.push(Object(K.createBlock)("core/file",{href:r,fileName:e.name,textLinkHref:r}))})),t}},{type:"block",blocks:["core/audio"],transform:function(e){return Object(K.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id,anchor:e.anchor})}},{type:"block",blocks:["core/video"],transform:function(e){return Object(K.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id,anchor:e.anchor})}},{type:"block",blocks:["core/image"],transform:function(e){return Object(K.createBlock)("core/file",{href:e.url,fileName:e.caption,textLinkHref:e.url,id:e.id,anchor:e.anchor})}}],to:[{type:"block",blocks:["core/audio"],isMatch:function(e){var t=e.id;if(!t)return!1;var r=(0,Object(me.select)("core").getMedia)(t);return!!r&&Object(Q.includes)(r.mime_type,"audio")},transform:function(e){return Object(K.createBlock)("core/audio",{src:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})}},{type:"block",blocks:["core/video"],isMatch:function(e){var t=e.id;if(!t)return!1;var r=(0,Object(me.select)("core").getMedia)(t);return!!r&&Object(Q.includes)(r.mime_type,"video")},transform:function(e){return Object(K.createBlock)("core/video",{src:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})}},{type:"block",blocks:["core/image"],isMatch:function(e){var t=e.id;if(!t)return!1;var r=(0,Object(me.select)("core").getMedia)(t);return!!r&&Object(Q.includes)(r.mime_type,"image")},transform:function(e){return Object(K.createBlock)("core/image",{url:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})}}]},ha={name:"core/file",category:"media",attributes:{id:{type:"number"},href:{type:"string"},fileName:{type:"string",source:"html",selector:"a:not([download])"},textLinkHref:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"href"},textLinkTarget:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"target"},showDownloadButton:{type:"boolean",default:!0},downloadButtonText:{type:"string",source:"html",selector:"a[download]"}},supports:{anchor:!0,align:!0}},fa=ha.name,va={title:Object(Y.__)("File"),description:Object(Y.__)("Add a link to a downloadable file."),icon:ua,keywords:[Object(Y.__)("document"),Object(Y.__)("pdf"),Object(Y.__)("download")],transforms:ga,edit:pa,save:function(e){var t=e.attributes,r=t.href,n=t.fileName,o=t.textLinkHref,c=t.textLinkTarget,a=t.showDownloadButton,i=t.downloadButtonText;return r&&Object(J.createElement)("div",null,!$.RichText.isEmpty(n)&&Object(J.createElement)("a",{href:o,target:c,rel:!!c&&"noreferrer noopener"},Object(J.createElement)($.RichText.Content,{value:n})),a&&Object(J.createElement)("a",{href:r,className:"wp-block-file__button",download:!0},Object(J.createElement)($.RichText.Content,{value:i})))}},Oa=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.Path,{d:"M4.8 11.4H2.1V9H1v6h1.1v-2.6h2.7V15h1.1V9H4.8v2.4zm1.9-1.3h1.7V15h1.1v-4.9h1.7V9H6.7v1.1zM16.2 9l-1.5 2.7L13.3 9h-.9l-.8 6h1.1l.5-4 1.5 2.8 1.5-2.8.5 4h1.1L17 9h-.8zm3.8 5V9h-1.1v6h3.6v-1H20z"}));function ja(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Object(Er.a)(e);if(t){var o=Object(Er.a)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Object(Cr.a)(this,r)}}var ya=function(e){Object(kr.a)(r,e);var t=ja(r);function r(){var e;return Object(yr.a)(this,r),(e=t.apply(this,arguments)).state={isPreview:!1,styles:[]},e.switchToHTML=e.switchToHTML.bind(Object(_r.a)(e)),e.switchToPreview=e.switchToPreview.bind(Object(_r.a)(e)),e}return Object(wr.a)(r,[{key:"componentDidMount",value:function(){var e=this.props.styles;this.setState({styles:["\n\t\t\thtml,body,:root {\n\t\t\t\tmargin: 0 !important;\n\t\t\t\tpadding: 0 !important;\n\t\t\t\toverflow: visible !important;\n\t\t\t\tmin-height: auto !important;\n\t\t\t}\n\t\t"].concat(Object(q.a)(Object($.transformStyles)(e)))})}},{key:"switchToPreview",value:function(){this.setState({isPreview:!0})}},{key:"switchToHTML",value:function(){this.setState({isPreview:!1})}},{key:"render",value:function(){var e=this,t=this.props,r=t.attributes,n=t.setAttributes,o=this.state,c=o.isPreview,a=o.styles;return Object(J.createElement)("div",{className:"wp-block-html"},Object(J.createElement)($.BlockControls,null,Object(J.createElement)(be.ToolbarGroup,null,Object(J.createElement)(be.ToolbarButton,{className:"components-tab-button",isPressed:!c,onClick:this.switchToHTML},Object(J.createElement)("span",null,"HTML")),Object(J.createElement)(be.ToolbarButton,{className:"components-tab-button",isPressed:c,onClick:this.switchToPreview},Object(J.createElement)("span",null,Object(Y.__)("Preview"))))),Object(J.createElement)(be.Disabled.Consumer,null,(function(t){return c||t?Object(J.createElement)(J.Fragment,null,Object(J.createElement)(be.SandBox,{html:r.content,styles:a}),!e.props.isSelected&&Object(J.createElement)("div",{className:"block-library-html__preview-overlay"})):Object(J.createElement)($.PlainText,{value:r.content,onChange:function(e){return n({content:e})},placeholder:Object(Y.__)("Write HTML…"),"aria-label":Object(Y.__)("HTML")})})))}}]),r}(J.Component),wa=Object(me.withSelect)((function(e){return{styles:(0,e("core/block-editor").getSettings)().styles}}))(ya);var _a={from:[{type:"block",blocks:["core/code"],transform:function(e){var t=e.content;return Object(K.createBlock)("core/html",{content:t})}}]},ka={name:"core/html",category:"widgets",attributes:{content:{type:"string",source:"html"}},supports:{customClassName:!1,className:!1,html:!1}},Ca=ka.name,Ea={title:Object(Y.__)("Custom HTML"),description:Object(Y.__)("Add custom HTML code and preview it as you edit."),icon:Oa,keywords:[Object(Y.__)("embed")],example:{attributes:{content:""+Object(Y.__)("Welcome to the wonderful world of blocks…")+""}},edit:wa,save:function(e){var t=e.attributes;return Object(J.createElement)(J.RawHTML,null,t.content)},transforms:_a},xa=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M4 17h7V6H4v11zm9-10v1.5h7V7h-7zm0 5.5h7V11h-7v1.5zm0 4h7V15h-7v1.5z"})),Sa=Object(J.createElement)(be.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(be.Path,{d:"M18 2l2 4h-2l-2-4h-3l2 4h-2l-2-4h-1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V2zm2 12H10V4.4L11.8 8H20z"}),Object(J.createElement)(be.Path,{d:"M14 20H4V10h3V8H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3h-2z"}),Object(J.createElement)(be.Path,{d:"M5 19h8l-1.59-2H9.24l-.84 1.1L7 16.3 5 19z"})),Pa=["image","video"];function Ta(e,t){return e?{backgroundImage:"url(".concat(e,")"),backgroundPosition:t?"".concat(100*t.x,"% ").concat(100*t.y,"%"):"50% 50%"}:{}}function Ba(e){var t=e.isSelected,r=e.isStackedOnMobile,n=Object(cr.a)(e,["isSelected","isStackedOnMobile"]),o=Object(xe.useViewportMatch)("small","<");return Object(J.createElement)(be.ResizableBox,Object(se.a)({showHandle:t&&(!o||!r)},n))}function za(e){var t=e.mediaId,r=e.mediaUrl,n=e.onSelectMedia;return Object(J.createElement)($.BlockControls,null,Object(J.createElement)($.MediaReplaceFlow,{mediaId:t,mediaURL:r,allowedTypes:Pa,accept:"image/*,video/*",onSelect:n}))}function Na(e){var t=e.className,r=e.noticeOperations,n=e.noticeUI,o=e.onSelectMedia;return Object(J.createElement)($.MediaPlaceholder,{icon:Object(J.createElement)($.BlockIcon,{icon:Sa}),labels:{title:Object(Y.__)("Media area")},className:t,onSelect:o,accept:"image/*,video/*",allowedTypes:Pa,notices:n,onError:function(e){r.removeAllNotices(),r.createErrorNotice(e)}})}var Ma=Object(be.withNotices)((function(e){var t=e.className,r=e.commitWidthChange,n=e.focalPoint,o=e.imageFill,c=e.isSelected,a=e.isStackedOnMobile,i=e.mediaAlt,l=e.mediaId,s=e.mediaPosition,u=e.mediaType,b=e.mediaUrl,m=e.mediaWidth,d=e.onSelectMedia,p=e.onWidthChange,g=Object(me.useDispatch)("core/block-editor").toggleSelection;if(u&&b){var h={right:"left"===s,left:"right"===s},f="image"===u&&o?Ta(b,n):{},v={image:function(){return Object(J.createElement)("img",{src:b,alt:i})},video:function(){return Object(J.createElement)("video",{controls:!0,src:b})}};return Object(J.createElement)(Ba,{as:"figure",className:re()(t,"editor-media-container__resizer"),style:f,size:{width:m+"%"},minWidth:"10%",maxWidth:"100%",enable:h,onResizeStart:function(){g(!1)},onResize:function(e,t,r){p(parseInt(r.style.width))},onResizeStop:function(e,t,n){g(!0),r(parseInt(n.style.width))},axis:"x",isSelected:c,isStackedOnMobile:a},Object(J.createElement)(za,{onSelectMedia:d,mediaUrl:b,mediaId:l}),(v[u]||Q.noop)())}return Object(J.createElement)(Na,e)}));function Ra(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 Aa(e){for(var t=1;tEarns his living
    Noiselessly.")}},{name:"core/paragraph",attributes:{content:Object(Y.__)("— Kobayashi Issa (一茶)")}}]},transforms:qa,edit:Wa,save:function(e){var t,r,n=e.attributes,o=n.isStackedOnMobile,c=n.mediaAlt,a=n.mediaPosition,i=n.mediaType,l=n.mediaUrl,s=n.mediaWidth,u=n.mediaId,b=n.verticalAlignment,m=n.imageFill,d=n.focalPoint,p=n.linkClass,g=n.href,h=n.linkTarget,f=n.rel,v=n.mediaSizeSlug||"full",O=Object(Q.isEmpty)(f)?void 0:f,j=re()((t={},Object(Z.a)(t,"wp-image-".concat(u),u&&"image"===i),Object(Z.a)(t,"size-".concat(v),u&&"image"===i),t)),y=Object(J.createElement)("img",{src:l,alt:c,className:j||null});g&&(y=Object(J.createElement)("a",{className:p,href:g,target:h,rel:O},y));var w,_={image:function(){return y},video:function(){return Object(J.createElement)("video",{controls:!0,src:l})}},k=re()((r={"has-media-on-the-right":"right"===a,"is-stacked-on-mobile":o},Object(Z.a)(r,"is-vertically-aligned-".concat(b),b),Object(Z.a)(r,"is-image-fill",m),r)),C=m?Ta(l,d):{};50!==s&&(w="right"===a?"auto ".concat(s,"%"):"".concat(s,"% auto"));var E={gridTemplateColumns:w};return Object(J.createElement)("div",{className:k,style:E},Object(J.createElement)("figure",{className:"wp-block-media-text__media",style:C},(_[i]||Q.noop)()),Object(J.createElement)("div",{className:"wp-block-media-text__content"},Object(J.createElement)($.InnerBlocks.Content,null)))},deprecated:La},Qa=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12.9c0 .6.5 1.1 1.1 1.1.3 0 .5-.1.8-.3L8.5 17H18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H7.9l-2.4 2.4V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v9z"}));function Ya(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Object(Er.a)(e);if(t){var o=Object(Er.a)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Object(Cr.a)(this,r)}}var Ja=function(e){Object(kr.a)(r,e);var t=Ya(r);function r(){var e;return Object(yr.a)(this,r),(e=t.apply(this,arguments)).setCommentsToShow=e.setCommentsToShow.bind(Object(_r.a)(e)),e.toggleDisplayAvatar=e.createToggleAttribute("displayAvatar"),e.toggleDisplayDate=e.createToggleAttribute("displayDate"),e.toggleDisplayExcerpt=e.createToggleAttribute("displayExcerpt"),e}return Object(wr.a)(r,[{key:"createToggleAttribute",value:function(e){var t=this;return function(){var r=t.props.attributes[e];(0,t.props.setAttributes)(Object(Z.a)({},e,!r))}}},{key:"setCommentsToShow",value:function(e){this.props.setAttributes({commentsToShow:e})}},{key:"render",value:function(){var e=this.props.attributes,t=e.commentsToShow,r=e.displayAvatar,n=e.displayDate,o=e.displayExcerpt;return Object(J.createElement)(J.Fragment,null,Object(J.createElement)($.InspectorControls,null,Object(J.createElement)(be.PanelBody,{title:Object(Y.__)("Latest comments settings")},Object(J.createElement)(be.ToggleControl,{label:Object(Y.__)("Display avatar"),checked:r,onChange:this.toggleDisplayAvatar}),Object(J.createElement)(be.ToggleControl,{label:Object(Y.__)("Display date"),checked:n,onChange:this.toggleDisplayDate}),Object(J.createElement)(be.ToggleControl,{label:Object(Y.__)("Display excerpt"),checked:o,onChange:this.toggleDisplayExcerpt}),Object(J.createElement)(be.RangeControl,{label:Object(Y.__)("Number of comments"),value:t,onChange:this.setCommentsToShow,min:1,max:100,required:!0}))),Object(J.createElement)(be.Disabled,null,Object(J.createElement)(en.a,{block:"core/latest-comments",attributes:this.props.attributes})))}}]),r}(J.Component),Xa={name:"core/latest-comments",category:"widgets",attributes:{commentsToShow:{type:"number",default:5,minimum:1,maximum:100},displayAvatar:{type:"boolean",default:!0},displayDate:{type:"boolean",default:!0},displayExcerpt:{type:"boolean",default:!0}},supports:{align:!0,html:!1}},ei=Xa.name,ti={title:Object(Y.__)("Latest Comments"),description:Object(Y.__)("Display a list of your most recent comments."),icon:Qa,keywords:[Object(Y.__)("recent comments")],example:{},edit:Ja},ri=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12zM7 11h2V9H7v2zm0 4h2v-2H7v2zm3-4h7V9h-7v2zm0 4h7v-2h-7v2z"}));function ni(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 oi(e){for(var t=1;ty?o.slice(0,y):o,z=[{icon:ii,title:Object(Y.__)("List view"),onClick:function(){return r({postLayout:"list"})},isActive:"list"===g},{icon:li,title:Object(Y.__)("Grid view"),onClick:function(){return r({postLayout:"grid"})},isActive:"grid"===g}],N=Object(ai.__experimentalGetSettings)().formats.date;return Object(J.createElement)(J.Fragment,null,P,Object(J.createElement)($.BlockControls,null,Object(J.createElement)(be.ToolbarGroup,{controls:z})),Object(J.createElement)("ul",{className:re()(this.props.className,Object(Z.a)({"wp-block-latest-posts__list":!0,"is-grid":"grid"===g,"has-dates":d,"has-author":p},"columns-".concat(h),"grid"===g))},B.map((function(e,t){var r=Object(Q.invoke)(e,["title","rendered","trim"]),n=e.excerpt.rendered,o=s.find((function(t){return t.id===e.author})),c=document.createElement("div");c.innerHTML=n,n=c.textContent||c.innerText||"";var a=e.featuredImageInfo,i=(a=void 0===a?{}:a).url,l=a.alt,g=re()(Object(Z.a)({"wp-block-latest-posts__featured-image":!0},"align".concat(_),!!_)),h=u&&i,f=h&&Object(J.createElement)("img",{src:i,alt:l,style:{maxWidth:C,maxHeight:E}}),v=w0?i.map((function(e){return e.id})):[],h=u("postType","post",Object(Q.pickBy)({categories:g,author:l,order:c,orderby:a,per_page:o},(function(e){return!Object(Q.isUndefined)(e)}))),f=d.filter((function(e){return"full"!==e.slug})).map((function(e){var t=e.name;return{value:e.slug,label:t}}));return{defaultImageWidth:Object(Q.get)(p,[n,"width"],0),defaultImageHeight:Object(Q.get)(p,[n,"height"],0),imageSizeOptions:f,latestPosts:Array.isArray(h)?h.map((function(e){if(!e.featured_media)return e;var t=b(e.featured_media),r=Object(Q.get)(t,["media_details","sizes",n,"source_url"],null);r||(r=Object(Q.get)(t,"source_url",null));var o={url:r,alt:null==t?void 0:t.alt_text};return ui(ui({},e),{},{featuredImageInfo:o})})):h}}))(pi),hi={name:"core/latest-posts",category:"widgets",attributes:{categories:{type:"array",items:{type:"object"}},selectedAuthor:{type:"number"},postsToShow:{type:"number",default:5},displayPostContent:{type:"boolean",default:!1},displayPostContentRadio:{type:"string",default:"excerpt"},excerptLength:{type:"number",default:55},displayAuthor:{type:"boolean",default:!1},displayPostDate:{type:"boolean",default:!1},postLayout:{type:"string",default:"list"},columns:{type:"number",default:3},order:{type:"string",default:"desc"},orderBy:{type:"string",default:"date"},displayFeaturedImage:{type:"boolean",default:!1},featuredImageAlign:{type:"string",enum:["left","center","right"]},featuredImageSizeSlug:{type:"string",default:"thumbnail"},featuredImageSizeWidth:{type:"number",default:null},featuredImageSizeHeight:{type:"number",default:null},addLinkToFeaturedImage:{type:"boolean",default:!1}},supports:{align:!0,html:!1}},fi=hi.name,vi={title:Object(Y.__)("Latest Posts"),description:Object(Y.__)("Display a list of your most recent posts."),icon:ri,keywords:[Object(Y.__)("recent posts")],example:{},edit:gi,deprecated:ci},Oi=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M4 8.8h8.9V7.2H4v1.6zm0 7h8.9v-1.5H4v1.5zM18 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z"})),ji=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM6 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-7c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})),yi=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M3.8 15.8h8.9v-1.5H3.8v1.5zm0-7h8.9V7.2H3.8v1.6zm14.7-2.1V10h1V5.3l-2.2.7.3 1 .9-.3zm1.2 6.1c-.5-.6-1.2-.5-1.7-.4-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5H20v-1h-.9c.3-.6.8-1.4.9-2.1 0-.3 0-.8-.3-1.1z"})),wi=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM5 6.7V10h1V5.3L3.8 6l.4 1 .8-.3zm-.4 5.7c-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5h2.7v-1h-1c.3-.6.8-1.4.9-2.1.1-.3 0-.8-.2-1.1-.5-.6-1.3-.5-1.7-.4z"})),_i=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M20 5.5H4V4H20V5.5ZM12 12.5H4V11H12V12.5ZM20 20V18.5H4V20H20ZM15.4697 14.9697L18.4393 12L15.4697 9.03033L16.5303 7.96967L20.0303 11.4697L20.5607 12L20.0303 12.5303L16.5303 16.0303L15.4697 14.9697Z"})),ki=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M4 7.2v1.5h16V7.2H4zm8 8.6h8v-1.5h-8v1.5zm-4-4.6l-4 4 4 4 1-1-3-3 3-3-1-1z"})),Ci=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M20 5.5H4V4H20V5.5ZM12 12.5H4V11H12V12.5ZM20 20V18.5H4V20H20ZM20.0303 9.03033L17.0607 12L20.0303 14.9697L18.9697 16.0303L15.4697 12.5303L14.9393 12L15.4697 11.4697L18.9697 7.96967L20.0303 9.03033Z"})),Ei=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M4 7.2v1.5h16V7.2H4zm8 8.6h8v-1.5h-8v1.5zm-8-3.5l3 3-3 3 1 1 4-4-4-4-1 1z"})),xi=function(e){var t=e.setAttributes,r=e.reversed,n=e.start;return Object(J.createElement)($.InspectorControls,null,Object(J.createElement)(be.PanelBody,{title:Object(Y.__)("Ordered list settings")},Object(J.createElement)(be.TextControl,{label:Object(Y.__)("Start value"),type:"number",onChange:function(e){var r=parseInt(e,10);t({start:isNaN(r)?void 0:r})},value:Number.isInteger(n)?n.toString(10):"",step:"1"}),Object(J.createElement)(be.ToggleControl,{label:Object(Y.__)("Reverse list numbering"),checked:r||!1,onChange:function(e){t({reversed:e||void 0})}})))};function Si(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 Pi(e){for(var t=1;t1?n:Object(ar.replace)(n,/\n/g,ar.__UNSTABLE_LINE_SEPARATOR)})),ar.__UNSTABLE_LINE_SEPARATOR),multilineTag:"li"}),anchor:e.anchor})}},{type:"block",blocks:["core/quote","core/pullquote"],transform:function(e){var t=e.value,r=e.anchor;return Object(K.createBlock)("core/list",{values:Object(ar.toHTMLString)({value:Object(ar.create)({html:t,multilineTag:"p"}),multilineTag:"li"}),anchor:r})}},{type:"raw",selector:"ol,ul",schema:function(e){return{ol:zi(e).ol,ul:zi(e).ul}},transform:function(e){var t={ordered:"OL"===e.nodeName,anchor:""===e.id?void 0:e.id};if(t.ordered){var r=e.getAttribute("type");r&&(t.type=r),null!==e.getAttribute("reversed")&&(t.reversed=!0);var n=parseInt(e.getAttribute("start"),10);isNaN(n)||1===n&&!t.reversed||(t.start=n)}return Object(K.createBlock)("core/list",Bi(Bi({},Object(K.getBlockAttributes)("core/list",e.outerHTML)),t))}}].concat(Object(q.a)(["*","-"].map((function(e){return{type:"prefix",prefix:e,transform:function(e){return Object(K.createBlock)("core/list",{values:"
  • ".concat(e,"
  • ")})}}}))),Object(q.a)(["1.","1)"].map((function(e){return{type:"prefix",prefix:e,transform:function(e){return Object(K.createBlock)("core/list",{ordered:!0,values:"
  • ".concat(e,"
  • ")})}}})))),to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.values;return Object(ar.split)(Object(ar.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),ar.__UNSTABLE_LINE_SEPARATOR).map((function(e){return Object(K.createBlock)("core/paragraph",{content:Object(ar.toHTMLString)({value:e})})}))}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.values;return Object(ar.split)(Object(ar.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),ar.__UNSTABLE_LINE_SEPARATOR).map((function(e){return Object(K.createBlock)("core/heading",{content:Object(ar.toHTMLString)({value:e})})}))}},{type:"block",blocks:["core/quote"],transform:function(e){var t=e.values,r=e.anchor;return Object(K.createBlock)("core/quote",{value:Object(ar.toHTMLString)({value:Object(ar.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),multilineTag:"p"}),anchor:r})}},{type:"block",blocks:["core/pullquote"],transform:function(e){var t=e.values,r=e.anchor;return Object(K.createBlock)("core/pullquote",{value:Object(ar.toHTMLString)({value:Object(ar.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),multilineTag:"p"}),anchor:r})}}]};function Mi(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 Ri(e){for(var t=1;tAlice.
  • The White Rabbit.
  • The Cheshire Cat.
  • The Mad Hatter.
  • The Queen of Hearts.
  • "}},transforms:Ni,merge:function(e,t){var r=t.values;return r&&"
  • "!==r?Ri(Ri({},e),{},{values:e.values+r}):e},edit:function(e){var t=e.attributes,r=e.setAttributes,n=e.mergeBlocks,o=e.onReplace,c=e.isSelected,a=t.ordered,i=t.values,l=t.type,s=t.reversed,u=t.start,b=a?"ol":"ul",m=Object(me.useSelect)((function(e){return!!e("core/block-editor").getSettings().isRTL}),[]),d=Object($.__experimentalUseBlockWrapperProps)();return Object(J.createElement)(J.Fragment,null,Object(J.createElement)($.RichText,Object(se.a)({identifier:"values",multiline:"li",__unstableMultilineRootTag:b,tagName:b,onChange:function(e){return r({values:e})},value:i,placeholder:Object(Y.__)("Write list…"),onMerge:n,onSplit:function(e){return Object(K.createBlock)(Ii,Pi(Pi({},t),{},{values:e}))},__unstableOnSplitMiddle:function(){return Object(K.createBlock)("core/paragraph")},onReplace:o,onRemove:function(){return o([])},start:u,reversed:s,type:l},d),(function(e){var t=e.value,n=e.onChange,o=e.onFocus;return Object(J.createElement)(J.Fragment,null,c&&Object(J.createElement)(J.Fragment,null,Object(J.createElement)($.RichTextShortcut,{type:"primary",character:"[",onUse:function(){n(Object(ar.__unstableOutdentListItems)(t))}}),Object(J.createElement)($.RichTextShortcut,{type:"primary",character:"]",onUse:function(){n(Object(ar.__unstableIndentListItems)(t,{type:b}))}}),Object(J.createElement)($.RichTextShortcut,{type:"primary",character:"m",onUse:function(){n(Object(ar.__unstableIndentListItems)(t,{type:b}))}}),Object(J.createElement)($.RichTextShortcut,{type:"primaryShift",character:"m",onUse:function(){n(Object(ar.__unstableOutdentListItems)(t))}})),Object(J.createElement)($.BlockControls,null,Object(J.createElement)(be.ToolbarGroup,{controls:[{icon:m?Oi:ji,title:Object(Y.__)("Convert to unordered list"),isActive:Object(ar.__unstableIsActiveListType)(t,"ul",b),onClick:function(){n(Object(ar.__unstableChangeListType)(t,{type:"ul"})),o(),Object(ar.__unstableIsListRootSelected)(t)&&r({ordered:!1})}},{icon:m?yi:wi,title:Object(Y.__)("Convert to ordered list"),isActive:Object(ar.__unstableIsActiveListType)(t,"ol",b),onClick:function(){n(Object(ar.__unstableChangeListType)(t,{type:"ol"})),o(),Object(ar.__unstableIsListRootSelected)(t)&&r({ordered:!0})}},{icon:m?_i:ki,title:Object(Y.__)("Outdent list item"),shortcut:Object(Y._x)("Backspace","keyboard key"),isDisabled:!Object(ar.__unstableCanOutdentListItems)(t),onClick:function(){n(Object(ar.__unstableOutdentListItems)(t)),o()}},{icon:m?Ci:Ei,title:Object(Y.__)("Indent list item"),shortcut:Object(Y._x)("Space","keyboard key"),isDisabled:!Object(ar.__unstableCanIndentListItems)(t),onClick:function(){n(Object(ar.__unstableIndentListItems)(t,{type:b})),o()}}]})))})),a&&Object(J.createElement)(xi,{setAttributes:r,ordered:a,reversed:s,start:u}))},save:function(e){var t=e.attributes,r=t.ordered,n=t.values,o=t.type,c=t.reversed,a=t.start,i=r?"ol":"ul";return Object(J.createElement)($.RichText.Content,{tagName:i,value:n,type:o,reversed:c,start:a,multiline:"li"})}};var Li=Object(me.withDispatch)((function(e,t){var r=t.clientId,n=t.attributes,o=e("core/block-editor").replaceBlock;return{convertToHTML:function(){o(r,Object(K.createBlock)("core/html",{content:n.originalUndelimitedContent}))}}}))((function(e){var t,r=e.attributes,n=e.convertToHTML,o=r.originalName,c=r.originalUndelimitedContent,a=!!c,i=Object(K.getBlockType)("core/html"),l=[];return a&&i?(t=Object(Y.sprintf)(Object(Y.__)('Your site doesn’t include support for the "%s" block. You can leave this block intact, convert its content to a Custom HTML block, or remove it entirely.'),o),l.push(Object(J.createElement)(be.Button,{key:"convert",onClick:n,isPrimary:!0},Object(Y.__)("Keep as HTML")))):t=Object(Y.sprintf)(Object(Y.__)('Your site doesn’t include support for the "%s" block. You can leave this block intact or remove it entirely.'),o),Object(J.createElement)(J.Fragment,null,Object(J.createElement)($.Warning,{actions:l},t),Object(J.createElement)(J.RawHTML,null,c))}));var Vi={name:"core/missing",category:"text",attributes:{originalName:{type:"string"},originalUndelimitedContent:{type:"string"},originalContent:{type:"string",source:"html"}},supports:{className:!1,customClassName:!1,inserter:!1,html:!1,reusable:!1}},Di=Vi.name,Fi={name:Di,title:Object(Y.__)("Unsupported"),description:Object(Y.__)("Your site doesn’t include support for this block."),__experimentalLabel:function(e,t){if("accessibility"===t.context){var r=e.originalName,n=r?Object(K.getBlockType)(r):void 0;return n?n.settings.title||r:""}},edit:Li,save:function(e){var t=e.attributes;return Object(J.createElement)(J.RawHTML,null,t.originalContent)}},Ui=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.Path,{d:"M4 9v1.5h16V9H4zm12 5.5h4V13h-4v1.5zm-6 0h4V13h-4v1.5zm-6 0h4V13H4v1.5z"})),Gi=Object(Y.__)("Read more");var Wi={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:function(e){return e.dataset&&"core/more"===e.dataset.block},transform:function(e){var t=e.dataset,r=t.customText,n=t.noTeaser,o={};return r&&(o.customText=r),""===n&&(o.noTeaser=!0),Object(K.createBlock)("core/more",o)}}]},qi={name:"core/more",category:"design",attributes:{customText:{type:"string"},noTeaser:{type:"boolean",default:!1}},supports:{customClassName:!1,className:!1,html:!1,multiple:!1}},Zi=qi.name,$i={title:Object(Y._x)("More","block name"),description:Object(Y.__)("Content before this block will be shown in the excerpt on your archives page."),keywords:[Object(Y.__)("read more")],icon:Ui,example:{},__experimentalLabel:function(e,t){if("accessibility"===t.context)return e.customText},transforms:Wi,edit:function(e){var t=e.attributes,r=t.customText,n=t.noTeaser,o=e.insertBlocksAfter,c=e.setAttributes,a={width:"".concat((r||Gi).length+1.2,"em")};return Object(J.createElement)(J.Fragment,null,Object(J.createElement)($.InspectorControls,null,Object(J.createElement)(be.PanelBody,null,Object(J.createElement)(be.ToggleControl,{label:Object(Y.__)("Hide the excerpt on the full content page"),checked:!!n,onChange:function(){return c({noTeaser:!n})},help:function(e){return e?Object(Y.__)("The excerpt is hidden."):Object(Y.__)("The excerpt is visible.")}}))),Object(J.createElement)("div",{className:"wp-block-more"},Object(J.createElement)("input",{"aria-label":Object(Y.__)("Read more link text"),type:"text",value:r,placeholder:Gi,onChange:function(e){c({customText:""!==e.target.value?e.target.value:void 0})},onKeyDown:function(e){e.keyCode===Vt.ENTER&&o([Object(K.createBlock)(Object(K.getDefaultBlockName)())])},style:a})))},save:function(e){var t=e.attributes,r=t.customText,n=t.noTeaser,o=r?"\x3c!--more ".concat(r,"--\x3e"):"\x3c!--more--\x3e",c=n?"\x3c!--noteaser--\x3e":"";return Object(J.createElement)(J.RawHTML,null,Object(Q.compact)([o,c]).join("\n"))}},Ki=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M7.8 6c0-.7.6-1.2 1.2-1.2h6c.7 0 1.2.6 1.2 1.2v3h1.5V6c0-1.5-1.2-2.8-2.8-2.8H9C7.5 3.2 6.2 4.5 6.2 6v3h1.5V6zm8.4 11c0 .7-.6 1.2-1.2 1.2H9c-.7 0-1.2-.6-1.2-1.2v-3H6.2v3c0 1.5 1.2 2.8 2.8 2.8h6c1.5 0 2.8-1.2 2.8-2.8v-3h-1.5v3zM4 11v1h16v-1H4z"}));var Qi={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:function(e){return e.dataset&&"core/nextpage"===e.dataset.block},transform:function(){return Object(K.createBlock)("core/nextpage",{})}}]},Yi={name:"core/nextpage",category:"design",parent:["core/post-content"],supports:{customClassName:!1,className:!1,html:!1}},Ji=Yi.name,Xi={title:Object(Y.__)("Page Break"),description:Object(Y.__)("Separate your content into a multi-page experience."),icon:Ki,keywords:[Object(Y.__)("next page"),Object(Y.__)("pagination")],example:{},transforms:Qi,edit:function(){return Object(J.createElement)("div",{className:"wp-block-nextpage"},Object(J.createElement)("span",null,Object(Y.__)("Page break")))},save:function(){return Object(J.createElement)(J.RawHTML,null,"\x3c!--nextpage--\x3e")}},el=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12zM7 16.5h6V15H7v1.5zm4-4h6V11h-6v1.5zM9 11H7v1.5h2V11zm6 5.5h2V15h-2v1.5z"}));var tl={from:[{type:"block",blocks:["core/code","core/paragraph"],transform:function(e){var t=e.content,r=e.anchor;return Object(K.createBlock)("core/preformatted",{content:t,anchor:r})}},{type:"raw",isMatch:function(e){return"PRE"===e.nodeName&&!(1===e.children.length&&"CODE"===e.firstChild.nodeName)},schema:function(e){return{pre:{children:e.phrasingContentSchema}}}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(K.createBlock)("core/paragraph",e)}},{type:"block",blocks:["core/code"],transform:function(e){return Object(K.createBlock)("core/code",e)}}]},rl={name:"core/preformatted",category:"text",attributes:{content:{type:"string",source:"html",selector:"pre",default:"",__unstablePreserveWhiteSpace:!0}},supports:{anchor:!0,lightBlockWrapper:!0}},nl=rl.name,ol={title:Object(Y.__)("Preformatted"),description:Object(Y.__)("Add text that respects your spacing and tabs, and also allows styling."),icon:el,example:{attributes:{content:Object(Y.__)("EXT. XANADU - FAINT DAWN - 1940 (MINIATURE)\nWindow, very small in the distance, illuminated.\nAll around this is an almost totally black screen. Now, as the camera moves slowly towards the window which is almost a postage stamp in the frame, other forms appear;")}},transforms:tl,edit:function(e){var t=e.attributes,r=e.mergeBlocks,n=e.setAttributes,o=t.content,c=Object($.__experimentalUseBlockWrapperProps)();return Object(J.createElement)($.RichText,Object(se.a)({tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:o,onChange:function(e){n({content:e})},placeholder:Object(Y.__)("Write preformatted text…"),onMerge:r},c))},save:function(e){var t=e.attributes.content;return Object(J.createElement)($.RichText.Content,{tagName:"pre",value:t})},merge:function(e,t){return{content:e.content+t.content}}},cl=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.Path,{d:"M18 8H6c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-4c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v4zM4 4v1.5h16V4H4zm0 16h16v-1.5H4V20z"})),al="is-style-".concat("solid-color");function il(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 ll(e){for(var t=1;t".concat(t,"

    "),anchor:r})}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.value,r=e.citation,n=[];return t&&"

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

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

    "===t)return Object(K.createBlock)("core/heading",{content:r});var o=Object(ar.split)(Object(ar.create)({html:t,multilineTag:"p"}),"\u2028"),c=Object(K.createBlock)("core/heading",{content:Object(ar.toHTMLString)({value:o[0]})});if(!r&&1===o.length)return c;var a=o.slice(1);return[c,Object(K.createBlock)("core/pullquote",hl(hl({},n),{},{citation:r,value:Object(ar.toHTMLString)({value:a.length?Object(ar.join)(o.slice(1),"\u2028"):Object(ar.create)(),multilineTag:"p"})}))]}}]},vl={name:"core/pullquote",category:"text",attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p"},citation:{type:"string",source:"html",selector:"cite",default:""},mainColor:{type:"string"},customMainColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},supports:{anchor:!0,align:["left","right","wide","full"]}},Ol=vl.name,jl={title:Object(Y.__)("Pullquote"),description:Object(Y.__)("Give special visual emphasis to a quote from your text."),icon:cl,example:{attributes:{value:"

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

    ",citation:Object(Y.__)("Matt Mullenweg")}},styles:[{name:"default",label:Object(Y._x)("Default","block style"),isDefault:!0},{name:"solid-color",label:Object(Y.__)("Solid color")}],transforms:fl,edit:pl,save:function(e){var t,r,n=e.attributes,o=n.mainColor,c=n.customMainColor,a=n.textColor,i=n.customTextColor,l=n.value,s=n.citation,u=n.className;if(Object(Q.includes)(u,al)){var b=Object($.getColorClassName)("background-color",o);t=re()(Object(Z.a)({"has-background":b||c},b,b)),r={backgroundColor:b?void 0:c}}else c&&(r={borderColor:c});var m=Object($.getColorClassName)("color",a),d=(a||i)&&re()("has-text-color",Object(Z.a)({},m,m)),p=m?void 0:{color:i};return Object(J.createElement)("figure",{className:t,style:r},Object(J.createElement)("blockquote",{className:d,style:p},Object(J.createElement)($.RichText.Content,{value:l,multiline:!0}),!$.RichText.isEmpty(s)&&Object(J.createElement)($.RichText.Content,{tagName:"cite",value:s})))},deprecated:bl};function yl(e){var t=e.isEditDisabled,r=e.isEditing,n=e.isSaving,o=e.onCancel,c=e.onChangeTitle,a=e.onEdit,i=e.onSave,l=e.title,s=Object(xe.useInstanceId)(yl),u=Object(J.useRef)(),b=Object(J.useRef)(),m=Object(xe.usePrevious)(r),d=Object(xe.usePrevious)(n);return Object(J.useEffect)((function(){!m&&r&&u.current.select()}),[r]),Object(J.useEffect)((function(){!m&&!d||r||n||b.current.focus()}),[r,n]),Object(J.createElement)(J.Fragment,null,!r&&!n&&Object(J.createElement)("div",{className:"reusable-block-edit-panel"},Object(J.createElement)("b",{className:"reusable-block-edit-panel__info"},l),Object(J.createElement)(be.Button,{ref:b,isSecondary:!0,className:"reusable-block-edit-panel__button",disabled:t,onClick:a},Object(Y.__)("Edit"))),(r||n)&&Object(J.createElement)("form",{className:"reusable-block-edit-panel",onSubmit:function(e){e.preventDefault(),i()}},Object(J.createElement)("label",{htmlFor:"reusable-block-edit-panel__title-".concat(s),className:"reusable-block-edit-panel__label"},Object(Y.__)("Name:")),Object(J.createElement)("input",{ref:u,type:"text",disabled:n,className:"reusable-block-edit-panel__title",value:l,onChange:function(e){c(e.target.value)},onKeyDown:function(e){e.keyCode===Vt.ESCAPE&&(e.stopPropagation(),o())},id:"reusable-block-edit-panel__title-".concat(s)}),Object(J.createElement)(be.Button,{type:"submit",isSecondary:!0,isBusy:n,disabled:!l||n,className:"reusable-block-edit-panel__button"},Object(Y.__)("Save"))))}function wl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Object(Er.a)(e);if(t){var o=Object(Er.a)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Object(Cr.a)(this,r)}}var _l=function(e){Object(kr.a)(r,e);var t=wl(r);function r(e){var n,o=e.reusableBlock;return Object(yr.a)(this,r),(n=t.apply(this,arguments)).startEditing=n.startEditing.bind(Object(_r.a)(n)),n.stopEditing=n.stopEditing.bind(Object(_r.a)(n)),n.setBlocks=n.setBlocks.bind(Object(_r.a)(n)),n.setTitle=n.setTitle.bind(Object(_r.a)(n)),n.save=n.save.bind(Object(_r.a)(n)),n.state=o?{isEditing:o.isTemporary,title:o.title,blocks:Object(K.parse)(o.content)}:{isEditing:!1,title:null,blocks:[]},n}return Object(wr.a)(r,[{key:"componentDidMount",value:function(){this.props.reusableBlock||this.props.fetchReusableBlock()}},{key:"componentDidUpdate",value:function(e){e.reusableBlock!==this.props.reusableBlock&&null===this.state.title&&this.setState({title:this.props.reusableBlock.title,blocks:Object(K.parse)(this.props.reusableBlock.content)})}},{key:"startEditing",value:function(){var e=this.props.reusableBlock;this.setState({isEditing:!0,title:e.title,blocks:Object(K.parse)(e.content)})}},{key:"stopEditing",value:function(){this.setState({isEditing:!1,title:null,blocks:[]})}},{key:"setBlocks",value:function(e){this.setState({blocks:e})}},{key:"setTitle",value:function(e){this.setState({title:e})}},{key:"save",value:function(){var e=this.props,t=e.onChange,r=e.onSave,n=this.state,o=n.blocks;t({title:n.title,content:Object(K.serialize)(o)}),r(),this.stopEditing()}},{key:"render",value:function(){var e=this.props,t=e.convertToStatic,r=e.isSelected,n=e.reusableBlock,o=e.isFetching,c=e.isSaving,a=e.canUpdateBlock,i=e.settings,l=this.state,s=l.isEditing,u=l.title,b=l.blocks;if(!n&&o)return Object(J.createElement)(be.Placeholder,null,Object(J.createElement)(be.Spinner,null));if(!n)return Object(J.createElement)(be.Placeholder,null,Object(Y.__)("Block has been deleted or is unavailable."));var m=Object(J.createElement)($.BlockEditorProvider,{settings:i,value:b,onChange:this.setBlocks,onInput:this.setBlocks},Object(J.createElement)($.WritingFlow,null,Object(J.createElement)($.BlockList,null)));return s||(m=Object(J.createElement)(be.Disabled,null,m)),Object(J.createElement)(J.Fragment,null,Object(J.createElement)($.BlockControls,null,Object(J.createElement)(be.ToolbarGroup,null,Object(J.createElement)(be.ToolbarButton,{onClick:t},Object(Y.__)("Convert to regular blocks")))),Object(J.createElement)("div",{className:"block-library-block__reusable-block-container"},(r||s)&&Object(J.createElement)(yl,{isEditing:s,title:null!==u?u:n.title,isSaving:c&&!n.isTemporary,isEditDisabled:!a,onEdit:this.startEditing,onChangeTitle:this.setTitle,onSave:this.save,onCancel:this.stopEditing}),m))}}]),r}(J.Component),kl=Object(xe.compose)([Object(me.withSelect)((function(e,t){var r=e("core/editor"),n=r.__experimentalGetReusableBlock,o=r.__experimentalIsFetchingReusableBlock,c=r.__experimentalIsSavingReusableBlock,a=e("core").canUser,i=e("core/block-editor"),l=i.__experimentalGetParsedReusableBlock,s=i.getSettings,u=t.attributes.ref,b=n(u);return{reusableBlock:b,isFetching:o(u),isSaving:c(u),blocks:b?l(b.id):null,canUpdateBlock:!!b&&!b.isTemporary&&!!a("update","blocks",u),settings:s()}})),Object(me.withDispatch)((function(e,t){var r=e("core/editor"),n=r.__experimentalConvertBlockToStatic,o=r.__experimentalFetchReusableBlocks,c=r.__experimentalUpdateReusableBlock,a=r.__experimentalSaveReusableBlock,i=t.attributes.ref;return{fetchReusableBlock:Object(Q.partial)(o,i),onChange:Object(Q.partial)(c,i),onSave:Object(Q.partial)(a,i),convertToStatic:function(){n(t.clientId)}}}))])(_l),Cl={name:"core/block",category:"reusable",attributes:{ref:{type:"number"}},supports:{customClassName:!1,html:!1,inserter:!1}},El=Cl.name,xl={title:Object(Y.__)("Reusable Block"),description:Object(Y.__)("Create and save content to reuse across your site. Update the block, and the changes apply everywhere it’s used."),edit:kl},Sl=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M5 10.2h-.8v1.5H5c1.9 0 3.8.8 5.1 2.1 1.4 1.4 2.1 3.2 2.1 5.1v.8h1.5V19c0-2.3-.9-4.5-2.6-6.2-1.6-1.6-3.8-2.6-6.1-2.6zm10.4-1.6C12.6 5.8 8.9 4.2 5 4.2h-.8v1.5H5c3.5 0 6.9 1.4 9.4 3.9s3.9 5.8 3.9 9.4v.8h1.5V19c0-3.9-1.6-7.6-4.4-10.4zM4 20h3v-3H4v3z"}));var Pl={name:"core/rss",category:"widgets",attributes:{columns:{type:"number",default:2},blockLayout:{type:"string",default:"list"},feedURL:{type:"string",default:""},itemsToShow:{type:"number",default:5},displayExcerpt:{type:"boolean",default:!1},displayAuthor:{type:"boolean",default:!1},displayDate:{type:"boolean",default:!1},excerptLength:{type:"number",default:55}},supports:{align:!0,html:!1}},Tl=Pl.name,Bl={title:Object(Y.__)("RSS"),description:Object(Y.__)("Display entries from any RSS or Atom feed."),icon:Sl,keywords:[Object(Y.__)("atom"),Object(Y.__)("feed")],example:{attributes:{feedURL:"https://wordpress.org"}},edit:function(e){var t=e.attributes,r=e.setAttributes,n=Object(J.useState)(!t.feedURL),o=Object(ue.a)(n,2),c=o[0],a=o[1],i=t.blockLayout,l=t.columns,s=t.displayAuthor,u=t.displayDate,b=t.displayExcerpt,m=t.excerptLength,d=t.feedURL,p=t.itemsToShow;function g(e){return function(){var n=t[e];r(Object(Z.a)({},e,!n))}}if(c)return Object(J.createElement)(be.Placeholder,{icon:Sl,label:"RSS"},Object(J.createElement)("form",{onSubmit:function(e){e.preventDefault(),d&&a(!1)},className:"wp-block-rss__placeholder-form"},Object(J.createElement)(be.TextControl,{placeholder:Object(Y.__)("Enter URL here…"),value:d,onChange:function(e){return r({feedURL:e})},className:"wp-block-rss__placeholder-input"}),Object(J.createElement)(be.Button,{isPrimary:!0,type:"submit"},Object(Y.__)("Use URL"))));var h=[{icon:Br.a,title:Object(Y.__)("Edit RSS URL"),onClick:function(){return a(!0)}},{icon:ii,title:Object(Y.__)("List view"),onClick:function(){return r({blockLayout:"list"})},isActive:"list"===i},{icon:li,title:Object(Y.__)("Grid view"),onClick:function(){return r({blockLayout:"grid"})},isActive:"grid"===i}];return Object(J.createElement)(J.Fragment,null,Object(J.createElement)($.BlockControls,null,Object(J.createElement)(be.ToolbarGroup,{controls:h})),Object(J.createElement)($.InspectorControls,null,Object(J.createElement)(be.PanelBody,{title:Object(Y.__)("RSS settings")},Object(J.createElement)(be.RangeControl,{label:Object(Y.__)("Number of items"),value:p,onChange:function(e){return r({itemsToShow:e})},min:1,max:10,required:!0}),Object(J.createElement)(be.ToggleControl,{label:Object(Y.__)("Display author"),checked:s,onChange:g("displayAuthor")}),Object(J.createElement)(be.ToggleControl,{label:Object(Y.__)("Display date"),checked:u,onChange:g("displayDate")}),Object(J.createElement)(be.ToggleControl,{label:Object(Y.__)("Display excerpt"),checked:b,onChange:g("displayExcerpt")}),b&&Object(J.createElement)(be.RangeControl,{label:Object(Y.__)("Max number of words in excerpt"),value:m,onChange:function(e){return r({excerptLength:e})},min:10,max:100,required:!0}),"grid"===i&&Object(J.createElement)(be.RangeControl,{label:Object(Y.__)("Columns"),value:l,onChange:function(e){return r({columns:e})},min:2,max:6,required:!0}))),Object(J.createElement)(be.Disabled,null,Object(J.createElement)(en.a,{block:"core/rss",attributes:t})))}},zl=Object(J.createElement)(be.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(be.Rect,{x:"7",y:"10",width:"10",height:"4",rx:"1",fill:"currentColor"})),Nl=Object(J.createElement)(be.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(be.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"9.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor","stroke-width":"1.5",fill:"none"}),Object(J.createElement)(be.Rect,{x:"16",y:"10",width:"4",height:"4",rx:"1",fill:"currentColor"})),Ml=Object(J.createElement)(be.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(be.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"14.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor","stroke-width":"1.5",fill:"none"}),Object(J.createElement)(be.Rect,{x:"14",y:"10",width:"4",height:"4",rx:"1",fill:"currentColor"})),Rl=Object(J.createElement)(be.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(be.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"14.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor",fill:"none","stroke-width":"1.5"})),Al=Object(J.createElement)(be.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(be.Rect,{x:"4.75",y:"7.75",width:"14.5",height:"8.5",rx:"1.25",stroke:"currentColor",fill:"none","stroke-width":"1.5"}),Object(J.createElement)(be.Rect,{x:"8",y:"11",width:"8",height:"2",fill:"currentColor"})),Il=Object(J.createElement)(be.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(be.Rect,{x:"4.75",y:"17.25",width:"5.5",height:"14.5",transform:"rotate(-90 4.75 17.25)",stroke:"currentColor",fill:"none","stroke-width":"1.5"}),Object(J.createElement)(be.Rect,{x:"4",y:"7",width:"10",height:"2",fill:"currentColor"})),Hl=[{value:"%",label:"%",default:50},{value:"px",label:"px",default:350}];var Ll=[{name:"default",isDefault:!0,attributes:{buttonText:Object(Y.__)("Search"),label:Object(Y.__)("Search")}}],Vl={name:"core/search",category:"widgets",attributes:{label:{type:"string"},showLabel:{type:"bool",default:!0},placeholder:{type:"string",default:""},width:{type:"number"},widthUnit:{type:"string"},buttonText:{type:"string"},buttonPosition:{type:"string",default:"button-outside"},buttonUseIcon:{type:"bool",default:!1}},supports:{align:["left","center","right"],html:!1,lightBlockWrapper:!0}},Dl=Vl.name,Fl={title:Object(Y.__)("Search"),description:Object(Y.__)("Help visitors find your content."),icon:ut.a,keywords:[Object(Y.__)("find")],example:{},variations:Ll,edit:function(e){var t=e.className,r=e.attributes,n=e.setAttributes,o=e.toggleSelection,c=e.isSelected,a=r.label,i=r.showLabel,l=r.placeholder,s=r.width,u=r.widthUnit,b=r.align,m=r.buttonText,d=r.buttonPosition,p=r.buttonUseIcon,g=Object(xe.useInstanceId)($.__experimentalUnitControl),h="wp-block-search__width-".concat(g),f=function(){return Object(J.createElement)("input",{className:"wp-block-search__input","aria-label":Object(Y.__)("Optional placeholder text"),placeholder:l?void 0:Object(Y.__)("Optional placeholder…"),value:l,onChange:function(e){return n({placeholder:e.target.value})}})},v=function(){return Object(J.createElement)(J.Fragment,null,p&&Object(J.createElement)(be.Button,{icon:ut.a,className:"wp-block-search__button"}),!p&&Object(J.createElement)($.RichText,{className:"wp-block-search__button","aria-label":Object(Y.__)("Button text"),placeholder:Object(Y.__)("Add button text…"),withoutInteractiveFormatting:!0,value:m,onChange:function(e){return n({buttonText:e})}}))},O=Object(J.createElement)(J.Fragment,null,Object(J.createElement)($.BlockControls,null,Object(J.createElement)(be.ToolbarGroup,null,Object(J.createElement)(be.ToolbarButton,{title:Object(Y.__)("Toggle search label"),icon:Il,onClick:function(){n({showLabel:!i})},className:i?"is-pressed":void 0}),Object(J.createElement)(be.DropdownMenu,{icon:function(){switch(d){case"button-inside":return Ml;case"button-outside":return Nl;case"no-button":return Rl;case"button-only":return zl}}(),label:Object(Y.__)("Change button position")},(function(e){var t=e.onClose;return Object(J.createElement)(be.MenuGroup,{className:"wp-block-search__button-position-menu"},Object(J.createElement)(be.MenuItem,{icon:Rl,onClick:function(){n({buttonPosition:"no-button"}),t()}},Object(Y.__)("No Button")),Object(J.createElement)(be.MenuItem,{icon:Nl,onClick:function(){n({buttonPosition:"button-outside"}),t()}},Object(Y.__)("Button Outside")),Object(J.createElement)(be.MenuItem,{icon:Ml,onClick:function(){n({buttonPosition:"button-inside"}),t()}},Object(Y.__)("Button Inside")),Object(J.createElement)(be.MenuItem,{icon:zl,onClick:function(){n({buttonPosition:"button-only"}),t()}},Object(Y.__)("Button Only")))})),"no-button"!==d&&Object(J.createElement)(be.ToolbarButton,{title:Object(Y.__)("Use button with icon"),icon:Al,onClick:function(){n({buttonUseIcon:!p})},className:p?"is-pressed":void 0}))),Object(J.createElement)($.InspectorControls,null,Object(J.createElement)(be.PanelBody,{title:Object(Y.__)("Display Settings")},Object(J.createElement)(be.BaseControl,{label:Object(Y.__)("Width"),id:h},Object(J.createElement)($.__experimentalUnitControl,{id:h,min:"".concat(220).concat("px"),onChange:function(e){var t="%"===u&&parseInt(e,10)>100?100:e;n({width:parseInt(t,10)})},onUnitChange:function(e){n({width:"%"===e?50:350,widthUnit:e})},style:{maxWidth:80},value:"".concat(s).concat(u),unit:u,units:Hl}),Object(J.createElement)(be.ButtonGroup,{className:"wp-block-search__components-button-group","aria-label":Object(Y.__)("Percentage Width")},[25,50,75,100].map((function(e){return Object(J.createElement)(be.Button,{key:e,isSmall:!0,isPrimary:"".concat(e,"%")==="".concat(s).concat(u),onClick:function(){return n({width:e,widthUnit:"%"})}},e,"%")}))))))),j=Object($.__experimentalUseBlockWrapperProps)({className:re()(t,"button-inside"===d?"wp-block-search__button-inside":void 0,"button-outside"===d?"wp-block-search__button-outside":void 0,"no-button"===d?"wp-block-search__no-button":void 0,"button-only"===d?"wp-block-search__button-only":void 0,p&&"no-button"!==d?"wp-block-search__text-button":void 0,p||"no-button"===d?void 0:"wp-block-search__icon-button")});return Object(J.createElement)("div",j,O,i&&Object(J.createElement)($.RichText,{className:"wp-block-search__label","aria-label":Object(Y.__)("Label text"),placeholder:Object(Y.__)("Add label…"),withoutInteractiveFormatting:!0,value:a,onChange:function(e){return n({label:e})}}),Object(J.createElement)(be.ResizableBox,{size:{width:"".concat(s).concat(u)},className:"wp-block-search__inside-wrapper",isResetValueOnUnitChange:!0,minWidth:220,enable:"button-only"===d?{}:{right:"right"!==b,left:"right"===b},onResizeStart:function(e,t,r){n({width:parseInt(r.offsetWidth,10),widthUnit:"px"}),o(!1)},onResizeStop:function(e,t,r,c){n({width:parseInt(s+c.width,10)}),o(!0)},showHandle:c},("button-inside"===d||"button-outside"===d)&&Object(J.createElement)(J.Fragment,null,f(),v()),"button-only"===d&&v(),"no-button"===d&&f()))}},Ul=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.Path,{d:"M18 4h-7c-1.1 0-2 .9-2 2v3H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-3h3c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h3V13c0 1.1.9 2 2 2h2.5v3zm0-4.5H11c-.3 0-.5-.2-.5-.5v-2.5H13c.3 0 .5.2.5.5v2.5zm5-.5c0 .3-.2.5-.5.5h-3V11c0-1.1-.9-2-2-2h-2.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7z"}));function Gl(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 Wl(e){for(var t=1;tt.indexOf(e)?n:e}),void 0),n=e.map((function(e){return Object(K.createBlock)(e.name,e.attributes,e.innerBlocks)}));return Object(K.createBlock)("core/group",{align:r},n)}}}]},edit:Kl,save:function(e){var t=e.attributes.tagName;return Object(J.createElement)(t,null,Object(J.createElement)("div",{className:"wp-block-group__inner-container"},Object(J.createElement)($.InnerBlocks.Content,null)))},deprecated:Zl},Xl=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.Path,{d:"M20.2 7v4H3.8V7H2.2v9h1.6v-3.5h16.4V16h1.6V7z"})),es=function(e){var t=e.color,r=e.setColor;return Object(J.createElement)($.InspectorControls,null,Object(J.createElement)($.PanelColorSettings,{title:Object(Y.__)("Color settings"),colorSettings:[{value:t.color,onChange:r,label:Object(Y.__)("Color")}]}))};var ts=Object($.withColors)("color",{textColor:"color"})((function(e){var t=e.color,r=e.setColor,n=e.className;return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(be.HorizontalRule,{className:re()(n,Object(Z.a)({"has-background":t.color},t.class,t.class)),style:{backgroundColor:t.color,color:t.color}}),Object(J.createElement)(es,{color:t,setColor:r}))}));var rs={from:[{type:"enter",regExp:/^-{3,}$/,transform:function(){return Object(K.createBlock)("core/separator")}},{type:"raw",selector:"hr",schema:{hr:{}}}]},ns={name:"core/separator",category:"design",attributes:{color:{type:"string"},customColor:{type:"string"}},supports:{anchor:!0}},os=ns.name,cs={title:Object(Y.__)("Separator"),description:Object(Y.__)("Create a break between ideas or sections with a horizontal separator."),icon:Xl,keywords:[Object(Y.__)("horizontal-line"),"hr",Object(Y.__)("divider")],example:{attributes:{customColor:"#065174",className:"is-style-wide"}},styles:[{name:"default",label:Object(Y.__)("Default"),isDefault:!0},{name:"wide",label:Object(Y.__)("Wide Line")},{name:"dots",label:Object(Y.__)("Dots")}],transforms:rs,edit:ts,save:function(e){var t,r=e.attributes,n=r.color,o=r.customColor,c=Object($.getColorClassName)("background-color",n),a=Object($.getColorClassName)("color",n),i=re()((t={"has-text-color has-background":n||o},Object(Z.a)(t,c,c),Object(Z.a)(t,a,a),t)),l={backgroundColor:c?void 0:o,color:a?void 0:o};return Object(J.createElement)("hr",{className:i,style:l})}},as=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.Path,{d:"M16 4.2v1.5h2.5v12.5H16v1.5h4V4.2h-4zM4.2 19.8h4v-1.5H5.8V5.8h2.5V4.2h-4l-.1 15.6zm5.1-3.1l1.4.6 4-10-1.4-.6-4 10z"})),is=r(142);var ls=r(105),ss={from:[{type:"shortcode",tag:"[a-z][a-z0-9_-]*",attributes:{text:{type:"string",shortcode:function(e,t){var r=t.content;return Object(ls.removep)(Object(ls.autop)(r))}}},priority:20}]},us={name:"core/shortcode",category:"widgets",attributes:{text:{type:"string",source:"html"}},supports:{className:!1,customClassName:!1,html:!1}},bs=us.name,ms={title:Object(Y.__)("Shortcode"),description:Object(Y.__)("Insert additional custom elements with a WordPress shortcode."),icon:as,transforms:ss,edit:function e(t){var r=t.attributes,n=t.setAttributes,o=Object(xe.useInstanceId)(e),c="blocks-shortcode-input-".concat(o);return Object(J.createElement)("div",{className:"wp-block-shortcode components-placeholder"},Object(J.createElement)("label",{htmlFor:c,className:"components-placeholder__label"},Object(J.createElement)(is.a,{icon:as}),Object(Y.__)("Shortcode")),Object(J.createElement)($.PlainText,{className:"blocks-shortcode__textarea",id:c,value:r.text,placeholder:Object(Y.__)("Write shortcode here…"),onChange:function(e){return n({text:e})}}))},save:function(e){var t=e.attributes;return Object(J.createElement)(J.RawHTML,null,t.text)}},ds=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.Path,{d:"M12.5 4.2v1.6h4.7L5.8 17.2V12H4.2v7.8H12v-1.6H6.8L18.2 6.8v4.7h1.6V4.2z"})),ps=Object(xe.compose)([Object(me.withDispatch)((function(e){var t=e("core/block-editor").toggleSelection;return{onResizeStart:function(){return t(!1)},onResizeStop:function(){return t(!0)}}})),xe.withInstanceId])((function(e){var t=e.attributes,r=e.isSelected,n=e.setAttributes,o=e.onResizeStart,c=e.onResizeStop,a=Object(J.useState)(!1),i=Object(ue.a)(a,2),l=i[0],s=i[1],u=t.height,b=function(e){n({height:e})};return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(be.ResizableBox,{className:re()("block-library-spacer__resize-container",{"is-selected":r}),size:{height:u},minHeight:1,enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStart:function(){o.apply(void 0,arguments),s(!0)},onResizeStop:function(e,t,r,n){c();var o=Math.min(parseInt(u+n.height,10),500);b(o),s(!1)},showHandle:r,__experimentalShowTooltip:!0,__experimentalTooltipProps:{axis:"y",position:"bottom",isVisible:l}}),Object(J.createElement)($.InspectorControls,null,Object(J.createElement)(be.PanelBody,{title:Object(Y.__)("Spacer settings")},Object(J.createElement)(be.RangeControl,{label:Object(Y.__)("Height in pixels"),min:1,max:Math.max(500,u),value:u,onChange:b}))))}));var gs={name:"core/spacer",category:"design",attributes:{height:{type:"number",default:100}},supports:{anchor:!0}},hs=gs.name,fs={title:Object(Y.__)("Spacer"),description:Object(Y.__)("Add white space between blocks and customize its height."),icon:ds,edit:ps,save:function(e){var t=e.attributes;return Object(J.createElement)("div",{style:{height:t.height},"aria-hidden":!0})}},vs=r(35),Os=r.n(vs);var js={to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(K.createBlock)("core/paragraph",e)}}]},ys={name:"core/subhead",category:"text",attributes:{align:{type:"string"},content:{type:"string",source:"html",selector:"p"}},supports:{inserter:!1,multiple:!1}},ws=ys.name,_s={title:Object(Y.__)("Subheading (deprecated)"),description:Object(Y.__)("This block is deprecated. Please use the Paragraph block instead."),icon:Object(J.createElement)(be.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(be.Path,{d:"M7.1 6l-.5 3h4.5L9.4 19h3l1.8-10h4.5l.5-3H7.1z"})),transforms:js,edit:function(e){var t=e.attributes,r=e.setAttributes,n=e.className,o=t.align,c=t.content,a=t.placeholder;return Os()("The Subheading block",{alternative:"the Paragraph block",plugin:"Gutenberg"}),Object(J.createElement)(J.Fragment,null,Object(J.createElement)($.BlockControls,null,Object(J.createElement)($.AlignmentToolbar,{value:o,onChange:function(e){r({align:e})}})),Object(J.createElement)($.RichText,{tagName:"p",value:c,onChange:function(e){r({content:e})},style:{textAlign:o},className:n,placeholder:a||Object(Y.__)("Write subheading…")}))},save:function(e){var t=e.attributes,r=t.align,n=t.content;return Object(J.createElement)($.RichText.Content,{tagName:"p",style:{textAlign:r},value:n})}},ks=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v3.5h-15V5c0-.3.2-.5.5-.5zm8 5.5h6.5v3.5H13V10zm-1.5 3.5h-7V10h7v3.5zm-7 5.5v-4h7v4.5H5c-.3 0-.5-.2-.5-.5zm14.5.5h-6V15h6.5v4c0 .3-.2.5-.5.5z"})),Cs=[{attributes:{hasFixedLayout:{type:"boolean",default:!1},backgroundColor:{type:"string"},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}}}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}}}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}}}}}},supports:{align:!0},save:function(e){var t=e.attributes,r=t.hasFixedLayout,n=t.head,o=t.body,c=t.foot,a=t.backgroundColor;if(!n.length&&!o.length&&!c.length)return null;var i=Object($.getColorClassName)("background-color",a),l=re()(i,{"has-fixed-layout":r,"has-background":!!i}),s=function(e){var t=e.type,r=e.rows;if(!r.length)return null;var n="t".concat(t);return Object(J.createElement)(n,null,r.map((function(e,t){var r=e.cells;return Object(J.createElement)("tr",{key:t},r.map((function(e,t){var r=e.content,n=e.tag,o=e.scope;return Object(J.createElement)($.RichText.Content,{tagName:n,value:r,key:t,scope:"th"===n?o:void 0})})))})))};return Object(J.createElement)("table",{className:l},Object(J.createElement)(s,{type:"head",rows:n}),Object(J.createElement)(s,{type:"body",rows:o}),Object(J.createElement)(s,{type:"foot",rows:c}))}}],Es=r(300),xs=r(301),Ss=r(302),Ps=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(J.createElement)(X.Path,{d:"M6.656 6.464h2.88v2.88h1.408v-2.88h2.88V5.12h-2.88V2.24H9.536v2.88h-2.88zM0 17.92V0h20.48v17.92H0zm7.68-2.56h5.12v-3.84H7.68v3.84zm-6.4 0H6.4v-3.84H1.28v3.84zM19.2 1.28H1.28v9.024H19.2V1.28zm0 10.24h-5.12v3.84h5.12v-3.84zM6.656 6.464h2.88v2.88h1.408v-2.88h2.88V5.12h-2.88V2.24H9.536v2.88h-2.88zM0 17.92V0h20.48v17.92H0zm7.68-2.56h5.12v-3.84H7.68v3.84zm-6.4 0H6.4v-3.84H1.28v3.84zM19.2 1.28H1.28v9.024H19.2V1.28zm0 10.24h-5.12v3.84h5.12v-3.84z"})),Ts=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(J.createElement)(X.Path,{d:"M13.824 10.176h-2.88v-2.88H9.536v2.88h-2.88v1.344h2.88v2.88h1.408v-2.88h2.88zM0 17.92V0h20.48v17.92H0zM6.4 1.28H1.28v3.84H6.4V1.28zm6.4 0H7.68v3.84h5.12V1.28zm6.4 0h-5.12v3.84h5.12V1.28zm0 5.056H1.28v9.024H19.2V6.336z"})),Bs=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(J.createElement)(X.Path,{d:"M17.728 11.456L14.592 8.32l3.2-3.2-1.536-1.536-3.2 3.2L9.92 3.648 8.384 5.12l3.2 3.2-3.264 3.264 1.536 1.536 3.264-3.264 3.136 3.136 1.472-1.536zM0 17.92V0h20.48v17.92H0zm19.2-6.4h-.448l-1.28-1.28H19.2V6.4h-1.792l1.28-1.28h.512V1.28H1.28v3.84h6.208l1.28 1.28H1.28v3.84h7.424l-1.28 1.28H1.28v3.84H19.2v-3.84z"})),zs=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(J.createElement)(X.Path,{d:"M6.4 3.776v3.648H2.752v1.792H6.4v3.648h1.728V9.216h3.712V7.424H8.128V3.776zM0 17.92V0h20.48v17.92H0zM12.8 1.28H1.28v14.08H12.8V1.28zm6.4 0h-5.12v3.84h5.12V1.28zm0 5.12h-5.12v3.84h5.12V6.4zm0 5.12h-5.12v3.84h5.12v-3.84z"})),Ns=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(J.createElement)(X.Path,{d:"M14.08 12.864V9.216h3.648V7.424H14.08V3.776h-1.728v3.648H8.64v1.792h3.712v3.648zM0 17.92V0h20.48v17.92H0zM6.4 1.28H1.28v3.84H6.4V1.28zm0 5.12H1.28v3.84H6.4V6.4zm0 5.12H1.28v3.84H6.4v-3.84zM19.2 1.28H7.68v14.08H19.2V1.28z"})),Ms=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(J.createElement)(X.Path,{d:"M6.4 9.98L7.68 8.7v-.256L6.4 7.164V9.98zm6.4-1.532l1.28-1.28V9.92L12.8 8.64v-.192zm7.68 9.472V0H0v17.92h20.48zm-1.28-2.56h-5.12v-1.024l-.256.256-1.024-1.024v1.792H7.68v-1.792l-1.024 1.024-.256-.256v1.024H1.28V1.28H6.4v2.368l.704-.704.576.576V1.216h5.12V3.52l.96-.96.32.32V1.216h5.12V15.36zm-5.76-2.112l-3.136-3.136-3.264 3.264-1.536-1.536 3.264-3.264L5.632 5.44l1.536-1.536 3.136 3.136 3.2-3.2 1.536 1.536-3.2 3.2 3.136 3.136-1.536 1.536z"})),Rs=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M4 6v11.5h16V6H4zm1.5 1.5h6V11h-6V7.5zm0 8.5v-3.5h6V16h-6zm13 0H13v-3.5h5.5V16zM13 11V7.5h5.5V11H13z"}));function As(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 Is(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:0,t=this.state.selectedCell;if(t){var r=this.props,n=r.attributes,o=r.setAttributes,c=t.columnIndex,a=c+e;o(Ds(n,{columnIndex:a})),this.setState({selectedCell:{rowIndex:0,columnIndex:a,type:"cell"}})}}},{key:"onInsertColumnBefore",value:function(){this.onInsertColumn(0)}},{key:"onInsertColumnAfter",value:function(){this.onInsertColumn(1)}},{key:"onDeleteColumn",value:function(){var e=this.state.selectedCell;if(e){var t=this.props,r=t.attributes,n=t.setAttributes,o=e.sectionName,c=e.columnIndex;this.setState({selectedCell:null}),n(function(e,t){var r=t.columnIndex,n=Object(Q.pick)(e,["head","body","foot"]);return Object(Q.mapValues)(n,(function(e){return Us(e)?e:e.map((function(e){return{cells:e.cells.length>=r?e.cells.filter((function(e,t){return t!==r})):e.cells}})).filter((function(e){return e.cells.length}))}))}(r,{sectionName:o,columnIndex:c}))}}},{key:"createOnFocus",value:function(e){var t=this;return function(){t.setState({selectedCell:qs(qs({},e),{},{type:"cell"})})}}},{key:"getTableControls",value:function(){var e=this.state.selectedCell;return[{icon:Ps,title:Object(Y.__)("Insert row before"),isDisabled:!e,onClick:this.onInsertRowBefore},{icon:Ts,title:Object(Y.__)("Insert row after"),isDisabled:!e,onClick:this.onInsertRowAfter},{icon:Bs,title:Object(Y.__)("Delete row"),isDisabled:!e,onClick:this.onDeleteRow},{icon:zs,title:Object(Y.__)("Insert column before"),isDisabled:!e,onClick:this.onInsertColumnBefore},{icon:Ns,title:Object(Y.__)("Insert column after"),isDisabled:!e,onClick:this.onInsertColumnAfter},{icon:Ms,title:Object(Y.__)("Delete column"),isDisabled:!e,onClick:this.onDeleteColumn}]}},{key:"renderSection",value:function(e){var t=this,r=e.name,n=e.rows;if(Us(n))return null;var o="t".concat(r);return Object(J.createElement)(o,null,n.map((function(e,n){var o=e.cells;return Object(J.createElement)("tr",{key:n},o.map((function(e,o){var c=e.content,a=e.tag,i=e.scope,l=e.align,s={sectionName:r,rowIndex:n,columnIndex:o},u=re()(Object(Z.a)({},"has-text-align-".concat(l),l),"wp-block-table__cell-content"),b="";return"head"===r?b=Object(Y.__)("Header label"):"foot"===r&&(b=Object(Y.__)("Footer label")),Object(J.createElement)($.RichText,{tagName:a,key:o,className:u,scope:"th"===a?i:void 0,value:c,onChange:t.onChange,unstableOnFocus:t.createOnFocus(s),placeholder:b})})))})))}},{key:"componentDidUpdate",value:function(){var e=this.props.isSelected,t=this.state.selectedCell;!e&&t&&this.setState({selectedCell:null})}},{key:"render",value:function(){var e=this,t=this.props,r=t.attributes,n=t.className,o=t.backgroundColor,c=t.setBackgroundColor,a=t.setAttributes,i=t.insertBlocksAfter,l=this.state,s=l.initialRowCount,u=l.initialColumnCount,b=r.hasFixedLayout,m=r.caption,d=r.head,p=r.body,g=r.foot,h=Us(d)&&Us(p)&&Us(g),f=this.renderSection;if(h)return Object(J.createElement)(be.Placeholder,{label:Object(Y.__)("Table"),icon:Object(J.createElement)($.BlockIcon,{icon:ks,showColors:!0}),instructions:Object(Y.__)("Insert a table for sharing data.")},Object(J.createElement)("form",{className:"blocks-table__placeholder-form",onSubmit:this.onCreateTable},Object(J.createElement)(be.TextControl,{type:"number",label:Object(Y.__)("Column count"),value:u,onChange:this.onChangeInitialColumnCount,min:"1",className:"blocks-table__placeholder-input"}),Object(J.createElement)(be.TextControl,{type:"number",label:Object(Y.__)("Row count"),value:s,onChange:this.onChangeInitialRowCount,min:"1",className:"blocks-table__placeholder-input"}),Object(J.createElement)(be.Button,{className:"blocks-table__placeholder-button",isPrimary:!0,type:"submit"},Object(Y.__)("Create Table"))));var v=re()(o.class,{"has-fixed-layout":b,"has-background":!!o.color});return Object(J.createElement)(J.Fragment,null,Object(J.createElement)($.BlockControls,null,Object(J.createElement)(be.ToolbarGroup,null,Object(J.createElement)(be.ToolbarItem,null,(function(t){return Object(J.createElement)(be.DropdownMenu,{hasArrowIndicator:!0,icon:Rs,toggleProps:t,label:Object(Y.__)("Edit table"),controls:e.getTableControls()})}))),Object(J.createElement)($.AlignmentToolbar,{label:Object(Y.__)("Change column alignment"),alignmentControls:Ks,value:this.getCellAlignment(),onChange:function(t){return e.onChangeColumnAlignment(t)},onHover:this.onHoverAlignment})),Object(J.createElement)($.InspectorControls,null,Object(J.createElement)(be.PanelBody,{title:Object(Y.__)("Table settings"),className:"blocks-table-settings"},Object(J.createElement)(be.ToggleControl,{label:Object(Y.__)("Fixed width table cells"),checked:!!b,onChange:this.onChangeFixedLayout}),Object(J.createElement)(be.ToggleControl,{label:Object(Y.__)("Header section"),checked:!(!d||!d.length),onChange:this.onToggleHeaderSection}),Object(J.createElement)(be.ToggleControl,{label:Object(Y.__)("Footer section"),checked:!(!g||!g.length),onChange:this.onToggleFooterSection})),Object(J.createElement)($.PanelColorSettings,{title:Object(Y.__)("Color settings"),initialOpen:!1,colorSettings:[{value:o.color,onChange:c,label:Object(Y.__)("Background color"),disableCustomColors:!0,colors:$s}]})),Object(J.createElement)("figure",{className:n},Object(J.createElement)("table",{className:v},Object(J.createElement)(f,{name:"head",rows:d}),Object(J.createElement)(f,{name:"body",rows:p}),Object(J.createElement)(f,{name:"foot",rows:g})),Object(J.createElement)($.RichText,{tagName:"figcaption",placeholder:Object(Y.__)("Write caption…"),value:m,onChange:function(e){return a({caption:e})},unstableOnFocus:function(){return e.setState({selectedCell:null})},__unstableOnSplitAtEnd:function(){return i(Object(K.createBlock)("core/paragraph"))}})))}}]),r}(J.Component),Js=Qs("backgroundColor")(Ys);var Xs=function(e){var t=e.phrasingContentSchema;return{tr:{allowEmpty:!0,children:{th:{allowEmpty:!0,children:t,attributes:["scope"]},td:{allowEmpty:!0,children:t}}}}},eu={from:[{type:"raw",selector:"table",schema:function(e){return{table:{children:{thead:{allowEmpty:!0,children:Xs(e)},tfoot:{allowEmpty:!0,children:Xs(e)},tbody:{allowEmpty:!0,children:Xs(e)}}}}}}]},tu={name:"core/table",category:"text",attributes:{hasFixedLayout:{type:"boolean",default:!1},backgroundColor:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption",default:""},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}}},supports:{anchor:!0,align:!0}},ru=tu.name,nu={title:Object(Y.__)("Table"),description:Object(Y.__)("Insert a table — perfect for sharing charts and data."),icon:ks,example:{attributes:{head:[{cells:[{content:Object(Y.__)("Version"),tag:"th"},{content:Object(Y.__)("Jazz Musician"),tag:"th"},{content:Object(Y.__)("Release Date"),tag:"th"}]}],body:[{cells:[{content:"5.2",tag:"td"},{content:"Jaco Pastorius",tag:"td"},{content:Object(Y.__)("May 7, 2019"),tag:"td"}]},{cells:[{content:"5.1",tag:"td"},{content:"Betty Carter",tag:"td"},{content:Object(Y.__)("February 21, 2019"),tag:"td"}]},{cells:[{content:"5.0",tag:"td"},{content:"Bebo Valdés",tag:"td"},{content:Object(Y.__)("December 6, 2018"),tag:"td"}]}]}},styles:[{name:"regular",label:Object(Y._x)("Default","block style"),isDefault:!0},{name:"stripes",label:Object(Y.__)("Stripes")}],transforms:eu,edit:Js,save:function(e){var t=e.attributes,r=t.hasFixedLayout,n=t.head,o=t.body,c=t.foot,a=t.backgroundColor,i=t.caption;if(!n.length&&!o.length&&!c.length)return null;var l=Object($.getColorClassName)("background-color",a),s=re()(l,{"has-fixed-layout":r,"has-background":!!l}),u=!$.RichText.isEmpty(i),b=function(e){var t=e.type,r=e.rows;if(!r.length)return null;var n="t".concat(t);return Object(J.createElement)(n,null,r.map((function(e,t){var r=e.cells;return Object(J.createElement)("tr",{key:t},r.map((function(e,t){var r=e.content,n=e.tag,o=e.scope,c=e.align,a=re()(Object(Z.a)({},"has-text-align-".concat(c),c));return Object(J.createElement)($.RichText.Content,{className:a||void 0,"data-align":c,tagName:n,value:r,key:t,scope:"th"===n?o:void 0})})))})))};return Object(J.createElement)("figure",null,Object(J.createElement)("table",{className:""===s?void 0:s},Object(J.createElement)(b,{type:"head",rows:n}),Object(J.createElement)(b,{type:"body",rows:o}),Object(J.createElement)(b,{type:"foot",rows:c})),u&&Object(J.createElement)($.RichText.Content,{tagName:"figcaption",value:i}))},deprecated:Cs};var ou={to:[{type:"block",blocks:["core/columns"],transform:function(e){var t=e.className,r=e.columns,n=e.content,o=e.width;return Object(K.createBlock)("core/columns",{align:"wide"===o||"full"===o?o:void 0,className:t,columns:r},n.map((function(e){var t=e.children;return Object(K.createBlock)("core/column",{},[Object(K.createBlock)("core/paragraph",{content:t})])})))}}]},cu={name:"core/text-columns",icon:"columns",category:"design",attributes:{content:{type:"array",source:"query",selector:"p",query:{children:{type:"string",source:"html"}},default:[{},{}]},columns:{type:"number",default:2},width:{type:"string"}},supports:{inserter:!1}},au=cu.name,iu={title:Object(Y.__)("Text Columns (deprecated)"),description:Object(Y.__)("This block is deprecated. Please use the Columns block instead."),transforms:ou,getEditWrapperProps:function(e){var t=e.width;if("wide"===t||"full"===t)return{"data-align":t}},edit:function(e){var t=e.attributes,r=e.setAttributes,n=e.className,o=t.width,c=t.content,a=t.columns;return Os()("The Text Columns block",{alternative:"the Columns block",plugin:"Gutenberg"}),Object(J.createElement)(J.Fragment,null,Object(J.createElement)($.BlockControls,null,Object(J.createElement)($.BlockAlignmentToolbar,{value:o,onChange:function(e){return r({width:e})},controls:["center","wide","full"]})),Object(J.createElement)($.InspectorControls,null,Object(J.createElement)(be.PanelBody,null,Object(J.createElement)(be.RangeControl,{label:Object(Y.__)("Columns"),value:a,onChange:function(e){return r({columns:e})},min:2,max:4,required:!0}))),Object(J.createElement)("div",{className:"".concat(n," align").concat(o," columns-").concat(a)},Object(Q.times)(a,(function(e){return Object(J.createElement)("div",{className:"wp-block-column",key:"column-".concat(e)},Object(J.createElement)($.RichText,{tagName:"p",value:Object(Q.get)(c,[e,"children"]),onChange:function(t){r({content:[].concat(Object(q.a)(c.slice(0,e)),[{children:t}],Object(q.a)(c.slice(e+1)))})},placeholder:Object(Y.__)("New Column")}))}))))},save:function(e){var t=e.attributes,r=t.width,n=t.content,o=t.columns;return Object(J.createElement)("div",{className:"align".concat(r," columns-").concat(o)},Object(Q.times)(o,(function(e){return Object(J.createElement)("div",{className:"wp-block-column",key:"column-".concat(e)},Object(J.createElement)($.RichText.Content,{tagName:"p",value:Object(Q.get)(n,[e,"children"])}))})))}},lu=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.Path,{d:"M17.8 2l-.9.3c-.1 0-3.6 1-5.2 2.1C10 5.5 9.3 6.5 8.9 7.1c-.6.9-1.7 4.7-1.7 6.3l-.9 2.3c-.2.4 0 .8.4 1 .1 0 .2.1.3.1.3 0 .6-.2.7-.5l.6-1.5c.3 0 .7-.1 1.2-.2.7-.1 1.4-.3 2.2-.5.8-.2 1.6-.5 2.4-.8.7-.3 1.4-.7 1.9-1.2s.8-1.2 1-1.9c.2-.7.3-1.6.4-2.4.1-.8.1-1.7.2-2.5 0-.8.1-1.5.2-2.1V2zm-1.9 5.6c-.1.8-.2 1.5-.3 2.1-.2.6-.4 1-.6 1.3-.3.3-.8.6-1.4.9-.7.3-1.4.5-2.2.8-.6.2-1.3.3-1.8.4L15 7.5c.3-.3.6-.7 1-1.1 0 .4 0 .8-.1 1.2zM6 20h8v-1.5H6V20z"})),su=[{attributes:{content:{type:"string",source:"html",selector:"pre",default:""},textAlign:{type:"string"}},save:function(e){var t=e.attributes,r=t.textAlign,n=t.content;return Object(J.createElement)($.RichText.Content,{tagName:"pre",style:{textAlign:r},value:n})}}];var uu={from:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(K.createBlock)("core/verse",e)}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(K.createBlock)("core/paragraph",e)}}]},bu={name:"core/verse",category:"text",attributes:{content:{type:"string",source:"html",selector:"pre",default:"",__unstablePreserveWhiteSpace:!0},textAlign:{type:"string"}},supports:{anchor:!0,lightBlockWrapper:!0}},mu=bu.name,du={title:Object(Y.__)("Verse"),description:Object(Y.__)("Insert poetry. Use special spacing formats. Or quote song lyrics."),icon:lu,example:{attributes:{content:Object(Y.__)("WHAT was he doing, the great god Pan,\n\tDown in the reeds by the river?\nSpreading ruin and scattering ban,\nSplashing and paddling with hoofs of a goat,\nAnd breaking the golden lilies afloat\n With the dragon-fly on the river.")}},keywords:[Object(Y.__)("poetry"),Object(Y.__)("poem")],transforms:uu,deprecated:su,merge:function(e,t){return{content:e.content+t.content}},edit:function(e){var t=e.attributes,r=e.setAttributes,n=e.mergeBlocks,o=t.textAlign,c=t.content,a=Object($.__experimentalUseBlockWrapperProps)({className:re()(Object(Z.a)({},"has-text-align-".concat(o),o))});return Object(J.createElement)(J.Fragment,null,Object(J.createElement)($.BlockControls,null,Object(J.createElement)($.AlignmentToolbar,{value:o,onChange:function(e){r({textAlign:e})}})),Object(J.createElement)($.RichText,Object(se.a)({tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:c,onChange:function(e){r({content:e})},placeholder:Object(Y.__)("Write…"),onMerge:n,textAlign:o},a)))},save:function(e){var t=e.attributes,r=t.textAlign,n=t.content,o=re()(Object(Z.a)({},"has-text-align-".concat(r),r));return Object(J.createElement)($.RichText.Content,{tagName:"pre",className:o,value:n})}},pu=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h13.4c.4 0 .8.4.8.8v13.4zM10 15l5-3-5-3v6z"})),gu=function(e){var t=e.setAttributes,r=e.attributes,n=r.autoplay,o=r.controls,c=r.loop,a=r.muted,i=r.playsInline,l=r.preload,s=function(e){return function(r){t(Object(Z.a)({},e,r))}};return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(be.ToggleControl,{label:Object(Y.__)("Autoplay"),onChange:s("autoplay"),checked:n,help:function(e){return e?Object(Y.__)("Note: Autoplaying videos may cause usability issues for some visitors."):null}}),Object(J.createElement)(be.ToggleControl,{label:Object(Y.__)("Loop"),onChange:s("loop"),checked:c}),Object(J.createElement)(be.ToggleControl,{label:Object(Y.__)("Muted"),onChange:s("muted"),checked:a}),Object(J.createElement)(be.ToggleControl,{label:Object(Y.__)("Playback controls"),onChange:s("controls"),checked:o}),Object(J.createElement)(be.ToggleControl,{label:Object(Y.__)("Play inline"),onChange:s("playsInline"),checked:i}),Object(J.createElement)(be.SelectControl,{label:Object(Y.__)("Preload"),value:l,onChange:function(e){return t({preload:e})},options:[{value:"auto",label:Object(Y.__)("Auto")},{value:"metadata",label:Object(Y.__)("Metadata")},{value:"none",label:Object(Y.__)("None")}]}))},hu=["video"],fu=["image"];var vu=Object(be.withNotices)((function e(t){var r=t.isSelected,n=t.noticeUI,o=t.attributes,c=t.setAttributes,a=t.insertBlocksAfter,i=t.onReplace,l=t.noticeOperations,s=Object(xe.useInstanceId)(e),u=Object(J.useRef)(),b=Object(J.useRef)(),m=o.id,d=o.caption,p=o.controls,g=o.poster,h=o.src,f=Object(me.useSelect)((function(e){return e("core/block-editor").getSettings().mediaUpload}));function v(e){e&&e.url?c({src:e.url,id:e.id}):c({src:void 0,id:void 0})}function O(e){if(e!==h){var t=Ve({attributes:{url:e}});if(void 0!==t)return void i(t);c({src:e,id:void 0})}}function j(e){l.removeAllNotices(),l.createErrorNotice(e)}Object(J.useEffect)((function(){if(!m&&Object(Ee.isBlobURL)(h)){var e=Object(Ee.getBlobByURL)(h);e&&f({filesList:[e],onFileChange:function(e){var t=Object(ue.a)(e,1)[0].url;c({src:t})},onError:function(e){l.createErrorNotice(e)},allowedTypes:hu})}}),[]),Object(J.useEffect)((function(){u.current&&u.current.load()}),[g]);var y=Object($.__experimentalUseBlockWrapperProps)();if(!h)return Object(J.createElement)("div",y,Object(J.createElement)($.MediaPlaceholder,{icon:Object(J.createElement)($.BlockIcon,{icon:pu}),onSelect:v,onSelectURL:O,accept:"video/*",allowedTypes:hu,value:o,notices:n,onError:j}));var w="video-block__poster-image-description-".concat(s);return Object(J.createElement)(J.Fragment,null,Object(J.createElement)($.BlockControls,null,Object(J.createElement)($.MediaReplaceFlow,{mediaId:m,mediaURL:h,allowedTypes:hu,accept:"video/*",onSelect:v,onSelectURL:O,onError:j})),Object(J.createElement)($.InspectorControls,null,Object(J.createElement)(be.PanelBody,{title:Object(Y.__)("Video settings")},Object(J.createElement)(gu,{setAttributes:c,attributes:o}),Object(J.createElement)($.MediaUploadCheck,null,Object(J.createElement)(be.BaseControl,{className:"editor-video-poster-control"},Object(J.createElement)(be.BaseControl.VisualLabel,null,Object(Y.__)("Poster image")),Object(J.createElement)($.MediaUpload,{title:Object(Y.__)("Select poster image"),onSelect:function(e){c({poster:e.url})},allowedTypes:fu,render:function(e){var t=e.open;return Object(J.createElement)(be.Button,{isPrimary:!0,onClick:t,ref:b,"aria-describedby":w},g?Object(Y.__)("Replace"):Object(Y.__)("Select"))}}),Object(J.createElement)("p",{id:w,hidden:!0},g?Object(Y.sprintf)(Object(Y.__)("The current poster image url is %s"),g):Object(Y.__)("There is no poster image currently selected")),!!g&&Object(J.createElement)(be.Button,{onClick:function(){c({poster:""}),this.posterImageButton.current.focus()},isTertiary:!0},Object(Y.__)("Remove")))))),Object(J.createElement)("figure",y,Object(J.createElement)(be.Disabled,null,Object(J.createElement)("video",{controls:p,poster:g,src:h,ref:u})),(!$.RichText.isEmpty(d)||r)&&Object(J.createElement)($.RichText,{tagName:"figcaption",placeholder:Object(Y.__)("Write caption…"),value:d,onChange:function(e){return c({caption:e})},inlineToolbar:!0,__unstableOnSplitAtEnd:function(){return a(Object(K.createBlock)("core/paragraph"))}})))}));var Ou={from:[{type:"files",isMatch:function(e){return 1===e.length&&0===e[0].type.indexOf("video/")},transform:function(e){var t=e[0];return Object(K.createBlock)("core/video",{src:Object(Ee.createBlobURL)(t)})}},{type:"shortcode",tag:"video",attributes:{src:{type:"string",shortcode:function(e){var t=e.named,r=t.src,n=t.mp4,o=t.m4v,c=t.webm,a=t.ogv,i=t.flv;return r||n||o||c||a||i}},poster:{type:"string",shortcode:function(e){return e.named.poster}},loop:{type:"string",shortcode:function(e){return e.named.loop}},autoplay:{type:"string",shortcode:function(e){return e.named.autoplay}},preload:{type:"string",shortcode:function(e){return e.named.preload}}}}]},ju={name:"core/video",category:"media",attributes:{autoplay:{type:"boolean",source:"attribute",selector:"video",attribute:"autoplay"},caption:{type:"string",source:"html",selector:"figcaption"},controls:{type:"boolean",source:"attribute",selector:"video",attribute:"controls",default:!0},id:{type:"number"},loop:{type:"boolean",source:"attribute",selector:"video",attribute:"loop"},muted:{type:"boolean",source:"attribute",selector:"video",attribute:"muted"},poster:{type:"string",source:"attribute",selector:"video",attribute:"poster"},preload:{type:"string",source:"attribute",selector:"video",attribute:"preload",default:"metadata"},src:{type:"string",source:"attribute",selector:"video",attribute:"src"},playsInline:{type:"boolean",source:"attribute",selector:"video",attribute:"playsinline"}},supports:{anchor:!0,align:!0,lightBlockWrapper:!0}},yu=ju.name,wu={title:Object(Y.__)("Video"),description:Object(Y.__)("Embed a video from your media library or upload a new one."),icon:pu,keywords:[Object(Y.__)("movie")],transforms:Ou,edit:vu,save:function(e){var t=e.attributes,r=t.autoplay,n=t.caption,o=t.controls,c=t.loop,a=t.muted,i=t.poster,l=t.preload,s=t.src,u=t.playsInline;return Object(J.createElement)("figure",null,s&&Object(J.createElement)("video",{autoPlay:r,controls:o,loop:c,muted:a,poster:i,preload:"metadata"!==l?l:void 0,src:s,playsInline:u}),!$.RichText.isEmpty(n)&&Object(J.createElement)($.RichText.Content,{tagName:"figcaption",value:n}))}},_u=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M20.1 11.2l-6.7-6.7c-.1-.1-.3-.2-.5-.2H5c-.4-.1-.8.3-.8.7v7.8c0 .2.1.4.2.5l6.7 6.7c.2.2.5.4.7.5s.6.2.9.2c.3 0 .6-.1.9-.2.3-.1.5-.3.8-.5l5.6-5.6c.4-.4.7-1 .7-1.6.1-.6-.2-1.2-.6-1.6zM19 13.4L13.4 19c-.1.1-.2.1-.3.2-.2.1-.4.1-.6 0-.1 0-.2-.1-.3-.2l-6.5-6.5V5.8h6.8l6.5 6.5c.2.2.2.4.2.6 0 .1 0 .3-.2.5zM9 8c-.6 0-1 .4-1 1s.4 1 1 1 1-.4 1-1-.4-1-1-1z"}));var ku=Object(me.withSelect)((function(e){return{taxonomies:e("core").getTaxonomies()}}))((function(e){var t,r,n=e.attributes,o=e.setAttributes,c=e.taxonomies,a=n.taxonomy,i=n.showTagCounts,l=Object(J.createElement)($.InspectorControls,null,Object(J.createElement)(be.PanelBody,{title:Object(Y.__)("Tag Cloud settings")},Object(J.createElement)(be.SelectControl,{label:Object(Y.__)("Taxonomy"),options:(t={label:Object(Y.__)("- Select -"),value:"",disabled:!0},r=Object(Q.map)(Object(Q.filter)(c,"show_cloud"),(function(e){return{value:e.slug,label:e.name}})),[t].concat(Object(q.a)(r))),value:a,onChange:function(e){return o({taxonomy:e})}}),Object(J.createElement)(be.ToggleControl,{label:Object(Y.__)("Show post counts"),checked:i,onChange:function(){return o({showTagCounts:!i})}})));return Object(J.createElement)(J.Fragment,null,l,Object(J.createElement)(en.a,{key:"tag-cloud",block:"core/tag-cloud",attributes:n}))})),Cu={name:"core/tag-cloud",category:"widgets",attributes:{taxonomy:{type:"string",default:"post_tag"},showTagCounts:{type:"boolean",default:!1}},supports:{html:!1,align:!0}},Eu=Cu.name,xu={title:Object(Y.__)("Tag Cloud"),description:Object(Y.__)("A cloud of your most used tags."),icon:_u,example:{},edit:ku},Su=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.Path,{d:"M20 6H4c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H4c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h16c.3 0 .5.2.5.5v9zM10 10H8v2h2v-2zm-5 2h2v-2H5v2zm8-2h-2v2h2v-2zm-5 6h8v-2H8v2zm6-4h2v-2h-2v2zm3 0h2v-2h-2v2zm0 4h2v-2h-2v2zM5 16h2v-2H5v2z"})),Pu=function(e){var t=e.clientId,r=Object(me.useDispatch)("core/block-editor").replaceBlocks,n=Object(me.useSelect)((function(e){return e("core/block-editor").getBlock(t)}),[t]);return Object(J.createElement)(be.ToolbarButton,{onClick:function(){return r(n.clientId,Object(K.rawHandler)({HTML:Object(K.serialize)(n)}))}},Object(Y.__)("Convert to blocks"))};function Tu(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 Bu(e){for(var t=1;t1)&&(0===t.childNodes.length||!(t.childNodes[0].childNodes.length>1)&&/^\n?$/.test(t.innerText||t.textContent))}(e)||(r.props.onReplace([]),t.preventDefault(),t.stopImmediatePropagation()),t.altKey&&t.keyCode===Vt.F10&&t.stopPropagation()})),e.on("init",(function(){var e=r.editor.getBody();e.ownerDocument.activeElement===e&&(e.blur(),r.editor.focus())}))}},{key:"focus",value:function(){this.editor&&this.editor.focus()}},{key:"onToolbarKeyDown",value:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}},{key:"render",value:function(){var e=this.props.clientId;return Object(J.createElement)(J.Fragment,null,Object(J.createElement)($.BlockControls,null,Object(J.createElement)(be.ToolbarGroup,null,Object(J.createElement)(Pu,{clientId:e}))),Object(J.createElement)("div",{key:"toolbar",id:"toolbar-".concat(e),className:"block-library-classic__toolbar",onClick:this.focus,"data-placeholder":Object(Y.__)("Classic"),onKeyDown:this.onToolbarKeyDown}),Object(J.createElement)("div",{key:"editor",id:"editor-".concat(e),className:"wp-block-freeform block-library-rich-text__tinymce"}))}}]),r}(J.Component);var Ru={name:"core/freeform",category:"text",attributes:{content:{type:"string",source:"html"}},supports:{className:!1,customClassName:!1,reusable:!1}},Au=Ru.name,Iu={title:Object(Y._x)("Classic","block title"),description:Object(Y.__)("Use the classic WordPress editor."),icon:Su,edit:Mu,save:function(e){var t=e.attributes.content;return Object(J.createElement)(J.RawHTML,null,t)}},Hu=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.Path,{d:"M9 11.8l6.1-4.5c.1.4.4.7.9.7h2c.6 0 1-.4 1-1V5c0-.6-.4-1-1-1h-2c-.6 0-1 .4-1 1v.4l-6.4 4.8c-.2-.1-.4-.2-.6-.2H6c-.6 0-1 .4-1 1v2c0 .6.4 1 1 1h2c.2 0 .4-.1.6-.2l6.4 4.8v.4c0 .6.4 1 1 1h2c.6 0 1-.4 1-1v-2c0-.6-.4-1-1-1h-2c-.5 0-.8.3-.9.7L9 12.2v-.4z"})),Lu=["core/social-link"],Vu=[["core/social-link",{service:"wordpress",url:"https://wordpress.org"}],["core/social-link",{service:"facebook"}],["core/social-link",{service:"twitter"}],["core/social-link",{service:"instagram"}],["core/social-link",{service:"linkedin"}],["core/social-link",{service:"youtube"}]];var Du=function(e){var t=e.attributes.openInNewTab,r=e.setAttributes,n=Object($.__experimentalUseBlockWrapperProps)();return Object(J.createElement)(J.Fragment,null,Object(J.createElement)($.InspectorControls,null,Object(J.createElement)(be.PanelBody,{title:Object(Y.__)("Link settings")},Object(J.createElement)(be.ToggleControl,{label:Object(Y.__)("Open links in new tab"),checked:t,onChange:function(){return r({openInNewTab:!t})}}))),Object(J.createElement)($.InnerBlocks,{allowedBlocks:Lu,templateLock:!1,template:Vu,orientation:"horizontal",__experimentalTagName:"ul",__experimentalPassedProps:n,__experimentalAppenderTagName:"li"}))};var Fu={name:"core/social-links",category:"widgets",attributes:{openInNewTab:{type:"boolean",default:!1}},providesContext:{openInNewTab:"openInNewTab"},supports:{align:["left","center","right"],lightBlockWrapper:!0,anchor:!0}},Uu=Fu.name,Gu={title:Object(Y.__)("Social Icons"),description:Object(Y.__)("Display icons linking to your social media profiles or websites."),keywords:[Object(Y._x)("links","block keywords")],example:{innerBlocks:[{name:"core/social-link",attributes:{service:"wordpress",url:"https://wordpress.org"}},{name:"core/social-link",attributes:{service:"facebook",url:"https://www.facebook.com/WordPress/"}},{name:"core/social-link",attributes:{service:"twitter",url:"https://twitter.com/WordPress"}}]},styles:[{name:"default",label:Object(Y.__)("Default"),isDefault:!0},{name:"logos-only",label:Object(Y.__)("Logos Only")},{name:"pill-shape",label:Object(Y.__)("Pill Shape")}],icon:Hu,edit:Du,save:function(e){var t=e.className;return Object(J.createElement)("ul",{className:t},Object(J.createElement)($.InnerBlocks.Content,null))}},Wu=r(215),qu=function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M19.647,16.706a1.134,1.134,0,0,0-.343-.833l-2.549-2.549a1.134,1.134,0,0,0-.833-.343,1.168,1.168,0,0,0-.883.392l.233.226q.2.189.264.264a2.922,2.922,0,0,1,.184.233.986.986,0,0,1,.159.312,1.242,1.242,0,0,1,.043.337,1.172,1.172,0,0,1-1.176,1.176,1.237,1.237,0,0,1-.337-.043,1,1,0,0,1-.312-.159,2.76,2.76,0,0,1-.233-.184q-.073-.068-.264-.264l-.226-.233a1.19,1.19,0,0,0-.4.895,1.134,1.134,0,0,0,.343.833L15.837,19.3a1.13,1.13,0,0,0,.833.331,1.18,1.18,0,0,0,.833-.318l1.8-1.789a1.12,1.12,0,0,0,.343-.821Zm-8.615-8.64a1.134,1.134,0,0,0-.343-.833L8.163,4.7a1.134,1.134,0,0,0-.833-.343,1.184,1.184,0,0,0-.833.331L4.7,6.473a1.12,1.12,0,0,0-.343.821,1.134,1.134,0,0,0,.343.833l2.549,2.549a1.13,1.13,0,0,0,.833.331,1.184,1.184,0,0,0,.883-.38L8.728,10.4q-.2-.189-.264-.264A2.922,2.922,0,0,1,8.28,9.9a.986.986,0,0,1-.159-.312,1.242,1.242,0,0,1-.043-.337A1.172,1.172,0,0,1,9.254,8.079a1.237,1.237,0,0,1,.337.043,1,1,0,0,1,.312.159,2.761,2.761,0,0,1,.233.184q.073.068.264.264l.226.233a1.19,1.19,0,0,0,.4-.895ZM22,16.706a3.343,3.343,0,0,1-1.042,2.488l-1.8,1.789a3.536,3.536,0,0,1-4.988-.025l-2.525-2.537a3.384,3.384,0,0,1-1.017-2.488,3.448,3.448,0,0,1,1.078-2.561l-1.078-1.078a3.434,3.434,0,0,1-2.549,1.078,3.4,3.4,0,0,1-2.5-1.029L3.029,9.794A3.4,3.4,0,0,1,2,7.294,3.343,3.343,0,0,1,3.042,4.806l1.8-1.789A3.384,3.384,0,0,1,7.331,2a3.357,3.357,0,0,1,2.5,1.042l2.525,2.537a3.384,3.384,0,0,1,1.017,2.488,3.448,3.448,0,0,1-1.078,2.561l1.078,1.078a3.551,3.551,0,0,1,5.049-.049l2.549,2.549A3.4,3.4,0,0,1,22,16.706Z"}))},Zu=[{isDefault:!0,name:"wordpress",attributes:{service:"wordpress"},title:"WordPress",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.Path,{d:"M12.158,12.786L9.46,20.625c0.806,0.237,1.657,0.366,2.54,0.366c1.047,0,2.051-0.181,2.986-0.51 c-0.024-0.038-0.046-0.079-0.065-0.124L12.158,12.786z M3.009,12c0,3.559,2.068,6.634,5.067,8.092L3.788,8.341 C3.289,9.459,3.009,10.696,3.009,12z M18.069,11.546c0-1.112-0.399-1.881-0.741-2.48c-0.456-0.741-0.883-1.368-0.883-2.109 c0-0.826,0.627-1.596,1.51-1.596c0.04,0,0.078,0.005,0.116,0.007C16.472,3.904,14.34,3.009,12,3.009 c-3.141,0-5.904,1.612-7.512,4.052c0.211,0.007,0.41,0.011,0.579,0.011c0.94,0,2.396-0.114,2.396-0.114 C7.947,6.93,8.004,7.642,7.52,7.699c0,0-0.487,0.057-1.029,0.085l3.274,9.739l1.968-5.901l-1.401-3.838 C9.848,7.756,9.389,7.699,9.389,7.699C8.904,7.67,8.961,6.93,9.446,6.958c0,0,1.484,0.114,2.368,0.114 c0.94,0,2.397-0.114,2.397-0.114c0.485-0.028,0.542,0.684,0.057,0.741c0,0-0.488,0.057-1.029,0.085l3.249,9.665l0.897-2.996 C17.841,13.284,18.069,12.316,18.069,11.546z M19.889,7.686c0.039,0.286,0.06,0.593,0.06,0.924c0,0.912-0.171,1.938-0.684,3.22 l-2.746,7.94c2.673-1.558,4.47-4.454,4.47-7.771C20.991,10.436,20.591,8.967,19.889,7.686z M12,22C6.486,22,2,17.514,2,12 C2,6.486,6.486,2,12,2c5.514,0,10,4.486,10,10C22,17.514,17.514,22,12,22z"}))}},{name:"fivehundredpx",attributes:{service:"fivehundredpx"},title:"500px",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M6.94026,15.1412c.00437.01213.108.29862.168.44064a6.55008,6.55008,0,1,0,6.03191-9.09557,6.68654,6.68654,0,0,0-2.58357.51467A8.53914,8.53914,0,0,0,8.21268,8.61344L8.209,8.61725V3.22948l9.0504-.00008c.32934-.0036.32934-.46353.32934-.61466s0-.61091-.33035-.61467L7.47248,2a.43.43,0,0,0-.43131.42692v7.58355c0,.24466.30476.42131.58793.4819.553.11812.68074-.05864.81617-.2457l.018-.02481A10.52673,10.52673,0,0,1,9.32258,9.258a5.35268,5.35268,0,1,1,7.58985,7.54976,5.417,5.417,0,0,1-3.80867,1.56365,5.17483,5.17483,0,0,1-2.69822-.74478l.00342-4.61111a2.79372,2.79372,0,0,1,.71372-1.78792,2.61611,2.61611,0,0,1,1.98282-.89477,2.75683,2.75683,0,0,1,1.95525.79477,2.66867,2.66867,0,0,1,.79656,1.909,2.724,2.724,0,0,1-2.75849,2.748,4.94651,4.94651,0,0,1-.86254-.13719c-.31234-.093-.44519.34058-.48892.48349-.16811.54966.08453.65862.13687.67489a3.75751,3.75751,0,0,0,1.25234.18375,3.94634,3.94634,0,1,0-2.82444-6.742,3.67478,3.67478,0,0,0-1.13028,2.584l-.00041.02323c-.0035.11667-.00579,2.881-.00644,3.78811l-.00407-.00451a6.18521,6.18521,0,0,1-1.0851-1.86092c-.10544-.27856-.34358-.22925-.66857-.12917-.14192.04372-.57386.17677-.47833.489Zm4.65165-1.08338a.51346.51346,0,0,0,.19513.31818l.02276.022a.52945.52945,0,0,0,.3517.18416.24242.24242,0,0,0,.16577-.0611c.05473-.05082.67382-.67812.73287-.738l.69041.68819a.28978.28978,0,0,0,.21437.11032.53239.53239,0,0,0,.35708-.19486c.29792-.30419.14885-.46821.07676-.54751l-.69954-.69975.72952-.73469c.16-.17311.01874-.35708-.12218-.498-.20461-.20461-.402-.25742-.52855-.14083l-.7254.72665-.73354-.73375a.20128.20128,0,0,0-.14179-.05695.54135.54135,0,0,0-.34379.19648c-.22561.22555-.274.38149-.15656.5059l.73374.7315-.72942.73072A.26589.26589,0,0,0,11.59191,14.05782Zm1.59866-9.915A8.86081,8.86081,0,0,0,9.854,4.776a.26169.26169,0,0,0-.16938.22759.92978.92978,0,0,0,.08619.42094c.05682.14524.20779.531.50006.41955a8.40969,8.40969,0,0,1,2.91968-.55484,7.87875,7.87875,0,0,1,3.086.62286,8.61817,8.61817,0,0,1,2.30562,1.49315.2781.2781,0,0,0,.18318.07586c.15529,0,.30425-.15253.43167-.29551.21268-.23861.35873-.4369.1492-.63538a8.50425,8.50425,0,0,0-2.62312-1.694A9.0177,9.0177,0,0,0,13.19058,4.14283ZM19.50945,18.6236h0a.93171.93171,0,0,0-.36642-.25406.26589.26589,0,0,0-.27613.06613l-.06943.06929A7.90606,7.90606,0,0,1,7.60639,18.505a7.57284,7.57284,0,0,1-1.696-2.51537,8.58715,8.58715,0,0,1-.5147-1.77754l-.00871-.04864c-.04939-.25873-.28755-.27684-.62981-.22448-.14234.02178-.5755.088-.53426.39969l.001.00712a9.08807,9.08807,0,0,0,15.406,4.99094c.00193-.00192.04753-.04718.0725-.07436C19.79425,19.16234,19.87422,18.98728,19.50945,18.6236Z"}))}},{name:"amazon",attributes:{service:"amazon"},title:"Amazon",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M13.582,8.182C11.934,8.367,9.78,8.49,8.238,9.166c-1.781,0.769-3.03,2.337-3.03,4.644 c0,2.953,1.86,4.429,4.253,4.429c2.02,0,3.125-0.477,4.685-2.065c0.516,0.747,0.685,1.109,1.629,1.894 c0.212,0.114,0.483,0.103,0.672-0.066l0.006,0.006c0.567-0.505,1.599-1.401,2.18-1.888c0.231-0.188,0.19-0.496,0.009-0.754 c-0.52-0.718-1.072-1.303-1.072-2.634V8.305c0-1.876,0.133-3.599-1.249-4.891C15.23,2.369,13.422,2,12.04,2 C9.336,2,6.318,3.01,5.686,6.351C5.618,6.706,5.877,6.893,6.109,6.945l2.754,0.298C9.121,7.23,9.308,6.977,9.357,6.72 c0.236-1.151,1.2-1.706,2.284-1.706c0.584,0,1.249,0.215,1.595,0.738c0.398,0.584,0.346,1.384,0.346,2.061V8.182z M13.049,14.088 c-0.451,0.8-1.169,1.291-1.967,1.291c-1.09,0-1.728-0.83-1.728-2.061c0-2.42,2.171-2.86,4.227-2.86v0.615 C13.582,12.181,13.608,13.104,13.049,14.088z M20.683,19.339C18.329,21.076,14.917,22,11.979,22c-4.118,0-7.826-1.522-10.632-4.057 c-0.22-0.199-0.024-0.471,0.241-0.317c3.027,1.762,6.771,2.823,10.639,2.823c2.608,0,5.476-0.541,8.115-1.66 C20.739,18.62,21.072,19.051,20.683,19.339z M21.336,21.043c-0.194,0.163-0.379,0.076-0.293-0.139 c0.284-0.71,0.92-2.298,0.619-2.684c-0.301-0.386-1.99-0.183-2.749-0.092c-0.23,0.027-0.266-0.173-0.059-0.319 c1.348-0.946,3.555-0.673,3.811-0.356C22.925,17.773,22.599,19.986,21.336,21.043z"}))}},{name:"bandcamp",attributes:{service:"bandcamp"},title:"Bandcamp",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M15.27 17.289 3 17.289 8.73 6.711 21 6.711 15.27 17.289"}))}},{name:"behance",attributes:{service:"behance"},title:"Behance",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M7.799,5.698c0.589,0,1.12,0.051,1.606,0.156c0.482,0.102,0.894,0.273,1.241,0.507c0.344,0.235,0.612,0.546,0.804,0.938 c0.188,0.387,0.281,0.871,0.281,1.443c0,0.619-0.141,1.137-0.421,1.551c-0.284,0.413-0.7,0.751-1.255,1.014 c0.756,0.218,1.317,0.601,1.689,1.146c0.374,0.549,0.557,1.205,0.557,1.975c0,0.623-0.12,1.161-0.359,1.612 c-0.241,0.457-0.569,0.828-0.973,1.114c-0.408,0.288-0.876,0.5-1.399,0.637C9.052,17.931,8.514,18,7.963,18H2V5.698H7.799 M7.449,10.668c0.481,0,0.878-0.114,1.192-0.345c0.311-0.228,0.463-0.603,0.463-1.119c0-0.286-0.051-0.523-0.152-0.707 C8.848,8.315,8.711,8.171,8.536,8.07C8.362,7.966,8.166,7.894,7.94,7.854c-0.224-0.044-0.457-0.06-0.697-0.06H4.709v2.874H7.449z M7.6,15.905c0.267,0,0.521-0.024,0.759-0.077c0.243-0.053,0.457-0.137,0.637-0.261c0.182-0.12,0.332-0.283,0.441-0.491 C9.547,14.87,9.6,14.602,9.6,14.278c0-0.633-0.18-1.084-0.533-1.357c-0.356-0.27-0.83-0.404-1.413-0.404H4.709v3.388L7.6,15.905z M16.162,15.864c0.367,0.358,0.897,0.538,1.583,0.538c0.493,0,0.92-0.125,1.277-0.374c0.354-0.248,0.571-0.514,0.654-0.79h2.155 c-0.347,1.072-0.872,1.838-1.589,2.299C19.534,18,18.67,18.23,17.662,18.23c-0.701,0-1.332-0.113-1.899-0.337 c-0.567-0.227-1.041-0.544-1.439-0.958c-0.389-0.415-0.689-0.907-0.904-1.484c-0.213-0.574-0.32-1.21-0.32-1.899 c0-0.666,0.11-1.288,0.329-1.863c0.222-0.577,0.529-1.075,0.933-1.492c0.406-0.42,0.885-0.751,1.444-0.994 c0.558-0.241,1.175-0.363,1.857-0.363c0.754,0,1.414,0.145,1.98,0.44c0.563,0.291,1.026,0.686,1.389,1.181 c0.363,0.493,0.622,1.057,0.783,1.69c0.16,0.632,0.217,1.292,0.171,1.983h-6.428C15.557,14.84,15.795,15.506,16.162,15.864 M18.973,11.184c-0.291-0.321-0.783-0.496-1.384-0.496c-0.39,0-0.714,0.066-0.973,0.2c-0.254,0.132-0.461,0.297-0.621,0.491 c-0.157,0.197-0.265,0.405-0.328,0.628c-0.063,0.217-0.101,0.413-0.111,0.587h3.98C19.478,11.969,19.265,11.509,18.973,11.184z M15.057,7.738h4.985V6.524h-4.985L15.057,7.738z"}))}},{name:"chain",attributes:{service:"chain"},title:"Link",icon:qu},{name:"codepen",attributes:{service:"codepen"},title:"CodePen",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M22.016,8.84c-0.002-0.013-0.005-0.025-0.007-0.037c-0.005-0.025-0.008-0.048-0.015-0.072 c-0.003-0.015-0.01-0.028-0.013-0.042c-0.008-0.02-0.015-0.04-0.023-0.062c-0.007-0.015-0.013-0.028-0.02-0.042 c-0.008-0.02-0.018-0.037-0.03-0.057c-0.007-0.013-0.017-0.027-0.025-0.038c-0.012-0.018-0.023-0.035-0.035-0.052 c-0.01-0.013-0.02-0.025-0.03-0.037c-0.015-0.017-0.028-0.032-0.043-0.045c-0.01-0.012-0.022-0.023-0.035-0.035 c-0.015-0.015-0.032-0.028-0.048-0.04c-0.012-0.01-0.025-0.02-0.037-0.03c-0.005-0.003-0.01-0.008-0.015-0.012l-9.161-6.096 c-0.289-0.192-0.666-0.192-0.955,0L2.359,8.237C2.354,8.24,2.349,8.245,2.344,8.249L2.306,8.277 c-0.017,0.013-0.033,0.027-0.048,0.04C2.246,8.331,2.234,8.342,2.222,8.352c-0.015,0.015-0.028,0.03-0.042,0.047 c-0.012,0.013-0.022,0.023-0.03,0.037C2.139,8.453,2.125,8.471,2.115,8.488C2.107,8.501,2.099,8.514,2.09,8.526 C2.079,8.548,2.069,8.565,2.06,8.585C2.054,8.6,2.047,8.613,2.04,8.626C2.032,8.648,2.025,8.67,2.019,8.69 c-0.005,0.013-0.01,0.027-0.013,0.042C1.999,8.755,1.995,8.778,1.99,8.803C1.989,8.817,1.985,8.828,1.984,8.84 C1.978,8.879,1.975,8.915,1.975,8.954v6.093c0,0.037,0.003,0.075,0.008,0.112c0.002,0.012,0.005,0.025,0.007,0.038 c0.005,0.023,0.008,0.047,0.015,0.072c0.003,0.015,0.008,0.028,0.013,0.04c0.007,0.022,0.013,0.042,0.022,0.063 c0.007,0.015,0.013,0.028,0.02,0.04c0.008,0.02,0.018,0.038,0.03,0.058c0.007,0.013,0.015,0.027,0.025,0.038 c0.012,0.018,0.023,0.035,0.035,0.052c0.01,0.013,0.02,0.025,0.03,0.037c0.013,0.015,0.028,0.032,0.042,0.045 c0.012,0.012,0.023,0.023,0.035,0.035c0.015,0.013,0.032,0.028,0.048,0.04l0.038,0.03c0.005,0.003,0.01,0.007,0.013,0.01 l9.163,6.095C11.668,21.953,11.833,22,12,22c0.167,0,0.332-0.047,0.478-0.144l9.163-6.095l0.015-0.01 c0.013-0.01,0.027-0.02,0.037-0.03c0.018-0.013,0.035-0.028,0.048-0.04c0.013-0.012,0.025-0.023,0.035-0.035 c0.017-0.015,0.03-0.032,0.043-0.045c0.01-0.013,0.02-0.025,0.03-0.037c0.013-0.018,0.025-0.035,0.035-0.052 c0.008-0.013,0.018-0.027,0.025-0.038c0.012-0.02,0.022-0.038,0.03-0.058c0.007-0.013,0.013-0.027,0.02-0.04 c0.008-0.022,0.015-0.042,0.023-0.063c0.003-0.013,0.01-0.027,0.013-0.04c0.007-0.025,0.01-0.048,0.015-0.072 c0.002-0.013,0.005-0.027,0.007-0.037c0.003-0.042,0.007-0.079,0.007-0.117V8.954C22.025,8.915,22.022,8.879,22.016,8.84z M12.862,4.464l6.751,4.49l-3.016,2.013l-3.735-2.492V4.464z M11.138,4.464v4.009l-3.735,2.494L4.389,8.954L11.138,4.464z M3.699,10.562L5.853,12l-2.155,1.438V10.562z M11.138,19.536l-6.749-4.491l3.015-2.011l3.735,2.492V19.536z M12,14.035L8.953,12 L12,9.966L15.047,12L12,14.035z M12.862,19.536v-4.009l3.735-2.492l3.016,2.011L12.862,19.536z M20.303,13.438L18.147,12 l2.156-1.438L20.303,13.438z"}))}},{name:"deviantart",attributes:{service:"deviantart"},title:"DeviantArt",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M 18.19 5.636 18.19 2 18.188 2 14.553 2 14.19 2.366 12.474 5.636 11.935 6 5.81 6 5.81 10.994 9.177 10.994 9.477 11.357 5.81 18.363 5.81 22 5.811 22 9.447 22 9.81 21.634 11.526 18.364 12.065 18 18.19 18 18.19 13.006 14.823 13.006 14.523 12.641 18.19 5.636z"}))}},{name:"dribbble",attributes:{service:"dribbble"},title:"Dribbble",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M12,22C6.486,22,2,17.514,2,12S6.486,2,12,2c5.514,0,10,4.486,10,10S17.514,22,12,22z M20.434,13.369 c-0.292-0.092-2.644-0.794-5.32-0.365c1.117,3.07,1.572,5.57,1.659,6.09C18.689,17.798,20.053,15.745,20.434,13.369z M15.336,19.876c-0.127-0.749-0.623-3.361-1.822-6.477c-0.019,0.006-0.038,0.013-0.056,0.019c-4.818,1.679-6.547,5.02-6.701,5.334 c1.448,1.129,3.268,1.803,5.243,1.803C13.183,20.555,14.311,20.313,15.336,19.876z M5.654,17.724 c0.193-0.331,2.538-4.213,6.943-5.637c0.111-0.036,0.224-0.07,0.337-0.102c-0.214-0.485-0.448-0.971-0.692-1.45 c-4.266,1.277-8.405,1.223-8.778,1.216c-0.003,0.087-0.004,0.174-0.004,0.261C3.458,14.207,4.29,16.21,5.654,17.724z M3.639,10.264 c0.382,0.005,3.901,0.02,7.897-1.041c-1.415-2.516-2.942-4.631-3.167-4.94C5.979,5.41,4.193,7.613,3.639,10.264z M9.998,3.709 c0.236,0.316,1.787,2.429,3.187,5c3.037-1.138,4.323-2.867,4.477-3.085C16.154,4.286,14.17,3.471,12,3.471 C11.311,3.471,10.641,3.554,9.998,3.709z M18.612,6.612C18.432,6.855,17,8.69,13.842,9.979c0.199,0.407,0.389,0.821,0.567,1.237 c0.063,0.148,0.124,0.295,0.184,0.441c2.842-0.357,5.666,0.215,5.948,0.275C20.522,9.916,19.801,8.065,18.612,6.612z"}))}},{name:"dropbox",attributes:{service:"dropbox"},title:"Dropbox",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M12,6.134L6.069,9.797L2,6.54l5.883-3.843L12,6.134z M2,13.054l5.883,3.843L12,13.459L6.069,9.797L2,13.054z M12,13.459 l4.116,3.439L22,13.054l-4.069-3.257L12,13.459z M22,6.54l-5.884-3.843L12,6.134l5.931,3.663L22,6.54z M12.011,14.2l-4.129,3.426 l-1.767-1.153v1.291l5.896,3.539l5.897-3.539v-1.291l-1.769,1.153L12.011,14.2z"}))}},{name:"etsy",attributes:{service:"etsy"},title:"Etsy",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M9.16033,4.038c0-.27174.02717-.43478.48913-.43478h6.22283c1.087,0,1.68478.92391,2.11957,2.663l.35326,1.38587h1.05978C19.59511,3.712,19.75815,2,19.75815,2s-2.663.29891-4.23913.29891h-7.962L3.29076,2.163v1.1413L4.731,3.57609c1.00543.19022,1.25.40761,1.33152,1.33152,0,0,.08152,2.71739.08152,7.20109s-.08152,7.17391-.08152,7.17391c0,.81522-.32609,1.11413-1.33152,1.30435l-1.44022.27174V22l4.2663-.13587h7.11957c1.60326,0,5.32609.13587,5.32609.13587.08152-.97826.625-5.40761.70652-5.89674H19.7038L18.644,18.52174c-.84239,1.90217-2.06522,2.038-3.42391,2.038H11.1712c-1.3587,0-2.01087-.54348-2.01087-1.712V12.65217s3.0163,0,3.99457.08152c.76087.05435,1.22283.27174,1.46739,1.33152l.32609,1.413h1.16848l-.08152-3.55978.163-3.587H15.02989l-.38043,1.57609c-.24457,1.03261-.40761,1.22283-1.46739,1.33152-1.38587.13587-4.02174.1087-4.02174.1087Z"}))}},{name:"facebook",attributes:{service:"facebook"},title:"Facebook",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M12 2C6.5 2 2 6.5 2 12c0 5 3.7 9.1 8.4 9.9v-7H7.9V12h2.5V9.8c0-2.5 1.5-3.9 3.8-3.9 1.1 0 2.2.2 2.2.2v2.5h-1.3c-1.2 0-1.6.8-1.6 1.6V12h2.8l-.4 2.9h-2.3v7C18.3 21.1 22 17 22 12c0-5.5-4.5-10-10-10z"}))}},{name:"feed",attributes:{service:"feed"},title:"RSS Feed",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M2,8.667V12c5.515,0,10,4.485,10,10h3.333C15.333,14.637,9.363,8.667,2,8.667z M2,2v3.333 c9.19,0,16.667,7.477,16.667,16.667H22C22,10.955,13.045,2,2,2z M4.5,17C3.118,17,2,18.12,2,19.5S3.118,22,4.5,22S7,20.88,7,19.5 S5.882,17,4.5,17z"}))}},{name:"flickr",attributes:{service:"flickr"},title:"Flickr",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M6.5,7c-2.75,0-5,2.25-5,5s2.25,5,5,5s5-2.25,5-5S9.25,7,6.5,7z M17.5,7c-2.75,0-5,2.25-5,5s2.25,5,5,5s5-2.25,5-5 S20.25,7,17.5,7z"}))}},{name:"foursquare",attributes:{service:"foursquare"},title:"Foursquare",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M17.573,2c0,0-9.197,0-10.668,0S5,3.107,5,3.805s0,16.948,0,16.948c0,0.785,0.422,1.077,0.66,1.172 c0.238,0.097,0.892,0.177,1.285-0.275c0,0,5.035-5.843,5.122-5.93c0.132-0.132,0.132-0.132,0.262-0.132h3.26 c1.368,0,1.588-0.977,1.732-1.552c0.078-0.318,0.692-3.428,1.225-6.122l0.675-3.368C19.56,2.893,19.14,2,17.573,2z M16.495,7.22 c-0.053,0.252-0.372,0.518-0.665,0.518c-0.293,0-4.157,0-4.157,0c-0.467,0-0.802,0.318-0.802,0.787v0.508 c0,0.467,0.337,0.798,0.805,0.798c0,0,3.197,0,3.528,0s0.655,0.362,0.583,0.715c-0.072,0.353-0.407,2.102-0.448,2.295 c-0.04,0.193-0.262,0.523-0.655,0.523c-0.33,0-2.88,0-2.88,0c-0.523,0-0.683,0.068-1.033,0.503 c-0.35,0.437-3.505,4.223-3.505,4.223c-0.032,0.035-0.063,0.027-0.063-0.015V4.852c0-0.298,0.26-0.648,0.648-0.648 c0,0,8.228,0,8.562,0c0.315,0,0.61,0.297,0.528,0.683L16.495,7.22z"}))}},{name:"goodreads",attributes:{service:"goodreads"},title:"Goodreads",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M17.3,17.5c-0.2,0.8-0.5,1.4-1,1.9c-0.4,0.5-1,0.9-1.7,1.2C13.9,20.9,13.1,21,12,21c-0.6,0-1.3-0.1-1.9-0.2 c-0.6-0.1-1.1-0.4-1.6-0.7c-0.5-0.3-0.9-0.7-1.2-1.2c-0.3-0.5-0.5-1.1-0.5-1.7h1.5c0.1,0.5,0.2,0.9,0.5,1.2 c0.2,0.3,0.5,0.6,0.9,0.8c0.3,0.2,0.7,0.3,1.1,0.4c0.4,0.1,0.8,0.1,1.2,0.1c1.4,0,2.5-0.4,3.1-1.2c0.6-0.8,1-2,1-3.5v-1.7h0 c-0.4,0.8-0.9,1.4-1.6,1.9c-0.7,0.5-1.5,0.7-2.4,0.7c-1,0-1.9-0.2-2.6-0.5C8.7,15,8.1,14.5,7.7,14c-0.5-0.6-0.8-1.3-1-2.1 c-0.2-0.8-0.3-1.6-0.3-2.5c0-0.9,0.1-1.7,0.4-2.5c0.3-0.8,0.6-1.5,1.1-2c0.5-0.6,1.1-1,1.8-1.4C10.3,3.2,11.1,3,12,3 c0.5,0,0.9,0.1,1.3,0.2c0.4,0.1,0.8,0.3,1.1,0.5c0.3,0.2,0.6,0.5,0.9,0.8c0.3,0.3,0.5,0.6,0.6,1h0V3.4h1.5V15 C17.6,15.9,17.5,16.7,17.3,17.5z M13.8,14.1c0.5-0.3,0.9-0.7,1.3-1.1c0.3-0.5,0.6-1,0.8-1.6c0.2-0.6,0.3-1.2,0.3-1.9 c0-0.6-0.1-1.2-0.2-1.9c-0.1-0.6-0.4-1.2-0.7-1.7c-0.3-0.5-0.7-0.9-1.3-1.2c-0.5-0.3-1.1-0.5-1.9-0.5s-1.4,0.2-1.9,0.5 c-0.5,0.3-1,0.7-1.3,1.2C8.5,6.4,8.3,7,8.1,7.6C8,8.2,7.9,8.9,7.9,9.5c0,0.6,0.1,1.3,0.2,1.9C8.3,12,8.6,12.5,8.9,13 c0.3,0.5,0.8,0.8,1.3,1.1c0.5,0.3,1.1,0.4,1.9,0.4C12.7,14.5,13.3,14.4,13.8,14.1z"}))}},{name:"google",attributes:{service:"google"},title:"Google",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M12.02,10.18v3.72v0.01h5.51c-0.26,1.57-1.67,4.22-5.5,4.22c-3.31,0-6.01-2.75-6.01-6.12s2.7-6.12,6.01-6.12 c1.87,0,3.13,0.8,3.85,1.48l2.84-2.76C16.99,2.99,14.73,2,12.03,2c-5.52,0-10,4.48-10,10s4.48,10,10,10c5.77,0,9.6-4.06,9.6-9.77 c0-0.83-0.11-1.42-0.25-2.05H12.02z"}))}},{name:"github",attributes:{service:"github"},title:"GitHub",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M12,2C6.477,2,2,6.477,2,12c0,4.419,2.865,8.166,6.839,9.489c0.5,0.09,0.682-0.218,0.682-0.484 c0-0.236-0.009-0.866-0.014-1.699c-2.782,0.602-3.369-1.34-3.369-1.34c-0.455-1.157-1.11-1.465-1.11-1.465 c-0.909-0.62,0.069-0.608,0.069-0.608c1.004,0.071,1.532,1.03,1.532,1.03c0.891,1.529,2.341,1.089,2.91,0.833 c0.091-0.647,0.349-1.086,0.635-1.337c-2.22-0.251-4.555-1.111-4.555-4.943c0-1.091,0.39-1.984,1.03-2.682 C6.546,8.54,6.202,7.524,6.746,6.148c0,0,0.84-0.269,2.75,1.025C10.295,6.95,11.15,6.84,12,6.836 c0.85,0.004,1.705,0.114,2.504,0.336c1.909-1.294,2.748-1.025,2.748-1.025c0.546,1.376,0.202,2.394,0.1,2.646 c0.64,0.699,1.026,1.591,1.026,2.682c0,3.841-2.337,4.687-4.565,4.935c0.359,0.307,0.679,0.917,0.679,1.852 c0,1.335-0.012,2.415-0.012,2.741c0,0.269,0.18,0.579,0.688,0.481C19.138,20.161,22,16.416,22,12C22,6.477,17.523,2,12,2z"}))}},{name:"instagram",attributes:{service:"instagram"},title:"Instagram",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M12,4.622c2.403,0,2.688,0.009,3.637,0.052c0.877,0.04,1.354,0.187,1.671,0.31c0.42,0.163,0.72,0.358,1.035,0.673 c0.315,0.315,0.51,0.615,0.673,1.035c0.123,0.317,0.27,0.794,0.31,1.671c0.043,0.949,0.052,1.234,0.052,3.637 s-0.009,2.688-0.052,3.637c-0.04,0.877-0.187,1.354-0.31,1.671c-0.163,0.42-0.358,0.72-0.673,1.035 c-0.315,0.315-0.615,0.51-1.035,0.673c-0.317,0.123-0.794,0.27-1.671,0.31c-0.949,0.043-1.233,0.052-3.637,0.052 s-2.688-0.009-3.637-0.052c-0.877-0.04-1.354-0.187-1.671-0.31c-0.42-0.163-0.72-0.358-1.035-0.673 c-0.315-0.315-0.51-0.615-0.673-1.035c-0.123-0.317-0.27-0.794-0.31-1.671C4.631,14.688,4.622,14.403,4.622,12 s0.009-2.688,0.052-3.637c0.04-0.877,0.187-1.354,0.31-1.671c0.163-0.42,0.358-0.72,0.673-1.035 c0.315-0.315,0.615-0.51,1.035-0.673c0.317-0.123,0.794-0.27,1.671-0.31C9.312,4.631,9.597,4.622,12,4.622 M12,3 C9.556,3,9.249,3.01,8.289,3.054C7.331,3.098,6.677,3.25,6.105,3.472C5.513,3.702,5.011,4.01,4.511,4.511 c-0.5,0.5-0.808,1.002-1.038,1.594C3.25,6.677,3.098,7.331,3.054,8.289C3.01,9.249,3,9.556,3,12c0,2.444,0.01,2.751,0.054,3.711 c0.044,0.958,0.196,1.612,0.418,2.185c0.23,0.592,0.538,1.094,1.038,1.594c0.5,0.5,1.002,0.808,1.594,1.038 c0.572,0.222,1.227,0.375,2.185,0.418C9.249,20.99,9.556,21,12,21s2.751-0.01,3.711-0.054c0.958-0.044,1.612-0.196,2.185-0.418 c0.592-0.23,1.094-0.538,1.594-1.038c0.5-0.5,0.808-1.002,1.038-1.594c0.222-0.572,0.375-1.227,0.418-2.185 C20.99,14.751,21,14.444,21,12s-0.01-2.751-0.054-3.711c-0.044-0.958-0.196-1.612-0.418-2.185c-0.23-0.592-0.538-1.094-1.038-1.594 c-0.5-0.5-1.002-0.808-1.594-1.038c-0.572-0.222-1.227-0.375-2.185-0.418C14.751,3.01,14.444,3,12,3L12,3z M12,7.378 c-2.552,0-4.622,2.069-4.622,4.622S9.448,16.622,12,16.622s4.622-2.069,4.622-4.622S14.552,7.378,12,7.378z M12,15 c-1.657,0-3-1.343-3-3s1.343-3,3-3s3,1.343,3,3S13.657,15,12,15z M16.804,6.116c-0.596,0-1.08,0.484-1.08,1.08 s0.484,1.08,1.08,1.08c0.596,0,1.08-0.484,1.08-1.08S17.401,6.116,16.804,6.116z"}))}},{name:"lastfm",attributes:{service:"lastfm"},title:"Last.fm",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M 12.0002 1.5 C 6.2006 1.5 1.5 6.2011 1.5 11.9998 C 1.5 17.799 6.2006 22.5 12.0002 22.5 C 17.799 22.5 22.5 17.799 22.5 11.9998 C 22.5 6.2011 17.799 1.5 12.0002 1.5 Z M 16.1974 16.2204 C 14.8164 16.2152 13.9346 15.587 13.3345 14.1859 L 13.1816 13.8451 L 11.8541 10.8101 C 11.4271 9.7688 10.3526 9.0712 9.1801 9.0712 C 7.5695 9.0712 6.2593 10.3851 6.2593 12.001 C 6.2593 13.6165 7.5695 14.9303 9.1801 14.9303 C 10.272 14.9303 11.2651 14.3275 11.772 13.3567 C 11.7893 13.3235 11.8239 13.302 11.863 13.3038 C 11.9007 13.3054 11.9353 13.3288 11.9504 13.3632 L 12.4865 14.6046 C 12.5016 14.639 12.4956 14.6778 12.4723 14.7069 C 11.6605 15.6995 10.4602 16.2683 9.1801 16.2683 C 6.8331 16.2683 4.9234 14.3536 4.9234 12.001 C 4.9234 9.6468 6.833 7.732 9.1801 7.732 C 10.9572 7.732 12.3909 8.6907 13.1138 10.3636 C 13.1206 10.3802 13.8412 12.0708 14.4744 13.5191 C 14.8486 14.374 15.1462 14.896 16.1288 14.9292 C 17.0663 14.9613 17.7538 14.4122 17.7538 13.6485 C 17.7538 12.9691 17.3321 12.8004 16.3803 12.4822 C 14.7365 11.9398 13.845 11.3861 13.845 10.0182 C 13.845 8.6809 14.7667 7.8162 16.192 7.8162 C 17.1288 7.8162 17.8155 8.2287 18.2921 9.0768 C 18.305 9.1006 18.3079 9.1281 18.3004 9.1542 C 18.2929 9.1803 18.2748 9.2021 18.2507 9.2138 L 17.3614 9.669 C 17.3178 9.692 17.2643 9.6781 17.2356 9.6385 C 16.9329 9.2135 16.5956 9.0251 16.1423 9.0251 C 15.5512 9.0251 15.122 9.429 15.122 9.9865 C 15.122 10.6738 15.6529 10.8414 16.5339 11.1192 C 16.6491 11.1558 16.7696 11.194 16.8939 11.2343 C 18.2763 11.6865 19.0768 12.2311 19.0768 13.6836 C 19.0769 15.1297 17.8389 16.2204 16.1974 16.2204 Z"}))}},{name:"linkedin",attributes:{service:"linkedin"},title:"LinkedIn",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M19.7,3H4.3C3.582,3,3,3.582,3,4.3v15.4C3,20.418,3.582,21,4.3,21h15.4c0.718,0,1.3-0.582,1.3-1.3V4.3 C21,3.582,20.418,3,19.7,3z M8.339,18.338H5.667v-8.59h2.672V18.338z M7.004,8.574c-0.857,0-1.549-0.694-1.549-1.548 c0-0.855,0.691-1.548,1.549-1.548c0.854,0,1.547,0.694,1.547,1.548C8.551,7.881,7.858,8.574,7.004,8.574z M18.339,18.338h-2.669 v-4.177c0-0.996-0.017-2.278-1.387-2.278c-1.389,0-1.601,1.086-1.601,2.206v4.249h-2.667v-8.59h2.559v1.174h0.037 c0.356-0.675,1.227-1.387,2.526-1.387c2.703,0,3.203,1.779,3.203,4.092V18.338z"}))}},{name:"mail",attributes:{service:"mail"},title:"Mail",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M20,4H4C2.895,4,2,4.895,2,6v12c0,1.105,0.895,2,2,2h16c1.105,0,2-0.895,2-2V6C22,4.895,21.105,4,20,4z M20,8.236l-8,4.882 L4,8.236V6h16V8.236z"}))}},{name:"mastodon",attributes:{service:"mastodon"},title:"Mastodon",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M23.193 7.879c0-5.206-3.411-6.732-3.411-6.732C18.062.357 15.108.025 12.041 0h-.076c-3.068.025-6.02.357-7.74 1.147 0 0-3.411 1.526-3.411 6.732 0 1.192-.023 2.618.015 4.129.124 5.092.934 10.109 5.641 11.355 2.17.574 4.034.695 5.535.612 2.722-.15 4.25-.972 4.25-.972l-.09-1.975s-1.945.613-4.129.539c-2.165-.074-4.449-.233-4.799-2.891a5.499 5.499 0 0 1-.048-.745s2.125.52 4.817.643c1.646.075 3.19-.097 4.758-.283 3.007-.359 5.625-2.212 5.954-3.905.517-2.665.475-6.507.475-6.507zm-4.024 6.709h-2.497V8.469c0-1.29-.543-1.944-1.628-1.944-1.2 0-1.802.776-1.802 2.312v3.349h-2.483v-3.35c0-1.536-.602-2.312-1.802-2.312-1.085 0-1.628.655-1.628 1.944v6.119H4.832V8.284c0-1.289.328-2.313.987-3.07.68-.758 1.569-1.146 2.674-1.146 1.278 0 2.246.491 2.886 1.474L12 6.585l.622-1.043c.64-.983 1.608-1.474 2.886-1.474 1.104 0 1.994.388 2.674 1.146.658.757.986 1.781.986 3.07v6.304z"}))}},{name:"meetup",attributes:{service:"meetup"},title:"Meetup",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M19.24775,14.722a3.57032,3.57032,0,0,1-2.94457,3.52073,3.61886,3.61886,0,0,1-.64652.05634c-.07314-.0008-.10187.02846-.12507.09547A2.38881,2.38881,0,0,1,13.49453,20.094a2.33092,2.33092,0,0,1-1.827-.50716.13635.13635,0,0,0-.19878-.00408,3.191,3.191,0,0,1-2.104.60248,3.26309,3.26309,0,0,1-3.00324-2.71993,2.19076,2.19076,0,0,1-.03512-.30865c-.00156-.08579-.03413-.1189-.11608-.13493a2.86421,2.86421,0,0,1-1.23189-.56111,2.945,2.945,0,0,1-1.166-2.05749,2.97484,2.97484,0,0,1,.87524-2.50774.112.112,0,0,0,.02091-.16107,2.7213,2.7213,0,0,1-.36648-1.48A2.81256,2.81256,0,0,1,6.57673,7.58838a.35764.35764,0,0,0,.28869-.22819,4.2208,4.2208,0,0,1,6.02892-1.90111.25161.25161,0,0,0,.22023.0243,3.65608,3.65608,0,0,1,3.76031.90678A3.57244,3.57244,0,0,1,17.95918,8.626a2.97339,2.97339,0,0,1,.01829.57356.10637.10637,0,0,0,.0853.12792,1.97669,1.97669,0,0,1,1.27939,1.33733,2.00266,2.00266,0,0,1-.57112,2.12652c-.05284.05166-.04168.08328-.01173.13489A3.51189,3.51189,0,0,1,19.24775,14.722Zm-6.35959-.27836a1.6984,1.6984,0,0,0,1.14556,1.61113,3.82039,3.82039,0,0,0,1.036.17935,1.46888,1.46888,0,0,0,.73509-.12255.44082.44082,0,0,0,.26057-.44274.45312.45312,0,0,0-.29211-.43375.97191.97191,0,0,0-.20678-.063c-.21326-.03806-.42754-.0701-.63973-.11215a.54787.54787,0,0,1-.50172-.60926,2.75864,2.75864,0,0,1,.1773-.901c.1763-.535.414-1.045.64183-1.55913A12.686,12.686,0,0,0,15.85,10.47863a1.58461,1.58461,0,0,0,.04861-.87208,1.04531,1.04531,0,0,0-.85432-.83981,1.60658,1.60658,0,0,0-1.23654.16594.27593.27593,0,0,1-.36286-.03413c-.085-.0747-.16594-.15379-.24918-.23055a.98682.98682,0,0,0-1.33577-.04933,6.1468,6.1468,0,0,1-.4989.41615.47762.47762,0,0,1-.51535.03566c-.17448-.09307-.35512-.175-.53531-.25665a1.74949,1.74949,0,0,0-.56476-.2016,1.69943,1.69943,0,0,0-1.61654.91787,8.05815,8.05815,0,0,0-.32952.80126c-.45471,1.2557-.82507,2.53825-1.20838,3.81639a1.24151,1.24151,0,0,0,.51532,1.44389,1.42659,1.42659,0,0,0,1.22008.17166,1.09728,1.09728,0,0,0,.66994-.69764c.44145-1.04111.839-2.09989,1.25981-3.14926.11581-.28876.22792-.57874.35078-.86438a.44548.44548,0,0,1,.69189-.19539.50521.50521,0,0,1,.15044.43836,1.75625,1.75625,0,0,1-.14731.50453c-.27379.69219-.55265,1.38236-.82766,2.074a2.0836,2.0836,0,0,0-.14038.42876.50719.50719,0,0,0,.27082.57722.87236.87236,0,0,0,.66145.02739.99137.99137,0,0,0,.53406-.532q.61571-1.20914,1.228-2.42031.28423-.55863.57585-1.1133a.87189.87189,0,0,1,.29055-.35253.34987.34987,0,0,1,.37634-.01265.30291.30291,0,0,1,.12434.31459.56716.56716,0,0,1-.04655.1915c-.05318.12739-.10286.25669-.16183.38156-.34118.71775-.68754,1.43273-1.02568,2.152A2.00213,2.00213,0,0,0,12.88816,14.44366Zm4.78568,5.28972a.88573.88573,0,0,0-1.77139.00465.8857.8857,0,0,0,1.77139-.00465Zm-14.83838-7.296a.84329.84329,0,1,0,.00827-1.68655.8433.8433,0,0,0-.00827,1.68655Zm10.366-9.43673a.83506.83506,0,1,0-.0091,1.67.83505.83505,0,0,0,.0091-1.67Zm6.85014,5.22a.71651.71651,0,0,0-1.433.0093.71656.71656,0,0,0,1.433-.0093ZM5.37528,6.17908A.63823.63823,0,1,0,6.015,5.54483.62292.62292,0,0,0,5.37528,6.17908Zm6.68214,14.80843a.54949.54949,0,1,0-.55052.541A.54556.54556,0,0,0,12.05742,20.98752Zm8.53235-8.49689a.54777.54777,0,0,0-.54027.54023.53327.53327,0,0,0,.532.52293.51548.51548,0,0,0,.53272-.5237A.53187.53187,0,0,0,20.58977,12.49063ZM7.82846,2.4715a.44927.44927,0,1,0,.44484.44766A.43821.43821,0,0,0,7.82846,2.4715Zm13.775,7.60492a.41186.41186,0,0,0-.40065.39623.40178.40178,0,0,0,.40168.40168A.38994.38994,0,0,0,22,10.48172.39946.39946,0,0,0,21.60349,10.07642ZM5.79193,17.96207a.40469.40469,0,0,0-.397-.39646.399.399,0,0,0-.396.405.39234.39234,0,0,0,.39939.389A.39857.39857,0,0,0,5.79193,17.96207Z"}))}},{name:"medium",attributes:{service:"medium"},title:"Medium",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M20.962,7.257l-5.457,8.867l-3.923-6.375l3.126-5.08c0.112-0.182,0.319-0.286,0.527-0.286c0.05,0,0.1,0.008,0.149,0.02 c0.039,0.01,0.078,0.023,0.114,0.041l5.43,2.715l0.006,0.003c0.004,0.002,0.007,0.006,0.011,0.008 C20.971,7.191,20.98,7.227,20.962,7.257z M9.86,8.592v5.783l5.14,2.57L9.86,8.592z M15.772,17.331l4.231,2.115 C20.554,19.721,21,19.529,21,19.016V8.835L15.772,17.331z M8.968,7.178L3.665,4.527C3.569,4.479,3.478,4.456,3.395,4.456 C3.163,4.456,3,4.636,3,4.938v11.45c0,0.306,0.224,0.669,0.498,0.806l4.671,2.335c0.12,0.06,0.234,0.088,0.337,0.088 c0.29,0,0.494-0.225,0.494-0.602V7.231C9,7.208,8.988,7.188,8.968,7.178z"}))}},{name:"pinterest",attributes:{service:"pinterest"},title:"Pinterest",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M12.289,2C6.617,2,3.606,5.648,3.606,9.622c0,1.846,1.025,4.146,2.666,4.878c0.25,0.111,0.381,0.063,0.439-0.169 c0.044-0.175,0.267-1.029,0.365-1.428c0.032-0.128,0.017-0.237-0.091-0.362C6.445,11.911,6.01,10.75,6.01,9.668 c0-2.777,2.194-5.464,5.933-5.464c3.23,0,5.49,2.108,5.49,5.122c0,3.407-1.794,5.768-4.13,5.768c-1.291,0-2.257-1.021-1.948-2.277 c0.372-1.495,1.089-3.112,1.089-4.191c0-0.967-0.542-1.775-1.663-1.775c-1.319,0-2.379,1.309-2.379,3.059 c0,1.115,0.394,1.869,0.394,1.869s-1.302,5.279-1.54,6.261c-0.405,1.666,0.053,4.368,0.094,4.604 c0.021,0.126,0.167,0.169,0.25,0.063c0.129-0.165,1.699-2.419,2.142-4.051c0.158-0.59,0.817-2.995,0.817-2.995 c0.43,0.784,1.681,1.446,3.013,1.446c3.963,0,6.822-3.494,6.822-7.833C20.394,5.112,16.849,2,12.289,2"}))}},{name:"pocket",attributes:{service:"pocket"},title:"Pocket",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M21.927,4.194C21.667,3.48,20.982,3,20.222,3h-0.01h-1.721H3.839C3.092,3,2.411,3.47,2.145,4.17 C2.066,4.378,2.026,4.594,2.026,4.814v6.035l0.069,1.2c0.29,2.73,1.707,5.115,3.899,6.778c0.039,0.03,0.079,0.059,0.119,0.089 l0.025,0.018c1.175,0.859,2.491,1.441,3.91,1.727c0.655,0.132,1.325,0.2,1.991,0.2c0.615,0,1.232-0.057,1.839-0.17 c0.073-0.014,0.145-0.028,0.219-0.044c0.02-0.004,0.042-0.012,0.064-0.023c1.359-0.297,2.621-0.864,3.753-1.691l0.025-0.018 c0.04-0.029,0.08-0.058,0.119-0.089c2.192-1.664,3.609-4.049,3.898-6.778l0.069-1.2V4.814C22.026,4.605,22,4.398,21.927,4.194z M17.692,10.481l-4.704,4.512c-0.266,0.254-0.608,0.382-0.949,0.382c-0.342,0-0.684-0.128-0.949-0.382l-4.705-4.512 C5.838,9.957,5.82,9.089,6.344,8.542c0.524-0.547,1.392-0.565,1.939-0.04l3.756,3.601l3.755-3.601 c0.547-0.524,1.415-0.506,1.939,0.04C18.256,9.089,18.238,9.956,17.692,10.481z"}))}},{name:"reddit",attributes:{service:"reddit"},title:"Reddit",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M22,11.816c0-1.256-1.021-2.277-2.277-2.277c-0.593,0-1.122,0.24-1.526,0.614c-1.481-0.965-3.455-1.594-5.647-1.69 l1.171-3.702l3.18,0.748c0.008,1.028,0.846,1.862,1.876,1.862c1.035,0,1.877-0.842,1.877-1.878c0-1.035-0.842-1.877-1.877-1.877 c-0.769,0-1.431,0.466-1.72,1.13l-3.508-0.826c-0.203-0.047-0.399,0.067-0.46,0.261l-1.35,4.268 c-2.316,0.038-4.411,0.67-5.97,1.671C5.368,9.765,4.853,9.539,4.277,9.539C3.021,9.539,2,10.56,2,11.816 c0,0.814,0.433,1.523,1.078,1.925c-0.037,0.221-0.061,0.444-0.061,0.672c0,3.292,4.011,5.97,8.941,5.97s8.941-2.678,8.941-5.97 c0-0.214-0.02-0.424-0.053-0.632C21.533,13.39,22,12.661,22,11.816z M18.776,4.394c0.606,0,1.1,0.493,1.1,1.1s-0.493,1.1-1.1,1.1 s-1.1-0.494-1.1-1.1S18.169,4.394,18.776,4.394z M2.777,11.816c0-0.827,0.672-1.5,1.499-1.5c0.313,0,0.598,0.103,0.838,0.269 c-0.851,0.676-1.477,1.479-1.812,2.36C2.983,12.672,2.777,12.27,2.777,11.816z M11.959,19.606c-4.501,0-8.164-2.329-8.164-5.193 S7.457,9.22,11.959,9.22s8.164,2.329,8.164,5.193S16.46,19.606,11.959,19.606z M20.636,13.001c-0.326-0.89-0.948-1.701-1.797-2.384 c0.248-0.186,0.55-0.301,0.883-0.301c0.827,0,1.5,0.673,1.5,1.5C21.223,12.299,20.992,12.727,20.636,13.001z M8.996,14.704 c-0.76,0-1.397-0.616-1.397-1.376c0-0.76,0.637-1.397,1.397-1.397c0.76,0,1.376,0.637,1.376,1.397 C10.372,14.088,9.756,14.704,8.996,14.704z M16.401,13.328c0,0.76-0.616,1.376-1.376,1.376c-0.76,0-1.399-0.616-1.399-1.376 c0-0.76,0.639-1.397,1.399-1.397C15.785,11.931,16.401,12.568,16.401,13.328z M15.229,16.708c0.152,0.152,0.152,0.398,0,0.55 c-0.674,0.674-1.727,1.002-3.219,1.002c-0.004,0-0.007-0.002-0.011-0.002c-0.004,0-0.007,0.002-0.011,0.002 c-1.492,0-2.544-0.328-3.218-1.002c-0.152-0.152-0.152-0.398,0-0.55c0.152-0.152,0.399-0.151,0.55,0 c0.521,0.521,1.394,0.775,2.669,0.775c0.004,0,0.007,0.002,0.011,0.002c0.004,0,0.007-0.002,0.011-0.002 c1.275,0,2.148-0.253,2.669-0.775C14.831,16.556,15.078,16.556,15.229,16.708z"}))}},{name:"skype",attributes:{service:"skype"},title:"Skype",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M10.113,2.699c0.033-0.006,0.067-0.013,0.1-0.02c0.033,0.017,0.066,0.033,0.098,0.051L10.113,2.699z M2.72,10.223 c-0.006,0.034-0.011,0.069-0.017,0.103c0.018,0.032,0.033,0.064,0.051,0.095L2.72,10.223z M21.275,13.771 c0.007-0.035,0.011-0.071,0.018-0.106c-0.018-0.031-0.033-0.064-0.052-0.095L21.275,13.771z M13.563,21.199 c0.032,0.019,0.065,0.035,0.096,0.053c0.036-0.006,0.071-0.011,0.105-0.017L13.563,21.199z M22,16.386 c0,1.494-0.581,2.898-1.637,3.953c-1.056,1.057-2.459,1.637-3.953,1.637c-0.967,0-1.914-0.251-2.75-0.725 c0.036-0.006,0.071-0.011,0.105-0.017l-0.202-0.035c0.032,0.019,0.065,0.035,0.096,0.053c-0.543,0.096-1.099,0.147-1.654,0.147 c-1.275,0-2.512-0.25-3.676-0.743c-1.125-0.474-2.135-1.156-3.002-2.023c-0.867-0.867-1.548-1.877-2.023-3.002 c-0.493-1.164-0.743-2.401-0.743-3.676c0-0.546,0.049-1.093,0.142-1.628c0.018,0.032,0.033,0.064,0.051,0.095L2.72,10.223 c-0.006,0.034-0.011,0.069-0.017,0.103C2.244,9.5,2,8.566,2,7.615c0-1.493,0.582-2.898,1.637-3.953 c1.056-1.056,2.46-1.638,3.953-1.638c0.915,0,1.818,0.228,2.622,0.655c-0.033,0.007-0.067,0.013-0.1,0.02l0.199,0.031 c-0.032-0.018-0.066-0.034-0.098-0.051c0.002,0,0.003-0.001,0.004-0.001c0.586-0.112,1.187-0.169,1.788-0.169 c1.275,0,2.512,0.249,3.676,0.742c1.124,0.476,2.135,1.156,3.002,2.024c0.868,0.867,1.548,1.877,2.024,3.002 c0.493,1.164,0.743,2.401,0.743,3.676c0,0.575-0.054,1.15-0.157,1.712c-0.018-0.031-0.033-0.064-0.052-0.095l0.034,0.201 c0.007-0.035,0.011-0.071,0.018-0.106C21.754,14.494,22,15.432,22,16.386z M16.817,14.138c0-1.331-0.613-2.743-3.033-3.282 l-2.209-0.49c-0.84-0.192-1.807-0.444-1.807-1.237c0-0.794,0.679-1.348,1.903-1.348c2.468,0,2.243,1.696,3.468,1.696 c0.645,0,1.209-0.379,1.209-1.031c0-1.521-2.435-2.663-4.5-2.663c-2.242,0-4.63,0.952-4.63,3.488c0,1.221,0.436,2.521,2.839,3.123 l2.984,0.745c0.903,0.223,1.129,0.731,1.129,1.189c0,0.762-0.758,1.507-2.129,1.507c-2.679,0-2.307-2.062-3.743-2.062 c-0.645,0-1.113,0.444-1.113,1.078c0,1.236,1.501,2.886,4.856,2.886C15.236,17.737,16.817,16.199,16.817,14.138z"}))}},{name:"snapchat",attributes:{service:"snapchat"},title:"Snapchat",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M12.065,2a5.526,5.526,0,0,1,3.132.892A5.854,5.854,0,0,1,17.326,5.4a5.821,5.821,0,0,1,.351,2.33q0,.612-.117,2.487a.809.809,0,0,0,.365.091,1.93,1.93,0,0,0,.664-.176,1.93,1.93,0,0,1,.664-.176,1.3,1.3,0,0,1,.729.234.7.7,0,0,1,.351.6.839.839,0,0,1-.41.7,2.732,2.732,0,0,1-.9.41,3.192,3.192,0,0,0-.9.378.728.728,0,0,0-.41.618,1.575,1.575,0,0,0,.156.56,6.9,6.9,0,0,0,1.334,1.953,5.6,5.6,0,0,0,1.881,1.315,5.875,5.875,0,0,0,1.042.3.42.42,0,0,1,.365.456q0,.911-2.852,1.341a1.379,1.379,0,0,0-.143.507,1.8,1.8,0,0,1-.182.605.451.451,0,0,1-.429.241,5.878,5.878,0,0,1-.807-.085,5.917,5.917,0,0,0-.833-.085,4.217,4.217,0,0,0-.807.065,2.42,2.42,0,0,0-.82.293,6.682,6.682,0,0,0-.755.5q-.351.267-.755.527a3.886,3.886,0,0,1-.989.436A4.471,4.471,0,0,1,11.831,22a4.307,4.307,0,0,1-1.256-.176,3.784,3.784,0,0,1-.976-.436q-.4-.26-.749-.527a6.682,6.682,0,0,0-.755-.5,2.422,2.422,0,0,0-.807-.293,4.432,4.432,0,0,0-.82-.065,5.089,5.089,0,0,0-.853.1,5,5,0,0,1-.762.1.474.474,0,0,1-.456-.241,1.819,1.819,0,0,1-.182-.618,1.411,1.411,0,0,0-.143-.521q-2.852-.429-2.852-1.341a.42.42,0,0,1,.365-.456,5.793,5.793,0,0,0,1.042-.3,5.524,5.524,0,0,0,1.881-1.315,6.789,6.789,0,0,0,1.334-1.953A1.575,1.575,0,0,0,6,12.9a.728.728,0,0,0-.41-.618,3.323,3.323,0,0,0-.9-.384,2.912,2.912,0,0,1-.9-.41.814.814,0,0,1-.41-.684.71.71,0,0,1,.338-.593,1.208,1.208,0,0,1,.716-.241,1.976,1.976,0,0,1,.625.169,2.008,2.008,0,0,0,.69.169.919.919,0,0,0,.416-.091q-.117-1.849-.117-2.474A5.861,5.861,0,0,1,6.385,5.4,5.516,5.516,0,0,1,8.625,2.819,7.075,7.075,0,0,1,12.062,2Z"}))}},{name:"soundcloud",attributes:{service:"soundcloud"},title:"SoundCloud",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M8.9,16.1L9,14L8.9,9.5c0-0.1,0-0.1-0.1-0.1c0,0-0.1-0.1-0.1-0.1c-0.1,0-0.1,0-0.1,0.1c0,0-0.1,0.1-0.1,0.1L8.3,14l0.1,2.1 c0,0.1,0,0.1,0.1,0.1c0,0,0.1,0.1,0.1,0.1C8.8,16.3,8.9,16.3,8.9,16.1z M11.4,15.9l0.1-1.8L11.4,9c0-0.1,0-0.2-0.1-0.2 c0,0-0.1,0-0.1,0s-0.1,0-0.1,0c-0.1,0-0.1,0.1-0.1,0.2l0,0.1l-0.1,5c0,0,0,0.7,0.1,2v0c0,0.1,0,0.1,0.1,0.1c0.1,0.1,0.1,0.1,0.2,0.1 c0.1,0,0.1,0,0.2-0.1c0.1,0,0.1-0.1,0.1-0.2L11.4,15.9z M2.4,12.9L2.5,14l-0.2,1.1c0,0.1,0,0.1-0.1,0.1c0,0-0.1,0-0.1-0.1L2.1,14 l0.1-1.1C2.2,12.9,2.3,12.9,2.4,12.9C2.3,12.9,2.4,12.9,2.4,12.9z M3.1,12.2L3.3,14l-0.2,1.8c0,0.1,0,0.1-0.1,0.1 c-0.1,0-0.1,0-0.1-0.1L2.8,14L3,12.2C3,12.2,3,12.2,3.1,12.2C3.1,12.2,3.1,12.2,3.1,12.2z M3.9,11.9L4.1,14l-0.2,2.1 c0,0.1,0,0.1-0.1,0.1c-0.1,0-0.1,0-0.1-0.1L3.5,14l0.2-2.1c0-0.1,0-0.1,0.1-0.1C3.9,11.8,3.9,11.8,3.9,11.9z M4.7,11.9L4.9,14 l-0.2,2.1c0,0.1-0.1,0.1-0.1,0.1c-0.1,0-0.1,0-0.1-0.1L4.3,14l0.2-2.2c0-0.1,0-0.1,0.1-0.1C4.7,11.7,4.7,11.8,4.7,11.9z M5.6,12 l0.2,2l-0.2,2.1c0,0.1-0.1,0.1-0.1,0.1c0,0-0.1,0-0.1,0c0,0,0-0.1,0-0.1L5.1,14l0.2-2c0,0,0-0.1,0-0.1s0.1,0,0.1,0 C5.5,11.9,5.5,11.9,5.6,12L5.6,12z M6.4,10.7L6.6,14l-0.2,2.1c0,0,0,0.1,0,0.1c0,0-0.1,0-0.1,0c-0.1,0-0.1-0.1-0.2-0.2L5.9,14 l0.2-3.3c0-0.1,0.1-0.2,0.2-0.2c0,0,0.1,0,0.1,0C6.4,10.7,6.4,10.7,6.4,10.7z M7.2,10l0.2,4.1l-0.2,2.1c0,0,0,0.1,0,0.1 c0,0-0.1,0-0.1,0c-0.1,0-0.2-0.1-0.2-0.2l-0.1-2.1L6.8,10c0-0.1,0.1-0.2,0.2-0.2c0,0,0.1,0,0.1,0S7.2,9.9,7.2,10z M8,9.6L8.2,14 L8,16.1c0,0.1-0.1,0.2-0.2,0.2c-0.1,0-0.2-0.1-0.2-0.2L7.5,14l0.1-4.4c0-0.1,0-0.1,0.1-0.1c0,0,0.1-0.1,0.1-0.1c0.1,0,0.1,0,0.1,0.1 C8,9.6,8,9.6,8,9.6z M11.4,16.1L11.4,16.1L11.4,16.1z M9.7,9.6L9.8,14l-0.1,2.1c0,0.1,0,0.1-0.1,0.2s-0.1,0.1-0.2,0.1 c-0.1,0-0.1,0-0.1-0.1s-0.1-0.1-0.1-0.2L9.2,14l0.1-4.4c0-0.1,0-0.1,0.1-0.2s0.1-0.1,0.2-0.1c0.1,0,0.1,0,0.2,0.1S9.7,9.5,9.7,9.6 L9.7,9.6z M10.6,9.8l0.1,4.3l-0.1,2c0,0.1,0,0.1-0.1,0.2c0,0-0.1,0.1-0.2,0.1c-0.1,0-0.1,0-0.2-0.1c0,0-0.1-0.1-0.1-0.2L10,14 l0.1-4.3c0-0.1,0-0.1,0.1-0.2c0,0,0.1-0.1,0.2-0.1c0.1,0,0.1,0,0.2,0.1S10.6,9.7,10.6,9.8z M12.4,14l-0.1,2c0,0.1,0,0.1-0.1,0.2 c-0.1,0.1-0.1,0.1-0.2,0.1c-0.1,0-0.1,0-0.2-0.1c-0.1-0.1-0.1-0.1-0.1-0.2l-0.1-1l-0.1-1l0.1-5.5v0c0-0.1,0-0.2,0.1-0.2 c0.1,0,0.1-0.1,0.2-0.1c0,0,0.1,0,0.1,0c0.1,0,0.1,0.1,0.1,0.2L12.4,14z M22.1,13.9c0,0.7-0.2,1.3-0.7,1.7c-0.5,0.5-1.1,0.7-1.7,0.7 h-6.8c-0.1,0-0.1,0-0.2-0.1c-0.1-0.1-0.1-0.1-0.1-0.2V8.2c0-0.1,0.1-0.2,0.2-0.3c0.5-0.2,1-0.3,1.6-0.3c1.1,0,2.1,0.4,2.9,1.1 c0.8,0.8,1.3,1.7,1.4,2.8c0.3-0.1,0.6-0.2,1-0.2c0.7,0,1.3,0.2,1.7,0.7C21.8,12.6,22.1,13.2,22.1,13.9L22.1,13.9z"}))}},{name:"spotify",attributes:{service:"spotify"},title:"Spotify",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M12,2C6.477,2,2,6.477,2,12c0,5.523,4.477,10,10,10c5.523,0,10-4.477,10-10C22,6.477,17.523,2,12,2 M16.586,16.424 c-0.18,0.295-0.563,0.387-0.857,0.207c-2.348-1.435-5.304-1.76-8.785-0.964c-0.335,0.077-0.67-0.133-0.746-0.469 c-0.077-0.335,0.132-0.67,0.469-0.746c3.809-0.871,7.077-0.496,9.713,1.115C16.673,15.746,16.766,16.13,16.586,16.424 M17.81,13.7 c-0.226,0.367-0.706,0.482-1.072,0.257c-2.687-1.652-6.785-2.131-9.965-1.166C6.36,12.917,5.925,12.684,5.8,12.273 C5.675,11.86,5.908,11.425,6.32,11.3c3.632-1.102,8.147-0.568,11.234,1.328C17.92,12.854,18.035,13.335,17.81,13.7 M17.915,10.865 c-3.223-1.914-8.54-2.09-11.618-1.156C5.804,9.859,5.281,9.58,5.131,9.086C4.982,8.591,5.26,8.069,5.755,7.919 c3.532-1.072,9.404-0.865,13.115,1.338c0.445,0.264,0.59,0.838,0.327,1.282C18.933,10.983,18.359,11.129,17.915,10.865"}))}},{name:"tumblr",attributes:{service:"tumblr"},title:"Tumblr",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M17.04 21.28h-3.28c-2.84 0-4.94-1.37-4.94-5.02v-5.67H6.08V7.5c2.93-.73 4.11-3.3 4.3-5.48h3.01v4.93h3.47v3.65H13.4v4.93c0 1.47.73 2.01 1.92 2.01h1.73v3.75z"}))}},{name:"twitch",attributes:{service:"twitch"},title:"Twitch",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M16.499,8.089h-1.636v4.91h1.636V8.089z M12,8.089h-1.637v4.91H12V8.089z M4.228,3.178L3,6.451v13.092h4.499V22h2.456 l2.454-2.456h3.681L21,14.636V3.178H4.228z M19.364,13.816l-2.864,2.865H12l-2.453,2.453V16.68H5.863V4.814h13.501V13.816z"}))}},{name:"twitter",attributes:{service:"twitter"},title:"Twitter",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M22.23,5.924c-0.736,0.326-1.527,0.547-2.357,0.646c0.847-0.508,1.498-1.312,1.804-2.27 c-0.793,0.47-1.671,0.812-2.606,0.996C18.324,4.498,17.257,4,16.077,4c-2.266,0-4.103,1.837-4.103,4.103 c0,0.322,0.036,0.635,0.106,0.935C8.67,8.867,5.647,7.234,3.623,4.751C3.27,5.357,3.067,6.062,3.067,6.814 c0,1.424,0.724,2.679,1.825,3.415c-0.673-0.021-1.305-0.206-1.859-0.513c0,0.017,0,0.034,0,0.052c0,1.988,1.414,3.647,3.292,4.023 c-0.344,0.094-0.707,0.144-1.081,0.144c-0.264,0-0.521-0.026-0.772-0.074c0.522,1.63,2.038,2.816,3.833,2.85 c-1.404,1.1-3.174,1.756-5.096,1.756c-0.331,0-0.658-0.019-0.979-0.057c1.816,1.164,3.973,1.843,6.29,1.843 c7.547,0,11.675-6.252,11.675-11.675c0-0.178-0.004-0.355-0.012-0.531C20.985,7.47,21.68,6.747,22.23,5.924z"}))}},{name:"vimeo",attributes:{service:"vimeo"},title:"Vimeo",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M22.396,7.164c-0.093,2.026-1.507,4.799-4.245,8.32C15.322,19.161,12.928,21,10.97,21c-1.214,0-2.24-1.119-3.079-3.359 c-0.56-2.053-1.119-4.106-1.68-6.159C5.588,9.243,4.921,8.122,4.206,8.122c-0.156,0-0.701,0.328-1.634,0.98L1.594,7.841 c1.027-0.902,2.04-1.805,3.037-2.708C6.001,3.95,7.03,3.327,7.715,3.264c1.619-0.156,2.616,0.951,2.99,3.321 c0.404,2.557,0.685,4.147,0.841,4.769c0.467,2.121,0.981,3.181,1.542,3.181c0.435,0,1.09-0.688,1.963-2.065 c0.871-1.376,1.338-2.422,1.401-3.142c0.125-1.187-0.343-1.782-1.401-1.782c-0.498,0-1.012,0.115-1.541,0.341 c1.023-3.35,2.977-4.977,5.862-4.884C21.511,3.066,22.52,4.453,22.396,7.164z"}))}},{name:"vk",attributes:{service:"vk"},title:"VK",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M22,7.1c0.2,0.4-0.4,1.5-1.6,3.1c-0.2,0.2-0.4,0.5-0.7,0.9c-0.5,0.7-0.9,1.1-0.9,1.4c-0.1,0.3-0.1,0.6,0.1,0.8 c0.1,0.1,0.4,0.4,0.8,0.9h0l0,0c1,0.9,1.6,1.7,2,2.3c0,0,0,0.1,0.1,0.1c0,0.1,0,0.1,0.1,0.3c0,0.1,0,0.2,0,0.4 c0,0.1-0.1,0.2-0.3,0.3c-0.1,0.1-0.4,0.1-0.6,0.1l-2.7,0c-0.2,0-0.4,0-0.6-0.1c-0.2-0.1-0.4-0.1-0.5-0.2l-0.2-0.1 c-0.2-0.1-0.5-0.4-0.7-0.7s-0.5-0.6-0.7-0.8c-0.2-0.2-0.4-0.4-0.6-0.6C14.8,15,14.6,15,14.4,15c0,0,0,0-0.1,0c0,0-0.1,0.1-0.2,0.2 c-0.1,0.1-0.2,0.2-0.2,0.3c-0.1,0.1-0.1,0.3-0.2,0.5c-0.1,0.2-0.1,0.5-0.1,0.8c0,0.1,0,0.2,0,0.3c0,0.1-0.1,0.2-0.1,0.2l0,0.1 c-0.1,0.1-0.3,0.2-0.6,0.2h-1.2c-0.5,0-1,0-1.5-0.2c-0.5-0.1-1-0.3-1.4-0.6s-0.7-0.5-1.1-0.7s-0.6-0.4-0.7-0.6l-0.3-0.3 c-0.1-0.1-0.2-0.2-0.3-0.3s-0.4-0.5-0.7-0.9s-0.7-1-1.1-1.6c-0.4-0.6-0.8-1.3-1.3-2.2C2.9,9.4,2.5,8.5,2.1,7.5C2,7.4,2,7.3,2,7.2 c0-0.1,0-0.1,0-0.2l0-0.1c0.1-0.1,0.3-0.2,0.6-0.2l2.9,0c0.1,0,0.2,0,0.2,0.1S5.9,6.9,5.9,7L6,7c0.1,0.1,0.2,0.2,0.3,0.3 C6.4,7.7,6.5,8,6.7,8.4C6.9,8.8,7,9,7.1,9.2l0.2,0.3c0.2,0.4,0.4,0.8,0.6,1.1c0.2,0.3,0.4,0.5,0.5,0.7s0.3,0.3,0.4,0.4 c0.1,0.1,0.3,0.1,0.4,0.1c0.1,0,0.2,0,0.3-0.1c0,0,0,0,0.1-0.1c0,0,0.1-0.1,0.1-0.2c0.1-0.1,0.1-0.3,0.1-0.5c0-0.2,0.1-0.5,0.1-0.8 c0-0.4,0-0.8,0-1.3c0-0.3,0-0.5-0.1-0.8c0-0.2-0.1-0.4-0.1-0.5L9.6,7.6C9.4,7.3,9.1,7.2,8.7,7.1C8.6,7.1,8.6,7,8.7,6.9 C8.9,6.7,9,6.6,9.1,6.5c0.4-0.2,1.2-0.3,2.5-0.3c0.6,0,1,0.1,1.4,0.1c0.1,0,0.3,0.1,0.3,0.1c0.1,0.1,0.2,0.1,0.2,0.3 c0,0.1,0.1,0.2,0.1,0.3s0,0.3,0,0.5c0,0.2,0,0.4,0,0.6c0,0.2,0,0.4,0,0.7c0,0.3,0,0.6,0,0.9c0,0.1,0,0.2,0,0.4c0,0.2,0,0.4,0,0.5 c0,0.1,0,0.3,0,0.4s0.1,0.3,0.1,0.4c0.1,0.1,0.1,0.2,0.2,0.3c0.1,0,0.1,0,0.2,0c0.1,0,0.2,0,0.3-0.1c0.1-0.1,0.2-0.2,0.4-0.4 s0.3-0.4,0.5-0.7c0.2-0.3,0.5-0.7,0.7-1.1c0.4-0.7,0.8-1.5,1.1-2.3c0-0.1,0.1-0.1,0.1-0.2c0-0.1,0.1-0.1,0.1-0.1l0,0l0.1,0 c0,0,0,0,0.1,0s0.2,0,0.2,0l3,0c0.3,0,0.5,0,0.7,0S21.9,7,21.9,7L22,7.1z"}))}},{name:"yelp",attributes:{service:"yelp"},title:"Yelp",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M12.271,16.718v1.417q-.011,3.257-.067,3.4a.707.707,0,0,1-.569.446,4.637,4.637,0,0,1-2.024-.424A4.609,4.609,0,0,1,7.8,20.565a.844.844,0,0,1-.19-.4.692.692,0,0,1,.044-.29,3.181,3.181,0,0,1,.379-.524q.335-.412,2.019-2.409.011,0,.669-.781a.757.757,0,0,1,.44-.274.965.965,0,0,1,.552.039.945.945,0,0,1,.418.324.732.732,0,0,1,.139.468Zm-1.662-2.8a.783.783,0,0,1-.58.781l-1.339.435q-3.067.981-3.257.981a.711.711,0,0,1-.6-.4,2.636,2.636,0,0,1-.19-.836,9.134,9.134,0,0,1,.011-1.857,3.559,3.559,0,0,1,.335-1.389.659.659,0,0,1,.625-.357,22.629,22.629,0,0,1,2.253.859q.781.324,1.283.524l.937.379a.771.771,0,0,1,.4.34A.982.982,0,0,1,10.609,13.917Zm9.213,3.313a4.467,4.467,0,0,1-1.021,1.8,4.559,4.559,0,0,1-1.512,1.417.671.671,0,0,1-.7-.078q-.156-.112-2.052-3.2l-.524-.859a.761.761,0,0,1-.128-.513.957.957,0,0,1,.217-.513.774.774,0,0,1,.926-.29q.011.011,1.327.446,2.264.736,2.7.887a2.082,2.082,0,0,1,.524.229.673.673,0,0,1,.245.68Zm-7.5-7.049q.056,1.137-.6,1.361-.647.19-1.272-.792L6.237,4.08a.7.7,0,0,1,.212-.691,5.788,5.788,0,0,1,2.314-1,5.928,5.928,0,0,1,2.5-.352.681.681,0,0,1,.547.5q.034.2.245,3.407T12.327,10.181Zm7.384,1.2a.679.679,0,0,1-.29.658q-.167.112-3.67.959-.747.167-1.015.257l.011-.022a.769.769,0,0,1-.513-.044.914.914,0,0,1-.413-.357.786.786,0,0,1,0-.971q.011-.011.836-1.137,1.394-1.908,1.673-2.275a2.423,2.423,0,0,1,.379-.435A.7.7,0,0,1,17.435,8a4.482,4.482,0,0,1,1.372,1.489,4.81,4.81,0,0,1,.9,1.868v.034Z"}))}},{name:"youtube",attributes:{service:"youtube"},title:"YouTube",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M21.8,8.001c0,0-0.195-1.378-0.795-1.985c-0.76-0.797-1.613-0.801-2.004-0.847c-2.799-0.202-6.997-0.202-6.997-0.202 h-0.009c0,0-4.198,0-6.997,0.202C4.608,5.216,3.756,5.22,2.995,6.016C2.395,6.623,2.2,8.001,2.2,8.001S2,9.62,2,11.238v1.517 c0,1.618,0.2,3.237,0.2,3.237s0.195,1.378,0.795,1.985c0.761,0.797,1.76,0.771,2.205,0.855c1.6,0.153,6.8,0.201,6.8,0.201 s4.203-0.006,7.001-0.209c0.391-0.047,1.243-0.051,2.004-0.847c0.6-0.607,0.795-1.985,0.795-1.985s0.2-1.618,0.2-3.237v-1.517 C22,9.62,21.8,8.001,21.8,8.001z M9.935,14.594l-0.001-5.62l5.404,2.82L9.935,14.594z"}))}}],$u=function(e){var t,r,n=e.attributes,o=e.setAttributes,c=e.isSelected,a=n.url,i=n.service,l=n.label,s=Object(J.useState)(!1),u=Object(ue.a)(s,2),b=u[0],m=u[1],d=re()("wp-social-link","wp-social-link-"+i,{"wp-social-link__is-incomplete":!a}),p=(t=i,(r=Object(Q.find)(Zu,{name:t}))?r.icon:qu),g=function(e){var t=Object(Q.find)(Zu,{name:e});return t?t.title:Object(Y.__)("Social Icon")}(i),h=Object($.__experimentalUseBlockWrapperProps)({className:d});return Object(J.createElement)(J.Fragment,null,Object(J.createElement)($.InspectorControls,null,Object(J.createElement)(be.PanelBody,{title:Object(Y.sprintf)(Object(Y.__)("%s label"),g),initialOpen:!1},Object(J.createElement)(be.PanelRow,null,Object(J.createElement)(be.TextControl,{label:Object(Y.__)("Link label"),help:Object(Y.__)("Briefly describe the link to help screen reader users."),value:l,onChange:function(e){return o({label:e})}})))),Object(J.createElement)("li",h,Object(J.createElement)(be.Button,{onClick:function(){return m(!0)}},Object(J.createElement)(p,null),c&&b&&Object(J.createElement)($.URLPopover,{onClose:function(){return m(!1)}},Object(J.createElement)("form",{className:"block-editor-url-popover__link-editor",onSubmit:function(e){e.preventDefault(),m(!1)}},Object(J.createElement)("div",{className:"block-editor-url-input"},Object(J.createElement)($.URLInput,{value:a,onChange:function(e){return o({url:e})},placeholder:Object(Y.__)("Enter address"),disableSuggestions:!0})),Object(J.createElement)(be.Button,{icon:Wu.a,label:Object(Y.__)("Apply"),type:"submit"}))))))},Ku={name:"core/social-link",category:"widgets",parent:["core/social-links"],attributes:{url:{type:"string"},service:{type:"string"},label:{type:"string"}},usesContext:["openInNewTab"],supports:{reusable:!1,html:!1,lightBlockWrapper:!0}},Qu=Ku.name,Yu={title:Object(Y.__)("Social Icon"),icon:Hu,edit:$u,description:Object(Y.__)("Display an icon linking to a social media profile or website."),variations:Zu},Ju=function(e){if(e){var t=e.metadata,r=e.settings,n=e.name;t&&Object(K.unstable__bootstrapServerSideBlockDefinitions)(Object(Z.a)({},n,t)),Object(K.registerBlockType)(n,r)}},Xu=function(){[n,o,c,i,k,a,R,l,s,u,b,m,d,p,g,h,f,v,O,N,window.wp&&window.wp.oldEditor?U:null,j,y,w,_,C,E,x,S,P,B,z,M,T,G,W,A,I,H,F,L,V,D].forEach(Ju),Object(K.setDefaultBlockName)(ye),window.wp&&window.wp.oldEditor&&Object(K.setFreeformContentHandlerName)(Au),Object(K.setUnregisteredTypeHandlerName)(Di),Object(K.setGroupingBlockName)(Yl)},eb=void 0},483:function(e,t,r){"use strict";var n=r(0),o=r(7),c=Object(n.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(o.Path,{d:"M20.1 5.1L16.9 2 6.2 12.7l-1.3 4.4 4.5-1.3L20.1 5.1zM4 20.8h8v-1.5H4v1.5z"}));t.a=c},5:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"a",(function(){return n}))},6:function(e,t){!function(){e.exports=this.wp.blockEditor}()},60:function(e,t,r){e.exports=function(e,t){var r,n,o=0;function c(){var c,a,i=r,l=arguments.length;e:for(;i;){if(i.args.length===arguments.length){for(a=0;a1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}if(e=N(e,360),t=N(t,100),r=N(r,100),0===t)n=o=c=r;else{var i=r<.5?r*(1+t):r+t-r*t,l=2*r-i;n=a(l,i,e+1/3),o=a(l,i,e),c=a(l,i,e-1/3)}return{r:255*n,g:255*o,b:255*c}}(e.h,n,l),b=!0,m="hsl"),e.hasOwnProperty("a")&&(r=e.a));var d,p,g;return r=z(r),{ok:b,format:e.format||m,r:s(255,u(t.r,0)),g:s(255,u(t.g,0)),b:s(255,u(t.b,0)),a:r}}(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=l(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=l(this._r)),this._g<1&&(this._g=l(this._g)),this._b<1&&(this._b=l(this._b)),this._ok=r.ok,this._tc_id=i++}function d(e,t,r){e=N(e,255),t=N(t,255),r=N(r,255);var n,o,c=u(e,t,r),a=s(e,t,r),i=(c+a)/2;if(c==a)n=o=0;else{var l=c-a;switch(o=i>.5?l/(2-c-a):l/(c+a),c){case e:n=(t-r)/l+(t>1)+720)%360;--t;)n.h=(n.h+o)%360,c.push(m(n));return c}function P(e,t){t=t||6;for(var r=m(e).toHsv(),n=r.h,o=r.s,c=r.v,a=[],i=1/t;t--;)a.push(m({h:n,s:o,v:c})),c=(c+i)%1;return a}m.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,r,n=this.toRgb();return e=n.r/255,t=n.g/255,r=n.b/255,.2126*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:o.pow((r+.055)/1.055,2.4))},setAlpha:function(e){return this._a=z(e),this._roundA=l(100*this._a)/100,this},toHsv:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=p(this._r,this._g,this._b),t=l(360*e.h),r=l(100*e.s),n=l(100*e.v);return 1==this._a?"hsv("+t+", "+r+"%, "+n+"%)":"hsva("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=d(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=d(this._r,this._g,this._b),t=l(360*e.h),r=l(100*e.s),n=l(100*e.l);return 1==this._a?"hsl("+t+", "+r+"%, "+n+"%)":"hsla("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return g(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,r,n,o){var c=[A(l(e).toString(16)),A(l(t).toString(16)),A(l(r).toString(16)),A(H(n))];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)&&(B[g(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+h(this._r,this._g,this._b,this._a),r=t,n=this._gradientType?"GradientType = 1, ":"";if(e){var o=m(e);r="#"+h(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+t+",endColorstr="+r+")"},toString:function(e){var t=!!e;e=e||this._format;var r=!1,n=this._a<1&&this._a>=0;return t||!n||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(r=this.toRgbString()),"prgb"===e&&(r=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(r=this.toHexString()),"hex3"===e&&(r=this.toHexString(!0)),"hex4"===e&&(r=this.toHex8String(!0)),"hex8"===e&&(r=this.toHex8String()),"name"===e&&(r=this.toName()),"hsl"===e&&(r=this.toHslString()),"hsv"===e&&(r=this.toHsvString()),r||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return m(this.toString())},_applyModification:function(e,t){var r=e.apply(null,[this].concat([].slice.call(t)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(j,arguments)},brighten:function(){return this._applyModification(y,arguments)},darken:function(){return this._applyModification(w,arguments)},desaturate:function(){return this._applyModification(f,arguments)},saturate:function(){return this._applyModification(v,arguments)},greyscale:function(){return this._applyModification(O,arguments)},spin:function(){return this._applyModification(_,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(S,arguments)},complement:function(){return this._applyCombination(k,arguments)},monochromatic:function(){return this._applyCombination(P,arguments)},splitcomplement:function(){return this._applyCombination(x,arguments)},triad:function(){return this._applyCombination(C,arguments)},tetrad:function(){return this._applyCombination(E,arguments)}},m.fromRatio=function(e,t){if("object"==typeof e){var r={};for(var n in e)e.hasOwnProperty(n)&&(r[n]="a"===n?e[n]:I(e[n]));e=r}return m(e,t)},m.equals=function(e,t){return!(!e||!t)&&m(e).toRgbString()==m(t).toRgbString()},m.random=function(){return m.fromRatio({r:b(),g:b(),b:b()})},m.mix=function(e,t,r){r=0===r?0:r||50;var n=m(e).toRgb(),o=m(t).toRgb(),c=r/100;return m({r:(o.r-n.r)*c+n.r,g:(o.g-n.g)*c+n.g,b:(o.b-n.b)*c+n.b,a:(o.a-n.a)*c+n.a})},m.readability=function(e,t){var r=m(e),n=m(t);return(o.max(r.getLuminance(),n.getLuminance())+.05)/(o.min(r.getLuminance(),n.getLuminance())+.05)},m.isReadable=function(e,t,r){var n,o,c=m.readability(e,t);switch(o=!1,(n=function(e){var t,r;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==r&&"large"!==r&&(r="small");return{level:t,size:r}}(r)).level+n.size){case"AAsmall":case"AAAlarge":o=c>=4.5;break;case"AAlarge":o=c>=3;break;case"AAAsmall":o=c>=7}return o},m.mostReadable=function(e,t,r){var n,o,c,a,i=null,l=0;o=(r=r||{}).includeFallbackColors,c=r.level,a=r.size;for(var s=0;sl&&(l=n,i=m(t[s]));return m.isReadable(e,i,{level:c,size:a})||!o?i:(r.includeFallbackColors=!1,m.mostReadable(e,["#fff","#000"],r))};var T=m.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},B=m.hexNames=function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}(T);function z(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function N(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var r=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=s(t,u(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function M(e){return s(1,u(0,e))}function R(e){return parseInt(e,16)}function A(e){return 1==e.length?"0"+e:""+e}function I(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,D,F,U=(D="[\\s|\\(]+("+(V="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",F="[\\s|\\(]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",{CSS_UNIT:new RegExp(V),rgb:new RegExp("rgb"+D),rgba:new RegExp("rgba"+F),hsl:new RegExp("hsl"+D),hsla:new RegExp("hsla"+F),hsv:new RegExp("hsv"+D),hsva:new RegExp("hsva"+F),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function G(e){return!!U.CSS_UNIT.exec(e)}e.exports?e.exports=m:void 0===(n=function(){return m}.call(t,r,t,e))||(e.exports=n)}(Math)},7:function(e,t){!function(){e.exports=this.wp.primitives}()},75:function(e,t){!function(){e.exports=this.wp.date}()},8:function(e,t,r){"use strict";function n(){return(n=Object.assign||function(e){for(var t=1;tu*c?{width:u*c,height:u}:{width:s,height:s/c}}function Ke(e,t,r,n,c){void 0===c&&(c=0);var o=ot(t.width,t.height,c),a=o.width,i=o.height;return{x:Ye(e.x,a,r.width,n),y:Ye(e.y,i,r.height,n)}}function Ye(e,t,r,n){var c=t*n/2-r/2;return Math.min(c,Math.max(e,-c))}function Je(e,t){return Math.sqrt(Math.pow(e.y-t.y,2)+Math.pow(e.x-t.x,2))}function Qe(e,t){return 180*Math.atan2(t.y-e.y,t.x-e.x)/Math.PI}function Xe(e,t,r,n,c,o,a){void 0===o&&(o=0),void 0===a&&(a=!0);var i=a&&0===o?et:tt,l={x:i(100,((t.width-r.width/c)/2-e.x/c)/t.width*100),y:i(100,((t.height-r.height/c)/2-e.y/c)/t.height*100),width:i(100,r.width/t.width*100/c),height:i(100,r.height/t.height*100/c)},s=Math.round(i(t.naturalWidth,l.width*t.naturalWidth/100)),u=Math.round(i(t.naturalHeight,l.height*t.naturalHeight/100)),b=t.naturalWidth>=t.naturalHeight*n?{width:Math.round(u*n),height:u}:{width:s,height:Math.round(s/n)};return{croppedAreaPercentages:l,croppedAreaPixels:qe(qe({},b),{x:Math.round(i(t.naturalWidth-b.width,l.x*t.naturalWidth/100)),y:Math.round(i(t.naturalHeight-b.height,l.y*t.naturalHeight/100))})}}function et(e,t){return Math.min(e,Math.max(0,t))}function tt(e,t){return t}function rt(e,t,r){var n=t.width/t.naturalWidth,c=function(e,t,r){var n=t.width/t.naturalWidth;if(r)return r.height>r.width?r.height/n/e.height:r.width/n/e.width;var c=e.width/e.height;return t.naturalWidth>=t.naturalHeight*c?t.naturalHeight/e.height:t.naturalWidth/e.width}(e,t,r),o=n*c;return{crop:{x:((t.naturalWidth-e.width)/2-e.x)*o,y:((t.naturalHeight-e.height)/2-e.y)*o},zoom:c}}function nt(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function ct(e,t,r,n,c){var o=Math.cos,a=Math.sin,i=c*Math.PI/180;return[(e-r)*o(i)-(t-n)*a(i)+r,(e-r)*a(i)+(t-n)*o(i)+n]}function ot(e,t,r){var n=e/2,c=t/2,o=[ct(0,0,n,c,r),ct(e,0,n,c,r),ct(e,t,n,c,r),ct(0,t,n,c,r)],a=Math.min.apply(Math,o.map((function(e){return e[0]}))),i=Math.max.apply(Math,o.map((function(e){return e[0]}))),l=Math.min.apply(Math,o.map((function(e){return e[1]})));return{width:i-a,height:Math.max.apply(Math,o.map((function(e){return e[1]})))-l}}function at(){for(var e=[],t=0;t0})).join(" ").trim()}var it=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.imageRef=null,r.videoRef=null,r.containerRef=null,r.styleRef=null,r.containerRect=null,r.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},r.dragStartPosition={x:0,y:0},r.dragStartCrop={x:0,y:0},r.lastPinchDistance=0,r.lastPinchRotation=0,r.rafDragTimeout=null,r.rafPinchTimeout=null,r.wheelTimer=null,r.state={cropSize:null,hasWheelJustStarted:!1},r.preventZoomSafari=function(e){return e.preventDefault()},r.cleanEvents=function(){document.removeEventListener("mousemove",r.onMouseMove),document.removeEventListener("mouseup",r.onDragStopped),document.removeEventListener("touchmove",r.onTouchMove),document.removeEventListener("touchend",r.onDragStopped)},r.clearScrollEvent=function(){r.containerRef&&r.containerRef.removeEventListener("wheel",r.onWheel),r.wheelTimer&&clearTimeout(r.wheelTimer)},r.onMediaLoad=function(){r.computeSizes(),r.emitCropData(),r.setInitialCrop(),r.props.onMediaLoaded&&r.props.onMediaLoaded(r.mediaSize)},r.setInitialCrop=function(){var e=r.props,t=e.initialCroppedAreaPixels,n=e.cropSize;if(t){var c=rt(t,r.mediaSize,n),o=c.crop,a=c.zoom;r.props.onCropChange(o),r.props.onZoomChange&&r.props.onZoomChange(a)}},r.computeSizes=function(){var e,t,n,c,o,a,i=r.imageRef||r.videoRef;if(i&&r.containerRef){r.containerRect=r.containerRef.getBoundingClientRect(),r.mediaSize={width:i.offsetWidth,height:i.offsetHeight,naturalWidth:(null===(e=r.imageRef)||void 0===e?void 0:e.naturalWidth)||(null===(t=r.videoRef)||void 0===t?void 0:t.videoWidth)||0,naturalHeight:(null===(n=r.imageRef)||void 0===n?void 0:n.naturalHeight)||(null===(c=r.videoRef)||void 0===c?void 0:c.videoHeight)||0};var l=r.props.cropSize?r.props.cropSize:$e(i.offsetWidth,i.offsetHeight,r.containerRect.width,r.containerRect.height,r.props.aspect,r.props.rotation);(null===(o=r.state.cropSize)||void 0===o?void 0:o.height)===l.height&&(null===(a=r.state.cropSize)||void 0===a?void 0:a.width)===l.width||r.props.onCropSizeChange&&r.props.onCropSizeChange(l),r.setState({cropSize:l},r.recomputeCropPosition)}},r.onMouseDown=function(e){e.preventDefault(),document.addEventListener("mousemove",r.onMouseMove),document.addEventListener("mouseup",r.onDragStopped),r.onDragStart(t.getMousePoint(e))},r.onMouseMove=function(e){return r.onDrag(t.getMousePoint(e))},r.onTouchStart=function(e){e.preventDefault(),document.addEventListener("touchmove",r.onTouchMove,{passive:!1}),document.addEventListener("touchend",r.onDragStopped),2===e.touches.length?r.onPinchStart(e):1===e.touches.length&&r.onDragStart(t.getTouchPoint(e.touches[0]))},r.onTouchMove=function(e){e.preventDefault(),2===e.touches.length?r.onPinchMove(e):1===e.touches.length&&r.onDrag(t.getTouchPoint(e.touches[0]))},r.onDragStart=function(e){var t,n,c=e.x,o=e.y;r.dragStartPosition={x:c,y:o},r.dragStartCrop=qe({},r.props.crop),null===(n=(t=r.props).onInteractionStart)||void 0===n||n.call(t)},r.onDrag=function(e){var t=e.x,n=e.y;r.rafDragTimeout&&window.cancelAnimationFrame(r.rafDragTimeout),r.rafDragTimeout=window.requestAnimationFrame((function(){if(r.state.cropSize&&void 0!==t&&void 0!==n){var e=t-r.dragStartPosition.x,c=n-r.dragStartPosition.y,o={x:r.dragStartCrop.x+e,y:r.dragStartCrop.y+c},a=r.props.restrictPosition?Ke(o,r.mediaSize,r.state.cropSize,r.props.zoom,r.props.rotation):o;r.props.onCropChange(a)}}))},r.onDragStopped=function(){var e,t;r.cleanEvents(),r.emitCropData(),null===(t=(e=r.props).onInteractionEnd)||void 0===t||t.call(e)},r.onWheel=function(e){e.preventDefault();var n=t.getMousePoint(e),c=r.props.zoom-e.deltaY*r.props.zoomSpeed/200;r.setNewZoom(c,n),r.state.hasWheelJustStarted||r.setState({hasWheelJustStarted:!0},(function(){var e,t;return null===(t=(e=r.props).onInteractionStart)||void 0===t?void 0:t.call(e)})),r.wheelTimer&&clearTimeout(r.wheelTimer),r.wheelTimer=window.setTimeout((function(){return r.setState({hasWheelJustStarted:!1},(function(){var e,t;return null===(t=(e=r.props).onInteractionEnd)||void 0===t?void 0:t.call(e)}))}),250)},r.getPointOnContainer=function(e){var t=e.x,n=e.y;if(!r.containerRect)throw new Error("The Cropper is not mounted");return{x:r.containerRect.width/2-(t-r.containerRect.left),y:r.containerRect.height/2-(n-r.containerRect.top)}},r.getPointOnMedia=function(e){var t=e.x,n=e.y,c=r.props,o=c.crop,a=c.zoom;return{x:(t+o.x)/a,y:(n+o.y)/a}},r.setNewZoom=function(e,t){if(r.state.cropSize&&r.props.onZoomChange){var n=r.getPointOnContainer(t),c=r.getPointOnMedia(n),o=Math.min(r.props.maxZoom,Math.max(e,r.props.minZoom)),a={x:c.x*o-n.x,y:c.y*o-n.y},i=r.props.restrictPosition?Ke(a,r.mediaSize,r.state.cropSize,o,r.props.rotation):a;r.props.onCropChange(i),r.props.onZoomChange(o)}},r.emitCropData=function(){if(r.state.cropSize){var e=Xe(r.props.restrictPosition?Ke(r.props.crop,r.mediaSize,r.state.cropSize,r.props.zoom,r.props.rotation):r.props.crop,r.mediaSize,r.state.cropSize,r.getAspect(),r.props.zoom,r.props.rotation,r.props.restrictPosition),t=e.croppedAreaPercentages,n=e.croppedAreaPixels;r.props.onCropComplete&&r.props.onCropComplete(t,n)}},r.recomputeCropPosition=function(){if(r.state.cropSize){var e=r.props.restrictPosition?Ke(r.props.crop,r.mediaSize,r.state.cropSize,r.props.zoom,r.props.rotation):r.props.crop;r.props.onCropChange(e),r.emitCropData()}},r}return function(e,t){function r(){this.constructor=e}Ue(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}(t,e),t.prototype.componentDidMount=function(){window.addEventListener("resize",this.computeSizes),this.containerRef&&(this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.preventZoomSafari),this.containerRef.addEventListener("gesturechange",this.preventZoomSafari)),this.props.disableAutomaticStylesInjection||(this.styleRef=document.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.styleRef.innerHTML=".reactEasyCrop_Container {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n overflow: hidden;\n user-select: none;\n touch-action: none;\n cursor: move;\n}\n\n.reactEasyCrop_Image,\n.reactEasyCrop_Video {\n max-width: 100%;\n max-height: 100%;\n margin: auto;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */\n}\n\n.reactEasyCrop_CropArea {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n border: 1px solid rgba(255, 255, 255, 0.5);\n box-sizing: border-box;\n box-shadow: 0 0 0 9999em;\n color: rgba(0, 0, 0, 0.5);\n overflow: hidden;\n}\n\n.reactEasyCrop_CropAreaRound {\n border-radius: 50%;\n}\n\n.reactEasyCrop_CropAreaGrid::before {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 0;\n bottom: 0;\n left: 33.33%;\n right: 33.33%;\n border-top: 0;\n border-bottom: 0;\n}\n\n.reactEasyCrop_CropAreaGrid::after {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 33.33%;\n bottom: 33.33%;\n left: 0;\n right: 0;\n border-left: 0;\n border-right: 0;\n}\n",document.head.appendChild(this.styleRef)),this.imageRef&&this.imageRef.complete&&this.onMediaLoad()},t.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.computeSizes),this.containerRef&&(this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.containerRef.removeEventListener("gesturechange",this.preventZoomSafari)),this.styleRef&&this.styleRef.remove(),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent()},t.prototype.componentDidUpdate=function(e){var t,r,n,c;e.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):e.aspect!==this.props.aspect?this.computeSizes():e.zoom!==this.props.zoom?this.recomputeCropPosition():(null===(t=e.cropSize)||void 0===t?void 0:t.height)===(null===(r=this.props.cropSize)||void 0===r?void 0:r.height)&&(null===(n=e.cropSize)||void 0===n?void 0:n.width)===(null===(c=this.props.cropSize)||void 0===c?void 0:c.width)||this.computeSizes(),e.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent())},t.prototype.getAspect=function(){var e=this.props,t=e.cropSize,r=e.aspect;return t?t.width/t.height:r},t.prototype.onPinchStart=function(e){var r=t.getTouchPoint(e.touches[0]),n=t.getTouchPoint(e.touches[1]);this.lastPinchDistance=Je(r,n),this.lastPinchRotation=Qe(r,n),this.onDragStart(nt(r,n))},t.prototype.onPinchMove=function(e){var r=this,n=t.getTouchPoint(e.touches[0]),c=t.getTouchPoint(e.touches[1]),o=nt(n,c);this.onDrag(o),this.rafPinchTimeout&&window.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=window.requestAnimationFrame((function(){var e=Je(n,c),t=r.props.zoom*(e/r.lastPinchDistance);r.setNewZoom(t,o),r.lastPinchDistance=e;var a=Qe(n,c),i=r.props.rotation+(a-r.lastPinchRotation);r.props.onRotationChange&&r.props.onRotationChange(i),r.lastPinchRotation=a}))},t.prototype.render=function(){var e=this,t=this.props,r=t.image,n=t.video,c=t.mediaProps,o=t.transform,a=t.crop,i=a.x,l=a.y,s=t.rotation,u=t.zoom,b=t.cropShape,m=t.showGrid,d=t.style,p=d.containerStyle,g=d.cropAreaStyle,h=d.mediaStyle,f=t.classes,O=f.containerClassName,v=f.cropAreaClassName,j=f.mediaClassName;return Ze.a.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(t){return e.containerRef=t},"data-testid":"container",style:p,className:at("reactEasyCrop_Container",O)},r?Ze.a.createElement("img",qe({alt:"",className:at("reactEasyCrop_Image",j)},c,{src:r,ref:function(t){return e.imageRef=t},style:qe(qe({},h),{transform:o||"translate("+i+"px, "+l+"px) rotate("+s+"deg) scale("+u+")"}),onLoad:this.onMediaLoad})):n&&Ze.a.createElement("video",qe({autoPlay:!0,loop:!0,muted:!0,className:at("reactEasyCrop_Video",j)},c,{src:n,ref:function(t){return e.videoRef=t},onLoadedMetadata:this.onMediaLoad,style:qe(qe({},h),{transform:o||"translate("+i+"px, "+l+"px) rotate("+s+"deg) scale("+u+")"}),controls:!1})),this.state.cropSize&&Ze.a.createElement("div",{style:qe(qe({},g),{width:this.state.cropSize.width,height:this.state.cropSize.height}),"data-testid":"cropper",className:at("reactEasyCrop_CropArea","round"===b&&"reactEasyCrop_CropAreaRound",m&&"reactEasyCrop_CropAreaGrid",v)}))},t.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:3,minZoom:1,cropShape:"rect",showGrid:!0,style:{},classes:{},mediaProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0},t.getMousePoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t.getTouchPoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t}(Ze.a.Component),lt=r(161),st=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ee.Path,{d:"M18.5 5.5h-13c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2v-9c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5h-13c-.3 0-.5-.2-.5-.5v-9c0-.3.2-.5.5-.5h13c.3 0 .5.2.5.5v9zM6.5 12H8v-2h2V8.5H6.5V12zm9.5 2h-2v1.5h3.5V12H16v2z"})),ut=r(306),bt=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ee.Path,{d:"M15.1 4.8l-3-2.5V4c-4.4 0-8 3.6-8 8 0 3.7 2.5 6.9 6 7.7.3.1.6.1 1 .2l.2-1.5c-.4 0-.7-.1-1.1-.2l-.1.2v-.2c-2.6-.8-4.5-3.3-4.5-6.2 0-3.6 2.9-6.5 6.5-6.5v1.8l3-2.5zM20 11c-.2-1.4-.7-2.7-1.6-3.8l-1.2.8c.7.9 1.1 2 1.3 3.1L20 11zm-1.5 1.8c-.1.5-.2 1.1-.4 1.6s-.5 1-.8 1.5l1.2.9c.4-.5.8-1.1 1-1.8s.5-1.3.5-2l-1.5-.2zm-5.6 5.6l.2 1.5c1.4-.2 2.7-.7 3.8-1.6l-.9-1.1c-.9.7-2 1.1-3.1 1.2z"})),mt=r(47),dt=r.n(mt),pt={position:"bottom right",isAlternate:!0};function gt(e){var t=e.aspectRatios,r=e.isDisabled,n=e.label,c=e.onClick,o=e.value;return Object(X.createElement)(me.MenuGroup,{label:n},t.map((function(e){var t=e.title,n=e.aspect;return Object(X.createElement)(me.MenuItem,{key:n,disabled:r,onClick:function(){c(n)},role:"menuitemradio",isSelected:n===o,icon:n===o?lt.a:void 0},t)})))}function ht(e){var t=e.toggleProps,r=e.isDisabled,n=e.onClick,c=e.value,o=e.defaultValue;return Object(X.createElement)(me.DropdownMenu,{icon:st,label:Object(Q.__)("Aspect Ratio"),popoverProps:pt,toggleProps:t,className:"wp-block-image__aspect-ratio"},(function(e){var t=e.onClose;return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(gt,{isDisabled:r,onClick:function(e){n(e),t()},value:c,aspectRatios:[{title:Object(Q.__)("Original"),aspect:o},{title:Object(Q.__)("Square"),aspect:1}]}),Object(X.createElement)(gt,{label:Object(Q.__)("Landscape"),isDisabled:r,onClick:function(e){n(e),t()},value:c,aspectRatios:[{title:Object(Q.__)("16:10"),aspect:1.6},{title:Object(Q.__)("16:9"),aspect:16/9},{title:Object(Q.__)("4:3"),aspect:4/3},{title:Object(Q.__)("3:2"),aspect:1.5}]}),Object(X.createElement)(gt,{label:Object(Q.__)("Portrait"),isDisabled:r,onClick:function(e){n(e),t()},value:c,aspectRatios:[{title:Object(Q.__)("10:16"),aspect:.625},{title:Object(Q.__)("9:16"),aspect:9/16},{title:Object(Q.__)("3:4"),aspect:3/4},{title:Object(Q.__)("2:3"),aspect:2/3}]}))}))}function ft(e){var t=e.id,r=e.url,n=e.setAttributes,c=e.naturalWidth,o=e.naturalHeight,a=e.width,i=e.height,l=e.clientWidth,s=e.setIsEditingImage,u=Object(de.useDispatch)("core/notices").createErrorNotice,b=Object(X.useState)(!1),m=Object(be.a)(b,2),d=m[0],p=m[1],g=Object(X.useState)(null),h=Object(be.a)(g,2),f=h[0],O=h[1],v=Object(X.useState)({x:0,y:0}),j=Object(be.a)(v,2),y=j[0],_=j[1],w=Object(X.useState)(100),k=Object(be.a)(w,2),E=k[0],C=k[1],x=Object(X.useState)(c/o),S=Object(be.a)(x,2),P=S[0],B=S[1],T=Object(X.useState)(0),z=Object(be.a)(T,2),N=z[0],M=z[1],R=Object(X.useState)(),V=Object(be.a)(R,2),A=V[0],H=V[1],L=a,I=i||l*o/c,D=c/o;return N%180==90&&(I=l*c/o,D=o/c),Object(X.createElement)(X.Fragment,null,Object(X.createElement)("div",{className:ne()("wp-block-image__crop-area",{"is-applying":d}),style:{width:L,height:I}},Object(X.createElement)(it,{image:A||r,disabled:d,minZoom:1,maxZoom:3,crop:y,zoom:E/100,aspect:P,onCropChange:_,onCropComplete:function(e){O(e)},onZoomChange:function(e){C(100*e)}}),d&&Object(X.createElement)(me.Spinner,null)),Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(me.ToolbarGroup,null,Object(X.createElement)(me.Dropdown,{contentClassName:"wp-block-image__zoom",popoverProps:pt,renderToggle:function(e){var t=e.isOpen,r=e.onToggle;return Object(X.createElement)(me.ToolbarButton,{icon:ut.a,label:Object(Q.__)("Zoom"),onClick:r,"aria-expanded":t,disabled:d})},renderContent:function(){return Object(X.createElement)(me.RangeControl,{min:100,max:300,value:Math.round(E),onChange:C})}}),Object(X.createElement)(me.ToolbarItem,null,(function(e){return Object(X.createElement)(ht,{toggleProps:e,isDisabled:d,onClick:B,value:P,defaultValue:c/o})}))),Object(X.createElement)(me.ToolbarGroup,null,Object(X.createElement)(me.ToolbarButton,{icon:bt,label:Object(Q.__)("Rotate"),onClick:function(){var e=(N+90)%360;if(0===e)return H(),M(e),B(1/P),void _({x:-y.y*D,y:y.x*D});var t=new window.Image;t.src=r,t.onload=function(t){var r=document.createElement("canvas"),n=0,c=0;e%180?(r.width=t.target.height,r.height=t.target.width):(r.width=t.target.width,r.height=t.target.height),90!==e&&180!==e||(n=r.width),270!==e&&180!==e||(c=r.height);var o=r.getContext("2d");o.translate(n,c),o.rotate(e*Math.PI/180),o.drawImage(t.target,0,0),r.toBlob((function(t){H(URL.createObjectURL(t)),M(e),B(1/P),_({x:-y.y*D,y:y.x*D})}))}},disabled:d})),Object(X.createElement)(me.ToolbarGroup,null,Object(X.createElement)(me.ToolbarButton,{onClick:function(){p(!0);var e={};(f.width<99.9||f.height<99.9)&&(e=f),N>0&&(e.rotation=N),e.src=r,dt()({path:"/wp/v2/media/".concat(t,"/edit"),method:"POST",data:e}).then((function(e){n({id:e.id,url:e.source_url,height:i&&a?a/P:void 0})})).catch((function(e){u(Object(Q.sprintf)(Object(Q.__)("Could not edit image. %s"),e.message),{id:"image-editing-error",type:"snackbar"})})).finally((function(){p(!1),s(!1)}))},disabled:d},Object(Q.__)("Apply")),Object(X.createElement)(me.ToolbarButton,{onClick:function(){return s(!1)}},Object(Q.__)("Cancel")))))}var Ot=["image"];function vt(e){var t=e.attributes,r=t.url,n=void 0===r?"":r,c=t.alt,o=t.caption,a=t.align,i=t.id,l=t.href,s=t.rel,u=t.linkClass,b=t.linkDestination,m=t.title,d=t.width,p=t.height,g=t.linkTarget,h=t.sizeSlug,f=e.setAttributes,O=e.isSelected,v=e.insertBlocksAfter,j=e.onReplace,y=e.onSelectImage,_=e.onSelectURL,w=e.onUploadError,k=e.containerRef,E=Object(X.useRef)(),C=Object(xe.usePrevious)(n),x=Object(de.useSelect)((function(e){var t=e("core").getMedia;return i&&O?t(i):null}),[i,O]),S=Object(de.useSelect)((function(e){var t=e("core/block-editor").getSettings;return Object(J.pick)(t(),["imageEditing","imageSizes","isRTL","maxWidth","mediaUpload"])})),P=S.imageEditing,B=S.imageSizes,T=S.isRTL,z=S.maxWidth,N=S.mediaUpload,M=Object(de.useDispatch)("core/block-editor").toggleSelection,R=Object(de.useDispatch)("core/notices"),V=R.createErrorNotice,A=R.createSuccessNotice,H=Object(xe.useViewportMatch)("medium"),L=Object(X.useState)(!1),I=Object(be.a)(L,2),D=I[0],G=I[1],F=Object(J.includes)(["wide","full"],a),U=Object(X.useState)({}),q=Object(be.a)(U,2),W=q[0],Z=W.naturalWidth,$=W.naturalHeight,ee=q[1],te=Object(X.useState)(!1),re=Object(be.a)(te,2),ne=re[0],ce=re[1],oe=Object(X.useState)(),ae=Object(be.a)(oe,2),ie=ae[0],le=ae[1],se=function(e,t){var r=Object(X.useState)(),n=Object(be.a)(r,2),c=n[0],o=n[1];function a(){o(e.current.clientWidth)}return Object(X.useEffect)(a,t),Object(X.useEffect)((function(){var t=e.current.ownerDocument.defaultView;return t.addEventListener("resize",a),function(){t.removeEventListener("resize",a)}}),[]),c}(k,[a]),ue=!F&&H,pe=Object(J.map)(Object(J.filter)(B,(function(e){var t=e.slug;return Object(J.get)(x,["media_details","sizes",t,"source_url"])})),(function(e){var t=e.name;return{value:e.slug,label:t}}));Object(X.useEffect)((function(){O||G(!1)}),[O]),Object(X.useEffect)((function(){wt(i,n)&&O&&!ie&&window.fetch(n).then((function(e){return e.blob()})).then((function(e){return le(e)}))}),[i,n,O,ie]),Object(X.useEffect)((function(){n&&!C&&O&&E.current.focus()}),[n,C]),Object(X.useEffect)((function(){O||ce(!1)}),[O]);var ge,he=i&&Z&&$&&P,fe=Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.BlockControls,null,!ne&&Object(X.createElement)(me.ToolbarGroup,null,Object(X.createElement)(K.__experimentalImageURLInputUI,{url:l||"",onChangeUrl:function(e){f(e)},linkDestination:b,mediaUrl:x&&x.source_url||n,mediaLink:x&&x.link,linkTarget:g,linkClass:u,rel:s})),he&&!ne&&Object(X.createElement)(me.ToolbarGroup,null,Object(X.createElement)(me.ToolbarButton,{onClick:function(){return ce(!0)},icon:Pe,label:Object(Q.__)("Crop")})),ie&&Object(X.createElement)(me.ToolbarGroup,null,Object(X.createElement)(me.ToolbarButton,{onClick:function(){N({filesList:[ie],onFileChange:function(e){var t=Object(be.a)(e,1)[0];y(t),Object(Ce.isBlobURL)(t.url)||(le(),A(Object(Q.__)("Image uploaded."),{type:"snackbar"}))},allowedTypes:Ot,onError:function(e){V(e,{type:"snackbar"})}})},icon:Be.a,label:Object(Q.__)("Upload external image")})),!ne&&Object(X.createElement)(K.MediaReplaceFlow,{mediaId:i,mediaURL:n,allowedTypes:Ot,accept:"image/*",onSelect:y,onSelectURL:_,onError:w})),Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Image settings")},Object(X.createElement)(me.TextareaControl,{label:Object(Q.__)("Alt text (alternative text)"),value:c,onChange:function(e){f({alt:e})},help:Object(X.createElement)(X.Fragment,null,Object(X.createElement)(me.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},Object(Q.__)("Describe the purpose of the image")),Object(Q.__)("Leave empty if the image is purely decorative."))}),Object(X.createElement)(K.__experimentalImageSizeControl,{onChangeImage:function(e){var t=Object(J.get)(x,["media_details","sizes",e,"source_url"]);if(!t)return null;f({url:t,width:void 0,height:void 0,sizeSlug:e})},onChange:function(e){return f(e)},slug:h,width:d,height:p,imageSizeOptions:pe,isResizable:ue,imageWidth:Z,imageHeight:$}))),Object(X.createElement)(K.InspectorAdvancedControls,null,Object(X.createElement)(me.TextControl,{label:Object(Q.__)("Title attribute"),value:m||"",onChange:function(e){f({title:e})},help:Object(X.createElement)(X.Fragment,null,Object(Q.__)("Describe the role of this image on the page."),Object(X.createElement)(me.ExternalLink,{href:"https://www.w3.org/TR/html52/dom.html#the-title-attribute"},Object(Q.__)("(Note: many devices and browsers do not display this text.)")))}))),Oe=function(e){var t=Object(Se.getPath)(e);if(t)return Object(J.last)(t.split("/"))}(n);ge=c||(Oe?Object(Q.sprintf)(Object(Q.__)("This image has an empty alt attribute; its file name is %s"),Oe):Object(Q.__)("This image has an empty alt attribute"));var ve,je,ye=Object(X.createElement)(X.Fragment,null,Object(X.createElement)("img",{src:n,alt:ge,onClick:function(){D&&G(!1)},onError:function(){var e;void 0!==(e=Ie({attributes:{url:n}}))&&j(e)},onLoad:function(e){ee(Object(J.pick)(e.target,["naturalWidth","naturalHeight"]))}}),Object(Ce.isBlobURL)(n)&&Object(X.createElement)(me.Spinner,null));if(se&&Z&&$){var _e=Z>se;ve=_e?se:Z,je=_e?se*($/Z):$}if(he&&ne)ye=Object(X.createElement)(ft,{id:i,url:n,setAttributes:f,naturalWidth:Z,naturalHeight:$,width:d,height:p,clientWidth:se,setIsEditingImage:ce});else if(ue&&ve){var we=d||ve,ke=p||je,Ee=Z/$,Te=Z<$?20:20*Ee,ze=$ a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number"},width:{type:"number"},height:{type:"number"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0}},Tt=Bt.name,zt={title:Object(Q.__)("Image"),description:Object(Q.__)("Insert an image to make a visual statement."),icon:we,keywords:["img",Object(Q.__)("photo"),Object(Q.__)("picture")],example:{attributes:{sizeSlug:"large",url:"https://s.w.org/images/core/5.3/MtBlanc1.jpg",caption:Object(Q.__)("Mont Blanc appears—still, snowy, and serene.")}},styles:[{name:"default",label:Object(Q._x)("Default","block style"),isDefault:!0},{name:"rounded",label:Object(Q._x)("Rounded","block style")}],__experimentalLabel:function(e,t){if("accessibility"===t.context){var r=e.caption,n=e.alt;return e.url?n?n+(r?". "+r:""):r||"":Object(Q.__)("Empty")}},getEditWrapperProps:function(e){return{"data-align":e.align}},transforms:Pt,edit:kt,save:function(e){var t,r=e.attributes,n=r.url,c=r.alt,o=r.caption,a=r.align,i=r.href,l=r.rel,s=r.linkClass,u=r.width,b=r.height,m=r.id,d=r.linkTarget,p=r.sizeSlug,g=r.title,h=Object(J.isEmpty)(l)?void 0:l,f=ne()((t={},Object(Z.a)(t,"align".concat(a),a),Object(Z.a)(t,"size-".concat(p),p),Object(Z.a)(t,"is-resized",u||b),t)),O=Object(X.createElement)("img",{src:n,alt:c,className:m?"wp-image-".concat(m):null,width:u,height:b,title:g}),v=Object(X.createElement)(X.Fragment,null,i?Object(X.createElement)("a",{className:s,href:i,target:d,rel:h},O):O,!K.RichText.isEmpty(o)&&Object(X.createElement)(K.RichText.Content,{tagName:"figcaption",value:o}));return"left"===a||"right"===a||"center"===a?Object(X.createElement)("div",K.useBlockProps.save(),Object(X.createElement)("figure",{className:f},v)):Object(X.createElement)("figure",K.useBlockProps.save({className:f}),v)},deprecated:Ee},Nt=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ee.Path,{d:"M6.2 5.2v13.4l5.8-4.8 5.8 4.8V5.2z"}));function Mt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Rt(e){for(var t=1;t".concat(t,"

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

    ".concat(e,"

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

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

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

    "===t)return Object(Y.createBlock)("core/heading",{content:r});var c=Object(ar.split)(Object(ar.create)({html:t,multilineTag:"p"}),"\u2028"),o=Object(Y.createBlock)("core/heading",{content:Object(ar.toHTMLString)({value:c[0]})});if(!r&&1===c.length)return o;var a=c.slice(1);return[o,Object(Y.createBlock)("core/quote",lr(lr({},n),{},{citation:r,value:Object(ar.toHTMLString)({value:a.length?Object(ar.join)(c.slice(1),"\u2028"):Object(ar.create)(),multilineTag:"p"})}))]}},{type:"block",blocks:["core/pullquote"],transform:function(e){var t=e.value,r=e.citation,n=e.anchor;return Object(Y.createBlock)("core/pullquote",{value:t,citation:r,anchor:n})}}]};function ur(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function br(e){for(var t=1;t"+Object(Q.__)("In quoting others, we cite ourselves.")+"

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

    "!==r?{value:e.value+r,citation:n}:{citation:n})},deprecated:rr},gr=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8h-1.5zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zM4.5 4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1V12l-2.3-1.7c-.3-.2-.6-.2-.9 0l-2.9 2.1L8 11.3c-.2-.1-.5-.1-.7 0l-2.9 1.5V4.6zm0 11.8v-1.8l3.2-1.7 2.4 1.2c.2.1.5.1.8-.1l2.8-2 2.8 2v2.5c0 .1-.1.1-.1.1H4.6c0-.1-.1-.2-.1-.2z"}));function hr(e){return Math.min(3,e.images.length)}var fr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"large",r=Object(J.pick)(e,["alt","id","link","caption"]);r.url=Object(J.get)(e,["sizes",t,"url"])||Object(J.get)(e,["media_details","sizes",t,"source_url"])||e.url;var n=Object(J.get)(e,["sizes","full","url"])||Object(J.get)(e,["media_details","sizes","full","source_url"]);return n&&(r.fullUrl=n),r};function Or(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function vr(e){for(var t=1;t0&&Object(X.createElement)(K.RichText.Content,{tagName:"figcaption",value:e.caption})))})))}},{attributes:{images:{type:"array",default:[],source:"query",selector:"ul.wp-block-gallery .blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},link:{source:"attribute",selector:"img",attribute:"data-link"},caption:{type:"array",source:"children",selector:"figcaption"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},isEligible:function(e){var t=e.images,r=e.ids;return t&&t.length>0&&(!r&&t||r&&t&&r.length!==t.length||Object(J.some)(t,(function(e,t){return!e&&null!==r[t]||parseInt(e,10)!==r[t]})))},migrate:function(e){return vr(vr({},e),{},{ids:Object(J.map)(e.images,(function(e){var t=e.id;return t?parseInt(t,10):null}))})},supports:{align:!0},save:function(e){var t=e.attributes,r=t.images,n=t.columns,c=void 0===n?hr(t):n,o=t.imageCrop,a=t.linkTo;return Object(X.createElement)("ul",{className:"columns-".concat(c," ").concat(o?"is-cropped":"")},r.map((function(e){var t;switch(a){case"media":t=e.url;break;case"attachment":t=e.link}var r=Object(X.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-link":e.link,className:e.id?"wp-image-".concat(e.id):null});return Object(X.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(X.createElement)("figure",null,t?Object(X.createElement)("a",{href:t},r):r,e.caption&&e.caption.length>0&&Object(X.createElement)(K.RichText.Content,{tagName:"figcaption",value:e.caption})))})))}},{attributes:{images:{type:"array",default:[],source:"query",selector:"div.wp-block-gallery figure.blocks-gallery-image img",query:{url:{source:"attribute",attribute:"src"},alt:{source:"attribute",attribute:"alt",default:""},id:{source:"attribute",attribute:"data-id"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"},align:{type:"string",default:"none"}},supports:{align:!0},save:function(e){var t=e.attributes,r=t.images,n=t.columns,c=void 0===n?hr(t):n,o=t.align,a=t.imageCrop,i=t.linkTo,l=ne()("columns-".concat(c),{alignnone:"none"===o,"is-cropped":a});return Object(X.createElement)("div",{className:l},r.map((function(e){var t;switch(i){case"media":t=e.url;break;case"attachment":t=e.link}var r=Object(X.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id});return Object(X.createElement)("figure",{key:e.id||e.url,className:"blocks-gallery-image"},t?Object(X.createElement)("a",{href:t},r):r)})))}}],yr=r(101),_r=Object(X.createElement)(K.BlockIcon,{icon:gr}),wr=r(21),kr=r(22),Er=r(16),Cr=r(23),xr=r(24),Sr=r(19),Pr=r(215),Br=r(214),Tr=r(274),zr=r(159);function Nr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Object(Sr.a)(e);if(t){var c=Object(Sr.a)(this).constructor;r=Reflect.construct(n,arguments,c)}else r=n.apply(this,arguments);return Object(xr.a)(this,r)}}var Mr=function(e){Object(Cr.a)(r,e);var t=Nr(r);function r(){var e;return Object(wr.a)(this,r),(e=t.apply(this,arguments)).onSelectImage=e.onSelectImage.bind(Object(Er.a)(e)),e.onSelectCaption=e.onSelectCaption.bind(Object(Er.a)(e)),e.onRemoveImage=e.onRemoveImage.bind(Object(Er.a)(e)),e.bindContainer=e.bindContainer.bind(Object(Er.a)(e)),e.onEdit=e.onEdit.bind(Object(Er.a)(e)),e.onSelectImageFromLibrary=e.onSelectImageFromLibrary.bind(Object(Er.a)(e)),e.onSelectCustomURL=e.onSelectCustomURL.bind(Object(Er.a)(e)),e.state={captionSelected:!1,isEditing:!1},e}return Object(kr.a)(r,[{key:"bindContainer",value:function(e){this.container=e}},{key:"onSelectCaption",value:function(){this.state.captionSelected||this.setState({captionSelected:!0}),this.props.isSelected||this.props.onSelect()}},{key:"onSelectImage",value:function(){this.props.isSelected||this.props.onSelect(),this.state.captionSelected&&this.setState({captionSelected:!1})}},{key:"onRemoveImage",value:function(e){this.container===document.activeElement&&this.props.isSelected&&-1!==[It.BACKSPACE,It.DELETE].indexOf(e.keyCode)&&(e.stopPropagation(),e.preventDefault(),this.props.onRemove())}},{key:"onEdit",value:function(){this.setState({isEditing:!0})}},{key:"componentDidUpdate",value:function(e){var t=this.props,r=t.isSelected,n=t.image,c=t.url,o=t.__unstableMarkNextChangeAsNotPersistent;n&&!c&&(o(),this.props.setAttributes({url:n.source_url,alt:n.alt_text})),this.state.captionSelected&&!r&&e.isSelected&&this.setState({captionSelected:!1})}},{key:"deselectOnBlur",value:function(){this.props.onDeselect()}},{key:"onSelectImageFromLibrary",value:function(e){var t=this.props,r=t.setAttributes,n=t.id,c=t.url,o=t.alt,a=t.caption,i=t.sizeSlug;if(e&&e.url){var l=fr(e,i);(function(e,t){return!e&&Object(Ce.isBlobURL)(t)})(n,c)&&o&&(l=Object(J.omit)(l,["alt"])),a&&!Object(J.get)(l,["caption"])&&(l=Object(J.omit)(l,["caption"])),r(l),this.setState({isEditing:!1})}}},{key:"onSelectCustomURL",value:function(e){var t=this.props,r=t.setAttributes;e!==t.url&&(r({url:e,id:void 0}),this.setState({isEditing:!1}))}},{key:"render",value:function(){var e,t=this.props,r=t.url,n=t.alt,c=t.id,o=t.linkTo,a=t.link,i=t.isFirstItem,l=t.isLastItem,s=t.isSelected,u=t.caption,b=t.onRemove,m=t.onMoveForward,d=t.onMoveBackward,p=t.setAttributes,g=t["aria-label"],h=this.state.isEditing;switch(o){case"file":e=r;break;case"post":e=a}var f=Object(X.createElement)(X.Fragment,null,Object(X.createElement)("img",{src:r,alt:n,"data-id":c,onClick:this.onSelectImage,onFocus:this.onSelectImage,onKeyDown:this.onRemoveImage,tabIndex:"0","aria-label":g,ref:this.bindContainer}),Object(Ce.isBlobURL)(r)&&Object(X.createElement)(me.Spinner,null)),O=ne()({"is-selected":s,"is-transient":Object(Ce.isBlobURL)(r)});return Object(X.createElement)("figure",{className:O},!h&&(e?Object(X.createElement)("a",{href:e},f):f),h&&Object(X.createElement)(K.MediaPlaceholder,{labels:{title:Object(Q.__)("Edit gallery image")},icon:we,onSelect:this.onSelectImageFromLibrary,onSelectURL:this.onSelectCustomURL,accept:"image/*",allowedTypes:["image"],value:{id:c,src:r}}),Object(X.createElement)(me.ButtonGroup,{className:"block-library-gallery-item__inline-menu is-left"},Object(X.createElement)(me.Button,{icon:Pr.a,onClick:i?void 0:d,label:Object(Q.__)("Move image backward"),"aria-disabled":i,disabled:!s}),Object(X.createElement)(me.Button,{icon:Br.a,onClick:l?void 0:m,label:Object(Q.__)("Move image forward"),"aria-disabled":l,disabled:!s})),Object(X.createElement)(me.ButtonGroup,{className:"block-library-gallery-item__inline-menu is-right"},Object(X.createElement)(me.Button,{icon:Tr.a,onClick:this.onEdit,label:Object(Q.__)("Replace image"),disabled:!s}),Object(X.createElement)(me.Button,{icon:zr.a,onClick:b,label:Object(Q.__)("Remove image"),disabled:!s})),!h&&(s||u)&&Object(X.createElement)(K.RichText,{tagName:"figcaption",placeholder:s?Object(Q.__)("Write caption…"):null,value:u,isSelected:this.state.captionSelected,onChange:function(e){return p({caption:e})},unstableOnFocus:this.onSelectCaption,inlineToolbar:!0}))}}]),r}(X.Component),Rr=Object(xe.compose)([Object(de.withSelect)((function(e,t){var r=e("core").getMedia,n=t.id;return{image:n?r(parseInt(n,10)):null}})),Object(de.withDispatch)((function(e){return{__unstableMarkNextChangeAsNotPersistent:e("core/block-editor").__unstableMarkNextChangeAsNotPersistent}}))])(Mr);function Vr(e){var t=e.isHidden,r=Object(or.a)(e,["isHidden"]);return t?Object(X.createElement)(me.VisuallyHidden,Object(ue.a)({as:K.RichText},r)):Object(X.createElement)(K.RichText,r)}var Ar=function(e){var t,r=e.attributes,n=e.className,c=e.isSelected,o=e.setAttributes,a=e.selectedImage,i=e.mediaPlaceholder,l=e.onMoveBackward,s=e.onMoveForward,u=e.onRemoveImage,b=e.onSelectImage,m=e.onDeselectImage,d=e.onSetImageAttributes,p=e.onFocusGalleryCaption,g=e.insertBlocksAfter,h=r.align,f=r.columns,O=void 0===f?hr(r):f,v=r.caption,j=r.imageCrop,y=r.images;return Object(X.createElement)("figure",{className:ne()(n,(t={},Object(Z.a)(t,"align".concat(h),h),Object(Z.a)(t,"columns-".concat(O),O),Object(Z.a)(t,"is-cropped",j),t))},Object(X.createElement)("ul",{className:"blocks-gallery-grid"},y.map((function(e,t){var n=Object(Q.sprintf)(Object(Q.__)("image %1$d of %2$d in gallery"),t+1,y.length);return Object(X.createElement)("li",{className:"blocks-gallery-item",key:e.id||e.url},Object(X.createElement)(Rr,{url:e.url,alt:e.alt,id:e.id,isFirstItem:0===t,isLastItem:t+1===y.length,isSelected:c&&a===t,onMoveBackward:l(t),onMoveForward:s(t),onRemove:u(t),onSelect:b(t),onDeselect:m(t),setAttributes:function(e){return d(t,e)},caption:e.caption,"aria-label":n,sizeSlug:r.sizeSlug}))}))),i,Object(X.createElement)(Vr,{isHidden:!c&&K.RichText.isEmpty(v),tagName:"figcaption",className:"blocks-gallery-caption",placeholder:Object(Q.__)("Write gallery caption…"),value:v,unstableOnFocus:p,onChange:function(e){return o({caption:e})},inlineToolbar:!0,__unstableOnSplitAtEnd:function(){return g(Object(Y.createBlock)("core/paragraph"))}}))};function Hr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Lr(e){for(var t=1;t0&&Object(J.every)(d,(function(e){var t=e.url;return Object(Ce.isBlobURL)(t)}))){var e=Object(J.map)(d,(function(e){var t=e.url;return Object(Ce.getBlobByURL)(t)}));Object(J.forEach)(d,(function(e){var t=e.url;return Object(Ce.revokeBlobURL)(t)})),a({filesList:e,onFileChange:x,allowedTypes:["image"]})}}),[]),Object(X.useEffect)((function(){n||v()}),[n]),Object(X.useEffect)((function(){var e,t,r,n,c,o;p||k({linkTo:(null===(e=window)||void 0===e||null===(t=e.wp)||void 0===t||null===(r=t.media)||void 0===r||null===(n=r.view)||void 0===n||null===(c=n.settings)||void 0===c||null===(o=c.defaultProps)||void 0===o?void 0:o.link)||"none"})}),[p]);var S=!!d.length,P=Object(X.createElement)(K.MediaPlaceholder,{addToGallery:S,isAppender:S,className:r,disableMediaButtons:S&&!n,icon:!S&&_r,labels:{title:!S&&Object(Q.__)("Gallery"),instructions:!S&&Gr},onSelect:x,accept:"image/*",allowedTypes:Dr,multiple:!0,value:d,onError:function(e){o.removeAllNotices(),o.createErrorNotice(e)},notices:S?void 0:c,onFocus:s});if(!S)return P;var B=Object(J.map)(Object(J.filter)(i,(function(e){var t=e.slug;return Object(J.some)(l,(function(e){return e[t]}))})),(function(e){var t=e.name;return{value:e.slug,label:t}})),T=S&&!Object(J.isEmpty)(B);return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Gallery settings")},d.length>1&&Object(X.createElement)(me.RangeControl,Object(ue.a)({label:Object(Q.__)("Columns"),value:b,onChange:function(e){k({columns:e})},min:1,max:Math.min(8,d.length)},Fr,{required:!0})),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Crop images"),checked:!!m,onChange:function(){k({imageCrop:!m})},help:function(e){return e?Object(Q.__)("Thumbnails are cropped to align."):Object(Q.__)("Thumbnails are not cropped.")}}),Object(X.createElement)(me.SelectControl,{label:Object(Q.__)("Link to"),value:p,onChange:function(e){k({linkTo:e})},options:Ir}),T&&Object(X.createElement)(me.SelectControl,{label:Object(Q.__)("Image size"),value:g,options:B,onChange:function(e){k({images:Object(J.map)(d,(function(t){if(!t.id)return t;var r=Object(J.get)(l,[parseInt(t.id,10),e]);return Lr(Lr({},t),r&&{url:r})})),newSizeSlug:e})}}))),c,Object(X.createElement)(Ar,Object(ue.a)({},e,{selectedImage:O,mediaPlaceholder:P,onMoveBackward:function(e){return function(){0!==e&&E(e,e-1)}},onMoveForward:function(e){return function(){e!==d.length-1&&E(e,e+1)}},onRemoveImage:function(e){return function(){var r=Object(J.filter)(d,(function(t,r){return e!==r}));v(),k({images:r,columns:t.columns?Math.min(r.length,t.columns):t.columns})}},onSelectImage:function(e){return function(){v(e)}},onDeselectImage:function(){return function(){v()}},onSetImageAttributes:function(e,t){d[e]&&k({images:[].concat(Object(W.a)(d.slice(0,e)),[Lr(Lr({},d[e]),t)],Object(W.a)(d.slice(e+1)))})},onFocusGalleryCaption:function(){v()}})))}));var qr=function(e){return e?e.split(",").map((function(e){return parseInt(e,10)})):[]},Wr={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:function(e){var t=e[0],r=t.align,n=t.sizeSlug;r=Object(J.every)(e,["align",r])?r:void 0,n=Object(J.every)(e,["sizeSlug",n])?n:void 0;var c=Object(J.filter)(e,(function(e){return e.url}));return Object(Y.createBlock)("core/gallery",{images:c.map((function(e){var t=e.id,r=e.url,n=e.alt,c=e.caption;return{id:Object(J.toString)(t),url:r,alt:n,caption:c}})),ids:c.map((function(e){var t=e.id;return parseInt(t,10)})),align:r,sizeSlug:n})}},{type:"shortcode",tag:"gallery",attributes:{images:{type:"array",shortcode:function(e){var t=e.named.ids;return qr(t).map((function(e){return{id:Object(J.toString)(e)}}))}},ids:{type:"array",shortcode:function(e){var t=e.named.ids;return qr(t)}},columns:{type:"number",shortcode:function(e){var t=e.named.columns;return parseInt(void 0===t?"3":t,10)}},linkTo:{type:"string",shortcode:function(e){var t=e.named.link;return void 0===t?"post":t}}},isMatch:function(e){return void 0!==e.named.ids}},{type:"files",isMatch:function(e){return 1!==e.length&&Object(J.every)(e,(function(e){return 0===e.type.indexOf("image/")}))},transform:function(e){return Object(Y.createBlock)("core/gallery",{images:e.map((function(e){return fr({url:Object(Ce.createBlobURL)(e)})}))})}}],to:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.images,r=e.align,n=e.sizeSlug,c=e.ids;return t.length>0?t.map((function(e,t){var o=e.url,a=e.alt,i=e.caption;return Object(Y.createBlock)("core/image",{id:c[t],url:o,alt:a,caption:i,align:r,sizeSlug:n})})):Object(Y.createBlock)("core/image",{align:r})}}]},Zr={name:"core/gallery",category:"media",attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},fullUrl:{type:"string",source:"attribute",selector:"img",attribute:"data-full-url"},link:{type:"string",source:"attribute",selector:"img",attribute:"data-link"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},id:{type:"string",source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},columns:{type:"number",minimum:1,maximum:8},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string"},sizeSlug:{type:"string",default:"large"}},supports:{anchor:!0,align:!0}},$r=Zr.name,Kr={title:Object(Q.__)("Gallery"),description:Object(Q.__)("Display multiple images in a rich gallery."),icon:gr,keywords:[Object(Q.__)("images"),Object(Q.__)("photos")],example:{attributes:{columns:2,images:[{url:"https://s.w.org/images/core/5.3/Glacial_lakes%2C_Bhutan.jpg"},{url:"https://s.w.org/images/core/5.3/Sediment_off_the_Yucatan_Peninsula.jpg"}]}},transforms:Wr,edit:Ur,save:function(e){var t=e.attributes,r=t.images,n=t.columns,c=void 0===n?hr(t):n,o=t.imageCrop,a=t.caption,i=t.linkTo;return Object(X.createElement)("figure",{className:"columns-".concat(c," ").concat(o?"is-cropped":"")},Object(X.createElement)("ul",{className:"blocks-gallery-grid"},r.map((function(e){var t;switch(i){case"file":t=e.fullUrl||e.url;break;case"post":t=e.link}var r=Object(X.createElement)("img",{src:e.url,alt:""!==e.alt?e.alt:e.caption,"data-id":e.id,"data-full-url":e.fullUrl,"data-link":e.link,className:e.id?"wp-image-".concat(e.id):null});return Object(X.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(X.createElement)("figure",null,t?Object(X.createElement)("a",{href:t},r):r,!K.RichText.isEmpty(e.caption)&&Object(X.createElement)(K.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))}))),!K.RichText.isEmpty(a)&&Object(X.createElement)(K.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:a}))},deprecated:jr},Yr=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M19 6.2h-5.9l-.6-1.1c-.3-.7-1-1.1-1.8-1.1H5c-1.1 0-2 .9-2 2v11.8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8.2c0-1.1-.9-2-2-2zm.5 11.6c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h5.8c.2 0 .4.1.4.3l1 2H19c.3 0 .5.2.5.5v9.5zM8 12.8h8v-1.5H8v1.5zm0 3h8v-1.5H8v1.5z"})),Jr=r(87),Qr=r.n(Jr);var Xr={apiVersion:2,name:"core/archives",category:"widgets",attributes:{displayAsDropdown:{type:"boolean",default:!1},showPostCounts:{type:"boolean",default:!1}},supports:{align:!0,html:!1}},en=Xr.name,tn={title:Object(Q.__)("Archives"),description:Object(Q.__)("Display a monthly archive of your posts."),icon:Yr,example:{},edit:function(e){var t=e.attributes,r=e.setAttributes,n=t.showPostCounts,c=t.displayAsDropdown;return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Archives settings")},Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Display as dropdown"),checked:c,onChange:function(){return r({displayAsDropdown:!c})}}),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Show post counts"),checked:n,onChange:function(){return r({showPostCounts:!n})}}))),Object(X.createElement)("div",Object(K.useBlockProps)(),Object(X.createElement)(me.Disabled,null,Object(X.createElement)(Qr.a,{block:"core/archives",attributes:t}))))}},rn=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M17.7 4.3c-1.2 0-2.8 0-3.8 1-.6.6-.9 1.5-.9 2.6V14c-.6-.6-1.5-1-2.5-1C8.6 13 7 14.6 7 16.5S8.6 20 10.5 20c1.5 0 2.8-1 3.3-2.3.5-.8.7-1.8.7-2.5V7.9c0-.7.2-1.2.5-1.6.6-.6 1.8-.6 2.8-.6h.3V4.3h-.4z"})),nn=[{attributes:{src:{type:"string",source:"attribute",selector:"audio",attribute:"src"},caption:{type:"string",source:"html",selector:"figcaption"},id:{type:"number"},autoplay:{type:"boolean",source:"attribute",selector:"audio",attribute:"autoplay"},loop:{type:"boolean",source:"attribute",selector:"audio",attribute:"loop"},preload:{type:"string",source:"attribute",selector:"audio",attribute:"preload"}},supports:{align:!0},save:function(e){var t=e.attributes,r=t.autoplay,n=t.caption,c=t.loop,o=t.preload,a=t.src;return Object(X.createElement)("figure",null,Object(X.createElement)("audio",{controls:"controls",src:a,autoPlay:r,loop:c,preload:o}),!K.RichText.isEmpty(n)&&Object(X.createElement)(K.RichText.Content,{tagName:"figcaption",value:n}))}}],cn=["audio"];var on=Object(me.withNotices)((function(e){var t=e.attributes,r=e.noticeOperations,n=e.setAttributes,c=e.onReplace,o=e.isSelected,a=e.noticeUI,i=e.insertBlocksAfter,l=t.id,s=t.autoplay,u=t.caption,b=t.loop,m=t.preload,d=t.src,p=Object(K.useBlockProps)(),g=Object(de.useSelect)((function(e){return(0,e("core/block-editor").getSettings)().mediaUpload}),[]);function h(e){return function(t){n(Object(Z.a)({},e,t))}}function f(e){if(e!==d){var t=Ie({attributes:{url:e}});if(void 0!==t)return void c(t);n({src:e,id:void 0})}}function O(e){r.removeAllNotices(),r.createErrorNotice(e)}function v(e){e&&e.url?n({src:e.url,id:e.id}):n({src:void 0,id:void 0})}return Object(X.useEffect)((function(){if(!l&&Object(Ce.isBlobURL)(d)){var e=Object(Ce.getBlobByURL)(d);e&&g({filesList:[e],onFileChange:function(e){var t=Object(be.a)(e,1)[0],r=t.id,c=t.url;n({id:r,src:c})},onError:function(e){n({src:void 0,id:void 0}),r.createErrorNotice(e)},allowedTypes:cn})}}),[]),d?Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(K.MediaReplaceFlow,{mediaId:l,mediaURL:d,allowedTypes:cn,accept:"audio/*",onSelect:v,onSelectURL:f,onError:O})),Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Audio settings")},Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Autoplay"),onChange:h("autoplay"),checked:s,help:function(e){return e?Object(Q.__)("Note: Autoplaying audio may cause usability issues for some visitors."):null}}),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Loop"),onChange:h("loop"),checked:b}),Object(X.createElement)(me.SelectControl,{label:Object(Q.__)("Preload"),value:m||"",onChange:function(e){return n({preload:e||void 0})},options:[{value:"",label:Object(Q.__)("Browser default")},{value:"auto",label:Object(Q.__)("Auto")},{value:"metadata",label:Object(Q.__)("Metadata")},{value:"none",label:Object(Q.__)("None")}]}))),Object(X.createElement)("figure",p,Object(X.createElement)(me.Disabled,null,Object(X.createElement)("audio",{controls:"controls",src:d})),(!K.RichText.isEmpty(u)||o)&&Object(X.createElement)(K.RichText,{tagName:"figcaption",placeholder:Object(Q.__)("Write caption…"),value:u,onChange:function(e){return n({caption:e})},inlineToolbar:!0,__unstableOnSplitAtEnd:function(){return i(Object(Y.createBlock)("core/paragraph"))}}))):Object(X.createElement)("div",p,Object(X.createElement)(K.MediaPlaceholder,{icon:Object(X.createElement)(K.BlockIcon,{icon:rn}),onSelect:v,onSelectURL:f,accept:"audio/*",allowedTypes:cn,value:t,notices:a,onError:O}))}));var an={from:[{type:"files",isMatch:function(e){return 1===e.length&&0===e[0].type.indexOf("audio/")},transform:function(e){var t=e[0];return Object(Y.createBlock)("core/audio",{src:Object(Ce.createBlobURL)(t)})}},{type:"shortcode",tag:"audio",attributes:{src:{type:"string",shortcode:function(e){var t=e.named,r=t.src,n=t.mp3,c=t.m4a,o=t.ogg,a=t.wav,i=t.wma;return r||n||c||o||a||i}},loop:{type:"string",shortcode:function(e){return e.named.loop}},autoplay:{type:"string",shortcode:function(e){return e.named.autoplay}},preload:{type:"string",shortcode:function(e){return e.named.preload}}}}]},ln={apiVersion:2,name:"core/audio",category:"media",attributes:{src:{type:"string",source:"attribute",selector:"audio",attribute:"src"},caption:{type:"string",source:"html",selector:"figcaption"},id:{type:"number"},autoplay:{type:"boolean",source:"attribute",selector:"audio",attribute:"autoplay"},loop:{type:"boolean",source:"attribute",selector:"audio",attribute:"loop"},preload:{type:"string",source:"attribute",selector:"audio",attribute:"preload"}},supports:{anchor:!0,align:!0}},sn=ln.name,un={title:Object(Q.__)("Audio"),description:Object(Q.__)("Embed a simple audio player."),keywords:[Object(Q.__)("music"),Object(Q.__)("sound"),Object(Q.__)("podcast"),Object(Q.__)("recording")],icon:rn,transforms:an,deprecated:nn,edit:on,save:function(e){var t=e.attributes,r=t.autoplay,n=t.caption,c=t.loop,o=t.preload,a=t.src;return a&&Object(X.createElement)("figure",K.useBlockProps.save(),Object(X.createElement)("audio",{controls:"controls",src:a,autoPlay:r,loop:c,preload:o}),!K.RichText.isEmpty(n)&&Object(X.createElement)(K.RichText.Content,{tagName:"figcaption",value:n}))}},bn=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M19 6.5H5c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7c0-1.1-.9-2-2-2zm.5 9c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v7zM8 13h8v-1.5H8V13z"})),mn={from:[{type:"block",isMultiBlock:!0,blocks:["core/button"],transform:function(e){return Object(Y.createBlock)("core/buttons",{},e.map((function(e){return Object(Y.createBlock)("core/button",e)})))}}]};function dn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function pn(e){for(var t=1;t2&&void 0!==arguments[2]&&arguments[2],p=e.backgroundColor,g=e.textColor,h=e.gradient,f=e.style,O=Object(K.getColorClassName)("background-color",p),v=Object(K.__experimentalGetGradientClass)(h),j=Object(K.getColorClassName)("color",g),y=ne()(j,v,(a={},Object(Z.a)(a,O,!(null==f||null===(r=f.color)||void 0===r?void 0:r.gradient)&&!!O),Object(Z.a)(a,"has-text-color",g||(null==f||null===(n=f.color)||void 0===n?void 0:n.text)),Object(Z.a)(a,"has-background",p||(null==f||null===(c=f.color)||void 0===c?void 0:c.background)||h||(null==f||null===(o=f.color)||void 0===o?void 0:o.gradient)),a)),_=(null==f||null===(i=f.color)||void 0===i?void 0:i.background)||(null==f||null===(l=f.color)||void 0===l?void 0:l.text)||(null==f||null===(s=f.color)||void 0===s?void 0:s.gradient)?{background:(null==f||null===(u=f.color)||void 0===u?void 0:u.gradient)?f.color.gradient:void 0,backgroundColor:(null==f||null===(b=f.color)||void 0===b?void 0:b.background)?f.color.background:void 0,color:(null==f||null===(m=f.color)||void 0===m?void 0:m.text)?f.color.text:void 0}:{};if(d){if(p){var w=Object(K.getColorObjectByAttributeValues)(t,p);_.backgroundColor=w.color}if(g){var k=Object(K.getColorObjectByAttributeValues)(t,g);_.color=k.color}}return{className:y||void 0,style:_}}function Bn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Tn(e){for(var t=1;t a"}},In=Ln.name,Dn={title:Object(Q.__)("Button"),description:Object(Q.__)("Prompt visitors to take action with a button-style link."),icon:bn,keywords:[Object(Q.__)("link")],example:{attributes:{className:"is-style-fill",backgroundColor:"vivid-green-cyan",text:Object(Q.__)("Call to Action")}},styles:[{name:"fill",label:Object(Q.__)("Fill"),isDefault:!0},{name:"outline",label:Object(Q.__)("Outline")}],edit:Rn,save:function(e){var t=e.attributes,r=t.borderRadius,n=t.linkTarget,c=t.rel,o=t.text,a=t.title,i=t.url,l=Pn(t),s=ne()("wp-block-button__link",l.className,{"no-border-radius":0===r}),u=function(e){for(var t=1;t"]+\s*)$/m,"$1//$2")}var mc={from:[{type:"enter",regExp:/^```$/,transform:function(){return Object(Y.createBlock)("core/code")}},{type:"block",blocks:["core/html"],transform:function(e){var t=e.content;return Object(Y.createBlock)("core/code",{content:t})}},{type:"raw",isMatch:function(e){return"PRE"===e.nodeName&&1===e.children.length&&"CODE"===e.firstChild.nodeName},schema:{pre:{children:{code:{children:{"#text":{}}}}}}}]},dc={apiVersion:2,name:"core/code",category:"text",attributes:{content:{type:"string",source:"html",selector:"code"}},supports:{anchor:!0}},pc=dc.name,gc={title:Object(Q.__)("Code"),description:Object(Q.__)("Display code snippets that respect your spacing and tabs."),icon:sc.a,example:{attributes:{content:Object(Q.__)('// A "block" is the abstract term used\n// to describe units of markup that\n// when composed together, form the\n// content or layout of a page.\nregisterBlockType( name, settings );')}},transforms:mc,edit:function(e){var t=e.attributes,r=e.setAttributes,n=Object(K.useBlockProps)();return Object(X.createElement)("pre",n,Object(X.createElement)(K.RichText,{tagName:"code",value:t.content,onChange:function(e){return r({content:e})},placeholder:Object(Q.__)("Write code…"),"aria-label":Object(Q.__)("Code")}))},save:function(e){var t,r=e.attributes;return Object(X.createElement)("pre",K.useBlockProps.save(),Object(X.createElement)(K.RichText.Content,{tagName:"code",value:(t=r.content,Object(J.flow)(uc,bc)(t||""))}))}},hc=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-4.1 1.5v10H10v-10h4.9zM5.5 17V8c0-.3.2-.5.5-.5h2.5v10H6c-.3 0-.5-.2-.5-.5zm14 0c0 .3-.2.5-.5.5h-2.6v-10H19c.3 0 .5.2.5.5v9z"}));function fc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Oc(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:c}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return a=e.done,e},e:function(e){i=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(i)throw o}}}}function jc(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&void 0!==arguments[1]?arguments[1]:e.length;return Object(J.sumBy)(e,(function(e){return kc(e,t)}))}function Cc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length;return e.reduce((function(e,r){var n=kc(r,t);return Object.assign(e,Object(Z.a)({},r.clientId,n))}),{})}function xc(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,n=Ec(e,r),c=t-n,o=c/e.length;return Object(J.mapValues)(Cc(e,r),(function(e){return wc(e+o)}))}function Sc(e,t){return e.map((function(e){return Object(J.merge)({},e,{attributes:{width:t[e.clientId]}})}))}var Pc=["core/column"];var Bc=Object(de.withDispatch)((function(e,t,r){return{updateAlignment:function(n){var c=t.clientId,o=t.setAttributes,a=e("core/block-editor").updateBlockAttributes,i=r.select("core/block-editor").getBlockOrder;o({verticalAlignment:n}),i(c).forEach((function(e){a(e,{verticalAlignment:n})}))},updateColumns:function(n,c){var o=t.clientId,a=e("core/block-editor").replaceInnerBlocks,i=(0,r.select("core/block-editor").getBlocks)(o),l=i.every((function(e){return Number.isFinite(e.attributes.width)})),s=c>n;if(s&&l){var u=wc(100/c),b=xc(i,100-u);i=[].concat(Object(W.a)(Sc(i,b)),Object(W.a)(Object(J.times)(c-n,(function(){return Object(Y.createBlock)("core/column",{width:u})}))))}else if(s)i=[].concat(Object(W.a)(i),Object(W.a)(Object(J.times)(c-n,(function(){return Object(Y.createBlock)("core/column")}))));else{if(i=Object(J.dropRight)(i,n-c),l)i=Sc(i,xc(i,100))}a(o,i,!1)}}}))((function(e){var t=e.attributes,r=e.updateAlignment,n=e.updateColumns,c=e.clientId,o=t.verticalAlignment,a=Object(de.useSelect)((function(e){return{count:e("core/block-editor").getBlockCount(c)}}),[c]).count,i=ne()(Object(Z.a)({},"are-vertically-aligned-".concat(o),o)),l=Object(K.useBlockProps)({className:i}),s=Object(K.__experimentalUseInnerBlocksProps)(l,{allowedBlocks:Pc,orientation:"horizontal",renderAppender:!1});return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(K.BlockVerticalAlignmentToolbar,{onChange:r,value:o})),Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,null,Object(X.createElement)(me.RangeControl,{label:Object(Q.__)("Columns"),value:a,onChange:function(e){return n(a,e)},min:1,max:Math.max(6,a)}),a>6&&Object(X.createElement)(me.Notice,{status:"warning",isDismissible:!1},Object(Q.__)("This column count exceeds the recommended amount and may cause visual breakage.")))),Object(X.createElement)("div",s))}));function Tc(e){var t=e.clientId,r=e.name,n=e.setAttributes,c=Object(de.useSelect)((function(e){var t=e("core/blocks"),n=t.getBlockVariations,c=t.getBlockType,o=t.getDefaultBlockVariation;return{blockType:c(r),defaultVariation:o(r,"block"),variations:n(r,"block")}}),[r]),o=c.blockType,a=c.defaultVariation,i=c.variations,l=Object(de.useDispatch)("core/block-editor").replaceInnerBlocks,s=Object(K.useBlockProps)();return Object(X.createElement)("div",s,Object(X.createElement)(K.__experimentalBlockVariationPicker,{icon:Object(J.get)(o,["icon","src"]),label:Object(J.get)(o,["title"]),variations:i,onSelect:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a;e.attributes&&n(e.attributes),e.innerBlocks&&l(t,Object(Y.createBlocksFromInnerBlocksTemplate)(e.innerBlocks))},allowSkip:!0}))}var zc=function(e){var t=e.clientId,r=Object(de.useSelect)((function(e){return e("core/block-editor").getBlocks(t).length>0}),[t])?Bc:Tc;return Object(X.createElement)(r,e)};var Nc=[{name:"one-column-full",title:Object(Q.__)("100"),description:Object(Q.__)("One column"),icon:Object(X.createElement)(me.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(me.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m39.0625 14h-30.0625v20.0938h30.0625zm-30.0625-2c-1.10457 0-2 .8954-2 2v20.0938c0 1.1045.89543 2 2 2h30.0625c1.1046 0 2-.8955 2-2v-20.0938c0-1.1046-.8954-2-2-2z"})),innerBlocks:[["core/column"]],scope:["block"]},{name:"two-columns-equal",title:Object(Q.__)("50 / 50"),description:Object(Q.__)("Two columns; equal split"),icon:Object(X.createElement)(me.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(me.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H25V34H39ZM23 34H9V14H23V34Z"})),isDefault:!0,innerBlocks:[["core/column"],["core/column"]],scope:["block"]},{name:"two-columns-one-third-two-thirds",title:Object(Q.__)("30 / 70"),description:Object(Q.__)("Two columns; one-third, two-thirds split"),icon:Object(X.createElement)(me.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(me.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H20V34H39ZM18 34H9V14H18V34Z"})),innerBlocks:[["core/column",{width:"33.33%"}],["core/column",{width:"66.66%"}]],scope:["block"]},{name:"two-columns-two-thirds-one-third",title:Object(Q.__)("70 / 30"),description:Object(Q.__)("Two columns; two-thirds, one-third split"),icon:Object(X.createElement)(me.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(me.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H30V34H39ZM28 34H9V14H28V34Z"})),innerBlocks:[["core/column",{width:"66.66%"}],["core/column",{width:"33.33%"}]],scope:["block"]},{name:"three-columns-equal",title:Object(Q.__)("33 / 33 / 33"),description:Object(Q.__)("Three columns; equal split"),icon:Object(X.createElement)(me.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(me.Path,{fillRule:"evenodd",d:"M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM28.5 34h-9V14h9v20zm2 0V14H39v20h-8.5zm-13 0H9V14h8.5v20z"})),innerBlocks:[["core/column"],["core/column"],["core/column"]],scope:["block"]},{name:"three-columns-wider-center",title:Object(Q.__)("25 / 50 / 25"),description:Object(Q.__)("Three columns; wide center column"),icon:Object(X.createElement)(me.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(me.Path,{fillRule:"evenodd",d:"M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM31 34H17V14h14v20zm2 0V14h6v20h-6zm-18 0H9V14h6v20z"})),innerBlocks:[["core/column",{width:"25%"}],["core/column",{width:"50%"}],["core/column",{width:"25%"}]],scope:["block"]}];function Mc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Rc(e){for(var t=1;t0,rootClientId:n(i)}}),[i]),u=s.hasChildBlocks,b=s.rootClientId,m=Object(de.useDispatch)("core/block-editor").updateBlockAttributes,d=Object(K.useBlockProps)({className:l,style:n?{flexBasis:n}:void 0}),p=Object(K.__experimentalUseInnerBlocksProps)(d,{templateLock:o,renderAppender:u?void 0:K.InnerBlocks.ButtonBlockAppender});return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(K.BlockVerticalAlignmentToolbar,{onChange:function(e){a({verticalAlignment:e}),m(b,{verticalAlignment:null})},value:r})),Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Column settings")},Object(X.createElement)(me.__experimentalUnitControl,{label:Object(Q.__)("Width"),labelPosition:"edge",__unstableInputWidth:"80px",value:n||"",onChange:function(e){e=0>parseFloat(e)?"0":e,a({width:e})},units:[{value:"%",label:"%",default:""},{value:"px",label:"px",default:""},{value:"em",label:"em",default:""},{value:"rem",label:"rem",default:""},{value:"vw",label:"vw",default:""}]}))),Object(X.createElement)("div",p))};var qc={apiVersion:2,name:"core/column",category:"text",parent:["core/columns"],attributes:{verticalAlignment:{type:"string"},width:{type:"string"},templateLock:{type:"string"}},supports:{anchor:!0,reusable:!1,html:!1}},Wc=qc.name,Zc={title:Object(Q.__)("Column"),icon:Ic,description:Object(Q.__)("A single column within a columns block."),edit:Uc,save:function(e){var t,r=e.attributes,n=r.verticalAlignment,c=r.width,o=ne()(Object(Z.a)({},"is-vertically-aligned-".concat(n),n));return c&&(t={flexBasis:c}),Object(X.createElement)("div",K.useBlockProps.save({className:o,style:t}),Object(X.createElement)(K.InnerBlocks.Content,null))},deprecated:Fc},$c=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ee.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h6.2v8.9l2.5-3.1 2.5 3.1V4.5h2.2c.4 0 .8.4.8.8v13.4z"}));function Kc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var Yc={"top left":"is-position-top-left","top center":"is-position-top-center","top right":"is-position-top-right","center left":"is-position-center-left","center center":"is-position-center-center",center:"is-position-center-center","center right":"is-position-center-right","bottom left":"is-position-bottom-left","bottom center":"is-position-bottom-center","bottom right":"is-position-bottom-right"};function Jc(e){return e?{backgroundImage:"url(".concat(e,")")}:{}}var Qc=[{value:"px",label:"px",default:430},{value:"em",label:"em",default:20},{value:"rem",label:"rem",default:20},{value:"vw",label:"vw",default:20},{value:"vh",label:"vh",default:50}];function Xc(e){return 0!==e&&50!==e&&e?"has-background-dim-"+10*Math.round(e/10):null}function eo(e){return function(t){if(t&&t.url){var r;if(Object(Ce.isBlobURL)(t.url)&&(t.type=Object(Ce.getBlobTypeByURL)(t.url)),t.media_type)r="image"===t.media_type?"image":"video";else{if("image"!==t.type&&"video"!==t.type)return;r=t.type}e(function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:50,r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,c=Object(X.useState)(!1),o=Object(be.a)(c,2),a=o[0],i=o[1];return Object(X.useEffect)((function(){e&&t<=50&&n.current&&fo().getColorAsync(n.current,(function(e){i(e.isDark)}))}),[e,e&&t<=50&&n.current,i]),Object(X.useEffect)((function(){if(t>50||!e){if(!r)return void i(!0);i(uo()(r).isDark())}}),[r,t>50||!e,i]),Object(X.useEffect)((function(){e||r||i(!1)}),[!e&&!r,i]),a}(w,h,s.color,B),z="image"===g,N="video"===g,M=Object(X.useState)(null),R=Object(be.a)(M,2),V=R[0],A=R[1],H=m.removeAllNotices,L=m.createErrorNotice,I=y?"".concat(j).concat(y):j,D=mo(mo({},z?Jc(w):{}),{},{backgroundColor:s.color,minHeight:V||I||void 0});C&&!w&&(D.background=C),f&&(c="".concat(100*f.x,"% ").concat(100*f.y,"%"),z&&(D.backgroundPosition=c));var G=!!w&&(s.color||C),F=!!(w||s.color||C),U=N||z&&(!O||v),q=Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.BlockControls,null,F&&Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.__experimentalBlockAlignmentMatrixToolbar,{label:Object(Q.__)("Change content position"),value:d,onChange:function(e){return a({contentPosition:e})}}),Object(X.createElement)(K.MediaReplaceFlow,{mediaId:p,mediaURL:w,allowedTypes:po,accept:"image/*,video/*",onSelect:S}))),Object(X.createElement)(K.InspectorControls,null,!!w&&Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Media settings")},z&&Object(X.createElement)(X.Fragment,null,Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Fixed background"),checked:O,onChange:function(){a(mo({hasParallax:!O},O?{}:{focalPoint:void 0}))}}),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Repeated background"),checked:v,onChange:function(){a({isRepeated:!v})}})),U&&Object(X.createElement)(me.FocalPointPicker,{label:Object(Q.__)("Focal point picker"),url:w,value:f,onChange:function(e){return a({focalPoint:e})}}),Object(X.createElement)(me.PanelRow,null,Object(X.createElement)(me.Button,{isSecondary:!0,isSmall:!0,className:"block-library-cover__reset-button",onClick:function(){return a({url:void 0,id:void 0,backgroundType:void 0,dimRatio:void 0,focalPoint:void 0,hasParallax:void 0,isRepeated:void 0})}},Object(Q.__)("Clear Media")))),F&&Object(X.createElement)(X.Fragment,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Dimensions")},Object(X.createElement)(Oo,{value:V||j,unit:y,onChange:function(e){return a({minHeight:e})},onUnitChange:function(e){a({minHeightUnit:e})}})),Object(X.createElement)(K.__experimentalPanelColorGradientSettings,{title:Object(Q.__)("Overlay"),initialOpen:!0,settings:[{colorValue:s.color,gradientValue:C,onColorChange:u,onGradientChange:x,label:Object(Q.__)("Color")}]},G&&Object(X.createElement)(me.RangeControl,{label:Object(Q.__)("Opacity"),value:h,onChange:function(e){return a({dimRatio:e})},min:0,max:100,step:10,required:!0}))))),W=Object(K.useBlockProps)(),$=Object(K.__experimentalUseInnerBlocksProps)({className:"wp-block-cover__inner-container"},{template:go});if(!F){var Y=Object(X.createElement)(K.BlockIcon,{icon:$c}),J=Object(Q.__)("Cover");return Object(X.createElement)(X.Fragment,null,q,Object(X.createElement)("div",Object(ue.a)({},W,{className:ne()("is-placeholder",W.className)}),Object(X.createElement)(K.MediaPlaceholder,{icon:Y,labels:{title:J,instructions:Object(Q.__)("Upload an image or video file, or pick one from your media library.")},onSelect:S,accept:"image/*,video/*",allowedTypes:po,notices:l,onError:function(e){H(),L(e)}},Object(X.createElement)("div",{className:"wp-block-cover__placeholder-background-options"},Object(X.createElement)(K.ColorPalette,{disableCustomColors:!0,value:s.color,onChange:u,clearable:!1})))))}var ee=ne()(Xc(h),(t={"is-dark-theme":T,"has-background-dim":0!==h,"is-transient":P,"has-parallax":O,"is-repeated":v},Object(Z.a)(t,s.class,s.class),Object(Z.a)(t,"has-background-gradient",C),Object(Z.a)(t,E,!w&&E),Object(Z.a)(t,"has-custom-content-position",!to(d)),t),ro(d));return Object(X.createElement)(X.Fragment,null,q,Object(X.createElement)("div",Object(ue.a)({},W,{className:ne()(ee,W.className),style:mo(mo({},D),W.style),"data-url":w}),Object(X.createElement)(ho,{values:null==_||null===(r=_.spacing)||void 0===r?void 0:r.padding,showValues:null==_||null===(n=_.visualizers)||void 0===n?void 0:n.padding}),Object(X.createElement)(jo,{className:"block-library-cover__resize-container",onResizeStart:function(){a({minHeightUnit:"px"}),b(!1)},onResize:A,onResizeStop:function(e){b(!0),a({minHeight:e}),A(null)},showHandle:i}),z&&Object(X.createElement)("img",{ref:B,"aria-hidden":!0,alt:"",style:{display:"none"},src:w}),w&&C&&0!==h&&Object(X.createElement)("span",{"aria-hidden":"true",className:ne()("wp-block-cover__gradient-background",E),style:{background:C}}),N&&Object(X.createElement)("video",{ref:B,className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:w,style:{objectPosition:c}}),P&&Object(X.createElement)(me.Spinner,null),Object(X.createElement)("div",$)))}));var _o={from:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.caption,r=e.url,n=e.align,c=e.id,o=e.anchor;return Object(Y.createBlock)("core/cover",{title:t,url:r,align:n,id:c,anchor:o})}},{type:"block",blocks:["core/video"],transform:function(e){var t=e.caption,r=e.src,n=e.align,c=e.id,o=e.anchor;return Object(Y.createBlock)("core/cover",{title:t,url:r,align:n,id:c,backgroundType:"video",anchor:o})}}],to:[{type:"block",blocks:["core/image"],isMatch:function(e){var t=e.backgroundType,r=e.url,n=e.overlayColor,c=e.customOverlayColor,o=e.gradient,a=e.customGradient;return r?"image"===t:!(n||c||o||a)},transform:function(e){var t=e.title,r=e.url,n=e.align,c=e.id,o=e.anchor;return Object(Y.createBlock)("core/image",{caption:t,url:r,align:n,id:c,anchor:o})}},{type:"block",blocks:["core/video"],isMatch:function(e){var t=e.backgroundType,r=e.url,n=e.overlayColor,c=e.customOverlayColor,o=e.gradient,a=e.customGradient;return r?"video"===t:!(n||c||o||a)},transform:function(e){var t=e.title,r=e.url,n=e.align,c=e.id,o=e.anchor;return Object(Y.createBlock)("core/video",{caption:t,src:r,id:c,align:n,anchor:o})}}]},wo={apiVersion:2,name:"core/cover",category:"media",attributes:{url:{type:"string"},id:{type:"number"},hasParallax:{type:"boolean",default:!1},isRepeated:{type:"boolean",default:!1},dimRatio:{type:"number",default:50},overlayColor:{type:"string"},customOverlayColor:{type:"string"},backgroundType:{type:"string",default:"image"},focalPoint:{type:"object"},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"}},supports:{anchor:!0,align:!0,html:!1,spacing:{padding:!0}}},ko=wo.name,Eo={title:Object(Q.__)("Cover"),description:Object(Q.__)("Add an image or video with a text overlay — great for headers."),icon:$c,example:{attributes:{customOverlayColor:"#065174",dimRatio:40,url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg"},innerBlocks:[{name:"core/paragraph",attributes:{customFontSize:48,content:Object(Q.__)("Snow Patrol"),align:"center"}}]},transforms:_o,save:function(e){var t,r,n=e.attributes,c=n.backgroundType,o=n.gradient,a=n.contentPosition,i=n.customGradient,l=n.customOverlayColor,s=n.dimRatio,u=n.focalPoint,b=n.hasParallax,m=n.isRepeated,d=n.overlayColor,p=n.url,g=n.minHeight,h=n.minHeightUnit,f=Object(K.getColorClassName)("background-color",d),O=Object(K.__experimentalGetGradientClass)(o),v=h?"".concat(g).concat(h):g,j="image"===c,y="video"===c,_=j?Jc(p):{},w={};f||(_.backgroundColor=l),i&&!p&&(_.background=i),_.minHeight=v||void 0,u&&(r="".concat(Math.round(100*u.x),"% ").concat(Math.round(100*u.y),"%"),j&&!b&&(_.backgroundPosition=r),y&&(w.objectPosition=r));var k=ne()(Xc(s),f,(t={"has-background-dim":0!==s,"has-parallax":b,"is-repeated":m,"has-background-gradient":o||i},Object(Z.a)(t,O,!p&&O),Object(Z.a)(t,"has-custom-content-position",!to(a)),t),ro(a));return Object(X.createElement)("div",K.useBlockProps.save({className:k,style:_}),p&&(o||i)&&0!==s&&Object(X.createElement)("span",{"aria-hidden":"true",className:ne()("wp-block-cover__gradient-background",O),style:i?{background:i}:void 0}),y&&p&&Object(X.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:p,style:w}),Object(X.createElement)("div",{className:"wp-block-cover__inner-container"},Object(X.createElement)(K.InnerBlocks.Content,null)))},edit:yo,deprecated:ao},Co=function(e){var t=e.blockSupportsResponsive,r=e.showEditButton,n=e.themeSupportsResponsive,c=e.allowResponsive,o=e.getResponsiveHelp,a=e.toggleResponsive,i=e.switchBackToURLInput;return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(me.ToolbarGroup,null,r&&Object(X.createElement)(me.ToolbarButton,{className:"components-toolbar__control",label:Object(Q.__)("Edit URL"),icon:Tr.a,onClick:i}))),n&&t&&Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Media settings"),className:"blocks-responsive"},Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Resize for smaller devices"),checked:c,help:o,onChange:a}))))},xo=function(){return Object(X.createElement)("div",{className:"wp-block-embed is-loading"},Object(X.createElement)(me.Spinner,null),Object(X.createElement)("p",null,Object(Q.__)("Embedding…")))},So=function(e){var t=e.icon,r=e.label,n=e.value,c=e.onSubmit,o=e.onChange,a=e.cannotEmbed,i=e.fallback,l=e.tryAgain;return Object(X.createElement)(me.Placeholder,{icon:Object(X.createElement)(K.BlockIcon,{icon:t,showColors:!0}),label:r,className:"wp-block-embed",instructions:Object(Q.__)("Paste a link to the content you want to display on your site.")},Object(X.createElement)("form",{onSubmit:c},Object(X.createElement)("input",{type:"url",value:n||"",className:"components-placeholder__input","aria-label":r,placeholder:Object(Q.__)("Enter URL to embed here…"),onChange:o}),Object(X.createElement)(me.Button,{isPrimary:!0,type:"submit"},Object(Q._x)("Embed","button label"))),Object(X.createElement)("div",{className:"components-placeholder__learn-more"},Object(X.createElement)(me.ExternalLink,{href:Object(Q.__)("https://wordpress.org/support/article/embeds/")},Object(Q.__)("Learn more about embeds"))),a&&Object(X.createElement)("div",{className:"components-placeholder__error"},Object(X.createElement)("div",{className:"components-placeholder__instructions"},Object(Q.__)("Sorry, this content could not be embedded.")),Object(X.createElement)(me.Button,{isSecondary:!0,onClick:l},Object(Q._x)("Try again","button label"))," ",Object(X.createElement)(me.Button,{isSecondary:!0,onClick:i},Object(Q._x)("Convert to link","button label"))))};function Po(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Object(Sr.a)(e);if(t){var c=Object(Sr.a)(this).constructor;r=Reflect.construct(n,arguments,c)}else r=n.apply(this,arguments);return Object(xr.a)(this,r)}}var Bo=window,To=Bo.FocusEvent,zo=Bo.DOMParser,No=function(e){Object(Cr.a)(r,e);var t=Po(r);function r(){var e;return Object(wr.a)(this,r),(e=t.apply(this,arguments)).checkFocus=e.checkFocus.bind(Object(Er.a)(e)),e.node=Object(X.createRef)(),e}return Object(kr.a)(r,[{key:"componentDidMount",value:function(){window.addEventListener("message",this.resizeWPembeds)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("message",this.resizeWPembeds)}},{key:"resizeWPembeds",value:function(e){var t=e.data,r=(t=void 0===t?{}:t).secret,n=t.message,c=t.value;[r,n,c].some((function(e){return!e}))||"height"!==n||document.querySelectorAll('iframe[data-secret="'.concat(r,'"')).forEach((function(e){+e.height!==c&&(e.height=c)}))}},{key:"checkFocus",value:function(){var e=document.activeElement;if("IFRAME"===e.tagName&&e.parentNode===this.node.current){var t=new To("focus",{bubbles:!0});e.dispatchEvent(t)}}},{key:"render",value:function(){var e=this.props.html,t=(new zo).parseFromString(e,"text/html"),r=t.querySelector("iframe");r&&r.removeAttribute("style");var n=t.querySelector("blockquote");return n&&(n.style.display="none"),Object(X.createElement)("div",{ref:this.node,className:"wp-block-embed__wrapper",dangerouslySetInnerHTML:{__html:t.body.innerHTML}})}}]),r}(X.Component),Mo=Object(xe.withGlobalEvents)({blur:"checkFocus"})(No);function Ro(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Object(Sr.a)(e);if(t){var c=Object(Sr.a)(this).constructor;r=Reflect.construct(n,arguments,c)}else r=n.apply(this,arguments);return Object(xr.a)(this,r)}}var Vo=function(e){Object(Cr.a)(r,e);var t=Ro(r);function r(){var e;return Object(wr.a)(this,r),(e=t.apply(this,arguments)).hideOverlay=e.hideOverlay.bind(Object(Er.a)(e)),e.state={interactive:!1},e}return Object(kr.a)(r,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"render",value:function(){var e,t,r,n=this.props,c=n.preview,o=n.previewable,a=n.url,i=n.type,l=n.caption,s=n.onCaptionChange,u=n.isSelected,b=n.className,m=n.icon,d=n.label,p=n.insertBlocksAfter,g=c.scripts,h=this.state.interactive,f="photo"===i?(t=(e=c).thumbnail_url||e.url,r=Object(X.createElement)("p",null,Object(X.createElement)("img",{src:t,alt:e.title,width:"100%"})),Object(X.renderToString)(r)):c.html,O=new URL(a).host.split("."),v=O.splice(O.length-2,O.length-1).join("."),j=Object(Q.sprintf)(Object(Q.__)("Embedded content from %s"),v),y=Ne()(i,b,"wp-block-embed__wrapper"),_="wp-embed"===i?Object(X.createElement)(Mo,{html:f}):Object(X.createElement)("div",{className:"wp-block-embed__wrapper"},Object(X.createElement)(me.SandBox,{html:f,scripts:g,title:j,type:y,onFocus:this.hideOverlay}),!h&&Object(X.createElement)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}));return Object(X.createElement)("figure",{className:Ne()(b,"wp-block-embed",{"is-type-video":"video"===i})},o?_:Object(X.createElement)(me.Placeholder,{icon:Object(X.createElement)(K.BlockIcon,{icon:m,showColors:!0}),label:d},Object(X.createElement)("p",{className:"components-placeholder__error"},Object(X.createElement)("a",{href:a},a)),Object(X.createElement)("p",{className:"components-placeholder__error"},Object(Q.sprintf)(Object(Q.__)("Embedded content from %s can't be previewed in the editor."),v))),(!K.RichText.isEmpty(l)||u)&&Object(X.createElement)(K.RichText,{tagName:"figcaption",placeholder:Object(Q.__)("Write caption…"),value:l,onChange:s,inlineToolbar:!0,__unstableOnSplitAtEnd:function(){return p(Object(Y.createBlock)("core/paragraph"))}}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),r}(X.Component);function Ao(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ho(e){for(var t=1;t0},priority:15,transform:function(e){var t=[];return e.forEach((function(e){var r=Object(Ce.createBlobURL)(e);t.push(Object(Y.createBlock)("core/file",{href:r,fileName:e.name,textLinkHref:r}))})),t}},{type:"block",blocks:["core/audio"],transform:function(e){return Object(Y.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id,anchor:e.anchor})}},{type:"block",blocks:["core/video"],transform:function(e){return Object(Y.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id,anchor:e.anchor})}},{type:"block",blocks:["core/image"],transform:function(e){return Object(Y.createBlock)("core/file",{href:e.url,fileName:e.caption,textLinkHref:e.url,id:e.id,anchor:e.anchor})}}],to:[{type:"block",blocks:["core/audio"],isMatch:function(e){var t=e.id;if(!t)return!1;var r=(0,Object(de.select)("core").getMedia)(t);return!!r&&Object(J.includes)(r.mime_type,"audio")},transform:function(e){return Object(Y.createBlock)("core/audio",{src:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})}},{type:"block",blocks:["core/video"],isMatch:function(e){var t=e.id;if(!t)return!1;var r=(0,Object(de.select)("core").getMedia)(t);return!!r&&Object(J.includes)(r.mime_type,"video")},transform:function(e){return Object(Y.createBlock)("core/video",{src:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})}},{type:"block",blocks:["core/image"],isMatch:function(e){var t=e.id;if(!t)return!1;var r=(0,Object(de.select)("core").getMedia)(t);return!!r&&Object(J.includes)(r.mime_type,"image")},transform:function(e){return Object(Y.createBlock)("core/image",{url:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})}}]},pa={apiVersion:2,name:"core/file",category:"media",attributes:{id:{type:"number"},href:{type:"string"},fileName:{type:"string",source:"html",selector:"a:not([download])"},textLinkHref:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"href"},textLinkTarget:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"target"},showDownloadButton:{type:"boolean",default:!0},downloadButtonText:{type:"string",source:"html",selector:"a[download]"}},supports:{anchor:!0,align:!0}},ga=pa.name,ha={title:Object(Q.__)("File"),description:Object(Q.__)("Add a link to a downloadable file."),icon:ua,keywords:[Object(Q.__)("document"),Object(Q.__)("pdf"),Object(Q.__)("download")],transforms:da,edit:ma,save:function(e){var t=e.attributes,r=t.href,n=t.fileName,c=t.textLinkHref,o=t.textLinkTarget,a=t.showDownloadButton,i=t.downloadButtonText;return r&&Object(X.createElement)("div",K.useBlockProps.save(),!K.RichText.isEmpty(n)&&Object(X.createElement)("a",{href:c,target:o,rel:!!o&&"noreferrer noopener"},Object(X.createElement)(K.RichText.Content,{value:n})),a&&Object(X.createElement)("a",{href:r,className:"wp-block-file__button",download:!0},Object(X.createElement)(K.RichText.Content,{value:i})))}},fa=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M4.8 11.4H2.1V9H1v6h1.1v-2.6h2.7V15h1.1V9H4.8v2.4zm1.9-1.3h1.7V15h1.1v-4.9h1.7V9H6.7v1.1zM16.2 9l-1.5 2.7L13.3 9h-.9l-.8 6h1.1l.5-4 1.5 2.8 1.5-2.8.5 4h1.1L17 9h-.8zm3.8 5V9h-1.1v6h3.6v-1H20z"}));var Oa={from:[{type:"block",blocks:["core/code"],transform:function(e){var t=e.content;return Object(Y.createBlock)("core/html",{content:t})}}]},va={apiVersion:2,name:"core/html",category:"widgets",attributes:{content:{type:"string",source:"html"}},supports:{customClassName:!1,className:!1,html:!1}},ja=va.name,ya={title:Object(Q.__)("Custom HTML"),description:Object(Q.__)("Add custom HTML code and preview it as you edit."),icon:fa,keywords:[Object(Q.__)("embed")],example:{attributes:{content:""+Object(Q.__)("Welcome to the wonderful world of blocks…")+""}},edit:function(e){var t=e.attributes,r=e.setAttributes,n=e.isSelected,c=Object(X.useState)(),o=Object(be.a)(c,2),a=o[0],i=o[1],l=Object(de.useSelect)((function(e){return["\n\t\t\thtml,body,:root {\n\t\t\t\tmargin: 0 !important;\n\t\t\t\tpadding: 0 !important;\n\t\t\t\toverflow: visible !important;\n\t\t\t\tmin-height: auto !important;\n\t\t\t}\n\t\t"].concat(Object(W.a)(Object(K.transformStyles)(e("core/block-editor").getSettings().styles)))}),[]);return Object(X.createElement)("div",Object(K.useBlockProps)(),Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(me.ToolbarGroup,null,Object(X.createElement)(me.ToolbarButton,{className:"components-tab-button",isPressed:!a,onClick:function(){i(!1)}},Object(X.createElement)("span",null,"HTML")),Object(X.createElement)(me.ToolbarButton,{className:"components-tab-button",isPressed:a,onClick:function(){i(!0)}},Object(X.createElement)("span",null,Object(Q.__)("Preview"))))),Object(X.createElement)(me.Disabled.Consumer,null,(function(e){return a||e?Object(X.createElement)(X.Fragment,null,Object(X.createElement)(me.SandBox,{html:t.content,styles:l}),!n&&Object(X.createElement)("div",{className:"block-library-html__preview-overlay"})):Object(X.createElement)(K.PlainText,{value:t.content,onChange:function(e){return r({content:e})},placeholder:Object(Q.__)("Write HTML…"),"aria-label":Object(Q.__)("HTML")})})))},save:function(e){var t=e.attributes;return Object(X.createElement)(X.RawHTML,null,t.content)},transforms:Oa},_a=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ee.Path,{d:"M4 17h7V6H4v11zm9-10v1.5h7V7h-7zm0 5.5h7V11h-7v1.5zm0 4h7V15h-7v1.5z"})),wa=Object(X.createElement)(me.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(me.Path,{d:"M18 2l2 4h-2l-2-4h-3l2 4h-2l-2-4h-1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V2zm2 12H10V4.4L11.8 8H20z"}),Object(X.createElement)(me.Path,{d:"M14 20H4V10h3V8H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3h-2z"}),Object(X.createElement)(me.Path,{d:"M5 19h8l-1.59-2H9.24l-.84 1.1L7 16.3 5 19z"})),ka=["image","video"];function Ea(e,t){return e?{backgroundImage:"url(".concat(e,")"),backgroundPosition:t?"".concat(100*t.x,"% ").concat(100*t.y,"%"):"50% 50%"}:{}}function Ca(e){var t=e.isSelected,r=e.isStackedOnMobile,n=Object(or.a)(e,["isSelected","isStackedOnMobile"]),c=Object(xe.useViewportMatch)("small","<");return Object(X.createElement)(me.ResizableBox,Object(ue.a)({showHandle:t&&(!c||!r)},n))}function xa(e){var t=e.mediaId,r=e.mediaUrl,n=e.onSelectMedia;return Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(K.MediaReplaceFlow,{mediaId:t,mediaURL:r,allowedTypes:ka,accept:"image/*,video/*",onSelect:n}))}function Sa(e){var t=e.className,r=e.noticeOperations,n=e.noticeUI,c=e.onSelectMedia;return Object(X.createElement)(K.MediaPlaceholder,{icon:Object(X.createElement)(K.BlockIcon,{icon:wa}),labels:{title:Object(Q.__)("Media area")},className:t,onSelect:c,accept:"image/*,video/*",allowedTypes:ka,notices:n,onError:function(e){r.removeAllNotices(),r.createErrorNotice(e)}})}var Pa=Object(me.withNotices)((function(e){var t=e.className,r=e.commitWidthChange,n=e.focalPoint,c=e.imageFill,o=e.isSelected,a=e.isStackedOnMobile,i=e.mediaAlt,l=e.mediaId,s=e.mediaPosition,u=e.mediaType,b=e.mediaUrl,m=e.mediaWidth,d=e.onSelectMedia,p=e.onWidthChange,g=Object(de.useDispatch)("core/block-editor").toggleSelection;if(u&&b){var h={right:"left"===s,left:"right"===s},f="image"===u&&c?Ea(b,n):{},O={image:function(){return Object(X.createElement)("img",{src:b,alt:i})},video:function(){return Object(X.createElement)("video",{controls:!0,src:b})}};return Object(X.createElement)(Ca,{as:"figure",className:ne()(t,"editor-media-container__resizer"),style:f,size:{width:m+"%"},minWidth:"10%",maxWidth:"100%",enable:h,onResizeStart:function(){g(!1)},onResize:function(e,t,r){p(parseInt(r.style.width))},onResizeStop:function(e,t,n){g(!0),r(parseInt(n.style.width))},axis:"x",isSelected:o,isStackedOnMobile:a},Object(X.createElement)(xa,{onSelectMedia:d,mediaUrl:b,mediaId:l}),(O[u]||J.noop)())}return Object(X.createElement)(Sa,e)}));function Ba(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ta(e){for(var t=1;tEarns his living
    Noiselessly.")}},{name:"core/paragraph",attributes:{content:Object(Q.__)("— Kobayashi Issa (一茶)")}}]},transforms:Da,edit:Ia,save:function(e){var t,r,n=e.attributes,c=n.isStackedOnMobile,o=n.mediaAlt,a=n.mediaPosition,i=n.mediaType,l=n.mediaUrl,s=n.mediaWidth,u=n.mediaId,b=n.verticalAlignment,m=n.imageFill,d=n.focalPoint,p=n.linkClass,g=n.href,h=n.linkTarget,f=n.rel,O=n.mediaSizeSlug||"full",v=Object(J.isEmpty)(f)?void 0:f,j=ne()((t={},Object(Z.a)(t,"wp-image-".concat(u),u&&"image"===i),Object(Z.a)(t,"size-".concat(O),u&&"image"===i),t)),y=Object(X.createElement)("img",{src:l,alt:o,className:j||null});g&&(y=Object(X.createElement)("a",{className:p,href:g,target:h,rel:v},y));var _,w={image:function(){return y},video:function(){return Object(X.createElement)("video",{controls:!0,src:l})}},k=ne()((r={"has-media-on-the-right":"right"===a,"is-stacked-on-mobile":c},Object(Z.a)(r,"is-vertically-aligned-".concat(b),b),Object(Z.a)(r,"is-image-fill",m),r)),E=m?Ea(l,d):{};50!==s&&(_="right"===a?"auto ".concat(s,"%"):"".concat(s,"% auto"));var C={gridTemplateColumns:_};return Object(X.createElement)("div",K.useBlockProps.save({className:k,style:C}),Object(X.createElement)("figure",{className:"wp-block-media-text__media",style:E},(w[i]||J.noop)()),Object(X.createElement)("div",{className:"wp-block-media-text__content"},Object(X.createElement)(K.InnerBlocks.Content,null)))},deprecated:Ma},qa=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12.9c0 .6.5 1.1 1.1 1.1.3 0 .5-.1.8-.3L8.5 17H18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H7.9l-2.4 2.4V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v9z"}));var Wa={apiVersion:2,name:"core/latest-comments",category:"widgets",attributes:{commentsToShow:{type:"number",default:5,minimum:1,maximum:100},displayAvatar:{type:"boolean",default:!0},displayDate:{type:"boolean",default:!0},displayExcerpt:{type:"boolean",default:!0}},supports:{align:!0,html:!1}},Za=Wa.name,$a={title:Object(Q.__)("Latest Comments"),description:Object(Q.__)("Display a list of your most recent comments."),icon:qa,keywords:[Object(Q.__)("recent comments")],example:{},edit:function(e){var t=e.attributes,r=e.setAttributes,n=t.commentsToShow,c=t.displayAvatar,o=t.displayDate,a=t.displayExcerpt;return Object(X.createElement)("div",Object(K.useBlockProps)(),Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Latest comments settings")},Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Display avatar"),checked:c,onChange:function(){return r({displayAvatar:!c})}}),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Display date"),checked:o,onChange:function(){return r({displayDate:!o})}}),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Display excerpt"),checked:a,onChange:function(){return r({displayExcerpt:!a})}}),Object(X.createElement)(me.RangeControl,{label:Object(Q.__)("Number of comments"),value:n,onChange:function(e){return r({commentsToShow:e})},min:1,max:100,required:!0}))),Object(X.createElement)(me.Disabled,null,Object(X.createElement)(Qr.a,{block:"core/latest-comments",attributes:t})))}},Ka=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12zM7 11h2V9H7v2zm0 4h2v-2H7v2zm3-4h7V9h-7v2zm0 4h7v-2h-7v2z"}));function Ya(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ja(e){for(var t=1;t0?a.map((function(e){return e.id})):[],d=r("postType","post",Object(J.pickBy)({categories:m,author:i,order:c,orderby:o,per_page:n},(function(e){return!Object(J.isUndefined)(e)})));return{defaultImageWidth:Object(J.get)(b,[f,"width"],0),defaultImageHeight:Object(J.get)(b,[f,"height"],0),imageSizeOptions:u.filter((function(e){return"full"!==e.slug})).map((function(e){var t=e.name;return{value:e.slug,label:t}})),latestPosts:Array.isArray(d)?d.map((function(e){if(!e.featured_media)return e;var t=l(e.featured_media),r=Object(J.get)(t,["media_details","sizes",f,"source_url"],null);r||(r=Object(J.get)(t,"source_url",null));var n={url:r,alt:null==t?void 0:t.alt_text};return ni(ni({},e),{},{featuredImageInfo:n})})):d}}),[f,n,c,o,a,i]),_=y.imageSizeOptions,w=y.latestPosts,k=y.defaultImageWidth,E=y.defaultImageHeight,C=Object(X.useState)([]),x=Object(be.a)(C,2),S=x[0],P=x[1],B=Object(X.useState)([]),T=Object(be.a)(B,2),z=T[0],N=T[1],M=S.reduce((function(e,t){return ni(ni({},e),{},Object(Z.a)({},t.name,t))}),{}),R=Object(X.useRef)();Object(X.useEffect)((function(){return R.current=!0,dt()({path:Object(Se.addQueryArgs)("/wp/v2/categories",ci)}).then((function(e){R.current&&P(e)})).catch((function(){R.current&&P([])})),dt()({path:Object(Se.addQueryArgs)("/wp/v2/users",oi)}).then((function(e){R.current&&N(e)})).catch((function(){R.current&&N([])})),function(){R.current=!1}}),[]);var V=Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Post content settings")},Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Post content"),checked:u,onChange:function(e){return r({displayPostContent:e})}}),u&&Object(X.createElement)(me.RadioControl,{label:Object(Q.__)("Show:"),selected:s,options:[{label:Object(Q.__)("Excerpt"),value:"excerpt"},{label:Object(Q.__)("Full post"),value:"full_post"}],onChange:function(e){return r({displayPostContentRadio:e})}}),u&&"excerpt"===s&&Object(X.createElement)(me.RangeControl,{label:Object(Q.__)("Max number of words in excerpt"),value:g,onChange:function(e){return r({excerptLength:e})},min:10,max:100})),Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Post meta settings")},Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Display author name"),checked:m,onChange:function(e){return r({displayAuthor:e})}}),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Display post date"),checked:b,onChange:function(e){return r({displayPostDate:e})}})),Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Featured image settings")},Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Display featured image"),checked:l,onChange:function(e){return r({displayFeaturedImage:e})}}),l&&Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.__experimentalImageSizeControl,{onChange:function(e){var t={};e.hasOwnProperty("width")&&(t.featuredImageSizeWidth=e.width),e.hasOwnProperty("height")&&(t.featuredImageSizeHeight=e.height),r(t)},slug:f,width:O,height:v,imageWidth:k,imageHeight:E,imageSizeOptions:_,onChangeImage:function(e){return r({featuredImageSizeSlug:e,featuredImageSizeWidth:void 0,featuredImageSizeHeight:void 0})}}),Object(X.createElement)(me.BaseControl,{className:"block-editor-image-alignment-control__row"},Object(X.createElement)(me.BaseControl.VisualLabel,null,Object(Q.__)("Image alignment")),Object(X.createElement)(K.BlockAlignmentToolbar,{value:h,onChange:function(e){return r({featuredImageAlign:e})},controls:["left","center","right"],isCollapsed:!1})),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Add link to featured image"),checked:j,onChange:function(e){return r({addLinkToFeaturedImage:e})}}))),Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Sorting and filtering")},Object(X.createElement)(me.QueryControls,Object(ue.a)({order:c,orderBy:o},{numberOfItems:n,onOrderChange:function(e){return r({order:e})},onOrderByChange:function(e){return r({orderBy:e})},onNumberOfItemsChange:function(e){return r({postsToShow:e})},categorySuggestions:M,onCategoryChange:function(e){if(!e.some((function(e){return"string"==typeof e&&!M[e]}))){var t=e.map((function(e){return"string"==typeof e?M[e]:e}));if(Object(J.includes)(t,null))return!1;r({categories:t})}},selectedCategories:a,onAuthorChange:function(e){return r({selectedAuthor:""!==e?Number(e):void 0})},authorList:z,selectedAuthorId:i})),"grid"===d&&Object(X.createElement)(me.RangeControl,{label:Object(Q.__)("Columns"),value:p,onChange:function(e){return r({columns:e})},min:2,max:H?Math.min(6,w.length):6,required:!0}))),A=Object(K.useBlockProps)(),H=Array.isArray(w)&&w.length;if(!H)return Object(X.createElement)("div",A,V,Object(X.createElement)(me.Placeholder,{icon:oc,label:Object(Q.__)("Latest Posts")},Array.isArray(w)?Object(Q.__)("No posts found."):Object(X.createElement)(me.Spinner,null)));var L=w.length>n?w.slice(0,n):w,I=[{icon:ei,title:Object(Q.__)("List view"),onClick:function(){return r({postLayout:"list"})},isActive:"list"===d},{icon:ti,title:Object(Q.__)("Grid view"),onClick:function(){return r({postLayout:"grid"})},isActive:"grid"===d}],D=Object(Xa.__experimentalGetSettings)().formats.date;return Object(X.createElement)("div",A,V,Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(me.ToolbarGroup,{controls:I})),Object(X.createElement)("ul",{className:ne()(Object(Z.a)({"wp-block-latest-posts__list":!0,"is-grid":"grid"===d,"has-dates":b,"has-author":m},"columns-".concat(p),"grid"===d))},L.map((function(e,t){var r=Object(J.invoke)(e,["title","rendered","trim"]),n=e.excerpt.rendered,c=z.find((function(t){return t.id===e.author})),o=document.createElement("div");o.innerHTML=n,n=o.textContent||o.innerText||"";var a=e.featuredImageInfo,i=(a=void 0===a?{}:a).url,d=a.alt,p=ne()(Object(Z.a)({"wp-block-latest-posts__featured-image":!0},"align".concat(h),!!h)),f=l&&i,y=f&&Object(X.createElement)("img",{src:i,alt:d,style:{maxWidth:O,maxHeight:v}}),_=g1?n:Object(ar.replace)(n,/\n/g,ar.__UNSTABLE_LINE_SEPARATOR)})),ar.__UNSTABLE_LINE_SEPARATOR),multilineTag:"li"}),anchor:e.anchor})}},{type:"block",blocks:["core/quote","core/pullquote"],transform:function(e){var t=e.value,r=e.anchor;return Object(Y.createBlock)("core/list",{values:Object(ar.toHTMLString)({value:Object(ar.create)({html:t,multilineTag:"p"}),multilineTag:"li"}),anchor:r})}},{type:"raw",selector:"ol,ul",schema:function(e){return{ol:_i(e).ol,ul:_i(e).ul}},transform:function(e){var t={ordered:"OL"===e.nodeName,anchor:""===e.id?void 0:e.id};if(t.ordered){var r=e.getAttribute("type");r&&(t.type=r),null!==e.getAttribute("reversed")&&(t.reversed=!0);var n=parseInt(e.getAttribute("start"),10);isNaN(n)||1===n&&!t.reversed||(t.start=n)}return Object(Y.createBlock)("core/list",yi(yi({},Object(Y.getBlockAttributes)("core/list",e.outerHTML)),t))}}].concat(Object(W.a)(["*","-"].map((function(e){return{type:"prefix",prefix:e,transform:function(e){return Object(Y.createBlock)("core/list",{values:"
  • ".concat(e,"
  • ")})}}}))),Object(W.a)(["1.","1)"].map((function(e){return{type:"prefix",prefix:e,transform:function(e){return Object(Y.createBlock)("core/list",{ordered:!0,values:"
  • ".concat(e,"
  • ")})}}})))),to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.values;return Object(ar.split)(Object(ar.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),ar.__UNSTABLE_LINE_SEPARATOR).map((function(e){return Object(Y.createBlock)("core/paragraph",{content:Object(ar.toHTMLString)({value:e})})}))}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.values;return Object(ar.split)(Object(ar.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),ar.__UNSTABLE_LINE_SEPARATOR).map((function(e){return Object(Y.createBlock)("core/heading",{content:Object(ar.toHTMLString)({value:e})})}))}},{type:"block",blocks:["core/quote"],transform:function(e){var t=e.values,r=e.anchor;return Object(Y.createBlock)("core/quote",{value:Object(ar.toHTMLString)({value:Object(ar.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),multilineTag:"p"}),anchor:r})}},{type:"block",blocks:["core/pullquote"],transform:function(e){var t=e.values,r=e.anchor;return Object(Y.createBlock)("core/pullquote",{value:Object(ar.toHTMLString)({value:Object(ar.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),multilineTag:"p"}),anchor:r})}}]};function ki(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ei(e){for(var t=1;tAlice.
  • The White Rabbit.
  • The Cheshire Cat.
  • The Mad Hatter.
  • The Queen of Hearts.
  • "}},transforms:wi,merge:function(e,t){var r=t.values;return r&&"
  • "!==r?Ei(Ei({},e),{},{values:e.values+r}):e},edit:function(e){var t=e.attributes,r=e.setAttributes,n=e.mergeBlocks,c=e.onReplace,o=e.isSelected,a=t.ordered,i=t.values,l=t.type,s=t.reversed,u=t.start,b=a?"ol":"ul",m=Object(de.useSelect)((function(e){return!!e("core/block-editor").getSettings().isRTL}),[]),d=Object(K.useBlockProps)();return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.RichText,Object(ue.a)({identifier:"values",multiline:"li",__unstableMultilineRootTag:b,tagName:b,onChange:function(e){return r({values:e})},value:i,placeholder:Object(Q.__)("Write list…"),onMerge:n,onSplit:function(e){return Object(Y.createBlock)(xi,vi(vi({},t),{},{values:e}))},__unstableOnSplitMiddle:function(){return Object(Y.createBlock)("core/paragraph")},onReplace:c,onRemove:function(){return c([])},start:u,reversed:s,type:l},d),(function(e){var t=e.value,n=e.onChange,c=e.onFocus;return Object(X.createElement)(X.Fragment,null,o&&Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.RichTextShortcut,{type:"primary",character:"[",onUse:function(){n(Object(ar.__unstableOutdentListItems)(t))}}),Object(X.createElement)(K.RichTextShortcut,{type:"primary",character:"]",onUse:function(){n(Object(ar.__unstableIndentListItems)(t,{type:b}))}}),Object(X.createElement)(K.RichTextShortcut,{type:"primary",character:"m",onUse:function(){n(Object(ar.__unstableIndentListItems)(t,{type:b}))}}),Object(X.createElement)(K.RichTextShortcut,{type:"primaryShift",character:"m",onUse:function(){n(Object(ar.__unstableOutdentListItems)(t))}})),Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(me.ToolbarGroup,{controls:[{icon:m?si:ui,title:Object(Q.__)("Convert to unordered list"),isActive:Object(ar.__unstableIsActiveListType)(t,"ul",b),onClick:function(){n(Object(ar.__unstableChangeListType)(t,{type:"ul"})),c(),Object(ar.__unstableIsListRootSelected)(t)&&r({ordered:!1})}},{icon:m?bi:mi,title:Object(Q.__)("Convert to ordered list"),isActive:Object(ar.__unstableIsActiveListType)(t,"ol",b),onClick:function(){n(Object(ar.__unstableChangeListType)(t,{type:"ol"})),c(),Object(ar.__unstableIsListRootSelected)(t)&&r({ordered:!0})}},{icon:m?di:pi,title:Object(Q.__)("Outdent list item"),shortcut:Object(Q._x)("Backspace","keyboard key"),isDisabled:!Object(ar.__unstableCanOutdentListItems)(t),onClick:function(){n(Object(ar.__unstableOutdentListItems)(t)),c()}},{icon:m?gi:hi,title:Object(Q.__)("Indent list item"),shortcut:Object(Q._x)("Space","keyboard key"),isDisabled:!Object(ar.__unstableCanIndentListItems)(t),onClick:function(){n(Object(ar.__unstableIndentListItems)(t,{type:b})),c()}}]})))})),a&&Object(X.createElement)(fi,{setAttributes:r,ordered:a,reversed:s,start:u}))},save:function(e){var t=e.attributes,r=t.ordered,n=t.values,c=t.type,o=t.reversed,a=t.start,i=r?"ol":"ul";return Object(X.createElement)(i,K.useBlockProps.save({type:c,reversed:o,start:a}),Object(X.createElement)(K.RichText.Content,{value:n,multiline:"li"}))}};var Pi=Object(de.withDispatch)((function(e,t){var r=t.clientId,n=t.attributes,c=e("core/block-editor").replaceBlock;return{convertToHTML:function(){c(r,Object(Y.createBlock)("core/html",{content:n.originalUndelimitedContent}))}}}))((function(e){var t,r=e.attributes,n=e.convertToHTML,c=r.originalName,o=r.originalUndelimitedContent,a=!!o,i=Object(Y.getBlockType)("core/html"),l=[];return a&&i?(t=Object(Q.sprintf)(Object(Q.__)('Your site doesn’t include support for the "%s" block. You can leave this block intact, convert its content to a Custom HTML block, or remove it entirely.'),c),l.push(Object(X.createElement)(me.Button,{key:"convert",onClick:n,isPrimary:!0},Object(Q.__)("Keep as HTML")))):t=Object(Q.sprintf)(Object(Q.__)('Your site doesn’t include support for the "%s" block. You can leave this block intact or remove it entirely.'),c),Object(X.createElement)("div",Object(K.useBlockProps)(),Object(X.createElement)(K.Warning,{actions:l},t),Object(X.createElement)(X.RawHTML,null,o))}));var Bi={apiVersion:2,name:"core/missing",category:"text",attributes:{originalName:{type:"string"},originalUndelimitedContent:{type:"string"},originalContent:{type:"string",source:"html"}},supports:{className:!1,customClassName:!1,inserter:!1,html:!1,reusable:!1}},Ti=Bi.name,zi={name:Ti,title:Object(Q.__)("Unsupported"),description:Object(Q.__)("Your site doesn’t include support for this block."),__experimentalLabel:function(e,t){if("accessibility"===t.context){var r=e.originalName,n=r?Object(Y.getBlockType)(r):void 0;return n?n.settings.title||r:""}},edit:Pi,save:function(e){var t=e.attributes;return Object(X.createElement)(X.RawHTML,null,t.originalContent)}},Ni=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M4 9v1.5h16V9H4zm12 5.5h4V13h-4v1.5zm-6 0h4V13h-4v1.5zm-6 0h4V13H4v1.5z"})),Mi=Object(Q.__)("Read more");var Ri={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:function(e){return e.dataset&&"core/more"===e.dataset.block},transform:function(e){var t=e.dataset,r=t.customText,n=t.noTeaser,c={};return r&&(c.customText=r),""===n&&(c.noTeaser=!0),Object(Y.createBlock)("core/more",c)}}]},Vi={apiVersion:2,name:"core/more",category:"design",attributes:{customText:{type:"string"},noTeaser:{type:"boolean",default:!1}},supports:{customClassName:!1,className:!1,html:!1,multiple:!1}},Ai=Vi.name,Hi={title:Object(Q._x)("More","block name"),description:Object(Q.__)("Content before this block will be shown in the excerpt on your archives page."),keywords:[Object(Q.__)("read more")],icon:Ni,example:{},__experimentalLabel:function(e,t){if("accessibility"===t.context)return e.customText},transforms:Ri,edit:function(e){var t=e.attributes,r=t.customText,n=t.noTeaser,c=e.insertBlocksAfter,o=e.setAttributes,a={width:"".concat((r||Mi).length+1.2,"em")};return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,null,Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Hide the excerpt on the full content page"),checked:!!n,onChange:function(){return o({noTeaser:!n})},help:function(e){return e?Object(Q.__)("The excerpt is hidden."):Object(Q.__)("The excerpt is visible.")}}))),Object(X.createElement)("div",Object(K.useBlockProps)(),Object(X.createElement)("div",{className:"wp-block-more"},Object(X.createElement)("input",{"aria-label":Object(Q.__)("Read more link text"),type:"text",value:r,placeholder:Mi,onChange:function(e){o({customText:""!==e.target.value?e.target.value:void 0})},onKeyDown:function(e){e.keyCode===It.ENTER&&c([Object(Y.createBlock)(Object(Y.getDefaultBlockName)())])},style:a}))))},save:function(e){var t=e.attributes,r=t.customText,n=t.noTeaser,c=r?"\x3c!--more ".concat(r,"--\x3e"):"\x3c!--more--\x3e",o=n?"\x3c!--noteaser--\x3e":"";return Object(X.createElement)(X.RawHTML,null,Object(J.compact)([c,o]).join("\n"))}},Li=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ee.Path,{d:"M7.8 6c0-.7.6-1.2 1.2-1.2h6c.7 0 1.2.6 1.2 1.2v3h1.5V6c0-1.5-1.2-2.8-2.8-2.8H9C7.5 3.2 6.2 4.5 6.2 6v3h1.5V6zm8.4 11c0 .7-.6 1.2-1.2 1.2H9c-.7 0-1.2-.6-1.2-1.2v-3H6.2v3c0 1.5 1.2 2.8 2.8 2.8h6c1.5 0 2.8-1.2 2.8-2.8v-3h-1.5v3zM4 11v1h16v-1H4z"}));var Ii={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:function(e){return e.dataset&&"core/nextpage"===e.dataset.block},transform:function(){return Object(Y.createBlock)("core/nextpage",{})}}]},Di={apiVersion:2,name:"core/nextpage",category:"design",parent:["core/post-content"],supports:{customClassName:!1,className:!1,html:!1}},Gi=Di.name,Fi={title:Object(Q.__)("Page Break"),description:Object(Q.__)("Separate your content into a multi-page experience."),icon:Li,keywords:[Object(Q.__)("next page"),Object(Q.__)("pagination")],example:{},transforms:Ii,edit:function(){return Object(X.createElement)("div",Object(K.useBlockProps)(),Object(X.createElement)("div",{className:"wp-block-nextpage"},Object(X.createElement)("span",null,Object(Q.__)("Page break"))))},save:function(){return Object(X.createElement)(X.RawHTML,null,"\x3c!--nextpage--\x3e")}},Ui=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12zM7 16.5h6V15H7v1.5zm4-4h6V11h-6v1.5zM9 11H7v1.5h2V11zm6 5.5h2V15h-2v1.5z"}));var qi={from:[{type:"block",blocks:["core/code","core/paragraph"],transform:function(e){var t=e.content,r=e.anchor;return Object(Y.createBlock)("core/preformatted",{content:t,anchor:r})}},{type:"raw",isMatch:function(e){return"PRE"===e.nodeName&&!(1===e.children.length&&"CODE"===e.firstChild.nodeName)},schema:function(e){return{pre:{children:e.phrasingContentSchema}}}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(Y.createBlock)("core/paragraph",e)}},{type:"block",blocks:["core/code"],transform:function(e){return Object(Y.createBlock)("core/code",e)}}]},Wi={apiVersion:2,name:"core/preformatted",category:"text",attributes:{content:{type:"string",source:"html",selector:"pre",default:"",__unstablePreserveWhiteSpace:!0}},supports:{anchor:!0}},Zi=Wi.name,$i={title:Object(Q.__)("Preformatted"),description:Object(Q.__)("Add text that respects your spacing and tabs, and also allows styling."),icon:Ui,example:{attributes:{content:Object(Q.__)("EXT. XANADU - FAINT DAWN - 1940 (MINIATURE)\nWindow, very small in the distance, illuminated.\nAll around this is an almost totally black screen. Now, as the camera moves slowly towards the window which is almost a postage stamp in the frame, other forms appear;")}},transforms:qi,edit:function(e){var t=e.attributes,r=e.mergeBlocks,n=e.setAttributes,c=t.content,o=Object(K.useBlockProps)();return Object(X.createElement)(K.RichText,Object(ue.a)({tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:c,onChange:function(e){n({content:e})},placeholder:Object(Q.__)("Write preformatted text…"),onMerge:r},o))},save:function(e){var t=e.attributes.content;return Object(X.createElement)("pre",K.useBlockProps.save(),Object(X.createElement)(K.RichText.Content,{value:t}))},merge:function(e,t){return{content:e.content+t.content}}},Ki=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M18 8H6c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-4c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v4zM4 4v1.5h16V4H4zm0 16h16v-1.5H4V20z"})),Yi="is-style-".concat("solid-color");function Ji(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Qi(e){for(var t=1;t".concat(t,"

    "),anchor:r})}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.value,r=e.citation,n=[];return t&&"

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

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

    "===t)return Object(Y.createBlock)("core/heading",{content:r});var c=Object(ar.split)(Object(ar.create)({html:t,multilineTag:"p"}),"\u2028"),o=Object(Y.createBlock)("core/heading",{content:Object(ar.toHTMLString)({value:c[0]})});if(!r&&1===c.length)return o;var a=c.slice(1);return[o,Object(Y.createBlock)("core/pullquote",al(al({},n),{},{citation:r,value:Object(ar.toHTMLString)({value:a.length?Object(ar.join)(c.slice(1),"\u2028"):Object(ar.create)(),multilineTag:"p"})}))]}}]},ll={apiVersion:2,name:"core/pullquote",category:"text",attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p"},citation:{type:"string",source:"html",selector:"cite",default:""},mainColor:{type:"string"},customMainColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},supports:{anchor:!0,align:["left","right","wide","full"]}},sl=ll.name,ul={title:Object(Q.__)("Pullquote"),description:Object(Q.__)("Give special visual emphasis to a quote from your text."),icon:Ki,example:{attributes:{value:"

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

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

    "),c+="

    ",a.push(c))}for(i=a.length,s=0;s]*>\s*]*>/.test(l)&&(f=!0)}a[s]=l}return e=(e=(e=a.join("\n")).replace(/^\n+/g,"")).replace(/\n+$/g,""),r.converter._dispatch("paragraphs.after",e,t,r)})),o.subParser("runExtension",(function(e,t,r,n){"use strict";if(e.filter)t=e.filter(t,n.converter,r);else if(e.regex){var a=e.regex;a instanceof RegExp||(a=new RegExp(a,"g")),t=t.replace(a,e.replace)}return t})),o.subParser("spanGamut",(function(e,t,r){"use strict";return e=r.converter._dispatch("spanGamut.before",e,t,r),e=o.subParser("codeSpans")(e,t,r),e=o.subParser("escapeSpecialCharsWithinTagAttributes")(e,t,r),e=o.subParser("encodeBackslashEscapes")(e,t,r),e=o.subParser("images")(e,t,r),e=o.subParser("anchors")(e,t,r),e=o.subParser("autoLinks")(e,t,r),e=o.subParser("simplifiedAutoLinks")(e,t,r),e=o.subParser("emoji")(e,t,r),e=o.subParser("underline")(e,t,r),e=o.subParser("italicsAndBold")(e,t,r),e=o.subParser("strikethrough")(e,t,r),e=o.subParser("ellipsis")(e,t,r),e=o.subParser("hashHTMLSpans")(e,t,r),e=o.subParser("encodeAmpsAndAngles")(e,t,r),t.simpleLineBreaks?/\n\n¨K/.test(e)||(e=e.replace(/\n+/g,"
    \n")):e=e.replace(/ +\n/g,"
    \n"),e=r.converter._dispatch("spanGamut.after",e,t,r)})),o.subParser("strikethrough",(function(e,t,r){"use strict";return t.strikethrough&&(e=(e=r.converter._dispatch("strikethrough.before",e,t,r)).replace(/(?:~){2}([\s\S]+?)(?:~){2}/g,(function(e,n){return function(e){return t.simplifiedAutoLink&&(e=o.subParser("simplifiedAutoLinks")(e,t,r)),""+e+""}(n)})),e=r.converter._dispatch("strikethrough.after",e,t,r)),e})),o.subParser("stripLinkDefinitions",(function(e,t,r){"use strict";var n=function(e,n,a,i,s,c,u){return n=n.toLowerCase(),a.match(/^data:.+?\/.+?;base64,/)?r.gUrls[n]=a.replace(/\s/g,""):r.gUrls[n]=o.subParser("encodeAmpsAndAngles")(a,t,r),c?c+u:(u&&(r.gTitles[n]=u.replace(/"|'/g,""")),t.parseImgDimensions&&i&&s&&(r.gDimensions[n]={width:i,height:s}),"")};return e=(e=(e=(e+="¨0").replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n\n|(?=¨0)|(?=\n\[))/gm,n)).replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*\s]+)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=¨0))/gm,n)).replace(/¨0/,"")})),o.subParser("tables",(function(e,t,r){"use strict";if(!t.tables)return e;function n(e,n){return""+o.subParser("spanGamut")(e,t,r)+"\n"}function a(e){var a,i=e.split("\n");for(a=0;a"+(c=o.subParser("spanGamut")(c,t,r))+"\n"));for(a=0;a\n\n\n",a=0;a\n";for(var o=0;o\n"}return r+="\n\n"}(h,b)}return e=(e=(e=(e=r.converter._dispatch("tables.before",e,t,r)).replace(/\\(\|)/g,o.helper.escapeCharactersCallback)).replace(/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,a)).replace(/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm,a),e=r.converter._dispatch("tables.after",e,t,r)})),o.subParser("underline",(function(e,t,r){"use strict";return t.underline?(e=r.converter._dispatch("underline.before",e,t,r),e=(e=t.literalMidWordUnderscores?(e=e.replace(/\b___(\S[\s\S]*?)___\b/g,(function(e,t){return""+t+""}))).replace(/\b__(\S[\s\S]*?)__\b/g,(function(e,t){return""+t+""})):(e=e.replace(/___(\S[\s\S]*?)___/g,(function(e,t){return/\S$/.test(t)?""+t+"":e}))).replace(/__(\S[\s\S]*?)__/g,(function(e,t){return/\S$/.test(t)?""+t+"":e}))).replace(/(_)/g,o.helper.escapeCharactersCallback),e=r.converter._dispatch("underline.after",e,t,r)):e})),o.subParser("unescapeSpecialChars",(function(e,t,r){"use strict";return e=(e=r.converter._dispatch("unescapeSpecialChars.before",e,t,r)).replace(/¨E(\d+)E/g,(function(e,t){var r=parseInt(t);return String.fromCharCode(r)})),e=r.converter._dispatch("unescapeSpecialChars.after",e,t,r)})),o.subParser("makeMarkdown.blockquote",(function(e,t){"use strict";var r="";if(e.hasChildNodes())for(var n=e.childNodes,a=n.length,i=0;i ")})),o.subParser("makeMarkdown.codeBlock",(function(e,t){"use strict";var r=e.getAttribute("language"),n=e.getAttribute("precodenum");return"```"+r+"\n"+t.preList[n]+"\n```"})),o.subParser("makeMarkdown.codeSpan",(function(e){"use strict";return"`"+e.innerHTML+"`"})),o.subParser("makeMarkdown.emphasis",(function(e,t){"use strict";var r="";if(e.hasChildNodes()){r+="*";for(var n=e.childNodes,a=n.length,i=0;i",e.hasAttribute("width")&&e.hasAttribute("height")&&(t+=" ="+e.getAttribute("width")+"x"+e.getAttribute("height")),e.hasAttribute("title")&&(t+=' "'+e.getAttribute("title")+'"'),t+=")"),t})),o.subParser("makeMarkdown.links",(function(e,t){"use strict";var r="";if(e.hasChildNodes()&&e.hasAttribute("href")){var n=e.childNodes,a=n.length;r="[";for(var i=0;i",e.hasAttribute("title")&&(r+=' "'+e.getAttribute("title")+'"'),r+=")"}return r})),o.subParser("makeMarkdown.list",(function(e,t,r){"use strict";var n="";if(!e.hasChildNodes())return"";for(var a=e.childNodes,i=a.length,s=e.getAttribute("start")||1,c=0;c"+t.preList[r]+""})),o.subParser("makeMarkdown.strikethrough",(function(e,t){"use strict";var r="";if(e.hasChildNodes()){r+="~~";for(var n=e.childNodes,a=n.length,i=0;itr>th"),c=e.querySelectorAll("tbody>tr");for(r=0;rh&&(h=g)}for(r=0;r/g,"\\$1>")).replace(/^#/gm,"\\#")).replace(/^(\s*)([-=]{3,})(\s*)$/,"$1\\$2$3")).replace(/^( {0,3}\d+)\./gm,"$1\\.")).replace(/^( {0,3})([+-])/gm,"$1\\$2")).replace(/]([\s]*)\(/g,"\\]$1\\(")).replace(/^ {0,3}\[([\S \t]*?)]:/gm,"\\[$1]:")}));void 0===(n=function(){"use strict";return o}.call(t,r,t,e))||(e.exports=n)}).call(this)},29:function(e,t){!function(){e.exports=this.wp.dom}()},30:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(27);function a(e,t){if(e){if("string"==typeof e)return Object(n.a)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Object(n.a)(e,t):void 0}}},33:function(e,t){!function(){e.exports=this.wp.hooks}()},35:function(e,t){!function(){e.exports=this.wp.deprecated}()},37:function(e,t,r){"use strict";function n(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}r.d(t,"a",(function(){return n}))},38:function(e,t,r){"use strict";function n(e){if(Array.isArray(e))return e}r.d(t,"a",(function(){return n}))},39:function(e,t,r){"use strict";function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}r.d(t,"a",(function(){return n}))},4:function(e,t){!function(){e.exports=this.wp.data}()},41:function(e,t,r){"use strict";var n,a;function o(e){return[e]}function i(){var e={clear:function(){e.head=null}};return e}function s(e,t,r){var n;if(e.length!==t.length)return!1;for(n=r;n0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0;switch(r.type){case"REMOVE_BLOCK_TYPES":return-1!==r.names.indexOf(t)?null:t;case e:return r.name||null}return t}}var h=p("SET_DEFAULT_BLOCK_NAME"),g=p("SET_FREEFORM_FALLBACK_BLOCK_NAME"),b=p("SET_UNREGISTERED_FALLBACK_BLOCK_NAME"),m=p("SET_GROUPING_BLOCK_NAME");var _=Object(o.combineReducers)({blockTypes:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_BLOCK_TYPES":return f(f({},e),Object(c.keyBy)(Object(c.map)(t.blockTypes,(function(e){return Object(c.omit)(e,"styles ")})),"name"));case"REMOVE_BLOCK_TYPES":return Object(c.omit)(e,t.names)}return e},blockStyles:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_BLOCK_TYPES":return f(f({},e),Object(c.mapValues)(Object(c.keyBy)(t.blockTypes,"name"),(function(t){return Object(c.uniqBy)([].concat(Object(i.a)(Object(c.get)(t,["styles"],[])),Object(i.a)(Object(c.get)(e,[t.name],[]))),(function(e){return e.name}))})));case"ADD_BLOCK_STYLES":return f(f({},e),{},Object(s.a)({},t.blockName,Object(c.uniqBy)([].concat(Object(i.a)(Object(c.get)(e,[t.blockName],[])),Object(i.a)(t.styles)),(function(e){return e.name}))));case"REMOVE_BLOCK_STYLES":return f(f({},e),{},Object(s.a)({},t.blockName,Object(c.filter)(Object(c.get)(e,[t.blockName],[]),(function(e){return-1===t.styleNames.indexOf(e.name)}))))}return e},blockVariations:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_BLOCK_TYPES":return f(f({},e),Object(c.mapValues)(Object(c.keyBy)(t.blockTypes,"name"),(function(t){return Object(c.uniqBy)([].concat(Object(i.a)(Object(c.get)(t,["variations"],[])),Object(i.a)(Object(c.get)(e,[t.name],[]))),(function(e){return e.name}))})));case"ADD_BLOCK_VARIATIONS":return f(f({},e),{},Object(s.a)({},t.blockName,Object(c.uniqBy)([].concat(Object(i.a)(Object(c.get)(e,[t.blockName],[])),Object(i.a)(t.variations)),(function(e){return e.name}))));case"REMOVE_BLOCK_VARIATIONS":return f(f({},e),{},Object(s.a)({},t.blockName,Object(c.filter)(Object(c.get)(e,[t.blockName],[]),(function(e){return-1===t.variationNames.indexOf(e.name)}))))}return e},defaultBlockName:h,freeformFallbackBlockName:g,unregisteredFallbackBlockName:b,groupingBlockName:m,categories:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_CATEGORIES":return t.categories||[];case"UPDATE_CATEGORY":if(!t.category||Object(c.isEmpty)(t.category))return e;var r=Object(c.find)(e,["slug",t.slug]);if(r)return Object(c.map)(e,(function(e){return e.slug===t.slug?f(f({},e),t.category):e}))}return e},collections:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_BLOCK_COLLECTION":return f(f({},e),{},Object(s.a)({},t.namespace,{title:t.title,icon:t.icon}));case"REMOVE_BLOCK_COLLECTION":return Object(c.omit)(e,t.namespace)}return e}}),v=r(41);function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function y(e){for(var t=1;t0},I=function(e,t){return Object(c.some)(L(e,t),(function(t){return z(e,t,"inserter",!0)}))};function V(e){return{type:"ADD_BLOCK_TYPES",blockTypes:Object(c.castArray)(e)}}function R(e){return{type:"REMOVE_BLOCK_TYPES",names:Object(c.castArray)(e)}}function F(e,t){return{type:"ADD_BLOCK_STYLES",styles:Object(c.castArray)(t),blockName:e}}function $(e,t){return{type:"REMOVE_BLOCK_STYLES",styleNames:Object(c.castArray)(t),blockName:e}}function q(e,t){return{type:"ADD_BLOCK_VARIATIONS",variations:Object(c.castArray)(t),blockName:e}}function U(e,t){return{type:"REMOVE_BLOCK_VARIATIONS",variationNames:Object(c.castArray)(t),blockName:e}}function G(e){return{type:"SET_DEFAULT_BLOCK_NAME",name:e}}function K(e){return{type:"SET_FREEFORM_FALLBACK_BLOCK_NAME",name:e}}function W(e){return{type:"SET_UNREGISTERED_FALLBACK_BLOCK_NAME",name:e}}function Y(e){return{type:"SET_GROUPING_BLOCK_NAME",name:e}}function Z(e){return{type:"SET_CATEGORIES",categories:e}}function Q(e,t){return{type:"UPDATE_CATEGORY",slug:e,category:t}}function X(e,t,r){return{type:"ADD_BLOCK_COLLECTION",namespace:e,title:t,icon:r}}function J(e){return{type:"REMOVE_BLOCK_COLLECTION",namespace:e}}Object(o.registerStore)("core/blocks",{reducer:_,selectors:n,actions:a});var ee="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),te=new Uint8Array(16);function re(){if(!ee)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ee(te)}for(var ne=[],ae=0;ae<256;++ae)ne[ae]=(ae+256).toString(16).substr(1);var oe=function(e,t){var r=t||0,n=ne;return[n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]]].join("")};var ie=function(e,t,r){var n=t&&r||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||re)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var o=0;o<16;++o)t[n+o]=a[o];return t||oe(a)},se=r(33),ce=r(207),ue=r(66),le=r.n(ue),fe=r(0),de=r(29);function pe(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 he(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:"visual",n=e.__experimentalLabel,a=e.title,o=n&&n(t,{context:r});return o?Object(de.__unstableStripHTML)(o):a}function ye(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"vertical",a=e.title,o=we(e,t,"accessibility"),i=void 0!==r,s=o&&o!==a;return i&&"vertical"===n?s?Object(u.sprintf)(Object(u.__)("%1$s Block. Row %2$d. %3$s"),a,r,o):Object(u.sprintf)(Object(u.__)("%1$s Block. Row %2$d"),a,r):i&&"horizontal"===n?s?Object(u.sprintf)(Object(u.__)("%1$s Block. Column %2$d. %3$s"),a,r,o):Object(u.sprintf)(Object(u.__)("%1$s Block. Column %2$d"),a,r):s?Object(u.sprintf)(Object(u.__)("%1$s Block. %2$s"),a,o):Object(u.sprintf)(Object(u.__)("%s Block"),a)}var ke=["attributes","supports","save","migrate","isEligible"],Oe={"--wp--style--color--link":["color","link"],background:["color","gradient"],backgroundColor:["color","background"],color:["color","text"],fontSize:["typography","fontSize"],lineHeight:["typography","lineHeight"],paddingBottom:["spacing","padding","bottom"],paddingLeft:["spacing","padding","left"],paddingRight:["spacing","padding","right"],paddingTop:["spacing","padding","top"]};function je(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 Ce(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=Ve(e);if(void 0===n)throw new Error("Block type '".concat(e,"' is not registered."));var a=Object(c.reduce)(n.attributes,(function(e,r,n){var a=t[n];return void 0!==a?e[n]=a:r.hasOwnProperty("default")&&(e[n]=r.default),-1!==["node","children"].indexOf(r.source)&&("string"==typeof e[n]?e[n]=[e[n]]:Array.isArray(e[n])||(e[n]=[])),e}),{}),o=ie();return{clientId:o,name:e,isValid:!0,attributes:a,innerBlocks:r}}function rt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=ie();return et(et({},e),{},{clientId:n,attributes:et(et({},e.attributes),t),innerBlocks:r||e.innerBlocks.map((function(e){return rt(e)}))})}var nt=function(e,t,r){if(Object(c.isEmpty)(r))return!1;var n=r.length>1,a=Object(c.first)(r).name;if(!(at(e)||!n||e.isMultiBlock))return!1;if(!at(e)&&!Object(c.every)(r,{name:a}))return!1;if(!("block"===e.type))return!1;var o=Object(c.first)(r);if(!("from"!==t||-1!==e.blocks.indexOf(o.name)||at(e)))return!1;if(!n&&ot(o.name)&&ot(e.blockName))return!1;if(Object(c.isFunction)(e.isMatch)){var i=e.isMultiBlock?r.map((function(e){return e.attributes})):o.attributes;if(!e.isMatch(i))return!1}return!0},at=function(e){return e&&"block"===e.type&&Array.isArray(e.blocks)&&e.blocks.includes("*")},ot=function(e){return e===Le()};function it(e){if(Object(c.isEmpty)(e))return[];var t=function(e){if(Object(c.isEmpty)(e))return[];var t=Re();return Object(c.filter)(t,(function(t){return!!st(ct("from",t.name),(function(t){return nt(t,"from",e)}))}))}(e),r=function(e){if(Object(c.isEmpty)(e))return[];var t=ct("to",Ve(Object(c.first)(e).name).name),r=Object(c.filter)(t,(function(t){return t&&nt(t,"to",e)}));return Object(c.flatMap)(r,(function(e){return e.blocks})).map((function(e){return Ve(e)}))}(e);return Object(c.uniq)([].concat(Object(i.a)(t),Object(i.a)(r)))}function st(e,t){for(var r=Object(se.createHooks)(),n=function(n){var a=e[n];t(a)&&r.addFilter("transform","transform/"+n.toString(),(function(e){return e||a}),a.priority)},a=0;a1,o=n[0],i=o.name,s=ct("from",t),u=st(ct("to",i),(function(e){return"block"===e.type&&(at(e)||-1!==e.blocks.indexOf(t))&&(!a||e.isMultiBlock)}))||st(s,(function(e){return"block"===e.type&&(at(e)||-1!==e.blocks.indexOf(i))&&(!a||e.isMultiBlock)}));if(!u)return null;if(r=u.isMultiBlock?Object(c.has)(u,"__experimentalConvert")?u.__experimentalConvert(n):u.transform(n.map((function(e){return e.attributes})),n.map((function(e){return e.innerBlocks}))):Object(c.has)(u,"__experimentalConvert")?u.__experimentalConvert(o):u.transform(o.attributes,o.innerBlocks),!Object(c.isObjectLike)(r))return null;if((r=Object(c.castArray)(r)).some((function(e){return!Ve(e.name)})))return null;var l=Object(c.findIndex)(r,(function(e){return e.name===t}));return l<0?null:r.map((function(t,r){var n=et(et({},t),{},{clientId:r===l?o.clientId:t.clientId});return Object(se.applyFilters)("blocks.switchToBlockType.transformedBlock",n,e)}))}var lt=function e(t,r){return tt(t,r.attributes,Object(c.map)(r.innerBlocks,(function(t){return e(t.name,t)})))},ft=r(12);function dt(e,t){for(var r,n=t.split(".");r=n.shift();){if(!(r in e))return;e=e[r]}return e}var pt,ht=function(){return pt||(pt=document.implementation.createHTMLDocument("")),pt};function gt(e,t){if(t){if("string"==typeof e){var r=ht();r.body.innerHTML=e,e=r.body}if("function"==typeof t)return t(e);if(Object===t.constructor)return Object.keys(t).reduce((function(r,n){return r[n]=gt(e,t[n]),r}),{})}}function bt(e,t){return 1===arguments.length&&(t=e,e=void 0),function(r){var n=r;if(e&&(n=r.querySelector(e)),n)return dt(n,t)}}var mt=r(105),_t=r(281),vt=r(150),wt=r(21),yt=r(20),kt=/^#[xX]([A-Fa-f0-9]+)$/,Ot=/^#([0-9]+)$/,jt=/^([A-Za-z0-9]+)$/,Ct=(function(){function e(e){this.named=e}e.prototype.parse=function(e){if(e){var t=e.match(kt);return t?String.fromCharCode(parseInt(t[1],16)):(t=e.match(Ot))?String.fromCharCode(parseInt(t[1],10)):(t=e.match(jt))?this.named[t[1]]:void 0}}}(),/[\t\n\f ]/),Tt=/[A-Za-z]/,xt=/\r\n?/g;function Pt(e){return Ct.test(e)}function St(e){return Tt.test(e)}var At=function(){function e(e,t){this.delegate=e,this.entityParser=t,this.state="beforeData",this.line=-1,this.column=-1,this.input="",this.index=-1,this.tagNameBuffer="",this.states={beforeData:function(){var e=this.peek();if("<"!==e||this.isIgnoredEndTag()){if("\n"===e){var t=this.tagNameBuffer.toLowerCase();"pre"!==t&&"textarea"!==t||this.consume()}this.transitionTo("data"),this.delegate.beginData()}else this.transitionTo("tagOpen"),this.markTagStart(),this.consume()},data:function(){var e=this.peek(),t=this.tagNameBuffer;"<"!==e||this.isIgnoredEndTag()?"&"===e&&"script"!==t&&"style"!==t?(this.consume(),this.delegate.appendToData(this.consumeCharRef()||"&")):(this.consume(),this.delegate.appendToData(e)):(this.delegate.finishData(),this.transitionTo("tagOpen"),this.markTagStart(),this.consume())},tagOpen:function(){var e=this.consume();"!"===e?this.transitionTo("markupDeclarationOpen"):"/"===e?this.transitionTo("endTagOpen"):("@"===e||":"===e||St(e))&&(this.transitionTo("tagName"),this.tagNameBuffer="",this.delegate.beginStartTag(),this.appendToTagName(e))},markupDeclarationOpen:function(){"-"===this.consume()&&"-"===this.peek()&&(this.consume(),this.transitionTo("commentStart"),this.delegate.beginComment())},commentStart:function(){var e=this.consume();"-"===e?this.transitionTo("commentStartDash"):">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData(e),this.transitionTo("comment"))},commentStartDash:function(){var e=this.consume();"-"===e?this.transitionTo("commentEnd"):">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("-"),this.transitionTo("comment"))},comment:function(){var e=this.consume();"-"===e?this.transitionTo("commentEndDash"):this.delegate.appendToCommentData(e)},commentEndDash:function(){var e=this.consume();"-"===e?this.transitionTo("commentEnd"):(this.delegate.appendToCommentData("-"+e),this.transitionTo("comment"))},commentEnd:function(){var e=this.consume();">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("--"+e),this.transitionTo("comment"))},tagName:function(){var e=this.consume();Pt(e)?this.transitionTo("beforeAttributeName"):"/"===e?this.transitionTo("selfClosingStartTag"):">"===e?(this.delegate.finishTag(),this.transitionTo("beforeData")):this.appendToTagName(e)},endTagName:function(){var e=this.consume();Pt(e)?(this.transitionTo("beforeAttributeName"),this.tagNameBuffer=""):"/"===e?(this.transitionTo("selfClosingStartTag"),this.tagNameBuffer=""):">"===e?(this.delegate.finishTag(),this.transitionTo("beforeData"),this.tagNameBuffer=""):this.appendToTagName(e)},beforeAttributeName:function(){var e=this.peek();Pt(e)?this.consume():"/"===e?(this.transitionTo("selfClosingStartTag"),this.consume()):">"===e?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):"="===e?(this.delegate.reportSyntaxError("attribute name cannot start with equals sign"),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(e)):(this.transitionTo("attributeName"),this.delegate.beginAttribute())},attributeName:function(){var e=this.peek();Pt(e)?(this.transitionTo("afterAttributeName"),this.consume()):"/"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"="===e?(this.transitionTo("beforeAttributeValue"),this.consume()):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):'"'===e||"'"===e||"<"===e?(this.delegate.reportSyntaxError(e+" is not a valid character within attribute names"),this.consume(),this.delegate.appendToAttributeName(e)):(this.consume(),this.delegate.appendToAttributeName(e))},afterAttributeName:function(){var e=this.peek();Pt(e)?this.consume():"/"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"="===e?(this.consume(),this.transitionTo("beforeAttributeValue")):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(e))},beforeAttributeValue:function(){var e=this.peek();Pt(e)?this.consume():'"'===e?(this.transitionTo("attributeValueDoubleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):"'"===e?(this.transitionTo("attributeValueSingleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.transitionTo("attributeValueUnquoted"),this.delegate.beginAttributeValue(!1),this.consume(),this.delegate.appendToAttributeValue(e))},attributeValueDoubleQuoted:function(){var e=this.consume();'"'===e?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):"&"===e?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(e)},attributeValueSingleQuoted:function(){var e=this.consume();"'"===e?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):"&"===e?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(e)},attributeValueUnquoted:function(){var e=this.peek();Pt(e)?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("beforeAttributeName")):"/"===e?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"&"===e?(this.consume(),this.delegate.appendToAttributeValue(this.consumeCharRef()||"&")):">"===e?(this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.consume(),this.delegate.appendToAttributeValue(e))},afterAttributeValueQuoted:function(){var e=this.peek();Pt(e)?(this.consume(),this.transitionTo("beforeAttributeName")):"/"===e?(this.consume(),this.transitionTo("selfClosingStartTag")):">"===e?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},selfClosingStartTag:function(){">"===this.peek()?(this.consume(),this.delegate.markTagAsSelfClosing(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},endTagOpen:function(){var e=this.consume();("@"===e||":"===e||St(e))&&(this.transitionTo("endTagName"),this.tagNameBuffer="",this.delegate.beginEndTag(),this.appendToTagName(e))}},this.reset()}return e.prototype.reset=function(){this.transitionTo("beforeData"),this.input="",this.tagNameBuffer="",this.index=0,this.line=1,this.column=0,this.delegate.reset()},e.prototype.transitionTo=function(e){this.state=e},e.prototype.tokenize=function(e){this.reset(),this.tokenizePart(e),this.tokenizeEOF()},e.prototype.tokenizePart=function(e){for(this.input+=function(e){return e.replace(xt,"\n")}(e);this.index"!==this.input.substring(this.index,this.index+8)||"style"===e&&""!==this.input.substring(this.index,this.index+8)||"script"===e&&"<\/script>"!==this.input.substring(this.index,this.index+9)},e}(),Et=function(){function e(e,t){void 0===t&&(t={}),this.options=t,this.token=null,this.startLine=1,this.startColumn=0,this.tokens=[],this.tokenizer=new At(this,e),this._currentAttribute=void 0}return e.prototype.tokenize=function(e){return this.tokens=[],this.tokenizer.tokenize(e),this.tokens},e.prototype.tokenizePart=function(e){return this.tokens=[],this.tokenizer.tokenizePart(e),this.tokens},e.prototype.tokenizeEOF=function(){return this.tokens=[],this.tokenizer.tokenizeEOF(),this.tokens[0]},e.prototype.reset=function(){this.token=null,this.startLine=1,this.startColumn=0},e.prototype.current=function(){var e=this.token;if(null===e)throw new Error("token was unexpectedly null");if(0===arguments.length)return e;for(var t=0;t1?r-1:0),a=1;a2&&void 0!==arguments[2]?arguments[2]:[],n=ve(e),a=n.save;if(a.prototype instanceof fe.Component){var o=new a({attributes:t});a=o.render.bind(o)}var i=a({attributes:t,innerBlocks:r});if(Object(c.isObject)(i)&&Object(se.hasFilter)("blocks.getSaveContent.extraProps")){var s=Object(se.applyFilters)("blocks.getSaveContent.extraProps",Ut({},i.props),n,t);zt()(s,i.props)||(i=Object(fe.cloneElement)(i,s))}return i=Object(se.applyFilters)("blocks.getSaveElement",i,n,t),Object(fe.createElement)($t,{innerBlocks:r},i)}function Yt(e,t,r){var n=ve(e);return Object(fe.renderToString)(Wt(n,t,r))}function Zt(e,t){return Object(c.reduce)(e.attributes,(function(e,r,n){var a=t[n];return void 0===a||void 0!==r.source||"default"in r&&r.default===a||(e[n]=a),e}),{})}function Qt(e){var t=e.originalContent;if(e.isValid||e.innerBlocks.length)try{t=Yt(e.name,e.attributes,e.innerBlocks)}catch(e){}return t}function Xt(e,t,r){var n=Object(c.isEmpty)(t)?"":function(e){return JSON.stringify(e).replace(/--/g,"\\u002d\\u002d").replace(//g,"\\u003e").replace(/&/g,"\\u0026").replace(/\\"/g,"\\u0022")}(t)+" ",a=Object(c.startsWith)(e,"core/")?e.slice(5):e;return r?"\x3c!-- wp:".concat(a," ").concat(n,"--\x3e\n")+r+"\n\x3c!-- /wp:".concat(a," --\x3e"):"\x3c!-- wp:".concat(a," ").concat(n,"/--\x3e")}function Jt(e,t){return Object(c.castArray)(e).map((function(e){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.isInnerBlocks,n=void 0!==r&&r,a=e.name,o=Qt(e);if(a===ze()||!n&&a===Ne())return o;var i=Ve(a),s=Zt(i,e.attributes);return Xt(a,s,o)}(e,t)})).join("\n\n")}function er(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 tr=/[\t\n\r\v\f ]+/g,rr=/^[\t\n\r\v\f ]*$/,nr=/^url\s*\(['"\s]*(.*?)['"\s]*\)$/,ar=["allowfullscreen","allowpaymentrequest","allowusermedia","async","autofocus","autoplay","checked","controls","default","defer","disabled","download","formnovalidate","hidden","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","typemustmatch"],or=[].concat(ar,["autocapitalize","autocomplete","charset","contenteditable","crossorigin","decoding","dir","draggable","enctype","formenctype","formmethod","http-equiv","inputmode","kind","method","preload","scope","shape","spellcheck","translate","type","wrap"]),ir=[c.identity,function(e){return fr(e).join(" ")}],sr=/^[\da-z]+$/i,cr=/^#\d+$/,ur=/^#x[\da-f]+$/i;var lr=function(){function e(){Object(wt.a)(this,e)}return Object(yt.a)(e,[{key:"parse",value:function(e){if(t=e,sr.test(t)||cr.test(t)||ur.test(t))return Object(Bt.decodeEntities)("&"+e+";");var t}}]),e}();function fr(e){return e.trim().split(tr)}function dr(e){return e.attributes.filter((function(e){var t=Object(ft.a)(e,2),r=t[0];return t[1]||0===r.indexOf("data-")||Object(c.includes)(or,r)}))}function pr(e,t){for(var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Nt(),n=e.chars,a=t.chars,o=0;o2&&void 0!==arguments[2]?arguments[2]:Nt();if(e.length!==t.length)return r.warning("Expected attributes %o, instead saw %o.",t,e),!1;for(var n={},a=0;a2&&void 0!==arguments[2]?arguments[2]:Nt();return e.tagName!==t.tagName&&e.tagName.toLowerCase()!==t.tagName.toLowerCase()?(r.warning("Expected tag name `%s`, instead saw `%s`.",t.tagName,e.tagName),!1):mr.apply(void 0,Object(i.a)([e,t].map(dr)).concat([r]))},Chars:pr,Comment:pr};function vr(e){for(var t;t=e.shift();){if("Chars"!==t.type)return t;if(!rr.test(t.chars))return t}}function wr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Nt();try{return new Et(new lr).tokenize(e)}catch(r){t.warning("Malformed HTML detected: %s",e)}return null}function yr(e,t){return!!e.selfClosing&&!(!t||t.tagName!==e.tagName||"EndTag"!==t.type)}function kr(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Nt();if(e===t)return!0;var n,a,o=[e,t].map((function(e){return wr(e,r)})),i=Object(ft.a)(o,2),s=i[0],c=i[1];if(!s||!c)return!1;for(;n=vr(s);){if(!(a=vr(c)))return r.warning("Expected end of content, instead saw %o.",n),!1;if(n.type!==a.type)return r.warning("Expected token of type `%s` (%o), instead saw `%s` (%o).",a.type,a,n.type,n),!1;var u=_r[n.type];if(u&&!u(n,a,r))return!1;yr(n,c[0])?vr(c):yr(a,s[0])&&vr(s)}return!(a=vr(c))||(r.warning("Expected %o, instead saw end of content.",a),!1)}function Or(e,t,r){var n,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Lt(),o=ve(e);try{n=Yt(o,t)}catch(e){return a.error("Block validation failed because an error occurred while generating block content:\n\n%s",e.toString()),{isValid:!1,validationIssues:a.getItems()}}var i=kr(r,n,a);return i||a.error("Block validation failed for `%s` (%o).\n\nContent generated by `save` function:\n\n%s\n\nContent retrieved from post body:\n\n%s",o.name,o,n,r),{isValid:i,validationIssues:a.getItems()}}function jr(e,t,r){return Or(e,t,r,Nt()).isValid}function Cr(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 Tr(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{},n=ve(e),a=Object(c.mapValues)(n.attributes,(function(e,n){return Vr(n,e,t,r)}));return Object(se.applyFilters)("blocks.getBlockAttributes",a,n,t,r)}function Fr(e){var t=e.blockName,r=e.attrs,n=e.innerBlocks,a=void 0===n?[]:n,o=e.innerHTML,s=e.innerContent,u=Ne(),l=ze()||u;r=r||{},o=o.trim();var f=t||u;if("core/cover-image"===f&&(f="core/cover"),"core/text"!==f&&"core/cover-text"!==f||(f="core/paragraph"),f&&0===f.indexOf("core/social-link-")&&(r.service=f.substring(17),f="core/social-link"),f&&0===f.indexOf("core-embed/")){var d=f.substring(11),p={speaker:"speaker-deck",polldaddy:"crowdsignal"};r.providerNameSlug=d in p?p[d]:d,["amazon-kindle","wordpress"].includes(d)||(r.responsive=!0),f="core/embed"}f===u&&(o=Object(mt.autop)(o).trim());var h=Ve(f);if(!h){var g={attrs:r,blockName:t,innerBlocks:a,innerContent:s},b=$r(g,{isCommentDelimited:!1}),m=$r(g,{isCommentDelimited:!0});f&&(o=m),r={originalName:t,originalContent:m,originalUndelimitedContent:b},h=Ve(f=l)}a=(a=a.map(Fr)).filter((function(e){return e}));var _=f===u||f===l;if(h&&(o||!_)){var v=tt(f,Rr(h,o,r),a);if(!_){var w=Or(h,v.attributes,o),y=w.isValid,k=w.validationIssues;v.isValid=y,v.validationIssues=k}return v.originalContent=v.originalContent||o,(v=function(e,t){var r=Ve(e.name),n=r.deprecated;if(!n||!n.length)return e;for(var a=e,o=a.originalContent,s=a.innerBlocks,u=0;u0&&(v.isValid?console.info("Block successfully updated for `%s` (%o).\n\nNew content generated by `save` function:\n\n%s\n\nContent retrieved from post body:\n\n%s",h.name,h,Yt(h,v.attributes),v.originalContent):v.validationIssues.forEach((function(e){var t=e.log,r=e.args;return t.apply(void 0,Object(i.a)(r))}))),v}}function $r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.isCommentDelimited,n=void 0===r||r,a=e.blockName,o=e.attrs,i=void 0===o?{}:o,s=e.innerBlocks,c=void 0===s?[]:s,u=e.innerContent,l=void 0===u?[]:u,f=0,d=l.map((function(e){return null!==e?e:$r(c[f++],t)})).join("\n").replace(/\n+/g,"\n").trim();return n?Xt(a,i,d):d}var qr,Ur=(qr=_t.parse,function(e){return qr(e).reduce((function(e,t){var r=Fr(t);return r&&e.push(r),e}),[])}),Gr=Ur;function Kr(e){var t=document.implementation.createHTMLDocument(""),r=document.implementation.createHTMLDocument(""),n=t.body,a=r.body;for(n.innerHTML=e;n.firstChild;){var o=n.firstChild;o.nodeType===o.TEXT_NODE?o.nodeValue.trim()?(a.lastChild&&"P"===a.lastChild.nodeName||a.appendChild(r.createElement("P")),a.lastChild.appendChild(o)):n.removeChild(o):o.nodeType===o.ELEMENT_NODE?"BR"===o.nodeName?(o.nextSibling&&"BR"===o.nextSibling.nodeName&&(a.appendChild(r.createElement("P")),n.removeChild(o.nextSibling)),a.lastChild&&"P"===a.lastChild.nodeName&&a.lastChild.hasChildNodes()?a.lastChild.appendChild(o):n.removeChild(o)):"P"===o.nodeName?Object(de.isEmpty)(o)?n.removeChild(o):a.appendChild(o):Object(de.isPhrasingContent)(o)?(a.lastChild&&"P"===a.lastChild.nodeName||a.appendChild(r.createElement("P")),a.lastChild.appendChild(o)):a.appendChild(o):n.removeChild(o)}return a.innerHTML}function Wr(e,t){if(e.nodeType===e.COMMENT_NODE)if("nextpage"!==e.nodeValue){if(0===e.nodeValue.indexOf("more")){for(var r=e.nodeValue.slice(4).trim(),n=e,a=!1;n=n.nextSibling;)if(n.nodeType===n.COMMENT_NODE&&"noteaser"===n.nodeValue){a=!0,Object(de.remove)(n);break}Object(de.replace)(e,function(e,t,r){var n=r.createElement("wp-block");n.dataset.block="core/more",e&&(n.dataset.customText=e);t&&(n.dataset.noTeaser="");return n}(r,a,t))}}else Object(de.replace)(e,function(e){var t=e.createElement("wp-block");return t.dataset.block="core/nextpage",t}(t))}function Yr(e){e.nodeType===e.COMMENT_NODE&&Object(de.remove)(e)}function Zr(e,t){return e.every((function(e){return function(e,t){if(Object(de.isTextContent)(e))return!0;if(!t)return!1;var r=e.nodeName.toLowerCase();return[["ul","li","ol"],["h1","h2","h3","h4","h5","h6"]].some((function(e){return 0===Object(c.difference)([r,t],e).length}))}(e,t)&&Zr(Array.from(e.children),t)}))}function Qr(e){return"BR"===e.nodeName&&e.previousSibling&&"BR"===e.previousSibling.nodeName}function Xr(e,t){if("SPAN"===e.nodeName&&e.style){var r=e.style,n=r.fontWeight,a=r.fontStyle,o=r.textDecorationLine,i=r.textDecoration,s=r.verticalAlign;"bold"!==n&&"700"!==n||Object(de.wrap)(t.createElement("strong"),e),"italic"===a&&Object(de.wrap)(t.createElement("em"),e),("line-through"===o||Object(c.includes)(i,"line-through"))&&Object(de.wrap)(t.createElement("s"),e),"super"===s?Object(de.wrap)(t.createElement("sup"),e):"sub"===s&&Object(de.wrap)(t.createElement("sub"),e)}else"B"===e.nodeName?e=Object(de.replaceTag)(e,"strong"):"I"===e.nodeName?e=Object(de.replaceTag)(e,"em"):"A"===e.nodeName&&(e.target&&"_blank"===e.target.toLowerCase()?e.rel="noreferrer noopener":(e.removeAttribute("target"),e.removeAttribute("rel")))}function Jr(e){"SCRIPT"!==e.nodeName&&"NOSCRIPT"!==e.nodeName&&"TEMPLATE"!==e.nodeName&&"STYLE"!==e.nodeName||e.parentNode.removeChild(e)}var en=window.parseInt;function tn(e){return"OL"===e.nodeName||"UL"===e.nodeName}function rn(e,t){if("P"===e.nodeName){var r=e.getAttribute("style");if(r&&-1!==r.indexOf("mso-list")){var n=/mso-list\s*:[^;]+level([0-9]+)/i.exec(r);if(n){var a=en(n[1],10)-1||0,o=e.previousElementSibling;if(!o||!tn(o)){var i=e.textContent.trim().slice(0,1),s=/[1iIaA]/.test(i),c=t.createElement(s?"ol":"ul");s&&c.setAttribute("type",i),e.parentNode.insertBefore(c,e)}var u=e.previousElementSibling,l=u.nodeName,f=t.createElement("li"),d=u;for(e.removeChild(e.firstElementChild);e.firstChild;)f.appendChild(e.firstChild);for(;a--;)tn(d=d.lastElementChild||d)&&(d=d.lastElementChild||d);tn(d)||(d=d.appendChild(t.createElement(l))),d.appendChild(f),e.parentNode.removeChild(e)}}}}function nn(e){return"OL"===e.nodeName||"UL"===e.nodeName}function an(e){if(nn(e)){var t=e,r=e.previousElementSibling;if(r&&r.nodeName===e.nodeName&&1===t.children.length){for(;t.firstChild;)r.appendChild(t.firstChild);t.parentNode.removeChild(t)}var n,a=e.parentNode;if(a&&"LI"===a.nodeName&&1===a.children.length&&!/\S/.test((n=a,Array.from(n.childNodes).map((function(e){var t=e.nodeValue;return void 0===t?"":t})).join("")))){var o=a,i=o.previousElementSibling,s=o.parentNode;i?(i.appendChild(t),s.removeChild(o)):(s.parentNode.insertBefore(t,s),s.parentNode.removeChild(s))}if(a&&nn(a)){var c=e.previousElementSibling;c?c.appendChild(e):Object(de.unwrap)(e)}}}var on=r(43),sn=window,cn=sn.atob,un=sn.File;function ln(e){if("IMG"===e.nodeName){if(0===e.src.indexOf("file:")&&(e.src=""),0===e.src.indexOf("data:")){var t,r=e.src.split(","),n=Object(ft.a)(r,2),a=n[0],o=n[1],i=a.slice(5).split(";"),s=Object(ft.a)(i,1)[0];if(!o||!s)return void(e.src="");try{t=cn(o)}catch(t){return void(e.src="")}for(var c=new Uint8Array(t.length),u=0;u1&&void 0!==arguments[1]?arguments[1]:e,r=e.ownerDocument.createElement("figure");t.parentNode.insertBefore(r,t),r.appendChild(e)}function pn(e,t,r){if(function(e,t){var r=e.nodeName.toLowerCase();return"figcaption"!==r&&!Object(de.isTextContent)(e)&&Object(c.has)(t,["figure","children",r])}(e,r)){var n=e,a=e.parentNode;(function(e,t){var r=e.nodeName.toLowerCase();return Object(c.has)(t,["figure","children","a","children",r])})(e,r)&&"A"===a.nodeName&&1===a.childNodes.length&&(n=e.parentNode);var o=n.closest("p,div");o?e.classList?(e.classList.contains("alignright")||e.classList.contains("alignleft")||e.classList.contains("aligncenter")||!o.textContent.trim())&&dn(n,o):dn(n,o):"BODY"===n.parentNode.nodeName&&dn(n)}}var hn=r(129);function gn(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 bn(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=ct("from"),o=st(a,(function(e){return-1===n.indexOf(e.blockName)&&"shortcode"===e.type&&Object(c.some)(Object(c.castArray)(e.tag),(function(e){return Object(hn.regexp)(e).test(t)}))}));if(!o)return[t];var s,u=Object(c.castArray)(o.tag),l=Object(c.find)(u,(function(e){return Object(hn.regexp)(e).test(t)})),f=r;if(s=Object(hn.next)(l,t,r)){r=s.index+s.content.length;var d=t.substr(0,s.index),p=t.substr(r);if(!(Object(c.includes)(s.shortcode.content||"","<")||/(\n|

    )\s*$/.test(d)&&/^\s*(\n|<\/p>)/.test(p)))return e(t,r);if(o.isMatch&&!o.isMatch(s.shortcode.attrs))return e(t,f,[].concat(Object(i.a)(n),[o.blockName]));var h=Object(c.mapValues)(Object(c.pickBy)(o.attributes,(function(e){return e.shortcode})),(function(e){return e.shortcode(s.shortcode.attrs,s)})),g=tt(o.blockName,Rr(bn(bn({},Ve(o.blockName)),{},{attributes:o.attributes}),s.shortcode.content,h));return[d,g].concat(Object(i.a)(e(t.substr(r))))}return[t]},_n=r(282),vn=new(r.n(_n).a.Converter)({noHeaderId:!0,tables:!0,literalMidWordUnderscores:!0,omitExtraWLInCodeBlocks:!0,simpleLineBreaks:!0,strikethrough:!0});function wn(e){if("IFRAME"===e.nodeName){var t=e.ownerDocument.createTextNode(e.src);e.parentNode.replaceChild(t,e)}}function yn(e){e.id&&0===e.id.indexOf("docs-internal-guid-")&&Object(de.unwrap)(e)}function kn(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 On(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,n=document.implementation.createHTMLDocument("");return n.body.innerHTML=e,Cn(n.body.childNodes,t,n,r),n.body.innerHTML}function xn(e,t){var r=e["".concat(t,"Sibling")];if(r&&Object(de.isPhrasingContent)(r))return r;var n=e.parentNode;return n&&Object(de.isPhrasingContent)(n)?xn(n,t):void 0}function Pn(e){if(e.nodeType===e.TEXT_NODE){for(var t=e;t=t.parentNode;)if(t.nodeType===t.ELEMENT_NODE&&"PRE"===t.nodeName)return;var r,n=e.data.replace(/[ \r\n\t]+/g," ");if(" "===n[0]){var a=xn(e,"previous");a&&"BR"!==a.nodeName&&" "!==a.textContent.slice(-1)||(n=n.slice(1))}if(" "===n[n.length-1]){var o=xn(e,"next");(!o||"BR"===o.nodeName||o.nodeType===o.TEXT_NODE&&(" "===(r=o.textContent[0])||"\r"===r||"\n"===r||"\t"===r))&&(n=n.slice(0,-1))}n?e.data=n:e.parentNode.removeChild(e)}}function Sn(e){"BR"===e.nodeName&&(xn(e,"next")||e.parentNode.removeChild(e))}function An(e){"P"===e.nodeName&&(e.hasChildNodes()||e.parentNode.removeChild(e))}function En(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 Bn(e){for(var t=1;t]+>/g,"")).replace(/^\s*]*>\s*]*>(?:\s*)?/i,"")).replace(/(?:\s*)?<\/body>\s*<\/html>\s*$/i,""),"INLINE"!==s){var l=n||o;if(-1!==l.indexOf("\x3c!-- wp:"))return Ur(l)}if(String.prototype.normalize&&(n=n.normalize()),!o||n&&!function(e){return!/<(?!br[ />])/i.test(e)}(n)||(t=o,n=vn.makeHtml(function(e){return e.replace(/((?:^|\n)```)([^\n`]+)(```(?:$|\n))/,(function(e,t,r,n){return"".concat(t,"\n").concat(r,"\n").concat(n)}))}(t)),"AUTO"===s&&-1===o.indexOf("\n")&&0!==o.indexOf("

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

    ")&&(s="INLINE")),"INLINE"===s)return Ln(n);var f=mn(n),d=f.length>1;if("AUTO"===s&&!d&&function(e,t){var r=document.implementation.createHTMLDocument("");r.body.innerHTML=e;var n=Array.from(r.body.children);return!n.some(Qr)&&Zr(n,t)}(n,u))return Ln(n);var p=Object(c.filter)(ct("from"),{type:"raw"}).map((function(e){return e.isMatch?e:Bn(Bn({},e),{},{isMatch:function(t){return e.selector&&t.matches(e.selector)}})})),h=Object(de.getPhrasingContentSchema)("paste"),g=jn(p,h,!0),b=Object(c.compact)(Object(c.flatMap)(f,(function(e){if("string"!=typeof e)return e;var t=[yn,rn,Jr,an,ln,Xr,Wr,Yr,wn,pn,fn],r=Bn(Bn({},g),h);return e=Tn(e,t,g),e=Tn(e=Kr(e=Object(de.removeInvalidHTML)(e,r)),[Pn,Sn,An],g),Nn.log("Processed HTML piece:\n\n",e),function(e){var t=e.html,r=e.rawTransforms,n=document.implementation.createHTMLDocument("");return n.body.innerHTML=t,Array.from(n.body.children).map((function(e){var t=st(r,(function(t){return(0,t.isMatch)(e)}));if(!t)return tt("core/html",Rr("core/html",e.outerHTML));var n=t.transform,a=t.blockName;return n?n(e):tt(a,Rr(a,e.outerHTML))}))}({html:e,rawTransforms:p})})));if("AUTO"===s&&1===b.length&&$e(b[0].name,"__unstablePasteTextInline",!1)){var m=o.trim();if(""!==m&&-1===m.indexOf("\n"))return Object(de.removeInvalidHTML)(Qt(b[0]),h)}return b}var zn=r(35),Dn=r.n(zn);function Hn(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 In(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length===t.length&&Object(c.every)(t,(function(t,r){var n=Object(ft.a)(t,3),a=n[0],o=n[2],i=e[r];return a===i.name&&Kn(i.innerBlocks,o)}))}function Wn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return t?Object(c.map)(t,(function(t,r){var n=Object(ft.a)(t,3),a=n[0],o=n[1],i=n[2],s=e[r];if(s&&s.name===a){var u=Wn(s.innerBlocks,i);return Gn(Gn({},s),{},{innerBlocks:u})}var l=Ve(a),f=function(e,t){return Object(c.mapValues)(t,(function(t,r){return d(e[r],t)}))},d=function(e,t){return r=e,"html"===Object(c.get)(r,["source"])&&Object(c.isArray)(t)?Object(fe.renderToString)(t):function(e){return"query"===Object(c.get)(e,["source"])}(e)&&t?t.map((function(t){return f(e.query,t)})):t;var r};return tt(a,f(Object(c.get)(l,["attributes"],{}),o),Wn([],i))})):e}},5:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"a",(function(){return n}))},64:function(e,t){!function(){e.exports=this.wp.isShallowEqual}()},66:function(e,t,r){var n;!function(a){var o=/^\s+/,i=/\s+$/,s=0,c=a.round,u=a.min,l=a.max,f=a.random;function d(e,t){if(t=t||{},(e=e||"")instanceof d)return e;if(!(this instanceof d))return new d(e,t);var r=function(e){var t={r:0,g:0,b:0},r=1,n=null,s=null,c=null,f=!1,d=!1;"string"==typeof e&&(e=function(e){e=e.replace(o,"").replace(i,"").toLowerCase();var t,r=!1;if(A[e])e=A[e],r=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=$.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=$.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=$.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=$.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=$.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=$.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=$.hex8.exec(e))return{r:M(t[1]),g:M(t[2]),b:M(t[3]),a:I(t[4]),format:r?"name":"hex8"};if(t=$.hex6.exec(e))return{r:M(t[1]),g:M(t[2]),b:M(t[3]),format:r?"name":"hex"};if(t=$.hex4.exec(e))return{r:M(t[1]+""+t[1]),g:M(t[2]+""+t[2]),b:M(t[3]+""+t[3]),a:I(t[4]+""+t[4]),format:r?"name":"hex8"};if(t=$.hex3.exec(e))return{r:M(t[1]+""+t[1]),g:M(t[2]+""+t[2]),b:M(t[3]+""+t[3]),format:r?"name":"hex"};return!1}(e));"object"==typeof e&&(q(e.r)&&q(e.g)&&q(e.b)?(p=e.r,h=e.g,g=e.b,t={r:255*N(p,255),g:255*N(h,255),b:255*N(g,255)},f=!0,d="%"===String(e.r).substr(-1)?"prgb":"rgb"):q(e.h)&&q(e.s)&&q(e.v)?(n=D(e.s),s=D(e.v),t=function(e,t,r){e=6*N(e,360),t=N(t,100),r=N(r,100);var n=a.floor(e),o=e-n,i=r*(1-t),s=r*(1-o*t),c=r*(1-(1-o)*t),u=n%6;return{r:255*[r,s,i,i,c,r][u],g:255*[c,r,r,s,i,i][u],b:255*[i,i,c,r,r,s][u]}}(e.h,n,s),f=!0,d="hsv"):q(e.h)&&q(e.s)&&q(e.l)&&(n=D(e.s),c=D(e.l),t=function(e,t,r){var n,a,o;function i(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}if(e=N(e,360),t=N(t,100),r=N(r,100),0===t)n=a=o=r;else{var s=r<.5?r*(1+t):r+t-r*t,c=2*r-s;n=i(c,s,e+1/3),a=i(c,s,e),o=i(c,s,e-1/3)}return{r:255*n,g:255*a,b:255*o}}(e.h,n,c),f=!0,d="hsl"),e.hasOwnProperty("a")&&(r=e.a));var p,h,g;return r=B(r),{ok:f,format:e.format||d,r:u(255,l(t.r,0)),g:u(255,l(t.g,0)),b:u(255,l(t.b,0)),a:r}}(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=c(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=c(this._r)),this._g<1&&(this._g=c(this._g)),this._b<1&&(this._b=c(this._b)),this._ok=r.ok,this._tc_id=s++}function p(e,t,r){e=N(e,255),t=N(t,255),r=N(r,255);var n,a,o=l(e,t,r),i=u(e,t,r),s=(o+i)/2;if(o==i)n=a=0;else{var c=o-i;switch(a=s>.5?c/(2-o-i):c/(o+i),o){case e:n=(t-r)/c+(t>1)+720)%360;--t;)n.h=(n.h+a)%360,o.push(d(n));return o}function S(e,t){t=t||6;for(var r=d(e).toHsv(),n=r.h,a=r.s,o=r.v,i=[],s=1/t;t--;)i.push(d({h:n,s:a,v:o})),o=(o+s)%1;return i}d.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,r,n=this.toRgb();return e=n.r/255,t=n.g/255,r=n.b/255,.2126*(e<=.03928?e/12.92:a.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:a.pow((t+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:a.pow((r+.055)/1.055,2.4))},setAlpha:function(e){return this._a=B(e),this._roundA=c(100*this._a)/100,this},toHsv:function(){var e=h(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=h(this._r,this._g,this._b),t=c(360*e.h),r=c(100*e.s),n=c(100*e.v);return 1==this._a?"hsv("+t+", "+r+"%, "+n+"%)":"hsva("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=p(this._r,this._g,this._b),t=c(360*e.h),r=c(100*e.s),n=c(100*e.l);return 1==this._a?"hsl("+t+", "+r+"%, "+n+"%)":"hsla("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return g(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,r,n,a){var o=[z(c(e).toString(16)),z(c(t).toString(16)),z(c(r).toString(16)),z(H(n))];if(a&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1))return o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0);return o.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:c(this._r),g:c(this._g),b:c(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+c(this._r)+", "+c(this._g)+", "+c(this._b)+")":"rgba("+c(this._r)+", "+c(this._g)+", "+c(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:c(100*N(this._r,255))+"%",g:c(100*N(this._g,255))+"%",b:c(100*N(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+c(100*N(this._r,255))+"%, "+c(100*N(this._g,255))+"%, "+c(100*N(this._b,255))+"%)":"rgba("+c(100*N(this._r,255))+"%, "+c(100*N(this._g,255))+"%, "+c(100*N(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(E[g(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+b(this._r,this._g,this._b,this._a),r=t,n=this._gradientType?"GradientType = 1, ":"";if(e){var a=d(e);r="#"+b(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+t+",endColorstr="+r+")"},toString:function(e){var t=!!e;e=e||this._format;var r=!1,n=this._a<1&&this._a>=0;return t||!n||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(r=this.toRgbString()),"prgb"===e&&(r=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(r=this.toHexString()),"hex3"===e&&(r=this.toHexString(!0)),"hex4"===e&&(r=this.toHex8String(!0)),"hex8"===e&&(r=this.toHex8String()),"name"===e&&(r=this.toName()),"hsl"===e&&(r=this.toHslString()),"hsv"===e&&(r=this.toHsvString()),r||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return d(this.toString())},_applyModification:function(e,t){var r=e.apply(null,[this].concat([].slice.call(t)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(w,arguments)},brighten:function(){return this._applyModification(y,arguments)},darken:function(){return this._applyModification(k,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(_,arguments)},greyscale:function(){return this._applyModification(v,arguments)},spin:function(){return this._applyModification(O,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(P,arguments)},complement:function(){return this._applyCombination(j,arguments)},monochromatic:function(){return this._applyCombination(S,arguments)},splitcomplement:function(){return this._applyCombination(x,arguments)},triad:function(){return this._applyCombination(C,arguments)},tetrad:function(){return this._applyCombination(T,arguments)}},d.fromRatio=function(e,t){if("object"==typeof e){var r={};for(var n in e)e.hasOwnProperty(n)&&(r[n]="a"===n?e[n]:D(e[n]));e=r}return d(e,t)},d.equals=function(e,t){return!(!e||!t)&&d(e).toRgbString()==d(t).toRgbString()},d.random=function(){return d.fromRatio({r:f(),g:f(),b:f()})},d.mix=function(e,t,r){r=0===r?0:r||50;var n=d(e).toRgb(),a=d(t).toRgb(),o=r/100;return d({r:(a.r-n.r)*o+n.r,g:(a.g-n.g)*o+n.g,b:(a.b-n.b)*o+n.b,a:(a.a-n.a)*o+n.a})},d.readability=function(e,t){var r=d(e),n=d(t);return(a.max(r.getLuminance(),n.getLuminance())+.05)/(a.min(r.getLuminance(),n.getLuminance())+.05)},d.isReadable=function(e,t,r){var n,a,o=d.readability(e,t);switch(a=!1,(n=function(e){var t,r;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==r&&"large"!==r&&(r="small");return{level:t,size:r}}(r)).level+n.size){case"AAsmall":case"AAAlarge":a=o>=4.5;break;case"AAlarge":a=o>=3;break;case"AAAsmall":a=o>=7}return a},d.mostReadable=function(e,t,r){var n,a,o,i,s=null,c=0;a=(r=r||{}).includeFallbackColors,o=r.level,i=r.size;for(var u=0;uc&&(c=n,s=d(t[u]));return d.isReadable(e,s,{level:o,size:i})||!a?s:(r.includeFallbackColors=!1,d.mostReadable(e,["#fff","#000"],r))};var A=d.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},E=d.hexNames=function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}(A);function B(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function N(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var r=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=u(t,l(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),a.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function L(e){return u(1,l(0,e))}function M(e){return parseInt(e,16)}function z(e){return 1==e.length?"0"+e:""+e}function D(e){return e<=1&&(e=100*e+"%"),e}function H(e){return a.round(255*parseFloat(e)).toString(16)}function I(e){return M(e)/255}var V,R,F,$=(R="[\\s|\\(]+("+(V="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",F="[\\s|\\(]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",{CSS_UNIT:new RegExp(V),rgb:new RegExp("rgb"+R),rgba:new RegExp("rgba"+F),hsl:new RegExp("hsl"+R),hsla:new RegExp("hsla"+F),hsv:new RegExp("hsv"+R),hsva:new RegExp("hsva"+F),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function q(e){return!!$.CSS_UNIT.exec(e)}e.exports?e.exports=d:void 0===(n=function(){return d}.call(t,r,t,e))||(e.exports=n)}(Math)},69:function(e,t){!function(){e.exports=this.wp.htmlEntities}()},7:function(e,t){!function(){e.exports=this.wp.primitives}()},8:function(e,t,r){"use strict";function n(){return(n=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r (GFM Style)",type:"boolean"},requireSpaceBeforeHeadingText:{defaultValue:!1,description:"Makes adding a space between `#` and the header text mandatory (GFM Style)",type:"boolean"},ghMentions:{defaultValue:!1,description:"Enables github @mentions",type:"boolean"},ghMentionsLink:{defaultValue:"https://github.com/{u}",description:"Changes the link generated by @mentions. Only applies if ghMentions option is enabled.",type:"string"},encodeEmails:{defaultValue:!0,description:"Encode e-mail addresses through the use of Character Entities, transforming ASCII e-mail addresses into its equivalent decimal entities",type:"boolean"},openLinksInNewWindow:{defaultValue:!1,description:"Open all links in new windows",type:"boolean"},backslashEscapesHTMLTags:{defaultValue:!1,description:"Support for HTML Tag escaping. ex:

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

    "),c+="

    ",a.push(c))}for(i=a.length,s=0;s]*>\s*]*>/.test(l)&&(f=!0)}a[s]=l}return e=(e=(e=a.join("\n")).replace(/^\n+/g,"")).replace(/\n+$/g,""),r.converter._dispatch("paragraphs.after",e,t,r)})),o.subParser("runExtension",(function(e,t,r,n){"use strict";if(e.filter)t=e.filter(t,n.converter,r);else if(e.regex){var a=e.regex;a instanceof RegExp||(a=new RegExp(a,"g")),t=t.replace(a,e.replace)}return t})),o.subParser("spanGamut",(function(e,t,r){"use strict";return e=r.converter._dispatch("spanGamut.before",e,t,r),e=o.subParser("codeSpans")(e,t,r),e=o.subParser("escapeSpecialCharsWithinTagAttributes")(e,t,r),e=o.subParser("encodeBackslashEscapes")(e,t,r),e=o.subParser("images")(e,t,r),e=o.subParser("anchors")(e,t,r),e=o.subParser("autoLinks")(e,t,r),e=o.subParser("simplifiedAutoLinks")(e,t,r),e=o.subParser("emoji")(e,t,r),e=o.subParser("underline")(e,t,r),e=o.subParser("italicsAndBold")(e,t,r),e=o.subParser("strikethrough")(e,t,r),e=o.subParser("ellipsis")(e,t,r),e=o.subParser("hashHTMLSpans")(e,t,r),e=o.subParser("encodeAmpsAndAngles")(e,t,r),t.simpleLineBreaks?/\n\n¨K/.test(e)||(e=e.replace(/\n+/g,"
    \n")):e=e.replace(/ +\n/g,"
    \n"),e=r.converter._dispatch("spanGamut.after",e,t,r)})),o.subParser("strikethrough",(function(e,t,r){"use strict";return t.strikethrough&&(e=(e=r.converter._dispatch("strikethrough.before",e,t,r)).replace(/(?:~){2}([\s\S]+?)(?:~){2}/g,(function(e,n){return function(e){return t.simplifiedAutoLink&&(e=o.subParser("simplifiedAutoLinks")(e,t,r)),""+e+""}(n)})),e=r.converter._dispatch("strikethrough.after",e,t,r)),e})),o.subParser("stripLinkDefinitions",(function(e,t,r){"use strict";var n=function(e,n,a,i,s,c,u){return n=n.toLowerCase(),a.match(/^data:.+?\/.+?;base64,/)?r.gUrls[n]=a.replace(/\s/g,""):r.gUrls[n]=o.subParser("encodeAmpsAndAngles")(a,t,r),c?c+u:(u&&(r.gTitles[n]=u.replace(/"|'/g,""")),t.parseImgDimensions&&i&&s&&(r.gDimensions[n]={width:i,height:s}),"")};return e=(e=(e=(e+="¨0").replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n\n|(?=¨0)|(?=\n\[))/gm,n)).replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*\s]+)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=¨0))/gm,n)).replace(/¨0/,"")})),o.subParser("tables",(function(e,t,r){"use strict";if(!t.tables)return e;function n(e,n){return""+o.subParser("spanGamut")(e,t,r)+"\n"}function a(e){var a,i=e.split("\n");for(a=0;a"+(c=o.subParser("spanGamut")(c,t,r))+"\n"));for(a=0;a\n\n\n",a=0;a\n";for(var o=0;o\n"}return r+="\n\n"}(h,g)}return e=(e=(e=(e=r.converter._dispatch("tables.before",e,t,r)).replace(/\\(\|)/g,o.helper.escapeCharactersCallback)).replace(/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,a)).replace(/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm,a),e=r.converter._dispatch("tables.after",e,t,r)})),o.subParser("underline",(function(e,t,r){"use strict";return t.underline?(e=r.converter._dispatch("underline.before",e,t,r),e=(e=t.literalMidWordUnderscores?(e=e.replace(/\b___(\S[\s\S]*?)___\b/g,(function(e,t){return""+t+""}))).replace(/\b__(\S[\s\S]*?)__\b/g,(function(e,t){return""+t+""})):(e=e.replace(/___(\S[\s\S]*?)___/g,(function(e,t){return/\S$/.test(t)?""+t+"":e}))).replace(/__(\S[\s\S]*?)__/g,(function(e,t){return/\S$/.test(t)?""+t+"":e}))).replace(/(_)/g,o.helper.escapeCharactersCallback),e=r.converter._dispatch("underline.after",e,t,r)):e})),o.subParser("unescapeSpecialChars",(function(e,t,r){"use strict";return e=(e=r.converter._dispatch("unescapeSpecialChars.before",e,t,r)).replace(/¨E(\d+)E/g,(function(e,t){var r=parseInt(t);return String.fromCharCode(r)})),e=r.converter._dispatch("unescapeSpecialChars.after",e,t,r)})),o.subParser("makeMarkdown.blockquote",(function(e,t){"use strict";var r="";if(e.hasChildNodes())for(var n=e.childNodes,a=n.length,i=0;i ")})),o.subParser("makeMarkdown.codeBlock",(function(e,t){"use strict";var r=e.getAttribute("language"),n=e.getAttribute("precodenum");return"```"+r+"\n"+t.preList[n]+"\n```"})),o.subParser("makeMarkdown.codeSpan",(function(e){"use strict";return"`"+e.innerHTML+"`"})),o.subParser("makeMarkdown.emphasis",(function(e,t){"use strict";var r="";if(e.hasChildNodes()){r+="*";for(var n=e.childNodes,a=n.length,i=0;i",e.hasAttribute("width")&&e.hasAttribute("height")&&(t+=" ="+e.getAttribute("width")+"x"+e.getAttribute("height")),e.hasAttribute("title")&&(t+=' "'+e.getAttribute("title")+'"'),t+=")"),t})),o.subParser("makeMarkdown.links",(function(e,t){"use strict";var r="";if(e.hasChildNodes()&&e.hasAttribute("href")){var n=e.childNodes,a=n.length;r="[";for(var i=0;i",e.hasAttribute("title")&&(r+=' "'+e.getAttribute("title")+'"'),r+=")"}return r})),o.subParser("makeMarkdown.list",(function(e,t,r){"use strict";var n="";if(!e.hasChildNodes())return"";for(var a=e.childNodes,i=a.length,s=e.getAttribute("start")||1,c=0;c"+t.preList[r]+""})),o.subParser("makeMarkdown.strikethrough",(function(e,t){"use strict";var r="";if(e.hasChildNodes()){r+="~~";for(var n=e.childNodes,a=n.length,i=0;itr>th"),c=e.querySelectorAll("tbody>tr");for(r=0;rh&&(h=b)}for(r=0;r/g,"\\$1>")).replace(/^#/gm,"\\#")).replace(/^(\s*)([-=]{3,})(\s*)$/,"$1\\$2$3")).replace(/^( {0,3}\d+)\./gm,"$1\\.")).replace(/^( {0,3})([+-])/gm,"$1\\$2")).replace(/]([\s]*)\(/g,"\\]$1\\(")).replace(/^ {0,3}\[([\S \t]*?)]:/gm,"\\[$1]:")}));void 0===(n=function(){"use strict";return o}.call(t,r,t,e))||(e.exports=n)}).call(this)},29:function(e,t){!function(){e.exports=this.wp.dom}()},30:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(27);function a(e,t){if(e){if("string"==typeof e)return Object(n.a)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Object(n.a)(e,t):void 0}}},33:function(e,t){!function(){e.exports=this.wp.hooks}()},36:function(e,t){!function(){e.exports=this.wp.deprecated}()},37:function(e,t,r){"use strict";function n(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}r.d(t,"a",(function(){return n}))},38:function(e,t,r){"use strict";function n(e){if(Array.isArray(e))return e}r.d(t,"a",(function(){return n}))},39:function(e,t,r){"use strict";function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}r.d(t,"a",(function(){return n}))},4:function(e,t){!function(){e.exports=this.wp.data}()},41:function(e,t){!function(){e.exports=this.wp.blob}()},42:function(e,t,r){"use strict";var n,a;function o(e){return[e]}function i(){var e={clear:function(){e.head=null}};return e}function s(e,t,r){var n;if(e.length!==t.length)return!1;for(n=r;n0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0;switch(r.type){case"REMOVE_BLOCK_TYPES":return-1!==r.names.indexOf(t)?null:t;case e:return r.name||null}return t}}var h=p("SET_DEFAULT_BLOCK_NAME"),b=p("SET_FREEFORM_FALLBACK_BLOCK_NAME"),g=p("SET_UNREGISTERED_FALLBACK_BLOCK_NAME"),m=p("SET_GROUPING_BLOCK_NAME");var _=Object(o.combineReducers)({blockTypes:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_BLOCK_TYPES":return f(f({},e),Object(c.keyBy)(Object(c.map)(t.blockTypes,(function(e){return Object(c.omit)(e,"styles ")})),"name"));case"REMOVE_BLOCK_TYPES":return Object(c.omit)(e,t.names)}return e},blockStyles:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_BLOCK_TYPES":return f(f({},e),Object(c.mapValues)(Object(c.keyBy)(t.blockTypes,"name"),(function(t){return Object(c.uniqBy)([].concat(Object(i.a)(Object(c.get)(t,["styles"],[])),Object(i.a)(Object(c.get)(e,[t.name],[]))),(function(e){return e.name}))})));case"ADD_BLOCK_STYLES":return f(f({},e),{},Object(s.a)({},t.blockName,Object(c.uniqBy)([].concat(Object(i.a)(Object(c.get)(e,[t.blockName],[])),Object(i.a)(t.styles)),(function(e){return e.name}))));case"REMOVE_BLOCK_STYLES":return f(f({},e),{},Object(s.a)({},t.blockName,Object(c.filter)(Object(c.get)(e,[t.blockName],[]),(function(e){return-1===t.styleNames.indexOf(e.name)}))))}return e},blockVariations:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_BLOCK_TYPES":return f(f({},e),Object(c.mapValues)(Object(c.keyBy)(t.blockTypes,"name"),(function(t){return Object(c.uniqBy)([].concat(Object(i.a)(Object(c.get)(t,["variations"],[])),Object(i.a)(Object(c.get)(e,[t.name],[]))),(function(e){return e.name}))})));case"ADD_BLOCK_VARIATIONS":return f(f({},e),{},Object(s.a)({},t.blockName,Object(c.uniqBy)([].concat(Object(i.a)(Object(c.get)(e,[t.blockName],[])),Object(i.a)(t.variations)),(function(e){return e.name}))));case"REMOVE_BLOCK_VARIATIONS":return f(f({},e),{},Object(s.a)({},t.blockName,Object(c.filter)(Object(c.get)(e,[t.blockName],[]),(function(e){return-1===t.variationNames.indexOf(e.name)}))))}return e},defaultBlockName:h,freeformFallbackBlockName:b,unregisteredFallbackBlockName:g,groupingBlockName:m,categories:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_CATEGORIES":return t.categories||[];case"UPDATE_CATEGORY":if(!t.category||Object(c.isEmpty)(t.category))return e;var r=Object(c.find)(e,["slug",t.slug]);if(r)return Object(c.map)(e,(function(e){return e.slug===t.slug?f(f({},e),t.category):e}))}return e},collections:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_BLOCK_COLLECTION":return f(f({},e),{},Object(s.a)({},t.namespace,{title:t.title,icon:t.icon}));case"REMOVE_BLOCK_COLLECTION":return Object(c.omit)(e,t.namespace)}return e}}),v=r(42);function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function y(e){for(var t=1;t0},I=function(e,t){return Object(c.some)(L(e,t),(function(t){return z(e,t,"inserter",!0)}))};function V(e){return{type:"ADD_BLOCK_TYPES",blockTypes:Object(c.castArray)(e)}}function R(e){return{type:"REMOVE_BLOCK_TYPES",names:Object(c.castArray)(e)}}function F(e,t){return{type:"ADD_BLOCK_STYLES",styles:Object(c.castArray)(t),blockName:e}}function $(e,t){return{type:"REMOVE_BLOCK_STYLES",styleNames:Object(c.castArray)(t),blockName:e}}function q(e,t){return{type:"ADD_BLOCK_VARIATIONS",variations:Object(c.castArray)(t),blockName:e}}function U(e,t){return{type:"REMOVE_BLOCK_VARIATIONS",variationNames:Object(c.castArray)(t),blockName:e}}function G(e){return{type:"SET_DEFAULT_BLOCK_NAME",name:e}}function K(e){return{type:"SET_FREEFORM_FALLBACK_BLOCK_NAME",name:e}}function W(e){return{type:"SET_UNREGISTERED_FALLBACK_BLOCK_NAME",name:e}}function Y(e){return{type:"SET_GROUPING_BLOCK_NAME",name:e}}function Z(e){return{type:"SET_CATEGORIES",categories:e}}function Q(e,t){return{type:"UPDATE_CATEGORY",slug:e,category:t}}function X(e,t,r){return{type:"ADD_BLOCK_COLLECTION",namespace:e,title:t,icon:r}}function J(e){return{type:"REMOVE_BLOCK_COLLECTION",namespace:e}}Object(o.registerStore)("core/blocks",{reducer:_,selectors:n,actions:a});var ee=r(12),te="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),re=new Uint8Array(16);function ne(){if(!te)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return te(re)}for(var ae=[],oe=0;oe<256;++oe)ae[oe]=(oe+256).toString(16).substr(1);var ie=function(e,t){var r=t||0,n=ae;return[n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]]].join("")};var se=function(e,t,r){var n=t&&r||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||ne)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var o=0;o<16;++o)t[n+o]=a[o];return t||ie(a)},ce=r(33),ue=r(208),le=r(66),fe=r.n(le),de=r(0),pe=r(29);function he(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function be(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:"visual",n=e.__experimentalLabel,a=e.title,o=n&&n(t,{context:r});return o?Object(pe.__unstableStripHTML)(o):a}function ke(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"vertical",a=e.title,o=ye(e,t,"accessibility"),i=void 0!==r,s=o&&o!==a;return i&&"vertical"===n?s?Object(u.sprintf)(Object(u.__)("%1$s Block. Row %2$d. %3$s"),a,r,o):Object(u.sprintf)(Object(u.__)("%1$s Block. Row %2$d"),a,r):i&&"horizontal"===n?s?Object(u.sprintf)(Object(u.__)("%1$s Block. Column %2$d. %3$s"),a,r,o):Object(u.sprintf)(Object(u.__)("%1$s Block. Column %2$d"),a,r):s?Object(u.sprintf)(Object(u.__)("%1$s Block. %2$s"),a,o):Object(u.sprintf)(Object(u.__)("%s Block"),a)}var Oe=["attributes","supports","save","migrate","isEligible","apiVersion"],je={"--wp--style--color--link":["color","link"],background:["color","gradient"],backgroundColor:["color","background"],color:["color","text"],fontSize:["typography","fontSize"],lineHeight:["typography","lineHeight"],paddingBottom:["spacing","padding","bottom"],paddingLeft:["spacing","padding","left"],paddingRight:["spacing","padding","right"],paddingTop:["spacing","padding","top"]};function Ce(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Te(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=Re(e);if(void 0===n)throw new Error("Block type '".concat(e,"' is not registered."));var a=Object(c.reduce)(n.attributes,(function(e,r,n){var a=t[n];return void 0!==a?e[n]=a:r.hasOwnProperty("default")&&(e[n]=r.default),-1!==["node","children"].indexOf(r.source)&&("string"==typeof e[n]?e[n]=[e[n]]:Array.isArray(e[n])||(e[n]=[])),e}),{}),o=se();return{clientId:o,name:e,isValid:!0,attributes:a,innerBlocks:r}}function nt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map((function(e){var t=Array.isArray(e)?e:[e.name,e.attributes,e.innerBlocks],r=Object(ee.a)(t,3),n=r[0],a=r[1],o=r[2];return rt(n,a,nt(void 0===o?[]:o))}))}function at(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=se();return tt(tt({},e),{},{clientId:n,attributes:tt(tt({},e.attributes),t),innerBlocks:r||e.innerBlocks.map((function(e){return at(e)}))})}var ot=function(e,t,r){if(Object(c.isEmpty)(r))return!1;var n=r.length>1,a=Object(c.first)(r).name;if(!(it(e)||!n||e.isMultiBlock))return!1;if(!it(e)&&!Object(c.every)(r,{name:a}))return!1;if(!("block"===e.type))return!1;var o=Object(c.first)(r);if(!("from"!==t||-1!==e.blocks.indexOf(o.name)||it(e)))return!1;if(!n&&st(o.name)&&st(e.blockName))return!1;if(Object(c.isFunction)(e.isMatch)){var i=e.isMultiBlock?r.map((function(e){return e.attributes})):o.attributes;if(!e.isMatch(i))return!1}return!0},it=function(e){return e&&"block"===e.type&&Array.isArray(e.blocks)&&e.blocks.includes("*")},st=function(e){return e===Me()};function ct(e){if(Object(c.isEmpty)(e))return[];var t=function(e){if(Object(c.isEmpty)(e))return[];var t=Fe();return Object(c.filter)(t,(function(t){return!!ut(lt("from",t.name),(function(t){return ot(t,"from",e)}))}))}(e),r=function(e){if(Object(c.isEmpty)(e))return[];var t=lt("to",Re(Object(c.first)(e).name).name),r=Object(c.filter)(t,(function(t){return t&&ot(t,"to",e)}));return Object(c.flatMap)(r,(function(e){return e.blocks})).map((function(e){return Re(e)}))}(e);return Object(c.uniq)([].concat(Object(i.a)(t),Object(i.a)(r)))}function ut(e,t){for(var r=Object(ce.createHooks)(),n=function(n){var a=e[n];t(a)&&r.addFilter("transform","transform/"+n.toString(),(function(e){return e||a}),a.priority)},a=0;a1,o=n[0],i=o.name,s=lt("from",t),u=ut(lt("to",i),(function(e){return"block"===e.type&&(it(e)||-1!==e.blocks.indexOf(t))&&(!a||e.isMultiBlock)}))||ut(s,(function(e){return"block"===e.type&&(it(e)||-1!==e.blocks.indexOf(i))&&(!a||e.isMultiBlock)}));if(!u)return null;if(r=u.isMultiBlock?Object(c.has)(u,"__experimentalConvert")?u.__experimentalConvert(n):u.transform(n.map((function(e){return e.attributes})),n.map((function(e){return e.innerBlocks}))):Object(c.has)(u,"__experimentalConvert")?u.__experimentalConvert(o):u.transform(o.attributes,o.innerBlocks),!Object(c.isObjectLike)(r))return null;if((r=Object(c.castArray)(r)).some((function(e){return!Re(e.name)})))return null;var l=Object(c.findIndex)(r,(function(e){return e.name===t}));return l<0?null:r.map((function(t,r){var n=tt(tt({},t),{},{clientId:r===l?o.clientId:t.clientId});return Object(ce.applyFilters)("blocks.switchToBlockType.transformedBlock",n,e)}))}var dt=function e(t,r){return rt(t,r.attributes,Object(c.map)(r.innerBlocks,(function(t){return e(t.name,t)})))};function pt(e,t){for(var r,n=t.split(".");r=n.shift();){if(!(r in e))return;e=e[r]}return e}var ht,bt=function(){return ht||(ht=document.implementation.createHTMLDocument("")),ht};function gt(e,t){if(t){if("string"==typeof e){var r=bt();r.body.innerHTML=e,e=r.body}if("function"==typeof t)return t(e);if(Object===t.constructor)return Object.keys(t).reduce((function(r,n){return r[n]=gt(e,t[n]),r}),{})}}function mt(e,t){return 1===arguments.length&&(t=e,e=void 0),function(r){var n=r;if(e&&(n=r.querySelector(e)),n)return pt(n,t)}}var _t=r(105),vt=r(283),wt=r(149),yt=r(21),kt=r(22),Ot=/^#[xX]([A-Fa-f0-9]+)$/,jt=/^#([0-9]+)$/,Ct=/^([A-Za-z0-9]+)$/,Tt=(function(){function e(e){this.named=e}e.prototype.parse=function(e){if(e){var t=e.match(Ot);return t?String.fromCharCode(parseInt(t[1],16)):(t=e.match(jt))?String.fromCharCode(parseInt(t[1],10)):(t=e.match(Ct))?this.named[t[1]]:void 0}}}(),/[\t\n\f ]/),xt=/[A-Za-z]/,Pt=/\r\n?/g;function St(e){return Tt.test(e)}function At(e){return xt.test(e)}var Et=function(){function e(e,t,r){void 0===r&&(r="precompile"),this.delegate=e,this.entityParser=t,this.mode=r,this.state="beforeData",this.line=-1,this.column=-1,this.input="",this.index=-1,this.tagNameBuffer="",this.states={beforeData:function(){var e=this.peek();if("<"!==e||this.isIgnoredEndTag()){if("precompile"===this.mode&&"\n"===e){var t=this.tagNameBuffer.toLowerCase();"pre"!==t&&"textarea"!==t||this.consume()}this.transitionTo("data"),this.delegate.beginData()}else this.transitionTo("tagOpen"),this.markTagStart(),this.consume()},data:function(){var e=this.peek(),t=this.tagNameBuffer;"<"!==e||this.isIgnoredEndTag()?"&"===e&&"script"!==t&&"style"!==t?(this.consume(),this.delegate.appendToData(this.consumeCharRef()||"&")):(this.consume(),this.delegate.appendToData(e)):(this.delegate.finishData(),this.transitionTo("tagOpen"),this.markTagStart(),this.consume())},tagOpen:function(){var e=this.consume();"!"===e?this.transitionTo("markupDeclarationOpen"):"/"===e?this.transitionTo("endTagOpen"):("@"===e||":"===e||At(e))&&(this.transitionTo("tagName"),this.tagNameBuffer="",this.delegate.beginStartTag(),this.appendToTagName(e))},markupDeclarationOpen:function(){"-"===this.consume()&&"-"===this.peek()&&(this.consume(),this.transitionTo("commentStart"),this.delegate.beginComment())},commentStart:function(){var e=this.consume();"-"===e?this.transitionTo("commentStartDash"):">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData(e),this.transitionTo("comment"))},commentStartDash:function(){var e=this.consume();"-"===e?this.transitionTo("commentEnd"):">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("-"),this.transitionTo("comment"))},comment:function(){var e=this.consume();"-"===e?this.transitionTo("commentEndDash"):this.delegate.appendToCommentData(e)},commentEndDash:function(){var e=this.consume();"-"===e?this.transitionTo("commentEnd"):(this.delegate.appendToCommentData("-"+e),this.transitionTo("comment"))},commentEnd:function(){var e=this.consume();">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("--"+e),this.transitionTo("comment"))},tagName:function(){var e=this.consume();St(e)?this.transitionTo("beforeAttributeName"):"/"===e?this.transitionTo("selfClosingStartTag"):">"===e?(this.delegate.finishTag(),this.transitionTo("beforeData")):this.appendToTagName(e)},endTagName:function(){var e=this.consume();St(e)?(this.transitionTo("beforeAttributeName"),this.tagNameBuffer=""):"/"===e?(this.transitionTo("selfClosingStartTag"),this.tagNameBuffer=""):">"===e?(this.delegate.finishTag(),this.transitionTo("beforeData"),this.tagNameBuffer=""):this.appendToTagName(e)},beforeAttributeName:function(){var e=this.peek();St(e)?this.consume():"/"===e?(this.transitionTo("selfClosingStartTag"),this.consume()):">"===e?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):"="===e?(this.delegate.reportSyntaxError("attribute name cannot start with equals sign"),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(e)):(this.transitionTo("attributeName"),this.delegate.beginAttribute())},attributeName:function(){var e=this.peek();St(e)?(this.transitionTo("afterAttributeName"),this.consume()):"/"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"="===e?(this.transitionTo("beforeAttributeValue"),this.consume()):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):'"'===e||"'"===e||"<"===e?(this.delegate.reportSyntaxError(e+" is not a valid character within attribute names"),this.consume(),this.delegate.appendToAttributeName(e)):(this.consume(),this.delegate.appendToAttributeName(e))},afterAttributeName:function(){var e=this.peek();St(e)?this.consume():"/"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"="===e?(this.consume(),this.transitionTo("beforeAttributeValue")):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(e))},beforeAttributeValue:function(){var e=this.peek();St(e)?this.consume():'"'===e?(this.transitionTo("attributeValueDoubleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):"'"===e?(this.transitionTo("attributeValueSingleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.transitionTo("attributeValueUnquoted"),this.delegate.beginAttributeValue(!1),this.consume(),this.delegate.appendToAttributeValue(e))},attributeValueDoubleQuoted:function(){var e=this.consume();'"'===e?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):"&"===e?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(e)},attributeValueSingleQuoted:function(){var e=this.consume();"'"===e?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):"&"===e?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(e)},attributeValueUnquoted:function(){var e=this.peek();St(e)?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("beforeAttributeName")):"/"===e?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"&"===e?(this.consume(),this.delegate.appendToAttributeValue(this.consumeCharRef()||"&")):">"===e?(this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.consume(),this.delegate.appendToAttributeValue(e))},afterAttributeValueQuoted:function(){var e=this.peek();St(e)?(this.consume(),this.transitionTo("beforeAttributeName")):"/"===e?(this.consume(),this.transitionTo("selfClosingStartTag")):">"===e?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},selfClosingStartTag:function(){">"===this.peek()?(this.consume(),this.delegate.markTagAsSelfClosing(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},endTagOpen:function(){var e=this.consume();("@"===e||":"===e||At(e))&&(this.transitionTo("endTagName"),this.tagNameBuffer="",this.delegate.beginEndTag(),this.appendToTagName(e))}},this.reset()}return e.prototype.reset=function(){this.transitionTo("beforeData"),this.input="",this.tagNameBuffer="",this.index=0,this.line=1,this.column=0,this.delegate.reset()},e.prototype.transitionTo=function(e){this.state=e},e.prototype.tokenize=function(e){this.reset(),this.tokenizePart(e),this.tokenizeEOF()},e.prototype.tokenizePart=function(e){for(this.input+=function(e){return e.replace(Pt,"\n")}(e);this.index"!==this.input.substring(this.index,this.index+8)||"style"===e&&""!==this.input.substring(this.index,this.index+8)||"script"===e&&"<\/script>"!==this.input.substring(this.index,this.index+9)},e}(),Bt=function(){function e(e,t){void 0===t&&(t={}),this.options=t,this.token=null,this.startLine=1,this.startColumn=0,this.tokens=[],this.tokenizer=new Et(this,e,t.mode),this._currentAttribute=void 0}return e.prototype.tokenize=function(e){return this.tokens=[],this.tokenizer.tokenize(e),this.tokens},e.prototype.tokenizePart=function(e){return this.tokens=[],this.tokenizer.tokenizePart(e),this.tokens},e.prototype.tokenizeEOF=function(){return this.tokens=[],this.tokenizer.tokenizeEOF(),this.tokens[0]},e.prototype.reset=function(){this.token=null,this.startLine=1,this.startColumn=0},e.prototype.current=function(){var e=this.token;if(null===e)throw new Error("token was unexpectedly null");if(0===arguments.length)return e;for(var t=0;t1?r-1:0),a=1;a0&&void 0!==arguments[0]?arguments[0]:{},t=Yt.blockType,r=Yt.attributes;return Object(ce.applyFilters)("blocks.getSaveContent.extraProps",Gt({},e),t,r)}function Qt(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=we(e),a=n.save;if(a.prototype instanceof de.Component){var o=new a({attributes:t});a=o.render.bind(o)}Yt.blockType=n,Yt.attributes=t;var i=a({attributes:t,innerBlocks:r});if(Object(c.isObject)(i)&&Object(ce.hasFilter)("blocks.getSaveContent.extraProps")&&!n.apiVersion){var s=Object(ce.applyFilters)("blocks.getSaveContent.extraProps",Gt({},i.props),n,t);Dt()(s,i.props)||(i=Object(de.cloneElement)(i,s))}return i=Object(ce.applyFilters)("blocks.getSaveElement",i,n,t),Object(de.createElement)(qt,{innerBlocks:r},i)}function Xt(e,t,r){var n=we(e);return Object(de.renderToString)(Qt(n,t,r))}function Jt(e,t){return Object(c.reduce)(e.attributes,(function(e,r,n){var a=t[n];return void 0===a||void 0!==r.source||"default"in r&&r.default===a||(e[n]=a),e}),{})}function er(e){var t=e.originalContent;if(e.isValid||e.innerBlocks.length)try{t=Xt(e.name,e.attributes,e.innerBlocks)}catch(e){}return t}function tr(e,t,r){var n=Object(c.isEmpty)(t)?"":function(e){return JSON.stringify(e).replace(/--/g,"\\u002d\\u002d").replace(//g,"\\u003e").replace(/&/g,"\\u0026").replace(/\\"/g,"\\u0022")}(t)+" ",a=Object(c.startsWith)(e,"core/")?e.slice(5):e;return r?"\x3c!-- wp:".concat(a," ").concat(n,"--\x3e\n")+r+"\n\x3c!-- /wp:".concat(a," --\x3e"):"\x3c!-- wp:".concat(a," ").concat(n,"/--\x3e")}function rr(e,t){return Object(c.castArray)(e).map((function(e){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.isInnerBlocks,n=void 0!==r&&r,a=e.name,o=er(e);if(a===De()||!n&&a===Le())return o;var i=Re(a),s=Jt(i,e.attributes);return tr(a,s,o)}(e,t)})).join("\n\n")}function nr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var ar=/[\t\n\r\v\f ]+/g,or=/^[\t\n\r\v\f ]*$/,ir=/^url\s*\(['"\s]*(.*?)['"\s]*\)$/,sr=["allowfullscreen","allowpaymentrequest","allowusermedia","async","autofocus","autoplay","checked","controls","default","defer","disabled","download","formnovalidate","hidden","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","typemustmatch"],cr=[].concat(sr,["autocapitalize","autocomplete","charset","contenteditable","crossorigin","decoding","dir","draggable","enctype","formenctype","formmethod","http-equiv","inputmode","kind","method","preload","scope","shape","spellcheck","translate","type","wrap"]),ur=[c.identity,function(e){return hr(e).join(" ")}],lr=/^[\da-z]+$/i,fr=/^#\d+$/,dr=/^#x[\da-f]+$/i;var pr=function(){function e(){Object(yt.a)(this,e)}return Object(kt.a)(e,[{key:"parse",value:function(e){if(t=e,lr.test(t)||fr.test(t)||dr.test(t))return Object(Nt.decodeEntities)("&"+e+";");var t}}]),e}();function hr(e){return e.trim().split(ar)}function br(e){return e.attributes.filter((function(e){var t=Object(ee.a)(e,2),r=t[0];return t[1]||0===r.indexOf("data-")||Object(c.includes)(cr,r)}))}function gr(e,t){for(var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Lt(),n=e.chars,a=t.chars,o=0;o2&&void 0!==arguments[2]?arguments[2]:Lt();if(e.length!==t.length)return r.warning("Expected attributes %o, instead saw %o.",t,e),!1;for(var n={},a=0;a2&&void 0!==arguments[2]?arguments[2]:Lt();return e.tagName!==t.tagName&&e.tagName.toLowerCase()!==t.tagName.toLowerCase()?(r.warning("Expected tag name `%s`, instead saw `%s`.",t.tagName,e.tagName),!1):wr.apply(void 0,Object(i.a)([e,t].map(br)).concat([r]))},Chars:gr,Comment:gr};function kr(e){for(var t;t=e.shift();){if("Chars"!==t.type)return t;if(!or.test(t.chars))return t}}function Or(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Lt();try{return new Bt(new pr).tokenize(e)}catch(r){t.warning("Malformed HTML detected: %s",e)}return null}function jr(e,t){return!!e.selfClosing&&!(!t||t.tagName!==e.tagName||"EndTag"!==t.type)}function Cr(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Lt();if(e===t)return!0;var n,a,o=[e,t].map((function(e){return Or(e,r)})),i=Object(ee.a)(o,2),s=i[0],c=i[1];if(!s||!c)return!1;for(;n=kr(s);){if(!(a=kr(c)))return r.warning("Expected end of content, instead saw %o.",n),!1;if(n.type!==a.type)return r.warning("Expected token of type `%s` (%o), instead saw `%s` (%o).",a.type,a,n.type,n),!1;var u=yr[n.type];if(u&&!u(n,a,r))return!1;jr(n,c[0])?kr(c):jr(a,s[0])&&kr(s)}return!(a=kr(c))||(r.warning("Expected %o, instead saw end of content.",a),!1)}function Tr(e,t,r){var n,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Mt(),o=we(e);try{n=Xt(o,t)}catch(e){return a.error("Block validation failed because an error occurred while generating block content:\n\n%s",e.toString()),{isValid:!1,validationIssues:a.getItems()}}var i=Cr(r,n,a);return i||a.error("Block validation failed for `%s` (%o).\n\nContent generated by `save` function:\n\n%s\n\nContent retrieved from post body:\n\n%s",o.name,o,n,r),{isValid:i,validationIssues:a.getItems()}}function xr(e,t,r){return Tr(e,t,r,Lt()).isValid}function Pr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Sr(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{},n=we(e),a=Object(c.mapValues)(n.attributes,(function(e,n){return $r(n,e,t,r)}));return Object(ce.applyFilters)("blocks.getBlockAttributes",a,n,t,r)}function Ur(e,t){var r=Ir({},t);if("core/cover-image"===e&&(e="core/cover"),"core/text"!==e&&"core/cover-text"!==e||(e="core/paragraph"),e&&0===e.indexOf("core/social-link-")&&(r.service=e.substring(17),e="core/social-link"),e&&0===e.indexOf("core-embed/")){var n=e.substring(11),a={speaker:"speaker-deck",polldaddy:"crowdsignal"};r.providerNameSlug=n in a?a[n]:n,["amazon-kindle","wordpress"].includes(n)||(r.responsive=!0),e="core/embed"}return{name:e,attributes:r}}function Gr(e){var t=e.blockName,r=e.attrs,n=e.innerBlocks,a=void 0===n?[]:n,o=e.innerHTML,s=e.innerContent,u=Le(),l=De()||u;r=r||{},o=o.trim();var f=t||u,d=Ur(f,r);f=d.name,r=d.attributes,f===u&&(o=Object(_t.autop)(o).trim());var p=Re(f);if(!p){var h={attrs:r,blockName:t,innerBlocks:a,innerContent:s},b=Kr(h,{isCommentDelimited:!1}),g=Kr(h,{isCommentDelimited:!0});f&&(o=g),r={originalName:t,originalContent:g,originalUndelimitedContent:b},p=Re(f=l)}a=(a=a.map(Gr)).filter((function(e){return e}));var m=f===u||f===l;if(p&&(o||!m)){var _=rt(f,qr(p,o,r),a);if(!m){var v=Tr(p,_.attributes,o),w=v.isValid,y=v.validationIssues;_.isValid=w,_.validationIssues=y}return _.originalContent=_.originalContent||o,(_=function(e,t){var r=Re(e.name),n=r.deprecated;if(!n||!n.length)return e;for(var a=e,o=a.originalContent,s=a.innerBlocks,u=0;u0&&(_.isValid?console.info("Block successfully updated for `%s` (%o).\n\nNew content generated by `save` function:\n\n%s\n\nContent retrieved from post body:\n\n%s",p.name,p,Xt(p,_.attributes),_.originalContent):_.validationIssues.forEach((function(e){var t=e.log,r=e.args;return t.apply(void 0,Object(i.a)(r))}))),_}}function Kr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.isCommentDelimited,n=void 0===r||r,a=e.blockName,o=e.attrs,i=void 0===o?{}:o,s=e.innerBlocks,c=void 0===s?[]:s,u=e.innerContent,l=void 0===u?[]:u,f=0,d=l.map((function(e){return null!==e?e:Kr(c[f++],t)})).join("\n").replace(/\n+/g,"\n").trim();return n?tr(a,i,d):d}var Wr,Yr=(Wr=vt.parse,function(e){return Wr(e).reduce((function(e,t){var r=Gr(t);return r&&e.push(r),e}),[])}),Zr=Yr;function Qr(e){var t=document.implementation.createHTMLDocument(""),r=document.implementation.createHTMLDocument(""),n=t.body,a=r.body;for(n.innerHTML=e;n.firstChild;){var o=n.firstChild;o.nodeType===o.TEXT_NODE?o.nodeValue.trim()?(a.lastChild&&"P"===a.lastChild.nodeName||a.appendChild(r.createElement("P")),a.lastChild.appendChild(o)):n.removeChild(o):o.nodeType===o.ELEMENT_NODE?"BR"===o.nodeName?(o.nextSibling&&"BR"===o.nextSibling.nodeName&&(a.appendChild(r.createElement("P")),n.removeChild(o.nextSibling)),a.lastChild&&"P"===a.lastChild.nodeName&&a.lastChild.hasChildNodes()?a.lastChild.appendChild(o):n.removeChild(o)):"P"===o.nodeName?Object(pe.isEmpty)(o)?n.removeChild(o):a.appendChild(o):Object(pe.isPhrasingContent)(o)?(a.lastChild&&"P"===a.lastChild.nodeName||a.appendChild(r.createElement("P")),a.lastChild.appendChild(o)):a.appendChild(o):n.removeChild(o)}return a.innerHTML}function Xr(e,t){if(e.nodeType===e.COMMENT_NODE)if("nextpage"!==e.nodeValue){if(0===e.nodeValue.indexOf("more")){for(var r=e.nodeValue.slice(4).trim(),n=e,a=!1;n=n.nextSibling;)if(n.nodeType===n.COMMENT_NODE&&"noteaser"===n.nodeValue){a=!0,Object(pe.remove)(n);break}Object(pe.replace)(e,function(e,t,r){var n=r.createElement("wp-block");n.dataset.block="core/more",e&&(n.dataset.customText=e);t&&(n.dataset.noTeaser="");return n}(r,a,t))}}else Object(pe.replace)(e,function(e){var t=e.createElement("wp-block");return t.dataset.block="core/nextpage",t}(t))}function Jr(e){e.nodeType===e.COMMENT_NODE&&Object(pe.remove)(e)}function en(e,t){return e.every((function(e){return function(e,t){if(Object(pe.isTextContent)(e))return!0;if(!t)return!1;var r=e.nodeName.toLowerCase();return[["ul","li","ol"],["h1","h2","h3","h4","h5","h6"]].some((function(e){return 0===Object(c.difference)([r,t],e).length}))}(e,t)&&en(Array.from(e.children),t)}))}function tn(e){return"BR"===e.nodeName&&e.previousSibling&&"BR"===e.previousSibling.nodeName}function rn(e,t){if("SPAN"===e.nodeName&&e.style){var r=e.style,n=r.fontWeight,a=r.fontStyle,o=r.textDecorationLine,i=r.textDecoration,s=r.verticalAlign;"bold"!==n&&"700"!==n||Object(pe.wrap)(t.createElement("strong"),e),"italic"===a&&Object(pe.wrap)(t.createElement("em"),e),("line-through"===o||Object(c.includes)(i,"line-through"))&&Object(pe.wrap)(t.createElement("s"),e),"super"===s?Object(pe.wrap)(t.createElement("sup"),e):"sub"===s&&Object(pe.wrap)(t.createElement("sub"),e)}else"B"===e.nodeName?e=Object(pe.replaceTag)(e,"strong"):"I"===e.nodeName?e=Object(pe.replaceTag)(e,"em"):"A"===e.nodeName&&(e.target&&"_blank"===e.target.toLowerCase()?e.rel="noreferrer noopener":(e.removeAttribute("target"),e.removeAttribute("rel")))}function nn(e){"SCRIPT"!==e.nodeName&&"NOSCRIPT"!==e.nodeName&&"TEMPLATE"!==e.nodeName&&"STYLE"!==e.nodeName||e.parentNode.removeChild(e)}var an=window.parseInt;function on(e){return"OL"===e.nodeName||"UL"===e.nodeName}function sn(e,t){if("P"===e.nodeName){var r=e.getAttribute("style");if(r&&-1!==r.indexOf("mso-list")){var n=/mso-list\s*:[^;]+level([0-9]+)/i.exec(r);if(n){var a=an(n[1],10)-1||0,o=e.previousElementSibling;if(!o||!on(o)){var i=e.textContent.trim().slice(0,1),s=/[1iIaA]/.test(i),c=t.createElement(s?"ol":"ul");s&&c.setAttribute("type",i),e.parentNode.insertBefore(c,e)}var u=e.previousElementSibling,l=u.nodeName,f=t.createElement("li"),d=u;for(e.removeChild(e.firstElementChild);e.firstChild;)f.appendChild(e.firstChild);for(;a--;)on(d=d.lastElementChild||d)&&(d=d.lastElementChild||d);on(d)||(d=d.appendChild(t.createElement(l))),d.appendChild(f),e.parentNode.removeChild(e)}}}}function cn(e){return"OL"===e.nodeName||"UL"===e.nodeName}function un(e){if(cn(e)){var t=e,r=e.previousElementSibling;if(r&&r.nodeName===e.nodeName&&1===t.children.length){for(;t.firstChild;)r.appendChild(t.firstChild);t.parentNode.removeChild(t)}var n,a=e.parentNode;if(a&&"LI"===a.nodeName&&1===a.children.length&&!/\S/.test((n=a,Array.from(n.childNodes).map((function(e){var t=e.nodeValue;return void 0===t?"":t})).join("")))){var o=a,i=o.previousElementSibling,s=o.parentNode;i?(i.appendChild(t),s.removeChild(o)):(s.parentNode.insertBefore(t,s),s.parentNode.removeChild(s))}if(a&&cn(a)){var c=e.previousElementSibling;c?c.appendChild(e):Object(pe.unwrap)(e)}}}var ln=r(41),fn=window,dn=fn.atob,pn=fn.File;function hn(e){if("IMG"===e.nodeName){if(0===e.src.indexOf("file:")&&(e.src=""),0===e.src.indexOf("data:")){var t,r=e.src.split(","),n=Object(ee.a)(r,2),a=n[0],o=n[1],i=a.slice(5).split(";"),s=Object(ee.a)(i,1)[0];if(!o||!s)return void(e.src="");try{t=dn(o)}catch(t){return void(e.src="")}for(var c=new Uint8Array(t.length),u=0;u1&&void 0!==arguments[1]?arguments[1]:e,r=e.ownerDocument.createElement("figure");t.parentNode.insertBefore(r,t),r.appendChild(e)}function mn(e,t,r){if(function(e,t){var r=e.nodeName.toLowerCase();return"figcaption"!==r&&!Object(pe.isTextContent)(e)&&Object(c.has)(t,["figure","children",r])}(e,r)){var n=e,a=e.parentNode;(function(e,t){var r=e.nodeName.toLowerCase();return Object(c.has)(t,["figure","children","a","children",r])})(e,r)&&"A"===a.nodeName&&1===a.childNodes.length&&(n=e.parentNode);var o=n.closest("p,div");o?e.classList?(e.classList.contains("alignright")||e.classList.contains("alignleft")||e.classList.contains("aligncenter")||!o.textContent.trim())&&gn(n,o):gn(n,o):"BODY"===n.parentNode.nodeName&&gn(n)}}var _n=r(130);function vn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function wn(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=lt("from"),o=ut(a,(function(e){return-1===n.indexOf(e.blockName)&&"shortcode"===e.type&&Object(c.some)(Object(c.castArray)(e.tag),(function(e){return Object(_n.regexp)(e).test(t)}))}));if(!o)return[t];var s,u=Object(c.castArray)(o.tag),l=Object(c.find)(u,(function(e){return Object(_n.regexp)(e).test(t)})),f=r;if(s=Object(_n.next)(l,t,r)){r=s.index+s.content.length;var d=t.substr(0,s.index),p=t.substr(r);if(!(Object(c.includes)(s.shortcode.content||"","<")||/(\n|

    )\s*$/.test(d)&&/^\s*(\n|<\/p>)/.test(p)))return e(t,r);if(o.isMatch&&!o.isMatch(s.shortcode.attrs))return e(t,f,[].concat(Object(i.a)(n),[o.blockName]));var h=Object(c.mapValues)(Object(c.pickBy)(o.attributes,(function(e){return e.shortcode})),(function(e){return e.shortcode(s.shortcode.attrs,s)})),b=rt(o.blockName,qr(wn(wn({},Re(o.blockName)),{},{attributes:o.attributes}),s.shortcode.content,h));return[].concat(Object(i.a)(e(d)),[b],Object(i.a)(e(p)))}return[t]},kn=r(284),On=new(r.n(kn).a.Converter)({noHeaderId:!0,tables:!0,literalMidWordUnderscores:!0,omitExtraWLInCodeBlocks:!0,simpleLineBreaks:!0,strikethrough:!0});function jn(e){if("IFRAME"===e.nodeName){var t=e.ownerDocument.createTextNode(e.src);e.parentNode.replaceChild(t,e)}}function Cn(e){e.id&&0===e.id.indexOf("docs-internal-guid-")&&Object(pe.unwrap)(e)}function Tn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function xn(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,n=document.implementation.createHTMLDocument("");return n.body.innerHTML=e,Sn(n.body.childNodes,t,n,r),n.body.innerHTML}function En(e,t){var r=e["".concat(t,"Sibling")];if(r&&Object(pe.isPhrasingContent)(r))return r;var n=e.parentNode;return n&&Object(pe.isPhrasingContent)(n)?En(n,t):void 0}function Bn(e){if(e.nodeType===e.TEXT_NODE){for(var t=e;t=t.parentNode;)if(t.nodeType===t.ELEMENT_NODE&&"PRE"===t.nodeName)return;var r,n=e.data.replace(/[ \r\n\t]+/g," ");if(" "===n[0]){var a=En(e,"previous");a&&"BR"!==a.nodeName&&" "!==a.textContent.slice(-1)||(n=n.slice(1))}if(" "===n[n.length-1]){var o=En(e,"next");(!o||"BR"===o.nodeName||o.nodeType===o.TEXT_NODE&&(" "===(r=o.textContent[0])||"\r"===r||"\n"===r||"\t"===r))&&(n=n.slice(0,-1))}n?e.data=n:e.parentNode.removeChild(e)}}function Nn(e){"BR"===e.nodeName&&(En(e,"next")||e.parentNode.removeChild(e))}function Ln(e){"P"===e.nodeName&&(e.hasChildNodes()||e.parentNode.removeChild(e))}function Mn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function zn(e){for(var t=1;t]+>/g,"")).replace(/^\s*]*>\s*]*>(?:\s*)?/i,"")).replace(/(?:\s*)?<\/body>\s*<\/html>\s*$/i,""),"INLINE"!==s){var l=n||o;if(-1!==l.indexOf("\x3c!-- wp:"))return Yr(l)}if(String.prototype.normalize&&(n=n.normalize()),!o||n&&!function(e){return!/<(?!br[ />])/i.test(e)}(n)||(t=o,n=On.makeHtml(function(e){return e.replace(/((?:^|\n)```)([^\n`]+)(```(?:$|\n))/,(function(e,t,r,n){return"".concat(t,"\n").concat(r,"\n").concat(n)}))}(t)),"AUTO"===s&&-1===o.indexOf("\n")&&0!==o.indexOf("

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

    ")&&(s="INLINE")),"INLINE"===s)return Hn(n);var f=yn(n),d=f.length>1;if("AUTO"===s&&!d&&function(e,t){var r=document.implementation.createHTMLDocument("");r.body.innerHTML=e;var n=Array.from(r.body.children);return!n.some(tn)&&en(n,t)}(n,u))return Hn(n);var p=Object(c.filter)(lt("from"),{type:"raw"}).map((function(e){return e.isMatch?e:zn(zn({},e),{},{isMatch:function(t){return e.selector&&t.matches(e.selector)}})})),h=Object(pe.getPhrasingContentSchema)("paste"),b=Pn(p,h,!0),g=Object(c.compact)(Object(c.flatMap)(f,(function(e){if("string"!=typeof e)return e;var t=[Cn,sn,nn,un,hn,rn,Xr,Jr,jn,mn,bn],r=zn(zn({},b),h);return e=An(e,t,b),e=An(e=Qr(e=Object(pe.removeInvalidHTML)(e,r)),[Bn,Nn,Ln],b),Dn.log("Processed HTML piece:\n\n",e),function(e){var t=e.html,r=e.rawTransforms,n=document.implementation.createHTMLDocument("");return n.body.innerHTML=t,Array.from(n.body.children).map((function(e){var t=ut(r,(function(t){return(0,t.isMatch)(e)}));if(!t)return rt("core/html",qr("core/html",e.outerHTML));var n=t.transform,a=t.blockName;return n?n(e):rt(a,qr(a,e.outerHTML))}))}({html:e,rawTransforms:p})})));if("AUTO"===s&&1===g.length&&qe(g[0].name,"__unstablePasteTextInline",!1)){var m=o.trim();if(""!==m&&-1===m.indexOf("\n"))return Object(pe.removeInvalidHTML)(er(g[0]),h)}return g}var Vn=r(36),Rn=r.n(Vn);function Fn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function $n(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length===t.length&&Object(c.every)(t,(function(t,r){var n=Object(ee.a)(t,3),a=n[0],o=n[2],i=e[r];return a===i.name&&Qn(i.innerBlocks,o)}))}function Xn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return t?Object(c.map)(t,(function(t,r){var n=Object(ee.a)(t,3),a=n[0],o=n[1],i=n[2],s=e[r];if(s&&s.name===a){var u=Xn(s.innerBlocks,i);return Zn(Zn({},s),{},{innerBlocks:u})}var l=Re(a),f=function(e,t){return Object(c.mapValues)(t,(function(t,r){return d(e[r],t)}))},d=function(e,t){return r=e,"html"===Object(c.get)(r,["source"])&&Object(c.isArray)(t)?Object(de.renderToString)(t):function(e){return"query"===Object(c.get)(e,["source"])}(e)&&t?t.map((function(t){return f(e.query,t)})):t;var r},p=Ur(a,f(Object(c.get)(l,["attributes"],{}),o));return rt(p.name,p.attributes,Xn([],i))})):e}},5:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"a",(function(){return n}))},64:function(e,t){!function(){e.exports=this.wp.isShallowEqual}()},66:function(e,t,r){var n;!function(a){var o=/^\s+/,i=/\s+$/,s=0,c=a.round,u=a.min,l=a.max,f=a.random;function d(e,t){if(t=t||{},(e=e||"")instanceof d)return e;if(!(this instanceof d))return new d(e,t);var r=function(e){var t={r:0,g:0,b:0},r=1,n=null,s=null,c=null,f=!1,d=!1;"string"==typeof e&&(e=function(e){e=e.replace(o,"").replace(i,"").toLowerCase();var t,r=!1;if(A[e])e=A[e],r=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=$.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=$.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=$.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=$.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=$.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=$.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=$.hex8.exec(e))return{r:M(t[1]),g:M(t[2]),b:M(t[3]),a:I(t[4]),format:r?"name":"hex8"};if(t=$.hex6.exec(e))return{r:M(t[1]),g:M(t[2]),b:M(t[3]),format:r?"name":"hex"};if(t=$.hex4.exec(e))return{r:M(t[1]+""+t[1]),g:M(t[2]+""+t[2]),b:M(t[3]+""+t[3]),a:I(t[4]+""+t[4]),format:r?"name":"hex8"};if(t=$.hex3.exec(e))return{r:M(t[1]+""+t[1]),g:M(t[2]+""+t[2]),b:M(t[3]+""+t[3]),format:r?"name":"hex"};return!1}(e));"object"==typeof e&&(q(e.r)&&q(e.g)&&q(e.b)?(p=e.r,h=e.g,b=e.b,t={r:255*N(p,255),g:255*N(h,255),b:255*N(b,255)},f=!0,d="%"===String(e.r).substr(-1)?"prgb":"rgb"):q(e.h)&&q(e.s)&&q(e.v)?(n=D(e.s),s=D(e.v),t=function(e,t,r){e=6*N(e,360),t=N(t,100),r=N(r,100);var n=a.floor(e),o=e-n,i=r*(1-t),s=r*(1-o*t),c=r*(1-(1-o)*t),u=n%6;return{r:255*[r,s,i,i,c,r][u],g:255*[c,r,r,s,i,i][u],b:255*[i,i,c,r,r,s][u]}}(e.h,n,s),f=!0,d="hsv"):q(e.h)&&q(e.s)&&q(e.l)&&(n=D(e.s),c=D(e.l),t=function(e,t,r){var n,a,o;function i(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}if(e=N(e,360),t=N(t,100),r=N(r,100),0===t)n=a=o=r;else{var s=r<.5?r*(1+t):r+t-r*t,c=2*r-s;n=i(c,s,e+1/3),a=i(c,s,e),o=i(c,s,e-1/3)}return{r:255*n,g:255*a,b:255*o}}(e.h,n,c),f=!0,d="hsl"),e.hasOwnProperty("a")&&(r=e.a));var p,h,b;return r=B(r),{ok:f,format:e.format||d,r:u(255,l(t.r,0)),g:u(255,l(t.g,0)),b:u(255,l(t.b,0)),a:r}}(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=c(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=c(this._r)),this._g<1&&(this._g=c(this._g)),this._b<1&&(this._b=c(this._b)),this._ok=r.ok,this._tc_id=s++}function p(e,t,r){e=N(e,255),t=N(t,255),r=N(r,255);var n,a,o=l(e,t,r),i=u(e,t,r),s=(o+i)/2;if(o==i)n=a=0;else{var c=o-i;switch(a=s>.5?c/(2-o-i):c/(o+i),o){case e:n=(t-r)/c+(t>1)+720)%360;--t;)n.h=(n.h+a)%360,o.push(d(n));return o}function S(e,t){t=t||6;for(var r=d(e).toHsv(),n=r.h,a=r.s,o=r.v,i=[],s=1/t;t--;)i.push(d({h:n,s:a,v:o})),o=(o+s)%1;return i}d.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,r,n=this.toRgb();return e=n.r/255,t=n.g/255,r=n.b/255,.2126*(e<=.03928?e/12.92:a.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:a.pow((t+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:a.pow((r+.055)/1.055,2.4))},setAlpha:function(e){return this._a=B(e),this._roundA=c(100*this._a)/100,this},toHsv:function(){var e=h(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=h(this._r,this._g,this._b),t=c(360*e.h),r=c(100*e.s),n=c(100*e.v);return 1==this._a?"hsv("+t+", "+r+"%, "+n+"%)":"hsva("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=p(this._r,this._g,this._b),t=c(360*e.h),r=c(100*e.s),n=c(100*e.l);return 1==this._a?"hsl("+t+", "+r+"%, "+n+"%)":"hsla("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return b(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,r,n,a){var o=[z(c(e).toString(16)),z(c(t).toString(16)),z(c(r).toString(16)),z(H(n))];if(a&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1))return o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0);return o.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:c(this._r),g:c(this._g),b:c(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+c(this._r)+", "+c(this._g)+", "+c(this._b)+")":"rgba("+c(this._r)+", "+c(this._g)+", "+c(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:c(100*N(this._r,255))+"%",g:c(100*N(this._g,255))+"%",b:c(100*N(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+c(100*N(this._r,255))+"%, "+c(100*N(this._g,255))+"%, "+c(100*N(this._b,255))+"%)":"rgba("+c(100*N(this._r,255))+"%, "+c(100*N(this._g,255))+"%, "+c(100*N(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(E[b(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+g(this._r,this._g,this._b,this._a),r=t,n=this._gradientType?"GradientType = 1, ":"";if(e){var a=d(e);r="#"+g(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+t+",endColorstr="+r+")"},toString:function(e){var t=!!e;e=e||this._format;var r=!1,n=this._a<1&&this._a>=0;return t||!n||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(r=this.toRgbString()),"prgb"===e&&(r=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(r=this.toHexString()),"hex3"===e&&(r=this.toHexString(!0)),"hex4"===e&&(r=this.toHex8String(!0)),"hex8"===e&&(r=this.toHex8String()),"name"===e&&(r=this.toName()),"hsl"===e&&(r=this.toHslString()),"hsv"===e&&(r=this.toHsvString()),r||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return d(this.toString())},_applyModification:function(e,t){var r=e.apply(null,[this].concat([].slice.call(t)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(w,arguments)},brighten:function(){return this._applyModification(y,arguments)},darken:function(){return this._applyModification(k,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(_,arguments)},greyscale:function(){return this._applyModification(v,arguments)},spin:function(){return this._applyModification(O,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(P,arguments)},complement:function(){return this._applyCombination(j,arguments)},monochromatic:function(){return this._applyCombination(S,arguments)},splitcomplement:function(){return this._applyCombination(x,arguments)},triad:function(){return this._applyCombination(C,arguments)},tetrad:function(){return this._applyCombination(T,arguments)}},d.fromRatio=function(e,t){if("object"==typeof e){var r={};for(var n in e)e.hasOwnProperty(n)&&(r[n]="a"===n?e[n]:D(e[n]));e=r}return d(e,t)},d.equals=function(e,t){return!(!e||!t)&&d(e).toRgbString()==d(t).toRgbString()},d.random=function(){return d.fromRatio({r:f(),g:f(),b:f()})},d.mix=function(e,t,r){r=0===r?0:r||50;var n=d(e).toRgb(),a=d(t).toRgb(),o=r/100;return d({r:(a.r-n.r)*o+n.r,g:(a.g-n.g)*o+n.g,b:(a.b-n.b)*o+n.b,a:(a.a-n.a)*o+n.a})},d.readability=function(e,t){var r=d(e),n=d(t);return(a.max(r.getLuminance(),n.getLuminance())+.05)/(a.min(r.getLuminance(),n.getLuminance())+.05)},d.isReadable=function(e,t,r){var n,a,o=d.readability(e,t);switch(a=!1,(n=function(e){var t,r;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==r&&"large"!==r&&(r="small");return{level:t,size:r}}(r)).level+n.size){case"AAsmall":case"AAAlarge":a=o>=4.5;break;case"AAlarge":a=o>=3;break;case"AAAsmall":a=o>=7}return a},d.mostReadable=function(e,t,r){var n,a,o,i,s=null,c=0;a=(r=r||{}).includeFallbackColors,o=r.level,i=r.size;for(var u=0;uc&&(c=n,s=d(t[u]));return d.isReadable(e,s,{level:o,size:i})||!a?s:(r.includeFallbackColors=!1,d.mostReadable(e,["#fff","#000"],r))};var A=d.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},E=d.hexNames=function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}(A);function B(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function N(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var r=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=u(t,l(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),a.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function L(e){return u(1,l(0,e))}function M(e){return parseInt(e,16)}function z(e){return 1==e.length?"0"+e:""+e}function D(e){return e<=1&&(e=100*e+"%"),e}function H(e){return a.round(255*parseFloat(e)).toString(16)}function I(e){return M(e)/255}var V,R,F,$=(R="[\\s|\\(]+("+(V="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",F="[\\s|\\(]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",{CSS_UNIT:new RegExp(V),rgb:new RegExp("rgb"+R),rgba:new RegExp("rgba"+F),hsl:new RegExp("hsl"+R),hsla:new RegExp("hsla"+F),hsv:new RegExp("hsv"+R),hsva:new RegExp("hsva"+F),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function q(e){return!!$.CSS_UNIT.exec(e)}e.exports?e.exports=d:void 0===(n=function(){return d}.call(t,r,t,e))||(e.exports=n)}(Math)},69:function(e,t){!function(){e.exports=this.wp.htmlEntities}()},7:function(e,t){!function(){e.exports=this.wp.primitives}()},8:function(e,t,r){"use strict";function n(){return(n=Object.assign||function(e){for(var t=1;t} IconProps */ +/** @typedef {{icon: JSX.Element, size?: number} & import('@wordpress/primitives').SVGProps} IconProps */ /** * Return an SVG icon. @@ -12404,7 +12400,7 @@ function Icon(_ref) { /***/ }), -/* 143 */ +/* 142 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -12417,7 +12413,7 @@ function Icon(_ref) { -var ReactPropTypesSecret = __webpack_require__(144); +var ReactPropTypesSecret = __webpack_require__(143); function emptyFunction() {} function emptyFunctionWithReset() {} @@ -12475,7 +12471,7 @@ module.exports = function() { /***/ }), -/* 144 */ +/* 143 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -12494,7 +12490,7 @@ module.exports = ReactPropTypesSecret; /***/ }), -/* 145 */ +/* 144 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -12502,7 +12498,7 @@ module.exports = ReactPropTypesSecret; var GetIntrinsic = __webpack_require__(58); -var callBind = __webpack_require__(186); +var callBind = __webpack_require__(188); var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf')); @@ -12516,12 +12512,12 @@ module.exports = function callBoundIntrinsic(name, allowMissing) { /***/ }), -/* 146 */ +/* 145 */ /***/ (function(module, exports, __webpack_require__) { var moment = __webpack_require__(44); -var momentValidationWrapper = __webpack_require__(368); -var core = __webpack_require__(369); +var momentValidationWrapper = __webpack_require__(372); +var core = __webpack_require__(373); module.exports = { @@ -12562,7 +12558,7 @@ module.exports = { /***/ }), -/* 147 */ +/* 146 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -12583,7 +12579,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'd exports['default'] = _propTypes2['default'].oneOf([_constants.HORIZONTAL_ORIENTATION, _constants.VERTICAL_ORIENTATION, _constants.VERTICAL_SCROLLABLE]); /***/ }), -/* 148 */ +/* 147 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -12598,7 +12594,7 @@ exports['default'] = _propTypes2['default'].oneOf([_constants.HORIZONTAL_ORIENTA -var shallowEqual = __webpack_require__(383); +var shallowEqual = __webpack_require__(387); /** * Does a shallow comparison for props and state. @@ -12616,7 +12612,7 @@ module.exports = shallowCompare; /***/ }), -/* 149 */ +/* 148 */ /***/ (function(module, exports) { function _inheritsLoose(subClass, superClass) { @@ -12628,6 +12624,7 @@ function _inheritsLoose(subClass, superClass) { module.exports = _inheritsLoose; /***/ }), +/* 149 */, /* 150 */, /* 151 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -12641,18 +12638,27 @@ module.exports = _inheritsLoose; +/** + * @typedef OwnProps + * + * @property {string} icon Icon name + * @property {string} [className] Class name + */ + +/** @typedef {import('react').ComponentPropsWithoutRef<'span'> & OwnProps} Props */ + +/** + * @param {Props} props + * @return {JSX.Element} Element + */ function Dashicon(_ref) { var icon = _ref.icon, - _ref$size = _ref.size, - size = _ref$size === void 0 ? 20 : _ref$size, className = _ref.className, - extraProps = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(_ref, ["icon", "size", "className"]); + extraProps = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(_ref, ["icon", "className"]); var iconClass = ['dashicon', 'dashicons', 'dashicons-' + icon, className].filter(Boolean).join(' '); return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])("span", Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({ - className: iconClass, - width: size, - height: size + className: iconClass }, extraProps)); } @@ -12671,7 +12677,33 @@ var e=__webpack_require__(13),n={display:"block",opacity:0,position:"absolute",t /* 154 */, /* 155 */, /* 156 */, -/* 157 */ +/* 157 */, +/* 158 */, +/* 159 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); + + +/** + * WordPress dependencies + */ + +var closeSmall = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["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" +})); +/* harmony default export */ __webpack_exports__["a"] = (closeSmall); + + +/***/ }), +/* 160 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -12695,7 +12727,7 @@ var close = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElemen /***/ }), -/* 158 */ +/* 161 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -12719,7 +12751,7 @@ var check = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElemen /***/ }), -/* 159 */ +/* 162 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -12740,7 +12772,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'd exports['default'] = _propTypes2['default'].oneOf(_constants.WEEKDAYS); /***/ }), -/* 160 */ +/* 163 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -12754,7 +12786,7 @@ var _propTypes = __webpack_require__(28); var _propTypes2 = _interopRequireDefault(_propTypes); -var _airbnbPropTypes = __webpack_require__(88); +var _airbnbPropTypes = __webpack_require__(89); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } @@ -12785,8 +12817,8 @@ exports['default'] = (0, _airbnbPropTypes.and)([_propTypes2['default'].instanceO }()], 'Modifiers (Set of Strings)'); /***/ }), -/* 161 */, -/* 162 */ +/* 164 */, +/* 165 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -12840,16 +12872,16 @@ function useSlot(name) { /***/ }), -/* 163 */ +/* 166 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* unused harmony export createScrollLockComponent */ /* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(21); -/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(20); -/* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(22); -/* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(23); -/* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(17); +/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22); +/* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(23); +/* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(24); +/* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(19); /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(0); /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__); @@ -12998,7 +13030,7 @@ function createScrollLockComponent() { /***/ }), -/* 164 */ +/* 167 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -13008,13 +13040,13 @@ function createScrollLockComponent() { /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9); /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _wordpress_a11y__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(52); +/* harmony import */ var _wordpress_a11y__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(46); /* harmony import */ var _wordpress_a11y__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_a11y__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1); /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _wordpress_warning__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(90); /* harmony import */ var _wordpress_warning__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_warning__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(36); +/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(35); /** @@ -13119,11 +13151,11 @@ function Snackbar(_ref, ref) { /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(102))) /***/ }), -/* 165 */, -/* 166 */, -/* 167 */, /* 168 */, -/* 169 */ +/* 169 */, +/* 170 */, +/* 171 */, +/* 172 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -13168,16 +13200,16 @@ function Shortcut(_ref) { /***/ }), -/* 170 */ +/* 173 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return useToolbarState; }); -/* harmony import */ var _rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16); +/* harmony import */ var _rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(13); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var reakit_utils_useSealedState__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(62); -/* harmony import */ var _CompositeState_3a25dcee_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(51); +/* harmony import */ var _CompositeState_3a25dcee_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(52); @@ -13208,10 +13240,10 @@ useToolbarState.__keys = keys; /***/ }), -/* 171 */, -/* 172 */, -/* 173 */, -/* 174 */ +/* 174 */, +/* 175 */, +/* 176 */, +/* 177 */ /***/ (function(module, exports) { function _extends() { @@ -13235,7 +13267,7 @@ function _extends() { module.exports = _extends; /***/ }), -/* 175 */ +/* 178 */ /***/ (function(module, exports) { function _objectWithoutPropertiesLoose(source, excluded) { @@ -13256,7 +13288,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { module.exports = _objectWithoutPropertiesLoose; /***/ }), -/* 176 */ +/* 179 */ /***/ (function(module, exports) { function _assertThisInitialized(self) { @@ -13270,18 +13302,17 @@ function _assertThisInitialized(self) { module.exports = _assertThisInitialized; /***/ }), -/* 177 */, -/* 178 */, -/* 179 */, /* 180 */, /* 181 */, -/* 182 */ +/* 182 */, +/* 183 */, +/* 184 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var util = __webpack_require__(183); +var util = __webpack_require__(185); function scrollIntoView(elem, container, config) { config = config || {}; @@ -13410,7 +13441,7 @@ function scrollIntoView(elem, container, config) { module.exports = scrollIntoView; /***/ }), -/* 183 */ +/* 185 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -13855,7 +13886,7 @@ module.exports = _extends({ }, domUtils); /***/ }), -/* 184 */ +/* 186 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -13879,17 +13910,17 @@ var link = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement /***/ }), -/* 185 */ +/* 187 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var slice = Array.prototype.slice; -var isArgs = __webpack_require__(218); +var isArgs = __webpack_require__(219); var origKeys = Object.keys; -var keysShim = origKeys ? function keys(o) { return origKeys(o); } : __webpack_require__(325); +var keysShim = origKeys ? function keys(o) { return origKeys(o); } : __webpack_require__(329); var originalKeys = Object.keys; @@ -13918,13 +13949,13 @@ module.exports = keysShim; /***/ }), -/* 186 */ +/* 188 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var bind = __webpack_require__(121); +var bind = __webpack_require__(120); var GetIntrinsic = __webpack_require__(58); @@ -13959,7 +13990,7 @@ if ($defineProperty) { /***/ }), -/* 187 */ +/* 189 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -13969,10 +14000,10 @@ var GetIntrinsic = __webpack_require__(58); var $TypeError = GetIntrinsic('%TypeError%'); -var inspect = __webpack_require__(329); +var inspect = __webpack_require__(333); -var IsPropertyKey = __webpack_require__(131); -var Type = __webpack_require__(92); +var IsPropertyKey = __webpack_require__(132); +var Type = __webpack_require__(93); /** * 7.3.1 Get (O, P) - https://ecma-international.org/ecma-262/6.0/#sec-get-o-p @@ -13996,7 +14027,7 @@ module.exports = function Get(O, P) { /***/ }), -/* 188 */ +/* 190 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -14007,7 +14038,7 @@ var GetIntrinsic = __webpack_require__(58); var $Array = GetIntrinsic('%Array%'); // eslint-disable-next-line global-require -var toStr = !$Array.isArray && __webpack_require__(145)('Object.prototype.toString'); +var toStr = !$Array.isArray && __webpack_require__(144)('Object.prototype.toString'); // https://www.ecma-international.org/ecma-262/6.0/#sec-isarray @@ -14017,7 +14048,7 @@ module.exports = $Array.isArray || function IsArray(argument) { /***/ }), -/* 189 */ +/* 191 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -14028,7 +14059,7 @@ var GetIntrinsic = __webpack_require__(58); var $TypeError = GetIntrinsic('%TypeError%'); var $SyntaxError = GetIntrinsic('%SyntaxError%'); -var has = __webpack_require__(93); +var has = __webpack_require__(94); var predicates = { // https://ecma-international.org/ecma-262/6.0/#sec-property-descriptor-specification-type @@ -14072,7 +14103,7 @@ module.exports = function assertRecord(Type, recordType, argumentName, value) { /***/ }), -/* 190 */ +/* 192 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -14084,14 +14115,14 @@ module.exports = Number.isNaN || function isNaN(a) { /***/ }), -/* 191 */ +/* 193 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var toStr = Object.prototype.toString; -var hasSymbols = __webpack_require__(356)(); +var hasSymbols = __webpack_require__(360)(); if (hasSymbols) { var symToStr = Symbol.prototype.toString; @@ -14126,7 +14157,7 @@ if (hasSymbols) { /***/ }), -/* 192 */ +/* 194 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -14170,7 +14201,7 @@ module.exports = function isCallable(value) { /***/ }), -/* 193 */ +/* 195 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -14354,7 +14385,7 @@ module.exports = function GetIntrinsic(name, allowMissing) { /***/ }), -/* 194 */ +/* 196 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -14379,7 +14410,7 @@ function isSameDay(a, b) { } /***/ }), -/* 195 */ +/* 197 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -14394,7 +14425,7 @@ var _moment = __webpack_require__(44); var _moment2 = _interopRequireDefault(_moment); -var _toMomentObject = __webpack_require__(253); +var _toMomentObject = __webpack_require__(254); var _toMomentObject2 = _interopRequireDefault(_toMomentObject); @@ -14410,7 +14441,7 @@ function toISOMonthString(date, currentFormat) { } /***/ }), -/* 196 */ +/* 198 */ /***/ (function(module, exports) { /** @@ -14447,18 +14478,18 @@ module.exports = isObject; /***/ }), -/* 197 */ +/* 199 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Consumer; }); -/* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(18); +/* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17); /* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(21); -/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(20); -/* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(15); -/* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(22); -/* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(23); -/* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(17); +/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(22); +/* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(16); +/* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(23); +/* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(24); +/* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(19); /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(0); /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__); /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(2); @@ -14561,19 +14592,19 @@ var FocusReturnProvider = /*#__PURE__*/function (_Component) { /***/ }), -/* 198 */ +/* 200 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; if (true) { - module.exports = __webpack_require__(318); + module.exports = __webpack_require__(322); } else {} /***/ }), -/* 199 */ +/* 201 */ /***/ (function(module, exports) { // Copyright (c) 2014 Rafael Caricio. All rights reserved. @@ -14918,15 +14949,14 @@ exports.parse = (GradientParser || {}).parse; /***/ }), -/* 200 */, -/* 201 */, /* 202 */, /* 203 */, /* 204 */, /* 205 */, /* 206 */, /* 207 */, -/* 208 */ +/* 208 */, +/* 209 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -14950,11 +14980,11 @@ var plus = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement /***/ }), -/* 209 */, /* 210 */, /* 211 */, /* 212 */, -/* 213 */ +/* 213 */, +/* 214 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -14978,7 +15008,7 @@ var chevronRight = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["creat /***/ }), -/* 214 */ +/* 215 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -15002,8 +15032,8 @@ var chevronLeft = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["create /***/ }), -/* 215 */, -/* 216 */ +/* 216 */, +/* 217 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -15027,7 +15057,7 @@ var upload = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEleme /***/ }), -/* 217 */ +/* 218 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -15051,7 +15081,7 @@ var linkOff = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElem /***/ }), -/* 218 */ +/* 219 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -15075,14 +15105,14 @@ module.exports = function isArguments(value) { /***/ }), -/* 219 */ +/* 220 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(global) { var origSymbol = global.Symbol; -var hasSymbolSham = __webpack_require__(327); +var hasSymbolSham = __webpack_require__(331); module.exports = function hasNativeSymbols() { if (typeof origSymbol !== 'function') { return false; } @@ -15093,21 +15123,21 @@ module.exports = function hasNativeSymbols() { return hasSymbolSham(); }; -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(130))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(131))) /***/ }), -/* 220 */ +/* 221 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var ArraySpeciesCreate = __webpack_require__(328); -var FlattenIntoArray = __webpack_require__(338); -var Get = __webpack_require__(187); -var ToInteger = __webpack_require__(232); -var ToLength = __webpack_require__(231); -var ToObject = __webpack_require__(358); +var ArraySpeciesCreate = __webpack_require__(332); +var FlattenIntoArray = __webpack_require__(342); +var Get = __webpack_require__(189); +var ToInteger = __webpack_require__(233); +var ToLength = __webpack_require__(232); +var ToObject = __webpack_require__(362); module.exports = function flat() { var O = ToObject(this); @@ -15125,7 +15155,7 @@ module.exports = function flat() { /***/ }), -/* 221 */ +/* 222 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -15144,7 +15174,7 @@ if ($defineProperty) { } } -var callBound = __webpack_require__(145); +var callBound = __webpack_require__(144); var $isEnumerable = callBound('Object.prototype.propertyIsEnumerable'); @@ -15177,15 +15207,15 @@ module.exports = function DefineOwnProperty(IsDataDescriptor, SameValue, FromPro /***/ }), -/* 222 */ +/* 223 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var assertRecord = __webpack_require__(189); +var assertRecord = __webpack_require__(191); -var Type = __webpack_require__(92); +var Type = __webpack_require__(93); // https://www.ecma-international.org/ecma-262/6.0/#sec-frompropertydescriptor @@ -15220,17 +15250,17 @@ module.exports = function FromPropertyDescriptor(Desc) { /***/ }), -/* 223 */ +/* 224 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var has = __webpack_require__(93); +var has = __webpack_require__(94); -var assertRecord = __webpack_require__(189); +var assertRecord = __webpack_require__(191); -var Type = __webpack_require__(92); +var Type = __webpack_require__(93); // https://www.ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor @@ -15250,13 +15280,13 @@ module.exports = function IsDataDescriptor(Desc) { /***/ }), -/* 224 */ +/* 225 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var $isNaN = __webpack_require__(190); +var $isNaN = __webpack_require__(192); // http://www.ecma-international.org/ecma-262/5.1/#sec-9.12 @@ -15270,21 +15300,21 @@ module.exports = function SameValue(x, y) { /***/ }), -/* 225 */ +/* 226 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var has = __webpack_require__(93); +var has = __webpack_require__(94); var GetIntrinsic = __webpack_require__(58); var $TypeError = GetIntrinsic('%TypeError%'); -var Type = __webpack_require__(92); -var ToBoolean = __webpack_require__(226); -var IsCallable = __webpack_require__(336); +var Type = __webpack_require__(93); +var ToBoolean = __webpack_require__(227); +var IsCallable = __webpack_require__(340); // https://ecma-international.org/ecma-262/5.1/#sec-8.10.5 @@ -15329,7 +15359,7 @@ module.exports = function ToPropertyDescriptor(Obj) { /***/ }), -/* 226 */ +/* 227 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -15341,7 +15371,7 @@ module.exports = function ToBoolean(value) { return !!value; }; /***/ }), -/* 227 */ +/* 228 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -15418,7 +15448,7 @@ module.exports = reflectApply /***/ }), -/* 228 */ +/* 229 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -15430,7 +15460,7 @@ module.exports = Number.isFinite || function (x) { return typeof x === 'number' /***/ }), -/* 229 */ +/* 230 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -15445,7 +15475,7 @@ module.exports = $Number.MAX_SAFE_INTEGER || $Math.pow(2, 53) - 1; /***/ }), -/* 230 */ +/* 231 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -15457,15 +15487,15 @@ module.exports = function isPrimitive(value) { /***/ }), -/* 231 */ +/* 232 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var MAX_SAFE_INTEGER = __webpack_require__(229); +var MAX_SAFE_INTEGER = __webpack_require__(230); -var ToInteger = __webpack_require__(232); +var ToInteger = __webpack_require__(233); module.exports = function ToLength(argument) { var len = ToInteger(argument); @@ -15476,15 +15506,15 @@ module.exports = function ToLength(argument) { /***/ }), -/* 232 */ +/* 233 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var ES5ToInteger = __webpack_require__(348); +var ES5ToInteger = __webpack_require__(352); -var ToNumber = __webpack_require__(351); +var ToNumber = __webpack_require__(355); // https://www.ecma-international.org/ecma-262/6.0/#sec-tointeger @@ -15495,7 +15525,7 @@ module.exports = function ToInteger(value) { /***/ }), -/* 233 */ +/* 234 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -15522,7 +15552,7 @@ module.exports = function isDateObject(value) { /***/ }), -/* 234 */ +/* 235 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -15571,13 +15601,13 @@ module.exports = function hasSymbols() { /***/ }), -/* 235 */ +/* 236 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var implementation = __webpack_require__(220); +var implementation = __webpack_require__(221); module.exports = function getPolyfill() { return Array.prototype.flat || implementation; @@ -15585,7 +15615,7 @@ module.exports = function getPolyfill() { /***/ }), -/* 236 */ +/* 237 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -15686,7 +15716,7 @@ exports['default'] = { }; /***/ }), -/* 237 */ +/* 238 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -15892,19 +15922,19 @@ exports['default'] = { }; /***/ }), -/* 238 */ +/* 239 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; // modified from https://github.com/es-shims/es6-shim -var keys = __webpack_require__(185); -var bind = __webpack_require__(121); +var keys = __webpack_require__(187); +var bind = __webpack_require__(120); var canBeObject = function (obj) { return typeof obj !== 'undefined' && obj !== null; }; -var hasSymbols = __webpack_require__(234)(); +var hasSymbols = __webpack_require__(235)(); var toObject = Object; var push = bind.call(Function.call, Array.prototype.push); var propIsEnumerable = bind.call(Function.call, Object.prototype.propertyIsEnumerable); @@ -15940,13 +15970,13 @@ module.exports = function assign(target, source1) { /***/ }), -/* 239 */ +/* 240 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var implementation = __webpack_require__(238); +var implementation = __webpack_require__(239); var lacksProperEnumerationOrder = function () { if (!Object.assign) { @@ -15998,7 +16028,7 @@ module.exports = function getPolyfill() { /***/ }), -/* 240 */ +/* 241 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -16006,9 +16036,9 @@ module.exports = function getPolyfill() { var define = __webpack_require__(103); -var implementation = __webpack_require__(241); -var getPolyfill = __webpack_require__(249); -var shim = __webpack_require__(380); +var implementation = __webpack_require__(242); +var getPolyfill = __webpack_require__(250); +var shim = __webpack_require__(384); var polyfill = getPolyfill(); @@ -16022,15 +16052,15 @@ module.exports = polyfill; /***/ }), -/* 241 */ +/* 242 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var ES = __webpack_require__(371); -var has = __webpack_require__(93); -var bind = __webpack_require__(121); +var ES = __webpack_require__(375); +var has = __webpack_require__(94); +var bind = __webpack_require__(120); var isEnumerable = bind.call(Function.call, Object.prototype.propertyIsEnumerable); module.exports = function values(O) { @@ -16046,7 +16076,7 @@ module.exports = function values(O) { /***/ }), -/* 242 */ +/* 243 */ /***/ (function(module, exports) { module.exports = function isPrimitive(value) { @@ -16055,18 +16085,18 @@ module.exports = function isPrimitive(value) { /***/ }), -/* 243 */ +/* 244 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var GetIntrinsic = __webpack_require__(193); +var GetIntrinsic = __webpack_require__(195); var $TypeError = GetIntrinsic('%TypeError%'); var $SyntaxError = GetIntrinsic('%SyntaxError%'); -var has = __webpack_require__(93); +var has = __webpack_require__(94); var predicates = { // https://ecma-international.org/ecma-262/6.0/#sec-property-descriptor-specification-type @@ -16111,7 +16141,7 @@ module.exports = function assertRecord(ES, recordType, argumentName, value) { /***/ }), -/* 244 */ +/* 245 */ /***/ (function(module, exports) { module.exports = Number.isNaN || function isNaN(a) { @@ -16120,7 +16150,7 @@ module.exports = Number.isNaN || function isNaN(a) { /***/ }), -/* 245 */ +/* 246 */ /***/ (function(module, exports) { var $isNaN = Number.isNaN || function (a) { return a !== a; }; @@ -16129,10 +16159,10 @@ module.exports = Number.isFinite || function (x) { return typeof x === 'number' /***/ }), -/* 246 */ +/* 247 */ /***/ (function(module, exports, __webpack_require__) { -var bind = __webpack_require__(121); +var bind = __webpack_require__(120); var has = bind.call(Function.call, Object.prototype.hasOwnProperty); var $assign = Object.assign; @@ -16152,7 +16182,7 @@ module.exports = function assign(target, source) { /***/ }), -/* 247 */ +/* 248 */ /***/ (function(module, exports) { module.exports = function sign(number) { @@ -16161,7 +16191,7 @@ module.exports = function sign(number) { /***/ }), -/* 248 */ +/* 249 */ /***/ (function(module, exports) { module.exports = function mod(number, modulo) { @@ -16171,13 +16201,13 @@ module.exports = function mod(number, modulo) { /***/ }), -/* 249 */ +/* 250 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var implementation = __webpack_require__(241); +var implementation = __webpack_require__(242); module.exports = function getPolyfill() { return typeof Object.values === 'function' ? Object.values : implementation; @@ -16185,7 +16215,7 @@ module.exports = function getPolyfill() { /***/ }), -/* 250 */ +/* 251 */ /***/ (function(module, exports) { Object.defineProperty(exports, "__esModule", { @@ -16198,7 +16228,7 @@ function isTouchDevice() { module.exports = exports['default']; /***/ }), -/* 251 */ +/* 252 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -16213,11 +16243,11 @@ var _moment = __webpack_require__(44); var _moment2 = _interopRequireDefault(_moment); -var _isBeforeDay = __webpack_require__(252); +var _isBeforeDay = __webpack_require__(253); var _isBeforeDay2 = _interopRequireDefault(_isBeforeDay); -var _isSameDay = __webpack_require__(194); +var _isSameDay = __webpack_require__(196); var _isSameDay2 = _interopRequireDefault(_isSameDay); @@ -16229,7 +16259,7 @@ function isAfterDay(a, b) { } /***/ }), -/* 252 */ +/* 253 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -16264,7 +16294,7 @@ function isBeforeDay(a, b) { } /***/ }), -/* 253 */ +/* 254 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -16291,7 +16321,7 @@ function toMomentObject(dateString, customFormat) { } /***/ }), -/* 254 */ +/* 255 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -16302,11 +16332,11 @@ Object.defineProperty(exports, "__esModule", { }); exports['default'] = isDayVisible; -var _isBeforeDay = __webpack_require__(252); +var _isBeforeDay = __webpack_require__(253); var _isBeforeDay2 = _interopRequireDefault(_isBeforeDay); -var _isAfterDay = __webpack_require__(251); +var _isAfterDay = __webpack_require__(252); var _isAfterDay2 = _interopRequireDefault(_isAfterDay); @@ -16323,7 +16353,7 @@ function isDayVisible(day, month, numberOfMonths, enableOutsideDays) { } /***/ }), -/* 255 */ +/* 256 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -16338,7 +16368,7 @@ var _moment = __webpack_require__(44); var _moment2 = _interopRequireDefault(_moment); -var _toMomentObject = __webpack_require__(253); +var _toMomentObject = __webpack_require__(254); var _toMomentObject2 = _interopRequireDefault(_toMomentObject); @@ -16354,7 +16384,7 @@ function toISODateString(date, currentFormat) { } /***/ }), -/* 256 */ +/* 257 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -16375,10 +16405,10 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'd exports['default'] = _propTypes2['default'].oneOf([_constants.INFO_POSITION_TOP, _constants.INFO_POSITION_BOTTOM, _constants.INFO_POSITION_BEFORE, _constants.INFO_POSITION_AFTER]); /***/ }), -/* 257 */ +/* 258 */ /***/ (function(module, exports, __webpack_require__) { -var freeGlobal = __webpack_require__(392); +var freeGlobal = __webpack_require__(396); /** Detect free variable `self`. */ var freeSelf = typeof self == 'object' && self && self.Object === Object && self; @@ -16390,10 +16420,10 @@ module.exports = root; /***/ }), -/* 258 */ +/* 259 */ /***/ (function(module, exports, __webpack_require__) { -var root = __webpack_require__(257); +var root = __webpack_require__(258); /** Built-in value references. */ var Symbol = root.Symbol; @@ -16402,7 +16432,7 @@ module.exports = Symbol; /***/ }), -/* 259 */ +/* 260 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -16617,7 +16647,7 @@ function addEventListener(target, eventName, listener, options) { /***/ }), -/* 260 */ +/* 261 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -16646,13 +16676,13 @@ module.exports = function contains(other) { /***/ }), -/* 261 */ +/* 262 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var implementation = __webpack_require__(260); +var implementation = __webpack_require__(261); module.exports = function getPolyfill() { if (typeof document !== 'undefined') { @@ -16672,7 +16702,7 @@ module.exports = function getPolyfill() { /***/ }), -/* 262 */ +/* 263 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -16687,7 +16717,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); -var _object = __webpack_require__(94); +var _object = __webpack_require__(95); var _object2 = _interopRequireDefault(_object); @@ -16699,15 +16729,15 @@ var _propTypes = __webpack_require__(28); var _propTypes2 = _interopRequireDefault(_propTypes); -var _reactAddonsShallowCompare = __webpack_require__(148); +var _reactAddonsShallowCompare = __webpack_require__(147); var _reactAddonsShallowCompare2 = _interopRequireDefault(_reactAddonsShallowCompare); -var _reactMomentProptypes = __webpack_require__(146); +var _reactMomentProptypes = __webpack_require__(145); var _reactMomentProptypes2 = _interopRequireDefault(_reactMomentProptypes); -var _airbnbPropTypes = __webpack_require__(88); +var _airbnbPropTypes = __webpack_require__(89); var _reactWithStyles = __webpack_require__(112); @@ -16721,11 +16751,11 @@ var _getPhrasePropTypes = __webpack_require__(111); var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes); -var _getCalendarDaySettings = __webpack_require__(263); +var _getCalendarDaySettings = __webpack_require__(264); var _getCalendarDaySettings2 = _interopRequireDefault(_getCalendarDaySettings); -var _ModifiersShape = __webpack_require__(160); +var _ModifiersShape = __webpack_require__(163); var _ModifiersShape2 = _interopRequireDefault(_ModifiersShape); @@ -17154,7 +17184,7 @@ exports['default'] = (0, _reactWithStyles.withStyles)(function (_ref2) { })(CalendarDay); /***/ }), -/* 263 */ +/* 264 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -17165,7 +17195,7 @@ Object.defineProperty(exports, "__esModule", { }); exports['default'] = getCalendarDaySettings; -var _getPhrase = __webpack_require__(406); +var _getPhrase = __webpack_require__(410); var _getPhrase2 = _interopRequireDefault(_getPhrase); @@ -17212,7 +17242,7 @@ function getCalendarDaySettings(day, ariaLabelFormat, daySize, modifiers, phrase } /***/ }), -/* 264 */ +/* 265 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -17256,7 +17286,7 @@ function calculateDimension(el, axis) { } /***/ }), -/* 265 */ +/* 266 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -17271,7 +17301,7 @@ function getCalendarMonthWidth(daySize, calendarMonthPadding) { } /***/ }), -/* 266 */ +/* 267 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -17296,12 +17326,12 @@ function isSameMonth(a, b) { } /***/ }), -/* 267 */, /* 268 */, /* 269 */, /* 270 */, /* 271 */, -/* 272 */ +/* 272 */, +/* 273 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -17319,6 +17349,7 @@ __webpack_require__.d(__webpack_exports__, "HorizontalRule", function() { return __webpack_require__.d(__webpack_exports__, "BlockQuotation", function() { return /* reexport */ external_this_wp_primitives_["BlockQuotation"]; }); __webpack_require__.d(__webpack_exports__, "__experimentalAlignmentMatrixControl", function() { return /* reexport */ AlignmentMatrixControl; }); __webpack_require__.d(__webpack_exports__, "Animate", function() { return /* reexport */ animate["a" /* default */]; }); +__webpack_require__.d(__webpack_exports__, "__unstableUseAnimate", function() { return /* reexport */ animate["b" /* useAnimate */]; }); __webpack_require__.d(__webpack_exports__, "AnglePickerControl", function() { return /* reexport */ AnglePickerControl; }); __webpack_require__.d(__webpack_exports__, "Autocomplete", function() { return /* reexport */ autocomplete; }); __webpack_require__.d(__webpack_exports__, "BaseControl", function() { return /* reexport */ base_control; }); @@ -17333,6 +17364,7 @@ __webpack_require__.d(__webpack_exports__, "CardHeader", function() { return /* __webpack_require__.d(__webpack_exports__, "CardMedia", function() { return /* reexport */ media; }); __webpack_require__.d(__webpack_exports__, "CheckboxControl", function() { return /* reexport */ CheckboxControl; }); __webpack_require__.d(__webpack_exports__, "ClipboardButton", function() { return /* reexport */ ClipboardButton; }); +__webpack_require__.d(__webpack_exports__, "__experimentalColorEdit", function() { return /* reexport */ ColorEdit; }); __webpack_require__.d(__webpack_exports__, "ColorIndicator", function() { return /* reexport */ color_indicator; }); __webpack_require__.d(__webpack_exports__, "ColorPalette", function() { return /* reexport */ ColorPalette; }); __webpack_require__.d(__webpack_exports__, "ColorPicker", function() { return /* reexport */ color_picker_ColorPicker; }); @@ -17376,7 +17408,7 @@ __webpack_require__.d(__webpack_exports__, "ScrollLock", function() { return /* __webpack_require__.d(__webpack_exports__, "NavigableMenu", function() { return /* reexport */ navigable_container_menu; }); __webpack_require__.d(__webpack_exports__, "TabbableContainer", function() { return /* reexport */ tabbable; }); __webpack_require__.d(__webpack_exports__, "__experimentalNavigation", function() { return /* reexport */ Navigation; }); -__webpack_require__.d(__webpack_exports__, "__experimentalNavigationBackButton", function() { return /* reexport */ NavigationBackButton; }); +__webpack_require__.d(__webpack_exports__, "__experimentalNavigationBackButton", function() { return /* reexport */ back_button; }); __webpack_require__.d(__webpack_exports__, "__experimentalNavigationGroup", function() { return /* reexport */ NavigationGroup; }); __webpack_require__.d(__webpack_exports__, "__experimentalNavigationItem", function() { return /* reexport */ NavigationItem; }); __webpack_require__.d(__webpack_exports__, "__experimentalNavigationMenu", function() { return /* reexport */ NavigationMenu; }); @@ -17460,19 +17492,19 @@ var classnames = __webpack_require__(9); var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); // EXTERNAL MODULE: ./node_modules/reakit/es/CompositeState-3a25dcee.js -var CompositeState_3a25dcee = __webpack_require__(51); +var CompositeState_3a25dcee = __webpack_require__(52); // EXTERNAL MODULE: ./node_modules/reakit/es/Composite/Composite.js var Composite = __webpack_require__(122); // EXTERNAL MODULE: ./node_modules/reakit/es/_rollupPluginBabelHelpers-1f0bf8c2.js -var _rollupPluginBabelHelpers_1f0bf8c2 = __webpack_require__(16); +var _rollupPluginBabelHelpers_1f0bf8c2 = __webpack_require__(15); // EXTERNAL MODULE: ./node_modules/reakit-system/es/createComponent.js + 1 modules -var createComponent = __webpack_require__(50); +var createComponent = __webpack_require__(51); // EXTERNAL MODULE: ./node_modules/reakit-system/es/createHook.js + 4 modules -var createHook = __webpack_require__(49); +var createHook = __webpack_require__(50); // EXTERNAL MODULE: external {"this":"React"} var external_this_React_ = __webpack_require__(13); @@ -17511,7 +17543,7 @@ var Group = Object(createComponent["a" /* createComponent */])({ // EXTERNAL MODULE: ./node_modules/reakit/es/Id/Id.js -var Id = __webpack_require__(95); +var Id = __webpack_require__(96); // CONCATENATED MODULE: ./node_modules/reakit/es/Composite/CompositeGroup.js @@ -17603,7 +17635,7 @@ var external_this_wp_compose_ = __webpack_require__(10); var CompositeItem = __webpack_require__(123); // EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/tooltip/index.js -var build_module_tooltip = __webpack_require__(83); +var build_module_tooltip = __webpack_require__(84); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js var defineProperty = __webpack_require__(5); @@ -17746,7 +17778,7 @@ function getAlignmentIndex() { } // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/defineProperty.js -var helpers_defineProperty = __webpack_require__(283); +var helpers_defineProperty = __webpack_require__(285); var defineProperty_default = /*#__PURE__*/__webpack_require__.n(helpers_defineProperty); // CONCATENATED MODULE: ./node_modules/@emotion/memoize/dist/memoize.browser.esm.js @@ -17778,7 +17810,7 @@ var is_prop_valid_browser_esm_index = memoize_browser_esm(function (prop) { /* harmony default export */ var is_prop_valid_browser_esm = (is_prop_valid_browser_esm_index); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/inheritsLoose.js -var inheritsLoose = __webpack_require__(149); +var inheritsLoose = __webpack_require__(148); var inheritsLoose_default = /*#__PURE__*/__webpack_require__.n(inheritsLoose); // CONCATENATED MODULE: ./node_modules/@emotion/sheet/dist/sheet.browser.esm.js @@ -19698,7 +19730,8 @@ var DARK_GRAY = { 200: '#7e8993', 150: '#8d96a0', // Lightest gray that can be used for AA non-text contrast. - 100: '#8f98a1' + 100: '#8f98a1', + placeholder: rgba(G2.gray[900], 0.62) }; var DARK_OPACITY = { 900: rgba('#000510', 0.9), @@ -19734,7 +19767,8 @@ var LIGHT_GRAY = { // Good for "readonly" input fields and special text selection. 300: '#edeff0', 200: '#f3f4f5', - 100: '#f8f9f9' + 100: '#f8f9f9', + placeholder: rgba(BASE.white, 0.65) }; var LIGHT_OPACITY_LIGHT = { 900: rgba(BASE.white, 0.5), @@ -19862,7 +19896,7 @@ function colors_color(value) { /** * Allows users to opt-out of animations via OS-level preferences. * - * @param {string} prop CSS Property name + * @param {'transition' | 'animation' | string} [prop='transition'] CSS Property name * @return {string} Generated CSS code for the reduced style */ function reduceMotion() { @@ -20298,7 +20332,74 @@ function AlignmentMatrixControl(_ref) { AlignmentMatrixControl.Icon = AlignmentMatrixControlIcon; // EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/animate/index.js -var animate = __webpack_require__(135); +var animate = __webpack_require__(124); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/font-values.js +/* harmony default export */ var font_values = ({ + 'default.fontFamily': "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif", + 'default.fontSize': '13px', + 'helpText.fontSize': '12px', + mobileTextMinFontSize: '16px' +}); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/font.js +/** + * External dependencies + */ + +/** + * Internal dependencies + */ + + +/** + * + * @param {keyof FONT} value Path of value from `FONT` + * @return {string} Font rule value + */ + +function font(value) { + return Object(external_this_lodash_["get"])(font_values, value, ''); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/space.js +var SPACE_GRID_BASE = 8; +/** + * Creates a spacing CSS value (px) based on grid system values. + * + * @param {number} value Multiplier against the grid base value (8) + * @return {string} The spacing value (px). + */ + +function space() { + var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1; + if (isNaN(value)) return "".concat(SPACE_GRID_BASE, "px"); + return "".concat(SPACE_GRID_BASE * value, "px"); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/base-control/styles/base-control-styles.js + + +/** + * Internal dependencies + */ + +var base_control_styles_Wrapper = styled_base_browser_esm("div", { + target: "e1puf3u0", + label: "Wrapper" +})("font-family:", font('default.fontFamily'), ";font-size:", font('default.fontSize'), ";" + ( true ? "" : undefined)); +var StyledField = styled_base_browser_esm("div", { + target: "e1puf3u1", + label: "StyledField" +})("margin-bottom:", space(1), ";.components-panel__row &{margin-bottom:inherit;}" + ( true ? "" : undefined)); +var StyledLabel = styled_base_browser_esm("label", { + target: "e1puf3u2", + label: "StyledLabel" +})("display:inline-block;margin-bottom:", space(1), ";" + ( true ? "" : undefined)); +var StyledHelp = styled_base_browser_esm("p", { + target: "e1puf3u3", + label: "StyledHelp" +})("margin-top:-", space(1), ";font-size:", font('helpText.fontSize'), ";font-style:normal;color:", colors_color('mediumGray.text'), ";" + ( true ? "" : undefined)); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/base-control/index.js @@ -20313,6 +20414,7 @@ var animate = __webpack_require__(135); + function BaseControl(_ref) { var id = _ref.id, label = _ref.label, @@ -20320,19 +20422,19 @@ function BaseControl(_ref) { help = _ref.help, className = _ref.className, children = _ref.children; - return Object(external_this_wp_element_["createElement"])("div", { + return Object(external_this_wp_element_["createElement"])(base_control_styles_Wrapper, { className: classnames_default()('components-base-control', className) - }, Object(external_this_wp_element_["createElement"])("div", { + }, Object(external_this_wp_element_["createElement"])(StyledField, { className: "components-base-control__field" }, label && id && (hideLabelFromVision ? Object(external_this_wp_element_["createElement"])(visually_hidden, { as: "label", htmlFor: id - }, label) : Object(external_this_wp_element_["createElement"])("label", { + }, label) : Object(external_this_wp_element_["createElement"])(StyledLabel, { className: "components-base-control__label", htmlFor: id }, label)), label && !id && (hideLabelFromVision ? Object(external_this_wp_element_["createElement"])(visually_hidden, { as: "label" - }, label) : Object(external_this_wp_element_["createElement"])(BaseControl.VisualLabel, null, label)), children), !!help && Object(external_this_wp_element_["createElement"])("p", { + }, label) : Object(external_this_wp_element_["createElement"])(BaseControl.VisualLabel, null, label)), children), !!help && Object(external_this_wp_element_["createElement"])(StyledHelp, { id: id + '__help', className: "components-base-control__help" }, help)); @@ -20413,7 +20515,7 @@ var reversedStyles = function reversedStyles(_ref5) { var Flex = styled_base_browser_esm("div", { target: "eboqfv50", label: "Flex" -})("box-sizing:border-box;display:flex;", flex_styles_alignStyle, ";", flex_styles_justifyStyle, ";", flex_styles_gapStyle, ";", reversedStyles, ";" + ( true ? "" : undefined)); +})("box-sizing:border-box;display:flex;width:100%;", flex_styles_alignStyle, " ", flex_styles_justifyStyle, " ", flex_styles_gapStyle, " ", reversedStyles, true ? "" : undefined); var Item = styled_base_browser_esm("div", { target: "eboqfv51", label: "Item" @@ -20663,7 +20765,9 @@ function _templateObject() { */ + var fontWeightNormal = "font-weight: 400;"; +var fontWeightMedium = "font-weight: 500;"; var fontWeightSemibold = "font-weight: 600;"; var text_mixins_title = "\n ".concat(fontWeightNormal, "\n"); var titleLarge = "\n\tfont-size: 32px;\n\tline-height: 40px;\n"; @@ -20678,8 +20782,9 @@ var bodySmall = "\n\tfont-size: 14px;\n\tline-height: 20px;\n"; var text_mixins_button = "\n ".concat(fontWeightSemibold, "\n font-size: 14px;\n line-height: 20px;\n"); var caption = "\n\t".concat(fontWeightNormal, "\n\tfont-size: 12px;\n\tline-height: 16px;\n"); var text_mixins_label = "\n\t".concat(fontWeightSemibold, "\n\tfont-size: 12px;\n\tline-height: 16px;\n"); +var sectionHeading = "\n\t".concat(fontWeightMedium, "\n\tfont-size: 11px;\n\tline-height: 1.4;\n\ttext-transform: uppercase;\n\tcolor: ").concat(G2.gray[700], "\n"); /** - * @typedef {'title.large'|'title.medium'|'title.small'|'subtitle'|'subtitle.small'|'body'|'body.large'|'body.small'|'button'|'caption'|'label'} TextVariant + * @typedef {'title.large'|'title.medium'|'title.small'|'subtitle'|'subtitle.small'|'body'|'body.large'|'body.small'|'button'|'caption'|'label'|'sectionheading'} TextVariant */ /** @@ -20722,6 +20827,9 @@ var text_mixins_variant = function variant() { case 'label': return text_mixins_label; + + case 'sectionheading': + return sectionHeading; } }; /** @@ -20786,8 +20894,8 @@ var input_control_styles_ref2 = true ? { styles: "z-index:1;" } : undefined; -var rootFocusedStyles = function rootFocusedStyles(_ref8) { - var isFocused = _ref8.isFocused; +var rootFocusedStyles = function rootFocusedStyles(_ref9) { + var isFocused = _ref9.isFocused; if (!isFocused) return ''; return input_control_styles_ref2; }; @@ -20802,8 +20910,13 @@ var input_control_styles_ref4 = true ? { styles: "align-items:flex-start;flex-direction:column-reverse;" } : undefined; -var rootLabelPositionStyles = function rootLabelPositionStyles(_ref9) { - var labelPosition = _ref9.labelPosition; +var input_control_styles_ref5 = true ? { + name: "x4dmss", + styles: "justify-content:space-between;" +} : undefined; + +var rootLabelPositionStyles = function rootLabelPositionStyles(_ref10) { + var labelPosition = _ref10.labelPosition; switch (labelPosition) { case 'top': @@ -20812,6 +20925,9 @@ var rootLabelPositionStyles = function rootLabelPositionStyles(_ref9) { case 'bottom': return input_control_styles_ref4; + case 'edge': + return input_control_styles_ref5; + default: return ''; } @@ -20820,42 +20936,53 @@ var rootLabelPositionStyles = function rootLabelPositionStyles(_ref9) { var input_control_styles_Root = /*#__PURE__*/styled_base_browser_esm(flex, { target: "e1cr7zh10", label: "Root" -})("position:relative;border-radius:2px;", rootFloatLabelStyles, ";", rootFocusedStyles, ";", rootLabelPositionStyles, ";" + ( true ? "" : undefined)); +})("position:relative;border-radius:2px;", rootFloatLabelStyles, " ", rootFocusedStyles, " ", rootLabelPositionStyles, true ? "" : undefined); -var input_control_styles_containerDisabledStyles = function containerDisabledStyles(_ref10) { - var disabled = _ref10.disabled; +var input_control_styles_containerDisabledStyles = function containerDisabledStyles(_ref11) { + var disabled = _ref11.disabled; var backgroundColor = disabled ? colors_color('ui.backgroundDisabled') : colors_color('ui.background'); return /*#__PURE__*/css_browser_esm({ backgroundColor: backgroundColor }, true ? "" : undefined); }; -var input_control_styles_ref5 = true ? { +var input_control_styles_ref6 = true ? { name: "8atqhb", styles: "width:100%;" } : undefined; -var containerWidthStyles = function containerWidthStyles(_ref11) { - var labelPosition = _ref11.labelPosition; +var input_control_styles_containerWidthStyles = function containerWidthStyles(_ref12) { + var __unstableInputWidth = _ref12.__unstableInputWidth, + labelPosition = _ref12.labelPosition; + if (!__unstableInputWidth) return input_control_styles_ref6; if (labelPosition === 'side') return ''; - return input_control_styles_ref5; + + if (labelPosition === 'edge') { + return /*#__PURE__*/css_browser_esm({ + flex: "0 0 ".concat(__unstableInputWidth) + }, true ? "" : undefined); + } + + return /*#__PURE__*/css_browser_esm({ + width: __unstableInputWidth + }, true ? "" : undefined); }; var Container = styled_base_browser_esm("div", { target: "e1cr7zh11", label: "Container" -})("align-items:center;box-sizing:border-box;border-radius:inherit;display:flex;flex:1;position:relative;", input_control_styles_containerDisabledStyles, ";", containerWidthStyles, ";" + ( true ? "" : undefined)); +})("align-items:center;box-sizing:border-box;border-radius:inherit;display:flex;flex:1;position:relative;", input_control_styles_containerDisabledStyles, " ", input_control_styles_containerWidthStyles, true ? "" : undefined); -var input_control_styles_disabledStyles = function disabledStyles(_ref12) { - var disabled = _ref12.disabled; +var input_control_styles_disabledStyles = function disabledStyles(_ref13) { + var disabled = _ref13.disabled; if (!disabled) return ''; return /*#__PURE__*/css_browser_esm({ color: colors_color('ui.textDisabled') }, true ? "" : undefined); }; -var input_control_styles_fontSizeStyles = function fontSizeStyles(_ref13) { - var size = _ref13.size; +var input_control_styles_fontSizeStyles = function fontSizeStyles(_ref14) { + var size = _ref14.size; var sizes = { default: '13px', small: '11px' @@ -20866,8 +20993,8 @@ var input_control_styles_fontSizeStyles = function fontSizeStyles(_ref13) { return /*#__PURE__*/css_browser_esm("font-size:", fontSizeMobile, ";@media ( min-width:600px ){font-size:", fontSize, ";}" + ( true ? "" : undefined)); }; -var input_control_styles_sizeStyles = function sizeStyles(_ref14) { - var size = _ref14.size; +var input_control_styles_sizeStyles = function sizeStyles(_ref15) { + var size = _ref15.size; var sizes = { default: { height: 30, @@ -20884,18 +21011,18 @@ var input_control_styles_sizeStyles = function sizeStyles(_ref14) { return /*#__PURE__*/css_browser_esm(style, true ? "" : undefined); }; -var input_control_styles_ref6 = true ? { +var input_control_styles_ref7 = true ? { name: "103r1kr", styles: "&::-webkit-input-placeholder{line-height:normal;}" } : undefined; var placeholderStyles = function placeholderStyles() { - return input_control_styles_ref6; + return input_control_styles_ref7; }; -var input_control_styles_dragStyles = function dragStyles(_ref15) { - var isDragging = _ref15.isDragging, - dragCursor = _ref15.dragCursor; +var input_control_styles_dragStyles = function dragStyles(_ref16) { + var isDragging = _ref16.isDragging, + dragCursor = _ref16.dragCursor; var defaultArrowStyles = ''; var activeDragCursorStyles = ''; @@ -20907,7 +21034,7 @@ var input_control_styles_dragStyles = function dragStyles(_ref15) { activeDragCursorStyles = /*#__PURE__*/css_browser_esm("&:active{cursor:", dragCursor, ";}" + ( true ? "" : undefined)); } - return /*#__PURE__*/css_browser_esm(defaultArrowStyles, ";", activeDragCursorStyles, ";" + ( true ? "" : undefined)); + return /*#__PURE__*/css_browser_esm(defaultArrowStyles, " ", activeDragCursorStyles, true ? "" : undefined); }; // TODO: Resolve need to use &&& to increase specificity // https://github.com/WordPress/gutenberg/issues/18483 @@ -20915,21 +21042,35 @@ var input_control_styles_dragStyles = function dragStyles(_ref15) { var input_control_styles_Input = styled_base_browser_esm("input", { target: "e1cr7zh12", label: "Input" -})("&&&{background-color:transparent;box-sizing:border-box;border:none;box-shadow:none !important;color:", colors_color('black'), ";display:block;margin:0;outline:none;padding-left:8px;padding-right:8px;width:100%;", input_control_styles_dragStyles, ";", input_control_styles_disabledStyles, ";", input_control_styles_fontSizeStyles, ";", input_control_styles_sizeStyles, ";", placeholderStyles, ";}" + ( true ? "" : undefined)); +})("&&&{background-color:transparent;box-sizing:border-box;border:none;box-shadow:none !important;color:", colors_color('black'), ";display:block;margin:0;outline:none;padding-left:8px;padding-right:8px;width:100%;", input_control_styles_dragStyles, " ", input_control_styles_disabledStyles, " ", input_control_styles_fontSizeStyles, " ", input_control_styles_sizeStyles, " ", placeholderStyles, "}" + ( true ? "" : undefined)); -var input_control_styles_ref7 = true ? { +var input_control_styles_ref8 = true ? { name: "8uhtka", styles: "overflow:hidden;text-overflow:ellipsis;white-space:nowrap;" } : undefined; var labelTruncation = function labelTruncation() { - return input_control_styles_ref7; + return input_control_styles_ref8; +}; + +var input_control_styles_labelPadding = function labelPadding(_ref17) { + var labelPosition = _ref17.labelPosition; + var paddingBottom = 4; + + if (labelPosition === 'edge' || labelPosition === 'side') { + paddingBottom = 0; + } + + return /*#__PURE__*/css_browser_esm({ + paddingTop: 0, + paddingBottom: paddingBottom + }, true ? "" : undefined); }; var BaseLabel = /*#__PURE__*/styled_base_browser_esm(build_module_text, { target: "e1cr7zh13", label: "BaseLabel" -})("&&&{box-sizing:border-box;color:currentColor;display:block;margin:0;max-width:100%;padding-bottom:4px;padding-top:0;z-index:1;", labelTruncation, ";}" + ( true ? "" : undefined)); +})("&&&{box-sizing:border-box;color:currentColor;display:block;margin:0;max-width:100%;z-index:1;", input_control_styles_labelPadding, " ", labelTruncation, "}" + ( true ? "" : undefined)); var input_control_styles_Label = function Label(props) { return Object(external_this_wp_element_["createElement"])(BaseLabel, Object(esm_extends["a" /* default */])({}, props, { @@ -20944,9 +21085,9 @@ var LabelWrapper = /*#__PURE__*/styled_base_browser_esm(flex_item, { styles: "max-width:calc( 100% - 10px );" } : undefined); -var input_control_styles_backdropFocusedStyles = function backdropFocusedStyles(_ref16) { - var disabled = _ref16.disabled, - isFocused = _ref16.isFocused; +var input_control_styles_backdropFocusedStyles = function backdropFocusedStyles(_ref18) { + var disabled = _ref18.disabled, + isFocused = _ref18.isFocused; var borderColor = isFocused ? colors_color('ui.borderFocus') : colors_color('ui.border'); var boxShadow = null; @@ -20969,7 +21110,7 @@ var input_control_styles_backdropFocusedStyles = function backdropFocusedStyles( var BackdropUI = styled_base_browser_esm("div", { target: "e1cr7zh15", label: "BackdropUI" -})("&&&{box-sizing:border-box;border-radius:inherit;bottom:0;left:0;margin:0;padding:0;pointer-events:none;position:absolute;right:0;top:0;", input_control_styles_backdropFocusedStyles, ";", rtl({ +})("&&&{box-sizing:border-box;border-radius:inherit;bottom:0;left:0;margin:0;padding:0;pointer-events:none;position:absolute;right:0;top:0;", input_control_styles_backdropFocusedStyles, " ", rtl({ paddingLeft: 2 }), "}" + ( true ? "" : undefined)); var Prefix = styled_base_browser_esm("span", { @@ -21071,12 +21212,14 @@ function useUniqueId(idProp) { } function InputBase(_ref, ref) { - var children = _ref.children, + var __unstableInputWidth = _ref.__unstableInputWidth, + children = _ref.children, className = _ref.className, _ref$disabled = _ref.disabled, disabled = _ref$disabled === void 0 ? false : _ref$disabled, _ref$hideLabelFromVis = _ref.hideLabelFromVision, hideLabelFromVision = _ref$hideLabelFromVis === void 0 ? false : _ref$hideLabelFromVis, + labelPosition = _ref.labelPosition, idProp = _ref.id, _ref$isFocused = _ref.isFocused, isFocused = _ref$isFocused === void 0 ? false : _ref$isFocused, @@ -21085,22 +21228,26 @@ function InputBase(_ref, ref) { _ref$size = _ref.size, size = _ref$size === void 0 ? 'default' : _ref$size, suffix = _ref.suffix, - props = Object(objectWithoutProperties["a" /* default */])(_ref, ["children", "className", "disabled", "hideLabelFromVision", "id", "isFocused", "label", "prefix", "size", "suffix"]); + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["__unstableInputWidth", "children", "className", "disabled", "hideLabelFromVision", "labelPosition", "id", "isFocused", "label", "prefix", "size", "suffix"]); var id = useUniqueId(idProp); return Object(external_this_wp_element_["createElement"])(input_control_styles_Root, Object(esm_extends["a" /* default */])({}, props, { className: className, isFocused: isFocused, + labelPosition: labelPosition, ref: ref }), Object(external_this_wp_element_["createElement"])(LabelWrapper, null, Object(external_this_wp_element_["createElement"])(label_Label, { className: "components-input-control__label", hideLabelFromVision: hideLabelFromVision, + labelPosition: labelPosition, htmlFor: id, size: size }, label)), Object(external_this_wp_element_["createElement"])(Container, { + __unstableInputWidth: __unstableInputWidth, className: "components-input-control__container", disabled: disabled, - isFocused: isFocused + isFocused: isFocused, + labelPosition: labelPosition }, prefix && Object(external_this_wp_element_["createElement"])(Prefix, { className: "components-input-control__prefix" }, prefix), children, suffix && Object(external_this_wp_element_["createElement"])(Suffix, { @@ -23639,7 +23786,7 @@ function includeStartEndHandlers(handlers, handlerKey, _nativeHandlers) { // EXTERNAL MODULE: external {"this":["wp","keycodes"]} -var external_this_wp_keycodes_ = __webpack_require__(19); +var external_this_wp_keycodes_ = __webpack_require__(18); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/input-control/utils.js /** @@ -23846,11 +23993,8 @@ function inputControlStateReducer(composedStateReducers) { break; case actionTypes.UPDATE: - if (payload.value !== state.value) { - nextState.value = payload.value; - nextState.isDirty = false; - } - + nextState.value = payload.value; + nextState.isDirty = false; break; /** @@ -23955,7 +24099,7 @@ function useInputControlStateReducer() { var change = createChangeEvent(actionTypes.CHANGE); - var inValidate = createChangeEvent(actionTypes.INVALIDATE); + var invalidate = createChangeEvent(actionTypes.INVALIDATE); var reset = createChangeEvent(actionTypes.RESET); var commit = createChangeEvent(actionTypes.COMMIT); var update = createChangeEvent(actionTypes.UPDATE); @@ -23972,7 +24116,7 @@ function useInputControlStateReducer() { drag: drag, dragEnd: dragEnd, dragStart: dragStart, - inValidate: inValidate, + invalidate: invalidate, pressDown: pressDown, pressEnter: pressEnter, pressUp: pressUp, @@ -24107,7 +24251,8 @@ function InputField(_ref, ref) { return state; } : _ref$stateReducer, valueProp = _ref.value, - props = Object(objectWithoutProperties["a" /* default */])(_ref, ["disabled", "dragDirection", "dragThreshold", "id", "isDragEnabled", "isFocused", "isPressEnterToChange", "onBlur", "onChange", "onDrag", "onDragEnd", "onDragStart", "onFocus", "onKeyDown", "onValidate", "size", "setIsFocused", "stateReducer", "value"]); + type = _ref.type, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["disabled", "dragDirection", "dragThreshold", "id", "isDragEnabled", "isFocused", "isPressEnterToChange", "onBlur", "onChange", "onDrag", "onDragEnd", "onDragStart", "onFocus", "onKeyDown", "onValidate", "size", "setIsFocused", "stateReducer", "value", "type"]); var _useInputControlState = useInputControlStateReducer(stateReducer, { isDragEnabled: isDragEnabled, @@ -24131,11 +24276,14 @@ function InputField(_ref, ref) { value = state.value, isDragging = state.isDragging, isDirty = state.isDirty; + var wasDirtyOnBlur = Object(external_this_wp_element_["useRef"])(false); var dragCursor = useDragCursor(isDragging, dragDirection); /* - * Syncs value state using the focus state to determine the direction. - * Without focus it updates the value from the props. With focus it - * propagates the value and event through onChange. + * Handles syncronization of external and internal value state. + * If not focused and did not hold a dirty value[1] on blur + * updates the value from the props. Otherwise if not holding + * a dirty value[1] propagates the value and event through onChange. + * [1] value is only made dirty if isPressEnterToChange is true */ use_update_effect(function () { @@ -24143,12 +24291,13 @@ function InputField(_ref, ref) { return; } - if (!isFocused) { + if (!isFocused && !wasDirtyOnBlur.current) { update(valueProp); } else if (!isDirty) { onChange(value, { event: _event }); + wasDirtyOnBlur.current = false; } }, [value, isDirty, isFocused, valueProp]); @@ -24161,12 +24310,10 @@ function InputField(_ref, ref) { */ if (isPressEnterToChange && isDirty) { + wasDirtyOnBlur.current = true; + if (!isValueEmpty(value)) { - handleOnCommit({ - target: { - value: value - } - }, event); + handleOnCommit(event); } else { reset(valueProp); } @@ -24187,14 +24334,10 @@ function InputField(_ref, ref) { var nextValue = event.target.value; try { - onValidate(nextValue, { - event: event - }); + onValidate(nextValue, event); commit(nextValue, event); } catch (err) { - invalidate(err, { - event: event - }); + invalidate(err, event); } }; @@ -24227,7 +24370,6 @@ function InputField(_ref, ref) { var distance = dragProps.distance, dragging = dragProps.dragging, event = dragProps.event; - if (!isDragEnabled) return; if (!distance) return; event.stopPropagation(); /** @@ -24252,7 +24394,30 @@ function InputField(_ref, ref) { threshold: dragThreshold, enabled: isDragEnabled }); - return Object(external_this_wp_element_["createElement"])(input_control_styles_Input, Object(esm_extends["a" /* default */])({}, props, dragGestureProps(), { + + var _ref2 = isDragEnabled ? dragGestureProps() : {}, + onMouseDown = _ref2.onMouseDown, + onTouchStart = _ref2.onTouchStart; + + var handleOnMouseDown = onMouseDown; + /* + * Works around the odd UA (e.g. Firefox) that does not focus inputs of + * type=number when their spinner arrows are pressed. + */ + + if (type === 'number') { + handleOnMouseDown = function handleOnMouseDown(event) { + if (event.target !== event.target.ownerDocument.activeElement) { + event.target.focus(); + } + + if (isDragEnabled) { + onMouseDown(event); + } + }; + } + + return Object(external_this_wp_element_["createElement"])(input_control_styles_Input, Object(esm_extends["a" /* default */])({}, props, { className: "components-input-control__input", disabled: disabled, dragCursor: dragCursor, @@ -24262,9 +24427,12 @@ function InputField(_ref, ref) { onChange: handleOnChange, onFocus: handleOnFocus, onKeyDown: handleOnKeyDown, + onMouseDown: handleOnMouseDown, + onTouchStart: onTouchStart, ref: ref, size: size, - value: value + value: value, + type: type })); } @@ -24306,6 +24474,7 @@ function InputControl(_ref, ref) { stateReducer = _ref$__unstableStateR === void 0 ? function (state) { return state; } : _ref$__unstableStateR, + __unstableInputWidth = _ref.__unstableInputWidth, className = _ref.className, _ref$disabled = _ref.disabled, disabled = _ref$disabled === void 0 ? false : _ref$disabled, @@ -24328,7 +24497,7 @@ function InputControl(_ref, ref) { size = _ref$size === void 0 ? 'default' : _ref$size, suffix = _ref.suffix, value = _ref.value, - props = Object(objectWithoutProperties["a" /* default */])(_ref, ["__unstableStateReducer", "className", "disabled", "hideLabelFromVision", "id", "isPressEnterToChange", "label", "labelPosition", "onChange", "onValidate", "onKeyDown", "prefix", "size", "suffix", "value"]); + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["__unstableStateReducer", "__unstableInputWidth", "className", "disabled", "hideLabelFromVision", "id", "isPressEnterToChange", "label", "labelPosition", "onChange", "onValidate", "onKeyDown", "prefix", "size", "suffix", "value"]); var _useState = Object(external_this_wp_element_["useState"])(false), _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), @@ -24338,6 +24507,7 @@ function InputControl(_ref, ref) { var id = input_control_useUniqueId(idProp); var classes = classnames_default()('components-input-control', className); return Object(external_this_wp_element_["createElement"])(input_base, { + __unstableInputWidth: __unstableInputWidth, className: classes, disabled: disabled, gap: 3, @@ -24712,11 +24882,11 @@ function NumberControl(_ref, ref) { } } /** - * Handles ENTER key press and submit + * Handles commit (ENTER key press or on blur if isPressEnterToChange) */ - if (type === inputControlActionTypes.PRESS_ENTER || type === inputControlActionTypes.SUBMIT) { + if (type === inputControlActionTypes.PRESS_ENTER || type === inputControlActionTypes.COMMIT) { state.value = roundClamp(currentValue, min, max); } @@ -24950,113 +25120,48 @@ function AnglePickerControl(_ref) { })))); } -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js -var classCallCheck = __webpack_require__(21); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js -var assertThisInitialized = __webpack_require__(15); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js -var createClass = __webpack_require__(20); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules -var inherits = __webpack_require__(22); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js -var possibleConstructorReturn = __webpack_require__(23); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js -var getPrototypeOf = __webpack_require__(17); - // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules -var toConsumableArray = __webpack_require__(18); +var toConsumableArray = __webpack_require__(17); // EXTERNAL MODULE: external {"this":["wp","richText"]} var external_this_wp_richText_ = __webpack_require__(25); // EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/button/index.js -var build_module_button = __webpack_require__(36); +var build_module_button = __webpack_require__(35); // EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/popover/index.js + 2 modules -var popover = __webpack_require__(115); +var popover = __webpack_require__(114); // EXTERNAL MODULE: external {"this":["wp","a11y"]} -var external_this_wp_a11y_ = __webpack_require__(52); +var external_this_wp_a11y_ = __webpack_require__(46); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/higher-order/with-spoken-messages/index.js - - - - - - -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; } - -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } - -/** - * External dependencies - */ - /** * WordPress dependencies */ - - /** - * A Higher Order Component used to be provide a unique instance ID by - * component. + * A Higher Order Component used to be provide speak and debounced speak + * functions. * - * @param {WPComponent} WrappedComponent The wrapped component. + * @see https://developer.wordpress.org/block-editor/packages/packages-a11y/#speak * - * @return {WPComponent} The component to be rendered. + * @param {WPComponent} Component The component to be wrapped. + * + * @return {WPComponent} The wrapped component. */ -/* harmony default export */ var with_spoken_messages = (Object(external_this_wp_compose_["createHigherOrderComponent"])(function (WrappedComponent) { - return /*#__PURE__*/function (_Component) { - Object(inherits["a" /* default */])(_class, _Component); - - var _super = _createSuper(_class); - - function _class() { - var _this; - - Object(classCallCheck["a" /* default */])(this, _class); - - _this = _super.apply(this, arguments); - _this.debouncedSpeak = Object(external_this_lodash_["debounce"])(_this.speak.bind(Object(assertThisInitialized["a" /* default */])(_this)), 500); - return _this; - } - - Object(createClass["a" /* default */])(_class, [{ - key: "speak", - value: function speak(message) { - var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'polite'; - - Object(external_this_wp_a11y_["speak"])(message, type); - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - this.debouncedSpeak.cancel(); - } - }, { - key: "render", - value: function render() { - return Object(external_this_wp_element_["createElement"])(WrappedComponent, Object(esm_extends["a" /* default */])({}, this.props, { - speak: this.speak, - debouncedSpeak: this.debouncedSpeak - })); - } - }]); - - return _class; - }(external_this_wp_element_["Component"]); +/* harmony default export */ var with_spoken_messages = (Object(external_this_wp_compose_["createHigherOrderComponent"])(function (Component) { + return function (props) { + return Object(external_this_wp_element_["createElement"])(Component, Object(esm_extends["a" /* default */])({}, props, { + speak: external_this_wp_a11y_["speak"], + debouncedSpeak: Object(external_this_wp_compose_["useDebounce"])(external_this_wp_a11y_["speak"], 500) + })); + }; }, 'withSpokenMessages')); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/autocomplete/index.js @@ -25064,16 +25169,6 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re - - - - - - -function autocomplete_createSuper(Derived) { var hasNativeReflectConstruct = autocomplete_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; } - -function autocomplete_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } - /** * External dependencies */ @@ -25125,7 +25220,7 @@ function autocomplete_isNativeReflectConstruct() { if (typeof Reflect === "undef * @callback FnGetOptionLabel * @param {CompleterOption} option a completer option. * - * @return {(string|Array.<(string|Component)>)} list of react components to render. + * @return {(string|Array.<(string|WPElement)>)} list of react components to render. */ /** @@ -25316,277 +25411,227 @@ var autocomplete_getAutoCompleterUI = function getAutoCompleterUI(autocompleter) return AutocompleterUI; }; -var autocomplete_Autocomplete = /*#__PURE__*/function (_Component) { - Object(inherits["a" /* default */])(Autocomplete, _Component); +function Autocomplete(_ref2) { + var children = _ref2.children, + isSelected = _ref2.isSelected, + record = _ref2.record, + onChange = _ref2.onChange, + onReplace = _ref2.onReplace, + completers = _ref2.completers, + debouncedSpeak = _ref2.debouncedSpeak; + var instanceId = Object(external_this_wp_compose_["useInstanceId"])(Autocomplete); - var _super = autocomplete_createSuper(Autocomplete); + var _useState3 = Object(external_this_wp_element_["useState"])(0), + _useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2), + selectedIndex = _useState4[0], + setSelectedIndex = _useState4[1]; - Object(createClass["a" /* default */])(Autocomplete, null, [{ - key: "getInitialState", - value: function getInitialState() { - return { - selectedIndex: 0, - filteredOptions: [], - filterValue: '', - autocompleter: null, - AutocompleterUI: null - }; - } - }]); + var _useState5 = Object(external_this_wp_element_["useState"])([]), + _useState6 = Object(slicedToArray["a" /* default */])(_useState5, 2), + filteredOptions = _useState6[0], + setFilteredOptions = _useState6[1]; - function Autocomplete() { - var _this; + var _useState7 = Object(external_this_wp_element_["useState"])(''), + _useState8 = Object(slicedToArray["a" /* default */])(_useState7, 2), + filterValue = _useState8[0], + setFilterValue = _useState8[1]; - Object(classCallCheck["a" /* default */])(this, Autocomplete); + var _useState9 = Object(external_this_wp_element_["useState"])(null), + _useState10 = Object(slicedToArray["a" /* default */])(_useState9, 2), + autocompleter = _useState10[0], + setAutocompleter = _useState10[1]; - _this = _super.apply(this, arguments); - _this.select = _this.select.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.reset = _this.reset.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onChangeOptions = _this.onChangeOptions.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.handleKeyDown = _this.handleKeyDown.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.state = _this.constructor.getInitialState(); - return _this; + var _useState11 = Object(external_this_wp_element_["useState"])(null), + _useState12 = Object(slicedToArray["a" /* default */])(_useState11, 2), + AutocompleterUI = _useState12[0], + setAutocompleterUI = _useState12[1]; + + function insertCompletion(replacement) { + var end = record.start; + var start = end - autocompleter.triggerPrefix.length - filterValue.length; + var toInsert = Object(external_this_wp_richText_["create"])({ + html: Object(external_this_wp_element_["renderToString"])(replacement) + }); + onChange(Object(external_this_wp_richText_["insert"])(record, toInsert, start, end)); } - Object(createClass["a" /* default */])(Autocomplete, [{ - key: "insertCompletion", - value: function insertCompletion(replacement) { - var _this$state = this.state, - autocompleter = _this$state.autocompleter, - filterValue = _this$state.filterValue; - var _this$props = this.props, - record = _this$props.record, - onChange = _this$props.onChange; - var end = record.start; - var start = end - autocompleter.triggerPrefix.length - filterValue.length; - var toInsert = Object(external_this_wp_richText_["create"])({ - html: Object(external_this_wp_element_["renderToString"])(replacement) - }); - onChange(Object(external_this_wp_richText_["insert"])(record, toInsert, start, end)); + function select(option) { + var _ref3 = autocompleter || {}, + getOptionCompletion = _ref3.getOptionCompletion; + + if (option.isDisabled) { + return; } - }, { - key: "select", - value: function select(option) { - var onReplace = this.props.onReplace; - var _this$state2 = this.state, - autocompleter = _this$state2.autocompleter, - filterValue = _this$state2.filterValue; - var _ref2 = autocompleter || {}, - getOptionCompletion = _ref2.getOptionCompletion; + if (getOptionCompletion) { + var completion = getOptionCompletion(option.value, filterValue); - if (option.isDisabled) { + var _ref4 = undefined === completion.action || undefined === completion.value ? { + action: 'insert-at-caret', + value: completion + } : completion, + action = _ref4.action, + value = _ref4.value; + + if ('replace' === action) { + onReplace([value]); + } else if ('insert-at-caret' === action) { + insertCompletion(value); + } + } // Reset autocomplete state after insertion rather than before + // so insertion events don't cause the completion menu to redisplay. + + + reset(); + } + + function reset() { + setSelectedIndex(0); + setFilteredOptions([]); + setFilterValue(''); + setAutocompleter(null); + setAutocompleterUI(null); + } + + function announce(options) { + if (!debouncedSpeak) { + return; + } + + if (!!options.length) { + debouncedSpeak(Object(external_this_wp_i18n_["sprintf"])( + /* translators: %d: number of results. */ + Object(external_this_wp_i18n_["_n"])('%d result found, use up and down arrow keys to navigate.', '%d results found, use up and down arrow keys to navigate.', options.length), options.length), 'assertive'); + } else { + debouncedSpeak(Object(external_this_wp_i18n_["__"])('No results.'), 'assertive'); + } + } + /** + * Load options for an autocompleter. + * + * @param {Array} options + */ + + + function onChangeOptions(options) { + setSelectedIndex(options.length === filteredOptions.length ? selectedIndex : 0); + setFilteredOptions(options); + announce(options); + } + + function handleKeyDown(event) { + if (!autocompleter) { + return; + } + + if (filteredOptions.length === 0) { + return; + } + + switch (event.keyCode) { + case external_this_wp_keycodes_["UP"]: + setSelectedIndex((selectedIndex === 0 ? filteredOptions.length : selectedIndex) - 1); + break; + + case external_this_wp_keycodes_["DOWN"]: + setSelectedIndex((selectedIndex + 1) % filteredOptions.length); + break; + + case external_this_wp_keycodes_["ESCAPE"]: + setAutocompleter(null); + setAutocompleterUI(null); + break; + + case external_this_wp_keycodes_["ENTER"]: + select(filteredOptions[selectedIndex]); + break; + + case external_this_wp_keycodes_["LEFT"]: + case external_this_wp_keycodes_["RIGHT"]: + reset(); return; - } - if (getOptionCompletion) { - var completion = getOptionCompletion(option.value, filterValue); - - var _ref3 = undefined === completion.action || undefined === completion.value ? { - action: 'insert-at-caret', - value: completion - } : completion, - action = _ref3.action, - value = _ref3.value; - - if ('replace' === action) { - onReplace([value]); - } else if ('insert-at-caret' === action) { - this.insertCompletion(value); - } - } // Reset autocomplete state after insertion rather than before - // so insertion events don't cause the completion menu to redisplay. - - - this.reset(); - } - }, { - key: "reset", - value: function reset() { - this.setState(this.constructor.getInitialState()); - } - }, { - key: "announce", - value: function announce(filteredOptions) { - var debouncedSpeak = this.props.debouncedSpeak; - - if (!debouncedSpeak) { + default: return; + } // Any handled keycode should prevent original behavior. This relies on + // the early return in the default case. + + + event.preventDefault(); + event.stopPropagation(); + } + + var textContent; + + if (Object(external_this_wp_richText_["isCollapsed"])(record)) { + textContent = Object(external_this_wp_richText_["getTextContent"])(Object(external_this_wp_richText_["slice"])(record, 0)); + } + + Object(external_this_wp_element_["useEffect"])(function () { + if (!textContent) { + return; + } + + var text = Object(external_this_lodash_["deburr"])(textContent); + var textAfterSelection = Object(external_this_wp_richText_["getTextContent"])(Object(external_this_wp_richText_["slice"])(record, undefined, Object(external_this_wp_richText_["getTextContent"])(record).length)); + var completer = Object(external_this_lodash_["find"])(completers, function (_ref5) { + var triggerPrefix = _ref5.triggerPrefix, + allowContext = _ref5.allowContext; + var index = text.lastIndexOf(triggerPrefix); + + if (index === -1) { + return false; } - if (!!filteredOptions.length) { - debouncedSpeak(Object(external_this_wp_i18n_["sprintf"])( - /* translators: %d: number of results. */ - Object(external_this_wp_i18n_["_n"])('%d result found, use up and down arrow keys to navigate.', '%d results found, use up and down arrow keys to navigate.', filteredOptions.length), filteredOptions.length), 'assertive'); - } else { - debouncedSpeak(Object(external_this_wp_i18n_["__"])('No results.'), 'assertive'); - } - } - /** - * Load options for an autocompleter. - * - * @param {Array} filteredOptions - */ - - }, { - key: "onChangeOptions", - value: function onChangeOptions(filteredOptions) { - var selectedIndex = filteredOptions.length === this.state.filteredOptions.length ? this.state.selectedIndex : 0; - this.setState({ - filteredOptions: filteredOptions, - selectedIndex: selectedIndex - }); - this.announce(filteredOptions); - } - }, { - key: "handleKeyDown", - value: function handleKeyDown(event) { - var _this$state3 = this.state, - autocompleter = _this$state3.autocompleter, - selectedIndex = _this$state3.selectedIndex, - filteredOptions = _this$state3.filteredOptions; - - if (!autocompleter) { - return; + if (allowContext && !allowContext(text.slice(0, index), textAfterSelection)) { + return false; } - if (filteredOptions.length === 0) { - return; - } + return /^\S*$/.test(text.slice(index + triggerPrefix.length)); + }); - var nextSelectedIndex; - - switch (event.keyCode) { - case external_this_wp_keycodes_["UP"]: - nextSelectedIndex = (selectedIndex === 0 ? filteredOptions.length : selectedIndex) - 1; - this.setState({ - selectedIndex: nextSelectedIndex - }); - break; - - case external_this_wp_keycodes_["DOWN"]: - nextSelectedIndex = (selectedIndex + 1) % filteredOptions.length; - this.setState({ - selectedIndex: nextSelectedIndex - }); - break; - - case external_this_wp_keycodes_["ESCAPE"]: - this.setState({ - autocompleter: null, - AutocompleterUI: null - }); - break; - - case external_this_wp_keycodes_["ENTER"]: - this.select(filteredOptions[selectedIndex]); - break; - - case external_this_wp_keycodes_["LEFT"]: - case external_this_wp_keycodes_["RIGHT"]: - this.reset(); - return; - - default: - return; - } // Any handled keycode should prevent original behavior. This relies on - // the early return in the default case. - - - event.preventDefault(); - event.stopPropagation(); + if (!completer) { + reset(); + return; } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - var _this$props2 = this.props, - record = _this$props2.record, - completers = _this$props2.completers; - var prevRecord = prevProps.record; - if (Object(external_this_wp_richText_["isCollapsed"])(record)) { - var text = Object(external_this_lodash_["deburr"])(Object(external_this_wp_richText_["getTextContent"])(Object(external_this_wp_richText_["slice"])(record, 0))); - var prevText = Object(external_this_lodash_["deburr"])(Object(external_this_wp_richText_["getTextContent"])(Object(external_this_wp_richText_["slice"])(prevRecord, 0))); + var safeTrigger = Object(external_this_lodash_["escapeRegExp"])(completer.triggerPrefix); + var match = text.match(new RegExp("".concat(safeTrigger, "(\\S*)$"))); + var query = match && match[1]; + setAutocompleter(completer); + setAutocompleterUI(function () { + return completer !== autocompleter ? autocomplete_getAutoCompleterUI(completer) : AutocompleterUI; + }); + setFilterValue(query); + }, [textContent]); - if (text !== prevText) { - var textAfterSelection = Object(external_this_wp_richText_["getTextContent"])(Object(external_this_wp_richText_["slice"])(record, undefined, Object(external_this_wp_richText_["getTextContent"])(record).length)); - var autocompleter = Object(external_this_lodash_["find"])(completers, function (_ref4) { - var triggerPrefix = _ref4.triggerPrefix, - allowContext = _ref4.allowContext; - var index = text.lastIndexOf(triggerPrefix); + var _ref6 = filteredOptions[selectedIndex] || {}, + _ref6$key = _ref6.key, + selectedKey = _ref6$key === void 0 ? '' : _ref6$key; - if (index === -1) { - return false; - } + var _ref7 = autocompleter || {}, + className = _ref7.className; - if (allowContext && !allowContext(text.slice(0, index), textAfterSelection)) { - return false; - } + var isExpanded = !!autocompleter && filteredOptions.length > 0; + var listBoxId = isExpanded ? "components-autocomplete-listbox-".concat(instanceId) : null; + var activeId = isExpanded ? "components-autocomplete-item-".concat(instanceId, "-").concat(selectedKey) : null; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, children({ + isExpanded: isExpanded, + listBoxId: listBoxId, + activeId: activeId, + onKeyDown: handleKeyDown + }), isSelected && AutocompleterUI && Object(external_this_wp_element_["createElement"])(AutocompleterUI, { + className: className, + filterValue: filterValue, + instanceId: instanceId, + listBoxId: listBoxId, + selectedIndex: selectedIndex, + onChangeOptions: onChangeOptions, + onSelect: select + })); +} - return /^\S*$/.test(text.slice(index + triggerPrefix.length)); - }); - - if (!autocompleter) { - this.reset(); - return; - } - - var safeTrigger = Object(external_this_lodash_["escapeRegExp"])(autocompleter.triggerPrefix); - var match = text.match(new RegExp("".concat(safeTrigger, "(\\S*)$"))); - var query = match && match[1]; - this.setState({ - autocompleter: autocompleter, - AutocompleterUI: autocompleter !== this.state.autocompleter ? autocomplete_getAutoCompleterUI(autocompleter) : this.state.AutocompleterUI, - filterValue: query - }); - } - } - } - }, { - key: "render", - value: function render() { - var _this$props3 = this.props, - children = _this$props3.children, - instanceId = _this$props3.instanceId, - isSelected = _this$props3.isSelected; - var _this$state4 = this.state, - autocompleter = _this$state4.autocompleter, - selectedIndex = _this$state4.selectedIndex, - filteredOptions = _this$state4.filteredOptions, - AutocompleterUI = _this$state4.AutocompleterUI, - filterValue = _this$state4.filterValue; - - var _ref5 = filteredOptions[selectedIndex] || {}, - _ref5$key = _ref5.key, - selectedKey = _ref5$key === void 0 ? '' : _ref5$key; - - var _ref6 = autocompleter || {}, - className = _ref6.className; - - var isExpanded = !!autocompleter && filteredOptions.length > 0; - var listBoxId = isExpanded ? "components-autocomplete-listbox-".concat(instanceId) : null; - var activeId = isExpanded ? "components-autocomplete-item-".concat(instanceId, "-").concat(selectedKey) : null; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, children({ - isExpanded: isExpanded, - listBoxId: listBoxId, - activeId: activeId, - onKeyDown: this.handleKeyDown - }), isSelected && AutocompleterUI && Object(external_this_wp_element_["createElement"])(AutocompleterUI, { - className: className, - filterValue: filterValue, - instanceId: instanceId, - listBoxId: listBoxId, - selectedIndex: selectedIndex, - onChangeOptions: this.onChangeOptions, - onSelect: this.select, - onReset: this.onReset - })); - } - }]); - - return Autocomplete; -}(external_this_wp_element_["Component"]); -/* harmony default export */ var autocomplete = (Object(external_this_wp_compose_["compose"])([with_spoken_messages, external_this_wp_compose_["withInstanceId"]])(autocomplete_Autocomplete)); +/* harmony default export */ var autocomplete = (with_spoken_messages(Autocomplete)); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/unit-control/styles/unit-control-styles.js @@ -25978,6 +26023,7 @@ function useControlledState(currentState) { */ + /** * Internal dependencies */ @@ -26005,7 +26051,7 @@ function UnitControl(_ref, ref) { _ref$isResetValueOnUn = _ref.isResetValueOnUnitChange, isResetValueOnUnitChange = _ref$isResetValueOnUn === void 0 ? false : _ref$isResetValueOnUn, _ref$isUnitSelectTabb = _ref.isUnitSelectTabbable, - isUnitSelectTabbable = _ref$isUnitSelectTabb === void 0 ? false : _ref$isUnitSelectTabb, + isUnitSelectTabbable = _ref$isUnitSelectTabb === void 0 ? true : _ref$isUnitSelectTabb, label = _ref.label, _ref$onChange = _ref.onChange, onChange = _ref$onChange === void 0 ? external_this_lodash_["noop"] : _ref$onChange, @@ -26030,14 +26076,10 @@ function UnitControl(_ref, ref) { }), _useControlledState2 = Object(slicedToArray["a" /* default */])(_useControlledState, 2), unit = _useControlledState2[0], - setUnit = _useControlledState2[1]; - /* - * Storing parsed unit changes to be applied during the onChange callback - * cycle. - */ + setUnit = _useControlledState2[1]; // Stores parsed value for hand-off in state reducer - var nextParsedUnitRef = Object(external_this_wp_element_["useRef"])(); + var refParsedValue = Object(external_this_wp_element_["useRef"])(null); var classes = classnames_default()('components-unit-control', className); var handleOnChange = function handleOnChange(next, changeProps) { @@ -26051,28 +26093,8 @@ function UnitControl(_ref, ref) { */ - var _getValidParsedUnit = getValidParsedUnit(next, units, value, unit), - _getValidParsedUnit2 = Object(slicedToArray["a" /* default */])(_getValidParsedUnit, 2), - parsedValue = _getValidParsedUnit2[0], - parsedUnit = _getValidParsedUnit2[1]; - - var nextParsedUnit = nextParsedUnitRef.current; - /* - * If we've noticed a (parsed) unit change, which would have been - * stored in nextParsedUnitRef, we'll update our local unit set, - * as well as fire the onUnitChange callback. - */ - - if (nextParsedUnit) { - onUnitChange(nextParsedUnit, changeProps); - setUnit(nextParsedUnit); // We have to reset this ref value to properly track new changes. - - nextParsedUnitRef.current = null; - } - - var nextUnit = nextParsedUnit || parsedUnit; - var nextValue = "".concat(parsedValue).concat(nextUnit); - onChange(nextValue, changeProps); + next = getValidParsedUnit(next, units, value, unit).join(''); + onChange(next, changeProps); }; var handleOnUnitChange = function handleOnUnitChange(next, changeProps) { @@ -26087,6 +26109,43 @@ function UnitControl(_ref, ref) { onUnitChange(next, changeProps); setUnit(next); }; + + var mayUpdateUnit = function mayUpdateUnit(event) { + if (!isNaN(event.target.value)) { + refParsedValue.current = null; + return; + } + + var _getValidParsedUnit = getValidParsedUnit(event.target.value, units, value, unit), + _getValidParsedUnit2 = Object(slicedToArray["a" /* default */])(_getValidParsedUnit, 2), + parsedValue = _getValidParsedUnit2[0], + parsedUnit = _getValidParsedUnit2[1]; + + refParsedValue.current = parsedValue; + + if (isPressEnterToChange && parsedUnit !== unit) { + var data = units.find(function (option) { + return option.value === parsedUnit; + }); + var changeProps = { + event: event, + data: data + }; + onChange("".concat(parsedValue).concat(parsedUnit), changeProps); + onUnitChange(parsedUnit, changeProps); + setUnit(parsedUnit); + } + }; + + var handleOnBlur = mayUpdateUnit; + + var handleOnKeyDown = function handleOnKeyDown(event) { + var keyCode = event.keyCode; + + if (keyCode === external_this_wp_keycodes_["ENTER"]) { + mayUpdateUnit(event); + } + }; /** * "Middleware" function that intercepts updates from InputControl. * This allows us to tap into actions to transform the (next) state for @@ -26099,39 +26158,15 @@ function UnitControl(_ref, ref) { var unitControlStateReducer = function unitControlStateReducer(state, action) { - var type = action.type, - payload = action.payload; - var event = payload === null || payload === void 0 ? void 0 : payload.event; /* - * Customizes the commit interaction. - * - * This occurs when pressing ENTER to fire a change. - * By intercepting the state change, we can parse the incoming - * value to determine if the unit needs to be updated. + * On commits (when pressing ENTER and on blur if + * isPressEnterToChange is true), if a parse has been performed + * then use that result to update the state. */ - - if (type === inputControlActionTypes.COMMIT) { - var _event$target; - - var valueToParse = event === null || event === void 0 ? void 0 : (_event$target = event.target) === null || _event$target === void 0 ? void 0 : _event$target.value; - - var _getValidParsedUnit3 = getValidParsedUnit(valueToParse, units, value, unit), - _getValidParsedUnit4 = Object(slicedToArray["a" /* default */])(_getValidParsedUnit3, 2), - parsedValue = _getValidParsedUnit4[0], - parsedUnit = _getValidParsedUnit4[1]; - - state.value = parsedValue; // Update unit if the incoming parsed unit is different. - - if (unit !== parsedUnit) { - /* - * We start by storing the next parsedUnit value in our - * nextParsedUnitRef. We can't set the unit during this - * stateReducer callback as it cause state update - * conflicts within React's render cycle. - * - * https://github.com/facebook/react/issues/18178 - */ - nextParsedUnitRef.current = parsedUnit; + if (action.type === inputControlActionTypes.COMMIT) { + if (refParsedValue.current !== null) { + state.value = refParsedValue.current; + refParsedValue.current = null; } } @@ -26159,6 +26194,8 @@ function UnitControl(_ref, ref) { disableUnits: disableUnits, isPressEnterToChange: isPressEnterToChange, label: label, + onBlur: handleOnBlur, + onKeyDown: handleOnKeyDown, onChange: handleOnChange, ref: ref, size: size, @@ -26806,10 +26843,10 @@ function getSide(side, value) { } // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/link.js -var library_link = __webpack_require__(184); +var library_link = __webpack_require__(186); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/link-off.js -var link_off = __webpack_require__(217); +var link_off = __webpack_require__(218); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/box-control/linked-button.js @@ -27258,21 +27295,6 @@ var context_useCardContext = function useCardContext() { return Object(external_this_wp_element_["useContext"])(CardContext); }; -// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/space.js -var SPACE_GRID_BASE = 8; -/** - * Creates a spacing CSS value (px) based on grid system values. - * - * @param {number} value Multiplier against the grid base value (8) - * @return {string} The spacing value (px). - */ - -function space() { - var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1; - if (isNaN(value)) return "".concat(SPACE_GRID_BASE, "px"); - return "".concat(SPACE_GRID_BASE * value, "px"); -} - // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/card/styles/card-styles.js @@ -27548,10 +27570,10 @@ function CardMedia(props) { /* harmony default export */ var media = (CardMedia); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/icon/index.js -var build_module_icon = __webpack_require__(142); +var build_module_icon = __webpack_require__(141); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/check.js -var check = __webpack_require__(158); +var check = __webpack_require__(161); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/checkbox-control/index.js @@ -27670,7 +27692,22 @@ function ClipboardButton(_ref) { }), children); } -// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/color-indicator/index.js +// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/edit.js + 1 modules +var edit = __webpack_require__(274); + +// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/close.js +var library_close = __webpack_require__(160); + +// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-up.js +var chevron_up = __webpack_require__(314); + +// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-down.js +var chevron_down = __webpack_require__(315); + +// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/plus.js +var plus = __webpack_require__(209); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/dropdown/index.js @@ -27679,21 +27716,219 @@ function ClipboardButton(_ref) { * External dependencies */ +/** + * WordPress dependencies + */ -var color_indicator_ColorIndicator = function ColorIndicator(_ref) { - var className = _ref.className, - colorValue = _ref.colorValue, - props = Object(objectWithoutProperties["a" /* default */])(_ref, ["className", "colorValue"]); - return Object(external_this_wp_element_["createElement"])("span", Object(esm_extends["a" /* default */])({ - className: classnames_default()('component-color-indicator', className), - style: { - background: colorValue +/** + * Internal dependencies + */ + + + +function useObservableState(initialState, onStateChange) { + var _useState = Object(external_this_wp_element_["useState"])(initialState), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + state = _useState2[0], + setState = _useState2[1]; + + return [state, function (value) { + setState(value); + + if (onStateChange) { + onStateChange(value); } - }, props)); -}; + }]; +} -/* harmony default export */ var color_indicator = (color_indicator_ColorIndicator); +function Dropdown(_ref) { + var _popoverProps$anchorR; + + var renderContent = _ref.renderContent, + renderToggle = _ref.renderToggle, + _ref$position = _ref.position, + position = _ref$position === void 0 ? 'bottom right' : _ref$position, + className = _ref.className, + contentClassName = _ref.contentClassName, + expandOnMobile = _ref.expandOnMobile, + headerTitle = _ref.headerTitle, + focusOnMount = _ref.focusOnMount, + popoverProps = _ref.popoverProps, + onClose = _ref.onClose, + onToggle = _ref.onToggle; + var containerRef = Object(external_this_wp_element_["useRef"])(); + + var _useObservableState = useObservableState(false, onToggle), + _useObservableState2 = Object(slicedToArray["a" /* default */])(_useObservableState, 2), + isOpen = _useObservableState2[0], + setIsOpen = _useObservableState2[1]; + + Object(external_this_wp_element_["useEffect"])(function () { + return function () { + if (onToggle) { + onToggle(false); + } + }; + }, []); + + function toggle() { + setIsOpen(!isOpen); + } + /** + * Closes the dropdown if a focus leaves the dropdown wrapper. This is + * intentionally distinct from `onClose` since focus loss from the popover + * is expected to occur when using the Dropdown's toggle button, in which + * case the correct behavior is to keep the dropdown closed. The same applies + * in case when focus is moved to the modal dialog. + */ + + + function closeIfFocusOutside() { + var ownerDocument = containerRef.current.ownerDocument; + + if (!containerRef.current.contains(ownerDocument.activeElement) && !ownerDocument.activeElement.closest('[role="dialog"]')) { + close(); + } + } + + function close() { + if (onClose) { + onClose(); + } + + setIsOpen(false); + } + + var args = { + isOpen: isOpen, + onToggle: toggle, + onClose: close + }; + return Object(external_this_wp_element_["createElement"])("div", { + className: classnames_default()('components-dropdown', className), + ref: containerRef + }, renderToggle(args), isOpen && Object(external_this_wp_element_["createElement"])(popover["a" /* default */], Object(esm_extends["a" /* default */])({ + position: position, + onClose: close, + onFocusOutside: closeIfFocusOutside, + expandOnMobile: expandOnMobile, + headerTitle: headerTitle, + focusOnMount: focusOnMount + }, popoverProps, { + anchorRef: (_popoverProps$anchorR = popoverProps === null || popoverProps === void 0 ? void 0 : popoverProps.anchorRef) !== null && _popoverProps$anchorR !== void 0 ? _popoverProps$anchorR : containerRef.current, + className: classnames_default()('components-dropdown__content', popoverProps ? popoverProps.className : undefined, contentClassName) + }), renderContent(args))); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/circular-option-picker/index.js + + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + + + + + +function Option(_ref) { + var className = _ref.className, + isSelected = _ref.isSelected, + selectedIconProps = _ref.selectedIconProps, + tooltipText = _ref.tooltipText, + additionalProps = Object(objectWithoutProperties["a" /* default */])(_ref, ["className", "isSelected", "selectedIconProps", "tooltipText"]); + + var optionButton = Object(external_this_wp_element_["createElement"])(build_module_button["a" /* default */], Object(esm_extends["a" /* default */])({ + isPressed: isSelected, + className: classnames_default()(className, 'components-circular-option-picker__option') + }, additionalProps)); + return Object(external_this_wp_element_["createElement"])("div", { + className: "components-circular-option-picker__option-wrapper" + }, tooltipText ? Object(external_this_wp_element_["createElement"])(build_module_tooltip["a" /* default */], { + text: tooltipText + }, optionButton) : optionButton, isSelected && Object(external_this_wp_element_["createElement"])(build_module_icon["a" /* default */], Object(esm_extends["a" /* default */])({ + icon: check["a" /* default */] + }, selectedIconProps ? selectedIconProps : {}))); +} + +function DropdownLinkAction(_ref2) { + var buttonProps = _ref2.buttonProps, + className = _ref2.className, + dropdownProps = _ref2.dropdownProps, + linkText = _ref2.linkText; + return Object(external_this_wp_element_["createElement"])(Dropdown, Object(esm_extends["a" /* default */])({ + className: classnames_default()('components-circular-option-picker__dropdown-link-action', className), + renderToggle: function renderToggle(_ref3) { + var isOpen = _ref3.isOpen, + onToggle = _ref3.onToggle; + return Object(external_this_wp_element_["createElement"])(build_module_button["a" /* default */], Object(esm_extends["a" /* default */])({ + "aria-expanded": isOpen, + "aria-haspopup": "true", + onClick: onToggle, + isLink: true + }, buttonProps), linkText); + } + }, dropdownProps)); +} + +function ButtonAction(_ref4) { + var className = _ref4.className, + children = _ref4.children, + additionalProps = Object(objectWithoutProperties["a" /* default */])(_ref4, ["className", "children"]); + + return Object(external_this_wp_element_["createElement"])(build_module_button["a" /* default */], Object(esm_extends["a" /* default */])({ + className: classnames_default()('components-circular-option-picker__clear', className), + isSmall: true, + isSecondary: true + }, additionalProps), children); +} + +function CircularOptionPicker(_ref5) { + var actions = _ref5.actions, + className = _ref5.className, + options = _ref5.options, + children = _ref5.children; + return Object(external_this_wp_element_["createElement"])("div", { + className: classnames_default()('components-circular-option-picker', className) + }, Object(external_this_wp_element_["createElement"])("div", { + className: "components-circular-option-picker__swatches" + }, options), children, actions && Object(external_this_wp_element_["createElement"])("div", { + className: "components-circular-option-picker__custom-clear-wrapper" + }, actions)); +} +CircularOptionPicker.Option = Option; +CircularOptionPicker.ButtonAction = ButtonAction; +CircularOptionPicker.DropdownLinkAction = DropdownLinkAction; + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js +var classCallCheck = __webpack_require__(21); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js +var createClass = __webpack_require__(22); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +var assertThisInitialized = __webpack_require__(16); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules +var inherits = __webpack_require__(23); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +var possibleConstructorReturn = __webpack_require__(24); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +var getPrototypeOf = __webpack_require__(19); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/color-picker/utils.js /** @@ -27997,9 +28232,9 @@ function KeyboardShortcuts(_ref2) { -function alpha_createSuper(Derived) { var hasNativeReflectConstruct = alpha_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; } +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; } -function alpha_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } /** * Parts of this source were derived and modified from react-color, @@ -28049,7 +28284,7 @@ function alpha_isNativeReflectConstruct() { if (typeof Reflect === "undefined" | var alpha_Alpha = /*#__PURE__*/function (_Component) { Object(inherits["a" /* default */])(Alpha, _Component); - var _super = alpha_createSuper(Alpha); + var _super = _createSuper(Alpha); function Alpha() { var _this; @@ -28469,9 +28704,6 @@ var hue_Hue = /*#__PURE__*/function (_Component) { }(external_this_wp_element_["Component"]); /* harmony default export */ var hue = (Object(external_this_wp_compose_["compose"])(external_this_wp_compose_["pure"], external_this_wp_compose_["withInstanceId"])(hue_Hue)); -// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-down.js -var chevron_down = __webpack_require__(312); - // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/text-control/index.js @@ -29423,7 +29655,7 @@ var color_picker_ColorPicker = /*#__PURE__*/function (_Component) { -// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/dropdown/index.js +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/color-edit/index.js @@ -29432,199 +29664,306 @@ var color_picker_ColorPicker = /*#__PURE__*/function (_Component) { * External dependencies */ + /** * WordPress dependencies */ + + /** * Internal dependencies */ -function useObservableState(initialState, onStateChange) { - var _useState = Object(external_this_wp_element_["useState"])(initialState), - _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), - state = _useState2[0], - setState = _useState2[1]; - return [state, function (value) { - setState(value); - if (onStateChange) { - onStateChange(value); - } - }]; -} -function Dropdown(_ref) { - var renderContent = _ref.renderContent, - renderToggle = _ref.renderToggle, - _ref$position = _ref.position, - position = _ref$position === void 0 ? 'bottom right' : _ref$position, - className = _ref.className, - contentClassName = _ref.contentClassName, - expandOnMobile = _ref.expandOnMobile, - headerTitle = _ref.headerTitle, - focusOnMount = _ref.focusOnMount, - popoverProps = _ref.popoverProps, - onClose = _ref.onClose, + + +function DropdownOpenOnMount(_ref) { + var shouldOpen = _ref.shouldOpen, + isOpen = _ref.isOpen, onToggle = _ref.onToggle; - var containerRef = Object(external_this_wp_element_["useRef"])(); - - var _useObservableState = useObservableState(false, onToggle), - _useObservableState2 = Object(slicedToArray["a" /* default */])(_useObservableState, 2), - isOpen = _useObservableState2[0], - setIsOpen = _useObservableState2[1]; - Object(external_this_wp_element_["useEffect"])(function () { - return function () { - if (onToggle) { - onToggle(false); - } - }; + if (shouldOpen && !isOpen) { + onToggle(); + } }, []); - - function toggle() { - setIsOpen(!isOpen); - } - /** - * Closes the dropdown if a focus leaves the dropdown wrapper. This is - * intentionally distinct from `onClose` since focus loss from the popover - * is expected to occur when using the Dropdown's toggle button, in which - * case the correct behavior is to keep the dropdown closed. The same applies - * in case when focus is moved to the modal dialog. - */ - - - function closeIfFocusOutside() { - var ownerDocument = containerRef.current.ownerDocument; - - if (!containerRef.current.contains(ownerDocument.activeElement) && !ownerDocument.activeElement.closest('[role="dialog"]')) { - close(); - } - } - - function close() { - if (onClose) { - onClose(); - } - - setIsOpen(false); - } - - var args = { - isOpen: isOpen, - onToggle: toggle, - onClose: close - }; - return Object(external_this_wp_element_["createElement"])("div", { - className: classnames_default()('components-dropdown', className), - ref: containerRef - }, renderToggle(args), isOpen && Object(external_this_wp_element_["createElement"])(popover["a" /* default */], Object(esm_extends["a" /* default */])({ - position: position, - onClose: close, - onFocusOutside: closeIfFocusOutside, - expandOnMobile: expandOnMobile, - headerTitle: headerTitle, - focusOnMount: focusOnMount - }, popoverProps, { - anchorRef: containerRef.current, - className: classnames_default()('components-dropdown__content', popoverProps ? popoverProps.className : undefined, contentClassName) - }), renderContent(args))); + return null; } -// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/circular-option-picker/index.js +function ColorOption(_ref2) { + var color = _ref2.color, + name = _ref2.name, + slug = _ref2.slug, + _onChange = _ref2.onChange, + onRemove = _ref2.onRemove, + onConfirm = _ref2.onConfirm, + _ref2$confirmLabel = _ref2.confirmLabel, + confirmLabel = _ref2$confirmLabel === void 0 ? Object(external_this_wp_i18n_["__"])('OK') : _ref2$confirmLabel, + _ref2$isEditingNameOn = _ref2.isEditingNameOnMount, + isEditingNameOnMount = _ref2$isEditingNameOn === void 0 ? false : _ref2$isEditingNameOn, + _ref2$isEditingColorO = _ref2.isEditingColorOnMount, + isEditingColorOnMount = _ref2$isEditingColorO === void 0 ? false : _ref2$isEditingColorO, + onCancel = _ref2.onCancel; + var _useState = Object(external_this_wp_element_["useState"])(false), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + isHover = _useState2[0], + setIsHover = _useState2[1]; + var _useState3 = Object(external_this_wp_element_["useState"])(false), + _useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2), + isFocused = _useState4[0], + setIsFocused = _useState4[1]; + var _useState5 = Object(external_this_wp_element_["useState"])(isEditingNameOnMount), + _useState6 = Object(slicedToArray["a" /* default */])(_useState5, 2), + isEditingName = _useState6[0], + setIsEditingName = _useState6[1]; -/** - * External dependencies - */ + var _useState7 = Object(external_this_wp_element_["useState"])(false), + _useState8 = Object(slicedToArray["a" /* default */])(_useState7, 2), + isShowingAdvancedPanel = _useState8[0], + setIsShowingAdvancedPanel = _useState8[1]; -/** - * WordPress dependencies - */ - - -/** - * Internal dependencies - */ - - - - - -function Option(_ref) { - var className = _ref.className, - isSelected = _ref.isSelected, - selectedIconProps = _ref.selectedIconProps, - tooltipText = _ref.tooltipText, - additionalProps = Object(objectWithoutProperties["a" /* default */])(_ref, ["className", "isSelected", "selectedIconProps", "tooltipText"]); - - var optionButton = Object(external_this_wp_element_["createElement"])(build_module_button["a" /* default */], Object(esm_extends["a" /* default */])({ - isPressed: isSelected, - className: classnames_default()(className, 'components-circular-option-picker__option') - }, additionalProps)); + var isShowingControls = isHover || isFocused || isEditingName || isShowingAdvancedPanel; return Object(external_this_wp_element_["createElement"])("div", { - className: "components-circular-option-picker__option-wrapper" - }, tooltipText ? Object(external_this_wp_element_["createElement"])(build_module_tooltip["a" /* default */], { - text: tooltipText - }, optionButton) : optionButton, isSelected && Object(external_this_wp_element_["createElement"])(build_module_icon["a" /* default */], Object(esm_extends["a" /* default */])({ - icon: check["a" /* default */] - }, selectedIconProps ? selectedIconProps : {}))); -} - -function DropdownLinkAction(_ref2) { - var buttonProps = _ref2.buttonProps, - className = _ref2.className, - dropdownProps = _ref2.dropdownProps, - linkText = _ref2.linkText; - return Object(external_this_wp_element_["createElement"])(Dropdown, Object(esm_extends["a" /* default */])({ - className: classnames_default()('components-circular-option-picker__dropdown-link-action', className), + tabIndex: 0, + className: classnames_default()('components-color-edit__color-option', { + 'is-hover': isHover && !isEditingName && !isShowingAdvancedPanel + }), + onMouseEnter: function onMouseEnter() { + return setIsHover(true); + }, + onMouseLeave: function onMouseLeave() { + return setIsHover(false); + }, + onFocus: function onFocus() { + return setIsFocused(true); + }, + onBlur: function onBlur() { + return setIsFocused(false); + }, + "aria-label": name ? // translators: %s: The name of the color e.g: "vivid red". + Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('Color: %s'), name) : // translators: %s: color hex code e.g: "#f00". + Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('Color code: %s'), color) + }, Object(external_this_wp_element_["createElement"])("div", { + className: "components-color-edit__color-option-main-area" + }, Object(external_this_wp_element_["createElement"])(Dropdown, { renderToggle: function renderToggle(_ref3) { var isOpen = _ref3.isOpen, onToggle = _ref3.onToggle; - return Object(external_this_wp_element_["createElement"])(build_module_button["a" /* default */], Object(esm_extends["a" /* default */])({ + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(DropdownOpenOnMount, { + shouldOpen: isEditingColorOnMount, + isOpen: isOpen, + onToggle: onToggle + }), Object(external_this_wp_element_["createElement"])(CircularOptionPicker.Option, { + style: { + backgroundColor: color, + color: color + }, "aria-expanded": isOpen, "aria-haspopup": "true", onClick: onToggle, - isLink: true - }, buttonProps), linkText); + "aria-label": Object(external_this_wp_i18n_["__"])('Edit color value') + })); + }, + renderContent: function renderContent() { + return Object(external_this_wp_element_["createElement"])(color_picker_ColorPicker, { + color: color, + onChangeComplete: function onChangeComplete(newColor) { + return _onChange({ + color: newColor.hex, + slug: slug, + name: name + }); + }, + disableAlpha: true + }); } - }, dropdownProps)); + }), !isEditingName && Object(external_this_wp_element_["createElement"])("div", { + className: "components-color-edit__color-option-color-name" + }, name), isEditingName && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(TextControl, { + className: "components-color-edit__color-option-color-name-input", + hideLabelFromVision: true, + onChange: function onChange(newColorName) { + return _onChange({ + color: color, + slug: Object(external_this_lodash_["kebabCase"])(newColorName), + name: newColorName + }); + }, + label: Object(external_this_wp_i18n_["__"])('Color name'), + placeholder: Object(external_this_wp_i18n_["__"])('Name'), + value: name + }), Object(external_this_wp_element_["createElement"])(build_module_button["a" /* default */], { + onClick: function onClick() { + setIsEditingName(false); + setIsFocused(false); + + if (onConfirm) { + onConfirm(); + } + }, + isPrimary: true + }, confirmLabel)), !isEditingName && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(build_module_button["a" /* default */], { + className: classnames_default()({ + 'components-color-edit__hidden-control': !isShowingControls + }), + icon: edit["a" /* default */], + label: Object(external_this_wp_i18n_["__"])('Edit color name'), + onClick: function onClick() { + return setIsEditingName(true); + } + }), Object(external_this_wp_element_["createElement"])(build_module_button["a" /* default */], { + className: classnames_default()({ + 'components-color-edit__hidden-control': !isShowingControls + }), + icon: library_close["a" /* default */], + label: Object(external_this_wp_i18n_["__"])('Remove color'), + onClick: onRemove + })), Object(external_this_wp_element_["createElement"])(build_module_button["a" /* default */], { + className: classnames_default()({ + 'components-color-edit__hidden-control': !isShowingControls + }), + icon: isShowingAdvancedPanel ? chevron_up["a" /* default */] : chevron_down["a" /* default */], + label: Object(external_this_wp_i18n_["__"])('Additional color settings'), + onClick: function onClick() { + if (isShowingAdvancedPanel) { + setIsFocused(false); + } + + setIsShowingAdvancedPanel(!isShowingAdvancedPanel); + }, + "aria-expanded": isShowingAdvancedPanel + })), onCancel && Object(external_this_wp_element_["createElement"])(build_module_button["a" /* default */], { + className: "components-color-edit__cancel-button", + onClick: onCancel + }, Object(external_this_wp_i18n_["__"])('Cancel')), isShowingAdvancedPanel && Object(external_this_wp_element_["createElement"])(TextControl, { + className: "components-color-edit__slug-input", + onChange: function onChange(newSlug) { + return _onChange({ + color: color, + slug: newSlug, + name: name + }); + }, + label: Object(external_this_wp_i18n_["__"])('Slug'), + value: slug + })); } -function ButtonAction(_ref4) { - var className = _ref4.className, - children = _ref4.children, - additionalProps = Object(objectWithoutProperties["a" /* default */])(_ref4, ["className", "children"]); +function ColorInserter(_ref4) { + var onInsert = _ref4.onInsert, + onCancel = _ref4.onCancel; - return Object(external_this_wp_element_["createElement"])(build_module_button["a" /* default */], Object(esm_extends["a" /* default */])({ - className: classnames_default()('components-circular-option-picker__clear', className), - isSmall: true, - isSecondary: true - }, additionalProps), children); + var _useState9 = Object(external_this_wp_element_["useState"])({ + color: '#fff', + name: '', + slug: '' + }), + _useState10 = Object(slicedToArray["a" /* default */])(_useState9, 2), + color = _useState10[0], + setColor = _useState10[1]; + + return Object(external_this_wp_element_["createElement"])(ColorOption, { + color: color.color, + name: color.name, + slug: color.slug, + onChange: setColor, + confirmLabel: Object(external_this_wp_i18n_["__"])('Save'), + onConfirm: function onConfirm() { + return onInsert(color); + }, + isEditingNameOnMount: true, + isEditingColorOnMount: true, + onCancel: onCancel + }); } -function CircularOptionPicker(_ref5) { - var actions = _ref5.actions, - className = _ref5.className, - options = _ref5.options, - children = _ref5.children; - return Object(external_this_wp_element_["createElement"])("div", { - className: classnames_default()('components-circular-option-picker', className) - }, Object(external_this_wp_element_["createElement"])("div", { - className: "components-circular-option-picker__swatches" - }, options), children, actions && Object(external_this_wp_element_["createElement"])("div", { - className: "components-circular-option-picker__custom-clear-wrapper" - }, actions)); +function ColorEdit(_ref5) { + var colors = _ref5.colors, + _onChange2 = _ref5.onChange, + emptyUI = _ref5.emptyUI; + + var _useState11 = Object(external_this_wp_element_["useState"])(false), + _useState12 = Object(slicedToArray["a" /* default */])(_useState11, 2), + isInsertingColor = _useState12[0], + setIsInsertingColor = _useState12[1]; + + return Object(external_this_wp_element_["createElement"])(base_control, null, Object(external_this_wp_element_["createElement"])("fieldset", null, Object(external_this_wp_element_["createElement"])("div", { + className: "components-color-edit__label-and-insert-container" + }, Object(external_this_wp_element_["createElement"])("legend", null, Object(external_this_wp_element_["createElement"])("div", null, Object(external_this_wp_element_["createElement"])(base_control.VisualLabel, null, Object(external_this_wp_i18n_["__"])('Color palette')))), !isInsertingColor && Object(external_this_wp_element_["createElement"])(build_module_button["a" /* default */], { + onClick: function onClick() { + setIsInsertingColor(true); + }, + className: "components-color-edit__insert-button", + icon: plus["a" /* default */] + })), Object(external_this_wp_element_["createElement"])("div", null, !Object(external_this_lodash_["isEmpty"])(colors) && colors.map(function (color, index) { + return Object(external_this_wp_element_["createElement"])(ColorOption, { + key: index, + color: color.color, + name: color.name, + slug: color.slug, + onChange: function onChange(newColor) { + _onChange2(colors.map(function (currentColor, currentIndex) { + if (currentIndex === index) { + return newColor; + } + + return currentColor; + })); + }, + onRemove: function onRemove() { + _onChange2(colors.filter(function (_currentColor, currentIndex) { + if (currentIndex === index) { + return false; + } + + return true; + })); + } + }); + }), isInsertingColor && Object(external_this_wp_element_["createElement"])(ColorInserter, { + onInsert: function onInsert(newColor) { + setIsInsertingColor(false); + + _onChange2([].concat(Object(toConsumableArray["a" /* default */])(colors || []), [newColor])); + }, + onCancel: function onCancel() { + return setIsInsertingColor(false); + } + }), !isInsertingColor && Object(external_this_lodash_["isEmpty"])(colors) && emptyUI))); } -CircularOptionPicker.Option = Option; -CircularOptionPicker.ButtonAction = ButtonAction; -CircularOptionPicker.DropdownLinkAction = DropdownLinkAction; + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/color-indicator/index.js + + + + +/** + * External dependencies + */ + + +var color_indicator_ColorIndicator = function ColorIndicator(_ref) { + var className = _ref.className, + colorValue = _ref.colorValue, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["className", "colorValue"]); + + return Object(external_this_wp_element_["createElement"])("span", Object(esm_extends["a" /* default */])({ + className: classnames_default()('component-color-indicator', className), + style: { + background: colorValue + } + }, props)); +}; + +/* harmony default export */ var color_indicator = (color_indicator_ColorIndicator); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/color-palette/index.js @@ -29712,6 +30051,9 @@ function ColorPalette(_ref) { }); } +// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/close-small.js +var close_small = __webpack_require__(159); + // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/form-token-field/token-input.js @@ -29812,7 +30154,7 @@ var token_input_TokenInput = /*#__PURE__*/function (_Component) { /* harmony default export */ var token_input = (token_input_TokenInput); // EXTERNAL MODULE: ./node_modules/dom-scroll-into-view/lib/index.js -var lib = __webpack_require__(126); +var lib = __webpack_require__(127); var lib_default = /*#__PURE__*/__webpack_require__.n(lib); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/form-token-field/suggestions-list.js @@ -29978,6 +30320,10 @@ suggestions_list_SuggestionsList.defaultProps = { +/** + * External dependencies + */ + /** * WordPress dependencies */ @@ -29986,6 +30332,8 @@ suggestions_list_SuggestionsList.defaultProps = { + + /** * Internal dependencies */ @@ -29994,6 +30342,8 @@ suggestions_list_SuggestionsList.defaultProps = { + + function ComboboxControl(_ref) { var _currentOption$label; @@ -30004,6 +30354,9 @@ function ComboboxControl(_ref) { onFilterValueChange = _ref.onFilterValueChange, hideLabelFromVision = _ref.hideLabelFromVision, help = _ref.help, + _ref$allowReset = _ref.allowReset, + allowReset = _ref$allowReset === void 0 ? true : _ref$allowReset, + className = _ref.className, _ref$messages = _ref.messages, messages = _ref$messages === void 0 ? { selected: Object(external_this_wp_i18n_["__"])('Item selected.') @@ -30108,11 +30461,9 @@ function ComboboxControl(_ref) { }; var onFocus = function onFocus() { - // Avoid focus loss when touching the container. - // TODO: TokenInput should preferably forward ref - inputContainer.current.input.focus(); setIsExpanded(true); onFilterValueChange(''); + setInputValue(''); }; var onBlur = function onBlur() { @@ -30124,6 +30475,11 @@ function ComboboxControl(_ref) { setInputValue(text); onFilterValueChange(text); setIsExpanded(true); + }; + + var handleOnReset = function handleOnReset() { + onChange(null); + inputContainer.current.input.focus(); }; // Announcements @@ -30143,7 +30499,7 @@ function ComboboxControl(_ref) { /* eslint-disable jsx-a11y/no-static-element-interactions */ return Object(external_this_wp_element_["createElement"])(base_control, { - className: "components-combobox-control", + className: classnames_default()(className, 'components-combobox-control'), tabIndex: "-1", label: label, id: "components-form-token-input-".concat(instanceId), @@ -30152,18 +30508,24 @@ function ComboboxControl(_ref) { }, Object(external_this_wp_element_["createElement"])("div", { className: "components-combobox-control__suggestions-container", tabIndex: "-1", - onFocus: onFocus, onKeyDown: onKeyDown - }, Object(external_this_wp_element_["createElement"])(token_input, { + }, Object(external_this_wp_element_["createElement"])(flex_Flex, null, Object(external_this_wp_element_["createElement"])(block, null, Object(external_this_wp_element_["createElement"])(token_input, { className: "components-combobox-control__input", instanceId: instanceId, ref: inputContainer, value: isExpanded ? inputValue : currentLabel, onBlur: onBlur, + onFocus: onFocus, isExpanded: isExpanded, selectedSuggestionIndex: matchingSuggestions.indexOf(selectedSuggestion), onChange: onInputChange - }), isExpanded && Object(external_this_wp_element_["createElement"])(suggestions_list, { + })), allowReset && Object(external_this_wp_element_["createElement"])(flex_item, null, Object(external_this_wp_element_["createElement"])(build_module_button["a" /* default */], { + className: "components-combobox-control__reset", + icon: close_small["a" /* default */], + disabled: !value, + onClick: handleOnReset, + label: Object(external_this_wp_i18n_["__"])('Reset') + }))), isExpanded && Object(external_this_wp_element_["createElement"])(suggestions_list, { instanceId: instanceId, match: { label: inputValue @@ -30183,7 +30545,7 @@ function ComboboxControl(_ref) { /* harmony default export */ var combobox_control = (ComboboxControl); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js -var objectWithoutPropertiesLoose = __webpack_require__(42); +var objectWithoutPropertiesLoose = __webpack_require__(43); // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js function inheritsLoose_inheritsLoose(subClass, superClass) { @@ -30196,7 +30558,7 @@ var prop_types = __webpack_require__(28); var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types); // EXTERNAL MODULE: ./node_modules/downshift/node_modules/react-is/index.js -var react_is = __webpack_require__(198); +var react_is = __webpack_require__(200); // CONCATENATED MODULE: ./node_modules/compute-scroll-into-view/dist/index.module.js function t(t){return null!=t&&"object"==typeof t&&1===t.nodeType}function index_module_e(t,e){return(!e||"hidden"!==t)&&"visible"!==t&&"clip"!==t}function n(t,n){if(t.clientHeighte||o>t&&l=e&&d>=n?o-t-r:l>e&&dn?l-e+i:0}/* harmony default export */ var index_module = (function(e,i){var o=window,l=i.scrollMode,d=i.block,u=i.inline,h=i.boundary,a=i.skipOverflowHiddenElements,c="function"==typeof h?h:function(t){return t!==h};if(!t(e))throw new TypeError("Invalid target");for(var f=document.scrollingElement||document.documentElement,s=[],p=e;t(p)&&c(p);){if((p=p.parentNode)===f){s.push(p);break}p===document.body&&n(p)&&!n(document.documentElement)||n(p,a)&&s.push(p)}for(var g=o.visualViewport?o.visualViewport.width:innerWidth,m=o.visualViewport?o.visualViewport.height:innerHeight,w=window.scrollX||pageXOffset,v=window.scrollY||pageYOffset,W=e.getBoundingClientRect(),b=W.height,H=W.width,y=W.top,M=W.right,E=W.bottom,V=W.left,x="start"===d||"nearest"===d?y:"end"===d?E:y+b/2,I="center"===u?V+H/2:"end"===u?M:V,C=[],T=0;T=0&&V>=0&&E<=m&&M<=g&&y>=R&&E<=Y&&V>=L&&M<=X)return C;var S=getComputedStyle(k),j=parseInt(S.borderLeftWidth,10),N=parseInt(S.borderTopWidth,10),q=parseInt(S.borderRightWidth,10),z=parseInt(S.borderBottomWidth,10),A=0,F=0,G="offsetWidth"in k?k.offsetWidth-k.clientWidth-j-q:0,J="offsetHeight"in k?k.offsetHeight-k.clientHeight-N-z:0;if(f===k)A="start"===d?x:"end"===d?x-m:"nearest"===d?index_module_r(v,v+m,m,N,z,v+x,v+x+b,b):x-m/2,F="start"===u?I:"center"===u?I-g/2:"end"===u?I-g:index_module_r(w,w+g,g,j,q,w+I,w+I+H,H),A=Math.max(0,A+v),F=Math.max(0,F+w);else{A="start"===d?x-R-N:"end"===d?x-Y+z+J:"nearest"===d?index_module_r(R,Y,D,N,z+J,x,x+b,b):x-(R+D/2)+J/2,F="start"===u?I-L-j:"center"===u?I-(L+O/2)+G/2:"end"===u?I-X+q+G:index_module_r(L,X,O,j,q+G,I,I+H,H);var K=k.scrollLeft,P=k.scrollTop;x+=P-(A=Math.max(0,Math.min(P+A,k.scrollHeight-D+J))),I+=K-(F=Math.max(0,Math.min(K+F,k.scrollWidth-O+G)))}C.push({el:k,top:A,left:F})}return C}); @@ -34459,14 +34821,14 @@ function CustomSelectControl(_ref3) { var dashicon = __webpack_require__(151); // EXTERNAL MODULE: ./node_modules/react-dates/initialize.js -var initialize = __webpack_require__(319); +var initialize = __webpack_require__(323); // EXTERNAL MODULE: external {"this":"moment"} var external_this_moment_ = __webpack_require__(44); var external_this_moment_default = /*#__PURE__*/__webpack_require__.n(external_this_moment_); // EXTERNAL MODULE: ./node_modules/react-dates/lib/components/DayPickerSingleDateController.js -var DayPickerSingleDateController = __webpack_require__(284); +var DayPickerSingleDateController = __webpack_require__(286); var DayPickerSingleDateController_default = /*#__PURE__*/__webpack_require__.n(DayPickerSingleDateController); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/date-time/date.js @@ -35075,7 +35437,7 @@ var date_time_DateTimePicker = /*#__PURE__*/function (_Component) { }(external_this_wp_element_["Component"]); // EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/icon/index.js -var components_build_module_icon = __webpack_require__(84); +var components_build_module_icon = __webpack_require__(85); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/select-control/styles/select-control-styles.js @@ -35735,7 +36097,7 @@ var draggable_Draggable = /*#__PURE__*/function (_Component) { /* harmony default export */ var draggable = (Object(external_this_wp_compose_["withSafeTimeout"])(draggable_Draggable)); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/upload.js -var upload = __webpack_require__(216); +var upload = __webpack_require__(217); // EXTERNAL MODULE: external {"this":["wp","isShallowEqual"]} var external_this_wp_isShallowEqual_ = __webpack_require__(64); @@ -36145,7 +36507,7 @@ function DropZoneComponent(_ref3) { /* harmony default export */ var drop_zone = (drop_zone_DropZone); // EXTERNAL MODULE: external {"this":["wp","deprecated"]} -var external_this_wp_deprecated_ = __webpack_require__(35); +var external_this_wp_deprecated_ = __webpack_require__(36); var external_this_wp_deprecated_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_deprecated_); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigable-container/container.js @@ -36578,7 +36940,24 @@ function DropdownMenu(_ref) { /* harmony default export */ var dropdown_menu = (DropdownMenu); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/external.js -var external = __webpack_require__(423); +var external = __webpack_require__(427); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/external-link/styles/external-link-styles.js + + +function external_link_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } + +/** + * WordPress dependencies + */ + +var StyledIcon = /*#__PURE__*/styled_base_browser_esm(build_module_icon["a" /* default */], { + target: "etxm6pv0", + label: "StyledIcon" +})( true ? { + name: "i8uvf3", + styles: "width:1.4em;height:1.4em;margin:-0.2em 0.1em 0;vertical-align:middle;fill:currentColor;" +} : undefined); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/external-link/index.js @@ -36603,6 +36982,7 @@ var external = __webpack_require__(423); */ + function ExternalLink(_ref, ref) { var href = _ref.href, children = _ref.children, @@ -36624,7 +37004,7 @@ function ExternalLink(_ref, ref) { as: "span" }, /* translators: accessibility text */ - Object(external_this_wp_i18n_["__"])('(opens in a new tab)')), Object(external_this_wp_element_["createElement"])(build_module_icon["a" /* default */], { + Object(external_this_wp_i18n_["__"])('(opens in a new tab)')), Object(external_this_wp_element_["createElement"])(StyledIcon, { icon: external["a" /* default */], className: "components-external-link__icon" })); @@ -36632,7 +37012,7 @@ function ExternalLink(_ref, ref) { /* harmony default export */ var external_link = (Object(external_this_wp_element_["forwardRef"])(ExternalLink)); // EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/higher-order/with-focus-outside/index.js -var with_focus_outside = __webpack_require__(114); +var with_focus_outside = __webpack_require__(113); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/focal-point-picker/styles/focal-point-picker-style.js @@ -37546,7 +37926,7 @@ var focusable_iframe_FocusableIframe = /*#__PURE__*/function (_Component) { })(focusable_iframe_FocusableIframe)); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/text-color.js -var text_color = __webpack_require__(424); +var text_color = __webpack_require__(428); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/range-control/utils.js @@ -39556,11 +39936,8 @@ form_token_field_FormTokenField.defaultProps = { }; /* harmony default export */ var form_token_field = (with_spoken_messages(Object(external_this_wp_compose_["withInstanceId"])(form_token_field_FormTokenField))); -// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/plus.js -var plus = __webpack_require__(208); - // EXTERNAL MODULE: ./node_modules/gradient-parser/build/node.js -var build_node = __webpack_require__(199); +var build_node = __webpack_require__(201); var node_default = /*#__PURE__*/__webpack_require__.n(build_node); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/custom-gradient-picker/constants.js @@ -40547,10 +40924,10 @@ function GradientPicker(_ref) { var isolated_event_container = __webpack_require__(136); // EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/higher-order/with-focus-return/index.js -var with_focus_return = __webpack_require__(134); +var with_focus_return = __webpack_require__(135); // EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/higher-order/with-constrained-tabbing/index.js -var with_constrained_tabbing = __webpack_require__(133); +var with_constrained_tabbing = __webpack_require__(134); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/modal/frame.js @@ -40711,9 +41088,6 @@ var frame_ModalFrame = /*#__PURE__*/function (_Component) { /* harmony default export */ var modal_frame = (Object(external_this_wp_compose_["compose"])([with_focus_return["a" /* default */], with_constrained_tabbing["a" /* default */], with_focus_outside["a" /* default */]])(frame_ModalFrame)); -// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/close.js -var library_close = __webpack_require__(157); - // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/modal/header.js @@ -41329,7 +41703,7 @@ function MenuGroup(_ref) { /* harmony default export */ var menu_group = (MenuGroup); // EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/shortcut/index.js -var build_module_shortcut = __webpack_require__(169); +var build_module_shortcut = __webpack_require__(172); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/menu-item/index.js @@ -41460,7 +41834,7 @@ function MenuItemsChoice(_ref) { } // EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/scroll-lock/index.js -var scroll_lock = __webpack_require__(163); +var scroll_lock = __webpack_require__(166); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigable-container/tabbable.js @@ -41774,7 +42148,7 @@ function Navigation(_ref) { } // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-left.js -var chevron_left = __webpack_require__(214); +var chevron_left = __webpack_require__(215); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigation/back-button/index.js @@ -41789,19 +42163,21 @@ var chevron_left = __webpack_require__(214); + /** * Internal dependencies */ -function NavigationBackButton(_ref) { + +function NavigationBackButton(_ref, ref) { var _navigationTree$getMe; var backButtonLabel = _ref.backButtonLabel, className = _ref.className, href = _ref.href, - _onClick = _ref.onClick, + onClick = _ref.onClick, parentMenu = _ref.parentMenu; var _useNavigationContext = context_useNavigationContext(), @@ -41810,18 +42186,30 @@ function NavigationBackButton(_ref) { var classes = classnames_default()('components-navigation__back-button', className); var parentMenuTitle = (_navigationTree$getMe = navigationTree.getMenu(parentMenu)) === null || _navigationTree$getMe === void 0 ? void 0 : _navigationTree$getMe.title; + + var handleOnClick = function handleOnClick(event) { + if (typeof onClick === 'function') { + onClick(event); + } + + if (parentMenu && !event.defaultPrevented) { + setActiveMenu(parentMenu, 'right'); + } + }; + return Object(external_this_wp_element_["createElement"])(MenuBackButtonUI, { className: classes, - isTertiary: true, href: href, - onClick: function onClick() { - return parentMenu ? setActiveMenu(parentMenu, 'right') : _onClick; - } + isTertiary: true, + ref: ref, + onClick: handleOnClick }, Object(external_this_wp_element_["createElement"])(build_module_icon["a" /* default */], { icon: chevron_left["a" /* default */] }), backButtonLabel || parentMenuTitle || Object(external_this_wp_i18n_["__"])('Back')); } +/* harmony default export */ var back_button = (Object(external_this_wp_element_["forwardRef"])(NavigationBackButton)); + // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigation/menu/context.js /** * WordPress dependencies @@ -41872,7 +42260,7 @@ function NavigationGroup(_ref) { } // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-right.js -var chevron_right = __webpack_require__(213); +var chevron_right = __webpack_require__(214); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigation/item/use-navigation-tree-item.js @@ -42049,7 +42437,8 @@ function NavigationMenu(props) { _props$menu = props.menu, menu = _props$menu === void 0 ? ROOT_MENU : _props$menu, parentMenu = props.parentMenu, - title = props.title; + title = props.title, + onBackButtonClick = props.onBackButtonClick; use_navigation_tree_menu_useNavigationTreeMenu(props); var _useNavigationContext = context_useNavigationContext(), @@ -42072,9 +42461,10 @@ function NavigationMenu(props) { value: context }, Object(external_this_wp_element_["createElement"])(MenuUI, { className: classes - }, parentMenu && Object(external_this_wp_element_["createElement"])(NavigationBackButton, { + }, (parentMenu || onBackButtonClick) && Object(external_this_wp_element_["createElement"])(back_button, { backButtonLabel: backButtonLabel, - parentMenu: parentMenu + parentMenu: parentMenu, + onClick: onBackButtonClick }), title && Object(external_this_wp_element_["createElement"])(MenuTitleUI, { as: "h2", className: "components-navigation__menu-title", @@ -42273,25 +42663,31 @@ function PanelHeader(_ref) { * External dependencies */ +/** + * WordPress dependencies + */ + + /** * Internal dependencies */ -function Panel(_ref) { +function Panel(_ref, ref) { var header = _ref.header, className = _ref.className, children = _ref.children; var classNames = classnames_default()(className, 'components-panel'); return Object(external_this_wp_element_["createElement"])("div", { - className: classNames + className: classNames, + ref: ref }, header && Object(external_this_wp_element_["createElement"])(panel_header, { label: header }), children); } -/* harmony default export */ var panel = (Panel); +/* harmony default export */ var panel = (Object(external_this_wp_element_["forwardRef"])(Panel)); // CONCATENATED MODULE: ./node_modules/react-merge-refs/dist/react-merge-refs.esm.js function mergeRefs(refs) { @@ -42308,9 +42704,6 @@ function mergeRefs(refs) { /* harmony default export */ var react_merge_refs_esm = (mergeRefs); -// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-up.js -var chevron_up = __webpack_require__(311); - // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/panel/body.js @@ -42345,7 +42738,9 @@ function PanelBody(_ref, ref) { _ref$onToggle = _ref.onToggle, onToggle = _ref$onToggle === void 0 ? external_this_lodash_["noop"] : _ref$onToggle, opened = _ref.opened, - title = _ref.title; + title = _ref.title, + _ref$scrollAfterOpen = _ref.scrollAfterOpen, + scrollAfterOpen = _ref$scrollAfterOpen === void 0 ? true : _ref$scrollAfterOpen; var _useControlledState = use_controlled_state(opened, { initial: initialOpen === undefined ? true : initialOpen @@ -42364,23 +42759,26 @@ function PanelBody(_ref, ref) { var next = !isOpened; setIsOpened(next); onToggle(next); - }; // Runs after initial render + }; // Ref is used so that the effect does not re-run upon scrollAfterOpen changing value + var scrollAfterOpenRef = Object(external_this_wp_element_["useRef"])(); + scrollAfterOpenRef.current = scrollAfterOpen; // Runs after initial render + use_update_effect(function () { - if (isOpened) { + var _nodeRef$current; + + if (isOpened && scrollAfterOpenRef.current && ((_nodeRef$current = nodeRef.current) === null || _nodeRef$current === void 0 ? void 0 : _nodeRef$current.scrollIntoView)) { /* * Scrolls the content into view when visible. * This improves the UX when there are multiple stacking * components in a scrollable container. */ - if (nodeRef.current.scrollIntoView) { - nodeRef.current.scrollIntoView({ - inline: 'nearest', - block: 'nearest', - behavior: scrollBehavior - }); - } + nodeRef.current.scrollIntoView({ + inline: 'nearest', + block: 'nearest', + behavior: scrollBehavior + }); } }, [isOpened, scrollBehavior]); var classes = classnames_default()('components-panel__body', className, { @@ -42394,7 +42792,9 @@ function PanelBody(_ref, ref) { isOpened: isOpened, onClick: handleOnToggle, title: title - }), isOpened && children); + }), typeof children === 'function' ? children({ + opened: isOpened + }) : isOpened && children); } var PanelBodyTitle = Object(external_this_wp_element_["forwardRef"])(function (_ref2, ref) { var isOpened = _ref2.isOpened, @@ -42786,10 +43186,10 @@ function QueryControls(_ref) { var es = __webpack_require__(81); // EXTERNAL MODULE: ./node_modules/reakit-utils/es/useLiveRef.js -var useLiveRef = __webpack_require__(46); +var useLiveRef = __webpack_require__(48); // EXTERNAL MODULE: ./node_modules/reakit-utils/es/createEvent.js -var createEvent = __webpack_require__(125); +var createEvent = __webpack_require__(126); // EXTERNAL MODULE: ./node_modules/reakit-warning/es/warning.js var warning = __webpack_require__(108); @@ -43378,7 +43778,7 @@ var resizer_Resizer = /** @class */ (function (_super) { // EXTERNAL MODULE: ./node_modules/fast-memoize/src/index.js -var fast_memoize_src = __webpack_require__(120); +var fast_memoize_src = __webpack_require__(119); var src_default = /*#__PURE__*/__webpack_require__.n(fast_memoize_src); // CONCATENATED MODULE: ./node_modules/re-resizable/lib/index.js @@ -44889,17 +45289,17 @@ sandbox_Sandbox = Object(external_this_wp_compose_["withGlobalEvents"])({ /* harmony default export */ var sandbox = (sandbox_Sandbox); // EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/snackbar/index.js -var snackbar = __webpack_require__(164); +var snackbar = __webpack_require__(167); // EXTERNAL MODULE: external {"this":"regeneratorRuntime"} -var external_this_regeneratorRuntime_ = __webpack_require__(24); +var external_this_regeneratorRuntime_ = __webpack_require__(20); var external_this_regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(external_this_regeneratorRuntime_); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js -var asyncToGenerator = __webpack_require__(47); +var asyncToGenerator = __webpack_require__(45); // EXTERNAL MODULE: ./node_modules/react-spring/web.cjs.js -var web_cjs = __webpack_require__(116); +var web_cjs = __webpack_require__(115); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/snackbar/list.js @@ -45164,6 +45564,98 @@ function TabPanel(_ref2) { }, children(selectedTab))); } +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/config-values.js +/* harmony default export */ var config_values = ({ + radiusBlockUi: '2px', + borderWidth: '1px', + borderWidthFocus: '1.5px', + borderWidthTab: '4px' +}); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/config.js +/** + * Internal dependencies + */ + +/** + * @param {keyof CONFIG} name The variable name + * @return {string} The variable + */ + +var config_config = function config(name) { + return config_values[name]; +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/input/base.js +/** + * External dependencies + */ + +/** + * Internal dependencies + */ + + + + +var inputStyleNeutral = /*#__PURE__*/css_browser_esm("box-shadow:0 0 0 transparent;transition:box-shadow 0.1s linear;border-radius:", config_config('radiusBlockUi'), ";border:", config_config('borderWidth'), " solid ", colors_color('ui.border'), ";", reduceMotion('transition'), ";label:inputStyleNeutral;" + ( true ? "" : undefined)); +var inputStyleFocus = /*#__PURE__*/css_browser_esm("border-color:var( --wp-admin-theme-color );box-shadow:0 0 0 calc( ", config_config('borderWidthFocus'), " - ", config_config('borderWidth'), " ) var( --wp-admin-theme-color );outline:2px solid transparent;;label:inputStyleFocus;" + ( true ? "" : undefined)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/breakpoint-values.js +/* harmony default export */ var breakpoint_values = ({ + huge: '1440px', + wide: '1280px', + 'x-large': '1080px', + large: '960px', + // admin sidebar auto folds + medium: '782px', + // adminbar goes big + small: '600px', + mobile: '480px', + 'zoomed-in': '280px' +}); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/breakpoint.js +/** + * Internal dependencies + */ + +/** + * @param {keyof breakpoints} point + * @return {string} Media query declaration. + */ + +var breakpoint_breakpoint = function breakpoint(point) { + return "@media (min-width: ".concat(breakpoint_values[point], ")"); +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/input/input-control.js +/** + * External dependencies + */ + +/** + * Internal dependencies + */ + + + + + +var inputControl = /*#__PURE__*/css_browser_esm("font-family:", font('default.fontFamily'), ";padding:6px 8px;", inputStyleNeutral, ";font-size:", font('mobileTextMinFontSize'), ";line-height:normal;", breakpoint_breakpoint('small'), "{font-size:", font('default.fontSize'), ";line-height:normal;}&:focus{", inputStyleFocus, "}&::-webkit-input-placeholder{color:", colors_color('darkGray.placeholder'), ";}&::-moz-placeholder{opacity:1;color:", colors_color('darkGray.placeholder'), ";}&:-ms-input-placeholder{color:", colors_color('darkGray.placeholder'), ";}.is-dark-theme &{&::-webkit-input-placeholder{color:", colors_color('lightGray.placeholder'), ";}&::-moz-placeholder{opacity:1;color:", colors_color('lightGray.placeholder'), ";}&:-ms-input-placeholder{color:", colors_color('lightGray.placeholder'), ";}};label:inputControl;" + ( true ? "" : undefined)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/textarea-control/styles/textarea-control-styles.js + + +/** + * Internal dependencies + */ + +var StyledTextarea = styled_base_browser_esm("textarea", { + target: "ebk7yr50", + label: "StyledTextarea" +})("width:100%;", inputControl, true ? "" : undefined); + // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/textarea-control/index.js @@ -45178,6 +45670,7 @@ function TabPanel(_ref2) { */ + function TextareaControl(_ref) { var label = _ref.label, hideLabelFromVision = _ref.hideLabelFromVision, @@ -45202,7 +45695,7 @@ function TextareaControl(_ref) { id: id, help: help, className: className - }, Object(external_this_wp_element_["createElement"])("textarea", Object(esm_extends["a" /* default */])({ + }, Object(external_this_wp_element_["createElement"])(StyledTextarea, Object(esm_extends["a" /* default */])({ className: "components-textarea-control__input", id: id, rows: rows, @@ -45584,7 +46077,7 @@ function ToolbarGroup(_ref) { /* harmony default export */ var toolbar_group = (ToolbarGroup); // EXTERNAL MODULE: ./node_modules/reakit/es/Toolbar/ToolbarState.js -var ToolbarState = __webpack_require__(170); +var ToolbarState = __webpack_require__(173); // CONCATENATED MODULE: ./node_modules/reakit/es/Toolbar/Toolbar.js @@ -46103,13 +46596,13 @@ function roving_tab_index_item_objectSpread(target) { for (var i = 1; i < argume })); // EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/index.js + 6 modules -var slot_fill = __webpack_require__(124); +var slot_fill = __webpack_require__(125); // EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/context.js + 1 modules -var slot_fill_context = __webpack_require__(128); +var slot_fill_context = __webpack_require__(129); // EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/use-slot.js -var use_slot = __webpack_require__(162); +var use_slot = __webpack_require__(165); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/higher-order/navigate-regions/index.js @@ -46435,7 +46928,7 @@ function withFilters(hookName) { } // EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/higher-order/with-focus-return/context.js -var with_focus_return_context = __webpack_require__(197); +var with_focus_return_context = __webpack_require__(199); // CONCATENATED MODULE: ./node_modules/@wordpress/components/node_modules/uuid/dist/esm-browser/rng.js // Unique ID creation requires a high quality random # generator. In the browser we therefore @@ -46750,6 +47243,7 @@ function with_notices_isNativeReflectConstruct() { if (typeof Reflect === "undef + // Higher-Order Components @@ -46765,8 +47259,41 @@ function with_notices_isNativeReflectConstruct() { if (typeof Reflect === "undef /***/ }), -/* 273 */, -/* 274 */, +/* 274 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; + +// EXTERNAL MODULE: external {"this":["wp","element"]} +var external_this_wp_element_ = __webpack_require__(0); + +// EXTERNAL MODULE: external {"this":["wp","primitives"]} +var external_this_wp_primitives_ = __webpack_require__(7); + +// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/pencil.js + + +/** + * WordPress dependencies + */ + +var pencil = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { + d: "M20.1 5.1L16.9 2 6.2 12.7l-1.3 4.4 4.5-1.3L20.1 5.1zM4 20.8h8v-1.5H4v1.5z" +})); +/* harmony default export */ var library_pencil = (pencil); + +// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/edit.js +/** + * Internal dependencies + */ + +/* harmony default export */ var edit = __webpack_exports__["a"] = (library_pencil); + + +/***/ }), /* 275 */, /* 276 */, /* 277 */, @@ -46775,7 +47302,9 @@ function with_notices_isNativeReflectConstruct() { if (typeof Reflect === "undef /* 280 */, /* 281 */, /* 282 */, -/* 283 */ +/* 283 */, +/* 284 */, +/* 285 */ /***/ (function(module, exports) { function _defineProperty(obj, key, value) { @@ -46796,7 +47325,7 @@ function _defineProperty(obj, key, value) { module.exports = _defineProperty; /***/ }), -/* 284 */ +/* 286 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -46810,7 +47339,7 @@ var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = [ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); -var _object = __webpack_require__(94); +var _object = __webpack_require__(95); var _object2 = _interopRequireDefault(_object); @@ -46822,21 +47351,21 @@ var _propTypes = __webpack_require__(28); var _propTypes2 = _interopRequireDefault(_propTypes); -var _reactMomentProptypes = __webpack_require__(146); +var _reactMomentProptypes = __webpack_require__(145); var _reactMomentProptypes2 = _interopRequireDefault(_reactMomentProptypes); -var _airbnbPropTypes = __webpack_require__(88); +var _airbnbPropTypes = __webpack_require__(89); var _moment = __webpack_require__(44); var _moment2 = _interopRequireDefault(_moment); -var _object3 = __webpack_require__(240); +var _object3 = __webpack_require__(241); var _object4 = _interopRequireDefault(_object3); -var _isTouchDevice = __webpack_require__(250); +var _isTouchDevice = __webpack_require__(251); var _isTouchDevice2 = _interopRequireDefault(_isTouchDevice); @@ -46846,45 +47375,45 @@ var _getPhrasePropTypes = __webpack_require__(111); var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes); -var _isSameDay = __webpack_require__(194); +var _isSameDay = __webpack_require__(196); var _isSameDay2 = _interopRequireDefault(_isSameDay); -var _isAfterDay = __webpack_require__(251); +var _isAfterDay = __webpack_require__(252); var _isAfterDay2 = _interopRequireDefault(_isAfterDay); -var _getVisibleDays = __webpack_require__(381); +var _getVisibleDays = __webpack_require__(385); var _getVisibleDays2 = _interopRequireDefault(_getVisibleDays); -var _isDayVisible = __webpack_require__(254); +var _isDayVisible = __webpack_require__(255); var _isDayVisible2 = _interopRequireDefault(_isDayVisible); -var _toISODateString = __webpack_require__(255); +var _toISODateString = __webpack_require__(256); var _toISODateString2 = _interopRequireDefault(_toISODateString); -var _toISOMonthString = __webpack_require__(195); +var _toISOMonthString = __webpack_require__(197); var _toISOMonthString2 = _interopRequireDefault(_toISOMonthString); -var _ScrollableOrientationShape = __webpack_require__(147); +var _ScrollableOrientationShape = __webpack_require__(146); var _ScrollableOrientationShape2 = _interopRequireDefault(_ScrollableOrientationShape); -var _DayOfWeekShape = __webpack_require__(159); +var _DayOfWeekShape = __webpack_require__(162); var _DayOfWeekShape2 = _interopRequireDefault(_DayOfWeekShape); -var _CalendarInfoPositionShape = __webpack_require__(256); +var _CalendarInfoPositionShape = __webpack_require__(257); var _CalendarInfoPositionShape2 = _interopRequireDefault(_CalendarInfoPositionShape); var _constants = __webpack_require__(78); -var _DayPicker = __webpack_require__(382); +var _DayPicker = __webpack_require__(386); var _DayPicker2 = _interopRequireDefault(_DayPicker); @@ -47844,8 +48373,6 @@ DayPickerSingleDateController.propTypes = propTypes; DayPickerSingleDateController.defaultProps = defaultProps; /***/ }), -/* 285 */, -/* 286 */, /* 287 */, /* 288 */, /* 289 */, @@ -47870,7 +48397,10 @@ DayPickerSingleDateController.defaultProps = defaultProps; /* 308 */, /* 309 */, /* 310 */, -/* 311 */ +/* 311 */, +/* 312 */, +/* 313 */, +/* 314 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -47894,7 +48424,7 @@ var chevronUp = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEl /***/ }), -/* 312 */ +/* 315 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -47918,12 +48448,13 @@ var chevronDown = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["create /***/ }), -/* 313 */, -/* 314 */, -/* 315 */, /* 316 */, /* 317 */, -/* 318 */ +/* 318 */, +/* 319 */, +/* 320 */, +/* 321 */, +/* 322 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -47945,21 +48476,21 @@ exports.isValidElementType=function(a){return"string"===typeof a||"function"===t /***/ }), -/* 319 */ +/* 323 */ /***/ (function(module, exports, __webpack_require__) { // eslint-disable-next-line import/no-unresolved -__webpack_require__(320); +__webpack_require__(324); /***/ }), -/* 320 */ +/* 324 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var _registerCSSInterfaceWithDefaultTheme = __webpack_require__(321); +var _registerCSSInterfaceWithDefaultTheme = __webpack_require__(325); var _registerCSSInterfaceWithDefaultTheme2 = _interopRequireDefault(_registerCSSInterfaceWithDefaultTheme); @@ -47968,7 +48499,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'd (0, _registerCSSInterfaceWithDefaultTheme2['default'])(); /***/ }), -/* 321 */ +/* 325 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -47979,11 +48510,11 @@ Object.defineProperty(exports, "__esModule", { }); exports['default'] = registerCSSInterfaceWithDefaultTheme; -var _reactWithStylesInterfaceCss = __webpack_require__(322); +var _reactWithStylesInterfaceCss = __webpack_require__(326); var _reactWithStylesInterfaceCss2 = _interopRequireDefault(_reactWithStylesInterfaceCss); -var _registerInterfaceWithDefaultTheme = __webpack_require__(366); +var _registerInterfaceWithDefaultTheme = __webpack_require__(370); var _registerInterfaceWithDefaultTheme2 = _interopRequireDefault(_registerInterfaceWithDefaultTheme); @@ -47994,36 +48525,36 @@ function registerCSSInterfaceWithDefaultTheme() { } /***/ }), -/* 322 */ +/* 326 */ /***/ (function(module, exports, __webpack_require__) { // eslint-disable-next-line import/no-unresolved -module.exports = __webpack_require__(323).default; +module.exports = __webpack_require__(327).default; /***/ }), -/* 323 */ +/* 327 */ /***/ (function(module, exports, __webpack_require__) { Object.defineProperty(exports, "__esModule", { value: true }); -var _arrayPrototype = __webpack_require__(324); +var _arrayPrototype = __webpack_require__(328); var _arrayPrototype2 = _interopRequireDefault(_arrayPrototype); -var _globalCache = __webpack_require__(362); +var _globalCache = __webpack_require__(366); var _globalCache2 = _interopRequireDefault(_globalCache); -var _constants = __webpack_require__(363); +var _constants = __webpack_require__(367); -var _getClassName = __webpack_require__(364); +var _getClassName = __webpack_require__(368); var _getClassName2 = _interopRequireDefault(_getClassName); -var _separateStyles2 = __webpack_require__(365); +var _separateStyles2 = __webpack_require__(369); var _separateStyles3 = _interopRequireDefault(_separateStyles2); @@ -48081,19 +48612,19 @@ function resolve(stylesArray) { exports['default'] = { create: create, resolve: resolve }; /***/ }), -/* 324 */ +/* 328 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var define = __webpack_require__(103); -var callBind = __webpack_require__(186); +var callBind = __webpack_require__(188); -var implementation = __webpack_require__(220); -var getPolyfill = __webpack_require__(235); +var implementation = __webpack_require__(221); +var getPolyfill = __webpack_require__(236); var polyfill = getPolyfill(); -var shim = __webpack_require__(361); +var shim = __webpack_require__(365); var boundFlat = callBind(polyfill); @@ -48107,7 +48638,7 @@ module.exports = boundFlat; /***/ }), -/* 325 */ +/* 329 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -48118,7 +48649,7 @@ if (!Object.keys) { // modified from https://github.com/es-shims/es5-shim var has = Object.prototype.hasOwnProperty; var toStr = Object.prototype.toString; - var isArgs = __webpack_require__(218); // eslint-disable-line global-require + var isArgs = __webpack_require__(219); // eslint-disable-line global-require var isEnumerable = Object.prototype.propertyIsEnumerable; var hasDontEnumBug = !isEnumerable.call({ toString: null }, 'toString'); var hasProtoEnumBug = isEnumerable.call(function () {}, 'prototype'); @@ -48236,7 +48767,7 @@ module.exports = keysShim; /***/ }), -/* 326 */ +/* 330 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -48295,7 +48826,7 @@ module.exports = function bind(that) { /***/ }), -/* 327 */ +/* 331 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -48344,7 +48875,7 @@ module.exports = function hasSymbols() { /***/ }), -/* 328 */ +/* 332 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -48356,11 +48887,11 @@ var $Array = GetIntrinsic('%Array%'); var $species = GetIntrinsic('%Symbol.species%', true); var $TypeError = GetIntrinsic('%TypeError%'); -var Get = __webpack_require__(187); -var IsArray = __webpack_require__(188); -var IsConstructor = __webpack_require__(332); -var IsInteger = __webpack_require__(337); -var Type = __webpack_require__(92); +var Get = __webpack_require__(189); +var IsArray = __webpack_require__(190); +var IsConstructor = __webpack_require__(336); +var IsInteger = __webpack_require__(341); +var Type = __webpack_require__(93); // https://ecma-international.org/ecma-262/6.0/#sec-arrayspeciescreate @@ -48397,7 +48928,7 @@ module.exports = function ArraySpeciesCreate(originalArray, length) { /***/ }), -/* 329 */ +/* 333 */ /***/ (function(module, exports, __webpack_require__) { var hasMap = typeof Map === 'function' && Map.prototype; @@ -48418,7 +48949,7 @@ var functionToString = Function.prototype.toString; var match = String.prototype.match; var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null; -var inspectCustom = __webpack_require__(330).custom; +var inspectCustom = __webpack_require__(334).custom; var inspectSymbol = inspectCustom && isSymbol(inspectCustom) ? inspectCustom : null; module.exports = function inspect_(obj, options, depth, seen) { @@ -48786,13 +49317,13 @@ function arrObjKeys(obj, inspect) { /***/ }), -/* 330 */ +/* 334 */ /***/ (function(module, exports) { /* (ignored) */ /***/ }), -/* 331 */ +/* 335 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -48823,7 +49354,7 @@ module.exports = function Type(x) { /***/ }), -/* 332 */ +/* 336 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -48833,7 +49364,7 @@ var GetIntrinsic = __webpack_require__(58); var $construct = GetIntrinsic('%Reflect.construct%', true); -var DefinePropertyOrThrow = __webpack_require__(333); +var DefinePropertyOrThrow = __webpack_require__(337); try { DefinePropertyOrThrow({}, '', { '[[Get]]': function () {} }); } catch (e) { @@ -48870,7 +49401,7 @@ if (DefinePropertyOrThrow && $construct) { /***/ }), -/* 333 */ +/* 337 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -48880,16 +49411,16 @@ var GetIntrinsic = __webpack_require__(58); var $TypeError = GetIntrinsic('%TypeError%'); -var isPropertyDescriptor = __webpack_require__(334); -var DefineOwnProperty = __webpack_require__(221); +var isPropertyDescriptor = __webpack_require__(338); +var DefineOwnProperty = __webpack_require__(222); -var FromPropertyDescriptor = __webpack_require__(222); -var IsAccessorDescriptor = __webpack_require__(335); -var IsDataDescriptor = __webpack_require__(223); -var IsPropertyKey = __webpack_require__(131); -var SameValue = __webpack_require__(224); -var ToPropertyDescriptor = __webpack_require__(225); -var Type = __webpack_require__(92); +var FromPropertyDescriptor = __webpack_require__(223); +var IsAccessorDescriptor = __webpack_require__(339); +var IsDataDescriptor = __webpack_require__(224); +var IsPropertyKey = __webpack_require__(132); +var SameValue = __webpack_require__(225); +var ToPropertyDescriptor = __webpack_require__(226); +var Type = __webpack_require__(93); // https://www.ecma-international.org/ecma-262/6.0/#sec-definepropertyorthrow @@ -48927,7 +49458,7 @@ module.exports = function DefinePropertyOrThrow(O, P, desc) { /***/ }), -/* 334 */ +/* 338 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -48935,7 +49466,7 @@ module.exports = function DefinePropertyOrThrow(O, P, desc) { var GetIntrinsic = __webpack_require__(58); -var has = __webpack_require__(93); +var has = __webpack_require__(94); var $TypeError = GetIntrinsic('%TypeError%'); module.exports = function IsPropertyDescriptor(ES, Desc) { @@ -48965,17 +49496,17 @@ module.exports = function IsPropertyDescriptor(ES, Desc) { /***/ }), -/* 335 */ +/* 339 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var has = __webpack_require__(93); +var has = __webpack_require__(94); -var assertRecord = __webpack_require__(189); +var assertRecord = __webpack_require__(191); -var Type = __webpack_require__(92); +var Type = __webpack_require__(93); // https://www.ecma-international.org/ecma-262/6.0/#sec-isaccessordescriptor @@ -48995,7 +49526,7 @@ module.exports = function IsAccessorDescriptor(Desc) { /***/ }), -/* 336 */ +/* 340 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -49003,11 +49534,11 @@ module.exports = function IsAccessorDescriptor(Desc) { // http://www.ecma-international.org/ecma-262/5.1/#sec-9.11 -module.exports = __webpack_require__(227); +module.exports = __webpack_require__(228); /***/ }), -/* 337 */ +/* 341 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -49020,8 +49551,8 @@ var $Math = GetIntrinsic('%Math%'); var $floor = $Math.floor; var $abs = $Math.abs; -var $isNaN = __webpack_require__(190); -var $isFinite = __webpack_require__(228); +var $isNaN = __webpack_require__(192); +var $isFinite = __webpack_require__(229); // https://www.ecma-international.org/ecma-262/6.0/#sec-isinteger @@ -49035,7 +49566,7 @@ module.exports = function IsInteger(argument) { /***/ }), -/* 338 */ +/* 342 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -49045,15 +49576,15 @@ var GetIntrinsic = __webpack_require__(58); var $TypeError = GetIntrinsic('%TypeError%'); -var MAX_SAFE_INTEGER = __webpack_require__(229); +var MAX_SAFE_INTEGER = __webpack_require__(230); -var Call = __webpack_require__(339); -var CreateDataPropertyOrThrow = __webpack_require__(340); -var Get = __webpack_require__(187); -var HasProperty = __webpack_require__(347); -var IsArray = __webpack_require__(188); -var ToLength = __webpack_require__(231); -var ToString = __webpack_require__(357); +var Call = __webpack_require__(343); +var CreateDataPropertyOrThrow = __webpack_require__(344); +var Get = __webpack_require__(189); +var HasProperty = __webpack_require__(351); +var IsArray = __webpack_require__(190); +var ToLength = __webpack_require__(232); +var ToString = __webpack_require__(361); // https://ecma-international.org/ecma-262/10.0/#sec-flattenintoarray @@ -49100,14 +49631,14 @@ module.exports = function FlattenIntoArray(target, source, sourceLen, start, dep /***/ }), -/* 339 */ +/* 343 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var GetIntrinsic = __webpack_require__(58); -var callBound = __webpack_require__(145); +var callBound = __webpack_require__(144); var $apply = GetIntrinsic('%Reflect.apply%', true) || callBound('%Function.prototype.apply%'); @@ -49120,7 +49651,7 @@ module.exports = function Call(F, V) { /***/ }), -/* 340 */ +/* 344 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -49130,9 +49661,9 @@ var GetIntrinsic = __webpack_require__(58); var $TypeError = GetIntrinsic('%TypeError%'); -var CreateDataProperty = __webpack_require__(341); -var IsPropertyKey = __webpack_require__(131); -var Type = __webpack_require__(92); +var CreateDataProperty = __webpack_require__(345); +var IsPropertyKey = __webpack_require__(132); +var Type = __webpack_require__(93); // // https://ecma-international.org/ecma-262/6.0/#sec-createdatapropertyorthrow @@ -49152,7 +49683,7 @@ module.exports = function CreateDataPropertyOrThrow(O, P, V) { /***/ }), -/* 341 */ +/* 345 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -49162,15 +49693,15 @@ var GetIntrinsic = __webpack_require__(58); var $TypeError = GetIntrinsic('%TypeError%'); -var DefineOwnProperty = __webpack_require__(221); +var DefineOwnProperty = __webpack_require__(222); -var FromPropertyDescriptor = __webpack_require__(222); -var OrdinaryGetOwnProperty = __webpack_require__(342); -var IsDataDescriptor = __webpack_require__(223); -var IsExtensible = __webpack_require__(346); -var IsPropertyKey = __webpack_require__(131); -var SameValue = __webpack_require__(224); -var Type = __webpack_require__(92); +var FromPropertyDescriptor = __webpack_require__(223); +var OrdinaryGetOwnProperty = __webpack_require__(346); +var IsDataDescriptor = __webpack_require__(224); +var IsExtensible = __webpack_require__(350); +var IsPropertyKey = __webpack_require__(132); +var SameValue = __webpack_require__(225); +var Type = __webpack_require__(93); // https://www.ecma-international.org/ecma-262/6.0/#sec-createdataproperty @@ -49204,7 +49735,7 @@ module.exports = function CreateDataProperty(O, P, V) { /***/ }), -/* 342 */ +/* 346 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -49212,20 +49743,20 @@ module.exports = function CreateDataProperty(O, P, V) { var GetIntrinsic = __webpack_require__(58); -var $gOPD = __webpack_require__(343); +var $gOPD = __webpack_require__(347); var $TypeError = GetIntrinsic('%TypeError%'); -var callBound = __webpack_require__(145); +var callBound = __webpack_require__(144); var $isEnumerable = callBound('Object.prototype.propertyIsEnumerable'); -var has = __webpack_require__(93); +var has = __webpack_require__(94); -var IsArray = __webpack_require__(188); -var IsPropertyKey = __webpack_require__(131); -var IsRegExp = __webpack_require__(344); -var ToPropertyDescriptor = __webpack_require__(225); -var Type = __webpack_require__(92); +var IsArray = __webpack_require__(190); +var IsPropertyKey = __webpack_require__(132); +var IsRegExp = __webpack_require__(348); +var ToPropertyDescriptor = __webpack_require__(226); +var Type = __webpack_require__(93); // https://www.ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty @@ -49255,7 +49786,7 @@ module.exports = function OrdinaryGetOwnProperty(O, P) { /***/ }), -/* 343 */ +/* 347 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -49277,7 +49808,7 @@ module.exports = $gOPD; /***/ }), -/* 344 */ +/* 348 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -49287,9 +49818,9 @@ var GetIntrinsic = __webpack_require__(58); var $match = GetIntrinsic('%Symbol.match%', true); -var hasRegExpMatcher = __webpack_require__(345); +var hasRegExpMatcher = __webpack_require__(349); -var ToBoolean = __webpack_require__(226); +var ToBoolean = __webpack_require__(227); // https://ecma-international.org/ecma-262/6.0/#sec-isregexp @@ -49308,13 +49839,13 @@ module.exports = function IsRegExp(argument) { /***/ }), -/* 345 */ +/* 349 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var hasSymbols = __webpack_require__(219)(); +var hasSymbols = __webpack_require__(220)(); var hasToStringTag = hasSymbols && typeof Symbol.toStringTag === 'symbol'; var hasOwnProperty; var regexExec; @@ -49373,7 +49904,7 @@ module.exports = hasToStringTag /***/ }), -/* 346 */ +/* 350 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -49383,7 +49914,7 @@ var GetIntrinsic = __webpack_require__(58); var $Object = GetIntrinsic('%Object%'); -var isPrimitive = __webpack_require__(230); +var isPrimitive = __webpack_require__(231); var $preventExtensions = $Object.preventExtensions; var $isExtensible = $Object.isExtensible; @@ -49400,7 +49931,7 @@ module.exports = $preventExtensions /***/ }), -/* 347 */ +/* 351 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -49410,8 +49941,8 @@ var GetIntrinsic = __webpack_require__(58); var $TypeError = GetIntrinsic('%TypeError%'); -var IsPropertyKey = __webpack_require__(131); -var Type = __webpack_require__(92); +var IsPropertyKey = __webpack_require__(132); +var Type = __webpack_require__(93); // https://ecma-international.org/ecma-262/6.0/#sec-hasproperty @@ -49427,7 +49958,7 @@ module.exports = function HasProperty(O, P) { /***/ }), -/* 348 */ +/* 352 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -49437,10 +49968,10 @@ var GetIntrinsic = __webpack_require__(58); var $Math = GetIntrinsic('%Math%'); -var ToNumber = __webpack_require__(349); -var $isNaN = __webpack_require__(190); -var $isFinite = __webpack_require__(228); -var $sign = __webpack_require__(350); +var ToNumber = __webpack_require__(353); +var $isNaN = __webpack_require__(192); +var $isFinite = __webpack_require__(229); +var $sign = __webpack_require__(354); var $floor = $Math.floor; var $abs = $Math.abs; @@ -49456,7 +49987,7 @@ module.exports = function ToInteger(value) { /***/ }), -/* 349 */ +/* 353 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -49470,7 +50001,7 @@ module.exports = function ToNumber(value) { /***/ }), -/* 350 */ +/* 354 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -49482,7 +50013,7 @@ module.exports = function sign(number) { /***/ }), -/* 351 */ +/* 355 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -49495,9 +50026,9 @@ var $Number = GetIntrinsic('%Number%'); var $RegExp = GetIntrinsic('%RegExp%'); var $parseInteger = GetIntrinsic('%parseInt%'); -var callBound = __webpack_require__(145); -var regexTester = __webpack_require__(352); -var isPrimitive = __webpack_require__(230); +var callBound = __webpack_require__(144); +var regexTester = __webpack_require__(356); +var isPrimitive = __webpack_require__(231); var $strSlice = callBound('String.prototype.slice'); var isBinary = regexTester(/^0b[01]+$/i); @@ -49520,7 +50051,7 @@ var $trim = function (value) { return $replace(value, trimRegex, ''); }; -var ToPrimitive = __webpack_require__(353); +var ToPrimitive = __webpack_require__(357); // https://www.ecma-international.org/ecma-262/6.0/#sec-tonumber @@ -49548,7 +50079,7 @@ module.exports = function ToNumber(argument) { /***/ }), -/* 352 */ +/* 356 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -49558,7 +50089,7 @@ var GetIntrinsic = __webpack_require__(58); var $test = GetIntrinsic('RegExp.prototype.test'); -var callBind = __webpack_require__(186); +var callBind = __webpack_require__(188); module.exports = function regexTester(regex) { return callBind($test, regex); @@ -49566,13 +50097,13 @@ module.exports = function regexTester(regex) { /***/ }), -/* 353 */ +/* 357 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var toPrimitive = __webpack_require__(354); +var toPrimitive = __webpack_require__(358); // https://www.ecma-international.org/ecma-262/6.0/#sec-toprimitive @@ -49585,7 +50116,7 @@ module.exports = function ToPrimitive(input) { /***/ }), -/* 354 */ +/* 358 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -49593,10 +50124,10 @@ module.exports = function ToPrimitive(input) { var hasSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol'; -var isPrimitive = __webpack_require__(355); -var isCallable = __webpack_require__(227); -var isDate = __webpack_require__(233); -var isSymbol = __webpack_require__(191); +var isPrimitive = __webpack_require__(359); +var isCallable = __webpack_require__(228); +var isDate = __webpack_require__(234); +var isSymbol = __webpack_require__(193); var ordinaryToPrimitive = function OrdinaryToPrimitive(O, hint) { if (typeof O === 'undefined' || O === null) { @@ -49667,7 +50198,7 @@ module.exports = function ToPrimitive(input) { /***/ }), -/* 355 */ +/* 359 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -49679,14 +50210,14 @@ module.exports = function isPrimitive(value) { /***/ }), -/* 356 */ +/* 360 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(global) { var origSymbol = global.Symbol; -var hasSymbolSham = __webpack_require__(234); +var hasSymbolSham = __webpack_require__(235); module.exports = function hasNativeSymbols() { if (typeof origSymbol !== 'function') { return false; } @@ -49697,10 +50228,10 @@ module.exports = function hasNativeSymbols() { return hasSymbolSham(); }; -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(130))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(131))) /***/ }), -/* 357 */ +/* 361 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -49722,7 +50253,7 @@ module.exports = function ToString(argument) { /***/ }), -/* 358 */ +/* 362 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -49732,7 +50263,7 @@ var GetIntrinsic = __webpack_require__(58); var $Object = GetIntrinsic('%Object%'); -var RequireObjectCoercible = __webpack_require__(359); +var RequireObjectCoercible = __webpack_require__(363); // https://www.ecma-international.org/ecma-262/6.0/#sec-toobject @@ -49743,17 +50274,17 @@ module.exports = function ToObject(value) { /***/ }), -/* 359 */ +/* 363 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -module.exports = __webpack_require__(360); +module.exports = __webpack_require__(364); /***/ }), -/* 360 */ +/* 364 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -49774,14 +50305,14 @@ module.exports = function CheckObjectCoercible(value, optMessage) { /***/ }), -/* 361 */ +/* 365 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var define = __webpack_require__(103); -var getPolyfill = __webpack_require__(235); +var getPolyfill = __webpack_require__(236); module.exports = function shimFlat() { var polyfill = getPolyfill(); @@ -49795,14 +50326,14 @@ module.exports = function shimFlat() { /***/ }), -/* 362 */ +/* 366 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(global) { var define = __webpack_require__(103); -var isSymbol = __webpack_require__(191); +var isSymbol = __webpack_require__(193); var globalKey = '__ global cache key __'; /* istanbul ignore else */ @@ -49891,10 +50422,10 @@ var globalCache = { module.exports = globalCache; -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(130))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(131))) /***/ }), -/* 363 */ +/* 367 */ /***/ (function(module, exports) { Object.defineProperty(exports, "__esModule", { @@ -49907,7 +50438,7 @@ exports.GLOBAL_CACHE_KEY = GLOBAL_CACHE_KEY; exports.MAX_SPECIFICITY = MAX_SPECIFICITY; /***/ }), -/* 364 */ +/* 368 */ /***/ (function(module, exports) { Object.defineProperty(exports, "__esModule", { @@ -49928,7 +50459,7 @@ function getClassName(namespace, styleName) { } /***/ }), -/* 365 */ +/* 369 */ /***/ (function(module, exports) { Object.defineProperty(exports, "__esModule", { @@ -49976,7 +50507,7 @@ function separateStyles(stylesArray) { exports['default'] = separateStyles; /***/ }), -/* 366 */ +/* 370 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -49987,11 +50518,11 @@ Object.defineProperty(exports, "__esModule", { }); exports['default'] = registerInterfaceWithDefaultTheme; -var _ThemedStyleSheet = __webpack_require__(236); +var _ThemedStyleSheet = __webpack_require__(237); var _ThemedStyleSheet2 = _interopRequireDefault(_ThemedStyleSheet); -var _DefaultTheme = __webpack_require__(237); +var _DefaultTheme = __webpack_require__(238); var _DefaultTheme2 = _interopRequireDefault(_DefaultTheme); @@ -50003,14 +50534,14 @@ function registerInterfaceWithDefaultTheme(reactWithStylesInterface) { } /***/ }), -/* 367 */ +/* 371 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var define = __webpack_require__(103); -var getPolyfill = __webpack_require__(239); +var getPolyfill = __webpack_require__(240); module.exports = function shimAssign() { var polyfill = getPolyfill(); @@ -50024,7 +50555,7 @@ module.exports = function shimAssign() { /***/ }), -/* 368 */ +/* 372 */ /***/ (function(module, exports, __webpack_require__) { var moment = __webpack_require__(44); @@ -50050,7 +50581,7 @@ module.exports = { /***/ }), -/* 369 */ +/* 373 */ /***/ (function(module, exports) { var messages = { @@ -50175,7 +50706,7 @@ module.exports = { /***/ }), -/* 370 */ +/* 374 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -50232,24 +50763,24 @@ module.exports = { /***/ }), -/* 371 */ +/* 375 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -module.exports = __webpack_require__(372); +module.exports = __webpack_require__(376); /***/ }), -/* 372 */ +/* 376 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var ES2015 = __webpack_require__(373); -var assign = __webpack_require__(246); +var ES2015 = __webpack_require__(377); +var assign = __webpack_require__(247); var ES2016 = assign(assign({}, ES2015), { // https://github.com/tc39/ecma262/pull/60 @@ -50265,17 +50796,17 @@ module.exports = ES2016; /***/ }), -/* 373 */ +/* 377 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var has = __webpack_require__(93); -var toPrimitive = __webpack_require__(374); -var keys = __webpack_require__(185); +var has = __webpack_require__(94); +var toPrimitive = __webpack_require__(378); +var keys = __webpack_require__(187); -var GetIntrinsic = __webpack_require__(193); +var GetIntrinsic = __webpack_require__(195); var $TypeError = GetIntrinsic('%TypeError%'); var $SyntaxError = GetIntrinsic('%SyntaxError%'); @@ -50288,17 +50819,17 @@ var $RegExp = GetIntrinsic('%RegExp%'); var hasSymbols = !!$Symbol; -var assertRecord = __webpack_require__(243); -var $isNaN = __webpack_require__(244); -var $isFinite = __webpack_require__(245); +var assertRecord = __webpack_require__(244); +var $isNaN = __webpack_require__(245); +var $isFinite = __webpack_require__(246); var MAX_SAFE_INTEGER = $Number.MAX_SAFE_INTEGER || Math.pow(2, 53) - 1; -var assign = __webpack_require__(246); -var sign = __webpack_require__(247); -var mod = __webpack_require__(248); -var isPrimitive = __webpack_require__(376); +var assign = __webpack_require__(247); +var sign = __webpack_require__(248); +var mod = __webpack_require__(249); +var isPrimitive = __webpack_require__(380); var parseInteger = parseInt; -var bind = __webpack_require__(121); +var bind = __webpack_require__(120); var arraySlice = bind.call(Function.call, $Array.prototype.slice); var strSlice = bind.call(Function.call, $String.prototype.slice); var isBinary = bind.call(Function.call, $RegExp.prototype.test, /^0b[01]+$/i); @@ -50341,9 +50872,9 @@ var trim = function (value) { return replace(value, trimRegex, ''); }; -var ES5 = __webpack_require__(377); +var ES5 = __webpack_require__(381); -var hasRegExpMatcher = __webpack_require__(379); +var hasRegExpMatcher = __webpack_require__(383); // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-abstract-operations var ES6 = assign(assign({}, ES5), { @@ -51062,17 +51593,17 @@ module.exports = ES6; /***/ }), -/* 374 */ +/* 378 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -module.exports = __webpack_require__(375); +module.exports = __webpack_require__(379); /***/ }), -/* 375 */ +/* 379 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -51080,10 +51611,10 @@ module.exports = __webpack_require__(375); var hasSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol'; -var isPrimitive = __webpack_require__(242); -var isCallable = __webpack_require__(192); -var isDate = __webpack_require__(233); -var isSymbol = __webpack_require__(191); +var isPrimitive = __webpack_require__(243); +var isCallable = __webpack_require__(194); +var isDate = __webpack_require__(234); +var isSymbol = __webpack_require__(193); var ordinaryToPrimitive = function OrdinaryToPrimitive(O, hint) { if (typeof O === 'undefined' || O === null) { @@ -51154,7 +51685,7 @@ module.exports = function ToPrimitive(input) { /***/ }), -/* 376 */ +/* 380 */ /***/ (function(module, exports) { module.exports = function isPrimitive(value) { @@ -51163,29 +51694,29 @@ module.exports = function isPrimitive(value) { /***/ }), -/* 377 */ +/* 381 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var GetIntrinsic = __webpack_require__(193); +var GetIntrinsic = __webpack_require__(195); var $Object = GetIntrinsic('%Object%'); var $TypeError = GetIntrinsic('%TypeError%'); var $String = GetIntrinsic('%String%'); -var assertRecord = __webpack_require__(243); -var $isNaN = __webpack_require__(244); -var $isFinite = __webpack_require__(245); +var assertRecord = __webpack_require__(244); +var $isNaN = __webpack_require__(245); +var $isFinite = __webpack_require__(246); -var sign = __webpack_require__(247); -var mod = __webpack_require__(248); +var sign = __webpack_require__(248); +var mod = __webpack_require__(249); -var IsCallable = __webpack_require__(192); -var toPrimitive = __webpack_require__(378); +var IsCallable = __webpack_require__(194); +var toPrimitive = __webpack_require__(382); -var has = __webpack_require__(93); +var has = __webpack_require__(94); // https://es5.github.io/#x9 var ES5 = { @@ -51405,7 +51936,7 @@ module.exports = ES5; /***/ }), -/* 378 */ +/* 382 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -51413,9 +51944,9 @@ module.exports = ES5; var toStr = Object.prototype.toString; -var isPrimitive = __webpack_require__(242); +var isPrimitive = __webpack_require__(243); -var isCallable = __webpack_require__(192); +var isCallable = __webpack_require__(194); // http://ecma-international.org/ecma-262/5.1/#sec-8.12.8 var ES5internalSlots = { @@ -51457,13 +51988,13 @@ module.exports = function ToPrimitive(input) { /***/ }), -/* 379 */ +/* 383 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var has = __webpack_require__(93); +var has = __webpack_require__(94); var regexExec = RegExp.prototype.exec; var gOPD = Object.getOwnPropertyDescriptor; @@ -51503,13 +52034,13 @@ module.exports = function isRegex(value) { /***/ }), -/* 380 */ +/* 384 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var getPolyfill = __webpack_require__(249); +var getPolyfill = __webpack_require__(250); var define = __webpack_require__(103); module.exports = function shimValues() { @@ -51524,7 +52055,7 @@ module.exports = function shimValues() { /***/ }), -/* 381 */ +/* 385 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -51539,7 +52070,7 @@ var _moment = __webpack_require__(44); var _moment2 = _interopRequireDefault(_moment); -var _toISOMonthString = __webpack_require__(195); +var _toISOMonthString = __webpack_require__(197); var _toISOMonthString2 = _interopRequireDefault(_toISOMonthString); @@ -51593,7 +52124,7 @@ function getVisibleDays(month, numberOfMonths, enableOutsideDays, withoutTransit } /***/ }), -/* 382 */ +/* 386 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -51608,7 +52139,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); -var _object = __webpack_require__(94); +var _object = __webpack_require__(95); var _object2 = _interopRequireDefault(_object); @@ -51620,11 +52151,11 @@ var _propTypes = __webpack_require__(28); var _propTypes2 = _interopRequireDefault(_propTypes); -var _reactAddonsShallowCompare = __webpack_require__(148); +var _reactAddonsShallowCompare = __webpack_require__(147); var _reactAddonsShallowCompare2 = _interopRequireDefault(_reactAddonsShallowCompare); -var _airbnbPropTypes = __webpack_require__(88); +var _airbnbPropTypes = __webpack_require__(89); var _reactWithStyles = __webpack_require__(112); @@ -51632,15 +52163,15 @@ var _moment = __webpack_require__(44); var _moment2 = _interopRequireDefault(_moment); -var _throttle = __webpack_require__(389); +var _throttle = __webpack_require__(393); var _throttle2 = _interopRequireDefault(_throttle); -var _isTouchDevice = __webpack_require__(250); +var _isTouchDevice = __webpack_require__(251); var _isTouchDevice2 = _interopRequireDefault(_isTouchDevice); -var _reactOutsideClickHandler = __webpack_require__(399); +var _reactOutsideClickHandler = __webpack_require__(403); var _reactOutsideClickHandler2 = _interopRequireDefault(_reactOutsideClickHandler); @@ -51650,51 +52181,51 @@ var _getPhrasePropTypes = __webpack_require__(111); var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes); -var _CalendarMonthGrid = __webpack_require__(403); +var _CalendarMonthGrid = __webpack_require__(407); var _CalendarMonthGrid2 = _interopRequireDefault(_CalendarMonthGrid); -var _DayPickerNavigation = __webpack_require__(413); +var _DayPickerNavigation = __webpack_require__(417); var _DayPickerNavigation2 = _interopRequireDefault(_DayPickerNavigation); -var _DayPickerKeyboardShortcuts = __webpack_require__(418); +var _DayPickerKeyboardShortcuts = __webpack_require__(422); var _DayPickerKeyboardShortcuts2 = _interopRequireDefault(_DayPickerKeyboardShortcuts); -var _getNumberOfCalendarMonthWeeks = __webpack_require__(421); +var _getNumberOfCalendarMonthWeeks = __webpack_require__(425); var _getNumberOfCalendarMonthWeeks2 = _interopRequireDefault(_getNumberOfCalendarMonthWeeks); -var _getCalendarMonthWidth = __webpack_require__(265); +var _getCalendarMonthWidth = __webpack_require__(266); var _getCalendarMonthWidth2 = _interopRequireDefault(_getCalendarMonthWidth); -var _calculateDimension = __webpack_require__(264); +var _calculateDimension = __webpack_require__(265); var _calculateDimension2 = _interopRequireDefault(_calculateDimension); -var _getActiveElement = __webpack_require__(422); +var _getActiveElement = __webpack_require__(426); var _getActiveElement2 = _interopRequireDefault(_getActiveElement); -var _isDayVisible = __webpack_require__(254); +var _isDayVisible = __webpack_require__(255); var _isDayVisible2 = _interopRequireDefault(_isDayVisible); -var _ModifiersShape = __webpack_require__(160); +var _ModifiersShape = __webpack_require__(163); var _ModifiersShape2 = _interopRequireDefault(_ModifiersShape); -var _ScrollableOrientationShape = __webpack_require__(147); +var _ScrollableOrientationShape = __webpack_require__(146); var _ScrollableOrientationShape2 = _interopRequireDefault(_ScrollableOrientationShape); -var _DayOfWeekShape = __webpack_require__(159); +var _DayOfWeekShape = __webpack_require__(162); var _DayOfWeekShape2 = _interopRequireDefault(_DayOfWeekShape); -var _CalendarInfoPositionShape = __webpack_require__(256); +var _CalendarInfoPositionShape = __webpack_require__(257); var _CalendarInfoPositionShape2 = _interopRequireDefault(_CalendarInfoPositionShape); @@ -53175,7 +53706,7 @@ exports['default'] = (0, _reactWithStyles.withStyles)(function (_ref2) { })(DayPicker); /***/ }), -/* 383 */ +/* 387 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -53246,13 +53777,13 @@ function shallowEqual(objA, objB) { module.exports = shallowEqual; /***/ }), -/* 384 */ +/* 388 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var reactIs = __webpack_require__(385); +var reactIs = __webpack_require__(389); /** * Copyright 2015, Yahoo! Inc. @@ -53356,19 +53887,19 @@ module.exports = hoistNonReactStatics; /***/ }), -/* 385 */ +/* 389 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; if (true) { - module.exports = __webpack_require__(386); + module.exports = __webpack_require__(390); } else {} /***/ }), -/* 386 */ +/* 390 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -53390,7 +53921,7 @@ exports.isSuspense=function(a){return t(a)===p}; /***/ }), -/* 387 */ +/* 391 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -53407,7 +53938,7 @@ var DIRECTIONS = exports.DIRECTIONS = { }; /***/ }), -/* 388 */ +/* 392 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -53430,11 +53961,11 @@ exports['default'] = _propTypes2['default'].shape({ }); /***/ }), -/* 389 */ +/* 393 */ /***/ (function(module, exports, __webpack_require__) { -var debounce = __webpack_require__(390), - isObject = __webpack_require__(196); +var debounce = __webpack_require__(394), + isObject = __webpack_require__(198); /** Error message constants. */ var FUNC_ERROR_TEXT = 'Expected a function'; @@ -53505,12 +54036,12 @@ module.exports = throttle; /***/ }), -/* 390 */ +/* 394 */ /***/ (function(module, exports, __webpack_require__) { -var isObject = __webpack_require__(196), - now = __webpack_require__(391), - toNumber = __webpack_require__(393); +var isObject = __webpack_require__(198), + now = __webpack_require__(395), + toNumber = __webpack_require__(397); /** Error message constants. */ var FUNC_ERROR_TEXT = 'Expected a function'; @@ -53702,10 +54233,10 @@ module.exports = debounce; /***/ }), -/* 391 */ +/* 395 */ /***/ (function(module, exports, __webpack_require__) { -var root = __webpack_require__(257); +var root = __webpack_require__(258); /** * Gets the timestamp of the number of milliseconds that have elapsed since @@ -53731,7 +54262,7 @@ module.exports = now; /***/ }), -/* 392 */ +/* 396 */ /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */ @@ -53739,14 +54270,14 @@ var freeGlobal = typeof global == 'object' && global && global.Object === Object module.exports = freeGlobal; -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(130))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(131))) /***/ }), -/* 393 */ +/* 397 */ /***/ (function(module, exports, __webpack_require__) { -var isObject = __webpack_require__(196), - isSymbol = __webpack_require__(394); +var isObject = __webpack_require__(198), + isSymbol = __webpack_require__(398); /** Used as references for various `Number` constants. */ var NAN = 0 / 0; @@ -53814,11 +54345,11 @@ module.exports = toNumber; /***/ }), -/* 394 */ +/* 398 */ /***/ (function(module, exports, __webpack_require__) { -var baseGetTag = __webpack_require__(395), - isObjectLike = __webpack_require__(398); +var baseGetTag = __webpack_require__(399), + isObjectLike = __webpack_require__(402); /** `Object#toString` result references. */ var symbolTag = '[object Symbol]'; @@ -53849,12 +54380,12 @@ module.exports = isSymbol; /***/ }), -/* 395 */ +/* 399 */ /***/ (function(module, exports, __webpack_require__) { -var Symbol = __webpack_require__(258), - getRawTag = __webpack_require__(396), - objectToString = __webpack_require__(397); +var Symbol = __webpack_require__(259), + getRawTag = __webpack_require__(400), + objectToString = __webpack_require__(401); /** `Object#toString` result references. */ var nullTag = '[object Null]', @@ -53883,10 +54414,10 @@ module.exports = baseGetTag; /***/ }), -/* 396 */ +/* 400 */ /***/ (function(module, exports, __webpack_require__) { -var Symbol = __webpack_require__(258); +var Symbol = __webpack_require__(259); /** Used for built-in method references. */ var objectProto = Object.prototype; @@ -53935,7 +54466,7 @@ module.exports = getRawTag; /***/ }), -/* 397 */ +/* 401 */ /***/ (function(module, exports) { /** Used for built-in method references. */ @@ -53963,7 +54494,7 @@ module.exports = objectToString; /***/ }), -/* 398 */ +/* 402 */ /***/ (function(module, exports) { /** @@ -53998,15 +54529,15 @@ module.exports = isObjectLike; /***/ }), -/* 399 */ +/* 403 */ /***/ (function(module, exports, __webpack_require__) { // eslint-disable-next-line import/no-unresolved -module.exports = __webpack_require__(400); +module.exports = __webpack_require__(404); /***/ }), -/* 400 */ +/* 404 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -54026,15 +54557,15 @@ var _propTypes = __webpack_require__(28); var _propTypes2 = _interopRequireDefault(_propTypes); -var _airbnbPropTypes = __webpack_require__(88); +var _airbnbPropTypes = __webpack_require__(89); -var _consolidatedEvents = __webpack_require__(259); +var _consolidatedEvents = __webpack_require__(260); -var _object = __webpack_require__(240); +var _object = __webpack_require__(241); var _object2 = _interopRequireDefault(_object); -var _document = __webpack_require__(401); +var _document = __webpack_require__(405); var _document2 = _interopRequireDefault(_document); @@ -54244,7 +54775,7 @@ OutsideClickHandler.propTypes = propTypes; OutsideClickHandler.defaultProps = defaultProps; /***/ }), -/* 401 */ +/* 405 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -54252,10 +54783,10 @@ OutsideClickHandler.defaultProps = defaultProps; var define = __webpack_require__(103); -var implementation = __webpack_require__(260); -var getPolyfill = __webpack_require__(261); +var implementation = __webpack_require__(261); +var getPolyfill = __webpack_require__(262); var polyfill = getPolyfill(); -var shim = __webpack_require__(402); +var shim = __webpack_require__(406); var boundContains = function contains(node, other) { return polyfill.apply(node, [other]); @@ -54271,14 +54802,14 @@ module.exports = boundContains; /***/ }), -/* 402 */ +/* 406 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var define = __webpack_require__(103); -var getPolyfill = __webpack_require__(261); +var getPolyfill = __webpack_require__(262); module.exports = function shimContains() { var polyfill = getPolyfill(); @@ -54301,7 +54832,7 @@ module.exports = function shimContains() { /***/ }), -/* 403 */ +/* 407 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -54315,7 +54846,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); -var _object = __webpack_require__(94); +var _object = __webpack_require__(95); var _object2 = _interopRequireDefault(_object); @@ -54327,15 +54858,15 @@ var _propTypes = __webpack_require__(28); var _propTypes2 = _interopRequireDefault(_propTypes); -var _reactAddonsShallowCompare = __webpack_require__(148); +var _reactAddonsShallowCompare = __webpack_require__(147); var _reactAddonsShallowCompare2 = _interopRequireDefault(_reactAddonsShallowCompare); -var _reactMomentProptypes = __webpack_require__(146); +var _reactMomentProptypes = __webpack_require__(145); var _reactMomentProptypes2 = _interopRequireDefault(_reactMomentProptypes); -var _airbnbPropTypes = __webpack_require__(88); +var _airbnbPropTypes = __webpack_require__(89); var _reactWithStyles = __webpack_require__(112); @@ -54343,7 +54874,7 @@ var _moment = __webpack_require__(44); var _moment2 = _interopRequireDefault(_moment); -var _consolidatedEvents = __webpack_require__(259); +var _consolidatedEvents = __webpack_require__(260); var _defaultPhrases = __webpack_require__(110); @@ -54351,43 +54882,43 @@ var _getPhrasePropTypes = __webpack_require__(111); var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes); -var _CalendarMonth = __webpack_require__(404); +var _CalendarMonth = __webpack_require__(408); var _CalendarMonth2 = _interopRequireDefault(_CalendarMonth); -var _isTransitionEndSupported = __webpack_require__(409); +var _isTransitionEndSupported = __webpack_require__(413); var _isTransitionEndSupported2 = _interopRequireDefault(_isTransitionEndSupported); -var _getTransformStyles = __webpack_require__(410); +var _getTransformStyles = __webpack_require__(414); var _getTransformStyles2 = _interopRequireDefault(_getTransformStyles); -var _getCalendarMonthWidth = __webpack_require__(265); +var _getCalendarMonthWidth = __webpack_require__(266); var _getCalendarMonthWidth2 = _interopRequireDefault(_getCalendarMonthWidth); -var _toISOMonthString = __webpack_require__(195); +var _toISOMonthString = __webpack_require__(197); var _toISOMonthString2 = _interopRequireDefault(_toISOMonthString); -var _isPrevMonth = __webpack_require__(411); +var _isPrevMonth = __webpack_require__(415); var _isPrevMonth2 = _interopRequireDefault(_isPrevMonth); -var _isNextMonth = __webpack_require__(412); +var _isNextMonth = __webpack_require__(416); var _isNextMonth2 = _interopRequireDefault(_isNextMonth); -var _ModifiersShape = __webpack_require__(160); +var _ModifiersShape = __webpack_require__(163); var _ModifiersShape2 = _interopRequireDefault(_ModifiersShape); -var _ScrollableOrientationShape = __webpack_require__(147); +var _ScrollableOrientationShape = __webpack_require__(146); var _ScrollableOrientationShape2 = _interopRequireDefault(_ScrollableOrientationShape); -var _DayOfWeekShape = __webpack_require__(159); +var _DayOfWeekShape = __webpack_require__(162); var _DayOfWeekShape2 = _interopRequireDefault(_DayOfWeekShape); @@ -54867,7 +55398,7 @@ exports['default'] = (0, _reactWithStyles.withStyles)(function (_ref) { })(CalendarMonthGrid); /***/ }), -/* 404 */ +/* 408 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -54881,7 +55412,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); -var _object = __webpack_require__(94); +var _object = __webpack_require__(95); var _object2 = _interopRequireDefault(_object); @@ -54893,15 +55424,15 @@ var _propTypes = __webpack_require__(28); var _propTypes2 = _interopRequireDefault(_propTypes); -var _reactAddonsShallowCompare = __webpack_require__(148); +var _reactAddonsShallowCompare = __webpack_require__(147); var _reactAddonsShallowCompare2 = _interopRequireDefault(_reactAddonsShallowCompare); -var _reactMomentProptypes = __webpack_require__(146); +var _reactMomentProptypes = __webpack_require__(145); var _reactMomentProptypes2 = _interopRequireDefault(_reactMomentProptypes); -var _airbnbPropTypes = __webpack_require__(88); +var _airbnbPropTypes = __webpack_require__(89); var _reactWithStyles = __webpack_require__(112); @@ -54915,39 +55446,39 @@ var _getPhrasePropTypes = __webpack_require__(111); var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes); -var _CalendarWeek = __webpack_require__(405); +var _CalendarWeek = __webpack_require__(409); var _CalendarWeek2 = _interopRequireDefault(_CalendarWeek); -var _CalendarDay = __webpack_require__(262); +var _CalendarDay = __webpack_require__(263); var _CalendarDay2 = _interopRequireDefault(_CalendarDay); -var _calculateDimension = __webpack_require__(264); +var _calculateDimension = __webpack_require__(265); var _calculateDimension2 = _interopRequireDefault(_calculateDimension); -var _getCalendarMonthWeeks = __webpack_require__(408); +var _getCalendarMonthWeeks = __webpack_require__(412); var _getCalendarMonthWeeks2 = _interopRequireDefault(_getCalendarMonthWeeks); -var _isSameDay = __webpack_require__(194); +var _isSameDay = __webpack_require__(196); var _isSameDay2 = _interopRequireDefault(_isSameDay); -var _toISODateString = __webpack_require__(255); +var _toISODateString = __webpack_require__(256); var _toISODateString2 = _interopRequireDefault(_toISODateString); -var _ModifiersShape = __webpack_require__(160); +var _ModifiersShape = __webpack_require__(163); var _ModifiersShape2 = _interopRequireDefault(_ModifiersShape); -var _ScrollableOrientationShape = __webpack_require__(147); +var _ScrollableOrientationShape = __webpack_require__(146); var _ScrollableOrientationShape2 = _interopRequireDefault(_ScrollableOrientationShape); -var _DayOfWeekShape = __webpack_require__(159); +var _DayOfWeekShape = __webpack_require__(162); var _DayOfWeekShape2 = _interopRequireDefault(_DayOfWeekShape); @@ -55272,7 +55803,7 @@ exports['default'] = (0, _reactWithStyles.withStyles)(function (_ref) { })(CalendarMonth); /***/ }), -/* 405 */ +/* 409 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -55287,13 +55818,13 @@ var _react = __webpack_require__(13); var _react2 = _interopRequireDefault(_react); -var _airbnbPropTypes = __webpack_require__(88); +var _airbnbPropTypes = __webpack_require__(89); -var _CalendarDay = __webpack_require__(262); +var _CalendarDay = __webpack_require__(263); var _CalendarDay2 = _interopRequireDefault(_CalendarDay); -var _CustomizableCalendarDay = __webpack_require__(407); +var _CustomizableCalendarDay = __webpack_require__(411); var _CustomizableCalendarDay2 = _interopRequireDefault(_CustomizableCalendarDay); @@ -55316,7 +55847,7 @@ function CalendarWeek(_ref) { CalendarWeek.propTypes = propTypes; /***/ }), -/* 406 */ +/* 410 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -55337,7 +55868,7 @@ function getPhrase(phrase, args) { } /***/ }), -/* 407 */ +/* 411 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -55352,7 +55883,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); -var _object = __webpack_require__(94); +var _object = __webpack_require__(95); var _object2 = _interopRequireDefault(_object); @@ -55364,15 +55895,15 @@ var _propTypes = __webpack_require__(28); var _propTypes2 = _interopRequireDefault(_propTypes); -var _reactAddonsShallowCompare = __webpack_require__(148); +var _reactAddonsShallowCompare = __webpack_require__(147); var _reactAddonsShallowCompare2 = _interopRequireDefault(_reactAddonsShallowCompare); -var _reactMomentProptypes = __webpack_require__(146); +var _reactMomentProptypes = __webpack_require__(145); var _reactMomentProptypes2 = _interopRequireDefault(_reactMomentProptypes); -var _airbnbPropTypes = __webpack_require__(88); +var _airbnbPropTypes = __webpack_require__(89); var _reactWithStyles = __webpack_require__(112); @@ -55386,13 +55917,13 @@ var _getPhrasePropTypes = __webpack_require__(111); var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes); -var _getCalendarDaySettings = __webpack_require__(263); +var _getCalendarDaySettings = __webpack_require__(264); var _getCalendarDaySettings2 = _interopRequireDefault(_getCalendarDaySettings); var _constants = __webpack_require__(78); -var _DefaultTheme = __webpack_require__(237); +var _DefaultTheme = __webpack_require__(238); var _DefaultTheme2 = _interopRequireDefault(_DefaultTheme); @@ -55847,7 +56378,7 @@ exports['default'] = (0, _reactWithStyles.withStyles)(function (_ref2) { })(CustomizableCalendarDay); /***/ }), -/* 408 */ +/* 412 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -55911,7 +56442,7 @@ function getCalendarMonthWeeks(month, enableOutsideDays) { } /***/ }), -/* 409 */ +/* 413 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -55926,7 +56457,7 @@ function isTransitionEndSupported() { } /***/ }), -/* 410 */ +/* 414 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -55946,7 +56477,7 @@ function getTransformStyles(transformValue) { } /***/ }), -/* 411 */ +/* 415 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -55961,7 +56492,7 @@ var _moment = __webpack_require__(44); var _moment2 = _interopRequireDefault(_moment); -var _isSameMonth = __webpack_require__(266); +var _isSameMonth = __webpack_require__(267); var _isSameMonth2 = _interopRequireDefault(_isSameMonth); @@ -55973,7 +56504,7 @@ function isPrevMonth(a, b) { } /***/ }), -/* 412 */ +/* 416 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -55988,7 +56519,7 @@ var _moment = __webpack_require__(44); var _moment2 = _interopRequireDefault(_moment); -var _isSameMonth = __webpack_require__(266); +var _isSameMonth = __webpack_require__(267); var _isSameMonth2 = _interopRequireDefault(_isSameMonth); @@ -56000,7 +56531,7 @@ function isNextMonth(a, b) { } /***/ }), -/* 413 */ +/* 417 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -56012,7 +56543,7 @@ Object.defineProperty(exports, "__esModule", { var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; -var _object = __webpack_require__(94); +var _object = __webpack_require__(95); var _object2 = _interopRequireDefault(_object); @@ -56024,7 +56555,7 @@ var _propTypes = __webpack_require__(28); var _propTypes2 = _interopRequireDefault(_propTypes); -var _airbnbPropTypes = __webpack_require__(88); +var _airbnbPropTypes = __webpack_require__(89); var _reactWithStyles = __webpack_require__(112); @@ -56034,23 +56565,23 @@ var _getPhrasePropTypes = __webpack_require__(111); var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes); -var _LeftArrow = __webpack_require__(414); +var _LeftArrow = __webpack_require__(418); var _LeftArrow2 = _interopRequireDefault(_LeftArrow); -var _RightArrow = __webpack_require__(415); +var _RightArrow = __webpack_require__(419); var _RightArrow2 = _interopRequireDefault(_RightArrow); -var _ChevronUp = __webpack_require__(416); +var _ChevronUp = __webpack_require__(420); var _ChevronUp2 = _interopRequireDefault(_ChevronUp); -var _ChevronDown = __webpack_require__(417); +var _ChevronDown = __webpack_require__(421); var _ChevronDown2 = _interopRequireDefault(_ChevronDown); -var _ScrollableOrientationShape = __webpack_require__(147); +var _ScrollableOrientationShape = __webpack_require__(146); var _ScrollableOrientationShape2 = _interopRequireDefault(_ScrollableOrientationShape); @@ -56309,7 +56840,7 @@ exports['default'] = (0, _reactWithStyles.withStyles)(function (_ref2) { })(DayPickerNavigation); /***/ }), -/* 414 */ +/* 418 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -56345,7 +56876,7 @@ LeftArrow.defaultProps = { exports['default'] = LeftArrow; /***/ }), -/* 415 */ +/* 419 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -56381,7 +56912,7 @@ RightArrow.defaultProps = { exports['default'] = RightArrow; /***/ }), -/* 416 */ +/* 420 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -56417,7 +56948,7 @@ ChevronUp.defaultProps = { exports['default'] = ChevronUp; /***/ }), -/* 417 */ +/* 421 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -56453,7 +56984,7 @@ ChevronDown.defaultProps = { exports['default'] = ChevronDown; /***/ }), -/* 418 */ +/* 422 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -56468,7 +56999,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); -var _object = __webpack_require__(94); +var _object = __webpack_require__(95); var _object2 = _interopRequireDefault(_object); @@ -56480,7 +57011,7 @@ var _propTypes = __webpack_require__(28); var _propTypes2 = _interopRequireDefault(_propTypes); -var _airbnbPropTypes = __webpack_require__(88); +var _airbnbPropTypes = __webpack_require__(89); var _reactWithStyles = __webpack_require__(112); @@ -56490,11 +57021,11 @@ var _getPhrasePropTypes = __webpack_require__(111); var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes); -var _KeyboardShortcutRow = __webpack_require__(419); +var _KeyboardShortcutRow = __webpack_require__(423); var _KeyboardShortcutRow2 = _interopRequireDefault(_KeyboardShortcutRow); -var _CloseButton = __webpack_require__(420); +var _CloseButton = __webpack_require__(424); var _CloseButton2 = _interopRequireDefault(_CloseButton); @@ -56962,7 +57493,7 @@ exports['default'] = (0, _reactWithStyles.withStyles)(function (_ref3) { })(DayPickerKeyboardShortcuts); /***/ }), -/* 419 */ +/* 423 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -56974,7 +57505,7 @@ Object.defineProperty(exports, "__esModule", { var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; -var _object = __webpack_require__(94); +var _object = __webpack_require__(95); var _object2 = _interopRequireDefault(_object); @@ -56986,7 +57517,7 @@ var _propTypes = __webpack_require__(28); var _propTypes2 = _interopRequireDefault(_propTypes); -var _airbnbPropTypes = __webpack_require__(88); +var _airbnbPropTypes = __webpack_require__(89); var _reactWithStyles = __webpack_require__(112); @@ -57077,7 +57608,7 @@ exports['default'] = (0, _reactWithStyles.withStyles)(function (_ref2) { })(KeyboardShortcutRow); /***/ }), -/* 420 */ +/* 424 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -57114,7 +57645,7 @@ CloseButton.defaultProps = { exports['default'] = CloseButton; /***/ }), -/* 421 */ +/* 425 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -57145,7 +57676,7 @@ function getNumberOfCalendarMonthWeeks(month) { } /***/ }), -/* 422 */ +/* 426 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -57160,7 +57691,7 @@ function getActiveElement() { } /***/ }), -/* 423 */ +/* 427 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -57184,7 +57715,7 @@ var external = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEle /***/ }), -/* 424 */ +/* 428 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -57208,10 +57739,6 @@ var textColor = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEl /***/ }), -/* 425 */, -/* 426 */, -/* 427 */, -/* 428 */, /* 429 */, /* 430 */, /* 431 */, @@ -57267,19 +57794,23 @@ var textColor = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEl /* 481 */, /* 482 */, /* 483 */, -/* 484 */ +/* 484 */, +/* 485 */, +/* 486 */, +/* 487 */, +/* 488 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ToolbarItem; }); /* unused harmony export useToolbarItem */ -/* harmony import */ var reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(50); -/* harmony import */ var reakit_system_createHook__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(49); +/* harmony import */ var reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(51); +/* harmony import */ var reakit_system_createHook__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(50); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(13); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var reakit_warning__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(81); /* harmony import */ var _Composite_CompositeItem_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(123); -/* harmony import */ var _ToolbarState_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(170); +/* harmony import */ var _ToolbarState_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(173); diff --git a/wp-includes/js/dist/components.min.js b/wp-includes/js/dist/components.min.js index fc478955a4..202798ac38 100644 --- a/wp-includes/js/dist/components.min.js +++ b/wp-includes/js/dist/components.min.js @@ -1,10 +1,10 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.components=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=272)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.lodash}()},,,function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},,function(e,t){!function(){e.exports=this.wp.primitives}()},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t=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){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";n.d(t,"a",(function(){return a}));var r=n(27);var o=n(37),i=n(30);function a(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(o.a)(e)||Object(i.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t){!function(){e.exports=this.wp.keycodes}()},function(e,t,n){"use strict";function r(e,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[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=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 i}));var r=n(13),o=n(59);function i(e){var t=Object(r.useRef)(e);return Object(o.a)((function(){t.current=e})),t}},function(e,t,n){"use strict";function r(e,t,n,r,o,i,a){try{var c=e[i](a),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var a=e.apply(t,n);function c(e){r(a,o,i,c,s,"next",e)}function s(e){r(a,o,i,c,s,"throw",e)}c(void 0)}))}}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";function r(e){return e?e.ownerDocument||e:window.document}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(13),o=n(76);function i(e,t){Object(r.useDebugValue)(e);var n=Object(r.useContext)(o.a);return null!=n[e]?n[e]:t}var a=n(55);var c=n(56);function s(e){var t,n,o,s=(o=e.compose,Array.isArray(o)?o:void 0!==o?[o]:[]),u=function(t,n){if(e.useOptions&&(t=e.useOptions(t,n)),e.name&&(t=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var o="use"+e+"Options";Object(r.useDebugValue)(o);var c=i(o);return c?Object(a.a)(Object(a.a)({},t),c(t,n)):t}(e.name,t,n)),e.compose)for(var o,c=Object(a.c)(s);!(o=c()).done;){t=o.value.__useOptions(t,n)}return t},l=function(t,n,o){if(void 0===t&&(t={}),void 0===n&&(n={}),void 0===o&&(o=!1),o||(t=u(t,n)),e.useProps&&(n=e.useProps(t,n)),e.name&&(n=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var o="use"+e+"Props";Object(r.useDebugValue)(o);var a=i(o);return a?a(t,n):n}(e.name,t,n)),e.compose)if(e.useComposeOptions&&(t=e.useComposeOptions(t,n)),e.useComposeProps)n=e.useComposeProps(t,n);else for(var c,l=Object(a.c)(s);!(c=l()).done;){n=(0,c.value)(t,n,!0)}var d={},f=n||{};for(var p in f)void 0!==f[p]&&(d[p]=f[p]);return d};l.__useOptions=u;var d=s.reduce((function(e,t){return e.push.apply(e,t.__keys||[]),e}),[]);return l.__keys=[].concat(d,(null===(t=e.useState)||void 0===t?void 0:t.__keys)||[],e.keys||[]),l.unstable_propsAreEqual=e.propsAreEqual||(null===(n=s[0])||void 0===n?void 0:n.unstable_propsAreEqual)||c.a,l}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(13),o=n(55),i=n(79);function a(e,t){for(var n={},r={},o=0,i=Object.keys(e);o=0?n[a]=e[a]:r[a]=e[a]}return[n,r]}var c=n(56);function s(e){var t,n=e.as,s=e.useHook,u=e.memo,l=e.propsAreEqual,d=void 0===l?null==s?void 0:s.unstable_propsAreEqual:l,f=e.keys,p=void 0===f?(null==s?void 0:s.__keys)||[]:f,b=e.useCreateElement,h=void 0===b?i.a:b,v=function(e,t){var r=e.as,i=void 0===r?n:r,c=Object(o.b)(e,["as"]);if(s){var u,l=a(c,p),d=l[0],f=l[1],b=s(d,Object(o.a)({ref:t},f)),v=b.wrapElement,m=Object(o.b)(b,["wrapElement"]),y=(null===(u=i.render)||void 0===u?void 0:u.__keys)||i.__keys,g=y&&a(c,y)[0],O=g?Object(o.a)(Object(o.a)({},m),g):m,j=h(i,O);return v?v(j):j}return h(i,Object(o.a)({ref:t},c))};return t=v,v=Object(r.forwardRef)(t),u&&(v=function(e,t){return Object(r.memo)(e,t)}(v,d)),v.__keys=p,v.unstable_propsAreEqual=d||c.a,v}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return m})),n.d(t,"c",(function(){return b})),n.d(t,"d",(function(){return p})),n.d(t,"e",(function(){return g})),n.d(t,"f",(function(){return u})),n.d(t,"g",(function(){return x}));var r=n(16),o=n(13),i=n(59),a=n(62),c=n(61),s=n(65);function u(e){return e.slice().reverse()}function l(e,t){return Boolean(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function d(e,t){return e.findIndex((function(e){return!(!e.ref.current||!t.ref.current)&&l(t.ref.current,e.ref.current)}))}function f(e,t){return t?e.find((function(e){return!e.disabled&&e.id!==t})):e.find((function(e){return!e.disabled}))}function p(e,t){if(t)return null==e?void 0:e.find((function(e){return e.id===t&&!e.disabled}))}function b(e){for(var t,n=[[]],o=function(){var e=t.value,r=n.find((function(t){return!t[0]||t[0].groupId===e.groupId}));r?r.push(e):n.push([e])},i=Object(r.c)(e);!(t=i()).done;)o();return n}function h(e){for(var t,n=0,o=Object(r.c)(e);!(t=o()).done;){var i=t.value.length;i>n&&(n=i)}return n}function v(e){for(var t=b(e),n=h(t),o=[],i=0;i=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";function r(e,t){if(e===t)return!0;if(!e)return!1;if(!t)return!1;if("object"!=typeof e)return!1;if("object"!=typeof t)return!1;var n=Object.keys(e),r=Object.keys(t),o=n.length;if(r.length!==o)return!1;for(var i=0,a=n;i1&&"boolean"!=typeof t)throw new TypeError('"allowMissing" argument must be a boolean');for(var n=h(e),i=v("%"+(n.length>0?n[0]:"")+"%",t),a=1;a=n.length){var c=o(i,n[a]);if(!t&&!(n[a]in i))throw new r("base intrinsic for "+e+" exists, but the property is not available.");i=c&&"get"in c&&!("originalValue"in c.get)?c.get:i[n[a]]}else i=i[n[a]];return i}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(13),o="undefined"==typeof window?r.useEffect:r.useLayoutEffect},,function(e,t,n){"use strict";function r(e,t){return function(e){return"function"==typeof e}(e)?e(t):e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(13);function o(e){return Object(r.useState)(e)[0]}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(13);function o(e,t){void 0===t&&(t=null),e&&("function"==typeof e?e(t):e.current=t)}function i(e,t){return Object(r.useMemo)((function(){return null==e&&null==t?null:function(n){o(e,n),o(t,n)}}),[e,t])}},function(e,t){!function(){e.exports=this.wp.isShallowEqual}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(13),o=n(62),i=n(68);function a(e){void 0===e&&(e={});var t=Object(o.a)(e).baseId,n=Object(r.useContext)(i.a),a=Object(r.useRef)(0),c=Object(r.useState)((function(){return t||n()}));return{baseId:c[0],unstable_setBaseId:c[1],unstable_idCountRef:a}}a.__keys=["baseId","unstable_setBaseId","unstable_idCountRef"]},function(e,t,n){var r;!function(o){var i=/^\s+/,a=/\s+$/,c=0,s=o.round,u=o.min,l=o.max,d=o.random;function f(e,t){if(t=t||{},(e=e||"")instanceof f)return e;if(!(this instanceof f))return new f(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,r=null,c=null,s=null,d=!1,f=!1;"string"==typeof e&&(e=function(e){e=e.replace(i,"").replace(a,"").toLowerCase();var t,n=!1;if(D[e])e=D[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=K.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=K.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=K.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=K.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=K.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=K.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=K.hex8.exec(e))return{r:N(t[1]),g:N(t[2]),b:N(t[3]),a:z(t[4]),format:n?"name":"hex8"};if(t=K.hex6.exec(e))return{r:N(t[1]),g:N(t[2]),b:N(t[3]),format:n?"name":"hex"};if(t=K.hex4.exec(e))return{r:N(t[1]+""+t[1]),g:N(t[2]+""+t[2]),b:N(t[3]+""+t[3]),a:z(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=K.hex3.exec(e))return{r:N(t[1]+""+t[1]),g:N(t[2]+""+t[2]),b:N(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==typeof e&&(W(e.r)&&W(e.g)&&W(e.b)?(p=e.r,b=e.g,h=e.b,t={r:255*I(p,255),g:255*I(b,255),b:255*I(h,255)},d=!0,f="%"===String(e.r).substr(-1)?"prgb":"rgb"):W(e.h)&&W(e.s)&&W(e.v)?(r=L(e.s),c=L(e.v),t=function(e,t,n){e=6*I(e,360),t=I(t,100),n=I(n,100);var r=o.floor(e),i=e-r,a=n*(1-t),c=n*(1-i*t),s=n*(1-(1-i)*t),u=r%6;return{r:255*[n,c,a,a,s,n][u],g:255*[s,n,n,c,a,a][u],b:255*[a,a,s,n,n,c][u]}}(e.h,r,c),d=!0,f="hsv"):W(e.h)&&W(e.s)&&W(e.l)&&(r=L(e.s),s=L(e.l),t=function(e,t,n){var r,o,i;function a(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=I(e,360),t=I(t,100),n=I(n,100),0===t)r=o=i=n;else{var c=n<.5?n*(1+t):n+t-n*t,s=2*n-c;r=a(s,c,e+1/3),o=a(s,c,e),i=a(s,c,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,r,s),d=!0,f="hsl"),e.hasOwnProperty("a")&&(n=e.a));var p,b,h;return n=T(n),{ok:d,format:e.format||f,r:u(255,l(t.r,0)),g:u(255,l(t.g,0)),b:u(255,l(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=s(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=s(this._r)),this._g<1&&(this._g=s(this._g)),this._b<1&&(this._b=s(this._b)),this._ok=n.ok,this._tc_id=c++}function p(e,t,n){e=I(e,255),t=I(t,255),n=I(n,255);var r,o,i=l(e,t,n),a=u(e,t,n),c=(i+a)/2;if(i==a)r=o=0;else{var s=i-a;switch(o=c>.5?s/(2-i-a):s/(i+a),i){case e:r=(t-n)/s+(t>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(f(r));return i}function P(e,t){t=t||6;for(var n=f(e).toHsv(),r=n.h,o=n.s,i=n.v,a=[],c=1/t;t--;)a.push(f({h:r,s:o,v:i})),i=(i+c)%1;return a}f.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:o.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=T(e),this._roundA=s(100*this._a)/100,this},toHsv:function(){var e=b(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=b(this._r,this._g,this._b),t=s(360*e.h),n=s(100*e.s),r=s(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=p(this._r,this._g,this._b),t=s(360*e.h),n=s(100*e.s),r=s(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return h(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var i=[A(s(e).toString(16)),A(s(t).toString(16)),A(s(n).toString(16)),A(F(r))];if(o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1))return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0);return i.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:s(this._r),g:s(this._g),b:s(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+s(this._r)+", "+s(this._g)+", "+s(this._b)+")":"rgba("+s(this._r)+", "+s(this._g)+", "+s(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:s(100*I(this._r,255))+"%",g:s(100*I(this._g,255))+"%",b:s(100*I(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+s(100*I(this._r,255))+"%, "+s(100*I(this._g,255))+"%, "+s(100*I(this._b,255))+"%)":"rgba("+s(100*I(this._r,255))+"%, "+s(100*I(this._g,255))+"%, "+s(100*I(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(M[h(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+v(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=f(e);n="#"+v(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return f(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(O,arguments)},brighten:function(){return this._applyModification(j,arguments)},darken:function(){return this._applyModification(w,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(y,arguments)},greyscale:function(){return this._applyModification(g,arguments)},spin:function(){return this._applyModification(k,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(C,arguments)},complement:function(){return this._applyCombination(_,arguments)},monochromatic:function(){return this._applyCombination(P,arguments)},splitcomplement:function(){return this._applyCombination(x,arguments)},triad:function(){return this._applyCombination(S,arguments)},tetrad:function(){return this._applyCombination(E,arguments)}},f.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:L(e[r]));e=n}return f(e,t)},f.equals=function(e,t){return!(!e||!t)&&f(e).toRgbString()==f(t).toRgbString()},f.random=function(){return f.fromRatio({r:d(),g:d(),b:d()})},f.mix=function(e,t,n){n=0===n?0:n||50;var r=f(e).toRgb(),o=f(t).toRgb(),i=n/100;return f({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},f.readability=function(e,t){var n=f(e),r=f(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},f.isReadable=function(e,t,n){var r,o,i=f.readability(e,t);switch(o=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=i>=4.5;break;case"AAlarge":o=i>=3;break;case"AAAsmall":o=i>=7}return o},f.mostReadable=function(e,t,n){var r,o,i,a,c=null,s=0;o=(n=n||{}).includeFallbackColors,i=n.level,a=n.size;for(var u=0;us&&(s=r,c=f(t[u]));return f.isReadable(e,c,{level:i,size:a})||!o?c:(n.includeFallbackColors=!1,f.mostReadable(e,["#fff","#000"],n))};var D=f.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},M=f.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(D);function T(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function I(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=u(t,l(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function R(e){return u(1,l(0,e))}function N(e){return parseInt(e,16)}function A(e){return 1==e.length?"0"+e:""+e}function L(e){return e<=1&&(e=100*e+"%"),e}function F(e){return o.round(255*parseFloat(e)).toString(16)}function z(e){return N(e)/255}var B,H,V,K=(H="[\\s|\\(]+("+(B="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+B+")[,|\\s]+("+B+")\\s*\\)?",V="[\\s|\\(]+("+B+")[,|\\s]+("+B+")[,|\\s]+("+B+")[,|\\s]+("+B+")\\s*\\)?",{CSS_UNIT:new RegExp(B),rgb:new RegExp("rgb"+H),rgba:new RegExp("rgba"+V),hsl:new RegExp("hsl"+H),hsla:new RegExp("hsla"+V),hsv:new RegExp("hsv"+H),hsva:new RegExp("hsva"+V),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function W(e){return!!K.CSS_UNIT.exec(e)}e.exports?e.exports=f:void 0===(r=function(){return f}.call(t,n,t,e))||(e.exports=r)}(Math)},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(16),o=n(50),i=n(49),a=n(56),c=Object(i.a)({name:"Box",keys:["unstable_system"],propsAreEqual:function(e,t){var n=e.unstable_system,o=Object(r.a)(e,["unstable_system"]),i=t.unstable_system,c=Object(r.a)(t,["unstable_system"]);return!(n!==i&&!Object(a.a)(n,i))&&Object(a.a)(o,c)}});Object(o.a)({as:"div",useHook:c})},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(13);var o=Object(r.createContext)((function(e){return void 0===e&&(e="id"),(e?e+"-":"")+Math.random().toString(32).substr(2,6)}))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(57);function o(e){var t=Object(r.a)(e);if(!t)return!1;if(e.contains(t))return!0;var n=t.getAttribute("aria-activedescendant");return!!n&&(n===e.id||!!e.querySelector("#"+n))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=["button","color","file","image","reset","submit"];function o(e){if("BUTTON"===e.tagName)return!0;if("INPUT"===e.tagName){var t=e;return-1!==r.indexOf(t.type)}return!1}},function(e,t,n){"use strict";function r(e,t){return"matches"in e?e.matches(t):"msMatchesSelector"in e?e.msMatchesSelector(t):e.webkitMatchesSelector(t)}function o(e,t){if("closest"in e)return e.closest(t);do{if(r(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return s}));var i=n(57),a="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])";function c(e){return r(e,a)&&function(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0}(e)}function s(e){for(;e&&!c(e);)e=o(e,a);return e}function u(e){return Object(i.a)(e)===e}function l(e,t){var n=void 0===t?{}:t,r=n.isActive,o=void 0===r?u:r,i=n.preventScroll;return o(e)?-1:(e.focus({preventScroll:i}),o(e)?-1:requestAnimationFrame((function(){e.focus({preventScroll:i})})))}},function(e,t,n){"use strict";function r(e){return t=e.currentTarget,n=e.target,!(t===n||t.contains(n));var t,n}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(16),o=n(50),i=n(49),a=n(67),c=n(13),s=n(63),u=n(71),l=(n(81),n(46)),d=n(59),f=n(70),p=n(73),b=n(57),h=n(72);function v(e){return"undefined"!=typeof window&&-1!==window.navigator.userAgent.indexOf(e)}var m=v("Mac")&&!v("Chrome")&&(v("Safari")||v("Firefox"));function y(e){Object(f.a)(e)||e.focus()}var g=Object(i.a)({name:"Tabbable",compose:a.a,keys:["disabled","focusable"],useOptions:function(e,t){var n=t.disabled;return Object(r.b)({disabled:n},e)},useProps:function(e,t){var n=t.ref,o=t.tabIndex,i=t.onClick,a=t.onMouseDown,f=t.style,v=Object(r.a)(t,["ref","tabIndex","onClick","onMouseDown","style"]),g=Object(c.useRef)(null),O=Object(l.a)(i),j=Object(l.a)(a),w=e.disabled&&!e.focusable,k=Object(c.useState)(!0),_=k[0],S=k[1],E=_?o:o||0,x=e.disabled?Object(r.b)({pointerEvents:"none"},f):f,C=function(){if(m){var e=Object(c.useState)(null),t=e[0],n=e[1];return Object(c.useEffect)((function(){t&&(y(t),n(null))}),[t]),Object(c.useCallback)((function(e){var t=e.currentTarget;if(!Object(p.a)(e)&&Object(u.a)(t)){var r=Object(b.a)(t);if(r){var o="BODY"===r.tagName,i=Object(h.b)(t.parentElement);if(r===i||o&&!i)n(t);else if(i){i.addEventListener("focusin",(function(){return n(t)}),{once:!0})}else{r.addEventListener("blur",(function(){return y(t)}),{once:!0})}}}}),[])}}();Object(d.a)((function(){var e,t=g.current;t&&("BUTTON"!==(e=t).tagName&&"INPUT"!==e.tagName&&"SELECT"!==e.tagName&&"TEXTAREA"!==e.tagName&&"A"!==e.tagName&&"AUDIO"!==e.tagName&&"VIDEO"!==e.tagName&&S(!1))}),[]);var P=Object(c.useCallback)((function(t){var n;if(e.disabled)return t.stopPropagation(),void t.preventDefault();null===(n=O.current)||void 0===n||n.call(O,t)}),[e.disabled]),D=Object(c.useCallback)((function(t){var n;if(e.disabled)return t.stopPropagation(),void t.preventDefault();null===(n=j.current)||void 0===n||n.call(j,t),t.defaultPrevented||null==C||C(t)}),[e.disabled,C]);return Object(r.b)({ref:Object(s.a)(g,n),style:x,tabIndex:w?void 0:E,disabled:!(!w||!_)||void 0,"aria-disabled":!!e.disabled||void 0,onClick:P,onMouseDown:D},v)}});Object(o.a)({as:"div",useHook:g})},function(e,t){!function(){e.exports=this.wp.date}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(13),o=Object(r.createContext)({})},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.DISPLAY_FORMAT="L",t.ISO_FORMAT="YYYY-MM-DD",t.ISO_MONTH_FORMAT="YYYY-MM",t.START_DATE="startDate",t.END_DATE="endDate",t.HORIZONTAL_ORIENTATION="horizontal",t.VERTICAL_ORIENTATION="vertical",t.VERTICAL_SCROLLABLE="verticalScrollable",t.ICON_BEFORE_POSITION="before",t.ICON_AFTER_POSITION="after",t.INFO_POSITION_TOP="top",t.INFO_POSITION_BOTTOM="bottom",t.INFO_POSITION_BEFORE="before",t.INFO_POSITION_AFTER="after",t.ANCHOR_LEFT="left",t.ANCHOR_RIGHT="right",t.OPEN_DOWN="down",t.OPEN_UP="up",t.DAY_SIZE=39,t.BLOCKED_MODIFIER="blocked",t.WEEKDAYS=[0,1,2,3,4,5,6],t.FANG_WIDTH_PX=20,t.FANG_HEIGHT_PX=10,t.DEFAULT_VERTICAL_SPACING=22,t.MODIFIER_KEY_NAMES=new Set(["Shift","Control","Alt","Meta"])},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(13),o=n(76),i=n(55);var a=function(e,t,n){void 0===n&&(n=t.children);var a=Object(r.useContext)(o.a);if(a.useCreateElement)return a.useCreateElement(e,t,n);if("string"==typeof e&&function(e){return"function"==typeof e}(n)){t.children;return n(Object(i.b)(t,["children"]))}return Object(r.createElement)(e,t,n)}},,function(e,t,n){"use strict";n(108),n(13)},function(e,t,n){"use strict";function r(e){var t=void 0===e?{}:e,n=t.keyMap,r=t.onKey,o=t.stopPropagation,i=t.onKeyDown,a=t.shouldKeyDown,c=void 0===a?function(){return!0}:a,s=t.preventDefault,u=void 0===s||s;return function(e){if(n){var t,a="function"==typeof n?n(e):n,s="function"==typeof u?u(e):u,l="function"==typeof o?o(e):o;if(e.key in a){var d=a[e.key];if("function"==typeof d&&c(e))return s&&e.preventDefault(),l&&e.stopPropagation(),r&&r(e),void d(e)}if(i&&"current"in i)null===(t=i.current)||void 0===t||t.call(i,e);else null==i||i(e)}}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(21),o=n(20),i=n(22),a=n(23),c=n(17),s=n(0),u=n(2),l=n(115),d=n(169);function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(c.a)(e);if(t){var o=Object(c.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(a.a)(this,n)}}var p=function(e){Object(i.a)(n,e);var t=f(n);function n(){var e;return Object(r.a)(this,n),(e=t.apply(this,arguments)).delayedSetIsOver=Object(u.debounce)((function(t){return e.setState({isOver:t})}),700),e.cancelIsMouseDown=e.createSetIsMouseDown(!1),e.isInMouseDown=!1,e.state={isOver:!1},e}return Object(o.a)(n,[{key:"componentWillUnmount",value:function(){this.delayedSetIsOver.cancel(),document.removeEventListener("mouseup",this.cancelIsMouseDown)}},{key:"emitToChild",value:function(e,t){var n=this.props.children;if(1===s.Children.count(n)){var r=s.Children.only(n);"function"==typeof r.props[e]&&r.props[e](t)}}},{key:"createToggleIsOver",value:function(e,t){var n=this;return function(r){if(n.emitToChild(e,r),!(r.currentTarget.disabled||"focus"===r.type&&n.isInMouseDown)){n.delayedSetIsOver.cancel();var o=Object(u.includes)(["focus","mouseenter"],r.type);o!==n.state.isOver&&(t?n.delayedSetIsOver(o):n.setState({isOver:o}))}}}},{key:"createSetIsMouseDown",value:function(e){var t=this;return function(n){t.emitToChild(e?"onMouseDown":"onMouseUp",n),document[e?"addEventListener":"removeEventListener"]("mouseup",t.cancelIsMouseDown),t.isInMouseDown=e}}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.position,r=e.text,o=e.shortcut;if(1!==s.Children.count(t))return t;var i=s.Children.only(t),a=this.state.isOver;return Object(s.cloneElement)(i,{onMouseEnter:this.createToggleIsOver("onMouseEnter",!0),onMouseLeave:this.createToggleIsOver("onMouseLeave"),onClick:this.createToggleIsOver("onClick"),onFocus:this.createToggleIsOver("onFocus"),onBlur:this.createToggleIsOver("onBlur"),onMouseDown:this.createSetIsMouseDown(!0),children:Object(s.concatChildren)(i.props.children,a&&Object(s.createElement)(l.a,{focusOnMount:!1,position:n,className:"components-tooltip","aria-hidden":"true",animate:!1,noArrow:!0},r,Object(s.createElement)(d.a,{className:"components-tooltip__shortcut",shortcut:o})))})}}]),n}(s.Component);t.a=p},function(e,t,n){"use strict";var r=n(5),o=n(8),i=n(14),a=n(0),c=n(7),s=n(151);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t1)for(var n=1;n2?arguments[2]:{},i=r(t);o&&(i=a.call(i,Object.getOwnPropertySymbols(t)));for(var c=0;c1&&void 0!==arguments[1]?arguments[1]:{},n=t.stylesPropName,c=void 0===n?"styles":n,l=t.themePropName,f=void 0===l?"theme":l,m=t.cssPropName,w=void 0===m?"css":m,k=t.flushBefore,_=void 0!==k&&k,S=t.pureComponent,E=void 0!==S&&S,x=void 0,C=void 0,P=void 0,D=void 0,M=g(E);function T(e){return e===u.DIRECTIONS.LTR?d.default.resolveLTR:d.default.resolveRTL}function I(e){return e===u.DIRECTIONS.LTR?P:D}function R(t,n){var r=I(t),o=t===u.DIRECTIONS.LTR?x:C,i=d.default.get();return o&&r===i||(t===u.DIRECTIONS.RTL?(C=e?d.default.createRTL(e):y,D=i,o=C):(x=e?d.default.createLTR(e):y,P=i,o=x)),o}function N(e,t){return{resolveMethod:T(e),styleDef:R(e)}}return function(e){var t=e.displayName||e.name||"Component",n=function(t){function n(e,t){p(this,n);var r=b(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t)),o=r.context[u.CHANNEL]?r.context[u.CHANNEL].getState():j;return r.state=N(o),r}return h(n,t),o(n,[{key:"componentDidMount",value:function(){var e=this;this.context[u.CHANNEL]&&(this.channelUnsubscribe=this.context[u.CHANNEL].subscribe((function(t){e.setState(N(t))})))}},{key:"componentWillUnmount",value:function(){this.channelUnsubscribe&&this.channelUnsubscribe()}},{key:"render",value:function(){var t;_&&d.default.flush();var n=this.state,o=n.resolveMethod,i=n.styleDef;return a.default.createElement(e,r({},this.props,(v(t={},f,d.default.get()),v(t,c,i()),v(t,w,o),t)))}}]),n}(M);return n.WrappedComponent=e,n.displayName="withStyles("+String(t)+")",n.contextTypes=O,e.propTypes&&(n.propTypes=(0,i.default)({},e.propTypes),delete n.propTypes[c],delete n.propTypes[f],delete n.propTypes[w]),e.defaultProps&&(n.defaultProps=(0,i.default)({},e.defaultProps)),(0,s.default)(n,e)}};var i=f(n(94)),a=f(n(13)),c=f(n(28)),s=f(n(384)),u=n(387),l=f(n(388)),d=f(n(236));function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.css=d.default.resolveLTR,t.withStylesPropTypes={styles:c.default.object.isRequired,theme:c.default.object.isRequired,css:c.default.func.isRequired};var m={},y=function(){return m};function g(e){if(e){if(!a.default.PureComponent)throw new ReferenceError("withStyles() pureComponent option requires React 15.3.0 or later");return a.default.PureComponent}return a.default.Component}var O=v({},u.CHANNEL,l.default),j=u.DIRECTIONS.LTR},,function(e,t,n){"use strict";var r=n(8),o=n(21),i=n(20),a=n(15),c=n(22),s=n(23),u=n(17),l=n(0),d=n(2),f=n(10);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(s.a)(this,n)}}var b=["button","submit"];t.a=Object(f.createHigherOrderComponent)((function(e){return function(t){Object(c.a)(s,t);var n=p(s);function s(){var e;return Object(o.a)(this,s),(e=n.apply(this,arguments)).bindNode=e.bindNode.bind(Object(a.a)(e)),e.cancelBlurCheck=e.cancelBlurCheck.bind(Object(a.a)(e)),e.queueBlurCheck=e.queueBlurCheck.bind(Object(a.a)(e)),e.normalizeButtonFocus=e.normalizeButtonFocus.bind(Object(a.a)(e)),e}return Object(i.a)(s,[{key:"componentWillUnmount",value:function(){this.cancelBlurCheck()}},{key:"bindNode",value:function(e){e?this.node=e:(delete this.node,this.cancelBlurCheck())}},{key:"queueBlurCheck",value:function(e){var t=this;e.persist(),this.preventBlurCheck||(this.blurCheckTimeout=setTimeout((function(){document.hasFocus()?"function"==typeof t.node.handleFocusOutside&&t.node.handleFocusOutside(e):e.preventDefault()}),0))}},{key:"cancelBlurCheck",value:function(){clearTimeout(this.blurCheckTimeout)}},{key:"normalizeButtonFocus",value:function(e){var t=e.type,n=e.target;Object(d.includes)(["mouseup","touchend"],t)?this.preventBlurCheck=!1:function(e){switch(e.nodeName){case"A":case"BUTTON":return!0;case"INPUT":return Object(d.includes)(b,e.type)}return!1}(n)&&(this.preventBlurCheck=!0)}},{key:"render",value:function(){return Object(l.createElement)("div",{onFocus:this.cancelBlurCheck,onMouseDown:this.normalizeButtonFocus,onMouseUp:this.normalizeButtonFocus,onTouchStart:this.normalizeButtonFocus,onTouchEnd:this.normalizeButtonFocus,onBlur:this.queueBlurCheck},Object(l.createElement)(e,Object(r.a)({ref:this.bindNode},this.props)))}}]),s}(l.Component)}),"withFocusOutside")},function(e,t,n){"use strict";var r=n(8),o=n(12),i=n(14),a=n(0),c=n(9),s=n.n(c),u=n(29),l=n(19),d=n(35),f=n.n(d),p=n(10),b=n(157),h=n(5);function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t0?c/2:u)+(u+c/2>window.innerWidth?window.innerWidth-u:c/2)},d=e.left;"right"===r?d=e.right:"middle"!==i&&(d=u);var f=e.right;"left"===r?f=e.left:"middle"!==i&&(f=u);var p,b={popoverLeft:d,contentWidth:d-c>0?c:d},h={popoverLeft:f,contentWidth:f+c>window.innerWidth?window.innerWidth-f:c},v=n,m=null;if(!o)if("center"===n&&l.contentWidth===c)v="center";else if("left"===n&&b.contentWidth===c)v="left";else if("right"===n&&h.contentWidth===c)v="right";else{var y="left"===(v=b.contentWidth>h.contentWidth?"left":"right")?b.contentWidth:h.contentWidth;m=y!==c?y:null}if(p="center"===v?l.popoverLeft:"left"===v?b.popoverLeft:h.popoverLeft,a){var g=a.getBoundingClientRect();p=Math.min(p,g.right-c)}return{xAxis:v,popoverLeft:p,contentWidth:m}}function g(e,t,n,r,o,i,a){var c=t.height;if(o){var s=(Object(u.getScrollContainer)(i)||document.body).getBoundingClientRect().top+c-a;if(e.top<=s)return{yAxis:n,popoverTop:Math.min(e.bottom,s)}}var l=e.top+e.height/2;"bottom"===r?l=e.bottom:"top"===r&&(l=e.top);var d={popoverTop:l,contentHeight:(l-c/2>0?c/2:l)+(l+c/2>window.innerHeight?window.innerHeight-l:c/2)},f={popoverTop:e.top,contentHeight:e.top-10-c>0?c:e.top-10},p={popoverTop:e.bottom,contentHeight:e.bottom+10+c>window.innerHeight?window.innerHeight-10-e.bottom:c},b=n,h=null;if(!o)if("middle"===n&&d.contentHeight===c)b="middle";else if("top"===n&&f.contentHeight===c)b="top";else if("bottom"===n&&p.contentHeight===c)b="bottom";else{var v="top"===(b=f.contentHeight>p.contentHeight?"top":"bottom")?f.contentHeight:p.contentHeight;h=v!==c?v:null}return{yAxis:b,popoverTop:"middle"===b?d.popoverTop:"top"===b?f.popoverTop:p.popoverTop,contentHeight:h}}var O=n(134),j=n(133),w=n(21),k=n(20),_=n(22),S=n(23),E=n(17),x=n(114);function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(E.a)(e);if(t){var o=Object(E.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(S.a)(this,n)}}var P=function(e){Object(_.a)(n,e);var t=C(n);function n(){return Object(w.a)(this,n),t.apply(this,arguments)}return Object(k.a)(n,[{key:"handleFocusOutside",value:function(e){this.props.onFocusOutside(e)}},{key:"render",value:function(){return this.props.children}}]),n}(a.Component),D=Object(x.a)(P),M=n(36),T=n(163),I=n(136),R=n(162),N=n(124),A=n(135),L=Object(j.a)(Object(O.a)((function(e){return e.children})));function F(e,t){var n,r=(n=t).ownerDocument.defaultView.getComputedStyle(n),o=r.paddingTop,i=r.paddingBottom,a=r.paddingLeft,c=r.paddingRight,s=o?parseInt(o,10):0,u=i?parseInt(i,10):0,l=a?parseInt(a,10):0,d=c?parseInt(c,10):0;return{x:e.left+l,y:e.top+s,width:e.width-l-d,height:e.height-s-u,left:e.left+l,right:e.right-d,top:e.top+s,bottom:e.bottom-u}}function z(e,t,n){n?e.getAttribute(t)!==n&&e.setAttribute(t,n):e.hasAttribute(t)&&e.removeAttribute(t)}function B(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";e.style[t]!==n&&(e.style[t]=n)}function H(e,t,n){n?e.classList.contains(t)||e.classList.add(t):e.classList.contains(t)&&e.classList.remove(t)}var V=function(e){var t=e.headerTitle,n=e.onClose,c=e.onKeyDown,d=e.children,h=e.className,v=e.noArrow,O=void 0===v||v,j=e.isAlternate,w=e.position,k=void 0===w?"bottom right":w,_=(e.range,e.focusOnMount),S=void 0===_?"firstElement":_,E=e.anchorRef,x=e.shouldAnchorIncludePadding,C=e.anchorRect,P=e.getAnchorRect,V=e.expandOnMobile,K=e.animate,W=void 0===K||K,U=e.onClickOutside,G=e.onFocusOutside,$=e.__unstableSticky,q=e.__unstableSlotName,Y=void 0===q?"Popover":q,Z=e.__unstableObserveElement,X=e.__unstableBoundaryParent,J=Object(i.a)(e,["headerTitle","onClose","onKeyDown","children","className","noArrow","isAlternate","position","range","focusOnMount","anchorRef","shouldAnchorIncludePadding","anchorRect","getAnchorRect","expandOnMobile","animate","onClickOutside","onFocusOutside","__unstableSticky","__unstableSlotName","__unstableObserveElement","__unstableBoundaryParent"]),Q=Object(a.useRef)(null),ee=Object(a.useRef)(null),te=Object(a.useRef)(),ne=Object(p.useViewportMatch)("medium","<"),re=Object(a.useState)(),oe=Object(o.a)(re,2),ie=oe[0],ae=oe[1],ce=Object(R.a)(Y),se=V&&ne,ue=Object(p.useResizeObserver)(),le=Object(o.a)(ue,2),de=le[0],fe=le[1];O=se||O,Object(a.useLayoutEffect)((function(){if(se)return H(te.current,"is-without-arrow",O),H(te.current,"is-alternate",j),z(te.current,"data-x-axis"),z(te.current,"data-y-axis"),B(te.current,"top"),B(te.current,"left"),B(ee.current,"maxHeight"),void B(ee.current,"maxWidth");var e=function(){if(te.current&&ee.current){var e=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4?arguments[4]:void 0;if(t)return t;if(n){if(!e.current)return;return n(e.current)}if(!1!==r){if(!(r&&window.Range&&window.Element&&window.DOMRect))return;if(r instanceof window.Range)return Object(u.getRectangleFromRange)(r);if(r instanceof window.Element){var i=r.getBoundingClientRect();return o?i:F(i,r)}var a=r.top,c=r.bottom,s=a.getBoundingClientRect(),l=c.getBoundingClientRect(),d=new window.DOMRect(s.left,s.top,s.width,l.bottom-s.top);return o?d:F(d,r)}if(e.current){var f=e.current.parentNode,p=f.getBoundingClientRect();return o?p:F(p,f)}}(Q,C,P,E,x);if(e){var t,n,r=te.current,i=r.offsetParent,a=r.ownerDocument,c=0;if(i&&i!==a.body){var s=i.getBoundingClientRect();c=s.top,e=new window.DOMRect(e.left-s.left,e.top-s.top,e.width,e.height)}if(X)t=null===(n=te.current.closest(".popover-slot"))||void 0===n?void 0:n.parentNode;var l=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"top",r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0,c=arguments.length>6?arguments[6]:void 0,s=n.split(" "),u=Object(o.a)(s,3),l=u[0],d=u[1],f=void 0===d?"center":d,p=u[2],b=g(e,t,l,p,r,i,a),h=y(e,t,f,p,r,b.yAxis,c);return m(m({},h),b)}(e,fe.height?fe:ee.current.getBoundingClientRect(),k,$,te.current,c,t),d=l.popoverTop,f=l.popoverLeft,p=l.xAxis,b=l.yAxis,h=l.contentHeight,v=l.contentWidth;"number"==typeof d&&"number"==typeof f&&(B(te.current,"top",d+"px"),B(te.current,"left",f+"px")),H(te.current,"is-without-arrow",O||"center"===p&&"middle"===b),H(te.current,"is-alternate",j),z(te.current,"data-x-axis",p),z(te.current,"data-y-axis",b),B(ee.current,"maxHeight","number"==typeof h?h+"px":""),B(ee.current,"maxWidth","number"==typeof v?v+"px":"");ae(({left:"right",right:"left"}[p]||"center")+" "+({top:"bottom",bottom:"top"}[b]||"middle"))}}};e();var t,n,r=window.setInterval(e,500),i=function(){window.cancelAnimationFrame(t),t=window.requestAnimationFrame(e)};return window.addEventListener("click",i),window.addEventListener("resize",e),window.addEventListener("scroll",e,!0),Z&&(n=new window.MutationObserver(e)).observe(Z,{attributes:!0}),function(){window.clearInterval(r),window.removeEventListener("resize",e),window.removeEventListener("scroll",e,!0),window.removeEventListener("click",i),window.cancelAnimationFrame(t),n&&n.disconnect()}}),[se,C,P,E,x,k,fe,$,Z,X]),function(e,t){Object(a.useEffect)((function(){var n=setTimeout((function(){if(e&&t.current)if("firstElement"!==e)"container"===e&&t.current.focus();else{var n=u.focus.tabbable.find(t.current)[0];n?n.focus():t.current.focus()}}),0);return function(){return clearTimeout(n)}}),[])}(S,ee);var pe=function(e){e.keyCode===l.ESCAPE&&n&&(e.stopPropagation(),n()),c&&c(e)};var be=Object(a.createElement)(D,{onFocusOutside:function(e){if(G)G(e);else if(U){var t;try{t=new window.MouseEvent("click")}catch(e){(t=document.createEvent("MouseEvent")).initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null)}Object.defineProperty(t,"target",{get:function(){return e.relatedTarget}}),f()("Popover onClickOutside prop",{alternative:"onFocusOutside"}),U(t)}else n&&n()}},Object(a.createElement)(A.a,{type:W&&ie?"appear":null,options:{origin:ie}},(function(e){var o=e.className;return Object(a.createElement)(I.a,Object(r.a)({className:s()("components-popover",h,o,{"is-expanded":se,"is-without-arrow":O,"is-alternate":j})},J,{onKeyDown:pe,ref:te}),se&&Object(a.createElement)(T.a,null),se&&Object(a.createElement)("div",{className:"components-popover__header"},Object(a.createElement)("span",{className:"components-popover__header-title"},t),Object(a.createElement)(M.a,{className:"components-popover__close",icon:b.a,onClick:n})),Object(a.createElement)("div",{ref:ee,className:"components-popover__content",tabIndex:"-1"},Object(a.createElement)("div",{style:{position:"relative"}},de,d)))})));return S&&(be=Object(a.createElement)(L,null,be)),ce.ref&&(be=Object(a.createElement)(N.a,{name:Y},be)),E||C?be:Object(a.createElement)("span",{ref:Q},be)};V.Slot=function(e){var t=e.name,n=void 0===t?"Popover":t;return Object(a.createElement)(N.b,{bubblesVirtually:!0,name:n,className:"popover-slot"})};t.a=V},function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(174)),i=r(n(175)),a=n(13),c=r(a),s=r(n(149)),u=r(n(176)),l={arr:Array.isArray,obj:function(e){return"[object Object]"===Object.prototype.toString.call(e)},fun:function(e){return"function"==typeof e},str:function(e){return"string"==typeof e},num:function(e){return"number"==typeof e},und:function(e){return void 0===e},nul:function(e){return null===e},set:function(e){return e instanceof Set},map:function(e){return e instanceof Map},equ:function(e,t){if(typeof e!=typeof t)return!1;if(l.str(e)||l.num(e))return e===t;if(l.obj(e)&&l.obj(t)&&Object.keys(e).length+Object.keys(t).length===0)return!0;var n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return!l.und(n)||e===t}};function d(){var e=a.useState(!1)[1];return a.useCallback((function(){return e((function(e){return!e}))}),[])}function f(e,t){return l.und(e)||l.nul(e)?t:e}function p(e){return l.und(e)?[]:l.arr(e)?e:[e]}function b(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=n.length)break;i=n[o++]}else{if((o=n.next()).done)break;i=o.value}for(var a=i,c=!1,s=0;s=p.startTime+u.duration;else if(u.decay)v=b+g/(1-.998)*(1-Math.exp(-(1-.998)*(t-p.startTime))),(l=Math.abs(p.lastPosition-v)<.1)&&(h=v);else{d=void 0!==p.lastTime?p.lastTime:t,g=void 0!==p.lastVelocity?p.lastVelocity:u.initialVelocity,t>d+64&&(d=t);for(var O=Math.floor(t-d),j=0;jh:v=e);++n);return n-1}(e,i);return function(e,t,n,r,o,i,a,c,s){var u=s?s(e):e;if(un){if("identity"===c)return u;"clamp"===c&&(u=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?u=-u:n===1/0?u-=t:u=(u-t)/(n-t);u=i(u),r===-1/0?u=-u:o===1/0?u+=r:u=u*(o-r)+r;return u}(e,i[t],i[t+1],o[t],o[t+1],s,a,c,r.map)}}var B=function(e){function t(n,r,o,i){var a;return(a=e.call(this)||this).calc=void 0,a.payload=n instanceof g&&!(n instanceof t)?n.getPayload():Array.isArray(n)?n:[n],a.calc=z(r,o,i),a}s(t,e);var n=t.prototype;return n.getValue=function(){return this.calc.apply(this,this.payload.map((function(e){return e.getValue()})))},n.updateConfig=function(e,t,n){this.calc=z(e,t,n)},n.interpolate=function(e,n,r){return new t(this,e,n,r)},t}(g);var H=function(e){function t(t){var n;return(n=e.call(this)||this).animatedStyles=new Set,n.value=void 0,n.startPosition=void 0,n.lastPosition=void 0,n.lastVelocity=void 0,n.startTime=void 0,n.lastTime=void 0,n.done=!1,n.setValue=function(e,t){void 0===t&&(t=!0),n.value=e,t&&n.flush()},n.value=t,n.startPosition=t,n.lastPosition=t,n}s(t,e);var n=t.prototype;return n.flush=function(){0===this.animatedStyles.size&&function e(t,n){"update"in t?n.add(t):t.getChildren().forEach((function(t){return e(t,n)}))}(this,this.animatedStyles),this.animatedStyles.forEach((function(e){return e.update()}))},n.clearStyles=function(){this.animatedStyles.clear()},n.getValue=function(){return this.value},n.interpolate=function(e,t,n){return new B(this,e,t,n)},t}(y),V=function(e){function t(t){var n;return(n=e.call(this)||this).payload=t.map((function(e){return new H(e)})),n}s(t,e);var n=t.prototype;return n.setValue=function(e,t){var n=this;void 0===t&&(t=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach((function(e,r){return n.payload[r].setValue(e,t)})):this.payload.forEach((function(n){return n.setValue(e,t)}))},n.getValue=function(){return this.payload.map((function(e){return e.getValue()}))},n.interpolate=function(e,t){return new B(this,e,t)},t}(g),K=0,W=function(){function e(){var e=this;this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=function(){return e.interpolations},this.id=K++}var t=e.prototype;return t.update=function(e){if(!e)return this;var t=h(e),n=t.delay,r=void 0===n?0:n,a=t.to,c=i(t,["delay","to"]);if(l.arr(a)||l.fun(a))this.queue.push(o({},c,{delay:r,to:a}));else if(a){var s={};Object.entries(a).forEach((function(e){var t,n=e[0],i=e[1],a=o({to:(t={},t[n]=i,t),delay:b(r,n)},c),u=s[a.delay]&&s[a.delay].to;s[a.delay]=o({},s[a.delay],a,{to:o({},u,a.to)})})),this.queue=Object.values(s)}return this.queue=this.queue.sort((function(e,t){return e.delay-t.delay})),this.diff(c),this},t.start=function(e){var t,n=this;if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach((function(e){var t=e.from,r=void 0===t?{}:t,i=e.to,a=void 0===i?{}:i;l.obj(r)&&(n.merged=o({},r,n.merged)),l.obj(a)&&(n.merged=o({},n.merged,a))}));var r=this.local=++this.guid,a=this.localQueue=this.queue;this.queue=[],a.forEach((function(t,o){var c=t.delay,s=i(t,["delay"]),u=function(t){o===a.length-1&&r===n.guid&&t&&(n.idle=!0,n.props.onRest&&n.props.onRest(n.merged)),e&&e()},d=l.arr(s.to)||l.fun(s.to);c?setTimeout((function(){r===n.guid&&(d?n.runAsync(s,u):n.diff(s).start(u))}),c):d?n.runAsync(s,u):n.diff(s).start(u)}))}else l.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,L.has(t)||L.add(t),A||(A=!0,_(M||F));return this},t.stop=function(e){return this.listeners.forEach((function(t){return t(e)})),this.listeners=[],this},t.pause=function(e){var t;return this.stop(!0),e&&(t=this,L.has(t)&&L.delete(t)),this},t.runAsync=function(e,t){var n=this,r=(e.delay,i(e,["delay"])),a=this.local,c=Promise.resolve(void 0);if(l.arr(r.to))for(var s=function(e){var t=e,i=o({},r,h(r.to[t]));l.arr(i.config)&&(i.config=i.config[t]),c=c.then((function(){if(a===n.guid)return new Promise((function(e){return n.diff(i).start(e)}))}))},u=0;u=r.length)return"break";a=r[i++]}else{if((i=r.next()).done)return"break";a=i.value}var n=a.key,c=function(e){return e.key!==n};(l.und(t)||t===n)&&(e.current.instances.delete(n),e.current.transitions=e.current.transitions.filter(c),e.current.deleted=e.current.deleted.filter(c))},r=e.current.deleted,o=Array.isArray(r),i=0;for(r=o?r:r[Symbol.iterator]();;){var a;if("break"===n())break}e.current.forceUpdate()}var Z=function(e){function t(t){var n;return void 0===t&&(t={}),n=e.call(this)||this,!t.transform||t.transform instanceof y||(t=v.transform(t)),n.payload=t,n}return s(t,e),t}(O),X={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},J="[-+]?\\d*\\.?\\d+";function Q(){for(var e=arguments.length,t=new Array(e),n=0;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 ue(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=se(o,r,e+1/3),a=se(o,r,e),c=se(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*a)<<16|Math.round(255*c)<<8}function le(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function de(e){return(parseFloat(e)%360+360)%360/360}function fe(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function pe(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function be(e){var t,n,r="number"==typeof(t=e)?t>>>0===t&&t>=0&&t<=4294967295?t:null:(n=ae.exec(t))?parseInt(n[1]+"ff",16)>>>0:X.hasOwnProperty(t)?X[t]:(n=ee.exec(t))?(le(n[1])<<24|le(n[2])<<16|le(n[3])<<8|255)>>>0:(n=te.exec(t))?(le(n[1])<<24|le(n[2])<<16|le(n[3])<<8|fe(n[4]))>>>0:(n=oe.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+"ff",16)>>>0:(n=ce.exec(t))?parseInt(n[1],16)>>>0:(n=ie.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+n[4]+n[4],16)>>>0:(n=ne.exec(t))?(255|ue(de(n[1]),pe(n[2]),pe(n[3])))>>>0:(n=re.exec(t))?(ue(de(n[1]),pe(n[2]),pe(n[3]))|fe(n[4]))>>>0:null;return null===r?e:"rgba("+((4278190080&(r=r||0))>>>24)+", "+((16711680&r)>>>16)+", "+((65280&r)>>>8)+", "+(255&r)/255+")"}var he=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ve=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,me=new RegExp("("+Object.keys(X).join("|")+")","g"),ye={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ge=["Webkit","Ms","Moz","O"];function Oe(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ye.hasOwnProperty(e)&&ye[e]?(""+t).trim():t+"px"}ye=Object.keys(ye).reduce((function(e,t){return ge.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),ye);var je={};I((function(e){return new Z(e)})),P("div"),E((function(e){var t=e.output.map((function(e){return e.replace(ve,be)})).map((function(e){return e.replace(me,be)})),n=t[0].match(he).map((function(){return[]}));t.forEach((function(e){e.match(he).forEach((function(e,t){return n[t].push(+e)}))}));var r=t[0].match(he).map((function(t,r){return z(o({},e,{output:n[r]}))}));return function(e){var n=0;return t[0].replace(he,(function(){return r[n++](e)})).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(function(e,t,n,r,o){return"rgba("+Math.round(t)+", "+Math.round(n)+", "+Math.round(r)+", "+o+")"}))}})),w(X),j((function(e,t){if(!e.nodeType||void 0===e.setAttribute)return!1;var n=t.style,r=t.children,o=t.scrollTop,a=t.scrollLeft,c=i(t,["style","children","scrollTop","scrollLeft"]),s="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;for(var u in void 0!==o&&(e.scrollTop=o),void 0!==a&&(e.scrollLeft=a),void 0!==r&&(e.textContent=r),n)if(n.hasOwnProperty(u)){var l=0===u.indexOf("--"),d=Oe(u,n[u],l);"float"===u&&(u="cssFloat"),l?e.style.setProperty(u,d):e.style[u]=d}for(var f in c){var p=s?f:je[f]||(je[f]=f.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(p)&&e.setAttribute(p,c[f])}}),(function(e){return e}));var we,ke,_e=(we=function(e){return a.forwardRef((function(t,n){var r=d(),s=a.useRef(!0),u=a.useRef(null),f=a.useRef(null),p=a.useCallback((function(e){var t=u.current;u.current=new N(e,(function(){var e=!1;f.current&&(e=v.fn(f.current,u.current.getAnimatedValue())),f.current&&!1!==e||r()})),t&&t.detach()}),[]);a.useEffect((function(){return function(){s.current=!1,u.current&&u.current.detach()}}),[]),a.useImperativeHandle(n,(function(){return T(f,s,r)})),p(t);var b,h=u.current.getValue(),m=(h.scrollTop,h.scrollLeft,i(h,["scrollTop","scrollLeft"])),y=(b=e,!l.fun(b)||b.prototype instanceof c.Component?function(e){return f.current=function(e,t){return t&&(l.fun(t)?t(e):l.obj(t)&&(t.current=e)),e}(e,n)}:void 0);return c.createElement(e,o({},m,{ref:y}))}))},void 0===(ke=!1)&&(ke=!0),function(e){return(l.arr(e)?e:Object.keys(e)).reduce((function(e,t){var n=ke?t[0].toLowerCase()+t.substring(1):t;return e[n]=we(n),e}),we)}),Se=_e(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]);t.apply=_e,t.config={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},t.update=F,t.animated=Se,t.a=Se,t.interpolate=function(e,t,n){return e&&new B(e,t,n)},t.Globals=R,t.useSpring=function(e){var t=l.fun(e),n=U(1,t?e:[e]),r=n[0],o=n[1],i=n[2];return t?[r[0],o,i]:r},t.useTrail=function(e,t){var n=a.useRef(!1),r=l.fun(t),i=b(t),c=a.useRef(),s=U(e,(function(e,t){return 0===e&&(c.current=[]),c.current.push(t),o({},i,{config:b(i.config,e),attach:e>0&&function(){return c.current[e-1]}})})),u=s[0],d=s[1],f=s[2],p=a.useMemo((function(){return function(e){return d((function(t,n){e.reverse;var r=e.reverse?t+1:t-1,a=c.current[r];return o({},e,{config:b(e.config||i.config,t),attach:a&&function(){return a}})}))}}),[e,i.reverse]);return a.useEffect((function(){n.current&&!r&&p(t)})),a.useEffect((function(){n.current=!0}),[]),r?[u,p,f]:u},t.useTransition=function(e,t,n){var r=o({items:e,keys:t||function(e){return e}},n),c=q(r),s=c.lazy,u=void 0!==s&&s,l=(c.unique,c.reset),f=void 0!==l&&l,p=(c.enter,c.leave,c.update,c.onDestroyed),h=(c.keys,c.items,c.onFrame),v=c.onRest,m=c.onStart,y=c.ref,g=i(c,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),O=d(),j=a.useRef(!1),w=a.useRef({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!r.ref,instances:!j.current&&new Map,forceUpdate:O});return a.useImperativeHandle(r.ref,(function(){return{start:function(){return Promise.all(Array.from(w.current.instances).map((function(e){var t=e[1];return new Promise((function(e){return t.start(e)}))})))},stop:function(e){return Array.from(w.current.instances).forEach((function(t){return t[1].stop(e)}))},get controllers(){return Array.from(w.current.instances).map((function(e){return e[1]}))}}})),w.current=function(e,t){var n=e.first,r=e.prevProps,a=i(e,["first","prevProps"]),c=q(t),s=c.items,u=c.keys,l=c.initial,d=c.from,f=c.enter,p=c.leave,h=c.update,v=c.trail,m=void 0===v?0:v,y=c.unique,g=c.config,O=c.order,j=void 0===O?["enter","leave","update"]:O,w=q(r),k=w.keys,_=w.items,S=o({},a.current),E=[].concat(a.deleted),x=Object.keys(S),C=new Set(x),P=new Set(u),D=u.filter((function(e){return!C.has(e)})),M=a.transitions.filter((function(e){return!e.destroyed&&!P.has(e.originalKey)})).map((function(e){return e.originalKey})),T=u.filter((function(e){return C.has(e)})),I=-m;for(;j.length;){switch(j.shift()){case"enter":D.forEach((function(e,t){y&&E.find((function(t){return t.originalKey===e}))&&(E=E.filter((function(t){return t.originalKey!==e})));var r=u.indexOf(e),o=s[r],i=n&&void 0!==l?"initial":"enter";S[e]={slot:i,originalKey:e,key:y?String(e):G++,item:o,trail:I+=m,config:b(g,o,i),from:b(n&&void 0!==l?l||{}:d,o),to:b(f,o)}}));break;case"leave":M.forEach((function(e){var t=k.indexOf(e),n=_[t];E.unshift(o({},S[e],{slot:"leave",destroyed:!0,left:k[Math.max(0,t-1)],right:k[Math.min(k.length,t+1)],trail:I+=m,config:b(g,n,"leave"),to:b(p,n)})),delete S[e]}));break;case"update":T.forEach((function(e){var t=u.indexOf(e),n=s[t];S[e]=o({},S[e],{item:n,slot:"update",trail:I+=m,config:b(g,n,"update"),to:b(h,n)})}))}}var R=u.map((function(e){return S[e]}));return E.forEach((function(e){var t,n=e.left,r=(e.right,i(e,["left","right"]));-1!==(t=R.findIndex((function(e){return e.originalKey===n})))&&(t+=1),t=Math.max(0,t),R=[].concat(R.slice(0,t),[r],R.slice(t))})),o({},a,{changed:D.length||M.length||T.length,first:n&&0===D.length,transitions:R,current:S,deleted:E,prevProps:t})}(w.current,r),w.current.changed&&w.current.transitions.forEach((function(e){var t=e.slot,n=e.from,r=e.to,i=e.config,a=e.trail,c=e.key,s=e.item;w.current.instances.has(c)||w.current.instances.set(c,new W);var l=w.current.instances.get(c),d=o({},g,{to:r,from:n,config:i,ref:y,onRest:function(n){w.current.mounted&&(e.destroyed&&(y||u||Y(w,c),p&&p(s)),!Array.from(w.current.instances).some((function(e){return!e[1].idle}))&&(y||u)&&w.current.deleted.length>0&&Y(w),v&&v(s,t,n))},onStart:m&&function(){return m(s,t)},onFrame:h&&function(e){return h(s,t,e)},delay:a,reset:f&&"enter"===t});l.update(d),w.current.paused||l.start()})),a.useEffect((function(){return w.current.mounted=j.current=!0,function(){w.current.mounted=j.current=!1,Array.from(w.current.instances).map((function(e){return e[1].destroy()})),w.current.instances.clear()}}),[]),w.current.transitions.map((function(e){var t=e.item,n=e.slot,r=e.key;return{item:t,key:r,state:n,props:w.current.instances.get(r).getValues()}}))},t.useChain=function(e,t,n){void 0===n&&(n=1e3);var r=a.useRef();a.useEffect((function(){l.equ(e,r.current)?e.forEach((function(e){var t=e.current;return t&&t.start()})):t?e.forEach((function(e,r){var i=e.current;if(i){var a=i.controllers;if(a.length){var c=n*t[r];a.forEach((function(e){e.queue=e.queue.map((function(e){return o({},e,{delay:e.delay+c})})),e.start()}))}}})):e.reduce((function(e,t,n){var r=t.current;return e.then((function(){return r.start()}))}),Promise.resolve()),r.current=e}))},t.useSprings=U},,,,function(e,t){function n(e,t,n,r){var o,i=null==(o=r)||"number"==typeof o||"boolean"==typeof o?r:n(r),a=t.get(i);return void 0===a&&(a=e.call(this,r),t.set(i,a)),a}function r(e,t,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),i=t.get(o);return void 0===i&&(i=e.apply(this,r),t.set(o,i)),i}function o(e,t,n,r,o){return n.bind(t,e,r,o)}function i(e,t){return o(e,this,1===e.length?n:r,t.cache.create(),t.serializer)}function a(){return JSON.stringify(arguments)}function c(){this.cache=Object.create(null)}c.prototype.has=function(e){return e in this.cache},c.prototype.get=function(e){return this.cache[e]},c.prototype.set=function(e,t){this.cache[e]=t};var s={create:function(){return new c}};e.exports=function(e,t){var n=t&&t.cache?t.cache:s,r=t&&t.serializer?t.serializer:a;return(t&&t.strategy?t.strategy:i)(e,{cache:n,serializer:r})},e.exports.strategies={variadic:function(e,t){return o(e,this,r,t.cache.create(),t.serializer)},monadic:function(e,t){return o(e,this,n,t.cache.create(),t.serializer)}}},function(e,t,n){"use strict";var r=n(326);e.exports=Function.prototype.bind||r},function(e,t,n){"use strict";n.d(t,"a",(function(){return _})),n.d(t,"b",(function(){return k}));var r=n(16),o=n(50),i=n(49),a=n(67),c=n(13),s=n(63),u=(n(81),n(46)),l=n(54),d=n(57),f=n(74),p=n(79),b=n(82),h=n(48),v=n(96),m=n(104),y=n(51),g="undefined"!=typeof window&&"msCrypto"in window;var O="undefined"!=typeof window&&"msCrypto"in window;function j(e,t,n){var r=Object(u.a)(n);return Object(c.useCallback)((function(n){var o;if(e&&function(e){return!!Object(l.a)(e)&&(!e.metaKey&&"Tab"!==e.key)}(n)){var i=null==t?void 0:t.ref.current;if(i&&(Object(m.a)(i,n.type,n),n.currentTarget.contains(i)))return n.stopPropagation(),void n.preventDefault()}null===(o=r.current)||void 0===o||o.call(r,n)}),[e,t])}function w(e,t){return null==e?void 0:e.some((function(e){return!!t&&e.ref.current===t}))}var k=Object(i.a)({name:"Composite",compose:[f.a],useState:y.g,useOptions:function(e){return Object(r.b)(Object(r.b)({},e),{},{currentId:Object(y.e)(e)})},useProps:function(e,t){var n=t.ref,o=t.onFocus,i=t.onBlur,a=t.onKeyDown,f=t.onKeyUp,p=Object(r.a)(t,["ref","onFocus","onBlur","onKeyDown","onKeyUp"]),m=Object(c.useRef)(null),k=Object(y.d)(e.items,e.currentId),_=Object(c.useRef)(void 0),S=Object(u.a)(o),E=Object(u.a)(i),x=O?function(e){var t=Object(c.useRef)(null);return Object(c.useEffect)((function(){var n=Object(h.a)(e.current),r=function(e){var n=e.target;t.current=n};return n.addEventListener("focus",r,!0),function(){n.removeEventListener("focus",r,!0)}}),[]),t}(m):void 0;Object(c.useEffect)((function(){var t=m.current;t&&e.unstable_moves&&!k&&t.focus()}),[e.unstable_moves,k]);var C=j(e.unstable_virtual,k,a),P=j(e.unstable_virtual,k,f),D=Object(c.useCallback)((function(t){var n;if(e.unstable_virtual){var r,o,i=(null==x?void 0:x.current)||t.relatedTarget,a=w(e.items,i);if(Object(l.a)(t)&&!a)return null===(r=S.current)||void 0===r||r.call(S,t),void(null==k||null===(o=k.ref.current)||void 0===o||o.focus());if(a)return void t.stopPropagation()}else if(Object(l.a)(t)){var c;null===(c=e.setCurrentId)||void 0===c||c.call(e,null)}null===(n=S.current)||void 0===n||n.call(S,t)}),[e.unstable_virtual,e.items,k,e.setCurrentId]),M=Object(c.useCallback)((function(t){var n;if(e.unstable_virtual){var r,o=w(e.items,t.target),i=function(e){return g?Object(d.a)(e.target):e.relatedTarget}(t),a=w(e.items,i);if(Object(l.a)(t)&&a)return(null===(r=_.current)||void 0===r?void 0:r.ref.current)&&Object(v.a)(_.current.ref.current,"blur",t),_.current=k,void t.stopPropagation();o?_.current=k:((null==k?void 0:k.ref.current)&&Object(v.a)(k.ref.current,"blur",t),_.current=void 0)}null===(n=E.current)||void 0===n||n.call(E,t)}),[e.unstable_virtual,e.items,k]),T=Object(c.useMemo)((function(){return Object(b.a)({onKeyDown:C,stopPropagation:!0,shouldKeyDown:function(t){return Object(l.a)(t)&&null===e.currentId},keyMap:function(){var t,n="horizontal"!==e.orientation,r="vertical"!==e.orientation,o=!!(null===(t=e.groups)||void 0===t?void 0:t.length),i=e.first&&function(){return e.first()},a=e.last&&function(){return e.last()};return{ArrowUp:(o||n)&&function(){if(o){var t,n=(i=e.items,Object(y.a)(Object(y.b)(Object(y.f)(Object(y.c)(i)))));if(null==n?void 0:n.id)null===(t=e.move)||void 0===t||t.call(e,n.id)}else{var r;null===(r=e.last)||void 0===r||r.call(e)}var i},ArrowRight:(o||r)&&i,ArrowDown:(o||n)&&i,ArrowLeft:(o||r)&&a,Home:i,End:a,PageUp:i,PageDown:a}}})}),[C,e.currentId,e.orientation,e.groups,e.items,e.move,e.last,e.first]);return Object(r.b)({ref:Object(s.a)(m,n),id:e.baseId,onFocus:D,onBlur:M,onKeyDown:T,onKeyUp:P,"aria-activedescendant":e.unstable_virtual&&(null==k?void 0:k.id)||void 0},p)},useComposeProps:function(e,t){t=Object(a.a)(e,t,!0);var n=Object(f.a)(e,t,!0);return e.unstable_virtual||null===e.currentId?n:Object(r.b)(Object(r.b)({},t),{},{ref:n.ref})}}),_=Object(o.a)({as:"div",useHook:k,useCreateElement:function(e,t,n){return Object(p.a)(e,t,n)}})},function(e,t,n){"use strict";n.d(t,"a",(function(){return w})),n.d(t,"b",(function(){return j}));var r=n(16),o=n(50),i=n(49),a=n(13),c=n(63),s=(n(81),n(46)),u=n(54),l=n(70),d=n(73),f=n(72),p=n(87),b=n(82),h=n(48),v=n(51),m=n(95),y=n(97),g=n(98);function O(e){return e.querySelector("[data-composite-item-widget]")}var j=Object(i.a)({name:"CompositeItem",compose:[p.a,m.a],useState:v.g,propsAreEqual:function(e,t){if(!t.id||e.id!==t.id)return p.a.unstable_propsAreEqual(e,t);var n=e.currentId,o=e.unstable_moves,i=Object(r.a)(e,["currentId","unstable_moves"]),a=t.currentId,c=t.unstable_moves,s=Object(r.a)(t,["currentId","unstable_moves"]);if(a!==n){if(t.id===a||t.id===n)return!1}else if(o!==c)return!1;return p.a.unstable_propsAreEqual(i,s)},useOptions:function(e){return Object(r.b)(Object(r.b)({},e),{},{id:e.id,currentId:Object(v.e)(e),unstable_clickOnSpace:!e.unstable_hasActiveWidget&&e.unstable_clickOnSpace})},useProps:function(e,t){var n,o=t.ref,i=t.tabIndex,p=void 0===i?0:i,v=t.onFocus,m=t.onBlur,j=t.onKeyDown,w=t.onClick,k=Object(r.a)(t,["ref","tabIndex","onFocus","onBlur","onKeyDown","onClick"]),_=Object(a.useRef)(null),S=e.id,E=e.disabled&&!e.focusable,x=e.currentId===S,C=Object(s.a)(x),P=Object(a.useRef)(!1),D=function(e){return Object(a.useMemo)((function(){var t;return null===(t=e.items)||void 0===t?void 0:t.find((function(t){return e.id&&t.id===e.id}))}),[e.items,e.id])}(e),M=Object(s.a)(v),T=Object(s.a)(m),I=Object(s.a)(j),R=Object(s.a)(w),N=!e.unstable_virtual&&!e.unstable_hasActiveWidget&&x||!(null===(n=e.items)||void 0===n?void 0:n.length);Object(a.useEffect)((function(){var t;if(S)return null===(t=e.registerItem)||void 0===t||t.call(e,{id:S,ref:_,disabled:!!E}),function(){var t;null===(t=e.unregisterItem)||void 0===t||t.call(e,S)}}),[S,E,e.registerItem,e.unregisterItem]),Object(a.useEffect)((function(){var t=_.current;t&&e.unstable_moves&&C.current&&t.focus()}),[e.unstable_moves]);var A=Object(a.useCallback)((function(t){var n,o;if(null===(n=M.current)||void 0===n||n.call(M,t),!t.defaultPrevented&&!Object(d.a)(t)&&S&&!function(e,t){if(Object(u.a)(e))return!1;for(var n,o=Object(r.c)(t);!(n=o()).done;){if(n.value.ref.current===e.target)return!0}return!1}(t,e.items)&&(null===(o=e.setCurrentId)||void 0===o||o.call(e,S),e.unstable_virtual&&e.baseId&&Object(u.a)(t))){var i=t.target,a=Object(h.a)(i).getElementById(e.baseId);a&&(P.current=!0,Object(f.a)(a))}}),[S,e.items,e.setCurrentId,e.unstable_virtual,e.baseId]),L=Object(a.useCallback)((function(t){var n;if(e.unstable_virtual&&P.current)return P.current=!1,t.preventDefault(),void t.stopPropagation();null===(n=T.current)||void 0===n||n.call(T,t)}),[e.unstable_virtual]),F=Object(a.useCallback)((function(e){var t;if(null===(t=I.current)||void 0===t||t.call(I,e),Object(u.a)(e)&&1===e.key.length&&" "!==e.key){var n=O(e.currentTarget);if(n&&Object(y.a)(n)){n.focus();var r=e.key;window.requestAnimationFrame((function(){Object(g.a)(n,r)}))}}}),[]),z=Object(a.useMemo)((function(){return Object(b.a)({onKeyDown:F,stopPropagation:!0,shouldKeyDown:u.a,keyMap:function(){var t="horizontal"!==e.orientation,n="vertical"!==e.orientation,r=!!(null==D?void 0:D.groupId),o=function(e){var t=O(e.currentTarget);t&&Object(y.a)(t)&&Object(g.a)(t,"")},i=e.up&&function(){return e.up()},a=e.next&&function(){return e.next()},c=e.down&&function(){return e.down()},s=e.previous&&function(){return e.previous()};return{Delete:o,Backspace:o,ArrowUp:(r||t)&&i,ArrowRight:(r||n)&&a,ArrowDown:(r||t)&&c,ArrowLeft:(r||n)&&s,Home:function(t){var n,o;!r||t.ctrlKey?null===(n=e.first)||void 0===n||n.call(e):null===(o=e.previous)||void 0===o||o.call(e,!0)},End:function(t){var n,o;!r||t.ctrlKey?null===(n=e.last)||void 0===n||n.call(e):null===(o=e.next)||void 0===o||o.call(e,!0)},PageUp:function(){var t,n;r?null===(t=e.up)||void 0===t||t.call(e,!0):null===(n=e.first)||void 0===n||n.call(e)},PageDown:function(){var t,n;r?null===(t=e.down)||void 0===t||t.call(e,!0):null===(n=e.last)||void 0===n||n.call(e)}}}})}),[F,e.orientation,D,e.up,e.next,e.down,e.previous,e.first,e.last]),B=Object(a.useCallback)((function(e){var t;if(null===(t=R.current)||void 0===t||t.call(R,e),!e.defaultPrevented){var n=O(e.currentTarget);n&&!Object(l.a)(n)&&n.focus()}}),[]);return Object(r.b)({ref:Object(c.a)(_,o),id:S,tabIndex:N?p:-1,"aria-selected":!(!e.unstable_virtual||!x)||void 0,onFocus:A,onBlur:L,onKeyDown:z,onClick:B},k)}}),w=Object(o.a)({as:"button",memo:!0,useHook:j})},function(e,t,n){"use strict";n.d(t,"b",(function(){return E})),n.d(t,"a",(function(){return x})),n.d(t,"c",(function(){return C}));var r=n(8),o=n(14),i=n(0),a=n(21),c=n(20),s=n(15),u=n(17);function l(e,t,n){return(l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Object(u.a)(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}var d=n(22),f=n(23),p=n(2),b=n(128);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(f.a)(this,n)}}var v=function(e){Object(d.a)(n,e);var t=h(n);function n(){var e;return Object(a.a)(this,n),(e=t.apply(this,arguments)).isUnmounted=!1,e.bindNode=e.bindNode.bind(Object(s.a)(e)),e}return Object(c.a)(n,[{key:"componentDidMount",value:function(){(0,this.props.registerSlot)(this.props.name,this)}},{key:"componentWillUnmount",value:function(){var e=this.props.unregisterSlot;this.isUnmounted=!0,e(this.props.name,this)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.name,r=t.unregisterSlot,o=t.registerSlot;e.name!==n&&(r(e.name),o(n,this))}},{key:"bindNode",value:function(e){this.node=e}},{key:"forceUpdate",value:function(){this.isUnmounted||l(Object(u.a)(n.prototype),"forceUpdate",this).call(this)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.name,r=e.fillProps,o=void 0===r?{}:r,a=e.getFills,c=Object(p.map)(a(n,this),(function(e){var t=e.occurrence,n=Object(p.isFunction)(e.children)?e.children(o):e.children;return i.Children.map(n,(function(e,n){if(!e||Object(p.isString)(e))return e;var r="".concat(t,"---").concat(e.key||n);return Object(i.cloneElement)(e,{key:r})}))})).filter(Object(p.negate)(i.isEmptyElement));return Object(i.createElement)(i.Fragment,null,Object(p.isFunction)(t)?t(c):c)}}]),n}(i.Component),m=function(e){return Object(i.createElement)(b.a,null,(function(t){var n=t.registerSlot,o=t.unregisterSlot,a=t.getFills;return Object(i.createElement)(v,Object(r.a)({},e,{registerSlot:n,unregisterSlot:o,getFills:a}))}))},y=0;function g(e){var t=e.name,n=e.children,r=e.registerFill,o=e.unregisterFill,a=Object(b.c)(t),c=Object(i.useRef)({name:t,children:n});return c.current.occurrence||(c.current.occurrence=++y),Object(i.useLayoutEffect)((function(){return r(t,c.current),function(){return o(t,c.current)}}),[]),Object(i.useLayoutEffect)((function(){c.current.children=n,a&&a.forceUpdate()}),[n]),Object(i.useLayoutEffect)((function(){t!==c.current.name&&(o(c.current.name,c.current),c.current.name=t,r(t,c.current))}),[t]),a&&a.node?(Object(p.isFunction)(n)&&(n=n(a.props.fillProps)),Object(i.createPortal)(n,a.node)):null}var O=function(e){return Object(i.createElement)(b.a,null,(function(t){var n=t.registerFill,o=t.unregisterFill;return Object(i.createElement)(g,Object(r.a)({},e,{registerFill:n,unregisterFill:o}))}))},j=n(138);function w(e){var t=e.name,n=e.fillProps,a=void 0===n?{}:n,c=e.as,s=void 0===c?"div":c,u=Object(o.a)(e,["name","fillProps","as"]),l=Object(i.useContext)(j.a),d=Object(i.useRef)();return Object(i.useLayoutEffect)((function(){return l.registerSlot(t,d,a),function(){l.unregisterSlot(t,d)}}),[l.registerSlot,l.unregisterSlot,t]),Object(i.useLayoutEffect)((function(){l.updateSlot(t,a)})),Object(i.createElement)(s,Object(r.a)({ref:d},u))}var k=n(12),_=n(162);function S(e){var t,n,r=e.name,o=e.children,a=Object(_.a)(r),c=Object(i.useRef)({rerender:(t=Object(i.useState)({}),n=Object(k.a)(t,2)[1],function(){return n({})})});return Object(i.useEffect)((function(){return a.registerFill(c),function(){a.unregisterFill(c)}}),[a.registerFill,a.unregisterFill]),a.ref&&a.ref.current?("function"==typeof o&&(o=o(a.fillProps)),Object(i.createPortal)(o,a.ref.current)):null}function E(e){var t=e.bubblesVirtually,n=Object(o.a)(e,["bubblesVirtually"]);return t?Object(i.createElement)(w,n):Object(i.createElement)(m,n)}function x(e){return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(O,e),Object(i.createElement)(S,e))}function C(e){var t=function(t){return Object(i.createElement)(x,Object(r.a)({name:e},t))};t.displayName=e+"Fill";var n=function(t){return Object(i.createElement)(E,Object(r.a)({name:e},t))};return n.displayName=e+"Slot",{Fill:t,Slot:n}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(48);function o(e,t,n){var o,i;if(void 0===n&&(n={}),"function"==typeof Event)return new Event(t,n);var a=Object(r.a)(e).createEvent("Event");return a.initEvent(t,null===(o=n)||void 0===o?void 0:o.bubbles,null===(i=n)||void 0===i?void 0:i.cancelable),a}},function(e,t,n){"use strict";e.exports=n(182)},,function(e,t,n){"use strict";n.d(t,"c",(function(){return C})),n.d(t,"a",(function(){return E}));var r=n(12),o=n(18),i=n(21),a=n(20),c=n(15),s=n(22),u=n(23),l=n(17),d=n(0),f=n(2),p=n(40),b=n(14),h=n(5),v=n(64),m=n.n(v),y=n(138);function g(e){var t=function(e,t){if("object"!==Object(p.a)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Object(p.a)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Object(p.a)(t)?t:String(t)}function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j(e){for(var t=1;t2?n-2:0),o=2;o0&&void 0!==arguments[0]?arguments[0]:{},t=e.htmlDocument,n=void 0===t?document:t,a=e.className,c=void 0===a?"lockscroll":a,l=0,d=0;function f(e){var t=n.scrollingElement||n.body;e&&(d=t.scrollTop);var r=e?"add":"remove";t.classList[r](c),n.documentElement.classList[r](c),e||(t.scrollTop=d)}function p(){0===l&&f(!0),++l}function b(){1===l&&f(!1),--l}return function(e){Object(i.a)(n,e);var t=u(n);function n(){return Object(r.a)(this,n),t.apply(this,arguments)}return Object(o.a)(n,[{key:"componentDidMount",value:function(){p()}},{key:"componentWillUnmount",value:function(){b()}},{key:"render",value:function(){return null}}]),n}(s.Component)}()},function(e,t,n){"use strict";(function(e){var r=n(0),o=n(2),i=n(9),a=n.n(i),c=n(52),s=n(1),u=(n(90),n(36));t.a=Object(r.forwardRef)((function(t,n){var i=t.className,l=t.children,d=t.spokenMessage,f=void 0===d?l:d,p=t.politeness,b=void 0===p?"polite":p,h=t.actions,v=void 0===h?[]:h,m=t.onRemove,y=void 0===m?o.noop:m;!function(e,t){var n="string"==typeof e?e:Object(r.renderToString)(e);Object(r.useEffect)((function(){n&&Object(c.speak)(n,t)}),[n,t])}(f,b),Object(r.useEffect)((function(){var e=setTimeout((function(){y()}),1e4);return function(){return clearTimeout(e)}}),[]);var g=a()(i,"components-snackbar");return v&&v.length>1&&(void 0!==e&&e.env,v=[v[0]]),Object(r.createElement)("div",{ref:n,className:g,onClick:y,tabIndex:"0",role:"button",onKeyPress:y,"aria-label":Object(s.__)("Dismiss this notice")},Object(r.createElement)("div",{className:"components-snackbar__content"},l,v.map((function(e,t){var n=e.label,o=e.onClick,i=e.url;return Object(r.createElement)(u.a,{key:t,href:i,isTertiary:!0,onClick:function(e){e.stopPropagation(),o&&o(e)},className:"components-snackbar__action"},n)}))))}))}).call(this,n(102))},,,,,function(e,t,n){"use strict";var r=n(0),o=n(2);t.a=function(e){var t,n,i=e.shortcut,a=e.className;return i?(Object(o.isString)(i)&&(t=i),Object(o.isObject)(i)&&(t=i.display,n=i.ariaLabel),Object(r.createElement)("span",{className:a,"aria-label":n},t)):null}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(16),o=(n(13),n(62)),i=n(51);function a(e){void 0===e&&(e={});var t=Object(o.a)(e),n=t.orientation,a=void 0===n?"horizontal":n,c=Object(r.a)(t,["orientation"]);return Object(i.g)(Object(r.b)({orientation:a},c))}var c=[].concat(i.g.__keys);a.__keys=c},,,,function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t=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(183);e.exports=function(e,t,n){n=n||{},9===t.nodeType&&(t=r.getWindow(t));var o=n.allowHorizontalScroll,i=n.onlyScrollIfNeeded,a=n.alignWithTop,c=n.alignWithLeft,s=n.offsetTop||0,u=n.offsetLeft||0,l=n.offsetBottom||0,d=n.offsetRight||0;o=void 0===o||o;var f=r.isWindow(t),p=r.offset(e),b=r.outerHeight(e),h=r.outerWidth(e),v=void 0,m=void 0,y=void 0,g=void 0,O=void 0,j=void 0,w=void 0,k=void 0,_=void 0,S=void 0;f?(w=t,S=r.height(w),_=r.width(w),k={left:r.scrollLeft(w),top:r.scrollTop(w)},O={left:p.left-k.left-u,top:p.top-k.top-s},j={left:p.left+h-(k.left+_)+d,top:p.top+b-(k.top+S)+l},g=k):(v=r.offset(t),m=t.clientHeight,y=t.clientWidth,g={left:t.scrollLeft,top:t.scrollTop},O={left:p.left-(v.left+(parseFloat(r.css(t,"borderLeftWidth"))||0))-u,top:p.top-(v.top+(parseFloat(r.css(t,"borderTopWidth"))||0))-s},j={left:p.left+h-(v.left+y+(parseFloat(r.css(t,"borderRightWidth"))||0))+d,top:p.top+b-(v.top+m+(parseFloat(r.css(t,"borderBottomWidth"))||0))+l}),O.top<0||j.top>0?!0===a?r.scrollTop(t,g.top+O.top):!1===a?r.scrollTop(t,g.top+j.top):O.top<0?r.scrollTop(t,g.top+O.top):r.scrollTop(t,g.top+j.top):i||((a=void 0===a||!!a)?r.scrollTop(t,g.top+O.top):r.scrollTop(t,g.top+j.top)),o&&(O.left<0||j.left>0?!0===c?r.scrollLeft(t,g.left+O.left):!1===c?r.scrollLeft(t,g.left+j.left):O.left<0?r.scrollLeft(t,g.left+O.left):r.scrollLeft(t,g.left+j.left):i||((c=void 0===c||!!c)?r.scrollLeft(t,g.left+O.left):r.scrollLeft(t,g.left+j.left)))}},function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;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!(!i.default.isMoment(e)||!i.default.isMoment(t))&&(e.date()===t.date()&&e.month()===t.month()&&e.year()===t.year())};var r,o=n(44),i=(r=o)&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=r.default.isMoment(e)?e:(0,o.default)(e,t);return n?n.format(i.ISO_MONTH_FORMAT):null};var r=a(n(44)),o=a(n(253)),i=n(78);function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(18),o=n(21),i=n(20),a=n(15),c=n(22),s=n(23),u=n(17),l=n(0),d=n(2);function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(s.a)(this,n)}}var p=Object(l.createContext)({focusHistory:[]}),b=p.Provider,h=p.Consumer;b.displayName="FocusReturnProvider",h.displayName="FocusReturnConsumer";var v=function(e){Object(c.a)(n,e);var t=f(n);function n(){var e;return Object(o.a)(this,n),(e=t.apply(this,arguments)).onFocus=e.onFocus.bind(Object(a.a)(e)),e.state={focusHistory:[]},e}return Object(i.a)(n,[{key:"onFocus",value:function(e){var t=this.state.focusHistory,n=Object(d.uniq)([].concat(Object(r.a)(t),[e.target]).slice(-100).reverse()).reverse();this.setState({focusHistory:n})}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className;return Object(l.createElement)(b,{value:this.state},Object(l.createElement)("div",{onFocus:this.onFocus,className:n},t))}}]),n}(l.Component);t.b=v},function(e,t,n){"use strict";e.exports=n(318)},function(e,t){var n={};n.parse=function(){var e=/^(\-(webkit|o|ms|moz)\-)?(linear\-gradient)/i,t=/^(\-(webkit|o|ms|moz)\-)?(repeating\-linear\-gradient)/i,n=/^(\-(webkit|o|ms|moz)\-)?(radial\-gradient)/i,r=/^(\-(webkit|o|ms|moz)\-)?(repeating\-radial\-gradient)/i,o=/^to (left (top|bottom)|right (top|bottom)|left|right|top|bottom)/i,i=/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,a=/^(left|center|right|top|bottom)/i,c=/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,s=/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,u=/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,l=/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,d=/^\(/,f=/^\)/,p=/^,/,b=/^\#([0-9a-fA-F]+)/,h=/^([a-zA-Z]+)/,v=/^rgb/i,m=/^rgba/i,y=/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/,g="";function O(e){var t=new Error(g+": "+e);throw t.source=g,t}function j(){var e=D(w);return g.length>0&&O("Invalid input not EOF"),e}function w(){return k("linear-gradient",e,S)||k("repeating-linear-gradient",t,S)||k("radial-gradient",n,E)||k("repeating-radial-gradient",r,E)}function k(e,t,n){return _(t,(function(t){var r=n();return r&&(A(p)||O("Missing comma before color stops")),{type:e,orientation:r,colorStops:D(M)}}))}function _(e,t){var n=A(e);if(n)return A(d)||O("Missing ("),result=t(n),A(f)||O("Missing )"),result}function S(){return N("directional",o,1)||N("angular",l,1)}function E(){var e,t,n=x();return n&&((e=[]).push(n),t=g,A(p)&&((n=x())?e.push(n):g=t)),e}function x(){var e=function(){var e=N("shape",/^(circle)/i,0);e&&(e.style=R()||C());return e}()||function(){var e=N("shape",/^(ellipse)/i,0);e&&(e.style=I()||C());return e}();if(e)e.at=function(){if(N("position",/^at/,0)){var e=P();return e||O("Missing positioning value"),e}}();else{var t=P();t&&(e={type:"default-radial",at:t})}return e}function C(){return N("extent-keyword",i,1)}function P(){var e={x:I(),y:I()};if(e.x||e.y)return{type:"position",value:e}}function D(e){var t=e(),n=[];if(t)for(n.push(t);A(p);)(t=e())?n.push(t):O("One extra comma");return n}function M(){var e=N("hex",b,1)||_(m,(function(){return{type:"rgba",value:D(T)}}))||_(v,(function(){return{type:"rgb",value:D(T)}}))||N("literal",h,0);return e||O("Expected color definition"),e.length=I(),e}function T(){return A(y)[1]}function I(){return N("%",s,1)||N("position-keyword",a,1)||R()}function R(){return N("px",c,1)||N("em",u,1)}function N(e,t,n){var r=A(t);if(r)return{type:e,value:r[n]}}function A(e){var t,n;return(n=/^[\n\r\t\s]+/.exec(g))&&L(n[0].length),(t=e.exec(g))&&L(t[0].length),t}function L(e){g=g.substr(e)}return function(e){return g=e.toString(),j()}}(),t.parse=(n||{}).parse},,,,,,,,,function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));t.a=i},,,,,function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));t.a=i},function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));t.a=i},,function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"}));t.a=i},function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M15.6 7.3h-.7l1.6-3.5-.9-.4-3.9 8.5H9v1.5h2l-1.3 2.8H8.4c-2 0-3.7-1.7-3.7-3.7s1.7-3.7 3.7-3.7H10V7.3H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H9l-1.4 3.2.9.4 5.7-12.5h1.4c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.9 0 5.2-2.3 5.2-5.2 0-2.9-2.4-5.2-5.2-5.2z"}));t.a=i},function(e,t,n){"use strict";var r=Object.prototype.toString;e.exports=function(e){var t=r.call(e),n="[object Arguments]"===t;return n||(n="[object Array]"!==t&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===r.call(e.callee)),n}},function(e,t,n){"use strict";(function(t){var r=t.Symbol,o=n(327);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}}).call(this,n(130))},function(e,t,n){"use strict";var r=n(328),o=n(338),i=n(187),a=n(232),c=n(231),s=n(358);e.exports=function(){var e=s(this),t=c(i(e,"length")),n=1;arguments.length>0&&void 0!==arguments[0]&&(n=a(arguments[0]));var u=r(e,0);return o(u,e,t,0,n),u}},function(e,t,n){"use strict";var r=n(58)("%Object.defineProperty%",!0);if(r)try{r({},"a",{value:1})}catch(e){r=null}var o=n(145)("Object.prototype.propertyIsEnumerable");e.exports=function(e,t,n,i,a,c){if(!r){if(!e(c))return!1;if(!c["[[Configurable]]"]||!c["[[Writable]]"])return!1;if(a in i&&o(i,a)!==!!c["[[Enumerable]]"])return!1;var s=c["[[Value]]"];return i[a]=s,t(i[a],s)}return r(i,a,n(c)),!0}},function(e,t,n){"use strict";var r=n(189),o=n(92);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(93),o=n(189),i=n(92);e.exports=function(e){return void 0!==e&&(o(i,"Property Descriptor","Desc",e),!(!r(e,"[[Value]]")&&!r(e,"[[Writable]]")))}},function(e,t,n){"use strict";var r=n(190);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(93),o=n(58)("%TypeError%"),i=n(92),a=n(226),c=n(336);e.exports=function(e){if("Object"!==i(e))throw new o("ToPropertyDescriptor requires an object");var t={};if(r(e,"enumerable")&&(t["[[Enumerable]]"]=a(e.enumerable)),r(e,"configurable")&&(t["[[Configurable]]"]=a(e.configurable)),r(e,"value")&&(t["[[Value]]"]=e.value),r(e,"writable")&&(t["[[Writable]]"]=a(e.writable)),r(e,"get")){var n=e.get;if(void 0!==n&&!c(n))throw new o("getter must be a function");t["[[Get]]"]=n}if(r(e,"set")){var s=e.set;if(void 0!==s&&!c(s))throw new o("setter must be a function");t["[[Set]]"]=s}if((r(t,"[[Get]]")||r(t,"[[Set]]"))&&(r(t,"[[Value]]")||r(t,"[[Writable]]")))throw new o("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}},function(e,t,n){"use strict";e.exports=function(e){return!!e}},function(e,t,n){"use strict";var r,o,i=Function.prototype.toString,a="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof a&&"function"==typeof Object.defineProperty)try{r=Object.defineProperty({},"length",{get:function(){throw o}}),o={},a((function(){throw 42}),null,r)}catch(e){e!==o&&(a=null)}else a=null;var c=/^\s*class\b/,s=function(e){try{var t=i.call(e);return c.test(t)}catch(e){return!1}},u=Object.prototype.toString,l="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=a?function(e){if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;try{a(e,null,r)}catch(e){if(e!==o)return!1}return!s(e)}:function(e){if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;if(l)return function(e){try{return!s(e)&&(i.call(e),!0)}catch(e){return!1}}(e);if(s(e))return!1;var t=u.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t}},function(e,t,n){"use strict";var r=Number.isNaN||function(e){return e!=e};e.exports=Number.isFinite||function(e){return"number"==typeof e&&!r(e)&&e!==1/0&&e!==-1/0}},function(e,t,n){"use strict";var r=n(58),o=r("%Math%"),i=r("%Number%");e.exports=i.MAX_SAFE_INTEGER||o.pow(2,53)-1},function(e,t,n){"use strict";e.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},function(e,t,n){"use strict";var r=n(229),o=n(232);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(348),o=n(351);e.exports=function(e){var t=o(e);return r(t)}},function(e,t,n){"use strict";var r=Date.prototype.getDay,o=Object.prototype.toString,i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(e){return"object"==typeof e&&null!==e&&(i?function(e){try{return r.call(e),!0}catch(e){return!1}}(e):"[object Date]"===o.call(e))}},function(e,t,n){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},function(e,t,n){"use strict";var r=n(220);e.exports=function(){return Array.prototype.flat||r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=void 0,o=void 0;function i(e,t){var n=t(e(o));return function(){return n}}function a(e){return i(e,r.createLTR||r.create)}function c(){for(var e=arguments.length,t=Array(e),n=0;n=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(241);e.exports=function(){return"function"==typeof Object.values?Object.values:r}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return!("undefined"==typeof window||!("ontouchstart"in window||window.DocumentTouch&&"undefined"!=typeof document&&document instanceof window.DocumentTouch))||!("undefined"==typeof navigator||!navigator.maxTouchPoints&&!navigator.msMaxTouchPoints)},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return!(!r.default.isMoment(e)||!r.default.isMoment(t))&&(!(0,o.default)(e,t)&&!(0,i.default)(e,t))};var r=a(n(44)),o=a(n(252)),i=a(n(194));function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!i.default.isMoment(e)||!i.default.isMoment(t))return!1;var n=e.year(),r=e.month(),o=t.year(),a=t.month(),c=n===o,s=r===a;return c&&s?e.date()2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e)return 0;var o="width"===t?"Left":"Top",i="width"===t?"Right":"Bottom",a=!n||r?window.getComputedStyle(e):null,c=e.offsetWidth,s=e.offsetHeight,u="width"===t?c:s;n||(u-=parseFloat(a["padding"+o])+parseFloat(a["padding"+i])+parseFloat(a["border"+o+"Width"])+parseFloat(a["border"+i+"Width"]));r&&(u+=parseFloat(a["margin"+o])+parseFloat(a["margin"+i]));return u}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return 7*e+2*t+1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return!(!i.default.isMoment(e)||!i.default.isMoment(t))&&(e.month()===t.month()&&e.year()===t.year())};var r,o=n(44),i=(r=o)&&r.__esModule?r:{default:r}},,,,,,function(e,t,n){"use strict";n.r(t),n.d(t,"SVG",(function(){return r.SVG})),n.d(t,"Path",(function(){return r.Path})),n.d(t,"Circle",(function(){return r.Circle})),n.d(t,"Polygon",(function(){return r.Polygon})),n.d(t,"Rect",(function(){return r.Rect})),n.d(t,"G",(function(){return r.G})),n.d(t,"HorizontalRule",(function(){return r.HorizontalRule})),n.d(t,"BlockQuotation",(function(){return r.BlockQuotation})),n.d(t,"__experimentalAlignmentMatrixControl",(function(){return st})),n.d(t,"Animate",(function(){return ut.a})),n.d(t,"AnglePickerControl",(function(){return Nr})),n.d(t,"Autocomplete",(function(){return Jr})),n.d(t,"BaseControl",(function(){return dt})),n.d(t,"__experimentalBoxControl",(function(){return gi})),n.d(t,"Button",(function(){return Wr.a})),n.d(t,"ButtonGroup",(function(){return Oi})),n.d(t,"Card",(function(){return Fi})),n.d(t,"CardBody",(function(){return Vi})),n.d(t,"CardDivider",(function(){return Ki})),n.d(t,"CardFooter",(function(){return $i})),n.d(t,"CardHeader",(function(){return Xi})),n.d(t,"CardMedia",(function(){return Ji})),n.d(t,"CheckboxControl",(function(){return ta})),n.d(t,"ClipboardButton",(function(){return na})),n.d(t,"ColorIndicator",(function(){return ra})),n.d(t,"ColorPalette",(function(){return Ia})),n.d(t,"ColorPicker",(function(){return Da})),n.d(t,"ComboboxControl",(function(){return Ha})),n.d(t,"CustomSelectControl",(function(){return Ac})),n.d(t,"Dashicon",(function(){return Lc.a})),n.d(t,"DateTimePicker",(function(){return Zc})),n.d(t,"DatePicker",(function(){return Kc})),n.d(t,"TimePicker",(function(){return qc})),n.d(t,"__experimentalDimensionControl",(function(){return rs})),n.d(t,"Disabled",(function(){return ls})),n.d(t,"Draggable",(function(){return ps})),n.d(t,"DropZone",(function(){return Es})),n.d(t,"__unstableUseDropZone",(function(){return _s})),n.d(t,"DropZoneProvider",(function(){return ks})),n.d(t,"Dropdown",(function(){return Ma})),n.d(t,"DropdownMenu",(function(){return Fs})),n.d(t,"ExternalLink",(function(){return Bs})),n.d(t,"Flex",(function(){return yt})),n.d(t,"FlexBlock",(function(){return vt})),n.d(t,"FlexItem",(function(){return gt})),n.d(t,"FocalPointPicker",(function(){return yu})),n.d(t,"FocusableIframe",(function(){return wu})),n.d(t,"FontSizePicker",(function(){return tl})),n.d(t,"FormFileUpload",(function(){return nl})),n.d(t,"FormToggle",(function(){return rl})),n.d(t,"FormTokenField",(function(){return fl})),n.d(t,"__experimentalGradientPicker",(function(){return Yl})),n.d(t,"__experimentalCustomGradientPicker",(function(){return ql})),n.d(t,"Guide",(function(){return vd})),n.d(t,"GuidePage",(function(){return md})),n.d(t,"Icon",(function(){return Xc.a})),n.d(t,"IconButton",(function(){return yd})),n.d(t,"__experimentalInputControl",(function(){return gr})),n.d(t,"KeyboardShortcuts",(function(){return sa})),n.d(t,"MenuGroup",(function(){return gd})),n.d(t,"MenuItem",(function(){return jd})),n.d(t,"MenuItemsChoice",(function(){return wd})),n.d(t,"Modal",(function(){return fd})),n.d(t,"ScrollLock",(function(){return kd.a})),n.d(t,"NavigableMenu",(function(){return Rs})),n.d(t,"TabbableContainer",(function(){return _d})),n.d(t,"__experimentalNavigation",(function(){return Fd})),n.d(t,"__experimentalNavigationBackButton",(function(){return Bd})),n.d(t,"__experimentalNavigationGroup",(function(){return Kd})),n.d(t,"__experimentalNavigationItem",(function(){return $d})),n.d(t,"__experimentalNavigationMenu",(function(){return Zd})),n.d(t,"Notice",(function(){return Xd})),n.d(t,"__experimentalNumberControl",(function(){return Cr})),n.d(t,"NoticeList",(function(){return Jd})),n.d(t,"Panel",(function(){return ef})),n.d(t,"PanelBody",(function(){return af})),n.d(t,"PanelHeader",(function(){return Qd})),n.d(t,"PanelRow",(function(){return cf})),n.d(t,"Placeholder",(function(){return sf})),n.d(t,"Popover",(function(){return Ur.a})),n.d(t,"QueryControls",(function(){return hf})),n.d(t,"__experimentalRadio",(function(){return Ef})),n.d(t,"__experimentalRadioGroup",(function(){return Tf})),n.d(t,"RadioControl",(function(){return If})),n.d(t,"RangeControl",(function(){return Qu})),n.d(t,"ResizableBox",(function(){return mp})),n.d(t,"ResponsiveWrapper",(function(){return yp})),n.d(t,"SandBox",(function(){return jp})),n.d(t,"SelectControl",(function(){return ts})),n.d(t,"Snackbar",(function(){return wp.a})),n.d(t,"SnackbarList",(function(){return xp})),n.d(t,"Spinner",(function(){return Cp})),n.d(t,"TabPanel",(function(){return Dp})),n.d(t,"__experimentalText",(function(){return Kt})),n.d(t,"TextControl",(function(){return va})),n.d(t,"TextareaControl",(function(){return Mp})),n.d(t,"TextHighlight",(function(){return Tp})),n.d(t,"Tip",(function(){return Ip})),n.d(t,"ToggleControl",(function(){return Rp})),n.d(t,"Toolbar",(function(){return qp})),n.d(t,"ToolbarButton",(function(){return Fp})),n.d(t,"__experimentalToolbarContext",(function(){return Ap.a})),n.d(t,"ToolbarGroup",(function(){return Kp})),n.d(t,"ToolbarItem",(function(){return Np.a})),n.d(t,"Tooltip",(function(){return C.a})),n.d(t,"__experimentalTreeGrid",(function(){return Qp})),n.d(t,"__experimentalTreeGridRow",(function(){return eb})),n.d(t,"__experimentalTreeGridCell",(function(){return ob})),n.d(t,"__experimentalTreeGridItem",(function(){return rb})),n.d(t,"TreeSelect",(function(){return ff})),n.d(t,"__experimentalUnitControl",(function(){return yo})),n.d(t,"VisuallyHidden",(function(){return M})),n.d(t,"IsolatedEventContainer",(function(){return Zl.a})),n.d(t,"createSlotFill",(function(){return ib.c})),n.d(t,"Slot",(function(){return ib.b})),n.d(t,"Fill",(function(){return ib.a})),n.d(t,"SlotFillProvider",(function(){return ab.b})),n.d(t,"__experimentalUseSlot",(function(){return cb.a})),n.d(t,"navigateRegions",(function(){return ub})),n.d(t,"withConstrainedTabbing",(function(){return Jl.a})),n.d(t,"withFallbackStyles",(function(){return db})),n.d(t,"withFilters",(function(){return bb})),n.d(t,"withFocusOutside",(function(){return Hs.a})),n.d(t,"withFocusReturn",(function(){return Xl.a})),n.d(t,"FocusReturnProvider",(function(){return hb.b})),n.d(t,"withNotices",(function(){return Eb})),n.d(t,"withSpokenMessages",(function(){return qr}));var r=n(7),o=n(8),i=n(12),a=n(14),c=n(0),s=n(2),u=n(9),l=n.n(u),d=n(51),f=n(122),p=n(16),b=n(50),h=n(49),v=n(13),m=n.n(v),y=n(63),g=n(59),O=n(67),j=Object(h.a)({name:"Group",compose:O.a,useProps:function(e,t){return Object(p.b)({role:"group"},t)}}),w=(Object(b.a)({as:"div",useHook:j}),n(95)),k=Object(h.a)({name:"CompositeGroup",compose:[j,w.a],useState:d.g,propsAreEqual:function(e,t){if(!t.id||e.id!==t.id)return j.unstable_propsAreEqual(e,t);var n=e.currentId,r=(e.unstable_moves,Object(p.a)(e,["currentId","unstable_moves"])),o=t.currentId,i=(t.unstable_moves,Object(p.a)(t,["currentId","unstable_moves"]));if(e.items&&t.items){var a=Object(d.d)(e.items,n),c=Object(d.d)(t.items,o),s=null==a?void 0:a.groupId,u=null==c?void 0:c.groupId;if(t.id===u||t.id===s)return!1}return j.unstable_propsAreEqual(r,i)},useProps:function(e,t){var n=t.ref,r=Object(p.a)(t,["ref"]),o=Object(v.useRef)(null),i=e.id;return Object(g.a)((function(){var t;if(i)return null===(t=e.registerGroup)||void 0===t||t.call(e,{id:i,ref:o}),function(){var t;null===(t=e.unregisterGroup)||void 0===t||t.call(e,i)}}),[i,e.registerGroup,e.unregisterGroup]),Object(p.b)({ref:Object(y.a)(o,n)},r)}}),_=Object(b.a)({as:"div",useHook:k}),S=n(1),E=n(10),x=n(123),C=n(83),P=n(5);function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var M=function(e){var t=e.as,n=void 0===t?"div":t,r=e.className,o=Object(a.a)(e,["as","className"]);return function(e){var t=e.as,n=void 0===t?"div":t,r=Object(a.a)(e,["as"]);return"function"==typeof r.children?r.children(r):Object(c.createElement)(n,r)}(function(e){for(var t=1;tr&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(h,"$1"+e.trim());case 58:return e.trim()+t.replace(h,"$1"+e.trim());default:if(0<1*n&&0s.charCodeAt(8))break;case 115:a=a.replace(s,"-webkit-"+s)+";"+a;break;case 207:case 102:a=a.replace(s,"-webkit-"+(102c.charCodeAt(0)&&(c=c.trim()),c=[c],0p)&&(z=(V=V.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=z((function(e){return ne(e)?e:e.replace(ee,"-$&").toLowerCase()})),ie=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(te,(function(e,t,n){return ce={name:t,styles:n,next:ce},t}))}return 1===Q[e]||ne(e)||"number"!=typeof t||0===t?t:t+"px"};function ae(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return ce={name:n.name,styles:n.styles,next:ce},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)ce={name:o.name,styles:o.styles,next:ce},o=o.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;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,i=n.b;return"rgba(".concat(r,", ").concat(o,", ").concat(i,", ").concat(t,")")}function Fe(e){return Object(s.get)(Ae,e,"#000")}function ze(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transition";switch(t){case"transition":e="transition-duration: 0ms;";break;case"animation":e="animation-duration: 1ms;";break;default:e="\n\t\t\t\tanimation-duration: 1ms;\n\t\t\t\ttransition-duration: 0ms;\n\t\t\t"}return"\n\t\t@media ( prefers-reduced-motion: reduce ) {\n\t\t\t".concat(e,";\n\t\t}\n\t")}var Be={name:"1xiracb",styles:"border-radius:2px;box-sizing:border-box;display:grid;grid-template-columns:repeat( 3,1fr );outline:none;"},He=function(){return Be},Ve=je("div",{target:"e1od1u4s0",label:"Root"})(He,";border:1px solid transparent;cursor:pointer;grid-template-columns:auto;",(function(e){var t=e.size,n=void 0===t?92:t;return le("grid-template-rows:repeat( 3,calc( ",n,"px / 3 ) );width:",n,"px;")}),";"),Ke=je("div",{target:"e1od1u4s1",label:"Row"})({name:"1177s8r",styles:"box-sizing:border-box;display:grid;grid-template-columns:repeat( 3,1fr );"}),We=function(e){return le("background:currentColor;box-sizing:border-box;display:grid;margin:auto;transition:all 120ms linear;",ze("transition")," ",(t=e.isActive,n=t?"0 0 0 2px ".concat(Fe("black")):null,r=Fe(t?"black":"lightGray.800"),o=Fe(t?"black":"blue.medium.focus"),le("box-shadow:",n,";color:",r,";*:hover > &{color:",o,";}")),"");var t,n,r,o},Ue=je("span",{target:"e1od1u4s2",label:"Point"})("height:6px;width:6px;",We,""),Ge=je("span",{target:"e1od1u4s3",label:"Cell"})({name:"10ro24i",styles:"appearance:none;border:none;box-sizing:border-box;margin:0;display:flex;position:relative;outline:none;align-items:center;justify-content:center;padding:0;"});function $e(e){var t=e.isActive,n=void 0!==t&&t,r=e.value,i=Object(a.a)(e,["isActive","value"]),s=I[r];return Object(c.createElement)(C.a,{text:s},Object(c.createElement)(x.a,Object(o.a)({as:Ge,role:"gridcell"},i),Object(c.createElement)(M,null,r),Object(c.createElement)(Ue,{isActive:n,role:"presentation"})))}var qe=new RegExp(/-left/g),Ye=new RegExp(/-right/g),Ze=new RegExp(/Left/g),Xe=new RegExp(/Right/g);function Je(){return!(!document||"rtl"!==document.documentElement.dir)}function Qe(){return Je()}function et(e){return"left"===e?"right":"right"===e?"left":qe.test(e)?e.replace(qe,"-right"):Ye.test(e)?e.replace(Ye,"-left"):Ze.test(e)?e.replace(Ze,"Right"):Xe.test(e)?e.replace(Xe,"Left"):e}var tt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(s.mapKeys)(e,(function(e,t){return et(t)}))};function nt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return function(){var n=Je();return le(t?n?t:e:n?tt(e):e,"")}}je("div",{target:"elqsdmc0",label:"Wrapper"})({name:"co61ta",styles:"box-sizing:border-box;padding:2px;"});var rt=je("div",{target:"elqsdmc1",label:"Root"})("transform-origin:top left;height:100%;width:100%;",He,";",(function(){return le({gridTemplateRows:"repeat( 3, calc( ".concat(21,"px / 3))"),padding:1.5,maxHeight:24,maxWidth:24},"")}),";",(function(e){var t=e.disablePointerEvents;return le({pointerEvents:t?"none":null},"")}),";"),ot=je("span",{target:"elqsdmc2",label:"Point"})("height:2px;width:2px;",We,";",(function(e){var t=e.isActive;return le("box-shadow:",t?"0 0 0 1px currentColor":null,";color:currentColor;*:hover > &{color:currentColor;}")}),";"),it=Ge;function at(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ct(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"center",t=N(e).replace("-"," "),n=R.indexOf(t);return n>-1?n:void 0}(p),v=(s/24).toFixed(2),m=l()("component-alignment-matrix-control-icon",t),y=ct(ct({},d),{},{transform:"scale(".concat(v,")")});return Object(c.createElement)(rt,Object(o.a)({},b,{className:m,disablePointerEvents:r,role:"presentation",size:s,style:y}),R.map((function(e,t){var n=h===t;return Object(c.createElement)(it,{key:e},Object(c.createElement)(ot,{isActive:n}))})))};var ut=n(135);function lt(e){var t=e.id,n=e.label,r=e.hideLabelFromVision,o=e.help,i=e.className,a=e.children;return Object(c.createElement)("div",{className:l()("components-base-control",i)},Object(c.createElement)("div",{className:"components-base-control__field"},n&&t&&(r?Object(c.createElement)(M,{as:"label",htmlFor:t},n):Object(c.createElement)("label",{className:"components-base-control__label",htmlFor:t},n)),n&&!t&&(r?Object(c.createElement)(M,{as:"label"},n):Object(c.createElement)(lt.VisualLabel,null,n)),a),!!o&&Object(c.createElement)("p",{id:t+"__help",className:"components-base-control__help"},o))}lt.VisualLabel=function(e){var t=e.className,n=e.children;return t=l()("components-base-control__label",t),Object(c.createElement)("span",{className:t},n)};var dt=lt;var ft={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 le({alignItems:{top:"flex-start",bottom:"flex-end"}[t]||t},"")}),";",(function(e){var t=e.justify,n=e.isReversed,r={left:"flex-start",right:"flex-end"},o=r[t]||t;return n&&r[t]&&(o="left"===t?r.right:r.left),le({justifyContent:o},"")}),";",(function(e){var t=e.gap,n=e.isReversed,r="number"==typeof t?4*t:4,o="margin-".concat(n?"left":"right");return le("> *{",o,":",r,"px;&:last-child{",o,":0;}}")}),";",(function(e){return e.isReversed?ft:""}),";"),bt=je("div",{target:"eboqfv51",label:"Item"})({name:"13luw5d",styles:"box-sizing:border-box;min-width:0;max-width:100%;"}),ht=je(bt,{target:"eboqfv52",label:"Block"})({name:"1rr4qq7",styles:"flex:1;"});var vt=Object(c.forwardRef)((function(e,t){var n=e.className,r=Object(a.a)(e,["className"]),i=l()("components-flex__block",n);return Object(c.createElement)(ht,Object(o.a)({},r,{className:i,ref:t}))}));var mt=Object(c.forwardRef)((function(e,t){var n=e.align,r=void 0===n?"center":n,i=e.className,s=e.gap,u=void 0===s?2:s,d=e.justify,f=void 0===d?"space-between":d,p=e.isReversed,b=void 0!==p&&p,h=Object(a.a)(e,["align","className","gap","justify","isReversed"]),v=l()("components-flex",i);return Object(c.createElement)(pt,Object(o.a)({},h,{align:r,className:v,ref:t,gap:u,justify:f,isReversed:b}))})),yt=mt;var gt=Object(c.forwardRef)((function(e,t){var n=e.className,r=Object(a.a)(e,["className"]),i=l()("components-flex__item",n);return Object(c.createElement)(bt,Object(o.a)({},r,{className:i,ref:t}))}));function Ot(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var jt=le;function wt(){var e=Ot(["\n\t","\n\t","\n"]);return wt=function(){return e},e}function kt(){var e=Ot(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return kt=function(){return e},e}function _t(){var e=Ot(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return _t=function(){return e},e}function St(){var e=Ot(["\n\t\t\t\t","\n\t\t\t"]);return St=function(){return e},e}function Et(){var e=Ot(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return Et=function(){return e},e}function xt(){var e=Ot(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return xt=function(){return e},e}function Ct(){var e=Ot(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return Ct=function(){return e},e}function Pt(){var e=Ot(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return Pt=function(){return e},e}function Dt(){var e=Ot(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return Dt=function(){return e},e}var Mt="\n ".concat("font-weight: 400;","\n"),Tt="\n\tfont-size: 32px;\n\tline-height: 40px;\n",It="\n\tfont-size: 24px;\n\tline-height: 32px;\n",Rt="\n\tfont-size: 20px;\n\tline-height: 28px;\n",Nt="\n\t".concat("font-weight: 600;","\n\tfont-size: 14px;\n\tline-height: 20px;\n"),At="\n\t".concat("font-weight: 400;","\n"),Lt="\n\tfont-size: 16px;\n\tline-height: 24px;\n",Ft="\n\tfont-size: 14px;\n\tline-height: 20px;\n",zt="\n ".concat("font-weight: 600;","\n font-size: 14px;\n line-height: 20px;\n"),Bt="\n\t".concat("font-weight: 400;","\n\tfont-size: 12px;\n\tline-height: 16px;\n"),Ht="\n\t".concat("font-weight: 600;","\n\tfont-size: 12px;\n\tline-height: 16px;\n"),Vt=function(e){return jt(wt(),'font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,\nOxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;',function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body";switch(e){case"title.large":return jt(Dt(),Mt,Tt);case"title.medium":return jt(Pt(),Mt,It);case"title.small":return jt(Ct(),Mt,Rt);case"subtitle":return jt(xt(),Nt,"\n\tfont-size: 16px;\n\tline-height: 24px;\n");case"subtitle.small":return jt(Et(),Nt,"\n\tfont-size: 14px;\n\tline-height: 20px;\n");case"body":return jt(St(),At);case"body.large":return jt(_t(),At,Lt);case"body.small":return jt(kt(),At,Ft);case"button":return zt;case"caption":return Bt;case"label":return Ht}}(e.variant))},Kt=je("p",{target:"e15wbhsk0",label:"Text"})("\n\tbox-sizing: border-box;\n\tmargin: 0;\n",Vt,"");var Wt={name:"1dacand",styles:"padding-top:0;"},Ut=function(){return Wt},Gt={name:"r6z5ec",styles:"z-index:1;"},$t=function(e){return e.isFocused?Gt:""},qt={name:"uz6002",styles:"align-items:flex-start;flex-direction:column;"},Yt={name:"53hdd7",styles:"align-items:flex-start;flex-direction:column-reverse;"},Zt=function(e){switch(e.labelPosition){case"top":return qt;case"bottom":return Yt;default:return""}},Xt=je(yt,{target:"e1cr7zh10",label:"Root"})("position:relative;border-radius:2px;",Ut,";",$t,";",Zt,";"),Jt={name:"8atqhb",styles:"width:100%;"},Qt=je("div",{target:"e1cr7zh11",label:"Container"})("align-items:center;box-sizing:border-box;border-radius:inherit;display:flex;flex:1;position:relative;",(function(e){var t=Fe(e.disabled?"ui.backgroundDisabled":"ui.background");return le({backgroundColor:t},"")}),";",(function(e){return"side"===e.labelPosition?"":Jt}),";"),en={name:"103r1kr",styles:"&::-webkit-input-placeholder{line-height:normal;}"},tn=je("input",{target:"e1cr7zh12",label:"Input"})("&&&{background-color:transparent;box-sizing:border-box;border:none;box-shadow:none !important;color:",Fe("black"),";display:block;margin:0;outline:none;padding-left:8px;padding-right:8px;width:100%;",(function(e){var t=e.isDragging,n=e.dragCursor,r="",o="";return t&&(r=le("cursor:",n,";user-select:none;&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none !important;margin:0 !important;}")),t&&n&&(o=le("&:active{cursor:",n,";}")),le(r,";",o,";")}),";",(function(e){return e.disabled?le({color:Fe("ui.textDisabled")},""):""}),";",(function(e){var t={default:"13px",small:"11px"}[e.size];return t?le("font-size:","16px",";@media ( min-width:600px ){font-size:",t,";}"):""}),";",(function(e){var t=e.size,n={default:{height:30,lineHeight:1,minHeight:30},small:{height:24,lineHeight:1,minHeight:24}};return le(n[t]||n.default,"")}),";",(function(){return en}),";}"),nn={name:"8uhtka",styles:"overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"},rn=function(){return nn},on=je(Kt,{target:"e1cr7zh13",label:"BaseLabel"})("&&&{box-sizing:border-box;color:currentColor;display:block;margin:0;max-width:100%;padding-bottom:4px;padding-top:0;z-index:1;",rn,";}"),an=function(e){return Object(c.createElement)(on,Object(o.a)({},e,{as:"label"}))},cn=je(gt,{target:"e1cr7zh14",label:"LabelWrapper"})({name:"120o8im",styles:"max-width:calc( 100% - 10px );"}),sn=je("div",{target:"e1cr7zh15",label:"BackdropUI"})("&&&{box-sizing:border-box;border-radius:inherit;bottom:0;left:0;margin:0;padding:0;pointer-events:none;position:absolute;right:0;top:0;",(function(e){var t=e.disabled,n=e.isFocused,r=Fe(n?"ui.borderFocus":"ui.border"),o=null;return n&&(o="0 0 0 1px ".concat(Fe("ui.borderFocus")," inset")),t&&(r=Fe("ui.borderDisabled")),le({boxShadow:o,borderColor:r,borderStyle:"solid",borderWidth:1},"")}),";",nt({paddingLeft:2}),"}"),un=je("span",{target:"e1cr7zh16",label:"Prefix"})({name:"1pxuk39",styles:"box-sizing:border-box;display:block;"}),ln=je("span",{target:"e1cr7zh17",label:"Suffix"})({name:"1pxuk39",styles:"box-sizing:border-box;display:block;"});var dn=Object(c.memo)((function(e){var t=e.disabled,n=void 0!==t&&t,r=e.isFocused,o=void 0!==r&&r;return Object(c.createElement)(sn,{"aria-hidden":"true",className:"components-input-control__backdrop",disabled:n,isFocused:o})}));function fn(e){var t=e.children,n=e.hideLabelFromVision,r=e.htmlFor,i=Object(a.a)(e,["children","hideLabelFromVision","htmlFor"]);return t?n?Object(c.createElement)(M,{as:"label",htmlFor:r},t):Object(c.createElement)(an,Object(o.a)({htmlFor:r},i),t):null}function pn(e,t){var n=e.children,r=e.className,i=e.disabled,s=void 0!==i&&i,u=e.hideLabelFromVision,l=void 0!==u&&u,d=e.id,f=e.isFocused,p=void 0!==f&&f,b=e.label,h=e.prefix,v=e.size,m=void 0===v?"default":v,y=e.suffix,g=Object(a.a)(e,["children","className","disabled","hideLabelFromVision","id","isFocused","label","prefix","size","suffix"]),O=function(e){var t=Object(E.useInstanceId)(pn),n="input-base-control-".concat(t);return e||n}(d);return Object(c.createElement)(Xt,Object(o.a)({},g,{className:r,isFocused:p,ref:t}),Object(c.createElement)(cn,null,Object(c.createElement)(fn,{className:"components-input-control__label",hideLabelFromVision:l,htmlFor:O,size:m},b)),Object(c.createElement)(Qt,{className:"components-input-control__container",disabled:s,isFocused:p},h&&Object(c.createElement)(un,{className:"components-input-control__prefix"},h),n,y&&Object(c.createElement)(ln,{className:"components-input-control__suffix"},y),Object(c.createElement)(dn,{"aria-hidden":"true",disabled:s,isFocused:p,label:b,size:m})))}var bn=Object(c.forwardRef)(pn);function hn(e,t){return e.map((function(e,n){return e+t[n]}))}function vn(e,t){return e.map((function(e,n){return e-t[n]}))}function mn(e,t,n){return n=n||Math.hypot.apply(Math,e),t?n/t:0}function yn(e,t){return t?e.map((function(e){return e/t})):Array(e.length).fill(0)}function gn(e){return Math.hypot.apply(Math,e)}function On(e,t){return t=t||Math.hypot.apply(Math,e)||1,e.map((function(e){return e/t}))}function jn(e,t,n){var r=Math.hypot.apply(Math,t);return{velocities:yn(t,n),velocity:mn(t,n,r),distance:gn(e),direction:On(t,r)}}function wn(e){return Math.sign?Math.sign(e):Number(e>0)-Number(e<0)||+e}function kn(e,t){return Math.abs(e)>=t&&wn(e)*t}function _n(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 Sn(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?_n(e-n,n-t,r)+n:e}function En(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}function Dn(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 Tn(){}var In=function(){for(var e=arguments.length,t=new Array(e),n=0;n0?t:n}return null}function Kn(e){var t="buttons"in e?e.buttons:0,n=Vn(e),r=n&&n.length||0;return xn({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 Wn(e){var t=Vn(e),n=t?t[0]:e;return{values:[n.clientX,n.clientY]}}var Un=function(){var e=this;this.state=Fn(),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&&(Hn(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,Bn(e.config.window,n,e.config.eventOptions))},this.removeWindowListeners=function(t){if(e.config.window){var n=e.windowListeners[t];n&&(Hn(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(),In.apply(void 0,r)])})),Bn(t,e.domListeners,e.config.eventOptions)},this.addBindings=function(t,n){(Array.isArray(t)?t:[t]).forEach((function(t){e.bindings[t]?e.bindings[t].push(n):e.bindings[t]=[n]}))},this.getBindings=function(){var t={},n=e.config.captureString;return Object.entries(e.bindings).forEach((function(e){var r=e[0],o=e[1],i=Array.isArray(o)?o:[o];t[r+n]=In.apply(void 0,i)})),t},this.getBind=function(){if(e.config.domTarget){var t=e.getDomTarget();return t&&e.addDomTargetListeners(t),e.clean}return e.getBindings()}};function Gn(e,t,n,r){var o=m.a.useMemo((function(){var e=new Un;return{nativeRefs:r,current:e,bind:function(){e.resetBindings();for(var n=arguments.length,r=new Array(n),i=0;i2?o-2:0),a=2;ad?"x":l0?(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=Kn(e);if(t.down){r.updateSharedState(t);var n=Wn(e).values,o=r.getKinematics(n,e),i=r.state._isTap;i&&gn(o._movement)>=3&&(i=!1),r.updateGestureState(xn(xn(xn({},r.getGenericPayload(e)),o),{},{_isTap:i,cancel:function(){return r.onCancel()}})),r.fireGestureHandler()}else r.onDragEnd(e)}else r.state._delayedEvent&&(r.clearTimeout(),r.startDrag(e))},r.onDragEnd=function(e){r.state._active=!1,r.updateSharedState({down:!1,buttons:0,touches:0});var t=r.state,n=t._isTap,o=t.values,i=t.velocities,a=i[0],c=i[1],s=t.movement,u=s[0],l=s[1],d=t._intentional,f=d[0],p=d[1],b=xn(xn({},r.getGenericPayload(e)),r.getMovement(o)),h=b.elapsedTime,v=r.config,m=v.swipeVelocity,y=m[0],g=m[1],O=v.swipeDistance,j=O[0],w=O[1],k=[0,0];h<220&&(!1!==f&&Math.abs(a)>y&&Math.abs(u)>j&&(k[0]=wn(a)),!1!==p&&Math.abs(c)>g&&Math.abs(l)>w&&(k[1]=wn(c))),r.updateGestureState(xn(xn({event:e},b),{},{tap:n,swipe:k})),r.fireGestureHandler(r.config.filterTaps&&r.state._isTap)},r.clean=function(){e.prototype.clean.call(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r)),r.state._delayedEvent=!1,r.controller.config.pointer&&r.removePointers()},r.onCancel=function(){r.updateGestureState({canceled:!0,cancel:Tn}),r.state._active=!1,r.updateSharedState({down:!1,buttons:0,touches:0}),requestAnimationFrame((function(){return r.fireGestureHandler()}))},r}Cn(t,e);var n=t.prototype;return n.startDrag=function(e){var t=this,n=Wn(e).values;this.updateSharedState(Kn(e));var r=xn(xn({},this.getStartGestureState(n,e)),this.getGenericPayload(e,!0));this.updateGestureState(xn(xn(xn({},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}(qn),Zn="undefined"!=typeof window?window:void 0,Xn={lockDirection:!1,axis:void 0,bounds:void 0};function Jn(e){void 0===e&&(e={});var t=e,n=t.eventOptions,r=(n=void 0===n?{}:n).passive,o=void 0===r||r,i=n.capture,a=void 0!==i&&i,c=n.pointer,s=void 0!==c&&c,u=t.window,l=void 0===u?Zn:u,d=t.domTarget,f=void 0===d?void 0:d,p=t.enabled,b=void 0===p||p;return xn(xn({},Pn(t,["eventOptions","window","domTarget","enabled"])),{},{enabled:b,domTarget:f,window:l,eventOptions:{passive:!f||!!o,capture:!!a},captureString:a?"Capture":"",pointer:!!s})}function Qn(e){var t=e.threshold,n=void 0===t?void 0:t,r=e.rubberband,o=void 0===r?0:r,i=e.enabled,a=void 0===i||i,c=e.initial;return"boolean"==typeof o&&(o=o?.15:0),void 0===n&&(n=0),{enabled:a,initial:void 0===c?[0,0]:c,threshold:Rn(n),rubberband:Rn(o)}}function er(e){void 0===e&&(e={});var t=e,n=t.axis,r=t.lockDirection,o=t.bounds,i=void 0===o?{}:o,a=Pn(t,["axis","lockDirection","bounds"]),c=[[Nn(i.left,-1/0),Nn(i.right,1/0)],[Nn(i.top,-1/0),Nn(i.bottom,1/0)]];return xn(xn(xn(xn({},Qn(a)),Xn),An({axis:n,lockDirection:r},e)),{},{bounds:c})}function tr(e){void 0===e&&(e={});var t=e,n=t.enabled,r=t.threshold,o=t.bounds,i=t.rubberband,a=t.initial,c=Pn(t,["enabled","threshold","bounds","rubberband","initial"]),s=c.swipeVelocity,u=void 0===s?.5:s,l=c.swipeDistance,d=void 0===l?60:l,f=c.delay,p=void 0!==f&&f,b=c.filterTaps,h=void 0!==b&&b,v=c.axis,m=c.lockDirection;void 0===r?r=Math.max(0,h?3:0,m||v?1:0):h=!0;var y=er(An({enabled:n,threshold:r,bounds:o,rubberband:i,axis:v,lockDirection:m,initial:a},e));return xn(xn({},y),{},{filterTaps:h||y.threshold[0]+y.threshold[1]>0,swipeVelocity:Rn(u),swipeDistance:Rn(d),delay:"number"==typeof p?p:p?180:0})}var nr=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=Wn(e).values;r.updateSharedState(Kn(e));var n=xn(xn({},r.getStartGestureState(t,e)),r.getGenericPayload(e,!0));r.updateGestureState(xn(xn({},n),r.getMovement(t,n))),r.fireGestureHandler()},r.onMoveChange=function(e){var t=Kn(e);r.updateSharedState(t);var n=Wn(e).values,o=r.getKinematics(n,e);r.updateGestureState(xn(xn({},r.getGenericPayload(e)),o)),r.fireGestureHandler()},r.onMoveEnd=function(){r.state._active=!1,r.updateGestureState(xn(xn({},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=Wn(e).values,n=xn(xn(xn(xn({},r.controller.state.shared),r.state),r.getGenericPayload(e,!0)),{},{values:t,active:!0,hovering:!0});r.controller.handlers.hover(xn(xn({},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=Wn(e).values,n=xn(xn(xn(xn({},r.controller.state.shared),r.state),r.getGenericPayload(e)),{},{values:t,active:!1});r.controller.handlers.hover(xn(xn({},n),r.mapStateValues(n)))}},r}return Cn(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}(qn);var rr=n(19);function or(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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 ir(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:cr,t=e.value;return ir(ir(ir({},cr),e),{},{initialValue:t})}var dr=function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0;return null!==(e=t.find(pr))&&void 0!==e?e:n}var vr=function(e,t){var n=Object(c.useRef)(!1);Object(c.useEffect)((function(){if(n.current)return e();n.current=!0}),t)};var mr=Object(c.forwardRef)((function(e,t){var n=e.disabled,r=void 0!==n&&n,u=e.dragDirection,l=void 0===u?"n":u,d=e.dragThreshold,f=void 0===d?10:d,p=e.id,b=e.isDragEnabled,h=void 0!==b&&b,v=e.isFocused,m=e.isPressEnterToChange,y=void 0!==m&&m,g=e.onBlur,O=void 0===g?s.noop:g,j=e.onChange,w=void 0===j?s.noop:j,k=e.onDrag,_=void 0===k?s.noop:k,S=e.onDragEnd,E=void 0===S?s.noop:S,x=e.onDragStart,C=void 0===x?s.noop:x,P=e.onFocus,D=void 0===P?s.noop:P,M=e.onKeyDown,T=void 0===M?s.noop:M,I=e.onValidate,R=void 0===I?s.noop:I,N=e.size,A=void 0===N?"default":N,L=e.setIsFocused,F=e.stateReducer,z=void 0===F?function(e){return e}:F,B=e.value,H=Object(a.a)(e,["disabled","dragDirection","dragThreshold","id","isDragEnabled","isFocused","isPressEnterToChange","onBlur","onChange","onDrag","onDragEnd","onDragStart","onFocus","onKeyDown","onValidate","size","setIsFocused","stateReducer","value"]),V=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ar,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:cr,n=Object(c.useReducer)(fr(e),lr(t)),r=Object(i.a)(n,2),o=r[0],a=r[1],s=function(e){return function(t,n){n&&n.persist&&n.persist(),a({type:e,payload:{value:t,event:n}})}},u=function(e){return function(t){t&&t.persist&&t.persist(),a({type:e,payload:{event:t}})}},l=function(e){return function(t){a({type:e,payload:t})}},d=s(sr.CHANGE),f=s(sr.INVALIDATE),p=s(sr.RESET),b=s(sr.COMMIT),h=s(sr.UPDATE),v=l(sr.DRAG_START),m=l(sr.DRAG),y=l(sr.DRAG_END),g=u(sr.PRESS_UP),O=u(sr.PRESS_DOWN),j=u(sr.PRESS_ENTER);return{change:d,commit:b,dispatch:a,drag:m,dragEnd:y,dragStart:v,inValidate:f,pressDown:O,pressEnter:j,pressUp:g,reset:p,state:o,update:h}}(z,{isDragEnabled:h,value:B,isPressEnterToChange:y}),K=V.state,W=V.change,U=V.commit,G=V.drag,$=V.dragEnd,q=V.dragStart,Y=V.invalidate,Z=V.pressDown,X=V.pressEnter,J=V.pressUp,Q=V.reset,ee=V.update,te=K._event,ne=K.value,re=K.isDragging,oe=K.isDirty,ie=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}(re,l);vr((function(){B!==ne&&(v?oe||w(ne,{event:te}):ee(B))}),[ne,oe,v,B]);var ae=function(e){var t=e.target.value;try{R(t,{event:e}),U(t,e)}catch(t){Y(t,{event:e})}},ce=function(e,t){void 0===t&&(t={});var n=t,r=n.domTarget,o=n.eventOptions,i=n.window,a=Pn(n,["domTarget","eventOptions","window"]),c=xn(xn({},Jn({domTarget:r,eventOptions:o,window:i})),{},{drag:tr(a)});return Gn({drag:e},[Yn],c)}((function(e){var t=e.distance,n=e.dragging,r=e.event;if(h&&t){if(r.stopPropagation(),!n)return E(e),void $(e);_(e),G(e),re||(C(e),q(e))}}),{threshold:f,enabled:h});return Object(c.createElement)(tn,Object(o.a)({},H,ce(),{className:"components-input-control__input",disabled:r,dragCursor:ie,isDragging:re,id:p,onBlur:function(e){O(e),L(!1),y&&oe&&(br(ne)?Q(B):ae({target:{value:ne}},e))},onChange:function(e){var t=e.target.value;W(t,e)},onFocus:function(e){D(e),L(!0)},onKeyDown:function(e){var t=e.keyCode;switch(T(e),t){case rr.UP:J(e);break;case rr.DOWN:Z(e);break;case rr.ENTER:X(e),y&&(e.preventDefault(),ae(e))}},ref:t,size:A,value:ne}))}));function yr(e,t){var n=e.__unstableStateReducer,r=void 0===n?function(e){return e}:n,u=e.className,d=e.disabled,f=void 0!==d&&d,p=e.hideLabelFromVision,b=void 0!==p&&p,h=e.id,v=e.isPressEnterToChange,m=void 0!==v&&v,y=e.label,g=e.labelPosition,O=void 0===g?"top":g,j=e.onChange,w=void 0===j?s.noop:j,k=e.onValidate,_=void 0===k?s.noop:k,S=e.onKeyDown,x=void 0===S?s.noop:S,C=e.prefix,P=e.size,D=void 0===P?"default":P,M=e.suffix,T=e.value,I=Object(a.a)(e,["__unstableStateReducer","className","disabled","hideLabelFromVision","id","isPressEnterToChange","label","labelPosition","onChange","onValidate","onKeyDown","prefix","size","suffix","value"]),R=Object(c.useState)(!1),N=Object(i.a)(R,2),A=N[0],L=N[1],F=function(e){var t=Object(E.useInstanceId)(yr),n="inspector-input-control-".concat(t);return e||n}(h),z=l()("components-input-control",u);return Object(c.createElement)(bn,{className:z,disabled:f,gap:3,hideLabelFromVision:b,id:F,isFocused:A,justify:"left",label:y,labelPosition:O,prefix:C,size:D,suffix:M},Object(c.createElement)(mr,Object(o.a)({},I,{className:"components-input-control__input",disabled:f,id:F,isFocused:A,isPressEnterToChange:m,onChange:w,onKeyDown:x,onValidate:_,ref:t,setIsFocused:L,size:D,stateReducer:r,value:T})))}var gr=Object(c.forwardRef)(yr);var Or={name:"1b9wwt5",styles:"&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none !important;margin:0 !important;}"},jr=function(e){return e.hideHTMLArrows?Or:""},wr=je(gr,{target:"ep48uk90",label:"Input"})(jr,";");function kr(e){var t=Number(e);return isNaN(t)?0:t}function _r(){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=kr(e),i=kr(r),a=Sr(r),c=Math.round(o/i)*i,u=Object(s.clamp)(c,t,n);return a?kr(u.toFixed(a)):u}var xr=function(e){var t=e.isShiftStepEnabled,n=void 0===t||t,r=e.shiftStep,o=void 0===r?10:r,a=e.step,s=void 0===a?1:a,u=Object(c.useState)(!1),l=Object(i.a)(u,2),d=l[0],f=l[1];return Object(c.useEffect)((function(){var e=function(e){f(e.shiftKey)};return window.addEventListener("keydown",e),window.addEventListener("keyup",e),function(){window.removeEventListener("keydown",e),window.removeEventListener("keyup",e)}}),[]),n&&d?o*s:s};var Cr=Object(c.forwardRef)((function(e,t){var n=e.__unstableStateReducer,r=void 0===n?function(e){return e}:n,s=e.className,u=e.dragDirection,d=void 0===u?"n":u,f=e.hideHTMLArrows,p=void 0!==f&&f,b=e.isDragEnabled,h=void 0===b||b,v=e.isShiftStepEnabled,m=void 0===v||v,y=e.label,g=e.max,O=void 0===g?1/0:g,j=e.min,w=void 0===j?-1/0:j,k=e.shiftStep,_=void 0===k?10:k,S=e.step,E=void 0===S?1:S,x=e.type,C=void 0===x?"number":x,P=e.value,D=Object(a.a)(e,["__unstableStateReducer","className","dragDirection","hideHTMLArrows","isDragEnabled","isShiftStepEnabled","label","max","min","shiftStep","step","type","value"]),M=Qe(),T=Er(0,w,O,E),I=xr({step:E,shiftStep:_,isShiftStepEnabled:m}),R="number"===C?"off":null,N=l()("components-number-control",s);return Object(c.createElement)(wr,Object(o.a)({autoComplete:R,inputMode:"numeric"},D,{className:N,dragDirection:d,hideHTMLArrows:p,isDragEnabled:h,label:y,max:O,min:w,ref:t,step:I,type:C,value:P,__unstableStateReducer:dr((function(e,t){var n=t.type,r=t.payload,o=null==r?void 0:r.event,a=e.value;if(n===ur.PRESS_UP||n===ur.PRESS_DOWN){var c=o.shiftKey&&m?parseFloat(_)*parseFloat(E):parseFloat(E),s=br(a)?T:a;(null==o?void 0:o.preventDefault)&&o.preventDefault(),n===ur.PRESS_UP&&(s=_r(s,c)),n===ur.PRESS_DOWN&&(s=function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:"polite";Object(Gr.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}))}}]),r}(c.Component)}),"withSpokenMessages");function Yr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Hr.a)(e);if(t){var o=Object(Hr.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Br.a)(this,n)}}var Zr=function(e){var t=e.useItems?e.useItems:function(t){var n=Object(c.useState)([]),r=Object(i.a)(n,2),o=r[0],a=r[1];return Object(c.useLayoutEffect)((function(){var n=e.options,r=e.isDebounced,o=Object(s.debounce)((function(){var r=Promise.resolve("function"==typeof n?n(t):n).then((function(n){if(!r.canceled){var o=n.map((function(t,n){return{key:"".concat(e.name,"-").concat(n),value:t,label:e.getOptionLabel(t),keywords:e.getOptionKeywords?e.getOptionKeywords(t):[],isDisabled:!!e.isOptionDisabled&&e.isOptionDisabled(t)}})),i=new RegExp("(?:\\b|\\s|^)"+Object(s.escapeRegExp)(t),"i");a(function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,r=[],o=0;o0?null:Object(c.createElement)(Ur.a,{focusOnMount:!1,onClose:b,position:"top right",className:"components-autocomplete__popover",anchorRef:(n=window.getSelection(),n.rangeCount?n.getRangeAt(0):null)},Object(c.createElement)("div",{id:a,role:"listbox",className:"components-autocomplete__results"},Object(s.map)(v,(function(e,t){return Object(c.createElement)(Wr.a,{key:e.key,id:"components-autocomplete-item-".concat(o,"-").concat(e.key),role:"option","aria-selected":t===d,disabled:e.isDisabled,className:l()("components-autocomplete__result",u,{"is-selected":t===d}),onClick:function(){return p(e)}},e.label)}))))}},Xr=function(e){Object(zr.a)(n,e);var t=Yr(n);function n(){var e;return Object(Ar.a)(this,n),(e=t.apply(this,arguments)).select=e.select.bind(Object(Lr.a)(e)),e.reset=e.reset.bind(Object(Lr.a)(e)),e.onChangeOptions=e.onChangeOptions.bind(Object(Lr.a)(e)),e.handleKeyDown=e.handleKeyDown.bind(Object(Lr.a)(e)),e.state=e.constructor.getInitialState(),e}return Object(Fr.a)(n,null,[{key:"getInitialState",value:function(){return{selectedIndex:0,filteredOptions:[],filterValue:"",autocompleter:null,AutocompleterUI:null}}}]),Object(Fr.a)(n,[{key:"insertCompletion",value:function(e){var t=this.state,n=t.autocompleter,r=t.filterValue,o=this.props,i=o.record,a=o.onChange,s=i.start,u=s-n.triggerPrefix.length-r.length,l=Object(Kr.create)({html:Object(c.renderToString)(e)});a(Object(Kr.insert)(i,l,u,s))}},{key:"select",value:function(e){var t=this.props.onReplace,n=this.state,r=n.autocompleter,o=n.filterValue,i=(r||{}).getOptionCompletion;if(!e.isDisabled){if(i){var a=i(e.value,o),c=void 0===a.action||void 0===a.value?{action:"insert-at-caret",value:a}:a,s=c.action,u=c.value;"replace"===s?t([u]):"insert-at-caret"===s&&this.insertCompletion(u)}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 i;switch(e.keyCode){case rr.UP:i=(0===r?o.length:r)-1,this.setState({selectedIndex:i});break;case rr.DOWN:i=(r+1)%o.length,this.setState({selectedIndex:i});break;case rr.ESCAPE:this.setState({autocompleter:null,AutocompleterUI:null});break;case rr.ENTER:this.select(o[r]);break;case rr.LEFT:case rr.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(Kr.isCollapsed)(n)){var i=Object(s.deburr)(Object(Kr.getTextContent)(Object(Kr.slice)(n,0))),a=Object(s.deburr)(Object(Kr.getTextContent)(Object(Kr.slice)(o,0)));if(i!==a){var c=Object(Kr.getTextContent)(Object(Kr.slice)(n,void 0,Object(Kr.getTextContent)(n).length)),u=Object(s.find)(r,(function(e){var t=e.triggerPrefix,n=e.allowContext,r=i.lastIndexOf(t);return-1!==r&&(!(n&&!n(i.slice(0,r),c))&&/^\S*$/.test(i.slice(r+t.length)))}));if(!u)return void this.reset();var l=Object(s.escapeRegExp)(u.triggerPrefix),d=i.match(new RegExp("".concat(l,"(\\S*)$"))),f=d&&d[1];this.setState({autocompleter:u,AutocompleterUI:u!==this.state.autocompleter?Zr(u):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,i=o.autocompleter,a=o.selectedIndex,s=o.filteredOptions,u=o.AutocompleterUI,l=o.filterValue,d=(s[a]||{}).key,f=void 0===d?"":d,p=(i||{}).className,b=!!i&&s.length>0,h=b?"components-autocomplete-listbox-".concat(n):null,v=b?"components-autocomplete-item-".concat(n,"-").concat(f):null;return Object(c.createElement)(c.Fragment,null,t({isExpanded:b,listBoxId:h,activeId:v,onKeyDown:this.handleKeyDown}),r&&u&&Object(c.createElement)(u,{className:p,filterValue:l,instanceId:n,listBoxId:h,selectedIndex:a,onChangeOptions:this.onChangeOptions,onSelect:this.select,onReset:this.onReset}))}}]),n}(c.Component),Jr=Object(E.compose)([qr,E.withInstanceId])(Xr);var Qr=je("div",{target:"e1agakv00",label:"Root"})({name:"1bt0omd",styles:"box-sizing:border-box;position:relative;"}),eo=function(e){var t=e.disableUnits;return le(nt({paddingRight:t?3:24})(),";")},to={name:"1y65o8",styles:"&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}"},no=function(e){return e.disableUnits?"":to},ro=je(Cr,{target:"e1agakv01",label:"ValueInput"})("&&&{input{appearance:none;-moz-appearance:textfield;display:block;width:100%;",no,";",eo,";}}"),oo=function(e){return le("appearance:none;background:transparent;border-radius:2px;border:none;box-sizing:border-box;color:",Fe("darkGray.500"),";display:block;font-size:8px;line-height:1;letter-spacing:-0.5px;outline:none;padding:2px 1px;position:absolute;text-align-last:center;text-transform:uppercase;width:20px;",nt({borderTopLeftRadius:0,borderBottomLeftRadius:0})()," ",nt({right:0})()," ",(t=e.size,le({default:{height:28,lineHeight:"24px",minHeight:28,top:1},small:{height:22,lineHeight:"18px",minHeight:22,top:1}}[t],"")),"");var t},io=je("div",{target:"e1agakv02",label:"UnitLabel"})("&&&{pointer-events:none;",oo,";}"),ao=je("select",{target:"e1agakv03",label:"UnitSelect"})("&&&{",oo,";cursor:pointer;border:1px solid transparent;&:hover{background-color:",Fe("lightGray.300"),";}&:focus{border-color:",Fe("ui.borderFocus"),";outline:2px solid transparent;outline-offset:0;}&:disabled{cursor:initial;&:hover{background-color:transparent;}}}"),co=[{value:"px",label:"px",default:0},{value:"%",label:"%",default:10},{value:"em",label:"em",default:0},{value:"rem",label:"rem",default:0},{value:"vw",label:"vw",default:10},{value:"vh",label:"vh",default:10}],so=co[0];function uo(e){return!Object(s.isEmpty)(e)&&e.length>1&&!1!==e}function lo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:co,n=String(e).trim(),r=parseFloat(n,10);r=isNaN(r)?"":r;var o=n.match(/[\d.\-\+]*\s*(.*)/)[1],i=void 0!==o?o:"";if(i=i.toLowerCase(),uo(t)){var a=t.find((function(e){return e.value===i}));i=null==a?void 0:a.value}else i=so.value;return[r,i]}function fo(e,t,n,r){var o,a,c=lo(e,t),s=Object(i.a)(c,2),u=s[0],l=s[1],d=u;((isNaN(u)||""===u)&&(d=n),o=l||r,uo(t)&&!o)&&(o=null===(a=t[0])||void 0===a?void 0:a.value);return[d,o]}function po(e){var t=e.className,n=e.isTabbable,r=void 0===n||n,i=e.options,u=void 0===i?co:i,d=e.onChange,f=void 0===d?s.noop:d,p=e.size,b=void 0===p?"default":p,h=e.value,v=void 0===h?"px":h,m=Object(a.a)(e,["className","isTabbable","options","onChange","size","value"]);if(!uo(u))return Object(c.createElement)(io,{className:"components-unit-control__unit-label",size:b},v);var y=l()("components-unit-control__select",t);return Object(c.createElement)(ao,Object(o.a)({className:y,onChange:function(e){var t=e.target.value,n=u.find((function(e){return e.value===t}));f(t,{event:e,data:n})},size:b,tabIndex:r?null:"-1",value:v},m),u.map((function(e){return Object(c.createElement)("option",{value:e.value,key:e.value},e.label)})))}function bo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ho(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:vo,n=ho(ho({},vo),t),r=n.initial,o=n.fallback,a=Object(c.useState)(e),s=Object(i.a)(a,2),u=s[0],l=s[1],d=pr(e);Object(c.useEffect)((function(){d&&u&&l(void 0)}),[d,u]);var f=hr([e,u,r],o),p=function(e){d||l(e)};return[f,p]};var yo=Object(c.forwardRef)((function(e,t){var n=e.__unstableStateReducer,r=void 0===n?function(e){return e}:n,u=e.autoComplete,d=void 0===u?"off":u,f=e.className,p=e.disabled,b=void 0!==p&&p,h=e.disableUnits,v=void 0!==h&&h,m=e.isPressEnterToChange,y=void 0!==m&&m,g=e.isResetValueOnUnitChange,O=void 0!==g&&g,j=e.isUnitSelectTabbable,w=void 0!==j&&j,k=e.label,_=e.onChange,S=void 0===_?s.noop:_,E=e.onUnitChange,x=void 0===E?s.noop:E,C=e.size,P=void 0===C?"default":C,D=e.style,M=e.unit,T=e.units,I=void 0===T?co:T,R=e.value,N=Object(a.a)(e,["__unstableStateReducer","autoComplete","className","disabled","disableUnits","isPressEnterToChange","isResetValueOnUnitChange","isUnitSelectTabbable","label","onChange","onUnitChange","size","style","unit","units","value"]),A=function(e,t,n){return lo(t?"".concat(e).concat(t):e,n)}(R,M,I),L=Object(i.a)(A,2),F=L[0],z=L[1],B=mo(M,{initial:z}),H=Object(i.a)(B,2),V=H[0],K=H[1],W=Object(c.useRef)(),U=l()("components-unit-control",f),G=v?null:Object(c.createElement)(po,{disabled:b,isTabbable:w,options:I,onChange:function(e,t){var n=t.data,r="".concat(F).concat(e);O&&void 0!==(null==n?void 0:n.default)&&(r="".concat(n.default).concat(e)),S(r,t),x(e,t),K(e)},size:P,value:V});return Object(c.createElement)(Qr,{className:"components-unit-control-wrapper",style:D},Object(c.createElement)(ro,Object(o.a)({"aria-label":k,type:y?"text":"number"},Object(s.omit)(N,["children"]),{autoComplete:d,className:U,disabled:b,disableUnits:v,isPressEnterToChange:y,label:k,onChange:function(e,t){if(""!==e){var n=fo(e,I,F,V),r=Object(i.a)(n,2),o=r[0],a=r[1],c=W.current;c&&(x(c,t),K(c),W.current=null);var s=c||a,u="".concat(o).concat(s);S(u,t)}else S("",t)},ref:t,size:P,suffix:G,value:F,__unstableStateReducer:dr((function(e,t){var n=t.type,r=t.payload,o=null==r?void 0:r.event;if(n===ur.COMMIT){var a,c=fo(null==o||null===(a=o.target)||void 0===a?void 0:a.value,I,F,V),s=Object(i.a)(c,2),u=s[0],l=s[1];e.value=u,V!==l&&(W.current=l)}return e}),r)})))}));var go=je("div",{target:"e7pk0lh0",label:"Root"})({name:"vho1ao",styles:"box-sizing:border-box;max-width:235px;padding-bottom:12px;width:100%;"}),Oo=je(mt,{target:"e7pk0lh1",label:"Header"})("color:",Fe("ui.label"),";padding-bottom:8px;"),jo=je(mt,{target:"e7pk0lh2",label:"HeaderControlWrapper"})({name:"19de7qh",styles:"min-height:30px;"}),wo=je("div",{target:"e7pk0lh3",label:"UnitControlWrapper"})({name:"zypm0w",styles:"box-sizing:border-box;max-width:80px;"}),ko=je(mt,{target:"e7pk0lh4",label:"LayoutContainer"})({name:"39f89t",styles:"justify-content:center;padding-top:8px;"}),_o=je(mt,{target:"e7pk0lh5",label:"Layout"})({name:"ojqyia",styles:"position:relative;height:100%;width:100%;"}),So={name:"icip60",styles:"border-radius:2px;"},Eo={name:"1k07npk",styles:"border-radius:0;"},xo=function(e){var t=e.isFirst,n=e.isLast,r=e.isOnly;return t?nt({borderTopRightRadius:0,borderBottomRightRadius:0})():n?nt({borderTopLeftRadius:0,borderBottomLeftRadius:0})():r?So:Eo},Co=function(e){return nt({marginLeft:e.isFirst?0:-1})()},Po=je(yo,{target:"e7pk0lh6",label:"UnitControl"})("max-width:60px;",xo,";",Co,";");function Do(e){var t=e.isFirst,n=e.isLast,r=e.isOnly,i=e.onHoverOn,u=void 0===i?s.noop:i,l=e.onHoverOff,d=void 0===l?s.noop:l,f=e.label,p=e.value,b=Object(a.a)(e,["isFirst","isLast","isOnly","onHoverOn","onHoverOff","label","value"]),h=function(e,t){void 0===t&&(t={});var n=t,r=n.domTarget,o=n.eventOptions,i=n.window,a=Pn(n,["domTarget","eventOptions","window"]),c=xn(xn({},Jn({domTarget:r,eventOptions:o,window:i})),{},{hover:xn({enabled:!0},a)});return Gn({hover:e},[nr],c)}((function(e){var t=e.event,n=Object(a.a)(e,["event"]);n.hovering?u(t,n):d(t,n)}));return Object(c.createElement)(wo,Object(o.a)({"aria-label":f},h()),Object(c.createElement)(Mo,{text:f},Object(c.createElement)(Po,Object(o.a)({className:"component-box-control__unit-control",hideHTMLArrows:!0,isFirst:t,isLast:n,isOnly:r,isPressEnterToChange:!0,isResetValueOnUnitChange:!1,value:p},b))))}function Mo(e){var t=e.children,n=e.text;return n?Object(c.createElement)(C.a,{text:n,position:"top"},Object(c.createElement)("div",null,t)):t}var To={all:Object(S.__)("All"),top:Object(S.__)("Top"),bottom:Object(S.__)("Bottom"),left:Object(S.__)("Left"),right:Object(S.__)("Right"),mixed:Object(S.__)("Mixed")},Io={top:null,right:null,bottom:null,left:null},Ro={top:!1,right:!1,bottom:!1,left:!1};function No(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 Ao(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.values(e).map(lo),n=t.map((function(e){return e[0]})),r=t.map((function(e){return e[1]})),o=n.every((function(e){return e===n[0]}))?n[0]:"",i=No(r),a=Object(s.isNumber)(o)?"".concat(o).concat(i):null;return a}function Lo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Ao(e),n=isNaN(parseFloat(t));return n}function Fo(e){return void 0!==e&&!Object(s.isEmpty)(Object.values(e).filter(Boolean))}function zo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bo(e){var t=e.onChange,n=void 0===t?s.noop:t,r=e.onFocus,i=void 0===r?s.noop:r,u=e.onHoverOn,l=void 0===u?s.noop:u,d=e.onHoverOff,f=void 0===d?s.noop:d,p=e.values,b=Object(a.a)(e,["onChange","onFocus","onHoverOn","onHoverOff","values"]),h=Ao(p),v=Fo(p)&&Lo(p),m=v?To.mixed:null;return Object(c.createElement)(Do,Object(o.a)({},b,{disableUnits:v,isOnly:!0,value:h,onChange:function(e){var t=function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};l(mi(mi({},Ro),e))},onHoverOff:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l(mi(mi({},Ro),e))},isLinked:P,units:b,values:g});return Object(c.createElement)(go,{id:N,role:"region","aria-labelledby":A},Object(c.createElement)(Oo,{className:"component-box-control__header"},Object(c.createElement)(gt,null,Object(c.createElement)(Kt,{id:A,className:"component-box-control__label"},f)),Object(c.createElement)(gt,null,Object(c.createElement)(Wr.a,{className:"component-box-control__reset-button",isSecondary:!0,isSmall:!0,onClick:function(){var e=Io;a(e),y(e),_(!1)},disabled:!k},Object(S.__)("Reset")))),Object(c.createElement)(jo,{className:"component-box-control__header-control-wrapper"},Object(c.createElement)(gt,null,Object(c.createElement)(Jo,{side:I})),P&&Object(c.createElement)(vt,null,Object(c.createElement)(Bo,L)),Object(c.createElement)(gt,null,Object(c.createElement)(ni,{onClick:function(){D(!P),R(P?"top":"all")},isLinked:P}))),!P&&Object(c.createElement)(Vo,L))}gi.__Visualizer=function(e){var t=e.children,n=e.showValues,r=void 0===n?Ro:n,i=e.values,s=void 0===i?Io:i,u=Object(a.a)(e,["children","showValues","values"]),l=!t;return Object(c.createElement)(oi,Object(o.a)({},u,{isPositionAbsolute:l,"aria-hidden":"true"}),Object(c.createElement)(li,{showValues:r,values:s}),t)};var Oi=Object(c.forwardRef)((function(e,t){var n=e.className,r=Object(a.a)(e,["className"]),i=l()("components-button-group",n);return Object(c.createElement)("div",Object(o.a)({ref:t,role:"group",className:i},r))})),ji=Object(c.createContext)({}),wi=function(){return Object(c.useContext)(ji)};function ki(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return isNaN(e)?"".concat(8,"px"):"".concat(8*e,"px")}var _i={borderColor:Fe("lightGray.500"),borderRadius:"3px",backgroundShady:Fe("lightGray.200")},Si=_i.borderColor,Ei=_i.borderRadius,xi=_i.backgroundShady,Ci=je("div",{target:"e1q7k77g0",label:"CardUI"})("background:",Fe("white"),";box-sizing:border-box;border-radius:",Ei,";border:1px solid ",Si,";",Ni,";&.is-elevated{box-shadow:0px 1px 3px 0px rgba( 0,0,0,0.2 ),0px 1px 1px 0px rgba( 0,0,0,0.14 ),0px 2px 1px -1px rgba( 0,0,0,0.12 );}"),Pi=je(yt,{target:"e1q7k77g1",label:"HeaderUI"})("border-bottom:1px solid ",Si,";border-top-left-radius:",Ei,";border-top-right-radius:",Ei,";box-sizing:border-box;&:last-child{border-bottom:none;}",Ri,";",Ni,";",Ai,";"),Di=je("div",{target:"e1q7k77g2",label:"MediaUI"})("box-sizing:border-box;overflow:hidden;& > img,& > iframe{display:block;height:auto;max-width:100%;width:100%;}&:first-of-type{border-top-left-radius:",Ei,";border-top-right-radius:",Ei,";}&:last-of-type{border-bottom-left-radius:",Ei,";border-bottom-right-radius:",Ei,";}"),Mi=je("div",{target:"e1q7k77g3",label:"BodyUI"})("box-sizing:border-box;",(function(){return"\n\t\t&.is-size {\n\t\t\t&-large {\n\t\t\t\tpadding: ".concat(ki(3)," ").concat(ki(4),";\n\t\t\t}\n\t\t\t&-medium {\n\t\t\t\tpadding: ").concat(ki(2)," ").concat(ki(3),";\n\t\t\t}\n\t\t\t&-small {\n\t\t\t\tpadding: ").concat(ki(2),";\n\t\t\t}\n\t\t\t&-extraSmall {\n\t\t\t\tpadding: ").concat(ki(1),";\n\t\t\t}\n\t\t}\n\t")}),";",Ai,";"),Ti=je(yt,{target:"e1q7k77g4",label:"FooterUI"})("border-top:1px solid ",Si,";border-bottom-left-radius:",Ei,";border-bottom-right-radius:",Ei,";box-sizing:border-box;&:first-of-type{border-top:none;}",Ri,";",Ni,";",Ai,";"),Ii=je(r.HorizontalRule,{target:"e1q7k77g5",label:"DividerUI"})("all:unset;border-top:1px solid ",Si,";box-sizing:border-box;display:block;height:0;width:100%;");function Ri(){return"\n\t\t&.is-size {\n\t\t\t&-large {\n\t\t\t\tpadding: ".concat(ki(3)," ").concat(ki(4),";\n\t\t\t}\n\t\t\t&-medium {\n\t\t\t\tpadding: ").concat(ki(2)," ").concat(ki(3),";\n\t\t\t}\n\t\t\t&-small {\n\t\t\t\tpadding: ").concat(ki(2),";\n\t\t\t}\n\t\t\t&-extraSmall {\n\t\t\t\tpadding: ").concat(ki(1),";\n\t\t\t}\n\t\t}\n\t")}function Ni(){return"\n\t\t&.is-borderless {\n\t\t\tborder: none;\n\t\t}\n\t"}function Ai(){return"\n\t\t&.is-shady {\n\t\t\tbackground: ".concat(xi,";\n\t\t}\n\t")}function Li(e){var t=e.className,n=e.isBorderless,r=e.isElevated,i=e.size,s=Object(a.a)(e,["className","isBorderless","isElevated","size"]),u=ji.Provider,d={isBorderless:n,isElevated:r,size:i},f=l()("components-card",n&&"is-borderless",r&&"is-elevated",i&&"is-size-".concat(i),t);return Object(c.createElement)(u,{value:d},Object(c.createElement)(Ci,Object(o.a)({},s,{className:f})))}Li.defaultProps={isBorderless:!1,isElevated:!1,size:"medium"};var Fi=Li;function zi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bi(e){for(var t=1;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 i=n.toRgb(),a=n.toHex();0===r.s&&(r.h=t||0,o.h=t||0);var c="000000"===a&&0===i.a;return{color:n,hex:c?"transparent":"#".concat(a),hsl:r,hsv:o,oldHue:e.h||t||r.h,rgb:i,source:e.source}}function ia(e,t){e.preventDefault();var n=t.getBoundingClientRect(),r=n.left,o=n.top,i=n.width,a=n.height,c="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,s="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,u=c-(r+window.pageXOffset),l=s-(o+window.pageYOffset);return u<0?u=0:u>i?u=i:l<0?l=0:l>a&&(l=a),{top:l,left:u,width:i,height:a}}function aa(e){var t="#"===String(e).charAt(0)?1:0;return e.length!==4+t&&e.length<7+t&&ke()(e).isValid()}function ca(e){var t=e.target,n=e.callback,r=e.shortcut,o=e.bindGlobal,i=e.eventName;return Object(E.useKeyboardShortcut)(r,n,{bindGlobal:o,target:t,eventName:i}),null}var sa=function(e){var t=e.children,n=e.shortcuts,r=e.bindGlobal,o=e.eventName,i=Object(c.useRef)(),a=Object(s.map)(n,(function(e,t){return Object(c.createElement)(ca,{key:t,shortcut:t,callback:e,bindGlobal:r,eventName:o,target:i})}));return c.Children.count(t)?Object(c.createElement)("div",{ref:i},a,t):a};function ua(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Hr.a)(e);if(t){var o=Object(Hr.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Br.a)(this,n)}}var la=function(e){Object(zr.a)(n,e);var t=ua(n);function n(){var e;return Object(Ar.a)(this,n),(e=t.apply(this,arguments)).container=Object(c.createRef)(),e.increase=e.increase.bind(Object(Lr.a)(e)),e.decrease=e.decrease.bind(Object(Lr.a)(e)),e.handleChange=e.handleChange.bind(Object(Lr.a)(e)),e.handleMouseDown=e.handleMouseDown.bind(Object(Lr.a)(e)),e.handleMouseUp=e.handleMouseUp.bind(Object(Lr.a)(e)),e}return Object(Fr.a)(n,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"increase",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01,t=this.props,n=t.hsl,r=t.onChange,o=void 0===r?s.noop:r;e=parseInt(100*e,10);var i={h:n.h,s:n.s,l:n.l,a:(parseInt(100*n.a,10)+e)/100,source:"rgb"};o(i)}},{key:"decrease",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01,t=this.props,n=t.hsl,r=t.onChange,o=void 0===r?s.noop:r,i=parseInt(100*n.a,10)-parseInt(100*e,10),a={h:n.h,s:n.s,l:n.l,a:n.a<=e?0:i/100,source:"rgb"};o(a)}},{key:"handleChange",value:function(e){var t=this.props.onChange,n=void 0===t?s.noop:t,r=function(e,t,n){var r=ia(e,n),o=r.left,i=r.width,a=o<0?0:Math.round(100*o/i)/100;return t.hsl.a!==a?{h:t.hsl.h,s:t.hsl.s,l:t.hsl.l,a:a,source:"rgb"}:null}(e,this.props,this.container.current);r&&n(r,e)}},{key:"handleMouseDown",value:function(e){this.handleChange(e),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)}},{key:"handleMouseUp",value:function(){this.unbindEventListeners()}},{key:"preventKeyEvents",value:function(e){e.keyCode!==rr.TAB&&e.preventDefault()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.rgb,n="".concat(t.r,",").concat(t.g,",").concat(t.b),r={background:"linear-gradient(to right, rgba(".concat(n,", 0) 0%, rgba(").concat(n,", 1) 100%)")},o={left:"".concat(100*t.a,"%")},i={up:function(){return e.increase()},right:function(){return e.increase()},"shift+up":function(){return e.increase(.1)},"shift+right":function(){return e.increase(.1)},pageup:function(){return e.increase(.1)},end:function(){return e.increase(1)},down:function(){return e.decrease()},left:function(){return e.decrease()},"shift+down":function(){return e.decrease(.1)},"shift+left":function(){return e.decrease(.1)},pagedown:function(){return e.decrease(.1)},home:function(){return e.decrease(1)}};return Object(c.createElement)(sa,{shortcuts:i},Object(c.createElement)("div",{className:"components-color-picker__alpha"},Object(c.createElement)("div",{className:"components-color-picker__alpha-gradient",style:r}),Object(c.createElement)("div",{className:"components-color-picker__alpha-bar",ref:this.container,onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},Object(c.createElement)("div",{tabIndex:"0",role:"slider","aria-valuemax":"1","aria-valuemin":"0","aria-valuenow":t.a,"aria-orientation":"horizontal","aria-label":Object(S.__)("Alpha value, from 0 (transparent) to 1 (fully opaque)."),className:"components-color-picker__alpha-pointer",style:o,onKeyDown:this.preventKeyEvents}))))}}]),n}(c.Component),da=Object(E.pure)(la);function fa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Hr.a)(e);if(t){var o=Object(Hr.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Br.a)(this,n)}}var pa=function(e){Object(zr.a)(n,e);var t=fa(n);function n(){var e;return Object(Ar.a)(this,n),(e=t.apply(this,arguments)).container=Object(c.createRef)(),e.increase=e.increase.bind(Object(Lr.a)(e)),e.decrease=e.decrease.bind(Object(Lr.a)(e)),e.handleChange=e.handleChange.bind(Object(Lr.a)(e)),e.handleMouseDown=e.handleMouseDown.bind(Object(Lr.a)(e)),e.handleMouseUp=e.handleMouseUp.bind(Object(Lr.a)(e)),e}return Object(Fr.a)(n,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"increase",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=this.props,n=t.hsl,r=t.onChange,o=void 0===r?s.noop:r,i={h:n.h+e>=359?359:n.h+e,s:n.s,l:n.l,a:n.a,source:"rgb"};o(i)}},{key:"decrease",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=this.props,n=t.hsl,r=t.onChange,o=void 0===r?s.noop:r,i={h:n.h<=e?0:n.h-e,s:n.s,l:n.l,a:n.a,source:"rgb"};o(i)}},{key:"handleChange",value:function(e){var t=this.props.onChange,n=void 0===t?s.noop:t,r=function(e,t,n){var r=ia(e,n),o=r.left,i=r.width,a=o>=i?359:360*(100*o/i)/100;return t.hsl.h!==a?{h:a,s:t.hsl.s,l:t.hsl.l,a:t.hsl.a,source:"rgb"}:null}(e,this.props,this.container.current);r&&n(r,e)}},{key:"handleMouseDown",value:function(e){this.handleChange(e),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)}},{key:"handleMouseUp",value:function(){this.unbindEventListeners()}},{key:"preventKeyEvents",value:function(e){e.keyCode!==rr.TAB&&e.preventDefault()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props,n=t.hsl,r=void 0===n?{}:n,o=t.instanceId,i={left:"".concat(100*r.h/360,"%")},a={up:function(){return e.increase()},right:function(){return e.increase()},"shift+up":function(){return e.increase(10)},"shift+right":function(){return e.increase(10)},pageup:function(){return e.increase(10)},end:function(){return e.increase(359)},down:function(){return e.decrease()},left:function(){return e.decrease()},"shift+down":function(){return e.decrease(10)},"shift+left":function(){return e.decrease(10)},pagedown:function(){return e.decrease(10)},home:function(){return e.decrease(359)}};return Object(c.createElement)(sa,{shortcuts:a},Object(c.createElement)("div",{className:"components-color-picker__hue"},Object(c.createElement)("div",{className:"components-color-picker__hue-gradient"}),Object(c.createElement)("div",{className:"components-color-picker__hue-bar",ref:this.container,onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},Object(c.createElement)("div",{tabIndex:"0",role:"slider","aria-valuemax":"1","aria-valuemin":"359","aria-valuenow":r.h,"aria-orientation":"horizontal","aria-label":Object(S.__)("Hue value in degrees, from 0 to 359."),"aria-describedby":"components-color-picker__hue-description-".concat(o),className:"components-color-picker__hue-pointer",style:i,onKeyDown:this.preventKeyEvents}),Object(c.createElement)(M,{as:"p",id:"components-color-picker__hue-description-".concat(o)},Object(S.__)("Move the arrow left or right to change hue.")))))}}]),n}(c.Component),ba=Object(E.compose)(E.pure,E.withInstanceId)(pa),ha=n(312);function va(e){var t=e.label,n=e.hideLabelFromVision,r=e.value,i=e.help,s=e.className,u=e.onChange,l=e.type,d=void 0===l?"text":l,f=Object(a.a)(e,["label","hideLabelFromVision","value","help","className","onChange","type"]),p=Object(E.useInstanceId)(va),b="inspector-text-control-".concat(p);return Object(c.createElement)(dt,{label:t,hideLabelFromVision:n,id:b,help:i,className:s},Object(c.createElement)("input",Object(o.a)({className:"components-text-control__input",type:d,id:b,value:r,onChange:function(e){return u(e.target.value)},"aria-describedby":i?b+"__help":void 0},f)))}function ma(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Hr.a)(e);if(t){var o=Object(Hr.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Br.a)(this,n)}}var ya=function(e){Object(zr.a)(n,e);var t=ma(n);function n(){var e;return Object(Ar.a)(this,n),(e=t.apply(this,arguments)).handleBlur=e.handleBlur.bind(Object(Lr.a)(e)),e.handleChange=e.handleChange.bind(Object(Lr.a)(e)),e.handleKeyDown=e.handleKeyDown.bind(Object(Lr.a)(e)),e}return Object(Fr.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&&aa(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===rr.ENTER||t===rr.UP||t===rr.DOWN){var n=this.props,r=n.value,o=n.valueKey;(0,n.onChange)({source:n.source,state:"commit",value:r,valueKey:o})}}},{key:"render",value:function(){var e=this,t=this.props,n=t.label,r=t.value,i=Object(a.a)(t,["label","value"]);return Object(c.createElement)(va,Object(o.a)({className:"components-color-picker__inputs-field",label:n,value:r,onChange:function(t){return e.handleChange(t)},onBlur:this.handleBlur,onKeyDown:this.handleKeyDown},Object(s.omit)(i,["onChange","valueKey","source"])))}}]),n}(c.Component),ga=Object(E.pure)(Wr.a),Oa=function(e){Object(zr.a)(n,e);var t=ma(n);function n(e){var r,o=e.hsl;Object(Ar.a)(this,n),r=t.apply(this,arguments);var i=1===o.a?"hex":"rgb";return r.state={view:i},r.toggleViews=r.toggleViews.bind(Object(Lr.a)(r)),r.resetDraftValues=r.resetDraftValues.bind(Object(Lr.a)(r)),r.handleChange=r.handleChange.bind(Object(Lr.a)(r)),r.normalizeValue=r.normalizeValue.bind(Object(Lr.a)(r)),r}return Object(Fr.a)(n,[{key:"toggleViews",value:function(){"hex"===this.state.view?(this.setState({view:"rgb"},this.resetDraftValues),Object(Gr.speak)(Object(S.__)("RGB mode active"))):"rgb"===this.state.view?(this.setState({view:"hsl"},this.resetDraftValues),Object(Gr.speak)(Object(S.__)("Hue/saturation/lightness mode active"))):"hsl"===this.state.view&&(1===this.props.hsl.a?(this.setState({view:"hex"},this.resetDraftValues),Object(Gr.speak)(Object(S.__)("Hex color mode active"))):(this.setState({view:"rgb"},this.resetDraftValues),Object(Gr.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)(ya,{source:this.state.view,label:Object(S.__)("Color value in hexadecimal"),valueKey:"hex",value:this.props.hex,onChange:this.handleChange}));if("rgb"===this.state.view){var n=t?Object(S.__)("Color value in RGB"):Object(S.__)("Color value in RGBA");return Object(c.createElement)("fieldset",null,Object(c.createElement)(M,{as:"legend"},n),Object(c.createElement)("div",{className:"components-color-picker__inputs-fields"},Object(c.createElement)(ya,{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)(ya,{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)(ya,{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)(ya,{source:this.state.view,label:"a",valueKey:"a",value:this.props.rgb.a,onChange:this.handleChange,type:"number",min:"0",max:"1",step:"0.01"})))}if("hsl"===this.state.view){var r=t?Object(S.__)("Color value in HSL"):Object(S.__)("Color value in HSLA");return Object(c.createElement)("fieldset",null,Object(c.createElement)(M,{as:"legend"},r),Object(c.createElement)("div",{className:"components-color-picker__inputs-fields"},Object(c.createElement)(ya,{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)(ya,{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)(ya,{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)(ya,{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)(ga,{className:"components-color-picker__inputs-toggle",icon:ha.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 ja(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Hr.a)(e);if(t){var o=Object(Hr.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Br.a)(this,n)}}var wa=function(e){Object(zr.a)(n,e);var t=ja(n);function n(e){var r;return Object(Ar.a)(this,n),(r=t.call(this,e)).throttle=Object(s.throttle)((function(e,t,n){e(t,n)}),50),r.container=Object(c.createRef)(),r.saturate=r.saturate.bind(Object(Lr.a)(r)),r.brighten=r.brighten.bind(Object(Lr.a)(r)),r.handleChange=r.handleChange.bind(Object(Lr.a)(r)),r.handleMouseDown=r.handleMouseDown.bind(Object(Lr.a)(r)),r.handleMouseUp=r.handleMouseUp.bind(Object(Lr.a)(r)),r}return Object(Fr.a)(n,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"saturate",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01,t=this.props,n=t.hsv,r=t.onChange,o=void 0===r?s.noop:r,i=Object(s.clamp)(n.s+Math.round(100*e),0,100),a={h:n.h,s:i,v:n.v,a:n.a,source:"rgb"};o(a)}},{key:"brighten",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01,t=this.props,n=t.hsv,r=t.onChange,o=void 0===r?s.noop:r,i=Object(s.clamp)(n.v+Math.round(100*e),0,100),a={h:n.h,s:n.s,v:i,a:n.a,source:"rgb"};o(a)}},{key:"handleChange",value:function(e){var t=this.props.onChange,n=void 0===t?s.noop:t,r=function(e,t,n){var r=ia(e,n),o=r.top,i=r.left,a=r.width,c=r.height,s=i<0?0:100*i/a,u=o>=c?0:-100*o/c+100;return u<1&&(u=0),{h:t.hsl.h,s:s,v:u,a:t.hsl.a,source:"rgb"}}(e,this.props,this.container.current);this.throttle(n,r,e)}},{key:"handleMouseDown",value:function(e){this.handleChange(e),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)}},{key:"handleMouseUp",value:function(){this.unbindEventListeners()}},{key:"preventKeyEvents",value:function(e){e.keyCode!==rr.TAB&&e.preventDefault()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props,n=t.hsv,r=t.hsl,o=t.instanceId,i={top:"".concat(100-n.v,"%"),left:"".concat(n.s,"%")},a={up:function(){return e.brighten()},"shift+up":function(){return e.brighten(.1)},pageup:function(){return e.brighten(1)},down:function(){return e.brighten(-.01)},"shift+down":function(){return e.brighten(-.1)},pagedown:function(){return e.brighten(-1)},right:function(){return e.saturate()},"shift+right":function(){return e.saturate(.1)},end:function(){return e.saturate(1)},left:function(){return e.saturate(-.01)},"shift+left":function(){return e.saturate(-.1)},home:function(){return e.saturate(-1)}};return Object(c.createElement)(sa,{shortcuts:a},Object(c.createElement)("div",{style:{background:"hsl(".concat(r.h,",100%, 50%)")},className:"components-color-picker__saturation-color",ref:this.container,onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange,role:"application"},Object(c.createElement)("div",{className:"components-color-picker__saturation-white"}),Object(c.createElement)("div",{className:"components-color-picker__saturation-black"}),Object(c.createElement)(Wr.a,{"aria-label":Object(S.__)("Choose a shade"),"aria-describedby":"color-picker-saturation-".concat(o),className:"components-color-picker__saturation-pointer",style:i,onKeyDown:this.preventKeyEvents}),Object(c.createElement)(M,{id:"color-picker-saturation-".concat(o)},Object(S.__)("Use your arrow keys to change the base color. Move up to lighten the color, down to darken, left to decrease saturation, and right to increase saturation."))))}}]),n}(c.Component),ka=Object(E.compose)(E.pure,E.withInstanceId)(wa);function _a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Hr.a)(e);if(t){var o=Object(Hr.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Br.a)(this,n)}}function Sa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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 Ea(e){for(var t=1;t-1&&this.props.scrollIntoView&&(this.scrollingIntoView=!0,La()(this.list.children[this.props.selectedIndex],this.list,{onlyScrollIfNeeded:!0}),this.props.setTimeout((function(){e.scrollingIntoView=!1}),100))}},{key:"bindList",value:function(e){this.list=e}},{key:"handleHover",value:function(e){var t=this;return function(){t.scrollingIntoView||t.props.onHover(e)}}},{key:"handleClick",value:function(e){var t=this;return function(){t.props.onSelect(e)}}},{key:"handleMouseDown",value:function(e){e.preventDefault()}},{key:"computeSuggestionMatch",value:function(e){var t=this.props.displayTransform(this.props.match||"").toLocaleLowerCase();if(0===t.length)return null;var n=(e=this.props.displayTransform(e)).toLocaleLowerCase().indexOf(t);return{suggestionBeforeMatch:e.substring(0,n),suggestionMatch:e.substring(n,n+t.length),suggestionAfterMatch:e.substring(n+t.length)}}},{key:"render",value:function(){var e=this;return Object(c.createElement)("ul",{ref:this.bindList,className:"components-form-token-field__suggestions-list",id:"components-form-token-suggestions-".concat(this.props.instanceId),role:"listbox"},Object(s.map)(this.props.suggestions,(function(t,n){var r=e.computeSuggestionMatch(t),o=l()("components-form-token-field__suggestion",{"is-selected":n===e.props.selectedIndex});return Object(c.createElement)("li",{id:"components-form-token-suggestions-".concat(e.props.instanceId,"-").concat(n),role:"option",className:o,key:e.props.displayTransform(t),onMouseDown:e.handleMouseDown,onClick:e.handleClick(t),onMouseEnter:e.handleHover(t),"aria-selected":n===e.props.selectedIndex},r?Object(c.createElement)("span",{"aria-label":e.props.displayTransform(t)},r.suggestionBeforeMatch,Object(c.createElement)("strong",{className:"components-form-token-field__suggestion-match"},r.suggestionMatch),r.suggestionAfterMatch):e.props.displayTransform(t))})))}}]),n}(c.Component);za.defaultProps={match:"",onHover:function(){},onSelect:function(){},suggestions:Object.freeze([])};var Ba=Object(E.withSafeTimeout)(za);var Ha=function e(t){var n,r=t.value,o=t.label,a=t.options,s=t.onChange,u=t.onFilterValueChange,l=t.hideLabelFromVision,d=t.help,f=t.messages,p=void 0===f?{selected:Object(S.__)("Item selected.")}:f,b=Object(E.useInstanceId)(e),h=Object(c.useState)(null),v=Object(i.a)(h,2),m=v[0],y=v[1],g=Object(c.useState)(!1),O=Object(i.a)(g,2),j=O[0],w=O[1],k=Object(c.useState)(""),_=Object(i.a)(k,2),x=_[0],C=_[1],P=Object(c.useRef)(),D=a.find((function(e){return e.value===r})),M=null!==(n=null==D?void 0:D.label)&&void 0!==n?n:"",T=Object(c.useMemo)((function(){var e=[],t=[],n=x.toLocaleLowerCase();return a.forEach((function(r){var o=r.label.toLocaleLowerCase().indexOf(n);0===o?e.push(r):o>0&&t.push(r)})),e.concat(t)}),[x,a,r]),I=function(e){s(e.value),Object(Gr.speak)(p.selected,"assertive"),y(e),C(""),w(!1)},R=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=T.indexOf(m),n=t+e;n<0?n=T.length-1:n>=T.length&&(n=0),y(T[n]),w(!0)};return Object(c.useEffect)((function(){var e=T.length>0;if(j){var t=e?Object(S.sprintf)(Object(S._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",T.length),T.length):Object(S.__)("No results.");Object(Gr.speak)(t,"assertive")}}),[T,j]),Object(c.createElement)(dt,{className:"components-combobox-control",tabIndex:"-1",label:o,id:"components-form-token-input-".concat(b),hideLabelFromVision:l,help:d},Object(c.createElement)("div",{className:"components-combobox-control__suggestions-container",tabIndex:"-1",onFocus:function(){P.current.input.focus(),w(!0),u("")},onKeyDown:function(e){var t=!1;switch(e.keyCode){case rr.ENTER:m&&(I(m),t=!0);break;case rr.UP:R(-1),t=!0;break;case rr.DOWN:R(1),t=!0;break;case rr.ESCAPE:w(!1),y(null),t=!0,e.stopPropagation()}t&&e.preventDefault()}},Object(c.createElement)(Na,{className:"components-combobox-control__input",instanceId:b,ref:P,value:j?x:M,onBlur:function(){w(!1)},isExpanded:j,selectedSuggestionIndex:T.indexOf(m),onChange:function(e){var t=e.value;C(t),u(t),w(!0)}}),j&&Object(c.createElement)(Ba,{instanceId:b,match:{label:x},displayTransform:function(e){return e.label},suggestions:T,selectedIndex:T.indexOf(m),onHover:y,onSelect:I,scrollIntoView:!0})))},Va=n(42);var Ka=n(28),Wa=n.n(Ka);n(198);function Ua(e){return null!=e&&"object"==typeof e&&1===e.nodeType}function Ga(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function $a(e,t){if(e.clientHeightt||i>e&&a=t&&c>=n?i-e-r:a>t&&cn?a-t+o:0}var Ya=0;function Za(e,t){e&&function(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,c=t.skipOverflowHiddenElements,s="function"==typeof a?a:function(e){return e!==a};if(!Ua(e))throw new TypeError("Invalid target");for(var u=document.scrollingElement||document.documentElement,l=[],d=e;Ua(d)&&s(d);){if((d=d.parentNode)===u){l.push(d);break}d===document.body&&$a(d)&&!$a(document.documentElement)||$a(d,c)&&l.push(d)}for(var f=n.visualViewport?n.visualViewport.width:innerWidth,p=n.visualViewport?n.visualViewport.height:innerHeight,b=window.scrollX||pageXOffset,h=window.scrollY||pageYOffset,v=e.getBoundingClientRect(),m=v.height,y=v.width,g=v.top,O=v.right,j=v.bottom,w=v.left,k="start"===o||"nearest"===o?g:"end"===o?j:g+m/2,_="center"===i?w+y/2:"end"===i?O:w,S=[],E=0;E=0&&w>=0&&j<=p&&O<=f&&g>=M&&j<=I&&w>=R&&O<=T)return S;var N=getComputedStyle(x),A=parseInt(N.borderLeftWidth,10),L=parseInt(N.borderTopWidth,10),F=parseInt(N.borderRightWidth,10),z=parseInt(N.borderBottomWidth,10),B=0,H=0,V="offsetWidth"in x?x.offsetWidth-x.clientWidth-A-F:0,K="offsetHeight"in x?x.offsetHeight-x.clientHeight-L-z:0;if(u===x)B="start"===o?k:"end"===o?k-p:"nearest"===o?qa(h,h+p,p,L,z,h+k,h+k+m,m):k-p/2,H="start"===i?_:"center"===i?_-f/2:"end"===i?_-f:qa(b,b+f,f,A,F,b+_,b+_+y,y),B=Math.max(0,B+h),H=Math.max(0,H+b);else{B="start"===o?k-M-L:"end"===o?k-I+z+K:"nearest"===o?qa(M,I,P,L,z+K,k,k+m,m):k-(M+P/2)+K/2,H="start"===i?_-R-A:"center"===i?_-(R+D/2)+V/2:"end"===i?_-T+F+V:qa(R,T,D,A,F+V,_,_+y,y);var W=x.scrollLeft,U=x.scrollTop;k+=U-(B=Math.max(0,Math.min(U+B,x.scrollHeight-P+K))),_+=W-(H=Math.max(0,Math.min(W+H,x.scrollWidth-D+V)))}S.push({el:x,top:B,left:H})}return S}(e,{boundary:t,block:"nearest",scrollMode:"if-needed"}).forEach((function(e){var t=e.el,n=e.top,r=e.left;t.scrollTop=n,t.scrollLeft=r}))}function Xa(e,t){return e===t||e.contains&&e.contains(t)}function Ja(e,t){var n;function r(){n&&clearTimeout(n)}function o(){for(var o=arguments.length,i=new Array(o),a=0;a1?n-1:0),o=1;o=37&&n<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t}function ac(e,t,n,r,o){if(void 0===o&&(o=!0),0===n)return-1;var i=n-1;("number"!=typeof t||t<0||t>=n)&&(t=e>0?-1:i+1);var a=t+e;a<0?a=o?i:0:a>i&&(a=o?0:i);var c=cc(e,a,n,r,o);return-1===c?t>=n?-1:t:c}function cc(e,t,n,r,o){var i=r(t);if(!i||!i.hasAttribute("disabled"))return t;if(e>0){for(var a=t+1;a=0;c--)if(!r(c).hasAttribute("disabled"))return c;return o?e>0?cc(1,0,n,r,!1):cc(-1,n-1,n,r,!1):-1}function sc(e,t,n,r){return void 0===r&&(r=!0),t.some((function(t){return t&&(Xa(t,e)||r&&Xa(t,n.activeElement))}))}var uc=Ja((function(){dc().textContent=""}),500);function lc(e,t){var n=dc(t);e&&(n.textContent=e,uc())}function dc(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 fc={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function pc(e,t,n){var r=e.props,i=e.type,a={};Object.keys(t).forEach((function(e){!function(e,t,n,r){var o="on"+yc(e)+"Change";t[o]&&void 0!==r[e]&&r[e]!==n[e]&&t[o](r)}(e,r,t,n),n[e]!==t[e]&&(a[e]=n[e])})),r.onStateChange&&Object.keys(a).length&&r.onStateChange(Object(o.a)({type:i},a))}var bc=Ja((function(e,t){lc(e(),t)}),200);function hc(e){var t=e.id,n=e.labelId,r=e.menuId,o=e.getItemId,i=e.toggleButtonId,a=void 0===t?"downshift-"+tc():t;return{labelId:n||a+"-label",menuId:r||a+"-menu",getItemId:o||function(e){return a+"-item-"+e},toggleButtonId:i||a+"-toggle-button"}}function vc(e,t,n){return void 0!==e?e:0===n.length?-1:n.indexOf(t)}function mc(e){return/^\S{1}$/.test(e)}function yc(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function gc(e){var t=Object(v.useRef)(e);return t.current=e,t}function Oc(e,t,n){var r=Object(v.useRef)(),i=Object(v.useRef)(),a=Object(v.useCallback)((function(t,n){i.current=n,t=rc(t,n.props);var r=e(t,n);return n.props.stateReducer(t,Object(o.a)({},n,{changes:r}))}),[e]),c=Object(v.useReducer)(a,t),s=c[0],u=c[1],l=gc(n),d=Object(v.useCallback)((function(e){return u(Object(o.a)({props:l.current},e))}),[l]),f=i.current;return Object(v.useEffect)((function(){f&&r.current&&r.current!==s&&pc(f,rc(r.current,f.props),s),r.current=s}),[s,n,f]),[s,d]}function jc(e,t,n){var r=Oc(e,t,n),o=r[0],i=r[1];return[rc(o,n),i]}var wc={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:Za,circularNavigation:!1,environment:"undefined"==typeof window?{}:window};function kc(e,t,n){void 0===n&&(n=fc);var r="default"+yc(t);return r in e?e[r]:n[t]}function _c(e,t,n){if(void 0===n&&(n=fc),t in e)return e[t];var r="initial"+yc(t);return r in e?e[r]:kc(e,t,n)}function Sc(e){var t=_c(e,"selectedItem"),n=_c(e,"isOpen"),r=_c(e,"highlightedIndex"),o=_c(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,i=e.initialHighlightedIndex,a=e.defaultHighlightedIndex,c=t.selectedItem,s=t.highlightedIndex;return 0===o.length?-1:void 0!==i&&s===i?i:void 0!==a?a:c?0===n?o.indexOf(c):ac(n,o.indexOf(c),o.length,r,!1):0===n?-1:n<0?o.length-1:0}function xc(e,t,n,r){var o=Object(v.useRef)({isMouseDown:!1,isTouchMove:!1});return Object(v.useEffect)((function(){var i=function(){o.current.isMouseDown=!0},a=function(i){o.current.isMouseDown=!1,e&&!sc(i.target,t.map((function(e){return e.current})),n.document)&&r()},c=function(){o.current.isTouchMove=!1},s=function(){o.current.isTouchMove=!0},u=function(i){!e||o.current.isTouchMove||sc(i.target,t.map((function(e){return e.current})),n.document,!1)||r()};return n.addEventListener("mousedown",i),n.addEventListener("mouseup",a),n.addEventListener("touchstart",c),n.addEventListener("touchmove",s),n.addEventListener("touchend",u),function(){n.removeEventListener("mousedown",i),n.removeEventListener("mouseup",a),n.removeEventListener("touchstart",c),n.removeEventListener("touchmove",s),n.removeEventListener("touchend",u)}}),[e,n]),o}function Cc(){for(var e=!1,t=Object(v.useRef)(!0),n=arguments.length,r=new Array(n),o=0;o=0&&{selectedItem:i.items[u]});break;case 13:n={highlightedIndex:Ec(i,e,1,t.getItemNodeFromIndex),isOpen:!0};break;case 14:n={highlightedIndex:Ec(i,e,-1,t.getItemNodeFromIndex),isOpen:!0};break;case 5:case 6:n=Object(o.a)({isOpen:kc(i,"isOpen"),highlightedIndex:kc(i,"highlightedIndex")},e.highlightedIndex>=0&&{selectedItem:i.items[e.highlightedIndex]});break;case 3:n={highlightedIndex:cc(1,0,i.items.length,t.getItemNodeFromIndex,!1)};break;case 4:n={highlightedIndex:cc(-1,i.items.length-1,i.items.length,t.getItemNodeFromIndex,!1)};break;case 2:case 8:n={isOpen:!1,highlightedIndex:-1};break;case 7:var l=t.key,d=""+e.inputValue+l,f=Pc(d,e.highlightedIndex,i.items,i.itemToString,t.getItemNodeFromIndex);n=Object(o.a)({inputValue:d},f>=0&&{highlightedIndex:f});break;case 0:n={highlightedIndex:ac(a?5:1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,i.circularNavigation)};break;case 1:n={highlightedIndex:ac(a?-5:-1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,i.circularNavigation)};break;case 9:n={highlightedIndex:-1};break;case 12:case 16:n={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:Ec(i,e,0)};break;case 17:n={isOpen:!0,highlightedIndex:Ec(i,e,0)};break;case 18:n={isOpen:!1};break;case 19:n={highlightedIndex:t.highlightedIndex};break;case 20:n={selectedItem:t.selectedItem};break;case 21:n={inputValue:t.inputValue};break;case 22:n={highlightedIndex:kc(i,"highlightedIndex"),isOpen:kc(i,"isOpen"),selectedItem:kc(i,"selectedItem"),inputValue:kc(i,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return Object(o.a)({},e,n)}function Ic(e){void 0===e&&(e={});var t=Object(o.a)({},Dc,e),n=t.items,r=t.scrollIntoView,i=t.environment,a=t.initialIsOpen,c=t.defaultIsOpen,s=t.itemToString,u=t.getA11ySelectionMessage,l=t.getA11yStatusMessage,d=jc(Tc,Sc(t),t),f=d[0],p=d[1],b=f.isOpen,h=f.highlightedIndex,m=f.selectedItem,y=f.inputValue,g=Object(v.useRef)(null),O=Object(v.useRef)(null),j=Object(v.useRef)();j.current={};var w=Object(v.useRef)(!0),k=Object(v.useRef)(!0),_=Object(v.useRef)(null),S=Object(v.useRef)(hc(t)),E=Object(v.useRef)(),x=Object(v.useRef)(!0),C=Object(v.useRef)(t),P=gc({state:f,props:t}),D=function(e){return j.current[S.current.getItemId(e)]};Object(v.useEffect)((function(){if(!x.current){var e=E.current;bc((function(){return l({isOpen:b,highlightedIndex:h,selectedItem:m,inputValue:y,highlightedItem:n[h],resultCount:n.length,itemToString:s,previousResultCount:e})}),i.document)}}),[b,h,y,n]),Object(v.useEffect)((function(){if(!x.current){var e=E.current;bc((function(){return u({isOpen:b,highlightedIndex:h,selectedItem:m,inputValue:y,highlightedItem:n[h],resultCount:n.length,itemToString:s,previousResultCount:e})}),i.document)}}),[m]),Object(v.useEffect)((function(){x.current&&(_.current=Ja((function(e){e({type:21,inputValue:""})}),500)),y&&_.current(p)}),[y]),Object(v.useEffect)((function(){x.current?(a||c||b)&&O.current&&O.current.focus():b?O.current&&O.current.focus():i.document.activeElement===O.current&&g.current&&(k.current=!1,g.current.focus())}),[b]),Object(v.useEffect)((function(){h<0||!b||!Object.keys(j.current).length||(!1===w.current?w.current=!0:r(D(h),O.current))}),[h]),Object(v.useEffect)((function(){x.current||(E.current=n.length)})),Object(v.useEffect)((function(){x.current||(C.current,C.current=t)}),[f,t]);var M=xc(b,[O,g],i,(function(){p({type:8})})),T=Cc("getMenuProps","getToggleButtonProps");Object(v.useEffect)((function(){x.current=!1}),[]);var I=Object(v.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),p({type:13,getItemNodeFromIndex:D,shiftKey:e.shiftKey})},ArrowUp:function(e){e.preventDefault(),p({type:14,getItemNodeFromIndex:D,shiftKey:e.shiftKey})}}}),[p]),R=Object(v.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),p({type:0,getItemNodeFromIndex:D,shiftKey:e.shiftKey})},ArrowUp:function(e){e.preventDefault(),p({type:1,getItemNodeFromIndex:D,shiftKey:e.shiftKey})},Home:function(e){e.preventDefault(),p({type:3,getItemNodeFromIndex:D})},End:function(e){e.preventDefault(),p({type:4,getItemNodeFromIndex:D})},Escape:function(){p({type:2})},Enter:function(e){e.preventDefault(),p({type:5})}," ":function(e){e.preventDefault(),p({type:6})}}}),[p]),N=Object(v.useCallback)((function(){p({type:16})}),[p]),A=Object(v.useCallback)((function(){p({type:18})}),[p]),L=Object(v.useCallback)((function(){p({type:17})}),[p]),F=Object(v.useCallback)((function(e){p({type:19,highlightedIndex:e})}),[p]),z=Object(v.useCallback)((function(e){p({type:20,selectedItem:e})}),[p]),B=Object(v.useCallback)((function(){p({type:22})}),[p]),H=Object(v.useCallback)((function(e){p({type:21,inputValue:e})}),[p]),V=Object(v.useCallback)((function(e){return Object(o.a)({id:S.current.labelId,htmlFor:S.current.toggleButtonId},e)}),[]),K=Object(v.useCallback)((function(e,t){var n,r=void 0===e?{}:e,i=r.onMouseLeave,a=r.refKey,c=void 0===a?"ref":a,s=r.onKeyDown,u=r.onBlur,l=r.ref,d=Object(Va.a)(r,["onMouseLeave","refKey","onKeyDown","onBlur","ref"]),f=(void 0===t?{}:t).suppressRefError,b=void 0!==f&&f,h=P.current.state;return T("getMenuProps",b,c,O),Object(o.a)(((n={})[c]=ec(l,(function(e){O.current=e})),n.id=S.current.menuId,n.role="listbox",n["aria-labelledby"]=S.current.labelId,n.tabIndex=-1,n),h.isOpen&&h.highlightedIndex>-1&&{"aria-activedescendant":S.current.getItemId(h.highlightedIndex)},{onMouseLeave:Qa(i,(function(){p({type:9})})),onKeyDown:Qa(s,(function(e){var t=ic(e);t&&R[t]?R[t](e):mc(t)&&p({type:7,key:t,getItemNodeFromIndex:D})})),onBlur:Qa(u,(function(){!1!==k.current?!M.current.isMouseDown&&p({type:8}):k.current=!0}))},d)}),[p,P,R,M,T]);return{getToggleButtonProps:Object(v.useCallback)((function(e,t){var n,r=void 0===e?{}:e,i=r.onClick,a=r.onKeyDown,c=r.refKey,s=void 0===c?"ref":c,u=r.ref,l=Object(Va.a)(r,["onClick","onKeyDown","refKey","ref"]),d=(void 0===t?{}:t).suppressRefError,f=void 0!==d&&d,b=Object(o.a)(((n={})[s]=ec(u,(function(e){g.current=e})),n.id=S.current.toggleButtonId,n["aria-haspopup"]="listbox",n["aria-expanded"]=P.current.state.isOpen,n["aria-labelledby"]=S.current.labelId+" "+S.current.toggleButtonId,n),l);return l.disabled||(b.onClick=Qa(i,(function(){p({type:12})})),b.onKeyDown=Qa(a,(function(e){var t=ic(e);t&&I[t]?I[t](e):mc(t)&&p({type:15,key:t,getItemNodeFromIndex:D})}))),T("getToggleButtonProps",f,s,g),b}),[p,P,I,T]),getLabelProps:V,getMenuProps:K,getItemProps:Object(v.useCallback)((function(e){var t,n=void 0===e?{}:e,r=n.item,i=n.index,a=n.onMouseMove,c=n.onClick,s=n.refKey,u=void 0===s?"ref":s,l=n.ref,d=Object(Va.a)(n,["item","index","onMouseMove","onClick","refKey","ref"]),f=P.current,b=f.state,h=f.props,v=vc(i,r,h.items);if(v<0)throw new Error("Pass either item or item index in getItemProps!");var m=Object(o.a)(((t={role:"option","aria-selected":""+(v===b.highlightedIndex),id:S.current.getItemId(v)})[u]=ec(l,(function(e){e&&(j.current[S.current.getItemId(v)]=e)})),t),d);return d.disabled||(m.onMouseMove=Qa(a,(function(){i!==b.highlightedIndex&&(w.current=!1,p({type:10,index:i}))})),m.onClick=Qa(c,(function(){p({type:11,index:i})}))),m}),[p,P]),toggleMenu:N,openMenu:L,closeMenu:A,setHighlightedIndex:F,selectItem:z,reset:B,setInputValue:H,highlightedIndex:h,isOpen:b,selectedItem:m,inputValue:y}}Ic.stateChangeTypes=Mc;Wa.a.array.isRequired,Wa.a.func,Wa.a.func,Wa.a.func,Wa.a.bool,Wa.a.number,Wa.a.number,Wa.a.number,Wa.a.bool,Wa.a.bool,Wa.a.bool,Wa.a.any,Wa.a.any,Wa.a.any,Wa.a.string,Wa.a.string,Wa.a.string,Wa.a.string,Wa.a.string,Wa.a.string,Wa.a.func,Wa.a.string,Wa.a.string,Wa.a.func,Wa.a.func,Wa.a.func,Wa.a.func,Wa.a.func,Wa.a.func,Wa.a.shape({addEventListener:Wa.a.func,removeEventListener:Wa.a.func,document:Wa.a.shape({getElementById:Wa.a.func,activeElement:Wa.a.any,body:Wa.a.any})});Object(o.a)({},wc,{getA11yStatusMessage:nc,circularNavigation:!0});Wa.a.array,Wa.a.array,Wa.a.array,Wa.a.func,Wa.a.func,Wa.a.func,Wa.a.number,Wa.a.number,Wa.a.number,Wa.a.func,Wa.a.func,Wa.a.string,Wa.a.string,Wa.a.shape({addEventListener:Wa.a.func,removeEventListener:Wa.a.func,document:Wa.a.shape({getElementById:Wa.a.func,activeElement:Wa.a.any,body:Wa.a.any})});var Rc=function(e){return e&&e.name},Nc=function(e,t){var n=e.selectedItem,r=t.type,o=t.changes,i=t.props.items;switch(r){case Ic.stateChangeTypes.ToggleButtonKeyDownArrowDown:return{selectedItem:i[n?Math.min(i.indexOf(n)+1,i.length-1):0]};case Ic.stateChangeTypes.ToggleButtonKeyDownArrowUp:return{selectedItem:i[n?Math.max(i.indexOf(n)-1,0):i.length-1]};default:return o}};function Ac(e){var t=e.className,n=e.hideLabelFromVision,r=e.label,i=e.options,a=e.onChange,s=e.value,u=Ic({initialSelectedItem:i[0],items:i,itemToString:Rc,onSelectedItemChange:a,selectedItem:s,stateReducer:Nc}),d=u.getLabelProps,f=u.getToggleButtonProps,p=u.getMenuProps,b=u.getItemProps,h=u.isOpen,v=u.highlightedIndex,m=u.selectedItem,y=p({className:"components-custom-select-control__menu","aria-hidden":!h});return y["aria-activedescendant"]&&"downshift-null"===y["aria-activedescendant"].slice(0,"downshift-null".length)&&delete y["aria-activedescendant"],Object(c.createElement)("div",{className:l()("components-custom-select-control",t)},n?Object(c.createElement)(M,Object(o.a)({as:"label"},d()),r):Object(c.createElement)("label",d({className:"components-custom-select-control__label"}),r),Object(c.createElement)(Wr.a,f({"aria-label":r,"aria-labelledby":void 0,className:"components-custom-select-control__button",isSmall:!0}),Rc(m),Object(c.createElement)(Qi.a,{icon:ha.a,className:"components-custom-select-control__button-icon"})),Object(c.createElement)("ul",y,h&&i.map((function(e,t){return Object(c.createElement)("li",b({item:e,index:t,key:e.key,className:l()(e.className,"components-custom-select-control__item",{"is-highlighted":t===v}),style:e.style}),e===m&&Object(c.createElement)(Qi.a,{icon:ea.a,className:"components-custom-select-control__item-icon"}),e.name)}))))}var Lc=n(151),Fc=(n(319),n(44)),zc=n.n(Fc),Bc=n(284),Hc=n.n(Bc);function Vc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Hr.a)(e);if(t){var o=Object(Hr.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Br.a)(this,n)}}var Kc=function(e){Object(zr.a)(n,e);var t=Vc(n);function n(){var e;return Object(Ar.a)(this,n),(e=t.apply(this,arguments)).onChangeMoment=e.onChangeMoment.bind(Object(Lr.a)(e)),e.nodeRef=Object(c.createRef)(),e.keepFocusInside=e.keepFocusInside.bind(Object(Lr.a)(e)),e.isDayHighlighted=e.isDayHighlighted.bind(Object(Lr.a)(e)),e}return Object(Fr.a)(n,[{key:"keepFocusInside",value:function(){if(this.nodeRef.current&&(!document.activeElement||!this.nodeRef.current.contains(document.activeElement))){var e=this.nodeRef.current.querySelector(".DayPicker_focusRegion");if(!e)return;e.focus()}}},{key:"onChangeMoment",value:function(e){var t=this.props,n=t.currentDate,r=t.onChange,o=n?zc()(n):zc()(),i={hours:o.hours(),minutes:o.minutes(),seconds:0};r(e.set(i).format("YYYY-MM-DDTHH:mm:ss"))}},{key:"getMomentDate",value:function(e){return null===e?null:e?zc()(e):zc()()}},{key:"isDayHighlighted",value:function(e){var t;return!!(null===(t=this.props.events)||void 0===t?void 0:t.length)&&(this.props.onMonthPreviewed&&this.props.onMonthPreviewed(e.toDate()),this.props.events.some((function(t){return e.isSame(t.date,"day")})))}},{key:"render",value:function(){var e=this.props,t=e.currentDate,n=e.isInvalidDate,r=this.getMomentDate(t);return Object(c.createElement)("div",{className:"components-datetime__date",ref:this.nodeRef},Object(c.createElement)(Hc.a,{date:r,daySize:30,focused:!0,hideKeyboardShortcutsPanel:!0,key:"datepicker-controller-".concat(r?r.format("MM-YYYY"):"null"),noBorder:!0,numberOfMonths:1,onDateChange:this.onChangeMoment,transitionDuration:0,weekDayFormat:"ddd",isRTL:"rtl"===document.documentElement.dir,isOutsideRange:function(e){return n&&n(e.toDate())},isDayHighlighted:this.isDayHighlighted,onPrevMonthClick:this.keepFocusInside,onNextMonthClick:this.keepFocusInside}))}}]),n}(c.Component),Wc=n(75),Uc=function(){var e=Object(Wc.__experimentalGetSettings)().timezone,t=(new Date).getTimezoneOffset()/60*-1;if(Number(e.offset)===t)return null;var n=e.offset>=0?"+":"",r=""!==e.abbr&&isNaN(e.abbr)?e.abbr:"UTC".concat(n).concat(e.offset),o="UTC"===e.string?Object(S.__)("Coordinated Universal Time"):"(".concat(r,") ").concat(e.string.replace("_"," "));return Object(c.createElement)(C.a,{position:"top center",text:o},Object(c.createElement)("div",{className:"components-datetime__timezone"},r))};function Gc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $c(e){var t=e.as,n=e.value,r=e.onUpdate,o=Object(a.a)(e,["as","value","onUpdate"]);return Object(c.createElement)(t||"input",function(e){for(var t=1;to.max||void 0!==o.min&&i700?(this.cloneWrapper.style.transform="scale(0.5)",this.cloneWrapper.style.transformOrigin="top left",this.cloneWrapper.style.top="".concat(e.clientY-100,"px"),this.cloneWrapper.style.left="".concat(e.clientX,"px")):(this.cloneWrapper.style.top="".concat(f-0,"px"),this.cloneWrapper.style.left="".concat(p-0,"px")),Array.from(h.querySelectorAll("iframe")).forEach((function(e){return e.parentNode.removeChild(e)})),this.cloneWrapper.appendChild(h)}d.appendChild(this.cloneWrapper),this.cursorLeft=e.clientX,this.cursorTop=e.clientY,document.body.classList.add("is-dragging-components-draggable"),document.addEventListener("dragover",this.onDragOver),e.persist(),this.props.setTimeout(a.bind(this,e))}else e.preventDefault()}},{key:"resetDragState",value:function(){document.removeEventListener("dragover",this.onDragOver),this.cloneWrapper&&this.cloneWrapper.parentNode&&(this.cloneWrapper.parentNode.removeChild(this.cloneWrapper),this.cloneWrapper=null),this.cursorLeft=null,this.cursorTop=null,document.body.classList.remove("is-dragging-components-draggable")}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.__experimentalDragComponent;return Object(c.createElement)(c.Fragment,null,t({onDraggableStart:this.onDragStart,onDraggableEnd:this.onDragEnd}),n&&Object(c.createElement)("div",{className:"components-draggable-drag-component-root",style:{display:"none"},ref:this.dragComponentRef},n))}}]),n}(c.Component),ps=Object(E.withSafeTimeout)(fs),bs=n(216),hs=n(64),vs=n.n(hs);function ms(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Hr.a)(e);if(t){var o=Object(Hr.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Br.a)(this,n)}}var ys=Object(c.createContext)({addDropZone:function(){},removeDropZone:function(){}}),gs=ys.Provider,Os=ys.Consumer,js=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"},ws=function(e,t){return"file"===e&&t.onFilesDrop||"html"===e&&t.onHTMLDrop||"default"===e&&t.onDrop},ks=function(e){Object(zr.a)(n,e);var t=ms(n);function n(){var e;return Object(Ar.a)(this,n),(e=t.apply(this,arguments)).onDragOver=e.onDragOver.bind(Object(Lr.a)(e)),e.onDrop=e.onDrop.bind(Object(Lr.a)(e)),e.addDropZone=e.addDropZone.bind(Object(Lr.a)(e)),e.removeDropZone=e.removeDropZone.bind(Object(Lr.a)(e)),e.resetDragState=e.resetDragState.bind(Object(Lr.a)(e)),e.toggleDraggingOverDocument=Object(s.throttle)(e.toggleDraggingOverDocument.bind(Object(Lr.a)(e)),200),e.dropZones=[],e.dropZoneCallbacks={addDropZone:e.addDropZone,removeDropZone:e.removeDropZone},e.state={hoveredDropZone:-1,isDraggingOverDocument:!1,position:null},e.ref=Object(c.createRef)(),e}return Object(Fr.a)(n,[{key:"componentDidMount",value:function(){var e=this.ref.current.ownerDocument.defaultView;e.addEventListener("dragover",this.onDragOver),e.addEventListener("mouseup",this.resetDragState)}},{key:"componentWillUnmount",value:function(){var e=this.ref.current.ownerDocument.defaultView;e.removeEventListener("dragover",this.onDragOver),e.removeEventListener("mouseup",this.resetDragState)}},{key:"addDropZone",value:function(e){this.dropZones.push(e)}},{key:"removeDropZone",value:function(e){this.dropZones=Object(s.filter)(this.dropZones,(function(t){return t!==e}))}},{key:"resetDragState",value:function(){this.toggleDraggingOverDocument.cancel();var e=this.state,t=e.isDraggingOverDocument,n=e.hoveredDropZone;(t||-1!==n)&&(this.setState({hoveredDropZone:-1,isDraggingOverDocument:!1,position:null}),this.dropZones.forEach((function(e){return e.setState({isDraggingOverDocument:!1,isDraggingOverElement:!1,position:null,type:null})})))}},{key:"toggleDraggingOverDocument",value:function(e,t){var n=this,r=window.CustomEvent&&e instanceof window.CustomEvent?e.detail:e,o=Object(s.filter)(this.dropZones,(function(e){return ws(t,e)&&(n=e.element.current,o=r.clientX,i=r.clientY,(a=n.getBoundingClientRect()).bottom!==a.top&&a.left!==a.right&&o>=a.left&&o<=a.right&&i>=a.top&&i<=a.bottom);var n,o,i,a})),i=Object(s.find)(o,(function(e){var t=e.isRelative?e.element.current.parentElement:e.element.current;return!Object(s.some)(o,(function(n){return n!==e&&t.contains(n.element.current)}))})),a=this.dropZones.indexOf(i),c=null;i&&i.withPosition&&(c={x:r.clientX,y:r.clientY});var u=[];this.state.isDraggingOverDocument?a!==this.state.hoveredDropZone?(-1!==this.state.hoveredDropZone&&u.push(this.dropZones[this.state.hoveredDropZone]),i&&u.push(i)):i&&a===this.state.hoveredDropZone&&!Object(s.isEqual)(c,this.state.position)&&u.push(i):u=this.dropZones,u.forEach((function(e){var r=n.dropZones.indexOf(e)===a;e.setState({isDraggingOverDocument:ws(t,e),isDraggingOverElement:r,position:r?c:null,type:r?t:null})}));var l={isDraggingOverDocument:!0,hoveredDropZone:a,position:c};vs()(l,this.state)||this.setState(l)}},{key:"onDragOver",value:function(e){this.toggleDraggingOverDocument(e,js(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=js(e),i=this.dropZones[r];if(this.resetDragState(),i)switch(o){case"file":i.onFilesDrop(Object(Vr.a)(e.dataTransfer.files),n);break;case"html":i.onHTMLDrop(e.dataTransfer.getData("text/html"),n);break;case"default":i.onDrop(e,n)}e.stopPropagation(),e.preventDefault()}},{key:"render",value:function(){return Object(c.createElement)("div",{ref:this.ref,onDrop:this.onDrop,className:"components-drop-zone__provider"},Object(c.createElement)(gs,{value:this.dropZoneCallbacks},this.props.children))}}]),n}(c.Component);function _s(e){var t=e.element,n=e.onFilesDrop,r=e.onHTMLDrop,o=e.onDrop,a=e.isDisabled,s=e.withPosition,u=e.__unstableIsRelative,l=void 0!==u&&u,d=Object(c.useContext)(ys),f=d.addDropZone,p=d.removeDropZone,b=Object(c.useState)({isDraggingOverDocument:!1,isDraggingOverElement:!1,type:null}),h=Object(i.a)(b,2),v=h[0],m=h[1];return Object(c.useEffect)((function(){if(!a){var e={element:t,onDrop:o,onFilesDrop:n,onHTMLDrop:r,setState:m,withPosition:s,isRelative:l};return f(e),function(){p(e)}}}),[a,o,n,r,s]),v}function Ss(e){var t,n=e.className,r=e.label,o=e.onFilesDrop,i=e.onHTMLDrop,a=e.onDrop,s=Object(c.useRef)(),u=_s({element:s,onFilesDrop:o,onHTMLDrop:i,onDrop:a,__unstableIsRelative:!0}),d=u.isDraggingOverDocument,f=u.isDraggingOverElement,p=u.type;f&&(t=Object(c.createElement)("div",{className:"components-drop-zone__content"},Object(c.createElement)(Qi.a,{icon:bs.a,className:"components-drop-zone__content-icon"}),Object(c.createElement)("span",{className:"components-drop-zone__content-text"},r||Object(S.__)("Drop files to upload"))));var b=l()("components-drop-zone",n,Object(P.a)({"is-active":(d||f)&&("file"===p&&o||"html"===p&&i||"default"===p&&a),"is-dragging-over-document":d,"is-dragging-over-element":f},"is-dragging-".concat(p),!!p));return Object(c.createElement)("div",{ref:s,className:b},t)}var Es=function(e){return Object(c.createElement)(Os,null,(function(t){var n=t.addDropZone,r=t.removeDropZone;return Object(c.createElement)(Ss,Object(o.a)({addDropZone:n,removeDropZone:r},e))}))},xs=n(35),Cs=n.n(xs);function Ps(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Hr.a)(e);if(t){var o=Object(Hr.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Br.a)(this,n)}}var Ds=["menuitem","menuitemradio","menuitemcheckbox"];var Ms=function(e){Object(zr.a)(n,e);var t=Ps(n);function n(){var e;return Object(Ar.a)(this,n),(e=t.apply(this,arguments)).onKeyDown=e.onKeyDown.bind(Object(Lr.a)(e)),e.bindContainer=e.bindContainer.bind(Object(Lr.a)(e)),e.getFocusableContext=e.getFocusableContext.bind(Object(Lr.a)(e)),e.getFocusableIndex=e.getFocusableIndex.bind(Object(Lr.a)(e)),e}return Object(Fr.a)(n,[{key:"componentDidMount",value:function(){this.container.addEventListener("keydown",this.onKeyDown),this.container.addEventListener("focus",this.onFocus)}},{key:"componentWillUnmount",value:function(){this.container.removeEventListener("keydown",this.onKeyDown),this.container.removeEventListener("focus",this.onFocus)}},{key:"bindContainer",value:function(e){var t=this.props.forwardedRef;this.container=e,Object(s.isFunction)(t)?t(e):t&&"current"in t&&(t.current=e)}},{key:"getFocusableContext",value:function(e){var t=(this.props.onlyBrowserTabstops?os.focus.tabbable:os.focus.focusable).find(this.container),n=this.getFocusableIndex(t,e);return n>-1&&e?{index:n,target:e,focusables:t}:null}},{key:"getFocusableIndex",value:function(e,t){var n=e.indexOf(t);if(-1!==n)return n}},{key:"onKeyDown",value:function(e){this.props.onKeyDown&&this.props.onKeyDown(e);var t=this.getFocusableContext,n=this.props,r=n.cycle,o=void 0===r||r,i=n.eventToOffset,a=n.onNavigate,c=void 0===a?s.noop:a,u=n.stopNavigationEvents,l=i(e);if(void 0!==l&&u){e.stopImmediatePropagation();var d=e.target.getAttribute("role");Ds.includes(d)&&e.preventDefault()}if(l){var f=t(e.target.ownerDocument.activeElement);if(f){var p=f.index,b=f.focusables,h=o?function(e,t,n){var r=e+n;return r<0?t+r:r>=t?r-t:r}(p,b.length,l):p+l;h>=0&&h0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=As(As({},e),t);return t.className&&e.className&&(n.className=l()(t.className,e.className)),n}var Fs=function(e){var t,n=e.children,r=e.className,i=e.controls,a=e.icon,u=void 0===a?"menu":a,d=e.label,f=e.popoverProps,p=e.toggleProps,b=e.menuProps,h=e.disableOpenOnArrowDown,v=void 0!==h&&h,m=e.menuLabel,y=e.position,g=e.noIcons;if(m&&Cs()("`menuLabel` prop in `DropdownComponent`",{alternative:"`menuProps` object and its `aria-label` property",plugin:"Gutenberg"}),y&&Cs()("`position` prop in `DropdownComponent`",{alternative:"`popoverProps` object and its `position` property",plugin:"Gutenberg"}),Object(s.isEmpty)(i)&&!Object(s.isFunction)(n))return null;Object(s.isEmpty)(i)||(t=i,Array.isArray(t[0])||(t=[t]));var O=Ls({className:"components-dropdown-menu__popover",position:y},f);return Object(c.createElement)(Ma,{className:l()("components-dropdown-menu",r),popoverProps:O,renderToggle:function(e){var t,n=e.isOpen,r=e.onToggle,i=Ls({className:l()("components-dropdown-menu__toggle",{"is-opened":n})},p);return Object(c.createElement)(Wr.a,Object(o.a)({},i,{icon:u,onClick:function(e){r(e),i.onClick&&i.onClick(e)},onKeyDown:function(e){!function(e){v||n||e.keyCode!==rr.DOWN||(e.preventDefault(),e.stopPropagation(),r())}(e),i.onKeyDown&&i.onKeyDown(e)},"aria-haspopup":"true","aria-expanded":n,label:d,showTooltip:null===(t=null==p?void 0:p.showTooltip)||void 0===t||t}),i.children)},renderContent:function(e){var r=Ls({"aria-label":m||d,className:l()("components-dropdown-menu__menu",{"no-icons":g})},b);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)(Wr.a,{key:[n,r].join(),onClick:function(n){n.stopPropagation(),e.onClose(),t.onClick&&t.onClick()},className:l()("components-dropdown-menu__menu-item",{"has-separator":n>0&&0===r,"is-active":t.isActive}),icon:t.icon,"aria-checked":"menuitemcheckbox"===t.role||"menuitemradio"===t.role?t.isActive:void 0,role:"menuitemcheckbox"===t.role||"menuitemradio"===t.role?t.role:"menuitem",disabled:t.isDisabled},t.title)}))})))}})},zs=n(423);var Bs=Object(c.forwardRef)((function(e,t){var n=e.href,r=e.children,i=e.className,u=e.rel,d=void 0===u?"":u,f=Object(a.a)(e,["href","children","className","rel"]);d=Object(s.uniq)(Object(s.compact)([].concat(Object(Vr.a)(d.split(" ")),["external","noreferrer","noopener"]))).join(" ");var p=l()("components-external-link",i);return Object(c.createElement)("a",Object(o.a)({},f,{className:p,href:n,target:"_blank",rel:d,ref:t}),r,Object(c.createElement)(M,{as:"span"},Object(S.__)("(opens in a new tab)")),Object(c.createElement)(Qi.a,{icon:zs.a,className:"components-external-link__icon"}))})),Hs=n(114);var Vs=je("div",{target:"e11wezi70",label:"MediaWrapper"})({name:"4wwkjz",styles:"background-color:transparent;box-sizing:border-box;text-align:center;width:100%;"}),Ks=je("div",{target:"e11wezi71",label:"MediaContainer"})({name:"1q0l1fq",styles:"align-items:center;box-sizing:border-box;box-shadow:0 0 0 1px rgba( 0,0,0,0.2 );cursor:pointer;display:inline-flex;justify-content:center;margin:auto;position:relative;height:100%;img,video{box-sizing:border-box;display:block;height:auto;margin:0;max-height:100%;max-width:100%;pointer-events:none;user-select:none;width:auto;}"}),Ws=je("div",{target:"e11wezi72",label:"MediaPlaceholder"})("background:",Fe("lightGray.300"),";box-sizing:border-box;height:170px;max-width:280px;min-width:200px;width:100%;"),Us=je(yo,{target:"e11wezi73",label:"UnitControl"})({name:"v7v99c",styles:"width:100px;"}),Gs=je(yt,{target:"e11wezi74",label:"ControlWrapper"})({name:"lqoi1w",styles:"max-width:320px;padding:1em 0;"}),$s=je("div",{target:"e11wezi75",label:"GridView"})("box-sizing:border-box;left:50%;opacity:0;overflow:hidden;pointer-events:none;position:absolute;top:50%;transform:translate3d( -50%,-50%,0 );transition:opacity 120ms linear;z-index:1;",(function(e){return e.isActive&&"\n\t\topacity: 1;\n\t"}),""),qs=je("div",{target:"e11wezi76",label:"GridLine"})({name:"18dz4sk",styles:"box-sizing:border-box;background:white;box-shadow:0 0 2px rgba( 0,0,0,0.6 );position:absolute;opacity:0.4;transform:translateZ( 0 );"}),Ys=je(qs,{target:"e11wezi77",label:"GridLineX"})({name:"1u4twh6",styles:"height:1px;left:0;right:0;"}),Zs=je(qs,{target:"e11wezi78",label:"GridLineY"})({name:"13gvipf",styles:"width:1px;top:0;bottom:0;"}),Xs={top:0,left:0,bottom:0,right:0,width:0,height:0},Js=["avi","mpg","mpeg","mov","mp4","m4v","ogg","ogv","webm","wmv"];function Qs(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split(".");return t[t.length-1]}function eu(e){return Math.round(100*e)}function tu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nu(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"";return!!e&&Js.includes(Qs(e))}(r)?Object(c.createElement)("video",Object(o.a)({},p,{autoPlay:n,className:"components-focal-point-picker__media components-focal-point-picker__media--video",loop:!0,muted:f,onLoadedData:u,ref:l,src:r})):Object(c.createElement)("img",Object(o.a)({},p,{alt:t,className:"components-focal-point-picker__media components-focal-point-picker__media--image",onLoad:u,ref:l,src:r})):Object(c.createElement)(hu,{className:"components-focal-point-picker__media components-focal-point-picker__media--placeholder",onLoad:u,mediaRef:l})}function hu(e){var t=e.mediaRef,n=e.onLoad,r=void 0===n?s.noop:n,i=Object(a.a)(e,["mediaRef","onLoad"]),u=Object(c.useRef)(r);return Object(c.useLayoutEffect)((function(){window.requestAnimationFrame((function(){u.current()}))}),[]),Object(c.createElement)(Ws,Object(o.a)({ref:t},i))}function vu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Hr.a)(e);if(t){var o=Object(Hr.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Br.a)(this,n)}}var mu=function(e){Object(zr.a)(n,e);var t=vu(n);function n(e){var r;return Object(Ar.a)(this,n),(r=t.apply(this,arguments)).state={isDragging:!1,bounds:Xs,percentages:e.value},r.containerRef=Object(c.createRef)(),r.mediaRef=Object(c.createRef)(),r.handleOnClick=r.handleOnClick.bind(Object(Lr.a)(r)),r.handleOnMouseUp=r.handleOnMouseUp.bind(Object(Lr.a)(r)),r.handleOnKeyDown=r.handleOnKeyDown.bind(Object(Lr.a)(r)),r.onMouseMove=r.onMouseMove.bind(Object(Lr.a)(r)),r.updateBounds=r.updateBounds.bind(Object(Lr.a)(r)),r.updateValue=r.updateValue.bind(Object(Lr.a)(r)),r}return Object(Fr.a)(n,[{key:"componentDidMount",value:function(){document.addEventListener("mouseup",this.handleOnMouseUp),window.addEventListener("resize",this.updateBounds)}},{key:"componentDidUpdate",value:function(e){e.url!==this.props.url&&this.setState({isDragging:!1}),this.props.value.x===this.state.percentages.x&&this.props.value.y===this.state.percentages.y||this.setState({percentages:this.props.value})}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mouseup",this.handleOnMouseUp),window.removeEventListener("resize",this.updateBounds)}},{key:"calculateBounds",value:function(){var e=Xs;if(!this.mediaRef.current)return e;var t=this.mediaRef.current.clientWidth,n=this.mediaRef.current.clientHeight,r=this.pickerDimensions(),o=r.width/t,i=r.height/n;return i>=o?(e.width=e.right=r.width,e.height=n*o,e.top=(r.height-e.height)/2,e.bottom=e.top+e.height):(e.height=e.bottom=r.height,e.width=t*i,e.left=(r.width-e.width)/2,e.right=e.left+e.width),e}},{key:"updateValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.props.onChange,n=e.x,r=e.y,o={x:parseFloat(n).toFixed(2),y:parseFloat(r).toFixed(2)};this.setState({percentages:o},(function(){t(o)}))}},{key:"updateBounds",value:function(){this.setState({bounds:this.calculateBounds()})}},{key:"handleOnClick",value:function(e){var t=this;e.persist(),this.setState({isDragging:!0},(function(){t.onMouseMove(e)}))}},{key:"handleOnMouseUp",value:function(){this.setState({isDragging:!1})}},{key:"handleOnKeyDown",value:function(e){var t=e.keyCode,n=e.shiftKey;if([rr.UP,rr.DOWN,rr.LEFT,rr.RIGHT].includes(t)){var r=this.state.percentages,o=r.x,i=r.y;e.preventDefault();var a=parseFloat(o),c=parseFloat(i),s=n?.1:.01;switch(e.keyCode){case rr.UP:c-=s;break;case rr.DOWN:c+=s;break;case rr.LEFT:a-=s;break;case rr.RIGHT:a+=s}var u={x:a=Er(a,0,1,s),y:c=Er(c,0,1,s)};this.updateValue(u)}}},{key:"onMouseMove",value:function(e){var t=this.state,n=t.isDragging,r=t.bounds;if(n){var o=e.shiftKey,i=this.pickerDimensions(),a={left:e.pageX-i.left,top:e.pageY-i.top},c=Math.max(r.left,Math.min(a.left,r.right)),s=Math.max(r.top,Math.min(a.top,r.bottom)),u=(c-r.left)/(i.width-2*r.left),l=(s-r.top)/(i.height-2*r.top),d=o?.1:.01,f={x:u=Er(u,0,1,d),y:l=Er(l,0,1,d)};this.updateValue(f)}}},{key:"pickerDimensions",value:function(){var e=this.containerRef.current;if(!e)return{width:0,height:0,left:0,top:0};var t=e.clientHeight,n=e.clientWidth,r=e.getBoundingClientRect(),o=r.top,i=r.left;return{width:n,height:t,top:o+document.body.scrollTop,left:i}}},{key:"iconCoordinates",value:function(){var e=this.props.value,t=this.state.bounds;if(void 0===t.left||void 0===t.top)return{left:"50%",top:"50%"};var n=this.pickerDimensions(),r={left:e.x*(n.width-2*t.left)+t.left,top:e.y*(n.height-2*t.top)+t.top};return r}},{key:"handleFocusOutside",value:function(){this.setState({isDragging:!1})}},{key:"render",value:function(){var e=this,t=this.props,n=t.autoPlay,r=t.className,o=t.help,i=t.instanceId,a=t.label,s=t.onDragStart,u=t.onDragEnd,d=t.url,f=this.state,p=f.bounds,b=f.isDragging,h=f.percentages,v=this.iconCoordinates(),m=l()("components-focal-point-picker-control",r),y="inspector-focal-point-picker-control-".concat(i);return Object(c.createElement)(dt,{label:a,id:y,help:o,className:m},Object(c.createElement)(Vs,{className:"components-focal-point-picker-wrapper"},Object(c.createElement)(Ks,{className:"components-focal-point-picker",onDragStart:function(t){e.setState({isDragging:!0}),s(t)},onDrop:function(t){e.setState({isDragging:!1}),u(t)},onKeyDown:this.handleOnKeyDown,onMouseDown:this.handleOnClick,onMouseMove:this.onMouseMove,onMouseUp:this.handleOnMouseUp,ref:this.containerRef,role:"button",tabIndex:"-1"},Object(c.createElement)(pu,{bounds:p,value:h.x+h.y}),Object(c.createElement)(bu,{alt:Object(S.__)("Media preview"),autoPlay:n,mediaRef:this.mediaRef,onLoad:this.updateBounds,src:d}),Object(c.createElement)(uu,{coordinates:v,isDragging:b}))),Object(c.createElement)(ru,{percentages:h,onChange:this.updateValue}))}}]),n}(c.Component);mu.defaultProps={autoPlay:!0,onDragStart:s.noop,onDragEnd:s.noop,onChange:s.noop,value:{x:.5,y:.5},url:null};var yu=Object(E.compose)([E.withInstanceId,Hs.a])(mu);function gu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Hr.a)(e);if(t){var o=Object(Hr.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Br.a)(this,n)}}var Ou=window.FocusEvent,ju=function(e){Object(zr.a)(n,e);var t=gu(n);function n(e){var r;return Object(Ar.a)(this,n),(r=t.apply(this,arguments)).checkFocus=r.checkFocus.bind(Object(Lr.a)(r)),r.node=e.iframeRef||Object(c.createRef)(),r}return Object(Fr.a)(n,[{key:"checkFocus",value:function(){var e=this.node.current;if(e.ownerDocument.activeElement===e){var t=new Ou("focus",{bubbles:!0});e.dispatchEvent(t);var n=this.props.onFocus;n&&n(t)}}},{key:"render",value:function(){return Object(c.createElement)("iframe",Object(o.a)({ref:this.node},Object(s.omit)(this.props,["iframeRef","onFocus"])))}}]),n}(c.Component),wu=Object(E.withGlobalEvents)({blur:"checkFocus"})(ju),ku=n(424);function _u(e,t,n){return"number"!=typeof e?null:parseFloat(Object(s.clamp)(e,t,n))}var Su={name:"tdik1c",styles:"height:30px;min-height:30px;"},Eu=function(){return Su},xu=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%;"}),Cu=je("span",{target:"exqw8y21",label:"Wrapper"})("box-sizing:border-box;color:",Fe("blue.medium.focus"),";display:block;flex:1;padding-top:15px;position:relative;width:100%;",(function(e){var t=e.color,n=void 0===t?Fe("ui.borderFocus"):t;return le({color:n},"")}),";",Eu,";",(function(e){var t=e.marks;return le({marginBottom:t?16:null},"")}),";",nt({marginLeft:10}),""),Pu=je("span",{target:"exqw8y22",label:"BeforeIconWrapper"})("margin-top:3px;",nt({marginRight:6}),""),Du=je("span",{target:"exqw8y23",label:"AfterIconWrapper"})("margin-top:3px;",nt({marginLeft:16}),""),Mu=je("span",{target:"exqw8y24",label:"Rail"})("background-color:",Fe("lightGray.600"),";box-sizing:border-box;left:0;pointer-events:none;right:0;display:block;height:3px;position:absolute;margin-top:14px;top:0;",(function(e){var t=e.disabled,n=e.railColor||null;return t&&(n=Fe("lightGray.400")),le({background:n},"")}),";"),Tu=je("span",{target:"exqw8y25",label:"Track"})("background-color:currentColor;border-radius:1px;box-sizing:border-box;height:3px;pointer-events:none;display:block;position:absolute;margin-top:14px;top:0;",(function(e){var t=e.disabled,n=e.trackColor||"currentColor";return t&&(n=Fe("lightGray.800")),le({background:n},"")}),";"),Iu=je("span",{target:"exqw8y26",label:"MarksWrapper"})({name:"sx8y8z",styles:"box-sizing:border-box;display:block;position:relative;width:100%;user-select:none;"}),Ru=je("span",{target:"exqw8y27",label:"Mark"})("box-sizing:border-box;height:9px;left:0;position:absolute;top:-4px;width:1px;",(function(e){var t=e.disabled,n=e.isFilled?"currentColor":Fe("lightGray.600");return t&&(n=Fe("lightGray.800")),le({backgroundColor:n},"")}),";"),Nu=je("span",{target:"exqw8y28",label:"MarkLabel"})("box-sizing:border-box;color:",Fe("lightGray.600"),";left:0;font-size:11px;position:absolute;top:12px;transform:translateX( -50% );white-space:nowrap;",(function(e){var t=e.isFilled;return le({color:Fe(t?"darkGray.300":"lightGray.600")},"")}),";"),Au=je("span",{target:"exqw8y29",label:"ThumbWrapper"})("align-items:center;box-sizing:border-box;display:flex;height:20px;justify-content:center;margin-top:5px;outline:0;pointer-events:none;position:absolute;top:0;user-select:none;width:20px;",nt({marginLeft:-10}),""),Lu=je("span",{target:"exqw8y210",label:"Thumb"})("align-items:center;background-color:white;border-radius:50%;border:1px solid ",Fe("darkGray.200"),";box-sizing:border-box;height:100%;outline:0;pointer-events:none;position:absolute;user-select:none;width:100%;",(function(e){var t=e.isFocused;return le({borderColor:Fe(t?"ui.borderFocus":"darkGray.200"),boxShadow:t?"\n\t\t\t\t0 0 0 1px ".concat(Fe("ui.borderFocus"),"\n\t\t\t"):"\n\t\t\t\t0 0 0 rgba(0, 0, 0, 0)\n\t\t\t"},"")}),";"),Fu=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%;"}),zu={name:"5qqmyx",styles:"top:-80%;"},Bu={name:"eda4eg",styles:"bottom:-80%;"},Hu=je("span",{target:"exqw8y212",label:"Tooltip"})("background:",Fe("ui.border"),";border-radius:2px;box-sizing:border-box;color:white;display:inline-block;font-size:12px;min-width:32px;opacity:0;padding:4px 8px;pointer-events:none;position:absolute;text-align:center;transition:opacity 120ms ease;user-select:none;line-height:1.4;",(function(e){var t=e.show;return le({opacity:t?1:0},"")}),";",(function(e){return"top"===e.position?zu:Bu}),";",ze("transition"),";",nt({transform:"translateX(-50%)"},{transform:"translateX(50%)"}),""),Vu=je(Cr,{target:"exqw8y213",label:"InputNumber"})("box-sizing:border-box;display:inline-block;font-size:13px;margin-top:0;width:",ki(8),";input[type='number']&{",Eu,";}",nt({marginLeft:ki(2)}),""),Ku=je("span",{target:"exqw8y214",label:"ActionRightWrapper"})("box-sizing:border-box;display:block;margin-top:0;button,button.is-small{margin-left:0;",Eu,";}",nt({marginLeft:8}),"");var Wu=Object(c.forwardRef)((function(e,t){var n=e.describedBy,r=e.isShiftStepEnabled,u=void 0===r||r,l=e.label,d=e.onHideTooltip,f=void 0===d?s.noop:d,p=e.onMouseLeave,b=void 0===p?s.noop:p,h=e.step,v=void 0===h?1:h,m=e.onBlur,y=void 0===m?s.noop:m,g=e.onChange,O=void 0===g?s.noop:g,j=e.onFocus,w=void 0===j?s.noop:j,k=e.onMouseMove,_=void 0===k?s.noop:k,S=e.onShowTooltip,E=void 0===S?s.noop:S,x=e.shiftStep,C=void 0===x?10:x,P=e.value,D=Object(a.a)(e,["describedBy","isShiftStepEnabled","label","onHideTooltip","onMouseLeave","step","onBlur","onChange","onFocus","onMouseMove","onShowTooltip","shiftStep","value"]),M=xr({step:v,shiftStep:C,isShiftStepEnabled:u}),T=function(e){var t=e.onHide,n=void 0===t?s.noop:t,r=e.onMouseLeave,o=void 0===r?s.noop:r,a=e.onMouseMove,u=void 0===a?s.noop:a,l=e.onShow,d=void 0===l?s.noop:l,f=e.timeout,p=void 0===f?300:f,b=Object(c.useState)(!1),h=Object(i.a)(b,2),v=h[0],m=h[1],y=Object(c.useRef)(),g=Object(c.useCallback)((function(e){window.clearTimeout(y.current),y.current=setTimeout(e,p)}),[p]),O=Object(c.useCallback)((function(e){u(e),g((function(){v||(m(!0),d())}))}),[]),j=Object(c.useCallback)((function(e){o(e),g((function(){m(!1),n()}))}),[]);return Object(c.useEffect)((function(){return function(){window.clearTimeout(y.current)}})),{onMouseMove:O,onMouseLeave:j}}({onHide:f,onMouseLeave:b,onMouseMove:_,onShow:E});return Object(c.createElement)(Fu,Object(o.a)({},D,T,{"aria-describedby":n,"aria-label":l,"aria-hidden":!1,onBlur:y,onChange:O,onFocus:w,ref:t,step:M,tabIndex:0,type:"range",value:P}))}));function Uu(e){var t=e.className,n=e.isFilled,r=void 0!==n&&n,i=e.label,s=e.style,u=void 0===s?{}:s,d=Object(a.a)(e,["className","isFilled","label","style"]),f=l()("components-range-control__mark",r&&"is-filled",t),p=l()("components-range-control__mark-label",r&&"is-filled");return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(Ru,Object(o.a)({},d,{"aria-hidden":"true",className:f,isFilled:r,style:u})),i&&Object(c.createElement)(Nu,{"aria-hidden":"true",className:p,isFilled:r,style:u},i))}function Gu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $u(e){for(var t=1;tM)&&(e=_u(e,I,M)),L(e),ue.current=!1)},shiftStep:Z,step:J,value:we}),f&&Object(c.createElement)(Ku,null,Object(c.createElement)(Wr.a,{className:"components-range-control__reset",disabled:g||void 0===ce,isSecondary:!0,isSmall:!0,onClick:Me},Object(S.__)("Reset")))))})),el="default";function tl(e){var t=e.fallbackFontSize,n=e.fontSizes,r=void 0===n?[]:n,o=e.disableCustomFontSizes,i=void 0!==o&&o,a=e.onChange,s=e.value,u=e.withSlider,l=void 0!==u&&u,d=Object(E.useInstanceId)(tl),f=Object(c.useMemo)((function(){return function(e,t){return t&&!e.length?null:(e=[{slug:el,name:Object(S.__)("Default")}].concat(Object(Vr.a)(e),Object(Vr.a)(t?[]:[{slug:"custom",name:Object(S.__)("Custom")}]))).map((function(e){return{key:e.slug,name:e.name,style:{fontSize:e.size}}}))}(r,i)}),[r,i]);if(!f)return null;var p=function(e,t){if(t){var n=e.find((function(e){return e.size===Number(t)}));return n?n.slug:"custom"}return el}(r,s),b="components-font-size-picker__number#".concat(d);return Object(c.createElement)("fieldset",{className:"components-font-size-picker"},Object(c.createElement)(M,{as:"legend"},Object(S.__)("Font size")),Object(c.createElement)("div",{className:"components-font-size-picker__controls"},r.length>0&&Object(c.createElement)(Ac,{className:"components-font-size-picker__select",label:Object(S.__)("Font size"),options:f,value:f.find((function(e){return e.key===p})),onChange:function(e){var t=e.selectedItem,n=t.style&&t.style.fontSize;a(Number(n))}}),!l&&!i&&Object(c.createElement)("div",{className:"components-font-size-picker__number-container"},Object(c.createElement)("label",{htmlFor:b},Object(S.__)("Custom")),Object(c.createElement)("input",{id:b,className:"components-font-size-picker__number",type:"number",min:1,onChange:function(e){a(Number(e.target.value))},"aria-label":Object(S.__)("Custom"),value:s||""})),Object(c.createElement)(Wr.a,{className:"components-color-palette__clear",disabled:void 0===s,onClick:function(){a(void 0)},isSmall:!0,isSecondary:!0},Object(S.__)("Reset"))),l&&Object(c.createElement)(Qu,{className:"components-font-size-picker__custom-input",label:Object(S.__)("Custom Size"),value:s||"",initialPosition:t,onChange:function(e){a(e)},min:12,max:100,beforeIcon:ku.a,afterIcon:ku.a}))}var nl=function(e){var t=e.accept,n=e.children,r=e.multiple,i=void 0!==r&&r,s=e.onChange,u=e.render,l=Object(a.a)(e,["accept","children","multiple","onChange","render"]),d=Object(c.useRef)(),f=function(){d.current.click()},p=u?u({openFileDialog:f}):Object(c.createElement)(Wr.a,Object(o.a)({onClick:f},l),n);return Object(c.createElement)("div",{className:"components-form-file-upload"},p,Object(c.createElement)("input",{type:"file",ref:d,multiple:i,style:{display:"none"},accept:t,onChange:s}))};var rl=function(e){var t=e.className,n=e.checked,r=e.id,i=e.onChange,u=void 0===i?s.noop:i,d=Object(a.a)(e,["className","checked","id","onChange"]),f=l()("components-form-toggle",t,{"is-checked":n});return Object(c.createElement)("span",{className:f},Object(c.createElement)("input",Object(o.a)({className:"components-form-toggle__input",id:r,type:"checkbox",checked:n,onChange:u},d)),Object(c.createElement)("span",{className:"components-form-toggle__track"}),Object(c.createElement)("span",{className:"components-form-toggle__thumb"}))},ol=n(40),il=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 al(e){var t=e.value,n=e.status,r=e.title,o=e.displayTransform,i=e.isBorderless,a=void 0!==i&&i,u=e.disabled,d=void 0!==u&&u,f=e.onClickRemove,p=void 0===f?s.noop:f,b=e.onMouseEnter,h=e.onMouseLeave,v=e.messages,m=e.termPosition,y=e.termsCount,g=Object(E.useInstanceId)(al),O=l()("components-form-token-field__token",{"is-error":"error"===n,"is-success":"success"===n,"is-validating":"validating"===n,"is-borderless":a,"is-disabled":d}),j=o(t),w=Object(S.sprintf)(Object(S.__)("%1$s (%2$s of %3$s)"),j,m,y);return Object(c.createElement)("span",{className:O,onMouseEnter:b,onMouseLeave:h,title:r},Object(c.createElement)("span",{className:"components-form-token-field__token-text",id:"components-form-token-field__token-text-".concat(g)},Object(c.createElement)(M,{as:"span"},w),Object(c.createElement)("span",{"aria-hidden":"true"},j)),Object(c.createElement)(Wr.a,{className:"components-form-token-field__remove-token",icon:il,onClick:!d&&function(){return p({value:t})},label:v.remove,"aria-describedby":"components-form-token-field__token-text-".concat(g)}))}function cl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sl(e){for(var t=1;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(ol.a)(e)?e.value:e}},{key:"getMatchingSuggestions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.incompleteTokenValue,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props.suggestions,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.props.value,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.props.maxSuggestions,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.props.saveTransform,i=o(e),a=[],c=[];return 0===i.length?t=Object(s.difference)(t,n):(i=i.toLocaleLowerCase(),Object(s.each)(t,(function(e){var t=e.toLocaleLowerCase().indexOf(i);-1===n.indexOf(e)&&(0===t?a.push(e):t>0&&c.push(e))})),t=a.concat(c)),Object(s.take)(t,r)}},{key:"getSelectedSuggestion",value:function(){if(-1!==this.state.selectedSuggestionIndex)return this.getMatchingSuggestions()[this.state.selectedSuggestionIndex]}},{key:"valueContainsToken",value:function(e){var t=this;return Object(s.some)(this.props.value,(function(n){return t.getTokenValue(e)===t.getTokenValue(n)}))}},{key:"getIndexOfInput",value:function(){return this.props.value.length-this.state.inputOffsetFromEnd}},{key:"isInputEmpty",value:function(){return 0===this.state.incompleteTokenValue.length}},{key:"inputHasValidValue",value:function(){return this.props.saveTransform(this.state.incompleteTokenValue).length>0}},{key:"updateSuggestions",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.state.incompleteTokenValue,n=t.trim().length>1,r=this.getMatchingSuggestions(t),o=r.length>0,i={isExpanded:n&&o};if(e&&(i.selectedSuggestionIndex=-1,i.selectedSuggestionScroll=!1),this.setState(i),n){var a=this.props.debouncedSpeak,c=o?Object(S.sprintf)(Object(S._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",r.length),r.length):Object(S.__)("No results.");a(c,"assertive")}}},{key:"renderTokensAndInput",value:function(){var e=Object(s.map)(this.props.value,this.renderToken);return e.splice(this.getIndexOfInput(),0,this.renderInput()),e}},{key:"renderToken",value:function(e,t,n){var r=this.getTokenValue(e),o=e.status?e.status:void 0,i=t+1,a=n.length;return Object(c.createElement)(al,{key:"token-"+r,value:r,status:o,title:e.title,displayTransform:this.props.displayTransform,onClickRemove:this.onTokenClickRemove,isBorderless:e.isBorderless||this.props.isBorderless,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,disabled:"error"!==o&&this.props.disabled,messages:this.props.messages,termsCount:a,termPosition:i})}},{key:"renderInput",value:function(){var e=this.props,t=e.autoCapitalize,n=e.autoComplete,r=e.maxLength,o=e.value,i={instanceId:e.instanceId,autoCapitalize:t,autoComplete:n,ref:this.bindInput,key:"input",disabled:this.props.disabled,value:this.state.incompleteTokenValue,onBlur:this.onBlur,isExpanded:this.state.isExpanded,selectedSuggestionIndex:this.state.selectedSuggestionIndex};return r&&o.length>=r||(i=sl(sl({},i),{},{onChange:this.onInputChange})),Object(c.createElement)(Na,i)}},{key:"render",value:function(){var e=this.props,t=e.disabled,n=e.label,r=void 0===n?Object(S.__)("Add item"):n,o=e.instanceId,i=e.className,a=this.state.isExpanded,s=l()(i,"components-form-token-field__input-container",{"is-active":this.state.isActive,"is-disabled":t}),u={className:"components-form-token-field",tabIndex:"-1"},d=this.getMatchingSuggestions();return t||(u=Object.assign({},u,{onKeyDown:this.onKeyDown,onKeyPress:this.onKeyPress,onFocus:this.onFocus})),Object(c.createElement)("div",u,Object(c.createElement)("label",{htmlFor:"components-form-token-input-".concat(o),className:"components-form-token-field__label"},r),Object(c.createElement)("div",{ref:this.bindTokensAndInput,className:s,tabIndex:"-1",onMouseDown:this.onContainerTouched,onTouchStart:this.onContainerTouched},this.renderTokensAndInput(),a&&Object(c.createElement)(Ba,{instanceId:o,match:this.props.saveTransform(this.state.incompleteTokenValue),displayTransform:this.props.displayTransform,suggestions:d,selectedIndex:this.state.selectedSuggestionIndex,scrollIntoView:this.state.selectedSuggestionScroll,onHover:this.onSuggestionHovered,onSelect:this.onSuggestionSelected})),Object(c.createElement)("p",{id:"components-form-token-suggestions-howto-".concat(o),className:"components-form-token-field__help"},this.props.tokenizeOnSpace?Object(S.__)("Separate with commas, spaces, or the Enter key."):Object(S.__)("Separate with commas or the Enter key.")))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.disabled&&t.isActive?{isActive:!1,incompleteTokenValue:""}:null}}]),n}(c.Component);dl.defaultProps={suggestions:Object.freeze([]),maxSuggestions:100,value:Object.freeze([]),displayTransform:s.identity,saveTransform:function(e){return e.trim()},onChange:function(){},onInputChange:function(){},isBorderless:!1,disabled:!1,tokenizeOnSpace:!1,messages:{added:Object(S.__)("Item added."),removed:Object(S.__)("Item removed."),remove:Object(S.__)("Remove item")}};var fl=qr(Object(E.withInstanceId)(dl)),pl=n(208),bl=n(199),hl=n.n(bl),vl="linear-gradient(135deg, rgba(6, 147, 227, 1) 0%, rgb(155, 81, 224) 100%)",ml={className:"components-custom-gradient-picker__color-picker-popover",position:"top"},yl={type:"angular",value:90},gl=[{value:"linear-gradient",label:Object(S.__)("Linear")},{value:"radial-gradient",label:Object(S.__)("Radial")}];function Ol(e){var t=e.type,n=e.value;return"literal"===t?n:"hex"===t?"#".concat(n):"".concat(t,"(").concat(n.join(","),")")}function jl(e){var t=e.type,n=e.value;return"".concat(n).concat(t)}function wl(e){var t=e.type,n=e.value,r=e.length;return"".concat(Ol({type:t,value:n})," ").concat(jl(r))}function kl(e){var t=e.type,n=e.orientation,r=e.colorStops,o=function(e){if(e&&"angular"===e.type)return"".concat(e.value,"deg")}(n),i=r.sort((function(e,t){return Object(s.get)(e,["length","value"],0)-Object(s.get)(t,["length","value"],0)})).map(wl);return"".concat(t,"(").concat(Object(s.compact)([o].concat(Object(Vr.a)(i))).join(","),")")}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 Sl(e){for(var t=1;t=5&&(u.current.significantMoveHappened=!0)}Cl(i,n,a)||o(xl(i,a,n))},d=function e(){window&&window.removeEventListener&&u.current&&u.current.listenersActivated&&(window.removeEventListener("mousemove",l),window.removeEventListener("mouseup",e),s(),u.current.listenersActivated=!1)};return Object(c.useEffect)((function(){return function(){d()}}),[]),r.map((function(e,t){return e&&n!==e.positionValue&&Object(c.createElement)(Ma,{key:t,onClose:s,renderToggle:function(n){var r=n.isOpen,f=n.onToggle;return Object(c.createElement)(Ll,{key:t,onClick:function(){u.current&&u.current.significantMoveHappened||(r?s():a(),f())},onMouseDown:function(){window&&window.addEventListener&&(u.current={gradientAST:i,position:t,significantMoveHappened:!1,listenersActivated:!0},a(),window.addEventListener("mousemove",l),window.addEventListener("mouseup",d))},isOpen:r,position:e.position,color:e.color,onChange:o,gradientAST:i,gradientIndex:t})},renderContent:function(n){var r=n.onClose;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(Da,{color:e.color,onChangeComplete:function(e){var n=e.rgb;o(Dl(i,t,n))}}),Object(c.createElement)(Wr.a,{className:"components-custom-gradient-picker__remove-control-point",onClick:function(){o(function(e,t){return Sl(Sl({},e),{},{colorStops:e.colorStops.filter((function(e,n){return n!==t}))})}(i,t)),r()},isLink:!0},Object(S.__)("Remove Control Point")))},popoverProps:ml})}))}function zl(e){var t=e.onChange,n=e.gradientAST,r=e.onOpenInserter,o=e.onCloseInserter,a=e.insertPosition,u=Object(c.useState)(!1),l=Object(i.a)(u,2),d=l[0],f=l[1];return Object(c.createElement)(Ma,{className:"components-custom-gradient-picker__inserter",onClose:function(){o()},renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(c.createElement)(Wr.a,{"aria-expanded":t,"aria-haspopup":"true",onClick:function(){t?o():(f(!1),r()),n()},className:"components-custom-gradient-picker__insert-point",icon:pl.a,style:{left:null!==a?"".concat(a,"%"):void 0}})},renderContent:function(){return Object(c.createElement)(Da,{onChangeComplete:function(e){var r,o=e.rgb;d?r=function(e,t,n){return Dl(e,Object(s.findIndex)(e.colorStops,(function(e){return e&&e.length&&"%"===e.length.type&&e.length.value===t.toString()})),n)}(n,a,o):(r=function(e,t,n){var r=El(n);return r.length={type:"%",value:t},Sl(Sl({},e),{},{colorStops:[].concat(Object(Vr.a)(e.colorStops),[r])})}(n,a,o),f(!0)),t(r)}})},popoverProps:ml})}function Bl(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 Hl={id:"IDLE"};function Vl(e){var t=e.value,n=e.onChange,r=Rl(t),o=r.gradientAST,a=r.gradientValue,u=r.hasGradient,d=function(e){n(kl(e))},f=Object(c.useRef)(),p=function(e){return e?Object(s.map)(e.colorStops,(function(e){return e&&e.length&&"%"===e.length.type?{color:Ol(e),position:jl(e.length),positionValue:parseInt(e.length.value)}:null})):[]}(o),b=Object(c.useReducer)(Bl,Hl),h=Object(i.a)(b,2),v=h[0],m=h[1],y=function(e){var t=Ml(e.clientX,f.current,23);Object(s.some)(p,(function(e){var n=e.positionValue;return Math.abs(t-n)<10}))?"MOVING_INSERTER"===v.id&&m({type:"STOP_INSERTER_MOVE"}):m({type:"MOVE_INSERTER",insertPosition:t})},g="MOVING_INSERTER"===v.id,O="INSERTING_CONTROL_POINT"===v.id;return Object(c.createElement)("div",{ref:f,className:l()("components-custom-gradient-picker__gradient-bar",{"has-gradient":u}),onMouseEnter:y,onMouseMove:y,style:{background:"radial-gradient"===o.type?Tl(o):a},onMouseLeave:function(){m({type:"STOP_INSERTER_MOVE"})}},Object(c.createElement)("div",{className:"components-custom-gradient-picker__markers-container"},(g||O)&&Object(c.createElement)(zl,{insertPosition:v.insertPosition,onChange:d,gradientAST:o,onOpenInserter:function(){m({type:"OPEN_INSERTER"})},onCloseInserter:function(){m({type:"CLOSE_INSERTER"})}}),Object(c.createElement)(Fl,{gradientPickerDomRef:f,ignoreMarkerPosition:O?v.insertPosition:void 0,markerPoints:p,onChange:d,gradientAST:o,onStartControlPointChange:function(){m({type:"START_CONTROL_CHANGE"})},onStopControlPointChange:function(){m({type:"STOP_CONTROL_CHANGE"})}})))}var Kl=je(gt,{target:"e99xvul0",label:"SelectWrapper"})({name:"14kcwr6",styles:"width:110px;"});function Wl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ul(e){for(var t=1;t",{alternative:"the `pages` prop"})}),[t]),c.Children.count(t)&&(u=c.Children.map(t,(function(e){return{content:e}})));var h=p>0,v=p",{alternative:"the `pages` prop in "})}),[]),Object(c.createElement)("div",e)}var yd=Object(c.forwardRef)((function(e,t){var n=e.labelPosition,r=e.size,i=e.tooltip,s=e.label,u=Object(a.a)(e,["labelPosition","size","tooltip","label"]);return Cs()("wp.components.IconButton",{alternative:"wp.components.Button"}),Object(c.createElement)(Wr.a,Object(o.a)({},u,{ref:t,tooltipPosition:n,iconSize:r,showTooltip:void 0!==i?!!i:void 0,label:i||s}))}));var gd=function e(t){var n=t.children,r=t.className,o=void 0===r?"":r,i=t.label,a=Object(E.useInstanceId)(e);if(!c.Children.count(n))return null;var s="components-menu-group-label-".concat(a),u=l()(o,"components-menu-group");return Object(c.createElement)("div",{className:u},i&&Object(c.createElement)("div",{className:"components-menu-group__label",id:s,"aria-hidden":"true"},i),Object(c.createElement)("div",{role:"group","aria-labelledby":i?s:null},n))},Od=n(169);var jd=Object(c.forwardRef)((function(e,t){var n=e.children,r=e.info,i=e.className,u=e.icon,d=e.shortcut,f=e.isSelected,p=e.role,b=void 0===p?"menuitem":p,h=Object(a.a)(e,["children","info","className","icon","shortcut","isSelected","role"]);return i=l()("components-menu-item__button",i),r&&(n=Object(c.createElement)("span",{className:"components-menu-item__info-wrapper"},n,Object(c.createElement)("span",{className:"components-menu-item__info"},r))),u&&!Object(s.isString)(u)&&(u=Object(c.cloneElement)(u,{className:"components-menu-items__item-icon"})),Object(c.createElement)(Wr.a,Object(o.a)({ref:t,"aria-checked":"menuitemcheckbox"===b||"menuitemradio"===b?f:void 0,role:b,className:i},h),n,Object(c.createElement)(Od.a,{className:"components-menu-item__shortcut",shortcut:d}),u&&Object(c.createElement)(Xc.a,{icon:u}))}));function wd(e){var t=e.choices,n=void 0===t?[]:t,r=e.onHover,o=void 0===r?s.noop:r,i=e.onSelect,a=e.value;return n.map((function(e){var t=a===e.value;return Object(c.createElement)(jd,{key:e.value,role:"menuitemradio",icon:t&&ea.a,isSelected:t,shortcut:e.shortcut,className:"components-menu-items-choice",onClick:function(){t||i(e.value)},onMouseEnter:function(){return o(e.value)},onMouseLeave:function(){return o(null)}},e.label)}))}var kd=n(163);var _d=Object(c.forwardRef)((function(e,t){var n=e.eventToOffset,r=Object(a.a)(e,["eventToOffset"]);return Object(c.createElement)(Is,Object(o.a)({ref:t,stopNavigationEvents:!0,onlyBrowserTabstops:!0,eventToOffset:function(e){var t=e.keyCode,r=e.shiftKey;return rr.TAB===t?r?-1:1:n?n(e):void 0}},r))})),Sd=Object(c.createContext)({activeItem:void 0,activeMenu:"root",setActiveMenu:s.noop,navigationTree:{items:{},getItem:s.noop,addItem:s.noop,removeItem:s.noop,menus:{},getMenu:s.noop,addMenu:s.noop,removeMenu:s.noop}}),Ed=function(){return Object(c.useContext)(Sd)};var xd=je("div",{target:"ejwewyf0",label:"NavigationUI"})("width:100%;background-color:",xe.darkGray.primary,";color:#f0f0f0;padding:0 8px;overflow:hidden;"),Cd=je("div",{target:"ejwewyf1",label:"MenuUI"})({name:"1wlvkgj",styles:"margin-top:24px;margin-bottom:24px;display:flex;flex-direction:column;ul{padding:0;margin:0;list-style:none;}.components-navigation__back-button{margin-bottom:24px;}"}),Pd=je(Wr.a,{target:"ejwewyf2",label:"MenuBackButtonUI"})("&.is-tertiary{color:",xe.lightGray.ui,";&:hover:not(:disabled ){color:#ddd;box-shadow:none;}&:active:not(:disabled ){background:transparent;color:#ddd;}}"),Dd=je(Kt,{target:"ejwewyf3",label:"MenuTitleUI"})("padding:4px 0 4px 16px;margin-bottom:8px;color:",xe.gray[100],";"),Md=je(Kt,{target:"ejwewyf4",label:"GroupTitleUI"})("margin-top:8px;padding:4px 0 4px 16px;text-transform:uppercase;color:",xe.gray[100],";"),Td=je("li",{target:"ejwewyf5",label:"ItemUI"})("border-radius:2px;color:",xe.lightGray.ui,";button,a{margin:0;font-weight:400;font-size:14px;line-height:20px;padding-left:16px;padding-right:16px;width:100%;color:",xe.lightGray.ui,";&:hover,&:focus:not( [aria-disabled='true'] ):active,&:active:not( [aria-disabled='true'] ):active{color:#ddd;}}&.is-active{background-color:",Ne.theme,";color:",Ne.textDark,";button,a{color:",Ne.textDark,";}}svg path{color:",xe.lightGray.ui,";}"),Id=je("span",{target:"ejwewyf6",label:"ItemBadgeUI"})("margin-left:8px;display:inline-flex;padding:4px 12px;border-radius:2px;animation:fade-in 250ms ease-out;@keyframes fade-in{from{opacity:0;}to{opacity:1;}}",ze("animation"),";"),Rd=je(Kt,{target:"ejwewyf7",label:"ItemTitleUI"})({name:"zs804i",styles:"margin-right:auto;text-align:left;"});function Nd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ad(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"left";E.getMenu(e)&&(S(t),j(e),m(e))},C=Object(c.useRef)(!1);Object(c.useEffect)((function(){C.current||(C.current=!0)}),[]),Object(c.useEffect)((function(){p!==O&&x(p)}),[p]);var D={activeItem:d,activeMenu:O,setActiveMenu:x,navigationTree:E},M=l()("components-navigation",h);return Object(c.createElement)(xd,{className:M},Object(c.createElement)(ut.a,{key:O,type:"slide-in",options:{origin:_}},(function(e){var t=e.className;return Object(c.createElement)("div",{className:l()(Object(P.a)({},t,C.current&&_))},Object(c.createElement)(Sd.Provider,{value:D},b))})))}var zd=n(214);function Bd(e){var t,n=e.backButtonLabel,r=e.className,o=e.href,i=e.onClick,a=e.parentMenu,s=Ed(),u=s.setActiveMenu,d=s.navigationTree,f=l()("components-navigation__back-button",r),p=null===(t=d.getMenu(a))||void 0===t?void 0:t.title;return Object(c.createElement)(Pd,{className:f,isTertiary:!0,href:o,onClick:function(){return a?u(a,"right"):i}},Object(c.createElement)(Qi.a,{icon:zd.a}),n||p||Object(S.__)("Back"))}var Hd=Object(c.createContext)({menu:void 0,isActive:!1}),Vd=function(){return Object(c.useContext)(Hd)};function Kd(e){var t=e.children,n=e.className,r=e.title;if(!Vd().isActive)return t;var o=l()("components-navigation__group",n);return Object(c.createElement)("li",{className:o},r&&Object(c.createElement)(Md,{as:"h3",className:"components-navigation__group-title",variant:"caption"},r),Object(c.createElement)("ul",null,t))}var Wd=n(213);function Ud(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gd(e){for(var t=1;t=320,"is-medium":g>=160&&g<320,"is-small":g<160});var O=l()("components-placeholder",d,t),j=l()("components-placeholder__fieldset",{"is-column-layout":b});return Object(c.createElement)("div",Object(o.a)({},h,{className:O}),y,f,p&&Object(c.createElement)("div",{className:"components-placeholder__preview"},p),Object(c.createElement)("div",{className:"components-placeholder__label"},Object(c.createElement)(Xc.a,{icon:n}),s),!!u&&Object(c.createElement)("div",{className:"components-placeholder__instructions"},u),Object(c.createElement)("div",{className:j},r))};function uf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lf(e){for(var t=1;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(Vr.a)(e(t.children||[],n+1)))}))}(u))));return Object(c.createElement)(ts,Object(o.a)({label:t,options:d,onChange:r},{value:i},l))}function pf(e){var t=e.label,n=e.noOptionLabel,r=e.categoriesList,i=e.selectedCategoryId,s=e.onChange,u=Object(a.a)(e,["label","noOptionLabel","categoriesList","selectedCategoryId","onChange"]),l=df(r);return Object(c.createElement)(ff,Object(o.a)({label:t,noOptionLabel:n,onChange:s},{tree:l,selectedId:i},u))}function bf(e){var t=e.label,n=e.noOptionLabel,r=e.authorList,i=e.selectedAuthorId,a=e.onChange;if(!r)return null;var s=df(r);return Object(c.createElement)(ff,Object(o.a)({label:t,noOptionLabel:n,onChange:a},{tree:s,selectedId:i}))}function hf(e){var t=e.authorList,n=e.selectedAuthorId,r=e.categoriesList,o=e.selectedCategoryId,a=e.categorySuggestions,s=e.selectedCategories,u=e.numberOfItems,l=e.order,d=e.orderBy,f=e.maxItems,p=void 0===f?100:f,b=e.minItems,h=void 0===b?1:b,v=e.onCategoryChange,m=e.onAuthorChange,y=e.onNumberOfItemsChange,g=e.onOrderChange,O=e.onOrderByChange;return[g&&O&&Object(c.createElement)(ts,{key:"query-controls-order-select",label:Object(S.__)("Order by"),value:"".concat(d,"/").concat(l),options:[{label:Object(S.__)("Newest to oldest"),value:"date/desc"},{label:Object(S.__)("Oldest to newest"),value:"date/asc"},{label:Object(S.__)("A → Z"),value:"title/asc"},{label:Object(S.__)("Z → A"),value:"title/desc"}],onChange:function(e){var t=e.split("/"),n=Object(i.a)(t,2),r=n[0],o=n[1];o!==l&&g(o),r!==d&&O(r)}}),r&&v&&Object(c.createElement)(pf,{key:"query-controls-category-select",categoriesList:r,label:Object(S.__)("Category"),noOptionLabel:Object(S.__)("All"),selectedCategoryId:o,onChange:v}),a&&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(a),onChange:v,maxSuggestions:20}),m&&Object(c.createElement)(bf,{key:"query-controls-author-select",authorList:t,label:Object(S.__)("Author"),noOptionLabel:Object(S.__)("All"),selectedAuthorId:n,onChange:m}),y&&Object(c.createElement)(Qu,{key:"query-controls-range-control",label:Object(S.__)("Number of items"),value:u,onChange:y,min:h,max:p,required:!0})]}n(81);var vf=n(46),mf=n(125),yf=(n(108),n(62));function gf(e){void 0===e&&(e={});var t=Object(yf.a)(e),n=t.state,r=t.loop,o=void 0===r||r,i=Object(p.a)(t,["state","loop"]),a=Object(v.useState)(n),c=a[0],s=a[1],u=Object(d.g)(Object(p.b)(Object(p.b)({},i),{},{loop:o}));return Object(p.b)(Object(p.b)({},u),{},{state:c,setState:s})}var Of=[].concat(d.g.__keys,["state","setState"]);function jf(e){return void 0!==e.checked?e.checked:void 0!==e.value&&e.state===e.value}function wf(e,t){var n=Object(mf.a)(e,"change");Object.defineProperties(n,{type:{value:"change"},target:{value:e},currentTarget:{value:e}}),null==t||t(n)}gf.__keys=Of;var kf=Object(h.a)({name:"Radio",compose:x.b,useState:gf,keys:["value","checked","unstable_checkOnFocus"],useOptions:function(e,t){var n,r=t.value,o=t.checked,i=e.unstable_clickOnEnter,a=void 0!==i&&i,c=e.unstable_checkOnFocus,s=void 0===c||c,u=Object(p.a)(e,["unstable_clickOnEnter","unstable_checkOnFocus"]);return Object(p.b)(Object(p.b)({checked:o,unstable_clickOnEnter:a,unstable_checkOnFocus:s},u),{},{value:null!=(n=u.value)?n:r})},useProps:function(e,t){var n=t.ref,r=t.onChange,o=t.onClick,i=Object(p.a)(t,["ref","onChange","onClick"]),a=Object(v.useRef)(null),c=Object(v.useState)(!0),s=c[0],u=c[1],l=jf(e),d=Object(vf.a)(e.currentId===e.id),f=Object(vf.a)(r),b=Object(vf.a)(o);!function(e){var t=Object(v.useState)((function(){return jf(e)}))[0],n=Object(v.useState)(e.currentId)[0],r=e.id,o=e.setCurrentId;Object(v.useEffect)((function(){t&&r&&n!==r&&(null==o||o(r))}),[t,r,o,n])}(e),Object(v.useEffect)((function(){var e=a.current;e&&("INPUT"===e.tagName&&"radio"===e.type||u(!1))}),[]);var h=Object(v.useCallback)((function(t){var n,r;null===(n=f.current)||void 0===n||n.call(f,t),t.defaultPrevented||e.disabled||null===(r=e.setState)||void 0===r||r.call(e,e.value)}),[e.disabled,e.setState,e.value]),m=Object(v.useCallback)((function(e){var t;null===(t=b.current)||void 0===t||t.call(b,e),e.defaultPrevented||wf(e.currentTarget,h)}),[h]);return Object(v.useEffect)((function(){var t=a.current;t&&e.unstable_moves&&d.current&&e.unstable_checkOnFocus&&wf(t,h)}),[e.unstable_moves,e.unstable_checkOnFocus,h]),Object(p.b)({ref:Object(y.a)(a,n),role:s?void 0:"radio",type:s?"radio":void 0,value:s?e.value:void 0,"aria-checked":l,checked:l,onChange:h,onClick:m},i)}}),_f=Object(b.a)({as:"input",memo:!0,useHook:kf}),Sf=Object(c.createContext)({state:null,setState:function(){}});var Ef=Object(c.forwardRef)((function(e,t){var n=e.children,r=e.value,i=Object(a.a)(e,["children","value"]),s=Object(c.useContext)(Sf),u=s.state===r;return Object(c.createElement)(_f,Object(o.a)({ref:t,as:Wr.a,isPrimary:u,isSecondary:!u,value:r},s,i),n||r)})),xf=n(79),Cf=Object(h.a)({name:"RadioGroup",compose:f.b,useState:gf,useProps:function(e,t){return Object(p.b)({role:"radiogroup"},t)}}),Pf=Object(b.a)({as:"div",useHook:Cf,useCreateElement:function(e,t,n){return Object(xf.a)(e,t,n)}});function Df(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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 Mf(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})})))),i=this.iframe.current.contentWindow.document;i.open(),i.write(""+Object(c.renderToString)(o)),i.close()}}}},{key:"render",value:function(){var e=this.props,t=e.title,n=e.onFocus;return Object(c.createElement)(wu,{iframeRef:this.iframe,title:t,className:"components-sandbox",sandbox:"allow-scripts allow-same-origin allow-presentation",onFocus:n,width:Math.ceil(this.state.width),height:Math.ceil(this.state.height)})}}],[{key:"defaultProps",get:function(){return{html:"",title:""}}}]),n}(c.Component),jp=Op=Object(E.withGlobalEvents)({message:"checkMessageForResize"})(Op),wp=n(164),kp=n(24),_p=n.n(kp),Sp=n(47),Ep=n(116);var xp=function(e){var t=e.notices,n=e.className,r=e.children,a=e.onRemove,u=void 0===a?s.noop:a,d=Object(E.useReducedMotion)(),f=Object(c.useState)((function(){return new WeakMap})),p=Object(i.a)(f,1)[0],b=Object(Ep.useTransition)(t,(function(e){return e.id}),{from:{opacity:0,height:0},enter:function(e){return function(){var t=Object(Sp.a)(_p.a.mark((function t(n){return _p.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n({opacity:1,height:p.get(e).offsetHeight});case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},leave:function(){return function(){var e=Object(Sp.a)(_p.a.mark((function e(t){return _p.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t({opacity:0});case 2:return e.next=4,t({height:0});case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},immediate:d});n=l()("components-snackbar-list",n);var h=function(e){return function(){return u(e.id)}};return Object(c.createElement)("div",{className:n},r,b.map((function(e){var t=e.item,n=e.key,r=e.props;return Object(c.createElement)(Ep.animated.div,{key:n,style:r},Object(c.createElement)("div",{className:"components-snackbar-list__notice-container",ref:function(e){return e&&p.set(t,e)}},Object(c.createElement)(wp.a,Object(o.a)({},Object(s.omit)(t,["content"]),{onRemove:h(t)}),t.content)))})))};function Cp(){return Object(c.createElement)("span",{className:"components-spinner"})}var Pp=function(e){var t=e.tabId,n=e.onClick,r=e.children,i=e.selected,s=Object(a.a)(e,["tabId","onClick","children","selected"]);return Object(c.createElement)(Wr.a,Object(o.a)({role:"tab",tabIndex:i?null:-1,"aria-selected":i,id:t,onClick:n},s),r)};function Dp(e){var t,n=e.className,r=e.children,o=e.tabs,a=e.initialTabName,u=e.orientation,d=void 0===u?"horizontal":u,f=e.activeClass,p=void 0===f?"is-active":f,b=e.onSelect,h=void 0===b?s.noop:b,v=Object(E.useInstanceId)(Dp,"tab-panel"),m=Object(c.useState)(null),y=Object(i.a)(m,2),g=y[0],O=y[1],j=function(e){O(e),h(e)},w=Object(s.find)(o,{name:g}),k="".concat(v,"-").concat(null!==(t=null==w?void 0:w.name)&&void 0!==t?t:"none");return Object(c.useEffect)((function(){Object(s.find)(o,{name:g})||O(a||(o.length>0?o[0].name:null))}),[o]),Object(c.createElement)("div",{className:n},Object(c.createElement)(Rs,{role:"tablist",orientation:d,onNavigate:function(e,t){t.click()},className:"components-tab-panel__tabs"},o.map((function(e){return Object(c.createElement)(Pp,{className:l()("components-tab-panel__tabs-item",e.className,Object(P.a)({},p,e.name===g)),tabId:"".concat(v,"-").concat(e.name),"aria-controls":"".concat(v,"-").concat(e.name,"-view"),selected:e.name===g,key:e.name,onClick:Object(s.partial)(j,e.name)},e.title)}))),w&&Object(c.createElement)("div",{"aria-labelledby":k,role:"tabpanel",id:"".concat(k,"-view"),className:"components-tab-panel__tab-content"},r(w)))}function Mp(e){var t=e.label,n=e.hideLabelFromVision,r=e.value,i=e.help,s=e.onChange,u=e.rows,l=void 0===u?4:u,d=e.className,f=Object(a.a)(e,["label","hideLabelFromVision","value","help","onChange","rows","className"]),p=Object(E.useInstanceId)(Mp),b="inspector-textarea-control-".concat(p);return Object(c.createElement)(dt,{label:t,hideLabelFromVision:n,id:b,help:i,className:d},Object(c.createElement)("textarea",Object(o.a)({className:"components-textarea-control__input",id:b,rows:l,onChange:function(e){return s(e.target.value)},"aria-describedby":i?b+"__help":void 0,value:r},f)))}var Tp=function(e){var t=e.text,n=void 0===t?"":t,r=e.highlight,o=(void 0===r?"":r).trim();if(!o)return n;var i=new RegExp("(".concat(Object(s.escapeRegExp)(o),")"),"gi");return Object(c.createInterpolateElement)(n.replace(i,"$&"),{mark:Object(c.createElement)("mark",null)})};var Ip=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 Rp(e){var t=e.label,n=e.checked,r=e.help,o=e.className,i=e.onChange;var a,u,d=Object(E.useInstanceId)(Rp),f="inspector-toggle-control-".concat(d);return r&&(a=f+"__help",u=Object(s.isFunction)(r)?r(n):r),Object(c.createElement)(dt,{id:f,help:u,className:l()("components-toggle-control",o)},Object(c.createElement)(rl,{id:f,checked:n,onChange:function(e){i(e.target.checked)},"aria-describedby":a}),Object(c.createElement)("label",{htmlFor:f,className:"components-toggle-control__label"},t))}var Np=n(137),Ap=n(91),Lp=function(e){return Object(c.createElement)("div",{className:e.className},e.children)};var Fp=Object(c.forwardRef)((function(e,t){var n=e.containerClassName,r=e.className,i=e.extraProps,s=e.children,u=e.title,d=e.isActive,f=e.isDisabled,p=Object(a.a)(e,["containerClassName","className","extraProps","children","title","isActive","isDisabled"]);return Object(c.useContext)(Ap.a)?Object(c.createElement)(Np.a,Object(o.a)({className:l()("components-toolbar-button",r)},i,p,{ref:t}),(function(e){return Object(c.createElement)(Wr.a,Object(o.a)({label:u,isPressed:d,disabled:f},e),s)})):Object(c.createElement)(Lp,{className:n},Object(c.createElement)(Wr.a,Object(o.a)({ref:t,icon:p.icon,label:u,shortcut:p.shortcut,"data-subscript":p.subscript,onClick:function(e){e.stopPropagation(),p.onClick&&p.onClick(e)},className:l()("components-toolbar__control",r),isPressed:d,disabled:f,"data-toolbar-item":!0},i,p),s))})),zp=function(e){var t=e.className,n=e.children,r=Object(a.a)(e,["className","children"]);return Object(c.createElement)("div",Object(o.a)({className:t},r),n)};function Bp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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 Hp(e){for(var t=1;t0&&0===n?"has-left-divider":null},e))}))})),r)},Wp=n(170),Up=Object(h.a)({name:"Toolbar",compose:f.b,useState:Wp.a,useProps:function(e,t){return Object(p.b)({role:"toolbar","aria-orientation":e.orientation},t)}}),Gp=Object(b.a)({as:"div",useHook:Up,useCreateElement:function(e,t,n){return Object(xf.a)(e,t,n)}});var $p=Object(c.forwardRef)((function(e,t){var n=e.label,r=Object(a.a)(e,["label"]),i=Object(Wp.a)({loop:!0,baseId:r.id,rtl:Je()});return Object(c.createElement)(Ap.a.Provider,{value:i},Object(c.createElement)(Gp,Object(o.a)({ref:t,"aria-label":n},i,r)))}));var qp=Object(c.forwardRef)((function(e,t){var n=e.className,r=e.label,i=Object(a.a)(e,["className","label"]);if(!r)return Cs()("Using Toolbar without label prop",{alternative:"ToolbarGroup component",link:"https://developer.wordpress.org/block-editor/components/toolbar/"}),Object(c.createElement)(Kp,Object(o.a)({},i,{className:n}));var s=l()("components-accessible-toolbar",n);return Object(c.createElement)($p,Object(o.a)({className:s,label:r,ref:t},i))})),Yp=Object(c.createContext)(),Zp=Yp.Provider;function Xp(e){var t=e.children,n=Object(c.useState)(),r=Object(i.a)(n,2),o=r[0],a=r[1],s=Object(c.useMemo)((function(){return{lastFocusedElement:o,setLastFocusedElement:a}}),[o]);return Object(c.createElement)(Zp,{value:s},t)}function Jp(e){var t=os.focus.focusable.find(e);if(t&&t.length)return t.filter((function(t){return t.closest('[role="row"]')===e}))}var Qp=Object(c.forwardRef)((function(e,t){var n=e.children,r=Object(a.a)(e,["children"]),i=Object(c.useCallback)((function(e){var t=e.keyCode,n=e.metaKey,r=e.ctrlKey,o=e.altKey,i=e.shiftKey;if(!(n||r||o||i)&&Object(s.includes)([rr.UP,rr.DOWN,rr.LEFT,rr.RIGHT],t)){e.stopPropagation();var a=document.activeElement,c=e.currentTarget;if(c.contains(a)){var u=a.closest('[role="row"]'),l=Jp(u),d=l.indexOf(a);if(Object(s.includes)([rr.LEFT,rr.RIGHT],t)){var f;if((f=t===rr.LEFT?Math.max(0,d-1):Math.min(d+1,l.length-1))===d)return void e.preventDefault();l[f].focus(),e.preventDefault()}else if(Object(s.includes)([rr.UP,rr.DOWN],t)){var p,b=Array.from(c.querySelectorAll('[role="row"]')),h=b.indexOf(u);if((p=t===rr.UP?Math.max(0,h-1):Math.min(h+1,b.length-1))===h)return void e.preventDefault();var v=Jp(b[p]);if(!v||!v.length)return void e.preventDefault();v[Math.min(d,v.length-1)].focus(),e.preventDefault()}}}}),[]);return Object(c.createElement)(Xp,null,Object(c.createElement)("table",Object(o.a)({},r,{role:"treegrid",onKeyDown:i,ref:t}),Object(c.createElement)("tbody",null,n)))}));var eb=Object(c.forwardRef)((function(e,t){var n=e.children,r=e.level,i=e.positionInSet,s=e.setSize,u=e.isExpanded,l=Object(a.a)(e,["children","level","positionInSet","setSize","isExpanded"]);return Object(c.createElement)("tr",Object(o.a)({},l,{ref:t,role:"row","aria-level":r,"aria-posinset":i,"aria-setsize":s,"aria-expanded":u}),n)}));function 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}var nb=Object(c.forwardRef)((function(e,t){var n,r=e.children,o=e.as,i=Object(a.a)(e,["children","as"]),s=Object(c.useRef)(),u=t||s,l=Object(c.useContext)(Yp),d=l.lastFocusedElement,f=l.setLastFocusedElement;d&&(n=d===u.current?0:-1);var p=function(e){for(var t=1;t0&&Object(c.createElement)(Jd,{className:"components-with-notices-ui",notices:this.state.noticeList,onRemove:this.removeNotice})},this.props))}}]),r}(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,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&c.return&&c.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n0&&this.setState({visibleDays:(0,i.default)({},k,M)})}},{key:"componentWillUpdate",value:function(){this.today=(0,l.default)()}},{key:"onDayClick",value:function(e,t){if(t&&t.preventDefault(),!this.isBlocked(e)){var n=this.props,r=n.onDateChange,o=n.keepOpenOnDateSelect,i=n.onFocusChange,a=n.onClose;r(e),o||(i({focused:!1}),a({date:e}))}}},{key:"onDayMouseEnter",value:function(e){if(!this.isTouchDevice){var t=this.state,n=t.hoverDate,r=t.visibleDays,o=this.deleteModifier({},n,"hovered");o=this.addModifier(o,e,"hovered"),this.setState({hoverDate:e,visibleDays:(0,i.default)({},r,o)})}}},{key:"onDayMouseLeave",value:function(){var e=this.state,t=e.hoverDate,n=e.visibleDays;if(!this.isTouchDevice&&t){var r=this.deleteModifier({},t,"hovered");this.setState({hoverDate:null,visibleDays:(0,i.default)({},n,r)})}}},{key:"onPrevMonthClick",value:function(){var e=this.props,t=e.onPrevMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,a=o.currentMonth,c=o.visibleDays,s={};Object.keys(c).sort().slice(0,n+1).forEach((function(e){s[e]=c[e]}));var u=a.clone().subtract(1,"month"),l=(0,m.default)(u,1,r);this.setState({currentMonth:u,visibleDays:(0,i.default)({},s,this.getModifiers(l))},(function(){t(u.clone())}))}},{key:"onNextMonthClick",value:function(){var e=this.props,t=e.onNextMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,a=o.currentMonth,c=o.visibleDays,s={};Object.keys(c).sort().slice(1).forEach((function(e){s[e]=c[e]}));var u=a.clone().add(n,"month"),l=(0,m.default)(u,1,r),d=a.clone().add(1,"month");this.setState({currentMonth:d,visibleDays:(0,i.default)({},s,this.getModifiers(l))},(function(){t(d.clone())}))}},{key:"onMonthChange",value:function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===_.VERTICAL_SCROLLABLE,i=(0,m.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(i)})}},{key:"onYearChange",value:function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===_.VERTICAL_SCROLLABLE,i=(0,m.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(i)})}},{key:"getFirstFocusableDay",value:function(e){var t=this,n=this.props,o=n.date,i=n.numberOfMonths,a=e.clone().startOf("month");if(o&&(a=o.clone()),this.isBlocked(a)){for(var c=[],s=e.clone().add(i-1,"months").endOf("month"),u=a.clone();!(0,v.default)(u,s);)u=u.clone().add(1,"day"),c.push(u);var l=c.filter((function(e){return!t.isBlocked(e)&&(0,v.default)(e,a)}));if(l.length>0){var d=r(l,1);a=d[0]}}return a}},{key:"getModifiers",value:function(e){var t=this,n={};return Object.keys(e).forEach((function(r){n[r]={},e[r].forEach((function(e){n[r][(0,g.default)(e)]=t.getModifiersForDay(e)}))})),n}},{key:"getModifiersForDay",value:function(e){var t=this;return new Set(Object.keys(this.modifiers).filter((function(n){return t.modifiers[n](e)})))}},{key:"getStateForNewMonth",value:function(e){var t=this,n=e.initialVisibleMonth,r=e.date,o=e.numberOfMonths,i=e.enableOutsideDays,a=(n||(r?function(){return r}:function(){return t.today}))();return{currentMonth:a,visibleDays:this.getModifiers((0,m.default)(a,o,i))}}},{key:"addModifier",value:function(e,t,n){var r=this.props,o=r.numberOfMonths,a=r.enableOutsideDays,c=r.orientation,s=this.state,u=s.currentMonth,l=s.visibleDays,d=u,f=o;if(c===_.VERTICAL_SCROLLABLE?f=Object.keys(l).length:(d=d.clone().subtract(1,"month"),f+=2),!t||!(0,y.default)(t,d,f,a))return e;var p=(0,g.default)(t),b=(0,i.default)({},e);if(a)b=Object.keys(l).filter((function(e){return Object.keys(l[e]).indexOf(p)>-1})).reduce((function(t,r){var o=e[r]||l[r],a=new Set(o[p]);return a.add(n),(0,i.default)({},t,x({},r,(0,i.default)({},o,x({},p,a))))}),b);else{var h=(0,O.default)(t),v=e[h]||l[h],m=new Set(v[p]);m.add(n),b=(0,i.default)({},b,x({},h,(0,i.default)({},v,x({},p,m))))}return b}},{key:"deleteModifier",value:function(e,t,n){var r=this.props,o=r.numberOfMonths,a=r.enableOutsideDays,c=r.orientation,s=this.state,u=s.currentMonth,l=s.visibleDays,d=u,f=o;if(c===_.VERTICAL_SCROLLABLE?f=Object.keys(l).length:(d=d.clone().subtract(1,"month"),f+=2),!t||!(0,y.default)(t,d,f,a))return e;var p=(0,g.default)(t),b=(0,i.default)({},e);if(a)b=Object.keys(l).filter((function(e){return Object.keys(l[e]).indexOf(p)>-1})).reduce((function(t,r){var o=e[r]||l[r],a=new Set(o[p]);return a.delete(n),(0,i.default)({},t,x({},r,(0,i.default)({},o,x({},p,a))))}),b);else{var h=(0,O.default)(t),v=e[h]||l[h],m=new Set(v[p]);m.delete(n),b=(0,i.default)({},b,x({},h,(0,i.default)({},v,x({},p,m))))}return b}},{key:"isBlocked",value:function(e){var t=this.props,n=t.isDayBlocked,r=t.isOutsideRange;return n(e)||r(e)}},{key:"isHovered",value:function(e){var t=(this.state||{}).hoverDate;return(0,h.default)(e,t)}},{key:"isSelected",value:function(e){var t=this.props.date;return(0,h.default)(e,t)}},{key:"isToday",value:function(e){return(0,h.default)(e,this.today)}},{key:"isFirstDayOfWeek",value:function(e){var t=this.props.firstDayOfWeek;return e.day()===(t||l.default.localeData().firstDayOfWeek())}},{key:"isLastDayOfWeek",value:function(e){var t=this.props.firstDayOfWeek;return e.day()===((t||l.default.localeData().firstDayOfWeek())+6)%7}},{key:"render",value:function(){var e=this.props,t=e.numberOfMonths,n=e.orientation,r=e.monthFormat,o=e.renderMonthText,i=e.navPrev,c=e.navNext,s=e.onOutsideClick,u=e.withPortal,l=e.focused,d=e.enableOutsideDays,f=e.hideKeyboardShortcutsPanel,p=e.daySize,b=e.firstDayOfWeek,h=e.renderCalendarDay,v=e.renderDayContents,m=e.renderCalendarInfo,y=e.renderMonthElement,g=e.calendarInfoPosition,O=e.isFocused,j=e.isRTL,w=e.phrases,k=e.dayAriaLabelFormat,_=e.onBlur,E=e.showKeyboardShortcuts,x=e.weekDayFormat,C=e.verticalHeight,P=e.noBorder,D=e.transitionDuration,M=e.verticalBorderSpacing,T=e.horizontalMonthPadding,I=this.state,R=I.currentMonth,N=I.visibleDays;return a.default.createElement(S.default,{orientation:n,enableOutsideDays:d,modifiers:N,numberOfMonths:t,onDayClick:this.onDayClick,onDayMouseEnter:this.onDayMouseEnter,onDayMouseLeave:this.onDayMouseLeave,onPrevMonthClick:this.onPrevMonthClick,onNextMonthClick:this.onNextMonthClick,onMonthChange:this.onMonthChange,onYearChange:this.onYearChange,monthFormat:r,withPortal:u,hidden:!l,hideKeyboardShortcutsPanel:f,initialVisibleMonth:function(){return R},firstDayOfWeek:b,onOutsideClick:s,navPrev:i,navNext:c,renderMonthText:o,renderCalendarDay:h,renderDayContents:v,renderCalendarInfo:m,renderMonthElement:y,calendarInfoPosition:g,isFocused:O,getFirstFocusableDay:this.getFirstFocusableDay,onBlur:_,phrases:w,daySize:p,isRTL:j,showKeyboardShortcuts:E,weekDayFormat:x,dayAriaLabelFormat:k,verticalHeight:C,noBorder:P,transitionDuration:D,verticalBorderSpacing:M,horizontalMonthPadding:T})}}]),t}(a.default.Component);t.default=D,D.propTypes=C,D.defaultProps=P},,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"}));t.a=i},function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));t.a=i},,,,,,function(e,t,n){"use strict"; +*/!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t=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){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(27);var o=n(37),i=n(30);function a(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(o.a)(e)||Object(i.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t){!function(){e.exports=this.wp.keycodes}()},function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return r}))},function(e,t){!function(){e.exports=this.regeneratorRuntime}()},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},function(e,t){!function(){e.exports=this.moment}()},function(e,t,n){"use strict";function r(e,t,n,r,o,i,a){try{var c=e[i](a),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var a=e.apply(t,n);function c(e){r(a,o,i,c,s,"next",e)}function s(e){r(a,o,i,c,s,"throw",e)}c(void 0)}))}}n.d(t,"a",(function(){return o}))},function(e,t){!function(){e.exports=this.wp.a11y}()},,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(13),o=n(59);function i(e){var t=Object(r.useRef)(e);return Object(o.a)((function(){t.current=e})),t}},function(e,t,n){"use strict";function r(e){return e?e.ownerDocument||e:window.document}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(13),o=n(76);function i(e,t){Object(r.useDebugValue)(e);var n=Object(r.useContext)(o.a);return null!=n[e]?n[e]:t}var a=n(55);var c=n(56);function s(e){var t,n,o,s=(o=e.compose,Array.isArray(o)?o:void 0!==o?[o]:[]),u=function(t,n){if(e.useOptions&&(t=e.useOptions(t,n)),e.name&&(t=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var o="use"+e+"Options";Object(r.useDebugValue)(o);var c=i(o);return c?Object(a.a)(Object(a.a)({},t),c(t,n)):t}(e.name,t,n)),e.compose)for(var o,c=Object(a.c)(s);!(o=c()).done;){t=o.value.__useOptions(t,n)}return t},l=function(t,n,o){if(void 0===t&&(t={}),void 0===n&&(n={}),void 0===o&&(o=!1),o||(t=u(t,n)),e.useProps&&(n=e.useProps(t,n)),e.name&&(n=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var o="use"+e+"Props";Object(r.useDebugValue)(o);var a=i(o);return a?a(t,n):n}(e.name,t,n)),e.compose)if(e.useComposeOptions&&(t=e.useComposeOptions(t,n)),e.useComposeProps)n=e.useComposeProps(t,n);else for(var c,l=Object(a.c)(s);!(c=l()).done;){n=(0,c.value)(t,n,!0)}var d={},f=n||{};for(var p in f)void 0!==f[p]&&(d[p]=f[p]);return d};l.__useOptions=u;var d=s.reduce((function(e,t){return e.push.apply(e,t.__keys||[]),e}),[]);return l.__keys=[].concat(d,(null===(t=e.useState)||void 0===t?void 0:t.__keys)||[],e.keys||[]),l.unstable_propsAreEqual=e.propsAreEqual||(null===(n=s[0])||void 0===n?void 0:n.unstable_propsAreEqual)||c.a,l}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(13),o=n(55),i=n(79);function a(e,t){for(var n={},r={},o=0,i=Object.keys(e);o=0?n[a]=e[a]:r[a]=e[a]}return[n,r]}var c=n(56);function s(e){var t,n=e.as,s=e.useHook,u=e.memo,l=e.propsAreEqual,d=void 0===l?null==s?void 0:s.unstable_propsAreEqual:l,f=e.keys,p=void 0===f?(null==s?void 0:s.__keys)||[]:f,b=e.useCreateElement,h=void 0===b?i.a:b,v=function(e,t){var r=e.as,i=void 0===r?n:r,c=Object(o.b)(e,["as"]);if(s){var u,l=a(c,p),d=l[0],f=l[1],b=s(d,Object(o.a)({ref:t},f)),v=b.wrapElement,m=Object(o.b)(b,["wrapElement"]),y=(null===(u=i.render)||void 0===u?void 0:u.__keys)||i.__keys,g=y&&a(c,y)[0],O=g?Object(o.a)(Object(o.a)({},m),g):m,j=h(i,O);return v?v(j):j}return h(i,Object(o.a)({ref:t},c))};return t=v,v=Object(r.forwardRef)(t),u&&(v=function(e,t){return Object(r.memo)(e,t)}(v,d)),v.__keys=p,v.unstable_propsAreEqual=d||c.a,v}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return m})),n.d(t,"c",(function(){return b})),n.d(t,"d",(function(){return p})),n.d(t,"e",(function(){return g})),n.d(t,"f",(function(){return u})),n.d(t,"g",(function(){return x}));var r=n(15),o=n(13),i=n(59),a=n(62),c=n(61),s=n(65);function u(e){return e.slice().reverse()}function l(e,t){return Boolean(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function d(e,t){return e.findIndex((function(e){return!(!e.ref.current||!t.ref.current)&&l(t.ref.current,e.ref.current)}))}function f(e,t){return t?e.find((function(e){return!e.disabled&&e.id!==t})):e.find((function(e){return!e.disabled}))}function p(e,t){if(t)return null==e?void 0:e.find((function(e){return e.id===t&&!e.disabled}))}function b(e){for(var t,n=[[]],o=function(){var e=t.value,r=n.find((function(t){return!t[0]||t[0].groupId===e.groupId}));r?r.push(e):n.push([e])},i=Object(r.c)(e);!(t=i()).done;)o();return n}function h(e){for(var t,n=0,o=Object(r.c)(e);!(t=o()).done;){var i=t.value.length;i>n&&(n=i)}return n}function v(e){for(var t=b(e),n=h(t),o=[],i=0;i=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";function r(e,t){if(e===t)return!0;if(!e)return!1;if(!t)return!1;if("object"!=typeof e)return!1;if("object"!=typeof t)return!1;var n=Object.keys(e),r=Object.keys(t),o=n.length;if(r.length!==o)return!1;for(var i=0,a=n;i1&&"boolean"!=typeof t)throw new TypeError('"allowMissing" argument must be a boolean');for(var n=h(e),i=v("%"+(n.length>0?n[0]:"")+"%",t),a=1;a=n.length){var c=o(i,n[a]);if(!t&&!(n[a]in i))throw new r("base intrinsic for "+e+" exists, but the property is not available.");i=c&&"get"in c&&!("originalValue"in c.get)?c.get:i[n[a]]}else i=i[n[a]];return i}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(13),o="undefined"==typeof window?r.useEffect:r.useLayoutEffect},,function(e,t,n){"use strict";function r(e,t){return function(e){return"function"==typeof e}(e)?e(t):e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(13);function o(e){return Object(r.useState)(e)[0]}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(13);function o(e,t){void 0===t&&(t=null),e&&("function"==typeof e?e(t):e.current=t)}function i(e,t){return Object(r.useMemo)((function(){return null==e&&null==t?null:function(n){o(e,n),o(t,n)}}),[e,t])}},function(e,t){!function(){e.exports=this.wp.isShallowEqual}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(13),o=n(62),i=n(68);function a(e){void 0===e&&(e={});var t=Object(o.a)(e).baseId,n=Object(r.useContext)(i.a),a=Object(r.useRef)(0),c=Object(r.useState)((function(){return t||n()}));return{baseId:c[0],unstable_setBaseId:c[1],unstable_idCountRef:a}}a.__keys=["baseId","unstable_setBaseId","unstable_idCountRef"]},function(e,t,n){var r;!function(o){var i=/^\s+/,a=/\s+$/,c=0,s=o.round,u=o.min,l=o.max,d=o.random;function f(e,t){if(t=t||{},(e=e||"")instanceof f)return e;if(!(this instanceof f))return new f(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,r=null,c=null,s=null,d=!1,f=!1;"string"==typeof e&&(e=function(e){e=e.replace(i,"").replace(a,"").toLowerCase();var t,n=!1;if(D[e])e=D[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=K.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=K.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=K.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=K.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=K.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=K.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=K.hex8.exec(e))return{r:N(t[1]),g:N(t[2]),b:N(t[3]),a:z(t[4]),format:n?"name":"hex8"};if(t=K.hex6.exec(e))return{r:N(t[1]),g:N(t[2]),b:N(t[3]),format:n?"name":"hex"};if(t=K.hex4.exec(e))return{r:N(t[1]+""+t[1]),g:N(t[2]+""+t[2]),b:N(t[3]+""+t[3]),a:z(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=K.hex3.exec(e))return{r:N(t[1]+""+t[1]),g:N(t[2]+""+t[2]),b:N(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==typeof e&&(W(e.r)&&W(e.g)&&W(e.b)?(p=e.r,b=e.g,h=e.b,t={r:255*I(p,255),g:255*I(b,255),b:255*I(h,255)},d=!0,f="%"===String(e.r).substr(-1)?"prgb":"rgb"):W(e.h)&&W(e.s)&&W(e.v)?(r=L(e.s),c=L(e.v),t=function(e,t,n){e=6*I(e,360),t=I(t,100),n=I(n,100);var r=o.floor(e),i=e-r,a=n*(1-t),c=n*(1-i*t),s=n*(1-(1-i)*t),u=r%6;return{r:255*[n,c,a,a,s,n][u],g:255*[s,n,n,c,a,a][u],b:255*[a,a,s,n,n,c][u]}}(e.h,r,c),d=!0,f="hsv"):W(e.h)&&W(e.s)&&W(e.l)&&(r=L(e.s),s=L(e.l),t=function(e,t,n){var r,o,i;function a(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=I(e,360),t=I(t,100),n=I(n,100),0===t)r=o=i=n;else{var c=n<.5?n*(1+t):n+t-n*t,s=2*n-c;r=a(s,c,e+1/3),o=a(s,c,e),i=a(s,c,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,r,s),d=!0,f="hsl"),e.hasOwnProperty("a")&&(n=e.a));var p,b,h;return n=T(n),{ok:d,format:e.format||f,r:u(255,l(t.r,0)),g:u(255,l(t.g,0)),b:u(255,l(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=s(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=s(this._r)),this._g<1&&(this._g=s(this._g)),this._b<1&&(this._b=s(this._b)),this._ok=n.ok,this._tc_id=c++}function p(e,t,n){e=I(e,255),t=I(t,255),n=I(n,255);var r,o,i=l(e,t,n),a=u(e,t,n),c=(i+a)/2;if(i==a)r=o=0;else{var s=i-a;switch(o=c>.5?s/(2-i-a):s/(i+a),i){case e:r=(t-n)/s+(t>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(f(r));return i}function P(e,t){t=t||6;for(var n=f(e).toHsv(),r=n.h,o=n.s,i=n.v,a=[],c=1/t;t--;)a.push(f({h:r,s:o,v:i})),i=(i+c)%1;return a}f.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:o.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=T(e),this._roundA=s(100*this._a)/100,this},toHsv:function(){var e=b(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=b(this._r,this._g,this._b),t=s(360*e.h),n=s(100*e.s),r=s(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=p(this._r,this._g,this._b),t=s(360*e.h),n=s(100*e.s),r=s(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return h(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var i=[A(s(e).toString(16)),A(s(t).toString(16)),A(s(n).toString(16)),A(F(r))];if(o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1))return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0);return i.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:s(this._r),g:s(this._g),b:s(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+s(this._r)+", "+s(this._g)+", "+s(this._b)+")":"rgba("+s(this._r)+", "+s(this._g)+", "+s(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:s(100*I(this._r,255))+"%",g:s(100*I(this._g,255))+"%",b:s(100*I(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+s(100*I(this._r,255))+"%, "+s(100*I(this._g,255))+"%, "+s(100*I(this._b,255))+"%)":"rgba("+s(100*I(this._r,255))+"%, "+s(100*I(this._g,255))+"%, "+s(100*I(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(M[h(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+v(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=f(e);n="#"+v(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return f(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(O,arguments)},brighten:function(){return this._applyModification(j,arguments)},darken:function(){return this._applyModification(w,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(y,arguments)},greyscale:function(){return this._applyModification(g,arguments)},spin:function(){return this._applyModification(k,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(C,arguments)},complement:function(){return this._applyCombination(_,arguments)},monochromatic:function(){return this._applyCombination(P,arguments)},splitcomplement:function(){return this._applyCombination(x,arguments)},triad:function(){return this._applyCombination(S,arguments)},tetrad:function(){return this._applyCombination(E,arguments)}},f.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:L(e[r]));e=n}return f(e,t)},f.equals=function(e,t){return!(!e||!t)&&f(e).toRgbString()==f(t).toRgbString()},f.random=function(){return f.fromRatio({r:d(),g:d(),b:d()})},f.mix=function(e,t,n){n=0===n?0:n||50;var r=f(e).toRgb(),o=f(t).toRgb(),i=n/100;return f({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},f.readability=function(e,t){var n=f(e),r=f(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},f.isReadable=function(e,t,n){var r,o,i=f.readability(e,t);switch(o=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=i>=4.5;break;case"AAlarge":o=i>=3;break;case"AAAsmall":o=i>=7}return o},f.mostReadable=function(e,t,n){var r,o,i,a,c=null,s=0;o=(n=n||{}).includeFallbackColors,i=n.level,a=n.size;for(var u=0;us&&(s=r,c=f(t[u]));return f.isReadable(e,c,{level:i,size:a})||!o?c:(n.includeFallbackColors=!1,f.mostReadable(e,["#fff","#000"],n))};var D=f.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},M=f.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(D);function T(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function I(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=u(t,l(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function R(e){return u(1,l(0,e))}function N(e){return parseInt(e,16)}function A(e){return 1==e.length?"0"+e:""+e}function L(e){return e<=1&&(e=100*e+"%"),e}function F(e){return o.round(255*parseFloat(e)).toString(16)}function z(e){return N(e)/255}var B,H,V,K=(H="[\\s|\\(]+("+(B="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+B+")[,|\\s]+("+B+")\\s*\\)?",V="[\\s|\\(]+("+B+")[,|\\s]+("+B+")[,|\\s]+("+B+")[,|\\s]+("+B+")\\s*\\)?",{CSS_UNIT:new RegExp(B),rgb:new RegExp("rgb"+H),rgba:new RegExp("rgba"+V),hsl:new RegExp("hsl"+H),hsla:new RegExp("hsla"+V),hsv:new RegExp("hsv"+H),hsva:new RegExp("hsva"+V),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function W(e){return!!K.CSS_UNIT.exec(e)}e.exports?e.exports=f:void 0===(r=function(){return f}.call(t,n,t,e))||(e.exports=r)}(Math)},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(15),o=n(51),i=n(50),a=n(56),c=Object(i.a)({name:"Box",keys:["unstable_system"],propsAreEqual:function(e,t){var n=e.unstable_system,o=Object(r.a)(e,["unstable_system"]),i=t.unstable_system,c=Object(r.a)(t,["unstable_system"]);return!(n!==i&&!Object(a.a)(n,i))&&Object(a.a)(o,c)}});Object(o.a)({as:"div",useHook:c})},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(13);var o=Object(r.createContext)((function(e){return void 0===e&&(e="id"),(e?e+"-":"")+Math.random().toString(32).substr(2,6)}))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(57);function o(e){var t=Object(r.a)(e);if(!t)return!1;if(e.contains(t))return!0;var n=t.getAttribute("aria-activedescendant");return!!n&&(n===e.id||!!e.querySelector("#"+n))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=["button","color","file","image","reset","submit"];function o(e){if("BUTTON"===e.tagName)return!0;if("INPUT"===e.tagName){var t=e;return-1!==r.indexOf(t.type)}return!1}},function(e,t,n){"use strict";function r(e,t){return"matches"in e?e.matches(t):"msMatchesSelector"in e?e.msMatchesSelector(t):e.webkitMatchesSelector(t)}function o(e,t){if("closest"in e)return e.closest(t);do{if(r(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return s}));var i=n(57),a="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])";function c(e){return r(e,a)&&function(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0}(e)}function s(e){for(;e&&!c(e);)e=o(e,a);return e}function u(e){return Object(i.a)(e)===e}function l(e,t){var n=void 0===t?{}:t,r=n.isActive,o=void 0===r?u:r,i=n.preventScroll;return o(e)?-1:(e.focus({preventScroll:i}),o(e)?-1:requestAnimationFrame((function(){e.focus({preventScroll:i})})))}},function(e,t,n){"use strict";function r(e){return t=e.currentTarget,n=e.target,!(t===n||t.contains(n));var t,n}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(15),o=n(51),i=n(50),a=n(67),c=n(13),s=n(63),u=n(71),l=(n(81),n(48)),d=n(59),f=n(70),p=n(73),b=n(57),h=n(72);function v(e){return"undefined"!=typeof window&&-1!==window.navigator.userAgent.indexOf(e)}var m=v("Mac")&&!v("Chrome")&&(v("Safari")||v("Firefox"));function y(e){Object(f.a)(e)||e.focus()}var g=Object(i.a)({name:"Tabbable",compose:a.a,keys:["disabled","focusable"],useOptions:function(e,t){var n=t.disabled;return Object(r.b)({disabled:n},e)},useProps:function(e,t){var n=t.ref,o=t.tabIndex,i=t.onClick,a=t.onMouseDown,f=t.style,v=Object(r.a)(t,["ref","tabIndex","onClick","onMouseDown","style"]),g=Object(c.useRef)(null),O=Object(l.a)(i),j=Object(l.a)(a),w=e.disabled&&!e.focusable,k=Object(c.useState)(!0),_=k[0],S=k[1],E=_?o:o||0,x=e.disabled?Object(r.b)({pointerEvents:"none"},f):f,C=function(){if(m){var e=Object(c.useState)(null),t=e[0],n=e[1];return Object(c.useEffect)((function(){t&&(y(t),n(null))}),[t]),Object(c.useCallback)((function(e){var t=e.currentTarget;if(!Object(p.a)(e)&&Object(u.a)(t)){var r=Object(b.a)(t);if(r){var o="BODY"===r.tagName,i=Object(h.b)(t.parentElement);if(r===i||o&&!i)n(t);else if(i){i.addEventListener("focusin",(function(){return n(t)}),{once:!0})}else{r.addEventListener("blur",(function(){return y(t)}),{once:!0})}}}}),[])}}();Object(d.a)((function(){var e,t=g.current;t&&("BUTTON"!==(e=t).tagName&&"INPUT"!==e.tagName&&"SELECT"!==e.tagName&&"TEXTAREA"!==e.tagName&&"A"!==e.tagName&&"AUDIO"!==e.tagName&&"VIDEO"!==e.tagName&&S(!1))}),[]);var P=Object(c.useCallback)((function(t){var n;if(e.disabled)return t.stopPropagation(),void t.preventDefault();null===(n=O.current)||void 0===n||n.call(O,t)}),[e.disabled]),D=Object(c.useCallback)((function(t){var n;if(e.disabled)return t.stopPropagation(),void t.preventDefault();null===(n=j.current)||void 0===n||n.call(j,t),t.defaultPrevented||null==C||C(t)}),[e.disabled,C]);return Object(r.b)({ref:Object(s.a)(g,n),style:x,tabIndex:w?void 0:E,disabled:!(!w||!_)||void 0,"aria-disabled":!!e.disabled||void 0,onClick:P,onMouseDown:D},v)}});Object(o.a)({as:"div",useHook:g})},function(e,t){!function(){e.exports=this.wp.date}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(13),o=Object(r.createContext)({})},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.DISPLAY_FORMAT="L",t.ISO_FORMAT="YYYY-MM-DD",t.ISO_MONTH_FORMAT="YYYY-MM",t.START_DATE="startDate",t.END_DATE="endDate",t.HORIZONTAL_ORIENTATION="horizontal",t.VERTICAL_ORIENTATION="vertical",t.VERTICAL_SCROLLABLE="verticalScrollable",t.ICON_BEFORE_POSITION="before",t.ICON_AFTER_POSITION="after",t.INFO_POSITION_TOP="top",t.INFO_POSITION_BOTTOM="bottom",t.INFO_POSITION_BEFORE="before",t.INFO_POSITION_AFTER="after",t.ANCHOR_LEFT="left",t.ANCHOR_RIGHT="right",t.OPEN_DOWN="down",t.OPEN_UP="up",t.DAY_SIZE=39,t.BLOCKED_MODIFIER="blocked",t.WEEKDAYS=[0,1,2,3,4,5,6],t.FANG_WIDTH_PX=20,t.FANG_HEIGHT_PX=10,t.DEFAULT_VERTICAL_SPACING=22,t.MODIFIER_KEY_NAMES=new Set(["Shift","Control","Alt","Meta"])},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(13),o=n(76),i=n(55);var a=function(e,t,n){void 0===n&&(n=t.children);var a=Object(r.useContext)(o.a);if(a.useCreateElement)return a.useCreateElement(e,t,n);if("string"==typeof e&&function(e){return"function"==typeof e}(n)){t.children;return n(Object(i.b)(t,["children"]))}return Object(r.createElement)(e,t,n)}},,function(e,t,n){"use strict";n(108),n(13)},function(e,t,n){"use strict";function r(e){var t=void 0===e?{}:e,n=t.keyMap,r=t.onKey,o=t.stopPropagation,i=t.onKeyDown,a=t.shouldKeyDown,c=void 0===a?function(){return!0}:a,s=t.preventDefault,u=void 0===s||s;return function(e){if(n){var t,a="function"==typeof n?n(e):n,s="function"==typeof u?u(e):u,l="function"==typeof o?o(e):o;if(e.key in a){var d=a[e.key];if("function"==typeof d&&c(e))return s&&e.preventDefault(),l&&e.stopPropagation(),r&&r(e),void d(e)}if(i&&"current"in i)null===(t=i.current)||void 0===t||t.call(i,e);else null==i||i(e)}}}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";var r=n(21),o=n(22),i=n(23),a=n(24),c=n(19),s=n(0),u=n(2),l=n(114),d=n(172);function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(c.a)(e);if(t){var o=Object(c.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(a.a)(this,n)}}var p=function(e){Object(i.a)(n,e);var t=f(n);function n(){var e;return Object(r.a)(this,n),(e=t.apply(this,arguments)).delayedSetIsOver=Object(u.debounce)((function(t){return e.setState({isOver:t})}),700),e.cancelIsMouseDown=e.createSetIsMouseDown(!1),e.isInMouseDown=!1,e.state={isOver:!1},e}return Object(o.a)(n,[{key:"componentWillUnmount",value:function(){this.delayedSetIsOver.cancel(),document.removeEventListener("mouseup",this.cancelIsMouseDown)}},{key:"emitToChild",value:function(e,t){var n=this.props.children;if(1===s.Children.count(n)){var r=s.Children.only(n);"function"==typeof r.props[e]&&r.props[e](t)}}},{key:"createToggleIsOver",value:function(e,t){var n=this;return function(r){if(n.emitToChild(e,r),!(r.currentTarget.disabled||"focus"===r.type&&n.isInMouseDown)){n.delayedSetIsOver.cancel();var o=Object(u.includes)(["focus","mouseenter"],r.type);o!==n.state.isOver&&(t?n.delayedSetIsOver(o):n.setState({isOver:o}))}}}},{key:"createSetIsMouseDown",value:function(e){var t=this;return function(n){t.emitToChild(e?"onMouseDown":"onMouseUp",n),document[e?"addEventListener":"removeEventListener"]("mouseup",t.cancelIsMouseDown),t.isInMouseDown=e}}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.position,r=e.text,o=e.shortcut;if(1!==s.Children.count(t))return t;var i=s.Children.only(t),a=this.state.isOver;return Object(s.cloneElement)(i,{onMouseEnter:this.createToggleIsOver("onMouseEnter",!0),onMouseLeave:this.createToggleIsOver("onMouseLeave"),onClick:this.createToggleIsOver("onClick"),onFocus:this.createToggleIsOver("onFocus"),onBlur:this.createToggleIsOver("onBlur"),onMouseDown:this.createSetIsMouseDown(!0),children:Object(s.concatChildren)(i.props.children,a&&Object(s.createElement)(l.a,{focusOnMount:!1,position:n,className:"components-tooltip","aria-hidden":"true",animate:!1,noArrow:!0},r,Object(s.createElement)(d.a,{className:"components-tooltip__shortcut",shortcut:o})))})}}]),n}(s.Component);t.a=p},function(e,t,n){"use strict";var r=n(5),o=n(8),i=n(14),a=n(0),c=n(7),s=n(151);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t1)for(var n=1;n2?arguments[2]:{},i=r(t);o&&(i=a.call(i,Object.getOwnPropertySymbols(t)));for(var c=0;c1&&void 0!==arguments[1]?arguments[1]:{},n=t.stylesPropName,c=void 0===n?"styles":n,l=t.themePropName,f=void 0===l?"theme":l,m=t.cssPropName,w=void 0===m?"css":m,k=t.flushBefore,_=void 0!==k&&k,S=t.pureComponent,E=void 0!==S&&S,x=void 0,C=void 0,P=void 0,D=void 0,M=g(E);function T(e){return e===u.DIRECTIONS.LTR?d.default.resolveLTR:d.default.resolveRTL}function I(e){return e===u.DIRECTIONS.LTR?P:D}function R(t,n){var r=I(t),o=t===u.DIRECTIONS.LTR?x:C,i=d.default.get();return o&&r===i||(t===u.DIRECTIONS.RTL?(C=e?d.default.createRTL(e):y,D=i,o=C):(x=e?d.default.createLTR(e):y,P=i,o=x)),o}function N(e,t){return{resolveMethod:T(e),styleDef:R(e)}}return function(e){var t=e.displayName||e.name||"Component",n=function(t){function n(e,t){p(this,n);var r=b(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t)),o=r.context[u.CHANNEL]?r.context[u.CHANNEL].getState():j;return r.state=N(o),r}return h(n,t),o(n,[{key:"componentDidMount",value:function(){var e=this;this.context[u.CHANNEL]&&(this.channelUnsubscribe=this.context[u.CHANNEL].subscribe((function(t){e.setState(N(t))})))}},{key:"componentWillUnmount",value:function(){this.channelUnsubscribe&&this.channelUnsubscribe()}},{key:"render",value:function(){var t;_&&d.default.flush();var n=this.state,o=n.resolveMethod,i=n.styleDef;return a.default.createElement(e,r({},this.props,(v(t={},f,d.default.get()),v(t,c,i()),v(t,w,o),t)))}}]),n}(M);return n.WrappedComponent=e,n.displayName="withStyles("+String(t)+")",n.contextTypes=O,e.propTypes&&(n.propTypes=(0,i.default)({},e.propTypes),delete n.propTypes[c],delete n.propTypes[f],delete n.propTypes[w]),e.defaultProps&&(n.defaultProps=(0,i.default)({},e.defaultProps)),(0,s.default)(n,e)}};var i=f(n(95)),a=f(n(13)),c=f(n(28)),s=f(n(388)),u=n(391),l=f(n(392)),d=f(n(237));function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.css=d.default.resolveLTR,t.withStylesPropTypes={styles:c.default.object.isRequired,theme:c.default.object.isRequired,css:c.default.func.isRequired};var m={},y=function(){return m};function g(e){if(e){if(!a.default.PureComponent)throw new ReferenceError("withStyles() pureComponent option requires React 15.3.0 or later");return a.default.PureComponent}return a.default.Component}var O=v({},u.CHANNEL,l.default),j=u.DIRECTIONS.LTR},function(e,t,n){"use strict";var r=n(8),o=n(21),i=n(22),a=n(16),c=n(23),s=n(24),u=n(19),l=n(0),d=n(2),f=n(10);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(s.a)(this,n)}}var b=["button","submit"];t.a=Object(f.createHigherOrderComponent)((function(e){return function(t){Object(c.a)(s,t);var n=p(s);function s(){var e;return Object(o.a)(this,s),(e=n.apply(this,arguments)).bindNode=e.bindNode.bind(Object(a.a)(e)),e.cancelBlurCheck=e.cancelBlurCheck.bind(Object(a.a)(e)),e.queueBlurCheck=e.queueBlurCheck.bind(Object(a.a)(e)),e.normalizeButtonFocus=e.normalizeButtonFocus.bind(Object(a.a)(e)),e}return Object(i.a)(s,[{key:"componentWillUnmount",value:function(){this.cancelBlurCheck()}},{key:"bindNode",value:function(e){e?this.node=e:(delete this.node,this.cancelBlurCheck())}},{key:"queueBlurCheck",value:function(e){var t=this;e.persist(),this.preventBlurCheck||(this.blurCheckTimeout=setTimeout((function(){document.hasFocus()?"function"==typeof t.node.handleFocusOutside&&t.node.handleFocusOutside(e):e.preventDefault()}),0))}},{key:"cancelBlurCheck",value:function(){clearTimeout(this.blurCheckTimeout)}},{key:"normalizeButtonFocus",value:function(e){var t=e.type,n=e.target;Object(d.includes)(["mouseup","touchend"],t)?this.preventBlurCheck=!1:function(e){switch(e.nodeName){case"A":case"BUTTON":return!0;case"INPUT":return Object(d.includes)(b,e.type)}return!1}(n)&&(this.preventBlurCheck=!0)}},{key:"render",value:function(){return Object(l.createElement)("div",{onFocus:this.cancelBlurCheck,onMouseDown:this.normalizeButtonFocus,onMouseUp:this.normalizeButtonFocus,onTouchStart:this.normalizeButtonFocus,onTouchEnd:this.normalizeButtonFocus,onBlur:this.queueBlurCheck},Object(l.createElement)(e,Object(r.a)({ref:this.bindNode},this.props)))}}]),s}(l.Component)}),"withFocusOutside")},function(e,t,n){"use strict";var r=n(8),o=n(12),i=n(14),a=n(0),c=n(9),s=n.n(c),u=n(29),l=n(18),d=n(36),f=n.n(d),p=n(10),b=n(160),h=n(5);function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t0?c/2:u)+(u+c/2>window.innerWidth?window.innerWidth-u:c/2)},d=e.left;"right"===r?d=e.right:"middle"!==i&&(d=u);var f=e.right;"left"===r?f=e.left:"middle"!==i&&(f=u);var p,b={popoverLeft:d,contentWidth:d-c>0?c:d},h={popoverLeft:f,contentWidth:f+c>window.innerWidth?window.innerWidth-f:c},v=n,m=null;if(!o)if("center"===n&&l.contentWidth===c)v="center";else if("left"===n&&b.contentWidth===c)v="left";else if("right"===n&&h.contentWidth===c)v="right";else{var y="left"===(v=b.contentWidth>h.contentWidth?"left":"right")?b.contentWidth:h.contentWidth;m=y!==c?y:null}if(p="center"===v?l.popoverLeft:"left"===v?b.popoverLeft:h.popoverLeft,a){var g=a.getBoundingClientRect();p=Math.min(p,g.right-c)}return{xAxis:v,popoverLeft:p,contentWidth:m}}function g(e,t,n,r,o,i,a){var c=t.height;if(o){var s=(Object(u.getScrollContainer)(i)||document.body).getBoundingClientRect().top+c-a;if(e.top<=s)return{yAxis:n,popoverTop:Math.min(e.bottom,s)}}var l=e.top+e.height/2;"bottom"===r?l=e.bottom:"top"===r&&(l=e.top);var d={popoverTop:l,contentHeight:(l-c/2>0?c/2:l)+(l+c/2>window.innerHeight?window.innerHeight-l:c/2)},f={popoverTop:e.top,contentHeight:e.top-10-c>0?c:e.top-10},p={popoverTop:e.bottom,contentHeight:e.bottom+10+c>window.innerHeight?window.innerHeight-10-e.bottom:c},b=n,h=null;if(!o)if("middle"===n&&d.contentHeight===c)b="middle";else if("top"===n&&f.contentHeight===c)b="top";else if("bottom"===n&&p.contentHeight===c)b="bottom";else{var v="top"===(b=f.contentHeight>p.contentHeight?"top":"bottom")?f.contentHeight:p.contentHeight;h=v!==c?v:null}return{yAxis:b,popoverTop:"middle"===b?d.popoverTop:"top"===b?f.popoverTop:p.popoverTop,contentHeight:h}}var O=n(135),j=n(134),w=n(21),k=n(22),_=n(23),S=n(24),E=n(19),x=n(113);function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(E.a)(e);if(t){var o=Object(E.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(S.a)(this,n)}}var P=function(e){Object(_.a)(n,e);var t=C(n);function n(){return Object(w.a)(this,n),t.apply(this,arguments)}return Object(k.a)(n,[{key:"handleFocusOutside",value:function(e){this.props.onFocusOutside(e)}},{key:"render",value:function(){return this.props.children}}]),n}(a.Component),D=Object(x.a)(P),M=n(35),T=n(166),I=n(136),R=n(165),N=n(125),A=n(124),L=Object(j.a)(Object(O.a)((function(e){return e.children})));function F(e,t){var n,r=(n=t).ownerDocument.defaultView.getComputedStyle(n),o=r.paddingTop,i=r.paddingBottom,a=r.paddingLeft,c=r.paddingRight,s=o?parseInt(o,10):0,u=i?parseInt(i,10):0,l=a?parseInt(a,10):0,d=c?parseInt(c,10):0;return{x:e.left+l,y:e.top+s,width:e.width-l-d,height:e.height-s-u,left:e.left+l,right:e.right-d,top:e.top+s,bottom:e.bottom-u}}function z(e,t,n){n?e.getAttribute(t)!==n&&e.setAttribute(t,n):e.hasAttribute(t)&&e.removeAttribute(t)}function B(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";e.style[t]!==n&&(e.style[t]=n)}function H(e,t,n){n?e.classList.contains(t)||e.classList.add(t):e.classList.contains(t)&&e.classList.remove(t)}var V=function(e){var t=e.headerTitle,n=e.onClose,c=e.onKeyDown,d=e.children,h=e.className,v=e.noArrow,O=void 0===v||v,j=e.isAlternate,w=e.position,k=void 0===w?"bottom right":w,_=(e.range,e.focusOnMount),S=void 0===_?"firstElement":_,E=e.anchorRef,x=e.shouldAnchorIncludePadding,C=e.anchorRect,P=e.getAnchorRect,V=e.expandOnMobile,K=e.animate,W=void 0===K||K,U=e.onClickOutside,G=e.onFocusOutside,$=e.__unstableSticky,q=e.__unstableSlotName,Y=void 0===q?"Popover":q,Z=e.__unstableObserveElement,X=e.__unstableBoundaryParent,J=Object(i.a)(e,["headerTitle","onClose","onKeyDown","children","className","noArrow","isAlternate","position","range","focusOnMount","anchorRef","shouldAnchorIncludePadding","anchorRect","getAnchorRect","expandOnMobile","animate","onClickOutside","onFocusOutside","__unstableSticky","__unstableSlotName","__unstableObserveElement","__unstableBoundaryParent"]),Q=Object(a.useRef)(null),ee=Object(a.useRef)(null),te=Object(a.useRef)(),ne=Object(p.useViewportMatch)("medium","<"),re=Object(a.useState)(),oe=Object(o.a)(re,2),ie=oe[0],ae=oe[1],ce=Object(R.a)(Y),se=V&&ne,ue=Object(p.useResizeObserver)(),le=Object(o.a)(ue,2),de=le[0],fe=le[1];O=se||O,Object(a.useLayoutEffect)((function(){if(se)return H(te.current,"is-without-arrow",O),H(te.current,"is-alternate",j),z(te.current,"data-x-axis"),z(te.current,"data-y-axis"),B(te.current,"top"),B(te.current,"left"),B(ee.current,"maxHeight"),void B(ee.current,"maxWidth");var e=function(){if(te.current&&ee.current){var e=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4?arguments[4]:void 0;if(t)return t;if(n){if(!e.current)return;return n(e.current)}if(!1!==r){if(!(r&&window.Range&&window.Element&&window.DOMRect))return;if(r instanceof window.Range)return Object(u.getRectangleFromRange)(r);if(r instanceof window.Element){var i=r.getBoundingClientRect();return o?i:F(i,r)}var a=r.top,c=r.bottom,s=a.getBoundingClientRect(),l=c.getBoundingClientRect(),d=new window.DOMRect(s.left,s.top,s.width,l.bottom-s.top);return o?d:F(d,r)}if(e.current){var f=e.current.parentNode,p=f.getBoundingClientRect();return o?p:F(p,f)}}(Q,C,P,E,x);if(e){var t,n,r=te.current,i=r.offsetParent,a=r.ownerDocument,c=0;if(i&&i!==a.body){var s=i.getBoundingClientRect();c=s.top,e=new window.DOMRect(e.left-s.left,e.top-s.top,e.width,e.height)}if(X)t=null===(n=te.current.closest(".popover-slot"))||void 0===n?void 0:n.parentNode;var l=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"top",r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0,c=arguments.length>6?arguments[6]:void 0,s=n.split(" "),u=Object(o.a)(s,3),l=u[0],d=u[1],f=void 0===d?"center":d,p=u[2],b=g(e,t,l,p,r,i,a),h=y(e,t,f,p,r,b.yAxis,c);return m(m({},h),b)}(e,fe.height?fe:ee.current.getBoundingClientRect(),k,$,te.current,c,t),d=l.popoverTop,f=l.popoverLeft,p=l.xAxis,b=l.yAxis,h=l.contentHeight,v=l.contentWidth;"number"==typeof d&&"number"==typeof f&&(B(te.current,"top",d+"px"),B(te.current,"left",f+"px")),H(te.current,"is-without-arrow",O||"center"===p&&"middle"===b),H(te.current,"is-alternate",j),z(te.current,"data-x-axis",p),z(te.current,"data-y-axis",b),B(ee.current,"maxHeight","number"==typeof h?h+"px":""),B(ee.current,"maxWidth","number"==typeof v?v+"px":"");ae(({left:"right",right:"left"}[p]||"center")+" "+({top:"bottom",bottom:"top"}[b]||"middle"))}}};e();var t,n,r=window.setInterval(e,500),i=function(){window.cancelAnimationFrame(t),t=window.requestAnimationFrame(e)};return window.addEventListener("click",i),window.addEventListener("resize",e),window.addEventListener("scroll",e,!0),Z&&(n=new window.MutationObserver(e)).observe(Z,{attributes:!0}),function(){window.clearInterval(r),window.removeEventListener("resize",e),window.removeEventListener("scroll",e,!0),window.removeEventListener("click",i),window.cancelAnimationFrame(t),n&&n.disconnect()}}),[se,C,P,E,x,k,fe,$,Z,X]),function(e,t){Object(a.useEffect)((function(){var n=setTimeout((function(){if(e&&t.current)if("firstElement"!==e)"container"===e&&t.current.focus();else{var n=u.focus.tabbable.find(t.current)[0];n?n.focus():t.current.focus()}}),0);return function(){return clearTimeout(n)}}),[])}(S,ee);var pe=function(e){e.keyCode===l.ESCAPE&&n&&(e.stopPropagation(),n()),c&&c(e)};var be=Object(a.createElement)(D,{onFocusOutside:function(e){if(G)G(e);else if(U){var t;try{t=new window.MouseEvent("click")}catch(e){(t=document.createEvent("MouseEvent")).initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null)}Object.defineProperty(t,"target",{get:function(){return e.relatedTarget}}),f()("Popover onClickOutside prop",{alternative:"onFocusOutside"}),U(t)}else n&&n()}},Object(a.createElement)(A.a,{type:W&&ie?"appear":null,options:{origin:ie}},(function(e){var o=e.className;return Object(a.createElement)(I.a,Object(r.a)({className:s()("components-popover",h,o,{"is-expanded":se,"is-without-arrow":O,"is-alternate":j})},J,{onKeyDown:pe,ref:te}),se&&Object(a.createElement)(T.a,null),se&&Object(a.createElement)("div",{className:"components-popover__header"},Object(a.createElement)("span",{className:"components-popover__header-title"},t),Object(a.createElement)(M.a,{className:"components-popover__close",icon:b.a,onClick:n})),Object(a.createElement)("div",{ref:ee,className:"components-popover__content",tabIndex:"-1"},Object(a.createElement)("div",{style:{position:"relative"}},de,d)))})));return S&&(be=Object(a.createElement)(L,null,be)),ce.ref&&(be=Object(a.createElement)(N.a,{name:Y},be)),E||C?be:Object(a.createElement)("span",{ref:Q},be)};V.Slot=function(e){var t=e.name,n=void 0===t?"Popover":t;return Object(a.createElement)(N.b,{bubblesVirtually:!0,name:n,className:"popover-slot"})};t.a=V},function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(177)),i=r(n(178)),a=n(13),c=r(a),s=r(n(148)),u=r(n(179)),l={arr:Array.isArray,obj:function(e){return"[object Object]"===Object.prototype.toString.call(e)},fun:function(e){return"function"==typeof e},str:function(e){return"string"==typeof e},num:function(e){return"number"==typeof e},und:function(e){return void 0===e},nul:function(e){return null===e},set:function(e){return e instanceof Set},map:function(e){return e instanceof Map},equ:function(e,t){if(typeof e!=typeof t)return!1;if(l.str(e)||l.num(e))return e===t;if(l.obj(e)&&l.obj(t)&&Object.keys(e).length+Object.keys(t).length===0)return!0;var n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return!l.und(n)||e===t}};function d(){var e=a.useState(!1)[1];return a.useCallback((function(){return e((function(e){return!e}))}),[])}function f(e,t){return l.und(e)||l.nul(e)?t:e}function p(e){return l.und(e)?[]:l.arr(e)?e:[e]}function b(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=n.length)break;i=n[o++]}else{if((o=n.next()).done)break;i=o.value}for(var a=i,c=!1,s=0;s=p.startTime+u.duration;else if(u.decay)v=b+g/(1-.998)*(1-Math.exp(-(1-.998)*(t-p.startTime))),(l=Math.abs(p.lastPosition-v)<.1)&&(h=v);else{d=void 0!==p.lastTime?p.lastTime:t,g=void 0!==p.lastVelocity?p.lastVelocity:u.initialVelocity,t>d+64&&(d=t);for(var O=Math.floor(t-d),j=0;jh:v=e);++n);return n-1}(e,i);return function(e,t,n,r,o,i,a,c,s){var u=s?s(e):e;if(un){if("identity"===c)return u;"clamp"===c&&(u=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?u=-u:n===1/0?u-=t:u=(u-t)/(n-t);u=i(u),r===-1/0?u=-u:o===1/0?u+=r:u=u*(o-r)+r;return u}(e,i[t],i[t+1],o[t],o[t+1],s,a,c,r.map)}}var B=function(e){function t(n,r,o,i){var a;return(a=e.call(this)||this).calc=void 0,a.payload=n instanceof g&&!(n instanceof t)?n.getPayload():Array.isArray(n)?n:[n],a.calc=z(r,o,i),a}s(t,e);var n=t.prototype;return n.getValue=function(){return this.calc.apply(this,this.payload.map((function(e){return e.getValue()})))},n.updateConfig=function(e,t,n){this.calc=z(e,t,n)},n.interpolate=function(e,n,r){return new t(this,e,n,r)},t}(g);var H=function(e){function t(t){var n;return(n=e.call(this)||this).animatedStyles=new Set,n.value=void 0,n.startPosition=void 0,n.lastPosition=void 0,n.lastVelocity=void 0,n.startTime=void 0,n.lastTime=void 0,n.done=!1,n.setValue=function(e,t){void 0===t&&(t=!0),n.value=e,t&&n.flush()},n.value=t,n.startPosition=t,n.lastPosition=t,n}s(t,e);var n=t.prototype;return n.flush=function(){0===this.animatedStyles.size&&function e(t,n){"update"in t?n.add(t):t.getChildren().forEach((function(t){return e(t,n)}))}(this,this.animatedStyles),this.animatedStyles.forEach((function(e){return e.update()}))},n.clearStyles=function(){this.animatedStyles.clear()},n.getValue=function(){return this.value},n.interpolate=function(e,t,n){return new B(this,e,t,n)},t}(y),V=function(e){function t(t){var n;return(n=e.call(this)||this).payload=t.map((function(e){return new H(e)})),n}s(t,e);var n=t.prototype;return n.setValue=function(e,t){var n=this;void 0===t&&(t=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach((function(e,r){return n.payload[r].setValue(e,t)})):this.payload.forEach((function(n){return n.setValue(e,t)}))},n.getValue=function(){return this.payload.map((function(e){return e.getValue()}))},n.interpolate=function(e,t){return new B(this,e,t)},t}(g),K=0,W=function(){function e(){var e=this;this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=function(){return e.interpolations},this.id=K++}var t=e.prototype;return t.update=function(e){if(!e)return this;var t=h(e),n=t.delay,r=void 0===n?0:n,a=t.to,c=i(t,["delay","to"]);if(l.arr(a)||l.fun(a))this.queue.push(o({},c,{delay:r,to:a}));else if(a){var s={};Object.entries(a).forEach((function(e){var t,n=e[0],i=e[1],a=o({to:(t={},t[n]=i,t),delay:b(r,n)},c),u=s[a.delay]&&s[a.delay].to;s[a.delay]=o({},s[a.delay],a,{to:o({},u,a.to)})})),this.queue=Object.values(s)}return this.queue=this.queue.sort((function(e,t){return e.delay-t.delay})),this.diff(c),this},t.start=function(e){var t,n=this;if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach((function(e){var t=e.from,r=void 0===t?{}:t,i=e.to,a=void 0===i?{}:i;l.obj(r)&&(n.merged=o({},r,n.merged)),l.obj(a)&&(n.merged=o({},n.merged,a))}));var r=this.local=++this.guid,a=this.localQueue=this.queue;this.queue=[],a.forEach((function(t,o){var c=t.delay,s=i(t,["delay"]),u=function(t){o===a.length-1&&r===n.guid&&t&&(n.idle=!0,n.props.onRest&&n.props.onRest(n.merged)),e&&e()},d=l.arr(s.to)||l.fun(s.to);c?setTimeout((function(){r===n.guid&&(d?n.runAsync(s,u):n.diff(s).start(u))}),c):d?n.runAsync(s,u):n.diff(s).start(u)}))}else l.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,L.has(t)||L.add(t),A||(A=!0,_(M||F));return this},t.stop=function(e){return this.listeners.forEach((function(t){return t(e)})),this.listeners=[],this},t.pause=function(e){var t;return this.stop(!0),e&&(t=this,L.has(t)&&L.delete(t)),this},t.runAsync=function(e,t){var n=this,r=(e.delay,i(e,["delay"])),a=this.local,c=Promise.resolve(void 0);if(l.arr(r.to))for(var s=function(e){var t=e,i=o({},r,h(r.to[t]));l.arr(i.config)&&(i.config=i.config[t]),c=c.then((function(){if(a===n.guid)return new Promise((function(e){return n.diff(i).start(e)}))}))},u=0;u=r.length)return"break";a=r[i++]}else{if((i=r.next()).done)return"break";a=i.value}var n=a.key,c=function(e){return e.key!==n};(l.und(t)||t===n)&&(e.current.instances.delete(n),e.current.transitions=e.current.transitions.filter(c),e.current.deleted=e.current.deleted.filter(c))},r=e.current.deleted,o=Array.isArray(r),i=0;for(r=o?r:r[Symbol.iterator]();;){var a;if("break"===n())break}e.current.forceUpdate()}var Z=function(e){function t(t){var n;return void 0===t&&(t={}),n=e.call(this)||this,!t.transform||t.transform instanceof y||(t=v.transform(t)),n.payload=t,n}return s(t,e),t}(O),X={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},J="[-+]?\\d*\\.?\\d+";function Q(){for(var e=arguments.length,t=new Array(e),n=0;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 ue(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=se(o,r,e+1/3),a=se(o,r,e),c=se(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*a)<<16|Math.round(255*c)<<8}function le(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function de(e){return(parseFloat(e)%360+360)%360/360}function fe(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function pe(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function be(e){var t,n,r="number"==typeof(t=e)?t>>>0===t&&t>=0&&t<=4294967295?t:null:(n=ae.exec(t))?parseInt(n[1]+"ff",16)>>>0:X.hasOwnProperty(t)?X[t]:(n=ee.exec(t))?(le(n[1])<<24|le(n[2])<<16|le(n[3])<<8|255)>>>0:(n=te.exec(t))?(le(n[1])<<24|le(n[2])<<16|le(n[3])<<8|fe(n[4]))>>>0:(n=oe.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+"ff",16)>>>0:(n=ce.exec(t))?parseInt(n[1],16)>>>0:(n=ie.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+n[4]+n[4],16)>>>0:(n=ne.exec(t))?(255|ue(de(n[1]),pe(n[2]),pe(n[3])))>>>0:(n=re.exec(t))?(ue(de(n[1]),pe(n[2]),pe(n[3]))|fe(n[4]))>>>0:null;return null===r?e:"rgba("+((4278190080&(r=r||0))>>>24)+", "+((16711680&r)>>>16)+", "+((65280&r)>>>8)+", "+(255&r)/255+")"}var he=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ve=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,me=new RegExp("("+Object.keys(X).join("|")+")","g"),ye={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ge=["Webkit","Ms","Moz","O"];function Oe(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ye.hasOwnProperty(e)&&ye[e]?(""+t).trim():t+"px"}ye=Object.keys(ye).reduce((function(e,t){return ge.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),ye);var je={};I((function(e){return new Z(e)})),P("div"),E((function(e){var t=e.output.map((function(e){return e.replace(ve,be)})).map((function(e){return e.replace(me,be)})),n=t[0].match(he).map((function(){return[]}));t.forEach((function(e){e.match(he).forEach((function(e,t){return n[t].push(+e)}))}));var r=t[0].match(he).map((function(t,r){return z(o({},e,{output:n[r]}))}));return function(e){var n=0;return t[0].replace(he,(function(){return r[n++](e)})).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(function(e,t,n,r,o){return"rgba("+Math.round(t)+", "+Math.round(n)+", "+Math.round(r)+", "+o+")"}))}})),w(X),j((function(e,t){if(!e.nodeType||void 0===e.setAttribute)return!1;var n=t.style,r=t.children,o=t.scrollTop,a=t.scrollLeft,c=i(t,["style","children","scrollTop","scrollLeft"]),s="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;for(var u in void 0!==o&&(e.scrollTop=o),void 0!==a&&(e.scrollLeft=a),void 0!==r&&(e.textContent=r),n)if(n.hasOwnProperty(u)){var l=0===u.indexOf("--"),d=Oe(u,n[u],l);"float"===u&&(u="cssFloat"),l?e.style.setProperty(u,d):e.style[u]=d}for(var f in c){var p=s?f:je[f]||(je[f]=f.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(p)&&e.setAttribute(p,c[f])}}),(function(e){return e}));var we,ke,_e=(we=function(e){return a.forwardRef((function(t,n){var r=d(),s=a.useRef(!0),u=a.useRef(null),f=a.useRef(null),p=a.useCallback((function(e){var t=u.current;u.current=new N(e,(function(){var e=!1;f.current&&(e=v.fn(f.current,u.current.getAnimatedValue())),f.current&&!1!==e||r()})),t&&t.detach()}),[]);a.useEffect((function(){return function(){s.current=!1,u.current&&u.current.detach()}}),[]),a.useImperativeHandle(n,(function(){return T(f,s,r)})),p(t);var b,h=u.current.getValue(),m=(h.scrollTop,h.scrollLeft,i(h,["scrollTop","scrollLeft"])),y=(b=e,!l.fun(b)||b.prototype instanceof c.Component?function(e){return f.current=function(e,t){return t&&(l.fun(t)?t(e):l.obj(t)&&(t.current=e)),e}(e,n)}:void 0);return c.createElement(e,o({},m,{ref:y}))}))},void 0===(ke=!1)&&(ke=!0),function(e){return(l.arr(e)?e:Object.keys(e)).reduce((function(e,t){var n=ke?t[0].toLowerCase()+t.substring(1):t;return e[n]=we(n),e}),we)}),Se=_e(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]);t.apply=_e,t.config={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},t.update=F,t.animated=Se,t.a=Se,t.interpolate=function(e,t,n){return e&&new B(e,t,n)},t.Globals=R,t.useSpring=function(e){var t=l.fun(e),n=U(1,t?e:[e]),r=n[0],o=n[1],i=n[2];return t?[r[0],o,i]:r},t.useTrail=function(e,t){var n=a.useRef(!1),r=l.fun(t),i=b(t),c=a.useRef(),s=U(e,(function(e,t){return 0===e&&(c.current=[]),c.current.push(t),o({},i,{config:b(i.config,e),attach:e>0&&function(){return c.current[e-1]}})})),u=s[0],d=s[1],f=s[2],p=a.useMemo((function(){return function(e){return d((function(t,n){e.reverse;var r=e.reverse?t+1:t-1,a=c.current[r];return o({},e,{config:b(e.config||i.config,t),attach:a&&function(){return a}})}))}}),[e,i.reverse]);return a.useEffect((function(){n.current&&!r&&p(t)})),a.useEffect((function(){n.current=!0}),[]),r?[u,p,f]:u},t.useTransition=function(e,t,n){var r=o({items:e,keys:t||function(e){return e}},n),c=q(r),s=c.lazy,u=void 0!==s&&s,l=(c.unique,c.reset),f=void 0!==l&&l,p=(c.enter,c.leave,c.update,c.onDestroyed),h=(c.keys,c.items,c.onFrame),v=c.onRest,m=c.onStart,y=c.ref,g=i(c,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),O=d(),j=a.useRef(!1),w=a.useRef({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!r.ref,instances:!j.current&&new Map,forceUpdate:O});return a.useImperativeHandle(r.ref,(function(){return{start:function(){return Promise.all(Array.from(w.current.instances).map((function(e){var t=e[1];return new Promise((function(e){return t.start(e)}))})))},stop:function(e){return Array.from(w.current.instances).forEach((function(t){return t[1].stop(e)}))},get controllers(){return Array.from(w.current.instances).map((function(e){return e[1]}))}}})),w.current=function(e,t){var n=e.first,r=e.prevProps,a=i(e,["first","prevProps"]),c=q(t),s=c.items,u=c.keys,l=c.initial,d=c.from,f=c.enter,p=c.leave,h=c.update,v=c.trail,m=void 0===v?0:v,y=c.unique,g=c.config,O=c.order,j=void 0===O?["enter","leave","update"]:O,w=q(r),k=w.keys,_=w.items,S=o({},a.current),E=[].concat(a.deleted),x=Object.keys(S),C=new Set(x),P=new Set(u),D=u.filter((function(e){return!C.has(e)})),M=a.transitions.filter((function(e){return!e.destroyed&&!P.has(e.originalKey)})).map((function(e){return e.originalKey})),T=u.filter((function(e){return C.has(e)})),I=-m;for(;j.length;){switch(j.shift()){case"enter":D.forEach((function(e,t){y&&E.find((function(t){return t.originalKey===e}))&&(E=E.filter((function(t){return t.originalKey!==e})));var r=u.indexOf(e),o=s[r],i=n&&void 0!==l?"initial":"enter";S[e]={slot:i,originalKey:e,key:y?String(e):G++,item:o,trail:I+=m,config:b(g,o,i),from:b(n&&void 0!==l?l||{}:d,o),to:b(f,o)}}));break;case"leave":M.forEach((function(e){var t=k.indexOf(e),n=_[t];E.unshift(o({},S[e],{slot:"leave",destroyed:!0,left:k[Math.max(0,t-1)],right:k[Math.min(k.length,t+1)],trail:I+=m,config:b(g,n,"leave"),to:b(p,n)})),delete S[e]}));break;case"update":T.forEach((function(e){var t=u.indexOf(e),n=s[t];S[e]=o({},S[e],{item:n,slot:"update",trail:I+=m,config:b(g,n,"update"),to:b(h,n)})}))}}var R=u.map((function(e){return S[e]}));return E.forEach((function(e){var t,n=e.left,r=(e.right,i(e,["left","right"]));-1!==(t=R.findIndex((function(e){return e.originalKey===n})))&&(t+=1),t=Math.max(0,t),R=[].concat(R.slice(0,t),[r],R.slice(t))})),o({},a,{changed:D.length||M.length||T.length,first:n&&0===D.length,transitions:R,current:S,deleted:E,prevProps:t})}(w.current,r),w.current.changed&&w.current.transitions.forEach((function(e){var t=e.slot,n=e.from,r=e.to,i=e.config,a=e.trail,c=e.key,s=e.item;w.current.instances.has(c)||w.current.instances.set(c,new W);var l=w.current.instances.get(c),d=o({},g,{to:r,from:n,config:i,ref:y,onRest:function(n){w.current.mounted&&(e.destroyed&&(y||u||Y(w,c),p&&p(s)),!Array.from(w.current.instances).some((function(e){return!e[1].idle}))&&(y||u)&&w.current.deleted.length>0&&Y(w),v&&v(s,t,n))},onStart:m&&function(){return m(s,t)},onFrame:h&&function(e){return h(s,t,e)},delay:a,reset:f&&"enter"===t});l.update(d),w.current.paused||l.start()})),a.useEffect((function(){return w.current.mounted=j.current=!0,function(){w.current.mounted=j.current=!1,Array.from(w.current.instances).map((function(e){return e[1].destroy()})),w.current.instances.clear()}}),[]),w.current.transitions.map((function(e){var t=e.item,n=e.slot,r=e.key;return{item:t,key:r,state:n,props:w.current.instances.get(r).getValues()}}))},t.useChain=function(e,t,n){void 0===n&&(n=1e3);var r=a.useRef();a.useEffect((function(){l.equ(e,r.current)?e.forEach((function(e){var t=e.current;return t&&t.start()})):t?e.forEach((function(e,r){var i=e.current;if(i){var a=i.controllers;if(a.length){var c=n*t[r];a.forEach((function(e){e.queue=e.queue.map((function(e){return o({},e,{delay:e.delay+c})})),e.start()}))}}})):e.reduce((function(e,t,n){var r=t.current;return e.then((function(){return r.start()}))}),Promise.resolve()),r.current=e}))},t.useSprings=U},,,,function(e,t){function n(e,t,n,r){var o,i=null==(o=r)||"number"==typeof o||"boolean"==typeof o?r:n(r),a=t.get(i);return void 0===a&&(a=e.call(this,r),t.set(i,a)),a}function r(e,t,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),i=t.get(o);return void 0===i&&(i=e.apply(this,r),t.set(o,i)),i}function o(e,t,n,r,o){return n.bind(t,e,r,o)}function i(e,t){return o(e,this,1===e.length?n:r,t.cache.create(),t.serializer)}function a(){return JSON.stringify(arguments)}function c(){this.cache=Object.create(null)}c.prototype.has=function(e){return e in this.cache},c.prototype.get=function(e){return this.cache[e]},c.prototype.set=function(e,t){this.cache[e]=t};var s={create:function(){return new c}};e.exports=function(e,t){var n=t&&t.cache?t.cache:s,r=t&&t.serializer?t.serializer:a;return(t&&t.strategy?t.strategy:i)(e,{cache:n,serializer:r})},e.exports.strategies={variadic:function(e,t){return o(e,this,r,t.cache.create(),t.serializer)},monadic:function(e,t){return o(e,this,n,t.cache.create(),t.serializer)}}},function(e,t,n){"use strict";var r=n(330);e.exports=Function.prototype.bind||r},,function(e,t,n){"use strict";n.d(t,"a",(function(){return _})),n.d(t,"b",(function(){return k}));var r=n(15),o=n(51),i=n(50),a=n(67),c=n(13),s=n(63),u=(n(81),n(48)),l=n(54),d=n(57),f=n(74),p=n(79),b=n(82),h=n(49),v=n(97),m=n(104),y=n(52),g="undefined"!=typeof window&&"msCrypto"in window;var O="undefined"!=typeof window&&"msCrypto"in window;function j(e,t,n){var r=Object(u.a)(n);return Object(c.useCallback)((function(n){var o;if(e&&function(e){return!!Object(l.a)(e)&&(!e.metaKey&&"Tab"!==e.key)}(n)){var i=null==t?void 0:t.ref.current;if(i&&(Object(m.a)(i,n.type,n),n.currentTarget.contains(i)))return n.stopPropagation(),void n.preventDefault()}null===(o=r.current)||void 0===o||o.call(r,n)}),[e,t])}function w(e,t){return null==e?void 0:e.some((function(e){return!!t&&e.ref.current===t}))}var k=Object(i.a)({name:"Composite",compose:[f.a],useState:y.g,useOptions:function(e){return Object(r.b)(Object(r.b)({},e),{},{currentId:Object(y.e)(e)})},useProps:function(e,t){var n=t.ref,o=t.onFocus,i=t.onBlur,a=t.onKeyDown,f=t.onKeyUp,p=Object(r.a)(t,["ref","onFocus","onBlur","onKeyDown","onKeyUp"]),m=Object(c.useRef)(null),k=Object(y.d)(e.items,e.currentId),_=Object(c.useRef)(void 0),S=Object(u.a)(o),E=Object(u.a)(i),x=O?function(e){var t=Object(c.useRef)(null);return Object(c.useEffect)((function(){var n=Object(h.a)(e.current),r=function(e){var n=e.target;t.current=n};return n.addEventListener("focus",r,!0),function(){n.removeEventListener("focus",r,!0)}}),[]),t}(m):void 0;Object(c.useEffect)((function(){var t=m.current;t&&e.unstable_moves&&!k&&t.focus()}),[e.unstable_moves,k]);var C=j(e.unstable_virtual,k,a),P=j(e.unstable_virtual,k,f),D=Object(c.useCallback)((function(t){var n;if(e.unstable_virtual){var r,o,i=(null==x?void 0:x.current)||t.relatedTarget,a=w(e.items,i);if(Object(l.a)(t)&&!a)return null===(r=S.current)||void 0===r||r.call(S,t),void(null==k||null===(o=k.ref.current)||void 0===o||o.focus());if(a)return void t.stopPropagation()}else if(Object(l.a)(t)){var c;null===(c=e.setCurrentId)||void 0===c||c.call(e,null)}null===(n=S.current)||void 0===n||n.call(S,t)}),[e.unstable_virtual,e.items,k,e.setCurrentId]),M=Object(c.useCallback)((function(t){var n;if(e.unstable_virtual){var r,o=w(e.items,t.target),i=function(e){return g?Object(d.a)(e.target):e.relatedTarget}(t),a=w(e.items,i);if(Object(l.a)(t)&&a)return(null===(r=_.current)||void 0===r?void 0:r.ref.current)&&Object(v.a)(_.current.ref.current,"blur",t),_.current=k,void t.stopPropagation();o?_.current=k:((null==k?void 0:k.ref.current)&&Object(v.a)(k.ref.current,"blur",t),_.current=void 0)}null===(n=E.current)||void 0===n||n.call(E,t)}),[e.unstable_virtual,e.items,k]),T=Object(c.useMemo)((function(){return Object(b.a)({onKeyDown:C,stopPropagation:!0,shouldKeyDown:function(t){return Object(l.a)(t)&&null===e.currentId},keyMap:function(){var t,n="horizontal"!==e.orientation,r="vertical"!==e.orientation,o=!!(null===(t=e.groups)||void 0===t?void 0:t.length),i=e.first&&function(){return e.first()},a=e.last&&function(){return e.last()};return{ArrowUp:(o||n)&&function(){if(o){var t,n=(i=e.items,Object(y.a)(Object(y.b)(Object(y.f)(Object(y.c)(i)))));if(null==n?void 0:n.id)null===(t=e.move)||void 0===t||t.call(e,n.id)}else{var r;null===(r=e.last)||void 0===r||r.call(e)}var i},ArrowRight:(o||r)&&i,ArrowDown:(o||n)&&i,ArrowLeft:(o||r)&&a,Home:i,End:a,PageUp:i,PageDown:a}}})}),[C,e.currentId,e.orientation,e.groups,e.items,e.move,e.last,e.first]);return Object(r.b)({ref:Object(s.a)(m,n),id:e.baseId,onFocus:D,onBlur:M,onKeyDown:T,onKeyUp:P,"aria-activedescendant":e.unstable_virtual&&(null==k?void 0:k.id)||void 0},p)},useComposeProps:function(e,t){t=Object(a.a)(e,t,!0);var n=Object(f.a)(e,t,!0);return e.unstable_virtual||null===e.currentId?n:Object(r.b)(Object(r.b)({},t),{},{ref:n.ref})}}),_=Object(o.a)({as:"div",useHook:k,useCreateElement:function(e,t,n){return Object(p.a)(e,t,n)}})},function(e,t,n){"use strict";n.d(t,"a",(function(){return w})),n.d(t,"b",(function(){return j}));var r=n(15),o=n(51),i=n(50),a=n(13),c=n(63),s=(n(81),n(48)),u=n(54),l=n(70),d=n(73),f=n(72),p=n(88),b=n(82),h=n(49),v=n(52),m=n(96),y=n(98),g=n(99);function O(e){return e.querySelector("[data-composite-item-widget]")}var j=Object(i.a)({name:"CompositeItem",compose:[p.a,m.a],useState:v.g,propsAreEqual:function(e,t){if(!t.id||e.id!==t.id)return p.a.unstable_propsAreEqual(e,t);var n=e.currentId,o=e.unstable_moves,i=Object(r.a)(e,["currentId","unstable_moves"]),a=t.currentId,c=t.unstable_moves,s=Object(r.a)(t,["currentId","unstable_moves"]);if(a!==n){if(t.id===a||t.id===n)return!1}else if(o!==c)return!1;return p.a.unstable_propsAreEqual(i,s)},useOptions:function(e){return Object(r.b)(Object(r.b)({},e),{},{id:e.id,currentId:Object(v.e)(e),unstable_clickOnSpace:!e.unstable_hasActiveWidget&&e.unstable_clickOnSpace})},useProps:function(e,t){var n,o=t.ref,i=t.tabIndex,p=void 0===i?0:i,v=t.onFocus,m=t.onBlur,j=t.onKeyDown,w=t.onClick,k=Object(r.a)(t,["ref","tabIndex","onFocus","onBlur","onKeyDown","onClick"]),_=Object(a.useRef)(null),S=e.id,E=e.disabled&&!e.focusable,x=e.currentId===S,C=Object(s.a)(x),P=Object(a.useRef)(!1),D=function(e){return Object(a.useMemo)((function(){var t;return null===(t=e.items)||void 0===t?void 0:t.find((function(t){return e.id&&t.id===e.id}))}),[e.items,e.id])}(e),M=Object(s.a)(v),T=Object(s.a)(m),I=Object(s.a)(j),R=Object(s.a)(w),N=!e.unstable_virtual&&!e.unstable_hasActiveWidget&&x||!(null===(n=e.items)||void 0===n?void 0:n.length);Object(a.useEffect)((function(){var t;if(S)return null===(t=e.registerItem)||void 0===t||t.call(e,{id:S,ref:_,disabled:!!E}),function(){var t;null===(t=e.unregisterItem)||void 0===t||t.call(e,S)}}),[S,E,e.registerItem,e.unregisterItem]),Object(a.useEffect)((function(){var t=_.current;t&&e.unstable_moves&&C.current&&t.focus()}),[e.unstable_moves]);var A=Object(a.useCallback)((function(t){var n,o;if(null===(n=M.current)||void 0===n||n.call(M,t),!t.defaultPrevented&&!Object(d.a)(t)&&S&&!function(e,t){if(Object(u.a)(e))return!1;for(var n,o=Object(r.c)(t);!(n=o()).done;){if(n.value.ref.current===e.target)return!0}return!1}(t,e.items)&&(null===(o=e.setCurrentId)||void 0===o||o.call(e,S),e.unstable_virtual&&e.baseId&&Object(u.a)(t))){var i=t.target,a=Object(h.a)(i).getElementById(e.baseId);a&&(P.current=!0,Object(f.a)(a))}}),[S,e.items,e.setCurrentId,e.unstable_virtual,e.baseId]),L=Object(a.useCallback)((function(t){var n;if(e.unstable_virtual&&P.current)return P.current=!1,t.preventDefault(),void t.stopPropagation();null===(n=T.current)||void 0===n||n.call(T,t)}),[e.unstable_virtual]),F=Object(a.useCallback)((function(e){var t;if(null===(t=I.current)||void 0===t||t.call(I,e),Object(u.a)(e)&&1===e.key.length&&" "!==e.key){var n=O(e.currentTarget);if(n&&Object(y.a)(n)){n.focus();var r=e.key;window.requestAnimationFrame((function(){Object(g.a)(n,r)}))}}}),[]),z=Object(a.useMemo)((function(){return Object(b.a)({onKeyDown:F,stopPropagation:!0,shouldKeyDown:u.a,keyMap:function(){var t="horizontal"!==e.orientation,n="vertical"!==e.orientation,r=!!(null==D?void 0:D.groupId),o=function(e){var t=O(e.currentTarget);t&&Object(y.a)(t)&&Object(g.a)(t,"")},i=e.up&&function(){return e.up()},a=e.next&&function(){return e.next()},c=e.down&&function(){return e.down()},s=e.previous&&function(){return e.previous()};return{Delete:o,Backspace:o,ArrowUp:(r||t)&&i,ArrowRight:(r||n)&&a,ArrowDown:(r||t)&&c,ArrowLeft:(r||n)&&s,Home:function(t){var n,o;!r||t.ctrlKey?null===(n=e.first)||void 0===n||n.call(e):null===(o=e.previous)||void 0===o||o.call(e,!0)},End:function(t){var n,o;!r||t.ctrlKey?null===(n=e.last)||void 0===n||n.call(e):null===(o=e.next)||void 0===o||o.call(e,!0)},PageUp:function(){var t,n;r?null===(t=e.up)||void 0===t||t.call(e,!0):null===(n=e.first)||void 0===n||n.call(e)},PageDown:function(){var t,n;r?null===(t=e.down)||void 0===t||t.call(e,!0):null===(n=e.last)||void 0===n||n.call(e)}}}})}),[F,e.orientation,D,e.up,e.next,e.down,e.previous,e.first,e.last]),B=Object(a.useCallback)((function(e){var t;if(null===(t=R.current)||void 0===t||t.call(R,e),!e.defaultPrevented){var n=O(e.currentTarget);n&&!Object(l.a)(n)&&n.focus()}}),[]);return Object(r.b)({ref:Object(c.a)(_,o),id:S,tabIndex:N?p:-1,"aria-selected":!(!e.unstable_virtual||!x)||void 0,onFocus:A,onBlur:L,onKeyDown:z,onClick:B},k)}}),w=Object(o.a)({as:"button",memo:!0,useHook:j})},function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return l}));var r=n(5),o=n(12),i=n(9),a=n.n(i);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t2?n-2:0),o=2;o0&&void 0!==arguments[0]?arguments[0]:{},t=e.htmlDocument,n=void 0===t?document:t,a=e.className,c=void 0===a?"lockscroll":a,l=0,d=0;function f(e){var t=n.scrollingElement||n.body;e&&(d=t.scrollTop);var r=e?"add":"remove";t.classList[r](c),n.documentElement.classList[r](c),e||(t.scrollTop=d)}function p(){0===l&&f(!0),++l}function b(){1===l&&f(!1),--l}return function(e){Object(i.a)(n,e);var t=u(n);function n(){return Object(r.a)(this,n),t.apply(this,arguments)}return Object(o.a)(n,[{key:"componentDidMount",value:function(){p()}},{key:"componentWillUnmount",value:function(){b()}},{key:"render",value:function(){return null}}]),n}(s.Component)}()},function(e,t,n){"use strict";(function(e){var r=n(0),o=n(2),i=n(9),a=n.n(i),c=n(46),s=n(1),u=(n(90),n(35));t.a=Object(r.forwardRef)((function(t,n){var i=t.className,l=t.children,d=t.spokenMessage,f=void 0===d?l:d,p=t.politeness,b=void 0===p?"polite":p,h=t.actions,v=void 0===h?[]:h,m=t.onRemove,y=void 0===m?o.noop:m;!function(e,t){var n="string"==typeof e?e:Object(r.renderToString)(e);Object(r.useEffect)((function(){n&&Object(c.speak)(n,t)}),[n,t])}(f,b),Object(r.useEffect)((function(){var e=setTimeout((function(){y()}),1e4);return function(){return clearTimeout(e)}}),[]);var g=a()(i,"components-snackbar");return v&&v.length>1&&(void 0!==e&&e.env,v=[v[0]]),Object(r.createElement)("div",{ref:n,className:g,onClick:y,tabIndex:"0",role:"button",onKeyPress:y,"aria-label":Object(s.__)("Dismiss this notice")},Object(r.createElement)("div",{className:"components-snackbar__content"},l,v.map((function(e,t){var n=e.label,o=e.onClick,i=e.url;return Object(r.createElement)(u.a,{key:t,href:i,isTertiary:!0,onClick:function(e){e.stopPropagation(),o&&o(e)},className:"components-snackbar__action"},n)}))))}))}).call(this,n(102))},,,,,function(e,t,n){"use strict";var r=n(0),o=n(2);t.a=function(e){var t,n,i=e.shortcut,a=e.className;return i?(Object(o.isString)(i)&&(t=i),Object(o.isObject)(i)&&(t=i.display,n=i.ariaLabel),Object(r.createElement)("span",{className:a,"aria-label":n},t)):null}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(15),o=(n(13),n(62)),i=n(52);function a(e){void 0===e&&(e={});var t=Object(o.a)(e),n=t.orientation,a=void 0===n?"horizontal":n,c=Object(r.a)(t,["orientation"]);return Object(i.g)(Object(r.b)({orientation:a},c))}var c=[].concat(i.g.__keys);a.__keys=c},,,,function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},,,,,function(e,t,n){"use strict";var r=n(185);e.exports=function(e,t,n){n=n||{},9===t.nodeType&&(t=r.getWindow(t));var o=n.allowHorizontalScroll,i=n.onlyScrollIfNeeded,a=n.alignWithTop,c=n.alignWithLeft,s=n.offsetTop||0,u=n.offsetLeft||0,l=n.offsetBottom||0,d=n.offsetRight||0;o=void 0===o||o;var f=r.isWindow(t),p=r.offset(e),b=r.outerHeight(e),h=r.outerWidth(e),v=void 0,m=void 0,y=void 0,g=void 0,O=void 0,j=void 0,w=void 0,k=void 0,_=void 0,S=void 0;f?(w=t,S=r.height(w),_=r.width(w),k={left:r.scrollLeft(w),top:r.scrollTop(w)},O={left:p.left-k.left-u,top:p.top-k.top-s},j={left:p.left+h-(k.left+_)+d,top:p.top+b-(k.top+S)+l},g=k):(v=r.offset(t),m=t.clientHeight,y=t.clientWidth,g={left:t.scrollLeft,top:t.scrollTop},O={left:p.left-(v.left+(parseFloat(r.css(t,"borderLeftWidth"))||0))-u,top:p.top-(v.top+(parseFloat(r.css(t,"borderTopWidth"))||0))-s},j={left:p.left+h-(v.left+y+(parseFloat(r.css(t,"borderRightWidth"))||0))+d,top:p.top+b-(v.top+m+(parseFloat(r.css(t,"borderBottomWidth"))||0))+l}),O.top<0||j.top>0?!0===a?r.scrollTop(t,g.top+O.top):!1===a?r.scrollTop(t,g.top+j.top):O.top<0?r.scrollTop(t,g.top+O.top):r.scrollTop(t,g.top+j.top):i||((a=void 0===a||!!a)?r.scrollTop(t,g.top+O.top):r.scrollTop(t,g.top+j.top)),o&&(O.left<0||j.left>0?!0===c?r.scrollLeft(t,g.left+O.left):!1===c?r.scrollLeft(t,g.left+j.left):O.left<0?r.scrollLeft(t,g.left+O.left):r.scrollLeft(t,g.left+j.left):i||((c=void 0===c||!!c)?r.scrollLeft(t,g.left+O.left):r.scrollLeft(t,g.left+j.left)))}},function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;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!(!i.default.isMoment(e)||!i.default.isMoment(t))&&(e.date()===t.date()&&e.month()===t.month()&&e.year()===t.year())};var r,o=n(44),i=(r=o)&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=r.default.isMoment(e)?e:(0,o.default)(e,t);return n?n.format(i.ISO_MONTH_FORMAT):null};var r=a(n(44)),o=a(n(254)),i=n(78);function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(17),o=n(21),i=n(22),a=n(16),c=n(23),s=n(24),u=n(19),l=n(0),d=n(2);function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(s.a)(this,n)}}var p=Object(l.createContext)({focusHistory:[]}),b=p.Provider,h=p.Consumer;b.displayName="FocusReturnProvider",h.displayName="FocusReturnConsumer";var v=function(e){Object(c.a)(n,e);var t=f(n);function n(){var e;return Object(o.a)(this,n),(e=t.apply(this,arguments)).onFocus=e.onFocus.bind(Object(a.a)(e)),e.state={focusHistory:[]},e}return Object(i.a)(n,[{key:"onFocus",value:function(e){var t=this.state.focusHistory,n=Object(d.uniq)([].concat(Object(r.a)(t),[e.target]).slice(-100).reverse()).reverse();this.setState({focusHistory:n})}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className;return Object(l.createElement)(b,{value:this.state},Object(l.createElement)("div",{onFocus:this.onFocus,className:n},t))}}]),n}(l.Component);t.b=v},function(e,t,n){"use strict";e.exports=n(322)},function(e,t){var n={};n.parse=function(){var e=/^(\-(webkit|o|ms|moz)\-)?(linear\-gradient)/i,t=/^(\-(webkit|o|ms|moz)\-)?(repeating\-linear\-gradient)/i,n=/^(\-(webkit|o|ms|moz)\-)?(radial\-gradient)/i,r=/^(\-(webkit|o|ms|moz)\-)?(repeating\-radial\-gradient)/i,o=/^to (left (top|bottom)|right (top|bottom)|left|right|top|bottom)/i,i=/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,a=/^(left|center|right|top|bottom)/i,c=/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,s=/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,u=/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,l=/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,d=/^\(/,f=/^\)/,p=/^,/,b=/^\#([0-9a-fA-F]+)/,h=/^([a-zA-Z]+)/,v=/^rgb/i,m=/^rgba/i,y=/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/,g="";function O(e){var t=new Error(g+": "+e);throw t.source=g,t}function j(){var e=D(w);return g.length>0&&O("Invalid input not EOF"),e}function w(){return k("linear-gradient",e,S)||k("repeating-linear-gradient",t,S)||k("radial-gradient",n,E)||k("repeating-radial-gradient",r,E)}function k(e,t,n){return _(t,(function(t){var r=n();return r&&(A(p)||O("Missing comma before color stops")),{type:e,orientation:r,colorStops:D(M)}}))}function _(e,t){var n=A(e);if(n)return A(d)||O("Missing ("),result=t(n),A(f)||O("Missing )"),result}function S(){return N("directional",o,1)||N("angular",l,1)}function E(){var e,t,n=x();return n&&((e=[]).push(n),t=g,A(p)&&((n=x())?e.push(n):g=t)),e}function x(){var e=function(){var e=N("shape",/^(circle)/i,0);e&&(e.style=R()||C());return e}()||function(){var e=N("shape",/^(ellipse)/i,0);e&&(e.style=I()||C());return e}();if(e)e.at=function(){if(N("position",/^at/,0)){var e=P();return e||O("Missing positioning value"),e}}();else{var t=P();t&&(e={type:"default-radial",at:t})}return e}function C(){return N("extent-keyword",i,1)}function P(){var e={x:I(),y:I()};if(e.x||e.y)return{type:"position",value:e}}function D(e){var t=e(),n=[];if(t)for(n.push(t);A(p);)(t=e())?n.push(t):O("One extra comma");return n}function M(){var e=N("hex",b,1)||_(m,(function(){return{type:"rgba",value:D(T)}}))||_(v,(function(){return{type:"rgb",value:D(T)}}))||N("literal",h,0);return e||O("Expected color definition"),e.length=I(),e}function T(){return A(y)[1]}function I(){return N("%",s,1)||N("position-keyword",a,1)||R()}function R(){return N("px",c,1)||N("em",u,1)}function N(e,t,n){var r=A(t);if(r)return{type:e,value:r[n]}}function A(e){var t,n;return(n=/^[\n\r\t\s]+/.exec(g))&&L(n[0].length),(t=e.exec(g))&&L(t[0].length),t}function L(e){g=g.substr(e)}return function(e){return g=e.toString(),j()}}(),t.parse=(n||{}).parse},,,,,,,,function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));t.a=i},,,,,function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));t.a=i},function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));t.a=i},,function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"}));t.a=i},function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M15.6 7.3h-.7l1.6-3.5-.9-.4-3.9 8.5H9v1.5h2l-1.3 2.8H8.4c-2 0-3.7-1.7-3.7-3.7s1.7-3.7 3.7-3.7H10V7.3H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H9l-1.4 3.2.9.4 5.7-12.5h1.4c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.9 0 5.2-2.3 5.2-5.2 0-2.9-2.4-5.2-5.2-5.2z"}));t.a=i},function(e,t,n){"use strict";var r=Object.prototype.toString;e.exports=function(e){var t=r.call(e),n="[object Arguments]"===t;return n||(n="[object Array]"!==t&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===r.call(e.callee)),n}},function(e,t,n){"use strict";(function(t){var r=t.Symbol,o=n(331);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}}).call(this,n(131))},function(e,t,n){"use strict";var r=n(332),o=n(342),i=n(189),a=n(233),c=n(232),s=n(362);e.exports=function(){var e=s(this),t=c(i(e,"length")),n=1;arguments.length>0&&void 0!==arguments[0]&&(n=a(arguments[0]));var u=r(e,0);return o(u,e,t,0,n),u}},function(e,t,n){"use strict";var r=n(58)("%Object.defineProperty%",!0);if(r)try{r({},"a",{value:1})}catch(e){r=null}var o=n(144)("Object.prototype.propertyIsEnumerable");e.exports=function(e,t,n,i,a,c){if(!r){if(!e(c))return!1;if(!c["[[Configurable]]"]||!c["[[Writable]]"])return!1;if(a in i&&o(i,a)!==!!c["[[Enumerable]]"])return!1;var s=c["[[Value]]"];return i[a]=s,t(i[a],s)}return r(i,a,n(c)),!0}},function(e,t,n){"use strict";var r=n(191),o=n(93);e.exports=function(e){if(void 0===e)return e;r(o,"Property Descriptor","Desc",e);var t={};return"[[Value]]"in e&&(t.value=e["[[Value]]"]),"[[Writable]]"in e&&(t.writable=e["[[Writable]]"]),"[[Get]]"in e&&(t.get=e["[[Get]]"]),"[[Set]]"in e&&(t.set=e["[[Set]]"]),"[[Enumerable]]"in e&&(t.enumerable=e["[[Enumerable]]"]),"[[Configurable]]"in e&&(t.configurable=e["[[Configurable]]"]),t}},function(e,t,n){"use strict";var r=n(94),o=n(191),i=n(93);e.exports=function(e){return void 0!==e&&(o(i,"Property Descriptor","Desc",e),!(!r(e,"[[Value]]")&&!r(e,"[[Writable]]")))}},function(e,t,n){"use strict";var r=n(192);e.exports=function(e,t){return e===t?0!==e||1/e==1/t:r(e)&&r(t)}},function(e,t,n){"use strict";var r=n(94),o=n(58)("%TypeError%"),i=n(93),a=n(227),c=n(340);e.exports=function(e){if("Object"!==i(e))throw new o("ToPropertyDescriptor requires an object");var t={};if(r(e,"enumerable")&&(t["[[Enumerable]]"]=a(e.enumerable)),r(e,"configurable")&&(t["[[Configurable]]"]=a(e.configurable)),r(e,"value")&&(t["[[Value]]"]=e.value),r(e,"writable")&&(t["[[Writable]]"]=a(e.writable)),r(e,"get")){var n=e.get;if(void 0!==n&&!c(n))throw new o("getter must be a function");t["[[Get]]"]=n}if(r(e,"set")){var s=e.set;if(void 0!==s&&!c(s))throw new o("setter must be a function");t["[[Set]]"]=s}if((r(t,"[[Get]]")||r(t,"[[Set]]"))&&(r(t,"[[Value]]")||r(t,"[[Writable]]")))throw new o("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}},function(e,t,n){"use strict";e.exports=function(e){return!!e}},function(e,t,n){"use strict";var r,o,i=Function.prototype.toString,a="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof a&&"function"==typeof Object.defineProperty)try{r=Object.defineProperty({},"length",{get:function(){throw o}}),o={},a((function(){throw 42}),null,r)}catch(e){e!==o&&(a=null)}else a=null;var c=/^\s*class\b/,s=function(e){try{var t=i.call(e);return c.test(t)}catch(e){return!1}},u=Object.prototype.toString,l="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=a?function(e){if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;try{a(e,null,r)}catch(e){if(e!==o)return!1}return!s(e)}:function(e){if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;if(l)return function(e){try{return!s(e)&&(i.call(e),!0)}catch(e){return!1}}(e);if(s(e))return!1;var t=u.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t}},function(e,t,n){"use strict";var r=Number.isNaN||function(e){return e!=e};e.exports=Number.isFinite||function(e){return"number"==typeof e&&!r(e)&&e!==1/0&&e!==-1/0}},function(e,t,n){"use strict";var r=n(58),o=r("%Math%"),i=r("%Number%");e.exports=i.MAX_SAFE_INTEGER||o.pow(2,53)-1},function(e,t,n){"use strict";e.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},function(e,t,n){"use strict";var r=n(230),o=n(233);e.exports=function(e){var t=o(e);return t<=0?0:t>r?r:t}},function(e,t,n){"use strict";var r=n(352),o=n(355);e.exports=function(e){var t=o(e);return r(t)}},function(e,t,n){"use strict";var r=Date.prototype.getDay,o=Object.prototype.toString,i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(e){return"object"==typeof e&&null!==e&&(i?function(e){try{return r.call(e),!0}catch(e){return!1}}(e):"[object Date]"===o.call(e))}},function(e,t,n){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},function(e,t,n){"use strict";var r=n(221);e.exports=function(){return Array.prototype.flat||r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=void 0,o=void 0;function i(e,t){var n=t(e(o));return function(){return n}}function a(e){return i(e,r.createLTR||r.create)}function c(){for(var e=arguments.length,t=Array(e),n=0;n=0?1:-1}},function(e,t){e.exports=function(e,t){var n=e%t;return Math.floor(n>=0?n:n+t)}},function(e,t,n){"use strict";var r=n(242);e.exports=function(){return"function"==typeof Object.values?Object.values:r}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return!("undefined"==typeof window||!("ontouchstart"in window||window.DocumentTouch&&"undefined"!=typeof document&&document instanceof window.DocumentTouch))||!("undefined"==typeof navigator||!navigator.maxTouchPoints&&!navigator.msMaxTouchPoints)},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return!(!r.default.isMoment(e)||!r.default.isMoment(t))&&(!(0,o.default)(e,t)&&!(0,i.default)(e,t))};var r=a(n(44)),o=a(n(253)),i=a(n(196));function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!i.default.isMoment(e)||!i.default.isMoment(t))return!1;var n=e.year(),r=e.month(),o=t.year(),a=t.month(),c=n===o,s=r===a;return c&&s?e.date()2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e)return 0;var o="width"===t?"Left":"Top",i="width"===t?"Right":"Bottom",a=!n||r?window.getComputedStyle(e):null,c=e.offsetWidth,s=e.offsetHeight,u="width"===t?c:s;n||(u-=parseFloat(a["padding"+o])+parseFloat(a["padding"+i])+parseFloat(a["border"+o+"Width"])+parseFloat(a["border"+i+"Width"]));r&&(u+=parseFloat(a["margin"+o])+parseFloat(a["margin"+i]));return u}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return 7*e+2*t+1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return!(!i.default.isMoment(e)||!i.default.isMoment(t))&&(e.month()===t.month()&&e.year()===t.year())};var r,o=n(44),i=(r=o)&&r.__esModule?r:{default:r}},,,,,,function(e,t,n){"use strict";n.r(t),n.d(t,"SVG",(function(){return r.SVG})),n.d(t,"Path",(function(){return r.Path})),n.d(t,"Circle",(function(){return r.Circle})),n.d(t,"Polygon",(function(){return r.Polygon})),n.d(t,"Rect",(function(){return r.Rect})),n.d(t,"G",(function(){return r.G})),n.d(t,"HorizontalRule",(function(){return r.HorizontalRule})),n.d(t,"BlockQuotation",(function(){return r.BlockQuotation})),n.d(t,"__experimentalAlignmentMatrixControl",(function(){return st})),n.d(t,"Animate",(function(){return ut.a})),n.d(t,"__unstableUseAnimate",(function(){return ut.b})),n.d(t,"AnglePickerControl",(function(){return Ur})),n.d(t,"Autocomplete",(function(){return Qr})),n.d(t,"BaseControl",(function(){return yt})),n.d(t,"__experimentalBoxControl",(function(){return Oi})),n.d(t,"Button",(function(){return qr.a})),n.d(t,"ButtonGroup",(function(){return ji})),n.d(t,"Card",(function(){return Fi})),n.d(t,"CardBody",(function(){return Vi})),n.d(t,"CardDivider",(function(){return Ki})),n.d(t,"CardFooter",(function(){return $i})),n.d(t,"CardHeader",(function(){return Xi})),n.d(t,"CardMedia",(function(){return Ji})),n.d(t,"CheckboxControl",(function(){return ta})),n.d(t,"ClipboardButton",(function(){return na})),n.d(t,"__experimentalColorEdit",(function(){return Ua})),n.d(t,"ColorIndicator",(function(){return Ga})),n.d(t,"ColorPalette",(function(){return $a})),n.d(t,"ColorPicker",(function(){return Ha})),n.d(t,"ComboboxControl",(function(){return nc})),n.d(t,"CustomSelectControl",(function(){return Xc})),n.d(t,"Dashicon",(function(){return Jc.a})),n.d(t,"DateTimePicker",(function(){return ds})),n.d(t,"DatePicker",(function(){return os})),n.d(t,"TimePicker",(function(){return us})),n.d(t,"__experimentalDimensionControl",(function(){return ys})),n.d(t,"Disabled",(function(){return Ss})),n.d(t,"Draggable",(function(){return Cs})),n.d(t,"DropZone",(function(){return Hs})),n.d(t,"__unstableUseDropZone",(function(){return zs})),n.d(t,"DropZoneProvider",(function(){return Fs})),n.d(t,"Dropdown",(function(){return sa})),n.d(t,"DropdownMenu",(function(){return Qs})),n.d(t,"ExternalLink",(function(){return nu})),n.d(t,"Flex",(function(){return St})),n.d(t,"FlexBlock",(function(){return kt})),n.d(t,"FlexItem",(function(){return Et})),n.d(t,"FocalPointPicker",(function(){return Ru})),n.d(t,"FocusableIframe",(function(){return Fu})),n.d(t,"FontSizePicker",(function(){return ml})),n.d(t,"FormFileUpload",(function(){return yl})),n.d(t,"FormToggle",(function(){return gl})),n.d(t,"FormTokenField",(function(){return Cl})),n.d(t,"__experimentalGradientPicker",(function(){return ld})),n.d(t,"__experimentalCustomGradientPicker",(function(){return ud})),n.d(t,"Guide",(function(){return Dd})),n.d(t,"GuidePage",(function(){return Md})),n.d(t,"Icon",(function(){return fs.a})),n.d(t,"IconButton",(function(){return Td})),n.d(t,"__experimentalInputControl",(function(){return Pr})),n.d(t,"KeyboardShortcuts",(function(){return Oa})),n.d(t,"MenuGroup",(function(){return Id})),n.d(t,"MenuItem",(function(){return Nd})),n.d(t,"MenuItemsChoice",(function(){return Ad})),n.d(t,"Modal",(function(){return Ed})),n.d(t,"ScrollLock",(function(){return Ld.a})),n.d(t,"NavigableMenu",(function(){return Ys})),n.d(t,"TabbableContainer",(function(){return Fd})),n.d(t,"__experimentalNavigation",(function(){return Jd})),n.d(t,"__experimentalNavigationBackButton",(function(){return ef})),n.d(t,"__experimentalNavigationGroup",(function(){return rf})),n.d(t,"__experimentalNavigationItem",(function(){return sf})),n.d(t,"__experimentalNavigationMenu",(function(){return df})),n.d(t,"Notice",(function(){return ff})),n.d(t,"__experimentalNumberControl",(function(){return Fr})),n.d(t,"NoticeList",(function(){return pf})),n.d(t,"Panel",(function(){return hf})),n.d(t,"PanelBody",(function(){return gf})),n.d(t,"PanelHeader",(function(){return bf})),n.d(t,"PanelRow",(function(){return Of})),n.d(t,"Placeholder",(function(){return jf})),n.d(t,"Popover",(function(){return Yr.a})),n.d(t,"QueryControls",(function(){return Cf})),n.d(t,"__experimentalRadio",(function(){return zf})),n.d(t,"__experimentalRadioGroup",(function(){return Uf})),n.d(t,"RadioControl",(function(){return Gf})),n.d(t,"RangeControl",(function(){return hl})),n.d(t,"ResizableBox",(function(){return Dp})),n.d(t,"ResponsiveWrapper",(function(){return Mp})),n.d(t,"SandBox",(function(){return Rp})),n.d(t,"SelectControl",(function(){return vs})),n.d(t,"Snackbar",(function(){return Np.a})),n.d(t,"SnackbarList",(function(){return Bp})),n.d(t,"Spinner",(function(){return Hp})),n.d(t,"TabPanel",(function(){return Kp})),n.d(t,"__experimentalText",(function(){return Xt})),n.d(t,"TextControl",(function(){return xa})),n.d(t,"TextareaControl",(function(){return Xp})),n.d(t,"TextHighlight",(function(){return Jp})),n.d(t,"Tip",(function(){return Qp})),n.d(t,"ToggleControl",(function(){return eb})),n.d(t,"Toolbar",(function(){return bb})),n.d(t,"ToolbarButton",(function(){return ob})),n.d(t,"__experimentalToolbarContext",(function(){return nb.a})),n.d(t,"ToolbarGroup",(function(){return ub})),n.d(t,"ToolbarItem",(function(){return tb.a})),n.d(t,"Tooltip",(function(){return C.a})),n.d(t,"__experimentalTreeGrid",(function(){return gb})),n.d(t,"__experimentalTreeGridRow",(function(){return Ob})),n.d(t,"__experimentalTreeGridCell",(function(){return _b})),n.d(t,"__experimentalTreeGridItem",(function(){return kb})),n.d(t,"TreeSelect",(function(){return Sf})),n.d(t,"__experimentalUnitControl",(function(){return go})),n.d(t,"VisuallyHidden",(function(){return M})),n.d(t,"IsolatedEventContainer",(function(){return dd.a})),n.d(t,"createSlotFill",(function(){return Sb.c})),n.d(t,"Slot",(function(){return Sb.b})),n.d(t,"Fill",(function(){return Sb.a})),n.d(t,"SlotFillProvider",(function(){return Eb.b})),n.d(t,"__experimentalUseSlot",(function(){return xb.a})),n.d(t,"navigateRegions",(function(){return Pb})),n.d(t,"withConstrainedTabbing",(function(){return pd.a})),n.d(t,"withFallbackStyles",(function(){return Mb})),n.d(t,"withFilters",(function(){return Rb})),n.d(t,"withFocusOutside",(function(){return ru.a})),n.d(t,"withFocusReturn",(function(){return fd.a})),n.d(t,"FocusReturnProvider",(function(){return Nb.b})),n.d(t,"withNotices",(function(){return Gb})),n.d(t,"withSpokenMessages",(function(){return Xr}));var r=n(7),o=n(8),i=n(12),a=n(14),c=n(0),s=n(2),u=n(9),l=n.n(u),d=n(52),f=n(122),p=n(15),b=n(51),h=n(50),v=n(13),m=n.n(v),y=n(63),g=n(59),O=n(67),j=Object(h.a)({name:"Group",compose:O.a,useProps:function(e,t){return Object(p.b)({role:"group"},t)}}),w=(Object(b.a)({as:"div",useHook:j}),n(96)),k=Object(h.a)({name:"CompositeGroup",compose:[j,w.a],useState:d.g,propsAreEqual:function(e,t){if(!t.id||e.id!==t.id)return j.unstable_propsAreEqual(e,t);var n=e.currentId,r=(e.unstable_moves,Object(p.a)(e,["currentId","unstable_moves"])),o=t.currentId,i=(t.unstable_moves,Object(p.a)(t,["currentId","unstable_moves"]));if(e.items&&t.items){var a=Object(d.d)(e.items,n),c=Object(d.d)(t.items,o),s=null==a?void 0:a.groupId,u=null==c?void 0:c.groupId;if(t.id===u||t.id===s)return!1}return j.unstable_propsAreEqual(r,i)},useProps:function(e,t){var n=t.ref,r=Object(p.a)(t,["ref"]),o=Object(v.useRef)(null),i=e.id;return Object(g.a)((function(){var t;if(i)return null===(t=e.registerGroup)||void 0===t||t.call(e,{id:i,ref:o}),function(){var t;null===(t=e.unregisterGroup)||void 0===t||t.call(e,i)}}),[i,e.registerGroup,e.unregisterGroup]),Object(p.b)({ref:Object(y.a)(o,n)},r)}}),_=Object(b.a)({as:"div",useHook:k}),S=n(1),E=n(10),x=n(123),C=n(84),P=n(5);function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var M=function(e){var t=e.as,n=void 0===t?"div":t,r=e.className,o=Object(a.a)(e,["as","className"]);return function(e){var t=e.as,n=void 0===t?"div":t,r=Object(a.a)(e,["as"]);return"function"==typeof r.children?r.children(r):Object(c.createElement)(n,r)}(function(e){for(var t=1;tr&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(h,"$1"+e.trim());case 58:return e.trim()+t.replace(h,"$1"+e.trim());default:if(0<1*n&&0s.charCodeAt(8))break;case 115:a=a.replace(s,"-webkit-"+s)+";"+a;break;case 207:case 102:a=a.replace(s,"-webkit-"+(102c.charCodeAt(0)&&(c=c.trim()),c=[c],0p)&&(z=(V=V.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=z((function(e){return ne(e)?e:e.replace(ee,"-$&").toLowerCase()})),ie=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(te,(function(e,t,n){return ce={name:t,styles:n,next:ce},t}))}return 1===Q[e]||ne(e)||"number"!=typeof t||0===t?t:t+"px"};function ae(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return ce={name:n.name,styles:n.styles,next:ce},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)ce={name:o.name,styles:o.styles,next:ce},o=o.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;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,i=n.b;return"rgba(".concat(r,", ").concat(o,", ").concat(i,", ").concat(t,")")}function Fe(e){return Object(s.get)(Ae,e,"#000")}function ze(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transition";switch(t){case"transition":e="transition-duration: 0ms;";break;case"animation":e="animation-duration: 1ms;";break;default:e="\n\t\t\t\tanimation-duration: 1ms;\n\t\t\t\ttransition-duration: 0ms;\n\t\t\t"}return"\n\t\t@media ( prefers-reduced-motion: reduce ) {\n\t\t\t".concat(e,";\n\t\t}\n\t")}var Be={name:"1xiracb",styles:"border-radius:2px;box-sizing:border-box;display:grid;grid-template-columns:repeat( 3,1fr );outline:none;"},He=function(){return Be},Ve=je("div",{target:"e1od1u4s0",label:"Root"})(He,";border:1px solid transparent;cursor:pointer;grid-template-columns:auto;",(function(e){var t=e.size,n=void 0===t?92:t;return le("grid-template-rows:repeat( 3,calc( ",n,"px / 3 ) );width:",n,"px;")}),";"),Ke=je("div",{target:"e1od1u4s1",label:"Row"})({name:"1177s8r",styles:"box-sizing:border-box;display:grid;grid-template-columns:repeat( 3,1fr );"}),We=function(e){return le("background:currentColor;box-sizing:border-box;display:grid;margin:auto;transition:all 120ms linear;",ze("transition")," ",(t=e.isActive,n=t?"0 0 0 2px ".concat(Fe("black")):null,r=Fe(t?"black":"lightGray.800"),o=Fe(t?"black":"blue.medium.focus"),le("box-shadow:",n,";color:",r,";*:hover > &{color:",o,";}")),"");var t,n,r,o},Ue=je("span",{target:"e1od1u4s2",label:"Point"})("height:6px;width:6px;",We,""),Ge=je("span",{target:"e1od1u4s3",label:"Cell"})({name:"10ro24i",styles:"appearance:none;border:none;box-sizing:border-box;margin:0;display:flex;position:relative;outline:none;align-items:center;justify-content:center;padding:0;"});function $e(e){var t=e.isActive,n=void 0!==t&&t,r=e.value,i=Object(a.a)(e,["isActive","value"]),s=I[r];return Object(c.createElement)(C.a,{text:s},Object(c.createElement)(x.a,Object(o.a)({as:Ge,role:"gridcell"},i),Object(c.createElement)(M,null,r),Object(c.createElement)(Ue,{isActive:n,role:"presentation"})))}var qe=new RegExp(/-left/g),Ye=new RegExp(/-right/g),Ze=new RegExp(/Left/g),Xe=new RegExp(/Right/g);function Je(){return!(!document||"rtl"!==document.documentElement.dir)}function Qe(){return Je()}function et(e){return"left"===e?"right":"right"===e?"left":qe.test(e)?e.replace(qe,"-right"):Ye.test(e)?e.replace(Ye,"-left"):Ze.test(e)?e.replace(Ze,"Right"):Xe.test(e)?e.replace(Xe,"Left"):e}var tt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(s.mapKeys)(e,(function(e,t){return et(t)}))};function nt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return function(){var n=Je();return le(t?n?t:e:n?tt(e):e,"")}}je("div",{target:"elqsdmc0",label:"Wrapper"})({name:"co61ta",styles:"box-sizing:border-box;padding:2px;"});var rt=je("div",{target:"elqsdmc1",label:"Root"})("transform-origin:top left;height:100%;width:100%;",He,";",(function(){return le({gridTemplateRows:"repeat( 3, calc( ".concat(21,"px / 3))"),padding:1.5,maxHeight:24,maxWidth:24},"")}),";",(function(e){var t=e.disablePointerEvents;return le({pointerEvents:t?"none":null},"")}),";"),ot=je("span",{target:"elqsdmc2",label:"Point"})("height:2px;width:2px;",We,";",(function(e){var t=e.isActive;return le("box-shadow:",t?"0 0 0 1px currentColor":null,";color:currentColor;*:hover > &{color:currentColor;}")}),";"),it=Ge;function at(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ct(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"center",t=N(e).replace("-"," "),n=R.indexOf(t);return n>-1?n:void 0}(p),v=(s/24).toFixed(2),m=l()("component-alignment-matrix-control-icon",t),y=ct(ct({},d),{},{transform:"scale(".concat(v,")")});return Object(c.createElement)(rt,Object(o.a)({},b,{className:m,disablePointerEvents:r,role:"presentation",size:s,style:y}),R.map((function(e,t){var n=h===t;return Object(c.createElement)(it,{key:e},Object(c.createElement)(ot,{isActive:n}))})))};var ut=n(124),lt={"default.fontFamily":"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif","default.fontSize":"13px","helpText.fontSize":"12px",mobileTextMinFontSize:"16px"};function dt(e){return Object(s.get)(lt,e,"")}function ft(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return isNaN(e)?"".concat(8,"px"):"".concat(8*e,"px")}var pt=je("div",{target:"e1puf3u0",label:"Wrapper"})("font-family:",dt("default.fontFamily"),";font-size:",dt("default.fontSize"),";"),bt=je("div",{target:"e1puf3u1",label:"StyledField"})("margin-bottom:",ft(1),";.components-panel__row &{margin-bottom:inherit;}"),ht=je("label",{target:"e1puf3u2",label:"StyledLabel"})("display:inline-block;margin-bottom:",ft(1),";"),vt=je("p",{target:"e1puf3u3",label:"StyledHelp"})("margin-top:-",ft(1),";font-size:",dt("helpText.fontSize"),";font-style:normal;color:",Fe("mediumGray.text"),";");function mt(e){var t=e.id,n=e.label,r=e.hideLabelFromVision,o=e.help,i=e.className,a=e.children;return Object(c.createElement)(pt,{className:l()("components-base-control",i)},Object(c.createElement)(bt,{className:"components-base-control__field"},n&&t&&(r?Object(c.createElement)(M,{as:"label",htmlFor:t},n):Object(c.createElement)(ht,{className:"components-base-control__label",htmlFor:t},n)),n&&!t&&(r?Object(c.createElement)(M,{as:"label"},n):Object(c.createElement)(mt.VisualLabel,null,n)),a),!!o&&Object(c.createElement)(vt,{id:t+"__help",className:"components-base-control__help"},o))}mt.VisualLabel=function(e){var t=e.className,n=e.children;return t=l()("components-base-control__label",t),Object(c.createElement)("span",{className:t},n)};var yt=mt;var gt={name:"8kj89b",styles:"flex-direction:row-reverse;"},Ot=je("div",{target:"eboqfv50",label:"Flex"})("box-sizing:border-box;display:flex;width:100%;",(function(e){var t=e.align;return le({alignItems:{top:"flex-start",bottom:"flex-end"}[t]||t},"")})," ",(function(e){var t=e.justify,n=e.isReversed,r={left:"flex-start",right:"flex-end"},o=r[t]||t;return n&&r[t]&&(o="left"===t?r.right:r.left),le({justifyContent:o},"")})," ",(function(e){var t=e.gap,n=e.isReversed,r="number"==typeof t?4*t:4,o="margin-".concat(n?"left":"right");return le("> *{",o,":",r,"px;&:last-child{",o,":0;}}")})," ",(function(e){return e.isReversed?gt:""}),""),jt=je("div",{target:"eboqfv51",label:"Item"})({name:"13luw5d",styles:"box-sizing:border-box;min-width:0;max-width:100%;"}),wt=je(jt,{target:"eboqfv52",label:"Block"})({name:"1rr4qq7",styles:"flex:1;"});var kt=Object(c.forwardRef)((function(e,t){var n=e.className,r=Object(a.a)(e,["className"]),i=l()("components-flex__block",n);return Object(c.createElement)(wt,Object(o.a)({},r,{className:i,ref:t}))}));var _t=Object(c.forwardRef)((function(e,t){var n=e.align,r=void 0===n?"center":n,i=e.className,s=e.gap,u=void 0===s?2:s,d=e.justify,f=void 0===d?"space-between":d,p=e.isReversed,b=void 0!==p&&p,h=Object(a.a)(e,["align","className","gap","justify","isReversed"]),v=l()("components-flex",i);return Object(c.createElement)(Ot,Object(o.a)({},h,{align:r,className:v,ref:t,gap:u,justify:f,isReversed:b}))})),St=_t;var Et=Object(c.forwardRef)((function(e,t){var n=e.className,r=Object(a.a)(e,["className"]),i=l()("components-flex__item",n);return Object(c.createElement)(jt,Object(o.a)({},r,{className:i,ref:t}))}));function xt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Ct=le;function Pt(){var e=xt(["\n\t","\n\t","\n"]);return Pt=function(){return e},e}function Dt(){var e=xt(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return Dt=function(){return e},e}function Mt(){var e=xt(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return Mt=function(){return e},e}function Tt(){var e=xt(["\n\t\t\t\t","\n\t\t\t"]);return Tt=function(){return e},e}function It(){var e=xt(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return It=function(){return e},e}function Rt(){var e=xt(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return Rt=function(){return e},e}function Nt(){var e=xt(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return Nt=function(){return e},e}function At(){var e=xt(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return At=function(){return e},e}function Lt(){var e=xt(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return Lt=function(){return e},e}var Ft="\n ".concat("font-weight: 400;","\n"),zt="\n\tfont-size: 32px;\n\tline-height: 40px;\n",Bt="\n\tfont-size: 24px;\n\tline-height: 32px;\n",Ht="\n\tfont-size: 20px;\n\tline-height: 28px;\n",Vt="\n\t".concat("font-weight: 600;","\n\tfont-size: 14px;\n\tline-height: 20px;\n"),Kt="\n\t".concat("font-weight: 400;","\n"),Wt="\n\tfont-size: 16px;\n\tline-height: 24px;\n",Ut="\n\tfont-size: 14px;\n\tline-height: 20px;\n",Gt="\n ".concat("font-weight: 600;","\n font-size: 14px;\n line-height: 20px;\n"),$t="\n\t".concat("font-weight: 400;","\n\tfont-size: 12px;\n\tline-height: 16px;\n"),qt="\n\t".concat("font-weight: 600;","\n\tfont-size: 12px;\n\tline-height: 16px;\n"),Yt="\n\t".concat("font-weight: 500;","\n\tfont-size: 11px;\n\tline-height: 1.4;\n\ttext-transform: uppercase;\n\tcolor: ").concat(xe.gray[700],"\n"),Zt=function(e){return Ct(Pt(),'font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,\nOxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;',function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body";switch(e){case"title.large":return Ct(Lt(),Ft,zt);case"title.medium":return Ct(At(),Ft,Bt);case"title.small":return Ct(Nt(),Ft,Ht);case"subtitle":return Ct(Rt(),Vt,"\n\tfont-size: 16px;\n\tline-height: 24px;\n");case"subtitle.small":return Ct(It(),Vt,"\n\tfont-size: 14px;\n\tline-height: 20px;\n");case"body":return Ct(Tt(),Kt);case"body.large":return Ct(Mt(),Kt,Wt);case"body.small":return Ct(Dt(),Kt,Ut);case"button":return Gt;case"caption":return $t;case"label":return qt;case"sectionheading":return Yt}}(e.variant))},Xt=je("p",{target:"e15wbhsk0",label:"Text"})("\n\tbox-sizing: border-box;\n\tmargin: 0;\n",Zt,"");var Jt={name:"1dacand",styles:"padding-top:0;"},Qt=function(){return Jt},en={name:"r6z5ec",styles:"z-index:1;"},tn=function(e){return e.isFocused?en:""},nn={name:"uz6002",styles:"align-items:flex-start;flex-direction:column;"},rn={name:"53hdd7",styles:"align-items:flex-start;flex-direction:column-reverse;"},on={name:"x4dmss",styles:"justify-content:space-between;"},an=function(e){switch(e.labelPosition){case"top":return nn;case"bottom":return rn;case"edge":return on;default:return""}},cn=je(St,{target:"e1cr7zh10",label:"Root"})("position:relative;border-radius:2px;",Qt," ",tn," ",an,""),sn={name:"8atqhb",styles:"width:100%;"},un=je("div",{target:"e1cr7zh11",label:"Container"})("align-items:center;box-sizing:border-box;border-radius:inherit;display:flex;flex:1;position:relative;",(function(e){var t=Fe(e.disabled?"ui.backgroundDisabled":"ui.background");return le({backgroundColor:t},"")})," ",(function(e){var t=e.__unstableInputWidth,n=e.labelPosition;return t?"side"===n?"":le("edge"===n?{flex:"0 0 ".concat(t)}:{width:t},""):sn}),""),ln={name:"103r1kr",styles:"&::-webkit-input-placeholder{line-height:normal;}"},dn=je("input",{target:"e1cr7zh12",label:"Input"})("&&&{background-color:transparent;box-sizing:border-box;border:none;box-shadow:none !important;color:",Fe("black"),";display:block;margin:0;outline:none;padding-left:8px;padding-right:8px;width:100%;",(function(e){var t=e.isDragging,n=e.dragCursor,r="",o="";return t&&(r=le("cursor:",n,";user-select:none;&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none !important;margin:0 !important;}")),t&&n&&(o=le("&:active{cursor:",n,";}")),le(r," ",o,"")})," ",(function(e){return e.disabled?le({color:Fe("ui.textDisabled")},""):""})," ",(function(e){var t={default:"13px",small:"11px"}[e.size];return t?le("font-size:","16px",";@media ( min-width:600px ){font-size:",t,";}"):""})," ",(function(e){var t=e.size,n={default:{height:30,lineHeight:1,minHeight:30},small:{height:24,lineHeight:1,minHeight:24}};return le(n[t]||n.default,"")})," ",(function(){return ln}),"}"),fn={name:"8uhtka",styles:"overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"},pn=function(){return fn},bn=function(e){var t=e.labelPosition,n=4;return"edge"!==t&&"side"!==t||(n=0),le({paddingTop:0,paddingBottom:n},"")},hn=je(Xt,{target:"e1cr7zh13",label:"BaseLabel"})("&&&{box-sizing:border-box;color:currentColor;display:block;margin:0;max-width:100%;z-index:1;",bn," ",pn,"}"),vn=function(e){return Object(c.createElement)(hn,Object(o.a)({},e,{as:"label"}))},mn=je(Et,{target:"e1cr7zh14",label:"LabelWrapper"})({name:"120o8im",styles:"max-width:calc( 100% - 10px );"}),yn=je("div",{target:"e1cr7zh15",label:"BackdropUI"})("&&&{box-sizing:border-box;border-radius:inherit;bottom:0;left:0;margin:0;padding:0;pointer-events:none;position:absolute;right:0;top:0;",(function(e){var t=e.disabled,n=e.isFocused,r=Fe(n?"ui.borderFocus":"ui.border"),o=null;return n&&(o="0 0 0 1px ".concat(Fe("ui.borderFocus")," inset")),t&&(r=Fe("ui.borderDisabled")),le({boxShadow:o,borderColor:r,borderStyle:"solid",borderWidth:1},"")})," ",nt({paddingLeft:2}),"}"),gn=je("span",{target:"e1cr7zh16",label:"Prefix"})({name:"1pxuk39",styles:"box-sizing:border-box;display:block;"}),On=je("span",{target:"e1cr7zh17",label:"Suffix"})({name:"1pxuk39",styles:"box-sizing:border-box;display:block;"});var jn=Object(c.memo)((function(e){var t=e.disabled,n=void 0!==t&&t,r=e.isFocused,o=void 0!==r&&r;return Object(c.createElement)(yn,{"aria-hidden":"true",className:"components-input-control__backdrop",disabled:n,isFocused:o})}));function wn(e){var t=e.children,n=e.hideLabelFromVision,r=e.htmlFor,i=Object(a.a)(e,["children","hideLabelFromVision","htmlFor"]);return t?n?Object(c.createElement)(M,{as:"label",htmlFor:r},t):Object(c.createElement)(vn,Object(o.a)({htmlFor:r},i),t):null}function kn(e,t){var n=e.__unstableInputWidth,r=e.children,i=e.className,s=e.disabled,u=void 0!==s&&s,l=e.hideLabelFromVision,d=void 0!==l&&l,f=e.labelPosition,p=e.id,b=e.isFocused,h=void 0!==b&&b,v=e.label,m=e.prefix,y=e.size,g=void 0===y?"default":y,O=e.suffix,j=Object(a.a)(e,["__unstableInputWidth","children","className","disabled","hideLabelFromVision","labelPosition","id","isFocused","label","prefix","size","suffix"]),w=function(e){var t=Object(E.useInstanceId)(kn),n="input-base-control-".concat(t);return e||n}(p);return Object(c.createElement)(cn,Object(o.a)({},j,{className:i,isFocused:h,labelPosition:f,ref:t}),Object(c.createElement)(mn,null,Object(c.createElement)(wn,{className:"components-input-control__label",hideLabelFromVision:d,labelPosition:f,htmlFor:w,size:g},v)),Object(c.createElement)(un,{__unstableInputWidth:n,className:"components-input-control__container",disabled:u,isFocused:h,labelPosition:f},m&&Object(c.createElement)(gn,{className:"components-input-control__prefix"},m),r,O&&Object(c.createElement)(On,{className:"components-input-control__suffix"},O),Object(c.createElement)(jn,{"aria-hidden":"true",disabled:u,isFocused:h,label:v,size:g})))}var _n=Object(c.forwardRef)(kn);function Sn(e,t){return e.map((function(e,n){return e+t[n]}))}function En(e,t){return e.map((function(e,n){return e-t[n]}))}function xn(e,t,n){return n=n||Math.hypot.apply(Math,e),t?n/t:0}function Cn(e,t){return t?e.map((function(e){return e/t})):Array(e.length).fill(0)}function Pn(e){return Math.hypot.apply(Math,e)}function Dn(e,t){return t=t||Math.hypot.apply(Math,e)||1,e.map((function(e){return e/t}))}function Mn(e,t,n){var r=Math.hypot.apply(Math,t);return{velocities:Cn(t,n),velocity:xn(t,n,r),distance:Pn(e),direction:Dn(t,r)}}function Tn(e){return Math.sign?Math.sign(e):Number(e>0)-Number(e<0)||+e}function In(e,t){return Math.abs(e)>=t&&Tn(e)*t}function Rn(e,t,n){return 0===t||Math.abs(t)===1/0?function(e,t){return Math.pow(e,5*t)}(e,n):e*t*n/(t+n*e)}function Nn(e,t,n,r){return void 0===r&&(r=.15),0===r?function(e,t,n){return Math.max(t,Math.min(e,n))}(e,t,n):en?Rn(e-n,n-t,r)+n:e}function An(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}function Bn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[t++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}function Vn(){}var Kn=function(){for(var e=arguments.length,t=new Array(e),n=0;n0?t:n}return null}function Qn(e){var t="buttons"in e?e.buttons:0,n=Jn(e),r=n&&n.length||0;return Ln({touches:r,down:r>0||t>0,buttons:t},function(e){return{shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey}}(e))}function er(e){var t=Jn(e),n=t?t[0]:e;return{values:[n.clientX,n.clientY]}}var tr=function(){var e=this;this.state=qn(),this.timeouts={},this.domListeners=[],this.windowListeners={},this.bindings={},this.clean=function(){e.resetBindings(),Object.values(e.timeouts).forEach(clearTimeout),Object.keys(e.windowListeners).forEach((function(t){return e.removeWindowListeners(t)}))},this.resetBindings=function(){e.bindings={};var t=e.getDomTarget();t&&(Xn(t,e.domListeners,e.config.eventOptions),e.domListeners=[])},this.getDomTarget=function(){var t=e.config.domTarget;return t&&"current"in t?t.current:t},this.addWindowListeners=function(t,n){e.config.window&&(e.windowListeners[t]=n,Zn(e.config.window,n,e.config.eventOptions))},this.removeWindowListeners=function(t){if(e.config.window){var n=e.windowListeners[t];n&&(Xn(e.config.window,n,e.config.eventOptions),delete e.windowListeners[t])}},this.addDomTargetListeners=function(t){Object.entries(e.bindings).forEach((function(t){var n=t[0],r=t[1];e.domListeners.push([n.substr(2).toLowerCase(),Kn.apply(void 0,r)])})),Zn(t,e.domListeners,e.config.eventOptions)},this.addBindings=function(t,n){(Array.isArray(t)?t:[t]).forEach((function(t){e.bindings[t]?e.bindings[t].push(n):e.bindings[t]=[n]}))},this.getBindings=function(){var t={},n=e.config.captureString;return Object.entries(e.bindings).forEach((function(e){var r=e[0],o=e[1],i=Array.isArray(o)?o:[o];t[r+n]=Kn.apply(void 0,i)})),t},this.getBind=function(){if(e.config.domTarget){var t=e.getDomTarget();return t&&e.addDomTargetListeners(t),e.clean}return e.getBindings()}};function nr(e,t,n,r){var o=m.a.useMemo((function(){var e=new tr;return{nativeRefs:r,current:e,bind:function(){e.resetBindings();for(var n=arguments.length,r=new Array(n),i=0;i2?o-2:0),a=2;ad?"x":l0?(r.state._delayedEvent=!0,"function"==typeof e.persist&&e.persist(),r.setTimeout((function(){return r.startDrag(e)}),r.config.delay)):r.startDrag(e))},r.onDragChange=function(e){if(!r.state.canceled)if(r.state._active){var t=Qn(e);if(t.down){r.updateSharedState(t);var n=er(e).values,o=r.getKinematics(n,e),i=r.state._isTap;i&&Pn(o._movement)>=3&&(i=!1),r.updateGestureState(Ln(Ln(Ln({},r.getGenericPayload(e)),o),{},{_isTap:i,cancel:function(){return r.onCancel()}})),r.fireGestureHandler()}else r.onDragEnd(e)}else r.state._delayedEvent&&(r.clearTimeout(),r.startDrag(e))},r.onDragEnd=function(e){r.state._active=!1,r.updateSharedState({down:!1,buttons:0,touches:0});var t=r.state,n=t._isTap,o=t.values,i=t.velocities,a=i[0],c=i[1],s=t.movement,u=s[0],l=s[1],d=t._intentional,f=d[0],p=d[1],b=Ln(Ln({},r.getGenericPayload(e)),r.getMovement(o)),h=b.elapsedTime,v=r.config,m=v.swipeVelocity,y=m[0],g=m[1],O=v.swipeDistance,j=O[0],w=O[1],k=[0,0];h<220&&(!1!==f&&Math.abs(a)>y&&Math.abs(u)>j&&(k[0]=Tn(a)),!1!==p&&Math.abs(c)>g&&Math.abs(l)>w&&(k[1]=Tn(c))),r.updateGestureState(Ln(Ln({event:e},b),{},{tap:n,swipe:k})),r.fireGestureHandler(r.config.filterTaps&&r.state._isTap)},r.clean=function(){e.prototype.clean.call(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r)),r.state._delayedEvent=!1,r.controller.config.pointer&&r.removePointers()},r.onCancel=function(){r.updateGestureState({canceled:!0,cancel:Vn}),r.state._active=!1,r.updateSharedState({down:!1,buttons:0,touches:0}),requestAnimationFrame((function(){return r.fireGestureHandler()}))},r}Fn(t,e);var n=t.prototype;return n.startDrag=function(e){var t=this,n=er(e).values;this.updateSharedState(Qn(e));var r=Ln(Ln({},this.getStartGestureState(n,e)),this.getGenericPayload(e,!0));this.updateGestureState(Ln(Ln(Ln({},r),this.getMovement(n,r)),{},{cancel:function(){return t.onCancel()}})),this.fireGestureHandler()},n.addBindings=function(){this.controller.config.pointer?(this.controller.addBindings("onPointerDown",this.onDragStart),this.controller.addBindings("onPointerMove",this.onDragChange),this.controller.addBindings(["onPointerUp","onPointerCancel"],this.onDragEnd)):this.controller.addBindings(["onTouchStart","onMouseDown"],this.onDragStart)},t}(or),ar="undefined"!=typeof window?window:void 0,cr={lockDirection:!1,axis:void 0,bounds:void 0};function sr(e){void 0===e&&(e={});var t=e,n=t.eventOptions,r=(n=void 0===n?{}:n).passive,o=void 0===r||r,i=n.capture,a=void 0!==i&&i,c=n.pointer,s=void 0!==c&&c,u=t.window,l=void 0===u?ar:u,d=t.domTarget,f=void 0===d?void 0:d,p=t.enabled,b=void 0===p||p;return Ln(Ln({},zn(t,["eventOptions","window","domTarget","enabled"])),{},{enabled:b,domTarget:f,window:l,eventOptions:{passive:!f||!!o,capture:!!a},captureString:a?"Capture":"",pointer:!!s})}function ur(e){var t=e.threshold,n=void 0===t?void 0:t,r=e.rubberband,o=void 0===r?0:r,i=e.enabled,a=void 0===i||i,c=e.initial;return"boolean"==typeof o&&(o=o?.15:0),void 0===n&&(n=0),{enabled:a,initial:void 0===c?[0,0]:c,threshold:Wn(n),rubberband:Wn(o)}}function lr(e){void 0===e&&(e={});var t=e,n=t.axis,r=t.lockDirection,o=t.bounds,i=void 0===o?{}:o,a=zn(t,["axis","lockDirection","bounds"]),c=[[Un(i.left,-1/0),Un(i.right,1/0)],[Un(i.top,-1/0),Un(i.bottom,1/0)]];return Ln(Ln(Ln(Ln({},ur(a)),cr),Gn({axis:n,lockDirection:r},e)),{},{bounds:c})}function dr(e){void 0===e&&(e={});var t=e,n=t.enabled,r=t.threshold,o=t.bounds,i=t.rubberband,a=t.initial,c=zn(t,["enabled","threshold","bounds","rubberband","initial"]),s=c.swipeVelocity,u=void 0===s?.5:s,l=c.swipeDistance,d=void 0===l?60:l,f=c.delay,p=void 0!==f&&f,b=c.filterTaps,h=void 0!==b&&b,v=c.axis,m=c.lockDirection;void 0===r?r=Math.max(0,h?3:0,m||v?1:0):h=!0;var y=lr(Gn({enabled:n,threshold:r,bounds:o,rubberband:i,axis:v,lockDirection:m,initial:a},e));return Ln(Ln({},y),{},{filterTaps:h||y.threshold[0]+y.threshold[1]>0,swipeVelocity:Wn(u),swipeDistance:Wn(d),delay:"number"==typeof p?p:p?180:0})}var fr=function(e){function t(t,n){var r;return(r=e.call(this,"move",t,n)||this).ingKey="moving",r.debounced=!0,r.moveShouldRun=function(){return r.enabled},r.onMove=function(e){r.moveShouldRun()&&(r.clearTimeout(),r.setTimeout(r.onMoveEnd),r.state._active?r.onMoveChange(e):r.onMoveStart(e))},r.onMoveStart=function(e){var t=er(e).values;r.updateSharedState(Qn(e));var n=Ln(Ln({},r.getStartGestureState(t,e)),r.getGenericPayload(e,!0));r.updateGestureState(Ln(Ln({},n),r.getMovement(t,n))),r.fireGestureHandler()},r.onMoveChange=function(e){var t=Qn(e);r.updateSharedState(t);var n=er(e).values,o=r.getKinematics(n,e);r.updateGestureState(Ln(Ln({},r.getGenericPayload(e)),o)),r.fireGestureHandler()},r.onMoveEnd=function(){r.state._active=!1,r.updateGestureState(Ln(Ln({},r.getMovement(r.state.values)),{},{velocities:[0,0],velocity:0})),r.fireGestureHandler()},r.onPointerEnter=function(e){if(r.controller.state.shared.hovering=!0,r.controller.config.enabled){if(r.controller.config.hover.enabled){var t=er(e).values,n=Ln(Ln(Ln(Ln({},r.controller.state.shared),r.state),r.getGenericPayload(e,!0)),{},{values:t,active:!0,hovering:!0});r.controller.handlers.hover(Ln(Ln({},n),r.mapStateValues(n)))}"move"in r.controller.handlers&&r.onMoveStart(e)}},r.onPointerLeave=function(e){if(r.controller.state.shared.hovering=!1,"move"in r.controller.handlers&&r.onMoveEnd(),r.controller.config.hover.enabled){var t=er(e).values,n=Ln(Ln(Ln(Ln({},r.controller.state.shared),r.state),r.getGenericPayload(e)),{},{values:t,active:!1});r.controller.handlers.hover(Ln(Ln({},n),r.mapStateValues(n)))}},r}return Fn(t,e),t.prototype.addBindings=function(){this.controller.config.pointer?("move"in this.controller.handlers&&this.controller.addBindings("onPointerMove",this.onMove),"hover"in this.controller.handlers&&(this.controller.addBindings("onPointerEnter",this.onPointerEnter),this.controller.addBindings("onPointerLeave",this.onPointerLeave))):("move"in this.controller.handlers&&this.controller.addBindings("onMouseMove",this.onMove),"hover"in this.controller.handlers&&(this.controller.addBindings("onMouseEnter",this.onPointerEnter),this.controller.addBindings("onMouseLeave",this.onPointerLeave)))},t}(or);var pr=n(18);function br(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hr(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:mr,t=e.value;return hr(hr(hr({},mr),e),{},{initialValue:t})}var jr=function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0;return null!==(e=t.find(kr))&&void 0!==e?e:n}var Er=function(e,t){var n=Object(c.useRef)(!1);Object(c.useEffect)((function(){if(n.current)return e();n.current=!0}),t)};var xr=Object(c.forwardRef)((function(e,t){var n=e.disabled,r=void 0!==n&&n,u=e.dragDirection,l=void 0===u?"n":u,d=e.dragThreshold,f=void 0===d?10:d,p=e.id,b=e.isDragEnabled,h=void 0!==b&&b,v=e.isFocused,m=e.isPressEnterToChange,y=void 0!==m&&m,g=e.onBlur,O=void 0===g?s.noop:g,j=e.onChange,w=void 0===j?s.noop:j,k=e.onDrag,_=void 0===k?s.noop:k,S=e.onDragEnd,E=void 0===S?s.noop:S,x=e.onDragStart,C=void 0===x?s.noop:x,P=e.onFocus,D=void 0===P?s.noop:P,M=e.onKeyDown,T=void 0===M?s.noop:M,I=e.onValidate,R=void 0===I?s.noop:I,N=e.size,A=void 0===N?"default":N,L=e.setIsFocused,F=e.stateReducer,z=void 0===F?function(e){return e}:F,B=e.value,H=e.type,V=Object(a.a)(e,["disabled","dragDirection","dragThreshold","id","isDragEnabled","isFocused","isPressEnterToChange","onBlur","onChange","onDrag","onDragEnd","onDragStart","onFocus","onKeyDown","onValidate","size","setIsFocused","stateReducer","value","type"]),K=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:vr,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:mr,n=Object(c.useReducer)(wr(e),Or(t)),r=Object(i.a)(n,2),o=r[0],a=r[1],s=function(e){return function(t,n){n&&n.persist&&n.persist(),a({type:e,payload:{value:t,event:n}})}},u=function(e){return function(t){t&&t.persist&&t.persist(),a({type:e,payload:{event:t}})}},l=function(e){return function(t){a({type:e,payload:t})}},d=s(yr.CHANGE),f=s(yr.INVALIDATE),p=s(yr.RESET),b=s(yr.COMMIT),h=s(yr.UPDATE),v=l(yr.DRAG_START),m=l(yr.DRAG),y=l(yr.DRAG_END),g=u(yr.PRESS_UP),O=u(yr.PRESS_DOWN),j=u(yr.PRESS_ENTER);return{change:d,commit:b,dispatch:a,drag:m,dragEnd:y,dragStart:v,invalidate:f,pressDown:O,pressEnter:j,pressUp:g,reset:p,state:o,update:h}}(z,{isDragEnabled:h,value:B,isPressEnterToChange:y}),W=K.state,U=K.change,G=K.commit,$=K.drag,q=K.dragEnd,Y=K.dragStart,Z=K.invalidate,X=K.pressDown,J=K.pressEnter,Q=K.pressUp,ee=K.reset,te=K.update,ne=W._event,re=W.value,oe=W.isDragging,ie=W.isDirty,ae=Object(c.useRef)(!1),ce=function(e,t){var n=function(e){var t="ns-resize";switch(e){case"n":case"s":t="ns-resize";break;case"e":case"w":t="ew-resize"}return t}(t);return Object(c.useEffect)((function(){e?(document.documentElement.style.cursor=n,document.documentElement.style.pointerEvents="none"):(document.documentElement.style.cursor=null,document.documentElement.style.pointerEvents=null)}),[e]),n}(oe,l);Er((function(){B!==re&&(v||ae.current?ie||(w(re,{event:ne}),ae.current=!1):te(B))}),[re,ie,v,B]);var se=function(e){var t=e.target.value;try{R(t,e),G(t,e)}catch(t){Z(t,e)}},ue=function(e,t){void 0===t&&(t={});var n=t,r=n.domTarget,o=n.eventOptions,i=n.window,a=zn(n,["domTarget","eventOptions","window"]),c=Ln(Ln({},sr({domTarget:r,eventOptions:o,window:i})),{},{drag:dr(a)});return nr({drag:e},[ir],c)}((function(e){var t=e.distance,n=e.dragging,r=e.event;if(t){if(r.stopPropagation(),!n)return E(e),void q(e);_(e),$(e),oe||(C(e),Y(e))}}),{threshold:f,enabled:h}),le=h?ue():{},de=le.onMouseDown,fe=le.onTouchStart,pe=de;return"number"===H&&(pe=function(e){e.target!==e.target.ownerDocument.activeElement&&e.target.focus(),h&&de(e)}),Object(c.createElement)(dn,Object(o.a)({},V,{className:"components-input-control__input",disabled:r,dragCursor:ce,isDragging:oe,id:p,onBlur:function(e){O(e),L(!1),y&&ie&&(ae.current=!0,_r(re)?ee(B):se(e))},onChange:function(e){var t=e.target.value;U(t,e)},onFocus:function(e){D(e),L(!0)},onKeyDown:function(e){var t=e.keyCode;switch(T(e),t){case pr.UP:Q(e);break;case pr.DOWN:X(e);break;case pr.ENTER:J(e),y&&(e.preventDefault(),se(e))}},onMouseDown:pe,onTouchStart:fe,ref:t,size:A,value:re,type:H}))}));function Cr(e,t){var n=e.__unstableStateReducer,r=void 0===n?function(e){return e}:n,u=e.__unstableInputWidth,d=e.className,f=e.disabled,p=void 0!==f&&f,b=e.hideLabelFromVision,h=void 0!==b&&b,v=e.id,m=e.isPressEnterToChange,y=void 0!==m&&m,g=e.label,O=e.labelPosition,j=void 0===O?"top":O,w=e.onChange,k=void 0===w?s.noop:w,_=e.onValidate,S=void 0===_?s.noop:_,x=e.onKeyDown,C=void 0===x?s.noop:x,P=e.prefix,D=e.size,M=void 0===D?"default":D,T=e.suffix,I=e.value,R=Object(a.a)(e,["__unstableStateReducer","__unstableInputWidth","className","disabled","hideLabelFromVision","id","isPressEnterToChange","label","labelPosition","onChange","onValidate","onKeyDown","prefix","size","suffix","value"]),N=Object(c.useState)(!1),A=Object(i.a)(N,2),L=A[0],F=A[1],z=function(e){var t=Object(E.useInstanceId)(Cr),n="inspector-input-control-".concat(t);return e||n}(v),B=l()("components-input-control",d);return Object(c.createElement)(_n,{__unstableInputWidth:u,className:B,disabled:p,gap:3,hideLabelFromVision:h,id:z,isFocused:L,justify:"left",label:g,labelPosition:j,prefix:P,size:M,suffix:T},Object(c.createElement)(xr,Object(o.a)({},R,{className:"components-input-control__input",disabled:p,id:z,isFocused:L,isPressEnterToChange:y,onChange:k,onKeyDown:C,onValidate:S,ref:t,setIsFocused:F,size:M,stateReducer:r,value:I})))}var Pr=Object(c.forwardRef)(Cr);var Dr={name:"1b9wwt5",styles:"&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none !important;margin:0 !important;}"},Mr=function(e){return e.hideHTMLArrows?Dr:""},Tr=je(Pr,{target:"ep48uk90",label:"Input"})(Mr,";");function Ir(e){var t=Number(e);return isNaN(t)?0:t}function Rr(){for(var e=arguments.length,t=new Array(e),n=0;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=Ir(e),i=Ir(r),a=Nr(r),c=Math.round(o/i)*i,u=Object(s.clamp)(c,t,n);return a?Ir(u.toFixed(a)):u}var Lr=function(e){var t=e.isShiftStepEnabled,n=void 0===t||t,r=e.shiftStep,o=void 0===r?10:r,a=e.step,s=void 0===a?1:a,u=Object(c.useState)(!1),l=Object(i.a)(u,2),d=l[0],f=l[1];return Object(c.useEffect)((function(){var e=function(e){f(e.shiftKey)};return window.addEventListener("keydown",e),window.addEventListener("keyup",e),function(){window.removeEventListener("keydown",e),window.removeEventListener("keyup",e)}}),[]),n&&d?o*s:s};var Fr=Object(c.forwardRef)((function(e,t){var n=e.__unstableStateReducer,r=void 0===n?function(e){return e}:n,s=e.className,u=e.dragDirection,d=void 0===u?"n":u,f=e.hideHTMLArrows,p=void 0!==f&&f,b=e.isDragEnabled,h=void 0===b||b,v=e.isShiftStepEnabled,m=void 0===v||v,y=e.label,g=e.max,O=void 0===g?1/0:g,j=e.min,w=void 0===j?-1/0:j,k=e.shiftStep,_=void 0===k?10:k,S=e.step,E=void 0===S?1:S,x=e.type,C=void 0===x?"number":x,P=e.value,D=Object(a.a)(e,["__unstableStateReducer","className","dragDirection","hideHTMLArrows","isDragEnabled","isShiftStepEnabled","label","max","min","shiftStep","step","type","value"]),M=Qe(),T=Ar(0,w,O,E),I=Lr({step:E,shiftStep:_,isShiftStepEnabled:m}),R="number"===C?"off":null,N=l()("components-number-control",s);return Object(c.createElement)(Tr,Object(o.a)({autoComplete:R,inputMode:"numeric"},D,{className:N,dragDirection:d,hideHTMLArrows:p,isDragEnabled:h,label:y,max:O,min:w,ref:t,step:I,type:C,value:P,__unstableStateReducer:jr((function(e,t){var n=t.type,r=t.payload,o=null==r?void 0:r.event,a=e.value;if(n===gr.PRESS_UP||n===gr.PRESS_DOWN){var c=o.shiftKey&&m?parseFloat(_)*parseFloat(E):parseFloat(E),s=_r(a)?T:a;(null==o?void 0:o.preventDefault)&&o.preventDefault(),n===gr.PRESS_UP&&(s=Rr(s,c)),n===gr.PRESS_DOWN&&(s=function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&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)(Yr.a,{focusOnMount:!1,onClose:b,position:"top right",className:"components-autocomplete__popover",anchorRef:(n=window.getSelection(),n.rangeCount?n.getRangeAt(0):null)},Object(c.createElement)("div",{id:a,role:"listbox",className:"components-autocomplete__results"},Object(s.map)(v,(function(e,t){return Object(c.createElement)(qr.a,{key:e.key,id:"components-autocomplete-item-".concat(o,"-").concat(e.key),role:"option","aria-selected":t===d,disabled:e.isDisabled,className:l()("components-autocomplete__result",u,{"is-selected":t===d}),onClick:function(){return p(e)}},e.label)}))))}};var Qr=Xr((function e(t){var n,r=t.children,o=t.isSelected,a=t.record,u=t.onChange,l=t.onReplace,d=t.completers,f=t.debouncedSpeak,p=Object(E.useInstanceId)(e),b=Object(c.useState)(0),h=Object(i.a)(b,2),v=h[0],m=h[1],y=Object(c.useState)([]),g=Object(i.a)(y,2),O=g[0],j=g[1],w=Object(c.useState)(""),k=Object(i.a)(w,2),_=k[0],x=k[1],C=Object(c.useState)(null),P=Object(i.a)(C,2),D=P[0],M=P[1],T=Object(c.useState)(null),I=Object(i.a)(T,2),R=I[0],N=I[1];function A(e){var t=(D||{}).getOptionCompletion;if(!e.isDisabled){if(t){var n=t(e.value,_),r=void 0===n.action||void 0===n.value?{action:"insert-at-caret",value:n}:n,o=r.action,i=r.value;"replace"===o?l([i]):"insert-at-caret"===o&&(s=i,d=a.start,f=d-D.triggerPrefix.length-_.length,p=Object($r.create)({html:Object(c.renderToString)(s)}),u(Object($r.insert)(a,p,f,d)))}var s,d,f,p;L()}}function L(){m(0),j([]),x(""),M(null),N(null)}Object($r.isCollapsed)(a)&&(n=Object($r.getTextContent)(Object($r.slice)(a,0))),Object(c.useEffect)((function(){if(n){var e=Object(s.deburr)(n),t=Object($r.getTextContent)(Object($r.slice)(a,void 0,Object($r.getTextContent)(a).length)),r=Object(s.find)(d,(function(n){var r=n.triggerPrefix,o=n.allowContext,i=e.lastIndexOf(r);return-1!==i&&(!(o&&!o(e.slice(0,i),t))&&/^\S*$/.test(e.slice(i+r.length)))}));if(r){var o=Object(s.escapeRegExp)(r.triggerPrefix),i=e.match(new RegExp("".concat(o,"(\\S*)$"))),c=i&&i[1];M(r),N((function(){return r!==D?Jr(r):R})),x(c)}else L()}}),[n]);var F=(O[v]||{}).key,z=void 0===F?"":F,B=(D||{}).className,H=!!D&&O.length>0,V=H?"components-autocomplete-listbox-".concat(p):null,K=H?"components-autocomplete-item-".concat(p,"-").concat(z):null;return Object(c.createElement)(c.Fragment,null,r({isExpanded:H,listBoxId:V,activeId:K,onKeyDown:function(e){if(D&&0!==O.length){switch(e.keyCode){case pr.UP:m((0===v?O.length:v)-1);break;case pr.DOWN:m((v+1)%O.length);break;case pr.ESCAPE:M(null),N(null);break;case pr.ENTER:A(O[v]);break;case pr.LEFT:case pr.RIGHT:return void L();default:return}e.preventDefault(),e.stopPropagation()}}}),o&&R&&Object(c.createElement)(R,{className:B,filterValue:_,instanceId:p,listBoxId:V,selectedIndex:v,onChangeOptions:function(e){m(e.length===O.length?v:0),j(e),function(e){f&&(e.length?f(Object(S.sprintf)(Object(S._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",e.length),e.length),"assertive"):f(Object(S.__)("No results."),"assertive"))}(e)},onSelect:A}))}));var eo=je("div",{target:"e1agakv00",label:"Root"})({name:"1bt0omd",styles:"box-sizing:border-box;position:relative;"}),to=function(e){var t=e.disableUnits;return le(nt({paddingRight:t?3:24})(),";")},no={name:"1y65o8",styles:"&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}"},ro=function(e){return e.disableUnits?"":no},oo=je(Fr,{target:"e1agakv01",label:"ValueInput"})("&&&{input{appearance:none;-moz-appearance:textfield;display:block;width:100%;",ro,";",to,";}}"),io=function(e){return le("appearance:none;background:transparent;border-radius:2px;border:none;box-sizing:border-box;color:",Fe("darkGray.500"),";display:block;font-size:8px;line-height:1;letter-spacing:-0.5px;outline:none;padding:2px 1px;position:absolute;text-align-last:center;text-transform:uppercase;width:20px;",nt({borderTopLeftRadius:0,borderBottomLeftRadius:0})()," ",nt({right:0})()," ",(t=e.size,le({default:{height:28,lineHeight:"24px",minHeight:28,top:1},small:{height:22,lineHeight:"18px",minHeight:22,top:1}}[t],"")),"");var t},ao=je("div",{target:"e1agakv02",label:"UnitLabel"})("&&&{pointer-events:none;",io,";}"),co=je("select",{target:"e1agakv03",label:"UnitSelect"})("&&&{",io,";cursor:pointer;border:1px solid transparent;&:hover{background-color:",Fe("lightGray.300"),";}&:focus{border-color:",Fe("ui.borderFocus"),";outline:2px solid transparent;outline-offset:0;}&:disabled{cursor:initial;&:hover{background-color:transparent;}}}"),so=[{value:"px",label:"px",default:0},{value:"%",label:"%",default:10},{value:"em",label:"em",default:0},{value:"rem",label:"rem",default:0},{value:"vw",label:"vw",default:10},{value:"vh",label:"vh",default:10}],uo=so[0];function lo(e){return!Object(s.isEmpty)(e)&&e.length>1&&!1!==e}function fo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:so,n=String(e).trim(),r=parseFloat(n,10);r=isNaN(r)?"":r;var o=n.match(/[\d.\-\+]*\s*(.*)/)[1],i=void 0!==o?o:"";if(i=i.toLowerCase(),lo(t)){var a=t.find((function(e){return e.value===i}));i=null==a?void 0:a.value}else i=uo.value;return[r,i]}function po(e,t,n,r){var o,a,c=fo(e,t),s=Object(i.a)(c,2),u=s[0],l=s[1],d=u;((isNaN(u)||""===u)&&(d=n),o=l||r,lo(t)&&!o)&&(o=null===(a=t[0])||void 0===a?void 0:a.value);return[d,o]}function bo(e){var t=e.className,n=e.isTabbable,r=void 0===n||n,i=e.options,u=void 0===i?so:i,d=e.onChange,f=void 0===d?s.noop:d,p=e.size,b=void 0===p?"default":p,h=e.value,v=void 0===h?"px":h,m=Object(a.a)(e,["className","isTabbable","options","onChange","size","value"]);if(!lo(u))return Object(c.createElement)(ao,{className:"components-unit-control__unit-label",size:b},v);var y=l()("components-unit-control__select",t);return Object(c.createElement)(co,Object(o.a)({className:y,onChange:function(e){var t=e.target.value,n=u.find((function(e){return e.value===t}));f(t,{event:e,data:n})},size:b,tabIndex:r?null:"-1",value:v},m),u.map((function(e){return Object(c.createElement)("option",{value:e.value,key:e.value},e.label)})))}function ho(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vo(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:mo,n=vo(vo({},mo),t),r=n.initial,o=n.fallback,a=Object(c.useState)(e),s=Object(i.a)(a,2),u=s[0],l=s[1],d=kr(e);Object(c.useEffect)((function(){d&&u&&l(void 0)}),[d,u]);var f=Sr([e,u,r],o),p=function(e){d||l(e)};return[f,p]};var go=Object(c.forwardRef)((function(e,t){var n=e.__unstableStateReducer,r=void 0===n?function(e){return e}:n,u=e.autoComplete,d=void 0===u?"off":u,f=e.className,p=e.disabled,b=void 0!==p&&p,h=e.disableUnits,v=void 0!==h&&h,m=e.isPressEnterToChange,y=void 0!==m&&m,g=e.isResetValueOnUnitChange,O=void 0!==g&&g,j=e.isUnitSelectTabbable,w=void 0===j||j,k=e.label,_=e.onChange,S=void 0===_?s.noop:_,E=e.onUnitChange,x=void 0===E?s.noop:E,C=e.size,P=void 0===C?"default":C,D=e.style,M=e.unit,T=e.units,I=void 0===T?so:T,R=e.value,N=Object(a.a)(e,["__unstableStateReducer","autoComplete","className","disabled","disableUnits","isPressEnterToChange","isResetValueOnUnitChange","isUnitSelectTabbable","label","onChange","onUnitChange","size","style","unit","units","value"]),A=function(e,t,n){return fo(t?"".concat(e).concat(t):e,n)}(R,M,I),L=Object(i.a)(A,2),F=L[0],z=L[1],B=yo(M,{initial:z}),H=Object(i.a)(B,2),V=H[0],K=H[1],W=Object(c.useRef)(null),U=l()("components-unit-control",f),G=function(e){if(isNaN(e.target.value)){var t=po(e.target.value,I,F,V),n=Object(i.a)(t,2),r=n[0],o=n[1];if(W.current=r,y&&o!==V){var a={event:e,data:I.find((function(e){return e.value===o}))};S("".concat(r).concat(o),a),x(o,a),K(o)}}else W.current=null},$=G,q=v?null:Object(c.createElement)(bo,{disabled:b,isTabbable:w,options:I,onChange:function(e,t){var n=t.data,r="".concat(F).concat(e);O&&void 0!==(null==n?void 0:n.default)&&(r="".concat(n.default).concat(e)),S(r,t),x(e,t),K(e)},size:P,value:V});return Object(c.createElement)(eo,{className:"components-unit-control-wrapper",style:D},Object(c.createElement)(oo,Object(o.a)({"aria-label":k,type:y?"text":"number"},Object(s.omit)(N,["children"]),{autoComplete:d,className:U,disabled:b,disableUnits:v,isPressEnterToChange:y,label:k,onBlur:$,onKeyDown:function(e){e.keyCode===pr.ENTER&&G(e)},onChange:function(e,t){""!==e?(e=po(e,I,F,V).join(""),S(e,t)):S("",t)},ref:t,size:P,suffix:q,value:F,__unstableStateReducer:jr((function(e,t){return t.type===gr.COMMIT&&null!==W.current&&(e.value=W.current,W.current=null),e}),r)})))}));var Oo=je("div",{target:"e7pk0lh0",label:"Root"})({name:"vho1ao",styles:"box-sizing:border-box;max-width:235px;padding-bottom:12px;width:100%;"}),jo=je(_t,{target:"e7pk0lh1",label:"Header"})("color:",Fe("ui.label"),";padding-bottom:8px;"),wo=je(_t,{target:"e7pk0lh2",label:"HeaderControlWrapper"})({name:"19de7qh",styles:"min-height:30px;"}),ko=je("div",{target:"e7pk0lh3",label:"UnitControlWrapper"})({name:"zypm0w",styles:"box-sizing:border-box;max-width:80px;"}),_o=je(_t,{target:"e7pk0lh4",label:"LayoutContainer"})({name:"39f89t",styles:"justify-content:center;padding-top:8px;"}),So=je(_t,{target:"e7pk0lh5",label:"Layout"})({name:"ojqyia",styles:"position:relative;height:100%;width:100%;"}),Eo={name:"icip60",styles:"border-radius:2px;"},xo={name:"1k07npk",styles:"border-radius:0;"},Co=function(e){var t=e.isFirst,n=e.isLast,r=e.isOnly;return t?nt({borderTopRightRadius:0,borderBottomRightRadius:0})():n?nt({borderTopLeftRadius:0,borderBottomLeftRadius:0})():r?Eo:xo},Po=function(e){return nt({marginLeft:e.isFirst?0:-1})()},Do=je(go,{target:"e7pk0lh6",label:"UnitControl"})("max-width:60px;",Co,";",Po,";");function Mo(e){var t=e.isFirst,n=e.isLast,r=e.isOnly,i=e.onHoverOn,u=void 0===i?s.noop:i,l=e.onHoverOff,d=void 0===l?s.noop:l,f=e.label,p=e.value,b=Object(a.a)(e,["isFirst","isLast","isOnly","onHoverOn","onHoverOff","label","value"]),h=function(e,t){void 0===t&&(t={});var n=t,r=n.domTarget,o=n.eventOptions,i=n.window,a=zn(n,["domTarget","eventOptions","window"]),c=Ln(Ln({},sr({domTarget:r,eventOptions:o,window:i})),{},{hover:Ln({enabled:!0},a)});return nr({hover:e},[fr],c)}((function(e){var t=e.event,n=Object(a.a)(e,["event"]);n.hovering?u(t,n):d(t,n)}));return Object(c.createElement)(ko,Object(o.a)({"aria-label":f},h()),Object(c.createElement)(To,{text:f},Object(c.createElement)(Do,Object(o.a)({className:"component-box-control__unit-control",hideHTMLArrows:!0,isFirst:t,isLast:n,isOnly:r,isPressEnterToChange:!0,isResetValueOnUnitChange:!1,value:p},b))))}function To(e){var t=e.children,n=e.text;return n?Object(c.createElement)(C.a,{text:n,position:"top"},Object(c.createElement)("div",null,t)):t}var Io={all:Object(S.__)("All"),top:Object(S.__)("Top"),bottom:Object(S.__)("Bottom"),left:Object(S.__)("Left"),right:Object(S.__)("Right"),mixed:Object(S.__)("Mixed")},Ro={top:null,right:null,bottom:null,left:null},No={top:!1,right:!1,bottom:!1,left:!1};function Ao(e){return e.sort((function(t,n){return e.filter((function(e){return e===t})).length-e.filter((function(e){return e===n})).length})).pop()}function Lo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.values(e).map(fo),n=t.map((function(e){return e[0]})),r=t.map((function(e){return e[1]})),o=n.every((function(e){return e===n[0]}))?n[0]:"",i=Ao(r),a=Object(s.isNumber)(o)?"".concat(o).concat(i):null;return a}function Fo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Lo(e),n=isNaN(parseFloat(t));return n}function zo(e){return void 0!==e&&!Object(s.isEmpty)(Object.values(e).filter(Boolean))}function Bo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ho(e){var t=e.onChange,n=void 0===t?s.noop:t,r=e.onFocus,i=void 0===r?s.noop:r,u=e.onHoverOn,l=void 0===u?s.noop:u,d=e.onHoverOff,f=void 0===d?s.noop:d,p=e.values,b=Object(a.a)(e,["onChange","onFocus","onHoverOn","onHoverOff","values"]),h=Lo(p),v=zo(p)&&Fo(p),m=v?Io.mixed:null;return Object(c.createElement)(Mo,Object(o.a)({},b,{disableUnits:v,isOnly:!0,value:h,onChange:function(e){var t=function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};l(yi(yi({},No),e))},onHoverOff:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l(yi(yi({},No),e))},isLinked:P,units:b,values:g});return Object(c.createElement)(Oo,{id:N,role:"region","aria-labelledby":A},Object(c.createElement)(jo,{className:"component-box-control__header"},Object(c.createElement)(Et,null,Object(c.createElement)(Xt,{id:A,className:"component-box-control__label"},f)),Object(c.createElement)(Et,null,Object(c.createElement)(qr.a,{className:"component-box-control__reset-button",isSecondary:!0,isSmall:!0,onClick:function(){var e=Ro;a(e),y(e),_(!1)},disabled:!k},Object(S.__)("Reset")))),Object(c.createElement)(wo,{className:"component-box-control__header-control-wrapper"},Object(c.createElement)(Et,null,Object(c.createElement)(Qo,{side:I})),P&&Object(c.createElement)(kt,null,Object(c.createElement)(Ho,L)),Object(c.createElement)(Et,null,Object(c.createElement)(ri,{onClick:function(){D(!P),R(P?"top":"all")},isLinked:P}))),!P&&Object(c.createElement)(Ko,L))}Oi.__Visualizer=function(e){var t=e.children,n=e.showValues,r=void 0===n?No:n,i=e.values,s=void 0===i?Ro:i,u=Object(a.a)(e,["children","showValues","values"]),l=!t;return Object(c.createElement)(ii,Object(o.a)({},u,{isPositionAbsolute:l,"aria-hidden":"true"}),Object(c.createElement)(di,{showValues:r,values:s}),t)};var ji=Object(c.forwardRef)((function(e,t){var n=e.className,r=Object(a.a)(e,["className"]),i=l()("components-button-group",n);return Object(c.createElement)("div",Object(o.a)({ref:t,role:"group",className:i},r))})),wi=Object(c.createContext)({}),ki=function(){return Object(c.useContext)(wi)},_i={borderColor:Fe("lightGray.500"),borderRadius:"3px",backgroundShady:Fe("lightGray.200")},Si=_i.borderColor,Ei=_i.borderRadius,xi=_i.backgroundShady,Ci=je("div",{target:"e1q7k77g0",label:"CardUI"})("background:",Fe("white"),";box-sizing:border-box;border-radius:",Ei,";border:1px solid ",Si,";",Ni,";&.is-elevated{box-shadow:0px 1px 3px 0px rgba( 0,0,0,0.2 ),0px 1px 1px 0px rgba( 0,0,0,0.14 ),0px 2px 1px -1px rgba( 0,0,0,0.12 );}"),Pi=je(St,{target:"e1q7k77g1",label:"HeaderUI"})("border-bottom:1px solid ",Si,";border-top-left-radius:",Ei,";border-top-right-radius:",Ei,";box-sizing:border-box;&:last-child{border-bottom:none;}",Ri,";",Ni,";",Ai,";"),Di=je("div",{target:"e1q7k77g2",label:"MediaUI"})("box-sizing:border-box;overflow:hidden;& > img,& > iframe{display:block;height:auto;max-width:100%;width:100%;}&:first-of-type{border-top-left-radius:",Ei,";border-top-right-radius:",Ei,";}&:last-of-type{border-bottom-left-radius:",Ei,";border-bottom-right-radius:",Ei,";}"),Mi=je("div",{target:"e1q7k77g3",label:"BodyUI"})("box-sizing:border-box;",(function(){return"\n\t\t&.is-size {\n\t\t\t&-large {\n\t\t\t\tpadding: ".concat(ft(3)," ").concat(ft(4),";\n\t\t\t}\n\t\t\t&-medium {\n\t\t\t\tpadding: ").concat(ft(2)," ").concat(ft(3),";\n\t\t\t}\n\t\t\t&-small {\n\t\t\t\tpadding: ").concat(ft(2),";\n\t\t\t}\n\t\t\t&-extraSmall {\n\t\t\t\tpadding: ").concat(ft(1),";\n\t\t\t}\n\t\t}\n\t")}),";",Ai,";"),Ti=je(St,{target:"e1q7k77g4",label:"FooterUI"})("border-top:1px solid ",Si,";border-bottom-left-radius:",Ei,";border-bottom-right-radius:",Ei,";box-sizing:border-box;&:first-of-type{border-top:none;}",Ri,";",Ni,";",Ai,";"),Ii=je(r.HorizontalRule,{target:"e1q7k77g5",label:"DividerUI"})("all:unset;border-top:1px solid ",Si,";box-sizing:border-box;display:block;height:0;width:100%;");function Ri(){return"\n\t\t&.is-size {\n\t\t\t&-large {\n\t\t\t\tpadding: ".concat(ft(3)," ").concat(ft(4),";\n\t\t\t}\n\t\t\t&-medium {\n\t\t\t\tpadding: ").concat(ft(2)," ").concat(ft(3),";\n\t\t\t}\n\t\t\t&-small {\n\t\t\t\tpadding: ").concat(ft(2),";\n\t\t\t}\n\t\t\t&-extraSmall {\n\t\t\t\tpadding: ").concat(ft(1),";\n\t\t\t}\n\t\t}\n\t")}function Ni(){return"\n\t\t&.is-borderless {\n\t\t\tborder: none;\n\t\t}\n\t"}function Ai(){return"\n\t\t&.is-shady {\n\t\t\tbackground: ".concat(xi,";\n\t\t}\n\t")}function Li(e){var t=e.className,n=e.isBorderless,r=e.isElevated,i=e.size,s=Object(a.a)(e,["className","isBorderless","isElevated","size"]),u=wi.Provider,d={isBorderless:n,isElevated:r,size:i},f=l()("components-card",n&&"is-borderless",r&&"is-elevated",i&&"is-size-".concat(i),t);return Object(c.createElement)(u,{value:d},Object(c.createElement)(Ci,Object(o.a)({},s,{className:f})))}Li.defaultProps={isBorderless:!1,isElevated:!1,size:"medium"};var Fi=Li;function zi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bi(e){for(var t=1;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 i=n.toRgb(),a=n.toHex();0===r.s&&(r.h=t||0,o.h=t||0);var c="000000"===a&&0===i.a;return{color:n,hex:c?"transparent":"#".concat(a),hsl:r,hsv:o,oldHue:e.h||t||r.h,rgb:i,source:e.source}}function ma(e,t){e.preventDefault();var n=t.getBoundingClientRect(),r=n.left,o=n.top,i=n.width,a=n.height,c="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,s="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,u=c-(r+window.pageXOffset),l=s-(o+window.pageYOffset);return u<0?u=0:u>i?u=i:l<0?l=0:l>a&&(l=a),{top:l,left:u,width:i,height:a}}function ya(e){var t="#"===String(e).charAt(0)?1:0;return e.length!==4+t&&e.length<7+t&&ke()(e).isValid()}function ga(e){var t=e.target,n=e.callback,r=e.shortcut,o=e.bindGlobal,i=e.eventName;return Object(E.useKeyboardShortcut)(r,n,{bindGlobal:o,target:t,eventName:i}),null}var Oa=function(e){var t=e.children,n=e.shortcuts,r=e.bindGlobal,o=e.eventName,i=Object(c.useRef)(),a=Object(s.map)(n,(function(e,t){return Object(c.createElement)(ga,{key:t,shortcut:t,callback:e,bindGlobal:r,eventName:o,target:i})}));return c.Children.count(t)?Object(c.createElement)("div",{ref:i},a,t):a};function ja(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ha.a)(e);if(t){var o=Object(ha.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ba.a)(this,n)}}var wa=function(e){Object(pa.a)(n,e);var t=ja(n);function n(){var e;return Object(la.a)(this,n),(e=t.apply(this,arguments)).container=Object(c.createRef)(),e.increase=e.increase.bind(Object(fa.a)(e)),e.decrease=e.decrease.bind(Object(fa.a)(e)),e.handleChange=e.handleChange.bind(Object(fa.a)(e)),e.handleMouseDown=e.handleMouseDown.bind(Object(fa.a)(e)),e.handleMouseUp=e.handleMouseUp.bind(Object(fa.a)(e)),e}return Object(da.a)(n,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"increase",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01,t=this.props,n=t.hsl,r=t.onChange,o=void 0===r?s.noop:r;e=parseInt(100*e,10);var i={h:n.h,s:n.s,l:n.l,a:(parseInt(100*n.a,10)+e)/100,source:"rgb"};o(i)}},{key:"decrease",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01,t=this.props,n=t.hsl,r=t.onChange,o=void 0===r?s.noop:r,i=parseInt(100*n.a,10)-parseInt(100*e,10),a={h:n.h,s:n.s,l:n.l,a:n.a<=e?0:i/100,source:"rgb"};o(a)}},{key:"handleChange",value:function(e){var t=this.props.onChange,n=void 0===t?s.noop:t,r=function(e,t,n){var r=ma(e,n),o=r.left,i=r.width,a=o<0?0:Math.round(100*o/i)/100;return t.hsl.a!==a?{h:t.hsl.h,s:t.hsl.s,l:t.hsl.l,a:a,source:"rgb"}:null}(e,this.props,this.container.current);r&&n(r,e)}},{key:"handleMouseDown",value:function(e){this.handleChange(e),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)}},{key:"handleMouseUp",value:function(){this.unbindEventListeners()}},{key:"preventKeyEvents",value:function(e){e.keyCode!==pr.TAB&&e.preventDefault()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.rgb,n="".concat(t.r,",").concat(t.g,",").concat(t.b),r={background:"linear-gradient(to right, rgba(".concat(n,", 0) 0%, rgba(").concat(n,", 1) 100%)")},o={left:"".concat(100*t.a,"%")},i={up:function(){return e.increase()},right:function(){return e.increase()},"shift+up":function(){return e.increase(.1)},"shift+right":function(){return e.increase(.1)},pageup:function(){return e.increase(.1)},end:function(){return e.increase(1)},down:function(){return e.decrease()},left:function(){return e.decrease()},"shift+down":function(){return e.decrease(.1)},"shift+left":function(){return e.decrease(.1)},pagedown:function(){return e.decrease(.1)},home:function(){return e.decrease(1)}};return Object(c.createElement)(Oa,{shortcuts:i},Object(c.createElement)("div",{className:"components-color-picker__alpha"},Object(c.createElement)("div",{className:"components-color-picker__alpha-gradient",style:r}),Object(c.createElement)("div",{className:"components-color-picker__alpha-bar",ref:this.container,onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},Object(c.createElement)("div",{tabIndex:"0",role:"slider","aria-valuemax":"1","aria-valuemin":"0","aria-valuenow":t.a,"aria-orientation":"horizontal","aria-label":Object(S.__)("Alpha value, from 0 (transparent) to 1 (fully opaque)."),className:"components-color-picker__alpha-pointer",style:o,onKeyDown:this.preventKeyEvents}))))}}]),n}(c.Component),ka=Object(E.pure)(wa);function _a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ha.a)(e);if(t){var o=Object(ha.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ba.a)(this,n)}}var Sa=function(e){Object(pa.a)(n,e);var t=_a(n);function n(){var e;return Object(la.a)(this,n),(e=t.apply(this,arguments)).container=Object(c.createRef)(),e.increase=e.increase.bind(Object(fa.a)(e)),e.decrease=e.decrease.bind(Object(fa.a)(e)),e.handleChange=e.handleChange.bind(Object(fa.a)(e)),e.handleMouseDown=e.handleMouseDown.bind(Object(fa.a)(e)),e.handleMouseUp=e.handleMouseUp.bind(Object(fa.a)(e)),e}return Object(da.a)(n,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"increase",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=this.props,n=t.hsl,r=t.onChange,o=void 0===r?s.noop:r,i={h:n.h+e>=359?359:n.h+e,s:n.s,l:n.l,a:n.a,source:"rgb"};o(i)}},{key:"decrease",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=this.props,n=t.hsl,r=t.onChange,o=void 0===r?s.noop:r,i={h:n.h<=e?0:n.h-e,s:n.s,l:n.l,a:n.a,source:"rgb"};o(i)}},{key:"handleChange",value:function(e){var t=this.props.onChange,n=void 0===t?s.noop:t,r=function(e,t,n){var r=ma(e,n),o=r.left,i=r.width,a=o>=i?359:360*(100*o/i)/100;return t.hsl.h!==a?{h:a,s:t.hsl.s,l:t.hsl.l,a:t.hsl.a,source:"rgb"}:null}(e,this.props,this.container.current);r&&n(r,e)}},{key:"handleMouseDown",value:function(e){this.handleChange(e),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)}},{key:"handleMouseUp",value:function(){this.unbindEventListeners()}},{key:"preventKeyEvents",value:function(e){e.keyCode!==pr.TAB&&e.preventDefault()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props,n=t.hsl,r=void 0===n?{}:n,o=t.instanceId,i={left:"".concat(100*r.h/360,"%")},a={up:function(){return e.increase()},right:function(){return e.increase()},"shift+up":function(){return e.increase(10)},"shift+right":function(){return e.increase(10)},pageup:function(){return e.increase(10)},end:function(){return e.increase(359)},down:function(){return e.decrease()},left:function(){return e.decrease()},"shift+down":function(){return e.decrease(10)},"shift+left":function(){return e.decrease(10)},pagedown:function(){return e.decrease(10)},home:function(){return e.decrease(359)}};return Object(c.createElement)(Oa,{shortcuts:a},Object(c.createElement)("div",{className:"components-color-picker__hue"},Object(c.createElement)("div",{className:"components-color-picker__hue-gradient"}),Object(c.createElement)("div",{className:"components-color-picker__hue-bar",ref:this.container,onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},Object(c.createElement)("div",{tabIndex:"0",role:"slider","aria-valuemax":"1","aria-valuemin":"359","aria-valuenow":r.h,"aria-orientation":"horizontal","aria-label":Object(S.__)("Hue value in degrees, from 0 to 359."),"aria-describedby":"components-color-picker__hue-description-".concat(o),className:"components-color-picker__hue-pointer",style:i,onKeyDown:this.preventKeyEvents}),Object(c.createElement)(M,{as:"p",id:"components-color-picker__hue-description-".concat(o)},Object(S.__)("Move the arrow left or right to change hue.")))))}}]),n}(c.Component),Ea=Object(E.compose)(E.pure,E.withInstanceId)(Sa);function xa(e){var t=e.label,n=e.hideLabelFromVision,r=e.value,i=e.help,s=e.className,u=e.onChange,l=e.type,d=void 0===l?"text":l,f=Object(a.a)(e,["label","hideLabelFromVision","value","help","className","onChange","type"]),p=Object(E.useInstanceId)(xa),b="inspector-text-control-".concat(p);return Object(c.createElement)(yt,{label:t,hideLabelFromVision:n,id:b,help:i,className:s},Object(c.createElement)("input",Object(o.a)({className:"components-text-control__input",type:d,id:b,value:r,onChange:function(e){return u(e.target.value)},"aria-describedby":i?b+"__help":void 0},f)))}function Ca(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ha.a)(e);if(t){var o=Object(ha.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ba.a)(this,n)}}var Pa=function(e){Object(pa.a)(n,e);var t=Ca(n);function n(){var e;return Object(la.a)(this,n),(e=t.apply(this,arguments)).handleBlur=e.handleBlur.bind(Object(fa.a)(e)),e.handleChange=e.handleChange.bind(Object(fa.a)(e)),e.handleKeyDown=e.handleKeyDown.bind(Object(fa.a)(e)),e}return Object(da.a)(n,[{key:"handleBlur",value:function(){var e=this.props,t=e.value,n=e.valueKey;(0,e.onChange)({source:e.source,state:"commit",value:t,valueKey:n})}},{key:"handleChange",value:function(e){var t=this.props,n=t.valueKey,r=t.onChange,o=t.source;e.length>4&&ya(e)?r({source:o,state:"commit",value:e,valueKey:n}):r({source:o,state:"draft",value:e,valueKey:n})}},{key:"handleKeyDown",value:function(e){var t=e.keyCode;if(t===pr.ENTER||t===pr.UP||t===pr.DOWN){var n=this.props,r=n.value,o=n.valueKey;(0,n.onChange)({source:n.source,state:"commit",value:r,valueKey:o})}}},{key:"render",value:function(){var e=this,t=this.props,n=t.label,r=t.value,i=Object(a.a)(t,["label","value"]);return Object(c.createElement)(xa,Object(o.a)({className:"components-color-picker__inputs-field",label:n,value:r,onChange:function(t){return e.handleChange(t)},onBlur:this.handleBlur,onKeyDown:this.handleKeyDown},Object(s.omit)(i,["onChange","valueKey","source"])))}}]),n}(c.Component),Da=Object(E.pure)(qr.a),Ma=function(e){Object(pa.a)(n,e);var t=Ca(n);function n(e){var r,o=e.hsl;Object(la.a)(this,n),r=t.apply(this,arguments);var i=1===o.a?"hex":"rgb";return r.state={view:i},r.toggleViews=r.toggleViews.bind(Object(fa.a)(r)),r.resetDraftValues=r.resetDraftValues.bind(Object(fa.a)(r)),r.handleChange=r.handleChange.bind(Object(fa.a)(r)),r.normalizeValue=r.normalizeValue.bind(Object(fa.a)(r)),r}return Object(da.a)(n,[{key:"toggleViews",value:function(){"hex"===this.state.view?(this.setState({view:"rgb"},this.resetDraftValues),Object(Zr.speak)(Object(S.__)("RGB mode active"))):"rgb"===this.state.view?(this.setState({view:"hsl"},this.resetDraftValues),Object(Zr.speak)(Object(S.__)("Hue/saturation/lightness mode active"))):"hsl"===this.state.view&&(1===this.props.hsl.a?(this.setState({view:"hex"},this.resetDraftValues),Object(Zr.speak)(Object(S.__)("Hex color mode active"))):(this.setState({view:"rgb"},this.resetDraftValues),Object(Zr.speak)(Object(S.__)("RGB mode active"))))}},{key:"resetDraftValues",value:function(){return this.props.onChange({state:"reset"})}},{key:"normalizeValue",value:function(e,t){return"a"!==e?t:t<0?0:t>1?1:Math.round(100*t)/100}},{key:"handleChange",value:function(e){var t=e.source,n=e.state,r=e.value,o=e.valueKey;this.props.onChange({source:t,state:n,valueKey:o,value:this.normalizeValue(o,r)})}},{key:"renderFields",value:function(){var e=this.props.disableAlpha,t=void 0!==e&&e;if("hex"===this.state.view)return Object(c.createElement)("div",{className:"components-color-picker__inputs-fields"},Object(c.createElement)(Pa,{source:this.state.view,label:Object(S.__)("Color value in hexadecimal"),valueKey:"hex",value:this.props.hex,onChange:this.handleChange}));if("rgb"===this.state.view){var n=t?Object(S.__)("Color value in RGB"):Object(S.__)("Color value in RGBA");return Object(c.createElement)("fieldset",null,Object(c.createElement)(M,{as:"legend"},n),Object(c.createElement)("div",{className:"components-color-picker__inputs-fields"},Object(c.createElement)(Pa,{source:this.state.view,label:"r",valueKey:"r",value:this.props.rgb.r,onChange:this.handleChange,type:"number",min:"0",max:"255"}),Object(c.createElement)(Pa,{source:this.state.view,label:"g",valueKey:"g",value:this.props.rgb.g,onChange:this.handleChange,type:"number",min:"0",max:"255"}),Object(c.createElement)(Pa,{source:this.state.view,label:"b",valueKey:"b",value:this.props.rgb.b,onChange:this.handleChange,type:"number",min:"0",max:"255"}),t?null:Object(c.createElement)(Pa,{source:this.state.view,label:"a",valueKey:"a",value:this.props.rgb.a,onChange:this.handleChange,type:"number",min:"0",max:"1",step:"0.01"})))}if("hsl"===this.state.view){var r=t?Object(S.__)("Color value in HSL"):Object(S.__)("Color value in HSLA");return Object(c.createElement)("fieldset",null,Object(c.createElement)(M,{as:"legend"},r),Object(c.createElement)("div",{className:"components-color-picker__inputs-fields"},Object(c.createElement)(Pa,{source:this.state.view,label:"h",valueKey:"h",value:this.props.hsl.h,onChange:this.handleChange,type:"number",min:"0",max:"359"}),Object(c.createElement)(Pa,{source:this.state.view,label:"s",valueKey:"s",value:this.props.hsl.s,onChange:this.handleChange,type:"number",min:"0",max:"100"}),Object(c.createElement)(Pa,{source:this.state.view,label:"l",valueKey:"l",value:this.props.hsl.l,onChange:this.handleChange,type:"number",min:"0",max:"100"}),t?null:Object(c.createElement)(Pa,{source:this.state.view,label:"a",valueKey:"a",value:this.props.hsl.a,onChange:this.handleChange,type:"number",min:"0",max:"1",step:"0.05"})))}}},{key:"render",value:function(){return Object(c.createElement)("div",{className:"components-color-picker__inputs-wrapper"},this.renderFields(),Object(c.createElement)("div",{className:"components-color-picker__inputs-toggle-wrapper"},Object(c.createElement)(Da,{className:"components-color-picker__inputs-toggle",icon:aa.a,label:Object(S.__)("Change color format"),onClick:this.toggleViews})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 1!==e.hsl.a&&"hex"===t.view?{view:"rgb"}:null}}]),n}(c.Component);function Ta(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ha.a)(e);if(t){var o=Object(ha.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ba.a)(this,n)}}var Ia=function(e){Object(pa.a)(n,e);var t=Ta(n);function n(e){var r;return Object(la.a)(this,n),(r=t.call(this,e)).throttle=Object(s.throttle)((function(e,t,n){e(t,n)}),50),r.container=Object(c.createRef)(),r.saturate=r.saturate.bind(Object(fa.a)(r)),r.brighten=r.brighten.bind(Object(fa.a)(r)),r.handleChange=r.handleChange.bind(Object(fa.a)(r)),r.handleMouseDown=r.handleMouseDown.bind(Object(fa.a)(r)),r.handleMouseUp=r.handleMouseUp.bind(Object(fa.a)(r)),r}return Object(da.a)(n,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"saturate",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01,t=this.props,n=t.hsv,r=t.onChange,o=void 0===r?s.noop:r,i=Object(s.clamp)(n.s+Math.round(100*e),0,100),a={h:n.h,s:i,v:n.v,a:n.a,source:"rgb"};o(a)}},{key:"brighten",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01,t=this.props,n=t.hsv,r=t.onChange,o=void 0===r?s.noop:r,i=Object(s.clamp)(n.v+Math.round(100*e),0,100),a={h:n.h,s:n.s,v:i,a:n.a,source:"rgb"};o(a)}},{key:"handleChange",value:function(e){var t=this.props.onChange,n=void 0===t?s.noop:t,r=function(e,t,n){var r=ma(e,n),o=r.top,i=r.left,a=r.width,c=r.height,s=i<0?0:100*i/a,u=o>=c?0:-100*o/c+100;return u<1&&(u=0),{h:t.hsl.h,s:s,v:u,a:t.hsl.a,source:"rgb"}}(e,this.props,this.container.current);this.throttle(n,r,e)}},{key:"handleMouseDown",value:function(e){this.handleChange(e),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)}},{key:"handleMouseUp",value:function(){this.unbindEventListeners()}},{key:"preventKeyEvents",value:function(e){e.keyCode!==pr.TAB&&e.preventDefault()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props,n=t.hsv,r=t.hsl,o=t.instanceId,i={top:"".concat(100-n.v,"%"),left:"".concat(n.s,"%")},a={up:function(){return e.brighten()},"shift+up":function(){return e.brighten(.1)},pageup:function(){return e.brighten(1)},down:function(){return e.brighten(-.01)},"shift+down":function(){return e.brighten(-.1)},pagedown:function(){return e.brighten(-1)},right:function(){return e.saturate()},"shift+right":function(){return e.saturate(.1)},end:function(){return e.saturate(1)},left:function(){return e.saturate(-.01)},"shift+left":function(){return e.saturate(-.1)},home:function(){return e.saturate(-1)}};return Object(c.createElement)(Oa,{shortcuts:a},Object(c.createElement)("div",{style:{background:"hsl(".concat(r.h,",100%, 50%)")},className:"components-color-picker__saturation-color",ref:this.container,onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange,role:"application"},Object(c.createElement)("div",{className:"components-color-picker__saturation-white"}),Object(c.createElement)("div",{className:"components-color-picker__saturation-black"}),Object(c.createElement)(qr.a,{"aria-label":Object(S.__)("Choose a shade"),"aria-describedby":"color-picker-saturation-".concat(o),className:"components-color-picker__saturation-pointer",style:i,onKeyDown:this.preventKeyEvents}),Object(c.createElement)(M,{id:"color-picker-saturation-".concat(o)},Object(S.__)("Use your arrow keys to change the base color. Move up to lighten the color, down to darken, left to decrease saturation, and right to increase saturation."))))}}]),n}(c.Component),Ra=Object(E.compose)(E.pure,E.withInstanceId)(Ia);function Na(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ha.a)(e);if(t){var o=Object(ha.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ba.a)(this,n)}}function Aa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function La(e){for(var t=1;t-1&&this.props.scrollIntoView&&(this.scrollingIntoView=!0,Ja()(this.list.children[this.props.selectedIndex],this.list,{onlyScrollIfNeeded:!0}),this.props.setTimeout((function(){e.scrollingIntoView=!1}),100))}},{key:"bindList",value:function(e){this.list=e}},{key:"handleHover",value:function(e){var t=this;return function(){t.scrollingIntoView||t.props.onHover(e)}}},{key:"handleClick",value:function(e){var t=this;return function(){t.props.onSelect(e)}}},{key:"handleMouseDown",value:function(e){e.preventDefault()}},{key:"computeSuggestionMatch",value:function(e){var t=this.props.displayTransform(this.props.match||"").toLocaleLowerCase();if(0===t.length)return null;var n=(e=this.props.displayTransform(e)).toLocaleLowerCase().indexOf(t);return{suggestionBeforeMatch:e.substring(0,n),suggestionMatch:e.substring(n,n+t.length),suggestionAfterMatch:e.substring(n+t.length)}}},{key:"render",value:function(){var e=this;return Object(c.createElement)("ul",{ref:this.bindList,className:"components-form-token-field__suggestions-list",id:"components-form-token-suggestions-".concat(this.props.instanceId),role:"listbox"},Object(s.map)(this.props.suggestions,(function(t,n){var r=e.computeSuggestionMatch(t),o=l()("components-form-token-field__suggestion",{"is-selected":n===e.props.selectedIndex});return Object(c.createElement)("li",{id:"components-form-token-suggestions-".concat(e.props.instanceId,"-").concat(n),role:"option",className:o,key:e.props.displayTransform(t),onMouseDown:e.handleMouseDown,onClick:e.handleClick(t),onMouseEnter:e.handleHover(t),"aria-selected":n===e.props.selectedIndex},r?Object(c.createElement)("span",{"aria-label":e.props.displayTransform(t)},r.suggestionBeforeMatch,Object(c.createElement)("strong",{className:"components-form-token-field__suggestion-match"},r.suggestionMatch),r.suggestionAfterMatch):e.props.displayTransform(t))})))}}]),n}(c.Component);ec.defaultProps={match:"",onHover:function(){},onSelect:function(){},suggestions:Object.freeze([])};var tc=Object(E.withSafeTimeout)(ec);var nc=function e(t){var n,r=t.value,o=t.label,a=t.options,s=t.onChange,u=t.onFilterValueChange,d=t.hideLabelFromVision,f=t.help,p=t.allowReset,b=void 0===p||p,h=t.className,v=t.messages,m=void 0===v?{selected:Object(S.__)("Item selected.")}:v,y=Object(E.useInstanceId)(e),g=Object(c.useState)(null),O=Object(i.a)(g,2),j=O[0],w=O[1],k=Object(c.useState)(!1),_=Object(i.a)(k,2),x=_[0],C=_[1],P=Object(c.useState)(""),D=Object(i.a)(P,2),M=D[0],T=D[1],I=Object(c.useRef)(),R=a.find((function(e){return e.value===r})),N=null!==(n=null==R?void 0:R.label)&&void 0!==n?n:"",A=Object(c.useMemo)((function(){var e=[],t=[],n=M.toLocaleLowerCase();return a.forEach((function(r){var o=r.label.toLocaleLowerCase().indexOf(n);0===o?e.push(r):o>0&&t.push(r)})),e.concat(t)}),[M,a,r]),L=function(e){s(e.value),Object(Zr.speak)(m.selected,"assertive"),w(e),T(""),C(!1)},F=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=A.indexOf(j),n=t+e;n<0?n=A.length-1:n>=A.length&&(n=0),w(A[n]),C(!0)};return Object(c.useEffect)((function(){var e=A.length>0;if(x){var t=e?Object(S.sprintf)(Object(S._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",A.length),A.length):Object(S.__)("No results.");Object(Zr.speak)(t,"assertive")}}),[A,x]),Object(c.createElement)(yt,{className:l()(h,"components-combobox-control"),tabIndex:"-1",label:o,id:"components-form-token-input-".concat(y),hideLabelFromVision:d,help:f},Object(c.createElement)("div",{className:"components-combobox-control__suggestions-container",tabIndex:"-1",onKeyDown:function(e){var t=!1;switch(e.keyCode){case pr.ENTER:j&&(L(j),t=!0);break;case pr.UP:F(-1),t=!0;break;case pr.DOWN:F(1),t=!0;break;case pr.ESCAPE:C(!1),w(null),t=!0,e.stopPropagation()}t&&e.preventDefault()}},Object(c.createElement)(_t,null,Object(c.createElement)(kt,null,Object(c.createElement)(Za,{className:"components-combobox-control__input",instanceId:y,ref:I,value:x?M:N,onBlur:function(){C(!1)},onFocus:function(){C(!0),u(""),T("")},isExpanded:x,selectedSuggestionIndex:A.indexOf(j),onChange:function(e){var t=e.value;T(t),u(t),C(!0)}})),b&&Object(c.createElement)(Et,null,Object(c.createElement)(qr.a,{className:"components-combobox-control__reset",icon:qa.a,disabled:!r,onClick:function(){s(null),I.current.input.focus()},label:Object(S.__)("Reset")}))),x&&Object(c.createElement)(tc,{instanceId:y,match:{label:M},displayTransform:function(e){return e.label},suggestions:A,selectedIndex:A.indexOf(j),onHover:w,onSelect:L,scrollIntoView:!0})))},rc=n(43);var oc=n(28),ic=n.n(oc);n(200);function ac(e){return null!=e&&"object"==typeof e&&1===e.nodeType}function cc(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function sc(e,t){if(e.clientHeightt||i>e&&a=t&&c>=n?i-e-r:a>t&&cn?a-t+o:0}var lc=0;function dc(e,t){e&&function(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,c=t.skipOverflowHiddenElements,s="function"==typeof a?a:function(e){return e!==a};if(!ac(e))throw new TypeError("Invalid target");for(var u=document.scrollingElement||document.documentElement,l=[],d=e;ac(d)&&s(d);){if((d=d.parentNode)===u){l.push(d);break}d===document.body&&sc(d)&&!sc(document.documentElement)||sc(d,c)&&l.push(d)}for(var f=n.visualViewport?n.visualViewport.width:innerWidth,p=n.visualViewport?n.visualViewport.height:innerHeight,b=window.scrollX||pageXOffset,h=window.scrollY||pageYOffset,v=e.getBoundingClientRect(),m=v.height,y=v.width,g=v.top,O=v.right,j=v.bottom,w=v.left,k="start"===o||"nearest"===o?g:"end"===o?j:g+m/2,_="center"===i?w+y/2:"end"===i?O:w,S=[],E=0;E=0&&w>=0&&j<=p&&O<=f&&g>=M&&j<=I&&w>=R&&O<=T)return S;var N=getComputedStyle(x),A=parseInt(N.borderLeftWidth,10),L=parseInt(N.borderTopWidth,10),F=parseInt(N.borderRightWidth,10),z=parseInt(N.borderBottomWidth,10),B=0,H=0,V="offsetWidth"in x?x.offsetWidth-x.clientWidth-A-F:0,K="offsetHeight"in x?x.offsetHeight-x.clientHeight-L-z:0;if(u===x)B="start"===o?k:"end"===o?k-p:"nearest"===o?uc(h,h+p,p,L,z,h+k,h+k+m,m):k-p/2,H="start"===i?_:"center"===i?_-f/2:"end"===i?_-f:uc(b,b+f,f,A,F,b+_,b+_+y,y),B=Math.max(0,B+h),H=Math.max(0,H+b);else{B="start"===o?k-M-L:"end"===o?k-I+z+K:"nearest"===o?uc(M,I,P,L,z+K,k,k+m,m):k-(M+P/2)+K/2,H="start"===i?_-R-A:"center"===i?_-(R+D/2)+V/2:"end"===i?_-T+F+V:uc(R,T,D,A,F+V,_,_+y,y);var W=x.scrollLeft,U=x.scrollTop;k+=U-(B=Math.max(0,Math.min(U+B,x.scrollHeight-P+K))),_+=W-(H=Math.max(0,Math.min(W+H,x.scrollWidth-D+V)))}S.push({el:x,top:B,left:H})}return S}(e,{boundary:t,block:"nearest",scrollMode:"if-needed"}).forEach((function(e){var t=e.el,n=e.top,r=e.left;t.scrollTop=n,t.scrollLeft=r}))}function fc(e,t){return e===t||e.contains&&e.contains(t)}function pc(e,t){var n;function r(){n&&clearTimeout(n)}function o(){for(var o=arguments.length,i=new Array(o),a=0;a1?n-1:0),o=1;o=37&&n<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t}function jc(e,t,n,r,o){if(void 0===o&&(o=!0),0===n)return-1;var i=n-1;("number"!=typeof t||t<0||t>=n)&&(t=e>0?-1:i+1);var a=t+e;a<0?a=o?i:0:a>i&&(a=o?0:i);var c=wc(e,a,n,r,o);return-1===c?t>=n?-1:t:c}function wc(e,t,n,r,o){var i=r(t);if(!i||!i.hasAttribute("disabled"))return t;if(e>0){for(var a=t+1;a=0;c--)if(!r(c).hasAttribute("disabled"))return c;return o?e>0?wc(1,0,n,r,!1):wc(-1,n-1,n,r,!1):-1}function kc(e,t,n,r){return void 0===r&&(r=!0),t.some((function(t){return t&&(fc(t,e)||r&&fc(t,n.activeElement))}))}var _c=pc((function(){Ec().textContent=""}),500);function Sc(e,t){var n=Ec(t);e&&(n.textContent=e,_c())}function Ec(e){void 0===e&&(e=document);var t=e.getElementById("a11y-status-message");return t||((t=e.createElement("div")).setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}var xc={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function Cc(e,t,n){var r=e.props,i=e.type,a={};Object.keys(t).forEach((function(e){!function(e,t,n,r){var o="on"+Ic(e)+"Change";t[o]&&void 0!==r[e]&&r[e]!==n[e]&&t[o](r)}(e,r,t,n),n[e]!==t[e]&&(a[e]=n[e])})),r.onStateChange&&Object.keys(a).length&&r.onStateChange(Object(o.a)({type:i},a))}var Pc=pc((function(e,t){Sc(e(),t)}),200);function Dc(e){var t=e.id,n=e.labelId,r=e.menuId,o=e.getItemId,i=e.toggleButtonId,a=void 0===t?"downshift-"+vc():t;return{labelId:n||a+"-label",menuId:r||a+"-menu",getItemId:o||function(e){return a+"-item-"+e},toggleButtonId:i||a+"-toggle-button"}}function Mc(e,t,n){return void 0!==e?e:0===n.length?-1:n.indexOf(t)}function Tc(e){return/^\S{1}$/.test(e)}function Ic(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function Rc(e){var t=Object(v.useRef)(e);return t.current=e,t}function Nc(e,t,n){var r=Object(v.useRef)(),i=Object(v.useRef)(),a=Object(v.useCallback)((function(t,n){i.current=n,t=yc(t,n.props);var r=e(t,n);return n.props.stateReducer(t,Object(o.a)({},n,{changes:r}))}),[e]),c=Object(v.useReducer)(a,t),s=c[0],u=c[1],l=Rc(n),d=Object(v.useCallback)((function(e){return u(Object(o.a)({props:l.current},e))}),[l]),f=i.current;return Object(v.useEffect)((function(){f&&r.current&&r.current!==s&&Cc(f,yc(r.current,f.props),s),r.current=s}),[s,n,f]),[s,d]}function Ac(e,t,n){var r=Nc(e,t,n),o=r[0],i=r[1];return[yc(o,n),i]}var Lc={itemToString:function(e){return e?String(e):""},stateReducer:function(e,t){return t.changes},getA11ySelectionMessage:function(e){var t=e.selectedItem,n=e.itemToString;return t?n(t)+" has been selected.":""},scrollIntoView:dc,circularNavigation:!1,environment:"undefined"==typeof window?{}:window};function Fc(e,t,n){void 0===n&&(n=xc);var r="default"+Ic(t);return r in e?e[r]:n[t]}function zc(e,t,n){if(void 0===n&&(n=xc),t in e)return e[t];var r="initial"+Ic(t);return r in e?e[r]:Fc(e,t,n)}function Bc(e){var t=zc(e,"selectedItem"),n=zc(e,"isOpen"),r=zc(e,"highlightedIndex"),o=zc(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:o}}function Hc(e,t,n,r){var o=e.items,i=e.initialHighlightedIndex,a=e.defaultHighlightedIndex,c=t.selectedItem,s=t.highlightedIndex;return 0===o.length?-1:void 0!==i&&s===i?i:void 0!==a?a:c?0===n?o.indexOf(c):jc(n,o.indexOf(c),o.length,r,!1):0===n?-1:n<0?o.length-1:0}function Vc(e,t,n,r){var o=Object(v.useRef)({isMouseDown:!1,isTouchMove:!1});return Object(v.useEffect)((function(){var i=function(){o.current.isMouseDown=!0},a=function(i){o.current.isMouseDown=!1,e&&!kc(i.target,t.map((function(e){return e.current})),n.document)&&r()},c=function(){o.current.isTouchMove=!1},s=function(){o.current.isTouchMove=!0},u=function(i){!e||o.current.isTouchMove||kc(i.target,t.map((function(e){return e.current})),n.document,!1)||r()};return n.addEventListener("mousedown",i),n.addEventListener("mouseup",a),n.addEventListener("touchstart",c),n.addEventListener("touchmove",s),n.addEventListener("touchend",u),function(){n.removeEventListener("mousedown",i),n.removeEventListener("mouseup",a),n.removeEventListener("touchstart",c),n.removeEventListener("touchmove",s),n.removeEventListener("touchend",u)}}),[e,n]),o}function Kc(){for(var e=!1,t=Object(v.useRef)(!0),n=arguments.length,r=new Array(n),o=0;o=0&&{selectedItem:i.items[u]});break;case 13:n={highlightedIndex:Hc(i,e,1,t.getItemNodeFromIndex),isOpen:!0};break;case 14:n={highlightedIndex:Hc(i,e,-1,t.getItemNodeFromIndex),isOpen:!0};break;case 5:case 6:n=Object(o.a)({isOpen:Fc(i,"isOpen"),highlightedIndex:Fc(i,"highlightedIndex")},e.highlightedIndex>=0&&{selectedItem:i.items[e.highlightedIndex]});break;case 3:n={highlightedIndex:wc(1,0,i.items.length,t.getItemNodeFromIndex,!1)};break;case 4:n={highlightedIndex:wc(-1,i.items.length-1,i.items.length,t.getItemNodeFromIndex,!1)};break;case 2:case 8:n={isOpen:!1,highlightedIndex:-1};break;case 7:var l=t.key,d=""+e.inputValue+l,f=Wc(d,e.highlightedIndex,i.items,i.itemToString,t.getItemNodeFromIndex);n=Object(o.a)({inputValue:d},f>=0&&{highlightedIndex:f});break;case 0:n={highlightedIndex:jc(a?5:1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,i.circularNavigation)};break;case 1:n={highlightedIndex:jc(a?-5:-1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,i.circularNavigation)};break;case 9:n={highlightedIndex:-1};break;case 12:case 16:n={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:Hc(i,e,0)};break;case 17:n={isOpen:!0,highlightedIndex:Hc(i,e,0)};break;case 18:n={isOpen:!1};break;case 19:n={highlightedIndex:t.highlightedIndex};break;case 20:n={selectedItem:t.selectedItem};break;case 21:n={inputValue:t.inputValue};break;case 22:n={highlightedIndex:Fc(i,"highlightedIndex"),isOpen:Fc(i,"isOpen"),selectedItem:Fc(i,"selectedItem"),inputValue:Fc(i,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return Object(o.a)({},e,n)}function qc(e){void 0===e&&(e={});var t=Object(o.a)({},Uc,e),n=t.items,r=t.scrollIntoView,i=t.environment,a=t.initialIsOpen,c=t.defaultIsOpen,s=t.itemToString,u=t.getA11ySelectionMessage,l=t.getA11yStatusMessage,d=Ac($c,Bc(t),t),f=d[0],p=d[1],b=f.isOpen,h=f.highlightedIndex,m=f.selectedItem,y=f.inputValue,g=Object(v.useRef)(null),O=Object(v.useRef)(null),j=Object(v.useRef)();j.current={};var w=Object(v.useRef)(!0),k=Object(v.useRef)(!0),_=Object(v.useRef)(null),S=Object(v.useRef)(Dc(t)),E=Object(v.useRef)(),x=Object(v.useRef)(!0),C=Object(v.useRef)(t),P=Rc({state:f,props:t}),D=function(e){return j.current[S.current.getItemId(e)]};Object(v.useEffect)((function(){if(!x.current){var e=E.current;Pc((function(){return l({isOpen:b,highlightedIndex:h,selectedItem:m,inputValue:y,highlightedItem:n[h],resultCount:n.length,itemToString:s,previousResultCount:e})}),i.document)}}),[b,h,y,n]),Object(v.useEffect)((function(){if(!x.current){var e=E.current;Pc((function(){return u({isOpen:b,highlightedIndex:h,selectedItem:m,inputValue:y,highlightedItem:n[h],resultCount:n.length,itemToString:s,previousResultCount:e})}),i.document)}}),[m]),Object(v.useEffect)((function(){x.current&&(_.current=pc((function(e){e({type:21,inputValue:""})}),500)),y&&_.current(p)}),[y]),Object(v.useEffect)((function(){x.current?(a||c||b)&&O.current&&O.current.focus():b?O.current&&O.current.focus():i.document.activeElement===O.current&&g.current&&(k.current=!1,g.current.focus())}),[b]),Object(v.useEffect)((function(){h<0||!b||!Object.keys(j.current).length||(!1===w.current?w.current=!0:r(D(h),O.current))}),[h]),Object(v.useEffect)((function(){x.current||(E.current=n.length)})),Object(v.useEffect)((function(){x.current||(C.current,C.current=t)}),[f,t]);var M=Vc(b,[O,g],i,(function(){p({type:8})})),T=Kc("getMenuProps","getToggleButtonProps");Object(v.useEffect)((function(){x.current=!1}),[]);var I=Object(v.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),p({type:13,getItemNodeFromIndex:D,shiftKey:e.shiftKey})},ArrowUp:function(e){e.preventDefault(),p({type:14,getItemNodeFromIndex:D,shiftKey:e.shiftKey})}}}),[p]),R=Object(v.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),p({type:0,getItemNodeFromIndex:D,shiftKey:e.shiftKey})},ArrowUp:function(e){e.preventDefault(),p({type:1,getItemNodeFromIndex:D,shiftKey:e.shiftKey})},Home:function(e){e.preventDefault(),p({type:3,getItemNodeFromIndex:D})},End:function(e){e.preventDefault(),p({type:4,getItemNodeFromIndex:D})},Escape:function(){p({type:2})},Enter:function(e){e.preventDefault(),p({type:5})}," ":function(e){e.preventDefault(),p({type:6})}}}),[p]),N=Object(v.useCallback)((function(){p({type:16})}),[p]),A=Object(v.useCallback)((function(){p({type:18})}),[p]),L=Object(v.useCallback)((function(){p({type:17})}),[p]),F=Object(v.useCallback)((function(e){p({type:19,highlightedIndex:e})}),[p]),z=Object(v.useCallback)((function(e){p({type:20,selectedItem:e})}),[p]),B=Object(v.useCallback)((function(){p({type:22})}),[p]),H=Object(v.useCallback)((function(e){p({type:21,inputValue:e})}),[p]),V=Object(v.useCallback)((function(e){return Object(o.a)({id:S.current.labelId,htmlFor:S.current.toggleButtonId},e)}),[]),K=Object(v.useCallback)((function(e,t){var n,r=void 0===e?{}:e,i=r.onMouseLeave,a=r.refKey,c=void 0===a?"ref":a,s=r.onKeyDown,u=r.onBlur,l=r.ref,d=Object(rc.a)(r,["onMouseLeave","refKey","onKeyDown","onBlur","ref"]),f=(void 0===t?{}:t).suppressRefError,b=void 0!==f&&f,h=P.current.state;return T("getMenuProps",b,c,O),Object(o.a)(((n={})[c]=hc(l,(function(e){O.current=e})),n.id=S.current.menuId,n.role="listbox",n["aria-labelledby"]=S.current.labelId,n.tabIndex=-1,n),h.isOpen&&h.highlightedIndex>-1&&{"aria-activedescendant":S.current.getItemId(h.highlightedIndex)},{onMouseLeave:bc(i,(function(){p({type:9})})),onKeyDown:bc(s,(function(e){var t=Oc(e);t&&R[t]?R[t](e):Tc(t)&&p({type:7,key:t,getItemNodeFromIndex:D})})),onBlur:bc(u,(function(){!1!==k.current?!M.current.isMouseDown&&p({type:8}):k.current=!0}))},d)}),[p,P,R,M,T]);return{getToggleButtonProps:Object(v.useCallback)((function(e,t){var n,r=void 0===e?{}:e,i=r.onClick,a=r.onKeyDown,c=r.refKey,s=void 0===c?"ref":c,u=r.ref,l=Object(rc.a)(r,["onClick","onKeyDown","refKey","ref"]),d=(void 0===t?{}:t).suppressRefError,f=void 0!==d&&d,b=Object(o.a)(((n={})[s]=hc(u,(function(e){g.current=e})),n.id=S.current.toggleButtonId,n["aria-haspopup"]="listbox",n["aria-expanded"]=P.current.state.isOpen,n["aria-labelledby"]=S.current.labelId+" "+S.current.toggleButtonId,n),l);return l.disabled||(b.onClick=bc(i,(function(){p({type:12})})),b.onKeyDown=bc(a,(function(e){var t=Oc(e);t&&I[t]?I[t](e):Tc(t)&&p({type:15,key:t,getItemNodeFromIndex:D})}))),T("getToggleButtonProps",f,s,g),b}),[p,P,I,T]),getLabelProps:V,getMenuProps:K,getItemProps:Object(v.useCallback)((function(e){var t,n=void 0===e?{}:e,r=n.item,i=n.index,a=n.onMouseMove,c=n.onClick,s=n.refKey,u=void 0===s?"ref":s,l=n.ref,d=Object(rc.a)(n,["item","index","onMouseMove","onClick","refKey","ref"]),f=P.current,b=f.state,h=f.props,v=Mc(i,r,h.items);if(v<0)throw new Error("Pass either item or item index in getItemProps!");var m=Object(o.a)(((t={role:"option","aria-selected":""+(v===b.highlightedIndex),id:S.current.getItemId(v)})[u]=hc(l,(function(e){e&&(j.current[S.current.getItemId(v)]=e)})),t),d);return d.disabled||(m.onMouseMove=bc(a,(function(){i!==b.highlightedIndex&&(w.current=!1,p({type:10,index:i}))})),m.onClick=bc(c,(function(){p({type:11,index:i})}))),m}),[p,P]),toggleMenu:N,openMenu:L,closeMenu:A,setHighlightedIndex:F,selectItem:z,reset:B,setInputValue:H,highlightedIndex:h,isOpen:b,selectedItem:m,inputValue:y}}qc.stateChangeTypes=Gc;ic.a.array.isRequired,ic.a.func,ic.a.func,ic.a.func,ic.a.bool,ic.a.number,ic.a.number,ic.a.number,ic.a.bool,ic.a.bool,ic.a.bool,ic.a.any,ic.a.any,ic.a.any,ic.a.string,ic.a.string,ic.a.string,ic.a.string,ic.a.string,ic.a.string,ic.a.func,ic.a.string,ic.a.string,ic.a.func,ic.a.func,ic.a.func,ic.a.func,ic.a.func,ic.a.func,ic.a.shape({addEventListener:ic.a.func,removeEventListener:ic.a.func,document:ic.a.shape({getElementById:ic.a.func,activeElement:ic.a.any,body:ic.a.any})});Object(o.a)({},Lc,{getA11yStatusMessage:mc,circularNavigation:!0});ic.a.array,ic.a.array,ic.a.array,ic.a.func,ic.a.func,ic.a.func,ic.a.number,ic.a.number,ic.a.number,ic.a.func,ic.a.func,ic.a.string,ic.a.string,ic.a.shape({addEventListener:ic.a.func,removeEventListener:ic.a.func,document:ic.a.shape({getElementById:ic.a.func,activeElement:ic.a.any,body:ic.a.any})});var Yc=function(e){return e&&e.name},Zc=function(e,t){var n=e.selectedItem,r=t.type,o=t.changes,i=t.props.items;switch(r){case qc.stateChangeTypes.ToggleButtonKeyDownArrowDown:return{selectedItem:i[n?Math.min(i.indexOf(n)+1,i.length-1):0]};case qc.stateChangeTypes.ToggleButtonKeyDownArrowUp:return{selectedItem:i[n?Math.max(i.indexOf(n)-1,0):i.length-1]};default:return o}};function Xc(e){var t=e.className,n=e.hideLabelFromVision,r=e.label,i=e.options,a=e.onChange,s=e.value,u=qc({initialSelectedItem:i[0],items:i,itemToString:Yc,onSelectedItemChange:a,selectedItem:s,stateReducer:Zc}),d=u.getLabelProps,f=u.getToggleButtonProps,p=u.getMenuProps,b=u.getItemProps,h=u.isOpen,v=u.highlightedIndex,m=u.selectedItem,y=p({className:"components-custom-select-control__menu","aria-hidden":!h});return y["aria-activedescendant"]&&"downshift-null"===y["aria-activedescendant"].slice(0,"downshift-null".length)&&delete y["aria-activedescendant"],Object(c.createElement)("div",{className:l()("components-custom-select-control",t)},n?Object(c.createElement)(M,Object(o.a)({as:"label"},d()),r):Object(c.createElement)("label",d({className:"components-custom-select-control__label"}),r),Object(c.createElement)(qr.a,f({"aria-label":r,"aria-labelledby":void 0,className:"components-custom-select-control__button",isSmall:!0}),Yc(m),Object(c.createElement)(Qi.a,{icon:aa.a,className:"components-custom-select-control__button-icon"})),Object(c.createElement)("ul",y,h&&i.map((function(e,t){return Object(c.createElement)("li",b({item:e,index:t,key:e.key,className:l()(e.className,"components-custom-select-control__item",{"is-highlighted":t===v}),style:e.style}),e===m&&Object(c.createElement)(Qi.a,{icon:ea.a,className:"components-custom-select-control__item-icon"}),e.name)}))))}var Jc=n(151),Qc=(n(323),n(44)),es=n.n(Qc),ts=n(286),ns=n.n(ts);function rs(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ha.a)(e);if(t){var o=Object(ha.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ba.a)(this,n)}}var os=function(e){Object(pa.a)(n,e);var t=rs(n);function n(){var e;return Object(la.a)(this,n),(e=t.apply(this,arguments)).onChangeMoment=e.onChangeMoment.bind(Object(fa.a)(e)),e.nodeRef=Object(c.createRef)(),e.keepFocusInside=e.keepFocusInside.bind(Object(fa.a)(e)),e.isDayHighlighted=e.isDayHighlighted.bind(Object(fa.a)(e)),e}return Object(da.a)(n,[{key:"keepFocusInside",value:function(){if(this.nodeRef.current&&(!document.activeElement||!this.nodeRef.current.contains(document.activeElement))){var e=this.nodeRef.current.querySelector(".DayPicker_focusRegion");if(!e)return;e.focus()}}},{key:"onChangeMoment",value:function(e){var t=this.props,n=t.currentDate,r=t.onChange,o=n?es()(n):es()(),i={hours:o.hours(),minutes:o.minutes(),seconds:0};r(e.set(i).format("YYYY-MM-DDTHH:mm:ss"))}},{key:"getMomentDate",value:function(e){return null===e?null:e?es()(e):es()()}},{key:"isDayHighlighted",value:function(e){var t;return!!(null===(t=this.props.events)||void 0===t?void 0:t.length)&&(this.props.onMonthPreviewed&&this.props.onMonthPreviewed(e.toDate()),this.props.events.some((function(t){return e.isSame(t.date,"day")})))}},{key:"render",value:function(){var e=this.props,t=e.currentDate,n=e.isInvalidDate,r=this.getMomentDate(t);return Object(c.createElement)("div",{className:"components-datetime__date",ref:this.nodeRef},Object(c.createElement)(ns.a,{date:r,daySize:30,focused:!0,hideKeyboardShortcutsPanel:!0,key:"datepicker-controller-".concat(r?r.format("MM-YYYY"):"null"),noBorder:!0,numberOfMonths:1,onDateChange:this.onChangeMoment,transitionDuration:0,weekDayFormat:"ddd",isRTL:"rtl"===document.documentElement.dir,isOutsideRange:function(e){return n&&n(e.toDate())},isDayHighlighted:this.isDayHighlighted,onPrevMonthClick:this.keepFocusInside,onNextMonthClick:this.keepFocusInside}))}}]),n}(c.Component),is=n(75),as=function(){var e=Object(is.__experimentalGetSettings)().timezone,t=(new Date).getTimezoneOffset()/60*-1;if(Number(e.offset)===t)return null;var n=e.offset>=0?"+":"",r=""!==e.abbr&&isNaN(e.abbr)?e.abbr:"UTC".concat(n).concat(e.offset),o="UTC"===e.string?Object(S.__)("Coordinated Universal Time"):"(".concat(r,") ").concat(e.string.replace("_"," "));return Object(c.createElement)(C.a,{position:"top center",text:o},Object(c.createElement)("div",{className:"components-datetime__timezone"},r))};function cs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ss(e){var t=e.as,n=e.value,r=e.onUpdate,o=Object(a.a)(e,["as","value","onUpdate"]);return Object(c.createElement)(t||"input",function(e){for(var t=1;to.max||void 0!==o.min&&i700?(this.cloneWrapper.style.transform="scale(0.5)",this.cloneWrapper.style.transformOrigin="top left",this.cloneWrapper.style.top="".concat(e.clientY-100,"px"),this.cloneWrapper.style.left="".concat(e.clientX,"px")):(this.cloneWrapper.style.top="".concat(f-0,"px"),this.cloneWrapper.style.left="".concat(p-0,"px")),Array.from(h.querySelectorAll("iframe")).forEach((function(e){return e.parentNode.removeChild(e)})),this.cloneWrapper.appendChild(h)}d.appendChild(this.cloneWrapper),this.cursorLeft=e.clientX,this.cursorTop=e.clientY,document.body.classList.add("is-dragging-components-draggable"),document.addEventListener("dragover",this.onDragOver),e.persist(),this.props.setTimeout(a.bind(this,e))}else e.preventDefault()}},{key:"resetDragState",value:function(){document.removeEventListener("dragover",this.onDragOver),this.cloneWrapper&&this.cloneWrapper.parentNode&&(this.cloneWrapper.parentNode.removeChild(this.cloneWrapper),this.cloneWrapper=null),this.cursorLeft=null,this.cursorTop=null,document.body.classList.remove("is-dragging-components-draggable")}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.__experimentalDragComponent;return Object(c.createElement)(c.Fragment,null,t({onDraggableStart:this.onDragStart,onDraggableEnd:this.onDragEnd}),n&&Object(c.createElement)("div",{className:"components-draggable-drag-component-root",style:{display:"none"},ref:this.dragComponentRef},n))}}]),n}(c.Component),Cs=Object(E.withSafeTimeout)(xs),Ps=n(217),Ds=n(64),Ms=n.n(Ds);function Ts(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ha.a)(e);if(t){var o=Object(ha.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ba.a)(this,n)}}var Is=Object(c.createContext)({addDropZone:function(){},removeDropZone:function(){}}),Rs=Is.Provider,Ns=Is.Consumer,As=function(e){var t=e.dataTransfer;if(t){if(Object(s.includes)(t.types,"Files"))return"file";if(Object(s.includes)(t.types,"text/html"))return"html"}return"default"},Ls=function(e,t){return"file"===e&&t.onFilesDrop||"html"===e&&t.onHTMLDrop||"default"===e&&t.onDrop},Fs=function(e){Object(pa.a)(n,e);var t=Ts(n);function n(){var e;return Object(la.a)(this,n),(e=t.apply(this,arguments)).onDragOver=e.onDragOver.bind(Object(fa.a)(e)),e.onDrop=e.onDrop.bind(Object(fa.a)(e)),e.addDropZone=e.addDropZone.bind(Object(fa.a)(e)),e.removeDropZone=e.removeDropZone.bind(Object(fa.a)(e)),e.resetDragState=e.resetDragState.bind(Object(fa.a)(e)),e.toggleDraggingOverDocument=Object(s.throttle)(e.toggleDraggingOverDocument.bind(Object(fa.a)(e)),200),e.dropZones=[],e.dropZoneCallbacks={addDropZone:e.addDropZone,removeDropZone:e.removeDropZone},e.state={hoveredDropZone:-1,isDraggingOverDocument:!1,position:null},e.ref=Object(c.createRef)(),e}return Object(da.a)(n,[{key:"componentDidMount",value:function(){var e=this.ref.current.ownerDocument.defaultView;e.addEventListener("dragover",this.onDragOver),e.addEventListener("mouseup",this.resetDragState)}},{key:"componentWillUnmount",value:function(){var e=this.ref.current.ownerDocument.defaultView;e.removeEventListener("dragover",this.onDragOver),e.removeEventListener("mouseup",this.resetDragState)}},{key:"addDropZone",value:function(e){this.dropZones.push(e)}},{key:"removeDropZone",value:function(e){this.dropZones=Object(s.filter)(this.dropZones,(function(t){return t!==e}))}},{key:"resetDragState",value:function(){this.toggleDraggingOverDocument.cancel();var e=this.state,t=e.isDraggingOverDocument,n=e.hoveredDropZone;(t||-1!==n)&&(this.setState({hoveredDropZone:-1,isDraggingOverDocument:!1,position:null}),this.dropZones.forEach((function(e){return e.setState({isDraggingOverDocument:!1,isDraggingOverElement:!1,position:null,type:null})})))}},{key:"toggleDraggingOverDocument",value:function(e,t){var n=this,r=window.CustomEvent&&e instanceof window.CustomEvent?e.detail:e,o=Object(s.filter)(this.dropZones,(function(e){return Ls(t,e)&&(n=e.element.current,o=r.clientX,i=r.clientY,(a=n.getBoundingClientRect()).bottom!==a.top&&a.left!==a.right&&o>=a.left&&o<=a.right&&i>=a.top&&i<=a.bottom);var n,o,i,a})),i=Object(s.find)(o,(function(e){var t=e.isRelative?e.element.current.parentElement:e.element.current;return!Object(s.some)(o,(function(n){return n!==e&&t.contains(n.element.current)}))})),a=this.dropZones.indexOf(i),c=null;i&&i.withPosition&&(c={x:r.clientX,y:r.clientY});var u=[];this.state.isDraggingOverDocument?a!==this.state.hoveredDropZone?(-1!==this.state.hoveredDropZone&&u.push(this.dropZones[this.state.hoveredDropZone]),i&&u.push(i)):i&&a===this.state.hoveredDropZone&&!Object(s.isEqual)(c,this.state.position)&&u.push(i):u=this.dropZones,u.forEach((function(e){var r=n.dropZones.indexOf(e)===a;e.setState({isDraggingOverDocument:Ls(t,e),isDraggingOverElement:r,position:r?c:null,type:r?t:null})}));var l={isDraggingOverDocument:!0,hoveredDropZone:a,position:c};Ms()(l,this.state)||this.setState(l)}},{key:"onDragOver",value:function(e){this.toggleDraggingOverDocument(e,As(e)),e.preventDefault()}},{key:"onDrop",value:function(e){e.dataTransfer&&e.dataTransfer.files.length;var t=this.state,n=t.position,r=t.hoveredDropZone,o=As(e),i=this.dropZones[r];if(this.resetDragState(),i)switch(o){case"file":i.onFilesDrop(Object(Gr.a)(e.dataTransfer.files),n);break;case"html":i.onHTMLDrop(e.dataTransfer.getData("text/html"),n);break;case"default":i.onDrop(e,n)}e.stopPropagation(),e.preventDefault()}},{key:"render",value:function(){return Object(c.createElement)("div",{ref:this.ref,onDrop:this.onDrop,className:"components-drop-zone__provider"},Object(c.createElement)(Rs,{value:this.dropZoneCallbacks},this.props.children))}}]),n}(c.Component);function zs(e){var t=e.element,n=e.onFilesDrop,r=e.onHTMLDrop,o=e.onDrop,a=e.isDisabled,s=e.withPosition,u=e.__unstableIsRelative,l=void 0!==u&&u,d=Object(c.useContext)(Is),f=d.addDropZone,p=d.removeDropZone,b=Object(c.useState)({isDraggingOverDocument:!1,isDraggingOverElement:!1,type:null}),h=Object(i.a)(b,2),v=h[0],m=h[1];return Object(c.useEffect)((function(){if(!a){var e={element:t,onDrop:o,onFilesDrop:n,onHTMLDrop:r,setState:m,withPosition:s,isRelative:l};return f(e),function(){p(e)}}}),[a,o,n,r,s]),v}function Bs(e){var t,n=e.className,r=e.label,o=e.onFilesDrop,i=e.onHTMLDrop,a=e.onDrop,s=Object(c.useRef)(),u=zs({element:s,onFilesDrop:o,onHTMLDrop:i,onDrop:a,__unstableIsRelative:!0}),d=u.isDraggingOverDocument,f=u.isDraggingOverElement,p=u.type;f&&(t=Object(c.createElement)("div",{className:"components-drop-zone__content"},Object(c.createElement)(Qi.a,{icon:Ps.a,className:"components-drop-zone__content-icon"}),Object(c.createElement)("span",{className:"components-drop-zone__content-text"},r||Object(S.__)("Drop files to upload"))));var b=l()("components-drop-zone",n,Object(P.a)({"is-active":(d||f)&&("file"===p&&o||"html"===p&&i||"default"===p&&a),"is-dragging-over-document":d,"is-dragging-over-element":f},"is-dragging-".concat(p),!!p));return Object(c.createElement)("div",{ref:s,className:b},t)}var Hs=function(e){return Object(c.createElement)(Ns,null,(function(t){var n=t.addDropZone,r=t.removeDropZone;return Object(c.createElement)(Bs,Object(o.a)({addDropZone:n,removeDropZone:r},e))}))},Vs=n(36),Ks=n.n(Vs);function Ws(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ha.a)(e);if(t){var o=Object(ha.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ba.a)(this,n)}}var Us=["menuitem","menuitemradio","menuitemcheckbox"];var Gs=function(e){Object(pa.a)(n,e);var t=Ws(n);function n(){var e;return Object(la.a)(this,n),(e=t.apply(this,arguments)).onKeyDown=e.onKeyDown.bind(Object(fa.a)(e)),e.bindContainer=e.bindContainer.bind(Object(fa.a)(e)),e.getFocusableContext=e.getFocusableContext.bind(Object(fa.a)(e)),e.getFocusableIndex=e.getFocusableIndex.bind(Object(fa.a)(e)),e}return Object(da.a)(n,[{key:"componentDidMount",value:function(){this.container.addEventListener("keydown",this.onKeyDown),this.container.addEventListener("focus",this.onFocus)}},{key:"componentWillUnmount",value:function(){this.container.removeEventListener("keydown",this.onKeyDown),this.container.removeEventListener("focus",this.onFocus)}},{key:"bindContainer",value:function(e){var t=this.props.forwardedRef;this.container=e,Object(s.isFunction)(t)?t(e):t&&"current"in t&&(t.current=e)}},{key:"getFocusableContext",value:function(e){var t=(this.props.onlyBrowserTabstops?gs.focus.tabbable:gs.focus.focusable).find(this.container),n=this.getFocusableIndex(t,e);return n>-1&&e?{index:n,target:e,focusables:t}:null}},{key:"getFocusableIndex",value:function(e,t){var n=e.indexOf(t);if(-1!==n)return n}},{key:"onKeyDown",value:function(e){this.props.onKeyDown&&this.props.onKeyDown(e);var t=this.getFocusableContext,n=this.props,r=n.cycle,o=void 0===r||r,i=n.eventToOffset,a=n.onNavigate,c=void 0===a?s.noop:a,u=n.stopNavigationEvents,l=i(e);if(void 0!==l&&u){e.stopImmediatePropagation();var d=e.target.getAttribute("role");Us.includes(d)&&e.preventDefault()}if(l){var f=t(e.target.ownerDocument.activeElement);if(f){var p=f.index,b=f.focusables,h=o?function(e,t,n){var r=e+n;return r<0?t+r:r>=t?r-t:r}(p,b.length,l):p+l;h>=0&&h0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Xs(Xs({},e),t);return t.className&&e.className&&(n.className=l()(t.className,e.className)),n}var Qs=function(e){var t,n=e.children,r=e.className,i=e.controls,a=e.icon,u=void 0===a?"menu":a,d=e.label,f=e.popoverProps,p=e.toggleProps,b=e.menuProps,h=e.disableOpenOnArrowDown,v=void 0!==h&&h,m=e.menuLabel,y=e.position,g=e.noIcons;if(m&&Ks()("`menuLabel` prop in `DropdownComponent`",{alternative:"`menuProps` object and its `aria-label` property",plugin:"Gutenberg"}),y&&Ks()("`position` prop in `DropdownComponent`",{alternative:"`popoverProps` object and its `position` property",plugin:"Gutenberg"}),Object(s.isEmpty)(i)&&!Object(s.isFunction)(n))return null;Object(s.isEmpty)(i)||(t=i,Array.isArray(t[0])||(t=[t]));var O=Js({className:"components-dropdown-menu__popover",position:y},f);return Object(c.createElement)(sa,{className:l()("components-dropdown-menu",r),popoverProps:O,renderToggle:function(e){var t,n=e.isOpen,r=e.onToggle,i=Js({className:l()("components-dropdown-menu__toggle",{"is-opened":n})},p);return Object(c.createElement)(qr.a,Object(o.a)({},i,{icon:u,onClick:function(e){r(e),i.onClick&&i.onClick(e)},onKeyDown:function(e){!function(e){v||n||e.keyCode!==pr.DOWN||(e.preventDefault(),e.stopPropagation(),r())}(e),i.onKeyDown&&i.onKeyDown(e)},"aria-haspopup":"true","aria-expanded":n,label:d,showTooltip:null===(t=null==p?void 0:p.showTooltip)||void 0===t||t}),i.children)},renderContent:function(e){var r=Js({"aria-label":m||d,className:l()("components-dropdown-menu__menu",{"no-icons":g})},b);return Object(c.createElement)(Ys,Object(o.a)({},r,{role:"menu"}),Object(s.isFunction)(n)?n(e):null,Object(s.flatMap)(t,(function(t,n){return t.map((function(t,r){return Object(c.createElement)(qr.a,{key:[n,r].join(),onClick:function(n){n.stopPropagation(),e.onClose(),t.onClick&&t.onClick()},className:l()("components-dropdown-menu__menu-item",{"has-separator":n>0&&0===r,"is-active":t.isActive}),icon:t.icon,"aria-checked":"menuitemcheckbox"===t.role||"menuitemradio"===t.role?t.isActive:void 0,role:"menuitemcheckbox"===t.role||"menuitemradio"===t.role?t.role:"menuitem",disabled:t.isDisabled},t.title)}))})))}})},eu=n(427);var tu=je(Qi.a,{target:"etxm6pv0",label:"StyledIcon"})({name:"i8uvf3",styles:"width:1.4em;height:1.4em;margin:-0.2em 0.1em 0;vertical-align:middle;fill:currentColor;"});var nu=Object(c.forwardRef)((function(e,t){var n=e.href,r=e.children,i=e.className,u=e.rel,d=void 0===u?"":u,f=Object(a.a)(e,["href","children","className","rel"]);d=Object(s.uniq)(Object(s.compact)([].concat(Object(Gr.a)(d.split(" ")),["external","noreferrer","noopener"]))).join(" ");var p=l()("components-external-link",i);return Object(c.createElement)("a",Object(o.a)({},f,{className:p,href:n,target:"_blank",rel:d,ref:t}),r,Object(c.createElement)(M,{as:"span"},Object(S.__)("(opens in a new tab)")),Object(c.createElement)(tu,{icon:eu.a,className:"components-external-link__icon"}))})),ru=n(113);var ou=je("div",{target:"e11wezi70",label:"MediaWrapper"})({name:"4wwkjz",styles:"background-color:transparent;box-sizing:border-box;text-align:center;width:100%;"}),iu=je("div",{target:"e11wezi71",label:"MediaContainer"})({name:"1q0l1fq",styles:"align-items:center;box-sizing:border-box;box-shadow:0 0 0 1px rgba( 0,0,0,0.2 );cursor:pointer;display:inline-flex;justify-content:center;margin:auto;position:relative;height:100%;img,video{box-sizing:border-box;display:block;height:auto;margin:0;max-height:100%;max-width:100%;pointer-events:none;user-select:none;width:auto;}"}),au=je("div",{target:"e11wezi72",label:"MediaPlaceholder"})("background:",Fe("lightGray.300"),";box-sizing:border-box;height:170px;max-width:280px;min-width:200px;width:100%;"),cu=je(go,{target:"e11wezi73",label:"UnitControl"})({name:"v7v99c",styles:"width:100px;"}),su=je(St,{target:"e11wezi74",label:"ControlWrapper"})({name:"lqoi1w",styles:"max-width:320px;padding:1em 0;"}),uu=je("div",{target:"e11wezi75",label:"GridView"})("box-sizing:border-box;left:50%;opacity:0;overflow:hidden;pointer-events:none;position:absolute;top:50%;transform:translate3d( -50%,-50%,0 );transition:opacity 120ms linear;z-index:1;",(function(e){return e.isActive&&"\n\t\topacity: 1;\n\t"}),""),lu=je("div",{target:"e11wezi76",label:"GridLine"})({name:"18dz4sk",styles:"box-sizing:border-box;background:white;box-shadow:0 0 2px rgba( 0,0,0,0.6 );position:absolute;opacity:0.4;transform:translateZ( 0 );"}),du=je(lu,{target:"e11wezi77",label:"GridLineX"})({name:"1u4twh6",styles:"height:1px;left:0;right:0;"}),fu=je(lu,{target:"e11wezi78",label:"GridLineY"})({name:"13gvipf",styles:"width:1px;top:0;bottom:0;"}),pu={top:0,left:0,bottom:0,right:0,width:0,height:0},bu=["avi","mpg","mpeg","mov","mp4","m4v","ogg","ogv","webm","wmv"];function hu(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split(".");return t[t.length-1]}function vu(e){return Math.round(100*e)}function mu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yu(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"";return!!e&&bu.includes(hu(e))}(r)?Object(c.createElement)("video",Object(o.a)({},p,{autoPlay:n,className:"components-focal-point-picker__media components-focal-point-picker__media--video",loop:!0,muted:f,onLoadedData:u,ref:l,src:r})):Object(c.createElement)("img",Object(o.a)({},p,{alt:t,className:"components-focal-point-picker__media components-focal-point-picker__media--image",onLoad:u,ref:l,src:r})):Object(c.createElement)(Mu,{className:"components-focal-point-picker__media components-focal-point-picker__media--placeholder",onLoad:u,mediaRef:l})}function Mu(e){var t=e.mediaRef,n=e.onLoad,r=void 0===n?s.noop:n,i=Object(a.a)(e,["mediaRef","onLoad"]),u=Object(c.useRef)(r);return Object(c.useLayoutEffect)((function(){window.requestAnimationFrame((function(){u.current()}))}),[]),Object(c.createElement)(au,Object(o.a)({ref:t},i))}function Tu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ha.a)(e);if(t){var o=Object(ha.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ba.a)(this,n)}}var Iu=function(e){Object(pa.a)(n,e);var t=Tu(n);function n(e){var r;return Object(la.a)(this,n),(r=t.apply(this,arguments)).state={isDragging:!1,bounds:pu,percentages:e.value},r.containerRef=Object(c.createRef)(),r.mediaRef=Object(c.createRef)(),r.handleOnClick=r.handleOnClick.bind(Object(fa.a)(r)),r.handleOnMouseUp=r.handleOnMouseUp.bind(Object(fa.a)(r)),r.handleOnKeyDown=r.handleOnKeyDown.bind(Object(fa.a)(r)),r.onMouseMove=r.onMouseMove.bind(Object(fa.a)(r)),r.updateBounds=r.updateBounds.bind(Object(fa.a)(r)),r.updateValue=r.updateValue.bind(Object(fa.a)(r)),r}return Object(da.a)(n,[{key:"componentDidMount",value:function(){document.addEventListener("mouseup",this.handleOnMouseUp),window.addEventListener("resize",this.updateBounds)}},{key:"componentDidUpdate",value:function(e){e.url!==this.props.url&&this.setState({isDragging:!1}),this.props.value.x===this.state.percentages.x&&this.props.value.y===this.state.percentages.y||this.setState({percentages:this.props.value})}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mouseup",this.handleOnMouseUp),window.removeEventListener("resize",this.updateBounds)}},{key:"calculateBounds",value:function(){var e=pu;if(!this.mediaRef.current)return e;var t=this.mediaRef.current.clientWidth,n=this.mediaRef.current.clientHeight,r=this.pickerDimensions(),o=r.width/t,i=r.height/n;return i>=o?(e.width=e.right=r.width,e.height=n*o,e.top=(r.height-e.height)/2,e.bottom=e.top+e.height):(e.height=e.bottom=r.height,e.width=t*i,e.left=(r.width-e.width)/2,e.right=e.left+e.width),e}},{key:"updateValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.props.onChange,n=e.x,r=e.y,o={x:parseFloat(n).toFixed(2),y:parseFloat(r).toFixed(2)};this.setState({percentages:o},(function(){t(o)}))}},{key:"updateBounds",value:function(){this.setState({bounds:this.calculateBounds()})}},{key:"handleOnClick",value:function(e){var t=this;e.persist(),this.setState({isDragging:!0},(function(){t.onMouseMove(e)}))}},{key:"handleOnMouseUp",value:function(){this.setState({isDragging:!1})}},{key:"handleOnKeyDown",value:function(e){var t=e.keyCode,n=e.shiftKey;if([pr.UP,pr.DOWN,pr.LEFT,pr.RIGHT].includes(t)){var r=this.state.percentages,o=r.x,i=r.y;e.preventDefault();var a=parseFloat(o),c=parseFloat(i),s=n?.1:.01;switch(e.keyCode){case pr.UP:c-=s;break;case pr.DOWN:c+=s;break;case pr.LEFT:a-=s;break;case pr.RIGHT:a+=s}var u={x:a=Ar(a,0,1,s),y:c=Ar(c,0,1,s)};this.updateValue(u)}}},{key:"onMouseMove",value:function(e){var t=this.state,n=t.isDragging,r=t.bounds;if(n){var o=e.shiftKey,i=this.pickerDimensions(),a={left:e.pageX-i.left,top:e.pageY-i.top},c=Math.max(r.left,Math.min(a.left,r.right)),s=Math.max(r.top,Math.min(a.top,r.bottom)),u=(c-r.left)/(i.width-2*r.left),l=(s-r.top)/(i.height-2*r.top),d=o?.1:.01,f={x:u=Ar(u,0,1,d),y:l=Ar(l,0,1,d)};this.updateValue(f)}}},{key:"pickerDimensions",value:function(){var e=this.containerRef.current;if(!e)return{width:0,height:0,left:0,top:0};var t=e.clientHeight,n=e.clientWidth,r=e.getBoundingClientRect(),o=r.top,i=r.left;return{width:n,height:t,top:o+document.body.scrollTop,left:i}}},{key:"iconCoordinates",value:function(){var e=this.props.value,t=this.state.bounds;if(void 0===t.left||void 0===t.top)return{left:"50%",top:"50%"};var n=this.pickerDimensions(),r={left:e.x*(n.width-2*t.left)+t.left,top:e.y*(n.height-2*t.top)+t.top};return r}},{key:"handleFocusOutside",value:function(){this.setState({isDragging:!1})}},{key:"render",value:function(){var e=this,t=this.props,n=t.autoPlay,r=t.className,o=t.help,i=t.instanceId,a=t.label,s=t.onDragStart,u=t.onDragEnd,d=t.url,f=this.state,p=f.bounds,b=f.isDragging,h=f.percentages,v=this.iconCoordinates(),m=l()("components-focal-point-picker-control",r),y="inspector-focal-point-picker-control-".concat(i);return Object(c.createElement)(yt,{label:a,id:y,help:o,className:m},Object(c.createElement)(ou,{className:"components-focal-point-picker-wrapper"},Object(c.createElement)(iu,{className:"components-focal-point-picker",onDragStart:function(t){e.setState({isDragging:!0}),s(t)},onDrop:function(t){e.setState({isDragging:!1}),u(t)},onKeyDown:this.handleOnKeyDown,onMouseDown:this.handleOnClick,onMouseMove:this.onMouseMove,onMouseUp:this.handleOnMouseUp,ref:this.containerRef,role:"button",tabIndex:"-1"},Object(c.createElement)(Pu,{bounds:p,value:h.x+h.y}),Object(c.createElement)(Du,{alt:Object(S.__)("Media preview"),autoPlay:n,mediaRef:this.mediaRef,onLoad:this.updateBounds,src:d}),Object(c.createElement)(Su,{coordinates:v,isDragging:b}))),Object(c.createElement)(gu,{percentages:h,onChange:this.updateValue}))}}]),n}(c.Component);Iu.defaultProps={autoPlay:!0,onDragStart:s.noop,onDragEnd:s.noop,onChange:s.noop,value:{x:.5,y:.5},url:null};var Ru=Object(E.compose)([E.withInstanceId,ru.a])(Iu);function Nu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ha.a)(e);if(t){var o=Object(ha.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ba.a)(this,n)}}var Au=window.FocusEvent,Lu=function(e){Object(pa.a)(n,e);var t=Nu(n);function n(e){var r;return Object(la.a)(this,n),(r=t.apply(this,arguments)).checkFocus=r.checkFocus.bind(Object(fa.a)(r)),r.node=e.iframeRef||Object(c.createRef)(),r}return Object(da.a)(n,[{key:"checkFocus",value:function(){var e=this.node.current;if(e.ownerDocument.activeElement===e){var t=new Au("focus",{bubbles:!0});e.dispatchEvent(t);var n=this.props.onFocus;n&&n(t)}}},{key:"render",value:function(){return Object(c.createElement)("iframe",Object(o.a)({ref:this.node},Object(s.omit)(this.props,["iframeRef","onFocus"])))}}]),n}(c.Component),Fu=Object(E.withGlobalEvents)({blur:"checkFocus"})(Lu),zu=n(428);function Bu(e,t,n){return"number"!=typeof e?null:parseFloat(Object(s.clamp)(e,t,n))}var Hu={name:"tdik1c",styles:"height:30px;min-height:30px;"},Vu=function(){return Hu},Ku=je("span",{target:"exqw8y20",label:"Root"})({name:"1916452",styles:"-webkit-tap-highlight-color:transparent;box-sizing:border-box;cursor:pointer;align-items:flex-start;display:inline-flex;justify-content:flex-start;padding:0;position:relative;touch-action:none;width:100%;"}),Wu=je("span",{target:"exqw8y21",label:"Wrapper"})("box-sizing:border-box;color:",Fe("blue.medium.focus"),";display:block;flex:1;padding-top:15px;position:relative;width:100%;",(function(e){var t=e.color,n=void 0===t?Fe("ui.borderFocus"):t;return le({color:n},"")}),";",Vu,";",(function(e){var t=e.marks;return le({marginBottom:t?16:null},"")}),";",nt({marginLeft:10}),""),Uu=je("span",{target:"exqw8y22",label:"BeforeIconWrapper"})("margin-top:3px;",nt({marginRight:6}),""),Gu=je("span",{target:"exqw8y23",label:"AfterIconWrapper"})("margin-top:3px;",nt({marginLeft:16}),""),$u=je("span",{target:"exqw8y24",label:"Rail"})("background-color:",Fe("lightGray.600"),";box-sizing:border-box;left:0;pointer-events:none;right:0;display:block;height:3px;position:absolute;margin-top:14px;top:0;",(function(e){var t=e.disabled,n=e.railColor||null;return t&&(n=Fe("lightGray.400")),le({background:n},"")}),";"),qu=je("span",{target:"exqw8y25",label:"Track"})("background-color:currentColor;border-radius:1px;box-sizing:border-box;height:3px;pointer-events:none;display:block;position:absolute;margin-top:14px;top:0;",(function(e){var t=e.disabled,n=e.trackColor||"currentColor";return t&&(n=Fe("lightGray.800")),le({background:n},"")}),";"),Yu=je("span",{target:"exqw8y26",label:"MarksWrapper"})({name:"sx8y8z",styles:"box-sizing:border-box;display:block;position:relative;width:100%;user-select:none;"}),Zu=je("span",{target:"exqw8y27",label:"Mark"})("box-sizing:border-box;height:9px;left:0;position:absolute;top:-4px;width:1px;",(function(e){var t=e.disabled,n=e.isFilled?"currentColor":Fe("lightGray.600");return t&&(n=Fe("lightGray.800")),le({backgroundColor:n},"")}),";"),Xu=je("span",{target:"exqw8y28",label:"MarkLabel"})("box-sizing:border-box;color:",Fe("lightGray.600"),";left:0;font-size:11px;position:absolute;top:12px;transform:translateX( -50% );white-space:nowrap;",(function(e){var t=e.isFilled;return le({color:Fe(t?"darkGray.300":"lightGray.600")},"")}),";"),Ju=je("span",{target:"exqw8y29",label:"ThumbWrapper"})("align-items:center;box-sizing:border-box;display:flex;height:20px;justify-content:center;margin-top:5px;outline:0;pointer-events:none;position:absolute;top:0;user-select:none;width:20px;",nt({marginLeft:-10}),""),Qu=je("span",{target:"exqw8y210",label:"Thumb"})("align-items:center;background-color:white;border-radius:50%;border:1px solid ",Fe("darkGray.200"),";box-sizing:border-box;height:100%;outline:0;pointer-events:none;position:absolute;user-select:none;width:100%;",(function(e){var t=e.isFocused;return le({borderColor:Fe(t?"ui.borderFocus":"darkGray.200"),boxShadow:t?"\n\t\t\t\t0 0 0 1px ".concat(Fe("ui.borderFocus"),"\n\t\t\t"):"\n\t\t\t\t0 0 0 rgba(0, 0, 0, 0)\n\t\t\t"},"")}),";"),el=je("input",{target:"exqw8y211",label:"InputRange"})({name:"cvc9dl",styles:"box-sizing:border-box;cursor:pointer;display:block;height:100%;left:0;margin:0;opacity:0;outline:none;position:absolute;right:0;top:0;width:100%;"}),tl={name:"5qqmyx",styles:"top:-80%;"},nl={name:"eda4eg",styles:"bottom:-80%;"},rl=je("span",{target:"exqw8y212",label:"Tooltip"})("background:",Fe("ui.border"),";border-radius:2px;box-sizing:border-box;color:white;display:inline-block;font-size:12px;min-width:32px;opacity:0;padding:4px 8px;pointer-events:none;position:absolute;text-align:center;transition:opacity 120ms ease;user-select:none;line-height:1.4;",(function(e){var t=e.show;return le({opacity:t?1:0},"")}),";",(function(e){return"top"===e.position?tl:nl}),";",ze("transition"),";",nt({transform:"translateX(-50%)"},{transform:"translateX(50%)"}),""),ol=je(Fr,{target:"exqw8y213",label:"InputNumber"})("box-sizing:border-box;display:inline-block;font-size:13px;margin-top:0;width:",ft(8),";input[type='number']&{",Vu,";}",nt({marginLeft:ft(2)}),""),il=je("span",{target:"exqw8y214",label:"ActionRightWrapper"})("box-sizing:border-box;display:block;margin-top:0;button,button.is-small{margin-left:0;",Vu,";}",nt({marginLeft:8}),"");var al=Object(c.forwardRef)((function(e,t){var n=e.describedBy,r=e.isShiftStepEnabled,u=void 0===r||r,l=e.label,d=e.onHideTooltip,f=void 0===d?s.noop:d,p=e.onMouseLeave,b=void 0===p?s.noop:p,h=e.step,v=void 0===h?1:h,m=e.onBlur,y=void 0===m?s.noop:m,g=e.onChange,O=void 0===g?s.noop:g,j=e.onFocus,w=void 0===j?s.noop:j,k=e.onMouseMove,_=void 0===k?s.noop:k,S=e.onShowTooltip,E=void 0===S?s.noop:S,x=e.shiftStep,C=void 0===x?10:x,P=e.value,D=Object(a.a)(e,["describedBy","isShiftStepEnabled","label","onHideTooltip","onMouseLeave","step","onBlur","onChange","onFocus","onMouseMove","onShowTooltip","shiftStep","value"]),M=Lr({step:v,shiftStep:C,isShiftStepEnabled:u}),T=function(e){var t=e.onHide,n=void 0===t?s.noop:t,r=e.onMouseLeave,o=void 0===r?s.noop:r,a=e.onMouseMove,u=void 0===a?s.noop:a,l=e.onShow,d=void 0===l?s.noop:l,f=e.timeout,p=void 0===f?300:f,b=Object(c.useState)(!1),h=Object(i.a)(b,2),v=h[0],m=h[1],y=Object(c.useRef)(),g=Object(c.useCallback)((function(e){window.clearTimeout(y.current),y.current=setTimeout(e,p)}),[p]),O=Object(c.useCallback)((function(e){u(e),g((function(){v||(m(!0),d())}))}),[]),j=Object(c.useCallback)((function(e){o(e),g((function(){m(!1),n()}))}),[]);return Object(c.useEffect)((function(){return function(){window.clearTimeout(y.current)}})),{onMouseMove:O,onMouseLeave:j}}({onHide:f,onMouseLeave:b,onMouseMove:_,onShow:E});return Object(c.createElement)(el,Object(o.a)({},D,T,{"aria-describedby":n,"aria-label":l,"aria-hidden":!1,onBlur:y,onChange:O,onFocus:w,ref:t,step:M,tabIndex:0,type:"range",value:P}))}));function cl(e){var t=e.className,n=e.isFilled,r=void 0!==n&&n,i=e.label,s=e.style,u=void 0===s?{}:s,d=Object(a.a)(e,["className","isFilled","label","style"]),f=l()("components-range-control__mark",r&&"is-filled",t),p=l()("components-range-control__mark-label",r&&"is-filled");return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(Zu,Object(o.a)({},d,{"aria-hidden":"true",className:f,isFilled:r,style:u})),i&&Object(c.createElement)(Xu,{"aria-hidden":"true",className:p,isFilled:r,style:u},i))}function sl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ul(e){for(var t=1;tM)&&(e=Bu(e,I,M)),L(e),ue.current=!1)},shiftStep:Z,step:J,value:we}),f&&Object(c.createElement)(il,null,Object(c.createElement)(qr.a,{className:"components-range-control__reset",disabled:g||void 0===ce,isSecondary:!0,isSmall:!0,onClick:Me},Object(S.__)("Reset")))))})),vl="default";function ml(e){var t=e.fallbackFontSize,n=e.fontSizes,r=void 0===n?[]:n,o=e.disableCustomFontSizes,i=void 0!==o&&o,a=e.onChange,s=e.value,u=e.withSlider,l=void 0!==u&&u,d=Object(E.useInstanceId)(ml),f=Object(c.useMemo)((function(){return function(e,t){return t&&!e.length?null:(e=[{slug:vl,name:Object(S.__)("Default")}].concat(Object(Gr.a)(e),Object(Gr.a)(t?[]:[{slug:"custom",name:Object(S.__)("Custom")}]))).map((function(e){return{key:e.slug,name:e.name,style:{fontSize:e.size}}}))}(r,i)}),[r,i]);if(!f)return null;var p=function(e,t){if(t){var n=e.find((function(e){return e.size===Number(t)}));return n?n.slug:"custom"}return vl}(r,s),b="components-font-size-picker__number#".concat(d);return Object(c.createElement)("fieldset",{className:"components-font-size-picker"},Object(c.createElement)(M,{as:"legend"},Object(S.__)("Font size")),Object(c.createElement)("div",{className:"components-font-size-picker__controls"},r.length>0&&Object(c.createElement)(Xc,{className:"components-font-size-picker__select",label:Object(S.__)("Font size"),options:f,value:f.find((function(e){return e.key===p})),onChange:function(e){var t=e.selectedItem,n=t.style&&t.style.fontSize;a(Number(n))}}),!l&&!i&&Object(c.createElement)("div",{className:"components-font-size-picker__number-container"},Object(c.createElement)("label",{htmlFor:b},Object(S.__)("Custom")),Object(c.createElement)("input",{id:b,className:"components-font-size-picker__number",type:"number",min:1,onChange:function(e){a(Number(e.target.value))},"aria-label":Object(S.__)("Custom"),value:s||""})),Object(c.createElement)(qr.a,{className:"components-color-palette__clear",disabled:void 0===s,onClick:function(){a(void 0)},isSmall:!0,isSecondary:!0},Object(S.__)("Reset"))),l&&Object(c.createElement)(hl,{className:"components-font-size-picker__custom-input",label:Object(S.__)("Custom Size"),value:s||"",initialPosition:t,onChange:function(e){a(e)},min:12,max:100,beforeIcon:zu.a,afterIcon:zu.a}))}var yl=function(e){var t=e.accept,n=e.children,r=e.multiple,i=void 0!==r&&r,s=e.onChange,u=e.render,l=Object(a.a)(e,["accept","children","multiple","onChange","render"]),d=Object(c.useRef)(),f=function(){d.current.click()},p=u?u({openFileDialog:f}):Object(c.createElement)(qr.a,Object(o.a)({onClick:f},l),n);return Object(c.createElement)("div",{className:"components-form-file-upload"},p,Object(c.createElement)("input",{type:"file",ref:d,multiple:i,style:{display:"none"},accept:t,onChange:s}))};var gl=function(e){var t=e.className,n=e.checked,r=e.id,i=e.onChange,u=void 0===i?s.noop:i,d=Object(a.a)(e,["className","checked","id","onChange"]),f=l()("components-form-toggle",t,{"is-checked":n});return Object(c.createElement)("span",{className:f},Object(c.createElement)("input",Object(o.a)({className:"components-form-toggle__input",id:r,type:"checkbox",checked:n,onChange:u},d)),Object(c.createElement)("span",{className:"components-form-toggle__track"}),Object(c.createElement)("span",{className:"components-form-toggle__thumb"}))},Ol=n(40),jl=Object(c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(c.createElement)(r.Path,{d:"M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm5 11l-3-3 3-3-2-2-3 3-3-3-2 2 3 3-3 3 2 2 3-3 3 3z"}));function wl(e){var t=e.value,n=e.status,r=e.title,o=e.displayTransform,i=e.isBorderless,a=void 0!==i&&i,u=e.disabled,d=void 0!==u&&u,f=e.onClickRemove,p=void 0===f?s.noop:f,b=e.onMouseEnter,h=e.onMouseLeave,v=e.messages,m=e.termPosition,y=e.termsCount,g=Object(E.useInstanceId)(wl),O=l()("components-form-token-field__token",{"is-error":"error"===n,"is-success":"success"===n,"is-validating":"validating"===n,"is-borderless":a,"is-disabled":d}),j=o(t),w=Object(S.sprintf)(Object(S.__)("%1$s (%2$s of %3$s)"),j,m,y);return Object(c.createElement)("span",{className:O,onMouseEnter:b,onMouseLeave:h,title:r},Object(c.createElement)("span",{className:"components-form-token-field__token-text",id:"components-form-token-field__token-text-".concat(g)},Object(c.createElement)(M,{as:"span"},w),Object(c.createElement)("span",{"aria-hidden":"true"},j)),Object(c.createElement)(qr.a,{className:"components-form-token-field__remove-token",icon:jl,onClick:!d&&function(){return p({value:t})},label:v.remove,"aria-describedby":"components-form-token-field__token-text-".concat(g)}))}function kl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _l(e){for(var t=1;t=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(Ol.a)(e)?e.value:e}},{key:"getMatchingSuggestions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.incompleteTokenValue,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props.suggestions,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.props.value,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.props.maxSuggestions,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.props.saveTransform,i=o(e),a=[],c=[];return 0===i.length?t=Object(s.difference)(t,n):(i=i.toLocaleLowerCase(),Object(s.each)(t,(function(e){var t=e.toLocaleLowerCase().indexOf(i);-1===n.indexOf(e)&&(0===t?a.push(e):t>0&&c.push(e))})),t=a.concat(c)),Object(s.take)(t,r)}},{key:"getSelectedSuggestion",value:function(){if(-1!==this.state.selectedSuggestionIndex)return this.getMatchingSuggestions()[this.state.selectedSuggestionIndex]}},{key:"valueContainsToken",value:function(e){var t=this;return Object(s.some)(this.props.value,(function(n){return t.getTokenValue(e)===t.getTokenValue(n)}))}},{key:"getIndexOfInput",value:function(){return this.props.value.length-this.state.inputOffsetFromEnd}},{key:"isInputEmpty",value:function(){return 0===this.state.incompleteTokenValue.length}},{key:"inputHasValidValue",value:function(){return this.props.saveTransform(this.state.incompleteTokenValue).length>0}},{key:"updateSuggestions",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.state.incompleteTokenValue,n=t.trim().length>1,r=this.getMatchingSuggestions(t),o=r.length>0,i={isExpanded:n&&o};if(e&&(i.selectedSuggestionIndex=-1,i.selectedSuggestionScroll=!1),this.setState(i),n){var a=this.props.debouncedSpeak,c=o?Object(S.sprintf)(Object(S._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",r.length),r.length):Object(S.__)("No results.");a(c,"assertive")}}},{key:"renderTokensAndInput",value:function(){var e=Object(s.map)(this.props.value,this.renderToken);return e.splice(this.getIndexOfInput(),0,this.renderInput()),e}},{key:"renderToken",value:function(e,t,n){var r=this.getTokenValue(e),o=e.status?e.status:void 0,i=t+1,a=n.length;return Object(c.createElement)(wl,{key:"token-"+r,value:r,status:o,title:e.title,displayTransform:this.props.displayTransform,onClickRemove:this.onTokenClickRemove,isBorderless:e.isBorderless||this.props.isBorderless,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,disabled:"error"!==o&&this.props.disabled,messages:this.props.messages,termsCount:a,termPosition:i})}},{key:"renderInput",value:function(){var e=this.props,t=e.autoCapitalize,n=e.autoComplete,r=e.maxLength,o=e.value,i={instanceId:e.instanceId,autoCapitalize:t,autoComplete:n,ref:this.bindInput,key:"input",disabled:this.props.disabled,value:this.state.incompleteTokenValue,onBlur:this.onBlur,isExpanded:this.state.isExpanded,selectedSuggestionIndex:this.state.selectedSuggestionIndex};return r&&o.length>=r||(i=_l(_l({},i),{},{onChange:this.onInputChange})),Object(c.createElement)(Za,i)}},{key:"render",value:function(){var e=this.props,t=e.disabled,n=e.label,r=void 0===n?Object(S.__)("Add item"):n,o=e.instanceId,i=e.className,a=this.state.isExpanded,s=l()(i,"components-form-token-field__input-container",{"is-active":this.state.isActive,"is-disabled":t}),u={className:"components-form-token-field",tabIndex:"-1"},d=this.getMatchingSuggestions();return t||(u=Object.assign({},u,{onKeyDown:this.onKeyDown,onKeyPress:this.onKeyPress,onFocus:this.onFocus})),Object(c.createElement)("div",u,Object(c.createElement)("label",{htmlFor:"components-form-token-input-".concat(o),className:"components-form-token-field__label"},r),Object(c.createElement)("div",{ref:this.bindTokensAndInput,className:s,tabIndex:"-1",onMouseDown:this.onContainerTouched,onTouchStart:this.onContainerTouched},this.renderTokensAndInput(),a&&Object(c.createElement)(tc,{instanceId:o,match:this.props.saveTransform(this.state.incompleteTokenValue),displayTransform:this.props.displayTransform,suggestions:d,selectedIndex:this.state.selectedSuggestionIndex,scrollIntoView:this.state.selectedSuggestionScroll,onHover:this.onSuggestionHovered,onSelect:this.onSuggestionSelected})),Object(c.createElement)("p",{id:"components-form-token-suggestions-howto-".concat(o),className:"components-form-token-field__help"},this.props.tokenizeOnSpace?Object(S.__)("Separate with commas, spaces, or the Enter key."):Object(S.__)("Separate with commas or the Enter key.")))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.disabled&&t.isActive?{isActive:!1,incompleteTokenValue:""}:null}}]),n}(c.Component);xl.defaultProps={suggestions:Object.freeze([]),maxSuggestions:100,value:Object.freeze([]),displayTransform:s.identity,saveTransform:function(e){return e.trim()},onChange:function(){},onInputChange:function(){},isBorderless:!1,disabled:!1,tokenizeOnSpace:!1,messages:{added:Object(S.__)("Item added."),removed:Object(S.__)("Item removed."),remove:Object(S.__)("Remove item")}};var Cl=Xr(Object(E.withInstanceId)(xl)),Pl=n(201),Dl=n.n(Pl),Ml="linear-gradient(135deg, rgba(6, 147, 227, 1) 0%, rgb(155, 81, 224) 100%)",Tl={className:"components-custom-gradient-picker__color-picker-popover",position:"top"},Il={type:"angular",value:90},Rl=[{value:"linear-gradient",label:Object(S.__)("Linear")},{value:"radial-gradient",label:Object(S.__)("Radial")}];function Nl(e){var t=e.type,n=e.value;return"literal"===t?n:"hex"===t?"#".concat(n):"".concat(t,"(").concat(n.join(","),")")}function Al(e){var t=e.type,n=e.value;return"".concat(n).concat(t)}function Ll(e){var t=e.type,n=e.value,r=e.length;return"".concat(Nl({type:t,value:n})," ").concat(Al(r))}function Fl(e){var t=e.type,n=e.orientation,r=e.colorStops,o=function(e){if(e&&"angular"===e.type)return"".concat(e.value,"deg")}(n),i=r.sort((function(e,t){return Object(s.get)(e,["length","value"],0)-Object(s.get)(t,["length","value"],0)})).map(Ll);return"".concat(t,"(").concat(Object(s.compact)([o].concat(Object(Gr.a)(i))).join(","),")")}function zl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bl(e){for(var t=1;t=5&&(u.current.significantMoveHappened=!0)}Kl(i,n,a)||o(Vl(i,a,n))},d=function e(){window&&window.removeEventListener&&u.current&&u.current.listenersActivated&&(window.removeEventListener("mousemove",l),window.removeEventListener("mouseup",e),s(),u.current.listenersActivated=!1)};return Object(c.useEffect)((function(){return function(){d()}}),[]),r.map((function(e,t){return e&&n!==e.positionValue&&Object(c.createElement)(sa,{key:t,onClose:s,renderToggle:function(n){var r=n.isOpen,f=n.onToggle;return Object(c.createElement)(Jl,{key:t,onClick:function(){u.current&&u.current.significantMoveHappened||(r?s():a(),f())},onMouseDown:function(){window&&window.addEventListener&&(u.current={gradientAST:i,position:t,significantMoveHappened:!1,listenersActivated:!0},a(),window.addEventListener("mousemove",l),window.addEventListener("mouseup",d))},isOpen:r,position:e.position,color:e.color,onChange:o,gradientAST:i,gradientIndex:t})},renderContent:function(n){var r=n.onClose;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(Ha,{color:e.color,onChangeComplete:function(e){var n=e.rgb;o(Ul(i,t,n))}}),Object(c.createElement)(qr.a,{className:"components-custom-gradient-picker__remove-control-point",onClick:function(){o(function(e,t){return Bl(Bl({},e),{},{colorStops:e.colorStops.filter((function(e,n){return n!==t}))})}(i,t)),r()},isLink:!0},Object(S.__)("Remove Control Point")))},popoverProps:Tl})}))}function ed(e){var t=e.onChange,n=e.gradientAST,r=e.onOpenInserter,o=e.onCloseInserter,a=e.insertPosition,u=Object(c.useState)(!1),l=Object(i.a)(u,2),d=l[0],f=l[1];return Object(c.createElement)(sa,{className:"components-custom-gradient-picker__inserter",onClose:function(){o()},renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(c.createElement)(qr.a,{"aria-expanded":t,"aria-haspopup":"true",onClick:function(){t?o():(f(!1),r()),n()},className:"components-custom-gradient-picker__insert-point",icon:ca.a,style:{left:null!==a?"".concat(a,"%"):void 0}})},renderContent:function(){return Object(c.createElement)(Ha,{onChangeComplete:function(e){var r,o=e.rgb;d?r=function(e,t,n){return Ul(e,Object(s.findIndex)(e.colorStops,(function(e){return e&&e.length&&"%"===e.length.type&&e.length.value===t.toString()})),n)}(n,a,o):(r=function(e,t,n){var r=Hl(n);return r.length={type:"%",value:t},Bl(Bl({},e),{},{colorStops:[].concat(Object(Gr.a)(e.colorStops),[r])})}(n,a,o),f(!0)),t(r)}})},popoverProps:Tl})}function td(e,t){switch(t.type){case"MOVE_INSERTER":if("IDLE"===e.id||"MOVING_INSERTER"===e.id)return{id:"MOVING_INSERTER",insertPosition:t.insertPosition};break;case"STOP_INSERTER_MOVE":if("MOVING_INSERTER"===e.id)return{id:"IDLE"};break;case"OPEN_INSERTER":if("MOVING_INSERTER"===e.id)return{id:"INSERTING_CONTROL_POINT",insertPosition:e.insertPosition};break;case"CLOSE_INSERTER":if("INSERTING_CONTROL_POINT"===e.id)return{id:"IDLE"};break;case"START_CONTROL_CHANGE":if("IDLE"===e.id)return{id:"MOVING_CONTROL_POINT"};break;case"STOP_CONTROL_CHANGE":if("MOVING_CONTROL_POINT"===e.id)return{id:"IDLE"}}return e}var nd={id:"IDLE"};function rd(e){var t=e.value,n=e.onChange,r=Yl(t),o=r.gradientAST,a=r.gradientValue,u=r.hasGradient,d=function(e){n(Fl(e))},f=Object(c.useRef)(),p=function(e){return e?Object(s.map)(e.colorStops,(function(e){return e&&e.length&&"%"===e.length.type?{color:Nl(e),position:Al(e.length),positionValue:parseInt(e.length.value)}:null})):[]}(o),b=Object(c.useReducer)(td,nd),h=Object(i.a)(b,2),v=h[0],m=h[1],y=function(e){var t=Gl(e.clientX,f.current,23);Object(s.some)(p,(function(e){var n=e.positionValue;return Math.abs(t-n)<10}))?"MOVING_INSERTER"===v.id&&m({type:"STOP_INSERTER_MOVE"}):m({type:"MOVE_INSERTER",insertPosition:t})},g="MOVING_INSERTER"===v.id,O="INSERTING_CONTROL_POINT"===v.id;return Object(c.createElement)("div",{ref:f,className:l()("components-custom-gradient-picker__gradient-bar",{"has-gradient":u}),onMouseEnter:y,onMouseMove:y,style:{background:"radial-gradient"===o.type?$l(o):a},onMouseLeave:function(){m({type:"STOP_INSERTER_MOVE"})}},Object(c.createElement)("div",{className:"components-custom-gradient-picker__markers-container"},(g||O)&&Object(c.createElement)(ed,{insertPosition:v.insertPosition,onChange:d,gradientAST:o,onOpenInserter:function(){m({type:"OPEN_INSERTER"})},onCloseInserter:function(){m({type:"CLOSE_INSERTER"})}}),Object(c.createElement)(Ql,{gradientPickerDomRef:f,ignoreMarkerPosition:O?v.insertPosition:void 0,markerPoints:p,onChange:d,gradientAST:o,onStartControlPointChange:function(){m({type:"START_CONTROL_CHANGE"})},onStopControlPointChange:function(){m({type:"STOP_CONTROL_CHANGE"})}})))}var od=je(Et,{target:"e99xvul0",label:"SelectWrapper"})({name:"14kcwr6",styles:"width:110px;"});function id(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ad(e){for(var t=1;t",{alternative:"the `pages` prop"})}),[t]),c.Children.count(t)&&(u=c.Children.map(t,(function(e){return{content:e}})));var h=p>0,v=p",{alternative:"the `pages` prop in "})}),[]),Object(c.createElement)("div",e)}var Td=Object(c.forwardRef)((function(e,t){var n=e.labelPosition,r=e.size,i=e.tooltip,s=e.label,u=Object(a.a)(e,["labelPosition","size","tooltip","label"]);return Ks()("wp.components.IconButton",{alternative:"wp.components.Button"}),Object(c.createElement)(qr.a,Object(o.a)({},u,{ref:t,tooltipPosition:n,iconSize:r,showTooltip:void 0!==i?!!i:void 0,label:i||s}))}));var Id=function e(t){var n=t.children,r=t.className,o=void 0===r?"":r,i=t.label,a=Object(E.useInstanceId)(e);if(!c.Children.count(n))return null;var s="components-menu-group-label-".concat(a),u=l()(o,"components-menu-group");return Object(c.createElement)("div",{className:u},i&&Object(c.createElement)("div",{className:"components-menu-group__label",id:s,"aria-hidden":"true"},i),Object(c.createElement)("div",{role:"group","aria-labelledby":i?s:null},n))},Rd=n(172);var Nd=Object(c.forwardRef)((function(e,t){var n=e.children,r=e.info,i=e.className,u=e.icon,d=e.shortcut,f=e.isSelected,p=e.role,b=void 0===p?"menuitem":p,h=Object(a.a)(e,["children","info","className","icon","shortcut","isSelected","role"]);return i=l()("components-menu-item__button",i),r&&(n=Object(c.createElement)("span",{className:"components-menu-item__info-wrapper"},n,Object(c.createElement)("span",{className:"components-menu-item__info"},r))),u&&!Object(s.isString)(u)&&(u=Object(c.cloneElement)(u,{className:"components-menu-items__item-icon"})),Object(c.createElement)(qr.a,Object(o.a)({ref:t,"aria-checked":"menuitemcheckbox"===b||"menuitemradio"===b?f:void 0,role:b,className:i},h),n,Object(c.createElement)(Rd.a,{className:"components-menu-item__shortcut",shortcut:d}),u&&Object(c.createElement)(fs.a,{icon:u}))}));function Ad(e){var t=e.choices,n=void 0===t?[]:t,r=e.onHover,o=void 0===r?s.noop:r,i=e.onSelect,a=e.value;return n.map((function(e){var t=a===e.value;return Object(c.createElement)(Nd,{key:e.value,role:"menuitemradio",icon:t&&ea.a,isSelected:t,shortcut:e.shortcut,className:"components-menu-items-choice",onClick:function(){t||i(e.value)},onMouseEnter:function(){return o(e.value)},onMouseLeave:function(){return o(null)}},e.label)}))}var Ld=n(166);var Fd=Object(c.forwardRef)((function(e,t){var n=e.eventToOffset,r=Object(a.a)(e,["eventToOffset"]);return Object(c.createElement)(qs,Object(o.a)({ref:t,stopNavigationEvents:!0,onlyBrowserTabstops:!0,eventToOffset:function(e){var t=e.keyCode,r=e.shiftKey;return pr.TAB===t?r?-1:1:n?n(e):void 0}},r))})),zd=Object(c.createContext)({activeItem:void 0,activeMenu:"root",setActiveMenu:s.noop,navigationTree:{items:{},getItem:s.noop,addItem:s.noop,removeItem:s.noop,menus:{},getMenu:s.noop,addMenu:s.noop,removeMenu:s.noop}}),Bd=function(){return Object(c.useContext)(zd)};var Hd=je("div",{target:"ejwewyf0",label:"NavigationUI"})("width:100%;background-color:",xe.darkGray.primary,";color:#f0f0f0;padding:0 8px;overflow:hidden;"),Vd=je("div",{target:"ejwewyf1",label:"MenuUI"})({name:"1wlvkgj",styles:"margin-top:24px;margin-bottom:24px;display:flex;flex-direction:column;ul{padding:0;margin:0;list-style:none;}.components-navigation__back-button{margin-bottom:24px;}"}),Kd=je(qr.a,{target:"ejwewyf2",label:"MenuBackButtonUI"})("&.is-tertiary{color:",xe.lightGray.ui,";&:hover:not(:disabled ){color:#ddd;box-shadow:none;}&:active:not(:disabled ){background:transparent;color:#ddd;}}"),Wd=je(Xt,{target:"ejwewyf3",label:"MenuTitleUI"})("padding:4px 0 4px 16px;margin-bottom:8px;color:",xe.gray[100],";"),Ud=je(Xt,{target:"ejwewyf4",label:"GroupTitleUI"})("margin-top:8px;padding:4px 0 4px 16px;text-transform:uppercase;color:",xe.gray[100],";"),Gd=je("li",{target:"ejwewyf5",label:"ItemUI"})("border-radius:2px;color:",xe.lightGray.ui,";button,a{margin:0;font-weight:400;font-size:14px;line-height:20px;padding-left:16px;padding-right:16px;width:100%;color:",xe.lightGray.ui,";&:hover,&:focus:not( [aria-disabled='true'] ):active,&:active:not( [aria-disabled='true'] ):active{color:#ddd;}}&.is-active{background-color:",Ne.theme,";color:",Ne.textDark,";button,a{color:",Ne.textDark,";}}svg path{color:",xe.lightGray.ui,";}"),$d=je("span",{target:"ejwewyf6",label:"ItemBadgeUI"})("margin-left:8px;display:inline-flex;padding:4px 12px;border-radius:2px;animation:fade-in 250ms ease-out;@keyframes fade-in{from{opacity:0;}to{opacity:1;}}",ze("animation"),";"),qd=je(Xt,{target:"ejwewyf7",label:"ItemTitleUI"})({name:"zs804i",styles:"margin-right:auto;text-align:left;"});function Yd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zd(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"left";E.getMenu(e)&&(S(t),j(e),m(e))},C=Object(c.useRef)(!1);Object(c.useEffect)((function(){C.current||(C.current=!0)}),[]),Object(c.useEffect)((function(){p!==O&&x(p)}),[p]);var D={activeItem:d,activeMenu:O,setActiveMenu:x,navigationTree:E},M=l()("components-navigation",h);return Object(c.createElement)(Hd,{className:M},Object(c.createElement)(ut.a,{key:O,type:"slide-in",options:{origin:_}},(function(e){var t=e.className;return Object(c.createElement)("div",{className:l()(Object(P.a)({},t,C.current&&_))},Object(c.createElement)(zd.Provider,{value:D},b))})))}var Qd=n(215);var ef=Object(c.forwardRef)((function(e,t){var n,r=e.backButtonLabel,o=e.className,i=e.href,a=e.onClick,s=e.parentMenu,u=Bd(),d=u.setActiveMenu,f=u.navigationTree,p=l()("components-navigation__back-button",o),b=null===(n=f.getMenu(s))||void 0===n?void 0:n.title;return Object(c.createElement)(Kd,{className:p,href:i,isTertiary:!0,ref:t,onClick:function(e){"function"==typeof a&&a(e),s&&!e.defaultPrevented&&d(s,"right")}},Object(c.createElement)(Qi.a,{icon:Qd.a}),r||b||Object(S.__)("Back"))})),tf=Object(c.createContext)({menu:void 0,isActive:!1}),nf=function(){return Object(c.useContext)(tf)};function rf(e){var t=e.children,n=e.className,r=e.title;if(!nf().isActive)return t;var o=l()("components-navigation__group",n);return Object(c.createElement)("li",{className:o},r&&Object(c.createElement)(Ud,{as:"h3",className:"components-navigation__group-title",variant:"caption"},r),Object(c.createElement)("ul",null,t))}var of=n(214);function af(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cf(e){for(var t=1;t=320,"is-medium":g>=160&&g<320,"is-small":g<160});var O=l()("components-placeholder",d,t),j=l()("components-placeholder__fieldset",{"is-column-layout":b});return Object(c.createElement)("div",Object(o.a)({},h,{className:O}),y,f,p&&Object(c.createElement)("div",{className:"components-placeholder__preview"},p),Object(c.createElement)("div",{className:"components-placeholder__label"},Object(c.createElement)(fs.a,{icon:n}),s),!!u&&Object(c.createElement)("div",{className:"components-placeholder__instructions"},u),Object(c.createElement)("div",{className:j},r))};function wf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kf(e){for(var t=1;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(Gr.a)(e(t.children||[],n+1)))}))}(u))));return Object(c.createElement)(vs,Object(o.a)({label:t,options:d,onChange:r},{value:i},l))}function Ef(e){var t=e.label,n=e.noOptionLabel,r=e.categoriesList,i=e.selectedCategoryId,s=e.onChange,u=Object(a.a)(e,["label","noOptionLabel","categoriesList","selectedCategoryId","onChange"]),l=_f(r);return Object(c.createElement)(Sf,Object(o.a)({label:t,noOptionLabel:n,onChange:s},{tree:l,selectedId:i},u))}function xf(e){var t=e.label,n=e.noOptionLabel,r=e.authorList,i=e.selectedAuthorId,a=e.onChange;if(!r)return null;var s=_f(r);return Object(c.createElement)(Sf,Object(o.a)({label:t,noOptionLabel:n,onChange:a},{tree:s,selectedId:i}))}function Cf(e){var t=e.authorList,n=e.selectedAuthorId,r=e.categoriesList,o=e.selectedCategoryId,a=e.categorySuggestions,s=e.selectedCategories,u=e.numberOfItems,l=e.order,d=e.orderBy,f=e.maxItems,p=void 0===f?100:f,b=e.minItems,h=void 0===b?1:b,v=e.onCategoryChange,m=e.onAuthorChange,y=e.onNumberOfItemsChange,g=e.onOrderChange,O=e.onOrderByChange;return[g&&O&&Object(c.createElement)(vs,{key:"query-controls-order-select",label:Object(S.__)("Order by"),value:"".concat(d,"/").concat(l),options:[{label:Object(S.__)("Newest to oldest"),value:"date/desc"},{label:Object(S.__)("Oldest to newest"),value:"date/asc"},{label:Object(S.__)("A → Z"),value:"title/asc"},{label:Object(S.__)("Z → A"),value:"title/desc"}],onChange:function(e){var t=e.split("/"),n=Object(i.a)(t,2),r=n[0],o=n[1];o!==l&&g(o),r!==d&&O(r)}}),r&&v&&Object(c.createElement)(Ef,{key:"query-controls-category-select",categoriesList:r,label:Object(S.__)("Category"),noOptionLabel:Object(S.__)("All"),selectedCategoryId:o,onChange:v}),a&&v&&Object(c.createElement)(Cl,{key:"query-controls-categories-select",label:Object(S.__)("Categories"),value:s&&s.map((function(e){return{id:e.id,value:e.name||e.value}})),suggestions:Object.keys(a),onChange:v,maxSuggestions:20}),m&&Object(c.createElement)(xf,{key:"query-controls-author-select",authorList:t,label:Object(S.__)("Author"),noOptionLabel:Object(S.__)("All"),selectedAuthorId:n,onChange:m}),y&&Object(c.createElement)(hl,{key:"query-controls-range-control",label:Object(S.__)("Number of items"),value:u,onChange:y,min:h,max:p,required:!0})]}n(81);var Pf=n(48),Df=n(126),Mf=(n(108),n(62));function Tf(e){void 0===e&&(e={});var t=Object(Mf.a)(e),n=t.state,r=t.loop,o=void 0===r||r,i=Object(p.a)(t,["state","loop"]),a=Object(v.useState)(n),c=a[0],s=a[1],u=Object(d.g)(Object(p.b)(Object(p.b)({},i),{},{loop:o}));return Object(p.b)(Object(p.b)({},u),{},{state:c,setState:s})}var If=[].concat(d.g.__keys,["state","setState"]);function Rf(e){return void 0!==e.checked?e.checked:void 0!==e.value&&e.state===e.value}function Nf(e,t){var n=Object(Df.a)(e,"change");Object.defineProperties(n,{type:{value:"change"},target:{value:e},currentTarget:{value:e}}),null==t||t(n)}Tf.__keys=If;var Af=Object(h.a)({name:"Radio",compose:x.b,useState:Tf,keys:["value","checked","unstable_checkOnFocus"],useOptions:function(e,t){var n,r=t.value,o=t.checked,i=e.unstable_clickOnEnter,a=void 0!==i&&i,c=e.unstable_checkOnFocus,s=void 0===c||c,u=Object(p.a)(e,["unstable_clickOnEnter","unstable_checkOnFocus"]);return Object(p.b)(Object(p.b)({checked:o,unstable_clickOnEnter:a,unstable_checkOnFocus:s},u),{},{value:null!=(n=u.value)?n:r})},useProps:function(e,t){var n=t.ref,r=t.onChange,o=t.onClick,i=Object(p.a)(t,["ref","onChange","onClick"]),a=Object(v.useRef)(null),c=Object(v.useState)(!0),s=c[0],u=c[1],l=Rf(e),d=Object(Pf.a)(e.currentId===e.id),f=Object(Pf.a)(r),b=Object(Pf.a)(o);!function(e){var t=Object(v.useState)((function(){return Rf(e)}))[0],n=Object(v.useState)(e.currentId)[0],r=e.id,o=e.setCurrentId;Object(v.useEffect)((function(){t&&r&&n!==r&&(null==o||o(r))}),[t,r,o,n])}(e),Object(v.useEffect)((function(){var e=a.current;e&&("INPUT"===e.tagName&&"radio"===e.type||u(!1))}),[]);var h=Object(v.useCallback)((function(t){var n,r;null===(n=f.current)||void 0===n||n.call(f,t),t.defaultPrevented||e.disabled||null===(r=e.setState)||void 0===r||r.call(e,e.value)}),[e.disabled,e.setState,e.value]),m=Object(v.useCallback)((function(e){var t;null===(t=b.current)||void 0===t||t.call(b,e),e.defaultPrevented||Nf(e.currentTarget,h)}),[h]);return Object(v.useEffect)((function(){var t=a.current;t&&e.unstable_moves&&d.current&&e.unstable_checkOnFocus&&Nf(t,h)}),[e.unstable_moves,e.unstable_checkOnFocus,h]),Object(p.b)({ref:Object(y.a)(a,n),role:s?void 0:"radio",type:s?"radio":void 0,value:s?e.value:void 0,"aria-checked":l,checked:l,onChange:h,onClick:m},i)}}),Lf=Object(b.a)({as:"input",memo:!0,useHook:Af}),Ff=Object(c.createContext)({state:null,setState:function(){}});var zf=Object(c.forwardRef)((function(e,t){var n=e.children,r=e.value,i=Object(a.a)(e,["children","value"]),s=Object(c.useContext)(Ff),u=s.state===r;return Object(c.createElement)(Lf,Object(o.a)({ref:t,as:qr.a,isPrimary:u,isSecondary:!u,value:r},s,i),n||r)})),Bf=n(79),Hf=Object(h.a)({name:"RadioGroup",compose:f.b,useState:Tf,useProps:function(e,t){return Object(p.b)({role:"radiogroup"},t)}}),Vf=Object(b.a)({as:"div",useHook:Hf,useCreateElement:function(e,t,n){return Object(Bf.a)(e,t,n)}});function Kf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wf(e){for(var t=1;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})})))),i=this.iframe.current.contentWindow.document;i.open(),i.write(""+Object(c.renderToString)(o)),i.close()}}}},{key:"render",value:function(){var e=this.props,t=e.title,n=e.onFocus;return Object(c.createElement)(Fu,{iframeRef:this.iframe,title:t,className:"components-sandbox",sandbox:"allow-scripts allow-same-origin allow-presentation",onFocus:n,width:Math.ceil(this.state.width),height:Math.ceil(this.state.height)})}}],[{key:"defaultProps",get:function(){return{html:"",title:""}}}]),n}(c.Component),Rp=Ip=Object(E.withGlobalEvents)({message:"checkMessageForResize"})(Ip),Np=n(167),Ap=n(20),Lp=n.n(Ap),Fp=n(45),zp=n(115);var Bp=function(e){var t=e.notices,n=e.className,r=e.children,a=e.onRemove,u=void 0===a?s.noop:a,d=Object(E.useReducedMotion)(),f=Object(c.useState)((function(){return new WeakMap})),p=Object(i.a)(f,1)[0],b=Object(zp.useTransition)(t,(function(e){return e.id}),{from:{opacity:0,height:0},enter:function(e){return function(){var t=Object(Fp.a)(Lp.a.mark((function t(n){return Lp.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n({opacity:1,height:p.get(e).offsetHeight});case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},leave:function(){return function(){var e=Object(Fp.a)(Lp.a.mark((function e(t){return Lp.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t({opacity:0});case 2:return e.next=4,t({height:0});case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},immediate:d});n=l()("components-snackbar-list",n);var h=function(e){return function(){return u(e.id)}};return Object(c.createElement)("div",{className:n},r,b.map((function(e){var t=e.item,n=e.key,r=e.props;return Object(c.createElement)(zp.animated.div,{key:n,style:r},Object(c.createElement)("div",{className:"components-snackbar-list__notice-container",ref:function(e){return e&&p.set(t,e)}},Object(c.createElement)(Np.a,Object(o.a)({},Object(s.omit)(t,["content"]),{onRemove:h(t)}),t.content)))})))};function Hp(){return Object(c.createElement)("span",{className:"components-spinner"})}var Vp=function(e){var t=e.tabId,n=e.onClick,r=e.children,i=e.selected,s=Object(a.a)(e,["tabId","onClick","children","selected"]);return Object(c.createElement)(qr.a,Object(o.a)({role:"tab",tabIndex:i?null:-1,"aria-selected":i,id:t,onClick:n},s),r)};function Kp(e){var t,n=e.className,r=e.children,o=e.tabs,a=e.initialTabName,u=e.orientation,d=void 0===u?"horizontal":u,f=e.activeClass,p=void 0===f?"is-active":f,b=e.onSelect,h=void 0===b?s.noop:b,v=Object(E.useInstanceId)(Kp,"tab-panel"),m=Object(c.useState)(null),y=Object(i.a)(m,2),g=y[0],O=y[1],j=function(e){O(e),h(e)},w=Object(s.find)(o,{name:g}),k="".concat(v,"-").concat(null!==(t=null==w?void 0:w.name)&&void 0!==t?t:"none");return Object(c.useEffect)((function(){Object(s.find)(o,{name:g})||O(a||(o.length>0?o[0].name:null))}),[o]),Object(c.createElement)("div",{className:n},Object(c.createElement)(Ys,{role:"tablist",orientation:d,onNavigate:function(e,t){t.click()},className:"components-tab-panel__tabs"},o.map((function(e){return Object(c.createElement)(Vp,{className:l()("components-tab-panel__tabs-item",e.className,Object(P.a)({},p,e.name===g)),tabId:"".concat(v,"-").concat(e.name),"aria-controls":"".concat(v,"-").concat(e.name,"-view"),selected:e.name===g,key:e.name,onClick:Object(s.partial)(j,e.name)},e.title)}))),w&&Object(c.createElement)("div",{"aria-labelledby":k,role:"tabpanel",id:"".concat(k,"-view"),className:"components-tab-panel__tab-content"},r(w)))}var Wp={radiusBlockUi:"2px",borderWidth:"1px",borderWidthFocus:"1.5px",borderWidthTab:"4px"},Up=function(e){return Wp[e]},Gp=le("box-shadow:0 0 0 transparent;transition:box-shadow 0.1s linear;border-radius:",Up("radiusBlockUi"),";border:",Up("borderWidth")," solid ",Fe("ui.border"),";",ze("transition"),";label:inputStyleNeutral;"),$p=le("border-color:var( --wp-admin-theme-color );box-shadow:0 0 0 calc( ",Up("borderWidthFocus")," - ",Up("borderWidth")," ) var( --wp-admin-theme-color );outline:2px solid transparent;;label:inputStyleFocus;"),qp={huge:"1440px",wide:"1280px","x-large":"1080px",large:"960px",medium:"782px",small:"600px",mobile:"480px","zoomed-in":"280px"},Yp=le("font-family:",dt("default.fontFamily"),";padding:6px 8px;",Gp,";font-size:",dt("mobileTextMinFontSize"),";line-height:normal;","@media (min-width: ".concat(qp["small"],")"),"{font-size:",dt("default.fontSize"),";line-height:normal;}&:focus{",$p,"}&::-webkit-input-placeholder{color:",Fe("darkGray.placeholder"),";}&::-moz-placeholder{opacity:1;color:",Fe("darkGray.placeholder"),";}&:-ms-input-placeholder{color:",Fe("darkGray.placeholder"),";}.is-dark-theme &{&::-webkit-input-placeholder{color:",Fe("lightGray.placeholder"),";}&::-moz-placeholder{opacity:1;color:",Fe("lightGray.placeholder"),";}&:-ms-input-placeholder{color:",Fe("lightGray.placeholder"),";}};label:inputControl;"),Zp=je("textarea",{target:"ebk7yr50",label:"StyledTextarea"})("width:100%;",Yp,"");function Xp(e){var t=e.label,n=e.hideLabelFromVision,r=e.value,i=e.help,s=e.onChange,u=e.rows,l=void 0===u?4:u,d=e.className,f=Object(a.a)(e,["label","hideLabelFromVision","value","help","onChange","rows","className"]),p=Object(E.useInstanceId)(Xp),b="inspector-textarea-control-".concat(p);return Object(c.createElement)(yt,{label:t,hideLabelFromVision:n,id:b,help:i,className:d},Object(c.createElement)(Zp,Object(o.a)({className:"components-textarea-control__input",id:b,rows:l,onChange:function(e){return s(e.target.value)},"aria-describedby":i?b+"__help":void 0,value:r},f)))}var Jp=function(e){var t=e.text,n=void 0===t?"":t,r=e.highlight,o=(void 0===r?"":r).trim();if(!o)return n;var i=new RegExp("(".concat(Object(s.escapeRegExp)(o),")"),"gi");return Object(c.createInterpolateElement)(n.replace(i,"$&"),{mark:Object(c.createElement)("mark",null)})};var Qp=function(e){return Object(c.createElement)("div",{className:"components-tip"},Object(c.createElement)(r.SVG,{width:"24",height:"24",viewBox:"0 0 24 24"},Object(c.createElement)(r.Path,{d:"M12 15.8c-3.7 0-6.8-3-6.8-6.8s3-6.8 6.8-6.8c3.7 0 6.8 3 6.8 6.8s-3.1 6.8-6.8 6.8zm0-12C9.1 3.8 6.8 6.1 6.8 9s2.4 5.2 5.2 5.2c2.9 0 5.2-2.4 5.2-5.2S14.9 3.8 12 3.8zM8 17.5h8V19H8zM10 20.5h4V22h-4z"})),Object(c.createElement)("p",null,e.children))};function eb(e){var t=e.label,n=e.checked,r=e.help,o=e.className,i=e.onChange;var a,u,d=Object(E.useInstanceId)(eb),f="inspector-toggle-control-".concat(d);return r&&(a=f+"__help",u=Object(s.isFunction)(r)?r(n):r),Object(c.createElement)(yt,{id:f,help:u,className:l()("components-toggle-control",o)},Object(c.createElement)(gl,{id:f,checked:n,onChange:function(e){i(e.target.checked)},"aria-describedby":a}),Object(c.createElement)("label",{htmlFor:f,className:"components-toggle-control__label"},t))}var tb=n(137),nb=n(91),rb=function(e){return Object(c.createElement)("div",{className:e.className},e.children)};var ob=Object(c.forwardRef)((function(e,t){var n=e.containerClassName,r=e.className,i=e.extraProps,s=e.children,u=e.title,d=e.isActive,f=e.isDisabled,p=Object(a.a)(e,["containerClassName","className","extraProps","children","title","isActive","isDisabled"]);return Object(c.useContext)(nb.a)?Object(c.createElement)(tb.a,Object(o.a)({className:l()("components-toolbar-button",r)},i,p,{ref:t}),(function(e){return Object(c.createElement)(qr.a,Object(o.a)({label:u,isPressed:d,disabled:f},e),s)})):Object(c.createElement)(rb,{className:n},Object(c.createElement)(qr.a,Object(o.a)({ref:t,icon:p.icon,label:u,shortcut:p.shortcut,"data-subscript":p.subscript,onClick:function(e){e.stopPropagation(),p.onClick&&p.onClick(e)},className:l()("components-toolbar__control",r),isPressed:d,disabled:f,"data-toolbar-item":!0},i,p),s))})),ib=function(e){var t=e.className,n=e.children,r=Object(a.a)(e,["className","children"]);return Object(c.createElement)("div",Object(o.a)({className:t},r),n)};function ab(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cb(e){for(var t=1;t0&&0===n?"has-left-divider":null},e))}))})),r)},lb=n(173),db=Object(h.a)({name:"Toolbar",compose:f.b,useState:lb.a,useProps:function(e,t){return Object(p.b)({role:"toolbar","aria-orientation":e.orientation},t)}}),fb=Object(b.a)({as:"div",useHook:db,useCreateElement:function(e,t,n){return Object(Bf.a)(e,t,n)}});var pb=Object(c.forwardRef)((function(e,t){var n=e.label,r=Object(a.a)(e,["label"]),i=Object(lb.a)({loop:!0,baseId:r.id,rtl:Je()});return Object(c.createElement)(nb.a.Provider,{value:i},Object(c.createElement)(fb,Object(o.a)({ref:t,"aria-label":n},i,r)))}));var bb=Object(c.forwardRef)((function(e,t){var n=e.className,r=e.label,i=Object(a.a)(e,["className","label"]);if(!r)return Ks()("Using Toolbar without label prop",{alternative:"ToolbarGroup component",link:"https://developer.wordpress.org/block-editor/components/toolbar/"}),Object(c.createElement)(ub,Object(o.a)({},i,{className:n}));var s=l()("components-accessible-toolbar",n);return Object(c.createElement)(pb,Object(o.a)({className:s,label:r,ref:t},i))})),hb=Object(c.createContext)(),vb=hb.Provider;function mb(e){var t=e.children,n=Object(c.useState)(),r=Object(i.a)(n,2),o=r[0],a=r[1],s=Object(c.useMemo)((function(){return{lastFocusedElement:o,setLastFocusedElement:a}}),[o]);return Object(c.createElement)(vb,{value:s},t)}function yb(e){var t=gs.focus.focusable.find(e);if(t&&t.length)return t.filter((function(t){return t.closest('[role="row"]')===e}))}var gb=Object(c.forwardRef)((function(e,t){var n=e.children,r=Object(a.a)(e,["children"]),i=Object(c.useCallback)((function(e){var t=e.keyCode,n=e.metaKey,r=e.ctrlKey,o=e.altKey,i=e.shiftKey;if(!(n||r||o||i)&&Object(s.includes)([pr.UP,pr.DOWN,pr.LEFT,pr.RIGHT],t)){e.stopPropagation();var a=document.activeElement,c=e.currentTarget;if(c.contains(a)){var u=a.closest('[role="row"]'),l=yb(u),d=l.indexOf(a);if(Object(s.includes)([pr.LEFT,pr.RIGHT],t)){var f;if((f=t===pr.LEFT?Math.max(0,d-1):Math.min(d+1,l.length-1))===d)return void e.preventDefault();l[f].focus(),e.preventDefault()}else if(Object(s.includes)([pr.UP,pr.DOWN],t)){var p,b=Array.from(c.querySelectorAll('[role="row"]')),h=b.indexOf(u);if((p=t===pr.UP?Math.max(0,h-1):Math.min(h+1,b.length-1))===h)return void e.preventDefault();var v=yb(b[p]);if(!v||!v.length)return void e.preventDefault();v[Math.min(d,v.length-1)].focus(),e.preventDefault()}}}}),[]);return Object(c.createElement)(mb,null,Object(c.createElement)("table",Object(o.a)({},r,{role:"treegrid",onKeyDown:i,ref:t}),Object(c.createElement)("tbody",null,n)))}));var Ob=Object(c.forwardRef)((function(e,t){var n=e.children,r=e.level,i=e.positionInSet,s=e.setSize,u=e.isExpanded,l=Object(a.a)(e,["children","level","positionInSet","setSize","isExpanded"]);return Object(c.createElement)("tr",Object(o.a)({},l,{ref:t,role:"row","aria-level":r,"aria-posinset":i,"aria-setsize":s,"aria-expanded":u}),n)}));function jb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var wb=Object(c.forwardRef)((function(e,t){var n,r=e.children,o=e.as,i=Object(a.a)(e,["children","as"]),s=Object(c.useRef)(),u=t||s,l=Object(c.useContext)(hb),d=l.lastFocusedElement,f=l.setLastFocusedElement;d&&(n=d===u.current?0:-1);var p=function(e){for(var t=1;t0&&Object(c.createElement)(pf,{className:"components-with-notices-ui",notices:this.state.noticeList,onRemove:this.removeNotice})},this.props))}}]),r}(c.Component)}))},function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M20.1 5.1L16.9 2 6.2 12.7l-1.3 4.4 4.5-1.3L20.1 5.1zM4 20.8h8v-1.5H4v1.5z"}));t.a=i},,,,,,,,,,,function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&c.return&&c.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n0&&this.setState({visibleDays:(0,i.default)({},k,M)})}},{key:"componentWillUpdate",value:function(){this.today=(0,l.default)()}},{key:"onDayClick",value:function(e,t){if(t&&t.preventDefault(),!this.isBlocked(e)){var n=this.props,r=n.onDateChange,o=n.keepOpenOnDateSelect,i=n.onFocusChange,a=n.onClose;r(e),o||(i({focused:!1}),a({date:e}))}}},{key:"onDayMouseEnter",value:function(e){if(!this.isTouchDevice){var t=this.state,n=t.hoverDate,r=t.visibleDays,o=this.deleteModifier({},n,"hovered");o=this.addModifier(o,e,"hovered"),this.setState({hoverDate:e,visibleDays:(0,i.default)({},r,o)})}}},{key:"onDayMouseLeave",value:function(){var e=this.state,t=e.hoverDate,n=e.visibleDays;if(!this.isTouchDevice&&t){var r=this.deleteModifier({},t,"hovered");this.setState({hoverDate:null,visibleDays:(0,i.default)({},n,r)})}}},{key:"onPrevMonthClick",value:function(){var e=this.props,t=e.onPrevMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,a=o.currentMonth,c=o.visibleDays,s={};Object.keys(c).sort().slice(0,n+1).forEach((function(e){s[e]=c[e]}));var u=a.clone().subtract(1,"month"),l=(0,m.default)(u,1,r);this.setState({currentMonth:u,visibleDays:(0,i.default)({},s,this.getModifiers(l))},(function(){t(u.clone())}))}},{key:"onNextMonthClick",value:function(){var e=this.props,t=e.onNextMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,a=o.currentMonth,c=o.visibleDays,s={};Object.keys(c).sort().slice(1).forEach((function(e){s[e]=c[e]}));var u=a.clone().add(n,"month"),l=(0,m.default)(u,1,r),d=a.clone().add(1,"month");this.setState({currentMonth:d,visibleDays:(0,i.default)({},s,this.getModifiers(l))},(function(){t(d.clone())}))}},{key:"onMonthChange",value:function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===_.VERTICAL_SCROLLABLE,i=(0,m.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(i)})}},{key:"onYearChange",value:function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===_.VERTICAL_SCROLLABLE,i=(0,m.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(i)})}},{key:"getFirstFocusableDay",value:function(e){var t=this,n=this.props,o=n.date,i=n.numberOfMonths,a=e.clone().startOf("month");if(o&&(a=o.clone()),this.isBlocked(a)){for(var c=[],s=e.clone().add(i-1,"months").endOf("month"),u=a.clone();!(0,v.default)(u,s);)u=u.clone().add(1,"day"),c.push(u);var l=c.filter((function(e){return!t.isBlocked(e)&&(0,v.default)(e,a)}));if(l.length>0){var d=r(l,1);a=d[0]}}return a}},{key:"getModifiers",value:function(e){var t=this,n={};return Object.keys(e).forEach((function(r){n[r]={},e[r].forEach((function(e){n[r][(0,g.default)(e)]=t.getModifiersForDay(e)}))})),n}},{key:"getModifiersForDay",value:function(e){var t=this;return new Set(Object.keys(this.modifiers).filter((function(n){return t.modifiers[n](e)})))}},{key:"getStateForNewMonth",value:function(e){var t=this,n=e.initialVisibleMonth,r=e.date,o=e.numberOfMonths,i=e.enableOutsideDays,a=(n||(r?function(){return r}:function(){return t.today}))();return{currentMonth:a,visibleDays:this.getModifiers((0,m.default)(a,o,i))}}},{key:"addModifier",value:function(e,t,n){var r=this.props,o=r.numberOfMonths,a=r.enableOutsideDays,c=r.orientation,s=this.state,u=s.currentMonth,l=s.visibleDays,d=u,f=o;if(c===_.VERTICAL_SCROLLABLE?f=Object.keys(l).length:(d=d.clone().subtract(1,"month"),f+=2),!t||!(0,y.default)(t,d,f,a))return e;var p=(0,g.default)(t),b=(0,i.default)({},e);if(a)b=Object.keys(l).filter((function(e){return Object.keys(l[e]).indexOf(p)>-1})).reduce((function(t,r){var o=e[r]||l[r],a=new Set(o[p]);return a.add(n),(0,i.default)({},t,x({},r,(0,i.default)({},o,x({},p,a))))}),b);else{var h=(0,O.default)(t),v=e[h]||l[h],m=new Set(v[p]);m.add(n),b=(0,i.default)({},b,x({},h,(0,i.default)({},v,x({},p,m))))}return b}},{key:"deleteModifier",value:function(e,t,n){var r=this.props,o=r.numberOfMonths,a=r.enableOutsideDays,c=r.orientation,s=this.state,u=s.currentMonth,l=s.visibleDays,d=u,f=o;if(c===_.VERTICAL_SCROLLABLE?f=Object.keys(l).length:(d=d.clone().subtract(1,"month"),f+=2),!t||!(0,y.default)(t,d,f,a))return e;var p=(0,g.default)(t),b=(0,i.default)({},e);if(a)b=Object.keys(l).filter((function(e){return Object.keys(l[e]).indexOf(p)>-1})).reduce((function(t,r){var o=e[r]||l[r],a=new Set(o[p]);return a.delete(n),(0,i.default)({},t,x({},r,(0,i.default)({},o,x({},p,a))))}),b);else{var h=(0,O.default)(t),v=e[h]||l[h],m=new Set(v[p]);m.delete(n),b=(0,i.default)({},b,x({},h,(0,i.default)({},v,x({},p,m))))}return b}},{key:"isBlocked",value:function(e){var t=this.props,n=t.isDayBlocked,r=t.isOutsideRange;return n(e)||r(e)}},{key:"isHovered",value:function(e){var t=(this.state||{}).hoverDate;return(0,h.default)(e,t)}},{key:"isSelected",value:function(e){var t=this.props.date;return(0,h.default)(e,t)}},{key:"isToday",value:function(e){return(0,h.default)(e,this.today)}},{key:"isFirstDayOfWeek",value:function(e){var t=this.props.firstDayOfWeek;return e.day()===(t||l.default.localeData().firstDayOfWeek())}},{key:"isLastDayOfWeek",value:function(e){var t=this.props.firstDayOfWeek;return e.day()===((t||l.default.localeData().firstDayOfWeek())+6)%7}},{key:"render",value:function(){var e=this.props,t=e.numberOfMonths,n=e.orientation,r=e.monthFormat,o=e.renderMonthText,i=e.navPrev,c=e.navNext,s=e.onOutsideClick,u=e.withPortal,l=e.focused,d=e.enableOutsideDays,f=e.hideKeyboardShortcutsPanel,p=e.daySize,b=e.firstDayOfWeek,h=e.renderCalendarDay,v=e.renderDayContents,m=e.renderCalendarInfo,y=e.renderMonthElement,g=e.calendarInfoPosition,O=e.isFocused,j=e.isRTL,w=e.phrases,k=e.dayAriaLabelFormat,_=e.onBlur,E=e.showKeyboardShortcuts,x=e.weekDayFormat,C=e.verticalHeight,P=e.noBorder,D=e.transitionDuration,M=e.verticalBorderSpacing,T=e.horizontalMonthPadding,I=this.state,R=I.currentMonth,N=I.visibleDays;return a.default.createElement(S.default,{orientation:n,enableOutsideDays:d,modifiers:N,numberOfMonths:t,onDayClick:this.onDayClick,onDayMouseEnter:this.onDayMouseEnter,onDayMouseLeave:this.onDayMouseLeave,onPrevMonthClick:this.onPrevMonthClick,onNextMonthClick:this.onNextMonthClick,onMonthChange:this.onMonthChange,onYearChange:this.onYearChange,monthFormat:r,withPortal:u,hidden:!l,hideKeyboardShortcutsPanel:f,initialVisibleMonth:function(){return R},firstDayOfWeek:b,onOutsideClick:s,navPrev:i,navNext:c,renderMonthText:o,renderCalendarDay:h,renderDayContents:v,renderCalendarInfo:m,renderMonthElement:y,calendarInfoPosition:g,isFocused:O,getFirstFocusableDay:this.getFirstFocusableDay,onBlur:_,phrases:w,daySize:p,isRTL:j,showKeyboardShortcuts:E,weekDayFormat:x,dayAriaLabelFormat:k,verticalHeight:C,noBorder:P,transitionDuration:D,verticalBorderSpacing:M,horizontalMonthPadding:T})}}]),t}(a.default.Component);t.default=D,D.propTypes=C,D.defaultProps=P},,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"}));t.a=i},function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));t.a=i},,,,,,,function(e,t,n){"use strict"; /** @license React v16.13.1 * react-is.production.min.js * @@ -12,7 +12,7 @@ this.wp=this.wp||{},this.wp.components=function(e){var t={};function n(r){if(t[r * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,c=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,b=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,v=r?Symbol.for("react.memo"):60115,m=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,g=r?Symbol.for("react.fundamental"):60117,O=r?Symbol.for("react.responder"):60118,j=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case d:case f:case a:case s:case c:case b:return e;default:switch(e=e&&e.$$typeof){case l:case p:case m:case v:case u:return e;default:return t}}case i:return t}}}function k(e){return w(e)===f}t.AsyncMode=d,t.ConcurrentMode=f,t.ContextConsumer=l,t.ContextProvider=u,t.Element=o,t.ForwardRef=p,t.Fragment=a,t.Lazy=m,t.Memo=v,t.Portal=i,t.Profiler=s,t.StrictMode=c,t.Suspense=b,t.isAsyncMode=function(e){return k(e)||w(e)===d},t.isConcurrentMode=k,t.isContextConsumer=function(e){return w(e)===l},t.isContextProvider=function(e){return w(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===m},t.isMemo=function(e){return w(e)===v},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===c},t.isSuspense=function(e){return w(e)===b},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===f||e===s||e===c||e===b||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===v||e.$$typeof===u||e.$$typeof===l||e.$$typeof===p||e.$$typeof===g||e.$$typeof===O||e.$$typeof===j||e.$$typeof===y)},t.typeOf=w},function(e,t,n){n(320)},function(e,t,n){"use strict";var r,o=n(321);(0,((r=o)&&r.__esModule?r:{default:r}).default)()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){(0,o.default)(r.default)};var r=i(n(322)),o=i(n(366));function i(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){e.exports=n(323).default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=s(n(324)),o=s(n(362)),i=n(363),a=s(n(364)),c=s(n(365));function s(e){return e&&e.__esModule?e:{default:e}}t.default={create:function(e){var t={},n=Object.keys(e),r=(o.default.get(i.GLOBAL_CACHE_KEY)||{}).namespace,c=void 0===r?"":r;return n.forEach((function(e){var n=(0,a.default)(c,e);t[e]=n})),t},resolve:function(e){var t=(0,r.default)(e,1/0),n=(0,c.default)(t),o=n.classNames,i=n.hasInlineStyles,a=n.inlineStyles,s={className:o.map((function(e,t){return String(e)+" "+String(e)+"_"+String(t+1)})).join(" ")};return i&&(s.style=a),s}}},function(e,t,n){"use strict";var r=n(103),o=n(186),i=n(220),a=n(235),c=a(),s=n(361),u=o(c);r(u,{getPolyfill:a,implementation:i,shim:s}),e.exports=u},function(e,t,n){"use strict";var r;if(!Object.keys){var o=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=n(218),c=Object.prototype.propertyIsEnumerable,s=!c.call({toString:null},"toString"),u=c.call((function(){}),"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(e){var t=e.constructor;return t&&t.prototype===e},f={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!f["$"+e]&&o.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{d(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();r=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===i.call(e),r=a(e),c=t&&"[object String]"===i.call(e),f=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var b=u&&n;if(c&&e.length>0&&!o.call(e,0))for(var h=0;h0)for(var v=0;v= 0");var n,r=0===t?0:t;if(s(e)&&(n=c(e,"constructor"),i&&"Object"===d(n)&&null===(n=c(n,i))&&(n=void 0)),void 0===n)return o(r);if(!u(n))throw new a("C must be a constructor");return new n(r)}},function(e,t,n){var r="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=r&&o&&"function"==typeof o.get?o.get:null,a=r&&Map.prototype.forEach,c="function"==typeof Set&&Set.prototype,s=Object.getOwnPropertyDescriptor&&c?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=c&&s&&"function"==typeof s.get?s.get:null,l=c&&Set.prototype.forEach,d="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p=Boolean.prototype.valueOf,b=Object.prototype.toString,h=Function.prototype.toString,v=String.prototype.match,m="function"==typeof BigInt?BigInt.prototype.valueOf:null,y=n(330).custom,g=y&&k(y)?y:null;function O(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function j(e){return String(e).replace(/"/g,""")}function w(e){return"[object Array]"===E(e)}function k(e){return"[object Symbol]"===E(e)}e.exports=function e(t,n,r,o){var c=n||{};if(S(c,"quoteStyle")&&"single"!==c.quoteStyle&&"double"!==c.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(S(c,"maxStringLength")&&("number"==typeof c.maxStringLength?c.maxStringLength<0&&c.maxStringLength!==1/0:null!==c.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=!S(c,"customInspect")||c.customInspect;if("boolean"!=typeof s)throw new TypeError('option "customInspect", if provided, must be `true` or `false`');if(S(c,"indent")&&null!==c.indent&&"\t"!==c.indent&&!(parseInt(c.indent,10)===c.indent&&c.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return function e(t,n){if(t.length>n.maxStringLength){var r=t.length-n.maxStringLength,o="... "+r+" more character"+(r>1?"s":"");return e(t.slice(0,n.maxStringLength),n)+o}return O(t.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,C),"single",n)}(t,c);if("number"==typeof t)return 0===t?1/0/t>0?"0":"-0":String(t);if("bigint"==typeof t)return String(t)+"n";var b=void 0===c.depth?5:c.depth;if(void 0===r&&(r=0),r>=b&&b>0&&"object"==typeof t)return w(t)?"[Array]":"[Object]";var y=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=Array(e.indent+1).join(" ")}return{base:n,prev:Array(t+1).join(n)}}(c,r);if(void 0===o)o=[];else if(x(o,t)>=0)return"[Circular]";function _(t,n,i){if(n&&(o=o.slice()).push(n),i){var a={depth:c.depth};return S(c,"quoteStyle")&&(a.quoteStyle=c.quoteStyle),e(t,a,r+1,o)}return e(t,c,r+1,o)}if("function"==typeof t){var R=function(e){if(e.name)return e.name;var t=v.call(h.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t);return"[Function"+(R?": "+R:" (anonymous)")+"]"}if(k(t)){var N=Symbol.prototype.toString.call(t);return"object"==typeof t?P(N):N}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var A="<"+String(t.nodeName).toLowerCase(),L=t.attributes||[],F=0;F"}if(w(t)){if(0===t.length)return"[]";var z=I(t,_);return y&&!function(e){for(var t=0;t=0)return!1;return!0}(z)?"["+T(z,y)+"]":"[ "+z.join(", ")+" ]"}if(function(e){return"[object Error]"===E(e)}(t)){var B=I(t,_);return 0===B.length?"["+String(t)+"]":"{ ["+String(t)+"] "+B.join(", ")+" }"}if("object"==typeof t&&s){if(g&&"function"==typeof t[g])return t[g]();if("function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{u.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var H=[];return a.call(t,(function(e,n){H.push(_(n,t,!0)+" => "+_(e,t))})),M("Map",i.call(t),H,y)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var V=[];return l.call(t,(function(e){V.push(_(e,t))})),M("Set",u.call(t),V,y)}if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return D("WeakMap");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return D("WeakSet");if(function(e){return"[object Number]"===E(e)}(t))return P(_(Number(t)));if(function(e){return"[object BigInt]"===E(e)}(t))return P(_(m.call(t)));if(function(e){return"[object Boolean]"===E(e)}(t))return P(p.call(t));if(function(e){return"[object String]"===E(e)}(t))return P(_(String(t)));if(!function(e){return"[object Date]"===E(e)}(t)&&!function(e){return"[object RegExp]"===E(e)}(t)){var K=I(t,_);return 0===K.length?"{}":y?"{"+T(K,y)+"}":"{ "+K.join(", ")+" }"}return String(t)};var _=Object.prototype.hasOwnProperty||function(e){return e in this};function S(e,t){return _.call(e,t)}function E(e){return b.call(e)}function x(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n5&&(h=arguments[5]);for(var v=p,m=0;m0&&(j=u(O)),j){var w=l(c(O,"length"));v=e(t,O,w,v,b-1)}else{if(v>=o)throw new r("index too large");a(t,d(v),O),v+=1}}m+=1}return v}},function(e,t,n){"use strict";var r=n(58),o=n(145),i=r("%Reflect.apply%",!0)||o("%Function.prototype.apply%");e.exports=function(e,t){var n=arguments.length>2?arguments[2]:[];return i(e,t,n)}},function(e,t,n){"use strict";var r=n(58)("%TypeError%"),o=n(341),i=n(131),a=n(92);e.exports=function(e,t,n){if("Object"!==a(e))throw new r("Assertion failed: Type(O) is not Object");if(!i(t))throw new r("Assertion failed: IsPropertyKey(P) is not true");var c=o(e,t,n);if(!c)throw new r("unable to create data property");return c}},function(e,t,n){"use strict";var r=n(58)("%TypeError%"),o=n(221),i=n(222),a=n(342),c=n(223),s=n(346),u=n(131),l=n(224),d=n(92);e.exports=function(e,t,n){if("Object"!==d(e))throw new r("Assertion failed: Type(O) is not Object");if(!u(t))throw new r("Assertion failed: IsPropertyKey(P) is not true");var f=a(e,t),p=!f||s(e);return!(f&&(!f["[[Writable]]"]||!f["[[Configurable]]"])||!p)&&o(c,l,i,e,t,{"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Value]]":n,"[[Writable]]":!0})}},function(e,t,n){"use strict";var r=n(58),o=n(343),i=r("%TypeError%"),a=n(145)("Object.prototype.propertyIsEnumerable"),c=n(93),s=n(188),u=n(131),l=n(344),d=n(225),f=n(92);e.exports=function(e,t){if("Object"!==f(e))throw new i("Assertion failed: O must be an Object");if(!u(t))throw new i("Assertion failed: P must be a Property Key");if(c(e,t)){if(!o){var n=s(e)&&"length"===t,r=l(e)&&"lastIndex"===t;return{"[[Configurable]]":!(n||r),"[[Enumerable]]":a(e,t),"[[Value]]":e[t],"[[Writable]]":!0}}return d(o(e,t))}}},function(e,t,n){"use strict";var r=n(58)("%Object.getOwnPropertyDescriptor%");if(r)try{r([],"length")}catch(e){r=null}e.exports=r},function(e,t,n){"use strict";var r=n(58)("%Symbol.match%",!0),o=n(345),i=n(226);e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(r){var t=e[r];if(void 0!==t)return i(t)}return o(e)}},function(e,t,n){"use strict";var r,o,i,a,c=n(219)()&&"symbol"==typeof Symbol.toStringTag;if(c){r=Function.call.bind(Object.prototype.hasOwnProperty),o=Function.call.bind(RegExp.prototype.exec),i={};var s=function(){throw i};a={toString:s,valueOf:s},"symbol"==typeof Symbol.toPrimitive&&(a[Symbol.toPrimitive]=s)}var u=Object.prototype.toString,l=Object.getOwnPropertyDescriptor;e.exports=c?function(e){if(!e||"object"!=typeof e)return!1;var t=l(e,"lastIndex");if(!(t&&r(t,"value")))return!1;try{o(e,a)}catch(e){return e===i}}:function(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&"[object RegExp]"===u.call(e)}},function(e,t,n){"use strict";var r=n(58)("%Object%"),o=n(230),i=r.preventExtensions,a=r.isExtensible;e.exports=i?function(e){return!o(e)&&a(e)}:function(e){return!o(e)}},function(e,t,n){"use strict";var r=n(58)("%TypeError%"),o=n(131),i=n(92);e.exports=function(e,t){if("Object"!==i(e))throw new r("Assertion failed: `O` must be an Object");if(!o(t))throw new r("Assertion failed: `P` must be a Property Key");return t in e}},function(e,t,n){"use strict";var r=n(58)("%Math%"),o=n(349),i=n(190),a=n(228),c=n(350),s=r.floor,u=r.abs;e.exports=function(e){var t=o(e);return i(t)?0:0!==t&&a(t)?c(t)*s(u(t)):t}},function(e,t,n){"use strict";e.exports=function(e){return+e}},function(e,t,n){"use strict";e.exports=function(e){return e>=0?1:-1}},function(e,t,n){"use strict";var r=n(58),o=r("%TypeError%"),i=r("%Number%"),a=r("%RegExp%"),c=r("%parseInt%"),s=n(145),u=n(352),l=n(230),d=s("String.prototype.slice"),f=u(/^0b[01]+$/i),p=u(/^0o[0-7]+$/i),b=u(/^[-+]0x[0-9a-f]+$/i),h=u(new a("["+["…","​","￾"].join("")+"]","g")),v=["\t\n\v\f\r   ᠎    ","          \u2028","\u2029\ufeff"].join(""),m=new RegExp("(^["+v+"]+)|(["+v+"]+$)","g"),y=s("String.prototype.replace"),g=n(353);e.exports=function e(t){var n=l(t)?t:g(t,i);if("symbol"==typeof n)throw new o("Cannot convert a Symbol value to a number");if("string"==typeof n){if(f(n))return e(c(d(n,2),2));if(p(n))return e(c(d(n,2),8));if(h(n)||b(n))return NaN;var r=function(e){return y(e,m,"")}(n);if(r!==n)return e(r)}return i(n)}},function(e,t,n){"use strict";var r=n(58)("RegExp.prototype.test"),o=n(186);e.exports=function(e){return o(r,e)}},function(e,t,n){"use strict";var r=n(354);e.exports=function(e){return arguments.length>1?r(e,arguments[1]):r(e)}},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,o=n(355),i=n(227),a=n(233),c=n(191),s=function(e,t){if(null==e)throw new TypeError("Cannot call method on "+e);if("string"!=typeof t||"number"!==t&&"string"!==t)throw new TypeError('hint must be "string" or "number"');var n,r,a,c="string"===t?["toString","valueOf"]:["valueOf","toString"];for(a=0;a1&&(arguments[1]===String?n="string":arguments[1]===Number&&(n="number")),r&&(Symbol.toPrimitive?t=u(e,Symbol.toPrimitive):c(e)&&(t=Symbol.prototype.valueOf)),void 0!==t){var i=t.call(e,n);if(o(i))return i;throw new TypeError("unable to convert exotic object to primitive")}return"default"===n&&(a(e)||c(e))&&(n="string"),s(e,"default"===n?"number":n)}},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";(function(t){var r=t.Symbol,o=n(234);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}}).call(this,n(130))},function(e,t,n){"use strict";var r=n(58),o=r("%String%"),i=r("%TypeError%");e.exports=function(e){if("symbol"==typeof e)throw new i("Cannot convert a Symbol value to a string");return o(e)}},function(e,t,n){"use strict";var r=n(58)("%Object%"),o=n(359);e.exports=function(e){return o(e),r(e)}},function(e,t,n){"use strict";e.exports=n(360)},function(e,t,n){"use strict";var r=n(58)("%TypeError%");e.exports=function(e,t){if(null==e)throw new r(t||"Cannot call method on "+e);return e}},function(e,t,n){"use strict";var r=n(103),o=n(235);e.exports=function(){var e=o();return r(Array.prototype,{flat:e},{flat:function(){return Array.prototype.flat!==e}}),e}},function(e,t,n){"use strict";(function(t){var r=n(103),o=n(191),i="__ global cache key __";"function"==typeof Symbol&&o(Symbol("foo"))&&"function"==typeof Symbol.for&&(i=Symbol.for(i));var a=function(){return!0},c=function(){if(!t[i]){var e={};e[i]={};var n={};n[i]=a,r(t,e,n)}return t[i]},s=c(),u=function(e){return o(e)?Symbol.prototype.valueOf.call(e):typeof e+" | "+String(e)},l=function(e){if(!function(e){return null===e||"object"!=typeof e&&"function"!=typeof e}(e))throw new TypeError("key must not be an object")},d={clear:function(){delete t[i],s=c()},delete:function(e){return l(e),delete s[u(e)],!d.has(e)},get:function(e){return l(e),s[u(e)]},has:function(e){return l(e),u(e)in s},set:function(e,t){l(e);var n=u(e),o={};o[n]=t;var i={};return i[n]=a,r(s,o,i),d.has(e)},setIfMissingThenGet:function(e,t){if(d.has(e))return d.get(e);var n=t();return d.set(e,n),n}};e.exports=d}).call(this,n(130))},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.GLOBAL_CACHE_KEY="reactWithStylesInterfaceCSS",t.MAX_SPECIFICITY=20},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(e.length>0?String(e)+"__":"")+String(t)}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){for(var t=[],n=!1,r={},o=0;o>",baseInvalidMessage:"Invalid "};function r(e){if("function"!=typeof e)throw new Error(n.invalidPropValidator);var t=e.bind(null,!1,null);return t.isRequired=e.bind(null,!0,null),t.withPredicate=function(t){if("function"!=typeof t)throw new Error(n.invalidPredicate);var r=e.bind(null,!1,t);return r.isRequired=e.bind(null,!0,t),r},t}function o(e,t,r){return new Error("The prop `"+e+"` "+n.requiredCore+" in `"+t+"`, but its value is `"+r+"`.")}e.exports={constructPropValidatorVariations:r,createMomentChecker:function(e,t,i,a){return r((function(r,c,s,u,l,d,f){var p=s[u],b=typeof p,h=function(e,t,n,r){var i=void 0===r,a=null===r;if(e){if(i)return o(n,t,"undefined");if(a)return o(n,t,"null")}return i||a?null:-1}(r,l=l||n.anonymousMessage,f=f||u,p);if(-1!==h)return h;if(t&&!t(p))return new Error(n.invalidTypeCore+": `"+u+"` of type `"+b+"` supplied to `"+l+"`, expected `"+e+"`.");if(!i(p))return new Error(n.baseInvalidMessage+d+" `"+u+"` of type `"+b+"` supplied to `"+l+"`, expected `"+a+"`.");if(c&&!c(p)){var v=c.name||n.anonymousMessage;return new Error(n.baseInvalidMessage+d+" `"+u+"` of type `"+b+"` supplied to `"+l+"`. "+n.predicateFailureCore+" `"+v+"`.")}return null}))},messages:n}},function(e,t,n){"use strict";function r(){return null}function o(){return r}r.isRequired=r,e.exports={and:o,between:o,booleanSome:o,childrenHavePropXorChildren:o,childrenOf:o,childrenOfType:o,childrenSequenceOf:o,componentWithName:o,disallowedIf:o,elementType:o,empty:o,explicitNull:o,forbidExtraProps:Object,integer:o,keysOf:o,mutuallyExclusiveProps:o,mutuallyExclusiveTrueProps:o,nChildren:o,nonNegativeInteger:r,nonNegativeNumber:o,numericString:o,object:o,or:o,predicate:o,range:o,ref:o,requiredBy:o,restrictedProp:o,sequenceOf:o,shape:o,stringEndsWith:o,stringStartsWith:o,uniqueArray:o,uniqueArrayOf:o,valuesOf:o,withShape:o}},function(e,t,n){"use strict";e.exports=n(372)},function(e,t,n){"use strict";var r=n(373),o=n(246),i=o(o({},r),{SameValueNonNumber:function(e,t){if("number"==typeof e||typeof e!=typeof t)throw new TypeError("SameValueNonNumber requires two non-number values of the same type.");return this.SameValue(e,t)}});e.exports=i},function(e,t,n){"use strict";var r=n(93),o=n(374),i=n(185),a=n(193),c=a("%TypeError%"),s=a("%SyntaxError%"),u=a("%Array%"),l=a("%String%"),d=a("%Object%"),f=a("%Number%"),p=a("%Symbol%",!0),b=a("%RegExp%"),h=!!p,v=n(243),m=n(244),y=n(245),g=f.MAX_SAFE_INTEGER||Math.pow(2,53)-1,O=n(246),j=n(247),w=n(248),k=n(376),_=parseInt,S=n(121),E=S.call(Function.call,u.prototype.slice),x=S.call(Function.call,l.prototype.slice),C=S.call(Function.call,b.prototype.test,/^0b[01]+$/i),P=S.call(Function.call,b.prototype.test,/^0o[0-7]+$/i),D=S.call(Function.call,b.prototype.exec),M=new b("["+["…","​","￾"].join("")+"]","g"),T=S.call(Function.call,b.prototype.test,M),I=S.call(Function.call,b.prototype.test,/^[-+]0x[0-9a-f]+$/i),R=S.call(Function.call,l.prototype.charCodeAt),N=S.call(Function.call,Object.prototype.toString),A=S.call(Function.call,a("%NumberPrototype%").valueOf),L=S.call(Function.call,a("%BooleanPrototype%").valueOf),F=S.call(Function.call,a("%StringPrototype%").valueOf),z=S.call(Function.call,a("%DatePrototype%").valueOf),B=Math.floor,H=Math.abs,V=Object.create,K=d.getOwnPropertyDescriptor,W=d.isExtensible,U=d.defineProperty,G=["\t\n\v\f\r   ᠎    ","          \u2028","\u2029\ufeff"].join(""),$=new RegExp("(^["+G+"]+)|(["+G+"]+$)","g"),q=S.call(Function.call,l.prototype.replace),Y=n(377),Z=n(379),X=O(O({},Y),{Call:function(e,t){var n=arguments.length>2?arguments[2]:[];if(!this.IsCallable(e))throw new c(e+" is not a function");return e.apply(t,n)},ToPrimitive:o,ToNumber:function(e){var t=k(e)?e:o(e,f);if("symbol"==typeof t)throw new c("Cannot convert a Symbol value to a number");if("string"==typeof t){if(C(t))return this.ToNumber(_(x(t,2),2));if(P(t))return this.ToNumber(_(x(t,2),8));if(T(t)||I(t))return NaN;var n=function(e){return q(e,$,"")}(t);if(n!==t)return this.ToNumber(n)}return f(t)},ToInt16:function(e){var t=this.ToUint16(e);return t>=32768?t-65536:t},ToInt8:function(e){var t=this.ToUint8(e);return t>=128?t-256:t},ToUint8:function(e){var t=this.ToNumber(e);if(m(t)||0===t||!y(t))return 0;var n=j(t)*B(H(t));return w(n,256)},ToUint8Clamp:function(e){var t=this.ToNumber(e);if(m(t)||t<=0)return 0;if(t>=255)return 255;var n=B(e);return n+.5g?g:t},CanonicalNumericIndexString:function(e){if("[object String]"!==N(e))throw new c("must be a string");if("-0"===e)return-0;var t=this.ToNumber(e);return this.SameValue(this.ToString(t),e)?t:void 0},RequireObjectCoercible:Y.CheckObjectCoercible,IsArray:u.isArray||function(e){return"[object Array]"===N(e)},IsConstructor:function(e){return"function"==typeof e&&!!e.prototype},IsExtensible:Object.preventExtensions?function(e){return!k(e)&&W(e)}:function(e){return!0},IsInteger:function(e){if("number"!=typeof e||m(e)||!y(e))return!1;var t=H(e);return B(t)===t},IsPropertyKey:function(e){return"string"==typeof e||"symbol"==typeof e},IsRegExp:function(e){if(!e||"object"!=typeof e)return!1;if(h){var t=e[p.match];if(void 0!==t)return Y.ToBoolean(t)}return Z(e)},SameValueZero:function(e,t){return e===t||m(e)&&m(t)},GetV:function(e,t){if(!this.IsPropertyKey(t))throw new c("Assertion failed: IsPropertyKey(P) is not true");return this.ToObject(e)[t]},GetMethod:function(e,t){if(!this.IsPropertyKey(t))throw new c("Assertion failed: IsPropertyKey(P) is not true");var n=this.GetV(e,t);if(null!=n){if(!this.IsCallable(n))throw new c(t+"is not a function");return n}},Get:function(e,t){if("Object"!==this.Type(e))throw new c("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new c("Assertion failed: IsPropertyKey(P) is not true");return e[t]},Type:function(e){return"symbol"==typeof e?"Symbol":Y.Type(e)},SpeciesConstructor:function(e,t){if("Object"!==this.Type(e))throw new c("Assertion failed: Type(O) is not Object");var n=e.constructor;if(void 0===n)return t;if("Object"!==this.Type(n))throw new c("O.constructor is not an Object");var r=h&&p.species?n[p.species]:void 0;if(null==r)return t;if(this.IsConstructor(r))return r;throw new c("no constructor found")},CompletePropertyDescriptor:function(e){return v(this,"Property Descriptor","Desc",e),this.IsGenericDescriptor(e)||this.IsDataDescriptor(e)?(r(e,"[[Value]]")||(e["[[Value]]"]=void 0),r(e,"[[Writable]]")||(e["[[Writable]]"]=!1)):(r(e,"[[Get]]")||(e["[[Get]]"]=void 0),r(e,"[[Set]]")||(e["[[Set]]"]=void 0)),r(e,"[[Enumerable]]")||(e["[[Enumerable]]"]=!1),r(e,"[[Configurable]]")||(e["[[Configurable]]"]=!1),e},Set:function(e,t,n,r){if("Object"!==this.Type(e))throw new c("O must be an Object");if(!this.IsPropertyKey(t))throw new c("P must be a Property Key");if("Boolean"!==this.Type(r))throw new c("Throw must be a Boolean");if(r)return e[t]=n,!0;try{e[t]=n}catch(e){return!1}},HasOwnProperty:function(e,t){if("Object"!==this.Type(e))throw new c("O must be an Object");if(!this.IsPropertyKey(t))throw new c("P must be a Property Key");return r(e,t)},HasProperty:function(e,t){if("Object"!==this.Type(e))throw new c("O must be an Object");if(!this.IsPropertyKey(t))throw new c("P must be a Property Key");return t in e},IsConcatSpreadable:function(e){if("Object"!==this.Type(e))return!1;if(h&&"symbol"==typeof p.isConcatSpreadable){var t=this.Get(e,Symbol.isConcatSpreadable);if(void 0!==t)return this.ToBoolean(t)}return this.IsArray(e)},Invoke:function(e,t){if(!this.IsPropertyKey(t))throw new c("P must be a Property Key");var n=E(arguments,2),r=this.GetV(e,t);return this.Call(r,e,n)},GetIterator:function(e,t){if(!h)throw new SyntaxError("ES.GetIterator depends on native iterator support.");var n=t;arguments.length<2&&(n=this.GetMethod(e,p.iterator));var r=this.Call(n,e);if("Object"!==this.Type(r))throw new c("iterator must return an object");return r},IteratorNext:function(e,t){var n=this.Invoke(e,"next",arguments.length<2?[]:[t]);if("Object"!==this.Type(n))throw new c("iterator next must return an object");return n},IteratorComplete:function(e){if("Object"!==this.Type(e))throw new c("Assertion failed: Type(iterResult) is not Object");return this.ToBoolean(this.Get(e,"done"))},IteratorValue:function(e){if("Object"!==this.Type(e))throw new c("Assertion failed: Type(iterResult) is not Object");return this.Get(e,"value")},IteratorStep:function(e){var t=this.IteratorNext(e);return!0!==this.IteratorComplete(t)&&t},IteratorClose:function(e,t){if("Object"!==this.Type(e))throw new c("Assertion failed: Type(iterator) is not Object");if(!this.IsCallable(t))throw new c("Assertion failed: completion is not a thunk for a Completion Record");var n,r=t,o=this.GetMethod(e,"return");if(void 0===o)return r();try{var i=this.Call(o,e,[])}catch(e){throw n=r(),r=null,e}if(n=r(),r=null,"Object"!==this.Type(i))throw new c("iterator .return must return an object");return n},CreateIterResultObject:function(e,t){if("Boolean"!==this.Type(t))throw new c("Assertion failed: Type(done) is not Boolean");return{value:e,done:t}},RegExpExec:function(e,t){if("Object"!==this.Type(e))throw new c("R must be an Object");if("String"!==this.Type(t))throw new c("S must be a String");var n=this.Get(e,"exec");if(this.IsCallable(n)){var r=this.Call(n,e,[t]);if(null===r||"Object"===this.Type(r))return r;throw new c('"exec" method must return `null` or an Object')}return D(e,t)},ArraySpeciesCreate:function(e,t){if(!this.IsInteger(t)||t<0)throw new c("Assertion failed: length must be an integer >= 0");var n,r=0===t?0:t;if(this.IsArray(e)&&(n=this.Get(e,"constructor"),"Object"===this.Type(n)&&h&&p.species&&null===(n=this.Get(n,p.species))&&(n=void 0)),void 0===n)return u(r);if(!this.IsConstructor(n))throw new c("C must be a constructor");return new n(r)},CreateDataProperty:function(e,t,n){if("Object"!==this.Type(e))throw new c("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new c("Assertion failed: IsPropertyKey(P) is not true");var r=K(e,t),o=r||"function"!=typeof W||W(e);return!(!(!r||r.writable&&r.configurable)||!o)&&(U(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}),!0)},CreateDataPropertyOrThrow:function(e,t,n){if("Object"!==this.Type(e))throw new c("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new c("Assertion failed: IsPropertyKey(P) is not true");var r=this.CreateDataProperty(e,t,n);if(!r)throw new c("unable to create data property");return r},ObjectCreate:function(e,t){if(null!==e&&"Object"!==this.Type(e))throw new c("Assertion failed: proto must be null or an object");var n=arguments.length<2?[]:t;if(n.length>0)throw new s("es-abstract does not yet support internal slots");if(null===e&&!V)throw new s("native Object.create support is required to create null objects");return V(e)},AdvanceStringIndex:function(e,t,n){if("String"!==this.Type(e))throw new c("S must be a String");if(!this.IsInteger(t)||t<0||t>g)throw new c("Assertion failed: length must be an integer >= 0 and <= 2**53");if("Boolean"!==this.Type(n))throw new c("Assertion failed: unicode must be a Boolean");if(!n)return t+1;if(t+1>=e.length)return t+1;var r=R(e,t);if(r<55296||r>56319)return t+1;var o=R(e,t+1);return o<56320||o>57343?t+1:t+2},CreateMethodProperty:function(e,t,n){if("Object"!==this.Type(e))throw new c("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new c("Assertion failed: IsPropertyKey(P) is not true");return!!U(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0})},DefinePropertyOrThrow:function(e,t,n){if("Object"!==this.Type(e))throw new c("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new c("Assertion failed: IsPropertyKey(P) is not true");return!!U(e,t,n)},DeletePropertyOrThrow:function(e,t){if("Object"!==this.Type(e))throw new c("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new c("Assertion failed: IsPropertyKey(P) is not true");var n=delete e[t];if(!n)throw new TypeError("Attempt to delete property failed.");return n},EnumerableOwnNames:function(e){if("Object"!==this.Type(e))throw new c("Assertion failed: Type(O) is not Object");return i(e)},thisNumberValue:function(e){return"Number"===this.Type(e)?e:A(e)},thisBooleanValue:function(e){return"Boolean"===this.Type(e)?e:L(e)},thisStringValue:function(e){return"String"===this.Type(e)?e:F(e)},thisTimeValue:function(e){return z(e)}});delete X.CheckObjectCoercible,e.exports=X},function(e,t,n){"use strict";e.exports=n(375)},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,o=n(242),i=n(192),a=n(233),c=n(191),s=function(e,t){if(null==e)throw new TypeError("Cannot call method on "+e);if("string"!=typeof t||"number"!==t&&"string"!==t)throw new TypeError('hint must be "string" or "number"');var n,r,a,c="string"===t?["toString","valueOf"]:["valueOf","toString"];for(a=0;a1&&(arguments[1]===String?n="string":arguments[1]===Number&&(n="number")),r&&(Symbol.toPrimitive?t=u(e,Symbol.toPrimitive):c(e)&&(t=Symbol.prototype.valueOf)),void 0!==t){var i=t.call(e,n);if(o(i))return i;throw new TypeError("unable to convert exotic object to primitive")}return"default"===n&&(a(e)||c(e))&&(n="string"),s(e,"default"===n?"number":n)}},function(e,t){e.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},function(e,t,n){"use strict";var r=n(193),o=r("%Object%"),i=r("%TypeError%"),a=r("%String%"),c=n(243),s=n(244),u=n(245),l=n(247),d=n(248),f=n(192),p=n(378),b=n(93),h={ToPrimitive:p,ToBoolean:function(e){return!!e},ToNumber:function(e){return+e},ToInteger:function(e){var t=this.ToNumber(e);return s(t)?0:0!==t&&u(t)?l(t)*Math.floor(Math.abs(t)):t},ToInt32:function(e){return this.ToNumber(e)>>0},ToUint32:function(e){return this.ToNumber(e)>>>0},ToUint16:function(e){var t=this.ToNumber(e);if(s(t)||0===t||!u(t))return 0;var n=l(t)*Math.floor(Math.abs(t));return d(n,65536)},ToString:function(e){return a(e)},ToObject:function(e){return this.CheckObjectCoercible(e),o(e)},CheckObjectCoercible:function(e,t){if(null==e)throw new i(t||"Cannot call method on "+e);return e},IsCallable:f,SameValue:function(e,t){return e===t?0!==e||1/e==1/t:s(e)&&s(t)},Type:function(e){return null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"==typeof e?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":void 0},IsPropertyDescriptor:function(e){if("Object"!==this.Type(e))return!1;var t={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var n in e)if(b(e,n)&&!t[n])return!1;var r=b(e,"[[Value]]"),o=b(e,"[[Get]]")||b(e,"[[Set]]");if(r&&o)throw new i("Property Descriptors may not be both accessor and data descriptors");return!0},IsAccessorDescriptor:function(e){return void 0!==e&&(c(this,"Property Descriptor","Desc",e),!(!b(e,"[[Get]]")&&!b(e,"[[Set]]")))},IsDataDescriptor:function(e){return void 0!==e&&(c(this,"Property Descriptor","Desc",e),!(!b(e,"[[Value]]")&&!b(e,"[[Writable]]")))},IsGenericDescriptor:function(e){return void 0!==e&&(c(this,"Property Descriptor","Desc",e),!this.IsAccessorDescriptor(e)&&!this.IsDataDescriptor(e))},FromPropertyDescriptor:function(e){if(void 0===e)return e;if(c(this,"Property Descriptor","Desc",e),this.IsDataDescriptor(e))return{value:e["[[Value]]"],writable:!!e["[[Writable]]"],enumerable:!!e["[[Enumerable]]"],configurable:!!e["[[Configurable]]"]};if(this.IsAccessorDescriptor(e))return{get:e["[[Get]]"],set:e["[[Set]]"],enumerable:!!e["[[Enumerable]]"],configurable:!!e["[[Configurable]]"]};throw new i("FromPropertyDescriptor must be called with a fully populated Property Descriptor")},ToPropertyDescriptor:function(e){if("Object"!==this.Type(e))throw new i("ToPropertyDescriptor requires an object");var t={};if(b(e,"enumerable")&&(t["[[Enumerable]]"]=this.ToBoolean(e.enumerable)),b(e,"configurable")&&(t["[[Configurable]]"]=this.ToBoolean(e.configurable)),b(e,"value")&&(t["[[Value]]"]=e.value),b(e,"writable")&&(t["[[Writable]]"]=this.ToBoolean(e.writable)),b(e,"get")){var n=e.get;if(void 0!==n&&!this.IsCallable(n))throw new TypeError("getter must be a function");t["[[Get]]"]=n}if(b(e,"set")){var r=e.set;if(void 0!==r&&!this.IsCallable(r))throw new i("setter must be a function");t["[[Set]]"]=r}if((b(t,"[[Get]]")||b(t,"[[Set]]"))&&(b(t,"[[Value]]")||b(t,"[[Writable]]")))throw new i("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}};e.exports=h},function(e,t,n){"use strict";var r=Object.prototype.toString,o=n(242),i=n(192),a=function(e){var t;if((t=arguments.length>1?arguments[1]:"[object Date]"===r.call(e)?String:Number)===String||t===Number){var n,a,c=t===String?["toString","valueOf"]:["valueOf","toString"];for(a=0;a1?a(e,arguments[1]):a(e)}},function(e,t,n){"use strict";var r=n(93),o=RegExp.prototype.exec,i=Object.getOwnPropertyDescriptor,a=Object.prototype.toString,c="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!c)return"[object RegExp]"===a.call(e);var t=i(e,"lastIndex");return!(!t||!r(t,"value"))&&function(e){try{var t=e.lastIndex;return e.lastIndex=0,o.call(e),!0}catch(e){return!1}finally{e.lastIndex=t}}(e)}},function(e,t,n){"use strict";var r=n(249),o=n(103);e.exports=function(){var e=r();return o(Object,{values:e},{values:function(){return Object.values!==e}}),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,i){if(!r.default.isMoment(e))return{};for(var a={},c=i?e.clone():e.clone().subtract(1,"month"),s=0;s<(i?t:t+2);s+=1){var u=[],l=c.clone(),d=l.clone().startOf("month").hour(12),f=l.clone().endOf("month").hour(12),p=d.clone();if(n)for(var b=0;b0&&!o.call(e,0))for(var h=0;h0)for(var v=0;v= 0");var n,r=0===t?0:t;if(s(e)&&(n=c(e,"constructor"),i&&"Object"===d(n)&&null===(n=c(n,i))&&(n=void 0)),void 0===n)return o(r);if(!u(n))throw new a("C must be a constructor");return new n(r)}},function(e,t,n){var r="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=r&&o&&"function"==typeof o.get?o.get:null,a=r&&Map.prototype.forEach,c="function"==typeof Set&&Set.prototype,s=Object.getOwnPropertyDescriptor&&c?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=c&&s&&"function"==typeof s.get?s.get:null,l=c&&Set.prototype.forEach,d="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p=Boolean.prototype.valueOf,b=Object.prototype.toString,h=Function.prototype.toString,v=String.prototype.match,m="function"==typeof BigInt?BigInt.prototype.valueOf:null,y=n(334).custom,g=y&&k(y)?y:null;function O(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function j(e){return String(e).replace(/"/g,""")}function w(e){return"[object Array]"===E(e)}function k(e){return"[object Symbol]"===E(e)}e.exports=function e(t,n,r,o){var c=n||{};if(S(c,"quoteStyle")&&"single"!==c.quoteStyle&&"double"!==c.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(S(c,"maxStringLength")&&("number"==typeof c.maxStringLength?c.maxStringLength<0&&c.maxStringLength!==1/0:null!==c.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=!S(c,"customInspect")||c.customInspect;if("boolean"!=typeof s)throw new TypeError('option "customInspect", if provided, must be `true` or `false`');if(S(c,"indent")&&null!==c.indent&&"\t"!==c.indent&&!(parseInt(c.indent,10)===c.indent&&c.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return function e(t,n){if(t.length>n.maxStringLength){var r=t.length-n.maxStringLength,o="... "+r+" more character"+(r>1?"s":"");return e(t.slice(0,n.maxStringLength),n)+o}return O(t.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,C),"single",n)}(t,c);if("number"==typeof t)return 0===t?1/0/t>0?"0":"-0":String(t);if("bigint"==typeof t)return String(t)+"n";var b=void 0===c.depth?5:c.depth;if(void 0===r&&(r=0),r>=b&&b>0&&"object"==typeof t)return w(t)?"[Array]":"[Object]";var y=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=Array(e.indent+1).join(" ")}return{base:n,prev:Array(t+1).join(n)}}(c,r);if(void 0===o)o=[];else if(x(o,t)>=0)return"[Circular]";function _(t,n,i){if(n&&(o=o.slice()).push(n),i){var a={depth:c.depth};return S(c,"quoteStyle")&&(a.quoteStyle=c.quoteStyle),e(t,a,r+1,o)}return e(t,c,r+1,o)}if("function"==typeof t){var R=function(e){if(e.name)return e.name;var t=v.call(h.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t);return"[Function"+(R?": "+R:" (anonymous)")+"]"}if(k(t)){var N=Symbol.prototype.toString.call(t);return"object"==typeof t?P(N):N}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var A="<"+String(t.nodeName).toLowerCase(),L=t.attributes||[],F=0;F"}if(w(t)){if(0===t.length)return"[]";var z=I(t,_);return y&&!function(e){for(var t=0;t=0)return!1;return!0}(z)?"["+T(z,y)+"]":"[ "+z.join(", ")+" ]"}if(function(e){return"[object Error]"===E(e)}(t)){var B=I(t,_);return 0===B.length?"["+String(t)+"]":"{ ["+String(t)+"] "+B.join(", ")+" }"}if("object"==typeof t&&s){if(g&&"function"==typeof t[g])return t[g]();if("function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{u.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var H=[];return a.call(t,(function(e,n){H.push(_(n,t,!0)+" => "+_(e,t))})),M("Map",i.call(t),H,y)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var V=[];return l.call(t,(function(e){V.push(_(e,t))})),M("Set",u.call(t),V,y)}if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return D("WeakMap");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return D("WeakSet");if(function(e){return"[object Number]"===E(e)}(t))return P(_(Number(t)));if(function(e){return"[object BigInt]"===E(e)}(t))return P(_(m.call(t)));if(function(e){return"[object Boolean]"===E(e)}(t))return P(p.call(t));if(function(e){return"[object String]"===E(e)}(t))return P(_(String(t)));if(!function(e){return"[object Date]"===E(e)}(t)&&!function(e){return"[object RegExp]"===E(e)}(t)){var K=I(t,_);return 0===K.length?"{}":y?"{"+T(K,y)+"}":"{ "+K.join(", ")+" }"}return String(t)};var _=Object.prototype.hasOwnProperty||function(e){return e in this};function S(e,t){return _.call(e,t)}function E(e){return b.call(e)}function x(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n5&&(h=arguments[5]);for(var v=p,m=0;m0&&(j=u(O)),j){var w=l(c(O,"length"));v=e(t,O,w,v,b-1)}else{if(v>=o)throw new r("index too large");a(t,d(v),O),v+=1}}m+=1}return v}},function(e,t,n){"use strict";var r=n(58),o=n(144),i=r("%Reflect.apply%",!0)||o("%Function.prototype.apply%");e.exports=function(e,t){var n=arguments.length>2?arguments[2]:[];return i(e,t,n)}},function(e,t,n){"use strict";var r=n(58)("%TypeError%"),o=n(345),i=n(132),a=n(93);e.exports=function(e,t,n){if("Object"!==a(e))throw new r("Assertion failed: Type(O) is not Object");if(!i(t))throw new r("Assertion failed: IsPropertyKey(P) is not true");var c=o(e,t,n);if(!c)throw new r("unable to create data property");return c}},function(e,t,n){"use strict";var r=n(58)("%TypeError%"),o=n(222),i=n(223),a=n(346),c=n(224),s=n(350),u=n(132),l=n(225),d=n(93);e.exports=function(e,t,n){if("Object"!==d(e))throw new r("Assertion failed: Type(O) is not Object");if(!u(t))throw new r("Assertion failed: IsPropertyKey(P) is not true");var f=a(e,t),p=!f||s(e);return!(f&&(!f["[[Writable]]"]||!f["[[Configurable]]"])||!p)&&o(c,l,i,e,t,{"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Value]]":n,"[[Writable]]":!0})}},function(e,t,n){"use strict";var r=n(58),o=n(347),i=r("%TypeError%"),a=n(144)("Object.prototype.propertyIsEnumerable"),c=n(94),s=n(190),u=n(132),l=n(348),d=n(226),f=n(93);e.exports=function(e,t){if("Object"!==f(e))throw new i("Assertion failed: O must be an Object");if(!u(t))throw new i("Assertion failed: P must be a Property Key");if(c(e,t)){if(!o){var n=s(e)&&"length"===t,r=l(e)&&"lastIndex"===t;return{"[[Configurable]]":!(n||r),"[[Enumerable]]":a(e,t),"[[Value]]":e[t],"[[Writable]]":!0}}return d(o(e,t))}}},function(e,t,n){"use strict";var r=n(58)("%Object.getOwnPropertyDescriptor%");if(r)try{r([],"length")}catch(e){r=null}e.exports=r},function(e,t,n){"use strict";var r=n(58)("%Symbol.match%",!0),o=n(349),i=n(227);e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(r){var t=e[r];if(void 0!==t)return i(t)}return o(e)}},function(e,t,n){"use strict";var r,o,i,a,c=n(220)()&&"symbol"==typeof Symbol.toStringTag;if(c){r=Function.call.bind(Object.prototype.hasOwnProperty),o=Function.call.bind(RegExp.prototype.exec),i={};var s=function(){throw i};a={toString:s,valueOf:s},"symbol"==typeof Symbol.toPrimitive&&(a[Symbol.toPrimitive]=s)}var u=Object.prototype.toString,l=Object.getOwnPropertyDescriptor;e.exports=c?function(e){if(!e||"object"!=typeof e)return!1;var t=l(e,"lastIndex");if(!(t&&r(t,"value")))return!1;try{o(e,a)}catch(e){return e===i}}:function(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&"[object RegExp]"===u.call(e)}},function(e,t,n){"use strict";var r=n(58)("%Object%"),o=n(231),i=r.preventExtensions,a=r.isExtensible;e.exports=i?function(e){return!o(e)&&a(e)}:function(e){return!o(e)}},function(e,t,n){"use strict";var r=n(58)("%TypeError%"),o=n(132),i=n(93);e.exports=function(e,t){if("Object"!==i(e))throw new r("Assertion failed: `O` must be an Object");if(!o(t))throw new r("Assertion failed: `P` must be a Property Key");return t in e}},function(e,t,n){"use strict";var r=n(58)("%Math%"),o=n(353),i=n(192),a=n(229),c=n(354),s=r.floor,u=r.abs;e.exports=function(e){var t=o(e);return i(t)?0:0!==t&&a(t)?c(t)*s(u(t)):t}},function(e,t,n){"use strict";e.exports=function(e){return+e}},function(e,t,n){"use strict";e.exports=function(e){return e>=0?1:-1}},function(e,t,n){"use strict";var r=n(58),o=r("%TypeError%"),i=r("%Number%"),a=r("%RegExp%"),c=r("%parseInt%"),s=n(144),u=n(356),l=n(231),d=s("String.prototype.slice"),f=u(/^0b[01]+$/i),p=u(/^0o[0-7]+$/i),b=u(/^[-+]0x[0-9a-f]+$/i),h=u(new a("["+["…","​","￾"].join("")+"]","g")),v=["\t\n\v\f\r   ᠎    ","          \u2028","\u2029\ufeff"].join(""),m=new RegExp("(^["+v+"]+)|(["+v+"]+$)","g"),y=s("String.prototype.replace"),g=n(357);e.exports=function e(t){var n=l(t)?t:g(t,i);if("symbol"==typeof n)throw new o("Cannot convert a Symbol value to a number");if("string"==typeof n){if(f(n))return e(c(d(n,2),2));if(p(n))return e(c(d(n,2),8));if(h(n)||b(n))return NaN;var r=function(e){return y(e,m,"")}(n);if(r!==n)return e(r)}return i(n)}},function(e,t,n){"use strict";var r=n(58)("RegExp.prototype.test"),o=n(188);e.exports=function(e){return o(r,e)}},function(e,t,n){"use strict";var r=n(358);e.exports=function(e){return arguments.length>1?r(e,arguments[1]):r(e)}},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,o=n(359),i=n(228),a=n(234),c=n(193),s=function(e,t){if(null==e)throw new TypeError("Cannot call method on "+e);if("string"!=typeof t||"number"!==t&&"string"!==t)throw new TypeError('hint must be "string" or "number"');var n,r,a,c="string"===t?["toString","valueOf"]:["valueOf","toString"];for(a=0;a1&&(arguments[1]===String?n="string":arguments[1]===Number&&(n="number")),r&&(Symbol.toPrimitive?t=u(e,Symbol.toPrimitive):c(e)&&(t=Symbol.prototype.valueOf)),void 0!==t){var i=t.call(e,n);if(o(i))return i;throw new TypeError("unable to convert exotic object to primitive")}return"default"===n&&(a(e)||c(e))&&(n="string"),s(e,"default"===n?"number":n)}},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";(function(t){var r=t.Symbol,o=n(235);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}}).call(this,n(131))},function(e,t,n){"use strict";var r=n(58),o=r("%String%"),i=r("%TypeError%");e.exports=function(e){if("symbol"==typeof e)throw new i("Cannot convert a Symbol value to a string");return o(e)}},function(e,t,n){"use strict";var r=n(58)("%Object%"),o=n(363);e.exports=function(e){return o(e),r(e)}},function(e,t,n){"use strict";e.exports=n(364)},function(e,t,n){"use strict";var r=n(58)("%TypeError%");e.exports=function(e,t){if(null==e)throw new r(t||"Cannot call method on "+e);return e}},function(e,t,n){"use strict";var r=n(103),o=n(236);e.exports=function(){var e=o();return r(Array.prototype,{flat:e},{flat:function(){return Array.prototype.flat!==e}}),e}},function(e,t,n){"use strict";(function(t){var r=n(103),o=n(193),i="__ global cache key __";"function"==typeof Symbol&&o(Symbol("foo"))&&"function"==typeof Symbol.for&&(i=Symbol.for(i));var a=function(){return!0},c=function(){if(!t[i]){var e={};e[i]={};var n={};n[i]=a,r(t,e,n)}return t[i]},s=c(),u=function(e){return o(e)?Symbol.prototype.valueOf.call(e):typeof e+" | "+String(e)},l=function(e){if(!function(e){return null===e||"object"!=typeof e&&"function"!=typeof e}(e))throw new TypeError("key must not be an object")},d={clear:function(){delete t[i],s=c()},delete:function(e){return l(e),delete s[u(e)],!d.has(e)},get:function(e){return l(e),s[u(e)]},has:function(e){return l(e),u(e)in s},set:function(e,t){l(e);var n=u(e),o={};o[n]=t;var i={};return i[n]=a,r(s,o,i),d.has(e)},setIfMissingThenGet:function(e,t){if(d.has(e))return d.get(e);var n=t();return d.set(e,n),n}};e.exports=d}).call(this,n(131))},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.GLOBAL_CACHE_KEY="reactWithStylesInterfaceCSS",t.MAX_SPECIFICITY=20},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(e.length>0?String(e)+"__":"")+String(t)}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){for(var t=[],n=!1,r={},o=0;o>",baseInvalidMessage:"Invalid "};function r(e){if("function"!=typeof e)throw new Error(n.invalidPropValidator);var t=e.bind(null,!1,null);return t.isRequired=e.bind(null,!0,null),t.withPredicate=function(t){if("function"!=typeof t)throw new Error(n.invalidPredicate);var r=e.bind(null,!1,t);return r.isRequired=e.bind(null,!0,t),r},t}function o(e,t,r){return new Error("The prop `"+e+"` "+n.requiredCore+" in `"+t+"`, but its value is `"+r+"`.")}e.exports={constructPropValidatorVariations:r,createMomentChecker:function(e,t,i,a){return r((function(r,c,s,u,l,d,f){var p=s[u],b=typeof p,h=function(e,t,n,r){var i=void 0===r,a=null===r;if(e){if(i)return o(n,t,"undefined");if(a)return o(n,t,"null")}return i||a?null:-1}(r,l=l||n.anonymousMessage,f=f||u,p);if(-1!==h)return h;if(t&&!t(p))return new Error(n.invalidTypeCore+": `"+u+"` of type `"+b+"` supplied to `"+l+"`, expected `"+e+"`.");if(!i(p))return new Error(n.baseInvalidMessage+d+" `"+u+"` of type `"+b+"` supplied to `"+l+"`, expected `"+a+"`.");if(c&&!c(p)){var v=c.name||n.anonymousMessage;return new Error(n.baseInvalidMessage+d+" `"+u+"` of type `"+b+"` supplied to `"+l+"`. "+n.predicateFailureCore+" `"+v+"`.")}return null}))},messages:n}},function(e,t,n){"use strict";function r(){return null}function o(){return r}r.isRequired=r,e.exports={and:o,between:o,booleanSome:o,childrenHavePropXorChildren:o,childrenOf:o,childrenOfType:o,childrenSequenceOf:o,componentWithName:o,disallowedIf:o,elementType:o,empty:o,explicitNull:o,forbidExtraProps:Object,integer:o,keysOf:o,mutuallyExclusiveProps:o,mutuallyExclusiveTrueProps:o,nChildren:o,nonNegativeInteger:r,nonNegativeNumber:o,numericString:o,object:o,or:o,predicate:o,range:o,ref:o,requiredBy:o,restrictedProp:o,sequenceOf:o,shape:o,stringEndsWith:o,stringStartsWith:o,uniqueArray:o,uniqueArrayOf:o,valuesOf:o,withShape:o}},function(e,t,n){"use strict";e.exports=n(376)},function(e,t,n){"use strict";var r=n(377),o=n(247),i=o(o({},r),{SameValueNonNumber:function(e,t){if("number"==typeof e||typeof e!=typeof t)throw new TypeError("SameValueNonNumber requires two non-number values of the same type.");return this.SameValue(e,t)}});e.exports=i},function(e,t,n){"use strict";var r=n(94),o=n(378),i=n(187),a=n(195),c=a("%TypeError%"),s=a("%SyntaxError%"),u=a("%Array%"),l=a("%String%"),d=a("%Object%"),f=a("%Number%"),p=a("%Symbol%",!0),b=a("%RegExp%"),h=!!p,v=n(244),m=n(245),y=n(246),g=f.MAX_SAFE_INTEGER||Math.pow(2,53)-1,O=n(247),j=n(248),w=n(249),k=n(380),_=parseInt,S=n(120),E=S.call(Function.call,u.prototype.slice),x=S.call(Function.call,l.prototype.slice),C=S.call(Function.call,b.prototype.test,/^0b[01]+$/i),P=S.call(Function.call,b.prototype.test,/^0o[0-7]+$/i),D=S.call(Function.call,b.prototype.exec),M=new b("["+["…","​","￾"].join("")+"]","g"),T=S.call(Function.call,b.prototype.test,M),I=S.call(Function.call,b.prototype.test,/^[-+]0x[0-9a-f]+$/i),R=S.call(Function.call,l.prototype.charCodeAt),N=S.call(Function.call,Object.prototype.toString),A=S.call(Function.call,a("%NumberPrototype%").valueOf),L=S.call(Function.call,a("%BooleanPrototype%").valueOf),F=S.call(Function.call,a("%StringPrototype%").valueOf),z=S.call(Function.call,a("%DatePrototype%").valueOf),B=Math.floor,H=Math.abs,V=Object.create,K=d.getOwnPropertyDescriptor,W=d.isExtensible,U=d.defineProperty,G=["\t\n\v\f\r   ᠎    ","          \u2028","\u2029\ufeff"].join(""),$=new RegExp("(^["+G+"]+)|(["+G+"]+$)","g"),q=S.call(Function.call,l.prototype.replace),Y=n(381),Z=n(383),X=O(O({},Y),{Call:function(e,t){var n=arguments.length>2?arguments[2]:[];if(!this.IsCallable(e))throw new c(e+" is not a function");return e.apply(t,n)},ToPrimitive:o,ToNumber:function(e){var t=k(e)?e:o(e,f);if("symbol"==typeof t)throw new c("Cannot convert a Symbol value to a number");if("string"==typeof t){if(C(t))return this.ToNumber(_(x(t,2),2));if(P(t))return this.ToNumber(_(x(t,2),8));if(T(t)||I(t))return NaN;var n=function(e){return q(e,$,"")}(t);if(n!==t)return this.ToNumber(n)}return f(t)},ToInt16:function(e){var t=this.ToUint16(e);return t>=32768?t-65536:t},ToInt8:function(e){var t=this.ToUint8(e);return t>=128?t-256:t},ToUint8:function(e){var t=this.ToNumber(e);if(m(t)||0===t||!y(t))return 0;var n=j(t)*B(H(t));return w(n,256)},ToUint8Clamp:function(e){var t=this.ToNumber(e);if(m(t)||t<=0)return 0;if(t>=255)return 255;var n=B(e);return n+.5g?g:t},CanonicalNumericIndexString:function(e){if("[object String]"!==N(e))throw new c("must be a string");if("-0"===e)return-0;var t=this.ToNumber(e);return this.SameValue(this.ToString(t),e)?t:void 0},RequireObjectCoercible:Y.CheckObjectCoercible,IsArray:u.isArray||function(e){return"[object Array]"===N(e)},IsConstructor:function(e){return"function"==typeof e&&!!e.prototype},IsExtensible:Object.preventExtensions?function(e){return!k(e)&&W(e)}:function(e){return!0},IsInteger:function(e){if("number"!=typeof e||m(e)||!y(e))return!1;var t=H(e);return B(t)===t},IsPropertyKey:function(e){return"string"==typeof e||"symbol"==typeof e},IsRegExp:function(e){if(!e||"object"!=typeof e)return!1;if(h){var t=e[p.match];if(void 0!==t)return Y.ToBoolean(t)}return Z(e)},SameValueZero:function(e,t){return e===t||m(e)&&m(t)},GetV:function(e,t){if(!this.IsPropertyKey(t))throw new c("Assertion failed: IsPropertyKey(P) is not true");return this.ToObject(e)[t]},GetMethod:function(e,t){if(!this.IsPropertyKey(t))throw new c("Assertion failed: IsPropertyKey(P) is not true");var n=this.GetV(e,t);if(null!=n){if(!this.IsCallable(n))throw new c(t+"is not a function");return n}},Get:function(e,t){if("Object"!==this.Type(e))throw new c("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new c("Assertion failed: IsPropertyKey(P) is not true");return e[t]},Type:function(e){return"symbol"==typeof e?"Symbol":Y.Type(e)},SpeciesConstructor:function(e,t){if("Object"!==this.Type(e))throw new c("Assertion failed: Type(O) is not Object");var n=e.constructor;if(void 0===n)return t;if("Object"!==this.Type(n))throw new c("O.constructor is not an Object");var r=h&&p.species?n[p.species]:void 0;if(null==r)return t;if(this.IsConstructor(r))return r;throw new c("no constructor found")},CompletePropertyDescriptor:function(e){return v(this,"Property Descriptor","Desc",e),this.IsGenericDescriptor(e)||this.IsDataDescriptor(e)?(r(e,"[[Value]]")||(e["[[Value]]"]=void 0),r(e,"[[Writable]]")||(e["[[Writable]]"]=!1)):(r(e,"[[Get]]")||(e["[[Get]]"]=void 0),r(e,"[[Set]]")||(e["[[Set]]"]=void 0)),r(e,"[[Enumerable]]")||(e["[[Enumerable]]"]=!1),r(e,"[[Configurable]]")||(e["[[Configurable]]"]=!1),e},Set:function(e,t,n,r){if("Object"!==this.Type(e))throw new c("O must be an Object");if(!this.IsPropertyKey(t))throw new c("P must be a Property Key");if("Boolean"!==this.Type(r))throw new c("Throw must be a Boolean");if(r)return e[t]=n,!0;try{e[t]=n}catch(e){return!1}},HasOwnProperty:function(e,t){if("Object"!==this.Type(e))throw new c("O must be an Object");if(!this.IsPropertyKey(t))throw new c("P must be a Property Key");return r(e,t)},HasProperty:function(e,t){if("Object"!==this.Type(e))throw new c("O must be an Object");if(!this.IsPropertyKey(t))throw new c("P must be a Property Key");return t in e},IsConcatSpreadable:function(e){if("Object"!==this.Type(e))return!1;if(h&&"symbol"==typeof p.isConcatSpreadable){var t=this.Get(e,Symbol.isConcatSpreadable);if(void 0!==t)return this.ToBoolean(t)}return this.IsArray(e)},Invoke:function(e,t){if(!this.IsPropertyKey(t))throw new c("P must be a Property Key");var n=E(arguments,2),r=this.GetV(e,t);return this.Call(r,e,n)},GetIterator:function(e,t){if(!h)throw new SyntaxError("ES.GetIterator depends on native iterator support.");var n=t;arguments.length<2&&(n=this.GetMethod(e,p.iterator));var r=this.Call(n,e);if("Object"!==this.Type(r))throw new c("iterator must return an object");return r},IteratorNext:function(e,t){var n=this.Invoke(e,"next",arguments.length<2?[]:[t]);if("Object"!==this.Type(n))throw new c("iterator next must return an object");return n},IteratorComplete:function(e){if("Object"!==this.Type(e))throw new c("Assertion failed: Type(iterResult) is not Object");return this.ToBoolean(this.Get(e,"done"))},IteratorValue:function(e){if("Object"!==this.Type(e))throw new c("Assertion failed: Type(iterResult) is not Object");return this.Get(e,"value")},IteratorStep:function(e){var t=this.IteratorNext(e);return!0!==this.IteratorComplete(t)&&t},IteratorClose:function(e,t){if("Object"!==this.Type(e))throw new c("Assertion failed: Type(iterator) is not Object");if(!this.IsCallable(t))throw new c("Assertion failed: completion is not a thunk for a Completion Record");var n,r=t,o=this.GetMethod(e,"return");if(void 0===o)return r();try{var i=this.Call(o,e,[])}catch(e){throw n=r(),r=null,e}if(n=r(),r=null,"Object"!==this.Type(i))throw new c("iterator .return must return an object");return n},CreateIterResultObject:function(e,t){if("Boolean"!==this.Type(t))throw new c("Assertion failed: Type(done) is not Boolean");return{value:e,done:t}},RegExpExec:function(e,t){if("Object"!==this.Type(e))throw new c("R must be an Object");if("String"!==this.Type(t))throw new c("S must be a String");var n=this.Get(e,"exec");if(this.IsCallable(n)){var r=this.Call(n,e,[t]);if(null===r||"Object"===this.Type(r))return r;throw new c('"exec" method must return `null` or an Object')}return D(e,t)},ArraySpeciesCreate:function(e,t){if(!this.IsInteger(t)||t<0)throw new c("Assertion failed: length must be an integer >= 0");var n,r=0===t?0:t;if(this.IsArray(e)&&(n=this.Get(e,"constructor"),"Object"===this.Type(n)&&h&&p.species&&null===(n=this.Get(n,p.species))&&(n=void 0)),void 0===n)return u(r);if(!this.IsConstructor(n))throw new c("C must be a constructor");return new n(r)},CreateDataProperty:function(e,t,n){if("Object"!==this.Type(e))throw new c("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new c("Assertion failed: IsPropertyKey(P) is not true");var r=K(e,t),o=r||"function"!=typeof W||W(e);return!(!(!r||r.writable&&r.configurable)||!o)&&(U(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}),!0)},CreateDataPropertyOrThrow:function(e,t,n){if("Object"!==this.Type(e))throw new c("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new c("Assertion failed: IsPropertyKey(P) is not true");var r=this.CreateDataProperty(e,t,n);if(!r)throw new c("unable to create data property");return r},ObjectCreate:function(e,t){if(null!==e&&"Object"!==this.Type(e))throw new c("Assertion failed: proto must be null or an object");var n=arguments.length<2?[]:t;if(n.length>0)throw new s("es-abstract does not yet support internal slots");if(null===e&&!V)throw new s("native Object.create support is required to create null objects");return V(e)},AdvanceStringIndex:function(e,t,n){if("String"!==this.Type(e))throw new c("S must be a String");if(!this.IsInteger(t)||t<0||t>g)throw new c("Assertion failed: length must be an integer >= 0 and <= 2**53");if("Boolean"!==this.Type(n))throw new c("Assertion failed: unicode must be a Boolean");if(!n)return t+1;if(t+1>=e.length)return t+1;var r=R(e,t);if(r<55296||r>56319)return t+1;var o=R(e,t+1);return o<56320||o>57343?t+1:t+2},CreateMethodProperty:function(e,t,n){if("Object"!==this.Type(e))throw new c("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new c("Assertion failed: IsPropertyKey(P) is not true");return!!U(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0})},DefinePropertyOrThrow:function(e,t,n){if("Object"!==this.Type(e))throw new c("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new c("Assertion failed: IsPropertyKey(P) is not true");return!!U(e,t,n)},DeletePropertyOrThrow:function(e,t){if("Object"!==this.Type(e))throw new c("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new c("Assertion failed: IsPropertyKey(P) is not true");var n=delete e[t];if(!n)throw new TypeError("Attempt to delete property failed.");return n},EnumerableOwnNames:function(e){if("Object"!==this.Type(e))throw new c("Assertion failed: Type(O) is not Object");return i(e)},thisNumberValue:function(e){return"Number"===this.Type(e)?e:A(e)},thisBooleanValue:function(e){return"Boolean"===this.Type(e)?e:L(e)},thisStringValue:function(e){return"String"===this.Type(e)?e:F(e)},thisTimeValue:function(e){return z(e)}});delete X.CheckObjectCoercible,e.exports=X},function(e,t,n){"use strict";e.exports=n(379)},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,o=n(243),i=n(194),a=n(234),c=n(193),s=function(e,t){if(null==e)throw new TypeError("Cannot call method on "+e);if("string"!=typeof t||"number"!==t&&"string"!==t)throw new TypeError('hint must be "string" or "number"');var n,r,a,c="string"===t?["toString","valueOf"]:["valueOf","toString"];for(a=0;a1&&(arguments[1]===String?n="string":arguments[1]===Number&&(n="number")),r&&(Symbol.toPrimitive?t=u(e,Symbol.toPrimitive):c(e)&&(t=Symbol.prototype.valueOf)),void 0!==t){var i=t.call(e,n);if(o(i))return i;throw new TypeError("unable to convert exotic object to primitive")}return"default"===n&&(a(e)||c(e))&&(n="string"),s(e,"default"===n?"number":n)}},function(e,t){e.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},function(e,t,n){"use strict";var r=n(195),o=r("%Object%"),i=r("%TypeError%"),a=r("%String%"),c=n(244),s=n(245),u=n(246),l=n(248),d=n(249),f=n(194),p=n(382),b=n(94),h={ToPrimitive:p,ToBoolean:function(e){return!!e},ToNumber:function(e){return+e},ToInteger:function(e){var t=this.ToNumber(e);return s(t)?0:0!==t&&u(t)?l(t)*Math.floor(Math.abs(t)):t},ToInt32:function(e){return this.ToNumber(e)>>0},ToUint32:function(e){return this.ToNumber(e)>>>0},ToUint16:function(e){var t=this.ToNumber(e);if(s(t)||0===t||!u(t))return 0;var n=l(t)*Math.floor(Math.abs(t));return d(n,65536)},ToString:function(e){return a(e)},ToObject:function(e){return this.CheckObjectCoercible(e),o(e)},CheckObjectCoercible:function(e,t){if(null==e)throw new i(t||"Cannot call method on "+e);return e},IsCallable:f,SameValue:function(e,t){return e===t?0!==e||1/e==1/t:s(e)&&s(t)},Type:function(e){return null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"==typeof e?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":void 0},IsPropertyDescriptor:function(e){if("Object"!==this.Type(e))return!1;var t={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var n in e)if(b(e,n)&&!t[n])return!1;var r=b(e,"[[Value]]"),o=b(e,"[[Get]]")||b(e,"[[Set]]");if(r&&o)throw new i("Property Descriptors may not be both accessor and data descriptors");return!0},IsAccessorDescriptor:function(e){return void 0!==e&&(c(this,"Property Descriptor","Desc",e),!(!b(e,"[[Get]]")&&!b(e,"[[Set]]")))},IsDataDescriptor:function(e){return void 0!==e&&(c(this,"Property Descriptor","Desc",e),!(!b(e,"[[Value]]")&&!b(e,"[[Writable]]")))},IsGenericDescriptor:function(e){return void 0!==e&&(c(this,"Property Descriptor","Desc",e),!this.IsAccessorDescriptor(e)&&!this.IsDataDescriptor(e))},FromPropertyDescriptor:function(e){if(void 0===e)return e;if(c(this,"Property Descriptor","Desc",e),this.IsDataDescriptor(e))return{value:e["[[Value]]"],writable:!!e["[[Writable]]"],enumerable:!!e["[[Enumerable]]"],configurable:!!e["[[Configurable]]"]};if(this.IsAccessorDescriptor(e))return{get:e["[[Get]]"],set:e["[[Set]]"],enumerable:!!e["[[Enumerable]]"],configurable:!!e["[[Configurable]]"]};throw new i("FromPropertyDescriptor must be called with a fully populated Property Descriptor")},ToPropertyDescriptor:function(e){if("Object"!==this.Type(e))throw new i("ToPropertyDescriptor requires an object");var t={};if(b(e,"enumerable")&&(t["[[Enumerable]]"]=this.ToBoolean(e.enumerable)),b(e,"configurable")&&(t["[[Configurable]]"]=this.ToBoolean(e.configurable)),b(e,"value")&&(t["[[Value]]"]=e.value),b(e,"writable")&&(t["[[Writable]]"]=this.ToBoolean(e.writable)),b(e,"get")){var n=e.get;if(void 0!==n&&!this.IsCallable(n))throw new TypeError("getter must be a function");t["[[Get]]"]=n}if(b(e,"set")){var r=e.set;if(void 0!==r&&!this.IsCallable(r))throw new i("setter must be a function");t["[[Set]]"]=r}if((b(t,"[[Get]]")||b(t,"[[Set]]"))&&(b(t,"[[Value]]")||b(t,"[[Writable]]")))throw new i("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}};e.exports=h},function(e,t,n){"use strict";var r=Object.prototype.toString,o=n(243),i=n(194),a=function(e){var t;if((t=arguments.length>1?arguments[1]:"[object Date]"===r.call(e)?String:Number)===String||t===Number){var n,a,c=t===String?["toString","valueOf"]:["valueOf","toString"];for(a=0;a1?a(e,arguments[1]):a(e)}},function(e,t,n){"use strict";var r=n(94),o=RegExp.prototype.exec,i=Object.getOwnPropertyDescriptor,a=Object.prototype.toString,c="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!c)return"[object RegExp]"===a.call(e);var t=i(e,"lastIndex");return!(!t||!r(t,"value"))&&function(e){try{var t=e.lastIndex;return e.lastIndex=0,o.call(e),!0}catch(e){return!1}finally{e.lastIndex=t}}(e)}},function(e,t,n){"use strict";var r=n(250),o=n(103);e.exports=function(){var e=r();return o(Object,{values:e},{values:function(){return Object.values!==e}}),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,i){if(!r.default.isMoment(e))return{};for(var a={},c=i?e.clone():e.clone().subtract(1,"month"),s=0;s<(i?t:t+2);s+=1){var u=[],l=c.clone(),d=l.clone().startOf("month").hour(12),f=l.clone().endOf("month").hour(12),p=d.clone();if(n)for(var b=0;b=t||n<0||v&&e-b>=l}function j(){var e=o();if(O(e))return w(e);f=setTimeout(j,function(e){var n=t-(e-p);return v?c(n,l-(e-b)):n}(e))}function w(e){return f=void 0,m&&s?y(e):(s=u=void 0,d)}function k(){var e=o(),n=O(e);if(s=arguments,u=this,p=e,n){if(void 0===f)return g(p);if(v)return clearTimeout(f),f=setTimeout(j,t),y(p)}return void 0===f&&(f=setTimeout(j,t)),d}return t=i(t)||0,r(n)&&(h=!!n.leading,l=(v="maxWait"in n)?a(i(n.maxWait)||0,t):l,m="trailing"in n?!!n.trailing:m),k.cancel=function(){void 0!==f&&clearTimeout(f),b=0,s=p=u=f=void 0},k.flush=function(){return void 0===f?d:w(o())},k}},function(e,t,n){var r=n(257);e.exports=function(){return r.Date.now()}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(130))},function(e,t,n){var r=n(196),o=n(394),i=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,s=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=c.test(e);return n||s.test(e)?u(e.slice(2),n?2:8):a.test(e)?NaN:+e}},function(e,t,n){var r=n(395),o=n(398);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},function(e,t,n){var r=n(258),o=n(396),i=n(397),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},function(e,t,n){var r=n(258),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,c=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,c),n=e[c];try{e[c]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[c]=n:delete e[c]),o}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){e.exports=n(400)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n=o&&i2&&void 0!==arguments[2]?arguments[2]:i.default.localeData().firstDayOfWeek();if(!i.default.isMoment(e)||!e.isValid())throw new TypeError("`month` must be a valid moment object");if(-1===a.WEEKDAYS.indexOf(n))throw new TypeError("`firstDayOfWeek` must be an integer between 0 and 6");for(var r=e.clone().startOf("month").hour(12),o=e.clone().endOf("month").hour(12),c=(r.day()+7-n)%7,s=(n+6-o.day())%7,u=r.clone().subtract(c,"day"),l=o.clone().add(s,"day"),d=l.diff(u,"days")+1,f=u.clone(),p=[],b=0;b=c&&b1&&void 0!==arguments[1]?arguments[1]:i.default.localeData().firstDayOfWeek(),n=e.clone().startOf("month"),r=a(n,t);return Math.ceil((r+e.daysInMonth())/7)};var r,o=n(44),i=(r=o)&&r.__esModule?r:{default:r};function a(e,t){return(e.day()-t+7)%7}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return"undefined"!=typeof document&&document.activeElement}},function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18.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=i},function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(o.Path,{d:"M13.23 15h1.9L11 4H9L5 15h1.88l1.07-3h4.18zm-1.53-4.54H8.51L10 5.6z"}));t.a=i},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(50),o=n(49),i=(n(13),n(81),n(123)),a=n(170),c=Object(o.a)({name:"ToolbarItem",compose:i.b,useState:a.a}),s=Object(r.a)({as:"button",memo:!0,useHook:c})}]); \ No newline at end of file + */Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,c=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,b=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116;function m(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case d:case f:case a:case s:case c:case b:return e;default:switch(e=e&&e.$$typeof){case l:case p:case u:return e;default:return t}}case v:case h:case i:return t}}}function y(e){return m(e)===f}t.typeOf=m,t.AsyncMode=d,t.ConcurrentMode=f,t.ContextConsumer=l,t.ContextProvider=u,t.Element=o,t.ForwardRef=p,t.Fragment=a,t.Lazy=v,t.Memo=h,t.Portal=i,t.Profiler=s,t.StrictMode=c,t.Suspense=b,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===f||e===s||e===c||e===b||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===h||e.$$typeof===u||e.$$typeof===l||e.$$typeof===p)},t.isAsyncMode=function(e){return y(e)||m(e)===d},t.isConcurrentMode=y,t.isContextConsumer=function(e){return m(e)===l},t.isContextProvider=function(e){return m(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return m(e)===p},t.isFragment=function(e){return m(e)===a},t.isLazy=function(e){return m(e)===v},t.isMemo=function(e){return m(e)===h},t.isPortal=function(e){return m(e)===i},t.isProfiler=function(e){return m(e)===s},t.isStrictMode=function(e){return m(e)===c},t.isSuspense=function(e){return m(e)===b}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.CHANNEL="__direction__",t.DIRECTIONS={LTR:"ltr",RTL:"rtl"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(28),i=(r=o)&&r.__esModule?r:{default:r};t.default=i.default.shape({getState:i.default.func,setState:i.default.func,subscribe:i.default.func})},function(e,t,n){var r=n(394),o=n(198);e.exports=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:i,maxWait:t,trailing:a})}},function(e,t,n){var r=n(198),o=n(395),i=n(397),a=Math.max,c=Math.min;e.exports=function(e,t,n){var s,u,l,d,f,p,b=0,h=!1,v=!1,m=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=s,r=u;return s=u=void 0,b=t,d=e.apply(r,n)}function g(e){return b=e,f=setTimeout(j,t),h?y(e):d}function O(e){var n=e-p;return void 0===p||n>=t||n<0||v&&e-b>=l}function j(){var e=o();if(O(e))return w(e);f=setTimeout(j,function(e){var n=t-(e-p);return v?c(n,l-(e-b)):n}(e))}function w(e){return f=void 0,m&&s?y(e):(s=u=void 0,d)}function k(){var e=o(),n=O(e);if(s=arguments,u=this,p=e,n){if(void 0===f)return g(p);if(v)return clearTimeout(f),f=setTimeout(j,t),y(p)}return void 0===f&&(f=setTimeout(j,t)),d}return t=i(t)||0,r(n)&&(h=!!n.leading,l=(v="maxWait"in n)?a(i(n.maxWait)||0,t):l,m="trailing"in n?!!n.trailing:m),k.cancel=function(){void 0!==f&&clearTimeout(f),b=0,s=p=u=f=void 0},k.flush=function(){return void 0===f?d:w(o())},k}},function(e,t,n){var r=n(258);e.exports=function(){return r.Date.now()}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(131))},function(e,t,n){var r=n(198),o=n(398),i=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,s=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=c.test(e);return n||s.test(e)?u(e.slice(2),n?2:8):a.test(e)?NaN:+e}},function(e,t,n){var r=n(399),o=n(402);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},function(e,t,n){var r=n(259),o=n(400),i=n(401),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},function(e,t,n){var r=n(259),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,c=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,c),n=e[c];try{e[c]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[c]=n:delete e[c]),o}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){e.exports=n(404)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n=o&&i2&&void 0!==arguments[2]?arguments[2]:i.default.localeData().firstDayOfWeek();if(!i.default.isMoment(e)||!e.isValid())throw new TypeError("`month` must be a valid moment object");if(-1===a.WEEKDAYS.indexOf(n))throw new TypeError("`firstDayOfWeek` must be an integer between 0 and 6");for(var r=e.clone().startOf("month").hour(12),o=e.clone().endOf("month").hour(12),c=(r.day()+7-n)%7,s=(n+6-o.day())%7,u=r.clone().subtract(c,"day"),l=o.clone().add(s,"day"),d=l.diff(u,"days")+1,f=u.clone(),p=[],b=0;b=c&&b1&&void 0!==arguments[1]?arguments[1]:i.default.localeData().firstDayOfWeek(),n=e.clone().startOf("month"),r=a(n,t);return Math.ceil((r+e.daysInMonth())/7)};var r,o=n(44),i=(r=o)&&r.__esModule?r:{default:r};function a(e,t){return(e.day()-t+7)%7}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return"undefined"!=typeof document&&document.activeElement}},function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18.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=i},function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(o.Path,{d:"M13.23 15h1.9L11 4H9L5 15h1.88l1.07-3h4.18zm-1.53-4.54H8.51L10 5.6z"}));t.a=i},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(51),o=n(50),i=(n(13),n(81),n(123)),a=n(173),c=Object(o.a)({name:"ToolbarItem",compose:i.b,useState:a.a}),s=Object(r.a)({as:"button",memo:!0,useHook:c})}]); \ No newline at end of file diff --git a/wp-includes/js/dist/compose.js b/wp-includes/js/dist/compose.js index 326cbdd1f6..c92da55439 100644 --- a/wp-includes/js/dist/compose.js +++ b/wp-includes/js/dist/compose.js @@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["compose"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 459); +/******/ return __webpack_require__(__webpack_require__.s = 463); /******/ }) /************************************************************************/ /******/ ({ @@ -156,21 +156,6 @@ function _slicedToArray(arr, i) { /***/ }), -/***/ 15: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _assertThisInitialized; }); -function _assertThisInitialized(self) { - if (self === void 0) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } - - return self; -} - -/***/ }), - /***/ 152: /***/ (function(module, exports, __webpack_require__) { @@ -186,21 +171,79 @@ var e=__webpack_require__(13),n={display:"block",opacity:0,position:"absolute",t /***/ }), -/***/ 17: +/***/ 154: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _getPrototypeOf; }); -function _getPrototypeOf(o) { - _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { - return o.__proto__ || Object.getPrototypeOf(o); +/* unused harmony export useCallback */ +/* unused harmony export useCallbackOne */ +/* unused harmony export useMemo */ +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return useMemoOne; }); +/* 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__); + + +function areInputsEqual(newInputs, lastInputs) { + if (newInputs.length !== lastInputs.length) { + return false; + } + + for (var i = 0; i < newInputs.length; i++) { + if (newInputs[i] !== lastInputs[i]) { + return false; + } + } + + return true; +} + +function useMemoOne(getResult, inputs) { + var initial = Object(react__WEBPACK_IMPORTED_MODULE_0__["useState"])(function () { + return { + inputs: inputs, + result: getResult() + }; + })[0]; + var committed = Object(react__WEBPACK_IMPORTED_MODULE_0__["useRef"])(initial); + var isInputMatch = Boolean(inputs && committed.current.inputs && areInputsEqual(inputs, committed.current.inputs)); + var cache = isInputMatch ? committed.current : { + inputs: inputs, + result: getResult() }; - return _getPrototypeOf(o); + Object(react__WEBPACK_IMPORTED_MODULE_0__["useEffect"])(function () { + committed.current = cache; + }, [cache]); + return cache.result; +} +function useCallbackOne(callback, inputs) { + return useMemoOne(function () { + return callback; + }, inputs); +} +var useMemo = useMemoOne; +var useCallback = useCallbackOne; + + + + +/***/ }), + +/***/ 16: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _assertThisInitialized; }); +function _assertThisInitialized(self) { + if (self === void 0) { + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + } + + return self; } /***/ }), -/***/ 18: +/***/ 17: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -237,6 +280,20 @@ function _toConsumableArray(arr) { /***/ }), +/***/ 19: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _getPrototypeOf; }); +function _getPrototypeOf(o) { + _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }; + return _getPrototypeOf(o); +} + +/***/ }), + /***/ 2: /***/ (function(module, exports) { @@ -244,7 +301,20 @@ function _toConsumableArray(arr) { /***/ }), -/***/ 20: +/***/ 21: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _classCallCheck; }); +function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError("Cannot call a class as a function"); + } +} + +/***/ }), + +/***/ 22: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -267,20 +337,7 @@ function _createClass(Constructor, protoProps, staticProps) { /***/ }), -/***/ 21: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _classCallCheck; }); -function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } -} - -/***/ }), - -/***/ 22: +/***/ 23: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -316,13 +373,13 @@ function _inherits(subClass, superClass) { /***/ }), -/***/ 23: +/***/ 24: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _possibleConstructorReturn; }); /* harmony import */ var _helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(40); -/* harmony import */ var _assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(15); +/* harmony import */ var _assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(16); function _possibleConstructorReturn(self, call) { @@ -352,7 +409,7 @@ function _arrayLikeToArray(arr, len) { /***/ }), -/***/ 285: +/***/ 287: /***/ (function(module, exports, __webpack_require__) { /*! @@ -1326,7 +1383,7 @@ function getAttributeValue(suffix, element) { /***/ }), -/***/ 286: +/***/ 288: /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_RESULT__;/*global define:false */ @@ -2466,7 +2523,7 @@ function _typeof(obj) { /***/ }), -/***/ 425: +/***/ 429: /***/ (function(module, exports) { /** @@ -2519,7 +2576,7 @@ function _typeof(obj) { /***/ }), -/***/ 459: +/***/ 463: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -2546,6 +2603,7 @@ __webpack_require__.d(__webpack_exports__, "useViewportMatch", function() { retu __webpack_require__.d(__webpack_exports__, "useResizeObserver", function() { return /* reexport */ use_resize_observer; }); __webpack_require__.d(__webpack_exports__, "useAsyncList", function() { return /* reexport */ use_async_list; }); __webpack_require__.d(__webpack_exports__, "useWarnOnChange", function() { return /* reexport */ use_warn_on_change; }); +__webpack_require__.d(__webpack_exports__, "useDebounce", function() { return /* reexport */ useDebounce; }); // EXTERNAL MODULE: external {"this":"lodash"} var external_this_lodash_ = __webpack_require__(2); @@ -2632,16 +2690,16 @@ var if_condition_ifCondition = function ifCondition(predicate) { var classCallCheck = __webpack_require__(21); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js -var createClass = __webpack_require__(20); +var createClass = __webpack_require__(22); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules -var inherits = __webpack_require__(22); +var inherits = __webpack_require__(23); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js -var possibleConstructorReturn = __webpack_require__(23); +var possibleConstructorReturn = __webpack_require__(24); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js -var getPrototypeOf = __webpack_require__(17); +var getPrototypeOf = __webpack_require__(19); // EXTERNAL MODULE: external {"this":["wp","isShallowEqual"]} var external_this_wp_isShallowEqual_ = __webpack_require__(64); @@ -2737,7 +2795,7 @@ var pure = create_higher_order_component(function (Wrapped) { var esm_extends = __webpack_require__(8); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js -var assertThisInitialized = __webpack_require__(15); +var assertThisInitialized = __webpack_require__(16); // CONCATENATED MODULE: ./node_modules/@wordpress/compose/build-module/higher-order/with-global-events/listener.js @@ -3172,7 +3230,7 @@ function withState() { var slicedToArray = __webpack_require__(12); // EXTERNAL MODULE: ./node_modules/clipboard/dist/clipboard.js -var dist_clipboard = __webpack_require__(285); +var dist_clipboard = __webpack_require__(287); var clipboard_default = /*#__PURE__*/__webpack_require__.n(dist_clipboard); // CONCATENATED MODULE: ./node_modules/@wordpress/compose/build-module/hooks/use-copy-on-click/index.js @@ -3316,11 +3374,11 @@ function useDragging(_ref) { } // EXTERNAL MODULE: ./node_modules/mousetrap/mousetrap.js -var mousetrap_mousetrap = __webpack_require__(286); +var mousetrap_mousetrap = __webpack_require__(288); var mousetrap_default = /*#__PURE__*/__webpack_require__.n(mousetrap_mousetrap); // EXTERNAL MODULE: ./node_modules/mousetrap/plugins/global-bind/mousetrap-global-bind.js -var mousetrap_global_bind = __webpack_require__(425); +var mousetrap_global_bind = __webpack_require__(429); // CONCATENATED MODULE: ./node_modules/@wordpress/compose/build-module/hooks/use-keyboard-shortcut/index.js /** @@ -3642,7 +3700,7 @@ var dist_default = /*#__PURE__*/__webpack_require__.n(dist); /* harmony default export */ var use_resize_observer = (dist_default.a); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules -var toConsumableArray = __webpack_require__(18); +var toConsumableArray = __webpack_require__(17); // EXTERNAL MODULE: external {"this":["wp","priorityQueue"]} var external_this_wp_priorityQueue_ = __webpack_require__(153); @@ -3791,6 +3849,45 @@ function useWarnOnChange(object) { /* harmony default export */ var use_warn_on_change = (useWarnOnChange); +// EXTERNAL MODULE: ./node_modules/use-memo-one/dist/use-memo-one.esm.js +var use_memo_one_esm = __webpack_require__(154); + +// CONCATENATED MODULE: ./node_modules/@wordpress/compose/build-module/hooks/use-debounce/index.js +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + +/** + * Debounces a function with Lodash's `debounce`. A new debounced function will + * be returned and any scheduled calls cancelled if any of the arguments change, + * including the function to debounce, so please wrap functions created on + * render in components in `useCallback`. + * + * @param {...any} args Arguments passed to Lodash's `debounce`. + */ + +function useDebounce() { + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + var debounced = Object(use_memo_one_esm["a" /* useMemoOne */])(function () { + return external_this_lodash_["debounce"].apply(void 0, args); + }, args); + Object(external_this_wp_element_["useEffect"])(function () { + return function () { + return debounced.cancel(); + }; + }, [debounced]); + return debounced; +} + // CONCATENATED MODULE: ./node_modules/@wordpress/compose/build-module/index.js // Utils // Compose helper (aliased flowRight from Lodash) @@ -3817,6 +3914,7 @@ function useWarnOnChange(object) { + /***/ }), /***/ 64: diff --git a/wp-includes/js/dist/compose.min.js b/wp-includes/js/dist/compose.min.js index 9d5e514de4..81dea5044a 100644 --- a/wp-includes/js/dist/compose.min.js +++ b/wp-includes/js/dist/compose.min.js @@ -1,9 +1,9 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.compose=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=459)}({0:function(t,e){!function(){t.exports=this.wp.element}()},12:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(38);var o=n(30),i=n(39);function u(t,e){return Object(r.a)(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,o=!1,i=void 0;try{for(var u,c=t[Symbol.iterator]();!(r=(u=c.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}(t,e)||Object(o.a)(t,e)||Object(i.a)()}},13:function(t,e){!function(){t.exports=this.React}()},15:function(t,e,n){"use strict";function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.d(e,"a",(function(){return r}))},152:function(t,e,n){var r=n(13),o={display:"block",opacity:0,position:"absolute",top:0,left:0,height:"100%",width:"100%",overflow:"hidden",pointerEvents:"none",zIndex:-1},i=function(t){var e=t.onResize,n=r.useRef();return function(t,e){var n=function(){return t.current&&t.current.contentDocument&&t.current.contentDocument.defaultView};function o(){e();var t=n();t&&t.addEventListener("resize",e)}r.useEffect((function(){return n()?o():t.current&&t.current.addEventListener&&t.current.addEventListener("load",o),function(){var t=n();t&&"function"==typeof t.removeEventListener&&t.removeEventListener("resize",e)}}),[])}(n,(function(){return e(n)})),r.createElement("iframe",{style:o,src:"about:blank",ref:n,"aria-hidden":!0,tabIndex:-1,frameBorder:0})},u=function(t){return{width:null!=t?t.offsetWidth:null,height:null!=t?t.offsetHeight:null}};t.exports=function(t){void 0===t&&(t=u);var e=r.useState(t(null)),n=e[0],o=e[1],c=r.useCallback((function(e){return o(t(e.current))}),[t]);return[r.useMemo((function(){return r.createElement(i,{onResize:c})}),[c]),n]}},153:function(t,e){!function(){t.exports=this.wp.priorityQueue}()},17:function(t,e,n){"use strict";function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return r}))},18:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(27);var o=n(37),i=n(30);function u(t){return function(t){if(Array.isArray(t))return Object(r.a)(t)}(t)||Object(o.a)(t)||Object(i.a)(t)||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(t,e){!function(){t.exports=this.lodash}()},20:function(t,e,n){"use strict";function r(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var t=this,e="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=o()(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=o()(this.target),this.copyText()}},{key:"copyText",value:function(){var t=void 0;try{t=document.execCommand(this.action)}catch(e){t=!1}this.handleResult(t)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==(void 0===t?"undefined":i(t))||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}]),t}(),a=n(1),f=n.n(a),s=n(2),l=n.n(s),d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p=function(){function t(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===d(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=l()(t,"click",(function(t){return e.onClick(t)}))}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new c({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){return y("action",t)}},{key:"defaultTarget",value:function(t){var e=y("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return y("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"==typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach((function(t){n=n&&!!document.queryCommandSupported(t)})),n}}]),e}(f.a);function y(t,e){var n="data-clipboard-"+t;if(e.hasAttribute(n))return e.getAttribute(n)}e.default=h}]).default},t.exports=r()},286:function(t,e,n){var r;!function(o,i,u){if(o){for(var c,a={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},f={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},s={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},l={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},d=1;d<20;++d)a[111+d]="f"+d;for(d=0;d<=9;++d)a[d+96]=d.toString();m.prototype.bind=function(t,e,n){return t=t instanceof Array?t:[t],this._bindMultiple.call(this,t,e,n),this},m.prototype.unbind=function(t,e){return this.bind.call(this,t,(function(){}),e)},m.prototype.trigger=function(t,e){return this._directMap[t+":"+e]&&this._directMap[t+":"+e]({},t),this},m.prototype.reset=function(){return this._callbacks={},this._directMap={},this},m.prototype.stopCallback=function(t,e){if((" "+e.className+" ").indexOf(" mousetrap ")>-1)return!1;if(function t(e,n){return null!==e&&e!==i&&(e===n||t(e.parentNode,n))}(e,this.target))return!1;if("composedPath"in t&&"function"==typeof t.composedPath){var n=t.composedPath()[0];n!==t.target&&(e=n)}return"INPUT"==e.tagName||"SELECT"==e.tagName||"TEXTAREA"==e.tagName||e.isContentEditable},m.prototype.handleKey=function(){var t=this;return t._handleKey.apply(t,arguments)},m.addKeycodes=function(t){for(var e in t)t.hasOwnProperty(e)&&(a[e]=t[e]);c=null},m.init=function(){var t=m(i);for(var e in t)"_"!==e.charAt(0)&&(m[e]=function(e){return function(){return t[e].apply(t,arguments)}}(e))},m.init(),o.Mousetrap=m,t.exports&&(t.exports=m),void 0===(r=function(){return m}.call(e,n,e,t))||(t.exports=r)}function p(t,e,n){t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent("on"+e,n)}function h(t){if("keypress"==t.type){var e=String.fromCharCode(t.which);return t.shiftKey||(e=e.toLowerCase()),e}return a[t.which]?a[t.which]:f[t.which]?f[t.which]:String.fromCharCode(t.which).toLowerCase()}function y(t){return"shift"==t||"ctrl"==t||"alt"==t||"meta"==t}function v(t,e,n){return n||(n=function(){if(!c)for(var t in c={},a)t>95&&t<112||a.hasOwnProperty(t)&&(c[a[t]]=t);return c}()[t]?"keydown":"keypress"),"keypress"==n&&e.length&&(n="keydown"),n}function b(t,e){var n,r,o,i=[];for(n=function(t){return"+"===t?["+"]:(t=t.replace(/\+{2}/g,"+plus")).split("+")}(t),o=0;o1?d(t,c,n,r):(u=b(t,r),e._callbacks[u.key]=e._callbacks[u.key]||[],f(u.key,u.modifiers,{type:u.action},o,t,i),e._callbacks[u.key][o?"unshift":"push"]({callback:n,modifiers:u.modifiers,action:u.action,seq:o,level:i,combo:t}))}e._handleKey=function(t,e,n){var r,o=f(t,e,n),i={},l=0,d=!1;for(r=0;r0&&void 0!==arguments[0]?arguments[0]:{};return o((function(e){return function(n){Object(s.a)(o,n);var r=T(o);function o(){var e;return Object(a.a)(this,o),(e=r.apply(this,arguments)).setState=e.setState.bind(Object(m.a)(e)),e.state=t,e}return Object(f.a)(o,[{key:"render",value:function(){return Object(u.createElement)(e,Object(b.a)({},this.props,this.state,{setState:this.setState}))}}]),o}(u.Component)}),"withState")}var C=n(12),R=n(285),A=n.n(R);function M(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4e3,r=Object(u.useRef)(),o=Object(u.useState)(!1),i=Object(C.a)(o,2),c=i[0],a=i[1];return Object(u.useEffect)((function(){var o;return r.current=new A.a(t.current,{text:function(){return"function"==typeof e?e():e}}),r.current.on("success",(function(t){var e=t.clearSelection,r=t.trigger;e(),r&&r.focus(),n&&(a(!0),clearTimeout(o),o=setTimeout((function(){return a(!1)}),n))})),function(){r.current.destroy(),clearTimeout(o)}}),[e,n,a]),c}var P="undefined"!=typeof window?u.useLayoutEffect:u.useEffect;function L(t){var e=t.onDragStart,n=t.onDragMove,r=t.onDragEnd,o=Object(u.useState)(!1),i=Object(C.a)(o,2),c=i[0],a=i[1],f=Object(u.useRef)({onDragStart:e,onDragMove:n,onDragEnd:r});P((function(){f.current.onDragStart=e,f.current.onDragMove=n,f.current.onDragEnd=r}),[e,n,r]);var s=Object(u.useCallback)((function(){var t;return f.current.onDragMove&&(t=f.current).onDragMove.apply(t,arguments)}),[]),l=Object(u.useCallback)((function(){var t;f.current.onDragEnd&&(t=f.current).onDragEnd.apply(t,arguments);document.removeEventListener("mousemove",s),document.removeEventListener("mouseup",l),a(!1)}),[]),d=Object(u.useCallback)((function(){var t;f.current.onDragStart&&(t=f.current).onDragStart.apply(t,arguments);document.addEventListener("mousemove",s),document.addEventListener("mouseup",l),a(!0)}),[]);return Object(u.useEffect)((function(){return function(){c&&(document.removeEventListener("mousemove",s),document.removeEventListener("mouseup",l))}}),[c]),{startDrag:d,endDrag:l,isDragging:c}}var D=n(286),I=n.n(D);n(425);function N(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,e=t.navigator.platform;return-1!==e.indexOf("Mac")||Object(r.includes)(["iPad","iPhone"],e)}var q=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.bindGlobal,i=void 0!==o&&o,c=n.eventName,a=void 0===c?"keydown":c,f=n.isDisabled,s=void 0!==f&&f,l=n.target,d=Object(u.useRef)(e);Object(u.useEffect)((function(){d.current=e}),[e]),Object(u.useEffect)((function(){if(!s){var e=new I.a(l?l.current:document);return Object(r.castArray)(t).forEach((function(t){var n=t.split("+"),r=new Set(n.filter((function(t){return t.length>1}))),o=r.has("alt"),u=r.has("shift");if(N()&&(1===r.size&&o||2===r.size&&o&&u))throw new Error("Cannot bind ".concat(t,". Alt and Shift+Alt modifiers are reserved for character input."));e[i?"bindGlobal":"bind"](t,(function(){return d.current.apply(d,arguments)}),a)})),function(){e.reset()}}}),[t,i,a,l,s])};function H(t){var e=Object(u.useState)(t&&window.matchMedia(t).matches),n=Object(C.a)(e,2),r=n[0],o=n[1];return Object(u.useEffect)((function(){if(t){var e=function(){return o(window.matchMedia(t).matches)};e();var n=window.matchMedia(t);return n.addListener(e),function(){n.removeListener(e)}}}),[t]),t&&r}function K(t){var e=Object(u.useRef)(void 0);return Object(u.useEffect)((function(){e.current=t}),[t]),e.current}var z="undefined"!=typeof window&&window.navigator.userAgent.indexOf("Trident")>=0?function(){return!0}:function(){return H("(prefers-reduced-motion: reduce)")},F={huge:1440,wide:1280,large:960,medium:782,small:600,mobile:480},U={">=":"min-width","<":"max-width"},W={">=":function(t,e){return e>=t},"<":function(t,e){return e1&&void 0!==arguments[1]?arguments[1]:">=",n=Object(u.useContext)(G),r=!n&&"(".concat(U[e],": ").concat(F[t],"px)"),o=H(r);return n?W[e](F[t],n):o};Q.__experimentalWidthProvider=G.Provider;var V=Q,B=n(152),X=n.n(B).a,Y=n(18),$=n(153);function J(t,e){return"reset"===e.type?e.list:"append"===e.type?[].concat(Object(Y.a)(t),[e.item]):t}var Z=function(t){var e=Object(u.useReducer)(J,[]),n=Object(C.a)(e,2),r=n[0],o=n[1];return Object(u.useEffect)((function(){var e=function(t,e){for(var n=[],r=0;r1&&void 0!==arguments[1]?arguments[1]:"Change detection",n=K(t);Object.entries(null!=n?n:[]).forEach((function(n){var r=Object(C.a)(n,2),o=r[0],i=r[1];i!==t[o]&&console.warn("".concat(e,": ").concat(o," key changed:"),i,t[o])}))}},64:function(t,e){!function(){t.exports=this.wp.isShallowEqual}()},8:function(t,e,n){"use strict";function r(){return(r=Object.assign||function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var t=this,e="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=o()(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=o()(this.target),this.copyText()}},{key:"copyText",value:function(){var t=void 0;try{t=document.execCommand(this.action)}catch(e){t=!1}this.handleResult(t)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==(void 0===t?"undefined":i(t))||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}]),t}(),a=n(1),f=n.n(a),s=n(2),l=n.n(s),d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p=function(){function t(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===d(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=l()(t,"click",(function(t){return e.onClick(t)}))}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new c({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){return y("action",t)}},{key:"defaultTarget",value:function(t){var e=y("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return y("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"==typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach((function(t){n=n&&!!document.queryCommandSupported(t)})),n}}]),e}(f.a);function y(t,e){var n="data-clipboard-"+t;if(e.hasAttribute(n))return e.getAttribute(n)}e.default=h}]).default},t.exports=r()},288:function(t,e,n){var r;!function(o,i,u){if(o){for(var c,a={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},f={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},s={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},l={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},d=1;d<20;++d)a[111+d]="f"+d;for(d=0;d<=9;++d)a[d+96]=d.toString();m.prototype.bind=function(t,e,n){return t=t instanceof Array?t:[t],this._bindMultiple.call(this,t,e,n),this},m.prototype.unbind=function(t,e){return this.bind.call(this,t,(function(){}),e)},m.prototype.trigger=function(t,e){return this._directMap[t+":"+e]&&this._directMap[t+":"+e]({},t),this},m.prototype.reset=function(){return this._callbacks={},this._directMap={},this},m.prototype.stopCallback=function(t,e){if((" "+e.className+" ").indexOf(" mousetrap ")>-1)return!1;if(function t(e,n){return null!==e&&e!==i&&(e===n||t(e.parentNode,n))}(e,this.target))return!1;if("composedPath"in t&&"function"==typeof t.composedPath){var n=t.composedPath()[0];n!==t.target&&(e=n)}return"INPUT"==e.tagName||"SELECT"==e.tagName||"TEXTAREA"==e.tagName||e.isContentEditable},m.prototype.handleKey=function(){var t=this;return t._handleKey.apply(t,arguments)},m.addKeycodes=function(t){for(var e in t)t.hasOwnProperty(e)&&(a[e]=t[e]);c=null},m.init=function(){var t=m(i);for(var e in t)"_"!==e.charAt(0)&&(m[e]=function(e){return function(){return t[e].apply(t,arguments)}}(e))},m.init(),o.Mousetrap=m,t.exports&&(t.exports=m),void 0===(r=function(){return m}.call(e,n,e,t))||(t.exports=r)}function p(t,e,n){t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent("on"+e,n)}function h(t){if("keypress"==t.type){var e=String.fromCharCode(t.which);return t.shiftKey||(e=e.toLowerCase()),e}return a[t.which]?a[t.which]:f[t.which]?f[t.which]:String.fromCharCode(t.which).toLowerCase()}function y(t){return"shift"==t||"ctrl"==t||"alt"==t||"meta"==t}function v(t,e,n){return n||(n=function(){if(!c)for(var t in c={},a)t>95&&t<112||a.hasOwnProperty(t)&&(c[a[t]]=t);return c}()[t]?"keydown":"keypress"),"keypress"==n&&e.length&&(n="keydown"),n}function b(t,e){var n,r,o,i=[];for(n=function(t){return"+"===t?["+"]:(t=t.replace(/\+{2}/g,"+plus")).split("+")}(t),o=0;o1?d(t,c,n,r):(u=b(t,r),e._callbacks[u.key]=e._callbacks[u.key]||[],f(u.key,u.modifiers,{type:u.action},o,t,i),e._callbacks[u.key][o?"unshift":"push"]({callback:n,modifiers:u.modifiers,action:u.action,seq:o,level:i,combo:t}))}e._handleKey=function(t,e,n){var r,o=f(t,e,n),i={},l=0,d=!1;for(r=0;r0&&void 0!==arguments[0]?arguments[0]:{};return o((function(e){return function(n){Object(s.a)(o,n);var r=T(o);function o(){var e;return Object(a.a)(this,o),(e=r.apply(this,arguments)).setState=e.setState.bind(Object(m.a)(e)),e.state=t,e}return Object(f.a)(o,[{key:"render",value:function(){return Object(u.createElement)(e,Object(b.a)({},this.props,this.state,{setState:this.setState}))}}]),o}(u.Component)}),"withState")}var C=n(12),R=n(287),A=n.n(R);function M(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4e3,r=Object(u.useRef)(),o=Object(u.useState)(!1),i=Object(C.a)(o,2),c=i[0],a=i[1];return Object(u.useEffect)((function(){var o;return r.current=new A.a(t.current,{text:function(){return"function"==typeof e?e():e}}),r.current.on("success",(function(t){var e=t.clearSelection,r=t.trigger;e(),r&&r.focus(),n&&(a(!0),clearTimeout(o),o=setTimeout((function(){return a(!1)}),n))})),function(){r.current.destroy(),clearTimeout(o)}}),[e,n,a]),c}var P="undefined"!=typeof window?u.useLayoutEffect:u.useEffect;function L(t){var e=t.onDragStart,n=t.onDragMove,r=t.onDragEnd,o=Object(u.useState)(!1),i=Object(C.a)(o,2),c=i[0],a=i[1],f=Object(u.useRef)({onDragStart:e,onDragMove:n,onDragEnd:r});P((function(){f.current.onDragStart=e,f.current.onDragMove=n,f.current.onDragEnd=r}),[e,n,r]);var s=Object(u.useCallback)((function(){var t;return f.current.onDragMove&&(t=f.current).onDragMove.apply(t,arguments)}),[]),l=Object(u.useCallback)((function(){var t;f.current.onDragEnd&&(t=f.current).onDragEnd.apply(t,arguments);document.removeEventListener("mousemove",s),document.removeEventListener("mouseup",l),a(!1)}),[]),d=Object(u.useCallback)((function(){var t;f.current.onDragStart&&(t=f.current).onDragStart.apply(t,arguments);document.addEventListener("mousemove",s),document.addEventListener("mouseup",l),a(!0)}),[]);return Object(u.useEffect)((function(){return function(){c&&(document.removeEventListener("mousemove",s),document.removeEventListener("mouseup",l))}}),[c]),{startDrag:d,endDrag:l,isDragging:c}}var D=n(288),I=n.n(D);n(429);function N(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,e=t.navigator.platform;return-1!==e.indexOf("Mac")||Object(r.includes)(["iPad","iPhone"],e)}var q=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.bindGlobal,i=void 0!==o&&o,c=n.eventName,a=void 0===c?"keydown":c,f=n.isDisabled,s=void 0!==f&&f,l=n.target,d=Object(u.useRef)(e);Object(u.useEffect)((function(){d.current=e}),[e]),Object(u.useEffect)((function(){if(!s){var e=new I.a(l?l.current:document);return Object(r.castArray)(t).forEach((function(t){var n=t.split("+"),r=new Set(n.filter((function(t){return t.length>1}))),o=r.has("alt"),u=r.has("shift");if(N()&&(1===r.size&&o||2===r.size&&o&&u))throw new Error("Cannot bind ".concat(t,". Alt and Shift+Alt modifiers are reserved for character input."));e[i?"bindGlobal":"bind"](t,(function(){return d.current.apply(d,arguments)}),a)})),function(){e.reset()}}}),[t,i,a,l,s])};function H(t){var e=Object(u.useState)(t&&window.matchMedia(t).matches),n=Object(C.a)(e,2),r=n[0],o=n[1];return Object(u.useEffect)((function(){if(t){var e=function(){return o(window.matchMedia(t).matches)};e();var n=window.matchMedia(t);return n.addListener(e),function(){n.removeListener(e)}}}),[t]),t&&r}function K(t){var e=Object(u.useRef)(void 0);return Object(u.useEffect)((function(){e.current=t}),[t]),e.current}var z="undefined"!=typeof window&&window.navigator.userAgent.indexOf("Trident")>=0?function(){return!0}:function(){return H("(prefers-reduced-motion: reduce)")},F={huge:1440,wide:1280,large:960,medium:782,small:600,mobile:480},U={">=":"min-width","<":"max-width"},W={">=":function(t,e){return e>=t},"<":function(t,e){return e1&&void 0!==arguments[1]?arguments[1]:">=",n=Object(u.useContext)(G),r=!n&&"(".concat(U[e],": ").concat(F[t],"px)"),o=H(r);return n?W[e](F[t],n):o};B.__experimentalWidthProvider=G.Provider;var Q=B,V=n(152),X=n.n(V).a,Y=n(17),$=n(153);function J(t,e){return"reset"===e.type?e.list:"append"===e.type?[].concat(Object(Y.a)(t),[e.item]):t}var Z=function(t){var e=Object(u.useReducer)(J,[]),n=Object(C.a)(e,2),r=n[0],o=n[1];return Object(u.useEffect)((function(){var e=function(t,e){for(var n=[],r=0;r1&&void 0!==arguments[1]?arguments[1]:"Change detection",n=K(t);Object.entries(null!=n?n:[]).forEach((function(n){var r=Object(C.a)(n,2),o=r[0],i=r[1];i!==t[o]&&console.warn("".concat(e,": ").concat(o," key changed:"),i,t[o])}))},et=n(154);function nt(){for(var t=arguments.length,e=new Array(t),n=0;n1&&void 0!==arguments[1]?arguments[1]:this;this._map.forEach((function(c,a){null!==a&&"object"===n(a)&&(c=c[1]),e.call(r,c,a,t)}))}},{key:"clear",value:function(){this._map=new Map,this._arrayTreeMap=new Map,this._objectTreeMap=new Map}},{key:"size",get:function(){return this._map.size}}])&&c(t.prototype,r),i&&c(t,i),e}();e.exports=i},11:function(e,t){!function(){e.exports=this.wp.blocks}()},12:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(38);var c=r(30),a=r(39);function i(e,t){return Object(n.a)(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,c=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){c=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(c)throw a}}return r}}(e,t)||Object(c.a)(e,t)||Object(a.a)()}},18:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(27);var c=r(37),a=r(30);function i(e){return function(e){if(Array.isArray(e))return Object(n.a)(e)}(e)||Object(c.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.")}()}},2:function(e,t){!function(){e.exports=this.lodash}()},24:function(e,t){!function(){e.exports=this.regeneratorRuntime}()},27:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,c=n[e];if(void 0===c)return r;var a=t(r[c],n);return a===r[c]?r:h(h({},r),{},Object(i.a)({},c,a))}}},j=r(24),g=r.n(j),m=r(1),w=r(31);function _(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 R(e){for(var t=1;t3&&void 0!==arguments[3]&&arguments[3];return{type:"REMOVE_ITEMS",itemIds:Object(d.castArray)(r),kind:e,name:t,invalidateCache:n}}function T(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return R(R({},k(e)),{},{query:t})}var S=g.a.mark(H),I=g.a.mark(Q),P=g.a.mark(W),A=g.a.mark(K),D=g.a.mark(z),U=g.a.mark($);function C(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 M(e){for(var t=1;t4&&void 0!==arguments[4]&&arguments[4];return"postType"===e&&(r=Object(d.castArray)(r).map((function(e){return"auto-draft"===e.status?M(M({},e),{},{title:""}):e}))),M(M({},n?T(r,n):k(r)),{},{kind:e,name:t,invalidateCache:c})}function F(e){return{type:"RECEIVE_CURRENT_THEME",currentTheme:e}}function Y(e){return{type:"RECEIVE_THEME_SUPPORTS",themeSupports:e}}function B(e,t){return{type:"RECEIVE_EMBED_PREVIEW",url:e,preview:t}}function H(e,t,r,n){var c,a,i,o,s;return g.a.wrap((function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,se(e);case 2:if(c=f.sent,a=Object(d.find)(c,{kind:e,name:t}),o=!1,a){f.next=7;break}return f.abrupt("return");case 7:return f.next=9,{type:"DELETE_ENTITY_RECORD_START",kind:e,name:t,recordId:r};case 9:return f.prev=9,s="".concat(a.baseURL,"/").concat(r),n&&(s=Object(w.addQueryArgs)(s,n)),f.next=14,Object(u.apiFetch)({path:s,method:"DELETE"});case 14:return o=f.sent,f.next=17,x(e,t,r,!0);case 17:f.next=22;break;case 19:f.prev=19,f.t0=f.catch(9),i=f.t0;case 22:return f.next=24,{type:"DELETE_ENTITY_RECORD_FINISH",kind:e,name:t,recordId:r,error:i};case 24:return f.abrupt("return",o);case 25:case"end":return f.stop()}}),S,null,[[9,19]])}function Q(e,t,r,n){var c,a,i,o,s,f,l,p,b,v=arguments;return g.a.wrap((function(y){for(;;)switch(y.prev=y.next){case 0:return c=v.length>4&&void 0!==v[4]?v[4]:{},y.next=3,Object(u.syncSelect)("core","getEntity",e,t);case 3:if(a=y.sent){y.next=6;break}throw new Error("The entity being edited (".concat(e,", ").concat(t,") does not have a loaded config."));case 6:return i=a.transientEdits,o=void 0===i?{}:i,s=a.mergedEdits,f=void 0===s?{}:s,y.next=9,Object(u.syncSelect)("core","getRawEntityRecord",e,t,r);case 9:return l=y.sent,y.next=12,Object(u.syncSelect)("core","getEditedEntityRecord",e,t,r);case 12:return p=y.sent,b={kind:e,name:t,recordId:r,edits:Object.keys(n).reduce((function(e,t){var r=l[t],c=p[t],a=f[t]?M(M({},c),n[t]):n[t];return e[t]=Object(d.isEqual)(r,a)?void 0:a,e}),{}),transientEdits:o},y.abrupt("return",M(M({type:"EDIT_ENTITY_RECORD"},b),{},{meta:{undo:!c.undoIgnore&&M(M({},b),{},{edits:Object.keys(n).reduce((function(e,t){return e[t]=p[t],e}),{})})}}));case 15:case"end":return y.stop()}}),I)}function W(){var e;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(u.syncSelect)("core","getUndoEdit");case 2:if(e=t.sent){t.next=5;break}return t.abrupt("return");case 5:return t.next=7,M(M({type:"EDIT_ENTITY_RECORD"},e),{},{meta:{isUndo:!0}});case 7:case"end":return t.stop()}}),P)}function K(){var e;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(u.syncSelect)("core","getRedoEdit");case 2:if(e=t.sent){t.next=5;break}return t.abrupt("return");case 5:return t.next=7,M(M({type:"EDIT_ENTITY_RECORD"},e),{},{meta:{isRedo:!0}});case 7:case"end":return t.stop()}}),A)}function G(){return{type:"CREATE_UNDO_LEVEL"}}function z(e,t,r){var n,c,a,o,f,l,p,b,v,y,O,h,E,j,m,w,_,R,k,x,T,S,I,P,A,U=arguments;return g.a.wrap((function(g){for(;;)switch(g.prev=g.next){case 0:return n=U.length>3&&void 0!==U[3]?U[3]:{isAutosave:!1},c=n.isAutosave,a=void 0!==c&&c,g.next=3,se(e);case 3:if(o=g.sent,f=Object(d.find)(o,{kind:e,name:t})){g.next=7;break}return g.abrupt("return");case 7:l=f.key||ne,p=r[l],b=0,v=Object.entries(r);case 10:if(!(b2&&void 0!==arguments[2]?arguments[2]:"get",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],c=Object(d.find)(ce,{kind:e,name:t}),a="root"===e?"":Object(d.upperFirst)(Object(d.camelCase)(e)),i=Object(d.upperFirst)(Object(d.camelCase)(t))+(n?"s":""),o=n&&c.plural?Object(d.upperFirst)(Object(d.camelCase)(c.plural)):i;return"".concat(r).concat(a).concat(o)};function se(e){var t,r;return g.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object(u.syncSelect)("core","getEntitiesByKind",e);case 2:if(!(t=n.sent)||0===t.length){n.next=5;break}return n.abrupt("return",t);case 5:if(r=Object(d.find)(ae,{name:e})){n.next=8;break}return n.abrupt("return",[]);case 8:return n.next=10,r.loadEntities();case 10:return t=n.sent,n.next=13,L(t);case 13:return n.abrupt("return",t);case 14:case"end":return n.stop()}}),re)}var fe=function(e){return"string"==typeof e?e.split(","):Array.isArray(e)?e:null};var de=function(e){var t=new WeakMap;return function(r){var n;return t.has(r)?n=t.get(r):(n=e(r),Object(d.isObjectLike)(r)&&t.set(r,n)),n}}((function(e){for(var t={stableKey:"",page:1,perPage:10,fields:null,include:null},r=Object.keys(e).sort(),n=0;n=c&&o0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.page,c=t.perPage,a=t.key,i=void 0===a?ne:a;return"RECEIVE_ITEMS"!==r?e:be(e||[],Object(d.map)(t.items,i),n,c)})),ye=Object(o.combineReducers)({items:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_ITEMS":var r=t.key||ne;return pe(pe({},e),t.items.reduce((function(t,n){var c=n[r];return t[c]=y(e[c],n),t}),{}));case"REMOVE_ITEMS":var n=Object(d.omit)(e,t.itemIds);return n}return e},itemIsComplete: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.query,c=t.key,a=void 0===c?ne:c;if("RECEIVE_ITEMS"!==r)return e;var i=!n||!Array.isArray(de(n).fields);return pe(pe({},e),t.items.reduce((function(t,r){var n=r[a];return t[n]=e[n]||i,t}),{}))},queries:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_ITEMS":return ve(e,t);case"REMOVE_ITEMS":var r=pe({},e),n=t.itemIds.reduce((function(e,t){return e[t]=!0,e}),{});return Object(d.forEach)(r,(function(e,t){r[t]=Object(d.filter)(e,(function(e){return!n[e]}))})),r;default:return e}}});function Oe(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return he(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return he(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,c=function(){};return{s:c,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:c}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,o=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return i=e.done,e},e:function(e){o=!0,a=e},f:function(){try{i||null==r.return||r.return()}finally{if(o)throw a}}}}function he(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;switch(t.type){case"RECEIVE_ITEMS":var r,n=je({},e),c=Oe(t.items);try{var a=function(){var e=r.value,c=e[t.key],a=n[c];if(!a)return"continue";var i=Object.keys(a).reduce((function(t,r){return Object(d.isEqual)(a[r],Object(d.get)(e[r],"raw",e[r]))||(t[r]=a[r]),t}),{});Object.keys(i).length?n[c]=i:delete n[c]};for(c.s();!(r=c.n()).done;)a()}catch(e){c.e(e)}finally{c.f()}return n;case"EDIT_ENTITY_RECORD":var o=je(je({},e[t.recordId]),t.edits);return Object.keys(o).forEach((function(e){void 0===o[e]&&delete o[e]})),je(je({},e),{},Object(i.a)({},t.recordId,o))}return e},saving:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SAVE_ENTITY_RECORD_START":case"SAVE_ENTITY_RECORD_FINISH":return je(je({},e),{},Object(i.a)({},t.recordId,{pending:"SAVE_ENTITY_RECORD_START"===t.type,error:t.error,isAutosave:t.isAutosave}))}return e},deleting:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"DELETE_ENTITY_RECORD_START":case"DELETE_ENTITY_RECORD_FINISH":return je(je({},e),{},Object(i.a)({},t.recordId,{pending:"DELETE_ENTITY_RECORD_START"===t.type,error:t.error}))}return e}}))}function me(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ce,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_ENTITIES":return[].concat(Object(f.a)(e),Object(f.a)(t.entities))}return e}var we,_e=[];_e.offset=0;var Re=Object(o.combineReducers)({terms:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_TERMS":return je(je({},e),{},Object(i.a)({},t.taxonomy,t.terms))}return e},users:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{byId:{},queries:{}},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_USER_QUERY":return{byId:je(je({},e.byId),Object(d.keyBy)(t.users,"id")),queries:je(je({},e.queries),{},Object(i.a)({},t.queryID,Object(d.map)(t.users,(function(e){return e.id}))))}}return e},currentTheme:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_CURRENT_THEME":return t.currentTheme.stylesheet}return e},currentUser:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_CURRENT_USER":return t.currentUser}return e},taxonomies:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_TAXONOMIES":return t.taxonomies}return e},themes:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_CURRENT_THEME":return je(je({},e),{},Object(i.a)({},t.currentTheme.stylesheet,t.currentTheme))}return e},themeSupports:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_THEME_SUPPORTS":return je(je({},e),t.themeSupports)}return e},entities:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,r=me(e.config,t),n=e.reducer;if(!n||r!==e.config){var c=Object(d.groupBy)(r,"kind");n=Object(o.combineReducers)(Object.entries(c).reduce((function(e,t){var r=Object(s.a)(t,2),n=r[0],c=r[1],a=Object(o.combineReducers)(c.reduce((function(e,t){return je(je({},e),{},Object(i.a)({},t.name,ge(t)))}),{}));return e[n]=a,e}),{}))}var a=n(e.data,t);return a===e.data&&r===e.config&&n===e.reducer?e:{reducer:n,data:a,config:r}},undo:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_e,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"EDIT_ENTITY_RECORD":case"CREATE_UNDO_LEVEL":var r,n="CREATE_UNDO_LEVEL"===t.type,c=!n&&(t.meta.isUndo||t.meta.isRedo);if(n?t=we:c||(we=Object.keys(t.edits).some((function(e){return!t.transientEdits[e]}))?t:je(je({},t),{},{edits:je(je({},we&&we.edits),t.edits)})),c){if((r=Object(f.a)(e)).offset=e.offset+(t.meta.isUndo?-1:1),!e.flattenedUndo)return r;n=!0,t=we}if(!t.meta.undo)return e;if(!n&&!Object.keys(t.edits).some((function(e){return!t.transientEdits[e]})))return(r=Object(f.a)(e)).flattenedUndo=je(je({},e.flattenedUndo),t.edits),r.offset=e.offset,r;(r=r||e.slice(0,e.offset||void 0)).offset=r.offset||0,r.pop(),n||r.push({kind:t.meta.undo.kind,name:t.meta.undo.name,recordId:t.meta.undo.recordId,edits:je(je({},e.flattenedUndo),t.meta.undo.edits)});var a=Object.values(t.meta.undo.edits).filter((function(e){return"function"!=typeof e})),i=Object.values(t.edits).filter((function(e){return"function"!=typeof e}));return p()(a,i)||r.push({kind:t.kind,name:t.name,recordId:t.recordId,edits:n?je(je({},e.flattenedUndo),t.edits):t.edits}),r}return e},embedPreviews:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_EMBED_PREVIEW":var r=t.url,n=t.preview;return je(je({},e),{},Object(i.a)({},r,n))}return e},userPermissions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_USER_PERMISSION":return je(je({},e),{},Object(i.a)({},t.key,t.isAllowed))}return e},autosaves:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_AUTOSAVES":var r=t.postId,n=t.autosaves;return je(je({},e),{},Object(i.a)({},r,n))}return e}}),ke=r(41),xe=r(35),Te=r.n(xe),Se=r(106),Ie=r.n(Se),Pe=new WeakMap;function Ae(e,t){var r,n=de(t),c=n.stableKey,a=n.page,i=n.perPage,o=n.include,u=n.fields;if(Array.isArray(o)&&!c?r=o:e.queries[c]&&(r=e.queries[c]),!r)return null;for(var s=-1===i?0:(a-1)*i,f=-1===i?r.length:Math.min(s+i,r.length),l=[],p=s;p1&&void 0!==arguments[1]?arguments[1]:{},r=Pe.get(e);if(r){var n=r.get(t);if(void 0!==n)return n}else r=new Ie.a,Pe.set(e,r);var c=Ae(e,t);return r.set(t,c),c}));function Ue(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 Ce(e){for(var t=1;t0}var Xe=Object(ke.a)((function(e,t,r,n){return Ce(Ce({},He(e,t,r,n)),Ge(e,t,r,n))}),(function(e){return[e.entities.data]}));function Je(e,t,r,n){var c=Object(d.get)(e.entities.data,[t,r,"saving",n],{}),a=c.pending,i=c.isAutosave;return Boolean(a&&i)}function Ze(e,t,r,n){return Object(d.get)(e.entities.data,[t,r,"saving",n,"pending"],!1)}function et(e,t,r,n){return Object(d.get)(e.entities.data,[t,r,"deleting",n,"pending"],!1)}function tt(e,t,r,n){return Object(d.get)(e.entities.data,[t,r,"saving",n,"error"])}function rt(e,t,r,n){return Object(d.get)(e.entities.data,[t,r,"deleting",n,"error"])}function nt(e){return e.undo.offset}function ct(e){return e.undo[e.undo.length-2+nt(e)]}function at(e){return e.undo[e.undo.length+nt(e)]}function it(e){return Boolean(ct(e))}function ot(e){return Boolean(at(e))}function ut(e){return e.themes[e.currentTheme]}function st(e){return e.themeSupports}function ft(e,t){return e.embedPreviews[t]}function dt(e,t){var r=e.embedPreviews[t],n=''+t+"";return!!r&&r.html===n}function lt(e){return Te()("select( 'core' ).hasUploadPermissions()",{alternative:"select( 'core' ).canUser( 'create', 'media' )"}),Object(d.defaultTo)(pt(e,"create","media"),!0)}function pt(e,t,r,n){var c=Object(d.compact)([t,r,n]).join("/");return Object(d.get)(e,["userPermissions",c])}function bt(e,t,r){return e.autosaves[r]}function vt(e,t,r,n){if(void 0!==n){var c=e.autosaves[r];return Object(d.find)(c,{author:n})}}var yt=Object(o.createRegistrySelector)((function(e){return function(t,r,n){return e("core").hasFinishedResolution("getAutosaves",[r,n])}})),Ot=Object(ke.a)((function(){return[]}),(function(e){return[e.undo.length,e.undo.offset,e.undo.flattenedUndo]})),ht=function(e,t){return g.a.mark((function r(){var n,c,a,i=arguments;return g.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:for(n=i.length,c=new Array(n),a=0;a2&&void 0!==s[2]?s[2]:"",n=s.length>3?s[3]:void 0,l.next=4,se(e);case 4:if(c=l.sent,a=Object(d.find)(c,{kind:e,name:t})){l.next=8;break}return l.abrupt("return");case 8:if(void 0!==n&&n._fields&&(n=jt(jt({},n),{},{_fields:Object(d.uniq)([].concat(Object(f.a)(fe(n._fields)||[]),[a.key||ne])).join()})),i=Object(w.addQueryArgs)(a.baseURL+"/"+r,jt(jt({},n),{},{context:"edit"})),void 0===n){l.next=17;break}return n=jt(jt({},n),{},{include:[r]}),l.next=14,Object(u.syncSelect)("core","hasEntityRecords",e,t,n);case 14:if(!l.sent){l.next=17;break}return l.abrupt("return");case 17:return l.next=19,Object(u.apiFetch)({path:i});case 19:return o=l.sent,l.next=22,q(e,t,o,n);case 22:case"end":return l.stop()}}),wt)}var Ct=ht(Ut,"getEntityRecord"),Mt=ht(Ct,"getRawEntityRecord");function Vt(e,t){var r,n,c,a,i,o=arguments;return g.a.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return r=o.length>2&&void 0!==o[2]?o[2]:{},s.next=3,se(e);case 3:if(n=s.sent,c=Object(d.find)(n,{kind:e,name:t})){s.next=7;break}return s.abrupt("return");case 7:return r._fields&&(r=jt(jt({},r),{},{_fields:Object(d.uniq)([].concat(Object(f.a)(fe(r._fields)||[]),[c.key||ne])).join()})),a=Object(w.addQueryArgs)(c.baseURL,jt(jt({},r),{},{context:"edit"})),s.t0=Object,s.next=12,Object(u.apiFetch)({path:a});case 12:return s.t1=s.sent,i=s.t0.values.call(s.t0,s.t1),r._fields&&(i=i.map((function(e){return r._fields.split(",").forEach((function(t){e.hasOwnProperty(t)||(e[t]=void 0)})),e}))),s.next=17,q(e,t,i,r);case 17:case"end":return s.stop()}}),_t)}function Nt(){var e;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(u.apiFetch)({path:"/wp/v2/themes?status=active"});case 2:return e=t.sent,t.next=5,F(e[0]);case 5:case"end":return t.stop()}}),Rt)}function Lt(){var e;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(u.apiFetch)({path:"/wp/v2/themes?status=active"});case 2:return e=t.sent,t.next=5,Y(e[0].theme_supports);case 5:case"end":return t.stop()}}),kt)}function qt(e){var t;return g.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,Object(u.apiFetch)({path:Object(w.addQueryArgs)("/oembed/1.0/proxy",{url:e})});case 3:return t=r.sent,r.next=6,B(e,t);case 6:r.next=12;break;case 8:return r.prev=8,r.t0=r.catch(0),r.next=12,B(e,!1);case 12:case"end":return r.stop()}}),xt,null,[[0,8]])}function Ft(){return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Te()("select( 'core' ).hasUploadPermissions()",{alternative:"select( 'core' ).canUser( 'create', 'media' )"}),e.delegateYield(Yt("create","media"),"t0",2);case 2:case"end":return e.stop()}}),Tt)}function Yt(e,t,r){var n,c,a,i,o,s;return g.a.wrap((function(f){for(;;)switch(f.prev=f.next){case 0:if(n={create:"POST",read:"GET",update:"PUT",delete:"DELETE"}[e]){f.next=4;break}throw new Error("'".concat(e,"' is not a valid action."));case 4:return c=r?"/wp/v2/".concat(t,"/").concat(r):"/wp/v2/".concat(t),f.prev=5,f.next=8,Object(u.apiFetch)({path:c,method:r?"GET":"OPTIONS",parse:!1});case 8:a=f.sent,f.next=14;break;case 11:return f.prev=11,f.t0=f.catch(5),f.abrupt("return");case 14:return i=Object(d.hasIn)(a,["headers","get"])?a.headers.get("allow"):Object(d.get)(a,["headers","Allow"],""),o=Object(d.compact)([e,t,r]).join("/"),s=Object(d.includes)(i,n),f.next=19,J(o,s);case 19:case"end":return f.stop()}}),St,null,[[5,11]])}function Bt(e,t){var r,n,c;return g.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,Object(u.select)("core","getPostType",e);case 2:return r=a.sent,n=r.rest_base,a.next=6,Object(u.apiFetch)({path:"/wp/v2/".concat(n,"/").concat(t,"/autosaves?context=edit")});case 6:if(!(c=a.sent)||!c.length){a.next=10;break}return a.next=10,Z(t,c);case 10:case"end":return a.stop()}}),It)}function Ht(e,t){return g.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Object(u.select)("core","getAutosaves",e,t);case 2:case"end":return r.stop()}}),Pt)}Vt.shouldInvalidate=function(e,t,r){return("RECEIVE_ITEMS"===e.type||"REMOVE_ITEMS"===e.type)&&e.invalidateCache&&t===e.kind&&r===e.name};var Qt=r(0),Wt=r(11);function Kt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Gt(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{},n=r.initialEdits,c=r.blocksProp,a=void 0===c?"blocks":c,i=r.contentProp,u=void 0===i?"content":i,f=r.id,d=Jt(e,t),l=null!=f?f:d,p=Zt(e,t,u,l),b=Object(s.a)(p,2),v=b[0],y=b[1],O=Object(o.useDispatch)("core"),h=O.editEntityRecord;Object(Qt.useEffect)((function(){n&&h(e,t,l,n,{undoIgnore:!0})}),[l]);var E=Object(Qt.useMemo)((function(){if(v&&"function"!=typeof v){var e=Object(Wt.parse)(v);return e.length?e:[]}return[]}),[v]),j=Zt(e,t,a,l),g=Object(s.a)(j,2),m=g[0],w=void 0===m?E:m,_=g[1],R=Object(Qt.useCallback)((function(e){_(e),y((function(e){var t=e.blocks;return Object(Wt.serialize)(t)}))}),[_,y]);return[w,_,R]}function tr(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 rr(e){for(var t=1;t1?t-1:0),i=1;i1?c-1:0),i=1;i1&&void 0!==arguments[1]?arguments[1]:this;this._map.forEach((function(c,i){null!==i&&"object"===n(i)&&(c=c[1]),e.call(r,c,i,t)}))}},{key:"clear",value:function(){this._map=new Map,this._arrayTreeMap=new Map,this._objectTreeMap=new Map}},{key:"size",get:function(){return this._map.size}}])&&c(t.prototype,r),a&&c(t,a),e}();e.exports=a},11:function(e,t){!function(){e.exports=this.wp.blocks}()},12:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(38);var c=r(30),i=r(39);function a(e,t){return Object(n.a)(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,c=!1,i=void 0;try{for(var a,o=e[Symbol.iterator]();!(n=(a=o.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){c=!0,i=e}finally{try{n||null==o.return||o.return()}finally{if(c)throw i}}return r}}(e,t)||Object(c.a)(e,t)||Object(i.a)()}},17:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(27);var c=r(37),i=r(30);function a(e){return function(e){if(Array.isArray(e))return Object(n.a)(e)}(e)||Object(c.a)(e)||Object(i.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},2:function(e,t){!function(){e.exports=this.lodash}()},20:function(e,t){!function(){e.exports=this.regeneratorRuntime}()},27:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,c=n[e];if(void 0===c)return r;var i=t(r[c],n);return i===r[c]?r:h(h({},r),{},Object(a.a)({},c,i))}}},g=r(20),j=r.n(g),m=r(1),w=r(31);function _(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 R(e){for(var t=1;t3&&void 0!==arguments[3]&&arguments[3];return{type:"REMOVE_ITEMS",itemIds:Object(d.castArray)(r),kind:e,name:t,invalidateCache:n}}function T(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return R(R({},k(e)),{},{query:t})}var S=j.a.mark(H),I=j.a.mark(Q),P=j.a.mark(W),A=j.a.mark(K),D=j.a.mark(z),U=j.a.mark($);function C(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 M(e){for(var t=1;t4&&void 0!==arguments[4]&&arguments[4];return"postType"===e&&(r=Object(d.castArray)(r).map((function(e){return"auto-draft"===e.status?M(M({},e),{},{title:""}):e}))),M(M({},n?T(r,n):k(r)),{},{kind:e,name:t,invalidateCache:c})}function F(e){return{type:"RECEIVE_CURRENT_THEME",currentTheme:e}}function Y(e){return{type:"RECEIVE_THEME_SUPPORTS",themeSupports:e}}function B(e,t){return{type:"RECEIVE_EMBED_PREVIEW",url:e,preview:t}}function H(e,t,r,n){var c,i,a,o,s;return j.a.wrap((function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,se(e);case 2:if(c=f.sent,i=Object(d.find)(c,{kind:e,name:t}),o=!1,i){f.next=7;break}return f.abrupt("return");case 7:return f.next=9,{type:"DELETE_ENTITY_RECORD_START",kind:e,name:t,recordId:r};case 9:return f.prev=9,s="".concat(i.baseURL,"/").concat(r),n&&(s=Object(w.addQueryArgs)(s,n)),f.next=14,Object(u.apiFetch)({path:s,method:"DELETE"});case 14:return o=f.sent,f.next=17,x(e,t,r,!0);case 17:f.next=22;break;case 19:f.prev=19,f.t0=f.catch(9),a=f.t0;case 22:return f.next=24,{type:"DELETE_ENTITY_RECORD_FINISH",kind:e,name:t,recordId:r,error:a};case 24:return f.abrupt("return",o);case 25:case"end":return f.stop()}}),S,null,[[9,19]])}function Q(e,t,r,n){var c,i,a,o,s,f,l,p,b,v=arguments;return j.a.wrap((function(y){for(;;)switch(y.prev=y.next){case 0:return c=v.length>4&&void 0!==v[4]?v[4]:{},y.next=3,Object(u.syncSelect)("core","getEntity",e,t);case 3:if(i=y.sent){y.next=6;break}throw new Error("The entity being edited (".concat(e,", ").concat(t,") does not have a loaded config."));case 6:return a=i.transientEdits,o=void 0===a?{}:a,s=i.mergedEdits,f=void 0===s?{}:s,y.next=9,Object(u.syncSelect)("core","getRawEntityRecord",e,t,r);case 9:return l=y.sent,y.next=12,Object(u.syncSelect)("core","getEditedEntityRecord",e,t,r);case 12:return p=y.sent,b={kind:e,name:t,recordId:r,edits:Object.keys(n).reduce((function(e,t){var r=l[t],c=p[t],i=f[t]?M(M({},c),n[t]):n[t];return e[t]=Object(d.isEqual)(r,i)?void 0:i,e}),{}),transientEdits:o},y.abrupt("return",M(M({type:"EDIT_ENTITY_RECORD"},b),{},{meta:{undo:!c.undoIgnore&&M(M({},b),{},{edits:Object.keys(n).reduce((function(e,t){return e[t]=p[t],e}),{})})}}));case 15:case"end":return y.stop()}}),I)}function W(){var e;return j.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(u.syncSelect)("core","getUndoEdit");case 2:if(e=t.sent){t.next=5;break}return t.abrupt("return");case 5:return t.next=7,M(M({type:"EDIT_ENTITY_RECORD"},e),{},{meta:{isUndo:!0}});case 7:case"end":return t.stop()}}),P)}function K(){var e;return j.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(u.syncSelect)("core","getRedoEdit");case 2:if(e=t.sent){t.next=5;break}return t.abrupt("return");case 5:return t.next=7,M(M({type:"EDIT_ENTITY_RECORD"},e),{},{meta:{isRedo:!0}});case 7:case"end":return t.stop()}}),A)}function G(){return{type:"CREATE_UNDO_LEVEL"}}function z(e,t,r){var n,c,i,o,f,l,p,b,v,y,O,h,E,g,m,w,_,R,k,x,T,S,I,P,A,U=arguments;return j.a.wrap((function(j){for(;;)switch(j.prev=j.next){case 0:return n=U.length>3&&void 0!==U[3]?U[3]:{isAutosave:!1},c=n.isAutosave,i=void 0!==c&&c,j.next=3,se(e);case 3:if(o=j.sent,f=Object(d.find)(o,{kind:e,name:t})){j.next=7;break}return j.abrupt("return");case 7:l=f.key||ne,p=r[l],b=0,v=Object.entries(r);case 10:if(!(b2&&void 0!==arguments[2]?arguments[2]:"get",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],c=Object(d.find)(ce,{kind:e,name:t}),i="root"===e?"":Object(d.upperFirst)(Object(d.camelCase)(e)),a=Object(d.upperFirst)(Object(d.camelCase)(t))+(n?"s":""),o=n&&c.plural?Object(d.upperFirst)(Object(d.camelCase)(c.plural)):a;return"".concat(r).concat(i).concat(o)};function se(e){var t,r;return j.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object(u.syncSelect)("core","getEntitiesByKind",e);case 2:if(!(t=n.sent)||0===t.length){n.next=5;break}return n.abrupt("return",t);case 5:if(r=Object(d.find)(ie,{name:e})){n.next=8;break}return n.abrupt("return",[]);case 8:return n.next=10,r.loadEntities();case 10:return t=n.sent,n.next=13,L(t);case 13:return n.abrupt("return",t);case 14:case"end":return n.stop()}}),re)}var fe=function(e){return"string"==typeof e?e.split(","):Array.isArray(e)?e:null};var de=function(e){var t=new WeakMap;return function(r){var n;return t.has(r)?n=t.get(r):(n=e(r),Object(d.isObjectLike)(r)&&t.set(r,n)),n}}((function(e){for(var t={stableKey:"",page:1,perPage:10,fields:null,include:null},r=Object.keys(e).sort(),n=0;n=c&&o0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.page,c=t.perPage,i=t.key,a=void 0===i?ne:i;return"RECEIVE_ITEMS"!==r?e:be(e||[],Object(d.map)(t.items,a),n,c)})),ye=Object(o.combineReducers)({items:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_ITEMS":var r=t.key||ne;return pe(pe({},e),t.items.reduce((function(t,n){var c=n[r];return t[c]=y(e[c],n),t}),{}));case"REMOVE_ITEMS":var n=Object(d.omit)(e,t.itemIds);return n}return e},itemIsComplete: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.query,c=t.key,i=void 0===c?ne:c;if("RECEIVE_ITEMS"!==r)return e;var a=!n||!Array.isArray(de(n).fields);return pe(pe({},e),t.items.reduce((function(t,r){var n=r[i];return t[n]=e[n]||a,t}),{}))},queries:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_ITEMS":return ve(e,t);case"REMOVE_ITEMS":var r=pe({},e),n=t.itemIds.reduce((function(e,t){return e[t]=!0,e}),{});return Object(d.forEach)(r,(function(e,t){r[t]=Object(d.filter)(e,(function(e){return!n[e]}))})),r;default:return e}}});function Oe(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return he(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return he(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,c=function(){};return{s:c,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:c}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,o=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function he(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;switch(t.type){case"RECEIVE_ITEMS":var r,n=ge({},e),c=Oe(t.items);try{var i=function(){var e=r.value,c=e[t.key],i=n[c];if(!i)return"continue";var a=Object.keys(i).reduce((function(t,r){return Object(d.isEqual)(i[r],Object(d.get)(e[r],"raw",e[r]))||(t[r]=i[r]),t}),{});Object.keys(a).length?n[c]=a:delete n[c]};for(c.s();!(r=c.n()).done;)i()}catch(e){c.e(e)}finally{c.f()}return n;case"EDIT_ENTITY_RECORD":var o=ge(ge({},e[t.recordId]),t.edits);return Object.keys(o).forEach((function(e){void 0===o[e]&&delete o[e]})),ge(ge({},e),{},Object(a.a)({},t.recordId,o))}return e},saving:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SAVE_ENTITY_RECORD_START":case"SAVE_ENTITY_RECORD_FINISH":return ge(ge({},e),{},Object(a.a)({},t.recordId,{pending:"SAVE_ENTITY_RECORD_START"===t.type,error:t.error,isAutosave:t.isAutosave}))}return e},deleting:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"DELETE_ENTITY_RECORD_START":case"DELETE_ENTITY_RECORD_FINISH":return ge(ge({},e),{},Object(a.a)({},t.recordId,{pending:"DELETE_ENTITY_RECORD_START"===t.type,error:t.error}))}return e}}))}function me(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ce,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_ENTITIES":return[].concat(Object(f.a)(e),Object(f.a)(t.entities))}return e}var we,_e=[];_e.offset=0;var Re=Object(o.combineReducers)({terms:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_TERMS":return ge(ge({},e),{},Object(a.a)({},t.taxonomy,t.terms))}return e},users:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{byId:{},queries:{}},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_USER_QUERY":return{byId:ge(ge({},e.byId),Object(d.keyBy)(t.users,"id")),queries:ge(ge({},e.queries),{},Object(a.a)({},t.queryID,Object(d.map)(t.users,(function(e){return e.id}))))}}return e},currentTheme:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_CURRENT_THEME":return t.currentTheme.stylesheet}return e},currentUser:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_CURRENT_USER":return t.currentUser}return e},taxonomies:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_TAXONOMIES":return t.taxonomies}return e},themes:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_CURRENT_THEME":return ge(ge({},e),{},Object(a.a)({},t.currentTheme.stylesheet,t.currentTheme))}return e},themeSupports:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_THEME_SUPPORTS":return ge(ge({},e),t.themeSupports)}return e},entities:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,r=me(e.config,t),n=e.reducer;if(!n||r!==e.config){var c=Object(d.groupBy)(r,"kind");n=Object(o.combineReducers)(Object.entries(c).reduce((function(e,t){var r=Object(s.a)(t,2),n=r[0],c=r[1],i=Object(o.combineReducers)(c.reduce((function(e,t){return ge(ge({},e),{},Object(a.a)({},t.name,je(t)))}),{}));return e[n]=i,e}),{}))}var i=n(e.data,t);return i===e.data&&r===e.config&&n===e.reducer?e:{reducer:n,data:i,config:r}},undo:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_e,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"EDIT_ENTITY_RECORD":case"CREATE_UNDO_LEVEL":var r,n="CREATE_UNDO_LEVEL"===t.type,c=!n&&(t.meta.isUndo||t.meta.isRedo);if(n?t=we:c||(we=Object.keys(t.edits).some((function(e){return!t.transientEdits[e]}))?t:ge(ge({},t),{},{edits:ge(ge({},we&&we.edits),t.edits)})),c){if((r=Object(f.a)(e)).offset=e.offset+(t.meta.isUndo?-1:1),!e.flattenedUndo)return r;n=!0,t=we}if(!t.meta.undo)return e;if(!n&&!Object.keys(t.edits).some((function(e){return!t.transientEdits[e]})))return(r=Object(f.a)(e)).flattenedUndo=ge(ge({},e.flattenedUndo),t.edits),r.offset=e.offset,r;(r=r||e.slice(0,e.offset||void 0)).offset=r.offset||0,r.pop(),n||r.push({kind:t.meta.undo.kind,name:t.meta.undo.name,recordId:t.meta.undo.recordId,edits:ge(ge({},e.flattenedUndo),t.meta.undo.edits)});var i=Object.values(t.meta.undo.edits).filter((function(e){return"function"!=typeof e})),a=Object.values(t.edits).filter((function(e){return"function"!=typeof e}));return p()(i,a)||r.push({kind:t.kind,name:t.name,recordId:t.recordId,edits:n?ge(ge({},e.flattenedUndo),t.edits):t.edits}),r}return e},embedPreviews:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_EMBED_PREVIEW":var r=t.url,n=t.preview;return ge(ge({},e),{},Object(a.a)({},r,n))}return e},userPermissions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_USER_PERMISSION":return ge(ge({},e),{},Object(a.a)({},t.key,t.isAllowed))}return e},autosaves:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_AUTOSAVES":var r=t.postId,n=t.autosaves;return ge(ge({},e),{},Object(a.a)({},r,n))}return e}}),ke=r(42),xe=r(36),Te=r.n(xe),Se=r(106),Ie=r.n(Se),Pe=new WeakMap;function Ae(e,t){var r,n=de(t),c=n.stableKey,i=n.page,a=n.perPage,o=n.include,u=n.fields;if(Array.isArray(o)&&!c?r=o:e.queries[c]&&(r=e.queries[c]),!r)return null;for(var s=-1===a?0:(i-1)*a,f=-1===a?r.length:Math.min(s+a,r.length),l=[],p=s;p1&&void 0!==arguments[1]?arguments[1]:{},r=Pe.get(e);if(r){var n=r.get(t);if(void 0!==n)return n}else r=new Ie.a,Pe.set(e,r);var c=Ae(e,t);return r.set(t,c),c}));function Ue(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 Ce(e){for(var t=1;t0}var Xe=Object(ke.a)((function(e,t,r,n){return Ce(Ce({},He(e,t,r,n)),Ge(e,t,r,n))}),(function(e){return[e.entities.data]}));function Je(e,t,r,n){var c=Object(d.get)(e.entities.data,[t,r,"saving",n],{}),i=c.pending,a=c.isAutosave;return Boolean(i&&a)}function Ze(e,t,r,n){return Object(d.get)(e.entities.data,[t,r,"saving",n,"pending"],!1)}function et(e,t,r,n){return Object(d.get)(e.entities.data,[t,r,"deleting",n,"pending"],!1)}function tt(e,t,r,n){return Object(d.get)(e.entities.data,[t,r,"saving",n,"error"])}function rt(e,t,r,n){return Object(d.get)(e.entities.data,[t,r,"deleting",n,"error"])}function nt(e){return e.undo.offset}function ct(e){return e.undo[e.undo.length-2+nt(e)]}function it(e){return e.undo[e.undo.length+nt(e)]}function at(e){return Boolean(ct(e))}function ot(e){return Boolean(it(e))}function ut(e){return e.themes[e.currentTheme]}function st(e){return e.themeSupports}function ft(e,t){return e.embedPreviews[t]}function dt(e,t){var r=e.embedPreviews[t],n=''+t+"";return!!r&&r.html===n}function lt(e){return Te()("select( 'core' ).hasUploadPermissions()",{alternative:"select( 'core' ).canUser( 'create', 'media' )"}),Object(d.defaultTo)(pt(e,"create","media"),!0)}function pt(e,t,r,n){var c=Object(d.compact)([t,r,n]).join("/");return Object(d.get)(e,["userPermissions",c])}function bt(e,t,r){return e.autosaves[r]}function vt(e,t,r,n){if(void 0!==n){var c=e.autosaves[r];return Object(d.find)(c,{author:n})}}var yt=Object(o.createRegistrySelector)((function(e){return function(t,r,n){return e("core").hasFinishedResolution("getAutosaves",[r,n])}})),Ot=Object(ke.a)((function(){return[]}),(function(e){return[e.undo.length,e.undo.offset,e.undo.flattenedUndo]})),ht=function(e,t){return j.a.mark((function r(){var n,c,i,a=arguments;return j.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:for(n=a.length,c=new Array(n),i=0;i2&&void 0!==s[2]?s[2]:"",n=s.length>3?s[3]:void 0,l.next=4,se(e);case 4:if(c=l.sent,i=Object(d.find)(c,{kind:e,name:t})){l.next=8;break}return l.abrupt("return");case 8:if(void 0!==n&&n._fields&&(n=gt(gt({},n),{},{_fields:Object(d.uniq)([].concat(Object(f.a)(fe(n._fields)||[]),[i.key||ne])).join()})),a=Object(w.addQueryArgs)(i.baseURL+"/"+r,gt(gt({},n),{},{context:"edit"})),void 0===n){l.next=17;break}return n=gt(gt({},n),{},{include:[r]}),l.next=14,Object(u.syncSelect)("core","hasEntityRecords",e,t,n);case 14:if(!l.sent){l.next=17;break}return l.abrupt("return");case 17:return l.next=19,Object(u.apiFetch)({path:a});case 19:return o=l.sent,l.next=22,q(e,t,o,n);case 22:case"end":return l.stop()}}),wt)}var Ct=ht(Ut,"getEntityRecord"),Mt=ht(Ct,"getRawEntityRecord");function Vt(e,t){var r,n,c,i,a,o=arguments;return j.a.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return r=o.length>2&&void 0!==o[2]?o[2]:{},s.next=3,se(e);case 3:if(n=s.sent,c=Object(d.find)(n,{kind:e,name:t})){s.next=7;break}return s.abrupt("return");case 7:return r._fields&&(r=gt(gt({},r),{},{_fields:Object(d.uniq)([].concat(Object(f.a)(fe(r._fields)||[]),[c.key||ne])).join()})),i=Object(w.addQueryArgs)(c.baseURL,gt(gt({},r),{},{context:"edit"})),s.t0=Object,s.next=12,Object(u.apiFetch)({path:i});case 12:return s.t1=s.sent,a=s.t0.values.call(s.t0,s.t1),r._fields&&(a=a.map((function(e){return r._fields.split(",").forEach((function(t){e.hasOwnProperty(t)||(e[t]=void 0)})),e}))),s.next=17,q(e,t,a,r);case 17:case"end":return s.stop()}}),_t)}function Nt(){var e;return j.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(u.apiFetch)({path:"/wp/v2/themes?status=active"});case 2:return e=t.sent,t.next=5,F(e[0]);case 5:case"end":return t.stop()}}),Rt)}function Lt(){var e;return j.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(u.apiFetch)({path:"/wp/v2/themes?status=active"});case 2:return e=t.sent,t.next=5,Y(e[0].theme_supports);case 5:case"end":return t.stop()}}),kt)}function qt(e){var t;return j.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,Object(u.apiFetch)({path:Object(w.addQueryArgs)("/oembed/1.0/proxy",{url:e})});case 3:return t=r.sent,r.next=6,B(e,t);case 6:r.next=12;break;case 8:return r.prev=8,r.t0=r.catch(0),r.next=12,B(e,!1);case 12:case"end":return r.stop()}}),xt,null,[[0,8]])}function Ft(){return j.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Te()("select( 'core' ).hasUploadPermissions()",{alternative:"select( 'core' ).canUser( 'create', 'media' )"}),e.delegateYield(Yt("create","media"),"t0",2);case 2:case"end":return e.stop()}}),Tt)}function Yt(e,t,r){var n,c,i,a,o,s;return j.a.wrap((function(f){for(;;)switch(f.prev=f.next){case 0:if(n={create:"POST",read:"GET",update:"PUT",delete:"DELETE"}[e]){f.next=4;break}throw new Error("'".concat(e,"' is not a valid action."));case 4:return c=r?"/wp/v2/".concat(t,"/").concat(r):"/wp/v2/".concat(t),f.prev=5,f.next=8,Object(u.apiFetch)({path:c,method:r?"GET":"OPTIONS",parse:!1});case 8:i=f.sent,f.next=14;break;case 11:return f.prev=11,f.t0=f.catch(5),f.abrupt("return");case 14:return a=Object(d.hasIn)(i,["headers","get"])?i.headers.get("allow"):Object(d.get)(i,["headers","Allow"],""),o=Object(d.compact)([e,t,r]).join("/"),s=Object(d.includes)(a,n),f.next=19,J(o,s);case 19:case"end":return f.stop()}}),St,null,[[5,11]])}function Bt(e,t){var r,n,c;return j.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,Object(u.select)("core","getPostType",e);case 2:return r=i.sent,n=r.rest_base,i.next=6,Object(u.apiFetch)({path:"/wp/v2/".concat(n,"/").concat(t,"/autosaves?context=edit")});case 6:if(!(c=i.sent)||!c.length){i.next=10;break}return i.next=10,Z(t,c);case 10:case"end":return i.stop()}}),It)}function Ht(e,t){return j.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Object(u.select)("core","getAutosaves",e,t);case 2:case"end":return r.stop()}}),Pt)}Vt.shouldInvalidate=function(e,t,r){return("RECEIVE_ITEMS"===e.type||"REMOVE_ITEMS"===e.type)&&e.invalidateCache&&t===e.kind&&r===e.name};var Qt=r(0),Wt=r(11);function Kt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Gt(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{},n=r.initialEdits,c=r.blocksProp,i=void 0===c?"blocks":c,a=r.contentProp,u=void 0===a?"content":a,f=r.id,d=Jt(e,t),l=null!=f?f:d,p=Zt(e,t,u,l),b=Object(s.a)(p,2),v=b[0],y=b[1],O=Object(o.useDispatch)("core"),h=O.editEntityRecord;Object(Qt.useEffect)((function(){n&&h(e,t,l,n,{undoIgnore:!0})}),[l]);var E=Object(Qt.useMemo)((function(){if(v&&"function"!=typeof v){var e=Object(Wt.parse)(v);return e.length?e:[]}return[]}),[v]),g=Zt(e,t,i,l),j=Object(s.a)(g,2),m=j[0],w=void 0===m?E:m,_=j[1],R=Object(Qt.useCallback)((function(e){_(e),y((function(e){var t=e.blocks;return Object(Wt.serialize)(t)}))}),[_,y]);return[w,_,R]}function tr(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 rr(e){for(var t=1;t1?t-1:0),a=1;a1?c-1:0),a=1;a arr.length) len = arr.length; - - for (var i = 0, arr2 = new Array(len); i < len; i++) { - arr2[i] = arr[i]; - } - - return arr2; -} - -/***/ }), - -/***/ 30: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _unsupportedIterableToArray; }); -/* harmony import */ var _arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(27); - -function _unsupportedIterableToArray(o, minLen) { - if (!o) return; - if (typeof o === "string") return Object(_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen); - var n = Object.prototype.toString.call(o).slice(8, -1); - if (n === "Object" && o.constructor) n = o.constructor.name; - if (n === "Map" || n === "Set") return Array.from(o); - if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Object(_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen); -} - -/***/ }), - -/***/ 37: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _iterableToArray; }); -function _iterableToArray(iter) { - if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); -} - -/***/ }), - /***/ 4: /***/ (function(module, exports) { @@ -177,7 +94,7 @@ function _iterableToArray(iter) { /***/ }), -/***/ 427: +/***/ 431: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -187,17 +104,16 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "syncSelect", function() { return syncSelect; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dispatch", function() { return dispatch; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "controls", function() { return controls; }); -/* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(18); -/* harmony import */ var _wordpress_api_fetch__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(45); -/* harmony import */ var _wordpress_api_fetch__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_api_fetch__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_2__); - - +/* harmony import */ var _wordpress_api_fetch__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(47); +/* harmony import */ var _wordpress_api_fetch__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_api_fetch__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4); +/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_1__); /** * WordPress dependencies */ + // TODO: mark the deprecated controls after all Gutenberg usages are removed +// import deprecated from '@wordpress/deprecated'; /** * Dispatches a control action for triggering an api fetch call. @@ -219,117 +135,50 @@ __webpack_require__.r(__webpack_exports__); * @return {Object} The control descriptor. */ -var apiFetch = function apiFetch(request) { +function apiFetch(request) { return { type: 'API_FETCH', request: request }; -}; -/** - * Dispatches a control action for triggering and resolving a registry select. - * - * Note: when this control action is handled, it automatically considers - * selectors that may have a resolver. In such case, it will return a `Promise` that resolves - * after the selector finishes resolving, with the final result value. - * - * @param {string} storeKey The key for the store the selector belongs to - * @param {string} selectorName The name of the selector - * @param {Array} args Arguments for the selector. - * - * @example - * ```js - * import { select } from '@wordpress/data-controls'; - * - * // Action generator using select - * export function* myAction() { - * const isSidebarOpened = yield select( 'core/edit-post', 'isEditorSideBarOpened' ); - * // do stuff with the result from the select. - * } - * ``` - * - * @return {Object} The control descriptor. - */ - -function select(storeKey, selectorName) { - for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { - args[_key - 2] = arguments[_key]; - } - - return { - type: 'SELECT', - storeKey: storeKey, - selectorName: selectorName, - args: args - }; } /** - * Dispatches a control action for triggering a synchronous registry select. + * Control for resolving a selector in a registered data store. + * Alias for the `resolveSelect` built-in control in the `@wordpress/data` package. * - * Note: This control synchronously returns the current selector value, triggering the - * resolution, but not waiting for it. - * - * @param {string} storeKey The key for the store the selector belongs to. - * @param {string} selectorName The name of the selector. - * @param {Array} args Arguments for the selector. - * - * @example - * ```js - * import { syncSelect } from '@wordpress/data-controls'; - * - * // Action generator using `syncSelect`. - * export function* myAction() { - * const isEditorSideBarOpened = yield syncSelect( 'core/edit-post', 'isEditorSideBarOpened' ); - * // Do stuff with the result from the `syncSelect`. - * } - * ``` - * - * @return {Object} The control descriptor. + * @param {Array} args Arguments passed without change to the `@wordpress/data` control. */ -function syncSelect(storeKey, selectorName) { - for (var _len2 = arguments.length, args = new Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) { - args[_key2 - 2] = arguments[_key2]; - } - - return { - type: 'SYNC_SELECT', - storeKey: storeKey, - selectorName: selectorName, - args: args - }; +function select() { + // deprecated( '`select` control in `@wordpress/data-controls`', { + // alternative: 'built-in `resolveSelect` control in `@wordpress/data`', + // } ); + return _wordpress_data__WEBPACK_IMPORTED_MODULE_1__["controls"].resolveSelect.apply(_wordpress_data__WEBPACK_IMPORTED_MODULE_1__["controls"], arguments); } /** - * Dispatches a control action for triggering a registry dispatch. + * Control for calling a selector in a registered data store. + * Alias for the `select` built-in control in the `@wordpress/data` package. * - * @param {string} storeKey The key for the store the action belongs to - * @param {string} actionName The name of the action to dispatch - * @param {Array} args Arguments for the dispatch action. - * - * @example - * ```js - * import { dispatch } from '@wordpress/data-controls'; - * - * // Action generator using dispatch - * export function* myAction() { - * yield dispatch( 'core/edit-post', 'togglePublishSidebar' ); - * // do some other things. - * } - * ``` - * - * @return {Object} The control descriptor. + * @param {Array} args Arguments passed without change to the `@wordpress/data` control. */ -function dispatch(storeKey, actionName) { - for (var _len3 = arguments.length, args = new Array(_len3 > 2 ? _len3 - 2 : 0), _key3 = 2; _key3 < _len3; _key3++) { - args[_key3 - 2] = arguments[_key3]; - } +function syncSelect() { + // deprecated( '`syncSelect` control in `@wordpress/data-controls`', { + // alternative: 'built-in `select` control in `@wordpress/data`', + // } ); + return _wordpress_data__WEBPACK_IMPORTED_MODULE_1__["controls"].select.apply(_wordpress_data__WEBPACK_IMPORTED_MODULE_1__["controls"], arguments); +} +/** + * Control for dispatching an action in a registered data store. + * Alias for the `dispatch` control in the `@wordpress/data` package. + * + * @param {Array} args Arguments passed without change to the `@wordpress/data` control. + */ - return { - type: 'DISPATCH', - storeKey: storeKey, - actionName: actionName, - args: args - }; +function dispatch() { + // deprecated( '`dispatch` control in `@wordpress/data-controls`', { + // alternative: 'built-in `dispatch` control in `@wordpress/data`', + // } ); + return _wordpress_data__WEBPACK_IMPORTED_MODULE_1__["controls"].dispatch.apply(_wordpress_data__WEBPACK_IMPORTED_MODULE_1__["controls"], arguments); } /** * The default export is what you use to register the controls with your custom @@ -363,44 +212,14 @@ function dispatch(storeKey, actionName) { var controls = { API_FETCH: function API_FETCH(_ref) { var request = _ref.request; - return _wordpress_api_fetch__WEBPACK_IMPORTED_MODULE_1___default()(request); - }, - SELECT: Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_2__["createRegistryControl"])(function (registry) { - return function (_ref2) { - var _registry; - - var storeKey = _ref2.storeKey, - selectorName = _ref2.selectorName, - args = _ref2.args; - return (_registry = registry[registry.select(storeKey)[selectorName].hasResolver ? '__experimentalResolveSelect' : 'select'](storeKey))[selectorName].apply(_registry, Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(args)); - }; - }), - SYNC_SELECT: Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_2__["createRegistryControl"])(function (registry) { - return function (_ref3) { - var _registry$select; - - var storeKey = _ref3.storeKey, - selectorName = _ref3.selectorName, - args = _ref3.args; - return (_registry$select = registry.select(storeKey))[selectorName].apply(_registry$select, Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(args)); - }; - }), - DISPATCH: Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_2__["createRegistryControl"])(function (registry) { - return function (_ref4) { - var _registry$dispatch; - - var storeKey = _ref4.storeKey, - actionName = _ref4.actionName, - args = _ref4.args; - return (_registry$dispatch = registry.dispatch(storeKey))[actionName].apply(_registry$dispatch, Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(args)); - }; - }) + return _wordpress_api_fetch__WEBPACK_IMPORTED_MODULE_0___default()(request); + } }; /***/ }), -/***/ 45: +/***/ 47: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["apiFetch"]; }()); diff --git a/wp-includes/js/dist/data-controls.min.js b/wp-includes/js/dist/data-controls.min.js index 250c9d7013..4e25019868 100644 --- a/wp-includes/js/dist/data-controls.min.js +++ b/wp-includes/js/dist/data-controls.min.js @@ -1,2 +1,2 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.dataControls=function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=427)}({18:function(t,e,r){"use strict";r.d(e,"a",(function(){return c}));var n=r(27);var o=r(37),u=r(30);function c(t){return function(t){if(Array.isArray(t))return Object(n.a)(t)}(t)||Object(o.a)(t)||Object(u.a)(t)||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.")}()}},27:function(t,e,r){"use strict";function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r2?r-2:0),o=2;o2?r-2:0),o=2;o2?r-2:0),o=2;o ( result ) + * ``` + * that allows to select data from the store's `state`, a registry selector + * has signature: + * ```js + * ( select ) => ( state, ...selectorArgs ) => ( result ) + * ``` + * that supports also selecting from other registered stores. + * + * @example + * ```js + * const getCurrentPostId = createRegistrySelector( ( select ) => ( state ) => { + * return select( 'core/editor' ).getCurrentPostId(); + * } ); + * + * const getPostEdits = createRegistrySelector( ( select ) => ( state ) => { + * // calling another registry selector just like any other function + * const postType = getCurrentPostType( state ); + * const postId = getCurrentPostId( state ); + * return select( 'core' ).getEntityRecordEdits( 'postType', postType, postId ); + * } ); + * ``` + * + * Note how the `getCurrentPostId` selector can be called just like any other function, + * (it works even inside a regular non-registry selector) and we don't need to pass the + * registry as argument. The registry binding happens automatically when registering the selector + * with a store. + * + * @param {Function} registrySelector Function receiving a registry `select` + * function and returning a state selector. + * + * @return {Function} Registry selector that can be registered with a store. + */ +function createRegistrySelector(registrySelector) { + // create a selector function that is bound to the registry referenced by `selector.registry` + // and that has the same API as a regular selector. Binding it in such a way makes it + // possible to call the selector directly from another selector. + var selector = function selector() { + return registrySelector(selector.registry.select).apply(void 0, arguments); + }; + /** + * Flag indicating that the selector is a registry selector that needs the correct registry + * reference to be assigned to `selecto.registry` to make it work correctly. + * be mapped as a registry selector. + * + * @type {boolean} + */ + + + selector.isRegistrySelector = true; + return selector; +} +/** + * Creates a control function that takes additional curried argument with the `registry` object. + * While a regular control has signature + * ```js + * ( action ) => ( iteratorOrPromise ) + * ``` + * where the control works with the `action` that it's bound to, a registry control has signature: + * ```js + * ( registry ) => ( action ) => ( iteratorOrPromise ) + * ``` + * A registry control is typically used to select data or dispatch an action to a registered + * store. + * + * When registering a control created with `createRegistryControl` with a store, the store + * knows which calling convention to use when executing the control. + * + * @param {Function} registryControl Function receiving a registry object and returning a control. + * + * @return {Function} Registry control that can be registered with a store. + */ + +function createRegistryControl(registryControl) { + registryControl.isRegistryControl = true; + return registryControl; +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/data/build-module/controls.js + + + +var _builtinControls; + +/** + * Internal dependencies + */ + +var SELECT = '@@data/SELECT'; +var RESOLVE_SELECT = '@@data/RESOLVE_SELECT'; +var DISPATCH = '@@data/DISPATCH'; +/** + * Dispatches a control action for triggering a synchronous registry select. + * + * Note: This control synchronously returns the current selector value, triggering the + * resolution, but not waiting for it. + * + * @param {string} storeKey The key for the store the selector belongs to. + * @param {string} selectorName The name of the selector. + * @param {Array} args Arguments for the selector. + * + * @example + * ```js + * import { controls } from '@wordpress/data'; + * + * // Action generator using `select`. + * export function* myAction() { + * const isEditorSideBarOpened = yield controls.select( 'core/edit-post', 'isEditorSideBarOpened' ); + * // Do stuff with the result from the `select`. + * } + * ``` + * + * @return {Object} The control descriptor. + */ + +function controls_select(storeKey, selectorName) { + for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { + args[_key - 2] = arguments[_key]; + } + + return { + type: SELECT, + storeKey: storeKey, + selectorName: selectorName, + args: args + }; +} +/** + * Dispatches a control action for triggering and resolving a registry select. + * + * Note: when this control action is handled, it automatically considers + * selectors that may have a resolver. In such case, it will return a `Promise` that resolves + * after the selector finishes resolving, with the final result value. + * + * @param {string} storeKey The key for the store the selector belongs to + * @param {string} selectorName The name of the selector + * @param {Array} args Arguments for the selector. + * + * @example + * ```js + * import { controls } from '@wordpress/data'; + * + * // Action generator using resolveSelect + * export function* myAction() { + * const isSidebarOpened = yield controls.resolveSelect( 'core/edit-post', 'isEditorSideBarOpened' ); + * // do stuff with the result from the select. + * } + * ``` + * + * @return {Object} The control descriptor. + */ + + +function resolveSelect(storeKey, selectorName) { + for (var _len2 = arguments.length, args = new Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) { + args[_key2 - 2] = arguments[_key2]; + } + + return { + type: RESOLVE_SELECT, + storeKey: storeKey, + selectorName: selectorName, + args: args + }; +} +/** + * Dispatches a control action for triggering a registry dispatch. + * + * @param {string} storeKey The key for the store the action belongs to + * @param {string} actionName The name of the action to dispatch + * @param {Array} args Arguments for the dispatch action. + * + * @example + * ```js + * import { controls } from '@wordpress/data-controls'; + * + * // Action generator using dispatch + * export function* myAction() { + * yield controls.dispatch( 'core/edit-post', 'togglePublishSidebar' ); + * // do some other things. + * } + * ``` + * + * @return {Object} The control descriptor. + */ + + +function controls_dispatch(storeKey, actionName) { + for (var _len3 = arguments.length, args = new Array(_len3 > 2 ? _len3 - 2 : 0), _key3 = 2; _key3 < _len3; _key3++) { + args[_key3 - 2] = arguments[_key3]; + } + + return { + type: DISPATCH, + storeKey: storeKey, + actionName: actionName, + args: args + }; +} + +var controls_controls = { + select: controls_select, + resolveSelect: resolveSelect, + dispatch: controls_dispatch +}; +var builtinControls = (_builtinControls = {}, Object(defineProperty["a" /* default */])(_builtinControls, SELECT, createRegistryControl(function (registry) { + return function (_ref) { + var _registry$select; + + var storeKey = _ref.storeKey, + selectorName = _ref.selectorName, + args = _ref.args; + return (_registry$select = registry.select(storeKey))[selectorName].apply(_registry$select, Object(toConsumableArray["a" /* default */])(args)); + }; +})), Object(defineProperty["a" /* default */])(_builtinControls, RESOLVE_SELECT, createRegistryControl(function (registry) { + return function (_ref2) { + var _registry$method; + + var storeKey = _ref2.storeKey, + selectorName = _ref2.selectorName, + args = _ref2.args; + var method = registry.select(storeKey)[selectorName].hasResolver ? '__experimentalResolveSelect' : 'select'; + return (_registry$method = registry[method](storeKey))[selectorName].apply(_registry$method, Object(toConsumableArray["a" /* default */])(args)); + }; +})), Object(defineProperty["a" /* default */])(_builtinControls, DISPATCH, createRegistryControl(function (registry) { + return function (_ref3) { + var _registry$dispatch; + + var storeKey = _ref3.storeKey, + actionName = _ref3.actionName, + args = _ref3.args; + return (_registry$dispatch = registry.dispatch(storeKey))[actionName].apply(_registry$dispatch, Object(toConsumableArray["a" /* default */])(args)); + }; +})), _builtinControls); + // EXTERNAL MODULE: ./node_modules/is-promise/index.js -var is_promise = __webpack_require__(154); +var is_promise = __webpack_require__(155); var is_promise_default = /*#__PURE__*/__webpack_require__.n(is_promise); // CONCATENATED MODULE: ./node_modules/@wordpress/data/build-module/promise-middleware.js @@ -1574,9 +1918,6 @@ var promise_middleware_promiseMiddleware = function promiseMiddleware() { /* harmony default export */ var promise_middleware = (promise_middleware_promiseMiddleware); -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules -var toConsumableArray = __webpack_require__(18); - // CONCATENATED MODULE: ./node_modules/@wordpress/data/build-module/resolvers-cache-middleware.js @@ -1950,6 +2291,7 @@ function namespace_store_objectSpread(target) { for (var i = 1; i < arguments.le + /** * Create a cache to track whether resolvers started running or not. * @@ -2087,15 +2429,12 @@ function createNamespace(key, options, registry) { */ function createReduxStore(key, options, registry) { - var middlewares = [resolvers_cache_middleware(registry, key), promise_middleware]; - - if (options.controls) { - var normalizedControls = Object(external_this_lodash_["mapValues"])(options.controls, function (control) { - return control.isRegistryControl ? control(registry) : control; - }); - middlewares.push(external_this_wp_reduxRoutine_default()(normalizedControls)); - } + var controls = namespace_store_objectSpread(namespace_store_objectSpread({}, options.controls), builtinControls); + var normalizedControls = Object(external_this_lodash_["mapValues"])(controls, function (control) { + return control.isRegistryControl ? control(registry) : control; + }); + var middlewares = [resolvers_cache_middleware(registry, key), promise_middleware, external_this_wp_reduxRoutine_default()(normalizedControls)]; var enhancers = [applyMiddleware.apply(void 0, middlewares)]; if (typeof window !== 'undefined' && window.__REDUX_DEVTOOLS_EXTENSION__) { @@ -2682,7 +3021,7 @@ function createRegistry() { /* harmony default export */ var default_registry = (createRegistry()); // EXTERNAL MODULE: external {"this":["wp","deprecated"]} -var external_this_wp_deprecated_ = __webpack_require__(35); +var external_this_wp_deprecated_ = __webpack_require__(36); var external_this_wp_deprecated_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_deprecated_); // CONCATENATED MODULE: ./node_modules/@wordpress/data/build-module/plugins/controls/index.js @@ -2690,7 +3029,7 @@ var external_this_wp_deprecated_default = /*#__PURE__*/__webpack_require__.n(ext * WordPress dependencies */ -/* harmony default export */ var controls = (function (registry) { +/* harmony default export */ var plugins_controls = (function (registry) { external_this_wp_deprecated_default()('wp.data.plugins.controls', { hint: 'The controls plugins is now baked-in.' }); @@ -3033,53 +3372,8 @@ var external_this_wp_element_ = __webpack_require__(0); // EXTERNAL MODULE: external {"this":["wp","compose"]} var external_this_wp_compose_ = __webpack_require__(10); -// EXTERNAL MODULE: external {"this":"React"} -var external_this_React_ = __webpack_require__(13); - -// CONCATENATED MODULE: ./node_modules/use-memo-one/dist/use-memo-one.esm.js - - -function areInputsEqual(newInputs, lastInputs) { - if (newInputs.length !== lastInputs.length) { - return false; - } - - for (var i = 0; i < newInputs.length; i++) { - if (newInputs[i] !== lastInputs[i]) { - return false; - } - } - - return true; -} - -function useMemoOne(getResult, inputs) { - var initial = Object(external_this_React_["useState"])(function () { - return { - inputs: inputs, - result: getResult() - }; - })[0]; - var committed = Object(external_this_React_["useRef"])(initial); - var isInputMatch = Boolean(inputs && committed.current.inputs && areInputsEqual(inputs, committed.current.inputs)); - var cache = isInputMatch ? committed.current : { - inputs: inputs, - result: getResult() - }; - Object(external_this_React_["useEffect"])(function () { - committed.current = cache; - }, [cache]); - return cache.result; -} -function useCallbackOne(callback, inputs) { - return useMemoOne(function () { - return callback; - }, inputs); -} -var useMemo = useMemoOne; -var useCallback = useCallbackOne; - - +// EXTERNAL MODULE: ./node_modules/use-memo-one/dist/use-memo-one.esm.js +var use_memo_one_esm = __webpack_require__(154); // EXTERNAL MODULE: external {"this":["wp","priorityQueue"]} var external_this_wp_priorityQueue_ = __webpack_require__(153); @@ -3340,7 +3634,7 @@ function useSelect(_mapSelect, deps) { // We use the cache-stable `useMemoOne` to avoid // losing queues. - var queueContext = useMemoOne(function () { + var queueContext = Object(use_memo_one_esm["a" /* useMemoOne */])(function () { return { queue: true }; @@ -3771,105 +4065,6 @@ var use_dispatch_useDispatch = function useDispatch(storeName) { /* harmony default export */ var use_dispatch = (use_dispatch_useDispatch); -// CONCATENATED MODULE: ./node_modules/@wordpress/data/build-module/factory.js -/** - * Internal dependencies - */ - -/** @typedef {import('./registry').WPDataRegistry} WPDataRegistry */ - -/** - * Creates a selector function that takes additional curried argument with the - * registry `select` function. While a regular selector has signature - * ```js - * ( state, ...selectorArgs ) => ( result ) - * ``` - * that allows to select data from the store's `state`, a registry selector - * has signature: - * ```js - * ( select ) => ( state, ...selectorArgs ) => ( result ) - * ``` - * that supports also selecting from other registered stores. - * - * @example - * ```js - * const getCurrentPostId = createRegistrySelector( ( select ) => ( state ) => { - * return select( 'core/editor' ).getCurrentPostId(); - * } ); - * - * const getPostEdits = createRegistrySelector( ( select ) => ( state ) => { - * // calling another registry selector just like any other function - * const postType = getCurrentPostType( state ); - * const postId = getCurrentPostId( state ); - * return select( 'core' ).getEntityRecordEdits( 'postType', postType, postId ); - * } ); - * ``` - * - * Note how the `getCurrentPostId` selector can be called just like any other function, - * (it works even inside a regular non-registry selector) and we don't need to pass the - * registry as argument. The registry binding happens automatically when registering the selector - * with a store. - * - * @param {Function} registrySelector Function receiving a registry `select` - * function and returning a state selector. - * - * @return {Function} Registry selector that can be registered with a store. - */ - -function createRegistrySelector(registrySelector) { - // create a selector function that is bound to the registry referenced by `selector.registry` - // and that has the same API as a regular selector. Binding it in such a way makes it - // possible to call the selector directly from another selector. - var selector = function selector() { - return registrySelector(selector.registry.select).apply(void 0, arguments); - }; - /** - * Flag indicating that the selector is a registry selector that needs the correct registry - * reference to be assigned to `selecto.registry` to make it work correctly. - * be mapped as a registry selector. - * - * @type {boolean} - */ - - - selector.isRegistrySelector = true; - /** - * Registry on which to call `select`. The `defaultRegistry` value is overwritten with - * the actual registry when the selector is registered with a store. Therefore, it's never - * used and is assigned here only to satisfy the type constraint of the `registry` field. - * - * @type {WPDataRegistry} - */ - - selector.registry = default_registry; - return selector; -} -/** - * Creates a control function that takes additional curried argument with the `registry` object. - * While a regular control has signature - * ```js - * ( action ) => ( iteratorOrPromise ) - * ``` - * where the control works with the `action` that it's bound to, a registry control has signature: - * ```js - * ( registry ) => ( action ) => ( iteratorOrPromise ) - * ``` - * A registry control is typically used to select data or dispatch an action to a registered - * store. - * - * When registering a control created with `createRegistryControl` with a store, the store - * knows which calling convention to use when executing the control. - * - * @param {Function} registryControl Function receiving a registry object and returning a control. - * - * @return {Function} Registry control that can be registered with a store. - */ - -function createRegistryControl(registryControl) { - registryControl.isRegistryControl = true; - return registryControl; -} - // CONCATENATED MODULE: ./node_modules/@wordpress/data/build-module/index.js /** * External dependencies @@ -3890,6 +4085,7 @@ function createRegistryControl(registryControl) { + /** * Object of available plugins to use with a registry. * @@ -4045,49 +4241,6 @@ var build_module_registerStore = default_registry.registerStore; var build_module_use = default_registry.use; -/***/ }), - -/***/ 47: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _asyncToGenerator; }); -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { - try { - var info = gen[key](arg); - var value = info.value; - } catch (error) { - reject(error); - return; - } - - if (info.done) { - resolve(value); - } else { - Promise.resolve(value).then(_next, _throw); - } -} - -function _asyncToGenerator(fn) { - return function () { - var self = this, - args = arguments; - return new Promise(function (resolve, reject) { - var gen = fn.apply(self, args); - - function _next(value) { - asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); - } - - function _throw(err) { - asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); - } - - _next(undefined); - }); - }; -} - /***/ }), /***/ 5: diff --git a/wp-includes/js/dist/data.min.js b/wp-includes/js/dist/data.min.js index cf9a5e1f01..05303538e1 100644 --- a/wp-includes/js/dist/data.min.js +++ b/wp-includes/js/dist/data.min.js @@ -1,2 +1,2 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.data=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=457)}({0:function(e,t){!function(){e.exports=this.wp.element}()},10:function(e,t){!function(){e.exports=this.wp.compose}()},106:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:this;this._map.forEach((function(o,i){null!==i&&"object"===n(i)&&(o=o[1]),e.call(r,o,i,t)}))}},{key:"clear",value:function(){this._map=new Map,this._arrayTreeMap=new Map,this._objectTreeMap=new Map}},{key:"size",get:function(){return this._map.size}}])&&o(t.prototype,r),u&&o(t,u),e}();e.exports=u},12:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r(38);var o=r(30),i=r(39);function u(e,t){return Object(n.a)(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var u,c=e[Symbol.iterator]();!(n=(u=c.next()).done)&&(r.push(u.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==c.return||c.return()}finally{if(o)throw i}}return r}}(e,t)||Object(o.a)(e,t)||Object(i.a)()}},13:function(e,t){!function(){e.exports=this.React}()},130:function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},153:function(e,t){!function(){e.exports=this.wp.priorityQueue}()},154:function(e,t){function r(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}e.exports=r,e.exports.default=r},165:function(e,t){e.exports=function(e){var t,r=Object.keys(e);return t=function(){var e,t,n;for(e="return {",t=0;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,n=r[M];if(void 0===n)return t;var o=e(t[n],r);return o===t[n]?t:C(C({},t),{},Object(s.a)({},n,o))}})((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new P.a,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_RESOLUTION":case"FINISH_RESOLUTION":var r="START_RESOLUTION"===t.type,n=new P.a(e);return n.set(t.args,r),n;case"INVALIDATE_RESOLUTION":var o=new P.a(e);return o.delete(t.args),o}return e})),F=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"INVALIDATE_RESOLUTION_FOR_STORE":return{};case"INVALIDATE_RESOLUTION_FOR_STORE_SELECTOR":return Object(f.has)(e,[t.selectorName])?Object(f.omit)(e,[t.selectorName]):e;case"START_RESOLUTION":case"FINISH_RESOLUTION":case"INVALIDATE_RESOLUTION":return U(e,t)}return e};function V(e,t,r){var n=Object(f.get)(e,[t]);if(n)return n.get(r)}function G(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return void 0!==V(e,t,r)}function H(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return!1===V(e,t,r)}function W(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return!0===V(e,t,r)}function z(e){return e}function X(e,t){return{type:"START_RESOLUTION",selectorName:e,args:t}}function B(e,t){return{type:"FINISH_RESOLUTION",selectorName:e,args:t}}function J(e,t){return{type:"INVALIDATE_RESOLUTION",selectorName:e,args:t}}function K(){return{type:"INVALIDATE_RESOLUTION_FOR_STORE"}}function Y(e){return{type:"INVALIDATE_RESOLUTION_FOR_STORE_SELECTOR",selectorName:e}}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 Q(e){for(var t=1;t1?r-1:0),o=1;o1?r-1:0),o=1;o3?i-3:0),c=3;c1?o-1:0),u=1;u1?o-1:0),u=1;u0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r={},n=[];function o(){n.forEach((function(e){return e()}))}var i=function(e){return n.push(e),function(){n=Object(f.without)(n,e)}};function u(e){var n=r[e];return n?n.getSelectors():t&&t.select(e)}var c=p()((function(e){return Object(f.mapValues)(Object(f.omit)(e,["getIsResolving","hasStartedResolution","hasFinishedResolution","isResolving","getCachedResolvers"]),(function(t,r){return function(){for(var n=arguments.length,o=new Array(n),u=0;u0,u=Object(f.has)(r,["core/edit-post","preferences","features","fullscreenMode"]);i&&!u&&(o=Object(f.merge)({},o,{preferences:{features:{fullscreenMode:!1}}}));var c=Object(f.get)(r,["core/nux","preferences","areTipsEnabled"]),a=Object(f.has)(r,["core/edit-post","preferences","features","welcomeGuide"]);void 0===c||a||(o=Object(f.merge)({},o,{preferences:{features:{welcomeGuide:c}}})),o!==r["core/edit-post"]&&t.set("core/edit-post",o)};var je=ge,we=r(8),me=r(0),Se=r(10),Ee=r(13);function Re(e,t){var r=Object(Ee.useState)((function(){return{inputs:t,result:e()}}))[0],n=Object(Ee.useRef)(r),o=Boolean(t&&n.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:this;this._map.forEach((function(o,i){null!==i&&"object"===n(i)&&(o=o[1]),e.call(r,o,i,t)}))}},{key:"clear",value:function(){this._map=new Map,this._arrayTreeMap=new Map,this._objectTreeMap=new Map}},{key:"size",get:function(){return this._map.size}}])&&o(t.prototype,r),u&&o(t,u),e}();e.exports=u},12:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r(38);var o=r(30),i=r(39);function u(e,t){return Object(n.a)(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var u,c=e[Symbol.iterator]();!(n=(u=c.next()).done)&&(r.push(u.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==c.return||c.return()}finally{if(o)throw i}}return r}}(e,t)||Object(o.a)(e,t)||Object(i.a)()}},13:function(e,t){!function(){e.exports=this.React}()},131:function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},153:function(e,t){!function(){e.exports=this.wp.priorityQueue}()},154:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(13);function o(e,t){var r=Object(n.useState)((function(){return{inputs:t,result:e()}}))[0],o=Object(n.useRef)(r),i=Boolean(t&&o.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r2?r-2:0),o=2;o2?r-2:0),o=2;o2?r-2:0),o=2;o0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,n=r[K];if(void 0===n)return t;var o=e(t[n],r);return o===t[n]?t:H(H({},t),{},Object(s.a)({},n,o))}})((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new x.a,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_RESOLUTION":case"FINISH_RESOLUTION":var r="START_RESOLUTION"===t.type,n=new x.a(e);return n.set(t.args,r),n;case"INVALIDATE_RESOLUTION":var o=new x.a(e);return o.delete(t.args),o}return e})),z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"INVALIDATE_RESOLUTION_FOR_STORE":return{};case"INVALIDATE_RESOLUTION_FOR_STORE_SELECTOR":return Object(f.has)(e,[t.selectorName])?Object(f.omit)(e,[t.selectorName]):e;case"START_RESOLUTION":case"FINISH_RESOLUTION":case"INVALIDATE_RESOLUTION":return W(e,t)}return e};function X(e,t,r){var n=Object(f.get)(e,[t]);if(n)return n.get(r)}function B(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return void 0!==X(e,t,r)}function J(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return!1===X(e,t,r)}function Y(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return!0===X(e,t,r)}function q(e){return e}function Q(e,t){return{type:"START_RESOLUTION",selectorName:e,args:t}}function $(e,t){return{type:"FINISH_RESOLUTION",selectorName:e,args:t}}function Z(e,t){return{type:"INVALIDATE_RESOLUTION",selectorName:e,args:t}}function ee(){return{type:"INVALIDATE_RESOLUTION_FOR_STORE"}}function te(e){return{type:"INVALIDATE_RESOLUTION_FOR_STORE_SELECTOR",selectorName:e}}function re(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 ne(e){for(var t=1;t1?r-1:0),o=1;o1?r-1:0),o=1;o3?i-3:0),c=3;c1?o-1:0),u=1;u1?o-1:0),u=1;u0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r={},n=[];function o(){n.forEach((function(e){return e()}))}var i=function(e){return n.push(e),function(){n=Object(f.without)(n,e)}};function u(e){var n=r[e];return n?n.getSelectors():t&&t.select(e)}var c=p()((function(e){return Object(f.mapValues)(Object(f.omit)(e,["getIsResolving","hasStartedResolution","hasFinishedResolution","isResolving","getCachedResolvers"]),(function(t,r){return function(){for(var n=arguments.length,o=new Array(n),u=0;u0,u=Object(f.has)(r,["core/edit-post","preferences","features","fullscreenMode"]);i&&!u&&(o=Object(f.merge)({},o,{preferences:{features:{fullscreenMode:!1}}}));var c=Object(f.get)(r,["core/nux","preferences","areTipsEnabled"]),a=Object(f.has)(r,["core/edit-post","preferences","features","welcomeGuide"]);void 0===c||a||(o=Object(f.merge)({},o,{preferences:{features:{welcomeGuide:c}}})),o!==r["core/edit-post"]&&t.set("core/edit-post",o)};var _e=Re,Pe=r(8),xe=r(0),Te=r(10),Ae=r(154),Ie=r(153),Ne=r(64),De=r.n(Ne),ke=Object(xe.createContext)(ve),Le=ke.Consumer,Ce=ke.Provider,Me=Le,Ue=Ce;function Ve(){return Object(xe.useContext)(ke)}var Fe=Object(xe.createContext)(!1),Ge=(Fe.Consumer,Fe.Provider);var He="undefined"!=typeof window?xe.useLayoutEffect:xe.useEffect,Ke=Object(Ie.createQueue)();function We(e,t){var r,n=Object(xe.useCallback)(e,t),o=Ve(),i=Object(xe.useContext)(Fe),u=Object(Ae.a)((function(){return{queue:!0}}),[o]),c=Object(xe.useReducer)((function(e){return e+1}),0),s=Object(a.a)(c,2)[1],f=Object(xe.useRef)(),l=Object(xe.useRef)(i),p=Object(xe.useRef)(),b=Object(xe.useRef)(),d=Object(xe.useRef)();try{r=f.current!==n||b.current?n(o.select,o):p.current}catch(e){var v="An error occurred while running 'mapSelect': ".concat(e.message);if(b.current)throw v+="\nThe error may be correlated with this previous error:\n",v+="".concat(b.current.stack,"\n\n"),v+="Original stack trace:",new Error(v);console.error(v)}return He((function(){f.current=n,p.current=r,b.current=void 0,d.current=!0,l.current!==i&&(l.current=i,Ke.flush(u))})),He((function(){var e=function(){if(d.current){try{var e=f.current(o.select,o);if(De()(p.current,e))return;p.current=e}catch(e){b.current=e}s()}};l.current?Ke.add(u,e):e();var t=o.subscribe((function(){l.current?Ke.add(u,e):e()}));return function(){d.current=!1,t(),Ke.flush(u)}}),[o]),r}var ze=function(e){return Object(Te.createHigherOrderComponent)((function(t){return Object(Te.pure)((function(r){var n=We((function(t,n){return e(t,r,n)}));return Object(xe.createElement)(t,Object(Pe.a)({},r,n))}))}),"withSelect")},Xe="undefined"!=typeof window?xe.useLayoutEffect:xe.useEffect,Be=function(e,t){var r=Ve(),n=Object(xe.useRef)(e);return Xe((function(){n.current=e})),Object(xe.useMemo)((function(){var e=n.current(r.dispatch,r);return Object(f.mapValues)(e,(function(e,t){return"function"!=typeof e&&console.warn("Property ".concat(t," returned from dispatchMap in useDispatchWithMap must be a function.")),function(){var e;return(e=n.current(r.dispatch,r))[t].apply(e,arguments)}}))}),[r].concat(Object(I.a)(t)))},Je=function(e){return Object(Te.createHigherOrderComponent)((function(t){return function(r){var n=Be((function(t,n){return e(t,r,n)}),[]);return Object(xe.createElement)(t,Object(Pe.a)({},r,n))}}),"withDispatch")},Ye=Object(Te.createHigherOrderComponent)((function(e){return function(t){return Object(xe.createElement)(Me,null,(function(r){return Object(xe.createElement)(e,Object(Pe.a)({},t,{registry:r}))}))}}),"withRegistry"),qe=function(e){var t=Ve().dispatch;return void 0===e?t:t(e)},Qe=ve.select,$e=ve.__experimentalResolveSelect,Ze=ve.dispatch,et=ve.subscribe,tt=ve.registerGenericStore,rt=ve.registerStore,nt=ve.use},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}))},60:function(e,t,r){e.exports=function(e,t){var r,n,o=0;function i(){var i,u,c=r,a=arguments.length;e:for(;c;){if(c.args.length===arguments.length){for(u=0;u96?c-87:c>64?c-29:c-48}function r(c){var M=0,o=c.split("."),A=o[0],a=o[1]||"",z=1,b=0,p=1;for(45===c.charCodeAt(0)&&(M=1,p=-1);M3){var M=z[T(c)];if(M)return M;S("Moment Timezone found "+c+" from the Intl api, but did not have that data loaded.")}}catch(c){}var o,A,a,b=function(){var c,M,o,A=(new Date).getFullYear()-2,a=new f(new Date(A,0,1)),z=[a];for(o=1;o<48;o++)(M=new f(new Date(A,o,1))).offset!==a.offset&&(c=W(a,M),z.push(c),z.push(new f(new Date(c.at+6e4)))),a=M;for(o=0;o<4;o++)z.push(new f(new Date(A+o,0,1))),z.push(new f(new Date(A+o,6,1)));return z}(),p=b.length,n=l(b),i=[];for(A=0;A0?i[0].zone.name:void 0}function T(c){return(c||"").toLowerCase().replace(/\//g,"_")}function s(c){var M,A,a,b;for("string"==typeof c&&(c=[c]),M=0;M= 2.6.0. You are using Moment.js "+c.version+". See momentjs.com"),N.prototype={_set:function(c){this.name=c.name,this.abbrs=c.abbrs,this.untils=c.untils,this.offsets=c.offsets,this.population=c.population},_index:function(c){var M,o=+c,A=this.untils;for(M=0;MA&&R.moveInvalidForward&&(M=A),z0&&(this._z=null),g.apply(this,arguments)}),c.tz.setDefault=function(M){return(n<2||2===n&&i<9)&&S("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+c.version+"."),c.defaultZone=M?m(M):null,c};var k=c.momentProperties;return"[object Array]"===Object.prototype.toString.call(k)?(k.push("_z"),k.push("_a")):k&&(k._z=null),c}))},428:function(c,M,o){"use strict";o.r(M),o.d(M,"setSettings",(function(){return p})),o.d(M,"__experimentalGetSettings",(function(){return n})),o.d(M,"format",(function(){return r})),o.d(M,"date",(function(){return L})),o.d(M,"gmdate",(function(){return O})),o.d(M,"dateI18n",(function(){return q})),o.d(M,"gmdateI18n",(function(){return N})),o.d(M,"isInTheFuture",(function(){return d})),o.d(M,"getDate",(function(){return f}));var A=o(44),a=o.n(A),z=(o(267),o(429),/^[+-][0-1][0-9](:?[0-9][0-9])?$/),b={l10n:{locale:"en",months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],meridiem:{am:"am",pm:"pm",AM:"AM",PM:"PM"},relative:{future:"%s from now",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"}},formats:{time:"g: i a",date:"F j, Y",datetime:"F j, Y g: i a",datetimeAbbreviated:"M j, Y g: i a"},timezone:{offset:"0",string:"",abbr:""}};function p(c){b=c;var M=a.a.locale();a.a.updateLocale(c.l10n.locale,{parentLocale:M,months:c.l10n.months,monthsShort:c.l10n.monthsShort,weekdays:c.l10n.weekdays,weekdaysShort:c.l10n.weekdaysShort,meridiem:function(M,o,A){return M<12?A?c.l10n.meridiem.am:c.l10n.meridiem.AM:A?c.l10n.meridiem.pm:c.l10n.meridiem.PM},longDateFormat:{LT:c.formats.time,LTS:null,L:null,LL:c.formats.date,LLL:c.formats.datetime,LLLL:null},relativeTime:c.l10n.relative}),a.a.locale(M),i()}function n(){return b}function i(){a.a.tz.add(a.a.tz.pack({name:"WP",abbrs:["WP"],untils:[null],offsets:[60*-b.timezone.offset||0]}))}var e={d:"DD",D:"ddd",j:"D",l:"dddd",N:"E",S:function(c){var M=c.format("D");return c.format("Do").replace(M,"")},w:"d",z:function(c){return""+parseInt(c.format("DDD"),10)-1},W:"W",F:"MMMM",m:"MM",M:"MMM",n:"M",t:function(c){return c.daysInMonth()},L:function(c){return c.isLeapYear()?"1":"0"},o:"GGGG",Y:"YYYY",y:"YY",a:"a",A:"A",B:function(c){var M=a()(c).utcOffset(60),o=parseInt(M.format("s"),10),A=parseInt(M.format("m"),10),z=parseInt(M.format("H"),10);return parseInt((o+60*A+3600*z)/86.4,10)},g:"h",G:"H",h:"hh",H:"HH",i:"mm",s:"ss",u:"SSSSSS",v:"SSS",e:"zz",I:function(c){return c.isDST()?"1":"0"},O:"ZZ",P:"Z",T:"z",Z:function(c){var M=c.format("Z"),o="-"===M[0]?-1:1,A=M.substring(1).split(":");return o*(60*A[0]+A[1])*60},c:"YYYY-MM-DDTHH:mm:ssZ",r:"ddd, D MMM YYYY HH:mm:ss ZZ",U:"X"};function r(c){var M,o,A=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,z=[],b=a()(A);for(M=0;M1&&void 0!==arguments[1]?arguments[1]:new Date,o=arguments.length>2?arguments[2]:void 0,A=t(M,o);return r(c,A)}function O(c){var M=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,o=a()(M).utc();return r(c,o)}function q(c){var M=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,o=arguments.length>2?arguments[2]:void 0;if(!0===o)return N(c,M);!1===o&&(o=void 0);var A=t(M,o);return A.locale(b.l10n.locale),r(c,A)}function N(c){var M=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,o=a()(M).utc();return o.locale(b.l10n.locale),r(c,o)}function d(c){var M=a.a.tz("WP");return a.a.tz(c,"WP").isAfter(M)}function f(c){return c?a.a.tz(c,"WP").toDate():a.a.tz("WP").toDate()}function t(c){var M=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=a()(c);return M&&!W(M)?o.tz(M):M&&W(M)?o.utcOffset(M):b.timezone.string?o.tz(b.timezone.string):o.utcOffset(b.timezone.offset)}function W(c){return"number"==typeof c||z.test(c)}i()},429:function(c,M,o){var A,a,z;//! moment-timezone-utils.js +!function(b,p){"use strict";c.exports?c.exports=p(o(44)):(a=[o(44)],void 0===(z="function"==typeof(A=p)?A.apply(M,a):A)||(c.exports=z))}(0,(function(c){"use strict";void 0===c.version&&c.default&&(c=c.default);var M,o={},A={},a={},z={},b={};c&&"string"==typeof c.version||S("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var p=c.version.split("."),n=+p[0],i=+p[1];function e(c){return c>96?c-87:c>64?c-29:c-48}function r(c){var M=0,o=c.split("."),A=o[0],a=o[1]||"",z=1,b=0,p=1;for(45===c.charCodeAt(0)&&(M=1,p=-1);M3){var M=z[T(c)];if(M)return M;S("Moment Timezone found "+c+" from the Intl api, but did not have that data loaded.")}}catch(c){}var o,A,a,b=function(){var c,M,o,A=(new Date).getFullYear()-2,a=new f(new Date(A,0,1)),z=[a];for(o=1;o<48;o++)(M=new f(new Date(A,o,1))).offset!==a.offset&&(c=W(a,M),z.push(c),z.push(new f(new Date(c.at+6e4)))),a=M;for(o=0;o<4;o++)z.push(new f(new Date(A+o,0,1))),z.push(new f(new Date(A+o,6,1)));return z}(),p=b.length,n=l(b),i=[];for(A=0;A0?i[0].zone.name:void 0}function T(c){return(c||"").toLowerCase().replace(/\//g,"_")}function s(c){var M,A,a,b;for("string"==typeof c&&(c=[c]),M=0;M= 2.6.0. You are using Moment.js "+c.version+". See momentjs.com"),N.prototype={_set:function(c){this.name=c.name,this.abbrs=c.abbrs,this.untils=c.untils,this.offsets=c.offsets,this.population=c.population},_index:function(c){var M,o=+c,A=this.untils;for(M=0;MA&&R.moveInvalidForward&&(M=A),z0&&(this._z=null),g.apply(this,arguments)}),c.tz.setDefault=function(M){return(n<2||2===n&&i<9)&&S("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+c.version+"."),c.defaultZone=M?m(M):null,c};var k=c.momentProperties;return"[object Array]"===Object.prototype.toString.call(k)?(k.push("_z"),k.push("_a")):k&&(k._z=null),c}))},432:function(c,M,o){"use strict";o.r(M),o.d(M,"setSettings",(function(){return p})),o.d(M,"__experimentalGetSettings",(function(){return n})),o.d(M,"format",(function(){return r})),o.d(M,"date",(function(){return L})),o.d(M,"gmdate",(function(){return O})),o.d(M,"dateI18n",(function(){return q})),o.d(M,"gmdateI18n",(function(){return N})),o.d(M,"isInTheFuture",(function(){return d})),o.d(M,"getDate",(function(){return f}));var A=o(44),a=o.n(A),z=(o(268),o(433),/^[+-][0-1][0-9](:?[0-9][0-9])?$/),b={l10n:{locale:"en",months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],meridiem:{am:"am",pm:"pm",AM:"AM",PM:"PM"},relative:{future:"%s from now",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"}},formats:{time:"g: i a",date:"F j, Y",datetime:"F j, Y g: i a",datetimeAbbreviated:"M j, Y g: i a"},timezone:{offset:"0",string:"",abbr:""}};function p(c){b=c;var M=a.a.locale();a.a.updateLocale(c.l10n.locale,{parentLocale:M,months:c.l10n.months,monthsShort:c.l10n.monthsShort,weekdays:c.l10n.weekdays,weekdaysShort:c.l10n.weekdaysShort,meridiem:function(M,o,A){return M<12?A?c.l10n.meridiem.am:c.l10n.meridiem.AM:A?c.l10n.meridiem.pm:c.l10n.meridiem.PM},longDateFormat:{LT:c.formats.time,LTS:null,L:null,LL:c.formats.date,LLL:c.formats.datetime,LLLL:null},relativeTime:c.l10n.relative}),a.a.locale(M),i()}function n(){return b}function i(){a.a.tz.add(a.a.tz.pack({name:"WP",abbrs:["WP"],untils:[null],offsets:[60*-b.timezone.offset||0]}))}var e={d:"DD",D:"ddd",j:"D",l:"dddd",N:"E",S:function(c){var M=c.format("D");return c.format("Do").replace(M,"")},w:"d",z:function(c){return""+parseInt(c.format("DDD"),10)-1},W:"W",F:"MMMM",m:"MM",M:"MMM",n:"M",t:function(c){return c.daysInMonth()},L:function(c){return c.isLeapYear()?"1":"0"},o:"GGGG",Y:"YYYY",y:"YY",a:"a",A:"A",B:function(c){var M=a()(c).utcOffset(60),o=parseInt(M.format("s"),10),A=parseInt(M.format("m"),10),z=parseInt(M.format("H"),10);return parseInt((o+60*A+3600*z)/86.4,10)},g:"h",G:"H",h:"hh",H:"HH",i:"mm",s:"ss",u:"SSSSSS",v:"SSS",e:"zz",I:function(c){return c.isDST()?"1":"0"},O:"ZZ",P:"Z",T:"z",Z:function(c){var M=c.format("Z"),o="-"===M[0]?-1:1,A=M.substring(1).split(":");return o*(60*A[0]+A[1])*60},c:"YYYY-MM-DDTHH:mm:ssZ",r:"ddd, D MMM YYYY HH:mm:ss ZZ",U:"X"};function r(c){var M,o,A=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,z=[],b=a()(A);for(M=0;M1&&void 0!==arguments[1]?arguments[1]:new Date,o=arguments.length>2?arguments[2]:void 0,A=t(M,o);return r(c,A)}function O(c){var M=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,o=a()(M).utc();return r(c,o)}function q(c){var M=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,o=arguments.length>2?arguments[2]:void 0;if(!0===o)return N(c,M);!1===o&&(o=void 0);var A=t(M,o);return A.locale(b.l10n.locale),r(c,A)}function N(c){var M=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,o=a()(M).utc();return o.locale(b.l10n.locale),r(c,o)}function d(c){var M=a.a.tz("WP");return a.a.tz(c,"WP").isAfter(M)}function f(c){return c?a.a.tz(c,"WP").toDate():a.a.tz("WP").toDate()}function t(c){var M=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=a()(c);return M&&!W(M)?o.tz(M):M&&W(M)?o.utcOffset(M):b.timezone.string?o.tz(b.timezone.string):o.utcOffset(b.timezone.offset)}function W(c){return"number"==typeof c||z.test(c)}i()},433:function(c,M,o){var A,a,z;//! moment-timezone-utils.js //! version : 0.5.31 //! Copyright (c) JS Foundation and other contributors //! license : MIT //! github.com/moment/moment-timezone -!function(b,p){"use strict";c.exports?c.exports=p(o(430)):(a=[o(44)],void 0===(z="function"==typeof(A=p)?A.apply(M,a):A)||(c.exports=z))}(0,(function(c){"use strict";if(!c.tz)throw new Error("moment-timezone-utils.js must be loaded after moment-timezone.js");var M="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWX";function o(c,o){for(var A="",a=Math.abs(c),z=Math.floor(a),b=function(c,o){for(var A,a=".",z="";o>0;)o-=1,c*=60,A=Math.floor(c+1e-6),a+=M[A],c-=A,A&&(z+=a,a="");return z}(a-z,Math.min(~~o,10));z>0;)A=M[z%60]+A,z=Math.floor(z/60);return c<0&&(A="-"+A),A&&b?A+b:(b||"-"!==A)&&(A||b)||"0"}function A(c){var M,A=[],a=0;for(M=0;Mp.population||b.population===p.population&&A&&A[b.name]?n.unshift(b):n.push(b),e=!0);e||r.push([b])}for(a=0;ao&&(a=M,M=o,o=a),a=0;ao&&(b=Math.min(b,a+1)));return[z,b]}(c.untils,M,o),z=A.apply(c.untils,a);return z[z.length-1]=null,{name:c.name,abbrs:A.apply(c.abbrs,a),untils:z,offsets:A.apply(c.offsets,a),population:c.population,countries:c.countries}}return c.tz.pack=b,c.tz.packBase60=o,c.tz.createLinks=e,c.tz.filterYears=r,c.tz.filterLinkPack=function(c,M,o,A){var a,z,n=c.zones,i=[];for(a=0;a0;)o-=1,c*=60,A=Math.floor(c+1e-6),a+=M[A],c-=A,A&&(z+=a,a="");return z}(a-z,Math.min(~~o,10));z>0;)A=M[z%60]+A,z=Math.floor(z/60);return c<0&&(A="-"+A),A&&b?A+b:(b||"-"!==A)&&(A||b)||"0"}function A(c){var M,A=[],a=0;for(M=0;Mp.population||b.population===p.population&&A&&A[b.name]?n.unshift(b):n.push(b),e=!0);e||r.push([b])}for(a=0;ao&&(a=M,M=o,o=a),a=0;ao&&(b=Math.min(b,a+1)));return[z,b]}(c.untils,M,o),z=A.apply(c.untils,a);return z[z.length-1]=null,{name:c.name,abbrs:A.apply(c.abbrs,a),untils:z,offsets:A.apply(c.offsets,a),population:c.population,countries:c.countries}}return c.tz.pack=b,c.tz.packBase60=o,c.tz.createLinks=e,c.tz.filterYears=r,c.tz.filterLinkPack=function(c,M,o,A){var a,z,n=c.zones,i=[];for(a=0;a1&&void 0!==arguments[1]?arguments[1]:{},n=t.version,c=t.alternative,i=t.plugin,u=t.link,a=t.hint,l=i?" from ".concat(i):"",f=n?" and will be removed".concat(l," in version ").concat(n):"",d=c?" Please use ".concat(c," instead."):"",s=u?" See: ".concat(u):"",p=a?" Note: ".concat(a):"",b="".concat(e," is deprecated").concat(f,".").concat(d).concat(s).concat(p);b in o||(Object(r.doAction)("deprecated",e,t,b),console.warn(b),o[b]=!0)}}}).default; \ No newline at end of file +this.wp=this.wp||{},this.wp.deprecated=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=436)}({33:function(e,t){!function(){e.exports=this.wp.hooks}()},436:function(e,t,n){"use strict";n.r(t),n.d(t,"logged",(function(){return o})),n.d(t,"default",(function(){return c}));var r=n(33),o=Object.create(null);function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.version,c=t.alternative,i=t.plugin,u=t.link,a=t.hint,l=i?" from ".concat(i):"",f=n?" and will be removed".concat(l," in version ").concat(n):"",d=c?" Please use ".concat(c," instead."):"",s=u?" See: ".concat(u):"",p=a?" Note: ".concat(a):"",b="".concat(e," is deprecated").concat(f,".").concat(d).concat(s).concat(p);b in o||(Object(r.doAction)("deprecated",e,t,b),console.warn(b),o[b]=!0)}}}).default; \ No newline at end of file diff --git a/wp-includes/js/dist/dom-ready.js b/wp-includes/js/dist/dom-ready.js index 463805bd90..0b1166ddf9 100644 --- a/wp-includes/js/dist/dom-ready.js +++ b/wp-includes/js/dist/dom-ready.js @@ -82,12 +82,12 @@ this["wp"] = this["wp"] || {}; this["wp"]["domReady"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 433); +/******/ return __webpack_require__(__webpack_require__.s = 437); /******/ }) /************************************************************************/ /******/ ({ -/***/ 433: +/***/ 437: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; diff --git a/wp-includes/js/dist/dom-ready.min.js b/wp-includes/js/dist/dom-ready.min.js index d0db50a308..ee636ad6c5 100644 --- a/wp-includes/js/dist/dom-ready.min.js +++ b/wp-includes/js/dist/dom-ready.min.js @@ -1,2 +1,2 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.domReady=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=433)}({433:function(e,t,n){"use strict";function r(e){"complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",e):e()}n.r(t),n.d(t,"default",(function(){return r}))}}).default; \ No newline at end of file +this.wp=this.wp||{},this.wp.domReady=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=437)}({437:function(e,t,n){"use strict";function r(e){"complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",e):e()}n.r(t),n.d(t,"default",(function(){return r}))}}).default; \ No newline at end of file diff --git a/wp-includes/js/dist/dom.js b/wp-includes/js/dist/dom.js index 3d08285f7c..48e517a410 100644 --- a/wp-includes/js/dist/dom.js +++ b/wp-includes/js/dist/dom.js @@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["dom"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 474); +/******/ return __webpack_require__(__webpack_require__.s = 479); /******/ }) /************************************************************************/ /******/ ({ @@ -94,7 +94,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["dom"] = /***/ }), -/***/ 474: +/***/ 479: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; diff --git a/wp-includes/js/dist/dom.min.js b/wp-includes/js/dist/dom.min.js index 40a8538add..9f90098ee3 100644 --- a/wp-includes/js/dist/dom.min.js +++ b/wp-includes/js/dist/dom.min.js @@ -1,2 +1,2 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.dom=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=474)}({2:function(e,t){!function(){e.exports=this.lodash}()},474:function(e,t,n){"use strict";n.r(t),n.d(t,"focus",(function(){return Z})),n.d(t,"isHorizontalEdge",(function(){return j})),n.d(t,"isVerticalEdge",(function(){return A})),n.d(t,"getRectangleFromRange",(function(){return R})),n.d(t,"computeCaretRect",(function(){return x})),n.d(t,"placeCaretAtHorizontalEdge",(function(){return D})),n.d(t,"placeCaretAtVerticalEdge",(function(){return L})),n.d(t,"isTextField",(function(){return M})),n.d(t,"isNumberInput",(function(){return _})),n.d(t,"documentHasTextSelection",(function(){return H})),n.d(t,"documentHasUncollapsedSelection",(function(){return B})),n.d(t,"documentHasSelection",(function(){return V})),n.d(t,"isEntirelySelected",(function(){return U})),n.d(t,"getScrollContainer",(function(){return F})),n.d(t,"getOffsetParent",(function(){return k})),n.d(t,"replace",(function(){return X})),n.d(t,"remove",(function(){return q})),n.d(t,"insertAfter",(function(){return z})),n.d(t,"unwrap",(function(){return G})),n.d(t,"replaceTag",(function(){return W})),n.d(t,"wrap",(function(){return Y})),n.d(t,"__unstableStripHTML",(function(){return J})),n.d(t,"isEmpty",(function(){return K})),n.d(t,"removeInvalidHTML",(function(){return Q})),n.d(t,"getPhrasingContentSchema",(function(){return C})),n.d(t,"isPhrasingContent",(function(){return w})),n.d(t,"isTextContent",(function(){return T}));var r={};n.r(r),n.d(r,"find",(function(){return u}));var i={};n.r(i),n.d(i,"isTabbableIndex",(function(){return d})),n.d(i,"find",(function(){return b})),n.d(i,"findPrevious",(function(){return h})),n.d(i,"findNext",(function(){return g}));var o=["[tabindex]","a[href]","button:not([disabled])",'input:not([type="hidden"]):not([disabled])',"select:not([disabled])","textarea:not([disabled])","iframe","object","embed","area[href]","[contenteditable]:not([contenteditable=false])"].join(",");function a(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0}function u(e){var t=e.querySelectorAll(o);return Array.from(t).filter((function(e){return!(!a(e)||function(e){return"iframe"===e.nodeName.toLowerCase()&&"-1"===e.getAttribute("tabindex")}(e))&&("AREA"!==e.nodeName||function(e){var t=e.closest("map[name]");if(!t)return!1;var n=e.ownerDocument.querySelector('img[usemap="#'+t.name+'"]');return!!n&&a(n)}(e))}))}var c=n(2);function l(e){var t=e.getAttribute("tabindex");return null===t?0:parseInt(t,10)}function d(e){return-1!==l(e)}function s(e,t){return{element:e,index:t}}function f(e){return e.element}function m(e,t){var n=l(e.element),r=l(t.element);return n===r?e.index-t.index:n-r}function p(e){return e.filter(d).map(s).sort(m).map(f).reduce((t={},function(e,n){var r=n.nodeName,i=n.type,o=n.checked,a=n.name;if("INPUT"!==r||"radio"!==i||!a)return e.concat(n);var u=t.hasOwnProperty(a);if(!o&&u)return e;if(u){var l=t[a];e=Object(c.without)(e,l)}return t[a]=n,e.concat(n)}),[]);var t}function b(e){return p(u(e))}function h(e){var t=u(e.ownerDocument.body),n=t.indexOf(e);return t.length=n,Object(c.last)(p(t))}function g(e){var t=u(e.ownerDocument.body),n=t.indexOf(e),r=t.slice(n+1).filter((function(t){return!e.contains(t)}));return Object(c.first)(p(r))}var v=n(5);function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function N(e){for(var t=1;tf&&u===t)return!1;var m=parseInt(s["padding".concat(t?"Top":"Bottom")],10)||0,p=3*parseInt(f,10)/4,b=e.getBoundingClientRect(),h=R(o);if(!(t?b.top+m>h.top-p:b.bottom-m3&&void 0!==arguments[3])||arguments[3];if(e)if(n&&e.isContentEditable){var i=n.height/2,o=e.getBoundingClientRect(),a=n.left,u=t?o.bottom-i:o.top+i,c=e.ownerDocument,l=c.defaultView,d=I(c,a,u,e);if(!d||!e.contains(d.startContainer))return!r||d&&d.startContainer&&d.startContainer.contains(e)?void D(e,t):(e.scrollIntoView(t),void L(e,t,n,!1));var s=l.getSelection();s.removeAllRanges(),s.addRange(d),e.focus(),s.removeAllRanges(),s.addRange(d)}else D(e,t)}function M(e){var t=e.nodeName,n=e.contentEditable;return"INPUT"===t&&!["button","checkbox","hidden","file","radio","image","range","reset","submit","number"].includes(e.type)||"TEXTAREA"===t||"true"===n}function _(e){var t=e.nodeName,n=e.type,r=e.valueAsNumber;return"INPUT"===t&&"number"===n&&!!r}function H(e){var t=e.defaultView.getSelection(),n=t.rangeCount?t.getRangeAt(0):null;return n&&!n.collapsed}function B(e){return H(e)||function(e){if(!M(e)&&!_(e))return!1;try{var t=e.selectionStart,n=e.selectionEnd;return null!==t&&t!==n}catch(e){return!1}}(e.activeElement)}function V(e){return M(e.activeElement)||_(e.activeElement)||H(e)}function U(e){if(Object(c.includes)(["INPUT","TEXTAREA"],e.nodeName))return 0===e.selectionStart&&e.value.length===e.selectionEnd;if(!e.isContentEditable)return!0;var t=e.ownerDocument.defaultView.getSelection(),n=t.rangeCount?t.getRangeAt(0):null;if(!n)return!0;var r=n.startContainer,i=n.endContainer,o=n.startOffset,a=n.endOffset;if(r===e&&i===e&&0===o&&a===e.childNodes.length)return!0;var u=e.lastChild,l=u.nodeType===u.TEXT_NODE?u.data.length:u.childNodes.length;return r===e.firstChild&&i===e.lastChild&&0===o&&a===l}function F(e){if(e){if(e.scrollHeight>e.clientHeight){var t=P(e).overflowY;if(/(auto|scroll)/.test(t))return e}return F(e.parentNode)}}function k(e){for(var t;(t=e.parentNode)&&t.nodeType!==t.ELEMENT_NODE;);return t?"static"!==P(t).position?t:t.offsetParent:null}function X(e,t){z(t,e.parentNode),q(e)}function q(e){e.parentNode.removeChild(e)}function z(e,t){t.parentNode.insertBefore(e,t.nextSibling)}function G(e){for(var t=e.parentNode;e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)}function W(e,t){for(var n=e.ownerDocument.createElement(t);e.firstChild;)n.appendChild(e.firstChild);return e.parentNode.replaceChild(n,e),n}function Y(e,t){t.parentNode.insertBefore(e,t),e.appendChild(t)}function J(e){return(new window.DOMParser).parseFromString(e,"text/html").body.textContent||""}function K(e){return!e.hasChildNodes()||Array.from(e.childNodes).every((function(e){return e.nodeType===e.TEXT_NODE?!e.nodeValue.trim():e.nodeType!==e.ELEMENT_NODE||("BR"===e.nodeName||!e.hasAttributes()&&K(e))}))}function Q(e,t,n){var r=document.implementation.createHTMLDocument("");return r.body.innerHTML=e,function e(t,n,r,i){Array.from(t).forEach((function(t){var o=t.nodeName.toLowerCase();if(!r.hasOwnProperty(o)||r[o].isMatch&&!r[o].isMatch(t))e(t.childNodes,n,r,i),i&&!w(t)&&t.nextElementSibling&&z(n.createElement("br"),t),G(t);else if(t.nodeType===t.ELEMENT_NODE){var a=r[o],u=a.attributes,l=void 0===u?[]:u,d=a.classes,s=void 0===d?[]:d,f=a.children,m=a.require,p=void 0===m?[]:m,b=a.allowEmpty;if(f&&!b&&K(t))return void q(t);if(t.hasAttributes()&&(Array.from(t.attributes).forEach((function(e){var n=e.name;"class"===n||Object(c.includes)(l,n)||t.removeAttribute(n)})),t.classList&&t.classList.length)){var h=s.map((function(e){return"string"==typeof e?function(t){return t===e}:e instanceof RegExp?function(t){return e.test(t)}:c.noop}));Array.from(t.classList).forEach((function(e){h.some((function(t){return t(e)}))||t.classList.remove(e)})),t.classList.length||t.removeAttribute("class")}if(t.hasChildNodes()){if("*"===f)return;if(f)p.length&&!t.querySelector(p.join(","))?(e(t.childNodes,n,r,i),G(t)):"BODY"===t.parentNode.nodeName&&w(t)?(e(t.childNodes,n,r,i),Array.from(t.childNodes).some((function(e){return!w(e)}))&&G(t)):e(t.childNodes,n,f,i);else for(;t.firstChild;)q(t.firstChild)}}}))}(r.body.childNodes,r,t,n),r.body.innerHTML}var Z={focusable:r,tabbable:i}},5:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))}}); \ No newline at end of file +this.wp=this.wp||{},this.wp.dom=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=479)}({2:function(e,t){!function(){e.exports=this.lodash}()},479:function(e,t,n){"use strict";n.r(t),n.d(t,"focus",(function(){return Z})),n.d(t,"isHorizontalEdge",(function(){return j})),n.d(t,"isVerticalEdge",(function(){return A})),n.d(t,"getRectangleFromRange",(function(){return R})),n.d(t,"computeCaretRect",(function(){return x})),n.d(t,"placeCaretAtHorizontalEdge",(function(){return D})),n.d(t,"placeCaretAtVerticalEdge",(function(){return L})),n.d(t,"isTextField",(function(){return M})),n.d(t,"isNumberInput",(function(){return _})),n.d(t,"documentHasTextSelection",(function(){return H})),n.d(t,"documentHasUncollapsedSelection",(function(){return B})),n.d(t,"documentHasSelection",(function(){return V})),n.d(t,"isEntirelySelected",(function(){return U})),n.d(t,"getScrollContainer",(function(){return F})),n.d(t,"getOffsetParent",(function(){return k})),n.d(t,"replace",(function(){return X})),n.d(t,"remove",(function(){return q})),n.d(t,"insertAfter",(function(){return z})),n.d(t,"unwrap",(function(){return G})),n.d(t,"replaceTag",(function(){return W})),n.d(t,"wrap",(function(){return Y})),n.d(t,"__unstableStripHTML",(function(){return J})),n.d(t,"isEmpty",(function(){return K})),n.d(t,"removeInvalidHTML",(function(){return Q})),n.d(t,"getPhrasingContentSchema",(function(){return C})),n.d(t,"isPhrasingContent",(function(){return w})),n.d(t,"isTextContent",(function(){return T}));var r={};n.r(r),n.d(r,"find",(function(){return u}));var i={};n.r(i),n.d(i,"isTabbableIndex",(function(){return d})),n.d(i,"find",(function(){return b})),n.d(i,"findPrevious",(function(){return h})),n.d(i,"findNext",(function(){return g}));var o=["[tabindex]","a[href]","button:not([disabled])",'input:not([type="hidden"]):not([disabled])',"select:not([disabled])","textarea:not([disabled])","iframe","object","embed","area[href]","[contenteditable]:not([contenteditable=false])"].join(",");function a(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0}function u(e){var t=e.querySelectorAll(o);return Array.from(t).filter((function(e){return!(!a(e)||function(e){return"iframe"===e.nodeName.toLowerCase()&&"-1"===e.getAttribute("tabindex")}(e))&&("AREA"!==e.nodeName||function(e){var t=e.closest("map[name]");if(!t)return!1;var n=e.ownerDocument.querySelector('img[usemap="#'+t.name+'"]');return!!n&&a(n)}(e))}))}var c=n(2);function l(e){var t=e.getAttribute("tabindex");return null===t?0:parseInt(t,10)}function d(e){return-1!==l(e)}function s(e,t){return{element:e,index:t}}function f(e){return e.element}function m(e,t){var n=l(e.element),r=l(t.element);return n===r?e.index-t.index:n-r}function p(e){return e.filter(d).map(s).sort(m).map(f).reduce((t={},function(e,n){var r=n.nodeName,i=n.type,o=n.checked,a=n.name;if("INPUT"!==r||"radio"!==i||!a)return e.concat(n);var u=t.hasOwnProperty(a);if(!o&&u)return e;if(u){var l=t[a];e=Object(c.without)(e,l)}return t[a]=n,e.concat(n)}),[]);var t}function b(e){return p(u(e))}function h(e){var t=u(e.ownerDocument.body),n=t.indexOf(e);return t.length=n,Object(c.last)(p(t))}function g(e){var t=u(e.ownerDocument.body),n=t.indexOf(e),r=t.slice(n+1).filter((function(t){return!e.contains(t)}));return Object(c.first)(p(r))}var v=n(5);function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function N(e){for(var t=1;tf&&u===t)return!1;var m=parseInt(s["padding".concat(t?"Top":"Bottom")],10)||0,p=3*parseInt(f,10)/4,b=e.getBoundingClientRect(),h=R(o);if(!(t?b.top+m>h.top-p:b.bottom-m3&&void 0!==arguments[3])||arguments[3];if(e)if(n&&e.isContentEditable){var i=n.height/2,o=e.getBoundingClientRect(),a=n.left,u=t?o.bottom-i:o.top+i,c=e.ownerDocument,l=c.defaultView,d=I(c,a,u,e);if(!d||!e.contains(d.startContainer))return!r||d&&d.startContainer&&d.startContainer.contains(e)?void D(e,t):(e.scrollIntoView(t),void L(e,t,n,!1));var s=l.getSelection();s.removeAllRanges(),s.addRange(d),e.focus(),s.removeAllRanges(),s.addRange(d)}else D(e,t)}function M(e){var t=e.nodeName,n=e.contentEditable;return"INPUT"===t&&!["button","checkbox","hidden","file","radio","image","range","reset","submit","number"].includes(e.type)||"TEXTAREA"===t||"true"===n}function _(e){var t=e.nodeName,n=e.type,r=e.valueAsNumber;return"INPUT"===t&&"number"===n&&!!r}function H(e){var t=e.defaultView.getSelection(),n=t.rangeCount?t.getRangeAt(0):null;return n&&!n.collapsed}function B(e){return H(e)||function(e){if(!M(e)&&!_(e))return!1;try{var t=e.selectionStart,n=e.selectionEnd;return null!==t&&t!==n}catch(e){return!1}}(e.activeElement)}function V(e){return M(e.activeElement)||_(e.activeElement)||H(e)}function U(e){if(Object(c.includes)(["INPUT","TEXTAREA"],e.nodeName))return 0===e.selectionStart&&e.value.length===e.selectionEnd;if(!e.isContentEditable)return!0;var t=e.ownerDocument.defaultView.getSelection(),n=t.rangeCount?t.getRangeAt(0):null;if(!n)return!0;var r=n.startContainer,i=n.endContainer,o=n.startOffset,a=n.endOffset;if(r===e&&i===e&&0===o&&a===e.childNodes.length)return!0;var u=e.lastChild,l=u.nodeType===u.TEXT_NODE?u.data.length:u.childNodes.length;return r===e.firstChild&&i===e.lastChild&&0===o&&a===l}function F(e){if(e){if(e.scrollHeight>e.clientHeight){var t=P(e).overflowY;if(/(auto|scroll)/.test(t))return e}return F(e.parentNode)}}function k(e){for(var t;(t=e.parentNode)&&t.nodeType!==t.ELEMENT_NODE;);return t?"static"!==P(t).position?t:t.offsetParent:null}function X(e,t){z(t,e.parentNode),q(e)}function q(e){e.parentNode.removeChild(e)}function z(e,t){t.parentNode.insertBefore(e,t.nextSibling)}function G(e){for(var t=e.parentNode;e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)}function W(e,t){for(var n=e.ownerDocument.createElement(t);e.firstChild;)n.appendChild(e.firstChild);return e.parentNode.replaceChild(n,e),n}function Y(e,t){t.parentNode.insertBefore(e,t),e.appendChild(t)}function J(e){return(new window.DOMParser).parseFromString(e,"text/html").body.textContent||""}function K(e){return!e.hasChildNodes()||Array.from(e.childNodes).every((function(e){return e.nodeType===e.TEXT_NODE?!e.nodeValue.trim():e.nodeType!==e.ELEMENT_NODE||("BR"===e.nodeName||!e.hasAttributes()&&K(e))}))}function Q(e,t,n){var r=document.implementation.createHTMLDocument("");return r.body.innerHTML=e,function e(t,n,r,i){Array.from(t).forEach((function(t){var o=t.nodeName.toLowerCase();if(!r.hasOwnProperty(o)||r[o].isMatch&&!r[o].isMatch(t))e(t.childNodes,n,r,i),i&&!w(t)&&t.nextElementSibling&&z(n.createElement("br"),t),G(t);else if(t.nodeType===t.ELEMENT_NODE){var a=r[o],u=a.attributes,l=void 0===u?[]:u,d=a.classes,s=void 0===d?[]:d,f=a.children,m=a.require,p=void 0===m?[]:m,b=a.allowEmpty;if(f&&!b&&K(t))return void q(t);if(t.hasAttributes()&&(Array.from(t.attributes).forEach((function(e){var n=e.name;"class"===n||Object(c.includes)(l,n)||t.removeAttribute(n)})),t.classList&&t.classList.length)){var h=s.map((function(e){return"string"==typeof e?function(t){return t===e}:e instanceof RegExp?function(t){return e.test(t)}:c.noop}));Array.from(t.classList).forEach((function(e){h.some((function(t){return t(e)}))||t.classList.remove(e)})),t.classList.length||t.removeAttribute("class")}if(t.hasChildNodes()){if("*"===f)return;if(f)p.length&&!t.querySelector(p.join(","))?(e(t.childNodes,n,r,i),G(t)):"BODY"===t.parentNode.nodeName&&w(t)?(e(t.childNodes,n,r,i),Array.from(t.childNodes).some((function(e){return!w(e)}))&&G(t)):e(t.childNodes,n,f,i);else for(;t.firstChild;)q(t.firstChild)}}}))}(r.body.childNodes,r,t,n),r.body.innerHTML}var Z={focusable:r,tabbable:i}},5:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))}}); \ No newline at end of file diff --git a/wp-includes/js/dist/edit-post.js b/wp-includes/js/dist/edit-post.js index 181e017db3..7e5161c6e1 100644 --- a/wp-includes/js/dist/edit-post.js +++ b/wp-includes/js/dist/edit-post.js @@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["editPost"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 453); +/******/ return __webpack_require__(__webpack_require__.s = 456); /******/ }) /************************************************************************/ /******/ ({ @@ -108,17 +108,10 @@ this["wp"] = this["wp"] || {}; this["wp"]["editPost"] = /***/ }), -/***/ 100: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["coreData"]; }()); - -/***/ }), - /***/ 101: /***/ (function(module, exports) { -(function() { module.exports = this["wp"]["notices"]; }()); +(function() { module.exports = this["wp"]["viewport"]; }()); /***/ }), @@ -320,63 +313,7 @@ process.umask = function() { return 0; }; /***/ }), -/***/ 113: -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -function flattenIntoMap( map, effects ) { - var i; - if ( Array.isArray( effects ) ) { - for ( i = 0; i < effects.length; i++ ) { - flattenIntoMap( map, effects[ i ] ); - } - } else { - for ( i in effects ) { - map[ i ] = ( map[ i ] || [] ).concat( effects[ i ] ); - } - } -} - -function refx( effects ) { - var map = {}, - middleware; - - flattenIntoMap( map, effects ); - - middleware = function( store ) { - return function( next ) { - return function( action ) { - var handlers = map[ action.type ], - result = next( action ), - i, handlerAction; - - if ( handlers ) { - for ( i = 0; i < handlers.length; i++ ) { - handlerAction = handlers[ i ]( action, store ); - if ( handlerAction ) { - store.dispatch( handlerAction ); - } - } - } - - return result; - }; - }; - }; - - middleware.effects = map; - - return middleware; -} - -module.exports = refx; - - -/***/ }), - -/***/ 117: +/***/ 116: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -392,13 +329,15 @@ module.exports = refx; function BaseOption(_ref) { - var label = _ref.label, + var help = _ref.help, + label = _ref.label, isChecked = _ref.isChecked, onChange = _ref.onChange, children = _ref.children; return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("div", { - className: "edit-post-options-modal__option" + className: "edit-post-preferences-modal__option" }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["CheckboxControl"], { + help: help, label: label, checked: isChecked, onChange: onChange @@ -465,12 +404,19 @@ function _slicedToArray(arr, i) { /***/ }), +/***/ 121: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["reusableBlocks"]; }()); + +/***/ }), + /***/ 14: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutProperties; }); -/* harmony import */ var _objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(42); +/* harmony import */ var _objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(43); function _objectWithoutProperties(source, excluded) { if (source == null) return {}; @@ -493,7 +439,95 @@ function _objectWithoutProperties(source, excluded) { /***/ }), -/***/ 15: +/***/ 150: +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +function flattenIntoMap( map, effects ) { + var i; + if ( Array.isArray( effects ) ) { + for ( i = 0; i < effects.length; i++ ) { + flattenIntoMap( map, effects[ i ] ); + } + } else { + for ( i in effects ) { + map[ i ] = ( map[ i ] || [] ).concat( effects[ i ] ); + } + } +} + +function refx( effects ) { + var map = {}, + middleware; + + flattenIntoMap( map, effects ); + + middleware = function( store ) { + return function( next ) { + return function( action ) { + var handlers = map[ action.type ], + result = next( action ), + i, handlerAction; + + if ( handlers ) { + for ( i = 0; i < handlers.length; i++ ) { + handlerAction = handlers[ i ]( action, store ); + if ( handlerAction ) { + store.dispatch( handlerAction ); + } + } + } + + return result; + }; + }; + }; + + middleware.effects = map; + + return middleware; +} + +module.exports = refx; + + +/***/ }), + +/***/ 156: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["mediaUtils"]; }()); + +/***/ }), + +/***/ 159: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); + + +/** + * WordPress dependencies + */ + +var closeSmall = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["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" +})); +/* harmony default export */ __webpack_exports__["a"] = (closeSmall); + + +/***/ }), + +/***/ 16: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -508,14 +542,7 @@ function _assertThisInitialized(self) { /***/ }), -/***/ 155: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["mediaUtils"]; }()); - -/***/ }), - -/***/ 157: +/***/ 160: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -540,7 +567,7 @@ var close = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElemen /***/ }), -/***/ 158: +/***/ 161: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -565,7 +592,7 @@ var check = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElemen /***/ }), -/***/ 166: +/***/ 169: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -583,7 +610,7 @@ var check = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElemen /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _wordpress_warning__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(90); /* harmony import */ var _wordpress_warning__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_warning__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var _options_modal_options__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(485); +/* harmony import */ var _preferences_modal_options__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(489); /** @@ -619,7 +646,7 @@ var PluginDocumentSettingFill = function PluginDocumentSettingFill(_ref) { title = _ref.title, icon = _ref.icon, children = _ref.children; - return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_options_modal_options__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"], { + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_preferences_modal_options__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"], { label: title, panelName: panelName }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(Fill, null, isEnabled && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["PanelBody"], { @@ -717,20 +744,6 @@ PluginDocumentSettingPanel.Slot = Slot; /***/ 17: /***/ (function(module, __webpack_exports__, __webpack_require__) { -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _getPrototypeOf; }); -function _getPrototypeOf(o) { - _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { - return o.__proto__ || Object.getPrototypeOf(o); - }; - return _getPrototypeOf(o); -} - -/***/ }), - -/***/ 18: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - "use strict"; // EXPORTS @@ -765,35 +778,24 @@ function _toConsumableArray(arr) { /***/ }), -/***/ 181: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); - - -/** - * WordPress dependencies - */ - -var closeSmall = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" -}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["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" -})); -/* harmony default export */ __webpack_exports__["a"] = (closeSmall); +/***/ 18: +/***/ (function(module, exports) { +(function() { module.exports = this["wp"]["keycodes"]; }()); /***/ }), /***/ 19: -/***/ (function(module, exports) { +/***/ (function(module, __webpack_exports__, __webpack_require__) { -(function() { module.exports = this["wp"]["keycodes"]; }()); +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _getPrototypeOf; }); +function _getPrototypeOf(o) { + _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }; + return _getPrototypeOf(o); +} /***/ }), @@ -805,29 +807,13 @@ var closeSmall = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createE /***/ }), /***/ 20: -/***/ (function(module, __webpack_exports__, __webpack_require__) { +/***/ (function(module, exports) { -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _createClass; }); -function _defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, descriptor.key, descriptor); - } -} - -function _createClass(Constructor, protoProps, staticProps) { - if (protoProps) _defineProperties(Constructor.prototype, protoProps); - if (staticProps) _defineProperties(Constructor, staticProps); - return Constructor; -} +(function() { module.exports = this["regeneratorRuntime"]; }()); /***/ }), -/***/ 208: +/***/ 209: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -868,6 +854,29 @@ function _classCallCheck(instance, Constructor) { /***/ 22: /***/ (function(module, __webpack_exports__, __webpack_require__) { +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _createClass; }); +function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + if ("value" in descriptor) descriptor.writable = true; + Object.defineProperty(target, descriptor.key, descriptor); + } +} + +function _createClass(Constructor, protoProps, staticProps) { + if (protoProps) _defineProperties(Constructor.prototype, protoProps); + if (staticProps) _defineProperties(Constructor, staticProps); + return Constructor; +} + +/***/ }), + +/***/ 23: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + "use strict"; // EXPORTS @@ -901,13 +910,13 @@ function _inherits(subClass, superClass) { /***/ }), -/***/ 23: +/***/ 24: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _possibleConstructorReturn; }); /* harmony import */ var _helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(40); -/* harmony import */ var _assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(15); +/* harmony import */ var _assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(16); function _possibleConstructorReturn(self, call) { @@ -920,13 +929,6 @@ function _possibleConstructorReturn(self, call) { /***/ }), -/***/ 24: -/***/ (function(module, exports) { - -(function() { module.exports = this["regeneratorRuntime"]; }()); - -/***/ }), - /***/ 27: /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -944,63 +946,11 @@ function _arrayLikeToArray(arr, len) { /***/ }), -/***/ 289: +/***/ 291: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["blockLibrary"]; }()); -/***/ }), - -/***/ 298: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); - - -/** - * WordPress dependencies - */ - -var starFilled = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" -}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { - d: "M11.776 4.454a.25.25 0 01.448 0l2.069 4.192a.25.25 0 00.188.137l4.626.672a.25.25 0 01.139.426l-3.348 3.263a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.362.263l-4.138-2.175a.25.25 0 00-.232 0l-4.138 2.175a.25.25 0 01-.363-.263l.79-4.607a.25.25 0 00-.071-.222L4.754 9.881a.25.25 0 01.139-.426l4.626-.672a.25.25 0 00.188-.137l2.069-4.192z" -})); -/* harmony default export */ __webpack_exports__["a"] = (starFilled); - - -/***/ }), - -/***/ 299: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); - - -/** - * WordPress dependencies - */ - -var starEmpty = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" -}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { - fillRule: "evenodd", - d: "M9.706 8.646a.25.25 0 01-.188.137l-4.626.672a.25.25 0 00-.139.427l3.348 3.262a.25.25 0 01.072.222l-.79 4.607a.25.25 0 00.362.264l4.138-2.176a.25.25 0 01.233 0l4.137 2.175a.25.25 0 00.363-.263l-.79-4.607a.25.25 0 01.072-.222l3.347-3.262a.25.25 0 00-.139-.427l-4.626-.672a.25.25 0 01-.188-.137l-2.069-4.192a.25.25 0 00-.448 0L9.706 8.646zM12 7.39l-.948 1.921a1.75 1.75 0 01-1.317.957l-2.12.308 1.534 1.495c.412.402.6.982.503 1.55l-.362 2.11 1.896-.997a1.75 1.75 0 011.629 0l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39z", - clipRule: "evenodd" -})); -/* harmony default export */ __webpack_exports__["a"] = (starEmpty); - - /***/ }), /***/ 3: @@ -1026,6 +976,58 @@ function _unsupportedIterableToArray(o, minLen) { if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Object(_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen); } +/***/ }), + +/***/ 301: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); + + +/** + * WordPress dependencies + */ + +var starFilled = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { + d: "M11.776 4.454a.25.25 0 01.448 0l2.069 4.192a.25.25 0 00.188.137l4.626.672a.25.25 0 01.139.426l-3.348 3.263a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.362.263l-4.138-2.175a.25.25 0 00-.232 0l-4.138 2.175a.25.25 0 01-.363-.263l.79-4.607a.25.25 0 00-.071-.222L4.754 9.881a.25.25 0 01.139-.426l4.626-.672a.25.25 0 00.188-.137l2.069-4.192z" +})); +/* harmony default export */ __webpack_exports__["a"] = (starFilled); + + +/***/ }), + +/***/ 302: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); + + +/** + * WordPress dependencies + */ + +var starEmpty = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { + fillRule: "evenodd", + d: "M9.706 8.646a.25.25 0 01-.188.137l-4.626.672a.25.25 0 00-.139.427l3.348 3.262a.25.25 0 01.072.222l-.79 4.607a.25.25 0 00.362.264l4.138-2.176a.25.25 0 01.233 0l4.137 2.175a.25.25 0 00.363-.263l-.79-4.607a.25.25 0 01.072-.222l3.347-3.262a.25.25 0 00-.139-.427l-4.626-.672a.25.25 0 01-.188-.137l-2.069-4.192a.25.25 0 00-.448 0L9.706 8.646zM12 7.39l-.948 1.921a1.75 1.75 0 01-1.317.957l-2.12.308 1.534 1.495c.412.402.6.982.503 1.55l-.362 2.11 1.896-.997a1.75 1.75 0 011.629 0l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39z", + clipRule: "evenodd" +})); +/* harmony default export */ __webpack_exports__["a"] = (starEmpty); + + /***/ }), /***/ 31: @@ -1035,7 +1037,7 @@ function _unsupportedIterableToArray(o, minLen) { /***/ }), -/***/ 313: +/***/ 316: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -1144,7 +1146,7 @@ function _typeof(obj) { /***/ }), -/***/ 41: +/***/ 42: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -1426,29 +1428,7 @@ function isShallowEqual( a, b, fromIndex ) { /***/ }), -/***/ 42: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutPropertiesLoose; }); -function _objectWithoutPropertiesLoose(source, excluded) { - if (source == null) return {}; - var target = {}; - var sourceKeys = Object.keys(source); - var key, i; - - for (i = 0; i < sourceKeys.length; i++) { - key = sourceKeys[i]; - if (excluded.indexOf(key) >= 0) continue; - target[key] = source[key]; - } - - return target; -} - -/***/ }), - -/***/ 423: +/***/ 427: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -1473,7 +1453,29 @@ var external = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEle /***/ }), -/***/ 434: +/***/ 43: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutPropertiesLoose; }); +function _objectWithoutPropertiesLoose(source, excluded) { + if (source == null) return {}; + var target = {}; + var sourceKeys = Object.keys(source); + var key, i; + + for (i = 0; i < sourceKeys.length; i++) { + key = sourceKeys[i]; + if (excluded.indexOf(key) >= 0) continue; + target[key] = source[key]; + } + + return target; +} + +/***/ }), + +/***/ 438: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -1498,14 +1500,7 @@ var plugins = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElem /***/ }), -/***/ 45: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["apiFetch"]; }()); - -/***/ }), - -/***/ 453: +/***/ 456: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -1595,7 +1590,7 @@ __webpack_require__.d(store_selectors_namespaceObject, "isItemPinned", function( var external_this_wp_element_ = __webpack_require__(0); // EXTERNAL MODULE: external {"this":["wp","coreData"]} -var external_this_wp_coreData_ = __webpack_require__(100); +var external_this_wp_coreData_ = __webpack_require__(83); // EXTERNAL MODULE: external {"this":["wp","blockEditor"]} var external_this_wp_blockEditor_ = __webpack_require__(6); @@ -1606,20 +1601,23 @@ var external_this_wp_editor_ = __webpack_require__(34); // EXTERNAL MODULE: external {"this":["wp","keyboardShortcuts"]} var external_this_wp_keyboardShortcuts_ = __webpack_require__(53); +// EXTERNAL MODULE: external {"this":["wp","reusableBlocks"]} +var external_this_wp_reusableBlocks_ = __webpack_require__(121); + // EXTERNAL MODULE: external {"this":["wp","viewport"]} -var external_this_wp_viewport_ = __webpack_require__(89); +var external_this_wp_viewport_ = __webpack_require__(101); // EXTERNAL MODULE: external {"this":["wp","notices"]} -var external_this_wp_notices_ = __webpack_require__(101); +var external_this_wp_notices_ = __webpack_require__(92); // EXTERNAL MODULE: external {"this":["wp","blockLibrary"]} -var external_this_wp_blockLibrary_ = __webpack_require__(289); +var external_this_wp_blockLibrary_ = __webpack_require__(291); // EXTERNAL MODULE: external {"this":["wp","hooks"]} var external_this_wp_hooks_ = __webpack_require__(33); // EXTERNAL MODULE: external {"this":["wp","mediaUtils"]} -var external_this_wp_mediaUtils_ = __webpack_require__(155); +var external_this_wp_mediaUtils_ = __webpack_require__(156); // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/hooks/components/index.js /** @@ -1793,7 +1791,7 @@ Object(external_this_wp_hooks_["addFilter"])('editor.BlockEdit', 'core/edit-post // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/external.js -var external = __webpack_require__(423); +var external = __webpack_require__(427); // EXTERNAL MODULE: external {"this":["wp","plugins"]} var external_this_wp_plugins_ = __webpack_require__(77); @@ -1876,7 +1874,7 @@ function ManageBlocksMenuItem(_ref) { })(ManageBlocksMenuItem)); // EXTERNAL MODULE: external {"this":["wp","keycodes"]} -var external_this_wp_keycodes_ = __webpack_require__(19); +var external_this_wp_keycodes_ = __webpack_require__(18); // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/plugins/keyboard-shortcuts-help-menu-item/index.js @@ -2012,7 +2010,7 @@ var defineProperty = __webpack_require__(5); var external_this_wp_dataControls_ = __webpack_require__(32); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules -var toConsumableArray = __webpack_require__(18); +var toConsumableArray = __webpack_require__(17); // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/store/defaults.js var PREFERENCES_DEFAULTS = { @@ -2026,7 +2024,8 @@ var PREFERENCES_DEFAULTS = { fixedToolbar: false, welcomeGuide: true, fullscreenMode: true, - showIconLabels: false + showIconLabels: false, + themeStyles: true }, hiddenBlockTypes: [], preferredStyleVariations: {}, @@ -2332,21 +2331,21 @@ var reducer_metaBoxes = Object(external_this_wp_data_["combineReducers"])({ })); // EXTERNAL MODULE: ./node_modules/refx/refx.js -var refx = __webpack_require__(113); +var refx = __webpack_require__(150); var refx_default = /*#__PURE__*/__webpack_require__.n(refx); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules var slicedToArray = __webpack_require__(12); // EXTERNAL MODULE: external {"this":["wp","a11y"]} -var external_this_wp_a11y_ = __webpack_require__(52); +var external_this_wp_a11y_ = __webpack_require__(46); // EXTERNAL MODULE: external {"this":["wp","apiFetch"]} -var external_this_wp_apiFetch_ = __webpack_require__(45); +var external_this_wp_apiFetch_ = __webpack_require__(47); var external_this_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_apiFetch_); // EXTERNAL MODULE: external {"this":"regeneratorRuntime"} -var external_this_regeneratorRuntime_ = __webpack_require__(24); +var external_this_regeneratorRuntime_ = __webpack_require__(20); var external_this_regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(external_this_regeneratorRuntime_); // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/store/actions.js @@ -2670,7 +2669,7 @@ function actions_setIsInserterOpened(value) { } // EXTERNAL MODULE: ./node_modules/rememo/es/rememo.js -var rememo = __webpack_require__(41); +var rememo = __webpack_require__(42); // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/store/selectors.js /** @@ -3273,16 +3272,16 @@ store_middlewares(store_store); var classCallCheck = __webpack_require__(21); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js -var createClass = __webpack_require__(20); +var createClass = __webpack_require__(22); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules -var inherits = __webpack_require__(22); +var inherits = __webpack_require__(23); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js -var possibleConstructorReturn = __webpack_require__(23); +var possibleConstructorReturn = __webpack_require__(24); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js -var getPrototypeOf = __webpack_require__(17); +var getPrototypeOf = __webpack_require__(19); // EXTERNAL MODULE: ./node_modules/memize/index.js var memize = __webpack_require__(60); @@ -3570,16 +3569,16 @@ var build_module_store_store = Object(external_this_wp_data_["registerStore"])(c /* harmony default export */ var interface_build_module_store = (build_module_store_store); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/check.js -var check = __webpack_require__(158); +var check = __webpack_require__(161); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/star-filled.js -var star_filled = __webpack_require__(298); +var star_filled = __webpack_require__(301); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/star-empty.js -var star_empty = __webpack_require__(299); +var star_empty = __webpack_require__(302); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/close-small.js -var close_small = __webpack_require__(181); +var close_small = __webpack_require__(159); // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/complementary-area-context/index.js /** @@ -3878,7 +3877,8 @@ function ComplementaryArea(_ref3) { "aria-expanded": isActive, label: title, icon: showIconLabels ? check["a" /* default */] : icon, - showTooltip: !showIconLabels + showTooltip: !showIconLabels, + isTertiary: showIconLabels })), isActive && Object(external_this_wp_element_["createElement"])(ComplementaryAreaFill, { className: classnames_default()('interface-complementary-area', className), scope: scope @@ -4061,6 +4061,10 @@ var fullscreen_mode_FullscreenMode = /*#__PURE__*/function (_Component) { if (this.isSticky) { document.body.classList.add('sticky-menu'); } + + if (this.props.isActive) { + document.body.classList.remove('is-fullscreen-mode'); + } } }, { key: "componentDidUpdate", @@ -4132,11 +4136,15 @@ function InterfaceSkeleton(_ref) { sidebar = _ref.sidebar, leftSidebar = _ref.leftSidebar, content = _ref.content, + drawer = _ref.drawer, actions = _ref.actions, labels = _ref.labels, className = _ref.className; useHTMLClass('interface-interface-skeleton__html-container'); var defaultLabels = { + /* translators: accessibility text for the nav bar landmark region. */ + drawer: Object(external_this_wp_i18n_["__"])('Drawer'), + /* translators: accessibility text for the top bar landmark region. */ header: Object(external_this_wp_i18n_["__"])('Header'), @@ -4160,6 +4168,12 @@ function InterfaceSkeleton(_ref) { return Object(external_this_wp_element_["createElement"])("div", { className: classnames_default()(className, 'interface-interface-skeleton') + }, !!drawer && Object(external_this_wp_element_["createElement"])("div", { + className: "interface-interface-skeleton__drawer", + role: "region", + "aria-label": mergedLabels.drawer + }, drawer), Object(external_this_wp_element_["createElement"])("div", { + className: "interface-interface-skeleton__editor" }, !!header && Object(external_this_wp_element_["createElement"])("div", { className: "interface-interface-skeleton__header", role: "region", @@ -4187,7 +4201,7 @@ function InterfaceSkeleton(_ref) { role: "region", "aria-label": mergedLabels.actions, tabIndex: "-1" - }, actions)), !!footer && Object(external_this_wp_element_["createElement"])("div", { + }, actions))), !!footer && Object(external_this_wp_element_["createElement"])("div", { className: "interface-interface-skeleton__footer", role: "region", "aria-label": mergedLabels.footer, @@ -4246,7 +4260,7 @@ MainDashboardButton.Slot = main_dashboard_button_Slot; // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/close.js -var library_close = __webpack_require__(157); +var library_close = __webpack_require__(160); // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/text-editor/index.js @@ -4303,12 +4317,12 @@ function TextEditor(_ref) { + function BlockInspectorButton(_ref) { var _ref$onClick = _ref.onClick, _onClick = _ref$onClick === void 0 ? external_this_lodash_["noop"] : _ref$onClick, _ref$small = _ref.small, - small = _ref$small === void 0 ? false : _ref$small, - speak = _ref.speak; + small = _ref$small === void 0 ? false : _ref$small; var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { return { @@ -4325,9 +4339,9 @@ function BlockInspectorButton(_ref) { var speakMessage = function speakMessage() { if (areAdvancedSettingsOpened) { - speak(Object(external_this_wp_i18n_["__"])('Block settings closed')); + Object(external_this_wp_a11y_["speak"])(Object(external_this_wp_i18n_["__"])('Block settings closed')); } else { - speak(Object(external_this_wp_i18n_["__"])('Additional settings are now available in the Editor block settings sidebar')); + Object(external_this_wp_a11y_["speak"])(Object(external_this_wp_i18n_["__"])('Additional settings are now available in the Editor block settings sidebar')); } }; @@ -4346,7 +4360,7 @@ function BlockInspectorButton(_ref) { shortcut: shortcut }, !small && label); } -/* harmony default export */ var block_inspector_button = (Object(external_this_wp_components_["withSpokenMessages"])(BlockInspectorButton)); +/* harmony default export */ var block_inspector_button = (BlockInspectorButton); // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/visual-editor/index.js @@ -5110,25 +5124,28 @@ function ManageBlocksModal(_ref) { }; })])(ManageBlocksModal)); -// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/options-modal/section.js +// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/preferences-modal/section.js var section_Section = function Section(_ref) { - var title = _ref.title, + var description = _ref.description, + title = _ref.title, children = _ref.children; return Object(external_this_wp_element_["createElement"])("section", { - className: "edit-post-options-modal__section" + className: "edit-post-preferences-modal__section" }, Object(external_this_wp_element_["createElement"])("h2", { - className: "edit-post-options-modal__section-title" - }, title), children); + className: "edit-post-preferences-modal__section-title" + }, title), description && Object(external_this_wp_element_["createElement"])("p", { + className: "edit-post-preferences-modal__section-description" + }, description), children); }; /* harmony default export */ var section = (section_Section); -// EXTERNAL MODULE: ./node_modules/@wordpress/edit-post/build-module/components/options-modal/options/base.js -var base = __webpack_require__(117); +// EXTERNAL MODULE: ./node_modules/@wordpress/edit-post/build-module/components/preferences-modal/options/base.js +var base = __webpack_require__(116); -// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/options-modal/options/enable-publish-sidebar.js +// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/preferences-modal/options/enable-publish-sidebar.js /** * WordPress dependencies */ @@ -5158,7 +5175,7 @@ var base = __webpack_require__(117); // See the edit-post's header component for the specific logic. Object(external_this_wp_viewport_["ifViewportMatches"])('medium'))(base["a" /* default */])); -// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/options-modal/options/enable-feature.js +// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/preferences-modal/options/enable-feature.js /** * WordPress dependencies */ @@ -5187,13 +5204,13 @@ Object(external_this_wp_viewport_["ifViewportMatches"])('medium'))(base["a" /* d }; }))(base["a" /* default */])); -// EXTERNAL MODULE: ./node_modules/@wordpress/edit-post/build-module/components/options-modal/options/enable-plugin-document-setting-panel.js -var enable_plugin_document_setting_panel = __webpack_require__(485); +// EXTERNAL MODULE: ./node_modules/@wordpress/edit-post/build-module/components/preferences-modal/options/enable-plugin-document-setting-panel.js +var enable_plugin_document_setting_panel = __webpack_require__(489); -// EXTERNAL MODULE: ./node_modules/@wordpress/edit-post/build-module/components/options-modal/options/enable-panel.js -var enable_panel = __webpack_require__(486); +// EXTERNAL MODULE: ./node_modules/@wordpress/edit-post/build-module/components/preferences-modal/options/enable-panel.js +var enable_panel = __webpack_require__(490); -// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/options-modal/options/enable-custom-fields.js +// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/preferences-modal/options/enable-custom-fields.js @@ -5218,9 +5235,9 @@ function CustomFieldsConfirmation(_ref) { setIsReloading = _useState2[1]; return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("p", { - className: "edit-post-options-modal__custom-fields-confirmation-message" + className: "edit-post-preferences-modal__custom-fields-confirmation-message" }, Object(external_this_wp_i18n_["__"])('A page reload is required for this change. Make sure your content is saved before reloading.')), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - className: "edit-post-options-modal__custom-fields-confirmation-button", + className: "edit-post-preferences-modal__custom-fields-confirmation-button", isSecondary: true, isBusy: isReloading, disabled: isReloading, @@ -5253,7 +5270,7 @@ function EnableCustomFieldsOption(_ref2) { }; })(EnableCustomFieldsOption)); -// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/options-modal/meta-boxes-section.js +// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/preferences-modal/meta-boxes-section.js @@ -5314,7 +5331,7 @@ function MetaBoxesSection(_ref) { }; })(MetaBoxesSection)); -// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/options-modal/index.js +// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/preferences-modal/index.js /** @@ -5337,8 +5354,8 @@ function MetaBoxesSection(_ref) { -var options_modal_MODAL_NAME = 'edit-post/options'; -function OptionsModal(_ref) { +var preferences_modal_MODAL_NAME = 'edit-post/preferences'; +function PreferencesModal(_ref) { var isModalActive = _ref.isModalActive, isViewable = _ref.isViewable, closeModal = _ref.closeModal; @@ -5348,27 +5365,46 @@ function OptionsModal(_ref) { } return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Modal"], { - className: "edit-post-options-modal", - title: Object(external_this_wp_i18n_["__"])('Options'), + className: "edit-post-preferences-modal", + title: Object(external_this_wp_i18n_["__"])('Preferences'), closeLabel: Object(external_this_wp_i18n_["__"])('Close'), onRequestClose: closeModal }, Object(external_this_wp_element_["createElement"])(section, { title: Object(external_this_wp_i18n_["__"])('General') }, Object(external_this_wp_element_["createElement"])(enable_publish_sidebar, { - label: Object(external_this_wp_i18n_["__"])('Pre-publish checks') + help: Object(external_this_wp_i18n_["__"])('Review settings such as categories and tags.'), + label: Object(external_this_wp_i18n_["__"])('Include pre-publish checklist') }), Object(external_this_wp_element_["createElement"])(enable_feature, { featureName: "mostUsedBlocks", - label: Object(external_this_wp_i18n_["__"])('Enable the Most Used Blocks category in the block library') - }), Object(external_this_wp_element_["createElement"])(enable_feature, { - featureName: "showIconLabels", - label: Object(external_this_wp_i18n_["__"])('Show button text labels') + help: Object(external_this_wp_i18n_["__"])('Places the most frequent blocks in the block library.'), + label: Object(external_this_wp_i18n_["__"])('Show most used blocks') })), Object(external_this_wp_element_["createElement"])(section, { - title: Object(external_this_wp_i18n_["__"])('Keyboard options') + title: Object(external_this_wp_i18n_["__"])('Keyboard') }, Object(external_this_wp_element_["createElement"])(enable_feature, { featureName: "keepCaretInsideBlock", - label: Object(external_this_wp_i18n_["__"])('Contain text cursor inside active block') + help: Object(external_this_wp_i18n_["__"])('Aids screen readers by stopping text caret from leaving blocks.'), + label: Object(external_this_wp_i18n_["__"])('Contain text cursor inside block.') })), Object(external_this_wp_element_["createElement"])(section, { - title: Object(external_this_wp_i18n_["__"])('Document panels') + title: Object(external_this_wp_i18n_["__"])('Appearance') + }, Object(external_this_wp_element_["createElement"])(enable_feature, { + featureName: "reducedUI", + help: Object(external_this_wp_i18n_["__"])('Compacts options and outlines in the toolbar.'), + label: Object(external_this_wp_i18n_["__"])('Reduce the interface') + }), Object(external_this_wp_element_["createElement"])(enable_feature, { + featureName: "focusMode", + help: Object(external_this_wp_i18n_["__"])('Highlights the current block and fades other content.'), + label: Object(external_this_wp_i18n_["__"])('Spotlight mode') + }), Object(external_this_wp_element_["createElement"])(enable_feature, { + featureName: "showIconLabels", + help: Object(external_this_wp_i18n_["__"])('Shows text instead of icons in toolbar.'), + label: Object(external_this_wp_i18n_["__"])('Display button labels') + }), Object(external_this_wp_element_["createElement"])(enable_feature, { + featureName: "themeStyles", + help: Object(external_this_wp_i18n_["__"])('Make the editor look like your theme.'), + label: Object(external_this_wp_i18n_["__"])('Use theme styles') + })), Object(external_this_wp_element_["createElement"])(section, { + title: Object(external_this_wp_i18n_["__"])('Document settings'), + description: Object(external_this_wp_i18n_["__"])('Choose what displays in the panel.') }, Object(external_this_wp_element_["createElement"])(enable_plugin_document_setting_panel["a" /* default */].Slot, null), isViewable && Object(external_this_wp_element_["createElement"])(enable_panel["a" /* default */], { label: Object(external_this_wp_i18n_["__"])('Permalink'), panelName: "post-link" @@ -5394,10 +5430,11 @@ function OptionsModal(_ref) { label: Object(external_this_wp_i18n_["__"])('Page attributes'), panelName: "page-attributes" }))), Object(external_this_wp_element_["createElement"])(meta_boxes_section, { - title: Object(external_this_wp_i18n_["__"])('Advanced panels') + title: Object(external_this_wp_i18n_["__"])('Additional panels'), + description: Object(external_this_wp_i18n_["__"])('Add extra areas to the editor.') })); } -/* harmony default export */ var options_modal = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select) { +/* harmony default export */ var preferences_modal = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select) { var _select = select('core/editor'), getEditedPostAttribute = _select.getEditedPostAttribute; @@ -5406,7 +5443,7 @@ function OptionsModal(_ref) { var postType = getPostType(getEditedPostAttribute('type')); return { - isModalActive: select('core/edit-post').isModalActive(options_modal_MODAL_NAME), + isModalActive: select('core/edit-post').isModalActive(preferences_modal_MODAL_NAME), isViewable: Object(external_this_lodash_["get"])(postType, ['viewable'], false) }; }), Object(external_this_wp_data_["withDispatch"])(function (dispatch) { @@ -5415,7 +5452,7 @@ function OptionsModal(_ref) { return dispatch('core/edit-post').closeModal(); } }; -}))(OptionsModal)); +}))(PreferencesModal)); // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/browser-url/index.js @@ -5659,7 +5696,7 @@ function FullscreenModeClose(_ref) { /* harmony default export */ var fullscreen_mode_close = (FullscreenModeClose); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/plus.js -var plus = __webpack_require__(208); +var plus = __webpack_require__(209); // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/header-toolbar/index.js @@ -5696,9 +5733,11 @@ function HeaderToolbar() { isTextModeEnabled: select('core/edit-post').getEditorMode() === 'text', previewDeviceType: select('core/edit-post').__experimentalGetPreviewDeviceType(), showIconLabels: select('core/edit-post').isFeatureActive('showIconLabels'), - isNavigationTool: select('core/block-editor').isNavigationMode() + isNavigationTool: select('core/block-editor').isNavigationMode(), + hasReducedUI: select('core/edit-post').isFeatureActive('reducedUI') }; }, []), + hasReducedUI = _useSelect.hasReducedUI, hasFixedToolbar = _useSelect.hasFixedToolbar, isInserterEnabled = _useSelect.isInserterEnabled, isInserterOpened = _useSelect.isInserterOpened, @@ -5710,6 +5749,10 @@ function HeaderToolbar() { var isLargeViewport = Object(external_this_wp_compose_["useViewportMatch"])('medium'); var isWideViewport = Object(external_this_wp_compose_["useViewportMatch"])('wide'); var isSmallViewport = Object(external_this_wp_compose_["useViewportMatch"])('small', '<'); + + var _useDispatch2 = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), + setNavigationMode = _useDispatch2.setNavigationMode; + var displayBlockToolbar = !isLargeViewport || previewDeviceType !== 'Desktop' || hasFixedToolbar; var toolbarAriaLabel = displayBlockToolbar ? /* translators: accessibility text for the editor toolbar when Top Toolbar is on */ @@ -5717,9 +5760,6 @@ function HeaderToolbar() { /* translators: accessibility text for the editor toolbar when Top Toolbar is off */ Object(external_this_wp_i18n_["__"])('Document tools'); - var _useDispatch2 = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), - setNavigationMode = _useDispatch2.setNavigationMode; - var onSwitchMode = function onSwitchMode(mode) { setNavigationMode(mode === 'edit' ? false : true); }; @@ -5739,6 +5779,8 @@ function HeaderToolbar() { return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["NavigableToolbar"], { className: "edit-post-header-toolbar", "aria-label": toolbarAriaLabel + }, Object(external_this_wp_element_["createElement"])("div", { + className: "edit-post-header-toolbar__left" }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarItem"], { ref: inserterButton, as: external_this_wp_components_["Button"], @@ -5763,7 +5805,7 @@ function HeaderToolbar() { , label: Object(external_this_wp_i18n_["_x"])('Add block', 'Generic label for block inserter button'), showTooltip: !showIconLabels - }, showIconLabels && Object(external_this_wp_i18n_["__"])('Add')), (isWideViewport || !showIconLabels) && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, isLargeViewport && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarItem"], { + }, showIconLabels && Object(external_this_wp_i18n_["__"])('Add')), !hasReducedUI && (isWideViewport || !showIconLabels) && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, isLargeViewport && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarItem"], { as: external_this_wp_blockEditor_["ToolSelector"], showTooltip: !showIconLabels, isTertiary: showIconLabels, @@ -5776,7 +5818,7 @@ function HeaderToolbar() { as: external_this_wp_editor_["EditorHistoryRedo"], showTooltip: !showIconLabels, isTertiary: showIconLabels - }), overflowItems), !isWideViewport && !isSmallViewport && showIconLabels && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["DropdownMenu"], { + }), overflowItems), !hasReducedUI && !isWideViewport && !isSmallViewport && showIconLabels && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["DropdownMenu"], { position: "bottom right", label: /* translators: button label text should, if possible, be under 16 @@ -5806,7 +5848,7 @@ function HeaderToolbar() { showTooltip: !showIconLabels, isTertiary: showIconLabels })), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuGroup"], null, overflowItems)); - }), displayBlockToolbar && Object(external_this_wp_element_["createElement"])("div", { + })), displayBlockToolbar && Object(external_this_wp_element_["createElement"])("div", { className: "edit-post-header-toolbar__block-toolbar" }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockToolbar"], { hideDragHandle: true @@ -5816,7 +5858,7 @@ function HeaderToolbar() { /* harmony default export */ var header_toolbar = (HeaderToolbar); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/more-vertical.js -var more_vertical = __webpack_require__(313); +var more_vertical = __webpack_require__(316); // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/mode-switcher/index.js @@ -5887,7 +5929,7 @@ function ModeSwitcher() { /* harmony default export */ var mode_switcher = (ModeSwitcher); -// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/options-menu-item/index.js +// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/preferences-menu-item/index.js /** @@ -5896,22 +5938,22 @@ function ModeSwitcher() { -function OptionsMenuItem(_ref) { +function PreferencesMenuItem(_ref) { var openModal = _ref.openModal; return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { onClick: function onClick() { - openModal('edit-post/options'); + openModal('edit-post/preferences'); } - }, Object(external_this_wp_i18n_["__"])('Options')); + }, Object(external_this_wp_i18n_["__"])('Preferences')); } -/* harmony default export */ var options_menu_item = (Object(external_this_wp_data_["withDispatch"])(function (dispatch) { +/* harmony default export */ var preferences_menu_item = (Object(external_this_wp_data_["withDispatch"])(function (dispatch) { var _dispatch = dispatch('core/edit-post'), openModal = _dispatch.openModal; return { openModal: openModal }; -})(OptionsMenuItem)); +})(PreferencesMenuItem)); // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/feature-toggle/index.js @@ -5930,6 +5972,7 @@ function OptionsMenuItem(_ref) { + function FeatureToggle(_ref) { var onToggle = _ref.onToggle, isActive = _ref.isActive, @@ -5937,14 +5980,13 @@ function FeatureToggle(_ref) { info = _ref.info, messageActivated = _ref.messageActivated, messageDeactivated = _ref.messageDeactivated, - speak = _ref.speak, shortcut = _ref.shortcut; var speakMessage = function speakMessage() { if (isActive) { - speak(messageDeactivated || Object(external_this_wp_i18n_["__"])('Feature deactivated')); + Object(external_this_wp_a11y_["speak"])(messageDeactivated || Object(external_this_wp_i18n_["__"])('Feature deactivated')); } else { - speak(messageActivated || Object(external_this_wp_i18n_["__"])('Feature activated')); + Object(external_this_wp_a11y_["speak"])(messageActivated || Object(external_this_wp_i18n_["__"])('Feature activated')); } }; @@ -5969,7 +6011,7 @@ function FeatureToggle(_ref) { dispatch('core/edit-post').toggleFeature(ownProps.feature); } }; -}), external_this_wp_components_["withSpokenMessages"]])(FeatureToggle)); +})])(FeatureToggle)); // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/writing-menu/index.js @@ -6082,7 +6124,7 @@ var more_menu_MoreMenu = function MoreMenu(_ref) { fillProps: { onClose: onClose } - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuGroup"], null, Object(external_this_wp_element_["createElement"])(options_menu_item, null))); + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuGroup"], null, Object(external_this_wp_element_["createElement"])(preferences_menu_item, null))); }); }; @@ -6254,13 +6296,15 @@ function Header(_ref) { hasActiveMetaboxes: select('core/edit-post').hasMetaBoxes(), isPublishSidebarOpened: select('core/edit-post').isPublishSidebarOpened(), isSaving: select('core/edit-post').isSavingMetaBoxes(), - showIconLabels: select('core/edit-post').isFeatureActive('showIconLabels') + showIconLabels: select('core/edit-post').isFeatureActive('showIconLabels'), + hasReducedUI: select('core/edit-post').isFeatureActive('reducedUI') }; }, []), hasActiveMetaboxes = _useSelect.hasActiveMetaboxes, isPublishSidebarOpened = _useSelect.isPublishSidebarOpened, isSaving = _useSelect.isSaving, - showIconLabels = _useSelect.showIconLabels; + showIconLabels = _useSelect.showIconLabels, + hasReducedUI = _useSelect.hasReducedUI; var isLargeViewport = Object(external_this_wp_compose_["useViewportMatch"])('large'); return Object(external_this_wp_element_["createElement"])("div", { @@ -6269,7 +6313,7 @@ function Header(_ref) { className: "edit-post-header__toolbar" }, Object(external_this_wp_element_["createElement"])(header_toolbar, null)), Object(external_this_wp_element_["createElement"])("div", { className: "edit-post-header__settings" - }, !isPublishSidebarOpened && // This button isn't completely hidden by the publish sidebar. + }, !hasReducedUI && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, !isPublishSidebarOpened && // This button isn't completely hidden by the publish sidebar. // We can't hide the whole toolbar when the publish sidebar is open because // we want to prevent mounting/unmounting the PostPublishButtonOrToggle DOM node. // We track that DOM node to return focus to the PostPublishButtonOrToggle @@ -6281,7 +6325,7 @@ function Header(_ref) { }), Object(external_this_wp_element_["createElement"])(DevicePreview, null), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PostPreviewButton"], { forceIsAutosaveable: hasActiveMetaboxes, forcePreviewLink: isSaving ? null : undefined - }), Object(external_this_wp_element_["createElement"])(post_publish_button_or_toggle, { + })), Object(external_this_wp_element_["createElement"])(post_publish_button_or_toggle, { forceIsDirty: hasActiveMetaboxes, forceIsSaving: isSaving, setEntitiesSavedStatesCallback: setEntitiesSavedStatesCallback @@ -7157,7 +7201,7 @@ var page_attributes_applyWithDispatch = Object(external_this_wp_data_["withDispa /* harmony default export */ var page_attributes = (Object(external_this_wp_compose_["compose"])(page_attributes_applyWithSelect, page_attributes_applyWithDispatch)(PageAttributes)); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js -var assertThisInitialized = __webpack_require__(15); +var assertThisInitialized = __webpack_require__(16); // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/meta-boxes/meta-boxes-area/index.js @@ -7393,7 +7437,7 @@ function MetaBoxes(_ref) { })(MetaBoxes)); // EXTERNAL MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/plugin-document-setting-panel/index.js -var plugin_document_setting_panel = __webpack_require__(166); +var plugin_document_setting_panel = __webpack_require__(169); // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/plugin-sidebar/index.js @@ -8129,7 +8173,8 @@ function Layout() { hasActiveMetaboxes: select('core/edit-post').hasMetaBoxes(), previousShortcut: select('core/keyboard-shortcuts').getAllShortcutRawKeyCombinations('core/edit-post/previous-region'), nextShortcut: select('core/keyboard-shortcuts').getAllShortcutRawKeyCombinations('core/edit-post/next-region'), - showIconLabels: select('core/edit-post').isFeatureActive('showIconLabels') + showIconLabels: select('core/edit-post').isFeatureActive('showIconLabels'), + hasReducedUI: select('core/edit-post').isFeatureActive('reducedUI') }; }, []), mode = _useSelect.mode, @@ -8143,7 +8188,8 @@ function Layout() { hasBlockSelected = _useSelect.hasBlockSelected, showMostUsedBlocks = _useSelect.showMostUsedBlocks, isInserterOpened = _useSelect.isInserterOpened, - showIconLabels = _useSelect.showIconLabels; + showIconLabels = _useSelect.showIconLabels, + hasReducedUI = _useSelect.hasReducedUI; var className = classnames_default()('edit-post-layout', 'is-mode-' + mode, { 'is-sidebar-opened': sidebarIsOpened, @@ -8231,7 +8277,7 @@ function Layout() { }), Object(external_this_wp_element_["createElement"])(meta_boxes, { location: "advanced" })), isMobileViewport && sidebarIsOpened && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ScrollLock"], null)), - footer: !isMobileViewport && isRichEditingEnabled && mode === 'visual' && Object(external_this_wp_element_["createElement"])("div", { + footer: !hasReducedUI && !isMobileViewport && isRichEditingEnabled && mode === 'visual' && Object(external_this_wp_element_["createElement"])("div", { className: "edit-post-layout__footer" }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockBreadcrumb"], null)), actions: Object(external_this_wp_element_["createElement"])(ActionsPanel, { @@ -8243,7 +8289,7 @@ function Layout() { previous: previousShortcut, next: nextShortcut } - }), Object(external_this_wp_element_["createElement"])(manage_blocks_modal, null), Object(external_this_wp_element_["createElement"])(options_modal, null), Object(external_this_wp_element_["createElement"])(keyboard_shortcut_help_modal, null), Object(external_this_wp_element_["createElement"])(WelcomeGuide, null), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Popover"].Slot, null), Object(external_this_wp_element_["createElement"])(external_this_wp_plugins_["PluginArea"], null))); + }), Object(external_this_wp_element_["createElement"])(manage_blocks_modal, null), Object(external_this_wp_element_["createElement"])(preferences_modal, null), Object(external_this_wp_element_["createElement"])(keyboard_shortcut_help_modal, null), Object(external_this_wp_element_["createElement"])(WelcomeGuide, null), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Popover"].Slot, null), Object(external_this_wp_element_["createElement"])(external_this_wp_plugins_["PluginArea"], null))); } /* harmony default export */ var layout = (Layout); @@ -8401,18 +8447,20 @@ var editor_Editor = /*#__PURE__*/function (_Component) { Object(createClass["a" /* default */])(Editor, [{ key: "getEditorSettings", - value: function getEditorSettings(settings, hasFixedToolbar, focusMode, hiddenBlockTypes, blockTypes, preferredStyleVariations, __experimentalLocalAutosaveInterval, __experimentalSetIsInserterOpened, updatePreferredStyleVariations, keepCaretInsideBlock) { - settings = editor_objectSpread(editor_objectSpread({}, settings), {}, { + value: function getEditorSettings(settings, hasFixedToolbar, focusMode, hasReducedUI, hasThemeStyles, hiddenBlockTypes, blockTypes, preferredStyleVariations, __experimentalLocalAutosaveInterval, __experimentalSetIsInserterOpened, updatePreferredStyleVariations, keepCaretInsideBlock) { + settings = editor_objectSpread(editor_objectSpread({}, hasThemeStyles ? settings : Object(external_this_lodash_["omit"])(settings, ['defaultEditorStyles'])), {}, { __experimentalPreferredStyleVariations: { value: preferredStyleVariations, onChange: updatePreferredStyleVariations }, hasFixedToolbar: hasFixedToolbar, focusMode: focusMode, + hasReducedUI: hasReducedUI, __experimentalLocalAutosaveInterval: __experimentalLocalAutosaveInterval, // This is marked as experimental to give time for the quick inserter to mature. __experimentalSetIsInserterOpened: __experimentalSetIsInserterOpened, - keepCaretInsideBlock: keepCaretInsideBlock + keepCaretInsideBlock: keepCaretInsideBlock, + styles: hasThemeStyles ? settings.styles : settings.defaultEditorStyles }); // Omit hidden block types if exists and non-empty. if (Object(external_this_lodash_["size"])(hiddenBlockTypes) > 0) { @@ -8432,6 +8480,8 @@ var editor_Editor = /*#__PURE__*/function (_Component) { settings = _this$props.settings, hasFixedToolbar = _this$props.hasFixedToolbar, focusMode = _this$props.focusMode, + hasReducedUI = _this$props.hasReducedUI, + hasThemeStyles = _this$props.hasThemeStyles, post = _this$props.post, postId = _this$props.postId, initialEdits = _this$props.initialEdits, @@ -8443,13 +8493,13 @@ var editor_Editor = /*#__PURE__*/function (_Component) { setIsInserterOpened = _this$props.setIsInserterOpened, updatePreferredStyleVariations = _this$props.updatePreferredStyleVariations, keepCaretInsideBlock = _this$props.keepCaretInsideBlock, - props = Object(objectWithoutProperties["a" /* default */])(_this$props, ["settings", "hasFixedToolbar", "focusMode", "post", "postId", "initialEdits", "onError", "hiddenBlockTypes", "blockTypes", "preferredStyleVariations", "__experimentalLocalAutosaveInterval", "setIsInserterOpened", "updatePreferredStyleVariations", "keepCaretInsideBlock"]); + props = Object(objectWithoutProperties["a" /* default */])(_this$props, ["settings", "hasFixedToolbar", "focusMode", "hasReducedUI", "hasThemeStyles", "post", "postId", "initialEdits", "onError", "hiddenBlockTypes", "blockTypes", "preferredStyleVariations", "__experimentalLocalAutosaveInterval", "setIsInserterOpened", "updatePreferredStyleVariations", "keepCaretInsideBlock"]); if (!post) { return null; } - var editorSettings = this.getEditorSettings(settings, hasFixedToolbar, focusMode, hiddenBlockTypes, blockTypes, preferredStyleVariations, __experimentalLocalAutosaveInterval, setIsInserterOpened, updatePreferredStyleVariations, keepCaretInsideBlock); + var editorSettings = this.getEditorSettings(settings, hasFixedToolbar, focusMode, hasReducedUI, hasThemeStyles, hiddenBlockTypes, blockTypes, preferredStyleVariations, __experimentalLocalAutosaveInterval, setIsInserterOpened, updatePreferredStyleVariations, keepCaretInsideBlock); return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["StrictMode"], null, Object(external_this_wp_element_["createElement"])(edit_post_settings.Provider, { value: settings }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SlotFillProvider"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["DropZoneProvider"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["EditorProvider"], Object(esm_extends["a" /* default */])({ @@ -8488,6 +8538,8 @@ var editor_Editor = /*#__PURE__*/function (_Component) { return { hasFixedToolbar: isFeatureActive('fixedToolbar') || __experimentalGetPreviewDeviceType() !== 'Desktop', focusMode: isFeatureActive('focusMode'), + hasReducedUI: isFeatureActive('reducedUI'), + hasThemeStyles: isFeatureActive('themeStyles'), post: getEntityRecord('postType', postType, postId), preferredStyleVariations: getPreference('preferredStyleVariations'), hiddenBlockTypes: getPreference('hiddenBlockTypes'), @@ -8507,7 +8559,7 @@ var editor_Editor = /*#__PURE__*/function (_Component) { })])(editor_Editor)); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/plugins.js -var plugins = __webpack_require__(434); +var plugins = __webpack_require__(438); // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/block-settings-menu/plugin-block-settings-menu-item.js @@ -8780,6 +8832,7 @@ function PluginSidebarMoreMenuItem(props) { + /** * Internal dependencies */ @@ -8892,7 +8945,21 @@ function initializeEditor(id, postType, postId, settings, initialEdits) { /***/ }), -/***/ 485: +/***/ 46: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["a11y"]; }()); + +/***/ }), + +/***/ 47: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["apiFetch"]; }()); + +/***/ }), + +/***/ 489: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -8900,7 +8967,7 @@ function initializeEditor(id, postType, postId, settings, initialEdits) { /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3); /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(486); +/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(490); /** @@ -8932,7 +8999,7 @@ EnablePluginDocumentSettingPanelOption.Slot = Slot; /***/ }), -/***/ 486: +/***/ 490: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -8940,7 +9007,7 @@ EnablePluginDocumentSettingPanelOption.Slot = Slot; /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4); /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(117); +/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(116); /** * WordPress dependencies */ @@ -8999,13 +9066,6 @@ function _defineProperty(obj, key, value) { /***/ }), -/***/ 52: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["a11y"]; }()); - -/***/ }), - /***/ 53: /***/ (function(module, exports) { @@ -9227,10 +9287,10 @@ function _extends() { /***/ }), -/***/ 89: +/***/ 83: /***/ (function(module, exports) { -(function() { module.exports = this["wp"]["viewport"]; }()); +(function() { module.exports = this["wp"]["coreData"]; }()); /***/ }), @@ -9297,6 +9357,13 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! (function() { module.exports = this["wp"]["warning"]; }()); +/***/ }), + +/***/ 92: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["notices"]; }()); + /***/ }) /******/ }); \ No newline at end of file diff --git a/wp-includes/js/dist/edit-post.min.js b/wp-includes/js/dist/edit-post.min.js index 52a5684623..2e5f585e3e 100644 --- a/wp-includes/js/dist/edit-post.min.js +++ b/wp-includes/js/dist/edit-post.min.js @@ -1,7 +1,7 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.editPost=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=453)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},10:function(e,t){!function(){e.exports=this.wp.compose}()},100:function(e,t){!function(){e.exports=this.wp.coreData}()},101:function(e,t){!function(){e.exports=this.wp.notices}()},102:function(e,t){var r,n,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function A(e){if(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var c,u=[],l=!1,s=-1;function m(){l&&c&&(l=!1,c.length?u=c.concat(u):s=-1,u.length&&q())}function q(){if(!l){var e=A(m);l=!0;for(var t=u.length;t;){for(c=u,u=[];++s1)for(var r=1;r=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}},15:function(e,t,r){"use strict";function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r.d(t,"a",(function(){return n}))},155:function(e,t){!function(){e.exports=this.wp.mediaUtils}()},157:function(e,t,r){"use strict";var n=r(0),i=r(7),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},158:function(e,t,r){"use strict";var n=r(0),i=r(7),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.3 5.6L9.9 16.9l-4.6-3.4-.9 1.2 5.8 4.3 9.3-12.6z"}));t.a=o},166:function(e,t,r){"use strict";(function(e){var n=r(0),i=r(3),o=r(10),a=r(77),A=r(4),c=(r(90),r(485)),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(102))},17: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}))},18:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(27);var i=r(37),o=r(30);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.")}()}},181:function(e,t,r){"use strict";var n=r(0),i=r(7),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},19:function(e,t){!function(){e.exports=this.wp.keycodes}()},2:function(e,t){!function(){e.exports=this.lodash}()},20: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}))},423:function(e,t,r){"use strict";var n=r(0),i=r(7),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},434:function(e,t,r){"use strict";var n=r(0),i=r(7),o=Object(n.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(i.Path,{d:"M10.5 4v4h3V4H15v4h1.5a1 1 0 011 1v4l-3 4v2a1 1 0 01-1 1h-3a1 1 0 01-1-1v-2l-3-4V9a1 1 0 011-1H9V4h1.5zm.5 12.5v2h2v-2l3-4v-3H8v3l3 4z"}));t.a=o},45:function(e,t){!function(){e.exports=this.wp.apiFetch}()},453:function(e,t,r){"use strict";r.r(t),r.d(t,"reinitializeEditor",(function(){return gi})),r.d(t,"initializeEditor",(function(){return vi})),r.d(t,"PluginBlockSettingsMenuItem",(function(){return Oi})),r.d(t,"PluginDocumentSettingPanel",(function(){return Gn.a})),r.d(t,"PluginMoreMenuItem",(function(){return Ii})),r.d(t,"PluginPostPublishPanel",(function(){return Fn})),r.d(t,"PluginPostStatusInfo",(function(){return mn})),r.d(t,"PluginPrePublishPanel",(function(){return $n})),r.d(t,"PluginSidebar",(function(){return Yn})),r.d(t,"PluginSidebarMoreMenuItem",(function(){return bi})),r.d(t,"__experimentalFullscreenModeClose",(function(){return wr}));var n={};r.r(n),r.d(n,"openGeneralSidebar",(function(){return re})),r.d(n,"closeGeneralSidebar",(function(){return ne})),r.d(n,"openModal",(function(){return ie})),r.d(n,"closeModal",(function(){return oe})),r.d(n,"openPublishSidebar",(function(){return ae})),r.d(n,"closePublishSidebar",(function(){return Ae})),r.d(n,"togglePublishSidebar",(function(){return ce})),r.d(n,"toggleEditorPanelEnabled",(function(){return ue})),r.d(n,"toggleEditorPanelOpened",(function(){return le})),r.d(n,"removeEditorPanel",(function(){return se})),r.d(n,"toggleFeature",(function(){return me})),r.d(n,"switchEditorMode",(function(){return qe})),r.d(n,"togglePinnedPluginItem",(function(){return pe})),r.d(n,"hideBlockTypes",(function(){return de})),r.d(n,"updatePreferredStyleVariations",(function(){return Oe})),r.d(n,"__experimentalUpdateLocalAutosaveInterval",(function(){return Ie})),r.d(n,"showBlockTypes",(function(){return be})),r.d(n,"setAvailableMetaBoxesPerLocation",(function(){return ge})),r.d(n,"requestMetaBoxUpdates",(function(){return ve})),r.d(n,"metaBoxUpdatesSuccess",(function(){return he})),r.d(n,"__experimentalSetPreviewDeviceType",(function(){return je})),r.d(n,"setIsInserterOpened",(function(){return Ce}));var i={};r.r(i),r.d(i,"getEditorMode",(function(){return Ke})),r.d(i,"isEditorSidebarOpened",(function(){return Ee})),r.d(i,"isPluginSidebarOpened",(function(){return fe})),r.d(i,"getActiveGeneralSidebarName",(function(){return Se})),r.d(i,"getPreferences",(function(){return Me})),r.d(i,"getPreference",(function(){return Ze})),r.d(i,"isPublishSidebarOpened",(function(){return ze})),r.d(i,"isEditorPanelRemoved",(function(){return we})),r.d(i,"isEditorPanelEnabled",(function(){return Be})),r.d(i,"isEditorPanelOpened",(function(){return Ge})),r.d(i,"isModalActive",(function(){return Ye})),r.d(i,"isFeatureActive",(function(){return ke})),r.d(i,"isPluginItemPinned",(function(){return Qe})),r.d(i,"getActiveMetaBoxLocations",(function(){return We})),r.d(i,"isMetaBoxLocationVisible",(function(){return Le})),r.d(i,"isMetaBoxLocationActive",(function(){return De})),r.d(i,"getMetaBoxesPerLocation",(function(){return Ne})),r.d(i,"getAllMetaBoxes",(function(){return Pe})),r.d(i,"hasMetaBoxes",(function(){return Je})),r.d(i,"isSavingMetaBoxes",(function(){return xe})),r.d(i,"__experimentalGetPreviewDeviceType",(function(){return He})),r.d(i,"isInserterOpened",(function(){return Re}));var o={};r.r(o),r.d(o,"enableComplementaryArea",(function(){return It})),r.d(o,"disableComplementaryArea",(function(){return bt})),r.d(o,"pinItem",(function(){return vt})),r.d(o,"unpinItem",(function(){return ht}));var a={};r.r(a),r.d(a,"getActiveComplementaryArea",(function(){return jt})),r.d(a,"isItemPinned",(function(){return Ct}));var A=r(0),c=(r(100),r(6)),u=r(34),l=r(53),s=r(89),m=(r(101),r(289)),q=r(33),p=r(155);Object(q.addFilter)("editor.MediaUpload","core/edit-post/replace-media-upload",(function(){return p.MediaUpload}));var d=r(8),O=r(14),I=r(2),b=r(11),g=r(3),v=r(4),h=r(1),j=r(10),C=Object(j.compose)(Object(v.withSelect)((function(e,t){if(Object(b.hasBlockSupport)(t.name,"multiple",!0))return{};var r=e("core/block-editor").getBlocks(),n=Object(I.find)(r,(function(e){var r=e.name;return t.name===r}));return{originalBlockClientId:n&&n.clientId!==t.clientId&&n.clientId}})),Object(v.withDispatch)((function(e,t){var r=t.originalBlockClientId;return{selectFirst:function(){return e("core/block-editor").selectBlock(r)}}}))),y=Object(j.createHigherOrderComponent)((function(e){return C((function(t){var r=t.originalBlockClientId,n=t.selectFirst,i=Object(O.a)(t,["originalBlockClientId","selectFirst"]);if(!r)return Object(A.createElement)(e,i);var o=Object(b.getBlockType)(i.name),a=function(e){var t=Object(b.findTransform)(Object(b.getBlockTransforms)("to",e),(function(e){var t=e.type,r=e.blocks;return"block"===t&&1===r.length}));if(!t)return null;return Object(b.getBlockType)(t.blocks[0])}(i.name);return[Object(A.createElement)("div",{key:"invalid-preview",style:{minHeight:"60px"}},Object(A.createElement)(e,Object(d.a)({key:"block-edit"},i))),Object(A.createElement)(c.Warning,{key:"multiple-use-warning",actions:[Object(A.createElement)(g.Button,{key:"find-original",isSecondary:!0,onClick:n},Object(h.__)("Find original")),Object(A.createElement)(g.Button,{key:"remove",isSecondary:!0,onClick:function(){return i.onReplace([])}},Object(h.__)("Remove")),a&&Object(A.createElement)(g.Button,{key:"transform",isSecondary:!0,onClick:function(){return i.onReplace(Object(b.createBlock)(a.name,i.attributes))}},Object(h.__)("Transform into:")," ",a.title)]},Object(A.createElement)("strong",null,o.title,": "),Object(h.__)("This block can only be used once."))]}))}),"withMultipleValidation");Object(q.addFilter)("editor.BlockEdit","core/edit-post/validate-multiple-use/with-multiple-validation",y);var K=r(423),E=r(77),f=r(31);var S=Object(j.compose)(Object(v.withSelect)((function(e){return{editedPostContent:e("core/editor").getEditedPostAttribute("content")}})),Object(v.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice}})),Object(j.ifCondition)((function(e){return e.editedPostContent.length>0})))((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 M=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"))})),Z=r(19);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:Z.displayShortcut.access("h")},Object(h.__)("Keyboard shortcuts"))})),w=Object(g.createSlotFill)("ToolsMoreMenuGroup"),B=w.Fill,G=w.Slot;B.Slot=function(e){var t=e.fillProps;return Object(A.createElement)(G,{fillProps:t},(function(e){return!Object(I.isEmpty)(e)&&Object(A.createElement)(g.MenuGroup,{label:Object(h.__)("Tools")},e)}))};var Y=B;function k(){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(E.registerPlugin)("edit-post",{render:function(){return Object(A.createElement)(A.Fragment,null,Object(A.createElement)(Y,null,(function(e){var t=e.onClose;return Object(A.createElement)(A.Fragment,null,Object(A.createElement)(M,{onSelect:t}),Object(A.createElement)(g.MenuItem,{role:"menuitem",href:Object(f.addQueryArgs)("edit.php",{post_type:"wp_block"})},Object(h.__)("Manage all reusable blocks")),Object(A.createElement)(z,{onSelect:t}),Object(A.createElement)(k,null),Object(A.createElement)(S,null),Object(A.createElement)(g.MenuItem,{role:"menuitem",icon:K.a,href:Object(h.__)("https://wordpress.org/support/article/wordpress-editor/"),target:"_blank",rel:"noopener noreferrer"},Object(h.__)("Help"),Object(A.createElement)(g.VisuallyHidden,{as:"span"},Object(h.__)("(opens in a new tab)"))))})))}});var Q=r(5),W=r(32),L=r(18);function D(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function N(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:P,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 N(N({},e),{},Object(Q.a)({},r,N(N({},e[r]),{},{enabled:!Object(I.get)(e,[r,"enabled"],!0)})));case"TOGGLE_PANEL_OPENED":var n=t.panelName,i=!0===e[n]||Object(I.get)(e,[n,"opened"],!1);return N(N({},e),{},Object(Q.a)({},n,N(N({},e[n]),{},{opened:!i})))}return e},features:function(e,t){return"TOGGLE_FEATURE"===t.type?N(N({},e),{},Object(Q.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 I.without.apply(void 0,[e].concat(Object(L.a)(t.blockNames)));case"HIDE_BLOCK_TYPES":return Object(I.union)(e,t.blockNames)}return e},preferredStyleVariations:function(e,t){switch(t.type){case"UPDATE_PREFERRED_STYLE_VARIATIONS":return t.blockName?t.blockStyle?N(N({},e),{},Object(Q.a)({},t.blockName,t.blockStyle)):Object(I.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 x=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}}),H=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:x,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(I.includes)(e,t.panelName))return[].concat(Object(L.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}}),R=r(113),T=r.n(R),F=r(12),U=r(52),X=r(45),V=r.n(X),_=r(24),$=r.n(_),ee=$.a.mark(re),te=$.a.mark(ne);function re(e){return $.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(W.dispatch)("core/interface","enableComplementaryArea","core/edit-post",e);case 2:case"end":return t.stop()}}),ee)}function ne(){return $.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(W.dispatch)("core/interface","disableComplementaryArea","core/edit-post");case 2:case"end":return e.stop()}}),te)}function ie(e){return{type:"OPEN_MODAL",name:e}}function oe(){return{type:"CLOSE_MODAL"}}function ae(){return{type:"OPEN_PUBLISH_SIDEBAR"}}function Ae(){return{type:"CLOSE_PUBLISH_SIDEBAR"}}function ce(){return{type:"TOGGLE_PUBLISH_SIDEBAR"}}function ue(e){return{type:"TOGGLE_PANEL_ENABLED",panelName:e}}function le(e){return{type:"TOGGLE_PANEL_OPENED",panelName:e}}function se(e){return{type:"REMOVE_PANEL",panelName:e}}function me(e){return{type:"TOGGLE_FEATURE",feature:e}}function qe(e){return{type:"SWITCH_MODE",mode:e}}function pe(e){return{type:"TOGGLE_PINNED_PLUGIN_ITEM",pluginName:e}}function de(e){return{type:"HIDE_BLOCK_TYPES",blockNames:Object(I.castArray)(e)}}function Oe(e,t){return{type:"UPDATE_PREFERRED_STYLE_VARIATIONS",blockName:e,blockStyle:t}}function Ie(e){return{type:"UPDATE_LOCAL_AUTOSAVE_INTERVAL",interval:e}}function be(e){return{type:"SHOW_BLOCK_TYPES",blockNames:Object(I.castArray)(e)}}function ge(e){return{type:"SET_META_BOXES_PER_LOCATIONS",metaBoxesPerLocation:e}}function ve(){return{type:"REQUEST_META_BOX_UPDATES"}}function he(){return{type:"META_BOX_UPDATES_SUCCESS"}}function je(e){return{type:"SET_PREVIEW_DEVICE_TYPE",deviceType:e}}function Ce(e){return{type:"SET_IS_INSERTER_OPENED",value:e}}var ye=r(41);function Ke(e){return Ze(e,"editorMode","visual")}var Ee=Object(v.createRegistrySelector)((function(e){return function(){var t=e("core/interface").getActiveComplementaryArea("core/edit-post");return Object(I.includes)(["edit-post/document","edit-post/block"],t)}})),fe=Object(v.createRegistrySelector)((function(e){return function(){var t=e("core/interface").getActiveComplementaryArea("core/edit-post");return!!t&&!Object(I.includes)(["edit-post/document","edit-post/block"],t)}})),Se=Object(v.createRegistrySelector)((function(e){return function(){return e("core/interface").getActiveComplementaryArea("core/edit-post")}}));function Me(e){return e.preferences}function Ze(e,t,r){var n=Me(e)[t];return void 0===n?r:n}function ze(e){return e.publishSidebarActive}function we(e,t){return Object(I.includes)(e.removedPanels,t)}function Be(e,t){var r=Ze(e,"panels");return!we(e,t)&&Object(I.get)(r,[t,"enabled"],!0)}function Ge(e,t){var r=Ze(e,"panels");return!0===Object(I.get)(r,[t])||!0===Object(I.get)(r,[t,"opened"])}function Ye(e,t){return e.activeModal===t}function ke(e,t){return Object(I.get)(e.preferences.features,[t],!1)}var Qe=Object(v.createRegistrySelector)((function(e){return function(t){return e("core/interface").isItemPinned("core/edit-post",t)}})),We=Object(ye.a)((function(e){return Object.keys(e.metaBoxes.locations).filter((function(t){return De(e,t)}))}),(function(e){return[e.metaBoxes.locations]}));function Le(e,t){return De(e,t)&&Object(I.some)(Ne(e,t),(function(t){var r=t.id;return Be(e,"meta-box-".concat(r))}))}function De(e,t){var r=Ne(e,t);return!!r&&0!==r.length}function Ne(e,t){return e.metaBoxes.locations[t]}var Pe=Object(ye.a)((function(e){return Object(I.flatten)(Object(I.values)(e.metaBoxes.locations))}),(function(e){return[e.metaBoxes.locations]}));function Je(e){return We(e).length>0}function xe(e){return e.metaBoxes.isSaving}function He(e){return e.deviceType}function Re(e){return e.isInserterOpened}var Te;function Fe(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return Ue(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ue(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,A=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return a=e.done,e},e:function(e){A=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(A)throw o}}}}function Ue(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?qt(qt({},e),{},Object(Q.a)({},n,qt(qt({},e[n]),{},Object(Q.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(I.get)(e,[n,i,o])===a)return e;var A=e[n]||{},c=A[i]||{};return qt(qt({},e),{},Object(Q.a)({},n,qt(qt({},A),{},Object(Q.a)({},i,qt(qt({},c),{},Object(Q.a)({},o,a||!1))))))}}),dt=Object(v.combineReducers)({enableItems:pt});function Ot(e,t,r){return{type:"SET_SINGLE_ENABLE_ITEM",itemType:e,scope:t,item:r}}function It(e,t){return Ot("complementaryArea",e,t)}function bt(e){return Ot("complementaryArea",e,void 0)}function gt(e,t,r,n){return{type:"SET_MULTIPLE_ENABLE_ITEM",itemType:e,scope:t,item:r,isEnable:n}}function vt(e,t){return gt("pinnedItems",e,t,!0)}function ht(e,t){return gt("pinnedItems",e,t,!1)}function jt(e,t){return function(e,t,r){return Object(I.get)(e.enableItems.singleEnableItems,[t,r])}(e,"complementaryArea",t)}function Ct(e,t,r){return!1!==function(e,t,r,n){return Object(I.get)(e.enableItems.multipleEnableItems,[t,r,n])}(e,"pinnedItems",t,r)}Object(v.registerStore)("core/interface",{reducer:dt,actions:o,selectors:a,persist:["enableItems"]});var yt=r(158),Kt=r(298),Et=r(299),ft=r(181),St=Object(E.withPluginContext)((function(e,t){return{icon:t.icon||e.icon,identifier:t.identifier||"".concat(e.name,"/").concat(t.name)}}));var Mt=St((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(O.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(I.omit)(c,["name"])))})),Zt=function(e){var t=e.smallScreenTitle,r=e.children,n=e.className,i=e.toggleButtonProps,o=Object(A.createElement)(Mt,Object(d.a)({icon:ft.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:st()("components-panel__header","interface-complementary-area-header",n),tabIndex:-1},r,o))};function zt(e){var t=e.scope,r=Object(O.a)(e,["scope"]);return Object(A.createElement)(g.Fill,Object(d.a)({name:"PinnedItems/".concat(t)},r))}zt.Slot=function(e){var t=e.scope,r=e.className,n=Object(O.a)(e,["scope","className"]);return Object(A.createElement)(g.Slot,Object(d.a)({name:"PinnedItems/".concat(t)},n),(function(e){return!Object(I.isEmpty)(e)&&Object(A.createElement)("div",{className:st()(r,"interface-pinned-items")},e)}))};var wt=zt;function Bt(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 Gt=St((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,O=e.toggleShortcut,I=e.isActiveByDefault,b=e.showIconLabels,j=void 0!==b&&b,C=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"),isLarge:e("core/viewport").isViewportMatch("large")}}),[o,q]),y=C.isActive,K=C.isPinned,E=C.activeArea,f=C.isSmall,S=C.isLarge;!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,E,y,f);var M=Object(v.useDispatch)("core/interface"),Z=M.enableComplementaryArea,z=M.disableComplementaryArea,w=M.pinItem,B=M.unpinItem;return Object(A.useEffect)((function(){I&&void 0===E&&!f&&Z(q,o)}),[E,I,q,o,f]),Object(A.createElement)(A.Fragment,null,K&&s&&Object(A.createElement)(wt,{scope:q},Object(A.createElement)(Mt,{scope:q,identifier:o,isPressed:y&&(!j||S),"aria-expanded":y,label:d,icon:j?yt.a:u,showTooltip:!j})),y&&Object(A.createElement)(Bt,{className:st()("interface-complementary-area",r),scope:q},Object(A.createElement)(Zt,{className:c,closeLabel:i,onClose:function(){return z(q)},smallScreenTitle:p,toggleButtonProps:{label:i,shortcut:O,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:K?Kt.a:Et.a,label:K?Object(h.__)("Unpin from toolbar"):Object(h.__)("Pin to toolbar"),onClick:function(){return(K?B:w)(q,o)},isPressed:K,"aria-expanded":K}))),Object(A.createElement)(g.Panel,{className:m},t)))}));Gt.Slot=function(e){var t=e.scope,r=Object(O.a)(e,["scope"]);return Object(A.createElement)(g.Slot,Object(d.a)({name:"ComplementaryArea/".concat(t)},r))};var Yt=Gt;function kt(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 Qt(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)(mr,{blockTypes:u,value:s,onItemChange:o}))}));var dr=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(I.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(I.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)(pr,{key:e.slug,title:e.title,blockTypes:Object(I.filter)(n,{category:e.slug})})})),Object(A.createElement)(pr,{title:Object(h.__)("Uncategorized"),blockTypes:Object(I.filter)(n,(function(e){return!e.category}))})))}));var Or=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)(dr,null)):null})),Ir=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)},br=r(117),gr=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"))(br.a),vr=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)}}})))(br.a),hr=r(485),jr=r(486);function Cr(e){var t=e.willEnable,r=Object(A.useState)(!1),n=Object(F.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 yr=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(F.a)(n,2),o=i[0],a=i[1];return Object(A.createElement)(br.a,{label:t,isChecked:o,onChange:a},o!==r&&Object(A.createElement)(Cr,{willEnable:o}))}));var Kr=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(O.a)(e,["areCustomFieldsRegistered","metaBoxes"]),i=Object(I.filter)(r,(function(e){return"postcustom"!==e.id}));return t||0!==i.length?Object(A.createElement)(Ir,n,t&&Object(A.createElement)(yr,{label:Object(h.__)("Custom fields")}),Object(I.map)(i,(function(e){var t=e.id,r=e.title;return Object(A.createElement)(jr.a,{key:t,label:r,panelName:"meta-box-".concat(t)})}))):null}));var Er=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(I.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)(Ir,{title:Object(h.__)("General")},Object(A.createElement)(gr,{label:Object(h.__)("Pre-publish checks")}),Object(A.createElement)(vr,{featureName:"mostUsedBlocks",label:Object(h.__)("Enable the Most Used Blocks category in the block library")}),Object(A.createElement)(vr,{featureName:"showIconLabels",label:Object(h.__)("Show button text labels")})),Object(A.createElement)(Ir,{title:Object(h.__)("Keyboard options")},Object(A.createElement)(vr,{featureName:"keepCaretInsideBlock",label:Object(h.__)("Contain text cursor inside active block")})),Object(A.createElement)(Ir,{title:Object(h.__)("Document panels")},Object(A.createElement)(hr.a.Slot,null),r&&Object(A.createElement)(jr.a,{label:Object(h.__)("Permalink"),panelName:"post-link"}),Object(A.createElement)(u.PostTaxonomies,{taxonomyWrapper:function(e,t){return Object(A.createElement)(jr.a,{label:Object(I.get)(t,["labels","menu_name"]),panelName:"taxonomy-panel-".concat(t.slug)})}}),Object(A.createElement)(u.PostFeaturedImageCheck,null,Object(A.createElement)(jr.a,{label:Object(h.__)("Featured image"),panelName:"featured-image"})),Object(A.createElement)(u.PostExcerptCheck,null,Object(A.createElement)(jr.a,{label:Object(h.__)("Excerpt"),panelName:"post-excerpt"})),Object(A.createElement)(u.PostTypeSupportCheck,{supportKeys:["comments","trackbacks"]},Object(A.createElement)(jr.a,{label:Object(h.__)("Discussion"),panelName:"discussion-panel"})),Object(A.createElement)(u.PageAttributesCheck,null,Object(A.createElement)(jr.a,{label:Object(h.__)("Page attributes"),panelName:"page-attributes"}))),Object(A.createElement)(Kr,{title:Object(h.__)("Advanced panels")})):null}));function fr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Object(at.a)(e);if(t){var i=Object(at.a)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Object(ot.a)(this,r)}}var Sr=function(e){Object(it.a)(r,e);var t=fr(r);function r(){var e;return Object(rt.a)(this,r),(e=t.apply(this,arguments)).state={historyId:null},e}return Object(nt.a)(r,[{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(f.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(f.addQueryArgs)("post.php",{post:e,action:"edit"})}(e)),this.setState((function(){return{historyId:e}}))}},{key:"render",value:function(){return null}}]),r}(A.Component),Mr=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()}}))(Sr),Zr=r(7),zr=Object(A.createElement)(Zr.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(A.createElement)(Zr.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 wr=function(e){var t=e.showTooltip,r=Object(v.useSelect)((function(e){var t=e("core/editor").getCurrentPostType,r=e("core/edit-post").isFeatureActive,n=e("core/data").isResolving,i=e("core"),o=i.getEntityRecord,a=i.getPostType,A=o("root","__unstableBase",void 0)||{};return{isActive:r("fullscreenMode"),isRequestingSiteIcon:n("core","getEntityRecord",["root","__unstableBase",void 0]),postType:a(t()),siteIconUrl:A.site_icon_url}}),[]),n=r.isActive,i=r.isRequestingSiteIcon,o=r.postType,a=r.siteIconUrl;if(!n||!o)return null;var c=Object(A.createElement)(g.Icon,{size:"36px",icon:zr});return a?c=Object(A.createElement)("img",{alt:Object(h.__)("Site Icon"),className:"edit-post-fullscreen-mode-close_site-icon",src:a}):i&&(c=null),Object(A.createElement)(g.Button,{className:"edit-post-fullscreen-mode-close has-icon",href:Object(f.addQueryArgs)("edit.php",{post_type:o.slug}),label:Object(I.get)(o,["labels","view_items"],Object(h.__)("Back")),showTooltip:t},c)},Br=r(208);var Gr=function(){var e=Object(A.useRef)(),t=Object(v.useDispatch)("core/edit-post").setIsInserterOpened,r=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(),showIconLabels:e("core/edit-post").isFeatureActive("showIconLabels"),isNavigationTool:e("core/block-editor").isNavigationMode()}}),[]),n=r.hasFixedToolbar,i=r.isInserterEnabled,o=r.isInserterOpened,a=r.isTextModeEnabled,l=r.previewDeviceType,s=r.showIconLabels,m=r.isNavigationTool,q=Object(j.useViewportMatch)("medium"),p=Object(j.useViewportMatch)("wide"),d=Object(j.useViewportMatch)("small","<"),O=!q||"Desktop"!==l||n,I=O?Object(h.__)("Document and block tools"):Object(h.__)("Document tools"),b=Object(v.useDispatch)("core/block-editor").setNavigationMode,C=function(e){b("edit"!==e)},y=Object(A.createElement)(A.Fragment,null,Object(A.createElement)(g.ToolbarItem,{as:u.TableOfContents,hasOutlineItemsDisabled:a,repositionDropdown:s&&!p,showTooltip:!s,isTertiary:s}),Object(A.createElement)(g.ToolbarItem,{as:c.BlockNavigationDropdown,isDisabled:a,showTooltip:!s,isTertiary:s}));return Object(A.createElement)(c.NavigableToolbar,{className:"edit-post-header-toolbar","aria-label":I},Object(A.createElement)(g.ToolbarItem,{ref:e,as:g.Button,className:"edit-post-header-toolbar__inserter-toggle",isPrimary:!0,isPressed:o,onMouseDown:function(e){e.preventDefault()},onClick:function(){o?e.current.focus():t(!0)},disabled:!i,icon:Br.a,label:Object(h._x)("Add block","Generic label for block inserter button"),showTooltip:!s},s&&Object(h.__)("Add")),(p||!s)&&Object(A.createElement)(A.Fragment,null,q&&Object(A.createElement)(g.ToolbarItem,{as:c.ToolSelector,showTooltip:!s,isTertiary:s,disabled:a}),Object(A.createElement)(g.ToolbarItem,{as:u.EditorHistoryUndo,showTooltip:!s,isTertiary:s}),Object(A.createElement)(g.ToolbarItem,{as:u.EditorHistoryRedo,showTooltip:!s,isTertiary:s}),y),!p&&!d&&s&&Object(A.createElement)(g.DropdownMenu,{position:"bottom right",label:Object(h.__)("Tools")},(function(){return Object(A.createElement)("div",{className:"edit-post-header__dropdown"},Object(A.createElement)(g.MenuGroup,{label:Object(h.__)("Modes")},Object(A.createElement)(g.MenuItemsChoice,{value:m?"select":"edit",onSelect:C,choices:[{value:"edit",label:Object(h.__)("Edit")},{value:"select",label:Object(h.__)("Select")}]})),Object(A.createElement)(g.MenuGroup,{label:Object(h.__)("Edit")},Object(A.createElement)(u.EditorHistoryUndo,{showTooltip:!s,isTertiary:s}),Object(A.createElement)(u.EditorHistoryRedo,{showTooltip:!s,isTertiary:s})),Object(A.createElement)(g.MenuGroup,null,y))})),O&&Object(A.createElement)("div",{className:"edit-post-header-toolbar__block-toolbar"},Object(A.createElement)(c.BlockToolbar,{hideDragHandle:!0})))},Yr=r(313);function kr(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 Qr(e){for(var t=1;t icon."),{InserterIconImage:Object(A.createElement)(Pn,{className:"edit-post-welcome-guide__inserter-icon"})})))},{image:Object(A.createElement)(Nn,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 xn=Object(g.createSlotFill)("PluginPostPublishPanel"),Hn=xn.Fill,Rn=xn.Slot,Tn=Object(j.compose)(Object(E.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,Un=Object(g.createSlotFill)("PluginPrePublishPanel"),Xn=Un.Fill,Vn=Un.Slot,_n=Object(j.compose)(Object(E.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)(Xn,null,Object(A.createElement)(g.PanelBody,{className:r,initialOpen:o||!n,title:n,icon:a},t))}));_n.Slot=Vn;var $n=_n;function ei(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:$n.Slot,PostPublishExtension:Fn.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)}function ti(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Object(at.a)(e);if(t){var i=Object(at.a)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Object(ot.a)(this,r)}}function ri(e){e.stopPropagation()}var ni=Object(g.withFocusOutside)(function(e){Object(it.a)(r,e);var t=ti(r);function r(){return Object(rt.a)(this,r),t.apply(this,arguments)}return Object(nt.a)(r,[{key:"handleFocusOutside",value:function(e){this.props.onFocusOutside(e)}},{key:"render",value:function(){return this.props.children}}]),r}(A.Component)),ii=Object(g.withConstrainedTabbing)(Object(g.withFocusReturn)((function(e){return e.children})));function oi(e){var t=e.onClose,r=e.children,n=e.className;return Object(A.createElement)("div",{className:n,onKeyDown:function(e){e.keyCode===Z.ESCAPE&&t&&(e.stopPropagation(),t())},onMouseDown:ri},Object(A.createElement)(ni,{onFocusOutside:t},Object(A.createElement)(ii,null,r)))}var ai={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 Ai=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"),showIconLabels:e("core/edit-post").isFeatureActive("showIconLabels")}}),[]),l=a.mode,s=a.isFullscreenActive,m=a.isRichEditingEnabled,q=a.sidebarIsOpened,p=a.hasActiveMetaboxes,d=a.hasFixedToolbar,O=a.previousShortcut,I=a.nextShortcut,b=a.hasBlockSelected,C=a.showMostUsedBlocks,y=a.isInserterOpened,K=a.showIconLabels,f=st()("edit-post-layout","is-mode-"+l,{"is-sidebar-opened":q,"has-fixed-toolbar":d,"has-metaboxes":p,"show-icon-labels":K});Object(A.useEffect)((function(){q&&!t&&o(!1)}),[q,t]),Object(A.useEffect)((function(){y&&!t&&i()}),[y,t]);var S=Object(A.useState)(!1),M=Object(F.a)(S,2),Z=M[0],z=M[1],w=Object(A.useCallback)((function(e){"function"==typeof Z&&Z(e),z(!1)}),[Z]);return Object(A.createElement)(A.Fragment,null,Object(A.createElement)(Pt,{isActive:s}),Object(A.createElement)(Mr,null),Object(A.createElement)(u.UnsavedChangesWarning,null),Object(A.createElement)(u.AutosaveMonitor,null),Object(A.createElement)(u.LocalAutosaveMonitor,null),Object(A.createElement)(rr,null),Object(A.createElement)(u.EditorKeyboardShortcutsRegister,null),Object(A.createElement)(Qn,null),Object(A.createElement)(g.FocusReturnProvider,null,Object(A.createElement)(Ht,{className:f,labels:ai,header:Object(A.createElement)(Xr,{setEntitiesSavedStatesCallback:z}),leftSidebar:"visual"===l&&y&&Object(A.createElement)(oi,{className:"edit-post-layout__inserter-panel-popover-wrapper",onClose:function(){return o(!1)}},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:_t.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)(Yt.Slot,{scope:"core/edit-post"})),content:Object(A.createElement)(A.Fragment,null,Object(A.createElement)(u.EditorNotices,null),("text"===l||!m)&&Object(A.createElement)($t,null),m&&"visual"===l&&Object(A.createElement)(tr,null),Object(A.createElement)("div",{className:"edit-post-layout__metaboxes"},Object(A.createElement)(Bn,{location:"normal"}),Object(A.createElement)(Bn,{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)(ei,{closeEntitiesSavedStates:w,isEntitiesSavedStatesOpen:Z,setEntitiesSavedStatesCallback:z}),shortcuts:{previous:O,next:I}}),Object(A.createElement)(Or,null),Object(A.createElement)(Er,null),Object(A.createElement)(sr,null),Object(A.createElement)(Jn,null),Object(A.createElement)(g.Popover.Slot,null),Object(A.createElement)(E.PluginArea,null)))};function ci(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 ui(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 li(e){for(var t=1;t0){var l=!0===e.allowedBlockTypes?Object(I.map)(i,"name"):e.allowedBlockTypes||[];e.allowedBlockTypes=I.without.apply(void 0,[l].concat(Object(L.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,I=e.updatePreferredStyleVariations,b=e.keepCaretInsideBlock,v=Object(O.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,I,b);return Object(A.createElement)(A.StrictMode,null,Object(A.createElement)(qr.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)(ci,{postId:o}),Object(A.createElement)(Ai,null),Object(A.createElement)(g.KeyboardShortcuts,{shortcuts:ut})),Object(A.createElement)(u.PostLockedModal,null))))))}}]),r}(A.Component),qi=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}}))])(mi),pi=r(434),di=function(e,t){return!Array.isArray(t)||(r=e,n=t,0===Object(I.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 di(c,t)?Object(A.createElement)(g.MenuItem,{onClick:Object(j.compose)(i,u),icon:r||pi.a,label:o?n:void 0,role:a},!o&&n):null}))},Ii=Object(j.compose)(Object(E.withPluginContext)((function(e,t){return{icon:t.icon||e.icon,name:"core/edit-post/plugin-more-menu"}})))(Lt);function bi(e){return Object(A.createElement)(Dt,Object(d.a)({scope:"core/edit-post"},e))}function gi(e,t,r,n,i){Object(A.unmountComponentAtNode)(r);var o=gi.bind(null,e,t,r,n,i);Object(A.render)(Object(A.createElement)(qi,{settings:n,onError:o,postId:t,postType:e,initialEdits:i,recovery:!0}),r)}function vi(e,t,r,n,i){var o=document.getElementById(e),a=gi.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)(qi,{settings:n,onError:a,postId:r,postType:t,initialEdits:i}),o)}},485:function(e,t,r){"use strict";var n=r(0),i=r(3),o=r(486),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},486:function(e,t,r){"use strict";var n=r(10),i=r(4),o=r(117);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.a11y}()},53:function(e,t){!function(){e.exports=this.wp.keyboardShortcuts}()},6:function(e,t){!function(){e.exports=this.wp.blockEditor}()},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}},150:function(e,t,r){"use strict";e.exports=function(e){var t,r={};return function e(t,r){var n;if(Array.isArray(r))for(n=0;ne.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}))},438:function(e,t,r){"use strict";var n=r(0),i=r(7),o=Object(n.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(i.Path,{d:"M10.5 4v4h3V4H15v4h1.5a1 1 0 011 1v4l-3 4v2a1 1 0 01-1 1h-3a1 1 0 01-1-1v-2l-3-4V9a1 1 0 011-1H9V4h1.5zm.5 12.5v2h2v-2l3-4v-3H8v3l3 4z"}));t.a=o},456:function(e,t,r){"use strict";r.r(t),r.d(t,"reinitializeEditor",(function(){return gi})),r.d(t,"initializeEditor",(function(){return hi})),r.d(t,"PluginBlockSettingsMenuItem",(function(){return Oi})),r.d(t,"PluginDocumentSettingPanel",(function(){return Gn.a})),r.d(t,"PluginMoreMenuItem",(function(){return Ii})),r.d(t,"PluginPostPublishPanel",(function(){return Fn})),r.d(t,"PluginPostStatusInfo",(function(){return mn})),r.d(t,"PluginPrePublishPanel",(function(){return $n})),r.d(t,"PluginSidebar",(function(){return Yn})),r.d(t,"PluginSidebarMoreMenuItem",(function(){return bi})),r.d(t,"__experimentalFullscreenModeClose",(function(){return wr}));var n={};r.r(n),r.d(n,"openGeneralSidebar",(function(){return re})),r.d(n,"closeGeneralSidebar",(function(){return ne})),r.d(n,"openModal",(function(){return ie})),r.d(n,"closeModal",(function(){return oe})),r.d(n,"openPublishSidebar",(function(){return ae})),r.d(n,"closePublishSidebar",(function(){return ce})),r.d(n,"togglePublishSidebar",(function(){return Ae})),r.d(n,"toggleEditorPanelEnabled",(function(){return ue})),r.d(n,"toggleEditorPanelOpened",(function(){return le})),r.d(n,"removeEditorPanel",(function(){return se})),r.d(n,"toggleFeature",(function(){return me})),r.d(n,"switchEditorMode",(function(){return qe})),r.d(n,"togglePinnedPluginItem",(function(){return pe})),r.d(n,"hideBlockTypes",(function(){return de})),r.d(n,"updatePreferredStyleVariations",(function(){return Oe})),r.d(n,"__experimentalUpdateLocalAutosaveInterval",(function(){return Ie})),r.d(n,"showBlockTypes",(function(){return be})),r.d(n,"setAvailableMetaBoxesPerLocation",(function(){return ge})),r.d(n,"requestMetaBoxUpdates",(function(){return he})),r.d(n,"metaBoxUpdatesSuccess",(function(){return ve})),r.d(n,"__experimentalSetPreviewDeviceType",(function(){return je})),r.d(n,"setIsInserterOpened",(function(){return Ce}));var i={};r.r(i),r.d(i,"getEditorMode",(function(){return Ee})),r.d(i,"isEditorSidebarOpened",(function(){return Ke})),r.d(i,"isPluginSidebarOpened",(function(){return fe})),r.d(i,"getActiveGeneralSidebarName",(function(){return Se})),r.d(i,"getPreferences",(function(){return Me})),r.d(i,"getPreference",(function(){return Ze})),r.d(i,"isPublishSidebarOpened",(function(){return ze})),r.d(i,"isEditorPanelRemoved",(function(){return we})),r.d(i,"isEditorPanelEnabled",(function(){return Be})),r.d(i,"isEditorPanelOpened",(function(){return Ge})),r.d(i,"isModalActive",(function(){return Ye})),r.d(i,"isFeatureActive",(function(){return ke})),r.d(i,"isPluginItemPinned",(function(){return Qe})),r.d(i,"getActiveMetaBoxLocations",(function(){return We})),r.d(i,"isMetaBoxLocationVisible",(function(){return Le})),r.d(i,"isMetaBoxLocationActive",(function(){return De})),r.d(i,"getMetaBoxesPerLocation",(function(){return Ne})),r.d(i,"getAllMetaBoxes",(function(){return Pe})),r.d(i,"hasMetaBoxes",(function(){return Je})),r.d(i,"isSavingMetaBoxes",(function(){return xe})),r.d(i,"__experimentalGetPreviewDeviceType",(function(){return He})),r.d(i,"isInserterOpened",(function(){return Re}));var o={};r.r(o),r.d(o,"enableComplementaryArea",(function(){return It})),r.d(o,"disableComplementaryArea",(function(){return bt})),r.d(o,"pinItem",(function(){return ht})),r.d(o,"unpinItem",(function(){return vt}));var a={};r.r(a),r.d(a,"getActiveComplementaryArea",(function(){return jt})),r.d(a,"isItemPinned",(function(){return Ct}));var c=r(0),A=(r(83),r(6)),u=r(34),l=r(53),s=(r(121),r(101)),m=(r(92),r(291)),q=r(33),p=r(156);Object(q.addFilter)("editor.MediaUpload","core/edit-post/replace-media-upload",(function(){return p.MediaUpload}));var d=r(8),O=r(14),I=r(2),b=r(11),g=r(3),h=r(4),v=r(1),j=r(10),C=Object(j.compose)(Object(h.withSelect)((function(e,t){if(Object(b.hasBlockSupport)(t.name,"multiple",!0))return{};var r=e("core/block-editor").getBlocks(),n=Object(I.find)(r,(function(e){var r=e.name;return t.name===r}));return{originalBlockClientId:n&&n.clientId!==t.clientId&&n.clientId}})),Object(h.withDispatch)((function(e,t){var r=t.originalBlockClientId;return{selectFirst:function(){return e("core/block-editor").selectBlock(r)}}}))),y=Object(j.createHigherOrderComponent)((function(e){return C((function(t){var r=t.originalBlockClientId,n=t.selectFirst,i=Object(O.a)(t,["originalBlockClientId","selectFirst"]);if(!r)return Object(c.createElement)(e,i);var o=Object(b.getBlockType)(i.name),a=function(e){var t=Object(b.findTransform)(Object(b.getBlockTransforms)("to",e),(function(e){var t=e.type,r=e.blocks;return"block"===t&&1===r.length}));if(!t)return null;return Object(b.getBlockType)(t.blocks[0])}(i.name);return[Object(c.createElement)("div",{key:"invalid-preview",style:{minHeight:"60px"}},Object(c.createElement)(e,Object(d.a)({key:"block-edit"},i))),Object(c.createElement)(A.Warning,{key:"multiple-use-warning",actions:[Object(c.createElement)(g.Button,{key:"find-original",isSecondary:!0,onClick:n},Object(v.__)("Find original")),Object(c.createElement)(g.Button,{key:"remove",isSecondary:!0,onClick:function(){return i.onReplace([])}},Object(v.__)("Remove")),a&&Object(c.createElement)(g.Button,{key:"transform",isSecondary:!0,onClick:function(){return i.onReplace(Object(b.createBlock)(a.name,i.attributes))}},Object(v.__)("Transform into:")," ",a.title)]},Object(c.createElement)("strong",null,o.title,": "),Object(v.__)("This block can only be used once."))]}))}),"withMultipleValidation");Object(q.addFilter)("editor.BlockEdit","core/edit-post/validate-multiple-use/with-multiple-validation",y);var E=r(427),K=r(77),f=r(31);var S=Object(j.compose)(Object(h.withSelect)((function(e){return{editedPostContent:e("core/editor").getEditedPostAttribute("content")}})),Object(h.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice}})),Object(j.ifCondition)((function(e){return e.editedPostContent.length>0})))((function(e){var t=e.createNotice,r=e.editedPostContent,n=Object(c.useRef)(),i=Object(j.useCopyOnClick)(n,r);return Object(c.useEffect)((function(){i&&t("info",Object(v.__)("All content copied."),{isDismissible:!0,type:"snackbar"})}),[i]),Object(c.createElement)(g.MenuItem,{ref:n},i?Object(v.__)("Copied!"):Object(v.__)("Copy all content"))}));var M=Object(h.withDispatch)((function(e){return{openModal:e("core/edit-post").openModal}}))((function(e){var t=e.openModal;return Object(c.createElement)(g.MenuItem,{onClick:function(){t("edit-post/manage-blocks")}},Object(v.__)("Block Manager"))})),Z=r(18);var z=Object(h.withDispatch)((function(e){return{openModal:e("core/edit-post").openModal}}))((function(e){var t=e.openModal;return Object(c.createElement)(g.MenuItem,{onClick:function(){t("edit-post/keyboard-shortcut-help")},shortcut:Z.displayShortcut.access("h")},Object(v.__)("Keyboard shortcuts"))})),w=Object(g.createSlotFill)("ToolsMoreMenuGroup"),B=w.Fill,G=w.Slot;B.Slot=function(e){var t=e.fillProps;return Object(c.createElement)(G,{fillProps:t},(function(e){return!Object(I.isEmpty)(e)&&Object(c.createElement)(g.MenuGroup,{label:Object(v.__)("Tools")},e)}))};var Y=B;function k(){var e=Object(h.useDispatch)("core/edit-post").toggleFeature;return Object(c.createElement)(g.MenuItem,{onClick:function(){return e("welcomeGuide")}},Object(v.__)("Welcome Guide"))}Object(K.registerPlugin)("edit-post",{render:function(){return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(Y,null,(function(e){var t=e.onClose;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(M,{onSelect:t}),Object(c.createElement)(g.MenuItem,{role:"menuitem",href:Object(f.addQueryArgs)("edit.php",{post_type:"wp_block"})},Object(v.__)("Manage all reusable blocks")),Object(c.createElement)(z,{onSelect:t}),Object(c.createElement)(k,null),Object(c.createElement)(S,null),Object(c.createElement)(g.MenuItem,{role:"menuitem",icon:E.a,href:Object(v.__)("https://wordpress.org/support/article/wordpress-editor/"),target:"_blank",rel:"noopener noreferrer"},Object(v.__)("Help"),Object(c.createElement)(g.VisuallyHidden,{as:"span"},Object(v.__)("(opens in a new tab)"))))})))}});var Q=r(5),W=r(32),L=r(17);function D(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function N(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:P,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 N(N({},e),{},Object(Q.a)({},r,N(N({},e[r]),{},{enabled:!Object(I.get)(e,[r,"enabled"],!0)})));case"TOGGLE_PANEL_OPENED":var n=t.panelName,i=!0===e[n]||Object(I.get)(e,[n,"opened"],!1);return N(N({},e),{},Object(Q.a)({},n,N(N({},e[n]),{},{opened:!i})))}return e},features:function(e,t){return"TOGGLE_FEATURE"===t.type?N(N({},e),{},Object(Q.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 I.without.apply(void 0,[e].concat(Object(L.a)(t.blockNames)));case"HIDE_BLOCK_TYPES":return Object(I.union)(e,t.blockNames)}return e},preferredStyleVariations:function(e,t){switch(t.type){case"UPDATE_PREFERRED_STYLE_VARIATIONS":return t.blockName?t.blockStyle?N(N({},e),{},Object(Q.a)({},t.blockName,t.blockStyle)):Object(I.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 x=Object(h.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}}),H=Object(h.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:x,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(I.includes)(e,t.panelName))return[].concat(Object(L.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}}),R=r(150),T=r.n(R),F=r(12),U=r(46),X=r(47),V=r.n(X),_=r(20),$=r.n(_),ee=$.a.mark(re),te=$.a.mark(ne);function re(e){return $.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(W.dispatch)("core/interface","enableComplementaryArea","core/edit-post",e);case 2:case"end":return t.stop()}}),ee)}function ne(){return $.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(W.dispatch)("core/interface","disableComplementaryArea","core/edit-post");case 2:case"end":return e.stop()}}),te)}function ie(e){return{type:"OPEN_MODAL",name:e}}function oe(){return{type:"CLOSE_MODAL"}}function ae(){return{type:"OPEN_PUBLISH_SIDEBAR"}}function ce(){return{type:"CLOSE_PUBLISH_SIDEBAR"}}function Ae(){return{type:"TOGGLE_PUBLISH_SIDEBAR"}}function ue(e){return{type:"TOGGLE_PANEL_ENABLED",panelName:e}}function le(e){return{type:"TOGGLE_PANEL_OPENED",panelName:e}}function se(e){return{type:"REMOVE_PANEL",panelName:e}}function me(e){return{type:"TOGGLE_FEATURE",feature:e}}function qe(e){return{type:"SWITCH_MODE",mode:e}}function pe(e){return{type:"TOGGLE_PINNED_PLUGIN_ITEM",pluginName:e}}function de(e){return{type:"HIDE_BLOCK_TYPES",blockNames:Object(I.castArray)(e)}}function Oe(e,t){return{type:"UPDATE_PREFERRED_STYLE_VARIATIONS",blockName:e,blockStyle:t}}function Ie(e){return{type:"UPDATE_LOCAL_AUTOSAVE_INTERVAL",interval:e}}function be(e){return{type:"SHOW_BLOCK_TYPES",blockNames:Object(I.castArray)(e)}}function ge(e){return{type:"SET_META_BOXES_PER_LOCATIONS",metaBoxesPerLocation:e}}function he(){return{type:"REQUEST_META_BOX_UPDATES"}}function ve(){return{type:"META_BOX_UPDATES_SUCCESS"}}function je(e){return{type:"SET_PREVIEW_DEVICE_TYPE",deviceType:e}}function Ce(e){return{type:"SET_IS_INSERTER_OPENED",value:e}}var ye=r(42);function Ee(e){return Ze(e,"editorMode","visual")}var Ke=Object(h.createRegistrySelector)((function(e){return function(){var t=e("core/interface").getActiveComplementaryArea("core/edit-post");return Object(I.includes)(["edit-post/document","edit-post/block"],t)}})),fe=Object(h.createRegistrySelector)((function(e){return function(){var t=e("core/interface").getActiveComplementaryArea("core/edit-post");return!!t&&!Object(I.includes)(["edit-post/document","edit-post/block"],t)}})),Se=Object(h.createRegistrySelector)((function(e){return function(){return e("core/interface").getActiveComplementaryArea("core/edit-post")}}));function Me(e){return e.preferences}function Ze(e,t,r){var n=Me(e)[t];return void 0===n?r:n}function ze(e){return e.publishSidebarActive}function we(e,t){return Object(I.includes)(e.removedPanels,t)}function Be(e,t){var r=Ze(e,"panels");return!we(e,t)&&Object(I.get)(r,[t,"enabled"],!0)}function Ge(e,t){var r=Ze(e,"panels");return!0===Object(I.get)(r,[t])||!0===Object(I.get)(r,[t,"opened"])}function Ye(e,t){return e.activeModal===t}function ke(e,t){return Object(I.get)(e.preferences.features,[t],!1)}var Qe=Object(h.createRegistrySelector)((function(e){return function(t){return e("core/interface").isItemPinned("core/edit-post",t)}})),We=Object(ye.a)((function(e){return Object.keys(e.metaBoxes.locations).filter((function(t){return De(e,t)}))}),(function(e){return[e.metaBoxes.locations]}));function Le(e,t){return De(e,t)&&Object(I.some)(Ne(e,t),(function(t){var r=t.id;return Be(e,"meta-box-".concat(r))}))}function De(e,t){var r=Ne(e,t);return!!r&&0!==r.length}function Ne(e,t){return e.metaBoxes.locations[t]}var Pe=Object(ye.a)((function(e){return Object(I.flatten)(Object(I.values)(e.metaBoxes.locations))}),(function(e){return[e.metaBoxes.locations]}));function Je(e){return We(e).length>0}function xe(e){return e.metaBoxes.isSaving}function He(e){return e.deviceType}function Re(e){return e.isInserterOpened}var Te;function Fe(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return Ue(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ue(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return a=e.done,e},e:function(e){c=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw o}}}}function Ue(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?qt(qt({},e),{},Object(Q.a)({},n,qt(qt({},e[n]),{},Object(Q.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(I.get)(e,[n,i,o])===a)return e;var c=e[n]||{},A=c[i]||{};return qt(qt({},e),{},Object(Q.a)({},n,qt(qt({},c),{},Object(Q.a)({},i,qt(qt({},A),{},Object(Q.a)({},o,a||!1))))))}}),dt=Object(h.combineReducers)({enableItems:pt});function Ot(e,t,r){return{type:"SET_SINGLE_ENABLE_ITEM",itemType:e,scope:t,item:r}}function It(e,t){return Ot("complementaryArea",e,t)}function bt(e){return Ot("complementaryArea",e,void 0)}function gt(e,t,r,n){return{type:"SET_MULTIPLE_ENABLE_ITEM",itemType:e,scope:t,item:r,isEnable:n}}function ht(e,t){return gt("pinnedItems",e,t,!0)}function vt(e,t){return gt("pinnedItems",e,t,!1)}function jt(e,t){return function(e,t,r){return Object(I.get)(e.enableItems.singleEnableItems,[t,r])}(e,"complementaryArea",t)}function Ct(e,t,r){return!1!==function(e,t,r,n){return Object(I.get)(e.enableItems.multipleEnableItems,[t,r,n])}(e,"pinnedItems",t,r)}Object(h.registerStore)("core/interface",{reducer:dt,actions:o,selectors:a,persist:["enableItems"]});var yt=r(161),Et=r(301),Kt=r(302),ft=r(159),St=Object(K.withPluginContext)((function(e,t){return{icon:t.icon||e.icon,identifier:t.identifier||"".concat(e.name,"/").concat(t.name)}}));var Mt=St((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,A=Object(O.a)(e,["as","scope","identifier","icon","selectedIcon"]),u=r,l=Object(h.useSelect)((function(e){return e("core/interface").getActiveComplementaryArea(n)===i}),[i]),s=Object(h.useDispatch)("core/interface"),m=s.enableComplementaryArea,q=s.disableComplementaryArea;return Object(c.createElement)(u,Object(d.a)({icon:a&&l?a:o,onClick:function(){l?q(n):m(n,i)}},Object(I.omit)(A,["name"])))})),Zt=function(e){var t=e.smallScreenTitle,r=e.children,n=e.className,i=e.toggleButtonProps,o=Object(c.createElement)(Mt,Object(d.a)({icon:ft.a},i));return Object(c.createElement)(c.Fragment,null,Object(c.createElement)("div",{className:"components-panel__header interface-complementary-area-header__small"},t&&Object(c.createElement)("span",{className:"interface-complementary-area-header__small-title"},t),o),Object(c.createElement)("div",{className:st()("components-panel__header","interface-complementary-area-header",n),tabIndex:-1},r,o))};function zt(e){var t=e.scope,r=Object(O.a)(e,["scope"]);return Object(c.createElement)(g.Fill,Object(d.a)({name:"PinnedItems/".concat(t)},r))}zt.Slot=function(e){var t=e.scope,r=e.className,n=Object(O.a)(e,["scope","className"]);return Object(c.createElement)(g.Slot,Object(d.a)({name:"PinnedItems/".concat(t)},n),(function(e){return!Object(I.isEmpty)(e)&&Object(c.createElement)("div",{className:st()(r,"interface-pinned-items")},e)}))};var wt=zt;function Bt(e){var t=e.scope,r=e.children,n=e.className;return Object(c.createElement)(g.Fill,{name:"ComplementaryArea/".concat(t)},Object(c.createElement)(g.Animate,{type:"slide-in",options:{origin:"left"}},(function(){return Object(c.createElement)("div",{className:n},r)})))}var Gt=St((function(e){var t=e.children,r=e.className,n=e.closeLabel,i=void 0===n?Object(v.__)("Close plugin"):n,o=e.identifier,a=e.header,A=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,O=e.toggleShortcut,I=e.isActiveByDefault,b=e.showIconLabels,j=void 0!==b&&b,C=Object(h.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"),isLarge:e("core/viewport").isViewportMatch("large")}}),[o,q]),y=C.isActive,E=C.isPinned,K=C.activeArea,f=C.isSmall,S=C.isLarge;!function(e,t,r,n,i){var o=Object(c.useRef)(!1),a=Object(c.useRef)(!1),A=Object(h.useDispatch)("core/interface"),u=A.enableComplementaryArea,l=A.disableComplementaryArea;Object(c.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,K,y,f);var M=Object(h.useDispatch)("core/interface"),Z=M.enableComplementaryArea,z=M.disableComplementaryArea,w=M.pinItem,B=M.unpinItem;return Object(c.useEffect)((function(){I&&void 0===K&&!f&&Z(q,o)}),[K,I,q,o,f]),Object(c.createElement)(c.Fragment,null,E&&s&&Object(c.createElement)(wt,{scope:q},Object(c.createElement)(Mt,{scope:q,identifier:o,isPressed:y&&(!j||S),"aria-expanded":y,label:d,icon:j?yt.a:u,showTooltip:!j,isTertiary:j})),y&&Object(c.createElement)(Bt,{className:st()("interface-complementary-area",r),scope:q},Object(c.createElement)(Zt,{className:A,closeLabel:i,onClose:function(){return z(q)},smallScreenTitle:p,toggleButtonProps:{label:i,shortcut:O,scope:q,identifier:o}},a||Object(c.createElement)(c.Fragment,null,Object(c.createElement)("strong",null,d),s&&Object(c.createElement)(g.Button,{className:"interface-complementary-area__pin-unpin-item",icon:E?Et.a:Kt.a,label:E?Object(v.__)("Unpin from toolbar"):Object(v.__)("Pin to toolbar"),onClick:function(){return(E?B:w)(q,o)},isPressed:E,"aria-expanded":E}))),Object(c.createElement)(g.Panel,{className:m},t)))}));Gt.Slot=function(e){var t=e.scope,r=Object(O.a)(e,["scope"]);return Object(c.createElement)(g.Slot,Object(d.a)({name:"ComplementaryArea/".concat(t)},r))};var Yt=Gt;function kt(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 Qt(e){for(var t=1;t0?"mixed":"false",Object(c.createElement)("div",{role:"group","aria-labelledby":m,className:"edit-post-manage-blocks-modal__category"},Object(c.createElement)(g.CheckboxControl,{checked:q,onChange:a,className:"edit-post-manage-blocks-modal__category-title","aria-checked":l,label:Object(c.createElement)("span",{id:m},r)}),Object(c.createElement)(mr,{blockTypes:u,value:s,onItemChange:o}))}));var dr=Object(j.compose)([Object(j.withState)({search:""}),Object(h.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"),c=Object(I.isArray)(a)&&a.length;return{blockTypes:r(),categories:n(),hasBlockSupport:i,isMatchingSearchTerm:o,numberOfHiddenBlocks:c}}))])((function(e){var t=e.search,r=e.setState,n=e.blockTypes,i=e.categories,o=e.hasBlockSupport,a=e.isMatchingSearchTerm,A=e.numberOfHiddenBlocks;return n=n.filter((function(e){return o(e,"inserter",!0)&&(!t||a(e,t))&&(!e.parent||Object(I.includes)(e.parent,"core/post-content"))})),Object(c.createElement)("div",{className:"edit-post-manage-blocks-modal__content"},Object(c.createElement)(g.TextControl,{type:"search",label:Object(v.__)("Search for a block"),value:t,onChange:function(e){return r({search:e})},className:"edit-post-manage-blocks-modal__search"}),!!A&&Object(c.createElement)("div",{className:"edit-post-manage-blocks-modal__disabled-blocks-count"},Object(v.sprintf)(Object(v._n)("%d block is disabled.","%d blocks are disabled.",A),A)),Object(c.createElement)("div",{tabIndex:"0",role:"region","aria-label":Object(v.__)("Available block types"),className:"edit-post-manage-blocks-modal__results"},0===n.length&&Object(c.createElement)("p",{className:"edit-post-manage-blocks-modal__no-results"},Object(v.__)("No blocks found.")),i.map((function(e){return Object(c.createElement)(pr,{key:e.slug,title:e.title,blockTypes:Object(I.filter)(n,{category:e.slug})})})),Object(c.createElement)(pr,{title:Object(v.__)("Uncategorized"),blockTypes:Object(I.filter)(n,(function(e){return!e.category}))})))}));var Or=Object(j.compose)([Object(h.withSelect)((function(e){return{isActive:(0,e("core/edit-post").isModalActive)("edit-post/manage-blocks")}})),Object(h.withDispatch)((function(e){return{closeModal:e("core/edit-post").closeModal}}))])((function(e){var t=e.isActive,r=e.closeModal;return t?Object(c.createElement)(g.Modal,{className:"edit-post-manage-blocks-modal",title:Object(v.__)("Block Manager"),closeLabel:Object(v.__)("Close"),onRequestClose:r},Object(c.createElement)(dr,null)):null})),Ir=function(e){var t=e.description,r=e.title,n=e.children;return Object(c.createElement)("section",{className:"edit-post-preferences-modal__section"},Object(c.createElement)("h2",{className:"edit-post-preferences-modal__section-title"},r),t&&Object(c.createElement)("p",{className:"edit-post-preferences-modal__section-description"},t),n)},br=r(116),gr=Object(j.compose)(Object(h.withSelect)((function(e){return{isChecked:e("core/editor").isPublishSidebarEnabled()}})),Object(h.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"))(br.a),hr=Object(j.compose)(Object(h.withSelect)((function(e,t){var r=t.featureName;return{isChecked:(0,e("core/edit-post").isFeatureActive)(r)}})),Object(h.withDispatch)((function(e,t){var r=t.featureName;return{onChange:function(){return e("core/edit-post").toggleFeature(r)}}})))(br.a),vr=r(489),jr=r(490);function Cr(e){var t=e.willEnable,r=Object(c.useState)(!1),n=Object(F.a)(r,2),i=n[0],o=n[1];return Object(c.createElement)(c.Fragment,null,Object(c.createElement)("p",{className:"edit-post-preferences-modal__custom-fields-confirmation-message"},Object(v.__)("A page reload is required for this change. Make sure your content is saved before reloading.")),Object(c.createElement)(g.Button,{className:"edit-post-preferences-modal__custom-fields-confirmation-button",isSecondary:!0,isBusy:i,disabled:i,onClick:function(){o(!0),document.getElementById("toggle-custom-fields-form").submit()}},t?Object(v.__)("Enable & Reload"):Object(v.__)("Disable & Reload")))}var yr=Object(h.withSelect)((function(e){return{areCustomFieldsEnabled:!!e("core/editor").getEditorSettings().enableCustomFields}}))((function(e){var t=e.label,r=e.areCustomFieldsEnabled,n=Object(c.useState)(r),i=Object(F.a)(n,2),o=i[0],a=i[1];return Object(c.createElement)(br.a,{label:t,isChecked:o,onChange:a},o!==r&&Object(c.createElement)(Cr,{willEnable:o}))}));var Er=Object(h.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(O.a)(e,["areCustomFieldsRegistered","metaBoxes"]),i=Object(I.filter)(r,(function(e){return"postcustom"!==e.id}));return t||0!==i.length?Object(c.createElement)(Ir,n,t&&Object(c.createElement)(yr,{label:Object(v.__)("Custom fields")}),Object(I.map)(i,(function(e){var t=e.id,r=e.title;return Object(c.createElement)(jr.a,{key:t,label:r,panelName:"meta-box-".concat(t)})}))):null}));var Kr=Object(j.compose)(Object(h.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/preferences"),isViewable:Object(I.get)(r,["viewable"],!1)}})),Object(h.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(c.createElement)(g.Modal,{className:"edit-post-preferences-modal",title:Object(v.__)("Preferences"),closeLabel:Object(v.__)("Close"),onRequestClose:n},Object(c.createElement)(Ir,{title:Object(v.__)("General")},Object(c.createElement)(gr,{help:Object(v.__)("Review settings such as categories and tags."),label:Object(v.__)("Include pre-publish checklist")}),Object(c.createElement)(hr,{featureName:"mostUsedBlocks",help:Object(v.__)("Places the most frequent blocks in the block library."),label:Object(v.__)("Show most used blocks")})),Object(c.createElement)(Ir,{title:Object(v.__)("Keyboard")},Object(c.createElement)(hr,{featureName:"keepCaretInsideBlock",help:Object(v.__)("Aids screen readers by stopping text caret from leaving blocks."),label:Object(v.__)("Contain text cursor inside block.")})),Object(c.createElement)(Ir,{title:Object(v.__)("Appearance")},Object(c.createElement)(hr,{featureName:"reducedUI",help:Object(v.__)("Compacts options and outlines in the toolbar."),label:Object(v.__)("Reduce the interface")}),Object(c.createElement)(hr,{featureName:"focusMode",help:Object(v.__)("Highlights the current block and fades other content."),label:Object(v.__)("Spotlight mode")}),Object(c.createElement)(hr,{featureName:"showIconLabels",help:Object(v.__)("Shows text instead of icons in toolbar."),label:Object(v.__)("Display button labels")}),Object(c.createElement)(hr,{featureName:"themeStyles",help:Object(v.__)("Make the editor look like your theme."),label:Object(v.__)("Use theme styles")})),Object(c.createElement)(Ir,{title:Object(v.__)("Document settings"),description:Object(v.__)("Choose what displays in the panel.")},Object(c.createElement)(vr.a.Slot,null),r&&Object(c.createElement)(jr.a,{label:Object(v.__)("Permalink"),panelName:"post-link"}),Object(c.createElement)(u.PostTaxonomies,{taxonomyWrapper:function(e,t){return Object(c.createElement)(jr.a,{label:Object(I.get)(t,["labels","menu_name"]),panelName:"taxonomy-panel-".concat(t.slug)})}}),Object(c.createElement)(u.PostFeaturedImageCheck,null,Object(c.createElement)(jr.a,{label:Object(v.__)("Featured image"),panelName:"featured-image"})),Object(c.createElement)(u.PostExcerptCheck,null,Object(c.createElement)(jr.a,{label:Object(v.__)("Excerpt"),panelName:"post-excerpt"})),Object(c.createElement)(u.PostTypeSupportCheck,{supportKeys:["comments","trackbacks"]},Object(c.createElement)(jr.a,{label:Object(v.__)("Discussion"),panelName:"discussion-panel"})),Object(c.createElement)(u.PageAttributesCheck,null,Object(c.createElement)(jr.a,{label:Object(v.__)("Page attributes"),panelName:"page-attributes"}))),Object(c.createElement)(Er,{title:Object(v.__)("Additional panels"),description:Object(v.__)("Add extra areas to the editor.")})):null}));function fr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Object(at.a)(e);if(t){var i=Object(at.a)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Object(ot.a)(this,r)}}var Sr=function(e){Object(it.a)(r,e);var t=fr(r);function r(){var e;return Object(rt.a)(this,r),(e=t.apply(this,arguments)).state={historyId:null},e}return Object(nt.a)(r,[{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(f.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(f.addQueryArgs)("post.php",{post:e,action:"edit"})}(e)),this.setState((function(){return{historyId:e}}))}},{key:"render",value:function(){return null}}]),r}(c.Component),Mr=Object(h.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()}}))(Sr),Zr=r(7),zr=Object(c.createElement)(Zr.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(c.createElement)(Zr.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 wr=function(e){var t=e.showTooltip,r=Object(h.useSelect)((function(e){var t=e("core/editor").getCurrentPostType,r=e("core/edit-post").isFeatureActive,n=e("core/data").isResolving,i=e("core"),o=i.getEntityRecord,a=i.getPostType,c=o("root","__unstableBase",void 0)||{};return{isActive:r("fullscreenMode"),isRequestingSiteIcon:n("core","getEntityRecord",["root","__unstableBase",void 0]),postType:a(t()),siteIconUrl:c.site_icon_url}}),[]),n=r.isActive,i=r.isRequestingSiteIcon,o=r.postType,a=r.siteIconUrl;if(!n||!o)return null;var A=Object(c.createElement)(g.Icon,{size:"36px",icon:zr});return a?A=Object(c.createElement)("img",{alt:Object(v.__)("Site Icon"),className:"edit-post-fullscreen-mode-close_site-icon",src:a}):i&&(A=null),Object(c.createElement)(g.Button,{className:"edit-post-fullscreen-mode-close has-icon",href:Object(f.addQueryArgs)("edit.php",{post_type:o.slug}),label:Object(I.get)(o,["labels","view_items"],Object(v.__)("Back")),showTooltip:t},A)},Br=r(209);var Gr=function(){var e=Object(c.useRef)(),t=Object(h.useDispatch)("core/edit-post").setIsInserterOpened,r=Object(h.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(),showIconLabels:e("core/edit-post").isFeatureActive("showIconLabels"),isNavigationTool:e("core/block-editor").isNavigationMode(),hasReducedUI:e("core/edit-post").isFeatureActive("reducedUI")}}),[]),n=r.hasReducedUI,i=r.hasFixedToolbar,o=r.isInserterEnabled,a=r.isInserterOpened,l=r.isTextModeEnabled,s=r.previewDeviceType,m=r.showIconLabels,q=r.isNavigationTool,p=Object(j.useViewportMatch)("medium"),d=Object(j.useViewportMatch)("wide"),O=Object(j.useViewportMatch)("small","<"),I=Object(h.useDispatch)("core/block-editor").setNavigationMode,b=!p||"Desktop"!==s||i,C=b?Object(v.__)("Document and block tools"):Object(v.__)("Document tools"),y=function(e){I("edit"!==e)},E=Object(c.createElement)(c.Fragment,null,Object(c.createElement)(g.ToolbarItem,{as:u.TableOfContents,hasOutlineItemsDisabled:l,repositionDropdown:m&&!d,showTooltip:!m,isTertiary:m}),Object(c.createElement)(g.ToolbarItem,{as:A.BlockNavigationDropdown,isDisabled:l,showTooltip:!m,isTertiary:m}));return Object(c.createElement)(A.NavigableToolbar,{className:"edit-post-header-toolbar","aria-label":C},Object(c.createElement)("div",{className:"edit-post-header-toolbar__left"},Object(c.createElement)(g.ToolbarItem,{ref:e,as:g.Button,className:"edit-post-header-toolbar__inserter-toggle",isPrimary:!0,isPressed:a,onMouseDown:function(e){e.preventDefault()},onClick:function(){a?e.current.focus():t(!0)},disabled:!o,icon:Br.a,label:Object(v._x)("Add block","Generic label for block inserter button"),showTooltip:!m},m&&Object(v.__)("Add")),!n&&(d||!m)&&Object(c.createElement)(c.Fragment,null,p&&Object(c.createElement)(g.ToolbarItem,{as:A.ToolSelector,showTooltip:!m,isTertiary:m,disabled:l}),Object(c.createElement)(g.ToolbarItem,{as:u.EditorHistoryUndo,showTooltip:!m,isTertiary:m}),Object(c.createElement)(g.ToolbarItem,{as:u.EditorHistoryRedo,showTooltip:!m,isTertiary:m}),E),!n&&!d&&!O&&m&&Object(c.createElement)(g.DropdownMenu,{position:"bottom right",label:Object(v.__)("Tools")},(function(){return Object(c.createElement)("div",{className:"edit-post-header__dropdown"},Object(c.createElement)(g.MenuGroup,{label:Object(v.__)("Modes")},Object(c.createElement)(g.MenuItemsChoice,{value:q?"select":"edit",onSelect:y,choices:[{value:"edit",label:Object(v.__)("Edit")},{value:"select",label:Object(v.__)("Select")}]})),Object(c.createElement)(g.MenuGroup,{label:Object(v.__)("Edit")},Object(c.createElement)(u.EditorHistoryUndo,{showTooltip:!m,isTertiary:m}),Object(c.createElement)(u.EditorHistoryRedo,{showTooltip:!m,isTertiary:m})),Object(c.createElement)(g.MenuGroup,null,E))}))),b&&Object(c.createElement)("div",{className:"edit-post-header-toolbar__block-toolbar"},Object(c.createElement)(A.BlockToolbar,{hideDragHandle:!0})))},Yr=r(316);function kr(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 Qr(e){for(var t=1;t icon."),{InserterIconImage:Object(c.createElement)(Pn,{className:"edit-post-welcome-guide__inserter-icon"})})))},{image:Object(c.createElement)(Nn,null),content:Object(c.createElement)(c.Fragment,null,Object(c.createElement)("h1",{className:"edit-post-welcome-guide__heading"},Object(v.__)("Learn how to use the block editor")),Object(c.createElement)("p",{className:"edit-post-welcome-guide__text"},Object(v.__)("New to the block editor? Want to learn more about using it? "),Object(c.createElement)(g.ExternalLink,{href:Object(v.__)("https://wordpress.org/support/article/wordpress-editor/")},Object(v.__)("Here's a detailed guide."))))}]}):null}var xn=Object(g.createSlotFill)("PluginPostPublishPanel"),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(c.createElement)(Hn,null,Object(c.createElement)(g.PanelBody,{className:r,initialOpen:o||!n,title:n,icon:a},t))}));Tn.Slot=Rn;var Fn=Tn,Un=Object(g.createSlotFill)("PluginPrePublishPanel"),Xn=Un.Fill,Vn=Un.Slot,_n=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(c.createElement)(Xn,null,Object(c.createElement)(g.PanelBody,{className:r,initialOpen:o||!n,title:n,icon:a},t))}));_n.Slot=Vn;var $n=_n;function ei(e){var t,r=e.setEntitiesSavedStatesCallback,n=e.closeEntitiesSavedStates,i=e.isEntitiesSavedStatesOpen,o=Object(h.useDispatch)("core/edit-post"),a=o.closePublishSidebar,A=o.togglePublishSidebar,l=Object(h.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(c.useCallback)((function(){return r(!0)}),[]);return t=s?Object(c.createElement)(u.PostPublishPanel,{onClose:a,forceIsDirty:m,forceIsSaving:q,PrePublishExtension:$n.Slot,PostPublishExtension:Fn.Slot}):p?Object(c.createElement)("div",{className:"edit-post-layout__toggle-entities-saved-states-panel"},Object(c.createElement)(g.Button,{isSecondary:!0,className:"edit-post-layout__toggle-entities-saved-states-panel-button",onClick:d,"aria-expanded":!1},Object(v.__)("Open save panel"))):Object(c.createElement)("div",{className:"edit-post-layout__toggle-publish-panel"},Object(c.createElement)(g.Button,{isSecondary:!0,className:"edit-post-layout__toggle-publish-panel-button",onClick:A,"aria-expanded":!1},Object(v.__)("Open publish panel"))),Object(c.createElement)(c.Fragment,null,Object(c.createElement)(u.EntitiesSavedStates,{isOpen:i,close:n}),!i&&t)}function ti(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Object(at.a)(e);if(t){var i=Object(at.a)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Object(ot.a)(this,r)}}function ri(e){e.stopPropagation()}var ni=Object(g.withFocusOutside)(function(e){Object(it.a)(r,e);var t=ti(r);function r(){return Object(rt.a)(this,r),t.apply(this,arguments)}return Object(nt.a)(r,[{key:"handleFocusOutside",value:function(e){this.props.onFocusOutside(e)}},{key:"render",value:function(){return this.props.children}}]),r}(c.Component)),ii=Object(g.withConstrainedTabbing)(Object(g.withFocusReturn)((function(e){return e.children})));function oi(e){var t=e.onClose,r=e.children,n=e.className;return Object(c.createElement)("div",{className:n,onKeyDown:function(e){e.keyCode===Z.ESCAPE&&t&&(e.stopPropagation(),t())},onMouseDown:ri},Object(c.createElement)(ni,{onFocusOutside:t},Object(c.createElement)(ii,null,r)))}var ai={leftSidebar:Object(v.__)("Block library"),header:Object(v.__)("Editor top bar"),body:Object(v.__)("Editor content"),sidebar:Object(v.__)("Editor settings"),actions:Object(v.__)("Editor publish"),footer:Object(v.__)("Editor footer")};var ci=function(){var e=Object(j.useViewportMatch)("medium","<"),t=Object(j.useViewportMatch)("huge",">="),r=Object(h.useDispatch)("core/edit-post"),n=r.openGeneralSidebar,i=r.closeGeneralSidebar,o=r.setIsInserterOpened,a=Object(h.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"),showIconLabels:e("core/edit-post").isFeatureActive("showIconLabels"),hasReducedUI:e("core/edit-post").isFeatureActive("reducedUI")}}),[]),l=a.mode,s=a.isFullscreenActive,m=a.isRichEditingEnabled,q=a.sidebarIsOpened,p=a.hasActiveMetaboxes,d=a.hasFixedToolbar,O=a.previousShortcut,I=a.nextShortcut,b=a.hasBlockSelected,C=a.showMostUsedBlocks,y=a.isInserterOpened,E=a.showIconLabels,f=a.hasReducedUI,S=st()("edit-post-layout","is-mode-"+l,{"is-sidebar-opened":q,"has-fixed-toolbar":d,"has-metaboxes":p,"show-icon-labels":E});Object(c.useEffect)((function(){q&&!t&&o(!1)}),[q,t]),Object(c.useEffect)((function(){y&&!t&&i()}),[y,t]);var M=Object(c.useState)(!1),Z=Object(F.a)(M,2),z=Z[0],w=Z[1],B=Object(c.useCallback)((function(e){"function"==typeof z&&z(e),w(!1)}),[z]);return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(Pt,{isActive:s}),Object(c.createElement)(Mr,null),Object(c.createElement)(u.UnsavedChangesWarning,null),Object(c.createElement)(u.AutosaveMonitor,null),Object(c.createElement)(u.LocalAutosaveMonitor,null),Object(c.createElement)(rr,null),Object(c.createElement)(u.EditorKeyboardShortcutsRegister,null),Object(c.createElement)(Qn,null),Object(c.createElement)(g.FocusReturnProvider,null,Object(c.createElement)(Ht,{className:S,labels:ai,header:Object(c.createElement)(Xr,{setEntitiesSavedStatesCallback:w}),leftSidebar:"visual"===l&&y&&Object(c.createElement)(oi,{className:"edit-post-layout__inserter-panel-popover-wrapper",onClose:function(){return o(!1)}},Object(c.createElement)("div",{className:"edit-post-layout__inserter-panel"},Object(c.createElement)("div",{className:"edit-post-layout__inserter-panel-header"},Object(c.createElement)(g.Button,{icon:_t.a,onClick:function(){return o(!1)}})),Object(c.createElement)("div",{className:"edit-post-layout__inserter-panel-content"},Object(c.createElement)(A.__experimentalLibrary,{showMostUsedBlocks:C,showInserterHelpPanel:!0,onSelect:function(){e&&o(!1)}})))),sidebar:(!e||q)&&Object(c.createElement)(c.Fragment,null,!e&&!q&&Object(c.createElement)("div",{className:"edit-post-layout__toogle-sidebar-panel"},Object(c.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(v.__)("Open block settings"):Object(v.__)("Open document settings"))),Object(c.createElement)(Yt.Slot,{scope:"core/edit-post"})),content:Object(c.createElement)(c.Fragment,null,Object(c.createElement)(u.EditorNotices,null),("text"===l||!m)&&Object(c.createElement)($t,null),m&&"visual"===l&&Object(c.createElement)(tr,null),Object(c.createElement)("div",{className:"edit-post-layout__metaboxes"},Object(c.createElement)(Bn,{location:"normal"}),Object(c.createElement)(Bn,{location:"advanced"})),e&&q&&Object(c.createElement)(g.ScrollLock,null)),footer:!f&&!e&&m&&"visual"===l&&Object(c.createElement)("div",{className:"edit-post-layout__footer"},Object(c.createElement)(A.BlockBreadcrumb,null)),actions:Object(c.createElement)(ei,{closeEntitiesSavedStates:B,isEntitiesSavedStatesOpen:z,setEntitiesSavedStatesCallback:w}),shortcuts:{previous:O,next:I}}),Object(c.createElement)(Or,null),Object(c.createElement)(Kr,null),Object(c.createElement)(sr,null),Object(c.createElement)(Jn,null),Object(c.createElement)(g.Popover.Slot,null),Object(c.createElement)(K.PluginArea,null)))};function Ai(e){var t=e.postId;return function(e){var t=Object(h.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(h.useDispatch)("core/edit-post").openGeneralSidebar;Object(c.useEffect)((function(){n&&i(r?"edit-post/block":"edit-post/document")}),[r,n])}(t),function(e){var t=Object(h.useSelect)((function(e){return{newPermalink:e("core/editor").getCurrentPost().link}}),[e]).newPermalink,r=Object(c.useRef)();Object(c.useEffect)((function(){r.current=document.querySelector("#wp-admin-bar-preview a")||document.querySelector("#wp-admin-bar-view a")}),[e]),Object(c.useEffect)((function(){t&&r.current&&r.current.setAttribute("href",t)}),[t])}(t),null}function ui(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 li(e){for(var t=1;t0){var m=!0===e.allowedBlockTypes?Object(I.map)(a,"name"):e.allowedBlockTypes||[];e.allowedBlockTypes=I.without.apply(void 0,[m].concat(Object(L.a)(o)))}return e}},{key:"render",value:function(){var e=this.props,t=e.settings,r=e.hasFixedToolbar,n=e.focusMode,i=e.hasReducedUI,o=e.hasThemeStyles,a=e.post,A=e.postId,l=e.initialEdits,s=e.onError,m=e.hiddenBlockTypes,q=e.blockTypes,p=e.preferredStyleVariations,I=e.__experimentalLocalAutosaveInterval,b=e.setIsInserterOpened,h=e.updatePreferredStyleVariations,v=e.keepCaretInsideBlock,j=Object(O.a)(e,["settings","hasFixedToolbar","focusMode","hasReducedUI","hasThemeStyles","post","postId","initialEdits","onError","hiddenBlockTypes","blockTypes","preferredStyleVariations","__experimentalLocalAutosaveInterval","setIsInserterOpened","updatePreferredStyleVariations","keepCaretInsideBlock"]);if(!a)return null;var C=this.getEditorSettings(t,r,n,i,o,m,q,p,I,b,h,v);return Object(c.createElement)(c.StrictMode,null,Object(c.createElement)(qr.Provider,{value:t},Object(c.createElement)(g.SlotFillProvider,null,Object(c.createElement)(g.DropZoneProvider,null,Object(c.createElement)(u.EditorProvider,Object(d.a)({settings:C,post:a,initialEdits:l,useSubRegistry:!1},j),Object(c.createElement)(u.ErrorBoundary,{onError:s},Object(c.createElement)(Ai,{postId:A}),Object(c.createElement)(ci,null),Object(c.createElement)(g.KeyboardShortcuts,{shortcuts:ut})),Object(c.createElement)(u.PostLockedModal,null))))))}}]),r}(c.Component),qi=Object(j.compose)([Object(h.withSelect)((function(e,t){var r=t.postId,n=t.postType,i=e("core/edit-post"),o=i.isFeatureActive,a=i.getPreference,c=i.__experimentalGetPreviewDeviceType,A=e("core").getEntityRecord,u=e("core/blocks").getBlockTypes;return{hasFixedToolbar:o("fixedToolbar")||"Desktop"!==c(),focusMode:o("focusMode"),hasReducedUI:o("reducedUI"),hasThemeStyles:o("themeStyles"),post:A("postType",n,r),preferredStyleVariations:a("preferredStyleVariations"),hiddenBlockTypes:a("hiddenBlockTypes"),blockTypes:u(),__experimentalLocalAutosaveInterval:a("localAutosaveInterval"),keepCaretInsideBlock:o("keepCaretInsideBlock")}})),Object(h.withDispatch)((function(e){var t=e("core/edit-post");return{updatePreferredStyleVariations:t.updatePreferredStyleVariations,setIsInserterOpened:t.setIsInserterOpened}}))])(mi),pi=r(438),di=function(e,t){return!Array.isArray(t)||(r=e,n=t,0===Object(I.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(c.createElement)(A.BlockSettingsMenuControls,null,(function(e){var A=e.selectedBlocks,u=e.onClose;return di(A,t)?Object(c.createElement)(g.MenuItem,{onClick:Object(j.compose)(i,u),icon:r||pi.a,label:o?n:void 0,role:a},!o&&n):null}))},Ii=Object(j.compose)(Object(K.withPluginContext)((function(e,t){return{icon:t.icon||e.icon,name:"core/edit-post/plugin-more-menu"}})))(Lt);function bi(e){return Object(c.createElement)(Dt,Object(d.a)({scope:"core/edit-post"},e))}function gi(e,t,r,n,i){Object(c.unmountComponentAtNode)(r);var o=gi.bind(null,e,t,r,n,i);Object(c.render)(Object(c.createElement)(qi,{settings:n,onError:o,postId:t,postType:e,initialEdits:i,recovery:!0}),r)}function hi(e,t,r,n,i){var o=document.getElementById(e),a=gi.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(c.render)(Object(c.createElement)(qi,{settings:n,onError:a,postId:r,postType:t,initialEdits:i}),o)}},46:function(e,t){!function(){e.exports=this.wp.a11y}()},47:function(e,t){!function(){e.exports=this.wp.apiFetch}()},489:function(e,t,r){"use strict";var n=r(0),i=r(3),o=r(490),a=Object(i.createSlotFill)("EnablePluginDocumentSettingPanelOption"),c=a.Fill,A=a.Slot,u=function(e){var t=e.label,r=e.panelName;return Object(n.createElement)(c,null,Object(n.createElement)(o.a,{label:t,panelName:r}))};u.Slot=A,t.a=u},490:function(e,t,r){"use strict";var n=r(10),i=r(4),o=r(116);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}))},53:function(e,t){!function(){e.exports=this.wp.keyboardShortcuts}()},6:function(e,t){!function(){e.exports=this.wp.blockEditor}()},60:function(e,t,r){e.exports=function(e,t){var r,n,i=0;function o(){var o,a,c=r,A=arguments.length;e:for(;c;){if(c.args.length===arguments.length){for(a=0;a} IconProps */ +/** @typedef {{icon: JSX.Element, size?: number} & import('@wordpress/primitives').SVGProps} IconProps */ /** * Return an SVG icon. @@ -346,7 +293,7 @@ function Icon(_ref) { /***/ }), -/***/ 143: +/***/ 142: /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -359,7 +306,7 @@ function Icon(_ref) { -var ReactPropTypesSecret = __webpack_require__(144); +var ReactPropTypesSecret = __webpack_require__(143); function emptyFunction() {} function emptyFunctionWithReset() {} @@ -418,7 +365,7 @@ module.exports = function() { /***/ }), -/***/ 144: +/***/ 143: /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -438,7 +385,39 @@ module.exports = ReactPropTypesSecret; /***/ }), -/***/ 15: +/***/ 156: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["mediaUtils"]; }()); + +/***/ }), + +/***/ 159: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); + + +/** + * WordPress dependencies + */ + +var closeSmall = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["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" +})); +/* harmony default export */ __webpack_exports__["a"] = (closeSmall); + + +/***/ }), + +/***/ 16: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -453,14 +432,7 @@ function _assertThisInitialized(self) { /***/ }), -/***/ 155: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["mediaUtils"]; }()); - -/***/ }), - -/***/ 157: +/***/ 160: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -485,7 +457,7 @@ var close = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElemen /***/ }), -/***/ 158: +/***/ 161: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -514,17 +486,47 @@ var check = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElemen /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _getPrototypeOf; }); -function _getPrototypeOf(o) { - _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { - return o.__proto__ || Object.getPrototypeOf(o); - }; - return _getPrototypeOf(o); + +// EXPORTS +__webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ _toConsumableArray; }); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +var arrayLikeToArray = __webpack_require__(27); + +// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js + +function _arrayWithoutHoles(arr) { + if (Array.isArray(arr)) return Object(arrayLikeToArray["a" /* default */])(arr); +} +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js +var iterableToArray = __webpack_require__(37); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +var unsupportedIterableToArray = __webpack_require__(30); + +// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +function _nonIterableSpread() { + throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); +} +// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + + + + +function _toConsumableArray(arr) { + return _arrayWithoutHoles(arr) || Object(iterableToArray["a" /* default */])(arr) || Object(unsupportedIterableToArray["a" /* default */])(arr) || _nonIterableSpread(); } /***/ }), -/***/ 177: +/***/ 18: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["keycodes"]; }()); + +/***/ }), + +/***/ 180: /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -559,8 +561,8 @@ var __rest = (this && this.__rest) || function (s, e) { exports.__esModule = true; var React = __webpack_require__(13); var PropTypes = __webpack_require__(28); -var autosize = __webpack_require__(178); -var _getLineHeight = __webpack_require__(179); +var autosize = __webpack_require__(181); +var _getLineHeight = __webpack_require__(182); var getLineHeight = _getLineHeight; var UPDATE = 'autosize:update'; var DESTROY = 'autosize:destroy'; @@ -653,7 +655,7 @@ exports["default"] = TextareaAutosize; /***/ }), -/***/ 178: +/***/ 181: /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! @@ -942,11 +944,11 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ /***/ }), -/***/ 179: +/***/ 182: /***/ (function(module, exports, __webpack_require__) { // Load in dependencies -var computedStyle = __webpack_require__(180); +var computedStyle = __webpack_require__(183); /** * Calculate the `line-height` of a given node @@ -1046,44 +1048,7 @@ module.exports = lineHeight; /***/ }), -/***/ 18: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; - -// EXPORTS -__webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ _toConsumableArray; }); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js -var arrayLikeToArray = __webpack_require__(27); - -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js - -function _arrayWithoutHoles(arr) { - if (Array.isArray(arr)) return Object(arrayLikeToArray["a" /* default */])(arr); -} -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js -var iterableToArray = __webpack_require__(37); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js -var unsupportedIterableToArray = __webpack_require__(30); - -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js -function _nonIterableSpread() { - throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); -} -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js - - - - -function _toConsumableArray(arr) { - return _arrayWithoutHoles(arr) || Object(iterableToArray["a" /* default */])(arr) || Object(unsupportedIterableToArray["a" /* default */])(arr) || _nonIterableSpread(); -} - -/***/ }), - -/***/ 180: +/***/ 183: /***/ (function(module, exports) { // This code has been refactored for 140 bytes @@ -1117,35 +1082,17 @@ module.exports = computedStyle; /***/ }), -/***/ 181: +/***/ 19: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); - - -/** - * WordPress dependencies - */ - -var closeSmall = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" -}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["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" -})); -/* harmony default export */ __webpack_exports__["a"] = (closeSmall); - - -/***/ }), - -/***/ 19: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["keycodes"]; }()); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _getPrototypeOf; }); +function _getPrototypeOf(o) { + _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }; + return _getPrototypeOf(o); +} /***/ }), @@ -1157,6 +1104,26 @@ var closeSmall = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createE /***/ }), /***/ 20: +/***/ (function(module, exports) { + +(function() { module.exports = this["regeneratorRuntime"]; }()); + +/***/ }), + +/***/ 21: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _classCallCheck; }); +function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError("Cannot call a class as a function"); + } +} + +/***/ }), + +/***/ 22: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -1179,20 +1146,7 @@ function _createClass(Constructor, protoProps, staticProps) { /***/ }), -/***/ 21: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _classCallCheck; }); -function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } -} - -/***/ }), - -/***/ 22: +/***/ 23: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -1228,13 +1182,13 @@ function _inherits(subClass, superClass) { /***/ }), -/***/ 23: +/***/ 24: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _possibleConstructorReturn; }); /* harmony import */ var _helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(40); -/* harmony import */ var _assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(15); +/* harmony import */ var _assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(16); function _possibleConstructorReturn(self, call) { @@ -1247,13 +1201,6 @@ function _possibleConstructorReturn(self, call) { /***/ }), -/***/ 24: -/***/ (function(module, exports) { - -(function() { module.exports = this["regeneratorRuntime"]; }()); - -/***/ }), - /***/ 25: /***/ (function(module, exports) { @@ -1291,10 +1238,18 @@ function _arrayLikeToArray(arr, len) { if (false) { var throwOnDirectAccess, ReactIs; } else { // By explicitly using `prop-types` you are opting into new production behavior. // http://fb.me/prop-types-in-prod - module.exports = __webpack_require__(143)(); + module.exports = __webpack_require__(142)(); } +/***/ }), + +/***/ 292: +/***/ (function(module, exports, __webpack_require__) { + +module.exports = __webpack_require__(439); + + /***/ }), /***/ 3: @@ -1329,7 +1284,7 @@ function _unsupportedIterableToArray(o, minLen) { /***/ }), -/***/ 315: +/***/ 318: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -1368,7 +1323,7 @@ var layout = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEleme /***/ }), -/***/ 35: +/***/ 36: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["deprecated"]; }()); @@ -1438,289 +1393,7 @@ function _typeof(obj) { /***/ }), -/***/ 41: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; - - -var LEAF_KEY, hasWeakMap; - -/** - * Arbitrary value used as key for referencing cache object in WeakMap tree. - * - * @type {Object} - */ -LEAF_KEY = {}; - -/** - * Whether environment supports WeakMap. - * - * @type {boolean} - */ -hasWeakMap = typeof WeakMap !== 'undefined'; - -/** - * Returns the first argument as the sole entry in an array. - * - * @param {*} value Value to return. - * - * @return {Array} Value returned as entry in array. - */ -function arrayOf( value ) { - return [ value ]; -} - -/** - * Returns true if the value passed is object-like, or false otherwise. A value - * is object-like if it can support property assignment, e.g. object or array. - * - * @param {*} value Value to test. - * - * @return {boolean} Whether value is object-like. - */ -function isObjectLike( value ) { - return !! value && 'object' === typeof value; -} - -/** - * Creates and returns a new cache object. - * - * @return {Object} Cache object. - */ -function createCache() { - var cache = { - clear: function() { - cache.head = null; - }, - }; - - return cache; -} - -/** - * Returns true if entries within the two arrays are strictly equal by - * reference from a starting index. - * - * @param {Array} a First array. - * @param {Array} b Second array. - * @param {number} fromIndex Index from which to start comparison. - * - * @return {boolean} Whether arrays are shallowly equal. - */ -function isShallowEqual( a, b, fromIndex ) { - var i; - - if ( a.length !== b.length ) { - return false; - } - - for ( i = fromIndex; i < a.length; i++ ) { - if ( a[ i ] !== b[ i ] ) { - return false; - } - } - - return true; -} - -/** - * Returns a memoized selector function. The getDependants function argument is - * called before the memoized selector and is expected to return an immutable - * reference or array of references on which the selector depends for computing - * its own return value. The memoize cache is preserved only as long as those - * dependant references remain the same. If getDependants returns a different - * reference(s), the cache is cleared and the selector value regenerated. - * - * @param {Function} selector Selector function. - * @param {Function} getDependants Dependant getter returning an immutable - * reference or array of reference used in - * cache bust consideration. - * - * @return {Function} Memoized selector. - */ -/* harmony default export */ __webpack_exports__["a"] = (function( selector, getDependants ) { - var rootCache, getCache; - - // Use object source as dependant if getter not provided - if ( ! getDependants ) { - getDependants = arrayOf; - } - - /** - * Returns the root cache. If WeakMap is supported, this is assigned to the - * root WeakMap cache set, otherwise it is a shared instance of the default - * cache object. - * - * @return {(WeakMap|Object)} Root cache object. - */ - function getRootCache() { - return rootCache; - } - - /** - * Returns the cache for a given dependants array. When possible, a WeakMap - * will be used to create a unique cache for each set of dependants. This - * is feasible due to the nature of WeakMap in allowing garbage collection - * to occur on entries where the key object is no longer referenced. Since - * WeakMap requires the key to be an object, this is only possible when the - * dependant is object-like. The root cache is created as a hierarchy where - * each top-level key is the first entry in a dependants set, the value a - * WeakMap where each key is the next dependant, and so on. This continues - * so long as the dependants are object-like. If no dependants are object- - * like, then the cache is shared across all invocations. - * - * @see isObjectLike - * - * @param {Array} dependants Selector dependants. - * - * @return {Object} Cache object. - */ - function getWeakMapCache( dependants ) { - var caches = rootCache, - isUniqueByDependants = true, - i, dependant, map, cache; - - for ( i = 0; i < dependants.length; i++ ) { - dependant = dependants[ i ]; - - // Can only compose WeakMap from object-like key. - if ( ! isObjectLike( dependant ) ) { - isUniqueByDependants = false; - break; - } - - // Does current segment of cache already have a WeakMap? - if ( caches.has( dependant ) ) { - // Traverse into nested WeakMap. - caches = caches.get( dependant ); - } else { - // Create, set, and traverse into a new one. - map = new WeakMap(); - caches.set( dependant, map ); - caches = map; - } - } - - // We use an arbitrary (but consistent) object as key for the last item - // in the WeakMap to serve as our running cache. - if ( ! caches.has( LEAF_KEY ) ) { - cache = createCache(); - cache.isUniqueByDependants = isUniqueByDependants; - caches.set( LEAF_KEY, cache ); - } - - return caches.get( LEAF_KEY ); - } - - // Assign cache handler by availability of WeakMap - getCache = hasWeakMap ? getWeakMapCache : getRootCache; - - /** - * Resets root memoization cache. - */ - function clear() { - rootCache = hasWeakMap ? new WeakMap() : createCache(); - } - - // eslint-disable-next-line jsdoc/check-param-names - /** - * The augmented selector call, considering first whether dependants have - * changed before passing it to underlying memoize function. - * - * @param {Object} source Source object for derivation. - * @param {...*} extraArgs Additional arguments to pass to selector. - * - * @return {*} Selector result. - */ - function callSelector( /* source, ...extraArgs */ ) { - var len = arguments.length, - cache, node, i, args, dependants; - - // Create copy of arguments (avoid leaking deoptimization). - args = new Array( len ); - for ( i = 0; i < len; i++ ) { - args[ i ] = arguments[ i ]; - } - - dependants = getDependants.apply( null, args ); - cache = getCache( dependants ); - - // If not guaranteed uniqueness by dependants (primitive type or lack - // of WeakMap support), shallow compare against last dependants and, if - // references have changed, destroy cache to recalculate result. - if ( ! cache.isUniqueByDependants ) { - if ( cache.lastDependants && ! isShallowEqual( dependants, cache.lastDependants, 0 ) ) { - cache.clear(); - } - - cache.lastDependants = dependants; - } - - node = cache.head; - while ( node ) { - // Check whether node arguments match arguments - if ( ! isShallowEqual( node.args, args, 1 ) ) { - node = node.next; - continue; - } - - // At this point we can assume we've found a match - - // Surface matched node to head if not already - if ( node !== cache.head ) { - // Adjust siblings to point to each other. - node.prev.next = node.next; - if ( node.next ) { - node.next.prev = node.prev; - } - - node.next = cache.head; - node.prev = null; - cache.head.prev = node; - cache.head = node; - } - - // Return immediately - return node.val; - } - - // No cached value found. Continue to insertion phase: - - node = { - // Generate the result from original function - val: selector.apply( null, args ), - }; - - // Avoid including the source object in the cache. - args[ 0 ] = null; - node.args = args; - - // Don't need to check whether node is already head, since it would - // have been returned above already if it was - - // Shift existing head down list - if ( cache.head ) { - cache.head.prev = node; - node.next = cache.head; - } - - cache.head = node; - - return node.val; - } - - callSelector.getDependants = getDependants; - callSelector.clear = clear; - clear(); - - return callSelector; -}); - - -/***/ }), - -/***/ 42: +/***/ 43: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -1742,7 +1415,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { /***/ }), -/***/ 435: +/***/ 439: /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -1909,13 +1582,49 @@ function separateState(state) { /***/ }), /***/ 45: -/***/ (function(module, exports) { +/***/ (function(module, __webpack_exports__, __webpack_require__) { -(function() { module.exports = this["wp"]["apiFetch"]; }()); +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _asyncToGenerator; }); +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { + try { + var info = gen[key](arg); + var value = info.value; + } catch (error) { + reject(error); + return; + } + + if (info.done) { + resolve(value); + } else { + Promise.resolve(value).then(_next, _throw); + } +} + +function _asyncToGenerator(fn) { + return function () { + var self = this, + args = arguments; + return new Promise(function (resolve, reject) { + var gen = fn.apply(self, args); + + function _next(value) { + asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); + } + + function _throw(err) { + asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); + } + + _next(undefined); + }); + }; +} /***/ }), -/***/ 452: +/***/ 457: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -1948,7 +1657,7 @@ __webpack_require__.d(__webpack_exports__, "PostExcerpt", function() { return /* __webpack_require__.d(__webpack_exports__, "PostExcerptCheck", function() { return /* reexport */ post_excerpt_check; }); __webpack_require__.d(__webpack_exports__, "PostFeaturedImage", function() { return /* reexport */ post_featured_image; }); __webpack_require__.d(__webpack_exports__, "PostFeaturedImageCheck", function() { return /* reexport */ post_featured_image_check; }); -__webpack_require__.d(__webpack_exports__, "PostFormat", function() { return /* reexport */ post_format; }); +__webpack_require__.d(__webpack_exports__, "PostFormat", function() { return /* reexport */ PostFormat; }); __webpack_require__.d(__webpack_exports__, "PostFormatCheck", function() { return /* reexport */ post_format_check; }); __webpack_require__.d(__webpack_exports__, "PostLastRevision", function() { return /* reexport */ post_last_revision; }); __webpack_require__.d(__webpack_exports__, "PostLastRevisionCheck", function() { return /* reexport */ post_last_revision_check; }); @@ -2042,75 +1751,6 @@ __webpack_require__.d(__webpack_exports__, "cleanForSlug", function() { return / __webpack_require__.d(__webpack_exports__, "storeConfig", function() { return /* reexport */ storeConfig; }); __webpack_require__.d(__webpack_exports__, "transformStyles", function() { return /* reexport */ external_this_wp_blockEditor_["transformStyles"]; }); -// NAMESPACE OBJECT: ./node_modules/@wordpress/editor/build-module/store/actions.js -var actions_namespaceObject = {}; -__webpack_require__.r(actions_namespaceObject); -__webpack_require__.d(actions_namespaceObject, "setupEditor", function() { return setupEditor; }); -__webpack_require__.d(actions_namespaceObject, "__experimentalTearDownEditor", function() { return __experimentalTearDownEditor; }); -__webpack_require__.d(actions_namespaceObject, "resetPost", function() { return resetPost; }); -__webpack_require__.d(actions_namespaceObject, "resetAutosave", function() { return resetAutosave; }); -__webpack_require__.d(actions_namespaceObject, "__experimentalRequestPostUpdateStart", function() { return __experimentalRequestPostUpdateStart; }); -__webpack_require__.d(actions_namespaceObject, "__experimentalRequestPostUpdateFinish", function() { return __experimentalRequestPostUpdateFinish; }); -__webpack_require__.d(actions_namespaceObject, "updatePost", function() { return updatePost; }); -__webpack_require__.d(actions_namespaceObject, "setupEditorState", function() { return setupEditorState; }); -__webpack_require__.d(actions_namespaceObject, "editPost", function() { return actions_editPost; }); -__webpack_require__.d(actions_namespaceObject, "__experimentalOptimisticUpdatePost", function() { return __experimentalOptimisticUpdatePost; }); -__webpack_require__.d(actions_namespaceObject, "savePost", function() { return actions_savePost; }); -__webpack_require__.d(actions_namespaceObject, "refreshPost", function() { return refreshPost; }); -__webpack_require__.d(actions_namespaceObject, "trashPost", function() { return trashPost; }); -__webpack_require__.d(actions_namespaceObject, "autosave", function() { return actions_autosave; }); -__webpack_require__.d(actions_namespaceObject, "__experimentalLocalAutosave", function() { return actions_experimentalLocalAutosave; }); -__webpack_require__.d(actions_namespaceObject, "redo", function() { return actions_redo; }); -__webpack_require__.d(actions_namespaceObject, "undo", function() { return actions_undo; }); -__webpack_require__.d(actions_namespaceObject, "createUndoLevel", function() { return createUndoLevel; }); -__webpack_require__.d(actions_namespaceObject, "updatePostLock", function() { return updatePostLock; }); -__webpack_require__.d(actions_namespaceObject, "__experimentalFetchReusableBlocks", function() { return actions_experimentalFetchReusableBlocks; }); -__webpack_require__.d(actions_namespaceObject, "__experimentalReceiveReusableBlocks", function() { return __experimentalReceiveReusableBlocks; }); -__webpack_require__.d(actions_namespaceObject, "__experimentalSaveReusableBlock", function() { return __experimentalSaveReusableBlock; }); -__webpack_require__.d(actions_namespaceObject, "__experimentalDeleteReusableBlock", function() { return __experimentalDeleteReusableBlock; }); -__webpack_require__.d(actions_namespaceObject, "__experimentalUpdateReusableBlock", function() { return __experimentalUpdateReusableBlock; }); -__webpack_require__.d(actions_namespaceObject, "__experimentalConvertBlockToStatic", function() { return __experimentalConvertBlockToStatic; }); -__webpack_require__.d(actions_namespaceObject, "__experimentalConvertBlockToReusable", function() { return __experimentalConvertBlockToReusable; }); -__webpack_require__.d(actions_namespaceObject, "enablePublishSidebar", function() { return enablePublishSidebar; }); -__webpack_require__.d(actions_namespaceObject, "disablePublishSidebar", function() { return disablePublishSidebar; }); -__webpack_require__.d(actions_namespaceObject, "lockPostSaving", function() { return lockPostSaving; }); -__webpack_require__.d(actions_namespaceObject, "unlockPostSaving", function() { return unlockPostSaving; }); -__webpack_require__.d(actions_namespaceObject, "lockPostAutosaving", function() { return lockPostAutosaving; }); -__webpack_require__.d(actions_namespaceObject, "unlockPostAutosaving", function() { return unlockPostAutosaving; }); -__webpack_require__.d(actions_namespaceObject, "resetEditorBlocks", function() { return actions_resetEditorBlocks; }); -__webpack_require__.d(actions_namespaceObject, "updateEditorSettings", function() { return updateEditorSettings; }); -__webpack_require__.d(actions_namespaceObject, "resetBlocks", function() { return resetBlocks; }); -__webpack_require__.d(actions_namespaceObject, "receiveBlocks", function() { return receiveBlocks; }); -__webpack_require__.d(actions_namespaceObject, "updateBlock", function() { return updateBlock; }); -__webpack_require__.d(actions_namespaceObject, "updateBlockAttributes", function() { return updateBlockAttributes; }); -__webpack_require__.d(actions_namespaceObject, "selectBlock", function() { return actions_selectBlock; }); -__webpack_require__.d(actions_namespaceObject, "startMultiSelect", function() { return startMultiSelect; }); -__webpack_require__.d(actions_namespaceObject, "stopMultiSelect", function() { return stopMultiSelect; }); -__webpack_require__.d(actions_namespaceObject, "multiSelect", function() { return multiSelect; }); -__webpack_require__.d(actions_namespaceObject, "clearSelectedBlock", function() { return clearSelectedBlock; }); -__webpack_require__.d(actions_namespaceObject, "toggleSelection", function() { return toggleSelection; }); -__webpack_require__.d(actions_namespaceObject, "replaceBlocks", function() { return actions_replaceBlocks; }); -__webpack_require__.d(actions_namespaceObject, "replaceBlock", function() { return replaceBlock; }); -__webpack_require__.d(actions_namespaceObject, "moveBlocksDown", function() { return moveBlocksDown; }); -__webpack_require__.d(actions_namespaceObject, "moveBlocksUp", function() { return moveBlocksUp; }); -__webpack_require__.d(actions_namespaceObject, "moveBlockToPosition", function() { return moveBlockToPosition; }); -__webpack_require__.d(actions_namespaceObject, "insertBlock", function() { return insertBlock; }); -__webpack_require__.d(actions_namespaceObject, "insertBlocks", function() { return insertBlocks; }); -__webpack_require__.d(actions_namespaceObject, "showInsertionPoint", function() { return showInsertionPoint; }); -__webpack_require__.d(actions_namespaceObject, "hideInsertionPoint", function() { return hideInsertionPoint; }); -__webpack_require__.d(actions_namespaceObject, "setTemplateValidity", function() { return setTemplateValidity; }); -__webpack_require__.d(actions_namespaceObject, "synchronizeTemplate", function() { return synchronizeTemplate; }); -__webpack_require__.d(actions_namespaceObject, "mergeBlocks", function() { return mergeBlocks; }); -__webpack_require__.d(actions_namespaceObject, "removeBlocks", function() { return removeBlocks; }); -__webpack_require__.d(actions_namespaceObject, "removeBlock", function() { return removeBlock; }); -__webpack_require__.d(actions_namespaceObject, "toggleBlockMode", function() { return toggleBlockMode; }); -__webpack_require__.d(actions_namespaceObject, "startTyping", function() { return startTyping; }); -__webpack_require__.d(actions_namespaceObject, "stopTyping", function() { return stopTyping; }); -__webpack_require__.d(actions_namespaceObject, "enterFormattedText", function() { return enterFormattedText; }); -__webpack_require__.d(actions_namespaceObject, "exitFormattedText", function() { return exitFormattedText; }); -__webpack_require__.d(actions_namespaceObject, "insertDefaultBlock", function() { return insertDefaultBlock; }); -__webpack_require__.d(actions_namespaceObject, "updateBlockListSettings", function() { return updateBlockListSettings; }); - // NAMESPACE OBJECT: ./node_modules/@wordpress/editor/build-module/store/selectors.js var selectors_namespaceObject = {}; __webpack_require__.r(selectors_namespaceObject); @@ -2152,10 +1792,6 @@ __webpack_require__.d(selectors_namespaceObject, "getEditedPostPreviewLink", fun __webpack_require__.d(selectors_namespaceObject, "getSuggestedPostFormat", function() { return selectors_getSuggestedPostFormat; }); __webpack_require__.d(selectors_namespaceObject, "getBlocksForSerialization", function() { return getBlocksForSerialization; }); __webpack_require__.d(selectors_namespaceObject, "getEditedPostContent", function() { return getEditedPostContent; }); -__webpack_require__.d(selectors_namespaceObject, "__experimentalGetReusableBlock", function() { return __experimentalGetReusableBlock; }); -__webpack_require__.d(selectors_namespaceObject, "__experimentalIsSavingReusableBlock", function() { return __experimentalIsSavingReusableBlock; }); -__webpack_require__.d(selectors_namespaceObject, "__experimentalIsFetchingReusableBlock", function() { return __experimentalIsFetchingReusableBlock; }); -__webpack_require__.d(selectors_namespaceObject, "__experimentalGetReusableBlocks", function() { return selectors_experimentalGetReusableBlocks; }); __webpack_require__.d(selectors_namespaceObject, "getStateBeforeOptimisticTransaction", function() { return getStateBeforeOptimisticTransaction; }); __webpack_require__.d(selectors_namespaceObject, "isPublishingPost", function() { return selectors_isPublishingPost; }); __webpack_require__.d(selectors_namespaceObject, "isPermalinkEditable", function() { return isPermalinkEditable; }); @@ -2179,13 +1815,13 @@ __webpack_require__.d(selectors_namespaceObject, "getEditorSettings", function() __webpack_require__.d(selectors_namespaceObject, "getBlockName", function() { return getBlockName; }); __webpack_require__.d(selectors_namespaceObject, "isBlockValid", function() { return isBlockValid; }); __webpack_require__.d(selectors_namespaceObject, "getBlockAttributes", function() { return getBlockAttributes; }); -__webpack_require__.d(selectors_namespaceObject, "getBlock", function() { return selectors_getBlock; }); +__webpack_require__.d(selectors_namespaceObject, "getBlock", function() { return getBlock; }); __webpack_require__.d(selectors_namespaceObject, "getBlocks", function() { return selectors_getBlocks; }); __webpack_require__.d(selectors_namespaceObject, "__unstableGetBlockWithoutInnerBlocks", function() { return __unstableGetBlockWithoutInnerBlocks; }); __webpack_require__.d(selectors_namespaceObject, "getClientIdsOfDescendants", function() { return getClientIdsOfDescendants; }); __webpack_require__.d(selectors_namespaceObject, "getClientIdsWithDescendants", function() { return getClientIdsWithDescendants; }); __webpack_require__.d(selectors_namespaceObject, "getGlobalBlockCount", function() { return getGlobalBlockCount; }); -__webpack_require__.d(selectors_namespaceObject, "getBlocksByClientId", function() { return selectors_getBlocksByClientId; }); +__webpack_require__.d(selectors_namespaceObject, "getBlocksByClientId", function() { return getBlocksByClientId; }); __webpack_require__.d(selectors_namespaceObject, "getBlockCount", function() { return getBlockCount; }); __webpack_require__.d(selectors_namespaceObject, "getBlockSelectionStart", function() { return getBlockSelectionStart; }); __webpack_require__.d(selectors_namespaceObject, "getBlockSelectionEnd", function() { return getBlockSelectionEnd; }); @@ -2224,11 +1860,72 @@ __webpack_require__.d(selectors_namespaceObject, "isBlockInsertionPointVisible", __webpack_require__.d(selectors_namespaceObject, "isValidTemplate", function() { return isValidTemplate; }); __webpack_require__.d(selectors_namespaceObject, "getTemplate", function() { return getTemplate; }); __webpack_require__.d(selectors_namespaceObject, "getTemplateLock", function() { return getTemplateLock; }); -__webpack_require__.d(selectors_namespaceObject, "canInsertBlockType", function() { return selectors_canInsertBlockType; }); +__webpack_require__.d(selectors_namespaceObject, "canInsertBlockType", function() { return canInsertBlockType; }); __webpack_require__.d(selectors_namespaceObject, "getInserterItems", function() { return getInserterItems; }); __webpack_require__.d(selectors_namespaceObject, "hasInserterItems", function() { return hasInserterItems; }); __webpack_require__.d(selectors_namespaceObject, "getBlockListSettings", function() { return getBlockListSettings; }); +// NAMESPACE OBJECT: ./node_modules/@wordpress/editor/build-module/store/actions.js +var actions_namespaceObject = {}; +__webpack_require__.r(actions_namespaceObject); +__webpack_require__.d(actions_namespaceObject, "setupEditor", function() { return setupEditor; }); +__webpack_require__.d(actions_namespaceObject, "__experimentalTearDownEditor", function() { return __experimentalTearDownEditor; }); +__webpack_require__.d(actions_namespaceObject, "resetPost", function() { return resetPost; }); +__webpack_require__.d(actions_namespaceObject, "resetAutosave", function() { return resetAutosave; }); +__webpack_require__.d(actions_namespaceObject, "__experimentalRequestPostUpdateStart", function() { return __experimentalRequestPostUpdateStart; }); +__webpack_require__.d(actions_namespaceObject, "__experimentalRequestPostUpdateFinish", function() { return __experimentalRequestPostUpdateFinish; }); +__webpack_require__.d(actions_namespaceObject, "updatePost", function() { return updatePost; }); +__webpack_require__.d(actions_namespaceObject, "setupEditorState", function() { return setupEditorState; }); +__webpack_require__.d(actions_namespaceObject, "editPost", function() { return actions_editPost; }); +__webpack_require__.d(actions_namespaceObject, "__experimentalOptimisticUpdatePost", function() { return __experimentalOptimisticUpdatePost; }); +__webpack_require__.d(actions_namespaceObject, "savePost", function() { return actions_savePost; }); +__webpack_require__.d(actions_namespaceObject, "refreshPost", function() { return refreshPost; }); +__webpack_require__.d(actions_namespaceObject, "trashPost", function() { return trashPost; }); +__webpack_require__.d(actions_namespaceObject, "autosave", function() { return actions_autosave; }); +__webpack_require__.d(actions_namespaceObject, "redo", function() { return actions_redo; }); +__webpack_require__.d(actions_namespaceObject, "undo", function() { return actions_undo; }); +__webpack_require__.d(actions_namespaceObject, "createUndoLevel", function() { return createUndoLevel; }); +__webpack_require__.d(actions_namespaceObject, "updatePostLock", function() { return updatePostLock; }); +__webpack_require__.d(actions_namespaceObject, "enablePublishSidebar", function() { return enablePublishSidebar; }); +__webpack_require__.d(actions_namespaceObject, "disablePublishSidebar", function() { return disablePublishSidebar; }); +__webpack_require__.d(actions_namespaceObject, "lockPostSaving", function() { return lockPostSaving; }); +__webpack_require__.d(actions_namespaceObject, "unlockPostSaving", function() { return unlockPostSaving; }); +__webpack_require__.d(actions_namespaceObject, "lockPostAutosaving", function() { return lockPostAutosaving; }); +__webpack_require__.d(actions_namespaceObject, "unlockPostAutosaving", function() { return unlockPostAutosaving; }); +__webpack_require__.d(actions_namespaceObject, "resetEditorBlocks", function() { return actions_resetEditorBlocks; }); +__webpack_require__.d(actions_namespaceObject, "updateEditorSettings", function() { return updateEditorSettings; }); +__webpack_require__.d(actions_namespaceObject, "resetBlocks", function() { return resetBlocks; }); +__webpack_require__.d(actions_namespaceObject, "receiveBlocks", function() { return receiveBlocks; }); +__webpack_require__.d(actions_namespaceObject, "updateBlock", function() { return updateBlock; }); +__webpack_require__.d(actions_namespaceObject, "updateBlockAttributes", function() { return updateBlockAttributes; }); +__webpack_require__.d(actions_namespaceObject, "selectBlock", function() { return actions_selectBlock; }); +__webpack_require__.d(actions_namespaceObject, "startMultiSelect", function() { return startMultiSelect; }); +__webpack_require__.d(actions_namespaceObject, "stopMultiSelect", function() { return stopMultiSelect; }); +__webpack_require__.d(actions_namespaceObject, "multiSelect", function() { return multiSelect; }); +__webpack_require__.d(actions_namespaceObject, "clearSelectedBlock", function() { return clearSelectedBlock; }); +__webpack_require__.d(actions_namespaceObject, "toggleSelection", function() { return toggleSelection; }); +__webpack_require__.d(actions_namespaceObject, "replaceBlocks", function() { return actions_replaceBlocks; }); +__webpack_require__.d(actions_namespaceObject, "replaceBlock", function() { return replaceBlock; }); +__webpack_require__.d(actions_namespaceObject, "moveBlocksDown", function() { return moveBlocksDown; }); +__webpack_require__.d(actions_namespaceObject, "moveBlocksUp", function() { return moveBlocksUp; }); +__webpack_require__.d(actions_namespaceObject, "moveBlockToPosition", function() { return moveBlockToPosition; }); +__webpack_require__.d(actions_namespaceObject, "insertBlock", function() { return insertBlock; }); +__webpack_require__.d(actions_namespaceObject, "insertBlocks", function() { return insertBlocks; }); +__webpack_require__.d(actions_namespaceObject, "showInsertionPoint", function() { return showInsertionPoint; }); +__webpack_require__.d(actions_namespaceObject, "hideInsertionPoint", function() { return hideInsertionPoint; }); +__webpack_require__.d(actions_namespaceObject, "setTemplateValidity", function() { return setTemplateValidity; }); +__webpack_require__.d(actions_namespaceObject, "synchronizeTemplate", function() { return synchronizeTemplate; }); +__webpack_require__.d(actions_namespaceObject, "mergeBlocks", function() { return mergeBlocks; }); +__webpack_require__.d(actions_namespaceObject, "removeBlocks", function() { return removeBlocks; }); +__webpack_require__.d(actions_namespaceObject, "removeBlock", function() { return removeBlock; }); +__webpack_require__.d(actions_namespaceObject, "toggleBlockMode", function() { return toggleBlockMode; }); +__webpack_require__.d(actions_namespaceObject, "startTyping", function() { return startTyping; }); +__webpack_require__.d(actions_namespaceObject, "stopTyping", function() { return stopTyping; }); +__webpack_require__.d(actions_namespaceObject, "enterFormattedText", function() { return enterFormattedText; }); +__webpack_require__.d(actions_namespaceObject, "exitFormattedText", function() { return exitFormattedText; }); +__webpack_require__.d(actions_namespaceObject, "insertDefaultBlock", function() { return insertDefaultBlock; }); +__webpack_require__.d(actions_namespaceObject, "updateBlockListSettings", function() { return updateBlockListSettings; }); + // EXTERNAL MODULE: external {"this":["wp","blockEditor"]} var external_this_wp_blockEditor_ = __webpack_require__(6); @@ -2236,19 +1933,22 @@ var external_this_wp_blockEditor_ = __webpack_require__(6); var external_this_wp_blocks_ = __webpack_require__(11); // EXTERNAL MODULE: external {"this":["wp","coreData"]} -var external_this_wp_coreData_ = __webpack_require__(100); +var external_this_wp_coreData_ = __webpack_require__(83); // EXTERNAL MODULE: external {"this":["wp","keyboardShortcuts"]} var external_this_wp_keyboardShortcuts_ = __webpack_require__(53); // EXTERNAL MODULE: external {"this":["wp","notices"]} -var external_this_wp_notices_ = __webpack_require__(101); +var external_this_wp_notices_ = __webpack_require__(92); + +// EXTERNAL MODULE: external {"this":["wp","reusableBlocks"]} +var external_this_wp_reusableBlocks_ = __webpack_require__(121); // EXTERNAL MODULE: external {"this":["wp","richText"]} var external_this_wp_richText_ = __webpack_require__(25); // EXTERNAL MODULE: external {"this":["wp","viewport"]} -var external_this_wp_viewport_ = __webpack_require__(89); +var external_this_wp_viewport_ = __webpack_require__(101); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js var defineProperty = __webpack_require__(5); @@ -2263,7 +1963,7 @@ var external_this_wp_dataControls_ = __webpack_require__(32); var esm_typeof = __webpack_require__(40); // EXTERNAL MODULE: ./node_modules/redux-optimist/index.js -var redux_optimist = __webpack_require__(139); +var redux_optimist = __webpack_require__(292); var redux_optimist_default = /*#__PURE__*/__webpack_require__.n(redux_optimist); // EXTERNAL MODULE: external {"this":"lodash"} @@ -2578,93 +2278,6 @@ function postAutosavingLock() { return state; } -var reducer_reusableBlocks = Object(external_this_wp_data_["combineReducers"])({ - data: function data() { - var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var action = arguments.length > 1 ? arguments[1] : undefined; - - switch (action.type) { - case 'RECEIVE_REUSABLE_BLOCKS': - { - return reducer_objectSpread(reducer_objectSpread({}, state), Object(external_this_lodash_["keyBy"])(action.results, 'id')); - } - - case 'UPDATE_REUSABLE_BLOCK': - { - var id = action.id, - changes = action.changes; - return reducer_objectSpread(reducer_objectSpread({}, state), {}, Object(defineProperty["a" /* default */])({}, id, reducer_objectSpread(reducer_objectSpread({}, state[id]), changes))); - } - - case 'SAVE_REUSABLE_BLOCK_SUCCESS': - { - var _id = action.id, - updatedId = action.updatedId; // If a temporary reusable block is saved, we swap the temporary id with the final one - - if (_id === updatedId) { - return state; - } - - var value = state[_id]; - return reducer_objectSpread(reducer_objectSpread({}, Object(external_this_lodash_["omit"])(state, _id)), {}, Object(defineProperty["a" /* default */])({}, updatedId, reducer_objectSpread(reducer_objectSpread({}, value), {}, { - id: updatedId - }))); - } - - case 'REMOVE_REUSABLE_BLOCK': - { - var _id2 = action.id; - return Object(external_this_lodash_["omit"])(state, _id2); - } - } - - return state; - }, - isFetching: function isFetching() { - var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var action = arguments.length > 1 ? arguments[1] : undefined; - - switch (action.type) { - case 'FETCH_REUSABLE_BLOCKS': - { - var id = action.id; - - if (!id) { - return state; - } - - return reducer_objectSpread(reducer_objectSpread({}, state), {}, Object(defineProperty["a" /* default */])({}, id, true)); - } - - case 'FETCH_REUSABLE_BLOCKS_SUCCESS': - case 'FETCH_REUSABLE_BLOCKS_FAILURE': - { - var _id3 = action.id; - return Object(external_this_lodash_["omit"])(state, _id3); - } - } - - return state; - }, - isSaving: function isSaving() { - var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var action = arguments.length > 1 ? arguments[1] : undefined; - - switch (action.type) { - case 'SAVE_REUSABLE_BLOCK': - return reducer_objectSpread(reducer_objectSpread({}, state), {}, Object(defineProperty["a" /* default */])({}, action.id, true)); - - case 'SAVE_REUSABLE_BLOCK_SUCCESS': - case 'SAVE_REUSABLE_BLOCK_FAILURE': - { - var id = action.id; - return Object(external_this_lodash_["omit"])(state, id); - } - } - - return state; - } -}); /** * Reducer returning whether the editor is ready to be rendered. * The editor is considered ready to be rendered once @@ -2716,7 +2329,6 @@ function reducer_editorSettings() { preferences: preferences, saving: saving, postLock: postLock, - reusableBlocks: reducer_reusableBlocks, template: reducer_template, postSavingLock: postSavingLock, isReady: reducer_isReady, @@ -2724,31 +2336,22 @@ function reducer_editorSettings() { postAutosavingLock: postAutosavingLock }))); -// EXTERNAL MODULE: ./node_modules/refx/refx.js -var refx = __webpack_require__(113); -var refx_default = /*#__PURE__*/__webpack_require__.n(refx); +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules +var slicedToArray = __webpack_require__(12); -// EXTERNAL MODULE: external {"this":"regeneratorRuntime"} -var external_this_regeneratorRuntime_ = __webpack_require__(24); -var external_this_regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(external_this_regeneratorRuntime_); +// EXTERNAL MODULE: external {"this":["wp","date"]} +var external_this_wp_date_ = __webpack_require__(75); -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js -var asyncToGenerator = __webpack_require__(47); - -// EXTERNAL MODULE: external {"this":["wp","apiFetch"]} -var external_this_wp_apiFetch_ = __webpack_require__(45); -var external_this_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_apiFetch_); - -// EXTERNAL MODULE: external {"this":["wp","i18n"]} -var external_this_wp_i18n_ = __webpack_require__(1); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules -var toConsumableArray = __webpack_require__(18); +// EXTERNAL MODULE: external {"this":["wp","url"]} +var external_this_wp_url_ = __webpack_require__(31); // EXTERNAL MODULE: external {"this":["wp","deprecated"]} -var external_this_wp_deprecated_ = __webpack_require__(35); +var external_this_wp_deprecated_ = __webpack_require__(36); var external_this_wp_deprecated_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_deprecated_); +// EXTERNAL MODULE: external {"this":["wp","element"]} +var external_this_wp_element_ = __webpack_require__(0); + // CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/store/constants.js /** * Set of post properties for which edits should assume a merging behavior, @@ -2771,138 +2374,6 @@ var PERMALINK_POSTNAME_REGEX = /%(?:postname|pagename)%/; var ONE_MINUTE_IN_MS = 60 * 1000; var AUTOSAVE_PROPERTIES = ['title', 'excerpt', 'content']; -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/store/utils/notice-builder.js -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - -/** - * External dependencies - */ - - -/** - * Builds the arguments for a success notification dispatch. - * - * @param {Object} data Incoming data to build the arguments from. - * - * @return {Array} Arguments for dispatch. An empty array signals no - * notification should be sent. - */ - -function getNotificationArgumentsForSaveSuccess(data) { - var previousPost = data.previousPost, - post = data.post, - postType = data.postType; // Autosaves are neither shown a notice nor redirected. - - if (Object(external_this_lodash_["get"])(data.options, ['isAutosave'])) { - return []; - } - - var publishStatus = ['publish', 'private', 'future']; - var isPublished = Object(external_this_lodash_["includes"])(publishStatus, previousPost.status); - var willPublish = Object(external_this_lodash_["includes"])(publishStatus, post.status); - var noticeMessage; - var shouldShowLink = Object(external_this_lodash_["get"])(postType, ['viewable'], false); - - if (!isPublished && !willPublish) { - // If saving a non-published post, don't show notice. - noticeMessage = null; - } else if (isPublished && !willPublish) { - // If undoing publish status, show specific notice - noticeMessage = postType.labels.item_reverted_to_draft; - shouldShowLink = false; - } else if (!isPublished && willPublish) { - // If publishing or scheduling a post, show the corresponding - // publish message - noticeMessage = { - publish: postType.labels.item_published, - private: postType.labels.item_published_privately, - future: postType.labels.item_scheduled - }[post.status]; - } else { - // Generic fallback notice - noticeMessage = postType.labels.item_updated; - } - - if (noticeMessage) { - var actions = []; - - if (shouldShowLink) { - actions.push({ - label: postType.labels.view_item, - url: post.link - }); - } - - return [noticeMessage, { - id: SAVE_POST_NOTICE_ID, - type: 'snackbar', - actions: actions - }]; - } - - return []; -} -/** - * Builds the fail notification arguments for dispatch. - * - * @param {Object} data Incoming data to build the arguments with. - * - * @return {Array} Arguments for dispatch. An empty array signals no - * notification should be sent. - */ - -function getNotificationArgumentsForSaveFail(data) { - var post = data.post, - edits = data.edits, - error = data.error; - - if (error && 'rest_autosave_no_changes' === error.code) { - // Autosave requested a new autosave, but there were no changes. This shouldn't - // result in an error notice for the user. - return []; - } - - var publishStatus = ['publish', 'private', 'future']; - var isPublished = publishStatus.indexOf(post.status) !== -1; // If the post was being published, we show the corresponding publish error message - // Unless we publish an "updating failed" message - - var messages = { - publish: Object(external_this_wp_i18n_["__"])('Publishing failed.'), - private: Object(external_this_wp_i18n_["__"])('Publishing failed.'), - future: Object(external_this_wp_i18n_["__"])('Scheduling failed.') - }; - var noticeMessage = !isPublished && publishStatus.indexOf(edits.status) !== -1 ? messages[edits.status] : Object(external_this_wp_i18n_["__"])('Updating failed.'); // Check if message string contains HTML. Notice text is currently only - // supported as plaintext, and stripping the tags may muddle the meaning. - - if (error.message && !/<\/?[^>]*>/.test(error.message)) { - noticeMessage = [noticeMessage, error.message].join(' '); - } - - return [noticeMessage, { - id: SAVE_POST_NOTICE_ID - }]; -} -/** - * Builds the trash fail notification arguments for dispatch. - * - * @param {Object} data - * - * @return {Array} Arguments for dispatch. - */ - -function getNotificationArgumentsForTrashFail(data) { - return [data.error.message && data.error.code !== 'unknown_error' ? data.error.message : Object(external_this_wp_i18n_["__"])('Trashing failed'), { - id: TRASH_POST_NOTICE_ID - }]; -} - // EXTERNAL MODULE: ./node_modules/memize/index.js var memize = __webpack_require__(60); var memize_default = /*#__PURE__*/__webpack_require__.n(memize); @@ -2950,1245 +2421,6 @@ var serializeBlocks = memize_default()(function (blocksForSerialization) { }); /* harmony default export */ var serialize_blocks = (serializeBlocks); -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/store/actions.js - - - - -function actions_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - -function actions_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { actions_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { actions_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - -var _marked = /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(setupEditor), - _marked2 = /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(resetAutosave), - _marked3 = /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(actions_editPost), - _marked4 = /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(actions_savePost), - _marked5 = /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(refreshPost), - _marked6 = /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(trashPost), - _marked7 = /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(actions_autosave), - _marked8 = /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(actions_experimentalLocalAutosave), - _marked9 = /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(actions_redo), - _marked10 = /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(actions_undo), - _marked11 = /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(actions_resetEditorBlocks); - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - -/** - * Internal dependencies - */ - - - - -/** - * Returns an action generator used in signalling that editor has initialized with - * the specified post object and editor settings. - * - * @param {Object} post Post object. - * @param {Object} edits Initial edited attributes object. - * @param {Array?} template Block Template. - */ - -function setupEditor(post, edits, template) { - var content, blocks, isNewPost; - return external_this_regeneratorRuntime_default.a.wrap(function setupEditor$(_context) { - while (1) { - switch (_context.prev = _context.next) { - case 0: - // In order to ensure maximum of a single parse during setup, edits are - // included as part of editor setup action. Assume edited content as - // canonical if provided, falling back to post. - if (Object(external_this_lodash_["has"])(edits, ['content'])) { - content = edits.content; - } else { - content = post.content.raw; - } - - blocks = Object(external_this_wp_blocks_["parse"])(content); // Apply a template for new posts only, if exists. - - isNewPost = post.status === 'auto-draft'; - - if (isNewPost && template) { - blocks = Object(external_this_wp_blocks_["synchronizeBlocksWithTemplate"])(blocks, template); - } - - _context.next = 6; - return resetPost(post); - - case 6: - _context.next = 8; - return { - type: 'SETUP_EDITOR', - post: post, - edits: edits, - template: template - }; - - case 8: - _context.next = 10; - return actions_resetEditorBlocks(blocks, { - __unstableShouldCreateUndoLevel: false - }); - - case 10: - _context.next = 12; - return setupEditorState(post); - - case 12: - if (!(edits && Object.keys(edits).some(function (key) { - return edits[key] !== (Object(external_this_lodash_["has"])(post, [key, 'raw']) ? post[key].raw : post[key]); - }))) { - _context.next = 15; - break; - } - - _context.next = 15; - return actions_editPost(edits); - - case 15: - case "end": - return _context.stop(); - } - } - }, _marked); -} -/** - * Returns an action object signalling that the editor is being destroyed and - * that any necessary state or side-effect cleanup should occur. - * - * @return {Object} Action object. - */ - -function __experimentalTearDownEditor() { - return { - type: 'TEAR_DOWN_EDITOR' - }; -} -/** - * Returns an action object used in signalling that the latest version of the - * post has been received, either by initialization or save. - * - * @param {Object} post Post object. - * - * @return {Object} Action object. - */ - -function resetPost(post) { - return { - type: 'RESET_POST', - post: post - }; -} -/** - * Returns an action object used in signalling that the latest autosave of the - * post has been received, by initialization or autosave. - * - * @deprecated since 5.6. Callers should use the `receiveAutosaves( postId, autosave )` - * selector from the '@wordpress/core-data' package. - * - * @param {Object} newAutosave Autosave post object. - * - * @return {Object} Action object. - */ - -function resetAutosave(newAutosave) { - var postId; - return external_this_regeneratorRuntime_default.a.wrap(function resetAutosave$(_context2) { - while (1) { - switch (_context2.prev = _context2.next) { - case 0: - external_this_wp_deprecated_default()('resetAutosave action (`core/editor` store)', { - alternative: 'receiveAutosaves action (`core` store)', - plugin: 'Gutenberg' - }); - _context2.next = 3; - return Object(external_this_wp_dataControls_["select"])(STORE_KEY, 'getCurrentPostId'); - - case 3: - postId = _context2.sent; - _context2.next = 6; - return Object(external_this_wp_dataControls_["dispatch"])('core', 'receiveAutosaves', postId, newAutosave); - - case 6: - return _context2.abrupt("return", { - type: '__INERT__' - }); - - case 7: - case "end": - return _context2.stop(); - } - } - }, _marked2); -} -/** - * Action for dispatching that a post update request has started. - * - * @param {Object} options - * - * @return {Object} An action object - */ - -function __experimentalRequestPostUpdateStart() { - var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - return { - type: 'REQUEST_POST_UPDATE_START', - options: options - }; -} -/** - * Action for dispatching that a post update request has finished. - * - * @param {Object} options - * - * @return {Object} An action object - */ - -function __experimentalRequestPostUpdateFinish() { - var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - return { - type: 'REQUEST_POST_UPDATE_FINISH', - options: options - }; -} -/** - * Returns an action object used in signalling that a patch of updates for the - * latest version of the post have been received. - * - * @param {Object} edits Updated post fields. - * - * @return {Object} Action object. - */ - -function updatePost(edits) { - return { - type: 'UPDATE_POST', - edits: edits - }; -} -/** - * Returns an action object used to setup the editor state when first opening - * an editor. - * - * @param {Object} post Post object. - * - * @return {Object} Action object. - */ - -function setupEditorState(post) { - return { - type: 'SETUP_EDITOR_STATE', - post: post - }; -} -/** - * Returns an action object used in signalling that attributes of the post have - * been edited. - * - * @param {Object} edits Post attributes to edit. - * @param {Object} options Options for the edit. - * - * @yield {Object} Action object or control. - */ - -function actions_editPost(edits, options) { - var _yield$select, id, type; - - return external_this_regeneratorRuntime_default.a.wrap(function editPost$(_context3) { - while (1) { - switch (_context3.prev = _context3.next) { - case 0: - _context3.next = 2; - return Object(external_this_wp_dataControls_["select"])(STORE_KEY, 'getCurrentPost'); - - case 2: - _yield$select = _context3.sent; - id = _yield$select.id; - type = _yield$select.type; - _context3.next = 7; - return Object(external_this_wp_dataControls_["dispatch"])('core', 'editEntityRecord', 'postType', type, id, edits, options); - - case 7: - case "end": - return _context3.stop(); - } - } - }, _marked3); -} -/** - * Returns action object produced by the updatePost creator augmented by - * an optimist option that signals optimistically applying updates. - * - * @param {Object} edits Updated post fields. - * - * @return {Object} Action object. - */ - -function __experimentalOptimisticUpdatePost(edits) { - return actions_objectSpread(actions_objectSpread({}, updatePost(edits)), {}, { - optimist: { - id: POST_UPDATE_TRANSACTION_ID - } - }); -} -/** - * Action generator for saving the current post in the editor. - * - * @param {Object} options - */ - -function actions_savePost() { - var options, - edits, - previousRecord, - error, - args, - updatedRecord, - _args4, - _args5 = arguments; - - return external_this_regeneratorRuntime_default.a.wrap(function savePost$(_context4) { - while (1) { - switch (_context4.prev = _context4.next) { - case 0: - options = _args5.length > 0 && _args5[0] !== undefined ? _args5[0] : {}; - _context4.next = 3; - return Object(external_this_wp_dataControls_["select"])(STORE_KEY, 'isEditedPostSaveable'); - - case 3: - if (_context4.sent) { - _context4.next = 5; - break; - } - - return _context4.abrupt("return"); - - case 5: - _context4.next = 7; - return Object(external_this_wp_dataControls_["select"])(STORE_KEY, 'getEditedPostContent'); - - case 7: - _context4.t0 = _context4.sent; - edits = { - content: _context4.t0 - }; - - if (options.isAutosave) { - _context4.next = 12; - break; - } - - _context4.next = 12; - return Object(external_this_wp_dataControls_["dispatch"])(STORE_KEY, 'editPost', edits, { - undoIgnore: true - }); - - case 12: - _context4.next = 14; - return __experimentalRequestPostUpdateStart(options); - - case 14: - _context4.next = 16; - return Object(external_this_wp_dataControls_["select"])(STORE_KEY, 'getCurrentPost'); - - case 16: - previousRecord = _context4.sent; - _context4.t1 = actions_objectSpread; - _context4.t2 = actions_objectSpread; - _context4.t3 = { - id: previousRecord.id - }; - _context4.next = 22; - return Object(external_this_wp_dataControls_["select"])('core', 'getEntityRecordNonTransientEdits', 'postType', previousRecord.type, previousRecord.id); - - case 22: - _context4.t4 = _context4.sent; - _context4.t5 = (0, _context4.t2)(_context4.t3, _context4.t4); - _context4.t6 = edits; - edits = (0, _context4.t1)(_context4.t5, _context4.t6); - _context4.next = 28; - return Object(external_this_wp_dataControls_["dispatch"])('core', 'saveEntityRecord', 'postType', previousRecord.type, edits, options); - - case 28: - _context4.next = 30; - return __experimentalRequestPostUpdateFinish(options); - - case 30: - _context4.next = 32; - return Object(external_this_wp_dataControls_["select"])('core', 'getLastEntitySaveError', 'postType', previousRecord.type, previousRecord.id); - - case 32: - error = _context4.sent; - - if (!error) { - _context4.next = 40; - break; - } - - args = getNotificationArgumentsForSaveFail({ - post: previousRecord, - edits: edits, - error: error - }); - - if (!args.length) { - _context4.next = 38; - break; - } - - _context4.next = 38; - return external_this_wp_dataControls_["dispatch"].apply(void 0, ['core/notices', 'createErrorNotice'].concat(Object(toConsumableArray["a" /* default */])(args))); - - case 38: - _context4.next = 58; - break; - - case 40: - _context4.next = 42; - return Object(external_this_wp_dataControls_["select"])(STORE_KEY, 'getCurrentPost'); - - case 42: - updatedRecord = _context4.sent; - _context4.t7 = getNotificationArgumentsForSaveSuccess; - _context4.t8 = previousRecord; - _context4.t9 = updatedRecord; - _context4.next = 48; - return Object(external_this_wp_dataControls_["select"])('core', 'getPostType', updatedRecord.type); - - case 48: - _context4.t10 = _context4.sent; - _context4.t11 = options; - _context4.t12 = { - previousPost: _context4.t8, - post: _context4.t9, - postType: _context4.t10, - options: _context4.t11 - }; - _args4 = (0, _context4.t7)(_context4.t12); - - if (!_args4.length) { - _context4.next = 55; - break; - } - - _context4.next = 55; - return external_this_wp_dataControls_["dispatch"].apply(void 0, ['core/notices', 'createSuccessNotice'].concat(Object(toConsumableArray["a" /* default */])(_args4))); - - case 55: - if (options.isAutosave) { - _context4.next = 58; - break; - } - - _context4.next = 58; - return Object(external_this_wp_dataControls_["dispatch"])('core/block-editor', '__unstableMarkLastChangeAsPersistent'); - - case 58: - case "end": - return _context4.stop(); - } - } - }, _marked4); -} -/** - * Action generator for handling refreshing the current post. - */ - -function refreshPost() { - var post, postTypeSlug, postType, newPost; - return external_this_regeneratorRuntime_default.a.wrap(function refreshPost$(_context5) { - while (1) { - switch (_context5.prev = _context5.next) { - case 0: - _context5.next = 2; - return Object(external_this_wp_dataControls_["select"])(STORE_KEY, 'getCurrentPost'); - - case 2: - post = _context5.sent; - _context5.next = 5; - return Object(external_this_wp_dataControls_["select"])(STORE_KEY, 'getCurrentPostType'); - - case 5: - postTypeSlug = _context5.sent; - _context5.next = 8; - return Object(external_this_wp_dataControls_["select"])('core', 'getPostType', postTypeSlug); - - case 8: - postType = _context5.sent; - _context5.next = 11; - return Object(external_this_wp_dataControls_["apiFetch"])({ - // Timestamp arg allows caller to bypass browser caching, which is - // expected for this specific function. - path: "/wp/v2/".concat(postType.rest_base, "/").concat(post.id) + "?context=edit&_timestamp=".concat(Date.now()) - }); - - case 11: - newPost = _context5.sent; - _context5.next = 14; - return Object(external_this_wp_dataControls_["dispatch"])(STORE_KEY, 'resetPost', newPost); - - case 14: - case "end": - return _context5.stop(); - } - } - }, _marked5); -} -/** - * Action generator for trashing the current post in the editor. - */ - -function trashPost() { - var postTypeSlug, postType, post; - return external_this_regeneratorRuntime_default.a.wrap(function trashPost$(_context6) { - while (1) { - switch (_context6.prev = _context6.next) { - case 0: - _context6.next = 2; - return Object(external_this_wp_dataControls_["select"])(STORE_KEY, 'getCurrentPostType'); - - case 2: - postTypeSlug = _context6.sent; - _context6.next = 5; - return Object(external_this_wp_dataControls_["select"])('core', 'getPostType', postTypeSlug); - - case 5: - postType = _context6.sent; - _context6.next = 8; - return Object(external_this_wp_dataControls_["dispatch"])('core/notices', 'removeNotice', TRASH_POST_NOTICE_ID); - - case 8: - _context6.prev = 8; - _context6.next = 11; - return Object(external_this_wp_dataControls_["select"])(STORE_KEY, 'getCurrentPost'); - - case 11: - post = _context6.sent; - _context6.next = 14; - return Object(external_this_wp_dataControls_["apiFetch"])({ - path: "/wp/v2/".concat(postType.rest_base, "/").concat(post.id), - method: 'DELETE' - }); - - case 14: - _context6.next = 16; - return Object(external_this_wp_dataControls_["dispatch"])(STORE_KEY, 'savePost'); - - case 16: - _context6.next = 22; - break; - - case 18: - _context6.prev = 18; - _context6.t0 = _context6["catch"](8); - _context6.next = 22; - return external_this_wp_dataControls_["dispatch"].apply(void 0, ['core/notices', 'createErrorNotice'].concat(Object(toConsumableArray["a" /* default */])(getNotificationArgumentsForTrashFail({ - error: _context6.t0 - })))); - - case 22: - case "end": - return _context6.stop(); - } - } - }, _marked6, null, [[8, 18]]); -} -/** - * Action generator used in signalling that the post should autosave. - * - * @param {Object?} options Extra flags to identify the autosave. - */ - -function actions_autosave(options) { - return external_this_regeneratorRuntime_default.a.wrap(function autosave$(_context7) { - while (1) { - switch (_context7.prev = _context7.next) { - case 0: - _context7.next = 2; - return Object(external_this_wp_dataControls_["dispatch"])(STORE_KEY, 'savePost', actions_objectSpread({ - isAutosave: true - }, options)); - - case 2: - case "end": - return _context7.stop(); - } - } - }, _marked7); -} -function actions_experimentalLocalAutosave() { - var post, isPostNew, title, content, excerpt; - return external_this_regeneratorRuntime_default.a.wrap(function __experimentalLocalAutosave$(_context8) { - while (1) { - switch (_context8.prev = _context8.next) { - case 0: - _context8.next = 2; - return Object(external_this_wp_dataControls_["select"])(STORE_KEY, 'getCurrentPost'); - - case 2: - post = _context8.sent; - _context8.next = 5; - return Object(external_this_wp_dataControls_["select"])(STORE_KEY, 'isEditedPostNew'); - - case 5: - isPostNew = _context8.sent; - _context8.next = 8; - return Object(external_this_wp_dataControls_["select"])(STORE_KEY, 'getEditedPostAttribute', 'title'); - - case 8: - title = _context8.sent; - _context8.next = 11; - return Object(external_this_wp_dataControls_["select"])(STORE_KEY, 'getEditedPostAttribute', 'content'); - - case 11: - content = _context8.sent; - _context8.next = 14; - return Object(external_this_wp_dataControls_["select"])(STORE_KEY, 'getEditedPostAttribute', 'excerpt'); - - case 14: - excerpt = _context8.sent; - _context8.next = 17; - return { - type: 'LOCAL_AUTOSAVE_SET', - postId: post.id, - isPostNew: isPostNew, - title: title, - content: content, - excerpt: excerpt - }; - - case 17: - case "end": - return _context8.stop(); - } - } - }, _marked8); -} -/** - * Returns an action object used in signalling that undo history should - * restore last popped state. - * - * @yield {Object} Action object. - */ - -function actions_redo() { - return external_this_regeneratorRuntime_default.a.wrap(function redo$(_context9) { - while (1) { - switch (_context9.prev = _context9.next) { - case 0: - _context9.next = 2; - return Object(external_this_wp_dataControls_["dispatch"])('core', 'redo'); - - case 2: - case "end": - return _context9.stop(); - } - } - }, _marked9); -} -/** - * Returns an action object used in signalling that undo history should pop. - * - * @yield {Object} Action object. - */ - -function actions_undo() { - return external_this_regeneratorRuntime_default.a.wrap(function undo$(_context10) { - while (1) { - switch (_context10.prev = _context10.next) { - case 0: - _context10.next = 2; - return Object(external_this_wp_dataControls_["dispatch"])('core', 'undo'); - - case 2: - case "end": - return _context10.stop(); - } - } - }, _marked10); -} -/** - * Returns an action object used in signalling that undo history record should - * be created. - * - * @return {Object} Action object. - */ - -function createUndoLevel() { - return { - type: 'CREATE_UNDO_LEVEL' - }; -} -/** - * Returns an action object used to lock the editor. - * - * @param {Object} lock Details about the post lock status, user, and nonce. - * - * @return {Object} Action object. - */ - -function updatePostLock(lock) { - return { - type: 'UPDATE_POST_LOCK', - lock: lock - }; -} -/** - * Returns an action object used to fetch a single reusable block or all - * reusable blocks from the REST API into the store. - * - * @param {?string} id If given, only a single reusable block with this ID will - * be fetched. - * - * @return {Object} Action object. - */ - -function actions_experimentalFetchReusableBlocks(id) { - return { - type: 'FETCH_REUSABLE_BLOCKS', - id: id - }; -} -/** - * Returns an action object used in signalling that reusable blocks have been - * received. `results` is an array of objects containing: - * - `reusableBlock` - Details about how the reusable block is persisted. - * - `parsedBlock` - The original block. - * - * @param {Object[]} results Reusable blocks received. - * - * @return {Object} Action object. - */ - -function __experimentalReceiveReusableBlocks(results) { - return { - type: 'RECEIVE_REUSABLE_BLOCKS', - results: results - }; -} -/** - * Returns an action object used to save a reusable block that's in the store to - * the REST API. - * - * @param {Object} id The ID of the reusable block to save. - * - * @return {Object} Action object. - */ - -function __experimentalSaveReusableBlock(id) { - return { - type: 'SAVE_REUSABLE_BLOCK', - id: id - }; -} -/** - * Returns an action object used to delete a reusable block via the REST API. - * - * @param {number} id The ID of the reusable block to delete. - * - * @return {Object} Action object. - */ - -function __experimentalDeleteReusableBlock(id) { - return { - type: 'DELETE_REUSABLE_BLOCK', - id: id - }; -} -/** - * Returns an action object used in signalling that a reusable block is - * to be updated. - * - * @param {number} id The ID of the reusable block to update. - * @param {Object} changes The changes to apply. - * - * @return {Object} Action object. - */ - -function __experimentalUpdateReusableBlock(id, changes) { - return { - type: 'UPDATE_REUSABLE_BLOCK', - id: id, - changes: changes - }; -} -/** - * Returns an action object used to convert a reusable block into a static - * block. - * - * @param {string} clientId The client ID of the block to attach. - * - * @return {Object} Action object. - */ - -function __experimentalConvertBlockToStatic(clientId) { - return { - type: 'CONVERT_BLOCK_TO_STATIC', - clientId: clientId - }; -} -/** - * Returns an action object used to convert a static block into a reusable - * block. - * - * @param {string} clientIds The client IDs of the block to detach. - * - * @return {Object} Action object. - */ - -function __experimentalConvertBlockToReusable(clientIds) { - return { - type: 'CONVERT_BLOCK_TO_REUSABLE', - clientIds: Object(external_this_lodash_["castArray"])(clientIds) - }; -} -/** - * Returns an action object used in signalling that the user has enabled the - * publish sidebar. - * - * @return {Object} Action object - */ - -function enablePublishSidebar() { - return { - type: 'ENABLE_PUBLISH_SIDEBAR' - }; -} -/** - * Returns an action object used in signalling that the user has disabled the - * publish sidebar. - * - * @return {Object} Action object - */ - -function disablePublishSidebar() { - return { - type: 'DISABLE_PUBLISH_SIDEBAR' - }; -} -/** - * Returns an action object used to signal that post saving is locked. - * - * @param {string} lockName The lock name. - * - * @example - * ``` - * const { subscribe } = wp.data; - * - * const initialPostStatus = wp.data.select( 'core/editor' ).getEditedPostAttribute( 'status' ); - * - * // Only allow publishing posts that are set to a future date. - * if ( 'publish' !== initialPostStatus ) { - * - * // Track locking. - * let locked = false; - * - * // Watch for the publish event. - * let unssubscribe = subscribe( () => { - * const currentPostStatus = wp.data.select( 'core/editor' ).getEditedPostAttribute( 'status' ); - * if ( 'publish' !== currentPostStatus ) { - * - * // Compare the post date to the current date, lock the post if the date isn't in the future. - * const postDate = new Date( wp.data.select( 'core/editor' ).getEditedPostAttribute( 'date' ) ); - * const currentDate = new Date(); - * if ( postDate.getTime() <= currentDate.getTime() ) { - * if ( ! locked ) { - * locked = true; - * wp.data.dispatch( 'core/editor' ).lockPostSaving( 'futurelock' ); - * } - * } else { - * if ( locked ) { - * locked = false; - * wp.data.dispatch( 'core/editor' ).unlockPostSaving( 'futurelock' ); - * } - * } - * } - * } ); - * } - * ``` - * - * @return {Object} Action object - */ - -function lockPostSaving(lockName) { - return { - type: 'LOCK_POST_SAVING', - lockName: lockName - }; -} -/** - * Returns an action object used to signal that post saving is unlocked. - * - * @param {string} lockName The lock name. - * - * @example - * ``` - * // Unlock post saving with the lock key `mylock`: - * wp.data.dispatch( 'core/editor' ).unlockPostSaving( 'mylock' ); - * ``` - * - * @return {Object} Action object - */ - -function unlockPostSaving(lockName) { - return { - type: 'UNLOCK_POST_SAVING', - lockName: lockName - }; -} -/** - * Returns an action object used to signal that post autosaving is locked. - * - * @param {string} lockName The lock name. - * - * @example - * ``` - * // Lock post autosaving with the lock key `mylock`: - * wp.data.dispatch( 'core/editor' ).lockPostAutosaving( 'mylock' ); - * ``` - * - * @return {Object} Action object - */ - -function lockPostAutosaving(lockName) { - return { - type: 'LOCK_POST_AUTOSAVING', - lockName: lockName - }; -} -/** - * Returns an action object used to signal that post autosaving is unlocked. - * - * @param {string} lockName The lock name. - * - * @example - * ``` - * // Unlock post saving with the lock key `mylock`: - * wp.data.dispatch( 'core/editor' ).unlockPostAutosaving( 'mylock' ); - * ``` - * - * @return {Object} Action object - */ - -function unlockPostAutosaving(lockName) { - return { - type: 'UNLOCK_POST_AUTOSAVING', - lockName: lockName - }; -} -/** - * Returns an action object used to signal that the blocks have been updated. - * - * @param {Array} blocks Block Array. - * @param {?Object} options Optional options. - * - * @yield {Object} Action object - */ - -function actions_resetEditorBlocks(blocks) { - var options, - __unstableShouldCreateUndoLevel, - selectionStart, - selectionEnd, - edits, - _yield$select2, - id, - type, - noChange, - _args12 = arguments; - - return external_this_regeneratorRuntime_default.a.wrap(function resetEditorBlocks$(_context11) { - while (1) { - switch (_context11.prev = _context11.next) { - case 0: - options = _args12.length > 1 && _args12[1] !== undefined ? _args12[1] : {}; - __unstableShouldCreateUndoLevel = options.__unstableShouldCreateUndoLevel, selectionStart = options.selectionStart, selectionEnd = options.selectionEnd; - edits = { - blocks: blocks, - selectionStart: selectionStart, - selectionEnd: selectionEnd - }; - - if (!(__unstableShouldCreateUndoLevel !== false)) { - _context11.next = 19; - break; - } - - _context11.next = 6; - return Object(external_this_wp_dataControls_["select"])(STORE_KEY, 'getCurrentPost'); - - case 6: - _yield$select2 = _context11.sent; - id = _yield$select2.id; - type = _yield$select2.type; - _context11.next = 11; - return Object(external_this_wp_dataControls_["syncSelect"])('core', 'getEditedEntityRecord', 'postType', type, id); - - case 11: - _context11.t0 = _context11.sent.blocks; - _context11.t1 = edits.blocks; - noChange = _context11.t0 === _context11.t1; - - if (!noChange) { - _context11.next = 18; - break; - } - - _context11.next = 17; - return Object(external_this_wp_dataControls_["dispatch"])('core', '__unstableCreateUndoLevel', 'postType', type, id); - - case 17: - return _context11.abrupt("return", _context11.sent); - - case 18: - // We create a new function here on every persistent edit - // to make sure the edit makes the post dirty and creates - // a new undo level. - edits.content = function (_ref) { - var _ref$blocks = _ref.blocks, - blocksForSerialization = _ref$blocks === void 0 ? [] : _ref$blocks; - return serialize_blocks(blocksForSerialization); - }; - - case 19: - return _context11.delegateYield(actions_editPost(edits), "t2", 20); - - case 20: - case "end": - return _context11.stop(); - } - } - }, _marked11); -} -/* - * Returns an action object used in signalling that the post editor settings have been updated. - * - * @param {Object} settings Updated settings - * - * @return {Object} Action object - */ - -function updateEditorSettings(settings) { - return { - type: 'UPDATE_EDITOR_SETTINGS', - settings: settings - }; -} -/** - * Backward compatibility - */ - -var actions_getBlockEditorAction = function getBlockEditorAction(name) { - return /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(function _callee() { - var _len, - args, - _key, - _args13 = arguments; - - return external_this_regeneratorRuntime_default.a.wrap(function _callee$(_context12) { - while (1) { - switch (_context12.prev = _context12.next) { - case 0: - external_this_wp_deprecated_default()("`wp.data.dispatch( 'core/editor' )." + name + '`', { - alternative: "`wp.data.dispatch( 'core/block-editor' )." + name + '`' - }); - - for (_len = _args13.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = _args13[_key]; - } - - _context12.next = 4; - return external_this_wp_dataControls_["dispatch"].apply(void 0, ['core/block-editor', name].concat(args)); - - case 4: - case "end": - return _context12.stop(); - } - } - }, _callee); - }); -}; -/** - * @see resetBlocks in core/block-editor store. - */ - - -var resetBlocks = actions_getBlockEditorAction('resetBlocks'); -/** - * @see receiveBlocks in core/block-editor store. - */ - -var receiveBlocks = actions_getBlockEditorAction('receiveBlocks'); -/** - * @see updateBlock in core/block-editor store. - */ - -var updateBlock = actions_getBlockEditorAction('updateBlock'); -/** - * @see updateBlockAttributes in core/block-editor store. - */ - -var updateBlockAttributes = actions_getBlockEditorAction('updateBlockAttributes'); -/** - * @see selectBlock in core/block-editor store. - */ - -var actions_selectBlock = actions_getBlockEditorAction('selectBlock'); -/** - * @see startMultiSelect in core/block-editor store. - */ - -var startMultiSelect = actions_getBlockEditorAction('startMultiSelect'); -/** - * @see stopMultiSelect in core/block-editor store. - */ - -var stopMultiSelect = actions_getBlockEditorAction('stopMultiSelect'); -/** - * @see multiSelect in core/block-editor store. - */ - -var multiSelect = actions_getBlockEditorAction('multiSelect'); -/** - * @see clearSelectedBlock in core/block-editor store. - */ - -var clearSelectedBlock = actions_getBlockEditorAction('clearSelectedBlock'); -/** - * @see toggleSelection in core/block-editor store. - */ - -var toggleSelection = actions_getBlockEditorAction('toggleSelection'); -/** - * @see replaceBlocks in core/block-editor store. - */ - -var actions_replaceBlocks = actions_getBlockEditorAction('replaceBlocks'); -/** - * @see replaceBlock in core/block-editor store. - */ - -var replaceBlock = actions_getBlockEditorAction('replaceBlock'); -/** - * @see moveBlocksDown in core/block-editor store. - */ - -var moveBlocksDown = actions_getBlockEditorAction('moveBlocksDown'); -/** - * @see moveBlocksUp in core/block-editor store. - */ - -var moveBlocksUp = actions_getBlockEditorAction('moveBlocksUp'); -/** - * @see moveBlockToPosition in core/block-editor store. - */ - -var moveBlockToPosition = actions_getBlockEditorAction('moveBlockToPosition'); -/** - * @see insertBlock in core/block-editor store. - */ - -var insertBlock = actions_getBlockEditorAction('insertBlock'); -/** - * @see insertBlocks in core/block-editor store. - */ - -var insertBlocks = actions_getBlockEditorAction('insertBlocks'); -/** - * @see showInsertionPoint in core/block-editor store. - */ - -var showInsertionPoint = actions_getBlockEditorAction('showInsertionPoint'); -/** - * @see hideInsertionPoint in core/block-editor store. - */ - -var hideInsertionPoint = actions_getBlockEditorAction('hideInsertionPoint'); -/** - * @see setTemplateValidity in core/block-editor store. - */ - -var setTemplateValidity = actions_getBlockEditorAction('setTemplateValidity'); -/** - * @see synchronizeTemplate in core/block-editor store. - */ - -var synchronizeTemplate = actions_getBlockEditorAction('synchronizeTemplate'); -/** - * @see mergeBlocks in core/block-editor store. - */ - -var mergeBlocks = actions_getBlockEditorAction('mergeBlocks'); -/** - * @see removeBlocks in core/block-editor store. - */ - -var removeBlocks = actions_getBlockEditorAction('removeBlocks'); -/** - * @see removeBlock in core/block-editor store. - */ - -var removeBlock = actions_getBlockEditorAction('removeBlock'); -/** - * @see toggleBlockMode in core/block-editor store. - */ - -var toggleBlockMode = actions_getBlockEditorAction('toggleBlockMode'); -/** - * @see startTyping in core/block-editor store. - */ - -var startTyping = actions_getBlockEditorAction('startTyping'); -/** - * @see stopTyping in core/block-editor store. - */ - -var stopTyping = actions_getBlockEditorAction('stopTyping'); -/** - * @see enterFormattedText in core/block-editor store. - */ - -var enterFormattedText = actions_getBlockEditorAction('enterFormattedText'); -/** - * @see exitFormattedText in core/block-editor store. - */ - -var exitFormattedText = actions_getBlockEditorAction('exitFormattedText'); -/** - * @see insertDefaultBlock in core/block-editor store. - */ - -var insertDefaultBlock = actions_getBlockEditorAction('insertDefaultBlock'); -/** - * @see updateBlockListSettings in core/block-editor store. - */ - -var updateBlockListSettings = actions_getBlockEditorAction('updateBlockListSettings'); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules -var slicedToArray = __webpack_require__(12); - -// EXTERNAL MODULE: ./node_modules/rememo/es/rememo.js -var rememo = __webpack_require__(41); - -// EXTERNAL MODULE: external {"this":["wp","date"]} -var external_this_wp_date_ = __webpack_require__(75); - -// EXTERNAL MODULE: external {"this":["wp","url"]} -var external_this_wp_url_ = __webpack_require__(31); - -// EXTERNAL MODULE: external {"this":["wp","element"]} -var external_this_wp_element_ = __webpack_require__(0); - // CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/utils/url.js /** * External dependencies @@ -4250,7 +2482,6 @@ function selectors_objectSpread(target) { for (var i = 1; i < arguments.length; * External dependencies */ - /** * WordPress dependencies */ @@ -5161,70 +3392,6 @@ var getEditedPostContent = Object(external_this_wp_data_["createRegistrySelector return ''; }; }); -/** - * Returns the reusable block with the given ID. - * - * @param {Object} state Global application state. - * @param {number|string} ref The reusable block's ID. - * - * @return {Object} The reusable block, or null if none exists. - */ - -var __experimentalGetReusableBlock = Object(rememo["a" /* default */])(function (state, ref) { - var block = state.reusableBlocks.data[ref]; - - if (!block) { - return null; - } - - var isTemporary = isNaN(parseInt(ref)); - return selectors_objectSpread(selectors_objectSpread({}, block), {}, { - id: isTemporary ? ref : +ref, - isTemporary: isTemporary - }); -}, function (state, ref) { - return [state.reusableBlocks.data[ref]]; -}); -/** - * Returns whether or not the reusable block with the given ID is being saved. - * - * @param {Object} state Global application state. - * @param {string} ref The reusable block's ID. - * - * @return {boolean} Whether or not the reusable block is being saved. - */ - -function __experimentalIsSavingReusableBlock(state, ref) { - return state.reusableBlocks.isSaving[ref] || false; -} -/** - * Returns true if the reusable block with the given ID is being fetched, or - * false otherwise. - * - * @param {Object} state Global application state. - * @param {string} ref The reusable block's ID. - * - * @return {boolean} Whether the reusable block is being fetched. - */ - -function __experimentalIsFetchingReusableBlock(state, ref) { - return !!state.reusableBlocks.isFetching[ref]; -} -/** - * Returns an array of all reusable blocks. - * - * @param {Object} state Global application state. - * - * @return {Array} An array of all reusable blocks. - */ - -var selectors_experimentalGetReusableBlocks = Object(rememo["a" /* default */])(function (state) { - return Object(external_this_lodash_["map"])(state.reusableBlocks.data, function (value, ref) { - return __experimentalGetReusableBlock(state, ref); - }); -}, function (state) { - return [state.reusableBlocks.data]; -}); /** * Returns state object prior to a specified optimist transaction ID, or `null` * if the transaction corresponding to the given ID cannot be found. @@ -5565,7 +3732,7 @@ var getBlockAttributes = getBlockEditorSelector('getBlockAttributes'); * @see getBlock in core/block-editor store. */ -var selectors_getBlock = getBlockEditorSelector('getBlock'); +var getBlock = getBlockEditorSelector('getBlock'); /** * @see getBlocks in core/block-editor store. */ @@ -5595,7 +3762,7 @@ var getGlobalBlockCount = getBlockEditorSelector('getGlobalBlockCount'); * @see getBlocksByClientId in core/block-editor store. */ -var selectors_getBlocksByClientId = getBlockEditorSelector('getBlocksByClientId'); +var getBlocksByClientId = getBlockEditorSelector('getBlocksByClientId'); /** * @see getBlockCount in core/block-editor store. */ @@ -5790,7 +3957,7 @@ var getTemplateLock = getBlockEditorSelector('getTemplateLock'); * @see canInsertBlockType in core/block-editor store. */ -var selectors_canInsertBlockType = getBlockEditorSelector('canInsertBlockType'); +var canInsertBlockType = getBlockEditorSelector('canInsertBlockType'); /** * @see getInserterItems in core/block-editor store. */ @@ -5807,30 +3974,182 @@ var hasInserterItems = getBlockEditorSelector('hasInserterItems'); var getBlockListSettings = getBlockEditorSelector('getBlockListSettings'); -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/store/effects/reusable-blocks.js +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +var objectWithoutProperties = __webpack_require__(14); +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules +var toConsumableArray = __webpack_require__(17); +// EXTERNAL MODULE: external {"this":"regeneratorRuntime"} +var external_this_regeneratorRuntime_ = __webpack_require__(20); +var external_this_regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(external_this_regeneratorRuntime_); +// EXTERNAL MODULE: external {"this":["wp","i18n"]} +var external_this_wp_i18n_ = __webpack_require__(1); -function reusable_blocks_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } +// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/store/utils/notice-builder.js +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ -function reusable_blocks_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { reusable_blocks_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { reusable_blocks_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } /** * External dependencies */ +/** + * Builds the arguments for a success notification dispatch. + * + * @param {Object} data Incoming data to build the arguments from. + * + * @return {Array} Arguments for dispatch. An empty array signals no + * notification should be sent. + */ + +function getNotificationArgumentsForSaveSuccess(data) { + var previousPost = data.previousPost, + post = data.post, + postType = data.postType; // Autosaves are neither shown a notice nor redirected. + + if (Object(external_this_lodash_["get"])(data.options, ['isAutosave'])) { + return []; + } + + var publishStatus = ['publish', 'private', 'future']; + var isPublished = Object(external_this_lodash_["includes"])(publishStatus, previousPost.status); + var willPublish = Object(external_this_lodash_["includes"])(publishStatus, post.status); + var noticeMessage; + var shouldShowLink = Object(external_this_lodash_["get"])(postType, ['viewable'], false); + + if (!isPublished && !willPublish) { + // If saving a non-published post, don't show notice. + noticeMessage = null; + } else if (isPublished && !willPublish) { + // If undoing publish status, show specific notice + noticeMessage = postType.labels.item_reverted_to_draft; + shouldShowLink = false; + } else if (!isPublished && willPublish) { + // If publishing or scheduling a post, show the corresponding + // publish message + noticeMessage = { + publish: postType.labels.item_published, + private: postType.labels.item_published_privately, + future: postType.labels.item_scheduled + }[post.status]; + } else { + // Generic fallback notice + noticeMessage = postType.labels.item_updated; + } + + if (noticeMessage) { + var actions = []; + + if (shouldShowLink) { + actions.push({ + label: postType.labels.view_item, + url: post.link + }); + } + + return [noticeMessage, { + id: SAVE_POST_NOTICE_ID, + type: 'snackbar', + actions: actions + }]; + } + + return []; +} +/** + * Builds the fail notification arguments for dispatch. + * + * @param {Object} data Incoming data to build the arguments with. + * + * @return {Array} Arguments for dispatch. An empty array signals no + * notification should be sent. + */ + +function getNotificationArgumentsForSaveFail(data) { + var post = data.post, + edits = data.edits, + error = data.error; + + if (error && 'rest_autosave_no_changes' === error.code) { + // Autosave requested a new autosave, but there were no changes. This shouldn't + // result in an error notice for the user. + return []; + } + + var publishStatus = ['publish', 'private', 'future']; + var isPublished = publishStatus.indexOf(post.status) !== -1; // If the post was being published, we show the corresponding publish error message + // Unless we publish an "updating failed" message + + var messages = { + publish: Object(external_this_wp_i18n_["__"])('Publishing failed.'), + private: Object(external_this_wp_i18n_["__"])('Publishing failed.'), + future: Object(external_this_wp_i18n_["__"])('Scheduling failed.') + }; + var noticeMessage = !isPublished && publishStatus.indexOf(edits.status) !== -1 ? messages[edits.status] : Object(external_this_wp_i18n_["__"])('Updating failed.'); // Check if message string contains HTML. Notice text is currently only + // supported as plaintext, and stripping the tags may muddle the meaning. + + if (error.message && !/<\/?[^>]*>/.test(error.message)) { + noticeMessage = [noticeMessage, error.message].join(' '); + } + + return [noticeMessage, { + id: SAVE_POST_NOTICE_ID + }]; +} +/** + * Builds the trash fail notification arguments for dispatch. + * + * @param {Object} data + * + * @return {Array} Arguments for dispatch. + */ + +function getNotificationArgumentsForTrashFail(data) { + return [data.error.message && data.error.code !== 'unknown_error' ? data.error.message : Object(external_this_wp_i18n_["__"])('Trashing failed'), { + id: TRASH_POST_NOTICE_ID + }]; +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/store/actions.js + + + + + +function actions_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function actions_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { actions_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { actions_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +var _marked = /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(setupEditor), + _marked2 = /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(resetAutosave), + _marked3 = /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(actions_editPost), + _marked4 = /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(actions_savePost), + _marked5 = /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(refreshPost), + _marked6 = /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(trashPost), + _marked7 = /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(actions_autosave), + _marked8 = /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(actions_redo), + _marked9 = /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(actions_undo), + _marked10 = /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(actions_resetEditorBlocks); + +/** + * External dependencies + */ + /** * WordPress dependencies */ - // TODO: Ideally this would be the only dispatch in scope. This requires either -// refactoring editor actions to yielded controls, or replacing direct dispatch -// on the editor store with action creators (e.g. `REMOVE_REUSABLE_BLOCK`). - /** * Internal dependencies @@ -5838,447 +4157,1097 @@ function reusable_blocks_objectSpread(target) { for (var i = 1; i < arguments.le -/** - * Module Constants - */ -var REUSABLE_BLOCK_NOTICE_ID = 'REUSABLE_BLOCK_NOTICE_ID'; /** - * Fetch Reusable blocks Effect Handler. + * Returns an action generator used in signalling that editor has initialized with + * the specified post object and editor settings. * - * @param {Object} action action object. - * @param {Object} store Redux Store. + * @param {Object} post Post object. + * @param {Object} edits Initial edited attributes object. + * @param {Array?} template Block Template. */ -var fetchReusableBlocks = /*#__PURE__*/function () { - var _ref = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(function _callee(action, store) { - var id, dispatch, postType, posts, results; - return external_this_regeneratorRuntime_default.a.wrap(function _callee$(_context) { - while (1) { - switch (_context.prev = _context.next) { - case 0: - id = action.id; - dispatch = store.dispatch; // TODO: these are potentially undefined, this fix is in place - // until there is a filter to not use reusable blocks if undefined +function setupEditor(post, edits, template) { + var content, blocks, isNewPost; + return external_this_regeneratorRuntime_default.a.wrap(function setupEditor$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + // In order to ensure maximum of a single parse during setup, edits are + // included as part of editor setup action. Assume edited content as + // canonical if provided, falling back to post. + if (Object(external_this_lodash_["has"])(edits, ['content'])) { + content = edits.content; + } else { + content = post.content.raw; + } - _context.next = 4; - return external_this_wp_apiFetch_default()({ - path: '/wp/v2/types/wp_block' + blocks = Object(external_this_wp_blocks_["parse"])(content); // Apply a template for new posts only, if exists. + + isNewPost = post.status === 'auto-draft'; + + if (isNewPost && template) { + blocks = Object(external_this_wp_blocks_["synchronizeBlocksWithTemplate"])(blocks, template); + } + + _context.next = 6; + return resetPost(post); + + case 6: + _context.next = 8; + return { + type: 'SETUP_EDITOR', + post: post, + edits: edits, + template: template + }; + + case 8: + _context.next = 10; + return actions_resetEditorBlocks(blocks, { + __unstableShouldCreateUndoLevel: false + }); + + case 10: + _context.next = 12; + return setupEditorState(post); + + case 12: + if (!(edits && Object.keys(edits).some(function (key) { + return edits[key] !== (Object(external_this_lodash_["has"])(post, [key, 'raw']) ? post[key].raw : post[key]); + }))) { + _context.next = 15; + break; + } + + _context.next = 15; + return actions_editPost(edits); + + case 15: + case "end": + return _context.stop(); + } + } + }, _marked); +} +/** + * Returns an action object signalling that the editor is being destroyed and + * that any necessary state or side-effect cleanup should occur. + * + * @return {Object} Action object. + */ + +function __experimentalTearDownEditor() { + return { + type: 'TEAR_DOWN_EDITOR' + }; +} +/** + * Returns an action object used in signalling that the latest version of the + * post has been received, either by initialization or save. + * + * @param {Object} post Post object. + * + * @return {Object} Action object. + */ + +function resetPost(post) { + return { + type: 'RESET_POST', + post: post + }; +} +/** + * Returns an action object used in signalling that the latest autosave of the + * post has been received, by initialization or autosave. + * + * @deprecated since 5.6. Callers should use the `receiveAutosaves( postId, autosave )` + * selector from the '@wordpress/core-data' package. + * + * @param {Object} newAutosave Autosave post object. + * + * @return {Object} Action object. + */ + +function resetAutosave(newAutosave) { + var postId; + return external_this_regeneratorRuntime_default.a.wrap(function resetAutosave$(_context2) { + while (1) { + switch (_context2.prev = _context2.next) { + case 0: + external_this_wp_deprecated_default()('resetAutosave action (`core/editor` store)', { + alternative: 'receiveAutosaves action (`core` store)', + plugin: 'Gutenberg' + }); + _context2.next = 3; + return Object(external_this_wp_dataControls_["select"])(STORE_KEY, 'getCurrentPostId'); + + case 3: + postId = _context2.sent; + _context2.next = 6; + return Object(external_this_wp_dataControls_["dispatch"])('core', 'receiveAutosaves', postId, newAutosave); + + case 6: + return _context2.abrupt("return", { + type: '__INERT__' + }); + + case 7: + case "end": + return _context2.stop(); + } + } + }, _marked2); +} +/** + * Action for dispatching that a post update request has started. + * + * @param {Object} options + * + * @return {Object} An action object + */ + +function __experimentalRequestPostUpdateStart() { + var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + return { + type: 'REQUEST_POST_UPDATE_START', + options: options + }; +} +/** + * Action for dispatching that a post update request has finished. + * + * @param {Object} options + * + * @return {Object} An action object + */ + +function __experimentalRequestPostUpdateFinish() { + var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + return { + type: 'REQUEST_POST_UPDATE_FINISH', + options: options + }; +} +/** + * Returns an action object used in signalling that a patch of updates for the + * latest version of the post have been received. + * + * @param {Object} edits Updated post fields. + * + * @return {Object} Action object. + */ + +function updatePost(edits) { + return { + type: 'UPDATE_POST', + edits: edits + }; +} +/** + * Returns an action object used to setup the editor state when first opening + * an editor. + * + * @param {Object} post Post object. + * + * @return {Object} Action object. + */ + +function setupEditorState(post) { + return { + type: 'SETUP_EDITOR_STATE', + post: post + }; +} +/** + * Returns an action object used in signalling that attributes of the post have + * been edited. + * + * @param {Object} edits Post attributes to edit. + * @param {Object} options Options for the edit. + * + * @yield {Object} Action object or control. + */ + +function actions_editPost(edits, options) { + var _yield$select, id, type; + + return external_this_regeneratorRuntime_default.a.wrap(function editPost$(_context3) { + while (1) { + switch (_context3.prev = _context3.next) { + case 0: + _context3.next = 2; + return Object(external_this_wp_dataControls_["select"])(STORE_KEY, 'getCurrentPost'); + + case 2: + _yield$select = _context3.sent; + id = _yield$select.id; + type = _yield$select.type; + _context3.next = 7; + return Object(external_this_wp_dataControls_["dispatch"])('core', 'editEntityRecord', 'postType', type, id, edits, options); + + case 7: + case "end": + return _context3.stop(); + } + } + }, _marked3); +} +/** + * Returns action object produced by the updatePost creator augmented by + * an optimist option that signals optimistically applying updates. + * + * @param {Object} edits Updated post fields. + * + * @return {Object} Action object. + */ + +function __experimentalOptimisticUpdatePost(edits) { + return actions_objectSpread(actions_objectSpread({}, updatePost(edits)), {}, { + optimist: { + id: POST_UPDATE_TRANSACTION_ID + } + }); +} +/** + * Action generator for saving the current post in the editor. + * + * @param {Object} options + */ + +function actions_savePost() { + var options, + edits, + previousRecord, + error, + args, + updatedRecord, + _args4, + _args5 = arguments; + + return external_this_regeneratorRuntime_default.a.wrap(function savePost$(_context4) { + while (1) { + switch (_context4.prev = _context4.next) { + case 0: + options = _args5.length > 0 && _args5[0] !== undefined ? _args5[0] : {}; + _context4.next = 3; + return Object(external_this_wp_dataControls_["select"])(STORE_KEY, 'isEditedPostSaveable'); + + case 3: + if (_context4.sent) { + _context4.next = 5; + break; + } + + return _context4.abrupt("return"); + + case 5: + _context4.next = 7; + return Object(external_this_wp_dataControls_["select"])(STORE_KEY, 'getEditedPostContent'); + + case 7: + _context4.t0 = _context4.sent; + edits = { + content: _context4.t0 + }; + + if (options.isAutosave) { + _context4.next = 12; + break; + } + + _context4.next = 12; + return Object(external_this_wp_dataControls_["dispatch"])(STORE_KEY, 'editPost', edits, { + undoIgnore: true + }); + + case 12: + _context4.next = 14; + return __experimentalRequestPostUpdateStart(options); + + case 14: + _context4.next = 16; + return Object(external_this_wp_dataControls_["select"])(STORE_KEY, 'getCurrentPost'); + + case 16: + previousRecord = _context4.sent; + _context4.t1 = actions_objectSpread; + _context4.t2 = actions_objectSpread; + _context4.t3 = { + id: previousRecord.id + }; + _context4.next = 22; + return Object(external_this_wp_dataControls_["select"])('core', 'getEntityRecordNonTransientEdits', 'postType', previousRecord.type, previousRecord.id); + + case 22: + _context4.t4 = _context4.sent; + _context4.t5 = (0, _context4.t2)(_context4.t3, _context4.t4); + _context4.t6 = edits; + edits = (0, _context4.t1)(_context4.t5, _context4.t6); + _context4.next = 28; + return Object(external_this_wp_dataControls_["dispatch"])('core', 'saveEntityRecord', 'postType', previousRecord.type, edits, options); + + case 28: + _context4.next = 30; + return __experimentalRequestPostUpdateFinish(options); + + case 30: + _context4.next = 32; + return Object(external_this_wp_dataControls_["select"])('core', 'getLastEntitySaveError', 'postType', previousRecord.type, previousRecord.id); + + case 32: + error = _context4.sent; + + if (!error) { + _context4.next = 40; + break; + } + + args = getNotificationArgumentsForSaveFail({ + post: previousRecord, + edits: edits, + error: error + }); + + if (!args.length) { + _context4.next = 38; + break; + } + + _context4.next = 38; + return external_this_wp_dataControls_["dispatch"].apply(void 0, ['core/notices', 'createErrorNotice'].concat(Object(toConsumableArray["a" /* default */])(args))); + + case 38: + _context4.next = 58; + break; + + case 40: + _context4.next = 42; + return Object(external_this_wp_dataControls_["select"])(STORE_KEY, 'getCurrentPost'); + + case 42: + updatedRecord = _context4.sent; + _context4.t7 = getNotificationArgumentsForSaveSuccess; + _context4.t8 = previousRecord; + _context4.t9 = updatedRecord; + _context4.next = 48; + return Object(external_this_wp_dataControls_["select"])('core', 'getPostType', updatedRecord.type); + + case 48: + _context4.t10 = _context4.sent; + _context4.t11 = options; + _context4.t12 = { + previousPost: _context4.t8, + post: _context4.t9, + postType: _context4.t10, + options: _context4.t11 + }; + _args4 = (0, _context4.t7)(_context4.t12); + + if (!_args4.length) { + _context4.next = 55; + break; + } + + _context4.next = 55; + return external_this_wp_dataControls_["dispatch"].apply(void 0, ['core/notices', 'createSuccessNotice'].concat(Object(toConsumableArray["a" /* default */])(_args4))); + + case 55: + if (options.isAutosave) { + _context4.next = 58; + break; + } + + _context4.next = 58; + return Object(external_this_wp_dataControls_["dispatch"])('core/block-editor', '__unstableMarkLastChangeAsPersistent'); + + case 58: + case "end": + return _context4.stop(); + } + } + }, _marked4); +} +/** + * Action generator for handling refreshing the current post. + */ + +function refreshPost() { + var post, postTypeSlug, postType, newPost; + return external_this_regeneratorRuntime_default.a.wrap(function refreshPost$(_context5) { + while (1) { + switch (_context5.prev = _context5.next) { + case 0: + _context5.next = 2; + return Object(external_this_wp_dataControls_["select"])(STORE_KEY, 'getCurrentPost'); + + case 2: + post = _context5.sent; + _context5.next = 5; + return Object(external_this_wp_dataControls_["select"])(STORE_KEY, 'getCurrentPostType'); + + case 5: + postTypeSlug = _context5.sent; + _context5.next = 8; + return Object(external_this_wp_dataControls_["select"])('core', 'getPostType', postTypeSlug); + + case 8: + postType = _context5.sent; + _context5.next = 11; + return Object(external_this_wp_dataControls_["apiFetch"])({ + // Timestamp arg allows caller to bypass browser caching, which is + // expected for this specific function. + path: "/wp/v2/".concat(postType.rest_base, "/").concat(post.id) + "?context=edit&_timestamp=".concat(Date.now()) + }); + + case 11: + newPost = _context5.sent; + _context5.next = 14; + return Object(external_this_wp_dataControls_["dispatch"])(STORE_KEY, 'resetPost', newPost); + + case 14: + case "end": + return _context5.stop(); + } + } + }, _marked5); +} +/** + * Action generator for trashing the current post in the editor. + */ + +function trashPost() { + var postTypeSlug, postType, post; + return external_this_regeneratorRuntime_default.a.wrap(function trashPost$(_context6) { + while (1) { + switch (_context6.prev = _context6.next) { + case 0: + _context6.next = 2; + return Object(external_this_wp_dataControls_["select"])(STORE_KEY, 'getCurrentPostType'); + + case 2: + postTypeSlug = _context6.sent; + _context6.next = 5; + return Object(external_this_wp_dataControls_["select"])('core', 'getPostType', postTypeSlug); + + case 5: + postType = _context6.sent; + _context6.next = 8; + return Object(external_this_wp_dataControls_["dispatch"])('core/notices', 'removeNotice', TRASH_POST_NOTICE_ID); + + case 8: + _context6.prev = 8; + _context6.next = 11; + return Object(external_this_wp_dataControls_["select"])(STORE_KEY, 'getCurrentPost'); + + case 11: + post = _context6.sent; + _context6.next = 14; + return Object(external_this_wp_dataControls_["apiFetch"])({ + path: "/wp/v2/".concat(postType.rest_base, "/").concat(post.id), + method: 'DELETE' + }); + + case 14: + _context6.next = 16; + return Object(external_this_wp_dataControls_["dispatch"])(STORE_KEY, 'savePost'); + + case 16: + _context6.next = 22; + break; + + case 18: + _context6.prev = 18; + _context6.t0 = _context6["catch"](8); + _context6.next = 22; + return external_this_wp_dataControls_["dispatch"].apply(void 0, ['core/notices', 'createErrorNotice'].concat(Object(toConsumableArray["a" /* default */])(getNotificationArgumentsForTrashFail({ + error: _context6.t0 + })))); + + case 22: + case "end": + return _context6.stop(); + } + } + }, _marked6, null, [[8, 18]]); +} +/** + * Action generator used in signalling that the post should autosave. This + * includes server-side autosaving (default) and client-side (a.k.a. local) + * autosaving (e.g. on the Web, the post might be committed to Session + * Storage). + * + * @param {Object?} options Extra flags to identify the autosave. + */ + +function actions_autosave() { + var _ref, + _ref$local, + local, + options, + post, + isPostNew, + title, + content, + excerpt, + _args8 = arguments; + + return external_this_regeneratorRuntime_default.a.wrap(function autosave$(_context7) { + while (1) { + switch (_context7.prev = _context7.next) { + case 0: + _ref = _args8.length > 0 && _args8[0] !== undefined ? _args8[0] : {}, _ref$local = _ref.local, local = _ref$local === void 0 ? false : _ref$local, options = Object(objectWithoutProperties["a" /* default */])(_ref, ["local"]); + + if (!local) { + _context7.next = 21; + break; + } + + _context7.next = 4; + return Object(external_this_wp_dataControls_["select"])(STORE_KEY, 'getCurrentPost'); + + case 4: + post = _context7.sent; + _context7.next = 7; + return Object(external_this_wp_dataControls_["select"])(STORE_KEY, 'isEditedPostNew'); + + case 7: + isPostNew = _context7.sent; + _context7.next = 10; + return Object(external_this_wp_dataControls_["select"])(STORE_KEY, 'getEditedPostAttribute', 'title'); + + case 10: + title = _context7.sent; + _context7.next = 13; + return Object(external_this_wp_dataControls_["select"])(STORE_KEY, 'getEditedPostAttribute', 'content'); + + case 13: + content = _context7.sent; + _context7.next = 16; + return Object(external_this_wp_dataControls_["select"])(STORE_KEY, 'getEditedPostAttribute', 'excerpt'); + + case 16: + excerpt = _context7.sent; + _context7.next = 19; + return { + type: 'LOCAL_AUTOSAVE_SET', + postId: post.id, + isPostNew: isPostNew, + title: title, + content: content, + excerpt: excerpt + }; + + case 19: + _context7.next = 23; + break; + + case 21: + _context7.next = 23; + return Object(external_this_wp_dataControls_["dispatch"])(STORE_KEY, 'savePost', actions_objectSpread({ + isAutosave: true + }, options)); + + case 23: + case "end": + return _context7.stop(); + } + } + }, _marked7); +} +/** + * Returns an action object used in signalling that undo history should + * restore last popped state. + * + * @yield {Object} Action object. + */ + +function actions_redo() { + return external_this_regeneratorRuntime_default.a.wrap(function redo$(_context8) { + while (1) { + switch (_context8.prev = _context8.next) { + case 0: + _context8.next = 2; + return Object(external_this_wp_dataControls_["dispatch"])('core', 'redo'); + + case 2: + case "end": + return _context8.stop(); + } + } + }, _marked8); +} +/** + * Returns an action object used in signalling that undo history should pop. + * + * @yield {Object} Action object. + */ + +function actions_undo() { + return external_this_regeneratorRuntime_default.a.wrap(function undo$(_context9) { + while (1) { + switch (_context9.prev = _context9.next) { + case 0: + _context9.next = 2; + return Object(external_this_wp_dataControls_["dispatch"])('core', 'undo'); + + case 2: + case "end": + return _context9.stop(); + } + } + }, _marked9); +} +/** + * Returns an action object used in signalling that undo history record should + * be created. + * + * @return {Object} Action object. + */ + +function createUndoLevel() { + return { + type: 'CREATE_UNDO_LEVEL' + }; +} +/** + * Returns an action object used to lock the editor. + * + * @param {Object} lock Details about the post lock status, user, and nonce. + * + * @return {Object} Action object. + */ + +function updatePostLock(lock) { + return { + type: 'UPDATE_POST_LOCK', + lock: lock + }; +} +/** + * Returns an action object used in signalling that the user has enabled the + * publish sidebar. + * + * @return {Object} Action object + */ + +function enablePublishSidebar() { + return { + type: 'ENABLE_PUBLISH_SIDEBAR' + }; +} +/** + * Returns an action object used in signalling that the user has disabled the + * publish sidebar. + * + * @return {Object} Action object + */ + +function disablePublishSidebar() { + return { + type: 'DISABLE_PUBLISH_SIDEBAR' + }; +} +/** + * Returns an action object used to signal that post saving is locked. + * + * @param {string} lockName The lock name. + * + * @example + * ``` + * const { subscribe } = wp.data; + * + * const initialPostStatus = wp.data.select( 'core/editor' ).getEditedPostAttribute( 'status' ); + * + * // Only allow publishing posts that are set to a future date. + * if ( 'publish' !== initialPostStatus ) { + * + * // Track locking. + * let locked = false; + * + * // Watch for the publish event. + * let unssubscribe = subscribe( () => { + * const currentPostStatus = wp.data.select( 'core/editor' ).getEditedPostAttribute( 'status' ); + * if ( 'publish' !== currentPostStatus ) { + * + * // Compare the post date to the current date, lock the post if the date isn't in the future. + * const postDate = new Date( wp.data.select( 'core/editor' ).getEditedPostAttribute( 'date' ) ); + * const currentDate = new Date(); + * if ( postDate.getTime() <= currentDate.getTime() ) { + * if ( ! locked ) { + * locked = true; + * wp.data.dispatch( 'core/editor' ).lockPostSaving( 'futurelock' ); + * } + * } else { + * if ( locked ) { + * locked = false; + * wp.data.dispatch( 'core/editor' ).unlockPostSaving( 'futurelock' ); + * } + * } + * } + * } ); + * } + * ``` + * + * @return {Object} Action object + */ + +function lockPostSaving(lockName) { + return { + type: 'LOCK_POST_SAVING', + lockName: lockName + }; +} +/** + * Returns an action object used to signal that post saving is unlocked. + * + * @param {string} lockName The lock name. + * + * @example + * ``` + * // Unlock post saving with the lock key `mylock`: + * wp.data.dispatch( 'core/editor' ).unlockPostSaving( 'mylock' ); + * ``` + * + * @return {Object} Action object + */ + +function unlockPostSaving(lockName) { + return { + type: 'UNLOCK_POST_SAVING', + lockName: lockName + }; +} +/** + * Returns an action object used to signal that post autosaving is locked. + * + * @param {string} lockName The lock name. + * + * @example + * ``` + * // Lock post autosaving with the lock key `mylock`: + * wp.data.dispatch( 'core/editor' ).lockPostAutosaving( 'mylock' ); + * ``` + * + * @return {Object} Action object + */ + +function lockPostAutosaving(lockName) { + return { + type: 'LOCK_POST_AUTOSAVING', + lockName: lockName + }; +} +/** + * Returns an action object used to signal that post autosaving is unlocked. + * + * @param {string} lockName The lock name. + * + * @example + * ``` + * // Unlock post saving with the lock key `mylock`: + * wp.data.dispatch( 'core/editor' ).unlockPostAutosaving( 'mylock' ); + * ``` + * + * @return {Object} Action object + */ + +function unlockPostAutosaving(lockName) { + return { + type: 'UNLOCK_POST_AUTOSAVING', + lockName: lockName + }; +} +/** + * Returns an action object used to signal that the blocks have been updated. + * + * @param {Array} blocks Block Array. + * @param {?Object} options Optional options. + * + * @yield {Object} Action object + */ + +function actions_resetEditorBlocks(blocks) { + var options, + __unstableShouldCreateUndoLevel, + selectionStart, + selectionEnd, + edits, + _yield$select2, + id, + type, + noChange, + _args11 = arguments; + + return external_this_regeneratorRuntime_default.a.wrap(function resetEditorBlocks$(_context10) { + while (1) { + switch (_context10.prev = _context10.next) { + case 0: + options = _args11.length > 1 && _args11[1] !== undefined ? _args11[1] : {}; + __unstableShouldCreateUndoLevel = options.__unstableShouldCreateUndoLevel, selectionStart = options.selectionStart, selectionEnd = options.selectionEnd; + edits = { + blocks: blocks, + selectionStart: selectionStart, + selectionEnd: selectionEnd + }; + + if (!(__unstableShouldCreateUndoLevel !== false)) { + _context10.next = 19; + break; + } + + _context10.next = 6; + return Object(external_this_wp_dataControls_["select"])(STORE_KEY, 'getCurrentPost'); + + case 6: + _yield$select2 = _context10.sent; + id = _yield$select2.id; + type = _yield$select2.type; + _context10.next = 11; + return Object(external_this_wp_dataControls_["syncSelect"])('core', 'getEditedEntityRecord', 'postType', type, id); + + case 11: + _context10.t0 = _context10.sent.blocks; + _context10.t1 = edits.blocks; + noChange = _context10.t0 === _context10.t1; + + if (!noChange) { + _context10.next = 18; + break; + } + + _context10.next = 17; + return Object(external_this_wp_dataControls_["dispatch"])('core', '__unstableCreateUndoLevel', 'postType', type, id); + + case 17: + return _context10.abrupt("return", _context10.sent); + + case 18: + // We create a new function here on every persistent edit + // to make sure the edit makes the post dirty and creates + // a new undo level. + edits.content = function (_ref2) { + var _ref2$blocks = _ref2.blocks, + blocksForSerialization = _ref2$blocks === void 0 ? [] : _ref2$blocks; + return serialize_blocks(blocksForSerialization); + }; + + case 19: + return _context10.delegateYield(actions_editPost(edits), "t2", 20); + + case 20: + case "end": + return _context10.stop(); + } + } + }, _marked10); +} +/* + * Returns an action object used in signalling that the post editor settings have been updated. + * + * @param {Object} settings Updated settings + * + * @return {Object} Action object + */ + +function updateEditorSettings(settings) { + return { + type: 'UPDATE_EDITOR_SETTINGS', + settings: settings + }; +} +/** + * Backward compatibility + */ + +var actions_getBlockEditorAction = function getBlockEditorAction(name) { + return /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(function _callee() { + var _len, + args, + _key, + _args12 = arguments; + + return external_this_regeneratorRuntime_default.a.wrap(function _callee$(_context11) { + while (1) { + switch (_context11.prev = _context11.next) { + case 0: + external_this_wp_deprecated_default()("`wp.data.dispatch( 'core/editor' )." + name + '`', { + alternative: "`wp.data.dispatch( 'core/block-editor' )." + name + '`' }); + for (_len = _args12.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = _args12[_key]; + } + + _context11.next = 4; + return external_this_wp_dataControls_["dispatch"].apply(void 0, ['core/block-editor', name].concat(args)); + case 4: - postType = _context.sent; - - if (postType) { - _context.next = 7; - break; - } - - return _context.abrupt("return"); - - case 7: - _context.prev = 7; - - if (!id) { - _context.next = 15; - break; - } - - _context.next = 11; - return external_this_wp_apiFetch_default()({ - path: "/wp/v2/".concat(postType.rest_base, "/").concat(id) - }); - - case 11: - _context.t0 = _context.sent; - posts = [_context.t0]; - _context.next = 18; - break; - - case 15: - _context.next = 17; - return external_this_wp_apiFetch_default()({ - path: "/wp/v2/".concat(postType.rest_base, "?per_page=-1") - }); - - case 17: - posts = _context.sent; - - case 18: - results = Object(external_this_lodash_["compact"])(Object(external_this_lodash_["map"])(posts, function (post) { - if (post.status !== 'publish' || post.content.protected) { - return null; - } - - return reusable_blocks_objectSpread(reusable_blocks_objectSpread({}, post), {}, { - content: post.content.raw, - title: post.title.raw - }); - })); - - if (results.length) { - dispatch(__experimentalReceiveReusableBlocks(results)); - } - - dispatch({ - type: 'FETCH_REUSABLE_BLOCKS_SUCCESS', - id: id - }); - _context.next = 26; - break; - - case 23: - _context.prev = 23; - _context.t1 = _context["catch"](7); - dispatch({ - type: 'FETCH_REUSABLE_BLOCKS_FAILURE', - id: id, - error: _context.t1 - }); - - case 26: case "end": - return _context.stop(); + return _context11.stop(); } } - }, _callee, null, [[7, 23]]); - })); - - return function fetchReusableBlocks(_x, _x2) { - return _ref.apply(this, arguments); - }; -}(); -/** - * Save Reusable blocks Effect Handler. - * - * @param {Object} action action object. - * @param {Object} store Redux Store. - */ - -var saveReusableBlocks = /*#__PURE__*/function () { - var _ref2 = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(function _callee2(action, store) { - var postType, id, dispatch, state, _getReusableBlock, title, content, isTemporary, data, path, method, updatedReusableBlock, message; - - return external_this_regeneratorRuntime_default.a.wrap(function _callee2$(_context2) { - while (1) { - switch (_context2.prev = _context2.next) { - case 0: - _context2.next = 2; - return external_this_wp_apiFetch_default()({ - path: '/wp/v2/types/wp_block' - }); - - case 2: - postType = _context2.sent; - - if (postType) { - _context2.next = 5; - break; - } - - return _context2.abrupt("return"); - - case 5: - id = action.id; - dispatch = store.dispatch; - state = store.getState(); - _getReusableBlock = __experimentalGetReusableBlock(state, id), title = _getReusableBlock.title, content = _getReusableBlock.content, isTemporary = _getReusableBlock.isTemporary; - data = isTemporary ? { - title: title, - content: content, - status: 'publish' - } : { - id: id, - title: title, - content: content, - status: 'publish' - }; - path = isTemporary ? "/wp/v2/".concat(postType.rest_base) : "/wp/v2/".concat(postType.rest_base, "/").concat(id); - method = isTemporary ? 'POST' : 'PUT'; - _context2.prev = 12; - _context2.next = 15; - return external_this_wp_apiFetch_default()({ - path: path, - data: data, - method: method - }); - - case 15: - updatedReusableBlock = _context2.sent; - dispatch({ - type: 'SAVE_REUSABLE_BLOCK_SUCCESS', - updatedId: updatedReusableBlock.id, - id: id - }); - message = isTemporary ? Object(external_this_wp_i18n_["__"])('Block created.') : Object(external_this_wp_i18n_["__"])('Block updated.'); - Object(external_this_wp_data_["dispatch"])('core/notices').createSuccessNotice(message, { - id: REUSABLE_BLOCK_NOTICE_ID, - type: 'snackbar' - }); - - Object(external_this_wp_data_["dispatch"])('core/block-editor').__unstableSaveReusableBlock(id, updatedReusableBlock.id); - - _context2.next = 26; - break; - - case 22: - _context2.prev = 22; - _context2.t0 = _context2["catch"](12); - dispatch({ - type: 'SAVE_REUSABLE_BLOCK_FAILURE', - id: id - }); - Object(external_this_wp_data_["dispatch"])('core/notices').createErrorNotice(_context2.t0.message, { - id: REUSABLE_BLOCK_NOTICE_ID - }); - - case 26: - case "end": - return _context2.stop(); - } - } - }, _callee2, null, [[12, 22]]); - })); - - return function saveReusableBlocks(_x3, _x4) { - return _ref2.apply(this, arguments); - }; -}(); -/** - * Delete Reusable blocks Effect Handler. - * - * @param {Object} action action object. - * @param {Object} store Redux Store. - */ - -var deleteReusableBlocks = /*#__PURE__*/function () { - var _ref3 = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(function _callee3(action, store) { - var postType, id, getState, dispatch, reusableBlock, allBlocks, associatedBlocks, associatedBlockClientIds, transactionId, message; - return external_this_regeneratorRuntime_default.a.wrap(function _callee3$(_context3) { - while (1) { - switch (_context3.prev = _context3.next) { - case 0: - _context3.next = 2; - return external_this_wp_apiFetch_default()({ - path: '/wp/v2/types/wp_block' - }); - - case 2: - postType = _context3.sent; - - if (postType) { - _context3.next = 5; - break; - } - - return _context3.abrupt("return"); - - case 5: - id = action.id; - getState = store.getState, dispatch = store.dispatch; // Don't allow a reusable block with a temporary ID to be deleted - - reusableBlock = __experimentalGetReusableBlock(getState(), id); - - if (!(!reusableBlock || reusableBlock.isTemporary)) { - _context3.next = 10; - break; - } - - return _context3.abrupt("return"); - - case 10: - // Remove any other blocks that reference this reusable block - allBlocks = Object(external_this_wp_data_["select"])('core/block-editor').getBlocks(); - associatedBlocks = allBlocks.filter(function (block) { - return Object(external_this_wp_blocks_["isReusableBlock"])(block) && block.attributes.ref === id; - }); - associatedBlockClientIds = associatedBlocks.map(function (block) { - return block.clientId; - }); - transactionId = Object(external_this_lodash_["uniqueId"])(); - dispatch({ - type: 'REMOVE_REUSABLE_BLOCK', - id: id, - optimist: { - type: redux_optimist["BEGIN"], - id: transactionId - } - }); // Remove the parsed block. - - if (associatedBlockClientIds.length) { - Object(external_this_wp_data_["dispatch"])('core/block-editor').removeBlocks(associatedBlockClientIds); - } - - _context3.prev = 16; - _context3.next = 19; - return external_this_wp_apiFetch_default()({ - path: "/wp/v2/".concat(postType.rest_base, "/").concat(id), - method: 'DELETE' - }); - - case 19: - dispatch({ - type: 'DELETE_REUSABLE_BLOCK_SUCCESS', - id: id, - optimist: { - type: redux_optimist["COMMIT"], - id: transactionId - } - }); - message = Object(external_this_wp_i18n_["__"])('Block deleted.'); - Object(external_this_wp_data_["dispatch"])('core/notices').createSuccessNotice(message, { - id: REUSABLE_BLOCK_NOTICE_ID, - type: 'snackbar' - }); - _context3.next = 28; - break; - - case 24: - _context3.prev = 24; - _context3.t0 = _context3["catch"](16); - dispatch({ - type: 'DELETE_REUSABLE_BLOCK_FAILURE', - id: id, - optimist: { - type: redux_optimist["REVERT"], - id: transactionId - } - }); - Object(external_this_wp_data_["dispatch"])('core/notices').createErrorNotice(_context3.t0.message, { - id: REUSABLE_BLOCK_NOTICE_ID - }); - - case 28: - case "end": - return _context3.stop(); - } - } - }, _callee3, null, [[16, 24]]); - })); - - return function deleteReusableBlocks(_x5, _x6) { - return _ref3.apply(this, arguments); - }; -}(); -/** - * Convert a reusable block to a static block effect handler - * - * @param {Object} action action object. - * @param {Object} store Redux Store. - */ - -var reusable_blocks_convertBlockToStatic = function convertBlockToStatic(action, store) { - var state = store.getState(); - var oldBlock = Object(external_this_wp_data_["select"])('core/block-editor').getBlock(action.clientId); - var reusableBlock = __experimentalGetReusableBlock(state, oldBlock.attributes.ref); - var newBlocks = Object(external_this_wp_blocks_["parse"])(reusableBlock.content); - Object(external_this_wp_data_["dispatch"])('core/block-editor').replaceBlocks(oldBlock.clientId, newBlocks); + }, _callee); + }); }; /** - * Convert a static block to a reusable block effect handler - * - * @param {Object} action action object. - * @param {Object} store Redux Store. + * @see resetBlocks in core/block-editor store. */ -var reusable_blocks_convertBlockToReusable = function convertBlockToReusable(action, store) { - var dispatch = store.dispatch; - var reusableBlock = { - id: Object(external_this_lodash_["uniqueId"])('reusable'), - title: Object(external_this_wp_i18n_["__"])('Untitled Reusable Block'), - content: Object(external_this_wp_blocks_["serialize"])(Object(external_this_wp_data_["select"])('core/block-editor').getBlocksByClientId(action.clientIds)) - }; - dispatch(__experimentalReceiveReusableBlocks([reusableBlock])); - dispatch(__experimentalSaveReusableBlock(reusableBlock.id)); - Object(external_this_wp_data_["dispatch"])('core/block-editor').replaceBlocks(action.clientIds, Object(external_this_wp_blocks_["createBlock"])('core/block', { - ref: reusableBlock.id - })); -}; -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/store/effects.js +var resetBlocks = actions_getBlockEditorAction('resetBlocks'); /** - * Internal dependencies + * @see receiveBlocks in core/block-editor store. */ -/* harmony default export */ var effects = ({ - FETCH_REUSABLE_BLOCKS: function FETCH_REUSABLE_BLOCKS(action, store) { - fetchReusableBlocks(action, store); - }, - SAVE_REUSABLE_BLOCK: function SAVE_REUSABLE_BLOCK(action, store) { - saveReusableBlocks(action, store); - }, - DELETE_REUSABLE_BLOCK: function DELETE_REUSABLE_BLOCK(action, store) { - deleteReusableBlocks(action, store); - }, - CONVERT_BLOCK_TO_STATIC: reusable_blocks_convertBlockToStatic, - CONVERT_BLOCK_TO_REUSABLE: reusable_blocks_convertBlockToReusable -}); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/store/middlewares.js +var receiveBlocks = actions_getBlockEditorAction('receiveBlocks'); /** - * External dependencies + * @see updateBlock in core/block-editor store. */ +var updateBlock = actions_getBlockEditorAction('updateBlock'); /** - * Internal dependencies + * @see updateBlockAttributes in core/block-editor store. */ - +var updateBlockAttributes = actions_getBlockEditorAction('updateBlockAttributes'); /** - * Applies the custom middlewares used specifically in the editor module. - * - * @param {Object} store Store Object. - * - * @return {Object} Update Store Object. + * @see selectBlock in core/block-editor store. */ -function applyMiddlewares(store) { - var enhancedDispatch = function enhancedDispatch() { - throw new Error('Dispatching while constructing your middleware is not allowed. ' + 'Other middleware would not be applied to this dispatch.'); - }; +var actions_selectBlock = actions_getBlockEditorAction('selectBlock'); +/** + * @see startMultiSelect in core/block-editor store. + */ - var middlewareAPI = { - getState: store.getState, - dispatch: function dispatch() { - return enhancedDispatch.apply(void 0, arguments); - } - }; - enhancedDispatch = refx_default()(effects)(middlewareAPI)(store.dispatch); - store.dispatch = enhancedDispatch; - return store; -} +var startMultiSelect = actions_getBlockEditorAction('startMultiSelect'); +/** + * @see stopMultiSelect in core/block-editor store. + */ -/* harmony default export */ var middlewares = (applyMiddlewares); +var stopMultiSelect = actions_getBlockEditorAction('stopMultiSelect'); +/** + * @see multiSelect in core/block-editor store. + */ + +var multiSelect = actions_getBlockEditorAction('multiSelect'); +/** + * @see clearSelectedBlock in core/block-editor store. + */ + +var clearSelectedBlock = actions_getBlockEditorAction('clearSelectedBlock'); +/** + * @see toggleSelection in core/block-editor store. + */ + +var toggleSelection = actions_getBlockEditorAction('toggleSelection'); +/** + * @see replaceBlocks in core/block-editor store. + */ + +var actions_replaceBlocks = actions_getBlockEditorAction('replaceBlocks'); +/** + * @see replaceBlock in core/block-editor store. + */ + +var replaceBlock = actions_getBlockEditorAction('replaceBlock'); +/** + * @see moveBlocksDown in core/block-editor store. + */ + +var moveBlocksDown = actions_getBlockEditorAction('moveBlocksDown'); +/** + * @see moveBlocksUp in core/block-editor store. + */ + +var moveBlocksUp = actions_getBlockEditorAction('moveBlocksUp'); +/** + * @see moveBlockToPosition in core/block-editor store. + */ + +var moveBlockToPosition = actions_getBlockEditorAction('moveBlockToPosition'); +/** + * @see insertBlock in core/block-editor store. + */ + +var insertBlock = actions_getBlockEditorAction('insertBlock'); +/** + * @see insertBlocks in core/block-editor store. + */ + +var insertBlocks = actions_getBlockEditorAction('insertBlocks'); +/** + * @see showInsertionPoint in core/block-editor store. + */ + +var showInsertionPoint = actions_getBlockEditorAction('showInsertionPoint'); +/** + * @see hideInsertionPoint in core/block-editor store. + */ + +var hideInsertionPoint = actions_getBlockEditorAction('hideInsertionPoint'); +/** + * @see setTemplateValidity in core/block-editor store. + */ + +var setTemplateValidity = actions_getBlockEditorAction('setTemplateValidity'); +/** + * @see synchronizeTemplate in core/block-editor store. + */ + +var synchronizeTemplate = actions_getBlockEditorAction('synchronizeTemplate'); +/** + * @see mergeBlocks in core/block-editor store. + */ + +var mergeBlocks = actions_getBlockEditorAction('mergeBlocks'); +/** + * @see removeBlocks in core/block-editor store. + */ + +var removeBlocks = actions_getBlockEditorAction('removeBlocks'); +/** + * @see removeBlock in core/block-editor store. + */ + +var removeBlock = actions_getBlockEditorAction('removeBlock'); +/** + * @see toggleBlockMode in core/block-editor store. + */ + +var toggleBlockMode = actions_getBlockEditorAction('toggleBlockMode'); +/** + * @see startTyping in core/block-editor store. + */ + +var startTyping = actions_getBlockEditorAction('startTyping'); +/** + * @see stopTyping in core/block-editor store. + */ + +var stopTyping = actions_getBlockEditorAction('stopTyping'); +/** + * @see enterFormattedText in core/block-editor store. + */ + +var enterFormattedText = actions_getBlockEditorAction('enterFormattedText'); +/** + * @see exitFormattedText in core/block-editor store. + */ + +var exitFormattedText = actions_getBlockEditorAction('exitFormattedText'); +/** + * @see insertDefaultBlock in core/block-editor store. + */ + +var insertDefaultBlock = actions_getBlockEditorAction('insertDefaultBlock'); +/** + * @see updateBlockListSettings in core/block-editor store. + */ + +var updateBlockListSettings = actions_getBlockEditorAction('updateBlockListSettings'); // CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/store/controls.js -/** - * WordPress dependencies - */ - -/** - * Returns a control descriptor signalling to subscribe to the registry and - * resolve the control promise only when the next state change occurs. - * - * @return {Object} Control descriptor. - */ - -function awaitNextStateChange() { - return { - type: 'AWAIT_NEXT_STATE_CHANGE' - }; -} -/** - * Returns a control descriptor signalling to resolve with the current data - * registry. - * - * @return {Object} Control descriptor. - */ - -function getRegistry() { - return { - type: 'GET_REGISTRY' - }; -} /** * Function returning a sessionStorage key to set or retrieve a given post's * automatic session backup. @@ -6292,7 +5261,6 @@ function getRegistry() { * @param {boolean} isPostNew Whether post new. * @return {string} sessionStorage key */ - function postKey(postId, isPostNew) { return "wp-autosave-block-editor-post-".concat(isPostNew ? 'auto-draft' : postId); } @@ -6311,21 +5279,6 @@ function localAutosaveClear(postId, isPostNew) { window.sessionStorage.removeItem(postKey(postId, isPostNew)); } var controls = { - AWAIT_NEXT_STATE_CHANGE: Object(external_this_wp_data_["createRegistryControl"])(function (registry) { - return function () { - return new Promise(function (resolve) { - var unsubscribe = registry.subscribe(function () { - unsubscribe(); - resolve(); - }); - }); - }; - }), - GET_REGISTRY: Object(external_this_wp_data_["createRegistryControl"])(function (registry) { - return function () { - return registry; - }; - }), LOCAL_AUTOSAVE_SET: function LOCAL_AUTOSAVE_SET(_ref) { var postId = _ref.postId, isPostNew = _ref.isPostNew, @@ -6358,7 +5311,6 @@ function store_objectSpread(target) { for (var i = 1; i < arguments.length; i++) - /** * Post editor data store configuration. * @@ -6373,18 +5325,14 @@ var storeConfig = { actions: actions_namespaceObject, controls: store_objectSpread(store_objectSpread({}, external_this_wp_dataControls_["controls"]), store_controls) }; -var store_store = Object(external_this_wp_data_["registerStore"])(STORE_KEY, store_objectSpread(store_objectSpread({}, storeConfig), {}, { +var store = Object(external_this_wp_data_["registerStore"])(STORE_KEY, store_objectSpread(store_objectSpread({}, storeConfig), {}, { persist: ['preferences'] })); -middlewares(store_store); -/* harmony default export */ var build_module_store = (store_store); +/* harmony default export */ var build_module_store = (store); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js var esm_extends = __webpack_require__(8); -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js -var objectWithoutProperties = __webpack_require__(14); - // EXTERNAL MODULE: external {"this":["wp","compose"]} var external_this_wp_compose_ = __webpack_require__(10); @@ -6529,6 +5477,10 @@ Object(external_this_wp_data_["select"])('core/blocks').getBlockTypes().map(func return Object(external_this_wp_data_["select"])('core/blocks').getBlockType(name); }).forEach(shimAttributeSource); +// EXTERNAL MODULE: external {"this":["wp","apiFetch"]} +var external_this_wp_apiFetch_ = __webpack_require__(47); +var external_this_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_apiFetch_); + // CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/autocompleters/user.js @@ -6624,16 +5576,16 @@ Object(external_this_wp_hooks_["addFilter"])('editor.Autocomplete.completers', ' var classCallCheck = __webpack_require__(21); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js -var createClass = __webpack_require__(20); +var createClass = __webpack_require__(22); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules -var inherits = __webpack_require__(22); +var inherits = __webpack_require__(23); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js -var possibleConstructorReturn = __webpack_require__(23); +var possibleConstructorReturn = __webpack_require__(24); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js -var getPrototypeOf = __webpack_require__(17); +var getPrototypeOf = __webpack_require__(19); // CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/autosave-monitor/index.js @@ -7144,7 +6096,7 @@ function EditorKeyboardShortcutsRegister() { var external_this_wp_components_ = __webpack_require__(3); // EXTERNAL MODULE: external {"this":["wp","keycodes"]} -var external_this_wp_keycodes_ = __webpack_require__(19); +var external_this_wp_keycodes_ = __webpack_require__(18); // EXTERNAL MODULE: external {"this":["wp","primitives"]} var external_this_wp_primitives_ = __webpack_require__(7); @@ -7375,10 +6327,10 @@ function EditorNotices(_ref) { })])(EditorNotices)); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/close.js -var library_close = __webpack_require__(157); +var library_close = __webpack_require__(160); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/layout.js -var layout = __webpack_require__(315); +var layout = __webpack_require__(318); // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/page.js @@ -7689,7 +6641,7 @@ function EntitiesSavedStates(_ref) { } // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js -var assertThisInitialized = __webpack_require__(15); +var assertThisInitialized = __webpack_require__(16); // CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/error-boundary/index.js @@ -7956,10 +6908,14 @@ function useAutosavePurge() { function LocalAutosaveMonitor() { var _useDispatch3 = Object(external_this_wp_data_["useDispatch"])('core/editor'), - __experimentalLocalAutosave = _useDispatch3.__experimentalLocalAutosave; + autosave = _useDispatch3.autosave; - var autosave = Object(external_this_wp_element_["useCallback"])(function () { - requestIdleCallback(__experimentalLocalAutosave); + var deferedAutosave = Object(external_this_wp_element_["useCallback"])(function () { + requestIdleCallback(function () { + return autosave({ + local: true + }); + }); }, []); useAutosaveNotice(); useAutosavePurge(); @@ -7973,7 +6929,7 @@ function LocalAutosaveMonitor() { return Object(external_this_wp_element_["createElement"])(autosave_monitor, { interval: localAutosaveInterval, - autosave: autosave + autosave: deferedAutosave }); } @@ -8195,6 +7151,8 @@ function buildTermsTree(flatTerms) { // CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/page-attributes/parent.js + + /** * External dependencies */ @@ -8212,75 +7170,124 @@ function buildTermsTree(flatTerms) { */ -function PageAttributesParent(_ref) { - var parent = _ref.parent, - postType = _ref.postType, - items = _ref.items, - onUpdateParent = _ref.onUpdateParent; + +function getTitle(post) { + var _post$title; + + return (post === null || post === void 0 ? void 0 : (_post$title = post.title) === null || _post$title === void 0 ? void 0 : _post$title.rendered) ? post.title.rendered : "#".concat(post.id, " (").concat(Object(external_this_wp_i18n_["__"])('no title'), ")"); +} + +function PageAttributesParent() { + var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/editor'), + editPost = _useDispatch.editPost; + + var _useState = Object(external_this_wp_element_["useState"])(false), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + fieldValue = _useState2[0], + setFieldValue = _useState2[1]; + + var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { + var _select = select('core'), + getPostType = _select.getPostType, + getEntityRecords = _select.getEntityRecords, + getEntityRecord = _select.getEntityRecord; + + var _select2 = select('core/editor'), + getCurrentPostId = _select2.getCurrentPostId, + getEditedPostAttribute = _select2.getEditedPostAttribute; + + var postTypeSlug = getEditedPostAttribute('type'); + var pageId = getEditedPostAttribute('parent'); + var pType = getPostType(postTypeSlug); + var postId = getCurrentPostId(); + var isHierarchical = Object(external_this_lodash_["get"])(pType, ['hierarchical'], false); + var query = { + per_page: 100, + exclude: postId, + parent_exclude: postId, + orderby: 'menu_order', + order: 'asc', + _fields: 'id,title,parent' + }; + + if (parentPost && fieldValue && '' !== fieldValue) { + query.search = fieldValue; + } + + return { + parentPostId: pageId, + parentPost: pageId ? getEntityRecord('postType', postTypeSlug, pageId) : null, + items: isHierarchical ? getEntityRecords('postType', postTypeSlug, query) : [], + postType: pType + }; + }, [fieldValue]), + parentPost = _useSelect.parentPost, + parentPostId = _useSelect.parentPostId, + items = _useSelect.items, + postType = _useSelect.postType; + var isHierarchical = Object(external_this_lodash_["get"])(postType, ['hierarchical'], false); var parentPageLabel = Object(external_this_lodash_["get"])(postType, ['labels', 'parent_item_colon']); var pageItems = items || []; - if (!isHierarchical || !parentPageLabel || !pageItems.length) { + var getOptionsFromTree = function getOptionsFromTree(tree) { + var level = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; + return Object(external_this_lodash_["flatMap"])(tree, function (treeNode) { + return [{ + value: treeNode.id, + label: Object(external_this_lodash_["repeat"])('— ', level) + Object(external_this_lodash_["unescape"])(treeNode.name) + }].concat(Object(toConsumableArray["a" /* default */])(getOptionsFromTree(treeNode.children || [], level + 1))); + }); + }; + + var parentOptions = Object(external_this_wp_element_["useMemo"])(function () { + var tree = buildTermsTree(pageItems.map(function (item) { + return { + id: item.id, + parent: item.parent, + name: getTitle(item) + }; + })); + var opts = getOptionsFromTree(tree); + return opts; + }, [pageItems]); + + if (!isHierarchical || !parentPageLabel) { return null; } + /** + * Handle user input. + * + * @param {string} inputValue The current value of the input field. + */ - var pagesTree = buildTermsTree(pageItems.map(function (item) { - return { - id: item.id, - parent: item.parent, - name: item.title && item.title.raw ? item.title.raw : "#".concat(item.id, " (").concat(Object(external_this_wp_i18n_["__"])('no title'), ")") - }; - })); - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TreeSelect"], { + + var handleKeydown = function handleKeydown(inputValue) { + setFieldValue(inputValue); + }; + /** + * Handle author selection. + * + * @param {Object} selectedPostId The selected Author. + */ + + + var handleChange = function handleChange(selectedPostId) { + editPost({ + parent: selectedPostId + }); + }; + + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ComboboxControl"], { className: "editor-page-attributes__parent", label: parentPageLabel, - noOptionLabel: "(".concat(Object(external_this_wp_i18n_["__"])('no parent'), ")"), - tree: pagesTree, - selectedId: parent, - onChange: onUpdateParent + value: parentPostId, + options: parentOptions, + onFilterValueChange: Object(external_this_lodash_["debounce"])(handleKeydown, 300), + onChange: handleChange }); } -var applyWithSelect = Object(external_this_wp_data_["withSelect"])(function (select) { - var _select = select('core'), - getPostType = _select.getPostType, - getEntityRecords = _select.getEntityRecords; - - var _select2 = select('core/editor'), - getCurrentPostId = _select2.getCurrentPostId, - getEditedPostAttribute = _select2.getEditedPostAttribute; - - var postTypeSlug = getEditedPostAttribute('type'); - var postType = getPostType(postTypeSlug); - var postId = getCurrentPostId(); - var isHierarchical = Object(external_this_lodash_["get"])(postType, ['hierarchical'], false); - var query = { - per_page: -1, - exclude: postId, - parent_exclude: postId, - orderby: 'menu_order', - order: 'asc', - _fields: 'id,title,parent' - }; - return { - parent: getEditedPostAttribute('parent'), - items: isHierarchical ? getEntityRecords('postType', postTypeSlug, query) : [], - postType: postType - }; -}); -var applyWithDispatch = Object(external_this_wp_data_["withDispatch"])(function (dispatch) { - var _dispatch = dispatch('core/editor'), - editPost = _dispatch.editPost; - - return { - onUpdateParent: function onUpdateParent(parent) { - editPost({ - parent: parent || 0 - }); - } - }; -}); -/* harmony default export */ var page_attributes_parent = (Object(external_this_wp_compose_["compose"])([applyWithSelect, applyWithDispatch])(PageAttributesParent)); +/* harmony default export */ var page_attributes_parent = (PageAttributesParent); // CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/page-attributes/template.js @@ -8515,7 +7522,8 @@ function PostAuthor() { value: authorId, onFilterValueChange: Object(external_this_lodash_["debounce"])(handleKeydown, 300), onChange: handleSelect, - isLoading: isLoading + isLoading: isLoading, + allowReset: false })); } @@ -8815,7 +7823,7 @@ function PostFeaturedImage(_ref) { }, postLabel.remove_featured_image || DEFAULT_REMOVE_FEATURE_IMAGE_LABEL)))); } -var post_featured_image_applyWithSelect = Object(external_this_wp_data_["withSelect"])(function (select) { +var applyWithSelect = Object(external_this_wp_data_["withSelect"])(function (select) { var _select = select('core'), getMedia = _select.getMedia, getPostType = _select.getPostType; @@ -8832,7 +7840,7 @@ var post_featured_image_applyWithSelect = Object(external_this_wp_data_["withSel featuredImageId: featuredImageId }; }); -var post_featured_image_applyWithDispatch = Object(external_this_wp_data_["withDispatch"])(function (dispatch, _ref4, _ref5) { +var applyWithDispatch = Object(external_this_wp_data_["withDispatch"])(function (dispatch, _ref4, _ref5) { var noticeOperations = _ref4.noticeOperations; var select = _ref5.select; @@ -8870,7 +7878,7 @@ var post_featured_image_applyWithDispatch = Object(external_this_wp_data_["withD } }; }); -/* harmony default export */ var post_featured_image = (Object(external_this_wp_compose_["compose"])(external_this_wp_components_["withNotices"], post_featured_image_applyWithSelect, post_featured_image_applyWithDispatch, Object(external_this_wp_components_["withFilters"])('editor.PostFeaturedImage'))(PostFeaturedImage)); +/* harmony default export */ var post_featured_image = (Object(external_this_wp_compose_["compose"])(external_this_wp_components_["withNotices"], applyWithSelect, applyWithDispatch, Object(external_this_wp_components_["withFilters"])('editor.PostFeaturedImage'))(PostFeaturedImage)); // CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-format/check.js @@ -8954,21 +7962,45 @@ var POST_FORMATS = [{ id: 'chat', caption: Object(external_this_wp_i18n_["__"])('Chat') }]; +function PostFormat() { + var instanceId = Object(external_this_wp_compose_["useInstanceId"])(PostFormat); + var postFormatSelectorId = "post-format-selector-".concat(instanceId); + + var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { + var _select = select('core/editor'), + getEditedPostAttribute = _select.getEditedPostAttribute, + getSuggestedPostFormat = _select.getSuggestedPostFormat; + + var _postFormat = getEditedPostAttribute('format'); + + var themeSupports = select('core').getThemeSupports(); + return { + postFormat: _postFormat !== null && _postFormat !== void 0 ? _postFormat : 'standard', + suggestedFormat: getSuggestedPostFormat(), + // Ensure current format is always in the set. + // The current format may not be a format supported by the theme. + supportedFormats: Object(external_this_lodash_["union"])([_postFormat], Object(external_this_lodash_["get"])(themeSupports, ['formats'], [])) + }; + }, []), + postFormat = _useSelect.postFormat, + suggestedFormat = _useSelect.suggestedFormat, + supportedFormats = _useSelect.supportedFormats; -function PostFormat(_ref) { - var onUpdatePostFormat = _ref.onUpdatePostFormat, - _ref$postFormat = _ref.postFormat, - postFormat = _ref$postFormat === void 0 ? 'standard' : _ref$postFormat, - supportedFormats = _ref.supportedFormats, - suggestedFormat = _ref.suggestedFormat, - instanceId = _ref.instanceId; - var postFormatSelectorId = 'post-format-selector-' + instanceId; var formats = POST_FORMATS.filter(function (format) { return Object(external_this_lodash_["includes"])(supportedFormats, format.id); }); var suggestion = Object(external_this_lodash_["find"])(formats, function (format) { return format.id === suggestedFormat; - }); // Disable reason: We need to change the value immiediately to show/hide the suggestion if needed + }); + + var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/editor'), + editPost = _useDispatch.editPost; + + var onUpdatePostFormat = function onUpdatePostFormat(format) { + return editPost({ + format: format + }); + }; return Object(external_this_wp_element_["createElement"])(post_format_check, null, Object(external_this_wp_element_["createElement"])("div", { className: "editor-post-format" @@ -8998,31 +8030,6 @@ function PostFormat(_ref) { }, suggestion.caption)))); } -/* harmony default export */ var post_format = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select) { - var _select = select('core/editor'), - getEditedPostAttribute = _select.getEditedPostAttribute, - getSuggestedPostFormat = _select.getSuggestedPostFormat; - - var postFormat = getEditedPostAttribute('format'); - var themeSupports = select('core').getThemeSupports(); // Ensure current format is always in the set. - // The current format may not be a format supported by the theme. - - var supportedFormats = Object(external_this_lodash_["union"])([postFormat], Object(external_this_lodash_["get"])(themeSupports, ['formats'], [])); - return { - postFormat: postFormat, - supportedFormats: supportedFormats, - suggestedFormat: getSuggestedPostFormat() - }; -}), Object(external_this_wp_data_["withDispatch"])(function (dispatch) { - return { - onUpdatePostFormat: function onUpdatePostFormat(postFormat) { - dispatch('core/editor').editPost({ - format: postFormat - }); - } - }; -}), external_this_wp_compose_["withInstanceId"]])(PostFormat)); - // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/backup.js @@ -10042,7 +9049,7 @@ var post_publish_button_PostPublishButton = /*#__PURE__*/function (_Component) { })])(post_publish_button_PostPublishButton)); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/close-small.js -var close_small = __webpack_require__(181); +var close_small = __webpack_require__(159); // CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-visibility/utils.js /** @@ -10350,7 +9357,7 @@ function PostScheduleLabel(_ref) { var settings = Object(external_this_wp_date_["__experimentalGetSettings"])(); - return date && !isFloating ? Object(external_this_wp_date_["dateI18n"])("".concat(settings.formats.date, " ").concat(settings.formats.time), date) : Object(external_this_wp_i18n_["__"])('Immediately'); + return date && !isFloating ? Object(external_this_wp_date_["format"])("".concat(settings.formats.date, " ").concat(settings.formats.time), date) : Object(external_this_wp_i18n_["__"])('Immediately'); } /* harmony default export */ var post_schedule_label = (Object(external_this_wp_data_["withSelect"])(function (select) { return { @@ -10825,13 +9832,21 @@ var maybe_tags_panel_MaybeTagsPanel = /*#__PURE__*/function (_Component) { - /** * Internal dependencies */ +var maybe_post_format_panel_getSuggestion = function getSuggestion(supportedFormats, suggestedPostFormat) { + var formats = POST_FORMATS.filter(function (format) { + return Object(external_this_lodash_["includes"])(supportedFormats, format.id); + }); + return Object(external_this_lodash_["find"])(formats, function (format) { + return format.id === suggestedPostFormat; + }); +}; + var maybe_post_format_panel_PostFormatSuggestion = function PostFormatSuggestion(_ref) { var suggestedPostFormat = _ref.suggestedPostFormat, suggestionText = _ref.suggestionText, @@ -10844,13 +9859,39 @@ var maybe_post_format_panel_PostFormatSuggestion = function PostFormatSuggestion }, suggestionText); }; -var maybe_post_format_panel_PostFormatPanel = function PostFormatPanel(_ref2) { - var suggestion = _ref2.suggestion, - onUpdatePostFormat = _ref2.onUpdatePostFormat; +function PostFormatPanel() { + var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { + var _select = select('core/editor'), + getEditedPostAttribute = _select.getEditedPostAttribute, + getSuggestedPostFormat = _select.getSuggestedPostFormat; + + var supportedFormats = Object(external_this_lodash_["get"])(select('core').getThemeSupports(), ['formats'], []); + return { + currentPostFormat: getEditedPostAttribute('format'), + suggestion: maybe_post_format_panel_getSuggestion(supportedFormats, getSuggestedPostFormat()) + }; + }, []), + currentPostFormat = _useSelect.currentPostFormat, + suggestion = _useSelect.suggestion; + + var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/editor'), + editPost = _useDispatch.editPost; + + var onUpdatePostFormat = function onUpdatePostFormat(format) { + return editPost({ + format: format + }); + }; + var panelBodyTitle = [Object(external_this_wp_i18n_["__"])('Suggestion:'), Object(external_this_wp_element_["createElement"])("span", { className: "editor-post-publish-panel__link", key: "label" }, Object(external_this_wp_i18n_["__"])('Use a post format'))]; + + if (!suggestion || suggestion.id === currentPostFormat) { + return null; + } + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { initialOpen: false, title: panelBodyTitle @@ -10861,40 +9902,7 @@ var maybe_post_format_panel_PostFormatPanel = function PostFormatPanel(_ref2) { /* translators: %s: post format */ Object(external_this_wp_i18n_["__"])('Apply the "%1$s" format.'), suggestion.caption) }))); -}; - -var maybe_post_format_panel_getSuggestion = function getSuggestion(supportedFormats, suggestedPostFormat) { - var formats = POST_FORMATS.filter(function (format) { - return Object(external_this_lodash_["includes"])(supportedFormats, format.id); - }); - return Object(external_this_lodash_["find"])(formats, function (format) { - return format.id === suggestedPostFormat; - }); -}; - -/* harmony default export */ var maybe_post_format_panel = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select) { - var _select = select('core/editor'), - getEditedPostAttribute = _select.getEditedPostAttribute, - getSuggestedPostFormat = _select.getSuggestedPostFormat; - - var supportedFormats = Object(external_this_lodash_["get"])(select('core').getThemeSupports(), ['formats'], []); - return { - currentPostFormat: getEditedPostAttribute('format'), - suggestion: maybe_post_format_panel_getSuggestion(supportedFormats, getSuggestedPostFormat()) - }; -}), Object(external_this_wp_data_["withDispatch"])(function (dispatch) { - return { - onUpdatePostFormat: function onUpdatePostFormat(postFormat) { - dispatch('core/editor').editPost({ - format: postFormat - }); - } - }; -}), Object(external_this_wp_compose_["ifCondition"])(function (_ref3) { - var suggestion = _ref3.suggestion, - currentPostFormat = _ref3.currentPostFormat; - return suggestion && suggestion.id !== currentPostFormat; -}))(maybe_post_format_panel_PostFormatPanel)); +} // CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-publish-panel/prepublish.js @@ -10952,7 +9960,7 @@ function PostPublishPanelPrepublish(_ref) { className: "editor-post-publish-panel__link", key: "label" }, Object(external_this_wp_element_["createElement"])(post_schedule_label, null))] - }, Object(external_this_wp_element_["createElement"])(post_schedule, null))), Object(external_this_wp_element_["createElement"])(maybe_post_format_panel, null), Object(external_this_wp_element_["createElement"])(maybe_tags_panel, null), children); + }, Object(external_this_wp_element_["createElement"])(post_schedule, null))), Object(external_this_wp_element_["createElement"])(PostFormatPanel, null), Object(external_this_wp_element_["createElement"])(maybe_tags_panel, null), children); } /* harmony default export */ var prepublish = (Object(external_this_wp_data_["withSelect"])(function (select) { @@ -11308,7 +10316,7 @@ var post_publish_panel_PostPublishPanel = /*#__PURE__*/function (_Component) { }), external_this_wp_components_["withFocusReturn"], external_this_wp_components_["withConstrainedTabbing"]])(post_publish_panel_PostPublishPanel)); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/icon/index.js -var build_module_icon = __webpack_require__(142); +var build_module_icon = __webpack_require__(141); // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/cloud.js @@ -11326,7 +10334,7 @@ var cloud = Object(external_this_wp_element_["createElement"])(external_this_wp_ /* harmony default export */ var library_cloud = (cloud); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/check.js -var library_check = __webpack_require__(158); +var library_check = __webpack_require__(161); // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/cloud-upload.js @@ -12444,7 +11452,7 @@ function PostTaxonomiesCheck(_ref) { })])(PostTaxonomiesCheck)); // EXTERNAL MODULE: ./node_modules/react-autosize-textarea/lib/index.js -var lib = __webpack_require__(99); +var lib = __webpack_require__(100); var lib_default = /*#__PURE__*/__webpack_require__.n(lib); // CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-text-editor/index.js @@ -12921,7 +11929,7 @@ var info_info = Object(external_this_wp_element_["createElement"])(external_this /* harmony default export */ var library_info = (info_info); // EXTERNAL MODULE: external {"this":["wp","wordcount"]} -var external_this_wp_wordcount_ = __webpack_require__(127); +var external_this_wp_wordcount_ = __webpack_require__(128); // CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/word-count/index.js @@ -13154,6 +12162,9 @@ function UnsavedChangesWarning() { return null; } +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js +var asyncToGenerator = __webpack_require__(45); + // CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/provider/with-registry-provider.js @@ -13171,7 +12182,6 @@ function UnsavedChangesWarning() { */ - var withRegistryProvider = Object(external_this_wp_compose_["createHigherOrderComponent"])(function (WrappedComponent) { return Object(external_this_wp_data_["withRegistry"])(function (props) { var _props$useSubRegistry = props.useSubRegistry, @@ -13192,9 +12202,7 @@ var withRegistryProvider = Object(external_this_wp_compose_["createHigherOrderCo var newRegistry = Object(external_this_wp_data_["createRegistry"])({ 'core/block-editor': external_this_wp_blockEditor_["storeConfig"] }, registry); - var store = newRegistry.registerStore('core/editor', storeConfig); // This should be removed after the refactoring of the effects to controls. - - middlewares(store); + newRegistry.registerStore('core/editor', storeConfig); setSubRegistry(newRegistry); }, [registry]); @@ -13210,7 +12218,7 @@ var withRegistryProvider = Object(external_this_wp_compose_["createHigherOrderCo /* harmony default export */ var with_registry_provider = (withRegistryProvider); // EXTERNAL MODULE: external {"this":["wp","mediaUtils"]} -var external_this_wp_mediaUtils_ = __webpack_require__(155); +var external_this_wp_mediaUtils_ = __webpack_require__(156); // CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/utils/media-upload/index.js @@ -13274,205 +12282,6 @@ function mediaUpload(_ref) { }); } -// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/reusable-block.js - - -/** - * WordPress dependencies - */ - -var reusable_block_reusableBlock = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { - d: "M7 7.2h8.2L13.5 9l1.1 1.1 3.6-3.6-3.5-4-1.1 1 1.9 2.3H7c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.2-.5zm13.8 4V11h-1.5v.3c0 1.1 0 3.5-1 4.5-.3.3-.7.5-1.3.5H8.8l1.7-1.7-1.1-1.1L5.9 17l3.5 4 1.1-1-1.9-2.3H17c.9 0 1.7-.3 2.3-.9 1.5-1.4 1.5-4.2 1.5-5.6z" -})); -/* harmony default export */ var reusable_block = (reusable_block_reusableBlock); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/reusable-blocks-buttons/reusable-block-convert-button.js - - -/** - * WordPress dependencies - */ - - - - - - -/** - * Menu control to convert block(s) to reusable block. - * - * @param {Object} props Component props. - * @param {string[]} props.clientIds Client ids of selected blocks. - * - * @return {import('@wordpress/element').WPComponent} The menu control or null. - */ - -function ReusableBlockConvertButton(_ref) { - var clientIds = _ref.clientIds; - var canConvert = Object(external_this_wp_data_["useSelect"])(function (select) { - var _getBlocksByClientId; - - var _select = select('core'), - canUser = _select.canUser; - - var _select2 = select('core/block-editor'), - getBlocksByClientId = _select2.getBlocksByClientId, - canInsertBlockType = _select2.canInsertBlockType; - - var _select3 = select('core/editor'), - getReusableBlock = _select3.__experimentalGetReusableBlock; - - var blocks = (_getBlocksByClientId = getBlocksByClientId(clientIds)) !== null && _getBlocksByClientId !== void 0 ? _getBlocksByClientId : []; - var isReusable = blocks.length === 1 && blocks[0] && Object(external_this_wp_blocks_["isReusableBlock"])(blocks[0]) && !!getReusableBlock(blocks[0].attributes.ref); - - var _canConvert = // Hide when this is already a reusable block. - !isReusable && // Hide when reusable blocks are disabled. - canInsertBlockType('core/block') && blocks.every(function (block) { - return (// Guard against the case where a regular block has *just* been converted. - !!block && // Hide on invalid blocks. - block.isValid && // Hide when block doesn't support being made reusable. - Object(external_this_wp_blocks_["hasBlockSupport"])(block.name, 'reusable', true) - ); - }) && // Hide when current doesn't have permission to do that. - !!canUser('create', 'blocks'); - - return _canConvert; - }, [clientIds]); - - var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/editor'), - convertBlockToReusable = _useDispatch.__experimentalConvertBlockToReusable; - - if (!canConvert) { - return null; - } - - return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockSettingsMenuControls"], null, function (_ref2) { - var onClose = _ref2.onClose; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { - icon: reusable_block, - onClick: function onClick() { - convertBlockToReusable(clientIds); - onClose(); - } - }, Object(external_this_wp_i18n_["__"])('Add to Reusable blocks')); - }); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/reusable-blocks-buttons/reusable-block-delete-button.js - - -/** - * WordPress dependencies - */ - - - - - - -function ReusableBlockDeleteButton(_ref) { - var isVisible = _ref.isVisible, - isDisabled = _ref.isDisabled, - onDelete = _ref.onDelete; - - if (!isVisible) { - return null; - } - - return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockSettingsMenuControls"], null, function (_ref2) { - var onClose = _ref2.onClose; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { - disabled: isDisabled, - onClick: function onClick() { - var hasConfirmed = onDelete(); - - if (hasConfirmed) { - onClose(); - } - } - }, Object(external_this_wp_i18n_["__"])('Remove from Reusable blocks')); - }); -} -/* harmony default export */ var reusable_block_delete_button = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select, _ref3) { - var clientId = _ref3.clientId; - - var _select = select('core/block-editor'), - getBlock = _select.getBlock; - - var _select2 = select('core'), - canUser = _select2.canUser; - - var _select3 = select('core/editor'), - getReusableBlock = _select3.__experimentalGetReusableBlock; - - var block = getBlock(clientId); - var reusableBlock = block && Object(external_this_wp_blocks_["isReusableBlock"])(block) ? getReusableBlock(block.attributes.ref) : null; - return { - isVisible: !!reusableBlock && (reusableBlock.isTemporary || !!canUser('delete', 'blocks', reusableBlock.id)), - isDisabled: reusableBlock && reusableBlock.isTemporary - }; -}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, _ref4, _ref5) { - var clientId = _ref4.clientId; - var select = _ref5.select; - - var _dispatch = dispatch('core/editor'), - deleteReusableBlock = _dispatch.__experimentalDeleteReusableBlock; - - var _select4 = select('core/block-editor'), - getBlock = _select4.getBlock; - - return { - onDelete: function onDelete() { - // TODO: Make this a component or similar - // eslint-disable-next-line no-alert - var hasConfirmed = window.confirm( // eslint-disable-next-line @wordpress/i18n-no-collapsible-whitespace - Object(external_this_wp_i18n_["__"])('Are you sure you want to delete this Reusable Block?\n\n' + 'It will be permanently removed from all posts and pages that use it.')); - - if (hasConfirmed) { - var block = getBlock(clientId); - deleteReusableBlock(block.attributes.ref); - } - - return hasConfirmed; - } - }; -})])(ReusableBlockDeleteButton)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/reusable-blocks-buttons/index.js - - -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - - - -function ReusableBlocksButtons(_ref) { - var clientIds = _ref.clientIds; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(ReusableBlockConvertButton, { - clientIds: clientIds - }), clientIds.length === 1 && Object(external_this_wp_element_["createElement"])(reusable_block_delete_button, { - clientId: clientIds[0] - })); -} - -/* harmony default export */ var reusable_blocks_buttons = (Object(external_this_wp_data_["withSelect"])(function (select) { - var _select = select('core/block-editor'), - getSelectedBlockClientIds = _select.getSelectedBlockClientIds; - - return { - clientIds: getSelectedBlockClientIds() - }; -})(ReusableBlocksButtons)); - // CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/convert-to-group-buttons/index.js @@ -13610,6 +12419,7 @@ function provider_isNativeReflectConstruct() { if (typeof Reflect === "undefined + /** * Internal dependencies */ @@ -13617,7 +12427,6 @@ function provider_isNativeReflectConstruct() { if (typeof Reflect === "undefined - /** * Fetches link suggestions from the API. This function is an exact copy of a function found at: * @@ -13770,11 +12579,10 @@ var provider_EditorProvider = /*#__PURE__*/function (_Component) { Object(createClass["a" /* default */])(EditorProvider, [{ key: "getBlockEditorSettings", - value: function getBlockEditorSettings(settings, reusableBlocks, __experimentalFetchReusableBlocks, hasUploadPermissions, canUserUseUnfilteredHTML, undo, shouldInsertAtTheTop) { - return provider_objectSpread(provider_objectSpread({}, Object(external_this_lodash_["pick"])(settings, ['__experimentalBlockDirectory', '__experimentalBlockPatterns', '__experimentalBlockPatternCategories', '__experimentalEnableFullSiteEditing', '__experimentalEnableFullSiteEditingDemo', '__experimentalFeatures', '__experimentalGlobalStylesUserEntityId', '__experimentalGlobalStylesBaseStyles', '__experimentalGlobalStylesContexts', '__experimentalPreferredStyleVariations', '__experimentalSetIsInserterOpened', 'alignWide', 'allowedBlockTypes', 'availableLegacyWidgets', 'bodyPlaceholder', 'codeEditingEnabled', 'colors', 'disableCustomColors', 'disableCustomFontSizes', 'disableCustomGradients', 'enableCustomUnits', 'enableCustomLineHeight', 'focusMode', 'fontSizes', 'gradients', 'hasFixedToolbar', 'hasPermissionsToManageWidgets', 'imageEditing', 'imageSizes', 'imageDimensions', 'isRTL', 'keepCaretInsideBlock', 'maxWidth', 'onUpdateDefaultBlockStyles', 'styles', 'template', 'templateLock', 'titlePlaceholder'])), {}, { + value: function getBlockEditorSettings(settings, reusableBlocks, hasUploadPermissions, canUserUseUnfilteredHTML, undo, shouldInsertAtTheTop) { + return provider_objectSpread(provider_objectSpread({}, Object(external_this_lodash_["pick"])(settings, ['__experimentalBlockDirectory', '__experimentalBlockPatterns', '__experimentalBlockPatternCategories', '__experimentalEnableFullSiteEditing', '__experimentalEnableFullSiteEditingDemo', '__experimentalFeatures', '__experimentalGlobalStylesUserEntityId', '__experimentalGlobalStylesBaseStyles', '__experimentalGlobalStylesContexts', '__experimentalPreferredStyleVariations', '__experimentalSetIsInserterOpened', 'alignWide', 'allowedBlockTypes', 'availableLegacyWidgets', 'bodyPlaceholder', 'codeEditingEnabled', 'colors', 'disableCustomColors', 'disableCustomFontSizes', 'disableCustomGradients', 'enableCustomUnits', 'enableCustomLineHeight', 'focusMode', 'fontSizes', 'gradients', 'hasFixedToolbar', 'hasReducedUI', 'imageEditing', 'imageSizes', 'imageDimensions', 'isRTL', 'keepCaretInsideBlock', 'maxWidth', 'onUpdateDefaultBlockStyles', 'styles', 'template', 'templateLock', 'titlePlaceholder'])), {}, { mediaUpload: hasUploadPermissions ? mediaUpload : undefined, __experimentalReusableBlocks: reusableBlocks, - __experimentalFetchReusableBlocks: __experimentalFetchReusableBlocks, __experimentalFetchLinkSuggestions: Object(external_this_lodash_["partialRight"])(fetchLinkSuggestions, settings), __experimentalCanUserUseUnfilteredHTML: canUserUseUnfilteredHTML, __experimentalUndo: undo, @@ -13823,14 +12631,13 @@ var provider_EditorProvider = /*#__PURE__*/function (_Component) { resetEditorBlocksWithoutUndoLevel = _this$props.resetEditorBlocksWithoutUndoLevel, hasUploadPermissions = _this$props.hasUploadPermissions, isPostTitleSelected = _this$props.isPostTitleSelected, - __experimentalFetchReusableBlocks = _this$props.__experimentalFetchReusableBlocks, undo = _this$props.undo; if (!isReady) { return null; } - var editorSettings = this.getBlockEditorSettings(settings, reusableBlocks, __experimentalFetchReusableBlocks, hasUploadPermissions, canUserUseUnfilteredHTML, undo, isPostTitleSelected); + var editorSettings = this.getBlockEditorSettings(settings, reusableBlocks, hasUploadPermissions, canUserUseUnfilteredHTML, undo, isPostTitleSelected); var defaultBlockContext = this.getDefaultBlockContext(post.id, post.type); return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__unstableEditorStyles"], { styles: settings.styles @@ -13851,7 +12658,7 @@ var provider_EditorProvider = /*#__PURE__*/function (_Component) { selectionEnd: selectionEnd, settings: editorSettings, useSubRegistry: false - }, children, Object(external_this_wp_element_["createElement"])(reusable_blocks_buttons, null), Object(external_this_wp_element_["createElement"])(convert_to_group_buttons, null)))))); + }, children, Object(external_this_wp_element_["createElement"])(external_this_wp_reusableBlocks_["ReusableBlocksMenuItems"], null), Object(external_this_wp_element_["createElement"])(convert_to_group_buttons, null)))))); } }]); @@ -13865,7 +12672,6 @@ var provider_EditorProvider = /*#__PURE__*/function (_Component) { getEditorBlocks = _select.getEditorBlocks, getEditorSelectionStart = _select.getEditorSelectionStart, getEditorSelectionEnd = _select.getEditorSelectionEnd, - __experimentalGetReusableBlocks = _select.__experimentalGetReusableBlocks, isPostTitleSelected = _select.isPostTitleSelected; var _select2 = select('core'), @@ -13877,7 +12683,7 @@ var provider_EditorProvider = /*#__PURE__*/function (_Component) { blocks: getEditorBlocks(), selectionStart: getEditorSelectionStart(), selectionEnd: getEditorSelectionEnd(), - reusableBlocks: __experimentalGetReusableBlocks(), + reusableBlocks: select('core').getEntityRecords('postType', 'wp_block'), hasUploadPermissions: Object(external_this_lodash_["defaultTo"])(canUser('create', 'media'), true), // This selector is only defined on mobile. isPostTitleSelected: isPostTitleSelected && isPostTitleSelected() @@ -13888,7 +12694,6 @@ var provider_EditorProvider = /*#__PURE__*/function (_Component) { updatePostLock = _dispatch.updatePostLock, resetEditorBlocks = _dispatch.resetEditorBlocks, updateEditorSettings = _dispatch.updateEditorSettings, - __experimentalFetchReusableBlocks = _dispatch.__experimentalFetchReusableBlocks, __experimentalTearDownEditor = _dispatch.__experimentalTearDownEditor, undo = _dispatch.undo; @@ -13907,13 +12712,12 @@ var provider_EditorProvider = /*#__PURE__*/function (_Component) { })); }, tearDownEditor: __experimentalTearDownEditor, - __experimentalFetchReusableBlocks: __experimentalFetchReusableBlocks, undo: undo }; })])(provider_EditorProvider)); // EXTERNAL MODULE: external {"this":["wp","serverSideRender"]} -var external_this_wp_serverSideRender_ = __webpack_require__(86); +var external_this_wp_serverSideRender_ = __webpack_require__(87); var external_this_wp_serverSideRender_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_serverSideRender_); // CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/deprecated.js @@ -14094,6 +12898,7 @@ var withFontSizes = deprecateFunction('withFontSizes', external_this_wp_blockEdi + /** * Internal dependencies */ @@ -14113,45 +12918,9 @@ var withFontSizes = deprecateFunction('withFontSizes', external_this_wp_blockEdi /***/ }), /***/ 47: -/***/ (function(module, __webpack_exports__, __webpack_require__) { +/***/ (function(module, exports) { -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _asyncToGenerator; }); -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { - try { - var info = gen[key](arg); - var value = info.value; - } catch (error) { - reject(error); - return; - } - - if (info.done) { - resolve(value); - } else { - Promise.resolve(value).then(_next, _throw); - } -} - -function _asyncToGenerator(fn) { - return function () { - var self = this, - args = arguments; - return new Promise(function (resolve, reject) { - var gen = fn.apply(self, args); - - function _next(value) { - asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); - } - - function _throw(err) { - asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); - } - - _next(undefined); - }); - }; -} +(function() { module.exports = this["wp"]["apiFetch"]; }()); /***/ }), @@ -14405,17 +13174,17 @@ function _extends() { /***/ }), -/***/ 86: +/***/ 83: /***/ (function(module, exports) { -(function() { module.exports = this["wp"]["serverSideRender"]; }()); +(function() { module.exports = this["wp"]["coreData"]; }()); /***/ }), -/***/ 89: +/***/ 87: /***/ (function(module, exports) { -(function() { module.exports = this["wp"]["viewport"]; }()); +(function() { module.exports = this["wp"]["serverSideRender"]; }()); /***/ }), @@ -14477,15 +13246,10 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! /***/ }), -/***/ 99: -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -exports.__esModule = true; -var TextareaAutosize_1 = __webpack_require__(177); -exports["default"] = TextareaAutosize_1["default"]; +/***/ 92: +/***/ (function(module, exports) { +(function() { module.exports = this["wp"]["notices"]; }()); /***/ }) diff --git a/wp-includes/js/dist/editor.min.js b/wp-includes/js/dist/editor.min.js index bcbdd5003e..861abb5723 100644 --- a/wp-includes/js/dist/editor.min.js +++ b/wp-includes/js/dist/editor.min.js @@ -1,12 +1,12 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.editor=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=452)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},10:function(e,t){!function(){e.exports=this.wp.compose}()},100:function(e,t){!function(){e.exports=this.wp.coreData}()},101:function(e,t){!function(){e.exports=this.wp.notices}()},105:function(e,t){!function(){e.exports=this.wp.autop}()},11:function(e,t){!function(){e.exports=this.wp.blocks}()},113:function(e,t,n){"use strict";e.exports=function(e){var t,n={};return function e(t,n){var r;if(Array.isArray(n))for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},142:function(e,t,n){"use strict";var r=n(5),o=n(14),i=n(0);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.a=function(e){var t=e.icon,n=e.size,a=void 0===n?24:n,s=Object(o.a)(e,["icon","size"]);return Object(i.cloneElement)(t,function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},141:function(e,t,n){"use strict";var r=n(5),o=n(14),i=n(0);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.a=function(e){var t=e.icon,n=e.size,s=void 0===n?24:n,a=Object(o.a)(e,["icon","size"]);return Object(i.cloneElement)(t,function(e){for(var t=1;t-1},get:function(e){return r[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),r.push(t))},delete:function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),r.splice(t,1))}}),i=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){i=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function c(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!o.has(e)){var t,n=null,r=null,c=null,a=function(){e.clientWidth!==r&&d()},s=function(t){window.removeEventListener("resize",a,!1),e.removeEventListener("input",d,!1),e.removeEventListener("keyup",d,!1),e.removeEventListener("autosize:destroy",s,!1),e.removeEventListener("autosize:update",d,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),o.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",s,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",d,!1),window.addEventListener("resize",a,!1),e.addEventListener("input",d,!1),e.addEventListener("autosize:update",d,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",o.set(e,{destroy:s,update:d}),"vertical"===(t=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),n="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(n)&&(n=0),d()}function u(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function l(){if(0!==e.scrollHeight){var t=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),o=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",r=e.clientWidth,t.forEach((function(e){e.node.scrollTop=e.scrollTop})),o&&(document.documentElement.scrollTop=o)}}function d(){l();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),r="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(re.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}))},435:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["optimist"])}}return{optimist:o,innerState:e}}e.exports=function(e){function t(t,n,o){return t.length&&(t=t.concat([{action:o}])),c(n=e(n,o),o),r({optimist:t},n)}return function(n,o){if(o.optimist)switch(o.optimist.type){case"BEGIN":return function(t,n){var o=a(t),i=o.optimist,s=o.innerState;return i=i.concat([{beforeState:s,action:n}]),c(s=e(s,n),n),r({optimist:i},s)}(n,o);case"COMMIT":return function(e,n){var r=a(e),o=r.optimist,c=r.innerState,s=[],u=!1,l=!1;return o.forEach((function(e){u?e.beforeState&&i(e.action,n.optimist.id)?(l=!0,s.push({action:e.action})):s.push(e):e.beforeState&&!i(e.action,n.optimist.id)?(u=!0,s.push(e)):e.beforeState&&i(e.action,n.optimist.id)&&(l=!0)})),l||console.error('Cannot commit transaction with id "'+n.optimist.id+'" because it does not exist'),t(o=s,c,n)}(n,o);case"REVERT":return function(n,r){var o=a(n),s=o.optimist,u=o.innerState,l=[],d=!1,p=!1,b=u;return s.forEach((function(t){t.beforeState&&i(t.action,r.optimist.id)&&(b=t.beforeState,p=!0),i(t.action,r.optimist.id)||(t.beforeState&&(d=!0),d&&(p&&t.beforeState?l.push({beforeState:b,action:t.action}):l.push(t)),p&&(b=e(b,t.action),c(u,r)))})),p||console.error('Cannot revert transaction with id "'+r.optimist.id+'" because it does not exist'),t(s=l,b,r)}(n,o)}var s=a(n),u=s.optimist,l=s.innerState;if(n&&!u.length){var d=e(l,o);return d===l?n:(c(d,o),r({optimist:u},d))}return t(u,l,o)}},e.exports.BEGIN="BEGIN",e.exports.COMMIT="COMMIT",e.exports.REVERT="REVERT"},45:function(e,t){!function(){e.exports=this.wp.apiFetch}()},452:function(e,t,n){"use strict";n.r(t),n.d(t,"userAutocompleter",(function(){return oo})),n.d(t,"AutosaveMonitor",(function(){return bo})),n.d(t,"DocumentOutline",(function(){return ko})),n.d(t,"DocumentOutlineCheck",(function(){return So})),n.d(t,"VisualEditorGlobalKeyboardShortcuts",(function(){return Co})),n.d(t,"EditorGlobalKeyboardShortcuts",(function(){return To})),n.d(t,"TextEditorGlobalKeyboardShortcuts",(function(){return xo})),n.d(t,"EditorKeyboardShortcutsRegister",(function(){return Bo})),n.d(t,"EditorHistoryRedo",(function(){return Lo})),n.d(t,"EditorHistoryUndo",(function(){return Uo})),n.d(t,"EditorNotices",(function(){return Mo})),n.d(t,"EntitiesSavedStates",(function(){return $o})),n.d(t,"ErrorBoundary",(function(){return Jo})),n.d(t,"LocalAutosaveMonitor",(function(){return ni})),n.d(t,"PageAttributesCheck",(function(){return ri})),n.d(t,"PageAttributesOrder",(function(){return ci})),n.d(t,"PageAttributesParent",(function(){return pi})),n.d(t,"PageTemplate",(function(){return bi})),n.d(t,"PostAuthor",(function(){return Oi})),n.d(t,"PostAuthorCheck",(function(){return fi})),n.d(t,"PostComments",(function(){return vi})),n.d(t,"PostExcerpt",(function(){return gi})),n.d(t,"PostExcerptCheck",(function(){return ji})),n.d(t,"PostFeaturedImage",(function(){return Ti})),n.d(t,"PostFeaturedImageCheck",(function(){return _i})),n.d(t,"PostFormat",(function(){return Ri})),n.d(t,"PostFormatCheck",(function(){return xi})),n.d(t,"PostLastRevision",(function(){return Di})),n.d(t,"PostLastRevisionCheck",(function(){return Ii})),n.d(t,"PostLockedModal",(function(){return Vi})),n.d(t,"PostPendingStatus",(function(){return Hi})),n.d(t,"PostPendingStatusCheck",(function(){return zi})),n.d(t,"PostPingbacks",(function(){return Wi})),n.d(t,"PostPreviewButton",(function(){return Ui})),n.d(t,"PostPublishButton",(function(){return Qi})),n.d(t,"PostPublishButtonLabel",(function(){return Gi})),n.d(t,"PostPublishPanel",(function(){return wc})),n.d(t,"PostSavedState",(function(){return Ac})),n.d(t,"PostSchedule",(function(){return tc})),n.d(t,"PostScheduleCheck",(function(){return Ic})),n.d(t,"PostScheduleLabel",(function(){return nc})),n.d(t,"PostSlug",(function(){return Uc})),n.d(t,"PostSlugCheck",(function(){return Dc})),n.d(t,"PostSticky",(function(){return Mc})),n.d(t,"PostStickyCheck",(function(){return Fc})),n.d(t,"PostSwitchToDraftButton",(function(){return Rc})),n.d(t,"PostTaxonomies",(function(){return qc})),n.d(t,"PostTaxonomiesCheck",(function(){return Qc})),n.d(t,"PostTextEditor",(function(){return Xc})),n.d(t,"PostTitle",(function(){return ra})),n.d(t,"PostTrash",(function(){return oa})),n.d(t,"PostTrashCheck",(function(){return ia})),n.d(t,"PostTypeSupportCheck",(function(){return oi})),n.d(t,"PostVisibility",(function(){return Zi})),n.d(t,"PostVisibilityLabel",(function(){return ec})),n.d(t,"PostVisibilityCheck",(function(){return ca})),n.d(t,"TableOfContents",(function(){return pa})),n.d(t,"UnsavedChangesWarning",(function(){return ba})),n.d(t,"WordCount",(function(){return ua})),n.d(t,"EditorProvider",(function(){return Ta})),n.d(t,"ServerSideRender",(function(){return Ba.a})),n.d(t,"RichText",(function(){return Ia})),n.d(t,"Autocomplete",(function(){return Da})),n.d(t,"AlignmentToolbar",(function(){return La})),n.d(t,"BlockAlignmentToolbar",(function(){return Na})),n.d(t,"BlockControls",(function(){return Ua})),n.d(t,"BlockEdit",(function(){return Fa})),n.d(t,"BlockEditorKeyboardShortcuts",(function(){return Ma})),n.d(t,"BlockFormatControls",(function(){return Va})),n.d(t,"BlockIcon",(function(){return za})),n.d(t,"BlockInspector",(function(){return Ha})),n.d(t,"BlockList",(function(){return Wa})),n.d(t,"BlockMover",(function(){return Ga})),n.d(t,"BlockNavigationDropdown",(function(){return Ka})),n.d(t,"BlockSelectionClearer",(function(){return qa})),n.d(t,"BlockSettingsMenu",(function(){return Qa})),n.d(t,"BlockTitle",(function(){return $a})),n.d(t,"BlockToolbar",(function(){return Ya})),n.d(t,"ColorPalette",(function(){return Xa})),n.d(t,"ContrastChecker",(function(){return Ja})),n.d(t,"CopyHandler",(function(){return Za})),n.d(t,"DefaultBlockAppender",(function(){return es})),n.d(t,"FontSizePicker",(function(){return ts})),n.d(t,"Inserter",(function(){return ns})),n.d(t,"InnerBlocks",(function(){return rs})),n.d(t,"InspectorAdvancedControls",(function(){return os})),n.d(t,"InspectorControls",(function(){return is})),n.d(t,"PanelColorSettings",(function(){return cs})),n.d(t,"PlainText",(function(){return as})),n.d(t,"RichTextShortcut",(function(){return ss})),n.d(t,"RichTextToolbarButton",(function(){return us})),n.d(t,"__unstableRichTextInputEvent",(function(){return ls})),n.d(t,"MediaPlaceholder",(function(){return ds})),n.d(t,"MediaUpload",(function(){return ps})),n.d(t,"MediaUploadCheck",(function(){return bs})),n.d(t,"MultiSelectScrollIntoView",(function(){return fs})),n.d(t,"NavigableToolbar",(function(){return hs})),n.d(t,"ObserveTyping",(function(){return ms})),n.d(t,"PreserveScrollInReorder",(function(){return Os})),n.d(t,"SkipToSelectedBlock",(function(){return vs})),n.d(t,"URLInput",(function(){return gs})),n.d(t,"URLInputButton",(function(){return js})),n.d(t,"URLPopover",(function(){return ys})),n.d(t,"Warning",(function(){return _s})),n.d(t,"WritingFlow",(function(){return Es})),n.d(t,"createCustomColorsHOC",(function(){return ks})),n.d(t,"getColorClassName",(function(){return Ss})),n.d(t,"getColorObjectByAttributeValues",(function(){return Ps})),n.d(t,"getColorObjectByColorValue",(function(){return ws})),n.d(t,"getFontSize",(function(){return Cs})),n.d(t,"getFontSizeClass",(function(){return Ts})),n.d(t,"withColorContext",(function(){return xs})),n.d(t,"withColors",(function(){return Bs})),n.d(t,"withFontSizes",(function(){return Rs})),n.d(t,"mediaUpload",(function(){return va})),n.d(t,"cleanForSlug",(function(){return kt})),n.d(t,"storeConfig",(function(){return $r})),n.d(t,"transformStyles",(function(){return i.transformStyles}));var r={};n.r(r),n.d(r,"setupEditor",(function(){return ce})),n.d(r,"__experimentalTearDownEditor",(function(){return ae})),n.d(r,"resetPost",(function(){return se})),n.d(r,"resetAutosave",(function(){return ue})),n.d(r,"__experimentalRequestPostUpdateStart",(function(){return le})),n.d(r,"__experimentalRequestPostUpdateFinish",(function(){return de})),n.d(r,"updatePost",(function(){return pe})),n.d(r,"setupEditorState",(function(){return be})),n.d(r,"editPost",(function(){return fe})),n.d(r,"__experimentalOptimisticUpdatePost",(function(){return he})),n.d(r,"savePost",(function(){return me})),n.d(r,"refreshPost",(function(){return Oe})),n.d(r,"trashPost",(function(){return ve})),n.d(r,"autosave",(function(){return ge})),n.d(r,"__experimentalLocalAutosave",(function(){return je})),n.d(r,"redo",(function(){return ye})),n.d(r,"undo",(function(){return _e})),n.d(r,"createUndoLevel",(function(){return Ee})),n.d(r,"updatePostLock",(function(){return ke})),n.d(r,"__experimentalFetchReusableBlocks",(function(){return Se})),n.d(r,"__experimentalReceiveReusableBlocks",(function(){return Pe})),n.d(r,"__experimentalSaveReusableBlock",(function(){return we})),n.d(r,"__experimentalDeleteReusableBlock",(function(){return Ce})),n.d(r,"__experimentalUpdateReusableBlock",(function(){return Te})),n.d(r,"__experimentalConvertBlockToStatic",(function(){return xe})),n.d(r,"__experimentalConvertBlockToReusable",(function(){return Be})),n.d(r,"enablePublishSidebar",(function(){return Re})),n.d(r,"disablePublishSidebar",(function(){return Ae})),n.d(r,"lockPostSaving",(function(){return Ie})),n.d(r,"unlockPostSaving",(function(){return De})),n.d(r,"lockPostAutosaving",(function(){return Le})),n.d(r,"unlockPostAutosaving",(function(){return Ne})),n.d(r,"resetEditorBlocks",(function(){return Ue})),n.d(r,"updateEditorSettings",(function(){return Fe})),n.d(r,"resetBlocks",(function(){return Ve})),n.d(r,"receiveBlocks",(function(){return ze})),n.d(r,"updateBlock",(function(){return He})),n.d(r,"updateBlockAttributes",(function(){return We})),n.d(r,"selectBlock",(function(){return Ge})),n.d(r,"startMultiSelect",(function(){return Ke})),n.d(r,"stopMultiSelect",(function(){return qe})),n.d(r,"multiSelect",(function(){return Qe})),n.d(r,"clearSelectedBlock",(function(){return $e})),n.d(r,"toggleSelection",(function(){return Ye})),n.d(r,"replaceBlocks",(function(){return Xe})),n.d(r,"replaceBlock",(function(){return Je})),n.d(r,"moveBlocksDown",(function(){return Ze})),n.d(r,"moveBlocksUp",(function(){return et})),n.d(r,"moveBlockToPosition",(function(){return tt})),n.d(r,"insertBlock",(function(){return nt})),n.d(r,"insertBlocks",(function(){return rt})),n.d(r,"showInsertionPoint",(function(){return ot})),n.d(r,"hideInsertionPoint",(function(){return it})),n.d(r,"setTemplateValidity",(function(){return ct})),n.d(r,"synchronizeTemplate",(function(){return at})),n.d(r,"mergeBlocks",(function(){return st})),n.d(r,"removeBlocks",(function(){return ut})),n.d(r,"removeBlock",(function(){return lt})),n.d(r,"toggleBlockMode",(function(){return dt})),n.d(r,"startTyping",(function(){return pt})),n.d(r,"stopTyping",(function(){return bt})),n.d(r,"enterFormattedText",(function(){return ft})),n.d(r,"exitFormattedText",(function(){return ht})),n.d(r,"insertDefaultBlock",(function(){return mt})),n.d(r,"updateBlockListSettings",(function(){return Ot}));var o={};n.r(o),n.d(o,"hasEditorUndo",(function(){return Tt})),n.d(o,"hasEditorRedo",(function(){return xt})),n.d(o,"isEditedPostNew",(function(){return Bt})),n.d(o,"hasChangedContent",(function(){return Rt})),n.d(o,"isEditedPostDirty",(function(){return At})),n.d(o,"hasNonPostEntityChanges",(function(){return It})),n.d(o,"isCleanNewPost",(function(){return Dt})),n.d(o,"getCurrentPost",(function(){return Lt})),n.d(o,"getCurrentPostType",(function(){return Nt})),n.d(o,"getCurrentPostId",(function(){return Ut})),n.d(o,"getCurrentPostRevisionsCount",(function(){return Ft})),n.d(o,"getCurrentPostLastRevisionId",(function(){return Mt})),n.d(o,"getPostEdits",(function(){return Vt})),n.d(o,"getReferenceByDistinctEdits",(function(){return zt})),n.d(o,"getCurrentPostAttribute",(function(){return Ht})),n.d(o,"getEditedPostAttribute",(function(){return Wt})),n.d(o,"getAutosaveAttribute",(function(){return Gt})),n.d(o,"getEditedPostVisibility",(function(){return Kt})),n.d(o,"isCurrentPostPending",(function(){return qt})),n.d(o,"isCurrentPostPublished",(function(){return Qt})),n.d(o,"isCurrentPostScheduled",(function(){return $t})),n.d(o,"isEditedPostPublishable",(function(){return Yt})),n.d(o,"isEditedPostSaveable",(function(){return Xt})),n.d(o,"isEditedPostEmpty",(function(){return Jt})),n.d(o,"isEditedPostAutosaveable",(function(){return Zt})),n.d(o,"getAutosave",(function(){return en})),n.d(o,"hasAutosave",(function(){return tn})),n.d(o,"isEditedPostBeingScheduled",(function(){return nn})),n.d(o,"isEditedPostDateFloating",(function(){return rn})),n.d(o,"isSavingPost",(function(){return on})),n.d(o,"didPostSaveRequestSucceed",(function(){return cn})),n.d(o,"didPostSaveRequestFail",(function(){return an})),n.d(o,"isAutosavingPost",(function(){return sn})),n.d(o,"isPreviewingPost",(function(){return un})),n.d(o,"getEditedPostPreviewLink",(function(){return ln})),n.d(o,"getSuggestedPostFormat",(function(){return dn})),n.d(o,"getBlocksForSerialization",(function(){return pn})),n.d(o,"getEditedPostContent",(function(){return bn})),n.d(o,"__experimentalGetReusableBlock",(function(){return fn})),n.d(o,"__experimentalIsSavingReusableBlock",(function(){return hn})),n.d(o,"__experimentalIsFetchingReusableBlock",(function(){return mn})),n.d(o,"__experimentalGetReusableBlocks",(function(){return On})),n.d(o,"getStateBeforeOptimisticTransaction",(function(){return vn})),n.d(o,"isPublishingPost",(function(){return gn})),n.d(o,"isPermalinkEditable",(function(){return jn})),n.d(o,"getPermalink",(function(){return yn})),n.d(o,"getEditedPostSlug",(function(){return _n})),n.d(o,"getPermalinkParts",(function(){return En})),n.d(o,"inSomeHistory",(function(){return kn})),n.d(o,"isPostLocked",(function(){return Sn})),n.d(o,"isPostSavingLocked",(function(){return Pn})),n.d(o,"isPostAutosavingLocked",(function(){return wn})),n.d(o,"isPostLockTakeover",(function(){return Cn})),n.d(o,"getPostLockUser",(function(){return Tn})),n.d(o,"getActivePostLock",(function(){return xn})),n.d(o,"canUserUseUnfilteredHTML",(function(){return Bn})),n.d(o,"isPublishSidebarEnabled",(function(){return Rn})),n.d(o,"getEditorBlocks",(function(){return An})),n.d(o,"getEditorSelectionStart",(function(){return In})),n.d(o,"getEditorSelectionEnd",(function(){return Dn})),n.d(o,"__unstableIsEditorReady",(function(){return Ln})),n.d(o,"getEditorSettings",(function(){return Nn})),n.d(o,"getBlockName",(function(){return Fn})),n.d(o,"isBlockValid",(function(){return Mn})),n.d(o,"getBlockAttributes",(function(){return Vn})),n.d(o,"getBlock",(function(){return zn})),n.d(o,"getBlocks",(function(){return Hn})),n.d(o,"__unstableGetBlockWithoutInnerBlocks",(function(){return Wn})),n.d(o,"getClientIdsOfDescendants",(function(){return Gn})),n.d(o,"getClientIdsWithDescendants",(function(){return Kn})),n.d(o,"getGlobalBlockCount",(function(){return qn})),n.d(o,"getBlocksByClientId",(function(){return Qn})),n.d(o,"getBlockCount",(function(){return $n})),n.d(o,"getBlockSelectionStart",(function(){return Yn})),n.d(o,"getBlockSelectionEnd",(function(){return Xn})),n.d(o,"getSelectedBlockCount",(function(){return Jn})),n.d(o,"hasSelectedBlock",(function(){return Zn})),n.d(o,"getSelectedBlockClientId",(function(){return er})),n.d(o,"getSelectedBlock",(function(){return tr})),n.d(o,"getBlockRootClientId",(function(){return nr})),n.d(o,"getBlockHierarchyRootClientId",(function(){return rr})),n.d(o,"getAdjacentBlockClientId",(function(){return or})),n.d(o,"getPreviousBlockClientId",(function(){return ir})),n.d(o,"getNextBlockClientId",(function(){return cr})),n.d(o,"getSelectedBlocksInitialCaretPosition",(function(){return ar})),n.d(o,"getMultiSelectedBlockClientIds",(function(){return sr})),n.d(o,"getMultiSelectedBlocks",(function(){return ur})),n.d(o,"getFirstMultiSelectedBlockClientId",(function(){return lr})),n.d(o,"getLastMultiSelectedBlockClientId",(function(){return dr})),n.d(o,"isFirstMultiSelectedBlock",(function(){return pr})),n.d(o,"isBlockMultiSelected",(function(){return br})),n.d(o,"isAncestorMultiSelected",(function(){return fr})),n.d(o,"getMultiSelectedBlocksStartClientId",(function(){return hr})),n.d(o,"getMultiSelectedBlocksEndClientId",(function(){return mr})),n.d(o,"getBlockOrder",(function(){return Or})),n.d(o,"getBlockIndex",(function(){return vr})),n.d(o,"isBlockSelected",(function(){return gr})),n.d(o,"hasSelectedInnerBlock",(function(){return jr})),n.d(o,"isBlockWithinSelection",(function(){return yr})),n.d(o,"hasMultiSelection",(function(){return _r})),n.d(o,"isMultiSelecting",(function(){return Er})),n.d(o,"isSelectionEnabled",(function(){return kr})),n.d(o,"getBlockMode",(function(){return Sr})),n.d(o,"isTyping",(function(){return Pr})),n.d(o,"isCaretWithinFormattedText",(function(){return wr})),n.d(o,"getBlockInsertionPoint",(function(){return Cr})),n.d(o,"isBlockInsertionPointVisible",(function(){return Tr})),n.d(o,"isValidTemplate",(function(){return xr})),n.d(o,"getTemplate",(function(){return Br})),n.d(o,"getTemplateLock",(function(){return Rr})),n.d(o,"canInsertBlockType",(function(){return Ar})),n.d(o,"getInserterItems",(function(){return Ir})),n.d(o,"hasInserterItems",(function(){return Dr})),n.d(o,"getBlockListSettings",(function(){return Lr}));var i=n(6),c=n(11),a=n(100),s=n(53),u=(n(101),n(25)),l=(n(89),n(5)),d=n(4),p=n(32),b=n(40),f=n(139),h=n.n(f),m=n(2);function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_REUSABLE_BLOCKS":return _(_({},e),Object(m.keyBy)(t.results,"id"));case"UPDATE_REUSABLE_BLOCK":var n=t.id,r=t.changes;return _(_({},e),{},Object(l.a)({},n,_(_({},e[n]),r)));case"SAVE_REUSABLE_BLOCK_SUCCESS":var o=t.id,i=t.updatedId;if(o===i)return e;var c=e[o];return _(_({},Object(m.omit)(e,o)),{},Object(l.a)({},i,_(_({},c),{},{id:i})));case"REMOVE_REUSABLE_BLOCK":var a=t.id;return Object(m.omit)(e,a)}return e},isFetching:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"FETCH_REUSABLE_BLOCKS":var n=t.id;return n?_(_({},e),{},Object(l.a)({},n,!0)):e;case"FETCH_REUSABLE_BLOCKS_SUCCESS":case"FETCH_REUSABLE_BLOCKS_FAILURE":var r=t.id;return Object(m.omit)(e,r)}return e},isSaving:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SAVE_REUSABLE_BLOCK":return _(_({},e),{},Object(l.a)({},t.id,!0));case"SAVE_REUSABLE_BLOCK_SUCCESS":case"SAVE_REUSABLE_BLOCK_FAILURE":var n=t.id;return Object(m.omit)(e,n)}return e}});var S=h()(Object(d.combineReducers)({postId:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SETUP_EDITOR_STATE":case"RESET_POST":case"UPDATE_POST":return t.post.id}return e},postType:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SETUP_EDITOR_STATE":case"RESET_POST":case"UPDATE_POST":return t.post.type}return e},preferences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ENABLE_PUBLISH_SIDEBAR":return _(_({},e),{},{isPublishSidebarEnabled:!0});case"DISABLE_PUBLISH_SIDEBAR":return _(_({},e),{},{isPublishSidebarEnabled:!1})}return e},saving:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REQUEST_POST_UPDATE_START":case"REQUEST_POST_UPDATE_FINISH":return{pending:"REQUEST_POST_UPDATE_START"===t.type,options:t.options||{}}}return e},postLock:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isLocked:!1},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_POST_LOCK":return t.lock}return e},reusableBlocks:k,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 _(_({},e),{},{isValid:t.isValid})}return e},postSavingLock:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"LOCK_POST_SAVING":return _(_({},e),{},Object(l.a)({},t.lockName,!0));case"UNLOCK_POST_SAVING":return Object(m.omit)(e,t.lockName)}return e},isReady:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SETUP_EDITOR_STATE":return!0;case"TEAR_DOWN_EDITOR":return!1}return e},editorSettings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:j,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_EDITOR_SETTINGS":return _(_({},e),t.settings)}return e},postAutosavingLock:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"LOCK_POST_AUTOSAVING":return _(_({},e),{},Object(l.a)({},t.lockName,!0));case"UNLOCK_POST_AUTOSAVING":return Object(m.omit)(e,t.lockName)}return e}})),P=n(113),w=n.n(P),C=n(24),T=n.n(C),x=n(47),B=n(45),R=n.n(B),A=n(1),I=n(18),D=n(35),L=n.n(D),N=new Set(["meta"]),U="core/editor",F=/%(?:postname|pagename)%/,M=["title","excerpt","content"];function V(e){var t=e.previousPost,n=e.post,r=e.postType;if(Object(m.get)(e.options,["isAutosave"]))return[];var o,i=["publish","private","future"],c=Object(m.includes)(i,t.status),a=Object(m.includes)(i,n.status),s=Object(m.get)(r,["viewable"],!1);if(c||a?c&&!a?(o=r.labels.item_reverted_to_draft,s=!1):o=!c&&a?{publish:r.labels.item_published,private:r.labels.item_published_privately,future:r.labels.item_scheduled}[n.status]:r.labels.item_updated:o=null,o){var u=[];return s&&u.push({label:r.labels.view_item,url:n.link}),[o,{id:"SAVE_POST_NOTICE_ID",type:"snackbar",actions:u}]}return[]}function z(e){var t=e.post,n=e.edits,r=e.error;if(r&&"rest_autosave_no_changes"===r.code)return[];var o=["publish","private","future"],i=-1!==o.indexOf(t.status),c={publish:Object(A.__)("Publishing failed."),private:Object(A.__)("Publishing failed."),future:Object(A.__)("Scheduling failed.")},a=i||-1===o.indexOf(n.status)?Object(A.__)("Updating failed."):c[n.status];return r.message&&!/<\/?[^>]*>/.test(r.message)&&(a=[a,r.message].join(" ")),[a,{id:"SAVE_POST_NOTICE_ID"}]}var H=n(60),W=n.n(H),G=n(105),K=W()((function(e){1===e.length&&Object(c.isUnmodifiedDefaultBlock)(e[0])&&(e=[]);var t=Object(c.serialize)(e);return 1===e.length&&e[0].name===Object(c.getFreeformContentHandlerName)()&&(t=Object(G.removep)(t)),t}),{maxSize:1});function q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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 Q(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return{type:"REQUEST_POST_UPDATE_START",options:e}}function de(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:"REQUEST_POST_UPDATE_FINISH",options:e}}function pe(e){return{type:"UPDATE_POST",edits:e}}function be(e){return{type:"SETUP_EDITOR_STATE",post:e}}function fe(e,t){var n,r,o;return T.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,Object(p.select)(U,"getCurrentPost");case 2:return n=i.sent,r=n.id,o=n.type,i.next=7,Object(p.dispatch)("core","editEntityRecord","postType",o,r,e,t);case 7:case"end":return i.stop()}}),X)}function he(e){return Q(Q({},pe(e)),{},{optimist:{id:"post-update"}})}function me(){var e,t,n,r,o,i,c,a=arguments;return T.a.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return e=a.length>0&&void 0!==a[0]?a[0]:{},s.next=3,Object(p.select)(U,"isEditedPostSaveable");case 3:if(s.sent){s.next=5;break}return s.abrupt("return");case 5:return s.next=7,Object(p.select)(U,"getEditedPostContent");case 7:if(s.t0=s.sent,t={content:s.t0},e.isAutosave){s.next=12;break}return s.next=12,Object(p.dispatch)(U,"editPost",t,{undoIgnore:!0});case 12:return s.next=14,le(e);case 14:return s.next=16,Object(p.select)(U,"getCurrentPost");case 16:return n=s.sent,s.t1=Q,s.t2=Q,s.t3={id:n.id},s.next=22,Object(p.select)("core","getEntityRecordNonTransientEdits","postType",n.type,n.id);case 22:return s.t4=s.sent,s.t5=(0,s.t2)(s.t3,s.t4),s.t6=t,t=(0,s.t1)(s.t5,s.t6),s.next=28,Object(p.dispatch)("core","saveEntityRecord","postType",n.type,t,e);case 28:return s.next=30,de(e);case 30:return s.next=32,Object(p.select)("core","getLastEntitySaveError","postType",n.type,n.id);case 32:if(!(r=s.sent)){s.next=40;break}if(!(o=z({post:n,edits:t,error:r})).length){s.next=38;break}return s.next=38,p.dispatch.apply(void 0,["core/notices","createErrorNotice"].concat(Object(I.a)(o)));case 38:s.next=58;break;case 40:return s.next=42,Object(p.select)(U,"getCurrentPost");case 42:return i=s.sent,s.t7=V,s.t8=n,s.t9=i,s.next=48,Object(p.select)("core","getPostType",i.type);case 48:if(s.t10=s.sent,s.t11=e,s.t12={previousPost:s.t8,post:s.t9,postType:s.t10,options:s.t11},!(c=(0,s.t7)(s.t12)).length){s.next=55;break}return s.next=55,p.dispatch.apply(void 0,["core/notices","createSuccessNotice"].concat(Object(I.a)(c)));case 55:if(e.isAutosave){s.next=58;break}return s.next=58,Object(p.dispatch)("core/block-editor","__unstableMarkLastChangeAsPersistent");case 58:case"end":return s.stop()}}),J)}function Oe(){var e,t,n,r;return T.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,Object(p.select)(U,"getCurrentPost");case 2:return e=o.sent,o.next=5,Object(p.select)(U,"getCurrentPostType");case 5:return t=o.sent,o.next=8,Object(p.select)("core","getPostType",t);case 8:return n=o.sent,o.next=11,Object(p.apiFetch)({path:"/wp/v2/".concat(n.rest_base,"/").concat(e.id)+"?context=edit&_timestamp=".concat(Date.now())});case 11:return r=o.sent,o.next=14,Object(p.dispatch)(U,"resetPost",r);case 14:case"end":return o.stop()}}),Z)}function ve(){var e,t,n;return T.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Object(p.select)(U,"getCurrentPostType");case 2:return e=r.sent,r.next=5,Object(p.select)("core","getPostType",e);case 5:return t=r.sent,r.next=8,Object(p.dispatch)("core/notices","removeNotice","TRASH_POST_NOTICE_ID");case 8:return r.prev=8,r.next=11,Object(p.select)(U,"getCurrentPost");case 11:return n=r.sent,r.next=14,Object(p.apiFetch)({path:"/wp/v2/".concat(t.rest_base,"/").concat(n.id),method:"DELETE"});case 14:return r.next=16,Object(p.dispatch)(U,"savePost");case 16:r.next=22;break;case 18:return r.prev=18,r.t0=r.catch(8),r.next=22,p.dispatch.apply(void 0,["core/notices","createErrorNotice"].concat(Object(I.a)([(o={error:r.t0}).error.message&&"unknown_error"!==o.error.code?o.error.message:Object(A.__)("Trashing failed"),{id:"TRASH_POST_NOTICE_ID"}])));case 22:case"end":return r.stop()}var o}),ee,null,[[8,18]])}function ge(e){return T.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(p.dispatch)(U,"savePost",Q({isAutosave:!0},e));case 2:case"end":return t.stop()}}),te)}function je(){var e,t,n,r,o;return T.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,Object(p.select)(U,"getCurrentPost");case 2:return e=i.sent,i.next=5,Object(p.select)(U,"isEditedPostNew");case 5:return t=i.sent,i.next=8,Object(p.select)(U,"getEditedPostAttribute","title");case 8:return n=i.sent,i.next=11,Object(p.select)(U,"getEditedPostAttribute","content");case 11:return r=i.sent,i.next=14,Object(p.select)(U,"getEditedPostAttribute","excerpt");case 14:return o=i.sent,i.next=17,{type:"LOCAL_AUTOSAVE_SET",postId:e.id,isPostNew:t,title:n,content:r,excerpt:o};case 17:case"end":return i.stop()}}),ne)}function ye(){return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(p.dispatch)("core","redo");case 2:case"end":return e.stop()}}),re)}function _e(){return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(p.dispatch)("core","undo");case 2:case"end":return e.stop()}}),oe)}function Ee(){return{type:"CREATE_UNDO_LEVEL"}}function ke(e){return{type:"UPDATE_POST_LOCK",lock:e}}function Se(e){return{type:"FETCH_REUSABLE_BLOCKS",id:e}}function Pe(e){return{type:"RECEIVE_REUSABLE_BLOCKS",results:e}}function we(e){return{type:"SAVE_REUSABLE_BLOCK",id:e}}function Ce(e){return{type:"DELETE_REUSABLE_BLOCK",id:e}}function Te(e,t){return{type:"UPDATE_REUSABLE_BLOCK",id:e,changes:t}}function xe(e){return{type:"CONVERT_BLOCK_TO_STATIC",clientId:e}}function Be(e){return{type:"CONVERT_BLOCK_TO_REUSABLE",clientIds:Object(m.castArray)(e)}}function Re(){return{type:"ENABLE_PUBLISH_SIDEBAR"}}function Ae(){return{type:"DISABLE_PUBLISH_SIDEBAR"}}function Ie(e){return{type:"LOCK_POST_SAVING",lockName:e}}function De(e){return{type:"UNLOCK_POST_SAVING",lockName:e}}function Le(e){return{type:"LOCK_POST_AUTOSAVING",lockName:e}}function Ne(e){return{type:"UNLOCK_POST_AUTOSAVING",lockName:e}}function Ue(e){var t,n,r,o,i,c,a,s,u=arguments;return T.a.wrap((function(l){for(;;)switch(l.prev=l.next){case 0:if(t=u.length>1&&void 0!==u[1]?u[1]:{},n=t.__unstableShouldCreateUndoLevel,r=t.selectionStart,o=t.selectionEnd,i={blocks:e,selectionStart:r,selectionEnd:o},!1===n){l.next=19;break}return l.next=6,Object(p.select)(U,"getCurrentPost");case 6:return c=l.sent,a=c.id,s=c.type,l.next=11,Object(p.syncSelect)("core","getEditedEntityRecord","postType",s,a);case 11:if(l.t0=l.sent.blocks,l.t1=i.blocks,!(l.t0===l.t1)){l.next=18;break}return l.next=17,Object(p.dispatch)("core","__unstableCreateUndoLevel","postType",s,a);case 17:return l.abrupt("return",l.sent);case 18:i.content=function(e){var t=e.blocks;return K(void 0===t?[]:t)};case 19:return l.delegateYield(fe(i),"t2",20);case 20:case"end":return l.stop()}}),ie)}function Fe(e){return{type:"UPDATE_EDITOR_SETTINGS",settings:e}}var Me=function(e){return T.a.mark((function t(){var n,r,o,i=arguments;return T.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(L()("`wp.data.dispatch( 'core/editor' )."+e+"`",{alternative:"`wp.data.dispatch( 'core/block-editor' )."+e+"`"}),n=i.length,r=new Array(n),o=0;o1)return!1;var n=t[0].name;if(n!==Object(c.getDefaultBlockName)()&&n!==Object(c.getFreeformContentHandlerName)())return!1}return!bn(e)}var Zt=Object(d.createRegistrySelector)((function(e){return function(t){if(!Xt(t))return!1;if(wn(t))return!1;var n=Nt(t),r=Ut(t),o=e("core").hasFetchedAutosaves(n,r),i=Object(m.get)(e("core").getCurrentUser(),["id"]),c=e("core").getAutosave(n,r,i);return!!o&&(!c||(!!Rt(t)||["title","excerpt"].some((function(e){return E(c[e])!==Wt(t,e)}))))}})),en=Object(d.createRegistrySelector)((function(e){return function(t){L()("`wp.data.select( 'core/editor' ).getAutosave()`",{alternative:"`wp.data.select( 'core' ).getAutosave( postType, postId, userId )`",plugin:"Gutenberg"});var n=Nt(t),r=Ut(t),o=Object(m.get)(e("core").getCurrentUser(),["id"]),i=e("core").getAutosave(n,r,o);return Object(m.mapValues)(Object(m.pick)(i,M),E)}})),tn=Object(d.createRegistrySelector)((function(e){return function(t){L()("`wp.data.select( 'core/editor' ).hasAutosave()`",{alternative:"`!! wp.data.select( 'core' ).getAutosave( postType, postId, userId )`",plugin:"Gutenberg"});var n=Nt(t),r=Ut(t),o=Object(m.get)(e("core").getCurrentUser(),["id"]);return!!e("core").getAutosave(n,r,o)}}));function nn(e){var t=Wt(e,"date"),n=new Date(Number(Object(jt.getDate)(t))-6e4);return Object(jt.isInTheFuture)(n)}function rn(e){var t=Wt(e,"date"),n=Wt(e,"modified"),r=Wt(e,"status");return("draft"===r||"auto-draft"===r||"pending"===r)&&(t===n||null===t)}var on=Object(d.createRegistrySelector)((function(e){return function(t){var n=Nt(t),r=Ut(t);return e("core").isSavingEntityRecord("postType",n,r)}})),cn=Object(d.createRegistrySelector)((function(e){return function(t){var n=Nt(t),r=Ut(t);return!e("core").getLastEntitySaveError("postType",n,r)}})),an=Object(d.createRegistrySelector)((function(e){return function(t){var n=Nt(t),r=Ut(t);return!!e("core").getLastEntitySaveError("postType",n,r)}}));function sn(e){return!!on(e)&&!!Object(m.get)(e.saving,["options","isAutosave"])}function un(e){return!!on(e)&&!!e.saving.options.isPreview}function ln(e){if(!e.saving.pending&&!on(e)){var t=Gt(e,"preview_link");t||(t=Wt(e,"link"))&&(t=Object(yt.addQueryArgs)(t,{preview:!0}));var n=Wt(e,"featured_media");return t&&n?Object(yt.addQueryArgs)(t,{_thumbnail_id:n}):t}}function dn(e){var t,n=An(e);if(n.length>2)return null;if(1===n.length&&"core/embed"===(t=n[0].name)){var r,o=null===(r=n[0].attributes)||void 0===r?void 0:r.providerNameSlug;["youtube","vimeo"].includes(o)?t="core/video":["spotify","soundcloud"].includes(o)&&(t="core/audio")}switch(2===n.length&&"core/paragraph"===n[1].name&&(t=n[0].name),t){case"core/image":return"image";case"core/quote":case"core/pullquote":return"quote";case"core/gallery":return"gallery";case"core/video":return"video";case"core/audio":return"audio";default:return null}}function pn(e){L()("`core/editor` getBlocksForSerialization selector",{plugin:"Gutenberg",alternative:"getEditorBlocks",hint:"Blocks serialization pre-processing occurs at save time"});var t=e.editor.present.blocks.value;return 1===t.length&&Object(c.isUnmodifiedDefaultBlock)(t[0])?[]:t}var bn=Object(d.createRegistrySelector)((function(e){return function(t){var n=Ut(t),r=Nt(t),o=e("core").getEditedEntityRecord("postType",r,n);if(o){if("function"==typeof o.content)return o.content(o);if(o.blocks)return K(o.blocks);if(o.content)return o.content}return""}})),fn=Object(gt.a)((function(e,t){var n=e.reusableBlocks.data[t];if(!n)return null;var r=isNaN(parseInt(t));return Pt(Pt({},n),{},{id:r?t:+t,isTemporary:r})}),(function(e,t){return[e.reusableBlocks.data[t]]}));function hn(e,t){return e.reusableBlocks.isSaving[t]||!1}function mn(e,t){return!!e.reusableBlocks.isFetching[t]}var On=Object(gt.a)((function(e){return Object(m.map)(e.reusableBlocks.data,(function(t,n){return fn(e,n)}))}),(function(e){return[e.reusableBlocks.data]}));function vn(e,t){var n=Object(m.find)(e.optimist,(function(e){return e.beforeState&&Object(m.get)(e.action,["optimist","id"])===t}));return n?n.beforeState:null}function gn(e){if(!on(e))return!1;if(!Qt(e))return!1;var t=vn(e,"post-update");return!!t&&!Qt(null,t.currentPost)}function jn(e){var t=Wt(e,"permalink_template");return F.test(t)}function yn(e){var t=En(e);if(!t)return null;var n=t.prefix,r=t.postName,o=t.suffix;return jn(e)?n+r+o:n}function _n(e){return Wt(e,"slug")||kt(Wt(e,"title"))||Ut(e)}function En(e){var t=Wt(e,"permalink_template");if(!t)return null;var n=Wt(e,"slug")||Wt(e,"generated_slug"),r=t.split(F),o=Object(vt.a)(r,2);return{prefix:o[0],postName:n,suffix:o[1]}}function kn(e,t){var n=e.optimist;return!!n&&n.some((function(e){var n=e.beforeState;return n&&t(n)}))}function Sn(e){return e.postLock.isLocked}function Pn(e){return Object.keys(e.postSavingLock).length>0}function wn(e){return Object.keys(e.postAutosavingLock).length>0}function Cn(e){return e.postLock.isTakeover}function Tn(e){return e.postLock.user}function xn(e){return e.postLock.activePostLock}function Bn(e){return Object(m.has)(Lt(e),["_links","wp:action-unfiltered-html"])}function Rn(e){return e.preferences.hasOwnProperty("isPublishSidebarEnabled")?e.preferences.isPublishSidebarEnabled:g.isPublishSidebarEnabled}function An(e){return Wt(e,"blocks")||Ct}function In(e){return Wt(e,"selectionStart")}function Dn(e){return Wt(e,"selectionEnd")}function Ln(e){return e.isReady}function Nn(e){return e.editorSettings}function Un(e){return Object(d.createRegistrySelector)((function(t){return function(n){var r;L()("`wp.data.select( 'core/editor' )."+e+"`",{alternative:"`wp.data.select( 'core/block-editor' )."+e+"`"});for(var o=arguments.length,i=new Array(o>1?o-1:0),c=1;c0&&void 0!==arguments[0]?arguments[0]:[];return e.push(Object(m.clone)(oo)),e}));var io=n(21),co=n(20),ao=n(22),so=n(23),uo=n(17);function lo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(uo.a)(e);if(t){var o=Object(uo.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(so.a)(this,n)}}var po=function(e){Object(ao.a)(n,e);var t=lo(n);function n(e){var r;return Object(io.a)(this,n),(r=t.call(this,e)).needsAutosave=!(!e.isDirty||!e.isAutosaveable),r}return Object(co.a)(n,[{key:"componentDidMount",value:function(){this.props.disableIntervalChecks||this.setAutosaveTimer()}},{key:"componentDidUpdate",value:function(e){this.props.disableIntervalChecks&&this.props.editsReference!==e.editsReference?this.props.autosave():(this.props.isDirty||!e.isDirty)&&(!this.props.isAutosaving||e.isAutosaving)?this.props.editsReference!==e.editsReference&&(this.needsAutosave=!0):this.needsAutosave=!1}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timerId)}},{key:"setAutosaveTimer",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3*this.props.interval;this.timerId=setTimeout((function(){e.autosaveTimerHandler()}),t)}},{key:"autosaveTimerHandler",value:function(){this.props.isAutosaveable?(this.needsAutosave&&(this.needsAutosave=!1,this.props.autosave()),this.setAutosaveTimer()):this.setAutosaveTimer(1e3)}},{key:"render",value:function(){return null}}]),n}(_t.Component),bo=Object(Zr.compose)([Object(d.withSelect)((function(e,t){var n=e("core").getReferenceByDistinctEdits,r=e("core/editor"),o=r.isEditedPostDirty,i=r.isEditedPostAutosaveable,c=r.isAutosavingPost,a=r.getEditorSettings,s=t.interval,u=void 0===s?a().autosaveInterval:s;return{editsReference:n(),isDirty:o(),isAutosaveable:i(),isAutosaving:c(),interval:u}})),Object(d.withDispatch)((function(e,t){return{autosave:function(){var n=t.autosave,r=void 0===n?e("core/editor").autosave:n;r()}}}))])(po),fo=n(9),ho=n.n(fo),mo=function(e){var t=e.children,n=e.isValid,r=e.level,o=e.href,i=e.onSelect;return Object(_t.createElement)("li",{className:ho()("document-outline__item","is-".concat(r.toLowerCase()),{"is-invalid":!n})},Object(_t.createElement)("a",{href:o,className:"document-outline__button",onClick:i},Object(_t.createElement)("span",{className:"document-outline__emdash","aria-hidden":"true"}),Object(_t.createElement)("strong",{className:"document-outline__level"},r),Object(_t.createElement)("span",{className:"document-outline__item-content"},t)))};function Oo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vo(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[];return Object(m.flatMap)(t,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"core/heading"===t.name?vo(vo({},t),{},{level:t.attributes.level,isEmpty:Eo(t)}):e(t.innerBlocks)}))}(n);if(a.length<1)return null;var s=1,l=document.querySelector(".editor-post-title__input"),d=i&&r&&l,p=Object(m.countBy)(a,"level")[1]>1;return Object(_t.createElement)("div",{className:"document-outline"},Object(_t.createElement)("ul",null,d&&Object(_t.createElement)(mo,{level:Object(A.__)("Title"),isValid:!0,onSelect:o,href:"#".concat(l.id),isDisabled:c},r),a.map((function(e,t){var n=e.level>s+1,r=!(e.isEmpty||n||!e.level||1===e.level&&(p||d));return s=e.level,Object(_t.createElement)(mo,{key:t,level:"H".concat(e.level),isValid:r,isDisabled:c,href:"#block-".concat(e.clientId),onSelect:o},e.isEmpty?go:Object(u.getTextContent)(Object(u.create)({html:e.attributes.content})),n&&jo,1===e.level&&p&&_o,d&&1===e.level&&!p&&yo)}))))}));var So=Object(d.withSelect)((function(e){return{blocks:e("core/block-editor").getBlocks()}}))((function(e){var t=e.blocks,n=e.children;return Object(m.filter)(t,(function(e){return"core/heading"===e.name})).length<1?null:n}));var Po=function(e){var t=e.resetBlocksOnSave,n=Object(d.useDispatch)("core/editor"),r=n.resetEditorBlocks,o=n.savePost,i=Object(d.useSelect)((function(e){var t=e("core/editor");return{isEditedPostDirty:t.isEditedPostDirty,getPostEdits:t.getPostEdits}}),[]),a=i.isEditedPostDirty,u=i.getPostEdits;return Object(s.useShortcut)("core/editor/save",(function(e){if(e.preventDefault(),a()){if(t){var n=u();if(n.content&&"string"==typeof n.content){var i=Object(c.parse)(n.content);r(i)}}o()}}),{bindGlobal:!0}),null};function wo(){var e=Object(d.useDispatch)("core/editor"),t=e.redo,n=e.undo;return Object(s.useShortcut)("core/editor/undo",(function(e){n(),e.preventDefault()}),{bindGlobal:!0}),Object(s.useShortcut)("core/editor/redo",(function(e){t(),e.preventDefault()}),{bindGlobal:!0}),Object(_t.createElement)(_t.Fragment,null,Object(_t.createElement)(i.BlockEditorKeyboardShortcuts,null),Object(_t.createElement)(Po,null))}var Co=wo;function To(){return L()("EditorGlobalKeyboardShortcuts",{alternative:"VisualEditorGlobalKeyboardShortcuts",plugin:"Gutenberg"}),Object(_t.createElement)(wo,null)}function xo(){return Object(_t.createElement)(Po,{resetBlocksOnSave:!0})}var Bo=function(){var e=Object(d.useDispatch)("core/keyboard-shortcuts").registerShortcut;return Object(_t.useEffect)((function(){e({name:"core/editor/save",category:"global",description:Object(A.__)("Save your changes."),keyCombination:{modifier:"primary",character:"s"}}),e({name:"core/editor/undo",category:"global",description:Object(A.__)("Undo your last changes."),keyCombination:{modifier:"primary",character:"z"}}),e({name:"core/editor/redo",category:"global",description:Object(A.__)("Redo your last undo."),keyCombination:{modifier:"primaryShift",character:"z"}})}),[e]),Object(_t.createElement)(i.BlockEditorKeyboardShortcuts.Register,null)},Ro=n(3),Ao=n(19),Io=n(7),Do=Object(_t.createElement)(Io.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(_t.createElement)(Io.Path,{d:"M15.6 6.5l-1.1 1 2.9 3.3H8c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.3-.5h9.2L14.5 15l1.1 1.1 4.6-4.6-4.6-5z"}));var Lo=Object(_t.forwardRef)((function(e,t){var n=Object(d.useSelect)((function(e){return e("core/editor").hasEditorRedo()}),[]),r=Object(d.useDispatch)("core/editor").redo;return Object(_t.createElement)(Ro.Button,Object(Xr.a)({},e,{ref:t,icon:Do,label:Object(A.__)("Redo"),shortcut:Ao.displayShortcut.primaryShift("z"),"aria-disabled":!n,onClick:n?r:void 0,className:"editor-history__redo"}))})),No=Object(_t.createElement)(Io.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(_t.createElement)(Io.Path,{d:"M18.3 11.7c-.6-.6-1.4-.9-2.3-.9H6.7l2.9-3.3-1.1-1-4.5 5L8.5 16l1-1-2.7-2.7H16c.5 0 .9.2 1.3.5 1 1 1 3.4 1 4.5v.3h1.5v-.2c0-1.5 0-4.3-1.5-5.7z"}));var Uo=Object(_t.forwardRef)((function(e,t){var n=Object(d.useSelect)((function(e){return e("core/editor").hasEditorUndo()}),[]),r=Object(d.useDispatch)("core/editor").undo;return Object(_t.createElement)(Ro.Button,Object(Xr.a)({},e,{ref:t,icon:No,label:Object(A.__)("Undo"),shortcut:Ao.displayShortcut.primary("z"),"aria-disabled":!n,onClick:n?r:void 0,className:"editor-history__undo"}))}));var Fo=Object(Zr.compose)([Object(d.withSelect)((function(e){return{isValid:e("core/block-editor").isValidTemplate()}})),Object(d.withDispatch)((function(e){var t=e("core/block-editor"),n=t.setTemplateValidity;return{resetTemplateValidity:function(){return n(!0)},synchronizeTemplate:t.synchronizeTemplate}}))])((function(e){var t=e.isValid,n=Object(Jr.a)(e,["isValid"]);return t?null:Object(_t.createElement)(Ro.Notice,{className:"editor-template-validation-notice",isDismissible:!1,status:"warning",actions:[{label:Object(A.__)("Keep it as is"),onClick:n.resetTemplateValidity},{label:Object(A.__)("Reset the template"),onClick:function(){window.confirm(Object(A.__)("Resetting the template may result in loss of content, do you want to continue?"))&&n.synchronizeTemplate()},isPrimary:!0}]},Object(A.__)("The content of your post doesn’t match the template assigned to your post type."))}));var Mo=Object(Zr.compose)([Object(d.withSelect)((function(e){return{notices:e("core/notices").getNotices()}})),Object(d.withDispatch)((function(e){return{onRemove:e("core/notices").removeNotice}}))])((function(e){var t=e.notices,n=e.onRemove,r=Object(m.filter)(t,{isDismissible:!0,type:"default"}),o=Object(m.filter)(t,{isDismissible:!1,type:"default"}),i=Object(m.filter)(t,{type:"snackbar"});return Object(_t.createElement)(_t.Fragment,null,Object(_t.createElement)(Ro.NoticeList,{notices:o,className:"components-editor-notices__pinned"}),Object(_t.createElement)(Ro.NoticeList,{notices:r,className:"components-editor-notices__dismissible",onRemove:n},Object(_t.createElement)(Fo,null)),Object(_t.createElement)(Ro.SnackbarList,{notices:i,className:"components-editor-notices__snackbar",onRemove:n}))})),Vo=n(157),zo=n(315),Ho=Object(_t.createElement)(Io.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(_t.createElement)(Io.Path,{d:"M7 5.5h10a.5.5 0 01.5.5v12a.5.5 0 01-.5.5H7a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM17 4H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V6a2 2 0 00-2-2zm-1 3.75H8v1.5h8v-1.5zM8 11h8v1.5H8V11zm6 3.25H8v1.5h6v-1.5z"}));function Wo(e){var t=e.record,n=e.checked,r=e.onChange,o=e.closePanel,i=t.name,c=t.kind,a=t.title,s=t.key,u=Object(d.useSelect)((function(e){var t,n=e("core").getEditedEntityRecord(c,i,s).blocks,r=void 0===n?[]:n,o=e("core/block-editor").getBlockParents(null===(t=r[0])||void 0===t?void 0:t.clientId);return o[o.length-1]}),[]),l=Object(d.useSelect)((function(e){return e("core/block-editor").getSelectedBlockClientId()===u}),[u]),p=l?Object(A.__)("Selected"):Object(A.__)("Select"),b=Object(d.useDispatch)("core/block-editor").selectBlock,f=Object(_t.useCallback)((function(){return b(u)}),[u]),h=Object(_t.useCallback)((function(){b(u),o()}),[u]);return Object(_t.createElement)(Ro.PanelRow,null,Object(_t.createElement)(Ro.CheckboxControl,{label:Object(_t.createElement)("strong",null,a||Object(A.__)("Untitled")),checked:n,onChange:r}),u?Object(_t.createElement)(_t.Fragment,null,Object(_t.createElement)(Ro.Button,{onClick:f,className:"entities-saved-states__find-entity",disabled:l},p),Object(_t.createElement)(Ro.Button,{onClick:h,className:"entities-saved-states__find-entity-small",disabled:l},p)):null)}var Go={site:zo.a,page:Ho};function Ko(e){var t=e.list,n=e.unselectedEntities,r=e.setUnselectedEntities,o=e.closePanel,i=t[0],c=Object(d.useSelect)((function(e){return e("core").getEntity(i.kind,i.name)}),[i.kind,i.name]),a=i.name,s=Go[a];return Object(_t.createElement)(Ro.PanelBody,{title:c.label,initialOpen:!0,icon:s},t.map((function(e){return Object(_t.createElement)(Wo,{key:e.key||"site",record:e,checked:!Object(m.some)(n,(function(t){return t.kind===e.kind&&t.name===e.name&&t.key===e.key})),onChange:function(t){return r(e,t)},closePanel:o})})))}var qo={wp_template_part:function(e){return Object(A._n)("template part","template parts",e)},wp_template:function(e){return Object(A._n)("template","templates",e)},post:function(e){return Object(A._n)("post","posts",e)},page:function(e){return Object(A._n)("page","pages",e)},site:function(e){return Object(A._n)("site","sites",e)}},Qo={0:Object(A.__)("There are no changes."),1:Object(A.__)("Changes have been made to your %s."),2:Object(A.__)("Changes have been made to your %1$s and %2$s."),3:Object(A.__)("Changes have been made to your %1$s, %2$s, and %3$s."),4:Object(A.__)("Changes have been made to your %1$s, %2$s, %3$s, and %4$s."),5:Object(A.__)("Changes have been made to your %1$s, %2$s, %3$s, %4$s, and %5$s.")};function $o(e){var t=e.isOpen,n=e.close,r=Object(d.useSelect)((function(e){return{dirtyEntityRecords:e("core").__experimentalGetDirtyEntityRecords()}}),[]).dirtyEntityRecords,o=Object(d.useDispatch)("core").saveEditedEntityRecord,i=Object.values(Object(m.groupBy)(r,"name")),c=[];i.forEach((function(e){qo[e[0].name]&&c.push(qo[e[0].name](e.length))}));var a=Qo[c.length]||Object(A.__)("Changes have been made to multiple entity types."),s=A.sprintf.apply(void 0,[a].concat(c)),u=Object(_t.useState)([]),l=Object(vt.a)(u,2),p=l[0],b=l[1],f=function(e,t){var n=e.kind,r=e.name,o=e.key;b(t?p.filter((function(e){return e.kind!==n||e.name!==r||e.key!==o})):[].concat(Object(I.a)(p),[{kind:n,name:r,key:o}]))},h=Object(_t.useState)(!1),O=Object(vt.a)(h,2),v=O[0],g=O[1],j=Object(_t.useCallback)((function(){return n()}),[n]);return t?Object(_t.createElement)("div",{className:"entities-saved-states__panel"},Object(_t.createElement)("div",{className:"entities-saved-states__panel-header"},Object(_t.createElement)(Ro.Button,{isPrimary:!0,disabled:r.length-p.length==0,onClick:function(){var e=r.filter((function(e){var t=e.kind,n=e.name,r=e.key;return!Object(m.some)(p,(function(e){return e.kind===t&&e.name===n&&e.key===r}))}));n(e),e.forEach((function(e){var t=e.kind,n=e.name,r=e.key;o(t,n,r)}))},className:"editor-entities-saved-states__save-button"},Object(A.__)("Save")),Object(_t.createElement)(Ro.Button,{onClick:j,icon:Vo.a,label:Object(A.__)("Close panel")})),Object(_t.createElement)("div",{className:"entities-saved-states__text-prompt"},Object(_t.createElement)("strong",null,Object(A.__)("Are you ready to save?")),Object(_t.createElement)("p",null,s),Object(_t.createElement)("p",null,Object(_t.createElement)(Ro.Button,{onClick:function(){return g((function(e){return!e}))},isLink:!0,className:"entities-saved-states__review-changes-button"},v?Object(A.__)("Hide changes."):Object(A.__)("Review changes.")))),v&&i.map((function(e){return Object(_t.createElement)(Ko,{key:e[0].name,list:e,closePanel:j,unselectedEntities:p,setUnselectedEntities:f})}))):null}var Yo=n(15);function Xo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(uo.a)(e);if(t){var o=Object(uo.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(so.a)(this,n)}}var Jo=function(e){Object(ao.a)(n,e);var t=Xo(n);function n(){var e;return Object(io.a)(this,n),(e=t.apply(this,arguments)).reboot=e.reboot.bind(Object(Yo.a)(e)),e.getContent=e.getContent.bind(Object(Yo.a)(e)),e.state={error:null},e}return Object(co.a)(n,[{key:"componentDidCatch",value:function(e){this.setState({error:e})}},{key:"reboot",value:function(){this.props.onError()}},{key:"getContent",value:function(){try{return Object(d.select)("core/editor").getEditedPostContent()}catch(e){}}},{key:"render",value:function(){var e=this.state.error;return e?Object(_t.createElement)(i.Warning,{className:"editor-error-boundary",actions:[Object(_t.createElement)(Ro.Button,{key:"recovery",onClick:this.reboot,isSecondary:!0},Object(A.__)("Attempt Recovery")),Object(_t.createElement)(Ro.ClipboardButton,{key:"copy-post",text:this.getContent,isSecondary:!0},Object(A.__)("Copy Post Text")),Object(_t.createElement)(Ro.ClipboardButton,{key:"copy-error",text:e.stack,isSecondary:!0},Object(A.__)("Copy Error"))]},Object(A.__)("The editor has encountered an unexpected error.")):this.props.children}}]),n}(_t.Component),Zo=window.requestIdleCallback?window.requestIdleCallback:window.requestAnimationFrame,ei=Object(m.once)((function(){try{return window.sessionStorage.setItem("__wpEditorTestSessionStorage",""),window.sessionStorage.removeItem("__wpEditorTestSessionStorage"),!0}catch(e){return!1}}));function ti(){var e=Object(d.useSelect)((function(e){return{postId:e("core/editor").getCurrentPostId(),isEditedPostNew:e("core/editor").isEditedPostNew(),getEditedPostAttribute:e("core/editor").getEditedPostAttribute,hasRemoteAutosave:!!e("core/editor").getEditorSettings().autosave}}),[]),t=e.postId,n=e.isEditedPostNew,r=e.getEditedPostAttribute,o=e.hasRemoteAutosave,i=Object(d.useDispatch)("core/notices"),a=i.createWarningNotice,s=i.removeNotice,u=Object(d.useDispatch)("core/editor"),l=u.editPost,p=u.resetEditorBlocks;Object(_t.useEffect)((function(){var e=function(e,t){return window.sessionStorage.getItem(Wr(e,t))}(t,n);if(e){try{e=JSON.parse(e)}catch(e){return}var i=e,u={title:i.post_title,content:i.content,excerpt:i.excerpt};if(Object.keys(u).some((function(e){return u[e]!==r(e)}))){if(!o){var d=Object(m.uniqueId)("wpEditorAutosaveRestore");a(Object(A.__)("The backup of this post in your browser is different from the version below."),{id:d,actions:[{label:Object(A.__)("Restore the backup"),onClick:function(){l(Object(m.omit)(u,["content"])),p(Object(c.parse)(u.content)),s(d)}}]})}}else Gr(t,n)}}),[n,t])}var ni=Object(Zr.ifCondition)(ei)((function(){var e=Object(d.useDispatch)("core/editor").__experimentalLocalAutosave,t=Object(_t.useCallback)((function(){Zo(e)}),[]);ti(),function(){var e=Object(d.useSelect)((function(e){return{postId:e("core/editor").getCurrentPostId(),isEditedPostNew:e("core/editor").isEditedPostNew(),isDirty:e("core/editor").isEditedPostDirty(),isAutosaving:e("core/editor").isAutosavingPost(),didError:e("core/editor").didPostSaveRequestFail()}}),[]),t=e.postId,n=e.isEditedPostNew,r=e.isDirty,o=e.isAutosaving,i=e.didError,c=Object(_t.useRef)(r),a=Object(_t.useRef)(o);Object(_t.useEffect)((function(){!i&&(a.current&&!o||c.current&&!r)&&Gr(t,n),c.current=r,a.current=o}),[r,o,i]);var s=Object(Zr.usePrevious)(n),u=Object(Zr.usePrevious)(t);Object(_t.useEffect)((function(){u===t&&s&&!n&&Gr(t,!0)}),[n,t])}();var n=Object(d.useSelect)((function(e){return{localAutosaveInterval:e("core/editor").getEditorSettings().__experimentalLocalAutosaveInterval}}),[]).localAutosaveInterval;return Object(_t.createElement)(bo,{interval:n,autosave:t})}));var ri=Object(d.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getEditorSettings,o=e("core").getPostType,i=r().availableTemplates;return{postType:o(n("type")),availableTemplates:i}}))((function(e){var t=e.availableTemplates,n=e.postType,r=e.children;return!Object(m.get)(n,["supports","page-attributes"],!1)&&Object(m.isEmpty)(t)?null:r}));var oi=Object(d.withSelect)((function(e){var t=e("core/editor").getEditedPostAttribute;return{postType:(0,e("core").getPostType)(t("type"))}}))((function(e){var t=e.postType,n=e.children,r=e.supportKeys,o=!0;return t&&(o=Object(m.some)(Object(m.castArray)(r),(function(e){return!!t.supports[e]}))),o?n:null})),ii=Object(Zr.withState)({orderInput:null})((function(e){var t=e.onUpdateOrder,n=e.order,r=void 0===n?0:n,o=e.orderInput,i=e.setState,c=null===o?r:o;return Object(_t.createElement)(Ro.TextControl,{className:"editor-page-attributes__order",type:"number",label:Object(A.__)("Order"),value:c,onChange:function(e){i({orderInput:e});var n=Number(e);Number.isInteger(n)&&""!==Object(m.invoke)(e,["trim"])&&t(Number(e))},size:6,onBlur:function(){i({orderInput:null})}})}));var ci=Object(Zr.compose)([Object(d.withSelect)((function(e){return{order:e("core/editor").getEditedPostAttribute("menu_order")}})),Object(d.withDispatch)((function(e){return{onUpdateOrder:function(t){e("core/editor").editPost({menu_order:t})}}}))])((function(e){return Object(_t.createElement)(oi,{supportKeys:"page-attributes"},Object(_t.createElement)(ii,e))}));function ai(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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;t1&&void 0!==arguments[1]?arguments[1]:"";r({status:e,password:t})}}})),Zr.withInstanceId])(Ji);var ec=Object(d.withSelect)((function(e){return{visibility:e("core/editor").getEditedPostVisibility()}}))((function(e){var t=e.visibility;return Object(m.find)(Yi,{value:t}).label}));var tc=Object(Zr.compose)([Object(d.withSelect)((function(e){return{date:e("core/editor").getEditedPostAttribute("date")}})),Object(d.withDispatch)((function(e){return{onUpdateDate:function(t){e("core/editor").editPost({date:t})}}}))])((function(e){var t=e.date,n=e.onUpdateDate,r=Object(jt.__experimentalGetSettings)(),o=/a(?!\\)/i.test(r.formats.time.toLowerCase().replace(/\\\\/g,"").split("").reverse().join(""));return Object(_t.createElement)(Ro.DateTimePicker,{key:"date-time-picker",currentDate:t,onChange:function(e){n(e),document.activeElement.blur()},is12Hour:o})}));var nc=Object(d.withSelect)((function(e){return{date:e("core/editor").getEditedPostAttribute("date"),isFloating:e("core/editor").isEditedPostDateFloating()}}))((function(e){var t=e.date,n=e.isFloating,r=Object(jt.__experimentalGetSettings)();return t&&!n?Object(jt.dateI18n)("".concat(r.formats.date," ").concat(r.formats.time),t):Object(A.__)("Immediately")}));function rc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(uo.a)(e);if(t){var o=Object(uo.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(so.a)(this,n)}}function oc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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 ic(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},n=this.props.taxonomy,r=ic(ic({},cc),t),o=R()({path:Object(yt.addQueryArgs)("/wp/v2/".concat(n.rest_base),r)});return o.then(lc).then((function(t){e.setState((function(e){return{availableTerms:e.availableTerms.concat(t.filter((function(t){return!Object(m.find)(e.availableTerms,(function(e){return e.id===t.id}))})))}})),e.updateSelectedTerms(e.props.terms)})),o}},{key:"updateSelectedTerms",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=t.reduce((function(t,n){var r=Object(m.find)(e.state.availableTerms,(function(e){return e.id===n}));return r&&t.push(r.name),t}),[]);this.setState({selectedTerms:n})}},{key:"findOrCreateTerm",value:function(e){var t=this,n=this.props.taxonomy,r=Object(m.escape)(e);return R()({path:"/wp/v2/".concat(n.rest_base),method:"POST",data:{name:r}}).catch((function(o){return"term_exists"===o.code?(t.addRequest=R()({path:Object(yt.addQueryArgs)("/wp/v2/".concat(n.rest_base),ic(ic({},cc),{},{search:r}))}).then(lc),t.addRequest.then((function(t){return Object(m.find)(t,(function(t){return sc(t.name,e)}))}))):Promise.reject(o)})).then(uc)}},{key:"onChange",value:function(e){var t=this,n=Object(m.uniqBy)(e,(function(e){return e.toLowerCase()}));this.setState({selectedTerms:n});var r=n.filter((function(e){return!Object(m.find)(t.state.availableTerms,(function(t){return sc(t.name,e)}))})),o=function(e,t){return e.map((function(e){return Object(m.find)(t,(function(t){return sc(t.name,e)})).id}))};if(0===r.length)return this.props.onUpdateTerms(o(n,this.state.availableTerms),this.props.taxonomy.rest_base);Promise.all(r.map(this.findOrCreateTerm)).then((function(e){var r=t.state.availableTerms.concat(e);return t.setState({availableTerms:r}),t.props.onUpdateTerms(o(n,r),t.props.taxonomy.rest_base)}))}},{key:"searchTerms",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";Object(m.invoke)(this.searchRequest,["abort"]),e.length>=3&&(this.searchRequest=this.fetchTerms({search:e}))}},{key:"render",value:function(){var e=this.props,t=e.slug,n=e.taxonomy;if(!e.hasAssignAction)return null;var r=this.state,o=r.loading,i=r.availableTerms,c=r.selectedTerms,a=i.map((function(e){return e.name})),s=Object(m.get)(n,["labels","add_new_item"],"post_tag"===t?Object(A.__)("Add new tag"):Object(A.__)("Add new Term")),u=Object(m.get)(n,["labels","singular_name"],"post_tag"===t?Object(A.__)("Tag"):Object(A.__)("Term")),l=Object(A.sprintf)(Object(A._x)("%s added","term"),u),d=Object(A.sprintf)(Object(A._x)("%s removed","term"),u),p=Object(A.sprintf)(Object(A._x)("Remove %s","term"),u);return Object(_t.createElement)(Ro.FormTokenField,{value:c,suggestions:a,onChange:this.onChange,onInputChange:this.searchTerms,maxSuggestions:20,disabled:o,label:s,messages:{added:l,removed:d,remove:p}})}}]),n}(_t.Component),pc=Object(Zr.compose)(Object(d.withSelect)((function(e,t){var n=t.slug,r=e("core/editor").getCurrentPost,o=(0,e("core").getTaxonomy)(n);return{hasCreateAction:!!o&&Object(m.get)(r(),["_links","wp:action-create-"+o.rest_base],!1),hasAssignAction:!!o&&Object(m.get)(r(),["_links","wp:action-assign-"+o.rest_base],!1),terms:o?e("core/editor").getEditedPostAttribute(o.rest_base):[],taxonomy:o}})),Object(d.withDispatch)((function(e){return{onUpdateTerms:function(t,n){e("core/editor").editPost(Object(l.a)({},n,t))}}})),Object(Ro.withFilters)("editor.PostTaxonomyType"))(dc);function bc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(uo.a)(e);if(t){var o=Object(uo.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(so.a)(this,n)}}var fc=function(){var e=[Object(A.__)("Suggestion:"),Object(_t.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(A.__)("Add tags"))];return Object(_t.createElement)(Ro.PanelBody,{initialOpen:!1,title:e},Object(_t.createElement)("p",null,Object(A.__)("Tags help users and search engines navigate your site and find your content. Add a few keywords to describe your post.")),Object(_t.createElement)(pc,{slug:"post_tag"}))},hc=function(e){Object(ao.a)(n,e);var t=bc(n);function n(e){var r;return Object(io.a)(this,n),(r=t.call(this,e)).state={hadTagsWhenOpeningThePanel:e.hasTags},r}return Object(co.a)(n,[{key:"render",value:function(){return this.state.hadTagsWhenOpeningThePanel?null:Object(_t.createElement)(fc,null)}}]),n}(_t.Component),mc=Object(Zr.compose)(Object(d.withSelect)((function(e){var t=e("core/editor").getCurrentPostType(),n=e("core").getTaxonomy("post_tag"),r=n&&e("core/editor").getEditedPostAttribute(n.rest_base);return{areTagsFetched:void 0!==n,isPostTypeSupported:n&&Object(m.some)(n.types,(function(e){return e===t})),hasTags:r&&r.length}})),Object(Zr.ifCondition)((function(e){var t=e.areTagsFetched;return e.isPostTypeSupported&&t})))(hc),Oc=function(e){var t=e.suggestedPostFormat,n=e.suggestionText,r=e.onUpdatePostFormat;return Object(_t.createElement)(Ro.Button,{isLink:!0,onClick:function(){return r(t)}},n)},vc=function(e,t){var n=Bi.filter((function(t){return Object(m.includes)(e,t.id)}));return Object(m.find)(n,(function(e){return e.id===t}))},gc=Object(Zr.compose)(Object(d.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getSuggestedPostFormat,o=Object(m.get)(e("core").getThemeSupports(),["formats"],[]);return{currentPostFormat:n("format"),suggestion:vc(o,r())}})),Object(d.withDispatch)((function(e){return{onUpdatePostFormat:function(t){e("core/editor").editPost({format:t})}}})),Object(Zr.ifCondition)((function(e){var t=e.suggestion,n=e.currentPostFormat;return t&&t.id!==n})))((function(e){var t=e.suggestion,n=e.onUpdatePostFormat,r=[Object(A.__)("Suggestion:"),Object(_t.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(A.__)("Use a post format"))];return Object(_t.createElement)(Ro.PanelBody,{initialOpen:!1,title:r},Object(_t.createElement)("p",null,Object(A.__)("Your theme uses post formats to highlight different kinds of content, like images or videos. Apply a post format to see this special styling.")),Object(_t.createElement)("p",null,Object(_t.createElement)(Oc,{onUpdatePostFormat:n,suggestedPostFormat:t.id,suggestionText:Object(A.sprintf)(Object(A.__)('Apply the "%1$s" format.'),t.caption)})))}));var jc=Object(d.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPost,r=t.isEditedPostBeingScheduled;return{hasPublishAction:Object(m.get)(n(),["_links","wp:action-publish"],!1),isBeingScheduled:r()}}))((function(e){var t,n,r=e.hasPublishAction,o=e.isBeingScheduled,i=e.children;return r?o?(t=Object(A.__)("Are you ready to schedule?"),n=Object(A.__)("Your work will be published at the specified date and time.")):(t=Object(A.__)("Are you ready to publish?"),n=Object(A.__)("Double-check your settings before publishing.")):(t=Object(A.__)("Are you ready to submit for review?"),n=Object(A.__)("When you’re ready, submit your work for review, and an Editor will be able to approve it for you.")),Object(_t.createElement)("div",{className:"editor-post-publish-panel__prepublish"},Object(_t.createElement)("div",null,Object(_t.createElement)("strong",null,t)),Object(_t.createElement)("p",null,n),r&&Object(_t.createElement)(_t.Fragment,null,Object(_t.createElement)(Ro.PanelBody,{initialOpen:!1,title:[Object(A.__)("Visibility:"),Object(_t.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(_t.createElement)(ec,null))]},Object(_t.createElement)(Zi,null)),Object(_t.createElement)(Ro.PanelBody,{initialOpen:!1,title:[Object(A.__)("Publish:"),Object(_t.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(_t.createElement)(nc,null))]},Object(_t.createElement)(tc,null))),Object(_t.createElement)(gc,null),Object(_t.createElement)(mc,null),i)})),yc=n(69);function _c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(uo.a)(e);if(t){var o=Object(uo.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(so.a)(this,n)}}var Ec=function(e){Object(ao.a)(n,e);var t=_c(n);function n(){var e;return Object(io.a)(this,n),(e=t.apply(this,arguments)).state={showCopyConfirmation:!1},e.onCopy=e.onCopy.bind(Object(Yo.a)(e)),e.onSelectInput=e.onSelectInput.bind(Object(Yo.a)(e)),e.postLink=Object(_t.createRef)(),e}return Object(co.a)(n,[{key:"componentDidMount",value:function(){this.props.focusOnMount&&this.postLink.current.focus()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.dismissCopyConfirmation)}},{key:"onCopy",value:function(){var e=this;this.setState({showCopyConfirmation:!0}),clearTimeout(this.dismissCopyConfirmation),this.dismissCopyConfirmation=setTimeout((function(){e.setState({showCopyConfirmation:!1})}),4e3)}},{key:"onSelectInput",value:function(e){e.target.select()}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.isScheduled,r=e.post,o=e.postType,i=Object(m.get)(o,["labels","singular_name"]),c=Object(m.get)(o,["labels","view_item"]),a="future"===r.status?function(e){var t=e.slug;return e.permalink_template.includes("%postname%")?e.permalink_template.replace("%postname%",t):e.permalink_template}(r):r.link,s=n?Object(_t.createElement)(_t.Fragment,null,Object(A.__)("is now scheduled. It will go live on")," ",Object(_t.createElement)(nc,null),"."):Object(A.__)("is now live.");return Object(_t.createElement)("div",{className:"post-publish-panel__postpublish"},Object(_t.createElement)(Ro.PanelBody,{className:"post-publish-panel__postpublish-header"},Object(_t.createElement)("a",{ref:this.postLink,href:a},Object(yc.decodeEntities)(r.title)||Object(A.__)("(no title)"))," ",s),Object(_t.createElement)(Ro.PanelBody,null,Object(_t.createElement)("p",{className:"post-publish-panel__postpublish-subheader"},Object(_t.createElement)("strong",null,Object(A.__)("What’s next?"))),Object(_t.createElement)(Ro.TextControl,{className:"post-publish-panel__postpublish-post-address",readOnly:!0,label:Object(A.sprintf)(Object(A.__)("%s address"),i),value:Object(yt.safeDecodeURIComponent)(a),onFocus:this.onSelectInput}),Object(_t.createElement)("div",{className:"post-publish-panel__postpublish-buttons"},!n&&Object(_t.createElement)(Ro.Button,{isSecondary:!0,href:a},c),Object(_t.createElement)(Ro.ClipboardButton,{isSecondary:!0,text:a,onCopy:this.onCopy},this.state.showCopyConfirmation?Object(A.__)("Copied!"):Object(A.__)("Copy Link")))),t)}}]),n}(_t.Component),kc=Object(d.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getCurrentPost,o=t.isCurrentPostScheduled,i=e("core").getPostType;return{post:r(),postType:i(n("type")),isScheduled:o()}}))(Ec);function Sc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(uo.a)(e);if(t){var o=Object(uo.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(so.a)(this,n)}}var Pc=function(e){Object(ao.a)(n,e);var t=Sc(n);function n(){var e;return Object(io.a)(this,n),(e=t.apply(this,arguments)).onSubmit=e.onSubmit.bind(Object(Yo.a)(e)),e}return Object(co.a)(n,[{key:"componentDidUpdate",value:function(e){e.isPublished&&!this.props.isSaving&&this.props.isDirty&&this.props.onClose()}},{key:"onSubmit",value:function(){var e=this.props,t=e.onClose,n=e.hasPublishAction,r=e.isPostTypeViewable;n&&r||t()}},{key:"render",value:function(){var e=this.props,t=e.forceIsDirty,n=e.forceIsSaving,r=e.isBeingScheduled,o=e.isPublished,i=e.isPublishSidebarEnabled,c=e.isScheduled,a=e.isSaving,s=e.onClose,u=e.onTogglePublishSidebar,l=e.PostPublishExtension,d=e.PrePublishExtension,p=Object(Jr.a)(e,["forceIsDirty","forceIsSaving","isBeingScheduled","isPublished","isPublishSidebarEnabled","isScheduled","isSaving","onClose","onTogglePublishSidebar","PostPublishExtension","PrePublishExtension"]),b=Object(m.omit)(p,["hasPublishAction","isDirty","isPostTypeViewable"]),f=o||c&&r,h=!f&&!a,O=f&&!a;return Object(_t.createElement)("div",Object(Xr.a)({className:"editor-post-publish-panel"},b),Object(_t.createElement)("div",{className:"editor-post-publish-panel__header"},O?Object(_t.createElement)(Ro.Button,{onClick:s,icon:$i.a,label:Object(A.__)("Close panel")}):Object(_t.createElement)(_t.Fragment,null,Object(_t.createElement)("div",{className:"editor-post-publish-panel__header-publish-button"},Object(_t.createElement)(Qi,{focusOnMount:!0,onSubmit:this.onSubmit,forceIsDirty:t,forceIsSaving:n})),Object(_t.createElement)("div",{className:"editor-post-publish-panel__header-cancel-button"},Object(_t.createElement)(Ro.Button,{onClick:s,isSecondary:!0},Object(A.__)("Cancel"))))),Object(_t.createElement)("div",{className:"editor-post-publish-panel__content"},h&&Object(_t.createElement)(jc,null,d&&Object(_t.createElement)(d,null)),O&&Object(_t.createElement)(kc,{focusOnMount:!0},l&&Object(_t.createElement)(l,null)),a&&Object(_t.createElement)(Ro.Spinner,null)),Object(_t.createElement)("div",{className:"editor-post-publish-panel__footer"},Object(_t.createElement)(Ro.CheckboxControl,{label:Object(A.__)("Always show pre-publish checks."),checked:i,onChange:u})))}}]),n}(_t.Component),wc=Object(Zr.compose)([Object(d.withSelect)((function(e){var t=e("core").getPostType,n=e("core/editor"),r=n.getCurrentPost,o=n.getEditedPostAttribute,i=n.isCurrentPostPublished,c=n.isCurrentPostScheduled,a=n.isEditedPostBeingScheduled,s=n.isEditedPostDirty,u=n.isSavingPost,l=e("core/editor").isPublishSidebarEnabled,d=t(o("type"));return{hasPublishAction:Object(m.get)(r(),["_links","wp:action-publish"],!1),isPostTypeViewable:Object(m.get)(d,["viewable"],!1),isBeingScheduled:a(),isDirty:s(),isPublished:i(),isPublishSidebarEnabled:l(),isSaving:u(),isScheduled:c()}})),Object(d.withDispatch)((function(e,t){var n=t.isPublishSidebarEnabled,r=e("core/editor"),o=r.disablePublishSidebar,i=r.enablePublishSidebar;return{onTogglePublishSidebar:function(){n?o():i()}}})),Ro.withFocusReturn,Ro.withConstrainedTabbing])(Pc),Cc=n(142),Tc=Object(_t.createElement)(Io.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(_t.createElement)(Io.Path,{d:"M14.9 9c1.8.2 3.1 1.7 3.1 3.5 0 1.9-1.6 3.5-3.5 3.5h-10C2.6 16 1 14.4 1 12.5 1 10.7 2.3 9.3 4.1 9 4 8.9 4 8.7 4 8.5 4 7.1 5.1 6 6.5 6c.3 0 .7.1.9.2C8.1 4.9 9.4 4 11 4c2.2 0 4 1.8 4 4 0 .4-.1.7-.1 1z"})),xc=n(158),Bc=Object(_t.createElement)(Io.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(_t.createElement)(Io.Path,{d:"M14.8 9c.1-.3.2-.6.2-1 0-2.2-1.8-4-4-4-1.5 0-2.9.9-3.5 2.2-.3-.1-.7-.2-1-.2C5.1 6 4 7.1 4 8.5c0 .2 0 .4.1.5-1.8.3-3.1 1.7-3.1 3.5C1 14.4 2.6 16 4.5 16H8v-3H5l4.5-4.5L14 13h-3v3h3.5c1.9 0 3.5-1.6 3.5-3.5 0-1.8-1.4-3.3-3.2-3.5z"}));var Rc=Object(Zr.compose)([Object(d.withSelect)((function(e){var t=e("core/editor"),n=t.isSavingPost,r=t.isCurrentPostPublished,o=t.isCurrentPostScheduled;return{isSaving:n(),isPublished:r(),isScheduled:o()}})),Object(d.withDispatch)((function(e){var t=e("core/editor"),n=t.editPost,r=t.savePost;return{onClick:function(){n({status:"draft"}),r()}}}))])((function(e){var t=e.isSaving,n=e.isPublished,r=e.isScheduled,o=e.onClick,i=Object(Zr.useViewportMatch)("small","<");return n||r?Object(_t.createElement)(Ro.Button,{className:"editor-post-switch-to-draft",onClick:function(){var e;n?e=Object(A.__)("Are you sure you want to unpublish this post?"):r&&(e=Object(A.__)("Are you sure you want to unschedule this post?")),window.confirm(e)&&o()},disabled:t,isTertiary:!0},i?Object(A.__)("Draft"):Object(A.__)("Switch to draft")):null}));function Ac(e){var t=e.forceIsDirty,n=e.forceIsSaving,r=e.showIconLabels,o=void 0!==r&&r,i=Object(_t.useState)(!1),c=Object(vt.a)(i,2),a=c[0],s=c[1],u=Object(Zr.useViewportMatch)("small"),l=Object(d.useSelect)((function(e){var r,o,i,c=e("core/editor"),a=c.isEditedPostNew,s=c.isCurrentPostPublished,u=c.isCurrentPostScheduled,l=c.isEditedPostDirty,d=c.isSavingPost,p=c.isEditedPostSaveable,b=c.getCurrentPost,f=c.isAutosavingPost,h=c.getEditedPostAttribute;return{isAutosaving:f(),isDirty:t||l(),isNew:a(),isPending:"pending"===h("status"),isPublished:s(),isSaving:n||d(),isSaveable:p(),isScheduled:u(),hasPublishAction:null!==(r=null===(o=b())||void 0===o||null===(i=o._links)||void 0===i?void 0:i["wp:action-publish"])&&void 0!==r&&r}}),[t,n]),p=l.isAutosaving,b=l.isDirty,f=l.isNew,h=l.isPending,m=l.isPublished,O=l.isSaveable,v=l.isSaving,g=l.isScheduled,j=l.hasPublishAction,y=Object(d.useDispatch)("core/editor").savePost,_=Object(Zr.usePrevious)(v);if(Object(_t.useEffect)((function(){var e;return _&&!v&&(s(!0),e=setTimeout((function(){s(!1)}),1e3)),function(){return clearTimeout(e)}}),[v]),v){var E=ho()("editor-post-saved-state","is-saving",{"is-autosaving":p});return Object(_t.createElement)(Ro.Animate,{type:"loading"},(function(e){var t=e.className;return Object(_t.createElement)("span",{className:ho()(E,t)},Object(_t.createElement)(Cc.a,{icon:Tc}),p?Object(A.__)("Autosaving"):Object(A.__)("Saving"))}))}if(m||g)return Object(_t.createElement)(Rc,null);if(!O)return null;if(a||!f&&!b)return Object(_t.createElement)("span",{className:"editor-post-saved-state is-saved"},Object(_t.createElement)(Cc.a,{icon:xc.a}),Object(A.__)("Saved"));if(!j&&h)return null;var k=h?Object(A.__)("Save as pending"):Object(A.__)("Save draft"),S=Object(A.__)("Save");return u?Object(_t.createElement)(Ro.Button,{className:"editor-post-save-draft",onClick:function(){return y()},shortcut:Ao.displayShortcut.primary("s"),isTertiary:!0},k):Object(_t.createElement)(Ro.Button,{className:"editor-post-save-draft",label:k,onClick:function(){return y()},shortcut:Ao.displayShortcut.primary("s"),icon:Bc},o&&S)}var Ic=Object(Zr.compose)([Object(d.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPost,r=t.getCurrentPostType;return{hasPublishAction:Object(m.get)(n(),["_links","wp:action-publish"],!1),postType:r()}}))])((function(e){var t=e.hasPublishAction,n=e.children;return t?n:null}));function Dc(e){var t=e.children;return Object(_t.createElement)(oi,{supportKeys:"slug"},t)}function Lc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(uo.a)(e);if(t){var o=Object(uo.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(so.a)(this,n)}}var Nc=function(e){Object(ao.a)(n,e);var t=Lc(n);function n(e){var r,o=e.postSlug,i=e.postTitle,c=e.postID;return Object(io.a)(this,n),(r=t.apply(this,arguments)).state={editedSlug:Object(yt.safeDecodeURIComponent)(o)||kt(i)||c},r.setSlug=r.setSlug.bind(Object(Yo.a)(r)),r}return Object(co.a)(n,[{key:"setSlug",value:function(e){var t=this.props,n=t.postSlug,r=t.onUpdateSlug,o=kt(e.target.value);o!==n&&r(o)}},{key:"render",value:function(){var e=this,t=this.props.instanceId,n=this.state.editedSlug,r="editor-post-slug-"+t;return Object(_t.createElement)(Dc,null,Object(_t.createElement)("label",{htmlFor:r},Object(A.__)("Slug")),Object(_t.createElement)("input",{type:"text",id:r,value:n,onChange:function(t){return e.setState({editedSlug:t.target.value})},onBlur:this.setSlug,className:"editor-post-slug__input"}))}}]),n}(_t.Component),Uc=Object(Zr.compose)([Object(d.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPost,r=t.getEditedPostAttribute,o=n().id;return{postSlug:r("slug"),postTitle:r("title"),postID:o}})),Object(d.withDispatch)((function(e){var t=e("core/editor").editPost;return{onUpdateSlug:function(e){t({slug:e})}}})),Zr.withInstanceId])(Nc);var Fc=Object(Zr.compose)([Object(d.withSelect)((function(e){var t=e("core/editor").getCurrentPost();return{hasStickyAction:Object(m.get)(t,["_links","wp:action-sticky"],!1),postType:e("core/editor").getCurrentPostType()}}))])((function(e){var t=e.hasStickyAction,n=e.postType,r=e.children;return"post"===n&&t?r:null}));var Mc=Object(Zr.compose)([Object(d.withSelect)((function(e){return{postSticky:e("core/editor").getEditedPostAttribute("sticky")}})),Object(d.withDispatch)((function(e){return{onUpdateSticky:function(t){e("core/editor").editPost({sticky:t})}}}))])((function(e){var t=e.onUpdateSticky,n=e.postSticky,r=void 0!==n&&n;return Object(_t.createElement)(Fc,null,Object(_t.createElement)(Ro.CheckboxControl,{label:Object(A.__)("Stick to the top of the blog"),checked:r,onChange:function(){return t(!r)}}))}));function Vc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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 zc(e){for(var t=1;t0)};return e.sort((function(e,t){var r=n(e),o=n(t);return r===o?0:r&&!o?-1:!r&&o?1:0})),e}},{key:"setFilterValue",value:function(e){var t=this.state.availableTermsTree,n=e.target.value,r=t.map(this.getFilterMatcher(n)).filter((function(e){return e}));this.setState({filterValue:n,filteredTermsTree:r});var o=function e(t){for(var n=0,r=0;r0&&(r.children=r.children.map(t).filter((function(e){return e}))),(-1!==r.name.toLowerCase().indexOf(e.toLowerCase())||r.children.length>0)&&r}}},{key:"renderTerms",value:function(e){var t=this,n=this.props.terms,r=void 0===n?[]:n;return e.map((function(e){return Object(_t.createElement)("div",{key:e.id,className:"editor-post-taxonomies__hierarchical-terms-choice"},Object(_t.createElement)(Ro.CheckboxControl,{checked:-1!==r.indexOf(e.id),onChange:function(){var n=parseInt(e.id,10);t.onChange(n)},label:Object(m.unescape)(e.name)}),!!e.children.length&&Object(_t.createElement)("div",{className:"editor-post-taxonomies__hierarchical-terms-subchoices"},t.renderTerms(e.children)))}))}},{key:"render",value:function(){var e=this.props,t=e.slug,n=e.taxonomy,r=e.instanceId,o=e.hasCreateAction;if(!e.hasAssignAction)return null;var i=this.state,c=i.availableTermsTree,a=i.availableTerms,s=i.filteredTermsTree,u=i.formName,l=i.formParent,d=i.loading,p=i.showForm,b=i.filterValue,f=function(e,r,o){return Object(m.get)(n,["labels",e],"category"===t?r:o)},h=f("add_new_item",Object(A.__)("Add new category"),Object(A.__)("Add new term")),O=f("new_item_name",Object(A.__)("Add new category"),Object(A.__)("Add new term")),v=f("parent_item",Object(A.__)("Parent Category"),Object(A.__)("Parent Term")),g="— ".concat(v," —"),j=h,y="editor-post-taxonomies__hierarchical-terms-input-".concat(r),_="editor-post-taxonomies__hierarchical-terms-filter-".concat(r),E=Object(m.get)(this.props.taxonomy,["labels","search_items"],Object(A.__)("Search Terms")),k=Object(m.get)(this.props.taxonomy,["name"],Object(A.__)("Terms")),S=a.length>=8;return[S&&Object(_t.createElement)("label",{key:"filter-label",htmlFor:_},E),S&&Object(_t.createElement)("input",{type:"search",id:_,value:b,onChange:this.setFilterValue,className:"editor-post-taxonomies__hierarchical-terms-filter",key:"term-filter-input"}),Object(_t.createElement)("div",{className:"editor-post-taxonomies__hierarchical-terms-list",key:"term-list",tabIndex:"0",role:"group","aria-label":k},this.renderTerms(""!==b?s:c)),!d&&o&&Object(_t.createElement)(Ro.Button,{key:"term-add-button",onClick:this.onToggleForm,className:"editor-post-taxonomies__hierarchical-terms-add","aria-expanded":p,isLink:!0},h),p&&Object(_t.createElement)("form",{onSubmit:this.onAddTerm,key:"hierarchical-terms-form"},Object(_t.createElement)("label",{htmlFor:y,className:"editor-post-taxonomies__hierarchical-terms-label"},O),Object(_t.createElement)("input",{type:"text",id:y,className:"editor-post-taxonomies__hierarchical-terms-input",value:u,onChange:this.onChangeFormName,required:!0}),!!a.length&&Object(_t.createElement)(Ro.TreeSelect,{label:v,noOptionLabel:g,onChange:this.onChangeFormParent,selectedId:l,tree:c}),Object(_t.createElement)(Ro.Button,{isSecondary:!0,type:"submit",className:"editor-post-taxonomies__hierarchical-terms-submit"},j))]}}]),n}(_t.Component),Kc=Object(Zr.compose)([Object(d.withSelect)((function(e,t){var n=t.slug,r=e("core/editor").getCurrentPost,o=(0,e("core").getTaxonomy)(n);return{hasCreateAction:!!o&&Object(m.get)(r(),["_links","wp:action-create-"+o.rest_base],!1),hasAssignAction:!!o&&Object(m.get)(r(),["_links","wp:action-assign-"+o.rest_base],!1),terms:o?e("core/editor").getEditedPostAttribute(o.rest_base):[],taxonomy:o}})),Object(d.withDispatch)((function(e){return{onUpdateTerms:function(t,n){e("core/editor").editPost(Object(l.a)({},n,t))}}})),Ro.withSpokenMessages,Zr.withInstanceId,Object(Ro.withFilters)("editor.PostTaxonomyType")])(Gc);var qc=Object(Zr.compose)([Object(d.withSelect)((function(e){return{postType:e("core/editor").getCurrentPostType(),taxonomies:e("core").getTaxonomies({per_page:-1})}}))])((function(e){var t=e.postType,n=e.taxonomies,r=e.taxonomyWrapper,o=void 0===r?m.identity:r,i=Object(m.filter)(n,(function(e){return Object(m.includes)(e.types,t)}));return Object(m.filter)(i,(function(e){return e.visibility.show_ui})).map((function(e){var t=e.hierarchical?Kc:pc;return Object(_t.createElement)(_t.Fragment,{key:"taxonomy-".concat(e.slug)},o(Object(_t.createElement)(t,{slug:e.slug}),e))}))}));var Qc=Object(Zr.compose)([Object(d.withSelect)((function(e){return{postType:e("core/editor").getCurrentPostType(),taxonomies:e("core").getTaxonomies({per_page:-1})}}))])((function(e){var t=e.postType,n=e.taxonomies,r=e.children;return Object(m.some)(n,(function(e){return Object(m.includes)(e.types,t)}))?r:null})),$c=n(99),Yc=n.n($c);function Xc(){var e=Object(d.useSelect)((function(e){return e("core/editor").getEditedPostContent()}),[]),t=Object(d.useDispatch)("core/editor"),n=t.editPost,r=t.resetEditorBlocks,o=Object(_t.useState)(e),i=Object(vt.a)(o,2),a=i[0],s=i[1],u=Object(_t.useState)(!1),l=Object(vt.a)(u,2),p=l[0],b=l[1],f=Object(Zr.useInstanceId)(Xc);p||a===e||s(e);return Object(_t.createElement)(_t.Fragment,null,Object(_t.createElement)(Ro.VisuallyHidden,{as:"label",htmlFor:"post-content-".concat(f)},Object(A.__)("Type text or HTML")),Object(_t.createElement)(Yc.a,{autoComplete:"off",dir:"auto",value:a,onChange:function(e){var t=e.target.value;n({content:t}),s(t),b(!0)},onBlur:function(){if(p){var e=Object(c.parse)(a);r(e),b(!1)}},className:"editor-post-text-editor",id:"post-content-".concat(f),placeholder:Object(A.__)("Start writing with text or HTML")}))}function Jc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(uo.a)(e);if(t){var o=Object(uo.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(so.a)(this,n)}}var Zc=/[\r\n]+/g,ea=function(e){Object(ao.a)(n,e);var t=Jc(n);function n(){var e;return Object(io.a)(this,n),(e=t.apply(this,arguments)).onChange=e.onChange.bind(Object(Yo.a)(e)),e.onSelect=e.onSelect.bind(Object(Yo.a)(e)),e.onUnselect=e.onUnselect.bind(Object(Yo.a)(e)),e.onKeyDown=e.onKeyDown.bind(Object(Yo.a)(e)),e.onPaste=e.onPaste.bind(Object(Yo.a)(e)),e.state={isSelected:!1},e}return Object(co.a)(n,[{key:"onSelect",value:function(){this.setState({isSelected:!0}),this.props.clearSelectedBlock()}},{key:"onUnselect",value:function(){this.setState({isSelected:!1})}},{key:"onChange",value:function(e){var t=e.target.value.replace(Zc," ");this.props.onUpdate(t)}},{key:"onKeyDown",value:function(e){e.keyCode===Ao.ENTER&&(e.preventDefault(),this.props.onEnterPress())}},{key:"onPaste",value:function(e){var t=this.props,n=t.title,r=t.onInsertBlockAfter,o=t.onUpdate,i=e.clipboardData,a="",s="";try{a=i.getData("text/plain"),s=i.getData("text/html")}catch(e){try{s=i.getData("Text")}catch(e){return}}window.console.log("Received HTML:\n\n",s),window.console.log("Received plain text:\n\n",a);var u=Object(c.pasteHandler)({HTML:s,plainText:a});if("string"!=typeof u&&u.length){e.preventDefault();var l=Object(vt.a)(u,1)[0];n||"core/heading"!==l.name&&"core/paragraph"!==l.name?r(u):(o(l.attributes.content),r(u.slice(1)))}}},{key:"render",value:function(){var e=this.props,t=e.hasFixedToolbar,n=e.isCleanNewPost,r=e.isFocusMode,o=e.instanceId,i=e.placeholder,c=e.title,a=this.state.isSelected,s=ho()("wp-block editor-post-title editor-post-title__block",{"is-selected":a,"is-focus-mode":r,"has-fixed-toolbar":t}),u=Object(yc.decodeEntities)(i);return Object(_t.createElement)(oi,{supportKeys:"title"},Object(_t.createElement)("div",{className:s},Object(_t.createElement)(Ro.VisuallyHidden,{as:"label",htmlFor:"post-title-".concat(o)},u||Object(A.__)("Add title")),Object(_t.createElement)(Yc.a,{id:"post-title-".concat(o),className:"editor-post-title__input",value:c,onChange:this.onChange,placeholder:u||Object(A.__)("Add title"),onFocus:this.onSelect,onBlur:this.onUnselect,onKeyDown:this.onKeyDown,onKeyPress:this.onUnselect,onPaste:this.onPaste,autoFocus:(document.body===document.activeElement||!document.activeElement)&&n})))}}]),n}(_t.Component),ta=Object(d.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.isCleanNewPost,o=(0,e("core/block-editor").getSettings)(),i=o.titlePlaceholder,c=o.focusMode,a=o.hasFixedToolbar;return{isCleanNewPost:r(),title:n("title"),placeholder:i,isFocusMode:c,hasFixedToolbar:a}})),na=Object(d.withDispatch)((function(e){var t=e("core/block-editor"),n=t.insertDefaultBlock,r=t.clearSelectedBlock,o=t.insertBlocks,i=e("core/editor").editPost;return{onEnterPress:function(){n(void 0,void 0,0)},onInsertBlockAfter:function(e){o(e,0)},onUpdate:function(e){i({title:e})},clearSelectedBlock:r}})),ra=Object(Zr.compose)(ta,na,Zr.withInstanceId)(ea);var oa=Object(Zr.compose)([Object(d.withSelect)((function(e){var t=e("core/editor"),n=t.isEditedPostNew,r=t.getCurrentPostId,o=t.getCurrentPostType;return{isNew:n(),postId:r(),postType:o()}})),Object(d.withDispatch)((function(e){return{trashPost:e("core/editor").trashPost}}))])((function(e){var t=e.isNew,n=e.postId,r=e.postType,o=Object(Jr.a)(e,["isNew","postId","postType"]);return t||!n?null:Object(_t.createElement)(Ro.Button,{className:"editor-post-trash",isDestructive:!0,isTertiary:!0,onClick:function(){return o.trashPost(n,r)}},Object(A.__)("Move to trash"))}));var ia=Object(d.withSelect)((function(e){var t=e("core/editor"),n=t.isEditedPostNew,r=t.getCurrentPostId,o=t.getCurrentPostType,i=e("core"),c=i.getPostType,a=i.canUser,s=r(),u=c(o()),l=(null==u?void 0:u.rest_base)||"";return{isNew:n(),postId:s,canUserDelete:!(!s||!l)&&a("delete",l,s)}}))((function(e){var t=e.isNew,n=e.postId,r=e.canUserDelete,o=e.children;return!t&&n&&r?o:null}));var ca=Object(Zr.compose)([Object(d.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPost,r=t.getCurrentPostType;return{hasPublishAction:Object(m.get)(n(),["_links","wp:action-publish"],!1),postType:r()}}))])((function(e){var t=e.hasPublishAction;return(0,e.render)({canEdit:t})})),aa=Object(_t.createElement)(Io.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(_t.createElement)(Io.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"})),sa=n(127);function ua(){var e=Object(d.useSelect)((function(e){return e("core/editor").getEditedPostAttribute("content")})),t=Object(A._x)("words","Word count type. Do not translate!");return Object(_t.createElement)("span",{className:"word-count"},Object(sa.count)(e,t))}function la(){var e=Object(d.useSelect)((function(e){return e("core/editor").getEditedPostAttribute("content")}));return Object(sa.count)(e,"characters_including_spaces")}var da=function(e){var t=e.hasOutlineItemsDisabled,n=e.onRequestClose,r=Object(d.useSelect)((function(e){var t=e("core/block-editor").getGlobalBlockCount;return{headingCount:t("core/heading"),paragraphCount:t("core/paragraph"),numberOfBlocks:t()}}),[]),o=r.headingCount,i=r.paragraphCount,c=r.numberOfBlocks;return Object(_t.createElement)(_t.Fragment,null,Object(_t.createElement)("div",{className:"table-of-contents__wrapper",role:"note","aria-label":Object(A.__)("Document Statistics"),tabIndex:"0"},Object(_t.createElement)("ul",{role:"list",className:"table-of-contents__counts"},Object(_t.createElement)("li",{className:"table-of-contents__count"},Object(A.__)("Characters"),Object(_t.createElement)("span",{className:"table-of-contents__number"},Object(_t.createElement)(la,null))),Object(_t.createElement)("li",{className:"table-of-contents__count"},Object(A.__)("Words"),Object(_t.createElement)(ua,null)),Object(_t.createElement)("li",{className:"table-of-contents__count"},Object(A.__)("Headings"),Object(_t.createElement)("span",{className:"table-of-contents__number"},o)),Object(_t.createElement)("li",{className:"table-of-contents__count"},Object(A.__)("Paragraphs"),Object(_t.createElement)("span",{className:"table-of-contents__number"},i)),Object(_t.createElement)("li",{className:"table-of-contents__count"},Object(A.__)("Blocks"),Object(_t.createElement)("span",{className:"table-of-contents__number"},c)))),o>0&&Object(_t.createElement)(_t.Fragment,null,Object(_t.createElement)("hr",null),Object(_t.createElement)("h2",{className:"table-of-contents__title"},Object(A.__)("Document Outline")),Object(_t.createElement)(ko,{onSelect:n,hasOutlineItemsDisabled:t})))};var pa=Object(_t.forwardRef)((function(e,t){var n=e.hasOutlineItemsDisabled,r=e.repositionDropdown,o=Object(Jr.a)(e,["hasOutlineItemsDisabled","repositionDropdown"]),i=Object(d.useSelect)((function(e){return!!e("core/block-editor").getBlockCount()}),[]);return Object(_t.createElement)(Ro.Dropdown,{position:r?"middle right right":"bottom",className:"table-of-contents",contentClassName:"table-of-contents__popover",renderToggle:function(e){var n=e.isOpen,r=e.onToggle;return Object(_t.createElement)(Ro.Button,Object(Xr.a)({},o,{ref:t,onClick:i?r:void 0,icon:aa,"aria-expanded":n,"aria-haspopup":"true",label:Object(A.__)("Details"),tooltipPosition:"bottom","aria-disabled":!i}))},renderContent:function(e){var t=e.onClose;return Object(_t.createElement)(da,{onRequestClose:t,hasOutlineItemsDisabled:n})}})}));function ba(){var e=Object(d.useSelect)((function(e){return function(){return(0,e("core").__experimentalGetDirtyEntityRecords)().length>0}}),[]),t=function(t){if(e())return t.returnValue=Object(A.__)("You have unsaved changes. If you proceed, they will be lost."),t.returnValue};return Object(_t.useEffect)((function(){return window.addEventListener("beforeunload",t),function(){window.removeEventListener("beforeunload",t)}}),[]),null}var fa=Object(Zr.createHigherOrderComponent)((function(e){return Object(d.withRegistry)((function(t){var n=t.useSubRegistry,r=void 0===n||n,o=t.registry,c=Object(Jr.a)(t,["useSubRegistry","registry"]);if(!r)return Object(_t.createElement)(e,c);var a=Object(_t.useState)(null),s=Object(vt.a)(a,2),u=s[0],l=s[1];return Object(_t.useEffect)((function(){var e=Object(d.createRegistry)({"core/block-editor":i.storeConfig},o),t=e.registerStore("core/editor",$r);Hr(t),l(e)}),[o]),u?Object(_t.createElement)(d.RegistryProvider,{value:u},Object(_t.createElement)(e,c)):null}))}),"withRegistryProvider"),ha=n(155);function ma(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Oa(e){for(var t=1;t0?n(a[0]):void 0),l=r(a),d=1===l.length&&l[0]&&l[0].name===s;return{clientIds:a,isGroupable:u&&l.length&&!d,isUngroupable:d&&!!l[0].innerBlocks.length,blocksSelection:l,groupingBlockName:s}})),Object(d.withDispatch)((function(e,t){var n=t.clientIds,r=t.blocksSelection,o=void 0===r?[]:r,i=t.groupingBlockName,a=e("core/block-editor").replaceBlocks;return{onConvertToGroup:function(){var e=Object(c.switchToBlockType)(o,i);e&&a(n,e)},onConvertFromGroup:function(){var e=o[0].innerBlocks;e.length&&a(n,e)}}}))])((function(e){var t=e.onConvertToGroup,n=e.onConvertFromGroup,r=e.isGroupable,o=void 0!==r&&r,c=e.isUngroupable,a=void 0!==c&&c;return o||a?Object(_t.createElement)(i.BlockSettingsMenuControls,null,(function(e){var r=e.onClose;return Object(_t.createElement)(_t.Fragment,null,o&&Object(_t.createElement)(Ro.MenuItem,{onClick:function(){t(),r()}},Object(A._x)("Group","verb")),a&&Object(_t.createElement)(Ro.MenuItem,{onClick:function(){n(),r()}},Object(A._x)("Ungroup","Ungrouping blocks from within a Group block back into individual blocks within the Editor ")))})):null}));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}function Sa(e){for(var t=1;t1&&void 0!==b[1]?b[1]:{},r=n.isInitialSuggestions,o=n.type,i=n.subtype,c=n.page,a=n.perPage,s=b.length>2&&void 0!==b[2]?b[2]:{},u=s.disablePostFormats,l=void 0!==u&&u,d=a||r?3:20,p=[],o&&"post"!==o||p.push(R()({path:Object(yt.addQueryArgs)("/wp/v2/search",{search:t,page:c,per_page:d,type:"post",subtype:i})}).catch((function(){return[]}))),o&&"term"!==o||p.push(R()({path:Object(yt.addQueryArgs)("/wp/v2/search",{search:t,page:c,per_page:d,type:"term",subtype:i})}).catch((function(){return[]}))),l||o&&"post-format"!==o||p.push(R()({path:Object(yt.addQueryArgs)("/wp/v2/search",{search:t,page:c,per_page:d,type:"post-format",subtype:i})}).catch((function(){return[]}))),e.abrupt("return",Promise.all(p).then((function(e){return Object(m.map)(Object(m.flatten)(e).filter((function(e){return!!e.id})).slice(0,d),(function(e){return{id:e.id,url:e.url,title:Object(yc.decodeEntities)(e.title)||Object(A.__)("(no title)"),type:e.subtype||e.type}}))})));case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ca=function(e){Object(ao.a)(n,e);var t=Pa(n);function n(e){var r;return Object(io.a)(this,n),(r=t.apply(this,arguments)).getBlockEditorSettings=W()(r.getBlockEditorSettings,{maxSize:1}),r.getDefaultBlockContext=W()(r.getDefaultBlockContext,{maxSize:1}),e.recovery?Object(so.a)(r):(e.updatePostLock(e.settings.postLock),e.setupEditor(e.post,e.initialEdits,e.settings.template),e.settings.autosave&&e.createWarningNotice(Object(A.__)("There is an autosave of this post that is more recent than the version below."),{id:"autosave-exists",actions:[{label:Object(A.__)("View the autosave"),url:e.settings.autosave.editLink}]}),r)}return Object(co.a)(n,[{key:"getBlockEditorSettings",value:function(e,t,n,r,o,i,c){return Sa(Sa({},Object(m.pick)(e,["__experimentalBlockDirectory","__experimentalBlockPatterns","__experimentalBlockPatternCategories","__experimentalEnableFullSiteEditing","__experimentalEnableFullSiteEditingDemo","__experimentalFeatures","__experimentalGlobalStylesUserEntityId","__experimentalGlobalStylesBaseStyles","__experimentalGlobalStylesContexts","__experimentalPreferredStyleVariations","__experimentalSetIsInserterOpened","alignWide","allowedBlockTypes","availableLegacyWidgets","bodyPlaceholder","codeEditingEnabled","colors","disableCustomColors","disableCustomFontSizes","disableCustomGradients","enableCustomUnits","enableCustomLineHeight","focusMode","fontSizes","gradients","hasFixedToolbar","hasPermissionsToManageWidgets","imageEditing","imageSizes","imageDimensions","isRTL","keepCaretInsideBlock","maxWidth","onUpdateDefaultBlockStyles","styles","template","templateLock","titlePlaceholder"])),{},{mediaUpload:r?va:void 0,__experimentalReusableBlocks:t,__experimentalFetchReusableBlocks:n,__experimentalFetchLinkSuggestions:Object(m.partialRight)(wa,e),__experimentalCanUserUseUnfilteredHTML:o,__experimentalUndo:i,__experimentalShouldInsertAtTheTop:c})}},{key:"getDefaultBlockContext",value:function(e,t){return{postId:e,postType:t}}},{key:"componentDidMount",value:function(){this.props.updateEditorSettings(this.props.settings)}},{key:"componentDidUpdate",value:function(e){this.props.settings!==e.settings&&this.props.updateEditorSettings(this.props.settings)}},{key:"componentWillUnmount",value:function(){this.props.tearDownEditor()}},{key:"render",value:function(){var e=this.props,t=e.canUserUseUnfilteredHTML,n=e.children,r=e.post,o=e.blocks,c=e.resetEditorBlocks,s=e.selectionStart,u=e.selectionEnd,l=e.isReady,d=e.settings,p=e.reusableBlocks,b=e.resetEditorBlocksWithoutUndoLevel,f=e.hasUploadPermissions,h=e.isPostTitleSelected,m=e.__experimentalFetchReusableBlocks,O=e.undo;if(!l)return null;var v=this.getBlockEditorSettings(d,p,m,f,t,O,h),g=this.getDefaultBlockContext(r.id,r.type);return Object(_t.createElement)(_t.Fragment,null,Object(_t.createElement)(i.__unstableEditorStyles,{styles:d.styles}),Object(_t.createElement)(a.EntityProvider,{kind:"root",type:"site"},Object(_t.createElement)(a.EntityProvider,{kind:"postType",type:r.type,id:r.id},Object(_t.createElement)(i.BlockContextProvider,{value:g},Object(_t.createElement)(i.BlockEditorProvider,{value:o,onInput:b,onChange:c,selectionStart:s,selectionEnd:u,settings:v,useSubRegistry:!1},n,Object(_t.createElement)(_a,null),Object(_t.createElement)(Ea,null))))))}}]),n}(_t.Component),Ta=Object(Zr.compose)([fa,Object(d.withSelect)((function(e){var t=e("core/editor"),n=t.canUserUseUnfilteredHTML,r=t.__unstableIsEditorReady,o=t.getEditorBlocks,i=t.getEditorSelectionStart,c=t.getEditorSelectionEnd,a=t.__experimentalGetReusableBlocks,s=t.isPostTitleSelected,u=e("core").canUser;return{canUserUseUnfilteredHTML:n(),isReady:r(),blocks:o(),selectionStart:i(),selectionEnd:c(),reusableBlocks:a(),hasUploadPermissions:Object(m.defaultTo)(u("create","media"),!0),isPostTitleSelected:s&&s()}})),Object(d.withDispatch)((function(e){var t=e("core/editor"),n=t.setupEditor,r=t.updatePostLock,o=t.resetEditorBlocks,i=t.updateEditorSettings,c=t.__experimentalFetchReusableBlocks,a=t.__experimentalTearDownEditor,s=t.undo;return{setupEditor:n,updatePostLock:r,createWarningNotice:e("core/notices").createWarningNotice,resetEditorBlocks:o,updateEditorSettings:i,resetEditorBlocksWithoutUndoLevel:function(e,t){o(e,Sa(Sa({},t),{},{__unstableShouldCreateUndoLevel:!1}))},tearDownEditor:a,__experimentalFetchReusableBlocks:c,undo:s}}))])(Ca),xa=n(86),Ba=n.n(xa);function Ra(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=Object(_t.forwardRef)((function(n,r){return L()("wp.editor."+e,{alternative:"wp.blockEditor."+e}),Object(_t.createElement)(t,Object(Xr.a)({ref:r},n))}));return n.forEach((function(n){r[n]=Ra(e+"."+n,t[n])})),r}function Aa(e,t){return function(){return L()("wp.editor."+e,{alternative:"wp.blockEditor."+e}),t.apply(void 0,arguments)}}var Ia=Ra("RichText",i.RichText,["Content"]);Ia.isEmpty=Aa("RichText.isEmpty",i.RichText.isEmpty);var Da=Ra("Autocomplete",i.Autocomplete),La=Ra("AlignmentToolbar",i.AlignmentToolbar),Na=Ra("BlockAlignmentToolbar",i.BlockAlignmentToolbar),Ua=Ra("BlockControls",i.BlockControls,["Slot"]),Fa=Ra("BlockEdit",i.BlockEdit),Ma=Ra("BlockEditorKeyboardShortcuts",i.BlockEditorKeyboardShortcuts),Va=Ra("BlockFormatControls",i.BlockFormatControls,["Slot"]),za=Ra("BlockIcon",i.BlockIcon),Ha=Ra("BlockInspector",i.BlockInspector),Wa=Ra("BlockList",i.BlockList),Ga=Ra("BlockMover",i.BlockMover),Ka=Ra("BlockNavigationDropdown",i.BlockNavigationDropdown),qa=Ra("BlockSelectionClearer",i.BlockSelectionClearer),Qa=Ra("BlockSettingsMenu",i.BlockSettingsMenu),$a=Ra("BlockTitle",i.BlockTitle),Ya=Ra("BlockToolbar",i.BlockToolbar),Xa=Ra("ColorPalette",i.ColorPalette),Ja=Ra("ContrastChecker",i.ContrastChecker),Za=Ra("CopyHandler",i.CopyHandler),es=Ra("DefaultBlockAppender",i.DefaultBlockAppender),ts=Ra("FontSizePicker",i.FontSizePicker),ns=Ra("Inserter",i.Inserter),rs=Ra("InnerBlocks",i.InnerBlocks,["ButtonBlockAppender","DefaultBlockAppender","Content"]),os=Ra("InspectorAdvancedControls",i.InspectorAdvancedControls,["Slot"]),is=Ra("InspectorControls",i.InspectorControls,["Slot"]),cs=Ra("PanelColorSettings",i.PanelColorSettings),as=Ra("PlainText",i.PlainText),ss=Ra("RichTextShortcut",i.RichTextShortcut),us=Ra("RichTextToolbarButton",i.RichTextToolbarButton),ls=Ra("__unstableRichTextInputEvent",i.__unstableRichTextInputEvent),ds=Ra("MediaPlaceholder",i.MediaPlaceholder),ps=Ra("MediaUpload",i.MediaUpload),bs=Ra("MediaUploadCheck",i.MediaUploadCheck),fs=Ra("MultiSelectScrollIntoView",i.MultiSelectScrollIntoView),hs=Ra("NavigableToolbar",i.NavigableToolbar),ms=Ra("ObserveTyping",i.ObserveTyping),Os=Ra("PreserveScrollInReorder",i.PreserveScrollInReorder),vs=Ra("SkipToSelectedBlock",i.SkipToSelectedBlock),gs=Ra("URLInput",i.URLInput),js=Ra("URLInputButton",i.URLInputButton),ys=Ra("URLPopover",i.URLPopover),_s=Ra("Warning",i.Warning),Es=Ra("WritingFlow",i.WritingFlow),ks=Aa("createCustomColorsHOC",i.createCustomColorsHOC),Ss=Aa("getColorClassName",i.getColorClassName),Ps=Aa("getColorObjectByAttributeValues",i.getColorObjectByAttributeValues),ws=Aa("getColorObjectByColorValue",i.getColorObjectByColorValue),Cs=Aa("getFontSize",i.getFontSize),Ts=Aa("getFontSizeClass",i.getFontSizeClass),xs=Aa("withColorContext",i.withColorContext),Bs=Aa("withColors",i.withColors),Rs=Aa("withFontSizes",i.withFontSizes)},47:function(e,t,n){"use strict";function r(e,t,n,r,o,i,c){try{var a=e[i](c),s=a.value}catch(e){return void n(e)}a.done?t(s):Promise.resolve(s).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var c=e.apply(t,n);function a(e){r(c,o,i,a,s,"next",e)}function s(e){r(c,o,i,a,s,"throw",e)}a(void 0)}))}}n.d(t,"a",(function(){return o}))},5:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},53:function(e,t){!function(){e.exports=this.wp.keyboardShortcuts}()},6:function(e,t){!function(){e.exports=this.wp.blockEditor}()},60:function(e,t,n){e.exports=function(e,t){var n,r,o=0;function i(){var i,c,a=n,s=arguments.length;e:for(;a;){if(a.args.length===arguments.length){for(c=0;c-1},get:function(e){return r[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),r.push(t))},delete:function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),r.splice(t,1))}}),i=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){i=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function c(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!o.has(e)){var t,n=null,r=null,c=null,s=function(){e.clientWidth!==r&&d()},a=function(t){window.removeEventListener("resize",s,!1),e.removeEventListener("input",d,!1),e.removeEventListener("keyup",d,!1),e.removeEventListener("autosize:destroy",a,!1),e.removeEventListener("autosize:update",d,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),o.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",a,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",d,!1),window.addEventListener("resize",s,!1),e.addEventListener("input",d,!1),e.addEventListener("autosize:update",d,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",o.set(e,{destroy:a,update:d}),"vertical"===(t=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),n="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(n)&&(n=0),d()}function u(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function l(){if(0!==e.scrollHeight){var t=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),o=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",r=e.clientWidth,t.forEach((function(e){e.node.scrollTop=e.scrollTop})),o&&(document.documentElement.scrollTop=o)}}function d(){l();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),r="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(re.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}))},439:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["optimist"])}}return{optimist:o,innerState:e}}e.exports=function(e){function t(t,n,o){return t.length&&(t=t.concat([{action:o}])),c(n=e(n,o),o),r({optimist:t},n)}return function(n,o){if(o.optimist)switch(o.optimist.type){case"BEGIN":return function(t,n){var o=s(t),i=o.optimist,a=o.innerState;return i=i.concat([{beforeState:a,action:n}]),c(a=e(a,n),n),r({optimist:i},a)}(n,o);case"COMMIT":return function(e,n){var r=s(e),o=r.optimist,c=r.innerState,a=[],u=!1,l=!1;return o.forEach((function(e){u?e.beforeState&&i(e.action,n.optimist.id)?(l=!0,a.push({action:e.action})):a.push(e):e.beforeState&&!i(e.action,n.optimist.id)?(u=!0,a.push(e)):e.beforeState&&i(e.action,n.optimist.id)&&(l=!0)})),l||console.error('Cannot commit transaction with id "'+n.optimist.id+'" because it does not exist'),t(o=a,c,n)}(n,o);case"REVERT":return function(n,r){var o=s(n),a=o.optimist,u=o.innerState,l=[],d=!1,p=!1,b=u;return a.forEach((function(t){t.beforeState&&i(t.action,r.optimist.id)&&(b=t.beforeState,p=!0),i(t.action,r.optimist.id)||(t.beforeState&&(d=!0),d&&(p&&t.beforeState?l.push({beforeState:b,action:t.action}):l.push(t)),p&&(b=e(b,t.action),c(u,r)))})),p||console.error('Cannot revert transaction with id "'+r.optimist.id+'" because it does not exist'),t(a=l,b,r)}(n,o)}var a=s(n),u=a.optimist,l=a.innerState;if(n&&!u.length){var d=e(l,o);return d===l?n:(c(d,o),r({optimist:u},d))}return t(u,l,o)}},e.exports.BEGIN="BEGIN",e.exports.COMMIT="COMMIT",e.exports.REVERT="REVERT"},45:function(e,t,n){"use strict";function r(e,t,n,r,o,i,c){try{var s=e[i](c),a=s.value}catch(e){return void n(e)}s.done?t(a):Promise.resolve(a).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var c=e.apply(t,n);function s(e){r(c,o,i,s,a,"next",e)}function a(e){r(c,o,i,s,a,"throw",e)}s(void 0)}))}}n.d(t,"a",(function(){return o}))},457:function(e,t,n){"use strict";n.r(t),n.d(t,"userAutocompleter",(function(){return Ar})),n.d(t,"AutosaveMonitor",(function(){return Vr})),n.d(t,"DocumentOutline",(function(){return Jr})),n.d(t,"DocumentOutlineCheck",(function(){return Zr})),n.d(t,"VisualEditorGlobalKeyboardShortcuts",(function(){return no})),n.d(t,"EditorGlobalKeyboardShortcuts",(function(){return ro})),n.d(t,"TextEditorGlobalKeyboardShortcuts",(function(){return oo})),n.d(t,"EditorKeyboardShortcutsRegister",(function(){return io})),n.d(t,"EditorHistoryRedo",(function(){return lo})),n.d(t,"EditorHistoryUndo",(function(){return bo})),n.d(t,"EditorNotices",(function(){return ho})),n.d(t,"EntitiesSavedStates",(function(){return ko})),n.d(t,"ErrorBoundary",(function(){return wo})),n.d(t,"LocalAutosaveMonitor",(function(){return Bo})),n.d(t,"PageAttributesCheck",(function(){return Io})),n.d(t,"PageAttributesOrder",(function(){return Do})),n.d(t,"PageAttributesParent",(function(){return Fo})),n.d(t,"PageTemplate",(function(){return Mo})),n.d(t,"PostAuthor",(function(){return Wo})),n.d(t,"PostAuthorCheck",(function(){return Vo})),n.d(t,"PostComments",(function(){return Go})),n.d(t,"PostExcerpt",(function(){return Ko})),n.d(t,"PostExcerptCheck",(function(){return qo})),n.d(t,"PostFeaturedImage",(function(){return ni})),n.d(t,"PostFeaturedImageCheck",(function(){return $o})),n.d(t,"PostFormat",(function(){return ii})),n.d(t,"PostFormatCheck",(function(){return ri})),n.d(t,"PostLastRevision",(function(){return ai})),n.d(t,"PostLastRevisionCheck",(function(){return si})),n.d(t,"PostLockedModal",(function(){return fi})),n.d(t,"PostPendingStatus",(function(){return mi})),n.d(t,"PostPendingStatusCheck",(function(){return hi})),n.d(t,"PostPingbacks",(function(){return vi})),n.d(t,"PostPreviewButton",(function(){return di})),n.d(t,"PostPublishButton",(function(){return yi})),n.d(t,"PostPublishButtonLabel",(function(){return Oi})),n.d(t,"PostPublishPanel",(function(){return ec})),n.d(t,"PostSavedState",(function(){return cc})),n.d(t,"PostSchedule",(function(){return Ci})),n.d(t,"PostScheduleCheck",(function(){return sc})),n.d(t,"PostScheduleLabel",(function(){return Ti})),n.d(t,"PostSlug",(function(){return dc})),n.d(t,"PostSlugCheck",(function(){return ac})),n.d(t,"PostSticky",(function(){return bc})),n.d(t,"PostStickyCheck",(function(){return pc})),n.d(t,"PostSwitchToDraftButton",(function(){return ic})),n.d(t,"PostTaxonomies",(function(){return jc})),n.d(t,"PostTaxonomiesCheck",(function(){return yc})),n.d(t,"PostTextEditor",(function(){return kc})),n.d(t,"PostTitle",(function(){return xc})),n.d(t,"PostTrash",(function(){return Bc})),n.d(t,"PostTrashCheck",(function(){return Ic})),n.d(t,"PostTypeSupportCheck",(function(){return Ao})),n.d(t,"PostVisibility",(function(){return Ei})),n.d(t,"PostVisibilityLabel",(function(){return wi})),n.d(t,"PostVisibilityCheck",(function(){return Ac})),n.d(t,"TableOfContents",(function(){return Fc})),n.d(t,"UnsavedChangesWarning",(function(){return Mc})),n.d(t,"WordCount",(function(){return Nc})),n.d(t,"EditorProvider",(function(){return Zc})),n.d(t,"ServerSideRender",(function(){return ts.a})),n.d(t,"RichText",(function(){return os})),n.d(t,"Autocomplete",(function(){return is})),n.d(t,"AlignmentToolbar",(function(){return cs})),n.d(t,"BlockAlignmentToolbar",(function(){return ss})),n.d(t,"BlockControls",(function(){return as})),n.d(t,"BlockEdit",(function(){return us})),n.d(t,"BlockEditorKeyboardShortcuts",(function(){return ls})),n.d(t,"BlockFormatControls",(function(){return ds})),n.d(t,"BlockIcon",(function(){return ps})),n.d(t,"BlockInspector",(function(){return bs})),n.d(t,"BlockList",(function(){return fs})),n.d(t,"BlockMover",(function(){return hs})),n.d(t,"BlockNavigationDropdown",(function(){return ms})),n.d(t,"BlockSelectionClearer",(function(){return vs})),n.d(t,"BlockSettingsMenu",(function(){return Os})),n.d(t,"BlockTitle",(function(){return gs})),n.d(t,"BlockToolbar",(function(){return js})),n.d(t,"ColorPalette",(function(){return ys})),n.d(t,"ContrastChecker",(function(){return _s})),n.d(t,"CopyHandler",(function(){return Ps})),n.d(t,"DefaultBlockAppender",(function(){return ks})),n.d(t,"FontSizePicker",(function(){return Ss})),n.d(t,"Inserter",(function(){return Es})),n.d(t,"InnerBlocks",(function(){return ws})),n.d(t,"InspectorAdvancedControls",(function(){return Cs})),n.d(t,"InspectorControls",(function(){return Ts})),n.d(t,"PanelColorSettings",(function(){return xs})),n.d(t,"PlainText",(function(){return Bs})),n.d(t,"RichTextShortcut",(function(){return Is})),n.d(t,"RichTextToolbarButton",(function(){return As})),n.d(t,"__unstableRichTextInputEvent",(function(){return Rs})),n.d(t,"MediaPlaceholder",(function(){return Ds})),n.d(t,"MediaUpload",(function(){return Ns})),n.d(t,"MediaUploadCheck",(function(){return Ls})),n.d(t,"MultiSelectScrollIntoView",(function(){return Us})),n.d(t,"NavigableToolbar",(function(){return Fs})),n.d(t,"ObserveTyping",(function(){return Ms})),n.d(t,"PreserveScrollInReorder",(function(){return Vs})),n.d(t,"SkipToSelectedBlock",(function(){return zs})),n.d(t,"URLInput",(function(){return Hs})),n.d(t,"URLInputButton",(function(){return Ws})),n.d(t,"URLPopover",(function(){return Gs})),n.d(t,"Warning",(function(){return Ks})),n.d(t,"WritingFlow",(function(){return qs})),n.d(t,"createCustomColorsHOC",(function(){return Qs})),n.d(t,"getColorClassName",(function(){return $s})),n.d(t,"getColorObjectByAttributeValues",(function(){return Ys})),n.d(t,"getColorObjectByColorValue",(function(){return Xs})),n.d(t,"getFontSize",(function(){return Js})),n.d(t,"getFontSizeClass",(function(){return Zs})),n.d(t,"withColorContext",(function(){return ea})),n.d(t,"withColors",(function(){return ta})),n.d(t,"withFontSizes",(function(){return na})),n.d(t,"mediaUpload",(function(){return Kc})),n.d(t,"cleanForSlug",(function(){return V})),n.d(t,"storeConfig",(function(){return kr})),n.d(t,"transformStyles",(function(){return i.transformStyles}));var r={};n.r(r),n.d(r,"hasEditorUndo",(function(){return K})),n.d(r,"hasEditorRedo",(function(){return q})),n.d(r,"isEditedPostNew",(function(){return Q})),n.d(r,"hasChangedContent",(function(){return $})),n.d(r,"isEditedPostDirty",(function(){return Y})),n.d(r,"hasNonPostEntityChanges",(function(){return X})),n.d(r,"isCleanNewPost",(function(){return J})),n.d(r,"getCurrentPost",(function(){return Z})),n.d(r,"getCurrentPostType",(function(){return ee})),n.d(r,"getCurrentPostId",(function(){return te})),n.d(r,"getCurrentPostRevisionsCount",(function(){return ne})),n.d(r,"getCurrentPostLastRevisionId",(function(){return re})),n.d(r,"getPostEdits",(function(){return oe})),n.d(r,"getReferenceByDistinctEdits",(function(){return ie})),n.d(r,"getCurrentPostAttribute",(function(){return ce})),n.d(r,"getEditedPostAttribute",(function(){return se})),n.d(r,"getAutosaveAttribute",(function(){return ae})),n.d(r,"getEditedPostVisibility",(function(){return ue})),n.d(r,"isCurrentPostPending",(function(){return le})),n.d(r,"isCurrentPostPublished",(function(){return de})),n.d(r,"isCurrentPostScheduled",(function(){return pe})),n.d(r,"isEditedPostPublishable",(function(){return be})),n.d(r,"isEditedPostSaveable",(function(){return fe})),n.d(r,"isEditedPostEmpty",(function(){return he})),n.d(r,"isEditedPostAutosaveable",(function(){return me})),n.d(r,"getAutosave",(function(){return ve})),n.d(r,"hasAutosave",(function(){return Oe})),n.d(r,"isEditedPostBeingScheduled",(function(){return ge})),n.d(r,"isEditedPostDateFloating",(function(){return je})),n.d(r,"isSavingPost",(function(){return ye})),n.d(r,"didPostSaveRequestSucceed",(function(){return _e})),n.d(r,"didPostSaveRequestFail",(function(){return Pe})),n.d(r,"isAutosavingPost",(function(){return ke})),n.d(r,"isPreviewingPost",(function(){return Se})),n.d(r,"getEditedPostPreviewLink",(function(){return Ee})),n.d(r,"getSuggestedPostFormat",(function(){return we})),n.d(r,"getBlocksForSerialization",(function(){return Ce})),n.d(r,"getEditedPostContent",(function(){return Te})),n.d(r,"getStateBeforeOptimisticTransaction",(function(){return xe})),n.d(r,"isPublishingPost",(function(){return Be})),n.d(r,"isPermalinkEditable",(function(){return Ie})),n.d(r,"getPermalink",(function(){return Ae})),n.d(r,"getEditedPostSlug",(function(){return Re})),n.d(r,"getPermalinkParts",(function(){return De})),n.d(r,"inSomeHistory",(function(){return Ne})),n.d(r,"isPostLocked",(function(){return Le})),n.d(r,"isPostSavingLocked",(function(){return Ue})),n.d(r,"isPostAutosavingLocked",(function(){return Fe})),n.d(r,"isPostLockTakeover",(function(){return Me})),n.d(r,"getPostLockUser",(function(){return Ve})),n.d(r,"getActivePostLock",(function(){return ze})),n.d(r,"canUserUseUnfilteredHTML",(function(){return He})),n.d(r,"isPublishSidebarEnabled",(function(){return We})),n.d(r,"getEditorBlocks",(function(){return Ge})),n.d(r,"getEditorSelectionStart",(function(){return Ke})),n.d(r,"getEditorSelectionEnd",(function(){return qe})),n.d(r,"__unstableIsEditorReady",(function(){return Qe})),n.d(r,"getEditorSettings",(function(){return $e})),n.d(r,"getBlockName",(function(){return Xe})),n.d(r,"isBlockValid",(function(){return Je})),n.d(r,"getBlockAttributes",(function(){return Ze})),n.d(r,"getBlock",(function(){return et})),n.d(r,"getBlocks",(function(){return tt})),n.d(r,"__unstableGetBlockWithoutInnerBlocks",(function(){return nt})),n.d(r,"getClientIdsOfDescendants",(function(){return rt})),n.d(r,"getClientIdsWithDescendants",(function(){return ot})),n.d(r,"getGlobalBlockCount",(function(){return it})),n.d(r,"getBlocksByClientId",(function(){return ct})),n.d(r,"getBlockCount",(function(){return st})),n.d(r,"getBlockSelectionStart",(function(){return at})),n.d(r,"getBlockSelectionEnd",(function(){return ut})),n.d(r,"getSelectedBlockCount",(function(){return lt})),n.d(r,"hasSelectedBlock",(function(){return dt})),n.d(r,"getSelectedBlockClientId",(function(){return pt})),n.d(r,"getSelectedBlock",(function(){return bt})),n.d(r,"getBlockRootClientId",(function(){return ft})),n.d(r,"getBlockHierarchyRootClientId",(function(){return ht})),n.d(r,"getAdjacentBlockClientId",(function(){return mt})),n.d(r,"getPreviousBlockClientId",(function(){return vt})),n.d(r,"getNextBlockClientId",(function(){return Ot})),n.d(r,"getSelectedBlocksInitialCaretPosition",(function(){return gt})),n.d(r,"getMultiSelectedBlockClientIds",(function(){return jt})),n.d(r,"getMultiSelectedBlocks",(function(){return yt})),n.d(r,"getFirstMultiSelectedBlockClientId",(function(){return _t})),n.d(r,"getLastMultiSelectedBlockClientId",(function(){return Pt})),n.d(r,"isFirstMultiSelectedBlock",(function(){return kt})),n.d(r,"isBlockMultiSelected",(function(){return St})),n.d(r,"isAncestorMultiSelected",(function(){return Et})),n.d(r,"getMultiSelectedBlocksStartClientId",(function(){return wt})),n.d(r,"getMultiSelectedBlocksEndClientId",(function(){return Ct})),n.d(r,"getBlockOrder",(function(){return Tt})),n.d(r,"getBlockIndex",(function(){return xt})),n.d(r,"isBlockSelected",(function(){return Bt})),n.d(r,"hasSelectedInnerBlock",(function(){return It})),n.d(r,"isBlockWithinSelection",(function(){return At})),n.d(r,"hasMultiSelection",(function(){return Rt})),n.d(r,"isMultiSelecting",(function(){return Dt})),n.d(r,"isSelectionEnabled",(function(){return Nt})),n.d(r,"getBlockMode",(function(){return Lt})),n.d(r,"isTyping",(function(){return Ut})),n.d(r,"isCaretWithinFormattedText",(function(){return Ft})),n.d(r,"getBlockInsertionPoint",(function(){return Mt})),n.d(r,"isBlockInsertionPointVisible",(function(){return Vt})),n.d(r,"isValidTemplate",(function(){return zt})),n.d(r,"getTemplate",(function(){return Ht})),n.d(r,"getTemplateLock",(function(){return Wt})),n.d(r,"canInsertBlockType",(function(){return Gt})),n.d(r,"getInserterItems",(function(){return Kt})),n.d(r,"hasInserterItems",(function(){return qt})),n.d(r,"getBlockListSettings",(function(){return Qt}));var o={};n.r(o),n.d(o,"setupEditor",(function(){return hn})),n.d(o,"__experimentalTearDownEditor",(function(){return mn})),n.d(o,"resetPost",(function(){return vn})),n.d(o,"resetAutosave",(function(){return On})),n.d(o,"__experimentalRequestPostUpdateStart",(function(){return gn})),n.d(o,"__experimentalRequestPostUpdateFinish",(function(){return jn})),n.d(o,"updatePost",(function(){return yn})),n.d(o,"setupEditorState",(function(){return _n})),n.d(o,"editPost",(function(){return Pn})),n.d(o,"__experimentalOptimisticUpdatePost",(function(){return kn})),n.d(o,"savePost",(function(){return Sn})),n.d(o,"refreshPost",(function(){return En})),n.d(o,"trashPost",(function(){return wn})),n.d(o,"autosave",(function(){return Cn})),n.d(o,"redo",(function(){return Tn})),n.d(o,"undo",(function(){return xn})),n.d(o,"createUndoLevel",(function(){return Bn})),n.d(o,"updatePostLock",(function(){return In})),n.d(o,"enablePublishSidebar",(function(){return An})),n.d(o,"disablePublishSidebar",(function(){return Rn})),n.d(o,"lockPostSaving",(function(){return Dn})),n.d(o,"unlockPostSaving",(function(){return Nn})),n.d(o,"lockPostAutosaving",(function(){return Ln})),n.d(o,"unlockPostAutosaving",(function(){return Un})),n.d(o,"resetEditorBlocks",(function(){return Fn})),n.d(o,"updateEditorSettings",(function(){return Mn})),n.d(o,"resetBlocks",(function(){return zn})),n.d(o,"receiveBlocks",(function(){return Hn})),n.d(o,"updateBlock",(function(){return Wn})),n.d(o,"updateBlockAttributes",(function(){return Gn})),n.d(o,"selectBlock",(function(){return Kn})),n.d(o,"startMultiSelect",(function(){return qn})),n.d(o,"stopMultiSelect",(function(){return Qn})),n.d(o,"multiSelect",(function(){return $n})),n.d(o,"clearSelectedBlock",(function(){return Yn})),n.d(o,"toggleSelection",(function(){return Xn})),n.d(o,"replaceBlocks",(function(){return Jn})),n.d(o,"replaceBlock",(function(){return Zn})),n.d(o,"moveBlocksDown",(function(){return er})),n.d(o,"moveBlocksUp",(function(){return tr})),n.d(o,"moveBlockToPosition",(function(){return nr})),n.d(o,"insertBlock",(function(){return rr})),n.d(o,"insertBlocks",(function(){return or})),n.d(o,"showInsertionPoint",(function(){return ir})),n.d(o,"hideInsertionPoint",(function(){return cr})),n.d(o,"setTemplateValidity",(function(){return sr})),n.d(o,"synchronizeTemplate",(function(){return ar})),n.d(o,"mergeBlocks",(function(){return ur})),n.d(o,"removeBlocks",(function(){return lr})),n.d(o,"removeBlock",(function(){return dr})),n.d(o,"toggleBlockMode",(function(){return pr})),n.d(o,"startTyping",(function(){return br})),n.d(o,"stopTyping",(function(){return fr})),n.d(o,"enterFormattedText",(function(){return hr})),n.d(o,"exitFormattedText",(function(){return mr})),n.d(o,"insertDefaultBlock",(function(){return vr})),n.d(o,"updateBlockListSettings",(function(){return Or}));var i=n(6),c=n(11),s=n(83),a=n(53),u=(n(92),n(121)),l=n(25),d=(n(101),n(5)),p=n(4),b=n(32),f=n(40),h=n(292),m=n.n(h),v=n(2);function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SETUP_EDITOR_STATE":case"RESET_POST":case"UPDATE_POST":return t.post.id}return e},postType:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SETUP_EDITOR_STATE":case"RESET_POST":case"UPDATE_POST":return t.post.type}return e},preferences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:j,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ENABLE_PUBLISH_SIDEBAR":return P(P({},e),{},{isPublishSidebarEnabled:!0});case"DISABLE_PUBLISH_SIDEBAR":return P(P({},e),{},{isPublishSidebarEnabled:!1})}return e},saving:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REQUEST_POST_UPDATE_START":case"REQUEST_POST_UPDATE_FINISH":return{pending:"REQUEST_POST_UPDATE_START"===t.type,options:t.options||{}}}return e},postLock:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isLocked:!1},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_POST_LOCK":return t.lock}return e},template:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isValid:!0},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_TEMPLATE_VALIDITY":return P(P({},e),{},{isValid:t.isValid})}return e},postSavingLock:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"LOCK_POST_SAVING":return P(P({},e),{},Object(d.a)({},t.lockName,!0));case"UNLOCK_POST_SAVING":return Object(v.omit)(e,t.lockName)}return e},isReady:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SETUP_EDITOR_STATE":return!0;case"TEAR_DOWN_EDITOR":return!1}return e},editorSettings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:y,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_EDITOR_SETTINGS":return P(P({},e),t.settings)}return e},postAutosavingLock:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"LOCK_POST_AUTOSAVING":return P(P({},e),{},Object(d.a)({},t.lockName,!0));case"UNLOCK_POST_AUTOSAVING":return Object(v.omit)(e,t.lockName)}return e}})),E=n(12),w=n(75),C=n(31),T=n(36),x=n.n(T),B=n(0),I=new Set(["meta"]),A="core/editor",R=/%(?:postname|pagename)%/,D=["title","excerpt","content"],N=n(60),L=n.n(N),U=n(105),F=L()((function(e){1===e.length&&Object(c.isUnmodifiedDefaultBlock)(e[0])&&(e=[]);var t=Object(c.serialize)(e);return 1===e.length&&e[0].name===Object(c.getFreeformContentHandlerName)()&&(t=Object(U.removep)(t)),t}),{maxSize:1});function M(e,t){return Object(C.addQueryArgs)(e,t)}function V(e){return e?Object(v.trim)(Object(v.deburr)(e).replace(/[\s\./]+/g,"-").replace(/[^\w-]+/g,"").toLowerCase(),"-"):""}function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function H(e){for(var t=1;t1)return!1;var n=t[0].name;if(n!==Object(c.getDefaultBlockName)()&&n!==Object(c.getFreeformContentHandlerName)())return!1}return!Te(e)}var me=Object(p.createRegistrySelector)((function(e){return function(t){if(!fe(t))return!1;if(Fe(t))return!1;var n=ee(t),r=te(t),o=e("core").hasFetchedAutosaves(n,r),i=Object(v.get)(e("core").getCurrentUser(),["id"]),c=e("core").getAutosave(n,r,i);return!!o&&(!c||(!!$(t)||["title","excerpt"].some((function(e){return k(c[e])!==se(t,e)}))))}})),ve=Object(p.createRegistrySelector)((function(e){return function(t){x()("`wp.data.select( 'core/editor' ).getAutosave()`",{alternative:"`wp.data.select( 'core' ).getAutosave( postType, postId, userId )`",plugin:"Gutenberg"});var n=ee(t),r=te(t),o=Object(v.get)(e("core").getCurrentUser(),["id"]),i=e("core").getAutosave(n,r,o);return Object(v.mapValues)(Object(v.pick)(i,D),k)}})),Oe=Object(p.createRegistrySelector)((function(e){return function(t){x()("`wp.data.select( 'core/editor' ).hasAutosave()`",{alternative:"`!! wp.data.select( 'core' ).getAutosave( postType, postId, userId )`",plugin:"Gutenberg"});var n=ee(t),r=te(t),o=Object(v.get)(e("core").getCurrentUser(),["id"]);return!!e("core").getAutosave(n,r,o)}}));function ge(e){var t=se(e,"date"),n=new Date(Number(Object(w.getDate)(t))-6e4);return Object(w.isInTheFuture)(n)}function je(e){var t=se(e,"date"),n=se(e,"modified"),r=se(e,"status");return("draft"===r||"auto-draft"===r||"pending"===r)&&(t===n||null===t)}var ye=Object(p.createRegistrySelector)((function(e){return function(t){var n=ee(t),r=te(t);return e("core").isSavingEntityRecord("postType",n,r)}})),_e=Object(p.createRegistrySelector)((function(e){return function(t){var n=ee(t),r=te(t);return!e("core").getLastEntitySaveError("postType",n,r)}})),Pe=Object(p.createRegistrySelector)((function(e){return function(t){var n=ee(t),r=te(t);return!!e("core").getLastEntitySaveError("postType",n,r)}}));function ke(e){return!!ye(e)&&!!Object(v.get)(e.saving,["options","isAutosave"])}function Se(e){return!!ye(e)&&!!e.saving.options.isPreview}function Ee(e){if(!e.saving.pending&&!ye(e)){var t=ae(e,"preview_link");t||(t=se(e,"link"))&&(t=Object(C.addQueryArgs)(t,{preview:!0}));var n=se(e,"featured_media");return t&&n?Object(C.addQueryArgs)(t,{_thumbnail_id:n}):t}}function we(e){var t,n=Ge(e);if(n.length>2)return null;if(1===n.length&&"core/embed"===(t=n[0].name)){var r,o=null===(r=n[0].attributes)||void 0===r?void 0:r.providerNameSlug;["youtube","vimeo"].includes(o)?t="core/video":["spotify","soundcloud"].includes(o)&&(t="core/audio")}switch(2===n.length&&"core/paragraph"===n[1].name&&(t=n[0].name),t){case"core/image":return"image";case"core/quote":case"core/pullquote":return"quote";case"core/gallery":return"gallery";case"core/video":return"video";case"core/audio":return"audio";default:return null}}function Ce(e){x()("`core/editor` getBlocksForSerialization selector",{plugin:"Gutenberg",alternative:"getEditorBlocks",hint:"Blocks serialization pre-processing occurs at save time"});var t=e.editor.present.blocks.value;return 1===t.length&&Object(c.isUnmodifiedDefaultBlock)(t[0])?[]:t}var Te=Object(p.createRegistrySelector)((function(e){return function(t){var n=te(t),r=ee(t),o=e("core").getEditedEntityRecord("postType",r,n);if(o){if("function"==typeof o.content)return o.content(o);if(o.blocks)return F(o.blocks);if(o.content)return o.content}return""}}));function xe(e,t){var n=Object(v.find)(e.optimist,(function(e){return e.beforeState&&Object(v.get)(e.action,["optimist","id"])===t}));return n?n.beforeState:null}function Be(e){if(!ye(e))return!1;if(!de(e))return!1;var t=xe(e,"post-update");return!!t&&!de(null,t.currentPost)}function Ie(e){var t=se(e,"permalink_template");return R.test(t)}function Ae(e){var t=De(e);if(!t)return null;var n=t.prefix,r=t.postName,o=t.suffix;return Ie(e)?n+r+o:n}function Re(e){return se(e,"slug")||V(se(e,"title"))||te(e)}function De(e){var t=se(e,"permalink_template");if(!t)return null;var n=se(e,"slug")||se(e,"generated_slug"),r=t.split(R),o=Object(E.a)(r,2);return{prefix:o[0],postName:n,suffix:o[1]}}function Ne(e,t){var n=e.optimist;return!!n&&n.some((function(e){var n=e.beforeState;return n&&t(n)}))}function Le(e){return e.postLock.isLocked}function Ue(e){return Object.keys(e.postSavingLock).length>0}function Fe(e){return Object.keys(e.postAutosavingLock).length>0}function Me(e){return e.postLock.isTakeover}function Ve(e){return e.postLock.user}function ze(e){return e.postLock.activePostLock}function He(e){return Object(v.has)(Z(e),["_links","wp:action-unfiltered-html"])}function We(e){return e.preferences.hasOwnProperty("isPublishSidebarEnabled")?e.preferences.isPublishSidebarEnabled:j.isPublishSidebarEnabled}function Ge(e){return se(e,"blocks")||G}function Ke(e){return se(e,"selectionStart")}function qe(e){return se(e,"selectionEnd")}function Qe(e){return e.isReady}function $e(e){return e.editorSettings}function Ye(e){return Object(p.createRegistrySelector)((function(t){return function(n){var r;x()("`wp.data.select( 'core/editor' )."+e+"`",{alternative:"`wp.data.select( 'core/block-editor' )."+e+"`"});for(var o=arguments.length,i=new Array(o>1?o-1:0),c=1;c]*>/.test(r.message)&&(s=[s,r.message].join(" ")),[s,{id:"SAVE_POST_NOTICE_ID"}]}function nn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rn(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return{type:"REQUEST_POST_UPDATE_START",options:e}}function jn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:"REQUEST_POST_UPDATE_FINISH",options:e}}function yn(e){return{type:"UPDATE_POST",edits:e}}function _n(e){return{type:"SETUP_EDITOR_STATE",post:e}}function Pn(e,t){var n,r,o;return Jt.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,Object(b.select)(A,"getCurrentPost");case 2:return n=i.sent,r=n.id,o=n.type,i.next=7,Object(b.dispatch)("core","editEntityRecord","postType",o,r,e,t);case 7:case"end":return i.stop()}}),sn)}function kn(e){return rn(rn({},yn(e)),{},{optimist:{id:"post-update"}})}function Sn(){var e,t,n,r,o,i,c,s=arguments;return Jt.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return e=s.length>0&&void 0!==s[0]?s[0]:{},a.next=3,Object(b.select)(A,"isEditedPostSaveable");case 3:if(a.sent){a.next=5;break}return a.abrupt("return");case 5:return a.next=7,Object(b.select)(A,"getEditedPostContent");case 7:if(a.t0=a.sent,t={content:a.t0},e.isAutosave){a.next=12;break}return a.next=12,Object(b.dispatch)(A,"editPost",t,{undoIgnore:!0});case 12:return a.next=14,gn(e);case 14:return a.next=16,Object(b.select)(A,"getCurrentPost");case 16:return n=a.sent,a.t1=rn,a.t2=rn,a.t3={id:n.id},a.next=22,Object(b.select)("core","getEntityRecordNonTransientEdits","postType",n.type,n.id);case 22:return a.t4=a.sent,a.t5=(0,a.t2)(a.t3,a.t4),a.t6=t,t=(0,a.t1)(a.t5,a.t6),a.next=28,Object(b.dispatch)("core","saveEntityRecord","postType",n.type,t,e);case 28:return a.next=30,jn(e);case 30:return a.next=32,Object(b.select)("core","getLastEntitySaveError","postType",n.type,n.id);case 32:if(!(r=a.sent)){a.next=40;break}if(!(o=tn({post:n,edits:t,error:r})).length){a.next=38;break}return a.next=38,b.dispatch.apply(void 0,["core/notices","createErrorNotice"].concat(Object(Yt.a)(o)));case 38:a.next=58;break;case 40:return a.next=42,Object(b.select)(A,"getCurrentPost");case 42:return i=a.sent,a.t7=en,a.t8=n,a.t9=i,a.next=48,Object(b.select)("core","getPostType",i.type);case 48:if(a.t10=a.sent,a.t11=e,a.t12={previousPost:a.t8,post:a.t9,postType:a.t10,options:a.t11},!(c=(0,a.t7)(a.t12)).length){a.next=55;break}return a.next=55,b.dispatch.apply(void 0,["core/notices","createSuccessNotice"].concat(Object(Yt.a)(c)));case 55:if(e.isAutosave){a.next=58;break}return a.next=58,Object(b.dispatch)("core/block-editor","__unstableMarkLastChangeAsPersistent");case 58:case"end":return a.stop()}}),an)}function En(){var e,t,n,r;return Jt.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,Object(b.select)(A,"getCurrentPost");case 2:return e=o.sent,o.next=5,Object(b.select)(A,"getCurrentPostType");case 5:return t=o.sent,o.next=8,Object(b.select)("core","getPostType",t);case 8:return n=o.sent,o.next=11,Object(b.apiFetch)({path:"/wp/v2/".concat(n.rest_base,"/").concat(e.id)+"?context=edit&_timestamp=".concat(Date.now())});case 11:return r=o.sent,o.next=14,Object(b.dispatch)(A,"resetPost",r);case 14:case"end":return o.stop()}}),un)}function wn(){var e,t,n;return Jt.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Object(b.select)(A,"getCurrentPostType");case 2:return e=r.sent,r.next=5,Object(b.select)("core","getPostType",e);case 5:return t=r.sent,r.next=8,Object(b.dispatch)("core/notices","removeNotice","TRASH_POST_NOTICE_ID");case 8:return r.prev=8,r.next=11,Object(b.select)(A,"getCurrentPost");case 11:return n=r.sent,r.next=14,Object(b.apiFetch)({path:"/wp/v2/".concat(t.rest_base,"/").concat(n.id),method:"DELETE"});case 14:return r.next=16,Object(b.dispatch)(A,"savePost");case 16:r.next=22;break;case 18:return r.prev=18,r.t0=r.catch(8),r.next=22,b.dispatch.apply(void 0,["core/notices","createErrorNotice"].concat(Object(Yt.a)([(o={error:r.t0}).error.message&&"unknown_error"!==o.error.code?o.error.message:Object(Zt.__)("Trashing failed"),{id:"TRASH_POST_NOTICE_ID"}])));case 22:case"end":return r.stop()}var o}),ln,null,[[8,18]])}function Cn(){var e,t,n,r,o,i,c,s,a,u=arguments;return Jt.a.wrap((function(l){for(;;)switch(l.prev=l.next){case 0:if(e=u.length>0&&void 0!==u[0]?u[0]:{},t=e.local,n=void 0!==t&&t,r=Object($t.a)(e,["local"]),!n){l.next=21;break}return l.next=4,Object(b.select)(A,"getCurrentPost");case 4:return o=l.sent,l.next=7,Object(b.select)(A,"isEditedPostNew");case 7:return i=l.sent,l.next=10,Object(b.select)(A,"getEditedPostAttribute","title");case 10:return c=l.sent,l.next=13,Object(b.select)(A,"getEditedPostAttribute","content");case 13:return s=l.sent,l.next=16,Object(b.select)(A,"getEditedPostAttribute","excerpt");case 16:return a=l.sent,l.next=19,{type:"LOCAL_AUTOSAVE_SET",postId:o.id,isPostNew:i,title:c,content:s,excerpt:a};case 19:l.next=23;break;case 21:return l.next=23,Object(b.dispatch)(A,"savePost",rn({isAutosave:!0},r));case 23:case"end":return l.stop()}}),dn)}function Tn(){return Jt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(b.dispatch)("core","redo");case 2:case"end":return e.stop()}}),pn)}function xn(){return Jt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(b.dispatch)("core","undo");case 2:case"end":return e.stop()}}),bn)}function Bn(){return{type:"CREATE_UNDO_LEVEL"}}function In(e){return{type:"UPDATE_POST_LOCK",lock:e}}function An(){return{type:"ENABLE_PUBLISH_SIDEBAR"}}function Rn(){return{type:"DISABLE_PUBLISH_SIDEBAR"}}function Dn(e){return{type:"LOCK_POST_SAVING",lockName:e}}function Nn(e){return{type:"UNLOCK_POST_SAVING",lockName:e}}function Ln(e){return{type:"LOCK_POST_AUTOSAVING",lockName:e}}function Un(e){return{type:"UNLOCK_POST_AUTOSAVING",lockName:e}}function Fn(e){var t,n,r,o,i,c,s,a,u=arguments;return Jt.a.wrap((function(l){for(;;)switch(l.prev=l.next){case 0:if(t=u.length>1&&void 0!==u[1]?u[1]:{},n=t.__unstableShouldCreateUndoLevel,r=t.selectionStart,o=t.selectionEnd,i={blocks:e,selectionStart:r,selectionEnd:o},!1===n){l.next=19;break}return l.next=6,Object(b.select)(A,"getCurrentPost");case 6:return c=l.sent,s=c.id,a=c.type,l.next=11,Object(b.syncSelect)("core","getEditedEntityRecord","postType",a,s);case 11:if(l.t0=l.sent.blocks,l.t1=i.blocks,!(l.t0===l.t1)){l.next=18;break}return l.next=17,Object(b.dispatch)("core","__unstableCreateUndoLevel","postType",a,s);case 17:return l.abrupt("return",l.sent);case 18:i.content=function(e){var t=e.blocks;return F(void 0===t?[]:t)};case 19:return l.delegateYield(Pn(i),"t2",20);case 20:case"end":return l.stop()}}),fn)}function Mn(e){return{type:"UPDATE_EDITOR_SETTINGS",settings:e}}var Vn=function(e){return Jt.a.mark((function t(){var n,r,o,i=arguments;return Jt.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(x()("`wp.data.dispatch( 'core/editor' )."+e+"`",{alternative:"`wp.data.dispatch( 'core/block-editor' )."+e+"`"}),n=i.length,r=new Array(n),o=0;o0&&void 0!==arguments[0]?arguments[0]:[];return e.push(Object(v.clone)(Ar)),e}));var Rr=n(21),Dr=n(22),Nr=n(23),Lr=n(24),Ur=n(19);function Fr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ur.a)(e);if(t){var o=Object(Ur.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Lr.a)(this,n)}}var Mr=function(e){Object(Nr.a)(n,e);var t=Fr(n);function n(e){var r;return Object(Rr.a)(this,n),(r=t.call(this,e)).needsAutosave=!(!e.isDirty||!e.isAutosaveable),r}return Object(Dr.a)(n,[{key:"componentDidMount",value:function(){this.props.disableIntervalChecks||this.setAutosaveTimer()}},{key:"componentDidUpdate",value:function(e){this.props.disableIntervalChecks&&this.props.editsReference!==e.editsReference?this.props.autosave():(this.props.isDirty||!e.isDirty)&&(!this.props.isAutosaving||e.isAutosaving)?this.props.editsReference!==e.editsReference&&(this.needsAutosave=!0):this.needsAutosave=!1}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timerId)}},{key:"setAutosaveTimer",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3*this.props.interval;this.timerId=setTimeout((function(){e.autosaveTimerHandler()}),t)}},{key:"autosaveTimerHandler",value:function(){this.props.isAutosaveable?(this.needsAutosave&&(this.needsAutosave=!1,this.props.autosave()),this.setAutosaveTimer()):this.setAutosaveTimer(1e3)}},{key:"render",value:function(){return null}}]),n}(B.Component),Vr=Object(Er.compose)([Object(p.withSelect)((function(e,t){var n=e("core").getReferenceByDistinctEdits,r=e("core/editor"),o=r.isEditedPostDirty,i=r.isEditedPostAutosaveable,c=r.isAutosavingPost,s=r.getEditorSettings,a=t.interval,u=void 0===a?s().autosaveInterval:a;return{editsReference:n(),isDirty:o(),isAutosaveable:i(),isAutosaving:c(),interval:u}})),Object(p.withDispatch)((function(e,t){return{autosave:function(){var n=t.autosave,r=void 0===n?e("core/editor").autosave:n;r()}}}))])(Mr),zr=n(9),Hr=n.n(zr),Wr=function(e){var t=e.children,n=e.isValid,r=e.level,o=e.href,i=e.onSelect;return Object(B.createElement)("li",{className:Hr()("document-outline__item","is-".concat(r.toLowerCase()),{"is-invalid":!n})},Object(B.createElement)("a",{href:o,className:"document-outline__button",onClick:i},Object(B.createElement)("span",{className:"document-outline__emdash","aria-hidden":"true"}),Object(B.createElement)("strong",{className:"document-outline__level"},r),Object(B.createElement)("span",{className:"document-outline__item-content"},t)))};function Gr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kr(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[];return Object(v.flatMap)(t,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"core/heading"===t.name?Kr(Kr({},t),{},{level:t.attributes.level,isEmpty:Xr(t)}):e(t.innerBlocks)}))}(n);if(s.length<1)return null;var a=1,u=document.querySelector(".editor-post-title__input"),d=i&&r&&u,p=Object(v.countBy)(s,"level")[1]>1;return Object(B.createElement)("div",{className:"document-outline"},Object(B.createElement)("ul",null,d&&Object(B.createElement)(Wr,{level:Object(Zt.__)("Title"),isValid:!0,onSelect:o,href:"#".concat(u.id),isDisabled:c},r),s.map((function(e,t){var n=e.level>a+1,r=!(e.isEmpty||n||!e.level||1===e.level&&(p||d));return a=e.level,Object(B.createElement)(Wr,{key:t,level:"H".concat(e.level),isValid:r,isDisabled:c,href:"#block-".concat(e.clientId),onSelect:o},e.isEmpty?qr:Object(l.getTextContent)(Object(l.create)({html:e.attributes.content})),n&&Qr,1===e.level&&p&&Yr,d&&1===e.level&&!p&&$r)}))))}));var Zr=Object(p.withSelect)((function(e){return{blocks:e("core/block-editor").getBlocks()}}))((function(e){var t=e.blocks,n=e.children;return Object(v.filter)(t,(function(e){return"core/heading"===e.name})).length<1?null:n}));var eo=function(e){var t=e.resetBlocksOnSave,n=Object(p.useDispatch)("core/editor"),r=n.resetEditorBlocks,o=n.savePost,i=Object(p.useSelect)((function(e){var t=e("core/editor");return{isEditedPostDirty:t.isEditedPostDirty,getPostEdits:t.getPostEdits}}),[]),s=i.isEditedPostDirty,u=i.getPostEdits;return Object(a.useShortcut)("core/editor/save",(function(e){if(e.preventDefault(),s()){if(t){var n=u();if(n.content&&"string"==typeof n.content){var i=Object(c.parse)(n.content);r(i)}}o()}}),{bindGlobal:!0}),null};function to(){var e=Object(p.useDispatch)("core/editor"),t=e.redo,n=e.undo;return Object(a.useShortcut)("core/editor/undo",(function(e){n(),e.preventDefault()}),{bindGlobal:!0}),Object(a.useShortcut)("core/editor/redo",(function(e){t(),e.preventDefault()}),{bindGlobal:!0}),Object(B.createElement)(B.Fragment,null,Object(B.createElement)(i.BlockEditorKeyboardShortcuts,null),Object(B.createElement)(eo,null))}var no=to;function ro(){return x()("EditorGlobalKeyboardShortcuts",{alternative:"VisualEditorGlobalKeyboardShortcuts",plugin:"Gutenberg"}),Object(B.createElement)(to,null)}function oo(){return Object(B.createElement)(eo,{resetBlocksOnSave:!0})}var io=function(){var e=Object(p.useDispatch)("core/keyboard-shortcuts").registerShortcut;return Object(B.useEffect)((function(){e({name:"core/editor/save",category:"global",description:Object(Zt.__)("Save your changes."),keyCombination:{modifier:"primary",character:"s"}}),e({name:"core/editor/undo",category:"global",description:Object(Zt.__)("Undo your last changes."),keyCombination:{modifier:"primary",character:"z"}}),e({name:"core/editor/redo",category:"global",description:Object(Zt.__)("Redo your last undo."),keyCombination:{modifier:"primaryShift",character:"z"}})}),[e]),Object(B.createElement)(i.BlockEditorKeyboardShortcuts.Register,null)},co=n(3),so=n(18),ao=n(7),uo=Object(B.createElement)(ao.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(B.createElement)(ao.Path,{d:"M15.6 6.5l-1.1 1 2.9 3.3H8c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.3-.5h9.2L14.5 15l1.1 1.1 4.6-4.6-4.6-5z"}));var lo=Object(B.forwardRef)((function(e,t){var n=Object(p.useSelect)((function(e){return e("core/editor").hasEditorRedo()}),[]),r=Object(p.useDispatch)("core/editor").redo;return Object(B.createElement)(co.Button,Object(Sr.a)({},e,{ref:t,icon:uo,label:Object(Zt.__)("Redo"),shortcut:so.displayShortcut.primaryShift("z"),"aria-disabled":!n,onClick:n?r:void 0,className:"editor-history__redo"}))})),po=Object(B.createElement)(ao.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(B.createElement)(ao.Path,{d:"M18.3 11.7c-.6-.6-1.4-.9-2.3-.9H6.7l2.9-3.3-1.1-1-4.5 5L8.5 16l1-1-2.7-2.7H16c.5 0 .9.2 1.3.5 1 1 1 3.4 1 4.5v.3h1.5v-.2c0-1.5 0-4.3-1.5-5.7z"}));var bo=Object(B.forwardRef)((function(e,t){var n=Object(p.useSelect)((function(e){return e("core/editor").hasEditorUndo()}),[]),r=Object(p.useDispatch)("core/editor").undo;return Object(B.createElement)(co.Button,Object(Sr.a)({},e,{ref:t,icon:po,label:Object(Zt.__)("Undo"),shortcut:so.displayShortcut.primary("z"),"aria-disabled":!n,onClick:n?r:void 0,className:"editor-history__undo"}))}));var fo=Object(Er.compose)([Object(p.withSelect)((function(e){return{isValid:e("core/block-editor").isValidTemplate()}})),Object(p.withDispatch)((function(e){var t=e("core/block-editor"),n=t.setTemplateValidity;return{resetTemplateValidity:function(){return n(!0)},synchronizeTemplate:t.synchronizeTemplate}}))])((function(e){var t=e.isValid,n=Object($t.a)(e,["isValid"]);return t?null:Object(B.createElement)(co.Notice,{className:"editor-template-validation-notice",isDismissible:!1,status:"warning",actions:[{label:Object(Zt.__)("Keep it as is"),onClick:n.resetTemplateValidity},{label:Object(Zt.__)("Reset the template"),onClick:function(){window.confirm(Object(Zt.__)("Resetting the template may result in loss of content, do you want to continue?"))&&n.synchronizeTemplate()},isPrimary:!0}]},Object(Zt.__)("The content of your post doesn’t match the template assigned to your post type."))}));var ho=Object(Er.compose)([Object(p.withSelect)((function(e){return{notices:e("core/notices").getNotices()}})),Object(p.withDispatch)((function(e){return{onRemove:e("core/notices").removeNotice}}))])((function(e){var t=e.notices,n=e.onRemove,r=Object(v.filter)(t,{isDismissible:!0,type:"default"}),o=Object(v.filter)(t,{isDismissible:!1,type:"default"}),i=Object(v.filter)(t,{type:"snackbar"});return Object(B.createElement)(B.Fragment,null,Object(B.createElement)(co.NoticeList,{notices:o,className:"components-editor-notices__pinned"}),Object(B.createElement)(co.NoticeList,{notices:r,className:"components-editor-notices__dismissible",onRemove:n},Object(B.createElement)(fo,null)),Object(B.createElement)(co.SnackbarList,{notices:i,className:"components-editor-notices__snackbar",onRemove:n}))})),mo=n(160),vo=n(318),Oo=Object(B.createElement)(ao.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(B.createElement)(ao.Path,{d:"M7 5.5h10a.5.5 0 01.5.5v12a.5.5 0 01-.5.5H7a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM17 4H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V6a2 2 0 00-2-2zm-1 3.75H8v1.5h8v-1.5zM8 11h8v1.5H8V11zm6 3.25H8v1.5h6v-1.5z"}));function go(e){var t=e.record,n=e.checked,r=e.onChange,o=e.closePanel,i=t.name,c=t.kind,s=t.title,a=t.key,u=Object(p.useSelect)((function(e){var t,n=e("core").getEditedEntityRecord(c,i,a).blocks,r=void 0===n?[]:n,o=e("core/block-editor").getBlockParents(null===(t=r[0])||void 0===t?void 0:t.clientId);return o[o.length-1]}),[]),l=Object(p.useSelect)((function(e){return e("core/block-editor").getSelectedBlockClientId()===u}),[u]),d=l?Object(Zt.__)("Selected"):Object(Zt.__)("Select"),b=Object(p.useDispatch)("core/block-editor").selectBlock,f=Object(B.useCallback)((function(){return b(u)}),[u]),h=Object(B.useCallback)((function(){b(u),o()}),[u]);return Object(B.createElement)(co.PanelRow,null,Object(B.createElement)(co.CheckboxControl,{label:Object(B.createElement)("strong",null,s||Object(Zt.__)("Untitled")),checked:n,onChange:r}),u?Object(B.createElement)(B.Fragment,null,Object(B.createElement)(co.Button,{onClick:f,className:"entities-saved-states__find-entity",disabled:l},d),Object(B.createElement)(co.Button,{onClick:h,className:"entities-saved-states__find-entity-small",disabled:l},d)):null)}var jo={site:vo.a,page:Oo};function yo(e){var t=e.list,n=e.unselectedEntities,r=e.setUnselectedEntities,o=e.closePanel,i=t[0],c=Object(p.useSelect)((function(e){return e("core").getEntity(i.kind,i.name)}),[i.kind,i.name]),s=i.name,a=jo[s];return Object(B.createElement)(co.PanelBody,{title:c.label,initialOpen:!0,icon:a},t.map((function(e){return Object(B.createElement)(go,{key:e.key||"site",record:e,checked:!Object(v.some)(n,(function(t){return t.kind===e.kind&&t.name===e.name&&t.key===e.key})),onChange:function(t){return r(e,t)},closePanel:o})})))}var _o={wp_template_part:function(e){return Object(Zt._n)("template part","template parts",e)},wp_template:function(e){return Object(Zt._n)("template","templates",e)},post:function(e){return Object(Zt._n)("post","posts",e)},page:function(e){return Object(Zt._n)("page","pages",e)},site:function(e){return Object(Zt._n)("site","sites",e)}},Po={0:Object(Zt.__)("There are no changes."),1:Object(Zt.__)("Changes have been made to your %s."),2:Object(Zt.__)("Changes have been made to your %1$s and %2$s."),3:Object(Zt.__)("Changes have been made to your %1$s, %2$s, and %3$s."),4:Object(Zt.__)("Changes have been made to your %1$s, %2$s, %3$s, and %4$s."),5:Object(Zt.__)("Changes have been made to your %1$s, %2$s, %3$s, %4$s, and %5$s.")};function ko(e){var t=e.isOpen,n=e.close,r=Object(p.useSelect)((function(e){return{dirtyEntityRecords:e("core").__experimentalGetDirtyEntityRecords()}}),[]).dirtyEntityRecords,o=Object(p.useDispatch)("core").saveEditedEntityRecord,i=Object.values(Object(v.groupBy)(r,"name")),c=[];i.forEach((function(e){_o[e[0].name]&&c.push(_o[e[0].name](e.length))}));var s=Po[c.length]||Object(Zt.__)("Changes have been made to multiple entity types."),a=Zt.sprintf.apply(void 0,[s].concat(c)),u=Object(B.useState)([]),l=Object(E.a)(u,2),d=l[0],b=l[1],f=function(e,t){var n=e.kind,r=e.name,o=e.key;b(t?d.filter((function(e){return e.kind!==n||e.name!==r||e.key!==o})):[].concat(Object(Yt.a)(d),[{kind:n,name:r,key:o}]))},h=Object(B.useState)(!1),m=Object(E.a)(h,2),O=m[0],g=m[1],j=Object(B.useCallback)((function(){return n()}),[n]);return t?Object(B.createElement)("div",{className:"entities-saved-states__panel"},Object(B.createElement)("div",{className:"entities-saved-states__panel-header"},Object(B.createElement)(co.Button,{isPrimary:!0,disabled:r.length-d.length==0,onClick:function(){var e=r.filter((function(e){var t=e.kind,n=e.name,r=e.key;return!Object(v.some)(d,(function(e){return e.kind===t&&e.name===n&&e.key===r}))}));n(e),e.forEach((function(e){var t=e.kind,n=e.name,r=e.key;o(t,n,r)}))},className:"editor-entities-saved-states__save-button"},Object(Zt.__)("Save")),Object(B.createElement)(co.Button,{onClick:j,icon:mo.a,label:Object(Zt.__)("Close panel")})),Object(B.createElement)("div",{className:"entities-saved-states__text-prompt"},Object(B.createElement)("strong",null,Object(Zt.__)("Are you ready to save?")),Object(B.createElement)("p",null,a),Object(B.createElement)("p",null,Object(B.createElement)(co.Button,{onClick:function(){return g((function(e){return!e}))},isLink:!0,className:"entities-saved-states__review-changes-button"},O?Object(Zt.__)("Hide changes."):Object(Zt.__)("Review changes.")))),O&&i.map((function(e){return Object(B.createElement)(yo,{key:e[0].name,list:e,closePanel:j,unselectedEntities:d,setUnselectedEntities:f})}))):null}var So=n(16);function Eo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ur.a)(e);if(t){var o=Object(Ur.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Lr.a)(this,n)}}var wo=function(e){Object(Nr.a)(n,e);var t=Eo(n);function n(){var e;return Object(Rr.a)(this,n),(e=t.apply(this,arguments)).reboot=e.reboot.bind(Object(So.a)(e)),e.getContent=e.getContent.bind(Object(So.a)(e)),e.state={error:null},e}return Object(Dr.a)(n,[{key:"componentDidCatch",value:function(e){this.setState({error:e})}},{key:"reboot",value:function(){this.props.onError()}},{key:"getContent",value:function(){try{return Object(p.select)("core/editor").getEditedPostContent()}catch(e){}}},{key:"render",value:function(){var e=this.state.error;return e?Object(B.createElement)(i.Warning,{className:"editor-error-boundary",actions:[Object(B.createElement)(co.Button,{key:"recovery",onClick:this.reboot,isSecondary:!0},Object(Zt.__)("Attempt Recovery")),Object(B.createElement)(co.ClipboardButton,{key:"copy-post",text:this.getContent,isSecondary:!0},Object(Zt.__)("Copy Post Text")),Object(B.createElement)(co.ClipboardButton,{key:"copy-error",text:e.stack,isSecondary:!0},Object(Zt.__)("Copy Error"))]},Object(Zt.__)("The editor has encountered an unexpected error.")):this.props.children}}]),n}(B.Component),Co=window.requestIdleCallback?window.requestIdleCallback:window.requestAnimationFrame,To=Object(v.once)((function(){try{return window.sessionStorage.setItem("__wpEditorTestSessionStorage",""),window.sessionStorage.removeItem("__wpEditorTestSessionStorage"),!0}catch(e){return!1}}));function xo(){var e=Object(p.useSelect)((function(e){return{postId:e("core/editor").getCurrentPostId(),isEditedPostNew:e("core/editor").isEditedPostNew(),getEditedPostAttribute:e("core/editor").getEditedPostAttribute,hasRemoteAutosave:!!e("core/editor").getEditorSettings().autosave}}),[]),t=e.postId,n=e.isEditedPostNew,r=e.getEditedPostAttribute,o=e.hasRemoteAutosave,i=Object(p.useDispatch)("core/notices"),s=i.createWarningNotice,a=i.removeNotice,u=Object(p.useDispatch)("core/editor"),l=u.editPost,d=u.resetEditorBlocks;Object(B.useEffect)((function(){var e=function(e,t){return window.sessionStorage.getItem(gr(e,t))}(t,n);if(e){try{e=JSON.parse(e)}catch(e){return}var i=e,u={title:i.post_title,content:i.content,excerpt:i.excerpt};if(Object.keys(u).some((function(e){return u[e]!==r(e)}))){if(!o){var p=Object(v.uniqueId)("wpEditorAutosaveRestore");s(Object(Zt.__)("The backup of this post in your browser is different from the version below."),{id:p,actions:[{label:Object(Zt.__)("Restore the backup"),onClick:function(){l(Object(v.omit)(u,["content"])),d(Object(c.parse)(u.content)),a(p)}}]})}}else jr(t,n)}}),[n,t])}var Bo=Object(Er.ifCondition)(To)((function(){var e=Object(p.useDispatch)("core/editor").autosave,t=Object(B.useCallback)((function(){Co((function(){return e({local:!0})}))}),[]);xo(),function(){var e=Object(p.useSelect)((function(e){return{postId:e("core/editor").getCurrentPostId(),isEditedPostNew:e("core/editor").isEditedPostNew(),isDirty:e("core/editor").isEditedPostDirty(),isAutosaving:e("core/editor").isAutosavingPost(),didError:e("core/editor").didPostSaveRequestFail()}}),[]),t=e.postId,n=e.isEditedPostNew,r=e.isDirty,o=e.isAutosaving,i=e.didError,c=Object(B.useRef)(r),s=Object(B.useRef)(o);Object(B.useEffect)((function(){!i&&(s.current&&!o||c.current&&!r)&&jr(t,n),c.current=r,s.current=o}),[r,o,i]);var a=Object(Er.usePrevious)(n),u=Object(Er.usePrevious)(t);Object(B.useEffect)((function(){u===t&&a&&!n&&jr(t,!0)}),[n,t])}();var n=Object(p.useSelect)((function(e){return{localAutosaveInterval:e("core/editor").getEditorSettings().__experimentalLocalAutosaveInterval}}),[]).localAutosaveInterval;return Object(B.createElement)(Vr,{interval:n,autosave:t})}));var Io=Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getEditorSettings,o=e("core").getPostType,i=r().availableTemplates;return{postType:o(n("type")),availableTemplates:i}}))((function(e){var t=e.availableTemplates,n=e.postType,r=e.children;return!Object(v.get)(n,["supports","page-attributes"],!1)&&Object(v.isEmpty)(t)?null:r}));var Ao=Object(p.withSelect)((function(e){var t=e("core/editor").getEditedPostAttribute;return{postType:(0,e("core").getPostType)(t("type"))}}))((function(e){var t=e.postType,n=e.children,r=e.supportKeys,o=!0;return t&&(o=Object(v.some)(Object(v.castArray)(r),(function(e){return!!t.supports[e]}))),o?n:null})),Ro=Object(Er.withState)({orderInput:null})((function(e){var t=e.onUpdateOrder,n=e.order,r=void 0===n?0:n,o=e.orderInput,i=e.setState,c=null===o?r:o;return Object(B.createElement)(co.TextControl,{className:"editor-page-attributes__order",type:"number",label:Object(Zt.__)("Order"),value:c,onChange:function(e){i({orderInput:e});var n=Number(e);Number.isInteger(n)&&""!==Object(v.invoke)(e,["trim"])&&t(Number(e))},size:6,onBlur:function(){i({orderInput:null})}})}));var Do=Object(Er.compose)([Object(p.withSelect)((function(e){return{order:e("core/editor").getEditedPostAttribute("menu_order")}})),Object(p.withDispatch)((function(e){return{onUpdateOrder:function(t){e("core/editor").editPost({menu_order:t})}}}))])((function(e){return Object(B.createElement)(Ao,{supportKeys:"page-attributes"},Object(B.createElement)(Ro,e))}));function No(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lo(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:0;return Object(v.flatMap)(t,(function(t){return[{value:t.id,label:Object(v.repeat)("— ",n)+Object(v.unescape)(t.name)}].concat(Object(Yt.a)(e(t.children||[],n+1)))}))}(Uo(b.map((function(e){return{id:e.id,parent:e.parent,name:(t=e,(null==t||null===(n=t.title)||void 0===n?void 0:n.rendered)?t.title.rendered:"#".concat(t.id," (").concat(Object(Zt.__)("no title"),")"))};var t,n}))))}),[b]);return l&&d?Object(B.createElement)(co.ComboboxControl,{className:"editor-page-attributes__parent",label:d,value:s,options:f,onFilterValueChange:Object(v.debounce)((function(e){o(e)}),300),onChange:function(t){e({parent:t})}}):null};var Mo=Object(Er.compose)(Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=(0,t.getEditorSettings)().availableTemplates;return{selectedTemplate:n("template"),availableTemplates:r}})),Object(p.withDispatch)((function(e){return{onUpdate:function(t){e("core/editor").editPost({template:t||""})}}})))((function(e){var t=e.availableTemplates,n=e.selectedTemplate,r=e.onUpdate;return Object(v.isEmpty)(t)?null:Object(B.createElement)(co.SelectControl,{label:Object(Zt.__)("Template:"),value:n,onChange:r,className:"editor-page-attributes__template",options:Object(v.map)(t,(function(e,t){return{value:t,label:e}}))})}));var Vo=Object(Er.compose)([Object(p.withSelect)((function(e){var t=e("core/editor").getCurrentPost();return{hasAssignAuthorAction:Object(v.get)(t,["_links","wp:action-assign-author"],!1),postType:e("core/editor").getCurrentPostType(),authors:e("core").getUsers({who:"authors"})}})),Er.withInstanceId])((function(e){var t=e.hasAssignAuthorAction,n=e.authors,r=e.children;return!t||!n||n.length<2?null:Object(B.createElement)(Ao,{supportKeys:"author"},r)}));function zo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ho(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"";r({status:e,password:t})}}})),Er.withInstanceId])(Si);var wi=Object(p.withSelect)((function(e){return{visibility:e("core/editor").getEditedPostVisibility()}}))((function(e){var t=e.visibility;return Object(v.find)(Pi,{value:t}).label}));var Ci=Object(Er.compose)([Object(p.withSelect)((function(e){return{date:e("core/editor").getEditedPostAttribute("date")}})),Object(p.withDispatch)((function(e){return{onUpdateDate:function(t){e("core/editor").editPost({date:t})}}}))])((function(e){var t=e.date,n=e.onUpdateDate,r=Object(w.__experimentalGetSettings)(),o=/a(?!\\)/i.test(r.formats.time.toLowerCase().replace(/\\\\/g,"").split("").reverse().join(""));return Object(B.createElement)(co.DateTimePicker,{key:"date-time-picker",currentDate:t,onChange:function(e){n(e),document.activeElement.blur()},is12Hour:o})}));var Ti=Object(p.withSelect)((function(e){return{date:e("core/editor").getEditedPostAttribute("date"),isFloating:e("core/editor").isEditedPostDateFloating()}}))((function(e){var t=e.date,n=e.isFloating,r=Object(w.__experimentalGetSettings)();return t&&!n?Object(w.format)("".concat(r.formats.date," ").concat(r.formats.time),t):Object(Zt.__)("Immediately")}));function xi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ur.a)(e);if(t){var o=Object(Ur.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Lr.a)(this,n)}}function Bi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ii(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},n=this.props.taxonomy,r=Ii(Ii({},Ai),t),o=Ir()({path:Object(C.addQueryArgs)("/wp/v2/".concat(n.rest_base),r)});return o.then(Li).then((function(t){e.setState((function(e){return{availableTerms:e.availableTerms.concat(t.filter((function(t){return!Object(v.find)(e.availableTerms,(function(e){return e.id===t.id}))})))}})),e.updateSelectedTerms(e.props.terms)})),o}},{key:"updateSelectedTerms",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=t.reduce((function(t,n){var r=Object(v.find)(e.state.availableTerms,(function(e){return e.id===n}));return r&&t.push(r.name),t}),[]);this.setState({selectedTerms:n})}},{key:"findOrCreateTerm",value:function(e){var t=this,n=this.props.taxonomy,r=Object(v.escape)(e);return Ir()({path:"/wp/v2/".concat(n.rest_base),method:"POST",data:{name:r}}).catch((function(o){return"term_exists"===o.code?(t.addRequest=Ir()({path:Object(C.addQueryArgs)("/wp/v2/".concat(n.rest_base),Ii(Ii({},Ai),{},{search:r}))}).then(Li),t.addRequest.then((function(t){return Object(v.find)(t,(function(t){return Di(t.name,e)}))}))):Promise.reject(o)})).then(Ni)}},{key:"onChange",value:function(e){var t=this,n=Object(v.uniqBy)(e,(function(e){return e.toLowerCase()}));this.setState({selectedTerms:n});var r=n.filter((function(e){return!Object(v.find)(t.state.availableTerms,(function(t){return Di(t.name,e)}))})),o=function(e,t){return e.map((function(e){return Object(v.find)(t,(function(t){return Di(t.name,e)})).id}))};if(0===r.length)return this.props.onUpdateTerms(o(n,this.state.availableTerms),this.props.taxonomy.rest_base);Promise.all(r.map(this.findOrCreateTerm)).then((function(e){var r=t.state.availableTerms.concat(e);return t.setState({availableTerms:r}),t.props.onUpdateTerms(o(n,r),t.props.taxonomy.rest_base)}))}},{key:"searchTerms",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";Object(v.invoke)(this.searchRequest,["abort"]),e.length>=3&&(this.searchRequest=this.fetchTerms({search:e}))}},{key:"render",value:function(){var e=this.props,t=e.slug,n=e.taxonomy;if(!e.hasAssignAction)return null;var r=this.state,o=r.loading,i=r.availableTerms,c=r.selectedTerms,s=i.map((function(e){return e.name})),a=Object(v.get)(n,["labels","add_new_item"],"post_tag"===t?Object(Zt.__)("Add new tag"):Object(Zt.__)("Add new Term")),u=Object(v.get)(n,["labels","singular_name"],"post_tag"===t?Object(Zt.__)("Tag"):Object(Zt.__)("Term")),l=Object(Zt.sprintf)(Object(Zt._x)("%s added","term"),u),d=Object(Zt.sprintf)(Object(Zt._x)("%s removed","term"),u),p=Object(Zt.sprintf)(Object(Zt._x)("Remove %s","term"),u);return Object(B.createElement)(co.FormTokenField,{value:c,suggestions:s,onChange:this.onChange,onInputChange:this.searchTerms,maxSuggestions:20,disabled:o,label:a,messages:{added:l,removed:d,remove:p}})}}]),n}(B.Component),Fi=Object(Er.compose)(Object(p.withSelect)((function(e,t){var n=t.slug,r=e("core/editor").getCurrentPost,o=(0,e("core").getTaxonomy)(n);return{hasCreateAction:!!o&&Object(v.get)(r(),["_links","wp:action-create-"+o.rest_base],!1),hasAssignAction:!!o&&Object(v.get)(r(),["_links","wp:action-assign-"+o.rest_base],!1),terms:o?e("core/editor").getEditedPostAttribute(o.rest_base):[],taxonomy:o}})),Object(p.withDispatch)((function(e){return{onUpdateTerms:function(t,n){e("core/editor").editPost(Object(d.a)({},n,t))}}})),Object(co.withFilters)("editor.PostTaxonomyType"))(Ui);function Mi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ur.a)(e);if(t){var o=Object(Ur.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Lr.a)(this,n)}}var Vi=function(){var e=[Object(Zt.__)("Suggestion:"),Object(B.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(Zt.__)("Add tags"))];return Object(B.createElement)(co.PanelBody,{initialOpen:!1,title:e},Object(B.createElement)("p",null,Object(Zt.__)("Tags help users and search engines navigate your site and find your content. Add a few keywords to describe your post.")),Object(B.createElement)(Fi,{slug:"post_tag"}))},zi=function(e){Object(Nr.a)(n,e);var t=Mi(n);function n(e){var r;return Object(Rr.a)(this,n),(r=t.call(this,e)).state={hadTagsWhenOpeningThePanel:e.hasTags},r}return Object(Dr.a)(n,[{key:"render",value:function(){return this.state.hadTagsWhenOpeningThePanel?null:Object(B.createElement)(Vi,null)}}]),n}(B.Component),Hi=Object(Er.compose)(Object(p.withSelect)((function(e){var t=e("core/editor").getCurrentPostType(),n=e("core").getTaxonomy("post_tag"),r=n&&e("core/editor").getEditedPostAttribute(n.rest_base);return{areTagsFetched:void 0!==n,isPostTypeSupported:n&&Object(v.some)(n.types,(function(e){return e===t})),hasTags:r&&r.length}})),Object(Er.ifCondition)((function(e){var t=e.areTagsFetched;return e.isPostTypeSupported&&t})))(zi),Wi=function(e,t){var n=oi.filter((function(t){return Object(v.includes)(e,t.id)}));return Object(v.find)(n,(function(e){return e.id===t}))},Gi=function(e){var t=e.suggestedPostFormat,n=e.suggestionText,r=e.onUpdatePostFormat;return Object(B.createElement)(co.Button,{isLink:!0,onClick:function(){return r(t)}},n)};function Ki(){var e=Object(p.useSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getSuggestedPostFormat,o=Object(v.get)(e("core").getThemeSupports(),["formats"],[]);return{currentPostFormat:n("format"),suggestion:Wi(o,r())}}),[]),t=e.currentPostFormat,n=e.suggestion,r=Object(p.useDispatch)("core/editor").editPost,o=[Object(Zt.__)("Suggestion:"),Object(B.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(Zt.__)("Use a post format"))];return n&&n.id!==t?Object(B.createElement)(co.PanelBody,{initialOpen:!1,title:o},Object(B.createElement)("p",null,Object(Zt.__)("Your theme uses post formats to highlight different kinds of content, like images or videos. Apply a post format to see this special styling.")),Object(B.createElement)("p",null,Object(B.createElement)(Gi,{onUpdatePostFormat:function(e){return r({format:e})},suggestedPostFormat:n.id,suggestionText:Object(Zt.sprintf)(Object(Zt.__)('Apply the "%1$s" format.'),n.caption)}))):null}var qi=Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPost,r=t.isEditedPostBeingScheduled;return{hasPublishAction:Object(v.get)(n(),["_links","wp:action-publish"],!1),isBeingScheduled:r()}}))((function(e){var t,n,r=e.hasPublishAction,o=e.isBeingScheduled,i=e.children;return r?o?(t=Object(Zt.__)("Are you ready to schedule?"),n=Object(Zt.__)("Your work will be published at the specified date and time.")):(t=Object(Zt.__)("Are you ready to publish?"),n=Object(Zt.__)("Double-check your settings before publishing.")):(t=Object(Zt.__)("Are you ready to submit for review?"),n=Object(Zt.__)("When you’re ready, submit your work for review, and an Editor will be able to approve it for you.")),Object(B.createElement)("div",{className:"editor-post-publish-panel__prepublish"},Object(B.createElement)("div",null,Object(B.createElement)("strong",null,t)),Object(B.createElement)("p",null,n),r&&Object(B.createElement)(B.Fragment,null,Object(B.createElement)(co.PanelBody,{initialOpen:!1,title:[Object(Zt.__)("Visibility:"),Object(B.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(B.createElement)(wi,null))]},Object(B.createElement)(Ei,null)),Object(B.createElement)(co.PanelBody,{initialOpen:!1,title:[Object(Zt.__)("Publish:"),Object(B.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(B.createElement)(Ti,null))]},Object(B.createElement)(Ci,null))),Object(B.createElement)(Ki,null),Object(B.createElement)(Hi,null),i)})),Qi=n(69);function $i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ur.a)(e);if(t){var o=Object(Ur.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Lr.a)(this,n)}}var Yi=function(e){Object(Nr.a)(n,e);var t=$i(n);function n(){var e;return Object(Rr.a)(this,n),(e=t.apply(this,arguments)).state={showCopyConfirmation:!1},e.onCopy=e.onCopy.bind(Object(So.a)(e)),e.onSelectInput=e.onSelectInput.bind(Object(So.a)(e)),e.postLink=Object(B.createRef)(),e}return Object(Dr.a)(n,[{key:"componentDidMount",value:function(){this.props.focusOnMount&&this.postLink.current.focus()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.dismissCopyConfirmation)}},{key:"onCopy",value:function(){var e=this;this.setState({showCopyConfirmation:!0}),clearTimeout(this.dismissCopyConfirmation),this.dismissCopyConfirmation=setTimeout((function(){e.setState({showCopyConfirmation:!1})}),4e3)}},{key:"onSelectInput",value:function(e){e.target.select()}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.isScheduled,r=e.post,o=e.postType,i=Object(v.get)(o,["labels","singular_name"]),c=Object(v.get)(o,["labels","view_item"]),s="future"===r.status?function(e){var t=e.slug;return e.permalink_template.includes("%postname%")?e.permalink_template.replace("%postname%",t):e.permalink_template}(r):r.link,a=n?Object(B.createElement)(B.Fragment,null,Object(Zt.__)("is now scheduled. It will go live on")," ",Object(B.createElement)(Ti,null),"."):Object(Zt.__)("is now live.");return Object(B.createElement)("div",{className:"post-publish-panel__postpublish"},Object(B.createElement)(co.PanelBody,{className:"post-publish-panel__postpublish-header"},Object(B.createElement)("a",{ref:this.postLink,href:s},Object(Qi.decodeEntities)(r.title)||Object(Zt.__)("(no title)"))," ",a),Object(B.createElement)(co.PanelBody,null,Object(B.createElement)("p",{className:"post-publish-panel__postpublish-subheader"},Object(B.createElement)("strong",null,Object(Zt.__)("What’s next?"))),Object(B.createElement)(co.TextControl,{className:"post-publish-panel__postpublish-post-address",readOnly:!0,label:Object(Zt.sprintf)(Object(Zt.__)("%s address"),i),value:Object(C.safeDecodeURIComponent)(s),onFocus:this.onSelectInput}),Object(B.createElement)("div",{className:"post-publish-panel__postpublish-buttons"},!n&&Object(B.createElement)(co.Button,{isSecondary:!0,href:s},c),Object(B.createElement)(co.ClipboardButton,{isSecondary:!0,text:s,onCopy:this.onCopy},this.state.showCopyConfirmation?Object(Zt.__)("Copied!"):Object(Zt.__)("Copy Link")))),t)}}]),n}(B.Component),Xi=Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getCurrentPost,o=t.isCurrentPostScheduled,i=e("core").getPostType;return{post:r(),postType:i(n("type")),isScheduled:o()}}))(Yi);function Ji(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ur.a)(e);if(t){var o=Object(Ur.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Lr.a)(this,n)}}var Zi=function(e){Object(Nr.a)(n,e);var t=Ji(n);function n(){var e;return Object(Rr.a)(this,n),(e=t.apply(this,arguments)).onSubmit=e.onSubmit.bind(Object(So.a)(e)),e}return Object(Dr.a)(n,[{key:"componentDidUpdate",value:function(e){e.isPublished&&!this.props.isSaving&&this.props.isDirty&&this.props.onClose()}},{key:"onSubmit",value:function(){var e=this.props,t=e.onClose,n=e.hasPublishAction,r=e.isPostTypeViewable;n&&r||t()}},{key:"render",value:function(){var e=this.props,t=e.forceIsDirty,n=e.forceIsSaving,r=e.isBeingScheduled,o=e.isPublished,i=e.isPublishSidebarEnabled,c=e.isScheduled,s=e.isSaving,a=e.onClose,u=e.onTogglePublishSidebar,l=e.PostPublishExtension,d=e.PrePublishExtension,p=Object($t.a)(e,["forceIsDirty","forceIsSaving","isBeingScheduled","isPublished","isPublishSidebarEnabled","isScheduled","isSaving","onClose","onTogglePublishSidebar","PostPublishExtension","PrePublishExtension"]),b=Object(v.omit)(p,["hasPublishAction","isDirty","isPostTypeViewable"]),f=o||c&&r,h=!f&&!s,m=f&&!s;return Object(B.createElement)("div",Object(Sr.a)({className:"editor-post-publish-panel"},b),Object(B.createElement)("div",{className:"editor-post-publish-panel__header"},m?Object(B.createElement)(co.Button,{onClick:a,icon:_i.a,label:Object(Zt.__)("Close panel")}):Object(B.createElement)(B.Fragment,null,Object(B.createElement)("div",{className:"editor-post-publish-panel__header-publish-button"},Object(B.createElement)(yi,{focusOnMount:!0,onSubmit:this.onSubmit,forceIsDirty:t,forceIsSaving:n})),Object(B.createElement)("div",{className:"editor-post-publish-panel__header-cancel-button"},Object(B.createElement)(co.Button,{onClick:a,isSecondary:!0},Object(Zt.__)("Cancel"))))),Object(B.createElement)("div",{className:"editor-post-publish-panel__content"},h&&Object(B.createElement)(qi,null,d&&Object(B.createElement)(d,null)),m&&Object(B.createElement)(Xi,{focusOnMount:!0},l&&Object(B.createElement)(l,null)),s&&Object(B.createElement)(co.Spinner,null)),Object(B.createElement)("div",{className:"editor-post-publish-panel__footer"},Object(B.createElement)(co.CheckboxControl,{label:Object(Zt.__)("Always show pre-publish checks."),checked:i,onChange:u})))}}]),n}(B.Component),ec=Object(Er.compose)([Object(p.withSelect)((function(e){var t=e("core").getPostType,n=e("core/editor"),r=n.getCurrentPost,o=n.getEditedPostAttribute,i=n.isCurrentPostPublished,c=n.isCurrentPostScheduled,s=n.isEditedPostBeingScheduled,a=n.isEditedPostDirty,u=n.isSavingPost,l=e("core/editor").isPublishSidebarEnabled,d=t(o("type"));return{hasPublishAction:Object(v.get)(r(),["_links","wp:action-publish"],!1),isPostTypeViewable:Object(v.get)(d,["viewable"],!1),isBeingScheduled:s(),isDirty:a(),isPublished:i(),isPublishSidebarEnabled:l(),isSaving:u(),isScheduled:c()}})),Object(p.withDispatch)((function(e,t){var n=t.isPublishSidebarEnabled,r=e("core/editor"),o=r.disablePublishSidebar,i=r.enablePublishSidebar;return{onTogglePublishSidebar:function(){n?o():i()}}})),co.withFocusReturn,co.withConstrainedTabbing])(Zi),tc=n(141),nc=Object(B.createElement)(ao.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(B.createElement)(ao.Path,{d:"M14.9 9c1.8.2 3.1 1.7 3.1 3.5 0 1.9-1.6 3.5-3.5 3.5h-10C2.6 16 1 14.4 1 12.5 1 10.7 2.3 9.3 4.1 9 4 8.9 4 8.7 4 8.5 4 7.1 5.1 6 6.5 6c.3 0 .7.1.9.2C8.1 4.9 9.4 4 11 4c2.2 0 4 1.8 4 4 0 .4-.1.7-.1 1z"})),rc=n(161),oc=Object(B.createElement)(ao.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(B.createElement)(ao.Path,{d:"M14.8 9c.1-.3.2-.6.2-1 0-2.2-1.8-4-4-4-1.5 0-2.9.9-3.5 2.2-.3-.1-.7-.2-1-.2C5.1 6 4 7.1 4 8.5c0 .2 0 .4.1.5-1.8.3-3.1 1.7-3.1 3.5C1 14.4 2.6 16 4.5 16H8v-3H5l4.5-4.5L14 13h-3v3h3.5c1.9 0 3.5-1.6 3.5-3.5 0-1.8-1.4-3.3-3.2-3.5z"}));var ic=Object(Er.compose)([Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.isSavingPost,r=t.isCurrentPostPublished,o=t.isCurrentPostScheduled;return{isSaving:n(),isPublished:r(),isScheduled:o()}})),Object(p.withDispatch)((function(e){var t=e("core/editor"),n=t.editPost,r=t.savePost;return{onClick:function(){n({status:"draft"}),r()}}}))])((function(e){var t=e.isSaving,n=e.isPublished,r=e.isScheduled,o=e.onClick,i=Object(Er.useViewportMatch)("small","<");return n||r?Object(B.createElement)(co.Button,{className:"editor-post-switch-to-draft",onClick:function(){var e;n?e=Object(Zt.__)("Are you sure you want to unpublish this post?"):r&&(e=Object(Zt.__)("Are you sure you want to unschedule this post?")),window.confirm(e)&&o()},disabled:t,isTertiary:!0},i?Object(Zt.__)("Draft"):Object(Zt.__)("Switch to draft")):null}));function cc(e){var t=e.forceIsDirty,n=e.forceIsSaving,r=e.showIconLabels,o=void 0!==r&&r,i=Object(B.useState)(!1),c=Object(E.a)(i,2),s=c[0],a=c[1],u=Object(Er.useViewportMatch)("small"),l=Object(p.useSelect)((function(e){var r,o,i,c=e("core/editor"),s=c.isEditedPostNew,a=c.isCurrentPostPublished,u=c.isCurrentPostScheduled,l=c.isEditedPostDirty,d=c.isSavingPost,p=c.isEditedPostSaveable,b=c.getCurrentPost,f=c.isAutosavingPost,h=c.getEditedPostAttribute;return{isAutosaving:f(),isDirty:t||l(),isNew:s(),isPending:"pending"===h("status"),isPublished:a(),isSaving:n||d(),isSaveable:p(),isScheduled:u(),hasPublishAction:null!==(r=null===(o=b())||void 0===o||null===(i=o._links)||void 0===i?void 0:i["wp:action-publish"])&&void 0!==r&&r}}),[t,n]),d=l.isAutosaving,b=l.isDirty,f=l.isNew,h=l.isPending,m=l.isPublished,v=l.isSaveable,O=l.isSaving,g=l.isScheduled,j=l.hasPublishAction,y=Object(p.useDispatch)("core/editor").savePost,_=Object(Er.usePrevious)(O);if(Object(B.useEffect)((function(){var e;return _&&!O&&(a(!0),e=setTimeout((function(){a(!1)}),1e3)),function(){return clearTimeout(e)}}),[O]),O){var P=Hr()("editor-post-saved-state","is-saving",{"is-autosaving":d});return Object(B.createElement)(co.Animate,{type:"loading"},(function(e){var t=e.className;return Object(B.createElement)("span",{className:Hr()(P,t)},Object(B.createElement)(tc.a,{icon:nc}),d?Object(Zt.__)("Autosaving"):Object(Zt.__)("Saving"))}))}if(m||g)return Object(B.createElement)(ic,null);if(!v)return null;if(s||!f&&!b)return Object(B.createElement)("span",{className:"editor-post-saved-state is-saved"},Object(B.createElement)(tc.a,{icon:rc.a}),Object(Zt.__)("Saved"));if(!j&&h)return null;var k=h?Object(Zt.__)("Save as pending"):Object(Zt.__)("Save draft"),S=Object(Zt.__)("Save");return u?Object(B.createElement)(co.Button,{className:"editor-post-save-draft",onClick:function(){return y()},shortcut:so.displayShortcut.primary("s"),isTertiary:!0},k):Object(B.createElement)(co.Button,{className:"editor-post-save-draft",label:k,onClick:function(){return y()},shortcut:so.displayShortcut.primary("s"),icon:oc},o&&S)}var sc=Object(Er.compose)([Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPost,r=t.getCurrentPostType;return{hasPublishAction:Object(v.get)(n(),["_links","wp:action-publish"],!1),postType:r()}}))])((function(e){var t=e.hasPublishAction,n=e.children;return t?n:null}));function ac(e){var t=e.children;return Object(B.createElement)(Ao,{supportKeys:"slug"},t)}function uc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ur.a)(e);if(t){var o=Object(Ur.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Lr.a)(this,n)}}var lc=function(e){Object(Nr.a)(n,e);var t=uc(n);function n(e){var r,o=e.postSlug,i=e.postTitle,c=e.postID;return Object(Rr.a)(this,n),(r=t.apply(this,arguments)).state={editedSlug:Object(C.safeDecodeURIComponent)(o)||V(i)||c},r.setSlug=r.setSlug.bind(Object(So.a)(r)),r}return Object(Dr.a)(n,[{key:"setSlug",value:function(e){var t=this.props,n=t.postSlug,r=t.onUpdateSlug,o=V(e.target.value);o!==n&&r(o)}},{key:"render",value:function(){var e=this,t=this.props.instanceId,n=this.state.editedSlug,r="editor-post-slug-"+t;return Object(B.createElement)(ac,null,Object(B.createElement)("label",{htmlFor:r},Object(Zt.__)("Slug")),Object(B.createElement)("input",{type:"text",id:r,value:n,onChange:function(t){return e.setState({editedSlug:t.target.value})},onBlur:this.setSlug,className:"editor-post-slug__input"}))}}]),n}(B.Component),dc=Object(Er.compose)([Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPost,r=t.getEditedPostAttribute,o=n().id;return{postSlug:r("slug"),postTitle:r("title"),postID:o}})),Object(p.withDispatch)((function(e){var t=e("core/editor").editPost;return{onUpdateSlug:function(e){t({slug:e})}}})),Er.withInstanceId])(lc);var pc=Object(Er.compose)([Object(p.withSelect)((function(e){var t=e("core/editor").getCurrentPost();return{hasStickyAction:Object(v.get)(t,["_links","wp:action-sticky"],!1),postType:e("core/editor").getCurrentPostType()}}))])((function(e){var t=e.hasStickyAction,n=e.postType,r=e.children;return"post"===n&&t?r:null}));var bc=Object(Er.compose)([Object(p.withSelect)((function(e){return{postSticky:e("core/editor").getEditedPostAttribute("sticky")}})),Object(p.withDispatch)((function(e){return{onUpdateSticky:function(t){e("core/editor").editPost({sticky:t})}}}))])((function(e){var t=e.onUpdateSticky,n=e.postSticky,r=void 0!==n&&n;return Object(B.createElement)(pc,null,Object(B.createElement)(co.CheckboxControl,{label:Object(Zt.__)("Stick to the top of the blog"),checked:r,onChange:function(){return t(!r)}}))}));function fc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hc(e){for(var t=1;t0)};return e.sort((function(e,t){var r=n(e),o=n(t);return r===o?0:r&&!o?-1:!r&&o?1:0})),e}},{key:"setFilterValue",value:function(e){var t=this.state.availableTermsTree,n=e.target.value,r=t.map(this.getFilterMatcher(n)).filter((function(e){return e}));this.setState({filterValue:n,filteredTermsTree:r});var o=function e(t){for(var n=0,r=0;r0&&(r.children=r.children.map(t).filter((function(e){return e}))),(-1!==r.name.toLowerCase().indexOf(e.toLowerCase())||r.children.length>0)&&r}}},{key:"renderTerms",value:function(e){var t=this,n=this.props.terms,r=void 0===n?[]:n;return e.map((function(e){return Object(B.createElement)("div",{key:e.id,className:"editor-post-taxonomies__hierarchical-terms-choice"},Object(B.createElement)(co.CheckboxControl,{checked:-1!==r.indexOf(e.id),onChange:function(){var n=parseInt(e.id,10);t.onChange(n)},label:Object(v.unescape)(e.name)}),!!e.children.length&&Object(B.createElement)("div",{className:"editor-post-taxonomies__hierarchical-terms-subchoices"},t.renderTerms(e.children)))}))}},{key:"render",value:function(){var e=this.props,t=e.slug,n=e.taxonomy,r=e.instanceId,o=e.hasCreateAction;if(!e.hasAssignAction)return null;var i=this.state,c=i.availableTermsTree,s=i.availableTerms,a=i.filteredTermsTree,u=i.formName,l=i.formParent,d=i.loading,p=i.showForm,b=i.filterValue,f=function(e,r,o){return Object(v.get)(n,["labels",e],"category"===t?r:o)},h=f("add_new_item",Object(Zt.__)("Add new category"),Object(Zt.__)("Add new term")),m=f("new_item_name",Object(Zt.__)("Add new category"),Object(Zt.__)("Add new term")),O=f("parent_item",Object(Zt.__)("Parent Category"),Object(Zt.__)("Parent Term")),g="— ".concat(O," —"),j=h,y="editor-post-taxonomies__hierarchical-terms-input-".concat(r),_="editor-post-taxonomies__hierarchical-terms-filter-".concat(r),P=Object(v.get)(this.props.taxonomy,["labels","search_items"],Object(Zt.__)("Search Terms")),k=Object(v.get)(this.props.taxonomy,["name"],Object(Zt.__)("Terms")),S=s.length>=8;return[S&&Object(B.createElement)("label",{key:"filter-label",htmlFor:_},P),S&&Object(B.createElement)("input",{type:"search",id:_,value:b,onChange:this.setFilterValue,className:"editor-post-taxonomies__hierarchical-terms-filter",key:"term-filter-input"}),Object(B.createElement)("div",{className:"editor-post-taxonomies__hierarchical-terms-list",key:"term-list",tabIndex:"0",role:"group","aria-label":k},this.renderTerms(""!==b?a:c)),!d&&o&&Object(B.createElement)(co.Button,{key:"term-add-button",onClick:this.onToggleForm,className:"editor-post-taxonomies__hierarchical-terms-add","aria-expanded":p,isLink:!0},h),p&&Object(B.createElement)("form",{onSubmit:this.onAddTerm,key:"hierarchical-terms-form"},Object(B.createElement)("label",{htmlFor:y,className:"editor-post-taxonomies__hierarchical-terms-label"},m),Object(B.createElement)("input",{type:"text",id:y,className:"editor-post-taxonomies__hierarchical-terms-input",value:u,onChange:this.onChangeFormName,required:!0}),!!s.length&&Object(B.createElement)(co.TreeSelect,{label:O,noOptionLabel:g,onChange:this.onChangeFormParent,selectedId:l,tree:c}),Object(B.createElement)(co.Button,{isSecondary:!0,type:"submit",className:"editor-post-taxonomies__hierarchical-terms-submit"},j))]}}]),n}(B.Component),gc=Object(Er.compose)([Object(p.withSelect)((function(e,t){var n=t.slug,r=e("core/editor").getCurrentPost,o=(0,e("core").getTaxonomy)(n);return{hasCreateAction:!!o&&Object(v.get)(r(),["_links","wp:action-create-"+o.rest_base],!1),hasAssignAction:!!o&&Object(v.get)(r(),["_links","wp:action-assign-"+o.rest_base],!1),terms:o?e("core/editor").getEditedPostAttribute(o.rest_base):[],taxonomy:o}})),Object(p.withDispatch)((function(e){return{onUpdateTerms:function(t,n){e("core/editor").editPost(Object(d.a)({},n,t))}}})),co.withSpokenMessages,Er.withInstanceId,Object(co.withFilters)("editor.PostTaxonomyType")])(Oc);var jc=Object(Er.compose)([Object(p.withSelect)((function(e){return{postType:e("core/editor").getCurrentPostType(),taxonomies:e("core").getTaxonomies({per_page:-1})}}))])((function(e){var t=e.postType,n=e.taxonomies,r=e.taxonomyWrapper,o=void 0===r?v.identity:r,i=Object(v.filter)(n,(function(e){return Object(v.includes)(e.types,t)}));return Object(v.filter)(i,(function(e){return e.visibility.show_ui})).map((function(e){var t=e.hierarchical?gc:Fi;return Object(B.createElement)(B.Fragment,{key:"taxonomy-".concat(e.slug)},o(Object(B.createElement)(t,{slug:e.slug}),e))}))}));var yc=Object(Er.compose)([Object(p.withSelect)((function(e){return{postType:e("core/editor").getCurrentPostType(),taxonomies:e("core").getTaxonomies({per_page:-1})}}))])((function(e){var t=e.postType,n=e.taxonomies,r=e.children;return Object(v.some)(n,(function(e){return Object(v.includes)(e.types,t)}))?r:null})),_c=n(100),Pc=n.n(_c);function kc(){var e=Object(p.useSelect)((function(e){return e("core/editor").getEditedPostContent()}),[]),t=Object(p.useDispatch)("core/editor"),n=t.editPost,r=t.resetEditorBlocks,o=Object(B.useState)(e),i=Object(E.a)(o,2),s=i[0],a=i[1],u=Object(B.useState)(!1),l=Object(E.a)(u,2),d=l[0],b=l[1],f=Object(Er.useInstanceId)(kc);d||s===e||a(e);return Object(B.createElement)(B.Fragment,null,Object(B.createElement)(co.VisuallyHidden,{as:"label",htmlFor:"post-content-".concat(f)},Object(Zt.__)("Type text or HTML")),Object(B.createElement)(Pc.a,{autoComplete:"off",dir:"auto",value:s,onChange:function(e){var t=e.target.value;n({content:t}),a(t),b(!0)},onBlur:function(){if(d){var e=Object(c.parse)(s);r(e),b(!1)}},className:"editor-post-text-editor",id:"post-content-".concat(f),placeholder:Object(Zt.__)("Start writing with text or HTML")}))}function Sc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ur.a)(e);if(t){var o=Object(Ur.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Lr.a)(this,n)}}var Ec=/[\r\n]+/g,wc=function(e){Object(Nr.a)(n,e);var t=Sc(n);function n(){var e;return Object(Rr.a)(this,n),(e=t.apply(this,arguments)).onChange=e.onChange.bind(Object(So.a)(e)),e.onSelect=e.onSelect.bind(Object(So.a)(e)),e.onUnselect=e.onUnselect.bind(Object(So.a)(e)),e.onKeyDown=e.onKeyDown.bind(Object(So.a)(e)),e.onPaste=e.onPaste.bind(Object(So.a)(e)),e.state={isSelected:!1},e}return Object(Dr.a)(n,[{key:"onSelect",value:function(){this.setState({isSelected:!0}),this.props.clearSelectedBlock()}},{key:"onUnselect",value:function(){this.setState({isSelected:!1})}},{key:"onChange",value:function(e){var t=e.target.value.replace(Ec," ");this.props.onUpdate(t)}},{key:"onKeyDown",value:function(e){e.keyCode===so.ENTER&&(e.preventDefault(),this.props.onEnterPress())}},{key:"onPaste",value:function(e){var t=this.props,n=t.title,r=t.onInsertBlockAfter,o=t.onUpdate,i=e.clipboardData,s="",a="";try{s=i.getData("text/plain"),a=i.getData("text/html")}catch(e){try{a=i.getData("Text")}catch(e){return}}window.console.log("Received HTML:\n\n",a),window.console.log("Received plain text:\n\n",s);var u=Object(c.pasteHandler)({HTML:a,plainText:s});if("string"!=typeof u&&u.length){e.preventDefault();var l=Object(E.a)(u,1)[0];n||"core/heading"!==l.name&&"core/paragraph"!==l.name?r(u):(o(l.attributes.content),r(u.slice(1)))}}},{key:"render",value:function(){var e=this.props,t=e.hasFixedToolbar,n=e.isCleanNewPost,r=e.isFocusMode,o=e.instanceId,i=e.placeholder,c=e.title,s=this.state.isSelected,a=Hr()("wp-block editor-post-title editor-post-title__block",{"is-selected":s,"is-focus-mode":r,"has-fixed-toolbar":t}),u=Object(Qi.decodeEntities)(i);return Object(B.createElement)(Ao,{supportKeys:"title"},Object(B.createElement)("div",{className:a},Object(B.createElement)(co.VisuallyHidden,{as:"label",htmlFor:"post-title-".concat(o)},u||Object(Zt.__)("Add title")),Object(B.createElement)(Pc.a,{id:"post-title-".concat(o),className:"editor-post-title__input",value:c,onChange:this.onChange,placeholder:u||Object(Zt.__)("Add title"),onFocus:this.onSelect,onBlur:this.onUnselect,onKeyDown:this.onKeyDown,onKeyPress:this.onUnselect,onPaste:this.onPaste,autoFocus:(document.body===document.activeElement||!document.activeElement)&&n})))}}]),n}(B.Component),Cc=Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.isCleanNewPost,o=(0,e("core/block-editor").getSettings)(),i=o.titlePlaceholder,c=o.focusMode,s=o.hasFixedToolbar;return{isCleanNewPost:r(),title:n("title"),placeholder:i,isFocusMode:c,hasFixedToolbar:s}})),Tc=Object(p.withDispatch)((function(e){var t=e("core/block-editor"),n=t.insertDefaultBlock,r=t.clearSelectedBlock,o=t.insertBlocks,i=e("core/editor").editPost;return{onEnterPress:function(){n(void 0,void 0,0)},onInsertBlockAfter:function(e){o(e,0)},onUpdate:function(e){i({title:e})},clearSelectedBlock:r}})),xc=Object(Er.compose)(Cc,Tc,Er.withInstanceId)(wc);var Bc=Object(Er.compose)([Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.isEditedPostNew,r=t.getCurrentPostId,o=t.getCurrentPostType;return{isNew:n(),postId:r(),postType:o()}})),Object(p.withDispatch)((function(e){return{trashPost:e("core/editor").trashPost}}))])((function(e){var t=e.isNew,n=e.postId,r=e.postType,o=Object($t.a)(e,["isNew","postId","postType"]);return t||!n?null:Object(B.createElement)(co.Button,{className:"editor-post-trash",isDestructive:!0,isTertiary:!0,onClick:function(){return o.trashPost(n,r)}},Object(Zt.__)("Move to trash"))}));var Ic=Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.isEditedPostNew,r=t.getCurrentPostId,o=t.getCurrentPostType,i=e("core"),c=i.getPostType,s=i.canUser,a=r(),u=c(o()),l=(null==u?void 0:u.rest_base)||"";return{isNew:n(),postId:a,canUserDelete:!(!a||!l)&&s("delete",l,a)}}))((function(e){var t=e.isNew,n=e.postId,r=e.canUserDelete,o=e.children;return!t&&n&&r?o:null}));var Ac=Object(Er.compose)([Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPost,r=t.getCurrentPostType;return{hasPublishAction:Object(v.get)(n(),["_links","wp:action-publish"],!1),postType:r()}}))])((function(e){var t=e.hasPublishAction;return(0,e.render)({canEdit:t})})),Rc=Object(B.createElement)(ao.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(B.createElement)(ao.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"})),Dc=n(128);function Nc(){var e=Object(p.useSelect)((function(e){return e("core/editor").getEditedPostAttribute("content")})),t=Object(Zt._x)("words","Word count type. Do not translate!");return Object(B.createElement)("span",{className:"word-count"},Object(Dc.count)(e,t))}function Lc(){var e=Object(p.useSelect)((function(e){return e("core/editor").getEditedPostAttribute("content")}));return Object(Dc.count)(e,"characters_including_spaces")}var Uc=function(e){var t=e.hasOutlineItemsDisabled,n=e.onRequestClose,r=Object(p.useSelect)((function(e){var t=e("core/block-editor").getGlobalBlockCount;return{headingCount:t("core/heading"),paragraphCount:t("core/paragraph"),numberOfBlocks:t()}}),[]),o=r.headingCount,i=r.paragraphCount,c=r.numberOfBlocks;return Object(B.createElement)(B.Fragment,null,Object(B.createElement)("div",{className:"table-of-contents__wrapper",role:"note","aria-label":Object(Zt.__)("Document Statistics"),tabIndex:"0"},Object(B.createElement)("ul",{role:"list",className:"table-of-contents__counts"},Object(B.createElement)("li",{className:"table-of-contents__count"},Object(Zt.__)("Characters"),Object(B.createElement)("span",{className:"table-of-contents__number"},Object(B.createElement)(Lc,null))),Object(B.createElement)("li",{className:"table-of-contents__count"},Object(Zt.__)("Words"),Object(B.createElement)(Nc,null)),Object(B.createElement)("li",{className:"table-of-contents__count"},Object(Zt.__)("Headings"),Object(B.createElement)("span",{className:"table-of-contents__number"},o)),Object(B.createElement)("li",{className:"table-of-contents__count"},Object(Zt.__)("Paragraphs"),Object(B.createElement)("span",{className:"table-of-contents__number"},i)),Object(B.createElement)("li",{className:"table-of-contents__count"},Object(Zt.__)("Blocks"),Object(B.createElement)("span",{className:"table-of-contents__number"},c)))),o>0&&Object(B.createElement)(B.Fragment,null,Object(B.createElement)("hr",null),Object(B.createElement)("h2",{className:"table-of-contents__title"},Object(Zt.__)("Document Outline")),Object(B.createElement)(Jr,{onSelect:n,hasOutlineItemsDisabled:t})))};var Fc=Object(B.forwardRef)((function(e,t){var n=e.hasOutlineItemsDisabled,r=e.repositionDropdown,o=Object($t.a)(e,["hasOutlineItemsDisabled","repositionDropdown"]),i=Object(p.useSelect)((function(e){return!!e("core/block-editor").getBlockCount()}),[]);return Object(B.createElement)(co.Dropdown,{position:r?"middle right right":"bottom",className:"table-of-contents",contentClassName:"table-of-contents__popover",renderToggle:function(e){var n=e.isOpen,r=e.onToggle;return Object(B.createElement)(co.Button,Object(Sr.a)({},o,{ref:t,onClick:i?r:void 0,icon:Rc,"aria-expanded":n,"aria-haspopup":"true",label:Object(Zt.__)("Details"),tooltipPosition:"bottom","aria-disabled":!i}))},renderContent:function(e){var t=e.onClose;return Object(B.createElement)(Uc,{onRequestClose:t,hasOutlineItemsDisabled:n})}})}));function Mc(){var e=Object(p.useSelect)((function(e){return function(){return(0,e("core").__experimentalGetDirtyEntityRecords)().length>0}}),[]),t=function(t){if(e())return t.returnValue=Object(Zt.__)("You have unsaved changes. If you proceed, they will be lost."),t.returnValue};return Object(B.useEffect)((function(){return window.addEventListener("beforeunload",t),function(){window.removeEventListener("beforeunload",t)}}),[]),null}var Vc=n(45),zc=Object(Er.createHigherOrderComponent)((function(e){return Object(p.withRegistry)((function(t){var n=t.useSubRegistry,r=void 0===n||n,o=t.registry,c=Object($t.a)(t,["useSubRegistry","registry"]);if(!r)return Object(B.createElement)(e,c);var s=Object(B.useState)(null),a=Object(E.a)(s,2),u=a[0],l=a[1];return Object(B.useEffect)((function(){var e=Object(p.createRegistry)({"core/block-editor":i.storeConfig},o);e.registerStore("core/editor",kr),l(e)}),[o]),u?Object(B.createElement)(p.RegistryProvider,{value:u},Object(B.createElement)(e,c)):null}))}),"withRegistryProvider"),Hc=n(156);function Wc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gc(e){for(var t=1;t0?n(s[0]):void 0),l=r(s),d=1===l.length&&l[0]&&l[0].name===a;return{clientIds:s,isGroupable:u&&l.length&&!d,isUngroupable:d&&!!l[0].innerBlocks.length,blocksSelection:l,groupingBlockName:a}})),Object(p.withDispatch)((function(e,t){var n=t.clientIds,r=t.blocksSelection,o=void 0===r?[]:r,i=t.groupingBlockName,s=e("core/block-editor").replaceBlocks;return{onConvertToGroup:function(){var e=Object(c.switchToBlockType)(o,i);e&&s(n,e)},onConvertFromGroup:function(){var e=o[0].innerBlocks;e.length&&s(n,e)}}}))])((function(e){var t=e.onConvertToGroup,n=e.onConvertFromGroup,r=e.isGroupable,o=void 0!==r&&r,c=e.isUngroupable,s=void 0!==c&&c;return o||s?Object(B.createElement)(i.BlockSettingsMenuControls,null,(function(e){var r=e.onClose;return Object(B.createElement)(B.Fragment,null,o&&Object(B.createElement)(co.MenuItem,{onClick:function(){t(),r()}},Object(Zt._x)("Group","verb")),s&&Object(B.createElement)(co.MenuItem,{onClick:function(){n(),r()}},Object(Zt._x)("Ungroup","Ungrouping blocks from within a Group block back into individual blocks within the Editor ")))})):null}));function Qc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $c(e){for(var t=1;t1&&void 0!==b[1]?b[1]:{},r=n.isInitialSuggestions,o=n.type,i=n.subtype,c=n.page,s=n.perPage,a=b.length>2&&void 0!==b[2]?b[2]:{},u=a.disablePostFormats,l=void 0!==u&&u,d=s||r?3:20,p=[],o&&"post"!==o||p.push(Ir()({path:Object(C.addQueryArgs)("/wp/v2/search",{search:t,page:c,per_page:d,type:"post",subtype:i})}).catch((function(){return[]}))),o&&"term"!==o||p.push(Ir()({path:Object(C.addQueryArgs)("/wp/v2/search",{search:t,page:c,per_page:d,type:"term",subtype:i})}).catch((function(){return[]}))),l||o&&"post-format"!==o||p.push(Ir()({path:Object(C.addQueryArgs)("/wp/v2/search",{search:t,page:c,per_page:d,type:"post-format",subtype:i})}).catch((function(){return[]}))),e.abrupt("return",Promise.all(p).then((function(e){return Object(v.map)(Object(v.flatten)(e).filter((function(e){return!!e.id})).slice(0,d),(function(e){return{id:e.id,url:e.url,title:Object(Qi.decodeEntities)(e.title)||Object(Zt.__)("(no title)"),type:e.subtype||e.type}}))})));case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Jc=function(e){Object(Nr.a)(n,e);var t=Yc(n);function n(e){var r;return Object(Rr.a)(this,n),(r=t.apply(this,arguments)).getBlockEditorSettings=L()(r.getBlockEditorSettings,{maxSize:1}),r.getDefaultBlockContext=L()(r.getDefaultBlockContext,{maxSize:1}),e.recovery?Object(Lr.a)(r):(e.updatePostLock(e.settings.postLock),e.setupEditor(e.post,e.initialEdits,e.settings.template),e.settings.autosave&&e.createWarningNotice(Object(Zt.__)("There is an autosave of this post that is more recent than the version below."),{id:"autosave-exists",actions:[{label:Object(Zt.__)("View the autosave"),url:e.settings.autosave.editLink}]}),r)}return Object(Dr.a)(n,[{key:"getBlockEditorSettings",value:function(e,t,n,r,o,i){return $c($c({},Object(v.pick)(e,["__experimentalBlockDirectory","__experimentalBlockPatterns","__experimentalBlockPatternCategories","__experimentalEnableFullSiteEditing","__experimentalEnableFullSiteEditingDemo","__experimentalFeatures","__experimentalGlobalStylesUserEntityId","__experimentalGlobalStylesBaseStyles","__experimentalGlobalStylesContexts","__experimentalPreferredStyleVariations","__experimentalSetIsInserterOpened","alignWide","allowedBlockTypes","availableLegacyWidgets","bodyPlaceholder","codeEditingEnabled","colors","disableCustomColors","disableCustomFontSizes","disableCustomGradients","enableCustomUnits","enableCustomLineHeight","focusMode","fontSizes","gradients","hasFixedToolbar","hasReducedUI","imageEditing","imageSizes","imageDimensions","isRTL","keepCaretInsideBlock","maxWidth","onUpdateDefaultBlockStyles","styles","template","templateLock","titlePlaceholder"])),{},{mediaUpload:n?Kc:void 0,__experimentalReusableBlocks:t,__experimentalFetchLinkSuggestions:Object(v.partialRight)(Xc,e),__experimentalCanUserUseUnfilteredHTML:r,__experimentalUndo:o,__experimentalShouldInsertAtTheTop:i})}},{key:"getDefaultBlockContext",value:function(e,t){return{postId:e,postType:t}}},{key:"componentDidMount",value:function(){this.props.updateEditorSettings(this.props.settings)}},{key:"componentDidUpdate",value:function(e){this.props.settings!==e.settings&&this.props.updateEditorSettings(this.props.settings)}},{key:"componentWillUnmount",value:function(){this.props.tearDownEditor()}},{key:"render",value:function(){var e=this.props,t=e.canUserUseUnfilteredHTML,n=e.children,r=e.post,o=e.blocks,c=e.resetEditorBlocks,a=e.selectionStart,l=e.selectionEnd,d=e.isReady,p=e.settings,b=e.reusableBlocks,f=e.resetEditorBlocksWithoutUndoLevel,h=e.hasUploadPermissions,m=e.isPostTitleSelected,v=e.undo;if(!d)return null;var O=this.getBlockEditorSettings(p,b,h,t,v,m),g=this.getDefaultBlockContext(r.id,r.type);return Object(B.createElement)(B.Fragment,null,Object(B.createElement)(i.__unstableEditorStyles,{styles:p.styles}),Object(B.createElement)(s.EntityProvider,{kind:"root",type:"site"},Object(B.createElement)(s.EntityProvider,{kind:"postType",type:r.type,id:r.id},Object(B.createElement)(i.BlockContextProvider,{value:g},Object(B.createElement)(i.BlockEditorProvider,{value:o,onInput:f,onChange:c,selectionStart:a,selectionEnd:l,settings:O,useSubRegistry:!1},n,Object(B.createElement)(u.ReusableBlocksMenuItems,null),Object(B.createElement)(qc,null))))))}}]),n}(B.Component),Zc=Object(Er.compose)([zc,Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.canUserUseUnfilteredHTML,r=t.__unstableIsEditorReady,o=t.getEditorBlocks,i=t.getEditorSelectionStart,c=t.getEditorSelectionEnd,s=t.isPostTitleSelected,a=e("core").canUser;return{canUserUseUnfilteredHTML:n(),isReady:r(),blocks:o(),selectionStart:i(),selectionEnd:c(),reusableBlocks:e("core").getEntityRecords("postType","wp_block"),hasUploadPermissions:Object(v.defaultTo)(a("create","media"),!0),isPostTitleSelected:s&&s()}})),Object(p.withDispatch)((function(e){var t=e("core/editor"),n=t.setupEditor,r=t.updatePostLock,o=t.resetEditorBlocks,i=t.updateEditorSettings,c=t.__experimentalTearDownEditor,s=t.undo;return{setupEditor:n,updatePostLock:r,createWarningNotice:e("core/notices").createWarningNotice,resetEditorBlocks:o,updateEditorSettings:i,resetEditorBlocksWithoutUndoLevel:function(e,t){o(e,$c($c({},t),{},{__unstableShouldCreateUndoLevel:!1}))},tearDownEditor:c,undo:s}}))])(Jc),es=n(87),ts=n.n(es);function ns(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=Object(B.forwardRef)((function(n,r){return x()("wp.editor."+e,{alternative:"wp.blockEditor."+e}),Object(B.createElement)(t,Object(Sr.a)({ref:r},n))}));return n.forEach((function(n){r[n]=ns(e+"."+n,t[n])})),r}function rs(e,t){return function(){return x()("wp.editor."+e,{alternative:"wp.blockEditor."+e}),t.apply(void 0,arguments)}}var os=ns("RichText",i.RichText,["Content"]);os.isEmpty=rs("RichText.isEmpty",i.RichText.isEmpty);var is=ns("Autocomplete",i.Autocomplete),cs=ns("AlignmentToolbar",i.AlignmentToolbar),ss=ns("BlockAlignmentToolbar",i.BlockAlignmentToolbar),as=ns("BlockControls",i.BlockControls,["Slot"]),us=ns("BlockEdit",i.BlockEdit),ls=ns("BlockEditorKeyboardShortcuts",i.BlockEditorKeyboardShortcuts),ds=ns("BlockFormatControls",i.BlockFormatControls,["Slot"]),ps=ns("BlockIcon",i.BlockIcon),bs=ns("BlockInspector",i.BlockInspector),fs=ns("BlockList",i.BlockList),hs=ns("BlockMover",i.BlockMover),ms=ns("BlockNavigationDropdown",i.BlockNavigationDropdown),vs=ns("BlockSelectionClearer",i.BlockSelectionClearer),Os=ns("BlockSettingsMenu",i.BlockSettingsMenu),gs=ns("BlockTitle",i.BlockTitle),js=ns("BlockToolbar",i.BlockToolbar),ys=ns("ColorPalette",i.ColorPalette),_s=ns("ContrastChecker",i.ContrastChecker),Ps=ns("CopyHandler",i.CopyHandler),ks=ns("DefaultBlockAppender",i.DefaultBlockAppender),Ss=ns("FontSizePicker",i.FontSizePicker),Es=ns("Inserter",i.Inserter),ws=ns("InnerBlocks",i.InnerBlocks,["ButtonBlockAppender","DefaultBlockAppender","Content"]),Cs=ns("InspectorAdvancedControls",i.InspectorAdvancedControls,["Slot"]),Ts=ns("InspectorControls",i.InspectorControls,["Slot"]),xs=ns("PanelColorSettings",i.PanelColorSettings),Bs=ns("PlainText",i.PlainText),Is=ns("RichTextShortcut",i.RichTextShortcut),As=ns("RichTextToolbarButton",i.RichTextToolbarButton),Rs=ns("__unstableRichTextInputEvent",i.__unstableRichTextInputEvent),Ds=ns("MediaPlaceholder",i.MediaPlaceholder),Ns=ns("MediaUpload",i.MediaUpload),Ls=ns("MediaUploadCheck",i.MediaUploadCheck),Us=ns("MultiSelectScrollIntoView",i.MultiSelectScrollIntoView),Fs=ns("NavigableToolbar",i.NavigableToolbar),Ms=ns("ObserveTyping",i.ObserveTyping),Vs=ns("PreserveScrollInReorder",i.PreserveScrollInReorder),zs=ns("SkipToSelectedBlock",i.SkipToSelectedBlock),Hs=ns("URLInput",i.URLInput),Ws=ns("URLInputButton",i.URLInputButton),Gs=ns("URLPopover",i.URLPopover),Ks=ns("Warning",i.Warning),qs=ns("WritingFlow",i.WritingFlow),Qs=rs("createCustomColorsHOC",i.createCustomColorsHOC),$s=rs("getColorClassName",i.getColorClassName),Ys=rs("getColorObjectByAttributeValues",i.getColorObjectByAttributeValues),Xs=rs("getColorObjectByColorValue",i.getColorObjectByColorValue),Js=rs("getFontSize",i.getFontSize),Zs=rs("getFontSizeClass",i.getFontSizeClass),ea=rs("withColorContext",i.withColorContext),ta=rs("withColors",i.withColors),na=rs("withFontSizes",i.withFontSizes)},47:function(e,t){!function(){e.exports=this.wp.apiFetch}()},5:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},53:function(e,t){!function(){e.exports=this.wp.keyboardShortcuts}()},6:function(e,t){!function(){e.exports=this.wp.blockEditor}()},60:function(e,t,n){e.exports=function(e,t){var n,r,o=0;function i(){var i,c,s=n,a=arguments.length;e:for(;s;){if(s.args.length===arguments.length){for(c=0;c=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(u[r]=e[r])}return u}},18:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(27);var o=r(37),u=r(30);function c(e){return function(e){if(Array.isArray(e))return Object(n.a)(e)}(e)||Object(o.a)(e)||Object(u.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}()},27:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||(o[r]=e[r]);return o}r.d(t,"a",(function(){return n}))},467:function(e,t,r){"use strict";r.r(t),r.d(t,"createInterpolateElement",(function(){return O})),r.d(t,"Children",(function(){return l.Children})),r.d(t,"cloneElement",(function(){return l.cloneElement})),r.d(t,"Component",(function(){return l.Component})),r.d(t,"createContext",(function(){return l.createContext})),r.d(t,"createElement",(function(){return l.createElement})),r.d(t,"createRef",(function(){return l.createRef})),r.d(t,"forwardRef",(function(){return l.forwardRef})),r.d(t,"Fragment",(function(){return l.Fragment})),r.d(t,"isValidElement",(function(){return l.isValidElement})),r.d(t,"memo",(function(){return l.memo})),r.d(t,"StrictMode",(function(){return l.StrictMode})),r.d(t,"useCallback",(function(){return l.useCallback})),r.d(t,"useContext",(function(){return l.useContext})),r.d(t,"useDebugValue",(function(){return l.useDebugValue})),r.d(t,"useEffect",(function(){return l.useEffect})),r.d(t,"useImperativeHandle",(function(){return l.useImperativeHandle})),r.d(t,"useLayoutEffect",(function(){return l.useLayoutEffect})),r.d(t,"useMemo",(function(){return l.useMemo})),r.d(t,"useReducer",(function(){return l.useReducer})),r.d(t,"useRef",(function(){return l.useRef})),r.d(t,"useState",(function(){return l.useState})),r.d(t,"lazy",(function(){return l.lazy})),r.d(t,"Suspense",(function(){return l.Suspense})),r.d(t,"concatChildren",(function(){return w})),r.d(t,"switchChildrenNodeName",(function(){return S})),r.d(t,"createPortal",(function(){return P.createPortal})),r.d(t,"findDOMNode",(function(){return P.findDOMNode})),r.d(t,"render",(function(){return P.render})),r.d(t,"unmountComponentAtNode",(function(){return P.unmountComponentAtNode})),r.d(t,"isEmptyElement",(function(){return E})),r.d(t,"Platform",(function(){return k})),r.d(t,"renderToString",(function(){return Y})),r.d(t,"RawHTML",(function(){return M}));var n,o,u,c,i=r(12),a=r(40),f=r(18),l=r(13),s=/<(\/)?(\w+)\s*(\/)?>/g;function d(e,t,r,n,o){return{element:e,tokenStart:t,tokenLength:r,prevOffset:n,leadingTextStart:o,children:[]}}var p=function(e){var t="object"===Object(a.a)(e),r=t&&Object.values(e);return t&&r.length&&r.every((function(e){return Object(l.isValidElement)(e)}))};function b(e){var t=function(){var e=s.exec(n);if(null===e)return["no-more-tokens"];var t=e.index,r=Object(i.a)(e,4),o=r[0],u=r[1],c=r[2],a=r[3],f=o.length;if(a)return["self-closed",c,t,f];if(u)return["closer",c,t,f];return["opener",c,t,f]}(),r=Object(i.a)(t,4),a=r[0],p=r[1],b=r[2],O=r[3],h=c.length,v=b>o?o:null;if(!e[p])return y(),!1;switch(a){case"no-more-tokens":if(0!==h){var j=c.pop(),g=j.leadingTextStart,w=j.tokenStart;u.push(n.substr(g,w))}return y(),!1;case"self-closed":return 0===h?(null!==v&&u.push(n.substr(v,b-v)),u.push(e[p]),o=b+O,!0):(m(d(e[p],b,O)),o=b+O,!0);case"opener":return c.push(d(e[p],b,O,b+O,v)),o=b+O,!0;case"closer":if(1===h)return function(e){var t=c.pop(),r=t.element,o=t.leadingTextStart,i=t.prevOffset,a=t.tokenStart,s=t.children,d=e?n.substr(i,e-i):n.substr(i);d&&s.push(d);null!==o&&u.push(n.substr(o,a-o));u.push(l.cloneElement.apply(void 0,[r,null].concat(Object(f.a)(s))))}(b),o=b+O,!0;var S=c.pop(),P=n.substr(S.prevOffset,b-S.prevOffset);S.children.push(P),S.prevOffset=b+O;var E=d(S.element,S.tokenStart,S.tokenLength,b+O);return E.children=S.children,m(E),o=b+O,!0;default:return y(),!1}}function y(){var e=n.length-o;0!==e&&u.push(n.substr(o,e))}function m(e){var t=e.element,r=e.tokenStart,o=e.tokenLength,u=e.prevOffset,i=e.children,a=c[c.length-1],s=n.substr(a.prevOffset,r-a.prevOffset);s&&a.children.push(s),a.children.push(l.cloneElement.apply(void 0,[t,null].concat(Object(f.a)(i)))),a.prevOffset=u||r+o}var O=function(e,t){if(n=e,o=0,u=[],c=[],s.lastIndex=0,!p(t))throw new TypeError("The conversionMap provided is not valid. It must be an object with values that are WPElements");do{}while(b(t));return l.createElement.apply(void 0,[l.Fragment,null].concat(Object(f.a)(u)))},h=r(5),v=r(14),j=r(2);function g(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 w(){for(var e=arguments.length,t=new Array(e),r=0;r2&&void 0!==arguments[2]?arguments[2]:{};if(null==e||!1===e)return"";if(Array.isArray(e))return Q(e,t,r);switch(Object(a.a)(e)){case"string":return Object(x.escapeHTML)(e);case"number":return e.toString()}var n=e.type,o=e.props;switch(n){case l.StrictMode:case l.Fragment:return Q(o.children,t,r);case M:var u=o.children,c=Object(v.a)(o,["children"]);return J(Object(j.isEmpty)(c)?null:"div",D(D({},c),{},{dangerouslySetInnerHTML:{__html:u}}),t,r)}switch(Object(a.a)(n)){case"string":return J(n,o,t,r);case"function":return n.prototype&&"function"==typeof n.prototype.render?K(n,o,t,r):B(n(o,r),t,r)}switch(n&&n.$$typeof){case T.$$typeof:return Q(o.children,o.value,r);case _.$$typeof:return B(o.children(t||n._currentValue),t,r);case R.$$typeof:return B(n.render(o),t,r)}return""}function J(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o="";if("textarea"===e&&t.hasOwnProperty("value")?(o=Q(t.value,r,n),t=Object(j.omit)(t,"value")):t.dangerouslySetInnerHTML&&"string"==typeof t.dangerouslySetInnerHTML.__html?o=t.dangerouslySetInnerHTML.__html:void 0!==t.children&&(o=Q(t.children,r,n)),!e)return o;var u=X(t);return H.has(e)?"<"+e+u+"/>":"<"+e+u+">"+o+""}function K(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=new e(t,n);"function"==typeof o.getChildContext&&Object.assign(n,o.getChildContext());var u=B(o.render(),r,n);return u}function Q(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n="";e=Object(j.castArray)(e);for(var o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(u[r]=e[r])}return u}},17:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(27);var o=r(37),u=r(30);function c(e){return function(e){if(Array.isArray(e))return Object(n.a)(e)}(e)||Object(o.a)(e)||Object(u.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}()},27:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||(o[r]=e[r]);return o}r.d(t,"a",(function(){return n}))},472:function(e,t,r){"use strict";r.r(t),r.d(t,"createInterpolateElement",(function(){return O})),r.d(t,"Children",(function(){return l.Children})),r.d(t,"cloneElement",(function(){return l.cloneElement})),r.d(t,"Component",(function(){return l.Component})),r.d(t,"createContext",(function(){return l.createContext})),r.d(t,"createElement",(function(){return l.createElement})),r.d(t,"createRef",(function(){return l.createRef})),r.d(t,"forwardRef",(function(){return l.forwardRef})),r.d(t,"Fragment",(function(){return l.Fragment})),r.d(t,"isValidElement",(function(){return l.isValidElement})),r.d(t,"memo",(function(){return l.memo})),r.d(t,"StrictMode",(function(){return l.StrictMode})),r.d(t,"useCallback",(function(){return l.useCallback})),r.d(t,"useContext",(function(){return l.useContext})),r.d(t,"useDebugValue",(function(){return l.useDebugValue})),r.d(t,"useEffect",(function(){return l.useEffect})),r.d(t,"useImperativeHandle",(function(){return l.useImperativeHandle})),r.d(t,"useLayoutEffect",(function(){return l.useLayoutEffect})),r.d(t,"useMemo",(function(){return l.useMemo})),r.d(t,"useReducer",(function(){return l.useReducer})),r.d(t,"useRef",(function(){return l.useRef})),r.d(t,"useState",(function(){return l.useState})),r.d(t,"lazy",(function(){return l.lazy})),r.d(t,"Suspense",(function(){return l.Suspense})),r.d(t,"concatChildren",(function(){return w})),r.d(t,"switchChildrenNodeName",(function(){return S})),r.d(t,"createPortal",(function(){return P.createPortal})),r.d(t,"findDOMNode",(function(){return P.findDOMNode})),r.d(t,"render",(function(){return P.render})),r.d(t,"unmountComponentAtNode",(function(){return P.unmountComponentAtNode})),r.d(t,"isEmptyElement",(function(){return E})),r.d(t,"Platform",(function(){return k})),r.d(t,"renderToString",(function(){return Y})),r.d(t,"RawHTML",(function(){return M}));var n,o,u,c,i=r(12),a=r(40),f=r(17),l=r(13),s=/<(\/)?(\w+)\s*(\/)?>/g;function d(e,t,r,n,o){return{element:e,tokenStart:t,tokenLength:r,prevOffset:n,leadingTextStart:o,children:[]}}var p=function(e){var t="object"===Object(a.a)(e),r=t&&Object.values(e);return t&&r.length&&r.every((function(e){return Object(l.isValidElement)(e)}))};function b(e){var t=function(){var e=s.exec(n);if(null===e)return["no-more-tokens"];var t=e.index,r=Object(i.a)(e,4),o=r[0],u=r[1],c=r[2],a=r[3],f=o.length;if(a)return["self-closed",c,t,f];if(u)return["closer",c,t,f];return["opener",c,t,f]}(),r=Object(i.a)(t,4),a=r[0],p=r[1],b=r[2],O=r[3],h=c.length,v=b>o?o:null;if(!e[p])return y(),!1;switch(a){case"no-more-tokens":if(0!==h){var j=c.pop(),g=j.leadingTextStart,w=j.tokenStart;u.push(n.substr(g,w))}return y(),!1;case"self-closed":return 0===h?(null!==v&&u.push(n.substr(v,b-v)),u.push(e[p]),o=b+O,!0):(m(d(e[p],b,O)),o=b+O,!0);case"opener":return c.push(d(e[p],b,O,b+O,v)),o=b+O,!0;case"closer":if(1===h)return function(e){var t=c.pop(),r=t.element,o=t.leadingTextStart,i=t.prevOffset,a=t.tokenStart,s=t.children,d=e?n.substr(i,e-i):n.substr(i);d&&s.push(d);null!==o&&u.push(n.substr(o,a-o));u.push(l.cloneElement.apply(void 0,[r,null].concat(Object(f.a)(s))))}(b),o=b+O,!0;var S=c.pop(),P=n.substr(S.prevOffset,b-S.prevOffset);S.children.push(P),S.prevOffset=b+O;var E=d(S.element,S.tokenStart,S.tokenLength,b+O);return E.children=S.children,m(E),o=b+O,!0;default:return y(),!1}}function y(){var e=n.length-o;0!==e&&u.push(n.substr(o,e))}function m(e){var t=e.element,r=e.tokenStart,o=e.tokenLength,u=e.prevOffset,i=e.children,a=c[c.length-1],s=n.substr(a.prevOffset,r-a.prevOffset);s&&a.children.push(s),a.children.push(l.cloneElement.apply(void 0,[t,null].concat(Object(f.a)(i)))),a.prevOffset=u||r+o}var O=function(e,t){if(n=e,o=0,u=[],c=[],s.lastIndex=0,!p(t))throw new TypeError("The conversionMap provided is not valid. It must be an object with values that are WPElements");do{}while(b(t));return l.createElement.apply(void 0,[l.Fragment,null].concat(Object(f.a)(u)))},h=r(5),v=r(14),j=r(2);function g(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 w(){for(var e=arguments.length,t=new Array(e),r=0;r2&&void 0!==arguments[2]?arguments[2]:{};if(null==e||!1===e)return"";if(Array.isArray(e))return Q(e,t,r);switch(Object(a.a)(e)){case"string":return Object(x.escapeHTML)(e);case"number":return e.toString()}var n=e.type,o=e.props;switch(n){case l.StrictMode:case l.Fragment:return Q(o.children,t,r);case M:var u=o.children,c=Object(v.a)(o,["children"]);return J(Object(j.isEmpty)(c)?null:"div",D(D({},c),{},{dangerouslySetInnerHTML:{__html:u}}),t,r)}switch(Object(a.a)(n)){case"string":return J(n,o,t,r);case"function":return n.prototype&&"function"==typeof n.prototype.render?K(n,o,t,r):B(n(o,r),t,r)}switch(n&&n.$$typeof){case T.$$typeof:return Q(o.children,o.value,r);case _.$$typeof:return B(o.children(t||n._currentValue),t,r);case R.$$typeof:return B(n.render(o),t,r)}return""}function J(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o="";if("textarea"===e&&t.hasOwnProperty("value")?(o=Q(t.value,r,n),t=Object(j.omit)(t,"value")):t.dangerouslySetInnerHTML&&"string"==typeof t.dangerouslySetInnerHTML.__html?o=t.dangerouslySetInnerHTML.__html:void 0!==t.children&&(o=Q(t.children,r,n)),!e)return o;var u=X(t);return H.has(e)?"<"+e+u+"/>":"<"+e+u+">"+o+""}function K(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=new e(t,n);"function"==typeof o.getChildContext&&Object.assign(n,o.getChildContext());var u=B(o.render(),r,n);return u}function Q(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n="";e=Object(j.castArray)(e);for(var o=0;o/="\uFDD0-\uFDEF]/;function u(e){return e.replace(/&(?!([a-z0-9]+|#[0-9]+|#x[a-f0-9]+);)/gi,"&")}function o(e){return e.replace(/"/g,""")}function i(e){return e.replace(//g,">")}(o(u(e)))}function a(e){return i(u(e))}function f(e){return i(e.replace(/&/g,"&"))}function p(e){return!r.test(e)}}}); \ No newline at end of file +this.wp=this.wp||{},this.wp.escapeHtml=function(e){var t={};function n(r){if(t[r])return t[r].exports;var u=t[r]={i:r,l:!1,exports:{}};return e[r].call(u.exports,u,u.exports,n),u.l=!0,u.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var u in e)n.d(r,u,function(t){return e[t]}.bind(null,u));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=484)}({484:function(e,t,n){"use strict";n.r(t),n.d(t,"escapeAmpersand",(function(){return u})),n.d(t,"escapeQuotationMark",(function(){return o})),n.d(t,"escapeLessThan",(function(){return i})),n.d(t,"escapeAttribute",(function(){return c})),n.d(t,"escapeHTML",(function(){return a})),n.d(t,"escapeEditableHTML",(function(){return f})),n.d(t,"isValidAttributeName",(function(){return p}));var r=/[\u007F-\u009F "'>/="\uFDD0-\uFDEF]/;function u(e){return e.replace(/&(?!([a-z0-9]+|#[0-9]+|#x[a-f0-9]+);)/gi,"&")}function o(e){return e.replace(/"/g,""")}function i(e){return e.replace(//g,">")}(o(u(e)))}function a(e){return i(u(e))}function f(e){return i(e.replace(/&/g,"&"))}function p(e){return!r.test(e)}}}); \ No newline at end of file diff --git a/wp-includes/js/dist/format-library.js b/wp-includes/js/dist/format-library.js index c0d745ed25..39c8df0b3c 100644 --- a/wp-includes/js/dist/format-library.js +++ b/wp-includes/js/dist/format-library.js @@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["formatLibrary"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 460); +/******/ return __webpack_require__(__webpack_require__.s = 464); /******/ }) /************************************************************************/ /******/ ({ @@ -161,7 +161,7 @@ function _slicedToArray(arr, i) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutProperties; }); -/* harmony import */ var _objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(42); +/* harmony import */ var _objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(43); function _objectWithoutProperties(source, excluded) { if (source == null) return {}; @@ -184,7 +184,7 @@ function _objectWithoutProperties(source, excluded) { /***/ }), -/***/ 142: +/***/ 141: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -202,9 +202,8 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va /** * WordPress dependencies */ - // Disable reason: JSDoc linter doesn't seem to parse the union (`&`) correctly. -/** @typedef {{icon: JSX.Element, size?: number} & import('react').ComponentPropsWithoutRef<'SVG'>} IconProps */ +/** @typedef {{icon: JSX.Element, size?: number} & import('@wordpress/primitives').SVGProps} IconProps */ /** * Return an SVG icon. @@ -233,7 +232,7 @@ function Icon(_ref) { /***/ }), -/***/ 15: +/***/ 16: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -248,21 +247,14 @@ function _assertThisInitialized(self) { /***/ }), -/***/ 17: -/***/ (function(module, __webpack_exports__, __webpack_require__) { +/***/ 18: +/***/ (function(module, exports) { -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _getPrototypeOf; }); -function _getPrototypeOf(o) { - _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { - return o.__proto__ || Object.getPrototypeOf(o); - }; - return _getPrototypeOf(o); -} +(function() { module.exports = this["wp"]["keycodes"]; }()); /***/ }), -/***/ 184: +/***/ 186: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -288,9 +280,16 @@ var link = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement /***/ }), /***/ 19: -/***/ (function(module, exports) { +/***/ (function(module, __webpack_exports__, __webpack_require__) { -(function() { module.exports = this["wp"]["keycodes"]; }()); +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _getPrototypeOf; }); +function _getPrototypeOf(o) { + _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }; + return _getPrototypeOf(o); +} /***/ }), @@ -301,29 +300,6 @@ var link = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement /***/ }), -/***/ 20: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _createClass; }); -function _defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, descriptor.key, descriptor); - } -} - -function _createClass(Constructor, protoProps, staticProps) { - if (protoProps) _defineProperties(Constructor.prototype, protoProps); - if (staticProps) _defineProperties(Constructor, staticProps); - return Constructor; -} - -/***/ }), - /***/ 21: /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -337,7 +313,7 @@ function _classCallCheck(instance, Constructor) { /***/ }), -/***/ 215: +/***/ 216: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -362,7 +338,7 @@ var keyboardReturn = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["cre /***/ }), -/***/ 217: +/***/ 218: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -390,6 +366,29 @@ var linkOff = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElem /***/ 22: /***/ (function(module, __webpack_exports__, __webpack_require__) { +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _createClass; }); +function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + if ("value" in descriptor) descriptor.writable = true; + Object.defineProperty(target, descriptor.key, descriptor); + } +} + +function _createClass(Constructor, protoProps, staticProps) { + if (protoProps) _defineProperties(Constructor.prototype, protoProps); + if (staticProps) _defineProperties(Constructor, staticProps); + return Constructor; +} + +/***/ }), + +/***/ 23: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + "use strict"; // EXPORTS @@ -423,13 +422,13 @@ function _inherits(subClass, superClass) { /***/ }), -/***/ 23: +/***/ 24: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _possibleConstructorReturn; }); /* harmony import */ var _helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(40); -/* harmony import */ var _assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(15); +/* harmony import */ var _assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(16); function _possibleConstructorReturn(self, call) { @@ -505,7 +504,7 @@ function _unsupportedIterableToArray(o, minLen) { /***/ }), -/***/ 316: +/***/ 320: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -582,29 +581,7 @@ function _typeof(obj) { /***/ }), -/***/ 42: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutPropertiesLoose; }); -function _objectWithoutPropertiesLoose(source, excluded) { - if (source == null) return {}; - var target = {}; - var sourceKeys = Object.keys(source); - var key, i; - - for (i = 0; i < sourceKeys.length; i++) { - key = sourceKeys[i]; - if (excluded.indexOf(key) >= 0) continue; - target[key] = source[key]; - } - - return target; -} - -/***/ }), - -/***/ 424: +/***/ 428: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -629,7 +606,29 @@ var textColor = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEl /***/ }), -/***/ 460: +/***/ 43: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutPropertiesLoose; }); +function _objectWithoutPropertiesLoose(source, excluded) { + if (source == null) return {}; + var target = {}; + var sourceKeys = Object.keys(source); + var key, i; + + for (i = 0; i < sourceKeys.length; i++) { + key = sourceKeys[i]; + if (excluded.indexOf(key) >= 0) continue; + target[key] = source[key]; + } + + return target; +} + +/***/ }), + +/***/ 464: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -725,7 +724,7 @@ var bold = { }; // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/code.js -var code = __webpack_require__(316); +var code = __webpack_require__(320); // CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/code/index.js @@ -807,28 +806,28 @@ var defineProperty = __webpack_require__(5); var classCallCheck = __webpack_require__(21); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js -var createClass = __webpack_require__(20); +var createClass = __webpack_require__(22); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js -var assertThisInitialized = __webpack_require__(15); +var assertThisInitialized = __webpack_require__(16); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules -var inherits = __webpack_require__(22); +var inherits = __webpack_require__(23); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js -var possibleConstructorReturn = __webpack_require__(23); +var possibleConstructorReturn = __webpack_require__(24); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js -var getPrototypeOf = __webpack_require__(17); +var getPrototypeOf = __webpack_require__(19); // EXTERNAL MODULE: external {"this":["wp","components"]} var external_this_wp_components_ = __webpack_require__(3); // EXTERNAL MODULE: external {"this":["wp","keycodes"]} -var external_this_wp_keycodes_ = __webpack_require__(19); +var external_this_wp_keycodes_ = __webpack_require__(18); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/keyboard-return.js -var keyboard_return = __webpack_require__(215); +var keyboard_return = __webpack_require__(216); // CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/image/index.js @@ -1136,10 +1135,10 @@ var external_this_wp_url_ = __webpack_require__(31); var external_this_wp_htmlEntities_ = __webpack_require__(69); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/link-off.js -var link_off = __webpack_require__(217); +var link_off = __webpack_require__(218); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/link.js -var library_link = __webpack_require__(184); +var library_link = __webpack_require__(186); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules var slicedToArray = __webpack_require__(12); @@ -1703,10 +1702,10 @@ var underline = { }; // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/icon/index.js -var icon = __webpack_require__(142); +var icon = __webpack_require__(141); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/text-color.js -var text_color = __webpack_require__(424); +var text_color = __webpack_require__(428); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js var esm_extends = __webpack_require__(8); @@ -1735,7 +1734,6 @@ var external_this_wp_dom_ = __webpack_require__(29); - function getActiveColor(formatName, formatValue, colors) { var activeColorFormat = Object(external_this_wp_richText_["getActiveFormat"])(formatValue, formatName); @@ -1834,7 +1832,7 @@ var inline_ColorPicker = function ColorPicker(_ref2) { }); }; -var inline_InlineColorUI = function InlineColorUI(_ref3) { +function InlineColorUI(_ref3) { var name = _ref3.name, value = _ref3.value, onChange = _ref3.onChange, @@ -1850,9 +1848,7 @@ var inline_InlineColorUI = function InlineColorUI(_ref3) { value: value, onChange: onChange })); -}; - -/* harmony default export */ var text_color_inline = (Object(external_this_wp_components_["withSpokenMessages"])(inline_InlineColorUI)); +} // CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/text-color/index.js @@ -1933,7 +1929,7 @@ function TextColorEdit(_ref) { onClick: hasColorsToChoose ? enableIsAddingColor : function () { return onChange(Object(external_this_wp_richText_["removeFormat"])(value, text_color_name)); } - }), isAddingColor && Object(external_this_wp_element_["createElement"])(text_color_inline, { + }), isAddingColor && Object(external_this_wp_element_["createElement"])(InlineColorUI, { name: text_color_name, addingColor: isAddingColor, onClose: disableIsAddingColor, diff --git a/wp-includes/js/dist/format-library.min.js b/wp-includes/js/dist/format-library.min.js index 48fedbe397..2c001ddbdd 100644 --- a/wp-includes/js/dist/format-library.min.js +++ b/wp-includes/js/dist/format-library.min.js @@ -1,2 +1,2 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.formatLibrary=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=460)}({0:function(t,e){!function(){t.exports=this.wp.element}()},1:function(t,e){!function(){t.exports=this.wp.i18n}()},12:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(38);var o=n(30),c=n(39);function i(t,e){return Object(r.a)(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,o=!1,c=void 0;try{for(var i,a=t[Symbol.iterator]();!(r=(i=a.next()).done)&&(n.push(i.value),!e||n.length!==e);r=!0);}catch(t){o=!0,c=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw c}}return n}}(t,e)||Object(o.a)(t,e)||Object(c.a)()}},14:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(42);function o(t,e){if(null==t)return{};var n,o,c=Object(r.a)(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(c[n]=t[n])}return c}},142:function(t,e,n){"use strict";var r=n(5),o=n(14),c=n(0);function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}e.a=function(t){var e=t.icon,n=t.size,a=void 0===n?24:n,l=Object(o.a)(t,["icon","size"]);return Object(c.cloneElement)(e,function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0||(o[n]=t[n]);return o}n.d(e,"a",(function(){return r}))},424:function(t,e,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(o.Path,{d:"M13.23 15h1.9L11 4H9L5 15h1.88l1.07-3h4.18zm-1.53-4.54H8.51L10 5.6z"}));e.a=c},460:function(t,e,n){"use strict";n.r(e);var r=n(14),o=n(25),c=n(0),i=n(1),a=n(6),l=n(7),u=Object(c.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(l.Path,{d:"M14.7 11.3c1-.6 1.5-1.6 1.5-3 0-2.3-1.3-3.4-4-3.4H7v14h5.8c1.4 0 2.5-.3 3.3-1 .8-.7 1.2-1.7 1.2-2.9.1-1.9-.8-3.1-2.6-3.7zm-5.1-4h2.3c.6 0 1.1.1 1.4.4.3.3.5.7.5 1.2s-.2 1-.5 1.2c-.3.3-.8.4-1.4.4H9.6V7.3zm4.6 9c-.4.3-1 .4-1.7.4H9.6v-3.9h2.9c.7 0 1.3.2 1.7.5.4.3.6.8.6 1.5s-.2 1.2-.6 1.5z"})),s=Object(i.__)("Bold"),b={name:"core/bold",title:s,tagName:"strong",className:null,edit:function(t){var e=t.isActive,n=t.value,r=t.onChange,i=t.onFocus;function l(){r(Object(o.toggleFormat)(n,{type:"core/bold"}))}return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(a.RichTextShortcut,{type:"primary",character:"b",onUse:l}),Object(c.createElement)(a.RichTextToolbarButton,{name:"bold",icon:u,title:s,onClick:function(){l(),i()},isActive:e,shortcutType:"primary",shortcutCharacter:"b"}),Object(c.createElement)(a.__unstableRichTextInputEvent,{inputType:"formatBold",onInput:l}))}},f=n(316),p=Object(i.__)("Inline Code"),m={name:"core/code",title:p,tagName:"code",className:null,__unstableInputRule:function(t){var e=t,n=e.start,r=e.text;if("`"!==r.slice(n-1,n))return t;var c=r.slice(0,n-1).lastIndexOf("`");if(-1===c)return t;var i=c,a=n-2;return i===a?t:(t=Object(o.remove)(t,i,i+1),t=Object(o.remove)(t,a,a+1),t=Object(o.applyFormat)(t,{type:"core/code"},i,a))},edit:function(t){var e=t.value,n=t.onChange,r=t.onFocus,i=t.isActive;return Object(c.createElement)(a.RichTextToolbarButton,{icon:f.a,title:p,onClick:function(){n(Object(o.toggleFormat)(e,{type:"core/code"})),r()},isActive:i})}},O=n(5),h=n(21),v=n(20),j=n(15),d=n(22),y=n(23),g=n(17),w=n(3),E=n(19),k=n(215);function x(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function C(t){for(var e=1;e-1&&t.stopPropagation()}},{key:"openModal",value:function(){this.setState({modal:!0})}},{key:"closeModal",value:function(){this.setState({modal:!1})}},{key:"componentDidMount",value:function(){this.anchorRef=R()}},{key:"componentDidUpdate",value:function(t){(!t.isObjectActive&&this.props.isObjectActive||t.activeObjectAttributes.url!==this.props.activeObjectAttributes.url)&&(this.anchorRef=R())}},{key:"render",value:function(){var t=this,e=this.props,n=e.value,r=e.onChange,l=e.onFocus,u=e.isObjectActive,s=e.activeObjectAttributes;return Object(c.createElement)(a.MediaUploadCheck,null,Object(c.createElement)(a.RichTextToolbarButton,{icon:Object(c.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(w.Path,{d:"M4 18.5h16V17H4v1.5zM16 13v1.5h4V13h-4zM5.1 15h7.8c.6 0 1.1-.5 1.1-1.1V6.1c0-.6-.5-1.1-1.1-1.1H5.1C4.5 5 4 5.5 4 6.1v7.8c0 .6.5 1.1 1.1 1.1zm.4-8.5h7V10l-1-1c-.3-.3-.8-.3-1 0l-1.6 1.5-1.2-.7c-.3-.2-.6-.2-.9 0l-1.3 1V6.5zm0 6.1l1.8-1.3 1.3.8c.3.2.7.2.9-.1l1.5-1.4 1.5 1.4v1.5h-7v-.9z"})),title:P,onClick:this.openModal,isActive:u}),this.state.modal&&Object(c.createElement)(a.MediaUpload,{allowedTypes:S,onSelect:function(e){var c=e.id,i=e.url,a=e.alt,u=e.width;t.closeModal(),r(Object(o.insertObject)(n,{type:"core/image",attributes:{className:"wp-image-".concat(c),style:"width: ".concat(Math.min(u,150),"px;"),url:i,alt:a}})),l()},onClose:this.closeModal,render:function(t){return(0,t.open)(),null}}),u&&Object(c.createElement)(w.Popover,{position:"bottom center",focusOnMount:!1,anchorRef:this.anchorRef},Object(c.createElement)("form",{className:"block-editor-format-toolbar__image-container-content",onKeyPress:T,onKeyDown:this.onKeyDown,onSubmit:function(e){var o=n.replacements.slice();o[n.start]={type:"core/image",attributes:C(C({},s),{},{style:"width: ".concat(t.state.width,"px;")})},r(C(C({},n),{},{replacements:o})),e.preventDefault()}},Object(c.createElement)(w.TextControl,{className:"block-editor-format-toolbar__image-container-value",type:"number",label:Object(i.__)("Width"),value:this.state.width,min:1,onChange:this.onChange}),Object(c.createElement)(w.Button,{icon:k.a,label:Object(i.__)("Apply"),type:"submit"}))))}}],[{key:"getDerivedStateFromProps",value:function(t,e){var n=t.activeObjectAttributes.style;return n===e.previousStyle?null:n?{width:n.replace(/\D/g,""),previousStyle:n}:{width:void 0,previousStyle:n}}}]),n}(c.Component)},F=Object(c.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(l.Path,{d:"M12.5 5L10 19h1.9l2.5-14z"})),M=Object(i.__)("Italic"),N={name:"core/italic",title:M,tagName:"em",className:null,edit:function(t){var e=t.isActive,n=t.value,r=t.onChange,i=t.onFocus;function l(){r(Object(o.toggleFormat)(n,{type:"core/italic"}))}return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(a.RichTextShortcut,{type:"primary",character:"i",onUse:l}),Object(c.createElement)(a.RichTextToolbarButton,{name:"italic",icon:F,title:M,onClick:function(){l(),i()},isActive:e,shortcutType:"primary",shortcutCharacter:"i"}),Object(c.createElement)(a.__unstableRichTextInputEvent,{inputType:"formatItalic",onInput:l}))}},L=n(31),D=n(69),V=n(217),B=n(184),z=n(12),H=n(2);function I(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function U(t){for(var e=1;e]+>/g,"").trim();return Object(L.isURL)(c)?(window.console.log("Created link:\n\n",c),Object(o.applyFormat)(t,{type:"core/link",attributes:{url:Object(D.decodeEntities)(c)}})):t},edit:Object(w.withSpokenMessages)(function(t){Object(d.a)(n,t);var e=K(n);function n(){var t;return Object(h.a)(this,n),(t=e.apply(this,arguments)).addLink=t.addLink.bind(Object(j.a)(t)),t.stopAddingLink=t.stopAddingLink.bind(Object(j.a)(t)),t.onRemoveFormat=t.onRemoveFormat.bind(Object(j.a)(t)),t.state={addingLink:!1},t}return Object(v.a)(n,[{key:"addLink",value:function(){var t=this.props,e=t.value,n=t.onChange,r=Object(o.getTextContent)(Object(o.slice)(e));r&&Object(L.isURL)(r)?n(Object(o.applyFormat)(e,{type:"core/link",attributes:{url:r}})):r&&Object(L.isEmail)(r)?n(Object(o.applyFormat)(e,{type:"core/link",attributes:{url:"mailto:".concat(r)}})):this.setState({addingLink:!0})}},{key:"stopAddingLink",value:function(){this.setState({addingLink:!1}),this.props.onFocus()}},{key:"onRemoveFormat",value:function(){var t=this.props,e=t.value,n=t.onChange,r=t.speak;n(Object(o.removeFormat)(e,"core/link")),r(Object(i.__)("Link removed."),"assertive")}},{key:"render",value:function(){var t=this.props,e=t.isActive,n=t.activeAttributes,r=t.value,o=t.onChange;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(a.RichTextShortcut,{type:"primary",character:"k",onUse:this.addLink}),Object(c.createElement)(a.RichTextShortcut,{type:"primaryShift",character:"k",onUse:this.onRemoveFormat}),e&&Object(c.createElement)(a.RichTextToolbarButton,{name:"link",icon:V.a,title:Object(i.__)("Unlink"),onClick:this.onRemoveFormat,isActive:e,shortcutType:"primaryShift",shortcutCharacter:"k"}),!e&&Object(c.createElement)(a.RichTextToolbarButton,{name:"link",icon:B.a,title:W,onClick:this.addLink,isActive:e,shortcutType:"primary",shortcutCharacter:"k"}),(this.state.addingLink||e)&&Object(c.createElement)(G,{addingLink:this.state.addingLink,stopAddingLink:this.stopAddingLink,isActive:e,activeAttributes:n,value:r,onChange:o}))}}]),n}(c.Component))},$=Object(c.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(l.Path,{d:"M9.1 9v-.5c0-.6.2-1.1.7-1.4.5-.3 1.2-.5 2-.5.7 0 1.4.1 2.1.3.7.2 1.4.5 2.1.9l.2-1.9c-.6-.3-1.2-.5-1.9-.7-.8-.1-1.6-.2-2.4-.2-1.5 0-2.7.3-3.6 1-.8.7-1.2 1.5-1.2 2.6V9h2zM20 12H4v1h8.3c.3.1.6.2.8.3.5.2.9.5 1.1.8.3.3.4.7.4 1.2 0 .7-.2 1.1-.8 1.5-.5.3-1.2.5-2.1.5-.8 0-1.6-.1-2.4-.3-.8-.2-1.5-.5-2.2-.8L7 18.1c.5.2 1.2.4 2 .6.8.2 1.6.3 2.4.3 1.7 0 3-.3 3.9-1 .9-.7 1.3-1.6 1.3-2.8 0-.9-.2-1.7-.7-2.2H20v-1z"})),q=Object(i.__)("Strikethrough"),J={name:"core/strikethrough",title:q,tagName:"s",className:null,edit:function(t){var e=t.isActive,n=t.value,r=t.onChange,i=t.onFocus;return Object(c.createElement)(a.RichTextToolbarButton,{icon:$,title:q,onClick:function(){r(Object(o.toggleFormat)(n,{type:"core/strikethrough"})),i()},isActive:e})}},X={name:"core/underline",title:Object(i.__)("Underline"),tagName:"span",className:null,attributes:{style:"style"},edit:function(t){var e=t.value,n=t.onChange,r=function(){n(Object(o.toggleFormat)(e,{type:"core/underline",attributes:{style:"text-decoration: underline;"}}))};return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(a.RichTextShortcut,{type:"primary",character:"u",onUse:r}),Object(c.createElement)(a.__unstableRichTextInputEvent,{inputType:"formatUnderline",onInput:r}))}},Y=n(142),Z=n(424),tt=n(8),et=n(4),nt=n(29);function rt(t,e,n){var r=Object(o.getActiveFormat)(e,t);if(r){var c=r.attributes.style;if(c)return c.replace(new RegExp("^color:\\s*"),"");var i=r.attributes.class;if(i){var l=i.replace(/.*has-([^\s]*)-color.*/,"$1");return Object(a.getColorObjectByAttributeValues)(n,l).color}}}var ot=function(t){var e=t.addingColor,n=Object(r.a)(t,["addingColor"]),o=Object(c.useMemo)((function(){var t=window.getSelection(),n=t.rangeCount>0?t.getRangeAt(0):null;if(n){if(e)return Object(nt.getRectangleFromRange)(n);var r=n.startContainer;for(r=r.nextElementSibling||r;r.nodeType!==r.ELEMENT_NODE;)r=r.parentNode;var o=r.closest("span");return o?o.getBoundingClientRect():void 0}}),[]);return o?Object(c.createElement)(a.URLPopover,Object(tt.a)({anchorRect:o},n)):null},ct=function(t){var e=t.name,n=t.value,r=t.onChange,i=Object(et.useSelect)((function(t){var e=t("core/block-editor").getSettings;return Object(H.get)(e(),["colors"],[])})),l=Object(c.useCallback)((function(t){if(t){var c=Object(a.getColorObjectByColorValue)(i,t);r(Object(o.applyFormat)(n,{type:e,attributes:c?{class:Object(a.getColorClassName)("color",c.slug)}:{style:"color:".concat(t)}}))}else r(Object(o.removeFormat)(n,e))}),[i,r]),u=Object(c.useMemo)((function(){return rt(e,n,i)}),[e,n,i]);return Object(c.createElement)(a.ColorPalette,{value:u,onChange:l})},it=Object(w.withSpokenMessages)((function(t){var e=t.name,n=t.value,r=t.onChange,o=t.onClose,i=t.addingColor;return Object(c.createElement)(ot,{value:n,addingColor:i,onClose:o,className:"components-inline-color-popover"},Object(c.createElement)(ct,{name:e,value:n,onChange:r}))})),at=Object(i.__)("Text Color"),lt=[];var ut={name:"core/text-color",title:at,tagName:"span",className:"has-inline-color",attributes:{style:"style",class:"class"},edit:function(t){var e=t.value,n=t.onChange,r=t.isActive,i=t.activeAttributes,l=Object(a.__experimentalUseEditorFeature)("color.custom"),u=Object(a.__experimentalUseEditorFeature)("color.palette")||lt,s=Object(c.useState)(!1),b=Object(z.a)(s,2),f=b[0],p=b[1],m=Object(c.useCallback)((function(){return p(!0)}),[p]),O=Object(c.useCallback)((function(){return p(!1)}),[p]),h=Object(c.useMemo)((function(){var t=rt("core/text-color",e,u);if(t)return{backgroundColor:t}}),[e,u]),v=!Object(H.isEmpty)(u)||!l;return v||r?Object(c.createElement)(c.Fragment,null,Object(c.createElement)(a.RichTextToolbarButton,{key:r?"text-color":"text-color-not-active",className:"format-library-text-color-button",name:r?"text-color":void 0,icon:Object(c.createElement)(c.Fragment,null,Object(c.createElement)(Y.a,{icon:Z.a}),r&&Object(c.createElement)("span",{className:"format-library-text-color-button__indicator",style:h})),title:at,onClick:v?m:function(){return n(Object(o.removeFormat)(e,"core/text-color"))}}),f&&Object(c.createElement)(it,{name:"core/text-color",addingColor:f,onClose:O,activeAttributes:i,value:e,onChange:n})):null}},st=Object(c.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(l.Path,{d:"M16.9 18.3l.8-1.2c.4-.6.7-1.2.9-1.6.2-.4.3-.8.3-1.2 0-.3-.1-.7-.2-1-.1-.3-.4-.5-.6-.7-.3-.2-.6-.3-1-.3s-.8.1-1.1.2c-.3.1-.7.3-1 .6l.2 1.3c.3-.3.5-.5.8-.6s.6-.2.9-.2c.3 0 .5.1.7.2.2.2.2.4.2.7 0 .3-.1.5-.2.8-.1.3-.4.7-.8 1.3L15 19.4h4.3v-1.2h-2.4zM14.1 7.2h-2L9.5 11 6.9 7.2h-2l3.6 5.3L4.7 18h2l2.7-4 2.7 4h2l-3.8-5.5 3.8-5.3z"})),bt=Object(i.__)("Subscript"),ft={name:"core/subscript",title:bt,tagName:"sub",className:null,edit:function(t){var e=t.isActive,n=t.value,r=t.onChange,i=t.onFocus;return Object(c.createElement)(a.RichTextToolbarButton,{icon:st,title:bt,onClick:function(){r(Object(o.toggleFormat)(n,{type:"core/subscript"})),i()},isActive:e})}},pt=Object(c.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(l.Path,{d:"M16.9 10.3l.8-1.3c.4-.6.7-1.2.9-1.6.2-.4.3-.8.3-1.2 0-.3-.1-.7-.2-1-.2-.2-.4-.4-.7-.6-.3-.2-.6-.3-1-.3s-.8.1-1.1.2c-.3.1-.7.3-1 .6l.1 1.3c.3-.3.5-.5.8-.6s.6-.2.9-.2c.3 0 .5.1.7.2.2.2.2.4.2.7 0 .3-.1.5-.2.8-.1.3-.4.7-.8 1.3l-1.8 2.8h4.3v-1.2h-2.2zm-2.8-3.1h-2L9.5 11 6.9 7.2h-2l3.6 5.3L4.7 18h2l2.7-4 2.7 4h2l-3.8-5.5 3.8-5.3z"})),mt=Object(i.__)("Superscript");[b,m,A,N,Q,J,X,ut,ft,{name:"core/superscript",title:mt,tagName:"sup",className:null,edit:function(t){var e=t.isActive,n=t.value,r=t.onChange,i=t.onFocus;return Object(c.createElement)(a.RichTextToolbarButton,{icon:pt,title:mt,onClick:function(){r(Object(o.toggleFormat)(n,{type:"core/superscript"})),i()},isActive:e})}}].forEach((function(t){var e=t.name,n=Object(r.a)(t,["name"]);return Object(o.registerFormatType)(e,n)}))},5:function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",(function(){return r}))},6:function(t,e){!function(){t.exports=this.wp.blockEditor}()},69:function(t,e){!function(){t.exports=this.wp.htmlEntities}()},7:function(t,e){!function(){t.exports=this.wp.primitives}()},8:function(t,e,n){"use strict";function r(){return(r=Object.assign||function(t){for(var e=1;e=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(c[n]=t[n])}return c}},141:function(t,e,n){"use strict";var r=n(5),o=n(14),c=n(0);function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}e.a=function(t){var e=t.icon,n=t.size,a=void 0===n?24:n,l=Object(o.a)(t,["icon","size"]);return Object(c.cloneElement)(e,function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0||(o[n]=t[n]);return o}n.d(e,"a",(function(){return r}))},464:function(t,e,n){"use strict";n.r(e);var r=n(14),o=n(25),c=n(0),i=n(1),a=n(6),l=n(7),u=Object(c.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(l.Path,{d:"M14.7 11.3c1-.6 1.5-1.6 1.5-3 0-2.3-1.3-3.4-4-3.4H7v14h5.8c1.4 0 2.5-.3 3.3-1 .8-.7 1.2-1.7 1.2-2.9.1-1.9-.8-3.1-2.6-3.7zm-5.1-4h2.3c.6 0 1.1.1 1.4.4.3.3.5.7.5 1.2s-.2 1-.5 1.2c-.3.3-.8.4-1.4.4H9.6V7.3zm4.6 9c-.4.3-1 .4-1.7.4H9.6v-3.9h2.9c.7 0 1.3.2 1.7.5.4.3.6.8.6 1.5s-.2 1.2-.6 1.5z"})),s=Object(i.__)("Bold"),b={name:"core/bold",title:s,tagName:"strong",className:null,edit:function(t){var e=t.isActive,n=t.value,r=t.onChange,i=t.onFocus;function l(){r(Object(o.toggleFormat)(n,{type:"core/bold"}))}return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(a.RichTextShortcut,{type:"primary",character:"b",onUse:l}),Object(c.createElement)(a.RichTextToolbarButton,{name:"bold",icon:u,title:s,onClick:function(){l(),i()},isActive:e,shortcutType:"primary",shortcutCharacter:"b"}),Object(c.createElement)(a.__unstableRichTextInputEvent,{inputType:"formatBold",onInput:l}))}},f=n(320),p=Object(i.__)("Inline Code"),m={name:"core/code",title:p,tagName:"code",className:null,__unstableInputRule:function(t){var e=t,n=e.start,r=e.text;if("`"!==r.slice(n-1,n))return t;var c=r.slice(0,n-1).lastIndexOf("`");if(-1===c)return t;var i=c,a=n-2;return i===a?t:(t=Object(o.remove)(t,i,i+1),t=Object(o.remove)(t,a,a+1),t=Object(o.applyFormat)(t,{type:"core/code"},i,a))},edit:function(t){var e=t.value,n=t.onChange,r=t.onFocus,i=t.isActive;return Object(c.createElement)(a.RichTextToolbarButton,{icon:f.a,title:p,onClick:function(){n(Object(o.toggleFormat)(e,{type:"core/code"})),r()},isActive:i})}},O=n(5),v=n(21),h=n(22),d=n(16),j=n(23),y=n(24),g=n(19),w=n(3),E=n(18),x=n(216);function k(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function C(t){for(var e=1;e-1&&t.stopPropagation()}},{key:"openModal",value:function(){this.setState({modal:!0})}},{key:"closeModal",value:function(){this.setState({modal:!1})}},{key:"componentDidMount",value:function(){this.anchorRef=R()}},{key:"componentDidUpdate",value:function(t){(!t.isObjectActive&&this.props.isObjectActive||t.activeObjectAttributes.url!==this.props.activeObjectAttributes.url)&&(this.anchorRef=R())}},{key:"render",value:function(){var t=this,e=this.props,n=e.value,r=e.onChange,l=e.onFocus,u=e.isObjectActive,s=e.activeObjectAttributes;return Object(c.createElement)(a.MediaUploadCheck,null,Object(c.createElement)(a.RichTextToolbarButton,{icon:Object(c.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(w.Path,{d:"M4 18.5h16V17H4v1.5zM16 13v1.5h4V13h-4zM5.1 15h7.8c.6 0 1.1-.5 1.1-1.1V6.1c0-.6-.5-1.1-1.1-1.1H5.1C4.5 5 4 5.5 4 6.1v7.8c0 .6.5 1.1 1.1 1.1zm.4-8.5h7V10l-1-1c-.3-.3-.8-.3-1 0l-1.6 1.5-1.2-.7c-.3-.2-.6-.2-.9 0l-1.3 1V6.5zm0 6.1l1.8-1.3 1.3.8c.3.2.7.2.9-.1l1.5-1.4 1.5 1.4v1.5h-7v-.9z"})),title:P,onClick:this.openModal,isActive:u}),this.state.modal&&Object(c.createElement)(a.MediaUpload,{allowedTypes:S,onSelect:function(e){var c=e.id,i=e.url,a=e.alt,u=e.width;t.closeModal(),r(Object(o.insertObject)(n,{type:"core/image",attributes:{className:"wp-image-".concat(c),style:"width: ".concat(Math.min(u,150),"px;"),url:i,alt:a}})),l()},onClose:this.closeModal,render:function(t){return(0,t.open)(),null}}),u&&Object(c.createElement)(w.Popover,{position:"bottom center",focusOnMount:!1,anchorRef:this.anchorRef},Object(c.createElement)("form",{className:"block-editor-format-toolbar__image-container-content",onKeyPress:T,onKeyDown:this.onKeyDown,onSubmit:function(e){var o=n.replacements.slice();o[n.start]={type:"core/image",attributes:C(C({},s),{},{style:"width: ".concat(t.state.width,"px;")})},r(C(C({},n),{},{replacements:o})),e.preventDefault()}},Object(c.createElement)(w.TextControl,{className:"block-editor-format-toolbar__image-container-value",type:"number",label:Object(i.__)("Width"),value:this.state.width,min:1,onChange:this.onChange}),Object(c.createElement)(w.Button,{icon:x.a,label:Object(i.__)("Apply"),type:"submit"}))))}}],[{key:"getDerivedStateFromProps",value:function(t,e){var n=t.activeObjectAttributes.style;return n===e.previousStyle?null:n?{width:n.replace(/\D/g,""),previousStyle:n}:{width:void 0,previousStyle:n}}}]),n}(c.Component)},F=Object(c.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(l.Path,{d:"M12.5 5L10 19h1.9l2.5-14z"})),M=Object(i.__)("Italic"),N={name:"core/italic",title:M,tagName:"em",className:null,edit:function(t){var e=t.isActive,n=t.value,r=t.onChange,i=t.onFocus;function l(){r(Object(o.toggleFormat)(n,{type:"core/italic"}))}return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(a.RichTextShortcut,{type:"primary",character:"i",onUse:l}),Object(c.createElement)(a.RichTextToolbarButton,{name:"italic",icon:F,title:M,onClick:function(){l(),i()},isActive:e,shortcutType:"primary",shortcutCharacter:"i"}),Object(c.createElement)(a.__unstableRichTextInputEvent,{inputType:"formatItalic",onInput:l}))}},L=n(31),D=n(69),V=n(218),B=n(186),z=n(12),H=n(2);function I(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function U(t){for(var e=1;e]+>/g,"").trim();return Object(L.isURL)(c)?(window.console.log("Created link:\n\n",c),Object(o.applyFormat)(t,{type:"core/link",attributes:{url:Object(D.decodeEntities)(c)}})):t},edit:Object(w.withSpokenMessages)(function(t){Object(j.a)(n,t);var e=K(n);function n(){var t;return Object(v.a)(this,n),(t=e.apply(this,arguments)).addLink=t.addLink.bind(Object(d.a)(t)),t.stopAddingLink=t.stopAddingLink.bind(Object(d.a)(t)),t.onRemoveFormat=t.onRemoveFormat.bind(Object(d.a)(t)),t.state={addingLink:!1},t}return Object(h.a)(n,[{key:"addLink",value:function(){var t=this.props,e=t.value,n=t.onChange,r=Object(o.getTextContent)(Object(o.slice)(e));r&&Object(L.isURL)(r)?n(Object(o.applyFormat)(e,{type:"core/link",attributes:{url:r}})):r&&Object(L.isEmail)(r)?n(Object(o.applyFormat)(e,{type:"core/link",attributes:{url:"mailto:".concat(r)}})):this.setState({addingLink:!0})}},{key:"stopAddingLink",value:function(){this.setState({addingLink:!1}),this.props.onFocus()}},{key:"onRemoveFormat",value:function(){var t=this.props,e=t.value,n=t.onChange,r=t.speak;n(Object(o.removeFormat)(e,"core/link")),r(Object(i.__)("Link removed."),"assertive")}},{key:"render",value:function(){var t=this.props,e=t.isActive,n=t.activeAttributes,r=t.value,o=t.onChange;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(a.RichTextShortcut,{type:"primary",character:"k",onUse:this.addLink}),Object(c.createElement)(a.RichTextShortcut,{type:"primaryShift",character:"k",onUse:this.onRemoveFormat}),e&&Object(c.createElement)(a.RichTextToolbarButton,{name:"link",icon:V.a,title:Object(i.__)("Unlink"),onClick:this.onRemoveFormat,isActive:e,shortcutType:"primaryShift",shortcutCharacter:"k"}),!e&&Object(c.createElement)(a.RichTextToolbarButton,{name:"link",icon:B.a,title:W,onClick:this.addLink,isActive:e,shortcutType:"primary",shortcutCharacter:"k"}),(this.state.addingLink||e)&&Object(c.createElement)(G,{addingLink:this.state.addingLink,stopAddingLink:this.stopAddingLink,isActive:e,activeAttributes:n,value:r,onChange:o}))}}]),n}(c.Component))},$=Object(c.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(l.Path,{d:"M9.1 9v-.5c0-.6.2-1.1.7-1.4.5-.3 1.2-.5 2-.5.7 0 1.4.1 2.1.3.7.2 1.4.5 2.1.9l.2-1.9c-.6-.3-1.2-.5-1.9-.7-.8-.1-1.6-.2-2.4-.2-1.5 0-2.7.3-3.6 1-.8.7-1.2 1.5-1.2 2.6V9h2zM20 12H4v1h8.3c.3.1.6.2.8.3.5.2.9.5 1.1.8.3.3.4.7.4 1.2 0 .7-.2 1.1-.8 1.5-.5.3-1.2.5-2.1.5-.8 0-1.6-.1-2.4-.3-.8-.2-1.5-.5-2.2-.8L7 18.1c.5.2 1.2.4 2 .6.8.2 1.6.3 2.4.3 1.7 0 3-.3 3.9-1 .9-.7 1.3-1.6 1.3-2.8 0-.9-.2-1.7-.7-2.2H20v-1z"})),q=Object(i.__)("Strikethrough"),J={name:"core/strikethrough",title:q,tagName:"s",className:null,edit:function(t){var e=t.isActive,n=t.value,r=t.onChange,i=t.onFocus;return Object(c.createElement)(a.RichTextToolbarButton,{icon:$,title:q,onClick:function(){r(Object(o.toggleFormat)(n,{type:"core/strikethrough"})),i()},isActive:e})}},X={name:"core/underline",title:Object(i.__)("Underline"),tagName:"span",className:null,attributes:{style:"style"},edit:function(t){var e=t.value,n=t.onChange,r=function(){n(Object(o.toggleFormat)(e,{type:"core/underline",attributes:{style:"text-decoration: underline;"}}))};return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(a.RichTextShortcut,{type:"primary",character:"u",onUse:r}),Object(c.createElement)(a.__unstableRichTextInputEvent,{inputType:"formatUnderline",onInput:r}))}},Y=n(141),Z=n(428),tt=n(8),et=n(4),nt=n(29);function rt(t,e,n){var r=Object(o.getActiveFormat)(e,t);if(r){var c=r.attributes.style;if(c)return c.replace(new RegExp("^color:\\s*"),"");var i=r.attributes.class;if(i){var l=i.replace(/.*has-([^\s]*)-color.*/,"$1");return Object(a.getColorObjectByAttributeValues)(n,l).color}}}var ot=function(t){var e=t.addingColor,n=Object(r.a)(t,["addingColor"]),o=Object(c.useMemo)((function(){var t=window.getSelection(),n=t.rangeCount>0?t.getRangeAt(0):null;if(n){if(e)return Object(nt.getRectangleFromRange)(n);var r=n.startContainer;for(r=r.nextElementSibling||r;r.nodeType!==r.ELEMENT_NODE;)r=r.parentNode;var o=r.closest("span");return o?o.getBoundingClientRect():void 0}}),[]);return o?Object(c.createElement)(a.URLPopover,Object(tt.a)({anchorRect:o},n)):null},ct=function(t){var e=t.name,n=t.value,r=t.onChange,i=Object(et.useSelect)((function(t){var e=t("core/block-editor").getSettings;return Object(H.get)(e(),["colors"],[])})),l=Object(c.useCallback)((function(t){if(t){var c=Object(a.getColorObjectByColorValue)(i,t);r(Object(o.applyFormat)(n,{type:e,attributes:c?{class:Object(a.getColorClassName)("color",c.slug)}:{style:"color:".concat(t)}}))}else r(Object(o.removeFormat)(n,e))}),[i,r]),u=Object(c.useMemo)((function(){return rt(e,n,i)}),[e,n,i]);return Object(c.createElement)(a.ColorPalette,{value:u,onChange:l})};function it(t){var e=t.name,n=t.value,r=t.onChange,o=t.onClose,i=t.addingColor;return Object(c.createElement)(ot,{value:n,addingColor:i,onClose:o,className:"components-inline-color-popover"},Object(c.createElement)(ct,{name:e,value:n,onChange:r}))}var at=Object(i.__)("Text Color"),lt=[];var ut={name:"core/text-color",title:at,tagName:"span",className:"has-inline-color",attributes:{style:"style",class:"class"},edit:function(t){var e=t.value,n=t.onChange,r=t.isActive,i=t.activeAttributes,l=Object(a.__experimentalUseEditorFeature)("color.custom"),u=Object(a.__experimentalUseEditorFeature)("color.palette")||lt,s=Object(c.useState)(!1),b=Object(z.a)(s,2),f=b[0],p=b[1],m=Object(c.useCallback)((function(){return p(!0)}),[p]),O=Object(c.useCallback)((function(){return p(!1)}),[p]),v=Object(c.useMemo)((function(){var t=rt("core/text-color",e,u);if(t)return{backgroundColor:t}}),[e,u]),h=!Object(H.isEmpty)(u)||!l;return h||r?Object(c.createElement)(c.Fragment,null,Object(c.createElement)(a.RichTextToolbarButton,{key:r?"text-color":"text-color-not-active",className:"format-library-text-color-button",name:r?"text-color":void 0,icon:Object(c.createElement)(c.Fragment,null,Object(c.createElement)(Y.a,{icon:Z.a}),r&&Object(c.createElement)("span",{className:"format-library-text-color-button__indicator",style:v})),title:at,onClick:h?m:function(){return n(Object(o.removeFormat)(e,"core/text-color"))}}),f&&Object(c.createElement)(it,{name:"core/text-color",addingColor:f,onClose:O,activeAttributes:i,value:e,onChange:n})):null}},st=Object(c.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(l.Path,{d:"M16.9 18.3l.8-1.2c.4-.6.7-1.2.9-1.6.2-.4.3-.8.3-1.2 0-.3-.1-.7-.2-1-.1-.3-.4-.5-.6-.7-.3-.2-.6-.3-1-.3s-.8.1-1.1.2c-.3.1-.7.3-1 .6l.2 1.3c.3-.3.5-.5.8-.6s.6-.2.9-.2c.3 0 .5.1.7.2.2.2.2.4.2.7 0 .3-.1.5-.2.8-.1.3-.4.7-.8 1.3L15 19.4h4.3v-1.2h-2.4zM14.1 7.2h-2L9.5 11 6.9 7.2h-2l3.6 5.3L4.7 18h2l2.7-4 2.7 4h2l-3.8-5.5 3.8-5.3z"})),bt=Object(i.__)("Subscript"),ft={name:"core/subscript",title:bt,tagName:"sub",className:null,edit:function(t){var e=t.isActive,n=t.value,r=t.onChange,i=t.onFocus;return Object(c.createElement)(a.RichTextToolbarButton,{icon:st,title:bt,onClick:function(){r(Object(o.toggleFormat)(n,{type:"core/subscript"})),i()},isActive:e})}},pt=Object(c.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(l.Path,{d:"M16.9 10.3l.8-1.3c.4-.6.7-1.2.9-1.6.2-.4.3-.8.3-1.2 0-.3-.1-.7-.2-1-.2-.2-.4-.4-.7-.6-.3-.2-.6-.3-1-.3s-.8.1-1.1.2c-.3.1-.7.3-1 .6l.1 1.3c.3-.3.5-.5.8-.6s.6-.2.9-.2c.3 0 .5.1.7.2.2.2.2.4.2.7 0 .3-.1.5-.2.8-.1.3-.4.7-.8 1.3l-1.8 2.8h4.3v-1.2h-2.2zm-2.8-3.1h-2L9.5 11 6.9 7.2h-2l3.6 5.3L4.7 18h2l2.7-4 2.7 4h2l-3.8-5.5 3.8-5.3z"})),mt=Object(i.__)("Superscript");[b,m,A,N,Q,J,X,ut,ft,{name:"core/superscript",title:mt,tagName:"sup",className:null,edit:function(t){var e=t.isActive,n=t.value,r=t.onChange,i=t.onFocus;return Object(c.createElement)(a.RichTextToolbarButton,{icon:pt,title:mt,onClick:function(){r(Object(o.toggleFormat)(n,{type:"core/superscript"})),i()},isActive:e})}}].forEach((function(t){var e=t.name,n=Object(r.a)(t,["name"]);return Object(o.registerFormatType)(e,n)}))},5:function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",(function(){return r}))},6:function(t,e){!function(){t.exports=this.wp.blockEditor}()},69:function(t,e){!function(){t.exports=this.wp.htmlEntities}()},7:function(t,e){!function(){t.exports=this.wp.primitives}()},8:function(t,e,n){"use strict";function r(){return(r=Object.assign||function(t){for(var e=1;en.length)&&(r=n.length);for(var e=0,t=new Array(r);e3&&void 0!==arguments[3]?arguments[3]:10;if(o(r)&&t(e))if("function"==typeof i)if("number"==typeof u){var c={callback:i,priority:u,namespace:e};if(n[r]){var a,l=n[r].handlers;for(a=l.length;a>0&&!(u>=l[a-1].priority);a--);a===l.length?l[a]=c:l.splice(a,0,c),(n.__current||[]).forEach((function(n){n.name===r&&n.currentIndex>=a&&n.currentIndex++}))}else n[r]={handlers:[c],runs:0};"hookAdded"!==r&&F("hookAdded",r,e,i,u)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}};var u=function(n,r){return function(e,i){if(o(e)&&(r||t(i))){if(!n[e])return 0;var u=0;if(r)u=n[e].handlers.length,n[e]={runs:n[e].runs,handlers:[]};else for(var c=n[e].handlers,a=function(r){c[r].namespace===i&&(c.splice(r,1),u++,(n.__current||[]).forEach((function(n){n.name===e&&n.currentIndex>=r&&n.currentIndex--})))},l=c.length-1;l>=0;l--)a(l);return"hookRemoved"!==e&&F("hookRemoved",e,i),u}}};var c=function(n){return function(r,e){return void 0!==e?r in n&&n[r].handlers.some((function(n){return n.namespace===e})):r in n}};e(18);var a=function(n,r){return function(e){n[e]||(n[e]={handlers:[],runs:0}),n[e].runs++;var t=n[e].handlers;for(var o=arguments.length,i=new Array(o>1?o-1:0),u=1;un.length)&&(r=n.length);for(var e=0,t=new Array(r);e3&&void 0!==arguments[3]?arguments[3]:10;if(o(r)&&t(e))if("function"==typeof i)if("number"==typeof u){var c={callback:i,priority:u,namespace:e};if(n[r]){var a,l=n[r].handlers;for(a=l.length;a>0&&!(u>=l[a-1].priority);a--);a===l.length?l[a]=c:l.splice(a,0,c),(n.__current||[]).forEach((function(n){n.name===r&&n.currentIndex>=a&&n.currentIndex++}))}else n[r]={handlers:[c],runs:0};"hookAdded"!==r&&F("hookAdded",r,e,i,u)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}};var u=function(n,r){return function(e,i){if(o(e)&&(r||t(i))){if(!n[e])return 0;var u=0;if(r)u=n[e].handlers.length,n[e]={runs:n[e].runs,handlers:[]};else for(var c=n[e].handlers,a=function(r){c[r].namespace===i&&(c.splice(r,1),u++,(n.__current||[]).forEach((function(n){n.name===e&&n.currentIndex>=r&&n.currentIndex--})))},l=c.length-1;l>=0;l--)a(l);return"hookRemoved"!==e&&F("hookRemoved",e,i),u}}};var c=function(n){return function(r,e){return void 0!==e?r in n&&n[r].handlers.some((function(n){return n.namespace===e})):r in n}};e(17);var a=function(n,r){return function(e){n[e]||(n[e]={handlers:[],runs:0}),n[e].runs++;var t=n[e].handlers;for(var o=arguments.length,i=new Array(o>1?o-1:0),u=1;u=0),a.type){case"b":e=parseInt(e,10).toString(2);break;case"c":e=String.fromCharCode(parseInt(e,10));break;case"d":case"i":e=parseInt(e,10);break;case"j":e=JSON.stringify(e,null,a.width?parseInt(a.width):0);break;case"e":e=a.precision?parseFloat(e).toExponential(a.precision):parseFloat(e).toExponential();break;case"f":e=a.precision?parseFloat(e).toFixed(a.precision):parseFloat(e);break;case"g":e=a.precision?String(Number(e.toPrecision(a.precision))):parseFloat(e);break;case"o":e=(parseInt(e,10)>>>0).toString(8);break;case"s":e=String(e),e=a.precision?e.substring(0,a.precision):e;break;case"t":e=String(!!e),e=a.precision?e.substring(0,a.precision):e;break;case"T":e=Object.prototype.toString.call(e).slice(8,-1).toLowerCase(),e=a.precision?e.substring(0,a.precision):e;break;case"u":e=parseInt(e,10)>>>0;break;case"v":e=e.valueOf(),e=a.precision?e.substring(0,a.precision):e;break;case"x":e=(parseInt(e,10)>>>0).toString(16);break;case"X":e=(parseInt(e,10)>>>0).toString(16).toUpperCase()}i.json.test(a.type)?h+=e:(!i.number.test(a.type)||f&&!a.sign?l="":(l=f?"+":"-",e=e.toString().replace(i.sign,"")),c=a.pad_char?"0"===a.pad_char?"0":a.pad_char.charAt(1):" ",p=a.width-(l+e).length,s=a.width&&p>0?c.repeat(p):"",h+=a.align?l+e+s:"0"===c?l+s+e:s+l+e)}return h}var s=Object.create(null);function c(n){if(s[n])return s[n];for(var t,e=n,r=[],o=0;e;){if(null!==(t=i.text.exec(e)))r.push(t[0]);else if(null!==(t=i.modulo.exec(e)))r.push("%");else{if(null===(t=i.placeholder.exec(e)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){o|=1;var u=[],a=t[2],c=[];if(null===(c=i.key.exec(a)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(u.push(c[1]);""!==(a=a.substring(c[0].length));)if(null!==(c=i.key_access.exec(a)))u.push(c[1]);else{if(null===(c=i.index_access.exec(a)))throw new SyntaxError("[sprintf] failed to parse named argument key");u.push(c[1])}t[2]=u}else o|=2;if(3===o)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");r.push({placeholder:t[0],param_no:t[1],keys:t[2],sign:t[3],pad_char:t[4],align:t[5],width:t[6],precision:t[7],type:t[8]})}e=e.substring(t[0].length)}return s[n]=r}t.sprintf=o,t.vsprintf=u,"undefined"!=typeof window&&(window.sprintf=o,window.vsprintf=u,void 0===(r=function(){return{sprintf:o,vsprintf:u}}.call(t,e,t,n))||(n.exports=r))}()},466:function(n,t,e){"use strict";e.r(t),e.d(t,"sprintf",(function(){return s})),e.d(t,"createI18n",(function(){return _})),e.d(t,"setLocaleData",(function(){return O})),e.d(t,"__",(function(){return j})),e.d(t,"_x",(function(){return k})),e.d(t,"_n",(function(){return S})),e.d(t,"_nx",(function(){return P})),e.d(t,"isRTL",(function(){return F}));var r=e(60),i=e.n(r),o=e(201),u=e.n(o),a=i()(console.error);function s(n){try{for(var t=arguments.length,e=new Array(t>1?t-1:0),r=1;r":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},p=["(","?"],f={")":["("],":":["?","?:"]},l=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var g={"!":function(n){return!n},"*":function(n,t){return n*t},"/":function(n,t){return n/t},"%":function(n,t){return n%t},"+":function(n,t){return n+t},"-":function(n,t){return n-t},"<":function(n,t){return n":function(n,t){return n>t},">=":function(n,t){return n>=t},"==":function(n,t){return n===t},"!=":function(n,t){return n!==t},"&&":function(n,t){return n&&t},"||":function(n,t){return n||t},"?:":function(n,t,e){if(n)throw t;return e}};function h(n){var t=function(n){for(var t,e,r,i,o=[],u=[];t=n.match(l);){for(e=t[0],(r=n.substr(0,t.index).trim())&&o.push(r);i=u.pop();){if(f[e]){if(f[e][0]===i){e=f[e][1]||e;break}}else if(p.indexOf(i)>=0||c[i]1&&void 0!==arguments[1]?arguments[1]:"default";e.data[t]=x(x(x({},m),e.data[t]),n),e.data[t][""]=x(x({},m[""]),e.data[t][""])},i=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",t=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,u=arguments.length>4?arguments[4]:void 0;return e.data[n]||r(void 0,n),e.dcnpgettext(n,t,i,o,u)},o=function(n,t,e){return i(e,t,n)};return n&&r(n,t),{setLocaleData:r,__:function(n,t){return i(t,void 0,n)},_x:o,_n:function(n,t,e,r){return i(r,void 0,n,t,e)},_nx:function(n,t,e,r,o){return i(o,r,n,t,e)},isRTL:function(){return"rtl"===o("ltr","text direction")}}},w=_(),O=w.setLocaleData.bind(w),j=w.__.bind(w),k=w._x.bind(w),S=w._n.bind(w),P=w._nx.bind(w),F=w.isRTL.bind(w)},5:function(n,t,e){"use strict";function r(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}e.d(t,"a",(function(){return r}))},60:function(n,t,e){n.exports=function(n,t){var e,r,i=0;function o(){var o,u,a=e,s=arguments.length;n:for(;a;){if(a.args.length===arguments.length){for(u=0;u=0),a.type){case"b":e=parseInt(e,10).toString(2);break;case"c":e=String.fromCharCode(parseInt(e,10));break;case"d":case"i":e=parseInt(e,10);break;case"j":e=JSON.stringify(e,null,a.width?parseInt(a.width):0);break;case"e":e=a.precision?parseFloat(e).toExponential(a.precision):parseFloat(e).toExponential();break;case"f":e=a.precision?parseFloat(e).toFixed(a.precision):parseFloat(e);break;case"g":e=a.precision?String(Number(e.toPrecision(a.precision))):parseFloat(e);break;case"o":e=(parseInt(e,10)>>>0).toString(8);break;case"s":e=String(e),e=a.precision?e.substring(0,a.precision):e;break;case"t":e=String(!!e),e=a.precision?e.substring(0,a.precision):e;break;case"T":e=Object.prototype.toString.call(e).slice(8,-1).toLowerCase(),e=a.precision?e.substring(0,a.precision):e;break;case"u":e=parseInt(e,10)>>>0;break;case"v":e=e.valueOf(),e=a.precision?e.substring(0,a.precision):e;break;case"x":e=(parseInt(e,10)>>>0).toString(16);break;case"X":e=(parseInt(e,10)>>>0).toString(16).toUpperCase()}i.json.test(a.type)?h+=e:(!i.number.test(a.type)||f&&!a.sign?l="":(l=f?"+":"-",e=e.toString().replace(i.sign,"")),c=a.pad_char?"0"===a.pad_char?"0":a.pad_char.charAt(1):" ",p=a.width-(l+e).length,s=a.width&&p>0?c.repeat(p):"",h+=a.align?l+e+s:"0"===c?l+s+e:s+l+e)}return h}var s=Object.create(null);function c(n){if(s[n])return s[n];for(var t,e=n,r=[],o=0;e;){if(null!==(t=i.text.exec(e)))r.push(t[0]);else if(null!==(t=i.modulo.exec(e)))r.push("%");else{if(null===(t=i.placeholder.exec(e)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){o|=1;var u=[],a=t[2],c=[];if(null===(c=i.key.exec(a)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(u.push(c[1]);""!==(a=a.substring(c[0].length));)if(null!==(c=i.key_access.exec(a)))u.push(c[1]);else{if(null===(c=i.index_access.exec(a)))throw new SyntaxError("[sprintf] failed to parse named argument key");u.push(c[1])}t[2]=u}else o|=2;if(3===o)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");r.push({placeholder:t[0],param_no:t[1],keys:t[2],sign:t[3],pad_char:t[4],align:t[5],width:t[6],precision:t[7],type:t[8]})}e=e.substring(t[0].length)}return s[n]=r}t.sprintf=o,t.vsprintf=u,"undefined"!=typeof window&&(window.sprintf=o,window.vsprintf=u,void 0===(r=function(){return{sprintf:o,vsprintf:u}}.call(t,e,t,n))||(n.exports=r))}()},471:function(n,t,e){"use strict";e.r(t),e.d(t,"sprintf",(function(){return s})),e.d(t,"createI18n",(function(){return _})),e.d(t,"setLocaleData",(function(){return O})),e.d(t,"__",(function(){return j})),e.d(t,"_x",(function(){return k})),e.d(t,"_n",(function(){return S})),e.d(t,"_nx",(function(){return P})),e.d(t,"isRTL",(function(){return F}));var r=e(60),i=e.n(r),o=e(203),u=e.n(o),a=i()(console.error);function s(n){try{for(var t=arguments.length,e=new Array(t>1?t-1:0),r=1;r":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},p=["(","?"],f={")":["("],":":["?","?:"]},l=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var g={"!":function(n){return!n},"*":function(n,t){return n*t},"/":function(n,t){return n/t},"%":function(n,t){return n%t},"+":function(n,t){return n+t},"-":function(n,t){return n-t},"<":function(n,t){return n":function(n,t){return n>t},">=":function(n,t){return n>=t},"==":function(n,t){return n===t},"!=":function(n,t){return n!==t},"&&":function(n,t){return n&&t},"||":function(n,t){return n||t},"?:":function(n,t,e){if(n)throw t;return e}};function h(n){var t=function(n){for(var t,e,r,i,o=[],u=[];t=n.match(l);){for(e=t[0],(r=n.substr(0,t.index).trim())&&o.push(r);i=u.pop();){if(f[e]){if(f[e][0]===i){e=f[e][1]||e;break}}else if(p.indexOf(i)>=0||c[i]1&&void 0!==arguments[1]?arguments[1]:"default";e.data[t]=x(x(x({},m),e.data[t]),n),e.data[t][""]=x(x({},m[""]),e.data[t][""])},i=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",t=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,u=arguments.length>4?arguments[4]:void 0;return e.data[n]||r(void 0,n),e.dcnpgettext(n,t,i,o,u)},o=function(n,t,e){return i(e,t,n)};return n&&r(n,t),{setLocaleData:r,__:function(n,t){return i(t,void 0,n)},_x:o,_n:function(n,t,e,r){return i(r,void 0,n,t,e)},_nx:function(n,t,e,r,o){return i(o,r,n,t,e)},isRTL:function(){return"rtl"===o("ltr","text direction")}}},w=_(),O=w.setLocaleData.bind(w),j=w.__.bind(w),k=w._x.bind(w),S=w._n.bind(w),P=w._nx.bind(w),F=w.isRTL.bind(w)},5:function(n,t,e){"use strict";function r(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}e.d(t,"a",(function(){return r}))},60:function(n,t,e){n.exports=function(n,t){var e,r,i=0;function o(){var o,u,a=e,s=arguments.length;n:for(;a;){if(a.args.length===arguments.length){for(u=0;ut.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"REGISTER_SHORTCUT":return f(f({},t),{},Object(i.a)({},e.name,{category:e.category,keyCombination:e.keyCombination,aliases:e.aliases,description:e.description}));case"UNREGISTER_SHORTCUT":return Object(a.omit)(t,e.name)}return t};function l(t){var e=t.name,n=t.category,r=t.description;return{type:"REGISTER_SHORTCUT",name:e,category:n,keyCombination:t.keyCombination,aliases:t.aliases,description:r}}function p(t){return{type:"UNREGISTER_SHORTCUT",name:t}}var d=n(12),b=n(18),y=n(41),h=n(19),v=[],O={display:h.displayShortcut,raw:h.rawShortcut,ariaLabel:h.shortcutAriaLabel};function g(t,e){return t?t.modifier?O[e][t.modifier](t.character):t.character:null}function m(t,e){return t[e]?t[e].keyCombination:null}function j(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"display",r=m(t,e);return g(r,n)}function S(t,e){return t[e]?t[e].description:null}function w(t,e){return t[e]&&t[e].aliases?t[e].aliases:v}var x=Object(y.a)((function(t,e){return Object(a.compact)([g(m(t,e),"raw")].concat(Object(b.a)(w(t,e).map((function(t){return g(t,"raw")})))))}),(function(t,e){return[t[e]]})),T=Object(y.a)((function(t,e){return Object.entries(t).filter((function(t){return Object(d.a)(t,2)[1].category===e})).map((function(t){return Object(d.a)(t,1)[0]}))}),(function(t){return[t]})),R=(Object(u.registerStore)("core/keyboard-shortcuts",{reducer:s,actions:r,selectors:o}),n(10));var k=function(t,e,n){var r=Object(u.useSelect)((function(e){return e("core/keyboard-shortcuts").getAllShortcutRawKeyCombinations(t)}),[t]);Object(R.useKeyboardShortcut)(r,e,n)}},5:function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",(function(){return r}))}}); \ No newline at end of file +this.wp=this.wp||{},this.wp.keyboardShortcuts=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=475)}({10:function(t,e){!function(){t.exports=this.wp.compose}()},12:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(38);var o=n(30),u=n(39);function i(t,e){return Object(r.a)(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,o=!1,u=void 0;try{for(var i,a=t[Symbol.iterator]();!(r=(i=a.next()).done)&&(n.push(i.value),!e||n.length!==e);r=!0);}catch(t){o=!0,u=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw u}}return n}}(t,e)||Object(o.a)(t,e)||Object(u.a)()}},17:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(27);var o=n(37),u=n(30);function i(t){return function(t){if(Array.isArray(t))return Object(r.a)(t)}(t)||Object(o.a)(t)||Object(u.a)(t)||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.")}()}},18:function(t,e){!function(){t.exports=this.wp.keycodes}()},2:function(t,e){!function(){t.exports=this.lodash}()},27:function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"REGISTER_SHORTCUT":return f(f({},t),{},Object(i.a)({},e.name,{category:e.category,keyCombination:e.keyCombination,aliases:e.aliases,description:e.description}));case"UNREGISTER_SHORTCUT":return Object(a.omit)(t,e.name)}return t};function l(t){var e=t.name,n=t.category,r=t.description;return{type:"REGISTER_SHORTCUT",name:e,category:n,keyCombination:t.keyCombination,aliases:t.aliases,description:r}}function p(t){return{type:"UNREGISTER_SHORTCUT",name:t}}var d=n(12),b=n(17),y=n(42),h=n(18),v=[],O={display:h.displayShortcut,raw:h.rawShortcut,ariaLabel:h.shortcutAriaLabel};function g(t,e){return t?t.modifier?O[e][t.modifier](t.character):t.character:null}function m(t,e){return t[e]?t[e].keyCombination:null}function j(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"display",r=m(t,e);return g(r,n)}function S(t,e){return t[e]?t[e].description:null}function w(t,e){return t[e]&&t[e].aliases?t[e].aliases:v}var x=Object(y.a)((function(t,e){return Object(a.compact)([g(m(t,e),"raw")].concat(Object(b.a)(w(t,e).map((function(t){return g(t,"raw")})))))}),(function(t,e){return[t[e]]})),T=Object(y.a)((function(t,e){return Object.entries(t).filter((function(t){return Object(d.a)(t,2)[1].category===e})).map((function(t){return Object(d.a)(t,1)[0]}))}),(function(t){return[t]})),R=(Object(u.registerStore)("core/keyboard-shortcuts",{reducer:s,actions:r,selectors:o}),n(10));var k=function(t,e,n){var r=Object(u.useSelect)((function(e){return e("core/keyboard-shortcuts").getAllShortcutRawKeyCombinations(t)}),[t]);Object(R.useKeyboardShortcut)(r,e,n)}},5:function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",(function(){return r}))}}); \ No newline at end of file diff --git a/wp-includes/js/dist/keycodes.js b/wp-includes/js/dist/keycodes.js index 84575be886..118aa5570b 100644 --- a/wp-includes/js/dist/keycodes.js +++ b/wp-includes/js/dist/keycodes.js @@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["keycodes"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 480); +/******/ return __webpack_require__(__webpack_require__.s = 485); /******/ }) /************************************************************************/ /******/ ({ @@ -94,7 +94,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["keycodes"] = /***/ }), -/***/ 18: +/***/ 17: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -184,7 +184,7 @@ function _iterableToArray(iter) { /***/ }), -/***/ 480: +/***/ 485: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -219,7 +219,7 @@ __webpack_require__.d(__webpack_exports__, "isKeyboardEvent", function() { retur var defineProperty = __webpack_require__(5); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules -var toConsumableArray = __webpack_require__(18); +var toConsumableArray = __webpack_require__(17); // EXTERNAL MODULE: external {"this":"lodash"} var external_this_lodash_ = __webpack_require__(2); diff --git a/wp-includes/js/dist/keycodes.min.js b/wp-includes/js/dist/keycodes.min.js index 110b14657f..d180f4f228 100644 --- a/wp-includes/js/dist/keycodes.min.js +++ b/wp-includes/js/dist/keycodes.min.js @@ -1,2 +1,2 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.keycodes=function(t){var n={};function r(e){if(n[e])return n[e].exports;var u=n[e]={i:e,l:!1,exports:{}};return t[e].call(u.exports,u,u.exports,r),u.l=!0,u.exports}return r.m=t,r.c=n,r.d=function(t,n,e){r.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:e})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,n){if(1&n&&(t=r(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(r.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var u in t)r.d(e,u,function(n){return t[n]}.bind(null,u));return e},r.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(n,"a",n),n},r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},r.p="",r(r.s=480)}({1:function(t,n){!function(){t.exports=this.wp.i18n}()},18:function(t,n,r){"use strict";r.d(n,"a",(function(){return c}));var e=r(27);var u=r(37),o=r(30);function c(t){return function(t){if(Array.isArray(t))return Object(e.a)(t)}(t)||Object(u.a)(t)||Object(o.a)(t)||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(t,n){!function(){t.exports=this.lodash}()},27:function(t,n,r){"use strict";function e(t,n){(null==n||n>t.length)&&(n=t.length);for(var r=0,e=new Array(n);r0&&void 0!==arguments[0]?arguments[0]:window,n=t.navigator.platform;return-1!==n.indexOf("Mac")||Object(o.includes)(["iPad","iPhone"],n)}var a=8,f=9,l=13,d=27,b=32,s=37,O=38,j=39,p=40,y=46,v=121,m="alt",h="ctrl",g="meta",S="shift",A=48,w={primary:function(t){return t()?[g]:[h]},primaryShift:function(t){return t()?[S,g]:[h,S]},primaryAlt:function(t){return t()?[m,g]:[h,m]},secondary:function(t){return t()?[S,m,g]:[h,S,m]},access:function(t){return t()?[h,m]:[S,m]},ctrl:function(){return[h]},alt:function(){return[m]},ctrlShift:function(){return[h,S]},shift:function(){return[S]},shiftAlt:function(){return[S,m]}},C=Object(o.mapValues)(w,(function(t){return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return[].concat(Object(u.a)(t(r)),[n.toLowerCase()]).join("+")}})),E=Object(o.mapValues)(w,(function(t){return function(n){var r,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i,a=c(),f=(r={},Object(e.a)(r,m,a?"⌥":"Alt"),Object(e.a)(r,h,a?"⌃":"Ctrl"),Object(e.a)(r,g,"⌘"),Object(e.a)(r,S,a?"⇧":"Shift"),r),l=t(c).reduce((function(t,n){var r=Object(o.get)(f,n,n);return[].concat(Object(u.a)(t),a?[r]:[r,"+"])}),[]),d=Object(o.capitalize)(n);return[].concat(Object(u.a)(l),[d])}})),P=Object(o.mapValues)(E,(function(t){return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return t(n,r).join("")}})),_=Object(o.mapValues)(w,(function(t){return function(n){var r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i,f=a(),l=(r={},Object(e.a)(r,S,"Shift"),Object(e.a)(r,g,f?"Command":"Control"),Object(e.a)(r,h,"Control"),Object(e.a)(r,m,f?"Option":"Alt"),Object(e.a)(r,",",Object(c.__)("Comma")),Object(e.a)(r,".",Object(c.__)("Period")),Object(e.a)(r,"`",Object(c.__)("Backtick")),r);return[].concat(Object(u.a)(t(a)),[n]).map((function(t){return Object(o.capitalize)(Object(o.get)(l,t,t))})).join(f?" ":" + ")}}));function T(t){return[m,h,g,S].filter((function(n){return t["".concat(n,"Key")]}))}var x=Object(o.mapValues)(w,(function(t){return function(n,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i,u=t(e),c=T(n);return!Object(o.xor)(u,c).length&&(r?n.key===r:Object(o.includes)(u,n.key.toLowerCase()))}}))},5:function(t,n,r){"use strict";function e(t,n,r){return n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}r.d(n,"a",(function(){return e}))}}); \ No newline at end of file +this.wp=this.wp||{},this.wp.keycodes=function(t){var n={};function r(e){if(n[e])return n[e].exports;var u=n[e]={i:e,l:!1,exports:{}};return t[e].call(u.exports,u,u.exports,r),u.l=!0,u.exports}return r.m=t,r.c=n,r.d=function(t,n,e){r.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:e})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,n){if(1&n&&(t=r(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(r.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var u in t)r.d(e,u,function(n){return t[n]}.bind(null,u));return e},r.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(n,"a",n),n},r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},r.p="",r(r.s=485)}({1:function(t,n){!function(){t.exports=this.wp.i18n}()},17:function(t,n,r){"use strict";r.d(n,"a",(function(){return c}));var e=r(27);var u=r(37),o=r(30);function c(t){return function(t){if(Array.isArray(t))return Object(e.a)(t)}(t)||Object(u.a)(t)||Object(o.a)(t)||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(t,n){!function(){t.exports=this.lodash}()},27:function(t,n,r){"use strict";function e(t,n){(null==n||n>t.length)&&(n=t.length);for(var r=0,e=new Array(n);r0&&void 0!==arguments[0]?arguments[0]:window,n=t.navigator.platform;return-1!==n.indexOf("Mac")||Object(o.includes)(["iPad","iPhone"],n)}var a=8,f=9,l=13,d=27,b=32,s=37,O=38,j=39,p=40,y=46,v=121,m="alt",h="ctrl",g="meta",S="shift",A=48,w={primary:function(t){return t()?[g]:[h]},primaryShift:function(t){return t()?[S,g]:[h,S]},primaryAlt:function(t){return t()?[m,g]:[h,m]},secondary:function(t){return t()?[S,m,g]:[h,S,m]},access:function(t){return t()?[h,m]:[S,m]},ctrl:function(){return[h]},alt:function(){return[m]},ctrlShift:function(){return[h,S]},shift:function(){return[S]},shiftAlt:function(){return[S,m]}},C=Object(o.mapValues)(w,(function(t){return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return[].concat(Object(u.a)(t(r)),[n.toLowerCase()]).join("+")}})),E=Object(o.mapValues)(w,(function(t){return function(n){var r,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i,a=c(),f=(r={},Object(e.a)(r,m,a?"⌥":"Alt"),Object(e.a)(r,h,a?"⌃":"Ctrl"),Object(e.a)(r,g,"⌘"),Object(e.a)(r,S,a?"⇧":"Shift"),r),l=t(c).reduce((function(t,n){var r=Object(o.get)(f,n,n);return[].concat(Object(u.a)(t),a?[r]:[r,"+"])}),[]),d=Object(o.capitalize)(n);return[].concat(Object(u.a)(l),[d])}})),P=Object(o.mapValues)(E,(function(t){return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return t(n,r).join("")}})),_=Object(o.mapValues)(w,(function(t){return function(n){var r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i,f=a(),l=(r={},Object(e.a)(r,S,"Shift"),Object(e.a)(r,g,f?"Command":"Control"),Object(e.a)(r,h,"Control"),Object(e.a)(r,m,f?"Option":"Alt"),Object(e.a)(r,",",Object(c.__)("Comma")),Object(e.a)(r,".",Object(c.__)("Period")),Object(e.a)(r,"`",Object(c.__)("Backtick")),r);return[].concat(Object(u.a)(t(a)),[n]).map((function(t){return Object(o.capitalize)(Object(o.get)(l,t,t))})).join(f?" ":" + ")}}));function T(t){return[m,h,g,S].filter((function(n){return t["".concat(n,"Key")]}))}var x=Object(o.mapValues)(w,(function(t){return function(n,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i,u=t(e),c=T(n);return!Object(o.xor)(u,c).length&&(r?n.key===r:Object(o.includes)(u,n.key.toLowerCase()))}}))},5:function(t,n,r){"use strict";function e(t,n,r){return n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}r.d(n,"a",(function(){return e}))}}); \ No newline at end of file diff --git a/wp-includes/js/dist/list-reusable-blocks.js b/wp-includes/js/dist/list-reusable-blocks.js index 74109d42dc..d213072558 100644 --- a/wp-includes/js/dist/list-reusable-blocks.js +++ b/wp-includes/js/dist/list-reusable-blocks.js @@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["listReusableBlocks"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 471); +/******/ return __webpack_require__(__webpack_require__.s = 476); /******/ }) /************************************************************************/ /******/ ({ @@ -108,7 +108,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["listReusableBlocks"] = /***/ }), -/***/ 15: +/***/ 16: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -123,7 +123,7 @@ function _assertThisInitialized(self) { /***/ }), -/***/ 17: +/***/ 19: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -145,6 +145,26 @@ function _getPrototypeOf(o) { /***/ }), /***/ 20: +/***/ (function(module, exports) { + +(function() { module.exports = this["regeneratorRuntime"]; }()); + +/***/ }), + +/***/ 21: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _classCallCheck; }); +function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError("Cannot call a class as a function"); + } +} + +/***/ }), + +/***/ 22: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -167,20 +187,7 @@ function _createClass(Constructor, protoProps, staticProps) { /***/ }), -/***/ 21: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _classCallCheck; }); -function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } -} - -/***/ }), - -/***/ 22: +/***/ 23: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -216,13 +223,13 @@ function _inherits(subClass, superClass) { /***/ }), -/***/ 23: +/***/ 24: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _possibleConstructorReturn; }); /* harmony import */ var _helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(40); -/* harmony import */ var _assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(15); +/* harmony import */ var _assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(16); function _possibleConstructorReturn(self, call) { @@ -235,13 +242,6 @@ function _possibleConstructorReturn(self, call) { /***/ }), -/***/ 24: -/***/ (function(module, exports) { - -(function() { module.exports = this["regeneratorRuntime"]; }()); - -/***/ }), - /***/ 3: /***/ (function(module, exports) { @@ -273,13 +273,6 @@ function _typeof(obj) { /***/ }), /***/ 45: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["apiFetch"]; }()); - -/***/ }), - -/***/ 47: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -322,7 +315,14 @@ function _asyncToGenerator(fn) { /***/ }), -/***/ 471: +/***/ 47: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["apiFetch"]; }()); + +/***/ }), + +/***/ 476: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -336,17 +336,17 @@ var external_this_wp_element_ = __webpack_require__(0); var external_this_wp_i18n_ = __webpack_require__(1); // EXTERNAL MODULE: external {"this":"regeneratorRuntime"} -var external_this_regeneratorRuntime_ = __webpack_require__(24); +var external_this_regeneratorRuntime_ = __webpack_require__(20); var external_this_regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(external_this_regeneratorRuntime_); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js -var asyncToGenerator = __webpack_require__(47); +var asyncToGenerator = __webpack_require__(45); // EXTERNAL MODULE: external {"this":"lodash"} var external_this_lodash_ = __webpack_require__(2); // EXTERNAL MODULE: external {"this":["wp","apiFetch"]} -var external_this_wp_apiFetch_ = __webpack_require__(45); +var external_this_wp_apiFetch_ = __webpack_require__(47); var external_this_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_apiFetch_); // CONCATENATED MODULE: ./node_modules/@wordpress/list-reusable-blocks/build-module/utils/file.js @@ -471,19 +471,19 @@ var external_this_wp_components_ = __webpack_require__(3); var classCallCheck = __webpack_require__(21); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js -var createClass = __webpack_require__(20); +var createClass = __webpack_require__(22); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js -var assertThisInitialized = __webpack_require__(15); +var assertThisInitialized = __webpack_require__(16); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules -var inherits = __webpack_require__(22); +var inherits = __webpack_require__(23); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js -var possibleConstructorReturn = __webpack_require__(23); +var possibleConstructorReturn = __webpack_require__(24); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js -var getPrototypeOf = __webpack_require__(17); +var getPrototypeOf = __webpack_require__(19); // EXTERNAL MODULE: external {"this":["wp","compose"]} var external_this_wp_compose_ = __webpack_require__(10); diff --git a/wp-includes/js/dist/list-reusable-blocks.min.js b/wp-includes/js/dist/list-reusable-blocks.min.js index 1592cf6d89..6066578e78 100644 --- a/wp-includes/js/dist/list-reusable-blocks.min.js +++ b/wp-includes/js/dist/list-reusable-blocks.min.js @@ -1,2 +1,2 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.listReusableBlocks=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=471)}({0:function(t,e){!function(){t.exports=this.wp.element}()},1:function(t,e){!function(){t.exports=this.wp.i18n}()},10:function(t,e){!function(){t.exports=this.wp.compose}()},15:function(t,e,n){"use strict";function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.d(e,"a",(function(){return r}))},17:function(t,e,n){"use strict";function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return r}))},2:function(t,e){!function(){t.exports=this.lodash}()},20:function(t,e,n){"use strict";function r(t,e){for(var n=0;n");var e=document.querySelector(".wp-header-end");e&&e.parentNode.insertBefore(t,e)}}),e)}}))}}); \ No newline at end of file +this.wp=this.wp||{},this.wp.listReusableBlocks=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=476)}({0:function(t,e){!function(){t.exports=this.wp.element}()},1:function(t,e){!function(){t.exports=this.wp.i18n}()},10:function(t,e){!function(){t.exports=this.wp.compose}()},16:function(t,e,n){"use strict";function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.d(e,"a",(function(){return r}))},19:function(t,e,n){"use strict";function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return r}))},2:function(t,e){!function(){t.exports=this.lodash}()},20:function(t,e){!function(){t.exports=this.regeneratorRuntime}()},21:function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,"a",(function(){return r}))},22:function(t,e,n){"use strict";function r(t,e){for(var n=0;n");var e=document.querySelector(".wp-header-end");e&&e.parentNode.insertBefore(t,e)}}),e)}}))}}); \ No newline at end of file diff --git a/wp-includes/js/dist/media-utils.js b/wp-includes/js/dist/media-utils.js index 49a0f5f45b..e5915be368 100644 --- a/wp-includes/js/dist/media-utils.js +++ b/wp-includes/js/dist/media-utils.js @@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["mediaUtils"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 475); +/******/ return __webpack_require__(__webpack_require__.s = 480); /******/ }) /************************************************************************/ /******/ ({ @@ -156,7 +156,7 @@ function _slicedToArray(arr, i) { /***/ }), -/***/ 15: +/***/ 16: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -174,20 +174,6 @@ function _assertThisInitialized(self) { /***/ 17: /***/ (function(module, __webpack_exports__, __webpack_require__) { -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _getPrototypeOf; }); -function _getPrototypeOf(o) { - _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { - return o.__proto__ || Object.getPrototypeOf(o); - }; - return _getPrototypeOf(o); -} - -/***/ }), - -/***/ 18: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - "use strict"; // EXPORTS @@ -222,6 +208,20 @@ function _toConsumableArray(arr) { /***/ }), +/***/ 19: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _getPrototypeOf; }); +function _getPrototypeOf(o) { + _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }; + return _getPrototypeOf(o); +} + +/***/ }), + /***/ 2: /***/ (function(module, exports) { @@ -230,6 +230,26 @@ function _toConsumableArray(arr) { /***/ }), /***/ 20: +/***/ (function(module, exports) { + +(function() { module.exports = this["regeneratorRuntime"]; }()); + +/***/ }), + +/***/ 21: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _classCallCheck; }); +function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError("Cannot call a class as a function"); + } +} + +/***/ }), + +/***/ 22: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -252,20 +272,7 @@ function _createClass(Constructor, protoProps, staticProps) { /***/ }), -/***/ 21: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _classCallCheck; }); -function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } -} - -/***/ }), - -/***/ 22: +/***/ 23: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -301,13 +308,13 @@ function _inherits(subClass, superClass) { /***/ }), -/***/ 23: +/***/ 24: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _possibleConstructorReturn; }); /* harmony import */ var _helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(40); -/* harmony import */ var _assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(15); +/* harmony import */ var _assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(16); function _possibleConstructorReturn(self, call) { @@ -320,13 +327,6 @@ function _possibleConstructorReturn(self, call) { /***/ }), -/***/ 24: -/***/ (function(module, exports) { - -(function() { module.exports = this["regeneratorRuntime"]; }()); - -/***/ }), - /***/ 27: /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -418,7 +418,7 @@ function _typeof(obj) { /***/ }), -/***/ 43: +/***/ 41: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["blob"]; }()); @@ -426,13 +426,6 @@ function _typeof(obj) { /***/ }), /***/ 45: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["apiFetch"]; }()); - -/***/ }), - -/***/ 47: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -475,7 +468,14 @@ function _asyncToGenerator(fn) { /***/ }), -/***/ 475: +/***/ 47: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["apiFetch"]; }()); + +/***/ }), + +/***/ 480: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -490,19 +490,19 @@ __webpack_require__.d(__webpack_exports__, "uploadMedia", function() { return /* var classCallCheck = __webpack_require__(21); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js -var createClass = __webpack_require__(20); +var createClass = __webpack_require__(22); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js -var assertThisInitialized = __webpack_require__(15); +var assertThisInitialized = __webpack_require__(16); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules -var inherits = __webpack_require__(22); +var inherits = __webpack_require__(23); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js -var possibleConstructorReturn = __webpack_require__(23); +var possibleConstructorReturn = __webpack_require__(24); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js -var getPrototypeOf = __webpack_require__(17); +var getPrototypeOf = __webpack_require__(19); // EXTERNAL MODULE: external {"this":"lodash"} var external_this_lodash_ = __webpack_require__(2); @@ -964,27 +964,27 @@ var media_upload_MediaUpload = /*#__PURE__*/function (_Component) { // EXTERNAL MODULE: external {"this":"regeneratorRuntime"} -var external_this_regeneratorRuntime_ = __webpack_require__(24); +var external_this_regeneratorRuntime_ = __webpack_require__(20); var external_this_regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(external_this_regeneratorRuntime_); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js var defineProperty = __webpack_require__(5); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js -var asyncToGenerator = __webpack_require__(47); +var asyncToGenerator = __webpack_require__(45); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules -var toConsumableArray = __webpack_require__(18); +var toConsumableArray = __webpack_require__(17); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules var slicedToArray = __webpack_require__(12); // EXTERNAL MODULE: external {"this":["wp","apiFetch"]} -var external_this_wp_apiFetch_ = __webpack_require__(45); +var external_this_wp_apiFetch_ = __webpack_require__(47); var external_this_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_apiFetch_); // EXTERNAL MODULE: external {"this":["wp","blob"]} -var external_this_wp_blob_ = __webpack_require__(43); +var external_this_wp_blob_ = __webpack_require__(41); // CONCATENATED MODULE: ./node_modules/@wordpress/media-utils/build-module/utils/upload-media.js diff --git a/wp-includes/js/dist/media-utils.min.js b/wp-includes/js/dist/media-utils.min.js index 6b44aafb7a..6cbeb85c4e 100644 --- a/wp-includes/js/dist/media-utils.min.js +++ b/wp-includes/js/dist/media-utils.min.js @@ -1,2 +1,2 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.mediaUtils=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=475)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},12:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(38);var i=n(30),o=n(39);function a(e,t){return Object(r.a)(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}}(e,t)||Object(i.a)(e,t)||Object(o.a)()}},15:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},17: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}))},18:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(27);var i=n(37),o=n(30);function a(e){return function(e){if(Array.isArray(e))return Object(r.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.")}()}},2:function(e,t){!function(){e.exports=this.lodash}()},20: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[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw o}}}}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);na)){e.next=23;break}return S({code:"SIZE_ABOVE_LIMIT",message:Object(f.__)("This file exceeds the maximum upload size for this site."),file:P}),e.abrupt("continue",29);case 23:if(!(P.size<=0)){e.next=26;break}return S({code:"EMPTY_FILE",message:Object(f.__)("This file is empty."),file:P}),e.abrupt("continue",29);case 26:_.push(P),y.push({url:Object(E.createBlobURL)(P)}),p(y);case 29:e.next=12;break;case 31:e.next=36;break;case 33:e.prev=33,e.t0=e.catch(10),x.e(e.t0);case 36:return e.prev=36,x.f(),e.finish(36);case 39:M=0;case 40:if(!(M<_.length)){e.next=59;break}return F=_[M],e.prev=42,e.next=45,C(F,i);case 45:G=e.sent,U=k(k({},Object(u.omit)(G,["alt_text","source_url"])),{},{alt:G.alt_text,caption:Object(u.get)(G,["caption","raw"],""),title:G.title.raw,url:G.source_url}),h(M,U),e.next=56;break;case 50:e.prev=50,e.t1=e.catch(42),h(M,null),D=void 0,D=Object(u.has)(e.t1,["message"])?Object(u.get)(e.t1,["message"]):Object(f.sprintf)(Object(f.__)("Error while uploading file %s to the media library."),F.name),l({code:"GENERAL",message:D,file:F});case 56:++M,e.next=40;break;case 59:case"end":return e.stop()}}),e,null,[[10,33,36,39],[42,50]])})))).apply(this,arguments)}function C(e,t){var n=new window.FormData;return n.append("file",e,e.name||e.type.replace("/",".")),Object(u.forEach)(t,(function(e,t){return n.append(t,e)})),x()({path:"/wp/v2/media",body:n,method:"POST"})}},5:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))}}); \ No newline at end of file +this.wp=this.wp||{},this.wp.mediaUtils=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=480)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},12:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(38);var i=n(30),o=n(39);function a(e,t){return Object(r.a)(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}}(e,t)||Object(i.a)(e,t)||Object(o.a)()}},16:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},17:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(27);var i=n(37),o=n(30);function a(e){return function(e){if(Array.isArray(e))return Object(r.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,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return r}))},2:function(e,t){!function(){e.exports=this.lodash}()},20:function(e,t){!function(){e.exports=this.regeneratorRuntime}()},21:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},22:function(e,t,n){"use strict";function r(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw o}}}}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);na)){e.next=23;break}return S({code:"SIZE_ABOVE_LIMIT",message:Object(f.__)("This file exceeds the maximum upload size for this site."),file:P}),e.abrupt("continue",29);case 23:if(!(P.size<=0)){e.next=26;break}return S({code:"EMPTY_FILE",message:Object(f.__)("This file is empty."),file:P}),e.abrupt("continue",29);case 26:_.push(P),y.push({url:Object(E.createBlobURL)(P)}),p(y);case 29:e.next=12;break;case 31:e.next=36;break;case 33:e.prev=33,e.t0=e.catch(10),x.e(e.t0);case 36:return e.prev=36,x.f(),e.finish(36);case 39:M=0;case 40:if(!(M<_.length)){e.next=59;break}return F=_[M],e.prev=42,e.next=45,C(F,i);case 45:G=e.sent,U=k(k({},Object(u.omit)(G,["alt_text","source_url"])),{},{alt:G.alt_text,caption:Object(u.get)(G,["caption","raw"],""),title:G.title.raw,url:G.source_url}),h(M,U),e.next=56;break;case 50:e.prev=50,e.t1=e.catch(42),h(M,null),D=void 0,D=Object(u.has)(e.t1,["message"])?Object(u.get)(e.t1,["message"]):Object(f.sprintf)(Object(f.__)("Error while uploading file %s to the media library."),F.name),l({code:"GENERAL",message:D,file:F});case 56:++M,e.next=40;break;case 59:case"end":return e.stop()}}),e,null,[[10,33,36,39],[42,50]])})))).apply(this,arguments)}function C(e,t){var n=new window.FormData;return n.append("file",e,e.name||e.type.replace("/",".")),Object(u.forEach)(t,(function(e,t){return n.append(t,e)})),x()({path:"/wp/v2/media",body:n,method:"POST"})}},5:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))}}); \ No newline at end of file diff --git a/wp-includes/js/dist/notices.js b/wp-includes/js/dist/notices.js index 0d1dc3b28f..4111d53480 100644 --- a/wp-includes/js/dist/notices.js +++ b/wp-includes/js/dist/notices.js @@ -82,12 +82,12 @@ this["wp"] = this["wp"] || {}; this["wp"]["notices"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 469); +/******/ return __webpack_require__(__webpack_require__.s = 474); /******/ }) /************************************************************************/ /******/ ({ -/***/ 18: +/***/ 17: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -184,7 +184,7 @@ function _iterableToArray(iter) { /***/ }), -/***/ 469: +/***/ 474: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -210,7 +210,7 @@ __webpack_require__.d(selectors_namespaceObject, "getNotices", function() { retu var external_this_wp_data_ = __webpack_require__(4); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules -var toConsumableArray = __webpack_require__(18); +var toConsumableArray = __webpack_require__(17); // EXTERNAL MODULE: external {"this":"lodash"} var external_this_lodash_ = __webpack_require__(2); diff --git a/wp-includes/js/dist/notices.min.js b/wp-includes/js/dist/notices.min.js index f429b821c5..d6bc1bd815 100644 --- a/wp-includes/js/dist/notices.min.js +++ b/wp-includes/js/dist/notices.min.js @@ -1,2 +1,2 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.notices=function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=469)}({18:function(t,e,r){"use strict";r.d(e,"a",(function(){return c}));var n=r(27);var o=r(37),i=r(30);function c(t){return function(t){if(Array.isArray(t))return Object(n.a)(t)}(t)||Object(o.a)(t)||Object(i.a)(t)||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(t,e){!function(){t.exports=this.lodash}()},27:function(t,e,r){"use strict";function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,o=n[t];if(void 0===o)return r;var i=e(r[o],n);return i===r[o]?r:s(s({},r),{},Object(a.a)({},o,i))}}}("context")((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"CREATE_NOTICE":return[].concat(Object(c.a)(Object(u.reject)(t,{id:e.notice.id})),[e.notice]);case"REMOVE_NOTICE":return Object(u.reject)(t,{id:e.id})}return t}));function d(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"info",e=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.speak,o=void 0===n||n,i=r.isDismissible,c=void 0===i||i,a=r.context,f=void 0===a?"global":a,s=r.id,l=void 0===s?Object(u.uniqueId)(f):s,d=r.actions,b=void 0===d?[]:d,p=r.type,v=void 0===p?"default":p,O=r.__unstableHTML;return{type:"CREATE_NOTICE",context:f,notice:{id:l,status:t,content:e=String(e),spokenMessage:o?e:null,__unstableHTML:O,isDismissible:c,actions:b,type:v}}}function b(t,e){return d("success",t,e)}function p(t,e){return d("info",t,e)}function v(t,e){return d("error",t,e)}function O(t,e){return d("warning",t,e)}function y(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"global";return{type:"REMOVE_NOTICE",id:t,context:e}}var g=[];function j(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"global";return t[e]||g}Object(i.registerStore)("core/notices",{reducer:l,actions:n,selectors:o})},5:function(t,e,r){"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}r.d(e,"a",(function(){return n}))}}); \ No newline at end of file +this.wp=this.wp||{},this.wp.notices=function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=474)}({17:function(t,e,r){"use strict";r.d(e,"a",(function(){return c}));var n=r(27);var o=r(37),i=r(30);function c(t){return function(t){if(Array.isArray(t))return Object(n.a)(t)}(t)||Object(o.a)(t)||Object(i.a)(t)||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(t,e){!function(){t.exports=this.lodash}()},27:function(t,e,r){"use strict";function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,o=n[t];if(void 0===o)return r;var i=e(r[o],n);return i===r[o]?r:s(s({},r),{},Object(a.a)({},o,i))}}}("context")((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"CREATE_NOTICE":return[].concat(Object(c.a)(Object(u.reject)(t,{id:e.notice.id})),[e.notice]);case"REMOVE_NOTICE":return Object(u.reject)(t,{id:e.id})}return t}));function d(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"info",e=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.speak,o=void 0===n||n,i=r.isDismissible,c=void 0===i||i,a=r.context,f=void 0===a?"global":a,s=r.id,l=void 0===s?Object(u.uniqueId)(f):s,d=r.actions,b=void 0===d?[]:d,p=r.type,v=void 0===p?"default":p,O=r.__unstableHTML;return{type:"CREATE_NOTICE",context:f,notice:{id:l,status:t,content:e=String(e),spokenMessage:o?e:null,__unstableHTML:O,isDismissible:c,actions:b,type:v}}}function b(t,e){return d("success",t,e)}function p(t,e){return d("info",t,e)}function v(t,e){return d("error",t,e)}function O(t,e){return d("warning",t,e)}function y(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"global";return{type:"REMOVE_NOTICE",id:t,context:e}}var g=[];function j(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"global";return t[e]||g}Object(i.registerStore)("core/notices",{reducer:l,actions:n,selectors:o})},5:function(t,e,r){"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}r.d(e,"a",(function(){return n}))}}); \ No newline at end of file diff --git a/wp-includes/js/dist/nux.js b/wp-includes/js/dist/nux.js index 9f1210622e..66cf5f391d 100644 --- a/wp-includes/js/dist/nux.js +++ b/wp-includes/js/dist/nux.js @@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["nux"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 472); +/******/ return __webpack_require__(__webpack_require__.s = 477); /******/ }) /************************************************************************/ /******/ ({ @@ -163,7 +163,7 @@ function _slicedToArray(arr, i) { /***/ }), -/***/ 157: +/***/ 160: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -188,7 +188,7 @@ var close = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElemen /***/ }), -/***/ 18: +/***/ 17: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -274,7 +274,7 @@ function _unsupportedIterableToArray(o, minLen) { /***/ }), -/***/ 35: +/***/ 36: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["deprecated"]; }()); @@ -321,7 +321,7 @@ function _nonIterableRest() { /***/ }), -/***/ 41: +/***/ 42: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -603,7 +603,7 @@ function isShallowEqual( a, b, fromIndex ) { /***/ }), -/***/ 472: +/***/ 477: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -629,7 +629,7 @@ __webpack_require__.d(selectors_namespaceObject, "isTipVisible", function() { re __webpack_require__.d(selectors_namespaceObject, "areTipsEnabled", function() { return selectors_areTipsEnabled; }); // EXTERNAL MODULE: external {"this":["wp","deprecated"]} -var external_this_wp_deprecated_ = __webpack_require__(35); +var external_this_wp_deprecated_ = __webpack_require__(36); var external_this_wp_deprecated_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_deprecated_); // EXTERNAL MODULE: external {"this":["wp","data"]} @@ -639,7 +639,7 @@ var external_this_wp_data_ = __webpack_require__(4); var defineProperty = __webpack_require__(5); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules -var toConsumableArray = __webpack_require__(18); +var toConsumableArray = __webpack_require__(17); // CONCATENATED MODULE: ./node_modules/@wordpress/nux/build-module/store/reducer.js @@ -788,7 +788,7 @@ function enableTips() { var slicedToArray = __webpack_require__(12); // EXTERNAL MODULE: ./node_modules/rememo/es/rememo.js -var rememo = __webpack_require__(41); +var rememo = __webpack_require__(42); // EXTERNAL MODULE: external {"this":"lodash"} var external_this_lodash_ = __webpack_require__(2); @@ -933,7 +933,7 @@ var external_this_wp_components_ = __webpack_require__(3); var external_this_wp_i18n_ = __webpack_require__(1); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/close.js -var library_close = __webpack_require__(157); +var library_close = __webpack_require__(160); // CONCATENATED MODULE: ./node_modules/@wordpress/nux/build-module/components/dot-tip/index.js diff --git a/wp-includes/js/dist/nux.min.js b/wp-includes/js/dist/nux.min.js index 3c6c708356..dfdfe35917 100644 --- a/wp-includes/js/dist/nux.min.js +++ b/wp-includes/js/dist/nux.min.js @@ -1,2 +1,2 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.nux=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=472)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},10:function(e,t){!function(){e.exports=this.wp.compose}()},12:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(38);var i=n(30),o=n(39);function u(e,t){return Object(r.a)(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var u,c=e[Symbol.iterator]();!(r=(u=c.next()).done)&&(n.push(u.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}}(e,t)||Object(i.a)(e,t)||Object(o.a)()}},157:function(e,t,n){"use strict";var r=n(0),i=n(7),o=Object(r.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.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},18:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(27);var i=n(37),o=n(30);function u(e){return function(e){if(Array.isArray(e))return Object(r.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.")}()}},2:function(e,t){!function(){e.exports=this.lodash}()},27:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"DISABLE_TIPS":return!1;case"ENABLE_TIPS":return!0}return e},dismissedTips:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"DISMISS_TIP":return l(l({},e),{},Object(a.a)({},t.id,!0));case"ENABLE_TIPS":return{}}return e}}),d=Object(c.combineReducers)({guides:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"TRIGGER_GUIDE":return[].concat(Object(s.a)(e),[t.tipIds])}return e},preferences:p});function b(e){return{type:"TRIGGER_GUIDE",tipIds:e}}function v(e){return{type:"DISMISS_TIP",id:e}}function y(){return{type:"DISABLE_TIPS"}}function h(){return{type:"ENABLE_TIPS"}}var O=n(12),m=n(41),j=n(2);function g(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,u=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return u=e.done,e},e:function(e){c=!0,o=e},f:function(){try{u||null==n.return||n.return()}finally{if(c)throw o}}}}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"DISABLE_TIPS":return!1;case"ENABLE_TIPS":return!0}return e},dismissedTips:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"DISMISS_TIP":return l(l({},e),{},Object(a.a)({},t.id,!0));case"ENABLE_TIPS":return{}}return e}}),d=Object(c.combineReducers)({guides:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"TRIGGER_GUIDE":return[].concat(Object(s.a)(e),[t.tipIds])}return e},preferences:p});function b(e){return{type:"TRIGGER_GUIDE",tipIds:e}}function v(e){return{type:"DISMISS_TIP",id:e}}function y(){return{type:"DISABLE_TIPS"}}function h(){return{type:"ENABLE_TIPS"}}var O=n(12),m=n(42),j=n(2);function g(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,u=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return u=e.done,e},e:function(e){c=!0,o=e},f:function(){try{u||null==n.return||n.return()}finally{if(c)throw o}}}}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}},42:function(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r,n,u={},o=Object.keys(e);for(n=0;n=0||(u[r]=e[r]);return u}r.d(t,"a",(function(){return n}))},477:function(e,t,r){"use strict";r.r(t),r.d(t,"Circle",(function(){return l})),r.d(t,"G",(function(){return s})),r.d(t,"Path",(function(){return p})),r.d(t,"Polygon",(function(){return b})),r.d(t,"Rect",(function(){return d})),r.d(t,"Defs",(function(){return O})),r.d(t,"RadialGradient",(function(){return y})),r.d(t,"LinearGradient",(function(){return j})),r.d(t,"Stop",(function(){return v})),r.d(t,"SVG",(function(){return m})),r.d(t,"HorizontalRule",(function(){return g})),r.d(t,"BlockQuotation",(function(){return h}));var n=r(5),u=r(14),o=r(9),c=r.n(o),i=r(0);function f(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 a(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}},43:function(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r,n,u={},o=Object.keys(e);for(n=0;n=0||(u[r]=e[r]);return u}r.d(t,"a",(function(){return n}))},482:function(e,t,r){"use strict";r.r(t),r.d(t,"Circle",(function(){return l})),r.d(t,"G",(function(){return s})),r.d(t,"Path",(function(){return p})),r.d(t,"Polygon",(function(){return b})),r.d(t,"Rect",(function(){return d})),r.d(t,"Defs",(function(){return O})),r.d(t,"RadialGradient",(function(){return y})),r.d(t,"LinearGradient",(function(){return j})),r.d(t,"Stop",(function(){return v})),r.d(t,"SVG",(function(){return m})),r.d(t,"HorizontalRule",(function(){return g})),r.d(t,"BlockQuotation",(function(){return h})),r.d(t,"View",(function(){return P}));var n=r(5),u=r(14),o=r(9),c=r.n(o),i=r(0);function f(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 a(e){for(var t=1;t0};do{if(0===e.length)return void(n=!1);var f=e.shift();t.get(f)(),t.delete(f)}while(i());r(u)};return{add:function(o,i){t.has(o)||e.push(o),t.set(o,i),n||(n=!0,r(u))},flush:function(n){if(!t.has(n))return!1;var r=e.indexOf(n);e.splice(r,1);var u=t.get(n);return t.delete(n),u(),!0},reset:function(){e=[],t=new WeakMap,n=!1}}}}}); \ No newline at end of file +this.wp=this.wp||{},this.wp.priorityQueue=function(e){var t={};function n(r){if(t[r])return t[r].exports;var u=t[r]={i:r,l:!1,exports:{}};return e[r].call(u.exports,u,u.exports,n),u.l=!0,u.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var u in e)n.d(r,u,function(t){return e[t]}.bind(null,u));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=486)}({486:function(e,t,n){"use strict";n.r(t),n.d(t,"createQueue",(function(){return u}));var r="undefined"==typeof window?function(e){setTimeout((function(){return e(Date.now())}),0)}:window.requestIdleCallback||window.requestAnimationFrame,u=function(){var e=[],t=new WeakMap,n=!1,u=function u(o){var i="number"==typeof o?function(){return!1}:function(){return o.timeRemaining()>0};do{if(0===e.length)return void(n=!1);var f=e.shift();t.get(f)(),t.delete(f)}while(i());r(u)};return{add:function(o,i){t.has(o)||e.push(o),t.set(o,i),n||(n=!0,r(u))},flush:function(n){if(!t.has(n))return!1;var r=e.indexOf(n);e.splice(r,1);var u=t.get(n);return t.delete(n),u(),!0},reset:function(){e=[],t=new WeakMap,n=!1}}}}}); \ No newline at end of file diff --git a/wp-includes/js/dist/redux-routine.js b/wp-includes/js/dist/redux-routine.js index ffa5594ab4..cc04439dc4 100644 --- a/wp-includes/js/dist/redux-routine.js +++ b/wp-includes/js/dist/redux-routine.js @@ -82,12 +82,12 @@ this["wp"] = this["wp"] || {}; this["wp"]["reduxRoutine"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 478); +/******/ return __webpack_require__(__webpack_require__.s = 483); /******/ }) /************************************************************************/ /******/ ({ -/***/ 154: +/***/ 155: /***/ (function(module, exports) { module.exports = isPromise; @@ -100,7 +100,7 @@ function isPromise(obj) { /***/ }), -/***/ 161: +/***/ 164: /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -112,7 +112,7 @@ Object.defineProperty(exports, "__esModule", { var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; -var _keys = __webpack_require__(269); +var _keys = __webpack_require__(270); var _keys2 = _interopRequireDefault(_keys); @@ -172,7 +172,7 @@ exports.default = is; /***/ }), -/***/ 268: +/***/ 269: /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -183,7 +183,7 @@ Object.defineProperty(exports, "__esModule", { }); exports.createChannel = exports.subscribe = exports.cps = exports.apply = exports.call = exports.invoke = exports.delay = exports.race = exports.join = exports.fork = exports.error = exports.all = undefined; -var _keys = __webpack_require__(269); +var _keys = __webpack_require__(270); var _keys2 = _interopRequireDefault(_keys); @@ -313,7 +313,7 @@ var createChannel = exports.createChannel = function createChannel(callback) { /***/ }), -/***/ 269: +/***/ 270: /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -337,7 +337,7 @@ exports.default = keys; /***/ }), -/***/ 290: +/***/ 293: /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -348,7 +348,7 @@ Object.defineProperty(exports, "__esModule", { }); exports.wrapControls = exports.asyncControls = exports.create = undefined; -var _helpers = __webpack_require__(268); +var _helpers = __webpack_require__(269); Object.keys(_helpers).forEach(function (key) { if (key === "default") return; @@ -360,15 +360,15 @@ Object.keys(_helpers).forEach(function (key) { }); }); -var _create = __webpack_require__(440); +var _create = __webpack_require__(444); var _create2 = _interopRequireDefault(_create); -var _async = __webpack_require__(442); +var _async = __webpack_require__(446); var _async2 = _interopRequireDefault(_async); -var _wrap = __webpack_require__(444); +var _wrap = __webpack_require__(448); var _wrap2 = _interopRequireDefault(_wrap); @@ -380,7 +380,7 @@ exports.wrapControls = _wrap2.default; /***/ }), -/***/ 440: +/***/ 444: /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -390,11 +390,11 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _builtin = __webpack_require__(441); +var _builtin = __webpack_require__(445); var _builtin2 = _interopRequireDefault(_builtin); -var _is = __webpack_require__(161); +var _is = __webpack_require__(164); var _is2 = _interopRequireDefault(_is); @@ -466,7 +466,7 @@ exports.default = create; /***/ }), -/***/ 441: +/***/ 445: /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -477,7 +477,7 @@ Object.defineProperty(exports, "__esModule", { }); exports.iterator = exports.array = exports.object = exports.error = exports.any = undefined; -var _is = __webpack_require__(161); +var _is = __webpack_require__(164); var _is2 = _interopRequireDefault(_is); @@ -567,7 +567,7 @@ exports.default = [error, iterator, array, object, any]; /***/ }), -/***/ 442: +/***/ 446: /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -578,13 +578,13 @@ Object.defineProperty(exports, "__esModule", { }); exports.race = exports.join = exports.fork = exports.promise = undefined; -var _is = __webpack_require__(161); +var _is = __webpack_require__(164); var _is2 = _interopRequireDefault(_is); -var _helpers = __webpack_require__(268); +var _helpers = __webpack_require__(269); -var _dispatcher = __webpack_require__(443); +var _dispatcher = __webpack_require__(447); var _dispatcher2 = _interopRequireDefault(_dispatcher); @@ -689,7 +689,7 @@ exports.default = [promise, fork, join, race, subscribe]; /***/ }), -/***/ 443: +/***/ 447: /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -722,7 +722,7 @@ exports.default = createDispatcher; /***/ }), -/***/ 444: +/***/ 448: /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -733,7 +733,7 @@ Object.defineProperty(exports, "__esModule", { }); exports.cps = exports.call = undefined; -var _is = __webpack_require__(161); +var _is = __webpack_require__(164); var _is2 = _interopRequireDefault(_is); @@ -765,7 +765,7 @@ exports.default = [call, cps]; /***/ }), -/***/ 478: +/***/ 483: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -792,13 +792,13 @@ function isGenerator(object) { } // EXTERNAL MODULE: ./node_modules/rungen/dist/index.js -var dist = __webpack_require__(290); +var dist = __webpack_require__(293); // EXTERNAL MODULE: external {"this":"lodash"} var external_this_lodash_ = __webpack_require__(2); // EXTERNAL MODULE: ./node_modules/is-promise/index.js -var is_promise = __webpack_require__(154); +var is_promise = __webpack_require__(155); var is_promise_default = /*#__PURE__*/__webpack_require__.n(is_promise); // CONCATENATED MODULE: ./node_modules/@wordpress/redux-routine/build-module/is-action.js diff --git a/wp-includes/js/dist/redux-routine.min.js b/wp-includes/js/dist/redux-routine.min.js index 6f449ad3f7..136956c151 100644 --- a/wp-includes/js/dist/redux-routine.min.js +++ b/wp-includes/js/dist/redux-routine.min.js @@ -1,2 +1,2 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.reduxRoutine=function(t){var r={};function e(n){if(r[n])return r[n].exports;var u=r[n]={i:n,l:!1,exports:{}};return t[n].call(u.exports,u,u.exports,e),u.l=!0,u.exports}return e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:n})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,r){if(1&r&&(t=e(t)),8&r)return t;if(4&r&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(e.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&r&&"string"!=typeof t)for(var u in t)e.d(n,u,function(r){return t[r]}.bind(null,u));return n},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},e.p="",e(e.s=478)}({154:function(t,r){function e(t){return!!t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof t.then}t.exports=e,t.exports.default=e},161:function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n,u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},o=e(269),c=(n=o)&&n.__esModule?n:{default:n};var f={obj:function(t){return"object"===(void 0===t?"undefined":u(t))&&!!t},all:function(t){return f.obj(t)&&t.type===c.default.all},error:function(t){return f.obj(t)&&t.type===c.default.error},array:Array.isArray,func:function(t){return"function"==typeof t},promise:function(t){return t&&f.func(t.then)},iterator:function(t){return t&&f.func(t.next)&&f.func(t.throw)},fork:function(t){return f.obj(t)&&t.type===c.default.fork},join:function(t){return f.obj(t)&&t.type===c.default.join},race:function(t){return f.obj(t)&&t.type===c.default.race},call:function(t){return f.obj(t)&&t.type===c.default.call},cps:function(t){return f.obj(t)&&t.type===c.default.cps},subscribe:function(t){return f.obj(t)&&t.type===c.default.subscribe},channel:function(t){return f.obj(t)&&f.func(t.subscribe)}};r.default=f},2:function(t,r){!function(){t.exports=this.lodash}()},268:function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.createChannel=r.subscribe=r.cps=r.apply=r.call=r.invoke=r.delay=r.race=r.join=r.fork=r.error=r.all=void 0;var n,u=e(269),o=(n=u)&&n.__esModule?n:{default:n};r.all=function(t){return{type:o.default.all,value:t}},r.error=function(t){return{type:o.default.error,error:t}},r.fork=function(t){for(var r=arguments.length,e=Array(r>1?r-1:0),n=1;n1?r-1:0),n=1;n2?e-2:0),u=2;u1?r-1:0),n=1;n0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,e=Object(o.map)(t,(function(t,r){return function(e,n,u,o,c){if(!a(e,r))return!1;var i=t(e);return f()(i)?i.then(o,c):o(i),!0}})),n=function(t,e){return!!i(t)&&(r(t),e(),!0)};e.push(n);var c=Object(u.create)(e);return function(t){return new Promise((function(e,n){return c(t,(function(t){i(t)&&r(t),e(t)}),n)}))}}function s(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(r){var e=l(t,r.dispatch);return function(t){return function(r){return n(r)?e(r):t(r)}}}}}}).default; \ No newline at end of file +this.wp=this.wp||{},this.wp.reduxRoutine=function(t){var r={};function e(n){if(r[n])return r[n].exports;var u=r[n]={i:n,l:!1,exports:{}};return t[n].call(u.exports,u,u.exports,e),u.l=!0,u.exports}return e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:n})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,r){if(1&r&&(t=e(t)),8&r)return t;if(4&r&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(e.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&r&&"string"!=typeof t)for(var u in t)e.d(n,u,function(r){return t[r]}.bind(null,u));return n},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},e.p="",e(e.s=483)}({155:function(t,r){function e(t){return!!t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof t.then}t.exports=e,t.exports.default=e},164:function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n,u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},o=e(270),c=(n=o)&&n.__esModule?n:{default:n};var f={obj:function(t){return"object"===(void 0===t?"undefined":u(t))&&!!t},all:function(t){return f.obj(t)&&t.type===c.default.all},error:function(t){return f.obj(t)&&t.type===c.default.error},array:Array.isArray,func:function(t){return"function"==typeof t},promise:function(t){return t&&f.func(t.then)},iterator:function(t){return t&&f.func(t.next)&&f.func(t.throw)},fork:function(t){return f.obj(t)&&t.type===c.default.fork},join:function(t){return f.obj(t)&&t.type===c.default.join},race:function(t){return f.obj(t)&&t.type===c.default.race},call:function(t){return f.obj(t)&&t.type===c.default.call},cps:function(t){return f.obj(t)&&t.type===c.default.cps},subscribe:function(t){return f.obj(t)&&t.type===c.default.subscribe},channel:function(t){return f.obj(t)&&f.func(t.subscribe)}};r.default=f},2:function(t,r){!function(){t.exports=this.lodash}()},269:function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.createChannel=r.subscribe=r.cps=r.apply=r.call=r.invoke=r.delay=r.race=r.join=r.fork=r.error=r.all=void 0;var n,u=e(270),o=(n=u)&&n.__esModule?n:{default:n};r.all=function(t){return{type:o.default.all,value:t}},r.error=function(t){return{type:o.default.error,error:t}},r.fork=function(t){for(var r=arguments.length,e=Array(r>1?r-1:0),n=1;n1?r-1:0),n=1;n2?e-2:0),u=2;u1?r-1:0),n=1;n0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,e=Object(o.map)(t,(function(t,r){return function(e,n,u,o,c){if(!a(e,r))return!1;var i=t(e);return f()(i)?i.then(o,c):o(i),!0}})),n=function(t,e){return!!i(t)&&(r(t),e(),!0)};e.push(n);var c=Object(u.create)(e);return function(t){return new Promise((function(e,n){return c(t,(function(t){i(t)&&r(t),e(t)}),n)}))}}function s(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(r){var e=l(t,r.dispatch);return function(t){return function(r){return n(r)?e(r):t(r)}}}}}}).default; \ No newline at end of file diff --git a/wp-includes/js/dist/reusable-blocks.js b/wp-includes/js/dist/reusable-blocks.js new file mode 100644 index 0000000000..109f7b71cf --- /dev/null +++ b/wp-includes/js/dist/reusable-blocks.js @@ -0,0 +1,884 @@ +this["wp"] = this["wp"] || {}; this["wp"]["reusableBlocks"] = +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = 466); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ 0: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["element"]; }()); + +/***/ }), + +/***/ 1: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["i18n"]; }()); + +/***/ }), + +/***/ 11: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["blocks"]; }()); + +/***/ }), + +/***/ 20: +/***/ (function(module, exports) { + +(function() { module.exports = this["regeneratorRuntime"]; }()); + +/***/ }), + +/***/ 3: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["components"]; }()); + +/***/ }), + +/***/ 4: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["data"]; }()); + +/***/ }), + +/***/ 45: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _asyncToGenerator; }); +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { + try { + var info = gen[key](arg); + var value = info.value; + } catch (error) { + reject(error); + return; + } + + if (info.done) { + resolve(value); + } else { + Promise.resolve(value).then(_next, _throw); + } +} + +function _asyncToGenerator(fn) { + return function () { + var self = this, + args = arguments; + return new Promise(function (resolve, reject) { + var gen = fn.apply(self, args); + + function _next(value) { + asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); + } + + function _throw(err) { + asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); + } + + _next(undefined); + }); + }; +} + +/***/ }), + +/***/ 466: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +// ESM COMPAT FLAG +__webpack_require__.r(__webpack_exports__); + +// EXPORTS +__webpack_require__.d(__webpack_exports__, "ReusableBlocksMenuItems", function() { return /* reexport */ reusable_blocks_menu_items; }); + +// NAMESPACE OBJECT: ./node_modules/@wordpress/reusable-blocks/build-module/store/actions.js +var actions_namespaceObject = {}; +__webpack_require__.r(actions_namespaceObject); +__webpack_require__.d(actions_namespaceObject, "__experimentalConvertBlockToStatic", function() { return __experimentalConvertBlockToStatic; }); +__webpack_require__.d(actions_namespaceObject, "__experimentalConvertBlocksToReusable", function() { return __experimentalConvertBlocksToReusable; }); +__webpack_require__.d(actions_namespaceObject, "__experimentalDeleteReusableBlock", function() { return __experimentalDeleteReusableBlock; }); +__webpack_require__.d(actions_namespaceObject, "__experimentalSetEditingReusableBlock", function() { return __experimentalSetEditingReusableBlock; }); + +// NAMESPACE OBJECT: ./node_modules/@wordpress/reusable-blocks/build-module/store/selectors.js +var selectors_namespaceObject = {}; +__webpack_require__.r(selectors_namespaceObject); +__webpack_require__.d(selectors_namespaceObject, "__experimentalIsEditingReusableBlock", function() { return __experimentalIsEditingReusableBlock; }); + +// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} +var external_this_wp_blockEditor_ = __webpack_require__(6); + +// EXTERNAL MODULE: external {"this":["wp","coreData"]} +var external_this_wp_coreData_ = __webpack_require__(83); + +// EXTERNAL MODULE: external {"this":["wp","notices"]} +var external_this_wp_notices_ = __webpack_require__(92); + +// EXTERNAL MODULE: external {"this":["wp","data"]} +var external_this_wp_data_ = __webpack_require__(4); + +// EXTERNAL MODULE: external {"this":"regeneratorRuntime"} +var external_this_regeneratorRuntime_ = __webpack_require__(20); +var external_this_regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(external_this_regeneratorRuntime_); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js +var asyncToGenerator = __webpack_require__(45); + +// EXTERNAL MODULE: external {"this":["wp","blocks"]} +var external_this_wp_blocks_ = __webpack_require__(11); + +// EXTERNAL MODULE: external {"this":["wp","i18n"]} +var external_this_wp_i18n_ = __webpack_require__(1); + +// CONCATENATED MODULE: ./node_modules/@wordpress/reusable-blocks/build-module/store/controls.js + + + +/** + * WordPress dependencies + */ + + + +/** + * Convert a reusable block to a static block effect handler + * + * @param {string} clientId Block ID. + * @return {Object} control descriptor. + */ + +function convertBlockToStatic(clientId) { + return { + type: 'CONVERT_BLOCK_TO_STATIC', + clientId: clientId + }; +} +/** + * Convert a static block to a reusable block effect handler + * + * @param {Array} clientIds Block IDs. + * @return {Object} control descriptor. + */ + +function controls_convertBlocksToReusable(clientIds) { + return { + type: 'CONVERT_BLOCKS_TO_REUSABLE', + clientIds: clientIds + }; +} +/** + * Deletes a reusable block. + * + * @param {string} id Reusable block ID. + * @return {Object} control descriptor. + */ + +function controls_deleteReusableBlock(id) { + return { + type: 'DELETE_REUSABLE_BLOCK', + id: id + }; +} +var controls = { + CONVERT_BLOCK_TO_STATIC: Object(external_this_wp_data_["createRegistryControl"])(function (registry) { + return function (_ref) { + var clientId = _ref.clientId; + var oldBlock = registry.select('core/block-editor').getBlock(clientId); + var reusableBlock = registry.select('core').getEditedEntityRecord('postType', 'wp_block', oldBlock.attributes.ref); + var newBlocks = Object(external_this_wp_blocks_["parse"])(reusableBlock.content); + registry.dispatch('core/block-editor').replaceBlocks(oldBlock.clientId, newBlocks); + }; + }), + CONVERT_BLOCKS_TO_REUSABLE: Object(external_this_wp_data_["createRegistryControl"])(function (registry) { + return /*#__PURE__*/function () { + var _ref3 = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(function _callee(_ref2) { + var clientIds, reusableBlock, updatedRecord, newBlock; + return external_this_regeneratorRuntime_default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + clientIds = _ref2.clientIds; + reusableBlock = { + title: Object(external_this_wp_i18n_["__"])('Untitled Reusable Block'), + content: Object(external_this_wp_blocks_["serialize"])(registry.select('core/block-editor').getBlocksByClientId(clientIds)), + status: 'publish' + }; + _context.next = 4; + return registry.dispatch('core').saveEntityRecord('postType', 'wp_block', reusableBlock); + + case 4: + updatedRecord = _context.sent; + newBlock = Object(external_this_wp_blocks_["createBlock"])('core/block', { + ref: updatedRecord.id + }); + registry.dispatch('core/block-editor').replaceBlocks(clientIds, newBlock); + + registry.dispatch('core/reusable-blocks').__experimentalSetEditingReusableBlock(newBlock.clientId, true); + + case 8: + case "end": + return _context.stop(); + } + } + }, _callee); + })); + + return function (_x) { + return _ref3.apply(this, arguments); + }; + }(); + }), + DELETE_REUSABLE_BLOCK: Object(external_this_wp_data_["createRegistryControl"])(function (registry) { + return /*#__PURE__*/function () { + var _ref5 = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(function _callee2(_ref4) { + var id, reusableBlock, allBlocks, associatedBlocks, associatedBlockClientIds; + return external_this_regeneratorRuntime_default.a.wrap(function _callee2$(_context2) { + while (1) { + switch (_context2.prev = _context2.next) { + case 0: + id = _ref4.id; + reusableBlock = registry.select('core').getEditedEntityRecord('postType', 'wp_block', id); // Don't allow a reusable block with a temporary ID to be deleted + + if (reusableBlock) { + _context2.next = 4; + break; + } + + return _context2.abrupt("return"); + + case 4: + // Remove any other blocks that reference this reusable block + allBlocks = registry.select('core/block-editor').getBlocks(); + associatedBlocks = allBlocks.filter(function (block) { + return Object(external_this_wp_blocks_["isReusableBlock"])(block) && block.attributes.ref === id; + }); + associatedBlockClientIds = associatedBlocks.map(function (block) { + return block.clientId; + }); // Remove the parsed block. + + if (associatedBlockClientIds.length) { + registry.dispatch('core/block-editor').removeBlocks(associatedBlockClientIds); + } + + _context2.next = 10; + return registry.dispatch('core').deleteEntityRecord('postType', 'wp_block', id); + + case 10: + case "end": + return _context2.stop(); + } + } + }, _callee2); + })); + + return function (_x2) { + return _ref5.apply(this, arguments); + }; + }(); + }) +}; +/* harmony default export */ var store_controls = (controls); + +// CONCATENATED MODULE: ./node_modules/@wordpress/reusable-blocks/build-module/store/actions.js + + +var _marked = /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(__experimentalConvertBlockToStatic), + _marked2 = /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(__experimentalConvertBlocksToReusable), + _marked3 = /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(__experimentalDeleteReusableBlock); + +/** + * Internal dependencies + */ + +/** + * Returns a generator converting a reusable block into a static block. + * + * @param {string} clientId The client ID of the block to attach. + */ + +function __experimentalConvertBlockToStatic(clientId) { + return external_this_regeneratorRuntime_default.a.wrap(function __experimentalConvertBlockToStatic$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _context.next = 2; + return convertBlockToStatic(clientId); + + case 2: + case "end": + return _context.stop(); + } + } + }, _marked); +} +/** + * Returns a generator converting one or more static blocks into a reusable block. + * + * @param {string[]} clientIds The client IDs of the block to detach. + */ + +function __experimentalConvertBlocksToReusable(clientIds) { + return external_this_regeneratorRuntime_default.a.wrap(function __experimentalConvertBlocksToReusable$(_context2) { + while (1) { + switch (_context2.prev = _context2.next) { + case 0: + _context2.next = 2; + return controls_convertBlocksToReusable(clientIds); + + case 2: + case "end": + return _context2.stop(); + } + } + }, _marked2); +} +/** + * Returns a generator deleting a reusable block. + * + * @param {string} id The ID of the reusable block to delete. + */ + +function __experimentalDeleteReusableBlock(id) { + return external_this_regeneratorRuntime_default.a.wrap(function __experimentalDeleteReusableBlock$(_context3) { + while (1) { + switch (_context3.prev = _context3.next) { + case 0: + _context3.next = 2; + return controls_deleteReusableBlock(id); + + case 2: + case "end": + return _context3.stop(); + } + } + }, _marked3); +} +/** + * Returns an action descriptor for SET_EDITING_REUSABLE_BLOCK action. + * + * @param {string} clientId The clientID of the reusable block to target. + * @param {boolean} isEditing Whether the block should be in editing state. + * @return {Object} Action descriptor. + */ + +function __experimentalSetEditingReusableBlock(clientId, isEditing) { + return { + type: 'SET_EDITING_REUSABLE_BLOCK', + clientId: clientId, + isEditing: isEditing + }; +} + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js +var defineProperty = __webpack_require__(5); + +// CONCATENATED MODULE: ./node_modules/@wordpress/reusable-blocks/build-module/store/reducer.js + + +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * WordPress dependencies + */ + +function isEditingReusableBlock() { + var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var action = arguments.length > 1 ? arguments[1] : undefined; + + if ((action === null || action === void 0 ? void 0 : action.type) === 'SET_EDITING_REUSABLE_BLOCK') { + return _objectSpread(_objectSpread({}, state), {}, Object(defineProperty["a" /* default */])({}, action.clientId, action.isEditing)); + } + + return state; +} +/* harmony default export */ var reducer = (Object(external_this_wp_data_["combineReducers"])({ + isEditingReusableBlock: isEditingReusableBlock +})); + +// CONCATENATED MODULE: ./node_modules/@wordpress/reusable-blocks/build-module/store/selectors.js +/** + * Returns true if reusable block is in the editing state. + * + * @param {Object} state Global application state. + * @param {number} clientId the clientID of the block. + * @return {boolean} Whether the reusable block is in the editing state. + */ +function __experimentalIsEditingReusableBlock(state, clientId) { + return state.isEditingReusableBlock[clientId]; +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/reusable-blocks/build-module/store/constants.js +/** + * Constant for the store module (or reducer) key. + * + * @type {string} + */ +var STORE_KEY = 'core/reusable-blocks'; + +// CONCATENATED MODULE: ./node_modules/@wordpress/reusable-blocks/build-module/store/index.js +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + + + + +/** + * Data store configuration. + * + * @see https://github.com/WordPress/gutenberg/blob/master/packages/data/README.md#registerStore + * + * @type {Object} + */ + +/* harmony default export */ var store = (Object(external_this_wp_data_["registerStore"])(STORE_KEY, { + actions: actions_namespaceObject, + controls: store_controls, + reducer: reducer, + selectors: selectors_namespaceObject +})); + +// EXTERNAL MODULE: external {"this":["wp","element"]} +var external_this_wp_element_ = __webpack_require__(0); + +// EXTERNAL MODULE: external {"this":["wp","components"]} +var external_this_wp_components_ = __webpack_require__(3); + +// EXTERNAL MODULE: external {"this":["wp","primitives"]} +var external_this_wp_primitives_ = __webpack_require__(7); + +// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/reusable-block.js + + +/** + * WordPress dependencies + */ + +var reusable_block_reusableBlock = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { + d: "M7 7.2h8.2L13.5 9l1.1 1.1 3.6-3.6-3.5-4-1.1 1 1.9 2.3H7c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.2-.5zm13.8 4V11h-1.5v.3c0 1.1 0 3.5-1 4.5-.3.3-.7.5-1.3.5H8.8l1.7-1.7-1.1-1.1L5.9 17l3.5 4 1.1-1-1.9-2.3H17c.9 0 1.7-.3 2.3-.9 1.5-1.4 1.5-4.2 1.5-5.6z" +})); +/* harmony default export */ var reusable_block = (reusable_block_reusableBlock); + +// CONCATENATED MODULE: ./node_modules/@wordpress/reusable-blocks/build-module/components/reusable-blocks-menu-items/reusable-block-convert-button.js + + + + +/** + * WordPress dependencies + */ + + + + + + + +/** + * Internal dependencies + */ + + +/** + * Menu control to convert block(s) to reusable block. + * + * @param {Object} props Component props. + * @param {string[]} props.clientIds Client ids of selected blocks. + * @param {string} props.rootClientId ID of the currently selected top-level block. + * @return {import('@wordpress/element').WPComponent} The menu control or null. + */ + +function ReusableBlockConvertButton(_ref) { + var clientIds = _ref.clientIds, + rootClientId = _ref.rootClientId; + var canConvert = Object(external_this_wp_data_["useSelect"])(function (select) { + var _getBlocksByClientId; + + var _select = select('core'), + canUser = _select.canUser; + + var _select2 = select('core/block-editor'), + getBlocksByClientId = _select2.getBlocksByClientId, + canInsertBlockType = _select2.canInsertBlockType; + + var blocks = (_getBlocksByClientId = getBlocksByClientId(clientIds)) !== null && _getBlocksByClientId !== void 0 ? _getBlocksByClientId : []; + var isReusable = blocks.length === 1 && blocks[0] && Object(external_this_wp_blocks_["isReusableBlock"])(blocks[0]) && !!select('core').getEntityRecord('postType', 'wp_block', blocks[0].attributes.ref); + + var _canConvert = // Hide when this is already a reusable block. + !isReusable && // Hide when reusable blocks are disabled. + canInsertBlockType('core/block', rootClientId) && blocks.every(function (block) { + return (// Guard against the case where a regular block has *just* been converted. + !!block && // Hide on invalid blocks. + block.isValid && // Hide when block doesn't support being made reusable. + Object(external_this_wp_blocks_["hasBlockSupport"])(block.name, 'reusable', true) + ); + }) && // Hide when current doesn't have permission to do that. + !!canUser('create', 'blocks'); + + return _canConvert; + }, [clientIds]); + + var _useDispatch = Object(external_this_wp_data_["useDispatch"])(STORE_KEY), + convertBlocksToReusable = _useDispatch.__experimentalConvertBlocksToReusable; + + var _useDispatch2 = Object(external_this_wp_data_["useDispatch"])('core/notices'), + createSuccessNotice = _useDispatch2.createSuccessNotice, + createErrorNotice = _useDispatch2.createErrorNotice; + + var onConvert = Object(external_this_wp_element_["useCallback"])( /*#__PURE__*/Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(function _callee() { + return external_this_regeneratorRuntime_default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _context.prev = 0; + _context.next = 3; + return convertBlocksToReusable(clientIds); + + case 3: + createSuccessNotice(Object(external_this_wp_i18n_["__"])('Block created.'), { + type: 'snackbar' + }); + _context.next = 9; + break; + + case 6: + _context.prev = 6; + _context.t0 = _context["catch"](0); + createErrorNotice(_context.t0.message, { + type: 'snackbar' + }); + + case 9: + case "end": + return _context.stop(); + } + } + }, _callee, null, [[0, 6]]); + })), [clientIds]); + + if (!canConvert) { + return null; + } + + return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockSettingsMenuControls"], null, function (_ref3) { + var onClose = _ref3.onClose; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { + icon: reusable_block, + onClick: function onClick() { + onConvert(); + onClose(); + } + }, Object(external_this_wp_i18n_["__"])('Add to Reusable blocks')); + }); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/reusable-blocks/build-module/components/reusable-blocks-menu-items/reusable-block-delete-button.js + + + + +/** + * WordPress dependencies + */ + + + + + + +/** + * Internal dependencies + */ + + + +function ReusableBlockDeleteButton(_ref) { + var clientId = _ref.clientId; + + var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { + var _select = select('core/block-editor'), + getBlock = _select.getBlock; + + var _select2 = select('core'), + canUser = _select2.canUser; + + var blockObj = getBlock(clientId); + var reusableBlock = blockObj && Object(external_this_wp_blocks_["isReusableBlock"])(blockObj) ? select('core').getEntityRecord('postType', 'wp_block', blockObj.attributes.ref) : null; + return { + block: blockObj, + isVisible: !!reusableBlock && (reusableBlock.isTemporary || !!canUser('delete', 'blocks', reusableBlock.id)), + isDisabled: reusableBlock && reusableBlock.isTemporary + }; + }, [clientId]), + isVisible = _useSelect.isVisible, + isDisabled = _useSelect.isDisabled, + block = _useSelect.block; + + var _useDispatch = Object(external_this_wp_data_["useDispatch"])(STORE_KEY), + deleteReusableBlock = _useDispatch.__experimentalDeleteReusableBlock; + + var _useDispatch2 = Object(external_this_wp_data_["useDispatch"])('core/notices'), + createSuccessNotice = _useDispatch2.createSuccessNotice, + createErrorNotice = _useDispatch2.createErrorNotice; + + var onDelete = Object(external_this_wp_element_["useCallback"])( /*#__PURE__*/Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(function _callee() { + return external_this_regeneratorRuntime_default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _context.prev = 0; + _context.next = 3; + return deleteReusableBlock(block.attributes.ref); + + case 3: + createSuccessNotice(Object(external_this_wp_i18n_["__"])('Block deleted.'), { + type: 'snackbar' + }); + _context.next = 9; + break; + + case 6: + _context.prev = 6; + _context.t0 = _context["catch"](0); + createErrorNotice(_context.t0.message, { + type: 'snackbar' + }); + + case 9: + case "end": + return _context.stop(); + } + } + }, _callee, null, [[0, 6]]); + })), [block]); + + if (!isVisible) { + return null; + } + + return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockSettingsMenuControls"], null, function (_ref3) { + var onClose = _ref3.onClose; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { + disabled: isDisabled, + onClick: function onClick() { + // eslint-disable-next-line no-alert + var hasConfirmed = window.confirm( // eslint-disable-next-line @wordpress/i18n-no-collapsible-whitespace + Object(external_this_wp_i18n_["__"])('Are you sure you want to delete this Reusable Block?\n\n' + 'It will be permanently removed from all posts and pages that use it.')); + + if (hasConfirmed) { + onDelete(); + onClose(); + } + } + }, Object(external_this_wp_i18n_["__"])('Remove from Reusable blocks')); + }); +} + +/* harmony default export */ var reusable_block_delete_button = (ReusableBlockDeleteButton); + +// CONCATENATED MODULE: ./node_modules/@wordpress/reusable-blocks/build-module/components/reusable-blocks-menu-items/index.js + + +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + + +function ReusableBlocksMenuItems(_ref) { + var clientIds = _ref.clientIds, + rootClientId = _ref.rootClientId; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(ReusableBlockConvertButton, { + clientIds: clientIds, + rootClientId: rootClientId + }), clientIds.length === 1 && Object(external_this_wp_element_["createElement"])(reusable_block_delete_button, { + clientId: clientIds[0] + })); +} + +/* harmony default export */ var reusable_blocks_menu_items = (Object(external_this_wp_data_["withSelect"])(function (select) { + var _select = select('core/block-editor'), + getSelectedBlockClientIds = _select.getSelectedBlockClientIds; + + return { + clientIds: getSelectedBlockClientIds() + }; +})(ReusableBlocksMenuItems)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/reusable-blocks/build-module/components/index.js + + +// CONCATENATED MODULE: ./node_modules/@wordpress/reusable-blocks/build-module/index.js +/** + * WordPress dependencies + */ + + + +/** + * Internal dependencies + */ + + + + + +/***/ }), + +/***/ 5: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _defineProperty; }); +function _defineProperty(obj, key, value) { + if (key in obj) { + Object.defineProperty(obj, key, { + value: value, + enumerable: true, + configurable: true, + writable: true + }); + } else { + obj[key] = value; + } + + return obj; +} + +/***/ }), + +/***/ 6: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["blockEditor"]; }()); + +/***/ }), + +/***/ 7: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["primitives"]; }()); + +/***/ }), + +/***/ 83: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["coreData"]; }()); + +/***/ }), + +/***/ 92: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["notices"]; }()); + +/***/ }) + +/******/ }); \ No newline at end of file diff --git a/wp-includes/js/dist/reusable-blocks.min.js b/wp-includes/js/dist/reusable-blocks.min.js new file mode 100644 index 0000000000..8d626e6d8c --- /dev/null +++ b/wp-includes/js/dist/reusable-blocks.min.js @@ -0,0 +1,2 @@ +/*! This file is auto-generated */ +this.wp=this.wp||{},this.wp.reusableBlocks=function(e){var t={};function n(r){if(t[r])return t[r].exports;var c=t[r]={i:r,l:!1,exports:{}};return e[r].call(c.exports,c,c.exports,n),c.l=!0,c.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var c in e)n.d(r,c,function(t){return e[t]}.bind(null,c));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=466)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},11:function(e,t){!function(){e.exports=this.wp.blocks}()},20:function(e,t){!function(){e.exports=this.regeneratorRuntime}()},3:function(e,t){!function(){e.exports=this.wp.components}()},4:function(e,t){!function(){e.exports=this.wp.data}()},45:function(e,t,n){"use strict";function r(e,t,n,r,c,o,i){try{var u=e[o](i),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,c)}function c(e){return function(){var t=this,n=arguments;return new Promise((function(c,o){var i=e.apply(t,n);function u(e){r(i,c,o,u,s,"next",e)}function s(e){r(i,c,o,u,s,"throw",e)}u(void 0)}))}}n.d(t,"a",(function(){return c}))},466:function(e,t,n){"use strict";n.r(t),n.d(t,"ReusableBlocksMenuItems",(function(){return P}));var r={};n.r(r),n.d(r,"__experimentalConvertBlockToStatic",(function(){return j})),n.d(r,"__experimentalConvertBlocksToReusable",(function(){return y})),n.d(r,"__experimentalDeleteReusableBlock",(function(){return m})),n.d(r,"__experimentalSetEditingReusableBlock",(function(){return h}));var c={};n.r(c),n.d(c,"__experimentalIsEditingReusableBlock",(function(){return x}));var o=n(6),i=(n(83),n(92),n(4)),u=n(20),s=n.n(u),a=n(45),l=n(11),p=n(1);function b(e){return{type:"CONVERT_BLOCK_TO_STATIC",clientId:e}}function f(e){return{type:"CONVERT_BLOCKS_TO_REUSABLE",clientIds:e}}function d(e){return{type:"DELETE_REUSABLE_BLOCK",id:e}}var O={CONVERT_BLOCK_TO_STATIC:Object(i.createRegistryControl)((function(e){return function(t){var n=t.clientId,r=e.select("core/block-editor").getBlock(n),c=e.select("core").getEditedEntityRecord("postType","wp_block",r.attributes.ref),o=Object(l.parse)(c.content);e.dispatch("core/block-editor").replaceBlocks(r.clientId,o)}})),CONVERT_BLOCKS_TO_REUSABLE:Object(i.createRegistryControl)((function(e){return function(){var t=Object(a.a)(s.a.mark((function t(n){var r,c,o,i;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=n.clientIds,c={title:Object(p.__)("Untitled Reusable Block"),content:Object(l.serialize)(e.select("core/block-editor").getBlocksByClientId(r)),status:"publish"},t.next=4,e.dispatch("core").saveEntityRecord("postType","wp_block",c);case 4:o=t.sent,i=Object(l.createBlock)("core/block",{ref:o.id}),e.dispatch("core/block-editor").replaceBlocks(r,i),e.dispatch("core/reusable-blocks").__experimentalSetEditingReusableBlock(i.clientId,!0);case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()})),DELETE_REUSABLE_BLOCK:Object(i.createRegistryControl)((function(e){return function(){var t=Object(a.a)(s.a.mark((function t(n){var r,c,o,i;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=n.id,e.select("core").getEditedEntityRecord("postType","wp_block",r)){t.next=4;break}return t.abrupt("return");case 4:return c=e.select("core/block-editor").getBlocks(),o=c.filter((function(e){return Object(l.isReusableBlock)(e)&&e.attributes.ref===r})),(i=o.map((function(e){return e.clientId}))).length&&e.dispatch("core/block-editor").removeBlocks(i),t.next=10,e.dispatch("core").deleteEntityRecord("postType","wp_block",r);case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}))},k=s.a.mark(j),v=s.a.mark(y),_=s.a.mark(m);function j(e){return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,b(e);case 2:case"end":return t.stop()}}),k)}function y(e){return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,f(e);case 2:case"end":return t.stop()}}),v)}function m(e){return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,d(e);case 2:case"end":return t.stop()}}),_)}function h(e,t){return{type:"SET_EDITING_REUSABLE_BLOCK",clientId:e,isEditing:t}}var E=n(5);function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function B(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"SET_EDITING_REUSABLE_BLOCK"===(null==t?void 0:t.type)?B(B({},e),{},Object(E.a)({},t.clientId,t.isEditing)):e}});function x(e,t){return e.isEditingReusableBlock[t]}var R="core/reusable-blocks",C=(Object(i.registerStore)(R,{actions:r,controls:O,reducer:g,selectors:c}),n(0)),I=n(3),S=n(7),T=Object(C.createElement)(S.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(C.createElement)(S.Path,{d:"M7 7.2h8.2L13.5 9l1.1 1.1 3.6-3.6-3.5-4-1.1 1 1.9 2.3H7c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.2-.5zm13.8 4V11h-1.5v.3c0 1.1 0 3.5-1 4.5-.3.3-.7.5-1.3.5H8.8l1.7-1.7-1.1-1.1L5.9 17l3.5 4 1.1-1-1.9-2.3H17c.9 0 1.7-.3 2.3-.9 1.5-1.4 1.5-4.2 1.5-5.6z"}));function L(e){var t=e.clientIds,n=e.rootClientId,r=Object(i.useSelect)((function(e){var r,c=e("core").canUser,o=e("core/block-editor"),i=o.getBlocksByClientId,u=o.canInsertBlockType,s=null!==(r=i(t))&&void 0!==r?r:[];return!(1===s.length&&s[0]&&Object(l.isReusableBlock)(s[0])&&!!e("core").getEntityRecord("postType","wp_block",s[0].attributes.ref))&&u("core/block",n)&&s.every((function(e){return!!e&&e.isValid&&Object(l.hasBlockSupport)(e.name,"reusable",!0)}))&&!!c("create","blocks")}),[t]),c=Object(i.useDispatch)(R).__experimentalConvertBlocksToReusable,u=Object(i.useDispatch)("core/notices"),b=u.createSuccessNotice,f=u.createErrorNotice,d=Object(C.useCallback)(Object(a.a)(s.a.mark((function e(){return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,c(t);case 3:b(Object(p.__)("Block created."),{type:"snackbar"}),e.next=9;break;case 6:e.prev=6,e.t0=e.catch(0),f(e.t0.message,{type:"snackbar"});case 9:case"end":return e.stop()}}),e,null,[[0,6]])}))),[t]);return r?Object(C.createElement)(o.BlockSettingsMenuControls,null,(function(e){var t=e.onClose;return Object(C.createElement)(I.MenuItem,{icon:T,onClick:function(){d(),t()}},Object(p.__)("Add to Reusable blocks"))})):null}var D=function(e){var t=e.clientId,n=Object(i.useSelect)((function(e){var n=e("core/block-editor").getBlock,r=e("core").canUser,c=n(t),o=c&&Object(l.isReusableBlock)(c)?e("core").getEntityRecord("postType","wp_block",c.attributes.ref):null;return{block:c,isVisible:!!o&&(o.isTemporary||!!r("delete","blocks",o.id)),isDisabled:o&&o.isTemporary}}),[t]),r=n.isVisible,c=n.isDisabled,u=n.block,b=Object(i.useDispatch)(R).__experimentalDeleteReusableBlock,f=Object(i.useDispatch)("core/notices"),d=f.createSuccessNotice,O=f.createErrorNotice,k=Object(C.useCallback)(Object(a.a)(s.a.mark((function e(){return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,b(u.attributes.ref);case 3:d(Object(p.__)("Block deleted."),{type:"snackbar"}),e.next=9;break;case 6:e.prev=6,e.t0=e.catch(0),O(e.t0.message,{type:"snackbar"});case 9:case"end":return e.stop()}}),e,null,[[0,6]])}))),[u]);return r?Object(C.createElement)(o.BlockSettingsMenuControls,null,(function(e){var t=e.onClose;return Object(C.createElement)(I.MenuItem,{disabled:c,onClick:function(){window.confirm(Object(p.__)("Are you sure you want to delete this Reusable Block?\n\nIt will be permanently removed from all posts and pages that use it."))&&(k(),t())}},Object(p.__)("Remove from Reusable blocks"))})):null};var P=Object(i.withSelect)((function(e){return{clientIds:(0,e("core/block-editor").getSelectedBlockClientIds)()}}))((function(e){var t=e.clientIds,n=e.rootClientId;return Object(C.createElement)(C.Fragment,null,Object(C.createElement)(L,{clientIds:t,rootClientId:n}),1===t.length&&Object(C.createElement)(D,{clientId:t[0]}))}))},5:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},6:function(e,t){!function(){e.exports=this.wp.blockEditor}()},7:function(e,t){!function(){e.exports=this.wp.primitives}()},83:function(e,t){!function(){e.exports=this.wp.coreData}()},92:function(e,t){!function(){e.exports=this.wp.notices}()}}); \ No newline at end of file diff --git a/wp-includes/js/dist/rich-text.js b/wp-includes/js/dist/rich-text.js index fe64101081..b165fba070 100644 --- a/wp-includes/js/dist/rich-text.js +++ b/wp-includes/js/dist/rich-text.js @@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["richText"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 454); +/******/ return __webpack_require__(__webpack_require__.s = 458); /******/ }) /************************************************************************/ /******/ ({ @@ -156,35 +156,7 @@ function _slicedToArray(arr, i) { /***/ }), -/***/ 14: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutProperties; }); -/* harmony import */ var _objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(42); - -function _objectWithoutProperties(source, excluded) { - if (source == null) return {}; - var target = Object(_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(source, excluded); - var key, i; - - if (Object.getOwnPropertySymbols) { - var sourceSymbolKeys = Object.getOwnPropertySymbols(source); - - for (i = 0; i < sourceSymbolKeys.length; i++) { - key = sourceSymbolKeys[i]; - if (excluded.indexOf(key) >= 0) continue; - if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; - target[key] = source[key]; - } - } - - return target; -} - -/***/ }), - -/***/ 18: +/***/ 17: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -221,7 +193,7 @@ function _toConsumableArray(arr) { /***/ }), -/***/ 19: +/***/ 18: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["keycodes"]; }()); @@ -270,7 +242,7 @@ function _unsupportedIterableToArray(o, minLen) { /***/ }), -/***/ 35: +/***/ 36: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["deprecated"]; }()); @@ -340,7 +312,7 @@ function _typeof(obj) { /***/ }), -/***/ 41: +/***/ 42: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -622,29 +594,7 @@ function isShallowEqual( a, b, fromIndex ) { /***/ }), -/***/ 42: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutPropertiesLoose; }); -function _objectWithoutPropertiesLoose(source, excluded) { - if (source == null) return {}; - var target = {}; - var sourceKeys = Object.keys(source); - var key, i; - - for (i = 0; i < sourceKeys.length; i++) { - key = sourceKeys[i]; - if (excluded.indexOf(key) >= 0) continue; - target[key] = source[key]; - } - - return target; -} - -/***/ }), - -/***/ 454: +/***/ 458: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -755,7 +705,7 @@ function reducer_formatTypes() { })); // EXTERNAL MODULE: ./node_modules/rememo/es/rememo.js -var rememo = __webpack_require__(41); +var rememo = __webpack_require__(42); // CONCATENATED MODULE: ./node_modules/@wordpress/rich-text/build-module/store/selectors.js /** @@ -880,7 +830,7 @@ Object(external_this_wp_data_["registerStore"])('core/rich-text', { }); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules -var toConsumableArray = __webpack_require__(18); +var toConsumableArray = __webpack_require__(17); // CONCATENATED MODULE: ./node_modules/@wordpress/rich-text/build-module/is-format-equal.js /** @typedef {import('./create').RichTextFormat} RichTextFormat */ @@ -3881,21 +3831,14 @@ function changeListType(value, newFormat) { // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules var slicedToArray = __webpack_require__(12); -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js -var objectWithoutProperties = __webpack_require__(14); - // EXTERNAL MODULE: external {"this":["wp","element"]} var external_this_wp_element_ = __webpack_require__(0); -// EXTERNAL MODULE: ./node_modules/classnames/index.js -var classnames = __webpack_require__(9); -var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); - // EXTERNAL MODULE: external {"this":["wp","keycodes"]} -var external_this_wp_keycodes_ = __webpack_require__(19); +var external_this_wp_keycodes_ = __webpack_require__(18); // EXTERNAL MODULE: external {"this":["wp","deprecated"]} -var external_this_wp_deprecated_ = __webpack_require__(35); +var external_this_wp_deprecated_ = __webpack_require__(36); var external_this_wp_deprecated_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_deprecated_); // CONCATENATED MODULE: ./node_modules/@wordpress/rich-text/build-module/component/format-edit.js @@ -4165,7 +4108,6 @@ function useInlineWarning(_ref) { - function component_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } function component_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { component_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { component_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } @@ -4174,7 +4116,6 @@ function component_objectSpread(target) { for (var i = 1; i < arguments.length; * External dependencies */ - /** * WordPress dependencies */ @@ -4290,8 +4231,6 @@ function RichText(_ref, ref) { children = _ref.children, allowedFormats = _ref.allowedFormats, withoutInteractiveFormatting = _ref.withoutInteractiveFormatting, - style = _ref.style, - className = _ref.className, placeholder = _ref.placeholder, disabled = _ref.disabled, preserveWhiteSpace = _ref.preserveWhiteSpace, @@ -4319,8 +4258,7 @@ function RichText(_ref, ref) { onEnterFormattedText = _ref.__unstableOnEnterFormattedText, onExitFormattedText = _ref.__unstableOnExitFormattedText, onCreateUndoLevel = _ref.__unstableOnCreateUndoLevel, - isSelected = _ref.__unstableIsSelected, - remainingProps = Object(objectWithoutProperties["a" /* default */])(_ref, ["tagName", "value", "selectionStart", "selectionEnd", "children", "allowedFormats", "withoutInteractiveFormatting", "style", "className", "placeholder", "disabled", "preserveWhiteSpace", "onPaste", "format", "onDelete", "onEnter", "onSelectionChange", "onChange", "unstableOnFocus", "setFocusedElement", "instanceId", "clientId", "identifier", "__unstableMultilineTag", "__unstableMultilineRootTag", "__unstableDisableFormats", "__unstableDidAutomaticChange", "__unstableInputRule", "__unstableMarkAutomaticChange", "__unstableAllowPrefixTransformations", "__unstableUndo", "__unstableIsCaretWithinFormattedText", "__unstableOnEnterFormattedText", "__unstableOnExitFormattedText", "__unstableOnCreateUndoLevel", "__unstableIsSelected"]); + isSelected = _ref.__unstableIsSelected; var _useState = Object(external_this_wp_element_["useState"])(), _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), @@ -5202,17 +5140,14 @@ function RichText(_ref, ref) { applyRecord(record.current); } - var editableProps = component_objectSpread(component_objectSpread({ + var editableProps = { // Overridable props. role: 'textbox', 'aria-multiline': true, - 'aria-label': placeholder - }, remainingProps), {}, { + 'aria-label': placeholder, ref: ref, - style: style ? component_objectSpread(component_objectSpread({}, style), {}, { - whiteSpace: whiteSpace - }) : defaultStyle, - className: classnames_default()('rich-text', className), + style: defaultStyle, + className: 'rich-text', onPaste: handlePaste, onInput: handleInput, onCompositionStart: handleCompositionStart, @@ -5232,8 +5167,7 @@ function RichText(_ref, ref) { // Do not set the attribute if disabled. contentEditable: disabled ? undefined : true, suppressContentEditableWarning: !disabled - }); - + }; useBoundaryStyle({ ref: ref, activeFormats: activeFormats @@ -5328,64 +5262,6 @@ function _defineProperty(obj, key, value) { return obj; } -/***/ }), - -/***/ 9: -/***/ (function(module, exports, __webpack_require__) { - -var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! - Copyright (c) 2017 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames -*/ -/* global define */ - -(function () { - 'use strict'; - - var hasOwn = {}.hasOwnProperty; - - function classNames () { - var classes = []; - - for (var i = 0; i < arguments.length; i++) { - var arg = arguments[i]; - if (!arg) continue; - - var argType = typeof arg; - - if (argType === 'string' || argType === 'number') { - classes.push(arg); - } else if (Array.isArray(arg) && arg.length) { - var inner = classNames.apply(null, arg); - if (inner) { - classes.push(inner); - } - } else if (argType === 'object') { - for (var key in arg) { - if (hasOwn.call(arg, key) && arg[key]) { - classes.push(key); - } - } - } - } - - return classes.join(' '); - } - - if ( true && module.exports) { - classNames.default = classNames; - module.exports = classNames; - } else if (true) { - // register as 'classnames', consistent with npm package name - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () { - return classNames; - }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), - __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else {} -}()); - - /***/ }) /******/ }); \ No newline at end of file diff --git a/wp-includes/js/dist/rich-text.min.js b/wp-includes/js/dist/rich-text.min.js index fd62a2f3cf..9e8110115f 100644 --- a/wp-includes/js/dist/rich-text.min.js +++ b/wp-includes/js/dist/rich-text.min.js @@ -1,7 +1,2 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.richText=function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=454)}({0:function(e,t){!function(){e.exports=this.wp.element}()},107:function(e,t){!function(){e.exports=this.wp.escapeHtml}()},12:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(38);var a=r(30),o=r(39);function i(e,t){return Object(n.a)(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,a=!1,o=void 0;try{for(var i,c=e[Symbol.iterator]();!(n=(i=c.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){a=!0,o=e}finally{try{n||null==c.return||c.return()}finally{if(a)throw o}}return r}}(e,t)||Object(a.a)(e,t)||Object(o.a)()}},14:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(42);function a(e,t){if(null==e)return{};var r,a,o=Object(n.a)(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);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 i}));var n=r(27);var a=r(37),o=r(30);function i(e){return function(e){if(Array.isArray(e))return Object(n.a)(e)}(e)||Object(a.a)(e)||Object(o.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},19:function(e,t){!function(){e.exports=this.wp.keycodes}()},2:function(e,t){!function(){e.exports=this.lodash}()},27:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||(a[r]=e[r]);return a}r.d(t,"a",(function(){return n}))},454:function(e,t,r){"use strict";r.r(t),r.d(t,"applyFormat",(function(){return P})),r.d(t,"concat",(function(){return V})),r.d(t,"create",(function(){return N})),r.d(t,"getActiveFormat",(function(){return B})),r.d(t,"getActiveObject",(function(){return U})),r.d(t,"getTextContent",(function(){return z})),r.d(t,"__unstableIsListRootSelected",(function(){return q})),r.d(t,"__unstableIsActiveListType",(function(){return X})),r.d(t,"isCollapsed",(function(){return Y})),r.d(t,"isEmpty",(function(){return $})),r.d(t,"__unstableIsEmptyLine",(function(){return Z})),r.d(t,"join",(function(){return J})),r.d(t,"registerFormatType",(function(){return ee})),r.d(t,"removeFormat",(function(){return ne})),r.d(t,"remove",(function(){return ie})),r.d(t,"replace",(function(){return ce})),r.d(t,"insert",(function(){return oe})),r.d(t,"__unstableInsertLineSeparator",(function(){return ue})),r.d(t,"__unstableRemoveLineSeparator",(function(){return fe})),r.d(t,"insertObject",(function(){return pe})),r.d(t,"slice",(function(){return me})),r.d(t,"split",(function(){return ve})),r.d(t,"__unstableToDom",(function(){return Ne})),r.d(t,"toHTMLString",(function(){return Re})),r.d(t,"toggleFormat",(function(){return qe})),r.d(t,"__UNSTABLE_LINE_SEPARATOR",(function(){return S})),r.d(t,"unregisterFormatType",(function(){return Xe})),r.d(t,"__unstableCanIndentListItems",(function(){return Ye})),r.d(t,"__unstableCanOutdentListItems",(function(){return $e})),r.d(t,"__unstableIndentListItems",(function(){return Qe})),r.d(t,"__unstableOutdentListItems",(function(){return nt})),r.d(t,"__unstableChangeListType",(function(){return it})),r.d(t,"__unstableCreateElement",(function(){return D})),r.d(t,"__experimentalRichText",(function(){return Pt})),r.d(t,"__unstableFormatEdit",(function(){return vt}));var n={};r.r(n),r.d(n,"getFormatTypes",(function(){return p})),r.d(n,"getFormatType",(function(){return d})),r.d(n,"getFormatTypeForBareElement",(function(){return b})),r.d(n,"getFormatTypeForClassName",(function(){return m}));var a={};r.r(a),r.d(a,"addFormatTypes",(function(){return v})),r.d(a,"removeFormatTypes",(function(){return g}));var o=r(4),i=r(5),c=r(2);function u(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 s(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_FORMAT_TYPES":return s(s({},e),Object(c.keyBy)(t.formatTypes,"name"));case"REMOVE_FORMAT_TYPES":return Object(c.omit)(e,t.names)}return e}}),f=r(41),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(c.find)(p(e),(function(e){var r=e.className,n=e.tagName;return null===r&&t===n}))}function m(e,t){return Object(c.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(c.castArray)(e)}}function g(e){return{type:"REMOVE_FORMAT_TYPES",names:Object(c.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 i=a.length,c=0;c2&&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,i=a.slice();if(r===n){var u=Object(c.find)(i[r],{type:t.type});if(u){for(var s=i[r].indexOf(u);i[r]&&i[r][s]===u;)i[r]=E(i[r],s,t),r--;for(n++;i[n]&&i[n][s]===u;)i[n]=E(i[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,i=e.multilineWrapperTags,c=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=D(document,n)),"object"!==Object(_.a)(t)?{formats:[],replacements:[],text:""}:o?W({element:t,range:a,multilineTag:o,multilineWrapperTags:i,isEditableTree:c,preserveWhiteSpace:u}):L({element:t,range:a,isEditableTree:c,preserveWhiteSpace:u}))}function I(e,t,r,n){if(r){var a=t.parentNode,o=r.startContainer,i=r.startOffset,c=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+i:a===o&&t===o.childNodes[i]?e.start=s:a===o&&t===o.childNodes[i-1]?e.start=s+n.text.length:t===o&&(e.start=s),void 0!==n.end?e.end=s+n.end:t===c&&t.nodeType===t.TEXT_NODE?e.end=s+u:a===c&&t===c.childNodes[u-1]?e.end=s+n.text.length:a===c&&t===c.childNodes[u]?e.end=s:t===c&&(e.end=s+u)}}var k=new RegExp("\ufeff","g");function R(e){return e.replace(k,"")}function L(e){var t=e.element,r=e.range,n=e.multilineTag,a=e.multilineWrapperTags,i=e.currentWrapperTags,c=void 0===i?[]:i,u=e.isEditableTree,s=e.preserveWhiteSpace,l={formats:[],replacements:[],text:""};if(!t)return l;if(!t.hasChildNodes())return I(l,t,r,{formats:[],replacements:[],text:""}),l;for(var f=t.childNodes.length,p=function(e){var i=t.childNodes[e],f=i.nodeName.toLowerCase();if(i.nodeType===i.TEXT_NODE){var p=R;s||(p=function(e){return R(function(e){return e.replace(/[\n\r\t]+/g," ")}(e))});var d=p(i.nodeValue);return r=function(e,t,r){if(t){var n=t.startContainer,a=t.endContainer,o=t.startOffset,i=t.endOffset;return e===n&&(o=r(e.nodeValue.slice(0,o)).length),e===a&&(i=r(e.nodeValue.slice(0,i)).length),{startContainer:n,startOffset:o,endContainer:a,endOffset:i}}}(i,r,p),I(l,i,r,{text:d}),l.formats.length+=d.length,l.replacements.length+=d.length,l.text+=d,"continue"}if(i.nodeType!==i.ELEMENT_NODE)return"continue";if(u&&(i.getAttribute("data-rich-text-placeholder")||"br"===f&&!i.getAttribute("data-rich-text-line-break")))return I(l,i,r,{formats:[],replacements:[],text:""}),"continue";if("br"===f)return I(l,i,r,{formats:[],replacements:[],text:""}),H(l,N({text:"\n"})),"continue";var b=l.formats[l.formats.length-1],m=b&&b[b.length-1],v=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={},i={};for(var c in n){var u=A(t.attributes,c);u?a[u]=n[c]:i[c]=n[c]}return{type:t.name,attributes:a,unregisteredAttributes:i}}({type:f,attributes:M({element:i})}),g=O(v,m)?m:v;if(a&&-1!==a.indexOf(f)){var y=W({element:i,range:r,multilineTag:n,multilineWrapperTags:a,currentWrapperTags:[].concat(Object(h.a)(c),[g]),isEditableTree:u,preserveWhiteSpace:s});return I(l,i,r,y),H(l,y),"continue"}var j=L({element:i,range:r,multilineTag:n,multilineWrapperTags:a,isEditableTree:u,preserveWhiteSpace:s});if(I(l,i,r,j),g)if(0===j.text.length)g.attributes&&H(l,{formats:[,],replacements:[g],text:""});else{function x(e){if(x.formats===e)return x.newFormats;var t=e?[g].concat(Object(h.a)(e)):[g];return x.formats=e,x.newFormats=t,t}x.newFormats=[g],H(l,C(C({},j),{},{formats:Array.from(j.formats,x)}))}else H(l,j)},d=0;d0)&&H(s,{formats:[,],replacements:i.length>0?[i]:[,],text:S}),I(s,p,r,d),H(s,d)}}return s}function M(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 i=t[r-1]||o,c=t[r]||o;return i.length1&&void 0!==arguments[1]?arguments[1]:t,a=n;a--;)if(r[a]===S)return a}function q(e){var t=e.replacements[G(e,e.start)];return!t||t.length<1}function X(e,t,r){var n=e.replacements[G(e,e.start)];return n&&0!==n.length?n[n.length-1].type===t:t===r}function Y(e){var t=e.start,r=e.end;if(void 0!==t&&void 0!==r)return t===r}function $(e){return 0===e.text.length}function Z(e){var t=e.text,r=e.start,n=e.end;return r===n&&(0===t.length||(0===r&&t.slice(0,1)===S||(r===t.length&&t.slice(-1)===S||t.slice(r-1,n+1)==="".concat(S).concat(S))))}function J(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"string"==typeof t&&(t=N({text:t})),x(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 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,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 te(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 re(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,i=a.slice();if(r===n){var u=Object(c.find)(i[r],{type:t});if(u){for(;Object(c.find)(i[r],u);)ae(i,r,t),r--;for(n++;Object(c.find)(i[n],u);)ae(i,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,i=e.text;"string"==typeof t&&(t=N({text:t}));var c=r+t.text.length;return x({formats:a.slice(0,r).concat(t.formats,a.slice(n)),replacements:o.slice(0,r).concat(t.replacements,o.slice(n)),text:i.slice(0,r)+t.text+i.slice(n),start:c,end:c})}function ie(e,t,r){return oe(e,N(),t,r)}function ce(e,t,r){var n=e.formats,a=e.replacements,o=e.text,i=e.start,c=e.end;return o=o.replace(t,(function(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),u=1;u1&&void 0!==arguments[1]?arguments[1]:e.start,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.end,n=z(e).slice(0,t),a=n.lastIndexOf(S),o=e.replacements[a],i=[,];o&&(i=[o]);var c={formats:[,],replacements:i,text:S};return oe(e,c,t,r)}function se(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 le(e){for(var t=1;t1&&void 0!==arguments[1])||arguments[1],r=e.replacements,n=e.text,a=e.start,o=e.end,i=Y(e),c=a-1,u=i?a-1:a,s=o;if(t||(c=o,u=a,s=i?o+1:o),n[c]===S){var l;if(i&&r[c]&&r[c].length){var f=r.slice();f[c]=r[c].slice(0,-1),l=le(le({},e),{},{replacements:f})}else l=ie(e,u,s);return l}}function pe(e,t,r,n){return oe(e,{formats:[,],replacements:[t],text:""},r,n)}function de(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function be(e){for(var t=1;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?be({},e):{formats:n.slice(t,r),replacements:a.slice(t,r),text:o.slice(t,r)}}function ve(e,t){var r=e.formats,n=e.replacements,a=e.text,o=e.start,i=e.end;if("string"!=typeof t)return ge.apply(void 0,arguments);var c=0;return a.split(t).map((function(e){var a=c,u={formats:r.slice(a,a+e.length),replacements:n.slice(a,a+e.length),text:e};return c+=t.length+e.length,void 0!==o&&void 0!==i&&(o>=a&&oa&&(u.start=0),i>=a&&ic&&(u.end=e.length)),u}))}function ge(e){var t=e.formats,r=e.replacements,n=e.text,a=e.start,o=e.end,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o,u={formats:t.slice(0,i),replacements:r.slice(0,i),text:n.slice(0,i)},s={formats:t.slice(c),replacements:r.slice(c),text:n.slice(c),start:0,end:0};return[ce(u,/\u2028+$/,""),ce(s,/^\u2028+/,"")]}function he(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Oe(e){for(var t=1;t1;)e=e.childNodes[t.shift()];return{node:e,offset:t[0]}}function Pe(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 _e(e,t){e.appendData(t)}function De(e){return e.lastChild}function Se(e){return e.parentNode}function Fe(e){return e.nodeType===e.TEXT_NODE}function Ce(e){return e.nodeValue}function Ae(e){return e.parentNode.removeChild(e)}function Ne(e){var t=e.value,r=e.multilineTag,n=e.prepareEditableTree,a=e.isEditableTree,o=void 0===a||a,i=e.placeholder,c=e.doc,u=void 0===c?document:c,s=[],l=[];n&&(t=we(we({},t),{},{formats:n(t)}));return{body:je({value:t,multilineTag:r,createEmpty:function(){return D(u,"")},append:Pe,getLastChild:De,getParent:Se,isText:Fe,getText:Ce,remove:Ae,appendText:_e,onStartIndex:function(e,t){s=Te(t,e,[t.nodeValue.length])},onEndIndex:function(e,t){l=Te(t,e,[t.nodeValue.length])},isEditableTree:o,placeholder:i}),selection:{startPath:s,endPath:l}}}function Ie(e){var t=e.value,r=e.current,n=e.multilineTag,a=e.prepareEditableTree,o=e.__unstableDomOnly,i=Ne({value:t,multilineTag:n,prepareEditableTree:a,placeholder:e.placeholder,doc:r.ownerDocument}),c=i.body,u=i.selection;!function e(t,r){var n,a=0;for(;n=t.firstChild;){var o=r.childNodes[a];if(o)if(o.isEqualNode(n))t.removeChild(n);else if(o.nodeName!==n.nodeName||o.nodeType===o.TEXT_NODE&&o.data!==n.data)r.replaceChild(n,o);else{var i=o.attributes,c=n.attributes;if(i)for(var u=i.length;u--;){var s=i[u].name;n.getAttribute(s)||o.removeAttribute(s)}if(c)for(var l=0;l0){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 ke=r(107);function Re(e){return Ge(je({value:e.value,multilineTag:e.multilineTag,preserveWhiteSpace:e.preserveWhiteSpace,createEmpty:Le,append:Me,getLastChild:We,getParent:Ve,isText:Ke,getText:Be,remove:Ue,appendText:He}).children)}function Le(){return{}}function We(e){var t=e.children;return t&&t[t.length-1]}function Me(e,t){return"string"==typeof t&&(t={text:t}),t.parent=e,e.children=e.children||[],e.children.push(t),t}function He(e,t){e.text+=t}function Ve(e){return e.parent}function Ke(e){return"string"==typeof e.text}function Be(e){return e.text}function Ue(e){var t=e.parent.children.indexOf(e);return-1!==t&&e.parent.children.splice(t,1),e}function ze(e){var t=e.type,r=e.attributes,n=e.object,a=e.children,o="";for(var i in r)Object(ke.isValidAttributeName)(i)&&(o+=" ".concat(i,'="').concat(Object(ke.escapeAttribute)(r[i]),'"'));return n?"<".concat(t).concat(o,">"):"<".concat(t).concat(o,">").concat(Ge(a),"")}function Ge(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map((function(e){return void 0===e.text?ze(e):Object(ke.escapeEditableHTML)(e.text)})).join("")}function qe(e,t){return B(e,t.type)?ne(e,t.type):P(e,t)}function Xe(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 Ye(e){var t=G(e);if(void 0===t)return!1;var r=e.replacements,n=G(e,t),a=r[t]||[],o=r[n]||[];return a.length<=o.length}function $e(e){return void 0!==e.replacements[G(e,e.start)]}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){for(var t=1;t=0;)if(r[o]===S){var i=n[o]||[];if(i.length===a.length+1)return o;if(i.length<=a.length)return}}(e,r),s=r;s=0;){if(r[o]===S)if((n[o]||[]).length===a.length-1)return o}}function tt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function rt(e){for(var t=1;t=a.length))return o;o=i}return o}(e,G(e,a)),s=o;s<=u;s++)if(t[s]===S){var l=i[s]||[];i[s]=c.concat(l.slice(c.length+1)),0===i[s].length&&delete i[s]}return rt(rt({},e),{},{replacements:i})}function at(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 ot(e){for(var t=1;td?e:t})))}return r?ot(ot({},e),{},{replacements:f}):e}var ct=r(12),ut=r(14),st=r(0),lt=r(9),ft=r.n(lt),pt=r(19),dt=r(35),bt=r.n(dt),mt=new Set(["a","audio","button","details","embed","iframe","input","label","select","textarea","video"]);function vt(e){var t=e.formatTypes,r=e.onChange,n=e.onFocus,a=e.value,o=e.allowedFormats,i=e.withoutInteractiveFormatting;return t.map((function(e){var t=e.name,c=e.edit,u=e.tagName;if(!c)return null;if(o&&-1===o.indexOf(t))return null;if(i&&mt.has(u))return null;var s=B(a,t),l=void 0!==s,f=U(a),p=void 0!==f&&f.type===t;return Object(st.createElement)(c,{key:t,isActive:l,activeAttributes:l&&s.attributes||{},isObjectActive:p,activeObjectAttributes:p&&f.attributes||{},value:a,onChange:r,onFocus:n})}))}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 ht(e){for(var t=1;t0?e.getRangeAt(0):null;return N({element:t.current,range:r,multilineTag:A,multilineWrapperTags:"li"===A?["ul","ol"]:void 0,__unstableIsEditableTree:!0,preserveWhiteSpace:g})}function Oe(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.domOnly;Ie({value:e,current:t.current,multilineTag:A,multilineWrapperTags:"li"===A?["ul","ol"]:void 0,prepareEditableTree:Et(ae),__unstableDomOnly:n,placeholder:m})}var ye=Object(st.useRef)(i);function je(){ye.current!==ve.current&&(z(),ye.current=ve.current)}var xe=Object(st.useRef)(!1),we=Object(st.useRef)();function Te(e){var t;if(!xe.current)if(e&&(t=e.inputType),!t&&e&&e.nativeEvent&&(t=e.nativeEvent.inputType),!t||0!==t.indexOf("format")&&!xt.has(t)){var r=he(),n=ge.current,a=n.start,o=n.activeFormats,i=void 0===o?[]:o,c=function(e){var t=e.value,r=e.start,n=e.end,a=e.formats,o=t.formats[r-1]||[],i=t.formats[n]||[];for(t.activeFormats=a.map((function(e,t){if(o[t]){if(O(e,o[t]))return o[t]}else if(i[t]&&O(e,i[t]))return i[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:i});if(_e(c,{withoutHistory:!0}),pe().clearTimeout(we.current),we.current=pe().setTimeout(je,1e3),"insertText"===t){M&&L&&L(c,me);var u=re.reduce((function(e,t){var r=t.__unstableInputRule;return r&&(e=r(e)),e}),c);u!==c&&(je(),_e(jt(jt({},u),{},{activeFormats:i})),W())}}else Oe(ge.current)}var Ee=Object(st.useRef)(!1);function Pe(e){if(t.current&&t.current.ownerDocument.activeElement===t.current&&("selectionchange"===e.type||G)&&!v&&!xe.current){var r=he(),n=r.start,a=r.end,o=r.text,i=ge.current;if(o===i.text)if(n!==i.start||a!==i.end){var c=jt(jt({},i),{},{start:n,end:a,activeFormats:void 0}),u=K(c,Tt);c.activeFormats=u,!V&&u.length?B():V&&!u.length&&U(),ge.current=c,Oe(c,{domOnly:!0}),T(n,a),ee(u)}else 0===i.text.length&&0===n&&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()}}(pe());else Te()}}function _e(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.withoutHistory;k&&(e.formats=Array(e.text.length),e.replacements=Array(e.text.length)),Oe(e);var n=e.start,a=e.end,o=e.activeFormats,i=void 0===o?[]:o;Object.values(ue).forEach((function(t){t(e.formats,e.text)})),ve.current=me(e),ge.current=e,T(n,a),E(ve.current),ee(i),r||je()}function De(e){var r=e.target;if(r!==t.current&&!r.textContent){var n=r.parentNode,a=Array.from(n.childNodes).indexOf(r),o=le().createRange(),i=pe().getSelection();o.setStart(r.parentNode,a),o.setEnd(r.parentNode,a+1),i.removeAllRanges(),i.addRange(o)}}var Se=Object(st.useRef)();function Fe(){ve.current=i,ge.current=de(i),ge.current.start=u,ge.current.end=s,Oe(ge.current)}function Ce(){t.current.focus(),Oe(ge.current)}Object(st.useEffect)((function(){Ee.current&&Fe()}),[n,m]),Object(st.useEffect)((function(){Ee.current&&i!==ve.current&&Fe()}),[i]),Object(st.useEffect)((function(){Ee.current&&(!G||u===ge.current.start&&s===ge.current.end?ge.current=jt(jt({},ge.current),{},{start:u,end:s}):Fe())}),[u,s,G]),Object(st.useEffect)((function(){Ee.current&&Fe()}),se),Object(st.useLayoutEffect)((function(){return Oe(ge.current,{domOnly:!0}),Ee.current=!0,function(){le().removeEventListener("selectionchange",Pe),pe().cancelAnimationFrame(Se.current),pe().clearTimeout(we.current)}}),[]);var Ae=jt(jt({role:"textbox","aria-multiline":!0,"aria-label":m},q),{},{ref:t,style:d?jt(jt({},d),{},{whiteSpace:"pre-wrap"}):wt,className:ft()("rich-text",b),onPaste:function(e){if(G){var t=e.clipboardData,r=t.items,n=t.files;r=Object(c.isNil)(r)?[]:r,n=Object(c.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),k)_e(oe(ge.current,a));else{var i=re.reduce((function(e,t){var r=t.__unstablePasteRule;return r&&e===ge.current&&(e=r(ge.current,{html:o,plainText:a})),e}),ge.current);i===ge.current?h&&(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(c.find)(n,{name:r,type:a,size:o})||n.push(t)}}})),h({value:be(ge.current),onChange:_e,html:o,plainText:a,files:n,activeFormats:Q})):_e(i)}}else e.preventDefault()},onInput:Te,onCompositionStart:function(){xe.current=!0,le().removeEventListener("selectionchange",Pe)},onCompositionEnd:function(){xe.current=!1,Te({inputType:"insertText"}),le().addEventListener("selectionchange",Pe)},onKeyDown:function(e){e.defaultPrevented||(function(e){var t=e.keyCode;if(t===pt.DELETE||t===pt.BACKSPACE||t===pt.ESCAPE){if(R)return e.preventDefault(),void H();if(t!==pt.ESCAPE){var r,n=he(),a=n.start,o=n.end,i=n.text,c=t===pt.BACKSPACE;if(0===a&&0!==o&&o===i.length)return _e(ie(n)),void e.preventDefault();if(A)if(r=c&&0===n.start&&0===n.end&&Z(n)?fe(n,!c):fe(n,c))return _e(r),void e.preventDefault();!x||!Y(n)||Q.length||c&&0!==a||!c&&o!==i.length||(x({isReverse:c,value:n}),e.preventDefault())}}}(e),function(e){e.keyCode===pt.ENTER&&(e.preventDefault(),w&&w({value:be(he()),onChange:_e,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!==pt.SPACE||"li"!==A)){var i=he();if(Y(i)){var c=i.text[i.start-1];c&&c!==S||(_e(Qe(i,{type:I})),e.preventDefault())}}}(e),function(e){var r=e.keyCode,n=e.shiftKey,a=e.altKey,o=e.metaKey,i=e.ctrlKey;if(!(n||a||o||i||r!==pt.LEFT&&r!==pt.RIGHT)){var c=ge.current,u=c.text,s=c.formats,l=c.start,f=c.end,p=c.activeFormats,d=void 0===p?[]:p,b=Y(ge.current),m="rtl"===pe().getComputedStyle(t.current).direction?pt.RIGHT:pt.LEFT,v=e.keyCode===m;if(b&&0===d.length){if(0===l&&v)return;if(f===u.length&&!v)return}if(b){e.preventDefault();var g=s[l-1]||Tt,h=s[l]||Tt,O=d.length,y=h;if(g.length>h.length&&(y=g),g.lengthg.length&&O--):g.length>h.length&&(!v&&d.length>h.length&&O--,v&&d.lengthe.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;switch(t.type){case"ADD_FORMAT_TYPES":return s(s({},e),Object(c.keyBy)(t.formatTypes,"name"));case"REMOVE_FORMAT_TYPES":return Object(c.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(c.find)(p(e),(function(e){var r=e.className,n=e.tagName;return null===r&&t===n}))}function m(e,t){return Object(c.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(c.castArray)(e)}}function g(e){return{type:"REMOVE_FORMAT_TYPES",names:Object(c.castArray)(e)}}Object(o.registerStore)("core/rich-text",{reducer:l,selectors:n,actions:a});var h=r(17);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 i=a.length,c=0;c2&&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,i=a.slice();if(r===n){var u=Object(c.find)(i[r],{type:t.type});if(u){for(var s=i[r].indexOf(u);i[r]&&i[r][s]===u;)i[r]=E(i[r],s,t),r--;for(n++;i[n]&&i[n][s]===u;)i[n]=E(i[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,i=e.multilineWrapperTags,c=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=D(document,n)),"object"!==Object(_.a)(t)?{formats:[],replacements:[],text:""}:o?W({element:t,range:a,multilineTag:o,multilineWrapperTags:i,isEditableTree:c,preserveWhiteSpace:u}):R({element:t,range:a,isEditableTree:c,preserveWhiteSpace:u}))}function I(e,t,r,n){if(r){var a=t.parentNode,o=r.startContainer,i=r.startOffset,c=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+i:a===o&&t===o.childNodes[i]?e.start=s:a===o&&t===o.childNodes[i-1]?e.start=s+n.text.length:t===o&&(e.start=s),void 0!==n.end?e.end=s+n.end:t===c&&t.nodeType===t.TEXT_NODE?e.end=s+u:a===c&&t===c.childNodes[u-1]?e.end=s+n.text.length:a===c&&t===c.childNodes[u]?e.end=s:t===c&&(e.end=s+u)}}var k=new RegExp("\ufeff","g");function L(e){return e.replace(k,"")}function R(e){var t=e.element,r=e.range,n=e.multilineTag,a=e.multilineWrapperTags,i=e.currentWrapperTags,c=void 0===i?[]:i,u=e.isEditableTree,s=e.preserveWhiteSpace,l={formats:[],replacements:[],text:""};if(!t)return l;if(!t.hasChildNodes())return I(l,t,r,{formats:[],replacements:[],text:""}),l;for(var f=t.childNodes.length,p=function(e){var i=t.childNodes[e],f=i.nodeName.toLowerCase();if(i.nodeType===i.TEXT_NODE){var p=L;s||(p=function(e){return L(function(e){return e.replace(/[\n\r\t]+/g," ")}(e))});var d=p(i.nodeValue);return r=function(e,t,r){if(t){var n=t.startContainer,a=t.endContainer,o=t.startOffset,i=t.endOffset;return e===n&&(o=r(e.nodeValue.slice(0,o)).length),e===a&&(i=r(e.nodeValue.slice(0,i)).length),{startContainer:n,startOffset:o,endContainer:a,endOffset:i}}}(i,r,p),I(l,i,r,{text:d}),l.formats.length+=d.length,l.replacements.length+=d.length,l.text+=d,"continue"}if(i.nodeType!==i.ELEMENT_NODE)return"continue";if(u&&(i.getAttribute("data-rich-text-placeholder")||"br"===f&&!i.getAttribute("data-rich-text-line-break")))return I(l,i,r,{formats:[],replacements:[],text:""}),"continue";if("br"===f)return I(l,i,r,{formats:[],replacements:[],text:""}),H(l,N({text:"\n"})),"continue";var b=l.formats[l.formats.length-1],m=b&&b[b.length-1],v=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={},i={};for(var c in n){var u=A(t.attributes,c);u?a[u]=n[c]:i[c]=n[c]}return{type:t.name,attributes:a,unregisteredAttributes:i}}({type:f,attributes:M({element:i})}),g=O(v,m)?m:v;if(a&&-1!==a.indexOf(f)){var y=W({element:i,range:r,multilineTag:n,multilineWrapperTags:a,currentWrapperTags:[].concat(Object(h.a)(c),[g]),isEditableTree:u,preserveWhiteSpace:s});return I(l,i,r,y),H(l,y),"continue"}var j=R({element:i,range:r,multilineTag:n,multilineWrapperTags:a,isEditableTree:u,preserveWhiteSpace:s});if(I(l,i,r,j),g)if(0===j.text.length)g.attributes&&H(l,{formats:[,],replacements:[g],text:""});else{function w(e){if(w.formats===e)return w.newFormats;var t=e?[g].concat(Object(h.a)(e)):[g];return w.formats=e,w.newFormats=t,t}w.newFormats=[g],H(l,C(C({},j),{},{formats:Array.from(j.formats,w)}))}else H(l,j)},d=0;d0)&&H(s,{formats:[,],replacements:i.length>0?[i]:[,],text:S}),I(s,p,r,d),H(s,d)}}return s}function M(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 i=t[r-1]||o,c=t[r]||o;return i.length1&&void 0!==arguments[1]?arguments[1]:t,a=n;a--;)if(r[a]===S)return a}function q(e){var t=e.replacements[G(e,e.start)];return!t||t.length<1}function X(e,t,r){var n=e.replacements[G(e,e.start)];return n&&0!==n.length?n[n.length-1].type===t:t===r}function Y(e){var t=e.start,r=e.end;if(void 0!==t&&void 0!==r)return t===r}function $(e){return 0===e.text.length}function Z(e){var t=e.text,r=e.start,n=e.end;return r===n&&(0===t.length||(0===r&&t.slice(0,1)===S||(r===t.length&&t.slice(-1)===S||t.slice(r-1,n+1)==="".concat(S).concat(S))))}function J(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"string"==typeof t&&(t=N({text:t})),w(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 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,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 te(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 re(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,i=a.slice();if(r===n){var u=Object(c.find)(i[r],{type:t});if(u){for(;Object(c.find)(i[r],u);)ae(i,r,t),r--;for(n++;Object(c.find)(i[n],u);)ae(i,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,i=e.text;"string"==typeof t&&(t=N({text:t}));var c=r+t.text.length;return w({formats:a.slice(0,r).concat(t.formats,a.slice(n)),replacements:o.slice(0,r).concat(t.replacements,o.slice(n)),text:i.slice(0,r)+t.text+i.slice(n),start:c,end:c})}function ie(e,t,r){return oe(e,N(),t,r)}function ce(e,t,r){var n=e.formats,a=e.replacements,o=e.text,i=e.start,c=e.end;return o=o.replace(t,(function(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),u=1;u1&&void 0!==arguments[1]?arguments[1]:e.start,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.end,n=U(e).slice(0,t),a=n.lastIndexOf(S),o=e.replacements[a],i=[,];o&&(i=[o]);var c={formats:[,],replacements:i,text:S};return oe(e,c,t,r)}function se(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 le(e){for(var t=1;t1&&void 0!==arguments[1])||arguments[1],r=e.replacements,n=e.text,a=e.start,o=e.end,i=Y(e),c=a-1,u=i?a-1:a,s=o;if(t||(c=o,u=a,s=i?o+1:o),n[c]===S){var l;if(i&&r[c]&&r[c].length){var f=r.slice();f[c]=r[c].slice(0,-1),l=le(le({},e),{},{replacements:f})}else l=ie(e,u,s);return l}}function pe(e,t,r,n){return oe(e,{formats:[,],replacements:[t],text:""},r,n)}function de(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function be(e){for(var t=1;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?be({},e):{formats:n.slice(t,r),replacements:a.slice(t,r),text:o.slice(t,r)}}function ve(e,t){var r=e.formats,n=e.replacements,a=e.text,o=e.start,i=e.end;if("string"!=typeof t)return ge.apply(void 0,arguments);var c=0;return a.split(t).map((function(e){var a=c,u={formats:r.slice(a,a+e.length),replacements:n.slice(a,a+e.length),text:e};return c+=t.length+e.length,void 0!==o&&void 0!==i&&(o>=a&&oa&&(u.start=0),i>=a&&ic&&(u.end=e.length)),u}))}function ge(e){var t=e.formats,r=e.replacements,n=e.text,a=e.start,o=e.end,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o,u={formats:t.slice(0,i),replacements:r.slice(0,i),text:n.slice(0,i)},s={formats:t.slice(c),replacements:r.slice(c),text:n.slice(c),start:0,end:0};return[ce(u,/\u2028+$/,""),ce(s,/^\u2028+/,"")]}function he(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Oe(e){for(var t=1;t1;)e=e.childNodes[t.shift()];return{node:e,offset:t[0]}}function Pe(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 _e(e,t){e.appendData(t)}function De(e){return e.lastChild}function Se(e){return e.parentNode}function Fe(e){return e.nodeType===e.TEXT_NODE}function Ce(e){return e.nodeValue}function Ae(e){return e.parentNode.removeChild(e)}function Ne(e){var t=e.value,r=e.multilineTag,n=e.prepareEditableTree,a=e.isEditableTree,o=void 0===a||a,i=e.placeholder,c=e.doc,u=void 0===c?document:c,s=[],l=[];n&&(t=xe(xe({},t),{},{formats:n(t)}));return{body:je({value:t,multilineTag:r,createEmpty:function(){return D(u,"")},append:Pe,getLastChild:De,getParent:Se,isText:Fe,getText:Ce,remove:Ae,appendText:_e,onStartIndex:function(e,t){s=Te(t,e,[t.nodeValue.length])},onEndIndex:function(e,t){l=Te(t,e,[t.nodeValue.length])},isEditableTree:o,placeholder:i}),selection:{startPath:s,endPath:l}}}function Ie(e){var t=e.value,r=e.current,n=e.multilineTag,a=e.prepareEditableTree,o=e.__unstableDomOnly,i=Ne({value:t,multilineTag:n,prepareEditableTree:a,placeholder:e.placeholder,doc:r.ownerDocument}),c=i.body,u=i.selection;!function e(t,r){var n,a=0;for(;n=t.firstChild;){var o=r.childNodes[a];if(o)if(o.isEqualNode(n))t.removeChild(n);else if(o.nodeName!==n.nodeName||o.nodeType===o.TEXT_NODE&&o.data!==n.data)r.replaceChild(n,o);else{var i=o.attributes,c=n.attributes;if(i)for(var u=i.length;u--;){var s=i[u].name;n.getAttribute(s)||o.removeAttribute(s)}if(c)for(var l=0;l0){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 ke=r(107);function Le(e){return Ge(je({value:e.value,multilineTag:e.multilineTag,preserveWhiteSpace:e.preserveWhiteSpace,createEmpty:Re,append:Me,getLastChild:We,getParent:Ve,isText:Ke,getText:Be,remove:ze,appendText:He}).children)}function Re(){return{}}function We(e){var t=e.children;return t&&t[t.length-1]}function Me(e,t){return"string"==typeof t&&(t={text:t}),t.parent=e,e.children=e.children||[],e.children.push(t),t}function He(e,t){e.text+=t}function Ve(e){return e.parent}function Ke(e){return"string"==typeof e.text}function Be(e){return e.text}function ze(e){var t=e.parent.children.indexOf(e);return-1!==t&&e.parent.children.splice(t,1),e}function Ue(e){var t=e.type,r=e.attributes,n=e.object,a=e.children,o="";for(var i in r)Object(ke.isValidAttributeName)(i)&&(o+=" ".concat(i,'="').concat(Object(ke.escapeAttribute)(r[i]),'"'));return n?"<".concat(t).concat(o,">"):"<".concat(t).concat(o,">").concat(Ge(a),"")}function Ge(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map((function(e){return void 0===e.text?Ue(e):Object(ke.escapeEditableHTML)(e.text)})).join("")}function qe(e,t){return B(e,t.type)?ne(e,t.type):P(e,t)}function Xe(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 Ye(e){var t=G(e);if(void 0===t)return!1;var r=e.replacements,n=G(e,t),a=r[t]||[],o=r[n]||[];return a.length<=o.length}function $e(e){return void 0!==e.replacements[G(e,e.start)]}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){for(var t=1;t=0;)if(r[o]===S){var i=n[o]||[];if(i.length===a.length+1)return o;if(i.length<=a.length)return}}(e,r),s=r;s=0;){if(r[o]===S)if((n[o]||[]).length===a.length-1)return o}}function tt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function rt(e){for(var t=1;t=a.length))return o;o=i}return o}(e,G(e,a)),s=o;s<=u;s++)if(t[s]===S){var l=i[s]||[];i[s]=c.concat(l.slice(c.length+1)),0===i[s].length&&delete i[s]}return rt(rt({},e),{},{replacements:i})}function at(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 ot(e){for(var t=1;td?e:t})))}return r?ot(ot({},e),{},{replacements:f}):e}var ct=r(12),ut=r(0),st=r(18),lt=r(36),ft=r.n(lt),pt=new Set(["a","audio","button","details","embed","iframe","input","label","select","textarea","video"]);function dt(e){var t=e.formatTypes,r=e.onChange,n=e.onFocus,a=e.value,o=e.allowedFormats,i=e.withoutInteractiveFormatting;return t.map((function(e){var t=e.name,c=e.edit,u=e.tagName;if(!c)return null;if(o&&-1===o.indexOf(t))return null;if(i&&pt.has(u))return null;var s=B(a,t),l=void 0!==s,f=z(a),p=void 0!==f&&f.type===t;return Object(ut.createElement)(c,{key:t,isActive:l,activeAttributes:l&&s.attributes||{},isObjectActive:p,activeObjectAttributes:p&&f.attributes||{},value:a,onChange:r,onFocus:n})}))}function bt(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 mt(e){for(var t=1;t0?e.getRangeAt(0):null;return N({element:t.current,range:r,multilineTag:F,multilineWrapperTags:"li"===F?["ul","ol"]:void 0,__unstableIsEditableTree:!0,preserveWhiteSpace:m})}function ve(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.domOnly;Ie({value:e,current:t.current,multilineTag:F,multilineWrapperTags:"li"===F?["ul","ol"]:void 0,prepareEditableTree:wt(ee),__unstableDomOnly:n,placeholder:d})}var ge=Object(ut.useRef)(i);function he(){ge.current!==de.current&&(B(),ge.current=de.current)}var Oe=Object(ut.useRef)(!1),ye=Object(ut.useRef)();function je(e){var t;if(!Oe.current)if(e&&(t=e.inputType),!t&&e&&e.nativeEvent&&(t=e.nativeEvent.inputType),!t||0!==t.indexOf("format")&&!Ot.has(t)){var r=me(),n=be.current,a=n.start,o=n.activeFormats,i=void 0===o?[]:o,c=function(e){var t=e.value,r=e.start,n=e.end,a=e.formats,o=t.formats[r-1]||[],i=t.formats[n]||[];for(t.activeFormats=a.map((function(e,t){if(o[t]){if(O(e,o[t]))return o[t]}else if(i[t]&&O(e,i[t]))return i[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:i});if(Te(c,{withoutHistory:!0}),ue().clearTimeout(ye.current),ye.current=ue().setTimeout(he,1e3),"insertText"===t){R&&k&&k(c,pe);var u=Q.reduce((function(e,t){var r=t.__unstableInputRule;return r&&(e=r(e)),e}),c);u!==c&&(he(),Te(ht(ht({},u),{},{activeFormats:i})),L())}}else ve(be.current)}var we=Object(ut.useRef)(!1);function xe(e){if(t.current&&t.current.ownerDocument.activeElement===t.current&&("selectionchange"===e.type||z)&&!b&&!Oe.current){var r=me(),n=r.start,a=r.end,o=r.text,i=be.current;if(o===i.text)if(n!==i.start||a!==i.end){var c=ht(ht({},i),{},{start:n,end:a,activeFormats:void 0}),u=K(c,jt);c.activeFormats=u,!M&&u.length?H():M&&!u.length&&V(),be.current=c,ve(c,{domOnly:!0}),w(n,a),$(u)}else 0===i.text.length&&0===n&&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()}}(ue());else je()}}function Te(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)),ve(e);var n=e.start,a=e.end,o=e.activeFormats,i=void 0===o?[]:o;Object.values(re).forEach((function(t){t(e.formats,e.text)})),de.current=pe(e),be.current=e,w(n,a),x(de.current),$(i),r||he()}function Ee(e){var r=e.target;if(r!==t.current&&!r.textContent){var n=r.parentNode,a=Array.from(n.childNodes).indexOf(r),o=ce().createRange(),i=ue().getSelection();o.setStart(r.parentNode,a),o.setEnd(r.parentNode,a+1),i.removeAllRanges(),i.addRange(o)}}var Pe=Object(ut.useRef)();function _e(){de.current=i,be.current=se(i),be.current.start=u,be.current.end=s,ve(be.current)}function De(){t.current.focus(),ve(be.current)}Object(ut.useEffect)((function(){we.current&&_e()}),[n,d]),Object(ut.useEffect)((function(){we.current&&i!==de.current&&_e()}),[i]),Object(ut.useEffect)((function(){we.current&&(!z||u===be.current.start&&s===be.current.end?be.current=ht(ht({},be.current),{},{start:u,end:s}):_e())}),[u,s,z]),Object(ut.useEffect)((function(){we.current&&_e()}),ae),Object(ut.useLayoutEffect)((function(){return ve(be.current,{domOnly:!0}),we.current=!0,function(){ce().removeEventListener("selectionchange",xe),ue().cancelAnimationFrame(Pe.current),ue().clearTimeout(ye.current)}}),[]);var Se={role:"textbox","aria-multiline":!0,"aria-label":d,ref:t,style:yt,className:"rich-text",onPaste:function(e){if(z){var t=e.clipboardData,r=t.items,n=t.files;r=Object(c.isNil)(r)?[]:r,n=Object(c.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)Te(oe(be.current,a));else{var i=Q.reduce((function(e,t){var r=t.__unstablePasteRule;return r&&e===be.current&&(e=r(be.current,{html:o,plainText:a})),e}),be.current);i===be.current?v&&(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(c.find)(n,{name:r,type:a,size:o})||n.push(t)}}})),v({value:le(be.current),onChange:Te,html:o,plainText:a,files:n,activeFormats:X})):Te(i)}}else e.preventDefault()},onInput:je,onCompositionStart:function(){Oe.current=!0,ce().removeEventListener("selectionchange",xe)},onCompositionEnd:function(){Oe.current=!1,je({inputType:"insertText"}),ce().addEventListener("selectionchange",xe)},onKeyDown:function(e){e.defaultPrevented||(function(e){var t=e.keyCode;if(t===st.DELETE||t===st.BACKSPACE||t===st.ESCAPE){if(I)return e.preventDefault(),void W();if(t!==st.ESCAPE){var r,n=me(),a=n.start,o=n.end,i=n.text,c=t===st.BACKSPACE;if(0===a&&0!==o&&o===i.length)return Te(ie(n)),void e.preventDefault();if(F)if(r=c&&0===n.start&&0===n.end&&Z(n)?fe(n,!c):fe(n,c))return Te(r),void e.preventDefault();!y||!Y(n)||X.length||c&&0!==a||!c&&o!==i.length||(y({isReverse:c,value:n}),e.preventDefault())}}}(e),function(e){e.keyCode===st.ENTER&&(e.preventDefault(),j&&j({value:le(me()),onChange:Te,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!==st.SPACE||"li"!==F)){var i=me();if(Y(i)){var c=i.text[i.start-1];c&&c!==S||(Te(Qe(i,{type:C})),e.preventDefault())}}}(e),function(e){var r=e.keyCode,n=e.shiftKey,a=e.altKey,o=e.metaKey,i=e.ctrlKey;if(!(n||a||o||i||r!==st.LEFT&&r!==st.RIGHT)){var c=be.current,u=c.text,s=c.formats,l=c.start,f=c.end,p=c.activeFormats,d=void 0===p?[]:p,b=Y(be.current),m="rtl"===ue().getComputedStyle(t.current).direction?st.RIGHT:st.LEFT,v=e.keyCode===m;if(b&&0===d.length){if(0===l&&v)return;if(f===u.length&&!v)return}if(b){e.preventDefault();var g=s[l-1]||jt,h=s[l]||jt,O=d.length,y=h;if(g.length>h.length&&(y=g),g.lengthg.length&&O--):g.length>h.length&&(!v&&d.length>h.length&&O--,v&&d.length=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(c[r]=e[r])}return c}},15:function(e,t,r){"use strict";function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r.d(t,"a",(function(){return n}))},17: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}))},2:function(e,t){!function(){e.exports=this.lodash}()},20:function(e,t,r){"use strict";function n(e,t){for(var r=0;r=0||(o[r]=e[r]);return o}r.d(t,"a",(function(){return n}))},45:function(e,t){!function(){e.exports=this.wp.apiFetch}()},482:function(e,t,r){"use strict";r.r(t);var n=r(8),o=r(5),c=r(14),u=r(0),i=r(4),s=r(35),a=r.n(s),f=r(21),l=r(20),p=r(22),b=r(23),d=r(17),O=r(2),y=r(1),h=r(45),j=r.n(h),v=r(31),m=r(3);function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Object(d.a)(e);if(t){var o=Object(d.a)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Object(b.a)(this,r)}}function g(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 P(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object(v.addQueryArgs)("/wp/v2/block-renderer/".concat(e),P(P({context:"edit"},null!==t?{attributes:t}:{}),r))}(r,s?null:o,void 0===i?{}:i),f=s?{attributes:o}:null,l=this.currentFetchRequest=j()({path:a,data:f,method:s?"POST":"GET"}).then((function(e){t.isStillMounted&&l===t.currentFetchRequest&&e&&t.setState({response:e.rendered})})).catch((function(e){t.isStillMounted&&l===t.currentFetchRequest&&t.setState({response:{error:!0,errorMsg:e.message}})}));return l}}},{key:"render",value:function(){var e=this.state.response,t=this.props,r=t.className,o=t.EmptyResponsePlaceholder,c=t.ErrorResponsePlaceholder,i=t.LoadingResponsePlaceholder;return""===e?Object(u.createElement)(o,Object(n.a)({response:e},this.props)):e?e.error?Object(u.createElement)(c,Object(n.a)({response:e},this.props)):Object(u.createElement)(u.RawHTML,{key:"html",className:r},e):Object(u.createElement)(i,Object(n.a)({response:e},this.props))}}]),r}(u.Component);S.defaultProps={EmptyResponsePlaceholder:function(e){var t=e.className;return Object(u.createElement)(m.Placeholder,{className:t},Object(y.__)("Block rendered as empty."))},ErrorResponsePlaceholder:function(e){var t=e.response,r=e.className,n=Object(y.sprintf)(Object(y.__)("Error loading block: %s"),t.errorMsg);return Object(u.createElement)(m.Placeholder,{className:r},n)},LoadingResponsePlaceholder:function(e){var t=e.className;return Object(u.createElement)(m.Placeholder,{className:t},Object(u.createElement)(m.Spinner,null))}};var E=S;function R(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 _={},x=Object(i.withSelect)((function(e){var t=e("core/editor");if(t){var r=t.getCurrentPostId();if(r)return{currentPostId:r}}return _}))((function(e){var t=e.urlQueryArgs,r=void 0===t?_:t,i=e.currentPostId,s=Object(c.a)(e,["urlQueryArgs","currentPostId"]),a=Object(u.useMemo)((function(){return i?function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(c[r]=e[r])}return c}},16:function(e,t,r){"use strict";function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r.d(t,"a",(function(){return n}))},19: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}))},2:function(e,t){!function(){e.exports=this.lodash}()},21:function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}r.d(t,"a",(function(){return n}))},22:function(e,t,r){"use strict";function n(e,t){for(var r=0;r=0||(o[r]=e[r]);return o}r.d(t,"a",(function(){return n}))},47:function(e,t){!function(){e.exports=this.wp.apiFetch}()},487:function(e,t,r){"use strict";r.r(t);var n=r(8),o=r(5),c=r(14),u=r(0),i=r(4),s=r(36),a=r.n(s),f=r(21),l=r(22),p=r(23),b=r(24),d=r(19),O=r(2),y=r(1),h=r(47),j=r.n(h),v=r(31),m=r(3);function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Object(d.a)(e);if(t){var o=Object(d.a)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Object(b.a)(this,r)}}function g(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 P(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object(v.addQueryArgs)("/wp/v2/block-renderer/".concat(e),P(P({context:"edit"},null!==t?{attributes:t}:{}),r))}(r,s?null:o,void 0===i?{}:i),f=s?{attributes:o}:null,l=this.currentFetchRequest=j()({path:a,data:f,method:s?"POST":"GET"}).then((function(e){t.isStillMounted&&l===t.currentFetchRequest&&e&&t.setState({response:e.rendered})})).catch((function(e){t.isStillMounted&&l===t.currentFetchRequest&&t.setState({response:{error:!0,errorMsg:e.message}})}));return l}}},{key:"render",value:function(){var e=this.state.response,t=this.props,r=t.className,o=t.EmptyResponsePlaceholder,c=t.ErrorResponsePlaceholder,i=t.LoadingResponsePlaceholder;return""===e?Object(u.createElement)(o,Object(n.a)({response:e},this.props)):e?e.error?Object(u.createElement)(c,Object(n.a)({response:e},this.props)):Object(u.createElement)(u.RawHTML,{key:"html",className:r},e):Object(u.createElement)(i,Object(n.a)({response:e},this.props))}}]),r}(u.Component);S.defaultProps={EmptyResponsePlaceholder:function(e){var t=e.className;return Object(u.createElement)(m.Placeholder,{className:t},Object(y.__)("Block rendered as empty."))},ErrorResponsePlaceholder:function(e){var t=e.response,r=e.className,n=Object(y.sprintf)(Object(y.__)("Error loading block: %s"),t.errorMsg);return Object(u.createElement)(m.Placeholder,{className:r},n)},LoadingResponsePlaceholder:function(e){var t=e.className;return Object(u.createElement)(m.Placeholder,{className:t},Object(u.createElement)(m.Spinner,null))}};var E=S;function R(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 _={},x=Object(i.withSelect)((function(e){var t=e("core/editor");if(t){var r=t.getCurrentPostId();if(r)return{currentPostId:r}}return _}))((function(e){var t=e.urlQueryArgs,r=void 0===t?_:t,i=e.currentPostId,s=Object(c.a)(e,["urlQueryArgs","currentPostId"]),a=Object(u.useMemo)((function(){return i?function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:0,r=s(t);r.lastIndex=n;var i=r.exec(e);if(i){if("["===i[1]&&"]"===i[7])return u(t,e,r.lastIndex);var o={index:i.index,content:i[0],shortcode:f(i)};return i[1]&&(o.content=o.content.slice(1),o.index++),i[7]&&(o.content=o.content.slice(0,-1)),o}}function o(t,e,n){return e.replace(s(t),(function(t,e,r,i,u,o,c,s){if("["===e&&"]"===s)return t;var a=n(f(arguments));return a?e+a+s:t}))}function c(t){return new l(t).string()}function s(t){return new RegExp("\\[(\\[?)("+t+")(?![\\w-])([^\\]\\/]*(?:\\/(?!\\])[^\\]\\/]*)*?)(?:(\\/)\\]|\\](?:([^\\[]*(?:\\[(?!\\/\\2\\])[^\\[]*)*)(\\[\\/\\2\\]))?)(\\]?)","g")}var a=n.n(i)()((function(t){var e,n={},r=[],i=/([\w-]+)\s*=\s*"([^"]*)"(?:\s|$)|([\w-]+)\s*=\s*'([^']*)'(?:\s|$)|([\w-]+)\s*=\s*([^\s'"]+)(?:\s|$)|"([^"]*)"(?:\s|$)|'([^']*)'(?:\s|$)|(\S+)(?:\s|$)/g;for(t=t.replace(/[\u00a0\u200b]/g," ");e=i.exec(t);)e[1]?n[e[1].toLowerCase()]=e[2]:e[3]?n[e[3].toLowerCase()]=e[4]:e[5]?n[e[5].toLowerCase()]=e[6]:e[7]?r.push(e[7]):e[8]?r.push(e[8]):e[9]&&r.push(e[9]);return{named:n,numeric:r}}));function f(t){var e;return e=t[4]?"self-closing":t[6]?"closed":"single",new l({tag:t[2],attrs:t[3],type:e,content:t[5]})}var l=Object(r.extend)((function(t){var e=this;Object(r.extend)(this,Object(r.pick)(t||{},"tag","attrs","type","content"));var n=this.attrs;this.attrs={named:{},numeric:[]},n&&(Object(r.isString)(n)?this.attrs=a(n):Object(r.isEqual)(Object.keys(n),["named","numeric"])?this.attrs=n:Object(r.forEach)(n,(function(t,n){e.set(n,t)})))}),{next:u,replace:o,string:c,regexp:s,attrs:a,fromMatch:f});Object(r.extend)(l.prototype,{get:function(t){return this.attrs[Object(r.isNumber)(t)?"numeric":"named"][t]},set:function(t,e){return this.attrs[Object(r.isNumber)(t)?"numeric":"named"][t]=e,this},string:function(){var t="["+this.tag;return Object(r.forEach)(this.attrs.numeric,(function(e){/\s/.test(e)?t+=' "'+e+'"':t+=" "+e})),Object(r.forEach)(this.attrs.named,(function(e,n){t+=" "+n+'="'+e+'"'})),"single"===this.type?t+"]":"self-closing"===this.type?t+" /]":(t+="]",this.content&&(t+=this.content),t+"[/"+this.tag+"]")}}),e.default=l},60:function(t,e,n){t.exports=function(t,e){var n,r,i=0;function u(){var u,o,c=n,s=arguments.length;t:for(;c;){if(c.args.length===arguments.length){for(o=0;o2&&void 0!==arguments[2]?arguments[2]:0,r=s(t);r.lastIndex=n;var i=r.exec(e);if(i){if("["===i[1]&&"]"===i[7])return u(t,e,r.lastIndex);var o={index:i.index,content:i[0],shortcode:f(i)};return i[1]&&(o.content=o.content.slice(1),o.index++),i[7]&&(o.content=o.content.slice(0,-1)),o}}function o(t,e,n){return e.replace(s(t),(function(t,e,r,i,u,o,c,s){if("["===e&&"]"===s)return t;var a=n(f(arguments));return a?e+a+s:t}))}function c(t){return new l(t).string()}function s(t){return new RegExp("\\[(\\[?)("+t+")(?![\\w-])([^\\]\\/]*(?:\\/(?!\\])[^\\]\\/]*)*?)(?:(\\/)\\]|\\](?:([^\\[]*(?:\\[(?!\\/\\2\\])[^\\[]*)*)(\\[\\/\\2\\]))?)(\\]?)","g")}var a=n.n(i)()((function(t){var e,n={},r=[],i=/([\w-]+)\s*=\s*"([^"]*)"(?:\s|$)|([\w-]+)\s*=\s*'([^']*)'(?:\s|$)|([\w-]+)\s*=\s*([^\s'"]+)(?:\s|$)|"([^"]*)"(?:\s|$)|'([^']*)'(?:\s|$)|(\S+)(?:\s|$)/g;for(t=t.replace(/[\u00a0\u200b]/g," ");e=i.exec(t);)e[1]?n[e[1].toLowerCase()]=e[2]:e[3]?n[e[3].toLowerCase()]=e[4]:e[5]?n[e[5].toLowerCase()]=e[6]:e[7]?r.push(e[7]):e[8]?r.push(e[8]):e[9]&&r.push(e[9]);return{named:n,numeric:r}}));function f(t){var e;return e=t[4]?"self-closing":t[6]?"closed":"single",new l({tag:t[2],attrs:t[3],type:e,content:t[5]})}var l=Object(r.extend)((function(t){var e=this;Object(r.extend)(this,Object(r.pick)(t||{},"tag","attrs","type","content"));var n=this.attrs;this.attrs={named:{},numeric:[]},n&&(Object(r.isString)(n)?this.attrs=a(n):Object(r.isEqual)(Object.keys(n),["named","numeric"])?this.attrs=n:Object(r.forEach)(n,(function(t,n){e.set(n,t)})))}),{next:u,replace:o,string:c,regexp:s,attrs:a,fromMatch:f});Object(r.extend)(l.prototype,{get:function(t){return this.attrs[Object(r.isNumber)(t)?"numeric":"named"][t]},set:function(t,e){return this.attrs[Object(r.isNumber)(t)?"numeric":"named"][t]=e,this},string:function(){var t="["+this.tag;return Object(r.forEach)(this.attrs.numeric,(function(e){/\s/.test(e)?t+=' "'+e+'"':t+=" "+e})),Object(r.forEach)(this.attrs.named,(function(e,n){t+=" "+n+'="'+e+'"'})),"single"===this.type?t+"]":"self-closing"===this.type?t+" /]":(t+="]",this.content&&(t+=this.content),t+"[/"+this.tag+"]")}}),e.default=l},60:function(t,e,n){t.exports=function(t,e){var n,r,i=0;function u(){var u,o,c=n,s=arguments.length;t:for(;c;){if(c.args.length===arguments.length){for(o=0;o0&&void 0!==arguments[0]?arguments[0]:"";Object(a.a)(this,e),this.value=t,this._currentValue,this._valueAsArray}return Object(i.a)(e,[{key:"entries",value:function(){var e;return(e=this._valueAsArray).entries.apply(e,arguments)}},{key:"forEach",value:function(){var e;return(e=this._valueAsArray).forEach.apply(e,arguments)}},{key:"keys",value:function(){var e;return(e=this._valueAsArray).keys.apply(e,arguments)}},{key:"values",value:function(){var e;return(e=this._valueAsArray).values.apply(e,arguments)}},{key:"toString",value:function(){return this.value}},{key:Symbol.iterator,value:u.a.mark((function e(){return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(this._valueAsArray,"t0",1);case 1:return e.abrupt("return",e.t0);case 2:case"end":return e.stop()}}),e,this)}))},{key:"item",value:function(e){return this._valueAsArray[e]}},{key:"contains",value:function(e){return-1!==this._valueAsArray.indexOf(e)}},{key:"add",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:"";Object(a.a)(this,e),this.value=t,this._currentValue,this._valueAsArray}return Object(i.a)(e,[{key:"entries",value:function(){var e;return(e=this._valueAsArray).entries.apply(e,arguments)}},{key:"forEach",value:function(){var e;return(e=this._valueAsArray).forEach.apply(e,arguments)}},{key:"keys",value:function(){var e;return(e=this._valueAsArray).keys.apply(e,arguments)}},{key:"values",value:function(){var e;return(e=this._valueAsArray).values.apply(e,arguments)}},{key:"toString",value:function(){return this.value}},{key:Symbol.iterator,value:u.a.mark((function e(){return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(this._valueAsArray,"t0",1);case 1:return e.abrupt("return",e.t0);case 2:case"end":return e.stop()}}),e,this)}))},{key:"item",value:function(e){return this._valueAsArray[e]}},{key:"contains",value:function(e){return-1!==this._valueAsArray.indexOf(e)}},{key:"add",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r1;){var t=e.pop(),r=t.obj[t.prop];if(o(r)){for(var n=[],i=0;i=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?o+=n.charAt(c):a<128?o+=i[a]:a<2048?o+=i[192|a>>6]+i[128|63&a]:a<55296||a>=57344?o+=i[224|a>>12]+i[128|a>>6&63]+i[128|63&a]:(c+=1,a=65536+((1023&a)<<10|1023&n.charCodeAt(c)),o+=i[240|a>>18]+i[128|a>>12&63]+i[128|a>>6&63]+i[128|63&a])}return o},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},merge:function e(t,r,i){if(!r)return t;if("object"!=typeof r){if(o(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(i&&(i.plainObjects||i.allowPrototypes)||!n.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var a=t;return o(t)&&!o(r)&&(a=c(t,i)),o(t)&&o(r)?(r.forEach((function(r,o){if(n.call(t,o)){var c=t[o];c&&"object"==typeof c&&r&&"object"==typeof r?t[o]=e(c,r,i):t.push(r)}else t[o]=r})),t):Object.keys(r).reduce((function(t,o){var c=r[o];return n.call(t,o)?t[o]=e(t[o],c,i):t[o]=c,t}),a)}}},271:function(e,t,r){"use strict";var n=String.prototype.replace,o=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return n.call(e,o,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},447:function(e,t,r){"use strict";var n=r(270),o=r(271),i=Object.prototype.hasOwnProperty,c={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Array.isArray,u=Array.prototype.push,l=function(e,t){u.apply(e,a(t)?t:[t])},s=Date.prototype.toISOString,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,formatter:o.formatters[o.default],indices:!1,serializeDate:function(e){return s.call(e)},skipNulls:!1,strictNullHandling:!1},p=function e(t,r,o,i,c,u,s,p,d,y,h,m,b){var g=t;if("function"==typeof s?g=s(r,g):g instanceof Date?g=y(g):"comma"===o&&a(g)&&(g=g.join(",")),null===g){if(i)return u&&!m?u(r,f.encoder,b):r;g=""}if("string"==typeof g||"number"==typeof g||"boolean"==typeof g||n.isBuffer(g))return u?[h(m?r:u(r,f.encoder,b))+"="+h(u(g,f.encoder,b))]:[h(r)+"="+h(String(g))];var v,O=[];if(void 0===g)return O;if(a(s))v=s;else{var j=Object.keys(g);v=p?j.sort(p):j}for(var w=0;w0?g+b:""}},448:function(e,t,r){"use strict";var n=r(270),o=Object.prototype.hasOwnProperty,i={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},c=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},a=function(e,t,r){if(e){var n=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,c=/(\[[^[\]]*])/.exec(n),a=c?n.slice(0,c.index):n,u=[];if(a){if(!r.plainObjects&&o.call(Object.prototype,a)&&!r.allowPrototypes)return;u.push(a)}for(var l=0;null!==(c=i.exec(n))&&l=0;--o){var i,c=e[o];if("[]"===c&&r.parseArrays)i=[].concat(n);else{i=r.plainObjects?Object.create(null):{};var a="["===c.charAt(0)&&"]"===c.charAt(c.length-1)?c.slice(1,-1):c,u=parseInt(a,10);r.parseArrays||""!==a?!isNaN(u)&&c!==a&&String(u)===a&&u>=0&&r.parseArrays&&u<=r.arrayLimit?(i=[])[u]=n:i[a]=n:i={0:n}}n=i}return n}(u,t,r)}};e.exports=function(e,t){var r=function(e){if(!e)return i;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new Error("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?i.charset:e.charset;return{allowDots:void 0===e.allowDots?i.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:i.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:i.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:i.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:i.comma,decoder:"function"==typeof e.decoder?e.decoder:i.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:i.delimiter,depth:"number"==typeof e.depth?e.depth:i.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:i.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:i.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:i.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){var r,a={},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,l=t.parameterLimit===1/0?void 0:t.parameterLimit,s=u.split(t.delimiter,l),f=-1,p=t.charset;if(t.charsetSentinel)for(r=0;r-1&&(y=y.split(",")),o.call(a,d)?a[d]=n.combine(a[d],y):a[d]=y}return a}(e,r):e,l=r.plainObjects?Object.create(null):{},s=Object.keys(u),f=0;f0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if(!t||!Object.keys(t).length)return e;var r=e,n=e.indexOf("?");return-1!==n&&(t=Object.assign(Object(b.parse)(e.substr(n+1)),t),r=r.substr(0,n)),r+"?"+Object(b.stringify)(t)}function v(e,t){var r=e.indexOf("?");return(-1!==r?Object(b.parse)(e.substr(r+1)):{})[t]}function O(e,t){return void 0!==v(e,t)}function j(e){for(var t=e.indexOf("?"),r=-1!==t?Object(b.parse)(e.substr(t+1)):{},n=-1!==t?e.substr(0,t):e,o=arguments.length,i=new Array(o>1?o-1:0),c=1;c1;){var t=e.pop(),r=t.obj[t.prop];if(o(r)){for(var n=[],i=0;i=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?o+=n.charAt(c):a<128?o+=i[a]:a<2048?o+=i[192|a>>6]+i[128|63&a]:a<55296||a>=57344?o+=i[224|a>>12]+i[128|a>>6&63]+i[128|63&a]:(c+=1,a=65536+((1023&a)<<10|1023&n.charCodeAt(c)),o+=i[240|a>>18]+i[128|a>>12&63]+i[128|a>>6&63]+i[128|63&a])}return o},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},merge:function e(t,r,i){if(!r)return t;if("object"!=typeof r){if(o(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(i&&(i.plainObjects||i.allowPrototypes)||!n.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var a=t;return o(t)&&!o(r)&&(a=c(t,i)),o(t)&&o(r)?(r.forEach((function(r,o){if(n.call(t,o)){var c=t[o];c&&"object"==typeof c&&r&&"object"==typeof r?t[o]=e(c,r,i):t.push(r)}else t[o]=r})),t):Object.keys(r).reduce((function(t,o){var c=r[o];return n.call(t,o)?t[o]=e(t[o],c,i):t[o]=c,t}),a)}}},272:function(e,t,r){"use strict";var n=String.prototype.replace,o=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return n.call(e,o,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},451:function(e,t,r){"use strict";var n=r(271),o=r(272),i=Object.prototype.hasOwnProperty,c={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Array.isArray,u=Array.prototype.push,l=function(e,t){u.apply(e,a(t)?t:[t])},s=Date.prototype.toISOString,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,formatter:o.formatters[o.default],indices:!1,serializeDate:function(e){return s.call(e)},skipNulls:!1,strictNullHandling:!1},p=function e(t,r,o,i,c,u,s,p,d,y,h,m,b){var g=t;if("function"==typeof s?g=s(r,g):g instanceof Date?g=y(g):"comma"===o&&a(g)&&(g=g.join(",")),null===g){if(i)return u&&!m?u(r,f.encoder,b):r;g=""}if("string"==typeof g||"number"==typeof g||"boolean"==typeof g||n.isBuffer(g))return u?[h(m?r:u(r,f.encoder,b))+"="+h(u(g,f.encoder,b))]:[h(r)+"="+h(String(g))];var v,O=[];if(void 0===g)return O;if(a(s))v=s;else{var j=Object.keys(g);v=p?j.sort(p):j}for(var w=0;w0?g+b:""}},452:function(e,t,r){"use strict";var n=r(271),o=Object.prototype.hasOwnProperty,i={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},c=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},a=function(e,t,r){if(e){var n=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,c=/(\[[^[\]]*])/.exec(n),a=c?n.slice(0,c.index):n,u=[];if(a){if(!r.plainObjects&&o.call(Object.prototype,a)&&!r.allowPrototypes)return;u.push(a)}for(var l=0;null!==(c=i.exec(n))&&l=0;--o){var i,c=e[o];if("[]"===c&&r.parseArrays)i=[].concat(n);else{i=r.plainObjects?Object.create(null):{};var a="["===c.charAt(0)&&"]"===c.charAt(c.length-1)?c.slice(1,-1):c,u=parseInt(a,10);r.parseArrays||""!==a?!isNaN(u)&&c!==a&&String(u)===a&&u>=0&&r.parseArrays&&u<=r.arrayLimit?(i=[])[u]=n:i[a]=n:i={0:n}}n=i}return n}(u,t,r)}};e.exports=function(e,t){var r=function(e){if(!e)return i;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new Error("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?i.charset:e.charset;return{allowDots:void 0===e.allowDots?i.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:i.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:i.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:i.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:i.comma,decoder:"function"==typeof e.decoder?e.decoder:i.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:i.delimiter,depth:"number"==typeof e.depth?e.depth:i.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:i.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:i.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:i.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){var r,a={},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,l=t.parameterLimit===1/0?void 0:t.parameterLimit,s=u.split(t.delimiter,l),f=-1,p=t.charset;if(t.charsetSentinel)for(r=0;r-1&&(y=y.split(",")),o.call(a,d)?a[d]=n.combine(a[d],y):a[d]=y}return a}(e,r):e,l=r.plainObjects?Object.create(null):{},s=Object.keys(u),f=0;f0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if(!t||!Object.keys(t).length)return e;var r=e,n=e.indexOf("?");return-1!==n&&(t=Object.assign(Object(b.parse)(e.substr(n+1)),t),r=r.substr(0,n)),r+"?"+Object(b.stringify)(t)}function v(e,t){var r=e.indexOf("?");return(-1!==r?Object(b.parse)(e.substr(r+1)):{})[t]}function O(e,t){return void 0!==v(e,t)}function j(e){for(var t=e.indexOf("?"),r=-1!==t?Object(b.parse)(e.substr(t+1)):{},n=-1!==t?e.substr(0,t):e,o=arguments.length,i=new Array(o>1?o-1:0),c=1;ct.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"SET_IS_MATCHING":return e.values}return t};function u(t){return{type:"SET_IS_MATCHING",values:t}}function a(t,e){return-1===e.indexOf(" ")&&(e=">= "+e),!!t[e]}Object(i.registerStore)("core/viewport",{reducer:c,actions:r,selectors:o});var f=n(2),s=function(t,e){var n=Object(f.debounce)((function(){var t=Object(f.mapValues)(r,(function(t){return t.matches}));Object(i.dispatch)("core/viewport").setIsMatching(t)}),{leading:!0}),r=Object(f.reduce)(t,(function(t,r,o){return Object(f.forEach)(e,(function(e,i){var c=window.matchMedia("(".concat(e,": ").concat(r,"px)"));c.addListener(n);var u=[i,o].join(" ");t[u]=c})),t}),{});window.addEventListener("orientationchange",n),n(),n.flush()},l=n(10),p=n(8),d=n(12),b=n(0),h=function(t){return Object(l.createHigherOrderComponent)((function(e){return Object(l.pure)((function(n){var r=Object(f.mapValues)(t,(function(t){var e=t.split(" "),n=Object(d.a)(e,2),r=n[0],o=n[1];return void 0===o&&(o=r,r=">="),Object(l.useViewportMatch)(o,r)}));return Object(b.createElement)(e,Object(p.a)({},n,r))}))}),"withViewportMatch")},v=function(t){return Object(l.createHigherOrderComponent)(Object(l.compose)([h({isViewportMatch:t}),Object(l.ifCondition)((function(t){return t.isViewportMatch}))]),"ifViewportMatches")};s({huge:1440,wide:1280,large:960,medium:782,small:600,mobile:480},{"<":"max-width",">=":"min-width"})},8:function(t,e,n){"use strict";function r(){return(r=Object.assign||function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"SET_IS_MATCHING":return e.values}return t};function u(t){return{type:"SET_IS_MATCHING",values:t}}function a(t,e){return-1===e.indexOf(" ")&&(e=">= "+e),!!t[e]}Object(i.registerStore)("core/viewport",{reducer:c,actions:r,selectors:o});var f=n(2),s=function(t,e){var n=Object(f.debounce)((function(){var t=Object(f.mapValues)(r,(function(t){return t.matches}));Object(i.dispatch)("core/viewport").setIsMatching(t)}),{leading:!0}),r=Object(f.reduce)(t,(function(t,r,o){return Object(f.forEach)(e,(function(e,i){var c=window.matchMedia("(".concat(e,": ").concat(r,"px)"));c.addListener(n);var u=[i,o].join(" ");t[u]=c})),t}),{});window.addEventListener("orientationchange",n),n(),n.flush()},l=n(10),p=n(8),d=n(12),b=n(0),h=function(t){return Object(l.createHigherOrderComponent)((function(e){return Object(l.pure)((function(n){var r=Object(f.mapValues)(t,(function(t){var e=t.split(" "),n=Object(d.a)(e,2),r=n[0],o=n[1];return void 0===o&&(o=r,r=">="),Object(l.useViewportMatch)(o,r)}));return Object(b.createElement)(e,Object(p.a)({},n,r))}))}),"withViewportMatch")},v=function(t){return Object(l.createHigherOrderComponent)(Object(l.compose)([h({isViewportMatch:t}),Object(l.ifCondition)((function(t){return t.isViewportMatch}))]),"ifViewportMatches")};s({huge:1440,wide:1280,large:960,medium:782,small:600,mobile:480},{"<":"max-width",">=":"min-width"})},8:function(t,e,n){"use strict";function r(){return(r=Object.assign||function(t){for(var e=1;e1)for(var n=1;n1)for(var n=1;n} WPWordCountL10n */ + +/** + * @typedef WPWordCountSettingsFields + * @property {RegExp} HTMLRegExp Regular expression that matches HTML tags + * @property {RegExp} HTMLcommentRegExp Regular expression that matches HTML comments + * @property {RegExp} spaceRegExp Regular expression that matches spaces in HTML + * @property {RegExp} HTMLEntityRegExp Regular expression that matches HTML entities + * @property {RegExp} connectorRegExp Regular expression that matches word connectors, like em-dash + * @property {RegExp} removeRegExp Regular expression that matches various characters to be removed when counting + * @property {RegExp} astralRegExp Regular expression that matches astral UTF-16 code points + * @property {RegExp} wordsRegExp Regular expression that matches words + * @property {RegExp} characters_excluding_spacesRegExp Regular expression that matches characters excluding spaces + * @property {RegExp} characters_including_spacesRegExp Regular expression that matches characters including spaces + * @property {RegExp} shortcodesRegExp Regular expression that matches WordPress shortcodes + * @property {string[]} shortcodes List of all shortcodes + * @property {WPWordCountStrategy} type Describes what and how are we counting + * @property {WPWordCountL10n} l10n Object with human translations + */ + +/** + * Lower-level settings for word counting that can be overridden. + * + * @typedef {Partial} WPWordCountUserSettings + */ +// Disable reason: JSDoc linter doesn't seem to parse the union (`&`) correctly: https://github.com/jsdoc/jsdoc/issues/1285 + +/* eslint-disable jsdoc/valid-types */ + +/** + * Word counting settings that include non-optional values we set if missing + * + * @typedef {WPWordCountUserSettings & typeof defaultSettings} WPWordCountDefaultSettings + */ + +/* eslint-enable jsdoc/valid-types */ var defaultSettings = { HTMLRegExp: /<\/?[a-z][^>]*?>/gi, HTMLcommentRegExp: //g, @@ -174,108 +212,86 @@ var defaultSettings = { /** * Replaces items matched in the regex with new line * - * @param {Object} settings The main settings object containing regular expressions - * @param {string} text The string being counted. + * @param {import('./index').WPWordCountSettings} settings The main settings object containing regular expressions + * @param {string} text The string being counted. * * @return {string} The manipulated text. */ function stripTags(settings, text) { - if (settings.HTMLRegExp) { - return text.replace(settings.HTMLRegExp, '\n'); - } + return text.replace(settings.HTMLRegExp, '\n'); } // CONCATENATED MODULE: ./node_modules/@wordpress/wordcount/build-module/transposeAstralsToCountableChar.js /** * Replaces items matched in the regex with character. * - * @param {Object} settings The main settings object containing regular expressions - * @param {string} text The string being counted. + * @param {import('./index').WPWordCountSettings} settings The main settings object containing regular expressions + * @param {string} text The string being counted. * * @return {string} The manipulated text. */ function transposeAstralsToCountableChar(settings, text) { - if (settings.astralRegExp) { - return text.replace(settings.astralRegExp, 'a'); - } - - return text; + return text.replace(settings.astralRegExp, 'a'); } // CONCATENATED MODULE: ./node_modules/@wordpress/wordcount/build-module/stripHTMLEntities.js /** * Removes items matched in the regex. * - * @param {Object} settings The main settings object containing regular expressions - * @param {string} text The string being counted. + * @param {import('./index').WPWordCountSettings} settings The main settings object containing regular expressions + * @param {string} text The string being counted. * * @return {string} The manipulated text. */ function stripHTMLEntities(settings, text) { - if (settings.HTMLEntityRegExp) { - return text.replace(settings.HTMLEntityRegExp, ''); - } - - return text; + return text.replace(settings.HTMLEntityRegExp, ''); } // CONCATENATED MODULE: ./node_modules/@wordpress/wordcount/build-module/stripConnectors.js /** * Replaces items matched in the regex with spaces. * - * @param {Object} settings The main settings object containing regular expressions - * @param {string} text The string being counted. + * @param {import('./index').WPWordCountSettings} settings The main settings object containing regular expressions + * @param {string} text The string being counted. * * @return {string} The manipulated text. */ function stripConnectors(settings, text) { - if (settings.connectorRegExp) { - return text.replace(settings.connectorRegExp, ' '); - } - - return text; + return text.replace(settings.connectorRegExp, ' '); } // CONCATENATED MODULE: ./node_modules/@wordpress/wordcount/build-module/stripRemovables.js /** * Removes items matched in the regex. * - * @param {Object} settings The main settings object containing regular expressions - * @param {string} text The string being counted. + * @param {import('./index').WPWordCountSettings} settings The main settings object containing regular expressions + * @param {string} text The string being counted. * * @return {string} The manipulated text. */ function stripRemovables(settings, text) { - if (settings.removeRegExp) { - return text.replace(settings.removeRegExp, ''); - } - - return text; + return text.replace(settings.removeRegExp, ''); } // CONCATENATED MODULE: ./node_modules/@wordpress/wordcount/build-module/stripHTMLComments.js /** * Removes items matched in the regex. * - * @param {Object} settings The main settings object containing regular expressions - * @param {string} text The string being counted. + * @param {import('./index').WPWordCountSettings} settings The main settings object containing regular expressions + * @param {string} text The string being counted. * * @return {string} The manipulated text. */ function stripHTMLComments(settings, text) { - if (settings.HTMLcommentRegExp) { - return text.replace(settings.HTMLcommentRegExp, ''); - } - - return text; + return text.replace(settings.HTMLcommentRegExp, ''); } // CONCATENATED MODULE: ./node_modules/@wordpress/wordcount/build-module/stripShortcodes.js /** * Replaces items matched in the regex with a new line. * - * @param {Object} settings The main settings object containing regular expressions - * @param {string} text The string being counted. + * @param {import('./index').WPWordCountSettings} settings The main settings object containing regular expressions + * @param {string} text The string being counted. * * @return {string} The manipulated text. */ @@ -291,32 +307,26 @@ function stripShortcodes(settings, text) { /** * Replaces items matched in the regex with spaces. * - * @param {Object} settings The main settings object containing regular expressions - * @param {string} text The string being counted. + * @param {import('./index').WPWordCountSettings} settings The main settings object containing regular expressions + * @param {string} text The string being counted. * * @return {string} The manipulated text. */ function stripSpaces(settings, text) { - if (settings.spaceRegExp) { - return text.replace(settings.spaceRegExp, ' '); - } + return text.replace(settings.spaceRegExp, ' '); } // CONCATENATED MODULE: ./node_modules/@wordpress/wordcount/build-module/transposeHTMLEntitiesToCountableChars.js /** * Replaces items matched in the regex with a single character. * - * @param {Object} settings The main settings object containing regular expressions - * @param {string} text The string being counted. + * @param {import('./index').WPWordCountSettings} settings The main settings object containing regular expressions + * @param {string} text The string being counted. * * @return {string} The manipulated text. */ function transposeHTMLEntitiesToCountableChars(settings, text) { - if (settings.HTMLEntityRegExp) { - return text.replace(settings.HTMLEntityRegExp, 'a'); - } - - return text; + return text.replace(settings.HTMLEntityRegExp, 'a'); } // CONCATENATED MODULE: ./node_modules/@wordpress/wordcount/build-module/index.js @@ -338,24 +348,37 @@ function transposeHTMLEntitiesToCountableChars(settings, text) { +/** + * @typedef {import('./defaultSettings').WPWordCountDefaultSettings} WPWordCountSettings + * @typedef {import('./defaultSettings').WPWordCountUserSettings} WPWordCountUserSettings + */ + +/** + * Possible ways of counting. + * + * @typedef {'words'|'characters_excluding_spaces'|'characters_including_spaces'} WPWordCountStrategy + */ + /** * Private function to manage the settings. * - * @param {string} type The type of count to be done. - * @param {Object} userSettings Custom settings for the count. + * @param {WPWordCountStrategy} type The type of count to be done. + * @param {WPWordCountUserSettings} userSettings Custom settings for the count. * - * @return {void|Object|*} The combined settings object to be used. + * @return {WPWordCountSettings} The combined settings object to be used. */ function loadSettings(type, userSettings) { - var settings = Object(external_this_lodash_["extend"])(defaultSettings, userSettings); - settings.shortcodes = settings.l10n.shortcodes || {}; + var _settings$l10n$shortc, _settings$l10n; + + var settings = Object(external_this_lodash_["extend"])({}, defaultSettings, userSettings); + settings.shortcodes = (_settings$l10n$shortc = (_settings$l10n = settings.l10n) === null || _settings$l10n === void 0 ? void 0 : _settings$l10n.shortcodes) !== null && _settings$l10n$shortc !== void 0 ? _settings$l10n$shortc : []; if (settings.shortcodes && settings.shortcodes.length) { settings.shortcodesRegExp = new RegExp('\\[\\/?(?:' + settings.shortcodes.join('|') + ')[^\\]]*?\\]', 'g'); } - settings.type = type || settings.l10n.type; + settings.type = type; if (settings.type !== 'characters_excluding_spaces' && settings.type !== 'characters_including_spaces') { settings.type = 'words'; @@ -364,43 +387,47 @@ function loadSettings(type, userSettings) { return settings; } /** - * Match the regex for the type 'words' + * Count the words in text * - * @param {string} text The text being processed - * @param {string} regex The regular expression pattern being matched - * @param {Object} settings Settings object containing regular expressions for each strip function + * @param {string} text The text being processed + * @param {RegExp} regex The regular expression pattern being matched + * @param {WPWordCountSettings} settings Settings object containing regular expressions for each strip function * - * @return {Array|{index: number, input: string}} The matched string. + * @return {number} Count of words. */ -function matchWords(text, regex, settings) { - text = Object(external_this_lodash_["flow"])(stripTags.bind(this, settings), stripHTMLComments.bind(this, settings), stripShortcodes.bind(this, settings), stripSpaces.bind(this, settings), stripHTMLEntities.bind(this, settings), stripConnectors.bind(this, settings), stripRemovables.bind(this, settings))(text); +function countWords(text, regex, settings) { + var _text$match$length, _text$match; + + text = Object(external_this_lodash_["flow"])(stripTags.bind(null, settings), stripHTMLComments.bind(null, settings), stripShortcodes.bind(null, settings), stripSpaces.bind(null, settings), stripHTMLEntities.bind(null, settings), stripConnectors.bind(null, settings), stripRemovables.bind(null, settings))(text); text = text + '\n'; - return text.match(regex); + return (_text$match$length = (_text$match = text.match(regex)) === null || _text$match === void 0 ? void 0 : _text$match.length) !== null && _text$match$length !== void 0 ? _text$match$length : 0; } /** - * Match the regex for either 'characters_excluding_spaces' or 'characters_including_spaces' + * Count the characters in text * - * @param {string} text The text being processed - * @param {string} regex The regular expression pattern being matched - * @param {Object} settings Settings object containing regular expressions for each strip function + * @param {string} text The text being processed + * @param {RegExp} regex The regular expression pattern being matched + * @param {WPWordCountSettings} settings Settings object containing regular expressions for each strip function * - * @return {Array|{index: number, input: string}} The matched string. + * @return {number} Count of characters. */ -function matchCharacters(text, regex, settings) { - text = Object(external_this_lodash_["flow"])(stripTags.bind(this, settings), stripHTMLComments.bind(this, settings), stripShortcodes.bind(this, settings), stripSpaces.bind(this, settings), transposeAstralsToCountableChar.bind(this, settings), transposeHTMLEntitiesToCountableChars.bind(this, settings))(text); +function countCharacters(text, regex, settings) { + var _text$match$length2, _text$match2; + + text = Object(external_this_lodash_["flow"])(stripTags.bind(null, settings), stripHTMLComments.bind(null, settings), stripShortcodes.bind(null, settings), transposeAstralsToCountableChar.bind(null, settings), stripSpaces.bind(null, settings), transposeHTMLEntitiesToCountableChars.bind(null, settings))(text); text = text + '\n'; - return text.match(regex); + return (_text$match$length2 = (_text$match2 = text.match(regex)) === null || _text$match2 === void 0 ? void 0 : _text$match2.length) !== null && _text$match$length2 !== void 0 ? _text$match$length2 : 0; } /** * Count some words. * - * @param {string} text The text being processed - * @param {string} type The type of count. Accepts ;words', 'characters_excluding_spaces', or 'characters_including_spaces'. - * @param {Object} userSettings Custom settings object. + * @param {string} text The text being processed + * @param {WPWordCountStrategy} type The type of count. Accepts 'words', 'characters_excluding_spaces', or 'characters_including_spaces'. + * @param {WPWordCountUserSettings} userSettings Custom settings object. * * @example * ```js @@ -413,15 +440,24 @@ function matchCharacters(text, regex, settings) { function count(text, type, userSettings) { - if ('' === text) { - return 0; - } + var settings = loadSettings(type, userSettings); + var matchRegExp; - if (text) { - var settings = loadSettings(type, userSettings); - var matchRegExp = settings[type + 'RegExp']; - var results = 'words' === settings.type ? matchWords(text, matchRegExp, settings) : matchCharacters(text, matchRegExp, settings); - return results ? results.length : 0; + switch (settings.type) { + case 'words': + matchRegExp = settings.wordsRegExp; + return countWords(text, matchRegExp, settings); + + case 'characters_including_spaces': + matchRegExp = settings.characters_including_spacesRegExp; + return countCharacters(text, matchRegExp, settings); + + case 'characters_excluding_spaces': + matchRegExp = settings.characters_excluding_spacesRegExp; + return countCharacters(text, matchRegExp, settings); + + default: + return 0; } } diff --git a/wp-includes/js/dist/wordcount.min.js b/wp-includes/js/dist/wordcount.min.js index 935d88661f..88f19c42dc 100644 --- a/wp-includes/js/dist/wordcount.min.js +++ b/wp-includes/js/dist/wordcount.min.js @@ -1,2 +1,2 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.wordcount=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=464)}({2:function(e,t){!function(){e.exports=this.lodash}()},464:function(e,t,n){"use strict";n.r(t),n.d(t,"count",(function(){return l}));var r=n(2),o={HTMLRegExp:/<\/?[a-z][^>]*?>/gi,HTMLcommentRegExp://g,spaceRegExp:/ | /gi,HTMLEntityRegExp:/&\S+?;/g,connectorRegExp:/--|\u2014/g,removeRegExp:new RegExp(["[","!-@[-`{-~","€-¿×÷"," -⯿","⸀-⹿","]"].join(""),"g"),astralRegExp:/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,wordsRegExp:/\S\s+/g,characters_excluding_spacesRegExp:/\S/g,characters_including_spacesRegExp:/[^\f\n\r\t\v\u00AD\u2028\u2029]/g,l10n:{type:"words"}};function i(e,t){if(e.HTMLRegExp)return t.replace(e.HTMLRegExp,"\n")}function c(e,t){return e.astralRegExp?t.replace(e.astralRegExp,"a"):t}function u(e,t){return e.HTMLEntityRegExp?t.replace(e.HTMLEntityRegExp,""):t}function p(e,t){return e.connectorRegExp?t.replace(e.connectorRegExp," "):t}function s(e,t){return e.removeRegExp?t.replace(e.removeRegExp,""):t}function a(e,t){return e.HTMLcommentRegExp?t.replace(e.HTMLcommentRegExp,""):t}function g(e,t){return e.shortcodesRegExp?t.replace(e.shortcodesRegExp,"\n"):t}function d(e,t){if(e.spaceRegExp)return t.replace(e.spaceRegExp," ")}function f(e,t){return e.HTMLEntityRegExp?t.replace(e.HTMLEntityRegExp,"a"):t}function l(e,t,n){if(""===e)return 0;if(e){var l=function(e,t){var n=Object(r.extend)(o,t);return n.shortcodes=n.l10n.shortcodes||{},n.shortcodes&&n.shortcodes.length&&(n.shortcodesRegExp=new RegExp("\\[\\/?(?:"+n.shortcodes.join("|")+")[^\\]]*?\\]","g")),n.type=e||n.l10n.type,"characters_excluding_spaces"!==n.type&&"characters_including_spaces"!==n.type&&(n.type="words"),n}(t,n),x=l[t+"RegExp"],E="words"===l.type?function(e,t,n){return e=Object(r.flow)(i.bind(this,n),a.bind(this,n),g.bind(this,n),d.bind(this,n),u.bind(this,n),p.bind(this,n),s.bind(this,n))(e),(e+="\n").match(t)}(e,x,l):function(e,t,n){return e=Object(r.flow)(i.bind(this,n),a.bind(this,n),g.bind(this,n),d.bind(this,n),c.bind(this,n),f.bind(this,n))(e),(e+="\n").match(t)}(e,x,l);return E?E.length:0}}}}); \ No newline at end of file +this.wp=this.wp||{},this.wp.wordcount=function(e){var n={};function t(r){if(n[r])return n[r].exports;var u=n[r]={i:r,l:!1,exports:{}};return e[r].call(u.exports,u,u.exports,t),u.l=!0,u.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var u in e)t.d(r,u,function(n){return e[n]}.bind(null,u));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=469)}({2:function(e,n){!function(){e.exports=this.lodash}()},469:function(e,n,t){"use strict";t.r(n),t.d(n,"count",(function(){return x}));var r=t(2),u={HTMLRegExp:/<\/?[a-z][^>]*?>/gi,HTMLcommentRegExp://g,spaceRegExp:/ | /gi,HTMLEntityRegExp:/&\S+?;/g,connectorRegExp:/--|\u2014/g,removeRegExp:new RegExp(["[","!-@[-`{-~","€-¿×÷"," -⯿","⸀-⹿","]"].join(""),"g"),astralRegExp:/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,wordsRegExp:/\S\s+/g,characters_excluding_spacesRegExp:/\S/g,characters_including_spacesRegExp:/[^\f\n\r\t\v\u00AD\u2028\u2029]/g,l10n:{type:"words"}};function c(e,n){return n.replace(e.HTMLRegExp,"\n")}function o(e,n){return n.replace(e.astralRegExp,"a")}function l(e,n){return n.replace(e.HTMLEntityRegExp,"")}function i(e,n){return n.replace(e.connectorRegExp," ")}function s(e,n){return n.replace(e.removeRegExp,"")}function a(e,n){return n.replace(e.HTMLcommentRegExp,"")}function p(e,n){return e.shortcodesRegExp?n.replace(e.shortcodesRegExp,"\n"):n}function d(e,n){return n.replace(e.spaceRegExp," ")}function g(e,n){return n.replace(e.HTMLEntityRegExp,"a")}function f(e,n,t){var u,l;return e=Object(r.flow)(c.bind(null,t),a.bind(null,t),p.bind(null,t),o.bind(null,t),d.bind(null,t),g.bind(null,t))(e),null!==(u=null===(l=(e+="\n").match(n))||void 0===l?void 0:l.length)&&void 0!==u?u:0}function x(e,n,t){var o=function(e,n){var t,c,o=Object(r.extend)({},u,n);return o.shortcodes=null!==(t=null===(c=o.l10n)||void 0===c?void 0:c.shortcodes)&&void 0!==t?t:[],o.shortcodes&&o.shortcodes.length&&(o.shortcodesRegExp=new RegExp("\\[\\/?(?:"+o.shortcodes.join("|")+")[^\\]]*?\\]","g")),o.type=e,"characters_excluding_spaces"!==o.type&&"characters_including_spaces"!==o.type&&(o.type="words"),o}(n,t);switch(o.type){case"words":return function(e,n,t){var u,o;return e=Object(r.flow)(c.bind(null,t),a.bind(null,t),p.bind(null,t),d.bind(null,t),l.bind(null,t),i.bind(null,t),s.bind(null,t))(e),null!==(u=null===(o=(e+="\n").match(n))||void 0===o?void 0:o.length)&&void 0!==u?u:0}(e,o.wordsRegExp,o);case"characters_including_spaces":return f(e,o.characters_including_spacesRegExp,o);case"characters_excluding_spaces":return f(e,o.characters_excluding_spacesRegExp,o);default:return 0}}}}); \ No newline at end of file diff --git a/wp-includes/version.php b/wp-includes/version.php index 0c153098d7..6ffa9d31f1 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.6-alpha-49225'; +$wp_version = '5.6-alpha-49226'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. diff --git a/wp-settings.php b/wp-settings.php index c636ffb937..71868ecc89 100644 --- a/wp-settings.php +++ b/wp-settings.php @@ -292,7 +292,12 @@ require ABSPATH . WPINC . '/class-wp-block-parser.php'; require ABSPATH . WPINC . '/blocks.php'; require ABSPATH . WPINC . '/blocks/index.php'; require ABSPATH . WPINC . '/block-patterns.php'; -require ABSPATH . WPINC . '/block-supports/index.php'; +require ABSPATH . WPINC . '/class-wp-block-supports.php'; +require ABSPATH . WPINC . '/block-supports/align.php'; +require ABSPATH . WPINC . '/block-supports/colors.php'; +require ABSPATH . WPINC . '/block-supports/custom-classname.php'; +require ABSPATH . WPINC . '/block-supports/generated-classname.php'; +require ABSPATH . WPINC . '/block-supports/typography.php'; $GLOBALS['wp_embed'] = new WP_Embed();