diff --git a/wp-content/themes/twentyseventeen/inc/template-tags.php b/wp-content/themes/twentyseventeen/inc/template-tags.php index 437ebd4241..cd0afb7e3e 100644 --- a/wp-content/themes/twentyseventeen/inc/template-tags.php +++ b/wp-content/themes/twentyseventeen/inc/template-tags.php @@ -140,7 +140,7 @@ endif; * @param int $id Front page section to display. */ function twentyseventeen_front_page_section( $partial = null, $id = 0 ) { - if ( is_a( $partial, 'WP_Customize_Partial' ) ) { + if ( $partial instanceof WP_Customize_Partial ) { // Find out the ID and set it up during a selective refresh. global $twentyseventeencounter; diff --git a/wp-includes/admin-bar.php b/wp-includes/admin-bar.php index a35051ac8b..d1d438d9e5 100644 --- a/wp-includes/admin-bar.php +++ b/wp-includes/admin-bar.php @@ -897,7 +897,7 @@ function wp_admin_bar_edit_menu( $wp_admin_bar ) { ) ); } - } elseif ( is_a( $current_object, 'WP_User' ) && current_user_can( 'edit_user', $current_object->ID ) ) { + } elseif ( $current_object instanceof WP_User && current_user_can( 'edit_user', $current_object->ID ) ) { $edit_user_link = get_edit_user_link( $current_object->ID ); if ( $edit_user_link ) { $wp_admin_bar->add_node( diff --git a/wp-includes/assets/script-loader-packages.min.php b/wp-includes/assets/script-loader-packages.min.php index 1eda2d71a0..f21fc89227 100644 --- a/wp-includes/assets/script-loader-packages.min.php +++ b/wp-includes/assets/script-loader-packages.min.php @@ -1 +1 @@ - array('dependencies' => array('wp-dom-ready', 'wp-i18n', 'wp-polyfill'), 'version' => '7032343a947cfccf5608'), 'annotations.min.js' => array('dependencies' => array('wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => 'e73019267b04a21482c5'), 'api-fetch.min.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '0fa4dabf8bf2c7adf21a'), 'autop.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'dacd785d109317df2707'), 'blob.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '10a1c5c0acdef3d15657'), 'block-directory.min.js' => array('dependencies' => array('wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => 'cf69143cf8a7a08f7e0f'), 'block-editor.min.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', '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-preferences', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-shortcode', 'wp-style-engine', 'wp-token-list', 'wp-url', 'wp-warning', 'wp-wordcount'), 'version' => 'ecf0dc5e749679c4f014'), 'block-library.min.js' => array('dependencies' => array('lodash', 'wp-a11y', '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-dom', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport', 'wp-wordcount'), 'version' => '584e28fe4d9f5b7aeedb'), 'block-serialization-default-parser.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '30ffd7e7e199f10b2a6d'), 'blocks.min.js' => array('dependencies' => array('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-private-apis', 'wp-shortcode'), 'version' => 'f281fc31f6f0f428f5d3'), 'commands.min.js' => array('dependencies' => array('react', 'react-dom', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-polyfill', 'wp-private-apis'), 'version' => '6aaa327476959e33b206'), 'components.min.js' => array('dependencies' => array('react', 'react-dom', 'wp-a11y', 'wp-compose', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-warning'), 'version' => '4f96a7e7f96a9828a710'), 'compose.min.js' => array('dependencies' => array('react', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-priority-queue'), 'version' => '9424edf50a26435105c0'), 'core-commands.min.js' => array('dependencies' => array('wp-commands', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-router', 'wp-url'), 'version' => '90e1ba010f5600297bd1'), 'core-data.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-private-apis', 'wp-url'), 'version' => '349cb7c15111ed8b93b6'), 'customize-widgets.min.js' => array('dependencies' => array('wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-widgets'), 'version' => '6d822aca98e0c32c34fb'), 'data.min.js' => array('dependencies' => array('wp-compose', 'wp-deprecated', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-priority-queue', 'wp-private-apis', 'wp-redux-routine'), 'version' => 'ff7eb3945f963be850ff'), 'data-controls.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-data', 'wp-deprecated', 'wp-polyfill'), 'version' => 'fe4ccc8a1782ea8e2cb1'), 'date.min.js' => array('dependencies' => array('moment', 'wp-deprecated', 'wp-polyfill'), 'version' => '505e060585ac0f4b6cb6'), 'deprecated.min.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '73ad3591e7bc95f4777a'), 'dom.min.js' => array('dependencies' => array('wp-deprecated', 'wp-polyfill'), 'version' => '845eabf47b55af03adfa'), 'dom-ready.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '392bdd43726760d1f3ca'), 'edit-post.min.js' => array('dependencies' => array('wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-core-commands', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-url', 'wp-viewport', 'wp-warning', 'wp-widgets'), 'version' => '9adfe54d3f8e1efc973a'), 'edit-site.min.js' => array('dependencies' => array('lodash', 'react', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-core-commands', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-editor', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-router', 'wp-url', 'wp-viewport', 'wp-widgets', 'wp-wordcount'), 'version' => 'b8d242e1600da32c2411'), 'edit-widgets.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-url', 'wp-viewport', 'wp-widgets'), 'version' => 'c48014655968e9365570'), 'editor.min.js' => array('dependencies' => array('react', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-wordcount'), 'version' => '6d72d0f7ca361ec5011d'), 'element.min.js' => array('dependencies' => array('react', 'react-dom', 'wp-escape-html', 'wp-polyfill'), 'version' => 'ed1c7604880e8b574b40'), 'escape-html.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '03e27a7b6ae14f7afaa6'), 'format-library.min.js' => array('dependencies' => array('wp-a11y', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-url'), 'version' => '841596d9c9d3cabeaec1'), 'hooks.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'c6aec9a8d4e5a5d543a1'), 'html-entities.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '36a4a255da7dd2e1bf8e'), 'i18n.min.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '7701b0c3857f914212ef'), 'is-shallow-equal.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '20c2b06ecf04afb14fee'), 'keyboard-shortcuts.min.js' => array('dependencies' => array('wp-data', 'wp-element', 'wp-keycodes', 'wp-polyfill'), 'version' => '99e2d63033ed57d7783f'), 'keycodes.min.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill'), 'version' => '3460bd0fac9859d6886c'), 'list-reusable-blocks.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '75abf694c46dcc8972f1'), 'media-utils.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-blob', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'bcd60e7a2fb568f38015'), 'notices.min.js' => array('dependencies' => array('wp-data', 'wp-polyfill'), 'version' => '38e88f4b627cf873edd0'), 'nux.min.js' => array('dependencies' => array('wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => '59718fab5e39f9dd21b0'), 'plugins.min.js' => array('dependencies' => array('wp-compose', 'wp-element', 'wp-hooks', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-primitives'), 'version' => '463143a2aeec9687ac69'), 'preferences.min.js' => array('dependencies' => array('wp-a11y', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => 'ca088ba0a612bff77aa3'), 'preferences-persistence.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-polyfill'), 'version' => '6c6b220422eb35541489'), 'primitives.min.js' => array('dependencies' => array('wp-element', 'wp-polyfill'), 'version' => 'b90ba9340ccd8dae04b5'), 'priority-queue.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '422e19e9d48b269c5219'), 'private-apis.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'c7aedd57ea3c9b334e7d'), 'redux-routine.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '0be1b2a6a79703e28531'), 'reusable-blocks.min.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', 'wp-private-apis', 'wp-url'), 'version' => 'ba0edecdf1360ec259cd'), 'rich-text.min.js' => array('dependencies' => array('wp-a11y', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-escape-html', 'wp-i18n', 'wp-keycodes', 'wp-polyfill'), 'version' => '477e6aed00daeb0e4ab6'), 'router.min.js' => array('dependencies' => array('wp-element', 'wp-polyfill', 'wp-private-apis', 'wp-url'), 'version' => 'bc3f04a9045626928db0'), 'server-side-render.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '81299db67c0fa2c65479'), 'shortcode.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'c128a3008a96e820aa86'), 'style-engine.min.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '8947445e1a2533882c21'), 'token-list.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '199103fc7cec3b9eef5a'), 'url.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '8814d23f2d64864d280d'), 'viewport.min.js' => array('dependencies' => array('wp-compose', 'wp-data', 'wp-element', 'wp-polyfill'), 'version' => '1fbef8175bb335c5603b'), 'warning.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '4acee5fc2fd9a24cefc2'), 'widgets.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-polyfill', 'wp-primitives'), 'version' => '938735ae45e739ac8b70'), 'wordcount.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '5a74890fd7c610679e34')); + array('dependencies' => array('wp-dom-ready', 'wp-i18n', 'wp-polyfill'), 'version' => '7032343a947cfccf5608'), 'annotations.min.js' => array('dependencies' => array('wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => 'b2ea813120975bf6fbb5'), 'api-fetch.min.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '0fa4dabf8bf2c7adf21a'), 'autop.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'dacd785d109317df2707'), 'blob.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '10a1c5c0acdef3d15657'), 'block-directory.min.js' => array('dependencies' => array('wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => 'cf69143cf8a7a08f7e0f'), 'block-editor.min.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', '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-preferences', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-shortcode', 'wp-style-engine', 'wp-token-list', 'wp-url', 'wp-warning', 'wp-wordcount'), 'version' => 'ecf0dc5e749679c4f014'), 'block-library.min.js' => array('dependencies' => array('lodash', 'wp-a11y', '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-dom', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport', 'wp-wordcount'), 'version' => 'd7a9b7c4483f03874bab'), 'block-serialization-default-parser.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '30ffd7e7e199f10b2a6d'), 'blocks.min.js' => array('dependencies' => array('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-private-apis', 'wp-shortcode'), 'version' => 'b5d3b99262dfb659bd26'), 'commands.min.js' => array('dependencies' => array('react', 'react-dom', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-polyfill', 'wp-private-apis'), 'version' => '6aaa327476959e33b206'), 'components.min.js' => array('dependencies' => array('react', 'react-dom', 'wp-a11y', 'wp-compose', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-warning'), 'version' => '95a83da569bd3b6354ec'), 'compose.min.js' => array('dependencies' => array('react', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-priority-queue'), 'version' => '9424edf50a26435105c0'), 'core-commands.min.js' => array('dependencies' => array('wp-commands', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-router', 'wp-url'), 'version' => '90e1ba010f5600297bd1'), 'core-data.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-private-apis', 'wp-url'), 'version' => 'b19b1b1045a3d2c45c69'), 'customize-widgets.min.js' => array('dependencies' => array('wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-widgets'), 'version' => '6d822aca98e0c32c34fb'), 'data.min.js' => array('dependencies' => array('wp-compose', 'wp-deprecated', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-priority-queue', 'wp-private-apis', 'wp-redux-routine'), 'version' => 'ff7eb3945f963be850ff'), 'data-controls.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-data', 'wp-deprecated', 'wp-polyfill'), 'version' => 'fe4ccc8a1782ea8e2cb1'), 'date.min.js' => array('dependencies' => array('moment', 'wp-deprecated', 'wp-polyfill'), 'version' => '505e060585ac0f4b6cb6'), 'deprecated.min.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '73ad3591e7bc95f4777a'), 'dom.min.js' => array('dependencies' => array('wp-deprecated', 'wp-polyfill'), 'version' => '845eabf47b55af03adfa'), 'dom-ready.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '392bdd43726760d1f3ca'), 'edit-post.min.js' => array('dependencies' => array('wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-core-commands', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-url', 'wp-viewport', 'wp-warning', 'wp-widgets'), 'version' => '9adfe54d3f8e1efc973a'), 'edit-site.min.js' => array('dependencies' => array('lodash', 'react', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-core-commands', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-editor', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-router', 'wp-url', 'wp-viewport', 'wp-widgets', 'wp-wordcount'), 'version' => 'b8d242e1600da32c2411'), 'edit-widgets.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-url', 'wp-viewport', 'wp-widgets'), 'version' => 'c48014655968e9365570'), 'editor.min.js' => array('dependencies' => array('react', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-wordcount'), 'version' => '6d72d0f7ca361ec5011d'), 'element.min.js' => array('dependencies' => array('react', 'react-dom', 'wp-escape-html', 'wp-polyfill'), 'version' => 'ed1c7604880e8b574b40'), 'escape-html.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '03e27a7b6ae14f7afaa6'), 'format-library.min.js' => array('dependencies' => array('wp-a11y', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-url'), 'version' => '841596d9c9d3cabeaec1'), 'hooks.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'c6aec9a8d4e5a5d543a1'), 'html-entities.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '36a4a255da7dd2e1bf8e'), 'i18n.min.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '7701b0c3857f914212ef'), 'is-shallow-equal.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '20c2b06ecf04afb14fee'), 'keyboard-shortcuts.min.js' => array('dependencies' => array('wp-data', 'wp-element', 'wp-keycodes', 'wp-polyfill'), 'version' => '99e2d63033ed57d7783f'), 'keycodes.min.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill'), 'version' => '3460bd0fac9859d6886c'), 'list-reusable-blocks.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '75abf694c46dcc8972f1'), 'media-utils.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-blob', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'bcd60e7a2fb568f38015'), 'notices.min.js' => array('dependencies' => array('wp-data', 'wp-polyfill'), 'version' => '38e88f4b627cf873edd0'), 'nux.min.js' => array('dependencies' => array('wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => '59718fab5e39f9dd21b0'), 'plugins.min.js' => array('dependencies' => array('wp-compose', 'wp-element', 'wp-hooks', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-primitives'), 'version' => '463143a2aeec9687ac69'), 'preferences.min.js' => array('dependencies' => array('wp-a11y', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => 'ca088ba0a612bff77aa3'), 'preferences-persistence.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-polyfill'), 'version' => '6c6b220422eb35541489'), 'primitives.min.js' => array('dependencies' => array('wp-element', 'wp-polyfill'), 'version' => 'b90ba9340ccd8dae04b5'), 'priority-queue.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '422e19e9d48b269c5219'), 'private-apis.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'c7aedd57ea3c9b334e7d'), 'redux-routine.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '0be1b2a6a79703e28531'), 'reusable-blocks.min.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', 'wp-private-apis', 'wp-url'), 'version' => 'ba0edecdf1360ec259cd'), 'rich-text.min.js' => array('dependencies' => array('wp-a11y', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-escape-html', 'wp-i18n', 'wp-keycodes', 'wp-polyfill'), 'version' => '477e6aed00daeb0e4ab6'), 'router.min.js' => array('dependencies' => array('wp-element', 'wp-polyfill', 'wp-private-apis', 'wp-url'), 'version' => 'bc3f04a9045626928db0'), 'server-side-render.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '81299db67c0fa2c65479'), 'shortcode.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'c128a3008a96e820aa86'), 'style-engine.min.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '8947445e1a2533882c21'), 'token-list.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '199103fc7cec3b9eef5a'), 'url.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '8814d23f2d64864d280d'), 'viewport.min.js' => array('dependencies' => array('wp-compose', 'wp-data', 'wp-element', 'wp-polyfill'), 'version' => '1fbef8175bb335c5603b'), 'warning.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '4acee5fc2fd9a24cefc2'), 'widgets.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-polyfill', 'wp-primitives'), 'version' => '938735ae45e739ac8b70'), 'wordcount.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '5a74890fd7c610679e34')); diff --git a/wp-includes/assets/script-loader-packages.php b/wp-includes/assets/script-loader-packages.php index be607b07ca..afed2d7f7f 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' => 'f5d24347216c445a8c01'), 'annotations.js' => array('dependencies' => array('wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => 'd281e7655aa1a175c220'), 'api-fetch.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => 'c6922e5e289e31508e9e'), 'autop.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'b745c6fbf05b78fb082d'), 'blob.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'c8cd0ee72e8256295689'), 'block-directory.js' => array('dependencies' => array('wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '9d6194f9b4dec23de6e4'), 'block-editor.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', '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-preferences', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-shortcode', 'wp-style-engine', 'wp-token-list', 'wp-url', 'wp-warning', 'wp-wordcount'), 'version' => '35750e8f523ab571a7d8'), 'block-library.js' => array('dependencies' => array('lodash', 'wp-a11y', '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-dom', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport', 'wp-wordcount'), 'version' => '859cdc094f9512f09f85'), 'block-serialization-default-parser.js' => array('dependencies' => array('wp-polyfill'), 'version' => '659c02a916d332d198d3'), 'blocks.js' => array('dependencies' => array('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-private-apis', 'wp-shortcode'), 'version' => '3975aadffcb564e875cc'), 'commands.js' => array('dependencies' => array('react', 'react-dom', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-polyfill', 'wp-private-apis'), 'version' => 'b106e7e79538b1818f91'), 'components.js' => array('dependencies' => array('react', 'react-dom', 'wp-a11y', 'wp-compose', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-warning'), 'version' => 'e307344e72077a977c84'), 'compose.js' => array('dependencies' => array('react', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-priority-queue'), 'version' => '6861d91c4896ce3aecda'), 'core-commands.js' => array('dependencies' => array('wp-commands', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-router', 'wp-url'), 'version' => '47054e521a7801cbcdfe'), 'core-data.js' => array('dependencies' => array('wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-private-apis', 'wp-url'), 'version' => '6889c113298aec93fc12'), 'customize-widgets.js' => array('dependencies' => array('wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-widgets'), 'version' => 'eda3ea54b679fff82f38'), 'data.js' => array('dependencies' => array('wp-compose', 'wp-deprecated', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-priority-queue', 'wp-private-apis', 'wp-redux-routine'), 'version' => '16121b61f8bc66f02ac6'), 'data-controls.js' => array('dependencies' => array('wp-api-fetch', 'wp-data', 'wp-deprecated', 'wp-polyfill'), 'version' => '21350969228d7e012ae4'), 'date.js' => array('dependencies' => array('moment', 'wp-deprecated', 'wp-polyfill'), 'version' => '74ec621209ef5f985502'), 'deprecated.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => 'e7be1e59b3a3f3f2de93'), 'dom.js' => array('dependencies' => array('wp-deprecated', 'wp-polyfill'), 'version' => '2859d23ff0f3c3599c5f'), 'dom-ready.js' => array('dependencies' => array('wp-polyfill'), 'version' => '7c25017459f1da90355d'), 'edit-post.js' => array('dependencies' => array('wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-core-commands', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-url', 'wp-viewport', 'wp-warning', 'wp-widgets'), 'version' => '8da9b22db7805962c350'), 'edit-site.js' => array('dependencies' => array('lodash', 'react', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-core-commands', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-editor', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-router', 'wp-url', 'wp-viewport', 'wp-widgets', 'wp-wordcount'), 'version' => 'e6a57191e6f58b9f0f2f'), 'edit-widgets.js' => array('dependencies' => array('wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-url', 'wp-viewport', 'wp-widgets'), 'version' => '4db5e82bdd0cb8525803'), 'editor.js' => array('dependencies' => array('react', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-wordcount'), 'version' => '3585d92ecc06fc546e1f'), 'element.js' => array('dependencies' => array('react', 'react-dom', 'wp-escape-html', 'wp-polyfill'), 'version' => 'b368b38a89162c1a2dd4'), 'escape-html.js' => array('dependencies' => array('wp-polyfill'), 'version' => '6cf743ecc1ac531a8ee6'), 'format-library.js' => array('dependencies' => array('wp-a11y', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-url'), 'version' => '119776cc37750315ec4a'), 'hooks.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'cb3553927d7ab6049113'), 'html-entities.js' => array('dependencies' => array('wp-polyfill'), 'version' => '87ef261e846b76e5a37b'), 'i18n.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '28325ce370dfa8a48974'), 'is-shallow-equal.js' => array('dependencies' => array('wp-polyfill'), 'version' => '6db118482717025592c3'), 'keyboard-shortcuts.js' => array('dependencies' => array('wp-data', 'wp-element', 'wp-keycodes', 'wp-polyfill'), 'version' => '0dd9d7a2fc055546ac02'), 'keycodes.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill'), 'version' => '3ea3f757df3faecf5b53'), 'list-reusable-blocks.js' => array('dependencies' => array('wp-api-fetch', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'cbc6b63f1e4af6863c25'), 'media-utils.js' => array('dependencies' => array('wp-api-fetch', 'wp-blob', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '64f965a73c9014525194'), 'notices.js' => array('dependencies' => array('wp-data', 'wp-polyfill'), 'version' => '89066af3709002b265aa'), 'nux.js' => array('dependencies' => array('wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => '68360385b9a6946654a4'), 'plugins.js' => array('dependencies' => array('wp-compose', 'wp-element', 'wp-hooks', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-primitives'), 'version' => '2c131c2ea4abe95e5138'), 'preferences.js' => array('dependencies' => array('wp-a11y', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => '77e5d89bcb85ec728c47'), 'preferences-persistence.js' => array('dependencies' => array('wp-api-fetch', 'wp-polyfill'), 'version' => '6359e081d54254a8095f'), 'primitives.js' => array('dependencies' => array('wp-element', 'wp-polyfill'), 'version' => '9a5b77281b914496cc3f'), 'priority-queue.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'c1d62738f06e87528f62'), 'private-apis.js' => array('dependencies' => array('wp-polyfill'), 'version' => '4aec745137be5ec003ec'), 'redux-routine.js' => array('dependencies' => array('wp-polyfill'), 'version' => '5864c15205ae69892f05'), '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', 'wp-private-apis', 'wp-url'), 'version' => '28127b0e26dd1f5e354e'), 'rich-text.js' => array('dependencies' => array('wp-a11y', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-escape-html', 'wp-i18n', 'wp-keycodes', 'wp-polyfill'), 'version' => 'ad3aca3abfd414c65cd3'), 'router.js' => array('dependencies' => array('wp-element', 'wp-polyfill', 'wp-private-apis', 'wp-url'), 'version' => '13c8628603afc0d07efe'), 'server-side-render.js' => array('dependencies' => array('wp-api-fetch', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '75db96a643c7c526dd9b'), 'shortcode.js' => array('dependencies' => array('wp-polyfill'), 'version' => '0a7e6e9696d74a96cbbc'), 'style-engine.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'ed586d7be92a16524d2a'), 'token-list.js' => array('dependencies' => array('wp-polyfill'), 'version' => '59593bbd84ae7c0d4c03'), 'url.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'b8dc9f774df8e318bec4'), 'viewport.js' => array('dependencies' => array('wp-compose', 'wp-data', 'wp-element', 'wp-polyfill'), 'version' => '1150a23174cba4f61f67'), 'warning.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'aa73c6d9a1563e863795'), 'widgets.js' => array('dependencies' => array('wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-polyfill', 'wp-primitives'), 'version' => '4910811297dc0087a579'), 'wordcount.js' => array('dependencies' => array('wp-polyfill'), 'version' => '02aee9969304892b0e50')); + array('dependencies' => array('wp-dom-ready', 'wp-i18n', 'wp-polyfill'), 'version' => 'f5d24347216c445a8c01'), 'annotations.js' => array('dependencies' => array('wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => '75a480a2654dd626c11d'), 'api-fetch.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => 'c6922e5e289e31508e9e'), 'autop.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'b745c6fbf05b78fb082d'), 'blob.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'c8cd0ee72e8256295689'), 'block-directory.js' => array('dependencies' => array('wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '9d6194f9b4dec23de6e4'), 'block-editor.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', '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-preferences', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-shortcode', 'wp-style-engine', 'wp-token-list', 'wp-url', 'wp-warning', 'wp-wordcount'), 'version' => '35750e8f523ab571a7d8'), 'block-library.js' => array('dependencies' => array('lodash', 'wp-a11y', '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-dom', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport', 'wp-wordcount'), 'version' => 'c7c6cdd87ab7c5489593'), 'block-serialization-default-parser.js' => array('dependencies' => array('wp-polyfill'), 'version' => '659c02a916d332d198d3'), 'blocks.js' => array('dependencies' => array('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-private-apis', 'wp-shortcode'), 'version' => '6307ec40356a2e0670e0'), 'commands.js' => array('dependencies' => array('react', 'react-dom', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-polyfill', 'wp-private-apis'), 'version' => 'b106e7e79538b1818f91'), 'components.js' => array('dependencies' => array('react', 'react-dom', 'wp-a11y', 'wp-compose', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-warning'), 'version' => 'bc45d5f405e117410dbb'), 'compose.js' => array('dependencies' => array('react', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-priority-queue'), 'version' => '6861d91c4896ce3aecda'), 'core-commands.js' => array('dependencies' => array('wp-commands', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-router', 'wp-url'), 'version' => '47054e521a7801cbcdfe'), 'core-data.js' => array('dependencies' => array('wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-private-apis', 'wp-url'), 'version' => '4e23c9d5ac545a0cfbee'), 'customize-widgets.js' => array('dependencies' => array('wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-widgets'), 'version' => 'eda3ea54b679fff82f38'), 'data.js' => array('dependencies' => array('wp-compose', 'wp-deprecated', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-priority-queue', 'wp-private-apis', 'wp-redux-routine'), 'version' => '16121b61f8bc66f02ac6'), 'data-controls.js' => array('dependencies' => array('wp-api-fetch', 'wp-data', 'wp-deprecated', 'wp-polyfill'), 'version' => '21350969228d7e012ae4'), 'date.js' => array('dependencies' => array('moment', 'wp-deprecated', 'wp-polyfill'), 'version' => '74ec621209ef5f985502'), 'deprecated.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => 'e7be1e59b3a3f3f2de93'), 'dom.js' => array('dependencies' => array('wp-deprecated', 'wp-polyfill'), 'version' => '2859d23ff0f3c3599c5f'), 'dom-ready.js' => array('dependencies' => array('wp-polyfill'), 'version' => '7c25017459f1da90355d'), 'edit-post.js' => array('dependencies' => array('wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-core-commands', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-url', 'wp-viewport', 'wp-warning', 'wp-widgets'), 'version' => '8da9b22db7805962c350'), 'edit-site.js' => array('dependencies' => array('lodash', 'react', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-core-commands', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-editor', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-router', 'wp-url', 'wp-viewport', 'wp-widgets', 'wp-wordcount'), 'version' => 'e6a57191e6f58b9f0f2f'), 'edit-widgets.js' => array('dependencies' => array('wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-url', 'wp-viewport', 'wp-widgets'), 'version' => '4db5e82bdd0cb8525803'), 'editor.js' => array('dependencies' => array('react', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-wordcount'), 'version' => '3585d92ecc06fc546e1f'), 'element.js' => array('dependencies' => array('react', 'react-dom', 'wp-escape-html', 'wp-polyfill'), 'version' => 'b368b38a89162c1a2dd4'), 'escape-html.js' => array('dependencies' => array('wp-polyfill'), 'version' => '6cf743ecc1ac531a8ee6'), 'format-library.js' => array('dependencies' => array('wp-a11y', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-url'), 'version' => '119776cc37750315ec4a'), 'hooks.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'cb3553927d7ab6049113'), 'html-entities.js' => array('dependencies' => array('wp-polyfill'), 'version' => '87ef261e846b76e5a37b'), 'i18n.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '28325ce370dfa8a48974'), 'is-shallow-equal.js' => array('dependencies' => array('wp-polyfill'), 'version' => '6db118482717025592c3'), 'keyboard-shortcuts.js' => array('dependencies' => array('wp-data', 'wp-element', 'wp-keycodes', 'wp-polyfill'), 'version' => '0dd9d7a2fc055546ac02'), 'keycodes.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill'), 'version' => '3ea3f757df3faecf5b53'), 'list-reusable-blocks.js' => array('dependencies' => array('wp-api-fetch', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'cbc6b63f1e4af6863c25'), 'media-utils.js' => array('dependencies' => array('wp-api-fetch', 'wp-blob', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '64f965a73c9014525194'), 'notices.js' => array('dependencies' => array('wp-data', 'wp-polyfill'), 'version' => '89066af3709002b265aa'), 'nux.js' => array('dependencies' => array('wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => '68360385b9a6946654a4'), 'plugins.js' => array('dependencies' => array('wp-compose', 'wp-element', 'wp-hooks', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-primitives'), 'version' => '2c131c2ea4abe95e5138'), 'preferences.js' => array('dependencies' => array('wp-a11y', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => '77e5d89bcb85ec728c47'), 'preferences-persistence.js' => array('dependencies' => array('wp-api-fetch', 'wp-polyfill'), 'version' => '6359e081d54254a8095f'), 'primitives.js' => array('dependencies' => array('wp-element', 'wp-polyfill'), 'version' => '9a5b77281b914496cc3f'), 'priority-queue.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'c1d62738f06e87528f62'), 'private-apis.js' => array('dependencies' => array('wp-polyfill'), 'version' => '4aec745137be5ec003ec'), 'redux-routine.js' => array('dependencies' => array('wp-polyfill'), 'version' => '5864c15205ae69892f05'), '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', 'wp-private-apis', 'wp-url'), 'version' => '28127b0e26dd1f5e354e'), 'rich-text.js' => array('dependencies' => array('wp-a11y', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-escape-html', 'wp-i18n', 'wp-keycodes', 'wp-polyfill'), 'version' => 'ad3aca3abfd414c65cd3'), 'router.js' => array('dependencies' => array('wp-element', 'wp-polyfill', 'wp-private-apis', 'wp-url'), 'version' => '13c8628603afc0d07efe'), 'server-side-render.js' => array('dependencies' => array('wp-api-fetch', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '75db96a643c7c526dd9b'), 'shortcode.js' => array('dependencies' => array('wp-polyfill'), 'version' => '0a7e6e9696d74a96cbbc'), 'style-engine.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'ed586d7be92a16524d2a'), 'token-list.js' => array('dependencies' => array('wp-polyfill'), 'version' => '59593bbd84ae7c0d4c03'), 'url.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'b8dc9f774df8e318bec4'), 'viewport.js' => array('dependencies' => array('wp-compose', 'wp-data', 'wp-element', 'wp-polyfill'), 'version' => '1150a23174cba4f61f67'), 'warning.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'aa73c6d9a1563e863795'), 'widgets.js' => array('dependencies' => array('wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-polyfill', 'wp-primitives'), 'version' => '4910811297dc0087a579'), 'wordcount.js' => array('dependencies' => array('wp-polyfill'), 'version' => '02aee9969304892b0e50')); diff --git a/wp-includes/http.php b/wp-includes/http.php index c00d1f7e03..e1738beedf 100644 --- a/wp-includes/http.php +++ b/wp-includes/http.php @@ -354,7 +354,7 @@ function wp_remote_retrieve_cookie( $response, $name ) { function wp_remote_retrieve_cookie_value( $response, $name ) { $cookie = wp_remote_retrieve_cookie( $response, $name ); - if ( ! is_a( $cookie, 'WP_Http_Cookie' ) ) { + if ( ! ( $cookie instanceof WP_Http_Cookie ) ) { return ''; } diff --git a/wp-includes/js/dist/annotations.js b/wp-includes/js/dist/annotations.js index 0f8a9ffe33..0ec439aac2 100644 --- a/wp-includes/js/dist/annotations.js +++ b/wp-includes/js/dist/annotations.js @@ -811,22 +811,18 @@ function __experimentalGetAnnotations(state) { return Object.values(state).flat(); } -;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/native.js -const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto); -/* harmony default export */ var esm_browser_native = ({ - randomUUID -}); -;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/rng.js +;// CONCATENATED MODULE: ./node_modules/@wordpress/annotations/node_modules/uuid/dist/esm-browser/rng.js // Unique ID creation requires a high quality random # generator. In the browser we therefore // require the crypto API and do not support built-in fallback to lower quality random number // generators (like Math.random()). -let getRandomValues; -const rnds8 = new Uint8Array(16); +var getRandomValues; +var rnds8 = new Uint8Array(16); function rng() { // lazy load so that environments that need to polyfill have a chance to do so if (!getRandomValues) { - // getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. - getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto); + // getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. Also, + // find the complete implementation of crypto (msCrypto) on IE11. + getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto); if (!getRandomValues) { throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported'); @@ -835,52 +831,54 @@ function rng() { return getRandomValues(rnds8); } -;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/stringify.js +;// CONCATENATED MODULE: ./node_modules/@wordpress/annotations/node_modules/uuid/dist/esm-browser/regex.js +/* harmony default export */ var regex = (/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i); +;// CONCATENATED MODULE: ./node_modules/@wordpress/annotations/node_modules/uuid/dist/esm-browser/validate.js + + +function validate(uuid) { + return typeof uuid === 'string' && regex.test(uuid); +} + +/* harmony default export */ var esm_browser_validate = (validate); +;// CONCATENATED MODULE: ./node_modules/@wordpress/annotations/node_modules/uuid/dist/esm-browser/stringify.js /** * Convert array of 16 byte values to UUID string format of the form: * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX */ -const byteToHex = []; +var byteToHex = []; -for (let i = 0; i < 256; ++i) { - byteToHex.push((i + 0x100).toString(16).slice(1)); +for (var i = 0; i < 256; ++i) { + byteToHex.push((i + 0x100).toString(16).substr(1)); } -function unsafeStringify(arr, offset = 0) { +function stringify(arr) { + var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; // Note: Be careful editing this code! It's been tuned for performance // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434 - return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); -} - -function stringify(arr, offset = 0) { - const uuid = unsafeStringify(arr, offset); // Consistency check for valid UUID. If this throws, it's likely due to one + var uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one // of the following: // - One or more input array values don't map to a hex octet (leading to // "undefined" in the uuid) // - Invalid input values for the RFC `version` or `variant` fields - if (!validate(uuid)) { + if (!esm_browser_validate(uuid)) { throw TypeError('Stringified UUID is invalid'); } return uuid; } -/* harmony default export */ var esm_browser_stringify = ((/* unused pure expression or super */ null && (stringify))); -;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/v4.js - +/* harmony default export */ var esm_browser_stringify = (stringify); +;// CONCATENATED MODULE: ./node_modules/@wordpress/annotations/node_modules/uuid/dist/esm-browser/v4.js function v4(options, buf, offset) { - if (esm_browser_native.randomUUID && !buf && !options) { - return esm_browser_native.randomUUID(); - } - options = options || {}; - const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved` + var rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved` rnds[6] = rnds[6] & 0x0f | 0x40; rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided @@ -888,14 +886,14 @@ function v4(options, buf, offset) { if (buf) { offset = offset || 0; - for (let i = 0; i < 16; ++i) { + for (var i = 0; i < 16; ++i) { buf[offset + i] = rnds[i]; } return buf; } - return unsafeStringify(rnds); + return esm_browser_stringify(rnds); } /* harmony default export */ var esm_browser_v4 = (v4); diff --git a/wp-includes/js/dist/annotations.min.js b/wp-includes/js/dist/annotations.min.js index 9fbc5fd5b5..cad5180ac0 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 */ -!function(){"use strict";var e={d:function(t,n){for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{store:function(){return G}});var n={};e.r(n),e.d(n,{__experimentalGetAllAnnotationsForBlock:function(){return N},__experimentalGetAnnotations:function(){return O},__experimentalGetAnnotationsForBlock:function(){return T},__experimentalGetAnnotationsForRichText:function(){return b}});var r={};e.r(r),e.d(r,{__experimentalAddAnnotation:function(){return C},__experimentalRemoveAnnotation:function(){return S},__experimentalRemoveAnnotationsBySource:function(){return F},__experimentalUpdateAnnotationRange:function(){return P}});var o=window.wp.richText,a=window.wp.i18n;const i="core/annotations",u="core/annotation",c="annotation-text-";const l={name:u,title:(0,a.__)("Annotation"),tagName:"mark",className:"annotation-text",attributes:{className:"class",id:"id"},edit(){return null},__experimentalGetPropsForEditableTreePreparation(e,{richTextIdentifier:t,blockClientId:n}){return{annotations:e(i).__experimentalGetAnnotationsForRichText(n,t)}},__experimentalCreatePrepareEditableTree({annotations:e}){return(t,n)=>{if(0===e.length)return t;let r={formats:t,text:n};return r=function(e,t=[]){return t.forEach((t=>{let{start:n,end:r}=t;n>e.text.length&&(n=e.text.length),r>e.text.length&&(r=e.text.length);const a=c+t.source,i=c+t.id;e=(0,o.applyFormat)(e,{type:u,attributes:{className:a,id:i}},n,r)})),e}(r,e),r.formats}},__experimentalGetPropsForEditableTreeChangeHandler(e){return{removeAnnotation:e(i).__experimentalRemoveAnnotation,updateAnnotationRange:e(i).__experimentalUpdateAnnotationRange}},__experimentalCreateOnChangeEditableValue(e){return t=>{const n=function(e){const t={};return e.forEach(((e,n)=>{(e=(e=e||[]).filter((e=>e.type===u))).forEach((e=>{let{id:r}=e.attributes;r=r.replace(c,""),t.hasOwnProperty(r)||(t[r]={start:n}),t[r].end=n+1}))})),t}(t),{removeAnnotation:r,updateAnnotationRange:o,annotations:a}=e;!function(e,t,{removeAnnotation:n,updateAnnotationRange:r}){e.forEach((e=>{const o=t[e.id];if(!o)return void n(e.id);const{start:a,end:i}=e;a===o.start&&i===o.end||r(e.id,o.start,o.end)}))}(a,n,{removeAnnotation:r,updateAnnotationRange:o})}}},{name:s,...d}=l;(0,o.registerFormatType)(s,d);var p=window.wp.hooks,f=window.wp.data;function m(e,t){const n=e.filter(t);return e.length===n.length?e:n}(0,p.addFilter)("editor.BlockListBlock","core/annotations",(e=>(0,f.withSelect)(((e,{clientId:t,className:n})=>({className:e(i).__experimentalGetAnnotationsForBlock(t).map((e=>"is-annotated-by-"+e.source)).concat(n).filter(Boolean).join(" ")})))(e)));const g=(e,t)=>Object.entries(e).reduce(((e,[n,r])=>({...e,[n]:t(r)})),{});var h=function(e={},t){var n;switch(t.type){case"ANNOTATION_ADD":const r=t.blockClientId,o={id:t.id,blockClientId:r,richTextIdentifier:t.richTextIdentifier,source:t.source,selector:t.selector,range:t.range};if("range"===o.selector&&!function(e){return"number"==typeof e.start&&"number"==typeof e.end&&e.start<=e.end}(o.range))return e;const a=null!==(n=e?.[r])&&void 0!==n?n:[];return{...e,[r]:[...a,o]};case"ANNOTATION_REMOVE":return g(e,(e=>m(e,(e=>e.id!==t.annotationId))));case"ANNOTATION_UPDATE_RANGE":return g(e,(e=>{let n=!1;const r=e.map((e=>e.id===t.annotationId?(n=!0,{...e,range:{start:t.start,end:t.end}}):e));return n?r:e}));case"ANNOTATION_REMOVE_SOURCE":return g(e,(e=>m(e,(e=>e.source!==t.source))))}return e},_={};function v(e){return[e]}function A(e,t,n){var r;if(e.length!==t.length)return!1;for(r=n;r{var n;return(null!==(n=e?.[t])&&void 0!==n?n:[]).filter((e=>"block"===e.selector))}),((e,t)=>{var n;return[null!==(n=e?.[t])&&void 0!==n?n:x]}));function N(e,t){var n;return null!==(n=e?.[t])&&void 0!==n?n:x}const b=y(((e,t,n)=>{var r;return(null!==(r=e?.[t])&&void 0!==r?r:[]).filter((e=>"range"===e.selector&&n===e.richTextIdentifier)).map((e=>{const{range:t,...n}=e;return{...t,...n}}))}),((e,t)=>{var n;return[null!==(n=e?.[t])&&void 0!==n?n:x]}));function O(e){return Object.values(e).flat()}var w={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let I;const E=new Uint8Array(16);function R(){if(!I&&(I="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!I))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return I(E)}const U=[];for(let e=0;e<256;++e)U.push((e+256).toString(16).slice(1));function D(e,t=0){return(U[e[t+0]]+U[e[t+1]]+U[e[t+2]]+U[e[t+3]]+"-"+U[e[t+4]]+U[e[t+5]]+"-"+U[e[t+6]]+U[e[t+7]]+"-"+U[e[t+8]]+U[e[t+9]]+"-"+U[e[t+10]]+U[e[t+11]]+U[e[t+12]]+U[e[t+13]]+U[e[t+14]]+U[e[t+15]]).toLowerCase()}var k=function(e,t,n){if(w.randomUUID&&!t&&!e)return w.randomUUID();const r=(e=e||{}).random||(e.rng||R)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return D(r)};function C({blockClientId:e,richTextIdentifier:t=null,range:n=null,selector:r="range",source:o="default",id:a=k()}){const i={type:"ANNOTATION_ADD",id:a,blockClientId:e,richTextIdentifier:t,source:o,selector:r};return"range"===r&&(i.range=n),i}function S(e){return{type:"ANNOTATION_REMOVE",annotationId:e}}function P(e,t,n){return{type:"ANNOTATION_UPDATE_RANGE",annotationId:e,start:t,end:n}}function F(e){return{type:"ANNOTATION_REMOVE_SOURCE",source:e}}const G=(0,f.createReduxStore)(i,{reducer:h,selectors:n,actions:r});(0,f.register)(G),(window.wp=window.wp||{}).annotations=t}(); \ No newline at end of file +!function(){"use strict";var e={d:function(t,n){for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{store:function(){return j}});var n={};e.r(n),e.d(n,{__experimentalGetAllAnnotationsForBlock:function(){return b},__experimentalGetAnnotations:function(){return O},__experimentalGetAnnotationsForBlock:function(){return T},__experimentalGetAnnotationsForRichText:function(){return N}});var r={};e.r(r),e.d(r,{__experimentalAddAnnotation:function(){return U},__experimentalRemoveAnnotation:function(){return F},__experimentalRemoveAnnotationsBySource:function(){return V},__experimentalUpdateAnnotationRange:function(){return G}});var o=window.wp.richText,a=window.wp.i18n;const i="core/annotations",u="core/annotation",l="annotation-text-";const c={name:u,title:(0,a.__)("Annotation"),tagName:"mark",className:"annotation-text",attributes:{className:"class",id:"id"},edit(){return null},__experimentalGetPropsForEditableTreePreparation(e,{richTextIdentifier:t,blockClientId:n}){return{annotations:e(i).__experimentalGetAnnotationsForRichText(n,t)}},__experimentalCreatePrepareEditableTree({annotations:e}){return(t,n)=>{if(0===e.length)return t;let r={formats:t,text:n};return r=function(e,t=[]){return t.forEach((t=>{let{start:n,end:r}=t;n>e.text.length&&(n=e.text.length),r>e.text.length&&(r=e.text.length);const a=l+t.source,i=l+t.id;e=(0,o.applyFormat)(e,{type:u,attributes:{className:a,id:i}},n,r)})),e}(r,e),r.formats}},__experimentalGetPropsForEditableTreeChangeHandler(e){return{removeAnnotation:e(i).__experimentalRemoveAnnotation,updateAnnotationRange:e(i).__experimentalUpdateAnnotationRange}},__experimentalCreateOnChangeEditableValue(e){return t=>{const n=function(e){const t={};return e.forEach(((e,n)=>{(e=(e=e||[]).filter((e=>e.type===u))).forEach((e=>{let{id:r}=e.attributes;r=r.replace(l,""),t.hasOwnProperty(r)||(t[r]={start:n}),t[r].end=n+1}))})),t}(t),{removeAnnotation:r,updateAnnotationRange:o,annotations:a}=e;!function(e,t,{removeAnnotation:n,updateAnnotationRange:r}){e.forEach((e=>{const o=t[e.id];if(!o)return void n(e.id);const{start:a,end:i}=e;a===o.start&&i===o.end||r(e.id,o.start,o.end)}))}(a,n,{removeAnnotation:r,updateAnnotationRange:o})}}},{name:s,...d}=c;(0,o.registerFormatType)(s,d);var p=window.wp.hooks,f=window.wp.data;function m(e,t){const n=e.filter(t);return e.length===n.length?e:n}(0,p.addFilter)("editor.BlockListBlock","core/annotations",(e=>(0,f.withSelect)(((e,{clientId:t,className:n})=>({className:e(i).__experimentalGetAnnotationsForBlock(t).map((e=>"is-annotated-by-"+e.source)).concat(n).filter(Boolean).join(" ")})))(e)));const g=(e,t)=>Object.entries(e).reduce(((e,[n,r])=>({...e,[n]:t(r)})),{});var v=function(e={},t){var n;switch(t.type){case"ANNOTATION_ADD":const r=t.blockClientId,o={id:t.id,blockClientId:r,richTextIdentifier:t.richTextIdentifier,source:t.source,selector:t.selector,range:t.range};if("range"===o.selector&&!function(e){return"number"==typeof e.start&&"number"==typeof e.end&&e.start<=e.end}(o.range))return e;const a=null!==(n=e?.[r])&&void 0!==n?n:[];return{...e,[r]:[...a,o]};case"ANNOTATION_REMOVE":return g(e,(e=>m(e,(e=>e.id!==t.annotationId))));case"ANNOTATION_UPDATE_RANGE":return g(e,(e=>{let n=!1;const r=e.map((e=>e.id===t.annotationId?(n=!0,{...e,range:{start:t.start,end:t.end}}):e));return n?r:e}));case"ANNOTATION_REMOVE_SOURCE":return g(e,(e=>m(e,(e=>e.source!==t.source))))}return e},h={};function _(e){return[e]}function A(e,t,n){var r;if(e.length!==t.length)return!1;for(r=n;r{var n;return(null!==(n=e?.[t])&&void 0!==n?n:[]).filter((e=>"block"===e.selector))}),((e,t)=>{var n;return[null!==(n=e?.[t])&&void 0!==n?n:x]}));function b(e,t){var n;return null!==(n=e?.[t])&&void 0!==n?n:x}const N=y(((e,t,n)=>{var r;return(null!==(r=e?.[t])&&void 0!==r?r:[]).filter((e=>"range"===e.selector&&n===e.richTextIdentifier)).map((e=>{const{range:t,...n}=e;return{...t,...n}}))}),((e,t)=>{var n;return[null!==(n=e?.[t])&&void 0!==n?n:x]}));function O(e){return Object.values(e).flat()}var w,I=new Uint8Array(16);function R(){if(!w&&!(w="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return w(I)}var E=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var k=function(e){return"string"==typeof e&&E.test(e)},C=[],D=0;D<256;++D)C.push((D+256).toString(16).substr(1));var S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(C[e[t+0]]+C[e[t+1]]+C[e[t+2]]+C[e[t+3]]+"-"+C[e[t+4]]+C[e[t+5]]+"-"+C[e[t+6]]+C[e[t+7]]+"-"+C[e[t+8]]+C[e[t+9]]+"-"+C[e[t+10]]+C[e[t+11]]+C[e[t+12]]+C[e[t+13]]+C[e[t+14]]+C[e[t+15]]).toLowerCase();if(!k(n))throw TypeError("Stringified UUID is invalid");return n};var P=function(e,t,n){var r=(e=e||{}).random||(e.rng||R)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return S(r)};function U({blockClientId:e,richTextIdentifier:t=null,range:n=null,selector:r="range",source:o="default",id:a=P()}){const i={type:"ANNOTATION_ADD",id:a,blockClientId:e,richTextIdentifier:t,source:o,selector:r};return"range"===r&&(i.range=n),i}function F(e){return{type:"ANNOTATION_REMOVE",annotationId:e}}function G(e,t,n){return{type:"ANNOTATION_UPDATE_RANGE",annotationId:e,start:t,end:n}}function V(e){return{type:"ANNOTATION_REMOVE_SOURCE",source:e}}const j=(0,f.createReduxStore)(i,{reducer:v,selectors:n,actions:r});(0,f.register)(j),(window.wp=window.wp||{}).annotations=t}(); \ No newline at end of file diff --git a/wp-includes/js/dist/block-library.js b/wp-includes/js/dist/block-library.js index 173fe6cfb7..9a8911ca3d 100644 --- a/wp-includes/js/dist/block-library.js +++ b/wp-includes/js/dist/block-library.js @@ -58542,22 +58542,18 @@ function FootnotesEdit({ }, "\u21A9\uFE0E")))); } -;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/native.js -const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto); -/* harmony default export */ var esm_browser_native = ({ - randomUUID -}); -;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/rng.js +;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/node_modules/uuid/dist/esm-browser/rng.js // Unique ID creation requires a high quality random # generator. In the browser we therefore // require the crypto API and do not support built-in fallback to lower quality random number // generators (like Math.random()). -let getRandomValues; -const rnds8 = new Uint8Array(16); +var getRandomValues; +var rnds8 = new Uint8Array(16); function rng() { // lazy load so that environments that need to polyfill have a chance to do so if (!getRandomValues) { - // getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. - getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto); + // getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. Also, + // find the complete implementation of crypto (msCrypto) on IE11. + getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto); if (!getRandomValues) { throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported'); @@ -58566,52 +58562,54 @@ function rng() { return getRandomValues(rnds8); } -;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/stringify.js +;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/node_modules/uuid/dist/esm-browser/regex.js +/* harmony default export */ var regex = (/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i); +;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/node_modules/uuid/dist/esm-browser/validate.js + + +function validate(uuid) { + return typeof uuid === 'string' && regex.test(uuid); +} + +/* harmony default export */ var esm_browser_validate = (validate); +;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/node_modules/uuid/dist/esm-browser/stringify.js /** * Convert array of 16 byte values to UUID string format of the form: * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX */ -const byteToHex = []; +var byteToHex = []; -for (let i = 0; i < 256; ++i) { - byteToHex.push((i + 0x100).toString(16).slice(1)); +for (var stringify_i = 0; stringify_i < 256; ++stringify_i) { + byteToHex.push((stringify_i + 0x100).toString(16).substr(1)); } -function unsafeStringify(arr, offset = 0) { +function stringify(arr) { + var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; // Note: Be careful editing this code! It's been tuned for performance // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434 - return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); -} - -function stringify(arr, offset = 0) { - const uuid = unsafeStringify(arr, offset); // Consistency check for valid UUID. If this throws, it's likely due to one + var uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one // of the following: // - One or more input array values don't map to a hex octet (leading to // "undefined" in the uuid) // - Invalid input values for the RFC `version` or `variant` fields - if (!validate(uuid)) { + if (!esm_browser_validate(uuid)) { throw TypeError('Stringified UUID is invalid'); } return uuid; } -/* harmony default export */ var esm_browser_stringify = ((/* unused pure expression or super */ null && (stringify))); -;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/v4.js - +/* harmony default export */ var esm_browser_stringify = (stringify); +;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/node_modules/uuid/dist/esm-browser/v4.js function v4_v4(options, buf, offset) { - if (esm_browser_native.randomUUID && !buf && !options) { - return esm_browser_native.randomUUID(); - } - options = options || {}; - const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved` + var rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved` rnds[6] = rnds[6] & 0x0f | 0x40; rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided @@ -58619,14 +58617,14 @@ function v4_v4(options, buf, offset) { if (buf) { offset = offset || 0; - for (let i = 0; i < 16; ++i) { + for (var i = 0; i < 16; ++i) { buf[offset + i] = rnds[i]; } return buf; } - return unsafeStringify(rnds); + return esm_browser_stringify(rnds); } /* harmony default export */ var esm_browser_v4 = (v4_v4); diff --git a/wp-includes/js/dist/block-library.min.js b/wp-includes/js/dist/block-library.min.js index af84cbcd36..f07f41df84 100644 --- a/wp-includes/js/dist/block-library.min.js +++ b/wp-includes/js/dist/block-library.min.js @@ -9,6 +9,6 @@ Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/!function(){"use strict";var o={}.hasOwnProperty;function a(){for(var e=[],t=0;tt({displayAsDropdown:!a})}),a&&(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show label"),checked:n,onChange:()=>t({showLabel:!n})}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show post counts"),checked:o,onChange:()=>t({showPostCounts:!o})}),(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Group by:"),options:[{label:(0,Je.__)("Year"),value:"yearly"},{label:(0,Je.__)("Month"),value:"monthly"},{label:(0,Je.__)("Week"),value:"weekly"},{label:(0,Je.__)("Day"),value:"daily"}],value:r,onChange:e=>t({type:e})}))),(0,qe.createElement)("div",{...(0,Ye.useBlockProps)()},(0,qe.createElement)(Ke.Disabled,null,(0,qe.createElement)(et(),{block:"core/archives",skipBlockSupportAttributes:!0,attributes:e}))))}},at=()=>Qe({name:nt,metadata:tt,settings:ot});var rt=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{fillRule:"evenodd",d:"M7.25 16.437a6.5 6.5 0 1 1 9.5 0V16A2.75 2.75 0 0 0 14 13.25h-4A2.75 2.75 0 0 0 7.25 16v.437Zm1.5 1.193a6.47 6.47 0 0 0 3.25.87 6.47 6.47 0 0 0 3.25-.87V16c0-.69-.56-1.25-1.25-1.25h-4c-.69 0-1.25.56-1.25 1.25v1.63ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm10-2a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z",clipRule:"evenodd"})),lt=n(4403),it=n.n(lt),st=window.wp.url,ct=window.wp.coreData,ut=window.wp.data;function mt(e){const t=e?e[0]:24,n=e?e[e.length-1]:96;return{minSize:t,maxSize:Math.floor(2.5*n)}}function pt(){const{avatarURL:e}=(0,ut.useSelect)((e=>{const{getSettings:t}=e(Ye.store),{__experimentalDiscussionSettings:n}=t();return n}));return e}const dt={who:"authors",per_page:-1,_fields:"id,name",context:"view"};var gt=function({value:e,onChange:t}){const[n,o]=(0,qe.useState)(),a=(0,ut.useSelect)((e=>{const{getUsers:t}=e(ct.store);return t(dt)}),[]);if(!a)return null;const r=a.map((e=>({label:e.name,value:e.id})));return(0,qe.createElement)(Ke.ComboboxControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("User"),help:(0,Je.__)("Select the avatar user to display, if it is blank it will use the post/page author."),value:e,onChange:t,options:n||r,onFilterValueChange:e=>o(r.filter((t=>t.label.toLowerCase().startsWith(e.toLowerCase()))))})};const ht=({setAttributes:e,avatar:t,attributes:n,selectUser:o})=>(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Image size"),onChange:t=>e({size:t}),min:t.minSize,max:t.maxSize,initialPosition:n?.size,value:n?.size}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Link to user profile"),onChange:()=>e({isLink:!n.isLink}),checked:n.isLink}),n.isLink&&(0,qe.createElement)(Ke.ToggleControl,{label:(0,Je.__)("Open in new tab"),onChange:t=>e({linkTarget:t?"_blank":"_self"}),checked:"_blank"===n.linkTarget}),o&&(0,qe.createElement)(gt,{value:n?.userId,onChange:t=>{e({userId:t})}}))),_t=({setAttributes:e,attributes:t,avatar:n,blockProps:o,isSelected:a})=>{const r=(0,Ye.__experimentalUseBorderProps)(t),l=(0,st.addQueryArgs)((0,st.removeQueryArgs)(n?.src,["s"]),{s:2*t?.size});return(0,qe.createElement)("div",{...o},(0,qe.createElement)(Ke.ResizableBox,{size:{width:t.size,height:t.size},showHandle:a,onResizeStop:(n,o,a,r)=>{e({size:parseInt(t.size+(r.height||r.width),10)})},lockAspectRatio:!0,enable:{top:!1,right:!(0,Je.isRTL)(),bottom:!0,left:(0,Je.isRTL)()},minWidth:n.minSize,maxWidth:n.maxSize},(0,qe.createElement)("img",{src:l,alt:n.alt,className:it()("avatar","avatar-"+t.size,"photo","wp-block-avatar__image",r.className),style:r.style})))},bt=({attributes:e,context:t,setAttributes:n,isSelected:o})=>{const{commentId:a}=t,r=(0,Ye.useBlockProps)(),l=function({commentId:e}){const[t]=(0,ct.useEntityProp)("root","comment","author_avatar_urls",e),[n]=(0,ct.useEntityProp)("root","comment","author_name",e),o=t?Object.values(t):null,a=t?Object.keys(t):null,{minSize:r,maxSize:l}=mt(a),i=pt();return{src:o?o[o.length-1]:i,minSize:r,maxSize:l,alt:n?(0,Je.sprintf)((0,Je.__)("%s Avatar"),n):(0,Je.__)("Default Avatar")}}({commentId:a});return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(ht,{avatar:l,setAttributes:n,attributes:e,selectUser:!1}),e.isLink?(0,qe.createElement)("a",{href:"#avatar-pseudo-link",className:"wp-block-avatar__link",onClick:e=>e.preventDefault()},(0,qe.createElement)(_t,{attributes:e,avatar:l,blockProps:r,isSelected:o,setAttributes:n})):(0,qe.createElement)(_t,{attributes:e,avatar:l,blockProps:r,isSelected:o,setAttributes:n}))},ft=({attributes:e,context:t,setAttributes:n,isSelected:o})=>{const{postId:a,postType:r}=t,l=function({userId:e,postId:t,postType:n}){const{authorDetails:o}=(0,ut.useSelect)((o=>{const{getEditedEntityRecord:a,getUser:r}=o(ct.store);if(e)return{authorDetails:r(e)};const l=a("postType",n,t)?.author;return{authorDetails:l?r(l):null}}),[n,t,e]),a=o?.avatar_urls?Object.values(o.avatar_urls):null,r=o?.avatar_urls?Object.keys(o.avatar_urls):null,{minSize:l,maxSize:i}=mt(r),s=pt();return{src:a?a[a.length-1]:s,minSize:l,maxSize:i,alt:o?(0,Je.sprintf)((0,Je.__)("%s Avatar"),o?.name):(0,Je.__)("Default Avatar")}}({userId:e?.userId,postId:a,postType:r}),i=(0,Ye.useBlockProps)();return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(ht,{selectUser:!0,attributes:e,avatar:l,setAttributes:n}),(0,qe.createElement)("div",null,e.isLink?(0,qe.createElement)("a",{href:"#avatar-pseudo-link",className:"wp-block-avatar__link",onClick:e=>e.preventDefault()},(0,qe.createElement)(_t,{attributes:e,avatar:l,blockProps:i,isSelected:o,setAttributes:n})):(0,qe.createElement)(_t,{attributes:e,avatar:l,blockProps:i,isSelected:o,setAttributes:n})))};const vt={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/avatar",title:"Avatar",category:"theme",description:"Add a user’s avatar.",textdomain:"default",attributes:{userId:{type:"number"},size:{type:"number",default:96},isLink:{type:"boolean",default:!1},linkTarget:{type:"string",default:"_self"}},usesContext:["postType","postId","commentId"],supports:{html:!1,align:!0,alignWide:!1,spacing:{margin:!0,padding:!0},__experimentalBorder:{__experimentalSkipSerialization:!0,radius:!0,width:!0,color:!0,style:!0,__experimentalDefaultControls:{radius:!0}},color:{text:!1,background:!1,__experimentalDuotone:"img"}},editorStyle:"wp-block-avatar-editor",style:"wp-block-avatar"},{name:yt}=vt,kt={icon:rt,edit:function(e){return e?.context?.commentId||null===e?.context?.commentId?(0,qe.createElement)(bt,{...e}):(0,qe.createElement)(ft,{...e})}},xt=()=>Qe({name:yt,metadata:vt,settings:kt});var wt=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.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"})),Ct=[{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({attributes:e}){const{autoplay:t,caption:n,loop:o,preload:a,src:r}=e;return(0,qe.createElement)("figure",null,(0,qe.createElement)("audio",{controls:"controls",src:r,autoPlay:t,loop:o,preload:a}),!Ye.RichText.isEmpty(n)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",value:n}))}}],Et=window.wp.blob;var St=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M6 5.5h12a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5ZM4 6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6Zm4 10h2v-1.5H8V16Zm5 0h-2v-1.5h2V16Zm1 0h2v-1.5h-2V16Z"})),Bt=window.wp.notices,Tt=window.wp.compose;const Nt=[{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"}],Pt="wp-embed";var It=window.lodash,Mt=n(3827),zt=n.n(Mt);function Rt(e,t){var n,o,a=0;function r(){var r,l,i=n,s=arguments.length;e:for(;i;){if(i.args.length===arguments.length){for(l=0;le&&e.includes('class="wp-embedded-content"'),At=(e,t={})=>{const{preview:n,attributes:o={}}=e,{url:a,providerNameSlug:r,type:l,...i}=o;if(!a||!(0,je.getBlockType)(Ht))return;const s=(e=>(0,je.getBlockVariations)(Ht)?.find((({patterns:t})=>((e,t=[])=>t.some((t=>e.match(t))))(e,t))))(a),c="wordpress"===r||l===Pt;if(!c&&s&&(s.attributes.providerNameSlug!==r||!r))return(0,je.createBlock)(Ht,{url:a,...i,...s.attributes});const u=(0,je.getBlockVariations)(Ht)?.find((({name:e})=>"wordpress"===e));return u&&n&&Lt(n.html)&&!c?(0,je.createBlock)(Ht,{url:a,...u.attributes,...t}):void 0},Vt=e=>{if(!e)return e;const t=Nt.reduce(((e,{className:t})=>(e[t]=!1,e)),{"wp-has-aspect-ratio":!1});return zt()(e,t)};function Dt(e,t,n=!0){if(!n)return Vt(t);const o=document.implementation.createHTMLDocument("");o.body.innerHTML=e;const a=o.body.querySelector("iframe");if(a&&a.height&&a.width){const e=(a.width/a.height).toFixed(2);for(let n=0;n=o.ratio){return e-o.ratio>.1?Vt(t):zt()(Vt(t),o.className,"wp-has-aspect-ratio")}}}return t}const Ft=Rt(((e,t,n,o,a=!0)=>{if(!e)return{};const r={};let{type:l="rich"}=e;const{html:i,provider_name:s}=e,c=(0,It.kebabCase)((s||t).toLowerCase());return Lt(i)&&(l=Pt),(i||"photo"===l)&&(r.type=l,r.providerNameSlug=c),(u=n)&&Nt.some((({className:e})=>u.includes(e)))||(r.className=Dt(i,n,o&&a)),r;var u})),$t=["audio"];var Gt=function({attributes:e,className:t,setAttributes:n,onReplace:o,isSelected:a,insertBlocksAfter:r}){const{id:l,autoplay:i,caption:s,loop:c,preload:u,src:m}=e,p=(0,Tt.usePrevious)(s),[d,g]=(0,qe.useState)(!!s),h=!l&&(0,Et.isBlobURL)(m),_=(0,ut.useSelect)((e=>{const{getSettings:t}=e(Ye.store);return t().mediaUpload}),[]);(0,qe.useEffect)((()=>{if(!l&&(0,Et.isBlobURL)(m)){const e=(0,Et.getBlobByURL)(m);e&&_({filesList:[e],onFileChange:([e])=>x(e),onError:e=>k(e),allowedTypes:$t})}}),[]),(0,qe.useEffect)((()=>{s&&!p&&g(!0)}),[s,p]);const b=(0,qe.useCallback)((e=>{e&&!s&&e.focus()}),[s]);function f(e){return t=>{n({[e]:t})}}function v(e){if(e!==m){const t=At({attributes:{url:e}});if(void 0!==t&&o)return void o(t);n({src:e,id:void 0})}}(0,qe.useEffect)((()=>{a||s||g(!1)}),[a,s]);const{createErrorNotice:y}=(0,ut.useDispatch)(Bt.store);function k(e){y(e,{type:"snackbar"})}function x(e){e&&e.url?n({src:e.url,id:e.id,caption:e.caption}):n({src:void 0,id:void 0,caption:void 0})}const w=it()(t,{"is-transient":h}),C=(0,Ye.useBlockProps)({className:w});return m?(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ke.ToolbarButton,{onClick:()=>{g(!d),d&&s&&n({caption:void 0})},icon:St,isPressed:d,label:d?(0,Je.__)("Remove caption"):(0,Je.__)("Add caption")})),(0,qe.createElement)(Ye.BlockControls,{group:"other"},(0,qe.createElement)(Ye.MediaReplaceFlow,{mediaId:l,mediaURL:m,allowedTypes:$t,accept:"audio/*",onSelect:x,onSelectURL:v,onError:k})),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Autoplay"),onChange:f("autoplay"),checked:i,help:function(e){return e?(0,Je.__)("Autoplay may cause usability issues for some users."):null}}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Loop"),onChange:f("loop"),checked:c}),(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je._x)("Preload","noun; Audio block parameter"),value:u||"",onChange:e=>n({preload:e||void 0}),options:[{value:"",label:(0,Je.__)("Browser default")},{value:"auto",label:(0,Je.__)("Auto")},{value:"metadata",label:(0,Je.__)("Metadata")},{value:"none",label:(0,Je._x)("None","Preload value")}]}))),(0,qe.createElement)("figure",{...C},(0,qe.createElement)(Ke.Disabled,{isDisabled:!a},(0,qe.createElement)("audio",{controls:"controls",src:m})),h&&(0,qe.createElement)(Ke.Spinner,null),d&&(!Ye.RichText.isEmpty(s)||a)&&(0,qe.createElement)(Ye.RichText,{identifier:"caption",tagName:"figcaption",className:(0,Ye.__experimentalGetElementClassName)("caption"),ref:b,"aria-label":(0,Je.__)("Audio caption text"),placeholder:(0,Je.__)("Add caption"),value:s,onChange:e=>n({caption:e}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>r((0,je.createBlock)((0,je.getDefaultBlockName)()))}))):(0,qe.createElement)("div",{...C},(0,qe.createElement)(Ye.MediaPlaceholder,{icon:(0,qe.createElement)(Ye.BlockIcon,{icon:wt}),onSelect:x,onSelectURL:v,accept:"audio/*",allowedTypes:$t,value:e,onError:k}))};const Ot={from:[{type:"files",isMatch(e){return 1===e.length&&0===e[0].type.indexOf("audio/")},transform(e){const t=e[0];return(0,je.createBlock)("core/audio",{src:(0,Et.createBlobURL)(t)})}},{type:"shortcode",tag:"audio",attributes:{src:{type:"string",shortcode:({named:{src:e,mp3:t,m4a:n,ogg:o,wav:a,wma:r}})=>e||t||n||o||a||r},loop:{type:"string",shortcode:({named:{loop:e}})=>e},autoplay:{type:"string",shortcode:({named:{autoplay:e}})=>e},preload:{type:"string",shortcode:({named:{preload:e}})=>e}}}]};var Ut=Ot;const jt={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/audio",title:"Audio",category:"media",description:"Embed a simple audio player.",keywords:["music","sound","podcast","recording"],textdomain:"default",attributes:{src:{type:"string",source:"attribute",selector:"audio",attribute:"src",__experimentalRole:"content"},caption:{type:"string",source:"html",selector:"figcaption",__experimentalRole:"content"},id:{type:"number",__experimentalRole:"content"},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,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}}},editorStyle:"wp-block-audio-editor",style:"wp-block-audio"},{name:qt}=jt,Wt={icon:wt,example:{attributes:{src:"https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg"},viewportWidth:350},transforms:Ut,deprecated:Ct,edit:Gt,save:function({attributes:e}){const{autoplay:t,caption:n,loop:o,preload:a,src:r}=e;return r&&(0,qe.createElement)("figure",{...Ye.useBlockProps.save()},(0,qe.createElement)("audio",{controls:"controls",src:r,autoPlay:t,loop:o,preload:a}),!Ye.RichText.isEmpty(n)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",value:n,className:(0,Ye.__experimentalGetElementClassName)("caption")}))}},Zt=()=>Qe({name:qt,metadata:jt,settings:Wt});var Qt=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M8 12.5h8V11H8v1.5Z M19 6.5H5a2 2 0 0 0-2 2V15a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8.5a2 2 0 0 0-2-2ZM5 8h14a.5.5 0 0 1 .5.5V15a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V8.5A.5.5 0 0 1 5 8Z"})),Kt=window.wp.privateApis;const{lock:Jt,unlock:Yt}=(0,Kt.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my plugin or theme will inevitably break on the next WordPress release.","@wordpress/block-library"),{cleanEmptyObject:Xt}=Yt(Ye.privateApis);function en(e){if(!e?.style?.typography?.fontFamily)return e;const{fontFamily:t,...n}=e.style.typography;return{...e,style:Xt({...e.style,typography:n}),fontFamily:t.split("|").pop()}}const tn=e=>{const{borderRadius:t,...n}=e,o=[t,n.style?.border?.radius].find((e=>"number"==typeof e&&0!==e));return o?{...n,style:{...n.style,border:{...n.style?.border,radius:`${o}px`}}}:n};const nn=e=>{if(!e.customTextColor&&!e.customBackgroundColor&&!e.customGradient)return e;const t={color:{}};e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),e.customGradient&&(t.color.gradient=e.customGradient);const{customTextColor:n,customBackgroundColor:o,customGradient:a,...r}=e;return{...r,style:t}},on=e=>{const{color:t,textColor:n,...o}={...e,customTextColor:e.textColor&&"#"===e.textColor[0]?e.textColor:void 0,customBackgroundColor:e.color&&"#"===e.color[0]?e.color:void 0};return nn(o)},an={url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"}},rn={attributes:{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,__experimentalFontFamily:!0,__experimentalDefaultControls:{fontSize:!0}},reusable:!1,spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{radius:!0}},__experimentalSelector:".wp-block-button__link"},save({attributes:e,className:t}){const{fontSize:n,linkTarget:o,rel:a,style:r,text:l,title:i,url:s,width:c}=e;if(!l)return null;const u=(0,Ye.__experimentalGetBorderClassesAndStyles)(e),m=(0,Ye.__experimentalGetColorClassesAndStyles)(e),p=(0,Ye.__experimentalGetSpacingClassesAndStyles)(e),d=it()("wp-block-button__link",m.className,u.className,{"no-border-radius":0===r?.border?.radius}),g={...u.style,...m.style,...p.style},h=it()(t,{[`has-custom-width wp-block-button__width-${c}`]:c,"has-custom-font-size":n||r?.typography?.fontSize});return(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:h})},(0,qe.createElement)(Ye.RichText.Content,{tagName:"a",className:d,href:s,title:i,style:g,value:l,target:o,rel:a}))}},ln={attributes:{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},reusable:!1,spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0},__experimentalSelector:".wp-block-button__link"},save({attributes:e,className:t}){const{fontSize:n,linkTarget:o,rel:a,style:r,text:l,title:i,url:s,width:c}=e;if(!l)return null;const u=(0,Ye.__experimentalGetBorderClassesAndStyles)(e),m=(0,Ye.__experimentalGetColorClassesAndStyles)(e),p=(0,Ye.__experimentalGetSpacingClassesAndStyles)(e),d=it()("wp-block-button__link",m.className,u.className,{"no-border-radius":0===r?.border?.radius}),g={...u.style,...m.style,...p.style},h=it()(t,{[`has-custom-width wp-block-button__width-${c}`]:c,"has-custom-font-size":n||r?.typography?.fontSize});return(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:h})},(0,qe.createElement)(Ye.RichText.Content,{tagName:"a",className:d,href:s,title:i,style:g,value:l,target:o,rel:a}))},migrate:en,isEligible({style:e}){return e?.typography?.fontFamily}},sn=[rn,ln,{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...an,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},isEligible({style:e}){return"number"==typeof e?.border?.radius},save({attributes:e,className:t}){const{fontSize:n,linkTarget:o,rel:a,style:r,text:l,title:i,url:s,width:c}=e;if(!l)return null;const u=r?.border?.radius,m=(0,Ye.__experimentalGetColorClassesAndStyles)(e),p=it()("wp-block-button__link",m.className,{"no-border-radius":0===r?.border?.radius}),d={borderRadius:u||void 0,...m.style},g=it()(t,{[`has-custom-width wp-block-button__width-${c}`]:c,"has-custom-font-size":n||r?.typography?.fontSize});return(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:g})},(0,qe.createElement)(Ye.RichText.Content,{tagName:"a",className:p,href:s,title:i,style:d,value:l,target:o,rel:a}))},migrate:(0,Tt.compose)(en,tn)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...an,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"},width:{type:"number"}},save({attributes:e,className:t}){const{borderRadius:n,linkTarget:o,rel:a,text:r,title:l,url:i,width:s}=e,c=(0,Ye.__experimentalGetColorClassesAndStyles)(e),u=it()("wp-block-button__link",c.className,{"no-border-radius":0===n}),m={borderRadius:n?n+"px":void 0,...c.style},p=it()(t,{[`has-custom-width wp-block-button__width-${s}`]:s});return(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:p})},(0,qe.createElement)(Ye.RichText.Content,{tagName:"a",className:u,href:i,title:l,style:m,value:r,target:o,rel:a}))},migrate:(0,Tt.compose)(en,tn)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...an,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"},width:{type:"number"}},save({attributes:e,className:t}){const{borderRadius:n,linkTarget:o,rel:a,text:r,title:l,url:i,width:s}=e,c=(0,Ye.__experimentalGetColorClassesAndStyles)(e),u=it()("wp-block-button__link",c.className,{"no-border-radius":0===n}),m={borderRadius:n?n+"px":void 0,...c.style},p=it()(t,{[`has-custom-width wp-block-button__width-${s}`]:s});return(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:p})},(0,qe.createElement)(Ye.RichText.Content,{tagName:"a",className:u,href:i,title:l,style:m,value:r,target:o,rel:a}))},migrate:(0,Tt.compose)(en,tn)},{supports:{align:!0,alignWide:!1,color:{gradients:!0}},attributes:{...an,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"}},save({attributes:e}){const{borderRadius:t,linkTarget:n,rel:o,text:a,title:r,url:l}=e,i=it()("wp-block-button__link",{"no-border-radius":0===t}),s={borderRadius:t?t+"px":void 0};return(0,qe.createElement)(Ye.RichText.Content,{tagName:"a",className:i,href:l,title:r,style:s,value:a,target:n,rel:o})},migrate:tn},{supports:{align:!0,alignWide:!1},attributes:{...an,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},customGradient:{type:"string"},gradient:{type:"string"}},isEligible:e=>!!(e.customTextColor||e.customBackgroundColor||e.customGradient||e.align),migrate:(0,Tt.compose)(tn,nn,(function(e){if(!e.align)return e;const{align:t,...n}=e;return{...n,className:it()(n.className,`align${e.align}`)}})),save({attributes:e}){const{backgroundColor:t,borderRadius:n,customBackgroundColor:o,customTextColor:a,customGradient:r,linkTarget:l,gradient:i,rel:s,text:c,textColor:u,title:m,url:p}=e,d=(0,Ye.getColorClassName)("color",u),g=!r&&(0,Ye.getColorClassName)("background-color",t),h=(0,Ye.__experimentalGetGradientClass)(i),_=it()("wp-block-button__link",{"has-text-color":u||a,[d]:d,"has-background":t||o||r||i,[g]:g,"no-border-radius":0===n,[h]:h}),b={background:r||void 0,backgroundColor:g||r||i?void 0:o,color:d?void 0:a,borderRadius:n?n+"px":void 0};return(0,qe.createElement)("div",null,(0,qe.createElement)(Ye.RichText.Content,{tagName:"a",className:_,href:p,title:m,style:b,value:c,target:l,rel:s}))}},{attributes:{...an,align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"}},isEligible(e){return e.className&&e.className.includes("is-style-squared")},migrate(e){let t=e.className;return t&&(t=t.replace(/is-style-squared[\s]?/,"").trim()),tn(nn({...e,className:t||void 0,borderRadius:0}))},save({attributes:e}){const{backgroundColor:t,customBackgroundColor:n,customTextColor:o,linkTarget:a,rel:r,text:l,textColor:i,title:s,url:c}=e,u=(0,Ye.getColorClassName)("color",i),m=(0,Ye.getColorClassName)("background-color",t),p=it()("wp-block-button__link",{"has-text-color":i||o,[u]:u,"has-background":t||n,[m]:m}),d={backgroundColor:m?void 0:n,color:u?void 0:o};return(0,qe.createElement)("div",null,(0,qe.createElement)(Ye.RichText.Content,{tagName:"a",className:p,href:c,title:s,style:d,value:l,target:a,rel:r}))}},{attributes:{...an,align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"}},migrate:on,save({attributes:e}){const{url:t,text:n,title:o,backgroundColor:a,textColor:r,customBackgroundColor:l,customTextColor:i}=e,s=(0,Ye.getColorClassName)("color",r),c=(0,Ye.getColorClassName)("background-color",a),u=it()("wp-block-button__link",{"has-text-color":r||i,[s]:s,"has-background":a||l,[c]:c}),m={backgroundColor:c?void 0:l,color:s?void 0:i};return(0,qe.createElement)("div",null,(0,qe.createElement)(Ye.RichText.Content,{tagName:"a",className:u,href:t,title:o,style:m,value:n}))}},{attributes:{...an,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){const{url:t,text:n,title:o,align:a,color:r,textColor:l}=e,i={backgroundColor:r,color:l};return(0,qe.createElement)("div",{className:`align${a}`},(0,qe.createElement)(Ye.RichText.Content,{tagName:"a",className:"wp-block-button__link",href:t,title:o,style:i,value:n}))},migrate:on},{attributes:{...an,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){const{url:t,text:n,title:o,align:a,color:r,textColor:l}=e;return(0,qe.createElement)("div",{className:`align${a}`,style:{backgroundColor:r}},(0,qe.createElement)(Ye.RichText.Content,{tagName:"a",href:t,title:o,style:{color:l},value:n}))},migrate:on}];var cn=sn,un=window.wp.keycodes;var mn=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"}));var pn=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M17.031 4.703 15.576 4l-1.56 3H14v.03l-2.324 4.47H9.5V13h1.396l-1.502 2.889h-.95a3.694 3.694 0 0 1 0-7.389H10V7H8.444a5.194 5.194 0 1 0 0 10.389h.17L7.5 19.53l1.416.719L15.049 8.5h.507a3.694 3.694 0 0 1 0 7.39H14v1.5h1.556a5.194 5.194 0 0 0 .273-10.383l1.202-2.304Z"}));const dn="noreferrer noopener";function gn({selectedWidth:e,setAttributes:t}){return(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Width settings")},(0,qe.createElement)(Ke.ButtonGroup,{"aria-label":(0,Je.__)("Button width")},[25,50,75,100].map((n=>(0,qe.createElement)(Ke.Button,{key:n,isSmall:!0,variant:n===e?"primary":void 0,onClick:()=>{var o;t({width:e===(o=n)?void 0:o})}},n,"%")))))}var hn=function(e){const{attributes:t,setAttributes:n,className:o,isSelected:a,onReplace:r,mergeBlocks:l}=e,{textAlign:i,linkTarget:s,placeholder:c,rel:u,style:m,text:p,url:d,width:g}=t,[h,_]=(0,qe.useState)(null),b=(0,Ye.__experimentalUseBorderProps)(t),f=(0,Ye.__experimentalUseColorProps)(t),v=(0,Ye.__experimentalGetSpacingClassesAndStyles)(t),y=(0,qe.useRef)(),k=(0,qe.useRef)(),x=(0,Ye.useBlockProps)({ref:(0,Tt.useMergeRefs)([_,y]),onKeyDown:function(e){un.isKeyboardEvent.primary(e,"k")?B(e):un.isKeyboardEvent.primaryShift(e,"k")&&(T(),k.current?.focus())}}),[w,C]=(0,qe.useState)(!1),E=!!d,S="_blank"===s;function B(e){e.preventDefault(),C(!0)}function T(){n({url:void 0,linkTarget:void 0,rel:void 0}),C(!1)}return(0,qe.useEffect)((()=>{a||C(!1)}),[a]),(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)("div",{...x,className:it()(x.className,{[`has-custom-width wp-block-button__width-${g}`]:g,"has-custom-font-size":x.style.fontSize})},(0,qe.createElement)(Ye.RichText,{ref:k,"aria-label":(0,Je.__)("Button text"),placeholder:c||(0,Je.__)("Add text…"),value:p,onChange:e=>{n({text:e.replace(/<\/?a[^>]*>/g,"")})},withoutInteractiveFormatting:!0,className:it()(o,"wp-block-button__link",f.className,b.className,{[`has-text-align-${i}`]:i,"no-border-radius":0===m?.border?.radius},(0,Ye.__experimentalGetElementClassName)("button")),style:{...b.style,...f.style,...v.style},onSplit:e=>(0,je.createBlock)("core/button",{...t,text:e}),onReplace:r,onMerge:l,identifier:"text"})),(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{value:i,onChange:e=>{n({textAlign:e})}}),!E&&(0,qe.createElement)(Ke.ToolbarButton,{name:"link",icon:mn,title:(0,Je.__)("Link"),shortcut:un.displayShortcut.primary("k"),onClick:B}),E&&(0,qe.createElement)(Ke.ToolbarButton,{name:"link",icon:pn,title:(0,Je.__)("Unlink"),shortcut:un.displayShortcut.primaryShift("k"),onClick:T,isActive:!0})),a&&(w||E)&&(0,qe.createElement)(Ke.Popover,{placement:"bottom",onClose:()=>{C(!1),k.current?.focus()},anchor:h,focusOnMount:!!w&&"firstElement",__unstableSlotName:"__unstable-block-tools-after",shift:!0},(0,qe.createElement)(Ye.__experimentalLinkControl,{className:"wp-block-navigation-link__inline-link-input",value:{url:d,opensInNewTab:S},onChange:({url:e="",opensInNewTab:t})=>{n({url:(0,st.prependHTTP)(e)}),S!==t&&function(e){const t=e?"_blank":void 0;let o=u;t&&!u?o=dn:t||u!==dn||(o=void 0),n({linkTarget:t,rel:o})}(t)},onRemove:()=>{T(),k.current?.focus()},forceIsEditingLink:w})),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(gn,{selectedWidth:g,setAttributes:n})),(0,qe.createElement)(Ye.InspectorControls,{group:"advanced"},(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Link rel"),value:u||"",onChange:e=>n({rel:e})})))};const _n={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/button",title:"Button",category:"design",parent:["core/buttons"],description:"Prompt visitors to take action with a button-style link.",keywords:["link"],textdomain:"default",attributes:{textAlign:{type:"string"},url:{type:"string",source:"attribute",selector:"a",attribute:"href",__experimentalRole:"content"},title:{type:"string",source:"attribute",selector:"a",attribute:"title",__experimentalRole:"content"},text:{type:"string",source:"html",selector:"a",__experimentalRole:"content"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target",__experimentalRole:"content"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel",__experimentalRole:"content"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!1,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},reusable:!1,shadow:!0,spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},__experimentalSelector:".wp-block-button .wp-block-button__link"},styles:[{name:"fill",label:"Fill",isDefault:!0},{name:"outline",label:"Outline"}],editorStyle:"wp-block-button-editor",style:"wp-block-button"},{name:bn}=_n,fn={icon:Qt,example:{attributes:{className:"is-style-fill",text:(0,Je.__)("Call to Action")}},edit:hn,save:function({attributes:e,className:t}){const{textAlign:n,fontSize:o,linkTarget:a,rel:r,style:l,text:i,title:s,url:c,width:u}=e;if(!i)return null;const m=(0,Ye.__experimentalGetBorderClassesAndStyles)(e),p=(0,Ye.__experimentalGetColorClassesAndStyles)(e),d=(0,Ye.__experimentalGetSpacingClassesAndStyles)(e),g=it()("wp-block-button__link",p.className,m.className,{[`has-text-align-${n}`]:n,"no-border-radius":0===l?.border?.radius},(0,Ye.__experimentalGetElementClassName)("button")),h={...m.style,...p.style,...d.style},_=it()(t,{[`has-custom-width wp-block-button__width-${u}`]:u,"has-custom-font-size":o||l?.typography?.fontSize});return(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:_})},(0,qe.createElement)(Ye.RichText.Content,{tagName:"a",className:g,href:c,title:s,style:h,value:i,target:a,rel:r}))},deprecated:cn,merge:(e,{text:t=""})=>({...e,text:(e.text||"")+t})},vn=()=>Qe({name:bn,metadata:_n,settings:fn});var yn=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M14.5 17.5H9.5V16H14.5V17.5Z M14.5 8H9.5V6.5H14.5V8Z M7 3.5H17C18.1046 3.5 19 4.39543 19 5.5V9C19 10.1046 18.1046 11 17 11H7C5.89543 11 5 10.1046 5 9V5.5C5 4.39543 5.89543 3.5 7 3.5ZM17 5H7C6.72386 5 6.5 5.22386 6.5 5.5V9C6.5 9.27614 6.72386 9.5 7 9.5H17C17.2761 9.5 17.5 9.27614 17.5 9V5.5C17.5 5.22386 17.2761 5 17 5Z M7 13H17C18.1046 13 19 13.8954 19 15V18.5C19 19.6046 18.1046 20.5 17 20.5H7C5.89543 20.5 5 19.6046 5 18.5V15C5 13.8954 5.89543 13 7 13ZM17 14.5H7C6.72386 14.5 6.5 14.7239 6.5 15V18.5C6.5 18.7761 6.72386 19 7 19H17C17.2761 19 17.5 18.7761 17.5 18.5V15C17.5 14.7239 17.2761 14.5 17 14.5Z"}));const kn=e=>{if(e.layout)return e;const{contentJustification:t,orientation:n,...o}=e;return(t||n)&&Object.assign(o,{layout:{type:"flex",...t&&{justifyContent:t},...n&&{orientation:n}}}),o},xn=[{attributes:{contentJustification:{type:"string"},orientation:{type:"string",default:"horizontal"}},supports:{anchor:!0,align:["wide","full"],__experimentalExposeControlsToChildren:!0,spacing:{blockGap:!0,margin:["top","bottom"],__experimentalDefaultControls:{blockGap:!0}}},isEligible:({contentJustification:e,orientation:t})=>!!e||!!t,migrate:kn,save({attributes:{contentJustification:e,orientation:t}}){return(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:it()({[`is-content-justification-${e}`]:e,"is-vertical":"vertical"===t})})},(0,qe.createElement)(Ye.InnerBlocks.Content,null))}},{supports:{align:["center","left","right"],anchor:!0},save(){return(0,qe.createElement)("div",null,(0,qe.createElement)(Ye.InnerBlocks.Content,null))},isEligible({align:e}){return e&&["center","left","right"].includes(e)},migrate(e){return kn({...e,align:void 0,contentJustification:e.align})}}];var wn=xn,Cn=window.wp.richText;const{name:En}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/buttons",title:"Buttons",category:"design",description:"Prompt visitors to take action with a group of button-style links.",keywords:["link"],textdomain:"default",supports:{anchor:!0,align:["wide","full"],html:!1,__experimentalExposeControlsToChildren:!0,spacing:{blockGap:!0,margin:["top","bottom"],__experimentalDefaultControls:{blockGap:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}}},editorStyle:"wp-block-buttons-editor",style:"wp-block-buttons"},Sn={from:[{type:"block",isMultiBlock:!0,blocks:["core/button"],transform:e=>(0,je.createBlock)(En,{},e.map((e=>(0,je.createBlock)("core/button",e))))},{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>(0,je.createBlock)(En,{},e.map((e=>{const t=(0,Cn.__unstableCreateElement)(document,e.content),n=t.innerText||"",o=t.querySelector("a"),a=o?.getAttribute("href");return(0,je.createBlock)("core/button",{text:n,url:a})}))),isMatch:e=>e.every((e=>{const t=(0,Cn.__unstableCreateElement)(document,e.content),n=t.innerText||"",o=t.querySelectorAll("a");return n.length<=30&&o.length<=1}))}]};var Bn=Sn;const Tn=[bn],Nn={name:bn,attributesToCopy:["backgroundColor","border","className","fontFamily","fontSize","gradient","style","textColor","width"]};var Pn=function({attributes:e,className:t}){var n;const{fontSize:o,layout:a,style:r}=e,l=(0,Ye.useBlockProps)({className:it()(t,{"has-custom-font-size":o||r?.typography?.fontSize})}),i=(0,ut.useSelect)((e=>{const t=e(Ye.store).getSettings().__experimentalPreferredStyleVariations;return t?.value?.[bn]}),[]),s=(0,Ye.useInnerBlocksProps)(l,{allowedBlocks:Tn,__experimentalDefaultBlock:Nn,__experimentalDirectInsert:!0,template:[[bn,{className:i&&`is-style-${i}`}]],templateInsertUpdatesSelection:!0,orientation:null!==(n=a?.orientation)&&void 0!==n?n:"horizontal"});return(0,qe.createElement)("div",{...s})};const In={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/buttons",title:"Buttons",category:"design",description:"Prompt visitors to take action with a group of button-style links.",keywords:["link"],textdomain:"default",supports:{anchor:!0,align:["wide","full"],html:!1,__experimentalExposeControlsToChildren:!0,spacing:{blockGap:!0,margin:["top","bottom"],__experimentalDefaultControls:{blockGap:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}}},editorStyle:"wp-block-buttons-editor",style:"wp-block-buttons"},{name:Mn}=In,zn={icon:yn,example:{innerBlocks:[{name:"core/button",attributes:{text:(0,Je.__)("Find out more")}},{name:"core/button",attributes:{text:(0,Je.__)("Contact us")}}]},deprecated:wn,transforms:Bn,edit:Pn,save:function({attributes:e,className:t}){const{fontSize:n,style:o}=e,a=Ye.useBlockProps.save({className:it()(t,{"has-custom-font-size":n||o?.typography?.fontSize})}),r=Ye.useInnerBlocksProps.save(a);return(0,qe.createElement)("div",{...r})}},Rn=()=>Qe({name:Mn,metadata:In,settings:zn});var Hn=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V7h15v12zM9 10H7v2h2v-2zm0 4H7v2h2v-2zm4-4h-2v2h2v-2zm4 0h-2v2h2v-2zm-4 4h-2v2h2v-2zm4 0h-2v2h2v-2z"}));const Ln=Rt((e=>{if(!e)return{};const t=new Date(e);return{year:t.getFullYear(),month:t.getMonth()+1}}));var An={from:[{type:"block",blocks:["core/archives"],transform:()=>(0,je.createBlock)("core/calendar")}],to:[{type:"block",blocks:["core/archives"],transform:()=>(0,je.createBlock)("core/archives")}]};const Vn={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/calendar",title:"Calendar",category:"widgets",description:"A calendar of your site’s posts.",keywords:["posts","archive"],textdomain:"default",attributes:{month:{type:"integer"},year:{type:"integer"}},supports:{align:!0,color:{link:!0,__experimentalSkipSerialization:["text","background"],__experimentalDefaultControls:{background:!0,text:!0},__experimentalSelector:"table, th"},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},style:"wp-block-calendar"},{name:Dn}=Vn,Fn={icon:Hn,example:{},edit:function({attributes:e}){const t=(0,Ye.useBlockProps)(),{date:n,hasPosts:o,hasPostsResolved:a}=(0,ut.useSelect)((e=>{const{getEntityRecords:t,hasFinishedResolution:n}=e(ct.store),o={status:"publish",per_page:1},a=t("postType","post",o),r=n("getEntityRecords",["postType","post",o]);let l;const i=e("core/editor");if(i){"post"===i.getEditedPostAttribute("type")&&(l=i.getEditedPostAttribute("date"))}return{date:l,hasPostsResolved:r,hasPosts:r&&1===a?.length}}),[]);return o?(0,qe.createElement)("div",{...t},(0,qe.createElement)(Ke.Disabled,null,(0,qe.createElement)(et(),{block:"core/calendar",attributes:{...e,...Ln(n)}}))):(0,qe.createElement)("div",{...t},(0,qe.createElement)(Ke.Placeholder,{icon:Hn,label:(0,Je.__)("Calendar")},a?(0,Je.__)("No published posts found."):(0,qe.createElement)(Ke.Spinner,null)))},transforms:An},$n=()=>Qe({name:Dn,metadata:Vn,settings:Fn});var Gn=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M6 5.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2V6zm11-.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM13 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2h-3a2 2 0 01-2-2V6zm5 8.5h-3a.5.5 0 00-.5.5v3a.5.5 0 00.5.5h3a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5zM15 13a2 2 0 00-2 2v3a2 2 0 002 2h3a2 2 0 002-2v-3a2 2 0 00-2-2h-3zm-9 1.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5zM4 15a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2v-3z",fillRule:"evenodd",clipRule:"evenodd"})),On=window.wp.htmlEntities;var Un=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"m21.5 9.1-6.6-6.6-4.2 5.6c-1.2-.1-2.4.1-3.6.7-.1 0-.1.1-.2.1-.5.3-.9.6-1.2.9l3.7 3.7-5.7 5.7v1.1h1.1l5.7-5.7 3.7 3.7c.4-.4.7-.8.9-1.2.1-.1.1-.2.2-.3.6-1.1.8-2.4.6-3.6l5.6-4.1zm-7.3 3.5.1.9c.1.9 0 1.8-.4 2.6l-6-6c.8-.4 1.7-.5 2.6-.4l.9.1L15 4.9 19.1 9l-4.9 3.6z"}));const jn={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/categories",title:"Categories List",category:"widgets",description:"Display a list of all categories.",textdomain:"default",attributes:{displayAsDropdown:{type:"boolean",default:!1},showHierarchy:{type:"boolean",default:!1},showPostCounts:{type:"boolean",default:!1},showOnlyTopLevel:{type:"boolean",default:!1},showEmpty:{type:"boolean",default:!1}},supports:{align:!0,html:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-categories-editor",style:"wp-block-categories"},{name:qn}=jn,Wn={icon:Gn,example:{},edit:function e({attributes:{displayAsDropdown:t,showHierarchy:n,showPostCounts:o,showOnlyTopLevel:a,showEmpty:r},setAttributes:l,className:i}){const s=(0,Tt.useInstanceId)(e,"blocks-category-select"),c={per_page:-1,hide_empty:!r,context:"view"};a&&(c.parent=0);const{records:u,isResolving:m}=(0,ct.useEntityRecords)("taxonomy","category",c),p=e=>u?.length?null===e?u:u.filter((({parent:t})=>t===e)):[],d=e=>t=>l({[e]:t}),g=e=>e?(0,On.decodeEntities)(e).trim():(0,Je.__)("(Untitled)"),h=e=>{const t=p(e.id),{id:a,link:r,count:l,name:i}=e;return(0,qe.createElement)("li",{key:a,className:`cat-item cat-item-${a}`},(0,qe.createElement)("a",{href:r,target:"_blank",rel:"noreferrer noopener"},g(i)),o&&` (${l})`,n&&!!t.length&&(0,qe.createElement)("ul",{className:"children"},t.map((e=>h(e)))))},_=(e,t)=>{const{id:a,count:r,name:l}=e,i=p(a);return[(0,qe.createElement)("option",{key:a,className:`level-${t}`},Array.from({length:3*t}).map((()=>" ")),g(l),o&&` (${r})`),n&&!!i.length&&i.map((e=>_(e,t+1)))]},b=!u?.length||t||m?"div":"ul",f=it()(i,{"wp-block-categories-list":!!u?.length&&!t&&!m,"wp-block-categories-dropdown":!!u?.length&&t&&!m}),v=(0,Ye.useBlockProps)({className:f});return(0,qe.createElement)(b,{...v},(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Display as dropdown"),checked:t,onChange:d("displayAsDropdown")}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show post counts"),checked:o,onChange:d("showPostCounts")}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show only top level categories"),checked:a,onChange:d("showOnlyTopLevel")}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show empty categories"),checked:r,onChange:d("showEmpty")}),!a&&(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show hierarchy"),checked:n,onChange:d("showHierarchy")}))),m&&(0,qe.createElement)(Ke.Placeholder,{icon:Un,label:(0,Je.__)("Categories")},(0,qe.createElement)(Ke.Spinner,null)),!m&&0===u?.length&&(0,qe.createElement)("p",null,(0,Je.__)("Your site does not have any posts, so there is nothing to display here at the moment.")),!m&&u?.length>0&&(t?(()=>{const e=p(n?0:null);return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.VisuallyHidden,{as:"label",htmlFor:s},(0,Je.__)("Categories")),(0,qe.createElement)("select",{id:s},(0,qe.createElement)("option",null,(0,Je.__)("Select Category")),e.map((e=>_(e,0)))))})():p(n?0:null).map((e=>h(e)))))}},Zn=()=>Qe({name:qn,metadata:jn,settings:Wn});var Qn=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.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"}));var Kn=({clientId:e})=>{const{replaceBlocks:t}=(0,ut.useDispatch)(Ye.store),n=(0,ut.useSelect)((t=>t(Ye.store).getBlock(e)),[e]);return(0,qe.createElement)(Ke.ToolbarButton,{onClick:()=>t(n.clientId,(0,je.rawHandler)({HTML:(0,je.serialize)(n)}))},(0,Je.__)("Convert to blocks"))};function Jn(e){const t=(0,ut.useSelect)((e=>e(Ye.store).getSettings().styles));return(0,qe.useEffect)((()=>{const{baseURL:n,suffix:o,settings:a}=window.wpEditorL10n.tinymce;return window.tinymce.EditorManager.overrideDefaults({base_url:n,suffix:o}),window.wp.oldEditor.initialize(e.id,{tinymce:{...a,setup(e){e.on("init",(()=>{const n=e.getDoc();t.forEach((({css:e})=>{const t=n.createElement("style");t.innerHTML=e,n.head.appendChild(t)}))}))}}}),()=>{window.wp.oldEditor.remove(e.id)}}),[]),(0,qe.createElement)("textarea",{...e})}function Yn(e){const{clientId:t,attributes:{content:n},setAttributes:o,onReplace:a}=e,[r,l]=(0,qe.useState)(!1),i=`editor-${t}`,s=()=>n?l(!1):a([]);return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ke.ToolbarGroup,null,(0,qe.createElement)(Ke.ToolbarButton,{onClick:()=>l(!0)},(0,Je.__)("Edit")))),n&&(0,qe.createElement)(qe.RawHTML,null,n),(r||!n)&&(0,qe.createElement)(Ke.Modal,{title:(0,Je.__)("Classic Editor"),onRequestClose:s,shouldCloseOnClickOutside:!1,overlayClassName:"block-editor-freeform-modal"},(0,qe.createElement)(Jn,{id:i,defaultValue:n}),(0,qe.createElement)(Ke.Flex,{className:"block-editor-freeform-modal__actions",justify:"flex-end",expanded:!1},(0,qe.createElement)(Ke.FlexItem,null,(0,qe.createElement)(Ke.Button,{variant:"tertiary",onClick:s},(0,Je.__)("Cancel"))),(0,qe.createElement)(Ke.FlexItem,null,(0,qe.createElement)(Ke.Button,{variant:"primary",onClick:()=>{o({content:window.wp.oldEditor.getContent(i)}),l(!1)}},(0,Je.__)("Save"))))))}const{wp:Xn}=window;function eo({clientId:e,attributes:{content:t},setAttributes:n,onReplace:o}){const{getMultiSelectedBlockClientIds:a}=(0,ut.useSelect)(Ye.store),r=(0,qe.useRef)(!1);return(0,qe.useEffect)((()=>{if(!r.current)return;const n=window.tinymce.get(`editor-${e}`),o=n?.getContent();o!==t&&n.setContent(t||"")}),[t]),(0,qe.useEffect)((()=>{const{baseURL:l,suffix:i}=window.wpEditorL10n.tinymce;function s(e){let r;t&&e.on("loadContent",(()=>e.setContent(t))),e.on("blur",(()=>{r=e.selection.getBookmark(2,!0);const t=document.querySelector(".interface-interface-skeleton__content"),o=t.scrollTop;return a()?.length||n({content:e.getContent()}),e.once("focus",(()=>{r&&(e.selection.moveToBookmark(r),t.scrollTop!==o&&(t.scrollTop=o))})),!1})),e.on("mousedown touchstart",(()=>{r=null}));const l=(0,Tt.debounce)((()=>{const t=e.getContent();t!==e._lastChange&&(e._lastChange=t,n({content:t}))}),250);e.on("Paste Change input Undo Redo",l),e.on("remove",l.cancel),e.on("keydown",(t=>{un.isKeyboardEvent.primary(t,"z")&&t.stopPropagation(),t.keyCode!==un.BACKSPACE&&t.keyCode!==un.DELETE||!function(e){const t=e.getBody();return!(t.childNodes.length>1)&&(0===t.childNodes.length||!(t.childNodes[0].childNodes.length>1)&&/^\n?$/.test(t.innerText||t.textContent))}(e)||(o([]),t.preventDefault(),t.stopImmediatePropagation());const{altKey:n}=t;n&&t.keyCode===un.F10&&t.stopPropagation()})),e.on("init",(()=>{const t=e.getBody();t.ownerDocument.activeElement===t&&(t.blur(),e.focus())}))}function c(){const{settings:t}=window.wpEditorL10n.tinymce;Xn.oldEditor.initialize(`editor-${e}`,{tinymce:{...t,inline:!0,content_css:!1,fixed_toolbar_container:`#toolbar-${e}`,setup:s}})}function u(){"complete"===document.readyState&&c()}return r.current=!0,window.tinymce.EditorManager.overrideDefaults({base_url:l,suffix:i}),"complete"===document.readyState?c():document.addEventListener("readystatechange",u),()=>{document.removeEventListener("readystatechange",u),Xn.oldEditor.remove(`editor-${e}`)}}),[]),(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)("div",{key:"toolbar",id:`toolbar-${e}`,className:"block-library-classic__toolbar",onClick:function(){const t=window.tinymce.get(`editor-${e}`);t&&t.focus()},"data-placeholder":(0,Je.__)("Classic"),onKeyDown:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}}),(0,qe.createElement)("div",{key:"editor",id:`editor-${e}`,className:"wp-block-freeform block-library-rich-text__tinymce"}))}const to={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/freeform",title:"Classic",category:"text",description:"Use the classic WordPress editor.",textdomain:"default",attributes:{content:{type:"string",source:"raw"}},supports:{className:!1,customClassName:!1,reusable:!1},editorStyle:"wp-block-freeform-editor"},{name:no}=to,oo={icon:Qn,edit:function(e){const{clientId:t}=e,n=(0,ut.useSelect)((e=>e(Ye.store).canRemoveBlock(t)),[t]),[o,a]=(0,qe.useState)(!1),r=(0,Tt.useRefEffect)((e=>{a(e.ownerDocument!==document)}),[]);return(0,qe.createElement)(qe.Fragment,null,n&&(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ke.ToolbarGroup,null,(0,qe.createElement)(Kn,{clientId:t}))),(0,qe.createElement)("div",{...(0,Ye.useBlockProps)({ref:r})},o?(0,qe.createElement)(Yn,{...e}):(0,qe.createElement)(eo,{...e})))},save:function({attributes:e}){const{content:t}=e;return(0,qe.createElement)(qe.RawHTML,null,t)}},ao=()=>Qe({name:no,metadata:to,settings:oo});var ro=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.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"}));function lo(e){return e.replace(/\[/g,"[")}function io(e){return e.replace(/^(\s*https?:)\/\/([^\s<>"]+\s*)$/m,"$1//$2")}var so={from:[{type:"enter",regExp:/^```$/,transform:()=>(0,je.createBlock)("core/code")},{type:"block",blocks:["core/html","core/paragraph"],transform:({content:e})=>(0,je.createBlock)("core/code",{content:e})},{type:"raw",isMatch:e=>"PRE"===e.nodeName&&1===e.children.length&&"CODE"===e.firstChild.nodeName,schema:{pre:{children:{code:{children:{"#text":{}}}}}}}],to:[{type:"block",blocks:["core/paragraph"],transform:({content:e})=>(0,je.createBlock)("core/paragraph",{content:e.replace(/\n/g,"
")})}]};const co={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/code",title:"Code",category:"text",description:"Display code snippets that respect your spacing and tabs.",textdomain:"default",attributes:{content:{type:"string",source:"html",selector:"code"}},supports:{align:["wide"],anchor:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{margin:["top","bottom"],padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{width:!0,color:!0}},color:{text:!0,background:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}}},style:"wp-block-code"},{name:uo}=co,mo={icon:ro,example:{attributes:{content:(0,Je.__)("// 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:so,edit:function({attributes:e,setAttributes:t,onRemove:n}){const o=(0,Ye.useBlockProps)();return(0,qe.createElement)("pre",{...o},(0,qe.createElement)(Ye.RichText,{tagName:"code",value:e.content,onChange:e=>t({content:e}),onRemove:n,placeholder:(0,Je.__)("Write code…"),"aria-label":(0,Je.__)("Code"),preserveWhiteSpace:!0,__unstablePastePlainText:!0}))},save:function({attributes:e}){return(0,qe.createElement)("pre",{...Ye.useBlockProps.save()},(0,qe.createElement)(Ye.RichText.Content,{tagName:"code",value:(t=e.content,(0,Tt.pipe)(lo,io)(t||""))}));var t}},po=()=>Qe({name:uo,metadata:co,settings:mo});var go=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.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"}));const ho=[{attributes:{verticalAlignment:{type:"string"},width:{type:"number",min:0,max:100}},isEligible({width:e}){return isFinite(e)},migrate(e){return{...e,width:`${e.width}%`}},save({attributes:e}){const{verticalAlignment:t,width:n}=e,o=it()({[`is-vertically-aligned-${t}`]:t}),a={flexBasis:n+"%"};return(0,qe.createElement)("div",{className:o,style:a},(0,qe.createElement)(Ye.InnerBlocks.Content,null))}}];var _o=ho;var bo=function({attributes:{verticalAlignment:e,width:t,templateLock:n,allowedBlocks:o},setAttributes:a,clientId:r}){const l=it()("block-core-columns",{[`is-vertically-aligned-${e}`]:e}),i=(0,Ke.__experimentalUseCustomUnits)({availableUnits:(0,Ye.useSetting)("spacing.units")||["%","px","em","rem","vw"]}),{columnsIds:s,hasChildBlocks:c,rootClientId:u}=(0,ut.useSelect)((e=>{const{getBlockOrder:t,getBlockRootClientId:n}=e(Ye.store),o=n(r);return{hasChildBlocks:t(r).length>0,rootClientId:o,columnsIds:t(o)}}),[r]),{updateBlockAttributes:m}=(0,ut.useDispatch)(Ye.store),p=Number.isFinite(t)?t+"%":t,d=(0,Ye.useBlockProps)({className:l,style:p?{flexBasis:p}:void 0}),g=s.length,h=s.indexOf(r)+1,_=(0,Je.sprintf)((0,Je.__)("%1$s (%2$d of %3$d)"),d["aria-label"],h,g),b=(0,Ye.useInnerBlocksProps)({...d,"aria-label":_},{templateLock:n,allowedBlocks:o,renderAppender:c?void 0:Ye.InnerBlocks.ButtonBlockAppender});return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ye.BlockVerticalAlignmentToolbar,{onChange:e=>{a({verticalAlignment:e}),m(u,{verticalAlignment:null})},value:e})),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Column settings")},(0,qe.createElement)(Ke.__experimentalUnitControl,{label:(0,Je.__)("Width"),labelPosition:"edge",__unstableInputWidth:"80px",value:t||"",onChange:e=>{e=0>parseFloat(e)?"0":e,a({width:e})},units:i}))),(0,qe.createElement)("div",{...b}))};const fo={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/column",title:"Column",category:"design",parent:["core/columns"],description:"A single column within a columns block.",textdomain:"default",attributes:{verticalAlignment:{type:"string"},width:{type:"string"},allowedBlocks:{type:"array"},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]}},supports:{anchor:!0,reusable:!1,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{blockGap:!0,padding:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},__experimentalBorder:{color:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,style:!0,width:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:!0}},{name:vo}=fo,yo={icon:go,edit:bo,save:function({attributes:e}){const{verticalAlignment:t,width:n}=e,o=it()({[`is-vertically-aligned-${t}`]:t});let a;if(n&&/\d/.test(n)){let e=Number.isFinite(n)?n+"%":n;if(!Number.isFinite(n)&&n?.endsWith("%")){const t=1e12;e=Math.round(Number.parseFloat(n)*t)/t+"%"}a={flexBasis:e}}const r=Ye.useBlockProps.save({className:o,style:a}),l=Ye.useInnerBlocksProps.save(r);return(0,qe.createElement)("div",{...l})},deprecated:_o},ko=()=>Qe({name:vo,metadata:fo,settings:yo});var xo=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.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 wo(e){let t,{doc:n}=wo;n||(n=document.implementation.createHTMLDocument(""),wo.doc=n),n.body.innerHTML=e;for(const e of n.body.firstChild.classList)if(t=e.match(/^layout-column-(\d+)$/))return Number(t[1])-1}var Co=[{attributes:{verticalAlignment:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>{if(!e.customTextColor&&!e.customBackgroundColor)return e;const t={color:{}};e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor);const{customTextColor:n,customBackgroundColor:o,...a}=e;return{...a,style:t,isStackedOnMobile:!0}},save({attributes:e}){const{verticalAlignment:t,backgroundColor:n,customBackgroundColor:o,textColor:a,customTextColor:r}=e,l=(0,Ye.getColorClassName)("background-color",n),i=(0,Ye.getColorClassName)("color",a),s=it()({"has-background":n||o,"has-text-color":a||r,[l]:l,[i]:i,[`are-vertically-aligned-${t}`]:t}),c={backgroundColor:l?void 0:o,color:i?void 0:r};return(0,qe.createElement)("div",{className:s||void 0,style:c},(0,qe.createElement)(Ye.InnerBlocks.Content,null))}},{attributes:{columns:{type:"number",default:2}},isEligible(e,t){return!!t.some((e=>/layout-column-\d+/.test(e.originalContent)))&&t.some((e=>void 0!==wo(e.originalContent)))},migrate(e,t){const n=t.reduce(((e,t)=>{const{originalContent:n}=t;let o=wo(n);return void 0===o&&(o=0),e[o]||(e[o]=[]),e[o].push(t),e}),[]).map((e=>(0,je.createBlock)("core/column",{},e))),{columns:o,...a}=e;return[{...a,isStackedOnMobile:!0},n]},save({attributes:e}){const{columns:t}=e;return(0,qe.createElement)("div",{className:`has-${t}-columns`},(0,qe.createElement)(Ye.InnerBlocks.Content,null))}},{attributes:{columns:{type:"number",default:2}},migrate(e,t){const{columns:n,...o}=e;return[e={...o,isStackedOnMobile:!0},t]},save({attributes:e}){const{verticalAlignment:t,columns:n}=e,o=it()(`has-${n}-columns`,{[`are-vertically-aligned-${t}`]:t});return(0,qe.createElement)("div",{className:o},(0,qe.createElement)(Ye.InnerBlocks.Content,null))}}];const Eo=e=>{const t=parseFloat(e);return Number.isFinite(t)?parseFloat(t.toFixed(2)):void 0};function So(e,t){const{width:n=100/t}=e.attributes;return Eo(n)}function Bo(e,t,n=e.length){const o=function(e,t=e.length){return e.reduce(((e,n)=>e+So(n,t)),0)}(e,n);return Object.fromEntries(Object.entries(function(e,t=e.length){return e.reduce(((e,n)=>{const o=So(n,t);return Object.assign(e,{[n.clientId]:o})}),{})}(e,n)).map((([e,n])=>[e,Eo(t*n/o)])))}function To(e,t){return e.map((e=>({...e,attributes:{...e.attributes,width:`${t[e.clientId]}%`}})))}const No=["core/column"];const Po=(0,ut.withDispatch)(((e,t,n)=>({updateAlignment(o){const{clientId:a,setAttributes:r}=t,{updateBlockAttributes:l}=e(Ye.store),{getBlockOrder:i}=n.select(Ye.store);r({verticalAlignment:o});i(a).forEach((e=>{l(e,{verticalAlignment:o})}))},updateColumns(o,a){const{clientId:r}=t,{replaceInnerBlocks:l}=e(Ye.store),{getBlocks:i}=n.select(Ye.store);let s=i(r);const c=s.every((e=>{const t=e.attributes.width;return Number.isFinite(t?.endsWith?.("%")?parseFloat(t):t)}));const u=a>o;if(u&&c){const e=Eo(100/a);s=[...To(s,Bo(s,100-e)),...Array.from({length:a-o}).map((()=>(0,je.createBlock)("core/column",{width:`${e}%`})))]}else if(u)s=[...s,...Array.from({length:a-o}).map((()=>(0,je.createBlock)("core/column")))];else if(a{const{canInsertBlockType:t,canRemoveBlock:n,getBlocks:o,getBlockCount:r}=e(Ye.store),l=o(a).reduce(((e,t,o)=>(n(t.clientId)||e.push(o),e)),[]);return{count:r(a),canInsertColumnBlock:t("core/column",a),minCount:Math.max(...l)+1}}),[a]),m=it()({[`are-vertically-aligned-${l}`]:l,"is-not-stacked-on-mobile":!r}),p=(0,Ye.useBlockProps)({className:m}),d=(0,Ye.useInnerBlocksProps)(p,{allowedBlocks:No,orientation:"horizontal",renderAppender:!1,templateLock:i});return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ye.BlockVerticalAlignmentToolbar,{onChange:n,value:l})),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,null,c&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Columns"),value:s,onChange:e=>o(s,Math.max(u,e)),min:Math.max(1,u),max:Math.max(6,s)}),s>6&&(0,qe.createElement)(Ke.Notice,{status:"warning",isDismissible:!1},(0,Je.__)("This column count exceeds the recommended amount and may cause visual breakage."))),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Stack on mobile"),checked:r,onChange:()=>t({isStackedOnMobile:!r})}))),(0,qe.createElement)("div",{...d}))}));function Io({clientId:e,name:t,setAttributes:n}){const{blockType:o,defaultVariation:a,variations:r}=(0,ut.useSelect)((e=>{const{getBlockVariations:n,getBlockType:o,getDefaultBlockVariation:a}=e(je.store);return{blockType:o(t),defaultVariation:a(t,"block"),variations:n(t,"block")}}),[t]),{replaceInnerBlocks:l}=(0,ut.useDispatch)(Ye.store),i=(0,Ye.useBlockProps)();return(0,qe.createElement)("div",{...i},(0,qe.createElement)(Ye.__experimentalBlockVariationPicker,{icon:o?.icon?.src,label:o?.title,variations:r,onSelect:(t=a)=>{t.attributes&&n(t.attributes),t.innerBlocks&&l(e,(0,je.createBlocksFromInnerBlocksTemplate)(t.innerBlocks),!0)},allowSkip:!0}))}var Mo=e=>{const{clientId:t}=e,n=(0,ut.useSelect)((e=>e(Ye.store).getBlocks(t).length>0),[t])?Po:Io;return(0,qe.createElement)(n,{...e})};var zo=[{name:"one-column-full",title:(0,Je.__)("100"),description:(0,Je.__)("One column"),icon:(0,qe.createElement)(Ke.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(Ke.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:(0,Je.__)("50 / 50"),description:(0,Je.__)("Two columns; equal split"),icon:(0,qe.createElement)(Ke.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(Ke.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:(0,Je.__)("33 / 66"),description:(0,Je.__)("Two columns; one-third, two-thirds split"),icon:(0,qe.createElement)(Ke.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(Ke.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:(0,Je.__)("66 / 33"),description:(0,Je.__)("Two columns; two-thirds, one-third split"),icon:(0,qe.createElement)(Ke.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(Ke.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:(0,Je.__)("33 / 33 / 33"),description:(0,Je.__)("Three columns; equal split"),icon:(0,qe.createElement)(Ke.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(Ke.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:(0,Je.__)("25 / 50 / 25"),description:(0,Je.__)("Three columns; wide center column"),icon:(0,qe.createElement)(Ke.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(Ke.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"]}];const Ro={from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert:e=>{const t=+(100/e.length).toFixed(2),n=e.map((({name:e,attributes:n,innerBlocks:o})=>["core/column",{width:`${t}%`},[[e,{...n},o]]]));return(0,je.createBlock)("core/columns",{},(0,je.createBlocksFromInnerBlocksTemplate)(n))},isMatch:({length:e},t)=>(1!==t.length||"core/columns"!==t[0].name)&&(e&&e<=6)},{type:"block",blocks:["core/media-text"],priority:1,transform:(e,t)=>{const{align:n,backgroundColor:o,textColor:a,style:r,mediaAlt:l,mediaId:i,mediaPosition:s,mediaSizeSlug:c,mediaType:u,mediaUrl:m,mediaWidth:p,verticalAlignment:d}=e;let g;if("image"!==u&&u)g=["core/video",{id:i,src:m}];else{g=["core/image",{...{id:i,alt:l,url:m,sizeSlug:c},...{href:e.href,linkClass:e.linkClass,linkDestination:e.linkDestination,linkTarget:e.linkTarget,rel:e.rel}}]}const h=[["core/column",{width:`${p}%`},[g]],["core/column",{width:100-p+"%"},t]];return"right"===s&&h.reverse(),(0,je.createBlock)("core/columns",{align:n,backgroundColor:o,textColor:a,style:r,verticalAlignment:d},(0,je.createBlocksFromInnerBlocksTemplate)(h))}}],ungroup:(e,t)=>t.flatMap((e=>e.innerBlocks))};var Ho=Ro;const Lo={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/columns",title:"Columns",category:"design",description:"Display content in multiple columns, with blocks added to each column.",textdomain:"default",attributes:{verticalAlignment:{type:"string"},isStackedOnMobile:{type:"boolean",default:!0},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{blockGap:{__experimentalDefault:"2em",sides:["horizontal","vertical"]},margin:["top","bottom"],padding:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},layout:{allowSwitching:!1,allowInheriting:!1,allowEditing:!1,default:{type:"flex",flexWrap:"nowrap"}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-columns-editor",style:"wp-block-columns"},{name:Ao}=Lo,Vo={icon:xo,variations:zo,example:{viewportWidth:600,innerBlocks:[{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:(0,Je.__)("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:(0,Je.__)("Suspendisse commodo neque lacus, a dictum orci interdum et.")}}]},{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:(0,Je.__)("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:(0,Je.__)("Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim.")}}]}]},deprecated:Co,edit:Mo,save:function({attributes:e}){const{isStackedOnMobile:t,verticalAlignment:n}=e,o=it()({[`are-vertically-aligned-${n}`]:n,"is-not-stacked-on-mobile":!t}),a=Ye.useBlockProps.save({className:o}),r=Ye.useInnerBlocksProps.save(a);return(0,qe.createElement)("div",{...r})},transforms:Ho},Do=()=>Qe({name:Ao,metadata:Lo,settings:Vo});var Fo=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M14 10.1V4c0-.6-.4-1-1-1H5c-.6 0-1 .4-1 1v8.3c0 .3.2.7.6.8.1.1.2.1.3.1.2 0 .5-.1.6-.3l1.8-1.8H13c.6 0 1-.4 1-1zm-1.5-.5H6.7l-1.2 1.2V4.5h7v5.1zM19 12h-8c-.6 0-1 .4-1 1v6.1c0 .6.4 1 1 1h5.7l1.8 1.8c.1.2.4.3.6.3.1 0 .2 0 .3-.1.4-.1.6-.5.6-.8V13c0-.6-.4-1-1-1zm-.5 7.8l-1.2-1.2h-5.8v-5.1h7v6.3z"}));var $o=[{attributes:{tagName:{type:"string",default:"div"}},apiVersion:3,supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}}},save({attributes:{tagName:e}}){const t=Ye.useBlockProps.save(),{className:n}=t,o=n?.split(" ")||[],a=o?.filter((e=>"wp-block-comments"!==e)),r={...t,className:a.join(" ")};return(0,qe.createElement)(e,{...r},(0,qe.createElement)(Ye.InnerBlocks.Content,null))}}];function Go({attributes:{tagName:e},setAttributes:t}){const n={section:(0,Je.__)("The
element should represent a standalone portion of the document that can't be better represented by another element."),aside:(0,Je.__)("The